@@ -197,11 +197,11 @@ export class Authorizer {
197197 try {
198198 const forgotPasswordResp = await this . graphqlQuery ( {
199199 query :
200- 'mutation forgotPassword ($data: ForgotPasswordRequest!) { forgot_password(params: $data) { message should_show_mobile_otp_screen } }' ,
200+ 'mutation forgot_password ($data: ForgotPasswordRequest!) { forgot_password(params: $data) { message should_show_mobile_otp_screen } }' ,
201201 variables : {
202202 data,
203203 } ,
204- operationName : 'forgotPassword ' ,
204+ operationName : 'forgot_password ' ,
205205 } ) ;
206206 return forgotPasswordResp ?. errors ?. length
207207 ? this . errorResponse ( forgotPasswordResp . errors )
@@ -252,12 +252,12 @@ export class Authorizer {
252252 ) : Promise < Types . ApiResponse < Types . AuthToken > > => {
253253 try {
254254 const res = await this . graphqlQuery ( {
255- query : `query getSession ($params: SessionQueryRequest){session(params: $params) { ${ authTokenFragment } } }` ,
255+ query : `query session ($params: SessionQueryRequest){session(params: $params) { ${ authTokenFragment } } }` ,
256256 headers,
257257 variables : {
258258 params,
259259 } ,
260- operationName : 'getSession ' ,
260+ operationName : 'session ' ,
261261 } ) ;
262262 return res ?. errors ?. length
263263 ? this . errorResponse ( res . errors )
@@ -378,10 +378,10 @@ export class Authorizer {
378378
379379 const res = await this . graphqlQuery ( {
380380 query : `
381- mutation magicLinkLogin ($data: MagicLinkLoginRequest!) { magic_link_login(params: $data) { message }}
381+ mutation magic_link_login ($data: MagicLinkLoginRequest!) { magic_link_login(params: $data) { message }}
382382 ` ,
383383 variables : { data } ,
384- operationName : 'magicLinkLogin ' ,
384+ operationName : 'magic_link_login ' ,
385385 } ) ;
386386
387387 return res ?. errors ?. length
@@ -427,10 +427,10 @@ export class Authorizer {
427427 try {
428428 const res = await this . graphqlQuery ( {
429429 query : `
430- mutation resendOtp ($data: ResendOTPRequest!) { resend_otp(params: $data) { message }}
430+ mutation resend_otp ($data: ResendOTPRequest!) { resend_otp(params: $data) { message }}
431431 ` ,
432432 variables : { data } ,
433- operationName : 'resendOtp ' ,
433+ operationName : 'resend_otp ' ,
434434 } ) ;
435435
436436 return res ?. errors ?. length
@@ -447,11 +447,11 @@ export class Authorizer {
447447 try {
448448 const resetPasswordRes = await this . graphqlQuery ( {
449449 query :
450- 'mutation resetPassword ($data: ResetPasswordRequest!) { reset_password(params: $data) { message } }' ,
450+ 'mutation reset_password ($data: ResetPasswordRequest!) { reset_password(params: $data) { message } }' ,
451451 variables : {
452452 data,
453453 } ,
454- operationName : 'resetPassword ' ,
454+ operationName : 'reset_password ' ,
455455 } ) ;
456456 return resetPasswordRes ?. errors ?. length
457457 ? this . errorResponse ( resetPasswordRes . errors )
@@ -543,12 +543,12 @@ export class Authorizer {
543543 try {
544544 const updateProfileRes = await this . graphqlQuery ( {
545545 query :
546- 'mutation updateProfile ($data: UpdateProfileRequest!) { update_profile(params: $data) { message } }' ,
546+ 'mutation update_profile ($data: UpdateProfileRequest!) { update_profile(params: $data) { message } }' ,
547547 headers,
548548 variables : {
549549 data,
550550 } ,
551- operationName : 'updateProfile ' ,
551+ operationName : 'update_profile ' ,
552552 } ) ;
553553
554554 return updateProfileRes ?. errors ?. length
@@ -564,9 +564,9 @@ export class Authorizer {
564564 ) : Promise < Types . ApiResponse < Types . GenericResponse > > => {
565565 try {
566566 const res = await this . graphqlQuery ( {
567- query : 'mutation deactivateAccount { deactivate_account { message } }' ,
567+ query : 'mutation deactivate_account { deactivate_account { message } }' ,
568568 headers,
569- operationName : 'deactivateAccount ' ,
569+ operationName : 'deactivate_account ' ,
570570 } ) ;
571571 return res ?. errors ?. length
572572 ? this . errorResponse ( res . errors )
@@ -582,11 +582,11 @@ export class Authorizer {
582582 try {
583583 const res = await this . graphqlQuery ( {
584584 query :
585- 'query validateJWTToken ($params: ValidateJWTTokenRequest!){validate_jwt_token(params: $params) { is_valid claims } }' ,
585+ 'query validate_jwt_token ($params: ValidateJWTTokenRequest!){validate_jwt_token(params: $params) { is_valid claims } }' ,
586586 variables : {
587587 params,
588588 } ,
589- operationName : 'validateJWTToken ' ,
589+ operationName : 'validate_jwt_token ' ,
590590 } ) ;
591591
592592 return res ?. errors ?. length
@@ -602,11 +602,11 @@ export class Authorizer {
602602 ) : Promise < Types . ApiResponse < Types . ValidateSessionResponse > > => {
603603 try {
604604 const res = await this . graphqlQuery ( {
605- query : `query validateSession ($params: ValidateSessionRequest){validate_session(params: $params) { is_valid user { ${ userFragment } } } }` ,
605+ query : `query validate_session ($params: ValidateSessionRequest){validate_session(params: $params) { is_valid user { ${ userFragment } } } }` ,
606606 variables : {
607607 params,
608608 } ,
609- operationName : 'validateSession ' ,
609+ operationName : 'validate_session ' ,
610610 } ) ;
611611
612612 return res ?. errors ?. length
@@ -623,10 +623,10 @@ export class Authorizer {
623623 try {
624624 const res = await this . graphqlQuery ( {
625625 query : `
626- mutation verifyEmail ($data: VerifyEmailRequest!) { verify_email(params: $data) { ${ authTokenFragment } }}
626+ mutation verify_email ($data: VerifyEmailRequest!) { verify_email(params: $data) { ${ authTokenFragment } }}
627627 ` ,
628628 variables : { data } ,
629- operationName : 'verifyEmail ' ,
629+ operationName : 'verify_email ' ,
630630 } ) ;
631631
632632 return res ?. errors ?. length
@@ -643,10 +643,10 @@ export class Authorizer {
643643 try {
644644 const res = await this . graphqlQuery ( {
645645 query : `
646- mutation resendVerifyEmail ($data: ResendVerifyEmailRequest!) { resend_verify_email(params: $data) { message }}
646+ mutation resend_verify_email ($data: ResendVerifyEmailRequest!) { resend_verify_email(params: $data) { message }}
647647 ` ,
648648 variables : { data } ,
649- operationName : 'resendVerifyEmail ' ,
649+ operationName : 'resend_verify_email ' ,
650650 } ) ;
651651
652652 return res ?. errors ?. length
@@ -663,10 +663,10 @@ export class Authorizer {
663663 try {
664664 const res = await this . graphqlQuery ( {
665665 query : `
666- mutation verifyOtp ($data: VerifyOTPRequest!) { verify_otp(params: $data) { ${ authTokenFragment } }}
666+ mutation verify_otp ($data: VerifyOTPRequest!) { verify_otp(params: $data) { ${ authTokenFragment } }}
667667 ` ,
668668 variables : { data } ,
669- operationName : 'verifyOtp ' ,
669+ operationName : 'verify_otp ' ,
670670 } ) ;
671671
672672 return res ?. errors ?. length
0 commit comments