/** * Cockpit Node - Version 1 * Discriminator: resource=collection, operation=getAll */ interface Credentials { cockpitApi: CredentialReference; } /** Get many collection entries */ export type CockpitV1CollectionGetAllParams = { resource: 'collection'; operation: 'getAll'; /** * Name of the collection to operate on. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ collection?: 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 100 */ limit?: number | Expression; /** * Options * @default {} */ options?: { /** Comma-separated list of fields to get */ fields?: string | Expression | PlaceholderValue; /** Filter query in <a href="https://jeroen.github.io/mongolite/query-data.html">Mongolite format</a> */ filter?: IDataObject | string | Expression; /** Return normalized language fields */ language?: string | Expression | PlaceholderValue; /** Whether to resolve linked collection items * @default true */ populate?: boolean | Expression; /** Whether to return the data exactly in the way it got received from the API * @default false */ rawData?: boolean | Expression; /** Skip number of entries */ skip?: number | Expression; /** Sort query in <a href="https://jeroen.github.io/mongolite/query-data.html">Mongolite format</a> */ sort?: IDataObject | string | Expression; }; }; export type CockpitV1CollectionGetAllNode = { type: 'n8n-nodes-base.cockpit'; version: 1; credentials?: Credentials; config: NodeConfig; };