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