Переглянути джерело

Remove timestamps from gql entities

Michael Bromley 7 роки тому
батько
коміт
cc0db212cc

+ 0 - 2
modules/core/entity/customer/customer.graphql

@@ -6,6 +6,4 @@ type Customer {
   emailAddress: String
   emailAddress: String
   addresses: [Address]
   addresses: [Address]
   user: User
   user: User
-  createdAt: String
-  updatedAt: String
 }
 }

+ 0 - 2
modules/core/entity/product-option-group/product-option-group.graphql

@@ -2,6 +2,4 @@ type ProductOptionGroup {
     id: Int
     id: Int
     code: String
     code: String
     name: String
     name: String
-    createdAt: String
-    updatedAt: String
 }
 }

+ 0 - 2
modules/core/entity/product-option/product-option.graphql

@@ -2,6 +2,4 @@ type ProductOption {
     id: Int
     id: Int
     code: String
     code: String
     name: String
     name: String
-    createdAt: String
-    updatedAt: String
 }
 }

+ 13 - 2
modules/core/entity/product-variant/product-variant.graphql

@@ -5,6 +5,17 @@ type ProductVariant {
     image: String
     image: String
     price: Int
     price: Int
     options: [ProductOption]
     options: [ProductOption]
-    createdAt: String
-    updatedAt: String
+}
+
+input CreateProductVariantTranslation {
+    languageCode: LanguageCode!
+    name: String!
+}
+
+input CreateProductVariantInput {
+    translations: [CreateProductVariantTranslation]!
+    sku: String!
+    image: String
+    price: Int!
+    optionCodes: [String]
 }
 }

+ 14 - 2
modules/core/entity/product/product.graphql

@@ -6,6 +6,18 @@ type Product {
     image: String
     image: String
     variants: [ProductVariant]
     variants: [ProductVariant]
     optionGroups: [ProductOptionGroup]
     optionGroups: [ProductOptionGroup]
-    createdAt: String
-    updatedAt: String
+}
+
+input CreateProductTranslation {
+    languageCode: LanguageCode!
+    name: String!
+    slug: String
+    description: String
+}
+
+input CreateProductInput {
+    translations: [CreateProductTranslation]!
+    image: String
+    variants: [CreateProductVariantInput]
+    optionGroupCodes: [String]
 }
 }