Example Usage

import { CustomMessageCreateRequest } from "syllable-sdk/models/components";

let value: CustomMessageCreateRequest = {
  name: "<value>",
  text: "<value>",
  rules: [
    {
      description: "rotating than optimistic as by summer horde",
      timeRangeStart: "09:00",
      timeRangeEnd: "17:00",
      date: "2025-01-01",
      daysOfWeek: [
        "mo",
        "tu",
        "we",
        "th",
        "fr",
      ],
      invert: false,
      text: "Sorry, we're closed today",
    },
  ],
};

Fields

FieldTypeRequiredDescription
namestringTRUEThe name of the custom message
textstringTRUEThe text of the custom message
labelstringFALSEThe label of the custom message
rulescomponents.CustomMessageRule[]FALSERules for time-specific message variants
typestringFALSEN/A