@visa-check-r/integrations 0.0.128 → 0.0.130
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.js +19 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.mts +18 -1
- package/dist/index.d.ts +18 -1
- package/dist/index.esm.js +19 -4
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -225,8 +225,8 @@ var userSchema = {
|
|
|
225
225
|
}
|
|
226
226
|
`,
|
|
227
227
|
listUsers: (query) => `
|
|
228
|
-
query listUsers($limit: Int!, $skip: Int!, $search: String, $userIds: [String], $user: UserInput, $subscriptionIds: [String]) {
|
|
229
|
-
listUsers(limit: $limit, skip: $skip, search: $search, userIds: $userIds, user: $user, subscriptionIds: $subscriptionIds) {
|
|
228
|
+
query listUsers($limit: Int!, $skip: Int!, $search: String, $userIds: [String], $user: UserInput, $subscriptionIds: [String], $sortBy: String, $sortDesc: Boolean) {
|
|
229
|
+
listUsers(limit: $limit, skip: $skip, search: $search, userIds: $userIds, user: $user, subscriptionIds: $subscriptionIds, sortBy: $sortBy, sortDesc: $sortDesc) {
|
|
230
230
|
${query}
|
|
231
231
|
}
|
|
232
232
|
}
|
|
@@ -2610,8 +2610,8 @@ var visaProfileSchema = {
|
|
|
2610
2610
|
}
|
|
2611
2611
|
`,
|
|
2612
2612
|
listVisaProfiles: (query) => `
|
|
2613
|
-
query listVisaProfiles($limit: Int!, $skip: Int!, $search: String, $visaProfileIds: [String], $visaProfile: VisaProfileInput, $visaApplicationStatus: [VisaApplicationStatusEnum], $visaApplication: VisaApplicationInput) {
|
|
2614
|
-
listVisaProfiles(limit: $limit, skip: $skip, search: $search, visaProfileIds: $visaProfileIds, visaProfile: $visaProfile, visaApplicationStatus: $visaApplicationStatus, visaApplication: $visaApplication) {
|
|
2613
|
+
query listVisaProfiles($limit: Int!, $skip: Int!, $search: String, $visaProfileIds: [String], $visaProfile: VisaProfileInput, $visaApplicationStatus: [VisaApplicationStatusEnum], $visaApplication: VisaApplicationInput, $sortBy: String, $sortDesc: Boolean) {
|
|
2614
|
+
listVisaProfiles(limit: $limit, skip: $skip, search: $search, visaProfileIds: $visaProfileIds, visaProfile: $visaProfile, visaApplicationStatus: $visaApplicationStatus, visaApplication: $visaApplication, sortBy: $sortBy, sortDesc: $sortDesc) {
|
|
2615
2615
|
${query}
|
|
2616
2616
|
}
|
|
2617
2617
|
}
|
|
@@ -4597,6 +4597,21 @@ var createPartnerLinkService = (client) => ({
|
|
|
4597
4597
|
);
|
|
4598
4598
|
return (_c = (_b = (_a = res.data) == null ? void 0 : _a.partnerProfileChecks) == null ? void 0 : _b.profileChecks) != null ? _c : [];
|
|
4599
4599
|
},
|
|
4600
|
+
/**
|
|
4601
|
+
* Each visa profile's stage (at most 100 at a time): "ready" is completed with a
|
|
4602
|
+
* readiness score of 75% or more. Admins see any profile, clients their own,
|
|
4603
|
+
* partners their clients'; others are left out.
|
|
4604
|
+
*/
|
|
4605
|
+
async profileChecks(visaProfileIds, option) {
|
|
4606
|
+
var _a, _b, _c;
|
|
4607
|
+
if (!visaProfileIds.length) return [];
|
|
4608
|
+
const res = await client.request(
|
|
4609
|
+
`query profileChecks($visaProfileIds: [String]!) { profileChecks(visaProfileIds: $visaProfileIds) { profileChecks { visaProfileId status } } }`,
|
|
4610
|
+
{ visaProfileIds },
|
|
4611
|
+
option
|
|
4612
|
+
);
|
|
4613
|
+
return (_c = (_b = (_a = res.data) == null ? void 0 : _a.profileChecks) == null ? void 0 : _b.profileChecks) != null ? _c : [];
|
|
4614
|
+
},
|
|
4600
4615
|
/** The signed-in user's own visa profiles counted by check status, and how many are ready to submit. */
|
|
4601
4616
|
async myProfileSummary(option) {
|
|
4602
4617
|
var _a, _b, _c;
|