/** * Beeminder Node - Version 1 * Discriminator: resource=goal, operation=create */ interface Credentials { beeminderApi: CredentialReference; beeminderOAuth2Api: CredentialReference; } /** Create a charge */ export type BeeminderV1GoalCreateParams = { resource: 'goal'; operation: 'create'; authentication?: 'apiToken' | 'oAuth2' | Expression; /** * Unique identifier for the goal */ slug?: string | Expression | PlaceholderValue; /** * Human-readable title for the goal */ title?: string | Expression | PlaceholderValue; /** * Type of goal. <a href="https://api.beeminder.com/#attributes-2">More info here.</a>. * @default hustler */ goal_type?: 'hustler' | 'biker' | 'fatloser' | 'gainer' | 'inboxer' | 'drinker' | 'custom' | Expression; /** * Units for the goal (e.g., "hours", "pages", "pounds") */ gunits?: string | Expression | PlaceholderValue; /** * Additional Fields * @default {} */ additionalFields?: { /** Target date for the goal */ goaldate?: string | Expression; /** Target value for the goal */ goalval?: number | Expression; /** Rate of progress (units per day) */ rate?: number | Expression; /** Initial value for today's date * @default 0 */ initval?: number | Expression; /** Whether the goal is secret * @default false */ secret?: boolean | Expression; /** Whether the data is public * @default false */ datapublic?: boolean | Expression; /** Data source for the goal * @default manual */ datasource?: 'api' | 'ifttt' | 'zapier' | 'manual' | Expression; /** Whether to test the endpoint without actually creating a goal * @default false */ dryrun?: boolean | Expression; /** Array of alphanumeric tags for the goal. Replaces existing tags. * @default [] */ tags?: IDataObject | string | Expression; }; }; export type BeeminderV1GoalCreateNode = { type: 'n8n-nodes-base.beeminder'; version: 1; credentials?: Credentials; config: NodeConfig; };