@opencrvs/toolkit 1.9.12-rc.7c8c97f → 1.9.12-rc.8353a87

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 (77) hide show
  1. package/build.sh +8 -0
  2. package/dist/application-config/index.js +47 -36
  3. package/dist/cli.d.ts +2 -0
  4. package/dist/cli.d.ts.map +1 -0
  5. package/dist/cli.js +2422 -0
  6. package/dist/commons/api/router.d.ts +24 -0
  7. package/dist/commons/application-config/index.d.ts +7 -12
  8. package/dist/commons/conditionals/conditionals.d.ts +3 -3
  9. package/dist/commons/events/ActionDocument.d.ts +194 -194
  10. package/dist/commons/events/ActionInput.d.ts +113 -113
  11. package/dist/commons/events/AdvancedSearchConfig.d.ts +6 -0
  12. package/dist/commons/events/CompositeFieldValue.d.ts +4 -4
  13. package/dist/commons/events/CountryConfigQueryInput.d.ts +295 -24
  14. package/dist/commons/events/Draft.d.ts +7 -7
  15. package/dist/commons/events/DynamicFieldValue.d.ts +37 -19
  16. package/dist/commons/events/EventDocument.d.ts +79 -79
  17. package/dist/commons/events/EventIndex.d.ts +20 -12
  18. package/dist/commons/events/EventInput.d.ts +1 -1
  19. package/dist/commons/events/EventMetadata.d.ts +12 -12
  20. package/dist/commons/events/FieldConfig.d.ts +129 -18
  21. package/dist/commons/events/FieldType.d.ts +2 -1
  22. package/dist/commons/events/FieldTypeMapping.d.ts +94 -68
  23. package/dist/commons/events/FieldValue.d.ts +54 -26
  24. package/dist/commons/events/PlainDate.d.ts +1 -1
  25. package/dist/commons/events/WorkqueueColumnConfig.d.ts +4 -4
  26. package/dist/commons/events/WorkqueueConfig.d.ts +270 -26
  27. package/dist/commons/events/defineConfig.d.ts +0 -4
  28. package/dist/commons/events/locations.d.ts +4 -4
  29. package/dist/commons/events/utils.d.ts +2 -174
  30. package/dist/conditionals/index.js +13 -5
  31. package/dist/events/index.js +142 -33
  32. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts +3 -0
  33. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts.map +1 -0
  34. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.js +405 -0
  35. package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts +2 -0
  36. package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts.map +1 -0
  37. package/dist/migrations/v2.0/convert-config-files-to-ts.js +753 -0
  38. package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts +3 -0
  39. package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts.map +1 -0
  40. package/dist/migrations/v2.0/convert-paragraph-to-heading.js +159 -0
  41. package/dist/migrations/v2.0/index.d.ts +7 -0
  42. package/dist/migrations/v2.0/index.d.ts.map +1 -0
  43. package/dist/migrations/v2.0/index.js +2361 -0
  44. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts +3 -0
  45. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts.map +1 -0
  46. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.js +344 -0
  47. package/dist/migrations/v2.0/migrate-scopes.d.ts +3 -0
  48. package/dist/migrations/v2.0/migrate-scopes.d.ts.map +1 -0
  49. package/dist/migrations/v2.0/migrate-scopes.js +281 -0
  50. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts +3 -0
  51. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts.map +1 -0
  52. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.js +268 -0
  53. package/dist/migrations/v2.0/remove-delete-actions.d.ts +3 -0
  54. package/dist/migrations/v2.0/remove-delete-actions.d.ts.map +1 -0
  55. package/dist/migrations/v2.0/remove-delete-actions.js +157 -0
  56. package/dist/migrations/v2.0/remove-deprecated-imports.d.ts +3 -0
  57. package/dist/migrations/v2.0/remove-deprecated-imports.d.ts.map +1 -0
  58. package/dist/migrations/v2.0/remove-deprecated-imports.js +97 -0
  59. package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts +3 -0
  60. package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts.map +1 -0
  61. package/dist/migrations/v2.0/remove-pending-certification-flag.js +110 -0
  62. package/dist/migrations/v2.0/remove-review-from-register-action.d.ts +3 -0
  63. package/dist/migrations/v2.0/remove-review-from-register-action.d.ts.map +1 -0
  64. package/dist/migrations/v2.0/remove-review-from-register-action.js +164 -0
  65. package/dist/migrations/v2.0/rename-api-paths.d.ts +3 -0
  66. package/dist/migrations/v2.0/rename-api-paths.d.ts.map +1 -0
  67. package/dist/migrations/v2.0/rename-api-paths.js +188 -0
  68. package/dist/migrations/v2.0/rename-location-parent-id.d.ts +3 -0
  69. package/dist/migrations/v2.0/rename-location-parent-id.d.ts.map +1 -0
  70. package/dist/migrations/v2.0/rename-location-parent-id.js +181 -0
  71. package/dist/notification/index.js +73 -23
  72. package/dist/scopes/index.d.ts +31 -10
  73. package/dist/scopes/index.js +17 -5
  74. package/opencrvs-toolkit-1.9.12-rc.8353a87.tgz +0 -0
  75. package/package.json +11 -7
  76. package/tsconfig.tsbuildinfo +1 -1
  77. package/opencrvs-toolkit-1.9.12-rc.7c8c97f.tgz +0 -0
