@visa-check-r/integrations 0.0.81 → 0.0.83

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 CHANGED
@@ -1340,6 +1340,13 @@ var createUserCreditService = (client) => ({
1340
1340
 
1341
1341
  // src/services/checklist/schemas/checklist-item.schema.ts
1342
1342
  var checklistItemSchema = {
1343
+ getChecklistItemCount: (query) => `
1344
+ query getChecklistItemCount($checklistItem: ChecklistItemInput!) {
1345
+ getChecklistItemCount(checklistItem: $checklistItem) {
1346
+ ${query}
1347
+ }
1348
+ }
1349
+ `,
1343
1350
  getChecklistItem: (query) => `
1344
1351
  query getChecklistItem($checklistItem: ChecklistItemInput!) {
1345
1352
  getChecklistItem(checklistItem: $checklistItem) {
@@ -1408,6 +1415,7 @@ var getChecklistItemResponse = ["checklistItem"];
1408
1415
  var getChecklistItemResponseNestedFields = {
1409
1416
  checklistItem: checklistItemQuery
1410
1417
  };
1418
+ var getChecklistItemCountResponse = ["count"];
1411
1419
  var listChecklistItemResponse = [
1412
1420
  "checklistItems"
1413
1421
  ];
@@ -1464,6 +1472,19 @@ var createChecklistItemService = (client) => ({
1464
1472
  );
1465
1473
  return (_c = res.data) == null ? void 0 : _c.createChecklistItem;
1466
1474
  },
1475
+ async getChecklistItemCount(input, fetchFields, option) {
1476
+ var _a, _b;
1477
+ const res = await client.request(
1478
+ checklistItemSchema.getChecklistItemCount(
1479
+ gqlQueryStringBuilder(
1480
+ (_a = fetchFields == null ? void 0 : fetchFields.root) != null ? _a : getChecklistItemCountResponse
1481
+ )
1482
+ ),
1483
+ input,
1484
+ option
1485
+ );
1486
+ return (_b = res.data) == null ? void 0 : _b.getChecklistItemCount;
1487
+ },
1467
1488
  async getChecklistItem(input, fetchFields, option) {
1468
1489
  var _a, _b, _c;
1469
1490
  const res = await client.request(
@@ -2839,7 +2860,8 @@ var creditTransactionQuery = [
2839
2860
  "planId",
2840
2861
  "creditTransactionType",
2841
2862
  "couponCode",
2842
- "couponAmount"
2863
+ "couponAmount",
2864
+ "user"
2843
2865
  ];
2844
2866
  var serviceCreditCostQuery = [
2845
2867
  "createdAt",
@@ -2894,11 +2916,17 @@ var creditPlanDeleteIntegration = createDeleteIntegration(ENTITY4);
2894
2916
  var ENTITY5 = "creditTransaction";
2895
2917
  var creditTransactionIntegration = createStandardEntityIntegration({
2896
2918
  key: ENTITY5,
2897
- fields: creditTransactionQuery
2919
+ fields: creditTransactionQuery,
2920
+ nested: {
2921
+ ...getUserResponseNestedFields
2922
+ }
2898
2923
  });
2899
2924
  var creditTransactionListIntegration = createListIntegration({
2900
2925
  key: "creditTransactions",
2901
- fields: creditTransactionQuery
2926
+ fields: creditTransactionQuery,
2927
+ nested: {
2928
+ ...getUserResponseNestedFields
2929
+ }
2902
2930
  });
2903
2931
  var creditTransactionDeleteIntegration = createDeleteIntegration(ENTITY5);
2904
2932
 
@@ -3607,6 +3635,7 @@ exports.getAIServerAuthResponse = getAIServerAuthResponse;
3607
3635
  exports.getAIServerAuthResponseNestedFields = getAIServerAuthResponseNestedFields;
3608
3636
  exports.getActivityLogResponseFields = getActivityLogResponseFields;
3609
3637
  exports.getActivityLogResponseNestedFields = getActivityLogResponseNestedFields;
3638
+ exports.getChecklistItemCountResponse = getChecklistItemCountResponse;
3610
3639
  exports.getChecklistItemResponse = getChecklistItemResponse;
3611
3640
  exports.getChecklistItemResponseNestedFields = getChecklistItemResponseNestedFields;
3612
3641
  exports.getConsultantAssignmentCountResponseFields = getConsultantAssignmentCountResponseFields;