@visa-check-r/integrations 0.0.43 → 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 +41 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.mts +44 -2
- package/dist/index.d.ts +44 -2
- package/dist/index.esm.js +40 -2
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1500,6 +1500,17 @@ var createVisaProfileChecklistItemService = (client) => ({
|
|
|
1500
1500
|
});
|
|
1501
1501
|
|
|
1502
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
|
+
];
|
|
1503
1514
|
var sopAnswerQuery = [
|
|
1504
1515
|
"answer",
|
|
1505
1516
|
"questionId",
|
|
@@ -1591,7 +1602,11 @@ var visaProfileReviewCommentQuery = [
|
|
|
1591
1602
|
];
|
|
1592
1603
|
|
|
1593
1604
|
// src/services/profile/types/visa-profile.type.ts
|
|
1594
|
-
var
|
|
1605
|
+
var getJobResponse = ["job"];
|
|
1606
|
+
var getJobResponseNestedFields = {
|
|
1607
|
+
job: jobQuery
|
|
1608
|
+
};
|
|
1609
|
+
var generateSOPResponse = ["sopReview", "jobId"];
|
|
1595
1610
|
var _generateSOPResponseNestedFields = {
|
|
1596
1611
|
answeredQuestions: sopAnswerQuery,
|
|
1597
1612
|
unansweredQuestions: sopAnswerQuery
|
|
@@ -1703,6 +1718,14 @@ var deleteVisaApplicationResponseFields = ["visaApplicationId"];
|
|
|
1703
1718
|
|
|
1704
1719
|
// src/services/profile/schemas/visa-profile.schema.ts
|
|
1705
1720
|
var visaProfileSchema = {
|
|
1721
|
+
// get job
|
|
1722
|
+
getJob: (query) => `
|
|
1723
|
+
query getJob($job: JobInput!) {
|
|
1724
|
+
getJob(job: $job) {
|
|
1725
|
+
${query}
|
|
1726
|
+
}
|
|
1727
|
+
}
|
|
1728
|
+
`,
|
|
1706
1729
|
// get generated sop
|
|
1707
1730
|
getGeneratedSOP: (query) => `
|
|
1708
1731
|
query getGeneratedSOP($sopReview: SopReviewInput!) {
|
|
@@ -1758,6 +1781,21 @@ var visaProfileSchema = {
|
|
|
1758
1781
|
|
|
1759
1782
|
// src/services/profile/visa-profile.service.ts
|
|
1760
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
|
+
},
|
|
1761
1799
|
// sop
|
|
1762
1800
|
async getGeneratedSOP(input, fetchFields, option) {
|
|
1763
1801
|
var _a, _b, _c;
|
|
@@ -2396,6 +2434,8 @@ exports.getConsultantAssignmentResponseFields = getConsultantAssignmentResponseF
|
|
|
2396
2434
|
exports.getConsultantAssignmentResponseNestedFields = getConsultantAssignmentResponseNestedFields;
|
|
2397
2435
|
exports.getGeneratedSOPResponse = getGeneratedSOPResponse;
|
|
2398
2436
|
exports.getGeneratedSOPResponseNestedFields = getGeneratedSOPResponseNestedFields;
|
|
2437
|
+
exports.getJobResponse = getJobResponse;
|
|
2438
|
+
exports.getJobResponseNestedFields = getJobResponseNestedFields;
|
|
2399
2439
|
exports.getReadinessScoreReviewResponseFields = getReadinessScoreReviewResponseFields;
|
|
2400
2440
|
exports.getReadinessScoreReviewResponseNestedFields = getReadinessScoreReviewResponseNestedFields;
|
|
2401
2441
|
exports.getUserResponseFields = getUserResponseFields;
|