@opencrvs/toolkit 1.9.12-rc.8353a87 → 1.9.12-rc.844bd7c

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.
@@ -7,7 +7,7 @@ import { Draft } from '../Draft';
7
7
  import { EventConfig } from '../EventConfig';
8
8
  import { UUID } from '../../uuid';
9
9
  import { DocumentPath } from '../../documents';
10
- export declare function getStatusFromActions(actions: Array<Action>): "ARCHIVED" | "DECLARED" | "REGISTERED" | "CREATED" | "NOTIFIED";
10
+ export declare function getStatusFromActions(actions: Array<Action>): "CREATED" | "NOTIFIED" | "DECLARED" | "REGISTERED" | "ARCHIVED";
11
11
  export declare function getAssignedUserFromActions(actions: Array<ActionDocument>): string | null;
12
12
  export declare function getAssignedUserSignatureFromActions(actions: Array<ActionDocument>): string | null;
13
13
  type NonNullableDeep<T> = T extends [unknown, ...unknown[]] ? {
@@ -64,7 +64,7 @@ export declare function applyDeclarationToEventIndex(eventIndex: EventIndex, dec
64
64
  export declare function applyDraftToEventIndex(eventIndex: EventIndex, draft: Draft, eventConfiguration: EventConfig): {
65
65
  id: string & import("zod").$brand<"UUID">;
66
66
  type: string;
67
- status: "ARCHIVED" | "DECLARED" | "REGISTERED" | "CREATED" | "NOTIFIED";
67
+ status: "CREATED" | "NOTIFIED" | "DECLARED" | "REGISTERED" | "ARCHIVED";
68
68
  legalStatuses: {
69
69
  DECLARED?: {
70
70
  createdAt: string;
@@ -289,15 +289,15 @@ export declare function getActionUpdateMetadata(actions: Action[]): Partial<{
289
289
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
290
290
  } | {
291
291
  id: string & import("zod").$brand<"UUID">;
292
- createdAt: string;
293
292
  transactionId: string;
294
293
  createdByUserType: "user" | "system";
294
+ createdAt: string;
295
295
  createdBy: string;
296
- type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
296
+ type: "CUSTOM" | "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
297
297
  status: "Rejected";
298
- createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
299
298
  createdByRole?: string | undefined;
300
299
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
300
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
301
301
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
302
302
  }>;
303
303
  /**
@@ -434,15 +434,15 @@ export declare function findLastAssignmentAction(actions: Action[]): {
434
434
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
435
435
  } | {
436
436
  id: string & import("zod").$brand<"UUID">;
437
- createdAt: string;
438
437
  transactionId: string;
439
438
  createdByUserType: "user" | "system";
439
+ createdAt: string;
440
440
  createdBy: string;
441
- type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
441
+ type: "CUSTOM" | "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
442
442
  status: "Rejected";
443
- createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
444
443
  createdByRole?: string | undefined;
445
444
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
445
+ createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
446
446
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
447
447
  } | undefined;
448
448
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencrvs/toolkit",
3
- "version": "1.9.12-rc.8353a87",
3
+ "version": "1.9.12-rc.844bd7c",
4
4
  "description": "OpenCRVS toolkit for building country configurations",
5
5
  "license": "MPL-2.0",
6
6
  "bin": {