From 9bfb0f9df99dd8474b7e71ccc85b0b19a193e66c Mon Sep 17 00:00:00 2001 From: kainoffke Date: Mon, 22 Jul 2019 22:05:47 +0200 Subject: [PATCH] [auth0] New fields in PasswordChangeTicketParams (#36892) * Issue 36108 Added two fields to `PasswordChangeTicketParams` and edited tests accordingly. * Issue 36108 Increased patch version --- types/auth0/auth0-tests.ts | 23 ++++++++++++++--------- types/auth0/index.d.ts | 16 +++++++++------- 2 files changed, 23 insertions(+), 16 deletions(-) diff --git a/types/auth0/auth0-tests.ts b/types/auth0/auth0-tests.ts index 29563d3993..2abfb35ee3 100644 --- a/types/auth0/auth0-tests.ts +++ b/types/auth0/auth0-tests.ts @@ -277,15 +277,20 @@ const retryableManagementClient = new auth0.ManagementClient({ } }); -management.createPasswordChangeTicket({ - connection_id: 'con_id', - email: 'test@me.co', - new_password: 'password', - result_url: 'https://www.google.com/', - ttl_sec: 86400, -}, (err: Error, data) => { - console.log(data.ticket); -}); +management.createPasswordChangeTicket( + { + connection_id: 'con_id', + email: 'test@me.co', + new_password: 'password', + result_url: 'https://www.google.com/', + ttl_sec: 86400, + mark_email_as_verified: true, + includeEmailInRedirect: true, + }, + (err: Error, data) => { + console.log(data.ticket); + } +); // Link users management.linkUsers('primaryId', { user_id: 'secondaryId' }) diff --git a/types/auth0/index.d.ts b/types/auth0/index.d.ts index c6cee58b0f..12d956c0de 100644 --- a/types/auth0/index.d.ts +++ b/types/auth0/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for auth0 2.9.3 +// Type definitions for auth0 2.9.4 // Project: https://github.com/auth0/node-auth0 // Definitions by: Seth Westphal // Ian Howe @@ -686,12 +686,14 @@ export interface ExportUserField { } export interface PasswordChangeTicketParams { - result_url?: string; - user_id?: string; - new_password?: string; - connection_id?: string; - email?: string; - ttl_sec?: number; + result_url?: string; + user_id?: string; + new_password?: string; + connection_id?: string; + email?: string; + ttl_sec?: number; + mark_email_as_verified?: boolean; + includeEmailInRedirect?: boolean; } export interface PasswordChangeTicketResponse {