@opencrvs/toolkit 2.1.0-rc.e773220 → 2.1.0-rc.e8dd933

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.
Files changed (42) hide show
  1. package/dist/application-config/index.js +14 -1
  2. package/dist/cli.js +0 -48
  3. package/dist/commons/api/router.d.ts +758 -201
  4. package/dist/commons/conditionals/conditionals.d.ts +1589 -37
  5. package/dist/commons/events/ActionConfig.d.ts +33 -0
  6. package/dist/commons/events/ActionDocument.d.ts +50 -6
  7. package/dist/commons/events/ActionInput.d.ts +26 -6
  8. package/dist/commons/events/ActionType.d.ts +6 -1
  9. package/dist/commons/events/AdvancedSearchConfig.d.ts +6 -0
  10. package/dist/commons/events/AuditLog.d.ts +2 -0
  11. package/dist/commons/events/Draft.d.ts +2 -0
  12. package/dist/commons/events/EventDocument.d.ts +24 -2
  13. package/dist/commons/events/FieldConfig.d.ts +5 -0
  14. package/dist/commons/events/WorkqueueConfig.d.ts +5 -2
  15. package/dist/commons/events/field.d.ts +722 -34
  16. package/dist/commons/events/scopes.d.ts +1 -0
  17. package/dist/commons/events/test.utils.d.ts +9 -4
  18. package/dist/commons/events/utils.d.ts +26 -4
  19. package/dist/conditionals/index.js +2 -0
  20. package/dist/environment/derived-variables.d.ts +0 -12
  21. package/dist/environment/derived-variables.d.ts.map +1 -1
  22. package/dist/environment/derived-variables.js +0 -14
  23. package/dist/environment/logger.d.ts +3 -12
  24. package/dist/environment/logger.d.ts.map +1 -1
  25. package/dist/environment/manage-users.js +17 -7
  26. package/dist/environment/setup-environment.js +0 -14
  27. package/dist/environment/swarm-to-k8s.js +17 -7
  28. package/dist/environment/update-workflows.js +17 -7
  29. package/dist/environment/users.js +17 -7
  30. package/dist/environment/utils.js +17 -7
  31. package/dist/events/index.js +106 -29
  32. package/dist/migrations/v2.0/convert-config-files-to-ts.js +17 -7
  33. package/dist/migrations/v2.0/remove-hearth-migrations.js +17 -7
  34. package/dist/notification/index.js +58 -24
  35. package/dist/scopes/index.d.ts +7 -1
  36. package/dist/scopes/index.js +2 -0
  37. package/dist/templates/charts-values/dependencies/values.yaml +0 -3
  38. package/dist/templates/charts-values/opencrvs-services/values.yaml +0 -4
  39. package/opencrvs-toolkit-2.1.0-rc.e8dd933.tgz +0 -0
  40. package/package.json +3 -3
  41. package/tsconfig.tsbuildinfo +1 -1
  42. package/opencrvs-toolkit-2.1.0-rc.e773220.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';
@@ -101,9 +101,6 @@ export declare function eventPayloadGenerator(rng: () => number, configuration?:
101
101
  annotation: {};
102
102
  keepAssignment?: boolean | undefined;
103
103
  type: "EDIT";
104
- content: {
105
- comment: string;
106
- };
107
104
  eventId: string;
108
105
  };
109
106
  assign: (eventId: string, input?: Partial<Pick<AssignActionInput, "transactionId" | "assignedTo">>) => {
@@ -131,6 +128,14 @@ export declare function eventPayloadGenerator(rng: () => number, configuration?:
131
128
  reason: string;
132
129
  };
133
130
  };
131
+ unarchive: (eventId: string, input?: Partial<Pick<UnarchiveActionInput, "transactionId" | "declaration" | "keepAssignment">>) => {
132
+ transactionId: string;
133
+ declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
134
+ keepAssignment?: boolean | undefined;
135
+ type: "UNARCHIVE";
136
+ annotation: {};
137
+ eventId: string;
138
+ };
134
139
  reject: (eventId: string, input?: Partial<Pick<RejectDeclarationActionInput, "transactionId" | "annotation" | "keepAssignment">>) => {
135
140
  transactionId: string;
136
141
  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: {
@@ -195,14 +203,14 @@ export declare function findLastAssignmentAction(actions: Action[]): {
195
203
  declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
196
204
  status: "Requested" | "Accepted" | "Rejected";
197
205
  type: "EDIT";
198
- content: {
199
- comment?: string | undefined;
200
- };
201
206
  createdByRole?: string | undefined;
202
207
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
203
208
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
204
209
  annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
205
210
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
211
+ content?: {
212
+ comment?: string | undefined;
213
+ } | undefined;
206
214
  } | {
207
215
  id: string & import("zod").$brand<"UUID">;
208
216
  transactionId: string;
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2JnB,CAAA"}
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
- (...data: any[]): void;
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;;;CAAc,CAAA;AAC9B,eAAO,MAAM,IAAI;;;CAAe,CAAA;AAChC,eAAO,MAAM,OAAO,YAAa,GAAG,EAAE,SACI,CAAA;AAC1C,eAAO,MAAM,IAAI;;;CAAe,CAAA;AAChC,eAAO,MAAM,KAAK,YAAa,GAAG,EAAE,SAA2C,CAAA"}
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 (mod) {
29
- if (mod && mod.__esModule) return mod;
30
- var result = {};
31
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
32
- __setModuleDefault(result, mod);
33
- return result;
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 (mod) {
29
- if (mod && mod.__esModule) return mod;
30
- var result = {};
31
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
32
- __setModuleDefault(result, mod);
33
- return result;
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 (mod) {
29
- if (mod && mod.__esModule) return mod;
30
- var result = {};
31
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
32
- __setModuleDefault(result, mod);
33
- return result;
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 (mod) {
29
- if (mod && mod.__esModule) return mod;
30
- var result = {};
31
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
32
- __setModuleDefault(result, mod);
33
- return result;
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 (mod) {
29
- if (mod && mod.__esModule) return mod;
30
- var result = {};
31
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
32
- __setModuleDefault(result, mod);
33
- return result;
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
  };