@react-querybuilder/core 8.22.4 → 8.23.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.
Files changed (120) hide show
  1. package/derivations/package.json +4 -0
  2. package/dist/cjs/react-querybuilder_core.cjs.development.d.ts +2095 -1649
  3. package/dist/cjs/react-querybuilder_core.cjs.development.js +1295 -424
  4. package/dist/cjs/react-querybuilder_core.cjs.development.js.map +1 -1
  5. package/dist/cjs/react-querybuilder_core.cjs.production.d.ts +2095 -1649
  6. package/dist/cjs/react-querybuilder_core.cjs.production.js +1 -1
  7. package/dist/cjs/react-querybuilder_core.cjs.production.js.map +1 -1
  8. package/dist/{convertQuery-Cw76XFIn.js → convertQuery-BLT0GIhM.js} +17 -8
  9. package/dist/{convertQuery-Cw76XFIn.js.map → convertQuery-BLT0GIhM.js.map} +1 -1
  10. package/dist/{convertQuery-D_4J7E-Z.mjs → convertQuery-DaXv3h7S.mjs} +6 -3
  11. package/dist/{convertQuery-D_4J7E-Z.mjs.map → convertQuery-DaXv3h7S.mjs.map} +1 -1
  12. package/dist/derivations.d.mts +2902 -0
  13. package/dist/derivations.d.ts +2902 -0
  14. package/dist/derivations.js +2845 -0
  15. package/dist/derivations.js.map +1 -0
  16. package/dist/derivations.mjs +2678 -0
  17. package/dist/derivations.mjs.map +1 -0
  18. package/dist/formatQuery.d.mts +2 -862
  19. package/dist/formatQuery.d.ts +2 -862
  20. package/dist/formatQuery.js +122 -142
  21. package/dist/formatQuery.js.map +1 -1
  22. package/dist/formatQuery.mjs +10 -30
  23. package/dist/formatQuery.mjs.map +1 -1
  24. package/dist/{import-DVWI7Fdh.d.mts → import-BdKPtLzo.d.mts} +2 -2
  25. package/dist/{import-6ExjhifL.d.ts → import-BfZTwhp2.d.ts} +2 -2
  26. package/dist/{index-CX9mehdL.d.mts → index-DOIE2pwx.d.mts} +274 -3
  27. package/dist/{index-CX9mehdL.d.ts → index-DOIE2pwx.d.ts} +274 -3
  28. package/dist/index-OF2Q1gTp.d.mts +895 -0
  29. package/dist/index-XueTy_XQ.d.ts +895 -0
  30. package/dist/isRuleOrGroupValid-CIMZNkt4.mjs +27 -0
  31. package/dist/isRuleOrGroupValid-CIMZNkt4.mjs.map +1 -0
  32. package/dist/isRuleOrGroupValid-CtUf4_4x.js +38 -0
  33. package/dist/isRuleOrGroupValid-CtUf4_4x.js.map +1 -0
  34. package/dist/{isRuleGroup-CqLThsbu.mjs → objectUtils-DDZ-KhV5.mjs} +25 -2
  35. package/dist/objectUtils-DDZ-KhV5.mjs.map +1 -0
  36. package/dist/{isRuleGroup-0JNiQgLg.js → objectUtils-DfnEmDSV.js} +48 -1
  37. package/dist/objectUtils-DfnEmDSV.js.map +1 -0
  38. package/dist/parseCEL.d.mts +2 -2
  39. package/dist/parseCEL.d.ts +2 -2
  40. package/dist/parseCEL.js +19 -16
  41. package/dist/parseCEL.js.map +1 -1
  42. package/dist/parseCEL.mjs +12 -9
  43. package/dist/parseCEL.mjs.map +1 -1
  44. package/dist/parseCypher.d.mts +1 -1
  45. package/dist/parseCypher.d.ts +1 -1
  46. package/dist/parseGremlin.d.mts +1 -1
  47. package/dist/parseGremlin.d.ts +1 -1
  48. package/dist/parseJSONata.d.mts +2 -2
  49. package/dist/parseJSONata.d.ts +2 -2
  50. package/dist/parseJSONata.js +17 -14
  51. package/dist/parseJSONata.js.map +1 -1
  52. package/dist/parseJSONata.mjs +11 -8
  53. package/dist/parseJSONata.mjs.map +1 -1
  54. package/dist/parseJsonLogic.d.mts +2 -2
  55. package/dist/parseJsonLogic.d.ts +2 -2
  56. package/dist/parseJsonLogic.js +38 -38
  57. package/dist/parseJsonLogic.js.map +1 -1
  58. package/dist/parseJsonLogic.mjs +5 -5
  59. package/dist/parseMongoDB.d.mts +2 -2
  60. package/dist/parseMongoDB.d.ts +2 -2
  61. package/dist/parseMongoDB.js +50 -47
  62. package/dist/parseMongoDB.js.map +1 -1
  63. package/dist/parseMongoDB.mjs +35 -32
  64. package/dist/parseMongoDB.mjs.map +1 -1
  65. package/dist/parseSPARQL.d.mts +1 -1
  66. package/dist/parseSPARQL.d.ts +1 -1
  67. package/dist/parseSQL.d.mts +2 -2
  68. package/dist/parseSQL.d.ts +2 -2
  69. package/dist/parseSQL.js +27 -23
  70. package/dist/parseSQL.js.map +1 -1
  71. package/dist/parseSQL.mjs +21 -17
  72. package/dist/parseSQL.mjs.map +1 -1
  73. package/dist/parseSpEL.d.mts +2 -2
  74. package/dist/parseSpEL.d.ts +2 -2
  75. package/dist/parseSpEL.js +16 -13
  76. package/dist/parseSpEL.js.map +1 -1
  77. package/dist/parseSpEL.mjs +12 -9
  78. package/dist/parseSpEL.mjs.map +1 -1
  79. package/dist/parserUtils-BKPstAaO.mjs +30 -0
  80. package/dist/parserUtils-BKPstAaO.mjs.map +1 -0
  81. package/dist/parserUtils-DbBXyAht.js +41 -0
  82. package/dist/parserUtils-DbBXyAht.js.map +1 -0
  83. package/dist/{prepareQueryObjects-BnGL91Tt.js → prepareQueryObjects-Dj9cTl9D.js} +90 -63
  84. package/dist/prepareQueryObjects-Dj9cTl9D.js.map +1 -0
  85. package/dist/{prepareQueryObjects-ChINDIap.mjs → prepareQueryObjects-Dmyf3Wi_.mjs} +56 -59
  86. package/dist/prepareQueryObjects-Dmyf3Wi_.mjs.map +1 -0
  87. package/dist/react-querybuilder_core.d.mts +2095 -1649
  88. package/dist/react-querybuilder_core.legacy-esm.d.ts +2095 -1649
  89. package/dist/react-querybuilder_core.legacy-esm.js +1447 -637
  90. package/dist/react-querybuilder_core.legacy-esm.js.map +1 -1
  91. package/dist/react-querybuilder_core.mjs +1290 -426
  92. package/dist/react-querybuilder_core.mjs.map +1 -1
  93. package/dist/react-querybuilder_core.production.d.mts +2095 -1649
  94. package/dist/react-querybuilder_core.production.mjs +1 -1
  95. package/dist/react-querybuilder_core.production.mjs.map +1 -1
  96. package/dist/transformQuery-B7d9AWUf.d.mts +116 -0
  97. package/dist/transformQuery-BXDiUBGB.d.ts +116 -0
  98. package/dist/transformQuery.d.mts +2 -116
  99. package/dist/transformQuery.d.ts +2 -116
  100. package/dist/transformQuery.js +3 -4
  101. package/dist/transformQuery.js.map +1 -1
  102. package/dist/transformQuery.mjs +1 -2
  103. package/dist/transformQuery.mjs.map +1 -1
  104. package/dist/utils-CP5Jqy1P.mjs +1294 -0
  105. package/dist/utils-CP5Jqy1P.mjs.map +1 -0
  106. package/dist/utils-e-7KHkjV.js +1779 -0
  107. package/dist/utils-e-7KHkjV.js.map +1 -0
  108. package/package.json +34 -23
  109. package/dist/isRuleGroup-0JNiQgLg.js.map +0 -1
  110. package/dist/isRuleGroup-CqLThsbu.mjs.map +0 -1
  111. package/dist/objectUtils-Cr02aGxb.js +0 -27
  112. package/dist/objectUtils-Cr02aGxb.js.map +0 -1
  113. package/dist/objectUtils-DBlmJgBf.mjs +0 -16
  114. package/dist/objectUtils-DBlmJgBf.mjs.map +0 -1
  115. package/dist/prepareQueryObjects-BnGL91Tt.js.map +0 -1
  116. package/dist/prepareQueryObjects-ChINDIap.mjs.map +0 -1
  117. package/dist/utils-4k-j5FBa.mjs +0 -537
  118. package/dist/utils-4k-j5FBa.mjs.map +0 -1
  119. package/dist/utils-C79dxwZb.js +0 -752
  120. package/dist/utils-C79dxwZb.js.map +0 -1
