@opencrvs/toolkit 1.8.0-rc.f8a9481 → 1.8.0-rc.f8be155

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/commons/api/router.d.ts +13997 -988
  2. package/dist/commons/conditionals/conditionals.d.ts +14 -6
  3. package/dist/commons/conditionals/validate.d.ts +6 -0
  4. package/dist/commons/events/ActionConfig.d.ts +117418 -1729
  5. package/dist/commons/events/ActionDocument.d.ts +2270 -554
  6. package/dist/commons/events/ActionInput.d.ts +1637 -365
  7. package/dist/commons/events/ActionType.d.ts +4 -0
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +1029 -22
  9. package/dist/commons/events/CompositeFieldValue.d.ts +28 -0
  10. package/dist/commons/events/Constants.d.ts +3 -0
  11. package/dist/commons/events/CountryConfigQueryInput.d.ts +2982 -0
  12. package/dist/commons/events/CreatedAtLocation.d.ts +2 -0
  13. package/dist/commons/events/Draft.d.ts +143 -39
  14. package/dist/commons/events/EventConfig.d.ts +56291 -1361
  15. package/dist/commons/events/EventDocument.d.ts +1399 -394
  16. package/dist/commons/events/EventIndex.d.ts +1589 -30
  17. package/dist/commons/events/EventMetadata.d.ts +298 -48
  18. package/dist/commons/events/FieldConfig.d.ts +5414 -1057
  19. package/dist/commons/events/FieldType.d.ts +6 -3
  20. package/dist/commons/events/FieldTypeMapping.d.ts +103 -54
  21. package/dist/commons/events/FieldValue.d.ts +49 -8
  22. package/dist/commons/events/FormConfig.d.ts +49156 -514
  23. package/dist/commons/events/PageConfig.d.ts +12206 -204
  24. package/dist/commons/events/SummaryConfig.d.ts +17 -52
  25. package/dist/commons/events/User.d.ts +31 -7
  26. package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
  27. package/dist/commons/events/WorkqueueConfig.d.ts +4775 -16
  28. package/dist/commons/events/defineConfig.d.ts +8981 -51
  29. package/dist/commons/events/event.d.ts +54 -0
  30. package/dist/commons/events/field.d.ts +77 -0
  31. package/dist/commons/events/index.d.ts +6 -0
  32. package/dist/commons/events/scopes.d.ts +21 -1
  33. package/dist/commons/events/serializer.d.ts +2 -0
  34. package/dist/commons/events/test.utils.d.ts +149 -79
  35. package/dist/commons/events/transactions.d.ts +1 -1
  36. package/dist/commons/events/utils.d.ts +13353 -68
  37. package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
  38. package/dist/conditionals/index.js +76 -36
  39. package/dist/events/index.js +3464 -1333
  40. package/dist/scopes/index.d.ts +158 -1
  41. package/dist/scopes/index.js +152 -1
  42. package/package.json +3 -2
@@ -1,35 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import { TranslationConfig } from './TranslationConfig';
3
3
  export declare const SummaryConfig: z.ZodObject<{
4
- title: z.ZodObject<{
5
- id: z.ZodString;
6
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
7
- id: string;
8
- description: string;
9
- defaultMessage: string;
10
- }>;
11
- emptyValueMessage: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
12
- id: string;
13
- description: string;
14
- defaultMessage: string;
15
- }>>;
16
- }, "strip", z.ZodTypeAny, {
17
- id: string;
18
- label: TranslationConfig;
19
- emptyValueMessage?: TranslationConfig | undefined;
20
- }, {
21
- id: string;
22
- label: {
23
- id: string;
24
- description: string;
25
- defaultMessage: string;
26
- };
27
- emptyValueMessage?: {
28
- id: string;
29
- description: string;
30
- defaultMessage: string;
31
- } | undefined;
32
- }>;
33
4
  fields: z.ZodArray<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
34
5
  emptyValueMessage: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
35
6
  id: string;
@@ -58,11 +29,6 @@ export declare const SummaryConfig: z.ZodObject<{
58
29
  description: string;
59
30
  defaultMessage: string;
60
31
  }>;
61
- emptyValueMessage: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
62
- id: string;
63
- description: string;
64
- defaultMessage: string;
65
- }>>;
66
32
  }>, "strip", z.ZodTypeAny, {
67
33
  id: string;
68
34
  value: TranslationConfig;
@@ -111,12 +77,18 @@ export declare const SummaryConfig: z.ZodObject<{
111
77
  }>, "many">>>;
112
78
  }, {
113
79
  fieldId: z.ZodString;
80
+ label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
81
+ id: string;
82
+ description: string;
83
+ defaultMessage: string;
84
+ }>>;
114
85
  }>, "strip", z.ZodTypeAny, {
115
86
  fieldId: string;
116
87
  conditionals?: {
117
88
  type: "SHOW";
118
89
  conditional: import(".").JSONSchema;
119
90
  }[] | undefined;
91
+ label?: TranslationConfig | undefined;
120
92
  emptyValueMessage?: TranslationConfig | undefined;
121
93
  }, {
122
94
  fieldId: string;
@@ -124,6 +96,11 @@ export declare const SummaryConfig: z.ZodObject<{
124
96
  type: "SHOW";
125
97
  conditional: import(".").JSONSchema;
126
98
  }[] | undefined;
99
+ label?: {
100
+ id: string;
101
+ description: string;
102
+ defaultMessage: string;
103
+ } | undefined;
127
104
  emptyValueMessage?: {
128
105
  id: string;
129
106
  description: string;
@@ -131,17 +108,13 @@ export declare const SummaryConfig: z.ZodObject<{
131
108
  } | undefined;
132
109
  }>]>, "many">;
133
110
  }, "strip", z.ZodTypeAny, {
134
- title: {
135
- id: string;
136
- label: TranslationConfig;
137
- emptyValueMessage?: TranslationConfig | undefined;
138
- };
139
111
  fields: ({
140
112
  fieldId: string;
141
113
  conditionals?: {
142
114
  type: "SHOW";
143
115
  conditional: import(".").JSONSchema;
144
116
  }[] | undefined;
117
+ label?: TranslationConfig | undefined;
145
118
  emptyValueMessage?: TranslationConfig | undefined;
146
119
  } | {
147
120
  id: string;
@@ -154,25 +127,17 @@ export declare const SummaryConfig: z.ZodObject<{
154
127
  emptyValueMessage?: TranslationConfig | undefined;
155
128
  })[];
156
129
  }, {
157
- title: {
158
- id: string;
159
- label: {
160
- id: string;
161
- description: string;
162
- defaultMessage: string;
163
- };
164
- emptyValueMessage?: {
165
- id: string;
166
- description: string;
167
- defaultMessage: string;
168
- } | undefined;
169
- };
170
130
  fields: ({
171
131
  fieldId: string;
172
132
  conditionals?: {
173
133
  type: "SHOW";
174
134
  conditional: import(".").JSONSchema;
175
135
  }[] | undefined;
136
+ label?: {
137
+ id: string;
138
+ description: string;
139
+ defaultMessage: string;
140
+ } | undefined;
176
141
  emptyValueMessage?: {
177
142
  id: string;
178
143
  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