@opencrvs/toolkit 1.8.0-rc.fd1df48 → 1.8.0-rc.fd49b3a

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 (30) hide show
  1. package/dist/commons/api/router.d.ts +1806 -922
  2. package/dist/commons/conditionals/conditionals.d.ts +0 -12
  3. package/dist/commons/events/ActionConfig.d.ts +7830 -2014
  4. package/dist/commons/events/ActionDocument.d.ts +1948 -904
  5. package/dist/commons/events/ActionInput.d.ts +1680 -780
  6. package/dist/commons/events/AdvancedSearchConfig.d.ts +82 -33
  7. package/dist/commons/events/CompositeFieldValue.d.ts +9 -9
  8. package/dist/commons/events/CountryConfigQueryInput.d.ts +1086 -684
  9. package/dist/commons/events/Draft.d.ts +142 -70
  10. package/dist/commons/events/EventConfig.d.ts +3649 -935
  11. package/dist/commons/events/EventDocument.d.ts +1236 -588
  12. package/dist/commons/events/EventIndex.d.ts +339 -120
  13. package/dist/commons/events/FieldConfig.d.ts +455 -30
  14. package/dist/commons/events/FieldType.d.ts +2 -1
  15. package/dist/commons/events/FieldTypeMapping.d.ts +57 -25
  16. package/dist/commons/events/FieldValue.d.ts +45 -16
  17. package/dist/commons/events/FormConfig.d.ts +3005 -557
  18. package/dist/commons/events/PageConfig.d.ts +646 -38
  19. package/dist/commons/events/User.d.ts +6 -3
  20. package/dist/commons/events/WorkqueueConfig.d.ts +1990 -1174
  21. package/dist/commons/events/defineConfig.d.ts +498 -34
  22. package/dist/commons/events/event.d.ts +10 -18
  23. package/dist/commons/events/field.d.ts +13 -1
  24. package/dist/commons/events/test.utils.d.ts +43 -19
  25. package/dist/commons/events/utils.d.ts +2543 -77
  26. package/dist/conditionals/index.js +2 -34
  27. package/dist/events/index.js +963 -801
  28. package/dist/scopes/index.d.ts +92 -6
  29. package/dist/scopes/index.js +38 -9
  30. package/package.json +3 -3
@@ -22,7 +22,6 @@ var conditionals_exports = {};
22
22
  __export(conditionals_exports, {
23
23
  alwaysTrue: () => alwaysTrue,
24
24
  and: () => and,
25
- createEventConditionals: () => createEventConditionals,
26
25
  createFieldConditionals: () => createFieldConditionals,
27
26
  defineConditional: () => defineConditional,
28
27
  defineFormConditional: () => defineFormConditional,
@@ -40,7 +39,8 @@ var SerializedUserField = import_zod.z.object({
40
39
  "id",
41
40
  "name",
42
41
  "role",
43
- "signatureFilename",
42
+ "signature",
43
+ "avatar",
44
44
  "primaryOfficeId"
45
45
  ])
46
46
  });
@@ -112,38 +112,6 @@ var user = Object.assign(userSerializer, {
112
112
  required: ["$user"]
113
113
  })
114
114
  });
115
- function createEventConditionals() {
116
- return {
117
- /**
118
- * Checks if the event contains a specific action type.
119
- * @param action - The action type to check for.
120
- */
121
- hasAction: (action) => defineConditional({
122
- type: "object",
123
- properties: {
124
- $event: {
125
- type: "object",
126
- properties: {
127
- actions: {
128
- type: "array",
129
- contains: {
130
- type: "object",
131
- properties: {
132
- type: {
133
- const: action
134
- }
135
- },
136
- required: ["type"]
137
- }
138
- }
139
- },
140
- required: ["actions"]
141
- }
142
- },
143
- required: ["$event"]
144
- })
145
- };
146
- }
147
115
  function getDateRangeToFieldReference(fieldId, comparedFieldId, clause) {
148
116
  return {
149
117
  type: "object",