@opencrvs/toolkit 2.1.0-rc.6ca6244 → 2.1.0-rc.6d019e4
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/commons/api/router.d.ts +24 -5
- package/dist/commons/events/locations.d.ts +93 -3
- package/dist/commons/events/mocks.test.utils.d.ts +16 -2
- package/dist/commons/events/test.utils.d.ts +5 -5
- package/dist/events/index.js +59 -52
- package/dist/notification/index.js +45 -52
- package/opencrvs-toolkit-2.1.0-rc.6d019e4.tgz +0 -0
- package/package.json +2 -2
- package/opencrvs-toolkit-2.1.0-rc.6ca6244.tgz +0 -0
|
@@ -8351,8 +8351,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
8351
8351
|
name: string;
|
|
8352
8352
|
externalId?: string | null | undefined;
|
|
8353
8353
|
administrativeAreaId: (string & import("zod").$brand<"UUID">) | null;
|
|
8354
|
-
validUntil: string | null;
|
|
8355
8354
|
locationType: string | null;
|
|
8355
|
+
status: "active" | "inactive";
|
|
8356
|
+
versions: {
|
|
8357
|
+
versionId: string & import("zod").$brand<"UUID">;
|
|
8358
|
+
effectiveFrom: string;
|
|
8359
|
+
name: string;
|
|
8360
|
+
externalId?: string | null | undefined;
|
|
8361
|
+
status: "active" | "inactive";
|
|
8362
|
+
}[];
|
|
8356
8363
|
}[];
|
|
8357
8364
|
meta: object;
|
|
8358
8365
|
}>;
|
|
@@ -8362,7 +8369,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
8362
8369
|
name: string;
|
|
8363
8370
|
externalId?: string | null | undefined;
|
|
8364
8371
|
administrativeAreaId: string | null;
|
|
8365
|
-
validUntil: string | null;
|
|
8366
8372
|
locationType: string | null;
|
|
8367
8373
|
}[];
|
|
8368
8374
|
output: void;
|
|
@@ -8377,8 +8383,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
8377
8383
|
name: string;
|
|
8378
8384
|
externalId?: string | null | undefined;
|
|
8379
8385
|
administrativeAreaId: (string & import("zod").$brand<"UUID">) | null;
|
|
8380
|
-
validUntil: string | null;
|
|
8381
8386
|
locationType: string | null;
|
|
8387
|
+
status: "active" | "inactive";
|
|
8388
|
+
versions: {
|
|
8389
|
+
versionId: string & import("zod").$brand<"UUID">;
|
|
8390
|
+
effectiveFrom: string;
|
|
8391
|
+
name: string;
|
|
8392
|
+
externalId?: string | null | undefined;
|
|
8393
|
+
status: "active" | "inactive";
|
|
8394
|
+
}[];
|
|
8382
8395
|
};
|
|
8383
8396
|
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
8384
8397
|
}>;
|
|
@@ -8786,7 +8799,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
8786
8799
|
name: string;
|
|
8787
8800
|
externalId?: string | null | undefined;
|
|
8788
8801
|
parentId: (string & import("zod").$brand<"UUID">) | null;
|
|
8789
|
-
|
|
8802
|
+
status: "active" | "inactive";
|
|
8803
|
+
versions: {
|
|
8804
|
+
versionId: string & import("zod").$brand<"UUID">;
|
|
8805
|
+
effectiveFrom: string;
|
|
8806
|
+
name: string;
|
|
8807
|
+
externalId?: string | null | undefined;
|
|
8808
|
+
status: "active" | "inactive";
|
|
8809
|
+
}[];
|
|
8790
8810
|
}[];
|
|
8791
8811
|
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
8792
8812
|
}>;
|
|
@@ -8796,7 +8816,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
8796
8816
|
name: string;
|
|
8797
8817
|
externalId?: string | null | undefined;
|
|
8798
8818
|
parentId: string | null;
|
|
8799
|
-
validUntil: string | null;
|
|
8800
8819
|
}[];
|
|
8801
8820
|
output: void;
|
|
8802
8821
|
meta: object;
|
|
@@ -11,12 +11,46 @@ export declare const LocationTypeV1: z.ZodEnum<{
|
|
|
11
11
|
HEALTH_FACILITY: "HEALTH_FACILITY";
|
|
12
12
|
}>;
|
|
13
13
|
export type LocationTypeV1 = z.infer<typeof LocationTypeV1>;
|
|
14
|
+
export declare const LocationStatus: z.ZodEnum<{
|
|
15
|
+
active: "active";
|
|
16
|
+
inactive: "inactive";
|
|
17
|
+
}>;
|
|
18
|
+
export type LocationStatus = z.infer<typeof LocationStatus>;
|
|
19
|
+
/**
|
|
20
|
+
* A single element of the append-only `versions` history of a location or
|
|
21
|
+
* administrative area. Versions are sorted ascending by `effectiveFrom`
|
|
22
|
+
* ('0001-01-01' is used as the beginning-of-time sentinel).
|
|
23
|
+
*/
|
|
24
|
+
export declare const LocationVersion: z.ZodObject<{
|
|
25
|
+
versionId: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
26
|
+
effectiveFrom: z.ZodISODate;
|
|
27
|
+
name: z.ZodString;
|
|
28
|
+
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
status: z.ZodEnum<{
|
|
30
|
+
active: "active";
|
|
31
|
+
inactive: "inactive";
|
|
32
|
+
}>;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
export type LocationVersion = z.infer<typeof LocationVersion>;
|
|
14
35
|
export declare const AdministrativeArea: z.ZodObject<{
|
|
15
36
|
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
16
37
|
name: z.ZodString;
|
|
17
38
|
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
39
|
parentId: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
19
|
-
|
|
40
|
+
status: z.ZodEnum<{
|
|
41
|
+
active: "active";
|
|
42
|
+
inactive: "inactive";
|
|
43
|
+
}>;
|
|
44
|
+
versions: z.ZodArray<z.ZodObject<{
|
|
45
|
+
versionId: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
46
|
+
effectiveFrom: z.ZodISODate;
|
|
47
|
+
name: z.ZodString;
|
|
48
|
+
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
|
+
status: z.ZodEnum<{
|
|
50
|
+
active: "active";
|
|
51
|
+
inactive: "inactive";
|
|
52
|
+
}>;
|
|
53
|
+
}, z.core.$strip>>;
|
|
20
54
|
}, z.core.$strip>;
|
|
21
55
|
export type AdministrativeArea = z.infer<typeof AdministrativeArea>;
|
|
22
56
|
export declare const Location: z.ZodObject<{
|
|
@@ -24,10 +58,59 @@ export declare const Location: z.ZodObject<{
|
|
|
24
58
|
name: z.ZodString;
|
|
25
59
|
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
60
|
administrativeAreaId: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
27
|
-
validUntil: z.ZodNullable<z.ZodISODateTime>;
|
|
28
61
|
locationType: z.ZodNullable<z.ZodString>;
|
|
62
|
+
status: z.ZodEnum<{
|
|
63
|
+
active: "active";
|
|
64
|
+
inactive: "inactive";
|
|
65
|
+
}>;
|
|
66
|
+
versions: z.ZodArray<z.ZodObject<{
|
|
67
|
+
versionId: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
68
|
+
effectiveFrom: z.ZodISODate;
|
|
69
|
+
name: z.ZodString;
|
|
70
|
+
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
71
|
+
status: z.ZodEnum<{
|
|
72
|
+
active: "active";
|
|
73
|
+
inactive: "inactive";
|
|
74
|
+
}>;
|
|
75
|
+
}, z.core.$strip>>;
|
|
29
76
|
}, z.core.$strip>;
|
|
30
77
|
export type Location = z.infer<typeof Location>;
|
|
78
|
+
/**
|
|
79
|
+
* Input payload for the locations `set` mutation. Carries only the seedable
|
|
80
|
+
* identity and hierarchy fields — version history is managed by the server.
|
|
81
|
+
*/
|
|
82
|
+
export declare const SetLocationPayload: z.ZodObject<{
|
|
83
|
+
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
84
|
+
name: z.ZodString;
|
|
85
|
+
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
86
|
+
administrativeAreaId: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
87
|
+
locationType: z.ZodNullable<z.ZodString>;
|
|
88
|
+
}, z.core.$strip>;
|
|
89
|
+
export type SetLocationPayload = z.infer<typeof SetLocationPayload>;
|
|
90
|
+
/**
|
|
91
|
+
* Input payload for the administrative areas `set` mutation. Carries only the
|
|
92
|
+
* seedable identity and hierarchy fields — version history is managed by the
|
|
93
|
+
* server.
|
|
94
|
+
*/
|
|
95
|
+
export declare const SetAdministrativeAreaPayload: z.ZodObject<{
|
|
96
|
+
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
97
|
+
name: z.ZodString;
|
|
98
|
+
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
99
|
+
parentId: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
100
|
+
}, z.core.$strip>;
|
|
101
|
+
export type SetAdministrativeAreaPayload = z.infer<typeof SetAdministrativeAreaPayload>;
|
|
102
|
+
/**
|
|
103
|
+
* Resolves the version in effect at the given anchor date.
|
|
104
|
+
*
|
|
105
|
+
* Returns the element with the greatest `effectiveFrom` that is less than or
|
|
106
|
+
* equal to `anchor`, falling back to the earliest element when the anchor
|
|
107
|
+
* precedes all versions. Assumes `versions` is sorted ascending by
|
|
108
|
+
* `effectiveFrom`. Both `effectiveFrom` and `anchor` are 'YYYY-MM-DD' strings,
|
|
109
|
+
* so plain string comparison is correct.
|
|
110
|
+
*/
|
|
111
|
+
export declare function resolveVersion<T extends {
|
|
112
|
+
effectiveFrom: string;
|
|
113
|
+
}>(versions: T[], anchor: string): T;
|
|
31
114
|
type WrapArrayPreserveNullish<V> = V extends readonly any[] ? V : NonNullable<V>[] | Extract<V, null | undefined>;
|
|
32
115
|
/**
|
|
33
116
|
* For type T, convert fields K to arrays. If field is string, convert to string[].
|
|
@@ -79,7 +162,14 @@ export declare function getAdministrativeAreaHierarchy(administrativeAreaId: str
|
|
|
79
162
|
name: string;
|
|
80
163
|
externalId?: string | null | undefined;
|
|
81
164
|
parentId: (string & z.$brand<"UUID">) | null;
|
|
82
|
-
|
|
165
|
+
status: "active" | "inactive";
|
|
166
|
+
versions: {
|
|
167
|
+
versionId: string & z.$brand<"UUID">;
|
|
168
|
+
effectiveFrom: string;
|
|
169
|
+
name: string;
|
|
170
|
+
externalId?: string | null | undefined;
|
|
171
|
+
status: "active" | "inactive";
|
|
172
|
+
}[];
|
|
83
173
|
}[];
|
|
84
174
|
/**
|
|
85
175
|
* Resolves a location or administrative area UUID into a root-first hierarchy of UUIDs.
|
|
@@ -6,14 +6,28 @@ export declare const V2_DEFAULT_MOCK_LOCATIONS_MAP: Map<string & import("zod").$
|
|
|
6
6
|
name: string;
|
|
7
7
|
externalId?: string | null | undefined;
|
|
8
8
|
administrativeAreaId: (string & import("zod").$brand<"UUID">) | null;
|
|
9
|
-
validUntil: string | null;
|
|
10
9
|
locationType: string | null;
|
|
10
|
+
status: "active" | "inactive";
|
|
11
|
+
versions: {
|
|
12
|
+
versionId: string & import("zod").$brand<"UUID">;
|
|
13
|
+
effectiveFrom: string;
|
|
14
|
+
name: string;
|
|
15
|
+
externalId?: string | null | undefined;
|
|
16
|
+
status: "active" | "inactive";
|
|
17
|
+
}[];
|
|
11
18
|
}>;
|
|
12
19
|
export declare const V2_DEFAULT_MOCK_ADMINISTRATIVE_AREAS_MAP: Map<string & import("zod").$brand<"UUID">, {
|
|
13
20
|
id: string & import("zod").$brand<"UUID">;
|
|
14
21
|
name: string;
|
|
15
22
|
externalId?: string | null | undefined;
|
|
16
23
|
parentId: (string & import("zod").$brand<"UUID">) | null;
|
|
17
|
-
|
|
24
|
+
status: "active" | "inactive";
|
|
25
|
+
versions: {
|
|
26
|
+
versionId: string & import("zod").$brand<"UUID">;
|
|
27
|
+
effectiveFrom: string;
|
|
28
|
+
name: string;
|
|
29
|
+
externalId?: string | null | undefined;
|
|
30
|
+
status: "active" | "inactive";
|
|
31
|
+
}[];
|
|
18
32
|
}>;
|
|
19
33
|
//# sourceMappingURL=mocks.test.utils.d.ts.map
|
|
@@ -9,7 +9,7 @@ import { EventIndex } from './EventIndex';
|
|
|
9
9
|
import { EventInput } from './EventInput';
|
|
10
10
|
import { TranslationConfig } from './TranslationConfig';
|
|
11
11
|
import { FieldConfig } from './FieldConfig';
|
|
12
|
-
import {
|
|
12
|
+
import { SetLocationPayload, SetAdministrativeAreaPayload } from './locations';
|
|
13
13
|
import { WorkqueueConfig } from './WorkqueueConfig';
|
|
14
14
|
import * as z from 'zod/v4';
|
|
15
15
|
import { DocumentPath } from '../documents';
|
|
@@ -48,16 +48,16 @@ export declare function fieldConfigsToActionPayload(fields: FieldConfig[], rng:
|
|
|
48
48
|
* Given hierarchy, ensures that related fields (e.g. location and administrative area) have valid values based on the hierarchy.
|
|
49
49
|
*/
|
|
50
50
|
administrativeHierarchy?: {
|
|
51
|
-
administrativeAreas:
|
|
52
|
-
locations:
|
|
51
|
+
administrativeAreas: SetAdministrativeAreaPayload[];
|
|
52
|
+
locations: SetLocationPayload[];
|
|
53
53
|
}): ActionUpdate;
|
|
54
54
|
export declare function generateActionDeclarationInput(configuration: EventConfig, action: ActionType, rng: () => number, overrides?: ActionUpdate,
|
|
55
55
|
/**
|
|
56
56
|
* Given hierarchy, ensures that related fields (e.g. location and administrative area) have valid values based on the hierarchy.
|
|
57
57
|
*/
|
|
58
58
|
administrativeHierarchy?: {
|
|
59
|
-
administrativeAreas:
|
|
60
|
-
locations:
|
|
59
|
+
administrativeAreas: SetAdministrativeAreaPayload[];
|
|
60
|
+
locations: SetLocationPayload[];
|
|
61
61
|
}): ActionUpdate;
|
|
62
62
|
export declare function generateActionDuplicateDeclarationInput(...args: Parameters<typeof generateActionDeclarationInput>): ReturnType<typeof generateActionDeclarationInput>;
|
|
63
63
|
export declare function eventPayloadGenerator(rng: () => number, configuration?: EventConfig): {
|
package/dist/events/index.js
CHANGED
|
@@ -161,7 +161,9 @@ __export(events_exports, {
|
|
|
161
161
|
LanguageConfig: () => LanguageConfig,
|
|
162
162
|
LegalStatuses: () => LegalStatuses,
|
|
163
163
|
Location: () => Location,
|
|
164
|
+
LocationStatus: () => LocationStatus,
|
|
164
165
|
LocationTypeV1: () => LocationTypeV1,
|
|
166
|
+
LocationVersion: () => LocationVersion,
|
|
165
167
|
METADATA_FIELD_PREFIX: () => METADATA_FIELD_PREFIX,
|
|
166
168
|
MarkAsDuplicateActionInput: () => MarkAsDuplicateActionInput,
|
|
167
169
|
MarkNotDuplicateActionInput: () => MarkNotDuplicateActionInput,
|
|
@@ -201,6 +203,8 @@ __export(events_exports, {
|
|
|
201
203
|
SelectDateRangeOption: () => SelectDateRangeOption,
|
|
202
204
|
SelectDateRangeValue: () => SelectDateRangeValue,
|
|
203
205
|
SelectOption: () => SelectOption,
|
|
206
|
+
SetAdministrativeAreaPayload: () => SetAdministrativeAreaPayload,
|
|
207
|
+
SetLocationPayload: () => SetLocationPayload,
|
|
204
208
|
ShowConditional: () => ShowConditional,
|
|
205
209
|
SignatureFieldValue: () => SignatureFieldValue,
|
|
206
210
|
StaticDataEntry: () => StaticDataEntry,
|
|
@@ -433,6 +437,7 @@ __export(events_exports, {
|
|
|
433
437
|
resolveDateOfEvent: () => resolveDateOfEvent,
|
|
434
438
|
resolveEventCustomFlags: () => resolveEventCustomFlags,
|
|
435
439
|
resolvePlaceOfEvent: () => resolvePlaceOfEvent,
|
|
440
|
+
resolveVersion: () => resolveVersion,
|
|
436
441
|
runClientFunction: () => runClientFunction,
|
|
437
442
|
runFieldValidations: () => runFieldValidations,
|
|
438
443
|
runStructuralValidations: () => runStructuralValidations,
|
|
@@ -10466,21 +10471,53 @@ var LocationTypeV1 = z43.enum([
|
|
|
10466
10471
|
"CRVS_OFFICE",
|
|
10467
10472
|
"HEALTH_FACILITY"
|
|
10468
10473
|
]);
|
|
10474
|
+
var LocationStatus = z43.enum(["active", "inactive"]);
|
|
10475
|
+
var LocationVersion = z43.object({
|
|
10476
|
+
versionId: UUID,
|
|
10477
|
+
effectiveFrom: z43.iso.date(),
|
|
10478
|
+
name: z43.string(),
|
|
10479
|
+
externalId: z43.string().nullish(),
|
|
10480
|
+
status: LocationStatus
|
|
10481
|
+
});
|
|
10469
10482
|
var AdministrativeArea = z43.object({
|
|
10470
10483
|
id: UUID,
|
|
10471
10484
|
name: z43.string(),
|
|
10472
10485
|
externalId: z43.string().nullish(),
|
|
10473
10486
|
parentId: UUID.nullable(),
|
|
10474
|
-
|
|
10487
|
+
status: LocationStatus,
|
|
10488
|
+
versions: z43.array(LocationVersion)
|
|
10475
10489
|
});
|
|
10476
10490
|
var Location = z43.object({
|
|
10477
10491
|
id: UUID,
|
|
10478
10492
|
name: z43.string(),
|
|
10479
10493
|
externalId: z43.string().nullish(),
|
|
10480
10494
|
administrativeAreaId: UUID.nullable(),
|
|
10481
|
-
|
|
10495
|
+
locationType: z43.string().nullable(),
|
|
10496
|
+
status: LocationStatus,
|
|
10497
|
+
versions: z43.array(LocationVersion)
|
|
10498
|
+
});
|
|
10499
|
+
var SetLocationPayload = z43.object({
|
|
10500
|
+
id: UUID,
|
|
10501
|
+
name: z43.string(),
|
|
10502
|
+
externalId: z43.string().nullish(),
|
|
10503
|
+
administrativeAreaId: UUID.nullable(),
|
|
10482
10504
|
locationType: z43.string().nullable()
|
|
10483
10505
|
});
|
|
10506
|
+
var SetAdministrativeAreaPayload = z43.object({
|
|
10507
|
+
id: UUID,
|
|
10508
|
+
name: z43.string(),
|
|
10509
|
+
externalId: z43.string().nullish(),
|
|
10510
|
+
parentId: UUID.nullable()
|
|
10511
|
+
});
|
|
10512
|
+
function resolveVersion(versions, anchor) {
|
|
10513
|
+
let resolved = versions[0];
|
|
10514
|
+
for (const version of versions) {
|
|
10515
|
+
if (version.effectiveFrom <= anchor) {
|
|
10516
|
+
resolved = version;
|
|
10517
|
+
}
|
|
10518
|
+
}
|
|
10519
|
+
return resolved;
|
|
10520
|
+
}
|
|
10484
10521
|
function matchesJurisdictionFilter(locationIds, filter, user2) {
|
|
10485
10522
|
if (!locationIds) {
|
|
10486
10523
|
return false;
|
|
@@ -10960,75 +10997,80 @@ function getFilePathsFromEvent(event2) {
|
|
|
10960
10997
|
}
|
|
10961
10998
|
|
|
10962
10999
|
// ../commons/src/events/mocks.test.utils.ts
|
|
10963
|
-
|
|
11000
|
+
function withVersionFields(entity) {
|
|
11001
|
+
return {
|
|
11002
|
+
...entity,
|
|
11003
|
+
status: "active",
|
|
11004
|
+
versions: [
|
|
11005
|
+
{
|
|
11006
|
+
versionId: entity.id,
|
|
11007
|
+
effectiveFrom: "0001-01-01",
|
|
11008
|
+
name: entity.name,
|
|
11009
|
+
externalId: entity.externalId ?? null,
|
|
11010
|
+
status: "active"
|
|
11011
|
+
}
|
|
11012
|
+
]
|
|
11013
|
+
};
|
|
11014
|
+
}
|
|
11015
|
+
var MOCK_ADMINISTRATIVE_AREAS_BASE = [
|
|
10964
11016
|
{
|
|
10965
11017
|
id: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
|
|
10966
11018
|
name: "Central",
|
|
10967
11019
|
parentId: null,
|
|
10968
|
-
validUntil: null,
|
|
10969
11020
|
externalId: "ydyJb1RAy4U1"
|
|
10970
11021
|
},
|
|
10971
11022
|
{
|
|
10972
11023
|
id: "c599b691-fd2d-45e1-abf4-d185de727fb5",
|
|
10973
11024
|
name: "Sulaka",
|
|
10974
11025
|
parentId: null,
|
|
10975
|
-
validUntil: null,
|
|
10976
11026
|
externalId: "pQ8nGxWmZ2Q3"
|
|
10977
11027
|
},
|
|
10978
11028
|
{
|
|
10979
11029
|
id: "7ef2b9c7-5e6d-49f6-ae05-656207d0fc64",
|
|
10980
11030
|
name: "Pualula",
|
|
10981
11031
|
parentId: null,
|
|
10982
|
-
validUntil: null,
|
|
10983
11032
|
externalId: "Aq91DweLmT8k"
|
|
10984
11033
|
},
|
|
10985
11034
|
{
|
|
10986
11035
|
id: "6d1a59df-988c-4021-a846-ccbc021931a7",
|
|
10987
11036
|
name: "Chuminga",
|
|
10988
11037
|
parentId: null,
|
|
10989
|
-
validUntil: null,
|
|
10990
11038
|
externalId: "Rw0fYNh2Xk9a"
|
|
10991
11039
|
},
|
|
10992
11040
|
{
|
|
10993
11041
|
id: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
10994
11042
|
name: "Ibombo",
|
|
10995
11043
|
parentId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
|
|
10996
|
-
validUntil: null,
|
|
10997
11044
|
externalId: "k7DsP4vbN1Qe"
|
|
10998
11045
|
},
|
|
10999
11046
|
{
|
|
11000
11047
|
id: "27160bbd-32d1-4625-812f-860226bfb92a",
|
|
11001
11048
|
name: "Isango",
|
|
11002
11049
|
parentId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
|
|
11003
|
-
validUntil: null,
|
|
11004
11050
|
externalId: "Gm3Z9eQpHw4L"
|
|
11005
11051
|
},
|
|
11006
11052
|
{
|
|
11007
11053
|
id: "967032fd-3f81-478a-826c-30cb8fe121bd",
|
|
11008
11054
|
name: "Isamba",
|
|
11009
11055
|
parentId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
|
|
11010
|
-
validUntil: null,
|
|
11011
11056
|
externalId: "sT0xVu1KqJ7r"
|
|
11012
11057
|
},
|
|
11013
11058
|
{
|
|
11014
11059
|
id: "89a33893-b17d-481d-a26d-6461e7ac1651",
|
|
11015
11060
|
name: "Itambo",
|
|
11016
11061
|
parentId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
|
|
11017
|
-
validUntil: null,
|
|
11018
11062
|
externalId: "Nq6Bv2HpL9Te"
|
|
11019
11063
|
},
|
|
11020
11064
|
{
|
|
11021
11065
|
id: "d42ab2fe-e7ed-470e-8b31-4fb27f9b8250",
|
|
11022
11066
|
name: "Ezhi",
|
|
11023
11067
|
parentId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
|
|
11024
|
-
validUntil: null,
|
|
11025
11068
|
externalId: "xK8cQ0ZRy5Wd"
|
|
11026
11069
|
},
|
|
11027
11070
|
{
|
|
11028
11071
|
id: "8fbd09d2-212b-47f4-beb3-5e1694931d9f",
|
|
11029
11072
|
name: "Ilanga",
|
|
11030
11073
|
parentId: "c599b691-fd2d-45e1-abf4-d185de727fb5",
|
|
11031
|
-
validUntil: null,
|
|
11032
11074
|
externalId: "Cq4Jm1XvN8Ls"
|
|
11033
11075
|
},
|
|
11034
11076
|
// Villages under Ibombo (62a0ccb4-880d-4f30-8882-f256007dfff9)
|
|
@@ -11036,49 +11078,42 @@ var V2_DEFAULT_MOCK_ADMINISTRATIVE_AREAS = [
|
|
|
11036
11078
|
id: "1d4e5f6a-7b8c-4912-8efa-345678901234",
|
|
11037
11079
|
name: "Klow",
|
|
11038
11080
|
parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
11039
|
-
validUntil: null,
|
|
11040
11081
|
externalId: "IkYcYBUcyY2"
|
|
11041
11082
|
},
|
|
11042
11083
|
{
|
|
11043
11084
|
id: "2e5f6a7b-8c9d-4a23-8fab-456789012345",
|
|
11044
11085
|
name: "Mbondo",
|
|
11045
11086
|
parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
11046
|
-
validUntil: null,
|
|
11047
11087
|
externalId: "Qhvv5hvo3mY"
|
|
11048
11088
|
},
|
|
11049
11089
|
{
|
|
11050
11090
|
id: "3f6a7b8c-9d0e-4b34-8abc-567890123456",
|
|
11051
11091
|
name: "Ndara",
|
|
11052
11092
|
parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
11053
|
-
validUntil: null,
|
|
11054
11093
|
externalId: "crXh068O9TR"
|
|
11055
11094
|
},
|
|
11056
11095
|
{
|
|
11057
11096
|
id: "4a7b8c9d-0e1f-4c45-abcd-678901234567",
|
|
11058
11097
|
name: "Olani",
|
|
11059
11098
|
parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
11060
|
-
validUntil: null,
|
|
11061
11099
|
externalId: "r00It8Tvvp7"
|
|
11062
11100
|
},
|
|
11063
11101
|
{
|
|
11064
11102
|
id: "5b8c9d0e-1f2a-4d56-bcde-789012345678",
|
|
11065
11103
|
name: "Pemba",
|
|
11066
11104
|
parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
11067
|
-
validUntil: null,
|
|
11068
11105
|
externalId: "ZnUWsbONIaH"
|
|
11069
11106
|
},
|
|
11070
11107
|
{
|
|
11071
11108
|
id: "6c9d0e1f-2a3b-4e67-8def-890123456789",
|
|
11072
11109
|
name: "Quanza",
|
|
11073
11110
|
parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
11074
|
-
validUntil: null,
|
|
11075
11111
|
externalId: "fDZycvQTa7l"
|
|
11076
11112
|
},
|
|
11077
11113
|
{
|
|
11078
11114
|
id: "7d0e1f2a-3b4c-4f78-8efa-901234567890",
|
|
11079
11115
|
name: "Rivka",
|
|
11080
11116
|
parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
11081
|
-
validUntil: null,
|
|
11082
11117
|
externalId: "KqswxCGTELa"
|
|
11083
11118
|
},
|
|
11084
11119
|
// Villages under Isamba (967032fd-3f81-478a-826c-30cb8fe121bd)
|
|
@@ -11086,35 +11121,30 @@ var V2_DEFAULT_MOCK_ADMINISTRATIVE_AREAS = [
|
|
|
11086
11121
|
id: "8e1f2a3b-4c5d-4089-8fab-012345678901",
|
|
11087
11122
|
name: "Mbula",
|
|
11088
11123
|
parentId: "967032fd-3f81-478a-826c-30cb8fe121bd",
|
|
11089
|
-
validUntil: null,
|
|
11090
11124
|
externalId: "osEbKjRc9Kg"
|
|
11091
11125
|
},
|
|
11092
11126
|
{
|
|
11093
11127
|
id: "9f2a3b4c-5d6e-4190-8abf-123456789012",
|
|
11094
11128
|
name: "Ndoki",
|
|
11095
11129
|
parentId: "967032fd-3f81-478a-826c-30cb8fe121bd",
|
|
11096
|
-
validUntil: null,
|
|
11097
11130
|
externalId: "aq4daBUAGr3"
|
|
11098
11131
|
},
|
|
11099
11132
|
{
|
|
11100
11133
|
id: "0a3b4c5d-6e7f-4201-abcd-234567890123",
|
|
11101
11134
|
name: "Tsanga",
|
|
11102
11135
|
parentId: "967032fd-3f81-478a-826c-30cb8fe121bd",
|
|
11103
|
-
validUntil: null,
|
|
11104
11136
|
externalId: "cqis6Y8trbJ"
|
|
11105
11137
|
},
|
|
11106
11138
|
{
|
|
11107
11139
|
id: "1b4c5d6e-7f8a-4312-bcde-345678901234",
|
|
11108
11140
|
name: "Waziri",
|
|
11109
11141
|
parentId: "967032fd-3f81-478a-826c-30cb8fe121bd",
|
|
11110
|
-
validUntil: null,
|
|
11111
11142
|
externalId: "LMijHPyyx6d"
|
|
11112
11143
|
},
|
|
11113
11144
|
{
|
|
11114
11145
|
id: "2c5d6e7f-8a9b-4423-8def-456789012345",
|
|
11115
11146
|
name: "Zimbi",
|
|
11116
11147
|
parentId: "967032fd-3f81-478a-826c-30cb8fe121bd",
|
|
11117
|
-
validUntil: null,
|
|
11118
11148
|
externalId: "pcQYbPuKGZ7"
|
|
11119
11149
|
},
|
|
11120
11150
|
// Villages under Itambo (89a33893-b17d-481d-a26d-6461e7ac1651)
|
|
@@ -11122,67 +11152,59 @@ var V2_DEFAULT_MOCK_ADMINISTRATIVE_AREAS = [
|
|
|
11122
11152
|
id: "3d6e7f8a-9b0c-4534-8efa-567890123456",
|
|
11123
11153
|
name: "Felani",
|
|
11124
11154
|
parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
|
|
11125
|
-
validUntil: null,
|
|
11126
11155
|
externalId: "gSqpoCGdMXp"
|
|
11127
11156
|
},
|
|
11128
11157
|
{
|
|
11129
11158
|
id: "4e7f8a9b-0c1d-4645-8fab-678901234567",
|
|
11130
11159
|
name: "Goroma",
|
|
11131
11160
|
parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
|
|
11132
|
-
validUntil: null,
|
|
11133
11161
|
externalId: "KvAAIaNqVrp"
|
|
11134
11162
|
},
|
|
11135
11163
|
{
|
|
11136
11164
|
id: "5f8a9b0c-1d2e-4756-8abc-789012345678",
|
|
11137
11165
|
name: "Halifu",
|
|
11138
11166
|
parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
|
|
11139
|
-
validUntil: null,
|
|
11140
11167
|
externalId: "qe4UnEVt1hv"
|
|
11141
11168
|
},
|
|
11142
11169
|
{
|
|
11143
11170
|
id: "6a9b0c1d-2e3f-4867-abcd-890123456789",
|
|
11144
11171
|
name: "Jabari",
|
|
11145
11172
|
parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
|
|
11146
|
-
validUntil: null,
|
|
11147
11173
|
externalId: "yHH9Nz4rLOt"
|
|
11148
11174
|
},
|
|
11149
11175
|
{
|
|
11150
11176
|
id: "7b0c1d2e-3f4a-4978-bcde-901234567890",
|
|
11151
11177
|
name: "Kifani",
|
|
11152
11178
|
parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
|
|
11153
|
-
validUntil: null,
|
|
11154
11179
|
externalId: "eSWmXIGeu1I"
|
|
11155
11180
|
},
|
|
11156
11181
|
{
|
|
11157
11182
|
id: "8c1d2e3f-4a5b-4089-8def-012345678901",
|
|
11158
11183
|
name: "Lumela",
|
|
11159
11184
|
parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
|
|
11160
|
-
validUntil: null,
|
|
11161
11185
|
externalId: "bh0b3aI1uP3"
|
|
11162
11186
|
}
|
|
11163
11187
|
];
|
|
11164
|
-
var
|
|
11188
|
+
var V2_DEFAULT_MOCK_ADMINISTRATIVE_AREAS = MOCK_ADMINISTRATIVE_AREAS_BASE.map(withVersionFields);
|
|
11189
|
+
var MOCK_LOCATIONS_BASE = [
|
|
11165
11190
|
{
|
|
11166
11191
|
id: "6f6186ce-cd5f-4a5f-810a-2d99e7c4ba12",
|
|
11167
11192
|
name: "Central Provincial Office",
|
|
11168
11193
|
locationType: "CRVS_OFFICE",
|
|
11169
11194
|
administrativeAreaId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
|
|
11170
|
-
validUntil: null,
|
|
11171
11195
|
externalId: "Xr3Df8WpK6Ys"
|
|
11172
11196
|
},
|
|
11173
11197
|
{
|
|
11174
11198
|
id: "b1c2d3e4-f5a6-7890-bcde-f12345678901",
|
|
11175
11199
|
name: "Central Health Post",
|
|
11176
11200
|
locationType: "HEALTH_FACILITY",
|
|
11177
|
-
administrativeAreaId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c"
|
|
11178
|
-
validUntil: null
|
|
11201
|
+
administrativeAreaId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c"
|
|
11179
11202
|
},
|
|
11180
11203
|
{
|
|
11181
11204
|
id: "028d2c85-ca31-426d-b5d1-2cef545a4902",
|
|
11182
11205
|
name: "Ibombo District Office",
|
|
11183
11206
|
locationType: "CRVS_OFFICE",
|
|
11184
11207
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
11185
|
-
validUntil: null,
|
|
11186
11208
|
externalId: "Sm4Nw7GrD2Vy"
|
|
11187
11209
|
},
|
|
11188
11210
|
{
|
|
@@ -11190,7 +11212,6 @@ var V2_DEFAULT_MOCK_LOCATIONS = [
|
|
|
11190
11212
|
name: "Isamba District Office",
|
|
11191
11213
|
locationType: "CRVS_OFFICE",
|
|
11192
11214
|
administrativeAreaId: "967032fd-3f81-478a-826c-30cb8fe121bd",
|
|
11193
|
-
validUntil: null,
|
|
11194
11215
|
externalId: "Vg1Bq5XeH9Lt"
|
|
11195
11216
|
},
|
|
11196
11217
|
{
|
|
@@ -11198,7 +11219,6 @@ var V2_DEFAULT_MOCK_LOCATIONS = [
|
|
|
11198
11219
|
name: "Isango District Office",
|
|
11199
11220
|
locationType: "CRVS_OFFICE",
|
|
11200
11221
|
administrativeAreaId: "27160bbd-32d1-4625-812f-860226bfb92a",
|
|
11201
|
-
validUntil: null,
|
|
11202
11222
|
externalId: "Je7Lm2XqN9Vz"
|
|
11203
11223
|
},
|
|
11204
11224
|
{
|
|
@@ -11206,7 +11226,6 @@ var V2_DEFAULT_MOCK_LOCATIONS = [
|
|
|
11206
11226
|
name: "Sulaka Provincial Office",
|
|
11207
11227
|
locationType: "CRVS_OFFICE",
|
|
11208
11228
|
administrativeAreaId: "c599b691-fd2d-45e1-abf4-d185de727fb5",
|
|
11209
|
-
validUntil: null,
|
|
11210
11229
|
externalId: "Ht2Wp9KcX5Qv"
|
|
11211
11230
|
},
|
|
11212
11231
|
{
|
|
@@ -11214,7 +11233,6 @@ var V2_DEFAULT_MOCK_LOCATIONS = [
|
|
|
11214
11233
|
name: "Ilanga District Office",
|
|
11215
11234
|
locationType: "CRVS_OFFICE",
|
|
11216
11235
|
administrativeAreaId: "8fbd09d2-212b-47f4-beb3-5e1694931d9f",
|
|
11217
|
-
validUntil: null,
|
|
11218
11236
|
externalId: "Yp6Ds1WqN3Xz"
|
|
11219
11237
|
},
|
|
11220
11238
|
{
|
|
@@ -11222,7 +11240,6 @@ var V2_DEFAULT_MOCK_LOCATIONS = [
|
|
|
11222
11240
|
name: "Chamakubi Health Post",
|
|
11223
11241
|
locationType: "HEALTH_FACILITY",
|
|
11224
11242
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
11225
|
-
validUntil: null,
|
|
11226
11243
|
externalId: "M1nFr8LbC2Qy"
|
|
11227
11244
|
},
|
|
11228
11245
|
{
|
|
@@ -11230,7 +11247,6 @@ var V2_DEFAULT_MOCK_LOCATIONS = [
|
|
|
11230
11247
|
name: "Ibombo Rural Health Centre",
|
|
11231
11248
|
locationType: "HEALTH_FACILITY",
|
|
11232
11249
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
11233
|
-
validUntil: null,
|
|
11234
11250
|
externalId: "bT7pV6YrW0Xc"
|
|
11235
11251
|
},
|
|
11236
11252
|
{
|
|
@@ -11238,7 +11254,6 @@ var V2_DEFAULT_MOCK_LOCATIONS = [
|
|
|
11238
11254
|
name: "Chikobo Rural Health Centre",
|
|
11239
11255
|
locationType: "HEALTH_FACILITY",
|
|
11240
11256
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
11241
|
-
validUntil: null,
|
|
11242
11257
|
externalId: "zE4qPn2SgJ5d"
|
|
11243
11258
|
},
|
|
11244
11259
|
{
|
|
@@ -11246,7 +11261,6 @@ var V2_DEFAULT_MOCK_LOCATIONS = [
|
|
|
11246
11261
|
name: "Chilochabalenje Health Post",
|
|
11247
11262
|
locationType: "HEALTH_FACILITY",
|
|
11248
11263
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
11249
|
-
validUntil: null,
|
|
11250
11264
|
externalId: "H8vDs1MqR4Uf"
|
|
11251
11265
|
},
|
|
11252
11266
|
{
|
|
@@ -11254,7 +11268,6 @@ var V2_DEFAULT_MOCK_LOCATIONS = [
|
|
|
11254
11268
|
name: "Chipeso Rural Health Centre",
|
|
11255
11269
|
locationType: "HEALTH_FACILITY",
|
|
11256
11270
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
11257
|
-
validUntil: null,
|
|
11258
11271
|
externalId: "Qw3uZ9KfX6Lm"
|
|
11259
11272
|
},
|
|
11260
11273
|
{
|
|
@@ -11262,7 +11275,6 @@ var V2_DEFAULT_MOCK_LOCATIONS = [
|
|
|
11262
11275
|
name: "Chisamba Rural Health Centre",
|
|
11263
11276
|
locationType: "HEALTH_FACILITY",
|
|
11264
11277
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
11265
|
-
validUntil: null,
|
|
11266
11278
|
externalId: "Yr0pCg8LdM2s"
|
|
11267
11279
|
},
|
|
11268
11280
|
{
|
|
@@ -11270,7 +11282,6 @@ var V2_DEFAULT_MOCK_LOCATIONS = [
|
|
|
11270
11282
|
name: "Chitanda Rural Health Centre",
|
|
11271
11283
|
locationType: "HEALTH_FACILITY",
|
|
11272
11284
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
11273
|
-
validUntil: null,
|
|
11274
11285
|
externalId: "tS9gJ4PwB1Qx"
|
|
11275
11286
|
},
|
|
11276
11287
|
{
|
|
@@ -11278,7 +11289,6 @@ var V2_DEFAULT_MOCK_LOCATIONS = [
|
|
|
11278
11289
|
name: "Golden Valley Rural Health Centre",
|
|
11279
11290
|
locationType: "HEALTH_FACILITY",
|
|
11280
11291
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
11281
|
-
validUntil: null,
|
|
11282
11292
|
externalId: "Ld7Qm3XsA8Vr"
|
|
11283
11293
|
},
|
|
11284
11294
|
{
|
|
@@ -11286,7 +11296,6 @@ var V2_DEFAULT_MOCK_LOCATIONS = [
|
|
|
11286
11296
|
name: "Ipongo Rural Health Centre",
|
|
11287
11297
|
locationType: "HEALTH_FACILITY",
|
|
11288
11298
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
11289
|
-
validUntil: null,
|
|
11290
11299
|
externalId: "kF2sW9DmH0Bt"
|
|
11291
11300
|
},
|
|
11292
11301
|
{
|
|
@@ -11294,7 +11303,6 @@ var V2_DEFAULT_MOCK_LOCATIONS = [
|
|
|
11294
11303
|
name: "Itumbwe Health Post",
|
|
11295
11304
|
locationType: "HEALTH_FACILITY",
|
|
11296
11305
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
11297
|
-
validUntil: null,
|
|
11298
11306
|
externalId: "Ue5Xb3VaC7Pq"
|
|
11299
11307
|
},
|
|
11300
11308
|
{
|
|
@@ -11302,7 +11310,6 @@ var V2_DEFAULT_MOCK_LOCATIONS = [
|
|
|
11302
11310
|
name: "Kabangalala Rural Health Centre",
|
|
11303
11311
|
locationType: "HEALTH_FACILITY",
|
|
11304
11312
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
11305
|
-
validUntil: null,
|
|
11306
11313
|
externalId: "Pz8Kc1TqH6Jn"
|
|
11307
11314
|
},
|
|
11308
11315
|
// Village offices
|
|
@@ -11311,10 +11318,10 @@ var V2_DEFAULT_MOCK_LOCATIONS = [
|
|
|
11311
11318
|
name: "Klow Village Office",
|
|
11312
11319
|
locationType: "CRVS_OFFICE",
|
|
11313
11320
|
administrativeAreaId: "1d4e5f6a-7b8c-4912-8efa-345678901234",
|
|
11314
|
-
validUntil: null,
|
|
11315
11321
|
externalId: "PmAyxAJkxiJ"
|
|
11316
11322
|
}
|
|
11317
11323
|
];
|
|
11324
|
+
var V2_DEFAULT_MOCK_LOCATIONS = MOCK_LOCATIONS_BASE.map(withVersionFields);
|
|
11318
11325
|
var V2_DEFAULT_MOCK_LOCATIONS_MAP = new Map(
|
|
11319
11326
|
V2_DEFAULT_MOCK_LOCATIONS.map((l) => [l.id, l])
|
|
11320
11327
|
);
|
|
@@ -7359,21 +7359,44 @@ var LocationTypeV1 = z43.enum([
|
|
|
7359
7359
|
"CRVS_OFFICE",
|
|
7360
7360
|
"HEALTH_FACILITY"
|
|
7361
7361
|
]);
|
|
7362
|
+
var LocationStatus = z43.enum(["active", "inactive"]);
|
|
7363
|
+
var LocationVersion = z43.object({
|
|
7364
|
+
versionId: UUID,
|
|
7365
|
+
effectiveFrom: z43.iso.date(),
|
|
7366
|
+
name: z43.string(),
|
|
7367
|
+
externalId: z43.string().nullish(),
|
|
7368
|
+
status: LocationStatus
|
|
7369
|
+
});
|
|
7362
7370
|
var AdministrativeArea = z43.object({
|
|
7363
7371
|
id: UUID,
|
|
7364
7372
|
name: z43.string(),
|
|
7365
7373
|
externalId: z43.string().nullish(),
|
|
7366
7374
|
parentId: UUID.nullable(),
|
|
7367
|
-
|
|
7375
|
+
status: LocationStatus,
|
|
7376
|
+
versions: z43.array(LocationVersion)
|
|
7368
7377
|
});
|
|
7369
7378
|
var Location = z43.object({
|
|
7370
7379
|
id: UUID,
|
|
7371
7380
|
name: z43.string(),
|
|
7372
7381
|
externalId: z43.string().nullish(),
|
|
7373
7382
|
administrativeAreaId: UUID.nullable(),
|
|
7374
|
-
|
|
7383
|
+
locationType: z43.string().nullable(),
|
|
7384
|
+
status: LocationStatus,
|
|
7385
|
+
versions: z43.array(LocationVersion)
|
|
7386
|
+
});
|
|
7387
|
+
var SetLocationPayload = z43.object({
|
|
7388
|
+
id: UUID,
|
|
7389
|
+
name: z43.string(),
|
|
7390
|
+
externalId: z43.string().nullish(),
|
|
7391
|
+
administrativeAreaId: UUID.nullable(),
|
|
7375
7392
|
locationType: z43.string().nullable()
|
|
7376
7393
|
});
|
|
7394
|
+
var SetAdministrativeAreaPayload = z43.object({
|
|
7395
|
+
id: UUID,
|
|
7396
|
+
name: z43.string(),
|
|
7397
|
+
externalId: z43.string().nullish(),
|
|
7398
|
+
parentId: UUID.nullable()
|
|
7399
|
+
});
|
|
7377
7400
|
|
|
7378
7401
|
// ../commons/src/events/scopes.ts
|
|
7379
7402
|
var ACTION_SCOPE_MAP = {
|
|
@@ -7472,75 +7495,80 @@ var REJECTED_ACTIONS = [
|
|
|
7472
7495
|
var import_lodash7 = require("lodash");
|
|
7473
7496
|
|
|
7474
7497
|
// ../commons/src/events/mocks.test.utils.ts
|
|
7475
|
-
|
|
7498
|
+
function withVersionFields(entity) {
|
|
7499
|
+
return {
|
|
7500
|
+
...entity,
|
|
7501
|
+
status: "active",
|
|
7502
|
+
versions: [
|
|
7503
|
+
{
|
|
7504
|
+
versionId: entity.id,
|
|
7505
|
+
effectiveFrom: "0001-01-01",
|
|
7506
|
+
name: entity.name,
|
|
7507
|
+
externalId: entity.externalId ?? null,
|
|
7508
|
+
status: "active"
|
|
7509
|
+
}
|
|
7510
|
+
]
|
|
7511
|
+
};
|
|
7512
|
+
}
|
|
7513
|
+
var MOCK_ADMINISTRATIVE_AREAS_BASE = [
|
|
7476
7514
|
{
|
|
7477
7515
|
id: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
|
|
7478
7516
|
name: "Central",
|
|
7479
7517
|
parentId: null,
|
|
7480
|
-
validUntil: null,
|
|
7481
7518
|
externalId: "ydyJb1RAy4U1"
|
|
7482
7519
|
},
|
|
7483
7520
|
{
|
|
7484
7521
|
id: "c599b691-fd2d-45e1-abf4-d185de727fb5",
|
|
7485
7522
|
name: "Sulaka",
|
|
7486
7523
|
parentId: null,
|
|
7487
|
-
validUntil: null,
|
|
7488
7524
|
externalId: "pQ8nGxWmZ2Q3"
|
|
7489
7525
|
},
|
|
7490
7526
|
{
|
|
7491
7527
|
id: "7ef2b9c7-5e6d-49f6-ae05-656207d0fc64",
|
|
7492
7528
|
name: "Pualula",
|
|
7493
7529
|
parentId: null,
|
|
7494
|
-
validUntil: null,
|
|
7495
7530
|
externalId: "Aq91DweLmT8k"
|
|
7496
7531
|
},
|
|
7497
7532
|
{
|
|
7498
7533
|
id: "6d1a59df-988c-4021-a846-ccbc021931a7",
|
|
7499
7534
|
name: "Chuminga",
|
|
7500
7535
|
parentId: null,
|
|
7501
|
-
validUntil: null,
|
|
7502
7536
|
externalId: "Rw0fYNh2Xk9a"
|
|
7503
7537
|
},
|
|
7504
7538
|
{
|
|
7505
7539
|
id: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7506
7540
|
name: "Ibombo",
|
|
7507
7541
|
parentId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
|
|
7508
|
-
validUntil: null,
|
|
7509
7542
|
externalId: "k7DsP4vbN1Qe"
|
|
7510
7543
|
},
|
|
7511
7544
|
{
|
|
7512
7545
|
id: "27160bbd-32d1-4625-812f-860226bfb92a",
|
|
7513
7546
|
name: "Isango",
|
|
7514
7547
|
parentId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
|
|
7515
|
-
validUntil: null,
|
|
7516
7548
|
externalId: "Gm3Z9eQpHw4L"
|
|
7517
7549
|
},
|
|
7518
7550
|
{
|
|
7519
7551
|
id: "967032fd-3f81-478a-826c-30cb8fe121bd",
|
|
7520
7552
|
name: "Isamba",
|
|
7521
7553
|
parentId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
|
|
7522
|
-
validUntil: null,
|
|
7523
7554
|
externalId: "sT0xVu1KqJ7r"
|
|
7524
7555
|
},
|
|
7525
7556
|
{
|
|
7526
7557
|
id: "89a33893-b17d-481d-a26d-6461e7ac1651",
|
|
7527
7558
|
name: "Itambo",
|
|
7528
7559
|
parentId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
|
|
7529
|
-
validUntil: null,
|
|
7530
7560
|
externalId: "Nq6Bv2HpL9Te"
|
|
7531
7561
|
},
|
|
7532
7562
|
{
|
|
7533
7563
|
id: "d42ab2fe-e7ed-470e-8b31-4fb27f9b8250",
|
|
7534
7564
|
name: "Ezhi",
|
|
7535
7565
|
parentId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
|
|
7536
|
-
validUntil: null,
|
|
7537
7566
|
externalId: "xK8cQ0ZRy5Wd"
|
|
7538
7567
|
},
|
|
7539
7568
|
{
|
|
7540
7569
|
id: "8fbd09d2-212b-47f4-beb3-5e1694931d9f",
|
|
7541
7570
|
name: "Ilanga",
|
|
7542
7571
|
parentId: "c599b691-fd2d-45e1-abf4-d185de727fb5",
|
|
7543
|
-
validUntil: null,
|
|
7544
7572
|
externalId: "Cq4Jm1XvN8Ls"
|
|
7545
7573
|
},
|
|
7546
7574
|
// Villages under Ibombo (62a0ccb4-880d-4f30-8882-f256007dfff9)
|
|
@@ -7548,49 +7576,42 @@ var V2_DEFAULT_MOCK_ADMINISTRATIVE_AREAS = [
|
|
|
7548
7576
|
id: "1d4e5f6a-7b8c-4912-8efa-345678901234",
|
|
7549
7577
|
name: "Klow",
|
|
7550
7578
|
parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7551
|
-
validUntil: null,
|
|
7552
7579
|
externalId: "IkYcYBUcyY2"
|
|
7553
7580
|
},
|
|
7554
7581
|
{
|
|
7555
7582
|
id: "2e5f6a7b-8c9d-4a23-8fab-456789012345",
|
|
7556
7583
|
name: "Mbondo",
|
|
7557
7584
|
parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7558
|
-
validUntil: null,
|
|
7559
7585
|
externalId: "Qhvv5hvo3mY"
|
|
7560
7586
|
},
|
|
7561
7587
|
{
|
|
7562
7588
|
id: "3f6a7b8c-9d0e-4b34-8abc-567890123456",
|
|
7563
7589
|
name: "Ndara",
|
|
7564
7590
|
parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7565
|
-
validUntil: null,
|
|
7566
7591
|
externalId: "crXh068O9TR"
|
|
7567
7592
|
},
|
|
7568
7593
|
{
|
|
7569
7594
|
id: "4a7b8c9d-0e1f-4c45-abcd-678901234567",
|
|
7570
7595
|
name: "Olani",
|
|
7571
7596
|
parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7572
|
-
validUntil: null,
|
|
7573
7597
|
externalId: "r00It8Tvvp7"
|
|
7574
7598
|
},
|
|
7575
7599
|
{
|
|
7576
7600
|
id: "5b8c9d0e-1f2a-4d56-bcde-789012345678",
|
|
7577
7601
|
name: "Pemba",
|
|
7578
7602
|
parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7579
|
-
validUntil: null,
|
|
7580
7603
|
externalId: "ZnUWsbONIaH"
|
|
7581
7604
|
},
|
|
7582
7605
|
{
|
|
7583
7606
|
id: "6c9d0e1f-2a3b-4e67-8def-890123456789",
|
|
7584
7607
|
name: "Quanza",
|
|
7585
7608
|
parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7586
|
-
validUntil: null,
|
|
7587
7609
|
externalId: "fDZycvQTa7l"
|
|
7588
7610
|
},
|
|
7589
7611
|
{
|
|
7590
7612
|
id: "7d0e1f2a-3b4c-4f78-8efa-901234567890",
|
|
7591
7613
|
name: "Rivka",
|
|
7592
7614
|
parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7593
|
-
validUntil: null,
|
|
7594
7615
|
externalId: "KqswxCGTELa"
|
|
7595
7616
|
},
|
|
7596
7617
|
// Villages under Isamba (967032fd-3f81-478a-826c-30cb8fe121bd)
|
|
@@ -7598,35 +7619,30 @@ var V2_DEFAULT_MOCK_ADMINISTRATIVE_AREAS = [
|
|
|
7598
7619
|
id: "8e1f2a3b-4c5d-4089-8fab-012345678901",
|
|
7599
7620
|
name: "Mbula",
|
|
7600
7621
|
parentId: "967032fd-3f81-478a-826c-30cb8fe121bd",
|
|
7601
|
-
validUntil: null,
|
|
7602
7622
|
externalId: "osEbKjRc9Kg"
|
|
7603
7623
|
},
|
|
7604
7624
|
{
|
|
7605
7625
|
id: "9f2a3b4c-5d6e-4190-8abf-123456789012",
|
|
7606
7626
|
name: "Ndoki",
|
|
7607
7627
|
parentId: "967032fd-3f81-478a-826c-30cb8fe121bd",
|
|
7608
|
-
validUntil: null,
|
|
7609
7628
|
externalId: "aq4daBUAGr3"
|
|
7610
7629
|
},
|
|
7611
7630
|
{
|
|
7612
7631
|
id: "0a3b4c5d-6e7f-4201-abcd-234567890123",
|
|
7613
7632
|
name: "Tsanga",
|
|
7614
7633
|
parentId: "967032fd-3f81-478a-826c-30cb8fe121bd",
|
|
7615
|
-
validUntil: null,
|
|
7616
7634
|
externalId: "cqis6Y8trbJ"
|
|
7617
7635
|
},
|
|
7618
7636
|
{
|
|
7619
7637
|
id: "1b4c5d6e-7f8a-4312-bcde-345678901234",
|
|
7620
7638
|
name: "Waziri",
|
|
7621
7639
|
parentId: "967032fd-3f81-478a-826c-30cb8fe121bd",
|
|
7622
|
-
validUntil: null,
|
|
7623
7640
|
externalId: "LMijHPyyx6d"
|
|
7624
7641
|
},
|
|
7625
7642
|
{
|
|
7626
7643
|
id: "2c5d6e7f-8a9b-4423-8def-456789012345",
|
|
7627
7644
|
name: "Zimbi",
|
|
7628
7645
|
parentId: "967032fd-3f81-478a-826c-30cb8fe121bd",
|
|
7629
|
-
validUntil: null,
|
|
7630
7646
|
externalId: "pcQYbPuKGZ7"
|
|
7631
7647
|
},
|
|
7632
7648
|
// Villages under Itambo (89a33893-b17d-481d-a26d-6461e7ac1651)
|
|
@@ -7634,67 +7650,59 @@ var V2_DEFAULT_MOCK_ADMINISTRATIVE_AREAS = [
|
|
|
7634
7650
|
id: "3d6e7f8a-9b0c-4534-8efa-567890123456",
|
|
7635
7651
|
name: "Felani",
|
|
7636
7652
|
parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
|
|
7637
|
-
validUntil: null,
|
|
7638
7653
|
externalId: "gSqpoCGdMXp"
|
|
7639
7654
|
},
|
|
7640
7655
|
{
|
|
7641
7656
|
id: "4e7f8a9b-0c1d-4645-8fab-678901234567",
|
|
7642
7657
|
name: "Goroma",
|
|
7643
7658
|
parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
|
|
7644
|
-
validUntil: null,
|
|
7645
7659
|
externalId: "KvAAIaNqVrp"
|
|
7646
7660
|
},
|
|
7647
7661
|
{
|
|
7648
7662
|
id: "5f8a9b0c-1d2e-4756-8abc-789012345678",
|
|
7649
7663
|
name: "Halifu",
|
|
7650
7664
|
parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
|
|
7651
|
-
validUntil: null,
|
|
7652
7665
|
externalId: "qe4UnEVt1hv"
|
|
7653
7666
|
},
|
|
7654
7667
|
{
|
|
7655
7668
|
id: "6a9b0c1d-2e3f-4867-abcd-890123456789",
|
|
7656
7669
|
name: "Jabari",
|
|
7657
7670
|
parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
|
|
7658
|
-
validUntil: null,
|
|
7659
7671
|
externalId: "yHH9Nz4rLOt"
|
|
7660
7672
|
},
|
|
7661
7673
|
{
|
|
7662
7674
|
id: "7b0c1d2e-3f4a-4978-bcde-901234567890",
|
|
7663
7675
|
name: "Kifani",
|
|
7664
7676
|
parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
|
|
7665
|
-
validUntil: null,
|
|
7666
7677
|
externalId: "eSWmXIGeu1I"
|
|
7667
7678
|
},
|
|
7668
7679
|
{
|
|
7669
7680
|
id: "8c1d2e3f-4a5b-4089-8def-012345678901",
|
|
7670
7681
|
name: "Lumela",
|
|
7671
7682
|
parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
|
|
7672
|
-
validUntil: null,
|
|
7673
7683
|
externalId: "bh0b3aI1uP3"
|
|
7674
7684
|
}
|
|
7675
7685
|
];
|
|
7676
|
-
var
|
|
7686
|
+
var V2_DEFAULT_MOCK_ADMINISTRATIVE_AREAS = MOCK_ADMINISTRATIVE_AREAS_BASE.map(withVersionFields);
|
|
7687
|
+
var MOCK_LOCATIONS_BASE = [
|
|
7677
7688
|
{
|
|
7678
7689
|
id: "6f6186ce-cd5f-4a5f-810a-2d99e7c4ba12",
|
|
7679
7690
|
name: "Central Provincial Office",
|
|
7680
7691
|
locationType: "CRVS_OFFICE",
|
|
7681
7692
|
administrativeAreaId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
|
|
7682
|
-
validUntil: null,
|
|
7683
7693
|
externalId: "Xr3Df8WpK6Ys"
|
|
7684
7694
|
},
|
|
7685
7695
|
{
|
|
7686
7696
|
id: "b1c2d3e4-f5a6-7890-bcde-f12345678901",
|
|
7687
7697
|
name: "Central Health Post",
|
|
7688
7698
|
locationType: "HEALTH_FACILITY",
|
|
7689
|
-
administrativeAreaId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c"
|
|
7690
|
-
validUntil: null
|
|
7699
|
+
administrativeAreaId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c"
|
|
7691
7700
|
},
|
|
7692
7701
|
{
|
|
7693
7702
|
id: "028d2c85-ca31-426d-b5d1-2cef545a4902",
|
|
7694
7703
|
name: "Ibombo District Office",
|
|
7695
7704
|
locationType: "CRVS_OFFICE",
|
|
7696
7705
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7697
|
-
validUntil: null,
|
|
7698
7706
|
externalId: "Sm4Nw7GrD2Vy"
|
|
7699
7707
|
},
|
|
7700
7708
|
{
|
|
@@ -7702,7 +7710,6 @@ var V2_DEFAULT_MOCK_LOCATIONS = [
|
|
|
7702
7710
|
name: "Isamba District Office",
|
|
7703
7711
|
locationType: "CRVS_OFFICE",
|
|
7704
7712
|
administrativeAreaId: "967032fd-3f81-478a-826c-30cb8fe121bd",
|
|
7705
|
-
validUntil: null,
|
|
7706
7713
|
externalId: "Vg1Bq5XeH9Lt"
|
|
7707
7714
|
},
|
|
7708
7715
|
{
|
|
@@ -7710,7 +7717,6 @@ var V2_DEFAULT_MOCK_LOCATIONS = [
|
|
|
7710
7717
|
name: "Isango District Office",
|
|
7711
7718
|
locationType: "CRVS_OFFICE",
|
|
7712
7719
|
administrativeAreaId: "27160bbd-32d1-4625-812f-860226bfb92a",
|
|
7713
|
-
validUntil: null,
|
|
7714
7720
|
externalId: "Je7Lm2XqN9Vz"
|
|
7715
7721
|
},
|
|
7716
7722
|
{
|
|
@@ -7718,7 +7724,6 @@ var V2_DEFAULT_MOCK_LOCATIONS = [
|
|
|
7718
7724
|
name: "Sulaka Provincial Office",
|
|
7719
7725
|
locationType: "CRVS_OFFICE",
|
|
7720
7726
|
administrativeAreaId: "c599b691-fd2d-45e1-abf4-d185de727fb5",
|
|
7721
|
-
validUntil: null,
|
|
7722
7727
|
externalId: "Ht2Wp9KcX5Qv"
|
|
7723
7728
|
},
|
|
7724
7729
|
{
|
|
@@ -7726,7 +7731,6 @@ var V2_DEFAULT_MOCK_LOCATIONS = [
|
|
|
7726
7731
|
name: "Ilanga District Office",
|
|
7727
7732
|
locationType: "CRVS_OFFICE",
|
|
7728
7733
|
administrativeAreaId: "8fbd09d2-212b-47f4-beb3-5e1694931d9f",
|
|
7729
|
-
validUntil: null,
|
|
7730
7734
|
externalId: "Yp6Ds1WqN3Xz"
|
|
7731
7735
|
},
|
|
7732
7736
|
{
|
|
@@ -7734,7 +7738,6 @@ var V2_DEFAULT_MOCK_LOCATIONS = [
|
|
|
7734
7738
|
name: "Chamakubi Health Post",
|
|
7735
7739
|
locationType: "HEALTH_FACILITY",
|
|
7736
7740
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7737
|
-
validUntil: null,
|
|
7738
7741
|
externalId: "M1nFr8LbC2Qy"
|
|
7739
7742
|
},
|
|
7740
7743
|
{
|
|
@@ -7742,7 +7745,6 @@ var V2_DEFAULT_MOCK_LOCATIONS = [
|
|
|
7742
7745
|
name: "Ibombo Rural Health Centre",
|
|
7743
7746
|
locationType: "HEALTH_FACILITY",
|
|
7744
7747
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7745
|
-
validUntil: null,
|
|
7746
7748
|
externalId: "bT7pV6YrW0Xc"
|
|
7747
7749
|
},
|
|
7748
7750
|
{
|
|
@@ -7750,7 +7752,6 @@ var V2_DEFAULT_MOCK_LOCATIONS = [
|
|
|
7750
7752
|
name: "Chikobo Rural Health Centre",
|
|
7751
7753
|
locationType: "HEALTH_FACILITY",
|
|
7752
7754
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7753
|
-
validUntil: null,
|
|
7754
7755
|
externalId: "zE4qPn2SgJ5d"
|
|
7755
7756
|
},
|
|
7756
7757
|
{
|
|
@@ -7758,7 +7759,6 @@ var V2_DEFAULT_MOCK_LOCATIONS = [
|
|
|
7758
7759
|
name: "Chilochabalenje Health Post",
|
|
7759
7760
|
locationType: "HEALTH_FACILITY",
|
|
7760
7761
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7761
|
-
validUntil: null,
|
|
7762
7762
|
externalId: "H8vDs1MqR4Uf"
|
|
7763
7763
|
},
|
|
7764
7764
|
{
|
|
@@ -7766,7 +7766,6 @@ var V2_DEFAULT_MOCK_LOCATIONS = [
|
|
|
7766
7766
|
name: "Chipeso Rural Health Centre",
|
|
7767
7767
|
locationType: "HEALTH_FACILITY",
|
|
7768
7768
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7769
|
-
validUntil: null,
|
|
7770
7769
|
externalId: "Qw3uZ9KfX6Lm"
|
|
7771
7770
|
},
|
|
7772
7771
|
{
|
|
@@ -7774,7 +7773,6 @@ var V2_DEFAULT_MOCK_LOCATIONS = [
|
|
|
7774
7773
|
name: "Chisamba Rural Health Centre",
|
|
7775
7774
|
locationType: "HEALTH_FACILITY",
|
|
7776
7775
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7777
|
-
validUntil: null,
|
|
7778
7776
|
externalId: "Yr0pCg8LdM2s"
|
|
7779
7777
|
},
|
|
7780
7778
|
{
|
|
@@ -7782,7 +7780,6 @@ var V2_DEFAULT_MOCK_LOCATIONS = [
|
|
|
7782
7780
|
name: "Chitanda Rural Health Centre",
|
|
7783
7781
|
locationType: "HEALTH_FACILITY",
|
|
7784
7782
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7785
|
-
validUntil: null,
|
|
7786
7783
|
externalId: "tS9gJ4PwB1Qx"
|
|
7787
7784
|
},
|
|
7788
7785
|
{
|
|
@@ -7790,7 +7787,6 @@ var V2_DEFAULT_MOCK_LOCATIONS = [
|
|
|
7790
7787
|
name: "Golden Valley Rural Health Centre",
|
|
7791
7788
|
locationType: "HEALTH_FACILITY",
|
|
7792
7789
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7793
|
-
validUntil: null,
|
|
7794
7790
|
externalId: "Ld7Qm3XsA8Vr"
|
|
7795
7791
|
},
|
|
7796
7792
|
{
|
|
@@ -7798,7 +7794,6 @@ var V2_DEFAULT_MOCK_LOCATIONS = [
|
|
|
7798
7794
|
name: "Ipongo Rural Health Centre",
|
|
7799
7795
|
locationType: "HEALTH_FACILITY",
|
|
7800
7796
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7801
|
-
validUntil: null,
|
|
7802
7797
|
externalId: "kF2sW9DmH0Bt"
|
|
7803
7798
|
},
|
|
7804
7799
|
{
|
|
@@ -7806,7 +7801,6 @@ var V2_DEFAULT_MOCK_LOCATIONS = [
|
|
|
7806
7801
|
name: "Itumbwe Health Post",
|
|
7807
7802
|
locationType: "HEALTH_FACILITY",
|
|
7808
7803
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7809
|
-
validUntil: null,
|
|
7810
7804
|
externalId: "Ue5Xb3VaC7Pq"
|
|
7811
7805
|
},
|
|
7812
7806
|
{
|
|
@@ -7814,7 +7808,6 @@ var V2_DEFAULT_MOCK_LOCATIONS = [
|
|
|
7814
7808
|
name: "Kabangalala Rural Health Centre",
|
|
7815
7809
|
locationType: "HEALTH_FACILITY",
|
|
7816
7810
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7817
|
-
validUntil: null,
|
|
7818
7811
|
externalId: "Pz8Kc1TqH6Jn"
|
|
7819
7812
|
},
|
|
7820
7813
|
// Village offices
|
|
@@ -7823,10 +7816,10 @@ var V2_DEFAULT_MOCK_LOCATIONS = [
|
|
|
7823
7816
|
name: "Klow Village Office",
|
|
7824
7817
|
locationType: "CRVS_OFFICE",
|
|
7825
7818
|
administrativeAreaId: "1d4e5f6a-7b8c-4912-8efa-345678901234",
|
|
7826
|
-
validUntil: null,
|
|
7827
7819
|
externalId: "PmAyxAJkxiJ"
|
|
7828
7820
|
}
|
|
7829
7821
|
];
|
|
7822
|
+
var V2_DEFAULT_MOCK_LOCATIONS = MOCK_LOCATIONS_BASE.map(withVersionFields);
|
|
7830
7823
|
var V2_DEFAULT_MOCK_LOCATIONS_MAP = new Map(
|
|
7831
7824
|
V2_DEFAULT_MOCK_LOCATIONS.map((l) => [l.id, l])
|
|
7832
7825
|
);
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opencrvs/toolkit",
|
|
3
|
-
"version": "2.1.0-rc.
|
|
3
|
+
"version": "2.1.0-rc.6d019e4",
|
|
4
4
|
"description": "OpenCRVS toolkit for building country configurations",
|
|
5
5
|
"license": "MPL-2.0",
|
|
6
6
|
"bin": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"scripts": {
|
|
20
20
|
"build": "./build.sh",
|
|
21
|
-
"build:all": "lerna run build --include-dependencies --scope @opencrvs/toolkit
|
|
21
|
+
"build:all": "lerna run build --include-dependencies --scope @opencrvs/toolkit"
|
|
22
22
|
},
|
|
23
23
|
"repository": {
|
|
24
24
|
"type": "git",
|
|
Binary file
|