@learncard/network-plugin 1.5.5 → 1.5.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.
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",
@@ -4911,6 +4914,21 @@ var getLearnCardNetworkPlugin = /* @__PURE__ */ __name(async (learnCard, url) =>
4911
4914
  updates: { credential, ...updates }
4912
4915
  });
4913
4916
  },
4917
+ getBoostAdmins: async (_learnCard, uri, options = {}) => {
4918
+ if (!userData)
4919
+ throw new Error("Please make an account first!");
4920
+ return client.boost.getBoostAdmins.query({ uri, ...options });
4921
+ },
4922
+ addBoostAdmin: async (_learnCard, uri, profileId) => {
4923
+ if (!userData)
4924
+ throw new Error("Please make an account first!");
4925
+ return client.boost.addBoostAdmin.mutate({ uri, profileId });
4926
+ },
4927
+ removeBoostAdmin: async (_learnCard, uri, profileId) => {
4928
+ if (!userData)
4929
+ throw new Error("Please make an account first!");
4930
+ return client.boost.removeBoostAdmin.mutate({ uri, profileId });
4931
+ },
4914
4932
  deleteBoost: async (_learnCard, uri) => {
4915
4933
  if (!userData)
4916
4934
  throw new Error("Please make an account first!");