@react-querybuilder/core 8.14.3 → 8.14.4

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 (37) hide show
  1. package/dist/cjs/react-querybuilder_core.cjs.development.js +6 -4
  2. package/dist/cjs/react-querybuilder_core.cjs.development.js.map +1 -1
  3. package/dist/cjs/react-querybuilder_core.cjs.production.js +1 -1
  4. package/dist/cjs/react-querybuilder_core.cjs.production.js.map +1 -1
  5. package/dist/formatQuery.d.mts +1 -2
  6. package/dist/formatQuery.d.ts +1 -2
  7. package/dist/formatQuery.js +6 -4
  8. package/dist/formatQuery.js.map +1 -1
  9. package/dist/formatQuery.mjs +6 -4
  10. package/dist/formatQuery.mjs.map +1 -1
  11. package/dist/{import-Bltb2mT4.d.mts → import-BwQqExpO.d.mts} +2 -2
  12. package/dist/{import-B5Iq8XmL.d.ts → import-CrJf23Nf.d.ts} +2 -2
  13. package/dist/{basic-CNIjb6rI.d.mts → index-CYT4Saz-.d.mts} +450 -2
  14. package/dist/{basic-BXJVfD0P.d.ts → index-DBlQeLax.d.ts} +450 -2
  15. package/dist/parseCEL.d.mts +2 -2
  16. package/dist/parseCEL.d.ts +2 -2
  17. package/dist/parseJSONata.d.mts +2 -2
  18. package/dist/parseJSONata.d.ts +2 -2
  19. package/dist/parseJsonLogic.d.mts +2 -3
  20. package/dist/parseJsonLogic.d.ts +2 -3
  21. package/dist/parseMongoDB.d.mts +2 -2
  22. package/dist/parseMongoDB.d.ts +2 -2
  23. package/dist/parseSQL.d.mts +2 -2
  24. package/dist/parseSQL.d.ts +2 -2
  25. package/dist/parseSpEL.d.mts +2 -2
  26. package/dist/parseSpEL.d.ts +2 -2
  27. package/dist/react-querybuilder_core.legacy-esm.js +15 -11
  28. package/dist/react-querybuilder_core.legacy-esm.js.map +1 -1
  29. package/dist/react-querybuilder_core.mjs +6 -4
  30. package/dist/react-querybuilder_core.mjs.map +1 -1
  31. package/dist/react-querybuilder_core.production.mjs +1 -1
  32. package/dist/react-querybuilder_core.production.mjs.map +1 -1
  33. package/dist/transformQuery.d.mts +1 -1
  34. package/dist/transformQuery.d.ts +1 -1
  35. package/package.json +7 -6
  36. package/dist/export-6x7MilFR.d.mts +0 -451
  37. package/dist/export-CpJOQuZv.d.ts +0 -451
@@ -1,4 +1,4 @@
1
- import { _ as RuleGroupType, f as RuleGroupTypeAny, p as RuleGroupTypeIC, v as RuleType } from "./basic-CNIjb6rI.mjs";
1
+ import { D as RuleType, E as RuleGroupType, S as RuleGroupTypeIC, x as RuleGroupTypeAny } from "./index-CYT4Saz-.mjs";
2
2
 
3
3
  //#region src/utils/transformQuery.d.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { _ as RuleGroupType, f as RuleGroupTypeAny, p as RuleGroupTypeIC, v as RuleType } from "./basic-BXJVfD0P.js";
1
+ import { D as RuleType, E as RuleGroupType, S as RuleGroupTypeIC, x as RuleGroupTypeAny } from "./index-DBlQeLax.js";
2
2
 
3
3
  //#region src/utils/transformQuery.d.ts
4
4
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-querybuilder/core",
3
- "version": "8.14.3",
3
+ "version": "8.14.4",
4
4
  "description": "React Query Builder component for constructing queries and filters, with utilities for executing them in various database and evaluation contexts",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -145,23 +145,24 @@
