Merge pull request #695 from mirumee/feature/update-default-decimal-places
update schema decimal
This commit is contained in:
commit
14da39ebfa
5 changed files with 39 additions and 33 deletions
|
@ -37,6 +37,7 @@ All notable, unreleased changes to this project will be documented in this file.
|
||||||
- Add metadata to orders - #688 by @dominik-zeglen
|
- Add metadata to orders - #688 by @dominik-zeglen
|
||||||
- Add lazyload to locales - #692 by @eaglesemanation
|
- Add lazyload to locales - #692 by @eaglesemanation
|
||||||
- Fix not closed address update modal with two confirmations - #699 by @orzechdev
|
- Fix not closed address update modal with two confirmations - #699 by @orzechdev
|
||||||
|
- Update schema with PositiveDecimal type - #695 by @AlicjaSzu
|
||||||
|
|
||||||
## 2.10.1
|
## 2.10.1
|
||||||
|
|
||||||
|
|
|
@ -1072,7 +1072,7 @@ type Collection implements Node & ObjectWithMetadata {
|
||||||
metadata: [MetadataItem]!
|
metadata: [MetadataItem]!
|
||||||
privateMeta: [MetaStore]! @deprecated(reason: "Use the `privetaMetadata` field. This field will be removed after 2020-07-31.")
|
privateMeta: [MetaStore]! @deprecated(reason: "Use the `privetaMetadata` field. This field will be removed after 2020-07-31.")
|
||||||
meta: [MetaStore]! @deprecated(reason: "Use the `metadata` field. This field will be removed after 2020-07-31.")
|
meta: [MetaStore]! @deprecated(reason: "Use the `metadata` field. This field will be removed after 2020-07-31.")
|
||||||
products(filter: ProductFilterInput, before: String, after: String, first: Int, last: Int): ProductCountableConnection
|
products(filter: ProductFilterInput, sortBy: ProductOrder, before: String, after: String, first: Int, last: Int): ProductCountableConnection
|
||||||
backgroundImage(size: Int): Image
|
backgroundImage(size: Int): Image
|
||||||
translation(languageCode: LanguageCodeEnum!): CollectionTranslation
|
translation(languageCode: LanguageCodeEnum!): CollectionTranslation
|
||||||
}
|
}
|
||||||
|
@ -1630,8 +1630,6 @@ type DeactivateAllUserTokens {
|
||||||
accountErrors: [AccountError!]!
|
accountErrors: [AccountError!]!
|
||||||
}
|
}
|
||||||
|
|
||||||
scalar Decimal
|
|
||||||
|
|
||||||
type DeleteMetadata {
|
type DeleteMetadata {
|
||||||
errors: [Error!]! @deprecated(reason: "Use typed errors with error codes. This field will be removed after 2020-07-31.")
|
errors: [Error!]! @deprecated(reason: "Use typed errors with error codes. This field will be removed after 2020-07-31.")
|
||||||
metadataErrors: [MetadataError!]!
|
metadataErrors: [MetadataError!]!
|
||||||
|
@ -1778,7 +1776,7 @@ input DraftOrderCreateInput {
|
||||||
billingAddress: AddressInput
|
billingAddress: AddressInput
|
||||||
user: ID
|
user: ID
|
||||||
userEmail: String
|
userEmail: String
|
||||||
discount: Decimal
|
discount: PositiveDecimal
|
||||||
shippingAddress: AddressInput
|
shippingAddress: AddressInput
|
||||||
shippingMethod: ID
|
shippingMethod: ID
|
||||||
voucher: ID
|
voucher: ID
|
||||||
|
@ -1796,7 +1794,7 @@ input DraftOrderInput {
|
||||||
billingAddress: AddressInput
|
billingAddress: AddressInput
|
||||||
user: ID
|
user: ID
|
||||||
userEmail: String
|
userEmail: String
|
||||||
discount: Decimal
|
discount: PositiveDecimal
|
||||||
shippingAddress: AddressInput
|
shippingAddress: AddressInput
|
||||||
shippingMethod: ID
|
shippingMethod: ID
|
||||||
voucher: ID
|
voucher: ID
|
||||||
|
@ -2064,7 +2062,7 @@ type GiftCardCreate {
|
||||||
input GiftCardCreateInput {
|
input GiftCardCreateInput {
|
||||||
startDate: Date
|
startDate: Date
|
||||||
endDate: Date
|
endDate: Date
|
||||||
balance: Decimal
|
balance: PositiveDecimal
|
||||||
userEmail: String
|
userEmail: String
|
||||||
code: String
|
code: String
|
||||||
}
|
}
|
||||||
|
@ -2099,7 +2097,7 @@ type GiftCardUpdate {
|
||||||
input GiftCardUpdateInput {
|
input GiftCardUpdateInput {
|
||||||
startDate: Date
|
startDate: Date
|
||||||
endDate: Date
|
endDate: Date
|
||||||
balance: Decimal
|
balance: PositiveDecimal
|
||||||
userEmail: String
|
userEmail: String
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2251,9 +2249,11 @@ enum LanguageCodeEnum {
|
||||||
IS
|
IS
|
||||||
IT
|
IT
|
||||||
JA
|
JA
|
||||||
|
KM
|
||||||
KO
|
KO
|
||||||
LT
|
LT
|
||||||
MN
|
MN
|
||||||
|
MY
|
||||||
NB
|
NB
|
||||||
NL
|
NL
|
||||||
PL
|
PL
|
||||||
|
@ -2672,8 +2672,8 @@ type Mutation {
|
||||||
productVariantClearPrivateMetadata(id: ID!, input: MetaPath!): ProductVariantClearPrivateMeta @deprecated(reason: "Use the `deletePrivateMetadata` mutation instead. This field will be removed after 2020-07-31.")
|
productVariantClearPrivateMetadata(id: ID!, input: MetaPath!): ProductVariantClearPrivateMeta @deprecated(reason: "Use the `deletePrivateMetadata` mutation instead. This field will be removed after 2020-07-31.")
|
||||||
variantImageAssign(imageId: ID!, variantId: ID!): VariantImageAssign
|
variantImageAssign(imageId: ID!, variantId: ID!): VariantImageAssign
|
||||||
variantImageUnassign(imageId: ID!, variantId: ID!): VariantImageUnassign
|
variantImageUnassign(imageId: ID!, variantId: ID!): VariantImageUnassign
|
||||||
paymentCapture(amount: Decimal, paymentId: ID!): PaymentCapture
|
paymentCapture(amount: PositiveDecimal, paymentId: ID!): PaymentCapture
|
||||||
paymentRefund(amount: Decimal, paymentId: ID!): PaymentRefund
|
paymentRefund(amount: PositiveDecimal, paymentId: ID!): PaymentRefund
|
||||||
paymentVoid(paymentId: ID!): PaymentVoid
|
paymentVoid(paymentId: ID!): PaymentVoid
|
||||||
pageCreate(input: PageInput!): PageCreate
|
pageCreate(input: PageInput!): PageCreate
|
||||||
pageDelete(id: ID!): PageDelete
|
pageDelete(id: ID!): PageDelete
|
||||||
|
@ -2692,7 +2692,7 @@ type Mutation {
|
||||||
draftOrderUpdate(id: ID!, input: DraftOrderInput!): DraftOrderUpdate
|
draftOrderUpdate(id: ID!, input: DraftOrderInput!): DraftOrderUpdate
|
||||||
orderAddNote(order: ID!, input: OrderAddNoteInput!): OrderAddNote
|
orderAddNote(order: ID!, input: OrderAddNoteInput!): OrderAddNote
|
||||||
orderCancel(id: ID!): OrderCancel
|
orderCancel(id: ID!): OrderCancel
|
||||||
orderCapture(amount: Decimal!, id: ID!): OrderCapture
|
orderCapture(amount: PositiveDecimal!, id: ID!): OrderCapture
|
||||||
orderClearPrivateMeta(id: ID!, input: MetaPath!): OrderClearPrivateMeta @deprecated(reason: "Use the `deletePrivateMetadata` mutation instead. This field will be removed after 2020-07-31.")
|
orderClearPrivateMeta(id: ID!, input: MetaPath!): OrderClearPrivateMeta @deprecated(reason: "Use the `deletePrivateMetadata` mutation instead. This field will be removed after 2020-07-31.")
|
||||||
orderClearMeta(input: MetaPath!, token: UUID!): OrderClearMeta @deprecated(reason: "Use the `deleteMetadata` mutation instead. This field will be removed after 2020-07-31.")
|
orderClearMeta(input: MetaPath!, token: UUID!): OrderClearMeta @deprecated(reason: "Use the `deleteMetadata` mutation instead. This field will be removed after 2020-07-31.")
|
||||||
orderFulfill(input: OrderFulfillInput!, order: ID): OrderFulfill
|
orderFulfill(input: OrderFulfillInput!, order: ID): OrderFulfill
|
||||||
|
@ -2703,7 +2703,7 @@ type Mutation {
|
||||||
orderFulfillmentUpdateMeta(id: ID!, input: MetaInput!): FulfillmentUpdateMeta @deprecated(reason: "Use the `updateMetadata` mutation instead. This field will be removed after 2020-07-31.")
|
orderFulfillmentUpdateMeta(id: ID!, input: MetaInput!): FulfillmentUpdateMeta @deprecated(reason: "Use the `updateMetadata` mutation instead. This field will be removed after 2020-07-31.")
|
||||||
orderFulfillmentUpdatePrivateMeta(id: ID!, input: MetaInput!): FulfillmentUpdatePrivateMeta @deprecated(reason: "Use the `updatePrivateMetadata` mutation instead. This field will be removed after 2020-07-31.")
|
orderFulfillmentUpdatePrivateMeta(id: ID!, input: MetaInput!): FulfillmentUpdatePrivateMeta @deprecated(reason: "Use the `updatePrivateMetadata` mutation instead. This field will be removed after 2020-07-31.")
|
||||||
orderMarkAsPaid(id: ID!): OrderMarkAsPaid
|
orderMarkAsPaid(id: ID!): OrderMarkAsPaid
|
||||||
orderRefund(amount: Decimal!, id: ID!): OrderRefund
|
orderRefund(amount: PositiveDecimal!, id: ID!): OrderRefund
|
||||||
orderUpdate(id: ID!, input: OrderUpdateInput!): OrderUpdate
|
orderUpdate(id: ID!, input: OrderUpdateInput!): OrderUpdate
|
||||||
orderUpdateMeta(input: MetaInput!, token: UUID!): OrderUpdateMeta @deprecated(reason: "Use the `updateMetadata` mutation instead. This field will be removed after 2020-07-31.")
|
orderUpdateMeta(input: MetaInput!, token: UUID!): OrderUpdateMeta @deprecated(reason: "Use the `updateMetadata` mutation instead. This field will be removed after 2020-07-31.")
|
||||||
orderUpdatePrivateMeta(id: ID!, input: MetaInput!): OrderUpdatePrivateMeta @deprecated(reason: "Use the `updatePrivateMetadata` mutation instead. This field will be removed after 2020-07-31.")
|
orderUpdatePrivateMeta(id: ID!, input: MetaInput!): OrderUpdatePrivateMeta @deprecated(reason: "Use the `updatePrivateMetadata` mutation instead. This field will be removed after 2020-07-31.")
|
||||||
|
@ -3127,6 +3127,7 @@ type OrderLine implements Node {
|
||||||
digitalContentUrl: DigitalContentUrl
|
digitalContentUrl: DigitalContentUrl
|
||||||
thumbnail(size: Int): Image
|
thumbnail(size: Int): Image
|
||||||
unitPrice: TaxedMoney
|
unitPrice: TaxedMoney
|
||||||
|
totalPrice: TaxedMoney
|
||||||
variant: ProductVariant
|
variant: ProductVariant
|
||||||
translatedProductName: String!
|
translatedProductName: String!
|
||||||
translatedVariantName: String!
|
translatedVariantName: String!
|
||||||
|
@ -3445,7 +3446,7 @@ type PaymentGateway {
|
||||||
input PaymentInput {
|
input PaymentInput {
|
||||||
gateway: String!
|
gateway: String!
|
||||||
token: String
|
token: String
|
||||||
amount: Decimal
|
amount: PositiveDecimal
|
||||||
billingAddress: AddressInput
|
billingAddress: AddressInput
|
||||||
returnUrl: String
|
returnUrl: String
|
||||||
}
|
}
|
||||||
|
@ -3614,6 +3615,8 @@ input PluginUpdateInput {
|
||||||
configuration: [ConfigurationItemInput]
|
configuration: [ConfigurationItemInput]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
scalar PositiveDecimal
|
||||||
|
|
||||||
input PriceRangeInput {
|
input PriceRangeInput {
|
||||||
gte: Float
|
gte: Float
|
||||||
lte: Float
|
lte: Float
|
||||||
|
@ -3721,7 +3724,7 @@ input ProductCreateInput {
|
||||||
weight: WeightScalar
|
weight: WeightScalar
|
||||||
sku: String
|
sku: String
|
||||||
trackInventory: Boolean
|
trackInventory: Boolean
|
||||||
basePrice: Decimal
|
basePrice: PositiveDecimal
|
||||||
visibleInListings: Boolean
|
visibleInListings: Boolean
|
||||||
productType: ID!
|
productType: ID!
|
||||||
stocks: [StockInput!]
|
stocks: [StockInput!]
|
||||||
|
@ -3855,7 +3858,7 @@ input ProductInput {
|
||||||
weight: WeightScalar
|
weight: WeightScalar
|
||||||
sku: String
|
sku: String
|
||||||
trackInventory: Boolean
|
trackInventory: Boolean
|
||||||
basePrice: Decimal
|
basePrice: PositiveDecimal
|
||||||
visibleInListings: Boolean
|
visibleInListings: Boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4102,8 +4105,8 @@ type ProductVariantBulkCreate {
|
||||||
|
|
||||||
input ProductVariantBulkCreateInput {
|
input ProductVariantBulkCreateInput {
|
||||||
attributes: [AttributeValueInput]!
|
attributes: [AttributeValueInput]!
|
||||||
costPrice: Decimal
|
costPrice: PositiveDecimal
|
||||||
price: Decimal
|
price: PositiveDecimal
|
||||||
sku: String!
|
sku: String!
|
||||||
trackInventory: Boolean
|
trackInventory: Boolean
|
||||||
weight: WeightScalar
|
weight: WeightScalar
|
||||||
|
@ -4147,8 +4150,8 @@ type ProductVariantCreate {
|
||||||
|
|
||||||
input ProductVariantCreateInput {
|
input ProductVariantCreateInput {
|
||||||
attributes: [AttributeValueInput]!
|
attributes: [AttributeValueInput]!
|
||||||
costPrice: Decimal
|
costPrice: PositiveDecimal
|
||||||
price: Decimal
|
price: PositiveDecimal
|
||||||
sku: String
|
sku: String
|
||||||
trackInventory: Boolean
|
trackInventory: Boolean
|
||||||
weight: WeightScalar
|
weight: WeightScalar
|
||||||
|
@ -4164,8 +4167,8 @@ type ProductVariantDelete {
|
||||||
|
|
||||||
input ProductVariantInput {
|
input ProductVariantInput {
|
||||||
attributes: [AttributeValueInput]
|
attributes: [AttributeValueInput]
|
||||||
costPrice: Decimal
|
costPrice: PositiveDecimal
|
||||||
price: Decimal
|
price: PositiveDecimal
|
||||||
sku: String
|
sku: String
|
||||||
trackInventory: Boolean
|
trackInventory: Boolean
|
||||||
weight: WeightScalar
|
weight: WeightScalar
|
||||||
|
@ -4392,7 +4395,7 @@ input SaleFilterInput {
|
||||||
input SaleInput {
|
input SaleInput {
|
||||||
name: String
|
name: String
|
||||||
type: DiscountValueTypeEnum
|
type: DiscountValueTypeEnum
|
||||||
value: Decimal
|
value: PositiveDecimal
|
||||||
products: [ID]
|
products: [ID]
|
||||||
categories: [ID]
|
categories: [ID]
|
||||||
collections: [ID]
|
collections: [ID]
|
||||||
|
@ -4638,9 +4641,9 @@ type ShippingPriceDelete {
|
||||||
|
|
||||||
input ShippingPriceInput {
|
input ShippingPriceInput {
|
||||||
name: String
|
name: String
|
||||||
price: Decimal
|
price: PositiveDecimal
|
||||||
minimumOrderPrice: Decimal
|
minimumOrderPrice: PositiveDecimal
|
||||||
maximumOrderPrice: Decimal
|
maximumOrderPrice: PositiveDecimal
|
||||||
minimumOrderWeight: WeightScalar
|
minimumOrderWeight: WeightScalar
|
||||||
maximumOrderWeight: WeightScalar
|
maximumOrderWeight: WeightScalar
|
||||||
type: ShippingMethodTypeEnum
|
type: ShippingMethodTypeEnum
|
||||||
|
@ -5350,11 +5353,11 @@ input VoucherInput {
|
||||||
startDate: DateTime
|
startDate: DateTime
|
||||||
endDate: DateTime
|
endDate: DateTime
|
||||||
discountValueType: DiscountValueTypeEnum
|
discountValueType: DiscountValueTypeEnum
|
||||||
discountValue: Decimal
|
discountValue: PositiveDecimal
|
||||||
products: [ID]
|
products: [ID]
|
||||||
collections: [ID]
|
collections: [ID]
|
||||||
categories: [ID]
|
categories: [ID]
|
||||||
minAmountSpent: Decimal
|
minAmountSpent: PositiveDecimal
|
||||||
minCheckoutItemsQuantity: Int
|
minCheckoutItemsQuantity: Int
|
||||||
countries: [String]
|
countries: [String]
|
||||||
applyOncePerOrder: Boolean
|
applyOncePerOrder: Boolean
|
||||||
|
|
|
@ -145,7 +145,7 @@ export const TypedOrderDraftFinalizeMutation = TypedMutation<
|
||||||
const orderRefundMutation = gql`
|
const orderRefundMutation = gql`
|
||||||
${fragmentOrderDetails}
|
${fragmentOrderDetails}
|
||||||
${orderErrorFragment}
|
${orderErrorFragment}
|
||||||
mutation OrderRefund($id: ID!, $amount: Decimal!) {
|
mutation OrderRefund($id: ID!, $amount: PositiveDecimal!) {
|
||||||
orderRefund(id: $id, amount: $amount) {
|
orderRefund(id: $id, amount: $amount) {
|
||||||
errors: orderErrors {
|
errors: orderErrors {
|
||||||
...OrderErrorFragment
|
...OrderErrorFragment
|
||||||
|
@ -202,7 +202,7 @@ export const TypedOrderMarkAsPaidMutation = TypedMutation<
|
||||||
const orderCaptureMutation = gql`
|
const orderCaptureMutation = gql`
|
||||||
${fragmentOrderDetails}
|
${fragmentOrderDetails}
|
||||||
${orderErrorFragment}
|
${orderErrorFragment}
|
||||||
mutation OrderCapture($id: ID!, $amount: Decimal!) {
|
mutation OrderCapture($id: ID!, $amount: PositiveDecimal!) {
|
||||||
orderCapture(id: $id, amount: $amount) {
|
orderCapture(id: $id, amount: $amount) {
|
||||||
errors: orderErrors {
|
errors: orderErrors {
|
||||||
...OrderErrorFragment
|
...OrderErrorFragment
|
||||||
|
|
|
@ -143,7 +143,7 @@ export const productUpdateMutation = gql`
|
||||||
$descriptionJson: JSONString
|
$descriptionJson: JSONString
|
||||||
$isPublished: Boolean!
|
$isPublished: Boolean!
|
||||||
$name: String
|
$name: String
|
||||||
$basePrice: Decimal
|
$basePrice: PositiveDecimal
|
||||||
$seo: SeoInput
|
$seo: SeoInput
|
||||||
$visibleInListings: Boolean
|
$visibleInListings: Boolean
|
||||||
) {
|
) {
|
||||||
|
@ -193,7 +193,7 @@ export const simpleProductUpdateMutation = gql`
|
||||||
$descriptionJson: JSONString
|
$descriptionJson: JSONString
|
||||||
$isPublished: Boolean!
|
$isPublished: Boolean!
|
||||||
$name: String
|
$name: String
|
||||||
$basePrice: Decimal
|
$basePrice: PositiveDecimal
|
||||||
$productVariantId: ID!
|
$productVariantId: ID!
|
||||||
$productVariantInput: ProductVariantInput!
|
$productVariantInput: ProductVariantInput!
|
||||||
$seo: SeoInput
|
$seo: SeoInput
|
||||||
|
@ -285,7 +285,7 @@ export const productCreateMutation = gql`
|
||||||
$descriptionJson: JSONString
|
$descriptionJson: JSONString
|
||||||
$isPublished: Boolean!
|
$isPublished: Boolean!
|
||||||
$name: String!
|
$name: String!
|
||||||
$basePrice: Decimal
|
$basePrice: PositiveDecimal
|
||||||
$productType: ID!
|
$productType: ID!
|
||||||
$sku: String
|
$sku: String
|
||||||
$seo: SeoInput
|
$seo: SeoInput
|
||||||
|
@ -355,8 +355,8 @@ export const variantUpdateMutation = gql`
|
||||||
$removeStocks: [ID!]!
|
$removeStocks: [ID!]!
|
||||||
$id: ID!
|
$id: ID!
|
||||||
$attributes: [AttributeValueInput]
|
$attributes: [AttributeValueInput]
|
||||||
$costPrice: Decimal
|
$costPrice: PositiveDecimal
|
||||||
$price: Decimal
|
$price: PositiveDecimal
|
||||||
$sku: String
|
$sku: String
|
||||||
$trackInventory: Boolean!
|
$trackInventory: Boolean!
|
||||||
$stocks: [StockInput!]!
|
$stocks: [StockInput!]!
|
||||||
|
|
|
@ -464,9 +464,11 @@ export enum LanguageCodeEnum {
|
||||||
IS = "IS",
|
IS = "IS",
|
||||||
IT = "IT",
|
IT = "IT",
|
||||||
JA = "JA",
|
JA = "JA",
|
||||||
|
KM = "KM",
|
||||||
KO = "KO",
|
KO = "KO",
|
||||||
LT = "LT",
|
LT = "LT",
|
||||||
MN = "MN",
|
MN = "MN",
|
||||||
|
MY = "MY",
|
||||||
NB = "NB",
|
NB = "NB",
|
||||||
NL = "NL",
|
NL = "NL",
|
||||||
PL = "PL",
|
PL = "PL",
|
||||||
|
|
Loading…
Reference in a new issue