/** * GitLab Node - Version 1 * Discriminator: resource=file, operation=create */ interface Credentials { gitlabApi: CredentialReference; gitlabOAuth2Api: CredentialReference; } /** Create a new issue */ export type GitlabV1FileCreateParams = { resource: 'file'; operation: 'create'; authentication?: 'accessToken' | 'oAuth2' | Expression; /** * User, group or namespace of the project */ owner?: string | Expression | PlaceholderValue; /** * The name of the project * @displayOptions.hide { resource: ["user"], operation: ["getRepositories"] } */ repository?: string | Expression | PlaceholderValue; /** * The file path of the file. Has to contain the full path or leave it empty for root folder. * @displayOptions.hide { operation: ["list"] } */ filePath?: string | Expression | PlaceholderValue; /** * Whether the data to upload should be taken from binary field * @default false */ binaryData?: boolean | Expression; /** * The text content of the file * @displayOptions.show { binaryData: [false] } */ fileContent?: string | Expression | PlaceholderValue; /** * Input Binary Field * @hint The name of the input binary field containing the file to be written * @displayOptions.show { binaryData: [true] } * @default data */ binaryPropertyName?: string | Expression | PlaceholderValue; /** * Commit Message */ commitMessage?: string | Expression | PlaceholderValue; /** * Name of the new branch to create. The commit is added to this branch. */ branch?: string | Expression | PlaceholderValue; /** * Additional fields to add * @default {} */ additionalParameters?: { /** Start Branch */ branchStart?: { /** Name of the base branch to create the new branch from */ branchStart?: string | Expression | PlaceholderValue; }; /** Author */ author?: { /** The name of the author of the commit */ name?: string | Expression | PlaceholderValue; /** The email of the author of the commit */ email?: string | Expression | PlaceholderValue; }; /** Encoding */ encoding?: { /** Change encoding to base64. Default is text. * @default text */ encoding?: string | Expression | PlaceholderValue; }; }; }; export type GitlabV1FileCreateOutput = { branch?: string; file_path?: string; }; export type GitlabV1FileCreateNode = { type: 'n8n-nodes-base.gitlab'; version: 1; credentials?: Credentials; config: NodeConfig; output?: Items; };