@opencrvs/toolkit 2.1.0-rc.f85d99c → 2.1.0-rc.fa9aecf

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 (70) hide show
  1. package/dist/application-config/index.js +190 -202
  2. package/dist/cli.js +48 -0
  3. package/dist/commons/api/router.d.ts +1639 -1603
  4. package/dist/commons/application-config/index.d.ts +6 -6
  5. package/dist/commons/conditionals/conditionals.d.ts +323 -32
  6. package/dist/commons/conditionals/validate.d.ts +1 -2
  7. package/dist/commons/events/ActionConfig.d.ts +105 -126
  8. package/dist/commons/events/ActionDocument.d.ts +123 -117
  9. package/dist/commons/events/ActionInput.d.ts +6 -0
  10. package/dist/commons/events/ActionType.d.ts +62 -62
  11. package/dist/commons/events/AdvancedSearchConfig.d.ts +507 -513
  12. package/dist/commons/events/AuditLog.d.ts +43 -43
  13. package/dist/commons/events/CompositeFieldValue.d.ts +4 -4
  14. package/dist/commons/events/Conditional.d.ts +3 -3
  15. package/dist/commons/events/CountryConfigQueryInput.d.ts +590 -608
  16. package/dist/commons/events/Draft.d.ts +37 -37
  17. package/dist/commons/events/DynamicFieldValue.d.ts +9 -9
  18. package/dist/commons/events/EventConfig.d.ts +5 -5
  19. package/dist/commons/events/EventDocument.d.ts +48 -48
  20. package/dist/commons/events/EventIndex.d.ts +71 -52
  21. package/dist/commons/events/EventMetadata.d.ts +40 -41
  22. package/dist/commons/events/FieldConfig.d.ts +337 -342
  23. package/dist/commons/events/FieldType.d.ts +51 -51
  24. package/dist/commons/events/FieldTypeMapping.d.ts +90 -90
  25. package/dist/commons/events/FieldValue.d.ts +12 -12
  26. package/dist/commons/events/Flag.d.ts +15 -63
  27. package/dist/commons/events/TemplateConfig.d.ts +1 -1
  28. package/dist/commons/events/WorkqueueColumnConfig.d.ts +40 -40
  29. package/dist/commons/events/WorkqueueConfig.d.ts +813 -828
  30. package/dist/commons/events/deduplication.d.ts +1 -1
  31. package/dist/commons/events/event.d.ts +2 -2
  32. package/dist/commons/events/field.d.ts +198 -69
  33. package/dist/commons/events/locations.d.ts +4 -4
  34. package/dist/commons/events/mocks.test.utils.d.ts +2 -2
  35. package/dist/commons/events/scopes.d.ts +4 -4
  36. package/dist/commons/events/state/index.d.ts +17 -17
  37. package/dist/commons/events/state/utils.d.ts +7 -7
  38. package/dist/commons/events/test.utils.d.ts +38 -35
  39. package/dist/commons/events/utils.d.ts +114 -114
  40. package/dist/commons/notification/UserNotifications.d.ts +10 -10
  41. package/dist/conditionals/index.js +55 -303
  42. package/dist/environment/derived-variables.d.ts +131 -119
  43. package/dist/environment/derived-variables.d.ts.map +1 -1
  44. package/dist/environment/derived-variables.js +14 -0
  45. package/dist/environment/logger.d.ts +12 -3
  46. package/dist/environment/logger.d.ts.map +1 -1
  47. package/dist/environment/manage-users.js +7 -17
  48. package/dist/environment/questions.d.ts +74 -75
  49. package/dist/environment/questions.d.ts.map +1 -1
  50. package/dist/environment/setup-environment.js +28 -8
  51. package/dist/environment/swarm-to-k8s.js +7 -17
  52. package/dist/environment/update-workflows.js +7 -17
  53. package/dist/environment/users.js +7 -17
  54. package/dist/environment/utils.d.ts +1 -1
  55. package/dist/environment/utils.js +7 -17
  56. package/dist/events/deduplication.d.ts +1 -1
  57. package/dist/events/index.js +2698 -2735
  58. package/dist/migrations/v2.0/convert-config-files-to-ts.js +7 -17
  59. package/dist/migrations/v2.0/migrate-application-config-url.js +3 -4
  60. package/dist/migrations/v2.0/remove-hearth-migrations.js +7 -17
  61. package/dist/notification/index.js +967 -1528
  62. package/dist/scopes/index.d.ts +146 -396
  63. package/dist/scopes/index.js +55 -304
  64. package/dist/templates/charts-values/dependencies/values.yaml +3 -0
  65. package/dist/templates/charts-values/opencrvs-services/values.yaml +4 -0
  66. package/opencrvs-toolkit-2.1.0-rc.fa9aecf.tgz +0 -0
  67. package/package.json +4 -3
  68. package/tsconfig.tsbuildinfo +1 -1
  69. package/dist/commons/events/ActionStatus.d.ts +0 -14
  70. package/opencrvs-toolkit-2.1.0-rc.f85d99c.tgz +0 -0
@@ -25,23 +25,13 @@ 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
- 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
- })();
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
+ };
45
35
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
46
36
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
47
37
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -92,10 +92,9 @@ const FUNCTION_LIKE_KINDS = [
92
92
  * Falls back to `<anonymous>` when nothing useful can be derived.
93
93
  */
94
94
  function describeFunction(node) {
95
- var _a;
96
- var _b, _c;
95
+ var _a, _b, _c;
97
96
  if (ts_morph_1.Node.isFunctionDeclaration(node) || ts_morph_1.Node.isMethodDeclaration(node)) {
98
- return (_b = node.getName()) !== null && _b !== void 0 ? _b : '<anonymous>';
97
+ return (_a = node.getName()) !== null && _a !== void 0 ? _a : '<anonymous>';
99
98
  }
100
99
  // FunctionExpression / ArrowFunction: try to pick up the assignment target.
101
100
  const parent = node.getParent();
@@ -107,7 +106,7 @@ function describeFunction(node) {
107
106
  }
108
107
  if (ts_morph_1.Node.isFunctionExpression(node) &&
109
108
  node.getNameNode() !== undefined) {
110
- return (_c = (_a = node.getNameNode()) === null || _a === void 0 ? void 0 : _a.getText()) !== null && _c !== void 0 ? _c : '<anonymous>';
109
+ return (_c = (_b = node.getNameNode()) === null || _b === void 0 ? void 0 : _b.getText()) !== null && _c !== void 0 ? _c : '<anonymous>';
111
110
  }
112
111
  return '<anonymous>';
113
112
  }
@@ -25,23 +25,13 @@ 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
- 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
- })();
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
+ };
45
35
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
46
36
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
47
37
  return new (P || (P = Promise))(function (resolve, reject) {