asfur 1.0.36 → 1.0.38
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/types.d.ts +17 -0
- package/dist/types.js +7 -1
- package/package.json +1 -1
- package/types.ts +8 -0
package/dist/types.d.ts
CHANGED
|
@@ -460,6 +460,22 @@ export declare const zodAutomationJobSchema: z.ZodObject<{
|
|
|
460
460
|
schedule_text?: string | undefined;
|
|
461
461
|
active_until?: number | Date | undefined;
|
|
462
462
|
}>;
|
|
463
|
+
export declare const zodCronScheduleResponseSchema: z.ZodObject<{
|
|
464
|
+
schedule: z.ZodOptional<z.ZodString>;
|
|
465
|
+
schedule_text: z.ZodString;
|
|
466
|
+
is_ok: z.ZodBoolean;
|
|
467
|
+
error: z.ZodOptional<z.ZodString>;
|
|
468
|
+
}, "strip", z.ZodTypeAny, {
|
|
469
|
+
schedule_text: string;
|
|
470
|
+
is_ok: boolean;
|
|
471
|
+
schedule?: string | undefined;
|
|
472
|
+
error?: string | undefined;
|
|
473
|
+
}, {
|
|
474
|
+
schedule_text: string;
|
|
475
|
+
is_ok: boolean;
|
|
476
|
+
schedule?: string | undefined;
|
|
477
|
+
error?: string | undefined;
|
|
478
|
+
}>;
|
|
463
479
|
export type SourceType = z.infer<typeof zodSourceSchema>;
|
|
464
480
|
export type DataType = z.infer<typeof zodDataSchema>;
|
|
465
481
|
export type QueryType = z.infer<typeof zodQuerySchema>;
|
|
@@ -472,3 +488,4 @@ export type AddSourceToReviewType = Pick<SourceType, 'platform' | 'url' | 'descr
|
|
|
472
488
|
export type UserSettingsType = z.infer<typeof zodUserSettingsSchema>;
|
|
473
489
|
export type ConversationType = z.infer<typeof zodConversationSchema>;
|
|
474
490
|
export type AutomationJobType = z.infer<typeof zodAutomationJobSchema>;
|
|
491
|
+
export type CronScheduleResponseType = z.infer<typeof zodCronScheduleResponseSchema>;
|
package/dist/types.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.zodAutomationJobSchema = exports.zodConversationSchema = exports.zodUserSettingsSchema = exports.zodInstructionsSchema = exports.zodQuerySchema = exports.zodAbsoluteTimeRangeSchema = exports.zodRelativeTimeRangeSchema = exports.relativeTimeRangeList = exports.zodDataSchema = exports.zodSourceSchema = exports.generalStatusList = exports.statusList = exports.platformsList = void 0;
|
|
3
|
+
exports.zodCronScheduleResponseSchema = exports.zodAutomationJobSchema = exports.zodConversationSchema = exports.zodUserSettingsSchema = exports.zodInstructionsSchema = exports.zodQuerySchema = exports.zodAbsoluteTimeRangeSchema = exports.zodRelativeTimeRangeSchema = exports.relativeTimeRangeList = exports.zodDataSchema = exports.zodSourceSchema = exports.generalStatusList = exports.statusList = exports.platformsList = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.platformsList = [
|
|
6
6
|
'telegram',
|
|
@@ -134,3 +134,9 @@ exports.zodAutomationJobSchema = zod_1.z.object({
|
|
|
134
134
|
query: exports.zodQuerySchema,
|
|
135
135
|
active_until: zod_1.z.coerce.date().or(zod_1.z.number()).optional(), // optional date until which the job is active
|
|
136
136
|
});
|
|
137
|
+
exports.zodCronScheduleResponseSchema = zod_1.z.object({
|
|
138
|
+
schedule: zod_1.z.string().optional(),
|
|
139
|
+
schedule_text: zod_1.z.string(),
|
|
140
|
+
is_ok: zod_1.z.boolean(),
|
|
141
|
+
error: zod_1.z.string().optional(), // error message if the cron job is invalid
|
|
142
|
+
});
|
package/package.json
CHANGED
package/types.ts
CHANGED
|
@@ -147,6 +147,13 @@ export const zodAutomationJobSchema = z.object({
|
|
|
147
147
|
active_until: z.coerce.date().or(z.number()).optional(), // optional date until which the job is active
|
|
148
148
|
});
|
|
149
149
|
|
|
150
|
+
export const zodCronScheduleResponseSchema = z.object({
|
|
151
|
+
schedule: z.string().optional(), // cron schedule for the job
|
|
152
|
+
schedule_text: z.string(), // cron schedule in free-text format
|
|
153
|
+
is_ok: z.boolean(), // true if the cron job is valid
|
|
154
|
+
error: z.string().optional(), // error message if the cron job is invalid
|
|
155
|
+
});
|
|
156
|
+
|
|
150
157
|
export type SourceType = z.infer<typeof zodSourceSchema>;
|
|
151
158
|
export type DataType = z.infer<typeof zodDataSchema>;
|
|
152
159
|
export type QueryType = z.infer<typeof zodQuerySchema>;
|
|
@@ -164,3 +171,4 @@ export type AddSourceToReviewType = Pick<
|
|
|
164
171
|
export type UserSettingsType = z.infer<typeof zodUserSettingsSchema>;
|
|
165
172
|
export type ConversationType = z.infer<typeof zodConversationSchema>;
|
|
166
173
|
export type AutomationJobType = z.infer<typeof zodAutomationJobSchema>;
|
|
174
|
+
export type CronScheduleResponseType = z.infer<typeof zodCronScheduleResponseSchema>;
|