asfur 1.0.61 → 1.0.62

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
@@ -157,6 +157,7 @@ export declare const MongoSourceSchema: Schema<any, import("mongoose").Model<any
157
157
  url?: string | null | undefined;
158
158
  description?: string | null | undefined;
159
159
  source_geo?: string | null | undefined;
160
+ source_region?: string | null | undefined;
160
161
  }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
161
162
  title: string;
162
163
  platform: string;
@@ -174,6 +175,7 @@ export declare const MongoSourceSchema: Schema<any, import("mongoose").Model<any
174
175
  url?: string | null | undefined;
175
176
  description?: string | null | undefined;
176
177
  source_geo?: string | null | undefined;
178
+ source_region?: string | null | undefined;
177
179
  }>, {}> & import("mongoose").FlatRecord<{
178
180
  title: string;
179
181
  platform: string;
@@ -191,6 +193,7 @@ export declare const MongoSourceSchema: Schema<any, import("mongoose").Model<any
191
193
  url?: string | null | undefined;
192
194
  description?: string | null | undefined;
193
195
  source_geo?: string | null | undefined;
196
+ source_region?: string | null | undefined;
194
197
  }> & {
195
198
  _id: import("mongoose").Types.ObjectId;
196
199
  } & {
package/dist/index.js CHANGED
@@ -86,6 +86,7 @@ exports.MongoSourceSchema = new mongoose_1.Schema({
86
86
  subscribers: { type: [String], default: [] },
87
87
  created_at: { type: Number, default: Date.now },
88
88
  updated_at: { type: Number, default: Date.now },
89
+ source_region: { type: String }, // e.g., "New York", "California"
89
90
  }, {
90
91
  versionKey: false,
91
92
  toJSON: { virtuals: true },
package/dist/types.d.ts CHANGED
@@ -22,6 +22,7 @@ export declare const zodSourceSchema: z.ZodObject<{
22
22
  updated_at: z.ZodOptional<z.ZodNumber>;
23
23
  user_id: z.ZodOptional<z.ZodString>;
24
24
  subscribers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
25
+ source_region: z.ZodOptional<z.ZodString>;
25
26
  }, "strip", z.ZodTypeAny, {
26
27
  platform: "telegram" | "facebook" | "instagram" | "tiktok" | "website" | "document" | "other";
27
28
  status: "approved" | "back_to_business" | "pending" | "inactive" | "in_review";
@@ -42,6 +43,7 @@ export declare const zodSourceSchema: z.ZodObject<{
42
43
  updated_at?: number | undefined;
43
44
  user_id?: string | undefined;
44
45
  subscribers?: string[] | undefined;
46
+ source_region?: string | undefined;
45
47
  }, {
46
48
  platform: "telegram" | "facebook" | "instagram" | "tiktok" | "website" | "document" | "other";
47
49
  status: "approved" | "back_to_business" | "pending" | "inactive" | "in_review";
@@ -62,6 +64,7 @@ export declare const zodSourceSchema: z.ZodObject<{
62
64
  updated_at?: number | undefined;
63
65
  user_id?: string | undefined;
64
66
  subscribers?: string[] | undefined;
67
+ source_region?: string | undefined;
65
68
  }>;
66
69
  export declare const zodDataSchema: z.ZodObject<{
67
70
  _id: z.ZodOptional<z.ZodString>;
package/dist/types.js CHANGED
@@ -38,7 +38,8 @@ exports.zodSourceSchema = zod_1.z.object({
38
38
  created_at: zod_1.z.number().optional(),
39
39
  updated_at: zod_1.z.number().optional(),
40
40
  user_id: zod_1.z.string().optional(),
41
- subscribers: zod_1.z.array(zod_1.z.string()).optional(), // array of user IDs who subscribed to this source
41
+ subscribers: zod_1.z.array(zod_1.z.string()).optional(),
42
+ source_region: zod_1.z.string().optional(), // e.g., "New York", "California"
42
43
  });
43
44
  exports.zodDataSchema = zod_1.z.object({
44
45
  _id: zod_1.z.string().optional(),
package/index.ts CHANGED
@@ -80,6 +80,7 @@ export const MongoSourceSchema = new Schema(
80
80
  subscribers: { type: [String], default: [] }, // array of user IDs who subscribed to this source
81
81
  created_at: { type: Number, default: Date.now },
82
82
  updated_at: { type: Number, default: Date.now },
83
+ source_region: { type: String }, // e.g., "New York", "California"
83
84
  },
84
85
  {
85
86
  versionKey: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asfur",
3
- "version": "1.0.61",
3
+ "version": "1.0.62",
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
@@ -40,6 +40,7 @@ export const zodSourceSchema = z.object({
40
40
  updated_at: z.number().optional(),
41
41
  user_id: z.string().optional(), // user identifier
42
42
  subscribers: z.array(z.string()).optional(), // array of user IDs who subscribed to this source
43
+ source_region: z.string().optional(), // e.g., "New York", "California"
43
44
  });
44
45
 
45
46
  export const zodDataSchema = z.object({