@opencrvs/toolkit 1.9.3-rc.36ed9b8 → 1.9.3-rc.5ef5e53

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.
@@ -4041,7 +4041,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4041
4041
  } | undefined;
4042
4042
  }[];
4043
4043
  };
4044
- icon: "Validated" | "Registered" | "Certified" | "Archived" | "List" | "Draft" | "Archive" | "Assigned" | "Close" | "Collapse" | "DuplicateYellow" | "Expand" | "ExternalValidate" | "FilledCheck" | "InReview" | "Offline" | "RequiresUpdates" | "Sent" | "WaitingApproval" | "ChartActivity" | "Activity" | "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" | "Pencil" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "SignOut" | "Star" | "Target" | "TextT" | "Trash" | "UploadSimple" | "User" | "UserPlus" | "Users" | "WarningCircle" | "X" | "CircleWavyCheck" | "CircleWavyQuestion" | "ArchiveBox" | "ArrowCircleDown" | "FileArrowUp" | "FileDotted" | "Files" | "PencilLine" | "PencilCircle" | "UserCircle" | "Clock" | "QrCode" | "Webcam" | "Sun" | "DeviceTabletCamera" | "Globe" | "Fingerprint" | "PushPin" | "Timer";
4044
+ icon: "Validated" | "Registered" | "Certified" | "Archived" | "List" | "Draft" | "Archive" | "IdentificationCard" | "Check" | "Assigned" | "Close" | "Collapse" | "DuplicateYellow" | "Expand" | "ExternalValidate" | "FilledCheck" | "InReview" | "Offline" | "RequiresUpdates" | "Sent" | "WaitingApproval" | "ChartActivity" | "Activity" | "ArchiveTray" | "ArrowLeft" | "ArrowRight" | "Buildings" | "Circle" | "CaretDown" | "CaretLeft" | "CaretRight" | "ChartBar" | "ChartLine" | "ChatCircle" | "CheckSquare" | "Compass" | "Copy" | "Database" | "DotsThreeVertical" | "ArrowCounterClockwise" | "MagnifyingGlassMinus" | "MagnifyingGlassPlus" | "Export" | "Eye" | "EyeSlash" | "Envelope" | "File" | "FileSearch" | "FileMinus" | "FilePlus" | "FileText" | "FileX" | "Handshake" | "Gear" | "GitBranch" | "ListBullets" | "Lock" | "MagnifyingGlass" | "MapPin" | "Medal" | "NotePencil" | "Paperclip" | "PaperPlaneTilt" | "Pen" | "Pencil" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "SignOut" | "Star" | "Target" | "TextT" | "Trash" | "UploadSimple" | "User" | "UserPlus" | "Users" | "WarningCircle" | "X" | "CircleWavyCheck" | "CircleWavyQuestion" | "ArchiveBox" | "ArrowCircleDown" | "FileArrowUp" | "FileDotted" | "Files" | "PencilLine" | "PencilCircle" | "UserCircle" | "Clock" | "QrCode" | "Webcam" | "Sun" | "DeviceTabletCamera" | "Globe" | "Fingerprint" | "PushPin" | "Timer";
4045
4045
  slug: string;
4046
4046
  columns: {
4047
4047
  value: {
@@ -6,7 +6,7 @@ import { FieldUpdateValue, FieldValue } from '../events/FieldValue';
6
6
  import { TranslationConfig } from '../events/TranslationConfig';
7
7
  import { ITokenPayload } from '../authentication';
8
8
  import { UUID } from '../uuid';
9
- import { ActionType } from '../client';
9
+ import { ActionType, EventDocument } from '../client';
10
10
  export declare function validate(schema: JSONSchema, data: ConditionalParameters): boolean;
11
11
  export declare function validateValue(schema: JSONSchema, data: unknown): boolean;
12
12
  export declare function isOnline(): boolean;
@@ -17,6 +17,7 @@ export type ValidatorContext = {
17
17
  leafAdminStructureLocationIds?: Array<{
18
18
  id: UUID;
19
19
  }>;
20
+ event?: EventDocument;
20
21
  };
21
22
  export declare function isFieldVisible(field: FieldConfig, form: Partial<ActionUpdate | EventState>, context: ValidatorContext): boolean;
22
23
  export declare function isFieldEnabled(field: FieldConfig, form: ActionUpdate | EventState, context: ValidatorContext): boolean;
@@ -1954,7 +1954,7 @@ export declare const WorkqueueConfig: z.ZodObject<{
1954
1954
  } | undefined;
1955
1955
  }[];
1956
1956
  };
1957
- icon: "Validated" | "Registered" | "Certified" | "Archived" | "List" | "Draft" | "Archive" | "Assigned" | "Close" | "Collapse" | "DuplicateYellow" | "Expand" | "ExternalValidate" | "FilledCheck" | "InReview" | "Offline" | "RequiresUpdates" | "Sent" | "WaitingApproval" | "ChartActivity" | "Activity" | "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" | "Pencil" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "SignOut" | "Star" | "Target" | "TextT" | "Trash" | "UploadSimple" | "User" | "UserPlus" | "Users" | "WarningCircle" | "X" | "CircleWavyCheck" | "CircleWavyQuestion" | "ArchiveBox" | "ArrowCircleDown" | "FileArrowUp" | "FileDotted" | "Files" | "PencilLine" | "PencilCircle" | "UserCircle" | "Clock" | "QrCode" | "Webcam" | "Sun" | "DeviceTabletCamera" | "Globe" | "Fingerprint" | "PushPin" | "Timer";
1957
+ icon: "Validated" | "Registered" | "Certified" | "Archived" | "List" | "Draft" | "Archive" | "IdentificationCard" | "Check" | "Assigned" | "Close" | "Collapse" | "DuplicateYellow" | "Expand" | "ExternalValidate" | "FilledCheck" | "InReview" | "Offline" | "RequiresUpdates" | "Sent" | "WaitingApproval" | "ChartActivity" | "Activity" | "ArchiveTray" | "ArrowLeft" | "ArrowRight" | "Buildings" | "Circle" | "CaretDown" | "CaretLeft" | "CaretRight" | "ChartBar" | "ChartLine" | "ChatCircle" | "CheckSquare" | "Compass" | "Copy" | "Database" | "DotsThreeVertical" | "ArrowCounterClockwise" | "MagnifyingGlassMinus" | "MagnifyingGlassPlus" | "Export" | "Eye" | "EyeSlash" | "Envelope" | "File" | "FileSearch" | "FileMinus" | "FilePlus" | "FileText" | "FileX" | "Handshake" | "Gear" | "GitBranch" | "ListBullets" | "Lock" | "MagnifyingGlass" | "MapPin" | "Medal" | "NotePencil" | "Paperclip" | "PaperPlaneTilt" | "Pen" | "Pencil" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "SignOut" | "Star" | "Target" | "TextT" | "Trash" | "UploadSimple" | "User" | "UserPlus" | "Users" | "WarningCircle" | "X" | "CircleWavyCheck" | "CircleWavyQuestion" | "ArchiveBox" | "ArrowCircleDown" | "FileArrowUp" | "FileDotted" | "Files" | "PencilLine" | "PencilCircle" | "UserCircle" | "Clock" | "QrCode" | "Webcam" | "Sun" | "DeviceTabletCamera" | "Globe" | "Fingerprint" | "PushPin" | "Timer";
1958
1958
  slug: string;
1959
1959
  columns: {
1960
1960
  value: {
@@ -2206,7 +2206,7 @@ export declare const WorkqueueConfig: z.ZodObject<{
2206
2206
  } | undefined;
2207
2207
  }[];
2208
2208
  };
