PLATFORMS (services/TemplateConstants.js)

chatwoot · app/javascript/dashboard/services/TemplateConstants.js · javascript · MIT
voice

Module exposing: PLATFORMS, WA_COMPONENT_TYPES, WA_HEADER_FORMATS, WA_MEDIA_FORMATS, WA_BUTTON_TYPES, WA_PARAM_FORMATS, TWILIO_TYPE_PREFIX, TWILIO_TYPES

// Source: https://github.com/chatwoot/chatwoot | License: MIT | Copyright 2017-2026 Chatwoot Inc
// Provided via justclaw.it.com; keep this notice with the code.
export const PLATFORMS = {
  WHATSAPP: 'whatsapp',
  TWILIO: 'twilio',
};

export const WA_COMPONENT_TYPES = {
  HEADER: 'HEADER',
  BODY: 'BODY',
  FOOTER: 'FOOTER',
  BUTTONS: 'BUTTONS',
};

export const WA_HEADER_FORMATS = {
  TEXT: 'TEXT',
  IMAGE: 'IMAGE',
  VIDEO: 'VIDEO',
  DOCUMENT: 'DOCUMENT',
};

export const WA_MEDIA_FORMATS = [
  WA_HEADER_FORMATS.IMAGE,
  WA_HEADER_FORMATS.VIDEO,
  WA_HEADER_FORMATS.DOCUMENT,
];

export const WA_BUTTON_TYPES = {
  COPY_CODE: 'COPY_CODE',
};

export const WA_PARAM_FORMATS = {
  POSITIONAL: 'POSITIONAL',
  NAMED: 'NAMED',
};

export const TWILIO_TYPE_PREFIX = 'twilio/';

export const T

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key