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