async commitTemporaryWorkingCopy(appId, workingCopyId, targetBranchName, options) {
        const branchName = targetBranchName ?? (await this.getWorkingCopyBaseBranch(workingCopyId));
        logger_1.logger.info(`Committing temporary working copy '${workingCopyId}' to branch '${branchName}'...`);
        await (0, retry_1.retry)(async () => {
            const body = {
                projectId: appId,
                targetBranchName: branchName,
                commitMessage: options?.commitMessage,
                force: options?.force,
                targetCommitId: options?.targetCommitId
            };
            await this.restConnector.awaitTask(`/v1/temporary-working-copies/${workingCopyId}/commit`, body);
        }, {
            maxAttempts: 3,
            retryDelayMs: 200,
            shouldRetry: error => !["RS400", "RS401", "RS403", "RS404"].includes(error.errorCode)
        });
        logger_1.logger.info(`Successfully committed the working copy with id '${workingCopyId}' to branch '${branchName}'`);
    }
/**
     * Commit a temporary working copy by giving the app ID, working copy ID and optionally the branch name, and some options.
     *
     * Note: make sure to call [`model.flushChanges()`](https://apidocs.rnd.mendix.com/modelsdk/latest/interfaces/imodel.html#flushchanges) after making changes to the model and before committing with this method.
     * This makes sure that the Model SDK has been able to send the changes to the online working copy.
     *
     * @param appId The app ID (also known as project ID) of the app that the working copy is based on.
     * @param workingCopyId The ID of the working copy to commit.
     * @param targetBranchName The branch of the model repository to which the changes are committed.
     *
     * The name of the default branch is `"trunk"` for Subversion repositories and `"main"` for Git repositories. To specify a non-default branch for a Subversion repository, the branch name must begin with the `"branches/"` prefix.
     *
     * Note: This must be the same branch that the working copy was based on, otherwise an error will be thrown. Set `options.force` to `true` to override this check.
     * @param options The options to use to commit the working copy such as commit ID and message.
     */
Commit a temporary working copy by giving the app ID, working copy ID and optionally the branch name, and some options.
Note: make sure to call [`model.flushChanges()`] after making changes to the model and before committing with this method.
This makes sure that the Model SDK has been able to send the changes to the online working copy.

@param appId The app ID (also known as project ID) of the app that the working copy is based on.
@param workingCopyId The ID of the working copy to commit.
@param targetBranchName The branch of the model repository to which the changes are committed.

The name of the default branch is `"trunk"` for Subversion repositories and `"main"` for Git repositories. To specify a non-default branch for a Subversion repository, the branch name must begin with the `"branches/"` prefix.

This must be the same branch that the working copy was based on, otherwise an error will be thrown. Set `options.force` to `true` to override this check.
@param options The options to use to commit the working copy such as commit ID and message.
Commit a temporary working copy by giving the app ID working copy ID and optionally the branch name and some options . Note : make sure to call [ ` model . flushChanges () ` ] after making changes to the model and before committing with this method . This makes sure that the Model SDK has been able to send the changes to the online working copy . @param appId The app ID ( also known as project ID ) of the app that the working copy is based on . @param workingCopyId The ID of the working copy to commit . @param targetBranchName The branch of the model repository to which the changes are committed . The name of the default branch is ` " trunk " ` for Subversion repositories and ` " main " ` for Git repositories . To specify a non - default branch for a Subversion repository the branch name must begin with the ` " branches / " ` prefix . This must be the same branch that the working copy was based on otherwise an error will be thrown . Set ` options . force ` to ` true ` to override this check . @param options The options to use to commit the working copy such as commit ID and message .
async commitTemporaryWorkingCopy(appId, workingCopyId, targetBranchName, options) {
        const branchName = targetBranchName ?? (await this.getWorkingCopyBaseBranch(workingCopyId));
        logger_1.logger.info(`Committing temporary working copy '${workingCopyId}' to branch '${branchName}'...`);
        await (0, retry_1.retry)(async () => {
            const body = {
                projectId: appId,
                targetBranchName: branchName,
                commitMessage: options?.commitMessage,
                force: options?.force,
                targetCommitId: options?.targetCommitId
            };
            await this.restConnector.awaitTask(`/v1/temporary-working-copies/${workingCopyId}/commit`, body);
        }, {
            maxAttempts: 3,
            retryDelayMs: 200,
            shouldRetry: error => !["RS400", "RS401", "RS403", "RS404"].includes(error.errorCode)
        });
        logger_1.logger.info(`Successfully committed the working copy with id '${workingCopyId}' to branch '${branchName}'`);
    }
async commitTemporaryWorkingCopy ( appId , workingCopyId , targetBranchName , options ) { const branchName = targetBranchName ?? ( await this . getWorkingCopyBaseBranch ( workingCopyId ) ) ; logger_1 . logger . info ( ` ${ workingCopyId } ${ branchName } ` ) ; await ( 0 , retry_1 . retry ) ( async ( ) => { const body = { projectId : appId , targetBranchName : branchName , commitMessage : options ?. commitMessage , force : options ?. force , targetCommitId : options ?. targetCommitId } ; await this . restConnector . awaitTask ( ` ${ workingCopyId } ` , body ) ; } , { maxAttempts : 3 , retryDelayMs : 200 , shouldRetry : error => ! [ "RS400" , "RS401" , "RS403" , "RS404" ] . includes ( error . errorCode ) } ) ; logger_1 . logger . info ( ` ${ workingCopyId } ${ branchName } ` ) ; }
Commit a temporary working copy by giving the app ID, working copy ID and optionally the branch name, and some options.
Commit a temporary working copy by giving the app ID working copy ID and optionally the branch name and some options .