@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
package/dist/helpers.esm.js
CHANGED
|
@@ -125,6 +125,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
125
125
|
RubricCriterionValidator: () => RubricCriterionValidator,
|
|
126
126
|
SentCredentialInfoValidator: () => SentCredentialInfoValidator,
|
|
127
127
|
ServiceValidator: () => ServiceValidator,
|
|
128
|
+
StringQuery: () => StringQuery,
|
|
128
129
|
UnsignedAchievementCredentialValidator: () => UnsignedAchievementCredentialValidator,
|
|
129
130
|
UnsignedVCValidator: () => UnsignedVCValidator,
|
|
130
131
|
UnsignedVPValidator: () => UnsignedVPValidator,
|
|
@@ -3905,6 +3906,19 @@ var require_types_cjs_development = __commonJS({
|
|
|
3905
3906
|
sent: mod.string().datetime(),
|
|
3906
3907
|
received: mod.string().datetime().optional()
|
|
3907
3908
|
});
|
|
3909
|
+
var BoostPermissionsValidator = mod.object({
|
|
3910
|
+
role: mod.string(),
|
|
3911
|
+
canEdit: mod.boolean(),
|
|
3912
|
+
canIssue: mod.boolean(),
|
|
3913
|
+
canRevoke: mod.boolean(),
|
|
3914
|
+
canManagePermissions: mod.boolean(),
|
|
3915
|
+
canIssueChildren: mod.string(),
|
|
3916
|
+
canCreateChildren: mod.string(),
|
|
3917
|
+
canEditChildren: mod.string(),
|
|
3918
|
+
canRevokeChildren: mod.string(),
|
|
3919
|
+
canManageChildrenPermissions: mod.string(),
|
|
3920
|
+
canViewAnalytics: mod.boolean()
|
|
3921
|
+
});
|
|
3908
3922
|
var LCNBoostStatus = mod.enum(["DRAFT", "LIVE"]);
|
|
3909
3923
|
var BoostValidator = mod.object({
|
|
3910
3924
|
uri: mod.string(),
|
|
@@ -3912,13 +3926,17 @@ var require_types_cjs_development = __commonJS({
|
|
|
3912
3926
|
type: mod.string().optional(),
|
|
3913
3927
|
category: mod.string().optional(),
|
|
3914
3928
|
status: LCNBoostStatus.optional(),
|
|
3915
|
-
autoConnectRecipients: mod.boolean().optional()
|
|
3929
|
+
autoConnectRecipients: mod.boolean().optional(),
|
|
3930
|
+
meta: mod.record(mod.any()).optional(),
|
|
3931
|
+
claimPermissions: BoostPermissionsValidator.optional()
|
|
3916
3932
|
});
|
|
3933
|
+
var StringQuery = mod.string().or(mod.object({ $in: mod.string().array() })).or(mod.object({ $regex: mod.instanceof(RegExp) }));
|
|
3917
3934
|
var BoostQueryValidator = mod.object({
|
|
3918
|
-
uri:
|
|
3919
|
-
name:
|
|
3920
|
-
type:
|
|
3921
|
-
category:
|
|
3935
|
+
uri: StringQuery,
|
|
3936
|
+
name: StringQuery,
|
|
3937
|
+
type: StringQuery,
|
|
3938
|
+
category: StringQuery,
|
|
3939
|
+
meta: mod.record(StringQuery),
|
|
3922
3940
|
status: LCNBoostStatus.or(mod.object({ $in: LCNBoostStatus.array() })),
|
|
3923
3941
|
autoConnectRecipients: mod.boolean()
|
|
3924
3942
|
}).partial();
|
|
@@ -3942,19 +3960,6 @@ var require_types_cjs_development = __commonJS({
|
|
|
3942
3960
|
ttlSeconds: mod.number().optional(),
|
|
3943
3961
|
totalUses: mod.number().optional()
|
|
3944
3962
|
});
|
|
3945
|
-
var BoostPermissionsValidator = mod.object({
|
|
3946
|
-
role: mod.string(),
|
|
3947
|
-
canEdit: mod.boolean(),
|
|
3948
|
-
canIssue: mod.boolean(),
|
|
3949
|
-
canRevoke: mod.boolean(),
|
|
3950
|
-
canManagePermissions: mod.boolean(),
|
|
3951
|
-
canIssueChildren: mod.string(),
|
|
3952
|
-
canCreateChildren: mod.string(),
|
|
3953
|
-
canEditChildren: mod.string(),
|
|
3954
|
-
canRevokeChildren: mod.string(),
|
|
3955
|
-
canManageChildrenPermissions: mod.string(),
|
|
3956
|
-
canViewAnalytics: mod.boolean()
|
|
3957
|
-
});
|
|
3958
3963
|
var LCNSigningAuthorityValidator = mod.object({
|
|
3959
3964
|
endpoint: mod.string()
|
|
3960
3965
|
});
|