@visa-check-r/integrations 0.0.16 → 0.0.18
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 +166 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.mts +97 -1
- package/dist/index.d.ts +97 -1
- package/dist/index.esm.js +165 -3
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -222,6 +222,14 @@ var userSchema = {
|
|
|
222
222
|
};
|
|
223
223
|
|
|
224
224
|
// src/services/user/user.entity.ts
|
|
225
|
+
var consultantInviteQuery = [
|
|
226
|
+
"consultantId",
|
|
227
|
+
"createdAt",
|
|
228
|
+
"email",
|
|
229
|
+
"expirationDate",
|
|
230
|
+
"id",
|
|
231
|
+
"updatedAt"
|
|
232
|
+
];
|
|
225
233
|
var subscriptionQuery = [
|
|
226
234
|
"createdAt",
|
|
227
235
|
"description",
|
|
@@ -958,6 +966,139 @@ var createUserSubscriptionService = (client) => ({
|
|
|
958
966
|
}
|
|
959
967
|
});
|
|
960
968
|
|
|
969
|
+
// src/services/user/schemas/consultant-invite.ts
|
|
970
|
+
var consultantInviteSchema = {
|
|
971
|
+
createConsultantInvite: (query) => `
|
|
972
|
+
mutation createConsultantInvite($consultantInvite: ConsultantInviteInput!) {
|
|
973
|
+
createConsultantInvite(consultantInvite: $consultantInvite) {
|
|
974
|
+
${query}
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
`,
|
|
978
|
+
updateConsultantInvite: (query) => `
|
|
979
|
+
mutation updateConsultantInvite($consultantInviteId: String!, $consultantInvite: ConsultantInviteInput!) {
|
|
980
|
+
updateConsultantInvite(consultantInviteId: $consultantInviteId, consultantInvite: $consultantInvite) {
|
|
981
|
+
${query}
|
|
982
|
+
}
|
|
983
|
+
}
|
|
984
|
+
`,
|
|
985
|
+
removeConsultantInvite: (query) => `
|
|
986
|
+
mutation removeConsultantInvite($consultantInviteId: String!) {
|
|
987
|
+
removeConsultantInvite(consultantInviteId: $consultantInviteId) {
|
|
988
|
+
${query}
|
|
989
|
+
}
|
|
990
|
+
}
|
|
991
|
+
`,
|
|
992
|
+
// get consultantInvite (consultantInvite)
|
|
993
|
+
getConsultantInvite: (query) => `
|
|
994
|
+
query getConsultantInvite($consultantInvite: ConsultantInviteInput!) {
|
|
995
|
+
getConsultantInvite(consultantInvite: $consultantInvite) {
|
|
996
|
+
${query}
|
|
997
|
+
}
|
|
998
|
+
}
|
|
999
|
+
`,
|
|
1000
|
+
listConsultantInvites: (query) => `
|
|
1001
|
+
query listConsultantInvites($search: String, $consultantInviteIds: [String], $consultantInvite: ConsultantInviteInput, $limit: Int!, $skip: Int!) {
|
|
1002
|
+
listConsultantInvites(search: $search, consultantInviteIds: $consultantInviteIds, consultantInvite: $consultantInvite, limit: $limit, skip: $skip) {
|
|
1003
|
+
${query}
|
|
1004
|
+
}
|
|
1005
|
+
}
|
|
1006
|
+
`
|
|
1007
|
+
};
|
|
1008
|
+
|
|
1009
|
+
// src/services/user/types/consultant-invite.type.ts
|
|
1010
|
+
var getConsultantInviteResponseFields = ["consultantInvite"];
|
|
1011
|
+
var getConsultantInviteResponseNestedFields = {
|
|
1012
|
+
consultantInvite: consultantInviteQuery
|
|
1013
|
+
};
|
|
1014
|
+
var listConsultantInvitesResponseFields = ["consultantInvites", "total"];
|
|
1015
|
+
var listConsultantInvitesResponseNestedFields = {
|
|
1016
|
+
consultantInvites: consultantInviteQuery
|
|
1017
|
+
};
|
|
1018
|
+
var createConsultantInviteResponseFields = getConsultantInviteResponseFields;
|
|
1019
|
+
var createConsultantInviteResponseNestedFields = getConsultantInviteResponseNestedFields;
|
|
1020
|
+
var updateConsultantInviteResponseFields = getConsultantInviteResponseFields;
|
|
1021
|
+
var updateConsultantInviteResponseNestedFields = getConsultantInviteResponseNestedFields;
|
|
1022
|
+
var deleteConsultantInviteResponseFields = ["consultantInviteId"];
|
|
1023
|
+
|
|
1024
|
+
// src/services/user/consultant-invite.service.ts
|
|
1025
|
+
var createConsultantInviteService = (client) => ({
|
|
1026
|
+
// create
|
|
1027
|
+
async createConsultantInvite(input, fetchFields, option) {
|
|
1028
|
+
var _a, _b, _c;
|
|
1029
|
+
const res = await client.request(
|
|
1030
|
+
consultantInviteSchema.createConsultantInvite(
|
|
1031
|
+
gqlQueryStringBuilder(
|
|
1032
|
+
(_a = fetchFields == null ? void 0 : fetchFields.root) != null ? _a : createConsultantInviteResponseFields,
|
|
1033
|
+
(_b = fetchFields == null ? void 0 : fetchFields.nestedFields) != null ? _b : createConsultantInviteResponseNestedFields
|
|
1034
|
+
)
|
|
1035
|
+
),
|
|
1036
|
+
input,
|
|
1037
|
+
option
|
|
1038
|
+
);
|
|
1039
|
+
return (_c = res.data) == null ? void 0 : _c.createConsultantInvite;
|
|
1040
|
+
},
|
|
1041
|
+
// update
|
|
1042
|
+
async updateConsultantInvite(input, fetchFields, option) {
|
|
1043
|
+
var _a, _b, _c;
|
|
1044
|
+
const res = await client.request(
|
|
1045
|
+
consultantInviteSchema.updateConsultantInvite(
|
|
1046
|
+
gqlQueryStringBuilder(
|
|
1047
|
+
(_a = fetchFields == null ? void 0 : fetchFields.root) != null ? _a : updateConsultantInviteResponseFields,
|
|
1048
|
+
(_b = fetchFields == null ? void 0 : fetchFields.nestedFields) != null ? _b : updateConsultantInviteResponseNestedFields
|
|
1049
|
+
)
|
|
1050
|
+
),
|
|
1051
|
+
input,
|
|
1052
|
+
option
|
|
1053
|
+
);
|
|
1054
|
+
return (_c = res.data) == null ? void 0 : _c.updateConsultantInvite;
|
|
1055
|
+
},
|
|
1056
|
+
// remove
|
|
1057
|
+
async removeConsultantInvite(input, fetchFields, option) {
|
|
1058
|
+
var _a, _b;
|
|
1059
|
+
const res = await client.request(
|
|
1060
|
+
consultantInviteSchema.removeConsultantInvite(
|
|
1061
|
+
gqlQueryStringBuilder(
|
|
1062
|
+
(_a = fetchFields == null ? void 0 : fetchFields.root) != null ? _a : deleteConsultantInviteResponseFields
|
|
1063
|
+
)
|
|
1064
|
+
),
|
|
1065
|
+
input,
|
|
1066
|
+
option
|
|
1067
|
+
);
|
|
1068
|
+
return (_b = res.data) == null ? void 0 : _b.removeConsultantInvite;
|
|
1069
|
+
},
|
|
1070
|
+
// get subscription
|
|
1071
|
+
async getConsultantInvite(input, fetchFields, option) {
|
|
1072
|
+
var _a, _b, _c;
|
|
1073
|
+
const res = await client.request(
|
|
1074
|
+
consultantInviteSchema.getConsultantInvite(
|
|
1075
|
+
gqlQueryStringBuilder(
|
|
1076
|
+
(_a = fetchFields == null ? void 0 : fetchFields.root) != null ? _a : getConsultantInviteResponseFields,
|
|
1077
|
+
(_b = fetchFields == null ? void 0 : fetchFields.nestedFields) != null ? _b : getConsultantInviteResponseNestedFields
|
|
1078
|
+
)
|
|
1079
|
+
),
|
|
1080
|
+
input,
|
|
1081
|
+
option
|
|
1082
|
+
);
|
|
1083
|
+
return (_c = res.data) == null ? void 0 : _c.getConsultantInvite;
|
|
1084
|
+
},
|
|
1085
|
+
// list subscription
|
|
1086
|
+
async listConsultantInvites(input, fetchFields, option) {
|
|
1087
|
+
var _a, _b, _c;
|
|
1088
|
+
const res = await client.request(
|
|
1089
|
+
consultantInviteSchema.listConsultantInvites(
|
|
1090
|
+
gqlQueryStringBuilder(
|
|
1091
|
+
(_a = fetchFields == null ? void 0 : fetchFields.root) != null ? _a : listConsultantInvitesResponseFields,
|
|
1092
|
+
(_b = fetchFields == null ? void 0 : fetchFields.nestedFields) != null ? _b : listConsultantInvitesResponseNestedFields
|
|
1093
|
+
)
|
|
1094
|
+
),
|
|
1095
|
+
input,
|
|
1096
|
+
option
|
|
1097
|
+
);
|
|
1098
|
+
return (_c = res.data) == null ? void 0 : _c.listConsultantInvites;
|
|
1099
|
+
}
|
|
1100
|
+
});
|
|
1101
|
+
|
|
961
1102
|
// src/services/checklist/schemas/checklist-item.schema.ts
|
|
962
1103
|
var checklistItemSchema = {
|
|
963
1104
|
getChecklistItem: (query) => `
|
|
@@ -1363,6 +1504,7 @@ var visaProfileReviewCommentQuery = [
|
|
|
1363
1504
|
];
|
|
1364
1505
|
|
|
1365
1506
|
// src/services/profile/types/visa-profile.type.ts
|
|
1507
|
+
var getConsultantAssignmentCountResponseFields = ["count"];
|
|
1366
1508
|
var getVisaProfileResponse = ["visaProfile"];
|
|
1367
1509
|
var _getVisaProfileResponseNestedFields = {
|
|
1368
1510
|
visaApplication: visaApplicationQuery,
|
|
@@ -1460,8 +1602,8 @@ var deleteVisaApplicationResponseFields = ["visaApplicationId"];
|
|
|
1460
1602
|
// src/services/profile/schemas/visa-profile.schema.ts
|
|
1461
1603
|
var visaProfileSchema = {
|
|
1462
1604
|
listVisaProfiles: (query) => `
|
|
1463
|
-
query listVisaProfiles($limit: Int!, $skip: Int!, $search: String, $visaProfileIds: [String], $visaProfile: VisaProfileInput) {
|
|
1464
|
-
listVisaProfiles(limit: $limit, skip: $skip, search: $search, visaProfileIds: $visaProfileIds, visaProfile: $visaProfile) {
|
|
1605
|
+
query listVisaProfiles($limit: Int!, $skip: Int!, $search: String, $visaProfileIds: [String], $visaProfile: VisaProfileInput, $visaApplicationStatus: [VisaApplicationStatusEnum]) {
|
|
1606
|
+
listVisaProfiles(limit: $limit, skip: $skip, search: $search, visaProfileIds: $visaProfileIds, visaProfile: $visaProfile, visaApplicationStatus: $visaApplicationStatus) {
|
|
1465
1607
|
${query}
|
|
1466
1608
|
}
|
|
1467
1609
|
}
|
|
@@ -1685,6 +1827,13 @@ var createReadinessScoreReviewService = (client) => ({
|
|
|
1685
1827
|
|
|
1686
1828
|
// src/services/profile/schemas/consultant-assignment.schema.ts
|
|
1687
1829
|
var consultantAssignmentSchema = {
|
|
1830
|
+
getConsultantAssignmentCount: (query) => `
|
|
1831
|
+
query getConsultantAssignmentCount($consultantAssignment: ConsultantAssignmentInput!) {
|
|
1832
|
+
getConsultantAssignmentCount(consultantAssignment: $consultantAssignment) {
|
|
1833
|
+
${query}
|
|
1834
|
+
}
|
|
1835
|
+
}
|
|
1836
|
+
`,
|
|
1688
1837
|
listConsultantAssignments: (query) => `
|
|
1689
1838
|
query listConsultantAssignments($limit: Int!, $skip: Int!, $search: String, $consultantAssignmentIds: [String], $consultantAssignment: ConsultantAssignmentInput) {
|
|
1690
1839
|
listConsultantAssignments(limit: $limit, skip: $skip, search: $search, consultantAssignmentIds: $consultantAssignmentIds, consultantAssignment: $consultantAssignment) {
|
|
@@ -1724,6 +1873,19 @@ var consultantAssignmentSchema = {
|
|
|
1724
1873
|
|
|
1725
1874
|
// src/services/profile/consultant-assignment.service.ts
|
|
1726
1875
|
var createConsultantAssignmentService = (client) => ({
|
|
1876
|
+
async getConsultantAssignmentCount(input, fetchFields, option) {
|
|
1877
|
+
var _a, _b;
|
|
1878
|
+
const res = await client.request(
|
|
1879
|
+
consultantAssignmentSchema.getConsultantAssignmentCount(
|
|
1880
|
+
gqlQueryStringBuilder(
|
|
1881
|
+
(_a = fetchFields == null ? void 0 : fetchFields.root) != null ? _a : getConsultantAssignmentCountResponseFields
|
|
1882
|
+
)
|
|
1883
|
+
),
|
|
1884
|
+
input,
|
|
1885
|
+
option
|
|
1886
|
+
);
|
|
1887
|
+
return (_b = res.data) == null ? void 0 : _b.getConsultantAssignmentCount;
|
|
1888
|
+
},
|
|
1727
1889
|
async deleteConsultantAssignment(input, fetchFields, option) {
|
|
1728
1890
|
var _a, _b;
|
|
1729
1891
|
const res = await client.request(
|
|
@@ -2038,6 +2200,7 @@ exports.createChecklistItemService = createChecklistItemService;
|
|
|
2038
2200
|
exports.createConsultantAssignmentResponseFields = createConsultantAssignmentResponseFields;
|
|
2039
2201
|
exports.createConsultantAssignmentResponseNestedFields = createConsultantAssignmentResponseNestedFields;
|
|
2040
2202
|
exports.createConsultantAssignmentService = createConsultantAssignmentService;
|
|
2203
|
+
exports.createConsultantInviteService = createConsultantInviteService;
|
|
2041
2204
|
exports.createReadinessScoreReviewResponseFields = createReadinessScoreReviewResponseFields;
|
|
2042
2205
|
exports.createReadinessScoreReviewResponseNestedFields = createReadinessScoreReviewResponseNestedFields;
|
|
2043
2206
|
exports.createReadinessScoreReviewService = createReadinessScoreReviewService;
|
|
@@ -2077,6 +2240,7 @@ exports.getActivityLogResponseFields = getActivityLogResponseFields;
|
|
|
2077
2240
|
exports.getActivityLogResponseNestedFields = getActivityLogResponseNestedFields;
|
|
2078
2241
|
exports.getChecklistItemResponse = getChecklistItemResponse;
|
|
2079
2242
|
exports.getChecklistItemResponseNestedFields = getChecklistItemResponseNestedFields;
|
|
2243
|
+
exports.getConsultantAssignmentCountResponseFields = getConsultantAssignmentCountResponseFields;
|
|
2080
2244
|
exports.getConsultantAssignmentResponseFields = getConsultantAssignmentResponseFields;
|
|
2081
2245
|
exports.getConsultantAssignmentResponseNestedFields = getConsultantAssignmentResponseNestedFields;
|
|
2082
2246
|
exports.getReadinessScoreReviewResponseFields = getReadinessScoreReviewResponseFields;
|