Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add graphQL shema and types
fowczarek870397a0fb62
diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphqlindex a3cecbf2da..6c65f05560 100644--- a/saleor/graphql/schema.graphql+++ b/saleor/graphql/schema.graphql@@ -419,6 +419,7 @@ type Collection implements Node {products(before: String, after: String, first: Int, last: Int): ProductCountableConnectionbackgroundImage: ImageisPublished: Boolean!+ description: String}type CollectionAddProducts {@@ -446,6 +447,7 @@ input CollectionCreateInput {isPublished: Booleanname: Stringslug: String+ description: StringbackgroundImage: Uploadseo: SeoInputproducts: [ID]@@ -460,6 +462,7 @@ input CollectionInput {isPublished: Booleanname: Stringslug: String+ description: StringbackgroundImage: Uploadseo: SeoInput}@@ -833,6 +836,17 @@ type MoneyRange {}type Mutations {+ authorizationKeyAdd(input: AuthorizationKeyInput!, keyType: AuthorizationKeyType!): AuthorizationKeyAdd+ authorizationKeyDelete(keyType: AuthorizationKeyType!): AuthorizationKeyDelete+ homepageCollectionUpdate(collection: ID): HomepageCollectionUpdate+ shopDomainUpdate(input: SiteDomainInput): ShopDomainUpdate+ shopSettingsUpdate(input: ShopSettingsInput!): ShopSettingsUpdate+ shippingPriceCreate(input: ShippingPriceInput!): ShippingPriceCreate+ shippingPriceDelete(id: ID!): ShippingPriceDelete+ shippingPriceUpdate(id: ID!, input: ShippingPriceInput!): ShippingPriceUpdate+ shippingZoneCreate(input: ShippingZoneInput!): ShippingZoneCreate+ shippingZoneDelete(id: ID!): ShippingZoneDelete+ shippingZoneUpdate(id: ID!, input: ShippingZoneInput!): ShippingZoneUpdateattributeCreate(id: ID!, input: AttributeCreateInput!, type: AttributeTypeEnum!): AttributeCreateattributeDelete(id: ID!): AttributeDeleteattributeUpdate(id: ID!, input: AttributeUpdateInput!): AttributeUpdate@@ -842,103 +856,92 @@ type Mutations {categoryCreate(input: CategoryInput!, parent: ID): CategoryCreatecategoryDelete(id: ID!): CategoryDeletecategoryUpdate(id: ID!, input: CategoryInput!): CategoryUpdate+ collectionAddProducts(collectionId: ID!, products: [ID]!): CollectionAddProductscollectionCreate(input: CollectionCreateInput!): CollectionCreate- collectionUpdate(id: ID!, input: CollectionInput!): CollectionUpdatecollectionDelete(id: ID!): CollectionDelete- collectionAddProducts(collectionId: ID!, products: [ID]!): CollectionAddProductscollectionRemoveProducts(collectionId: ID!, products: [ID]!): CollectionRemoveProducts+ collectionUpdate(id: ID!, input: CollectionInput!): CollectionUpdateproductCreate(input: ProductCreateInput!): ProductCreateproductDelete(id: ID!): ProductDeleteproductUpdate(id: ID!, input: ProductInput!): ProductUpdateproductImageCreate(input: ProductImageCreateInput!): ProductImageCreate- productImageReorder(imagesIds: [ID]!, productId: ID!): ProductImageReorderproductImageDelete(id: ID!): ProductImageDelete+ productImageReorder(imagesIds: [ID]!, productId: ID!): ProductImageReorderproductImageUpdate(id: ID!, input: ProductImageUpdateInput!): ProductImageUpdateproductTypeCreate(input: ProductTypeInput!): ProductTypeCreate- productTypeUpdate(id: ID!, input: ProductTypeInput!): ProductTypeUpdateproductTypeDelete(id: ID!): ProductTypeDelete+ productTypeUpdate(id: ID!, input: ProductTypeInput!): ProductTypeUpdateproductVariantCreate(input: ProductVariantCreateInput!): ProductVariantCreateproductVariantDelete(id: ID!): ProductVariantDeleteproductVariantUpdate(id: ID!, input: ProductVariantInput!): ProductVariantUpdatevariantImageAssign(imageId: ID!, variantId: ID!): VariantImageAssignvariantImageUnassign(imageId: ID!, variantId: ID!): VariantImageUnassign- authorizationKeyAdd(input: AuthorizationKeyInput!, keyType: AuthorizationKeyType!): AuthorizationKeyAdd- authorizationKeyDelete(keyType: AuthorizationKeyType!): AuthorizationKeyDelete- assignNavigation(menu: ID, navigationType: NavigationType!): AssignNavigation- tokenCreate(email: String!, password: String!): CreateToken- tokenRefresh(token: String!): Refresh- tokenVerify(token: String!): VerifyToken- setPassword(id: ID!, input: SetPasswordInput!): SetPassword- passwordReset(email: String!): PasswordReset- customerCreate(input: UserCreateInput!): CustomerCreate- loggedUserUpdate(input: UserAddressInput!): LoggedUserUpdate- customerUpdate(id: ID!, input: CustomerInput!): CustomerUpdate- customerDelete(id: ID!): CustomerDelete- customerPasswordReset(input: CustomerPasswordResetInput!): CustomerPasswordReset- customerRegister(input: CustomerRegisterInput!): CustomerRegister- staffCreate(input: StaffCreateInput!): StaffCreate- staffUpdate(id: ID!, input: StaffInput!): StaffUpdate- staffDelete(id: ID!): StaffDelete- addressCreate(input: AddressCreateInput!): AddressCreate- addressUpdate(id: ID!, input: AddressInput!): AddressUpdate- addressDelete(id: ID!): AddressDelete- checkoutCreate(input: CheckoutCreateInput!): CheckoutCreate- checkoutLinesAdd(checkoutId: ID!, lines: [CheckoutLineInput]!): CheckoutLinesAdd- checkoutLinesUpdate(checkoutId: ID!, lines: [CheckoutLineInput]!): CheckoutLinesUpdate- checkoutLineDelete(checkoutId: ID!, lineId: ID): CheckoutLineDelete- checkoutCustomerAttach(checkoutId: ID!, customerId: ID!): CheckoutCustomerAttach- checkoutCustomerDetach(checkoutId: ID!): CheckoutCustomerDetach- checkoutBillingAddressUpdate(billingAddress: AddressInput, checkoutId: ID): CheckoutBillingAddressUpdate- checkoutShippingAddressUpdate(checkoutId: ID, shippingAddress: AddressInput): CheckoutShippingAddressUpdate- checkoutShippingMethodUpdate(checkoutId: ID, shippingMethodId: ID!): CheckoutShippingMethodUpdate- checkoutEmailUpdate(checkoutId: ID, email: String!): CheckoutEmailUpdate- checkoutPaymentCreate(input: PaymentInput!): CheckoutPaymentCreate- checkoutComplete(checkoutId: ID): CheckoutComplete- menuCreate(input: MenuCreateInput!): MenuCreate- menuDelete(id: ID!): MenuDelete- menuUpdate(id: ID!, input: MenuInput!): MenuUpdate- menuItemCreate(input: MenuItemCreateInput!): MenuItemCreate- menuItemDelete(id: ID!): MenuItemDelete- menuItemUpdate(id: ID!, input: MenuItemInput!): MenuItemUpdate- draftOrderCreate(input: DraftOrderCreateInput!): DraftOrderCreate+ paymentCapture(amount: Decimal, paymentId: ID!): PaymentCapture+ paymentRefund(amount: Decimal, paymentId: ID!): PaymentRefund+ paymentVoid(paymentId: ID!): PaymentVoid+ pageCreate(input: PageInput!): PageCreate+ pageDelete(id: ID!): PageDelete+ pageUpdate(id: ID!, input: PageInput!): PageUpdatedraftOrderComplete(id: ID!): DraftOrderComplete+ draftOrderCreate(input: DraftOrderCreateInput!): DraftOrderCreatedraftOrderDelete(id: ID!): DraftOrderDeletedraftOrderLineCreate(id: ID!, input: OrderLineCreateInput!): DraftOrderLineCreatedraftOrderLineDelete(id: ID!): DraftOrderLineDeletedraftOrderLineUpdate(id: ID!, input: OrderLineInput!): DraftOrderLineUpdatedraftOrderUpdate(id: ID!, input: DraftOrderInput!): DraftOrderUpdate- orderFulfillmentCancel(id: ID!, input: FulfillmentCancelInput!): FulfillmentCancel- orderFulfillmentCreate(input: FulfillmentCreateInput!, order: ID): FulfillmentCreate- orderFulfillmentUpdateTracking(id: ID!, input: FulfillmentUpdateTrackingInput!): FulfillmentUpdateTrackingorderAddNote(order: ID!, input: OrderAddNoteInput!): OrderAddNoteorderCancel(id: ID!, restock: Boolean!): OrderCancelorderCapture(amount: Decimal!, id: ID!): OrderCapture+ orderFulfillmentCancel(id: ID!, input: FulfillmentCancelInput!): FulfillmentCancel+ orderFulfillmentCreate(input: FulfillmentCreateInput!, order: ID): FulfillmentCreate+ orderFulfillmentUpdateTracking(id: ID!, input: FulfillmentUpdateTrackingInput!): FulfillmentUpdateTrackingorderMarkAsPaid(id: ID!): OrderMarkAsPaid- orderUpdateShipping(order: ID!, input: OrderUpdateShippingInput): OrderUpdateShippingorderRefund(amount: Decimal!, id: ID!): OrderRefund- orderVoid(id: ID!): OrderVoidorderUpdate(id: ID!, input: OrderUpdateInput!): OrderUpdate- pageCreate(input: PageInput!): PageCreate- pageDelete(id: ID!): PageDelete- pageUpdate(id: ID!, input: PageInput!): PageUpdate- paymentCapture(amount: Decimal, paymentId: ID!): PaymentCapture- paymentRefund(amount: Decimal, paymentId: ID!): PaymentRefund- paymentVoid(paymentId: ID!): PaymentVoid+ orderUpdateShipping(order: ID!, input: OrderUpdateShippingInput): OrderUpdateShipping+ orderVoid(id: ID!): OrderVoid+ assignNavigation(menu: ID, navigationType: NavigationType!): AssignNavigation+ menuCreate(input: MenuCreateInput!): MenuCreate+ menuDelete(id: ID!): MenuDelete+ menuUpdate(id: ID!, input: MenuInput!): MenuUpdate+ menuItemCreate(input: MenuItemCreateInput!): MenuItemCreate+ menuItemDelete(id: ID!): MenuItemDelete+ menuItemUpdate(id: ID!, input: MenuItemInput!): MenuItemUpdatesaleCreate(input: SaleInput!): SaleCreatesaleDelete(id: ID!): SaleDeletesaleUpdate(id: ID!, input: SaleInput!): SaleUpdate- shopDomainUpdate(input: SiteDomainInput): ShopDomainUpdate- shopSettingsUpdate(input: ShopSettingsInput!): ShopSettingsUpdate- homepageCollectionUpdate(collection: ID): HomepageCollectionUpdatevoucherCreate(input: VoucherInput!): VoucherCreatevoucherDelete(id: ID!): VoucherDeletevoucherUpdate(id: ID!, input: VoucherInput!): VoucherUpdate- shippingZoneCreate(input: ShippingZoneInput!): ShippingZoneCreate- shippingZoneDelete(id: ID!): ShippingZoneDelete- shippingZoneUpdate(id: ID!, input: ShippingZoneInput!): ShippingZoneUpdate- shippingPriceCreate(input: ShippingPriceInput!): ShippingPriceCreate- shippingPriceDelete(id: ID!): ShippingPriceDelete- shippingPriceUpdate(id: ID!, input: ShippingPriceInput!): ShippingPriceUpdate+ tokenCreate(email: String!, password: String!): CreateToken+ tokenRefresh(token: String!): Refresh+ tokenVerify(token: String!): VerifyToken+ checkoutBillingAddressUpdate(billingAddress: AddressInput, checkoutId: ID): CheckoutBillingAddressUpdate+ checkoutComplete(checkoutId: ID): CheckoutComplete+ checkoutCreate(input: CheckoutCreateInput!): CheckoutCreate+ checkoutCustomerAttach(checkoutId: ID!, customerId: ID!): CheckoutCustomerAttach+ checkoutCustomerDetach(checkoutId: ID!): CheckoutCustomerDetach+ checkoutEmailUpdate(checkoutId: ID, email: String!): CheckoutEmailUpdate+ checkoutLineDelete(checkoutId: ID!, lineId: ID): CheckoutLineDelete+ checkoutLinesAdd(checkoutId: ID!, lines: [CheckoutLineInput]!): CheckoutLinesAdd+ checkoutLinesUpdate(checkoutId: ID!, lines: [CheckoutLineInput]!): CheckoutLinesUpdate+ checkoutPaymentCreate(input: PaymentInput!): CheckoutPaymentCreate+ checkoutShippingAddressUpdate(checkoutId: ID, shippingAddress: AddressInput): CheckoutShippingAddressUpdate+ checkoutShippingMethodUpdate(checkoutId: ID, shippingMethodId: ID!): CheckoutShippingMethodUpdate+ passwordReset(email: String!): PasswordReset+ setPassword(id: ID!, input: SetPasswordInput!): SetPassword+ customerCreate(input: UserCreateInput!): CustomerCreate+ customerDelete(id: ID!): CustomerDelete+ customerPasswordReset(input: CustomerPasswordResetInput!): CustomerPasswordReset+ customerRegister(input: CustomerRegisterInput!): CustomerRegister+ customerUpdate(id: ID!, input: CustomerInput!): CustomerUpdate+ loggedUserUpdate(input: UserAddressInput!): LoggedUserUpdate+ staffCreate(input: StaffCreateInput!): StaffCreate+ staffDelete(id: ID!): StaffDelete+ staffUpdate(id: ID!, input: StaffInput!): StaffUpdate+ addressCreate(input: AddressCreateInput!): AddressCreate+ addressDelete(id: ID!): AddressDelete+ addressUpdate(id: ID!, input: AddressInput!): AddressUpdate}type Navigation {@@ -1576,6 +1579,9 @@ type ProductVariantUpdate {}type Query {+ shop: Shop+ shippingZone(id: ID!): ShippingZone+ shippingZones(before: String, after: String, first: Int, last: Int): ShippingZoneCountableConnectionattributes(query: String, inCategory: ID, before: String, after: String, first: Int, last: Int): AttributeCountableConnectioncategories(query: String, level: Int, before: String, after: String, first: Int, last: Int): CategoryCountableConnectioncategory(id: ID!): Category@@ -1588,34 +1594,31 @@ type Query {productVariant(id: ID!): ProductVariantproductVariants(ids: [ID], before: String, after: String, first: Int, last: Int): ProductVariantCountableConnectionreportProductSales(period: ReportingPeriod!, before: String, after: String, first: Int, last: Int): ProductVariantCountableConnection- addressValidator(input: AddressValidationInput!): AddressValidationData- checkout(token: UUID): Checkout- checkouts(before: String, after: String, first: Int, last: Int): CheckoutCountableConnection- checkoutLines(before: String, after: String, first: Int, last: Int): CheckoutLineCountableConnection- checkoutLine(id: ID): CheckoutLine+ payment(id: ID): Payment+ payments(before: String, after: String, first: Int, last: Int): PaymentCountableConnection+ paymentClientToken(gateway: GatewaysEnum): String+ page(id: ID, slug: String): Page+ pages(query: String, before: String, after: String, first: Int, last: Int): PageCountableConnection+ homepageEvents(before: String, after: String, first: Int, last: Int): OrderEventCountableConnection+ order(id: ID!): Order+ orders(query: String, created: ReportingPeriod, status: OrderStatusFilter, before: String, after: String, first: Int, last: Int): OrderCountableConnection+ ordersTotal(period: ReportingPeriod): TaxedMoneymenu(id: ID, name: String): Menumenus(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- order(id: ID!): Order- ordersTotal(period: ReportingPeriod): TaxedMoney- orders(query: String, created: ReportingPeriod, status: OrderStatusFilter, before: String, after: String, first: Int, last: Int): OrderCountableConnection- homepageEvents(before: String, after: String, first: Int, last: Int): OrderEventCountableConnection- page(id: ID, slug: String): Page- pages(query: String, before: String, after: String, first: Int, last: Int): PageCountableConnection- payment(id: ID): Payment- paymentClientToken(gateway: GatewaysEnum): String- payments(before: String, after: String, first: Int, last: Int): PaymentCountableConnectionsale(id: ID!): Salesales(query: String, before: String, after: String, first: Int, last: Int): SaleCountableConnection- shop: Shopvoucher(id: ID!): Vouchervouchers(query: String, before: String, after: String, first: Int, last: Int): VoucherCountableConnection- shippingZone(id: ID!): ShippingZone- shippingZones(before: String, after: String, first: Int, last: Int): ShippingZoneCountableConnection- user(id: ID!): User+ checkout(token: UUID): Checkout+ checkouts(before: String, after: String, first: Int, last: Int): CheckoutCountableConnection+ checkoutLine(id: ID): CheckoutLine+ checkoutLines(before: String, after: String, first: Int, last: Int): CheckoutLineCountableConnection+ addressValidator(input: AddressValidationInput!): AddressValidationDatacustomers(query: String, before: String, after: String, first: Int, last: Int): UserCountableConnectionstaffUsers(query: String, before: String, after: String, first: Int, last: Int): UserCountableConnection+ user(id: ID!): Usernode(id: ID!): Node}diff --git a/saleor/static/dashboard-next/types/globalTypes.ts b/saleor/static/dashboard-next/types/globalTypes.tsindex 83cf71b219..d1b73c87d8 100644--- a/saleor/static/dashboard-next/types/globalTypes.ts+++ b/saleor/static/dashboard-next/types/globalTypes.ts@@ -177,6 +177,7 @@ export interface CollectionCreateInput {isPublished?: boolean | null;name?: string | null;slug?: string | null;+ description?: string | null;backgroundImage?: any | null;seo?: SeoInput | null;products?: (string | null)[] | null;@@ -186,6 +187,7 @@ export interface CollectionInput {isPublished?: boolean | null;name?: string | null;slug?: string | null;+ description?: string | null;backgroundImage?: any | null;seo?: SeoInput | null;}