@learncard/network-plugin 1.4.7 → 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.
- package/dist/lcn-plugin.cjs.development.js +14 -5
- package/dist/lcn-plugin.cjs.development.js.map +3 -3
- package/dist/lcn-plugin.cjs.production.min.js +1 -1
- package/dist/lcn-plugin.cjs.production.min.js.map +3 -3
- package/dist/lcn-plugin.esm.js +14 -5
- package/dist/lcn-plugin.esm.js.map +3 -3
- package/dist/types.d.ts +3 -0
- package/package.json +2 -2
package/dist/lcn-plugin.esm.js
CHANGED
|
@@ -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 (
|
|
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 });
|
|
@@ -12588,12 +12593,16 @@ var getLearnCardNetworkPlugin = /* @__PURE__ */ __name(async (learnCard, url) =>
|
|
|
12588
12593
|
const credential = await _learnCard.invoke.getDIDObject().createDagJWE(vc, [userData.did, targetProfile.did, lcnDid]);
|
|
12589
12594
|
return client.boost.sendBoost.mutate({ profileId, uri: boostUri, credential });
|
|
12590
12595
|
},
|
|
12591
|
-
registerSigningAuthority: async (_learnCard, endpoint, name3,
|
|
12596
|
+
registerSigningAuthority: async (_learnCard, endpoint, name3, _did) => {
|
|
12592
12597
|
if (!userData)
|
|
12593
12598
|
throw new Error("Please make an account first!");
|
|
12594
|
-
return client.profile.registerSigningAuthority.mutate({
|
|
12599
|
+
return client.profile.registerSigningAuthority.mutate({
|
|
12600
|
+
endpoint,
|
|
12601
|
+
name: name3,
|
|
12602
|
+
did: _did
|
|
12603
|
+
});
|
|
12595
12604
|
},
|
|
12596
|
-
getRegisteredSigningAuthorities: async (_learnCard,
|
|
12605
|
+
getRegisteredSigningAuthorities: async (_learnCard, _endpoint, _name, _did) => {
|
|
12597
12606
|
if (!userData)
|
|
12598
12607
|
throw new Error("Please make an account first!");
|
|
12599
12608
|
return client.profile.signingAuthorities.query();
|