@dartfx/n8n-nodes-qsv 0.29.0 → 0.30.0-staging.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -69,6 +69,7 @@ const StatsDescription_1 = require("./descriptions/StatsDescription");
69
69
  const SynthesizeDescription_1 = require("./descriptions/SynthesizeDescription");
70
70
  const TableDescription_1 = require("./descriptions/TableDescription");
71
71
  const TemplateDescription_1 = require("./descriptions/TemplateDescription");
72
+ const TimebucketpDescription_1 = require("./descriptions/TimebucketpDescription");
72
73
  const ToDescription_1 = require("./descriptions/ToDescription");
73
74
  const TojsonlDescription_1 = require("./descriptions/TojsonlDescription");
74
75
  const TransposeDescription_1 = require("./descriptions/TransposeDescription");
@@ -142,6 +143,7 @@ const executeStats_1 = require("./actions/executeStats");
142
143
  const executeSynthesize_1 = require("./actions/executeSynthesize");
143
144
  const executeTable_1 = require("./actions/executeTable");
144
145
  const executeTemplate_1 = require("./actions/executeTemplate");
146
+ const executeTimebucketp_1 = require("./actions/executeTimebucketp");
145
147
  const executeTo_1 = require("./actions/executeTo");
146
148
  const executeTojsonl_1 = require("./actions/executeTojsonl");
147
149
  const executeTranspose_1 = require("./actions/executeTranspose");
