n8n-nodes-base
Version:
Base nodes of n8n
87 lines (81 loc) • 3.32 kB
text/typescript
/**
* Google Business Profile Trigger Node - Version 1
* Fetches reviews from Google Business Profile and starts the workflow on specified polling intervals.
*/
export interface GoogleBusinessProfileTriggerV1Params {
/**
* Time at which polling should occur
* @default {"item":[{"mode":"everyMinute"}]}
*/
pollTimes?: {
/** Item
*/
item?: Array<{
/** How often to trigger.
* @default everyDay
*/
mode?: 'everyMinute' | 'everyHour' | 'everyDay' | 'everyWeek' | 'everyMonth' | 'everyX' | 'custom' | Expression<string>;
/** The hour of the day to trigger (24h format)
* @displayOptions.hide { mode: ["custom", "everyHour", "everyMinute", "everyX"] }
* @default 14
*/
hour?: number | Expression<number>;
/** The minute of the day to trigger
* @displayOptions.hide { mode: ["custom", "everyMinute", "everyX"] }
* @default 0
*/
minute?: number | Expression<number>;
/** The day of the month to trigger
* @displayOptions.show { mode: ["everyMonth"] }
* @default 1
*/
dayOfMonth?: number | Expression<number>;
/** The weekday to trigger
* @displayOptions.show { mode: ["everyWeek"] }
* @default 1
*/
weekday?: '1' | '2' | '3' | '4' | '5' | '6' | '0' | Expression<string>;
/** Use custom cron expression. Values and ranges as follows:<ul><li>Seconds: 0-59</li><li>Minutes: 0 - 59</li><li>Hours: 0 - 23</li><li>Day of Month: 1 - 31</li><li>Months: 0 - 11 (Jan - Dec)</li><li>Day of Week: 0 - 6 (Sun - Sat)</li></ul>
* @displayOptions.show { mode: ["custom"] }
* @default * * * * * *
*/
cronExpression?: string | Expression<string> | PlaceholderValue;
/** All how many X minutes/hours it should trigger
* @displayOptions.show { mode: ["everyX"] }
* @default 2
*/
value?: number | Expression<number>;
/** If it should trigger all X minutes or hours
* @displayOptions.show { mode: ["everyX"] }
* @default hours
*/
unit?: 'minutes' | 'hours' | Expression<string>;
}>;
};
event?: 'reviewAdded';
/**
* The Google Business Profile account
* @displayOptions.show { event: ["reviewAdded"] }
* @default {"mode":"list","value":""}
*/
account?: { __rl: true; mode: 'list' | 'name'; value: string; cachedResultName?: string };
/**
* The specific location or business associated with the account
* @displayOptions.show { event: ["reviewAdded"] }
* @default {"mode":"list","value":""}
*/
location?: { __rl: true; mode: 'list' | 'name'; value: string; cachedResultName?: string };
}
export interface GoogleBusinessProfileTriggerV1Credentials {
googleBusinessProfileOAuth2Api: CredentialReference;
}
interface GoogleBusinessProfileTriggerV1NodeBase {
type: 'n8n-nodes-base.googleBusinessProfileTrigger';
version: 1;
credentials?: GoogleBusinessProfileTriggerV1Credentials;
isTrigger: true;
}
export type GoogleBusinessProfileTriggerV1ParamsNode = GoogleBusinessProfileTriggerV1NodeBase & {
config: NodeConfig<GoogleBusinessProfileTriggerV1Params>;
};
export type GoogleBusinessProfileTriggerV1Node = GoogleBusinessProfileTriggerV1ParamsNode;