diff --git a/src/SASjs.ts b/src/SASjs.ts index fa009b2..03f19f9 100644 --- a/src/SASjs.ts +++ b/src/SASjs.ts @@ -836,33 +836,6 @@ export default class SASjs { ) } - /** - * Creates the folders and services at the given location `appLoc` on the given server `serverUrl`. - * @param dataJson - the JSON specifying the folders and files to be created, can also includes - * appLoc, streamServiceName, streamWebFolder, streamLogo - * @param appLoc - (optional) the base folder in which to create the new folders and - * services. If not provided, is taken from SASjsConfig. Precedence will be of appLoc present in dataJson. - * @param authConfig - (optional) a valid client, secret, refresh and access tokens that are authorised to execute compute jobs. - */ - public async deployToSASjs( - dataJson: ServicePackSASjs, - appLoc?: string, - authConfig?: AuthConfig - ) { - if (!appLoc) { - appLoc = this.sasjsConfig.appLoc - } - return await this.sasJSApiClient?.deploy(dataJson, appLoc, authConfig) - } - - public async executeJobSASjs(query: ExecutionQuery, authConfig?: AuthConfig) { - return await this.sasJSApiClient?.executeJob( - query, - this.sasjsConfig.appLoc, - authConfig - ) - } - /** * Kicks off execution of the given job via the compute API. * @returns an object representing the compute session created for the given job. diff --git a/src/SASjsApiClient.ts b/src/SASjsApiClient.ts index 4228f4b..939cfd4 100644 --- a/src/SASjsApiClient.ts +++ b/src/SASjsApiClient.ts @@ -8,6 +8,13 @@ import { getTokens } from './auth/getTokens' export class SASjsApiClient { constructor(private requestClient: RequestClient) {} + /** + * Creates the folders and services at the given location `appLoc` on the given server `serverUrl`. + * @param dataJson - the JSON specifying the folders and files to be created, can also includes + * appLoc, streamServiceName, streamWebFolder, streamLogo + * @param appLoc - the base folder in which to create the new folders and services. + * @param authConfig - (optional) a valid client, secret, refresh and access tokens that are authorised to execute compute jobs. + */ public async deploy( dataJson: ServicePackSASjs, appLoc: string,