Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Add schema and changelog

fowczarek1ae3a1a4224b
diff --git a/CHANGELOG.md b/CHANGELOG.md
index bd5868307a..c397a8ff56 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -59,6 +59,7 @@ All notable, unreleased changes to this project will be documented in this file.
- Change AddressValidationRules API - #4655 by @Kwaidan00
- Refactor account deletion mutations - #4668 by @fowczarek
- Upgraded django-prices from v1 to v2.1. Currency codes are now locked at 3 characters max by default for consistency. - #4639 by @NyanKiyoshi
+- Drop deprecated fields from api - #4684 by@fowczarek
## 2.8.0
diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphql
index c1dfe6180a..d2794509b7 100644
--- a/saleor/graphql/schema.graphql
+++ b/saleor/graphql/schema.graphql
@@ -322,7 +322,6 @@ type AttributeValue implements Node {
name: String
slug: String
type: AttributeValueType
- value: String @deprecated(reason: "This field is deprecated")
translation(languageCode: LanguageCodeEnum!): AttributeValueTranslation
inputType: AttributeInputTypeEnum
}
@@ -340,7 +339,6 @@ type AttributeValueCreate {
input AttributeValueCreateInput {
name: String!
- value: String
}
type AttributeValueDelete {
@@ -351,7 +349,6 @@ type AttributeValueDelete {
input AttributeValueInput {
id: ID
- name: String
slug: String
values: [String]!
}
@@ -696,7 +693,6 @@ type Collection implements Node {
meta: [MetaStore]!
products(before: String, after: String, first: Int, last: Int): ProductCountableConnection
backgroundImage(size: Int): Image
- publishedDate: Date @deprecated(reason: "publishedDate is deprecated, use publicationDate instead")
translation(languageCode: LanguageCodeEnum!): CollectionTranslation
}
@@ -2187,7 +2183,6 @@ type OrderLine implements Node {
quantityFulfilled: Int!
taxRate: Float!
digitalContentUrl: DigitalContentUrl
- thumbnailUrl(size: Int): String @deprecated(reason: "thumbnailUrl is deprecated, use thumbnail instead")
thumbnail(size: Int): Image
unitPrice: TaxedMoney
variant: ProductVariant
@@ -2265,8 +2260,6 @@ type Page implements Node {
content: String!
contentJson: JSONString!
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
}
@@ -2501,7 +2494,6 @@ type Product implements Node {
privateMeta: [MetaStore]!
meta: [MetaStore]!
url: String!
- thumbnailUrl(size: Int): String @deprecated(reason: "thumbnailUrl is deprecated, use\\n thumbnail instead")
thumbnail(size: Int): Image
availability: ProductPricingInfo @deprecated(reason: "Has been renamed to 'pricing'.")
pricing: ProductPricingInfo
@@ -2509,7 +2501,6 @@ type Product implements Node {
basePrice: Money
price: Money @deprecated(reason: "Has been replaced by 'basePrice'")
minimalVariantPrice: Money
- taxRate: TaxRateType @deprecated(reason: "taxRate is deprecated. Use taxType to obtain taxCode for given tax gateway")
taxType: TaxType
attributes: [SelectedAttribute!]!
purchaseCost: MoneyRange
@@ -2518,7 +2509,6 @@ type Product implements Node {
variants: [ProductVariant]
images: [ProductImage]
collections: [Collection]
- availableOn: Date @deprecated(reason: "availableOn is deprecated, use publicationDate instead")
translation(languageCode: LanguageCodeEnum!): ProductTranslation
slug: String!
}
@@ -2569,9 +2559,7 @@ input ProductCreateInput {
descriptionJson: JSONString
isPublished: Boolean
name: String
- price: Decimal
basePrice: Decimal
- taxRate: TaxRateType
taxCode: String
seo: SeoInput
weight: WeightScalar
@@ -2654,9 +2642,7 @@ input ProductInput {
descriptionJson: JSONString
isPublished: Boolean
name: String
- price: Decimal
basePrice: Decimal
- taxRate: TaxRateType
taxCode: String
seo: SeoInput
weight: WeightScalar
@@ -2779,7 +2765,6 @@ input ProductTypeInput {
isShippingRequired: Boolean
isDigital: Boolean
weight: WeightScalar
- taxRate: TaxRateType
taxCode: String
}
@@ -2942,7 +2927,7 @@ type Query {
collection(id: ID!): Collection
collections(filter: CollectionFilterInput, query: String, before: String, after: String, first: Int, last: Int): CollectionCountableConnection
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
productTypes(filter: ProductTypeFilterInput, query: String, before: String, after: String, first: Int, last: Int): ProductTypeCountableConnection
productVariant(id: ID!): ProductVariant
@@ -3698,11 +3683,7 @@ type VoucherTranslation implements Node {
}
enum VoucherTypeEnum {
- PRODUCT
- COLLECTION
- CATEGORY
SHIPPING
- VALUE
ENTIRE_ORDER
SPECIFIC_PRODUCT
}