feat(editor): ✨ Add Zapier step
This commit is contained in:
@ -5,6 +5,7 @@ export type IntegrationStep =
|
||||
| GoogleAnalyticsStep
|
||||
| WebhookStep
|
||||
| SendEmailStep
|
||||
| ZapierStep
|
||||
|
||||
export type IntegrationStepOptions =
|
||||
| GoogleSheetsOptions
|
||||
@ -17,6 +18,7 @@ export enum IntegrationStepType {
|
||||
GOOGLE_ANALYTICS = 'Google Analytics',
|
||||
WEBHOOK = 'Webhook',
|
||||
EMAIL = 'Email',
|
||||
ZAPIER = 'Zapier',
|
||||
}
|
||||
|
||||
export type GoogleSheetsStep = StepBase & {
|
||||
@ -35,6 +37,10 @@ export type WebhookStep = StepBase & {
|
||||
webhook: Webhook
|
||||
}
|
||||
|
||||
export type ZapierStep = Omit<WebhookStep, 'type'> & {
|
||||
type: IntegrationStepType.ZAPIER
|
||||
}
|
||||
|
||||
export type SendEmailStep = StepBase & {
|
||||
type: IntegrationStepType.EMAIL
|
||||
options: SendEmailOptions
|
||||
|
Reference in New Issue
Block a user