2209
- icon: "Validated" | "Registered" | "Certified" | "Archived" | "List" | "Draft" | "Archive" | "Assigned" | "Close" | "Collapse" | "DuplicateYellow" | "Expand" | "ExternalValidate" | "FilledCheck" | "InReview" | "Offline" | "RequiresUpdates" | "Sent" | "WaitingApproval" | "ChartActivity" | "Activity" | "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" | "Pencil" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "SignOut" | "Star" | "Target" | "TextT" | "Trash" | "UploadSimple" | "User" | "UserPlus" | "Users" | "WarningCircle" | "X" | "CircleWavyCheck" | "CircleWavyQuestion" | "ArchiveBox" | "ArrowCircleDown" | "FileArrowUp" | "FileDotted" | "Files" | "PencilLine" | "PencilCircle" | "UserCircle" | "Clock" | "QrCode" | "Webcam" | "Sun" | "DeviceTabletCamera" | "Globe" | "Fingerprint" | "PushPin" | "Timer";
2209
+ icon: "Validated" | "Registered" | "Certified" | "Archived" | "List" | "Draft" | "Archive" | "IdentificationCard" | "Check" | "Assigned" | "Close" | "Collapse" | "DuplicateYellow" | "Expand" | "ExternalValidate" | "FilledCheck" | "InReview" | "Offline" | "RequiresUpdates" | "Sent" | "WaitingApproval" | "ChartActivity" | "Activity" | "ArchiveTray" | "ArrowLeft" | "ArrowRight" | "Buildings" | "Circle" | "CaretDown" | "CaretLeft" | "CaretRight" | "ChartBar" | "ChartLine" | "ChatCircle" | "CheckSquare" | "Compass" | "Copy" | "Database" | "DotsThreeVertical" | "ArrowCounterClockwise" | "MagnifyingGlassMinus" | "MagnifyingGlassPlus" | "Export" | "Eye" | "EyeSlash" | "Envelope" | "File" | "FileSearch" | "FileMinus" | "FilePlus" | "FileText" | "FileX" | "Handshake" | "Gear" | "GitBranch" | "ListBullets" | "Lock" | "MagnifyingGlass" | "MapPin" | "Medal" | "NotePencil" | "Paperclip" | "PaperPlaneTilt" | "Pen" | "Pencil" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "SignOut" | "Star" | "Target" | "TextT" | "Trash" | "UploadSimple" | "User" | "UserPlus" | "Users" | "WarningCircle" | "X" | "CircleWavyCheck" | "CircleWavyQuestion" | "ArchiveBox" | "ArrowCircleDown" | "FileArrowUp" | "FileDotted" | "Files" | "PencilLine" | "PencilCircle" | "UserCircle" | "Clock" | "QrCode" | "Webcam" | "Sun" | "DeviceTabletCamera" | "Globe" | "Fingerprint" | "PushPin" | "Timer";
2210
2210
  slug: string;
2211
2211
  columns?: {
2212
2212
  value: {
@@ -3934,7 +3934,7 @@ export declare const WorkqueueConfigWithoutQuery: z.ZodObject<Omit<{
3934
3934
  type: "DELETE" | "DECLARE" | "VALIDATE" | "REGISTER" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN" | "DEFAULT";
3935
3935
  conditionals?: import(".").JSONSchema[] | undefined;
3936
3936
  }[];
3937
- icon: "Validated" | "Registered" | "Certified" | "Archived" | "List" | "Draft" | "Archive" | "Assigned" | "Close" | "Collapse" | "DuplicateYellow" | "Expand" | "ExternalValidate" | "FilledCheck" | "InReview" | "Offline" | "RequiresUpdates" | "Sent" | "WaitingApproval" | "ChartActivity" | "Activity" | "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" | "Pencil" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "SignOut" | "Star" | "Target" | "TextT" | "Trash" | "UploadSimple" | "User" | "UserPlus" | "Users" | "WarningCircle" | "X" | "CircleWavyCheck" | "CircleWavyQuestion" | "ArchiveBox" | "ArrowCircleDown" | "FileArrowUp" | "FileDotted" | "Files" | "PencilLine" | "PencilCircle" | "UserCircle" | "Clock" | "QrCode" | "Webcam" | "Sun" | "DeviceTabletCamera" | "Globe" | "Fingerprint" | "PushPin" | "Timer";
3937
+ icon: "Validated" | "Registered" | "Certified" | "Archived" | "List" | "Draft" | "Archive" | "IdentificationCard" | "Check" | "Assigned" | "Close" | "Collapse" | "DuplicateYellow" | "Expand" | "ExternalValidate" | "FilledCheck" | "InReview" | "Offline" | "RequiresUpdates" | "Sent" | "WaitingApproval" | "ChartActivity" | "Activity" | "ArchiveTray" | "ArrowLeft" | "ArrowRight" | "Buildings" | "Circle" | "CaretDown" | "CaretLeft" | "CaretRight" | "ChartBar" | "ChartLine" | "ChatCircle" | "CheckSquare" | "Compass" | "Copy" | "Database" | "DotsThreeVertical" | "ArrowCounterClockwise" | "MagnifyingGlassMinus" | "MagnifyingGlassPlus" | "Export" | "Eye" | "EyeSlash" | "Envelope" | "File" | "FileSearch" | "FileMinus" | "FilePlus" | "FileText" | "FileX" | "Handshake" | "Gear" | "GitBranch" | "ListBullets" | "Lock" | "MagnifyingGlass" | "MapPin" | "Medal" | "NotePencil" | "Paperclip" | "PaperPlaneTilt" | "Pen" | "Pencil" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "SignOut" | "Star" | "Target" | "TextT" | "Trash" | "UploadSimple" | "User" | "UserPlus" | "Users" | "WarningCircle" | "X" | "CircleWavyCheck" | "CircleWavyQuestion" | "ArchiveBox" | "ArrowCircleDown" | "FileArrowUp" | "FileDotted" | "Files" | "PencilLine" | "PencilCircle" | "UserCircle" | "Clock" | "QrCode" | "Webcam" | "Sun" | "DeviceTabletCamera" | "Globe" | "Fingerprint" | "PushPin" | "Timer";
3938
3938
  slug: string;
3939
3939
  emptyMessage?: TranslationConfig | undefined;
3940
3940
  }, {
@@ -3947,7 +3947,7 @@ export declare const WorkqueueConfigWithoutQuery: z.ZodObject<Omit<{
3947
3947
  type: "DELETE" | "DECLARE" | "VALIDATE" | "REGISTER" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN" | "DEFAULT";
3948
3948
  conditionals?: import(".").JSONSchema[] | undefined;
3949
3949
  }[];
3950
- icon: "Validated" | "Registered" | "Certified" | "Archived" | "List" | "Draft" | "Archive" | "Assigned" | "Close" | "Collapse" | "DuplicateYellow" | "Expand" | "ExternalValidate" | "FilledCheck" | "InReview" | "Offline" | "RequiresUpdates" | "Sent" | "WaitingApproval" | "ChartActivity" | "Activity" | "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" | "Pencil" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "SignOut" | "Star" | "Target" | "TextT" | "Trash" | "UploadSimple" | "User" | "UserPlus" | "Users" | "WarningCircle" | "X" | "CircleWavyCheck" | "CircleWavyQuestion" | "ArchiveBox" | "ArrowCircleDown" | "FileArrowUp" | "FileDotted" | "Files" | "PencilLine" | "PencilCircle" | "UserCircle" | "Clock" | "QrCode" | "Webcam" | "Sun" | "DeviceTabletCamera" | "Globe" | "Fingerprint" | "PushPin" | "Timer";
3950
+ icon: "Validated" | "Registered" | "Certified" | "Archived" | "List" | "Draft" | "Archive" | "IdentificationCard" | "Check" | "Assigned" | "Close" | "Collapse" | "DuplicateYellow" | "Expand" | "ExternalValidate" | "FilledCheck" | "InReview" | "Offline" | "RequiresUpdates" | "Sent" | "WaitingApproval" | "ChartActivity" | "Activity" | "ArchiveTray" | "ArrowLeft" | "ArrowRight" | "Buildings" | "Circle" | "CaretDown" | "CaretLeft" | "CaretRight" | "ChartBar" | "ChartLine" | "ChatCircle" | "CheckSquare" | "Compass" | "Copy" | "Database" | "DotsThreeVertical" | "ArrowCounterClockwise" | "MagnifyingGlassMinus" | "MagnifyingGlassPlus" | "Export" | "Eye" | "EyeSlash" | "Envelope" | "File" | "FileSearch" | "FileMinus" | "FilePlus" | "FileText" | "FileX" | "Handshake" | "Gear" | "GitBranch" | "ListBullets" | "Lock" | "MagnifyingGlass" | "MapPin" | "Medal" | "NotePencil" | "Paperclip" | "PaperPlaneTilt" | "Pen" | "Pencil" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "SignOut" | "Star" | "Target" | "TextT" | "Trash" | "UploadSimple" | "User" | "UserPlus" | "Users" | "WarningCircle" | "X" | "CircleWavyCheck" | "CircleWavyQuestion" | "ArchiveBox" | "ArrowCircleDown" | "FileArrowUp" | "FileDotted" | "Files" | "PencilLine" | "PencilCircle" | "UserCircle" | "Clock" | "QrCode" | "Webcam" | "Sun" | "DeviceTabletCamera" | "Globe" | "Fingerprint" | "PushPin" | "Timer";
3951
3951
  slug: string;
3952
3952
  emptyMessage?: {
3953
3953
  id: string;
@@ -6602,7 +6602,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
6602
6602
  } | undefined;
6603
6603
  }[];
6604
6604
  };
