asfur 1.0.47 → 1.0.48
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 +21 -21
- package/dist/types.d.ts +9 -9
- package/dist/types.js +3 -3
- package/package.json +1 -1
- package/types.ts +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -30,16 +30,16 @@ export declare const MongoDataSchema: Schema<{
|
|
|
30
30
|
source_id: string | number;
|
|
31
31
|
source_public_id: string | number;
|
|
32
32
|
source_name: string;
|
|
33
|
-
created_at: number
|
|
33
|
+
created_at: number;
|
|
34
|
+
updated_at: number;
|
|
34
35
|
platform_id: string | number;
|
|
35
36
|
original_text_id: string | number;
|
|
36
|
-
timestamp: number
|
|
37
|
+
timestamp: number;
|
|
37
38
|
text_geo: string[];
|
|
38
39
|
_id?: string | undefined;
|
|
39
40
|
language?: string | undefined;
|
|
40
41
|
source_geo?: string | undefined;
|
|
41
42
|
metadata?: Record<string, any> | undefined;
|
|
42
|
-
updated_at?: number | Date | undefined;
|
|
43
43
|
original_text?: string | undefined;
|
|
44
44
|
translated_text?: string | undefined;
|
|
45
45
|
is_reply?: boolean | undefined;
|
|
@@ -54,16 +54,16 @@ export declare const MongoDataSchema: Schema<{
|
|
|
54
54
|
source_id: string | number;
|
|
55
55
|
source_public_id: string | number;
|
|
56
56
|
source_name: string;
|
|
57
|
-
created_at: number
|
|
57
|
+
created_at: number;
|
|
58
|
+
updated_at: number;
|
|
58
59
|
platform_id: string | number;
|
|
59
60
|
original_text_id: string | number;
|
|
60
|
-
timestamp: number
|
|
61
|
+
timestamp: number;
|
|
61
62
|
text_geo: string[];
|
|
62
63
|
_id?: string | undefined;
|
|
63
64
|
language?: string | undefined;
|
|
64
65
|
source_geo?: string | undefined;
|
|
65
66
|
metadata?: Record<string, any> | undefined;
|
|
66
|
-
updated_at?: number | Date | undefined;
|
|
67
67
|
original_text?: string | undefined;
|
|
68
68
|
translated_text?: string | undefined;
|
|
69
69
|
is_reply?: boolean | undefined;
|
|
@@ -78,16 +78,16 @@ export declare const MongoDataSchema: Schema<{
|
|
|
78
78
|
source_id: string | number;
|
|
79
79
|
source_public_id: string | number;
|
|
80
80
|
source_name: string;
|
|
81
|
-
created_at: number
|
|
81
|
+
created_at: number;
|
|
82
|
+
updated_at: number;
|
|
82
83
|
platform_id: string | number;
|
|
83
84
|
original_text_id: string | number;
|
|
84
|
-
timestamp: number
|
|
85
|
+
timestamp: number;
|
|
85
86
|
text_geo: string[];
|
|
86
87
|
_id?: string | undefined;
|
|
87
88
|
language?: string | undefined;
|
|
88
89
|
source_geo?: string | undefined;
|
|
89
90
|
metadata?: Record<string, any> | undefined;
|
|
90
|
-
updated_at?: number | Date | undefined;
|
|
91
91
|
original_text?: string | undefined;
|
|
92
92
|
translated_text?: string | undefined;
|
|
93
93
|
is_reply?: boolean | undefined;
|
|
@@ -102,16 +102,16 @@ export declare const MongoDataSchema: Schema<{
|
|
|
102
102
|
source_id: string | number;
|
|
103
103
|
source_public_id: string | number;
|
|
104
104
|
source_name: string;
|
|
105
|
-
created_at: number
|
|
105
|
+
created_at: number;
|
|
106
|
+
updated_at: number;
|
|
106
107
|
platform_id: string | number;
|
|
107
108
|
original_text_id: string | number;
|
|
108
|
-
timestamp: number
|
|
109
|
+
timestamp: number;
|
|
109
110
|
text_geo: string[];
|
|
110
111
|
_id?: string | undefined;
|
|
111
112
|
language?: string | undefined;
|
|
112
113
|
source_geo?: string | undefined;
|
|
113
114
|
metadata?: Record<string, any> | undefined;
|
|
114
|
-
updated_at?: number | Date | undefined;
|
|
115
115
|
original_text?: string | undefined;
|
|
116
116
|
translated_text?: string | undefined;
|
|
117
117
|
is_reply?: boolean | undefined;
|
|
@@ -130,16 +130,16 @@ export declare const MongoDataSchema: Schema<{
|
|
|
130
130
|
source_id: string | number;
|
|
131
131
|
source_public_id: string | number;
|
|
132
132
|
source_name: string;
|
|
133
|
-
created_at: number
|
|
133
|
+
created_at: number;
|
|
134
|
+
updated_at: number;
|
|
134
135
|
platform_id: string | number;
|
|
135
136
|
original_text_id: string | number;
|
|
136
|
-
timestamp: number
|
|
137
|
+
timestamp: number;
|
|
137
138
|
text_geo: string[];
|
|
138
139
|
_id?: string | undefined;
|
|
139
140
|
language?: string | undefined;
|
|
140
141
|
source_geo?: string | undefined;
|
|
141
142
|
metadata?: Record<string, any> | undefined;
|
|
142
|
-
updated_at?: number | Date | undefined;
|
|
143
143
|
original_text?: string | undefined;
|
|
144
144
|
translated_text?: string | undefined;
|
|
145
145
|
is_reply?: boolean | undefined;
|
|
@@ -154,16 +154,16 @@ export declare const MongoDataSchema: Schema<{
|
|
|
154
154
|
source_id: string | number;
|
|
155
155
|
source_public_id: string | number;
|
|
156
156
|
source_name: string;
|
|
157
|
-
created_at: number
|
|
157
|
+
created_at: number;
|
|
158
|
+
updated_at: number;
|
|
158
159
|
platform_id: string | number;
|
|
159
160
|
original_text_id: string | number;
|
|
160
|
-
timestamp: number
|
|
161
|
+
timestamp: number;
|
|
161
162
|
text_geo: string[];
|
|
162
163
|
_id?: string | undefined;
|
|
163
164
|
language?: string | undefined;
|
|
164
165
|
source_geo?: string | undefined;
|
|
165
166
|
metadata?: Record<string, any> | undefined;
|
|
166
|
-
updated_at?: number | Date | undefined;
|
|
167
167
|
original_text?: string | undefined;
|
|
168
168
|
translated_text?: string | undefined;
|
|
169
169
|
is_reply?: boolean | undefined;
|
|
@@ -178,16 +178,16 @@ export declare const MongoDataSchema: Schema<{
|
|
|
178
178
|
source_id: string | number;
|
|
179
179
|
source_public_id: string | number;
|
|
180
180
|
source_name: string;
|
|
181
|
-
created_at: number
|
|
181
|
+
created_at: number;
|
|
182
|
+
updated_at: number;
|
|
182
183
|
platform_id: string | number;
|
|
183
184
|
original_text_id: string | number;
|
|
184
|
-
timestamp: number
|
|
185
|
+
timestamp: number;
|
|
185
186
|
text_geo: string[];
|
|
186
187
|
_id?: string | undefined;
|
|
187
188
|
language?: string | undefined;
|
|
188
189
|
source_geo?: string | undefined;
|
|
189
190
|
metadata?: Record<string, any> | undefined;
|
|
190
|
-
updated_at?: number | Date | undefined;
|
|
191
191
|
original_text?: string | undefined;
|
|
192
192
|
translated_text?: string | undefined;
|
|
193
193
|
is_reply?: boolean | undefined;
|
package/dist/types.d.ts
CHANGED
|
@@ -70,15 +70,15 @@ export declare const zodDataSchema: z.ZodObject<{
|
|
|
70
70
|
original_text_id: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
71
71
|
original_text: z.ZodOptional<z.ZodString>;
|
|
72
72
|
translated_text: z.ZodOptional<z.ZodString>;
|
|
73
|
-
timestamp: z.
|
|
73
|
+
timestamp: z.ZodNumber;
|
|
74
74
|
language: z.ZodOptional<z.ZodString>;
|
|
75
75
|
text_geo: z.ZodArray<z.ZodString, "many">;
|
|
76
76
|
source_geo: z.ZodOptional<z.ZodString>;
|
|
77
77
|
is_reply: z.ZodOptional<z.ZodBoolean>;
|
|
78
78
|
reply_to_message_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
79
79
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
80
|
-
created_at: z.
|
|
81
|
-
updated_at: z.
|
|
80
|
+
created_at: z.ZodNumber;
|
|
81
|
+
updated_at: z.ZodNumber;
|
|
82
82
|
media: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
83
83
|
type: z.ZodEnum<["image", "video", "audio", "link"]>;
|
|
84
84
|
url: z.ZodString;
|
|
@@ -97,16 +97,16 @@ export declare const zodDataSchema: z.ZodObject<{
|
|
|
97
97
|
source_id: string | number;
|
|
98
98
|
source_public_id: string | number;
|
|
99
99
|
source_name: string;
|
|
100
|
-
created_at: number
|
|
100
|
+
created_at: number;
|
|
101
|
+
updated_at: number;
|
|
101
102
|
platform_id: string | number;
|
|
102
103
|
original_text_id: string | number;
|
|
103
|
-
timestamp: number
|
|
104
|
+
timestamp: number;
|
|
104
105
|
text_geo: string[];
|
|
105
106
|
_id?: string | undefined;
|
|
106
107
|
language?: string | undefined;
|
|
107
108
|
source_geo?: string | undefined;
|
|
108
109
|
metadata?: Record<string, any> | undefined;
|
|
109
|
-
updated_at?: number | Date | undefined;
|
|
110
110
|
original_text?: string | undefined;
|
|
111
111
|
translated_text?: string | undefined;
|
|
112
112
|
is_reply?: boolean | undefined;
|
|
@@ -121,16 +121,16 @@ export declare const zodDataSchema: z.ZodObject<{
|
|
|
121
121
|
source_id: string | number;
|
|
122
122
|
source_public_id: string | number;
|
|
123
123
|
source_name: string;
|
|
124
|
-
created_at: number
|
|
124
|
+
created_at: number;
|
|
125
|
+
updated_at: number;
|
|
125
126
|
platform_id: string | number;
|
|
126
127
|
original_text_id: string | number;
|
|
127
|
-
timestamp: number
|
|
128
|
+
timestamp: number;
|
|
128
129
|
text_geo: string[];
|
|
129
130
|
_id?: string | undefined;
|
|
130
131
|
language?: string | undefined;
|
|
131
132
|
source_geo?: string | undefined;
|
|
132
133
|
metadata?: Record<string, any> | undefined;
|
|
133
|
-
updated_at?: number | Date | undefined;
|
|
134
134
|
original_text?: string | undefined;
|
|
135
135
|
translated_text?: string | undefined;
|
|
136
136
|
is_reply?: boolean | undefined;
|
package/dist/types.js
CHANGED
|
@@ -48,15 +48,15 @@ exports.zodDataSchema = zod_1.z.object({
|
|
|
48
48
|
original_text_id: zod_1.z.string().or(zod_1.z.number()),
|
|
49
49
|
original_text: zod_1.z.string().optional(),
|
|
50
50
|
translated_text: zod_1.z.string().optional(),
|
|
51
|
-
timestamp: zod_1.z.
|
|
51
|
+
timestamp: zod_1.z.number(),
|
|
52
52
|
language: zod_1.z.string().optional(),
|
|
53
53
|
text_geo: zod_1.z.array(zod_1.z.string()),
|
|
54
54
|
source_geo: zod_1.z.string().optional(),
|
|
55
55
|
is_reply: zod_1.z.boolean().optional(),
|
|
56
56
|
reply_to_message_id: zod_1.z.string().or(zod_1.z.number()).optional(),
|
|
57
57
|
metadata: zod_1.z.record(zod_1.z.string(), zod_1.z.any()).optional(),
|
|
58
|
-
created_at: zod_1.z.
|
|
59
|
-
updated_at: zod_1.z.
|
|
58
|
+
created_at: zod_1.z.number(),
|
|
59
|
+
updated_at: zod_1.z.number(),
|
|
60
60
|
media: zod_1.z
|
|
61
61
|
.array(zod_1.z.object({
|
|
62
62
|
type: zod_1.z.enum(['image', 'video', 'audio', 'link']),
|
package/package.json
CHANGED
package/types.ts
CHANGED
|
@@ -50,15 +50,15 @@ export const zodDataSchema = z.object({
|
|
|
50
50
|
original_text_id: z.string().or(z.number()), // message_id
|
|
51
51
|
original_text: z.string().optional(), // original text content
|
|
52
52
|
translated_text: z.string().optional(), // translated text if available - most of the time it will be translated to English
|
|
53
|
-
timestamp: z.
|
|
53
|
+
timestamp: z.number(), // INDEX - date in milliseconds - e.g., 1751210833000
|
|
54
54
|
language: z.string().optional(),
|
|
55
55
|
text_geo: z.array(z.string()), // INDEX - e.g., ["sinjil", "ramallah", "west bank"]
|
|
56
56
|
source_geo: z.string().optional(), // e.g., 'hebron'
|
|
57
57
|
is_reply: z.boolean().optional(), // true if this text is a reply to another text
|
|
58
58
|
reply_to_message_id: z.string().or(z.number()).optional(),
|
|
59
59
|
metadata: z.record(z.string(), z.any()).optional(), // platform-specific fields
|
|
60
|
-
created_at: z.
|
|
61
|
-
updated_at: z.
|
|
60
|
+
created_at: z.number(),
|
|
61
|
+
updated_at: z.number(),
|
|
62
62
|
media: z
|
|
63
63
|
.array(
|
|
64
64
|
z.object({
|