@learncard/network-plugin 2.6.3 → 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.
@@ -7048,7 +7048,8 @@ var require_helpers_cjs_development = __commonJS({
7048
7048
  "CONSENT_FLOW_TRANSACTION",
7049
7049
  "ISSUANCE_CLAIMED",
7050
7050
  "ISSUANCE_DELIVERED",
7051
- "ISSUANCE_ERROR"
7051
+ "ISSUANCE_ERROR",
7052
+ "PROFILE_PARENT_APPROVED"
7052
7053
  ]);
7053
7054
  var LCNNotificationMessageValidator2 = z2.object({
7054
7055
  title: z2.string().optional(),
@@ -12223,7 +12224,8 @@ var LCNNotificationTypeEnumValidator = z.enum([
12223
12224
  "CONSENT_FLOW_TRANSACTION",
12224
12225
  "ISSUANCE_CLAIMED",
12225
12226
  "ISSUANCE_DELIVERED",
12226
- "ISSUANCE_ERROR"
12227
+ "ISSUANCE_ERROR",
12228
+ "PROFILE_PARENT_APPROVED"
12227
12229
  ]);
12228
12230
  var LCNNotificationMessageValidator = z.object({
12229
12231
  title: z.string().optional(),
@@ -17452,7 +17454,8 @@ var require_types_cjs_development = __commonJS2({
17452
17454
  "CONSENT_FLOW_TRANSACTION",
17453
17455
  "ISSUANCE_CLAIMED",
17454
17456
  "ISSUANCE_DELIVERED",
17455
- "ISSUANCE_ERROR"
17457
+ "ISSUANCE_ERROR",
17458
+ "PROFILE_PARENT_APPROVED"
17456
17459
  ]);
17457
17460
  var LCNNotificationMessageValidator2 = z2.object({
17458
17461
  title: z2.string().optional(),
@@ -18495,6 +18498,16 @@ async function getLearnCardNetworkPlugin(learnCard, url, apiToken) {
18495
18498
  await ensureUser();
18496
18499
  return client.inbox.getInboxCredential.query({ credentialId: id });
18497
18500
  },
18501
+ sendGuardianApprovalEmail: async (_learnCard, options) => {
18502
+ await ensureUser();
18503
+ return client.inbox.sendGuardianApprovalEmail.mutate(options);
18504
+ },
18505
+ approveGuardianRequest: async (_learnCard, token) => {
18506
+ return client.inbox.approveGuardianRequest.mutate({ token });
18507
+ },
18508
+ approveGuardianRequestByPath: async (_learnCard, token) => {
18509
+ return client.inbox.approveGuardianRequestByPath.query({ token });
18510
+ },
18498
18511
  addContactMethod: async (_learnCard, contactMethod) => {
18499
18512
  await ensureUser();
18500
18513
  return client.contactMethods.addContactMethod.mutate(contactMethod);