@learncard/network-plugin 1.5.5 → 1.5.7

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/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from './types';
2
2
  export * from './plugin';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC"}
@@ -4548,6 +4548,9 @@ var LCNProfileValidator = mod.object({
4548
4548
  isServiceProfile: mod.boolean().default(false).optional(),
4549
4549
  notificationsWebhook: mod.string().url().startsWith("https://").optional()
4550
4550
  });
4551
+ var PaginatedLCNProfilesValidator = PaginationResponseValidator.extend({
4552
+ records: LCNProfileValidator.array()
4553
+ });
4551
4554
  var LCNProfileConnectionStatusEnum = mod.enum([
4552
4555
  "CONNECTED",
4553
4556
  "PENDING_REQUEST_SENT",
@@ -4567,7 +4570,8 @@ var BoostValidator = mod.object({
4567
4570
  name: mod.string().optional(),
4568
4571
  type: mod.string().optional(),
4569
4572
  category: mod.string().optional(),
4570
- status: LCNBoostStatus.optional()
4573
+ status: LCNBoostStatus.optional(),
4574
+ autoConnectRecipients: mod.boolean().optional()
4571
4575
  });
4572
4576
  var BoostRecipientValidator = mod.object({
4573
4577
  to: LCNProfileValidator,
@@ -4911,6 +4915,21 @@ var getLearnCardNetworkPlugin = /* @__PURE__ */ __name(async (learnCard, url) =>
4911
4915
  updates: { credential, ...updates }
4912
4916
  });
4913
4917
  },
4918
+ getBoostAdmins: async (_learnCard, uri, options = {}) => {
4919
+ if (!userData)
4920
+ throw new Error("Please make an account first!");
4921
+ return client.boost.getBoostAdmins.query({ uri, ...options });
4922
+ },
4923
+ addBoostAdmin: async (_learnCard, uri, profileId) => {
4924
+ if (!userData)
4925
+ throw new Error("Please make an account first!");
4926
+ return client.boost.addBoostAdmin.mutate({ uri, profileId });
4927
+ },
4928
+ removeBoostAdmin: async (_learnCard, uri, profileId) => {
4929
+ if (!userData)
4930
+ throw new Error("Please make an account first!");
4931
+ return client.boost.removeBoostAdmin.mutate({ uri, profileId });
4932
+ },
4914
4933
  deleteBoost: async (_learnCard, uri) => {
4915
4934
  if (!userData)
4916
4935
  throw new Error("Please make an account first!");