@opencrvs/toolkit 1.8.0-rc.fa8bcf6 → 1.8.0-rc.facf9d6

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 (39) hide show
  1. package/dist/commons/api/router.d.ts +7597 -4530
  2. package/dist/commons/conditionals/conditionals.d.ts +7 -6
  3. package/dist/commons/events/ActionConfig.d.ts +47498 -39631
  4. package/dist/commons/events/ActionDocument.d.ts +620 -413
  5. package/dist/commons/events/ActionInput.d.ts +255 -183
  6. package/dist/commons/events/AdvancedSearchConfig.d.ts +637 -48
  7. package/dist/commons/events/Constants.d.ts +2 -0
  8. package/dist/commons/events/CountryConfigQueryInput.d.ts +2982 -0
  9. package/dist/commons/events/CreatedAtLocation.d.ts +3 -0
  10. package/dist/commons/events/Draft.d.ts +29 -26
  11. package/dist/commons/events/EventConfig.d.ts +18414 -16593
  12. package/dist/commons/events/EventDocument.d.ts +373 -325
  13. package/dist/commons/events/EventIndex.d.ts +706 -291
  14. package/dist/commons/events/EventInput.d.ts +0 -13
  15. package/dist/commons/events/EventMetadata.d.ts +290 -14
  16. package/dist/commons/events/FieldConfig.d.ts +1305 -441
  17. package/dist/commons/events/FieldType.d.ts +3 -2
  18. package/dist/commons/events/FieldTypeMapping.d.ts +16 -6
  19. package/dist/commons/events/FieldValue.d.ts +8 -3
  20. package/dist/commons/events/FormConfig.d.ts +8993 -3809
  21. package/dist/commons/events/PageConfig.d.ts +1912 -636
  22. package/dist/commons/events/SummaryConfig.d.ts +17 -0
  23. package/dist/commons/events/User.d.ts +31 -7
  24. package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
  25. package/dist/commons/events/WorkqueueConfig.d.ts +4491 -10
  26. package/dist/commons/events/defineConfig.d.ts +3576 -3692
  27. package/dist/commons/events/event.d.ts +37 -8
  28. package/dist/commons/events/field.d.ts +28 -23
  29. package/dist/commons/events/index.d.ts +4 -0
  30. package/dist/commons/events/scopes.d.ts +21 -2
  31. package/dist/commons/events/serializer.d.ts +2 -0
  32. package/dist/commons/events/test.utils.d.ts +33 -13
  33. package/dist/commons/events/utils.d.ts +619 -291
  34. package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
  35. package/dist/conditionals/index.js +28 -8
  36. package/dist/events/index.js +3204 -1546
  37. package/dist/scopes/index.d.ts +158 -1
  38. package/dist/scopes/index.js +152 -1
  39. package/package.json +1 -1
@@ -82,12 +82,18 @@ export declare const SummaryConfig: z.ZodObject<{
82
82
  }>, "many">>>;
