@opencrvs/toolkit 1.9.2-rc.c76ff3e → 1.9.2-rc.f1d7235

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.
@@ -170,6 +170,32 @@ declare const ConfigurableRawScopes: z.ZodDiscriminatedUnion<[z.ZodObject<{
170
170
  customActionType: z.ZodArray<z.ZodString>;
171
171
  }, z.core.$strip>;
172
172
  }, z.core.$strip>], "type">;
173
+ export declare const ConfigurableActionScopes: z.ZodDiscriminatedUnion<[z.ZodObject<{
174
+ type: z.ZodEnum<{
175
+ "record.unassign-others": "record.unassign-others";
176
+ "record.register": "record.register";
177
+ "record.read": "record.read";
178
+ "record.create": "record.create";
179
+ "record.declare": "record.declare";
180
+ "record.notify": "record.notify";
181
+ "record.declared.validate": "record.declared.validate";
182
+ "record.declared.reject": "record.declared.reject";
183
+ "record.declared.archive": "record.declared.archive";
184
+ "record.declared.review-duplicates": "record.declared.review-duplicates";
185
+ "record.registered.print-certified-copies": "record.registered.print-certified-copies";
186
+ "record.registered.request-correction": "record.registered.request-correction";
187
+ "record.registered.correct": "record.registered.correct";
188
+ }>;
189
+ options: z.ZodObject<{
190
+ event: z.ZodArray<z.ZodString>;
191
+ }, z.core.$strip>;
192
+ }, z.core.$strip>, z.ZodObject<{
193
+ type: z.ZodLiteral<"record.custom-action">;
194
+ options: z.ZodObject<{
195
+ event: z.ZodArray<z.ZodString>;
196
+ customActionType: z.ZodArray<z.ZodString>;
197
+ }, z.core.$strip>;
198
+ }, z.core.$strip>], "type">;
173
199
  type ConfigurableRawScopes = z.infer<typeof ConfigurableRawScopes>;
174
200
  export type ConfigurableScopeType = ConfigurableRawScopes['type'];
175
201
  type FlattenedSearchScope = {
@@ -31,6 +31,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
31
31
  var scopes_exports = {};
32
32
  __export(scopes_exports, {
33
33
  ActionScopes: () => ActionScopes,
34
+ ConfigurableActionScopes: () => ConfigurableActionScopes,
34
35
  CustomActionScope: () => CustomActionScope,
35
36
  RecordScope: () => RecordScope,
36
37
  RecordScopeType: () => RecordScopeType,
@@ -283,6 +284,11 @@ var ConfigurableRawScopes = z.discriminatedUnion("type", [
283
284
  RecordScope,
284
285
  CustomActionScope
285
286
  ]);
287
+ var ConfigurableActionScopes = z.discriminatedUnion("type", [
288
+ // @TODO - Record scope holds non-action scopes as well e.g., `record.read`
289
+ RecordScope,
290
+ CustomActionScope
291
+ ]);
286
292
  function flattenAndMergeScopes(scopes2) {
287
293
  if (scopes2.length === 0) return null;
288
294
  const type = scopes2[0].type;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencrvs/toolkit",
3
- "version": "1.9.2-rc.c76ff3e",
3
+ "version": "1.9.2-rc.f1d7235",
4
4
  "description": "OpenCRVS toolkit for building country configurations",
5
5
  "license": "MPL-2.0",
6
6
  "exports": {