6605
- icon: "Validated" | "Registered" | "Certified" | "Archived" | "List" | "Draft" | "Archive" | "Assigned" | "Close" | "Collapse" | "DuplicateYellow" | "Expand" | "ExternalValidate" | "FilledCheck" | "InReview" | "Offline" | "RequiresUpdates" | "Sent" | "WaitingApproval" | "ChartActivity" | "Activity" | "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" | "Pencil" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "SignOut" | "Star" | "Target" | "TextT" | "Trash" | "UploadSimple" | "User" | "UserPlus" | "Users" | "WarningCircle" | "X" | "CircleWavyCheck" | "CircleWavyQuestion" | "ArchiveBox" | "ArrowCircleDown" | "FileArrowUp" | "FileDotted" | "Files" | "PencilLine" | "PencilCircle" | "UserCircle" | "Clock" | "QrCode" | "Webcam" | "Sun" | "DeviceTabletCamera" | "Globe" | "Fingerprint" | "PushPin" | "Timer";
6605
+ icon: "Validated" | "Registered" | "Certified" | "Archived" | "List" | "Draft" | "Archive" | "IdentificationCard" | "Check" | "Assigned" | "Close" | "Collapse" | "DuplicateYellow" | "Expand" | "ExternalValidate" | "FilledCheck" | "InReview" | "Offline" | "RequiresUpdates" | "Sent" | "WaitingApproval" | "ChartActivity" | "Activity" | "ArchiveTray" | "ArrowLeft" | "ArrowRight" | "Buildings" | "Circle" | "CaretDown" | "CaretLeft" | "CaretRight" | "ChartBar" | "ChartLine" | "ChatCircle" | "CheckSquare" | "Compass" | "Copy" | "Database" | "DotsThreeVertical" | "ArrowCounterClockwise" | "MagnifyingGlassMinus" | "MagnifyingGlassPlus" | "Export" | "Eye" | "EyeSlash" | "Envelope" | "File" | "FileSearch" | "FileMinus" | "FilePlus" | "FileText" | "FileX" | "Handshake" | "Gear" | "GitBranch" | "ListBullets" | "Lock" | "MagnifyingGlass" | "MapPin" | "Medal" | "NotePencil" | "Paperclip" | "PaperPlaneTilt" | "Pen" | "Pencil" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "SignOut" | "Star" | "Target" | "TextT" | "Trash" | "UploadSimple" | "User" | "UserPlus" | "Users" | "WarningCircle" | "X" | "CircleWavyCheck" | "CircleWavyQuestion" | "ArchiveBox" | "ArrowCircleDown" | "FileArrowUp" | "FileDotted" | "Files" | "PencilLine" | "PencilCircle" | "UserCircle" | "Clock" | "QrCode" | "Webcam" | "Sun" | "DeviceTabletCamera" | "Globe" | "Fingerprint" | "PushPin" | "Timer";
6606
6606
  slug: string;
6607
6607
  columns: {
6608
6608
  value: {
@@ -6967,7 +6967,7 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
6967
6967
  } | undefined;
6968
6968
  }[];
6969
6969
  };
6970
- icon: "Validated" | "Registered" | "Certified" | "Archived" | "List" | "Draft" | "Archive" | "Assigned" | "Close" | "Collapse" | "DuplicateYellow" | "Expand" | "ExternalValidate" | "FilledCheck" | "InReview" | "Offline" | "RequiresUpdates" | "Sent" | "WaitingApproval" | "ChartActivity" | "Activity" | "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" | "Pencil" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "SignOut" | "Star" | "Target" | "TextT" | "Trash" | "UploadSimple" | "User" | "UserPlus" | "Users" | "WarningCircle" | "X" | "CircleWavyCheck" | "CircleWavyQuestion" | "ArchiveBox" | "ArrowCircleDown" | "FileArrowUp" | "FileDotted" | "Files" | "PencilLine" | "PencilCircle" | "UserCircle" | "Clock" | "QrCode" | "Webcam" | "Sun" | "DeviceTabletCamera" | "Globe" | "Fingerprint" | "PushPin" | "Timer";
6970
+ icon: "Validated" | "Registered" | "Certified" | "Archived" | "List" | "Draft" | "Archive" | "IdentificationCard" | "Check" | "Assigned" | "Close" | "Collapse" | "DuplicateYellow" | "Expand" | "ExternalValidate" | "FilledCheck" | "InReview" | "Offline" | "RequiresUpdates" | "Sent" | "WaitingApproval" | "ChartActivity" | "Activity" | "ArchiveTray" | "ArrowLeft" | "ArrowRight" | "Buildings" | "Circle" | "CaretDown" | "CaretLeft" | "CaretRight" | "ChartBar" | "ChartLine" | "ChatCircle" | "CheckSquare" | "Compass" | "Copy" | "Database" | "DotsThreeVertical" | "ArrowCounterClockwise" | "MagnifyingGlassMinus" | "MagnifyingGlassPlus" | "Export" | "Eye" | "EyeSlash" | "Envelope" | "File" | "FileSearch" | "FileMinus" | "FilePlus" | "FileText" | "FileX" | "Handshake" | "Gear" | "GitBranch" | "ListBullets" | "Lock" | "MagnifyingGlass" | "MapPin" | "Medal" | "NotePencil" | "Paperclip" | "PaperPlaneTilt" | "Pen" | "Pencil" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "SignOut" | "Star" | "Target" | "TextT" | "Trash" | "UploadSimple" | "User" | "UserPlus" | "Users" | "WarningCircle" | "X" | "CircleWavyCheck" | "CircleWavyQuestion" | "ArchiveBox" | "ArrowCircleDown" | "FileArrowUp" | "FileDotted" | "Files" | "PencilLine" | "PencilCircle" | "UserCircle" | "Clock" | "QrCode" | "Webcam" | "Sun" | "DeviceTabletCamera" | "Globe" | "Fingerprint" | "PushPin" | "Timer";
6971
6971
  slug: string;
6972
6972
  columns?: {
6973
6973
  value: {
@@ -7227,7 +7227,7 @@ export declare function defineWorkqueue(workqueueInput: WorkqueueConfigInput): {
7227
7227
  } | undefined;
7228
7228
  }[];
7229
7229
  };
7230
- icon: "Validated" | "Registered" | "Certified" | "Archived" | "List" | "Draft" | "Archive" | "Assigned" | "Close" | "Collapse" | "DuplicateYellow" | "Expand" | "ExternalValidate" | "FilledCheck" | "InReview" | "Offline" | "RequiresUpdates" | "Sent" | "WaitingApproval" | "ChartActivity" | "Activity" | "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" | "Pencil" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "SignOut" | "Star" | "Target" | "TextT" | "Trash" | "UploadSimple" | "User" | "UserPlus" | "Users" | "WarningCircle" | "X" | "CircleWavyCheck" | "CircleWavyQuestion" | "ArchiveBox" | "ArrowCircleDown" | "FileArrowUp" | "FileDotted" | "Files" | "PencilLine" | "PencilCircle" | "UserCircle" | "Clock" | "QrCode" | "Webcam" | "Sun" | "DeviceTabletCamera" | "Globe" | "Fingerprint" | "PushPin" | "Timer";
7230
+ icon: "Validated" | "Registered" | "Certified" | "Archived" | "List" | "Draft" | "Archive" | "IdentificationCard" | "Check" | "Assigned" | "Close" | "Collapse" | "DuplicateYellow" | "Expand" | "ExternalValidate" | "FilledCheck" | "InReview" | "Offline" | "RequiresUpdates" | "Sent" | "WaitingApproval" | "ChartActivity" | "Activity" | "ArchiveTray" | "ArrowLeft" | "ArrowRight" | "Buildings" | "Circle" | "CaretDown" | "CaretLeft" | "CaretRight" | "ChartBar" | "ChartLine" | "ChatCircle" | "CheckSquare" | "Compass" | "Copy" | "Database" | "DotsThreeVertical" | "ArrowCounterClockwise" | "MagnifyingGlassMinus" | "MagnifyingGlassPlus" | "Export" | "Eye" | "EyeSlash" | "Envelope" | "File" | "FileSearch" | "FileMinus" | "FilePlus" | "FileText" | "FileX" | "Handshake" | "Gear" | "GitBranch" | "ListBullets" | "Lock" | "MagnifyingGlass" | "MapPin" | "Medal" | "NotePencil" | "Paperclip" | "PaperPlaneTilt" | "Pen" | "Pencil" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "SignOut" | "Star" | "Target" | "TextT" | "Trash" | "UploadSimple" | "User" | "UserPlus" | "Users" | "WarningCircle" | "X" | "CircleWavyCheck" | "CircleWavyQuestion" | "ArchiveBox" | "ArrowCircleDown" | "FileArrowUp" | "FileDotted" | "Files" | "PencilLine" | "PencilCircle" | "UserCircle" | "Clock" | "QrCode" | "Webcam" | "Sun" | "DeviceTabletCamera" | "Globe" | "Fingerprint" | "PushPin" | "Timer";
7231
7231
  slug: string;
