@learncard/network-plugin 2.4.28 → 2.4.30
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 +27 -6
- 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 +27 -6
- package/dist/lcn-plugin.esm.js.map +2 -2
- package/dist/plugin.d.ts.map +1 -1
- package/dist/types.d.ts +3 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +7 -7
package/dist/lcn-plugin.esm.js
CHANGED
|
@@ -5167,7 +5167,9 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
5167
5167
|
isServiceProfile: mod2.boolean().default(false).optional(),
|
|
5168
5168
|
type: mod2.string().optional(),
|
|
5169
5169
|
notificationsWebhook: mod2.string().url().startsWith("http").optional(),
|
|
5170
|
-
display: LCNProfileDisplayValidator2.optional()
|
|
5170
|
+
display: LCNProfileDisplayValidator2.optional(),
|
|
5171
|
+
role: mod2.string().default("").optional(),
|
|
5172
|
+
dob: mod2.string().default("").optional()
|
|
5171
5173
|
});
|
|
5172
5174
|
var LCNProfileQueryValidator2 = mod2.object({
|
|
5173
5175
|
profileId: StringQuery2,
|
|
@@ -5363,7 +5365,8 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
5363
5365
|
createdAt: mod2.string(),
|
|
5364
5366
|
updatedAt: mod2.string(),
|
|
5365
5367
|
expiresAt: mod2.string().optional(),
|
|
5366
|
-
autoBoosts: mod2.string().array().optional()
|
|
5368
|
+
autoBoosts: mod2.string().array().optional(),
|
|
5369
|
+
writers: mod2.array(LCNProfileValidator2).optional()
|
|
5367
5370
|
});
|
|
5368
5371
|
var PaginatedConsentFlowContractsValidator2 = PaginationResponseValidator2.extend({
|
|
5369
5372
|
records: ConsentFlowContractDetailsValidator2.omit({ owner: true }).array()
|
|
@@ -5404,7 +5407,8 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
5404
5407
|
write: mod2.object({
|
|
5405
5408
|
credentials: mod2.object({ categories: mod2.record(mod2.boolean()).default({}) }).default({}),
|
|
5406
5409
|
personal: mod2.record(mod2.boolean()).default({})
|
|
5407
|
-
}).default({})
|
|
5410
|
+
}).default({}),
|
|
5411
|
+
deniedWriters: mod2.array(mod2.string()).optional()
|
|
5408
5412
|
});
|
|
5409
5413
|
var PaginatedConsentFlowTermsValidator2 = PaginationResponseValidator2.extend({
|
|
5410
5414
|
records: mod2.object({
|
|
@@ -9484,7 +9488,9 @@ var LCNProfileValidator = mod.object({
|
|
|
9484
9488
|
isServiceProfile: mod.boolean().default(false).optional(),
|
|
9485
9489
|
type: mod.string().optional(),
|
|
9486
9490
|
notificationsWebhook: mod.string().url().startsWith("http").optional(),
|
|
9487
|
-
display: LCNProfileDisplayValidator.optional()
|
|
9491
|
+
display: LCNProfileDisplayValidator.optional(),
|
|
9492
|
+
role: mod.string().default("").optional(),
|
|
9493
|
+
dob: mod.string().default("").optional()
|
|
9488
9494
|
});
|
|
9489
9495
|
var LCNProfileQueryValidator = mod.object({
|
|
9490
9496
|
profileId: StringQuery,
|
|
@@ -9680,7 +9686,8 @@ var ConsentFlowContractDetailsValidator = mod.object({
|
|
|
9680
9686
|
createdAt: mod.string(),
|
|
9681
9687
|
updatedAt: mod.string(),
|
|
9682
9688
|
expiresAt: mod.string().optional(),
|
|
9683
|
-
autoBoosts: mod.string().array().optional()
|
|
9689
|
+
autoBoosts: mod.string().array().optional(),
|
|
9690
|
+
writers: mod.array(LCNProfileValidator).optional()
|
|
9684
9691
|
});
|
|
9685
9692
|
var PaginatedConsentFlowContractsValidator = PaginationResponseValidator.extend({
|
|
9686
9693
|
records: ConsentFlowContractDetailsValidator.omit({ owner: true }).array()
|
|
@@ -9721,7 +9728,8 @@ var ConsentFlowTermsValidator = mod.object({
|
|
|
9721
9728
|
write: mod.object({
|
|
9722
9729
|
credentials: mod.object({ categories: mod.record(mod.boolean()).default({}) }).default({}),
|
|
9723
9730
|
personal: mod.record(mod.boolean()).default({})
|
|
9724
|
-
}).default({})
|
|
9731
|
+
}).default({}),
|
|
9732
|
+
deniedWriters: mod.array(mod.string()).optional()
|
|
9725
9733
|
});
|
|
9726
9734
|
var PaginatedConsentFlowTermsValidator = PaginationResponseValidator.extend({
|
|
9727
9735
|
records: mod.object({
|
|
@@ -10467,6 +10475,19 @@ var getLearnCardNetworkPlugin = /* @__PURE__ */ __name(async (learnCard, url) =>
|
|
|
10467
10475
|
throw new Error("Please make an account first!");
|
|
10468
10476
|
return client.contracts.createConsentFlowContract.mutate(contract);
|
|
10469
10477
|
},
|
|
10478
|
+
addAutoBoostsToContract: async (_learnCard, contractUri, autoboosts) => {
|
|
10479
|
+
if (!userData)
|
|
10480
|
+
throw new Error("Please make an account first!");
|
|
10481
|
+
return client.contracts.addAutoBoostsToContract.mutate({ contractUri, autoboosts });
|
|
10482
|
+
},
|
|
10483
|
+
removeAutoBoostsFromContract: async (_learnCard, contractUri, boostUris) => {
|
|
10484
|
+
if (!userData)
|
|
10485
|
+
throw new Error("Please make an account first!");
|
|
10486
|
+
return client.contracts.removeAutoBoostsFromContract.mutate({
|
|
10487
|
+
contractUri,
|
|
10488
|
+
boostUris
|
|
10489
|
+
});
|
|
10490
|
+
},
|
|
10470
10491
|
getContract: async (_learnCard, uri) => {
|
|
10471
10492
|
return client.contracts.getConsentFlowContract.query({ uri });
|
|
10472
10493
|
},
|