asfur 1.0.42 → 1.0.43
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 +14 -0
- package/dist/index.js +3 -1
- package/dist/types.d.ts +6 -0
- package/dist/types.js +3 -1
- package/index.ts +2 -0
- package/package.json +1 -1
- package/types.ts +2 -0
package/dist/index.d.ts
CHANGED
|
@@ -719,10 +719,12 @@ export declare const MongoJobSchema: Schema<{
|
|
|
719
719
|
_id?: string | undefined;
|
|
720
720
|
created_at?: number | Date | undefined;
|
|
721
721
|
updated_at?: number | Date | undefined;
|
|
722
|
+
thread_id?: string | undefined;
|
|
722
723
|
job_description?: string | undefined;
|
|
723
724
|
schedule?: string | undefined;
|
|
724
725
|
schedule_text?: string | undefined;
|
|
725
726
|
active_until?: number | Date | undefined;
|
|
727
|
+
conversation_id?: string | undefined;
|
|
726
728
|
}, import("mongoose").Model<{
|
|
727
729
|
status: "inactive" | "active";
|
|
728
730
|
user_id: string;
|
|
@@ -747,10 +749,12 @@ export declare const MongoJobSchema: Schema<{
|
|
|
747
749
|
_id?: string | undefined;
|
|
748
750
|
created_at?: number | Date | undefined;
|
|
749
751
|
updated_at?: number | Date | undefined;
|
|
752
|
+
thread_id?: string | undefined;
|
|
750
753
|
job_description?: string | undefined;
|
|
751
754
|
schedule?: string | undefined;
|
|
752
755
|
schedule_text?: string | undefined;
|
|
753
756
|
active_until?: number | Date | undefined;
|
|
757
|
+
conversation_id?: string | undefined;
|
|
754
758
|
}, any, any, any, import("mongoose").Document<unknown, any, {
|
|
755
759
|
status: "inactive" | "active";
|
|
756
760
|
user_id: string;
|
|
@@ -775,10 +779,12 @@ export declare const MongoJobSchema: Schema<{
|
|
|
775
779
|
_id?: string | undefined;
|
|
776
780
|
created_at?: number | Date | undefined;
|
|
777
781
|
updated_at?: number | Date | undefined;
|
|
782
|
+
thread_id?: string | undefined;
|
|
778
783
|
job_description?: string | undefined;
|
|
779
784
|
schedule?: string | undefined;
|
|
780
785
|
schedule_text?: string | undefined;
|
|
781
786
|
active_until?: number | Date | undefined;
|
|
787
|
+
conversation_id?: string | undefined;
|
|
782
788
|
}, any> & {
|
|
783
789
|
status: "inactive" | "active";
|
|
784
790
|
user_id: string;
|
|
@@ -803,10 +809,12 @@ export declare const MongoJobSchema: Schema<{
|
|
|
803
809
|
_id?: string | undefined;
|
|
804
810
|
created_at?: number | Date | undefined;
|
|
805
811
|
updated_at?: number | Date | undefined;
|
|
812
|
+
thread_id?: string | undefined;
|
|
806
813
|
job_description?: string | undefined;
|
|
807
814
|
schedule?: string | undefined;
|
|
808
815
|
schedule_text?: string | undefined;
|
|
809
816
|
active_until?: number | Date | undefined;
|
|
817
|
+
conversation_id?: string | undefined;
|
|
810
818
|
} & Required<{
|
|
811
819
|
_id: string;
|
|
812
820
|
}> & {
|
|
@@ -835,10 +843,12 @@ export declare const MongoJobSchema: Schema<{
|
|
|
835
843
|
_id?: string | undefined;
|
|
836
844
|
created_at?: number | Date | undefined;
|
|
837
845
|
updated_at?: number | Date | undefined;
|
|
846
|
+
thread_id?: string | undefined;
|
|
838
847
|
job_description?: string | undefined;
|
|
839
848
|
schedule?: string | undefined;
|
|
840
849
|
schedule_text?: string | undefined;
|
|
841
850
|
active_until?: number | Date | undefined;
|
|
851
|
+
conversation_id?: string | undefined;
|
|
842
852
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
843
853
|
status: "inactive" | "active";
|
|
844
854
|
user_id: string;
|
|
@@ -863,10 +873,12 @@ export declare const MongoJobSchema: Schema<{
|
|
|
863
873
|
_id?: string | undefined;
|
|
864
874
|
created_at?: number | Date | undefined;
|
|
865
875
|
updated_at?: number | Date | undefined;
|
|
876
|
+
thread_id?: string | undefined;
|
|
866
877
|
job_description?: string | undefined;
|
|
867
878
|
schedule?: string | undefined;
|
|
868
879
|
schedule_text?: string | undefined;
|
|
869
880
|
active_until?: number | Date | undefined;
|
|
881
|
+
conversation_id?: string | undefined;
|
|
870
882
|
}>, {}> & import("mongoose").FlatRecord<{
|
|
871
883
|
status: "inactive" | "active";
|
|
872
884
|
user_id: string;
|
|
@@ -891,10 +903,12 @@ export declare const MongoJobSchema: Schema<{
|
|
|
891
903
|
_id?: string | undefined;
|
|
892
904
|
created_at?: number | Date | undefined;
|
|
893
905
|
updated_at?: number | Date | undefined;
|
|
906
|
+
thread_id?: string | undefined;
|
|
894
907
|
job_description?: string | undefined;
|
|
895
908
|
schedule?: string | undefined;
|
|
896
909
|
schedule_text?: string | undefined;
|
|
897
910
|
active_until?: number | Date | undefined;
|
|
911
|
+
conversation_id?: string | undefined;
|
|
898
912
|
}> & Required<{
|
|
899
913
|
_id: string;
|
|
900
914
|
}> & {
|
package/dist/index.js
CHANGED
|
@@ -149,7 +149,9 @@ exports.MongoJobSchema = new mongoose_1.Schema({
|
|
|
149
149
|
schedule: { type: String },
|
|
150
150
|
schedule_text: { type: String },
|
|
151
151
|
active_until: { type: Number || undefined },
|
|
152
|
-
query: { type: mongoose_1.Schema.Types.Mixed, required: true },
|
|
152
|
+
query: { type: mongoose_1.Schema.Types.Mixed, required: true },
|
|
153
|
+
conversation_id: { type: String },
|
|
154
|
+
thread_id: { type: String }, // thread ID for the job
|
|
153
155
|
}, {
|
|
154
156
|
versionKey: false,
|
|
155
157
|
toJSON: { virtuals: true },
|
package/dist/types.d.ts
CHANGED
|
@@ -406,6 +406,8 @@ export declare const zodJobSchema: z.ZodObject<{
|
|
|
406
406
|
thread_id?: string | undefined;
|
|
407
407
|
}>;
|
|
408
408
|
active_until: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodNumber]>>;
|
|
409
|
+
conversation_id: z.ZodOptional<z.ZodString>;
|
|
410
|
+
thread_id: z.ZodOptional<z.ZodString>;
|
|
409
411
|
}, "strip", z.ZodTypeAny, {
|
|
410
412
|
status: "inactive" | "active";
|
|
411
413
|
user_id: string;
|
|
@@ -430,10 +432,12 @@ export declare const zodJobSchema: z.ZodObject<{
|
|
|
430
432
|
_id?: string | undefined;
|
|
431
433
|
created_at?: number | Date | undefined;
|
|
432
434
|
updated_at?: number | Date | undefined;
|
|
435
|
+
thread_id?: string | undefined;
|
|
433
436
|
job_description?: string | undefined;
|
|
434
437
|
schedule?: string | undefined;
|
|
435
438
|
schedule_text?: string | undefined;
|
|
436
439
|
active_until?: number | Date | undefined;
|
|
440
|
+
conversation_id?: string | undefined;
|
|
437
441
|
}, {
|
|
438
442
|
user_id: string;
|
|
439
443
|
query: {
|
|
@@ -458,10 +462,12 @@ export declare const zodJobSchema: z.ZodObject<{
|
|
|
458
462
|
status?: "inactive" | "active" | undefined;
|
|
459
463
|
created_at?: number | Date | undefined;
|
|
460
464
|
updated_at?: number | Date | undefined;
|
|
465
|
+
thread_id?: string | undefined;
|
|
461
466
|
job_description?: string | undefined;
|
|
462
467
|
schedule?: string | undefined;
|
|
463
468
|
schedule_text?: string | undefined;
|
|
464
469
|
active_until?: number | Date | undefined;
|
|
470
|
+
conversation_id?: string | undefined;
|
|
465
471
|
}>;
|
|
466
472
|
export declare const zodCronScheduleResponseSchema: z.ZodObject<{
|
|
467
473
|
schedule: z.ZodOptional<z.ZodString>;
|
package/dist/types.js
CHANGED
|
@@ -133,7 +133,9 @@ exports.zodJobSchema = zod_1.z.object({
|
|
|
133
133
|
status: zod_1.z.enum(exports.generalStatusList).default('active'),
|
|
134
134
|
user_id: zod_1.z.string().nonempty('User ID must be provided'),
|
|
135
135
|
query: exports.zodQuerySchema,
|
|
136
|
-
active_until: zod_1.z.coerce.date().or(zod_1.z.number()).optional(),
|
|
136
|
+
active_until: zod_1.z.coerce.date().or(zod_1.z.number()).optional(),
|
|
137
|
+
conversation_id: zod_1.z.string().optional(),
|
|
138
|
+
thread_id: zod_1.z.string().optional(), // thread ID for the job
|
|
137
139
|
});
|
|
138
140
|
exports.zodCronScheduleResponseSchema = zod_1.z.object({
|
|
139
141
|
schedule: zod_1.z.string().optional(),
|
package/index.ts
CHANGED
|
@@ -169,6 +169,8 @@ export const MongoJobSchema = new Schema<JobType>(
|
|
|
169
169
|
schedule_text: { type: String }, // cron schedule in free-text format
|
|
170
170
|
active_until: { type: Number || undefined }, // optional date until which the job is active
|
|
171
171
|
query: { type: Schema.Types.Mixed, required: true }, // query associated with the job
|
|
172
|
+
conversation_id: { type: String }, // optional conversation ID for the job
|
|
173
|
+
thread_id: { type: String }, // thread ID for the job
|
|
172
174
|
},
|
|
173
175
|
{
|
|
174
176
|
versionKey: false,
|
package/package.json
CHANGED
package/types.ts
CHANGED
|
@@ -146,6 +146,8 @@ export const zodJobSchema = z.object({
|
|
|
146
146
|
user_id: z.string().nonempty('User ID must be provided'), // user identifier
|
|
147
147
|
query: zodQuerySchema, // query associated with the job
|
|
148
148
|
active_until: z.coerce.date().or(z.number()).optional(), // optional date until which the job is active
|
|
149
|
+
conversation_id: z.string().optional(), // optional conversation ID for the job
|
|
150
|
+
thread_id: z.string().optional(), // thread ID for the job
|
|
149
151
|
});
|
|
150
152
|
|
|
151
153
|
export const zodCronScheduleResponseSchema = z.object({
|