Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add graphql schema
fowczarekfcfce5bb45dd
diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphqlindex b9b9668308..e854b7006e 100644--- a/saleor/graphql/schema.graphql+++ b/saleor/graphql/schema.graphql@@ -347,6 +347,7 @@ type Checkout implements Node {discountName: StringtranslatedDiscountName: StringvoucherCode: String+ giftCards: [GiftCard]id: ID!availableShippingMethods: [ShippingMethod]!availablePaymentGateways: [GatewaysEnum]!@@ -358,6 +359,11 @@ type Checkout implements Node {totalPrice: TaxedMoney}+type CheckoutAddPromoCode {+ errors: [Error!]+ checkout: Checkout+}+type CheckoutBillingAddressUpdate {errors: [Error!]checkout: Checkout@@ -451,6 +457,11 @@ type CheckoutPaymentCreate {payment: Payment}+type CheckoutRemovePromoCode {+ errors: [Error!]+ checkout: Checkout+}+type CheckoutShippingAddressUpdate {errors: [Error!]checkout: Checkout@@ -1197,6 +1208,65 @@ type Geolocalization {country: CountryDisplay}+type GiftCard implements Node {+ user: User+ created: DateTime!+ startDate: Date!+ endDate: Date+ lastUsedOn: DateTime+ isActive: Boolean!+ initialBalance: Money+ currentBalance: Money+ id: ID!+ displayCode: String+}++type GiftCardActivate {+ errors: [Error!]+ giftCard: GiftCard+}++type GiftCardCountableConnection {+ pageInfo: PageInfo!+ edges: [GiftCardCountableEdge!]!+ totalCount: Int+}++type GiftCardCountableEdge {+ node: GiftCard!+ cursor: String!+}++type GiftCardCreate {+ errors: [Error!]+ giftCard: GiftCard+}++input GiftCardCreateInput {+ startDate: Date+ endDate: Date+ balance: Decimal+ userEmail: String+ code: String+}++type GiftCardDeactivate {+ errors: [Error!]+ giftCard: GiftCard+}++type GiftCardUpdate {+ errors: [Error!]+ giftCard: GiftCard+}++input GiftCardUpdateInput {+ startDate: Date+ endDate: Date+ balance: Decimal+ userEmail: String+}+type HomepageCollectionUpdate {errors: [Error!]shop: Shop@@ -1529,6 +1599,10 @@ type Mutations {menuItemUpdate(id: ID!, input: MenuItemInput!): MenuItemUpdatemenuItemTranslate(id: ID!, input: NameTranslationInput!, languageCode: LanguageCodeEnum!): MenuItemTranslatemenuItemMove(menu: ID!, moves: [MenuItemMoveInput]!): MenuItemMove+ giftCardActivate(id: ID!): GiftCardActivate+ giftCardCreate(input: GiftCardCreateInput!): GiftCardCreate+ giftCardDeactivate(id: ID!): GiftCardDeactivate+ giftCardUpdate(id: ID!, input: GiftCardUpdateInput!): GiftCardUpdatesaleCreate(input: SaleInput!): SaleCreatesaleDelete(id: ID!): SaleDeletesaleBulkDelete(ids: [ID]!): SaleBulkDelete@@ -1546,6 +1620,7 @@ type Mutations {tokenCreate(email: String!, password: String!): CreateTokentokenRefresh(token: String!): RefreshtokenVerify(token: String!): VerifyToken+ checkoutAddPromoCode(checkoutId: ID!, promoCode: String!): CheckoutAddPromoCodecheckoutBillingAddressUpdate(billingAddress: AddressInput!, checkoutId: ID!): CheckoutBillingAddressUpdatecheckoutComplete(checkoutId: ID!): CheckoutCompletecheckoutCreate(input: CheckoutCreateInput!): CheckoutCreate@@ -1555,6 +1630,7 @@ type Mutations {checkoutLineDelete(checkoutId: ID!, lineId: ID): CheckoutLineDeletecheckoutLinesAdd(checkoutId: ID!, lines: [CheckoutLineInput]!): CheckoutLinesAddcheckoutLinesUpdate(checkoutId: ID!, lines: [CheckoutLineInput]!): CheckoutLinesUpdate+ checkoutRemovePromoCode(checkoutId: ID!, promoCode: String!): CheckoutRemovePromoCodecheckoutPaymentCreate(checkoutId: ID!, input: PaymentInput!): CheckoutPaymentCreatecheckoutShippingAddressUpdate(checkoutId: ID!, shippingAddress: AddressInput!): CheckoutShippingAddressUpdatecheckoutShippingMethodUpdate(checkoutId: ID, shippingMethodId: ID!): CheckoutShippingMethodUpdate@@ -1615,6 +1691,7 @@ type Order implements Node {shippingMethodName: Stringtoken: String!voucher: Voucher+ giftCards: [GiftCard]discountAmount: MoneydiscountName: String!translatedDiscountName: String!@@ -2018,6 +2095,7 @@ enum PermissionEnum {MANAGE_STAFFIMPERSONATE_USERSMANAGE_DISCOUNTS+ MANAGE_GIFT_CARDMANAGE_MENUSMANAGE_ORDERSMANAGE_PAGES@@ -2428,6 +2506,8 @@ type Query {menus(query: String, before: String, after: String, first: Int, last: Int): MenuCountableConnectionmenuItem(id: ID!): MenuItemmenuItems(query: String, before: String, after: String, first: Int, last: Int): MenuItemCountableConnection+ giftCard(id: ID!): GiftCard+ giftCards(before: String, after: String, first: Int, last: Int): GiftCardCountableConnectionsale(id: ID!): Salesales(filter: SaleFilterInput, query: String, before: String, after: String, first: Int, last: Int): SaleCountableConnectionvoucher(id: ID!): Voucher@@ -2932,6 +3012,7 @@ type User implements Node {defaultBillingAddress: Addressaddresses: [Address]checkout: Checkout+ giftCards(before: String, after: String, first: Int, last: Int): GiftCardCountableConnectionorders(before: String, after: String, first: Int, last: Int): OrderCountableConnectionpermissions: [PermissionDisplay]avatar(size: Int): Image