@visa-check-r/integrations 0.0.14 → 0.0.15

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.d.mts CHANGED
@@ -558,15 +558,11 @@ declare const createActivityLogService: (client: GraphQLClient) => {
558
558
  getActivityLog(input: GetActivityLogRequest, fetchFields?: {
559
559
  root?: (keyof GetActivityLogResponse)[];
560
560
  nestedFields?: GetActivityLogResponseNestedFields;
561
- }, option?: RequestOption): Promise<GraphQLResponse<{
562
- getActivityLog: GetActivityLogResponse;
563
- }>>;
561
+ }, option?: RequestOption): Promise<GetActivityLogResponse | undefined>;
564
562
  listActivityLogs(input: ListActivityLogsRequest, fetchFields?: {
565
563
  root?: (keyof ListActivityLogsResponse)[];
566
564
  nestedFields?: ListActivityLogsResponseNestedFields;
567
- }, option?: RequestOption): Promise<GraphQLResponse<{
568
- listActivityLogs: ListActivityLogsResponse;
569
- }>>;
565
+ }, option?: RequestOption): Promise<ListActivityLogsResponse | undefined>;
570
566
  };
571
567
 
572
568
  type ChecklistItemFields = (keyof ChecklistItem)[];
package/dist/index.d.ts CHANGED
@@ -558,15 +558,11 @@ declare const createActivityLogService: (client: GraphQLClient) => {
558
558
  getActivityLog(input: GetActivityLogRequest, fetchFields?: {
559
559
  root?: (keyof GetActivityLogResponse)[];
560
560
  nestedFields?: GetActivityLogResponseNestedFields;
561
- }, option?: RequestOption): Promise<GraphQLResponse<{
562
- getActivityLog: GetActivityLogResponse;
563
- }>>;
561
+ }, option?: RequestOption): Promise<GetActivityLogResponse | undefined>;
564
562
  listActivityLogs(input: ListActivityLogsRequest, fetchFields?: {
565
563
  root?: (keyof ListActivityLogsResponse)[];
566
564
  nestedFields?: ListActivityLogsResponseNestedFields;
567
- }, option?: RequestOption): Promise<GraphQLResponse<{
568
- listActivityLogs: ListActivityLogsResponse;
569
- }>>;
565
+ }, option?: RequestOption): Promise<ListActivityLogsResponse | undefined>;
570
566
  };
571
567
 
572
568
  type ChecklistItemFields = (keyof ChecklistItem)[];
package/dist/index.esm.js CHANGED
@@ -627,9 +627,9 @@ var activityLogSchema = {
627
627
 
628
628
  // src/services/user/activity-log.service.ts
629
629
  var createActivityLogService = (client) => ({
630
- getActivityLog(input, fetchFields, option) {
631
- var _a, _b;
632
- return client.request(
630
+ async getActivityLog(input, fetchFields, option) {
631
+ var _a, _b, _c;
632
+ const res = await client.request(
633
633
  activityLogSchema.getActivityLog(
634
634
  gqlQueryStringBuilder(
635
635
  (_a = fetchFields == null ? void 0 : fetchFields.root) != null ? _a : getActivityLogResponseFields,
@@ -639,10 +639,11 @@ var createActivityLogService = (client) => ({
639
639
  input,
640
640
  option
641
641
  );
642
+ return (_c = res.data) == null ? void 0 : _c.getActivityLog;
642
643
  },
643
- listActivityLogs(input, fetchFields, option) {
644
- var _a, _b;
645
- return client.request(
644
+ async listActivityLogs(input, fetchFields, option) {
645
+ var _a, _b, _c;
646
+ const res = await client.request(
646
647
  activityLogSchema.listActivityLogs(
647
648
  gqlQueryStringBuilder(
648
649
  (_a = fetchFields == null ? void 0 : fetchFields.root) != null ? _a : listActivityLogsResponseFields,
@@ -652,6 +653,7 @@ var createActivityLogService = (client) => ({
652
653
  input,
653
654
  option
654
655
  );
656
+ return (_c = res.data) == null ? void 0 : _c.listActivityLogs;
655
657
  }
656
658
  });
657
659