@sasjs/adapter 4.0.1 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,6 +4,7 @@ import { RequestClient } from './request/RequestClient';
4
4
  export declare class SASjsApiClient {
5
5
  private requestClient;
6
6
  constructor(requestClient: RequestClient);
7
+ private getAccessTokenForRequest;
7
8
  /**
8
9
  * Creates the folders and services at the given location `appLoc` on the given server `serverUrl`.
9
10
  * @param dataJson - the JSON specifying the folders and files to be created, can also includes
@@ -17,6 +18,19 @@ export declare class SASjsApiClient {
17
18
  streamServiceName?: string | undefined;
18
19
  example?: {} | undefined;
19
20
  }>;
21
+ /**
22
+ * Creates/updates files within SASjs drive using uploaded json compressed file.
23
+ * @param zipFilePath - Compressed file path; file should only contain one JSON file and
24
+ * should have same name as of compressed file e.g. deploy.JSON should be compressed to deploy.JSON.zip
25
+ * Any other file or JSON file in zipped will be ignored!
26
+ * @param authConfig - (optional) a valid client, secret, refresh and access tokens that are authorised to execute compute jobs.
27
+ */
28
+ deployZipFile(zipFilePath: string, authConfig?: AuthConfig): Promise<{
29
+ status: string;
30
+ message: string;
31
+ streamServiceName?: string | undefined;
32
+ example?: {} | undefined;
33
+ }>;
20
34
  executeJob(query: ExecutionQuery, appLoc: string, authConfig?: AuthConfig): Promise<{
21
35
  result: any;
22
36
  log: any;