@opencrvs/toolkit 1.9.13-rc.72233cd → 1.9.13-rc.797da9b

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 (122) hide show
  1. package/build.sh +0 -13
  2. package/dist/api/index.d.ts.map +1 -1
  3. package/dist/commons/api/router.d.ts +4561 -3370
  4. package/dist/commons/conditionals/conditionals.d.ts +295 -28
  5. package/dist/commons/conditionals/validate.d.ts +9 -11
  6. package/dist/commons/events/ActionConfig.d.ts +1555 -415
  7. package/dist/commons/events/ActionDocument.d.ts +1941 -888
  8. package/dist/commons/events/ActionInput.d.ts +1277 -277
  9. package/dist/commons/events/ActionType.d.ts +11 -91
  10. package/dist/commons/events/AdvancedSearchConfig.d.ts +1496 -294
  11. package/dist/commons/events/CompositeFieldValue.d.ts +190 -30
  12. package/dist/commons/events/Conditional.d.ts +38 -26
  13. package/dist/commons/events/Constants.d.ts +1 -1
  14. package/dist/commons/events/CountryConfigQueryInput.d.ts +4471 -1592
  15. package/dist/commons/events/CreatedAtLocation.d.ts +2 -0
  16. package/dist/commons/events/DeduplicationConfig.d.ts +171 -15
  17. package/dist/commons/events/Draft.d.ts +113 -72
  18. package/dist/commons/events/DynamicFieldValue.d.ts +78 -12
  19. package/dist/commons/events/EventConfig.d.ts +2420 -35
  20. package/dist/commons/events/EventConfigInput.d.ts +3 -0
  21. package/dist/commons/events/EventDocument.d.ts +1366 -354
  22. package/dist/commons/events/EventIndex.d.ts +1010 -212
  23. package/dist/commons/events/EventInput.d.ts +8 -3
  24. package/dist/commons/events/EventMetadata.d.ts +357 -130
  25. package/dist/commons/events/FieldConfig.d.ts +16025 -2936
  26. package/dist/commons/events/FieldType.d.ts +4 -26
  27. package/dist/commons/events/FieldTypeMapping.d.ts +906 -314
  28. package/dist/commons/events/FieldValue.d.ts +527 -149
  29. package/dist/commons/events/FileUtils.d.ts +2 -2
  30. package/dist/commons/events/FormConfig.d.ts +721 -54
  31. package/dist/commons/events/PageConfig.d.ts +320 -58
  32. package/dist/commons/events/PlainDate.d.ts +1 -1
  33. package/dist/commons/events/SummaryConfig.d.ts +161 -14
  34. package/dist/commons/events/TemplateConfig.d.ts +3 -2
  35. package/dist/commons/events/TranslationConfig.d.ts +2 -2
  36. package/dist/commons/events/WorkqueueColumnConfig.d.ts +37 -74
  37. package/dist/commons/events/WorkqueueConfig.d.ts +7480 -2135
  38. package/dist/commons/events/deduplication.d.ts +3 -3
  39. package/dist/commons/events/defineConfig.d.ts +247 -2
  40. package/dist/commons/events/field.d.ts +22 -0
  41. package/dist/commons/events/index.d.ts +0 -3
  42. package/dist/commons/events/locations.d.ts +20 -57
  43. package/dist/commons/events/scopes.d.ts +34 -35
  44. package/dist/commons/events/state/availableActions.d.ts +2 -7
  45. package/dist/commons/events/state/flags.d.ts +3 -21
  46. package/dist/commons/events/state/index.d.ts +27 -30
  47. package/dist/commons/events/state/utils.d.ts +172 -190
  48. package/dist/commons/events/test.utils.d.ts +11 -52
  49. package/dist/commons/events/transactions.d.ts +1 -1
  50. package/dist/commons/events/utils.d.ts +273 -373
  51. package/dist/commons/notification/UserNotifications.d.ts +637 -61
  52. package/dist/conditionals/index.d.ts.map +1 -1
  53. package/dist/conditionals/index.js +2006 -270
  54. package/dist/events/deduplication.d.ts +3 -3
  55. package/dist/events/index.js +2203 -2847
  56. package/dist/notification/index.d.ts.map +1 -1
  57. package/dist/notification/index.js +1844 -2076
  58. package/dist/scopes/index.d.ts +353 -640
  59. package/dist/scopes/index.d.ts.map +1 -1
  60. package/dist/scopes/index.js +300 -340
  61. package/package.json +3 -13
  62. package/tsconfig.json +2 -12
  63. package/tsconfig.tsbuildinfo +1 -1
  64. package/dist/application-config/index.d.ts +0 -2
  65. package/dist/application-config/index.d.ts.map +0 -1
  66. package/dist/application-config/index.js +0 -2128
  67. package/dist/cli.d.ts +0 -2
  68. package/dist/cli.d.ts.map +0 -1
  69. package/dist/cli.js +0 -3237
  70. package/dist/commons/application-config/index.d.ts +0 -84
  71. package/dist/commons/events/AuditLog.d.ts +0 -405
  72. package/dist/commons/events/Flag.d.ts +0 -67
  73. package/dist/commons/events/eventConfigValidation.d.ts +0 -8
  74. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts +0 -3
  75. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts.map +0 -1
  76. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.js +0 -405
  77. package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts +0 -2
  78. package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts.map +0 -1
  79. package/dist/migrations/v2.0/convert-config-files-to-ts.js +0 -829
  80. package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts +0 -3
  81. package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts.map +0 -1
  82. package/dist/migrations/v2.0/convert-paragraph-to-heading.js +0 -159
  83. package/dist/migrations/v2.0/index.d.ts +0 -7
  84. package/dist/migrations/v2.0/index.d.ts.map +0 -1
  85. package/dist/migrations/v2.0/index.js +0 -3176
  86. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts +0 -3
  87. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts.map +0 -1
  88. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.js +0 -344
  89. package/dist/migrations/v2.0/migrate-scopes.d.ts +0 -3
  90. package/dist/migrations/v2.0/migrate-scopes.d.ts.map +0 -1
  91. package/dist/migrations/v2.0/migrate-scopes.js +0 -282
  92. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts +0 -3
  93. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts.map +0 -1
  94. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.js +0 -268
  95. package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts +0 -3
  96. package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts.map +0 -1
  97. package/dist/migrations/v2.0/migrate-workqueue-configs.js +0 -237
  98. package/dist/migrations/v2.0/remove-delete-actions.d.ts +0 -3
  99. package/dist/migrations/v2.0/remove-delete-actions.d.ts.map +0 -1
  100. package/dist/migrations/v2.0/remove-delete-actions.js +0 -157
  101. package/dist/migrations/v2.0/remove-demo-scope.d.ts +0 -3
  102. package/dist/migrations/v2.0/remove-demo-scope.d.ts.map +0 -1
  103. package/dist/migrations/v2.0/remove-demo-scope.js +0 -75
  104. package/dist/migrations/v2.0/remove-deprecated-imports.d.ts +0 -3
  105. package/dist/migrations/v2.0/remove-deprecated-imports.d.ts.map +0 -1
  106. package/dist/migrations/v2.0/remove-deprecated-imports.js +0 -97
  107. package/dist/migrations/v2.0/remove-hearth-migrations.d.ts +0 -3
  108. package/dist/migrations/v2.0/remove-hearth-migrations.d.ts.map +0 -1
  109. package/dist/migrations/v2.0/remove-hearth-migrations.js +0 -78
  110. package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts +0 -3
  111. package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts.map +0 -1
  112. package/dist/migrations/v2.0/remove-pending-certification-flag.js +0 -110
  113. package/dist/migrations/v2.0/remove-review-from-register-action.d.ts +0 -3
  114. package/dist/migrations/v2.0/remove-review-from-register-action.d.ts.map +0 -1
  115. package/dist/migrations/v2.0/remove-review-from-register-action.js +0 -164
  116. package/dist/migrations/v2.0/rename-api-paths.d.ts +0 -3
  117. package/dist/migrations/v2.0/rename-api-paths.d.ts.map +0 -1
  118. package/dist/migrations/v2.0/rename-api-paths.js +0 -188
  119. package/dist/migrations/v2.0/rename-location-parent-id.d.ts +0 -3
  120. package/dist/migrations/v2.0/rename-location-parent-id.d.ts.map +0 -1
  121. package/dist/migrations/v2.0/rename-location-parent-id.js +0 -181
  122. package/opencrvs-toolkit-1.9.13-rc.72233cd.tgz +0 -0