7232
7232
  columns: {
7233
7233
  value: {
@@ -7476,7 +7476,7 @@ export declare function defineWorkqueues(workqueues: WorkqueueConfigInput[]): {
7476
7476
  } | undefined;
7477
7477
  }[];
7478
7478
  };
7479
- icon: "Validated" | "Registered" | "Certified" | "Archived" | "List" | "Draft" | "Archive" | "Assigned" | "Close" | "Collapse" | "DuplicateYellow" | "Expand" | "ExternalValidate" | "FilledCheck" | "InReview" | "Offline" | "RequiresUpdates" | "Sent" | "WaitingApproval" | "ChartActivity" | "Activity" | "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" | "Pencil" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "SignOut" | "Star" | "Target" | "TextT" | "Trash" | "UploadSimple" | "User" | "UserPlus" | "Users" | "WarningCircle" | "X" | "CircleWavyCheck" | "CircleWavyQuestion" | "ArchiveBox" | "ArrowCircleDown" | "FileArrowUp" | "FileDotted" | "Files" | "PencilLine" | "PencilCircle" | "UserCircle" | "Clock" | "QrCode" | "Webcam" | "Sun" | "DeviceTabletCamera" | "Globe" | "Fingerprint" | "PushPin" | "Timer";
7479
+ icon: "Validated" | "Registered" | "Certified" | "Archived" | "List" | "Draft" | "Archive" | "IdentificationCard" | "Check" | "Assigned" | "Close" | "Collapse" | "DuplicateYellow" | "Expand" | "ExternalValidate" | "FilledCheck" | "InReview" | "Offline" | "RequiresUpdates" | "Sent" | "WaitingApproval" | "ChartActivity" | "Activity" | "ArchiveTray" | "ArrowLeft" | "ArrowRight" | "Buildings" | "Circle" | "CaretDown" | "CaretLeft" | "CaretRight" | "ChartBar" | "ChartLine" | "ChatCircle" | "CheckSquare" | "Compass" | "Copy" | "Database" | "DotsThreeVertical" | "ArrowCounterClockwise" | "MagnifyingGlassMinus" | "MagnifyingGlassPlus" | "Export" | "Eye" | "EyeSlash" | "Envelope" | "File" | "FileSearch" | "FileMinus" | "FilePlus" | "FileText" | "FileX" | "Handshake" | "Gear" | "GitBranch" | "ListBullets" | "Lock" | "MagnifyingGlass" | "MapPin" | "Medal" | "NotePencil" | "Paperclip" | "PaperPlaneTilt" | "Pen" | "Pencil" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "SignOut" | "Star" | "Target" | "TextT" | "Trash" | "UploadSimple" | "User" | "UserPlus" | "Users" | "WarningCircle" | "X" | "CircleWavyCheck" | "CircleWavyQuestion" | "ArchiveBox" | "ArrowCircleDown" | "FileArrowUp" | "FileDotted" | "Files" | "PencilLine" | "PencilCircle" | "UserCircle" | "Clock" | "QrCode" | "Webcam" | "Sun" | "DeviceTabletCamera" | "Globe" | "Fingerprint" | "PushPin" | "Timer";
7480
7480
  slug: string;
7481
7481
  columns: {
7482
7482
  value: {
@@ -3303,7 +3303,8 @@ function isConditionMet(conditional, values, context) {
3303
3303
  $now: (0, import_date_fns.formatISO)(/* @__PURE__ */ new Date(), { representation: "date" }),
3304
3304
  $online: isOnline(),
3305
3305
  $user: context.user,
3306
- $leafAdminStructureLocationIds: context.leafAdminStructureLocationIds ?? []
3306
+ $leafAdminStructureLocationIds: context.leafAdminStructureLocationIds ?? [],
3307
+ $event: context.event
3307
3308
  });
3308
3309
  }
3309
3310
  function getConditionalActionsForField(field3, values) {
@@ -3329,7 +3330,8 @@ function isFieldConditionMet(field3, form, conditionalType, context) {
3329
3330
  $now: (0, import_date_fns.formatISO)(/* @__PURE__ */ new Date(), { representation: "date" }),
3330
3331
  $online: isOnline(),
3331
3332
  $user: context.user,
3332
- $leafAdminStructureLocationIds: context.leafAdminStructureLocationIds ?? []
3333
+ $leafAdminStructureLocationIds: context.leafAdminStructureLocationIds ?? [],
3334
+ $event: context.event
3333
3335
  });
3334
3336
  return validConditionals.includes(conditionalType);
3335
3337
  }
@@ -7858,10 +7860,382 @@ var v2BirthEvent = defineConfig({
7858
7860
  advancedSearch: []
7859
7861
  });
7860
7862
 
7861
- // ../commons/src/events/test.utils.ts
7863
+ // ../commons/src/search.ts
7864
+ var IN_PROGRESS_STATUS = "IN_PROGRESS";
7865
+ var ARCHIVED_STATUS = "ARCHIVED";
7866
+ var DECLARED_STATUS = "DECLARED";
7867
+ var REJECTED_STATUS = "REJECTED";
7868
+ var VALIDATED_STATUS = "VALIDATED";
7869
+ var WAITING_VALIDATION_STATUS = "WAITING_VALIDATION";
7870
+ var REGISTERED_STATUS = "REGISTERED";
7871
+ var REINSTATED_STATUS = "REINSTATED";
7872
+ var CERTIFIED_STATUS = "CERTIFIED";
7873
+ var ISSUED_STATUS = "ISSUED";
7874
+ var REQUESTED_CORRECTION_STATUS = "REQUESTED_CORRECTION";
7875
+ var DECLARATION_UPDATED_STATUS = "DECLARATION_UPDATED";
7876
+ var validStatusMapping = {
7877
+ [ARCHIVED_STATUS]: [
7878
+ DECLARED_STATUS,
7879
+ REJECTED_STATUS,
7880
+ VALIDATED_STATUS
7881
+ ],
7882
+ [IN_PROGRESS_STATUS]: [null],
7883
+ [DECLARED_STATUS]: [ARCHIVED_STATUS, null],
7884
+ [REJECTED_STATUS]: [
7885
+ DECLARED_STATUS,
7886
+ IN_PROGRESS_STATUS,
7887
+ WAITING_VALIDATION_STATUS,
7888
+ VALIDATED_STATUS,
7889
+ ARCHIVED_STATUS
7890
+ ],
7891
+ [VALIDATED_STATUS]: [
7892
+ DECLARED_STATUS,
7893
+ IN_PROGRESS_STATUS,
7894
+ REJECTED_STATUS,
7895
+ ARCHIVED_STATUS,
7896
+ DECLARATION_UPDATED_STATUS,
7897
+ null
7898
+ ],
7899
+ [WAITING_VALIDATION_STATUS]: [
7900
+ null,
7901
+ DECLARED_STATUS,
7902
+ IN_PROGRESS_STATUS,
7903
+ REJECTED_STATUS,
7904
+ VALIDATED_STATUS,
7905
+ DECLARATION_UPDATED_STATUS
7906
+ ],
7907
+ [REGISTERED_STATUS]: [
7908
+ null,
7909
+ DECLARED_STATUS,
7910
+ IN_PROGRESS_STATUS,
7911
+ REJECTED_STATUS,
7912
+ VALIDATED_STATUS,
7913
+ WAITING_VALIDATION_STATUS
7914
+ ],
7915
+ [CERTIFIED_STATUS]: [REGISTERED_STATUS, ISSUED_STATUS],
7916
+ [ISSUED_STATUS]: [CERTIFIED_STATUS],
7917
+ [REQUESTED_CORRECTION_STATUS]: [REGISTERED_STATUS, CERTIFIED_STATUS],
7918
+ [REINSTATED_STATUS]: [ARCHIVED_STATUS]
7919
+ };
7920
+
7921
+ // ../commons/src/users/User.ts
7862
7922
  var import_zod35 = require("zod");
