Răsfoiți Sursa

feat(core): Expose `enabled` field for Product in shop api (#2541)

Alexis Vigoureux 2 ani în urmă
părinte
comite
f6f29754e8

+ 1 - 0
packages/common/src/generated-shop-types.ts

@@ -2535,6 +2535,7 @@ export type Product = Node & {
   createdAt: Scalars['DateTime']['output'];
   customFields?: Maybe<Scalars['JSON']['output']>;
   description: Scalars['String']['output'];
+  enabled: Scalars['Boolean']['output'];
   facetValues: Array<FacetValue>;
   featuredAsset?: Maybe<Asset>;
   id: Scalars['ID']['output'];

+ 0 - 1
packages/core/src/api/schema/admin-api/product-admin.type.graphql

@@ -1,5 +1,4 @@
 type Product implements Node {
-    enabled: Boolean!
     channels: [Channel!]!
 }
 

+ 1 - 0
packages/core/src/api/schema/common/product.type.graphql

@@ -6,6 +6,7 @@ type Product implements Node {
     name: String!
     slug: String!
     description: String!
+    enabled: Boolean!
     featuredAsset: Asset
     assets: [Asset!]!
     "Returns all ProductVariants"