@visa-check-r/integrations 0.0.128 → 0.0.129
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 +15 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.mts +12 -1
- package/dist/index.d.ts +12 -1
- package/dist/index.esm.js +15 -0
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -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;
|