@opencrvs/toolkit 1.9.12-rc.ace398e → 1.9.12-rc.ad09474

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/build.sh +5 -0
  2. package/dist/api/index.d.ts.map +1 -1
  3. package/dist/application-config/index.d.ts +2 -0
  4. package/dist/application-config/index.d.ts.map +1 -0
  5. package/dist/application-config/index.js +124 -0
  6. package/dist/commons/api/router.d.ts +3369 -2269
  7. package/dist/commons/application-config/index.d.ts +87 -0
  8. package/dist/commons/conditionals/conditionals.d.ts +27 -3
  9. package/dist/commons/conditionals/validate.d.ts +13 -2
  10. package/dist/commons/events/ActionConfig.d.ts +415 -1555
  11. package/dist/commons/events/ActionDocument.d.ts +889 -1942
  12. package/dist/commons/events/ActionInput.d.ts +277 -1073
  13. package/dist/commons/events/ActionType.d.ts +91 -11
  14. package/dist/commons/events/AdvancedSearchConfig.d.ts +288 -1496
  15. package/dist/commons/events/AuditLog.d.ts +405 -0
  16. package/dist/commons/events/CompositeFieldValue.d.ts +30 -190
  17. package/dist/commons/events/Conditional.d.ts +26 -38
  18. package/dist/commons/events/Constants.d.ts +1 -1
  19. package/dist/commons/events/CountryConfigQueryInput.d.ts +1345 -4495
  20. package/dist/commons/events/DeduplicationConfig.d.ts +15 -171
  21. package/dist/commons/events/Draft.d.ts +73 -108
  22. package/dist/commons/events/DynamicFieldValue.d.ts +7 -91
  23. package/dist/commons/events/EventConfig.d.ts +35 -2420
  24. package/dist/commons/events/EventConfigInput.d.ts +0 -3
  25. package/dist/commons/events/EventDocument.d.ts +354 -1366
  26. package/dist/commons/events/EventIndex.d.ts +208 -1014
  27. package/dist/commons/events/EventInput.d.ts +3 -8
  28. package/dist/commons/events/EventMetadata.d.ts +130 -357
  29. package/dist/commons/events/FieldConfig.d.ts +2776 -12896
  30. package/dist/commons/events/FieldType.d.ts +25 -4
  31. package/dist/commons/events/FieldTypeMapping.d.ts +289 -907
  32. package/dist/commons/events/FieldValue.d.ts +121 -527
  33. package/dist/commons/events/FileUtils.d.ts +2 -2
  34. package/dist/commons/events/Flag.d.ts +67 -0
  35. package/dist/commons/events/FormConfig.d.ts +54 -721
  36. package/dist/commons/events/PageConfig.d.ts +58 -320
  37. package/dist/commons/events/PlainDate.d.ts +1 -1
  38. package/dist/commons/events/SummaryConfig.d.ts +14 -161
  39. package/dist/commons/events/TemplateConfig.d.ts +2 -3
  40. package/dist/commons/events/TranslationConfig.d.ts +2 -2
  41. package/dist/commons/events/WorkqueueColumnConfig.d.ts +74 -37
  42. package/dist/commons/events/WorkqueueConfig.d.ts +2008 -7597
  43. package/dist/commons/events/deduplication.d.ts +3 -3
  44. package/dist/commons/events/defineConfig.d.ts +2 -243
  45. package/dist/commons/events/eventConfigValidation.d.ts +8 -0
  46. package/dist/commons/events/index.d.ts +3 -0
  47. package/dist/commons/events/locations.d.ts +57 -20
  48. package/dist/commons/events/scopes.d.ts +35 -34
  49. package/dist/commons/events/state/availableActions.d.ts +7 -2
  50. package/dist/commons/events/state/flags.d.ts +21 -3
  51. package/dist/commons/events/state/index.d.ts +30 -27
  52. package/dist/commons/events/state/utils.d.ts +191 -173
  53. package/dist/commons/events/test.utils.d.ts +52 -11
  54. package/dist/commons/events/transactions.d.ts +1 -1
  55. package/dist/commons/events/utils.d.ts +413 -310
  56. package/dist/commons/notification/UserNotifications.d.ts +61 -637
  57. package/dist/conditionals/index.d.ts.map +1 -1
  58. package/dist/conditionals/index.js +294 -14
  59. package/dist/events/deduplication.d.ts +3 -3
  60. package/dist/events/index.js +2721 -2099
  61. package/dist/notification/index.d.ts.map +1 -1
  62. package/dist/notification/index.js +2016 -1763
  63. package/dist/scopes/index.d.ts +623 -357
  64. package/dist/scopes/index.d.ts.map +1 -1
  65. package/dist/scopes/index.js +329 -301
  66. package/opencrvs-toolkit-1.9.12-rc.ad09474.tgz +0 -0
  67. package/package.json +11 -5
  68. package/tsconfig.json +9 -2
  69. package/tsconfig.tsbuildinfo +1 -1
  70. package/dist/commons/events/CreatedAtLocation.d.ts +0 -2
