Browse Source

fix(dashboard): Include list options in all list queries

Michael Bromley 3 months ago
parent
commit
a2e899ef08

+ 2 - 2
packages/dashboard/src/app/routes/_authenticated/_payment-methods/payment-methods.graphql.ts

@@ -15,8 +15,8 @@ export const paymentMethodItemFragment = graphql(`
 
 export const paymentMethodListQuery = graphql(
     `
-        query PaymentMethodList {
-            paymentMethods {
+        query PaymentMethodList($options: PaymentMethodListOptions) {
+            paymentMethods(options: $options) {
                 items {
                     ...PaymentMethodItem
                 }

+ 2 - 2
packages/dashboard/src/app/routes/_authenticated/_sellers/sellers.graphql.ts

@@ -11,8 +11,8 @@ export const sellerItemFragment = graphql(`
 
 export const sellerListQuery = graphql(
     `
-        query SellerList {
-            sellers {
+        query SellerList($options: SellerListOptions) {
+            sellers(options: $options) {
                 items {
                     ...SellerItem
                 }

+ 2 - 2
packages/dashboard/src/app/routes/_authenticated/_shipping-methods/shipping-methods.graphql.ts

@@ -15,8 +15,8 @@ export const shippingMethodItemFragment = graphql(`
 
 export const shippingMethodListQuery = graphql(
     `
-        query ShippingMethodList {
-            shippingMethods {
+        query ShippingMethodList($options: ShippingMethodListOptions) {
+            shippingMethods(options: $options) {
                 items {
                     ...ShippingMethodItem
                 }

+ 2 - 2
packages/dashboard/src/app/routes/_authenticated/_stock-locations/stock-locations.graphql.ts

@@ -12,8 +12,8 @@ export const stockLocationFragment = graphql(`
 
 export const stockLocationListQuery = graphql(
     `
-        query StockLocationList {
-            stockLocations {
+        query StockLocationList($options: StockLocationListOptions) {
+            stockLocations(options: $options) {
                 items {
                     ...StockLocationItem
                 }

+ 2 - 2
packages/dashboard/src/app/routes/_authenticated/_tax-categories/tax-categories.graphql.ts

@@ -12,8 +12,8 @@ export const taxCategoryItemFragment = graphql(`
 
 export const taxCategoryListQuery = graphql(
     `
-        query TaxCategoryList {
-            taxCategories {
+        query TaxCategoryList($options: TaxCategoryListOptions) {
+            taxCategories(options: $options) {
                 items {
                     ...TaxCategoryItem
                 }

+ 2 - 2
packages/dashboard/src/app/routes/_authenticated/_zones/zones.graphql.ts

@@ -11,8 +11,8 @@ export const zoneItemFragment = graphql(`
 
 export const zoneListQuery = graphql(
     `
-        query ZoneList {
-            zones {
+        query ZoneList($options: ZoneListOptions) {
+            zones(options: $options) {
                 items {
                     ...ZoneItem
                 }