@opencrvs/toolkit 2.1.0-rc.3e7e77b → 2.1.0-rc.3ee9858
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 +0 -1
- package/dist/commons/api/router.d.ts +0 -85
- package/dist/commons/conditionals/conditionals.d.ts +3 -3
- package/dist/commons/events/AdvancedSearchConfig.d.ts +0 -6
- package/dist/commons/events/AuditLog.d.ts +0 -37
- package/dist/commons/events/EventIndex.d.ts +2 -2
- package/dist/commons/events/FieldConfig.d.ts +1 -6
- package/dist/commons/events/index.d.ts +0 -1
- package/dist/commons/events/locations.d.ts +0 -7
- package/dist/conditionals/index.js +0 -1
- package/dist/environment/logger.d.ts +3 -12
- package/dist/environment/logger.d.ts.map +1 -1
- package/dist/events/index.js +0 -88
- package/dist/notification/index.js +25 -99
- package/dist/scopes/index.d.ts +26 -28
- package/dist/scopes/index.js +0 -1
- package/opencrvs-toolkit-2.1.0-rc.3ee9858.tgz +0 -0
- package/package.json +4 -4
- package/tsconfig.tsbuildinfo +1 -1
- package/.nx/cache/file-map.json +0 -360
- package/.nx/cache/project-graph.json +0 -6
- package/dist/commons/events/locationPayloads.d.ts +0 -95
- package/opencrvs-toolkit-2.1.0-rc.3e7e77b.tgz +0 -0
|
@@ -8242,37 +8242,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
8242
8242
|
responseSummary: {
|
|
8243
8243
|
clientId: string;
|
|
8244
8244
|
};
|
|
8245
|
-
} | {
|
|
8246
|
-
id: string;
|
|
8247
|
-
clientId: string;
|
|
8248
|
-
clientType: "system" | "user";
|
|
8249
|
-
createdAt: string;
|
|
8250
|
-
operation: "locations.create";
|
|
8251
|
-
requestData: {
|
|
8252
|
-
id: string;
|
|
8253
|
-
versionId: string;
|
|
8254
|
-
name: string;
|
|
8255
|
-
externalId?: string | null | undefined;
|
|
8256
|
-
effectiveFrom: string;
|
|
8257
|
-
status: string;
|
|
8258
|
-
administrativeAreaId?: string | null | undefined;
|
|
8259
|
-
locationType?: string | null | undefined;
|
|
8260
|
-
};
|
|
8261
|
-
} | {
|
|
8262
|
-
id: string;
|
|
8263
|
-
clientId: string;
|
|
8264
|
-
clientType: "system" | "user";
|
|
8265
|
-
createdAt: string;
|
|
8266
|
-
operation: "administrativeAreas.create";
|
|
8267
|
-
requestData: {
|
|
8268
|
-
id: string;
|
|
8269
|
-
versionId: string;
|
|
8270
|
-
name: string;
|
|
8271
|
-
externalId?: string | null | undefined;
|
|
8272
|
-
effectiveFrom: string;
|
|
8273
|
-
status: string;
|
|
8274
|
-
parentId?: string | null | undefined;
|
|
8275
|
-
};
|
|
8276
8245
|
} | {
|
|
8277
8246
|
id: string;
|
|
8278
8247
|
clientId: string;
|
|
@@ -8405,34 +8374,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
8405
8374
|
output: void;
|
|
8406
8375
|
meta: object;
|
|
8407
8376
|
}>;
|
|
8408
|
-
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
8409
|
-
input: {
|
|
8410
|
-
id?: string | undefined;
|
|
8411
|
-
versionId?: string | undefined;
|
|
8412
|
-
name: string;
|
|
8413
|
-
externalId?: string | null | undefined;
|
|
8414
|
-
administrativeAreaId: string | null;
|
|
8415
|
-
locationType: string | null;
|
|
8416
|
-
effectiveFrom?: string | undefined;
|
|
8417
|
-
status?: "active" | "inactive" | undefined;
|
|
8418
|
-
};
|
|
8419
|
-
output: {
|
|
8420
|
-
id: string & import("zod").$brand<"UUID">;
|
|
8421
|
-
name: string;
|
|
8422
|
-
externalId?: string | null | undefined;
|
|
8423
|
-
administrativeAreaId: (string & import("zod").$brand<"UUID">) | null;
|
|
8424
|
-
locationType: string | null;
|
|
8425
|
-
status: "active" | "inactive";
|
|
8426
|
-
versions: {
|
|
8427
|
-
versionId: string & import("zod").$brand<"UUID">;
|
|
8428
|
-
effectiveFrom: string;
|
|
8429
|
-
name: string;
|
|
8430
|
-
externalId?: string | null | undefined;
|
|
8431
|
-
status: "active" | "inactive";
|
|
8432
|
-
}[];
|
|
8433
|
-
};
|
|
8434
|
-
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
8435
|
-
}>;
|
|
8436
8377
|
get: import("@trpc/server").TRPCQueryProcedure<{
|
|
8437
8378
|
input: {
|
|
8438
8379
|
id: string;
|
|
@@ -8879,32 +8820,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
8879
8820
|
output: void;
|
|
8880
8821
|
meta: object;
|
|
8881
8822
|
}>;
|
|
8882
|
-
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
8883
|
-
input: {
|
|
8884
|
-
id?: string | undefined;
|
|
8885
|
-
versionId?: string | undefined;
|
|
8886
|
-
name: string;
|
|
8887
|
-
externalId?: string | null | undefined;
|
|
8888
|
-
parentId: string | null;
|
|
8889
|
-
effectiveFrom?: string | undefined;
|
|
8890
|
-
status?: "active" | "inactive" | undefined;
|
|
8891
|
-
};
|
|
8892
|
-
output: {
|
|
8893
|
-
id: string & import("zod").$brand<"UUID">;
|
|
8894
|
-
name: string;
|
|
8895
|
-
externalId?: string | null | undefined;
|
|
8896
|
-
parentId: (string & import("zod").$brand<"UUID">) | null;
|
|
8897
|
-
status: "active" | "inactive";
|
|
8898
|
-
versions: {
|
|
8899
|
-
versionId: string & import("zod").$brand<"UUID">;
|
|
8900
|
-
effectiveFrom: string;
|
|
8901
|
-
name: string;
|
|
8902
|
-
externalId?: string | null | undefined;
|
|
8903
|
-
status: "active" | "inactive";
|
|
8904
|
-
}[];
|
|
8905
|
-
};
|
|
8906
|
-
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
8907
|
-
}>;
|
|
8908
8823
|
}>>;
|
|
8909
8824
|
integrations: import("@trpc/server").TRPCBuiltRouter<{
|
|
8910
8825
|
ctx: Partial<{
|
|
@@ -85,16 +85,16 @@ export declare const now: typeof todayDateTimeValueSerializer;
|
|
|
85
85
|
export declare const user: typeof userSerializer & {
|
|
86
86
|
scope: (scope: import("../scopes").ScopeType) => {
|
|
87
87
|
attribute: (option: import("../scopes").ScopeOptionKey) => {
|
|
88
|
-
$scope: "attachment.upload" | "bypassratelimit" | "config.update-all" | "dashboard.view" | "integration.create" | "
|
|
88
|
+
$scope: "attachment.upload" | "bypassratelimit" | "config.update-all" | "dashboard.view" | "integration.create" | "organisation.read-locations" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "profile.electronic-signature" | "record.archive" | "record.confirm-registration" | "record.correct" | "record.create" | "record.custom-action" | "record.declare" | "record.edit" | "record.import" | "record.notify" | "record.print-certified-copies" | "record.read" | "record.register" | "record.reindex" | "record.reject" | "record.reject-registration" | "record.request-correction" | "record.review-duplicates" | "record.search" | "record.unarchive" | "record.unassign-others" | "user.create" | "user.data-seeding" | "user.edit" | "user.read" | "user.read-only-my-audit" | "user.search" | "workqueue";
|
|
89
89
|
$option: "accessLevel" | "declaredBy" | "declaredIn" | "event" | "ids" | "notifiedBy" | "notifiedIn" | "placeOfEvent" | "registeredBy" | "registeredIn" | "role";
|
|
90
90
|
};
|
|
91
91
|
};
|
|
92
92
|
jurisdiction: (jurisdiction: import("../scopes").JurisdictionFilter | {
|
|
93
|
-
$scope: "attachment.upload" | "bypassratelimit" | "config.update-all" | "dashboard.view" | "integration.create" | "
|
|
93
|
+
$scope: "attachment.upload" | "bypassratelimit" | "config.update-all" | "dashboard.view" | "integration.create" | "organisation.read-locations" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "profile.electronic-signature" | "record.archive" | "record.confirm-registration" | "record.correct" | "record.create" | "record.custom-action" | "record.declare" | "record.edit" | "record.import" | "record.notify" | "record.print-certified-copies" | "record.read" | "record.register" | "record.reindex" | "record.reject" | "record.reject-registration" | "record.request-correction" | "record.review-duplicates" | "record.search" | "record.unarchive" | "record.unassign-others" | "user.create" | "user.data-seeding" | "user.edit" | "user.read" | "user.read-only-my-audit" | "user.search" | "workqueue";
|
|
94
94
|
$option: "accessLevel" | "declaredBy" | "declaredIn" | "event" | "ids" | "notifiedBy" | "notifiedIn" | "placeOfEvent" | "registeredBy" | "registeredIn" | "role";
|
|
95
95
|
}) => {
|
|
96
96
|
$jurisdiction: "administrativeArea" | "all" | "location" | {
|
|
97
|
-
$scope: "attachment.upload" | "bypassratelimit" | "config.update-all" | "dashboard.view" | "integration.create" | "
|
|
97
|
+
$scope: "attachment.upload" | "bypassratelimit" | "config.update-all" | "dashboard.view" | "integration.create" | "organisation.read-locations" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "profile.electronic-signature" | "record.archive" | "record.confirm-registration" | "record.correct" | "record.create" | "record.custom-action" | "record.declare" | "record.edit" | "record.import" | "record.notify" | "record.print-certified-copies" | "record.read" | "record.register" | "record.reindex" | "record.reject" | "record.reject-registration" | "record.request-correction" | "record.review-duplicates" | "record.search" | "record.unarchive" | "record.unassign-others" | "user.create" | "user.data-seeding" | "user.edit" | "user.read" | "user.read-only-my-audit" | "user.search" | "workqueue";
|
|
98
98
|
$option: "accessLevel" | "declaredBy" | "declaredIn" | "event" | "ids" | "notifiedBy" | "notifiedIn" | "placeOfEvent" | "registeredBy" | "registeredIn" | "role";
|
|
99
99
|
};
|
|
100
100
|
};
|
|
@@ -103,7 +103,6 @@ export declare const FieldConfigSchema: z.ZodObject<{
|
|
|
103
103
|
"config.update-all": "config.update-all";
|
|
104
104
|
"dashboard.view": "dashboard.view";
|
|
105
105
|
"integration.create": "integration.create";
|
|
106
|
-
"location.edit": "location.edit";
|
|
107
106
|
"organisation.read-locations": "organisation.read-locations";
|
|
108
107
|
"performance.read": "performance.read";
|
|
109
108
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
@@ -284,7 +283,6 @@ export declare const EventFieldConfigSchema: z.ZodObject<{
|
|
|
284
283
|
"config.update-all": "config.update-all";
|
|
285
284
|
"dashboard.view": "dashboard.view";
|
|
286
285
|
"integration.create": "integration.create";
|
|
287
|
-
"location.edit": "location.edit";
|
|
288
286
|
"organisation.read-locations": "organisation.read-locations";
|
|
289
287
|
"performance.read": "performance.read";
|
|
290
288
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
@@ -441,7 +439,6 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
441
439
|
"config.update-all": "config.update-all";
|
|
442
440
|
"dashboard.view": "dashboard.view";
|
|
443
441
|
"integration.create": "integration.create";
|
|
444
|
-
"location.edit": "location.edit";
|
|
445
442
|
"organisation.read-locations": "organisation.read-locations";
|
|
446
443
|
"performance.read": "performance.read";
|
|
447
444
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
@@ -590,7 +587,6 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
590
587
|
"config.update-all": "config.update-all";
|
|
591
588
|
"dashboard.view": "dashboard.view";
|
|
592
589
|
"integration.create": "integration.create";
|
|
593
|
-
"location.edit": "location.edit";
|
|
594
590
|
"organisation.read-locations": "organisation.read-locations";
|
|
595
591
|
"performance.read": "performance.read";
|
|
596
592
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
@@ -750,7 +746,6 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
|
750
746
|
"config.update-all": "config.update-all";
|
|
751
747
|
"dashboard.view": "dashboard.view";
|
|
752
748
|
"integration.create": "integration.create";
|
|
753
|
-
"location.edit": "location.edit";
|
|
754
749
|
"organisation.read-locations": "organisation.read-locations";
|
|
755
750
|
"performance.read": "performance.read";
|
|
756
751
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
@@ -899,7 +894,6 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
|
899
894
|
"config.update-all": "config.update-all";
|
|
900
895
|
"dashboard.view": "dashboard.view";
|
|
901
896
|
"integration.create": "integration.create";
|
|
902
|
-
"location.edit": "location.edit";
|
|
903
897
|
"organisation.read-locations": "organisation.read-locations";
|
|
904
898
|
"performance.read": "performance.read";
|
|
905
899
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
@@ -281,43 +281,6 @@ export declare const AuditLogEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
281
281
|
responseSummary: z.ZodObject<{
|
|
282
282
|
clientId: z.ZodString;
|
|
283
283
|
}, z.core.$strip>;
|
|
284
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
285
|
-
id: z.ZodString;
|
|
286
|
-
clientId: z.ZodString;
|
|
287
|
-
clientType: z.ZodEnum<{
|
|
288
|
-
system: "system";
|
|
289
|
-
user: "user";
|
|
290
|
-
}>;
|
|
291
|
-
createdAt: z.ZodString;
|
|
292
|
-
operation: z.ZodLiteral<"locations.create">;
|
|
293
|
-
requestData: z.ZodObject<{
|
|
294
|
-
id: z.ZodString;
|
|
295
|
-
versionId: z.ZodString;
|
|
296
|
-
name: z.ZodString;
|
|
297
|
-
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
298
|
-
effectiveFrom: z.ZodString;
|
|
299
|
-
status: z.ZodString;
|
|
300
|
-
administrativeAreaId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
301
|
-
locationType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
302
|
-
}, z.core.$strip>;
|
|
303
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
304
|
-
id: z.ZodString;
|
|
305
|
-
clientId: z.ZodString;
|
|
306
|
-
clientType: z.ZodEnum<{
|
|
307
|
-
system: "system";
|
|
308
|
-
user: "user";
|
|
309
|
-
}>;
|
|
310
|
-
createdAt: z.ZodString;
|
|
311
|
-
operation: z.ZodLiteral<"administrativeAreas.create">;
|
|
312
|
-
requestData: z.ZodObject<{
|
|
313
|
-
id: z.ZodString;
|
|
314
|
-
versionId: z.ZodString;
|
|
315
|
-
name: z.ZodString;
|
|
316
|
-
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
317
|
-
effectiveFrom: z.ZodString;
|
|
318
|
-
status: z.ZodString;
|
|
319
|
-
parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
320
|
-
}, z.core.$strip>;
|
|
321
284
|
}, z.core.$strip>, z.ZodObject<{
|
|
322
285
|
id: z.ZodString;
|
|
323
286
|
clientId: z.ZodString;
|
|
@@ -340,10 +340,10 @@ export type QueryTypeShape = {
|
|
|
340
340
|
};
|
|
341
341
|
export declare const QueryType: z.ZodType<QueryTypeShape>;
|
|
342
342
|
export declare const SearchQuery: z.ZodObject<{
|
|
343
|
-
query: z.
|
|
343
|
+
query: z.ZodPipe<z.ZodTransform<any, unknown>, ZodType<QueryTypeShape, unknown, z.core.$ZodTypeInternals<QueryTypeShape, unknown>>>;
|
|
344
344
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
345
345
|
offset: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
346
|
-
sort: z.ZodOptional<z.
|
|
346
|
+
sort: z.ZodOptional<z.ZodPipe<z.ZodTransform<any, unknown>, z.ZodArray<z.ZodObject<{
|
|
347
347
|
field: z.ZodString;
|
|
348
348
|
direction: z.ZodDefault<z.ZodEnum<{
|
|
349
349
|
asc: "asc";
|
|
@@ -1883,7 +1883,6 @@ declare const AdministrativeAreaField: z.ZodObject<{
|
|
|
1883
1883
|
"config.update-all": "config.update-all";
|
|
1884
1884
|
"dashboard.view": "dashboard.view";
|
|
1885
1885
|
"integration.create": "integration.create";
|
|
1886
|
-
"location.edit": "location.edit";
|
|
1887
1886
|
"organisation.read-locations": "organisation.read-locations";
|
|
1888
1887
|
"performance.read": "performance.read";
|
|
1889
1888
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
@@ -2013,7 +2012,6 @@ declare const LocationInput: z.ZodObject<{
|
|
|
2013
2012
|
"config.update-all": "config.update-all";
|
|
2014
2013
|
"dashboard.view": "dashboard.view";
|
|
2015
2014
|
"integration.create": "integration.create";
|
|
2016
|
-
"location.edit": "location.edit";
|
|
2017
2015
|
"organisation.read-locations": "organisation.read-locations";
|
|
2018
2016
|
"performance.read": "performance.read";
|
|
2019
2017
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
@@ -2214,7 +2212,6 @@ declare const Facility: z.ZodObject<{
|
|
|
2214
2212
|
"config.update-all": "config.update-all";
|
|
2215
2213
|
"dashboard.view": "dashboard.view";
|
|
2216
2214
|
"integration.create": "integration.create";
|
|
2217
|
-
"location.edit": "location.edit";
|
|
2218
2215
|
"organisation.read-locations": "organisation.read-locations";
|
|
2219
2216
|
"performance.read": "performance.read";
|
|
2220
2217
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
@@ -2330,7 +2327,6 @@ declare const Office: z.ZodObject<{
|
|
|
2330
2327
|
"config.update-all": "config.update-all";
|
|
2331
2328
|
"dashboard.view": "dashboard.view";
|
|
2332
2329
|
"integration.create": "integration.create";
|
|
2333
|
-
"location.edit": "location.edit";
|
|
2334
2330
|
"organisation.read-locations": "organisation.read-locations";
|
|
2335
2331
|
"performance.read": "performance.read";
|
|
2336
2332
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
@@ -2532,7 +2528,6 @@ declare const Address: z.ZodObject<{
|
|
|
2532
2528
|
"config.update-all": "config.update-all";
|
|
2533
2529
|
"dashboard.view": "dashboard.view";
|
|
2534
2530
|
"integration.create": "integration.create";
|
|
2535
|
-
"location.edit": "location.edit";
|
|
2536
2531
|
"organisation.read-locations": "organisation.read-locations";
|
|
2537
2532
|
"performance.read": "performance.read";
|
|
2538
2533
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
@@ -3050,7 +3045,7 @@ declare const SearchField: z.ZodObject<{
|
|
|
3050
3045
|
}, z.core.$strip>]>>;
|
|
3051
3046
|
type: z.ZodLiteral<"SEARCH">;
|
|
3052
3047
|
configuration: z.ZodObject<{
|
|
3053
|
-
query: z.
|
|
3048
|
+
query: z.ZodPipe<z.ZodTransform<any, unknown>, z.ZodType<import("./EventIndex").QueryTypeShape, unknown, z.core.$ZodTypeInternals<import("./EventIndex").QueryTypeShape, unknown>>>;
|
|
3054
3049
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
3055
3050
|
offset: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
3056
3051
|
validation: z.ZodObject<{
|
|
@@ -45,7 +45,6 @@ export * from './field';
|
|
|
45
45
|
export * from './Flag';
|
|
46
46
|
export * from './event';
|
|
47
47
|
export * from './locations';
|
|
48
|
-
export * from './locationPayloads';
|
|
49
48
|
export { UUID } from '../uuid';
|
|
50
49
|
export { DocumentPath } from '../documents';
|
|
51
50
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -111,13 +111,6 @@ export type SetAdministrativeAreaPayload = z.infer<typeof SetAdministrativeAreaP
|
|
|
111
111
|
export declare function resolveVersion<T extends {
|
|
112
112
|
effectiveFrom: string;
|
|
113
113
|
}>(versions: T[], anchor: string): T;
|
|
114
|
-
/**
|
|
115
|
-
* Whether the entity holds the given externalId with active status at the
|
|
116
|
-
* anchor date or at any point after it. Used for point-in-time uniqueness of
|
|
117
|
-
* external codes: a new holder starting at `anchor` collides when an existing
|
|
118
|
-
* holder is (or is scheduled to be) active with the code from then on.
|
|
119
|
-
*/
|
|
120
|
-
export declare function hasActiveExternalIdOnOrAfter(versions: LocationVersion[], externalId: string, anchor: string): boolean;
|
|
121
114
|
type WrapArrayPreserveNullish<V> = V extends readonly any[] ? V : NonNullable<V>[] | Extract<V, null | undefined>;
|
|
122
115
|
/**
|
|
123
116
|
* For type T, convert fields K to arrays. If field is string, convert to string[].
|
|
@@ -1,15 +1,6 @@
|
|
|
1
|
-
export declare const log:
|
|
2
|
-
|
|
3
|
-
(message?: any, ...optionalParams: any[]): void;
|
|
4
|
-
};
|
|
5
|
-
export declare const warn: {
|
|
6
|
-
(message?: any, ...optionalParams: any[]): void;
|
|
7
|
-
(message?: any, ...optionalParams: any[]): void;
|
|
8
|
-
};
|
|
1
|
+
export declare const log: (message?: any, ...optionalParams: any[]) => void;
|
|
2
|
+
export declare const warn: (message?: any, ...optionalParams: any[]) => void;
|
|
9
3
|
export declare const success: (...args: any[]) => void;
|
|
10
|
-
export declare const info:
|
|
11
|
-
(message?: any, ...optionalParams: any[]): void;
|
|
12
|
-
(message?: any, ...optionalParams: any[]): void;
|
|
13
|
-
};
|
|
4
|
+
export declare const info: (message?: any, ...optionalParams: any[]) => void;
|
|
14
5
|
export declare const error: (...args: any[]) => void;
|
|
15
6
|
//# sourceMappingURL=logger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/environment/logger.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,GAAG
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/environment/logger.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,GAAG,mDAAc,CAAA;AAC9B,eAAO,MAAM,IAAI,mDAAe,CAAA;AAChC,eAAO,MAAM,OAAO,YAAa,GAAG,EAAE,SACI,CAAA;AAC1C,eAAO,MAAM,IAAI,mDAAe,CAAA;AAChC,eAAO,MAAM,KAAK,YAAa,GAAG,EAAE,SAA2C,CAAA"}
|
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,
|
|
@@ -222,8 +220,6 @@ __export(events_exports, {
|
|
|
222
220
|
UUID: () => UUID,
|
|
223
221
|
UnarchiveActionInput: () => UnarchiveActionInput,
|
|
224
222
|
UnassignActionInput: () => UnassignActionInput,
|
|
225
|
-
UpdateAdministrativeAreaPayload: () => UpdateAdministrativeAreaPayload,
|
|
226
|
-
UpdateLocationPayload: () => UpdateLocationPayload,
|
|
227
223
|
UserAuditRecordInput: () => UserAuditRecordInput,
|
|
228
224
|
V2_DEFAULT_MOCK_ADMINISTRATIVE_AREAS: () => V2_DEFAULT_MOCK_ADMINISTRATIVE_AREAS,
|
|
229
225
|
V2_DEFAULT_MOCK_ADMINISTRATIVE_AREAS_MAP: () => V2_DEFAULT_MOCK_ADMINISTRATIVE_AREAS_MAP,
|
|
@@ -233,8 +229,6 @@ __export(events_exports, {
|
|
|
233
229
|
VerificationActionConfig: () => VerificationActionConfig,
|
|
234
230
|
VerificationPageConfig: () => VerificationPageConfig,
|
|
235
231
|
VerificationStatusValue: () => VerificationStatusValue,
|
|
236
|
-
WithdrawAdministrativeAreaVersionPayload: () => WithdrawAdministrativeAreaVersionPayload,
|
|
237
|
-
WithdrawLocationVersionPayload: () => WithdrawLocationVersionPayload,
|
|
238
232
|
Within: () => Within,
|
|
239
233
|
WorkqueueActionType: () => WorkqueueActionType,
|
|
240
234
|
WorkqueueColumn: () => WorkqueueColumn,
|
|
@@ -353,7 +347,6 @@ __export(events_exports, {
|
|
|
353
347
|
getStatusFromActions: () => getStatusFromActions,
|
|
354
348
|
getValidatorsForField: () => getValidatorsForField,
|
|
355
349
|
getVisibleVerificationPageIds: () => getVisibleVerificationPageIds,
|
|
356
|
-
hasActiveExternalIdOnOrAfter: () => hasActiveExternalIdOnOrAfter,
|
|
357
350
|
hasAnyOfScopes: () => hasAnyOfScopes,
|
|
358
351
|
isActionAvailable: () => isActionAvailable,
|
|
359
352
|
isActionConfigType: () => isActionConfigType,
|
|
@@ -512,7 +505,6 @@ var PlainScopeType = z2.enum([
|
|
|
512
505
|
"integration.create",
|
|
513
506
|
"record.import",
|
|
514
507
|
"config.update-all",
|
|
515
|
-
"location.edit",
|
|
516
508
|
"attachment.upload",
|
|
517
509
|
"profile.electronic-signature",
|
|
518
510
|
"user.read-only-my-audit",
|
|
@@ -995,29 +987,6 @@ var IntegrationRefreshSecretEntrySchema = AuditLogEntryBase.extend({
|
|
|
995
987
|
requestData: z5.object({ id: z5.string() }),
|
|
996
988
|
responseSummary: z5.object({ clientId: z5.string() })
|
|
997
989
|
});
|
|
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
990
|
var AttachmentUploadEntrySchema = AuditLogEntryBase.extend({
|
|
1022
991
|
operation: z5.literal("attachments.upload"),
|
|
1023
992
|
requestData: z5.object({
|
|
@@ -1093,8 +1062,6 @@ var AuditLogEntrySchema = z5.discriminatedUnion("operation", [
|
|
|
1093
1062
|
IntegrationActivateEntrySchema,
|
|
1094
1063
|
IntegrationDeleteEntrySchema,
|
|
1095
1064
|
IntegrationRefreshSecretEntrySchema,
|
|
1096
|
-
LocationCreateEntrySchema,
|
|
1097
|
-
AdministrativeAreaCreateEntrySchema,
|
|
1098
1065
|
AttachmentUploadEntrySchema,
|
|
1099
1066
|
UserCreateEntrySchema,
|
|
1100
1067
|
UserReasonEntrySchema,
|
|
@@ -10551,13 +10518,6 @@ function resolveVersion(versions, anchor) {
|
|
|
10551
10518
|
}
|
|
10552
10519
|
return resolved;
|
|
10553
10520
|
}
|
|
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
10521
|
function matchesJurisdictionFilter(locationIds, filter, user2) {
|
|
10562
10522
|
if (!locationIds) {
|
|
10563
10523
|
return false;
|
|
@@ -11368,51 +11328,3 @@ var V2_DEFAULT_MOCK_LOCATIONS_MAP = new Map(
|
|
|
11368
11328
|
var V2_DEFAULT_MOCK_ADMINISTRATIVE_AREAS_MAP = new Map(
|
|
11369
11329
|
V2_DEFAULT_MOCK_ADMINISTRATIVE_AREAS.map((a) => [a.id, a])
|
|
11370
11330
|
);
|
|
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
|
-
});
|