@opexa/portal-sdk 0.59.6 → 0.59.7
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 +63 -29
- 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 +63 -29
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3258,41 +3258,59 @@ var CABINET_WITHDRAWAL_QUERY = gql`
|
|
|
3258
3258
|
}
|
|
3259
3259
|
}
|
|
3260
3260
|
`;
|
|
3261
|
+
var MEMBER_VERIFICATION_REQUEST_FRAGMENT = gql`
|
|
3262
|
+
fragment MemberVerificationRequestFragment on MemberVerificationRequest {
|
|
3263
|
+
id
|
|
3264
|
+
firstName
|
|
3265
|
+
lastName
|
|
3266
|
+
dateOfBirth
|
|
3267
|
+
idFrontImage {
|
|
3268
|
+
id
|
|
3269
|
+
url
|
|
3270
|
+
}
|
|
3271
|
+
selfieImage {
|
|
3272
|
+
id
|
|
3273
|
+
url
|
|
3274
|
+
}
|
|
3275
|
+
permanentAddress
|
|
3276
|
+
currentAddress
|
|
3277
|
+
sourceOfIncome
|
|
3278
|
+
natureOfWork
|
|
3279
|
+
nationality
|
|
3280
|
+
placeOfBirth
|
|
3281
|
+
status
|
|
3282
|
+
basicDetailsSubmitted
|
|
3283
|
+
basicDetailsVerified
|
|
3284
|
+
imageDetailsSubmitted
|
|
3285
|
+
pendingManualImageDetailsVerification
|
|
3286
|
+
imageDetailsVerified
|
|
3287
|
+
personalDetailsSubmitted
|
|
3288
|
+
remarks
|
|
3289
|
+
dateTimeCreated
|
|
3290
|
+
dateTimeLastUpdated
|
|
3291
|
+
dateTimeApproved
|
|
3292
|
+
dateTimeRejected
|
|
3293
|
+
}
|
|
3294
|
+
`;
|
|
3261
3295
|
var MEMBER_VERIFICATION_REQUEST_QUERY = gql`
|
|
3262
3296
|
query MemberVerificationRequest {
|
|
3263
3297
|
memberVerificationRequest {
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3298
|
+
...MemberVerificationRequestFragment
|
|
3299
|
+
}
|
|
3300
|
+
}
|
|
3301
|
+
|
|
3302
|
+
${MEMBER_VERIFICATION_REQUEST_FRAGMENT}
|
|
3303
|
+
`;
|
|
3304
|
+
var MEMBER_VERIFICATION_REQUEST_BY_ID_QUERY = gql`
|
|
3305
|
+
query MemberVerificationRequestById($id: ObjectId!) {
|
|
3306
|
+
node(id: $id) {
|
|
3307
|
+
... on MemberVerificationRequest {
|
|
3308
|
+
...MemberVerificationRequestFragment
|
|
3271
3309
|
}
|
|
3272
|
-
selfieImage {
|
|
3273
|
-
id
|
|
3274
|
-
url
|
|
3275
|
-
}
|
|
3276
|
-
permanentAddress
|
|
3277
|
-
currentAddress
|
|
3278
|
-
sourceOfIncome
|
|
3279
|
-
natureOfWork
|
|
3280
|
-
nationality
|
|
3281
|
-
placeOfBirth
|
|
3282
|
-
status
|
|
3283
|
-
basicDetailsSubmitted
|
|
3284
|
-
basicDetailsVerified
|
|
3285
|
-
imageDetailsSubmitted
|
|
3286
|
-
pendingManualImageDetailsVerification
|
|
3287
|
-
imageDetailsVerified
|
|
3288
|
-
personalDetailsSubmitted
|
|
3289
|
-
remarks
|
|
3290
|
-
dateTimeCreated
|
|
3291
|
-
dateTimeLastUpdated
|
|
3292
|
-
dateTimeApproved
|
|
3293
|
-
dateTimeRejected
|
|
3294
3310
|
}
|
|
3295
3311
|
}
|
|
3312
|
+
|
|
3313
|
+
${MEMBER_VERIFICATION_REQUEST_FRAGMENT}
|
|
3296
3314
|
`;
|
|
3297
3315
|
var SUBMIT_MEMBER_VERIFICATION_REQUEST_BASIC_DETAILS_MUTATION = gql`
|
|
3298
3316
|
mutation SubmitMemberVerificationRequestBasicDetails(
|
|
@@ -3981,6 +3999,14 @@ var AccountService = class {
|
|
|
3981
3999
|
data: res.data.memberVerificationRequest ?? null
|
|
3982
4000
|
};
|
|
3983
4001
|
}
|
|
4002
|
+
async memberVerificationRequestById(variables) {
|
|
4003
|
+
const res = await this.client.request(MEMBER_VERIFICATION_REQUEST_BY_ID_QUERY, variables);
|
|
4004
|
+
if (!res.ok) return res;
|
|
4005
|
+
return {
|
|
4006
|
+
ok: true,
|
|
4007
|
+
data: res.data.node ?? null
|
|
4008
|
+
};
|
|
4009
|
+
}
|
|
3984
4010
|
async submitMemberVerificationRequestBasicDetails(variables) {
|
|
3985
4011
|
const res = await this.client.request(SUBMIT_MEMBER_VERIFICATION_REQUEST_BASIC_DETAILS_MUTATION, variables);
|
|
3986
4012
|
if (!res.ok) return res;
|
|
@@ -11223,6 +11249,14 @@ var Sdk = class {
|
|
|
11223
11249
|
data: res.data ? this.transformer.transform.memberVerificationRequest(res.data) : null
|
|
11224
11250
|
};
|
|
11225
11251
|
}
|
|
11252
|
+
async memberVerificationRequestById(id) {
|
|
11253
|
+
const res = await this.accountService.memberVerificationRequestById({ id });
|
|
11254
|
+
if (!res.ok) return res;
|
|
11255
|
+
return {
|
|
11256
|
+
ok: true,
|
|
11257
|
+
data: res.data ? this.transformer.transform.memberVerificationRequest(res.data) : null
|
|
11258
|
+
};
|
|
11259
|
+
}
|
|
11226
11260
|
async submitMemberVerificationRequestBasicDetails(input) {
|
|
11227
11261
|
return await this.accountService.submitMemberVerificationRequestBasicDetails(
|
|
11228
11262
|
{
|