@opencrvs/toolkit 2.1.0-rc.5617d8e → 2.1.0-rc.573b41e
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/application-config/index.js +1 -2
- package/dist/commons/api/router.d.ts +1645 -1631
- package/dist/commons/application-config/index.d.ts +6 -6
- package/dist/commons/conditionals/conditionals.d.ts +323 -32
- package/dist/commons/events/ActionConfig.d.ts +105 -105
- package/dist/commons/events/ActionDocument.d.ts +119 -119
- package/dist/commons/events/ActionInput.d.ts +6 -0
- package/dist/commons/events/ActionType.d.ts +62 -62
- package/dist/commons/events/AdvancedSearchConfig.d.ts +507 -507
- package/dist/commons/events/AuditLog.d.ts +43 -43
- package/dist/commons/events/CompositeFieldValue.d.ts +4 -4
- package/dist/commons/events/Conditional.d.ts +3 -3
- package/dist/commons/events/CountryConfigQueryInput.d.ts +590 -590
- package/dist/commons/events/Draft.d.ts +37 -37
- package/dist/commons/events/DynamicFieldValue.d.ts +9 -9
- package/dist/commons/events/EventConfig.d.ts +5 -5
- package/dist/commons/events/EventDocument.d.ts +48 -48
- package/dist/commons/events/EventIndex.d.ts +62 -62
- package/dist/commons/events/EventMetadata.d.ts +40 -40
- package/dist/commons/events/FieldConfig.d.ts +337 -337
- package/dist/commons/events/FieldType.d.ts +51 -51
- package/dist/commons/events/FieldTypeMapping.d.ts +100 -100
- package/dist/commons/events/FieldValue.d.ts +12 -12
- package/dist/commons/events/Flag.d.ts +15 -15
- package/dist/commons/events/TemplateConfig.d.ts +1 -1
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +40 -40
- package/dist/commons/events/WorkqueueConfig.d.ts +820 -820
- package/dist/commons/events/deduplication.d.ts +1 -1
- package/dist/commons/events/event.d.ts +2 -2
- package/dist/commons/events/field.d.ts +198 -69
- package/dist/commons/events/locations.d.ts +6 -99
- package/dist/commons/events/mocks.test.utils.d.ts +4 -20
- package/dist/commons/events/scopes.d.ts +4 -4
- package/dist/commons/events/state/index.d.ts +17 -17
- package/dist/commons/events/state/utils.d.ts +7 -7
- package/dist/commons/events/test.utils.d.ts +43 -40
- package/dist/commons/events/utils.d.ts +114 -114
- package/dist/commons/notification/UserNotifications.d.ts +10 -10
- package/dist/environment/derived-variables.d.ts +119 -119
- package/dist/environment/derived-variables.d.ts.map +1 -1
- package/dist/environment/logger.d.ts +12 -3
- package/dist/environment/logger.d.ts.map +1 -1
- package/dist/environment/manage-users.js +7 -17
- package/dist/environment/questions.d.ts +74 -75
- package/dist/environment/questions.d.ts.map +1 -1
- package/dist/environment/setup-environment.js +14 -8
- package/dist/environment/swarm-to-k8s.js +7 -17
- package/dist/environment/update-workflows.js +7 -17
- package/dist/environment/users.js +7 -17
- package/dist/environment/utils.d.ts +1 -1
- package/dist/environment/utils.js +7 -17
- package/dist/events/deduplication.d.ts +1 -1
- package/dist/events/index.js +58 -65
- package/dist/migrations/v2.0/convert-config-files-to-ts.js +7 -17
- package/dist/migrations/v2.0/migrate-application-config-url.js +3 -4
- package/dist/migrations/v2.0/remove-hearth-migrations.js +7 -17
- package/dist/notification/index.js +57 -51
- package/dist/scopes/index.d.ts +146 -146
- package/opencrvs-toolkit-2.1.0-rc.573b41e.tgz +0 -0
- package/package.json +4 -3
- package/tsconfig.tsbuildinfo +1 -1
- package/opencrvs-toolkit-2.1.0-rc.5617d8e.tgz +0 -0
|
@@ -92,10 +92,9 @@ const FUNCTION_LIKE_KINDS = [
|
|
|
92
92
|
* Falls back to `<anonymous>` when nothing useful can be derived.
|
|
93
93
|
*/
|
|
94
94
|
function describeFunction(node) {
|
|
95
|
-
var _a;
|
|
96
|
-
var _b, _c;
|
|
95
|
+
var _a, _b, _c;
|
|
97
96
|
if (ts_morph_1.Node.isFunctionDeclaration(node) || ts_morph_1.Node.isMethodDeclaration(node)) {
|
|
98
|
-
return (
|
|
97
|
+
return (_a = node.getName()) !== null && _a !== void 0 ? _a : '<anonymous>';
|
|
99
98
|
}
|
|
100
99
|
// FunctionExpression / ArrowFunction: try to pick up the assignment target.
|
|
101
100
|
const parent = node.getParent();
|
|
@@ -107,7 +106,7 @@ function describeFunction(node) {
|
|
|
107
106
|
}
|
|
108
107
|
if (ts_morph_1.Node.isFunctionExpression(node) &&
|
|
109
108
|
node.getNameNode() !== undefined) {
|
|
110
|
-
return (_c = (
|
|
109
|
+
return (_c = (_b = node.getNameNode()) === null || _b === void 0 ? void 0 : _b.getText()) !== null && _c !== void 0 ? _c : '<anonymous>';
|
|
111
110
|
}
|
|
112
111
|
return '<anonymous>';
|
|
113
112
|
}
|
|
@@ -25,23 +25,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
25
25
|
}) : function(o, v) {
|
|
26
26
|
o["default"] = v;
|
|
27
27
|
});
|
|
28
|
-
var __importStar = (this && this.__importStar) ||
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
return ownKeys(o);
|
|
36
|
-
};
|
|
37
|
-
return function (mod) {
|
|
38
|
-
if (mod && mod.__esModule) return mod;
|
|
39
|
-
var result = {};
|
|
40
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
41
|
-
__setModuleDefault(result, mod);
|
|
42
|
-
return result;
|
|
43
|
-
};
|
|
44
|
-
})();
|
|
28
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
45
35
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
46
36
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
47
37
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -1216,10 +1216,9 @@ var NotifiedAction = ActionBase.extend(
|
|
|
1216
1216
|
var EditAction = ActionBase.extend(
|
|
1217
1217
|
z14.object({
|
|
1218
1218
|
type: z14.literal(ActionType.EDIT),
|
|
1219
|
-
/** @deprecated New Edit-actions should no longer contain content. This is kept for old 2.0 edits. */
|
|
1220
1219
|
content: z14.object({
|
|
1221
1220
|
comment: z14.string().describe("Comment for the edit action.").optional()
|
|
1222
|
-
})
|
|
1221
|
+
})
|
|
1223
1222
|
}).shape
|
|
1224
1223
|
);
|
|
1225
1224
|
var PrintContent = z14.object({
|
|
@@ -4653,7 +4652,10 @@ var DeclareActionInput = BaseActionInput.extend(
|
|
|
4653
4652
|
);
|
|
4654
4653
|
var EditActionInput = BaseActionInput.extend(
|
|
4655
4654
|
z38.object({
|
|
4656
|
-
type: z38.literal(ActionType.EDIT).default(ActionType.EDIT)
|
|
4655
|
+
type: z38.literal(ActionType.EDIT).default(ActionType.EDIT),
|
|
4656
|
+
content: z38.object({
|
|
4657
|
+
comment: z38.string().describe("Comment for the edit action.").optional()
|
|
4658
|
+
})
|
|
4657
4659
|
}).shape
|
|
4658
4660
|
);
|
|
4659
4661
|
var PrintCertificateActionInput = BaseActionInput.extend(
|
|
@@ -7359,46 +7361,21 @@ var LocationTypeV1 = z43.enum([
|
|
|
7359
7361
|
"CRVS_OFFICE",
|
|
7360
7362
|
"HEALTH_FACILITY"
|
|
7361
7363
|
]);
|
|
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
7364
|
var AdministrativeArea = z43.object({
|
|
7371
7365
|
id: UUID,
|
|
7372
7366
|
name: z43.string(),
|
|
7373
7367
|
externalId: z43.string().nullish(),
|
|
7374
7368
|
parentId: UUID.nullable(),
|
|
7375
|
-
|
|
7376
|
-
effectiveFrom: z43.iso.date(),
|
|
7377
|
-
versions: z43.array(LocationVersion)
|
|
7369
|
+
validUntil: z43.iso.datetime().nullable()
|
|
7378
7370
|
});
|
|
7379
7371
|
var Location = z43.object({
|
|
7380
7372
|
id: UUID,
|
|
7381
7373
|
name: z43.string(),
|
|
7382
7374
|
externalId: z43.string().nullish(),
|
|
7383
7375
|
administrativeAreaId: UUID.nullable(),
|
|
7384
|
-
|
|
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(),
|
|
7376
|
+
validUntil: z43.iso.datetime().nullable(),
|
|
7394
7377
|
locationType: z43.string().nullable()
|
|
7395
7378
|
});
|
|
7396
|
-
var SetAdministrativeAreaPayload = z43.object({
|
|
7397
|
-
id: UUID,
|
|
7398
|
-
name: z43.string(),
|
|
7399
|
-
externalId: z43.string().nullish(),
|
|
7400
|
-
parentId: UUID.nullable()
|
|
7401
|
-
});
|
|
7402
7379
|
|
|
7403
7380
|
// ../commons/src/events/scopes.ts
|
|
7404
7381
|
var ACTION_SCOPE_MAP = {
|
|
@@ -7497,81 +7474,75 @@ var REJECTED_ACTIONS = [
|
|
|
7497
7474
|
var import_lodash7 = require("lodash");
|
|
7498
7475
|
|
|
7499
7476
|
// ../commons/src/events/mocks.test.utils.ts
|
|
7500
|
-
|
|
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 = [
|
|
7477
|
+
var V2_DEFAULT_MOCK_ADMINISTRATIVE_AREAS = [
|
|
7517
7478
|
{
|
|
7518
7479
|
id: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
|
|
7519
7480
|
name: "Central",
|
|
7520
7481
|
parentId: null,
|
|
7482
|
+
validUntil: null,
|
|
7521
7483
|
externalId: "ydyJb1RAy4U1"
|
|
7522
7484
|
},
|
|
7523
7485
|
{
|
|
7524
7486
|
id: "c599b691-fd2d-45e1-abf4-d185de727fb5",
|
|
7525
7487
|
name: "Sulaka",
|
|
7526
7488
|
parentId: null,
|
|
7489
|
+
validUntil: null,
|
|
7527
7490
|
externalId: "pQ8nGxWmZ2Q3"
|
|
7528
7491
|
},
|
|
7529
7492
|
{
|
|
7530
7493
|
id: "7ef2b9c7-5e6d-49f6-ae05-656207d0fc64",
|
|
7531
7494
|
name: "Pualula",
|
|
7532
7495
|
parentId: null,
|
|
7496
|
+
validUntil: null,
|
|
7533
7497
|
externalId: "Aq91DweLmT8k"
|
|
7534
7498
|
},
|
|
7535
7499
|
{
|
|
7536
7500
|
id: "6d1a59df-988c-4021-a846-ccbc021931a7",
|
|
7537
7501
|
name: "Chuminga",
|
|
7538
7502
|
parentId: null,
|
|
7503
|
+
validUntil: null,
|
|
7539
7504
|
externalId: "Rw0fYNh2Xk9a"
|
|
7540
7505
|
},
|
|
7541
7506
|
{
|
|
7542
7507
|
id: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7543
7508
|
name: "Ibombo",
|
|
7544
7509
|
parentId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
|
|
7510
|
+
validUntil: null,
|
|
7545
7511
|
externalId: "k7DsP4vbN1Qe"
|
|
7546
7512
|
},
|
|
7547
7513
|
{
|
|
7548
7514
|
id: "27160bbd-32d1-4625-812f-860226bfb92a",
|
|
7549
7515
|
name: "Isango",
|
|
7550
7516
|
parentId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
|
|
7517
|
+
validUntil: null,
|
|
7551
7518
|
externalId: "Gm3Z9eQpHw4L"
|
|
7552
7519
|
},
|
|
7553
7520
|
{
|
|
7554
7521
|
id: "967032fd-3f81-478a-826c-30cb8fe121bd",
|
|
7555
7522
|
name: "Isamba",
|
|
7556
7523
|
parentId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
|
|
7524
|
+
validUntil: null,
|
|
7557
7525
|
externalId: "sT0xVu1KqJ7r"
|
|
7558
7526
|
},
|
|
7559
7527
|
{
|
|
7560
7528
|
id: "89a33893-b17d-481d-a26d-6461e7ac1651",
|
|
7561
7529
|
name: "Itambo",
|
|
7562
7530
|
parentId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
|
|
7531
|
+
validUntil: null,
|
|
7563
7532
|
externalId: "Nq6Bv2HpL9Te"
|
|
7564
7533
|
},
|
|
7565
7534
|
{
|
|
7566
7535
|
id: "d42ab2fe-e7ed-470e-8b31-4fb27f9b8250",
|
|
7567
7536
|
name: "Ezhi",
|
|
7568
7537
|
parentId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
|
|
7538
|
+
validUntil: null,
|
|
7569
7539
|
externalId: "xK8cQ0ZRy5Wd"
|
|
7570
7540
|
},
|
|
7571
7541
|
{
|
|
7572
7542
|
id: "8fbd09d2-212b-47f4-beb3-5e1694931d9f",
|
|
7573
7543
|
name: "Ilanga",
|
|
7574
7544
|
parentId: "c599b691-fd2d-45e1-abf4-d185de727fb5",
|
|
7545
|
+
validUntil: null,
|
|
7575
7546
|
externalId: "Cq4Jm1XvN8Ls"
|
|
7576
7547
|
},
|
|
7577
7548
|
// Villages under Ibombo (62a0ccb4-880d-4f30-8882-f256007dfff9)
|
|
@@ -7579,42 +7550,49 @@ var MOCK_ADMINISTRATIVE_AREAS_BASE = [
|
|
|
7579
7550
|
id: "1d4e5f6a-7b8c-4912-8efa-345678901234",
|
|
7580
7551
|
name: "Klow",
|
|
7581
7552
|
parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7553
|
+
validUntil: null,
|
|
7582
7554
|
externalId: "IkYcYBUcyY2"
|
|
7583
7555
|
},
|
|
7584
7556
|
{
|
|
7585
7557
|
id: "2e5f6a7b-8c9d-4a23-8fab-456789012345",
|
|
7586
7558
|
name: "Mbondo",
|
|
7587
7559
|
parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7560
|
+
validUntil: null,
|
|
7588
7561
|
externalId: "Qhvv5hvo3mY"
|
|
7589
7562
|
},
|
|
7590
7563
|
{
|
|
7591
7564
|
id: "3f6a7b8c-9d0e-4b34-8abc-567890123456",
|
|
7592
7565
|
name: "Ndara",
|
|
7593
7566
|
parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7567
|
+
validUntil: null,
|
|
7594
7568
|
externalId: "crXh068O9TR"
|
|
7595
7569
|
},
|
|
7596
7570
|
{
|
|
7597
7571
|
id: "4a7b8c9d-0e1f-4c45-abcd-678901234567",
|
|
7598
7572
|
name: "Olani",
|
|
7599
7573
|
parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7574
|
+
validUntil: null,
|
|
7600
7575
|
externalId: "r00It8Tvvp7"
|
|
7601
7576
|
},
|
|
7602
7577
|
{
|
|
7603
7578
|
id: "5b8c9d0e-1f2a-4d56-bcde-789012345678",
|
|
7604
7579
|
name: "Pemba",
|
|
7605
7580
|
parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7581
|
+
validUntil: null,
|
|
7606
7582
|
externalId: "ZnUWsbONIaH"
|
|
7607
7583
|
},
|
|
7608
7584
|
{
|
|
7609
7585
|
id: "6c9d0e1f-2a3b-4e67-8def-890123456789",
|
|
7610
7586
|
name: "Quanza",
|
|
7611
7587
|
parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7588
|
+
validUntil: null,
|
|
7612
7589
|
externalId: "fDZycvQTa7l"
|
|
7613
7590
|
},
|
|
7614
7591
|
{
|
|
7615
7592
|
id: "7d0e1f2a-3b4c-4f78-8efa-901234567890",
|
|
7616
7593
|
name: "Rivka",
|
|
7617
7594
|
parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7595
|
+
validUntil: null,
|
|
7618
7596
|
externalId: "KqswxCGTELa"
|
|
7619
7597
|
},
|
|
7620
7598
|
// Villages under Isamba (967032fd-3f81-478a-826c-30cb8fe121bd)
|
|
@@ -7622,30 +7600,35 @@ var MOCK_ADMINISTRATIVE_AREAS_BASE = [
|
|
|
7622
7600
|
id: "8e1f2a3b-4c5d-4089-8fab-012345678901",
|
|
7623
7601
|
name: "Mbula",
|
|
7624
7602
|
parentId: "967032fd-3f81-478a-826c-30cb8fe121bd",
|
|
7603
|
+
validUntil: null,
|
|
7625
7604
|
externalId: "osEbKjRc9Kg"
|
|
7626
7605
|
},
|
|
7627
7606
|
{
|
|
7628
7607
|
id: "9f2a3b4c-5d6e-4190-8abf-123456789012",
|
|
7629
7608
|
name: "Ndoki",
|
|
7630
7609
|
parentId: "967032fd-3f81-478a-826c-30cb8fe121bd",
|
|
7610
|
+
validUntil: null,
|
|
7631
7611
|
externalId: "aq4daBUAGr3"
|
|
7632
7612
|
},
|
|
7633
7613
|
{
|
|
7634
7614
|
id: "0a3b4c5d-6e7f-4201-abcd-234567890123",
|
|
7635
7615
|
name: "Tsanga",
|
|
7636
7616
|
parentId: "967032fd-3f81-478a-826c-30cb8fe121bd",
|
|
7617
|
+
validUntil: null,
|
|
7637
7618
|
externalId: "cqis6Y8trbJ"
|
|
7638
7619
|
},
|
|
7639
7620
|
{
|
|
7640
7621
|
id: "1b4c5d6e-7f8a-4312-bcde-345678901234",
|
|
7641
7622
|
name: "Waziri",
|
|
7642
7623
|
parentId: "967032fd-3f81-478a-826c-30cb8fe121bd",
|
|
7624
|
+
validUntil: null,
|
|
7643
7625
|
externalId: "LMijHPyyx6d"
|
|
7644
7626
|
},
|
|
7645
7627
|
{
|
|
7646
7628
|
id: "2c5d6e7f-8a9b-4423-8def-456789012345",
|
|
7647
7629
|
name: "Zimbi",
|
|
7648
7630
|
parentId: "967032fd-3f81-478a-826c-30cb8fe121bd",
|
|
7631
|
+
validUntil: null,
|
|
7649
7632
|
externalId: "pcQYbPuKGZ7"
|
|
7650
7633
|
},
|
|
7651
7634
|
// Villages under Itambo (89a33893-b17d-481d-a26d-6461e7ac1651)
|
|
@@ -7653,59 +7636,67 @@ var MOCK_ADMINISTRATIVE_AREAS_BASE = [
|
|
|
7653
7636
|
id: "3d6e7f8a-9b0c-4534-8efa-567890123456",
|
|
7654
7637
|
name: "Felani",
|
|
7655
7638
|
parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
|
|
7639
|
+
validUntil: null,
|
|
7656
7640
|
externalId: "gSqpoCGdMXp"
|
|
7657
7641
|
},
|
|
7658
7642
|
{
|
|
7659
7643
|
id: "4e7f8a9b-0c1d-4645-8fab-678901234567",
|
|
7660
7644
|
name: "Goroma",
|
|
7661
7645
|
parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
|
|
7646
|
+
validUntil: null,
|
|
7662
7647
|
externalId: "KvAAIaNqVrp"
|
|
7663
7648
|
},
|
|
7664
7649
|
{
|
|
7665
7650
|
id: "5f8a9b0c-1d2e-4756-8abc-789012345678",
|
|
7666
7651
|
name: "Halifu",
|
|
7667
7652
|
parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
|
|
7653
|
+
validUntil: null,
|
|
7668
7654
|
externalId: "qe4UnEVt1hv"
|
|
7669
7655
|
},
|
|
7670
7656
|
{
|
|
7671
7657
|
id: "6a9b0c1d-2e3f-4867-abcd-890123456789",
|
|
7672
7658
|
name: "Jabari",
|
|
7673
7659
|
parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
|
|
7660
|
+
validUntil: null,
|
|
7674
7661
|
externalId: "yHH9Nz4rLOt"
|
|
7675
7662
|
},
|
|
7676
7663
|
{
|
|
7677
7664
|
id: "7b0c1d2e-3f4a-4978-bcde-901234567890",
|
|
7678
7665
|
name: "Kifani",
|
|
7679
7666
|
parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
|
|
7667
|
+
validUntil: null,
|
|
7680
7668
|
externalId: "eSWmXIGeu1I"
|
|
7681
7669
|
},
|
|
7682
7670
|
{
|
|
7683
7671
|
id: "8c1d2e3f-4a5b-4089-8def-012345678901",
|
|
7684
7672
|
name: "Lumela",
|
|
7685
7673
|
parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
|
|
7674
|
+
validUntil: null,
|
|
7686
7675
|
externalId: "bh0b3aI1uP3"
|
|
7687
7676
|
}
|
|
7688
7677
|
];
|
|
7689
|
-
var
|
|
7690
|
-
var MOCK_LOCATIONS_BASE = [
|
|
7678
|
+
var V2_DEFAULT_MOCK_LOCATIONS = [
|
|
7691
7679
|
{
|
|
7692
7680
|
id: "6f6186ce-cd5f-4a5f-810a-2d99e7c4ba12",
|
|
7693
7681
|
name: "Central Provincial Office",
|
|
7694
7682
|
locationType: "CRVS_OFFICE",
|
|
7695
7683
|
administrativeAreaId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
|
|
7684
|
+
validUntil: null,
|
|
7696
7685
|
externalId: "Xr3Df8WpK6Ys"
|
|
7697
7686
|
},
|
|
7698
7687
|
{
|
|
7699
7688
|
id: "b1c2d3e4-f5a6-7890-bcde-f12345678901",
|
|
7700
7689
|
name: "Central Health Post",
|
|
7701
7690
|
locationType: "HEALTH_FACILITY",
|
|
7702
|
-
administrativeAreaId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c"
|
|
7691
|
+
administrativeAreaId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
|
|
7692
|
+
validUntil: null
|
|
7703
7693
|
},
|
|
7704
7694
|
{
|
|
7705
7695
|
id: "028d2c85-ca31-426d-b5d1-2cef545a4902",
|
|
7706
7696
|
name: "Ibombo District Office",
|
|
7707
7697
|
locationType: "CRVS_OFFICE",
|
|
7708
7698
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7699
|
+
validUntil: null,
|
|
7709
7700
|
externalId: "Sm4Nw7GrD2Vy"
|
|
7710
7701
|
},
|
|
7711
7702
|
{
|
|
@@ -7713,6 +7704,7 @@ var MOCK_LOCATIONS_BASE = [
|
|
|
7713
7704
|
name: "Isamba District Office",
|
|
7714
7705
|
locationType: "CRVS_OFFICE",
|
|
7715
7706
|
administrativeAreaId: "967032fd-3f81-478a-826c-30cb8fe121bd",
|
|
7707
|
+
validUntil: null,
|
|
7716
7708
|
externalId: "Vg1Bq5XeH9Lt"
|
|
7717
7709
|
},
|
|
7718
7710
|
{
|
|
@@ -7720,6 +7712,7 @@ var MOCK_LOCATIONS_BASE = [
|
|
|
7720
7712
|
name: "Isango District Office",
|
|
7721
7713
|
locationType: "CRVS_OFFICE",
|
|
7722
7714
|
administrativeAreaId: "27160bbd-32d1-4625-812f-860226bfb92a",
|
|
7715
|
+
validUntil: null,
|
|
7723
7716
|
externalId: "Je7Lm2XqN9Vz"
|
|
7724
7717
|
},
|
|
7725
7718
|
{
|
|
@@ -7727,6 +7720,7 @@ var MOCK_LOCATIONS_BASE = [
|
|
|
7727
7720
|
name: "Sulaka Provincial Office",
|
|
7728
7721
|
locationType: "CRVS_OFFICE",
|
|
7729
7722
|
administrativeAreaId: "c599b691-fd2d-45e1-abf4-d185de727fb5",
|
|
7723
|
+
validUntil: null,
|
|
7730
7724
|
externalId: "Ht2Wp9KcX5Qv"
|
|
7731
7725
|
},
|
|
7732
7726
|
{
|
|
@@ -7734,6 +7728,7 @@ var MOCK_LOCATIONS_BASE = [
|
|
|
7734
7728
|
name: "Ilanga District Office",
|
|
7735
7729
|
locationType: "CRVS_OFFICE",
|
|
7736
7730
|
administrativeAreaId: "8fbd09d2-212b-47f4-beb3-5e1694931d9f",
|
|
7731
|
+
validUntil: null,
|
|
7737
7732
|
externalId: "Yp6Ds1WqN3Xz"
|
|
7738
7733
|
},
|
|
7739
7734
|
{
|
|
@@ -7741,6 +7736,7 @@ var MOCK_LOCATIONS_BASE = [
|
|
|
7741
7736
|
name: "Chamakubi Health Post",
|
|
7742
7737
|
locationType: "HEALTH_FACILITY",
|
|
7743
7738
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7739
|
+
validUntil: null,
|
|
7744
7740
|
externalId: "M1nFr8LbC2Qy"
|
|
7745
7741
|
},
|
|
7746
7742
|
{
|
|
@@ -7748,6 +7744,7 @@ var MOCK_LOCATIONS_BASE = [
|
|
|
7748
7744
|
name: "Ibombo Rural Health Centre",
|
|
7749
7745
|
locationType: "HEALTH_FACILITY",
|
|
7750
7746
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7747
|
+
validUntil: null,
|
|
7751
7748
|
externalId: "bT7pV6YrW0Xc"
|
|
7752
7749
|
},
|
|
7753
7750
|
{
|
|
@@ -7755,6 +7752,7 @@ var MOCK_LOCATIONS_BASE = [
|
|
|
7755
7752
|
name: "Chikobo Rural Health Centre",
|
|
7756
7753
|
locationType: "HEALTH_FACILITY",
|
|
7757
7754
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7755
|
+
validUntil: null,
|
|
7758
7756
|
externalId: "zE4qPn2SgJ5d"
|
|
7759
7757
|
},
|
|
7760
7758
|
{
|
|
@@ -7762,6 +7760,7 @@ var MOCK_LOCATIONS_BASE = [
|
|
|
7762
7760
|
name: "Chilochabalenje Health Post",
|
|
7763
7761
|
locationType: "HEALTH_FACILITY",
|
|
7764
7762
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7763
|
+
validUntil: null,
|
|
7765
7764
|
externalId: "H8vDs1MqR4Uf"
|
|
7766
7765
|
},
|
|
7767
7766
|
{
|
|
@@ -7769,6 +7768,7 @@ var MOCK_LOCATIONS_BASE = [
|
|
|
7769
7768
|
name: "Chipeso Rural Health Centre",
|
|
7770
7769
|
locationType: "HEALTH_FACILITY",
|
|
7771
7770
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7771
|
+
validUntil: null,
|
|
7772
7772
|
externalId: "Qw3uZ9KfX6Lm"
|
|
7773
7773
|
},
|
|
7774
7774
|
{
|
|
@@ -7776,6 +7776,7 @@ var MOCK_LOCATIONS_BASE = [
|
|
|
7776
7776
|
name: "Chisamba Rural Health Centre",
|
|
7777
7777
|
locationType: "HEALTH_FACILITY",
|
|
7778
7778
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7779
|
+
validUntil: null,
|
|
7779
7780
|
externalId: "Yr0pCg8LdM2s"
|
|
7780
7781
|
},
|
|
7781
7782
|
{
|
|
@@ -7783,6 +7784,7 @@ var MOCK_LOCATIONS_BASE = [
|
|
|
7783
7784
|
name: "Chitanda Rural Health Centre",
|
|
7784
7785
|
locationType: "HEALTH_FACILITY",
|
|
7785
7786
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7787
|
+
validUntil: null,
|
|
7786
7788
|
externalId: "tS9gJ4PwB1Qx"
|
|
7787
7789
|
},
|
|
7788
7790
|
{
|
|
@@ -7790,6 +7792,7 @@ var MOCK_LOCATIONS_BASE = [
|
|
|
7790
7792
|
name: "Golden Valley Rural Health Centre",
|
|
7791
7793
|
locationType: "HEALTH_FACILITY",
|
|
7792
7794
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7795
|
+
validUntil: null,
|
|
7793
7796
|
externalId: "Ld7Qm3XsA8Vr"
|
|
7794
7797
|
},
|
|
7795
7798
|
{
|
|
@@ -7797,6 +7800,7 @@ var MOCK_LOCATIONS_BASE = [
|
|
|
7797
7800
|
name: "Ipongo Rural Health Centre",
|
|
7798
7801
|
locationType: "HEALTH_FACILITY",
|
|
7799
7802
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7803
|
+
validUntil: null,
|
|
7800
7804
|
externalId: "kF2sW9DmH0Bt"
|
|
7801
7805
|
},
|
|
7802
7806
|
{
|
|
@@ -7804,6 +7808,7 @@ var MOCK_LOCATIONS_BASE = [
|
|
|
7804
7808
|
name: "Itumbwe Health Post",
|
|
7805
7809
|
locationType: "HEALTH_FACILITY",
|
|
7806
7810
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7811
|
+
validUntil: null,
|
|
7807
7812
|
externalId: "Ue5Xb3VaC7Pq"
|
|
7808
7813
|
},
|
|
7809
7814
|
{
|
|
@@ -7811,6 +7816,7 @@ var MOCK_LOCATIONS_BASE = [
|
|
|
7811
7816
|
name: "Kabangalala Rural Health Centre",
|
|
7812
7817
|
locationType: "HEALTH_FACILITY",
|
|
7813
7818
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7819
|
+
validUntil: null,
|
|
7814
7820
|
externalId: "Pz8Kc1TqH6Jn"
|
|
7815
7821
|
},
|
|
7816
7822
|
// Village offices
|
|
@@ -7819,10 +7825,10 @@ var MOCK_LOCATIONS_BASE = [
|
|
|
7819
7825
|
name: "Klow Village Office",
|
|
7820
7826
|
locationType: "CRVS_OFFICE",
|
|
7821
7827
|
administrativeAreaId: "1d4e5f6a-7b8c-4912-8efa-345678901234",
|
|
7828
|
+
validUntil: null,
|
|
7822
7829
|
externalId: "PmAyxAJkxiJ"
|
|
7823
7830
|
}
|
|
7824
7831
|
];
|
|
7825
|
-
var V2_DEFAULT_MOCK_LOCATIONS = MOCK_LOCATIONS_BASE.map(withVersionFields);
|
|
7826
7832
|
var V2_DEFAULT_MOCK_LOCATIONS_MAP = new Map(
|
|
7827
7833
|
V2_DEFAULT_MOCK_LOCATIONS.map((l) => [l.id, l])
|
|
7828
7834
|
);
|