@opexa/portal-sdk 0.59.62 → 0.59.63

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/index.d.cts CHANGED
@@ -136,7 +136,7 @@ declare class Sdk {
136
136
  * @deprecated use `sendVerificationCode__next`
137
137
  */
138
138
  sendVerificationCode(mobileNumber: string): Promise<SendVerificationCodeReturn>;
139
- sendVerificationCode__next(input: SendVerificationCodeInput__Next): Promise<SendVerificationCodeReturn__Next>;
139
+ sendVerificationCode__next(input: SendVerificationCodeInput__Next, recaptchaResponse?: string): Promise<SendVerificationCodeReturn__Next>;
140
140
  wallet(): Promise<WalletReturn>;
141
141
  memberWalletAccount(): Promise<MemberWalletAccountReturn>;
142
142
  announcements(input?: AnnouncementsInput): Promise<AnnouncementsReturn>;
package/dist/index.d.ts CHANGED
@@ -136,7 +136,7 @@ declare class Sdk {
136
136
  * @deprecated use `sendVerificationCode__next`
137
137
  */
138
138
  sendVerificationCode(mobileNumber: string): Promise<SendVerificationCodeReturn>;
139
- sendVerificationCode__next(input: SendVerificationCodeInput__Next): Promise<SendVerificationCodeReturn__Next>;
139
+ sendVerificationCode__next(input: SendVerificationCodeInput__Next, recaptchaResponse?: string): Promise<SendVerificationCodeReturn__Next>;
140
140
  wallet(): Promise<WalletReturn>;
141
141
  memberWalletAccount(): Promise<MemberWalletAccountReturn>;
142
142
  announcements(input?: AnnouncementsInput): Promise<AnnouncementsReturn>;
package/dist/index.js CHANGED
@@ -3834,15 +3834,18 @@ var Sdk = class {
3834
3834
  }
3835
3835
  });
3836
3836
  }
3837
- async sendVerificationCode__next(input) {
3837
+ async sendVerificationCode__next(input, recaptchaResponse) {
3838
3838
  if (input.type === "SMS") {
3839
- return this.authService.sendVerificationCode({
3840
- channel: "SMS",
3841
- recipient: addAreaCode(input.mobileNumber, await this.locale),
3842
- ...input.strict && {
3843
- verificationType: "MEMBER"
3844
- }
3845
- });
3839
+ return this.authService.sendVerificationCode(
3840
+ {
3841
+ channel: "SMS",
3842
+ recipient: addAreaCode(input.mobileNumber, await this.locale),
3843
+ ...input.strict && {
3844
+ verificationType: "MEMBER"
3845
+ }
3846
+ },
3847
+ recaptchaResponse
3848
+ );
3846
3849
  }
3847
3850
  throw new Error("'Email' verification code is not yet supported");
3848
3851
  }