@learncard/network-plugin 2.1.4 → 2.1.6

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.
@@ -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: mod.string().or(mod.object({ $in: mod.string().array() })),
4989
- name: mod.string().or(mod.object({ $in: mod.string().array() })),
4990
- type: mod.string().or(mod.object({ $in: mod.string().array() })),
4991
- category: mod.string().or(mod.object({ $in: mod.string().array() })),
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!");