@opencrvs/toolkit 2.1.0-rc.e072b83 → 2.1.0-rc.e4589b6
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 -3
- package/dist/commons/api/router.d.ts +1643 -1711
- 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 -513
- package/dist/commons/events/AuditLog.d.ts +42 -79
- package/dist/commons/events/CompositeFieldValue.d.ts +4 -4
- package/dist/commons/events/Conditional.d.ts +3 -3
- package/dist/commons/events/CountryConfigQueryInput.d.ts +590 -590
- package/dist/commons/events/Draft.d.ts +37 -37
- package/dist/commons/events/DynamicFieldValue.d.ts +9 -9
- package/dist/commons/events/EventConfig.d.ts +5 -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 -342
- 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/index.d.ts +0 -1
- package/dist/commons/events/locations.d.ts +6 -103
- package/dist/commons/events/mocks.test.utils.d.ts +4 -18
- package/dist/commons/events/scopes.d.ts +4 -4
- package/dist/commons/events/state/index.d.ts +17 -17
- package/dist/commons/events/state/utils.d.ts +7 -7
- package/dist/commons/events/test.utils.d.ts +43 -40
- package/dist/commons/events/utils.d.ts +114 -114
- package/dist/commons/notification/UserNotifications.d.ts +10 -10
- package/dist/conditionals/index.js +0 -1
- 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 -150
- 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 +82 -147
- package/dist/scopes/index.d.ts +146 -148
- package/dist/scopes/index.js +0 -1
- package/opencrvs-toolkit-2.1.0-rc.e4589b6.tgz +0 -0
- package/package.json +5 -5
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/commons/events/locationPayloads.d.ts +0 -95
- package/opencrvs-toolkit-2.1.0-rc.e072b83.tgz +0 -0
package/dist/events/index.js
CHANGED
|
@@ -80,8 +80,6 @@ __export(events_exports, {
|
|
|
80
80
|
ConditionalType: () => ConditionalType,
|
|
81
81
|
ConfirmableActions: () => ConfirmableActions,
|
|
82
82
|
ContainsFlags: () => ContainsFlags,
|
|
83
|
-
CreateAdministrativeAreaPayload: () => CreateAdministrativeAreaPayload,
|
|
84
|
-
CreateLocationPayload: () => CreateLocationPayload,
|
|
85
83
|
CustomActionInput: () => CustomActionInput,
|
|
86
84
|
CustomFieldValue: () => CustomFieldValue,
|
|
87
85
|
CustomFlag: () => CustomFlag,
|
|
@@ -163,9 +161,7 @@ __export(events_exports, {
|
|
|
163
161
|
LanguageConfig: () => LanguageConfig,
|
|
164
162
|
LegalStatuses: () => LegalStatuses,
|
|
165
163
|
Location: () => Location,
|
|
166
|
-
LocationStatus: () => LocationStatus,
|
|
167
164
|
LocationTypeV1: () => LocationTypeV1,
|
|
168
|
-
LocationVersion: () => LocationVersion,
|
|
169
165
|
METADATA_FIELD_PREFIX: () => METADATA_FIELD_PREFIX,
|
|
170
166
|
MarkAsDuplicateActionInput: () => MarkAsDuplicateActionInput,
|
|
171
167
|
MarkNotDuplicateActionInput: () => MarkNotDuplicateActionInput,
|
|
@@ -205,8 +201,6 @@ __export(events_exports, {
|
|
|
205
201
|
SelectDateRangeOption: () => SelectDateRangeOption,
|
|
206
202
|
SelectDateRangeValue: () => SelectDateRangeValue,
|
|
207
203
|
SelectOption: () => SelectOption,
|
|
208
|
-
SetAdministrativeAreaPayload: () => SetAdministrativeAreaPayload,
|
|
209
|
-
SetLocationPayload: () => SetLocationPayload,
|
|
210
204
|
ShowConditional: () => ShowConditional,
|
|
211
205
|
SignatureFieldValue: () => SignatureFieldValue,
|
|
212
206
|
StaticDataEntry: () => StaticDataEntry,
|
|
@@ -222,8 +216,6 @@ __export(events_exports, {
|
|
|
222
216
|
UUID: () => UUID,
|
|
223
217
|
UnarchiveActionInput: () => UnarchiveActionInput,
|
|
224
218
|
UnassignActionInput: () => UnassignActionInput,
|
|
225
|
-
UpdateAdministrativeAreaPayload: () => UpdateAdministrativeAreaPayload,
|
|
226
|
-
UpdateLocationPayload: () => UpdateLocationPayload,
|
|
227
219
|
UserAuditRecordInput: () => UserAuditRecordInput,
|
|
228
220
|
V2_DEFAULT_MOCK_ADMINISTRATIVE_AREAS: () => V2_DEFAULT_MOCK_ADMINISTRATIVE_AREAS,
|
|
229
221
|
V2_DEFAULT_MOCK_ADMINISTRATIVE_AREAS_MAP: () => V2_DEFAULT_MOCK_ADMINISTRATIVE_AREAS_MAP,
|
|
@@ -233,8 +225,6 @@ __export(events_exports, {
|
|
|
233
225
|
VerificationActionConfig: () => VerificationActionConfig,
|
|
234
226
|
VerificationPageConfig: () => VerificationPageConfig,
|
|
235
227
|
VerificationStatusValue: () => VerificationStatusValue,
|
|
236
|
-
WithdrawAdministrativeAreaVersionPayload: () => WithdrawAdministrativeAreaVersionPayload,
|
|
237
|
-
WithdrawLocationVersionPayload: () => WithdrawLocationVersionPayload,
|
|
238
228
|
Within: () => Within,
|
|
239
229
|
WorkqueueActionType: () => WorkqueueActionType,
|
|
240
230
|
WorkqueueColumn: () => WorkqueueColumn,
|
|
@@ -353,7 +343,6 @@ __export(events_exports, {
|
|
|
353
343
|
getStatusFromActions: () => getStatusFromActions,
|
|
354
344
|
getValidatorsForField: () => getValidatorsForField,
|
|
355
345
|
getVisibleVerificationPageIds: () => getVisibleVerificationPageIds,
|
|
356
|
-
hasActiveExternalIdOnOrAfter: () => hasActiveExternalIdOnOrAfter,
|
|
357
346
|
hasAnyOfScopes: () => hasAnyOfScopes,
|
|
358
347
|
isActionAvailable: () => isActionAvailable,
|
|
359
348
|
isActionConfigType: () => isActionConfigType,
|
|
@@ -444,7 +433,6 @@ __export(events_exports, {
|
|
|
444
433
|
resolveDateOfEvent: () => resolveDateOfEvent,
|
|
445
434
|
resolveEventCustomFlags: () => resolveEventCustomFlags,
|
|
446
435
|
resolvePlaceOfEvent: () => resolvePlaceOfEvent,
|
|
447
|
-
resolveVersion: () => resolveVersion,
|
|
448
436
|
runClientFunction: () => runClientFunction,
|
|
449
437
|
runFieldValidations: () => runFieldValidations,
|
|
450
438
|
runStructuralValidations: () => runStructuralValidations,
|
|
@@ -512,7 +500,6 @@ var PlainScopeType = z2.enum([
|
|
|
512
500
|
"integration.create",
|
|
513
501
|
"record.import",
|
|
514
502
|
"config.update-all",
|
|
515
|
-
"location.edit",
|
|
516
503
|
"attachment.upload",
|
|
517
504
|
"profile.electronic-signature",
|
|
518
505
|
"user.read-only-my-audit",
|
|
@@ -995,29 +982,6 @@ var IntegrationRefreshSecretEntrySchema = AuditLogEntryBase.extend({
|
|
|
995
982
|
requestData: z5.object({ id: z5.string() }),
|
|
996
983
|
responseSummary: z5.object({ clientId: z5.string() })
|
|
997
984
|
});
|
|
998
|
-
var createdVersionFields = {
|
|
999
|
-
id: z5.string(),
|
|
1000
|
-
versionId: z5.string(),
|
|
1001
|
-
name: z5.string(),
|
|
1002
|
-
externalId: z5.string().nullish(),
|
|
1003
|
-
effectiveFrom: z5.string(),
|
|
1004
|
-
status: z5.string()
|
|
1005
|
-
};
|
|
1006
|
-
var LocationCreateEntrySchema = AuditLogEntryBase.extend({
|
|
1007
|
-
operation: z5.literal("locations.create"),
|
|
1008
|
-
requestData: z5.object({
|
|
1009
|
-
...createdVersionFields,
|
|
1010
|
-
administrativeAreaId: z5.string().nullish(),
|
|
1011
|
-
locationType: z5.string().nullish()
|
|
1012
|
-
})
|
|
1013
|
-
});
|
|
1014
|
-
var AdministrativeAreaCreateEntrySchema = AuditLogEntryBase.extend({
|
|
1015
|
-
operation: z5.literal("administrativeAreas.create"),
|
|
1016
|
-
requestData: z5.object({
|
|
1017
|
-
...createdVersionFields,
|
|
1018
|
-
parentId: z5.string().nullish()
|
|
1019
|
-
})
|
|
1020
|
-
});
|
|
1021
985
|
var AttachmentUploadEntrySchema = AuditLogEntryBase.extend({
|
|
1022
986
|
operation: z5.literal("attachments.upload"),
|
|
1023
987
|
requestData: z5.object({
|
|
@@ -1093,8 +1057,6 @@ var AuditLogEntrySchema = z5.discriminatedUnion("operation", [
|
|
|
1093
1057
|
IntegrationActivateEntrySchema,
|
|
1094
1058
|
IntegrationDeleteEntrySchema,
|
|
1095
1059
|
IntegrationRefreshSecretEntrySchema,
|
|
1096
|
-
LocationCreateEntrySchema,
|
|
1097
|
-
AdministrativeAreaCreateEntrySchema,
|
|
1098
1060
|
AttachmentUploadEntrySchema,
|
|
1099
1061
|
UserCreateEntrySchema,
|
|
1100
1062
|
UserReasonEntrySchema,
|
|
@@ -1714,10 +1676,9 @@ var NotifiedAction = ActionBase.extend(
|
|
|
1714
1676
|
var EditAction = ActionBase.extend(
|
|
1715
1677
|
z14.object({
|
|
1716
1678
|
type: z14.literal(ActionType.EDIT),
|
|
1717
|
-
/** @deprecated New Edit-actions should no longer contain content. This is kept for old 2.0 edits. */
|
|
1718
1679
|
content: z14.object({
|
|
1719
1680
|
comment: z14.string().describe("Comment for the edit action.").optional()
|
|
1720
|
-
})
|
|
1681
|
+
})
|
|
1721
1682
|
}).shape
|
|
1722
1683
|
);
|
|
1723
1684
|
var PrintContent = z14.object({
|
|
@@ -6454,7 +6415,10 @@ var DeclareActionInput = BaseActionInput.extend(
|
|
|
6454
6415
|
);
|
|
6455
6416
|
var EditActionInput = BaseActionInput.extend(
|
|
6456
6417
|
z38.object({
|
|
6457
|
-
type: z38.literal(ActionType.EDIT).default(ActionType.EDIT)
|
|
6418
|
+
type: z38.literal(ActionType.EDIT).default(ActionType.EDIT),
|
|
6419
|
+
content: z38.object({
|
|
6420
|
+
comment: z38.string().describe("Comment for the edit action.").optional()
|
|
6421
|
+
})
|
|
6458
6422
|
}).shape
|
|
6459
6423
|
);
|
|
6460
6424
|
var PrintCertificateActionInput = BaseActionInput.extend(
|
|
@@ -9999,6 +9963,7 @@ function eventPayloadGenerator(rng, configuration = tennisClubMembershipEvent) {
|
|
|
9999
9963
|
},
|
|
10000
9964
|
edit: (eventId, input = {}) => ({
|
|
10001
9965
|
type: ActionType.EDIT,
|
|
9966
|
+
content: { comment: "Test comment" },
|
|
10002
9967
|
transactionId: input.transactionId ?? getUUID(),
|
|
10003
9968
|
declaration: input.declaration ?? generateActionDeclarationInput(configuration, ActionType.EDIT, rng),
|
|
10004
9969
|
annotation: input.annotation ?? generateActionAnnotationInput(configuration, ActionType.EDIT, rng),
|
|
@@ -10504,60 +10469,21 @@ var LocationTypeV1 = z43.enum([
|
|
|
10504
10469
|
"CRVS_OFFICE",
|
|
10505
10470
|
"HEALTH_FACILITY"
|
|
10506
10471
|
]);
|
|
10507
|
-
var LocationStatus = z43.enum(["active", "inactive"]);
|
|
10508
|
-
var LocationVersion = z43.object({
|
|
10509
|
-
versionId: UUID,
|
|
10510
|
-
effectiveFrom: z43.iso.date(),
|
|
10511
|
-
name: z43.string(),
|
|
10512
|
-
externalId: z43.string().nullish(),
|
|
10513
|
-
status: LocationStatus
|
|
10514
|
-
});
|
|
10515
10472
|
var AdministrativeArea = z43.object({
|
|
10516
10473
|
id: UUID,
|
|
10517
10474
|
name: z43.string(),
|
|
10518
10475
|
externalId: z43.string().nullish(),
|
|
10519
10476
|
parentId: UUID.nullable(),
|
|
10520
|
-
|
|
10521
|
-
versions: z43.array(LocationVersion)
|
|
10477
|
+
validUntil: z43.iso.datetime().nullable()
|
|
10522
10478
|
});
|
|
10523
10479
|
var Location = z43.object({
|
|
10524
10480
|
id: UUID,
|
|
10525
10481
|
name: z43.string(),
|
|
10526
10482
|
externalId: z43.string().nullish(),
|
|
10527
10483
|
administrativeAreaId: UUID.nullable(),
|
|
10528
|
-
|
|
10529
|
-
status: LocationStatus,
|
|
10530
|
-
versions: z43.array(LocationVersion)
|
|
10531
|
-
});
|
|
10532
|
-
var SetLocationPayload = z43.object({
|
|
10533
|
-
id: UUID,
|
|
10534
|
-
name: z43.string(),
|
|
10535
|
-
externalId: z43.string().nullish(),
|
|
10536
|
-
administrativeAreaId: UUID.nullable(),
|
|
10484
|
+
validUntil: z43.iso.datetime().nullable(),
|
|
10537
10485
|
locationType: z43.string().nullable()
|
|
10538
10486
|
});
|
|
10539
|
-
var SetAdministrativeAreaPayload = z43.object({
|
|
10540
|
-
id: UUID,
|
|
10541
|
-
name: z43.string(),
|
|
10542
|
-
externalId: z43.string().nullish(),
|
|
10543
|
-
parentId: UUID.nullable()
|
|
10544
|
-
});
|
|
10545
|
-
function resolveVersion(versions, anchor) {
|
|
10546
|
-
let resolved = versions[0];
|
|
10547
|
-
for (const version of versions) {
|
|
10548
|
-
if (version.effectiveFrom <= anchor) {
|
|
10549
|
-
resolved = version;
|
|
10550
|
-
}
|
|
10551
|
-
}
|
|
10552
|
-
return resolved;
|
|
10553
|
-
}
|
|
10554
|
-
function hasActiveExternalIdOnOrAfter(versions, externalId, anchor) {
|
|
10555
|
-
const inEffectAtAnchor = resolveVersion(versions, anchor);
|
|
10556
|
-
const laterVersions = versions.filter((v) => v.effectiveFrom > anchor);
|
|
10557
|
-
return [inEffectAtAnchor, ...laterVersions].some(
|
|
10558
|
-
(v) => v.externalId === externalId && v.status === "active"
|
|
10559
|
-
);
|
|
10560
|
-
}
|
|
10561
10487
|
function matchesJurisdictionFilter(locationIds, filter, user2) {
|
|
10562
10488
|
if (!locationIds) {
|
|
10563
10489
|
return false;
|
|
@@ -11037,80 +10963,75 @@ function getFilePathsFromEvent(event2) {
|
|
|
11037
10963
|
}
|
|
11038
10964
|
|
|
11039
10965
|
// ../commons/src/events/mocks.test.utils.ts
|
|
11040
|
-
|
|
11041
|
-
return {
|
|
11042
|
-
...entity,
|
|
11043
|
-
status: "active",
|
|
11044
|
-
versions: [
|
|
11045
|
-
{
|
|
11046
|
-
versionId: entity.id,
|
|
11047
|
-
effectiveFrom: "0001-01-01",
|
|
11048
|
-
name: entity.name,
|
|
11049
|
-
externalId: entity.externalId ?? null,
|
|
11050
|
-
status: "active"
|
|
11051
|
-
}
|
|
11052
|
-
]
|
|
11053
|
-
};
|
|
11054
|
-
}
|
|
11055
|
-
var MOCK_ADMINISTRATIVE_AREAS_BASE = [
|
|
10966
|
+
var V2_DEFAULT_MOCK_ADMINISTRATIVE_AREAS = [
|
|
11056
10967
|
{
|
|
11057
10968
|
id: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
|
|
11058
10969
|
name: "Central",
|
|
11059
10970
|
parentId: null,
|
|
10971
|
+
validUntil: null,
|
|
11060
10972
|
externalId: "ydyJb1RAy4U1"
|
|
11061
10973
|
},
|
|
11062
10974
|
{
|
|
11063
10975
|
id: "c599b691-fd2d-45e1-abf4-d185de727fb5",
|
|
11064
10976
|
name: "Sulaka",
|
|
11065
10977
|
parentId: null,
|
|
10978
|
+
validUntil: null,
|
|
11066
10979
|
externalId: "pQ8nGxWmZ2Q3"
|
|
11067
10980
|
},
|
|
11068
10981
|
{
|
|
11069
10982
|
id: "7ef2b9c7-5e6d-49f6-ae05-656207d0fc64",
|
|
11070
10983
|
name: "Pualula",
|
|
11071
10984
|
parentId: null,
|
|
10985
|
+
validUntil: null,
|
|
11072
10986
|
externalId: "Aq91DweLmT8k"
|
|
11073
10987
|
},
|
|
11074
10988
|
{
|
|
11075
10989
|
id: "6d1a59df-988c-4021-a846-ccbc021931a7",
|
|
11076
10990
|
name: "Chuminga",
|
|
11077
10991
|
parentId: null,
|
|
10992
|
+
validUntil: null,
|
|
11078
10993
|
externalId: "Rw0fYNh2Xk9a"
|
|
11079
10994
|
},
|
|
11080
10995
|
{
|
|
11081
10996
|
id: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
11082
10997
|
name: "Ibombo",
|
|
11083
10998
|
parentId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
|
|
10999
|
+
validUntil: null,
|
|
11084
11000
|
externalId: "k7DsP4vbN1Qe"
|
|
11085
11001
|
},
|
|
11086
11002
|
{
|
|
11087
11003
|
id: "27160bbd-32d1-4625-812f-860226bfb92a",
|
|
11088
11004
|
name: "Isango",
|
|
11089
11005
|
parentId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
|
|
11006
|
+
validUntil: null,
|
|
11090
11007
|
externalId: "Gm3Z9eQpHw4L"
|
|
11091
11008
|
},
|
|
11092
11009
|
{
|
|
11093
11010
|
id: "967032fd-3f81-478a-826c-30cb8fe121bd",
|
|
11094
11011
|
name: "Isamba",
|
|
11095
11012
|
parentId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
|
|
11013
|
+
validUntil: null,
|
|
11096
11014
|
externalId: "sT0xVu1KqJ7r"
|
|
11097
11015
|
},
|
|
11098
11016
|
{
|
|
11099
11017
|
id: "89a33893-b17d-481d-a26d-6461e7ac1651",
|
|
11100
11018
|
name: "Itambo",
|
|
11101
11019
|
parentId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
|
|
11020
|
+
validUntil: null,
|
|
11102
11021
|
externalId: "Nq6Bv2HpL9Te"
|
|
11103
11022
|
},
|
|
11104
11023
|
{
|
|
11105
11024
|
id: "d42ab2fe-e7ed-470e-8b31-4fb27f9b8250",
|
|
11106
11025
|
name: "Ezhi",
|
|
11107
11026
|
parentId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
|
|
11027
|
+
validUntil: null,
|
|
11108
11028
|
externalId: "xK8cQ0ZRy5Wd"
|
|
11109
11029
|
},
|
|
11110
11030
|
{
|
|
11111
11031
|
id: "8fbd09d2-212b-47f4-beb3-5e1694931d9f",
|
|
11112
11032
|
name: "Ilanga",
|
|
11113
11033
|
parentId: "c599b691-fd2d-45e1-abf4-d185de727fb5",
|
|
11034
|
+
validUntil: null,
|
|
11114
11035
|
externalId: "Cq4Jm1XvN8Ls"
|
|
11115
11036
|
},
|
|
11116
11037
|
// Villages under Ibombo (62a0ccb4-880d-4f30-8882-f256007dfff9)
|
|
@@ -11118,42 +11039,49 @@ var MOCK_ADMINISTRATIVE_AREAS_BASE = [
|
|
|
11118
11039
|
id: "1d4e5f6a-7b8c-4912-8efa-345678901234",
|
|
11119
11040
|
name: "Klow",
|
|
11120
11041
|
parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
11042
|
+
validUntil: null,
|
|
11121
11043
|
externalId: "IkYcYBUcyY2"
|
|
11122
11044
|
},
|
|
11123
11045
|
{
|
|
11124
11046
|
id: "2e5f6a7b-8c9d-4a23-8fab-456789012345",
|
|
11125
11047
|
name: "Mbondo",
|
|
11126
11048
|
parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
11049
|
+
validUntil: null,
|
|
11127
11050
|
externalId: "Qhvv5hvo3mY"
|
|
11128
11051
|
},
|
|
11129
11052
|
{
|
|
11130
11053
|
id: "3f6a7b8c-9d0e-4b34-8abc-567890123456",
|
|
11131
11054
|
name: "Ndara",
|
|
11132
11055
|
parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
11056
|
+
validUntil: null,
|
|
11133
11057
|
externalId: "crXh068O9TR"
|
|
11134
11058
|
},
|
|
11135
11059
|
{
|
|
11136
11060
|
id: "4a7b8c9d-0e1f-4c45-abcd-678901234567",
|
|
11137
11061
|
name: "Olani",
|
|
11138
11062
|
parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
11063
|
+
validUntil: null,
|
|
11139
11064
|
externalId: "r00It8Tvvp7"
|
|
11140
11065
|
},
|
|
11141
11066
|
{
|
|
11142
11067
|
id: "5b8c9d0e-1f2a-4d56-bcde-789012345678",
|
|
11143
11068
|
name: "Pemba",
|
|
11144
11069
|
parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
11070
|
+
validUntil: null,
|
|
11145
11071
|
externalId: "ZnUWsbONIaH"
|
|
11146
11072
|
},
|
|
11147
11073
|
{
|
|
11148
11074
|
id: "6c9d0e1f-2a3b-4e67-8def-890123456789",
|
|
11149
11075
|
name: "Quanza",
|
|
11150
11076
|
parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
11077
|
+
validUntil: null,
|
|
11151
11078
|
externalId: "fDZycvQTa7l"
|
|
11152
11079
|
},
|
|
11153
11080
|
{
|
|
11154
11081
|
id: "7d0e1f2a-3b4c-4f78-8efa-901234567890",
|
|
11155
11082
|
name: "Rivka",
|
|
11156
11083
|
parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
11084
|
+
validUntil: null,
|
|
11157
11085
|
externalId: "KqswxCGTELa"
|
|
11158
11086
|
},
|
|
11159
11087
|
// Villages under Isamba (967032fd-3f81-478a-826c-30cb8fe121bd)
|
|
@@ -11161,30 +11089,35 @@ var MOCK_ADMINISTRATIVE_AREAS_BASE = [
|
|
|
11161
11089
|
id: "8e1f2a3b-4c5d-4089-8fab-012345678901",
|
|
11162
11090
|
name: "Mbula",
|
|
11163
11091
|
parentId: "967032fd-3f81-478a-826c-30cb8fe121bd",
|
|
11092
|
+
validUntil: null,
|
|
11164
11093
|
externalId: "osEbKjRc9Kg"
|
|
11165
11094
|
},
|
|
11166
11095
|
{
|
|
11167
11096
|
id: "9f2a3b4c-5d6e-4190-8abf-123456789012",
|
|
11168
11097
|
name: "Ndoki",
|
|
11169
11098
|
parentId: "967032fd-3f81-478a-826c-30cb8fe121bd",
|
|
11099
|
+
validUntil: null,
|
|
11170
11100
|
externalId: "aq4daBUAGr3"
|
|
11171
11101
|
},
|
|
11172
11102
|
{
|
|
11173
11103
|
id: "0a3b4c5d-6e7f-4201-abcd-234567890123",
|
|
11174
11104
|
name: "Tsanga",
|
|
11175
11105
|
parentId: "967032fd-3f81-478a-826c-30cb8fe121bd",
|
|
11106
|
+
validUntil: null,
|
|
11176
11107
|
externalId: "cqis6Y8trbJ"
|
|
11177
11108
|
},
|
|
11178
11109
|
{
|
|
11179
11110
|
id: "1b4c5d6e-7f8a-4312-bcde-345678901234",
|
|
11180
11111
|
name: "Waziri",
|
|
11181
11112
|
parentId: "967032fd-3f81-478a-826c-30cb8fe121bd",
|
|
11113
|
+
validUntil: null,
|
|
11182
11114
|
externalId: "LMijHPyyx6d"
|
|
11183
11115
|
},
|
|
11184
11116
|
{
|
|
11185
11117
|
id: "2c5d6e7f-8a9b-4423-8def-456789012345",
|
|
11186
11118
|
name: "Zimbi",
|
|
11187
11119
|
parentId: "967032fd-3f81-478a-826c-30cb8fe121bd",
|
|
11120
|
+
validUntil: null,
|
|
11188
11121
|
externalId: "pcQYbPuKGZ7"
|
|
11189
11122
|
},
|
|
11190
11123
|
// Villages under Itambo (89a33893-b17d-481d-a26d-6461e7ac1651)
|
|
@@ -11192,59 +11125,67 @@ var MOCK_ADMINISTRATIVE_AREAS_BASE = [
|
|
|
11192
11125
|
id: "3d6e7f8a-9b0c-4534-8efa-567890123456",
|
|
11193
11126
|
name: "Felani",
|
|
11194
11127
|
parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
|
|
11128
|
+
validUntil: null,
|
|
11195
11129
|
externalId: "gSqpoCGdMXp"
|
|
11196
11130
|
},
|
|
11197
11131
|
{
|
|
11198
11132
|
id: "4e7f8a9b-0c1d-4645-8fab-678901234567",
|
|
11199
11133
|
name: "Goroma",
|
|
11200
11134
|
parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
|
|
11135
|
+
validUntil: null,
|
|
11201
11136
|
externalId: "KvAAIaNqVrp"
|
|
11202
11137
|
},
|
|
11203
11138
|
{
|
|
11204
11139
|
id: "5f8a9b0c-1d2e-4756-8abc-789012345678",
|
|
11205
11140
|
name: "Halifu",
|
|
11206
11141
|
parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
|
|
11142
|
+
validUntil: null,
|
|
11207
11143
|
externalId: "qe4UnEVt1hv"
|
|
11208
11144
|
},
|
|
11209
11145
|
{
|
|
11210
11146
|
id: "6a9b0c1d-2e3f-4867-abcd-890123456789",
|
|
11211
11147
|
name: "Jabari",
|
|
11212
11148
|
parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
|
|
11149
|
+
validUntil: null,
|
|
11213
11150
|
externalId: "yHH9Nz4rLOt"
|
|
11214
11151
|
},
|
|
11215
11152
|
{
|
|
11216
11153
|
id: "7b0c1d2e-3f4a-4978-bcde-901234567890",
|
|
11217
11154
|
name: "Kifani",
|
|
11218
11155
|
parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
|
|
11156
|
+
validUntil: null,
|
|
11219
11157
|
externalId: "eSWmXIGeu1I"
|
|
11220
11158
|
},
|
|
11221
11159
|
{
|
|
11222
11160
|
id: "8c1d2e3f-4a5b-4089-8def-012345678901",
|
|
11223
11161
|
name: "Lumela",
|
|
11224
11162
|
parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
|
|
11163
|
+
validUntil: null,
|
|
11225
11164
|
externalId: "bh0b3aI1uP3"
|
|
11226
11165
|
}
|
|
11227
11166
|
];
|
|
11228
|
-
var
|
|
11229
|
-
var MOCK_LOCATIONS_BASE = [
|
|
11167
|
+
var V2_DEFAULT_MOCK_LOCATIONS = [
|
|
11230
11168
|
{
|
|
11231
11169
|
id: "6f6186ce-cd5f-4a5f-810a-2d99e7c4ba12",
|
|
11232
11170
|
name: "Central Provincial Office",
|
|
11233
11171
|
locationType: "CRVS_OFFICE",
|
|
11234
11172
|
administrativeAreaId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
|
|
11173
|
+
validUntil: null,
|
|
11235
11174
|
externalId: "Xr3Df8WpK6Ys"
|
|
11236
11175
|
},
|
|
11237
11176
|
{
|
|
11238
11177
|
id: "b1c2d3e4-f5a6-7890-bcde-f12345678901",
|
|
11239
11178
|
name: "Central Health Post",
|
|
11240
11179
|
locationType: "HEALTH_FACILITY",
|
|
11241
|
-
administrativeAreaId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c"
|
|
11180
|
+
administrativeAreaId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
|
|
11181
|
+
validUntil: null
|
|
11242
11182
|
},
|
|
11243
11183
|
{
|
|
11244
11184
|
id: "028d2c85-ca31-426d-b5d1-2cef545a4902",
|
|
11245
11185
|
name: "Ibombo District Office",
|
|
11246
11186
|
locationType: "CRVS_OFFICE",
|
|
11247
11187
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
11188
|
+
validUntil: null,
|
|
11248
11189
|
externalId: "Sm4Nw7GrD2Vy"
|
|
11249
11190
|
},
|
|
11250
11191
|
{
|
|
@@ -11252,6 +11193,7 @@ var MOCK_LOCATIONS_BASE = [
|
|
|
11252
11193
|
name: "Isamba District Office",
|
|
11253
11194
|
locationType: "CRVS_OFFICE",
|
|
11254
11195
|
administrativeAreaId: "967032fd-3f81-478a-826c-30cb8fe121bd",
|
|
11196
|
+
validUntil: null,
|
|
11255
11197
|
externalId: "Vg1Bq5XeH9Lt"
|
|
11256
11198
|
},
|
|
11257
11199
|
{
|
|
@@ -11259,6 +11201,7 @@ var MOCK_LOCATIONS_BASE = [
|
|
|
11259
11201
|
name: "Isango District Office",
|
|
11260
11202
|
locationType: "CRVS_OFFICE",
|
|
11261
11203
|
administrativeAreaId: "27160bbd-32d1-4625-812f-860226bfb92a",
|
|
11204
|
+
validUntil: null,
|
|
11262
11205
|
externalId: "Je7Lm2XqN9Vz"
|
|
11263
11206
|
},
|
|
11264
11207
|
{
|
|
@@ -11266,6 +11209,7 @@ var MOCK_LOCATIONS_BASE = [
|
|
|
11266
11209
|
name: "Sulaka Provincial Office",
|
|
11267
11210
|
locationType: "CRVS_OFFICE",
|
|
11268
11211
|
administrativeAreaId: "c599b691-fd2d-45e1-abf4-d185de727fb5",
|
|
11212
|
+
validUntil: null,
|
|
11269
11213
|
externalId: "Ht2Wp9KcX5Qv"
|
|
11270
11214
|
},
|
|
11271
11215
|
{
|
|
@@ -11273,6 +11217,7 @@ var MOCK_LOCATIONS_BASE = [
|
|
|
11273
11217
|
name: "Ilanga District Office",
|
|
11274
11218
|
locationType: "CRVS_OFFICE",
|
|
11275
11219
|
administrativeAreaId: "8fbd09d2-212b-47f4-beb3-5e1694931d9f",
|
|
11220
|
+
validUntil: null,
|
|
11276
11221
|
externalId: "Yp6Ds1WqN3Xz"
|
|
11277
11222
|
},
|
|
11278
11223
|
{
|
|
@@ -11280,6 +11225,7 @@ var MOCK_LOCATIONS_BASE = [
|
|
|
11280
11225
|
name: "Chamakubi Health Post",
|
|
11281
11226
|
locationType: "HEALTH_FACILITY",
|
|
11282
11227
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
11228
|
+
validUntil: null,
|
|
11283
11229
|
externalId: "M1nFr8LbC2Qy"
|
|
11284
11230
|
},
|
|
11285
11231
|
{
|
|
@@ -11287,6 +11233,7 @@ var MOCK_LOCATIONS_BASE = [
|
|
|
11287
11233
|
name: "Ibombo Rural Health Centre",
|
|
11288
11234
|
locationType: "HEALTH_FACILITY",
|
|
11289
11235
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
11236
|
+
validUntil: null,
|
|
11290
11237
|
externalId: "bT7pV6YrW0Xc"
|
|
11291
11238
|
},
|
|
11292
11239
|
{
|
|
@@ -11294,6 +11241,7 @@ var MOCK_LOCATIONS_BASE = [
|
|
|
11294
11241
|
name: "Chikobo Rural Health Centre",
|
|
11295
11242
|
locationType: "HEALTH_FACILITY",
|
|
11296
11243
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
11244
|
+
validUntil: null,
|
|
11297
11245
|
externalId: "zE4qPn2SgJ5d"
|
|
11298
11246
|
},
|
|
11299
11247
|
{
|
|
@@ -11301,6 +11249,7 @@ var MOCK_LOCATIONS_BASE = [
|
|
|
11301
11249
|
name: "Chilochabalenje Health Post",
|
|
11302
11250
|
locationType: "HEALTH_FACILITY",
|
|
11303
11251
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
11252
|
+
validUntil: null,
|
|
11304
11253
|
externalId: "H8vDs1MqR4Uf"
|
|
11305
11254
|
},
|
|
11306
11255
|
{
|
|
@@ -11308,6 +11257,7 @@ var MOCK_LOCATIONS_BASE = [
|
|
|
11308
11257
|
name: "Chipeso Rural Health Centre",
|
|
11309
11258
|
locationType: "HEALTH_FACILITY",
|
|
11310
11259
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
11260
|
+
validUntil: null,
|
|
11311
11261
|
externalId: "Qw3uZ9KfX6Lm"
|
|
11312
11262
|
},
|
|
11313
11263
|
{
|
|
@@ -11315,6 +11265,7 @@ var MOCK_LOCATIONS_BASE = [
|
|
|
11315
11265
|
name: "Chisamba Rural Health Centre",
|
|
11316
11266
|
locationType: "HEALTH_FACILITY",
|
|
11317
11267
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
11268
|
+
validUntil: null,
|
|
11318
11269
|
externalId: "Yr0pCg8LdM2s"
|
|
11319
11270
|
},
|
|
11320
11271
|
{
|
|
@@ -11322,6 +11273,7 @@ var MOCK_LOCATIONS_BASE = [
|
|
|
11322
11273
|
name: "Chitanda Rural Health Centre",
|
|
11323
11274
|
locationType: "HEALTH_FACILITY",
|
|
11324
11275
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
11276
|
+
validUntil: null,
|
|
11325
11277
|
externalId: "tS9gJ4PwB1Qx"
|
|
11326
11278
|
},
|
|
11327
11279
|
{
|
|
@@ -11329,6 +11281,7 @@ var MOCK_LOCATIONS_BASE = [
|
|
|
11329
11281
|
name: "Golden Valley Rural Health Centre",
|
|
11330
11282
|
locationType: "HEALTH_FACILITY",
|
|
11331
11283
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
11284
|
+
validUntil: null,
|
|
11332
11285
|
externalId: "Ld7Qm3XsA8Vr"
|
|
11333
11286
|
},
|
|
11334
11287
|
{
|
|
@@ -11336,6 +11289,7 @@ var MOCK_LOCATIONS_BASE = [
|
|
|
11336
11289
|
name: "Ipongo Rural Health Centre",
|
|
11337
11290
|
locationType: "HEALTH_FACILITY",
|
|
11338
11291
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
11292
|
+
validUntil: null,
|
|
11339
11293
|
externalId: "kF2sW9DmH0Bt"
|
|
11340
11294
|
},
|
|
11341
11295
|
{
|
|
@@ -11343,6 +11297,7 @@ var MOCK_LOCATIONS_BASE = [
|
|
|
11343
11297
|
name: "Itumbwe Health Post",
|
|
11344
11298
|
locationType: "HEALTH_FACILITY",
|
|
11345
11299
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
11300
|
+
validUntil: null,
|
|
11346
11301
|
externalId: "Ue5Xb3VaC7Pq"
|
|
11347
11302
|
},
|
|
11348
11303
|
{
|
|
@@ -11350,6 +11305,7 @@ var MOCK_LOCATIONS_BASE = [
|
|
|
11350
11305
|
name: "Kabangalala Rural Health Centre",
|
|
11351
11306
|
locationType: "HEALTH_FACILITY",
|
|
11352
11307
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
11308
|
+
validUntil: null,
|
|
11353
11309
|
externalId: "Pz8Kc1TqH6Jn"
|
|
11354
11310
|
},
|
|
11355
11311
|
// Village offices
|
|
@@ -11358,61 +11314,13 @@ var MOCK_LOCATIONS_BASE = [
|
|
|
11358
11314
|
name: "Klow Village Office",
|
|
11359
11315
|
locationType: "CRVS_OFFICE",
|
|
11360
11316
|
administrativeAreaId: "1d4e5f6a-7b8c-4912-8efa-345678901234",
|
|
11317
|
+
validUntil: null,
|
|
11361
11318
|
externalId: "PmAyxAJkxiJ"
|
|
11362
11319
|
}
|
|
11363
11320
|
];
|
|
11364
|
-
var V2_DEFAULT_MOCK_LOCATIONS = MOCK_LOCATIONS_BASE.map(withVersionFields);
|
|
11365
11321
|
var V2_DEFAULT_MOCK_LOCATIONS_MAP = new Map(
|
|
11366
11322
|
V2_DEFAULT_MOCK_LOCATIONS.map((l) => [l.id, l])
|
|
11367
11323
|
);
|
|
11368
11324
|
var V2_DEFAULT_MOCK_ADMINISTRATIVE_AREAS_MAP = new Map(
|
|
11369
11325
|
V2_DEFAULT_MOCK_ADMINISTRATIVE_AREAS.map((a) => [a.id, a])
|
|
11370
11326
|
);
|
|
11371
|
-
|
|
11372
|
-
// ../commons/src/events/locationPayloads.ts
|
|
11373
|
-
var z44 = __toESM(require("zod/v4"));
|
|
11374
|
-
var CreateLocationPayload = z44.object({
|
|
11375
|
-
id: UUID.optional(),
|
|
11376
|
-
versionId: UUID.optional(),
|
|
11377
|
-
name: z44.string(),
|
|
11378
|
-
externalId: z44.string().nullish(),
|
|
11379
|
-
administrativeAreaId: UUID.nullable(),
|
|
11380
|
-
locationType: z44.string().nullable(),
|
|
11381
|
-
effectiveFrom: z44.iso.date().optional(),
|
|
11382
|
-
status: LocationStatus.default("active")
|
|
11383
|
-
});
|
|
11384
|
-
var UpdateLocationPayload = z44.strictObject({
|
|
11385
|
-
id: UUID,
|
|
11386
|
-
versionId: UUID.optional(),
|
|
11387
|
-
name: z44.string(),
|
|
11388
|
-
externalId: z44.string().nullish(),
|
|
11389
|
-
status: LocationStatus,
|
|
11390
|
-
effectiveFrom: z44.iso.date().optional(),
|
|
11391
|
-
lastVersionId: UUID
|
|
11392
|
-
});
|
|
11393
|
-
var WithdrawLocationVersionPayload = z44.object({
|
|
11394
|
-
id: UUID,
|
|
11395
|
-
versionId: UUID
|
|
11396
|
-
});
|
|
11397
|
-
var CreateAdministrativeAreaPayload = z44.object({
|
|
11398
|
-
id: UUID.optional(),
|
|
11399
|
-
versionId: UUID.optional(),
|
|
11400
|
-
name: z44.string(),
|
|
11401
|
-
externalId: z44.string().nullish(),
|
|
11402
|
-
parentId: UUID.nullable(),
|
|
11403
|
-
effectiveFrom: z44.iso.date().optional(),
|
|
11404
|
-
status: LocationStatus.default("active")
|
|
11405
|
-
});
|
|
11406
|
-
var UpdateAdministrativeAreaPayload = z44.strictObject({
|
|
11407
|
-
id: UUID,
|
|
11408
|
-
versionId: UUID.optional(),
|
|
11409
|
-
name: z44.string(),
|
|
11410
|
-
externalId: z44.string().nullish(),
|
|
11411
|
-
status: LocationStatus,
|
|
11412
|
-
effectiveFrom: z44.iso.date().optional(),
|
|
11413
|
-
lastVersionId: UUID
|
|
11414
|
-
});
|
|
11415
|
-
var WithdrawAdministrativeAreaVersionPayload = z44.object({
|
|
11416
|
-
id: UUID,
|
|
11417
|
-
versionId: UUID
|
|
11418
|
-
});
|
|
@@ -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) {
|
|
@@ -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
|
}
|