@ncukondo/search-hub 0.13.0 → 0.15.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 (100) hide show
  1. package/README.md +39 -9
  2. package/dist/cli/commands/check.d.ts +34 -0
  3. package/dist/cli/commands/check.d.ts.map +1 -0
  4. package/dist/cli/commands/check.js +126 -0
  5. package/dist/cli/commands/check.js.map +1 -0
  6. package/dist/cli/commands/export.d.ts +5 -3
  7. package/dist/cli/commands/export.d.ts.map +1 -1
  8. package/dist/cli/commands/export.js +0 -4
  9. package/dist/cli/commands/export.js.map +1 -1
  10. package/dist/cli/commands/query/init.d.ts.map +1 -1
  11. package/dist/cli/commands/query/init.js +17 -7
  12. package/dist/cli/commands/query/init.js.map +1 -1
  13. package/dist/cli/commands/query/inspect.d.ts +36 -0
  14. package/dist/cli/commands/query/inspect.d.ts.map +1 -0
  15. package/dist/cli/commands/query/inspect.js +155 -0
  16. package/dist/cli/commands/query/inspect.js.map +1 -0
  17. package/dist/cli/commands/query/translate.d.ts.map +1 -1
  18. package/dist/cli/commands/query/translate.js +3 -1
  19. package/dist/cli/commands/query/translate.js.map +1 -1
  20. package/dist/cli/commands/query-filter.d.ts +13 -0
  21. package/dist/cli/commands/query-filter.d.ts.map +1 -0
  22. package/dist/cli/commands/query-filter.js +149 -0
  23. package/dist/cli/commands/query-filter.js.map +1 -0
  24. package/dist/cli/commands/results.d.ts +3 -3
  25. package/dist/cli/commands/results.d.ts.map +1 -1
  26. package/dist/cli/commands/results.js +12 -3
  27. package/dist/cli/commands/results.js.map +1 -1
  28. package/dist/cli/commands/search-executor.d.ts.map +1 -1
  29. package/dist/cli/commands/search-executor.js +12 -7
  30. package/dist/cli/commands/search-executor.js.map +1 -1
  31. package/dist/cli/e2e-helpers.d.ts +5 -2
  32. package/dist/cli/e2e-helpers.d.ts.map +1 -1
  33. package/dist/cli/index.d.ts.map +1 -1
  34. package/dist/cli/index.js +228 -45
  35. package/dist/cli/index.js.map +1 -1
  36. package/dist/index.js +4 -2
  37. package/dist/index.js.map +1 -1
  38. package/dist/providers/arxiv/provider.d.ts +3 -3
  39. package/dist/providers/arxiv/provider.d.ts.map +1 -1
  40. package/dist/providers/arxiv/provider.js +3 -3
  41. package/dist/providers/arxiv/provider.js.map +1 -1
  42. package/dist/providers/arxiv/translator.d.ts +3 -3
  43. package/dist/providers/arxiv/translator.d.ts.map +1 -1
  44. package/dist/providers/arxiv/translator.js +6 -8
  45. package/dist/providers/arxiv/translator.js.map +1 -1
  46. package/dist/providers/base/index.d.ts +1 -1
  47. package/dist/providers/base/index.d.ts.map +1 -1
  48. package/dist/providers/base/mock-provider.d.ts +2 -2
  49. package/dist/providers/base/mock-provider.d.ts.map +1 -1
  50. package/dist/providers/base/mock-provider.js +2 -9
  51. package/dist/providers/base/mock-provider.js.map +1 -1
  52. package/dist/providers/base/provider.d.ts +3 -3
  53. package/dist/providers/base/provider.d.ts.map +1 -1
  54. package/dist/providers/base/provider.js.map +1 -1
  55. package/dist/providers/base/types.d.ts +4 -6
  56. package/dist/providers/base/types.d.ts.map +1 -1
  57. package/dist/providers/base/types.js.map +1 -1
  58. package/dist/providers/eric/provider.d.ts +3 -3
  59. package/dist/providers/eric/provider.d.ts.map +1 -1
  60. package/dist/providers/eric/provider.js +3 -3
  61. package/dist/providers/eric/provider.js.map +1 -1
  62. package/dist/providers/eric/translator.d.ts +5 -5
  63. package/dist/providers/eric/translator.d.ts.map +1 -1
  64. package/dist/providers/eric/translator.js +6 -7
  65. package/dist/providers/eric/translator.js.map +1 -1
  66. package/dist/providers/pubmed/provider.d.ts +3 -3
  67. package/dist/providers/pubmed/provider.d.ts.map +1 -1
  68. package/dist/providers/pubmed/provider.js +3 -3
  69. package/dist/providers/pubmed/provider.js.map +1 -1
  70. package/dist/providers/pubmed/translator.d.ts +3 -3
  71. package/dist/providers/pubmed/translator.d.ts.map +1 -1
  72. package/dist/providers/pubmed/translator.js +4 -23
  73. package/dist/providers/pubmed/translator.js.map +1 -1
  74. package/dist/providers/scopus/provider.d.ts +3 -3
  75. package/dist/providers/scopus/provider.d.ts.map +1 -1
  76. package/dist/providers/scopus/provider.js +3 -3
  77. package/dist/providers/scopus/provider.js.map +1 -1
  78. package/dist/providers/scopus/translator.d.ts +3 -3
  79. package/dist/providers/scopus/translator.d.ts.map +1 -1
  80. package/dist/providers/scopus/translator.js +7 -9
  81. package/dist/providers/scopus/translator.js.map +1 -1
  82. package/dist/query/index.d.ts +3 -2
  83. package/dist/query/index.d.ts.map +1 -1
  84. package/dist/query/json-schema.d.ts.map +1 -1
  85. package/dist/query/json-schema.js +20 -11
  86. package/dist/query/json-schema.js.map +1 -1
  87. package/dist/query/mesh-lookup.d.ts.map +1 -1
  88. package/dist/query/mesh-lookup.js +66 -3
  89. package/dist/query/mesh-lookup.js.map +1 -1
  90. package/dist/query/resolver.d.ts +14 -0
  91. package/dist/query/resolver.d.ts.map +1 -0
  92. package/dist/query/resolver.js +61 -0
  93. package/dist/query/resolver.js.map +1 -0
  94. package/dist/query/types.d.ts +31 -11
  95. package/dist/query/types.d.ts.map +1 -1
  96. package/dist/query/validator.d.ts +659 -348
  97. package/dist/query/validator.d.ts.map +1 -1
  98. package/dist/query/validator.js +70 -30
  99. package/dist/query/validator.js.map +1 -1
  100. package/package.json +1 -1
@@ -29,9 +29,10 @@ export declare const operatorSchema: z.ZodEnum<{
29
29
  OR: "OR";
30
30
  }>;
31
31
  /**
32
- * Schema for query block.
32
+ * Schema for query block (with required id).
33
33
  */