@@ -156,7 +158,7 @@ class Qsv {
156
158
  group: ['transform'],
157
159
  version: 1,
158
160
  subtitle: '={{$parameter["operation"]}}',
159
- description: 'Ultra-fast tabular data wrangling, stats, and transformations via QSV (generated for QSV 29.0.0; requires qsv CLI on host)',
161
+ description: 'Ultra-fast tabular data wrangling, stats, and transformations via QSV (generated for QSV 30.0.0; requires qsv CLI on host)',
160
162
  defaults: {
161
163
  name: 'QSV',
162
164
  },
@@ -394,7 +396,7 @@ class Qsv {
394
396
  {
395
397
  name: 'Luau (luau) [Feature: luau]',
396
398
  value: 'luau',
397
- description: 'Create multiple new computed columns, filter rows, compute aggregations and build complex data pipelines by executing a Luau 0.745 expression/script for every row of a CSV file (sequential mode), or using random access with an index (random access mode). Can process a single Luau expression or full-fledged data-wrangling scripts using lookup tables with discrete BEGIN, MAIN and END sections. It is not just another qsv command, it is qsv\'s Domain-specific Language (DSL) with numerous qsv-specific helper functions to build production data pipelines. (Category: utility | Docs: https://github.com/dathere/qsv/blob/master/docs/help/luau.md)',
399
+ description: 'Create multiple new computed columns, filter rows, compute aggregations and build complex data pipelines by executing a Luau 0.748 expression/script for every row of a CSV file (sequential mode), or using random access with an index (random access mode). Can process a single Luau expression or full-fledged data-wrangling scripts using lookup tables with discrete BEGIN, MAIN and END sections. It is not just another qsv command, it is qsv\'s Domain-specific Language (DSL) with numerous qsv-specific helper functions to build production data pipelines. (Category: utility | Docs: https://github.com/dathere/qsv/blob/master/docs/help/luau.md)',
398
400
  action: 'Luau',
399
401
  },
400
402
  {
@@ -478,7 +480,7 @@ class Qsv {
478
480
  {
479
481
  name: 'Schema (schema)',
480
482
  value: 'schema',
481
- description: 'Infer either a JSON Schema Validation Draft 2020-12 (Example) or Polars Schema (Example) from CSV data. In JSON Schema Validation mode, it produces a `.schema.json` file replete with inferred data type & domain/range validation rules derived from `stats`. Uses multithreading to go faster if an index is present. See `validate` command to use the generated JSON Schema to validate if similar CSVs comply with the schema. With the `--polars` option, it produces a `.pschema.json` file that all polars commands (`sqlp`, `joinp` & `pivotp`) use to determine the data type of each column & to optimize performance. Both schemas are editable and can be fine-tuned. For JSON Schema, to refine the inferred validation rules. For Polars Schema, to change the inferred Polars data types. (Category: validation | Docs: https://github.com/dathere/qsv/blob/master/docs/help/schema.md)',
483
+ description: 'Infer either a JSON Schema Validation Draft 2020-12 (Example) or Polars Schema (Example) from CSV data. In JSON Schema Validation mode, it produces a `.schema.json` file replete with inferred data type & domain/range validation rules derived from `stats`. Uses multithreading to go faster if an index is present. See `validate` command to use the generated JSON Schema to validate if similar CSVs comply with the schema. With the `--polars` option, it produces a `.pschema.json` file that all polars commands (`sqlp`, `joinp`, `pivotp` & `timebucketp`) use to determine the data type of each column & to optimize performance. Both schemas are editable and can be fine-tuned. For JSON Schema, to refine the inferred validation rules. For Polars Schema, to change the inferred Polars data types. (Category: validation | Docs: https://github.com/dathere/qsv/blob/master/docs/help/schema.md)',
482
484
  action: 'Schema',
483
485
  },
484
486
  {
@@ -556,7 +558,7 @@ class Qsv {
556
558
  {
557
559
  name: 'Synthesize (synthesize) [Feature: synthesize]',
558
560
  value: 'synthesize',
559
- description: 'Generate a synthetic CSV that is statistically faithful to a source CSV. Runs `stats` + `frequency` on the source so synthesized columns reproduce its per-column attributes — frequency-weighted sampling for categorical columns, quartile-bucketed numeric/date generation, null-ratio preservation. With a Data Dictionary from `describegpt --dictionary --infer-content-type`, semantic Content Types pick realistic fake-rs fakers (names, emails, addresses, UUIDs, etc.) for non-enumerable columns. A dictionary `relationships` array preserves inter-column structure within each row — `joint` (functional dependencies like city/state/zip), `ordered` (monotonic chains like created_date ≤ closed_date) and `correlated` (numeric correlation via a Gaussian copula). Fully reproducible with `--seed`. (Category: generation | Docs: https://github.com/dathere/qsv/blob/master/docs/help/synthesize.md)',
561
+ description: 'Generate a synthetic CSV that is statistically faithful to a source CSV, from its `stats` and `frequency`. A Data Dictionary adds realistic fake values by Content Type, and keeps the relationships between columns it declares (`joint`, `ordered`, `correlated`). Reproducible with `--seed`. Output is not anonymized: it can contain real source values (see `--min-count`). (Category: generation | Docs: https://github.com/dathere/qsv/blob/master/docs/help/synthesize.md)',
560
562
  action: 'Synthesize',
561
563
  },
562
564
  {
@@ -571,6 +573,12 @@ class Qsv {
571
573
  description: 'Renders a template using CSV data with the MiniJinja template engine (Example). (Category: utility | Docs: https://github.com/dathere/qsv/blob/master/docs/help/template.md)',
572
574
  action: 'Template',
573
575
  },
576
+ {
577
+ name: 'Timebucketp (timebucketp)',
578
+ value: 'timebucketp',
579
+ description: 'Bucket time-series data into time windows (e.g. 15-minute, overlapping, or weekly from Monday) and aggregate them, optionally per group. Also computes rolling look-back windows (e.g. a trailing 2-hour average at each row) and can fill empty windows. Complements `sqlp`\'s `DATE_TRUNC`, which only buckets by calendar unit. (Category: utility | Docs: https://github.com/dathere/qsv/blob/master/docs/help/timebucketp.md)',
580
+ action: 'Timebucketp',
581
+ },
574
582
  {
575
583
  name: 'To (to) [Feature: to]',
576
584
  value: 'to',
@@ -677,6 +685,7 @@ class Qsv {
677
685
  ...SynthesizeDescription_1.SynthesizeDescription,
678
686
  ...TableDescription_1.TableDescription,
679
687
  ...TemplateDescription_1.TemplateDescription,
688
+ ...TimebucketpDescription_1.TimebucketpDescription,
680
689
  ...ToDescription_1.ToDescription,
681
690
  ...TojsonlDescription_1.TojsonlDescription,
682
691
  ...TransposeDescription_1.TransposeDescription,
@@ -894,6 +903,9 @@ class Qsv {
894
903
  case 'template':
895
904
  result = await executeTemplate_1.executeTemplate.call(this, itemIndex);
896
905
  break;
906
+ case 'timebucketp':
907
+ result = await executeTimebucketp_1.executeTimebucketp.call(this, itemIndex);
908
+ break;
897
909
  case 'to':
898
910
  result = await executeTo_1.executeTo.call(this, itemIndex);
899
911
  break;
@@ -26,6 +26,9 @@ async function executeExcel(itemIndex) {
26
26
  if (options.errorFormat !== undefined && options.errorFormat !== '') {
27
27
  args.push('--error-format', String(options.errorFormat));
28
28
  }
29
+ if (options.fillMerged === true) {
30
+ args.push('--fill-merged');
31
+ }
29
32
  if (options.flexible === true) {
30
33
  args.push('--flexible');
31
34
  }
@@ -32,6 +32,9 @@ async function executeStats(itemIndex) {
32
32
  if (options.delimiter !== undefined && options.delimiter !== '') {
33
33
  args.push('--delimiter', String(options.delimiter));
34
34
  }
35
+ if (options.escape !== undefined && options.escape !== '') {
36
+ args.push('--escape', String(options.escape));
37
+ }
35
38
  if (options.everything === true) {
36
39
  args.push('--everything');
37
40
  }
@@ -68,6 +71,9 @@ async function executeStats(itemIndex) {
68
71
  if (options.noHeaders === true) {
69
72
  args.push('--no-headers');
70
73
  }
74
+ if (options.noQuoting === true) {
75
+ args.push('--no-quoting');
76
+ }
71
77
  if (options.nulls === true) {
72
78
  args.push('--nulls');
73
79
  }
@@ -89,6 +95,9 @@ async function executeStats(itemIndex) {
89
95
  if (options.quartiles === true) {
90
96
  args.push('--quartiles');
91
97
  }
98
+ if (options.quote !== undefined && options.quote !== '') {
99
+ args.push('--quote', String(options.quote));
100
+ }
92
101
  if (options.round !== undefined && options.round !== '') {
93
102
  args.push('--round', String(options.round));
94
103
  }
@@ -26,6 +26,9 @@ async function executeSynthesize(itemIndex) {
26
26
  if (options.dictionary !== undefined && options.dictionary !== '') {
27
27
  args.push('--dictionary', String(options.dictionary));
28
28
  }
29
+ if (options.format !== undefined && options.format !== '') {
30
+ args.push('--format', String(options.format));
31
+ }
29
32
  if (options.freqLimit !== undefined && options.freqLimit !== '') {
30
33
  args.push('--freq-limit', String(options.freqLimit));
31
34
  }
@@ -38,21 +41,42 @@ async function executeSynthesize(itemIndex) {
38
41
  if (options.locale !== undefined && options.locale !== '') {
39
42
  args.push('--locale', String(options.locale));
40
43
  }
44
+ if (options.minCount !== undefined && options.minCount !== '') {
45
+ args.push('--min-count', String(options.minCount));
46
+ }
47
+ if (options.model !== undefined && options.model !== '') {
48
+ args.push('--model', String(options.model));
49
+ }
41
50
  if (options.noRelationships === true) {
42
51
  args.push('--no-relationships');
43
52
  }
53
+ if (options.quantiles !== undefined && options.quantiles !== '') {
54
+ args.push('--quantiles', String(options.quantiles));
55
+ }
56
+ if (options.report !== undefined && options.report !== '') {
57
+ args.push('--report', String(options.report));
58
+ }
44
59
  if (options.rows !== undefined && options.rows !== '') {
45
60
  args.push('--rows', String(options.rows));
46
61
  }
62
+ if (options.saveModel !== undefined && options.saveModel !== '') {
63
+ args.push('--save-model', String(options.saveModel));
64
+ }
47
65
  if (options.seed !== undefined && options.seed !== '') {
48
66
  args.push('--seed', String(options.seed));
49
67
  }
68
+ if (options.shard !== undefined && options.shard !== '') {
69
+ args.push('--shard', String(options.shard));
70
+ }
50
71
  if (options.statsOptions !== undefined && options.statsOptions !== '') {
51
72
  args.push('--stats-options', String(options.statsOptions));
52
73
  }
53
74
  if (options.strictRelationships === true) {
54
75
  args.push('--strict-relationships');
55
76
  }
77
+ if (options.target !== undefined && options.target !== '') {
78
+ args.push('--target', String(options.target));
79
+ }
56
80
  if (additionalArgs.trim()) {
57
81
  const rawMatches = additionalArgs.match(/[^\s"']+|"[^"]*"|'[^']*'/g) || [];
58
82
  const parsedArgs = rawMatches.map((arg) => {
@@ -0,0 +1,2 @@
1
+ import type { IExecuteFunctions, INodeExecutionData } from 'n8n-workflow';
2
+ export declare function executeTimebucketp(this: IExecuteFunctions, itemIndex: number): Promise<INodeExecutionData[]>;
@@ -0,0 +1,164 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.executeTimebucketp = executeTimebucketp;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ const child_process_1 = require("child_process");
6
+ const util_1 = require("util");
7
+ const execFileAsync = (0, util_1.promisify)(child_process_1.execFile);
8
+ async function executeTimebucketp(itemIndex) {
9
+ const inputPath = this.getNodeParameter('inputPath', itemIndex);
10
+ if (!inputPath || !inputPath.trim()) {
11
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Input CSV file path is required.', { itemIndex });
12
+ }
13
+ const outputPath = this.getNodeParameter('outputPath', itemIndex, '') || '';
14
+ const additionalArgs = this.getNodeParameter('additionalArgs', itemIndex, '') || '';
15
+ const options = this.getNodeParameter('options', itemIndex, {}) || {};
16
+ const args = ['timebucketp'];
17
+ if (options.agg !== undefined && options.agg !== '') {
18
+ args.push('--agg', String(options.agg));
19
+ }
20
+ if (options.boundaries === true) {
21
+ args.push('--boundaries');
22
+ }
23
+ if (options.by !== undefined && options.by !== '') {
24
+ args.push('--by', String(options.by));
25
+ }
26
+ if (options.closed !== undefined && options.closed !== '') {
27
+ args.push('--closed', String(options.closed));
28
+ }
29
+ if (options.dateFormat !== undefined && options.dateFormat !== '') {
30
+ args.push('--date-format', String(options.dateFormat));
31
+ }
32
+ if (options.decimalComma === true) {
33
+ args.push('--decimal-comma');
34
+ }
35
+ if (options.delimiter !== undefined && options.delimiter !== '') {
36
+ args.push('--delimiter', String(options.delimiter));
37
+ }
38
+ if (options.every !== undefined && options.every !== '') {
39
+ args.push('--every', String(options.every));
40
+ }
41
+ if (options.fillGaps === true) {
42
+ args.push('--fill-gaps');
43
+ }
44
+ if (options.ignoreErrors === true) {
45
+ args.push('--ignore-errors');
46
+ }
47
+ if (options.index !== undefined && options.index !== '') {
48
+ args.push('--index', String(options.index));
49
+ }
50
+ if (options.inferLen !== undefined && options.inferLen !== '') {
51
+ args.push('--infer-len', String(options.inferLen));
52
+ }
53
+ if (options.label !== undefined && options.label !== '') {
54
+ args.push('--label', String(options.label));
55
+ }
56
+ if (options.offset !== undefined && options.offset !== '') {
57
+ args.push('--offset', String(options.offset));
58
+ }
59
+ if (options.period !== undefined && options.period !== '') {
60
+ args.push('--period', String(options.period));
61
+ }
62
+ if (options.rolling === true) {
63
+ args.push('--rolling');
64
+ }
65
+ if (options.sorted === true) {
66
+ args.push('--sorted');
67
+ }
68
+ if (options.startBy !== undefined && options.startBy !== '') {
69
+ args.push('--start-by', String(options.startBy));
70
+ }
71
+ if (additionalArgs.trim()) {
72
+ const rawMatches = additionalArgs.match(/[^\s"']+|"[^"]*"|'[^']*'/g) || [];
73
+ const parsedArgs = rawMatches.map((arg) => {
74
+ if ((arg.startsWith('"') && arg.endsWith('"')) || (arg.startsWith("'") && arg.endsWith("'"))) {
75
+ return arg.slice(1, -1);
76
+ }
77
+ return arg;
78
+ });
79
+ args.push(...parsedArgs);
80
+ }
81
+ if (outputPath.trim()) {
82
+ args.push('--output', outputPath.trim());
83
+ }
84
+ args.push(inputPath);
85
+ const qsvBin = process.env.DARTFX_QSV_BIN_PATH ||
86
+ process.env.QSV_BIN_PATH ||
87
+ process.env.QSV_PATH ||
88
+ 'qsv';
89
+ try {
90
+ const { stdout, stderr } = await execFileAsync(qsvBin, args, {
91
+ maxBuffer: 50 * 1024 * 1024,
92
+ encoding: 'utf8',
93
+ });
94
+ let resultJson;
95
+ try {
96
+ resultJson = JSON.parse(stdout);
97
+ }
98
+ catch {
99
+ resultJson = {
100
+ command: 'qsv timebucketp',
101
+ inputPath,
102
+ rawOutput: stdout,
103
+ };
104
+ }
105
+ const returnJson = {
106
+ success: true,
107
+ command: 'timebucketp',
108
+ inputPath,
109
+ result: resultJson,
110
+ };
111
+ if (outputPath.trim()) {
112
+ returnJson.outputPath = outputPath.trim();
113
+ }
114
+ if (stderr && stderr.trim()) {
115
+ returnJson.warnings = stderr.trim();
116
+ }
117
+ return [
118
+ {
119
+ json: returnJson,
120
+ },
121
+ ];
122
+ }
123
+ catch (error) {
124
+ if (error.code === 'ENOENT') {
125
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), `The QSV CLI binary ('${qsvBin}') was not found`, {
126
+ itemIndex,
127
+ description: `Please ensure 'qsv' is installed and available in the system PATH where n8n is running, or specify its absolute path via the DARTFX_QSV_BIN_PATH environment variable. (Docs: https://github.com/dathere/qsv/blob/master/docs/help/timebucketp.md)`,
128
+ });
129
+ }
130
+ if (error.code === 'ERR_CHILD_PROCESS_STDIO_MAXBUFFER' || (error.message && error.message.includes('maxBuffer'))) {
131
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), `QSV execution exceeded maximum stdout buffer (50 MB)`, {
132
+ itemIndex,
133
+ description: `qsv timebucketp returned more data than could fit into memory. Specify an 'Output File Path' to stream results directly to disk instead.`,
134
+ });
135
+ }
136
+ const rawError = (error.stderr || error.message || '').trim();
137
+ if (rawError.includes('with any of the allowed variants') ||
138
+ rawError.includes('Could not match') ||
139
+ rawError.includes('is not a qsv command') ||
140
+ rawError.includes('unrecognized subcommand') ||
141
+ rawError.includes('not available in this')) {
142
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Operation 'timebucketp' is not available in the installed QSV binary`, {
143
+ itemIndex,
144
+ description: `The installed QSV binary at '${qsvBin}' does not include the 'timebucketp' feature. This feature requires a QSV build with the corresponding Cargo feature enabled (or 'all_features'). See https://github.com/dathere/qsv/blob/master/docs/help/timebucketp.md and https://github.com/dathere/qsv#feature-flags`,
145
+ });
146
+ }
147
+ if (rawError.includes('No such file or directory') || rawError.includes('os error 2')) {
148
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Input file not found: '${inputPath}'`, {
149
+ itemIndex,
150
+ description: `qsv timebucketp could not find the file at '${inputPath}'. Check for typos, or if n8n is running in Docker, ensure the host directory is mounted into the container.`,
151
+ });
152
+ }
153
+ if (rawError.includes('Operation not permitted') ||
154
+ rawError.includes('os error 1') ||
155
+ rawError.includes('Permission denied') ||
156
+ rawError.includes('os error 13')) {
157
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Permission denied accessing file: '${inputPath}'`, {
158
+ itemIndex,
159
+ description: `qsv timebucketp was denied read access to '${inputPath}'. On macOS, check Full Disk Access or Removable Volumes permissions for the application running n8n.`,
160
+ });
161
+ }
162
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Failed executing 'qsv timebucketp': ${rawError}`, { itemIndex });
163
+ }
164
+ }
@@ -49,6 +49,9 @@ async function executeValidate(itemIndex) {
49
49
  if (options.emailRequiredTld === true) {
50
50
  args.push('--email-required-tld');
51
51
  }
52
+ if (options.escape !== undefined && options.escape !== '') {
53
+ args.push('--escape', String(options.escape));
54
+ }
52
55
  if (options.failFast === true) {
53
56
  args.push('--fail-fast');
54
57
  }
@@ -67,12 +70,18 @@ async function executeValidate(itemIndex) {
67
70
  if (options.noHeaders === true) {
68
71
  args.push('--no-headers');
69
72
  }
73
+ if (options.noQuoting === true) {
74
+ args.push('--no-quoting');
75
+ }
70
76
  if (options.offline === true) {
71
77
  args.push('--offline');
72
78
  }
73
79
  if (options.prettyJson === true) {
74
80
  args.push('--pretty-json');
75
81
  }
82
+ if (options.quote !== undefined && options.quote !== '') {
83
+ args.push('--quote', String(options.quote));
84
+ }
76
85
  if (options.sarif !== undefined && options.sarif !== '') {
77
86
  args.push('--sarif', String(options.sarif));
78
87
  }
@@ -79,6 +79,13 @@ exports.ExcelDescription = [
79
79
  default: 'code',
80
80
  description: 'The format to use when formatting error cells. There are 3 formats: * "code": return the error code. (#DIV/0!; #N/A; #NAME?; #NULL!; #NUM!; #REF!; #VALUE!; #DATA!) * "formula": return the formula, prefixed with \'#\'. (e.g. #=A1/B1 where B1 is 0; #=100/0) * "both": return both error code and the formula. (e.g. #DIV/0!: =A1/B1)',
81
81
  },
82
+ {
83
+ displayName: 'Fill Merged',
84
+ name: 'fillMerged',
85
+ type: 'boolean',
86
+ default: false,
87
+ description: 'Copy the value of each merged region\'s top-left cell into the region\'s other cells, which are otherwise exported empty. Only the part of a region inside the exported sheet, range or table is filled, and a region whose top-left cell is outside it stays empty. Supported for xls, xlsx, xlsm and xlsb files. A header cell merged across columns repeats its name in each of them; pipe the output to "qsv safenames" for unique names.',
88
+ },
82
89
  {
83
90
  displayName: 'Flexible',
84
91
  name: 'flexible',
@@ -193,7 +193,7 @@ exports.JoinpDescription = [
193
193
  name: 'ignoreErrors',
194
194
  type: 'boolean',
195
195
  default: false,
196
- description: 'Ignore errors when parsing CSVs. If set, rows with errors will be skipped. If not set, the query will fail. Only use this when debugging queries, as polars does batched parsing and will skip the entire batch where the error occurred. To get more detailed error messages, set the environment variable POLARS_BACKTRACE_IN_ERR=1 before running the join.',
196
+ description: 'Read CSV values that can\'t be parsed as their column\'s type as empty (null) instead of failing. Their rows are kept, and in the standard joins, a null join key, like an empty one, matches only with --nulls. If not set, the join will fail. To get more detailed error messages, set the environment variable POLARS_BACKTRACE_IN_ERR=1 before running the join.',
197
197
  },
198
198
  {
199
199
  displayName: 'Ignore Leading Zeros',
@@ -284,7 +284,7 @@ exports.JoinpDescription = [
284
284
  name: 'nulls',
285
285
  type: 'boolean',
286
286
  default: false,
287
- description: 'When set, joins will work on empty fields. Otherwise, empty fields are completely ignored.',
287
+ description: 'When set, unquoted empty fields are read as null (so they are written as the --null-value string), and in the standard joins, empty join keys match each other. Otherwise, rows with an empty key never match there (outer joins keep them, unmatched). The key matching doesn\'t apply to cross, non-equi or asof joins.',
288
288
  },
289
289
  {
290
290
  displayName: 'Right',
@@ -76,7 +76,7 @@ exports.PivotpDescription = [
76
76
  name: 'colSeparator',
77
77
  type: 'string',
78
78
  default: '_',
79
- description: 'The separator in generated column names in case of multiple --values columns. (pivot mode only; ignored in group-by mode)',
79
+ description: 'The separator in generated column names in case of multiple --values columns. A generated name that equals an index column\'s takes a _2 (_3, ...) suffix, with a warning. (pivot mode only; ignored in group-by mode)',
80
80
  },
81
81
  {
82
82
  displayName: 'Decimal Comma',
@@ -104,7 +104,7 @@ exports.PivotpDescription = [
104
104
  name: 'ignoreErrors',
105
105
  type: 'boolean',
106
106
  default: false,
107
- description: 'Skip rows that can\'t be parsed.',
107
+ description: 'Read values that can\'t be parsed as empty (null) instead of failing. Their rows are kept.',
108
108
  },
109
109
  {
110
110
  displayName: 'Index',
@@ -181,7 +181,7 @@ exports.PivotpDescription = [
181
181
  name: 'values',
182
182
  type: 'string',
183
183
  default: '',
184
- description: 'The column(s) containing values to aggregate. If an aggregation is specified, these are the values on which the aggregation will be computed. In pivot mode, if None, all remaining columns not specified on --on and --index will be used; at least one of --index and --values must be specified. In group-by mode, if omitted, a single "count" column is produced.',
184
+ description: 'The column(s) containing values to aggregate. If an aggregation is specified, these are the values on which the aggregation will be computed. In pivot mode, if None, all remaining columns not specified on --on and --index will be used; at least one of --index and --values must be specified. If no columns remain, len (the default then) counts the rows of each cell; any other aggregation needs --values. In group-by mode, if omitted, a single "count" column is produced.',
185
185
  },
186
186
  ],
187
187
  },
@@ -132,7 +132,7 @@ exports.SqlpDescription = [
132
132
  name: 'ignoreErrors',
133
133
  type: 'boolean',
134
134
  default: false,
135
- description: 'Ignore errors when parsing CSVs. If set, rows with errors will be skipped. If not set, the query will fail. Only use this when debugging queries, as Polars does batched parsing and will skip the entire batch where the error occurred. To get more detailed error messages, set the environment variable POLARS_BACKTRACE_IN_ERR=1 before running the query.',
135
+ description: 'Read CSV values that can\'t be parsed as their column\'s type as empty (null) instead of failing. Their rows are kept, so COUNT(*) still counts them. If not set, the query will fail. To get more detailed error messages, set the environment variable POLARS_BACKTRACE_IN_ERR=1 before running the query.',
136
136
  },
137
137
  {
138
138
  displayName: 'Infer Len',
@@ -188,7 +188,7 @@ exports.SqlpDescription = [
188
188
  name: 'tryParsedates',
189
189
  type: 'boolean',
190
190
  default: false,
191
- description: 'Automatically try to parse dates/datetimes and time. If parsing fails, columns remain as strings. Note that if dates are not well-formatted in your CSV, that you may want to try to set `--ignore-errors` to relax the CSV parsing of dates.',
191
+ description: 'Automatically try to parse dates/datetimes and time. If parsing fails, columns remain as strings. Note that if dates are not well-formatted in your CSV, that you may want to try to set `--ignore-errors` to relax the CSV parsing of dates. Polars reads slash, dash and dot dates as day-first, so 01/05/2024 becomes 2024-05-01. Without this option (and without a .pschema.json that types the column as a date), the column stays a string, and CAST(col AS DATE) of a string reads only year-first dates (2024-05-01, 2024/5/1): it fails on 01/05/2024, and TRY_CAST returns NULL. For month-first (US) dates, leave this off and use STRPTIME(col, \'%m/%d/%Y\') in the query instead.',
192
192
  },
193
193
  {
194
194
  displayName: 'Wnull Value',
@@ -93,6 +93,13 @@ exports.StatsDescription = [
93
93
  default: '',
94
94
  description: 'The field delimiter for READING CSV data. Must be a single character. (default: ,)',
95
95
  },
96
+ {
97
+ displayName: 'Escape',
98
+ name: 'escape',
99
+ type: 'string',
100
+ default: '',
101
+ description: 'The escape character for READING CSV data, for data that escapes quotes as \\" instead of "". When not set, quotes are escaped by doubling them.',
102
+ },
96
103
  {
97
104
  displayName: 'Everything',
98
105
  name: 'everything',
@@ -154,7 +161,7 @@ exports.StatsDescription = [
154
161
  name: 'memcheck',
155
162
  type: 'boolean',
156
163
  default: false,
157
- description: 'Use CONSERVATIVE heuristics for the in-memory load check (file size vs. available + free_swap × platform factor − headroom), instead of the default NORMAL check (file size vs. total memory − headroom). The CONSERVATIVE check is stricter and trips OOM far more readily. Ignored when computing default, streaming statistics. (See also: QSV_MEMORY_CHECK env var, equivalent to passing --memcheck.) Independently of this flag, the in-memory load check runs whenever stats takes the non-parallel path with non-streaming columns. On OOM (in either NORMAL or CONSERVATIVE mode), qsv auto-creates an index when no index exists (skipped for stdin) AND switches to approx quantile + approx cardinality methods (DataSketches t-digest and HyperLogLog) where compatible. The sketch fallback can also fire when an index is already present and the OOM still trips (e.g., when jobs is pinned to 1 on a pre-indexed file). A wwarn is emitted listing the auto-enabled estimators. When modes are computed (with --mode or with the everything option) and no mode cardinality cap is set, approx cardinality is NOT auto-enabled: the exact mode table is kept either way, so it would save nothing. A wwarn suggests --mode-cardinality-cap, which is what bounds that table.',
164
+ description: 'Use CONSERVATIVE heuristics for the in-memory load check (file size vs. available + free_swap × platform factor − headroom), instead of the default NORMAL check (file size vs. total memory − headroom). The CONSERVATIVE check is stricter and trips OOM far more readily. Ignored when computing default, streaming statistics. (See also: QSV_MEMORY_CHECK env var, equivalent to passing --memcheck.) Independently of this flag, the in-memory load check runs whenever stats takes the non-parallel path with non-streaming columns. On OOM (in either NORMAL or CONSERVATIVE mode), qsv auto-creates an index when no index exists (skipped for stdin and for non-default quoting) AND switches to approx quantile + approx cardinality methods (DataSketches t-digest and HyperLogLog) where compatible. The sketch fallback can also fire when an index is already present and the OOM still trips (e.g., when jobs is pinned to 1 on a pre-indexed file). A wwarn is emitted listing the auto-enabled estimators. When modes are computed (with --mode or with the everything option) and no mode cardinality cap is set, approx cardinality is NOT auto-enabled: the exact mode table is kept either way, so it would save nothing. A wwarn suggests --mode-cardinality-cap, which is what bounds that table.',
158
165
  },
159
166
  {
160
167
  displayName: 'Mode',
@@ -177,6 +184,13 @@ exports.StatsDescription = [
177
184
  default: false,
178
185
  description: 'When set, the first row will NOT be interpreted as column names. i.e., They will be included in statistics.',
179
186
  },
187
+ {
188
+ displayName: 'No Quoting',
189
+ name: 'noQuoting',
190
+ type: 'boolean',
191
+ default: false,
192
+ description: 'Read quote characters as ordinary data.',
193
+ },
180
194
  {
181
195
  displayName: 'Nulls',
182
196
  name: 'nulls',
@@ -226,6 +240,13 @@ exports.StatsDescription = [
226
240
  default: false,
227
241
  description: 'Compute the quartiles (using method 3), the IQR, the lower/upper, inner/outer fences and skewness. https://en.wikipedia.org/wiki/Quartile#Method_3',
228
242
  },
243
+ {
244
+ displayName: 'Quote',
245
+ name: 'quote',
246
+ type: 'string',
247
+ default: '"',
248
+ description: 'The quote character for READING CSV data. When this, --escape or --no-quoting is set to other than its default, an index is not used, so the file is not split into chunks computed in parallel: slower on a large file.',
249
+ },
229
250
  {
230
251
  displayName: 'Round',
231
252
  name: 'round',
@@ -63,7 +63,7 @@ exports.SynthesizeDescription = [
63
63
  name: 'correlationThreshold',
64
64
  type: 'number',
65
65
  default: 0.3,
66
- description: 'Minimum absolute Spearman correlation for a pair of columns to stay in a `correlated` relationship. Weakly-correlated members are dropped.',
66
+ description: 'Minimum absolute Spearman correlation for a pair of columns to stay in a `correlated` relationship. Weakly-correlated members are dropped. Categorical members are kept when the strata explain some numeric member by a rank-based correlation ratio at least this high.',
67
67
  },
68
68
  {
69
69
  displayName: 'Delimiter',
@@ -79,6 +79,13 @@ exports.SynthesizeDescription = [
79
79
  default: '',
80
80
  description: 'Data Dictionary JSON file produced by `describegpt --dictionary --infer-content-type --format JSON`. Layers semantic Content Types onto generation. If omitted, generation is purely type/frequency-based.',
81
81
  },
82
+ {
83
+ displayName: 'Format',
84
+ name: 'format',
85
+ type: 'string',
86
+ default: 'csv',
87
+ description: 'Output format: csv, jsonl or parquet. JSONL and Parquet keep each column\'s type: integers and floats as such, dates as Parquet dates (JSONL writes them as strings), empty values as null. A true/false column is written as booleans only if stats types it Boolean (pass it the option `--infer-boolean` via --stats-options); else it is text. A column sampled from real values keeps the type stats gave it only if every value converts unchanged, so a zero-padded code stays text. Parquet needs --output and a qsv built with the polars feature.',
88
+ },
82
89
  {
83
90
  displayName: 'Freq Limit',
84
91
  name: 'freqLimit',
@@ -107,6 +114,20 @@ exports.SynthesizeDescription = [
107
114
  default: 'en',
108
115
  description: 'Locale for faker-backed columns. Case-insensitive. Supported: en, fr_fr, de_de, it_it, pt_br, pt_pt, ja_jp, zh_cn, zh_tw, ar_sa, cy_gb, fa_ir, nl_nl, tr_tr. Sparse locales (those without per-category data in fake-rs) silently fall back to en data for the missing categories — e.g. lorem text under a non-en locale is still English, since only zh_cn has localized lorem data.',
109
116
  },
117
+ {
118
+ displayName: 'Min Count',
119
+ name: 'minCount',
120
+ type: 'number',
121
+ default: 5,
122
+ description: 'Privacy threshold. A real value of an enumerated column, or a real `joint` value-tuple, that occurs fewer than <k> times in <input> is dropped from the values it samples; its share is redistributed over the kept values. An enumerated column whose values are all below <k> falls back to its faker or type-based generator (numeric and date columns to their trimmed range), and a joint group to independent columns, or aborts under the --strict-relationships option. A warning is printed when either happens. 1 disables suppression. Counts are of rows, not people: where one person has many rows (transactions, visits, logs), one person\'s value can pass <k> alone. Raise <k>, or dedupe to one row per person first. Numeric and date ranges, and the gaps of `ordered` relationships, are also trimmed to their k-th smallest and k-th largest values (one extra pass over <input>). A numeric or date column with fewer than 2k-1 non-null values is left empty unless its real values are sampled.',
123
+ },
124
+ {
125
+ displayName: 'Model',
126
+ name: 'model',
127
+ type: 'string',
128
+ default: '',
129
+ description: 'Generate from a model saved with --save-model instead of profiling an input, which must then be omitted. The model fixes everything fitted from the input, so options that shape the fit or read the input are refused when they have no default (for example the --dictionary, --stats-options, the --report and --delimiter options) and ignored when they do (for example the --locale, the --min-count and the frequency limit).',
130
+ },
110
131
  {
111
132
  displayName: 'No Relationships',
112
133
  name: 'noRelationships',
@@ -114,6 +135,20 @@ exports.SynthesizeDescription = [
114
135
  default: false,
115
136
  description: 'Disable inter-column relationship modeling. Every column is generated independently even when the dictionary declares a `relationships` array.',
116
137
  },
138
+ {
139
+ displayName: 'Quantiles',
140
+ name: 'quantiles',
141
+ type: 'number',
142
+ default: 0,
143
+ description: 'Number of equal-share buckets that reproduce the shape of numeric and date columns: 2, 4, 5, 10, 20, 25, 50 or 100. More buckets keep skewed and long-tailed columns closer to the source. 4 (the default) cuts at the source quartiles; other values cut at `stats --percentiles` (real source values). A column with too few non-null values for every bucket to hold more than <k> of them (<k> is set by the --min-count option) gets fewer buckets, or the quartiles. Also applies to the gaps of `ordered` relationships.',
144
+ },
145
+ {
146
+ displayName: 'Report',
147
+ name: 'report',
148
+ type: 'string',
149
+ default: '',
150
+ description: 'Write a JSON report of what the run reproduced from <input>: source and synthetic row counts, how many synthetic rows exactly match a source row (numbers and dates compared by value, other columns as text), and the values and joint tuples dropped by the --min-count option. Takes one extra pass over <input> and holds a hash per distinct source row in memory. A row with a float, free-text or faker column rarely matches exactly, so a low match rate does not by itself show that the output is private. A joint group that falls back to independent columns is listed, and so is each of its columns that also drops values, so suppressed rows can be counted more than once. Must not be the input, dictionary or output file.',
151
+ },
117
152
  {
118
153
  displayName: 'Rows',
119
154
  name: 'rows',
@@ -121,19 +156,33 @@ exports.SynthesizeDescription = [
121
156
  default: 100,
122
157
  description: 'Number of synthetic rows to generate.',
123
158
  },
159
+ {
160
+ displayName: 'Save Model',
161
+ name: 'saveModel',
162
+ type: 'string',
163
+ default: '',
164
+ description: 'Also save the fitted model to <file>, so later runs can generate from it with --model without reading <input> again. A --model run with the same --rows and --seed writes the same rows as this run (pools of fake values are sized for this run\'s --rows). The model holds real values from <input>, some of which the output may never show (see the privacy note above), so share it at least as carefully as the output. Its format is internal to qsv and versioned: a qsv that reads another model version refuses it, and it must be fitted again.',
165
+ },
124
166
  {
125
167
  displayName: 'Seed',
126
168
  name: 'seed',
127
169
  type: 'number',
128
170
  default: 0,
129
- description: 'RNG seed for fully reproducible output.',
171
+ description: 'RNG seed for fully reproducible output. The same seed gives the same rows at any --jobs, unless stats uses approximate estimators: either asked for via --stats-options (e.g. `--quantile-method approx`), or switched on by stats itself (with a warning) when the input won\'t fit in memory.',
172
+ },
173
+ {
174
+ displayName: 'Shard',
175
+ name: 'shard',
176
+ type: 'string',
177
+ default: '',
178
+ description: 'Generate only slice k of N (k from 1 to N) of the rows --rows asks for. Requires --seed. Each slice is a run of whole 8192-row blocks, and slices 1 to N joined in order are the same as one unsharded run: CSV slices with `qsv cat rows`, JSONL slices by plain concatenation, while Parquet slices are separate files to read together as one dataset. Every slice must use the same <input>, options, qsv version and dictionary file, if any (--infer-content-type without --dictionary is refused). Each slice still profiles all of <input> itself, so if stats or frequency warns on one machine that it switched to approximate estimators for lack of memory, that slice comes from a different fit and the joined rows won\'t match one run. Generating the slices from one model saved with --save-model avoids this. Each CSV slice gets a header row (and each Parquet slice its schema) even when it has no rows (when N exceeds the number of blocks). The counts of --report are for this slice only.',
130
179
  },
131
180
  {
132
181
  displayName: 'Stats Options',
133
182
  name: 'statsOptions',
134
183
  type: 'string',
135
184
  default: '',
136
- description: 'Extra options appended to the internal `stats` run. Note: cardinality, quartiles and date inference are always enabled — do not re-specify them here.',
185
+ description: 'Extra options appended to the internal `stats` run. Note: cardinality, quartiles and date inference are always enabled — do not re-specify them here. Column selection (--select/-s) and --weight are rejected; run `qsv select` on <input> first.',
137
186
  },
138
187
  {
139
188
  displayName: 'Strict Relationships',
@@ -142,6 +191,13 @@ exports.SynthesizeDescription = [
142
191
  default: false,
143
192
  description: 'Abort instead of warning-and-degrading when a declared relationship fails validation.',
144
193
  },
194
+ {
195
+ displayName: 'Target',
196
+ name: 'target',
197
+ type: 'string',
198
+ default: '',
199
+ description: 'Generate the other columns conditionally on the class of column <col> (a column name; with no headers, its 0-based index), e.g. a label to train a classifier on. Each row first draws a class by its share of the rows of <input>, then fills every other column from that class\'s own profile, so each column keeps its distribution within each class. A column with at most 50 distinct (trimmed) values is split by value, an empty value being a class of its own; a numeric column with more is split by its quantile buckets (see --quantiles), each class drawn at the share of rows its bucket holds (with tied bucket edges, not the shares of an ordinary fit), and any other column is refused. A class seen in fewer than <k> rows (<k> is set by the --min-count option) is dropped and its share redistributed. Fake-value columns, and columns a class has too few values to profile, use the generator fitted on the whole input, blank rate included (a column blank throughout a class stays blank). A numeric or date column needs at least 2k-1 values in a class, so with the default <k> of 5 a class of fewer than 9 rows takes all of them from the whole input; lower the --min-count to profile small classes, if that is acceptable for privacy. Relationships that name <col> drop it from their members, as do fake-value columns in the classes, and each class fits (and with --strict-relationships, enforces) them on its own rows. Dropping <col> can make a group eligible that an ordinary fit skips (it overlapped an earlier one only on <col>); it still yields to earlier groups, and a `joint` one writes real value-tuples, so a column an ordinary fit fakes can then write real values. `stats` and `frequency` run once more per class, on a temporary copy of <input> split by class.',
200
+ },
145
201
  ],
146
202
  },
147
203
  ];
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const TimebucketpDescription: INodeProperties[];
@@ -0,0 +1,182 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TimebucketpDescription = void 0;
4
+ exports.TimebucketpDescription = [
5
+ {
6
+ displayName: 'Input CSV File Path',
7
+ name: 'inputPath',
8
+ type: 'string',
9
+ required: true,
10
+ default: '',
11
+ description: 'Path to input CSV file on disk or host filesystem',
12
+ displayOptions: {
13
+ show: {
14
+ operation: ['timebucketp'],
15
+ },
16
+ },
17
+ },
18
+ {
19
+ displayName: 'Output File Path',
20
+ name: 'outputPath',
21
+ type: 'string',
22
+ default: '',
23
+ description: 'Optional path to write output file directly to disk (if omitted, results are returned in node output)',
24
+ displayOptions: {
25
+ show: {
26
+ operation: ['timebucketp'],
27
+ },
28
+ },
29
+ },
30
+ {
31
+ displayName: 'Additional Flags',
32
+ name: 'additionalArgs',
33
+ type: 'string',
34
+ default: '',
35
+ description: 'Additional raw command line arguments to pass to qsv timebucketp [⚠️ High memory operation.] (Docs: https://github.com/dathere/qsv/blob/master/docs/help/timebucketp.md)',
36
+ displayOptions: {
37
+ show: {
38
+ operation: ['timebucketp'],
39
+ },
40
+ },
41
+ },
42
+ {
43
+ displayName: 'Options',
44
+ name: 'options',
45
+ type: 'collection',
46
+ placeholder: 'Add Option',
47
+ default: {},
48
+ displayOptions: {
49
+ show: {
50
+ operation: ['timebucketp'],
51
+ },
52
+ },
53
+ options: [
54
+ {
55
+ displayName: 'Agg',
56
+ name: 'agg',
57
+ type: 'string',
58
+ default: 'len',
59
+ description: 'Comma-separated aggregations, as func:column pairs, e.g. sum:sales,mean:temp. The functions are: first, last, sum, min, max, mean, median, quantile@<p> (alias q@<p>, p in [0, 1]), len. Each is output as <column>_<func>, e.g. sales_sum, or temp_quantile_0.95 for quantile@0.95. len takes no column: it counts the rows in each window and is output as "count".',
60
+ },
61
+ {
62
+ displayName: 'Boundaries',
63
+ name: 'boundaries',
64
+ type: 'boolean',
65
+ default: false,
66
+ description: 'Add _lower_boundary and _upper_boundary columns before the index column. Window mode only.',
67
+ },
68
+ {
69
+ displayName: 'By',
70
+ name: 'by',
71
+ type: 'string',
72
+ default: '',
73
+ description: 'Also group by these columns (comma-separated). Windows are computed separately for each group.',
74
+ },
75
+ {
76
+ displayName: 'Closed',
77
+ name: 'closed',
78
+ type: 'string',
79
+ default: '',
80
+ description: 'Which window boundaries are inclusive: left, right, both or none. Defaults to left in window mode and to right in rolling mode.',
81
+ },
82
+ {
83
+ displayName: 'Date Format',
84
+ name: 'dateFormat',
85
+ type: 'string',
86
+ default: '',
87
+ description: 'The strptime format of a text --index column, e.g. %m/%d/%Y or "%d.%m.%Y %H:%M". Without time fields the index is read as dates, otherwise as datetimes.',
88
+ },
89
+ {
90
+ displayName: 'Decimal Comma',
91
+ name: 'decimalComma',
92
+ type: 'boolean',
93
+ default: false,
94
+ description: 'Use comma as decimal separator when READING the input. Note that you will need to specify an alternate --delimiter.',
95
+ },
96
+ {
97
+ displayName: 'Delimiter',
98
+ name: 'delimiter',
99
+ type: 'string',
100
+ default: '',
101
+ description: 'The field delimiter for reading/writing CSV data. Must be a single character. If not set, QSV_DEFAULT_DELIMITER is used, else \',\'. A .tsv/.tab (tab) or .ssv (semicolon) extension on the input or --output file sets that file\'s delimiter. (default: ,)',
102
+ },
103
+ {
104
+ displayName: 'Every',
105
+ name: 'every',
106
+ type: 'string',
107
+ default: '',
108
+ description: 'Start a new window at this interval. Required in window mode.',
109
+ },
110
+ {
111
+ displayName: 'Fill Gaps',
112
+ name: 'fillGaps',
113
+ type: 'boolean',
114
+ default: false,
115
+ description: 'Also emit the empty windows between each group\'s first and last window: count, sum and len are 0 there, and every other aggregation is empty. Window mode only. Requires the default left labels, and cannot be combined with --start-by datapoint or --boundaries.',
116
+ },
117
+ {
118
+ displayName: 'Ignore Errors',
119
+ name: 'ignoreErrors',
120
+ type: 'boolean',
121
+ default: false,
122
+ description: 'Read CSV values that can\'t be parsed as their column\'s type as empty (null) instead of failing. Their rows are kept. This does not relax the index: its values must still parse as dates (or integers), with none empty.',
123
+ },
124
+ {
125
+ displayName: 'Index',
126
+ name: 'index',
127
+ type: 'string',
128
+ default: '',
129
+ description: 'The date, datetime or integer column that defines the windows. Required. The output keeps its name.',
130
+ },
131
+ {
132
+ displayName: 'Infer Len',
133
+ name: 'inferLen',
134
+ type: 'number',
135
+ default: 10000,
136
+ description: 'Number of rows to scan when inferring the schema. Set to 0 to scan the entire file.',
137
+ },
138
+ {
139
+ displayName: 'Label',
140
+ name: 'label',
141
+ type: 'string',
142
+ default: '',
143
+ description: 'The value written to the index column for each window. Window mode only. One of: * left - the window\'s start (the default) * right - the window\'s end * datapoint - the window\'s first index value',
144
+ },
145
+ {
146
+ displayName: 'Offset',
147
+ name: 'offset',
148
+ type: 'string',
149
+ default: '',
150
+ description: 'Shift the window boundaries by this duration. Defaults to 0 in window mode, and to minus --period in rolling mode (a look-back window).',
151
+ },
152
+ {
153
+ displayName: 'Period',
154
+ name: 'period',
155
+ type: 'string',
156
+ default: '',
157
+ description: 'The length of each window. Defaults to --every in window mode. Required in rolling mode.',
158
+ },
159
+ {
160
+ displayName: 'Rolling',
161
+ name: 'rolling',
162
+ type: 'boolean',
163
+ default: false,
164
+ description: 'Use rolling mode (see above).',
165
+ },
166
+ {
167
+ displayName: 'Sorted',
168
+ name: 'sorted',
169
+ type: 'boolean',
170
+ default: false,
171
+ description: 'The input is already sorted by --index, within each group when using --by, so skip timebucketp\'s sort. Unsorted input is then an error, never a wrong result.',
172
+ },
173
+ {
174
+ displayName: 'Start By',
175
+ name: 'startBy',
176
+ type: 'string',
177
+ default: '',
178
+ description: 'Where the first window starts, in window mode only. One of: * window - the --every boundary at or before the first index value (the default) * datapoint - the first index value itself * monday ... sunday - that weekday (weekly --every)',
179
+ },
180
+ ],
181
+ },
182
+ ];
@@ -138,6 +138,13 @@ exports.ValidateDescription = [
138
138
  default: false,
139
139
  description: 'Require the email to have a valid Top-Level Domain (TLD) (e.g. .com, .org, .net, etc.). e.g. "john.doe@example" is VALID if this option is NOT set.',
140
140
  },
141
+ {
142
+ displayName: 'Escape',
143
+ name: 'escape',
144
+ type: 'string',
145
+ default: '',
146
+ description: 'The escape character for reading CSV data, for data that escapes quotes as \\" instead of "". When not set, quotes are escaped by doubling them.',
147
+ },
141
148
  {
142
149
  displayName: 'Fail Fast',
143
150
  name: 'failFast',
@@ -180,6 +187,13 @@ exports.ValidateDescription = [
180
187
  default: false,
181
188
  description: 'When set, the first row will not be interpreted as headers. It will be validated with the rest of the rows. Otherwise, the first row will always appear as the header row in the output. Note that this option is only valid when running in RFC 4180 validation mode as JSON Schema validation requires headers.',
182
189
  },
190
+ {
191
+ displayName: 'No Quoting',
192
+ name: 'noQuoting',
193
+ type: 'boolean',
194
+ default: false,
195
+ description: 'Read quote characters as ordinary data.',
196
+ },
183
197
  {
184
198
  displayName: 'Offline',
185
199
  name: 'offline',
@@ -194,6 +208,13 @@ exports.ValidateDescription = [
194
208
  default: false,
195
209
  description: 'Same as --json, but pretty printed.',
196
210
  },
211
+ {
212
+ displayName: 'Quote',
213
+ name: 'quote',
214
+ type: 'string',
215
+ default: '"',
216
+ description: 'The quote character for reading CSV data. When this, --escape or --no-quoting is set to other than its default, an index is not used. Whatever the quoting read, the valid and invalid split files are written quoted with ", escaped by doubling it.',
217
+ },
197
218
  {
198
219
  displayName: 'Sarif',
199
220
  name: 'sarif',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dartfx/n8n-nodes-qsv",
3
- "version": "0.29.0",
3
+ "version": "0.30.0-staging.0",
4
4
  "description": "n8n community node for datHere QSV ultra-fast tabular data wrangling, stats, and transformations (requires 'qsv' CLI on host)",
5
5
  "keywords": [
6
6
  "n8n-community-node-package",
@@ -55,7 +55,7 @@
55
55
  "tsx": "^4.19.3",
56
56
  "typescript": "^5.7.3"
57
57
  },
58
- "qsvVersion": "29.0.0",
58
+ "qsvVersion": "30.0.0",
59
59
  "scripts": {
60
60
  "build": "tsc && gulp build:icons",
61
61
  "dev": "tsc --watch",