@opencrvs/toolkit 1.8.0-rc.fc4c805 → 1.8.0-rc.fcb9386

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 (35) hide show
  1. package/dist/commons/api/router.d.ts +6983 -4338
  2. package/dist/commons/conditionals/conditionals.d.ts +2 -1
  3. package/dist/commons/events/ActionConfig.d.ts +40400 -36948
  4. package/dist/commons/events/ActionDocument.d.ts +292 -105
  5. package/dist/commons/events/ActionInput.d.ts +75 -3
  6. package/dist/commons/events/AdvancedSearchConfig.d.ts +603 -12
  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 +10 -5
  11. package/dist/commons/events/EventConfig.d.ts +14558 -14829
  12. package/dist/commons/events/EventDocument.d.ts +212 -93
  13. package/dist/commons/events/EventIndex.d.ts +298 -319
  14. package/dist/commons/events/EventInput.d.ts +0 -13
  15. package/dist/commons/events/EventMetadata.d.ts +38 -44
  16. package/dist/commons/events/FieldConfig.d.ts +517 -0
  17. package/dist/commons/events/FormConfig.d.ts +3641 -467
  18. package/dist/commons/events/PageConfig.d.ts +782 -0
  19. package/dist/commons/events/User.d.ts +31 -7
  20. package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
  21. package/dist/commons/events/WorkqueueConfig.d.ts +4033 -644
  22. package/dist/commons/events/defineConfig.d.ts +3050 -3519
  23. package/dist/commons/events/event.d.ts +37 -10
  24. package/dist/commons/events/field.d.ts +21 -7
  25. package/dist/commons/events/index.d.ts +4 -0
  26. package/dist/commons/events/scopes.d.ts +21 -2
  27. package/dist/commons/events/serializer.d.ts +2 -0
  28. package/dist/commons/events/test.utils.d.ts +26 -6
  29. package/dist/commons/events/utils.d.ts +117 -1
  30. package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
  31. package/dist/conditionals/index.js +19 -2
  32. package/dist/events/index.js +2382 -988
  33. package/dist/scopes/index.d.ts +158 -1
  34. package/dist/scopes/index.js +152 -1
  35. package/package.json +1 -1
@@ -0,0 +1,3 @@
1
+ import { WorkqueueColumn } from './WorkqueueColumnConfig';
2
+ export declare const defaultWorkqueueColumns: WorkqueueColumn[];
3
+ //# sourceMappingURL=workqueueDefaultColumns.d.ts.map
@@ -33,6 +33,23 @@ __export(conditionals_exports, {
33
33
  });
34
34
  module.exports = __toCommonJS(conditionals_exports);
35
35
 
36
+ // ../commons/src/events/serializers/user/serializer.ts
37
+ var import_zod = require("zod");
38
+ var SerializedUserField = import_zod.z.object({
39
+ $userField: import_zod.z.enum([
40
+ "id",
41
+ "name",
42
+ "role",
43
+ "signatureFilename",
44
+ "primaryOfficeId"
45
+ ])
46
+ });
47
+ function userSerializer(userField) {
48
+ return {
49
+ $userField: userField
50
+ };
51
+ }
52
+
36
53
  // ../commons/src/conditionals/conditionals.ts
37
54
  function defineConditional(schema) {
38
55
  return schema;
@@ -74,7 +91,7 @@ function not(condition) {
74
91
  function never() {
75
92
  return not(alwaysTrue());
76
93
  }
77
- var user = {
94
+ var user = Object.assign(userSerializer, {
78
95
  hasScope: (scope) => defineConditional({
79
96
  type: "object",
80
97
  properties: {
@@ -94,7 +111,7 @@ var user = {
94
111
  },
95
112
  required: ["$user"]
96
113
  })
97
- };
114
+ });
98
115
  function createEventConditionals() {
99
116
  return {
100
117
  /**