@opencrvs/toolkit 1.9.6-rc.fbe6e5b → 1.9.6-rc.fc3b4c3

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.
@@ -6,10 +6,11 @@ export declare const mandatoryColumns: {
6
6
  description: string;
7
7
  };
8
8
  value: {
9
- $event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "trackingId" | "placeOfEvent" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedAt" | "updatedBy" | "flags" | "outbox";
9
+ $event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "trackingId" | "legalStatuses" | "dateOfEvent" | "placeOfEvent" | "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<{
@@ -551,9 +550,9 @@ export declare const WorkqueueConfig: z.ZodObject<{
551
550
  createdAtLocation: "createdAtLocation";
552
551
  assignedTo: "assignedTo";
553
552
  trackingId: "trackingId";
554
- placeOfEvent: "placeOfEvent";
555
553
  legalStatuses: "legalStatuses";
556
554
  dateOfEvent: "dateOfEvent";
555
+ placeOfEvent: "placeOfEvent";
557
556
  updatedByUserRole: "updatedByUserRole";
558
557
  updatedAtLocation: "updatedAtLocation";
559
558
  updatedAt: "updatedAt";
@@ -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<{
@@ -1561,9 +1558,9 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
1561
1558
  createdAtLocation: "createdAtLocation";
1562
1559
  assignedTo: "assignedTo";
1563
1560
  trackingId: "trackingId";
1564
- placeOfEvent: "placeOfEvent";
1565
1561
  legalStatuses: "legalStatuses";
1566
1562
  dateOfEvent: "dateOfEvent";
1563
+ placeOfEvent: "placeOfEvent";
1567
1564
  updatedByUserRole: "updatedByUserRole";
1568
1565
  updatedAtLocation: "updatedAtLocation";
1569
1566
  updatedAt: "updatedAt";
@@ -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: {
@@ -1923,7 +1920,7 @@ export declare function defineWorkqueue(workqueueInput: WorkqueueConfigInput): {
1923
1920
  description: string;
1924
1921
  };
1925
1922
  value: {
1926
- $event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "trackingId" | "placeOfEvent" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedAt" | "updatedBy" | "flags" | "outbox";
1923
+ $event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "trackingId" | "legalStatuses" | "dateOfEvent" | "placeOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedAt" | "updatedBy" | "flags" | "outbox";
1927
1924
  };
1928
1925
  }[];
1929
1926
  icon: "Validated" | "Registered" | "Certified" | "Archived" | "List" | "Assigned" | "Briefcase" | "Close" | "Collapse" | "Draft" | "DuplicateYellow" | "Expand" | "ExternalValidate" | "FilledCheck" | "InReview" | "Offline" | "RequiresUpdates" | "Sent" | "WaitingApproval" | "ChartActivity" | "Activity" | "Archive" | "ArchiveTray" | "ArrowLeft" | "ArrowRight" | "Buildings" | "Circle" | "CaretDown" | "CaretLeft" | "CaretRight" | "ChartBar" | "ChartLine" | "ChatCircle" | "CheckSquare" | "Compass" | "Check" | "Copy" | "Database" | "DotsThreeVertical" | "ArrowCounterClockwise" | "MagnifyingGlassMinus" | "MagnifyingGlassPlus" | "Export" | "Eye" | "EyeSlash" | "Envelope" | "File" | "FileSearch" | "FileMinus" | "FilePlus" | "FileText" | "FileX" | "Handshake" | "Gear" | "GitBranch" | "IdentificationCard" | "ListBullets" | "Lock" | "MagnifyingGlass" | "MapPin" | "Medal" | "NotePencil" | "Paperclip" | "PaperPlaneTilt" | "Pen" | "PenNib" | "Pencil" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "SignOut" | "Stamp" | "Star" | "Target" | "TextT" | "Trash" | "UploadSimple" | "User" | "UserPlus" | "Users" | "WarningCircle" | "X" | "ChatText" | "CircleWavyCheck" | "CircleWavyQuestion" | "ArchiveBox" | "ArrowCircleDown" | "FileArrowUp" | "FileDotted" | "Files" | "PencilLine" | "PencilCircle" | "UserCircle" | "Clock" | "QrCode" | "Webcam" | "Sun" | "DeviceTabletCamera" | "Globe" | "Fingerprint" | "PushPin" | "Timer";
@@ -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: {
@@ -2173,7 +2170,7 @@ export declare function defineWorkqueues(workqueues: WorkqueueConfigInput[]): {
2173
2170
  description: string;
2174
2171
  };
2175
2172
  value: {
2176
- $event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "trackingId" | "placeOfEvent" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedAt" | "updatedBy" | "flags" | "outbox";
2173
+ $event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "trackingId" | "legalStatuses" | "dateOfEvent" | "placeOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedAt" | "updatedBy" | "flags" | "outbox";
2177
2174
  };
2178
2175
  }[];
2179
2176
  icon: "Validated" | "Registered" | "Certified" | "Archived" | "List" | "Assigned" | "Briefcase" | "Close" | "Collapse" | "Draft" | "DuplicateYellow" | "Expand" | "ExternalValidate" | "FilledCheck" | "InReview" | "Offline" | "RequiresUpdates" | "Sent" | "WaitingApproval" | "ChartActivity" | "Activity" | "Archive" | "ArchiveTray" | "ArrowLeft" | "ArrowRight" | "Buildings" | "Circle" | "CaretDown" | "CaretLeft" | "CaretRight" | "ChartBar" | "ChartLine" | "ChatCircle" | "CheckSquare" | "Compass" | "Check" | "Copy" | "Database" | "DotsThreeVertical" | "ArrowCounterClockwise" | "MagnifyingGlassMinus" | "MagnifyingGlassPlus" | "Export" | "Eye" | "EyeSlash" | "Envelope" | "File" | "FileSearch" | "FileMinus" | "FilePlus" | "FileText" | "FileX" | "Handshake" | "Gear" | "GitBranch" | "IdentificationCard" | "ListBullets" | "Lock" | "MagnifyingGlass" | "MapPin" | "Medal" | "NotePencil" | "Paperclip" | "PaperPlaneTilt" | "Pen" | "PenNib" | "Pencil" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "SignOut" | "Stamp" | "Star" | "Target" | "TextT" | "Trash" | "UploadSimple" | "User" | "UserPlus" | "Users" | "WarningCircle" | "X" | "ChatText" | "CircleWavyCheck" | "CircleWavyQuestion" | "ArchiveBox" | "ArrowCircleDown" | "FileArrowUp" | "FileDotted" | "Files" | "PencilLine" | "PencilCircle" | "UserCircle" | "Clock" | "QrCode" | "Webcam" | "Sun" | "DeviceTabletCamera" | "Globe" | "Fingerprint" | "PushPin" | "Timer";
@@ -726,6 +726,7 @@ export declare const defineConfig: (config: EventConfigInput) => {
726
726
  styles?: {
727
727
  fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
728
728
  hint?: boolean | undefined;
729
+ textAlign?: "start" | "end" | "left" | "center" | "right" | undefined;
729
730
  } | undefined;
730
731
  };
731
732
  parent?: {
@@ -4018,6 +4019,7 @@ export declare const defineConfig: (config: EventConfigInput) => {
4018
4019
  styles?: {
4019
4020
  fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
4020
4021
  hint?: boolean | undefined;
4022
+ textAlign?: "start" | "end" | "left" | "center" | "right" | undefined;
4021
4023
  } | undefined;
4022
4024
  };
4023
4025
  parent?: {
@@ -7300,6 +7302,7 @@ export declare const defineConfig: (config: EventConfigInput) => {
7300
7302
  styles?: {
7301
7303
  fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
7302
7304
  hint?: boolean | undefined;
7305
+ textAlign?: "start" | "end" | "left" | "center" | "right" | undefined;
7303
7306
  } | undefined;
7304
7307
  };
7305
7308
  parent?: {
@@ -10681,6 +10684,7 @@ export declare const defineConfig: (config: EventConfigInput) => {
10681
10684
  styles?: {
10682
10685
  fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
10683
10686
  hint?: boolean | undefined;
10687
+ textAlign?: "start" | "end" | "left" | "center" | "right" | undefined;
10684
10688
  } | undefined;
10685
10689
  };
10686
10690
  parent?: {
@@ -13947,6 +13951,7 @@ export declare const defineConfig: (config: EventConfigInput) => {
13947
13951
  styles?: {
13948
13952
  fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
13949
13953
  hint?: boolean | undefined;
13954
+ textAlign?: "start" | "end" | "left" | "center" | "right" | undefined;
13950
13955
  } | undefined;
13951
13956
  };
13952
13957
  parent?: {
@@ -17274,6 +17279,7 @@ export declare const defineConfig: (config: EventConfigInput) => {
17274
17279
  styles?: {
17275
17280
  fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
17276
17281
  hint?: boolean | undefined;
17282
+ textAlign?: "start" | "end" | "left" | "center" | "right" | undefined;
17277
17283
  } | undefined;
17278
17284
  };
17279
17285
  parent?: {
@@ -20540,6 +20546,7 @@ export declare const defineConfig: (config: EventConfigInput) => {
20540
20546
  styles?: {
20541
20547
  fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
20542
20548
  hint?: boolean | undefined;
20549
+ textAlign?: "start" | "end" | "left" | "center" | "right" | undefined;
20543
20550
  } | undefined;
20544
20551
  };
20545
20552
  parent?: {
@@ -23923,6 +23930,7 @@ export declare const defineConfig: (config: EventConfigInput) => {
23923
23930
  styles?: {
23924
23931
  fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
23925
23932
  hint?: boolean | undefined;
23933
+ textAlign?: "start" | "end" | "left" | "center" | "right" | undefined;
23926
23934
  } | undefined;
23927
23935
  };
23928
23936
  parent?: {
@@ -35,7 +35,6 @@ export declare function resolvePlaceOfEvent(eventMetadata: {
35
35
  export declare function extractPotentialDuplicatesFromActions(actions: Action[]): PotentialDuplicate[];
36
36
  /**
37
37
  * NOTE: This function should not run field validations. It should return the state based on the actions, without considering context (users, roles, permissions, etc).
38
- createdAtLocation: CreatedAtLocation
39
38
  *
40
39
  * If you update this function, please ensure @EventIndex type is updated accordingly.
41
40
  * In most cases, you won't need to add new parameters to this function. Discuss with the team before doing so.
@@ -678,6 +678,7 @@ export declare function getDeclarationPages(configuration: EventConfig): {
678
678
  styles?: {
679
679
  fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
680
680
  hint?: boolean | undefined;
681
+ textAlign?: "start" | "end" | "left" | "center" | "right" | undefined;
681
682
  } | undefined;
682
683
  };
683
684
  parent?: {
@@ -3951,6 +3952,7 @@ export declare function getDeclaration(configuration: EventConfig): {
3951
3952
  styles?: {
3952
3953
  fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
3953
3954
  hint?: boolean | undefined;
3955
+ textAlign?: "start" | "end" | "left" | "center" | "right" | undefined;
3954
3956
  } | undefined;
3955
3957
  };
3956
3958
  parent?: {
@@ -7226,6 +7228,7 @@ export declare function getPrintCertificatePages(configuration: EventConfig): ({
7226
7228
  styles?: {
7227
7229
  fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
7228
7230
  hint?: boolean | undefined;
7231
+ textAlign?: "start" | "end" | "left" | "center" | "right" | undefined;
7229
7232
  } | undefined;
7230
7233
  };
7231
7234
  parent?: {
@@ -10492,6 +10495,7 @@ export declare function getPrintCertificatePages(configuration: EventConfig): ({
10492
10495
  styles?: {
10493
10496
  fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
10494
10497
  hint?: boolean | undefined;
10498
+ textAlign?: "start" | "end" | "left" | "center" | "right" | undefined;
10495
10499
  } | undefined;
10496
10500
  };
10497
10501
  parent?: {
@@ -13779,6 +13783,7 @@ export declare const getActionAnnotationFields: (actionConfig: ActionConfig) =>
13779
13783
  styles?: {
13780
13784
  fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
13781
13785
  hint?: boolean | undefined;
13786
+ textAlign?: "start" | "end" | "left" | "center" | "right" | undefined;
13782
13787
  } | undefined;
13783
13788
  };
13784
13789
  parent?: {
@@ -17035,6 +17040,7 @@ export declare function getAllUniqueFields(eventConfig: EventConfig): ({
17035
17040
  styles?: {
17036
17041
  fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
17037
17042
  hint?: boolean | undefined;
17043
+ textAlign?: "start" | "end" | "left" | "center" | "right" | undefined;
17038
17044
  } | undefined;
17039
17045
  };
17040
17046
  parent?: {
@@ -20302,6 +20308,7 @@ export declare function getActionReview(configuration: EventConfig, actionType:
20302
20308
  styles?: {
20303
20309
  fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
20304
20310
  hint?: boolean | undefined;
20311
+ textAlign?: "start" | "end" | "left" | "center" | "right" | undefined;
20305
20312
  } | undefined;
20306
20313
  };
20307
20314
  parent?: {
@@ -23559,6 +23566,7 @@ export declare function getActionReviewFields(configuration: EventConfig, action
23559
23566
  styles?: {
23560
23567
  fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
23561
23568
  hint?: boolean | undefined;
23569
+ textAlign?: "start" | "end" | "left" | "center" | "right" | undefined;
23562
23570
  } | undefined;
23563
23571
  };
23564
23572
  parent?: {
@@ -27348,6 +27356,7 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
27348
27356
  styles?: {
27349
27357
  fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
27350
27358
  hint?: boolean | undefined;
27359
+ textAlign?: "start" | "end" | "left" | "center" | "right" | undefined;
27351
27360
  } | undefined;
27352
27361
  };
27353
27362
  parent?: {
@@ -30640,6 +30649,7 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
30640
30649
  styles?: {
30641
30650
  fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
30642
30651
  hint?: boolean | undefined;
30652
+ textAlign?: "start" | "end" | "left" | "center" | "right" | undefined;
30643
30653
  } | undefined;
30644
30654
  };
30645
30655
  parent?: {
@@ -33922,6 +33932,7 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
33922
33932
  styles?: {
33923
33933
  fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
33924
33934
  hint?: boolean | undefined;
33935
+ textAlign?: "start" | "end" | "left" | "center" | "right" | undefined;
33925
33936
  } | undefined;
33926
33937
  };
33927
33938
  parent?: {
@@ -37303,6 +37314,7 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
37303
37314
  styles?: {
37304
37315
  fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
37305
37316
  hint?: boolean | undefined;
37317
+ textAlign?: "start" | "end" | "left" | "center" | "right" | undefined;
37306
37318
  } | undefined;
37307
37319
  };
37308
37320
  parent?: {
@@ -40569,6 +40581,7 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
40569
40581
  styles?: {
40570
40582
  fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
40571
40583
  hint?: boolean | undefined;
40584
+ textAlign?: "start" | "end" | "left" | "center" | "right" | undefined;
40572
40585
  } | undefined;
40573
40586
  };
40574
40587
  parent?: {
@@ -43896,6 +43909,7 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
43896
43909
  styles?: {
43897
43910
  fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
43898
43911
  hint?: boolean | undefined;
43912
+ textAlign?: "start" | "end" | "left" | "center" | "right" | undefined;
43899
43913
  } | undefined;
43900
43914
  };
43901
43915
  parent?: {
@@ -47162,6 +47176,7 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
47162
47176
  styles?: {
47163
47177
  fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
47164
47178
  hint?: boolean | undefined;
47179
+ textAlign?: "start" | "end" | "left" | "center" | "right" | undefined;
47165
47180
  } | undefined;
47166
47181
  };
47167
47182
  parent?: {
@@ -50545,6 +50560,7 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
50545
50560
  styles?: {
50546
50561
  fontVariant?: "reg12" | "reg14" | "reg16" | "reg18" | "h4" | "h3" | "h2" | "h1" | undefined;
50547
50562
  hint?: boolean | undefined;
50563
+ textAlign?: "start" | "end" | "left" | "center" | "right" | undefined;
50548
50564
  } | undefined;
50549
50565
  };
50550
50566
  parent?: {
@@ -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,
@@ -972,9 +972,6 @@ var z14 = __toESM(require("zod/v4"));
972
972
  // ../commons/src/events/ActionDocument.ts
973
973
  var z12 = __toESM(require("zod/v4"));
974
974
 
975
- // ../commons/src/events/CreatedAtLocation.ts
976
- var CreatedAtLocation = UUID.nullish();
977
-
978
975
  // ../commons/src/authentication.ts
979
976
  var import_jwt_decode = __toESM(require("jwt-decode"));
980
977
  var z11 = __toESM(require("zod/v4"));
@@ -1178,12 +1175,6 @@ var SearchScope = z10.object({
1178
1175
  access: z10.array(z10.enum(["my-jurisdiction", "all"])).length(1)
1179
1176
  })
1180
1177
  });
1181
- var DashboardScope = z10.object({
1182
- type: z10.literal("dashboard.view"),
1183
- options: z10.object({
1184
- id: z10.array(z10.string())
1185
- })
1186
- });
1187
1178
  var RecordScopeType = z10.enum([
1188
1179
  "record.create",
1189
1180
  "record.read",
@@ -1219,7 +1210,6 @@ var ConfigurableRawScopes = z10.discriminatedUnion("type", [
1219
1210
  CreateUserScope,
1220
1211
  EditUserScope,
1221
1212
  WorkqueueScope,
1222
- DashboardScope,
1223
1213
  RecordScope,
1224
1214
  CustomActionScope
1225
1215
  ]);
@@ -1446,7 +1436,8 @@ var ActionBase = z12.object({
1446
1436
  createdBy: z12.string().describe("Identifier of the user who created the action."),
1447
1437
  createdByRole: z12.string().describe("Role of the user who created the action."),
1448
1438
  createdBySignature: z12.string().nullish().describe("Reference to the signature of the user who created the action."),
1449
- createdAtLocation: CreatedAtLocation.describe(
1439
+ // @TODO: createdAtLocation should be non-nullable in the future once all actions have this field populated.
1440
+ createdAtLocation: UUID.nullish().describe(
1450
1441
  "Reference to the location of the user who created the action."
1451
1442
  ),
1452
1443
  declaration: ActionUpdate.describe(
@@ -1681,7 +1672,8 @@ var ZodDate = z14.iso.date();
1681
1672
  var ActionCreationMetadata = z14.object({
1682
1673
  createdAt: z14.iso.datetime().describe("The timestamp when the action request was created."),
1683
1674
  createdBy: z14.string().describe("ID of the user who created the action request."),
1684
- createdAtLocation: CreatedAtLocation.describe(
1675
+ // @TODO: createdAtLocation should be non-nullable in the future once all action requests have this field populated.
1676
+ createdAtLocation: UUID.nullish().describe(
1685
1677
  "Location of the user who created the action request."
1686
1678
  ),
1687
1679
  createdByUserType: z14.enum(["user", "system"]).nullish().describe("Whether the user is a normal user or a system."),
@@ -1707,11 +1699,12 @@ var EventMetadata = z14.object({
1707
1699
  ),
1708
1700
  createdAt: z14.iso.datetime().describe("The timestamp when the event was first created and saved."),
1709
1701
  dateOfEvent: ZodDate.nullish(),
1710
- placeOfEvent: CreatedAtLocation,
1702
+ placeOfEvent: UUID.nullish(),
1711
1703
  createdBy: z14.string().describe("ID of the user who created the event."),
1712
1704
  createdByUserType: z14.enum(["user", "system"]).nullish().describe("Whether the user is a normal user or a system."),
1713
1705
  updatedByUserRole: z14.string().describe("Role of the user who last changed the status."),
1714
- createdAtLocation: CreatedAtLocation.describe(
1706
+ // @TODO: createdAtLocation should be non-nullable in the future once all action requests have this field populated.
1707
+ createdAtLocation: UUID.nullish().describe(
1715
1708
  "Location of the user who created the event."
1716
1709
  ),
1717
1710
  createdBySignature: z14.string().nullish().describe("Signature of the user who created the event."),
@@ -2197,12 +2190,16 @@ var HtmlFontVariant = z17.enum([
2197
2190
  "h2",
2198
2191
  "h1"
2199
2192
  ]);
2193
+ var ParagraphTextAlign = z17.enum(["left", "center", "right", "start", "end"]);
2200
2194
  var ParagraphConfiguration = z17.object({
2201
2195
  styles: z17.object({
2202
2196
  fontVariant: HtmlFontVariant.optional().describe(
2203
2197
  "Font variant to use for the paragraph text"
2204
2198
  ),
2205
- hint: z17.boolean().optional().describe("When true, paragraph is styled as a hint with grey color")
2199
+ hint: z17.boolean().optional().describe("When true, paragraph is styled as a hint with grey color"),
2200
+ textAlign: ParagraphTextAlign.optional().describe(
2201
+ "Text alignment for the paragraph"
2202
+ )
2206
2203
  }).optional()
2207
2204
  }).default({});
2208
2205
  var Paragraph = BaseField.extend({
@@ -5352,11 +5349,7 @@ var mandatoryColumns = defineWorkqueuesColumns([
5352
5349
  value: event.field("updatedAt")
5353
5350
  }
5354
5351
  ]);
5355
- var WorkqueueActionsWithDefault = z33.enum([
5356
- ...workqueueActions.options,
5357
- "DEFAULT",
5358
- ActionType.READ
5359
- ]);
5352
+ var CtaActionType = z33.enum([...workqueueActions.options, ActionType.READ]);
5360
5353
  var WorkqueueConfig = z33.object({
5361
5354
  slug: z33.string().describe("Determines the url of the workqueue."),
5362
5355
  name: TranslationConfig.describe(
@@ -5365,7 +5358,7 @@ var WorkqueueConfig = z33.object({
5365
5358
  query: CountryConfigQueryType,
5366
5359
  /** This action object used to contain a conditionals option, but it was not used anywhere.
5367
5360
  * It's also debatable whether it should be an array, or just a single action. */
5368
- actions: z33.array(z33.object({ type: WorkqueueActionsWithDefault })).describe("Workqueue call-to-action button configuration."),
5361
+ actions: z33.array(z33.object({ type: CtaActionType })).describe("Workqueue call-to-action button configuration."),
5369
5362
  columns: z33.array(WorkqueueColumn).default(mandatoryColumns),
5370
5363
  icon: AvailableIcons,
5371
5364
  emptyMessage: TranslationConfig.optional()
@@ -5380,7 +5373,7 @@ var WorkqueueConfigInput = z33.object({
5380
5373
  "Title of the workflow (both in navigation and on the page)"
5381
5374
  ),
5382
5375
  query: CountryConfigQueryInputType,
5383
- actions: z33.array(z33.object({ type: WorkqueueActionsWithDefault })).describe("Workqueue call-to-action button configuration."),
5376
+ actions: z33.array(z33.object({ type: CtaActionType })).describe("Workqueue call-to-action button configuration."),
5384
5377
  columns: z33.array(WorkqueueColumn).default(mandatoryColumns),
5385
5378
  icon: AvailableIcons,
5386
5379
  emptyMessage: TranslationConfig.optional()
@@ -5432,14 +5425,18 @@ var BaseActionInput = z34.object({
5432
5425
  // should not be part of base action.
5433
5426
  keepAssignment: z34.boolean().optional(),
5434
5427
  // For normal users, the createdAtLocation is resolved on the backend from the user's primaryOfficeId.
5435
- createdAtLocation: CreatedAtLocation.describe(
5428
+ // @TODO: createdAtLocation should be limited to actions that system users can perform. For normal users, it should not be part of the base action.
5429
+ createdAtLocation: UUID.nullish().describe(
5436
5430
  "A valid office location ID. This is required for system users performing actions. The provided location must be a leaf-location, i.e. it must not have any children locations."
5437
5431
  )
5438
5432
  });
5439
5433
  var CreateActionInput = BaseActionInput.extend(
5440
5434
  z34.object({
5441
5435
  type: z34.literal(ActionType.CREATE).default(ActionType.CREATE),
5442
- createdAtLocation: CreatedAtLocation
5436
+ // For normal users, the createdAtLocation is resolved on the backend from the user's primaryOfficeId.
5437
+ createdAtLocation: UUID.nullish().describe(
5438
+ "A valid office location ID. This is required for system users performing actions. The provided location must be a leaf-location, i.e. it must not have any children locations."
5439
+ )
5443
5440
  }).shape
5444
5441
  );
5445
5442
  var RegisterActionInput = BaseActionInput.extend(
@@ -5450,7 +5447,11 @@ var RegisterActionInput = BaseActionInput.extend(
5450
5447
  );
5451
5448
  var NotifyActionInput = BaseActionInput.extend(
5452
5449
  z34.object({
5453
- type: z34.literal(ActionType.NOTIFY).default(ActionType.NOTIFY)
5450
+ type: z34.literal(ActionType.NOTIFY).default(ActionType.NOTIFY),
5451
+ // For normal users, the createdAtLocation is resolved on the backend from the user's primaryOfficeId.
5452
+ createdAtLocation: UUID.nullish().describe(
5453
+ "A valid office location ID. This is required for system users performing actions. The provided location must be a leaf-location, i.e. it must not have any children locations."
5454
+ )
5454
5455
  }).shape
5455
5456
  ).meta({
5456
5457
  default: {
@@ -5613,11 +5614,14 @@ var DraftInput = BaseActionInput.extend({
5613
5614
 
5614
5615
  // ../commons/src/events/EventInput.ts
5615
5616
  var z36 = __toESM(require("zod/v4"));
5616
- var import_uuid10 = require("uuid");
5617
+ var import_uuid9 = require("uuid");
5617
5618
  var EventInput = z36.object({
5618
5619
  transactionId: z36.string(),
5619
- type: z36.string()
5620
- }).meta({ default: { transactionId: (0, import_uuid10.v4)(), type: "birth" } });
5620
+ type: z36.string(),
5621
+ createdAtLocation: UUID.nullish().describe(
5622
+ "Location where the event occurred. Required for system users."
5623
+ )
5624
+ }).meta({ default: { transactionId: (0, import_uuid9.v4)(), type: "birth" } });
5621
5625
 
5622
5626
  // ../commons/src/events/EventDocument.ts
5623
5627
  var z37 = __toESM(require("zod/v4"));
@@ -9170,7 +9174,7 @@ var generateWorkqueues = (slug = "all-events") => defineWorkqueues([
9170
9174
  type: "and",
9171
9175
  clauses: [{ eventType: tennisClubMembershipEvent.id }]
9172
9176
  },
9173
- actions: [{ type: "DEFAULT" }],
9177
+ actions: [{ type: ActionType.READ }],
9174
9178
  icon: "Draft"
9175
9179
  }
9176
9180
  ]);