@opencrvs/toolkit 1.9.12-rc.c1cef00 → 1.9.12-rc.c22ddaf
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 -1
- package/dist/cli.js +1 -1
- package/dist/commons/api/router.d.ts +6 -12
- package/dist/commons/events/FieldConfig.d.ts +2 -2
- package/dist/events/index.js +11 -2
- package/dist/migrations/v2.0/checkout-upstream-files.js +1 -1
- package/dist/migrations/v2.0/index.js +1 -1
- package/dist/notification/index.js +1 -1
- package/opencrvs-toolkit-1.9.12-rc.c22ddaf.tgz +0 -0
- package/package.json +1 -1
- package/opencrvs-toolkit-1.9.12-rc.c1cef00.tgz +0 -0
|
@@ -1738,7 +1738,7 @@ var LocationInput = BaseField.extend({
|
|
|
1738
1738
|
configuration: import_v43.default.object({
|
|
1739
1739
|
locationTypes: import_v43.default.array(import_v43.default.string()).optional().describe("Types of the locations that are available for selection."),
|
|
1740
1740
|
allowedLocations: AllowedLocations
|
|
1741
|
-
})
|
|
1741
|
+
}).optional()
|
|
1742
1742
|
}).describe("Input field for a location");
|
|
1743
1743
|
var FileUploadWithOptions = BaseField.extend({
|
|
1744
1744
|
type: import_v43.default.literal(FieldType.FILE_WITH_OPTIONS),
|
package/dist/cli.js
CHANGED
|
@@ -3335,7 +3335,7 @@ Saved ${handlerRelPath}.`);
|
|
|
3335
3335
|
// src/migrations/v2.0/checkout-upstream-files.ts
|
|
3336
3336
|
var import_child_process = require("child_process");
|
|
3337
3337
|
var UPSTREAM_URL = "https://github.com/opencrvs/opencrvs-countryconfig.git";
|
|
3338
|
-
var UPSTREAM_BRANCH = "
|
|
3338
|
+
var UPSTREAM_BRANCH = "develop";
|
|
3339
3339
|
var TEMP_REMOTE = "opencrvs-upgrade-v19-v20-codemod";
|
|
3340
3340
|
var FILES_TO_CHECKOUT = [
|
|
3341
3341
|
"infrastructure/postgres/setup-analytics.sh",
|
|
@@ -4049,7 +4049,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4049
4049
|
email?: string | undefined;
|
|
4050
4050
|
data?: Record<string, import("../commons").FieldValue> | undefined;
|
|
4051
4051
|
};
|
|
4052
|
-
meta:
|
|
4052
|
+
meta: object;
|
|
4053
4053
|
}>;
|
|
4054
4054
|
update: import("@trpc/server").TRPCMutationProcedure<{
|
|
4055
4055
|
input: {
|
|
@@ -4144,6 +4144,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4144
4144
|
email?: string | undefined;
|
|
4145
4145
|
status?: string | undefined;
|
|
4146
4146
|
primaryOfficeId?: string | undefined;
|
|
4147
|
+
sortBy?: "createdAt" | "status" | "username" | "firstname" | "surname" | "role" | "email" | undefined;
|
|
4147
4148
|
};
|
|
4148
4149
|
output: ({
|
|
4149
4150
|
id: string;
|
|
@@ -4176,7 +4177,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4176
4177
|
legacyId?: string | undefined;
|
|
4177
4178
|
status?: undefined;
|
|
4178
4179
|
})[];
|
|
4179
|
-
meta:
|
|
4180
|
+
meta: object;
|
|
4180
4181
|
}>;
|
|
4181
4182
|
actions: import("@trpc/server").TRPCQueryProcedure<{
|
|
4182
4183
|
input: {
|
|
@@ -4307,13 +4308,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4307
4308
|
output: void;
|
|
4308
4309
|
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
4309
4310
|
}>;
|
|
4310
|
-
deactivateSuperUser: import("@trpc/server").TRPCMutationProcedure<{
|
|
4311
|
-
input: {
|
|
4312
|
-
username: string;
|
|
4313
|
-
};
|
|
4314
|
-
output: void;
|
|
4315
|
-
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
4316
|
-
}>;
|
|
4317
4311
|
audit: import("@trpc/server").TRPCBuiltRouter<{
|
|
4318
4312
|
ctx: Partial<{
|
|
4319
4313
|
token: `Bearer ${string}`;
|
|
@@ -4644,7 +4638,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4644
4638
|
locationType: string | null;
|
|
4645
4639
|
externalId?: string | null | undefined;
|
|
4646
4640
|
}[];
|
|
4647
|
-
meta:
|
|
4641
|
+
meta: object;
|
|
4648
4642
|
}>;
|
|
4649
4643
|
set: import("@trpc/server").TRPCMutationProcedure<{
|
|
4650
4644
|
input: {
|
|
@@ -4656,7 +4650,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4656
4650
|
externalId?: string | null | undefined;
|
|
4657
4651
|
}[];
|
|
4658
4652
|
output: void;
|
|
4659
|
-
meta:
|
|
4653
|
+
meta: object;
|
|
4660
4654
|
}>;
|
|
4661
4655
|
get: import("@trpc/server").TRPCQueryProcedure<{
|
|
4662
4656
|
input: {
|
|
@@ -5087,7 +5081,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5087
5081
|
externalId?: string | null | undefined;
|
|
5088
5082
|
}[];
|
|
5089
5083
|
output: void;
|
|
5090
|
-
meta:
|
|
5084
|
+
meta: object;
|
|
5091
5085
|
}>;
|
|
5092
5086
|
}>>;
|
|
5093
5087
|
integrations: import("@trpc/server").TRPCBuiltRouter<{
|
|
@@ -1799,7 +1799,7 @@ declare const LocationInput: z.ZodObject<{
|
|
|
1799
1799
|
}>;
|
|
1800
1800
|
$location: z.ZodOptional<z.ZodString>;
|
|
1801
1801
|
}, z.core.$strip>]>>;
|
|
1802
|
-
configuration: z.ZodObject<{
|
|
1802
|
+
configuration: z.ZodOptional<z.ZodObject<{
|
|
1803
1803
|
locationTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1804
1804
|
allowedLocations: z.ZodOptional<z.ZodObject<{
|
|
1805
1805
|
$jurisdiction: z.ZodUnion<[z.ZodEnum<{
|
|
@@ -1856,7 +1856,7 @@ declare const LocationInput: z.ZodObject<{
|
|
|
1856
1856
|
}>;
|
|
1857
1857
|
}, z.core.$strip>]>;
|
|
1858
1858
|
}, z.core.$strip>>;
|
|
1859
|
-
}, z.core.$strip
|
|
1859
|
+
}, z.core.$strip>>;
|
|
1860
1860
|
}, z.core.$strip>;
|
|
1861
1861
|
export type LocationInput = z.infer<typeof LocationInput>;
|
|
1862
1862
|
declare const FileUploadWithOptions: z.ZodObject<{
|
package/dist/events/index.js
CHANGED
|
@@ -2500,7 +2500,7 @@ var LocationInput = BaseField.extend({
|
|
|
2500
2500
|
configuration: import_v43.default.object({
|
|
2501
2501
|
locationTypes: import_v43.default.array(import_v43.default.string()).optional().describe("Types of the locations that are available for selection."),
|
|
2502
2502
|
allowedLocations: AllowedLocations
|
|
2503
|
-
})
|
|
2503
|
+
}).optional()
|
|
2504
2504
|
}).describe("Input field for a location");
|
|
2505
2505
|
var FileUploadWithOptions = BaseField.extend({
|
|
2506
2506
|
type: import_v43.default.literal(FieldType.FILE_WITH_OPTIONS),
|
|
@@ -4574,7 +4574,16 @@ function aggregateActionDeclarations(event2) {
|
|
|
4574
4574
|
if (!requestAction) {
|
|
4575
4575
|
return declaration;
|
|
4576
4576
|
}
|
|
4577
|
-
|
|
4577
|
+
const declarationWithApprovedCorrection = getCompleteActionDeclaration(
|
|
4578
|
+
declaration,
|
|
4579
|
+
event2,
|
|
4580
|
+
requestAction
|
|
4581
|
+
);
|
|
4582
|
+
return getCompleteActionDeclaration(
|
|
4583
|
+
declarationWithApprovedCorrection,
|
|
4584
|
+
event2,
|
|
4585
|
+
action
|
|
4586
|
+
);
|
|
4578
4587
|
}
|
|
4579
4588
|
return getCompleteActionDeclaration(declaration, event2, action);
|
|
4580
4589
|
}, {});
|
|
@@ -57,7 +57,7 @@ const child_process_1 = require("child_process");
|
|
|
57
57
|
const _1 = require(".");
|
|
58
58
|
const UPSTREAM_URL = 'https://github.com/opencrvs/opencrvs-countryconfig.git';
|
|
59
59
|
// @TODO: This needs to be changed to 'release-v2.0.0' once the branch is created
|
|
60
|
-
const UPSTREAM_BRANCH = '
|
|
60
|
+
const UPSTREAM_BRANCH = 'develop';
|
|
61
61
|
// Remote name used only for the duration of this codemod. Prefixed to avoid
|
|
62
62
|
// clashing with remotes the user may have (origin, upstream, etc.).
|
|
63
63
|
const TEMP_REMOTE = 'opencrvs-upgrade-v19-v20-codemod';
|
|
@@ -3348,7 +3348,7 @@ Saved ${handlerRelPath}.`);
|
|
|
3348
3348
|
// src/migrations/v2.0/checkout-upstream-files.ts
|
|
3349
3349
|
var import_child_process = require("child_process");
|
|
3350
3350
|
var UPSTREAM_URL = "https://github.com/opencrvs/opencrvs-countryconfig.git";
|
|
3351
|
-
var UPSTREAM_BRANCH = "
|
|
3351
|
+
var UPSTREAM_BRANCH = "develop";
|
|
3352
3352
|
var TEMP_REMOTE = "opencrvs-upgrade-v19-v20-codemod";
|
|
3353
3353
|
var FILES_TO_CHECKOUT = [
|
|
3354
3354
|
"infrastructure/postgres/setup-analytics.sh",
|
|
@@ -1992,7 +1992,7 @@ var LocationInput = BaseField.extend({
|
|
|
1992
1992
|
configuration: import_v43.default.object({
|
|
1993
1993
|
locationTypes: import_v43.default.array(import_v43.default.string()).optional().describe("Types of the locations that are available for selection."),
|
|
1994
1994
|
allowedLocations: AllowedLocations
|
|
1995
|
-
})
|
|
1995
|
+
}).optional()
|
|
1996
1996
|
}).describe("Input field for a location");
|
|
1997
1997
|
var FileUploadWithOptions = BaseField.extend({
|
|
1998
1998
|
type: import_v43.default.literal(FieldType.FILE_WITH_OPTIONS),
|
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|