Explorar el Código

chore: Fix codegen

Shop API queries introduced in #3325 have
been moved to the shop-definitions.ts file
Michael Bromley hace 9 meses
padre
commit
3bf1beedc2

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 674 - 653
packages/common/src/generated-shop-types.ts


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 645 - 624
packages/core/e2e/graphql/generated-e2e-shop-types.ts


+ 32 - 0
packages/core/e2e/graphql/shop-definitions.ts

@@ -834,3 +834,35 @@ export const GET_ACTIVE_CUSTOMER_WITH_ORDERS_PRODUCT_PRICE = gql`
         }
     }
 `;
+
+export const ACTIVE_PAYMENT_METHODS_QUERY = gql`
+    query ActivePaymentMethods {
+        activePaymentMethods {
+            id
+            code
+            name
+            description
+            translations {
+                languageCode
+                name
+                description
+            }
+        }
+    }
+`;
+
+export const GET_ACTIVE_SHIPPING_METHODS = gql`
+    query GetActiveShippingMethods {
+        activeShippingMethods {
+            id
+            code
+            name
+            description
+            translations {
+                languageCode
+                name
+                description
+            }
+        }
+    }
+`;

+ 6 - 17
packages/core/e2e/payment-method.e2e-spec.ts

@@ -24,7 +24,12 @@ import * as Codegen from './graphql/generated-e2e-admin-types';
 import { ErrorCode } from './graphql/generated-e2e-shop-types';
 import * as CodegenShop from './graphql/generated-e2e-shop-types';
 import { CREATE_CHANNEL } from './graphql/shared-definitions';
-import { ADD_ITEM_TO_ORDER, ADD_PAYMENT, GET_ELIGIBLE_PAYMENT_METHODS } from './graphql/shop-definitions';
+import {
+    ACTIVE_PAYMENT_METHODS_QUERY,
+    ADD_ITEM_TO_ORDER,
+    ADD_PAYMENT,
+    GET_ELIGIBLE_PAYMENT_METHODS,
+} from './graphql/shop-definitions';
 import { proceedToArrangingPayment } from './utils/test-order-utils';
 
 const checkerSpy = vi.fn();
@@ -697,19 +702,3 @@ export const DELETE_PAYMENT_METHOD = gql`
         }
     }
 `;
-
-const ACTIVE_PAYMENT_METHODS_QUERY = gql`
-    query ActivePaymentMethods {
-        activePaymentMethods {
-            id
-            code
-            name
-            description
-            translations {
-                languageCode
-                name
-                description
-            }
-        }
-    }
-`;

+ 1 - 16
packages/core/e2e/shipping-method.e2e-spec.ts

@@ -22,6 +22,7 @@ import {
     GET_SHIPPING_METHOD_LIST,
     UPDATE_SHIPPING_METHOD,
 } from './graphql/shared-definitions';
+import { GET_ACTIVE_SHIPPING_METHODS } from './graphql/shop-definitions';
 
 const TEST_METADATA = {
     foo: 'bar',
@@ -581,19 +582,3 @@ export const TEST_ELIGIBLE_SHIPPING_METHODS = gql`
         }
     }
 `;
-
-const GET_ACTIVE_SHIPPING_METHODS = gql`
-    query GetActiveShippingMethods {
-        activeShippingMethods {
-            id
-            code
-            name
-            description
-            translations {
-                languageCode
-                name
-                description
-            }
-        }
-    }
-`;

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 649 - 628
packages/payments-plugin/e2e/graphql/generated-shop-types.ts


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 678 - 657
packages/payments-plugin/src/mollie/graphql/generated-shop-types.ts


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 0 - 0
schema-shop.json


Algunos archivos no se mostraron porque demasiados archivos cambiaron en este cambio