/** * Coda Node - Version 1.1 * Discriminator: resource=table, operation=getAllRows */ interface Credentials { codaApi: CredentialReference; } /** Access data of tables in documents */ export type CodaV11TableGetAllRowsParams = { resource: 'table'; operation: 'getAllRows'; /** * ID of the doc. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ docId?: string | Expression; /** * The table to get the rows from. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ tableId?: string | Expression; /** * Whether to return all results or only up to a given limit * @default false */ returnAll?: boolean | Expression; /** * Max number of results to return * @displayOptions.show { returnAll: [false] } * @default 50 */ limit?: number | Expression; /** * Options * @default {} */ options?: { /** Query used to filter returned rows, specified as <column_id_or_name>:<value>. If you'd like to use a column name instead of an ID, you must quote it (e.g., "My Column":123). Also note that value is a JSON value; if you'd like to use a string, you must surround it in quotes (e.g., "groceries"). */ query?: string | Expression | PlaceholderValue; /** Whether to return the data exactly in the way it got received from the API * @default false */ rawData?: boolean | Expression; /** Specifies the sort order of the rows returned. If left unspecified, rows are returned by creation time ascending. */ sortBy?: 'createdAt' | 'natural' | Expression; /** Whether to use column names instead of column IDs in the returned output. This is generally discouraged as it is fragile. If columns are renamed, code using original names may throw errors. * @default false */ useColumnNames?: boolean | Expression; /** The format that cell values are returned as */ valueFormat?: 'simple' | 'simpleWithArrays' | 'rich' | Expression; /** Whether to return only visible rows and columns for the table * @default false */ visibleOnly?: boolean | Expression; }; }; export type CodaV11TableGetAllRowsOutput = { id?: string; }; export type CodaV11TableGetAllRowsNode = { type: 'n8n-nodes-base.coda'; version: 1.1; credentials?: Credentials; config: NodeConfig; output?: Items; };