@learncard/network-plugin 1.5.5 → 1.5.7
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 +20 -1
- 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 +20 -1
- 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",
|
|
@@ -4543,7 +4546,8 @@ var BoostValidator = mod.object({
|
|
|
4543
4546
|
name: mod.string().optional(),
|
|
4544
4547
|
type: mod.string().optional(),
|
|
4545
4548
|
category: mod.string().optional(),
|
|
4546
|
-
status: LCNBoostStatus.optional()
|
|
4549
|
+
status: LCNBoostStatus.optional(),
|
|
4550
|
+
autoConnectRecipients: mod.boolean().optional()
|
|
4547
4551
|
});
|
|
4548
4552
|
var BoostRecipientValidator = mod.object({
|
|
4549
4553
|
to: LCNProfileValidator,
|
|
@@ -4887,6 +4891,21 @@ var getLearnCardNetworkPlugin = /* @__PURE__ */ __name(async (learnCard, url) =>
|
|
|
4887
4891
|
updates: { credential, ...updates }
|
|
4888
4892
|
});
|
|
4889
4893
|
},
|
|
4894
|
+
getBoostAdmins: async (_learnCard, uri, options = {}) => {
|
|
4895
|
+
if (!userData)
|
|
4896
|
+
throw new Error("Please make an account first!");
|
|
4897
|
+
return client.boost.getBoostAdmins.query({ uri, ...options });
|
|
4898
|
+
},
|
|
4899
|
+
addBoostAdmin: async (_learnCard, uri, profileId) => {
|
|
4900
|
+
if (!userData)
|
|
4901
|
+
throw new Error("Please make an account first!");
|
|
4902
|
+
return client.boost.addBoostAdmin.mutate({ uri, profileId });
|
|
4903
|
+
},
|
|
4904
|
+
removeBoostAdmin: async (_learnCard, uri, profileId) => {
|
|
4905
|
+
if (!userData)
|
|
4906
|
+
throw new Error("Please make an account first!");
|
|
4907
|
+
return client.boost.removeBoostAdmin.mutate({ uri, profileId });
|
|
4908
|
+
},
|
|
4890
4909
|
deleteBoost: async (_learnCard, uri) => {
|
|
4891
4910
|
if (!userData)
|
|
4892
4911
|
throw new Error("Please make an account first!");
|