@rex0220/kintone-sql-tools 3.29.0 → 3.30.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-07-27T22:17:56.515Z",
2
+ "generatedAt": "2026-07-28T01:41:46.779Z",
3
3
  "baseline": "B66 Phase1 initial measured values; no arbitrary size ceiling",
4
4
  "bundles": {
5
5
  "index.cjs": {
6
6
  "inputCount": 96,
7
- "minifiedBytes": 524126,
8
- "gzipBytes": 142745,
7
+ "minifiedBytes": 527726,
8
+ "gzipBytes": 143780,
9
9
  "forbidden": {
10
10
  "mcp-instructions": [],
11
11
  "src-mcp": [],
@@ -24,8 +24,8 @@
24
24
  },
25
25
  "index.mjs": {
26
26
  "inputCount": 96,
27
- "minifiedBytes": 523581,
28
- "gzipBytes": 142412,
27
+ "minifiedBytes": 527181,
28
+ "gzipBytes": 143448,
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": 98,
47
- "minifiedBytes": 524605,
48
- "gzipBytes": 142781,
47
+ "minifiedBytes": 528205,
48
+ "gzipBytes": 143795,
49
49
  "forbidden": {
50
50
  "mcp-instructions": [],
51
51
  "src-mcp": [],
@@ -159,7 +159,7 @@
159
159
  "format": "esm"
160
160
  },
161
161
  "src/converter/selectToKintone.ts": {
162
- "bytes": 28156,
162
+ "bytes": 29239,
163
163
  "imports": [
164
164
  {
165
165
  "path": "../types/ast",
@@ -560,7 +560,7 @@
560
560
  "format": "esm"
561
561
  },
562
562
  "src/core/existingRecordValidation.ts": {
563
- "bytes": 6056,
563
+ "bytes": 6562,
564
564
  "imports": [
565
565
  {
566
566
  "path": "src/core/dmlValidationCandidates.ts",
@@ -1161,7 +1161,7 @@
1161
1161
  "format": "esm"
1162
1162
  },
1163
1163
  "src/execute.ts": {
1164
- "bytes": 454115,
1164
+ "bytes": 461839,
1165
1165
  "imports": [
1166
1166
  {
1167
1167
  "path": "src/lexer/lexer.ts",
@@ -1778,7 +1778,7 @@
1778
1778
  "format": "esm"
1779
1779
  },
1780
1780
  "src/engine-library/index.ts": {
1781
- "bytes": 1101,
1781
+ "bytes": 1160,
1782
1782
  "imports": [
1783
1783
  {
1784
1784
  "path": "src/engine-library/errors.ts",
@@ -1856,7 +1856,7 @@
1856
1856
  "bytesInOutput": 5075
1857
1857
  },
1858
1858
  "src/converter/selectToKintone.ts": {
1859
- "bytesInOutput": 8915
1859
+ "bytesInOutput": 9186
1860
1860
  },
1861
1861
  "src/core/cteInlining.ts": {
1862
1862
  "bytesInOutput": 1224
@@ -1880,7 +1880,7 @@
1880
1880
  "bytesInOutput": 5175
1881
1881
  },
1882
1882
  "src/core/batch.ts": {
1883
- "bytesInOutput": 5499
1883
+ "bytesInOutput": 5518
1884
1884
  },
1885
1885
  "src/core/fieldSemantics.ts": {
1886
1886
  "bytesInOutput": 1368
@@ -1907,7 +1907,7 @@
1907
1907
  "bytesInOutput": 9946
1908
1908
  },
1909
1909
  "src/converter/applyPatchToKintone.ts": {
1910
- "bytesInOutput": 4478
1910
+ "bytesInOutput": 4501
1911
1911
  },
1912
1912
  "src/core/numberPrecision.ts": {
1913
1913
  "bytesInOutput": 870
@@ -1919,7 +1919,7 @@
1919
1919
  "bytesInOutput": 2779
1920
1920
  },
1921
1921
  "src/core/existingRecordValidation.ts": {
1922
- "bytesInOutput": 3341
1922
+ "bytesInOutput": 3491
1923
1923
  },
1924
1924
  "src/core/postImageValidation.ts": {
1925
1925
  "bytesInOutput": 2198
@@ -2048,7 +2048,7 @@
2048
2048
  "bytesInOutput": 412
2049
2049
  },
2050
2050
  "src/execute.ts": {
2051
- "bytesInOutput": 173320
2051
+ "bytesInOutput": 176457
2052
2052
  },
2053
2053
  "src/engine-library/errors.ts": {
2054
2054
  "bytesInOutput": 1306
@@ -2099,7 +2099,7 @@
2099
2099
  "bytesInOutput": 603
2100
2100
  }
2101
2101
  },
2102
- "bytes": 524126
2102
+ "bytes": 527726
2103
2103
  }
2104
2104
  }
2105
2105
  }
@@ -159,7 +159,7 @@
159
159
  "format": "esm"
160
160
  },
161
161
  "src/converter/selectToKintone.ts": {
162
- "bytes": 28156,
162
+ "bytes": 29239,
163
163
  "imports": [
164
164
  {
165
165
  "path": "../types/ast",
@@ -560,7 +560,7 @@
560
560
  "format": "esm"
561
561
  },
562
562
  "src/core/existingRecordValidation.ts": {
563
- "bytes": 6056,
563
+ "bytes": 6562,
564
564
  "imports": [
565
565
  {
566
566
  "path": "src/core/dmlValidationCandidates.ts",
@@ -1161,7 +1161,7 @@
1161
1161
  "format": "esm"
1162
1162
  },
1163
1163
  "src/execute.ts": {
1164
- "bytes": 454115,
1164
+ "bytes": 461839,
1165
1165
  "imports": [
1166
1166
  {
1167
1167
  "path": "src/lexer/lexer.ts",
@@ -1778,7 +1778,7 @@
1778
1778
  "format": "esm"
1779
1779
  },
1780
1780
  "src/engine-library/index.ts": {
1781
- "bytes": 1101,
1781
+ "bytes": 1160,
1782
1782
  "imports": [
1783
1783
  {
1784
1784
  "path": "src/engine-library/errors.ts",
@@ -1860,7 +1860,7 @@
1860
1860
  "bytesInOutput": 5075
1861
1861
  },
1862
1862
  "src/converter/selectToKintone.ts": {
1863
- "bytesInOutput": 8915
1863
+ "bytesInOutput": 9186
1864
1864
  },
1865
1865
  "src/core/cteInlining.ts": {
1866
1866
  "bytesInOutput": 1224
@@ -1884,7 +1884,7 @@
1884
1884
  "bytesInOutput": 5175
1885
1885
  },
1886
1886
  "src/core/batch.ts": {
1887
- "bytesInOutput": 5499
1887
+ "bytesInOutput": 5518
1888
1888
  },
1889
1889
  "src/core/fieldSemantics.ts": {
1890
1890
  "bytesInOutput": 1368
@@ -1911,7 +1911,7 @@
1911
1911
  "bytesInOutput": 9946
1912
1912
  },
1913
1913
  "src/converter/applyPatchToKintone.ts": {
1914
- "bytesInOutput": 4478
1914
+ "bytesInOutput": 4501
1915
1915
  },
1916
1916
  "src/core/numberPrecision.ts": {
1917
1917
  "bytesInOutput": 870
@@ -1923,7 +1923,7 @@
1923
1923
  "bytesInOutput": 2802
1924
1924
  },
1925
1925
  "src/core/existingRecordValidation.ts": {
1926
- "bytesInOutput": 3341
1926
+ "bytesInOutput": 3491
1927
1927
  },
1928
1928
  "src/core/postImageValidation.ts": {
1929
1929
  "bytesInOutput": 2207
@@ -2052,7 +2052,7 @@
2052
2052
  "bytesInOutput": 412
2053
2053
  },
2054
2054
  "src/execute.ts": {
2055
- "bytesInOutput": 173320
2055
+ "bytesInOutput": 176457
2056
2056
  },
2057
2057
  "src/engine-library/errors.ts": {
2058
2058
  "bytesInOutput": 1306
@@ -2106,7 +2106,7 @@
2106
2106
  "bytesInOutput": 16
2107
2107
  }
2108
2108
  },
2109
- "bytes": 523581
2109
+ "bytes": 527181
2110
2110
  }
2111
2111
  }
2112
2112
  }
@@ -159,7 +159,7 @@
159
159
  "format": "esm"
160
160
  },
161
161
  "src/converter/selectToKintone.ts": {
162
- "bytes": 28156,
162
+ "bytes": 29239,
163
163
  "imports": [
164
164
  {
165
165
  "path": "../types/ast",
@@ -560,7 +560,7 @@
560
560
  "format": "esm"
561
561
  },
562
562
  "src/core/existingRecordValidation.ts": {
563
- "bytes": 6056,
563
+ "bytes": 6562,
564
564
  "imports": [
565
565
  {
566
566
  "path": "src/core/dmlValidationCandidates.ts",
@@ -1161,7 +1161,7 @@
1161
1161
  "format": "esm"
1162
1162
  },
1163
1163
  "src/execute.ts": {
1164
- "bytes": 454115,
1164
+ "bytes": 461839,
1165
1165
  "imports": [
1166
1166
  {
1167
1167
  "path": "src/lexer/lexer.ts",
@@ -1778,7 +1778,7 @@
1778
1778
  "format": "esm"
1779
1779
  },
1780
1780
  "src/engine-library/index.ts": {
1781
- "bytes": 1101,
1781
+ "bytes": 1160,
1782
1782
  "imports": [
1783
1783
  {
1784
1784
  "path": "src/engine-library/errors.ts",
@@ -1874,7 +1874,7 @@
1874
1874
  "bytesInOutput": 5075
1875
1875
  },
1876
1876
  "src/converter/selectToKintone.ts": {
1877
- "bytesInOutput": 8915
1877
+ "bytesInOutput": 9186
1878
1878
  },
1879
1879
  "src/core/cteInlining.ts": {
1880
1880
  "bytesInOutput": 1224
@@ -1898,7 +1898,7 @@
1898
1898
  "bytesInOutput": 5175
1899
1899
  },
1900
1900
  "src/core/batch.ts": {
1901
- "bytesInOutput": 5499
1901
+ "bytesInOutput": 5518
1902
1902
  },
1903
1903
  "src/core/fieldSemantics.ts": {
1904
1904
  "bytesInOutput": 1368
@@ -1925,7 +1925,7 @@
1925
1925
  "bytesInOutput": 9946
1926
1926
  },
1927
1927
  "src/converter/applyPatchToKintone.ts": {
1928
- "bytesInOutput": 4478
1928
+ "bytesInOutput": 4501
1929
1929
  },
1930
1930
  "src/core/numberPrecision.ts": {
1931
1931
  "bytesInOutput": 870
@@ -1937,7 +1937,7 @@
1937
1937
  "bytesInOutput": 2802
1938
1938
  },
1939
1939
  "src/core/existingRecordValidation.ts": {
1940
- "bytesInOutput": 3341
1940
+ "bytesInOutput": 3491
1941
1941
  },
1942
1942
  "src/core/postImageValidation.ts": {
1943
1943
  "bytesInOutput": 2207
@@ -2066,7 +2066,7 @@
2066
2066
  "bytesInOutput": 412
2067
2067
  },
2068
2068
  "src/execute.ts": {
2069
- "bytesInOutput": 173320
2069
+ "bytesInOutput": 176457
2070
2070
  },
2071
2071
  "src/engine-library/errors.ts": {
2072
2072
  "bytesInOutput": 1306
@@ -2126,7 +2126,7 @@
2126
2126
  "bytesInOutput": 127
2127
2127
  }
2128
2128
  },
2129
- "bytes": 524605
2129
+ "bytes": 528205
2130
2130
  }
2131
2131
  }
2132
2132
  }
@@ -31,12 +31,29 @@ export interface ReadonlyAppInfo {
31
31
  name: string;
32
32
  description: string;
33
33
  }
34
+ /**
35
+ * Read-only field metadata supplied to the engine.
36
+ *
37
+ * `VALIDATE` only checks constraints present in this metadata. If a BYO client
38
+ * omits `optionOrder`, `required`, or the min/max metadata below, those
39
+ * constraints are not validated and the result can silently contain zero
40
+ * errors. BYO clients must pass the corresponding values from
41
+ * `/k/v1/app/form/fields.json`.
42
+ *
43
+ * `createReadonlyKintoneClient()` supplies these values automatically, so its
44
+ * users do not need to change their client.
45
+ */
34
46
  export interface ReadonlyFieldInfo {
35
47
  code: string;
36
48
  label: string;
37
49
  fieldType: string;
38
50
  optionOrder?: Record<string, number>;
39
51
  sortKind?: "number" | "string";
52
+ required?: boolean;
53
+ minValue?: string;
54
+ maxValue?: string;
55
+ minLength?: string;
56
+ maxLength?: string;
40
57
  inSubtable?: boolean;
41
58
  subtableCode?: string;
42
59
  }
@@ -112,6 +129,13 @@ export interface QueryMetrics {
112
129
  elapsedMs: number;
113
130
  cursorRecordsScanned: number;
114
131
  }
132
+ export type ValidateConstraintCategory = "required" | "length" | "range" | "choice";
133
+ export interface ValidateConstraintMetadata {
134
+ /** Constraint categories present on the fields targeted by VALIDATE. */
135
+ present: ValidateConstraintCategory[];
136
+ /** Known constraint categories absent from the fields targeted by VALIDATE. */
137
+ absent: ValidateConstraintCategory[];
138
+ }
115
139
  export interface QueryResult {
116
140
  type: "query";
117
141
  rows: readonly Readonly<Record<string, string>>[];
@@ -122,6 +146,7 @@ export interface QueryResult {
122
146
  validateStats?: {
123
147
  errorRecords: number;
124
148
  errorCount: number;
149
+ constraintMetadata?: ValidateConstraintMetadata;
125
150
  };
126
151
  metrics: QueryMetrics;
127
152
  }