harvester_sdk 1.0.21 → 1.0.22
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 +9 -3
- package/dist/index.js +7 -1
- package/dist/types.d.ts +9 -3
- package/dist/types.js +3 -1
- package/index.ts +7 -1
- package/package.json +1 -1
- package/types.ts +3 -1
package/dist/index.d.ts
CHANGED
|
@@ -585,29 +585,35 @@ export declare const MongoGeoSelectionSchema: Schema<any, import("mongoose").Mod
|
|
|
585
585
|
virtuals: true;
|
|
586
586
|
};
|
|
587
587
|
}, {
|
|
588
|
+
status: "active" | "inactive" | "deleted";
|
|
588
589
|
geos: string[];
|
|
589
590
|
created_at?: number | null | undefined;
|
|
590
591
|
updated_at?: number | null | undefined;
|
|
592
|
+
notes?: string | null | undefined;
|
|
591
593
|
type?: string | null | undefined;
|
|
592
594
|
description?: string | null | undefined;
|
|
595
|
+
region_id?: string | null | undefined;
|
|
593
596
|
title?: string | null | undefined;
|
|
594
|
-
region?: string | null | undefined;
|
|
595
597
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
598
|
+
status: "active" | "inactive" | "deleted";
|
|
596
599
|
geos: string[];
|
|
597
600
|
created_at?: number | null | undefined;
|
|
598
601
|
updated_at?: number | null | undefined;
|
|
602
|
+
notes?: string | null | undefined;
|
|
599
603
|
type?: string | null | undefined;
|
|
600
604
|
description?: string | null | undefined;
|
|
605
|
+
region_id?: string | null | undefined;
|
|
601
606
|
title?: string | null | undefined;
|
|
602
|
-
region?: string | null | undefined;
|
|
603
607
|
}>, {}> & import("mongoose").FlatRecord<{
|
|
608
|
+
status: "active" | "inactive" | "deleted";
|
|
604
609
|
geos: string[];
|
|
605
610
|
created_at?: number | null | undefined;
|
|
606
611
|
updated_at?: number | null | undefined;
|
|
612
|
+
notes?: string | null | undefined;
|
|
607
613
|
type?: string | null | undefined;
|
|
608
614
|
description?: string | null | undefined;
|
|
615
|
+
region_id?: string | null | undefined;
|
|
609
616
|
title?: string | null | undefined;
|
|
610
|
-
region?: string | null | undefined;
|
|
611
617
|
}> & {
|
|
612
618
|
_id: import("mongoose").Types.ObjectId;
|
|
613
619
|
} & {
|
package/dist/index.js
CHANGED
|
@@ -267,7 +267,13 @@ exports.MongoGeoSelectionSchema = new mongoose_1.Schema({
|
|
|
267
267
|
description: { type: String },
|
|
268
268
|
type: { type: String },
|
|
269
269
|
geos: { type: [String], default: [] },
|
|
270
|
-
|
|
270
|
+
region_id: { type: String },
|
|
271
|
+
notes: { type: String },
|
|
272
|
+
status: {
|
|
273
|
+
type: String,
|
|
274
|
+
enum: types_1.generalStatusList,
|
|
275
|
+
default: 'active',
|
|
276
|
+
},
|
|
271
277
|
created_at: { type: Number },
|
|
272
278
|
updated_at: { type: Number }, // last update date
|
|
273
279
|
}, {
|
package/dist/types.d.ts
CHANGED
|
@@ -236,26 +236,32 @@ export declare const zodGeoSelectionSchema: z.ZodObject<{
|
|
|
236
236
|
description: z.ZodOptional<z.ZodString>;
|
|
237
237
|
type: z.ZodOptional<z.ZodString>;
|
|
238
238
|
geos: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
239
|
-
|
|
239
|
+
region_id: z.ZodOptional<z.ZodString>;
|
|
240
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
241
|
+
status: z.ZodOptional<z.ZodEnum<["active", "inactive", "deleted"]>>;
|
|
240
242
|
created_at: z.ZodOptional<z.ZodNumber>;
|
|
241
243
|
updated_at: z.ZodOptional<z.ZodNumber>;
|
|
242
244
|
}, "strip", z.ZodTypeAny, {
|
|
243
245
|
_id?: string | undefined;
|
|
244
246
|
created_at?: number | undefined;
|
|
245
247
|
updated_at?: number | undefined;
|
|
248
|
+
status?: "active" | "inactive" | "deleted" | undefined;
|
|
249
|
+
notes?: string | undefined;
|
|
246
250
|
type?: string | undefined;
|
|
247
251
|
description?: string | undefined;
|
|
252
|
+
region_id?: string | undefined;
|
|
248
253
|
title?: string | undefined;
|
|
249
|
-
region?: string | undefined;
|
|
250
254
|
geos?: string[] | undefined;
|
|
251
255
|
}, {
|
|
252
256
|
_id?: string | undefined;
|
|
253
257
|
created_at?: number | undefined;
|
|
254
258
|
updated_at?: number | undefined;
|
|
259
|
+
status?: "active" | "inactive" | "deleted" | undefined;
|
|
260
|
+
notes?: string | undefined;
|
|
255
261
|
type?: string | undefined;
|
|
256
262
|
description?: string | undefined;
|
|
263
|
+
region_id?: string | undefined;
|
|
257
264
|
title?: string | undefined;
|
|
258
|
-
region?: string | undefined;
|
|
259
265
|
geos?: string[] | undefined;
|
|
260
266
|
}>;
|
|
261
267
|
export declare const telegramMetadataSchema: z.ZodObject<{
|
package/dist/types.js
CHANGED
|
@@ -127,7 +127,9 @@ exports.zodGeoSelectionSchema = zod_1.z.object({
|
|
|
127
127
|
description: zod_1.z.string().optional(),
|
|
128
128
|
type: zod_1.z.string().optional(),
|
|
129
129
|
geos: zod_1.z.array(zod_1.z.string()).optional(),
|
|
130
|
-
|
|
130
|
+
region_id: zod_1.z.string().optional(),
|
|
131
|
+
notes: zod_1.z.string().optional(),
|
|
132
|
+
status: zod_1.z.enum(exports.generalStatusList).optional(),
|
|
131
133
|
created_at: zod_1.z.number().optional(),
|
|
132
134
|
updated_at: zod_1.z.number().optional(), // last update date
|
|
133
135
|
});
|
package/index.ts
CHANGED
|
@@ -292,7 +292,13 @@ export const MongoGeoSelectionSchema = new Schema(
|
|
|
292
292
|
description: { type: String }, // e.g., "A city in the USA"
|
|
293
293
|
type: { type: String }, // e.g., "city", "region", "country"
|
|
294
294
|
geos: { type: [String], default: [] }, // e.g., ["New York", "Los Angeles"]
|
|
295
|
-
|
|
295
|
+
region_id: { type: String }, // e.g., region ID
|
|
296
|
+
notes: { type: String }, // internal notes about the geo selection
|
|
297
|
+
status: {
|
|
298
|
+
type: String,
|
|
299
|
+
enum: generalStatusList,
|
|
300
|
+
default: 'active',
|
|
301
|
+
},
|
|
296
302
|
created_at: { type: Number }, // creation date
|
|
297
303
|
updated_at: { type: Number }, // last update date
|
|
298
304
|
},
|
package/package.json
CHANGED
package/types.ts
CHANGED
|
@@ -137,7 +137,9 @@ export const zodGeoSelectionSchema = z.object({
|
|
|
137
137
|
description: z.string().optional(), // e.g., "A city in the USA"
|
|
138
138
|
type: z.string().optional(), // e.g., "city", "region", "country"
|
|
139
139
|
geos: z.array(z.string()).optional(), // e.g., ["New York", "Los Angeles"]
|
|
140
|
-
|
|
140
|
+
region_id: z.string().optional(), // e.g., region ID
|
|
141
|
+
notes: z.string().optional(), // internal notes about the geo selection
|
|
142
|
+
status: z.enum(generalStatusList).optional(),
|
|
141
143
|
created_at: z.number().optional(), // creation date
|
|
142
144
|
updated_at: z.number().optional(), // last update date
|
|
143
145
|
});
|