34
34
  export declare const queryBlockSchema: z.ZodObject<{
35
+ id: z.ZodString;
35
36
  field: z.ZodEnum<{
36
37
  title: "title";
37
38
  abstract: "abstract";
@@ -71,6 +72,8 @@ export declare const filtersSchema: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodOb
71
72
  include: z.ZodOptional<z.ZodArray<z.ZodString>>;
72
73
  exclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
73
74
  }, z.core.$strip>>;
75
+ categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
76
+ source_types: z.ZodOptional<z.ZodArray<z.ZodString>>;
74
77
  }, z.core.$strip>>>, z.ZodTransform<{
75
78
  yearFrom: number | undefined;
76
79
  yearTo: number | undefined;
@@ -79,6 +82,8 @@ export declare const filtersSchema: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodOb
79
82
  include?: string[] | undefined;
80
83
  exclude?: string[] | undefined;
81
84
  } | undefined;
85
+ categories: string[] | undefined;
86
+ sourceTypes: string[] | undefined;
82
87
  }, {
83
88
  year_from?: number | undefined;
84
89
  year_to?: number | undefined;
@@ -87,44 +92,6 @@ export declare const filtersSchema: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodOb
87
92
  include?: string[] | undefined;
88
93
  exclude?: string[] | undefined;
89
94
  } | undefined;
90
- }>>;
91
- /**
92
- * Schema for override block (YAML input format).
93
- */
94
- export declare const overrideBlockSchema: z.ZodPipe<z.ZodObject<{
95
- filters: z.ZodOptional<z.ZodObject<{
96
- year_from: z.ZodOptional<z.ZodNumber>;
97
- year_to: z.ZodOptional<z.ZodNumber>;
98
- language: z.ZodOptional<z.ZodArray<z.ZodString>>;
99
- publication_types: z.ZodOptional<z.ZodObject<{
100
- include: z.ZodOptional<z.ZodArray<z.ZodString>>;
101
- exclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
102
- }, z.core.$strip>>;
103
- }, z.core.$strip>>;
104
- categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
105
- source_types: z.ZodOptional<z.ZodArray<z.ZodString>>;
106
- }, z.core.$strip>, z.ZodTransform<{
107
- filters: {
108
- yearFrom: number | undefined;
109
- yearTo: number | undefined;
110
- languages: string[] | undefined;
111
- publicationTypes: {
112
- include?: string[] | undefined;
113
- exclude?: string[] | undefined;
114
- } | undefined;
115
- } | undefined;
116
- categories: string[] | undefined;
117
- sourceTypes: string[] | undefined;
118
- }, {
119
- filters?: {
120
- year_from?: number | undefined;
121
- year_to?: number | undefined;
122
- language?: string[] | undefined;
123
- publication_types?: {
124
- include?: string[] | undefined;
125
- exclude?: string[] | undefined;
126
- } | undefined;
127
- } | undefined;
128
95
  categories?: string[] | undefined;
129
96
  source_types?: string[] | undefined;
130
97
  }>>;
@@ -139,6 +106,65 @@ export declare const providerNameSchema: z.ZodEnum<{
139
106
  wos: "wos";
140
107
  embase: "embase";
141
108
  }>;
