n8n-nodes-base
Version:
Base nodes of n8n
81 lines (77 loc) • 2.53 kB
text/typescript
/**
* NocoDB Node - Version 1
* Discriminator: resource=row, operation=create
*/
interface Credentials {
nocoDb: CredentialReference;
nocoDbApiToken: CredentialReference;
}
/** Create a row */
export type NocoDbV1RowCreateParams = {
resource: 'row';
operation: 'create';
authentication?: 'nocoDbApiToken' | 'nocoDb' | Expression<string>;
/**
* API Version
* @default 1
*/
version?: 1 | 2 | 3 | Expression<number>;
/**
* Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>
* @displayOptions.show { version: [3] }
* @default none
*/
workspaceId?: string | Expression<string>;
/**
* Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>
* @displayOptions.show { version: [3] }
*/
projectId?: string | Expression<string>;
/**
* The table to operate on. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.
* @displayOptions.show { version: [2, 3] }
*/
table?: string | Expression<string>;
/**
* Whether to insert the input data this node receives in the new row
* @default defineBelow
*/
dataToSend?: 'autoMapInputData' | 'defineBelow' | Expression<string>;
/**
* List of input properties to avoid sending, separated by commas. Leave empty to send all properties.
* @displayOptions.show { dataToSend: ["autoMapInputData"] }
*/
inputsToIgnore?: string | Expression<string> | PlaceholderValue;
/**
* Fields to Send
* @displayOptions.show { dataToSend: ["defineBelow"] }
* @default {}
*/
fieldsUi?: {
/** Field
*/
fieldValues?: Array<{
/** Field Name
*/
fieldName?: string | Expression<string> | PlaceholderValue;
/** Whether the field data to set is binary and should be taken from a binary property
* @default false
*/
binaryData?: boolean | Expression<boolean>;
/** Field Value
* @displayOptions.show { binaryData: [false] }
*/
fieldValue?: string | Expression<string> | PlaceholderValue;
/** The field containing the binary file data to be uploaded
* @displayOptions.show { binaryData: [true] }
*/
binaryProperty?: string | Expression<string> | PlaceholderValue;
}>;
};
};
export type NocoDbV1RowCreateNode = {
type: 'n8n-nodes-base.nocoDb';
version: 1;
credentials?: Credentials;
config: NodeConfig<NocoDbV1RowCreateParams>;
};