asfur 1.0.40 → 1.0.42
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 +7 -0
- package/dist/index.js +3 -2
- package/dist/types.d.ts +3 -0
- package/dist/types.js +2 -1
- package/index.ts +2 -1
- package/package.json +1 -1
- package/types.ts +1 -0
package/dist/index.d.ts
CHANGED
|
@@ -626,6 +626,7 @@ export declare const MongoUserSettingsSchema: Schema<{
|
|
|
626
626
|
export declare const MongoConversationSchema: Schema<{
|
|
627
627
|
status: "inactive" | "active";
|
|
628
628
|
user_id: string;
|
|
629
|
+
is_job: boolean;
|
|
629
630
|
_id?: string | undefined;
|
|
630
631
|
title?: string | undefined;
|
|
631
632
|
created_at?: number | Date | undefined;
|
|
@@ -634,6 +635,7 @@ export declare const MongoConversationSchema: Schema<{
|
|
|
634
635
|
}, import("mongoose").Model<{
|
|
635
636
|
status: "inactive" | "active";
|
|
636
637
|
user_id: string;
|
|
638
|
+
is_job: boolean;
|
|
637
639
|
_id?: string | undefined;
|
|
638
640
|
title?: string | undefined;
|
|
639
641
|
created_at?: number | Date | undefined;
|
|
@@ -642,6 +644,7 @@ export declare const MongoConversationSchema: Schema<{
|
|
|
642
644
|
}, any, any, any, import("mongoose").Document<unknown, any, {
|
|
643
645
|
status: "inactive" | "active";
|
|
644
646
|
user_id: string;
|
|
647
|
+
is_job: boolean;
|
|
645
648
|
_id?: string | undefined;
|
|
646
649
|
title?: string | undefined;
|
|
647
650
|
created_at?: number | Date | undefined;
|
|
@@ -650,6 +653,7 @@ export declare const MongoConversationSchema: Schema<{
|
|
|
650
653
|
}, any> & {
|
|
651
654
|
status: "inactive" | "active";
|
|
652
655
|
user_id: string;
|
|
656
|
+
is_job: boolean;
|
|
653
657
|
_id?: string | undefined;
|
|
654
658
|
title?: string | undefined;
|
|
655
659
|
created_at?: number | Date | undefined;
|
|
@@ -662,6 +666,7 @@ export declare const MongoConversationSchema: Schema<{
|
|
|
662
666
|
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
|
|
663
667
|
status: "inactive" | "active";
|
|
664
668
|
user_id: string;
|
|
669
|
+
is_job: boolean;
|
|
665
670
|
_id?: string | undefined;
|
|
666
671
|
title?: string | undefined;
|
|
667
672
|
created_at?: number | Date | undefined;
|
|
@@ -670,6 +675,7 @@ export declare const MongoConversationSchema: Schema<{
|
|
|
670
675
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
671
676
|
status: "inactive" | "active";
|
|
672
677
|
user_id: string;
|
|
678
|
+
is_job: boolean;
|
|
673
679
|
_id?: string | undefined;
|
|
674
680
|
title?: string | undefined;
|
|
675
681
|
created_at?: number | Date | undefined;
|
|
@@ -678,6 +684,7 @@ export declare const MongoConversationSchema: Schema<{
|
|
|
678
684
|
}>, {}> & import("mongoose").FlatRecord<{
|
|
679
685
|
status: "inactive" | "active";
|
|
680
686
|
user_id: string;
|
|
687
|
+
is_job: boolean;
|
|
681
688
|
_id?: string | undefined;
|
|
682
689
|
title?: string | undefined;
|
|
683
690
|
created_at?: number | Date | undefined;
|
package/dist/index.js
CHANGED
|
@@ -128,7 +128,8 @@ exports.MongoConversationSchema = new mongoose_1.Schema({
|
|
|
128
128
|
default: 'active',
|
|
129
129
|
},
|
|
130
130
|
created_at: { type: Date, default: Date.now },
|
|
131
|
-
updated_at: { type: Date, default: Date.now },
|
|
131
|
+
updated_at: { type: Date, default: Date.now },
|
|
132
|
+
is_job: { type: Boolean, default: false }, // true if this is a job conversation
|
|
132
133
|
}, {
|
|
133
134
|
versionKey: false,
|
|
134
135
|
toJSON: { virtuals: true },
|
|
@@ -147,7 +148,7 @@ exports.MongoJobSchema = new mongoose_1.Schema({
|
|
|
147
148
|
updated_at: { type: Number, default: Date.now },
|
|
148
149
|
schedule: { type: String },
|
|
149
150
|
schedule_text: { type: String },
|
|
150
|
-
active_until: { type: Number },
|
|
151
|
+
active_until: { type: Number || undefined },
|
|
151
152
|
query: { type: mongoose_1.Schema.Types.Mixed, required: true }, // query associated with the job
|
|
152
153
|
}, {
|
|
153
154
|
versionKey: false,
|
package/dist/types.d.ts
CHANGED
|
@@ -312,9 +312,11 @@ export declare const zodConversationSchema: z.ZodObject<{
|
|
|
312
312
|
status: z.ZodDefault<z.ZodEnum<["active", "inactive"]>>;
|
|
313
313
|
created_at: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodNumber]>>;
|
|
314
314
|
updated_at: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodNumber]>>;
|
|
315
|
+
is_job: z.ZodDefault<z.ZodBoolean>;
|
|
315
316
|
}, "strip", z.ZodTypeAny, {
|
|
316
317
|
status: "inactive" | "active";
|
|
317
318
|
user_id: string;
|
|
319
|
+
is_job: boolean;
|
|
318
320
|
_id?: string | undefined;
|
|
319
321
|
title?: string | undefined;
|
|
320
322
|
created_at?: number | Date | undefined;
|
|
@@ -328,6 +330,7 @@ export declare const zodConversationSchema: z.ZodObject<{
|
|
|
328
330
|
created_at?: number | Date | undefined;
|
|
329
331
|
updated_at?: number | Date | undefined;
|
|
330
332
|
thread_id?: string | undefined;
|
|
333
|
+
is_job?: boolean | undefined;
|
|
331
334
|
}>;
|
|
332
335
|
export declare const zodJobSchema: z.ZodObject<{
|
|
333
336
|
_id: z.ZodOptional<z.ZodString>;
|
package/dist/types.js
CHANGED
|
@@ -119,7 +119,8 @@ exports.zodConversationSchema = zod_1.z.object({
|
|
|
119
119
|
thread_id: zod_1.z.string().optional(),
|
|
120
120
|
status: zod_1.z.enum(exports.generalStatusList).default('active'),
|
|
121
121
|
created_at: zod_1.z.coerce.date().or(zod_1.z.number()).optional(),
|
|
122
|
-
updated_at: zod_1.z.coerce.date().or(zod_1.z.number()).optional(),
|
|
122
|
+
updated_at: zod_1.z.coerce.date().or(zod_1.z.number()).optional(),
|
|
123
|
+
is_job: zod_1.z.boolean().default(false), // true if this is a job conversation
|
|
123
124
|
});
|
|
124
125
|
exports.zodJobSchema = zod_1.z.object({
|
|
125
126
|
_id: zod_1.z.string().optional(),
|
package/index.ts
CHANGED
|
@@ -144,6 +144,7 @@ export const MongoConversationSchema = new Schema<ConversationType>(
|
|
|
144
144
|
}, // status of the conversation
|
|
145
145
|
created_at: { type: Date, default: Date.now }, // creation date
|
|
146
146
|
updated_at: { type: Date, default: Date.now }, // last update date
|
|
147
|
+
is_job: { type: Boolean, default: false }, // true if this is a job conversation
|
|
147
148
|
},
|
|
148
149
|
{
|
|
149
150
|
versionKey: false,
|
|
@@ -166,7 +167,7 @@ export const MongoJobSchema = new Schema<JobType>(
|
|
|
166
167
|
updated_at: { type: Number, default: Date.now }, // last update date
|
|
167
168
|
schedule: { type: String }, // cron schedule for the job
|
|
168
169
|
schedule_text: { type: String }, // cron schedule in free-text format
|
|
169
|
-
active_until: { type: Number }, // optional date until which the job is active
|
|
170
|
+
active_until: { type: Number || undefined }, // optional date until which the job is active
|
|
170
171
|
query: { type: Schema.Types.Mixed, required: true }, // query associated with the job
|
|
171
172
|
},
|
|
172
173
|
{
|
package/package.json
CHANGED
package/types.ts
CHANGED
|
@@ -131,6 +131,7 @@ export const zodConversationSchema = z.object({
|
|
|
131
131
|
status: z.enum(generalStatusList).default('active'), // status of the conversation
|
|
132
132
|
created_at: z.coerce.date().or(z.number()).optional(), // creation date
|
|
133
133
|
updated_at: z.coerce.date().or(z.number()).optional(), // last update date
|
|
134
|
+
is_job: z.boolean().default(false), // true if this is a job conversation
|
|
134
135
|
});
|
|
135
136
|
|
|
136
137
|
export const zodJobSchema = z.object({
|