7923
+ var User = import_zod35.z.object({
7924
+ id: import_zod35.z.string(),
7925
+ name: import_zod35.z.array(
7926
+ import_zod35.z.object({
7927
+ use: import_zod35.z.string(),
7928
+ given: import_zod35.z.array(import_zod35.z.string()),
7929
+ family: import_zod35.z.string()
7930
+ })
7931
+ ),
7932
+ role: import_zod35.z.string(),
7933
+ avatar: FullDocumentPath.optional(),
7934
+ signature: FullDocumentPath.optional().describe(
7935
+ "Storage key for the user signature. e.g. /ocrvs/signature.png"
7936
+ ),
7937
+ primaryOfficeId: UUID,
7938
+ fullHonorificName: import_zod35.z.string().optional(),
7939
+ type: TokenUserType.extract(["user"])
7940
+ });
7941
+ var SystemRole = import_zod35.z.enum([
7942
+ "HEALTH",
7943
+ "NATIONAL_ID",
7944
+ "RECORD_SEARCH",
7945
+ "REINDEX",
7946
+ "WEBHOOK",
7947
+ "IMPORT_EXPORT"
7948
+ ]);
7949
+ var System = import_zod35.z.object({
7950
+ id: import_zod35.z.string(),
7951
+ name: import_zod35.z.string(),
7952
+ type: TokenUserType.extract(["system"]),
7953
+ role: SystemRole,
7954
+ primaryOfficeId: import_zod35.z.undefined().optional(),
7955
+ signature: import_zod35.z.undefined().optional(),
7956
+ avatar: import_zod35.z.undefined().optional(),
7957
+ fullHonorificName: import_zod35.z.string().optional()
7958
+ });
7959
+ var UserOrSystem = import_zod35.z.discriminatedUnion("type", [User, System]);
7960
+
7961
+ // ../commons/src/notification/UserNotifications.ts
7962
+ var import_zod36 = require("zod");
7963
+ var TriggerEvent = {
7964
+ USER_CREATED: "user-created",
7965
+ USER_UPDATED: "user-updated",
7966
+ USERNAME_REMINDER: "username-reminder",
7967
+ RESET_PASSWORD: "reset-password",
7968
+ RESET_PASSWORD_BY_ADMIN: "reset-password-by-admin",
7969
+ TWO_FA: "2fa",
7970
+ ALL_USER_NOTIFICATION: "all-user-notification",
7971
+ CHANGE_PHONE_NUMBER: "change-phone-number",
7972
+ CHANGE_EMAIL_ADDRESS: "change-email-address"
7973
+ };
7974
+ var Recipient = import_zod36.z.object({
7975
+ name: NameFieldValue.optional(),
7976
+ mobile: import_zod36.z.string().optional(),
7977
+ email: import_zod36.z.string().optional(),
7978
+ bcc: import_zod36.z.array(import_zod36.z.string()).optional()
7979
+ });
7980
+ var BasePayload = import_zod36.z.object({
7981
+ recipient: Recipient
7982
+ });
7983
+ var TriggerPayload = {
7984
+ [TriggerEvent.USER_CREATED]: BasePayload.extend({
7985
+ username: import_zod36.z.string(),
7986
+ temporaryPassword: import_zod36.z.string()
7987
+ }),
7988
+ [TriggerEvent.USER_UPDATED]: BasePayload.extend({
7989
+ oldUsername: import_zod36.z.string(),
7990
+ newUsername: import_zod36.z.string()
7991
+ }),
7992
+ [TriggerEvent.USERNAME_REMINDER]: BasePayload.extend({
7993
+ username: import_zod36.z.string()
7994
+ }),
7995
+ [TriggerEvent.RESET_PASSWORD]: BasePayload.extend({
7996
+ code: import_zod36.z.string()
7997
+ }),
7998
+ [TriggerEvent.RESET_PASSWORD_BY_ADMIN]: BasePayload.extend({
7999
+ temporaryPassword: import_zod36.z.string(),
8000
+ admin: import_zod36.z.object({
8001
+ id: import_zod36.z.string(),
8002
+ name: NameFieldValue,
8003
+ role: import_zod36.z.string()
8004
+ })
8005
+ }),
8006
+ [TriggerEvent.TWO_FA]: BasePayload.extend({
8007
+ code: import_zod36.z.string()
8008
+ }),
8009
+ [TriggerEvent.ALL_USER_NOTIFICATION]: BasePayload.extend({
8010
+ subject: import_zod36.z.string(),
8011
+ body: import_zod36.z.string()
8012
+ }),
8013
+ [TriggerEvent.CHANGE_PHONE_NUMBER]: BasePayload.extend({
8014
+ code: import_zod36.z.string()
8015
+ }),
8016
+ [TriggerEvent.CHANGE_EMAIL_ADDRESS]: BasePayload.extend({
8017
+ code: import_zod36.z.string()
8018
+ })
8019
+ };
8020
+
8021
+ // ../commons/src/fixtures/digital-identity-issuance-event.ts
8022
+ var PRINT_DIGITAL_ID_CERTIFICATE_FORM = defineActionForm({
8023
+ label: {
8024
+ id: "event.digital-identity.action.certificate.form.label",
8025
+ defaultMessage: "Digital identity certificate printer",
8026
+ description: "This is what this form is referred as in the system"
8027
+ },
8028
+ pages: [
8029
+ {
8030
+ id: "collector",
8031
+ type: PageTypes.enum.FORM,
8032
+ title: {
8033
+ id: "event.tennis-club-membership.action.certificate.form.section.who.title",
8034
+ defaultMessage: "Print certified copy",
8035
+ description: "This is the title of the section"
8036
+ },
8037
+ fields: [
8038
+ {
8039
+ id: "identity.http-fetch",
8040
+ type: FieldType.HTTP,
8041
+ label: {
8042
+ defaultMessage: "Digital identity certificate",
8043
+ description: "Fetch printable digital identity certificate",
8044
+ id: "event.digital-identity.certificate.fetch.label"
8045
+ },
8046
+ configuration: {
8047
+ trigger: field("identity.http-button"),
8048
+ url: "/api/digital-identity/certificate",
8049
+ timeout: 5e3,
8050
+ method: "POST",
8051
+ headers: {
8052
+ "Content-Type": "application/json"
8053
+ },
8054
+ body: {
8055
+ subjectId: "$event.subject.id"
8056
+ }
8057
+ }
8058
+ },
8059
+ {
8060
+ id: "identity.http-button",
8061
+ type: FieldType.BUTTON,
8062
+ label: {
8063
+ defaultMessage: "Certificate",
8064
+ description: "Certificate",
8065
+ id: "event.digital-identity.certificate.button.label"
8066
+ },
8067
+ conditionals: [
8068
+ {
8069
+ type: ConditionalType.ENABLE,
8070
+ conditional: and(
8071
+ field("identity.http-fetch").isUndefined(),
8072
+ user.isOnline()
8073
+ )
8074
+ },
8075
+ {
8076
+ type: ConditionalType.SHOW,
8077
+ conditional: and(
8078
+ field("identity.http-fetch").get("loading").isFalsy(),
8079
+ field("identity.http-fetch").get("data").isFalsy()
8080
+ )
8081
+ }
8082
+ ],
8083
+ configuration: {
8084
+ icon: "IdentificationCard",
8085
+ text: {
8086
+ defaultMessage: "Fetch certificate",
8087
+ description: "Fetch certificate",
8088
+ id: "event.digital-identity.certificate.fetch.text"
8089
+ }
8090
+ }
8091
+ },
8092
+ {
8093
+ id: "identity.http-button",
8094
+ type: FieldType.BUTTON,
8095
+ label: {
8096
+ defaultMessage: "Certificate",
8097
+ description: "Certificate",
8098
+ id: "event.digital-identity.certificate.button.label"
8099
+ },
8100
+ conditionals: [
8101
+ {
8102
+ type: ConditionalType.ENABLE,
8103
+ conditional: never()
8104
+ },
8105
+ {
8106
+ type: ConditionalType.SHOW,
8107
+ conditional: field("identity.http-fetch").get("loading").isEqualTo(true)
8108
+ }
8109
+ ],
8110
+ configuration: {
8111
+ loading: true,
8112
+ text: {
8113
+ defaultMessage: "Fetching certificate\u2026",
8114
+ description: "Fetching certificate\u2026",
8115
+ id: "event.digital-identity.certificate.fetching.text"
8116
+ }
8117
+ }
8118
+ },
8119
+ {
8120
+ id: "identity.http-button",
8121
+ type: FieldType.BUTTON,
8122
+ label: {
8123
+ defaultMessage: "Certificate",
8124
+ description: "Certificate",
8125
+ id: "event.digital-identity.certificate.button.label"
8126
+ },
8127
+ conditionals: [
8128
+ {
8129
+ type: ConditionalType.ENABLE,
8130
+ conditional: never()
8131
+ },
8132
+ {
8133
+ type: ConditionalType.SHOW,
8134
+ conditional: not(field("identity.certificateId").isFalsy())
8135
+ }
8136
+ ],
8137
+ configuration: {
8138
+ icon: "Check",
8139
+ text: {
8140
+ defaultMessage: "Certificate ready",
8141
+ description: "Certificate ready",
8142
+ id: "event.digital-identity.certificate.ready.text"
8143
+ }
8144
+ }
8145
+ },
8146
+ {
8147
+ id: "identity.certificateId",
8148
+ type: FieldType.TEXT,
8149
+ parent: field("identity.http-fetch"),
8150
+ label: {
8151
+ defaultMessage: "Certificate ID",
8152
+ description: "Issued digital identity certificate identifier",
8153
+ id: "event.digital-identity.certificate.id.label"
8154
+ },
8155
+ conditionals: [
8156
+ {
8157
+ type: ConditionalType.ENABLE,
8158
+ conditional: never()
8159
+ }
8160
+ ],
8161
+ value: field("identity.http-fetch").get("data.certificateId")
8162
+ }
8163
+ ]
8164
+ }
8165
+ ]
8166
+ });
8167
+ var digitalIdentityForm = defineDeclarationForm({
8168
+ label: {
8169
+ id: "event.digital-identity.action.declare.form.label",
8170
+ defaultMessage: "Digital identity issuance",
8171
+ description: "This is what this form is referred as in the system"
8172
+ },
8173
+ pages: [
8174
+ {
8175
+ id: "subject",
8176
+ title: {
8177
+ id: "event.digital-identity.action.declare.form.section.who.title",
8178
+ defaultMessage: "Who is the digital identity issued to?",
8179
+ description: "This is the title of the section"
8180
+ },
8181
+ fields: [
8182
+ {
8183
+ id: "subject.firstname",
8184
+ type: FieldType.TEXT,
8185
+ required: true,
8186
+ conditionals: [],
8187
+ label: {
8188
+ defaultMessage: "Subject's first name",
8189
+ description: "This is the label for the field",
8190
+ id: "event.digital-identity.action.declare.form.section.who.field.firstname.label"
8191
+ }
8192
+ },
8193
+ {
8194
+ id: "subject.surname",
8195
+ type: FieldType.TEXT,
8196
+ required: true,
8197
+ conditionals: [],
8198
+ label: {
8199
+ defaultMessage: "Subject's surname",
8200
+ description: "This is the label for the field",
8201
+ id: "event.digital-identity.action.declare.form.section.who.field.surname.label"
8202
+ }
8203
+ }
8204
+ ]
8205
+ }
8206
+ ]
8207
+ });
8208
+ var digitalIdentityEvent = defineConfig({
8209
+ id: "digital-identity",
8210
+ label: {
8211
+ defaultMessage: "Digital identity issuance",
8212
+ description: "This is what this event is referred as in the system",
8213
+ id: "event.digital-identity.label"
8214
+ },
8215
+ title: {
8216
+ defaultMessage: "{subject.firstname} {subject.surname}",
8217
+ description: "This is the title of the summary",
8218
+ id: "event.digital-identity.title"
8219
+ },
8220
+ summary: { fields: [] },
8221
+ actions: [
8222
+ {
8223
+ type: ActionType.PRINT_CERTIFICATE,
8224
+ label: {
8225
+ id: "event.football-club-membership.action.collect-certificate.label",
8226
+ defaultMessage: "Print certificate",
8227
+ description: "This is shown as the action name anywhere the user can trigger the action from"
8228
+ },
8229
+ printForm: PRINT_DIGITAL_ID_CERTIFICATE_FORM
8230
+ }
8231
+ ],
8232
+ declaration: digitalIdentityForm
8233
+ });
8234
+
8235
+ // ../commons/src/events/test.utils.ts
8236
+ var import_zod37 = require("zod");
7863
8237
  var TEST_SYSTEM_IANA_TIMEZONE = "Asia/Dhaka";
