@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
@@ -59,6 +59,7 @@ var require_types_cjs_development = __commonJS({
|
|
59
59
|
AlignmentTargetTypeValidator: () => AlignmentTargetTypeValidator,
|
60
60
|
AlignmentValidator: () => AlignmentValidator,
|
61
61
|
BoostPermissionsValidator: () => BoostPermissionsValidator,
|
62
|
+
BoostQueryValidator: () => BoostQueryValidator,
|
62
63
|
BoostRecipientValidator: () => BoostRecipientValidator,
|
63
64
|
BoostValidator: () => BoostValidator,
|
64
65
|
ConsentFlowContractDataValidator: () => ConsentFlowContractDataValidator,
|
@@ -3909,6 +3910,19 @@ var require_types_cjs_development = __commonJS({
|
|
3909
3910
|
sent: mod.string().datetime(),
|
3910
3911
|
received: mod.string().datetime().optional()
|
3911
3912
|
});
|
3913
|
+
var BoostPermissionsValidator = mod.object({
|
3914
|
+
role: mod.string(),
|
3915
|
+
canEdit: mod.boolean(),
|
3916
|
+
canIssue: mod.boolean(),
|
3917
|
+
canRevoke: mod.boolean(),
|
3918
|
+
canManagePermissions: mod.boolean(),
|
3919
|
+
canIssueChildren: mod.string(),
|
3920
|
+
canCreateChildren: mod.string(),
|
3921
|
+
canEditChildren: mod.string(),
|
3922
|
+
canRevokeChildren: mod.string(),
|
3923
|
+
canManageChildrenPermissions: mod.string(),
|
3924
|
+
canViewAnalytics: mod.boolean()
|
3925
|
+
});
|
3912
3926
|
var LCNBoostStatus = mod.enum(["DRAFT", "LIVE"]);
|
3913
3927
|
var BoostValidator = mod.object({
|
3914
3928
|
uri: mod.string(),
|
@@ -3916,8 +3930,17 @@ var require_types_cjs_development = __commonJS({
|
|
3916
3930
|
type: mod.string().optional(),
|
3917
3931
|
category: mod.string().optional(),
|
3918
3932
|
status: LCNBoostStatus.optional(),
|
3919
|
-
autoConnectRecipients: mod.boolean().optional()
|
3933
|
+
autoConnectRecipients: mod.boolean().optional(),
|
3934
|
+
claimPermissions: BoostPermissionsValidator.optional()
|
3920
3935
|
});
|
3936
|
+
var BoostQueryValidator = mod.object({
|
3937
|
+
uri: mod.string().or(mod.object({ $in: mod.string().array() })),
|
3938
|
+
name: mod.string().or(mod.object({ $in: mod.string().array() })),
|
3939
|
+
type: mod.string().or(mod.object({ $in: mod.string().array() })),
|
3940
|
+
category: mod.string().or(mod.object({ $in: mod.string().array() })),
|
3941
|
+
status: LCNBoostStatus.or(mod.object({ $in: LCNBoostStatus.array() })),
|
3942
|
+
autoConnectRecipients: mod.boolean()
|
3943
|
+
}).partial();
|
3921
3944
|
var PaginatedBoostsValidator = PaginationResponseValidator.extend({
|
3922
3945
|
records: BoostValidator.array()
|
3923
3946
|
});
|
@@ -3938,19 +3961,6 @@ var require_types_cjs_development = __commonJS({
|
|
3938
3961
|
ttlSeconds: mod.number().optional(),
|
3939
3962
|
totalUses: mod.number().optional()
|
3940
3963
|
});
|
3941
|
-
var BoostPermissionsValidator = mod.object({
|
3942
|
-
role: mod.string(),
|
3943
|
-
canEdit: mod.boolean(),
|
3944
|
-
canIssue: mod.boolean(),
|
3945
|
-
canRevoke: mod.boolean(),
|
3946
|
-
canManagePermissions: mod.boolean(),
|
3947
|
-
canIssueChildren: mod.string(),
|
3948
|
-
canCreateChildren: mod.string(),
|
3949
|
-
canEditChildren: mod.string(),
|
3950
|
-
canRevokeChildren: mod.string(),
|
3951
|
-
canManageChildrenPermissions: mod.string(),
|
3952
|
-
canViewAnalytics: mod.boolean()
|
3953
|
-
});
|
3954
3964
|
var LCNSigningAuthorityValidator = mod.object({
|
3955
3965
|
endpoint: mod.string()
|
3956
3966
|
});
|