/** * ERPNext Node - Version 1 * Discriminator: resource=document, operation=getAll */ interface Credentials { erpNextApi: CredentialReference; } /** Retrieve many documents */ export type ErpNextV1DocumentGetAllParams = { resource: 'document'; operation: 'getAll'; /** * DocType whose documents to retrieve. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ docType?: 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 10 */ limit?: number | Expression; /** * Options * @default {} */ options?: { /** Comma-separated list of fields to return. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. * @default [] */ fields?: string[]; /** Custom Properties * @default {} */ filters?: { /** Property */ customProperty?: Array<{ /** Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a> */ field?: string | Expression; /** Operator * @default is */ operator?: 'equalsGreater' | 'equalsLess' | 'is' | 'greater' | 'less' | 'isNot' | Expression; /** Value of the operator condition */ value?: string | Expression | PlaceholderValue; }>; }; }; }; export type ErpNextV1DocumentGetAllNode = { type: 'n8n-nodes-base.erpNext'; version: 1; credentials?: Credentials; config: NodeConfig; };