@opencrvs/toolkit 2.1.0-rc.4bddaf2 → 2.1.0-rc.4c1664c
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/build.sh +2 -2
- package/dist/application-config/index.js +12 -0
- package/dist/cli.js +165 -5154
- package/dist/commons/api/router.d.ts +723 -130
- package/dist/commons/conditionals/conditionals.d.ts +1589 -37
- package/dist/commons/events/ActionConfig.d.ts +209 -0
- package/dist/commons/events/ActionDocument.d.ts +44 -0
- package/dist/commons/events/ActionInput.d.ts +26 -0
- package/dist/commons/events/ActionType.d.ts +6 -1
- package/dist/commons/events/AdvancedSearchConfig.d.ts +6 -0
- package/dist/commons/events/AuditLog.d.ts +2 -0
- package/dist/commons/events/Draft.d.ts +2 -0
- package/dist/commons/events/EventDocument.d.ts +22 -0
- package/dist/commons/events/FieldConfig.d.ts +5 -0
- package/dist/commons/events/WorkqueueConfig.d.ts +5 -2
- package/dist/commons/events/field.d.ts +722 -34
- package/dist/commons/events/scopes.d.ts +1 -0
- package/dist/commons/events/test.utils.d.ts +9 -1
- package/dist/commons/events/utils.d.ts +23 -1
- package/dist/conditionals/index.js +2 -0
- package/dist/environment/derived-variables.d.ts +0 -12
- package/dist/environment/derived-variables.d.ts.map +1 -1
- package/dist/environment/derived-variables.js +0 -14
- package/dist/environment/logger.d.ts +3 -12
- package/dist/environment/logger.d.ts.map +1 -1
- package/dist/environment/manage-users.js +17 -7
- package/dist/environment/setup-environment.js +0 -14
- package/dist/environment/swarm-to-k8s.js +17 -7
- package/dist/environment/update-workflows.js +17 -7
- package/dist/environment/users.js +17 -7
- package/dist/environment/utils.js +17 -7
- package/dist/events/index.js +195 -30
- package/dist/migrations/v2.0/convert-config-files-to-ts.js +17 -7
- package/dist/migrations/v2.0/index.js +88 -5144
- package/dist/migrations/v2.0/remove-hearth-migrations.js +17 -7
- package/dist/migrations/v2.1/add-explicit-correction-flags.d.ts +3 -0
- package/dist/migrations/v2.1/add-explicit-correction-flags.d.ts.map +1 -0
- package/dist/migrations/v2.1/add-explicit-correction-flags.js +234 -0
- package/dist/migrations/v2.1/index.d.ts +6 -0
- package/dist/migrations/v2.1/index.d.ts.map +1 -0
- package/dist/migrations/v2.1/index.js +218 -0
- package/dist/notification/index.js +146 -22
- package/dist/scopes/index.d.ts +7 -1
- package/dist/scopes/index.js +2 -0
- package/dist/templates/charts-values/dependencies/values.yaml +0 -3
- package/dist/templates/charts-values/opencrvs-services/values.yaml +0 -4
- package/opencrvs-toolkit-2.1.0-rc.4c1664c.tgz +0 -0
- package/package.json +2 -2
- package/tsconfig.tsbuildinfo +1 -1
- package/opencrvs-toolkit-2.1.0-rc.4bddaf2.tgz +0 -0
|
@@ -20,6 +20,7 @@ export declare const ACTION_SCOPE_MAP: {
|
|
|
20
20
|
MARK_AS_DUPLICATE: "record.review-duplicates"[];
|
|
21
21
|
MARK_AS_NOT_DUPLICATE: "record.review-duplicates"[];
|
|
22
22
|
ARCHIVE: "record.archive"[];
|
|
23
|
+
UNARCHIVE: "record.unarchive"[];
|
|
23
24
|
REJECT: "record.reject"[];
|
|
24
25
|
ASSIGN: null;
|
|
25
26
|
UNASSIGN: null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UUID } from '../uuid';
|
|
2
2
|
import { ActionDocument, ActionUpdate } from './ActionDocument';
|
|
3
|
-
import { ApproveCorrectionActionInput, ArchiveActionInput, AssignActionInput, DeclareActionInput, EditActionInput, MarkAsDuplicateActionInput, MarkNotDuplicateActionInput, NotifyActionInput, RegisterActionInput, RejectCorrectionActionInput, RejectDeclarationActionInput, RequestCorrectionActionInput, UnassignActionInput } from './ActionInput';
|
|
3
|
+
import { ApproveCorrectionActionInput, ArchiveActionInput, AssignActionInput, DeclareActionInput, EditActionInput, MarkAsDuplicateActionInput, MarkNotDuplicateActionInput, NotifyActionInput, RegisterActionInput, RejectCorrectionActionInput, RejectDeclarationActionInput, RequestCorrectionActionInput, UnarchiveActionInput, UnassignActionInput } from './ActionInput';
|
|
4
4
|
import { ActionType } from './ActionType';
|
|
5
5
|
import { Draft } from './Draft';
|
|
6
6
|
import { EventConfig } from './EventConfig';
|
|
@@ -131,6 +131,14 @@ export declare function eventPayloadGenerator(rng: () => number, configuration?:
|
|
|
131
131
|
reason: string;
|
|
132
132
|
};
|
|
133
133
|
};
|
|
134
|
+
unarchive: (eventId: string, input?: Partial<Pick<UnarchiveActionInput, "transactionId" | "declaration" | "keepAssignment">>) => {
|
|
135
|
+
transactionId: string;
|
|
136
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
137
|
+
keepAssignment?: boolean | undefined;
|
|
138
|
+
type: "UNARCHIVE";
|
|
139
|
+
annotation: {};
|
|
140
|
+
eventId: string;
|
|
141
|
+
};
|
|
134
142
|
reject: (eventId: string, input?: Partial<Pick<RejectDeclarationActionInput, "transactionId" | "annotation" | "keepAssignment">>) => {
|
|
135
143
|
transactionId: string;
|
|
136
144
|
annotation: {};
|
|
@@ -50,6 +50,14 @@ export declare function getActionConfig({ eventConfiguration, actionType, custom
|
|
|
50
50
|
customActionType?: string;
|
|
51
51
|
}): ActionConfig | undefined;
|
|
52
52
|
export declare function getCustomActionFields(eventConfiguration: EventConfig, customActionType: string): FieldConfig[];
|
|
53
|
+
/**
|
|
54
|
+
* Returns the fields configured for an action's confirmation dialog.
|
|
55
|
+
*
|
|
56
|
+
* Unlike review fields and supporting copy, NOTIFY does NOT fall back to the
|
|
57
|
+
* DECLARE config here: dialog fields always come from the action's own
|
|
58
|
+
* configuration entry.
|
|
59
|
+
*/
|
|
60
|
+
export declare function getActionFormFields(eventConfiguration: EventConfig, actionType: ActionType, customActionType?: string): FieldConfig[];
|
|
53
61
|
export declare function getPrintCertificatePages(configuration: EventConfig): ({
|
|
54
62
|
id: string;
|
|
55
63
|
title: {
|
|
@@ -328,6 +336,20 @@ export declare function findLastAssignmentAction(actions: Action[]): {
|
|
|
328
336
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
329
337
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
330
338
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
339
|
+
} | {
|
|
340
|
+
id: string & import("zod").$brand<"UUID">;
|
|
341
|
+
transactionId: string;
|
|
342
|
+
createdByUserType: "user" | "system";
|
|
343
|
+
createdAt: string;
|
|
344
|
+
createdBy: string;
|
|
345
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
346
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
347
|
+
type: "UNARCHIVE";
|
|
348
|
+
createdByRole?: string | undefined;
|
|
349
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
350
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
351
|
+
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
352
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
331
353
|
} | {
|
|
332
354
|
id: string & import("zod").$brand<"UUID">;
|
|
333
355
|
transactionId: string;
|
|
@@ -441,7 +463,7 @@ export declare function findLastAssignmentAction(actions: Action[]): {
|
|
|
441
463
|
createdByUserType: "user" | "system";
|
|
442
464
|
createdAt: string;
|
|
443
465
|
createdBy: string;
|
|
444
|
-
type: "CUSTOM" | "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
|
|
466
|
+
type: "CUSTOM" | "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "UNARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
|
|
445
467
|
status: "Rejected";
|
|
446
468
|
createdByRole?: string | undefined;
|
|
447
469
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
@@ -152,6 +152,7 @@ var RecordScopeTypeV2 = z6.enum([
|
|
|
152
152
|
"record.edit",
|
|
153
153
|
"record.reject",
|
|
154
154
|
"record.archive",
|
|
155
|
+
"record.unarchive",
|
|
155
156
|
"record.review-duplicates",
|
|
156
157
|
"record.register",
|
|
157
158
|
"record.print-certified-copies",
|
|
@@ -257,6 +258,7 @@ var ScopesWithDeclaredOptions = RecordScopeTypeV2.extract([
|
|
|
257
258
|
"record.edit",
|
|
258
259
|
"record.reject",
|
|
259
260
|
"record.archive",
|
|
261
|
+
"record.unarchive",
|
|
260
262
|
"record.review-duplicates",
|
|
261
263
|
"record.register"
|
|
262
264
|
]);
|
|
@@ -58,18 +58,6 @@ export declare const derivedVariables: readonly [{
|
|
|
58
58
|
readonly valueType: "SECRET";
|
|
59
59
|
readonly type: "disabled";
|
|
60
60
|
readonly scope: "ENVIRONMENT";
|
|
61
|
-
}, {
|
|
62
|
-
readonly name: "MONGODB_ADMIN_USER";
|
|
63
|
-
readonly valueLabel: "MONGODB_ADMIN_USER";
|
|
64
|
-
readonly valueType: "SECRET";
|
|
65
|
-
readonly type: "disabled";
|
|
66
|
-
readonly scope: "ENVIRONMENT";
|
|
67
|
-
}, {
|
|
68
|
-
readonly name: "MONGODB_ADMIN_PASSWORD";
|
|
69
|
-
readonly valueLabel: "MONGODB_ADMIN_PASSWORD";
|
|
70
|
-
readonly valueType: "SECRET";
|
|
71
|
-
readonly type: "disabled";
|
|
72
|
-
readonly scope: "ENVIRONMENT";
|
|
73
61
|
}, {
|
|
74
62
|
readonly name: "POSTGRES_USER";
|
|
75
63
|
readonly valueLabel: "POSTGRES_USER";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"derived-variables.d.ts","sourceRoot":"","sources":["../../src/environment/derived-variables.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"derived-variables.d.ts","sourceRoot":"","sources":["../../src/environment/derived-variables.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6InB,CAAA"}
|
|
@@ -82,20 +82,6 @@ exports.derivedVariables = [
|
|
|
82
82
|
type: 'disabled',
|
|
83
83
|
scope: 'ENVIRONMENT'
|
|
84
84
|
},
|
|
85
|
-
{
|
|
86
|
-
name: 'MONGODB_ADMIN_USER',
|
|
87
|
-
valueLabel: 'MONGODB_ADMIN_USER',
|
|
88
|
-
valueType: 'SECRET',
|
|
89
|
-
type: 'disabled',
|
|
90
|
-
scope: 'ENVIRONMENT'
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
name: 'MONGODB_ADMIN_PASSWORD',
|
|
94
|
-
valueLabel: 'MONGODB_ADMIN_PASSWORD',
|
|
95
|
-
valueType: 'SECRET',
|
|
96
|
-
type: 'disabled',
|
|
97
|
-
scope: 'ENVIRONMENT'
|
|
98
|
-
},
|
|
99
85
|
{
|
|
100
86
|
name: 'POSTGRES_USER',
|
|
101
87
|
valueLabel: 'POSTGRES_USER',
|
|
@@ -1,15 +1,6 @@
|
|
|
1
|
-
export declare const log:
|
|
2
|
-
|
|
3
|
-
(message?: any, ...optionalParams: any[]): void;
|
|
4
|
-
};
|
|
5
|
-
export declare const warn: {
|
|
6
|
-
(...data: any[]): void;
|
|
7
|
-
(message?: any, ...optionalParams: any[]): void;
|
|
8
|
-
};
|
|
1
|
+
export declare const log: (message?: any, ...optionalParams: any[]) => void;
|
|
2
|
+
export declare const warn: (message?: any, ...optionalParams: any[]) => void;
|
|
9
3
|
export declare const success: (...args: any[]) => void;
|
|
10
|
-
export declare const info:
|
|
11
|
-
(...data: any[]): void;
|
|
12
|
-
(message?: any, ...optionalParams: any[]): void;
|
|
13
|
-
};
|
|
4
|
+
export declare const info: (message?: any, ...optionalParams: any[]) => void;
|
|
14
5
|
export declare const error: (...args: any[]) => void;
|
|
15
6
|
//# sourceMappingURL=logger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/environment/logger.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,GAAG
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/environment/logger.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,GAAG,mDAAc,CAAA;AAC9B,eAAO,MAAM,IAAI,mDAAe,CAAA;AAChC,eAAO,MAAM,OAAO,GAAI,GAAG,MAAM,GAAG,EAAE,SACI,CAAA;AAC1C,eAAO,MAAM,IAAI,mDAAe,CAAA;AAChC,eAAO,MAAM,KAAK,GAAI,GAAG,MAAM,GAAG,EAAE,SAA2C,CAAA"}
|
|
@@ -25,13 +25,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
25
25
|
}) : function(o, v) {
|
|
26
26
|
o["default"] = v;
|
|
27
27
|
});
|
|
28
|
-
var __importStar = (this && this.__importStar) || function (
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
};
|
|
28
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
29
|
+
var ownKeys = function(o) {
|
|
30
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
31
|
+
var ar = [];
|
|
32
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
33
|
+
return ar;
|
|
34
|
+
};
|
|
35
|
+
return ownKeys(o);
|
|
36
|
+
};
|
|
37
|
+
return function (mod) {
|
|
38
|
+
if (mod && mod.__esModule) return mod;
|
|
39
|
+
var result = {};
|
|
40
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
41
|
+
__setModuleDefault(result, mod);
|
|
42
|
+
return result;
|
|
43
|
+
};
|
|
44
|
+
})();
|
|
35
45
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
36
46
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
37
47
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -490,20 +490,6 @@ ALL_QUESTIONS.push(...questions_1.githubTokenQuestion, ...questions_1.githubOthe
|
|
|
490
490
|
value: findExistingOrDefine('MINIO_ROOT_PASSWORD', 'SECRET', 'ENVIRONMENT', (0, utils_1.generateLongPassword)()),
|
|
491
491
|
scope: 'ENVIRONMENT'
|
|
492
492
|
},
|
|
493
|
-
{
|
|
494
|
-
name: 'MONGODB_ADMIN_USER',
|
|
495
|
-
type: 'SECRET',
|
|
496
|
-
didExist: (0, utils_1.findExistingValue)('MONGODB_ADMIN_USER', 'SECRET', 'ENVIRONMENT', existingValues),
|
|
497
|
-
value: findExistingOrDefine('MONGODB_ADMIN_USER', 'SECRET', 'ENVIRONMENT', (0, utils_1.generateLongPassword)()),
|
|
498
|
-
scope: 'ENVIRONMENT'
|
|
499
|
-
},
|
|
500
|
-
{
|
|
501
|
-
name: 'MONGODB_ADMIN_PASSWORD',
|
|
502
|
-
type: 'SECRET',
|
|
503
|
-
didExist: (0, utils_1.findExistingValue)('MONGODB_ADMIN_PASSWORD', 'SECRET', 'ENVIRONMENT', existingValues),
|
|
504
|
-
value: findExistingOrDefine('MONGODB_ADMIN_PASSWORD', 'SECRET', 'ENVIRONMENT', (0, utils_1.generateLongPassword)()),
|
|
505
|
-
scope: 'ENVIRONMENT'
|
|
506
|
-
},
|
|
507
493
|
{
|
|
508
494
|
name: 'POSTGRES_USER',
|
|
509
495
|
type: 'SECRET',
|
|
@@ -25,13 +25,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
25
25
|
}) : function(o, v) {
|
|
26
26
|
o["default"] = v;
|
|
27
27
|
});
|
|
28
|
-
var __importStar = (this && this.__importStar) || function (
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
};
|
|
28
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
29
|
+
var ownKeys = function(o) {
|
|
30
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
31
|
+
var ar = [];
|
|
32
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
33
|
+
return ar;
|
|
34
|
+
};
|
|
35
|
+
return ownKeys(o);
|
|
36
|
+
};
|
|
37
|
+
return function (mod) {
|
|
38
|
+
if (mod && mod.__esModule) return mod;
|
|
39
|
+
var result = {};
|
|
40
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
41
|
+
__setModuleDefault(result, mod);
|
|
42
|
+
return result;
|
|
43
|
+
};
|
|
44
|
+
})();
|
|
35
45
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
36
46
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
37
47
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -25,13 +25,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
25
25
|
}) : function(o, v) {
|
|
26
26
|
o["default"] = v;
|
|
27
27
|
});
|
|
28
|
-
var __importStar = (this && this.__importStar) || function (
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
};
|
|
28
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
29
|
+
var ownKeys = function(o) {
|
|
30
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
31
|
+
var ar = [];
|
|
32
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
33
|
+
return ar;
|
|
34
|
+
};
|
|
35
|
+
return ownKeys(o);
|
|
36
|
+
};
|
|
37
|
+
return function (mod) {
|
|
38
|
+
if (mod && mod.__esModule) return mod;
|
|
39
|
+
var result = {};
|
|
40
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
41
|
+
__setModuleDefault(result, mod);
|
|
42
|
+
return result;
|
|
43
|
+
};
|
|
44
|
+
})();
|
|
35
45
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
36
46
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
37
47
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -25,13 +25,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
25
25
|
}) : function(o, v) {
|
|
26
26
|
o["default"] = v;
|
|
27
27
|
});
|
|
28
|
-
var __importStar = (this && this.__importStar) || function (
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
};
|
|
28
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
29
|
+
var ownKeys = function(o) {
|
|
30
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
31
|
+
var ar = [];
|
|
32
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
33
|
+
return ar;
|
|
34
|
+
};
|
|
35
|
+
return ownKeys(o);
|
|
36
|
+
};
|
|
37
|
+
return function (mod) {
|
|
38
|
+
if (mod && mod.__esModule) return mod;
|
|
39
|
+
var result = {};
|
|
40
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
41
|
+
__setModuleDefault(result, mod);
|
|
42
|
+
return result;
|
|
43
|
+
};
|
|
44
|
+
})();
|
|
35
45
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
36
46
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
37
47
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -25,13 +25,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
25
25
|
}) : function(o, v) {
|
|
26
26
|
o["default"] = v;
|
|
27
27
|
});
|
|
28
|
-
var __importStar = (this && this.__importStar) || function (
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
};
|
|
28
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
29
|
+
var ownKeys = function(o) {
|
|
30
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
31
|
+
var ar = [];
|
|
32
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
33
|
+
return ar;
|
|
34
|
+
};
|
|
35
|
+
return ownKeys(o);
|
|
36
|
+
};
|
|
37
|
+
return function (mod) {
|
|
38
|
+
if (mod && mod.__esModule) return mod;
|
|
39
|
+
var result = {};
|
|
40
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
41
|
+
__setModuleDefault(result, mod);
|
|
42
|
+
return result;
|
|
43
|
+
};
|
|
44
|
+
})();
|
|
35
45
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
46
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
47
|
};
|