@opencrvs/toolkit 2.0.0-rc.43258ca → 2.0.0-rc.437f605
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/create-countryconfig/index.js +73 -0
- package/create-countryconfig/package.json +11 -0
- package/dist/application-config/index.js +56 -31
- package/dist/cli.js +1784 -349
- package/dist/commons/api/router.d.ts +69 -79
- package/dist/commons/application-config/index.d.ts +16 -4
- package/dist/commons/conditionals/conditionals.d.ts +6 -6
- package/dist/commons/events/ActionInput.d.ts +36 -0
- package/dist/commons/events/Draft.d.ts +1 -0
- package/dist/commons/events/EventIndex.d.ts +1 -0
- package/dist/commons/events/EventMetadata.d.ts +1 -0
- package/dist/commons/events/FieldConfig.d.ts +10 -0
- package/dist/commons/events/locations.d.ts +38 -1
- package/dist/commons/events/mocks.test.utils.d.ts +19 -0
- package/dist/commons/events/scopes.d.ts +24 -1
- package/dist/commons/events/state/index.d.ts +2 -1
- package/dist/conditionals/index.js +37 -7
- package/dist/events/index.js +146 -27
- package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts.map +1 -1
- package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.js +63 -39
- package/dist/migrations/v2.0/add-resend-invite-notification.d.ts +3 -0
- package/dist/migrations/v2.0/add-resend-invite-notification.d.ts.map +1 -0
- package/dist/migrations/v2.0/add-resend-invite-notification.js +373 -0
- package/dist/migrations/v2.0/checkout-upstream-files.d.ts +19 -0
- package/dist/migrations/v2.0/checkout-upstream-files.d.ts.map +1 -1
- package/dist/migrations/v2.0/checkout-upstream-files.js +17 -14
- package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts.map +1 -1
- package/dist/migrations/v2.0/convert-config-files-to-ts.js +4 -5
- package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts.map +1 -1
- package/dist/migrations/v2.0/convert-paragraph-to-heading.js +4 -5
- package/dist/migrations/v2.0/create-events-index.d.ts.map +1 -1
- package/dist/migrations/v2.0/create-events-index.js +1 -2
- package/dist/migrations/v2.0/delete-infrastructure-directory.d.ts +11 -0
- package/dist/migrations/v2.0/delete-infrastructure-directory.d.ts.map +1 -0
- package/dist/migrations/v2.0/delete-infrastructure-directory.js +123 -0
- package/dist/migrations/v2.0/index.d.ts +10 -4
- package/dist/migrations/v2.0/index.d.ts.map +1 -1
- package/dist/migrations/v2.0/index.js +1752 -346
- package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts.map +1 -1
- package/dist/migrations/v2.0/make-built-in-validate-actions-custom.js +95 -7
- package/dist/migrations/v2.0/merge-infrastructure-directory.d.ts +13 -0
- package/dist/migrations/v2.0/merge-infrastructure-directory.d.ts.map +1 -0
- package/dist/migrations/v2.0/merge-infrastructure-directory.js +222 -0
- package/dist/migrations/v2.0/migrate-application-config-url.d.ts +3 -0
- package/dist/migrations/v2.0/migrate-application-config-url.d.ts.map +1 -0
- package/dist/migrations/v2.0/migrate-application-config-url.js +342 -0
- package/dist/migrations/v2.0/migrate-scopes.d.ts.map +1 -1
- package/dist/migrations/v2.0/migrate-scopes.js +6 -7
- package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts.map +1 -1
- package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.js +3 -4
- package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts.map +1 -1
- package/dist/migrations/v2.0/migrate-workqueue-configs.js +143 -63
- package/dist/migrations/v2.0/remove-delete-actions.d.ts.map +1 -1
- package/dist/migrations/v2.0/remove-delete-actions.js +3 -4
- package/dist/migrations/v2.0/remove-demo-scope.d.ts.map +1 -1
- package/dist/migrations/v2.0/remove-demo-scope.js +2 -3
- package/dist/migrations/v2.0/remove-deprecated-imports.d.ts.map +1 -1
- package/dist/migrations/v2.0/remove-deprecated-imports.js +3 -4
- package/dist/migrations/v2.0/remove-fhir-url-helpers.d.ts +3 -0
- package/dist/migrations/v2.0/remove-fhir-url-helpers.d.ts.map +1 -0
- package/dist/migrations/v2.0/remove-fhir-url-helpers.js +163 -0
- package/dist/migrations/v2.0/remove-hearth-migrations.d.ts.map +1 -1
- package/dist/migrations/v2.0/remove-hearth-migrations.js +1 -2
- package/dist/migrations/v2.0/remove-old-statistics-service.d.ts +3 -0
- package/dist/migrations/v2.0/remove-old-statistics-service.d.ts.map +1 -0
- package/dist/migrations/v2.0/remove-old-statistics-service.js +356 -0
- package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts.map +1 -1
- package/dist/migrations/v2.0/remove-pending-certification-flag.js +3 -4
- package/dist/migrations/v2.0/remove-review-from-register-action.d.ts.map +1 -1
- package/dist/migrations/v2.0/remove-review-from-register-action.js +3 -4
- package/dist/migrations/v2.0/remove-unused-environment-variables.d.ts +3 -0
- package/dist/migrations/v2.0/remove-unused-environment-variables.d.ts.map +1 -0
- package/dist/migrations/v2.0/remove-unused-environment-variables.js +186 -0
- package/dist/migrations/v2.0/rename-api-paths.d.ts.map +1 -1
- package/dist/migrations/v2.0/rename-api-paths.js +3 -4
- package/dist/migrations/v2.0/rename-location-parent-id.d.ts.map +1 -1
- package/dist/migrations/v2.0/rename-location-parent-id.js +3 -4
- package/dist/migrations/v2.0/simplify-analytics-precalculations.d.ts.map +1 -1
- package/dist/migrations/v2.0/simplify-analytics-precalculations.js +1 -2
- package/dist/migrations/v2.0/update-package-json.d.ts +3 -0
- package/dist/migrations/v2.0/update-package-json.d.ts.map +1 -0
- package/dist/migrations/v2.0/update-package-json.js +105 -0
- package/dist/notification/index.js +53 -27
- package/dist/scopes/index.d.ts +87 -10
- package/dist/scopes/index.js +43 -8
- package/opencrvs-toolkit-2.0.0-rc.437f605.tgz +0 -0
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/opencrvs-toolkit-2.0.0-rc.43258ca.tgz +0 -0
|
@@ -1105,6 +1105,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1105
1105
|
annotation?: Record<string, unknown> | undefined;
|
|
1106
1106
|
originalActionId?: string | undefined;
|
|
1107
1107
|
keepAssignment?: boolean | undefined;
|
|
1108
|
+
waitFor?: boolean | undefined;
|
|
1108
1109
|
createdAtLocation?: string | null | undefined;
|
|
1109
1110
|
};
|
|
1110
1111
|
output: {
|
|
@@ -1225,6 +1226,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1225
1226
|
annotation?: Record<string, unknown> | undefined;
|
|
1226
1227
|
originalActionId?: string | undefined;
|
|
1227
1228
|
keepAssignment?: boolean | undefined;
|
|
1229
|
+
waitFor?: boolean | undefined;
|
|
1228
1230
|
createdAtLocation?: string | null | undefined;
|
|
1229
1231
|
type?: "DECLARE" | undefined;
|
|
1230
1232
|
};
|
|
@@ -1799,6 +1801,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1799
1801
|
annotation?: Record<string, unknown> | undefined;
|
|
1800
1802
|
originalActionId?: string | undefined;
|
|
1801
1803
|
keepAssignment?: boolean | undefined;
|
|
1804
|
+
waitFor?: boolean | undefined;
|
|
1802
1805
|
createdAtLocation?: string | null | undefined;
|
|
1803
1806
|
type?: "CUSTOM" | undefined;
|
|
1804
1807
|
};
|
|
@@ -2154,6 +2157,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2154
2157
|
annotation?: Record<string, unknown> | undefined;
|
|
2155
2158
|
originalActionId?: string | undefined;
|
|
2156
2159
|
keepAssignment?: boolean | undefined;
|
|
2160
|
+
waitFor?: boolean | undefined;
|
|
2157
2161
|
createdAtLocation?: string | null | undefined;
|
|
2158
2162
|
};
|
|
2159
2163
|
output: {
|
|
@@ -2467,6 +2471,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2467
2471
|
annotation?: Record<string, unknown> | undefined;
|
|
2468
2472
|
originalActionId?: string | undefined;
|
|
2469
2473
|
keepAssignment?: boolean | undefined;
|
|
2474
|
+
waitFor?: boolean | undefined;
|
|
2470
2475
|
createdAtLocation?: string | null | undefined;
|
|
2471
2476
|
type?: "UNASSIGN" | undefined;
|
|
2472
2477
|
assignedTo?: null | undefined;
|
|
@@ -2960,6 +2965,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2960
2965
|
annotation?: Record<string, unknown> | undefined;
|
|
2961
2966
|
originalActionId?: string | undefined;
|
|
2962
2967
|
keepAssignment?: boolean | undefined;
|
|
2968
|
+
waitFor?: boolean | undefined;
|
|
2963
2969
|
createdAtLocation?: string | null | undefined;
|
|
2964
2970
|
type?: "MARK_AS_DUPLICATE" | undefined;
|
|
2965
2971
|
content?: {
|
|
@@ -3277,6 +3283,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3277
3283
|
annotation?: Record<string, unknown> | undefined;
|
|
3278
3284
|
originalActionId?: string | undefined;
|
|
3279
3285
|
keepAssignment?: boolean | undefined;
|
|
3286
|
+
waitFor?: boolean | undefined;
|
|
3280
3287
|
createdAtLocation?: string | null | undefined;
|
|
3281
3288
|
type?: "MARK_AS_NOT_DUPLICATE" | undefined;
|
|
3282
3289
|
};
|
|
@@ -3636,6 +3643,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3636
3643
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
3637
3644
|
updatedAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
3638
3645
|
assignedTo?: string | null | undefined;
|
|
3646
|
+
assignedToSignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
3639
3647
|
updatedBy?: string | null | undefined;
|
|
3640
3648
|
}[];
|
|
3641
3649
|
total: number;
|
|
@@ -3975,10 +3983,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3975
3983
|
output: {
|
|
3976
3984
|
id: string & import("zod").$brand<"UUID">;
|
|
3977
3985
|
name: {
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
}[];
|
|
3986
|
+
firstname: string;
|
|
3987
|
+
surname: string;
|
|
3988
|
+
};
|
|
3982
3989
|
role: string;
|
|
3983
3990
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
3984
3991
|
type: "user";
|
|
@@ -4008,10 +4015,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4008
4015
|
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
4009
4016
|
input: {
|
|
4010
4017
|
name: {
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
}[];
|
|
4018
|
+
firstname: string;
|
|
4019
|
+
surname: string;
|
|
4020
|
+
};
|
|
4015
4021
|
role: string;
|
|
4016
4022
|
primaryOfficeId: string;
|
|
4017
4023
|
data?: Record<string, unknown> | undefined;
|
|
@@ -4030,10 +4036,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4030
4036
|
output: {
|
|
4031
4037
|
id: string & import("zod").$brand<"UUID">;
|
|
4032
4038
|
name: {
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
}[];
|
|
4039
|
+
firstname: string;
|
|
4040
|
+
surname: string;
|
|
4041
|
+
};
|
|
4037
4042
|
role: string;
|
|
4038
4043
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
4039
4044
|
type: "user";
|
|
@@ -4054,10 +4059,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4054
4059
|
id: string;
|
|
4055
4060
|
data?: Record<string, unknown> | undefined;
|
|
4056
4061
|
name?: {
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
}[] | undefined;
|
|
4062
|
+
firstname: string;
|
|
4063
|
+
surname: string;
|
|
4064
|
+
} | undefined;
|
|
4061
4065
|
role?: string | undefined;
|
|
4062
4066
|
fullHonorificName?: string | undefined;
|
|
4063
4067
|
device?: string | undefined;
|
|
@@ -4074,10 +4078,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4074
4078
|
output: {
|
|
4075
4079
|
id: string & import("zod").$brand<"UUID">;
|
|
4076
4080
|
name: {
|
|
4077
|
-
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
}[];
|
|
4081
|
+
firstname: string;
|
|
4082
|
+
surname: string;
|
|
4083
|
+
};
|
|
4081
4084
|
role: string;
|
|
4082
4085
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
4083
4086
|
type: "user";
|
|
@@ -4097,34 +4100,22 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4097
4100
|
input: string[];
|
|
4098
4101
|
output: ({
|
|
4099
4102
|
id: string & import("zod").$brand<"UUID">;
|
|
4103
|
+
type: "user";
|
|
4100
4104
|
name: {
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
}[];
|
|
4105
|
+
firstname: string;
|
|
4106
|
+
surname: string;
|
|
4107
|
+
};
|
|
4105
4108
|
role: string;
|
|
4106
4109
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
4107
|
-
|
|
4108
|
-
status: "active" | "pending" | "deactivated";
|
|
4110
|
+
fullHonorificName?: string | undefined;
|
|
4109
4111
|
avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined;
|
|
4110
|
-
signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
4111
4112
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
4112
|
-
device?: string | undefined;
|
|
4113
|
-
fullHonorificName?: string | undefined;
|
|
4114
|
-
mobile?: string | undefined;
|
|
4115
|
-
email?: string | undefined;
|
|
4116
|
-
data?: Record<string, import("../commons").FieldValue> | undefined;
|
|
4117
4113
|
} | {
|
|
4118
4114
|
id: string & import("zod").$brand<"UUID">;
|
|
4119
|
-
name: string;
|
|
4120
4115
|
type: "system";
|
|
4116
|
+
name: string;
|
|
4121
4117
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
4122
4118
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
4123
|
-
signature?: undefined;
|
|
4124
|
-
avatar?: undefined;
|
|
4125
|
-
fullHonorificName?: string | undefined;
|
|
4126
|
-
legacyId?: string | undefined;
|
|
4127
|
-
status?: undefined;
|
|
4128
4119
|
})[];
|
|
4129
4120
|
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
4130
4121
|
}>;
|
|
@@ -4142,34 +4133,24 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4142
4133
|
};
|
|
4143
4134
|
output: ({
|
|
4144
4135
|
id: string & import("zod").$brand<"UUID">;
|
|
4136
|
+
type: "user";
|
|
4145
4137
|
name: {
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
}[];
|
|
4138
|
+
firstname: string;
|
|
4139
|
+
surname: string;
|
|
4140
|
+
};
|
|
4150
4141
|
role: string;
|
|
4151
4142
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
4152
|
-
type: "user";
|
|
4153
4143
|
status: "active" | "pending" | "deactivated";
|
|
4144
|
+
fullHonorificName?: string | undefined;
|
|
4154
4145
|
avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined;
|
|
4155
|
-
signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
4156
4146
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
4157
|
-
device?: string | undefined;
|
|
4158
|
-
fullHonorificName?: string | undefined;
|
|
4159
|
-
mobile?: string | undefined;
|
|
4160
|
-
email?: string | undefined;
|
|
4161
|
-
data?: Record<string, import("../commons").FieldValue> | undefined;
|
|
4162
4147
|
} | {
|
|
4163
4148
|
id: string & import("zod").$brand<"UUID">;
|
|
4164
|
-
name: string;
|
|
4165
4149
|
type: "system";
|
|
4150
|
+
name: string;
|
|
4166
4151
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
4167
4152
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
4168
|
-
|
|
4169
|
-
avatar?: undefined;
|
|
4170
|
-
fullHonorificName?: string | undefined;
|
|
4171
|
-
legacyId?: string | undefined;
|
|
4172
|
-
status?: undefined;
|
|
4153
|
+
status?: "active" | "pending" | "deactivated" | undefined;
|
|
4173
4154
|
})[];
|
|
4174
4155
|
meta: object;
|
|
4175
4156
|
}>;
|
|
@@ -4282,10 +4263,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4282
4263
|
changeAvatar: import("@trpc/server").TRPCMutationProcedure<{
|
|
4283
4264
|
input: {
|
|
4284
4265
|
userId: string;
|
|
4285
|
-
avatar:
|
|
4286
|
-
type: string;
|
|
4287
|
-
data: string;
|
|
4288
|
-
};
|
|
4266
|
+
avatar: string;
|
|
4289
4267
|
};
|
|
4290
4268
|
output: void;
|
|
4291
4269
|
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
@@ -4317,6 +4295,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4317
4295
|
output: void;
|
|
4318
4296
|
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
4319
4297
|
}>;
|
|
4298
|
+
verifyLoggedInUserPassword: import("@trpc/server").TRPCMutationProcedure<{
|
|
4299
|
+
input: {
|
|
4300
|
+
password: string;
|
|
4301
|
+
};
|
|
4302
|
+
output: {
|
|
4303
|
+
status: string;
|
|
4304
|
+
username: string;
|
|
4305
|
+
id: string;
|
|
4306
|
+
mobile?: string | undefined;
|
|
4307
|
+
};
|
|
4308
|
+
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
4309
|
+
}>;
|
|
4320
4310
|
audit: import("@trpc/server").TRPCBuiltRouter<{
|
|
4321
4311
|
ctx: Partial<{
|
|
4322
4312
|
token: `Bearer ${string}`;
|
|
@@ -4772,7 +4762,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4772
4762
|
'legalStatuses.DECLARED.createdAtLocation'?: {
|
|
4773
4763
|
type: "within";
|
|
4774
4764
|
location: string | {
|
|
4775
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4765
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
|
|
4776
4766
|
$location?: string | undefined;
|
|
4777
4767
|
};
|
|
4778
4768
|
} | undefined;
|
|
@@ -4794,7 +4784,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4794
4784
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
|
4795
4785
|
type: "within";
|
|
4796
4786
|
location: string | {
|
|
4797
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4787
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
|
|
4798
4788
|
$location?: string | undefined;
|
|
4799
4789
|
};
|
|
4800
4790
|
} | undefined;
|
|
@@ -4809,47 +4799,47 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4809
4799
|
createdAtLocation?: {
|
|
4810
4800
|
type: "within";
|
|
4811
4801
|
location: string | {
|
|
4812
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4802
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
|
|
4813
4803
|
$location?: string | undefined;
|
|
4814
4804
|
};
|
|
4815
4805
|
} | {
|
|
4816
4806
|
type: "exact";
|
|
4817
4807
|
term: string | {
|
|
4818
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4808
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
|
|
4819
4809
|
$location?: string | undefined;
|
|
4820
4810
|
};
|
|
4821
4811
|
} | undefined;
|
|
4822
4812
|
updatedAtLocation?: {
|
|
4823
4813
|
type: "within";
|
|
4824
4814
|
location: string | {
|
|
4825
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4815
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
|
|
4826
4816
|
$location?: string | undefined;
|
|
4827
4817
|
};
|
|
4828
4818
|
} | {
|
|
4829
4819
|
type: "exact";
|
|
4830
4820
|
term: string | {
|
|
4831
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4821
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
|
|
4832
4822
|
$location?: string | undefined;
|
|
4833
4823
|
};
|
|
4834
4824
|
} | undefined;
|
|
4835
4825
|
updatedByUserRole?: {
|
|
4836
4826
|
type: "exact";
|
|
4837
4827
|
term: string | {
|
|
4838
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4828
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
|
|
4839
4829
|
$location?: string | undefined;
|
|
4840
4830
|
};
|
|
4841
4831
|
} | undefined;
|
|
4842
4832
|
assignedTo?: {
|
|
4843
4833
|
type: "exact";
|
|
4844
4834
|
term: string | {
|
|
4845
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4835
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
|
|
4846
4836
|
$location?: string | undefined;
|
|
4847
4837
|
};
|
|
4848
4838
|
} | undefined;
|
|
4849
4839
|
createdBy?: {
|
|
4850
4840
|
type: "exact";
|
|
4851
4841
|
term: string | {
|
|
4852
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4842
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
|
|
4853
4843
|
$location?: string | undefined;
|
|
4854
4844
|
};
|
|
4855
4845
|
} | undefined;
|
|
@@ -4860,7 +4850,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4860
4850
|
updatedBy?: {
|
|
4861
4851
|
type: "exact";
|
|
4862
4852
|
term: string | {
|
|
4863
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4853
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
|
|
4864
4854
|
$location?: string | undefined;
|
|
4865
4855
|
};
|
|
4866
4856
|
} | undefined;
|
|
@@ -4910,7 +4900,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4910
4900
|
'legalStatuses.DECLARED.createdAtLocation'?: {
|
|
4911
4901
|
type: "within";
|
|
4912
4902
|
location: string | {
|
|
4913
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4903
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
|
|
4914
4904
|
$location?: string | undefined;
|
|
4915
4905
|
};
|
|
4916
4906
|
} | undefined;
|
|
@@ -4932,7 +4922,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4932
4922
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
|
4933
4923
|
type: "within";
|
|
4934
4924
|
location: string | {
|
|
4935
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4925
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
|
|
4936
4926
|
$location?: string | undefined;
|
|
4937
4927
|
};
|
|
4938
4928
|
} | undefined;
|
|
@@ -4947,47 +4937,47 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4947
4937
|
createdAtLocation?: {
|
|
4948
4938
|
type: "within";
|
|
4949
4939
|
location: string | {
|
|
4950
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4940
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
|
|
4951
4941
|
$location?: string | undefined;
|
|
4952
4942
|
};
|
|
4953
4943
|
} | {
|
|
4954
4944
|
type: "exact";
|
|
4955
4945
|
term: string | {
|
|
4956
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4946
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
|
|
4957
4947
|
$location?: string | undefined;
|
|
4958
4948
|
};
|
|
4959
4949
|
} | undefined;
|
|
4960
4950
|
updatedAtLocation?: {
|
|
4961
4951
|
type: "within";
|
|
4962
4952
|
location: string | {
|
|
4963
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4953
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
|
|
4964
4954
|
$location?: string | undefined;
|
|
4965
4955
|
};
|
|
4966
4956
|
} | {
|
|
4967
4957
|
type: "exact";
|
|
4968
4958
|
term: string | {
|
|
4969
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4959
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
|
|
4970
4960
|
$location?: string | undefined;
|
|
4971
4961
|
};
|
|
4972
4962
|
} | undefined;
|
|
4973
4963
|
updatedByUserRole?: {
|
|
4974
4964
|
type: "exact";
|
|
4975
4965
|
term: string | {
|
|
4976
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4966
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
|
|
4977
4967
|
$location?: string | undefined;
|
|
4978
4968
|
};
|
|
4979
4969
|
} | undefined;
|
|
4980
4970
|
assignedTo?: {
|
|
4981
4971
|
type: "exact";
|
|
4982
4972
|
term: string | {
|
|
4983
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4973
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
|
|
4984
4974
|
$location?: string | undefined;
|
|
4985
4975
|
};
|
|
4986
4976
|
} | undefined;
|
|
4987
4977
|
createdBy?: {
|
|
4988
4978
|
type: "exact";
|
|
4989
4979
|
term: string | {
|
|
4990
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4980
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
|
|
4991
4981
|
$location?: string | undefined;
|
|
4992
4982
|
};
|
|
4993
4983
|
} | undefined;
|
|
@@ -4998,7 +4988,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4998
4988
|
updatedBy?: {
|
|
4999
4989
|
type: "exact";
|
|
5000
4990
|
term: string | {
|
|
5001
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
4991
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
|
|
5002
4992
|
$location?: string | undefined;
|
|
5003
4993
|
};
|
|
5004
4994
|
} | undefined;
|
|
@@ -24,8 +24,14 @@ export declare const ApplicationConfig: z.ZodObject<{
|
|
|
24
24
|
label: z.ZodObject<import("./events/TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
25
25
|
}, z.core.$strip>>;
|
|
26
26
|
PHONE_NUMBER_PATTERN: z.ZodUnion<[z.ZodString, z.ZodCustom<RegExp, RegExp>]>;
|
|
27
|
-
USER_NOTIFICATION_DELIVERY_METHOD: z.
|
|
28
|
-
|
|
27
|
+
USER_NOTIFICATION_DELIVERY_METHOD: z.ZodEnum<{
|
|
28
|
+
email: "email";
|
|
29
|
+
sms: "sms";
|
|
30
|
+
}>;
|
|
31
|
+
INFORMANT_NOTIFICATION_DELIVERY_METHOD: z.ZodEnum<{
|
|
32
|
+
email: "email";
|
|
33
|
+
sms: "sms";
|
|
34
|
+
}>;
|
|
29
35
|
SEARCH_DEFAULT_CRITERIA: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
30
36
|
NAME: "NAME";
|
|
31
37
|
EMAIL: "EMAIL";
|
|
@@ -46,8 +52,14 @@ export declare const BackgroundConfig: z.ZodObject<{
|
|
|
46
52
|
export declare const LoginConfig: z.ZodObject<{
|
|
47
53
|
COUNTRY: z.ZodString;
|
|
48
54
|
LANGUAGES: z.ZodArray<z.ZodString>;
|
|
49
|
-
USER_NOTIFICATION_DELIVERY_METHOD: z.
|
|
50
|
-
|
|
55
|
+
USER_NOTIFICATION_DELIVERY_METHOD: z.ZodEnum<{
|
|
56
|
+
email: "email";
|
|
57
|
+
sms: "sms";
|
|
58
|
+
}>;
|
|
59
|
+
INFORMANT_NOTIFICATION_DELIVERY_METHOD: z.ZodEnum<{
|
|
60
|
+
email: "email";
|
|
61
|
+
sms: "sms";
|
|
62
|
+
}>;
|
|
51
63
|
PHONE_NUMBER_PATTERN: z.ZodUnion<[z.ZodString, z.ZodCustom<RegExp, RegExp>]>;
|
|
52
64
|
LOGIN_BACKGROUND: z.ZodObject<{
|
|
53
65
|
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
@@ -86,17 +86,17 @@ export declare const user: typeof userSerializer & {
|
|
|
86
86
|
};
|
|
87
87
|
scope: (scope: import("../scopes").ScopeType) => {
|
|
88
88
|
attribute: (option: import("../scopes").ScopeOptionKey) => {
|
|
89
|
-
$scope: "record.search" | "record.create" | "record.read" | "record.declare" | "record.notify" | "record.edit" | "record.reject" | "record.archive" | "record.review-duplicates" | "record.register" | "record.print-certified-copies" | "record.request-correction" | "record.correct" | "record.unassign-others" | "record.custom-action" | "bypassratelimit" | "record.reindex" | "user.data-seeding" | "integration.create" | "record.import" | "config.update-all" | "attachment.upload" | "profile.electronic-signature" | "user.read-only-my-audit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "record.confirm-registration" | "record.reject-registration" | "organisation.read-locations" | "user.read" | "user.create" | "user.edit" | "workqueue" | "dashboard.view";
|
|
90
|
-
$option: "event" | "placeOfEvent" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
|
|
89
|
+
$scope: "record.search" | "record.create" | "record.read" | "record.declare" | "record.notify" | "record.edit" | "record.reject" | "record.archive" | "record.review-duplicates" | "record.register" | "record.print-certified-copies" | "record.request-correction" | "record.correct" | "record.unassign-others" | "record.custom-action" | "bypassratelimit" | "record.reindex" | "user.data-seeding" | "integration.create" | "record.import" | "config.update-all" | "attachment.upload" | "profile.electronic-signature" | "user.read-only-my-audit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "record.confirm-registration" | "record.reject-registration" | "organisation.read-locations" | "user.read" | "user.create" | "user.edit" | "user.search" | "workqueue" | "dashboard.view";
|
|
90
|
+
$option: "role" | "event" | "placeOfEvent" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
|
|
91
91
|
};
|
|
92
92
|
};
|
|
93
93
|
jurisdiction: (jurisdiction: import("../scopes").JurisdictionFilter | {
|
|
94
|
-
$scope: "record.search" | "record.create" | "record.read" | "record.declare" | "record.notify" | "record.edit" | "record.reject" | "record.archive" | "record.review-duplicates" | "record.register" | "record.print-certified-copies" | "record.request-correction" | "record.correct" | "record.unassign-others" | "record.custom-action" | "bypassratelimit" | "record.reindex" | "user.data-seeding" | "integration.create" | "record.import" | "config.update-all" | "attachment.upload" | "profile.electronic-signature" | "user.read-only-my-audit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "record.confirm-registration" | "record.reject-registration" | "organisation.read-locations" | "user.read" | "user.create" | "user.edit" | "workqueue" | "dashboard.view";
|
|
95
|
-
$option: "event" | "placeOfEvent" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
|
|
94
|
+
$scope: "record.search" | "record.create" | "record.read" | "record.declare" | "record.notify" | "record.edit" | "record.reject" | "record.archive" | "record.review-duplicates" | "record.register" | "record.print-certified-copies" | "record.request-correction" | "record.correct" | "record.unassign-others" | "record.custom-action" | "bypassratelimit" | "record.reindex" | "user.data-seeding" | "integration.create" | "record.import" | "config.update-all" | "attachment.upload" | "profile.electronic-signature" | "user.read-only-my-audit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "record.confirm-registration" | "record.reject-registration" | "organisation.read-locations" | "user.read" | "user.create" | "user.edit" | "user.search" | "workqueue" | "dashboard.view";
|
|
95
|
+
$option: "role" | "event" | "placeOfEvent" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
|
|
96
96
|
}) => {
|
|
97
97
|
$jurisdiction: "administrativeArea" | "location" | "all" | {
|
|
98
|
-
$scope: "record.search" | "record.create" | "record.read" | "record.declare" | "record.notify" | "record.edit" | "record.reject" | "record.archive" | "record.review-duplicates" | "record.register" | "record.print-certified-copies" | "record.request-correction" | "record.correct" | "record.unassign-others" | "record.custom-action" | "bypassratelimit" | "record.reindex" | "user.data-seeding" | "integration.create" | "record.import" | "config.update-all" | "attachment.upload" | "profile.electronic-signature" | "user.read-only-my-audit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "record.confirm-registration" | "record.reject-registration" | "organisation.read-locations" | "user.read" | "user.create" | "user.edit" | "workqueue" | "dashboard.view";
|
|
99
|
-
$option: "event" | "placeOfEvent" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
|
|
98
|
+
$scope: "record.search" | "record.create" | "record.read" | "record.declare" | "record.notify" | "record.edit" | "record.reject" | "record.archive" | "record.review-duplicates" | "record.register" | "record.print-certified-copies" | "record.request-correction" | "record.correct" | "record.unassign-others" | "record.custom-action" | "bypassratelimit" | "record.reindex" | "user.data-seeding" | "integration.create" | "record.import" | "config.update-all" | "attachment.upload" | "profile.electronic-signature" | "user.read-only-my-audit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "record.confirm-registration" | "record.reject-registration" | "organisation.read-locations" | "user.read" | "user.create" | "user.edit" | "user.search" | "workqueue" | "dashboard.view";
|
|
99
|
+
$option: "role" | "event" | "placeOfEvent" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
|
|
100
100
|
};
|
|
101
101
|
};
|
|
102
102
|
};
|