@visa-check-r/integrations 0.0.94 → 0.0.96
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 +37 -1
- 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 +36 -2
- 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",
|
|
@@ -1953,7 +1961,8 @@ var visaProfileQuery = [
|
|
|
1953
1961
|
"readinessScore",
|
|
1954
1962
|
"readinessScoreReview",
|
|
1955
1963
|
"consultantAssignment",
|
|
1956
|
-
"ownerId"
|
|
1964
|
+
"ownerId",
|
|
1965
|
+
"referenceCode"
|
|
1957
1966
|
];
|
|
1958
1967
|
var visaApplicationQuery = [
|
|
1959
1968
|
"adminComment",
|
|
@@ -2119,6 +2128,10 @@ var updateVisaProfileReviewCommentResponseNestedFields = getVisaProfileReviewCom
|
|
|
2119
2128
|
var deleteVisaProfileReviewCommentResponseFields = ["visaProfileReviewCommentId"];
|
|
2120
2129
|
|
|
2121
2130
|
// src/services/profile/types/visa-application.type.ts
|
|
2131
|
+
var getVisaApplicationStatsResponseFields = ["visaApplicationStats"];
|
|
2132
|
+
var getVisaApplicationStatsResponseNestedFields = {
|
|
2133
|
+
visaApplicationStats: visaApplicationStatsQuery
|
|
2134
|
+
};
|
|
2122
2135
|
var getVisaApplicationCountResponseFields = ["count"];
|
|
2123
2136
|
var getVisaApplicationResponseFields = ["visaApplication"];
|
|
2124
2137
|
var getVisaApplicationResponseNestedFields = {
|
|
@@ -2668,6 +2681,13 @@ var createConsultantAssignmentService = (client) => ({
|
|
|
2668
2681
|
|
|
2669
2682
|
// src/services/profile/schemas/visa-application.schema.ts
|
|
2670
2683
|
var visaApplicationSchema = {
|
|
2684
|
+
getVisaApplicationStats: (query) => `
|
|
2685
|
+
query getVisaApplicationStats($userId: String!, $referenceCode: String) {
|
|
2686
|
+
getVisaApplicationStats(userId: $userId, referenceCode: $referenceCode) {
|
|
2687
|
+
${query}
|
|
2688
|
+
}
|
|
2689
|
+
}
|
|
2690
|
+
`,
|
|
2671
2691
|
getVisaApplicationCount: (query) => `
|
|
2672
2692
|
query getVisaApplicationCount($visaApplication: VisaApplicationInput!) {
|
|
2673
2693
|
getVisaApplicationCount(visaApplication: $visaApplication) {
|
|
@@ -2714,6 +2734,20 @@ var visaApplicationSchema = {
|
|
|
2714
2734
|
|
|
2715
2735
|
// src/services/profile/visa-application.service.ts
|
|
2716
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
|
+
},
|
|
2717
2751
|
async getVisaApplicationCount(input, fetchFields, option) {
|
|
2718
2752
|
var _a, _b;
|
|
2719
2753
|
const res = await client.request(
|
|
@@ -3831,6 +3865,8 @@ exports.getUserTypeStatusCountResponseNestedFields = getUserTypeStatusCountRespo
|
|
|
3831
3865
|
exports.getVisaApplicationCountResponseFields = getVisaApplicationCountResponseFields;
|
|
3832
3866
|
exports.getVisaApplicationResponseFields = getVisaApplicationResponseFields;
|
|
3833
3867
|
exports.getVisaApplicationResponseNestedFields = getVisaApplicationResponseNestedFields;
|
|
3868
|
+
exports.getVisaApplicationStatsResponseFields = getVisaApplicationStatsResponseFields;
|
|
3869
|
+
exports.getVisaApplicationStatsResponseNestedFields = getVisaApplicationStatsResponseNestedFields;
|
|
3834
3870
|
exports.getVisaProfileChecklistItemResponse = getVisaProfileChecklistItemResponse;
|
|
3835
3871
|
exports.getVisaProfileChecklistItemResponseNestedFields = getVisaProfileChecklistItemResponseNestedFields;
|
|
3836
3872
|
exports.getVisaProfileChecklistItemsByChecklistResponse = getVisaProfileChecklistItemsByChecklistResponse;
|