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