@visa-check-r/integrations 0.0.59 → 0.0.60

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
@@ -1606,6 +1606,14 @@ var createVisaProfileChecklistItemService = (client) => ({
1606
1606
  });
1607
1607
 
1608
1608
  // src/services/profile/profile.entity.ts
1609
+ var consultantClientStatsQuery = [
1610
+ "awaitingReview",
1611
+ "completedReview",
1612
+ "consultantId",
1613
+ "newReview",
1614
+ "pendingAdminReview",
1615
+ "total"
1616
+ ];
1609
1617
  var visaProfileCountQuery = [
1610
1618
  "acceptedByConsultant",
1611
1619
  "assigned",
@@ -1768,6 +1776,10 @@ var updateVisaProfileResponseNestedFields = getVisaProfileResponseNestedFields;
1768
1776
  var deleteVisaProfileResponse = ["visaProfileId"];
1769
1777
 
1770
1778
  // src/services/profile/types/consultant-assignment.type.ts
1779
+ var getConsultantClientStatsResponseFields = ["consultantClientStats"];
1780
+ var getConsultantClientStatsResponseNestedFields = {
1781
+ consultantClientStats: consultantClientStatsQuery
1782
+ };
1771
1783
  var getConsultantAssignmentResponseFields = ["consultantAssignment"];
1772
1784
  var _getConsultantAssignmentResponseNestedFields = {
1773
1785
  ...{ ...getVisaProfileResponseNestedFields, consultantAssignment: null },
@@ -2195,6 +2207,13 @@ var createReadinessScoreReviewService = (client) => ({
2195
2207
 
2196
2208
  // src/services/profile/schemas/consultant-assignment.schema.ts
2197
2209
  var consultantAssignmentSchema = {
2210
+ getConsultantClientStats: (query) => `
2211
+ query getConsultantClientStats($consultantId: String!) {
2212
+ getConsultantClientStats(consultantId: $consultantId) {
2213
+ ${query}
2214
+ }
2215
+ }
2216
+ `,
2198
2217
  getConsultantAssignmentCount: (query) => `
2199
2218
  query getConsultantAssignmentCount($consultantAssignment: ConsultantAssignmentInput!) {
2200
2219
  getConsultantAssignmentCount(consultantAssignment: $consultantAssignment) {
@@ -2241,6 +2260,20 @@ var consultantAssignmentSchema = {
2241
2260
 
2242
2261
  // src/services/profile/consultant-assignment.service.ts
2243
2262
  var createConsultantAssignmentService = (client) => ({
2263
+ async getConsultantClientStats(input, fetchFields, option) {
2264
+ var _a, _b, _c;
2265
+ const res = await client.request(
2266
+ consultantAssignmentSchema.getConsultantClientStats(
2267
+ gqlQueryStringBuilder(
2268
+ (_a = fetchFields == null ? void 0 : fetchFields.root) != null ? _a : getConsultantClientStatsResponseFields,
2269
+ (_b = fetchFields == null ? void 0 : fetchFields.nestedFields) != null ? _b : getConsultantClientStatsResponseNestedFields
2270
+ )
2271
+ ),
2272
+ input,
2273
+ option
2274
+ );
2275
+ return (_c = res.data) == null ? void 0 : _c.getConsultantClientStats;
2276
+ },
2244
2277
  async getConsultantAssignmentCount(input, fetchFields, option) {
2245
2278
  var _a, _b;
2246
2279
  const res = await client.request(
@@ -2781,6 +2814,8 @@ exports.getChecklistItemResponseNestedFields = getChecklistItemResponseNestedFie
2781
2814
  exports.getConsultantAssignmentCountResponseFields = getConsultantAssignmentCountResponseFields;
2782
2815
  exports.getConsultantAssignmentResponseFields = getConsultantAssignmentResponseFields;
2783
2816
  exports.getConsultantAssignmentResponseNestedFields = getConsultantAssignmentResponseNestedFields;
2817
+ exports.getConsultantClientStatsResponseFields = getConsultantClientStatsResponseFields;
2818
+ exports.getConsultantClientStatsResponseNestedFields = getConsultantClientStatsResponseNestedFields;
2784
2819
  exports.getFlutterAccessTokenResponse = getFlutterAccessTokenResponse;
2785
2820
  exports.getGeneratedSOPResponse = getGeneratedSOPResponse;
2786
2821
  exports.getGeneratedSOPResponseNestedFields = getGeneratedSOPResponseNestedFields;