@visa-check-r/integrations 0.0.41 → 0.0.43

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