@rex0220/kintone-sql-tools 3.75.0 → 3.76.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.
@@ -1,11 +1,11 @@
1
1
  {
2
- "generatedAt": "2026-09-03T13:52:07.158Z",
2
+ "generatedAt": "2026-09-03T15:14:36.649Z",
3
3
  "baseline": "B66 Phase1 initial measured values; no arbitrary size ceiling",
4
4
  "bundles": {
5
5
  "index.cjs": {
6
6
  "inputCount": 115,
7
- "minifiedBytes": 690398,
8
- "gzipBytes": 189172,
7
+ "minifiedBytes": 690851,
8
+ "gzipBytes": 189359,
9
9
  "forbidden": {
10
10
  "mcp-instructions": [],
11
11
  "src-mcp": [],
@@ -24,8 +24,8 @@
24
24
  },
25
25
  "index.mjs": {
26
26
  "inputCount": 115,
27
- "minifiedBytes": 689853,
28
- "gzipBytes": 188905,
27
+ "minifiedBytes": 690306,
28
+ "gzipBytes": 189087,
29
29
  "forbidden": {
30
30
  "mcp-instructions": [],
31
31
  "src-mcp": [],
@@ -44,8 +44,8 @@
44
44
  },
45
45
  "ksql-engine.umd.js": {
46
46
  "inputCount": 117,
47
- "minifiedBytes": 690877,
48
- "gzipBytes": 189213,
47
+ "minifiedBytes": 691330,
48
+ "gzipBytes": 189408,
49
49
  "forbidden": {
50
50
  "mcp-instructions": [],
51
51
  "src-mcp": [],
@@ -1342,7 +1342,7 @@
1342
1342
  "format": "esm"
1343
1343
  },
1344
1344
  "src/import/jsonMaterializer.ts": {
1345
- "bytes": 4146,
1345
+ "bytes": 4121,
1346
1346
  "imports": [
1347
1347
  {
1348
1348
  "path": "src/import/jsonDecoder.ts",
@@ -1358,7 +1358,7 @@
1358
1358
  "format": "esm"
1359
1359
  },
1360
1360
  "src/import/materializeDmlSource.ts": {
1361
- "bytes": 5608,
1361
+ "bytes": 5639,
1362
1362
  "imports": [
1363
1363
  {
1364
1364
  "path": "src/import/csvDecoder.ts",
@@ -1384,7 +1384,7 @@
1384
1384
  "format": "esm"
1385
1385
  },
1386
1386
  "src/import/importRecordsMaterializer.ts": {
1387
- "bytes": 7833,
1387
+ "bytes": 7835,
1388
1388
  "imports": [
1389
1389
  {
1390
1390
  "path": "src/import/csvDecoder.ts",
@@ -1446,7 +1446,7 @@
1446
1446
  "format": "esm"
1447
1447
  },
1448
1448
  "src/execute.ts": {
1449
- "bytes": 633278,
1449
+ "bytes": 635459,
1450
1450
  "imports": [
1451
1451
  {
1452
1452
  "path": "src/lexer/lexer.ts",
@@ -2430,13 +2430,13 @@
2430
2430
  "bytesInOutput": 1388
2431
2431
  },
2432
2432
  "src/import/jsonMaterializer.ts": {
2433
- "bytesInOutput": 1973
2433
+ "bytesInOutput": 2013
2434
2434
  },
2435
2435
  "src/import/materializeDmlSource.ts": {
2436
- "bytesInOutput": 2490
2436
+ "bytesInOutput": 2586
2437
2437
  },
2438
2438
  "src/import/importRecordsMaterializer.ts": {
2439
- "bytesInOutput": 3344
2439
+ "bytesInOutput": 3428
2440
2440
  },
2441
2441
  "src/import/importRecordValidation.ts": {
2442
2442
  "bytesInOutput": 3332
@@ -2460,7 +2460,7 @@
2460
2460
  "bytesInOutput": 412
2461
2461
  },
2462
2462
  "src/execute.ts": {
2463
- "bytesInOutput": 243995
2463
+ "bytesInOutput": 244228
2464
2464
  },
2465
2465
  "src/engine-library/errors.ts": {
2466
2466
  "bytesInOutput": 1441
@@ -2517,7 +2517,7 @@
2517
2517
  "bytesInOutput": 1446
2518
2518
  }
2519
2519
  },
2520
- "bytes": 690398
2520
+ "bytes": 690851
2521
2521
  }
2522
2522
  }
2523
2523
  }
@@ -1342,7 +1342,7 @@
1342
1342
  "format": "esm"
1343
1343
  },
1344
1344
  "src/import/jsonMaterializer.ts": {
1345
- "bytes": 4146,
1345
+ "bytes": 4121,
1346
1346
  "imports": [
1347
1347
  {
1348
1348
  "path": "src/import/jsonDecoder.ts",
@@ -1358,7 +1358,7 @@
1358
1358
  "format": "esm"
1359
1359
  },
1360
1360
  "src/import/materializeDmlSource.ts": {
1361
- "bytes": 5608,
1361
+ "bytes": 5639,
1362
1362
  "imports": [
1363
1363
  {
1364
1364
  "path": "src/import/csvDecoder.ts",
@@ -1384,7 +1384,7 @@
1384
1384
  "format": "esm"
1385
1385
  },
1386
1386
  "src/import/importRecordsMaterializer.ts": {
1387
- "bytes": 7833,
1387
+ "bytes": 7835,
1388
1388
  "imports": [
1389
1389
  {
1390
1390
  "path": "src/import/csvDecoder.ts",
@@ -1446,7 +1446,7 @@
1446
1446
  "format": "esm"
1447
1447
  },
1448
1448
  "src/execute.ts": {
1449
- "bytes": 633278,
1449
+ "bytes": 635459,
1450
1450
  "imports": [
1451
1451
  {
1452
1452
  "path": "src/lexer/lexer.ts",
@@ -2434,13 +2434,13 @@
2434
2434
  "bytesInOutput": 1388
2435
2435
  },
2436
2436
  "src/import/jsonMaterializer.ts": {
2437
- "bytesInOutput": 1973
2437
+ "bytesInOutput": 2013
2438
2438
  },
2439
2439
  "src/import/materializeDmlSource.ts": {
2440
- "bytesInOutput": 2490
2440
+ "bytesInOutput": 2586
2441
2441
  },
2442
2442
  "src/import/importRecordsMaterializer.ts": {
2443
- "bytesInOutput": 3344
2443
+ "bytesInOutput": 3428
2444
2444
  },
2445
2445
  "src/import/importRecordValidation.ts": {
2446
2446
  "bytesInOutput": 3332
@@ -2464,7 +2464,7 @@
2464
2464
  "bytesInOutput": 412
2465
2465
  },
2466
2466
  "src/execute.ts": {
2467
- "bytesInOutput": 243995
2467
+ "bytesInOutput": 244228
2468
2468
  },
2469
2469
  "src/engine-library/errors.ts": {
2470
2470
  "bytesInOutput": 1441
@@ -2524,7 +2524,7 @@
2524
2524
  "bytesInOutput": 16
2525
2525
  }
2526
2526
  },
2527
- "bytes": 689853
2527
+ "bytes": 690306
2528
2528
  }
2529
2529
  }
2530
2530
  }
@@ -1342,7 +1342,7 @@
1342
1342
  "format": "esm"
1343
1343
  },
1344
1344
  "src/import/jsonMaterializer.ts": {
1345
- "bytes": 4146,
1345
+ "bytes": 4121,
1346
1346
  "imports": [
1347
1347
  {
1348
1348
  "path": "src/import/jsonDecoder.ts",
@@ -1358,7 +1358,7 @@
1358
1358
  "format": "esm"
1359
1359
  },
1360
1360
  "src/import/materializeDmlSource.ts": {
1361
- "bytes": 5608,
1361
+ "bytes": 5639,
1362
1362
  "imports": [
1363
1363
  {
1364
1364
  "path": "src/import/csvDecoder.ts",
@@ -1384,7 +1384,7 @@
1384
1384
  "format": "esm"
1385
1385
  },
1386
1386
  "src/import/importRecordsMaterializer.ts": {
1387
- "bytes": 7833,
1387
+ "bytes": 7835,
1388
1388
  "imports": [
1389
1389
  {
1390
1390
  "path": "src/import/csvDecoder.ts",
@@ -1446,7 +1446,7 @@
1446
1446
  "format": "esm"
1447
1447
  },
1448
1448
  "src/execute.ts": {
1449
- "bytes": 633278,
1449
+ "bytes": 635459,
1450
1450
  "imports": [
1451
1451
  {
1452
1452
  "path": "src/lexer/lexer.ts",
@@ -2448,13 +2448,13 @@
2448
2448
  "bytesInOutput": 1388
2449
2449
  },
2450
2450
  "src/import/jsonMaterializer.ts": {
2451
- "bytesInOutput": 1973
2451
+ "bytesInOutput": 2013
2452
2452
  },
2453
2453
  "src/import/materializeDmlSource.ts": {
2454
- "bytesInOutput": 2490
2454
+ "bytesInOutput": 2586
2455
2455
  },
2456
2456
  "src/import/importRecordsMaterializer.ts": {
2457
- "bytesInOutput": 3344
2457
+ "bytesInOutput": 3428
2458
2458
  },
2459
2459
  "src/import/importRecordValidation.ts": {
2460
2460
  "bytesInOutput": 3332
@@ -2478,7 +2478,7 @@
2478
2478
  "bytesInOutput": 412
2479
2479
  },
2480
2480
  "src/execute.ts": {
2481
- "bytesInOutput": 243995
2481
+ "bytesInOutput": 244228
2482
2482
  },
2483
2483
  "src/engine-library/errors.ts": {
2484
2484
  "bytesInOutput": 1441
@@ -2544,7 +2544,7 @@
2544
2544
  "bytesInOutput": 127
2545
2545
  }
2546
2546
  },
2547
- "bytes": 690877
2547
+ "bytes": 691330
2548
2548
  }
2549
2549
  }
2550
2550
  }
@@ -12,4 +12,4 @@ export declare function executeStatement(statement: Statement, context: Executio
12
12
  export declare function disposeExecutionContext(context: ExecutionContext): Promise<void>;
13
13
  export { isDmlResult } from "./publicTypes";
14
14
  export { createImportSourceResolver, createKintoneClient, FlowImportProviderError, KsqlFlowError };
15
- export type { CreateExecutionContextOptions, CreateKintoneClientConfig, Diagnostic, DiagnosticCode, ExecutionContext, ExplainScriptOptions, ExplainScriptResult, FieldInfo, FlowImportProviderErrorCode, FlowImportSourceLoader, FlowImportSourcePayload, FlowImportSourceResolver, FlowNamedImportSource, FlowChunkWrittenInfo, FlowDeleteResult, FlowDmlResult, FlowInsertResult, FlowKintoneClient, KintoneNativeUpdateKey, KintoneNativeUpsertRecord, KintoneNativeUpsertParams, KintoneNativeUpsertRecordResult, KintoneNativeUpsertResult, FlowUpdateResult, FlowUpsertResult, ImportEncoding, ParseScriptOptions, ParseScriptResult, PreviewResult, PreviewSample, PreviewStatementOptions, SchemaResolver, ScriptHeaderMeta, Statement, StatementResult, StatementResultKind, ValidateScriptOptions, } from "./publicTypes";
15
+ export type { CreateExecutionContextOptions, CreateKintoneClientConfig, Diagnostic, DiagnosticCode, ExecutionContext, ExplainScriptOptions, ExplainScriptResult, FieldInfo, FlowImportProviderErrorCode, FlowImportSourceLoader, FlowImportSourceMaterializedInfo, FlowImportSourcePayload, FlowImportSourceResolver, FlowNamedImportSource, FlowChunkWrittenInfo, FlowDeleteResult, FlowDmlResult, FlowInsertResult, FlowKintoneClient, KintoneNativeUpdateKey, KintoneNativeUpsertRecord, KintoneNativeUpsertParams, KintoneNativeUpsertRecordResult, KintoneNativeUpsertResult, FlowUpdateResult, FlowUpsertResult, ImportEncoding, ParseScriptOptions, ParseScriptResult, PreviewResult, PreviewSample, PreviewStatementOptions, SchemaResolver, ScriptHeaderMeta, Statement, StatementResult, StatementResultKind, ValidateScriptOptions, } from "./publicTypes";
@@ -139,6 +139,18 @@ export interface FlowNamedImportSource {
139
139
  readonly name: string;
140
140
  readonly loader: FlowImportSourceLoader;
141
141
  }
142
+ export interface FlowImportSourceMaterializedInfo {
143
+ /** バッチ内の文 index。StatementResult.index と同じ0始まり。 */
144
+ readonly statementIndex: number;
145
+ /** SQL の FROM CSV <name> / FROM JSON <name> で指定された source name。 */
146
+ readonly name: string;
147
+ /** materialize した source 種別。 */
148
+ readonly kind: "CSV" | "JSON";
149
+ /** decoder が返した物理 input record 数。CSV は header 除外、JSON は top-level record 数。 */
150
+ readonly rows: number;
151
+ /** SQL、payload、既定値を解決した後の有効文字コード。 */
152
+ readonly encoding: ImportEncoding;
153
+ }
142
154
  export type FlowImportProviderErrorCode = "ImportSourceReadError" | "ImportSourceNotRegularFileError";
143
155
  export interface ParseScriptOptions {
144
156
  apps?: Readonly<Record<string, number>>;
@@ -208,6 +220,11 @@ export interface CreateExecutionContextOptions extends ParseScriptOptions {
208
220
  continueOnError?: boolean;
209
221
  /** Named, path-free source resolver. It never enables IMPORT implicitly. */
210
222
  importSource?: FlowImportSourceResolver;
223
+ /**
224
+ * IMPORT source の raw materialize 成功直後、mutation 前に1回 await される。
225
+ * throw/reject は当該文を error にし、その文の mutation は0回となる。
226
+ */
227
+ onImportSourceMaterialized?: (info: FlowImportSourceMaterializedInfo) => void | Promise<void>;
211
228
  /** 素の UPSERT で native UPSERT を許可する。省略時は true。 */
212
229
  enableNativeUpsert?: boolean;
213
230
  /**