@opexa/portal-sdk 0.37.3 → 0.37.4
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.cjs +39 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +39 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1447,6 +1447,21 @@ var UPDATE_MEMBER_VERIFICATION_NEXT_MUTATION = gql`
|
|
|
1447
1447
|
}
|
|
1448
1448
|
}
|
|
1449
1449
|
`;
|
|
1450
|
+
var SUBMIT_MEMBER_VERIFICATION_MUTATION = gql`
|
|
1451
|
+
mutation SubmitMemberVerification($input: ApproveMemberVerificationInput!) {
|
|
1452
|
+
submitMemberVerification(input: $input) {
|
|
1453
|
+
... on VerificationDataIncompleteError {
|
|
1454
|
+
__typename
|
|
1455
|
+
}
|
|
1456
|
+
... on MemberVerificationDoesNotExistError {
|
|
1457
|
+
__typename
|
|
1458
|
+
}
|
|
1459
|
+
... on MemberVerificationAlreadyApprovedError {
|
|
1460
|
+
__typename
|
|
1461
|
+
}
|
|
1462
|
+
}
|
|
1463
|
+
}
|
|
1464
|
+
`;
|
|
1450
1465
|
var PROFILE_COMPLETION_QUERY = gql`
|
|
1451
1466
|
query ProfileCompletion {
|
|
1452
1467
|
profileCompletion {
|
|
@@ -2254,7 +2269,9 @@ function createOperationError(code) {
|
|
|
2254
2269
|
ReCAPTCHAVerificationFailedError: "Invalid reCAPTCHA",
|
|
2255
2270
|
AccountSuspendedError: "Account is suspended",
|
|
2256
2271
|
TransactionPasswordNotSetError: "Transaction password is not set",
|
|
2257
|
-
UPIReferenceNotAvailableError: "UPI reference is no longer available"
|
|
2272
|
+
UPIReferenceNotAvailableError: "UPI reference is no longer available",
|
|
2273
|
+
GCashDirectApiRequestError: "GCash direct API request error",
|
|
2274
|
+
VerificationDataIncompleteError: "Verification data is incomplete"
|
|
2258
2275
|
};
|
|
2259
2276
|
return {
|
|
2260
2277
|
name: code,
|
|
@@ -2494,6 +2511,19 @@ var AccountService = class {
|
|
|
2494
2511
|
ok: true
|
|
2495
2512
|
};
|
|
2496
2513
|
}
|
|
2514
|
+
async submitMemberVerification(variables) {
|
|
2515
|
+
const res = await this.client.request(SUBMIT_MEMBER_VERIFICATION_MUTATION, variables);
|
|
2516
|
+
if (!res.ok) return res;
|
|
2517
|
+
if (res.data.submitMemberVerification) {
|
|
2518
|
+
return {
|
|
2519
|
+
ok: false,
|
|
2520
|
+
error: createOperationError(res.data.submitMemberVerification.__typename)
|
|
2521
|
+
};
|
|
2522
|
+
}
|
|
2523
|
+
return {
|
|
2524
|
+
ok: true
|
|
2525
|
+
};
|
|
2526
|
+
}
|
|
2497
2527
|
async memberVerification() {
|
|
2498
2528
|
const res = await this.client.request(MEMBER_VERIFICATION_QUERY);
|
|
2499
2529
|
if (!res.ok) return res;
|
|
@@ -6677,6 +6707,14 @@ var Sdk = class {
|
|
|
6677
6707
|
}
|
|
6678
6708
|
});
|
|
6679
6709
|
}
|
|
6710
|
+
async submitMemberVerification(id) {
|
|
6711
|
+
const res = await this.accountService.submitMemberVerification({
|
|
6712
|
+
input: {
|
|
6713
|
+
id
|
|
6714
|
+
}
|
|
6715
|
+
});
|
|
6716
|
+
return res.ok ? { ok: true, data: { id } } : res;
|
|
6717
|
+
}
|
|
6680
6718
|
async resetPassword(input) {
|
|
6681
6719
|
return await this.accountService.resetPassword({
|
|
6682
6720
|
input: {
|