harvester_sdk 1.0.56 → 1.0.57

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 CHANGED
@@ -942,18 +942,27 @@ export declare const MongoGeoSelectionGroupSchema: Schema<any, import("mongoose"
942
942
  updated_at: number;
943
943
  notes?: string | null | undefined;
944
944
  description?: string | null | undefined;
945
+ region_id?: string | null | undefined;
946
+ user_id?: string | null | undefined;
947
+ limit?: number | null | undefined;
945
948
  }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
946
949
  slug: string;
947
950
  created_at: number;
948
951
  updated_at: number;
949
952
  notes?: string | null | undefined;
950
953
  description?: string | null | undefined;
954
+ region_id?: string | null | undefined;
955
+ user_id?: string | null | undefined;
956
+ limit?: number | null | undefined;
951
957
  }>, {}> & import("mongoose").FlatRecord<{
952
958
  slug: string;
953
959
  created_at: number;
954
960
  updated_at: number;
955
961
  notes?: string | null | undefined;
956
962
  description?: string | null | undefined;
963
+ region_id?: string | null | undefined;
964
+ user_id?: string | null | undefined;
965
+ limit?: number | null | undefined;
957
966
  }> & {
958
967
  _id: import("mongoose").Types.ObjectId;
959
968
  } & {
package/dist/index.js CHANGED
@@ -380,11 +380,14 @@ exports.MongoEventSchema = new mongoose_1.Schema({
380
380
  toObject: { virtuals: true },
381
381
  });
382
382
  exports.MongoGeoSelectionGroupSchema = new mongoose_1.Schema({
383
+ region_id: { type: String },
383
384
  slug: { type: String, required: true },
384
385
  description: { type: String },
385
386
  created_at: { type: Number, default: Date.now },
386
387
  updated_at: { type: Number, default: Date.now },
387
- notes: { type: String }, // internal notes about the geo selection group
388
+ notes: { type: String },
389
+ limit: { type: Number },
390
+ user_id: { type: String }, // optional user ID of the creator/owner of this group
388
391
  }, {
389
392
  versionKey: false,
390
393
  toJSON: { virtuals: true },
package/dist/types.d.ts CHANGED
@@ -286,25 +286,34 @@ export declare const zodGeoSchema: z.ZodObject<{
286
286
  }>;
287
287
  export declare const zodGeoSelectionGroupSchema: z.ZodObject<{
288
288
  _id: z.ZodOptional<z.ZodString>;
289
+ region_id: z.ZodString;
289
290
  slug: z.ZodString;
290
291
  description: z.ZodOptional<z.ZodString>;
291
292
  created_at: z.ZodOptional<z.ZodNumber>;
292
293
  updated_at: z.ZodOptional<z.ZodNumber>;
293
294
  notes: z.ZodOptional<z.ZodString>;
295
+ limit: z.ZodOptional<z.ZodNumber>;
296
+ user_id: z.ZodOptional<z.ZodString>;
294
297
  }, "strip", z.ZodTypeAny, {
295
298
  slug: string;
299
+ region_id: string;
296
300
  _id?: string | undefined;
297
301
  created_at?: number | undefined;
298
302
  updated_at?: number | undefined;
299
303
  notes?: string | undefined;
300
304
  description?: string | undefined;
305
+ user_id?: string | undefined;
306
+ limit?: number | undefined;
301
307
  }, {
302
308
  slug: string;
309
+ region_id: string;
303
310
  _id?: string | undefined;
304
311
  created_at?: number | undefined;
305
312
  updated_at?: number | undefined;
306
313
  notes?: string | undefined;
307
314
  description?: string | undefined;
315
+ user_id?: string | undefined;
316
+ limit?: number | undefined;
308
317
  }>;
309
318
  export declare const zodGeoSelectionSchema: z.ZodObject<{
310
319
  _id: z.ZodOptional<z.ZodString>;
package/dist/types.js CHANGED
@@ -145,11 +145,14 @@ exports.zodGeoSchema = zod_1.z.object({
145
145
  });
146
146
  exports.zodGeoSelectionGroupSchema = zod_1.z.object({
147
147
  _id: zod_1.z.string().optional(),
148
+ region_id: zod_1.z.string(),
148
149
  slug: zod_1.z.string(),
149
150
  description: zod_1.z.string().optional(),
150
151
  created_at: zod_1.z.number().optional(),
151
152
  updated_at: zod_1.z.number().optional(),
152
- notes: zod_1.z.string().optional(), // internal notes about the geo selection group
153
+ notes: zod_1.z.string().optional(),
154
+ limit: zod_1.z.number().optional(),
155
+ user_id: zod_1.z.string().optional(), // user who created this geo selection group
153
156
  });
154
157
  exports.zodGeoSelectionSchema = zod_1.z.object({
155
158
  _id: zod_1.z.string().optional(),
package/index.ts CHANGED
@@ -424,11 +424,14 @@ export const MongoEventSchema = new Schema(
424
424
 
425
425
  export const MongoGeoSelectionGroupSchema = new Schema(
426
426
  {
427
+ region_id: { type: String }, // e.g., region ID
427
428
  slug: { type: String, required: true }, // e.g., "group-name"
428
429
  description: { type: String }, // e.g., "Description of the group"
429
430
  created_at: { type: Number, default: Date.now }, // creation date
430
431
  updated_at: { type: Number, default: Date.now }, // last update date
431
432
  notes: { type: String }, // internal notes about the geo selection group
433
+ limit: { type: Number }, // optional limit for number of geos in this group
434
+ user_id: { type: String }, // optional user ID of the creator/owner of this group
432
435
  },
433
436
  {
434
437
  versionKey: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "harvester_sdk",
3
- "version": "1.0.56",
3
+ "version": "1.0.57",
4
4
  "description": "SDK for interacting with the Harvester API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/types.ts CHANGED
@@ -157,11 +157,14 @@ export const zodGeoSchema = z.object({
157
157
 
158
158
  export const zodGeoSelectionGroupSchema = z.object({
159
159
  _id: z.string().optional(),
160
+ region_id: z.string(), // e.g., region ID
160
161
  slug: z.string(), // e.g., "group-name"
161
162
  description: z.string().optional(), // e.g., "Description of the group"
162
163
  created_at: z.number().optional(), // creation date
163
164
  updated_at: z.number().optional(), // last update date
164
165
  notes: z.string().optional(), // internal notes about the geo selection group
166
+ limit: z.number().optional(), // e.g., maximum number of geo selections allowed in this group
167
+ user_id: z.string().optional(), // user who created this geo selection group
165
168
  });
166
169
 
167
170
  export const zodGeoSelectionSchema = z.object({
@@ -532,4 +535,4 @@ export const zodEventSchema = z.object({
532
535
  embeddings: z.array(z.number()).optional(), // e.g., vector embeddings for ML tasks
533
536
  });
534
537
 
535
- export type EventType = z.infer<typeof zodEventSchema>;
538
+ export type EventType = z.infer<typeof zodEventSchema>;