asfur 1.0.17 → 1.0.18
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 +12 -5
- package/dist/types.d.ts +3 -0
- package/dist/types.js +1 -0
- package/package.json +1 -1
- package/types.ts +2 -4
package/dist/index.d.ts
CHANGED
|
@@ -400,6 +400,7 @@ export declare const MongoQuerySchema: Schema<{
|
|
|
400
400
|
};
|
|
401
401
|
user_id: string;
|
|
402
402
|
is_default: boolean;
|
|
403
|
+
_id?: string | undefined;
|
|
403
404
|
title?: string | undefined;
|
|
404
405
|
query?: string | undefined;
|
|
405
406
|
user_instructions?: string | undefined;
|
|
@@ -415,6 +416,7 @@ export declare const MongoQuerySchema: Schema<{
|
|
|
415
416
|
};
|
|
416
417
|
user_id: string;
|
|
417
418
|
is_default: boolean;
|
|
419
|
+
_id?: string | undefined;
|
|
418
420
|
title?: string | undefined;
|
|
419
421
|
query?: string | undefined;
|
|
420
422
|
user_instructions?: string | undefined;
|
|
@@ -430,6 +432,7 @@ export declare const MongoQuerySchema: Schema<{
|
|
|
430
432
|
};
|
|
431
433
|
user_id: string;
|
|
432
434
|
is_default: boolean;
|
|
435
|
+
_id?: string | undefined;
|
|
433
436
|
title?: string | undefined;
|
|
434
437
|
query?: string | undefined;
|
|
435
438
|
user_instructions?: string | undefined;
|
|
@@ -445,12 +448,13 @@ export declare const MongoQuerySchema: Schema<{
|
|
|
445
448
|
};
|
|
446
449
|
user_id: string;
|
|
447
450
|
is_default: boolean;
|
|
451
|
+
_id?: string | undefined;
|
|
448
452
|
title?: string | undefined;
|
|
449
453
|
query?: string | undefined;
|
|
450
454
|
user_instructions?: string | undefined;
|
|
451
|
-
} & {
|
|
452
|
-
_id:
|
|
453
|
-
} & {
|
|
455
|
+
} & Required<{
|
|
456
|
+
_id: string;
|
|
457
|
+
}> & {
|
|
454
458
|
__v: number;
|
|
455
459
|
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
|
|
456
460
|
sources: string[];
|
|
@@ -464,6 +468,7 @@ export declare const MongoQuerySchema: Schema<{
|
|
|
464
468
|
};
|
|
465
469
|
user_id: string;
|
|
466
470
|
is_default: boolean;
|
|
471
|
+
_id?: string | undefined;
|
|
467
472
|
title?: string | undefined;
|
|
468
473
|
query?: string | undefined;
|
|
469
474
|
user_instructions?: string | undefined;
|
|
@@ -479,6 +484,7 @@ export declare const MongoQuerySchema: Schema<{
|
|
|
479
484
|
};
|
|
480
485
|
user_id: string;
|
|
481
486
|
is_default: boolean;
|
|
487
|
+
_id?: string | undefined;
|
|
482
488
|
title?: string | undefined;
|
|
483
489
|
query?: string | undefined;
|
|
484
490
|
user_instructions?: string | undefined;
|
|
@@ -494,11 +500,12 @@ export declare const MongoQuerySchema: Schema<{
|
|
|
494
500
|
};
|
|
495
501
|
user_id: string;
|
|
496
502
|
is_default: boolean;
|
|
503
|
+
_id?: string | undefined;
|
|
497
504
|
title?: string | undefined;
|
|
498
505
|
query?: string | undefined;
|
|
499
506
|
user_instructions?: string | undefined;
|
|
507
|
+
}> & Required<{
|
|
508
|
+
_id: string;
|
|
500
509
|
}> & {
|
|
501
|
-
_id: import("mongoose").Types.ObjectId;
|
|
502
|
-
} & {
|
|
503
510
|
__v: number;
|
|
504
511
|
}>;
|
package/dist/types.d.ts
CHANGED
|
@@ -161,6 +161,7 @@ export declare const zodAbsoluteTimeRangeSchema: z.ZodObject<{
|
|
|
161
161
|
end: number | Date;
|
|
162
162
|
}>;
|
|
163
163
|
export declare const zodQuerySchema: z.ZodObject<{
|
|
164
|
+
_id: z.ZodOptional<z.ZodString>;
|
|
164
165
|
title: z.ZodOptional<z.ZodString>;
|
|
165
166
|
query: z.ZodOptional<z.ZodString>;
|
|
166
167
|
sources: z.ZodArray<z.ZodString, "many">;
|
|
@@ -201,6 +202,7 @@ export declare const zodQuerySchema: z.ZodObject<{
|
|
|
201
202
|
};
|
|
202
203
|
user_id: string;
|
|
203
204
|
is_default: boolean;
|
|
205
|
+
_id?: string | undefined;
|
|
204
206
|
title?: string | undefined;
|
|
205
207
|
query?: string | undefined;
|
|
206
208
|
user_instructions?: string | undefined;
|
|
@@ -215,6 +217,7 @@ export declare const zodQuerySchema: z.ZodObject<{
|
|
|
215
217
|
end: number | Date;
|
|
216
218
|
};
|
|
217
219
|
user_id: string;
|
|
220
|
+
_id?: string | undefined;
|
|
218
221
|
title?: string | undefined;
|
|
219
222
|
query?: string | undefined;
|
|
220
223
|
user_instructions?: string | undefined;
|
package/dist/types.js
CHANGED
|
@@ -79,6 +79,7 @@ exports.zodAbsoluteTimeRangeSchema = zod_1.z.object({
|
|
|
79
79
|
end: zod_1.z.coerce.date().or(zod_1.z.number()), // end date
|
|
80
80
|
});
|
|
81
81
|
exports.zodQuerySchema = zod_1.z.object({
|
|
82
|
+
_id: zod_1.z.string().optional(),
|
|
82
83
|
title: zod_1.z.string().optional(),
|
|
83
84
|
query: zod_1.z.string().optional(),
|
|
84
85
|
sources: zod_1.z.array(zod_1.z.string()),
|
package/package.json
CHANGED
package/types.ts
CHANGED
|
@@ -85,6 +85,7 @@ export const zodAbsoluteTimeRangeSchema = z.object({
|
|
|
85
85
|
});
|
|
86
86
|
|
|
87
87
|
export const zodQuerySchema = z.object({
|
|
88
|
+
_id: z.string().optional(),
|
|
88
89
|
title: z.string().optional(), // optional title for the query
|
|
89
90
|
query: z.string().optional(), // search query includes geo information where it should be extracted with LLM
|
|
90
91
|
sources: z.array(z.string()), // array of source _id strings
|
|
@@ -110,7 +111,4 @@ export type StatusType = (typeof statusList)[number];
|
|
|
110
111
|
export type TimeRangeType =
|
|
111
112
|
| z.infer<typeof zodRelativeTimeRangeSchema>
|
|
112
113
|
| z.infer<typeof zodAbsoluteTimeRangeSchema>;
|
|
113
|
-
export type TimeRangeTypeLiteral =
|
|
114
|
-
| 'relative'
|
|
115
|
-
| 'absolute';
|
|
116
|
-
|
|
114
|
+
export type TimeRangeTypeLiteral = 'relative' | 'absolute';
|