@@ -1,90 +1,53 @@
1
- import * as z from 'zod/v4';
2
- export declare const WorkqueueColumnKeysArray: readonly ["id", "type", "status", "createdAt", "dateOfEvent", "placeOfEvent", "createdBy", "createdByUserType", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags", "title", "outbox"];
3
- export declare const WorkqueueColumnKeys: z.ZodEnum<{
4
- id: "id";
5
- title: "title";
6
- type: "type";
7
- updatedAt: "updatedAt";
8
- placeOfEvent: "placeOfEvent";
9
- createdByUserType: "createdByUserType";
10
- createdAt: "createdAt";
11
- createdBy: "createdBy";
12
- createdAtLocation: "createdAtLocation";
13
- status: "status";
14
- assignedTo: "assignedTo";
15
- trackingId: "trackingId";
16
- legalStatuses: "legalStatuses";
17
- dateOfEvent: "dateOfEvent";
18
- updatedByUserRole: "updatedByUserRole";
19
- updatedAtLocation: "updatedAtLocation";
20
- updatedBy: "updatedBy";
21
- flags: "flags";
22
- outbox: "outbox";
23
- }>;
1
+ import { z } from 'zod';
2
+ import { TranslationConfig } from './TranslationConfig';
3
+ export declare const WorkqueueColumnKeysArray: readonly ["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "createdByUserType", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags", "title", "outbox"];
4
+ export declare const WorkqueueColumnKeys: z.ZodEnum<["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "createdByUserType", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags", "title", "outbox"]>;
24
5
  export type WorkqueueColumnKeys = z.infer<typeof WorkqueueColumnKeys>;
25
6
  export declare const WorkqueueColumnValue: z.ZodObject<{
26
- $event: z.ZodEnum<{
27
- id: "id";
28
- title: "title";
29
- type: "type";
30
- updatedAt: "updatedAt";
31
- placeOfEvent: "placeOfEvent";
32
- createdByUserType: "createdByUserType";
33
- createdAt: "createdAt";
34
- createdBy: "createdBy";
35
- createdAtLocation: "createdAtLocation";
36
- status: "status";
37
- assignedTo: "assignedTo";
38
- trackingId: "trackingId";
39
- legalStatuses: "legalStatuses";
40
- dateOfEvent: "dateOfEvent";
41
- updatedByUserRole: "updatedByUserRole";
42
- updatedAtLocation: "updatedAtLocation";
43
- updatedBy: "updatedBy";
44
- flags: "flags";
45
- outbox: "outbox";
46
- }>;
47
- }, z.core.$strip>;
7
+ $event: z.ZodEnum<["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "createdByUserType", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags", "title", "outbox"]>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ $event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "trackingId" | "updatedAt" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
10
+ }, {
11
+ $event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "trackingId" | "updatedAt" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
12
+ }>;
48
13
  export type WorkqueueColumnValue = z.infer<typeof WorkqueueColumnValue>;
