@opexa/portal-sdk 0.59.65 → 0.59.66
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/{chunk-CY6AO3EN.js → chunk-22E7HNRO.js} +15 -42
- package/dist/chunk-22E7HNRO.js.map +1 -0
- package/dist/index.cjs +21 -51
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +9 -12
- package/dist/index.js.map +1 -1
- package/dist/services/index.cjs +13 -40
- package/dist/services/index.cjs.map +1 -1
- package/dist/services/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-CY6AO3EN.js.map +0 -1
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
|
|
139
|
+
sendVerificationCode__next(input: SendVerificationCodeInput__Next): 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
|
|
139
|
+
sendVerificationCode__next(input: SendVerificationCodeInput__Next): 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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CmsPortalService, GameService, ExtensionService, FileService, WalletService, AccountService, ReportService, PortalService, TriggerService, AuthService, getFingerPrint } from './chunk-
|
|
1
|
+
import { CmsPortalService, GameService, ExtensionService, FileService, WalletService, AccountService, ReportService, PortalService, TriggerService, AuthService, getFingerPrint } from './chunk-22E7HNRO.js';
|
|
2
2
|
import { GraphQLClient, isPlainObject } from './chunk-7APXFZ5G.js';
|
|
3
3
|
import './chunk-WVFSGB7Y.js';
|
|
4
4
|
import { ObjectId } from '@opexa/object-id';
|
|
@@ -3848,18 +3848,15 @@ var Sdk = class {
|
|
|
3848
3848
|
}
|
|
3849
3849
|
});
|
|
3850
3850
|
}
|
|
3851
|
-
async sendVerificationCode__next(input
|
|
3851
|
+
async sendVerificationCode__next(input) {
|
|
3852
3852
|
if (input.type === "SMS") {
|
|
3853
|
-
return this.authService.sendVerificationCode(
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
|
|
3857
|
-
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
},
|
|
3861
|
-
recaptchaResponse
|
|
3862
|
-
);
|
|
3853
|
+
return this.authService.sendVerificationCode({
|
|
3854
|
+
channel: "SMS",
|
|
3855
|
+
recipient: addAreaCode(input.mobileNumber, await this.locale),
|
|
3856
|
+
...input.strict && {
|
|
3857
|
+
verificationType: "MEMBER"
|
|
3858
|
+
}
|
|
3859
|
+
});
|
|
3863
3860
|
}
|
|
3864
3861
|
throw new Error("'Email' verification code is not yet supported");
|
|
3865
3862
|
}
|