@learncard/network-plugin 1.4.6 → 1.4.8

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.
@@ -12446,7 +12446,7 @@ var getLearnCardNetworkPlugin = /* @__PURE__ */ __name(async (learnCard, url) =>
12446
12446
  throw new Error("Please make an account first!");
12447
12447
  return client.profile.unblockProfile.mutate({ profileId });
12448
12448
  },
12449
- getBlockedProfiles: async (_learnCard) => {
12449
+ getBlockedProfiles: async () => {
12450
12450
  if (!userData)
12451
12451
  throw new Error("Please make an account first!");
12452
12452
  return client.profile.blocked.query();
@@ -12533,12 +12533,17 @@ var getLearnCardNetworkPlugin = /* @__PURE__ */ __name(async (learnCard, url) =>
12533
12533
  throw new Error("Please make an account first!");
12534
12534
  return client.boost.createBoost.mutate({ credential, ...metadata });
12535
12535
  },
12536
+ getBoost: async (_learnCard, uri) => {
12537
+ if (!userData)
12538
+ throw new Error("Please make an account first!");
12539
+ return client.boost.getBoost.query({ uri });
12540
+ },
12536
12541
  getBoosts: async () => {
12537
12542
  if (!userData)
12538
12543
  throw new Error("Please make an account first!");
12539
12544
  return client.boost.getBoosts.query();
12540
12545
  },
12541
- getBoostRecipients: async (_learnCard, uri, limit = 25, skip) => {
12546
+ getBoostRecipients: async (_learnCard, uri, limit = 25, skip = void 0) => {
12542
12547
  if (!userData)
12543
12548
  throw new Error("Please make an account first!");
12544
12549
  return client.boost.getBoostRecipients.query({ uri, limit, skip });
@@ -12567,6 +12572,7 @@ var getLearnCardNetworkPlugin = /* @__PURE__ */ __name(async (learnCard, url) =>
12567
12572
  if (!targetProfile)
12568
12573
  throw new Error("Target profile not found");
12569
12574
  const boost = data.data;
12575
+ boost.issuanceDate = new Date().toISOString();
12570
12576
  boost.issuer = _learnCard.id.did();
12571
12577
  if (Array.isArray(boost.credentialSubject)) {
12572
12578
  boost.credentialSubject = boost.credentialSubject.map((subject) => ({
@@ -12591,12 +12597,16 @@ var getLearnCardNetworkPlugin = /* @__PURE__ */ __name(async (learnCard, url) =>
12591
12597
  const credential = await _learnCard.invoke.getDIDObject().createDagJWE(vc, [userData.did, targetProfile.did, lcnDid]);
12592
12598
  return client.boost.sendBoost.mutate({ profileId, uri: boostUri, credential });
12593
12599
  },
12594
- registerSigningAuthority: async (_learnCard, endpoint, name3, did2) => {
12600
+ registerSigningAuthority: async (_learnCard, endpoint, name3, _did) => {
12595
12601
  if (!userData)
12596
12602
  throw new Error("Please make an account first!");
12597
- return client.profile.registerSigningAuthority.mutate({ endpoint, name: name3, did: did2 });
12603
+ return client.profile.registerSigningAuthority.mutate({
12604
+ endpoint,
12605
+ name: name3,
12606
+ did: _did
12607
+ });
12598
12608
  },
12599
- getRegisteredSigningAuthorities: async (_learnCard, endpoint, name3, did2) => {
12609
+ getRegisteredSigningAuthorities: async (_learnCard, _endpoint, _name, _did) => {
12600
12610
  if (!userData)
12601
12611
  throw new Error("Please make an account first!");
12602
12612
  return client.profile.signingAuthorities.query();