asfur 1.0.72 → 1.0.73
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
|
@@ -158,6 +158,7 @@ export declare const MongoSourceSchema: Schema<any, import("mongoose").Model<any
|
|
|
158
158
|
url?: string | null | undefined;
|
|
159
159
|
source_geo?: string | null | undefined;
|
|
160
160
|
source_region?: string | null | undefined;
|
|
161
|
+
server?: string | null | undefined;
|
|
161
162
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
162
163
|
status: "approved" | "back_to_business" | "pending" | "inactive" | "in_review";
|
|
163
164
|
subscribers: string[];
|
|
@@ -176,6 +177,7 @@ export declare const MongoSourceSchema: Schema<any, import("mongoose").Model<any
|
|
|
176
177
|
url?: string | null | undefined;
|
|
177
178
|
source_geo?: string | null | undefined;
|
|
178
179
|
source_region?: string | null | undefined;
|
|
180
|
+
server?: string | null | undefined;
|
|
179
181
|
}>, {}> & import("mongoose").FlatRecord<{
|
|
180
182
|
status: "approved" | "back_to_business" | "pending" | "inactive" | "in_review";
|
|
181
183
|
subscribers: string[];
|
|
@@ -194,6 +196,7 @@ export declare const MongoSourceSchema: Schema<any, import("mongoose").Model<any
|
|
|
194
196
|
url?: string | null | undefined;
|
|
195
197
|
source_geo?: string | null | undefined;
|
|
196
198
|
source_region?: string | null | undefined;
|
|
199
|
+
server?: string | null | undefined;
|
|
197
200
|
}> & {
|
|
198
201
|
_id: import("mongoose").Types.ObjectId;
|
|
199
202
|
} & {
|
package/dist/index.js
CHANGED
|
@@ -86,7 +86,8 @@ 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 },
|
|
89
|
+
source_region: { type: String },
|
|
90
|
+
server: { type: String }, // e.g., server handling this source
|
|
90
91
|
}, {
|
|
91
92
|
versionKey: false,
|
|
92
93
|
toJSON: { virtuals: true },
|
package/dist/types.d.ts
CHANGED
|
@@ -76,6 +76,7 @@ export declare const zodSourceSchema: z.ZodObject<{
|
|
|
76
76
|
user_id: z.ZodOptional<z.ZodString>;
|
|
77
77
|
subscribers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
78
78
|
source_region: z.ZodOptional<z.ZodString>;
|
|
79
|
+
server: z.ZodOptional<z.ZodString>;
|
|
79
80
|
}, "strip", z.ZodTypeAny, {
|
|
80
81
|
status: "approved" | "back_to_business" | "pending" | "inactive" | "in_review";
|
|
81
82
|
platform: "telegram" | "facebook" | "instagram" | "tiktok" | "website" | "document" | "other";
|
|
@@ -97,6 +98,7 @@ export declare const zodSourceSchema: z.ZodObject<{
|
|
|
97
98
|
metadata?: Record<string, any> | undefined;
|
|
98
99
|
user_id?: string | undefined;
|
|
99
100
|
source_region?: string | undefined;
|
|
101
|
+
server?: string | undefined;
|
|
100
102
|
}, {
|
|
101
103
|
status: "approved" | "back_to_business" | "pending" | "inactive" | "in_review";
|
|
102
104
|
platform: "telegram" | "facebook" | "instagram" | "tiktok" | "website" | "document" | "other";
|
|
@@ -118,6 +120,7 @@ export declare const zodSourceSchema: z.ZodObject<{
|
|
|
118
120
|
metadata?: Record<string, any> | undefined;
|
|
119
121
|
user_id?: string | undefined;
|
|
120
122
|
source_region?: string | undefined;
|
|
123
|
+
server?: string | undefined;
|
|
121
124
|
}>;
|
|
122
125
|
export declare const zodDataSchema: z.ZodObject<{
|
|
123
126
|
_id: z.ZodOptional<z.ZodString>;
|
package/dist/types.js
CHANGED
|
@@ -58,7 +58,8 @@ exports.zodSourceSchema = zod_1.z.object({
|
|
|
58
58
|
updated_at: zod_1.z.number().optional(),
|
|
59
59
|
user_id: zod_1.z.string().optional(),
|
|
60
60
|
subscribers: zod_1.z.array(zod_1.z.string()).optional(),
|
|
61
|
-
source_region: zod_1.z.string().optional(),
|
|
61
|
+
source_region: zod_1.z.string().optional(),
|
|
62
|
+
server: zod_1.z.string().optional(), // e.g., server handling this source
|
|
62
63
|
});
|
|
63
64
|
exports.zodDataSchema = zod_1.z.object({
|
|
64
65
|
_id: zod_1.z.string().optional(),
|
package/index.ts
CHANGED
|
@@ -81,6 +81,7 @@ export const MongoSourceSchema = new Schema(
|
|
|
81
81
|
created_at: { type: Number, default: Date.now },
|
|
82
82
|
updated_at: { type: Number, default: Date.now },
|
|
83
83
|
source_region: { type: String }, // e.g., "New York", "California"
|
|
84
|
+
server: { type: String }, // e.g., server handling this source
|
|
84
85
|
},
|
|
85
86
|
{
|
|
86
87
|
versionKey: false,
|
package/package.json
CHANGED
package/types.ts
CHANGED
|
@@ -63,6 +63,7 @@ export const zodSourceSchema = z.object({
|
|
|
63
63
|
user_id: z.string().optional(), // user identifier
|
|
64
64
|
subscribers: z.array(z.string()).optional(), // array of user IDs who subscribed to this source
|
|
65
65
|
source_region: z.string().optional(), // e.g., "New York", "California"
|
|
66
|
+
server: z.string().optional(), // e.g., server handling this source
|
|
66
67
|
});
|
|
67
68
|
|
|
68
69
|
export const zodDataSchema = z.object({
|