@visa-check-r/integrations 0.0.95 → 0.0.97
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 +35 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.mts +26 -1
- package/dist/index.d.ts +26 -1
- package/dist/index.esm.js +34 -1
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1874,6 +1874,14 @@ var createVisaProfileChecklistItemService = (client) => ({
|
|
|
1874
1874
|
});
|
|
1875
1875
|
|
|
1876
1876
|
// src/services/profile/profile.entity.ts
|
|
1877
|
+
var visaApplicationStatsQuery = [
|
|
1878
|
+
"approved",
|
|
1879
|
+
"inProgress",
|
|
1880
|
+
"incomplete",
|
|
1881
|
+
"rejected",
|
|
1882
|
+
"submitted",
|
|
1883
|
+
"total"
|
|
1884
|
+
];
|
|
1877
1885
|
var consultantClientStatsQuery = [
|
|
1878
1886
|
"awaitingReview",
|
|
1879
1887
|
"completedReview",
|
|
@@ -2120,6 +2128,10 @@ var updateVisaProfileReviewCommentResponseNestedFields = getVisaProfileReviewCom
|
|
|
2120
2128
|
var deleteVisaProfileReviewCommentResponseFields = ["visaProfileReviewCommentId"];
|
|
2121
2129
|
|
|
2122
2130
|
// src/services/profile/types/visa-application.type.ts
|
|
2131
|
+
var getVisaApplicationStatsResponseFields = ["visaApplicationStats"];
|
|
2132
|
+
var getVisaApplicationStatsResponseNestedFields = {
|
|
2133
|
+
visaApplicationStats: visaApplicationStatsQuery
|
|
2134
|
+
};
|
|
2123
2135
|
var getVisaApplicationCountResponseFields = ["count"];
|
|
2124
2136
|
var getVisaApplicationResponseFields = ["visaApplication"];
|
|
2125
2137
|
var getVisaApplicationResponseNestedFields = {
|
|
@@ -2669,6 +2681,13 @@ var createConsultantAssignmentService = (client) => ({
|
|
|
2669
2681
|
|
|
2670
2682
|
// src/services/profile/schemas/visa-application.schema.ts
|
|
2671
2683
|
var visaApplicationSchema = {
|
|
2684
|
+
getVisaApplicationStats: (query) => `
|
|
2685
|
+
query getVisaApplicationStats($userId: String!, $referenceCode: String) {
|
|
2686
|
+
getVisaApplicationStats(userId: $userId, referenceCode: $referenceCode) {
|
|
2687
|
+
${query}
|
|
2688
|
+
}
|
|
2689
|
+
}
|
|
2690
|
+
`,
|
|
2672
2691
|
getVisaApplicationCount: (query) => `
|
|
2673
2692
|
query getVisaApplicationCount($visaApplication: VisaApplicationInput!) {
|
|
2674
2693
|
getVisaApplicationCount(visaApplication: $visaApplication) {
|
|
@@ -2715,6 +2734,20 @@ var visaApplicationSchema = {
|
|
|
2715
2734
|
|
|
2716
2735
|
// src/services/profile/visa-application.service.ts
|
|
2717
2736
|
var createVisaApplicationService = (client) => ({
|
|
2737
|
+
async getVisaApplicationStats(input, fetchFields, option) {
|
|
2738
|
+
var _a, _b, _c;
|
|
2739
|
+
const res = await client.request(
|
|
2740
|
+
visaApplicationSchema.getVisaApplicationStats(
|
|
2741
|
+
gqlQueryStringBuilder(
|
|
2742
|
+
(_a = fetchFields == null ? void 0 : fetchFields.root) != null ? _a : getVisaApplicationStatsResponseFields,
|
|
2743
|
+
(_b = fetchFields == null ? void 0 : fetchFields.nestedFields) != null ? _b : getVisaApplicationStatsResponseNestedFields
|
|
2744
|
+
)
|
|
2745
|
+
),
|
|
2746
|
+
input,
|
|
2747
|
+
option
|
|
2748
|
+
);
|
|
2749
|
+
return (_c = res.data) == null ? void 0 : _c.getVisaApplicationStats;
|
|
2750
|
+
},
|
|
2718
2751
|
async getVisaApplicationCount(input, fetchFields, option) {
|
|
2719
2752
|
var _a, _b;
|
|
2720
2753
|
const res = await client.request(
|
|
@@ -3832,6 +3865,8 @@ exports.getUserTypeStatusCountResponseNestedFields = getUserTypeStatusCountRespo
|
|
|
3832
3865
|
exports.getVisaApplicationCountResponseFields = getVisaApplicationCountResponseFields;
|
|
3833
3866
|
exports.getVisaApplicationResponseFields = getVisaApplicationResponseFields;
|
|
3834
3867
|
exports.getVisaApplicationResponseNestedFields = getVisaApplicationResponseNestedFields;
|
|
3868
|
+
exports.getVisaApplicationStatsResponseFields = getVisaApplicationStatsResponseFields;
|
|
3869
|
+
exports.getVisaApplicationStatsResponseNestedFields = getVisaApplicationStatsResponseNestedFields;
|
|
3835
3870
|
exports.getVisaProfileChecklistItemResponse = getVisaProfileChecklistItemResponse;
|
|
3836
3871
|
exports.getVisaProfileChecklistItemResponseNestedFields = getVisaProfileChecklistItemResponseNestedFields;
|
|
3837
3872
|
exports.getVisaProfileChecklistItemsByChecklistResponse = getVisaProfileChecklistItemsByChecklistResponse;
|