@learncard/network-plugin 2.1.4 → 2.1.5
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/lcn-plugin.cjs.development.js +27 -4
- package/dist/lcn-plugin.cjs.development.js.map +2 -2
- package/dist/lcn-plugin.cjs.production.min.js +2 -2
- package/dist/lcn-plugin.cjs.production.min.js.map +3 -3
- package/dist/lcn-plugin.esm.js +27 -4
- package/dist/lcn-plugin.esm.js.map +2 -2
- package/dist/plugin.d.ts.map +1 -1
- package/dist/types.d.ts +16 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +8 -8
package/dist/lcn-plugin.esm.js
CHANGED
|
@@ -4982,13 +4982,16 @@ var BoostValidator = mod.object({
|
|
|
4982
4982
|
category: mod.string().optional(),
|
|
4983
4983
|
status: LCNBoostStatus.optional(),
|
|
4984
4984
|
autoConnectRecipients: mod.boolean().optional(),
|
|
4985
|
+
meta: mod.record(mod.any()).optional(),
|
|
4985
4986
|
claimPermissions: BoostPermissionsValidator.optional()
|
|
4986
4987
|
});
|
|
4988
|
+
var StringQuery = mod.string().or(mod.object({ $in: mod.string().array() })).or(mod.object({ $regex: mod.instanceof(RegExp) }));
|
|
4987
4989
|
var BoostQueryValidator = mod.object({
|
|
4988
|
-
uri:
|
|
4989
|
-
name:
|
|
4990
|
-
type:
|
|
4991
|
-
category:
|
|
4990
|
+
uri: StringQuery,
|
|
4991
|
+
name: StringQuery,
|
|
4992
|
+
type: StringQuery,
|
|
4993
|
+
category: StringQuery,
|
|
4994
|
+
meta: mod.record(StringQuery),
|
|
4992
4995
|
status: LCNBoostStatus.or(mod.object({ $in: LCNBoostStatus.array() })),
|
|
4993
4996
|
autoConnectRecipients: mod.boolean()
|
|
4994
4997
|
}).partial();
|
|
@@ -5519,6 +5522,26 @@ var getLearnCardNetworkPlugin = /* @__PURE__ */ __name(async (learnCard, url) =>
|
|
|
5519
5522
|
throw new Error("Please make an account first!");
|
|
5520
5523
|
return client.boost.countBoostChildren.query({ uri, ...options });
|
|
5521
5524
|
},
|
|
5525
|
+
getBoostSiblings: async (_learnCard, uri, options) => {
|
|
5526
|
+
if (!userData)
|
|
5527
|
+
throw new Error("Please make an account first!");
|
|
5528
|
+
return client.boost.getBoostSiblings.query({ uri, ...options });
|
|
5529
|
+
},
|
|
5530
|
+
countBoostSiblings: async (_learnCard, uri, options) => {
|
|
5531
|
+
if (!userData)
|
|
5532
|
+
throw new Error("Please make an account first!");
|
|
5533
|
+
return client.boost.countBoostSiblings.query({ uri, ...options });
|
|
5534
|
+
},
|
|
5535
|
+
getFamilialBoosts: async (_learnCard, uri, options) => {
|
|
5536
|
+
if (!userData)
|
|
5537
|
+
throw new Error("Please make an account first!");
|
|
5538
|
+
return client.boost.getFamilialBoosts.query({ uri, ...options });
|
|
5539
|
+
},
|
|
5540
|
+
countFamilialBoosts: async (_learnCard, uri, options) => {
|
|
5541
|
+
if (!userData)
|
|
5542
|
+
throw new Error("Please make an account first!");
|
|
5543
|
+
return client.boost.countFamilialBoosts.query({ uri, ...options });
|
|
5544
|
+
},
|
|
5522
5545
|
getBoostParents: async (_learnCard, uri, options) => {
|
|
5523
5546
|
if (!userData)
|
|
5524
5547
|
throw new Error("Please make an account first!");
|