@opencrvs/toolkit 2.0.0-rc.9734a92 → 2.0.0-rc.9744a94

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.
@@ -206,6 +206,11 @@ var FieldTypesToHideInReview = [
206
206
  FieldType.ALPHA_PRINT_BUTTON,
207
207
  FieldType.ALPHA_HIDDEN
208
208
  ];
209
+ var HiddenFieldTypes = [
210
+ FieldType.HTTP,
211
+ FieldType.QUERY_PARAM_READER,
212
+ FieldType.ALPHA_HIDDEN
213
+ ];
209
214
 
210
215
  // ../commons/src/events/FieldValue.ts
211
216
  var z7 = __toESM(require("zod/v4"));
@@ -324,7 +329,7 @@ var PlainDate = import_zod.z.string().date().brand("PlainDate").describe("Date i
324
329
  // ../commons/src/events/FieldValue.ts
325
330
  var TextValue = z7.string();
326
331
  var HiddenFieldValue = z7.string();
327
- var NonEmptyTextValue = TextValue.min(1);
332
+ var NonEmptyTextValue = z7.string().trim().min(1);
328
333
  var DateValue = z7.iso.date().describe("Date in the format YYYY-MM-DD");
329
334
  var AgeValue = z7.object({
330
335
  age: z7.number(),
@@ -661,6 +666,8 @@ var scopeOptionsPlaceEvent = z11.object({
661
666
  placeOfEvent: JurisdictionFilter.optional()
662
667
  }).describe("Options applicable to all record scopes.");
663
668
  var scopeOptionsDeclared = scopeOptionsPlaceEvent.extend({
669
+ notifiedIn: JurisdictionFilter.optional(),
670
+ notifiedBy: UserFilter.optional(),
664
671
  declaredIn: JurisdictionFilter.optional(),
665
672
  declaredBy: UserFilter.optional()
666
673
  }).describe("Options applicable to actions that may take place after DECLARE");
@@ -702,6 +709,8 @@ var ResolvedScopeOptionsPlaceEvent = z11.object({
702
709
  "Resolved options applicable to all record scopes, with location ID instead of jurisdiction filter."
703
710
  );
704
711
  var ResolvedScopeOptionsDeclared = ResolvedScopeOptionsPlaceEvent.extend({
712
+ notifiedIn: UUID.nullish(),
713
+ notifiedBy: z11.string().optional(),
705
714
  declaredIn: UUID.nullish(),
706
715
  declaredBy: z11.string().optional()
707
716
  }).describe(
@@ -836,8 +845,9 @@ var EncodedScope = z11.string().brand("EncodedScope");
836
845
  var DEFAULT_SCOPE_OPTIONS = {
837
846
  placeOfEvent: JurisdictionFilter.enum.all,
838
847
  accessLevel: JurisdictionFilter.enum.all,
839
- registeredIn: JurisdictionFilter.enum.all,
840
- declaredIn: JurisdictionFilter.enum.all
848
+ notifiedIn: JurisdictionFilter.enum.all,
849
+ declaredIn: JurisdictionFilter.enum.all,
850
+ registeredIn: JurisdictionFilter.enum.all
841
851
  };
842
852
 
843
853
  // ../commons/src/authentication.ts
@@ -1126,6 +1136,7 @@ var RegistrationCreationMetadata = ActionCreationMetadata.extend({
1126
1136
  )
1127
1137
  });
1128
1138
  var LegalStatuses = z15.object({
1139
+ [EventStatus.enum.NOTIFIED]: ActionCreationMetadata.nullish(),
1129
1140
  [EventStatus.enum.DECLARED]: ActionCreationMetadata.nullish(),
1130
1141
  [EventStatus.enum.REGISTERED]: RegistrationCreationMetadata.nullish()
1131
1142
  });
@@ -1185,6 +1196,8 @@ var EventMetadataKeys = z15.enum(EventMetadataKeysArray);
1185
1196
  var EventMetadataDateFieldIdInput = z15.enum([
1186
1197
  "createdAt",
1187
1198
  "updatedAt",
1199
+ "legalStatuses.NOTIFIED.createdAt",
1200
+ "legalStatuses.NOTIFIED.acceptedAt",
1188
1201
  "legalStatuses.DECLARED.createdAt",
1189
1202
  "legalStatuses.DECLARED.acceptedAt",
1190
1203
  "legalStatuses.REGISTERED.createdAt",
@@ -1193,6 +1206,8 @@ var EventMetadataDateFieldIdInput = z15.enum([
1193
1206
  var EventMetadataDateFieldId = z15.enum([
1194
1207
  "event.createdAt",
1195
1208
  "event.updatedAt",
1209
+ "event.legalStatuses.NOTIFIED.createdAt",
1210
+ "event.legalStatuses.NOTIFIED.acceptedAt",
1196
1211
  "event.legalStatuses.DECLARED.createdAt",
1197
1212
  "event.legalStatuses.DECLARED.acceptedAt",
1198
1213
  "event.legalStatuses.REGISTERED.createdAt",
@@ -1495,6 +1510,7 @@ var NumberField = BaseField.extend({
1495
1510
  configuration: import_v43.default.object({
1496
1511
  min: import_v43.default.number().optional().describe("Minimum value"),
1497
1512
  max: import_v43.default.number().optional().describe("Maximum value"),
1513
+ integer: import_v43.default.boolean().optional().describe("When true, only whole numbers are allowed"),
1498
1514
  prefix: TranslationConfig.optional(),
1499
1515
  postfix: TranslationConfig.optional()
1500
1516
  }).optional()
package/dist/cli.js CHANGED
@@ -2193,6 +2193,8 @@ var scopeOptionsPlaceEvent = z3.object({
2193
2193
  placeOfEvent: JurisdictionFilter.optional()
2194
2194
  }).describe("Options applicable to all record scopes.");
2195
2195
  var scopeOptionsDeclared = scopeOptionsPlaceEvent.extend({
2196
+ notifiedIn: JurisdictionFilter.optional(),
2197
+ notifiedBy: UserFilter.optional(),
2196
2198
  declaredIn: JurisdictionFilter.optional(),
2197
2199
  declaredBy: UserFilter.optional()
2198
2200
  }).describe("Options applicable to actions that may take place after DECLARE");
@@ -2234,6 +2236,8 @@ var ResolvedScopeOptionsPlaceEvent = z3.object({
2234
2236
  "Resolved options applicable to all record scopes, with location ID instead of jurisdiction filter."
2235
2237
  );
2236
2238
  var ResolvedScopeOptionsDeclared = ResolvedScopeOptionsPlaceEvent.extend({
2239
+ notifiedIn: UUID.nullish(),
2240
+ notifiedBy: z3.string().optional(),
2237
2241
  declaredIn: UUID.nullish(),
2238
2242
  declaredBy: z3.string().optional()
2239
2243
  }).describe(
@@ -2382,20 +2386,27 @@ var encodeScope = (scope) => {
2382
2386
  encode: false
2383
2387
  });
2384
2388
  };
2385
- var decodeScope = (query) => {
2386
- const scope = qs.parse(query, {
2389
+ var decodedScopeCache = /* @__PURE__ */ new Map();
2390
+ var decodeScope = (encodedScope) => {
2391
+ if (decodedScopeCache.has(encodedScope)) {
2392
+ return decodedScopeCache.get(encodedScope);
2393
+ }
2394
+ const scope = qs.parse(encodedScope, {
2387
2395
  ignoreQueryPrefix: true,
2388
2396
  comma: true,
2389
2397
  allowDots: true
2390
2398
  });
2391
2399
  const unflattenedScope = unflattenScope(scope);
2392
- return Scope2.safeParse(unflattenedScope)?.data;
2400
+ const result = Scope2.safeParse(unflattenedScope)?.data;
2401
+ decodedScopeCache.set(encodedScope, result);
2402
+ return result;
2393
2403
  };
2394
2404
  var DEFAULT_SCOPE_OPTIONS = {
2395
2405
  placeOfEvent: JurisdictionFilter.enum.all,
2396
2406
  accessLevel: JurisdictionFilter.enum.all,
2397
- registeredIn: JurisdictionFilter.enum.all,
2398
- declaredIn: JurisdictionFilter.enum.all
2407
+ notifiedIn: JurisdictionFilter.enum.all,
2408
+ declaredIn: JurisdictionFilter.enum.all,
2409
+ registeredIn: JurisdictionFilter.enum.all
2399
2410
  };
2400
2411
 
2401
2412
  // ../commons/src/scopes.deprecated.do-not-use.ts
@@ -4294,7 +4305,7 @@ Saved ${handlerRelPath}.`);
4294
4305
  // src/migrations/v2.0/checkout-upstream-files.ts
4295
4306
  var import_child_process = require("child_process");
4296
4307
  var UPSTREAM_URL = "https://github.com/opencrvs/opencrvs-countryconfig.git";
4297
- var UPSTREAM_BRANCH = "release-v2.0.0";
4308
+ var UPSTREAM_BRANCH = "release/2.0.0";
4298
4309
  var TEMP_REMOTE = "opencrvs-upgrade-v19-v20-codemod";
4299
4310
  var FILES_TO_CHECKOUT = [
4300
4311
  "src/analytics/analytics.ts",
@@ -417,7 +417,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
417
417
  createdByUserType: "system" | "user";
418
418
  createdAt: string;
419
419
  createdBy: string;
420
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
420
+ type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
421
421
  status: "Rejected";
422
422
  createdByRole?: string | undefined;
423
423
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
@@ -729,7 +729,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
729
729
  createdByUserType: "system" | "user";
730
730
  createdAt: string;
731
731
  createdBy: string;
732
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
732
+ type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
733
733
  status: "Rejected";
734
734
  createdByRole?: string | undefined;
735
735
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
@@ -1040,7 +1040,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1040
1040
  createdByUserType: "system" | "user";
1041
1041
  createdAt: string;
1042
1042
  createdBy: string;
1043
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
1043
+ type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
1044
1044
  status: "Rejected";
1045
1045
  createdByRole?: string | undefined;
1046
1046
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
@@ -1090,7 +1090,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1090
1090
  transactionId: string;
1091
1091
  createdAt: string;
1092
1092
  action: {
1093
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "READ" | "CUSTOM" | "CREATE" | "NOTIFY" | "DUPLICATE_DETECTED" | "MARK_AS_NOT_DUPLICATE" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "ASSIGN" | "UNASSIGN";
1093
+ type: "CREATE" | "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "DUPLICATE_DETECTED" | "REJECT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN" | "CUSTOM";
1094
1094
  transactionId: string;
1095
1095
  createdByUserType: "system" | "user";
1096
1096
  createdAt: string;
@@ -1109,7 +1109,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1109
1109
  input: {
1110
1110
  transactionId: string;
1111
1111
  eventId: string;
1112
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "READ" | "CUSTOM" | "CREATE" | "NOTIFY" | "DUPLICATE_DETECTED" | "MARK_AS_NOT_DUPLICATE" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "ASSIGN" | "UNASSIGN";
1112
+ type: "CREATE" | "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "DUPLICATE_DETECTED" | "REJECT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN" | "CUSTOM";
1113
1113
  status: "Requested" | "Accepted" | "Rejected";
1114
1114
  createdAtLocation?: string | null | undefined;
1115
1115
  declaration?: Record<string, unknown> | undefined;
@@ -1125,7 +1125,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1125
1125
  transactionId: string;
1126
1126
  createdAt: string;
1127
1127
  action: {
1128
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "READ" | "CUSTOM" | "CREATE" | "NOTIFY" | "DUPLICATE_DETECTED" | "MARK_AS_NOT_DUPLICATE" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "ASSIGN" | "UNASSIGN";
1128
+ type: "CREATE" | "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "DUPLICATE_DETECTED" | "REJECT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN" | "CUSTOM";
1129
1129
  transactionId: string;
1130
1130
  createdByUserType: "system" | "user";
1131
1131
  createdAt: string;
@@ -1788,7 +1788,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1788
1788
  createdByUserType: "system" | "user";
1789
1789
  createdAt: string;
1790
1790
  createdBy: string;
1791
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
1791
+ type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
1792
1792
  status: "Rejected";
1793
1793
  createdByRole?: string | undefined;
1794
1794
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
@@ -2131,7 +2131,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2131
2131
  createdByUserType: "system" | "user";
2132
2132
  createdAt: string;
2133
2133
  createdBy: string;
2134
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
2134
+ type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
2135
2135
  status: "Rejected";
2136
2136
  createdByRole?: string | undefined;
2137
2137
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
@@ -4217,7 +4217,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4217
4217
  createdByUserType: "system" | "user";
4218
4218
  createdAt: string;
4219
4219
  createdBy: string;
4220
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
4220
+ type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
4221
4221
  status: "Rejected";
4222
4222
  createdByRole?: string | undefined;
4223
4223
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
@@ -4828,7 +4828,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4828
4828
  createdByUserType: "system" | "user";
4829
4829
  createdAt: string;
4830
4830
  createdBy: string;
4831
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
4831
+ type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
4832
4832
  status: "Rejected";
4833
4833
  createdByRole?: string | undefined;
4834
4834
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
@@ -5149,7 +5149,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5149
5149
  createdByUserType: "system" | "user";
5150
5150
  createdAt: string;
5151
5151
  createdBy: string;
5152
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
5152
+ type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
5153
5153
  status: "Rejected";
5154
5154
  createdByRole?: string | undefined;
5155
5155
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
@@ -6403,7 +6403,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6403
6403
  createdByUserType: "system" | "user";
6404
6404
  createdAt: string;
6405
6405
  createdBy: string;
6406
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
6406
+ type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
6407
6407
  status: "Rejected";
6408
6408
  createdByRole?: string | undefined;
6409
6409
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
@@ -6723,7 +6723,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6723
6723
  createdByUserType: "system" | "user";
6724
6724
  createdAt: string;
6725
6725
  createdBy: string;
6726
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
6726
+ type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
6727
6727
  status: "Rejected";
6728
6728
  createdByRole?: string | undefined;
6729
6729
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
@@ -6749,6 +6749,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6749
6749
  type: string;
6750
6750
  status: "CREATED" | "NOTIFIED" | "DECLARED" | "REGISTERED" | "ARCHIVED";
6751
6751
  legalStatuses: {
6752
+ NOTIFIED?: {
6753
+ createdAt: string;
6754
+ createdBy: string;
6755
+ acceptedAt: string;
6756
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
6757
+ createdByUserType?: "system" | "user" | null | undefined;
6758
+ createdByRole?: string | undefined;
6759
+ } | null | undefined;
6752
6760
  DECLARED?: {
6753
6761
  createdAt: string;
6754
6762
  createdBy: string;
@@ -7086,7 +7094,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7086
7094
  createdByUserType: "system" | "user";
7087
7095
  createdAt: string;
7088
7096
  createdBy: string;
7089
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
7097
+ type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
7090
7098
  status: "Rejected";
7091
7099
  createdByRole?: string | undefined;
7092
7100
  createdBySignature?: string | null | undefined;
@@ -7304,7 +7312,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7304
7312
  count?: number | undefined;
7305
7313
  timeStart?: string | undefined;
7306
7314
  timeEnd?: string | undefined;
7307
- actionTypes?: ("DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "READ" | "CUSTOM" | "CREATE" | "NOTIFY" | "DUPLICATE_DETECTED" | "MARK_AS_NOT_DUPLICATE" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "ASSIGN" | "UNASSIGN")[] | undefined;
7315
+ actionTypes?: ("CREATE" | "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "DUPLICATE_DETECTED" | "REJECT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN" | "CUSTOM")[] | undefined;
7308
7316
  };
7309
7317
  output: {
7310
7318
  results: {
@@ -7374,9 +7382,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7374
7382
  output: void;
7375
7383
  meta: import("trpc-to-openapi").OpenApiMeta;
7376
7384
  }>;
7377
- sendVerifyCode: import("@trpc/server").TRPCMutationProcedure<{
7385
+ requestEmailChange: import("@trpc/server").TRPCMutationProcedure<{
7386
+ input: {
7387
+ email: string;
7388
+ };
7389
+ output: {
7390
+ nonce: string;
7391
+ };
7392
+ meta: import("trpc-to-openapi").OpenApiMeta;
7393
+ }>;
7394
+ requestPhoneChange: import("@trpc/server").TRPCMutationProcedure<{
7378
7395
  input: {
7379
- notificationEvent: "change-phone-number" | "change-email-address";
7396
+ phoneNumber: string;
7380
7397
  };
7381
7398
  output: {
7382
7399
  nonce: string;
@@ -94,16 +94,16 @@ export declare const user: typeof userSerializer & {
94
94
  scope: (scope: import("../scopes").ScopeType) => {
95
95
  attribute: (option: import("../scopes").ScopeOptionKey) => {
96
96
  $scope: "record.search" | "record.create" | "record.read" | "record.declare" | "record.notify" | "record.edit" | "record.reject" | "record.archive" | "record.review-duplicates" | "record.register" | "record.print-certified-copies" | "record.request-correction" | "record.correct" | "record.unassign-others" | "record.custom-action" | "bypassratelimit" | "record.reindex" | "user.data-seeding" | "integration.create" | "record.import" | "config.update-all" | "attachment.upload" | "profile.electronic-signature" | "user.read-only-my-audit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "record.confirm-registration" | "record.reject-registration" | "organisation.read-locations" | "user.read" | "user.create" | "user.edit" | "user.search" | "workqueue" | "dashboard.view";
97
- $option: "role" | "event" | "placeOfEvent" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
97
+ $option: "role" | "event" | "placeOfEvent" | "notifiedIn" | "notifiedBy" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
98
98
  };
99
99
  };
100
100
  jurisdiction: (jurisdiction: import("../scopes").JurisdictionFilter | {
101
101
  $scope: "record.search" | "record.create" | "record.read" | "record.declare" | "record.notify" | "record.edit" | "record.reject" | "record.archive" | "record.review-duplicates" | "record.register" | "record.print-certified-copies" | "record.request-correction" | "record.correct" | "record.unassign-others" | "record.custom-action" | "bypassratelimit" | "record.reindex" | "user.data-seeding" | "integration.create" | "record.import" | "config.update-all" | "attachment.upload" | "profile.electronic-signature" | "user.read-only-my-audit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "record.confirm-registration" | "record.reject-registration" | "organisation.read-locations" | "user.read" | "user.create" | "user.edit" | "user.search" | "workqueue" | "dashboard.view";
102
- $option: "role" | "event" | "placeOfEvent" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
102
+ $option: "role" | "event" | "placeOfEvent" | "notifiedIn" | "notifiedBy" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
103
103
  }) => {
104
104
  $jurisdiction: "administrativeArea" | "location" | "all" | {
105
105
  $scope: "record.search" | "record.create" | "record.read" | "record.declare" | "record.notify" | "record.edit" | "record.reject" | "record.archive" | "record.review-duplicates" | "record.register" | "record.print-certified-copies" | "record.request-correction" | "record.correct" | "record.unassign-others" | "record.custom-action" | "bypassratelimit" | "record.reindex" | "user.data-seeding" | "integration.create" | "record.import" | "config.update-all" | "attachment.upload" | "profile.electronic-signature" | "user.read-only-my-audit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "record.confirm-registration" | "record.reject-registration" | "organisation.read-locations" | "user.read" | "user.create" | "user.edit" | "user.search" | "workqueue" | "dashboard.view";
106
- $option: "role" | "event" | "placeOfEvent" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
106
+ $option: "role" | "event" | "placeOfEvent" | "notifiedIn" | "notifiedBy" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
107
107
  };
108
108
  };
109
109
  };
@@ -85,6 +85,32 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
85
85
  fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
86
86
  }, z.core.$strip>;
87
87
  conditionals: z.ZodOptional<z.ZodNever>;
88
+ }, z.core.$strip>, z.ZodObject<{
89
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
90
+ flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
91
+ id: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
92
+ readonly INCOMPLETE: "incomplete";
93
+ readonly REJECTED: "rejected";
94
+ readonly CORRECTION_REQUESTED: "correction-requested";
95
+ readonly POTENTIAL_DUPLICATE: "potential-duplicate";
96
+ readonly EDIT_IN_PROGRESS: "edit-in-progress";
97
+ }>]>, z.ZodString]>;
98
+ operation: z.ZodEnum<{
99
+ add: "add";
100
+ remove: "remove";
101
+ }>;
102
+ conditional: z.ZodOptional<z.ZodAny>;
103
+ }, z.core.$strip>>>>;
104
+ supportingCopy: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
105
+ icon: z.ZodOptional<z.ZodString>;
106
+ conditionals: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
107
+ type: z.ZodLiteral<"SHOW">;
108
+ conditional: z.ZodAny;
109
+ }, z.core.$strip>, z.ZodObject<{
110
+ type: z.ZodLiteral<"ENABLE">;
111
+ conditional: z.ZodAny;
112
+ }, z.core.$strip>], "type">>>;
113
+ type: z.ZodLiteral<"NOTIFY">;
88
114
  }, z.core.$strip>, z.ZodObject<{
89
115
  label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
90
116
  flags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -388,8 +414,8 @@ export declare const actionConfigTypes: Set<ActionConfigTypes>;
388
414
  *
389
415
  * These are not the same as the broader workflow `action.type` values.
390
416
  * `ActionConfigTypes` includes only the action kinds that can be defined
391
- * in the country configuration (e.g. DECLARE, VALIDATE, CUSTOM), and
392
- * excludes workflow-only types such as CREATE or NOTIFY.
417
+ * in the country configuration (e.g. NOTIFY, DECLARE, VALIDATE, CUSTOM), and
418
+ * excludes workflow-only types such as CREATE.
393
419
  */
394
420
  export type ActionConfigTypes = ActionConfig['type'];
395
421
  export declare const DeclarationActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -139,6 +139,8 @@ export declare const FieldConfigSchema: z.ZodObject<{
139
139
  role: "role";
140
140
  event: "event";
141
141
  placeOfEvent: "placeOfEvent";
142
+ notifiedIn: "notifiedIn";
143
+ notifiedBy: "notifiedBy";
142
144
  declaredIn: "declaredIn";
143
145
  declaredBy: "declaredBy";
144
146
  registeredIn: "registeredIn";
@@ -316,6 +318,8 @@ export declare const EventFieldConfigSchema: z.ZodObject<{
316
318
  role: "role";
317
319
  event: "event";
318
320
  placeOfEvent: "placeOfEvent";
321
+ notifiedIn: "notifiedIn";
322
+ notifiedBy: "notifiedBy";
319
323
  declaredIn: "declaredIn";
320
324
  declaredBy: "declaredBy";
321
325
  registeredIn: "registeredIn";
@@ -469,6 +473,8 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
469
473
  role: "role";
470
474
  event: "event";
471
475
  placeOfEvent: "placeOfEvent";
476
+ notifiedIn: "notifiedIn";
477
+ notifiedBy: "notifiedBy";
472
478
  declaredIn: "declaredIn";
473
479
  declaredBy: "declaredBy";
474
480
  registeredIn: "registeredIn";
@@ -614,6 +620,8 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
614
620
  role: "role";
615
621
  event: "event";
616
622
  placeOfEvent: "placeOfEvent";
623
+ notifiedIn: "notifiedIn";
624
+ notifiedBy: "notifiedBy";
617
625
  declaredIn: "declaredIn";
618
626
  declaredBy: "declaredBy";
619
627
  registeredIn: "registeredIn";
@@ -770,6 +778,8 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
770
778
  role: "role";
771
779
  event: "event";
772
780
  placeOfEvent: "placeOfEvent";
781
+ notifiedIn: "notifiedIn";
782
+ notifiedBy: "notifiedBy";
773
783
  declaredIn: "declaredIn";
774
784
  declaredBy: "declaredBy";
775
785
  registeredIn: "registeredIn";
@@ -915,6 +925,8 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
915
925
  role: "role";
916
926
  event: "event";
917
927
  placeOfEvent: "placeOfEvent";
928
+ notifiedIn: "notifiedIn";
929
+ notifiedBy: "notifiedBy";
918
930
  declaredIn: "declaredIn";
919
931
  declaredBy: "declaredBy";
920
932
  registeredIn: "registeredIn";
@@ -10,6 +10,8 @@ export declare const EventFieldReference: z.ZodObject<{
10
10
  $$event: z.ZodEnum<{
11
11
  updatedAt: "updatedAt";
12
12
  createdAt: "createdAt";
13
+ "legalStatuses.NOTIFIED.createdAt": "legalStatuses.NOTIFIED.createdAt";
14
+ "legalStatuses.NOTIFIED.acceptedAt": "legalStatuses.NOTIFIED.acceptedAt";
13
15
  "legalStatuses.DECLARED.createdAt": "legalStatuses.DECLARED.createdAt";
14
16
  "legalStatuses.DECLARED.acceptedAt": "legalStatuses.DECLARED.acceptedAt";
15
17
  "legalStatuses.REGISTERED.createdAt": "legalStatuses.REGISTERED.createdAt";
@@ -10,6 +10,17 @@ export declare const EventIndex: z.ZodObject<{
10
10
  ARCHIVED: "ARCHIVED";
11
11
  }>;
12
12
  legalStatuses: z.ZodObject<{
13
+ NOTIFIED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
14
+ createdAt: z.ZodISODateTime;
15
+ createdBy: z.ZodString;
16
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
17
+ createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
18
+ user: "user";
19
+ system: "system";
20
+ }>>>;
21
+ acceptedAt: z.ZodISODateTime;
22
+ createdByRole: z.ZodOptional<z.ZodString>;
23
+ }, z.core.$strip>>>;
13
24
  DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
14
25
  createdAt: z.ZodISODateTime;
15
26
  createdBy: z.ZodString;
@@ -39,6 +39,17 @@ export declare const RegistrationCreationMetadata: z.ZodObject<{
39
39
  }, z.core.$strip>;
40
40
  export type RegistrationCreationMetadata = z.infer<typeof RegistrationCreationMetadata>;
41
41
  export declare const LegalStatuses: z.ZodObject<{
42
+ NOTIFIED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
43
+ createdAt: z.ZodISODateTime;
44
+ createdBy: z.ZodString;
45
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
46
+ createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
47
+ user: "user";
48
+ system: "system";
49
+ }>>>;
50
+ acceptedAt: z.ZodISODateTime;
51
+ createdByRole: z.ZodOptional<z.ZodString>;
52
+ }, z.core.$strip>>>;
42
53
  DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
43
54
  createdAt: z.ZodISODateTime;
44
55
  createdBy: z.ZodString;
@@ -79,6 +90,17 @@ export declare const EventMetadata: z.ZodObject<{
79
90
  ARCHIVED: "ARCHIVED";
80
91
  }>;
81
92
  legalStatuses: z.ZodObject<{
93
+ NOTIFIED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
94
+ createdAt: z.ZodISODateTime;
95
+ createdBy: z.ZodString;
96
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
97
+ createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
98
+ user: "user";
99
+ system: "system";
100
+ }>>>;
101
+ acceptedAt: z.ZodISODateTime;
102
+ createdByRole: z.ZodOptional<z.ZodString>;
103
+ }, z.core.$strip>>>;
82
104
  DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
83
105
  createdAt: z.ZodISODateTime;
84
106
  createdBy: z.ZodString;
@@ -161,6 +183,8 @@ export declare const eventMetadataLabelMap: Record<Exclude<`event.${EventMetadat
161
183
  export declare const EventMetadataDateFieldIdInput: z.ZodEnum<{
162
184
  updatedAt: "updatedAt";
163
185
  createdAt: "createdAt";
186
+ "legalStatuses.NOTIFIED.createdAt": "legalStatuses.NOTIFIED.createdAt";
187
+ "legalStatuses.NOTIFIED.acceptedAt": "legalStatuses.NOTIFIED.acceptedAt";
164
188
  "legalStatuses.DECLARED.createdAt": "legalStatuses.DECLARED.createdAt";
165
189
  "legalStatuses.DECLARED.acceptedAt": "legalStatuses.DECLARED.acceptedAt";
166
190
  "legalStatuses.REGISTERED.createdAt": "legalStatuses.REGISTERED.createdAt";
@@ -170,6 +194,8 @@ export type EventMetadataDateFieldIdInput = z.infer<typeof EventMetadataDateFiel
170
194
  export declare const EventMetadataDateFieldId: z.ZodEnum<{
171
195
  "event.updatedAt": "event.updatedAt";
172
196
  "event.createdAt": "event.createdAt";
197
+ "event.legalStatuses.NOTIFIED.createdAt": "event.legalStatuses.NOTIFIED.createdAt";
198
+ "event.legalStatuses.NOTIFIED.acceptedAt": "event.legalStatuses.NOTIFIED.acceptedAt";
173
199
  "event.legalStatuses.DECLARED.createdAt": "event.legalStatuses.DECLARED.createdAt";
174
200
  "event.legalStatuses.DECLARED.acceptedAt": "event.legalStatuses.DECLARED.acceptedAt";
175
201
  "event.legalStatuses.REGISTERED.createdAt": "event.legalStatuses.REGISTERED.createdAt";
@@ -267,6 +267,7 @@ declare const NumberField: z.ZodObject<{
267
267
  configuration: z.ZodOptional<z.ZodObject<{
268
268
  min: z.ZodOptional<z.ZodNumber>;
269
269
  max: z.ZodOptional<z.ZodNumber>;
270
+ integer: z.ZodOptional<z.ZodBoolean>;
270
271
  prefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
271
272
  postfix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
272
273
  }, z.core.$strip>>;
@@ -1918,6 +1919,8 @@ declare const AdministrativeAreaField: z.ZodObject<{
1918
1919
  role: "role";
1919
1920
  event: "event";
1920
1921
  placeOfEvent: "placeOfEvent";
1922
+ notifiedIn: "notifiedIn";
1923
+ notifiedBy: "notifiedBy";
1921
1924
  declaredIn: "declaredIn";
1922
1925
  declaredBy: "declaredBy";
1923
1926
  registeredIn: "registeredIn";
@@ -2044,6 +2047,8 @@ declare const LocationInput: z.ZodObject<{
2044
2047
  role: "role";
2045
2048
  event: "event";
2046
2049
  placeOfEvent: "placeOfEvent";
2050
+ notifiedIn: "notifiedIn";
2051
+ notifiedBy: "notifiedBy";
2047
2052
  declaredIn: "declaredIn";
2048
2053
  declaredBy: "declaredBy";
2049
2054
  registeredIn: "registeredIn";
@@ -2241,6 +2246,8 @@ declare const Facility: z.ZodObject<{
2241
2246
  role: "role";
2242
2247
  event: "event";
2243
2248
  placeOfEvent: "placeOfEvent";
2249
+ notifiedIn: "notifiedIn";
2250
+ notifiedBy: "notifiedBy";
2244
2251
  declaredIn: "declaredIn";
2245
2252
  declaredBy: "declaredBy";
2246
2253
  registeredIn: "registeredIn";
@@ -2353,6 +2360,8 @@ declare const Office: z.ZodObject<{
2353
2360
  role: "role";
2354
2361
  event: "event";
2355
2362
  placeOfEvent: "placeOfEvent";
2363
+ notifiedIn: "notifiedIn";
2364
+ notifiedBy: "notifiedBy";
2356
2365
  declaredIn: "declaredIn";
2357
2366
  declaredBy: "declaredBy";
2358
2367
  registeredIn: "registeredIn";
@@ -2551,6 +2560,8 @@ declare const Address: z.ZodObject<{
2551
2560
  role: "role";
2552
2561
  event: "event";
2553
2562
  placeOfEvent: "placeOfEvent";
2563
+ notifiedIn: "notifiedIn";
2564
+ notifiedBy: "notifiedBy";
2554
2565
  declaredIn: "declaredIn";
2555
2566
  declaredBy: "declaredBy";
2556
2567
  registeredIn: "registeredIn";
@@ -75,4 +75,5 @@ export type FieldType = (typeof fieldTypes)[number];
75
75
  */
76
76
  export declare const compositeFieldTypes: ("NAME" | "ADDRESS" | "DATE_RANGE" | "FILE" | "FILE_WITH_OPTIONS" | "DATA" | "ID_READER")[];
77
77
  export declare const FieldTypesToHideInReview: ("IMAGE_VIEW" | "PARAGRAPH" | "PAGE_HEADER" | "BULLET_LIST" | "DIVIDER" | "DATA" | "ALPHA_PRINT_BUTTON" | "HTTP" | "QUERY_PARAM_READER" | "ID_READER" | "LOADER" | "ALPHA_HIDDEN")[];
78
+ export declare const HiddenFieldTypes: ("HTTP" | "QUERY_PARAM_READER" | "ALPHA_HIDDEN")[];
78
79
  //# sourceMappingURL=FieldType.d.ts.map
@@ -690,7 +690,7 @@ export declare const isHiddenFieldType: (field: {
690
690
  value: undefined;
691
691
  config: HiddenField;
692
692
  };
693
- export type NonInteractiveFieldType = Divider | PageHeader | ImageViewField | Paragraph | Heading | BulletList | DataField | AlphaPrintButton | HttpField | LinkButtonField | QueryParamReaderField | LoaderField | AutocompleteField;
693
+ export type NonInteractiveFieldType = Divider | PageHeader | ImageViewField | Paragraph | Heading | BulletList | DataField | AlphaPrintButton | LinkButtonField | LoaderField | AutocompleteField;
694
694
  export type InteractiveFieldType = Exclude<FieldConfig, NonInteractiveFieldType>;
695
695
  export declare const isNonInteractiveFieldType: (field: FieldConfig) => field is NonInteractiveFieldType;
696
696
  export {};
@@ -40,6 +40,7 @@ type ToArrayFields<T, K extends PropertyKey> = T extends unknown ? T extends obj
40
40
  */
41
41
  export type EventIndexWithAdministrativeHierarchy = Omit<ToArrayFields<EventIndex, 'createdAtLocation' | 'updatedAtLocation' | 'placeOfEvent'>, 'legalStatuses'> & {
42
42
  legalStatuses: {
43
+ NOTIFIED: ToArrayFields<ActionCreationMetadata, 'createdAtLocation'> | undefined;
43
44
  DECLARED: ToArrayFields<ActionCreationMetadata, 'createdAtLocation'> | undefined;
44
45
  REGISTERED: ToArrayFields<RegistrationCreationMetadata, 'createdAtLocation'> | undefined;
45
46
  };
@@ -65,6 +65,14 @@ export declare function applyDraftToEventIndex(eventIndex: EventIndex, draft: Dr
65
65
  type: string;
66
66
  status: "CREATED" | "NOTIFIED" | "DECLARED" | "REGISTERED" | "ARCHIVED";
67
67
  legalStatuses: {
68
+ NOTIFIED?: {
69
+ createdAt: string;
70
+ createdBy: string;
71
+ acceptedAt: string;
72
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
73
+ createdByUserType?: "user" | "system" | null | undefined;
74
+ createdByRole?: string | undefined;
75
+ } | null | undefined;
68
76
  DECLARED?: {
69
77
  createdAt: string;
70
78
  createdBy: string;