/** * Elasticsearch Node - Version 1 * Discriminator: resource=index, operation=create */ interface Credentials { elasticsearchApi: CredentialReference; } /** Create a document */ export type ElasticsearchV1IndexCreateParams = { resource: 'index'; operation: 'create'; /** * ID of the index to create */ indexId?: string | Expression | PlaceholderValue; /** * Additional Fields * @default {} */ additionalFields?: { /** Index aliases which include the index, as an <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html">alias object</a> */ aliases?: IDataObject | string | Expression; /** Whether a mapping type is expected in the body of mappings. Defaults to false. * @default false */ include_type_name?: boolean | Expression; /** Mapping for fields in the index, as <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping.html">mapping object</a> */ mappings?: IDataObject | string | Expression; /** Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Defaults to <code>1m</code>. See the <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/common-options.html#time-units">Elasticsearch time units reference</a> * @default 1m */ master_timeout?: string | Expression | PlaceholderValue; /** Configuration options for the index, as an <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html#index-modules-settings">index settings object</a> */ settings?: IDataObject | string | Expression; /** Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Defaults to <code>30s</code>. See the <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/common-options.html#time-units">Elasticsearch time units reference</a> * @default 30s */ timeout?: string | Expression | PlaceholderValue; /** The number of shard copies that must be active before proceeding with the operation. Set to <code>all</code> or any positive integer up to the total number of shards in the index. Default: 1, the primary shard * @default 1 */ wait_for_active_shards?: string | Expression | PlaceholderValue; }; }; export type ElasticsearchV1IndexCreateNode = { type: 'n8n-nodes-base.elasticsearch'; version: 1; credentials?: Credentials; config: NodeConfig; };