@sasjs/adapter 3.8.0 → 3.8.3
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/SASjs.d.ts +8 -8
- package/SASjsApiClient.d.ts +4 -6
- package/index.js +2 -2
- package/node/SASjs.d.ts +8 -8
- package/node/SASjsApiClient.d.ts +4 -6
- package/node/index.js +2 -2
- package/node/types/index.d.ts +0 -1
- package/package.json +2 -2
- package/src/SASjs.ts +11 -23
- package/src/SASjsApiClient.ts +8 -19
- package/src/file/generateFileUploadForm.ts +11 -4
- package/src/types/index.ts +0 -1
- package/src/utils/parseViyaDebugResponse.ts +7 -2
- package/types/index.d.ts +0 -1
- package/node/types/FileTree.d.ts +0 -18
- package/src/types/FileTree.ts +0 -47
- package/types/FileTree.d.ts +0 -18
package/SASjs.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import { SASjsConfig, UploadFile, EditContextInput, PollOptions, ExecutionQuery
|
|
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,
|
|
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
|
|
314
|
-
*
|
|
315
|
-
*
|
|
316
|
-
*
|
|
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(
|
|
319
|
+
deployToSASjs(dataJson: ServicePackSASjs, appLoc?: string, authConfig?: AuthConfig): Promise<{
|
|
320
320
|
status: string;
|
|
321
321
|
message: string;
|
|
322
322
|
streamServiceName?: string | undefined;
|
package/SASjsApiClient.d.ts
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { AuthConfig,
|
|
2
|
-
import {
|
|
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(
|
|
8
|
-
|
|
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;
|