Do not use value field

This commit is contained in:
dominik-zeglen 2019-09-02 16:02:00 +02:00
parent 9f13c20d29
commit 79e11d06b7
12 changed files with 17 additions and 51 deletions

View file

@ -322,7 +322,6 @@ type AttributeValue implements Node {
name: String name: String
slug: String slug: String
type: AttributeValueType type: AttributeValueType
value: String @deprecated(reason: "This field is deprecated")
translation(languageCode: LanguageCodeEnum!): AttributeValueTranslation translation(languageCode: LanguageCodeEnum!): AttributeValueTranslation
inputType: AttributeInputTypeEnum inputType: AttributeInputTypeEnum
} }
@ -340,7 +339,6 @@ type AttributeValueCreate {
input AttributeValueCreateInput { input AttributeValueCreateInput {
name: String! name: String!
value: String
} }
type AttributeValueDelete { type AttributeValueDelete {
@ -351,7 +349,6 @@ type AttributeValueDelete {
input AttributeValueInput { input AttributeValueInput {
id: ID id: ID
name: String
slug: String slug: String
values: [String]! values: [String]!
} }
@ -519,7 +516,7 @@ type Checkout implements Node {
shippingAddress: Address shippingAddress: Address
shippingMethod: ShippingMethod shippingMethod: ShippingMethod
note: String! note: String!
discountAmount: Money @deprecated(reason: "Use discount instead.") discountAmount: Money @deprecated(reason: "DEPRECATED: Will be removed in Saleor 2.10, use discount instead.")
discount: Money discount: Money
discountName: String discountName: String
translatedDiscountName: String translatedDiscountName: String
@ -696,7 +693,6 @@ type Collection implements Node {
meta: [MetaStore]! meta: [MetaStore]!
products(before: String, after: String, first: Int, last: Int): ProductCountableConnection products(before: String, after: String, first: Int, last: Int): ProductCountableConnection
backgroundImage(size: Int): Image backgroundImage(size: Int): Image
publishedDate: Date @deprecated(reason: "publishedDate is deprecated, use publicationDate instead")
translation(languageCode: LanguageCodeEnum!): CollectionTranslation translation(languageCode: LanguageCodeEnum!): CollectionTranslation
} }
@ -2045,7 +2041,7 @@ type Order implements Node {
totalBalance: Money! totalBalance: Money!
userEmail: String userEmail: String
isShippingRequired: Boolean! isShippingRequired: Boolean!
discountAmount: Money! @deprecated(reason: "Deprecated: use discount instead.") discountAmount: Money! @deprecated(reason: "DEPRECATED: Will be removed in Saleor 2.10, use discount instead.")
} }
enum OrderAction { enum OrderAction {
@ -2187,7 +2183,6 @@ type OrderLine implements Node {
quantityFulfilled: Int! quantityFulfilled: Int!
taxRate: Float! taxRate: Float!
digitalContentUrl: DigitalContentUrl digitalContentUrl: DigitalContentUrl
thumbnailUrl(size: Int): String @deprecated(reason: "thumbnailUrl is deprecated, use thumbnail instead")
thumbnail(size: Int): Image thumbnail(size: Int): Image
unitPrice: TaxedMoney unitPrice: TaxedMoney
variant: ProductVariant variant: ProductVariant
@ -2265,8 +2260,6 @@ type Page implements Node {
content: String! content: String!
contentJson: JSONString! contentJson: JSONString!
created: DateTime! created: DateTime!
availableOn: Date @deprecated(reason: "availableOn is deprecated, use publicationDate instead")
isVisible: Boolean @deprecated(reason: "isVisible is deprecated, use isPublished instead")
translation(languageCode: LanguageCodeEnum!): PageTranslation translation(languageCode: LanguageCodeEnum!): PageTranslation
} }
@ -2501,15 +2494,13 @@ type Product implements Node {
privateMeta: [MetaStore]! privateMeta: [MetaStore]!
meta: [MetaStore]! meta: [MetaStore]!
url: String! url: String!
thumbnailUrl(size: Int): String @deprecated(reason: "thumbnailUrl is deprecated, use\\n thumbnail instead")
thumbnail(size: Int): Image thumbnail(size: Int): Image
availability: ProductPricingInfo @deprecated(reason: "Has been renamed to 'pricing'.") availability: ProductPricingInfo @deprecated(reason: "DEPRECATED: Will be removed in Saleor 2.10, Has been renamed to 'pricing'.")
pricing: ProductPricingInfo pricing: ProductPricingInfo
isAvailable: Boolean isAvailable: Boolean
basePrice: Money basePrice: Money
price: Money @deprecated(reason: "Has been replaced by 'basePrice'") price: Money @deprecated(reason: "DEPRECATED: Will be removed in Saleor 2.10, has been replaced by 'basePrice'")
minimalVariantPrice: Money minimalVariantPrice: Money
taxRate: TaxRateType @deprecated(reason: "taxRate is deprecated. Use taxType to obtain taxCode for given tax gateway")
taxType: TaxType taxType: TaxType
attributes: [SelectedAttribute!]! attributes: [SelectedAttribute!]!
purchaseCost: MoneyRange purchaseCost: MoneyRange
@ -2518,7 +2509,6 @@ type Product implements Node {
variants: [ProductVariant] variants: [ProductVariant]
images: [ProductImage] images: [ProductImage]
collections: [Collection] collections: [Collection]
availableOn: Date @deprecated(reason: "availableOn is deprecated, use publicationDate instead")
translation(languageCode: LanguageCodeEnum!): ProductTranslation translation(languageCode: LanguageCodeEnum!): ProductTranslation
slug: String! slug: String!
} }
@ -2569,9 +2559,7 @@ input ProductCreateInput {
descriptionJson: JSONString descriptionJson: JSONString
isPublished: Boolean isPublished: Boolean
name: String name: String
price: Decimal
basePrice: Decimal basePrice: Decimal
taxRate: TaxRateType
taxCode: String taxCode: String
seo: SeoInput seo: SeoInput
weight: WeightScalar weight: WeightScalar
@ -2654,9 +2642,7 @@ input ProductInput {
descriptionJson: JSONString descriptionJson: JSONString
isPublished: Boolean isPublished: Boolean
name: String name: String
price: Decimal
basePrice: Decimal basePrice: Decimal
taxRate: TaxRateType
taxCode: String taxCode: String
seo: SeoInput seo: SeoInput
weight: WeightScalar weight: WeightScalar
@ -2678,7 +2664,7 @@ enum ProductOrderField {
} }
type ProductPricingInfo { type ProductPricingInfo {
available: Boolean @deprecated(reason: "This has been moved to the parent type as 'is_available'.") available: Boolean @deprecated(reason: "DEPRECATED: Will be removed in Saleor 2.10, this has been moved to the parent type as 'isAvailable'.")
onSale: Boolean onSale: Boolean
discount: TaxedMoney discount: TaxedMoney
discountLocalCurrency: TaxedMoney discountLocalCurrency: TaxedMoney
@ -2779,7 +2765,6 @@ input ProductTypeInput {
isShippingRequired: Boolean isShippingRequired: Boolean
isDigital: Boolean isDigital: Boolean
weight: WeightScalar weight: WeightScalar
taxRate: TaxRateType
taxCode: String taxCode: String
} }
@ -2831,8 +2816,8 @@ type ProductVariant implements Node {
meta: [MetaStore]! meta: [MetaStore]!
stockQuantity: Int! stockQuantity: Int!
priceOverride: Money priceOverride: Money
price: Money @deprecated(reason: "Has been replaced by 'pricing.price_undiscounted'") price: Money @deprecated(reason: "DEPRECATED: Will be removed in Saleor 2.10, has been replaced by 'pricing.priceUndiscounted'")
availability: VariantPricingInfo @deprecated(reason: "Has been renamed to 'pricing'.") availability: VariantPricingInfo @deprecated(reason: "DEPRECATED: Will be removed in Saleor 2.10, has been renamed to 'pricing'.")
pricing: VariantPricingInfo pricing: VariantPricingInfo
isAvailable: Boolean isAvailable: Boolean
attributes: [SelectedAttribute!]! attributes: [SelectedAttribute!]!
@ -2942,7 +2927,7 @@ type Query {
collection(id: ID!): Collection collection(id: ID!): Collection
collections(filter: CollectionFilterInput, query: String, before: String, after: String, first: Int, last: Int): CollectionCountableConnection collections(filter: CollectionFilterInput, query: String, before: String, after: String, first: Int, last: Int): CollectionCountableConnection
product(id: ID!): Product product(id: ID!): Product
products(filter: ProductFilterInput, attributes: [AttributeScalar], categories: [ID], collections: [ID], priceLte: Float, priceGte: Float, sortBy: ProductOrder, stockAvailability: StockAvailability, query: String, before: String, after: String, first: Int, last: Int): ProductCountableConnection products(filter: ProductFilterInput, attributes: [AttributeScalar], categories: [ID], collections: [ID], sortBy: ProductOrder, stockAvailability: StockAvailability, query: String, before: String, after: String, first: Int, last: Int): ProductCountableConnection
productType(id: ID!): ProductType productType(id: ID!): ProductType
productTypes(filter: ProductTypeFilterInput, query: String, before: String, after: String, first: Int, last: Int): ProductTypeCountableConnection productTypes(filter: ProductTypeFilterInput, query: String, before: String, after: String, first: Int, last: Int): ProductTypeCountableConnection
productVariant(id: ID!): ProductVariant productVariant(id: ID!): ProductVariant
@ -3098,7 +3083,7 @@ type SaleUpdate {
type SelectedAttribute { type SelectedAttribute {
attribute: Attribute! attribute: Attribute!
value: AttributeValue @deprecated(reason: "Use values instead.") value: AttributeValue @deprecated(reason: "DEPRECATED: Will be removed in Saleor 2.10, use values instead.")
values: [AttributeValue]! values: [AttributeValue]!
} }
@ -3580,7 +3565,7 @@ type VariantImageUnassign {
} }
type VariantPricingInfo { type VariantPricingInfo {
available: Boolean @deprecated(reason: "This has been moved to the parent type as 'is_available'.") available: Boolean @deprecated(reason: "DEPRECATED: Will be removed in Saleor 2.10, this has been moved to the parent type as 'isAvailable'.")
onSale: Boolean onSale: Boolean
discount: TaxedMoney discount: TaxedMoney
discountLocalCurrency: TaxedMoney discountLocalCurrency: TaxedMoney
@ -3614,7 +3599,7 @@ type Voucher implements Node {
products(before: String, after: String, first: Int, last: Int): ProductCountableConnection products(before: String, after: String, first: Int, last: Int): ProductCountableConnection
countries: [CountryDisplay] countries: [CountryDisplay]
translation(languageCode: LanguageCodeEnum!): VoucherTranslation translation(languageCode: LanguageCodeEnum!): VoucherTranslation
minAmountSpent: Money @deprecated(reason: "Use the minSpent field instead.") minAmountSpent: Money @deprecated(reason: "DEPRECATED: Will be removed in Saleor 2.10, use the minSpent field instead.")
} }
type VoucherAddCatalogues { type VoucherAddCatalogues {
@ -3698,11 +3683,7 @@ type VoucherTranslation implements Node {
} }
enum VoucherTypeEnum { enum VoucherTypeEnum {
PRODUCT
COLLECTION
CATEGORY
SHIPPING SHIPPING
VALUE
ENTIRE_ORDER ENTIRE_ORDER
SPECIFIC_PRODUCT SPECIFIC_PRODUCT
} }

View file

@ -31,7 +31,6 @@ export const attributeDetailsFragment = gql`
name name
slug slug
type type
value
} }
} }
`; `;

View file

@ -20,7 +20,6 @@ export interface AttributeCreate_attributeCreate_attribute_values {
name: string | null; name: string | null;
slug: string | null; slug: string | null;
type: AttributeValueType | null; type: AttributeValueType | null;
value: string | null;
} }
export interface AttributeCreate_attributeCreate_attribute { export interface AttributeCreate_attributeCreate_attribute {

View file

@ -14,7 +14,6 @@ export interface AttributeDetails_attribute_values {
name: string | null; name: string | null;
slug: string | null; slug: string | null;
type: AttributeValueType | null; type: AttributeValueType | null;
value: string | null;
} }
export interface AttributeDetails_attribute { export interface AttributeDetails_attribute {

View file

@ -14,7 +14,6 @@ export interface AttributeDetailsFragment_values {
name: string | null; name: string | null;
slug: string | null; slug: string | null;
type: AttributeValueType | null; type: AttributeValueType | null;
value: string | null;
} }
export interface AttributeDetailsFragment { export interface AttributeDetailsFragment {

View file

@ -20,7 +20,6 @@ export interface AttributeUpdate_attributeUpdate_attribute_values {
name: string | null; name: string | null;
slug: string | null; slug: string | null;
type: AttributeValueType | null; type: AttributeValueType | null;
value: string | null;
} }
export interface AttributeUpdate_attributeUpdate_attribute { export interface AttributeUpdate_attributeUpdate_attribute {

View file

@ -20,7 +20,6 @@ export interface AttributeValueCreate_attributeValueCreate_attribute_values {
name: string | null; name: string | null;
slug: string | null; slug: string | null;
type: AttributeValueType | null; type: AttributeValueType | null;
value: string | null;
} }
export interface AttributeValueCreate_attributeValueCreate_attribute { export interface AttributeValueCreate_attributeValueCreate_attribute {

View file

@ -20,7 +20,6 @@ export interface AttributeValueDelete_attributeValueDelete_attribute_values {
name: string | null; name: string | null;
slug: string | null; slug: string | null;
type: AttributeValueType | null; type: AttributeValueType | null;
value: string | null;
} }
export interface AttributeValueDelete_attributeValueDelete_attribute { export interface AttributeValueDelete_attributeValueDelete_attribute {

View file

@ -20,7 +20,6 @@ export interface AttributeValueUpdate_attributeValueUpdate_attribute_values {
name: string | null; name: string | null;
slug: string | null; slug: string | null;
type: AttributeValueType | null; type: AttributeValueType | null;
value: string | null;
} }
export interface AttributeValueUpdate_attributeValueUpdate_attribute { export interface AttributeValueUpdate_attributeValueUpdate_attribute {

View file

@ -3,10 +3,10 @@
// This file was automatically generated and should not be edited. // This file was automatically generated and should not be edited.
// ==================================================== // ====================================================
// GraphQL fragment: pluginFragment // GraphQL fragment: PluginFragment
// ==================================================== // ====================================================
export interface pluginFragment { export interface PluginFragment {
__typename: "Plugin"; __typename: "Plugin";
id: string; id: string;
name: string; name: string;

View file

@ -5,10 +5,10 @@
import { ConfigurationTypeFieldEnum } from "./../../types/globalTypes"; import { ConfigurationTypeFieldEnum } from "./../../types/globalTypes";
// ==================================================== // ====================================================
// GraphQL fragment: pluginsDetailsFragment // GraphQL fragment: PluginsDetailsFragment
// ==================================================== // ====================================================
export interface pluginsDetailsFragment_configuration { export interface PluginsDetailsFragment_configuration {
__typename: "ConfigurationItem"; __typename: "ConfigurationItem";
name: string; name: string;
type: ConfigurationTypeFieldEnum | null; type: ConfigurationTypeFieldEnum | null;
@ -17,11 +17,11 @@ export interface pluginsDetailsFragment_configuration {
label: string | null; label: string | null;
} }
export interface pluginsDetailsFragment { export interface PluginsDetailsFragment {
__typename: "Plugin"; __typename: "Plugin";
id: string; id: string;
name: string; name: string;
description: string; description: string;
active: boolean; active: boolean;
configuration: (pluginsDetailsFragment_configuration | null)[] | null; configuration: (PluginsDetailsFragment_configuration | null)[] | null;
} }

View file

@ -219,13 +219,9 @@ export enum TaxRateType {
} }
export enum VoucherTypeEnum { export enum VoucherTypeEnum {
CATEGORY = "CATEGORY",
COLLECTION = "COLLECTION",
ENTIRE_ORDER = "ENTIRE_ORDER", ENTIRE_ORDER = "ENTIRE_ORDER",
PRODUCT = "PRODUCT",
SHIPPING = "SHIPPING", SHIPPING = "SHIPPING",
SPECIFIC_PRODUCT = "SPECIFIC_PRODUCT", SPECIFIC_PRODUCT = "SPECIFIC_PRODUCT",
VALUE = "VALUE",
} }
export enum WeightUnitsEnum { export enum WeightUnitsEnum {
@ -289,12 +285,10 @@ export interface AttributeUpdateInput {
export interface AttributeValueCreateInput { export interface AttributeValueCreateInput {
name: string; name: string;
value?: string | null;
} }
export interface AttributeValueInput { export interface AttributeValueInput {
id?: string | null; id?: string | null;
name?: string | null;
slug?: string | null; slug?: string | null;
values: (string | null)[]; values: (string | null)[];
} }
@ -506,7 +500,6 @@ export interface ProductTypeInput {
isShippingRequired?: boolean | null; isShippingRequired?: boolean | null;
isDigital?: boolean | null; isDigital?: boolean | null;
weight?: any | null; weight?: any | null;
taxRate?: TaxRateType | null;
taxCode?: string | null; taxCode?: string | null;
} }