asfur 1.0.57 → 1.0.59
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 +6 -3
- package/dist/index.js +2 -1
- package/dist/types.d.ts +4 -4
- package/dist/types.js +1 -0
- package/index.ts +2 -1
- package/package.json +1 -1
- package/types.ts +1 -0
package/dist/index.d.ts
CHANGED
|
@@ -143,7 +143,7 @@ export declare const MongoSourceSchema: Schema<any, import("mongoose").Model<any
|
|
|
143
143
|
}, {
|
|
144
144
|
title: string;
|
|
145
145
|
platform: string;
|
|
146
|
-
status: "approved" | "pending" | "inactive" | "in_review";
|
|
146
|
+
status: "approved" | "back_to_business" | "pending" | "inactive" | "in_review";
|
|
147
147
|
source_id: any;
|
|
148
148
|
source_public_id: any;
|
|
149
149
|
source_name: string;
|
|
@@ -152,6 +152,7 @@ export declare const MongoSourceSchema: Schema<any, import("mongoose").Model<any
|
|
|
152
152
|
metadata: any;
|
|
153
153
|
created_at: number;
|
|
154
154
|
updated_at: number;
|
|
155
|
+
subscribers: string[];
|
|
155
156
|
last_text_id?: number | null | undefined;
|
|
156
157
|
url?: string | null | undefined;
|
|
157
158
|
description?: string | null | undefined;
|
|
@@ -159,7 +160,7 @@ export declare const MongoSourceSchema: Schema<any, import("mongoose").Model<any
|
|
|
159
160
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
160
161
|
title: string;
|
|
161
162
|
platform: string;
|
|
162
|
-
status: "approved" | "pending" | "inactive" | "in_review";
|
|
163
|
+
status: "approved" | "back_to_business" | "pending" | "inactive" | "in_review";
|
|
163
164
|
source_id: any;
|
|
164
165
|
source_public_id: any;
|
|
165
166
|
source_name: string;
|
|
@@ -168,6 +169,7 @@ export declare const MongoSourceSchema: Schema<any, import("mongoose").Model<any
|
|
|
168
169
|
metadata: any;
|
|
169
170
|
created_at: number;
|
|
170
171
|
updated_at: number;
|
|
172
|
+
subscribers: string[];
|
|
171
173
|
last_text_id?: number | null | undefined;
|
|
172
174
|
url?: string | null | undefined;
|
|
173
175
|
description?: string | null | undefined;
|
|
@@ -175,7 +177,7 @@ export declare const MongoSourceSchema: Schema<any, import("mongoose").Model<any
|
|
|
175
177
|
}>, {}> & import("mongoose").FlatRecord<{
|
|
176
178
|
title: string;
|
|
177
179
|
platform: string;
|
|
178
|
-
status: "approved" | "pending" | "inactive" | "in_review";
|
|
180
|
+
status: "approved" | "back_to_business" | "pending" | "inactive" | "in_review";
|
|
179
181
|
source_id: any;
|
|
180
182
|
source_public_id: any;
|
|
181
183
|
source_name: string;
|
|
@@ -184,6 +186,7 @@ export declare const MongoSourceSchema: Schema<any, import("mongoose").Model<any
|
|
|
184
186
|
metadata: any;
|
|
185
187
|
created_at: number;
|
|
186
188
|
updated_at: number;
|
|
189
|
+
subscribers: string[];
|
|
187
190
|
last_text_id?: number | null | undefined;
|
|
188
191
|
url?: string | null | undefined;
|
|
189
192
|
description?: string | null | undefined;
|
package/dist/index.js
CHANGED
|
@@ -71,12 +71,13 @@ exports.MongoSourceSchema = new mongoose_1.Schema({
|
|
|
71
71
|
source_name: { type: String, required: true },
|
|
72
72
|
status: {
|
|
73
73
|
type: String,
|
|
74
|
-
enum: ['approved', 'pending', 'inactive', 'in_review'],
|
|
74
|
+
enum: ['approved', 'back_to_business', 'pending', 'inactive', 'in_review'],
|
|
75
75
|
default: 'pending',
|
|
76
76
|
},
|
|
77
77
|
tags: { type: [String], default: [] },
|
|
78
78
|
url: { type: String },
|
|
79
79
|
metadata: { type: Object, default: {} },
|
|
80
|
+
subscribers: { type: [String], default: [] },
|
|
80
81
|
created_at: { type: Number, default: Date.now },
|
|
81
82
|
updated_at: { type: Number, default: Date.now },
|
|
82
83
|
}, {
|
package/dist/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const platformsList: readonly ["telegram", "facebook", "instagram", "tiktok", "website", "document", "other"];
|
|
3
|
-
export declare const statusList: readonly ["approved", "pending", "inactive", "in_review"];
|
|
3
|
+
export declare const statusList: readonly ["approved", "back_to_business", "pending", "inactive", "in_review"];
|
|
4
4
|
export declare const generalStatusList: readonly ["active", "inactive"];
|
|
5
5
|
export declare const zodSourceSchema: z.ZodObject<{
|
|
6
6
|
_id: z.ZodOptional<z.ZodString>;
|
|
@@ -15,7 +15,7 @@ export declare const zodSourceSchema: z.ZodObject<{
|
|
|
15
15
|
language: z.ZodOptional<z.ZodString>;
|
|
16
16
|
source_geo: z.ZodOptional<z.ZodString>;
|
|
17
17
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
18
|
-
status: z.ZodEnum<["approved", "pending", "inactive", "in_review"]>;
|
|
18
|
+
status: z.ZodEnum<["approved", "back_to_business", "pending", "inactive", "in_review"]>;
|
|
19
19
|
is_public: z.ZodDefault<z.ZodBoolean>;
|
|
20
20
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
21
21
|
created_at: z.ZodOptional<z.ZodNumber>;
|
|
@@ -24,7 +24,7 @@ export declare const zodSourceSchema: z.ZodObject<{
|
|
|
24
24
|
subscribers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
25
25
|
}, "strip", z.ZodTypeAny, {
|
|
26
26
|
platform: "telegram" | "facebook" | "instagram" | "tiktok" | "website" | "document" | "other";
|
|
27
|
-
status: "approved" | "pending" | "inactive" | "in_review";
|
|
27
|
+
status: "approved" | "back_to_business" | "pending" | "inactive" | "in_review";
|
|
28
28
|
source_id: string | number;
|
|
29
29
|
source_name: string;
|
|
30
30
|
is_public: boolean;
|
|
@@ -44,7 +44,7 @@ export declare const zodSourceSchema: z.ZodObject<{
|
|
|
44
44
|
subscribers?: string[] | undefined;
|
|
45
45
|
}, {
|
|
46
46
|
platform: "telegram" | "facebook" | "instagram" | "tiktok" | "website" | "document" | "other";
|
|
47
|
-
status: "approved" | "pending" | "inactive" | "in_review";
|
|
47
|
+
status: "approved" | "back_to_business" | "pending" | "inactive" | "in_review";
|
|
48
48
|
source_id: string | number;
|
|
49
49
|
source_name: string;
|
|
50
50
|
_id?: string | undefined;
|
package/dist/types.js
CHANGED
package/index.ts
CHANGED
|
@@ -65,12 +65,13 @@ export const MongoSourceSchema = new Schema(
|
|
|
65
65
|
source_name: { type: String, required: true }, // e.g., 'Telegram Channel Name'
|
|
66
66
|
status: {
|
|
67
67
|
type: String,
|
|
68
|
-
enum: ['approved', 'pending', 'inactive', 'in_review'],
|
|
68
|
+
enum: ['approved', 'back_to_business', 'pending', 'inactive', 'in_review'],
|
|
69
69
|
default: 'pending',
|
|
70
70
|
}, // INDEX
|
|
71
71
|
tags: { type: [String], default: [] }, // array of tags
|
|
72
72
|
url: { type: String }, // e.g., 'https://t.me/telegram_channel_name'
|
|
73
73
|
metadata: { type: Object, default: {} }, // flexible per platform
|
|
74
|
+
subscribers: { type: [String], default: [] }, // array of user IDs who subscribed to this source
|
|
74
75
|
created_at: { type: Number, default: Date.now },
|
|
75
76
|
updated_at: { type: Number, default: Date.now },
|
|
76
77
|
},
|
package/package.json
CHANGED