@opencrvs/toolkit 1.9.6-rc.56fcaf1 → 1.9.6-rc.58ef0a0

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.
@@ -31023,7 +31023,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
31023
31023
  }[];
31024
31024
  };
31025
31025
  actions: {
31026
- type: "DELETE" | "READ" | "DECLARE" | "REJECT" | "REGISTER" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "EDIT" | "ARCHIVE" | "MARK_AS_DUPLICATE" | "ASSIGN" | "UNASSIGN" | "DEFAULT";
31026
+ type: "DELETE" | "READ" | "DECLARE" | "REJECT" | "REGISTER" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "EDIT" | "ARCHIVE" | "MARK_AS_DUPLICATE" | "ASSIGN" | "UNASSIGN";
31027
31027
  }[];
31028
31028
  columns: {
31029
31029
  label: {
@@ -9,7 +9,8 @@ export declare const mandatoryColumns: {
9
9
  $event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "trackingId" | "placeOfEvent" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedAt" | "updatedBy" | "flags" | "outbox";
10
10
  };
11
11
  }[];
12
- export declare const WorkqueueActionsWithDefault: z.ZodEnum<{
12
+ /** Workqueue Call-to-action -button action type */
13
+ export declare const CtaActionType: z.ZodEnum<{
13
14
  DELETE: "DELETE";
14
15
  DECLARE: "DECLARE";
15
16
  REGISTER: "REGISTER";
@@ -22,9 +23,8 @@ export declare const WorkqueueActionsWithDefault: z.ZodEnum<{
22
23
  READ: "READ";
23
24
  ASSIGN: "ASSIGN";
24
25
  UNASSIGN: "UNASSIGN";
25
- DEFAULT: "DEFAULT";
26
26
  }>;
27
- export type WorkqueueActionsWithDefault = z.infer<typeof WorkqueueActionsWithDefault>;
27
+ export type CtaActionType = z.infer<typeof CtaActionType>;
28
28
  /**
29
29
  * Configuration for workqueue. Workqueues are used to display a list of events.
30
30
  */
@@ -534,7 +534,6 @@ export declare const WorkqueueConfig: z.ZodObject<{
534
534
  READ: "READ";
535
535
  ASSIGN: "ASSIGN";
536
536
  UNASSIGN: "UNASSIGN";
537
- DEFAULT: "DEFAULT";
538
537
  }>;
539
538
  }, z.core.$strip>>;
540
539
  columns: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -791,7 +790,6 @@ export declare const WorkqueueConfigWithoutQuery: z.ZodObject<{
791
790
  READ: "READ";
792
791
  ASSIGN: "ASSIGN";
793
792
  UNASSIGN: "UNASSIGN";
794
- DEFAULT: "DEFAULT";
795
793
  }>;
796
794
  }, z.core.$strip>>;
797
795
  slug: z.ZodString;
@@ -1544,7 +1542,6 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
1544
1542
  READ: "READ";
1545
1543
  ASSIGN: "ASSIGN";
1546
1544
  UNASSIGN: "UNASSIGN";
1547
- DEFAULT: "DEFAULT";
1548
1545
  }>;
1549
1546
  }, z.core.$strip>>;
1550
1547
  columns: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -1914,7 +1911,7 @@ export declare function defineWorkqueue(workqueueInput: WorkqueueConfigInput): {
1914
1911
  }[];
1915
1912
  };
1916
1913
  actions: {
1917
- type: "DELETE" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN" | "DEFAULT";
1914
+ type: "DELETE" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
1918
1915
  }[];
