12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- import { ChannelCTATypeEnum, EnvironmentId, IEmailBlock, ITemplateVariable, OrganizationId, StepTypeEnum, TemplateVariableTypeEnum } from '../../types';
- import { IActor } from '../messages';
- export type MessageTemplateContentType = 'editor' | 'customHtml';
- export interface IMessageTemplate {
- id?: string;
- _id?: string;
- _environmentId?: EnvironmentId;
- _organizationId?: OrganizationId;
- _creatorId?: string;
- _feedId?: string;
- _layoutId?: string | null;
- _parentId?: string;
- subject?: string;
- name?: string;
- title?: string;
- type: StepTypeEnum;
- contentType?: MessageTemplateContentType;
- content: string | IEmailBlock[];
- variables?: ITemplateVariable[];
- cta?: {
- type: ChannelCTATypeEnum;
- data: {
- url?: string;
- };
- action?: any;
- };
- active?: boolean;
- preheader?: string;
- senderName?: string;
- actor?: IActor;
- createdAt?: string;
- updatedAt?: string;
- }
- export declare const TemplateSystemVariables: string[];
- export declare const SystemVariablesWithTypes: {
- subscriber: {
- firstName: string;
- lastName: string;
- email: string;
- phone: string;
- avatar: string;
- locale: string;
- subscriberId: string;
- };
- actor: {
- firstName: string;
- lastName: string;
- email: string;
- phone: string;
- avatar: string;
- locale: string;
- subscriberId: string;
- };
- step: {
- digest: string;
- events: string;
- total_count: string;
- };
- branding: {
- logo: string;
- color: string;
- };
- tenant: {
- name: string;
- data: string;
- };
- };
- export declare const TriggerReservedVariables: string[];
- export declare const ReservedVariablesMap: {
- tenant: {
- name: string;
- type: TemplateVariableTypeEnum;
- }[];
- actor: {
- name: string;
- type: TemplateVariableTypeEnum;
- }[];
- };
- //# sourceMappingURL=message-template.interface.d.ts.map
|