@visa-check-r/integrations 0.0.127 → 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 CHANGED
@@ -4504,11 +4504,13 @@ var getAdminAnalyticsQuery = `
4504
4504
  query getAdminAnalytics($months: Int) {
4505
4505
  getAdminAnalytics(months: $months) {
4506
4506
  adminAnalytics {
4507
- months { month signups profiles applications approved rejected purchases creditsSold salesValue checksRun }
4507
+ months { month signups profiles applications approved rejected purchases creditsSold salesValue checksRun sopDrafts refusals }
4508
4508
  outcomes { key count }
4509
4509
  funnel { key count }
4510
4510
  readiness { key count }
4511
4511
  averageReadiness
4512
+ totals { creditsSold salesValue readinessChecks sopDrafts refusals }
4513
+ profileStages { total notStarted draft completed ready }
4512
4514
  }
4513
4515
  }
4514
4516
  }
@@ -4595,6 +4597,21 @@ var createPartnerLinkService = (client) => ({
4595
4597
  );
4596
4598
  return (_c = (_b = (_a = res.data) == null ? void 0 : _a.partnerProfileChecks) == null ? void 0 : _b.profileChecks) != null ? _c : [];
4597
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
+ },
4598
4615
  /** The signed-in user's own visa profiles counted by check status, and how many are ready to submit. */
4599
4616
  async myProfileSummary(option) {
4600
4617
  var _a, _b, _c;