Add translation webhook events (#1273)

This commit is contained in:
Marcin Gębala 2021-08-05 11:26:17 +02:00 committed by GitHub
parent 79e752cdbf
commit 19b0a9623e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 566 additions and 7 deletions

View file

@ -7257,6 +7257,10 @@
"context": "event", "context": "event",
"string": "Order created" "string": "Order created"
}, },
"src_dot_webhooks_dot_components_dot_WebhookEvents_dot_36047288": {
"context": "event",
"string": "Translation created"
},
"src_dot_webhooks_dot_components_dot_WebhookEvents_dot_3617444329": { "src_dot_webhooks_dot_components_dot_WebhookEvents_dot_3617444329": {
"context": "event", "context": "event",
"string": "Order cancelled" "string": "Order cancelled"
@ -7297,6 +7301,10 @@
"context": "event", "context": "event",
"string": "Process payment" "string": "Process payment"
}, },
"src_dot_webhooks_dot_components_dot_WebhookEvents_dot_482477254": {
"context": "event",
"string": "Translation updated"
},
"src_dot_webhooks_dot_components_dot_WebhookEvents_dot_679080833": { "src_dot_webhooks_dot_components_dot_WebhookEvents_dot_679080833": {
"context": "event", "context": "event",
"string": "Page created" "string": "Page created"

View file

@ -421,6 +421,7 @@ type Attribute implements Node & ObjectWithMetadata {
availableInGrid: Boolean! availableInGrid: Boolean!
translation(languageCode: LanguageCodeEnum!): AttributeTranslation translation(languageCode: LanguageCodeEnum!): AttributeTranslation
storefrontSearchPosition: Int! storefrontSearchPosition: Int!
withChoices: Boolean!
} }
type AttributeBulkDelete { type AttributeBulkDelete {
@ -512,6 +513,7 @@ input AttributeFilterInput {
type: AttributeTypeEnum type: AttributeTypeEnum
inCollection: ID inCollection: ID
inCategory: ID inCategory: ID
channel: String
} }
input AttributeInput { input AttributeInput {
@ -674,6 +676,7 @@ input AttributeValueInput {
type AttributeValueTranslatableContent implements Node { type AttributeValueTranslatableContent implements Node {
id: ID! id: ID!
name: String! name: String!
richText: JSONString
translation(languageCode: LanguageCodeEnum!): AttributeValueTranslation translation(languageCode: LanguageCodeEnum!): AttributeValueTranslation
attributeValue: AttributeValue @deprecated(reason: "Will be removed in Saleor 4.0. Get model fields from the root level.") attributeValue: AttributeValue @deprecated(reason: "Will be removed in Saleor 4.0. Get model fields from the root level.")
} }
@ -806,6 +809,7 @@ enum CategorySortField {
input CategorySortingInput { input CategorySortingInput {
direction: OrderDirection! direction: OrderDirection!
channel: String
field: CategorySortField! field: CategorySortField!
} }
@ -1239,6 +1243,7 @@ input CollectionFilterInput {
search: String search: String
metadata: [MetadataFilter] metadata: [MetadataFilter]
ids: [ID] ids: [ID]
channel: String
} }
input CollectionInput { input CollectionInput {
@ -1278,6 +1283,7 @@ enum CollectionSortField {
input CollectionSortingInput { input CollectionSortingInput {
direction: OrderDirection! direction: OrderDirection!
channel: String
field: CollectionSortField! field: CollectionSortField!
} }
@ -1648,6 +1654,7 @@ type CustomerEvent implements Node {
date: DateTime date: DateTime
type: CustomerEventsEnum type: CustomerEventsEnum
user: User user: User
app: App
message: String message: String
count: Int count: Int
order: Order order: Order
@ -3193,6 +3200,7 @@ type OrderEvent implements Node {
date: DateTime date: DateTime
type: OrderEventsEnum type: OrderEventsEnum
user: User user: User
app: App
message: String message: String
email: String email: String
emailType: OrderEventsEmailsEnum emailType: OrderEventsEmailsEnum
@ -3684,6 +3692,7 @@ type PageTranslatableContent implements Node {
contentJson: JSONString @deprecated(reason: "Will be removed in Saleor 4.0. Use the `content` field instead.") contentJson: JSONString @deprecated(reason: "Will be removed in Saleor 4.0. Use the `content` field instead.")
translation(languageCode: LanguageCodeEnum!): PageTranslation translation(languageCode: LanguageCodeEnum!): PageTranslation
page: Page @deprecated(reason: "Will be removed in Saleor 4.0. Get model fields from the root level.") page: Page @deprecated(reason: "Will be removed in Saleor 4.0. Get model fields from the root level.")
attributeValues: [AttributeValueTranslatableContent!]!
} }
type PageTranslate { type PageTranslate {
@ -3909,6 +3918,7 @@ type PaymentRefund {
type PaymentSource { type PaymentSource {
gateway: String! gateway: String!
paymentMethodId: String
creditCardInfo: CreditCard creditCardInfo: CreditCard
} }
@ -4299,6 +4309,7 @@ input ProductFilterInput {
minimalPrice: PriceRangeInput minimalPrice: PriceRangeInput
productTypes: [ID] productTypes: [ID]
ids: [ID] ids: [ID]
channel: String
} }
type ProductImage { type ProductImage {
@ -4383,6 +4394,7 @@ input ProductMediaUpdateInput {
input ProductOrder { input ProductOrder {
direction: OrderDirection! direction: OrderDirection!
channel: String
attributeId: ID attributeId: ID
field: ProductOrderField field: ProductOrderField
} }
@ -4429,6 +4441,7 @@ type ProductTranslatableContent implements Node {
descriptionJson: JSONString @deprecated(reason: "Will be removed in Saleor 4.0. Use the `description` field instead.") descriptionJson: JSONString @deprecated(reason: "Will be removed in Saleor 4.0. Use the `description` field instead.")
translation(languageCode: LanguageCodeEnum!): ProductTranslation translation(languageCode: LanguageCodeEnum!): ProductTranslation
product: Product @deprecated(reason: "Will be removed in Saleor 4.0. Get model fields from the root level.") product: Product @deprecated(reason: "Will be removed in Saleor 4.0. Get model fields from the root level.")
attributeValues: [AttributeValueTranslatableContent!]!
} }
type ProductTranslate { type ProductTranslate {
@ -4703,6 +4716,7 @@ type ProductVariantTranslatableContent implements Node {
name: String! name: String!
translation(languageCode: LanguageCodeEnum!): ProductVariantTranslation translation(languageCode: LanguageCodeEnum!): ProductVariantTranslation
productVariant: ProductVariant @deprecated(reason: "Will be removed in Saleor 4.0. Get model fields from the root level.") productVariant: ProductVariant @deprecated(reason: "Will be removed in Saleor 4.0. Get model fields from the root level.")
attributeValues: [AttributeValueTranslatableContent!]!
} }
type ProductVariantTranslate { type ProductVariantTranslate {
@ -4785,7 +4799,6 @@ type Query {
taxTypes: [TaxType] taxTypes: [TaxType]
checkout(token: UUID): Checkout checkout(token: UUID): Checkout
checkouts(channel: String, before: String, after: String, first: Int, last: Int): CheckoutCountableConnection checkouts(channel: String, before: String, after: String, first: Int, last: Int): CheckoutCountableConnection
checkoutLine(id: ID): CheckoutLine
checkoutLines(before: String, after: String, first: Int, last: Int): CheckoutLineCountableConnection checkoutLines(before: String, after: String, first: Int, last: Int): CheckoutLineCountableConnection
channel(id: ID): Channel channel(id: ID): Channel
channels: [Channel!] channels: [Channel!]
@ -4919,6 +4932,7 @@ input SaleFilterInput {
saleType: DiscountValueTypeEnum saleType: DiscountValueTypeEnum
started: DateTimeRangeInput started: DateTimeRangeInput
search: String search: String
metadata: [MetadataFilter]
} }
input SaleInput { input SaleInput {
@ -4948,6 +4962,7 @@ enum SaleSortField {
input SaleSortingInput { input SaleSortingInput {
direction: OrderDirection! direction: OrderDirection!
channel: String
field: SaleSortField! field: SaleSortField!
} }
@ -5858,6 +5873,7 @@ input VoucherFilterInput {
discountType: [VoucherDiscountType] discountType: [VoucherDiscountType]
started: DateTimeRangeInput started: DateTimeRangeInput
search: String search: String
metadata: [MetadataFilter]
} }
input VoucherInput { input VoucherInput {
@ -5896,6 +5912,7 @@ enum VoucherSortField {
input VoucherSortingInput { input VoucherSortingInput {
direction: OrderDirection! direction: OrderDirection!
channel: String
field: VoucherSortField! field: VoucherSortField!
} }
@ -6110,6 +6127,8 @@ enum WebhookEventTypeEnum {
PAYMENT_PROCESS PAYMENT_PROCESS
PAYMENT_REFUND PAYMENT_REFUND
PAYMENT_VOID PAYMENT_VOID
TRANSLATION_CREATED
TRANSLATION_UPDATED
} }
enum WebhookSampleEventTypeEnum { enum WebhookSampleEventTypeEnum {
@ -6144,6 +6163,8 @@ enum WebhookSampleEventTypeEnum {
PAYMENT_PROCESS PAYMENT_PROCESS
PAYMENT_REFUND PAYMENT_REFUND
PAYMENT_VOID PAYMENT_VOID
TRANSLATION_CREATED
TRANSLATION_UPDATED
} }
type WebhookUpdate { type WebhookUpdate {
@ -6178,7 +6199,7 @@ enum WeightUnitsEnum {
scalar _Any scalar _Any
union _Entity = Address | User | Group | App | ProductVariant | Product | ProductType | Collection | Category | ProductMedia | ProductImage | PageType union _Entity = App | Address | User | Group | ProductVariant | Product | ProductType | Collection | Category | ProductMedia | ProductImage | PageType
type _Service { type _Service {
sdl: String sdl: String

View file

@ -26337,6 +26337,78 @@ exports[`Storyshots Views / Apps / Webhooks / Create webhook default 1`] = `
</span> </span>
</label> </label>
</div> </div>
<div>
<label
class="MuiFormControlLabel-root-id"
>
<span
aria-disabled="false"
class="MuiButtonBase-root-id MuiIconButton-root-id PrivateSwitchBase-root-id MuiCheckbox-root-id MuiCheckbox-colorPrimary-id MuiIconButton-colorPrimary-id"
>
<span
class="MuiIconButton-label-id"
>
<input
class="PrivateSwitchBase-input-id"
data-indeterminate="false"
name="TRANSLATION_CREATED"
type="checkbox"
/>
<svg
aria-hidden="true"
class="MuiSvgIcon-root-id"
focusable="false"
viewBox="0 0 24 24"
>
<path
d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"
/>
</svg>
</span>
</span>
<span
class="MuiTypography-root-id MuiFormControlLabel-label-id MuiTypography-body1-id"
>
Translation created
</span>
</label>
</div>
<div>
<label
class="MuiFormControlLabel-root-id"
>
<span
aria-disabled="false"
class="MuiButtonBase-root-id MuiIconButton-root-id PrivateSwitchBase-root-id MuiCheckbox-root-id MuiCheckbox-colorPrimary-id MuiIconButton-colorPrimary-id"
>
<span
class="MuiIconButton-label-id"
>
<input
class="PrivateSwitchBase-input-id"
data-indeterminate="false"
name="TRANSLATION_UPDATED"
type="checkbox"
/>
<svg
aria-hidden="true"
class="MuiSvgIcon-root-id"
focusable="false"
viewBox="0 0 24 24"
>
<path
d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"
/>
</svg>
</span>
</span>
<span
class="MuiTypography-root-id MuiFormControlLabel-label-id MuiTypography-body1-id"
>
Translation updated
</span>
</label>
</div>
</div> </div>
</div> </div>
<div <div
@ -27792,6 +27864,78 @@ exports[`Storyshots Views / Apps / Webhooks / Create webhook form errors 1`] = `
</span> </span>
</label> </label>
</div> </div>
<div>
<label
class="MuiFormControlLabel-root-id"
>
<span
aria-disabled="false"
class="MuiButtonBase-root-id MuiIconButton-root-id PrivateSwitchBase-root-id MuiCheckbox-root-id MuiCheckbox-colorPrimary-id MuiIconButton-colorPrimary-id"
>
<span
class="MuiIconButton-label-id"
>
<input
class="PrivateSwitchBase-input-id"
data-indeterminate="false"
name="TRANSLATION_CREATED"
type="checkbox"
/>
<svg
aria-hidden="true"
class="MuiSvgIcon-root-id"
focusable="false"
viewBox="0 0 24 24"
>
<path
d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"
/>
</svg>
</span>
</span>
<span
class="MuiTypography-root-id MuiFormControlLabel-label-id MuiTypography-body1-id"
>
Translation created
</span>
</label>
</div>
<div>
<label
class="MuiFormControlLabel-root-id"
>
<span
aria-disabled="false"
class="MuiButtonBase-root-id MuiIconButton-root-id PrivateSwitchBase-root-id MuiCheckbox-root-id MuiCheckbox-colorPrimary-id MuiIconButton-colorPrimary-id"
>
<span
class="MuiIconButton-label-id"
>
<input
class="PrivateSwitchBase-input-id"
data-indeterminate="false"
name="TRANSLATION_UPDATED"
type="checkbox"
/>
<svg
aria-hidden="true"
class="MuiSvgIcon-root-id"
focusable="false"
viewBox="0 0 24 24"
>
<path
d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"
/>
</svg>
</span>
</span>
<span
class="MuiTypography-root-id MuiFormControlLabel-label-id MuiTypography-body1-id"
>
Translation updated
</span>
</label>
</div>
</div> </div>
</div> </div>
<div <div
@ -29309,6 +29453,82 @@ exports[`Storyshots Views / Apps / Webhooks / Create webhook loading 1`] = `
</span> </span>
</label> </label>
</div> </div>
<div>
<label
class="MuiFormControlLabel-root-id MuiFormControlLabel-disabled-id"
>
<span
aria-disabled="true"
class="MuiButtonBase-root-id MuiIconButton-root-id PrivateSwitchBase-root-id MuiCheckbox-root-id MuiCheckbox-colorPrimary-id PrivateSwitchBase-disabled-id MuiCheckbox-disabled-id MuiIconButton-colorPrimary-id MuiIconButton-disabled-id MuiButtonBase-disabled-id"
tabindex="-1"
>
<span
class="MuiIconButton-label-id"
>
<input
class="PrivateSwitchBase-input-id"
data-indeterminate="false"
disabled=""
name="TRANSLATION_CREATED"
type="checkbox"
/>
<svg
aria-hidden="true"
class="MuiSvgIcon-root-id"
focusable="false"
viewBox="0 0 24 24"
>
<path
d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"
/>
</svg>
</span>
</span>
<span
class="MuiTypography-root-id MuiFormControlLabel-label-id MuiFormControlLabel-disabled-id MuiTypography-body1-id"
>
Translation created
</span>
</label>
</div>
<div>
<label
class="MuiFormControlLabel-root-id MuiFormControlLabel-disabled-id"
>
<span
aria-disabled="true"
class="MuiButtonBase-root-id MuiIconButton-root-id PrivateSwitchBase-root-id MuiCheckbox-root-id MuiCheckbox-colorPrimary-id PrivateSwitchBase-disabled-id MuiCheckbox-disabled-id MuiIconButton-colorPrimary-id MuiIconButton-disabled-id MuiButtonBase-disabled-id"
tabindex="-1"
>
<span
class="MuiIconButton-label-id"
>
<input
class="PrivateSwitchBase-input-id"
data-indeterminate="false"
disabled=""
name="TRANSLATION_UPDATED"
type="checkbox"
/>
<svg
aria-hidden="true"
class="MuiSvgIcon-root-id"
focusable="false"
viewBox="0 0 24 24"
>
<path
d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"
/>
</svg>
</span>
</span>
<span
class="MuiTypography-root-id MuiFormControlLabel-label-id MuiFormControlLabel-disabled-id MuiTypography-body1-id"
>
Translation updated
</span>
</label>
</div>
</div> </div>
</div> </div>
<div <div
@ -30773,6 +30993,78 @@ exports[`Storyshots Views / Apps / Webhooks / Webhook details default 1`] = `
</span> </span>
</label> </label>
</div> </div>
<div>
<label
class="MuiFormControlLabel-root-id"
>
<span
aria-disabled="false"
class="MuiButtonBase-root-id MuiIconButton-root-id PrivateSwitchBase-root-id MuiCheckbox-root-id MuiCheckbox-colorPrimary-id MuiIconButton-colorPrimary-id"
>
<span
class="MuiIconButton-label-id"
>
<input
class="PrivateSwitchBase-input-id"
data-indeterminate="false"
name="TRANSLATION_CREATED"
type="checkbox"
/>
<svg
aria-hidden="true"
class="MuiSvgIcon-root-id"
focusable="false"
viewBox="0 0 24 24"
>
<path
d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"
/>
</svg>
</span>
</span>
<span
class="MuiTypography-root-id MuiFormControlLabel-label-id MuiTypography-body1-id"
>
Translation created
</span>
</label>
</div>
<div>
<label
class="MuiFormControlLabel-root-id"
>
<span
aria-disabled="false"
class="MuiButtonBase-root-id MuiIconButton-root-id PrivateSwitchBase-root-id MuiCheckbox-root-id MuiCheckbox-colorPrimary-id MuiIconButton-colorPrimary-id"
>
<span
class="MuiIconButton-label-id"
>
<input
class="PrivateSwitchBase-input-id"
data-indeterminate="false"
name="TRANSLATION_UPDATED"
type="checkbox"
/>
<svg
aria-hidden="true"
class="MuiSvgIcon-root-id"
focusable="false"
viewBox="0 0 24 24"
>
<path
d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"
/>
</svg>
</span>
</span>
<span
class="MuiTypography-root-id MuiFormControlLabel-label-id MuiTypography-body1-id"
>
Translation updated
</span>
</label>
</div>
</div> </div>
</div> </div>
<div <div
@ -32229,6 +32521,78 @@ exports[`Storyshots Views / Apps / Webhooks / Webhook details form errors 1`] =
</span> </span>
</label> </label>
</div> </div>
<div>
<label
class="MuiFormControlLabel-root-id"
>
<span
aria-disabled="false"
class="MuiButtonBase-root-id MuiIconButton-root-id PrivateSwitchBase-root-id MuiCheckbox-root-id MuiCheckbox-colorPrimary-id MuiIconButton-colorPrimary-id"
>
<span
class="MuiIconButton-label-id"
>
<input
class="PrivateSwitchBase-input-id"
data-indeterminate="false"
name="TRANSLATION_CREATED"
type="checkbox"
/>
<svg
aria-hidden="true"
class="MuiSvgIcon-root-id"
focusable="false"
viewBox="0 0 24 24"
>
<path
d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"
/>
</svg>
</span>
</span>
<span
class="MuiTypography-root-id MuiFormControlLabel-label-id MuiTypography-body1-id"
>
Translation created
</span>
</label>
</div>
<div>
<label
class="MuiFormControlLabel-root-id"
>
<span
aria-disabled="false"
class="MuiButtonBase-root-id MuiIconButton-root-id PrivateSwitchBase-root-id MuiCheckbox-root-id MuiCheckbox-colorPrimary-id MuiIconButton-colorPrimary-id"
>
<span
class="MuiIconButton-label-id"
>
<input
class="PrivateSwitchBase-input-id"
data-indeterminate="false"
name="TRANSLATION_UPDATED"
type="checkbox"
/>
<svg
aria-hidden="true"
class="MuiSvgIcon-root-id"
focusable="false"
viewBox="0 0 24 24"
>
<path
d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"
/>
</svg>
</span>
</span>
<span
class="MuiTypography-root-id MuiFormControlLabel-label-id MuiTypography-body1-id"
>
Translation updated
</span>
</label>
</div>
</div> </div>
</div> </div>
<div <div
@ -33747,6 +34111,82 @@ exports[`Storyshots Views / Apps / Webhooks / Webhook details loading 1`] = `
</span> </span>
</label> </label>
</div> </div>
<div>
<label
class="MuiFormControlLabel-root-id MuiFormControlLabel-disabled-id"
>
<span
aria-disabled="true"
class="MuiButtonBase-root-id MuiIconButton-root-id PrivateSwitchBase-root-id MuiCheckbox-root-id MuiCheckbox-colorPrimary-id PrivateSwitchBase-disabled-id MuiCheckbox-disabled-id MuiIconButton-colorPrimary-id MuiIconButton-disabled-id MuiButtonBase-disabled-id"
tabindex="-1"
>
<span
class="MuiIconButton-label-id"
>
<input
class="PrivateSwitchBase-input-id"
data-indeterminate="false"
disabled=""
name="TRANSLATION_CREATED"
type="checkbox"
/>
<svg
aria-hidden="true"
class="MuiSvgIcon-root-id"
focusable="false"
viewBox="0 0 24 24"
>
<path
d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"
/>
</svg>
</span>
</span>
<span
class="MuiTypography-root-id MuiFormControlLabel-label-id MuiFormControlLabel-disabled-id MuiTypography-body1-id"
>
Translation created
</span>
</label>
</div>
<div>
<label
class="MuiFormControlLabel-root-id MuiFormControlLabel-disabled-id"
>
<span
aria-disabled="true"
class="MuiButtonBase-root-id MuiIconButton-root-id PrivateSwitchBase-root-id MuiCheckbox-root-id MuiCheckbox-colorPrimary-id PrivateSwitchBase-disabled-id MuiCheckbox-disabled-id MuiIconButton-colorPrimary-id MuiIconButton-disabled-id MuiButtonBase-disabled-id"
tabindex="-1"
>
<span
class="MuiIconButton-label-id"
>
<input
class="PrivateSwitchBase-input-id"
data-indeterminate="false"
disabled=""
name="TRANSLATION_UPDATED"
type="checkbox"
/>
<svg
aria-hidden="true"
class="MuiSvgIcon-root-id"
focusable="false"
viewBox="0 0 24 24"
>
<path
d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"
/>
</svg>
</span>
</span>
<span
class="MuiTypography-root-id MuiFormControlLabel-label-id MuiFormControlLabel-disabled-id MuiTypography-body1-id"
>
Translation updated
</span>
</label>
</div>
</div> </div>
</div> </div>
<div <div
@ -35199,6 +35639,78 @@ exports[`Storyshots Views / Apps / Webhooks / Webhook details unnamed 1`] = `
</span> </span>
</label> </label>
</div> </div>
<div>
<label
class="MuiFormControlLabel-root-id"
>
<span
aria-disabled="false"
class="MuiButtonBase-root-id MuiIconButton-root-id PrivateSwitchBase-root-id MuiCheckbox-root-id MuiCheckbox-colorPrimary-id MuiIconButton-colorPrimary-id"
>
<span
class="MuiIconButton-label-id"
>
<input
class="PrivateSwitchBase-input-id"
data-indeterminate="false"
name="TRANSLATION_CREATED"
type="checkbox"
/>
<svg
aria-hidden="true"
class="MuiSvgIcon-root-id"
focusable="false"
viewBox="0 0 24 24"
>
<path
d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"
/>
</svg>
</span>
</span>
<span
class="MuiTypography-root-id MuiFormControlLabel-label-id MuiTypography-body1-id"
>
Translation created
</span>
</label>
</div>
<div>
<label
class="MuiFormControlLabel-root-id"
>
<span
aria-disabled="false"
class="MuiButtonBase-root-id MuiIconButton-root-id PrivateSwitchBase-root-id MuiCheckbox-root-id MuiCheckbox-colorPrimary-id MuiIconButton-colorPrimary-id"
>
<span
class="MuiIconButton-label-id"
>
<input
class="PrivateSwitchBase-input-id"
data-indeterminate="false"
name="TRANSLATION_UPDATED"
type="checkbox"
/>
<svg
aria-hidden="true"
class="MuiSvgIcon-root-id"
focusable="false"
viewBox="0 0 24 24"
>
<path
d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"
/>
</svg>
</span>
</span>
<span
class="MuiTypography-root-id MuiFormControlLabel-label-id MuiTypography-body1-id"
>
Translation updated
</span>
</label>
</div>
</div> </div>
</div> </div>
<div <div

View file

@ -1044,6 +1044,8 @@ export enum WebhookEventTypeEnum {
PRODUCT_VARIANT_CREATED = "PRODUCT_VARIANT_CREATED", PRODUCT_VARIANT_CREATED = "PRODUCT_VARIANT_CREATED",
PRODUCT_VARIANT_DELETED = "PRODUCT_VARIANT_DELETED", PRODUCT_VARIANT_DELETED = "PRODUCT_VARIANT_DELETED",
PRODUCT_VARIANT_UPDATED = "PRODUCT_VARIANT_UPDATED", PRODUCT_VARIANT_UPDATED = "PRODUCT_VARIANT_UPDATED",
TRANSLATION_CREATED = "TRANSLATION_CREATED",
TRANSLATION_UPDATED = "TRANSLATION_UPDATED",
} }
export enum WeightUnitsEnum { export enum WeightUnitsEnum {
@ -1126,16 +1128,15 @@ export interface AttributeFilterInput {
type?: AttributeTypeEnum | null; type?: AttributeTypeEnum | null;
inCollection?: string | null; inCollection?: string | null;
inCategory?: string | null; inCategory?: string | null;
channel?: string | null;
} }
export interface AttributeInput { export interface AttributeInput {
slug: string; slug: string;
values?: (string | null)[] | null; values?: (string | null)[] | null;
valuesRange?: IntRangeInput | null; valuesRange?: IntRangeInput | null;
dateTimeRange?: DateTimeRangeInput | null; dateTime?: DateTimeRangeInput | null;
dateRange?: DateRangeInput | null; date?: DateRangeInput | null;
dateTime?: any | null;
date?: any | null;
boolean?: boolean | null; boolean?: boolean | null;
} }
@ -1184,7 +1185,7 @@ export interface AttributeValueTranslationInput {
export interface BulkAttributeValueInput { export interface BulkAttributeValueInput {
id?: string | null; id?: string | null;
values?: (string | null)[] | null; values?: string[] | null;
boolean?: boolean | null; boolean?: boolean | null;
} }
@ -1211,6 +1212,7 @@ export interface CategoryInput {
export interface CategorySortingInput { export interface CategorySortingInput {
direction: OrderDirection; direction: OrderDirection;
channel?: string | null;
field: CategorySortField; field: CategorySortField;
} }
@ -1256,6 +1258,7 @@ export interface CollectionFilterInput {
search?: string | null; search?: string | null;
metadata?: (MetadataFilter | null)[] | null; metadata?: (MetadataFilter | null)[] | null;
ids?: (string | null)[] | null; ids?: (string | null)[] | null;
channel?: string | null;
} }
export interface CollectionInput { export interface CollectionInput {
@ -1271,6 +1274,7 @@ export interface CollectionInput {
export interface CollectionSortingInput { export interface CollectionSortingInput {
direction: OrderDirection; direction: OrderDirection;
channel?: string | null;
field: CollectionSortField; field: CollectionSortField;
} }
@ -1682,6 +1686,7 @@ export interface ProductFilterInput {
minimalPrice?: PriceRangeInput | null; minimalPrice?: PriceRangeInput | null;
productTypes?: (string | null)[] | null; productTypes?: (string | null)[] | null;
ids?: (string | null)[] | null; ids?: (string | null)[] | null;
channel?: string | null;
} }
export interface ProductInput { export interface ProductInput {
@ -1700,6 +1705,7 @@ export interface ProductInput {
export interface ProductOrder { export interface ProductOrder {
direction: OrderDirection; direction: OrderDirection;
channel?: string | null;
attributeId?: string | null; attributeId?: string | null;
field?: ProductOrderField | null; field?: ProductOrderField | null;
} }
@ -1791,6 +1797,7 @@ export interface SaleFilterInput {
saleType?: DiscountValueTypeEnum | null; saleType?: DiscountValueTypeEnum | null;
started?: DateTimeRangeInput | null; started?: DateTimeRangeInput | null;
search?: string | null; search?: string | null;
metadata?: (MetadataFilter | null)[] | null;
} }
export interface SaleInput { export interface SaleInput {
@ -1806,6 +1813,7 @@ export interface SaleInput {
export interface SaleSortingInput { export interface SaleSortingInput {
direction: OrderDirection; direction: OrderDirection;
channel?: string | null;
field: SaleSortField; field: SaleSortField;
} }
@ -1972,6 +1980,7 @@ export interface VoucherFilterInput {
discountType?: (VoucherDiscountType | null)[] | null; discountType?: (VoucherDiscountType | null)[] | null;
started?: DateTimeRangeInput | null; started?: DateTimeRangeInput | null;
search?: string | null; search?: string | null;
metadata?: (MetadataFilter | null)[] | null;
} }
export interface VoucherInput { export interface VoucherInput {
@ -1994,6 +2003,7 @@ export interface VoucherInput {
export interface VoucherSortingInput { export interface VoucherSortingInput {
direction: OrderDirection; direction: OrderDirection;
channel?: string | null;
field: VoucherSortField; field: VoucherSortField;
} }

View file

@ -173,6 +173,14 @@ const WebhookEvents: React.FC<WebhookEventsProps> = ({
[WebhookEventTypeEnum.NOTIFY_USER]: intl.formatMessage({ [WebhookEventTypeEnum.NOTIFY_USER]: intl.formatMessage({
defaultMessage: "User notified", defaultMessage: "User notified",
description: "event" description: "event"
}),
[WebhookEventTypeEnum.TRANSLATION_CREATED]: intl.formatMessage({
defaultMessage: "Translation created",
description: "event"
}),
[WebhookEventTypeEnum.TRANSLATION_UPDATED]: intl.formatMessage({
defaultMessage: "Translation updated",
description: "event"
}) })
}; };