49
14
  /**
50
15
  * Configuration for column header and value of cell of workqueue.
51
16
  */
52
17
  export declare const WorkqueueColumn: z.ZodObject<{
53
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
18
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
19
+ id: string;
20
+ description: string;
21
+ defaultMessage: string;
22
+ }>;
54
23
  value: z.ZodObject<{
55
- $event: z.ZodEnum<{
56
- id: "id";
57
- title: "title";
58
- type: "type";
59
- updatedAt: "updatedAt";
60
- placeOfEvent: "placeOfEvent";
61
- createdByUserType: "createdByUserType";
62
- createdAt: "createdAt";
63
- createdBy: "createdBy";
64
- createdAtLocation: "createdAtLocation";
65
- status: "status";
66
- assignedTo: "assignedTo";
67
- trackingId: "trackingId";
68
- legalStatuses: "legalStatuses";
69
- dateOfEvent: "dateOfEvent";
70
- updatedByUserRole: "updatedByUserRole";
71
- updatedAtLocation: "updatedAtLocation";
72
- updatedBy: "updatedBy";
73
- flags: "flags";
74
- outbox: "outbox";
75
- }>;
76
- }, z.core.$strip>;
77
- }, z.core.$strip>;
78
- export type WorkqueueColumn = z.infer<typeof WorkqueueColumn>;
79
- export type WorkqueueColumnInput = z.infer<typeof WorkqueueColumn>;
80
- export declare function defineWorkqueuesColumns(workqueueColumns: WorkqueueColumnInput[]): {
24
+ $event: z.ZodEnum<["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "createdByUserType", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags", "title", "outbox"]>;
25
+ }, "strip", z.ZodTypeAny, {
26
+ $event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "trackingId" | "updatedAt" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
27
+ }, {
28
+ $event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "trackingId" | "updatedAt" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
29
+ }>;
30
+ }, "strip", z.ZodTypeAny, {
31
+ value: {
32
+ $event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "trackingId" | "updatedAt" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
33
+ };
34
+ label: TranslationConfig;
35
+ }, {
36
+ value: {
37
+ $event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "trackingId" | "updatedAt" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
38
+ };
81
39
  label: {
82
40
  id: string;
83
- defaultMessage: string;
84
41
  description: string;
42
+ defaultMessage: string;
85
43
  };
44
+ }>;
45
+ export type WorkqueueColumn = z.infer<typeof WorkqueueColumn>;
46
+ export type WorkqueueColumnInput = z.infer<typeof WorkqueueColumn>;
47
+ export declare function defineWorkqueuesColumns(workqueueColumns: WorkqueueColumnInput[]): {
86
48
  value: {
87
- $event: "id" | "title" | "type" | "updatedAt" | "placeOfEvent" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "status" | "assignedTo" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
49
+ $event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "trackingId" | "updatedAt" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
88
50
  };
51
+ label: TranslationConfig;
89
52
  }[];
90
53
  //# sourceMappingURL=WorkqueueColumnConfig.d.ts.map