import { UpdateSubscriberPreferenceResponseDto } from "@novu/api/models/components";
let value: UpdateSubscriberPreferenceResponseDto = {
template: {
id: "<id>",
name: "<value>",
critical: false,
triggers: [
{
type: "event",
identifier: "<value>",
variables: [
{
name: "<value>",
},
],
},
],
},
preference: {
enabled: false,
channels: {},
},
};
Field | Type | Required | Description |
---|---|---|---|
template |
components.TemplateResponse | ✔️ | The workflow information and if it is critical or not |
preference |
components.Preference | ✔️ | The preferences of the subscriber regarding the related workflow |