asfur 1.0.79 → 1.0.80
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 +3 -0
- package/dist/index.js +2 -1
- package/dist/types.d.ts +8 -0
- package/dist/types.js +2 -1
- package/index.ts +1 -0
- package/package.json +1 -1
- package/types.ts +1 -0
package/dist/index.d.ts
CHANGED
|
@@ -217,6 +217,7 @@ export declare const MongoQuerySchema: Schema<any, import("mongoose").Model<any,
|
|
|
217
217
|
virtuals: true;
|
|
218
218
|
};
|
|
219
219
|
}, {
|
|
220
|
+
timestamp: number;
|
|
220
221
|
geos: string[];
|
|
221
222
|
user_id: string;
|
|
222
223
|
sources: string[];
|
|
@@ -227,6 +228,7 @@ export declare const MongoQuerySchema: Schema<any, import("mongoose").Model<any,
|
|
|
227
228
|
user_instructions?: string | null | undefined;
|
|
228
229
|
user_time_zone?: string | null | undefined;
|
|
229
230
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
231
|
+
timestamp: number;
|
|
230
232
|
geos: string[];
|
|
231
233
|
user_id: string;
|
|
232
234
|
sources: string[];
|
|
@@ -237,6 +239,7 @@ export declare const MongoQuerySchema: Schema<any, import("mongoose").Model<any,
|
|
|
237
239
|
user_instructions?: string | null | undefined;
|
|
238
240
|
user_time_zone?: string | null | undefined;
|
|
239
241
|
}>, {}> & import("mongoose").FlatRecord<{
|
|
242
|
+
timestamp: number;
|
|
240
243
|
geos: string[];
|
|
241
244
|
user_id: string;
|
|
242
245
|
sources: string[];
|
package/dist/index.js
CHANGED
|
@@ -107,7 +107,8 @@ exports.MongoQuerySchema = new mongoose_1.Schema({
|
|
|
107
107
|
},
|
|
108
108
|
user_id: { type: String, required: true },
|
|
109
109
|
user_instructions: { type: String },
|
|
110
|
-
user_time_zone: { type: String },
|
|
110
|
+
user_time_zone: { type: String },
|
|
111
|
+
timestamp: { type: Number, default: Date.now }, // creation date
|
|
111
112
|
}, {
|
|
112
113
|
versionKey: false,
|
|
113
114
|
toJSON: { virtuals: true },
|
package/dist/types.d.ts
CHANGED
|
@@ -281,6 +281,7 @@ export declare const zodQuerySchema: z.ZodObject<{
|
|
|
281
281
|
user_id: z.ZodString;
|
|
282
282
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
283
283
|
user_time_zone: z.ZodOptional<z.ZodString>;
|
|
284
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
284
285
|
}, "strip", z.ZodTypeAny, {
|
|
285
286
|
user_id: string;
|
|
286
287
|
time_range: {
|
|
@@ -292,6 +293,7 @@ export declare const zodQuerySchema: z.ZodObject<{
|
|
|
292
293
|
end: number | Date;
|
|
293
294
|
};
|
|
294
295
|
_id?: string | undefined;
|
|
296
|
+
timestamp?: number | undefined;
|
|
295
297
|
title?: string | undefined;
|
|
296
298
|
geos?: string[] | undefined;
|
|
297
299
|
query?: string | undefined;
|
|
@@ -311,6 +313,7 @@ export declare const zodQuerySchema: z.ZodObject<{
|
|
|
311
313
|
end: number | Date;
|
|
312
314
|
};
|
|
313
315
|
_id?: string | undefined;
|
|
316
|
+
timestamp?: number | undefined;
|
|
314
317
|
title?: string | undefined;
|
|
315
318
|
geos?: string[] | undefined;
|
|
316
319
|
query?: string | undefined;
|
|
@@ -485,6 +488,7 @@ export declare const zodJobSchema: z.ZodObject<{
|
|
|
485
488
|
user_id: z.ZodString;
|
|
486
489
|
thread_id: z.ZodOptional<z.ZodString>;
|
|
487
490
|
user_time_zone: z.ZodOptional<z.ZodString>;
|
|
491
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
488
492
|
}, "strip", z.ZodTypeAny, {
|
|
489
493
|
user_id: string;
|
|
490
494
|
time_range: {
|
|
@@ -496,6 +500,7 @@ export declare const zodJobSchema: z.ZodObject<{
|
|
|
496
500
|
end: number | Date;
|
|
497
501
|
};
|
|
498
502
|
_id?: string | undefined;
|
|
503
|
+
timestamp?: number | undefined;
|
|
499
504
|
title?: string | undefined;
|
|
500
505
|
geos?: string[] | undefined;
|
|
501
506
|
query?: string | undefined;
|
|
@@ -515,6 +520,7 @@ export declare const zodJobSchema: z.ZodObject<{
|
|
|
515
520
|
end: number | Date;
|
|
516
521
|
};
|
|
517
522
|
_id?: string | undefined;
|
|
523
|
+
timestamp?: number | undefined;
|
|
518
524
|
title?: string | undefined;
|
|
519
525
|
geos?: string[] | undefined;
|
|
520
526
|
query?: string | undefined;
|
|
@@ -542,6 +548,7 @@ export declare const zodJobSchema: z.ZodObject<{
|
|
|
542
548
|
end: number | Date;
|
|
543
549
|
};
|
|
544
550
|
_id?: string | undefined;
|
|
551
|
+
timestamp?: number | undefined;
|
|
545
552
|
title?: string | undefined;
|
|
546
553
|
geos?: string[] | undefined;
|
|
547
554
|
query?: string | undefined;
|
|
@@ -575,6 +582,7 @@ export declare const zodJobSchema: z.ZodObject<{
|
|
|
575
582
|
end: number | Date;
|
|
576
583
|
};
|
|
577
584
|
_id?: string | undefined;
|
|
585
|
+
timestamp?: number | undefined;
|
|
578
586
|
title?: string | undefined;
|
|
579
587
|
geos?: string[] | undefined;
|
|
580
588
|
query?: string | undefined;
|
package/dist/types.js
CHANGED
|
@@ -128,7 +128,8 @@ exports.zodQuerySchema = zod_1.z.object({
|
|
|
128
128
|
user_instructions: zod_1.z.string().optional(),
|
|
129
129
|
user_id: zod_1.z.string().nonempty('User ID must be provided'),
|
|
130
130
|
thread_id: zod_1.z.string().optional(),
|
|
131
|
-
user_time_zone: zod_1.z.string().optional(),
|
|
131
|
+
user_time_zone: zod_1.z.string().optional(),
|
|
132
|
+
timestamp: zod_1.z.number().optional(), // creation date
|
|
132
133
|
});
|
|
133
134
|
exports.zodInstructionsSchema = zod_1.z.object({
|
|
134
135
|
_id: zod_1.z.string().optional(),
|
package/index.ts
CHANGED
|
@@ -106,6 +106,7 @@ export const MongoQuerySchema = new Schema(
|
|
|
106
106
|
user_id: { type: String, required: true }, // user identifier
|
|
107
107
|
user_instructions: { type: String }, // optional user instructions for the query
|
|
108
108
|
user_time_zone: { type: String }, // user's timezone
|
|
109
|
+
timestamp: { type: Number, default: Date.now }, // creation date
|
|
109
110
|
},
|
|
110
111
|
{
|
|
111
112
|
versionKey: false,
|
package/package.json
CHANGED
package/types.ts
CHANGED
|
@@ -140,6 +140,7 @@ export const zodQuerySchema = z.object({
|
|
|
140
140
|
user_id: z.string().nonempty('User ID must be provided'), // user identifier
|
|
141
141
|
thread_id: z.string().optional(), // thread ID for the user settings
|
|
142
142
|
user_time_zone: z.string().optional(), // user's timezone
|
|
143
|
+
timestamp: z.number().optional(), // creation date
|
|
143
144
|
});
|
|
144
145
|
|
|
145
146
|
export const zodInstructionsSchema = z.object({
|