@@ -1,4 +1,4 @@
1
- import { FullDocumentPath } from '../documents';
1
+ import { DocumentPath } from '../documents';
2
2
  import { EventDocument } from './EventDocument';
3
- export declare function getFilePathsFromEvent(event: EventDocument): FullDocumentPath[];
3
+ export declare function getFilePathsFromEvent(event: EventDocument): DocumentPath[];
4
4
  //# sourceMappingURL=FileUtils.d.ts.map
@@ -0,0 +1,67 @@
1
+ import * as z from 'zod/v4';
2
+ export declare const InherentFlags: {
3
+ readonly INCOMPLETE: "incomplete";
4
+ readonly REJECTED: "rejected";
5
+ readonly CORRECTION_REQUESTED: "correction-requested";
6
+ readonly POTENTIAL_DUPLICATE: "potential-duplicate";
7
+ /**
8
+ * This flag is set by the Edit-action and removed after the declaration or registration.
9
+ * A record should never stay with the EDIT_IN_PROGRESS flag, since it should always be declared or registered right after.
10
+ *
11
+ * We only use this flag to determine that a NOTIFY, DECLARE or REGISTER action is allowed next.
12
+ */
13
+ readonly EDIT_IN_PROGRESS: "edit-in-progress";
14
+ };
15
+ export type InherentFlags = (typeof InherentFlags)[keyof typeof InherentFlags];
16
+ export declare const ActionFlag: z.ZodString;
17
+ export type ActionFlag = z.infer<typeof ActionFlag>;
18
+ /** Custom flag identifier defined by the country config. These may not match any InherentFlags or ActionFlag patterns. */
19
+ export declare const CustomFlag: z.ZodString;
20
+ export type CustomFlag = z.infer<typeof CustomFlag>;
21
+ export declare const Flag: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
22
+ readonly INCOMPLETE: "incomplete";
23
+ readonly REJECTED: "rejected";
24
+ readonly CORRECTION_REQUESTED: "correction-requested";
25
+ readonly POTENTIAL_DUPLICATE: "potential-duplicate";
26
+ /**
27
+ * This flag is set by the Edit-action and removed after the declaration or registration.
28
+ * A record should never stay with the EDIT_IN_PROGRESS flag, since it should always be declared or registered right after.
29
+ *
30
+ * We only use this flag to determine that a NOTIFY, DECLARE or REGISTER action is allowed next.
31
+ */
32
+ readonly EDIT_IN_PROGRESS: "edit-in-progress";
33
+ }>]>, z.ZodString]>;
34
+ export type Flag = z.infer<typeof Flag>;
35
+ /**
36
+ * Configuration of a custom flag that can be associated with a certain event type.
37
+ */
38
+ export declare const FlagConfig: z.ZodObject<{
39
+ id: z.ZodString;
40
+ requiresAction: z.ZodBoolean;
41
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
42
+ }, z.core.$strip>;
43
+ export type FlagConfig = z.infer<typeof FlagConfig>;
44
+ /**
45
+ * Configuration for a flag action, which is executed when the action is performed.
46
+ */
47
+ export declare const ActionFlagConfig: z.ZodObject<{
48
+ id: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
49
+ readonly INCOMPLETE: "incomplete";
50
+ readonly REJECTED: "rejected";
51
+ readonly CORRECTION_REQUESTED: "correction-requested";
52
+ readonly POTENTIAL_DUPLICATE: "potential-duplicate";
53
+ /**
54
+ * This flag is set by the Edit-action and removed after the declaration or registration.
55
+ * A record should never stay with the EDIT_IN_PROGRESS flag, since it should always be declared or registered right after.
56
+ *
57
+ * We only use this flag to determine that a NOTIFY, DECLARE or REGISTER action is allowed next.
58
+ */
59
+ readonly EDIT_IN_PROGRESS: "edit-in-progress";
60
+ }>]>, z.ZodString]>;
61
+ operation: z.ZodEnum<{
62
+ add: "add";
63
+ remove: "remove";
64
+ }>;
65
+ conditional: z.ZodOptional<z.ZodAny>;
66
+ }, z.core.$strip>;
67
+ //# sourceMappingURL=Flag.d.ts.map