asfur 1.0.60 → 1.0.61
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 +3 -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
|
@@ -380,14 +380,17 @@ export declare const MongoGeoSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
380
380
|
timestamp?: number | null | undefined;
|
|
381
381
|
geo_text?: string | null | undefined;
|
|
382
382
|
count?: number | null | undefined;
|
|
383
|
+
region?: string | null | undefined;
|
|
383
384
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
384
385
|
timestamp?: number | null | undefined;
|
|
385
386
|
geo_text?: string | null | undefined;
|
|
386
387
|
count?: number | null | undefined;
|
|
388
|
+
region?: string | null | undefined;
|
|
387
389
|
}>, {}> & import("mongoose").FlatRecord<{
|
|
388
390
|
timestamp?: number | null | undefined;
|
|
389
391
|
geo_text?: string | null | undefined;
|
|
390
392
|
count?: number | null | undefined;
|
|
393
|
+
region?: string | null | undefined;
|
|
391
394
|
}> & {
|
|
392
395
|
_id: import("mongoose").Types.ObjectId;
|
|
393
396
|
} & {
|
package/dist/index.js
CHANGED
|
@@ -171,7 +171,8 @@ exports.MongoJobSchema = new mongoose_1.Schema({
|
|
|
171
171
|
exports.MongoGeoSchema = new mongoose_1.Schema({
|
|
172
172
|
geo_text: { type: String },
|
|
173
173
|
timestamp: { type: Number },
|
|
174
|
-
count: { type: Number },
|
|
174
|
+
count: { type: Number },
|
|
175
|
+
region: { type: String }, // e.g., "New York", "California"
|
|
175
176
|
}, {
|
|
176
177
|
versionKey: false,
|
|
177
178
|
toJSON: { virtuals: true },
|
package/dist/types.d.ts
CHANGED
|
@@ -525,14 +525,17 @@ export declare const zodGeoSchema: z.ZodObject<{
|
|
|
525
525
|
geo_text: z.ZodOptional<z.ZodString>;
|
|
526
526
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
527
527
|
count: z.ZodOptional<z.ZodNumber>;
|
|
528
|
+
region: z.ZodOptional<z.ZodString>;
|
|
528
529
|
}, "strip", z.ZodTypeAny, {
|
|
529
530
|
timestamp?: number | undefined;
|
|
530
531
|
geo_text?: string | undefined;
|
|
531
532
|
count?: number | undefined;
|
|
533
|
+
region?: string | undefined;
|
|
532
534
|
}, {
|
|
533
535
|
timestamp?: number | undefined;
|
|
534
536
|
geo_text?: string | undefined;
|
|
535
537
|
count?: number | undefined;
|
|
538
|
+
region?: string | undefined;
|
|
536
539
|
}>;
|
|
537
540
|
export type SourceType = z.infer<typeof zodSourceSchema>;
|
|
538
541
|
export type DataType = z.infer<typeof zodDataSchema>;
|
package/dist/types.js
CHANGED
|
@@ -158,5 +158,6 @@ exports.zodCronScheduleResponseSchema = zod_1.z.object({
|
|
|
158
158
|
exports.zodGeoSchema = zod_1.z.object({
|
|
159
159
|
geo_text: zod_1.z.string().optional(),
|
|
160
160
|
timestamp: zod_1.z.number().optional(),
|
|
161
|
-
count: zod_1.z.number().optional(),
|
|
161
|
+
count: zod_1.z.number().optional(),
|
|
162
|
+
region: zod_1.z.string().optional(), // e.g., "New York", "California"
|
|
162
163
|
});
|
package/index.ts
CHANGED
|
@@ -186,6 +186,7 @@ export const MongoGeoSchema = new Schema(
|
|
|
186
186
|
geo_text: { type: String }, // e.g., "New York, USA"
|
|
187
187
|
timestamp: { type: Number }, // e.g., 1751210833000
|
|
188
188
|
count: { type: Number }, // e.g., 42
|
|
189
|
+
region: { type: String }, // e.g., "New York", "California"
|
|
189
190
|
},
|
|
190
191
|
{
|
|
191
192
|
versionKey: false,
|
package/package.json
CHANGED
package/types.ts
CHANGED
|
@@ -174,6 +174,7 @@ export const zodGeoSchema = z.object({
|
|
|
174
174
|
geo_text: z.string().optional(), // e.g., "New York, USA"
|
|
175
175
|
timestamp: z.number().optional(), // e.g., 1751210833000
|
|
176
176
|
count: z.number().optional(), // e.g., 42
|
|
177
|
+
region: z.string().optional(), // e.g., "New York", "California"
|
|
177
178
|
});
|
|
178
179
|
|
|
179
180
|
export type SourceType = z.infer<typeof zodSourceSchema>;
|