asfur 1.0.80 → 1.0.81
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 +43 -17
- package/dist/types.js +23 -1
- package/package.json +1 -1
- package/types.ts +28 -0
package/dist/index.d.ts
CHANGED
|
@@ -34,9 +34,9 @@ export declare const MongoDataSchema: Schema<any, import("mongoose").Model<any,
|
|
|
34
34
|
virtuals: true;
|
|
35
35
|
};
|
|
36
36
|
}, {
|
|
37
|
-
timestamp: number;
|
|
38
37
|
created_at: number;
|
|
39
38
|
updated_at: number;
|
|
39
|
+
timestamp: number;
|
|
40
40
|
text_geo: string[];
|
|
41
41
|
platform?: string | null | undefined;
|
|
42
42
|
source_id?: string | null | undefined;
|
|
@@ -58,9 +58,9 @@ export declare const MongoDataSchema: Schema<any, import("mongoose").Model<any,
|
|
|
58
58
|
author_id?: string | null | undefined;
|
|
59
59
|
pipeline_name?: string | null | undefined;
|
|
60
60
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
61
|
-
timestamp: number;
|
|
62
61
|
created_at: number;
|
|
63
62
|
updated_at: number;
|
|
63
|
+
timestamp: number;
|
|
64
64
|
text_geo: string[];
|
|
65
65
|
platform?: string | null | undefined;
|
|
66
66
|
source_id?: string | null | undefined;
|
|
@@ -82,9 +82,9 @@ export declare const MongoDataSchema: Schema<any, import("mongoose").Model<any,
|
|
|
82
82
|
author_id?: string | null | undefined;
|
|
83
83
|
pipeline_name?: string | null | undefined;
|
|
84
84
|
}>, {}> & import("mongoose").FlatRecord<{
|
|
85
|
-
timestamp: number;
|
|
86
85
|
created_at: number;
|
|
87
86
|
updated_at: number;
|
|
87
|
+
timestamp: number;
|
|
88
88
|
text_geo: string[];
|
|
89
89
|
platform?: string | null | undefined;
|
|
90
90
|
source_id?: string | null | undefined;
|
|
@@ -147,11 +147,11 @@ export declare const MongoSourceSchema: Schema<any, import("mongoose").Model<any
|
|
|
147
147
|
virtuals: true;
|
|
148
148
|
};
|
|
149
149
|
}, {
|
|
150
|
-
status: "approved" | "back_to_business" | "pending" | "inactive" | "in_review";
|
|
151
|
-
subscribers: string[];
|
|
152
150
|
title: string;
|
|
151
|
+
status: "approved" | "back_to_business" | "pending" | "inactive" | "in_review";
|
|
153
152
|
created_at: number;
|
|
154
153
|
updated_at: number;
|
|
154
|
+
subscribers: string[];
|
|
155
155
|
platform: string;
|
|
156
156
|
source_id: any;
|
|
157
157
|
source_public_id: any;
|
|
@@ -166,11 +166,11 @@ export declare const MongoSourceSchema: Schema<any, import("mongoose").Model<any
|
|
|
166
166
|
source_region?: string | null | undefined;
|
|
167
167
|
server?: string | null | undefined;
|
|
168
168
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
169
|
-
status: "approved" | "back_to_business" | "pending" | "inactive" | "in_review";
|
|
170
|
-
subscribers: string[];
|
|
171
169
|
title: string;
|
|
170
|
+
status: "approved" | "back_to_business" | "pending" | "inactive" | "in_review";
|
|
172
171
|
created_at: number;
|
|
173
172
|
updated_at: number;
|
|
173
|
+
subscribers: string[];
|
|
174
174
|
platform: string;
|
|
175
175
|
source_id: any;
|
|
176
176
|
source_public_id: any;
|
|
@@ -185,11 +185,11 @@ export declare const MongoSourceSchema: Schema<any, import("mongoose").Model<any
|
|
|
185
185
|
source_region?: string | null | undefined;
|
|
186
186
|
server?: string | null | undefined;
|
|
187
187
|
}>, {}> & import("mongoose").FlatRecord<{
|
|
188
|
-
status: "approved" | "back_to_business" | "pending" | "inactive" | "in_review";
|
|
189
|
-
subscribers: string[];
|
|
190
188
|
title: string;
|
|
189
|
+
status: "approved" | "back_to_business" | "pending" | "inactive" | "in_review";
|
|
191
190
|
created_at: number;
|
|
192
191
|
updated_at: number;
|
|
192
|
+
subscribers: string[];
|
|
193
193
|
platform: string;
|
|
194
194
|
source_id: any;
|
|
195
195
|
source_public_id: any;
|
|
@@ -217,8 +217,8 @@ export declare const MongoQuerySchema: Schema<any, import("mongoose").Model<any,
|
|
|
217
217
|
virtuals: true;
|
|
218
218
|
};
|
|
219
219
|
}, {
|
|
220
|
-
timestamp: number;
|
|
221
220
|
geos: string[];
|
|
221
|
+
timestamp: number;
|
|
222
222
|
user_id: string;
|
|
223
223
|
sources: string[];
|
|
224
224
|
geos_ids: string[];
|
|
@@ -228,8 +228,8 @@ export declare const MongoQuerySchema: Schema<any, import("mongoose").Model<any,
|
|
|
228
228
|
user_instructions?: string | null | undefined;
|
|
229
229
|
user_time_zone?: string | null | undefined;
|
|
230
230
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
231
|
-
timestamp: number;
|
|
232
231
|
geos: string[];
|
|
232
|
+
timestamp: number;
|
|
233
233
|
user_id: string;
|
|
234
234
|
sources: string[];
|
|
235
235
|
geos_ids: string[];
|
|
@@ -239,8 +239,8 @@ export declare const MongoQuerySchema: Schema<any, import("mongoose").Model<any,
|
|
|
239
239
|
user_instructions?: string | null | undefined;
|
|
240
240
|
user_time_zone?: string | null | undefined;
|
|
241
241
|
}>, {}> & import("mongoose").FlatRecord<{
|
|
242
|
-
timestamp: number;
|
|
243
242
|
geos: string[];
|
|
243
|
+
timestamp: number;
|
|
244
244
|
user_id: string;
|
|
245
245
|
sources: string[];
|
|
246
246
|
geos_ids: string[];
|
|
@@ -406,24 +406,24 @@ export declare const MongoGeoSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
406
406
|
}, {
|
|
407
407
|
subscribers: string[];
|
|
408
408
|
is_used: boolean;
|
|
409
|
+
region?: string | null | undefined;
|
|
409
410
|
geo_text?: string | null | undefined;
|
|
410
411
|
timestamp?: number | null | undefined;
|
|
411
412
|
count?: number | null | undefined;
|
|
412
|
-
region?: string | null | undefined;
|
|
413
413
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
414
414
|
subscribers: string[];
|
|
415
415
|
is_used: boolean;
|
|
416
|
+
region?: string | null | undefined;
|
|
416
417
|
geo_text?: string | null | undefined;
|
|
417
418
|
timestamp?: number | null | undefined;
|
|
418
419
|
count?: number | null | undefined;
|
|
419
|
-
region?: string | null | undefined;
|
|
420
420
|
}>, {}> & import("mongoose").FlatRecord<{
|
|
421
421
|
subscribers: string[];
|
|
422
422
|
is_used: boolean;
|
|
423
|
+
region?: string | null | undefined;
|
|
423
424
|
geo_text?: string | null | undefined;
|
|
424
425
|
timestamp?: number | null | undefined;
|
|
425
426
|
count?: number | null | undefined;
|
|
426
|
-
region?: string | null | undefined;
|
|
427
427
|
}> & {
|
|
428
428
|
_id: import("mongoose").Types.ObjectId;
|
|
429
429
|
} & {
|
|
@@ -439,26 +439,26 @@ export declare const MongoGeoSelectionSchema: Schema<any, import("mongoose").Mod
|
|
|
439
439
|
};
|
|
440
440
|
}, {
|
|
441
441
|
geos: string[];
|
|
442
|
-
region?: string | null | undefined;
|
|
443
|
-
type?: string | null | undefined;
|
|
444
442
|
title?: string | null | undefined;
|
|
445
443
|
description?: string | null | undefined;
|
|
444
|
+
type?: string | null | undefined;
|
|
445
|
+
region?: string | null | undefined;
|
|
446
446
|
created_at?: number | null | undefined;
|
|
447
447
|
updated_at?: number | null | undefined;
|
|
448
448
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
449
449
|
geos: string[];
|
|
450
|
-
region?: string | null | undefined;
|
|
451
|
-
type?: string | null | undefined;
|
|
452
450
|
title?: string | null | undefined;
|
|
453
451
|
description?: string | null | undefined;
|
|
452
|
+
type?: string | null | undefined;
|
|
453
|
+
region?: string | null | undefined;
|
|
454
454
|
created_at?: number | null | undefined;
|
|
455
455
|
updated_at?: number | null | undefined;
|
|
456
456
|
}>, {}> & import("mongoose").FlatRecord<{
|
|
457
457
|
geos: string[];
|
|
458
|
-
region?: string | null | undefined;
|
|
459
|
-
type?: string | null | undefined;
|
|
460
458
|
title?: string | null | undefined;
|
|
461
459
|
description?: string | null | undefined;
|
|
460
|
+
type?: string | null | undefined;
|
|
461
|
+
region?: string | null | undefined;
|
|
462
462
|
created_at?: number | null | undefined;
|
|
463
463
|
updated_at?: number | null | undefined;
|
|
464
464
|
}> & {
|
package/dist/types.d.ts
CHANGED
|
@@ -2,6 +2,32 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const platformsList: readonly ["telegram", "facebook", "instagram", "tiktok", "website", "document", "other"];
|
|
3
3
|
export declare const statusList: readonly ["approved", "back_to_business", "pending", "inactive", "in_review"];
|
|
4
4
|
export declare const generalStatusList: readonly ["active", "inactive"];
|
|
5
|
+
export declare const geoSelectionRegionsList: {
|
|
6
|
+
iran: {
|
|
7
|
+
title: string;
|
|
8
|
+
index: string;
|
|
9
|
+
};
|
|
10
|
+
gaza: {
|
|
11
|
+
title: string;
|
|
12
|
+
index: string;
|
|
13
|
+
};
|
|
14
|
+
west_bank: {
|
|
15
|
+
title: string;
|
|
16
|
+
index: string;
|
|
17
|
+
};
|
|
18
|
+
us_mexico_border: {
|
|
19
|
+
title: string;
|
|
20
|
+
index: string;
|
|
21
|
+
};
|
|
22
|
+
lebanon: {
|
|
23
|
+
title: string;
|
|
24
|
+
index: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export type GeoSelectionRegionsType = keyof typeof geoSelectionRegionsList;
|
|
28
|
+
export type GeoSelectionByRegion = {
|
|
29
|
+
[region in GeoSelectionRegionsType]: GeoSelectionType[];
|
|
30
|
+
};
|
|
5
31
|
export declare const zodGeoSchema: z.ZodObject<{
|
|
6
32
|
_id: z.ZodOptional<z.ZodString>;
|
|
7
33
|
geo_text: z.ZodOptional<z.ZodString>;
|
|
@@ -13,17 +39,17 @@ export declare const zodGeoSchema: z.ZodObject<{
|
|
|
13
39
|
}, "strip", z.ZodTypeAny, {
|
|
14
40
|
is_used: boolean;
|
|
15
41
|
_id?: string | undefined;
|
|
42
|
+
region?: string | undefined;
|
|
16
43
|
geo_text?: string | undefined;
|
|
17
44
|
timestamp?: number | undefined;
|
|
18
45
|
count?: number | undefined;
|
|
19
|
-
region?: string | undefined;
|
|
20
46
|
subscribers?: string[] | undefined;
|
|
21
47
|
}, {
|
|
22
48
|
_id?: string | undefined;
|
|
49
|
+
region?: string | undefined;
|
|
23
50
|
geo_text?: string | undefined;
|
|
24
51
|
timestamp?: number | undefined;
|
|
25
52
|
count?: number | undefined;
|
|
26
|
-
region?: string | undefined;
|
|
27
53
|
subscribers?: string[] | undefined;
|
|
28
54
|
is_used?: boolean | undefined;
|
|
29
55
|
}>;
|
|
@@ -38,20 +64,20 @@ export declare const zodGeoSelectionSchema: z.ZodObject<{
|
|
|
38
64
|
updated_at: z.ZodOptional<z.ZodNumber>;
|
|
39
65
|
}, "strip", z.ZodTypeAny, {
|
|
40
66
|
_id?: string | undefined;
|
|
41
|
-
region?: string | undefined;
|
|
42
|
-
type?: string | undefined;
|
|
43
67
|
title?: string | undefined;
|
|
44
68
|
description?: string | undefined;
|
|
69
|
+
type?: string | undefined;
|
|
45
70
|
geos?: string[] | undefined;
|
|
71
|
+
region?: string | undefined;
|
|
46
72
|
created_at?: number | undefined;
|
|
47
73
|
updated_at?: number | undefined;
|
|
48
74
|
}, {
|
|
49
75
|
_id?: string | undefined;
|
|
50
|
-
region?: string | undefined;
|
|
51
|
-
type?: string | undefined;
|
|
52
76
|
title?: string | undefined;
|
|
53
77
|
description?: string | undefined;
|
|
78
|
+
type?: string | undefined;
|
|
54
79
|
geos?: string[] | undefined;
|
|
80
|
+
region?: string | undefined;
|
|
55
81
|
created_at?: number | undefined;
|
|
56
82
|
updated_at?: number | undefined;
|
|
57
83
|
}>;
|
|
@@ -84,11 +110,11 @@ export declare const zodSourceSchema: z.ZodObject<{
|
|
|
84
110
|
source_name: string;
|
|
85
111
|
is_public: boolean;
|
|
86
112
|
_id?: string | undefined;
|
|
87
|
-
subscribers?: string[] | undefined;
|
|
88
113
|
title?: string | undefined;
|
|
89
114
|
description?: string | undefined;
|
|
90
115
|
created_at?: number | undefined;
|
|
91
116
|
updated_at?: number | undefined;
|
|
117
|
+
subscribers?: string[] | undefined;
|
|
92
118
|
source_public_id?: string | number | undefined;
|
|
93
119
|
last_text_id?: number | undefined;
|
|
94
120
|
url?: string | undefined;
|
|
@@ -105,11 +131,11 @@ export declare const zodSourceSchema: z.ZodObject<{
|
|
|
105
131
|
source_id: string | number;
|
|
106
132
|
source_name: string;
|
|
107
133
|
_id?: string | undefined;
|
|
108
|
-
subscribers?: string[] | undefined;
|
|
109
134
|
title?: string | undefined;
|
|
110
135
|
description?: string | undefined;
|
|
111
136
|
created_at?: number | undefined;
|
|
112
137
|
updated_at?: number | undefined;
|
|
138
|
+
subscribers?: string[] | undefined;
|
|
113
139
|
source_public_id?: string | number | undefined;
|
|
114
140
|
last_text_id?: number | undefined;
|
|
115
141
|
url?: string | undefined;
|
|
@@ -162,9 +188,9 @@ export declare const zodDataSchema: z.ZodObject<{
|
|
|
162
188
|
pipeline_name: z.ZodOptional<z.ZodString>;
|
|
163
189
|
source_region: z.ZodOptional<z.ZodString>;
|
|
164
190
|
}, "strip", z.ZodTypeAny, {
|
|
165
|
-
timestamp: number;
|
|
166
191
|
created_at: number;
|
|
167
192
|
updated_at: number;
|
|
193
|
+
timestamp: number;
|
|
168
194
|
platform: "telegram" | "facebook" | "instagram" | "tiktok" | "website" | "document" | "other";
|
|
169
195
|
source_id: string | number;
|
|
170
196
|
source_public_id: string | number;
|
|
@@ -193,9 +219,9 @@ export declare const zodDataSchema: z.ZodObject<{
|
|
|
193
219
|
author_id?: string | undefined;
|
|
194
220
|
pipeline_name?: string | undefined;
|
|
195
221
|
}, {
|
|
196
|
-
timestamp: number;
|
|
197
222
|
created_at: number;
|
|
198
223
|
updated_at: number;
|
|
224
|
+
timestamp: number;
|
|
199
225
|
platform: "telegram" | "facebook" | "instagram" | "tiktok" | "website" | "document" | "other";
|
|
200
226
|
source_id: string | number;
|
|
201
227
|
source_public_id: string | number;
|
|
@@ -293,9 +319,9 @@ export declare const zodQuerySchema: z.ZodObject<{
|
|
|
293
319
|
end: number | Date;
|
|
294
320
|
};
|
|
295
321
|
_id?: string | undefined;
|
|
296
|
-
timestamp?: number | undefined;
|
|
297
322
|
title?: string | undefined;
|
|
298
323
|
geos?: string[] | undefined;
|
|
324
|
+
timestamp?: number | undefined;
|
|
299
325
|
query?: string | undefined;
|
|
300
326
|
sources?: string[] | undefined;
|
|
301
327
|
geos_ids?: string[] | undefined;
|
|
@@ -313,9 +339,9 @@ export declare const zodQuerySchema: z.ZodObject<{
|
|
|
313
339
|
end: number | Date;
|
|
314
340
|
};
|
|
315
341
|
_id?: string | undefined;
|
|
316
|
-
timestamp?: number | undefined;
|
|
317
342
|
title?: string | undefined;
|
|
318
343
|
geos?: string[] | undefined;
|
|
344
|
+
timestamp?: number | undefined;
|
|
319
345
|
query?: string | undefined;
|
|
320
346
|
sources?: string[] | undefined;
|
|
321
347
|
geos_ids?: string[] | undefined;
|
|
@@ -438,8 +464,8 @@ export declare const zodConversationSchema: z.ZodObject<{
|
|
|
438
464
|
}, {
|
|
439
465
|
user_id: string;
|
|
440
466
|
_id?: string | undefined;
|
|
441
|
-
status?: "inactive" | "active" | undefined;
|
|
442
467
|
title?: string | undefined;
|
|
468
|
+
status?: "inactive" | "active" | undefined;
|
|
443
469
|
created_at?: number | Date | undefined;
|
|
444
470
|
updated_at?: number | Date | undefined;
|
|
445
471
|
thread_id?: string | undefined;
|
|
@@ -500,9 +526,9 @@ export declare const zodJobSchema: z.ZodObject<{
|
|
|
500
526
|
end: number | Date;
|
|
501
527
|
};
|
|
502
528
|
_id?: string | undefined;
|
|
503
|
-
timestamp?: number | undefined;
|
|
504
529
|
title?: string | undefined;
|
|
505
530
|
geos?: string[] | undefined;
|
|
531
|
+
timestamp?: number | undefined;
|
|
506
532
|
query?: string | undefined;
|
|
507
533
|
sources?: string[] | undefined;
|
|
508
534
|
geos_ids?: string[] | undefined;
|
|
@@ -520,9 +546,9 @@ export declare const zodJobSchema: z.ZodObject<{
|
|
|
520
546
|
end: number | Date;
|
|
521
547
|
};
|
|
522
548
|
_id?: string | undefined;
|
|
523
|
-
timestamp?: number | undefined;
|
|
524
549
|
title?: string | undefined;
|
|
525
550
|
geos?: string[] | undefined;
|
|
551
|
+
timestamp?: number | undefined;
|
|
526
552
|
query?: string | undefined;
|
|
527
553
|
sources?: string[] | undefined;
|
|
528
554
|
geos_ids?: string[] | undefined;
|
|
@@ -548,9 +574,9 @@ export declare const zodJobSchema: z.ZodObject<{
|
|
|
548
574
|
end: number | Date;
|
|
549
575
|
};
|
|
550
576
|
_id?: string | undefined;
|
|
551
|
-
timestamp?: number | undefined;
|
|
552
577
|
title?: string | undefined;
|
|
553
578
|
geos?: string[] | undefined;
|
|
579
|
+
timestamp?: number | undefined;
|
|
554
580
|
query?: string | undefined;
|
|
555
581
|
sources?: string[] | undefined;
|
|
556
582
|
geos_ids?: string[] | undefined;
|
|
@@ -582,9 +608,9 @@ export declare const zodJobSchema: z.ZodObject<{
|
|
|
582
608
|
end: number | Date;
|
|
583
609
|
};
|
|
584
610
|
_id?: string | undefined;
|
|
585
|
-
timestamp?: number | undefined;
|
|
586
611
|
title?: string | undefined;
|
|
587
612
|
geos?: string[] | undefined;
|
|
613
|
+
timestamp?: number | undefined;
|
|
588
614
|
query?: string | undefined;
|
|
589
615
|
sources?: string[] | undefined;
|
|
590
616
|
geos_ids?: string[] | undefined;
|
package/dist/types.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.zodApiKeySchema = exports.zodCronScheduleResponseSchema = exports.zodJobSchema = exports.zodConversationSchema = exports.zodUserSettingsSchema = exports.zodInstructionsSchema = exports.zodQuerySchema = exports.zodAbsoluteTimeRangeSchema = exports.zodRelativeTimeRangeSchema = exports.relativeTimeRangeList = exports.zodDataSchema = exports.zodSourceSchema = exports.zodGeoSelectionSchema = exports.zodGeoSchema = exports.generalStatusList = exports.statusList = exports.platformsList = void 0;
|
|
3
|
+
exports.zodApiKeySchema = exports.zodCronScheduleResponseSchema = exports.zodJobSchema = exports.zodConversationSchema = exports.zodUserSettingsSchema = exports.zodInstructionsSchema = exports.zodQuerySchema = exports.zodAbsoluteTimeRangeSchema = exports.zodRelativeTimeRangeSchema = exports.relativeTimeRangeList = exports.zodDataSchema = exports.zodSourceSchema = exports.zodGeoSelectionSchema = exports.zodGeoSchema = exports.geoSelectionRegionsList = exports.generalStatusList = exports.statusList = exports.platformsList = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.platformsList = [
|
|
6
6
|
'telegram',
|
|
@@ -19,6 +19,28 @@ exports.statusList = [
|
|
|
19
19
|
'in_review', // sources that are under review
|
|
20
20
|
];
|
|
21
21
|
exports.generalStatusList = ['active', 'inactive'];
|
|
22
|
+
exports.geoSelectionRegionsList = {
|
|
23
|
+
iran: {
|
|
24
|
+
title: 'Iran',
|
|
25
|
+
index: 'iran',
|
|
26
|
+
},
|
|
27
|
+
gaza: {
|
|
28
|
+
title: 'Gaza',
|
|
29
|
+
index: 'gaza',
|
|
30
|
+
},
|
|
31
|
+
west_bank: {
|
|
32
|
+
title: 'West Bank',
|
|
33
|
+
index: 'west_bank',
|
|
34
|
+
},
|
|
35
|
+
us_mexico_border: {
|
|
36
|
+
title: 'US-Mexico Border',
|
|
37
|
+
index: 'us_mexico_border',
|
|
38
|
+
},
|
|
39
|
+
lebanon: {
|
|
40
|
+
title: 'Lebanon',
|
|
41
|
+
index: 'lebanon',
|
|
42
|
+
},
|
|
43
|
+
};
|
|
22
44
|
exports.zodGeoSchema = zod_1.z.object({
|
|
23
45
|
_id: zod_1.z.string().optional(),
|
|
24
46
|
geo_text: zod_1.z.string().optional(),
|
package/package.json
CHANGED
package/types.ts
CHANGED
|
@@ -20,6 +20,34 @@ export const statusList = [
|
|
|
20
20
|
|
|
21
21
|
export const generalStatusList = ['active', 'inactive'] as const;
|
|
22
22
|
|
|
23
|
+
export const geoSelectionRegionsList = {
|
|
24
|
+
iran: {
|
|
25
|
+
title: 'Iran',
|
|
26
|
+
index: 'iran',
|
|
27
|
+
},
|
|
28
|
+
gaza: {
|
|
29
|
+
title: 'Gaza',
|
|
30
|
+
index: 'gaza',
|
|
31
|
+
},
|
|
32
|
+
west_bank: {
|
|
33
|
+
title: 'West Bank',
|
|
34
|
+
index: 'west_bank',
|
|
35
|
+
},
|
|
36
|
+
us_mexico_border: {
|
|
37
|
+
title: 'US-Mexico Border',
|
|
38
|
+
index: 'us_mexico_border',
|
|
39
|
+
},
|
|
40
|
+
lebanon: {
|
|
41
|
+
title: 'Lebanon',
|
|
42
|
+
index: 'lebanon',
|
|
43
|
+
},
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export type GeoSelectionRegionsType = keyof typeof geoSelectionRegionsList;
|
|
47
|
+
|
|
48
|
+
export type GeoSelectionByRegion = {
|
|
49
|
+
[region in GeoSelectionRegionsType]: GeoSelectionType[];
|
|
50
|
+
};
|
|
23
51
|
|
|
24
52
|
export const zodGeoSchema = z.object({
|
|
25
53
|
_id: z.string().optional(),
|