83
83
  }, {
84
84
  fieldId: z.ZodString;
85
+ label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
86
+ id: string;
87
+ description: string;
88
+ defaultMessage: string;
89
+ }>>;
85
90
  }>, "strip", z.ZodTypeAny, {
86
91
  fieldId: string;
87
92
  conditionals?: {
88
93
  type: "SHOW";
89
94
  conditional: import(".").JSONSchema;
90
95
  }[] | undefined;
96
+ label?: TranslationConfig | undefined;
91
97
  emptyValueMessage?: TranslationConfig | undefined;
92
98
  }, {
93
99
  fieldId: string;
@@ -95,6 +101,11 @@ export declare const SummaryConfig: z.ZodObject<{
95
101
  type: "SHOW";
96
102
  conditional: import(".").JSONSchema;
97
103
  }[] | undefined;
104
+ label?: {
105
+ id: string;
106
+ description: string;
107
+ defaultMessage: string;
108
+ } | undefined;
98
109
  emptyValueMessage?: {
99
110
  id: string;
100
111
  description: string;
@@ -108,6 +119,7 @@ export declare const SummaryConfig: z.ZodObject<{
108
119
  type: "SHOW";
109
120
  conditional: import(".").JSONSchema;
110
121
  }[] | undefined;
122
+ label?: TranslationConfig | undefined;
111
123
  emptyValueMessage?: TranslationConfig | undefined;
112
124
  } | {
113
125
  id: string;
@@ -126,6 +138,11 @@ export declare const SummaryConfig: z.ZodObject<{
126
138
  type: "SHOW";
127
139
  conditional: import(".").JSONSchema;
128
140
  }[] | undefined;
141
+ label?: {
142
+ id: string;
143
+ description: string;
144
+ defaultMessage: string;
145
+ } | undefined;
129
146
  emptyValueMessage?: {
130
147
  id: string;
131
148
  description: string;
@@ -1,4 +1,31 @@
1
- export type User = {
1
+ import { z } from 'zod';
2
+ export declare const User: z.ZodObject<{
3
+ id: z.ZodString;
4
+ name: z.ZodArray<z.ZodObject<{
5
+ use: z.ZodString;
6
+ given: z.ZodArray<z.ZodString, "many">;
7
+ family: z.ZodString;
8
+ }, "strip", z.ZodTypeAny, {
9
+ use: string;
10
+ given: string[];
11
+ family: string;
12
+ }, {
13
+ use: string;
14
+ given: string[];
15
+ family: string;
16
+ }>, "many">;
17
+ role: z.ZodString;
18
+ signatureFilename: z.ZodOptional<z.ZodString>;
19
+ }, "strip", z.ZodTypeAny, {
20
+ id: string;
21
+ name: {
22
+ use: string;
23
+ given: string[];
24
+ family: string;
25
+ }[];
26
+ role: string;
27
+ signatureFilename?: string | undefined;
28
+ }, {
2
29
  id: string;
3
30
  name: {
4
31
  use: string;
@@ -6,10 +33,7 @@ export type User = {
6
33
  family: string;
7
34
  }[];
8
35
  role: string;
9
- /**
10
- * The filename of the user's signature stored in MinIO, ex: 'a552f64a-31c4-4e78-b44f-292c3179e2ef.png'.
11
- * This is used to retrieve the signature file from storage.
12
- */
13
- signatureFilename?: string;
14
- };
36
+ signatureFilename?: string | undefined;
37
+ }>;
38
+ export type User = z.infer<typeof User>;
15
39
  //# sourceMappingURL=User.d.ts.map
@@ -0,0 +1,53 @@
1
+ import { z } from 'zod';
2
+ import { TranslationConfig } from './TranslationConfig';
3
+ export declare const WorkqueueColumnKeysArray: readonly ["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags", "title"];
4
+ export declare const WorkqueueColumnKeys: z.ZodEnum<["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags", "title"]>;
5
+ export type WorkqueueColumnKeys = z.infer<typeof WorkqueueColumnKeys>;
6
+ export declare const WorkqueueColumnValue: z.ZodObject<{
7
+ $event: z.ZodEnum<["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags", "title"]>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ $event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
10
+ }, {
11
+ $event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
12
+ }>;
13
+ export type WorkqueueColumnValue = z.infer<typeof WorkqueueColumnValue>;
14
+ /**
15
+ * Configuration for column header and value of cell of workqueue.
16
+ */
17
+ export declare const WorkqueueColumn: z.ZodObject<{
18
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
19
+ id: string;
20
+ description: string;
21
+ defaultMessage: string;
22
+ }>;
23
+ value: z.ZodObject<{
24
+ $event: z.ZodEnum<["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags", "title"]>;
25
+ }, "strip", z.ZodTypeAny, {
26
+ $event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
27
+ }, {
28
+ $event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
29
+ }>;
30
+ }, "strip", z.ZodTypeAny, {
31
+ value: {
32
+ $event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
33
+ };
34
+ label: TranslationConfig;
35
+ }, {
36
+ value: {
37
+ $event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
38
+ };
39
+ label: {
40
+ id: string;
41
+ description: string;
42
+ defaultMessage: string;
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[]): {
48
+ value: {
49
+ $event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
50
+ };
51
+ label: TranslationConfig;
52
+ }[];
53
+ //# sourceMappingURL=WorkqueueColumnConfig.d.ts.map