n8n-nodes-base
Version:
Base nodes of n8n
52 lines (47 loc) • 1.54 kB
text/typescript
/**
* Pushcut Node - Version 1
* Discriminator: resource=notification, operation=send
*/
interface Credentials {
pushcutApi: CredentialReference;
}
/** Send a notification */
export type PushcutV1NotificationSendParams = {
resource: 'notification';
operation: 'send';
/**
* Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>
*/
notificationName?: string | Expression<string>;
/**
* Additional Fields
* @default {}
*/
additionalFields?: {
/** List of devices this notification is sent to. (default is all devices). Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.
* @default []
*/
devices?: string[];
/** Value that is passed as input to the notification action
*/
input?: string | Expression<string> | PlaceholderValue;
/** Text that is used instead of the one defined in the app
*/
text?: string | Expression<string> | PlaceholderValue;
/** Title that is used instead of the one defined in the app
*/
title?: string | Expression<string> | PlaceholderValue;
};
};
export type PushcutV1NotificationSendOutput = {
id?: string;
message?: string;
notificationId?: string;
};
export type PushcutV1NotificationSendNode = {
type: 'n8n-nodes-base.pushcut';
version: 1;
credentials?: Credentials;
config: NodeConfig<PushcutV1NotificationSendParams>;
output?: Items<PushcutV1NotificationSendOutput>;
};