7864
- var TestUserRole = import_zod35.z.enum([
8238
+ var TestUserRole = import_zod37.z.enum([
7865
8239
  "FIELD_AGENT",
7866
8240
  "LOCAL_REGISTRAR",
7867
8241
  "LOCAL_SYSTEM_ADMIN",
@@ -8901,16 +9275,16 @@ function getFilePathsFromEvent(event2) {
8901
9275
  }
8902
9276
 
8903
9277
  // ../commons/src/events/locations.ts
8904
- var import_zod36 = require("zod");
8905
- var LocationType = import_zod36.z.enum([
9278
+ var import_zod38 = require("zod");
9279
+ var LocationType = import_zod38.z.enum([
8906
9280
  "ADMIN_STRUCTURE",
8907
9281
  "CRVS_OFFICE",
8908
9282
  "HEALTH_FACILITY"
8909
9283
  ]);
8910
- var Location = import_zod36.z.object({
9284
+ var Location = import_zod38.z.object({
8911
9285
  id: UUID,
8912
- name: import_zod36.z.string(),
9286
+ name: import_zod38.z.string(),
8913
9287
  parentId: UUID.nullable(),
8914
- validUntil: import_zod36.z.string().datetime().nullable(),
9288
+ validUntil: import_zod38.z.string().datetime().nullable(),
8915
9289
  locationType: LocationType.nullable()
8916
9290
  });
@@ -6124,9 +6124,321 @@ var v2BirthEvent = defineConfig({
6124
6124
  advancedSearch: []
6125
6125
  });
6126
6126
 
6127
- // ../commons/src/events/test.utils.ts
6127
+ // ../commons/src/search.ts
6128
+ var IN_PROGRESS_STATUS = "IN_PROGRESS";
6129
+ var ARCHIVED_STATUS = "ARCHIVED";
6130
+ var DECLARED_STATUS = "DECLARED";
6131
+ var REJECTED_STATUS = "REJECTED";
6132
+ var VALIDATED_STATUS = "VALIDATED";
6133
+ var WAITING_VALIDATION_STATUS = "WAITING_VALIDATION";
6134
+ var REGISTERED_STATUS = "REGISTERED";
6135
+ var REINSTATED_STATUS = "REINSTATED";
6136
+ var CERTIFIED_STATUS = "CERTIFIED";
6137
+ var ISSUED_STATUS = "ISSUED";
6138
+ var REQUESTED_CORRECTION_STATUS = "REQUESTED_CORRECTION";
6139
+ var DECLARATION_UPDATED_STATUS = "DECLARATION_UPDATED";
6140
+ var validStatusMapping = {
6141
+ [ARCHIVED_STATUS]: [
6142
+ DECLARED_STATUS,
6143
+ REJECTED_STATUS,
6144
+ VALIDATED_STATUS
6145
+ ],
6146
+ [IN_PROGRESS_STATUS]: [null],
6147
+ [DECLARED_STATUS]: [ARCHIVED_STATUS, null],
6148
+ [REJECTED_STATUS]: [
6149
+ DECLARED_STATUS,
6150
+ IN_PROGRESS_STATUS,
6151
+ WAITING_VALIDATION_STATUS,
6152
+ VALIDATED_STATUS,
6153
+ ARCHIVED_STATUS
6154
+ ],
6155
+ [VALIDATED_STATUS]: [
6156
+ DECLARED_STATUS,
6157
+ IN_PROGRESS_STATUS,
6158
+ REJECTED_STATUS,
6159
+ ARCHIVED_STATUS,
6160
+ DECLARATION_UPDATED_STATUS,
6161
+ null
6162
+ ],
6163
+ [WAITING_VALIDATION_STATUS]: [
6164
+ null,
6165
+ DECLARED_STATUS,
6166
+ IN_PROGRESS_STATUS,
6167
+ REJECTED_STATUS,
6168
+ VALIDATED_STATUS,
6169
+ DECLARATION_UPDATED_STATUS
6170
+ ],
6171
+ [REGISTERED_STATUS]: [
6172
+ null,
6173
+ DECLARED_STATUS,
6174
+ IN_PROGRESS_STATUS,
6175
+ REJECTED_STATUS,
6176
+ VALIDATED_STATUS,
6177
+ WAITING_VALIDATION_STATUS
6178
+ ],
6179
+ [CERTIFIED_STATUS]: [REGISTERED_STATUS, ISSUED_STATUS],
6180
+ [ISSUED_STATUS]: [CERTIFIED_STATUS],
6181
+ [REQUESTED_CORRECTION_STATUS]: [REGISTERED_STATUS, CERTIFIED_STATUS],
6182
+ [REINSTATED_STATUS]: [ARCHIVED_STATUS]
6183
+ };
6184
+
6185
+ // ../commons/src/users/User.ts
6128
6186
  var import_zod35 = require("zod");
6129
- var TestUserRole = import_zod35.z.enum([
6187
+ var User = import_zod35.z.object({
6188
+ id: import_zod35.z.string(),
6189
+ name: import_zod35.z.array(
6190
+ import_zod35.z.object({
6191
+ use: import_zod35.z.string(),
6192
+ given: import_zod35.z.array(import_zod35.z.string()),
6193
+ family: import_zod35.z.string()
6194
+ })
6195
+ ),
6196
+ role: import_zod35.z.string(),
6197
+ avatar: FullDocumentPath.optional(),
6198
+ signature: FullDocumentPath.optional().describe(
6199
+ "Storage key for the user signature. e.g. /ocrvs/signature.png"
6200
+ ),
6201
+ primaryOfficeId: UUID,
6202
+ fullHonorificName: import_zod35.z.string().optional(),
6203
+ type: TokenUserType.extract(["user"])
6204
+ });
6205
+ var SystemRole = import_zod35.z.enum([
6206
+ "HEALTH",
6207
+ "NATIONAL_ID",
6208
+ "RECORD_SEARCH",
6209
+ "REINDEX",
6210
+ "WEBHOOK",
6211
+ "IMPORT_EXPORT"
6212
+ ]);
6213
+ var System = import_zod35.z.object({
6214
+ id: import_zod35.z.string(),
6215
+ name: import_zod35.z.string(),
6216
+ type: TokenUserType.extract(["system"]),
6217
+ role: SystemRole,
6218
+ primaryOfficeId: import_zod35.z.undefined().optional(),
6219
+ signature: import_zod35.z.undefined().optional(),
6220
+ avatar: import_zod35.z.undefined().optional(),
6221
+ fullHonorificName: import_zod35.z.string().optional()
6222
+ });
6223
+ var UserOrSystem = import_zod35.z.discriminatedUnion("type", [User, System]);
6224
+
6225
+ // ../commons/src/fixtures/digital-identity-issuance-event.ts
6226
+ var PRINT_DIGITAL_ID_CERTIFICATE_FORM = defineActionForm({
6227
+ label: {
6228
+ id: "event.digital-identity.action.certificate.form.label",
6229
+ defaultMessage: "Digital identity certificate printer",
6230
+ description: "This is what this form is referred as in the system"
6231
+ },
6232
+ pages: [
6233
+ {
6234
+ id: "collector",
6235
+ type: PageTypes.enum.FORM,
6236
+ title: {
6237
+ id: "event.tennis-club-membership.action.certificate.form.section.who.title",
6238
+ defaultMessage: "Print certified copy",
6239
+ description: "This is the title of the section"
6240
+ },
6241
+ fields: [
6242
+ {
6243
+ id: "identity.http-fetch",
6244
+ type: FieldType.HTTP,
6245
+ label: {
6246
+ defaultMessage: "Digital identity certificate",
6247
+ description: "Fetch printable digital identity certificate",
6248
+ id: "event.digital-identity.certificate.fetch.label"
6249
+ },
6250
+ configuration: {
6251
+ trigger: field("identity.http-button"),
6252
+ url: "/api/digital-identity/certificate",
6253
+ timeout: 5e3,
6254
+ method: "POST",
6255
+ headers: {
6256
+ "Content-Type": "application/json"
6257
+ },
6258
+ body: {
6259
+ subjectId: "$event.subject.id"
6260
+ }
6261
+ }
6262
+ },
6263
+ {
6264
+ id: "identity.http-button",
6265
+ type: FieldType.BUTTON,
6266
+ label: {
6267
+ defaultMessage: "Certificate",
6268
+ description: "Certificate",
6269
+ id: "event.digital-identity.certificate.button.label"
6270
+ },
6271
+ conditionals: [
6272
+ {
6273
+ type: ConditionalType.ENABLE,
6274
+ conditional: and(
6275
+ field("identity.http-fetch").isUndefined(),
6276
+ user.isOnline()
6277
+ )
6278
+ },
6279
+ {
6280
+ type: ConditionalType.SHOW,
6281
+ conditional: and(
6282
+ field("identity.http-fetch").get("loading").isFalsy(),
6283
+ field("identity.http-fetch").get("data").isFalsy()
6284
+ )
6285
+ }
6286
+ ],
6287
+ configuration: {
6288
+ icon: "IdentificationCard",
6289
+ text: {
6290
+ defaultMessage: "Fetch certificate",
6291
+ description: "Fetch certificate",
6292
+ id: "event.digital-identity.certificate.fetch.text"
6293
+ }
6294
+ }
6295
+ },
6296
+ {
6297
+ id: "identity.http-button",
6298
+ type: FieldType.BUTTON,
6299
+ label: {
6300
+ defaultMessage: "Certificate",
6301
+ description: "Certificate",
6302
+ id: "event.digital-identity.certificate.button.label"
6303
+ },
6304
+ conditionals: [
6305
+ {
6306
+ type: ConditionalType.ENABLE,
6307
+ conditional: never()
6308
+ },
6309
+ {
6310
+ type: ConditionalType.SHOW,
6311
+ conditional: field("identity.http-fetch").get("loading").isEqualTo(true)
6312
+ }
6313
+ ],
6314
+ configuration: {
6315
+ loading: true,
6316
+ text: {
6317
+ defaultMessage: "Fetching certificate\u2026",
6318
+ description: "Fetching certificate\u2026",
6319
+ id: "event.digital-identity.certificate.fetching.text"
6320
+ }
6321
+ }
6322
+ },
6323
+ {
6324
+ id: "identity.http-button",
6325
+ type: FieldType.BUTTON,
6326
+ label: {
6327
+ defaultMessage: "Certificate",
6328
+ description: "Certificate",
6329
+ id: "event.digital-identity.certificate.button.label"
6330
+ },
6331
+ conditionals: [
6332
+ {
6333
+ type: ConditionalType.ENABLE,
6334
+ conditional: never()
6335
+ },
6336
+ {
6337
+ type: ConditionalType.SHOW,
6338
+ conditional: not(field("identity.certificateId").isFalsy())
6339
+ }
6340
+ ],
6341
+ configuration: {
6342
+ icon: "Check",
6343
+ text: {
6344
+ defaultMessage: "Certificate ready",
6345
+ description: "Certificate ready",
6346
+ id: "event.digital-identity.certificate.ready.text"
6347
+ }
6348
+ }
6349
+ },
6350
+ {
6351
+ id: "identity.certificateId",
6352
+ type: FieldType.TEXT,
6353
+ parent: field("identity.http-fetch"),
6354
+ label: {
6355
+ defaultMessage: "Certificate ID",
6356
+ description: "Issued digital identity certificate identifier",
6357
+ id: "event.digital-identity.certificate.id.label"
6358
+ },
6359
+ conditionals: [
6360
+ {
6361
+ type: ConditionalType.ENABLE,
6362
+ conditional: never()
6363
+ }
6364
+ ],
6365
+ value: field("identity.http-fetch").get("data.certificateId")
6366
+ }
6367
+ ]
6368
+ }
6369
+ ]
6370
+ });
6371
+ var digitalIdentityForm = defineDeclarationForm({
6372
+ label: {
6373
+ id: "event.digital-identity.action.declare.form.label",
6374
+ defaultMessage: "Digital identity issuance",
6375
+ description: "This is what this form is referred as in the system"
6376
+ },
6377
+ pages: [
6378
+ {
6379
+ id: "subject",
6380
+ title: {
6381
+ id: "event.digital-identity.action.declare.form.section.who.title",
6382
+ defaultMessage: "Who is the digital identity issued to?",
6383
+ description: "This is the title of the section"
6384
+ },
6385
+ fields: [
6386
+ {
6387
+ id: "subject.firstname",
6388
+ type: FieldType.TEXT,
6389
+ required: true,
6390
+ conditionals: [],
6391
+ label: {
6392
+ defaultMessage: "Subject's first name",
6393
+ description: "This is the label for the field",
6394
+ id: "event.digital-identity.action.declare.form.section.who.field.firstname.label"
6395
+ }
6396
+ },
6397
+ {
6398
+ id: "subject.surname",
6399
+ type: FieldType.TEXT,
6400
+ required: true,
6401
+ conditionals: [],
6402
+ label: {
6403
+ defaultMessage: "Subject's surname",
6404
+ description: "This is the label for the field",
6405
+ id: "event.digital-identity.action.declare.form.section.who.field.surname.label"
6406
+ }
6407
+ }
6408
+ ]
6409
+ }
6410
+ ]
6411
+ });
6412
+ var digitalIdentityEvent = defineConfig({
6413
+ id: "digital-identity",
6414
+ label: {
6415
+ defaultMessage: "Digital identity issuance",
6416
+ description: "This is what this event is referred as in the system",
6417
+ id: "event.digital-identity.label"
6418
+ },
6419
+ title: {
6420
+ defaultMessage: "{subject.firstname} {subject.surname}",
6421
+ description: "This is the title of the summary",
6422
+ id: "event.digital-identity.title"
6423
+ },
6424
+ summary: { fields: [] },
6425
+ actions: [
6426
+ {
6427
+ type: ActionType.PRINT_CERTIFICATE,
6428
+ label: {
6429
+ id: "event.football-club-membership.action.collect-certificate.label",
6430
+ defaultMessage: "Print certificate",
6431
+ description: "This is shown as the action name anywhere the user can trigger the action from"
6432
+ },
6433
+ printForm: PRINT_DIGITAL_ID_CERTIFICATE_FORM
6434
+ }
6435
+ ],
6436
+ declaration: digitalIdentityForm
6437
+ });
6438
+
6439
+ // ../commons/src/events/test.utils.ts
6440
+ var import_zod36 = require("zod");
6441
+ var TestUserRole = import_zod36.z.enum([
6130
6442
  "FIELD_AGENT",
6131
6443
  "LOCAL_REGISTRAR",
6132
6444
  "LOCAL_SYSTEM_ADMIN",
@@ -6229,22 +6541,22 @@ var ACTION_FILTERS = {
6229
6541
  var import_lodash6 = require("lodash");
6230
6542
 
6231
6543
  // ../commons/src/events/locations.ts
6232
- var import_zod36 = require("zod");
6233
- var LocationType = import_zod36.z.enum([
6544
+ var import_zod37 = require("zod");
6545
+ var LocationType = import_zod37.z.enum([
6234
6546
  "ADMIN_STRUCTURE",
6235
6547
  "CRVS_OFFICE",
6236
6548
  "HEALTH_FACILITY"
6237
6549
  ]);
6238
- var Location = import_zod36.z.object({
6550
+ var Location = import_zod37.z.object({
6239
6551
  id: UUID,
6240
- name: import_zod36.z.string(),
6552
+ name: import_zod37.z.string(),
6241
6553
  parentId: UUID.nullable(),
6242
- validUntil: import_zod36.z.string().datetime().nullable(),
6554
+ validUntil: import_zod37.z.string().datetime().nullable(),
6243
6555
  locationType: LocationType.nullable()
6244
6556
  });
6245
6557
 
6246
6558
  // ../commons/src/notification/UserNotifications.ts
6247
- var import_zod37 = require("zod");
6559
+ var import_zod38 = require("zod");
6248
6560
  var TriggerEvent = {
6249
6561
  USER_CREATED: "user-created",
6250
6562
  USER_UPDATED: "user-updated",
@@ -6256,50 +6568,50 @@ var TriggerEvent = {
6256
6568
  CHANGE_PHONE_NUMBER: "change-phone-number",
6257
6569
  CHANGE_EMAIL_ADDRESS: "change-email-address"
6258
6570
  };
6259
- var Recipient = import_zod37.z.object({
6571
+ var Recipient = import_zod38.z.object({
6260
6572
  name: NameFieldValue.optional(),
6261
- mobile: import_zod37.z.string().optional(),
6262
- email: import_zod37.z.string().optional(),
6263
- bcc: import_zod37.z.array(import_zod37.z.string()).optional()
6573
+ mobile: import_zod38.z.string().optional(),
6574
+ email: import_zod38.z.string().optional(),
6575
+ bcc: import_zod38.z.array(import_zod38.z.string()).optional()
6264
6576
  });
6265
- var BasePayload = import_zod37.z.object({
6577
+ var BasePayload = import_zod38.z.object({
6266
6578
  recipient: Recipient
6267
6579
  });
6268
6580
  var TriggerPayload = {
6269
6581
  [TriggerEvent.USER_CREATED]: BasePayload.extend({
6270
- username: import_zod37.z.string(),
6271
- temporaryPassword: import_zod37.z.string()
6582
+ username: import_zod38.z.string(),
6583
+ temporaryPassword: import_zod38.z.string()
6272
6584
  }),
6273
6585
  [TriggerEvent.USER_UPDATED]: BasePayload.extend({
6274
- oldUsername: import_zod37.z.string(),
6275
- newUsername: import_zod37.z.string()
6586
+ oldUsername: import_zod38.z.string(),
6587
+ newUsername: import_zod38.z.string()
6276
6588
  }),
6277
6589
  [TriggerEvent.USERNAME_REMINDER]: BasePayload.extend({
6278
- username: import_zod37.z.string()
6590
+ username: import_zod38.z.string()
6279
6591
  }),
6280
6592
  [TriggerEvent.RESET_PASSWORD]: BasePayload.extend({
6281
- code: import_zod37.z.string()
6593
+ code: import_zod38.z.string()
6282
6594
  }),
6283
6595
  [TriggerEvent.RESET_PASSWORD_BY_ADMIN]: BasePayload.extend({
6284
- temporaryPassword: import_zod37.z.string(),
6285
- admin: import_zod37.z.object({
6286
- id: import_zod37.z.string(),
6596
+ temporaryPassword: import_zod38.z.string(),
6597
+ admin: import_zod38.z.object({
6598
+ id: import_zod38.z.string(),
6287
6599
  name: NameFieldValue,
6288
- role: import_zod37.z.string()
6600
+ role: import_zod38.z.string()
6289
6601
  })
6290
6602
  }),
6291
6603
  [TriggerEvent.TWO_FA]: BasePayload.extend({
6292
- code: import_zod37.z.string()
6604
+ code: import_zod38.z.string()
6293
6605
  }),
6294
6606
  [TriggerEvent.ALL_USER_NOTIFICATION]: BasePayload.extend({
6295
- subject: import_zod37.z.string(),
6296
- body: import_zod37.z.string()
6607
+ subject: import_zod38.z.string(),
6608
+ body: import_zod38.z.string()
6297
6609
  }),
6298
6610
  [TriggerEvent.CHANGE_PHONE_NUMBER]: BasePayload.extend({
6299
- code: import_zod37.z.string()
6611
+ code: import_zod38.z.string()
6300
6612
  }),
6301
6613
  [TriggerEvent.CHANGE_EMAIL_ADDRESS]: BasePayload.extend({
6302
- code: import_zod37.z.string()
6614
+ code: import_zod38.z.string()
6303
6615
  })
6304
6616
  };
6305
6617
  async function triggerUserEventNotification({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencrvs/toolkit",
3
- "version": "1.9.3-rc.36ed9b8",
3
+ "version": "1.9.3-rc.5ef5e53",
4
4
  "description": "OpenCRVS toolkit for building country configurations",
5
5
  "license": "MPL-2.0",
6
6
  "exports": {