@sasjs/adapter 3.8.1 → 3.8.2

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.
package/node/SASjs.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  /// <reference types="node" />
2
- import { SASjsConfig, UploadFile, EditContextInput, PollOptions, ExecutionQuery, FileTree } from './types';
2
+ import { SASjsConfig, UploadFile, EditContextInput, PollOptions, ExecutionQuery } from './types';
3
3
  import { SASViyaApiClient } from './SASViyaApiClient';
4
4
  import { SASjsAuthResponse } from './SASjsApiClient';
5
- import { MacroVar, AuthConfig, ExtraResponseAttributes, SasAuthResponse, StreamConfig } from '@sasjs/utils/types';
5
+ import { MacroVar, AuthConfig, ExtraResponseAttributes, SasAuthResponse, ServicePackSASjs } from '@sasjs/utils/types';
6
6
  import { LoginOptions, LoginResult } from './types/Login';
7
7
  /**
8
8
  * SASjs is a JavaScript adapter for SAS.
@@ -310,13 +310,13 @@ export default class SASjs {
310
310
  deployServicePack(serviceJson: any, appLoc?: string, serverUrl?: string, accessToken?: string, isForced?: boolean): Promise<void>;
311
311
  /**
312
312
  * Creates the folders and services at the given location `appLoc` on the given server `serverUrl`.
313
- * @param members - the JSON specifying the folders and services to be created.
314
- * @param appLoc - the base folder in which to create the new folders and
315
- * services. If not provided, is taken from SASjsConfig.
316
- * @param streamConfig - optional configuration object of StreamConfig for deploying streaming app.
317
- * @param authConfig - a valid client, secret, refresh and access tokens that are authorised to execute compute jobs.
313
+ * @param dataJson - the JSON specifying the folders and files to be created, can also includes
314
+ * appLoc, streamServiceName, streamWebFolder, streamLogo
315
+ * @param appLoc - (optional) the base folder in which to create the new folders and
316
+ * services. If not provided, is taken from SASjsConfig. Precedence will be of appLoc present in dataJson.
317
+ * @param authConfig - (optional) a valid client, secret, refresh and access tokens that are authorised to execute compute jobs.
318
318
  */
319
- deployToSASjs(members: FileTree, appLoc?: string, streamConfig?: StreamConfig, authConfig?: AuthConfig): Promise<{
319
+ deployToSASjs(dataJson: ServicePackSASjs, appLoc?: string, authConfig?: AuthConfig): Promise<{
320
320
  status: string;
321
321
  message: string;
322
322
  streamServiceName?: string | undefined;
@@ -1,12 +1,10 @@
1
- import { AuthConfig, StreamConfig } from '@sasjs/utils/types';
2
- import { FileTree, ExecutionQuery } from './types';
1
+ import { AuthConfig, ServicePackSASjs } from '@sasjs/utils/types';
2
+ import { ExecutionQuery } from './types';
3
3
  import { RequestClient } from './request/RequestClient';
4
4
  export declare class SASjsApiClient {
5
- private serverUrl;
6
5
  private requestClient;
7
- constructor(serverUrl: string, requestClient: RequestClient);
8
- setConfig(serverUrl: string): void;
9
- deploy(members: FileTree, appLoc: string, streamConfig?: StreamConfig, authConfig?: AuthConfig): Promise<{
6
+ constructor(requestClient: RequestClient);
7
+ deploy(dataJson: ServicePackSASjs, appLoc: string, authConfig?: AuthConfig): Promise<{
10
8
  status: string;
11
9
  message: string;
12
10
  streamServiceName?: string | undefined;