@@ -4789,6 +4789,12 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4789
4789
  $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4790
4790
  $location?: string | undefined;
4791
4791
  };
4792
+ } | {
4793
+ type: "exact";
4794
+ term: string | {
4795
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4796
+ $location?: string | undefined;
4797
+ };
4792
4798
  } | undefined;
4793
4799
  updatedAtLocation?: {
4794
4800
  type: "within";
@@ -4796,6 +4802,12 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4796
4802
  $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4797
4803
  $location?: string | undefined;
4798
4804
  };
4805
+ } | {
4806
+ type: "exact";
4807
+ term: string | {
4808
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4809
+ $location?: string | undefined;
4810
+ };
4799
4811
  } | undefined;
4800
4812
  updatedByUserRole?: {
4801
4813
  type: "exact";
@@ -4915,6 +4927,12 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4915
4927
  $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4916
4928
  $location?: string | undefined;
4917
4929
  };
4930
+ } | {
4931
+ type: "exact";
4932
+ term: string | {
4933
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4934
+ $location?: string | undefined;
4935
+ };
4918
4936
  } | undefined;
4919
4937
  updatedAtLocation?: {
4920
4938
  type: "within";
@@ -4922,6 +4940,12 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4922
4940
  $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4923
4941
  $location?: string | undefined;
4924
4942
  };
4943
+ } | {
4944
+ type: "exact";
4945
+ term: string | {
4946
+ $userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "avatar" | "signature" | "primaryOfficeId" | "device" | "middlename";
4947
+ $location?: string | undefined;
4948
+ };
4925
4949
  } | undefined;
4926
4950
  updatedByUserRole?: {
4927
4951
  type: "exact";
@@ -20,11 +20,7 @@ export declare const ApplicationConfig: z.ZodObject<{
20
20
  }, z.core.$strip>;
21
21
  ADMIN_STRUCTURE: z.ZodArray<z.ZodObject<{
22
22
  id: z.ZodString;
23
- label: z.ZodObject<{
24
- id: z.ZodString;
25
- defaultMessage: z.ZodString;
26
- description: z.ZodString;
27
- }, z.core.$strip>;
23
+ label: z.ZodObject<import("./events/TranslationConfig").MessageDescriptorZod, z.core.$strip>;
28
24
  }, z.core.$strip>>;
29
25
  PHONE_NUMBER_PATTERN: z.ZodUnion<[z.ZodString, z.ZodCustom<RegExp, RegExp>]>;
30
26
  USER_NOTIFICATION_DELIVERY_METHOD: z.ZodString;
@@ -56,14 +52,14 @@ export declare const LoginConfig: z.ZodObject<{
56
52
  backgroundImage: z.ZodOptional<z.ZodString>;
57
53
  imageFit: z.ZodOptional<z.ZodString>;
58
54
  }, z.core.$strip>;
59
- SENTRY: z.ZodString;
55
+ SENTRY: z.ZodOptional<z.ZodString>;
60
56
  }, z.core.$strip>;
61
57
  export type LoginConfig = z.infer<typeof LoginConfig>;
62
58
  export declare const defineLoginConfig: (config: z.input<typeof LoginConfig>) => LoginConfig;