@@ -1,862 +1,2 @@
1
- import { E as RuleGroupTypeAny, I as SetRequired, N as RuleType, S as ValueProcessorOptions, _ as RuleGroupProcessor, a as DiagnosticsResult, b as ValueProcessorByRule, c as ExportOperatorMap, d as NLTranslationKey, f as NLTranslations, h as RQBJsonLogic, i as ConstituentWordOrder, l as FormatQueryOptions, m as ParameterizedSQL, o as ExportFormat, p as ParameterizedNamedSQL, s as ExportObjectFormats, u as GroupVariantCondition, v as RuleProcessor, x as ValueProcessorLegacy, y as SQLPreset } from "./index-CX9mehdL.mjs";
2
- import { Column, Operators, SQL, Table } from "drizzle-orm";
3
- import { WhereOptions } from "sequelize";
4
- import { eq } from "@tanstack/db";
5
- //#region src/utils/formatQuery/defaultRuleProcessorCEL.d.ts
6
- /**
7
- * Default rule processor used by {@link formatQuery} for "cel" format.
8
- *
9
- * @group Export
10
- */
11
- declare const defaultRuleProcessorCEL: RuleProcessor;
12
- //#endregion
13
- //#region src/utils/formatQuery/defaultRuleProcessorMongoDB.d.ts
14
- /**
15
- * Default rule processor used by {@link formatQuery} for "mongodb" format.
16
- *
17
- * Note that the "mongodb" format is deprecated in favor of the "mongodb_query" format.
18
- *
19
- * @group Export
20
- */
21
- declare const defaultRuleProcessorMongoDB: RuleProcessor;
22
- //#endregion
23
- //#region src/utils/formatQuery/defaultRuleProcessorSpEL.d.ts
24
- /**
25
- * Default rule processor used by {@link formatQuery} for "spel" format.
26
- *
27
- * @group Export
28
- */
29
- declare const defaultRuleProcessorSpEL: RuleProcessor;
30
- //#endregion
31
- //#region src/utils/formatQuery/defaultValueProcessorByRule.d.ts
32
- /**
33
- * Default value processor used by {@link formatQuery} for "sql" format.
34
- *
35
- * @group Export
36
- */
37
- declare const defaultValueProcessorByRule: ValueProcessorByRule;
38
- //#endregion
39
- //#region src/utils/formatQuery/defaultRuleGroupProcessorCEL.d.ts
40
- /**
41
- * Rule group processor used by {@link formatQuery} for "cel" format.
42
- *
43
- * @group Export
44
- */
45
- declare const defaultRuleGroupProcessorCEL: RuleGroupProcessor<string>;
46
- //#endregion
47
- //#region src/utils/formatQuery/defaultRuleGroupProcessorCypher.d.ts
48
- /**
49
- * Maps a {@link DefaultCombinatorName} to a Cypher combinator keyword.
50
- *
51
- * @group Export
52
- */
53
- declare const cypherCombinatorMap: {
54
- and: "AND";
55
- or: "OR";
56
- };
57
- /**
58
- * Rule group processor used by {@link formatQuery} for "cypher" and "gql" formats.
59
- *
60
- * @group Export
61
- */
62
- declare const defaultRuleGroupProcessorCypher: RuleGroupProcessor<string>;
63
- //#endregion
64
- //#region src/utils/formatQuery/defaultRuleGroupProcessorDrizzle.d.ts
65
- /**
66
- * Default rule group processor used by {@link formatQuery} for the "drizzle" format. The returned
67
- * function can be assigned to the `where` property in the Drizzle relational queries API.
68
- *
69
- * @example
70
- * const where = formatQuery(query, 'drizzle');
71
- * const results = db.query.users.findMany({ where });
72
- *
73
- * @returns Function that takes a Drizzle table config and an object of Drizzle operators.
74
- *
75
- * @group Export
76
- */
77
- declare const defaultRuleGroupProcessorDrizzle: RuleGroupProcessor<(columns: Record<string, Column> | Table, drizzleOperators: Operators) => SQL | undefined>;
78
- //#endregion
79
- //#region src/utils/formatQuery/defaultRuleGroupProcessorElasticSearch.d.ts
80
- /**
81
- * Rule group processor used by {@link formatQuery} for "elasticsearch" format.
82
- *
83
- * @group Export
84
- */
85
- declare const defaultRuleGroupProcessorElasticSearch: RuleGroupProcessor<Record<string, unknown>>;
86
- //#endregion
87
- //#region src/utils/formatQuery/defaultRuleGroupProcessorGremlin.d.ts
88
- /**
89
- * Rule group processor used by {@link formatQuery} for "gremlin" format.
90
- *
91
- * At the top level, filter rules produce chained `.has()` steps (implicit AND).
92
- * Nested groups use `.and()` / `.or()` / `.not()` compound traversals with
93
- * `__` anonymous traversal prefixes.
94
- *
95
- * @group Export
96
- */
97
- declare const defaultRuleGroupProcessorGremlin: RuleGroupProcessor<string>;
98
- //#endregion
99
- //#region src/utils/formatQuery/defaultRuleGroupProcessorJSONata.d.ts
100
- /**
101
- * Rule group processor used by {@link formatQuery} for "jsonata" format.
102
- *
103
- * @group Export
104
- */
105
- declare const defaultRuleGroupProcessorJSONata: RuleGroupProcessor<string>;
106
- //#endregion
107
- //#region src/utils/formatQuery/defaultRuleGroupProcessorJsonLogic.d.ts
108
- /**
109
- * Rule group processor used by {@link formatQuery} for "jsonlogic" format.
110
- *
111
- * @group Export
112
- */
113
- declare const defaultRuleGroupProcessorJsonLogic: RuleGroupProcessor<RQBJsonLogic>;
114
- //#endregion
115
- //#region src/utils/formatQuery/defaultRuleGroupProcessorLDAP.d.ts
116
- /**
117
- * Rule group processor used by {@link formatQuery} for "ldap" format.
118
- *
119
- * @group Export
120
- */
121
- declare const defaultRuleGroupProcessorLDAP: RuleGroupProcessor<string>;
122
- //#endregion
123
- //#region src/utils/formatQuery/defaultRuleGroupProcessorMongoDB.d.ts
124
- /**
125
- * Rule group processor used by {@link formatQuery} for "mongodb" format.
126
- *
127
- * Note that the "mongodb" format is deprecated in favor of the "mongodb_query" format.
128
- *
129
- * @group Export
130
- */
131
- declare const defaultRuleGroupProcessorMongoDB: RuleGroupProcessor<string>;
132
- //#endregion
133
- //#region src/utils/formatQuery/defaultRuleGroupProcessorMongoDBQuery.d.ts
134
- /**
135
- * Default fallback object used by {@link formatQuery} for "mongodb_query" format.
136
- *
137
- * @group Export
138
- */
139
- declare const mongoDbFallback: {
140
- readonly $and: readonly [{
141
- readonly $expr: true;
142
- }];
143
- };
144
- /**
145
- * Rule group processor used by {@link formatQuery} for "mongodb_query" format.
146
- *
147
- * @group Export
148
- */
149
- declare const defaultRuleGroupProcessorMongoDBQuery: RuleGroupProcessor;
150
- //#endregion
151
- //#region src/utils/formatQuery/defaultRuleGroupProcessorNL.d.ts
152
- /**
153
- * Rule group processor used by {@link formatQuery} for "natural_language" format.
154
- *
155
- * @group Export
156
- */
157
- declare const defaultRuleGroupProcessorNL: RuleGroupProcessor<string>;
158
- //#endregion
159
- //#region src/utils/formatQuery/defaultRuleGroupProcessorParameterized.d.ts
160
- /**
161
- * Rule group processor used by {@link formatQuery} for "parameterized" and
162
- * "parameterized_named" formats.
163
- *
164
- * @group Export
165
- */
166
- declare const defaultRuleGroupProcessorParameterized: RuleGroupProcessor<ParameterizedSQL | ParameterizedNamedSQL>;
167
- //#endregion
168
- //#region src/utils/formatQuery/defaultRuleGroupProcessorPrisma.d.ts
169
- /**
170
- * Default fallback object used by {@link formatQuery} for "prisma" format.
171
- *
172
- * @group Export
173
- */
174
- declare const prismaFallback: {};
175
- /**
176
- * Rule group processor used by {@link formatQuery} for "prisma" format.
177
- *
178
- * @group Export
179
- */
180
- declare const defaultRuleGroupProcessorPrisma: RuleGroupProcessor<Record<string, unknown> | undefined>;
181
- //#endregion
182
- //#region src/utils/formatQuery/defaultRuleGroupProcessorSequelize.d.ts
183
- /**
184
- * Rule group processor used by {@link formatQuery} for "sequelize" format.
185
- *
186
- * @group Export
187
- */
188
- declare const defaultRuleGroupProcessorSequelize: RuleGroupProcessor<WhereOptions | undefined>;
189
- //#endregion
190
- //#region src/utils/formatQuery/defaultRuleGroupProcessorSPARQL.d.ts
191
- /**
192
- * Rule group processor used by {@link formatQuery} for "sparql" format.
193
- *
194
- * SPARQL uses the same combinators as CEL (`&&` / `||`) and `!()` for negation.
195
- *
196
- * @group Export
197
- */
198
- declare const defaultRuleGroupProcessorSPARQL: RuleGroupProcessor<string>;
199
- //#endregion
200
- //#region src/utils/formatQuery/defaultRuleGroupProcessorSpEL.d.ts
201
- /**
202
- * Default rule processor used by {@link formatQuery} for "spel" format.
203
- *
204
- * @group Export
205
- */
206
- declare const defaultRuleGroupProcessorSpEL: RuleGroupProcessor<string>;
207
- //#endregion
208
- //#region src/utils/formatQuery/defaultRuleGroupProcessorSQL.d.ts
209
- /**
210
- * Default rule processor used by {@link formatQuery} for "sql" format.
211
- *
212
- * @group Export
213
- */
214
- declare const defaultRuleGroupProcessorSQL: RuleGroupProcessor<string>;
215
- //#endregion
216
- //#region src/utils/formatQuery/tanStackDbTypes.d.ts
217
- type TanStackDbWhereCallbackReturnType = ReturnType<typeof eq>;
218
- type TanStackDbWhereCallback = (refs: Record<string, unknown>) => TanStackDbWhereCallbackReturnType;
219
- //#endregion
220
- //#region src/utils/formatQuery/defaultRuleGroupProcessorTanStackDB.d.ts
221
- /**
222
- * Default rule group processor used by {@link formatQuery} for the "tanstack_db" format.
223
- * Returns a `WhereCallback` suitable for TanStack DB's `.where()` method.
224
- *
225
- * @example
226
- * const where = formatQuery(query, { format: 'tanstack_db', context: { tanstackDb: tsdb } });
227
- * const results = useLiveQuery(q => q.from({ todo: todosCollection }).where(where));
228
- *
229
- * @group Export
230
- */
231
- declare const defaultRuleGroupProcessorTanStackDB: RuleGroupProcessor<TanStackDbWhereCallback>;
232
- //#endregion
233
- //#region src/utils/formatQuery/defaultRuleGroupProcessorDiagnostics.d.ts
234
- /**
235
- * Rule group processor used by {@link formatQuery} for "diagnostics" format.
236
- *
237
- * Produces a {@link DiagnosticsResult} containing an annotated copy of the query
238
- * tree (`query`) with `valid`, `reasons`, `path`, and `level` properties on every
239
- * rule and group; a flat `diagnostics` array; aggregate `stats`; and a per-field
240
- * `fieldSummary`.
241
- *
242
- * @group Export
243
- */
244
- declare const defaultRuleGroupProcessorDiagnostics: RuleGroupProcessor<DiagnosticsResult>;
245
- //#endregion
246
- //#region src/utils/formatQuery/defaultRuleProcessorCypher.d.ts
247
- /**
248
- * Default rule processor used by {@link formatQuery} for "cypher" and "gql" formats.
249
- *
250
- * @group Export
251
- */
252
- declare const defaultRuleProcessorCypher: RuleProcessor;
253
- //#endregion
254
- //#region src/utils/formatQuery/defaultRuleProcessorDrizzle.d.ts
255
- /**
256
- * Default rule processor used by {@link formatQuery} for the "drizzle" format.
257
- *
258
- * @group Export
259
- */
260
- declare const defaultRuleProcessorDrizzle: RuleProcessor;
261
- //#endregion
262
- //#region src/utils/formatQuery/defaultRuleProcessorElasticSearch.d.ts
263
- /**
264
- * Default rule processor used by {@link formatQuery} for "elasticsearch" format.
265
- *
266
- * @group Export
267
- */
268
- declare const defaultRuleProcessorElasticSearch: RuleProcessor;
269
- //#endregion
270
- //#region src/utils/formatQuery/defaultRuleProcessorGremlin.d.ts
271
- /**
272
- * Default rule processor used by {@link formatQuery} for "gremlin" format.
273
- *
274
- * Each rule becomes a `.has()` step (or `.hasNot()`/`.has()` for null checks).
275
- *
276
- * @group Export
277
- */
278
- declare const defaultRuleProcessorGremlin: RuleProcessor;
279
- //#endregion
280
- //#region src/utils/formatQuery/defaultRuleProcessorJSONata.d.ts
281
- /**
282
- * Default rule processor used by {@link formatQuery} for "jsonata" format.
283
- *
284
- * @group Export
285
- */
286
- declare const defaultRuleProcessorJSONata: RuleProcessor;
287
- //#endregion
288
- //#region src/utils/formatQuery/defaultRuleProcessorJsonLogic.d.ts
289
- /**
290
- * Default rule processor used by {@link formatQuery} for "jsonlogic" format.
291
- *
292
- * @group Export
293
- */
294
- declare const defaultRuleProcessorJsonLogic: RuleProcessor;
295
- //#endregion
296
- //#region src/utils/formatQuery/defaultRuleProcessorLDAP.d.ts
297
- /**
298
- * Default rule processor used by {@link formatQuery} for "ldap" format.
299
- *
300
- * @group Export
301
- */
302
- declare const defaultRuleProcessorLDAP: RuleProcessor;
303
- //#endregion
304
- //#region src/utils/formatQuery/defaultRuleProcessorMongoDBQuery.d.ts
305
- /**
306
- * Default rule processor used by {@link formatQuery} for "mongodb_query" format.
307
- *
308
- * @group Export
309
- */
310
- declare const defaultRuleProcessorMongoDBQuery: RuleProcessor;
311
- //#endregion
312
- //#region src/utils/formatQuery/defaultRuleProcessorNL.d.ts
313
- /**
314
- * Default operator map used by {@link formatQuery} for "natural_language" format.
315
- *
316
- * @group Export
317
- */
318
- declare const defaultExportOperatorMap: ExportOperatorMap;
319
- /**
320
- * Default operator processor used by {@link formatQuery} for "natural_language" format.
321
- *
322
- * @group Export
323
- */
324
- declare const defaultOperatorProcessorNL: RuleProcessor;
325
- /**
326
- * Default rule processor used by {@link formatQuery} for "natural_language" format.
327
- *
328
- * @group Export
329
- */
330
- declare const defaultRuleProcessorNL: RuleProcessor;
331
- //#endregion
332
- //#region src/utils/formatQuery/defaultRuleProcessorParameterized.d.ts
333
- /**
334
- * Default rule processor used by {@link formatQuery} for "parameterized" and
335
- * "parameterized_named" formats.
336
- *
337
- * @group Export
338
- */
339
- declare const defaultRuleProcessorParameterized: RuleProcessor;
340
- //#endregion
341
- //#region src/utils/formatQuery/defaultRuleProcessorPrisma.d.ts
342
- /**
343
- * Default rule processor used by {@link formatQuery} for "prisma" format.
344
- *
345
- * @group Export
346
- */
347
- declare const defaultRuleProcessorPrisma: RuleProcessor;
348
- //#endregion
349
- //#region src/utils/formatQuery/defaultRuleProcessorSequelize.d.ts
350
- /**
351
- * Default rule processor used by {@link formatQuery} for the "sequelize" format.
352
- *
353
- * @group Export
354
- */
355
- declare const defaultRuleProcessorSequelize: RuleProcessor;
356
- //#endregion
357
- //#region src/utils/formatQuery/defaultRuleProcessorSPARQL.d.ts
358
- /** Auto-prefix a SPARQL variable name with `?` unless it's already prefixed, a URI, or a prefixed name.
359
- *
360
- * @group Export
361
- */
362
- declare const sparqlVar: (name: string) => string;
363
- /**
364
- * Default rule processor used by {@link formatQuery} for "sparql" format.
365
- *
366
- * @group Export
367
- */
368
- declare const defaultRuleProcessorSPARQL: RuleProcessor;
369
- //#endregion
370
- //#region src/utils/formatQuery/defaultRuleProcessorSQL.d.ts
371
- /**
372
- * Default operator processor used by {@link formatQuery} for "sql" and "parameterized*" formats.
373
- *
374
- * @group Export
375
- */
376
- declare const defaultOperatorProcessorSQL: RuleProcessor;
377
- /**
378
- * Default rule processor used by {@link formatQuery} for "sql" format.
379
- *
380
- * @group Export
381
- */
382
- declare const defaultRuleProcessorSQL: RuleProcessor;
383
- //#endregion
384
- //#region src/utils/formatQuery/defaultRuleProcessorTanStackDB.d.ts
385
- /**
386
- * Default rule processor used by {@link formatQuery} for the "tanstack_db" format.
387
- *
388
- * @group Export
389
- */
390
- declare const defaultRuleProcessorTanStackDB: RuleProcessor;
391
- //#endregion
392
- //#region src/utils/formatQuery/defaultValueProcessorNL.d.ts
393
- /**
394
- * Default value processor used by {@link formatQuery} for "natural_language" format.
395
- *
396
- * @group Export
397
- */
398
- declare const defaultValueProcessorNL: ValueProcessorByRule;
399
- //#endregion
400
- //#region src/utils/formatQuery/formatQuery.d.ts
401
- /**
402
- * A collection of option presets for {@link formatQuery}, specifically for SQL-based formats.
403
- *
404
- * @group Export
405
- */
406
- declare const sqlDialectPresets: Record<SQLPreset, FormatQueryOptions>;
407
- /**
408
- * A collection of option presets for {@link formatQuery}.
409
- *
410
- * @group Export
411
- */
412
- declare const formatQueryOptionPresets: Record<string, FormatQueryOptions>;
413
- /**
414
- * Generates a formatted (indented two spaces) JSON string from a query object.
415
- *
416
- * @group Export
417
- */
418
- declare function formatQuery(ruleGroup: RuleGroupTypeAny): string;
419
- /**
420
- * Generates a result based on the provided rule group processor.
421
- *
422
- * @group Export
423
- */
424
- declare function formatQuery<TResult = unknown>(ruleGroup: RuleGroupTypeAny, options: FormatQueryOptions & {
425
- ruleGroupProcessor: RuleGroupProcessor<TResult>;
426
- }): TResult;
427
- /**
428
- * Generates a {@link index!ParameterizedSQL ParameterizedSQL} object from a query object.
429
- *
430
- * @group Export
431
- */
432
- declare function formatQuery(ruleGroup: RuleGroupTypeAny, options: "parameterized" | (FormatQueryOptions & {
433
- format: "parameterized";
434
- })): ParameterizedSQL;
435
- /**
436
- * Generates a {@link index!ParameterizedNamedSQL ParameterizedNamedSQL} object from a query object.
437
- *
438
- * @group Export
439
- */
440
- declare function formatQuery(ruleGroup: RuleGroupTypeAny, options: "parameterized_named" | (FormatQueryOptions & {
441
- format: "parameterized_named";
442
- })): ParameterizedNamedSQL;
443
- /**
444
- * Generates a {@link index!RQBJsonLogic JsonLogic} object from a query object.
445
- *
446
- * @group Export
447
- */
448
- declare function formatQuery(ruleGroup: RuleGroupTypeAny, options: "jsonlogic" | (FormatQueryOptions & {
449
- format: "jsonlogic";
450
- })): RQBJsonLogic;
451
- /**
452
- * Generates an ElasticSearch query object from an RQB query object.
453
- *
454
- * NOTE: Support for the ElasticSearch format is experimental.
455
- * You may have better results exporting "sql" format then using
456
- * [ElasticSearch SQL](https://www.elastic.co/guide/en/elasticsearch/reference/current/xpack-sql.html).
457
- *
458
- * @group Export
459
- */
460
- declare function formatQuery(ruleGroup: RuleGroupTypeAny, options: "elasticsearch" | (FormatQueryOptions & {
461
- format: "elasticsearch";
462
- })): Record<string, any>;
463
- /**
464
- * Generates a MongoDB query object from an RQB query object.
465
- *
466
- * This is equivalent to the "mongodb" format, but returns a JSON object
467
- * instead of a string.
468
- *
469
- * @group Export
470
- */
471
- declare function formatQuery(ruleGroup: RuleGroupTypeAny, options: "mongodb_query" | (FormatQueryOptions & {
472
- format: "mongodb_query";
473
- })): Record<string, any>;
474
- /**
475
- * Generates a JSON.stringify'd MongoDB query object from an RQB query object.
476
- *
477
- * This is equivalent to the "mongodb_query" format, but returns a string
478
- * instead of a JSON object.
479
- *
480
- * @deprecated Use the "mongodb_query" format for greater flexibility.
481
- *
482
- * @group Export
483
- */
484
- declare function formatQuery(ruleGroup: RuleGroupTypeAny, options: "mongodb" | (FormatQueryOptions & {
485
- format: "mongodb";
486
- })): string;
487
- /**
488
- * Generates a Prisma ORM query object from an RQB query object.
489
- *
490
- * @group Export
491
- */
492
- declare function formatQuery(ruleGroup: RuleGroupTypeAny, options: "prisma" | (FormatQueryOptions & {
493
- format: "prisma";
494
- })): Record<string, any>;
495
- /**
496
- * Generates a Drizzle ORM query function from an RQB query object. The function can
497
- * be assigned to the `where` property in the Drizzle relational queries API.
498
- *
499
- * @group Export
500
- */
501
- declare function formatQuery(ruleGroup: RuleGroupTypeAny, options: "drizzle" | (FormatQueryOptions & {
502
- format: "drizzle";
503
- })): ReturnType<typeof defaultRuleGroupProcessorDrizzle>;
504
- /**
505
- * Generates a TanStack DB WhereCallback from an RQB query object. The callback can
506
- * be passed directly to TanStack DB's `.where()` method.
507
- *
508
- * @group Export
509
- */
510
- declare function formatQuery(ruleGroup: RuleGroupTypeAny, options: "tanstack_db" | (FormatQueryOptions & {
511
- format: "tanstack_db";
512
- })): ReturnType<typeof defaultRuleGroupProcessorTanStackDB>;
513
- /**
514
- * be assigned to the `where` property in the Sequelize query functions.
515
- *
516
- * @group Export
517
- */
518
- declare function formatQuery(ruleGroup: RuleGroupTypeAny, options: "sequelize" | (FormatQueryOptions & {
519
- format: "sequelize";
520
- })): ReturnType<typeof defaultRuleGroupProcessorSequelize>;
521
- /**
522
- * Generates a JSONata query string from an RQB query object.
523
- *
524
- * NOTE: Either `parseNumbers: "strict-limited"` or `parseNumbers: true`
525
- * are recommended for this format.
526
- *
527
- * @group Export
528
- */
529
- declare function formatQuery(ruleGroup: RuleGroupTypeAny, options: "jsonata" | (FormatQueryOptions & {
530
- format: "jsonata";
531
- })): string;
532
- /**
533
- * Generates an LDAP query string from an RQB query object.
534
- *
535
- * @group Export
536
- */
537
- declare function formatQuery(ruleGroup: RuleGroupTypeAny, options: "ldap" | (FormatQueryOptions & {
538
- format: "ldap";
539
- })): string;
540
- /**
541
- * Generates a {@link DiagnosticsResult} from a query object, containing an annotated
542
- * query tree, a flat diagnostics array, aggregate stats, and a per-field summary.
543
- *
544
- * @group Export
545
- */
546
- declare function formatQuery(ruleGroup: RuleGroupTypeAny, options: "diagnostics" | (FormatQueryOptions & {
547
- format: "diagnostics";
548
- })): DiagnosticsResult;
549
- /**
550
- * Generates a formatted (indented two spaces) JSON string from a query object.
551
- *
552
- * @group Export
553
- */
554
- declare function formatQuery(ruleGroup: RuleGroupTypeAny, options: FormatQueryOptions): string;
555
- /**
556
- * Generates a query string in the requested format.
557
- *
558
- * @group Export
559
- */
560
- declare function formatQuery(ruleGroup: RuleGroupTypeAny, options: Exclude<ExportFormat, ExportObjectFormats>): string;
561
- /**
562
- * Generates a query string in the requested format.
563
- *
564
- * @group Export
565
- */
566
- declare function formatQuery(ruleGroup: RuleGroupTypeAny, options: FormatQueryOptions & {
567
- format: Exclude<ExportFormat, ExportObjectFormats>;
568
- }): string;
569
- //#endregion
570
- //#region src/utils/formatQuery/utils.d.ts
571
- /**
572
- * Maps a {@link DefaultOperatorName} to a SQL operator.
573
- *
574
- * @group Export
575
- */
576
- declare const mapSQLOperator: (rqbOperator: string) => string;
577
- /**
578
- * Returns a preset-aware SQL string-concatenation function. Emits `CONCAT(a, b, ...)` when
579
- * `concatOperator` is `"CONCAT"` (case-insensitive), otherwise joins with the infix operator
580
- * (e.g. `a || b`, `a + b`).
581
- *
582
- * @group Export
583
- */
584
- declare const getSQLConcat: (concatOperator?: string) => (...values: string[]) => string;
585
- /**
586
- * Returns the `[prefix, suffix]` `LIKE` wildcards for a string-match operator (e.g. `contains`
587
- * → `['%', '%']`, `beginsWith` → `['', '%']`, `endsWith` → `['%', '']`). Unknown operators
588
- * yield `['', '']`.
589
- *
590
- * @group Export
591
- */
592
- declare const getLikeWildcards: (operatorLC: string) => [string, string];
593
- /**
594
- * Wraps an already-serialized SQL fragment (a quoted field name or an expression) with the
595
- * `LIKE` wildcards for the given (lowercase) string-match operator, concatenating the literal
596
- * `%` markers via the preset-aware {@link getSQLConcat}. Returns the fragment untouched for
597
- * operators without wildcards.
598
- *
599
- * @group Export
600
- */
601
- declare const wrapLikeFragment: (fragment: string, operatorLC: string, { concatOperator, quoteValuesWith, wrapValueWith }?: {
602
- concatOperator?: string;
603
- quoteValuesWith?: string;
604
- wrapValueWith?: [string, string];
605
- }) => string;
606
- /**
607
- * Maps a (lowercase) {@link DefaultOperatorName} to a MongoDB operator.
608
- *
609
- * @group Export
610
- */
611
- declare const mongoOperators: {
612
- "=": string;
613
- "!=": string;
614
- "<": string;
615
- "<=": string;
616
- ">": string;
617
- ">=": string;
618
- in: string;
619
- notin: string;
620
- notIn: string;
621
- };
622
- /**
623
- * Maps a (lowercase) {@link DefaultOperatorName} to a Prisma ORM operator.
624
- *
625
- * @group Export
626
- */
627
- declare const prismaOperators: {
628
- "=": string;
629
- "!=": string;
630
- "<": string;
631
- "<=": string;
632
- ">": string;
633
- ">=": string;
634
- in: string;
635
- notin: string;
636
- };
637
- /**
638
- * Maps a {@link DefaultCombinatorName} to a CEL combinator.
639
- *
640
- * @group Export
641
- */
642
- declare const celCombinatorMap: {
643
- and: "&&";
644
- or: "||";
645
- };
646
- /**
647
- * Register these operators with `jsonLogic` before applying the result
648
- * of `formatQuery(query, 'jsonlogic')`.
649
- *
650
- * @example
651
- * ```
652
- * for (const [op, func] of Object.entries(jsonLogicAdditionalOperators)) {
653
- * jsonLogic.add_operation(op, func);
654
- * }
655
- * jsonLogic.apply({ "startsWith": [{ "var": "firstName" }, "Stev"] }, data);
656
- * ```
657
- *
658
- * @group Export
659
- */
660
- declare const jsonLogicAdditionalOperators: Record<"startsWith" | "endsWith", (a: string, b: string) => boolean>;
661
- /**
662
- * Returns a new query object with all `string`-type `value` properties converted
663
- * to `number` where appropriate.
664
- *
665
- * Used by {@link formatQuery} for the `json*` formats when `parseNumbers` is `true`.
666
- *
667
- * @group Export
668
- */
669
- declare const numerifyValues: (rg: RuleGroupTypeAny, options: SetRequired<FormatQueryOptions, "fields">) => RuleGroupTypeAny;
670
- /**
671
- * Determines whether a value is _anything_ except an empty `string` or `NaN`.
672
- *
673
- * @group Export
674
- */
675
- declare const isValidValue: (value: unknown) => boolean;
676
- /**
677
- * Determines whether {@link formatQuery} should render the given value as a number.
678
- * As long as `parseNumbers` is `true`, `number` and `bigint` values will return `true` and
679
- * `string` values will return `true` if they test positive against {@link numericRegex}.
680
- *
681
- * @group Export
682
- */
683
- declare const shouldRenderAsNumber: (value: unknown, parseNumbers?: boolean) => boolean;
684
- /**
685
- * Used by {@link formatQuery} to determine whether the given value processor is a
686
- * "legacy" value processor by counting the number of arguments. Legacy value
687
- * processors take 3 arguments (not counting any arguments with default values), while
688
- * rule-based value processors take no more than 2 arguments.
689
- *
690
- * @group Export
691
- */
692
- declare const isValueProcessorLegacy: (valueProcessor: ValueProcessorLegacy | ValueProcessorByRule) => valueProcessor is ValueProcessorLegacy;
693
- /**
694
- * Converts the `quoteFieldNamesWith` option into an array of two strings.
695
- * If the option is a string, the array elements are both that string.
696
- *
697
- * @default
698
- * ['', '']
699
- *
700
- * @group Export
701
- */
702
- declare const getQuoteFieldNamesWithArray: (quoteFieldNamesWith?: null | string | [string, string]) => [string, string];
703
- /**
704
- * Given a field name and relevant {@link ValueProcessorOptions}, returns the field name
705
- * wrapped in the configured quote character(s).
706
- *
707
- * @group Export
708
- */
709
- declare const getQuotedFieldName: (fieldName: string, { quoteFieldNamesWith, fieldIdentifierSeparator }: ValueProcessorOptions) => string;
710
- /**
711
- * Given a [Constituent word order](https://en.wikipedia.org/wiki/Word_order#Constituent_word_orders)
712
- * like "svo" or "sov", returns a permutation of `["S", "V", "O"]` based on the first occurrence of
713
- * each letter in the input string (case insensitive). This widens the valid input from abbreviations
714
- * like "svo" to more expressive strings like "subject-verb-object" or "sub ver obj". Any missing
715
- * letters are appended in the default order "SVO" (e.g., "object" would yield `["O", "S", "V"]`).
716
- *
717
- * @group Export
718
- */
719
- declare const normalizeConstituentWordOrder: (input: string) => ConstituentWordOrder;
720
- /**
721
- * Prefixes a named-parameter value with the given `paramPrefix` unless the value already
722
- * begins with it. Used by {@link formatQuery} to render rules whose `valueSource` is
723
- * `"parameter"` (e.g. `"p1"` with prefix `":"` → `":p1"`; `":p1"` → `":p1"`).
724
- *
725
- * @group Export
726
- */
727
- declare const withParamPrefix: (value: unknown, paramPrefix?: string) => string;
728
- /**
729
- * Strips a leading `paramPrefix` from a named-parameter value if present. Inverse of
730
- * {@link withParamPrefix}; used to normalize parameter names for validation/lookup.
731
- *
732
- * @group Export
733
- */
734
- declare const stripParamPrefix: (value: unknown, paramPrefix?: string) => string;
735
- /**
736
- * Default translations used by {@link formatQuery} for "natural_language" format.
737
- *
738
- * @group Export
739
- */
740
- declare const defaultNLTranslations: NLTranslations;
741
- /**
742
- * Used by {@link formatQuery} to get a translation based on certain conditions
743
- * for the "natural_language" format.
744
- *
745
- * @group Export
746
- */
747
- declare const getNLTranslataion: (key: NLTranslationKey, translations: NLTranslations, conditions?: GroupVariantCondition[]) => string;
748
- type ProcessedMatchMode = {
749
- mode: "all";
750
- threshold?: number | null | undefined;
751
- } | {
752
- mode: "none";
753
- threshold?: number | null | undefined;
754
- } | {
755
- mode: "some";
756
- threshold?: number | null | undefined;
757
- } | {
758
- mode: "atleast";
759
- threshold: number;
760
- } | {
761
- mode: "atmost";
762
- threshold: number;
763
- } | {
764
- mode: "exactly";
765
- threshold: number;
766
- };
767
- /**
768
- * Transforms
769
- * - `match: { mode: "atLeast", threshold: 1 }` to `match: { mode: "some" }`
770
- * - `match: { mode: "atMost", threshold: 0 }` to `match: { mode: "none" }`.
771
- *
772
- * Returns:
773
- * - Processed `{ mode, threshold }` object for valid subqueries
774
- * - `null` if match mode is not applicable for the rule
775
- * - `false` if match mode is valid, but either
776
- * 1. `threshold` is required and invalid, or
777
- * 2. `value` is not a valid rule group.
778
- */
779
- declare const processMatchMode: (rule: RuleType) => null | false | ProcessedMatchMode;
780
- /**
781
- * Base alias assigned to the element binding of a subquery generated for a rule's
782
- * {@link MatchMode `match` mode} (e.g. `unnest(field) as elem_alias`).
783
- */
784
- declare const subqueryElementAliasBase = "elem_alias";
785
- /**
786
- * Returns the element alias for a subquery at the given nesting depth. Depth 0 (the common,
787
- * non-nested case) uses {@link subqueryElementAliasBase} unchanged; deeper levels are suffixed
788
- * with the depth, so a subquery nested within a subquery cannot shadow its parent's binding.
789
- *
790
- * Deterministic by depth rather than randomized, so output remains stable and snapshot-friendly.
791
- *
792
- * @group Export
793
- */
794
- declare const getSubqueryElementAlias: (subqueryDepth?: number) => string;
795
- /**
796
- * "Replacer" method for JSON.stringify's second argument. Converts `bigint` values to
797
- * objects with a `$bigint` property having a value of a string representation of
798
- * the actual `bigint`-type value.
799
- *
800
- * Inverse of {@link bigIntJsonParseReviver}.
801
- *
802
- * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt#use_within_json
803
- */
804
- declare const bigIntJsonStringifyReplacer: (_key: string, value: unknown) => unknown;
805
- /**
806
- * "Reviver" method for JSON.parse's second argument. Converts objects having a single
807
- * `$bigint: string` property to an actual `bigint` value.
808
- *
809
- * Inverse of {@link bigIntJsonStringifyReplacer}.
810
- *
811
- * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt#use_within_json
812
- */
813
- declare const bigIntJsonParseReviver: (_key: string, value: unknown) => unknown;
814
- //#endregion
815
- //#region src/utils/formatQuery/index.d.ts
816
- /**
817
- * Default value processor used by {@link formatQuery} for "sql" format.
818
- *
819
- * @deprecated Prefer {@link defaultValueProcessorByRule}.
820
- *
821
- * @group Export
822
- */
823
- declare const defaultValueProcessor: ValueProcessorLegacy;
824
- /**
825
- * @deprecated Prefer {@link defaultRuleProcessorMongoDB}.
826
- *
827
- * @group Export
828
- */
829
- declare const defaultMongoDBValueProcessor: ValueProcessorLegacy;
830
- /**
831
- * @deprecated Prefer {@link defaultRuleProcessorCEL}.
832
- *
833
- * @group Export
834
- */
835
- declare const defaultCELValueProcessor: ValueProcessorLegacy;
836
- /**
837
- * @deprecated Prefer {@link defaultRuleProcessorSpEL}.
838
- *
839
- * @group Export
840
- */
841
- declare const defaultSpELValueProcessor: ValueProcessorLegacy;
842
- /**
843
- * @deprecated Renamed to {@link defaultRuleProcessorCEL}.
844
- *
845
- * @group Export
846
- */
847
- declare const defaultValueProcessorCELByRule: RuleProcessor;
848
- /**
849
- * @deprecated Renamed to {@link defaultRuleProcessorMongoDB}.
850
- *
851
- * @group Export
852
- */
853
- declare const defaultValueProcessorMongoDBByRule: RuleProcessor;
854
- /**
855
- * @deprecated Renamed to {@link defaultRuleProcessorSpEL}.
856
- *
857
- * @group Export
858
- */
859
- declare const defaultValueProcessorSpELByRule: RuleProcessor;
860
- //#endregion
861
- export { bigIntJsonParseReviver, bigIntJsonStringifyReplacer, celCombinatorMap, cypherCombinatorMap, defaultCELValueProcessor, defaultExportOperatorMap, defaultMongoDBValueProcessor, defaultNLTranslations, defaultOperatorProcessorNL, defaultOperatorProcessorSQL, defaultRuleGroupProcessorCEL, defaultRuleGroupProcessorCypher, defaultRuleGroupProcessorDiagnostics, defaultRuleGroupProcessorDrizzle, defaultRuleGroupProcessorElasticSearch, defaultRuleGroupProcessorGremlin, defaultRuleGroupProcessorJSONata, defaultRuleGroupProcessorJsonLogic, defaultRuleGroupProcessorLDAP, defaultRuleGroupProcessorMongoDB, defaultRuleGroupProcessorMongoDBQuery, defaultRuleGroupProcessorNL, defaultRuleGroupProcessorParameterized, defaultRuleGroupProcessorPrisma, defaultRuleGroupProcessorSPARQL, defaultRuleGroupProcessorSQL, defaultRuleGroupProcessorSequelize, defaultRuleGroupProcessorSpEL, defaultRuleGroupProcessorTanStackDB, defaultRuleProcessorCEL, defaultRuleProcessorCypher, defaultRuleProcessorDrizzle, defaultRuleProcessorElasticSearch, defaultRuleProcessorGremlin, defaultRuleProcessorJSONata, defaultRuleProcessorJsonLogic, defaultRuleProcessorLDAP, defaultRuleProcessorMongoDB, defaultRuleProcessorMongoDBQuery, defaultRuleProcessorNL, defaultRuleProcessorParameterized, defaultRuleProcessorPrisma, defaultRuleProcessorSPARQL, defaultRuleProcessorSQL, defaultRuleProcessorSequelize, defaultRuleProcessorSpEL, defaultRuleProcessorTanStackDB, defaultSpELValueProcessor, defaultValueProcessor, defaultValueProcessorByRule, defaultValueProcessorCELByRule, defaultValueProcessorMongoDBByRule, defaultValueProcessorNL, defaultValueProcessorSpELByRule, formatQuery, formatQueryOptionPresets, getLikeWildcards, getNLTranslataion, getQuoteFieldNamesWithArray, getQuotedFieldName, getSQLConcat, getSubqueryElementAlias, isValidValue, isValueProcessorLegacy, jsonLogicAdditionalOperators, mapSQLOperator, mongoDbFallback, mongoOperators, normalizeConstituentWordOrder, numerifyValues, prismaFallback, prismaOperators, processMatchMode, shouldRenderAsNumber, sparqlVar, sqlDialectPresets, stripParamPrefix, subqueryElementAliasBase, withParamPrefix, wrapLikeFragment };
862
- //# sourceMappingURL=formatQuery.d.mts.map
1
+ import { $ as defaultRuleProcessorDrizzle, A as withParamPrefix, B as sparqlVar, C as normalizeConstituentWordOrder, Ct as cypherCombinatorMap, D as shouldRenderAsNumber, Dt as defaultRuleProcessorSpEL, E as processMatchMode, Et as defaultValueProcessorByRule, F as defaultValueProcessorNL, G as defaultOperatorProcessorNL, H as defaultRuleProcessorPrisma, I as defaultRuleProcessorTanStackDB, J as defaultRuleProcessorLDAP, K as defaultRuleProcessorNL, L as defaultOperatorProcessorSQL, M as formatQuery, N as formatQueryOptionPresets, O as stripParamPrefix, Ot as defaultRuleProcessorMongoDB, P as sqlDialectPresets, Q as defaultRuleProcessorElasticSearch, R as defaultRuleProcessorSQL, S as mongoOperators, St as defaultRuleGroupProcessorDrizzle, T as prismaOperators, Tt as defaultRuleGroupProcessorCEL, U as defaultRuleProcessorParameterized, V as defaultRuleProcessorSequelize, W as defaultExportOperatorMap, X as defaultRuleProcessorJSONata, Y as defaultRuleProcessorJsonLogic, Z as defaultRuleProcessorGremlin, _ as getSubqueryElementAlias, _t as defaultRuleGroupProcessorJSONata, a as defaultValueProcessorCELByRule, at as defaultRuleGroupProcessorSPARQL, b as jsonLogicAdditionalOperators, bt as DrizzleOperatorsLike, c as bigIntJsonParseReviver, ct as defaultRuleGroupProcessorPrisma, d as defaultNLTranslations, dt as defaultRuleGroupProcessorNL, et as defaultRuleProcessorCypher, f as getLikeWildcards, ft as defaultRuleGroupProcessorMongoDBQuery, g as getSQLConcat, gt as defaultRuleGroupProcessorJsonLogic, h as getQuotedFieldName, ht as defaultRuleGroupProcessorLDAP, i as defaultValueProcessor, it as defaultRuleGroupProcessorSpEL, j as wrapLikeFragment, k as subqueryElementAliasBase, kt as defaultRuleProcessorCEL, l as bigIntJsonStringifyReplacer, lt as prismaFallback, m as getQuoteFieldNamesWithArray, mt as defaultRuleGroupProcessorMongoDB, n as defaultMongoDBValueProcessor, nt as defaultRuleGroupProcessorTanStackDB, o as defaultValueProcessorMongoDBByRule, ot as SequelizeWhereOptionsLike, p as getNLTranslataion, pt as mongoDbFallback, q as defaultRuleProcessorMongoDBQuery, r as defaultSpELValueProcessor, rt as defaultRuleGroupProcessorSQL, s as defaultValueProcessorSpELByRule, st as defaultRuleGroupProcessorSequelize, t as defaultCELValueProcessor, tt as defaultRuleGroupProcessorDiagnostics, u as celCombinatorMap, ut as defaultRuleGroupProcessorParameterized, v as isValidValue, vt as defaultRuleGroupProcessorGremlin, w as numerifyValues, wt as defaultRuleGroupProcessorCypher, x as mapSQLOperator, xt as DrizzleWhereCallback, y as isValueProcessorLegacy, yt as defaultRuleGroupProcessorElasticSearch, z as defaultRuleProcessorSPARQL } from "./index-OF2Q1gTp.mjs";
2
+ export { DrizzleOperatorsLike, DrizzleWhereCallback, SequelizeWhereOptionsLike, bigIntJsonParseReviver, bigIntJsonStringifyReplacer, celCombinatorMap, cypherCombinatorMap, defaultCELValueProcessor, defaultExportOperatorMap, defaultMongoDBValueProcessor, defaultNLTranslations, defaultOperatorProcessorNL, defaultOperatorProcessorSQL, defaultRuleGroupProcessorCEL, defaultRuleGroupProcessorCypher, defaultRuleGroupProcessorDiagnostics, defaultRuleGroupProcessorDrizzle, defaultRuleGroupProcessorElasticSearch, defaultRuleGroupProcessorGremlin, defaultRuleGroupProcessorJSONata, defaultRuleGroupProcessorJsonLogic, defaultRuleGroupProcessorLDAP, defaultRuleGroupProcessorMongoDB, defaultRuleGroupProcessorMongoDBQuery, defaultRuleGroupProcessorNL, defaultRuleGroupProcessorParameterized, defaultRuleGroupProcessorPrisma, defaultRuleGroupProcessorSPARQL, defaultRuleGroupProcessorSQL, defaultRuleGroupProcessorSequelize, defaultRuleGroupProcessorSpEL, defaultRuleGroupProcessorTanStackDB, defaultRuleProcessorCEL, defaultRuleProcessorCypher, defaultRuleProcessorDrizzle, defaultRuleProcessorElasticSearch, defaultRuleProcessorGremlin, defaultRuleProcessorJSONata, defaultRuleProcessorJsonLogic, defaultRuleProcessorLDAP, defaultRuleProcessorMongoDB, defaultRuleProcessorMongoDBQuery, defaultRuleProcessorNL, defaultRuleProcessorParameterized, defaultRuleProcessorPrisma, defaultRuleProcessorSPARQL, defaultRuleProcessorSQL, defaultRuleProcessorSequelize, defaultRuleProcessorSpEL, defaultRuleProcessorTanStackDB, defaultSpELValueProcessor, defaultValueProcessor, defaultValueProcessorByRule, defaultValueProcessorCELByRule, defaultValueProcessorMongoDBByRule, defaultValueProcessorNL, defaultValueProcessorSpELByRule, formatQuery, formatQueryOptionPresets, getLikeWildcards, getNLTranslataion, getQuoteFieldNamesWithArray, getQuotedFieldName, getSQLConcat, getSubqueryElementAlias, isValidValue, isValueProcessorLegacy, jsonLogicAdditionalOperators, mapSQLOperator, mongoDbFallback, mongoOperators, normalizeConstituentWordOrder, numerifyValues, prismaFallback, prismaOperators, processMatchMode, shouldRenderAsNumber, sparqlVar, sqlDialectPresets, stripParamPrefix, subqueryElementAliasBase, withParamPrefix, wrapLikeFragment };