@visa-check-r/integrations 0.0.82 → 0.0.84
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 +56 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.mts +34 -1
- package/dist/index.d.ts +34 -1
- package/dist/index.esm.js +54 -1
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -182,6 +182,13 @@ function gqlQueryStringBuilder(query, nestedValues) {
|
|
|
182
182
|
|
|
183
183
|
// src/services/user/schemas/user.schema.ts
|
|
184
184
|
var userSchema = {
|
|
185
|
+
getPartnerMatrices: (query) => `
|
|
186
|
+
query getPartnerMatrices($partnerId: String!){
|
|
187
|
+
getPartnerMatrices(partnerId: $partnerId) {
|
|
188
|
+
${query}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
`,
|
|
185
192
|
getUserTypeStatusCount: (query) => `
|
|
186
193
|
query getUserTypeStatusCount($userType: UserTypeEnum!){
|
|
187
194
|
getUserTypeStatusCount(userType: $userType) {
|
|
@@ -243,6 +250,13 @@ var userSchema = {
|
|
|
243
250
|
};
|
|
244
251
|
|
|
245
252
|
// src/services/user/user.entity.ts
|
|
253
|
+
var partnerMatricesQuery = [
|
|
254
|
+
"approvedApplications",
|
|
255
|
+
"rejectedApplications",
|
|
256
|
+
"submittedApplications",
|
|
257
|
+
"totalApplications",
|
|
258
|
+
"totalClients"
|
|
259
|
+
];
|
|
246
260
|
var userTypeStatusCountQuery = [
|
|
247
261
|
"active",
|
|
248
262
|
"inactive",
|
|
@@ -331,6 +345,10 @@ var userQuery = [
|
|
|
331
345
|
];
|
|
332
346
|
|
|
333
347
|
// src/services/user/types/user.type.ts
|
|
348
|
+
var getPartnerMatricesResponseFields = ["partnerMatrices"];
|
|
349
|
+
var getPartnerMatricesResponseNestedFields = {
|
|
350
|
+
partnerMatrices: partnerMatricesQuery
|
|
351
|
+
};
|
|
334
352
|
var getUserTypeStatusCountResponse = [
|
|
335
353
|
"userTypeStatusCount"
|
|
336
354
|
];
|
|
@@ -370,6 +388,20 @@ var deleteUserResponseFields = ["userId"];
|
|
|
370
388
|
|
|
371
389
|
// src/services/user/user.service.ts
|
|
372
390
|
var createUserService = (client) => ({
|
|
391
|
+
async getPartnerMatrices(input, fetchFields, option) {
|
|
392
|
+
var _a, _b, _c;
|
|
393
|
+
const res = await client.request(
|
|
394
|
+
userSchema.getPartnerMatrices(
|
|
395
|
+
gqlQueryStringBuilder(
|
|
396
|
+
(_a = fetchFields == null ? void 0 : fetchFields.root) != null ? _a : getPartnerMatricesResponseFields,
|
|
397
|
+
(_b = fetchFields == null ? void 0 : fetchFields.nestedFields) != null ? _b : getPartnerMatricesResponseNestedFields
|
|
398
|
+
)
|
|
399
|
+
),
|
|
400
|
+
input,
|
|
401
|
+
option
|
|
402
|
+
);
|
|
403
|
+
return (_c = res.data) == null ? void 0 : _c.getPartnerMatrices;
|
|
404
|
+
},
|
|
373
405
|
async getUserTypeStatusCount(input, fetchFields, option) {
|
|
374
406
|
var _a, _b, _c;
|
|
375
407
|
const res = await client.request(
|
|
@@ -1340,6 +1372,13 @@ var createUserCreditService = (client) => ({
|
|
|
1340
1372
|
|
|
1341
1373
|
// src/services/checklist/schemas/checklist-item.schema.ts
|
|
1342
1374
|
var checklistItemSchema = {
|
|
1375
|
+
getChecklistItemCount: (query) => `
|
|
1376
|
+
query getChecklistItemCount($checklistItem: ChecklistItemInput!) {
|
|
1377
|
+
getChecklistItemCount(checklistItem: $checklistItem) {
|
|
1378
|
+
${query}
|
|
1379
|
+
}
|
|
1380
|
+
}
|
|
1381
|
+
`,
|
|
1343
1382
|
getChecklistItem: (query) => `
|
|
1344
1383
|
query getChecklistItem($checklistItem: ChecklistItemInput!) {
|
|
1345
1384
|
getChecklistItem(checklistItem: $checklistItem) {
|
|
@@ -1408,6 +1447,7 @@ var getChecklistItemResponse = ["checklistItem"];
|
|
|
1408
1447
|
var getChecklistItemResponseNestedFields = {
|
|
1409
1448
|
checklistItem: checklistItemQuery
|
|
1410
1449
|
};
|
|
1450
|
+
var getChecklistItemCountResponse = ["count"];
|
|
1411
1451
|
var listChecklistItemResponse = [
|
|
1412
1452
|
"checklistItems"
|
|
1413
1453
|
];
|
|
@@ -1464,6 +1504,19 @@ var createChecklistItemService = (client) => ({
|
|
|
1464
1504
|
);
|
|
1465
1505
|
return (_c = res.data) == null ? void 0 : _c.createChecklistItem;
|
|
1466
1506
|
},
|
|
1507
|
+
async getChecklistItemCount(input, fetchFields, option) {
|
|
1508
|
+
var _a, _b;
|
|
1509
|
+
const res = await client.request(
|
|
1510
|
+
checklistItemSchema.getChecklistItemCount(
|
|
1511
|
+
gqlQueryStringBuilder(
|
|
1512
|
+
(_a = fetchFields == null ? void 0 : fetchFields.root) != null ? _a : getChecklistItemCountResponse
|
|
1513
|
+
)
|
|
1514
|
+
),
|
|
1515
|
+
input,
|
|
1516
|
+
option
|
|
1517
|
+
);
|
|
1518
|
+
return (_b = res.data) == null ? void 0 : _b.getChecklistItemCount;
|
|
1519
|
+
},
|
|
1467
1520
|
async getChecklistItem(input, fetchFields, option) {
|
|
1468
1521
|
var _a, _b, _c;
|
|
1469
1522
|
const res = await client.request(
|
|
@@ -3614,6 +3667,7 @@ exports.getAIServerAuthResponse = getAIServerAuthResponse;
|
|
|
3614
3667
|
exports.getAIServerAuthResponseNestedFields = getAIServerAuthResponseNestedFields;
|
|
3615
3668
|
exports.getActivityLogResponseFields = getActivityLogResponseFields;
|
|
3616
3669
|
exports.getActivityLogResponseNestedFields = getActivityLogResponseNestedFields;
|
|
3670
|
+
exports.getChecklistItemCountResponse = getChecklistItemCountResponse;
|
|
3617
3671
|
exports.getChecklistItemResponse = getChecklistItemResponse;
|
|
3618
3672
|
exports.getChecklistItemResponseNestedFields = getChecklistItemResponseNestedFields;
|
|
3619
3673
|
exports.getConsultantAssignmentCountResponseFields = getConsultantAssignmentCountResponseFields;
|
|
@@ -3626,6 +3680,8 @@ exports.getGeneratedSOPResponse = getGeneratedSOPResponse;
|
|
|
3626
3680
|
exports.getGeneratedSOPResponseNestedFields = getGeneratedSOPResponseNestedFields;
|
|
3627
3681
|
exports.getJobResponse = getJobResponse;
|
|
3628
3682
|
exports.getJobResponseNestedFields = getJobResponseNestedFields;
|
|
3683
|
+
exports.getPartnerMatricesResponseFields = getPartnerMatricesResponseFields;
|
|
3684
|
+
exports.getPartnerMatricesResponseNestedFields = getPartnerMatricesResponseNestedFields;
|
|
3629
3685
|
exports.getReadinessScoreReviewResponseFields = getReadinessScoreReviewResponseFields;
|
|
3630
3686
|
exports.getReadinessScoreReviewResponseNestedFields = getReadinessScoreReviewResponseNestedFields;
|
|
3631
3687
|
exports.getSOPReviewResponseFields = getSOPReviewResponseFields;
|