@opencrvs/toolkit 2.1.0-rc.d078d1a → 2.1.0-rc.d24aa5e
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 +190 -202
- package/dist/commons/api/router.d.ts +1589 -1657
- package/dist/commons/application-config/index.d.ts +6 -6
- package/dist/commons/conditionals/conditionals.d.ts +2102 -259
- package/dist/commons/conditionals/validate.d.ts +1 -10
- package/dist/commons/events/ActionConfig.d.ts +105 -105
- package/dist/commons/events/ActionDocument.d.ts +123 -117
- package/dist/commons/events/ActionInput.d.ts +6 -0
- package/dist/commons/events/ActionType.d.ts +62 -62
- package/dist/commons/events/AdvancedSearchConfig.d.ts +507 -519
- package/dist/commons/events/AuditLog.d.ts +42 -79
- package/dist/commons/events/CompositeFieldValue.d.ts +4 -4
- package/dist/commons/events/Conditional.d.ts +3 -3
- package/dist/commons/events/CountryConfigQueryInput.d.ts +590 -590
- package/dist/commons/events/Draft.d.ts +37 -37
- package/dist/commons/events/DynamicFieldValue.d.ts +9 -9
- package/dist/commons/events/EventConfig.d.ts +5 -8
- package/dist/commons/events/EventDocument.d.ts +48 -48
- package/dist/commons/events/EventIndex.d.ts +71 -48
- package/dist/commons/events/EventMetadata.d.ts +40 -40
- package/dist/commons/events/FieldConfig.d.ts +337 -347
- package/dist/commons/events/FieldType.d.ts +51 -51
- package/dist/commons/events/FieldTypeMapping.d.ts +91 -91
- package/dist/commons/events/FieldValue.d.ts +12 -12
- package/dist/commons/events/Flag.d.ts +15 -57
- package/dist/commons/events/TemplateConfig.d.ts +1 -1
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +40 -40
- package/dist/commons/events/WorkqueueConfig.d.ts +813 -816
- package/dist/commons/events/deduplication.d.ts +1 -1
- package/dist/commons/events/event.d.ts +2 -14
- package/dist/commons/events/field.d.ts +895 -78
- package/dist/commons/events/index.d.ts +0 -1
- package/dist/commons/events/locations.d.ts +6 -103
- package/dist/commons/events/mocks.test.utils.d.ts +4 -18
- package/dist/commons/events/scopes.d.ts +4 -4
- package/dist/commons/events/state/index.d.ts +17 -17
- package/dist/commons/events/state/utils.d.ts +7 -7
- package/dist/commons/events/test.utils.d.ts +43 -40
- package/dist/commons/events/utils.d.ts +114 -114
- package/dist/commons/notification/UserNotifications.d.ts +10 -10
- package/dist/conditionals/index.js +55 -303
- package/dist/environment/derived-variables.d.ts +119 -119
- package/dist/environment/derived-variables.d.ts.map +1 -1
- package/dist/environment/logger.d.ts.map +1 -1
- package/dist/environment/questions.d.ts +74 -75
- package/dist/environment/questions.d.ts.map +1 -1
- package/dist/environment/setup-environment.js +14 -8
- package/dist/environment/utils.d.ts +1 -1
- package/dist/events/deduplication.d.ts +1 -1
- package/dist/events/index.js +3386 -3548
- package/dist/migrations/v2.0/migrate-application-config-url.js +3 -4
- package/dist/notification/index.js +1064 -1731
- package/dist/scopes/index.d.ts +146 -371
- package/dist/scopes/index.js +55 -304
- package/opencrvs-toolkit-2.1.0-rc.d24aa5e.tgz +0 -0
- package/package.json +5 -5
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/commons/events/ActionStatus.d.ts +0 -14
- package/dist/commons/events/locationPayloads.d.ts +0 -95
- package/opencrvs-toolkit-2.1.0-rc.d078d1a.tgz +0 -0
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Deliberately dependency-free (aside from language builtins) so that files
|
|
3
|
-
* like Flag.ts can depend on ActionStatus without being pulled into the
|
|
4
|
-
* commons/scopes.ts <-> commons/authentication.ts import cycle that
|
|
5
|
-
* ActionDocument.ts participates in (it imports TokenUserType from
|
|
6
|
-
* '../authentication').
|
|
7
|
-
*/
|
|
8
|
-
export declare const ActionStatus: {
|
|
9
|
-
readonly Requested: 'Requested';
|
|
10
|
-
readonly Accepted: 'Accepted';
|
|
11
|
-
readonly Rejected: 'Rejected';
|
|
12
|
-
};
|
|
13
|
-
export type ActionStatus = keyof typeof ActionStatus;
|
|
14
|
-
//# sourceMappingURL=ActionStatus.d.ts.map
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import * as z from 'zod/v4';
|
|
2
|
-
/**
|
|
3
|
-
* Input payload for creating a location: the identity fields (parent and
|
|
4
|
-
* locationType are set once, immutable thereafter) plus the first version.
|
|
5
|
-
* `id` and `versionId` may be supplied by the caller for idempotent retries.
|
|
6
|
-
* `effectiveFrom` defaults to the beginning-of-time sentinel on the server.
|
|
7
|
-
*/
|
|
8
|
-
export declare const CreateLocationPayload: z.ZodObject<{
|
|
9
|
-
id: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
10
|
-
versionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
11
|
-
name: z.ZodString;
|
|
12
|
-
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
-
administrativeAreaId: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
14
|
-
locationType: z.ZodNullable<z.ZodString>;
|
|
15
|
-
effectiveFrom: z.ZodOptional<z.ZodISODate>;
|
|
16
|
-
status: z.ZodDefault<z.ZodEnum<{
|
|
17
|
-
active: "active";
|
|
18
|
-
inactive: "inactive";
|
|
19
|
-
}>>;
|
|
20
|
-
}, z.core.$strip>;
|
|
21
|
-
export type CreateLocationPayload = z.infer<typeof CreateLocationPayload>;
|
|
22
|
-
/**
|
|
23
|
-
* Input payload for appending a new version to a location. A full snapshot of
|
|
24
|
-
* every versioned field is required — omitted does not mean unchanged. The
|
|
25
|
-
* schema is strict: identity fields (`administrativeAreaId`, `locationType`)
|
|
26
|
-
* are rejected rather than ignored, as they cannot change. `lastVersionId`
|
|
27
|
-
* is the optimistic-concurrency check: it must be the id of the last element
|
|
28
|
-
* the caller observed. `effectiveFrom` defaults to today on the server;
|
|
29
|
-
* supply it explicitly for idempotent retries.
|
|
30
|
-
*/
|
|
31
|
-
export declare const UpdateLocationPayload: z.ZodObject<{
|
|
32
|
-
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
33
|
-
versionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
34
|
-
name: z.ZodString;
|
|
35
|
-
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
-
status: z.ZodEnum<{
|
|
37
|
-
active: "active";
|
|
38
|
-
inactive: "inactive";
|
|
39
|
-
}>;
|
|
40
|
-
effectiveFrom: z.ZodOptional<z.ZodISODate>;
|
|
41
|
-
lastVersionId: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
42
|
-
}, z.core.$strict>;
|
|
43
|
-
export type UpdateLocationPayload = z.infer<typeof UpdateLocationPayload>;
|
|
44
|
-
/**
|
|
45
|
-
* Input payload for withdrawing a pending (future-dated) version element.
|
|
46
|
-
* Only elements whose `effectiveFrom` has not yet passed can be withdrawn.
|
|
47
|
-
*/
|
|
48
|
-
export declare const WithdrawLocationVersionPayload: z.ZodObject<{
|
|
49
|
-
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
50
|
-
versionId: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
51
|
-
}, z.core.$strip>;
|
|
52
|
-
export type WithdrawLocationVersionPayload = z.infer<typeof WithdrawLocationVersionPayload>;
|
|
53
|
-
/**
|
|
54
|
-
* Administrative-area twin of {@link CreateLocationPayload}: `parentId`
|
|
55
|
-
* instead of `administrativeAreaId`, no `locationType`.
|
|
56
|
-
*/
|
|
57
|
-
export declare const CreateAdministrativeAreaPayload: z.ZodObject<{
|
|
58
|
-
id: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
59
|
-
versionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
60
|
-
name: z.ZodString;
|
|
61
|
-
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
62
|
-
parentId: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
63
|
-
effectiveFrom: z.ZodOptional<z.ZodISODate>;
|
|
64
|
-
status: z.ZodDefault<z.ZodEnum<{
|
|
65
|
-
active: "active";
|
|
66
|
-
inactive: "inactive";
|
|
67
|
-
}>>;
|
|
68
|
-
}, z.core.$strip>;
|
|
69
|
-
export type CreateAdministrativeAreaPayload = z.infer<typeof CreateAdministrativeAreaPayload>;
|
|
70
|
-
/**
|
|
71
|
-
* Administrative-area twin of {@link UpdateLocationPayload} — strict for the
|
|
72
|
-
* same reason: the identity field (`parentId`) is rejected, not ignored.
|
|
73
|
-
*/
|
|
74
|
-
export declare const UpdateAdministrativeAreaPayload: z.ZodObject<{
|
|
75
|
-
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
76
|
-
versionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
77
|
-
name: z.ZodString;
|
|
78
|
-
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
79
|
-
status: z.ZodEnum<{
|
|
80
|
-
active: "active";
|
|
81
|
-
inactive: "inactive";
|
|
82
|
-
}>;
|
|
83
|
-
effectiveFrom: z.ZodOptional<z.ZodISODate>;
|
|
84
|
-
lastVersionId: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
85
|
-
}, z.core.$strict>;
|
|
86
|
-
export type UpdateAdministrativeAreaPayload = z.infer<typeof UpdateAdministrativeAreaPayload>;
|
|
87
|
-
/**
|
|
88
|
-
* Administrative-area twin of {@link WithdrawLocationVersionPayload}.
|
|
89
|
-
*/
|
|
90
|
-
export declare const WithdrawAdministrativeAreaVersionPayload: z.ZodObject<{
|
|
91
|
-
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
92
|
-
versionId: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
93
|
-
}, z.core.$strip>;
|
|
94
|
-
export type WithdrawAdministrativeAreaVersionPayload = z.infer<typeof WithdrawAdministrativeAreaVersionPayload>;
|
|
95
|
-
//# sourceMappingURL=locationPayloads.d.ts.map
|
|
Binary file
|