@learncard/helpers 1.0.18 → 1.0.19
Sign up to get free protection for your applications and to get access to all the features.
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,
|
@@ -3926,13 +3927,16 @@ var require_types_cjs_development = __commonJS({
|
|
3926
3927
|
category: mod.string().optional(),
|
3927
3928
|
status: LCNBoostStatus.optional(),
|
3928
3929
|
autoConnectRecipients: mod.boolean().optional(),
|
3930
|
+
meta: mod.record(mod.any()).optional(),
|
3929
3931
|
claimPermissions: BoostPermissionsValidator.optional()
|
3930
3932
|
});
|
3933
|
+
var StringQuery = mod.string().or(mod.object({ $in: mod.string().array() })).or(mod.object({ $regex: mod.instanceof(RegExp) }));
|
3931
3934
|
var BoostQueryValidator = mod.object({
|
3932
|
-
uri:
|
3933
|
-
name:
|
3934
|
-
type:
|
3935
|
-
category:
|
3935
|
+
uri: StringQuery,
|
3936
|
+
name: StringQuery,
|
3937
|
+
type: StringQuery,
|
3938
|
+
category: StringQuery,
|
3939
|
+
meta: mod.record(StringQuery),
|
3936
3940
|
status: LCNBoostStatus.or(mod.object({ $in: LCNBoostStatus.array() })),
|
3937
3941
|
autoConnectRecipients: mod.boolean()
|
3938
3942
|
}).partial();
|