asfur 1.0.127 → 1.0.128
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 +20 -20
- package/dist/types.js +2 -2
- package/package.json +1 -1
- package/types.ts +2 -2
package/dist/types.d.ts
CHANGED
|
@@ -2079,7 +2079,7 @@ export declare const zodPredefinedQuerySchema: z.ZodObject<{
|
|
|
2079
2079
|
_id: string;
|
|
2080
2080
|
name: string;
|
|
2081
2081
|
}>]>, "many">>;
|
|
2082
|
-
time_range: z.ZodUnion<[z.ZodObject<{
|
|
2082
|
+
time_range: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
2083
2083
|
type: z.ZodLiteral<"relative">;
|
|
2084
2084
|
time: z.ZodEnum<["last_30_minutes", "last_1_hour", "last_2_hours", "last_6_hours", "last_12_hours", "last_24_hours", "last_48_hours", "last_72_hours", "last_week"]>;
|
|
2085
2085
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2100,44 +2100,36 @@ export declare const zodPredefinedQuerySchema: z.ZodObject<{
|
|
|
2100
2100
|
type: "absolute";
|
|
2101
2101
|
start: number;
|
|
2102
2102
|
end: number;
|
|
2103
|
-
}>]
|
|
2103
|
+
}>]>>;
|
|
2104
2104
|
user_instructions: z.ZodOptional<z.ZodString>;
|
|
2105
|
-
status: z.ZodDefault<z.ZodEnum<["active", "inactive"]
|
|
2105
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<["active", "inactive"]>>>;
|
|
2106
2106
|
created_at: z.ZodOptional<z.ZodNumber>;
|
|
2107
2107
|
updated_at: z.ZodOptional<z.ZodNumber>;
|
|
2108
2108
|
}, "strip", z.ZodTypeAny, {
|
|
2109
|
-
status: "active" | "inactive";
|
|
2110
2109
|
title: string;
|
|
2111
2110
|
query: string;
|
|
2112
|
-
time_range: {
|
|
2113
|
-
type: "relative";
|
|
2114
|
-
time: "last_30_minutes" | "last_1_hour" | "last_2_hours" | "last_6_hours" | "last_12_hours" | "last_24_hours" | "last_48_hours" | "last_72_hours" | "last_week";
|
|
2115
|
-
} | {
|
|
2116
|
-
type: "absolute";
|
|
2117
|
-
start: number;
|
|
2118
|
-
end: number;
|
|
2119
|
-
};
|
|
2120
2111
|
user_id: string;
|
|
2112
|
+
status?: "active" | "inactive" | undefined;
|
|
2121
2113
|
_id?: string | undefined;
|
|
2122
2114
|
geos?: string[] | undefined;
|
|
2123
2115
|
geos_ids?: (string | {
|
|
2124
2116
|
_id: string;
|
|
2125
2117
|
name: string;
|
|
2126
2118
|
})[] | undefined;
|
|
2127
|
-
|
|
2128
|
-
created_at?: number | undefined;
|
|
2129
|
-
updated_at?: number | undefined;
|
|
2130
|
-
}, {
|
|
2131
|
-
title: string;
|
|
2132
|
-
query: string;
|
|
2133
|
-
time_range: {
|
|
2119
|
+
time_range?: {
|
|
2134
2120
|
type: "relative";
|
|
2135
2121
|
time: "last_30_minutes" | "last_1_hour" | "last_2_hours" | "last_6_hours" | "last_12_hours" | "last_24_hours" | "last_48_hours" | "last_72_hours" | "last_week";
|
|
2136
2122
|
} | {
|
|
2137
2123
|
type: "absolute";
|
|
2138
2124
|
start: number;
|
|
2139
2125
|
end: number;
|
|
2140
|
-
};
|
|
2126
|
+
} | undefined;
|
|
2127
|
+
user_instructions?: string | undefined;
|
|
2128
|
+
created_at?: number | undefined;
|
|
2129
|
+
updated_at?: number | undefined;
|
|
2130
|
+
}, {
|
|
2131
|
+
title: string;
|
|
2132
|
+
query: string;
|
|
2141
2133
|
user_id: string;
|
|
2142
2134
|
status?: "active" | "inactive" | undefined;
|
|
2143
2135
|
_id?: string | undefined;
|
|
@@ -2146,6 +2138,14 @@ export declare const zodPredefinedQuerySchema: z.ZodObject<{
|
|
|
2146
2138
|
_id: string;
|
|
2147
2139
|
name: string;
|
|
2148
2140
|
})[] | undefined;
|
|
2141
|
+
time_range?: {
|
|
2142
|
+
type: "relative";
|
|
2143
|
+
time: "last_30_minutes" | "last_1_hour" | "last_2_hours" | "last_6_hours" | "last_12_hours" | "last_24_hours" | "last_48_hours" | "last_72_hours" | "last_week";
|
|
2144
|
+
} | {
|
|
2145
|
+
type: "absolute";
|
|
2146
|
+
start: number;
|
|
2147
|
+
end: number;
|
|
2148
|
+
} | undefined;
|
|
2149
2149
|
user_instructions?: string | undefined;
|
|
2150
2150
|
created_at?: number | undefined;
|
|
2151
2151
|
updated_at?: number | undefined;
|
package/dist/types.js
CHANGED
|
@@ -302,9 +302,9 @@ exports.zodPredefinedQuerySchema = zod_1.z.object({
|
|
|
302
302
|
geos_ids: zod_1.z
|
|
303
303
|
.array(zod_1.z.string().or(zod_1.z.object({ _id: zod_1.z.string(), name: zod_1.z.string() })))
|
|
304
304
|
.optional(),
|
|
305
|
-
time_range: exports.zodRelativeTimeRangeSchema.or(exports.zodAbsoluteTimeRangeSchema),
|
|
305
|
+
time_range: exports.zodRelativeTimeRangeSchema.or(exports.zodAbsoluteTimeRangeSchema).optional(),
|
|
306
306
|
user_instructions: zod_1.z.string().optional(),
|
|
307
|
-
status: zod_1.z.enum(exports.generalStatusList).default('active'),
|
|
307
|
+
status: zod_1.z.enum(exports.generalStatusList).default('active').optional(),
|
|
308
308
|
created_at: zod_1.z.number().optional(),
|
|
309
309
|
updated_at: zod_1.z.number().optional(), // last update date
|
|
310
310
|
});
|
package/package.json
CHANGED
package/types.ts
CHANGED
|
@@ -355,9 +355,9 @@ export const zodPredefinedQuerySchema = z.object({
|
|
|
355
355
|
geos_ids: z
|
|
356
356
|
.array(z.string().or(z.object({ _id: z.string(), name: z.string() })))
|
|
357
357
|
.optional(), // array of geo _id strings
|
|
358
|
-
time_range: zodRelativeTimeRangeSchema.or(zodAbsoluteTimeRangeSchema), // optional time range for the predefined query
|
|
358
|
+
time_range: zodRelativeTimeRangeSchema.or(zodAbsoluteTimeRangeSchema).optional(), // optional time range for the predefined query
|
|
359
359
|
user_instructions: z.string().optional(), // optional user instructions for the predefined query
|
|
360
|
-
status: z.enum(generalStatusList).default('active'), // status of the predefined query
|
|
360
|
+
status: z.enum(generalStatusList).default('active').optional(), // status of the predefined query
|
|
361
361
|
created_at: z.number().optional(), // creation date
|
|
362
362
|
updated_at: z.number().optional(), // last update date
|
|
363
363
|
});
|