@learncard/network-plugin 1.4.12 → 1.4.15
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 +16 -5
- 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 +16 -5
- package/dist/lcn-plugin.esm.js.map +2 -2
- package/dist/types.d.ts +2 -1
- package/package.json +8 -8
|
@@ -4613,7 +4613,7 @@ var BoostValidator = mod.object({
|
|
|
4613
4613
|
var BoostRecipientValidator = mod.object({
|
|
4614
4614
|
to: LCNProfileValidator,
|
|
4615
4615
|
from: mod.string(),
|
|
4616
|
-
received: mod.string()
|
|
4616
|
+
received: mod.string().optional()
|
|
4617
4617
|
});
|
|
4618
4618
|
var LCNNotificationTypeEnumValidator = mod.enum([
|
|
4619
4619
|
"CONNECTION_REQUEST",
|
|
@@ -4768,12 +4768,18 @@ var getLearnCardNetworkPlugin = /* @__PURE__ */ __name(async (learnCard, url) =>
|
|
|
4768
4768
|
return client.profile.getProfile.query();
|
|
4769
4769
|
return client.profile.getOtherProfile.query({ profileId });
|
|
4770
4770
|
},
|
|
4771
|
-
searchProfiles: async (_learnCard, input = "", {
|
|
4771
|
+
searchProfiles: async (_learnCard, input = "", {
|
|
4772
|
+
limit = 25,
|
|
4773
|
+
includeSelf = false,
|
|
4774
|
+
includeConnectionStatus = false,
|
|
4775
|
+
includeServiceProfiles = false
|
|
4776
|
+
} = {}) => {
|
|
4772
4777
|
return client.profile.searchProfiles.query({
|
|
4773
4778
|
input,
|
|
4774
4779
|
limit,
|
|
4775
4780
|
includeSelf,
|
|
4776
|
-
includeConnectionStatus
|
|
4781
|
+
includeConnectionStatus,
|
|
4782
|
+
includeServiceProfiles
|
|
4777
4783
|
});
|
|
4778
4784
|
},
|
|
4779
4785
|
connectWith: async (_learnCard, profileId) => {
|
|
@@ -4928,10 +4934,15 @@ var getLearnCardNetworkPlugin = /* @__PURE__ */ __name(async (learnCard, url) =>
|
|
|
4928
4934
|
throw new Error("Please make an account first!");
|
|
4929
4935
|
return client.boost.getBoosts.query();
|
|
4930
4936
|
},
|
|
4931
|
-
getBoostRecipients: async (_learnCard, uri, limit = 25, skip = void 0) => {
|
|
4937
|
+
getBoostRecipients: async (_learnCard, uri, limit = 25, skip = void 0, includeUnacceptedBoosts = true) => {
|
|
4932
4938
|
if (!userData)
|
|
4933
4939
|
throw new Error("Please make an account first!");
|
|
4934
|
-
return client.boost.getBoostRecipients.query({
|
|
4940
|
+
return client.boost.getBoostRecipients.query({
|
|
4941
|
+
uri,
|
|
4942
|
+
limit,
|
|
4943
|
+
skip,
|
|
4944
|
+
includeUnacceptedBoosts
|
|
4945
|
+
});
|
|
4935
4946
|
},
|
|
4936
4947
|
updateBoost: async (_learnCard, uri, updates, credential) => {
|
|
4937
4948
|
if (!userData)
|