@learncard/network-plugin 2.6.4 → 2.6.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 +16 -3
- 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 +16 -3
- package/dist/lcn-plugin.esm.js.map +2 -2
- package/dist/plugin.d.ts.map +1 -1
- package/dist/types.d.ts +17 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -7073,7 +7073,8 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
7073
7073
|
"CONSENT_FLOW_TRANSACTION",
|
|
7074
7074
|
"ISSUANCE_CLAIMED",
|
|
7075
7075
|
"ISSUANCE_DELIVERED",
|
|
7076
|
-
"ISSUANCE_ERROR"
|
|
7076
|
+
"ISSUANCE_ERROR",
|
|
7077
|
+
"PROFILE_PARENT_APPROVED"
|
|
7077
7078
|
]);
|
|
7078
7079
|
var LCNNotificationMessageValidator2 = z2.object({
|
|
7079
7080
|
title: z2.string().optional(),
|
|
@@ -12248,7 +12249,8 @@ var LCNNotificationTypeEnumValidator = z.enum([
|
|
|
12248
12249
|
"CONSENT_FLOW_TRANSACTION",
|
|
12249
12250
|
"ISSUANCE_CLAIMED",
|
|
12250
12251
|
"ISSUANCE_DELIVERED",
|
|
12251
|
-
"ISSUANCE_ERROR"
|
|
12252
|
+
"ISSUANCE_ERROR",
|
|
12253
|
+
"PROFILE_PARENT_APPROVED"
|
|
12252
12254
|
]);
|
|
12253
12255
|
var LCNNotificationMessageValidator = z.object({
|
|
12254
12256
|
title: z.string().optional(),
|
|
@@ -17477,7 +17479,8 @@ var require_types_cjs_development = __commonJS2({
|
|
|
17477
17479
|
"CONSENT_FLOW_TRANSACTION",
|
|
17478
17480
|
"ISSUANCE_CLAIMED",
|
|
17479
17481
|
"ISSUANCE_DELIVERED",
|
|
17480
|
-
"ISSUANCE_ERROR"
|
|
17482
|
+
"ISSUANCE_ERROR",
|
|
17483
|
+
"PROFILE_PARENT_APPROVED"
|
|
17481
17484
|
]);
|
|
17482
17485
|
var LCNNotificationMessageValidator2 = z2.object({
|
|
17483
17486
|
title: z2.string().optional(),
|
|
@@ -18520,6 +18523,16 @@ async function getLearnCardNetworkPlugin(learnCard, url, apiToken) {
|
|
|
18520
18523
|
await ensureUser();
|
|
18521
18524
|
return client.inbox.getInboxCredential.query({ credentialId: id });
|
|
18522
18525
|
},
|
|
18526
|
+
sendGuardianApprovalEmail: async (_learnCard, options) => {
|
|
18527
|
+
await ensureUser();
|
|
18528
|
+
return client.inbox.sendGuardianApprovalEmail.mutate(options);
|
|
18529
|
+
},
|
|
18530
|
+
approveGuardianRequest: async (_learnCard, token) => {
|
|
18531
|
+
return client.inbox.approveGuardianRequest.mutate({ token });
|
|
18532
|
+
},
|
|
18533
|
+
approveGuardianRequestByPath: async (_learnCard, token) => {
|
|
18534
|
+
return client.inbox.approveGuardianRequestByPath.query({ token });
|
|
18535
|
+
},
|
|
18523
18536
|
addContactMethod: async (_learnCard, contactMethod) => {
|
|
18524
18537
|
await ensureUser();
|
|
18525
18538
|
return client.contactMethods.addContactMethod.mutate(contactMethod);
|