@opexa/portal-sdk 0.59.91 → 0.59.92
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/{chunk-5DPGJBK3.js → chunk-4TI5IXXM.js} +82 -2
- package/dist/chunk-4TI5IXXM.js.map +1 -0
- package/dist/index.cjs +104 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -3
- package/dist/index.d.ts +8 -3
- package/dist/index.js +25 -1
- package/dist/index.js.map +1 -1
- package/dist/services/index.cjs +80 -0
- package/dist/services/index.cjs.map +1 -1
- package/dist/services/index.d.cts +8 -3
- package/dist/services/index.d.ts +8 -3
- package/dist/services/index.js +1 -1
- package/dist/{types-DZdI2ruq.d.ts → types-CFrQAxhE.d.ts} +39 -1
- package/dist/{types-CPRTXKkO.d.cts → types-CNyq_tWA.d.cts} +39 -1
- package/package.json +1 -1
- package/dist/chunk-5DPGJBK3.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -3704,6 +3704,13 @@ var MEMBER_VERIFICATION_REQUEST_QUERY = gql`
|
|
|
3704
3704
|
|
|
3705
3705
|
${MEMBER_VERIFICATION_REQUEST_FRAGMENT}
|
|
3706
3706
|
`;
|
|
3707
|
+
var MEMBER_VERIFICATION_REQUEST_FACE_LIVENESS_SESSION_QUERY = gql`
|
|
3708
|
+
query MemberVerificationRequestFaceLivenessSession {
|
|
3709
|
+
memberVerificationRequest {
|
|
3710
|
+
faceLivenessSession
|
|
3711
|
+
}
|
|
3712
|
+
}
|
|
3713
|
+
`;
|
|
3707
3714
|
var MEMBER_VERIFICATION_REQUEST_BY_ID_QUERY = gql`
|
|
3708
3715
|
query MemberVerificationRequestById($id: ObjectId!) {
|
|
3709
3716
|
node(id: $id) {
|
|
@@ -3741,6 +3748,30 @@ var MEMBER_VERIFICATION_REQUEST_AUTOMATIC_APPROVAL_ENABLED_QUERY = gql`
|
|
|
3741
3748
|
memberVerificationRequestAutomaticApprovalEnabled
|
|
3742
3749
|
}
|
|
3743
3750
|
`;
|
|
3751
|
+
var SUBMIT_MEMBER_VERIFICATION_REQUEST_IMAGE_DETAILS_MUTATION__NEXT = gql`
|
|
3752
|
+
mutation SubmitMemberVerificationRequestImageDetails(
|
|
3753
|
+
$input: SubmitMemberVerificationRequestImageDetailsInput!
|
|
3754
|
+
) {
|
|
3755
|
+
_submitMemberVerificationRequestImageDetails(input: $input)
|
|
3756
|
+
}
|
|
3757
|
+
`;
|
|
3758
|
+
var START_MEMBER_VERIFICATION_REQUEST_FACE_LIVENESS_SESSION = gql`
|
|
3759
|
+
mutation StartMemberVerificationRequestFaceLivenessSession {
|
|
3760
|
+
startMemberVerificationRequestFaceLivenessSession
|
|
3761
|
+
}
|
|
3762
|
+
`;
|
|
3763
|
+
var VERIFY_MEMBER_VERIFICATION_REQUEST_FACE_LIVENESS_SESSION = gql`
|
|
3764
|
+
mutation VerifyMemberVerificationRequestFaceLivenessSession(
|
|
3765
|
+
$input: VerifyMemberVerificationRequestFaceLivenessSessionInput!
|
|
3766
|
+
) {
|
|
3767
|
+
verifyMemberVerificationRequestFaceLivenessSession(input: $input)
|
|
3768
|
+
}
|
|
3769
|
+
`;
|
|
3770
|
+
var FINALIZE_MEMBER_VERIFICATION_REQUEST_SESSION = gql`
|
|
3771
|
+
mutation FinalizeMemberVerificationRequest {
|
|
3772
|
+
finalizeMemberVerificationRequest
|
|
3773
|
+
}
|
|
3774
|
+
`;
|
|
3744
3775
|
var CANCEL_FREE_BET_DROP_MUTATION = gql`
|
|
3745
3776
|
mutation CancelFreeBetDrop($input: CancelFreeBetDropInput!) {
|
|
3746
3777
|
cancelFreeBetDrop(input: $input)
|
|
@@ -4579,6 +4610,55 @@ var AccountService = class {
|
|
|
4579
4610
|
data: res.data.submitMemberVerificationRequestImageDetails
|
|
4580
4611
|
};
|
|
4581
4612
|
}
|
|
4613
|
+
async memberVerificationRequestFaceLivenessSession() {
|
|
4614
|
+
const res = await this.client.request(
|
|
4615
|
+
MEMBER_VERIFICATION_REQUEST_FACE_LIVENESS_SESSION_QUERY
|
|
4616
|
+
);
|
|
4617
|
+
if (!res.ok) return res;
|
|
4618
|
+
return {
|
|
4619
|
+
ok: true,
|
|
4620
|
+
data: res.data.memberVerificationRequest?.faceLivenessSession ?? null
|
|
4621
|
+
};
|
|
4622
|
+
}
|
|
4623
|
+
async submitMemberVerificationRequestImageDetails__next(variables) {
|
|
4624
|
+
const res = await this.client.request(
|
|
4625
|
+
SUBMIT_MEMBER_VERIFICATION_REQUEST_IMAGE_DETAILS_MUTATION__NEXT,
|
|
4626
|
+
variables
|
|
4627
|
+
);
|
|
4628
|
+
if (!res.ok) return res;
|
|
4629
|
+
return {
|
|
4630
|
+
ok: true,
|
|
4631
|
+
data: res.data._submitMemberVerificationRequestImageDetails
|
|
4632
|
+
};
|
|
4633
|
+
}
|
|
4634
|
+
async startMemberVerificationRequestFaceLivenessSession() {
|
|
4635
|
+
const res = await this.client.request(
|
|
4636
|
+
START_MEMBER_VERIFICATION_REQUEST_FACE_LIVENESS_SESSION
|
|
4637
|
+
);
|
|
4638
|
+
if (!res.ok) return res;
|
|
4639
|
+
return {
|
|
4640
|
+
ok: true,
|
|
4641
|
+
data: res.data.startMemberVerificationRequestFaceLivenessSession
|
|
4642
|
+
};
|
|
4643
|
+
}
|
|
4644
|
+
async verifyMemberVerificationRequestFaceLivenessSession(variables) {
|
|
4645
|
+
const res = await this.client.request(VERIFY_MEMBER_VERIFICATION_REQUEST_FACE_LIVENESS_SESSION, variables);
|
|
4646
|
+
if (!res.ok) return res;
|
|
4647
|
+
return {
|
|
4648
|
+
ok: true,
|
|
4649
|
+
data: res.data.verifyMemberVerificationRequestFaceLivenessSession
|
|
4650
|
+
};
|
|
4651
|
+
}
|
|
4652
|
+
async finalizeMemberVerificationRequest() {
|
|
4653
|
+
const res = await this.client.request(
|
|
4654
|
+
FINALIZE_MEMBER_VERIFICATION_REQUEST_SESSION
|
|
4655
|
+
);
|
|
4656
|
+
if (!res.ok) return res;
|
|
4657
|
+
return {
|
|
4658
|
+
ok: true,
|
|
4659
|
+
data: res.data.finalizeMemberVerificationRequest
|
|
4660
|
+
};
|
|
4661
|
+
}
|
|
4582
4662
|
async submitMemberVerificationRequestPersonalDetails(variables) {
|
|
4583
4663
|
const res = await this.client.request(SUBMIT_MEMBER_VERIFICATION_REQUEST_PERSONAL_DETAILS_MUTATION, variables);
|
|
4584
4664
|
if (!res.ok) return res;
|
|
@@ -12858,6 +12938,30 @@ var Sdk = class {
|
|
|
12858
12938
|
async memberVerificationRequestAutomaticApprovalEnabled() {
|
|
12859
12939
|
return await this.accountService.memberVerificationRequestAutomaticApprovalEnabled();
|
|
12860
12940
|
}
|
|
12941
|
+
async memberVerificationRequestFaceLivenessSession() {
|
|
12942
|
+
return await this.accountService.memberVerificationRequestFaceLivenessSession();
|
|
12943
|
+
}
|
|
12944
|
+
async submitMemberVerificationRequestImageDetails__next(input) {
|
|
12945
|
+
return await this.accountService.submitMemberVerificationRequestImageDetails__next(
|
|
12946
|
+
{ input }
|
|
12947
|
+
);
|
|
12948
|
+
}
|
|
12949
|
+
async startMemberVerificationRequestFaceLivenessSession() {
|
|
12950
|
+
return await this.accountService.startMemberVerificationRequestFaceLivenessSession();
|
|
12951
|
+
}
|
|
12952
|
+
async verifyMemberVerificationRequestFaceLivenessSession(input) {
|
|
12953
|
+
const selfieImage = input?.selfieImage ?? objectId.ObjectId.generate(ObjectType.File).toString();
|
|
12954
|
+
return await this.accountService.verifyMemberVerificationRequestFaceLivenessSession(
|
|
12955
|
+
{
|
|
12956
|
+
input: {
|
|
12957
|
+
selfieImage
|
|
12958
|
+
}
|
|
12959
|
+
}
|
|
12960
|
+
);
|
|
12961
|
+
}
|
|
12962
|
+
async finalizeMemberVerificationRequest() {
|
|
12963
|
+
return await this.accountService.finalizeMemberVerificationRequest();
|
|
12964
|
+
}
|
|
12861
12965
|
/*
|
|
12862
12966
|
*=============================================
|
|
12863
12967
|
* UTILS
|