asfur 1.0.62 → 1.0.64

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
@@ -380,16 +380,19 @@ export declare const MongoGeoSchema: Schema<any, import("mongoose").Model<any, a
380
380
  virtuals: true;
381
381
  };
382
382
  }, {
383
+ subscribers: string[];
383
384
  timestamp?: number | null | undefined;
384
385
  geo_text?: string | null | undefined;
385
386
  count?: number | null | undefined;
386
387
  region?: string | null | undefined;
387
388
  }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
389
+ subscribers: string[];
388
390
  timestamp?: number | null | undefined;
389
391
  geo_text?: string | null | undefined;
390
392
  count?: number | null | undefined;
391
393
  region?: string | null | undefined;
392
394
  }>, {}> & import("mongoose").FlatRecord<{
395
+ subscribers: string[];
393
396
  timestamp?: number | null | undefined;
394
397
  geo_text?: string | null | undefined;
395
398
  count?: number | null | undefined;
package/dist/index.js CHANGED
@@ -173,7 +173,8 @@ exports.MongoGeoSchema = new mongoose_1.Schema({
173
173
  geo_text: { type: String },
174
174
  timestamp: { type: Number },
175
175
  count: { type: Number },
176
- region: { type: String }, // e.g., "New York", "California"
176
+ region: { type: String },
177
+ subscribers: { type: [String], default: [] }, // array of user IDs who subscribed to this geo
177
178
  }, {
178
179
  versionKey: false,
179
180
  toJSON: { virtuals: true },
package/dist/types.d.ts CHANGED
@@ -529,12 +529,15 @@ export declare const zodGeoSchema: z.ZodObject<{
529
529
  timestamp: z.ZodOptional<z.ZodNumber>;
530
530
  count: z.ZodOptional<z.ZodNumber>;
531
531
  region: z.ZodOptional<z.ZodString>;
532
+ subscribers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
532
533
  }, "strip", z.ZodTypeAny, {
534
+ subscribers?: string[] | undefined;
533
535
  timestamp?: number | undefined;
534
536
  geo_text?: string | undefined;
535
537
  count?: number | undefined;
536
538
  region?: string | undefined;
537
539
  }, {
540
+ subscribers?: string[] | undefined;
538
541
  timestamp?: number | undefined;
539
542
  geo_text?: string | undefined;
540
543
  count?: number | undefined;
package/dist/types.js CHANGED
@@ -160,5 +160,6 @@ exports.zodGeoSchema = zod_1.z.object({
160
160
  geo_text: zod_1.z.string().optional(),
161
161
  timestamp: zod_1.z.number().optional(),
162
162
  count: zod_1.z.number().optional(),
163
- region: zod_1.z.string().optional(), // e.g., "New York", "California"
163
+ region: zod_1.z.string().optional(),
164
+ subscribers: zod_1.z.array(zod_1.z.string()).optional(), // array of user IDs who subscribed to this geo
164
165
  });
package/index.ts CHANGED
@@ -188,6 +188,7 @@ export const MongoGeoSchema = new Schema(
188
188
  timestamp: { type: Number }, // e.g., 1751210833000
189
189
  count: { type: Number }, // e.g., 42
190
190
  region: { type: String }, // e.g., "New York", "California"
191
+ subscribers: { type: [String], default: [] }, // array of user IDs who subscribed to this geo
191
192
  },
192
193
  {
193
194
  versionKey: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asfur",
3
- "version": "1.0.62",
3
+ "version": "1.0.64",
4
4
  "description": "SDK for interacting with the Asfur API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/types.ts CHANGED
@@ -176,6 +176,7 @@ export const zodGeoSchema = z.object({
176
176
  timestamp: z.number().optional(), // e.g., 1751210833000
177
177
  count: z.number().optional(), // e.g., 42
178
178
  region: z.string().optional(), // e.g., "New York", "California"
179
+ subscribers: z.array(z.string()).optional(), // array of user IDs who subscribed to this geo
179
180
  });
180
181
 
181
182
  export type SourceType = z.infer<typeof zodSourceSchema>;