@visa-check-r/integrations 0.0.42 → 0.0.44

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,17 @@ var createVisaProfileChecklistItemService = (client) => ({
1499
1500
  });
1500
1501
 
1501
1502
  // src/services/profile/profile.entity.ts
1503
+ var jobQuery = [
1504
+ "createdAt",
1505
+ "error",
1506
+ "id",
1507
+ "message",
1508
+ "progress",
1509
+ "result",
1510
+ "status",
1511
+ "type",
1512
+ "updatedAt"
1513
+ ];
1502
1514
  var sopAnswerQuery = [
1503
1515
  "answer",
1504
1516
  "questionId",
@@ -1590,7 +1602,11 @@ var visaProfileReviewCommentQuery = [
1590
1602
  ];
1591
1603
 
1592
1604
  // src/services/profile/types/visa-profile.type.ts
1593
- var generateSOPResponse = ["sopReview"];
1605
+ var getJobResponse = ["job"];
1606
+ var getJobResponseNestedFields = {
1607
+ job: jobQuery
1608
+ };
1609
+ var generateSOPResponse = ["sopReview", "jobId"];
1594
1610
  var _generateSOPResponseNestedFields = {
1595
1611
  answeredQuestions: sopAnswerQuery,
1596
1612
  unansweredQuestions: sopAnswerQuery
@@ -1702,6 +1718,14 @@ var deleteVisaApplicationResponseFields = ["visaApplicationId"];
1702
1718
 
1703
1719
  // src/services/profile/schemas/visa-profile.schema.ts
1704
1720
  var visaProfileSchema = {
1721
+ // get job
1722
+ getJob: (query) => `
1723
+ query getJob($job: JobInput!) {
1724
+ getJob(job: $job) {
1725
+ ${query}
1726
+ }
1727
+ }
1728
+ `,
1705
1729
  // get generated sop
1706
1730
  getGeneratedSOP: (query) => `
1707
1731
  query getGeneratedSOP($sopReview: SopReviewInput!) {
@@ -1757,6 +1781,21 @@ var visaProfileSchema = {
1757
1781
 
1758
1782
  // src/services/profile/visa-profile.service.ts
1759
1783
  var createVisaProfileService = (client) => ({
1784
+ // job
1785
+ async getJob(input, fetchFields, option) {
1786
+ var _a, _b, _c;
1787
+ const res = await client.request(
1788
+ visaProfileSchema.getJob(
1789
+ gqlQueryStringBuilder(
1790
+ (_a = fetchFields == null ? void 0 : fetchFields.root) != null ? _a : getJobResponse,
1791
+ (_b = fetchFields == null ? void 0 : fetchFields.nestedFields) != null ? _b : getJobResponseNestedFields
1792
+ )
1793
+ ),
1794
+ input,
1795
+ option
1796
+ );
1797
+ return (_c = res.data) == null ? void 0 : _c.getJob;
1798
+ },
1760
1799
  // sop
1761
1800
  async getGeneratedSOP(input, fetchFields, option) {
1762
1801
  var _a, _b, _c;
@@ -2395,6 +2434,8 @@ exports.getConsultantAssignmentResponseFields = getConsultantAssignmentResponseF
2395
2434
  exports.getConsultantAssignmentResponseNestedFields = getConsultantAssignmentResponseNestedFields;
2396
2435
  exports.getGeneratedSOPResponse = getGeneratedSOPResponse;
2397
2436
  exports.getGeneratedSOPResponseNestedFields = getGeneratedSOPResponseNestedFields;
2437
+ exports.getJobResponse = getJobResponse;
2438
+ exports.getJobResponseNestedFields = getJobResponseNestedFields;
2398
2439
  exports.getReadinessScoreReviewResponseFields = getReadinessScoreReviewResponseFields;
2399
2440
  exports.getReadinessScoreReviewResponseNestedFields = getReadinessScoreReviewResponseNestedFields;
2400
2441
  exports.getUserResponseFields = getUserResponseFields;