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