@connect-plus-online/ogabai-integrations 0.0.57 → 0.0.59

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
@@ -582,6 +582,9 @@ interface GetMonthlyUserStatsByYearResponse {
582
582
  interface GetMonthlyUserStatsByYearResponseNestedFields {
583
583
  monthlyUserStat: MonthlyUserStatFields;
584
584
  }
585
+ interface GetUserDashStatsRequest {
586
+ storeId: string;
587
+ }
585
588
  interface GetUserDashStatsResponse {
586
589
  outOfStockCount: number;
587
590
  productCounts: ProductCounts;
@@ -656,7 +659,7 @@ declare const createUserService: (client: GraphQLClient) => {
656
659
  root?: (keyof GetMonthlyUserStatsByYearResponse)[];
657
660
  nestedFields?: GetMonthlyUserStatsByYearResponseNestedFields;
658
661
  }, option?: RequestOption): Promise<GetMonthlyUserStatsByYearResponse | undefined>;
659
- getUserDashStats(fetchFields?: {
662
+ getUserDashStats(input?: GetUserDashStatsRequest, fetchFields?: {
660
663
  root?: (keyof GetUserDashStatsResponse)[];
661
664
  nestedFields?: GetUserDashStatsResponseNestedFields;
662
665
  }, option?: RequestOption): Promise<GetUserDashStatsResponse | undefined>;
package/dist/index.d.ts CHANGED
@@ -582,6 +582,9 @@ interface GetMonthlyUserStatsByYearResponse {
582
582
  interface GetMonthlyUserStatsByYearResponseNestedFields {
583
583
  monthlyUserStat: MonthlyUserStatFields;
584
584
  }
585
+ interface GetUserDashStatsRequest {
586
+ storeId: string;
587
+ }
585
588
  interface GetUserDashStatsResponse {
586
589
  outOfStockCount: number;
587
590
  productCounts: ProductCounts;
@@ -656,7 +659,7 @@ declare const createUserService: (client: GraphQLClient) => {
656
659
  root?: (keyof GetMonthlyUserStatsByYearResponse)[];
657
660
  nestedFields?: GetMonthlyUserStatsByYearResponseNestedFields;
658
661
  }, option?: RequestOption): Promise<GetMonthlyUserStatsByYearResponse | undefined>;
659
- getUserDashStats(fetchFields?: {
662
+ getUserDashStats(input?: GetUserDashStatsRequest, fetchFields?: {
660
663
  root?: (keyof GetUserDashStatsResponse)[];
661
664
  nestedFields?: GetUserDashStatsResponseNestedFields;
662
665
  }, option?: RequestOption): Promise<GetUserDashStatsResponse | undefined>;
package/dist/index.esm.js CHANGED
@@ -190,8 +190,8 @@ var userSchema = {
190
190
  `,
191
191
  // mobile dashboard stats
192
192
  getUserDashStats: (query) => `
193
- query getUserDashStats {
194
- getUserDashStats {
193
+ query getUserDashStats($storeId: String!) {
194
+ getUserDashStats(storeId: $storeId) {
195
195
  ${query}
196
196
  }
197
197
  }
@@ -560,7 +560,7 @@ var createUserService = (client) => ({
560
560
  return (_c = res.data) == null ? void 0 : _c.getMonthlyUserStatsByYear;
561
561
  },
562
562
  // user dashboard stats
563
- async getUserDashStats(fetchFields, option) {
563
+ async getUserDashStats(input, fetchFields, option) {
564
564
  var _a, _b, _c;
565
565
  const res = await client.request(
566
566
  user_schema_default.getUserDashStats(
@@ -569,7 +569,7 @@ var createUserService = (client) => ({
569
569
  (_b = fetchFields == null ? void 0 : fetchFields.nestedFields) != null ? _b : getUserDashStatsResponseNestedFields
570
570
  )
571
571
  ),
572
- {},
572
+ input,
573
573
  option
574
574
  );
575
575
  return (_c = res.data) == null ? void 0 : _c.getUserDashStats;