@opexa/portal-sdk 0.37.1 → 0.37.2
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 +79 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +79 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1633,7 +1633,9 @@ declare class Sdk {
|
|
|
1633
1633
|
deleteAccount(id: string): Promise<DeleteAccountReturn>;
|
|
1634
1634
|
verificationDetails(): Promise<VerificationDetailsReturn>;
|
|
1635
1635
|
submitVerificationDetails(input: SubmitVerificationDetailsInput): Promise<SubmitVerificationDetailsReturn>;
|
|
1636
|
+
submitVerificationDetails_Next(input: SubmitVerificationDetailsInput): Promise<SubmitVerificationDetailsReturn>;
|
|
1636
1637
|
updateVerificationDetails(id: string, input: UpdateVerificationDetailsInput): Promise<UpdateVerificationDetailsReturn>;
|
|
1638
|
+
updateVerificationDetails_Next(id: string, input: UpdateVerificationDetailsInput): Promise<UpdateVerificationDetailsReturn>;
|
|
1637
1639
|
resetPassword(input: ResetPasswordInput): Promise<ResetPasswordReturn>;
|
|
1638
1640
|
verifyMobileNumber(verificationCode: string): Promise<VerifyMobileNumberReturn>;
|
|
1639
1641
|
profileCompletion(): Promise<ProfileCompletionReturn>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1633,7 +1633,9 @@ declare class Sdk {
|
|
|
1633
1633
|
deleteAccount(id: string): Promise<DeleteAccountReturn>;
|
|
1634
1634
|
verificationDetails(): Promise<VerificationDetailsReturn>;
|
|
1635
1635
|
submitVerificationDetails(input: SubmitVerificationDetailsInput): Promise<SubmitVerificationDetailsReturn>;
|
|
1636
|
+
submitVerificationDetails_Next(input: SubmitVerificationDetailsInput): Promise<SubmitVerificationDetailsReturn>;
|
|
1636
1637
|
updateVerificationDetails(id: string, input: UpdateVerificationDetailsInput): Promise<UpdateVerificationDetailsReturn>;
|
|
1638
|
+
updateVerificationDetails_Next(id: string, input: UpdateVerificationDetailsInput): Promise<UpdateVerificationDetailsReturn>;
|
|
1637
1639
|
resetPassword(input: ResetPasswordInput): Promise<ResetPasswordReturn>;
|
|
1638
1640
|
verifyMobileNumber(verificationCode: string): Promise<VerifyMobileNumberReturn>;
|
|
1639
1641
|
profileCompletion(): Promise<ProfileCompletionReturn>;
|
package/dist/index.js
CHANGED
|
@@ -1391,6 +1391,21 @@ var CREATE_MEMBER_VERIFICATION_MUTATION = gql`
|
|
|
1391
1391
|
}
|
|
1392
1392
|
}
|
|
1393
1393
|
`;
|
|
1394
|
+
var CREATE_MEMBER_VERIFICATION_NEXT_MUTATION = gql`
|
|
1395
|
+
mutation CreateMemberVerificationInput_next($input: CreateMemberVerificationInput_next!) {
|
|
1396
|
+
createMemberVerification_next(input: $input) {
|
|
1397
|
+
... on FileDoesNotExistError {
|
|
1398
|
+
__typename
|
|
1399
|
+
}
|
|
1400
|
+
... on FileNotReadyError {
|
|
1401
|
+
__typename
|
|
1402
|
+
}
|
|
1403
|
+
... on MemberVerificationAlreadyExistsError {
|
|
1404
|
+
__typename
|
|
1405
|
+
}
|
|
1406
|
+
}
|
|
1407
|
+
}
|
|
1408
|
+
`;
|
|
1394
1409
|
var UPDATE_MEMBER_VERIFICATION_MUTATION = gql`
|
|
1395
1410
|
mutation UpdateMemberVerification($input: UpdateMemberVerificationInput!) {
|
|
1396
1411
|
updateMemberVerification(input: $input) {
|
|
@@ -1409,6 +1424,24 @@ var UPDATE_MEMBER_VERIFICATION_MUTATION = gql`
|
|
|
1409
1424
|
}
|
|
1410
1425
|
}
|
|
1411
1426
|
`;
|
|
1427
|
+
var UPDATE_MEMBER_VERIFICATION_NEXT_MUTATION = gql`
|
|
1428
|
+
mutation UpdateMemberVerification_next($input: UpdateMemberVerificationInput!) {
|
|
1429
|
+
updateMemberVerification_next(input: $input) {
|
|
1430
|
+
... on FileDoesNotExistError {
|
|
1431
|
+
__typename
|
|
1432
|
+
}
|
|
1433
|
+
... on FileNotReadyError {
|
|
1434
|
+
__typename
|
|
1435
|
+
}
|
|
1436
|
+
... on MemberVerificationAlreadyApprovedError {
|
|
1437
|
+
__typename
|
|
1438
|
+
}
|
|
1439
|
+
... on MemberVerificationDoesNotExistError {
|
|
1440
|
+
__typename
|
|
1441
|
+
}
|
|
1442
|
+
}
|
|
1443
|
+
}
|
|
1444
|
+
`;
|
|
1412
1445
|
var PROFILE_COMPLETION_QUERY = gql`
|
|
1413
1446
|
query ProfileCompletion {
|
|
1414
1447
|
profileCompletion {
|
|
@@ -2417,6 +2450,19 @@ var AccountService = class {
|
|
|
2417
2450
|
ok: true
|
|
2418
2451
|
};
|
|
2419
2452
|
}
|
|
2453
|
+
async createMemberVerification_Next(variables) {
|
|
2454
|
+
const res = await this.client.request(CREATE_MEMBER_VERIFICATION_NEXT_MUTATION, variables);
|
|
2455
|
+
if (!res.ok) return res;
|
|
2456
|
+
if (res.data.createMemberVerification) {
|
|
2457
|
+
return {
|
|
2458
|
+
ok: false,
|
|
2459
|
+
error: createOperationError(res.data.createMemberVerification.__typename)
|
|
2460
|
+
};
|
|
2461
|
+
}
|
|
2462
|
+
return {
|
|
2463
|
+
ok: true
|
|
2464
|
+
};
|
|
2465
|
+
}
|
|
2420
2466
|
async updateMemberVerification(variables) {
|
|
2421
2467
|
const res = await this.client.request(UPDATE_MEMBER_VERIFICATION_MUTATION, variables);
|
|
2422
2468
|
if (!res.ok) return res;
|
|
@@ -2430,6 +2476,19 @@ var AccountService = class {
|
|
|
2430
2476
|
ok: true
|
|
2431
2477
|
};
|
|
2432
2478
|
}
|
|
2479
|
+
async updateMemberVerification_Next(variables) {
|
|
2480
|
+
const res = await this.client.request(UPDATE_MEMBER_VERIFICATION_NEXT_MUTATION, variables);
|
|
2481
|
+
if (!res.ok) return res;
|
|
2482
|
+
if (res.data.updateMemberVerification) {
|
|
2483
|
+
return {
|
|
2484
|
+
ok: false,
|
|
2485
|
+
error: createOperationError(res.data.updateMemberVerification.__typename)
|
|
2486
|
+
};
|
|
2487
|
+
}
|
|
2488
|
+
return {
|
|
2489
|
+
ok: true
|
|
2490
|
+
};
|
|
2491
|
+
}
|
|
2433
2492
|
async memberVerification() {
|
|
2434
2493
|
const res = await this.client.request(MEMBER_VERIFICATION_QUERY);
|
|
2435
2494
|
if (!res.ok) return res;
|
|
@@ -6583,6 +6642,16 @@ var Sdk = class {
|
|
|
6583
6642
|
});
|
|
6584
6643
|
return res.ok ? { ok: true, data: { id } } : res;
|
|
6585
6644
|
}
|
|
6645
|
+
async submitVerificationDetails_Next(input) {
|
|
6646
|
+
const id = input.id ?? ObjectId.generate(ObjectType.Verification).toString();
|
|
6647
|
+
const res = await this.accountService.createMemberVerification_Next({
|
|
6648
|
+
input: {
|
|
6649
|
+
id,
|
|
6650
|
+
...input
|
|
6651
|
+
}
|
|
6652
|
+
});
|
|
6653
|
+
return res.ok ? { ok: true, data: { id } } : res;
|
|
6654
|
+
}
|
|
6586
6655
|
async updateVerificationDetails(id, input) {
|
|
6587
6656
|
return await this.accountService.updateMemberVerification({
|
|
6588
6657
|
input: {
|
|
@@ -6593,6 +6662,16 @@ var Sdk = class {
|
|
|
6593
6662
|
}
|
|
6594
6663
|
});
|
|
6595
6664
|
}
|
|
6665
|
+
async updateVerificationDetails_Next(id, input) {
|
|
6666
|
+
return await this.accountService.updateMemberVerification_Next({
|
|
6667
|
+
input: {
|
|
6668
|
+
id,
|
|
6669
|
+
data: {
|
|
6670
|
+
...input
|
|
6671
|
+
}
|
|
6672
|
+
}
|
|
6673
|
+
});
|
|
6674
|
+
}
|
|
6596
6675
|
async resetPassword(input) {
|
|
6597
6676
|
return await this.accountService.resetPassword({
|
|
6598
6677
|
input: {
|