@opencrvs/toolkit 1.9.12-rc.eec1bae → 1.9.12-rc.efbd898
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/application-config/index.js +2038 -45
- package/dist/commons/api/router.d.ts +86 -79
- package/dist/commons/application-config/index.d.ts +6 -4
- package/dist/commons/events/ActionDocument.d.ts +6 -6
- package/dist/commons/events/ActionType.d.ts +3 -3
- package/dist/commons/events/AdvancedSearchConfig.d.ts +10 -10
- package/dist/commons/events/CountryConfigQueryInput.d.ts +222 -222
- package/dist/commons/events/Draft.d.ts +8 -8
- package/dist/commons/events/EventConfig.d.ts +1 -1
- package/dist/commons/events/EventDocument.d.ts +3 -3
- package/dist/commons/events/EventIndex.d.ts +15 -15
- package/dist/commons/events/EventMetadata.d.ts +12 -12
- package/dist/commons/events/FieldConfig.d.ts +26 -30
- package/dist/commons/events/FieldType.d.ts +1 -1
- package/dist/commons/events/FieldTypeMapping.d.ts +4 -4
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +13 -13
- package/dist/commons/events/WorkqueueConfig.d.ts +239 -239
- package/dist/commons/events/state/index.d.ts +2 -2
- package/dist/commons/events/state/utils.d.ts +3 -3
- package/dist/commons/events/utils.d.ts +3 -3
- package/dist/events/index.js +1 -5
- package/dist/notification/index.js +1 -5
- package/opencrvs-toolkit-1.9.12-rc.efbd898.tgz +0 -0
- package/package.json +1 -1
- package/opencrvs-toolkit-1.9.12-rc.eec1bae.tgz +0 -0
|
@@ -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>): "
|
|
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: "
|
|
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"
|
|
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"
|
|
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/dist/events/index.js
CHANGED
|
@@ -2338,17 +2338,14 @@ var ImageViewField = BaseField.extend({
|
|
|
2338
2338
|
}).describe("A read-only image component for form pages");
|
|
2339
2339
|
var Paragraph = BaseField.extend({
|
|
2340
2340
|
type: import_v43.default.literal(FieldType.PARAGRAPH),
|
|
2341
|
-
defaultValue: NonEmptyTextValue.optional(),
|
|
2342
2341
|
configuration: ParagraphConfiguration
|
|
2343
2342
|
}).describe("A read-only HTML <p> paragraph");
|
|
2344
2343
|
var Heading = BaseField.extend({
|
|
2345
2344
|
type: import_v43.default.literal(FieldType.HEADING),
|
|
2346
|
-
defaultValue: NonEmptyTextValue.optional(),
|
|
2347
2345
|
configuration: HeadingConfiguration
|
|
2348
2346
|
}).describe("A read-only heading component for form pages");
|
|
2349
2347
|
var PageHeader = BaseField.extend({
|
|
2350
|
-
type: import_v43.default.literal(FieldType.PAGE_HEADER)
|
|
2351
|
-
defaultValue: NonEmptyTextValue.optional()
|
|
2348
|
+
type: import_v43.default.literal(FieldType.PAGE_HEADER)
|
|
2352
2349
|
}).describe("A read-only header component for form pages");
|
|
2353
2350
|
var File = BaseField.extend({
|
|
2354
2351
|
type: import_v43.default.literal(FieldType.FILE),
|
|
@@ -2398,7 +2395,6 @@ var RadioGroup = BaseField.extend({
|
|
|
2398
2395
|
}).describe("Grouped radio options");
|
|
2399
2396
|
var BulletList = BaseField.extend({
|
|
2400
2397
|
type: import_v43.default.literal(FieldType.BULLET_LIST),
|
|
2401
|
-
defaultValue: TextValue.optional(),
|
|
2402
2398
|
items: import_v43.default.array(TranslationConfig).describe("A list of items"),
|
|
2403
2399
|
configuration: import_v43.default.object({
|
|
2404
2400
|
styles: import_v43.default.object({
|
|
@@ -1830,17 +1830,14 @@ var ImageViewField = BaseField.extend({
|
|
|
1830
1830
|
}).describe("A read-only image component for form pages");
|
|
1831
1831
|
var Paragraph = BaseField.extend({
|
|
1832
1832
|
type: import_v43.default.literal(FieldType.PARAGRAPH),
|
|
1833
|
-
defaultValue: NonEmptyTextValue.optional(),
|
|
1834
1833
|
configuration: ParagraphConfiguration
|
|
1835
1834
|
}).describe("A read-only HTML <p> paragraph");
|
|
1836
1835
|
var Heading = BaseField.extend({
|
|
1837
1836
|
type: import_v43.default.literal(FieldType.HEADING),
|
|
1838
|
-
defaultValue: NonEmptyTextValue.optional(),
|
|
1839
1837
|
configuration: HeadingConfiguration
|
|
1840
1838
|
}).describe("A read-only heading component for form pages");
|
|
1841
1839
|
var PageHeader = BaseField.extend({
|
|
1842
|
-
type: import_v43.default.literal(FieldType.PAGE_HEADER)
|
|
1843
|
-
defaultValue: NonEmptyTextValue.optional()
|
|
1840
|
+
type: import_v43.default.literal(FieldType.PAGE_HEADER)
|
|
1844
1841
|
}).describe("A read-only header component for form pages");
|
|
1845
1842
|
var File = BaseField.extend({
|
|
1846
1843
|
type: import_v43.default.literal(FieldType.FILE),
|
|
@@ -1890,7 +1887,6 @@ var RadioGroup = BaseField.extend({
|
|
|
1890
1887
|
}).describe("Grouped radio options");
|
|
1891
1888
|
var BulletList = BaseField.extend({
|
|
1892
1889
|
type: import_v43.default.literal(FieldType.BULLET_LIST),
|
|
1893
|
-
defaultValue: TextValue.optional(),
|
|
1894
1890
|
items: import_v43.default.array(TranslationConfig).describe("A list of items"),
|
|
1895
1891
|
configuration: import_v43.default.object({
|
|
1896
1892
|
styles: import_v43.default.object({
|
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|