import type { ConsentStatus } from './ConsentStatus'; import type { ChannelType } from './ChannelType'; import type { ConsentSubscriptionError } from './ConsentSubscriptionError'; /** * @type ConsentSubscriptionResult: Individual subscription update result with input parameters * * @property subscriptionId: Identifier for the communication subscription * - **Pattern:** /^[a-z0-9]+(?:-[a-z0-9]+)*$/ * - **Min Length:** 1 * - **Max Length:** 255 * * @property channel: * * @property contactPointValue: The customer\'s contact point value, polymorphic based on the channel type as below: - `sms` - Subject\'s phone number in E.164 format, ex: `+1 424 535 3546` - `email` - Subject\'s email address in RFC 5321 & RFC 5322 format, ex: `jack.sparrow@salesforce.com` * - **Min Length:** 3 * - **Max Length:** 320 * * @property status: * * @property success: Whether the subscription update was successful * * @property error: Error details (present when success is false) * */ export type ConsentSubscriptionResult = { subscriptionId: string; channel: ChannelType; contactPointValue: string; status: ConsentStatus; success: boolean; error?: ConsentSubscriptionError; } & { [key: string]: any; };