@visa-check-r/integrations 0.0.40 → 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 +78 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.mts +46 -1
- package/dist/index.d.ts +46 -1
- package/dist/index.esm.js +74 -1
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
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,11 +1590,23 @@ 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 = {
|
|
1581
1607
|
visaApplication: visaApplicationQuery,
|
|
1582
1608
|
readinessScoreReview: readinessScoreReviewQuery,
|
|
1609
|
+
documents: documentReviewQuery,
|
|
1583
1610
|
consultantAssignment: consultantAssignmentQuery,
|
|
1584
1611
|
consultant: userQuery
|
|
1585
1612
|
};
|
|
@@ -1675,6 +1702,22 @@ var deleteVisaApplicationResponseFields = ["visaApplicationId"];
|
|
|
1675
1702
|
|
|
1676
1703
|
// src/services/profile/schemas/visa-profile.schema.ts
|
|
1677
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
|
+
`,
|
|
1678
1721
|
listVisaProfiles: (query) => `
|
|
1679
1722
|
query listVisaProfiles($limit: Int!, $skip: Int!, $search: String, $visaProfileIds: [String], $visaProfile: VisaProfileInput, $visaApplicationStatus: [VisaApplicationStatusEnum], $visaApplication: VisaApplicationInput) {
|
|
1680
1723
|
listVisaProfiles(limit: $limit, skip: $skip, search: $search, visaProfileIds: $visaProfileIds, visaProfile: $visaProfile, visaApplicationStatus: $visaApplicationStatus, visaApplication: $visaApplication) {
|
|
@@ -1714,6 +1757,36 @@ var visaProfileSchema = {
|
|
|
1714
1757
|
|
|
1715
1758
|
// src/services/profile/visa-profile.service.ts
|
|
1716
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
|
|
1717
1790
|
async deleteVisaProfile(input, fetchFields, option) {
|
|
1718
1791
|
var _a, _b;
|
|
1719
1792
|
const res = await client.request(
|
|
@@ -2262,6 +2335,7 @@ exports.AuthenticationError = AuthenticationError;
|
|
|
2262
2335
|
exports.GraphQLClient = GraphQLClient;
|
|
2263
2336
|
exports.NetworkError = NetworkError;
|
|
2264
2337
|
exports.SdkError = SdkError;
|
|
2338
|
+
exports._generateSOPResponseNestedFields = _generateSOPResponseNestedFields;
|
|
2265
2339
|
exports._getConsultantAssignmentResponseNestedFields = _getConsultantAssignmentResponseNestedFields;
|
|
2266
2340
|
exports._getVisaProfileChecklistItemResponseNestedFields = _getVisaProfileChecklistItemResponseNestedFields;
|
|
2267
2341
|
exports._getVisaProfileResponseNestedFields = _getVisaProfileResponseNestedFields;
|
|
@@ -2310,6 +2384,8 @@ exports.deleteVisaApplicationResponseFields = deleteVisaApplicationResponseField
|
|
|
2310
2384
|
exports.deleteVisaProfileChecklistItemResponse = deleteVisaProfileChecklistItemResponse;
|
|
2311
2385
|
exports.deleteVisaProfileResponse = deleteVisaProfileResponse;
|
|
2312
2386
|
exports.deleteVisaProfileReviewCommentResponseFields = deleteVisaProfileReviewCommentResponseFields;
|
|
2387
|
+
exports.generateSOPResponse = generateSOPResponse;
|
|
2388
|
+
exports.generateSOPResponseNestedFields = generateSOPResponseNestedFields;
|
|
2313
2389
|
exports.getActivityLogResponseFields = getActivityLogResponseFields;
|
|
2314
2390
|
exports.getActivityLogResponseNestedFields = getActivityLogResponseNestedFields;
|
|
2315
2391
|
exports.getChecklistItemResponse = getChecklistItemResponse;
|
|
@@ -2317,6 +2393,8 @@ exports.getChecklistItemResponseNestedFields = getChecklistItemResponseNestedFie
|
|
|
2317
2393
|
exports.getConsultantAssignmentCountResponseFields = getConsultantAssignmentCountResponseFields;
|
|
2318
2394
|
exports.getConsultantAssignmentResponseFields = getConsultantAssignmentResponseFields;
|
|
2319
2395
|
exports.getConsultantAssignmentResponseNestedFields = getConsultantAssignmentResponseNestedFields;
|
|
2396
|
+
exports.getGeneratedSOPResponse = getGeneratedSOPResponse;
|
|
2397
|
+
exports.getGeneratedSOPResponseNestedFields = getGeneratedSOPResponseNestedFields;
|
|
2320
2398
|
exports.getReadinessScoreReviewResponseFields = getReadinessScoreReviewResponseFields;
|
|
2321
2399
|
exports.getReadinessScoreReviewResponseNestedFields = getReadinessScoreReviewResponseNestedFields;
|
|
2322
2400
|
exports.getUserResponseFields = getUserResponseFields;
|