async createTemporaryWorkingCopy(appId, branchName, options) {
        logger_1.logger.info(`Creating temporary working copy for branch '${branchName}'...`);
        const workingCopyId = await (0, retry_1.retry)(async () => {
            const response = await this.restConnector.awaitTask("/v1/temporary-working-copies/", {
                projectId: appId,
                branchName,
                commitId: options?.commitId
            });
            return response.result?.workingCopyId;
        }, {
            maxAttempts: 3,
            retryDelayMs: 200,
            shouldRetry: error => !["RS400", "RS401", "RS403", "RS404"].includes(error.errorCode)
        });
        logger_1.logger.info(`Successfully created temporary working copy with id '${workingCopyId}' based on branch '${branchName}'`);
        return workingCopyId;
    }
/**
     * Create a temporary working copy by giving the app ID, the branch name, and optionally some options.
     * The working copy will be based on what is in the given branch of the model repository and stored online.
     *
     * @param appId The app ID (also known as project ID) of the app that the working copy will be based on.
     * @param branchName The branch name to base the working copy on.
     *
     * 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.
     * @param options The options to use to create the working copy such as the commit ID.
     * @returns The ID of the created temporary working copy.
     */
Create a temporary working copy by giving the app ID, the branch name, and optionally some options.
The working copy will be based on what is in the given branch of the model repository and stored online.

@param appId The app ID (also known as project ID) of the app that the working copy will be based on.
@param branchName The branch name to base the working copy on.

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.
@param options The options to use to create the working copy such as the commit ID.
@returns The ID of the created temporary working copy.
Create a temporary working copy by giving the app ID the branch name and optionally some options . The working copy will be based on what is in the given branch of the model repository and stored online . @param appId The app ID ( also known as project ID ) of the app that the working copy will be based on . @param branchName The branch name to base the working copy on . 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 . @param options The options to use to create the working copy such as the commit ID . @returns The ID of the created temporary working copy .
async createTemporaryWorkingCopy(appId, branchName, options) {
        logger_1.logger.info(`Creating temporary working copy for branch '${branchName}'...`);
        const workingCopyId = await (0, retry_1.retry)(async () => {
            const response = await this.restConnector.awaitTask("/v1/temporary-working-copies/", {
                projectId: appId,
                branchName,
                commitId: options?.commitId
            });
            return response.result?.workingCopyId;
        }, {
            maxAttempts: 3,
            retryDelayMs: 200,
            shouldRetry: error => !["RS400", "RS401", "RS403", "RS404"].includes(error.errorCode)
        });
        logger_1.logger.info(`Successfully created temporary working copy with id '${workingCopyId}' based on branch '${branchName}'`);
        return workingCopyId;
    }
async createTemporaryWorkingCopy ( appId , branchName , options ) { logger_1 . logger . info ( ` ${ branchName } ` ) ; const workingCopyId = await ( 0 , retry_1 . retry ) ( async ( ) => { const response = await this . restConnector . awaitTask ( "/v1/temporary-working-copies/" , { projectId : appId , branchName , commitId : options ?. commitId } ) ; return response . result ?. workingCopyId ; } , { maxAttempts : 3 , retryDelayMs : 200 , shouldRetry : error => ! [ "RS400" , "RS401" , "RS403" , "RS404" ] . includes ( error . errorCode ) } ) ; logger_1 . logger . info ( ` ${ workingCopyId } ${ branchName } ` ) ; return workingCopyId ; }
Create a temporary working copy by giving the app ID, the branch name, and optionally some options.
Create a temporary working copy by giving the app ID the branch name and optionally some options .