@opencrvs/toolkit 1.9.7-rc.04ec821 → 1.9.7-rc.231a7a8
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.
|
@@ -11,7 +11,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
11
11
|
} | {
|
|
12
12
|
type: "system";
|
|
13
13
|
id: string;
|
|
14
|
-
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
14
|
+
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT" | "CITIZEN_PORTAL";
|
|
15
15
|
signature?: undefined;
|
|
16
16
|
primaryOfficeId?: undefined;
|
|
17
17
|
administrativeAreaId?: undefined;
|
|
@@ -34,7 +34,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
34
34
|
} | {
|
|
35
35
|
type: "system";
|
|
36
36
|
id: string;
|
|
37
|
-
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
37
|
+
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT" | "CITIZEN_PORTAL";
|
|
38
38
|
signature?: undefined;
|
|
39
39
|
primaryOfficeId?: undefined;
|
|
40
40
|
administrativeAreaId?: undefined;
|
|
@@ -57,7 +57,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
57
57
|
} | {
|
|
58
58
|
type: "system";
|
|
59
59
|
id: string;
|
|
60
|
-
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
60
|
+
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT" | "CITIZEN_PORTAL";
|
|
61
61
|
signature?: undefined;
|
|
62
62
|
primaryOfficeId?: undefined;
|
|
63
63
|
administrativeAreaId?: undefined;
|
|
@@ -27024,7 +27024,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
27024
27024
|
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
27025
27025
|
}>;
|
|
27026
27026
|
get: import("@trpc/server").TRPCQueryProcedure<{
|
|
27027
|
-
input:
|
|
27027
|
+
input: {
|
|
27028
|
+
eventId: string;
|
|
27029
|
+
};
|
|
27028
27030
|
output: {
|
|
27029
27031
|
id: string & import("zod").$brand<"UUID">;
|
|
27030
27032
|
type: string;
|
|
@@ -27657,7 +27659,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
27657
27659
|
} | {
|
|
27658
27660
|
type: "system";
|
|
27659
27661
|
id: string;
|
|
27660
|
-
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
27662
|
+
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT" | "CITIZEN_PORTAL";
|
|
27661
27663
|
signature?: undefined;
|
|
27662
27664
|
primaryOfficeId?: undefined;
|
|
27663
27665
|
administrativeAreaId?: undefined;
|
|
@@ -27737,7 +27739,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
27737
27739
|
} | {
|
|
27738
27740
|
type: "system";
|
|
27739
27741
|
id: string;
|
|
27740
|
-
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
27742
|
+
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT" | "CITIZEN_PORTAL";
|
|
27741
27743
|
signature?: undefined;
|
|
27742
27744
|
primaryOfficeId?: undefined;
|
|
27743
27745
|
administrativeAreaId?: undefined;
|
|
@@ -27760,7 +27762,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
27760
27762
|
} | {
|
|
27761
27763
|
type: "system";
|
|
27762
27764
|
id: string;
|
|
27763
|
-
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
27765
|
+
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT" | "CITIZEN_PORTAL";
|
|
27764
27766
|
signature?: undefined;
|
|
27765
27767
|
primaryOfficeId?: undefined;
|
|
27766
27768
|
administrativeAreaId?: undefined;
|
|
@@ -27805,7 +27807,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
27805
27807
|
} | {
|
|
27806
27808
|
type: "system";
|
|
27807
27809
|
id: string;
|
|
27808
|
-
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
27810
|
+
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT" | "CITIZEN_PORTAL";
|
|
27809
27811
|
signature?: undefined;
|
|
27810
27812
|
primaryOfficeId?: undefined;
|
|
27811
27813
|
administrativeAreaId?: undefined;
|
|
@@ -28159,7 +28161,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
28159
28161
|
} | {
|
|
28160
28162
|
type: "system";
|
|
28161
28163
|
id: string;
|
|
28162
|
-
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
28164
|
+
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT" | "CITIZEN_PORTAL";
|
|
28163
28165
|
signature?: undefined;
|
|
28164
28166
|
primaryOfficeId?: undefined;
|
|
28165
28167
|
administrativeAreaId?: undefined;
|
|
@@ -28204,7 +28206,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
28204
28206
|
} | {
|
|
28205
28207
|
type: "system";
|
|
28206
28208
|
id: string;
|
|
28207
|
-
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
28209
|
+
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT" | "CITIZEN_PORTAL";
|
|
28208
28210
|
signature?: undefined;
|
|
28209
28211
|
primaryOfficeId?: undefined;
|
|
28210
28212
|
administrativeAreaId?: undefined;
|
|
@@ -28249,7 +28251,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
28249
28251
|
} | {
|
|
28250
28252
|
type: "system";
|
|
28251
28253
|
id: string;
|
|
28252
|
-
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
28254
|
+
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT" | "CITIZEN_PORTAL";
|
|
28253
28255
|
signature?: undefined;
|
|
28254
28256
|
primaryOfficeId?: undefined;
|
|
28255
28257
|
administrativeAreaId?: undefined;
|
|
@@ -28294,7 +28296,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
28294
28296
|
} | {
|
|
28295
28297
|
type: "system";
|
|
28296
28298
|
id: string;
|
|
28297
|
-
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
28299
|
+
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT" | "CITIZEN_PORTAL";
|
|
28298
28300
|
signature?: undefined;
|
|
28299
28301
|
primaryOfficeId?: undefined;
|
|
28300
28302
|
administrativeAreaId?: undefined;
|
|
@@ -28339,7 +28341,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
28339
28341
|
} | {
|
|
28340
28342
|
type: "system";
|
|
28341
28343
|
id: string;
|
|
28342
|
-
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
28344
|
+
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT" | "CITIZEN_PORTAL";
|
|
28343
28345
|
signature?: undefined;
|
|
28344
28346
|
primaryOfficeId?: undefined;
|
|
28345
28347
|
administrativeAreaId?: undefined;
|
|
@@ -28384,7 +28386,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
28384
28386
|
} | {
|
|
28385
28387
|
type: "system";
|
|
28386
28388
|
id: string;
|
|
28387
|
-
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
28389
|
+
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT" | "CITIZEN_PORTAL";
|
|
28388
28390
|
signature?: undefined;
|
|
28389
28391
|
primaryOfficeId?: undefined;
|
|
28390
28392
|
administrativeAreaId?: undefined;
|
|
@@ -28739,7 +28741,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
28739
28741
|
} | {
|
|
28740
28742
|
type: "system";
|
|
28741
28743
|
id: string;
|
|
28742
|
-
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
28744
|
+
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT" | "CITIZEN_PORTAL";
|
|
28743
28745
|
signature?: undefined;
|
|
28744
28746
|
primaryOfficeId?: undefined;
|
|
28745
28747
|
administrativeAreaId?: undefined;
|
|
@@ -29393,7 +29395,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
29393
29395
|
} | {
|
|
29394
29396
|
type: "system";
|
|
29395
29397
|
id: string;
|
|
29396
|
-
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
29398
|
+
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT" | "CITIZEN_PORTAL";
|
|
29397
29399
|
signature?: undefined;
|
|
29398
29400
|
primaryOfficeId?: undefined;
|
|
29399
29401
|
administrativeAreaId?: undefined;
|
|
@@ -29416,7 +29418,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
29416
29418
|
} | {
|
|
29417
29419
|
type: "system";
|
|
29418
29420
|
id: string;
|
|
29419
|
-
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
29421
|
+
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT" | "CITIZEN_PORTAL";
|
|
29420
29422
|
signature?: undefined;
|
|
29421
29423
|
primaryOfficeId?: undefined;
|
|
29422
29424
|
administrativeAreaId?: undefined;
|
|
@@ -29461,7 +29463,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
29461
29463
|
} | {
|
|
29462
29464
|
type: "system";
|
|
29463
29465
|
id: string;
|
|
29464
|
-
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
29466
|
+
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT" | "CITIZEN_PORTAL";
|
|
29465
29467
|
signature?: undefined;
|
|
29466
29468
|
primaryOfficeId?: undefined;
|
|
29467
29469
|
administrativeAreaId?: undefined;
|
|
@@ -29506,7 +29508,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
29506
29508
|
} | {
|
|
29507
29509
|
type: "system";
|
|
29508
29510
|
id: string;
|
|
29509
|
-
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
29511
|
+
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT" | "CITIZEN_PORTAL";
|
|
29510
29512
|
signature?: undefined;
|
|
29511
29513
|
primaryOfficeId?: undefined;
|
|
29512
29514
|
administrativeAreaId?: undefined;
|
|
@@ -29552,7 +29554,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
29552
29554
|
} | {
|
|
29553
29555
|
type: "system";
|
|
29554
29556
|
id: string;
|
|
29555
|
-
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
29557
|
+
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT" | "CITIZEN_PORTAL";
|
|
29556
29558
|
signature?: undefined;
|
|
29557
29559
|
primaryOfficeId?: undefined;
|
|
29558
29560
|
administrativeAreaId?: undefined;
|
|
@@ -30576,7 +30578,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
30576
30578
|
} | {
|
|
30577
30579
|
type: "system";
|
|
30578
30580
|
id: string;
|
|
30579
|
-
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
30581
|
+
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT" | "CITIZEN_PORTAL";
|
|
30580
30582
|
signature?: undefined;
|
|
30581
30583
|
primaryOfficeId?: undefined;
|
|
30582
30584
|
administrativeAreaId?: undefined;
|
|
@@ -30607,7 +30609,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
30607
30609
|
id: string;
|
|
30608
30610
|
name: string;
|
|
30609
30611
|
type: "system";
|
|
30610
|
-
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
30612
|
+
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT" | "CITIZEN_PORTAL";
|
|
30611
30613
|
primaryOfficeId?: undefined;
|
|
30612
30614
|
administrativeAreaId?: undefined;
|
|
30613
30615
|
signature?: undefined;
|
|
@@ -30637,7 +30639,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
30637
30639
|
id: string;
|
|
30638
30640
|
name: string;
|
|
30639
30641
|
type: "system";
|
|
30640
|
-
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
30642
|
+
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT" | "CITIZEN_PORTAL";
|
|
30641
30643
|
primaryOfficeId?: undefined;
|
|
30642
30644
|
administrativeAreaId?: undefined;
|
|
30643
30645
|
signature?: undefined;
|
|
@@ -30698,7 +30700,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
30698
30700
|
} | {
|
|
30699
30701
|
type: "system";
|
|
30700
30702
|
id: string;
|
|
30701
|
-
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
30703
|
+
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT" | "CITIZEN_PORTAL";
|
|
30702
30704
|
signature?: undefined;
|
|
30703
30705
|
primaryOfficeId?: undefined;
|
|
30704
30706
|
administrativeAreaId?: undefined;
|
|
@@ -30758,7 +30760,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
30758
30760
|
} | {
|
|
30759
30761
|
type: "system";
|
|
30760
30762
|
id: string;
|
|
30761
|
-
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
30763
|
+
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT" | "CITIZEN_PORTAL";
|
|
30762
30764
|
signature?: undefined;
|
|
30763
30765
|
primaryOfficeId?: undefined;
|
|
30764
30766
|
administrativeAreaId?: undefined;
|
|
@@ -30781,7 +30783,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
30781
30783
|
} | {
|
|
30782
30784
|
type: "system";
|
|
30783
30785
|
id: string;
|
|
30784
|
-
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
30786
|
+
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT" | "CITIZEN_PORTAL";
|
|
30785
30787
|
signature?: undefined;
|
|
30786
30788
|
primaryOfficeId?: undefined;
|
|
30787
30789
|
administrativeAreaId?: undefined;
|
|
@@ -31068,7 +31070,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
31068
31070
|
} | {
|
|
31069
31071
|
type: "system";
|
|
31070
31072
|
id: string;
|
|
31071
|
-
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
31073
|
+
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT" | "CITIZEN_PORTAL";
|
|
31072
31074
|
signature?: undefined;
|
|
31073
31075
|
primaryOfficeId?: undefined;
|
|
31074
31076
|
administrativeAreaId?: undefined;
|
|
@@ -31097,7 +31099,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
31097
31099
|
} | {
|
|
31098
31100
|
type: "system";
|
|
31099
31101
|
id: string;
|
|
31100
|
-
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT";
|
|
31102
|
+
role: "NATIONAL_ID" | "HEALTH" | "RECORD_SEARCH" | "REINDEX" | "WEBHOOK" | "IMPORT_EXPORT" | "CITIZEN_PORTAL";
|
|
31101
31103
|
signature?: undefined;
|
|
31102
31104
|
primaryOfficeId?: undefined;
|
|
31103
31105
|
administrativeAreaId?: undefined;
|
|
@@ -254,4 +254,18 @@ export declare const BearerTokenByUserType: {
|
|
|
254
254
|
localRegistrar: string;
|
|
255
255
|
};
|
|
256
256
|
export declare const generateWorkqueues: (slug?: string) => WorkqueueConfig[];
|
|
257
|
+
/**
|
|
258
|
+
* Backend focused event config generator for testing fields in a lightweight way.
|
|
259
|
+
*
|
|
260
|
+
* @param id - The unique identifier for the event.
|
|
261
|
+
* @param fields - Field configurations to include in the event declaration. Everything in a single page.
|
|
262
|
+
* @param placeOfEventId - Optional place of event field id.
|
|
263
|
+
* @param dateOfEventId - Optional date of event field id.
|
|
264
|
+
*/
|
|
265
|
+
export declare const generateEventConfig: ({ id, fields, placeOfEventId, dateOfEventId }: {
|
|
266
|
+
id: string;
|
|
267
|
+
fields: FieldConfig[];
|
|
268
|
+
placeOfEventId?: string;
|
|
269
|
+
dateOfEventId?: string;
|
|
270
|
+
}) => EventConfig;
|
|
257
271
|
//# sourceMappingURL=test.utils.d.ts.map
|
package/dist/events/index.js
CHANGED
|
@@ -270,6 +270,7 @@ __export(events_exports, {
|
|
|
270
270
|
generateActionDeclarationInput: () => generateActionDeclarationInput,
|
|
271
271
|
generateActionDocument: () => generateActionDocument,
|
|
272
272
|
generateActionDuplicateDeclarationInput: () => generateActionDuplicateDeclarationInput,
|
|
273
|
+
generateEventConfig: () => generateEventConfig,
|
|
273
274
|
generateEventDocument: () => generateEventDocument,
|
|
274
275
|
generateEventDraftDocument: () => generateEventDraftDocument,
|
|
275
276
|
generateRandomDatetime: () => generateRandomDatetime,
|
|
@@ -9208,6 +9209,51 @@ var generateWorkqueues = (slug = "all-events") => defineWorkqueues([
|
|
|
9208
9209
|
icon: "Draft"
|
|
9209
9210
|
}
|
|
9210
9211
|
]);
|
|
9212
|
+
var generateEventConfig = ({
|
|
9213
|
+
id,
|
|
9214
|
+
fields,
|
|
9215
|
+
placeOfEventId,
|
|
9216
|
+
dateOfEventId
|
|
9217
|
+
}) => {
|
|
9218
|
+
return defineConfig({
|
|
9219
|
+
id,
|
|
9220
|
+
label: generateTranslationConfig2(id),
|
|
9221
|
+
title: generateTranslationConfig2(`${id} Event`),
|
|
9222
|
+
summary: {
|
|
9223
|
+
fields: []
|
|
9224
|
+
},
|
|
9225
|
+
placeOfEvent: placeOfEventId ? { $$field: placeOfEventId } : void 0,
|
|
9226
|
+
dateOfEvent: dateOfEventId ? { $$field: dateOfEventId } : void 0,
|
|
9227
|
+
declaration: {
|
|
9228
|
+
label: generateTranslationConfig2(`${id} Declaration`),
|
|
9229
|
+
pages: [
|
|
9230
|
+
{
|
|
9231
|
+
id: "page1",
|
|
9232
|
+
title: generateTranslationConfig2("Page 1"),
|
|
9233
|
+
fields
|
|
9234
|
+
}
|
|
9235
|
+
]
|
|
9236
|
+
},
|
|
9237
|
+
actions: [
|
|
9238
|
+
{
|
|
9239
|
+
type: ActionType.READ,
|
|
9240
|
+
label: generateTranslationConfig2("Read"),
|
|
9241
|
+
review: {
|
|
9242
|
+
title: generateTranslationConfig2("Review Read Action"),
|
|
9243
|
+
fields: []
|
|
9244
|
+
}
|
|
9245
|
+
},
|
|
9246
|
+
{
|
|
9247
|
+
type: ActionType.DECLARE,
|
|
9248
|
+
label: generateTranslationConfig2("Declare"),
|
|
9249
|
+
review: {
|
|
9250
|
+
title: generateTranslationConfig2("Review Declare Action"),
|
|
9251
|
+
fields: []
|
|
9252
|
+
}
|
|
9253
|
+
}
|
|
9254
|
+
]
|
|
9255
|
+
});
|
|
9256
|
+
};
|
|
9211
9257
|
|
|
9212
9258
|
// ../commons/src/events/TemplateConfig.ts
|
|
9213
9259
|
var window2 = () => ({
|