@opexa/portal-sdk 0.34.2 → 0.34.3
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/README.md +1624 -1624
- package/dist/index.cjs +9 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +9 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1218,12 +1218,14 @@ var REGISTER_MEMBER_ACCOUNT_VIA_MOBILE_MUTATION = gql`
|
|
|
1218
1218
|
$referralCode: String
|
|
1219
1219
|
$reCAPTCHAResponse: String
|
|
1220
1220
|
$verificationCode: String
|
|
1221
|
+
$testPass: String
|
|
1221
1222
|
) {
|
|
1222
1223
|
registerMemberAccountViaMobile(
|
|
1223
1224
|
input: $input
|
|
1224
1225
|
referralCode: $referralCode
|
|
1225
1226
|
verificationCode: $verificationCode
|
|
1226
1227
|
reCAPTCHAResponse: $reCAPTCHAResponse
|
|
1228
|
+
testPass: $testPass
|
|
1227
1229
|
) {
|
|
1228
1230
|
... on InvalidPlatformError {
|
|
1229
1231
|
__typename
|
|
@@ -2138,11 +2140,14 @@ var AccountService = class {
|
|
|
2138
2140
|
};
|
|
2139
2141
|
}
|
|
2140
2142
|
async registerMemberAccountViaMobile(variables) {
|
|
2141
|
-
const { reCAPTCHAResponse, ...others } = variables;
|
|
2143
|
+
const { reCAPTCHAResponse, testPass, ...others } = variables;
|
|
2142
2144
|
const res = await this.client.request(REGISTER_MEMBER_ACCOUNT_VIA_MOBILE_MUTATION, others, {
|
|
2143
2145
|
headers: {
|
|
2144
2146
|
...reCAPTCHAResponse && {
|
|
2145
2147
|
"google-recaptcha-response": reCAPTCHAResponse
|
|
2148
|
+
},
|
|
2149
|
+
...testPass && {
|
|
2150
|
+
"test-pass": "true"
|
|
2146
2151
|
}
|
|
2147
2152
|
}
|
|
2148
2153
|
});
|
|
@@ -2370,7 +2375,7 @@ var AccountService = class {
|
|
|
2370
2375
|
"google-recaptcha-response": reCAPTCHAResponse
|
|
2371
2376
|
},
|
|
2372
2377
|
...variables.testPass && {
|
|
2373
|
-
"
|
|
2378
|
+
"test-pass": "true"
|
|
2374
2379
|
}
|
|
2375
2380
|
}
|
|
2376
2381
|
});
|
|
@@ -5907,7 +5912,8 @@ var Sdk = class {
|
|
|
5907
5912
|
},
|
|
5908
5913
|
referralCode: input.referralCode,
|
|
5909
5914
|
verificationCode: input.verificationCode,
|
|
5910
|
-
reCAPTCHAResponse: input.reCAPTCHAResponse
|
|
5915
|
+
reCAPTCHAResponse: input.reCAPTCHAResponse,
|
|
5916
|
+
testPass: input.testPass
|
|
5911
5917
|
});
|
|
5912
5918
|
return res2.ok ? { ok: true, data: { id } } : res2;
|
|
5913
5919
|
}
|