1919
1916
  columns: {
1920
1917
  label: {
@@ -2164,7 +2161,7 @@ export declare function defineWorkqueues(workqueues: WorkqueueConfigInput[]): {
2164
2161
  }[];
2165
2162
  };
2166
2163
  actions: {
2167
- type: "DELETE" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN" | "DEFAULT";
2164
+ type: "DELETE" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN";
2168
2165
  }[];
2169
2166
  columns: {
2170
2167
  label: {
@@ -75,6 +75,7 @@ __export(events_exports, {
75
75
  ConditionalType: () => ConditionalType,
76
76
  ConfirmableActions: () => ConfirmableActions,
77
77
  ContainsFlags: () => ContainsFlags,
78
+ CtaActionType: () => CtaActionType,
78
79
  CustomActionInput: () => CustomActionInput,
79
80
  CustomFieldValue: () => CustomFieldValue,
80
81
  CustomFlag: () => CustomFlag,
@@ -210,7 +211,6 @@ __export(events_exports, {
210
211
  VerificationPageConfig: () => VerificationPageConfig,
211
212
  VerificationStatusValue: () => VerificationStatusValue,
212
213
  Within: () => Within,
213
- WorkqueueActionsWithDefault: () => WorkqueueActionsWithDefault,
214
214
  WorkqueueColumn: () => WorkqueueColumn,
215
215
  WorkqueueColumnKeys: () => WorkqueueColumnKeys,
216
216
  WorkqueueColumnKeysArray: () => WorkqueueColumnKeysArray,
@@ -5345,9 +5345,8 @@ var mandatoryColumns = defineWorkqueuesColumns([
5345
5345
  value: event.field("updatedAt")
5346
5346
  }
5347
5347
  ]);
5348
- var WorkqueueActionsWithDefault = z33.enum([
5348
+ var CtaActionType = z33.enum([
5349
5349
  ...workqueueActions.options,
5350
- "DEFAULT",
5351
5350
  ActionType.READ
5352
5351
  ]);
5353
5352
  var WorkqueueConfig = z33.object({
@@ -5358,7 +5357,7 @@ var WorkqueueConfig = z33.object({
5358
5357
  query: CountryConfigQueryType,
5359
5358
  /** This action object used to contain a conditionals option, but it was not used anywhere.
5360
5359
  * It's also debatable whether it should be an array, or just a single action. */
5361
- actions: z33.array(z33.object({ type: WorkqueueActionsWithDefault })).describe("Workqueue call-to-action button configuration."),
5360
+ actions: z33.array(z33.object({ type: CtaActionType })).describe("Workqueue call-to-action button configuration."),
5362
5361
  columns: z33.array(WorkqueueColumn).default(mandatoryColumns),
5363
5362
  icon: AvailableIcons,
5364
5363
  emptyMessage: TranslationConfig.optional()
@@ -5373,7 +5372,7 @@ var WorkqueueConfigInput = z33.object({
5373
5372
  "Title of the workflow (both in navigation and on the page)"
5374
5373
  ),
5375
5374
  query: CountryConfigQueryInputType,
5376
- actions: z33.array(z33.object({ type: WorkqueueActionsWithDefault })).describe("Workqueue call-to-action button configuration."),
5375
+ actions: z33.array(z33.object({ type: CtaActionType })).describe("Workqueue call-to-action button configuration."),
5377
5376
  columns: z33.array(WorkqueueColumn).default(mandatoryColumns),
5378
5377
  icon: AvailableIcons,
5379
5378
  emptyMessage: TranslationConfig.optional()
@@ -9163,7 +9162,7 @@ var generateWorkqueues = (slug = "all-events") => defineWorkqueues([
9163
9162
  type: "and",
9164
9163
  clauses: [{ eventType: tennisClubMembershipEvent.id }]
9165
9164
  },
9166
- actions: [{ type: "DEFAULT" }],
9165
+ actions: [{ type: ActionType.READ }],
9167
9166
  icon: "Draft"
9168
9167
  }
9169
9168
  ]);
@@ -3819,9 +3819,8 @@ var mandatoryColumns = defineWorkqueuesColumns([
3819
3819
  value: event.field("updatedAt")
3820
3820
  }
3821
3821
  ]);
3822
- var WorkqueueActionsWithDefault = z33.enum([
3822
+ var CtaActionType = z33.enum([
3823
3823
  ...workqueueActions.options,
3824
- "DEFAULT",
3825
3824
  ActionType.READ
3826
3825
  ]);
3827
3826
  var WorkqueueConfig = z33.object({
@@ -3832,7 +3831,7 @@ var WorkqueueConfig = z33.object({
3832
3831
  query: CountryConfigQueryType,
3833
3832
  /** This action object used to contain a conditionals option, but it was not used anywhere.
3834
3833
  * It's also debatable whether it should be an array, or just a single action. */
3835
- actions: z33.array(z33.object({ type: WorkqueueActionsWithDefault })).describe("Workqueue call-to-action button configuration."),
3834
+ actions: z33.array(z33.object({ type: CtaActionType })).describe("Workqueue call-to-action button configuration."),
3836
3835
  columns: z33.array(WorkqueueColumn).default(mandatoryColumns),
3837
3836
  icon: AvailableIcons,
3838
3837
  emptyMessage: TranslationConfig.optional()
@@ -3847,7 +3846,7 @@ var WorkqueueConfigInput = z33.object({
3847
3846
  "Title of the workflow (both in navigation and on the page)"
3848
3847
  ),
3849
3848
  query: CountryConfigQueryInputType,
3850
- actions: z33.array(z33.object({ type: WorkqueueActionsWithDefault })).describe("Workqueue call-to-action button configuration."),
3849
+ actions: z33.array(z33.object({ type: CtaActionType })).describe("Workqueue call-to-action button configuration."),
3851
3850
  columns: z33.array(WorkqueueColumn).default(mandatoryColumns),
3852
3851
  icon: AvailableIcons,
3853
3852
  emptyMessage: TranslationConfig.optional()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencrvs/toolkit",
3
- "version": "1.9.6-rc.56fcaf1",
3
+ "version": "1.9.6-rc.58ef0a0",
4
4
  "description": "OpenCRVS toolkit for building country configurations",
5
5
  "license": "MPL-2.0",
6
6
  "exports": {