145
145
  "@babel/preset-env": "^7.29.2",
146
146
  "@babel/preset-typescript": "^7.28.5",
147
147
  "@electric-sql/pglite": "^0.4.2",
148
- "@prisma/client": "^7.5.0",
148
+ "@prisma/client": "^7.6.0",
149
149
  "@types/json-logic-js": "^2.0.8",
150
150
  "@types/node": "^25.5.0",
151
151
  "babel-plugin-istanbul": "^7.0.1",
152
- "drizzle-orm": "^0.45.1",
152
+ "drizzle-orm": "^0.45.2",
153
153
  "json-logic-js": "^2.0.5",
154
154
  "jsonata": "^2.1.0",
155
155
  "mongodb-memory-server-core": "^11.0.1",
156
156
  "mongoose": "^9.3.3",
157
157
  "pglite-prisma-adapter": "^0.7.2",
158
- "prisma": "^7.5.0",
158
+ "prisma": "^7.6.0",
159
159
  "query-string": "^9.3.1",
160
160
  "regenerator-runtime": "^0.14.1",
161
161
  "rollup-plugin-visualizer": "^7.0.1",
162
162
  "sass": "^1.98.0",
163
163
  "sequelize": "^6.37.8",
164
164
  "spel2js": "^0.2.9",
165
+ "sqlite3": "^6.0.1",
165
166
  "type-fest": "^5.5.0",
166
167
  "typescript": "^6.0.2",
167
168
  "vite": "^8.0.3"
@@ -170,7 +171,7 @@
170
171
  "@ts-jison/lexer": "0.4.1-alpha.1",
171
172
  "@ts-jison/parser": "0.4.1-alpha.1",
172
173
  "immer": "^11.1.3",
173
- "numeric-quantity": "^3.0.0"
174
+ "numeric-quantity": "^3.2.1"
174
175
  },
175
176
  "peerDependencies": {
176
177
  "drizzle-orm": ">=0.38.0",
@@ -204,5 +205,5 @@
204
205
  "typecheck": "tsc --noEmit",
205
206
  "typecheck:watch": "tsc --noEmit --watch"
206
207
  },
207
- "gitHead": "1662d02b0e91ada2f3b4684d1b1c92b614c98e8c"
208
+ "gitHead": "ce3e358703284d8a20a2d7c2e99317ace5e820de"
208
209
  }
