/** * Strava Node - Version 1.1 * Discriminator: resource=activity, operation=create */ interface Credentials { stravaOAuth2Api: CredentialReference; } /** Create a new activity */ export type StravaV11ActivityCreateParams = { resource: 'activity'; operation: 'create'; /** * The name of the activity */ name?: string | Expression | PlaceholderValue; /** * Type of sport * @default Run */ sport_type?: 'AlpineSki' | 'BackcountrySki' | 'Badminton' | 'Canoeing' | 'Crossfit' | 'EBikeRide' | 'Elliptical' | 'EMountainBikeRide' | 'Golf' | 'GravelRide' | 'Handcycle' | 'HighIntensityIntervalTraining' | 'Hike' | 'IceSkate' | 'InlineSkate' | 'Kayaking' | 'Kitesurf' | 'MountainBikeRide' | 'NordicSki' | 'Pickleball' | 'Pilates' | 'Racquetball' | 'Ride' | 'RockClimbing' | 'RollerSki' | 'Rowing' | 'Run' | 'Sail' | 'Skateboard' | 'Snowboard' | 'Snowshoe' | 'Soccer' | 'Squash' | 'StairStepper' | 'StandUpPaddling' | 'Surfing' | 'Swim' | 'TableTennis' | 'Tennis' | 'TrailRun' | 'Velomobile' | 'VirtualRide' | 'VirtualRow' | 'VirtualRun' | 'Walk' | 'WeightTraining' | 'Wheelchair' | 'Windsurf' | 'Workout' | 'Yoga' | Expression; /** * ISO 8601 formatted date time */ startDate?: string | Expression; /** * In seconds * @default 0 */ elapsedTime?: number | Expression; /** * Additional Fields * @default {} */ additionalFields?: { /** Whether to mark as commute * @default false */ commute?: boolean | Expression; /** Description of the activity */ description?: string | Expression | PlaceholderValue; /** In meters * @default 0 */ distance?: number | Expression; /** Whether to mark as a trainer activity * @default false */ trainer?: boolean | Expression; }; }; export type StravaV11ActivityCreateNode = { type: 'n8n-nodes-base.strava'; version: 1.1; credentials?: Credentials; config: NodeConfig; };