@learncard/network-plugin 1.4.13 → 1.4.16
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
package/dist/lcn-plugin.esm.js
CHANGED
|
@@ -4588,7 +4588,7 @@ var BoostValidator = mod.object({
|
|
|
4588
4588
|
var BoostRecipientValidator = mod.object({
|
|
4589
4589
|
to: LCNProfileValidator,
|
|
4590
4590
|
from: mod.string(),
|
|
4591
|
-
received: mod.string()
|
|
4591
|
+
received: mod.string().optional()
|
|
4592
4592
|
});
|
|
4593
4593
|
var LCNNotificationTypeEnumValidator = mod.enum([
|
|
4594
4594
|
"CONNECTION_REQUEST",
|
|
@@ -4743,12 +4743,18 @@ var getLearnCardNetworkPlugin = /* @__PURE__ */ __name(async (learnCard, url) =>
|
|
|
4743
4743
|
return client.profile.getProfile.query();
|
|
4744
4744
|
return client.profile.getOtherProfile.query({ profileId });
|
|
4745
4745
|
},
|
|
4746
|
-
searchProfiles: async (_learnCard, input = "", {
|
|
4746
|
+
searchProfiles: async (_learnCard, input = "", {
|
|
4747
|
+
limit = 25,
|
|
4748
|
+
includeSelf = false,
|
|
4749
|
+
includeConnectionStatus = false,
|
|
4750
|
+
includeServiceProfiles = false
|
|
4751
|
+
} = {}) => {
|
|
4747
4752
|
return client.profile.searchProfiles.query({
|
|
4748
4753
|
input,
|
|
4749
4754
|
limit,
|
|
4750
4755
|
includeSelf,
|
|
4751
|
-
includeConnectionStatus
|
|
4756
|
+
includeConnectionStatus,
|
|
4757
|
+
includeServiceProfiles
|
|
4752
4758
|
});
|
|
4753
4759
|
},
|
|
4754
4760
|
connectWith: async (_learnCard, profileId) => {
|
|
@@ -4903,10 +4909,15 @@ var getLearnCardNetworkPlugin = /* @__PURE__ */ __name(async (learnCard, url) =>
|
|
|
4903
4909
|
throw new Error("Please make an account first!");
|
|
4904
4910
|
return client.boost.getBoosts.query();
|
|
4905
4911
|
},
|
|
4906
|
-
getBoostRecipients: async (_learnCard, uri, limit = 25, skip = void 0) => {
|
|
4912
|
+
getBoostRecipients: async (_learnCard, uri, limit = 25, skip = void 0, includeUnacceptedBoosts = true) => {
|
|
4907
4913
|
if (!userData)
|
|
4908
4914
|
throw new Error("Please make an account first!");
|
|
4909
|
-
return client.boost.getBoostRecipients.query({
|
|
4915
|
+
return client.boost.getBoostRecipients.query({
|
|
4916
|
+
uri,
|
|
4917
|
+
limit,
|
|
4918
|
+
skip,
|
|
4919
|
+
includeUnacceptedBoosts
|
|
4920
|
+
});
|
|
4910
4921
|
},
|
|
4911
4922
|
updateBoost: async (_learnCard, uri, updates, credential) => {
|
|
4912
4923
|
if (!userData)
|