@learncard/network-plugin 2.4.19 → 2.4.20
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 +8 -0
- package/dist/lcn-plugin.cjs.development.js.map +2 -2
- 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 +8 -0
- package/dist/lcn-plugin.esm.js.map +2 -2
- package/dist/plugin.d.ts.map +1 -1
- package/dist/types.d.ts +1 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -10521,6 +10521,14 @@ var getLearnCardNetworkPlugin = /* @__PURE__ */ __name(async (learnCard, url) =>
|
|
|
10521
10521
|
verifyConsent: async (_learnCard, uri, profileId) => {
|
|
10522
10522
|
return client.contracts.verifyConsent.query({ uri, profileId });
|
|
10523
10523
|
},
|
|
10524
|
+
syncCredentialsToContract: async (_learnCard, termsUri, categories) => {
|
|
10525
|
+
if (!userData)
|
|
10526
|
+
throw new Error("Please make an account first!");
|
|
10527
|
+
return client.contracts.syncCredentialsToContract.mutate({
|
|
10528
|
+
termsUri,
|
|
10529
|
+
categories
|
|
10530
|
+
});
|
|
10531
|
+
},
|
|
10524
10532
|
addDidMetadata: async (_learnCard, metadata) => {
|
|
10525
10533
|
if (!userData)
|
|
10526
10534
|
throw new Error("Please make an account first!");
|