/
githubmirror
/
novu
Обзор
Документация
Войти
/
githubmirror
/
novu
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
next
libs/testing/src/create-notification-template.interface.ts
57 строк
1 KB
Adam Chmara
chore(root): apply biome formatter & linter fixes NV-6436 (#8838)
31 июл 2025, 14:59
Не верифицирован
31 июл 2025, 14:59
855fb8f
Код
Авторство
О чём код?
import { NotificationTemplateEntity, StepFilter } from '@novu/dal'; import { ActorTypeEnum, DelayTypeEnum, DigestTypeEnum, DigestUnitEnum, IEmailBlock, IPreferenceChannels, ITemplateVariable, StepTypeEnum, } from '@novu/shared'; interface IVariant { cta?: {}; uuid?: string; active?: boolean; subject?: string; title?: string; contentType?: 'editor' | 'customHtml'; preheader?: string; filters?: StepFilter[]; content: string | IEmailBlock[]; variables?: ITemplateVariable[]; name?: string; type: StepTypeEnum; replyCallback?: { active: boolean; url: string; }; metadata?: { amount?: number; unit?: DigestUnitEnum; digestKey?: string; type: DigestTypeEnum | DelayTypeEnum; backoff?: boolean; delayPath?: string; backoffUnit?: DigestUnitEnum; backoffAmount?: number; updateMode?: boolean; }; actor?: { type: ActorTypeEnum; data: string | null; }; } interface IStep extends IVariant { variants?: IStep[]; } export interface CreateTemplatePayload extends Omit<NotificationTemplateEntity, 'steps'> { noFeedId?: boolean; noLayoutId?: boolean; noGroupId?: boolean; preferenceSettingsOverride?: IPreferenceChannels; steps: IStep[]; }