@opexa/portal-sdk 0.37.2 → 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 +43 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +19 -2
- package/dist/index.d.ts +19 -2
- package/dist/index.js +43 -5
- 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,
|
|
@@ -2458,10 +2475,10 @@ var AccountService = class {
|
|
|
2458
2475
|
async createMemberVerification_Next(variables) {
|
|
2459
2476
|
const res = await this.client.request(CREATE_MEMBER_VERIFICATION_NEXT_MUTATION, variables);
|
|
2460
2477
|
if (!res.ok) return res;
|
|
2461
|
-
if (res.data.
|
|
2478
|
+
if (res.data.createMemberVerification_next) {
|
|
2462
2479
|
return {
|
|
2463
2480
|
ok: false,
|
|
2464
|
-
error: createOperationError(res.data.
|
|
2481
|
+
error: createOperationError(res.data.createMemberVerification_next.__typename)
|
|
2465
2482
|
};
|
|
2466
2483
|
}
|
|
2467
2484
|
return {
|
|
@@ -2484,10 +2501,23 @@ var AccountService = class {
|
|
|
2484
2501
|
async updateMemberVerification_Next(variables) {
|
|
2485
2502
|
const res = await this.client.request(UPDATE_MEMBER_VERIFICATION_NEXT_MUTATION, variables);
|
|
2486
2503
|
if (!res.ok) return res;
|
|
2487
|
-
if (res.data.
|
|
2504
|
+
if (res.data.updateMemberVerification_next) {
|
|
2488
2505
|
return {
|
|
2489
2506
|
ok: false,
|
|
2490
|
-
error: createOperationError(res.data.
|
|
2507
|
+
error: createOperationError(res.data.updateMemberVerification_next.__typename)
|
|
2508
|
+
};
|
|
2509
|
+
}
|
|
2510
|
+
return {
|
|
2511
|
+
ok: true
|
|
2512
|
+
};
|
|
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)
|
|
2491
2521
|
};
|
|
2492
2522
|
}
|
|
2493
2523
|
return {
|
|
@@ -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: {
|