@visa-check-r/integrations 0.0.41 → 0.0.42

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
@@ -1499,6 +1499,21 @@ var createVisaProfileChecklistItemService = (client) => ({
1499
1499
  });
1500
1500
 
1501
1501
  // src/services/profile/profile.entity.ts
1502
+ var sopAnswerQuery = [
1503
+ "answer",
1504
+ "questionId",
1505
+ "reason"
1506
+ ];
1507
+ var sopReviewQuery = [
1508
+ "answeredQuestions",
1509
+ "createdAt",
1510
+ "generatedSop",
1511
+ "id",
1512
+ "reviewedAt",
1513
+ "unansweredQuestions",
1514
+ "visaProfileChecklistItemId",
1515
+ "visaProfileId"
1516
+ ];
1502
1517
  var documentReviewQuery = [
1503
1518
  "title",
1504
1519
  "examples",
@@ -1575,6 +1590,17 @@ var visaProfileReviewCommentQuery = [
1575
1590
  ];
1576
1591
 
1577
1592
  // src/services/profile/types/visa-profile.type.ts
1593
+ var generateSOPResponse = ["sopReview"];
1594
+ var _generateSOPResponseNestedFields = {
1595
+ answeredQuestions: sopAnswerQuery,
1596
+ unansweredQuestions: sopAnswerQuery
1597
+ };
1598
+ var generateSOPResponseNestedFields = {
1599
+ ..._generateSOPResponseNestedFields,
1600
+ sopReview: sopReviewQuery
1601
+ };
1602
+ var getGeneratedSOPResponse = generateSOPResponse;
1603
+ var getGeneratedSOPResponseNestedFields = generateSOPResponseNestedFields;
1578
1604
  var getConsultantAssignmentCountResponseFields = ["count"];
1579
1605
  var getVisaProfileResponse = ["visaProfile"];
1580
1606
  var _getVisaProfileResponseNestedFields = {
@@ -1676,6 +1702,22 @@ var deleteVisaApplicationResponseFields = ["visaApplicationId"];
1676
1702
 
1677
1703
  // src/services/profile/schemas/visa-profile.schema.ts
1678
1704
  var visaProfileSchema = {
1705
+ // get generated sop
1706
+ getGeneratedSOP: (query) => `
1707
+ query getGeneratedSOP($sopReview: SopReviewInput!) {
1708
+ getGeneratedSOP(sopReview: $sopReview) {
1709
+ ${query}
1710
+ }
1711
+ }
1712
+ `,
1713
+ // generate sop
1714
+ generateSOP: (query) => `
1715
+ mutation generateSOP($sopReview: SopReviewInput!) {
1716
+ generateSOP(sopReview: $sopReview) {
1717
+ ${query}
1718
+ }
1719
+ }
1720
+ `,
1679
1721
  listVisaProfiles: (query) => `
1680
1722
  query listVisaProfiles($limit: Int!, $skip: Int!, $search: String, $visaProfileIds: [String], $visaProfile: VisaProfileInput, $visaApplicationStatus: [VisaApplicationStatusEnum], $visaApplication: VisaApplicationInput) {
1681
1723
  listVisaProfiles(limit: $limit, skip: $skip, search: $search, visaProfileIds: $visaProfileIds, visaProfile: $visaProfile, visaApplicationStatus: $visaApplicationStatus, visaApplication: $visaApplication) {
@@ -1715,6 +1757,36 @@ var visaProfileSchema = {
1715
1757
 
1716
1758
  // src/services/profile/visa-profile.service.ts
1717
1759
  var createVisaProfileService = (client) => ({
1760
+ // sop
1761
+ async getGeneratedSOP(input, fetchFields, option) {
1762
+ var _a, _b, _c;
1763
+ const res = await client.request(
1764
+ visaProfileSchema.getGeneratedSOP(
1765
+ gqlQueryStringBuilder(
1766
+ (_a = fetchFields == null ? void 0 : fetchFields.root) != null ? _a : getGeneratedSOPResponse,
1767
+ (_b = fetchFields == null ? void 0 : fetchFields.nestedFields) != null ? _b : getGeneratedSOPResponseNestedFields
1768
+ )
1769
+ ),
1770
+ input,
1771
+ option
1772
+ );
1773
+ return (_c = res.data) == null ? void 0 : _c.getGeneratedSOP;
1774
+ },
1775
+ async generateSOP(input, fetchFields, option) {
1776
+ var _a, _b, _c;
1777
+ const res = await client.request(
1778
+ visaProfileSchema.generateSOP(
1779
+ gqlQueryStringBuilder(
1780
+ (_a = fetchFields == null ? void 0 : fetchFields.root) != null ? _a : generateSOPResponse,
1781
+ (_b = fetchFields == null ? void 0 : fetchFields.nestedFields) != null ? _b : generateSOPResponseNestedFields
1782
+ )
1783
+ ),
1784
+ input,
1785
+ option
1786
+ );
1787
+ return (_c = res.data) == null ? void 0 : _c.generateSOP;
1788
+ },
1789
+ // visa profile
1718
1790
  async deleteVisaProfile(input, fetchFields, option) {
1719
1791
  var _a, _b;
1720
1792
  const res = await client.request(
@@ -2263,6 +2335,7 @@ exports.AuthenticationError = AuthenticationError;
2263
2335
  exports.GraphQLClient = GraphQLClient;
2264
2336
  exports.NetworkError = NetworkError;
2265
2337
  exports.SdkError = SdkError;
2338
+ exports._generateSOPResponseNestedFields = _generateSOPResponseNestedFields;
2266
2339
  exports._getConsultantAssignmentResponseNestedFields = _getConsultantAssignmentResponseNestedFields;
2267
2340
  exports._getVisaProfileChecklistItemResponseNestedFields = _getVisaProfileChecklistItemResponseNestedFields;
2268
2341
  exports._getVisaProfileResponseNestedFields = _getVisaProfileResponseNestedFields;
@@ -2311,6 +2384,8 @@ exports.deleteVisaApplicationResponseFields = deleteVisaApplicationResponseField
2311
2384
  exports.deleteVisaProfileChecklistItemResponse = deleteVisaProfileChecklistItemResponse;
2312
2385
  exports.deleteVisaProfileResponse = deleteVisaProfileResponse;
2313
2386
  exports.deleteVisaProfileReviewCommentResponseFields = deleteVisaProfileReviewCommentResponseFields;
2387
+ exports.generateSOPResponse = generateSOPResponse;
2388
+ exports.generateSOPResponseNestedFields = generateSOPResponseNestedFields;
2314
2389
  exports.getActivityLogResponseFields = getActivityLogResponseFields;
2315
2390
  exports.getActivityLogResponseNestedFields = getActivityLogResponseNestedFields;
2316
2391
  exports.getChecklistItemResponse = getChecklistItemResponse;
@@ -2318,6 +2393,8 @@ exports.getChecklistItemResponseNestedFields = getChecklistItemResponseNestedFie
2318
2393
  exports.getConsultantAssignmentCountResponseFields = getConsultantAssignmentCountResponseFields;
2319
2394
  exports.getConsultantAssignmentResponseFields = getConsultantAssignmentResponseFields;
2320
2395
  exports.getConsultantAssignmentResponseNestedFields = getConsultantAssignmentResponseNestedFields;
2396
+ exports.getGeneratedSOPResponse = getGeneratedSOPResponse;
2397
+ exports.getGeneratedSOPResponseNestedFields = getGeneratedSOPResponseNestedFields;
2321
2398
  exports.getReadinessScoreReviewResponseFields = getReadinessScoreReviewResponseFields;
2322
2399
  exports.getReadinessScoreReviewResponseNestedFields = getReadinessScoreReviewResponseNestedFields;
2323
2400
  exports.getUserResponseFields = getUserResponseFields;