Update schema
This commit is contained in:
parent
e5ed83d232
commit
0852758418
1 changed files with 145 additions and 11 deletions
156
schema.graphql
156
schema.graphql
|
@ -275,6 +275,8 @@ input AttributeFilterInput {
|
||||||
availableInGrid: Boolean
|
availableInGrid: Boolean
|
||||||
search: String
|
search: String
|
||||||
ids: [ID]
|
ids: [ID]
|
||||||
|
inCollection: ID
|
||||||
|
inCategory: ID
|
||||||
}
|
}
|
||||||
|
|
||||||
input AttributeInput {
|
input AttributeInput {
|
||||||
|
@ -461,6 +463,13 @@ enum AuthorizationKeyType {
|
||||||
GOOGLE_OAUTH2
|
GOOGLE_OAUTH2
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type BulkProductError {
|
||||||
|
field: String
|
||||||
|
message: String
|
||||||
|
code: ProductErrorCode
|
||||||
|
index: Int
|
||||||
|
}
|
||||||
|
|
||||||
input CatalogueInput {
|
input CatalogueInput {
|
||||||
products: [ID]
|
products: [ID]
|
||||||
categories: [ID]
|
categories: [ID]
|
||||||
|
@ -595,7 +604,7 @@ type Checkout implements Node {
|
||||||
privateMeta: [MetaStore]!
|
privateMeta: [MetaStore]!
|
||||||
meta: [MetaStore]!
|
meta: [MetaStore]!
|
||||||
availableShippingMethods: [ShippingMethod]!
|
availableShippingMethods: [ShippingMethod]!
|
||||||
availablePaymentGateways: [GatewaysEnum]!
|
availablePaymentGateways: [String]!
|
||||||
email: String!
|
email: String!
|
||||||
isShippingRequired: Boolean!
|
isShippingRequired: Boolean!
|
||||||
lines: [CheckoutLine]
|
lines: [CheckoutLine]
|
||||||
|
@ -1601,13 +1610,6 @@ input FulfillmentUpdateTrackingInput {
|
||||||
notifyCustomer: Boolean
|
notifyCustomer: Boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
enum GatewaysEnum {
|
|
||||||
DUMMY
|
|
||||||
BRAINTREE
|
|
||||||
RAZORPAY
|
|
||||||
STRIPE
|
|
||||||
}
|
|
||||||
|
|
||||||
scalar GenericScalar
|
scalar GenericScalar
|
||||||
|
|
||||||
type Geolocalization {
|
type Geolocalization {
|
||||||
|
@ -1984,6 +1986,9 @@ input MoveProductInput {
|
||||||
}
|
}
|
||||||
|
|
||||||
type Mutations {
|
type Mutations {
|
||||||
|
webhookCreate(input: WebhookCreateInput!): WebhookCreate
|
||||||
|
webhookDelete(id: ID!): WebhookDelete
|
||||||
|
webhookUpdate(id: ID!, input: WebhookUpdateInput!): WebhookUpdate
|
||||||
authorizationKeyAdd(input: AuthorizationKeyInput!, keyType: AuthorizationKeyType!): AuthorizationKeyAdd
|
authorizationKeyAdd(input: AuthorizationKeyInput!, keyType: AuthorizationKeyType!): AuthorizationKeyAdd
|
||||||
authorizationKeyDelete(keyType: AuthorizationKeyType!): AuthorizationKeyDelete
|
authorizationKeyDelete(keyType: AuthorizationKeyType!): AuthorizationKeyDelete
|
||||||
homepageCollectionUpdate(collection: ID): HomepageCollectionUpdate
|
homepageCollectionUpdate(collection: ID): HomepageCollectionUpdate
|
||||||
|
@ -2070,6 +2075,7 @@ type Mutations {
|
||||||
digitalContentUrlCreate(input: DigitalContentUrlCreateInput!): DigitalContentUrlCreate
|
digitalContentUrlCreate(input: DigitalContentUrlCreateInput!): DigitalContentUrlCreate
|
||||||
productVariantCreate(input: ProductVariantCreateInput!): ProductVariantCreate
|
productVariantCreate(input: ProductVariantCreateInput!): ProductVariantCreate
|
||||||
productVariantDelete(id: ID!): ProductVariantDelete
|
productVariantDelete(id: ID!): ProductVariantDelete
|
||||||
|
productVariantBulkCreate(product: ID!, variants: [ProductVariantBulkCreateInput]!): ProductVariantBulkCreate
|
||||||
productVariantBulkDelete(ids: [ID]!): ProductVariantBulkDelete
|
productVariantBulkDelete(ids: [ID]!): ProductVariantBulkDelete
|
||||||
productVariantUpdate(id: ID!, input: ProductVariantInput!): ProductVariantUpdate
|
productVariantUpdate(id: ID!, input: ProductVariantInput!): ProductVariantUpdate
|
||||||
productVariantTranslate(id: ID!, input: NameTranslationInput!, languageCode: LanguageCodeEnum!): ProductVariantTranslate
|
productVariantTranslate(id: ID!, input: NameTranslationInput!, languageCode: LanguageCodeEnum!): ProductVariantTranslate
|
||||||
|
@ -2202,6 +2208,8 @@ type Mutations {
|
||||||
serviceAccountDelete(id: ID!): ServiceAccountDelete
|
serviceAccountDelete(id: ID!): ServiceAccountDelete
|
||||||
serviceAccountUpdatePrivateMetadata(id: ID!, input: MetaInput!): ServiceAccountUpdatePrivateMeta
|
serviceAccountUpdatePrivateMetadata(id: ID!, input: MetaInput!): ServiceAccountUpdatePrivateMeta
|
||||||
serviceAccountClearStoredPrivateMetadata(id: ID!, input: MetaPath!): ServiceAccountClearStoredPrivateMeta
|
serviceAccountClearStoredPrivateMetadata(id: ID!, input: MetaPath!): ServiceAccountClearStoredPrivateMeta
|
||||||
|
serviceAccountTokenCreate(input: ServiceAccountTokenInput!): ServiceAccountTokenCreate
|
||||||
|
serviceAccountTokenDelete(id: ID!): ServiceAccountTokenDelete
|
||||||
passwordReset(email: String!): PasswordReset
|
passwordReset(email: String!): PasswordReset
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2682,7 +2690,7 @@ enum PaymentErrorCode {
|
||||||
}
|
}
|
||||||
|
|
||||||
input PaymentInput {
|
input PaymentInput {
|
||||||
gateway: GatewaysEnum!
|
gateway: String!
|
||||||
token: String!
|
token: String!
|
||||||
amount: Decimal
|
amount: Decimal
|
||||||
billingAddress: AddressInput
|
billingAddress: AddressInput
|
||||||
|
@ -2731,6 +2739,7 @@ enum PermissionEnum {
|
||||||
MANAGE_SHIPPING
|
MANAGE_SHIPPING
|
||||||
MANAGE_SETTINGS
|
MANAGE_SETTINGS
|
||||||
MANAGE_TRANSLATIONS
|
MANAGE_TRANSLATIONS
|
||||||
|
MANAGE_WEBHOOKS
|
||||||
}
|
}
|
||||||
|
|
||||||
type Plugin implements Node {
|
type Plugin implements Node {
|
||||||
|
@ -3172,6 +3181,23 @@ type ProductVariant implements Node {
|
||||||
digitalContent: DigitalContent
|
digitalContent: DigitalContent
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type ProductVariantBulkCreate {
|
||||||
|
errors: [Error!]
|
||||||
|
count: Int!
|
||||||
|
productVariants: [ProductVariant!]!
|
||||||
|
bulkProductErrors: [BulkProductError!]
|
||||||
|
}
|
||||||
|
|
||||||
|
input ProductVariantBulkCreateInput {
|
||||||
|
attributes: [AttributeValueInput]!
|
||||||
|
costPrice: Decimal
|
||||||
|
priceOverride: Decimal
|
||||||
|
sku: String!
|
||||||
|
quantity: Int
|
||||||
|
trackInventory: Boolean
|
||||||
|
weight: WeightScalar
|
||||||
|
}
|
||||||
|
|
||||||
type ProductVariantBulkDelete {
|
type ProductVariantBulkDelete {
|
||||||
errors: [Error!]
|
errors: [Error!]
|
||||||
count: Int!
|
count: Int!
|
||||||
|
@ -3264,6 +3290,8 @@ type ProductVariantUpdatePrivateMeta {
|
||||||
}
|
}
|
||||||
|
|
||||||
type Query {
|
type Query {
|
||||||
|
webhook(id: ID!): Webhook
|
||||||
|
webhooks(before: String, after: String, first: Int, last: Int): WebhookCountableConnection
|
||||||
translations(kind: TranslatableKinds!, before: String, after: String, first: Int, last: Int): TranslatableItemConnection
|
translations(kind: TranslatableKinds!, before: String, after: String, first: Int, last: Int): TranslatableItemConnection
|
||||||
shop: Shop
|
shop: Shop
|
||||||
shippingZone(id: ID!): ShippingZone
|
shippingZone(id: ID!): ShippingZone
|
||||||
|
@ -3285,7 +3313,7 @@ type Query {
|
||||||
reportProductSales(period: ReportingPeriod!, before: String, after: String, first: Int, last: Int): ProductVariantCountableConnection
|
reportProductSales(period: ReportingPeriod!, before: String, after: String, first: Int, last: Int): ProductVariantCountableConnection
|
||||||
payment(id: ID!): Payment
|
payment(id: ID!): Payment
|
||||||
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: String!): String
|
||||||
page(id: ID, slug: String): Page
|
page(id: ID, slug: String): Page
|
||||||
pages(query: String, filter: PageFilterInput, 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
|
||||||
|
@ -3447,9 +3475,9 @@ input SeoInput {
|
||||||
|
|
||||||
type ServiceAccount implements Node {
|
type ServiceAccount implements Node {
|
||||||
id: ID!
|
id: ID!
|
||||||
authToken: String
|
|
||||||
created: DateTime
|
created: DateTime
|
||||||
isActive: Boolean
|
isActive: Boolean
|
||||||
|
tokens: [ServiceAccountToken]
|
||||||
privateMeta: [MetaStore]!
|
privateMeta: [MetaStore]!
|
||||||
meta: [MetaStore]!
|
meta: [MetaStore]!
|
||||||
permissions: [PermissionDisplay]
|
permissions: [PermissionDisplay]
|
||||||
|
@ -3497,6 +3525,30 @@ input ServiceAccountInput {
|
||||||
permissions: [PermissionEnum]
|
permissions: [PermissionEnum]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type ServiceAccountToken implements Node {
|
||||||
|
name: String
|
||||||
|
authToken: String
|
||||||
|
id: ID!
|
||||||
|
}
|
||||||
|
|
||||||
|
type ServiceAccountTokenCreate {
|
||||||
|
errors: [Error!]
|
||||||
|
authToken: String
|
||||||
|
accountErrors: [AccountError!]
|
||||||
|
serviceAccountToken: ServiceAccountToken
|
||||||
|
}
|
||||||
|
|
||||||
|
type ServiceAccountTokenDelete {
|
||||||
|
errors: [Error!]
|
||||||
|
accountErrors: [AccountError!]
|
||||||
|
serviceAccountToken: ServiceAccountToken
|
||||||
|
}
|
||||||
|
|
||||||
|
input ServiceAccountTokenInput {
|
||||||
|
name: String
|
||||||
|
serviceAccount: ID!
|
||||||
|
}
|
||||||
|
|
||||||
type ServiceAccountUpdate {
|
type ServiceAccountUpdate {
|
||||||
errors: [Error!]
|
errors: [Error!]
|
||||||
accountErrors: [AccountError!]
|
accountErrors: [AccountError!]
|
||||||
|
@ -4170,6 +4222,88 @@ type VoucherUpdate {
|
||||||
voucher: Voucher
|
voucher: Voucher
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type Webhook implements Node {
|
||||||
|
serviceAccount: ServiceAccount!
|
||||||
|
targetUrl: String!
|
||||||
|
isActive: Boolean!
|
||||||
|
secretKey: String
|
||||||
|
id: ID!
|
||||||
|
events: [WebhookEvent]
|
||||||
|
}
|
||||||
|
|
||||||
|
type WebhookCountableConnection {
|
||||||
|
pageInfo: PageInfo!
|
||||||
|
edges: [WebhookCountableEdge!]!
|
||||||
|
totalCount: Int
|
||||||
|
}
|
||||||
|
|
||||||
|
type WebhookCountableEdge {
|
||||||
|
node: Webhook!
|
||||||
|
cursor: String!
|
||||||
|
}
|
||||||
|
|
||||||
|
type WebhookCreate {
|
||||||
|
errors: [Error!]
|
||||||
|
webhookErrors: [WebhookError!]
|
||||||
|
webhook: Webhook
|
||||||
|
}
|
||||||
|
|
||||||
|
input WebhookCreateInput {
|
||||||
|
targetUrl: String
|
||||||
|
events: [WebhookEventTypeEnum]
|
||||||
|
serviceAccount: ID
|
||||||
|
isActive: Boolean
|
||||||
|
secretKey: String
|
||||||
|
}
|
||||||
|
|
||||||
|
type WebhookDelete {
|
||||||
|
errors: [Error!]
|
||||||
|
webhook: Webhook
|
||||||
|
webhookErrors: [WebhookError!]
|
||||||
|
}
|
||||||
|
|
||||||
|
type WebhookError {
|
||||||
|
field: String
|
||||||
|
message: String
|
||||||
|
code: WebhookErrorCode
|
||||||
|
}
|
||||||
|
|
||||||
|
enum WebhookErrorCode {
|
||||||
|
GRAPHQL_ERROR
|
||||||
|
INVALID
|
||||||
|
NOT_FOUND
|
||||||
|
REQUIRED
|
||||||
|
UNIQUE
|
||||||
|
}
|
||||||
|
|
||||||
|
type WebhookEvent {
|
||||||
|
eventType: String
|
||||||
|
}
|
||||||
|
|
||||||
|
enum WebhookEventTypeEnum {
|
||||||
|
ALL_EVENTS
|
||||||
|
ORDER_CREATED
|
||||||
|
ORDER_FULLY_PAID
|
||||||
|
ORDER_UPDATED
|
||||||
|
ORDER_CANCELLED
|
||||||
|
CUSTOMER_CREATED
|
||||||
|
PRODUCT_CREATED
|
||||||
|
}
|
||||||
|
|
||||||
|
type WebhookUpdate {
|
||||||
|
errors: [Error!]
|
||||||
|
webhook: Webhook
|
||||||
|
webhookErrors: [WebhookError!]
|
||||||
|
}
|
||||||
|
|
||||||
|
input WebhookUpdateInput {
|
||||||
|
targetUrl: String
|
||||||
|
events: [WebhookEventTypeEnum]
|
||||||
|
serviceAccount: ID
|
||||||
|
isActive: Boolean
|
||||||
|
secretKey: String
|
||||||
|
}
|
||||||
|
|
||||||
type Weight {
|
type Weight {
|
||||||
unit: String!
|
unit: String!
|
||||||
value: Float!
|
value: Float!
|
||||||
|
|
Loading…
Reference in a new issue