@visa-check-r/integrations 0.0.110 → 0.0.111
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 +176 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.mts +120 -1
- package/dist/index.d.ts +120 -1
- package/dist/index.esm.js +165 -1
- package/dist/index.esm.js.map +1 -1
- package/package.json +4 -2
package/dist/index.cjs.js
CHANGED
|
@@ -1684,6 +1684,24 @@ var visaProfileChecklistItemQuery = [
|
|
|
1684
1684
|
"fileInfo",
|
|
1685
1685
|
"version"
|
|
1686
1686
|
];
|
|
1687
|
+
var questionQuery = [
|
|
1688
|
+
"id",
|
|
1689
|
+
"questionSet",
|
|
1690
|
+
"title",
|
|
1691
|
+
"helperText",
|
|
1692
|
+
"answerType",
|
|
1693
|
+
"options",
|
|
1694
|
+
"isRequired",
|
|
1695
|
+
"parentId",
|
|
1696
|
+
"parentAnswer",
|
|
1697
|
+
"fileChecklistItemId",
|
|
1698
|
+
"fileWhen",
|
|
1699
|
+
"aiQuestionId",
|
|
1700
|
+
"order",
|
|
1701
|
+
"status",
|
|
1702
|
+
"visaTypes",
|
|
1703
|
+
"createdAt"
|
|
1704
|
+
];
|
|
1687
1705
|
|
|
1688
1706
|
// src/services/checklist/types/checklist-item.type.ts
|
|
1689
1707
|
var getChecklistItemResponse = ["checklistItem"];
|
|
@@ -2007,6 +2025,152 @@ var createVisaProfileChecklistItemService = (client) => ({
|
|
|
2007
2025
|
}
|
|
2008
2026
|
});
|
|
2009
2027
|
|
|
2028
|
+
// src/services/checklist/types/question.type.ts
|
|
2029
|
+
var questionResponseNestedFields = { question: questionQuery };
|
|
2030
|
+
var questionsResponseNestedFields = { questions: questionQuery };
|
|
2031
|
+
var createQuestionResponse = ["question"];
|
|
2032
|
+
var createQuestionResponseNestedFields = questionResponseNestedFields;
|
|
2033
|
+
var updateQuestionResponse = ["question"];
|
|
2034
|
+
var updateQuestionResponseNestedFields = questionResponseNestedFields;
|
|
2035
|
+
var deleteQuestionResponse = ["questionIds"];
|
|
2036
|
+
var listQuestionsResponse = ["questions", "total"];
|
|
2037
|
+
var listQuestionsResponseNestedFields = questionsResponseNestedFields;
|
|
2038
|
+
var reorderQuestionsResponse = ["questions"];
|
|
2039
|
+
var reorderQuestionsResponseNestedFields = questionsResponseNestedFields;
|
|
2040
|
+
var resetQuestionsResponse = ["questions"];
|
|
2041
|
+
var resetQuestionsResponseNestedFields = questionsResponseNestedFields;
|
|
2042
|
+
|
|
2043
|
+
// src/services/checklist/schemas/question.schema.ts
|
|
2044
|
+
var questionSchema = {
|
|
2045
|
+
listQuestions: (query) => `
|
|
2046
|
+
query listQuestions($questionSet: QuestionSetEnum!, $visaType: VisaTypeEnum, $includeInactive: Boolean) {
|
|
2047
|
+
listQuestions(questionSet: $questionSet, visaType: $visaType, includeInactive: $includeInactive) {
|
|
2048
|
+
${query}
|
|
2049
|
+
}
|
|
2050
|
+
}
|
|
2051
|
+
`,
|
|
2052
|
+
createQuestion: (query) => `
|
|
2053
|
+
mutation createQuestion($question: QuestionInput!) {
|
|
2054
|
+
createQuestion(question: $question) {
|
|
2055
|
+
${query}
|
|
2056
|
+
}
|
|
2057
|
+
}
|
|
2058
|
+
`,
|
|
2059
|
+
updateQuestion: (query) => `
|
|
2060
|
+
mutation updateQuestion($questionId: String!, $question: QuestionInput!) {
|
|
2061
|
+
updateQuestion(questionId: $questionId, question: $question) {
|
|
2062
|
+
${query}
|
|
2063
|
+
}
|
|
2064
|
+
}
|
|
2065
|
+
`,
|
|
2066
|
+
deleteQuestion: (query) => `
|
|
2067
|
+
mutation deleteQuestion($questionId: String!) {
|
|
2068
|
+
deleteQuestion(questionId: $questionId) {
|
|
2069
|
+
${query}
|
|
2070
|
+
}
|
|
2071
|
+
}
|
|
2072
|
+
`,
|
|
2073
|
+
reorderQuestions: (query) => `
|
|
2074
|
+
mutation reorderQuestions($questionSet: QuestionSetEnum!, $questionIds: [String]!) {
|
|
2075
|
+
reorderQuestions(questionSet: $questionSet, questionIds: $questionIds) {
|
|
2076
|
+
${query}
|
|
2077
|
+
}
|
|
2078
|
+
}
|
|
2079
|
+
`,
|
|
2080
|
+
resetQuestions: (query) => `
|
|
2081
|
+
mutation resetQuestions($questionSet: QuestionSetEnum!) {
|
|
2082
|
+
resetQuestions(questionSet: $questionSet) {
|
|
2083
|
+
${query}
|
|
2084
|
+
}
|
|
2085
|
+
}
|
|
2086
|
+
`
|
|
2087
|
+
};
|
|
2088
|
+
|
|
2089
|
+
// src/services/checklist/question.service.ts
|
|
2090
|
+
var createQuestionService = (client) => ({
|
|
2091
|
+
async listQuestions(input, fetchFields, option) {
|
|
2092
|
+
var _a, _b, _c;
|
|
2093
|
+
const res = await client.request(
|
|
2094
|
+
questionSchema.listQuestions(
|
|
2095
|
+
gqlQueryStringBuilder(
|
|
2096
|
+
(_a = fetchFields == null ? void 0 : fetchFields.root) != null ? _a : listQuestionsResponse,
|
|
2097
|
+
(_b = fetchFields == null ? void 0 : fetchFields.nestedFields) != null ? _b : listQuestionsResponseNestedFields
|
|
2098
|
+
)
|
|
2099
|
+
),
|
|
2100
|
+
input,
|
|
2101
|
+
option
|
|
2102
|
+
);
|
|
2103
|
+
return (_c = res.data) == null ? void 0 : _c.listQuestions;
|
|
2104
|
+
},
|
|
2105
|
+
async createQuestion(input, fetchFields, option) {
|
|
2106
|
+
var _a, _b, _c;
|
|
2107
|
+
const res = await client.request(
|
|
2108
|
+
questionSchema.createQuestion(
|
|
2109
|
+
gqlQueryStringBuilder(
|
|
2110
|
+
(_a = fetchFields == null ? void 0 : fetchFields.root) != null ? _a : createQuestionResponse,
|
|
2111
|
+
(_b = fetchFields == null ? void 0 : fetchFields.nestedFields) != null ? _b : createQuestionResponseNestedFields
|
|
2112
|
+
)
|
|
2113
|
+
),
|
|
2114
|
+
input,
|
|
2115
|
+
option
|
|
2116
|
+
);
|
|
2117
|
+
return (_c = res.data) == null ? void 0 : _c.createQuestion;
|
|
2118
|
+
},
|
|
2119
|
+
async updateQuestion(input, fetchFields, option) {
|
|
2120
|
+
var _a, _b, _c;
|
|
2121
|
+
const res = await client.request(
|
|
2122
|
+
questionSchema.updateQuestion(
|
|
2123
|
+
gqlQueryStringBuilder(
|
|
2124
|
+
(_a = fetchFields == null ? void 0 : fetchFields.root) != null ? _a : updateQuestionResponse,
|
|
2125
|
+
(_b = fetchFields == null ? void 0 : fetchFields.nestedFields) != null ? _b : updateQuestionResponseNestedFields
|
|
2126
|
+
)
|
|
2127
|
+
),
|
|
2128
|
+
input,
|
|
2129
|
+
option
|
|
2130
|
+
);
|
|
2131
|
+
return (_c = res.data) == null ? void 0 : _c.updateQuestion;
|
|
2132
|
+
},
|
|
2133
|
+
async deleteQuestion(input, fetchFields, option) {
|
|
2134
|
+
var _a, _b;
|
|
2135
|
+
const res = await client.request(
|
|
2136
|
+
questionSchema.deleteQuestion(
|
|
2137
|
+
gqlQueryStringBuilder((_a = fetchFields == null ? void 0 : fetchFields.root) != null ? _a : deleteQuestionResponse)
|
|
2138
|
+
),
|
|
2139
|
+
input,
|
|
2140
|
+
option
|
|
2141
|
+
);
|
|
2142
|
+
return (_b = res.data) == null ? void 0 : _b.deleteQuestion;
|
|
2143
|
+
},
|
|
2144
|
+
async reorderQuestions(input, fetchFields, option) {
|
|
2145
|
+
var _a, _b, _c;
|
|
2146
|
+
const res = await client.request(
|
|
2147
|
+
questionSchema.reorderQuestions(
|
|
2148
|
+
gqlQueryStringBuilder(
|
|
2149
|
+
(_a = fetchFields == null ? void 0 : fetchFields.root) != null ? _a : reorderQuestionsResponse,
|
|
2150
|
+
(_b = fetchFields == null ? void 0 : fetchFields.nestedFields) != null ? _b : reorderQuestionsResponseNestedFields
|
|
2151
|
+
)
|
|
2152
|
+
),
|
|
2153
|
+
input,
|
|
2154
|
+
option
|
|
2155
|
+
);
|
|
2156
|
+
return (_c = res.data) == null ? void 0 : _c.reorderQuestions;
|
|
2157
|
+
},
|
|
2158
|
+
async resetQuestions(input, fetchFields, option) {
|
|
2159
|
+
var _a, _b, _c;
|
|
2160
|
+
const res = await client.request(
|
|
2161
|
+
questionSchema.resetQuestions(
|
|
2162
|
+
gqlQueryStringBuilder(
|
|
2163
|
+
(_a = fetchFields == null ? void 0 : fetchFields.root) != null ? _a : resetQuestionsResponse,
|
|
2164
|
+
(_b = fetchFields == null ? void 0 : fetchFields.nestedFields) != null ? _b : resetQuestionsResponseNestedFields
|
|
2165
|
+
)
|
|
2166
|
+
),
|
|
2167
|
+
input,
|
|
2168
|
+
option
|
|
2169
|
+
);
|
|
2170
|
+
return (_c = res.data) == null ? void 0 : _c.resetQuestions;
|
|
2171
|
+
}
|
|
2172
|
+
});
|
|
2173
|
+
|
|
2010
2174
|
// src/services/profile/profile.entity.ts
|
|
2011
2175
|
var crossReferenceResultQuery = [
|
|
2012
2176
|
"findings",
|
|
@@ -3947,6 +4111,9 @@ exports.createCustomerObjectResponse = createCustomerObjectResponse;
|
|
|
3947
4111
|
exports.createFlutterwaveService = createFlutterwaveService;
|
|
3948
4112
|
exports.createNotificationService = createNotificationService;
|
|
3949
4113
|
exports.createPaystackService = createPaystackService;
|
|
4114
|
+
exports.createQuestionResponse = createQuestionResponse;
|
|
4115
|
+
exports.createQuestionResponseNestedFields = createQuestionResponseNestedFields;
|
|
4116
|
+
exports.createQuestionService = createQuestionService;
|
|
3950
4117
|
exports.createReadinessScoreReviewResponseFields = createReadinessScoreReviewResponseFields;
|
|
3951
4118
|
exports.createReadinessScoreReviewResponseNestedFields = createReadinessScoreReviewResponseNestedFields;
|
|
3952
4119
|
exports.createReadinessScoreReviewService = createReadinessScoreReviewService;
|
|
@@ -3986,6 +4153,7 @@ exports.creditTransactionIntegration = creditTransactionIntegration;
|
|
|
3986
4153
|
exports.creditTransactionListIntegration = creditTransactionListIntegration;
|
|
3987
4154
|
exports.deleteChecklistItemResponse = deleteChecklistItemResponse;
|
|
3988
4155
|
exports.deleteConsultantAssignmentResponseFields = deleteConsultantAssignmentResponseFields;
|
|
4156
|
+
exports.deleteQuestionResponse = deleteQuestionResponse;
|
|
3989
4157
|
exports.deleteReadinessScoreReviewResponseFields = deleteReadinessScoreReviewResponseFields;
|
|
3990
4158
|
exports.deleteUserResponseFields = deleteUserResponseFields;
|
|
3991
4159
|
exports.deleteUserSettingResponseFields = deleteUserSettingResponseFields;
|
|
@@ -4052,6 +4220,8 @@ exports.listConsultantAssignmentsResponseFields = listConsultantAssignmentsRespo
|
|
|
4052
4220
|
exports.listConsultantAssignmentsResponseNestedFields = listConsultantAssignmentsResponseNestedFields;
|
|
4053
4221
|
exports.listPartnerClientsResponseFields = listPartnerClientsResponseFields;
|
|
4054
4222
|
exports.listPartnerClientsResponseNestedFields = listPartnerClientsResponseNestedFields;
|
|
4223
|
+
exports.listQuestionsResponse = listQuestionsResponse;
|
|
4224
|
+
exports.listQuestionsResponseNestedFields = listQuestionsResponseNestedFields;
|
|
4055
4225
|
exports.listReadinessScoreReviewsResponseFields = listReadinessScoreReviewsResponseFields;
|
|
4056
4226
|
exports.listReadinessScoreReviewsResponseNestedFields = listReadinessScoreReviewsResponseNestedFields;
|
|
4057
4227
|
exports.listUsersResponseFields = listUsersResponseFields;
|
|
@@ -4068,7 +4238,11 @@ exports.loginResponseFields = loginResponseFields;
|
|
|
4068
4238
|
exports.meResponseFields = meResponseFields;
|
|
4069
4239
|
exports.meResponseNestedFields = meResponseNestedFields;
|
|
4070
4240
|
exports.paystackInitializePaymentResponse = paystackInitializePaymentResponse;
|
|
4241
|
+
exports.reorderQuestionsResponse = reorderQuestionsResponse;
|
|
4242
|
+
exports.reorderQuestionsResponseNestedFields = reorderQuestionsResponseNestedFields;
|
|
4071
4243
|
exports.resetPasswordResponseFields = resetPasswordResponseFields;
|
|
4244
|
+
exports.resetQuestionsResponse = resetQuestionsResponse;
|
|
4245
|
+
exports.resetQuestionsResponseNestedFields = resetQuestionsResponseNestedFields;
|
|
4072
4246
|
exports.sendOTPResponseFields = sendOTPResponseFields;
|
|
4073
4247
|
exports.serviceCreditCostDeleteIntegration = serviceCreditCostDeleteIntegration;
|
|
4074
4248
|
exports.serviceCreditCostIntegration = serviceCreditCostIntegration;
|
|
@@ -4081,6 +4255,8 @@ exports.updateChecklistItemResponseNestedFields = updateChecklistItemResponseNes
|
|
|
4081
4255
|
exports.updateConsultantAssignmentResponseFields = updateConsultantAssignmentResponseFields;
|
|
4082
4256
|
exports.updateConsultantAssignmentResponseNestedFields = updateConsultantAssignmentResponseNestedFields;
|
|
4083
4257
|
exports.updatePasswordResponseFields = updatePasswordResponseFields;
|
|
4258
|
+
exports.updateQuestionResponse = updateQuestionResponse;
|
|
4259
|
+
exports.updateQuestionResponseNestedFields = updateQuestionResponseNestedFields;
|
|
4084
4260
|
exports.updateReadinessScoreReviewResponseFields = updateReadinessScoreReviewResponseFields;
|
|
4085
4261
|
exports.updateReadinessScoreReviewResponseNestedFields = updateReadinessScoreReviewResponseNestedFields;
|
|
4086
4262
|
exports.updateSOPReviewResponseFields = updateSOPReviewResponseFields;
|