@sasjs/adapter 6.1.7 → 6.2.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.
- package/SASViyaApiClient.js +12 -6
- package/SASjs.d.ts +7 -2
- package/SASjs.js +56 -10
- package/dist/minified_sas9.js +32 -1
- package/dist/sasjs-adapter.js +117 -18
- package/job-execution/ComputeJobExecutor.js +5 -0
- package/job-execution/FileUploader.js +5 -0
- package/job-execution/JesJobExecutor.js +5 -0
- package/job-execution/SasjsJobExecutor.js +3 -1
- package/job-execution/WebJobExecutor.js +7 -1
- package/job-execution/unauthenticatedRequestMessage.d.ts +1 -0
- package/job-execution/unauthenticatedRequestMessage.js +4 -0
- package/minified/sas9/WebJobExecutor.js +3 -1
- package/package.json +1 -1
- package/types/DeployProgress.d.ts +27 -0
- package/types/DeployProgress.js +2 -0
- package/types/index.d.ts +1 -0
- package/types/index.js +1 -0
package/SASViyaApiClient.js
CHANGED
|
@@ -406,12 +406,18 @@ class SASViyaApiClient {
|
|
|
406
406
|
logger.info(`Parent folder '${newFolderName}' has been successfully created.`);
|
|
407
407
|
parentFolderUri = `/folders/folders/${parentFolder.id}`;
|
|
408
408
|
}
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
409
|
+
}
|
|
410
|
+
// The forced delete of the folder being created is keyed on its path, not on
|
|
411
|
+
// how the parent was found: a caller that supplies the parent's URI (the
|
|
412
|
+
// service pack deploy does, to save a lookup per member) still expects an
|
|
413
|
+
// existing folder of this name to be replaced rather than refused with 409.
|
|
414
|
+
// When the parent itself did not exist there is nothing here to delete, and
|
|
415
|
+
// the lookup is a 404 the caller never sees.
|
|
416
|
+
if (isForced && parentFolderPath) {
|
|
417
|
+
const folderPath = (0, joinFolderPath_1.joinFolderPath)(parentFolderPath, folderName);
|
|
418
|
+
const folderUri = yield this.getFolderUri(folderPath, accessToken);
|
|
419
|
+
if (folderUri) {
|
|
420
|
+
yield this.deleteFolder(folderPath, accessToken);
|
|
415
421
|
}
|
|
416
422
|
}
|
|
417
423
|
const { result: createFolderResponse } = yield this.requestClient
|
package/SASjs.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SASjsConfig, UploadFile, EditContextInput, PollOptions, VerboseMode, LoginOptions, LoginResult, ExecutionQuery, Tables } from './types';
|
|
1
|
+
import { SASjsConfig, UploadFile, EditContextInput, PollOptions, VerboseMode, LoginOptions, LoginResult, ExecutionQuery, Tables, DeployProgress } from './types';
|
|
2
2
|
import { SASViyaApiClient } from './SASViyaApiClient';
|
|
3
3
|
import { SASjsAuthResponse } from './SASjsApiClient';
|
|
4
4
|
import { OnTokensRefreshed } from './auth/getTokens';
|
|
@@ -361,8 +361,13 @@ export default class SASjs {
|
|
|
361
361
|
* @param accessToken - an optional access token to be passed in when
|
|
362
362
|
* using this function from the command line.
|
|
363
363
|
* @param isForced - flag that indicates if target folder already exists, it and all subfolders have to be deleted.
|
|
364
|
+
* @param onProgress - optional callback invoked once per member, immediately
|
|
365
|
+
* before the member is written, with its name, folder, type and position. A
|
|
366
|
+
* Viya deploy is one REST call per folder, file and job definition, run in
|
|
367
|
+
* sequence, so this is the only signal a caller has that a large pack is
|
|
368
|
+
* still moving rather than hung.
|
|
364
369
|
*/
|
|
365
|
-
deployServicePack(serviceJson: any, appLoc?: string, serverUrl?: string, accessToken?: string, isForced?: boolean): Promise<void>;
|
|
370
|
+
deployServicePack(serviceJson: any, appLoc?: string, serverUrl?: string, accessToken?: string, isForced?: boolean, onProgress?: (progress: DeployProgress) => void): Promise<void>;
|
|
366
371
|
/**
|
|
367
372
|
* Kicks off execution of the given job via the compute API.
|
|
368
373
|
* @returns an object representing the compute session created for the given job.
|
package/SASjs.js
CHANGED
|
@@ -615,9 +615,14 @@ class SASjs {
|
|
|
615
615
|
* @param accessToken - an optional access token to be passed in when
|
|
616
616
|
* using this function from the command line.
|
|
617
617
|
* @param isForced - flag that indicates if target folder already exists, it and all subfolders have to be deleted.
|
|
618
|
+
* @param onProgress - optional callback invoked once per member, immediately
|
|
619
|
+
* before the member is written, with its name, folder, type and position. A
|
|
620
|
+
* Viya deploy is one REST call per folder, file and job definition, run in
|
|
621
|
+
* sequence, so this is the only signal a caller has that a large pack is
|
|
622
|
+
* still moving rather than hung.
|
|
618
623
|
*/
|
|
619
624
|
deployServicePack(serviceJson_1, appLoc_1, serverUrl_1, accessToken_1) {
|
|
620
|
-
return __awaiter(this, arguments, void 0, function* (serviceJson, appLoc, serverUrl, accessToken, isForced = false) {
|
|
625
|
+
return __awaiter(this, arguments, void 0, function* (serviceJson, appLoc, serverUrl, accessToken, isForced = false, onProgress) {
|
|
621
626
|
this.isMethodSupported('deployServicePack', [types_2.ServerType.SasViya]);
|
|
622
627
|
let sasApiClient = null;
|
|
623
628
|
if (serverUrl || appLoc) {
|
|
@@ -649,7 +654,11 @@ class SASjs {
|
|
|
649
654
|
serviceJson.members[0].members.sort((member) => member.type === 'folder' ? -1 : 1);
|
|
650
655
|
}
|
|
651
656
|
const members = serviceJson.members;
|
|
652
|
-
yield this.createFoldersAndServices(appLoc, members, accessToken, sasApiClient, isForced
|
|
657
|
+
yield this.createFoldersAndServices(appLoc, members, accessToken, sasApiClient, isForced, {
|
|
658
|
+
onProgress,
|
|
659
|
+
index: 0,
|
|
660
|
+
total: countMembers(members)
|
|
661
|
+
});
|
|
653
662
|
});
|
|
654
663
|
}
|
|
655
664
|
/**
|
|
@@ -797,24 +806,36 @@ class SASjs {
|
|
|
797
806
|
this.computeJobExecutor = new job_execution_1.ComputeJobExecutor(this.sasjsConfig.serverUrl, this.sasViyaApiClient);
|
|
798
807
|
this.jesJobExecutor = new job_execution_1.JesJobExecutor(this.sasjsConfig.serverUrl, this.sasViyaApiClient);
|
|
799
808
|
}
|
|
800
|
-
createFoldersAndServices(
|
|
801
|
-
return __awaiter(this,
|
|
809
|
+
createFoldersAndServices(parentFolder_1, membersJson_1, accessToken_1, sasApiClient_1, isForced_1) {
|
|
810
|
+
return __awaiter(this, arguments, void 0, function* (parentFolder, membersJson, accessToken, sasApiClient, isForced, progress = {
|
|
811
|
+
index: 0,
|
|
812
|
+
total: countMembers(membersJson)
|
|
813
|
+
}, parentFolderUri) {
|
|
802
814
|
yield (0, utils_1.asyncForEach)(membersJson, (member) => __awaiter(this, void 0, void 0, function* () {
|
|
803
815
|
switch (member.type) {
|
|
804
|
-
case 'folder':
|
|
805
|
-
|
|
816
|
+
case 'folder': {
|
|
817
|
+
reportMember(progress, 'folder', member.name, parentFolder);
|
|
818
|
+
const folder = yield this.createFolder(member.name, parentFolder, parentFolderUri, accessToken, sasApiClient, isForced);
|
|
819
|
+
if (member.members && member.members.length) {
|
|
820
|
+
const folderPath = `${parentFolder}/${member.name}`;
|
|
821
|
+
yield this.createFoldersAndServices(folderPath, member.members, accessToken, sasApiClient, isForced, progress,
|
|
822
|
+
// the folder the deploy has just created, so its children do not
|
|
823
|
+
// each resolve the same path back to a URI
|
|
824
|
+
(folder === null || folder === void 0 ? void 0 : folder.id) ? `/folders/folders/${folder.id}` : undefined);
|
|
825
|
+
}
|
|
806
826
|
break;
|
|
827
|
+
}
|
|
807
828
|
case 'file':
|
|
808
|
-
|
|
829
|
+
reportMember(progress, 'file', member.name, parentFolder);
|
|
830
|
+
yield this.createFile(member.name, member.code, parentFolder, parentFolderUri, accessToken, sasApiClient);
|
|
809
831
|
break;
|
|
810
832
|
case 'service':
|
|
811
|
-
|
|
833
|
+
reportMember(progress, 'service', member.name, parentFolder);
|
|
834
|
+
yield this.createJobDefinition(member.name, member.code, parentFolder, parentFolderUri, accessToken, sasApiClient);
|
|
812
835
|
break;
|
|
813
836
|
default:
|
|
814
837
|
throw new Error(`Unidentified member '${member.name}' provided.`);
|
|
815
838
|
}
|
|
816
|
-
if (member.type === 'folder' && member.members && member.members.length)
|
|
817
|
-
yield this.createFoldersAndServices(`${parentFolder}/${member.name}`, member.members, accessToken, sasApiClient, isForced);
|
|
818
839
|
}));
|
|
819
840
|
});
|
|
820
841
|
}
|
|
@@ -852,3 +873,28 @@ class SASjs {
|
|
|
852
873
|
}
|
|
853
874
|
}
|
|
854
875
|
exports.default = SASjs;
|
|
876
|
+
/**
|
|
877
|
+
* Counts every member of a service pack, at every depth.
|
|
878
|
+
*
|
|
879
|
+
* Folders are counted as well as their children, because the deploy writes the
|
|
880
|
+
* folder itself before recursing - one `onProgress` call per member, so the
|
|
881
|
+
* total is exactly the number of calls the deploy will make.
|
|
882
|
+
*/
|
|
883
|
+
const countMembers = (members = []) => members.reduce((count, member) => count + 1 + (member.members ? countMembers(member.members) : 0), 0);
|
|
884
|
+
/**
|
|
885
|
+
* Reports one member immediately before it is written.
|
|
886
|
+
*
|
|
887
|
+
* Emitted per case rather than before the switch so an unidentified member
|
|
888
|
+
* throws without first announcing a write that will not happen.
|
|
889
|
+
*/
|
|
890
|
+
const reportMember = (progress, type, name, parentFolder) => {
|
|
891
|
+
var _a;
|
|
892
|
+
const index = ++progress.index;
|
|
893
|
+
(_a = progress.onProgress) === null || _a === void 0 ? void 0 : _a.call(progress, {
|
|
894
|
+
type,
|
|
895
|
+
name,
|
|
896
|
+
parentFolder,
|
|
897
|
+
index,
|
|
898
|
+
total: progress.total
|
|
899
|
+
});
|
|
900
|
+
};
|
package/dist/minified_sas9.js
CHANGED
|
@@ -1875,6 +1875,7 @@ const errors_1 = __webpack_require__(7388);
|
|
|
1875
1875
|
const MockReadinessError_1 = __webpack_require__(314);
|
|
1876
1876
|
const types_1 = __webpack_require__(3631);
|
|
1877
1877
|
const JobExecutor_1 = __webpack_require__(1101);
|
|
1878
|
+
const unauthenticatedRequestMessage_1 = __webpack_require__(2021);
|
|
1878
1879
|
class FileUploader extends JobExecutor_1.BaseJobExecutor {
|
|
1879
1880
|
constructor(serverUrl, serverType, jobsPath, requestClient) {
|
|
1880
1881
|
super(serverUrl, serverType);
|
|
@@ -1954,6 +1955,10 @@ class FileUploader extends JobExecutor_1.BaseJobExecutor {
|
|
|
1954
1955
|
reject(new errors_1.ErrorResponse(e === null || e === void 0 ? void 0 : e.message, e));
|
|
1955
1956
|
}
|
|
1956
1957
|
if (e instanceof errors_1.LoginRequiredError) {
|
|
1958
|
+
if (!loginRequiredCallback) {
|
|
1959
|
+
reject(new errors_1.ErrorResponse(unauthenticatedRequestMessage_1.UNAUTHENTICATED_REQUEST_MESSAGE, e));
|
|
1960
|
+
return;
|
|
1961
|
+
}
|
|
1957
1962
|
this.appendWaitingRequest(() => {
|
|
1958
1963
|
return this.execute(sasJob, data, config, loginRequiredCallback).then((res) => {
|
|
1959
1964
|
resolve(res);
|
|
@@ -2025,6 +2030,19 @@ class BaseJobExecutor {
|
|
|
2025
2030
|
exports.BaseJobExecutor = BaseJobExecutor;
|
|
2026
2031
|
|
|
2027
2032
|
|
|
2033
|
+
/***/ },
|
|
2034
|
+
|
|
2035
|
+
/***/ 2021
|
|
2036
|
+
(__unused_webpack_module, exports) {
|
|
2037
|
+
|
|
2038
|
+
"use strict";
|
|
2039
|
+
var __webpack_unused_export__;
|
|
2040
|
+
|
|
2041
|
+
__webpack_unused_export__ = ({ value: true });
|
|
2042
|
+
exports.UNAUTHENTICATED_REQUEST_MESSAGE = void 0;
|
|
2043
|
+
exports.UNAUTHENTICATED_REQUEST_MESSAGE = 'Request is not authenticated. Make sure .env file exists with valid credentials.';
|
|
2044
|
+
|
|
2045
|
+
|
|
2028
2046
|
/***/ },
|
|
2029
2047
|
|
|
2030
2048
|
/***/ 7737
|
|
@@ -2252,6 +2270,7 @@ exports.WebJobExecutor = void 0;
|
|
|
2252
2270
|
const errors_1 = __webpack_require__(7388);
|
|
2253
2271
|
const utils_1 = __webpack_require__(9266);
|
|
2254
2272
|
const JobExecutor_1 = __webpack_require__(1101);
|
|
2273
|
+
const unauthenticatedRequestMessage_1 = __webpack_require__(2021);
|
|
2255
2274
|
const parseWeboutResponse_1 = __webpack_require__(5259);
|
|
2256
2275
|
class WebJobExecutor extends JobExecutor_1.BaseJobExecutor {
|
|
2257
2276
|
constructor(serverUrl, serverType, jobsPath, requestClient) {
|
|
@@ -2300,7 +2319,8 @@ class WebJobExecutor extends JobExecutor_1.BaseJobExecutor {
|
|
|
2300
2319
|
}
|
|
2301
2320
|
if (e instanceof errors_1.LoginRequiredError) {
|
|
2302
2321
|
if (!loginRequiredCallback) {
|
|
2303
|
-
reject(new errors_1.ErrorResponse(
|
|
2322
|
+
reject(new errors_1.ErrorResponse(unauthenticatedRequestMessage_1.UNAUTHENTICATED_REQUEST_MESSAGE, e));
|
|
2323
|
+
return;
|
|
2304
2324
|
}
|
|
2305
2325
|
this.appendWaitingRequest(() => {
|
|
2306
2326
|
return this.execute(sasJob, data, config, loginRequiredCallback, authConfig, extraResponseAttributes).then((res) => {
|
|
@@ -3547,6 +3567,16 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
3547
3567
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3548
3568
|
|
|
3549
3569
|
|
|
3570
|
+
/***/ },
|
|
3571
|
+
|
|
3572
|
+
/***/ 5284
|
|
3573
|
+
(__unused_webpack_module, exports) {
|
|
3574
|
+
|
|
3575
|
+
"use strict";
|
|
3576
|
+
|
|
3577
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3578
|
+
|
|
3579
|
+
|
|
3550
3580
|
/***/ },
|
|
3551
3581
|
|
|
3552
3582
|
/***/ 3438
|
|
@@ -4369,6 +4399,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
4369
4399
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4370
4400
|
__exportStar(__webpack_require__(5777), exports);
|
|
4371
4401
|
__exportStar(__webpack_require__(1353), exports);
|
|
4402
|
+
__exportStar(__webpack_require__(5284), exports);
|
|
4372
4403
|
__exportStar(__webpack_require__(8912), exports);
|
|
4373
4404
|
__exportStar(__webpack_require__(4006), exports);
|
|
4374
4405
|
__exportStar(__webpack_require__(5873), exports);
|
package/dist/sasjs-adapter.js
CHANGED
|
@@ -3374,12 +3374,18 @@ class SASViyaApiClient {
|
|
|
3374
3374
|
logger.info(`Parent folder '${newFolderName}' has been successfully created.`);
|
|
3375
3375
|
parentFolderUri = `/folders/folders/${parentFolder.id}`;
|
|
3376
3376
|
}
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3377
|
+
}
|
|
3378
|
+
// The forced delete of the folder being created is keyed on its path, not on
|
|
3379
|
+
// how the parent was found: a caller that supplies the parent's URI (the
|
|
3380
|
+
// service pack deploy does, to save a lookup per member) still expects an
|
|
3381
|
+
// existing folder of this name to be replaced rather than refused with 409.
|
|
3382
|
+
// When the parent itself did not exist there is nothing here to delete, and
|
|
3383
|
+
// the lookup is a 404 the caller never sees.
|
|
3384
|
+
if (isForced && parentFolderPath) {
|
|
3385
|
+
const folderPath = (0, joinFolderPath_1.joinFolderPath)(parentFolderPath, folderName);
|
|
3386
|
+
const folderUri = yield this.getFolderUri(folderPath, accessToken);
|
|
3387
|
+
if (folderUri) {
|
|
3388
|
+
yield this.deleteFolder(folderPath, accessToken);
|
|
3383
3389
|
}
|
|
3384
3390
|
}
|
|
3385
3391
|
const { result: createFolderResponse } = yield this.requestClient
|
|
@@ -4543,9 +4549,14 @@ class SASjs {
|
|
|
4543
4549
|
* @param accessToken - an optional access token to be passed in when
|
|
4544
4550
|
* using this function from the command line.
|
|
4545
4551
|
* @param isForced - flag that indicates if target folder already exists, it and all subfolders have to be deleted.
|
|
4552
|
+
* @param onProgress - optional callback invoked once per member, immediately
|
|
4553
|
+
* before the member is written, with its name, folder, type and position. A
|
|
4554
|
+
* Viya deploy is one REST call per folder, file and job definition, run in
|
|
4555
|
+
* sequence, so this is the only signal a caller has that a large pack is
|
|
4556
|
+
* still moving rather than hung.
|
|
4546
4557
|
*/
|
|
4547
4558
|
deployServicePack(serviceJson_1, appLoc_1, serverUrl_1, accessToken_1) {
|
|
4548
|
-
return __awaiter(this, arguments, void 0, function* (serviceJson, appLoc, serverUrl, accessToken, isForced = false) {
|
|
4559
|
+
return __awaiter(this, arguments, void 0, function* (serviceJson, appLoc, serverUrl, accessToken, isForced = false, onProgress) {
|
|
4549
4560
|
this.isMethodSupported('deployServicePack', [types_2.ServerType.SasViya]);
|
|
4550
4561
|
let sasApiClient = null;
|
|
4551
4562
|
if (serverUrl || appLoc) {
|
|
@@ -4577,7 +4588,11 @@ class SASjs {
|
|
|
4577
4588
|
serviceJson.members[0].members.sort((member) => member.type === 'folder' ? -1 : 1);
|
|
4578
4589
|
}
|
|
4579
4590
|
const members = serviceJson.members;
|
|
4580
|
-
yield this.createFoldersAndServices(appLoc, members, accessToken, sasApiClient, isForced
|
|
4591
|
+
yield this.createFoldersAndServices(appLoc, members, accessToken, sasApiClient, isForced, {
|
|
4592
|
+
onProgress,
|
|
4593
|
+
index: 0,
|
|
4594
|
+
total: countMembers(members)
|
|
4595
|
+
});
|
|
4581
4596
|
});
|
|
4582
4597
|
}
|
|
4583
4598
|
/**
|
|
@@ -4725,24 +4740,36 @@ class SASjs {
|
|
|
4725
4740
|
this.computeJobExecutor = new job_execution_1.ComputeJobExecutor(this.sasjsConfig.serverUrl, this.sasViyaApiClient);
|
|
4726
4741
|
this.jesJobExecutor = new job_execution_1.JesJobExecutor(this.sasjsConfig.serverUrl, this.sasViyaApiClient);
|
|
4727
4742
|
}
|
|
4728
|
-
createFoldersAndServices(
|
|
4729
|
-
return __awaiter(this,
|
|
4743
|
+
createFoldersAndServices(parentFolder_1, membersJson_1, accessToken_1, sasApiClient_1, isForced_1) {
|
|
4744
|
+
return __awaiter(this, arguments, void 0, function* (parentFolder, membersJson, accessToken, sasApiClient, isForced, progress = {
|
|
4745
|
+
index: 0,
|
|
4746
|
+
total: countMembers(membersJson)
|
|
4747
|
+
}, parentFolderUri) {
|
|
4730
4748
|
yield (0, utils_1.asyncForEach)(membersJson, (member) => __awaiter(this, void 0, void 0, function* () {
|
|
4731
4749
|
switch (member.type) {
|
|
4732
|
-
case 'folder':
|
|
4733
|
-
|
|
4750
|
+
case 'folder': {
|
|
4751
|
+
reportMember(progress, 'folder', member.name, parentFolder);
|
|
4752
|
+
const folder = yield this.createFolder(member.name, parentFolder, parentFolderUri, accessToken, sasApiClient, isForced);
|
|
4753
|
+
if (member.members && member.members.length) {
|
|
4754
|
+
const folderPath = `${parentFolder}/${member.name}`;
|
|
4755
|
+
yield this.createFoldersAndServices(folderPath, member.members, accessToken, sasApiClient, isForced, progress,
|
|
4756
|
+
// the folder the deploy has just created, so its children do not
|
|
4757
|
+
// each resolve the same path back to a URI
|
|
4758
|
+
(folder === null || folder === void 0 ? void 0 : folder.id) ? `/folders/folders/${folder.id}` : undefined);
|
|
4759
|
+
}
|
|
4734
4760
|
break;
|
|
4761
|
+
}
|
|
4735
4762
|
case 'file':
|
|
4736
|
-
|
|
4763
|
+
reportMember(progress, 'file', member.name, parentFolder);
|
|
4764
|
+
yield this.createFile(member.name, member.code, parentFolder, parentFolderUri, accessToken, sasApiClient);
|
|
4737
4765
|
break;
|
|
4738
4766
|
case 'service':
|
|
4739
|
-
|
|
4767
|
+
reportMember(progress, 'service', member.name, parentFolder);
|
|
4768
|
+
yield this.createJobDefinition(member.name, member.code, parentFolder, parentFolderUri, accessToken, sasApiClient);
|
|
4740
4769
|
break;
|
|
4741
4770
|
default:
|
|
4742
4771
|
throw new Error(`Unidentified member '${member.name}' provided.`);
|
|
4743
4772
|
}
|
|
4744
|
-
if (member.type === 'folder' && member.members && member.members.length)
|
|
4745
|
-
yield this.createFoldersAndServices(`${parentFolder}/${member.name}`, member.members, accessToken, sasApiClient, isForced);
|
|
4746
4773
|
}));
|
|
4747
4774
|
});
|
|
4748
4775
|
}
|
|
@@ -4780,6 +4807,31 @@ class SASjs {
|
|
|
4780
4807
|
}
|
|
4781
4808
|
}
|
|
4782
4809
|
exports["default"] = SASjs;
|
|
4810
|
+
/**
|
|
4811
|
+
* Counts every member of a service pack, at every depth.
|
|
4812
|
+
*
|
|
4813
|
+
* Folders are counted as well as their children, because the deploy writes the
|
|
4814
|
+
* folder itself before recursing - one `onProgress` call per member, so the
|
|
4815
|
+
* total is exactly the number of calls the deploy will make.
|
|
4816
|
+
*/
|
|
4817
|
+
const countMembers = (members = []) => members.reduce((count, member) => count + 1 + (member.members ? countMembers(member.members) : 0), 0);
|
|
4818
|
+
/**
|
|
4819
|
+
* Reports one member immediately before it is written.
|
|
4820
|
+
*
|
|
4821
|
+
* Emitted per case rather than before the switch so an unidentified member
|
|
4822
|
+
* throws without first announcing a write that will not happen.
|
|
4823
|
+
*/
|
|
4824
|
+
const reportMember = (progress, type, name, parentFolder) => {
|
|
4825
|
+
var _a;
|
|
4826
|
+
const index = ++progress.index;
|
|
4827
|
+
(_a = progress.onProgress) === null || _a === void 0 ? void 0 : _a.call(progress, {
|
|
4828
|
+
type,
|
|
4829
|
+
name,
|
|
4830
|
+
parentFolder,
|
|
4831
|
+
index,
|
|
4832
|
+
total: progress.total
|
|
4833
|
+
});
|
|
4834
|
+
};
|
|
4783
4835
|
|
|
4784
4836
|
|
|
4785
4837
|
/***/ },
|
|
@@ -7564,6 +7616,7 @@ exports.ComputeJobExecutor = void 0;
|
|
|
7564
7616
|
const types_1 = __webpack_require__(3631);
|
|
7565
7617
|
const errors_1 = __webpack_require__(7388);
|
|
7566
7618
|
const JobExecutor_1 = __webpack_require__(1101);
|
|
7619
|
+
const unauthenticatedRequestMessage_1 = __webpack_require__(2021);
|
|
7567
7620
|
class ComputeJobExecutor extends JobExecutor_1.BaseJobExecutor {
|
|
7568
7621
|
constructor(serverUrl, sasViyaApiClient) {
|
|
7569
7622
|
super(serverUrl, types_1.ServerType.SasViya);
|
|
@@ -7585,6 +7638,10 @@ class ComputeJobExecutor extends JobExecutor_1.BaseJobExecutor {
|
|
|
7585
7638
|
reject(new errors_1.ErrorResponse(e === null || e === void 0 ? void 0 : e.message, e));
|
|
7586
7639
|
}
|
|
7587
7640
|
if (e instanceof errors_1.LoginRequiredError) {
|
|
7641
|
+
if (!loginRequiredCallback) {
|
|
7642
|
+
reject(new errors_1.ErrorResponse(unauthenticatedRequestMessage_1.UNAUTHENTICATED_REQUEST_MESSAGE, e));
|
|
7643
|
+
return;
|
|
7644
|
+
}
|
|
7588
7645
|
this.appendWaitingRequest(() => {
|
|
7589
7646
|
return this.execute(sasJob, data, config, loginRequiredCallback).then((res) => {
|
|
7590
7647
|
resolve(res);
|
|
@@ -7629,6 +7686,7 @@ const errors_1 = __webpack_require__(7388);
|
|
|
7629
7686
|
const MockReadinessError_1 = __webpack_require__(314);
|
|
7630
7687
|
const types_1 = __webpack_require__(3631);
|
|
7631
7688
|
const JobExecutor_1 = __webpack_require__(1101);
|
|
7689
|
+
const unauthenticatedRequestMessage_1 = __webpack_require__(2021);
|
|
7632
7690
|
class FileUploader extends JobExecutor_1.BaseJobExecutor {
|
|
7633
7691
|
constructor(serverUrl, serverType, jobsPath, requestClient) {
|
|
7634
7692
|
super(serverUrl, serverType);
|
|
@@ -7708,6 +7766,10 @@ class FileUploader extends JobExecutor_1.BaseJobExecutor {
|
|
|
7708
7766
|
reject(new errors_1.ErrorResponse(e === null || e === void 0 ? void 0 : e.message, e));
|
|
7709
7767
|
}
|
|
7710
7768
|
if (e instanceof errors_1.LoginRequiredError) {
|
|
7769
|
+
if (!loginRequiredCallback) {
|
|
7770
|
+
reject(new errors_1.ErrorResponse(unauthenticatedRequestMessage_1.UNAUTHENTICATED_REQUEST_MESSAGE, e));
|
|
7771
|
+
return;
|
|
7772
|
+
}
|
|
7711
7773
|
this.appendWaitingRequest(() => {
|
|
7712
7774
|
return this.execute(sasJob, data, config, loginRequiredCallback).then((res) => {
|
|
7713
7775
|
resolve(res);
|
|
@@ -7752,6 +7814,7 @@ exports.JesJobExecutor = void 0;
|
|
|
7752
7814
|
const types_1 = __webpack_require__(3631);
|
|
7753
7815
|
const errors_1 = __webpack_require__(7388);
|
|
7754
7816
|
const JobExecutor_1 = __webpack_require__(1101);
|
|
7817
|
+
const unauthenticatedRequestMessage_1 = __webpack_require__(2021);
|
|
7755
7818
|
const utils_1 = __webpack_require__(9266);
|
|
7756
7819
|
class JesJobExecutor extends JobExecutor_1.BaseJobExecutor {
|
|
7757
7820
|
constructor(serverUrl, sasViyaApiClient) {
|
|
@@ -7773,6 +7836,10 @@ class JesJobExecutor extends JobExecutor_1.BaseJobExecutor {
|
|
|
7773
7836
|
reject(new errors_1.ErrorResponse(e === null || e === void 0 ? void 0 : e.message, e));
|
|
7774
7837
|
}
|
|
7775
7838
|
if (e instanceof errors_1.LoginRequiredError) {
|
|
7839
|
+
if (!loginRequiredCallback) {
|
|
7840
|
+
reject(new errors_1.ErrorResponse(unauthenticatedRequestMessage_1.UNAUTHENTICATED_REQUEST_MESSAGE, e));
|
|
7841
|
+
return;
|
|
7842
|
+
}
|
|
7776
7843
|
this.appendWaitingRequest(() => {
|
|
7777
7844
|
return this.execute(sasJob, data, config, loginRequiredCallback, authConfig, extraResponseAttributes).then((res) => {
|
|
7778
7845
|
resolve(res);
|
|
@@ -7998,6 +8065,7 @@ const generateFileUploadForm_1 = __webpack_require__(7673);
|
|
|
7998
8065
|
const utils_1 = __webpack_require__(9266);
|
|
7999
8066
|
const utils_2 = __webpack_require__(9266);
|
|
8000
8067
|
const JobExecutor_1 = __webpack_require__(1101);
|
|
8068
|
+
const unauthenticatedRequestMessage_1 = __webpack_require__(2021);
|
|
8001
8069
|
class SasjsJobExecutor extends JobExecutor_1.BaseJobExecutor {
|
|
8002
8070
|
constructor(serverUrl, jobsPath, requestClient) {
|
|
8003
8071
|
super(serverUrl, types_1.ServerType.Sasjs);
|
|
@@ -8055,7 +8123,8 @@ class SasjsJobExecutor extends JobExecutor_1.BaseJobExecutor {
|
|
|
8055
8123
|
}
|
|
8056
8124
|
if (e instanceof errors_1.LoginRequiredError) {
|
|
8057
8125
|
if (!loginRequiredCallback) {
|
|
8058
|
-
reject(new errors_1.ErrorResponse(
|
|
8126
|
+
reject(new errors_1.ErrorResponse(unauthenticatedRequestMessage_1.UNAUTHENTICATED_REQUEST_MESSAGE, e));
|
|
8127
|
+
return;
|
|
8059
8128
|
}
|
|
8060
8129
|
this.appendWaitingRequest(() => {
|
|
8061
8130
|
return this.execute(sasJob, data, config, loginRequiredCallback, authConfig, extraResponseAttributes).then((res) => {
|
|
@@ -8106,6 +8175,7 @@ const generateFileUploadForm_1 = __webpack_require__(7673);
|
|
|
8106
8175
|
const generateTableUploadForm_1 = __webpack_require__(93);
|
|
8107
8176
|
const utils_1 = __webpack_require__(9266);
|
|
8108
8177
|
const JobExecutor_1 = __webpack_require__(1101);
|
|
8178
|
+
const unauthenticatedRequestMessage_1 = __webpack_require__(2021);
|
|
8109
8179
|
class WebJobExecutor extends JobExecutor_1.BaseJobExecutor {
|
|
8110
8180
|
constructor(serverUrl, serverType, jobsPath, requestClient, sasViyaApiClient) {
|
|
8111
8181
|
super(serverUrl, serverType);
|
|
@@ -8131,6 +8201,10 @@ class WebJobExecutor extends JobExecutor_1.BaseJobExecutor {
|
|
|
8131
8201
|
catch (e) {
|
|
8132
8202
|
return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
|
|
8133
8203
|
if (e instanceof errors_1.LoginRequiredError) {
|
|
8204
|
+
if (!loginRequiredCallback) {
|
|
8205
|
+
reject(new errors_1.ErrorResponse(unauthenticatedRequestMessage_1.UNAUTHENTICATED_REQUEST_MESSAGE, e));
|
|
8206
|
+
return;
|
|
8207
|
+
}
|
|
8134
8208
|
this.appendWaitingRequest(() => {
|
|
8135
8209
|
return this.execute(sasJob, data, config, loginRequiredCallback, authConfig, extraResponseAttributes).then((res) => {
|
|
8136
8210
|
resolve(res);
|
|
@@ -8267,7 +8341,8 @@ class WebJobExecutor extends JobExecutor_1.BaseJobExecutor {
|
|
|
8267
8341
|
}
|
|
8268
8342
|
if (e instanceof errors_1.LoginRequiredError) {
|
|
8269
8343
|
if (!loginRequiredCallback) {
|
|
8270
|
-
reject(new errors_1.ErrorResponse(
|
|
8344
|
+
reject(new errors_1.ErrorResponse(unauthenticatedRequestMessage_1.UNAUTHENTICATED_REQUEST_MESSAGE, e));
|
|
8345
|
+
return;
|
|
8271
8346
|
}
|
|
8272
8347
|
this.appendWaitingRequest(() => {
|
|
8273
8348
|
return this.execute(sasJob, data, config, loginRequiredCallback, authConfig, extraResponseAttributes).then((res) => {
|
|
@@ -8371,6 +8446,19 @@ __exportStar(__webpack_require__(8067), exports);
|
|
|
8371
8446
|
__exportStar(__webpack_require__(8995), exports);
|
|
8372
8447
|
|
|
8373
8448
|
|
|
8449
|
+
/***/ },
|
|
8450
|
+
|
|
8451
|
+
/***/ 2021
|
|
8452
|
+
(__unused_webpack_module, exports) {
|
|
8453
|
+
|
|
8454
|
+
"use strict";
|
|
8455
|
+
var __webpack_unused_export__;
|
|
8456
|
+
|
|
8457
|
+
__webpack_unused_export__ = ({ value: true });
|
|
8458
|
+
exports.UNAUTHENTICATED_REQUEST_MESSAGE = void 0;
|
|
8459
|
+
exports.UNAUTHENTICATED_REQUEST_MESSAGE = 'Request is not authenticated. Make sure .env file exists with valid credentials.';
|
|
8460
|
+
|
|
8461
|
+
|
|
8374
8462
|
/***/ },
|
|
8375
8463
|
|
|
8376
8464
|
/***/ 8816
|
|
@@ -9826,6 +9914,16 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
9826
9914
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9827
9915
|
|
|
9828
9916
|
|
|
9917
|
+
/***/ },
|
|
9918
|
+
|
|
9919
|
+
/***/ 5284
|
|
9920
|
+
(__unused_webpack_module, exports) {
|
|
9921
|
+
|
|
9922
|
+
"use strict";
|
|
9923
|
+
|
|
9924
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
9925
|
+
|
|
9926
|
+
|
|
9829
9927
|
/***/ },
|
|
9830
9928
|
|
|
9831
9929
|
/***/ 3438
|
|
@@ -10648,6 +10746,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
10648
10746
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
10649
10747
|
__exportStar(__webpack_require__(5777), exports);
|
|
10650
10748
|
__exportStar(__webpack_require__(1353), exports);
|
|
10749
|
+
__exportStar(__webpack_require__(5284), exports);
|
|
10651
10750
|
__exportStar(__webpack_require__(8912), exports);
|
|
10652
10751
|
__exportStar(__webpack_require__(4006), exports);
|
|
10653
10752
|
__exportStar(__webpack_require__(5873), exports);
|
|
@@ -13,6 +13,7 @@ exports.ComputeJobExecutor = void 0;
|
|
|
13
13
|
const types_1 = require("@sasjs/utils/types");
|
|
14
14
|
const errors_1 = require("../types/errors");
|
|
15
15
|
const JobExecutor_1 = require("./JobExecutor");
|
|
16
|
+
const unauthenticatedRequestMessage_1 = require("./unauthenticatedRequestMessage");
|
|
16
17
|
class ComputeJobExecutor extends JobExecutor_1.BaseJobExecutor {
|
|
17
18
|
constructor(serverUrl, sasViyaApiClient) {
|
|
18
19
|
super(serverUrl, types_1.ServerType.SasViya);
|
|
@@ -34,6 +35,10 @@ class ComputeJobExecutor extends JobExecutor_1.BaseJobExecutor {
|
|
|
34
35
|
reject(new errors_1.ErrorResponse(e === null || e === void 0 ? void 0 : e.message, e));
|
|
35
36
|
}
|
|
36
37
|
if (e instanceof errors_1.LoginRequiredError) {
|
|
38
|
+
if (!loginRequiredCallback) {
|
|
39
|
+
reject(new errors_1.ErrorResponse(unauthenticatedRequestMessage_1.UNAUTHENTICATED_REQUEST_MESSAGE, e));
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
37
42
|
this.appendWaitingRequest(() => {
|
|
38
43
|
return this.execute(sasJob, data, config, loginRequiredCallback).then((res) => {
|
|
39
44
|
resolve(res);
|
|
@@ -15,6 +15,7 @@ const errors_1 = require("../types/errors");
|
|
|
15
15
|
const MockReadinessError_1 = require("../types/errors/MockReadinessError");
|
|
16
16
|
const types_1 = require("@sasjs/utils/types");
|
|
17
17
|
const JobExecutor_1 = require("./JobExecutor");
|
|
18
|
+
const unauthenticatedRequestMessage_1 = require("./unauthenticatedRequestMessage");
|
|
18
19
|
class FileUploader extends JobExecutor_1.BaseJobExecutor {
|
|
19
20
|
constructor(serverUrl, serverType, jobsPath, requestClient) {
|
|
20
21
|
super(serverUrl, serverType);
|
|
@@ -94,6 +95,10 @@ class FileUploader extends JobExecutor_1.BaseJobExecutor {
|
|
|
94
95
|
reject(new errors_1.ErrorResponse(e === null || e === void 0 ? void 0 : e.message, e));
|
|
95
96
|
}
|
|
96
97
|
if (e instanceof errors_1.LoginRequiredError) {
|
|
98
|
+
if (!loginRequiredCallback) {
|
|
99
|
+
reject(new errors_1.ErrorResponse(unauthenticatedRequestMessage_1.UNAUTHENTICATED_REQUEST_MESSAGE, e));
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
97
102
|
this.appendWaitingRequest(() => {
|
|
98
103
|
return this.execute(sasJob, data, config, loginRequiredCallback).then((res) => {
|
|
99
104
|
resolve(res);
|
|
@@ -13,6 +13,7 @@ exports.JesJobExecutor = void 0;
|
|
|
13
13
|
const types_1 = require("@sasjs/utils/types");
|
|
14
14
|
const errors_1 = require("../types/errors");
|
|
15
15
|
const JobExecutor_1 = require("./JobExecutor");
|
|
16
|
+
const unauthenticatedRequestMessage_1 = require("./unauthenticatedRequestMessage");
|
|
16
17
|
const utils_1 = require("../utils");
|
|
17
18
|
class JesJobExecutor extends JobExecutor_1.BaseJobExecutor {
|
|
18
19
|
constructor(serverUrl, sasViyaApiClient) {
|
|
@@ -34,6 +35,10 @@ class JesJobExecutor extends JobExecutor_1.BaseJobExecutor {
|
|
|
34
35
|
reject(new errors_1.ErrorResponse(e === null || e === void 0 ? void 0 : e.message, e));
|
|
35
36
|
}
|
|
36
37
|
if (e instanceof errors_1.LoginRequiredError) {
|
|
38
|
+
if (!loginRequiredCallback) {
|
|
39
|
+
reject(new errors_1.ErrorResponse(unauthenticatedRequestMessage_1.UNAUTHENTICATED_REQUEST_MESSAGE, e));
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
37
42
|
this.appendWaitingRequest(() => {
|
|
38
43
|
return this.execute(sasJob, data, config, loginRequiredCallback, authConfig, extraResponseAttributes).then((res) => {
|
|
39
44
|
resolve(res);
|
|
@@ -20,6 +20,7 @@ const generateFileUploadForm_1 = require("../file/generateFileUploadForm");
|
|
|
20
20
|
const utils_1 = require("../utils");
|
|
21
21
|
const utils_2 = require("../utils");
|
|
22
22
|
const JobExecutor_1 = require("./JobExecutor");
|
|
23
|
+
const unauthenticatedRequestMessage_1 = require("./unauthenticatedRequestMessage");
|
|
23
24
|
class SasjsJobExecutor extends JobExecutor_1.BaseJobExecutor {
|
|
24
25
|
constructor(serverUrl, jobsPath, requestClient) {
|
|
25
26
|
super(serverUrl, types_1.ServerType.Sasjs);
|
|
@@ -77,7 +78,8 @@ class SasjsJobExecutor extends JobExecutor_1.BaseJobExecutor {
|
|
|
77
78
|
}
|
|
78
79
|
if (e instanceof errors_1.LoginRequiredError) {
|
|
79
80
|
if (!loginRequiredCallback) {
|
|
80
|
-
reject(new errors_1.ErrorResponse(
|
|
81
|
+
reject(new errors_1.ErrorResponse(unauthenticatedRequestMessage_1.UNAUTHENTICATED_REQUEST_MESSAGE, e));
|
|
82
|
+
return;
|
|
81
83
|
}
|
|
82
84
|
this.appendWaitingRequest(() => {
|
|
83
85
|
return this.execute(sasJob, data, config, loginRequiredCallback, authConfig, extraResponseAttributes).then((res) => {
|
|
@@ -20,6 +20,7 @@ const generateFileUploadForm_1 = require("../file/generateFileUploadForm");
|
|
|
20
20
|
const generateTableUploadForm_1 = require("../file/generateTableUploadForm");
|
|
21
21
|
const utils_1 = require("../utils");
|
|
22
22
|
const JobExecutor_1 = require("./JobExecutor");
|
|
23
|
+
const unauthenticatedRequestMessage_1 = require("./unauthenticatedRequestMessage");
|
|
23
24
|
class WebJobExecutor extends JobExecutor_1.BaseJobExecutor {
|
|
24
25
|
constructor(serverUrl, serverType, jobsPath, requestClient, sasViyaApiClient) {
|
|
25
26
|
super(serverUrl, serverType);
|
|
@@ -45,6 +46,10 @@ class WebJobExecutor extends JobExecutor_1.BaseJobExecutor {
|
|
|
45
46
|
catch (e) {
|
|
46
47
|
return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
|
|
47
48
|
if (e instanceof errors_1.LoginRequiredError) {
|
|
49
|
+
if (!loginRequiredCallback) {
|
|
50
|
+
reject(new errors_1.ErrorResponse(unauthenticatedRequestMessage_1.UNAUTHENTICATED_REQUEST_MESSAGE, e));
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
48
53
|
this.appendWaitingRequest(() => {
|
|
49
54
|
return this.execute(sasJob, data, config, loginRequiredCallback, authConfig, extraResponseAttributes).then((res) => {
|
|
50
55
|
resolve(res);
|
|
@@ -181,7 +186,8 @@ class WebJobExecutor extends JobExecutor_1.BaseJobExecutor {
|
|
|
181
186
|
}
|
|
182
187
|
if (e instanceof errors_1.LoginRequiredError) {
|
|
183
188
|
if (!loginRequiredCallback) {
|
|
184
|
-
reject(new errors_1.ErrorResponse(
|
|
189
|
+
reject(new errors_1.ErrorResponse(unauthenticatedRequestMessage_1.UNAUTHENTICATED_REQUEST_MESSAGE, e));
|
|
190
|
+
return;
|
|
185
191
|
}
|
|
186
192
|
this.appendWaitingRequest(() => {
|
|
187
193
|
return this.execute(sasJob, data, config, loginRequiredCallback, authConfig, extraResponseAttributes).then((res) => {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const UNAUTHENTICATED_REQUEST_MESSAGE = "Request is not authenticated. Make sure .env file exists with valid credentials.";
|
|
@@ -13,6 +13,7 @@ exports.WebJobExecutor = void 0;
|
|
|
13
13
|
const errors_1 = require("../../types/errors");
|
|
14
14
|
const utils_1 = require("../../utils");
|
|
15
15
|
const JobExecutor_1 = require("../../job-execution/JobExecutor");
|
|
16
|
+
const unauthenticatedRequestMessage_1 = require("../../job-execution/unauthenticatedRequestMessage");
|
|
16
17
|
const parseWeboutResponse_1 = require("../../utils/parseWeboutResponse");
|
|
17
18
|
class WebJobExecutor extends JobExecutor_1.BaseJobExecutor {
|
|
18
19
|
constructor(serverUrl, serverType, jobsPath, requestClient) {
|
|
@@ -61,7 +62,8 @@ class WebJobExecutor extends JobExecutor_1.BaseJobExecutor {
|
|
|
61
62
|
}
|
|
62
63
|
if (e instanceof errors_1.LoginRequiredError) {
|
|
63
64
|
if (!loginRequiredCallback) {
|
|
64
|
-
reject(new errors_1.ErrorResponse(
|
|
65
|
+
reject(new errors_1.ErrorResponse(unauthenticatedRequestMessage_1.UNAUTHENTICATED_REQUEST_MESSAGE, e));
|
|
66
|
+
return;
|
|
65
67
|
}
|
|
66
68
|
this.appendWaitingRequest(() => {
|
|
67
69
|
return this.execute(sasJob, data, config, loginRequiredCallback, authConfig, extraResponseAttributes).then((res) => {
|
package/package.json
CHANGED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One member of a service pack, reported as the deploy writes it.
|
|
3
|
+
*
|
|
4
|
+
* A deploy is a sequential series of REST calls - one folder, one file, one job
|
|
5
|
+
* definition at a time - and on a real server that is long enough that a caller
|
|
6
|
+
* with no progress reporting looks hung. `deployServicePack` accepts an
|
|
7
|
+
* `onProgress` callback and calls it once per member, immediately before the
|
|
8
|
+
* member is written, so a caller can report position without knowing how the
|
|
9
|
+
* pack is structured.
|
|
10
|
+
*/
|
|
11
|
+
export interface DeployProgress {
|
|
12
|
+
/** What is being written: a folder, a file, or a service (a Viya job definition). */
|
|
13
|
+
type: 'folder' | 'file' | 'service';
|
|
14
|
+
/** The member name - a folder name, a file name, or a job name. */
|
|
15
|
+
name: string;
|
|
16
|
+
/** Full path of the folder the member is written into. */
|
|
17
|
+
parentFolder: string;
|
|
18
|
+
/** 1-based position of this member in deployment order. */
|
|
19
|
+
index: number;
|
|
20
|
+
/**
|
|
21
|
+
* Total members in the whole deployment, so a caller can render `12/88`.
|
|
22
|
+
*
|
|
23
|
+
* Every member is counted, at every depth, including folders: it is the
|
|
24
|
+
* number of `onProgress` calls the deploy will make.
|
|
25
|
+
*/
|
|
26
|
+
total: number;
|
|
27
|
+
}
|
package/types/index.d.ts
CHANGED
package/types/index.js
CHANGED
|
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./Context"), exports);
|
|
18
18
|
__exportStar(require("./CsrfToken"), exports);
|
|
19
|
+
__exportStar(require("./DeployProgress"), exports);
|
|
19
20
|
__exportStar(require("./Folder"), exports);
|
|
20
21
|
__exportStar(require("./File"), exports);
|
|
21
22
|
__exportStar(require("./Job"), exports);
|