Update schema (#1787)
This commit is contained in:
parent
1e3f3eae8d
commit
b13ecfc197
3 changed files with 101 additions and 2 deletions
|
@ -107,6 +107,12 @@
|
|||
{
|
||||
"name": "DigitalContentUrl"
|
||||
},
|
||||
{
|
||||
"name": "EventDelivery"
|
||||
},
|
||||
{
|
||||
"name": "EventDeliveryAttempt"
|
||||
},
|
||||
{
|
||||
"name": "ExportEvent"
|
||||
},
|
||||
|
|
|
@ -2041,6 +2041,82 @@ type DraftOrderUpdate {
|
|||
order: Order
|
||||
}
|
||||
|
||||
type EventDelivery implements Node {
|
||||
id: ID!
|
||||
createdAt: DateTime!
|
||||
status: EventDeliveryStatusEnum!
|
||||
eventType: WebhookEventTypeEnum!
|
||||
attempts(sortBy: EventDeliveryAttemptSortingInput, before: String, after: String, first: Int, last: Int): EventDeliveryAttemptCountableConnection
|
||||
payload: String
|
||||
}
|
||||
|
||||
type EventDeliveryAttempt implements Node {
|
||||
id: ID!
|
||||
createdAt: DateTime!
|
||||
taskId: String
|
||||
duration: Float
|
||||
response: String
|
||||
responseHeaders: String
|
||||
requestHeaders: String
|
||||
status: EventDeliveryStatusEnum!
|
||||
}
|
||||
|
||||
type EventDeliveryAttemptCountableConnection {
|
||||
pageInfo: PageInfo!
|
||||
edges: [EventDeliveryAttemptCountableEdge!]!
|
||||
totalCount: Int
|
||||
}
|
||||
|
||||
type EventDeliveryAttemptCountableEdge {
|
||||
node: EventDeliveryAttempt!
|
||||
cursor: String!
|
||||
}
|
||||
|
||||
enum EventDeliveryAttemptSortField {
|
||||
CREATED_AT
|
||||
}
|
||||
|
||||
input EventDeliveryAttemptSortingInput {
|
||||
direction: OrderDirection!
|
||||
field: EventDeliveryAttemptSortField!
|
||||
}
|
||||
|
||||
type EventDeliveryCountableConnection {
|
||||
pageInfo: PageInfo!
|
||||
edges: [EventDeliveryCountableEdge!]!
|
||||
totalCount: Int
|
||||
}
|
||||
|
||||
type EventDeliveryCountableEdge {
|
||||
node: EventDelivery!
|
||||
cursor: String!
|
||||
}
|
||||
|
||||
input EventDeliveryFilterInput {
|
||||
status: EventDeliveryStatusEnum
|
||||
eventType: WebhookEventTypeEnum
|
||||
}
|
||||
|
||||
type EventDeliveryRetry {
|
||||
delivery: EventDelivery
|
||||
errors: [WebhookError!]!
|
||||
}
|
||||
|
||||
enum EventDeliverySortField {
|
||||
CREATED_AT
|
||||
}
|
||||
|
||||
input EventDeliverySortingInput {
|
||||
direction: OrderDirection!
|
||||
field: EventDeliverySortField!
|
||||
}
|
||||
|
||||
enum EventDeliveryStatusEnum {
|
||||
PENDING
|
||||
SUCCESS
|
||||
FAILED
|
||||
}
|
||||
|
||||
type ExportError {
|
||||
field: String
|
||||
message: String
|
||||
|
@ -3766,6 +3842,7 @@ type Mutation {
|
|||
webhookCreate(input: WebhookCreateInput!): WebhookCreate
|
||||
webhookDelete(id: ID!): WebhookDelete
|
||||
webhookUpdate(id: ID!, input: WebhookUpdateInput!): WebhookUpdate
|
||||
eventDeliveryRetry(id: ID!): EventDeliveryRetry
|
||||
createWarehouse(input: WarehouseCreateInput!): WarehouseCreate
|
||||
updateWarehouse(id: ID!, input: WarehouseUpdateInput!): WarehouseUpdate
|
||||
deleteWarehouse(id: ID!): WarehouseDelete
|
||||
|
@ -7287,6 +7364,7 @@ type Webhook implements Node {
|
|||
syncEvents: [WebhookEventSync!]!
|
||||
asyncEvents: [WebhookEventAsync!]!
|
||||
app: App!
|
||||
eventDeliveries(sortBy: EventDeliverySortingInput, filter: EventDeliveryFilterInput, before: String, after: String, first: Int, last: Int): EventDeliveryCountableConnection
|
||||
}
|
||||
|
||||
type WebhookCreate {
|
||||
|
@ -7360,6 +7438,9 @@ enum WebhookEventTypeAsyncEnum {
|
|||
INVOICE_SENT
|
||||
CUSTOMER_CREATED
|
||||
CUSTOMER_UPDATED
|
||||
COLLECTION_CREATED
|
||||
COLLECTION_UPDATED
|
||||
COLLECTION_DELETED
|
||||
PRODUCT_CREATED
|
||||
PRODUCT_UPDATED
|
||||
PRODUCT_DELETED
|
||||
|
@ -7399,6 +7480,9 @@ enum WebhookEventTypeEnum {
|
|||
INVOICE_SENT
|
||||
CUSTOMER_CREATED
|
||||
CUSTOMER_UPDATED
|
||||
COLLECTION_CREATED
|
||||
COLLECTION_UPDATED
|
||||
COLLECTION_DELETED
|
||||
PRODUCT_CREATED
|
||||
PRODUCT_UPDATED
|
||||
PRODUCT_DELETED
|
||||
|
@ -7415,6 +7499,8 @@ enum WebhookEventTypeEnum {
|
|||
PAGE_CREATED
|
||||
PAGE_UPDATED
|
||||
PAGE_DELETED
|
||||
TRANSLATION_CREATED
|
||||
TRANSLATION_UPDATED
|
||||
PAYMENT_AUTHORIZE
|
||||
PAYMENT_CAPTURE
|
||||
PAYMENT_CONFIRM
|
||||
|
@ -7423,8 +7509,6 @@ enum WebhookEventTypeEnum {
|
|||
PAYMENT_REFUND
|
||||
PAYMENT_VOID
|
||||
SHIPPING_LIST_METHODS_FOR_CHECKOUT
|
||||
TRANSLATION_CREATED
|
||||
TRANSLATION_UPDATED
|
||||
}
|
||||
|
||||
enum WebhookEventTypeSyncEnum {
|
||||
|
@ -7456,6 +7540,9 @@ enum WebhookSampleEventTypeEnum {
|
|||
INVOICE_SENT
|
||||
CUSTOMER_CREATED
|
||||
CUSTOMER_UPDATED
|
||||
COLLECTION_CREATED
|
||||
COLLECTION_UPDATED
|
||||
COLLECTION_DELETED
|
||||
PRODUCT_CREATED
|
||||
PRODUCT_UPDATED
|
||||
PRODUCT_DELETED
|
||||
|
|
|
@ -1822,6 +1822,9 @@ export enum WebhookEventTypeAsyncEnum {
|
|||
ANY_EVENTS = "ANY_EVENTS",
|
||||
CHECKOUT_CREATED = "CHECKOUT_CREATED",
|
||||
CHECKOUT_UPDATED = "CHECKOUT_UPDATED",
|
||||
COLLECTION_CREATED = "COLLECTION_CREATED",
|
||||
COLLECTION_DELETED = "COLLECTION_DELETED",
|
||||
COLLECTION_UPDATED = "COLLECTION_UPDATED",
|
||||
CUSTOMER_CREATED = "CUSTOMER_CREATED",
|
||||
CUSTOMER_UPDATED = "CUSTOMER_UPDATED",
|
||||
DRAFT_ORDER_CREATED = "DRAFT_ORDER_CREATED",
|
||||
|
@ -1862,6 +1865,9 @@ export enum WebhookEventTypeEnum {
|
|||
CHECKOUT_CREATED = "CHECKOUT_CREATED",
|
||||
CHECKOUT_FILTER_SHIPPING_METHODS = "CHECKOUT_FILTER_SHIPPING_METHODS",
|
||||
CHECKOUT_UPDATED = "CHECKOUT_UPDATED",
|
||||
COLLECTION_CREATED = "COLLECTION_CREATED",
|
||||
COLLECTION_DELETED = "COLLECTION_DELETED",
|
||||
COLLECTION_UPDATED = "COLLECTION_UPDATED",
|
||||
CUSTOMER_CREATED = "CUSTOMER_CREATED",
|
||||
CUSTOMER_UPDATED = "CUSTOMER_UPDATED",
|
||||
DRAFT_ORDER_CREATED = "DRAFT_ORDER_CREATED",
|
||||
|
|
Loading…
Reference in a new issue