@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.
@@ -5007,13 +5007,16 @@ var BoostValidator = mod.object({
5007
5007
  category: mod.string().optional(),
5008
5008
  status: LCNBoostStatus.optional(),
5009
5009
  autoConnectRecipients: mod.boolean().optional(),
5010
+ meta: mod.record(mod.any()).optional(),
5010
5011
  claimPermissions: BoostPermissionsValidator.optional()
5011
5012
  });
5013
+ var StringQuery = mod.string().or(mod.object({ $in: mod.string().array() })).or(mod.object({ $regex: mod.instanceof(RegExp) }));
5012
5014
  var BoostQueryValidator = mod.object({
5013
- uri: mod.string().or(mod.object({ $in: mod.string().array() })),
5014
- name: mod.string().or(mod.object({ $in: mod.string().array() })),
5015
- type: mod.string().or(mod.object({ $in: mod.string().array() })),
5016
- category: mod.string().or(mod.object({ $in: mod.string().array() })),
5015
+ uri: StringQuery,
5016
+ name: StringQuery,
5017
+ type: StringQuery,
5018
+ category: StringQuery,
5019
+ meta: mod.record(StringQuery),
5017
5020
  status: LCNBoostStatus.or(mod.object({ $in: LCNBoostStatus.array() })),
5018
5021
  autoConnectRecipients: mod.boolean()
5019
5022
  }).partial();
@@ -5544,6 +5547,26 @@ var getLearnCardNetworkPlugin = /* @__PURE__ */ __name(async (learnCard, url) =>
5544
5547
  throw new Error("Please make an account first!");
5545
5548
  return client.boost.countBoostChildren.query({ uri, ...options });
5546
5549
  },
5550
+ getBoostSiblings: async (_learnCard, uri, options) => {
5551
+ if (!userData)
5552
+ throw new Error("Please make an account first!");
5553
+ return client.boost.getBoostSiblings.query({ uri, ...options });
5554
+ },
5555
+ countBoostSiblings: async (_learnCard, uri, options) => {
5556
+ if (!userData)
5557
+ throw new Error("Please make an account first!");
5558
+ return client.boost.countBoostSiblings.query({ uri, ...options });
5559
+ },
5560
+ getFamilialBoosts: async (_learnCard, uri, options) => {
5561
+ if (!userData)
5562
+ throw new Error("Please make an account first!");
5563
+ return client.boost.getFamilialBoosts.query({ uri, ...options });
5564
+ },
5565
+ countFamilialBoosts: async (_learnCard, uri, options) => {
5566
+ if (!userData)
5567
+ throw new Error("Please make an account first!");
5568
+ return client.boost.countFamilialBoosts.query({ uri, ...options });
5569
+ },
5547
5570
  getBoostParents: async (_learnCard, uri, options) => {
5548
5571
  if (!userData)
5549
5572
  throw new Error("Please make an account first!");