@learncard/network-plugin 1.5.4 → 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 +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/lcn-plugin.cjs.development.js +18 -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 +2 -2
- package/dist/lcn-plugin.esm.js +18 -0
- package/dist/lcn-plugin.esm.js.map +2 -2
- package/dist/plugin.d.ts +1 -0
- package/dist/plugin.d.ts.map +1 -0
- package/dist/test/index.test.d.ts +1 -0
- package/dist/test/index.test.d.ts.map +1 -0
- package/dist/test/mocks/sample-vcs.d.ts +1 -0
- package/dist/test/mocks/sample-vcs.d.ts.map +1 -0
- package/dist/types.d.ts +7 -1
- package/dist/types.d.ts.map +1 -0
- package/package.json +8 -8
package/dist/lcn-plugin.esm.js
CHANGED
|
@@ -4524,6 +4524,9 @@ var LCNProfileValidator = mod.object({
|
|
|
4524
4524
|
isServiceProfile: mod.boolean().default(false).optional(),
|
|
4525
4525
|
notificationsWebhook: mod.string().url().startsWith("https://").optional()
|
|
4526
4526
|
});
|
|
4527
|
+
var PaginatedLCNProfilesValidator = PaginationResponseValidator.extend({
|
|
4528
|
+
records: LCNProfileValidator.array()
|
|
4529
|
+
});
|
|
4527
4530
|
var LCNProfileConnectionStatusEnum = mod.enum([
|
|
4528
4531
|
"CONNECTED",
|
|
4529
4532
|
"PENDING_REQUEST_SENT",
|
|
@@ -4887,6 +4890,21 @@ var getLearnCardNetworkPlugin = /* @__PURE__ */ __name(async (learnCard, url) =>
|
|
|
4887
4890
|
updates: { credential, ...updates }
|
|
4888
4891
|
});
|
|
4889
4892
|
},
|
|
4893
|
+
getBoostAdmins: async (_learnCard, uri, options = {}) => {
|
|
4894
|
+
if (!userData)
|
|
4895
|
+
throw new Error("Please make an account first!");
|
|
4896
|
+
return client.boost.getBoostAdmins.query({ uri, ...options });
|
|
4897
|
+
},
|
|
4898
|
+
addBoostAdmin: async (_learnCard, uri, profileId) => {
|
|
4899
|
+
if (!userData)
|
|
4900
|
+
throw new Error("Please make an account first!");
|
|
4901
|
+
return client.boost.addBoostAdmin.mutate({ uri, profileId });
|
|
4902
|
+
},
|
|
4903
|
+
removeBoostAdmin: async (_learnCard, uri, profileId) => {
|
|
4904
|
+
if (!userData)
|
|
4905
|
+
throw new Error("Please make an account first!");
|
|
4906
|
+
return client.boost.removeBoostAdmin.mutate({ uri, profileId });
|
|
4907
|
+
},
|
|
4890
4908
|
deleteBoost: async (_learnCard, uri) => {
|
|
4891
4909
|
if (!userData)
|
|
4892
4910
|
throw new Error("Please make an account first!");
|