@opencrvs/toolkit 2.0.0-rc.929f295 → 2.0.0-rc.92bed7b

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.
package/dist/cli.js CHANGED
@@ -1883,9 +1883,9 @@ function updateRouteHandlers(sourceFiles, group, srcDir, relCwd) {
1883
1883
  }
1884
1884
  return replacedCount;
1885
1885
  }
1886
- function resolveConfigChain(configObj, path23) {
1886
+ function resolveConfigChain(configObj, path24) {
1887
1887
  let current = configObj;
1888
- for (const key of path23) {
1888
+ for (const key of path24) {
1889
1889
  if (!import_ts_morph10.Node.isObjectLiteralExpression(current)) return null;
1890
1890
  const prop = current.getProperty(key);
1891
1891
  if (!prop || !import_ts_morph10.Node.isPropertyAssignment(prop)) return null;
@@ -2393,7 +2393,9 @@ var decodeScope = (query) => {
2393
2393
  };
2394
2394
  var DEFAULT_SCOPE_OPTIONS = {
2395
2395
  placeOfEvent: JurisdictionFilter.enum.all,
2396
- accessLevel: JurisdictionFilter.enum.all
2396
+ accessLevel: JurisdictionFilter.enum.all,
2397
+ registeredIn: JurisdictionFilter.enum.all,
2398
+ declaredIn: JurisdictionFilter.enum.all
2397
2399
  };
2398
2400
 
2399
2401
  // ../commons/src/scopes.deprecated.do-not-use.ts
@@ -4831,9 +4833,9 @@ var import_path24 = require("path");
4831
4833
  var TEMP_REMOTE2 = "opencrvs-upgrade-v19-v20-codemod-merge-infra";
4832
4834
  var INFRASTRUCTURE_DIR = "infrastructure";
4833
4835
  var BASE_BRANCH = "release-v1.9";
4834
- function gitShowBytes(ref, path23) {
4836
+ function gitShowBytes(ref, path24) {
4835
4837
  try {
4836
- const buf = (0, import_child_process2.execFileSync)("git", ["show", `${ref}:${path23}`], {
4838
+ const buf = (0, import_child_process2.execFileSync)("git", ["show", `${ref}:${path24}`], {
4837
4839
  cwd: process.cwd(),
4838
4840
  stdio: ["ignore", "pipe", "pipe"]
4839
4841
  });
@@ -5009,6 +5011,94 @@ async function main26({
5009
5011
  );
5010
5012
  }
5011
5013
 
5014
+ // src/migrations/v2.0/fix-accept-requested-registration-function-type.ts
5015
+ var import_ts_morph22 = require("ts-morph");
5016
+ var import_path26 = __toESM(require("path"));
5017
+ var TARGET_FUNCTION_NAME = "acceptRequestedRegistration";
5018
+ var ACTION_PARAMETER_NAME = "action";
5019
+ var OLD_TYPE = "ActionInput";
5020
+ var NEW_TYPE = "Extract<ActionInput, { type?: 'REGISTER' }>";
5021
+ function isAcceptRequestedRegistrationParameter(parameter) {
5022
+ const functionDeclaration = parameter.getFirstAncestorByKind(
5023
+ import_ts_morph22.SyntaxKind.FunctionDeclaration
5024
+ );
5025
+ if (functionDeclaration?.getName() === TARGET_FUNCTION_NAME) {
5026
+ return true;
5027
+ }
5028
+ const arrowFunction = parameter.getFirstAncestorByKind(
5029
+ import_ts_morph22.SyntaxKind.ArrowFunction
5030
+ );
5031
+ const variableDeclaration = arrowFunction?.getFirstAncestorByKind(
5032
+ import_ts_morph22.SyntaxKind.VariableDeclaration
5033
+ );
5034
+ return variableDeclaration?.getName() === TARGET_FUNCTION_NAME;
5035
+ }
5036
+ function processFile14(filePath, project) {
5037
+ const sourceFile = project.getSourceFile(filePath);
5038
+ if (!sourceFile) return 0;
5039
+ let updatedCount = 0;
5040
+ for (const parameter of sourceFile.getDescendantsOfKind(
5041
+ import_ts_morph22.SyntaxKind.Parameter
5042
+ )) {
5043
+ if (parameter.getName() !== ACTION_PARAMETER_NAME) {
5044
+ continue;
5045
+ }
5046
+ if (!isAcceptRequestedRegistrationParameter(parameter)) {
5047
+ continue;
5048
+ }
5049
+ const typeNode = parameter.getTypeNode();
5050
+ if (!typeNode || typeNode.getText() !== OLD_TYPE) {
5051
+ continue;
5052
+ }
5053
+ parameter.setType(NEW_TYPE);
5054
+ updatedCount++;
5055
+ console.log(
5056
+ ` [${import_path26.default.relative(process.cwd(), filePath)}] Updated '${ACTION_PARAMETER_NAME}' in ${TARGET_FUNCTION_NAME} to ${NEW_TYPE}`
5057
+ );
5058
+ }
5059
+ return updatedCount;
5060
+ }
5061
+ async function main27() {
5062
+ const srcDir = import_path26.default.join(process.cwd(), "src");
5063
+ console.log(`Scanning for ${TARGET_FUNCTION_NAME} in: ${srcDir}
5064
+ `);
5065
+ const project = new import_ts_morph22.Project({
5066
+ tsConfigFilePath: import_path26.default.resolve(srcDir, "../tsconfig.json"),
5067
+ skipAddingFilesFromTsConfig: false
5068
+ });
5069
+ const sourceFiles = project.getSourceFiles().filter((sf) => {
5070
+ const filePath = sf.getFilePath();
5071
+ return filePath.includes("/src/") && !filePath.includes("/node_modules/");
5072
+ });
5073
+ let totalUpdated = 0;
5074
+ const modifiedFiles = [];
5075
+ for (const sourceFile of sourceFiles) {
5076
+ const filePath = sourceFile.getFilePath();
5077
+ const updated = processFile14(filePath, project);
5078
+ if (updated > 0) {
5079
+ totalUpdated += updated;
5080
+ modifiedFiles.push(filePath);
5081
+ }
5082
+ }
5083
+ if (modifiedFiles.length === 0) {
5084
+ console.log(
5085
+ `No '${ACTION_PARAMETER_NAME}: ${OLD_TYPE}' parameter in ${TARGET_FUNCTION_NAME} found. Nothing to do.`
5086
+ );
5087
+ return;
5088
+ }
5089
+ console.log(`
5090
+ Saving ${modifiedFiles.length} modified file(s)...`);
5091
+ for (const filePath of modifiedFiles) {
5092
+ const sourceFile = project.getSourceFileOrThrow(filePath);
5093
+ await sourceFile.save();
5094
+ console.log(` Saved: ${import_path26.default.relative(process.cwd(), filePath)}`);
5095
+ }
5096
+ console.log(
5097
+ `
5098
+ Done. Updated ${totalUpdated} parameter type annotation(s) in ${TARGET_FUNCTION_NAME}.`
5099
+ );
5100
+ }
5101
+
5012
5102
  // src/migrations/v2.0/index.ts
5013
5103
  var NON_SWARM_INFRA_SUBDIRS = ["postgres", "metabase"];
5014
5104
  async function runUpgrade(dockerSwarm) {
@@ -5035,6 +5125,7 @@ async function runUpgrade(dockerSwarm) {
5035
5125
  await main22();
5036
5126
  await main23();
5037
5127
  await main24();
5128
+ await main27();
5038
5129
  await main17();
5039
5130
  if (dockerSwarm) {
5040
5131
  await main25();
@@ -5069,7 +5160,7 @@ Options:
5069
5160
  'infrastructure/' directory is deleted (default).
5070
5161
  -h, --help Show this message.
5071
5162
  `.trim();
5072
- function main27() {
5163
+ function main28() {
5073
5164
  const command = args[0];
5074
5165
  if (!command || command === "--help" || command === "-h") {
5075
5166
  console.log(USAGE);
@@ -5144,4 +5235,4 @@ function handleCheckTranslations() {
5144
5235
  console.warn("This command is not implemented yet!");
5145
5236
  process.exit(1);
5146
5237
  }
5147
- main27();
5238
+ main28();
@@ -429,6 +429,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
429
429
  input: {
430
430
  eventId: string;
431
431
  customActionType?: string | undefined;
432
+ waitFor?: boolean | undefined;
432
433
  };
433
434
  output: {
434
435
  id: string & import("zod").$brand<"UUID">;
@@ -1097,18 +1098,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1097
1098
  }>;
1098
1099
  create: import("@trpc/server").TRPCMutationProcedure<{
1099
1100
  input: {
1100
- eventId: string;
1101
1101
  transactionId: string;
1102
+ eventId: string;
1102
1103
  type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "READ" | "CUSTOM" | "CREATE" | "DUPLICATE_DETECTED" | "MARK_AS_NOT_DUPLICATE" | "NOTIFY" | "ASSIGN" | "APPROVE_CORRECTION" | "REJECT_CORRECTION" | "UNASSIGN";
1103
1104
  status: "Requested" | "Accepted" | "Rejected";
1105
+ createdAtLocation?: string | null | undefined;
1104
1106
  declaration?: Record<string, unknown> | undefined;
1105
1107
  annotation?: Record<string, unknown> | undefined;
1106
1108
  originalActionId?: string | undefined;
1107
1109
  keepAssignment?: boolean | undefined;
1108
1110
  keepAssignmentIfAccepted?: boolean | undefined;
1109
1111
  keepAssignmentIfRejected?: boolean | undefined;
1110
- waitFor?: boolean | undefined;
1111
- createdAtLocation?: string | null | undefined;
1112
1112
  };
1113
1113
  output: {
1114
1114
  id: string & import("zod").$brand<"UUID">;
@@ -1439,6 +1439,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1439
1439
  transactionId: import("zod").ZodString;
1440
1440
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
1441
1441
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
1442
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
1442
1443
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
1443
1444
  }, import("zod/v4/core").$strip>>;
1444
1445
  output: import("../commons").EventDocument;
@@ -2381,6 +2382,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2381
2382
  transactionId: import("zod").ZodString;
2382
2383
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2383
2384
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
2385
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
2384
2386
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2385
2387
  }, import("zod/v4/core").$strip>>;
2386
2388
  output: import("../commons").EventDocument;
@@ -2672,6 +2674,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2672
2674
  transactionId: import("zod").ZodString;
2673
2675
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2674
2676
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
2677
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
2675
2678
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2676
2679
  }, import("zod/v4/core").$strip>>;
2677
2680
  output: import("../commons").EventDocument;
@@ -2963,6 +2966,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2963
2966
  transactionId: import("zod").ZodString;
2964
2967
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2965
2968
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
2969
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
2966
2970
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2967
2971
  }, import("zod/v4/core").$strip>>;
2968
2972
  output: import("../commons").EventDocument;
@@ -3254,6 +3258,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3254
3258
  transactionId: import("zod").ZodString;
3255
3259
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
3256
3260
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
3261
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
3257
3262
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
3258
3263
  }, import("zod/v4/core").$strip>>;
3259
3264
  output: import("../commons").EventDocument;
@@ -3545,6 +3550,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3545
3550
  transactionId: import("zod").ZodString;
3546
3551
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
3547
3552
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
3553
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
3548
3554
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
3549
3555
  }, import("zod/v4/core").$strip>>;
3550
3556
  output: import("../commons").EventDocument;
@@ -3836,6 +3842,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3836
3842
  transactionId: import("zod").ZodString;
3837
3843
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
3838
3844
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
3845
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
3839
3846
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
3840
3847
  }, import("zod/v4/core").$strip>>;
3841
3848
  output: import("../commons").EventDocument;
@@ -4440,6 +4447,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4440
4447
  transactionId: import("zod").ZodString;
4441
4448
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
4442
4449
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
4450
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
4443
4451
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
4444
4452
  }, import("zod/v4/core").$strip>>;
4445
4453
  output: import("../commons").EventDocument;
@@ -5412,6 +5420,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5412
5420
  transactionId: import("zod").ZodString;
5413
5421
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
5414
5422
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
5423
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
5415
5424
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
5416
5425
  }, import("zod/v4/core").$strip>>;
5417
5426
  output: import("../commons").EventDocument;
@@ -5703,6 +5712,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5703
5712
  transactionId: import("zod").ZodString;
5704
5713
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
5705
5714
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
5715
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
5706
5716
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
5707
5717
  }, import("zod/v4/core").$strip>>;
5708
5718
  output: import("../commons").EventDocument;
@@ -5994,6 +6004,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5994
6004
  transactionId: import("zod").ZodString;
5995
6005
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
5996
6006
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
6007
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
5997
6008
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
5998
6009
  }, import("zod/v4/core").$strip>>;
5999
6010
  output: import("../commons").EventDocument;
@@ -6682,7 +6693,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6682
6693
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
6683
6694
  createdByUserType?: "system" | "user" | null | undefined;
6684
6695
  createdByRole?: string | undefined;
6685
- createdBySignature?: string | null | undefined;
6686
6696
  } | null | undefined;
6687
6697
  REGISTERED?: {
6688
6698
  createdAt: string;
@@ -6692,7 +6702,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6692
6702
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
6693
6703
  createdByUserType?: "system" | "user" | null | undefined;
6694
6704
  createdByRole?: string | undefined;
6695
- createdBySignature?: string | null | undefined;
6696
6705
  } | null | undefined;
6697
6706
  };
6698
6707
  createdAt: string;
@@ -6710,7 +6719,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6710
6719
  createdByUserType?: "system" | "user" | null | undefined;
6711
6720
  updatedByUserRole?: string | null | undefined;
6712
6721
  createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
6713
- createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
6714
6722
  updatedAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
6715
6723
  assignedTo?: string | null | undefined;
6716
6724
  updatedBy?: string | null | undefined;
@@ -7169,33 +7177,22 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7169
7177
  input: string[];
7170
7178
  output: ({
7171
7179
  id: string & import("zod").$brand<"UUID">;
7180
+ type: "user";
7172
7181
  name: {
7173
7182
  firstname: string;
7174
7183
  surname: string;
7175
7184
  };
7176
7185
  role: string;
7177
7186
  primaryOfficeId: string & import("zod").$brand<"UUID">;
7178
- type: "user";
7179
- status: "active" | "pending" | "deactivated";
7187
+ fullHonorificName?: string | undefined;
7180
7188
  avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined;
7181
- signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
7182
7189
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7183
- device?: string | undefined;
7184
- fullHonorificName?: string | undefined;
7185
- mobile?: string | undefined;
7186
- email?: string | undefined;
7187
- data?: Record<string, import("../commons").FieldValue> | undefined;
7188
7190
  } | {
7189
7191
  id: string & import("zod").$brand<"UUID">;
7190
- name: string;
7191
7192
  type: "system";
7193
+ name: string;
7192
7194
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
7193
7195
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
7194
- signature?: undefined;
7195
- avatar?: undefined;
7196
- fullHonorificName?: string | undefined;
7197
- legacyId?: string | undefined;
7198
- status?: undefined;
7199
7196
  })[];
7200
7197
  meta: import("trpc-to-openapi").OpenApiMeta;
7201
7198
  }>;
@@ -7213,33 +7210,24 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7213
7210
  };
7214
7211
  output: ({
7215
7212
  id: string & import("zod").$brand<"UUID">;
7213
+ type: "user";
7216
7214
  name: {
7217
7215
  firstname: string;
7218
7216
  surname: string;
7219
7217
  };
7220
7218
  role: string;
7221
7219
  primaryOfficeId: string & import("zod").$brand<"UUID">;
7222
- type: "user";
7223
7220
  status: "active" | "pending" | "deactivated";
7221
+ fullHonorificName?: string | undefined;
7224
7222
  avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined;
7225
- signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
7226
7223
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
7227
- device?: string | undefined;
7228
- fullHonorificName?: string | undefined;
7229
- mobile?: string | undefined;
7230
- email?: string | undefined;
7231
- data?: Record<string, import("../commons").FieldValue> | undefined;
7232
7224
  } | {
7233
7225
  id: string & import("zod").$brand<"UUID">;
7234
- name: string;
7235
7226
  type: "system";
7227
+ name: string;
7236
7228
  primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
7237
7229
  administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
7238
- signature?: undefined;
7239
- avatar?: undefined;
7240
- fullHonorificName?: string | undefined;
7241
- legacyId?: string | undefined;
7242
- status?: undefined;
7230
+ status?: "active" | "pending" | "deactivated" | undefined;
7243
7231
  })[];
7244
7232
  meta: object;
7245
7233
  }>;
@@ -8102,7 +8090,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8102
8090
  $event: "id" | "createdBy" | "createdAt" | "status" | "createdByUserType" | "createdAtLocation" | "updatedAt" | "assignedTo" | "trackingId" | "type" | "flags" | "dateOfEvent" | "placeOfEvent" | "title" | "legalStatuses" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "outbox";
8103
8091
  };
8104
8092
  }[];
8105
- icon: "Archived" | "Assigned" | "Briefcase" | "Certified" | "Close" | "Collapse" | "Draft" | "DuplicateYellow" | "Expand" | "ExternalValidate" | "FilledCheck" | "InReview" | "Offline" | "Registered" | "RequiresUpdates" | "Sent" | "Validated" | "WaitingApproval" | "ChartActivity" | "Activity" | "Archive" | "ArchiveTray" | "ArrowLeft" | "ArrowRight" | "Buildings" | "Circle" | "CaretDown" | "CaretLeft" | "CaretRight" | "ChartBar" | "ChartLine" | "ChatCircle" | "CheckSquare" | "Compass" | "Check" | "Copy" | "Database" | "DotsThreeVertical" | "ArrowCounterClockwise" | "MagnifyingGlassMinus" | "MagnifyingGlassPlus" | "Export" | "Eye" | "EyeSlash" | "Envelope" | "File" | "FileSearch" | "FileMinus" | "FilePlus" | "FileText" | "FileX" | "Handshake" | "Gear" | "GitBranch" | "IdentificationCard" | "List" | "ListBullets" | "Lock" | "MagnifyingGlass" | "MapPin" | "Medal" | "NotePencil" | "Paperclip" | "PaperPlaneTilt" | "Pen" | "PenNib" | "Pencil" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "SignOut" | "Stamp" | "Star" | "Target" | "TextT" | "Trash" | "UploadSimple" | "User" | "UserPlus" | "Users" | "WarningCircle" | "X" | "ChatText" | "CircleWavyCheck" | "CircleWavyQuestion" | "ArchiveBox" | "ArrowCircleDown" | "FileArrowUp" | "FileDotted" | "Files" | "PencilLine" | "PencilCircle" | "UserCircle" | "Clock" | "QrCode" | "Webcam" | "Sun" | "DeviceTabletCamera" | "Globe" | "Fingerprint" | "PushPin" | "Timer";
8093
+ icon: "File" | "Archived" | "Assigned" | "Briefcase" | "Certified" | "Close" | "Collapse" | "Draft" | "DuplicateYellow" | "Expand" | "ExternalValidate" | "FilledCheck" | "InReview" | "Offline" | "Registered" | "RequiresUpdates" | "Sent" | "Validated" | "WaitingApproval" | "ChartActivity" | "Activity" | "Archive" | "ArchiveTray" | "ArrowLeft" | "ArrowRight" | "Buildings" | "Circle" | "CaretDown" | "CaretLeft" | "CaretRight" | "ChartBar" | "ChartLine" | "ChatCircle" | "CheckSquare" | "Compass" | "Check" | "Copy" | "Database" | "DotsThreeVertical" | "ArrowCounterClockwise" | "MagnifyingGlassMinus" | "MagnifyingGlassPlus" | "Export" | "Eye" | "EyeSlash" | "Envelope" | "FileSearch" | "FileMinus" | "FilePlus" | "FileText" | "FileX" | "Handshake" | "Gear" | "GitBranch" | "IdentificationCard" | "List" | "ListBullets" | "Lock" | "MagnifyingGlass" | "MapPin" | "Medal" | "NotePencil" | "Paperclip" | "PaperPlaneTilt" | "Pen" | "PenNib" | "Pencil" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "SignOut" | "Stamp" | "Star" | "Target" | "TextT" | "Trash" | "UploadSimple" | "User" | "UserPlus" | "Users" | "WarningCircle" | "X" | "ChatText" | "CircleWavyCheck" | "CircleWavyQuestion" | "ArchiveBox" | "ArrowCircleDown" | "FileArrowUp" | "FileDotted" | "Files" | "PencilLine" | "PencilCircle" | "UserCircle" | "Clock" | "QrCode" | "Webcam" | "Sun" | "DeviceTabletCamera" | "Globe" | "Fingerprint" | "PushPin" | "Timer";
8106
8094
  action?: {
8107
8095
  type: "DELETE" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "READ";
8108
8096
  } | undefined;