@query-graph/core 1.1.5 → 1.1.7

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.
package/native.js CHANGED
@@ -81,12 +81,12 @@ function requireNative() {
81
81
  const binding = require('@query-graph/core-android-arm64')
82
82
  const bindingPackageVersion = require('@query-graph/core-android-arm64/package.json').version
83
83
  if (
84
- bindingPackageVersion !== '1.1.5' &&
84
+ bindingPackageVersion !== '1.1.7' &&
85
85
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
86
86
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
87
87
  ) {
88
88
  throw new Error(
89
- `Native binding package version mismatch, expected 1.1.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
89
+ `Native binding package version mismatch, expected 1.1.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
90
90
  )
91
91
  }
92
92
  return binding
@@ -103,12 +103,12 @@ function requireNative() {
103
103
  const binding = require('@query-graph/core-android-arm-eabi')
104
104
  const bindingPackageVersion = require('@query-graph/core-android-arm-eabi/package.json').version
105
105
  if (
106
- bindingPackageVersion !== '1.1.5' &&
106
+ bindingPackageVersion !== '1.1.7' &&
107
107
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
108
108
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
109
109
  ) {
110
110
  throw new Error(
111
- `Native binding package version mismatch, expected 1.1.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
111
+ `Native binding package version mismatch, expected 1.1.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
112
112
  )
113
113
  }
114
114
  return binding
@@ -129,12 +129,12 @@ function requireNative() {
129
129
  const binding = require('@query-graph/core-win32-x64-msvc')
130
130
  const bindingPackageVersion = require('@query-graph/core-win32-x64-msvc/package.json').version
131
131
  if (
132
- bindingPackageVersion !== '1.1.5' &&
132
+ bindingPackageVersion !== '1.1.7' &&
133
133
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
134
134
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
135
135
  ) {
136
136
  throw new Error(
137
- `Native binding package version mismatch, expected 1.1.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
137
+ `Native binding package version mismatch, expected 1.1.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
138
138
  )
139
139
  }
140
140
  return binding
@@ -151,12 +151,12 @@ function requireNative() {
151
151
  const binding = require('@query-graph/core-win32-ia32-msvc')
152
152
  const bindingPackageVersion = require('@query-graph/core-win32-ia32-msvc/package.json').version
153
153
  if (
154
- bindingPackageVersion !== '1.1.5' &&
154
+ bindingPackageVersion !== '1.1.7' &&
155
155
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
156
156
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
157
157
  ) {
158
158
  throw new Error(
159
- `Native binding package version mismatch, expected 1.1.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
159
+ `Native binding package version mismatch, expected 1.1.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
160
160
  )
161
161
  }
162
162
  return binding
@@ -173,12 +173,12 @@ function requireNative() {
173
173
  const binding = require('@query-graph/core-win32-arm64-msvc')
174
174
  const bindingPackageVersion = require('@query-graph/core-win32-arm64-msvc/package.json').version
175
175
  if (
176
- bindingPackageVersion !== '1.1.5' &&
176
+ bindingPackageVersion !== '1.1.7' &&
177
177
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
178
178
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
179
179
  ) {
180
180
  throw new Error(
181
- `Native binding package version mismatch, expected 1.1.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
181
+ `Native binding package version mismatch, expected 1.1.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
182
182
  )
183
183
  }
184
184
  return binding
@@ -198,12 +198,12 @@ function requireNative() {
198
198
  const binding = require('@query-graph/core-darwin-universal')
199
199
  const bindingPackageVersion = require('@query-graph/core-darwin-universal/package.json').version
200
200
  if (
201
- bindingPackageVersion !== '1.1.5' &&
201
+ bindingPackageVersion !== '1.1.7' &&
202
202
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
203
203
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
204
204
  ) {
205
205
  throw new Error(
206
- `Native binding package version mismatch, expected 1.1.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
206
+ `Native binding package version mismatch, expected 1.1.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
207
207
  )
208
208
  }
209
209
  return binding
@@ -220,12 +220,12 @@ function requireNative() {
220
220
  const binding = require('@query-graph/core-darwin-x64')
221
221
  const bindingPackageVersion = require('@query-graph/core-darwin-x64/package.json').version
222
222
  if (
223
- bindingPackageVersion !== '1.1.5' &&
223
+ bindingPackageVersion !== '1.1.7' &&
224
224
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
225
225
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
226
226
  ) {
227
227
  throw new Error(
228
- `Native binding package version mismatch, expected 1.1.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
228
+ `Native binding package version mismatch, expected 1.1.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
229
229
  )
230
230
  }
231
231
  return binding
@@ -242,12 +242,12 @@ function requireNative() {
242
242
  const binding = require('@query-graph/core-darwin-arm64')
243
243
  const bindingPackageVersion = require('@query-graph/core-darwin-arm64/package.json').version
244
244
  if (
245
- bindingPackageVersion !== '1.1.5' &&
245
+ bindingPackageVersion !== '1.1.7' &&
246
246
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
247
247
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
248
248
  ) {
249
249
  throw new Error(
250
- `Native binding package version mismatch, expected 1.1.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
250
+ `Native binding package version mismatch, expected 1.1.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
251
251
  )
252
252
  }
253
253
  return binding
@@ -268,12 +268,12 @@ function requireNative() {
268
268
  const binding = require('@query-graph/core-freebsd-x64')
269
269
  const bindingPackageVersion = require('@query-graph/core-freebsd-x64/package.json').version
270
270
  if (
271
- bindingPackageVersion !== '1.1.5' &&
271
+ bindingPackageVersion !== '1.1.7' &&
272
272
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
273
273
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
274
274
  ) {
275
275
  throw new Error(
276
- `Native binding package version mismatch, expected 1.1.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
276
+ `Native binding package version mismatch, expected 1.1.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
277
277
  )
278
278
  }
279
279
  return binding
@@ -290,12 +290,12 @@ function requireNative() {
290
290
  const binding = require('@query-graph/core-freebsd-arm64')
291
291
  const bindingPackageVersion = require('@query-graph/core-freebsd-arm64/package.json').version
292
292
  if (
293
- bindingPackageVersion !== '1.1.5' &&
293
+ bindingPackageVersion !== '1.1.7' &&
294
294
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
295
295
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
296
296
  ) {
297
297
  throw new Error(
298
- `Native binding package version mismatch, expected 1.1.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
298
+ `Native binding package version mismatch, expected 1.1.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
299
299
  )
300
300
  }
301
301
  return binding
@@ -317,12 +317,12 @@ function requireNative() {
317
317
  const binding = require('@query-graph/core-linux-x64-musl')
318
318
  const bindingPackageVersion = require('@query-graph/core-linux-x64-musl/package.json').version
319
319
  if (
320
- bindingPackageVersion !== '1.1.5' &&
320
+ bindingPackageVersion !== '1.1.7' &&
321
321
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
322
322
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
323
323
  ) {
324
324
  throw new Error(
325
- `Native binding package version mismatch, expected 1.1.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
325
+ `Native binding package version mismatch, expected 1.1.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
326
326
  )
327
327
  }
328
328
  return binding
@@ -339,12 +339,12 @@ function requireNative() {
339
339
  const binding = require('@query-graph/core-linux-x64-gnu')
340
340
  const bindingPackageVersion = require('@query-graph/core-linux-x64-gnu/package.json').version
341
341
  if (
342
- bindingPackageVersion !== '1.1.5' &&
342
+ bindingPackageVersion !== '1.1.7' &&
343
343
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
344
344
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
345
345
  ) {
346
346
  throw new Error(
347
- `Native binding package version mismatch, expected 1.1.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
347
+ `Native binding package version mismatch, expected 1.1.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
348
348
  )
349
349
  }
350
350
  return binding
@@ -363,12 +363,12 @@ function requireNative() {
363
363
  const binding = require('@query-graph/core-linux-arm64-musl')
364
364
  const bindingPackageVersion = require('@query-graph/core-linux-arm64-musl/package.json').version
365
365
  if (
366
- bindingPackageVersion !== '1.1.5' &&
366
+ bindingPackageVersion !== '1.1.7' &&
367
367
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
368
368
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
369
369
  ) {
370
370
  throw new Error(
371
- `Native binding package version mismatch, expected 1.1.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
371
+ `Native binding package version mismatch, expected 1.1.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
372
372
  )
373
373
  }
374
374
  return binding
@@ -385,12 +385,12 @@ function requireNative() {
385
385
  const binding = require('@query-graph/core-linux-arm64-gnu')
386
386
  const bindingPackageVersion = require('@query-graph/core-linux-arm64-gnu/package.json').version
387
387
  if (
388
- bindingPackageVersion !== '1.1.5' &&
388
+ bindingPackageVersion !== '1.1.7' &&
389
389
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
390
390
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
391
391
  ) {
392
392
  throw new Error(
393
- `Native binding package version mismatch, expected 1.1.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
393
+ `Native binding package version mismatch, expected 1.1.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
394
394
  )
395
395
  }
396
396
  return binding
@@ -409,12 +409,12 @@ function requireNative() {
409
409
  const binding = require('@query-graph/core-linux-arm-musleabihf')
410
410
  const bindingPackageVersion = require('@query-graph/core-linux-arm-musleabihf/package.json').version
411
411
  if (
412
- bindingPackageVersion !== '1.1.5' &&
412
+ bindingPackageVersion !== '1.1.7' &&
413
413
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
414
414
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
415
415
  ) {
416
416
  throw new Error(
417
- `Native binding package version mismatch, expected 1.1.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
417
+ `Native binding package version mismatch, expected 1.1.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
418
418
  )
419
419
  }
420
420
  return binding
@@ -431,12 +431,12 @@ function requireNative() {
431
431
  const binding = require('@query-graph/core-linux-arm-gnueabihf')
432
432
  const bindingPackageVersion = require('@query-graph/core-linux-arm-gnueabihf/package.json').version
433
433
  if (
434
- bindingPackageVersion !== '1.1.5' &&
434
+ bindingPackageVersion !== '1.1.7' &&
435
435
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
436
436
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
437
437
  ) {
438
438
  throw new Error(
439
- `Native binding package version mismatch, expected 1.1.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
439
+ `Native binding package version mismatch, expected 1.1.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
440
440
  )
441
441
  }
442
442
  return binding
@@ -455,12 +455,12 @@ function requireNative() {
455
455
  const binding = require('@query-graph/core-linux-loong64-musl')
456
456
  const bindingPackageVersion = require('@query-graph/core-linux-loong64-musl/package.json').version
457
457
  if (
458
- bindingPackageVersion !== '1.1.5' &&
458
+ bindingPackageVersion !== '1.1.7' &&
459
459
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
460
460
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
461
461
  ) {
462
462
  throw new Error(
463
- `Native binding package version mismatch, expected 1.1.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
463
+ `Native binding package version mismatch, expected 1.1.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
464
464
  )
465
465
  }
466
466
  return binding
@@ -477,12 +477,12 @@ function requireNative() {
477
477
  const binding = require('@query-graph/core-linux-loong64-gnu')
478
478
  const bindingPackageVersion = require('@query-graph/core-linux-loong64-gnu/package.json').version
479
479
  if (
480
- bindingPackageVersion !== '1.1.5' &&
480
+ bindingPackageVersion !== '1.1.7' &&
481
481
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
482
482
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
483
483
  ) {
484
484
  throw new Error(
485
- `Native binding package version mismatch, expected 1.1.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
485
+ `Native binding package version mismatch, expected 1.1.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
486
486
  )
487
487
  }
488
488
  return binding
@@ -501,12 +501,12 @@ function requireNative() {
501
501
  const binding = require('@query-graph/core-linux-riscv64-musl')
502
502
  const bindingPackageVersion = require('@query-graph/core-linux-riscv64-musl/package.json').version
503
503
  if (
504
- bindingPackageVersion !== '1.1.5' &&
504
+ bindingPackageVersion !== '1.1.7' &&
505
505
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
506
506
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
507
507
  ) {
508
508
  throw new Error(
509
- `Native binding package version mismatch, expected 1.1.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
509
+ `Native binding package version mismatch, expected 1.1.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
510
510
  )
511
511
  }
512
512
  return binding
@@ -523,12 +523,12 @@ function requireNative() {
523
523
  const binding = require('@query-graph/core-linux-riscv64-gnu')
524
524
  const bindingPackageVersion = require('@query-graph/core-linux-riscv64-gnu/package.json').version
525
525
  if (
526
- bindingPackageVersion !== '1.1.5' &&
526
+ bindingPackageVersion !== '1.1.7' &&
527
527
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
528
528
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
529
529
  ) {
530
530
  throw new Error(
531
- `Native binding package version mismatch, expected 1.1.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
531
+ `Native binding package version mismatch, expected 1.1.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
532
532
  )
533
533
  }
534
534
  return binding
@@ -546,12 +546,12 @@ function requireNative() {
546
546
  const binding = require('@query-graph/core-linux-ppc64-gnu')
547
547
  const bindingPackageVersion = require('@query-graph/core-linux-ppc64-gnu/package.json').version
548
548
  if (
549
- bindingPackageVersion !== '1.1.5' &&
549
+ bindingPackageVersion !== '1.1.7' &&
550
550
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
551
551
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
552
552
  ) {
553
553
  throw new Error(
554
- `Native binding package version mismatch, expected 1.1.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
554
+ `Native binding package version mismatch, expected 1.1.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
555
555
  )
556
556
  }
557
557
  return binding
@@ -568,12 +568,12 @@ function requireNative() {
568
568
  const binding = require('@query-graph/core-linux-s390x-gnu')
569
569
  const bindingPackageVersion = require('@query-graph/core-linux-s390x-gnu/package.json').version
570
570
  if (
571
- bindingPackageVersion !== '1.1.5' &&
571
+ bindingPackageVersion !== '1.1.7' &&
572
572
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
573
573
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
574
574
  ) {
575
575
  throw new Error(
576
- `Native binding package version mismatch, expected 1.1.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
576
+ `Native binding package version mismatch, expected 1.1.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
577
577
  )
578
578
  }
579
579
  return binding
@@ -594,12 +594,12 @@ function requireNative() {
594
594
  const binding = require('@query-graph/core-openharmony-arm64')
595
595
  const bindingPackageVersion = require('@query-graph/core-openharmony-arm64/package.json').version
596
596
  if (
597
- bindingPackageVersion !== '1.1.5' &&
597
+ bindingPackageVersion !== '1.1.7' &&
598
598
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
599
599
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
600
600
  ) {
601
601
  throw new Error(
602
- `Native binding package version mismatch, expected 1.1.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
602
+ `Native binding package version mismatch, expected 1.1.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
603
603
  )
604
604
  }
605
605
  return binding
@@ -616,12 +616,12 @@ function requireNative() {
616
616
  const binding = require('@query-graph/core-openharmony-x64')
617
617
  const bindingPackageVersion = require('@query-graph/core-openharmony-x64/package.json').version
618
618
  if (
619
- bindingPackageVersion !== '1.1.5' &&
619
+ bindingPackageVersion !== '1.1.7' &&
620
620
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
621
621
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
622
622
  ) {
623
623
  throw new Error(
624
- `Native binding package version mismatch, expected 1.1.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
624
+ `Native binding package version mismatch, expected 1.1.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
625
625
  )
626
626
  }
627
627
  return binding
@@ -638,12 +638,12 @@ function requireNative() {
638
638
  const binding = require('@query-graph/core-openharmony-arm')
639
639
  const bindingPackageVersion = require('@query-graph/core-openharmony-arm/package.json').version
640
640
  if (
641
- bindingPackageVersion !== '1.1.5' &&
641
+ bindingPackageVersion !== '1.1.7' &&
642
642
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
643
643
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
644
644
  ) {
645
645
  throw new Error(
646
- `Native binding package version mismatch, expected 1.1.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
646
+ `Native binding package version mismatch, expected 1.1.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
647
647
  )
648
648
  }
649
649
  return binding
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@query-graph/core",
3
- "version": "1.1.5",
3
+ "version": "1.1.7",
4
4
  "description": "Native query graph planner and SQL compiler for Node.js",
5
5
  "workspaces": [
6
6
  "packages/*"
@@ -141,9 +141,9 @@
141
141
  },
142
142
  "packageManager": "yarn@4.13.0",
143
143
  "optionalDependencies": {
144
- "@query-graph/core-win32-x64-msvc": "1.1.5",
145
- "@query-graph/core-darwin-x64": "1.1.5",
146
- "@query-graph/core-linux-x64-gnu": "1.1.5",
147
- "@query-graph/core-darwin-arm64": "1.1.5"
144
+ "@query-graph/core-win32-x64-msvc": "1.1.7",
145
+ "@query-graph/core-darwin-x64": "1.1.7",
146
+ "@query-graph/core-linux-x64-gnu": "1.1.7",
147
+ "@query-graph/core-darwin-arm64": "1.1.7"
148
148
  }
149
149
  }
@@ -1,5 +1,6 @@
1
1
  import type {
2
2
  AggregateExpression,
3
+ AllGroupsExpression,
3
4
  AllNullability,
4
5
  AnyNullability,
5
6
  BinaryExpression,
@@ -13,7 +14,9 @@ import type {
13
14
  FirstBySelection,
14
15
  FunctionExpression,
15
16
  GraphDefinition,
17
+ GroupKeyExpression,
16
18
  InExpression,
19
+ InGroupValuesExpression,
17
20
  InParameterExpression,
18
21
  JoinProjectionPath,
19
22
  LikeExpression,
@@ -84,11 +87,14 @@ export interface SourceRef<Key extends string = string, Fields extends FieldSpec
84
87
  >
85
88
  }
86
89
 
90
+ declare const parameterRefBrand: unique symbol
91
+
87
92
  export interface ScalarParameterRef<
88
93
  Name extends string = string,
89
94
  Type extends ScalarType = ScalarType,
90
95
  Required extends boolean = boolean,
91
96
  > extends ParameterDefinition {
97
+ readonly [parameterRefBrand]: true
92
98
  name: Name
93
99
  scalarType: Type
94
100
  shape?: 'scalar'
@@ -100,17 +106,52 @@ export interface ListParameterRef<
100
106
  Type extends ScalarType = ScalarType,
101
107
  Required extends boolean = boolean,
102
108
  > extends ParameterDefinition {
109
+ readonly [parameterRefBrand]: true
103
110
  name: Name
104
111
  scalarType: Type
105
112
  shape: 'list'
106
113
  required?: Required
107
114
  }
108
115
 
116
+ export interface GroupedListParameterRef<
117
+ Name extends string = string,
118
+ Key extends ScalarType = ScalarType,
119
+ Value extends ScalarType = ScalarType,
120
+ Required extends boolean = boolean,
121
+ > extends ParameterDefinition {
122
+ readonly [parameterRefBrand]: true
123
+ name: Name
124
+ scalarType: Value
125
+ shape: 'groupedList'
126
+ keyType: Key
127
+ required?: Required
128
+ }
129
+
130
+ declare const groupValuesRefBrand: unique symbol
131
+
132
+ export interface GroupValuesRef<Type extends ScalarType = ScalarType> {
133
+ readonly [groupValuesRefBrand]: Type
134
+ readonly scope: string
135
+ }
136
+
137
+ export interface GroupedListParameterTypes<Key extends ScalarType = ScalarType, Value extends ScalarType = ScalarType> {
138
+ key: Key
139
+ value: Value
140
+ }
141
+
142
+ export interface GroupScope<Key extends ScalarType = ScalarType, Value extends ScalarType = ScalarType> {
143
+ key: TypedExpression<GroupKeyExpression, Key, false>
144
+ values: GroupValuesRef<Value>
145
+ }
146
+
109
147
  export type ParameterRef<
110
148
  Name extends string = string,
111
149
  Type extends ScalarType = ScalarType,
112
150
  Required extends boolean = boolean,
113
- > = ScalarParameterRef<Name, Type, Required> | ListParameterRef<Name, Type, Required>
151
+ > =
152
+ | ScalarParameterRef<Name, Type, Required>
153
+ | ListParameterRef<Name, Type, Required>
154
+ | GroupedListParameterRef<Name, ScalarType, Type, Required>
114
155
 
115
156
  export type RelationRef<
116
157
  Name extends string = string,
@@ -121,7 +162,7 @@ export type RelationRef<
121
162
  > = RelationDefinition<Name, From, To, Required, Cardinality>
122
163
 
123
164
  export type LiteralInput = null | boolean | string | number
124
- export type ExpressionInput = Expression | LiteralInput | SummaryFieldDefinition
165
+ export type ExpressionInput = Expression | LiteralInput | ScalarParameterRef | SummaryFieldDefinition
125
166
 
126
167
  type NumberLiteralScalarType<Value extends number> = number extends Value
127
168
  ? 'int64' | 'decimal'
@@ -134,26 +175,30 @@ type InputScalarType<Input extends ExpressionInput> =
134
175
  ? Type
135
176
  : Input extends ProjectionFieldDefinition<infer _Path, infer Type, infer _Nullability, infer _SelectedByDefault>
136
177
  ? Type
137
- : Input extends null
138
- ? null
139
- : Input extends boolean
140
- ? 'boolean'
141
- : Input extends string
142
- ? 'string'
143
- : Input extends number
144
- ? NumberLiteralScalarType<Input>
145
- : ScalarType
178
+ : Input extends ScalarParameterRef<infer _Name, infer Type, infer _Required>
179
+ ? Type
180
+ : Input extends null
181
+ ? null
182
+ : Input extends boolean
183
+ ? 'boolean'
184
+ : Input extends string
185
+ ? 'string'
186
+ : Input extends number
187
+ ? NumberLiteralScalarType<Input>
188
+ : ScalarType
146
189
 
147
190
  type InputNullability<Input extends ExpressionInput> =
148
191
  Input extends ExpressionTypeMetadata<infer _Type, infer Nullability>
149
192
  ? Nullability
150
193
  : Input extends ProjectionFieldDefinition<infer _Path, infer _Type, infer Nullability, infer _SelectedByDefault>
151
194
  ? Nullability
152
- : Input extends null
153
- ? true
154
- : Input extends Expression
155
- ? boolean
156
- : false
195
+ : Input extends ScalarParameterRef
196
+ ? false
197
+ : Input extends null
198
+ ? true
199
+ : Input extends Expression
200
+ ? boolean
201
+ : false
157
202
 
158
203
  export type ExpressionScalarType<Input extends ExpressionInput> = InputScalarType<Input>
159
204
  export type ExpressionNullability<Input extends ExpressionInput> = InputNullability<Input>
@@ -176,6 +221,8 @@ type AverageScalarType<Type extends ScalarType | null> = Type extends 'float64'
176
221
  ? 'decimal'
177
222
  : Exclude<Type, null>
178
223
 
224
+ type DivideScalarType<Type extends ScalarType | null> = 'float64' extends Type ? 'float64' : 'decimal'
225
+
179
226
  type InputNullabilities<Inputs extends readonly ExpressionInput[]> = {
180
227
  [Index in keyof Inputs]: InputNullability<Inputs[Index]>
181
228
  }
@@ -188,7 +235,13 @@ export interface FieldTypeOptions {
188
235
  selectable?: boolean
189
236
  }
190
237
 
191
- type OptionNullable<Options extends FieldTypeOptions> = Options extends { nullable: true } ? true : false
238
+ type OptionNullable<Options extends FieldTypeOptions> = Options extends unknown
239
+ ? Options['nullable'] extends infer Nullable
240
+ ? Nullable extends true
241
+ ? true
242
+ : false
243
+ : never
244
+ : never
192
245
  type OptionSelectable<Options extends FieldTypeOptions> = Options extends { selectable: false } ? false : true
193
246
 
194
247
  export function fieldType<const Type extends ScalarType, const Options extends FieldTypeOptions = Record<never, never>>(
@@ -211,18 +264,44 @@ export function requiredParameter<const Name extends string, const Type extends
211
264
  name: Name,
212
265
  scalarType: Type,
213
266
  ): ScalarParameterRef<Name, Type, true>
267
+ export const requiredParam: typeof requiredParameter
214
268
  export function optionalParameter<const Name extends string, const Type extends ScalarType>(
215
269
  name: Name,
216
270
  scalarType: Type,
217
271
  ): ScalarParameterRef<Name, Type, false>
272
+ export const optionalParam: typeof optionalParameter
218
273
  export function requiredListParameter<const Name extends string, const Type extends ScalarType>(
219
274
  name: Name,
220
275
  scalarType: Type,
221
276
  ): ListParameterRef<Name, Type, true>
277
+ export const requiredListParam: typeof requiredListParameter
222
278
  export function optionalListParameter<const Name extends string, const Type extends ScalarType>(
223
279
  name: Name,
224
280
  scalarType: Type,
225
281
  ): ListParameterRef<Name, Type, false>
282
+ export const optionalListParam: typeof optionalListParameter
283
+ export function requiredGroupsParameter<
284
+ const Name extends string,
285
+ const Key extends ScalarType,
286
+ const Value extends ScalarType,
287
+ >(name: Name, types: GroupedListParameterTypes<Key, Value>): GroupedListParameterRef<Name, Key, Value, true>
288
+ export const requiredGroupsParam: typeof requiredGroupsParameter
289
+ export function optionalGroupsParameter<
290
+ const Name extends string,
291
+ const Key extends ScalarType,
292
+ const Value extends ScalarType,
293
+ >(name: Name, types: GroupedListParameterTypes<Key, Value>): GroupedListParameterRef<Name, Key, Value, false>
294
+ export const optionalGroupsParam: typeof optionalGroupsParameter
295
+ export function allGroups<
296
+ const Name extends string,
297
+ const Key extends ScalarType,
298
+ const Value extends ScalarType,
299
+ const Predicate extends ExpressionInput,
300
+ >(
301
+ parameter: GroupedListParameterRef<Name, Key, Value>,
302
+ predicate: (group: GroupScope<Key, Value>) => Predicate,
303
+ ): TypedExpression<AllGroupsExpression<Name>, 'boolean', InputNullability<Predicate>>
304
+ /** @deprecated Pass a scalar parameter reference directly to an expression factory. */
226
305
  export function param<const Name extends string, const Type extends ScalarType>(
227
306
  parameter: ScalarParameterRef<Name, Type>,
228
307
  ): TypedExpression<ParameterExpression<Name>, Type, false>
@@ -233,11 +312,20 @@ export function literal<const Value extends LiteralInput>(
233
312
  export function integer(value: number): TypedExpression<LiteralExpression, 'int64', false>
234
313
  export function decimal(value: string | number): TypedExpression<LiteralExpression, 'decimal', false>
235
314
 
236
- type EqualityNullability<Left extends ExpressionInput, Right extends ExpressionInput> = null extends
237
- | InputScalarType<Left>
238
- | InputScalarType<Right>
315
+ // A null literal becomes IS NULL / IS NOT NULL, so literals do not add equality nullability.
316
+ type EqualityOperandNullability<Input extends ExpressionInput> = Input extends LiteralExpression
239
317
  ? false
240
- : AnyInputNullability<readonly [Left, Right]>
318
+ : InputNullability<Input>
319
+
320
+ type EqualityNullability<Left extends ExpressionInput, Right extends ExpressionInput> = Left extends unknown
321
+ ? Right extends unknown
322
+ ? [InputScalarType<Left>] extends [null]
323
+ ? false
324
+ : [InputScalarType<Right>] extends [null]
325
+ ? false
326
+ : AnyNullability<readonly [EqualityOperandNullability<Left>, EqualityOperandNullability<Right>]>
327
+ : never
328
+ : never
241
329
 
242
330
  export function eq<const Left extends ExpressionInput, const Right extends ExpressionInput>(
243
331
  left: Left,
@@ -282,6 +370,11 @@ export function inParameter<
282
370
  expression: Value,
283
371
  parameter: ListParameterRef<Name, Type>,
284
372
  ): TypedExpression<InParameterExpression<Name>, 'boolean', InputNullability<Value>>
373
+ export function inParameter<const Value extends ExpressionInput, const Type extends ScalarType>(
374
+ expression: Value,
375
+ values: GroupValuesRef<Type>,
376
+ ): TypedExpression<InGroupValuesExpression, 'boolean', InputNullability<Value>>
377
+ export const inParam: typeof inParameter
285
378
  export function or<const Expressions extends readonly ExpressionInput[]>(
286
379
  ...expressions: Expressions
287
380
  ): TypedExpression<ExpressionGroup, 'boolean', AnyInputNullability<Expressions>>
@@ -326,6 +419,25 @@ export function concat<const First extends ExpressionInput, const Rest extends r
326
419
  first: First,
327
420
  ...rest: Rest
328
421
  ): TypedExpression<FunctionExpression, 'string', AllInputNullability<readonly [First, ...Rest]>>
422
+ export function divide<const Left extends ExpressionInput, const Right extends ExpressionInput>(
423
+ left: Left,
424
+ right: Right,
425
+ ): TypedExpression<
426
+ FunctionExpression,
427
+ DivideScalarType<InputScalarType<Left | Right>>,
428
+ AnyInputNullability<readonly [Left, Right]>
429
+ >
430
+ export function truncate<const Value extends ExpressionInput>(
431
+ expression: Value,
432
+ ): TypedExpression<FunctionExpression, Exclude<InputScalarType<Value>, null>, InputNullability<Value>>
433
+ export function modulo<const Left extends ExpressionInput, const Right extends ExpressionInput>(
434
+ left: Left,
435
+ right: Right,
436
+ ): TypedExpression<
437
+ FunctionExpression,
438
+ PromoteScalarType<InputScalarType<Left | Right>>,
439
+ AnyInputNullability<readonly [Left, Right]>
440
+ >
329
441
 
330
442
  export function count(expression?: ExpressionInput): TypedExpression<AggregateExpression, 'int64', false>
331
443
  export function countDistinct(expression: ExpressionInput): TypedExpression<AggregateExpression, 'int64', false>