@@ -1,451 +0,0 @@
1
- import { C as Except, a as ValueSource, b as FullOptionList, c as RuleValidator, f as RuleGroupTypeAny, h as DefaultOperatorName, i as ParseNumbersPropConfig, l as ValidationMap, n as FullOperator, r as InputType, s as QueryValidator, t as FullField, u as ValidationResult, v as RuleType, y as FlexibleOptionList } from "./basic-CNIjb6rI.mjs";
2
- import { RulesLogic } from "json-logic-js";
3
-
4
- //#region src/types/export.d.ts
5
- /**
6
- * Available export formats for {@link formatQuery}.
7
- *
8
- * @group Export
9
- */
10
- type ExportFormat = "json" | "sql" | "json_without_ids" | "parameterized" | "parameterized_named" | "mongodb" | "mongodb_query" | "cel" | "jsonlogic" | "spel" | "elasticsearch" | "jsonata" | "natural_language" | "ldap" | "drizzle" | "prisma" | "sequelize";
11
- /**
12
- * Export formats for {@link formatQuery} that produce objects instead of strings.
13
- *
14
- * @group Export
15
- */
16
- type ExportObjectFormats = "parameterized" | "parameterized_named" | "jsonlogic" | "elasticsearch" | "jsonata" | "mongodb_query";
17
- /**
18
- * Available presets for the "sql" export format.
19
- *
20
- * @group Export
21
- */
22
- type SQLPreset = "ansi" | "sqlite" | "postgresql" | "mysql" | "mssql" | "oracle";
23
- /**
24
- * A map of operators to strings to be used in the output of {@link formatQuery}. If the
25
- * result can differ based on the `valueSource`, the key should map to an array where the
26
- * second element represents the string to be used when `valueSource` is "field". The first
27
- * element will be used in all other cases.
28
- *
29
- * @group Export
30
- */
31
- type ExportOperatorMap = Partial<Record<Lowercase<DefaultOperatorName> | DefaultOperatorName, string | [string, string]>>;
32
- /**
33
- * Options object shape for {@link formatQuery}.
34
- *
35
- * @group Export
36
- */
37
- interface FormatQueryOptions {
38
- /**
39
- * The {@link ExportFormat}.
40
- */
41
- format?: ExportFormat;
42
- /**
43
- * This function will be used to process the `operator` from each rule
44
- * for query language formats. If not defined, the appropriate
45
- * `defaultOperatorProcessor*` for the format will be used.
46
- */
47
- operatorProcessor?: RuleProcessor;
48
- /**
49
- * This function will be used to process the `value` from each rule
50
- * for query language formats. If not defined, the appropriate
51
- * `defaultValueProcessor*` for the format will be used.
52
- */
53
- valueProcessor?: ValueProcessorLegacy | ValueProcessorByRule;
54
- /**
55
- * This function will be used to process each rule. If not defined, the appropriate
56
- * `defaultRuleProcessor*` for the given format will be used.
57
- */
58
- ruleProcessor?: RuleProcessor;
59
- /**
60
- * This function will be used to process each rule group. If not defined, the appropriate
61
- * `defaultRuleGroupProcessor*` for the format will be used.
62
- *
63
- * If this function is defined, it will override the `format` option. This also allows
64
- * `formatQuery` to produce completely custom output formats.
65
- */
66
- ruleGroupProcessor?: RuleGroupProcessor;
67
- /**
68
- * In the "sql", "parameterized", "parameterized_named", and "jsonata" export
69
- * formats, field names will be bracketed by this string. If an array of strings
70
- * is passed, field names will be preceded by the first element and
71
- * succeeded by the second element.
72
- *
73
- * Tip: Use `fieldIdentifierSeparator` to bracket identifiers individually within field names.
74
- *
75
- * @default '' // the empty string
76
- *
77
- * @example
78
- * formatQuery(query, { format: 'sql', quoteFieldNamesWith: '"' })
79
- * // `"First name" = 'Steve'`
80
- *
81
- * @example
82
- * formatQuery(query, { format: 'sql', quoteFieldNamesWith: ['[', ']'] })
83
- * // "[First name] = 'Steve'"
84
- */
85
- quoteFieldNamesWith?: string | [string, string];
86
- /**
87
- * When used in conjunction with the `quoteFieldNamesWith` option, field names will
88
- * be split by this string, each part being individually processed as per the rules
89
- * of the `quoteFieldNamesWith` configuration. The parts will then be re-joined
90
- * by the same string.
91
- *
92
- * A common value for this option is `'.'`.
93
- *
94
- * A value of `''` (the empty string) will disable splitting/rejoining.
95
- *
96
- * @default ''
97
- *
98
- * @example
99
- * formatQuery(query, {
100
- * format: 'sql',
101
- * quoteFieldNamesWith: ['[', ']'],
102
- * fieldIdentifierSeparator: '.',
103
- * })
104
- * // "[dbo].[Musicians].[First name] = 'Steve'"
105
- */
106
- fieldIdentifierSeparator?: string;
107
- /**
108
- * Character to use for quoting string values in the SQL format.
109
- * @default `'`
110
- */
111
- quoteValuesWith?: string;
112
- /**
113
- * Validator function for the entire query. Can be the same function passed
114
- * as `validator` prop to {@link react-querybuilder!QueryBuilder QueryBuilder}.
115
- */
116
- validator?: QueryValidator;
117
- /**
118
- * This can be the same {@link FullField} array passed to {@link react-querybuilder!QueryBuilder QueryBuilder}, but
119
- * really all you need to provide is the `name` and `validator` for each field.
120
- *
121
- * The full field object from this array, where the field's identifying property
122
- * matches the rule's `field`, will be passed to the rule processor.
123
- */
124
- fields?: FlexibleOptionList<FullField>;
125
- /**
126
- * This can be the same `getOperators` function passed to {@link react-querybuilder!QueryBuilder QueryBuilder}.
127
- *
128
- * The full operator object from this array, where the operator's identifying property
129
- * matches the rule's `operator`, will be passed to the rule processor.
130
- */
131
- getOperators?(field: string, misc: {
132
- fieldData: FullField;
133
- }): FlexibleOptionList<FullOperator> | null;
134
- /**
135
- * This string will be inserted in place of invalid groups for non-JSON formats.
136
- * Defaults to `'(1 = 1)'` for "sql"/"parameterized"/"parameterized_named" and
137
- * `'$and:[{$expr:true}]'` for "mongodb".
138
- */
139
- fallbackExpression?: string;
140
- /**
141
- * This string will be placed in front of named parameters (aka bind variables)
142
- * when using the "parameterized_named" export format.
143
- *
144
- * @default ":"
145
- */
146
- paramPrefix?: string;
147
- /**
148
- * Maintains the parameter prefix in the `params` object keys when using the
149
- * "parameterized_named" export format. Recommended when using SQLite.
150
- *
151
- * @default false
152
- *
153
- * @example
154
- * console.log(formatQuery(query, {
155
- * format: "parameterized_named",
156
- * paramPrefix: "$",
157
- * paramsKeepPrefix: true
158
- * }).params)
159
- * // { $firstName: "Stev" }
160
- * // Default (`paramsKeepPrefix` is `false`):
161
- * // { firstName: "Stev" }
162
- */
163
- paramsKeepPrefix?: boolean;
164
- /**
165
- * Renders parameter placeholders as a series of sequential numbers
166
- * instead of '?' like the default. This option will respect the
167
- * `paramPrefix` option like the 'parameterized_named' format.
168
- *
169
- * @default false
170
- */
171
- numberedParams?: boolean;
172
- /**
173
- * Preserves the order of values for "between" and "notBetween" rules, even if a larger
174
- * value comes before a smaller value (which will always evaluate to false).
175
- */
176
- preserveValueOrder?: boolean;
177
- /**
178
- * Renders values as either `number`-types or unquoted strings, as
179
- * appropriate and when possible. Each `string`-type value is evaluated
180
- * against {@link numericRegex} to determine if it can be represented as a
181
- * plain numeric value. If so, `parseFloat` is used to convert it to a number.
182
- */
183
- parseNumbers?: ParseNumbersPropConfig;
184
- /**
185
- * Any rules where the field is equal to this value will be ignored.
186
- *
187
- * @default '~'
188
- */
189
- placeholderFieldName?: string;
190
- /**
191
- * Any rules where the operator is equal to this value will be ignored.
192
- *
193
- * @default '~'
194
- */
195
- placeholderOperatorName?: string;
196
- /**
197
- * Any rules where the value is equal to this value will be ignored.
198
- *
199
- * @default '~'
200
- */
201
- placeholderValueName?: string;
202
- /**
203
- * Operator to use when concatenating wildcard characters and field names in "sql" format.
204
- * The ANSI standard is `||`, while SQL Server uses `+`. MySQL does not implement a concatenation
205
- * operator by default, and therefore requires use of the `CONCAT` function.
206
- *
207
- * If `concatOperator` is set to `"CONCAT"` (case-insensitive), the `CONCAT` function will be
208
- * used. Note that Oracle SQL does not support more than two values in the `CONCAT` function,
209
- * so this option should not be used in that context. The default setting (`"||"`) is already
210
- * compatible with Oracle SQL.
211
- *
212
- * @default '||'
213
- */
214
- concatOperator?: "||" | "+" | "CONCAT" | (string & {});
215
- /**
216
- * Option presets to maximize compatibility with various SQL dialects.
217
- */
218
- preset?: SQLPreset;
219
- /**
220
- * Map of operators to their translations for the "natural_language" format. If the
221
- * result can differ based on the `valueSource`, the key should map to an array where the
222
- * second element represents the string to be used when `valueSource` is "field". The first
223
- * element will be used in all other cases.
224
- */
225
- operatorMap?: ExportOperatorMap;
226
- /**
227
- * [Constituent word order](https://en.wikipedia.org/wiki/Word_order#Constituent_word_orders)
228
- * for the "natural_language" format. Can be abbreviated like "SVO" or spelled out like
229
- * "subject-verb-object".
230
- *
231
- * - Subject = field
232
- * - Verb = operator
233
- * - Object = value
234
- */
235
- wordOrder?: ConstituentWordOrderString | Lowercase<ConstituentWordOrderString> | ({} & string);
236
- /**
237
- * Translatable strings used by the "natural_language" format.
238
- */
239
- translations?: Partial<Record<NLTranslationKey, string>>;
240
- context?: Record<string, any>;
241
- }
242
- /**
243
- * Options object for {@link ValueProcessorByRule} functions.
244
- *
245
- * @group Export
246
- */
247
- interface ValueProcessorOptions extends FormatQueryOptions {
248
- valueProcessor?: ValueProcessorByRule;
249
- escapeQuotes?: boolean;
250
- /**
251
- * The full field object, if `fields` was provided in the
252
- * {@link formatQuery} options parameter.
253
- */
254
- fieldData?: FullField;
255
- /**
256
- * Included for the "parameterized_named" format only. Keys of this object represent
257
- * field names and values represent the current list of parameter names for that
258
- * field based on the query rules processed up to that point. Use this list to
259
- * ensure that parameter names generated by the custom rule processor are unique.
260
- */
261
- fieldParamNames?: Record<string, string[]>;
262
- /**
263
- * Included for the "parameterized_named" format only. Call this function with a
264
- * field name to get a unique parameter name, as yet unused during query processing.
265
- */
266
- getNextNamedParam?: (field: string) => string;
267
- /**
268
- * Additional prefix and suffix characters to wrap the value in. Useful for augmenting
269
- * the default value processor results with special syntax (e.g., for dates or function
270
- * calls).
271
- */
272
- wrapValueWith?: [string, string];
273
- /**
274
- * Parse numbers in the rule value.
275
- *
276
- * @default false
277
- */
278
- parseNumbers?: boolean;
279
- }
280
- /**
281
- * Options object curated by {@link formatQuery} and passed to a {@link RuleGroupProcessor}.
282
- *
283
- * @group Export
284
- */
285
- interface FormatQueryFinalOptions extends Required<Except<FormatQueryOptions, "context" | "valueProcessor" | "validator" | "placeholderValueName" | "ruleGroupProcessor" | "parseNumbers">> {
286
- fields: FullOptionList<FullField>;
287
- getParseNumberBoolean: (inputType?: InputType | null) => boolean | undefined;
288
- parseNumbers?: ParseNumbersPropConfig | undefined;
289
- placeholderValueName?: string | undefined;
290
- valueProcessor: ValueProcessorByRule;
291
- validator?: QueryValidator;
292
- validateRule: FormatQueryValidateRule;
293
- validationMap: ValidationMap;
294
- context?: Record<string, unknown>;
295
- }
296
- /**
297
- * Function that produces a processed value for a given {@link RuleType}.
298
- *
299
- * @group Export
300
- */
301
- type ValueProcessorByRule = (rule: RuleType, options?: ValueProcessorOptions) => string;
302
- /**
303
- * Function that produces a processed value for a given `field`, `operator`, `value`,
304
- * and `valueSource`.
305
- *
306
- * @group Export
307
- */
308
- type ValueProcessorLegacy = (field: string, operator: string, value: any, valueSource?: ValueSource) => string;
309
- /**
310
- * Function to produce a result that {@link formatQuery} uses when processing a
311
- * {@link RuleType} object.
312
- *
313
- * See the default rule processor for each format to know what type to return.
314
- * | Format | Default rule processor |
315
- * | ------------------------ | ----------------------------------------- |
316
- * | `sql` | {@link defaultRuleProcessorSQL} |
317
- * | `parameterized` | {@link defaultRuleProcessorParameterized} |
318
- * | `parameterized_named` | {@link defaultRuleProcessorParameterized} |
319
- * | `mongodb` _(deprecated)_ | {@link defaultRuleProcessorMongoDB} |
320
- * | `mongodb_query` | {@link defaultRuleProcessorMongoDBQuery} |
321
- * | `cel` | {@link defaultRuleProcessorCEL} |
322
- * | `spel` | {@link defaultRuleProcessorSpEL} |
323
- * | `jsonlogic` | {@link defaultRuleProcessorJsonLogic} |
324
- * | `elasticsearch` | {@link defaultRuleProcessorElasticSearch} |
325
- * | `jsonata` | {@link defaultRuleProcessorJSONata} |
326
- *
327
- * @group Export
328
- */
329
- type RuleProcessor = (rule: RuleType, options?: ValueProcessorOptions, meta?: {
330
- processedParams?: Record<string, any> | any[];
331
- context?: Record<string, any>;
332
- }) => any;
333
- /**
334
- * Function to produce a result that {@link formatQuery} uses when processing a
335
- * {@link RuleGroupType} or {@link RuleGroupTypeIC} object.
336
- *
337
- * See the default rule group processor for each format to know what type to return.
338
- * | Format | Default rule group processor |
339
- * | ------------------------ | ---------------------------------------------- |
340
- * | `sql` | {@link defaultRuleGroupProcessorSQL} |
341
- * | `parameterized` | {@link defaultRuleGroupProcessorParameterized} |
342
- * | `parameterized_named` | {@link defaultRuleGroupProcessorParameterized} |
343
- * | `mongodb` _(deprecated)_ | {@link defaultRuleGroupProcessorMongoDB} |
344
- * | `mongodb_query` | {@link defaultRuleGroupProcessorMongoDBQuery} |
345
- * | `cel` | {@link defaultRuleGroupProcessorCEL} |
346
- * | `spel` | {@link defaultRuleGroupProcessorSpEL} |
347
- * | `jsonlogic` | {@link defaultRuleGroupProcessorJsonLogic} |
348
- * | `elasticsearch` | {@link defaultRuleGroupProcessorElasticSearch} |
349
- * | `jsonata` | {@link defaultRuleGroupProcessorJSONata} |
350
- *
351
- * @group Export
352
- */
353
- type RuleGroupProcessor<TResult = unknown> = (ruleGroup: RuleGroupTypeAny, options: FormatQueryFinalOptions, meta?: {
354
- processedParams?: Record<string, any> | any[];
355
- context?: Record<string, any>;
356
- }) => TResult;
357
- /**
358
- * Rule validator for {@link formatQuery}.
359
- *
360
- * @group Export
361
- */
362
- type FormatQueryValidateRule = (rule: RuleType) => readonly [boolean | ValidationResult | undefined, RuleValidator | undefined];
363
- /**
364
- * Object produced by {@link formatQuery} for the `"parameterized"` format.
365
- *
366
- * @group Export
367
- */
368
- interface ParameterizedSQL {
369
- /** The SQL `WHERE` clause fragment with `?` placeholders for each value. */
370
- sql: string;
371
- /**
372
- * Parameter values in the same order their respective placeholders
373
- * appear in the `sql` string.
374
- */
375
- params: any[];
376
- }
377
- /**
378
- * Object produced by {@link formatQuery} for the `"parameterized_named"` format.
379
- *
380
- * @group Export
381
- */
382
- interface ParameterizedNamedSQL {
383
- /** The SQL `WHERE` clause fragment with bind variable placeholders for each value. */
384
- sql: string;
385
- /**
386
- * Map of bind variable names from the `sql` string to the associated values.
387
- */
388
- params: Record<string, any>;
389
- }
390
- /**
391
- * @group Export
392
- */
393
- interface RQBJsonLogicStartsWith {
394
- startsWith: [RQBJsonLogic, RQBJsonLogic, ...RQBJsonLogic[]];
395
- }
396
- /**
397
- * @group Export
398
- */
399
- interface RQBJsonLogicEndsWith {
400
- endsWith: [RQBJsonLogic, RQBJsonLogic, ...RQBJsonLogic[]];
401
- }
402
- /**
403
- * JsonLogic rule object with additional operators generated by {@link formatQuery}
404
- * and accepted by {@link parseJsonLogic!parseJsonLogic}.
405
- *
406
- * @group Export
407
- */
408
- type RQBJsonLogic = RulesLogic<RQBJsonLogicStartsWith | RQBJsonLogicEndsWith>;
409
- /**
410
- * Constituent word order (as array) for the "natural_language" format.
411
- *
412
- * - S (subject) = field
413
- * - V (verb) = operator
414
- * - O (object) = value
415
- *
416
- * @group Export
417
- */
418
- type ConstituentWordOrder = ["S", "V", "O"] | ["S", "O", "V"] | ["O", "S", "V"] | ["O", "V", "S"] | ["V", "S", "O"] | ["V", "O", "S"];
419
- /**
420
- * Constituent word order (as string) for the "natural_language" format.
421
- *
422
- * - S (subject) = field
423
- * - V (verb) = operator
424
- * - O (object) = value
425
- *
426
- * @group Export
427
- */
428
- type ConstituentWordOrderString = "SVO" | "SOV" | "OSV" | "OVS" | "VSO" | "VOS";
429
- type RepeatStrings<S extends string[], Depth extends number[] = []> = Depth["length"] extends 2 ? "" : "" | `_${S[number]}${RepeatStrings<S, [...Depth, 1]>}`;
430
- type ZeroOrMoreGroupVariants = RepeatStrings<["xor", "not"]>;
431
- /**
432
- * Rule group condition identifier for the "natural_language" format.
433
- *
434
- * @group Export
435
- */
436
- type GroupVariantCondition = "not" | "xor";
437
- /**
438
- * Keys for the `translations` config object used by the "natural_language" format.
439
- *
440
- * @group Export
441
- */
442
- type NLTranslationKey = "and" | "or" | "true" | "false" | `groupPrefix${ZeroOrMoreGroupVariants}` | `groupSuffix${ZeroOrMoreGroupVariants}`;
443
- /**
444
- * `translations` config object for "natural_language" format.
445
- *
446
- * @group Export
447
- */
448
- type NLTranslations = Partial<Record<NLTranslationKey, string>>;
449
- //#endregion
450
- export { ValueProcessorOptions as _, FormatQueryOptions as a, NLTranslations as c, RQBJsonLogic as d, RuleGroupProcessor as f, ValueProcessorLegacy as g, ValueProcessorByRule as h, ExportOperatorMap as i, ParameterizedNamedSQL as l, SQLPreset as m, ExportFormat as n, GroupVariantCondition as o, RuleProcessor as p, ExportObjectFormats as r, NLTranslationKey as s, ConstituentWordOrder as t, ParameterizedSQL as u };
451
- //# sourceMappingURL=export-6x7MilFR.d.mts.map