@learncard/helpers 1.0.16 → 1.0.18
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/helpers.cjs.development.js +24 -14
- 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 +24 -14
- package/dist/helpers.esm.js.map +2 -2
- package/package.json +2 -2
package/dist/helpers.esm.js
CHANGED
@@ -54,6 +54,7 @@ var require_types_cjs_development = __commonJS({
|
|
54
54
|
AlignmentTargetTypeValidator: () => AlignmentTargetTypeValidator,
|
55
55
|
AlignmentValidator: () => AlignmentValidator,
|
56
56
|
BoostPermissionsValidator: () => BoostPermissionsValidator,
|
57
|
+
BoostQueryValidator: () => BoostQueryValidator,
|
57
58
|
BoostRecipientValidator: () => BoostRecipientValidator,
|
58
59
|
BoostValidator: () => BoostValidator,
|
59
60
|
ConsentFlowContractDataValidator: () => ConsentFlowContractDataValidator,
|
@@ -3904,6 +3905,19 @@ var require_types_cjs_development = __commonJS({
|
|
3904
3905
|
sent: mod.string().datetime(),
|
3905
3906
|
received: mod.string().datetime().optional()
|
3906
3907
|
});
|
3908
|
+
var BoostPermissionsValidator = mod.object({
|
3909
|
+
role: mod.string(),
|
3910
|
+
canEdit: mod.boolean(),
|
3911
|
+
canIssue: mod.boolean(),
|
3912
|
+
canRevoke: mod.boolean(),
|
3913
|
+
canManagePermissions: mod.boolean(),
|
3914
|
+
canIssueChildren: mod.string(),
|
3915
|
+
canCreateChildren: mod.string(),
|
3916
|
+
canEditChildren: mod.string(),
|
3917
|
+
canRevokeChildren: mod.string(),
|
3918
|
+
canManageChildrenPermissions: mod.string(),
|
3919
|
+
canViewAnalytics: mod.boolean()
|
3920
|
+
});
|
3907
3921
|
var LCNBoostStatus = mod.enum(["DRAFT", "LIVE"]);
|
3908
3922
|
var BoostValidator = mod.object({
|
3909
3923
|
uri: mod.string(),
|
@@ -3911,8 +3925,17 @@ var require_types_cjs_development = __commonJS({
|
|
3911
3925
|
type: mod.string().optional(),
|
3912
3926
|
category: mod.string().optional(),
|
3913
3927
|
status: LCNBoostStatus.optional(),
|
3914
|
-
autoConnectRecipients: mod.boolean().optional()
|
3928
|
+
autoConnectRecipients: mod.boolean().optional(),
|
3929
|
+
claimPermissions: BoostPermissionsValidator.optional()
|
3915
3930
|
});
|
3931
|
+
var BoostQueryValidator = mod.object({
|
3932
|
+
uri: mod.string().or(mod.object({ $in: mod.string().array() })),
|
3933
|
+
name: mod.string().or(mod.object({ $in: mod.string().array() })),
|
3934
|
+
type: mod.string().or(mod.object({ $in: mod.string().array() })),
|
3935
|
+
category: mod.string().or(mod.object({ $in: mod.string().array() })),
|
3936
|
+
status: LCNBoostStatus.or(mod.object({ $in: LCNBoostStatus.array() })),
|
3937
|
+
autoConnectRecipients: mod.boolean()
|
3938
|
+
}).partial();
|
3916
3939
|
var PaginatedBoostsValidator = PaginationResponseValidator.extend({
|
3917
3940
|
records: BoostValidator.array()
|
3918
3941
|
});
|
@@ -3933,19 +3956,6 @@ var require_types_cjs_development = __commonJS({
|
|
3933
3956
|
ttlSeconds: mod.number().optional(),
|
3934
3957
|
totalUses: mod.number().optional()
|
3935
3958
|
});
|
3936
|
-
var BoostPermissionsValidator = mod.object({
|
3937
|
-
role: mod.string(),
|
3938
|
-
canEdit: mod.boolean(),
|
3939
|
-
canIssue: mod.boolean(),
|
3940
|
-
canRevoke: mod.boolean(),
|
3941
|
-
canManagePermissions: mod.boolean(),
|
3942
|
-
canIssueChildren: mod.string(),
|
3943
|
-
canCreateChildren: mod.string(),
|
3944
|
-
canEditChildren: mod.string(),
|
3945
|
-
canRevokeChildren: mod.string(),
|
3946
|
-
canManageChildrenPermissions: mod.string(),
|
3947
|
-
canViewAnalytics: mod.boolean()
|
3948
|
-
});
|
3949
3959
|
var LCNSigningAuthorityValidator = mod.object({
|
3950
3960
|
endpoint: mod.string()
|
3951
3961
|
});
|