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