Update schema
This commit is contained in:
parent
052b3c9a82
commit
f4e3149f89
1 changed files with 102 additions and 6 deletions
108
schema.graphql
108
schema.graphql
|
@ -466,6 +466,10 @@ type CategoryDelete {
|
||||||
category: Category
|
category: Category
|
||||||
}
|
}
|
||||||
|
|
||||||
|
input CategoryFilterInput {
|
||||||
|
search: String
|
||||||
|
}
|
||||||
|
|
||||||
input CategoryInput {
|
input CategoryInput {
|
||||||
description: String
|
description: String
|
||||||
descriptionJson: JSONString
|
descriptionJson: JSONString
|
||||||
|
@ -1627,6 +1631,10 @@ type MenuDelete {
|
||||||
menu: Menu
|
menu: Menu
|
||||||
}
|
}
|
||||||
|
|
||||||
|
input MenuFilterInput {
|
||||||
|
search: String
|
||||||
|
}
|
||||||
|
|
||||||
input MenuInput {
|
input MenuInput {
|
||||||
name: String
|
name: String
|
||||||
}
|
}
|
||||||
|
@ -1682,6 +1690,10 @@ type MenuItemDelete {
|
||||||
menuItem: MenuItem
|
menuItem: MenuItem
|
||||||
}
|
}
|
||||||
|
|
||||||
|
input MenuItemFilterInput {
|
||||||
|
search: String
|
||||||
|
}
|
||||||
|
|
||||||
input MenuItemInput {
|
input MenuItemInput {
|
||||||
name: String
|
name: String
|
||||||
url: String
|
url: String
|
||||||
|
@ -1980,6 +1992,11 @@ type Mutations {
|
||||||
userBulkSetActive(ids: [ID]!, isActive: Boolean!): UserBulkSetActive
|
userBulkSetActive(ids: [ID]!, isActive: Boolean!): UserBulkSetActive
|
||||||
userUpdatePrivateMetadata(id: ID!, input: MetaInput!): UserUpdatePrivateMeta
|
userUpdatePrivateMetadata(id: ID!, input: MetaInput!): UserUpdatePrivateMeta
|
||||||
userClearStoredPrivateMetadata(id: ID!, input: MetaPath!): UserClearStoredPrivateMeta
|
userClearStoredPrivateMetadata(id: ID!, input: MetaPath!): UserClearStoredPrivateMeta
|
||||||
|
serviceAccountCreate(input: ServiceAccountInput!): ServiceAccountCreate
|
||||||
|
serviceAccountUpdate(id: ID!, input: ServiceAccountInput!): ServiceAccountUpdate
|
||||||
|
serviceAccountDelete(id: ID!): ServiceAccountDelete
|
||||||
|
serviceAccountUpdatePrivateMetadata(id: ID!, input: MetaInput!): ServiceAccountUpdatePrivateMeta
|
||||||
|
serviceAccountClearStoredPrivateMetadata(id: ID!, input: MetaPath!): ServiceAccountClearStoredPrivateMeta
|
||||||
passwordReset(email: String!): PasswordReset
|
passwordReset(email: String!): PasswordReset
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2095,6 +2112,7 @@ enum OrderDirection {
|
||||||
input OrderDraftFilterInput {
|
input OrderDraftFilterInput {
|
||||||
customer: String
|
customer: String
|
||||||
created: DateRangeInput
|
created: DateRangeInput
|
||||||
|
search: String
|
||||||
}
|
}
|
||||||
|
|
||||||
type OrderEvent implements Node {
|
type OrderEvent implements Node {
|
||||||
|
@ -2171,12 +2189,13 @@ input OrderFilterInput {
|
||||||
status: [OrderStatusFilter]
|
status: [OrderStatusFilter]
|
||||||
customer: String
|
customer: String
|
||||||
created: DateRangeInput
|
created: DateRangeInput
|
||||||
|
search: String
|
||||||
}
|
}
|
||||||
|
|
||||||
type OrderLine implements Node {
|
type OrderLine implements Node {
|
||||||
id: ID!
|
id: ID!
|
||||||
productName: String!
|
productName: String!
|
||||||
translatedProductName: String!
|
variantName: String!
|
||||||
productSku: String!
|
productSku: String!
|
||||||
isShippingRequired: Boolean!
|
isShippingRequired: Boolean!
|
||||||
quantity: Int!
|
quantity: Int!
|
||||||
|
@ -2186,6 +2205,8 @@ type OrderLine implements Node {
|
||||||
thumbnail(size: Int): Image
|
thumbnail(size: Int): Image
|
||||||
unitPrice: TaxedMoney
|
unitPrice: TaxedMoney
|
||||||
variant: ProductVariant
|
variant: ProductVariant
|
||||||
|
translatedProductName: String!
|
||||||
|
translatedVariantName: String!
|
||||||
}
|
}
|
||||||
|
|
||||||
input OrderLineCreateInput {
|
input OrderLineCreateInput {
|
||||||
|
@ -2294,6 +2315,10 @@ type PageDelete {
|
||||||
page: Page
|
page: Page
|
||||||
}
|
}
|
||||||
|
|
||||||
|
input PageFilterInput {
|
||||||
|
search: String
|
||||||
|
}
|
||||||
|
|
||||||
type PageInfo {
|
type PageInfo {
|
||||||
hasNextPage: Boolean!
|
hasNextPage: Boolean!
|
||||||
hasPreviousPage: Boolean!
|
hasPreviousPage: Boolean!
|
||||||
|
@ -2430,6 +2455,7 @@ type PermissionDisplay {
|
||||||
enum PermissionEnum {
|
enum PermissionEnum {
|
||||||
MANAGE_USERS
|
MANAGE_USERS
|
||||||
MANAGE_STAFF
|
MANAGE_STAFF
|
||||||
|
MANAGE_SERVICE_ACCOUNTS
|
||||||
IMPERSONATE_USERS
|
IMPERSONATE_USERS
|
||||||
MANAGE_DISCOUNTS
|
MANAGE_DISCOUNTS
|
||||||
MANAGE_GIFT_CARD
|
MANAGE_GIFT_CARD
|
||||||
|
@ -2462,6 +2488,11 @@ type PluginCountableEdge {
|
||||||
cursor: String!
|
cursor: String!
|
||||||
}
|
}
|
||||||
|
|
||||||
|
input PluginFilterInput {
|
||||||
|
active: Boolean
|
||||||
|
search: String
|
||||||
|
}
|
||||||
|
|
||||||
type PluginUpdate {
|
type PluginUpdate {
|
||||||
errors: [Error!]
|
errors: [Error!]
|
||||||
plugin: Plugin
|
plugin: Plugin
|
||||||
|
@ -2661,6 +2692,8 @@ enum ProductOrderField {
|
||||||
PRICE
|
PRICE
|
||||||
MINIMAL_PRICE
|
MINIMAL_PRICE
|
||||||
DATE
|
DATE
|
||||||
|
TYPE
|
||||||
|
PUBLISHED
|
||||||
}
|
}
|
||||||
|
|
||||||
type ProductPricingInfo {
|
type ProductPricingInfo {
|
||||||
|
@ -2922,7 +2955,7 @@ type Query {
|
||||||
digitalContents(query: String, level: Int, before: String, after: String, first: Int, last: Int): DigitalContentCountableConnection
|
digitalContents(query: String, level: Int, before: String, after: String, first: Int, last: Int): DigitalContentCountableConnection
|
||||||
attributes(query: String, inCategory: ID, inCollection: ID, filter: AttributeFilterInput, sortBy: AttributeSortingInput, before: String, after: String, first: Int, last: Int): AttributeCountableConnection
|
attributes(query: String, inCategory: ID, inCollection: ID, filter: AttributeFilterInput, sortBy: AttributeSortingInput, before: String, after: String, first: Int, last: Int): AttributeCountableConnection
|
||||||
attribute(id: ID!): Attribute
|
attribute(id: ID!): Attribute
|
||||||
categories(query: String, level: Int, before: String, after: String, first: Int, last: Int): CategoryCountableConnection
|
categories(query: String, filter: CategoryFilterInput, level: Int, before: String, after: String, first: Int, last: Int): CategoryCountableConnection
|
||||||
category(id: ID!): Category
|
category(id: ID!): Category
|
||||||
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
|
||||||
|
@ -2937,7 +2970,7 @@ type Query {
|
||||||
payments(before: String, after: String, first: Int, last: Int): PaymentCountableConnection
|
payments(before: String, after: String, first: Int, last: Int): PaymentCountableConnection
|
||||||
paymentClientToken(gateway: GatewaysEnum): String
|
paymentClientToken(gateway: GatewaysEnum): String
|
||||||
page(id: ID, slug: String): Page
|
page(id: ID, slug: String): Page
|
||||||
pages(query: String, before: String, after: String, first: Int, last: Int): PageCountableConnection
|
pages(query: String, filter: PageFilterInput, before: String, after: String, first: Int, last: Int): PageCountableConnection
|
||||||
homepageEvents(before: String, after: String, first: Int, last: Int): OrderEventCountableConnection
|
homepageEvents(before: String, after: String, first: Int, last: Int): OrderEventCountableConnection
|
||||||
order(id: ID!): Order
|
order(id: ID!): Order
|
||||||
orders(filter: OrderFilterInput, query: String, created: ReportingPeriod, status: OrderStatusFilter, before: String, after: String, first: Int, last: Int): OrderCountableConnection
|
orders(filter: OrderFilterInput, query: String, created: ReportingPeriod, status: OrderStatusFilter, before: String, after: String, first: Int, last: Int): OrderCountableConnection
|
||||||
|
@ -2945,13 +2978,13 @@ type Query {
|
||||||
ordersTotal(period: ReportingPeriod): TaxedMoney
|
ordersTotal(period: ReportingPeriod): TaxedMoney
|
||||||
orderByToken(token: String!): Order
|
orderByToken(token: String!): Order
|
||||||
menu(id: ID, name: String): Menu
|
menu(id: ID, name: String): Menu
|
||||||
menus(query: String, before: String, after: String, first: Int, last: Int): MenuCountableConnection
|
menus(query: String, filter: MenuFilterInput, before: String, after: String, first: Int, last: Int): MenuCountableConnection
|
||||||
menuItem(id: ID!): MenuItem
|
menuItem(id: ID!): MenuItem
|
||||||
menuItems(query: String, before: String, after: String, first: Int, last: Int): MenuItemCountableConnection
|
menuItems(query: String, filter: MenuItemFilterInput, before: String, after: String, first: Int, last: Int): MenuItemCountableConnection
|
||||||
giftCard(id: ID!): GiftCard
|
giftCard(id: ID!): GiftCard
|
||||||
giftCards(before: String, after: String, first: Int, last: Int): GiftCardCountableConnection
|
giftCards(before: String, after: String, first: Int, last: Int): GiftCardCountableConnection
|
||||||
plugin(id: ID!): Plugin
|
plugin(id: ID!): Plugin
|
||||||
plugins(before: String, after: String, first: Int, last: Int): PluginCountableConnection
|
plugins(filter: PluginFilterInput, before: String, after: String, first: Int, last: Int): PluginCountableConnection
|
||||||
sale(id: ID!): Sale
|
sale(id: ID!): Sale
|
||||||
sales(filter: SaleFilterInput, query: String, before: String, after: String, first: Int, last: Int): SaleCountableConnection
|
sales(filter: SaleFilterInput, query: String, before: String, after: String, first: Int, last: Int): SaleCountableConnection
|
||||||
voucher(id: ID!): Voucher
|
voucher(id: ID!): Voucher
|
||||||
|
@ -2965,6 +2998,8 @@ type Query {
|
||||||
customers(filter: CustomerFilterInput, query: String, before: String, after: String, first: Int, last: Int): UserCountableConnection
|
customers(filter: CustomerFilterInput, query: String, before: String, after: String, first: Int, last: Int): UserCountableConnection
|
||||||
me: User
|
me: User
|
||||||
staffUsers(filter: StaffUserInput, query: String, before: String, after: String, first: Int, last: Int): UserCountableConnection
|
staffUsers(filter: StaffUserInput, query: String, before: String, after: String, first: Int, last: Int): UserCountableConnection
|
||||||
|
serviceAccounts(filter: ServiceAccountFilterInput, before: String, after: String, first: Int, last: Int): ServiceAccountCountableConnection
|
||||||
|
serviceAccount(id: ID!): ServiceAccount
|
||||||
user(id: ID!): User
|
user(id: ID!): User
|
||||||
node(id: ID!): Node
|
node(id: ID!): Node
|
||||||
}
|
}
|
||||||
|
@ -3092,6 +3127,65 @@ input SeoInput {
|
||||||
description: String
|
description: String
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type ServiceAccount implements Node {
|
||||||
|
id: ID!
|
||||||
|
authToken: String
|
||||||
|
created: DateTime
|
||||||
|
isActive: Boolean
|
||||||
|
privateMeta: [MetaStore]!
|
||||||
|
meta: [MetaStore]!
|
||||||
|
permissions: [PermissionDisplay]
|
||||||
|
name: String
|
||||||
|
}
|
||||||
|
|
||||||
|
type ServiceAccountClearStoredPrivateMeta {
|
||||||
|
errors: [Error!]
|
||||||
|
serviceAccount: ServiceAccount
|
||||||
|
}
|
||||||
|
|
||||||
|
type ServiceAccountCountableConnection {
|
||||||
|
pageInfo: PageInfo!
|
||||||
|
edges: [ServiceAccountCountableEdge!]!
|
||||||
|
totalCount: Int
|
||||||
|
}
|
||||||
|
|
||||||
|
type ServiceAccountCountableEdge {
|
||||||
|
node: ServiceAccount!
|
||||||
|
cursor: String!
|
||||||
|
}
|
||||||
|
|
||||||
|
type ServiceAccountCreate {
|
||||||
|
errors: [Error!]
|
||||||
|
authToken: String
|
||||||
|
serviceAccount: ServiceAccount
|
||||||
|
}
|
||||||
|
|
||||||
|
type ServiceAccountDelete {
|
||||||
|
errors: [Error!]
|
||||||
|
serviceAccount: ServiceAccount
|
||||||
|
}
|
||||||
|
|
||||||
|
input ServiceAccountFilterInput {
|
||||||
|
search: String
|
||||||
|
isActive: Boolean
|
||||||
|
}
|
||||||
|
|
||||||
|
input ServiceAccountInput {
|
||||||
|
name: String
|
||||||
|
isActive: Boolean
|
||||||
|
permissions: [PermissionEnum]
|
||||||
|
}
|
||||||
|
|
||||||
|
type ServiceAccountUpdate {
|
||||||
|
errors: [Error!]
|
||||||
|
serviceAccount: ServiceAccount
|
||||||
|
}
|
||||||
|
|
||||||
|
type ServiceAccountUpdatePrivateMeta {
|
||||||
|
errors: [Error!]
|
||||||
|
serviceAccount: ServiceAccount
|
||||||
|
}
|
||||||
|
|
||||||
type SetPassword {
|
type SetPassword {
|
||||||
token: String
|
token: String
|
||||||
errors: [Error]!
|
errors: [Error]!
|
||||||
|
@ -3307,6 +3401,7 @@ input StaffCreateInput {
|
||||||
note: String
|
note: String
|
||||||
permissions: [PermissionEnum]
|
permissions: [PermissionEnum]
|
||||||
sendPasswordEmail: Boolean
|
sendPasswordEmail: Boolean
|
||||||
|
redirectUrl: String
|
||||||
}
|
}
|
||||||
|
|
||||||
type StaffDelete {
|
type StaffDelete {
|
||||||
|
@ -3534,6 +3629,7 @@ input UserCreateInput {
|
||||||
isActive: Boolean
|
isActive: Boolean
|
||||||
note: String
|
note: String
|
||||||
sendPasswordEmail: Boolean
|
sendPasswordEmail: Boolean
|
||||||
|
redirectUrl: String
|
||||||
}
|
}
|
||||||
|
|
||||||
type UserUpdateMeta {
|
type UserUpdateMeta {
|
||||||
|
|
Loading…
Reference in a new issue