63
59
  export declare const ClientConfig: z.ZodObject<{
64
60
  COUNTRY: z.ZodString;
65
61
  LANGUAGES: z.ZodArray<z.ZodString>;
66
- SENTRY: z.ZodString;
62
+ SENTRY: z.ZodOptional<z.ZodString>;
67
63
  REGISTER_BACKGROUND: z.ZodObject<{
68
64
  backgroundColor: z.ZodOptional<z.ZodString>;
69
65
  backgroundImage: z.ZodOptional<z.ZodString>;
@@ -71,12 +67,11 @@ export declare const ClientConfig: z.ZodObject<{
71
67
  }, z.core.$strip>;
72
68
  DASHBOARDS: z.ZodArray<z.ZodObject<{
73
69
  id: z.ZodString;
74
- title: z.ZodObject<{
75
- id: z.ZodString;
76
- defaultMessage: z.ZodString;
77
- description: z.ZodString;
78
- }, z.core.$strip>;
70
+ title: z.ZodObject<import("./events/TranslationConfig").MessageDescriptorZod, z.core.$strip>;
79
71
  url: z.ZodString;
72
+ context: z.ZodOptional<z.ZodObject<{
73
+ auth: z.ZodLiteral<"REQUEST_AUTH_TOKEN">;
74
+ }, z.core.$strip>>;
80
75
  }, z.core.$strip>>;
81
76
  FEATURES: z.ZodDefault<z.ZodOptional<z.ZodObject<{
82
77
  V2_EVENTS: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
@@ -86,16 +86,16 @@ export declare const user: typeof userSerializer & {
86
86
  };
87
87
  scope: (scope: import("../scopes").ScopeType) => {
88
88
  attribute: (option: import("../scopes").ScopeOptionKey) => {
89
- $scope: "record.search" | "record.create" | "record.read" | "record.declare" | "record.notify" | "record.edit" | "record.reject" | "record.archive" | "record.review-duplicates" | "record.register" | "record.print-certified-copies" | "record.request-correction" | "record.correct" | "record.unassign-others" | "record.custom-action" | "bypassratelimit" | "record.reindex" | "user.data-seeding" | "integration.create" | "record.import" | "config.update-all" | "attachment.upload" | "profile.electronic-signature" | "user.read-only-my-audit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "record.confirm-registration" | "record.reject-registration" | "organisation.read-locations" | "user.read" | "user.create" | "user.edit" | "workqueue";
89
+ $scope: "record.search" | "record.create" | "record.read" | "record.declare" | "record.notify" | "record.edit" | "record.reject" | "record.archive" | "record.review-duplicates" | "record.register" | "record.print-certified-copies" | "record.request-correction" | "record.correct" | "record.unassign-others" | "record.custom-action" | "bypassratelimit" | "record.reindex" | "user.data-seeding" | "integration.create" | "record.import" | "config.update-all" | "attachment.upload" | "profile.electronic-signature" | "user.read-only-my-audit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "record.confirm-registration" | "record.reject-registration" | "organisation.read-locations" | "user.read" | "user.create" | "user.edit" | "workqueue" | "dashboard.view";
90
90
  $option: "event" | "placeOfEvent" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
91
91
  };
92
92
  };
93
93
  jurisdiction: (jurisdiction: import("../scopes").JurisdictionFilter | {
94
- $scope: "record.search" | "record.create" | "record.read" | "record.declare" | "record.notify" | "record.edit" | "record.reject" | "record.archive" | "record.review-duplicates" | "record.register" | "record.print-certified-copies" | "record.request-correction" | "record.correct" | "record.unassign-others" | "record.custom-action" | "bypassratelimit" | "record.reindex" | "user.data-seeding" | "integration.create" | "record.import" | "config.update-all" | "attachment.upload" | "profile.electronic-signature" | "user.read-only-my-audit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "record.confirm-registration" | "record.reject-registration" | "organisation.read-locations" | "user.read" | "user.create" | "user.edit" | "workqueue";
94
+ $scope: "record.search" | "record.create" | "record.read" | "record.declare" | "record.notify" | "record.edit" | "record.reject" | "record.archive" | "record.review-duplicates" | "record.register" | "record.print-certified-copies" | "record.request-correction" | "record.correct" | "record.unassign-others" | "record.custom-action" | "bypassratelimit" | "record.reindex" | "user.data-seeding" | "integration.create" | "record.import" | "config.update-all" | "attachment.upload" | "profile.electronic-signature" | "user.read-only-my-audit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "record.confirm-registration" | "record.reject-registration" | "organisation.read-locations" | "user.read" | "user.create" | "user.edit" | "workqueue" | "dashboard.view";
95
95
  $option: "event" | "placeOfEvent" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
96
96
  }) => {
97
97
  $jurisdiction: "administrativeArea" | "location" | "all" | {
98
- $scope: "record.search" | "record.create" | "record.read" | "record.declare" | "record.notify" | "record.edit" | "record.reject" | "record.archive" | "record.review-duplicates" | "record.register" | "record.print-certified-copies" | "record.request-correction" | "record.correct" | "record.unassign-others" | "record.custom-action" | "bypassratelimit" | "record.reindex" | "user.data-seeding" | "integration.create" | "record.import" | "config.update-all" | "attachment.upload" | "profile.electronic-signature" | "user.read-only-my-audit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "record.confirm-registration" | "record.reject-registration" | "organisation.read-locations" | "user.read" | "user.create" | "user.edit" | "workqueue";
98
+ $scope: "record.search" | "record.create" | "record.read" | "record.declare" | "record.notify" | "record.edit" | "record.reject" | "record.archive" | "record.review-duplicates" | "record.register" | "record.print-certified-copies" | "record.request-correction" | "record.correct" | "record.unassign-others" | "record.custom-action" | "bypassratelimit" | "record.reindex" | "user.data-seeding" | "integration.create" | "record.import" | "config.update-all" | "attachment.upload" | "profile.electronic-signature" | "user.read-only-my-audit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "record.confirm-registration" | "record.reject-registration" | "organisation.read-locations" | "user.read" | "user.create" | "user.edit" | "workqueue" | "dashboard.view";
99
99
  $option: "event" | "placeOfEvent" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
100
100
  };
101
101
  };