@visa-check-r/integrations 0.0.52 → 0.0.53
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 +103 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.mts +62 -1
- package/dist/index.d.ts +62 -1
- package/dist/index.esm.js +98 -2
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -182,6 +182,20 @@ function gqlQueryStringBuilder(query, nestedValues) {
|
|
|
182
182
|
|
|
183
183
|
// src/services/user/schemas/user.schema.ts
|
|
184
184
|
var userSchema = {
|
|
185
|
+
getUserTypeStatusCount: (query) => `
|
|
186
|
+
query getUserTypeStatusCount($userType: UserTypeEnum!){
|
|
187
|
+
getUserTypeStatusCount(userType: $userType) {
|
|
188
|
+
${query}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
`,
|
|
192
|
+
getUserCount: (query) => `
|
|
193
|
+
query getUserCount {
|
|
194
|
+
getUserCount {
|
|
195
|
+
${query}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
`,
|
|
185
199
|
me: (query) => `
|
|
186
200
|
query me {
|
|
187
201
|
me {
|
|
@@ -229,6 +243,18 @@ var userSchema = {
|
|
|
229
243
|
};
|
|
230
244
|
|
|
231
245
|
// src/services/user/user.entity.ts
|
|
246
|
+
var userTypeStatusCountQuery = [
|
|
247
|
+
"active",
|
|
248
|
+
"inactive",
|
|
249
|
+
"total",
|
|
250
|
+
"userType"
|
|
251
|
+
];
|
|
252
|
+
var userCountQuery = [
|
|
253
|
+
"applications",
|
|
254
|
+
"clients",
|
|
255
|
+
"consultants",
|
|
256
|
+
"partners"
|
|
257
|
+
];
|
|
232
258
|
var consultantInviteQuery = [
|
|
233
259
|
"createdAt",
|
|
234
260
|
"token",
|
|
@@ -298,6 +324,18 @@ var userQuery = [
|
|
|
298
324
|
];
|
|
299
325
|
|
|
300
326
|
// src/services/user/types/user.type.ts
|
|
327
|
+
var getUserTypeStatusCountResponse = [
|
|
328
|
+
"userTypeStatusCount"
|
|
329
|
+
];
|
|
330
|
+
var getUserTypeStatusCountResponseNestedFields = {
|
|
331
|
+
userTypeStatusCount: userTypeStatusCountQuery
|
|
332
|
+
};
|
|
333
|
+
var getUserCountResponse = [
|
|
334
|
+
"userCount"
|
|
335
|
+
];
|
|
336
|
+
var getUserCountResponseNestedFields = {
|
|
337
|
+
userCount: userCountQuery
|
|
338
|
+
};
|
|
301
339
|
var meResponseFields = ["user", "userSetting"];
|
|
302
340
|
var meResponseNestedFields = {
|
|
303
341
|
user: userQuery,
|
|
@@ -319,9 +357,36 @@ var deleteUserResponseFields = ["userId"];
|
|
|
319
357
|
|
|
320
358
|
// src/services/user/user.service.ts
|
|
321
359
|
var createUserService = (client) => ({
|
|
360
|
+
async getUserTypeStatusCount(input, fetchFields, option) {
|
|
361
|
+
var _a, _b, _c;
|
|
362
|
+
const res = await client.request(
|
|
363
|
+
userSchema.getUserTypeStatusCount(
|
|
364
|
+
gqlQueryStringBuilder(
|
|
365
|
+
(_a = fetchFields == null ? void 0 : fetchFields.root) != null ? _a : getUserTypeStatusCountResponse,
|
|
366
|
+
(_b = fetchFields == null ? void 0 : fetchFields.nestedFields) != null ? _b : getUserTypeStatusCountResponseNestedFields
|
|
367
|
+
)
|
|
368
|
+
),
|
|
369
|
+
input,
|
|
370
|
+
option
|
|
371
|
+
);
|
|
372
|
+
return (_c = res.data) == null ? void 0 : _c.getUserTypeStatusCount;
|
|
373
|
+
},
|
|
374
|
+
async getUserCount(fetchFields, option) {
|
|
375
|
+
var _a, _b, _c;
|
|
376
|
+
const res = await client.request(
|
|
377
|
+
userSchema.getUserCount(
|
|
378
|
+
gqlQueryStringBuilder(
|
|
379
|
+
(_a = fetchFields == null ? void 0 : fetchFields.root) != null ? _a : getUserCountResponse,
|
|
380
|
+
(_b = fetchFields == null ? void 0 : fetchFields.nestedFields) != null ? _b : getUserCountResponseNestedFields
|
|
381
|
+
)
|
|
382
|
+
),
|
|
383
|
+
{},
|
|
384
|
+
option
|
|
385
|
+
);
|
|
386
|
+
return (_c = res.data) == null ? void 0 : _c.getUserCount;
|
|
387
|
+
},
|
|
322
388
|
async me(fetchFields, option) {
|
|
323
389
|
var _a, _b, _c;
|
|
324
|
-
console.log({ fetchFields });
|
|
325
390
|
const res = await client.request(
|
|
326
391
|
userSchema.me(
|
|
327
392
|
gqlQueryStringBuilder(
|
|
@@ -1507,6 +1572,13 @@ var createVisaProfileChecklistItemService = (client) => ({
|
|
|
1507
1572
|
});
|
|
1508
1573
|
|
|
1509
1574
|
// src/services/profile/profile.entity.ts
|
|
1575
|
+
var visaProfileCountQuery = [
|
|
1576
|
+
"acceptedByConsultant",
|
|
1577
|
+
"assigned",
|
|
1578
|
+
"consultantRequests",
|
|
1579
|
+
"rejectedByConsultant",
|
|
1580
|
+
"total"
|
|
1581
|
+
];
|
|
1510
1582
|
var jobQuery = [
|
|
1511
1583
|
"createdAt",
|
|
1512
1584
|
"error",
|
|
@@ -1614,6 +1686,10 @@ var visaProfileReviewCommentQuery = [
|
|
|
1614
1686
|
];
|
|
1615
1687
|
|
|
1616
1688
|
// src/services/profile/types/visa-profile.type.ts
|
|
1689
|
+
var getVisaProfileCountResponse = ["visaProfileCount"];
|
|
1690
|
+
var getVisaProfileCountResponseNestedFields = {
|
|
1691
|
+
visaProfileCount: visaProfileCountQuery
|
|
1692
|
+
};
|
|
1617
1693
|
var getJobResponse = ["job"];
|
|
1618
1694
|
var getJobResponseNestedFields = {
|
|
1619
1695
|
job: jobQuery
|
|
@@ -1738,6 +1814,13 @@ var deleteVisaApplicationResponseFields = ["visaApplicationId"];
|
|
|
1738
1814
|
|
|
1739
1815
|
// src/services/profile/schemas/visa-profile.schema.ts
|
|
1740
1816
|
var visaProfileSchema = {
|
|
1817
|
+
getVisaProfileCount: (query) => `
|
|
1818
|
+
query getVisaProfileCount {
|
|
1819
|
+
getVisaProfileCount {
|
|
1820
|
+
${query}
|
|
1821
|
+
}
|
|
1822
|
+
}
|
|
1823
|
+
`,
|
|
1741
1824
|
// get job
|
|
1742
1825
|
getJob: (query) => `
|
|
1743
1826
|
query getJob($job: JobInput!) {
|
|
@@ -1801,6 +1884,19 @@ var visaProfileSchema = {
|
|
|
1801
1884
|
|
|
1802
1885
|
// src/services/profile/visa-profile.service.ts
|
|
1803
1886
|
var createVisaProfileService = (client) => ({
|
|
1887
|
+
async getVisaProfileCount(fetchFields, option) {
|
|
1888
|
+
var _a, _b, _c;
|
|
1889
|
+
const res = await client.request(
|
|
1890
|
+
visaProfileSchema.getVisaProfileCount(
|
|
1891
|
+
gqlQueryStringBuilder(
|
|
1892
|
+
(_a = fetchFields == null ? void 0 : fetchFields.root) != null ? _a : getVisaProfileCountResponse,
|
|
1893
|
+
(_b = fetchFields == null ? void 0 : fetchFields.nestedFields) != null ? _b : getVisaProfileCountResponseNestedFields
|
|
1894
|
+
)
|
|
1895
|
+
),
|
|
1896
|
+
option
|
|
1897
|
+
);
|
|
1898
|
+
return (_c = res.data) == null ? void 0 : _c.getVisaProfileCount;
|
|
1899
|
+
},
|
|
1804
1900
|
// job
|
|
1805
1901
|
async getJob(input, fetchFields, option) {
|
|
1806
1902
|
var _a, _b, _c;
|
|
@@ -2604,16 +2700,22 @@ exports.getJobResponse = getJobResponse;
|
|
|
2604
2700
|
exports.getJobResponseNestedFields = getJobResponseNestedFields;
|
|
2605
2701
|
exports.getReadinessScoreReviewResponseFields = getReadinessScoreReviewResponseFields;
|
|
2606
2702
|
exports.getReadinessScoreReviewResponseNestedFields = getReadinessScoreReviewResponseNestedFields;
|
|
2703
|
+
exports.getUserCountResponse = getUserCountResponse;
|
|
2704
|
+
exports.getUserCountResponseNestedFields = getUserCountResponseNestedFields;
|
|
2607
2705
|
exports.getUserResponseFields = getUserResponseFields;
|
|
2608
2706
|
exports.getUserResponseNestedFields = getUserResponseNestedFields;
|
|
2609
2707
|
exports.getUserSettingResponseFields = getUserSettingResponseFields;
|
|
2610
2708
|
exports.getUserSettingResponseNestedFields = getUserSettingResponseNestedFields;
|
|
2709
|
+
exports.getUserTypeStatusCountResponse = getUserTypeStatusCountResponse;
|
|
2710
|
+
exports.getUserTypeStatusCountResponseNestedFields = getUserTypeStatusCountResponseNestedFields;
|
|
2611
2711
|
exports.getVisaApplicationResponseFields = getVisaApplicationResponseFields;
|
|
2612
2712
|
exports.getVisaApplicationResponseNestedFields = getVisaApplicationResponseNestedFields;
|
|
2613
2713
|
exports.getVisaProfileChecklistItemResponse = getVisaProfileChecklistItemResponse;
|
|
2614
2714
|
exports.getVisaProfileChecklistItemResponseNestedFields = getVisaProfileChecklistItemResponseNestedFields;
|
|
2615
2715
|
exports.getVisaProfileChecklistItemsByChecklistResponse = getVisaProfileChecklistItemsByChecklistResponse;
|
|
2616
2716
|
exports.getVisaProfileChecklistItemsByChecklistResponseNestedFields = getVisaProfileChecklistItemsByChecklistResponseNestedFields;
|
|
2717
|
+
exports.getVisaProfileCountResponse = getVisaProfileCountResponse;
|
|
2718
|
+
exports.getVisaProfileCountResponseNestedFields = getVisaProfileCountResponseNestedFields;
|
|
2617
2719
|
exports.getVisaProfileResponse = getVisaProfileResponse;
|
|
2618
2720
|
exports.getVisaProfileResponseNestedFields = getVisaProfileResponseNestedFields;
|
|
2619
2721
|
exports.getVisaProfileReviewCommentResponseFields = getVisaProfileReviewCommentResponseFields;
|