n8n-nodes-base
Version:
Base nodes of n8n
66 lines (62 loc) • 1.98 kB
text/typescript
/**
* 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<string>;
/**
* Whether to return all results or only up to a given limit
* @default false
*/
returnAll?: boolean | Expression<boolean>;
/**
* Max number of results to return
* @displayOptions.show { returnAll: [false] }
* @default 100
*/
limit?: number | Expression<number>;
/**
* Options
* @default {}
*/
options?: {
/** Comma-separated list of fields to get
*/
fields?: string | Expression<string> | PlaceholderValue;
/** Filter query in <a href="https://jeroen.github.io/mongolite/query-data.html">Mongolite format</a>
*/
filter?: IDataObject | string | Expression<string>;
/** Return normalized language fields
*/
language?: string | Expression<string> | PlaceholderValue;
/** Whether to resolve linked collection items
* @default true
*/
populate?: boolean | Expression<boolean>;
/** Whether to return the data exactly in the way it got received from the API
* @default false
*/
rawData?: boolean | Expression<boolean>;
/** Skip number of entries
*/
skip?: number | Expression<number>;
/** Sort query in <a href="https://jeroen.github.io/mongolite/query-data.html">Mongolite format</a>
*/
sort?: IDataObject | string | Expression<string>;
};
};
export type CockpitV1CollectionGetAllNode = {
type: 'n8n-nodes-base.cockpit';
version: 1;
credentials?: Credentials;
config: NodeConfig<CockpitV1CollectionGetAllParams>;
};