@scalemule/sdk 0.0.67 → 0.0.68
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.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -908,6 +908,8 @@ declare class AuthService extends ServiceModule {
|
|
|
908
908
|
session_id?: string;
|
|
909
909
|
}, options?: RequestOptions): Promise<ApiResponse<AuthSession>>;
|
|
910
910
|
login(data: {
|
|
911
|
+
challenge_token?: string;
|
|
912
|
+
challenge_code?: string;
|
|
911
913
|
email: string;
|
|
912
914
|
password: string;
|
|
913
915
|
remember_me?: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -908,6 +908,8 @@ declare class AuthService extends ServiceModule {
|
|
|
908
908
|
session_id?: string;
|
|
909
909
|
}, options?: RequestOptions): Promise<ApiResponse<AuthSession>>;
|
|
910
910
|
login(data: {
|
|
911
|
+
challenge_token?: string;
|
|
912
|
+
challenge_code?: string;
|
|
911
913
|
email: string;
|
|
912
914
|
password: string;
|
|
913
915
|
remember_me?: boolean;
|
package/dist/index.js
CHANGED
|
@@ -1228,7 +1228,7 @@ var ScaleMuleClient = class {
|
|
|
1228
1228
|
responseData = { message: text };
|
|
1229
1229
|
}
|
|
1230
1230
|
}
|
|
1231
|
-
if (!response.ok) {
|
|
1231
|
+
if (!response.ok || responseData?.success === false) {
|
|
1232
1232
|
const error = {
|
|
1233
1233
|
code: responseData?.error?.code || responseData?.code || statusToErrorCode(response.status),
|
|
1234
1234
|
message: responseData?.error?.message || responseData?.message || response.statusText,
|
|
@@ -1670,7 +1670,7 @@ function asString(parent, key) {
|
|
|
1670
1670
|
return typeof value === "string" ? value : void 0;
|
|
1671
1671
|
}
|
|
1672
1672
|
|
|
1673
|
-
//
|
|
1673
|
+
// node_modules/@scalemule/ui/dist/phone/index.mjs
|
|
1674
1674
|
var PHONE_COUNTRIES = [
|
|
1675
1675
|
{ code: "US", name: "United States", dialCode: "+1" },
|
|
1676
1676
|
{ code: "CA", name: "Canada", dialCode: "+1" },
|
package/dist/index.mjs
CHANGED
|
@@ -1119,7 +1119,7 @@ var ScaleMuleClient = class {
|
|
|
1119
1119
|
responseData = { message: text };
|
|
1120
1120
|
}
|
|
1121
1121
|
}
|
|
1122
|
-
if (!response.ok) {
|
|
1122
|
+
if (!response.ok || responseData?.success === false) {
|
|
1123
1123
|
const error = {
|
|
1124
1124
|
code: responseData?.error?.code || responseData?.code || statusToErrorCode(response.status),
|
|
1125
1125
|
message: responseData?.error?.message || responseData?.message || response.statusText,
|
|
@@ -1561,7 +1561,7 @@ function asString(parent, key) {
|
|
|
1561
1561
|
return typeof value === "string" ? value : void 0;
|
|
1562
1562
|
}
|
|
1563
1563
|
|
|
1564
|
-
//
|
|
1564
|
+
// node_modules/@scalemule/ui/dist/phone/index.mjs
|
|
1565
1565
|
var PHONE_COUNTRIES = [
|
|
1566
1566
|
{ code: "US", name: "United States", dialCode: "+1" },
|
|
1567
1567
|
{ code: "CA", name: "Canada", dialCode: "+1" },
|