109
+ /**
110
+ * Schema for provider section with replaces and adds.
111
+ */
112
+ export declare const providerSectionSchema: z.ZodObject<{
113
+ replaces: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
114
+ field: z.ZodEnum<{
115
+ title: "title";
116
+ abstract: "abstract";
117
+ title_abstract: "title_abstract";
118
+ author: "author";
119
+ keyword: "keyword";
120
+ all: "all";
121
+ }>;
122
+ terms: z.ZodObject<{
123
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
124
+ mesh: z.ZodOptional<z.ZodArray<z.ZodString>>;
125
+ emtree: z.ZodOptional<z.ZodArray<z.ZodString>>;
126
+ eric: z.ZodOptional<z.ZodArray<z.ZodString>>;
127
+ exclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
128
+ }, z.core.$strip>;
129
+ operator: z.ZodEnum<{
130
+ AND: "AND";
131
+ OR: "OR";
132
+ }>;
133
+ }, z.core.$strip>>>;
134
+ adds: z.ZodOptional<z.ZodObject<{
135
+ filters: z.ZodOptional<z.ZodPipe<z.ZodObject<{
136
+ year_from: z.ZodOptional<z.ZodNumber>;
137
+ year_to: z.ZodOptional<z.ZodNumber>;
138
+ language: z.ZodOptional<z.ZodArray<z.ZodString>>;
139
+ publication_types: z.ZodOptional<z.ZodObject<{
140
+ include: z.ZodOptional<z.ZodArray<z.ZodString>>;
141
+ exclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
142
+ }, z.core.$strip>>;
143
+ categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
144
+ source_types: z.ZodOptional<z.ZodArray<z.ZodString>>;
145
+ }, z.core.$strip>, z.ZodTransform<{
146
+ yearFrom: number | undefined;
147
+ yearTo: number | undefined;
148
+ languages: string[] | undefined;
149
+ publicationTypes: {
150
+ include?: string[] | undefined;
151
+ exclude?: string[] | undefined;
152
+ } | undefined;
153
+ categories: string[] | undefined;
154
+ sourceTypes: string[] | undefined;
155
+ }, {
156
+ year_from?: number | undefined;
157
+ year_to?: number | undefined;
158
+ language?: string[] | undefined;
159
+ publication_types?: {
160
+ include?: string[] | undefined;
161
+ exclude?: string[] | undefined;
162
+ } | undefined;
163
+ categories?: string[] | undefined;
164
+ source_types?: string[] | undefined;
165
+ }>>>;
166
+ }, z.core.$strip>>;
167
+ }, z.core.$strip>;
142
168
  /**
143
169
  * Schema for the complete query file (YAML input format).
144
170
  * Transforms to QueryAST for internal use.
@@ -147,6 +173,7 @@ export declare const queryFileSchema: z.ZodPipe<z.ZodObject<{
147
173
  name: z.ZodString;
148
174
  description: z.ZodOptional<z.ZodString>;
149
175
  query: z.ZodArray<z.ZodObject<{
176
+ id: z.ZodString;
150
177
  field: z.ZodEnum<{
151
178
  title: "title";
152
179
  abstract: "abstract";
@@ -175,6 +202,8 @@ export declare const queryFileSchema: z.ZodPipe<z.ZodObject<{
175
202
  include: z.ZodOptional<z.ZodArray<z.ZodString>>;
176
203
  exclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
177
204
  }, z.core.$strip>>;
205
+ categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
206
+ source_types: z.ZodOptional<z.ZodArray<z.ZodString>>;
178
207
  }, z.core.$strip>>>, z.ZodTransform<{
179
208
  yearFrom: number | undefined;
180
209
  yearTo: number | undefined;
@@ -183,6 +212,8 @@ export declare const queryFileSchema: z.ZodPipe<z.ZodObject<{
183
212
  include?: string[] | undefined;
184
213
  exclude?: string[] | undefined;
185
214
  } | undefined;
215
+ categories: string[] | undefined;
216
+ sourceTypes: string[] | undefined;
186
217
  }, {
187
218
  year_from?: number | undefined;
188
219
  year_to?: number | undefined;
@@ -191,235 +222,352 @@ export declare const queryFileSchema: z.ZodPipe<z.ZodObject<{
191
222
  include?: string[] | undefined;
192
223
  exclude?: string[] | undefined;
193
224
  } | undefined;
225
+ categories?: string[] | undefined;
226
+ source_types?: string[] | undefined;
194
227
  }>>;
195
- overrides: z.ZodDefault<z.ZodOptional<z.ZodObject<{
196
- pubmed: z.ZodOptional<z.ZodPipe<z.ZodObject<{
197
- filters: z.ZodOptional<z.ZodObject<{
198
- year_from: z.ZodOptional<z.ZodNumber>;
199
- year_to: z.ZodOptional<z.ZodNumber>;
200
- language: z.ZodOptional<z.ZodArray<z.ZodString>>;
201
- publication_types: z.ZodOptional<z.ZodObject<{
202
- include: z.ZodOptional<z.ZodArray<z.ZodString>>;
228
+ providers: z.ZodDefault<z.ZodOptional<z.ZodObject<{
229
+ pubmed: z.ZodOptional<z.ZodObject<{
230
+ replaces: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
231
+ field: z.ZodEnum<{
232
+ title: "title";
233
+ abstract: "abstract";
234
+ title_abstract: "title_abstract";
235
+ author: "author";
236
+ keyword: "keyword";
237
+ all: "all";
238
+ }>;
239
+ terms: z.ZodObject<{
240
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
241
+ mesh: z.ZodOptional<z.ZodArray<z.ZodString>>;
242
+ emtree: z.ZodOptional<z.ZodArray<z.ZodString>>;
243
+ eric: z.ZodOptional<z.ZodArray<z.ZodString>>;
203
244
  exclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
204
- }, z.core.$strip>>;
245
+ }, z.core.$strip>;
246
+ operator: z.ZodEnum<{
247
+ AND: "AND";
248
+ OR: "OR";
249
+ }>;
250
+ }, z.core.$strip>>>;
251
+ adds: z.ZodOptional<z.ZodObject<{
252
+ filters: z.ZodOptional<z.ZodPipe<z.ZodObject<{
253
+ year_from: z.ZodOptional<z.ZodNumber>;
254
+ year_to: z.ZodOptional<z.ZodNumber>;
255
+ language: z.ZodOptional<z.ZodArray<z.ZodString>>;
256
+ publication_types: z.ZodOptional<z.ZodObject<{
257
+ include: z.ZodOptional<z.ZodArray<z.ZodString>>;
258
+ exclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
259
+ }, z.core.$strip>>;
260
+ categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
261
+ source_types: z.ZodOptional<z.ZodArray<z.ZodString>>;
262
+ }, z.core.$strip>, z.ZodTransform<{
263
+ yearFrom: number | undefined;
264
+ yearTo: number | undefined;
265
+ languages: string[] | undefined;
266
+ publicationTypes: {
267
+ include?: string[] | undefined;
268
+ exclude?: string[] | undefined;
269
+ } | undefined;
270
+ categories: string[] | undefined;
271
+ sourceTypes: string[] | undefined;
272
+ }, {
273
+ year_from?: number | undefined;
274
+ year_to?: number | undefined;
275
+ language?: string[] | undefined;
276
+ publication_types?: {
277
+ include?: string[] | undefined;
278
+ exclude?: string[] | undefined;
279
+ } | undefined;
280
+ categories?: string[] | undefined;
281
+ source_types?: string[] | undefined;
282
+ }>>>;
205
283
  }, z.core.$strip>>;
206
- categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
207
- source_types: z.ZodOptional<z.ZodArray<z.ZodString>>;
208
- }, z.core.$strip>, z.ZodTransform<{
209
- filters: {
210
- yearFrom: number | undefined;
211
- yearTo: number | undefined;
212
- languages: string[] | undefined;
213
- publicationTypes: {
214
- include?: string[] | undefined;
215
- exclude?: string[] | undefined;
216
- } | undefined;
217
- } | undefined;
218
- categories: string[] | undefined;
219
- sourceTypes: string[] | undefined;
220
- }, {
221
- filters?: {
222
- year_from?: number | undefined;
223
- year_to?: number | undefined;
224
- language?: string[] | undefined;
225
- publication_types?: {
226
- include?: string[] | undefined;
227
- exclude?: string[] | undefined;
228
- } | undefined;
229
- } | undefined;
230
- categories?: string[] | undefined;
231
- source_types?: string[] | undefined;
232
- }>>>;
233
- scopus: z.ZodOptional<z.ZodPipe<z.ZodObject<{
234
- filters: z.ZodOptional<z.ZodObject<{
235
- year_from: z.ZodOptional<z.ZodNumber>;
236
- year_to: z.ZodOptional<z.ZodNumber>;
237
- language: z.ZodOptional<z.ZodArray<z.ZodString>>;
238
- publication_types: z.ZodOptional<z.ZodObject<{
239
- include: z.ZodOptional<z.ZodArray<z.ZodString>>;
284
+ }, z.core.$strip>>;
285
+ scopus: z.ZodOptional<z.ZodObject<{
286
+ replaces: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
287
+ field: z.ZodEnum<{
288
+ title: "title";
289
+ abstract: "abstract";
290
+ title_abstract: "title_abstract";
291
+ author: "author";
292
+ keyword: "keyword";
293
+ all: "all";
294
+ }>;
295
+ terms: z.ZodObject<{
296
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
297
+ mesh: z.ZodOptional<z.ZodArray<z.ZodString>>;
298
+ emtree: z.ZodOptional<z.ZodArray<z.ZodString>>;
299
+ eric: z.ZodOptional<z.ZodArray<z.ZodString>>;
240
300
  exclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
241
- }, z.core.$strip>>;
301
+ }, z.core.$strip>;
302
+ operator: z.ZodEnum<{
303
+ AND: "AND";
304
+ OR: "OR";
305
+ }>;
306
+ }, z.core.$strip>>>;
307
+ adds: z.ZodOptional<z.ZodObject<{
308
+ filters: z.ZodOptional<z.ZodPipe<z.ZodObject<{
309
+ year_from: z.ZodOptional<z.ZodNumber>;
310
+ year_to: z.ZodOptional<z.ZodNumber>;
311
+ language: z.ZodOptional<z.ZodArray<z.ZodString>>;
312
+ publication_types: z.ZodOptional<z.ZodObject<{
313
+ include: z.ZodOptional<z.ZodArray<z.ZodString>>;
314
+ exclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
315
+ }, z.core.$strip>>;
316
+ categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
317
+ source_types: z.ZodOptional<z.ZodArray<z.ZodString>>;
318
+ }, z.core.$strip>, z.ZodTransform<{
319
+ yearFrom: number | undefined;
320
+ yearTo: number | undefined;
321
+ languages: string[] | undefined;
322
+ publicationTypes: {
323
+ include?: string[] | undefined;
324
+ exclude?: string[] | undefined;
325
+ } | undefined;
326
+ categories: string[] | undefined;
327
+ sourceTypes: string[] | undefined;
328
+ }, {
329
+ year_from?: number | undefined;
330
+ year_to?: number | undefined;
331
+ language?: string[] | undefined;
332
+ publication_types?: {
333
+ include?: string[] | undefined;
334
+ exclude?: string[] | undefined;
335
+ } | undefined;
336
+ categories?: string[] | undefined;
337
+ source_types?: string[] | undefined;
338
+ }>>>;
242
339
  }, z.core.$strip>>;
243
- categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
244
- source_types: z.ZodOptional<z.ZodArray<z.ZodString>>;
245
- }, z.core.$strip>, z.ZodTransform<{
246
- filters: {
247
- yearFrom: number | undefined;
248
- yearTo: number | undefined;
249
- languages: string[] | undefined;
250
- publicationTypes: {
251
- include?: string[] | undefined;
252
- exclude?: string[] | undefined;
253
- } | undefined;
254
- } | undefined;
255
- categories: string[] | undefined;
256
- sourceTypes: string[] | undefined;
257
- }, {
258
- filters?: {
259
- year_from?: number | undefined;
260
- year_to?: number | undefined;
261
- language?: string[] | undefined;
262
- publication_types?: {
263
- include?: string[] | undefined;
264
- exclude?: string[] | undefined;
265
- } | undefined;
266
- } | undefined;
267
- categories?: string[] | undefined;
268
- source_types?: string[] | undefined;
269
- }>>>;
270
- eric: z.ZodOptional<z.ZodPipe<z.ZodObject<{
271
- filters: z.ZodOptional<z.ZodObject<{
272
- year_from: z.ZodOptional<z.ZodNumber>;
273
- year_to: z.ZodOptional<z.ZodNumber>;
274
- language: z.ZodOptional<z.ZodArray<z.ZodString>>;
275
- publication_types: z.ZodOptional<z.ZodObject<{
276
- include: z.ZodOptional<z.ZodArray<z.ZodString>>;
340
+ }, z.core.$strip>>;
341
+ eric: z.ZodOptional<z.ZodObject<{
342
+ replaces: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
343
+ field: z.ZodEnum<{
344
+ title: "title";
345
+ abstract: "abstract";
346
+ title_abstract: "title_abstract";
347
+ author: "author";
348
+ keyword: "keyword";
349
+ all: "all";
350
+ }>;
351
+ terms: z.ZodObject<{
352
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
353
+ mesh: z.ZodOptional<z.ZodArray<z.ZodString>>;
354
+ emtree: z.ZodOptional<z.ZodArray<z.ZodString>>;
355
+ eric: z.ZodOptional<z.ZodArray<z.ZodString>>;
277
356
  exclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
278
- }, z.core.$strip>>;
357
+ }, z.core.$strip>;
358
+ operator: z.ZodEnum<{
359
+ AND: "AND";
360
+ OR: "OR";
361
+ }>;
362
+ }, z.core.$strip>>>;
363
+ adds: z.ZodOptional<z.ZodObject<{
364
+ filters: z.ZodOptional<z.ZodPipe<z.ZodObject<{
365
+ year_from: z.ZodOptional<z.ZodNumber>;
366
+ year_to: z.ZodOptional<z.ZodNumber>;
367
+ language: z.ZodOptional<z.ZodArray<z.ZodString>>;
368
+ publication_types: z.ZodOptional<z.ZodObject<{
369
+ include: z.ZodOptional<z.ZodArray<z.ZodString>>;
370
+ exclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
371
+ }, z.core.$strip>>;
372
+ categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
373
+ source_types: z.ZodOptional<z.ZodArray<z.ZodString>>;
374
+ }, z.core.$strip>, z.ZodTransform<{
375
+ yearFrom: number | undefined;
376
+ yearTo: number | undefined;
377
+ languages: string[] | undefined;
378
+ publicationTypes: {
379
+ include?: string[] | undefined;
380
+ exclude?: string[] | undefined;
381
+ } | undefined;
382
+ categories: string[] | undefined;
383
+ sourceTypes: string[] | undefined;
384
+ }, {
385
+ year_from?: number | undefined;
386
+ year_to?: number | undefined;
387
+ language?: string[] | undefined;
388
+ publication_types?: {
389
+ include?: string[] | undefined;
390
+ exclude?: string[] | undefined;
391
+ } | undefined;
392
+ categories?: string[] | undefined;
393
+ source_types?: string[] | undefined;
394
+ }>>>;
279
395
  }, z.core.$strip>>;
280
- categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
281
- source_types: z.ZodOptional<z.ZodArray<z.ZodString>>;
282
- }, z.core.$strip>, z.ZodTransform<{
283
- filters: {
284
- yearFrom: number | undefined;
285
- yearTo: number | undefined;
286
- languages: string[] | undefined;
287
- publicationTypes: {
288
- include?: string[] | undefined;
289
- exclude?: string[] | undefined;
290
- } | undefined;
291
- } | undefined;
292
- categories: string[] | undefined;
293
- sourceTypes: string[] | undefined;
294
- }, {
295
- filters?: {
296
- year_from?: number | undefined;
297
- year_to?: number | undefined;
298
- language?: string[] | undefined;
299
- publication_types?: {
300
- include?: string[] | undefined;
301
- exclude?: string[] | undefined;
302
- } | undefined;
303
- } | undefined;
304
- categories?: string[] | undefined;
305
- source_types?: string[] | undefined;
306
- }>>>;
307
- arxiv: z.ZodOptional<z.ZodPipe<z.ZodObject<{
308
- filters: z.ZodOptional<z.ZodObject<{
309
- year_from: z.ZodOptional<z.ZodNumber>;
310
- year_to: z.ZodOptional<z.ZodNumber>;
311
- language: z.ZodOptional<z.ZodArray<z.ZodString>>;
312
- publication_types: z.ZodOptional<z.ZodObject<{
313
- include: z.ZodOptional<z.ZodArray<z.ZodString>>;
396
+ }, z.core.$strip>>;
397
+ arxiv: z.ZodOptional<z.ZodObject<{
398
+ replaces: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
399
+ field: z.ZodEnum<{
400
+ title: "title";
401
+ abstract: "abstract";
402
+ title_abstract: "title_abstract";
403
+ author: "author";
404
+ keyword: "keyword";
405
+ all: "all";
406
+ }>;
407
+ terms: z.ZodObject<{
408
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
409
+ mesh: z.ZodOptional<z.ZodArray<z.ZodString>>;
410
+ emtree: z.ZodOptional<z.ZodArray<z.ZodString>>;
411
+ eric: z.ZodOptional<z.ZodArray<z.ZodString>>;
314
412
  exclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
315
- }, z.core.$strip>>;
413
+ }, z.core.$strip>;
414
+ operator: z.ZodEnum<{
415
+ AND: "AND";
416
+ OR: "OR";
417
+ }>;
418
+ }, z.core.$strip>>>;
419
+ adds: z.ZodOptional<z.ZodObject<{
420
+ filters: z.ZodOptional<z.ZodPipe<z.ZodObject<{
421
+ year_from: z.ZodOptional<z.ZodNumber>;
422
+ year_to: z.ZodOptional<z.ZodNumber>;
423
+ language: z.ZodOptional<z.ZodArray<z.ZodString>>;
424
+ publication_types: z.ZodOptional<z.ZodObject<{
425
+ include: z.ZodOptional<z.ZodArray<z.ZodString>>;
426
+ exclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
427
+ }, z.core.$strip>>;
428
+ categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
429
+ source_types: z.ZodOptional<z.ZodArray<z.ZodString>>;
430
+ }, z.core.$strip>, z.ZodTransform<{
431
+ yearFrom: number | undefined;
432
+ yearTo: number | undefined;
433
+ languages: string[] | undefined;
434
+ publicationTypes: {
435
+ include?: string[] | undefined;
436
+ exclude?: string[] | undefined;
437
+ } | undefined;
438
+ categories: string[] | undefined;
439
+ sourceTypes: string[] | undefined;
440
+ }, {
441
+ year_from?: number | undefined;
442
+ year_to?: number | undefined;
443
+ language?: string[] | undefined;
444
+ publication_types?: {
445
+ include?: string[] | undefined;
446
+ exclude?: string[] | undefined;
447
+ } | undefined;
448
+ categories?: string[] | undefined;
449
+ source_types?: string[] | undefined;
450
+ }>>>;
316
451
  }, z.core.$strip>>;
317
- categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
318
- source_types: z.ZodOptional<z.ZodArray<z.ZodString>>;
319
- }, z.core.$strip>, z.ZodTransform<{
320
- filters: {
321
- yearFrom: number | undefined;
322
- yearTo: number | undefined;
323
- languages: string[] | undefined;
324
- publicationTypes: {
325
- include?: string[] | undefined;
326
- exclude?: string[] | undefined;
327
- } | undefined;
328
- } | undefined;
329
- categories: string[] | undefined;
330
- sourceTypes: string[] | undefined;
331
- }, {
332
- filters?: {
333
- year_from?: number | undefined;
334
- year_to?: number | undefined;
335
- language?: string[] | undefined;
336
- publication_types?: {
337
- include?: string[] | undefined;
338
- exclude?: string[] | undefined;
339
- } | undefined;
340
- } | undefined;
341
- categories?: string[] | undefined;
342
- source_types?: string[] | undefined;
343
- }>>>;
344
- wos: z.ZodOptional<z.ZodPipe<z.ZodObject<{
345
- filters: z.ZodOptional<z.ZodObject<{
346
- year_from: z.ZodOptional<z.ZodNumber>;
347
- year_to: z.ZodOptional<z.ZodNumber>;
348
- language: z.ZodOptional<z.ZodArray<z.ZodString>>;
349
- publication_types: z.ZodOptional<z.ZodObject<{
350
- include: z.ZodOptional<z.ZodArray<z.ZodString>>;
452
+ }, z.core.$strip>>;
453
+ wos: z.ZodOptional<z.ZodObject<{
454
+ replaces: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
455
+ field: z.ZodEnum<{
456
+ title: "title";
457
+ abstract: "abstract";
458
+ title_abstract: "title_abstract";
459
+ author: "author";
460
+ keyword: "keyword";
461
+ all: "all";
462
+ }>;
463
+ terms: z.ZodObject<{
464
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
465
+ mesh: z.ZodOptional<z.ZodArray<z.ZodString>>;
466
+ emtree: z.ZodOptional<z.ZodArray<z.ZodString>>;
467
+ eric: z.ZodOptional<z.ZodArray<z.ZodString>>;
351
468
  exclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
352
- }, z.core.$strip>>;
469
+ }, z.core.$strip>;
470
+ operator: z.ZodEnum<{
471
+ AND: "AND";
472
+ OR: "OR";
473
+ }>;
474
+ }, z.core.$strip>>>;
475
+ adds: z.ZodOptional<z.ZodObject<{
476
+ filters: z.ZodOptional<z.ZodPipe<z.ZodObject<{
477
+ year_from: z.ZodOptional<z.ZodNumber>;
478
+ year_to: z.ZodOptional<z.ZodNumber>;
479
+ language: z.ZodOptional<z.ZodArray<z.ZodString>>;
480
+ publication_types: z.ZodOptional<z.ZodObject<{
481
+ include: z.ZodOptional<z.ZodArray<z.ZodString>>;
482
+ exclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
483
+ }, z.core.$strip>>;
484
+ categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
485
+ source_types: z.ZodOptional<z.ZodArray<z.ZodString>>;
486
+ }, z.core.$strip>, z.ZodTransform<{
487
+ yearFrom: number | undefined;
488
+ yearTo: number | undefined;
489
+ languages: string[] | undefined;
490
+ publicationTypes: {
491
+ include?: string[] | undefined;
492
+ exclude?: string[] | undefined;
493
+ } | undefined;
494
+ categories: string[] | undefined;
495
+ sourceTypes: string[] | undefined;
496
+ }, {
497
+ year_from?: number | undefined;
498
+ year_to?: number | undefined;
499
+ language?: string[] | undefined;
500
+ publication_types?: {
501
+ include?: string[] | undefined;
502
+ exclude?: string[] | undefined;
503
+ } | undefined;
504
+ categories?: string[] | undefined;
505
+ source_types?: string[] | undefined;
506
+ }>>>;
353
507
  }, z.core.$strip>>;
354
- categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
355
- source_types: z.ZodOptional<z.ZodArray<z.ZodString>>;
356
- }, z.core.$strip>, z.ZodTransform<{
357
- filters: {
358
- yearFrom: number | undefined;
359
- yearTo: number | undefined;
360
- languages: string[] | undefined;
361
- publicationTypes: {
362
- include?: string[] | undefined;
363
- exclude?: string[] | undefined;
364
- } | undefined;
365
- } | undefined;
366
- categories: string[] | undefined;
367
- sourceTypes: string[] | undefined;
368
- }, {
369
- filters?: {
370
- year_from?: number | undefined;
371
- year_to?: number | undefined;
372
- language?: string[] | undefined;
373
- publication_types?: {
374
- include?: string[] | undefined;
375
- exclude?: string[] | undefined;
376
- } | undefined;
377
- } | undefined;
378
- categories?: string[] | undefined;
379
- source_types?: string[] | undefined;
380
- }>>>;
381
- embase: z.ZodOptional<z.ZodPipe<z.ZodObject<{
382
- filters: z.ZodOptional<z.ZodObject<{
383
- year_from: z.ZodOptional<z.ZodNumber>;
384
- year_to: z.ZodOptional<z.ZodNumber>;
385
- language: z.ZodOptional<z.ZodArray<z.ZodString>>;
386
- publication_types: z.ZodOptional<z.ZodObject<{
387
- include: z.ZodOptional<z.ZodArray<z.ZodString>>;
508
+ }, z.core.$strip>>;
509
+ embase: z.ZodOptional<z.ZodObject<{
510
+ replaces: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
511
+ field: z.ZodEnum<{
512
+ title: "title";
513
+ abstract: "abstract";
514
+ title_abstract: "title_abstract";
515
+ author: "author";
516
+ keyword: "keyword";
517
+ all: "all";
518
+ }>;
519
+ terms: z.ZodObject<{
520
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
521
+ mesh: z.ZodOptional<z.ZodArray<z.ZodString>>;
522
+ emtree: z.ZodOptional<z.ZodArray<z.ZodString>>;
523
+ eric: z.ZodOptional<z.ZodArray<z.ZodString>>;
388
524
  exclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
389
- }, z.core.$strip>>;
525
+ }, z.core.$strip>;
526
+ operator: z.ZodEnum<{
527
+ AND: "AND";
528
+ OR: "OR";
529
+ }>;
530
+ }, z.core.$strip>>>;
531
+ adds: z.ZodOptional<z.ZodObject<{
532
+ filters: z.ZodOptional<z.ZodPipe<z.ZodObject<{
533
+ year_from: z.ZodOptional<z.ZodNumber>;
534
+ year_to: z.ZodOptional<z.ZodNumber>;
535
+ language: z.ZodOptional<z.ZodArray<z.ZodString>>;
536
+ publication_types: z.ZodOptional<z.ZodObject<{
537
+ include: z.ZodOptional<z.ZodArray<z.ZodString>>;
538
+ exclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
539
+ }, z.core.$strip>>;
540
+ categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
541
+ source_types: z.ZodOptional<z.ZodArray<z.ZodString>>;
542
+ }, z.core.$strip>, z.ZodTransform<{
543
+ yearFrom: number | undefined;
544
+ yearTo: number | undefined;
545
+ languages: string[] | undefined;
546
+ publicationTypes: {
547
+ include?: string[] | undefined;
548
+ exclude?: string[] | undefined;
549
+ } | undefined;
550
+ categories: string[] | undefined;
551
+ sourceTypes: string[] | undefined;
552
+ }, {
553
+ year_from?: number | undefined;
554
+ year_to?: number | undefined;
555
+ language?: string[] | undefined;
556
+ publication_types?: {
557
+ include?: string[] | undefined;
558
+ exclude?: string[] | undefined;
559
+ } | undefined;
560
+ categories?: string[] | undefined;
561
+ source_types?: string[] | undefined;
562
+ }>>>;
390
563
  }, z.core.$strip>>;
391
- categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
392
- source_types: z.ZodOptional<z.ZodArray<z.ZodString>>;
393
- }, z.core.$strip>, z.ZodTransform<{
394
- filters: {
395
- yearFrom: number | undefined;
396
- yearTo: number | undefined;
397
- languages: string[] | undefined;
398
- publicationTypes: {
399
- include?: string[] | undefined;
400
- exclude?: string[] | undefined;
401
- } | undefined;
402
- } | undefined;
403
- categories: string[] | undefined;
404
- sourceTypes: string[] | undefined;
405
- }, {
406
- filters?: {
407
- year_from?: number | undefined;
408
- year_to?: number | undefined;
409
- language?: string[] | undefined;
410
- publication_types?: {
411
- include?: string[] | undefined;
412
- exclude?: string[] | undefined;
413
- } | undefined;
414
- } | undefined;
415
- categories?: string[] | undefined;
416
- source_types?: string[] | undefined;
417
- }>>>;
564
+ }, z.core.$strip>>;
418
565
  }, z.core.$strip>>>;
419
566
  }, z.core.$strip>, z.ZodTransform<{
420
567
  name: string;
421
568
  description: string | undefined;
422
569
  blocks: {
570
+ id: string;
423
571
  field: "title" | "abstract" | "title_abstract" | "author" | "keyword" | "all";
424
572
  terms: {
425
573
  keywords?: string[] | undefined;
@@ -438,90 +586,171 @@ export declare const queryFileSchema: z.ZodPipe<z.ZodObject<{
438
586
  include?: string[] | undefined;
439
587
  exclude?: string[] | undefined;
440
588
  } | undefined;
589
+ categories: string[] | undefined;
590
+ sourceTypes: string[] | undefined;
441
591
  };
442
- overrides: {
592
+ providers: {
443
593
  pubmed?: {
444
- filters: {
445
- yearFrom: number | undefined;
446
- yearTo: number | undefined;
447
- languages: string[] | undefined;
448
- publicationTypes: {
449
- include?: string[] | undefined;
594
+ replaces?: Record<string, {
595
+ field: "title" | "abstract" | "title_abstract" | "author" | "keyword" | "all";
596
+ terms: {
597
+ keywords?: string[] | undefined;
598
+ mesh?: string[] | undefined;
599
+ emtree?: string[] | undefined;
600
+ eric?: string[] | undefined;
450
601
  exclude?: string[] | undefined;
602
+ };
603
+ operator: "AND" | "OR";
604
+ }> | undefined;
605
+ adds?: {
606
+ filters?: {
607
+ yearFrom: number | undefined;
608
+ yearTo: number | undefined;
609
+ languages: string[] | undefined;
610
+ publicationTypes: {
611
+ include?: string[] | undefined;
612
+ exclude?: string[] | undefined;
613
+ } | undefined;
614
+ categories: string[] | undefined;
615
+ sourceTypes: string[] | undefined;
451
616
  } | undefined;
452
617
  } | undefined;
453
- categories: string[] | undefined;
454
- sourceTypes: string[] | undefined;
455
618
  } | undefined;
456
619
  scopus?: {
457
- filters: {
458
- yearFrom: number | undefined;
459
- yearTo: number | undefined;
460
- languages: string[] | undefined;
461
- publicationTypes: {
462
- include?: string[] | undefined;
620
+ replaces?: Record<string, {
621
+ field: "title" | "abstract" | "title_abstract" | "author" | "keyword" | "all";
622
+ terms: {
623
+ keywords?: string[] | undefined;
624
+ mesh?: string[] | undefined;
625
+ emtree?: string[] | undefined;
626
+ eric?: string[] | undefined;
463
627
  exclude?: string[] | undefined;
628
+ };
629
+ operator: "AND" | "OR";
630
+ }> | undefined;
631
+ adds?: {
632
+ filters?: {
633
+ yearFrom: number | undefined;
634
+ yearTo: number | undefined;
635
+ languages: string[] | undefined;
636
+ publicationTypes: {
637
+ include?: string[] | undefined;
638
+ exclude?: string[] | undefined;
639
+ } | undefined;
640
+ categories: string[] | undefined;
641
+ sourceTypes: string[] | undefined;
464
642
  } | undefined;
465
643
  } | undefined;
466
- categories: string[] | undefined;
467
- sourceTypes: string[] | undefined;
468
644
  } | undefined;
469
645
  eric?: {
470
- filters: {
471
- yearFrom: number | undefined;
472
- yearTo: number | undefined;
473
- languages: string[] | undefined;
474
- publicationTypes: {
475
- include?: string[] | undefined;
646
+ replaces?: Record<string, {
647
+ field: "title" | "abstract" | "title_abstract" | "author" | "keyword" | "all";
648
+ terms: {
649
+ keywords?: string[] | undefined;
650
+ mesh?: string[] | undefined;
651
+ emtree?: string[] | undefined;
652
+ eric?: string[] | undefined;
476
653
  exclude?: string[] | undefined;
654
+ };
655
+ operator: "AND" | "OR";
656
+ }> | undefined;
657
+ adds?: {
658
+ filters?: {
659
+ yearFrom: number | undefined;
660
+ yearTo: number | undefined;
661
+ languages: string[] | undefined;
662
+ publicationTypes: {
663
+ include?: string[] | undefined;
664
+ exclude?: string[] | undefined;
665
+ } | undefined;
666
+ categories: string[] | undefined;
667
+ sourceTypes: string[] | undefined;
477
668
  } | undefined;
478
669
  } | undefined;
479
- categories: string[] | undefined;
480
- sourceTypes: string[] | undefined;
481
670
  } | undefined;
482
671
  arxiv?: {
483
- filters: {
484
- yearFrom: number | undefined;
485
- yearTo: number | undefined;
486
- languages: string[] | undefined;
487
- publicationTypes: {
488
- include?: string[] | undefined;
672
+ replaces?: Record<string, {
673
+ field: "title" | "abstract" | "title_abstract" | "author" | "keyword" | "all";
674
+ terms: {
675
+ keywords?: string[] | undefined;
676
+ mesh?: string[] | undefined;
677
+ emtree?: string[] | undefined;
678
+ eric?: string[] | undefined;
489
679
  exclude?: string[] | undefined;
680
+ };
681
+ operator: "AND" | "OR";
682
+ }> | undefined;
683
+ adds?: {
684
+ filters?: {
685
+ yearFrom: number | undefined;
686
+ yearTo: number | undefined;
687
+ languages: string[] | undefined;
688
+ publicationTypes: {
689
+ include?: string[] | undefined;
690
+ exclude?: string[] | undefined;
691
+ } | undefined;
692
+ categories: string[] | undefined;
693
+ sourceTypes: string[] | undefined;
490
694
  } | undefined;
491
695
  } | undefined;
492
- categories: string[] | undefined;
493
- sourceTypes: string[] | undefined;
494
696
  } | undefined;
495
697
  wos?: {
496
- filters: {
497
- yearFrom: number | undefined;
498
- yearTo: number | undefined;
499
- languages: string[] | undefined;
500
- publicationTypes: {
501
- include?: string[] | undefined;
698
+ replaces?: Record<string, {
699
+ field: "title" | "abstract" | "title_abstract" | "author" | "keyword" | "all";
700
+ terms: {
701
+ keywords?: string[] | undefined;
702
+ mesh?: string[] | undefined;
703
+ emtree?: string[] | undefined;
704
+ eric?: string[] | undefined;
502
705
  exclude?: string[] | undefined;
706
+ };
707
+ operator: "AND" | "OR";
708
+ }> | undefined;
709
+ adds?: {
710
+ filters?: {
711
+ yearFrom: number | undefined;
712
+ yearTo: number | undefined;
713
+ languages: string[] | undefined;
714
+ publicationTypes: {
715
+ include?: string[] | undefined;
716
+ exclude?: string[] | undefined;
717
+ } | undefined;
718
+ categories: string[] | undefined;
719
+ sourceTypes: string[] | undefined;
503
720
  } | undefined;
504
721
  } | undefined;
505
- categories: string[] | undefined;
506
- sourceTypes: string[] | undefined;
507
722
  } | undefined;
508
723
  embase?: {
509
- filters: {
510
- yearFrom: number | undefined;
511
- yearTo: number | undefined;
512
- languages: string[] | undefined;
513
- publicationTypes: {
514
- include?: string[] | undefined;
724
+ replaces?: Record<string, {
725
+ field: "title" | "abstract" | "title_abstract" | "author" | "keyword" | "all";
726
+ terms: {
727
+ keywords?: string[] | undefined;
728
+ mesh?: string[] | undefined;
729
+ emtree?: string[] | undefined;
730
+ eric?: string[] | undefined;
515
731
  exclude?: string[] | undefined;
732
+ };
733
+ operator: "AND" | "OR";
734
+ }> | undefined;
735
+ adds?: {
736
+ filters?: {
737
+ yearFrom: number | undefined;
738
+ yearTo: number | undefined;
739
+ languages: string[] | undefined;
740
+ publicationTypes: {
741
+ include?: string[] | undefined;
742
+ exclude?: string[] | undefined;
743
+ } | undefined;
744
+ categories: string[] | undefined;
745
+ sourceTypes: string[] | undefined;
516
746
  } | undefined;
517
747
  } | undefined;
518
- categories: string[] | undefined;
519
- sourceTypes: string[] | undefined;
520
748
  } | undefined;
521
749
  };
522
750
  }, {
523
751
  name: string;
524
752
  query: {
753
+ id: string;
525
754
  field: "title" | "abstract" | "title_abstract" | "author" | "keyword" | "all";
526
755
  terms: {
527
756
  keywords?: string[] | undefined;
@@ -540,85 +769,165 @@ export declare const queryFileSchema: z.ZodPipe<z.ZodObject<{
540
769
  include?: string[] | undefined;
541
770
  exclude?: string[] | undefined;
542
771
  } | undefined;
772
+ categories: string[] | undefined;
773
+ sourceTypes: string[] | undefined;
543
774
  };
544
- overrides: {
775
+ providers: {
545
776
  pubmed?: {
546
- filters: {
547
- yearFrom: number | undefined;
548
- yearTo: number | undefined;
549
- languages: string[] | undefined;
550
- publicationTypes: {
551
- include?: string[] | undefined;
777
+ replaces?: Record<string, {
778
+ field: "title" | "abstract" | "title_abstract" | "author" | "keyword" | "all";
779
+ terms: {
780
+ keywords?: string[] | undefined;
781
+ mesh?: string[] | undefined;
782
+ emtree?: string[] | undefined;
783
+ eric?: string[] | undefined;
552
784
  exclude?: string[] | undefined;
785
+ };
786
+ operator: "AND" | "OR";
787
+ }> | undefined;
788
+ adds?: {
789
+ filters?: {
790
+ yearFrom: number | undefined;
791
+ yearTo: number | undefined;
792
+ languages: string[] | undefined;
793
+ publicationTypes: {
794
+ include?: string[] | undefined;
795
+ exclude?: string[] | undefined;
796
+ } | undefined;
797
+ categories: string[] | undefined;
798
+ sourceTypes: string[] | undefined;
553
799
  } | undefined;
554
800
  } | undefined;
555
- categories: string[] | undefined;
556
- sourceTypes: string[] | undefined;
557
801
  } | undefined;
558
802
  scopus?: {
559
- filters: {
560
- yearFrom: number | undefined;
561
- yearTo: number | undefined;
562
- languages: string[] | undefined;
563
- publicationTypes: {
564
- include?: string[] | undefined;
803
+ replaces?: Record<string, {
804
+ field: "title" | "abstract" | "title_abstract" | "author" | "keyword" | "all";
805
+ terms: {
806
+ keywords?: string[] | undefined;
807
+ mesh?: string[] | undefined;
808
+ emtree?: string[] | undefined;
809
+ eric?: string[] | undefined;
565
810
  exclude?: string[] | undefined;
811
+ };
812
+ operator: "AND" | "OR";
813
+ }> | undefined;
814
+ adds?: {
815
+ filters?: {
816
+ yearFrom: number | undefined;
817
+ yearTo: number | undefined;
818
+ languages: string[] | undefined;
819
+ publicationTypes: {
820
+ include?: string[] | undefined;
821
+ exclude?: string[] | undefined;
822
+ } | undefined;
823
+ categories: string[] | undefined;
824
+ sourceTypes: string[] | undefined;
566
825
  } | undefined;
567
826
  } | undefined;
568
- categories: string[] | undefined;
569
- sourceTypes: string[] | undefined;
570
827
  } | undefined;
571
828
  eric?: {
572
- filters: {
573
- yearFrom: number | undefined;
574
- yearTo: number | undefined;
575
- languages: string[] | undefined;
576
- publicationTypes: {
577
- include?: string[] | undefined;
829
+ replaces?: Record<string, {
830
+ field: "title" | "abstract" | "title_abstract" | "author" | "keyword" | "all";
831
+ terms: {
832
+ keywords?: string[] | undefined;
833
+ mesh?: string[] | undefined;
834
+ emtree?: string[] | undefined;
835
+ eric?: string[] | undefined;
578
836
  exclude?: string[] | undefined;
837
+ };
838
+ operator: "AND" | "OR";
839
+ }> | undefined;
840
+ adds?: {
841
+ filters?: {
842
+ yearFrom: number | undefined;
843
+ yearTo: number | undefined;
844
+ languages: string[] | undefined;
845
+ publicationTypes: {
846
+ include?: string[] | undefined;
847
+ exclude?: string[] | undefined;
848
+ } | undefined;
849
+ categories: string[] | undefined;
850
+ sourceTypes: string[] | undefined;
579
851
  } | undefined;
580
852
  } | undefined;
581
- categories: string[] | undefined;
582
- sourceTypes: string[] | undefined;
583
853
  } | undefined;
584
854
  arxiv?: {
585
- filters: {
586
- yearFrom: number | undefined;
587
- yearTo: number | undefined;
588
- languages: string[] | undefined;
589
- publicationTypes: {
590
- include?: string[] | undefined;
855
+ replaces?: Record<string, {
856
+ field: "title" | "abstract" | "title_abstract" | "author" | "keyword" | "all";
857
+ terms: {
858
+ keywords?: string[] | undefined;
859
+ mesh?: string[] | undefined;
860
+ emtree?: string[] | undefined;
861
+ eric?: string[] | undefined;
591
862
  exclude?: string[] | undefined;
863
+ };
864
+ operator: "AND" | "OR";
865
+ }> | undefined;
866
+ adds?: {
867
+ filters?: {
868
+ yearFrom: number | undefined;
869
+ yearTo: number | undefined;
870
+ languages: string[] | undefined;
871
+ publicationTypes: {
872
+ include?: string[] | undefined;
873
+ exclude?: string[] | undefined;
874
+ } | undefined;
875
+ categories: string[] | undefined;
876
+ sourceTypes: string[] | undefined;
592
877
  } | undefined;
593
878
  } | undefined;
594
- categories: string[] | undefined;
595
- sourceTypes: string[] | undefined;
596
879
  } | undefined;
597
880
  wos?: {
598
- filters: {
599
- yearFrom: number | undefined;
600
- yearTo: number | undefined;
601
- languages: string[] | undefined;
602
- publicationTypes: {
603
- include?: string[] | undefined;
881
+ replaces?: Record<string, {
882
+ field: "title" | "abstract" | "title_abstract" | "author" | "keyword" | "all";
883
+ terms: {
884
+ keywords?: string[] | undefined;
885
+ mesh?: string[] | undefined;
886
+ emtree?: string[] | undefined;
887
+ eric?: string[] | undefined;
604
888
  exclude?: string[] | undefined;
889
+ };
890
+ operator: "AND" | "OR";
891
+ }> | undefined;
892
+ adds?: {
893
+ filters?: {
894
+ yearFrom: number | undefined;
895
+ yearTo: number | undefined;
896
+ languages: string[] | undefined;
897
+ publicationTypes: {
898
+ include?: string[] | undefined;
899
+ exclude?: string[] | undefined;
900
+ } | undefined;
901
+ categories: string[] | undefined;
902
+ sourceTypes: string[] | undefined;
605
903
  } | undefined;
606
904
  } | undefined;
607
- categories: string[] | undefined;
608
- sourceTypes: string[] | undefined;
609
905
  } | undefined;
610
906
  embase?: {
611
- filters: {
612
- yearFrom: number | undefined;
613
- yearTo: number | undefined;
614
- languages: string[] | undefined;
615
- publicationTypes: {
616
- include?: string[] | undefined;
907
+ replaces?: Record<string, {
908
+ field: "title" | "abstract" | "title_abstract" | "author" | "keyword" | "all";
909
+ terms: {
910
+ keywords?: string[] | undefined;
911
+ mesh?: string[] | undefined;
912
+ emtree?: string[] | undefined;
913
+ eric?: string[] | undefined;
617
914
  exclude?: string[] | undefined;
915
+ };
916
+ operator: "AND" | "OR";
917
+ }> | undefined;
918
+ adds?: {
919
+ filters?: {
920
+ yearFrom: number | undefined;
921
+ yearTo: number | undefined;
922
+ languages: string[] | undefined;
923
+ publicationTypes: {
924
+ include?: string[] | undefined;
925
+ exclude?: string[] | undefined;
926
+ } | undefined;
927
+ categories: string[] | undefined;
928
+ sourceTypes: string[] | undefined;
618
929
  } | undefined;
619
930
  } | undefined;
620
- categories: string[] | undefined;
621
- sourceTypes: string[] | undefined;
622
931
  } | undefined;
623
932
  };
624
933
  description?: string | undefined;
@@ -626,6 +935,8 @@ export declare const queryFileSchema: z.ZodPipe<z.ZodObject<{
626
935
  /**
627
936
  * Validate a parsed YAML object against the query schema.
628
937
  * Returns a validated QueryAST.
938
+ *
939
+ * @throws Error if the input contains the old `overrides` key (migration message provided)
629
940
  */
630
941
  export declare function validateQueryFile(data: unknown): QueryAST;
631
942
  /**