@opencrvs/toolkit 1.8.0-rc.f7e4aad → 1.8.0-rc.f807e0d

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 +1822 -10136
  2. package/dist/commons/conditionals/conditionals.d.ts +1 -12
  3. package/dist/commons/conditionals/validate.d.ts +8 -0
  4. package/dist/commons/events/ActionConfig.d.ts +15960 -3820
  5. package/dist/commons/events/ActionDocument.d.ts +1951 -904
  6. package/dist/commons/events/ActionInput.d.ts +1680 -780
  7. package/dist/commons/events/ActionType.d.ts +0 -2
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +113 -68
  9. package/dist/commons/events/CompositeFieldValue.d.ts +9 -9
  10. package/dist/commons/events/CountryConfigQueryInput.d.ts +1215 -813
  11. package/dist/commons/events/Draft.d.ts +144 -72
  12. package/dist/commons/events/EventConfig.d.ts +6459 -1250
  13. package/dist/commons/events/EventDocument.d.ts +1236 -588
  14. package/dist/commons/events/EventIndex.d.ts +609 -268
  15. package/dist/commons/events/EventMetadata.d.ts +9 -7
  16. package/dist/commons/events/FieldConfig.d.ts +1635 -67
  17. package/dist/commons/events/FieldType.d.ts +7 -1
  18. package/dist/commons/events/FieldTypeMapping.d.ts +57 -25
  19. package/dist/commons/events/FieldValue.d.ts +45 -16
  20. package/dist/commons/events/FormConfig.d.ts +6488 -1370
  21. package/dist/commons/events/PageConfig.d.ts +1380 -70
  22. package/dist/commons/events/User.d.ts +9 -3
  23. package/dist/commons/events/WorkqueueColumnConfig.d.ts +7 -7
  24. package/dist/commons/events/WorkqueueConfig.d.ts +2459 -1519
  25. package/dist/commons/events/defineConfig.d.ts +971 -58
  26. package/dist/commons/events/event.d.ts +19 -19
  27. package/dist/commons/events/field.d.ts +17 -1
  28. package/dist/commons/events/test.utils.d.ts +45 -20
  29. package/dist/commons/events/utils.d.ts +3323 -267
  30. package/dist/conditionals/index.js +23 -39
  31. package/dist/events/index.js +1208 -928
  32. package/dist/scopes/index.d.ts +92 -6
  33. package/dist/scopes/index.js +38 -9
  34. package/package.json +6 -4
  35. package/tsconfig.json +1 -1
  36. package/dist/commons/conditionals/conditionals.test.d.ts +0 -2
  37. package/dist/commons/conditionals/validate-address.test.d.ts +0 -2
  38. package/dist/commons/conditionals/validate.test.d.ts +0 -2
  39. package/dist/commons/events/utils.test.d.ts +0 -2
@@ -15,7 +15,9 @@ 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>>;
20
+ primaryOfficeId: z.ZodString;
19
21
  }, "strip", z.ZodTypeAny, {
20
22
  id: string;
21
23
  name: {
@@ -24,7 +26,9 @@ export declare const User: z.ZodObject<{
24
26
  family: string;
25
27
  }[];
26
28
  role: string;
27
- signatureFilename?: string | undefined;
29
+ primaryOfficeId: string;
30
+ signature?: string | undefined;
31
+ avatar?: string | undefined;
28
32
  }, {
29
33
  id: string;
30
34
  name: {
@@ -33,7 +37,9 @@ export declare const User: z.ZodObject<{
33
37
  family: string;
34
38
  }[];
35
39
  role: string;
36
- signatureFilename?: string | undefined;
40
+ primaryOfficeId: string;
41
+ signature?: string | undefined;
42
+ avatar?: string | undefined;
37
43
  }>;
38
44
  export type User = z.infer<typeof User>;
39
45
  //# sourceMappingURL=User.d.ts.map
@@ -6,9 +6,9 @@ export type WorkqueueColumnKeys = z.infer<typeof WorkqueueColumnKeys>;
6
6
  export declare const WorkqueueColumnValue: z.ZodObject<{
7
7
  $event: z.ZodEnum<["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "createdByUserType", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags", "title", "outbox"]>;
8
8
  }, "strip", z.ZodTypeAny, {
9
- $event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
9
+ $event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "dateOfEvent" | "legalStatuses" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
10
10
  }, {
11
- $event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
11
+ $event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "dateOfEvent" | "legalStatuses" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
12
12
  }>;
13
13
  export type WorkqueueColumnValue = z.infer<typeof WorkqueueColumnValue>;
14
14
  /**
@@ -23,18 +23,18 @@ export declare const WorkqueueColumn: z.ZodObject<{
23
23
  value: z.ZodObject<{
24
24
  $event: z.ZodEnum<["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "createdByUserType", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags", "title", "outbox"]>;
25
25
  }, "strip", z.ZodTypeAny, {
26
- $event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
26
+ $event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "dateOfEvent" | "legalStatuses" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
27
27
  }, {
28
- $event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
28
+ $event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "dateOfEvent" | "legalStatuses" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
29
29
  }>;
30
30
  }, "strip", z.ZodTypeAny, {
31
31
  value: {
32
- $event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
32
+ $event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "dateOfEvent" | "legalStatuses" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
33
33
  };
34
34
  label: TranslationConfig;
35
35
  }, {
36
36
  value: {
37
- $event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
37
+ $event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "dateOfEvent" | "legalStatuses" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
38
38
  };
39
39
  label: {
40
40
  id: string;
@@ -46,7 +46,7 @@ export type WorkqueueColumn = z.infer<typeof WorkqueueColumn>;
46
46
  export type WorkqueueColumnInput = z.infer<typeof WorkqueueColumn>;
47
47
  export declare function defineWorkqueuesColumns(workqueueColumns: WorkqueueColumnInput[]): {
48
48
  value: {
49
- $event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
49
+ $event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "dateOfEvent" | "legalStatuses" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
50
50
  };
51
51
  label: TranslationConfig;
52
52
  }[];