asfur 1.0.69 → 1.0.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +9 -762
- package/dist/index.js +3 -2
- package/dist/types.d.ts +40 -185
- package/dist/types.js +4 -2
- package/index.ts +3 -2
- package/package.json +1 -1
- package/types.ts +4 -2
package/dist/index.d.ts
CHANGED
|
@@ -208,403 +208,28 @@ export declare const MongoQuerySchema: Schema<any, import("mongoose").Model<any,
|
|
|
208
208
|
virtuals: true;
|
|
209
209
|
};
|
|
210
210
|
}, {
|
|
211
|
-
geos:
|
|
212
|
-
entries?: {} | null | undefined;
|
|
213
|
-
keys?: {} | null | undefined;
|
|
214
|
-
values?: {} | null | undefined;
|
|
215
|
-
create?: {} | null | undefined;
|
|
216
|
-
prototype?: {
|
|
217
|
-
toString: {} | null;
|
|
218
|
-
toLocaleString: {} | null;
|
|
219
|
-
valueOf: {} | null;
|
|
220
|
-
constructor: {
|
|
221
|
-
length?: unknown;
|
|
222
|
-
toString: {} | null;
|
|
223
|
-
[Symbol.hasInstance]?: {} | null | undefined;
|
|
224
|
-
prototype?: unknown;
|
|
225
|
-
name?: unknown;
|
|
226
|
-
apply?: {} | null | undefined;
|
|
227
|
-
call?: {} | null | undefined;
|
|
228
|
-
bind?: {} | null | undefined;
|
|
229
|
-
arguments?: unknown;
|
|
230
|
-
caller?: any | null | undefined;
|
|
231
|
-
} | null;
|
|
232
|
-
hasOwnProperty: {} | null;
|
|
233
|
-
isPrototypeOf: {} | null;
|
|
234
|
-
propertyIsEnumerable: {} | null;
|
|
235
|
-
} | null | undefined;
|
|
236
|
-
getPrototypeOf?: {} | null | undefined;
|
|
237
|
-
getOwnPropertyDescriptor?: {} | null | undefined;
|
|
238
|
-
getOwnPropertyNames?: {} | null | undefined;
|
|
239
|
-
defineProperty?: {} | null | undefined;
|
|
240
|
-
defineProperties?: {} | null | undefined;
|
|
241
|
-
seal?: {} | null | undefined;
|
|
242
|
-
freeze?: {} | null | undefined;
|
|
243
|
-
preventExtensions?: {} | null | undefined;
|
|
244
|
-
isSealed?: {} | null | undefined;
|
|
245
|
-
isFrozen?: {} | null | undefined;
|
|
246
|
-
isExtensible?: {} | null | undefined;
|
|
247
|
-
assign?: {} | null | undefined;
|
|
248
|
-
getOwnPropertySymbols?: {} | null | undefined;
|
|
249
|
-
is?: {} | null | undefined;
|
|
250
|
-
setPrototypeOf?: {} | null | undefined;
|
|
251
|
-
getOwnPropertyDescriptors?: {} | null | undefined;
|
|
252
|
-
fromEntries?: {} | null | undefined;
|
|
253
|
-
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
254
|
-
entries?: {} | null | undefined;
|
|
255
|
-
keys?: {} | null | undefined;
|
|
256
|
-
values?: {} | null | undefined;
|
|
257
|
-
create?: {} | null | undefined;
|
|
258
|
-
prototype?: {
|
|
259
|
-
toString: {} | null;
|
|
260
|
-
toLocaleString: {} | null;
|
|
261
|
-
valueOf: {} | null;
|
|
262
|
-
constructor: {
|
|
263
|
-
length?: unknown;
|
|
264
|
-
toString: {} | null;
|
|
265
|
-
[Symbol.hasInstance]?: {} | null | undefined;
|
|
266
|
-
prototype?: unknown;
|
|
267
|
-
name?: unknown;
|
|
268
|
-
apply?: {} | null | undefined;
|
|
269
|
-
call?: {} | null | undefined;
|
|
270
|
-
bind?: {} | null | undefined;
|
|
271
|
-
arguments?: unknown;
|
|
272
|
-
caller?: any | null | undefined;
|
|
273
|
-
} | null;
|
|
274
|
-
hasOwnProperty: {} | null;
|
|
275
|
-
isPrototypeOf: {} | null;
|
|
276
|
-
propertyIsEnumerable: {} | null;
|
|
277
|
-
} | null | undefined;
|
|
278
|
-
getPrototypeOf?: {} | null | undefined;
|
|
279
|
-
getOwnPropertyDescriptor?: {} | null | undefined;
|
|
280
|
-
getOwnPropertyNames?: {} | null | undefined;
|
|
281
|
-
defineProperty?: {} | null | undefined;
|
|
282
|
-
defineProperties?: {} | null | undefined;
|
|
283
|
-
seal?: {} | null | undefined;
|
|
284
|
-
freeze?: {} | null | undefined;
|
|
285
|
-
preventExtensions?: {} | null | undefined;
|
|
286
|
-
isSealed?: {} | null | undefined;
|
|
287
|
-
isFrozen?: {} | null | undefined;
|
|
288
|
-
isExtensible?: {} | null | undefined;
|
|
289
|
-
assign?: {} | null | undefined;
|
|
290
|
-
getOwnPropertySymbols?: {} | null | undefined;
|
|
291
|
-
is?: {} | null | undefined;
|
|
292
|
-
setPrototypeOf?: {} | null | undefined;
|
|
293
|
-
getOwnPropertyDescriptors?: {} | null | undefined;
|
|
294
|
-
fromEntries?: {} | null | undefined;
|
|
295
|
-
}> & {
|
|
296
|
-
entries?: {} | null | undefined;
|
|
297
|
-
keys?: {} | null | undefined;
|
|
298
|
-
values?: {} | null | undefined;
|
|
299
|
-
create?: {} | null | undefined;
|
|
300
|
-
prototype?: {
|
|
301
|
-
toString: {} | null;
|
|
302
|
-
toLocaleString: {} | null;
|
|
303
|
-
valueOf: {} | null;
|
|
304
|
-
constructor: {
|
|
305
|
-
length?: unknown;
|
|
306
|
-
toString: {} | null;
|
|
307
|
-
[Symbol.hasInstance]?: {} | null | undefined;
|
|
308
|
-
prototype?: unknown;
|
|
309
|
-
name?: unknown;
|
|
310
|
-
apply?: {} | null | undefined;
|
|
311
|
-
call?: {} | null | undefined;
|
|
312
|
-
bind?: {} | null | undefined;
|
|
313
|
-
arguments?: unknown;
|
|
314
|
-
caller?: any | null | undefined;
|
|
315
|
-
} | null;
|
|
316
|
-
hasOwnProperty: {} | null;
|
|
317
|
-
isPrototypeOf: {} | null;
|
|
318
|
-
propertyIsEnumerable: {} | null;
|
|
319
|
-
} | null | undefined;
|
|
320
|
-
getPrototypeOf?: {} | null | undefined;
|
|
321
|
-
getOwnPropertyDescriptor?: {} | null | undefined;
|
|
322
|
-
getOwnPropertyNames?: {} | null | undefined;
|
|
323
|
-
defineProperty?: {} | null | undefined;
|
|
324
|
-
defineProperties?: {} | null | undefined;
|
|
325
|
-
seal?: {} | null | undefined;
|
|
326
|
-
freeze?: {} | null | undefined;
|
|
327
|
-
preventExtensions?: {} | null | undefined;
|
|
328
|
-
isSealed?: {} | null | undefined;
|
|
329
|
-
isFrozen?: {} | null | undefined;
|
|
330
|
-
isExtensible?: {} | null | undefined;
|
|
331
|
-
assign?: {} | null | undefined;
|
|
332
|
-
getOwnPropertySymbols?: {} | null | undefined;
|
|
333
|
-
is?: {} | null | undefined;
|
|
334
|
-
setPrototypeOf?: {} | null | undefined;
|
|
335
|
-
getOwnPropertyDescriptors?: {} | null | undefined;
|
|
336
|
-
fromEntries?: {} | null | undefined;
|
|
337
|
-
}>;
|
|
211
|
+
geos: string[];
|
|
338
212
|
user_id: string;
|
|
339
213
|
sources: string[];
|
|
214
|
+
geos_ids: string[];
|
|
340
215
|
time_range: any;
|
|
341
216
|
title?: string | null | undefined;
|
|
342
217
|
query?: string | null | undefined;
|
|
343
218
|
user_instructions?: string | null | undefined;
|
|
344
219
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
345
|
-
geos:
|
|
346
|
-
entries?: {} | null | undefined;
|
|
347
|
-
keys?: {} | null | undefined;
|
|
348
|
-
values?: {} | null | undefined;
|
|
349
|
-
create?: {} | null | undefined;
|
|
350
|
-
prototype?: {
|
|
351
|
-
toString: {} | null;
|
|
352
|
-
toLocaleString: {} | null;
|
|
353
|
-
valueOf: {} | null;
|
|
354
|
-
constructor: {
|
|
355
|
-
length?: unknown;
|
|
356
|
-
toString: {} | null;
|
|
357
|
-
[Symbol.hasInstance]?: {} | null | undefined;
|
|
358
|
-
prototype?: unknown;
|
|
359
|
-
name?: unknown;
|
|
360
|
-
apply?: {} | null | undefined;
|
|
361
|
-
call?: {} | null | undefined;
|
|
362
|
-
bind?: {} | null | undefined;
|
|
363
|
-
arguments?: unknown;
|
|
364
|
-
caller?: any | null | undefined;
|
|
365
|
-
} | null;
|
|
366
|
-
hasOwnProperty: {} | null;
|
|
367
|
-
isPrototypeOf: {} | null;
|
|
368
|
-
propertyIsEnumerable: {} | null;
|
|
369
|
-
} | null | undefined;
|
|
370
|
-
getPrototypeOf?: {} | null | undefined;
|
|
371
|
-
getOwnPropertyDescriptor?: {} | null | undefined;
|
|
372
|
-
getOwnPropertyNames?: {} | null | undefined;
|
|
373
|
-
defineProperty?: {} | null | undefined;
|
|
374
|
-
defineProperties?: {} | null | undefined;
|
|
375
|
-
seal?: {} | null | undefined;
|
|
376
|
-
freeze?: {} | null | undefined;
|
|
377
|
-
preventExtensions?: {} | null | undefined;
|
|
378
|
-
isSealed?: {} | null | undefined;
|
|
379
|
-
isFrozen?: {} | null | undefined;
|
|
380
|
-
isExtensible?: {} | null | undefined;
|
|
381
|
-
assign?: {} | null | undefined;
|
|
382
|
-
getOwnPropertySymbols?: {} | null | undefined;
|
|
383
|
-
is?: {} | null | undefined;
|
|
384
|
-
setPrototypeOf?: {} | null | undefined;
|
|
385
|
-
getOwnPropertyDescriptors?: {} | null | undefined;
|
|
386
|
-
fromEntries?: {} | null | undefined;
|
|
387
|
-
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
388
|
-
entries?: {} | null | undefined;
|
|
389
|
-
keys?: {} | null | undefined;
|
|
390
|
-
values?: {} | null | undefined;
|
|
391
|
-
create?: {} | null | undefined;
|
|
392
|
-
prototype?: {
|
|
393
|
-
toString: {} | null;
|
|
394
|
-
toLocaleString: {} | null;
|
|
395
|
-
valueOf: {} | null;
|
|
396
|
-
constructor: {
|
|
397
|
-
length?: unknown;
|
|
398
|
-
toString: {} | null;
|
|
399
|
-
[Symbol.hasInstance]?: {} | null | undefined;
|
|
400
|
-
prototype?: unknown;
|
|
401
|
-
name?: unknown;
|
|
402
|
-
apply?: {} | null | undefined;
|
|
403
|
-
call?: {} | null | undefined;
|
|
404
|
-
bind?: {} | null | undefined;
|
|
405
|
-
arguments?: unknown;
|
|
406
|
-
caller?: any | null | undefined;
|
|
407
|
-
} | null;
|
|
408
|
-
hasOwnProperty: {} | null;
|
|
409
|
-
isPrototypeOf: {} | null;
|
|
410
|
-
propertyIsEnumerable: {} | null;
|
|
411
|
-
} | null | undefined;
|
|
412
|
-
getPrototypeOf?: {} | null | undefined;
|
|
413
|
-
getOwnPropertyDescriptor?: {} | null | undefined;
|
|
414
|
-
getOwnPropertyNames?: {} | null | undefined;
|
|
415
|
-
defineProperty?: {} | null | undefined;
|
|
416
|
-
defineProperties?: {} | null | undefined;
|
|
417
|
-
seal?: {} | null | undefined;
|
|
418
|
-
freeze?: {} | null | undefined;
|
|
419
|
-
preventExtensions?: {} | null | undefined;
|
|
420
|
-
isSealed?: {} | null | undefined;
|
|
421
|
-
isFrozen?: {} | null | undefined;
|
|
422
|
-
isExtensible?: {} | null | undefined;
|
|
423
|
-
assign?: {} | null | undefined;
|
|
424
|
-
getOwnPropertySymbols?: {} | null | undefined;
|
|
425
|
-
is?: {} | null | undefined;
|
|
426
|
-
setPrototypeOf?: {} | null | undefined;
|
|
427
|
-
getOwnPropertyDescriptors?: {} | null | undefined;
|
|
428
|
-
fromEntries?: {} | null | undefined;
|
|
429
|
-
}> & {
|
|
430
|
-
entries?: {} | null | undefined;
|
|
431
|
-
keys?: {} | null | undefined;
|
|
432
|
-
values?: {} | null | undefined;
|
|
433
|
-
create?: {} | null | undefined;
|
|
434
|
-
prototype?: {
|
|
435
|
-
toString: {} | null;
|
|
436
|
-
toLocaleString: {} | null;
|
|
437
|
-
valueOf: {} | null;
|
|
438
|
-
constructor: {
|
|
439
|
-
length?: unknown;
|
|
440
|
-
toString: {} | null;
|
|
441
|
-
[Symbol.hasInstance]?: {} | null | undefined;
|
|
442
|
-
prototype?: unknown;
|
|
443
|
-
name?: unknown;
|
|
444
|
-
apply?: {} | null | undefined;
|
|
445
|
-
call?: {} | null | undefined;
|
|
446
|
-
bind?: {} | null | undefined;
|
|
447
|
-
arguments?: unknown;
|
|
448
|
-
caller?: any | null | undefined;
|
|
449
|
-
} | null;
|
|
450
|
-
hasOwnProperty: {} | null;
|
|
451
|
-
isPrototypeOf: {} | null;
|
|
452
|
-
propertyIsEnumerable: {} | null;
|
|
453
|
-
} | null | undefined;
|
|
454
|
-
getPrototypeOf?: {} | null | undefined;
|
|
455
|
-
getOwnPropertyDescriptor?: {} | null | undefined;
|
|
456
|
-
getOwnPropertyNames?: {} | null | undefined;
|
|
457
|
-
defineProperty?: {} | null | undefined;
|
|
458
|
-
defineProperties?: {} | null | undefined;
|
|
459
|
-
seal?: {} | null | undefined;
|
|
460
|
-
freeze?: {} | null | undefined;
|
|
461
|
-
preventExtensions?: {} | null | undefined;
|
|
462
|
-
isSealed?: {} | null | undefined;
|
|
463
|
-
isFrozen?: {} | null | undefined;
|
|
464
|
-
isExtensible?: {} | null | undefined;
|
|
465
|
-
assign?: {} | null | undefined;
|
|
466
|
-
getOwnPropertySymbols?: {} | null | undefined;
|
|
467
|
-
is?: {} | null | undefined;
|
|
468
|
-
setPrototypeOf?: {} | null | undefined;
|
|
469
|
-
getOwnPropertyDescriptors?: {} | null | undefined;
|
|
470
|
-
fromEntries?: {} | null | undefined;
|
|
471
|
-
}>;
|
|
220
|
+
geos: string[];
|
|
472
221
|
user_id: string;
|
|
473
222
|
sources: string[];
|
|
223
|
+
geos_ids: string[];
|
|
474
224
|
time_range: any;
|
|
475
225
|
title?: string | null | undefined;
|
|
476
226
|
query?: string | null | undefined;
|
|
477
227
|
user_instructions?: string | null | undefined;
|
|
478
228
|
}>, {}> & import("mongoose").FlatRecord<{
|
|
479
|
-
geos:
|
|
480
|
-
entries?: {} | null | undefined;
|
|
481
|
-
keys?: {} | null | undefined;
|
|
482
|
-
values?: {} | null | undefined;
|
|
483
|
-
create?: {} | null | undefined;
|
|
484
|
-
prototype?: {
|
|
485
|
-
toString: {} | null;
|
|
486
|
-
toLocaleString: {} | null;
|
|
487
|
-
valueOf: {} | null;
|
|
488
|
-
constructor: {
|
|
489
|
-
length?: unknown;
|
|
490
|
-
toString: {} | null;
|
|
491
|
-
[Symbol.hasInstance]?: {} | null | undefined;
|
|
492
|
-
prototype?: unknown;
|
|
493
|
-
name?: unknown;
|
|
494
|
-
apply?: {} | null | undefined;
|
|
495
|
-
call?: {} | null | undefined;
|
|
496
|
-
bind?: {} | null | undefined;
|
|
497
|
-
arguments?: unknown;
|
|
498
|
-
caller?: any | null | undefined;
|
|
499
|
-
} | null;
|
|
500
|
-
hasOwnProperty: {} | null;
|
|
501
|
-
isPrototypeOf: {} | null;
|
|
502
|
-
propertyIsEnumerable: {} | null;
|
|
503
|
-
} | null | undefined;
|
|
504
|
-
getPrototypeOf?: {} | null | undefined;
|
|
505
|
-
getOwnPropertyDescriptor?: {} | null | undefined;
|
|
506
|
-
getOwnPropertyNames?: {} | null | undefined;
|
|
507
|
-
defineProperty?: {} | null | undefined;
|
|
508
|
-
defineProperties?: {} | null | undefined;
|
|
509
|
-
seal?: {} | null | undefined;
|
|
510
|
-
freeze?: {} | null | undefined;
|
|
511
|
-
preventExtensions?: {} | null | undefined;
|
|
512
|
-
isSealed?: {} | null | undefined;
|
|
513
|
-
isFrozen?: {} | null | undefined;
|
|
514
|
-
isExtensible?: {} | null | undefined;
|
|
515
|
-
assign?: {} | null | undefined;
|
|
516
|
-
getOwnPropertySymbols?: {} | null | undefined;
|
|
517
|
-
is?: {} | null | undefined;
|
|
518
|
-
setPrototypeOf?: {} | null | undefined;
|
|
519
|
-
getOwnPropertyDescriptors?: {} | null | undefined;
|
|
520
|
-
fromEntries?: {} | null | undefined;
|
|
521
|
-
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
522
|
-
entries?: {} | null | undefined;
|
|
523
|
-
keys?: {} | null | undefined;
|
|
524
|
-
values?: {} | null | undefined;
|
|
525
|
-
create?: {} | null | undefined;
|
|
526
|
-
prototype?: {
|
|
527
|
-
toString: {} | null;
|
|
528
|
-
toLocaleString: {} | null;
|
|
529
|
-
valueOf: {} | null;
|
|
530
|
-
constructor: {
|
|
531
|
-
length?: unknown;
|
|
532
|
-
toString: {} | null;
|
|
533
|
-
[Symbol.hasInstance]?: {} | null | undefined;
|
|
534
|
-
prototype?: unknown;
|
|
535
|
-
name?: unknown;
|
|
536
|
-
apply?: {} | null | undefined;
|
|
537
|
-
call?: {} | null | undefined;
|
|
538
|
-
bind?: {} | null | undefined;
|
|
539
|
-
arguments?: unknown;
|
|
540
|
-
caller?: any | null | undefined;
|
|
541
|
-
} | null;
|
|
542
|
-
hasOwnProperty: {} | null;
|
|
543
|
-
isPrototypeOf: {} | null;
|
|
544
|
-
propertyIsEnumerable: {} | null;
|
|
545
|
-
} | null | undefined;
|
|
546
|
-
getPrototypeOf?: {} | null | undefined;
|
|
547
|
-
getOwnPropertyDescriptor?: {} | null | undefined;
|
|
548
|
-
getOwnPropertyNames?: {} | null | undefined;
|
|
549
|
-
defineProperty?: {} | null | undefined;
|
|
550
|
-
defineProperties?: {} | null | undefined;
|
|
551
|
-
seal?: {} | null | undefined;
|
|
552
|
-
freeze?: {} | null | undefined;
|
|
553
|
-
preventExtensions?: {} | null | undefined;
|
|
554
|
-
isSealed?: {} | null | undefined;
|
|
555
|
-
isFrozen?: {} | null | undefined;
|
|
556
|
-
isExtensible?: {} | null | undefined;
|
|
557
|
-
assign?: {} | null | undefined;
|
|
558
|
-
getOwnPropertySymbols?: {} | null | undefined;
|
|
559
|
-
is?: {} | null | undefined;
|
|
560
|
-
setPrototypeOf?: {} | null | undefined;
|
|
561
|
-
getOwnPropertyDescriptors?: {} | null | undefined;
|
|
562
|
-
fromEntries?: {} | null | undefined;
|
|
563
|
-
}> & {
|
|
564
|
-
entries?: {} | null | undefined;
|
|
565
|
-
keys?: {} | null | undefined;
|
|
566
|
-
values?: {} | null | undefined;
|
|
567
|
-
create?: {} | null | undefined;
|
|
568
|
-
prototype?: {
|
|
569
|
-
toString: {} | null;
|
|
570
|
-
toLocaleString: {} | null;
|
|
571
|
-
valueOf: {} | null;
|
|
572
|
-
constructor: {
|
|
573
|
-
length?: unknown;
|
|
574
|
-
toString: {} | null;
|
|
575
|
-
[Symbol.hasInstance]?: {} | null | undefined;
|
|
576
|
-
prototype?: unknown;
|
|
577
|
-
name?: unknown;
|
|
578
|
-
apply?: {} | null | undefined;
|
|
579
|
-
call?: {} | null | undefined;
|
|
580
|
-
bind?: {} | null | undefined;
|
|
581
|
-
arguments?: unknown;
|
|
582
|
-
caller?: any | null | undefined;
|
|
583
|
-
} | null;
|
|
584
|
-
hasOwnProperty: {} | null;
|
|
585
|
-
isPrototypeOf: {} | null;
|
|
586
|
-
propertyIsEnumerable: {} | null;
|
|
587
|
-
} | null | undefined;
|
|
588
|
-
getPrototypeOf?: {} | null | undefined;
|
|
589
|
-
getOwnPropertyDescriptor?: {} | null | undefined;
|
|
590
|
-
getOwnPropertyNames?: {} | null | undefined;
|
|
591
|
-
defineProperty?: {} | null | undefined;
|
|
592
|
-
defineProperties?: {} | null | undefined;
|
|
593
|
-
seal?: {} | null | undefined;
|
|
594
|
-
freeze?: {} | null | undefined;
|
|
595
|
-
preventExtensions?: {} | null | undefined;
|
|
596
|
-
isSealed?: {} | null | undefined;
|
|
597
|
-
isFrozen?: {} | null | undefined;
|
|
598
|
-
isExtensible?: {} | null | undefined;
|
|
599
|
-
assign?: {} | null | undefined;
|
|
600
|
-
getOwnPropertySymbols?: {} | null | undefined;
|
|
601
|
-
is?: {} | null | undefined;
|
|
602
|
-
setPrototypeOf?: {} | null | undefined;
|
|
603
|
-
getOwnPropertyDescriptors?: {} | null | undefined;
|
|
604
|
-
fromEntries?: {} | null | undefined;
|
|
605
|
-
}>;
|
|
229
|
+
geos: string[];
|
|
606
230
|
user_id: string;
|
|
607
231
|
sources: string[];
|
|
232
|
+
geos_ids: string[];
|
|
608
233
|
time_range: any;
|
|
609
234
|
title?: string | null | undefined;
|
|
610
235
|
query?: string | null | undefined;
|
|
@@ -624,133 +249,7 @@ export declare const MongoUserSettingsSchema: Schema<any, import("mongoose").Mod
|
|
|
624
249
|
};
|
|
625
250
|
}, {
|
|
626
251
|
status: "inactive" | "active";
|
|
627
|
-
geos:
|
|
628
|
-
entries?: {} | null | undefined;
|
|
629
|
-
keys?: {} | null | undefined;
|
|
630
|
-
values?: {} | null | undefined;
|
|
631
|
-
create?: {} | null | undefined;
|
|
632
|
-
prototype?: {
|
|
633
|
-
toString: {} | null;
|
|
634
|
-
toLocaleString: {} | null;
|
|
635
|
-
valueOf: {} | null;
|
|
636
|
-
constructor: {
|
|
637
|
-
length?: unknown;
|
|
638
|
-
toString: {} | null;
|
|
639
|
-
[Symbol.hasInstance]?: {} | null | undefined;
|
|
640
|
-
prototype?: unknown;
|
|
641
|
-
name?: unknown;
|
|
642
|
-
apply?: {} | null | undefined;
|
|
643
|
-
call?: {} | null | undefined;
|
|
644
|
-
bind?: {} | null | undefined;
|
|
645
|
-
arguments?: unknown;
|
|
646
|
-
caller?: any | null | undefined;
|
|
647
|
-
} | null;
|
|
648
|
-
hasOwnProperty: {} | null;
|
|
649
|
-
isPrototypeOf: {} | null;
|
|
650
|
-
propertyIsEnumerable: {} | null;
|
|
651
|
-
} | null | undefined;
|
|
652
|
-
getPrototypeOf?: {} | null | undefined;
|
|
653
|
-
getOwnPropertyDescriptor?: {} | null | undefined;
|
|
654
|
-
getOwnPropertyNames?: {} | null | undefined;
|
|
655
|
-
defineProperty?: {} | null | undefined;
|
|
656
|
-
defineProperties?: {} | null | undefined;
|
|
657
|
-
seal?: {} | null | undefined;
|
|
658
|
-
freeze?: {} | null | undefined;
|
|
659
|
-
preventExtensions?: {} | null | undefined;
|
|
660
|
-
isSealed?: {} | null | undefined;
|
|
661
|
-
isFrozen?: {} | null | undefined;
|
|
662
|
-
isExtensible?: {} | null | undefined;
|
|
663
|
-
assign?: {} | null | undefined;
|
|
664
|
-
getOwnPropertySymbols?: {} | null | undefined;
|
|
665
|
-
is?: {} | null | undefined;
|
|
666
|
-
setPrototypeOf?: {} | null | undefined;
|
|
667
|
-
getOwnPropertyDescriptors?: {} | null | undefined;
|
|
668
|
-
fromEntries?: {} | null | undefined;
|
|
669
|
-
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
670
|
-
entries?: {} | null | undefined;
|
|
671
|
-
keys?: {} | null | undefined;
|
|
672
|
-
values?: {} | null | undefined;
|
|
673
|
-
create?: {} | null | undefined;
|
|
674
|
-
prototype?: {
|
|
675
|
-
toString: {} | null;
|
|
676
|
-
toLocaleString: {} | null;
|
|
677
|
-
valueOf: {} | null;
|
|
678
|
-
constructor: {
|
|
679
|
-
length?: unknown;
|
|
680
|
-
toString: {} | null;
|
|
681
|
-
[Symbol.hasInstance]?: {} | null | undefined;
|
|
682
|
-
prototype?: unknown;
|
|
683
|
-
name?: unknown;
|
|
684
|
-
apply?: {} | null | undefined;
|
|
685
|
-
call?: {} | null | undefined;
|
|
686
|
-
bind?: {} | null | undefined;
|
|
687
|
-
arguments?: unknown;
|
|
688
|
-
caller?: any | null | undefined;
|
|
689
|
-
} | null;
|
|
690
|
-
hasOwnProperty: {} | null;
|
|
691
|
-
isPrototypeOf: {} | null;
|
|
692
|
-
propertyIsEnumerable: {} | null;
|
|
693
|
-
} | null | undefined;
|
|
694
|
-
getPrototypeOf?: {} | null | undefined;
|
|
695
|
-
getOwnPropertyDescriptor?: {} | null | undefined;
|
|
696
|
-
getOwnPropertyNames?: {} | null | undefined;
|
|
697
|
-
defineProperty?: {} | null | undefined;
|
|
698
|
-
defineProperties?: {} | null | undefined;
|
|
699
|
-
seal?: {} | null | undefined;
|
|
700
|
-
freeze?: {} | null | undefined;
|
|
701
|
-
preventExtensions?: {} | null | undefined;
|
|
702
|
-
isSealed?: {} | null | undefined;
|
|
703
|
-
isFrozen?: {} | null | undefined;
|
|
704
|
-
isExtensible?: {} | null | undefined;
|
|
705
|
-
assign?: {} | null | undefined;
|
|
706
|
-
getOwnPropertySymbols?: {} | null | undefined;
|
|
707
|
-
is?: {} | null | undefined;
|
|
708
|
-
setPrototypeOf?: {} | null | undefined;
|
|
709
|
-
getOwnPropertyDescriptors?: {} | null | undefined;
|
|
710
|
-
fromEntries?: {} | null | undefined;
|
|
711
|
-
}> & {
|
|
712
|
-
entries?: {} | null | undefined;
|
|
713
|
-
keys?: {} | null | undefined;
|
|
714
|
-
values?: {} | null | undefined;
|
|
715
|
-
create?: {} | null | undefined;
|
|
716
|
-
prototype?: {
|
|
717
|
-
toString: {} | null;
|
|
718
|
-
toLocaleString: {} | null;
|
|
719
|
-
valueOf: {} | null;
|
|
720
|
-
constructor: {
|
|
721
|
-
length?: unknown;
|
|
722
|
-
toString: {} | null;
|
|
723
|
-
[Symbol.hasInstance]?: {} | null | undefined;
|
|
724
|
-
prototype?: unknown;
|
|
725
|
-
name?: unknown;
|
|
726
|
-
apply?: {} | null | undefined;
|
|
727
|
-
call?: {} | null | undefined;
|
|
728
|
-
bind?: {} | null | undefined;
|
|
729
|
-
arguments?: unknown;
|
|
730
|
-
caller?: any | null | undefined;
|
|
731
|
-
} | null;
|
|
732
|
-
hasOwnProperty: {} | null;
|
|
733
|
-
isPrototypeOf: {} | null;
|
|
734
|
-
propertyIsEnumerable: {} | null;
|
|
735
|
-
} | null | undefined;
|
|
736
|
-
getPrototypeOf?: {} | null | undefined;
|
|
737
|
-
getOwnPropertyDescriptor?: {} | null | undefined;
|
|
738
|
-
getOwnPropertyNames?: {} | null | undefined;
|
|
739
|
-
defineProperty?: {} | null | undefined;
|
|
740
|
-
defineProperties?: {} | null | undefined;
|
|
741
|
-
seal?: {} | null | undefined;
|
|
742
|
-
freeze?: {} | null | undefined;
|
|
743
|
-
preventExtensions?: {} | null | undefined;
|
|
744
|
-
isSealed?: {} | null | undefined;
|
|
745
|
-
isFrozen?: {} | null | undefined;
|
|
746
|
-
isExtensible?: {} | null | undefined;
|
|
747
|
-
assign?: {} | null | undefined;
|
|
748
|
-
getOwnPropertySymbols?: {} | null | undefined;
|
|
749
|
-
is?: {} | null | undefined;
|
|
750
|
-
setPrototypeOf?: {} | null | undefined;
|
|
751
|
-
getOwnPropertyDescriptors?: {} | null | undefined;
|
|
752
|
-
fromEntries?: {} | null | undefined;
|
|
753
|
-
}>;
|
|
252
|
+
geos: string[];
|
|
754
253
|
created_at: NativeDate;
|
|
755
254
|
updated_at: NativeDate;
|
|
756
255
|
user_id: string;
|
|
@@ -762,133 +261,7 @@ export declare const MongoUserSettingsSchema: Schema<any, import("mongoose").Mod
|
|
|
762
261
|
instructions?: string | null | undefined;
|
|
763
262
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
764
263
|
status: "inactive" | "active";
|
|
765
|
-
geos:
|
|
766
|
-
entries?: {} | null | undefined;
|
|
767
|
-
keys?: {} | null | undefined;
|
|
768
|
-
values?: {} | null | undefined;
|
|
769
|
-
create?: {} | null | undefined;
|
|
770
|
-
prototype?: {
|
|
771
|
-
toString: {} | null;
|
|
772
|
-
toLocaleString: {} | null;
|
|
773
|
-
valueOf: {} | null;
|
|
774
|
-
constructor: {
|
|
775
|
-
length?: unknown;
|
|
776
|
-
toString: {} | null;
|
|
777
|
-
[Symbol.hasInstance]?: {} | null | undefined;
|
|
778
|
-
prototype?: unknown;
|
|
779
|
-
name?: unknown;
|
|
780
|
-
apply?: {} | null | undefined;
|
|
781
|
-
call?: {} | null | undefined;
|
|
782
|
-
bind?: {} | null | undefined;
|
|
783
|
-
arguments?: unknown;
|
|
784
|
-
caller?: any | null | undefined;
|
|
785
|
-
} | null;
|
|
786
|
-
hasOwnProperty: {} | null;
|
|
787
|
-
isPrototypeOf: {} | null;
|
|
788
|
-
propertyIsEnumerable: {} | null;
|
|
789
|
-
} | null | undefined;
|
|
790
|
-
getPrototypeOf?: {} | null | undefined;
|
|
791
|
-
getOwnPropertyDescriptor?: {} | null | undefined;
|
|
792
|
-
getOwnPropertyNames?: {} | null | undefined;
|
|
793
|
-
defineProperty?: {} | null | undefined;
|
|
794
|
-
defineProperties?: {} | null | undefined;
|
|
795
|
-
seal?: {} | null | undefined;
|
|
796
|
-
freeze?: {} | null | undefined;
|
|
797
|
-
preventExtensions?: {} | null | undefined;
|
|
798
|
-
isSealed?: {} | null | undefined;
|
|
799
|
-
isFrozen?: {} | null | undefined;
|
|
800
|
-
isExtensible?: {} | null | undefined;
|
|
801
|
-
assign?: {} | null | undefined;
|
|
802
|
-
getOwnPropertySymbols?: {} | null | undefined;
|
|
803
|
-
is?: {} | null | undefined;
|
|
804
|
-
setPrototypeOf?: {} | null | undefined;
|
|
805
|
-
getOwnPropertyDescriptors?: {} | null | undefined;
|
|
806
|
-
fromEntries?: {} | null | undefined;
|
|
807
|
-
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
808
|
-
entries?: {} | null | undefined;
|
|
809
|
-
keys?: {} | null | undefined;
|
|
810
|
-
values?: {} | null | undefined;
|
|
811
|
-
create?: {} | null | undefined;
|
|
812
|
-
prototype?: {
|
|
813
|
-
toString: {} | null;
|
|
814
|
-
toLocaleString: {} | null;
|
|
815
|
-
valueOf: {} | null;
|
|
816
|
-
constructor: {
|
|
817
|
-
length?: unknown;
|
|
818
|
-
toString: {} | null;
|
|
819
|
-
[Symbol.hasInstance]?: {} | null | undefined;
|
|
820
|
-
prototype?: unknown;
|
|
821
|
-
name?: unknown;
|
|
822
|
-
apply?: {} | null | undefined;
|
|
823
|
-
call?: {} | null | undefined;
|
|
824
|
-
bind?: {} | null | undefined;
|
|
825
|
-
arguments?: unknown;
|
|
826
|
-
caller?: any | null | undefined;
|
|
827
|
-
} | null;
|
|
828
|
-
hasOwnProperty: {} | null;
|
|
829
|
-
isPrototypeOf: {} | null;
|
|
830
|
-
propertyIsEnumerable: {} | null;
|
|
831
|
-
} | null | undefined;
|
|
832
|
-
getPrototypeOf?: {} | null | undefined;
|
|
833
|
-
getOwnPropertyDescriptor?: {} | null | undefined;
|
|
834
|
-
getOwnPropertyNames?: {} | null | undefined;
|
|
835
|
-
defineProperty?: {} | null | undefined;
|
|
836
|
-
defineProperties?: {} | null | undefined;
|
|
837
|
-
seal?: {} | null | undefined;
|
|
838
|
-
freeze?: {} | null | undefined;
|
|
839
|
-
preventExtensions?: {} | null | undefined;
|
|
840
|
-
isSealed?: {} | null | undefined;
|
|
841
|
-
isFrozen?: {} | null | undefined;
|
|
842
|
-
isExtensible?: {} | null | undefined;
|
|
843
|
-
assign?: {} | null | undefined;
|
|
844
|
-
getOwnPropertySymbols?: {} | null | undefined;
|
|
845
|
-
is?: {} | null | undefined;
|
|
846
|
-
setPrototypeOf?: {} | null | undefined;
|
|
847
|
-
getOwnPropertyDescriptors?: {} | null | undefined;
|
|
848
|
-
fromEntries?: {} | null | undefined;
|
|
849
|
-
}> & {
|
|
850
|
-
entries?: {} | null | undefined;
|
|
851
|
-
keys?: {} | null | undefined;
|
|
852
|
-
values?: {} | null | undefined;
|
|
853
|
-
create?: {} | null | undefined;
|
|
854
|
-
prototype?: {
|
|
855
|
-
toString: {} | null;
|
|
856
|
-
toLocaleString: {} | null;
|
|
857
|
-
valueOf: {} | null;
|
|
858
|
-
constructor: {
|
|
859
|
-
length?: unknown;
|
|
860
|
-
toString: {} | null;
|
|
861
|
-
[Symbol.hasInstance]?: {} | null | undefined;
|
|
862
|
-
prototype?: unknown;
|
|
863
|
-
name?: unknown;
|
|
864
|
-
apply?: {} | null | undefined;
|
|
865
|
-
call?: {} | null | undefined;
|
|
866
|
-
bind?: {} | null | undefined;
|
|
867
|
-
arguments?: unknown;
|
|
868
|
-
caller?: any | null | undefined;
|
|
869
|
-
} | null;
|
|
870
|
-
hasOwnProperty: {} | null;
|
|
871
|
-
isPrototypeOf: {} | null;
|
|
872
|
-
propertyIsEnumerable: {} | null;
|
|
873
|
-
} | null | undefined;
|
|
874
|
-
getPrototypeOf?: {} | null | undefined;
|
|
875
|
-
getOwnPropertyDescriptor?: {} | null | undefined;
|
|
876
|
-
getOwnPropertyNames?: {} | null | undefined;
|
|
877
|
-
defineProperty?: {} | null | undefined;
|
|
878
|
-
defineProperties?: {} | null | undefined;
|
|
879
|
-
seal?: {} | null | undefined;
|
|
880
|
-
freeze?: {} | null | undefined;
|
|
881
|
-
preventExtensions?: {} | null | undefined;
|
|
882
|
-
isSealed?: {} | null | undefined;
|
|
883
|
-
isFrozen?: {} | null | undefined;
|
|
884
|
-
isExtensible?: {} | null | undefined;
|
|
885
|
-
assign?: {} | null | undefined;
|
|
886
|
-
getOwnPropertySymbols?: {} | null | undefined;
|
|
887
|
-
is?: {} | null | undefined;
|
|
888
|
-
setPrototypeOf?: {} | null | undefined;
|
|
889
|
-
getOwnPropertyDescriptors?: {} | null | undefined;
|
|
890
|
-
fromEntries?: {} | null | undefined;
|
|
891
|
-
}>;
|
|
264
|
+
geos: string[];
|
|
892
265
|
created_at: NativeDate;
|
|
893
266
|
updated_at: NativeDate;
|
|
894
267
|
user_id: string;
|
|
@@ -900,133 +273,7 @@ export declare const MongoUserSettingsSchema: Schema<any, import("mongoose").Mod
|
|
|
900
273
|
instructions?: string | null | undefined;
|
|
901
274
|
}>, {}> & import("mongoose").FlatRecord<{
|
|
902
275
|
status: "inactive" | "active";
|
|
903
|
-
geos:
|
|
904
|
-
entries?: {} | null | undefined;
|
|
905
|
-
keys?: {} | null | undefined;
|
|
906
|
-
values?: {} | null | undefined;
|
|
907
|
-
create?: {} | null | undefined;
|
|
908
|
-
prototype?: {
|
|
909
|
-
toString: {} | null;
|
|
910
|
-
toLocaleString: {} | null;
|
|
911
|
-
valueOf: {} | null;
|
|
912
|
-
constructor: {
|
|
913
|
-
length?: unknown;
|
|
914
|
-
toString: {} | null;
|
|
915
|
-
[Symbol.hasInstance]?: {} | null | undefined;
|
|
916
|
-
prototype?: unknown;
|
|
917
|
-
name?: unknown;
|
|
918
|
-
apply?: {} | null | undefined;
|
|
919
|
-
call?: {} | null | undefined;
|
|
920
|
-
bind?: {} | null | undefined;
|
|
921
|
-
arguments?: unknown;
|
|
922
|
-
caller?: any | null | undefined;
|
|
923
|
-
} | null;
|
|
924
|
-
hasOwnProperty: {} | null;
|
|
925
|
-
isPrototypeOf: {} | null;
|
|
926
|
-
propertyIsEnumerable: {} | null;
|
|
927
|
-
} | null | undefined;
|
|
928
|
-
getPrototypeOf?: {} | null | undefined;
|
|
929
|
-
getOwnPropertyDescriptor?: {} | null | undefined;
|
|
930
|
-
getOwnPropertyNames?: {} | null | undefined;
|
|
931
|
-
defineProperty?: {} | null | undefined;
|
|
932
|
-
defineProperties?: {} | null | undefined;
|
|
933
|
-
seal?: {} | null | undefined;
|
|
934
|
-
freeze?: {} | null | undefined;
|
|
935
|
-
preventExtensions?: {} | null | undefined;
|
|
936
|
-
isSealed?: {} | null | undefined;
|
|
937
|
-
isFrozen?: {} | null | undefined;
|
|
938
|
-
isExtensible?: {} | null | undefined;
|
|
939
|
-
assign?: {} | null | undefined;
|
|
940
|
-
getOwnPropertySymbols?: {} | null | undefined;
|
|
941
|
-
is?: {} | null | undefined;
|
|
942
|
-
setPrototypeOf?: {} | null | undefined;
|
|
943
|
-
getOwnPropertyDescriptors?: {} | null | undefined;
|
|
944
|
-
fromEntries?: {} | null | undefined;
|
|
945
|
-
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
946
|
-
entries?: {} | null | undefined;
|
|
947
|
-
keys?: {} | null | undefined;
|
|
948
|
-
values?: {} | null | undefined;
|
|
949
|
-
create?: {} | null | undefined;
|
|
950
|
-
prototype?: {
|
|
951
|
-
toString: {} | null;
|
|
952
|
-
toLocaleString: {} | null;
|
|
953
|
-
valueOf: {} | null;
|
|
954
|
-
constructor: {
|
|
955
|
-
length?: unknown;
|
|
956
|
-
toString: {} | null;
|
|
957
|
-
[Symbol.hasInstance]?: {} | null | undefined;
|
|
958
|
-
prototype?: unknown;
|
|
959
|
-
name?: unknown;
|
|
960
|
-
apply?: {} | null | undefined;
|
|
961
|
-
call?: {} | null | undefined;
|
|
962
|
-
bind?: {} | null | undefined;
|
|
963
|
-
arguments?: unknown;
|
|
964
|
-
caller?: any | null | undefined;
|
|
965
|
-
} | null;
|
|
966
|
-
hasOwnProperty: {} | null;
|
|
967
|
-
isPrototypeOf: {} | null;
|
|
968
|
-
propertyIsEnumerable: {} | null;
|
|
969
|
-
} | null | undefined;
|
|
970
|
-
getPrototypeOf?: {} | null | undefined;
|
|
971
|
-
getOwnPropertyDescriptor?: {} | null | undefined;
|
|
972
|
-
getOwnPropertyNames?: {} | null | undefined;
|
|
973
|
-
defineProperty?: {} | null | undefined;
|
|
974
|
-
defineProperties?: {} | null | undefined;
|
|
975
|
-
seal?: {} | null | undefined;
|
|
976
|
-
freeze?: {} | null | undefined;
|
|
977
|
-
preventExtensions?: {} | null | undefined;
|
|
978
|
-
isSealed?: {} | null | undefined;
|
|
979
|
-
isFrozen?: {} | null | undefined;
|
|
980
|
-
isExtensible?: {} | null | undefined;
|
|
981
|
-
assign?: {} | null | undefined;
|
|
982
|
-
getOwnPropertySymbols?: {} | null | undefined;
|
|
983
|
-
is?: {} | null | undefined;
|
|
984
|
-
setPrototypeOf?: {} | null | undefined;
|
|
985
|
-
getOwnPropertyDescriptors?: {} | null | undefined;
|
|
986
|
-
fromEntries?: {} | null | undefined;
|
|
987
|
-
}> & {
|
|
988
|
-
entries?: {} | null | undefined;
|
|
989
|
-
keys?: {} | null | undefined;
|
|
990
|
-
values?: {} | null | undefined;
|
|
991
|
-
create?: {} | null | undefined;
|
|
992
|
-
prototype?: {
|
|
993
|
-
toString: {} | null;
|
|
994
|
-
toLocaleString: {} | null;
|
|
995
|
-
valueOf: {} | null;
|
|
996
|
-
constructor: {
|
|
997
|
-
length?: unknown;
|
|
998
|
-
toString: {} | null;
|
|
999
|
-
[Symbol.hasInstance]?: {} | null | undefined;
|
|
1000
|
-
prototype?: unknown;
|
|
1001
|
-
name?: unknown;
|
|
1002
|
-
apply?: {} | null | undefined;
|
|
1003
|
-
call?: {} | null | undefined;
|
|
1004
|
-
bind?: {} | null | undefined;
|
|
1005
|
-
arguments?: unknown;
|
|
1006
|
-
caller?: any | null | undefined;
|
|
1007
|
-
} | null;
|
|
1008
|
-
hasOwnProperty: {} | null;
|
|
1009
|
-
isPrototypeOf: {} | null;
|
|
1010
|
-
propertyIsEnumerable: {} | null;
|
|
1011
|
-
} | null | undefined;
|
|
1012
|
-
getPrototypeOf?: {} | null | undefined;
|
|
1013
|
-
getOwnPropertyDescriptor?: {} | null | undefined;
|
|
1014
|
-
getOwnPropertyNames?: {} | null | undefined;
|
|
1015
|
-
defineProperty?: {} | null | undefined;
|
|
1016
|
-
defineProperties?: {} | null | undefined;
|
|
1017
|
-
seal?: {} | null | undefined;
|
|
1018
|
-
freeze?: {} | null | undefined;
|
|
1019
|
-
preventExtensions?: {} | null | undefined;
|
|
1020
|
-
isSealed?: {} | null | undefined;
|
|
1021
|
-
isFrozen?: {} | null | undefined;
|
|
1022
|
-
isExtensible?: {} | null | undefined;
|
|
1023
|
-
assign?: {} | null | undefined;
|
|
1024
|
-
getOwnPropertySymbols?: {} | null | undefined;
|
|
1025
|
-
is?: {} | null | undefined;
|
|
1026
|
-
setPrototypeOf?: {} | null | undefined;
|
|
1027
|
-
getOwnPropertyDescriptors?: {} | null | undefined;
|
|
1028
|
-
fromEntries?: {} | null | undefined;
|
|
1029
|
-
}>;
|
|
276
|
+
geos: string[];
|
|
1030
277
|
created_at: NativeDate;
|
|
1031
278
|
updated_at: NativeDate;
|
|
1032
279
|
user_id: string;
|
package/dist/index.js
CHANGED
|
@@ -96,7 +96,8 @@ exports.MongoQuerySchema = new mongoose_1.Schema({
|
|
|
96
96
|
title: { type: String },
|
|
97
97
|
query: { type: String },
|
|
98
98
|
sources: { type: [String] },
|
|
99
|
-
geos: { type: [
|
|
99
|
+
geos: { type: [String], required: true },
|
|
100
|
+
geos_ids: { type: [String], required: true },
|
|
100
101
|
time_range: {
|
|
101
102
|
type: mongoose_1.Schema.Types.Mixed,
|
|
102
103
|
required: true,
|
|
@@ -110,7 +111,7 @@ exports.MongoQuerySchema = new mongoose_1.Schema({
|
|
|
110
111
|
});
|
|
111
112
|
exports.MongoUserSettingsSchema = new mongoose_1.Schema({
|
|
112
113
|
sources: { type: [String] },
|
|
113
|
-
geos: { type: [
|
|
114
|
+
geos: { type: [String], default: [] },
|
|
114
115
|
time_range: {
|
|
115
116
|
type: mongoose_1.Schema.Types.Mixed,
|
|
116
117
|
},
|
package/dist/types.d.ts
CHANGED
|
@@ -215,16 +215,16 @@ export declare const zodDataSchema: z.ZodObject<{
|
|
|
215
215
|
author_username?: string | undefined;
|
|
216
216
|
author_id?: string | undefined;
|
|
217
217
|
}>;
|
|
218
|
-
export declare const relativeTimeRangeList: readonly ["last_30_minutes", "last_1_hour", "last_2_hours", "last_6_hours", "last_12_hours", "last_24_hours", "last_48_hours", "last_72_hours", "last_week"];
|
|
218
|
+
export declare const relativeTimeRangeList: readonly ["last_30_minutes", "last_1_hour", "last_2_hours", "last_6_hours", "last_12_hours", "last_24_hours", "last_48_hours", "last_72_hours", "last_week", "7_october"];
|
|
219
219
|
export declare const zodRelativeTimeRangeSchema: z.ZodObject<{
|
|
220
220
|
type: z.ZodLiteral<"relative">;
|
|
221
|
-
time: z.ZodEnum<["last_30_minutes", "last_1_hour", "last_2_hours", "last_6_hours", "last_12_hours", "last_24_hours", "last_48_hours", "last_72_hours", "last_week"]>;
|
|
221
|
+
time: z.ZodEnum<["last_30_minutes", "last_1_hour", "last_2_hours", "last_6_hours", "last_12_hours", "last_24_hours", "last_48_hours", "last_72_hours", "last_week", "7_october"]>;
|
|
222
222
|
}, "strip", z.ZodTypeAny, {
|
|
223
223
|
type: "relative";
|
|
224
|
-
time: "last_30_minutes" | "last_1_hour" | "last_2_hours" | "last_6_hours" | "last_12_hours" | "last_24_hours" | "last_48_hours" | "last_72_hours" | "last_week";
|
|
224
|
+
time: "last_30_minutes" | "last_1_hour" | "last_2_hours" | "last_6_hours" | "last_12_hours" | "last_24_hours" | "last_48_hours" | "last_72_hours" | "last_week" | "7_october";
|
|
225
225
|
}, {
|
|
226
226
|
type: "relative";
|
|
227
|
-
time: "last_30_minutes" | "last_1_hour" | "last_2_hours" | "last_6_hours" | "last_12_hours" | "last_24_hours" | "last_48_hours" | "last_72_hours" | "last_week";
|
|
227
|
+
time: "last_30_minutes" | "last_1_hour" | "last_2_hours" | "last_6_hours" | "last_12_hours" | "last_24_hours" | "last_48_hours" | "last_72_hours" | "last_week" | "7_october";
|
|
228
228
|
}>;
|
|
229
229
|
export declare const zodAbsoluteTimeRangeSchema: z.ZodObject<{
|
|
230
230
|
type: z.ZodLiteral<"absolute">;
|
|
@@ -244,43 +244,17 @@ export declare const zodQuerySchema: z.ZodObject<{
|
|
|
244
244
|
title: z.ZodOptional<z.ZodString>;
|
|
245
245
|
query: z.ZodOptional<z.ZodString>;
|
|
246
246
|
sources: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
247
|
-
geos: z.ZodOptional<z.ZodArray<z.
|
|
248
|
-
|
|
249
|
-
title: z.ZodOptional<z.ZodString>;
|
|
250
|
-
description: z.ZodOptional<z.ZodString>;
|
|
251
|
-
type: z.ZodOptional<z.ZodString>;
|
|
252
|
-
geos: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
253
|
-
region: z.ZodOptional<z.ZodString>;
|
|
254
|
-
created_at: z.ZodOptional<z.ZodNumber>;
|
|
255
|
-
updated_at: z.ZodOptional<z.ZodNumber>;
|
|
256
|
-
}, "strip", z.ZodTypeAny, {
|
|
257
|
-
_id?: string | undefined;
|
|
258
|
-
region?: string | undefined;
|
|
259
|
-
type?: string | undefined;
|
|
260
|
-
title?: string | undefined;
|
|
261
|
-
description?: string | undefined;
|
|
262
|
-
geos?: string[] | undefined;
|
|
263
|
-
created_at?: number | undefined;
|
|
264
|
-
updated_at?: number | undefined;
|
|
265
|
-
}, {
|
|
266
|
-
_id?: string | undefined;
|
|
267
|
-
region?: string | undefined;
|
|
268
|
-
type?: string | undefined;
|
|
269
|
-
title?: string | undefined;
|
|
270
|
-
description?: string | undefined;
|
|
271
|
-
geos?: string[] | undefined;
|
|
272
|
-
created_at?: number | undefined;
|
|
273
|
-
updated_at?: number | undefined;
|
|
274
|
-
}>, "many">>;
|
|
247
|
+
geos: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
248
|
+
geos_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
275
249
|
time_range: z.ZodUnion<[z.ZodObject<{
|
|
276
250
|
type: z.ZodLiteral<"relative">;
|
|
277
|
-
time: z.ZodEnum<["last_30_minutes", "last_1_hour", "last_2_hours", "last_6_hours", "last_12_hours", "last_24_hours", "last_48_hours", "last_72_hours", "last_week"]>;
|
|
251
|
+
time: z.ZodEnum<["last_30_minutes", "last_1_hour", "last_2_hours", "last_6_hours", "last_12_hours", "last_24_hours", "last_48_hours", "last_72_hours", "last_week", "7_october"]>;
|
|
278
252
|
}, "strip", z.ZodTypeAny, {
|
|
279
253
|
type: "relative";
|
|
280
|
-
time: "last_30_minutes" | "last_1_hour" | "last_2_hours" | "last_6_hours" | "last_12_hours" | "last_24_hours" | "last_48_hours" | "last_72_hours" | "last_week";
|
|
254
|
+
time: "last_30_minutes" | "last_1_hour" | "last_2_hours" | "last_6_hours" | "last_12_hours" | "last_24_hours" | "last_48_hours" | "last_72_hours" | "last_week" | "7_october";
|
|
281
255
|
}, {
|
|
282
256
|
type: "relative";
|
|
283
|
-
time: "last_30_minutes" | "last_1_hour" | "last_2_hours" | "last_6_hours" | "last_12_hours" | "last_24_hours" | "last_48_hours" | "last_72_hours" | "last_week";
|
|
257
|
+
time: "last_30_minutes" | "last_1_hour" | "last_2_hours" | "last_6_hours" | "last_12_hours" | "last_24_hours" | "last_48_hours" | "last_72_hours" | "last_week" | "7_october";
|
|
284
258
|
}>, z.ZodObject<{
|
|
285
259
|
type: z.ZodLiteral<"absolute">;
|
|
286
260
|
start: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
|
|
@@ -301,7 +275,7 @@ export declare const zodQuerySchema: z.ZodObject<{
|
|
|
301
275
|
user_id: string;
|
|
302
276
|
time_range: {
|
|
303
277
|
type: "relative";
|
|
304
|
-
time: "last_30_minutes" | "last_1_hour" | "last_2_hours" | "last_6_hours" | "last_12_hours" | "last_24_hours" | "last_48_hours" | "last_72_hours" | "last_week";
|
|
278
|
+
time: "last_30_minutes" | "last_1_hour" | "last_2_hours" | "last_6_hours" | "last_12_hours" | "last_24_hours" | "last_48_hours" | "last_72_hours" | "last_week" | "7_october";
|
|
305
279
|
} | {
|
|
306
280
|
type: "absolute";
|
|
307
281
|
start: number | Date;
|
|
@@ -309,25 +283,17 @@ export declare const zodQuerySchema: z.ZodObject<{
|
|
|
309
283
|
};
|
|
310
284
|
_id?: string | undefined;
|
|
311
285
|
title?: string | undefined;
|
|
312
|
-
geos?:
|
|
313
|
-
_id?: string | undefined;
|
|
314
|
-
region?: string | undefined;
|
|
315
|
-
type?: string | undefined;
|
|
316
|
-
title?: string | undefined;
|
|
317
|
-
description?: string | undefined;
|
|
318
|
-
geos?: string[] | undefined;
|
|
319
|
-
created_at?: number | undefined;
|
|
320
|
-
updated_at?: number | undefined;
|
|
321
|
-
}[] | undefined;
|
|
286
|
+
geos?: string[] | undefined;
|
|
322
287
|
query?: string | undefined;
|
|
323
288
|
sources?: string[] | undefined;
|
|
289
|
+
geos_ids?: string[] | undefined;
|
|
324
290
|
user_instructions?: string | undefined;
|
|
325
291
|
thread_id?: string | undefined;
|
|
326
292
|
}, {
|
|
327
293
|
user_id: string;
|
|
328
294
|
time_range: {
|
|
329
295
|
type: "relative";
|
|
330
|
-
time: "last_30_minutes" | "last_1_hour" | "last_2_hours" | "last_6_hours" | "last_12_hours" | "last_24_hours" | "last_48_hours" | "last_72_hours" | "last_week";
|
|
296
|
+
time: "last_30_minutes" | "last_1_hour" | "last_2_hours" | "last_6_hours" | "last_12_hours" | "last_24_hours" | "last_48_hours" | "last_72_hours" | "last_week" | "7_october";
|
|
331
297
|
} | {
|
|
332
298
|
type: "absolute";
|
|
333
299
|
start: number | Date;
|
|
@@ -335,18 +301,10 @@ export declare const zodQuerySchema: z.ZodObject<{
|
|
|
335
301
|
};
|
|
336
302
|
_id?: string | undefined;
|
|
337
303
|
title?: string | undefined;
|
|
338
|
-
geos?:
|
|
339
|
-
_id?: string | undefined;
|
|
340
|
-
region?: string | undefined;
|
|
341
|
-
type?: string | undefined;
|
|
342
|
-
title?: string | undefined;
|
|
343
|
-
description?: string | undefined;
|
|
344
|
-
geos?: string[] | undefined;
|
|
345
|
-
created_at?: number | undefined;
|
|
346
|
-
updated_at?: number | undefined;
|
|
347
|
-
}[] | undefined;
|
|
304
|
+
geos?: string[] | undefined;
|
|
348
305
|
query?: string | undefined;
|
|
349
306
|
sources?: string[] | undefined;
|
|
307
|
+
geos_ids?: string[] | undefined;
|
|
350
308
|
user_instructions?: string | undefined;
|
|
351
309
|
thread_id?: string | undefined;
|
|
352
310
|
}>;
|
|
@@ -372,43 +330,16 @@ export declare const zodInstructionsSchema: z.ZodObject<{
|
|
|
372
330
|
export declare const zodUserSettingsSchema: z.ZodObject<{
|
|
373
331
|
_id: z.ZodOptional<z.ZodString>;
|
|
374
332
|
sources: z.ZodArray<z.ZodString, "many">;
|
|
375
|
-
geos: z.ZodOptional<z.ZodArray<z.
|
|
376
|
-
_id: z.ZodOptional<z.ZodString>;
|
|
377
|
-
title: z.ZodOptional<z.ZodString>;
|
|
378
|
-
description: z.ZodOptional<z.ZodString>;
|
|
379
|
-
type: z.ZodOptional<z.ZodString>;
|
|
380
|
-
geos: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
381
|
-
region: z.ZodOptional<z.ZodString>;
|
|
382
|
-
created_at: z.ZodOptional<z.ZodNumber>;
|
|
383
|
-
updated_at: z.ZodOptional<z.ZodNumber>;
|
|
384
|
-
}, "strip", z.ZodTypeAny, {
|
|
385
|
-
_id?: string | undefined;
|
|
386
|
-
region?: string | undefined;
|
|
387
|
-
type?: string | undefined;
|
|
388
|
-
title?: string | undefined;
|
|
389
|
-
description?: string | undefined;
|
|
390
|
-
geos?: string[] | undefined;
|
|
391
|
-
created_at?: number | undefined;
|
|
392
|
-
updated_at?: number | undefined;
|
|
393
|
-
}, {
|
|
394
|
-
_id?: string | undefined;
|
|
395
|
-
region?: string | undefined;
|
|
396
|
-
type?: string | undefined;
|
|
397
|
-
title?: string | undefined;
|
|
398
|
-
description?: string | undefined;
|
|
399
|
-
geos?: string[] | undefined;
|
|
400
|
-
created_at?: number | undefined;
|
|
401
|
-
updated_at?: number | undefined;
|
|
402
|
-
}>, "many">>;
|
|
333
|
+
geos: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
403
334
|
time_range: z.ZodUnion<[z.ZodObject<{
|
|
404
335
|
type: z.ZodLiteral<"relative">;
|
|
405
|
-
time: z.ZodEnum<["last_30_minutes", "last_1_hour", "last_2_hours", "last_6_hours", "last_12_hours", "last_24_hours", "last_48_hours", "last_72_hours", "last_week"]>;
|
|
336
|
+
time: z.ZodEnum<["last_30_minutes", "last_1_hour", "last_2_hours", "last_6_hours", "last_12_hours", "last_24_hours", "last_48_hours", "last_72_hours", "last_week", "7_october"]>;
|
|
406
337
|
}, "strip", z.ZodTypeAny, {
|
|
407
338
|
type: "relative";
|
|
408
|
-
time: "last_30_minutes" | "last_1_hour" | "last_2_hours" | "last_6_hours" | "last_12_hours" | "last_24_hours" | "last_48_hours" | "last_72_hours" | "last_week";
|
|
339
|
+
time: "last_30_minutes" | "last_1_hour" | "last_2_hours" | "last_6_hours" | "last_12_hours" | "last_24_hours" | "last_48_hours" | "last_72_hours" | "last_week" | "7_october";
|
|
409
340
|
}, {
|
|
410
341
|
type: "relative";
|
|
411
|
-
time: "last_30_minutes" | "last_1_hour" | "last_2_hours" | "last_6_hours" | "last_12_hours" | "last_24_hours" | "last_48_hours" | "last_72_hours" | "last_week";
|
|
342
|
+
time: "last_30_minutes" | "last_1_hour" | "last_2_hours" | "last_6_hours" | "last_12_hours" | "last_24_hours" | "last_48_hours" | "last_72_hours" | "last_week" | "7_october";
|
|
412
343
|
}>, z.ZodObject<{
|
|
413
344
|
type: z.ZodLiteral<"absolute">;
|
|
414
345
|
start: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
|
|
@@ -436,7 +367,7 @@ export declare const zodUserSettingsSchema: z.ZodObject<{
|
|
|
436
367
|
sources: string[];
|
|
437
368
|
time_range: {
|
|
438
369
|
type: "relative";
|
|
439
|
-
time: "last_30_minutes" | "last_1_hour" | "last_2_hours" | "last_6_hours" | "last_12_hours" | "last_24_hours" | "last_48_hours" | "last_72_hours" | "last_week";
|
|
370
|
+
time: "last_30_minutes" | "last_1_hour" | "last_2_hours" | "last_6_hours" | "last_12_hours" | "last_24_hours" | "last_48_hours" | "last_72_hours" | "last_week" | "7_october";
|
|
440
371
|
} | {
|
|
441
372
|
type: "absolute";
|
|
442
373
|
start: number | Date;
|
|
@@ -445,16 +376,7 @@ export declare const zodUserSettingsSchema: z.ZodObject<{
|
|
|
445
376
|
has_jobs_access: boolean;
|
|
446
377
|
active_jobs_limit: number;
|
|
447
378
|
_id?: string | undefined;
|
|
448
|
-
geos?:
|
|
449
|
-
_id?: string | undefined;
|
|
450
|
-
region?: string | undefined;
|
|
451
|
-
type?: string | undefined;
|
|
452
|
-
title?: string | undefined;
|
|
453
|
-
description?: string | undefined;
|
|
454
|
-
geos?: string[] | undefined;
|
|
455
|
-
created_at?: number | undefined;
|
|
456
|
-
updated_at?: number | undefined;
|
|
457
|
-
}[] | undefined;
|
|
379
|
+
geos?: string[] | undefined;
|
|
458
380
|
created_at?: number | Date | undefined;
|
|
459
381
|
updated_at?: number | Date | undefined;
|
|
460
382
|
thread_id?: string | undefined;
|
|
@@ -464,7 +386,7 @@ export declare const zodUserSettingsSchema: z.ZodObject<{
|
|
|
464
386
|
sources: string[];
|
|
465
387
|
time_range: {
|
|
466
388
|
type: "relative";
|
|
467
|
-
time: "last_30_minutes" | "last_1_hour" | "last_2_hours" | "last_6_hours" | "last_12_hours" | "last_24_hours" | "last_48_hours" | "last_72_hours" | "last_week";
|
|
389
|
+
time: "last_30_minutes" | "last_1_hour" | "last_2_hours" | "last_6_hours" | "last_12_hours" | "last_24_hours" | "last_48_hours" | "last_72_hours" | "last_week" | "7_october";
|
|
468
390
|
} | {
|
|
469
391
|
type: "absolute";
|
|
470
392
|
start: number | Date;
|
|
@@ -472,16 +394,7 @@ export declare const zodUserSettingsSchema: z.ZodObject<{
|
|
|
472
394
|
};
|
|
473
395
|
_id?: string | undefined;
|
|
474
396
|
status?: "inactive" | "active" | undefined;
|
|
475
|
-
geos?:
|
|
476
|
-
_id?: string | undefined;
|
|
477
|
-
region?: string | undefined;
|
|
478
|
-
type?: string | undefined;
|
|
479
|
-
title?: string | undefined;
|
|
480
|
-
description?: string | undefined;
|
|
481
|
-
geos?: string[] | undefined;
|
|
482
|
-
created_at?: number | undefined;
|
|
483
|
-
updated_at?: number | undefined;
|
|
484
|
-
}[] | undefined;
|
|
397
|
+
geos?: string[] | undefined;
|
|
485
398
|
created_at?: number | Date | undefined;
|
|
486
399
|
updated_at?: number | Date | undefined;
|
|
487
400
|
thread_id?: string | undefined;
|
|
@@ -532,43 +445,17 @@ export declare const zodJobSchema: z.ZodObject<{
|
|
|
532
445
|
title: z.ZodOptional<z.ZodString>;
|
|
533
446
|
query: z.ZodOptional<z.ZodString>;
|
|
534
447
|
sources: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
535
|
-
geos: z.ZodOptional<z.ZodArray<z.
|
|
536
|
-
|
|
537
|
-
title: z.ZodOptional<z.ZodString>;
|
|
538
|
-
description: z.ZodOptional<z.ZodString>;
|
|
539
|
-
type: z.ZodOptional<z.ZodString>;
|
|
540
|
-
geos: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
541
|
-
region: z.ZodOptional<z.ZodString>;
|
|
542
|
-
created_at: z.ZodOptional<z.ZodNumber>;
|
|
543
|
-
updated_at: z.ZodOptional<z.ZodNumber>;
|
|
544
|
-
}, "strip", z.ZodTypeAny, {
|
|
545
|
-
_id?: string | undefined;
|
|
546
|
-
region?: string | undefined;
|
|
547
|
-
type?: string | undefined;
|
|
548
|
-
title?: string | undefined;
|
|
549
|
-
description?: string | undefined;
|
|
550
|
-
geos?: string[] | undefined;
|
|
551
|
-
created_at?: number | undefined;
|
|
552
|
-
updated_at?: number | undefined;
|
|
553
|
-
}, {
|
|
554
|
-
_id?: string | undefined;
|
|
555
|
-
region?: string | undefined;
|
|
556
|
-
type?: string | undefined;
|
|
557
|
-
title?: string | undefined;
|
|
558
|
-
description?: string | undefined;
|
|
559
|
-
geos?: string[] | undefined;
|
|
560
|
-
created_at?: number | undefined;
|
|
561
|
-
updated_at?: number | undefined;
|
|
562
|
-
}>, "many">>;
|
|
448
|
+
geos: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
449
|
+
geos_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
563
450
|
time_range: z.ZodUnion<[z.ZodObject<{
|
|
564
451
|
type: z.ZodLiteral<"relative">;
|
|
565
|
-
time: z.ZodEnum<["last_30_minutes", "last_1_hour", "last_2_hours", "last_6_hours", "last_12_hours", "last_24_hours", "last_48_hours", "last_72_hours", "last_week"]>;
|
|
452
|
+
time: z.ZodEnum<["last_30_minutes", "last_1_hour", "last_2_hours", "last_6_hours", "last_12_hours", "last_24_hours", "last_48_hours", "last_72_hours", "last_week", "7_october"]>;
|
|
566
453
|
}, "strip", z.ZodTypeAny, {
|
|
567
454
|
type: "relative";
|
|
568
|
-
time: "last_30_minutes" | "last_1_hour" | "last_2_hours" | "last_6_hours" | "last_12_hours" | "last_24_hours" | "last_48_hours" | "last_72_hours" | "last_week";
|
|
455
|
+
time: "last_30_minutes" | "last_1_hour" | "last_2_hours" | "last_6_hours" | "last_12_hours" | "last_24_hours" | "last_48_hours" | "last_72_hours" | "last_week" | "7_october";
|
|
569
456
|
}, {
|
|
570
457
|
type: "relative";
|
|
571
|
-
time: "last_30_minutes" | "last_1_hour" | "last_2_hours" | "last_6_hours" | "last_12_hours" | "last_24_hours" | "last_48_hours" | "last_72_hours" | "last_week";
|
|
458
|
+
time: "last_30_minutes" | "last_1_hour" | "last_2_hours" | "last_6_hours" | "last_12_hours" | "last_24_hours" | "last_48_hours" | "last_72_hours" | "last_week" | "7_october";
|
|
572
459
|
}>, z.ZodObject<{
|
|
573
460
|
type: z.ZodLiteral<"absolute">;
|
|
574
461
|
start: z.ZodUnion<[z.ZodDate, z.ZodNumber]>;
|
|
@@ -589,7 +476,7 @@ export declare const zodJobSchema: z.ZodObject<{
|
|
|
589
476
|
user_id: string;
|
|
590
477
|
time_range: {
|
|
591
478
|
type: "relative";
|
|
592
|
-
time: "last_30_minutes" | "last_1_hour" | "last_2_hours" | "last_6_hours" | "last_12_hours" | "last_24_hours" | "last_48_hours" | "last_72_hours" | "last_week";
|
|
479
|
+
time: "last_30_minutes" | "last_1_hour" | "last_2_hours" | "last_6_hours" | "last_12_hours" | "last_24_hours" | "last_48_hours" | "last_72_hours" | "last_week" | "7_october";
|
|
593
480
|
} | {
|
|
594
481
|
type: "absolute";
|
|
595
482
|
start: number | Date;
|
|
@@ -597,25 +484,17 @@ export declare const zodJobSchema: z.ZodObject<{
|
|
|
597
484
|
};
|
|
598
485
|
_id?: string | undefined;
|
|
599
486
|
title?: string | undefined;
|
|
600
|
-
geos?:
|
|
601
|
-
_id?: string | undefined;
|
|
602
|
-
region?: string | undefined;
|
|
603
|
-
type?: string | undefined;
|
|
604
|
-
title?: string | undefined;
|
|
605
|
-
description?: string | undefined;
|
|
606
|
-
geos?: string[] | undefined;
|
|
607
|
-
created_at?: number | undefined;
|
|
608
|
-
updated_at?: number | undefined;
|
|
609
|
-
}[] | undefined;
|
|
487
|
+
geos?: string[] | undefined;
|
|
610
488
|
query?: string | undefined;
|
|
611
489
|
sources?: string[] | undefined;
|
|
490
|
+
geos_ids?: string[] | undefined;
|
|
612
491
|
user_instructions?: string | undefined;
|
|
613
492
|
thread_id?: string | undefined;
|
|
614
493
|
}, {
|
|
615
494
|
user_id: string;
|
|
616
495
|
time_range: {
|
|
617
496
|
type: "relative";
|
|
618
|
-
time: "last_30_minutes" | "last_1_hour" | "last_2_hours" | "last_6_hours" | "last_12_hours" | "last_24_hours" | "last_48_hours" | "last_72_hours" | "last_week";
|
|
497
|
+
time: "last_30_minutes" | "last_1_hour" | "last_2_hours" | "last_6_hours" | "last_12_hours" | "last_24_hours" | "last_48_hours" | "last_72_hours" | "last_week" | "7_october";
|
|
619
498
|
} | {
|
|
620
499
|
type: "absolute";
|
|
621
500
|
start: number | Date;
|
|
@@ -623,18 +502,10 @@ export declare const zodJobSchema: z.ZodObject<{
|
|
|
623
502
|
};
|
|
624
503
|
_id?: string | undefined;
|
|
625
504
|
title?: string | undefined;
|
|
626
|
-
geos?:
|
|
627
|
-
_id?: string | undefined;
|
|
628
|
-
region?: string | undefined;
|
|
629
|
-
type?: string | undefined;
|
|
630
|
-
title?: string | undefined;
|
|
631
|
-
description?: string | undefined;
|
|
632
|
-
geos?: string[] | undefined;
|
|
633
|
-
created_at?: number | undefined;
|
|
634
|
-
updated_at?: number | undefined;
|
|
635
|
-
}[] | undefined;
|
|
505
|
+
geos?: string[] | undefined;
|
|
636
506
|
query?: string | undefined;
|
|
637
507
|
sources?: string[] | undefined;
|
|
508
|
+
geos_ids?: string[] | undefined;
|
|
638
509
|
user_instructions?: string | undefined;
|
|
639
510
|
thread_id?: string | undefined;
|
|
640
511
|
}>;
|
|
@@ -649,7 +520,7 @@ export declare const zodJobSchema: z.ZodObject<{
|
|
|
649
520
|
user_id: string;
|
|
650
521
|
time_range: {
|
|
651
522
|
type: "relative";
|
|
652
|
-
time: "last_30_minutes" | "last_1_hour" | "last_2_hours" | "last_6_hours" | "last_12_hours" | "last_24_hours" | "last_48_hours" | "last_72_hours" | "last_week";
|
|
523
|
+
time: "last_30_minutes" | "last_1_hour" | "last_2_hours" | "last_6_hours" | "last_12_hours" | "last_24_hours" | "last_48_hours" | "last_72_hours" | "last_week" | "7_october";
|
|
653
524
|
} | {
|
|
654
525
|
type: "absolute";
|
|
655
526
|
start: number | Date;
|
|
@@ -657,18 +528,10 @@ export declare const zodJobSchema: z.ZodObject<{
|
|
|
657
528
|
};
|
|
658
529
|
_id?: string | undefined;
|
|
659
530
|
title?: string | undefined;
|
|
660
|
-
geos?:
|
|
661
|
-
_id?: string | undefined;
|
|
662
|
-
region?: string | undefined;
|
|
663
|
-
type?: string | undefined;
|
|
664
|
-
title?: string | undefined;
|
|
665
|
-
description?: string | undefined;
|
|
666
|
-
geos?: string[] | undefined;
|
|
667
|
-
created_at?: number | undefined;
|
|
668
|
-
updated_at?: number | undefined;
|
|
669
|
-
}[] | undefined;
|
|
531
|
+
geos?: string[] | undefined;
|
|
670
532
|
query?: string | undefined;
|
|
671
533
|
sources?: string[] | undefined;
|
|
534
|
+
geos_ids?: string[] | undefined;
|
|
672
535
|
user_instructions?: string | undefined;
|
|
673
536
|
thread_id?: string | undefined;
|
|
674
537
|
};
|
|
@@ -689,7 +552,7 @@ export declare const zodJobSchema: z.ZodObject<{
|
|
|
689
552
|
user_id: string;
|
|
690
553
|
time_range: {
|
|
691
554
|
type: "relative";
|
|
692
|
-
time: "last_30_minutes" | "last_1_hour" | "last_2_hours" | "last_6_hours" | "last_12_hours" | "last_24_hours" | "last_48_hours" | "last_72_hours" | "last_week";
|
|
555
|
+
time: "last_30_minutes" | "last_1_hour" | "last_2_hours" | "last_6_hours" | "last_12_hours" | "last_24_hours" | "last_48_hours" | "last_72_hours" | "last_week" | "7_october";
|
|
693
556
|
} | {
|
|
694
557
|
type: "absolute";
|
|
695
558
|
start: number | Date;
|
|
@@ -697,18 +560,10 @@ export declare const zodJobSchema: z.ZodObject<{
|
|
|
697
560
|
};
|
|
698
561
|
_id?: string | undefined;
|
|
699
562
|
title?: string | undefined;
|
|
700
|
-
geos?:
|
|
701
|
-
_id?: string | undefined;
|
|
702
|
-
region?: string | undefined;
|
|
703
|
-
type?: string | undefined;
|
|
704
|
-
title?: string | undefined;
|
|
705
|
-
description?: string | undefined;
|
|
706
|
-
geos?: string[] | undefined;
|
|
707
|
-
created_at?: number | undefined;
|
|
708
|
-
updated_at?: number | undefined;
|
|
709
|
-
}[] | undefined;
|
|
563
|
+
geos?: string[] | undefined;
|
|
710
564
|
query?: string | undefined;
|
|
711
565
|
sources?: string[] | undefined;
|
|
566
|
+
geos_ids?: string[] | undefined;
|
|
712
567
|
user_instructions?: string | undefined;
|
|
713
568
|
thread_id?: string | undefined;
|
|
714
569
|
};
|
package/dist/types.js
CHANGED
|
@@ -103,6 +103,7 @@ exports.relativeTimeRangeList = [
|
|
|
103
103
|
'last_48_hours',
|
|
104
104
|
'last_72_hours',
|
|
105
105
|
'last_week',
|
|
106
|
+
'7_october'
|
|
106
107
|
];
|
|
107
108
|
exports.zodRelativeTimeRangeSchema = zod_1.z.object({
|
|
108
109
|
type: zod_1.z.literal('relative'),
|
|
@@ -118,7 +119,8 @@ exports.zodQuerySchema = zod_1.z.object({
|
|
|
118
119
|
title: zod_1.z.string().optional(),
|
|
119
120
|
query: zod_1.z.string().optional(),
|
|
120
121
|
sources: zod_1.z.array(zod_1.z.string()).optional(),
|
|
121
|
-
geos: zod_1.z.array(
|
|
122
|
+
geos: zod_1.z.array(zod_1.z.string()).optional(),
|
|
123
|
+
geos_ids: zod_1.z.array(zod_1.z.string()).optional(),
|
|
122
124
|
time_range: exports.zodRelativeTimeRangeSchema.or(exports.zodAbsoluteTimeRangeSchema),
|
|
123
125
|
user_instructions: zod_1.z.string().optional(),
|
|
124
126
|
user_id: zod_1.z.string().nonempty('User ID must be provided'),
|
|
@@ -134,7 +136,7 @@ exports.zodInstructionsSchema = zod_1.z.object({
|
|
|
134
136
|
exports.zodUserSettingsSchema = zod_1.z.object({
|
|
135
137
|
_id: zod_1.z.string().optional(),
|
|
136
138
|
sources: zod_1.z.array(zod_1.z.string()),
|
|
137
|
-
geos: zod_1.z.array(
|
|
139
|
+
geos: zod_1.z.array(zod_1.z.string()).optional(),
|
|
138
140
|
time_range: exports.zodRelativeTimeRangeSchema.or(exports.zodAbsoluteTimeRangeSchema),
|
|
139
141
|
thread_id: zod_1.z.string().optional(),
|
|
140
142
|
user_id: zod_1.z.string().nonempty('User ID must be provided'),
|
package/index.ts
CHANGED
|
@@ -94,7 +94,8 @@ export const MongoQuerySchema = new Schema(
|
|
|
94
94
|
title: { type: String }, // e.g., 'Search Query'
|
|
95
95
|
query: { type: String }, // search query includes geo information where it should be extracted with LLM
|
|
96
96
|
sources: { type: [String] }, // array of source _id strings
|
|
97
|
-
geos: { type: [
|
|
97
|
+
geos: { type: [String], required: true }, // array of geo strings
|
|
98
|
+
geos_ids: { type: [String], required: true }, // array of geo _id strings
|
|
98
99
|
time_range: {
|
|
99
100
|
type: Schema.Types.Mixed, // can be relative or absolute time range
|
|
100
101
|
required: true,
|
|
@@ -112,7 +113,7 @@ export const MongoQuerySchema = new Schema(
|
|
|
112
113
|
export const MongoUserSettingsSchema = new Schema(
|
|
113
114
|
{
|
|
114
115
|
sources: { type: [String] }, // array of source _id strings
|
|
115
|
-
geos: { type: [
|
|
116
|
+
geos: { type: [String], default: [] }, // array of geo strings
|
|
116
117
|
time_range: {
|
|
117
118
|
type: Schema.Types.Mixed,
|
|
118
119
|
},
|
package/package.json
CHANGED
package/types.ts
CHANGED
|
@@ -111,6 +111,7 @@ export const relativeTimeRangeList = [
|
|
|
111
111
|
'last_48_hours',
|
|
112
112
|
'last_72_hours',
|
|
113
113
|
'last_week',
|
|
114
|
+
'7_october'
|
|
114
115
|
] as const;
|
|
115
116
|
|
|
116
117
|
export const zodRelativeTimeRangeSchema = z.object({
|
|
@@ -129,7 +130,8 @@ export const zodQuerySchema = z.object({
|
|
|
129
130
|
title: z.string().optional(), // optional title for the query
|
|
130
131
|
query: z.string().optional(), // search query includes geo information where it should be extracted with LLM
|
|
131
132
|
sources: z.array(z.string()).optional(), // array of source _id strings
|
|
132
|
-
geos: z.array(
|
|
133
|
+
geos: z.array(z.string()).optional(), // array of geo strings
|
|
134
|
+
geos_ids: z.array(z.string()).optional(), // array of geo _id strings
|
|
133
135
|
time_range: zodRelativeTimeRangeSchema.or(zodAbsoluteTimeRangeSchema), // optional time range for the query
|
|
134
136
|
user_instructions: z.string().optional(), // optional user instructions for the query
|
|
135
137
|
user_id: z.string().nonempty('User ID must be provided'), // user identifier
|
|
@@ -147,7 +149,7 @@ export const zodInstructionsSchema = z.object({
|
|
|
147
149
|
export const zodUserSettingsSchema = z.object({
|
|
148
150
|
_id: z.string().optional(),
|
|
149
151
|
sources: z.array(z.string()), // array of source _id strings
|
|
150
|
-
geos: z.array(
|
|
152
|
+
geos: z.array(z.string()).optional(), // array of geo strings
|
|
151
153
|
time_range: zodRelativeTimeRangeSchema.or(zodAbsoluteTimeRangeSchema), // optional time range for the query
|
|
152
154
|
thread_id: z.string().optional(), // thread ID for the user settings
|
|
153
155
|
user_id: z.string().nonempty('User ID must be provided'), // user identifier
|