@learncard/helpers 1.0.17 → 1.0.19
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/helpers.cjs.development.js +23 -18
- package/dist/helpers.cjs.development.js.map +2 -2
- package/dist/helpers.cjs.production.min.js +1 -1
- package/dist/helpers.cjs.production.min.js.map +3 -3
- package/dist/helpers.esm.js +23 -18
- package/dist/helpers.esm.js.map +2 -2
- package/package.json +2 -2
|
@@ -130,6 +130,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
130
130
|
RubricCriterionValidator: () => RubricCriterionValidator,
|
|
131
131
|
SentCredentialInfoValidator: () => SentCredentialInfoValidator,
|
|
132
132
|
ServiceValidator: () => ServiceValidator,
|
|
133
|
+
StringQuery: () => StringQuery,
|
|
133
134
|
UnsignedAchievementCredentialValidator: () => UnsignedAchievementCredentialValidator,
|
|
134
135
|
UnsignedVCValidator: () => UnsignedVCValidator,
|
|
135
136
|
UnsignedVPValidator: () => UnsignedVPValidator,
|
|
@@ -3910,6 +3911,19 @@ var require_types_cjs_development = __commonJS({
|
|
|
3910
3911
|
sent: mod.string().datetime(),
|
|
3911
3912
|
received: mod.string().datetime().optional()
|
|
3912
3913
|
});
|
|
3914
|
+
var BoostPermissionsValidator = mod.object({
|
|
3915
|
+
role: mod.string(),
|
|
3916
|
+
canEdit: mod.boolean(),
|
|
3917
|
+
canIssue: mod.boolean(),
|
|
3918
|
+
canRevoke: mod.boolean(),
|
|
3919
|
+
canManagePermissions: mod.boolean(),
|
|
3920
|
+
canIssueChildren: mod.string(),
|
|
3921
|
+
canCreateChildren: mod.string(),
|
|
3922
|
+
canEditChildren: mod.string(),
|
|
3923
|
+
canRevokeChildren: mod.string(),
|
|
3924
|
+
canManageChildrenPermissions: mod.string(),
|
|
3925
|
+
canViewAnalytics: mod.boolean()
|
|
3926
|
+
});
|
|
3913
3927
|
var LCNBoostStatus = mod.enum(["DRAFT", "LIVE"]);
|
|
3914
3928
|
var BoostValidator = mod.object({
|
|
3915
3929
|
uri: mod.string(),
|
|
@@ -3917,13 +3931,17 @@ var require_types_cjs_development = __commonJS({
|
|
|
3917
3931
|
type: mod.string().optional(),
|
|
3918
3932
|
category: mod.string().optional(),
|
|
3919
3933
|
status: LCNBoostStatus.optional(),
|
|
3920
|
-
autoConnectRecipients: mod.boolean().optional()
|
|
3934
|
+
autoConnectRecipients: mod.boolean().optional(),
|
|
3935
|
+
meta: mod.record(mod.any()).optional(),
|
|
3936
|
+
claimPermissions: BoostPermissionsValidator.optional()
|
|
3921
3937
|
});
|
|
3938
|
+
var StringQuery = mod.string().or(mod.object({ $in: mod.string().array() })).or(mod.object({ $regex: mod.instanceof(RegExp) }));
|
|
3922
3939
|
var BoostQueryValidator = mod.object({
|
|
3923
|
-
uri:
|
|
3924
|
-
name:
|
|
3925
|
-
type:
|
|
3926
|
-
category:
|
|
3940
|
+
uri: StringQuery,
|
|
3941
|
+
name: StringQuery,
|
|
3942
|
+
type: StringQuery,
|
|
3943
|
+
category: StringQuery,
|
|
3944
|
+
meta: mod.record(StringQuery),
|
|
3927
3945
|
status: LCNBoostStatus.or(mod.object({ $in: LCNBoostStatus.array() })),
|
|
3928
3946
|
autoConnectRecipients: mod.boolean()
|
|
3929
3947
|
}).partial();
|
|
@@ -3947,19 +3965,6 @@ var require_types_cjs_development = __commonJS({
|
|
|
3947
3965
|
ttlSeconds: mod.number().optional(),
|
|
3948
3966
|
totalUses: mod.number().optional()
|
|
3949
3967
|
});
|
|
3950
|
-
var BoostPermissionsValidator = mod.object({
|
|
3951
|
-
role: mod.string(),
|
|
3952
|
-
canEdit: mod.boolean(),
|
|
3953
|
-
canIssue: mod.boolean(),
|
|
3954
|
-
canRevoke: mod.boolean(),
|
|
3955
|
-
canManagePermissions: mod.boolean(),
|
|
3956
|
-
canIssueChildren: mod.string(),
|
|
3957
|
-
canCreateChildren: mod.string(),
|
|
3958
|
-
canEditChildren: mod.string(),
|
|
3959
|
-
canRevokeChildren: mod.string(),
|
|
3960
|
-
canManageChildrenPermissions: mod.string(),
|
|
3961
|
-
canViewAnalytics: mod.boolean()
|
|
3962
|
-
});
|
|
3963
3968
|
var LCNSigningAuthorityValidator = mod.object({
|
|
3964
3969
|
endpoint: mod.string()
|
|
3965
3970
|
});
|