@opencrvs/toolkit 1.8.0-rc.f97f8f2 → 1.8.0-rc.f988670

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 (46) hide show
  1. package/dist/commons/api/router.d.ts +10613 -8753
  2. package/dist/commons/conditionals/conditionals.d.ts +7 -14
  3. package/dist/commons/conditionals/validate.d.ts +14 -0
  4. package/dist/commons/events/ActionConfig.d.ts +82300 -42816
  5. package/dist/commons/events/ActionDocument.d.ts +3996 -1262
  6. package/dist/commons/events/ActionInput.d.ts +3139 -967
  7. package/dist/commons/events/ActionType.d.ts +4 -0
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +981 -47
  9. package/dist/commons/events/CompositeFieldValue.d.ts +37 -9
  10. package/dist/commons/events/Constants.d.ts +3 -0
  11. package/dist/commons/events/CountryConfigQueryInput.d.ts +3069 -443
  12. package/dist/commons/events/CreatedAtLocation.d.ts +2 -0
  13. package/dist/commons/events/Draft.d.ts +273 -95
  14. package/dist/commons/events/EventConfig.d.ts +33357 -14451
  15. package/dist/commons/events/EventDocument.d.ts +2554 -848
  16. package/dist/commons/events/EventIndex.d.ts +1281 -495
  17. package/dist/commons/events/EventInput.d.ts +0 -13
  18. package/dist/commons/events/EventMetadata.d.ts +126 -92
  19. package/dist/commons/events/FieldConfig.d.ts +4564 -1588
  20. package/dist/commons/events/FieldType.d.ts +10 -1
  21. package/dist/commons/events/FieldTypeMapping.d.ts +149 -75
  22. package/dist/commons/events/FieldValue.d.ts +87 -20
  23. package/dist/commons/events/FormConfig.d.ts +22178 -8396
  24. package/dist/commons/events/PageConfig.d.ts +5525 -2087
  25. package/dist/commons/events/SummaryConfig.d.ts +0 -5
  26. package/dist/commons/events/User.d.ts +6 -3
  27. package/dist/commons/events/WorkqueueColumnConfig.d.ts +18 -7
  28. package/dist/commons/events/WorkqueueConfig.d.ts +6406 -1001
  29. package/dist/commons/events/defineConfig.d.ts +3797 -870
  30. package/dist/commons/events/event.d.ts +41 -14
  31. package/dist/commons/events/field.d.ts +55 -15
  32. package/dist/commons/events/index.d.ts +2 -0
  33. package/dist/commons/events/scopes.d.ts +21 -3
  34. package/dist/commons/events/test.utils.d.ts +208 -54
  35. package/dist/commons/events/transactions.d.ts +1 -1
  36. package/dist/commons/events/utils.d.ts +14039 -1170
  37. package/dist/conditionals/index.js +69 -62
  38. package/dist/events/index.js +3836 -1956
  39. package/dist/scopes/index.d.ts +147 -5
  40. package/dist/scopes/index.js +133 -43
  41. package/package.json +3 -3
  42. package/tsconfig.json +1 -1
  43. package/dist/commons/conditionals/conditionals.test.d.ts +0 -2
  44. package/dist/commons/conditionals/validate-address.test.d.ts +0 -2
  45. package/dist/commons/conditionals/validate.test.d.ts +0 -2
  46. package/dist/commons/events/utils.test.d.ts +0 -2
@@ -29,11 +29,6 @@ export declare const SummaryConfig: z.ZodObject<{
29
29
  description: string;
30
30
  defaultMessage: string;
31
31
  }>;
32
- emptyValueMessage: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
33
- id: string;
34
- description: string;
35
- defaultMessage: string;
36
- }>>;
37
32
  }>, "strip", z.ZodTypeAny, {
38
33
  id: string;
39
34
  value: TranslationConfig;
@@ -15,7 +15,8 @@ export declare const User: z.ZodObject<{
15
15
  family: string;
16
16
  }>, "many">;
17
17
  role: z.ZodString;
18
- signatureFilename: z.ZodOptional<z.ZodString>;
18
+ avatar: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
19
+ signature: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
19
20
  }, "strip", z.ZodTypeAny, {
20
21
  id: string;
21
22
  name: {
@@ -24,7 +25,8 @@ export declare const User: z.ZodObject<{
24
25
  family: string;
25
26
  }[];
26
27
  role: string;
27
- signatureFilename?: string | undefined;
28
+ signature?: string | undefined;
29
+ avatar?: string | undefined;
28
30
  }, {
29
31
  id: string;
30
32
  name: {
@@ -33,7 +35,8 @@ export declare const User: z.ZodObject<{
33
35
  family: string;
34
36
  }[];
35
37
  role: string;
36
- signatureFilename?: string | undefined;
38
+ signature?: string | undefined;
39
+ avatar?: string | undefined;
37
40
  }>;
38
41
  export type User = z.infer<typeof User>;
39
42
  //# sourceMappingURL=User.d.ts.map
@@ -1,5 +1,16 @@
1
1
  import { z } from 'zod';
2
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"]>;
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", "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" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
10
+ }, {
11
+ $event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
12
+ }>;
13
+ export type WorkqueueColumnValue = z.infer<typeof WorkqueueColumnValue>;
3
14
  /**
4
15
  * Configuration for column header and value of cell of workqueue.
5
16
  */
@@ -10,20 +21,20 @@ export declare const WorkqueueColumn: z.ZodObject<{
10
21
  defaultMessage: string;
11
22
  }>;
12
23
  value: z.ZodObject<{
13
- $event: z.ZodEnum<["id", "title", "type", "status", "createdAt", "dateOfEvent", "createdBy", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags"]>;
24
+ $event: z.ZodEnum<["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "createdByUserType", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags", "title", "outbox"]>;
14
25
  }, "strip", z.ZodTypeAny, {
15
- $event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "dateOfEvent" | "updatedAt" | "trackingId" | "legalStatuses" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
26
+ $event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
16
27
  }, {
17
- $event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "dateOfEvent" | "updatedAt" | "trackingId" | "legalStatuses" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
28
+ $event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
18
29
  }>;
19
30
  }, "strip", z.ZodTypeAny, {
20
31
  value: {
21
- $event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "dateOfEvent" | "updatedAt" | "trackingId" | "legalStatuses" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
32
+ $event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
22
33
  };
23
34
  label: TranslationConfig;
24
35
  }, {
25
36
  value: {
26
- $event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "dateOfEvent" | "updatedAt" | "trackingId" | "legalStatuses" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
37
+ $event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
27
38
  };
28
39
  label: {
29
40
  id: string;
@@ -33,9 +44,9 @@ export declare const WorkqueueColumn: z.ZodObject<{
33
44
  }>;
34
45
  export type WorkqueueColumn = z.infer<typeof WorkqueueColumn>;
35
46
  export type WorkqueueColumnInput = z.infer<typeof WorkqueueColumn>;
36
- export declare function defineWorkqueueColumns(workqueueColumns: WorkqueueColumnInput[]): {
47
+ export declare function defineWorkqueuesColumns(workqueueColumns: WorkqueueColumnInput[]): {
37
48
  value: {
38
- $event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "dateOfEvent" | "updatedAt" | "trackingId" | "legalStatuses" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
49
+ $event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
39
50
  };
40
51
  label: TranslationConfig;
41
52
  }[];