@learncard/network-plugin 2.1.3 → 2.1.5
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 +42 -18
- package/dist/lcn-plugin.cjs.development.js.map +2 -2
- package/dist/lcn-plugin.cjs.production.min.js +2 -2
- package/dist/lcn-plugin.cjs.production.min.js.map +3 -3
- package/dist/lcn-plugin.esm.js +42 -18
- package/dist/lcn-plugin.esm.js.map +2 -2
- package/dist/plugin.d.ts.map +1 -1
- package/dist/types.d.ts +16 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +8 -8
package/dist/lcn-plugin.esm.js
CHANGED
|
@@ -4961,6 +4961,19 @@ var SentCredentialInfoValidator = mod.object({
|
|
|
4961
4961
|
sent: mod.string().datetime(),
|
|
4962
4962
|
received: mod.string().datetime().optional()
|
|
4963
4963
|
});
|
|
4964
|
+
var BoostPermissionsValidator = mod.object({
|
|
4965
|
+
role: mod.string(),
|
|
4966
|
+
canEdit: mod.boolean(),
|
|
4967
|
+
canIssue: mod.boolean(),
|
|
4968
|
+
canRevoke: mod.boolean(),
|
|
4969
|
+
canManagePermissions: mod.boolean(),
|
|
4970
|
+
canIssueChildren: mod.string(),
|
|
4971
|
+
canCreateChildren: mod.string(),
|
|
4972
|
+
canEditChildren: mod.string(),
|
|
4973
|
+
canRevokeChildren: mod.string(),
|
|
4974
|
+
canManageChildrenPermissions: mod.string(),
|
|
4975
|
+
canViewAnalytics: mod.boolean()
|
|
4976
|
+
});
|
|
4964
4977
|
var LCNBoostStatus = mod.enum(["DRAFT", "LIVE"]);
|
|
4965
4978
|
var BoostValidator = mod.object({
|
|
4966
4979
|
uri: mod.string(),
|
|
@@ -4968,13 +4981,17 @@ var BoostValidator = mod.object({
|
|
|
4968
4981
|
type: mod.string().optional(),
|
|
4969
4982
|
category: mod.string().optional(),
|
|
4970
4983
|
status: LCNBoostStatus.optional(),
|
|
4971
|
-
autoConnectRecipients: mod.boolean().optional()
|
|
4984
|
+
autoConnectRecipients: mod.boolean().optional(),
|
|
4985
|
+
meta: mod.record(mod.any()).optional(),
|
|
4986
|
+
claimPermissions: BoostPermissionsValidator.optional()
|
|
4972
4987
|
});
|
|
4988
|
+
var StringQuery = mod.string().or(mod.object({ $in: mod.string().array() })).or(mod.object({ $regex: mod.instanceof(RegExp) }));
|
|
4973
4989
|
var BoostQueryValidator = mod.object({
|
|
4974
|
-
uri:
|
|
4975
|
-
name:
|
|
4976
|
-
type:
|
|
4977
|
-
category:
|
|
4990
|
+
uri: StringQuery,
|
|
4991
|
+
name: StringQuery,
|
|
4992
|
+
type: StringQuery,
|
|
4993
|
+
category: StringQuery,
|
|
4994
|
+
meta: mod.record(StringQuery),
|
|
4978
4995
|
status: LCNBoostStatus.or(mod.object({ $in: LCNBoostStatus.array() })),
|
|
4979
4996
|
autoConnectRecipients: mod.boolean()
|
|
4980
4997
|
}).partial();
|
|
@@ -4998,19 +5015,6 @@ var LCNBoostClaimLinkOptionsValidator = mod.object({
|
|
|
4998
5015
|
ttlSeconds: mod.number().optional(),
|
|
4999
5016
|
totalUses: mod.number().optional()
|
|
5000
5017
|
});
|
|
5001
|
-
var BoostPermissionsValidator = mod.object({
|
|
5002
|
-
role: mod.string(),
|
|
5003
|
-
canEdit: mod.boolean(),
|
|
5004
|
-
canIssue: mod.boolean(),
|
|
5005
|
-
canRevoke: mod.boolean(),
|
|
5006
|
-
canManagePermissions: mod.boolean(),
|
|
5007
|
-
canIssueChildren: mod.string(),
|
|
5008
|
-
canCreateChildren: mod.string(),
|
|
5009
|
-
canEditChildren: mod.string(),
|
|
5010
|
-
canRevokeChildren: mod.string(),
|
|
5011
|
-
canManageChildrenPermissions: mod.string(),
|
|
5012
|
-
canViewAnalytics: mod.boolean()
|
|
5013
|
-
});
|
|
5014
5018
|
var LCNSigningAuthorityValidator = mod.object({
|
|
5015
5019
|
endpoint: mod.string()
|
|
5016
5020
|
});
|
|
@@ -5518,6 +5522,26 @@ var getLearnCardNetworkPlugin = /* @__PURE__ */ __name(async (learnCard, url) =>
|
|
|
5518
5522
|
throw new Error("Please make an account first!");
|
|
5519
5523
|
return client.boost.countBoostChildren.query({ uri, ...options });
|
|
5520
5524
|
},
|
|
5525
|
+
getBoostSiblings: async (_learnCard, uri, options) => {
|
|
5526
|
+
if (!userData)
|
|
5527
|
+
throw new Error("Please make an account first!");
|
|
5528
|
+
return client.boost.getBoostSiblings.query({ uri, ...options });
|
|
5529
|
+
},
|
|
5530
|
+
countBoostSiblings: async (_learnCard, uri, options) => {
|
|
5531
|
+
if (!userData)
|
|
5532
|
+
throw new Error("Please make an account first!");
|
|
5533
|
+
return client.boost.countBoostSiblings.query({ uri, ...options });
|
|
5534
|
+
},
|
|
5535
|
+
getFamilialBoosts: async (_learnCard, uri, options) => {
|
|
5536
|
+
if (!userData)
|
|
5537
|
+
throw new Error("Please make an account first!");
|
|
5538
|
+
return client.boost.getFamilialBoosts.query({ uri, ...options });
|
|
5539
|
+
},
|
|
5540
|
+
countFamilialBoosts: async (_learnCard, uri, options) => {
|
|
5541
|
+
if (!userData)
|
|
5542
|
+
throw new Error("Please make an account first!");
|
|
5543
|
+
return client.boost.countFamilialBoosts.query({ uri, ...options });
|
|
5544
|
+
},
|
|
5521
5545
|
getBoostParents: async (_learnCard, uri, options) => {
|
|
5522
5546
|
if (!userData)
|
|
5523
5547
|
throw new Error("Please make an account first!");
|