@opencrvs/toolkit 1.9.15-rc.a8774ba → 1.9.15-rc.d0ffc9c
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/events/index.js
CHANGED
|
@@ -1037,9 +1037,7 @@ var SCOPES = {
|
|
|
1037
1037
|
// config
|
|
1038
1038
|
CONFIG_UPDATE_ALL: "config.update:all",
|
|
1039
1039
|
// data seeding
|
|
1040
|
-
USER_DATA_SEEDING: "user.data-seeding"
|
|
1041
|
-
// bootstrap: allows countryconfig to register integrations on startup
|
|
1042
|
-
INTEGRATION_CREATE: "integration.create"
|
|
1040
|
+
USER_DATA_SEEDING: "user.data-seeding"
|
|
1043
1041
|
};
|
|
1044
1042
|
var LegacyScopes = import_zod11.z.union([
|
|
1045
1043
|
import_zod11.z.literal(SCOPES.BYPASSRATELIMIT),
|
|
@@ -1114,7 +1112,6 @@ var UserScopes = import_zod11.z.union([
|
|
|
1114
1112
|
]);
|
|
1115
1113
|
var ConfigScope = import_zod11.z.literal(SCOPES.CONFIG_UPDATE_ALL);
|
|
1116
1114
|
var DataSeedingScope = import_zod11.z.literal(SCOPES.USER_DATA_SEEDING);
|
|
1117
|
-
var IntegrationCreateScope = import_zod11.z.literal(SCOPES.INTEGRATION_CREATE);
|
|
1118
1115
|
var LiteralScopes = import_zod11.z.union([
|
|
1119
1116
|
LegacyScopes,
|
|
1120
1117
|
IntegrationScopes,
|
|
@@ -1132,8 +1129,7 @@ var LiteralScopes = import_zod11.z.union([
|
|
|
1132
1129
|
UserScopes,
|
|
1133
1130
|
ConfigScope,
|
|
1134
1131
|
DataSeedingScope,
|
|
1135
|
-
InternalOperationsScopes
|
|
1136
|
-
IntegrationCreateScope
|
|
1132
|
+
InternalOperationsScopes
|
|
1137
1133
|
]);
|
|
1138
1134
|
var rawConfigurableScopeRegex = /^([a-zA-Z][a-zA-Z0-9.-]*(?:\.[a-zA-Z0-9.-]+)*)\[((?:\w+=[\w.-]+(?:\|[\w.-]+)*)(?:,[\w]+=[\w.-]+(?:\|[\w.-]+)*)*)\]$/;
|
|
1139
1135
|
var rawConfigurableScope = import_zod11.z.string().regex(rawConfigurableScopeRegex);
|
|
@@ -671,9 +671,7 @@ var SCOPES = {
|
|
|
671
671
|
// config
|
|
672
672
|
CONFIG_UPDATE_ALL: "config.update:all",
|
|
673
673
|
// data seeding
|
|
674
|
-
USER_DATA_SEEDING: "user.data-seeding"
|
|
675
|
-
// bootstrap: allows countryconfig to register integrations on startup
|
|
676
|
-
INTEGRATION_CREATE: "integration.create"
|
|
674
|
+
USER_DATA_SEEDING: "user.data-seeding"
|
|
677
675
|
};
|
|
678
676
|
var LegacyScopes = import_zod11.z.union([
|
|
679
677
|
import_zod11.z.literal(SCOPES.BYPASSRATELIMIT),
|
|
@@ -748,7 +746,6 @@ var UserScopes = import_zod11.z.union([
|
|
|
748
746
|
]);
|
|
749
747
|
var ConfigScope = import_zod11.z.literal(SCOPES.CONFIG_UPDATE_ALL);
|
|
750
748
|
var DataSeedingScope = import_zod11.z.literal(SCOPES.USER_DATA_SEEDING);
|
|
751
|
-
var IntegrationCreateScope = import_zod11.z.literal(SCOPES.INTEGRATION_CREATE);
|
|
752
749
|
var LiteralScopes = import_zod11.z.union([
|
|
753
750
|
LegacyScopes,
|
|
754
751
|
IntegrationScopes,
|
|
@@ -766,8 +763,7 @@ var LiteralScopes = import_zod11.z.union([
|
|
|
766
763
|
UserScopes,
|
|
767
764
|
ConfigScope,
|
|
768
765
|
DataSeedingScope,
|
|
769
|
-
InternalOperationsScopes
|
|
770
|
-
IntegrationCreateScope
|
|
766
|
+
InternalOperationsScopes
|
|
771
767
|
]);
|
|
772
768
|
var rawConfigurableScopeRegex = /^([a-zA-Z][a-zA-Z0-9.-]*(?:\.[a-zA-Z0-9.-]+)*)\[((?:\w+=[\w.-]+(?:\|[\w.-]+)*)(?:,[\w]+=[\w.-]+(?:\|[\w.-]+)*)*)\]$/;
|
|
773
769
|
var rawConfigurableScope = import_zod11.z.string().regex(rawConfigurableScopeRegex);
|
package/dist/scopes/index.d.ts
CHANGED
|
@@ -61,10 +61,9 @@ export declare const SCOPES: {
|
|
|
61
61
|
readonly USER_UPDATE_MY_JURISDICTION: "user.update:my-jurisdiction";
|
|
62
62
|
readonly CONFIG_UPDATE_ALL: "config.update:all";
|
|
63
63
|
readonly USER_DATA_SEEDING: "user.data-seeding";
|
|
64
|
-
readonly INTEGRATION_CREATE: "integration.create";
|
|
65
64
|
};
|
|
66
65
|
export declare const SearchScopes: z.ZodUnion<[z.ZodLiteral<"search.birth:my-jurisdiction">, z.ZodLiteral<"search.birth">, z.ZodLiteral<"search.death:my-jurisdiction">, z.ZodLiteral<"search.death">, z.ZodLiteral<"search.marriage:my-jurisdiction">, z.ZodLiteral<"search.marriage">]>;
|
|
67
|
-
declare const LiteralScopes: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"bypassratelimit">, z.ZodLiteral<"register">, z.ZodLiteral<"demo">, z.ZodLiteral<"config">]>, z.ZodUnion<[z.ZodLiteral<"webhook">, z.ZodLiteral<"nationalId">, z.ZodLiteral<"notification-api">, z.ZodLiteral<"recordsearch">]>, z.ZodLiteral<"record.unassign-others">, z.ZodUnion<[z.ZodLiteral<"record.declare-birth">, z.ZodLiteral<"record.declare-birth:my-jurisdiction">, z.ZodLiteral<"record.declare-death">, z.ZodLiteral<"record.declare-death:my-jurisdiction">, z.ZodLiteral<"record.declare-marriage">, z.ZodLiteral<"record.declare-marriage:my-jurisdiction">, z.ZodLiteral<"record.declaration-submit-incomplete">, z.ZodLiteral<"record.declaration-submit-for-review">]>, z.ZodUnion<[z.ZodLiteral<"record.declaration-submit-for-approval">, z.ZodLiteral<"record.declaration-submit-for-updates">, z.ZodLiteral<"record.declaration-edit">, z.ZodLiteral<"record.review-duplicates">, z.ZodLiteral<"record.declaration-archive">, z.ZodLiteral<"record.declaration-reinstate">]>, z.ZodLiteral<"record.register">, z.ZodLiteral<"record.registration-print&issue-certified-copies">, z.ZodUnion<[z.ZodLiteral<"record.registration-request-correction">, z.ZodLiteral<"record.registration-correct">, z.ZodLiteral<"record.confirm-registration">, z.ZodLiteral<"record.reject-registration">]>, z.ZodUnion<[z.ZodLiteral<"search.birth:my-jurisdiction">, z.ZodLiteral<"search.birth">, z.ZodLiteral<"search.death:my-jurisdiction">, z.ZodLiteral<"search.death">, z.ZodLiteral<"search.marriage:my-jurisdiction">, z.ZodLiteral<"search.marriage">]>, z.ZodLiteral<"record.read">, z.ZodLiteral<"profile.electronic-signature">, z.ZodUnion<[z.ZodLiteral<"performance.read">, z.ZodLiteral<"performance.read-dashboards">, z.ZodLiteral<"performance.vital-statistics-export">]>, z.ZodUnion<[z.ZodLiteral<"organisation.read-locations:all">, z.ZodLiteral<"organisation.read-locations:my-office">, z.ZodLiteral<"organisation.read-locations:my-jurisdiction">]>, z.ZodUnion<[z.ZodLiteral<"user.read:all">, z.ZodLiteral<"user.read:my-office">, z.ZodLiteral<"user.read:my-jurisdiction">, z.ZodLiteral<"user.read:only-my-audit">, z.ZodLiteral<"user.create:all">, z.ZodLiteral<"user.create:my-jurisdiction">, z.ZodLiteral<"user.update:all">, z.ZodLiteral<"user.update:my-jurisdiction">]>, z.ZodLiteral<"config.update:all">, z.ZodLiteral<"user.data-seeding">, z.ZodUnion<[z.ZodLiteral<"record.reindex">, z.ZodLiteral<"record.import">]
|
|
66
|
+
declare const LiteralScopes: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"bypassratelimit">, z.ZodLiteral<"register">, z.ZodLiteral<"demo">, z.ZodLiteral<"config">]>, z.ZodUnion<[z.ZodLiteral<"webhook">, z.ZodLiteral<"nationalId">, z.ZodLiteral<"notification-api">, z.ZodLiteral<"recordsearch">]>, z.ZodLiteral<"record.unassign-others">, z.ZodUnion<[z.ZodLiteral<"record.declare-birth">, z.ZodLiteral<"record.declare-birth:my-jurisdiction">, z.ZodLiteral<"record.declare-death">, z.ZodLiteral<"record.declare-death:my-jurisdiction">, z.ZodLiteral<"record.declare-marriage">, z.ZodLiteral<"record.declare-marriage:my-jurisdiction">, z.ZodLiteral<"record.declaration-submit-incomplete">, z.ZodLiteral<"record.declaration-submit-for-review">]>, z.ZodUnion<[z.ZodLiteral<"record.declaration-submit-for-approval">, z.ZodLiteral<"record.declaration-submit-for-updates">, z.ZodLiteral<"record.declaration-edit">, z.ZodLiteral<"record.review-duplicates">, z.ZodLiteral<"record.declaration-archive">, z.ZodLiteral<"record.declaration-reinstate">]>, z.ZodLiteral<"record.register">, z.ZodLiteral<"record.registration-print&issue-certified-copies">, z.ZodUnion<[z.ZodLiteral<"record.registration-request-correction">, z.ZodLiteral<"record.registration-correct">, z.ZodLiteral<"record.confirm-registration">, z.ZodLiteral<"record.reject-registration">]>, z.ZodUnion<[z.ZodLiteral<"search.birth:my-jurisdiction">, z.ZodLiteral<"search.birth">, z.ZodLiteral<"search.death:my-jurisdiction">, z.ZodLiteral<"search.death">, z.ZodLiteral<"search.marriage:my-jurisdiction">, z.ZodLiteral<"search.marriage">]>, z.ZodLiteral<"record.read">, z.ZodLiteral<"profile.electronic-signature">, z.ZodUnion<[z.ZodLiteral<"performance.read">, z.ZodLiteral<"performance.read-dashboards">, z.ZodLiteral<"performance.vital-statistics-export">]>, z.ZodUnion<[z.ZodLiteral<"organisation.read-locations:all">, z.ZodLiteral<"organisation.read-locations:my-office">, z.ZodLiteral<"organisation.read-locations:my-jurisdiction">]>, z.ZodUnion<[z.ZodLiteral<"user.read:all">, z.ZodLiteral<"user.read:my-office">, z.ZodLiteral<"user.read:my-jurisdiction">, z.ZodLiteral<"user.read:only-my-audit">, z.ZodLiteral<"user.create:all">, z.ZodLiteral<"user.create:my-jurisdiction">, z.ZodLiteral<"user.update:all">, z.ZodLiteral<"user.update:my-jurisdiction">]>, z.ZodLiteral<"config.update:all">, z.ZodLiteral<"user.data-seeding">, z.ZodUnion<[z.ZodLiteral<"record.reindex">, z.ZodLiteral<"record.import">]>]>;
|
|
68
67
|
declare const SearchScope: z.ZodObject<{
|
|
69
68
|
type: z.ZodLiteral<"search">;
|
|
70
69
|
options: z.ZodObject<{
|
|
@@ -355,7 +354,7 @@ export declare function parseConfigurableScope(scope: string): {
|
|
|
355
354
|
};
|
|
356
355
|
} | undefined;
|
|
357
356
|
export declare function parseLiteralScope(scope: string): {
|
|
358
|
-
type: "bypassratelimit" | "register" | "demo" | "config" | "webhook" | "nationalId" | "notification-api" | "recordsearch" | "record.import" | "record.reindex" | "record.declare-birth" | "record.declare-birth:my-jurisdiction" | "record.declare-death" | "record.declare-death:my-jurisdiction" | "record.declare-marriage" | "record.declare-marriage:my-jurisdiction" | "record.declaration-submit-incomplete" | "record.declaration-submit-for-review" | "record.unassign-others" | "record.declaration-submit-for-approval" | "record.declaration-submit-for-updates" | "record.declaration-edit" | "record.review-duplicates" | "record.declaration-archive" | "record.declaration-reinstate" | "record.register" | "record.registration-print&issue-certified-copies" | "record.registration-request-correction" | "record.registration-correct" | "record.confirm-registration" | "record.reject-registration" | "search.birth:my-jurisdiction" | "search.birth" | "search.death:my-jurisdiction" | "search.death" | "search.marriage:my-jurisdiction" | "search.marriage" | "record.read" | "profile.electronic-signature" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "organisation.read-locations:all" | "organisation.read-locations:my-office" | "organisation.read-locations:my-jurisdiction" | "user.read:all" | "user.read:my-office" | "user.read:my-jurisdiction" | "user.read:only-my-audit" | "user.create:all" | "user.create:my-jurisdiction" | "user.update:all" | "user.update:my-jurisdiction" | "config.update:all" | "user.data-seeding"
|
|
357
|
+
type: "bypassratelimit" | "register" | "demo" | "config" | "webhook" | "nationalId" | "notification-api" | "recordsearch" | "record.import" | "record.reindex" | "record.declare-birth" | "record.declare-birth:my-jurisdiction" | "record.declare-death" | "record.declare-death:my-jurisdiction" | "record.declare-marriage" | "record.declare-marriage:my-jurisdiction" | "record.declaration-submit-incomplete" | "record.declaration-submit-for-review" | "record.unassign-others" | "record.declaration-submit-for-approval" | "record.declaration-submit-for-updates" | "record.declaration-edit" | "record.review-duplicates" | "record.declaration-archive" | "record.declaration-reinstate" | "record.register" | "record.registration-print&issue-certified-copies" | "record.registration-request-correction" | "record.registration-correct" | "record.confirm-registration" | "record.reject-registration" | "search.birth:my-jurisdiction" | "search.birth" | "search.death:my-jurisdiction" | "search.death" | "search.marriage:my-jurisdiction" | "search.marriage" | "record.read" | "profile.electronic-signature" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "organisation.read-locations:all" | "organisation.read-locations:my-office" | "organisation.read-locations:my-jurisdiction" | "user.read:all" | "user.read:my-office" | "user.read:my-jurisdiction" | "user.read:only-my-audit" | "user.create:all" | "user.create:my-jurisdiction" | "user.update:all" | "user.update:my-jurisdiction" | "config.update:all" | "user.data-seeding";
|
|
359
358
|
} | undefined;
|
|
360
359
|
/**
|
|
361
360
|
* Stringifies a ConfigurableScopes object into a scope string.
|
package/dist/scopes/index.js
CHANGED
|
@@ -112,9 +112,7 @@ var SCOPES = {
|
|
|
112
112
|
// config
|
|
113
113
|
CONFIG_UPDATE_ALL: "config.update:all",
|
|
114
114
|
// data seeding
|
|
115
|
-
USER_DATA_SEEDING: "user.data-seeding"
|
|
116
|
-
// bootstrap: allows countryconfig to register integrations on startup
|
|
117
|
-
INTEGRATION_CREATE: "integration.create"
|
|
115
|
+
USER_DATA_SEEDING: "user.data-seeding"
|
|
118
116
|
};
|
|
119
117
|
var LegacyScopes = import_zod.z.union([
|
|
120
118
|
import_zod.z.literal(SCOPES.BYPASSRATELIMIT),
|
|
@@ -189,7 +187,6 @@ var UserScopes = import_zod.z.union([
|
|
|
189
187
|
]);
|
|
190
188
|
var ConfigScope = import_zod.z.literal(SCOPES.CONFIG_UPDATE_ALL);
|
|
191
189
|
var DataSeedingScope = import_zod.z.literal(SCOPES.USER_DATA_SEEDING);
|
|
192
|
-
var IntegrationCreateScope = import_zod.z.literal(SCOPES.INTEGRATION_CREATE);
|
|
193
190
|
var LiteralScopes = import_zod.z.union([
|
|
194
191
|
LegacyScopes,
|
|
195
192
|
IntegrationScopes,
|
|
@@ -207,8 +204,7 @@ var LiteralScopes = import_zod.z.union([
|
|
|
207
204
|
UserScopes,
|
|
208
205
|
ConfigScope,
|
|
209
206
|
DataSeedingScope,
|
|
210
|
-
InternalOperationsScopes
|
|
211
|
-
IntegrationCreateScope
|
|
207
|
+
InternalOperationsScopes
|
|
212
208
|
]);
|
|
213
209
|
var rawConfigurableScopeRegex = /^([a-zA-Z][a-zA-Z0-9.-]*(?:\.[a-zA-Z0-9.-]+)*)\[((?:\w+=[\w.-]+(?:\|[\w.-]+)*)(?:,[\w]+=[\w.-]+(?:\|[\w.-]+)*)*)\]$/;
|
|
214
210
|
var rawConfigurableScope = import_zod.z.string().regex(rawConfigurableScopeRegex);
|