telegram-jobs-contract 1.0.12 → 1.0.14

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.
@@ -8,109 +8,75 @@ export declare const channelsContract: {
8
8
  200: z.ZodObject<{
9
9
  success: z.ZodLiteral<true>;
10
10
  message: z.ZodString;
11
- data: z.ZodObject<{
12
- channels: z.ZodArray<z.ZodObject<{
13
- id: z.ZodString;
14
- username: z.ZodString;
15
- title: z.ZodString;
16
- description: z.ZodOptional<z.ZodString>;
17
- category: z.ZodOptional<z.ZodString>;
18
- memberCount: z.ZodOptional<z.ZodString>;
19
- isActive: z.ZodBoolean;
20
- isRecommended: z.ZodBoolean;
21
- lastScrapedAt: z.ZodOptional<z.ZodString>;
22
- createdAt: z.ZodString;
23
- updatedAt: z.ZodOptional<z.ZodString>;
24
- }, "strip", z.ZodTypeAny, {
25
- id: string;
26
- createdAt: string;
27
- username: string;
28
- title: string;
29
- isActive: boolean;
30
- isRecommended: boolean;
31
- description?: string | undefined;
32
- updatedAt?: string | undefined;
33
- category?: string | undefined;
34
- memberCount?: string | undefined;
35
- lastScrapedAt?: string | undefined;
36
- }, {
37
- id: string;
38
- createdAt: string;
39
- username: string;
40
- title: string;
41
- isActive: boolean;
42
- isRecommended: boolean;
43
- description?: string | undefined;
44
- updatedAt?: string | undefined;
45
- category?: string | undefined;
46
- memberCount?: string | undefined;
47
- lastScrapedAt?: string | undefined;
48
- }>, "many">;
11
+ data: z.ZodArray<z.ZodObject<{
12
+ id: z.ZodString;
13
+ username: z.ZodString;
14
+ title: z.ZodString;
15
+ description: z.ZodOptional<z.ZodString>;
16
+ category: z.ZodOptional<z.ZodString>;
17
+ memberCount: z.ZodOptional<z.ZodString>;
18
+ isActive: z.ZodBoolean;
19
+ isRecommended: z.ZodBoolean;
20
+ lastScrapedAt: z.ZodOptional<z.ZodString>;
21
+ createdAt: z.ZodString;
22
+ updatedAt: z.ZodOptional<z.ZodString>;
49
23
  }, "strip", z.ZodTypeAny, {
50
- channels: {
51
- id: string;
52
- createdAt: string;
53
- username: string;
54
- title: string;
55
- isActive: boolean;
56
- isRecommended: boolean;
57
- description?: string | undefined;
58
- updatedAt?: string | undefined;
59
- category?: string | undefined;
60
- memberCount?: string | undefined;
61
- lastScrapedAt?: string | undefined;
62
- }[];
24
+ id: string;
25
+ createdAt: string;
26
+ username: string;
27
+ title: string;
28
+ isActive: boolean;
29
+ isRecommended: boolean;
30
+ description?: string | undefined;
31
+ updatedAt?: string | undefined;
32
+ category?: string | undefined;
33
+ memberCount?: string | undefined;
34
+ lastScrapedAt?: string | undefined;
63
35
  }, {
64
- channels: {
65
- id: string;
66
- createdAt: string;
67
- username: string;
68
- title: string;
69
- isActive: boolean;
70
- isRecommended: boolean;
71
- description?: string | undefined;
72
- updatedAt?: string | undefined;
73
- category?: string | undefined;
74
- memberCount?: string | undefined;
75
- lastScrapedAt?: string | undefined;
76
- }[];
77
- }>;
36
+ id: string;
37
+ createdAt: string;
38
+ username: string;
39
+ title: string;
40
+ isActive: boolean;
41
+ isRecommended: boolean;
42
+ description?: string | undefined;
43
+ updatedAt?: string | undefined;
44
+ category?: string | undefined;
45
+ memberCount?: string | undefined;
46
+ lastScrapedAt?: string | undefined;
47
+ }>, "many">;
78
48
  }, "strip", z.ZodTypeAny, {
79
49
  message: string;
80
50
  success: true;
81
51
  data: {
82
- channels: {
83
- id: string;
84
- createdAt: string;
85
- username: string;
86
- title: string;
87
- isActive: boolean;
88
- isRecommended: boolean;
89
- description?: string | undefined;
90
- updatedAt?: string | undefined;
91
- category?: string | undefined;
92
- memberCount?: string | undefined;
93
- lastScrapedAt?: string | undefined;
94
- }[];
95
- };
52
+ id: string;
53
+ createdAt: string;
54
+ username: string;
55
+ title: string;
56
+ isActive: boolean;
57
+ isRecommended: boolean;
58
+ description?: string | undefined;
59
+ updatedAt?: string | undefined;
60
+ category?: string | undefined;
61
+ memberCount?: string | undefined;
62
+ lastScrapedAt?: string | undefined;
63
+ }[];
96
64
  }, {
97
65
  message: string;
98
66
  success: true;
99
67
  data: {
100
- channels: {
101
- id: string;
102
- createdAt: string;
103
- username: string;
104
- title: string;
105
- isActive: boolean;
106
- isRecommended: boolean;
107
- description?: string | undefined;
108
- updatedAt?: string | undefined;
109
- category?: string | undefined;
110
- memberCount?: string | undefined;
111
- lastScrapedAt?: string | undefined;
112
- }[];
113
- };
68
+ id: string;
69
+ createdAt: string;
70
+ username: string;
71
+ title: string;
72
+ isActive: boolean;
73
+ isRecommended: boolean;
74
+ description?: string | undefined;
75
+ updatedAt?: string | undefined;
76
+ category?: string | undefined;
77
+ memberCount?: string | undefined;
78
+ lastScrapedAt?: string | undefined;
79
+ }[];
114
80
  }>;
115
81
  401: z.ZodObject<{
116
82
  success: z.ZodLiteral<false>;
@@ -148,109 +114,75 @@ export declare const channelsContract: {
148
114
  200: z.ZodObject<{
149
115
  success: z.ZodLiteral<true>;
150
116
  message: z.ZodString;
151
- data: z.ZodObject<{
152
- channels: z.ZodArray<z.ZodObject<{
153
- id: z.ZodString;
154
- username: z.ZodString;
155
- title: z.ZodString;
156
- description: z.ZodOptional<z.ZodString>;
157
- category: z.ZodOptional<z.ZodString>;
158
- memberCount: z.ZodOptional<z.ZodString>;
159
- isActive: z.ZodBoolean;
160
- isRecommended: z.ZodBoolean;
161
- lastScrapedAt: z.ZodOptional<z.ZodString>;
162
- createdAt: z.ZodString;
163
- updatedAt: z.ZodOptional<z.ZodString>;
164
- }, "strip", z.ZodTypeAny, {
165
- id: string;
166
- createdAt: string;
167
- username: string;
168
- title: string;
169
- isActive: boolean;
170
- isRecommended: boolean;
171
- description?: string | undefined;
172
- updatedAt?: string | undefined;
173
- category?: string | undefined;
174
- memberCount?: string | undefined;
175
- lastScrapedAt?: string | undefined;
176
- }, {
177
- id: string;
178
- createdAt: string;
179
- username: string;
180
- title: string;
181
- isActive: boolean;
182
- isRecommended: boolean;
183
- description?: string | undefined;
184
- updatedAt?: string | undefined;
185
- category?: string | undefined;
186
- memberCount?: string | undefined;
187
- lastScrapedAt?: string | undefined;
188
- }>, "many">;
117
+ data: z.ZodArray<z.ZodObject<{
118
+ id: z.ZodString;
119
+ username: z.ZodString;
120
+ title: z.ZodString;
121
+ description: z.ZodOptional<z.ZodString>;
122
+ category: z.ZodOptional<z.ZodString>;
123
+ memberCount: z.ZodOptional<z.ZodString>;
124
+ isActive: z.ZodBoolean;
125
+ isRecommended: z.ZodBoolean;
126
+ lastScrapedAt: z.ZodOptional<z.ZodString>;
127
+ createdAt: z.ZodString;
128
+ updatedAt: z.ZodOptional<z.ZodString>;
189
129
  }, "strip", z.ZodTypeAny, {
190
- channels: {
191
- id: string;
192
- createdAt: string;
193
- username: string;
194
- title: string;
195
- isActive: boolean;
196
- isRecommended: boolean;
197
- description?: string | undefined;
198
- updatedAt?: string | undefined;
199
- category?: string | undefined;
200
- memberCount?: string | undefined;
201
- lastScrapedAt?: string | undefined;
202
- }[];
130
+ id: string;
131
+ createdAt: string;
132
+ username: string;
133
+ title: string;
134
+ isActive: boolean;
135
+ isRecommended: boolean;
136
+ description?: string | undefined;
137
+ updatedAt?: string | undefined;
138
+ category?: string | undefined;
139
+ memberCount?: string | undefined;
140
+ lastScrapedAt?: string | undefined;
203
141
  }, {
204
- channels: {
205
- id: string;
206
- createdAt: string;
207
- username: string;
208
- title: string;
209
- isActive: boolean;
210
- isRecommended: boolean;
211
- description?: string | undefined;
212
- updatedAt?: string | undefined;
213
- category?: string | undefined;
214
- memberCount?: string | undefined;
215
- lastScrapedAt?: string | undefined;
216
- }[];
217
- }>;
142
+ id: string;
143
+ createdAt: string;
144
+ username: string;
145
+ title: string;
146
+ isActive: boolean;
147
+ isRecommended: boolean;
148
+ description?: string | undefined;
149
+ updatedAt?: string | undefined;
150
+ category?: string | undefined;
151
+ memberCount?: string | undefined;
152
+ lastScrapedAt?: string | undefined;
153
+ }>, "many">;
218
154
  }, "strip", z.ZodTypeAny, {
219
155
  message: string;
220
156
  success: true;
221
157
  data: {
222
- channels: {
223
- id: string;
224
- createdAt: string;
225
- username: string;
226
- title: string;
227
- isActive: boolean;
228
- isRecommended: boolean;
229
- description?: string | undefined;
230
- updatedAt?: string | undefined;
231
- category?: string | undefined;
232
- memberCount?: string | undefined;
233
- lastScrapedAt?: string | undefined;
234
- }[];
235
- };
158
+ id: string;
159
+ createdAt: string;
160
+ username: string;
161
+ title: string;
162
+ isActive: boolean;
163
+ isRecommended: boolean;
164
+ description?: string | undefined;
165
+ updatedAt?: string | undefined;
166
+ category?: string | undefined;
167
+ memberCount?: string | undefined;
168
+ lastScrapedAt?: string | undefined;
169
+ }[];
236
170
  }, {
237
171
  message: string;
238
172
  success: true;
239
173
  data: {
240
- channels: {
241
- id: string;
242
- createdAt: string;
243
- username: string;
244
- title: string;
245
- isActive: boolean;
246
- isRecommended: boolean;
247
- description?: string | undefined;
248
- updatedAt?: string | undefined;
249
- category?: string | undefined;
250
- memberCount?: string | undefined;
251
- lastScrapedAt?: string | undefined;
252
- }[];
253
- };
174
+ id: string;
175
+ createdAt: string;
176
+ username: string;
177
+ title: string;
178
+ isActive: boolean;
179
+ isRecommended: boolean;
180
+ description?: string | undefined;
181
+ updatedAt?: string | undefined;
182
+ category?: string | undefined;
183
+ memberCount?: string | undefined;
184
+ lastScrapedAt?: string | undefined;
185
+ }[];
254
186
  }>;
255
187
  401: z.ZodObject<{
256
188
  success: z.ZodLiteral<false>;
@@ -422,6 +354,16 @@ export declare const channelsContract: {
422
354
  };
423
355
  };
424
356
  exploreChannels: {
357
+ query: z.ZodObject<{
358
+ searchQuery: z.ZodOptional<z.ZodString>;
359
+ categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
360
+ }, "strip", z.ZodTypeAny, {
361
+ categories?: string[] | undefined;
362
+ searchQuery?: string | undefined;
363
+ }, {
364
+ categories?: string[] | undefined;
365
+ searchQuery?: string | undefined;
366
+ }>;
425
367
  summary: "Get explore channels modal data";
426
368
  method: "GET";
427
369
  path: "/api/channels/explore";
@@ -430,133 +372,70 @@ export declare const channelsContract: {
430
372
  success: z.ZodLiteral<true>;
431
373
  message: z.ZodString;
432
374
  data: z.ZodObject<{
433
- categories: z.ZodArray<z.ZodObject<{
434
- name: z.ZodString;
435
- count: z.ZodNumber;
436
- }, "strip", z.ZodTypeAny, {
437
- name: string;
438
- count: number;
439
- }, {
440
- name: string;
441
- count: number;
442
- }>, "many">;
443
- channelsByCategory: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
444
- id: z.ZodString;
375
+ channels: z.ZodArray<z.ZodObject<{
445
376
  username: z.ZodString;
446
377
  title: z.ZodString;
447
378
  description: z.ZodOptional<z.ZodString>;
448
- category: z.ZodOptional<z.ZodString>;
449
- memberCount: z.ZodOptional<z.ZodString>;
450
- isActive: z.ZodBoolean;
451
- isRecommended: z.ZodBoolean;
452
- lastScrapedAt: z.ZodOptional<z.ZodString>;
453
- createdAt: z.ZodString;
454
- updatedAt: z.ZodOptional<z.ZodString>;
379
+ memberCount: z.ZodOptional<z.ZodNumber>;
380
+ isJoined: z.ZodBoolean;
455
381
  }, "strip", z.ZodTypeAny, {
456
- id: string;
457
- createdAt: string;
458
382
  username: string;
459
383
  title: string;
460
- isActive: boolean;
461
- isRecommended: boolean;
384
+ isJoined: boolean;
462
385
  description?: string | undefined;
463
- updatedAt?: string | undefined;
464
- category?: string | undefined;
465
- memberCount?: string | undefined;
466
- lastScrapedAt?: string | undefined;
386
+ memberCount?: number | undefined;
467
387
  }, {
468
- id: string;
469
- createdAt: string;
470
388
  username: string;
471
389
  title: string;
472
- isActive: boolean;
473
- isRecommended: boolean;
390
+ isJoined: boolean;
474
391
  description?: string | undefined;
475
- updatedAt?: string | undefined;
476
- category?: string | undefined;
477
- memberCount?: string | undefined;
478
- lastScrapedAt?: string | undefined;
479
- }>, "many">>;
392
+ memberCount?: number | undefined;
393
+ }>, "many">;
394
+ missedJobsCount: z.ZodNumber;
480
395
  }, "strip", z.ZodTypeAny, {
481
- categories: {
482
- name: string;
483
- count: number;
484
- }[];
485
- channelsByCategory: Record<string, {
486
- id: string;
487
- createdAt: string;
396
+ channels: {
488
397
  username: string;
489
398
  title: string;
490
- isActive: boolean;
491
- isRecommended: boolean;
399
+ isJoined: boolean;
492
400
  description?: string | undefined;
493
- updatedAt?: string | undefined;
494
- category?: string | undefined;
495
- memberCount?: string | undefined;
496
- lastScrapedAt?: string | undefined;
497
- }[]>;
498
- }, {
499
- categories: {
500
- name: string;
501
- count: number;
401
+ memberCount?: number | undefined;
502
402
  }[];
503
- channelsByCategory: Record<string, {
504
- id: string;
505
- createdAt: string;
403
+ missedJobsCount: number;
404
+ }, {
405
+ channels: {
506
406
  username: string;
507
407
  title: string;
508
- isActive: boolean;
509
- isRecommended: boolean;
408
+ isJoined: boolean;
510
409
  description?: string | undefined;
511
- updatedAt?: string | undefined;
512
- category?: string | undefined;
513
- memberCount?: string | undefined;
514
- lastScrapedAt?: string | undefined;
515
- }[]>;
410
+ memberCount?: number | undefined;
411
+ }[];
412
+ missedJobsCount: number;
516
413
  }>;
517
414
  }, "strip", z.ZodTypeAny, {
518
415
  message: string;
519
416
  success: true;
520
417
  data: {
521
- categories: {
522
- name: string;
523
- count: number;
524
- }[];
525
- channelsByCategory: Record<string, {
526
- id: string;
527
- createdAt: string;
418
+ channels: {
528
419
  username: string;
529
420
  title: string;
530
- isActive: boolean;
531
- isRecommended: boolean;
421
+ isJoined: boolean;
532
422
  description?: string | undefined;
533
- updatedAt?: string | undefined;
534
- category?: string | undefined;
535
- memberCount?: string | undefined;
536
- lastScrapedAt?: string | undefined;
537
- }[]>;
423
+ memberCount?: number | undefined;
424
+ }[];
425
+ missedJobsCount: number;
538
426
  };
539
427
  }, {
540
428
  message: string;
541
429
  success: true;
542
430
  data: {
543
- categories: {
544
- name: string;
545
- count: number;
546
- }[];
547
- channelsByCategory: Record<string, {
548
- id: string;
549
- createdAt: string;
431
+ channels: {
550
432
  username: string;
551
433
  title: string;
552
- isActive: boolean;
553
- isRecommended: boolean;
434
+ isJoined: boolean;
554
435
  description?: string | undefined;
555
- updatedAt?: string | undefined;
556
- category?: string | undefined;
557
- memberCount?: string | undefined;
558
- lastScrapedAt?: string | undefined;
559
- }[]>;
436
+ memberCount?: number | undefined;
437
+ }[];
438
+ missedJobsCount: number;
560
439
  };
561
440
  }>;
562
441
  401: z.ZodObject<{
@@ -704,11 +583,11 @@ export declare const channelsContract: {
704
583
  summary: "Subscribe to channels (replaces existing)";
705
584
  method: "POST";
706
585
  body: z.ZodObject<{
707
- channelUsernames: z.ZodArray<z.ZodString, "many">;
586
+ channels: z.ZodArray<z.ZodString, "many">;
708
587
  }, "strip", z.ZodTypeAny, {
709
- channelUsernames: string[];
588
+ channels: string[];
710
589
  }, {
711
- channelUsernames: string[];
590
+ channels: string[];
712
591
  }>;
713
592
  path: "/api/channels/subscribe";
714
593
  responses: {
@@ -716,28 +595,28 @@ export declare const channelsContract: {
716
595
  success: z.ZodLiteral<true>;
717
596
  message: z.ZodString;
718
597
  data: z.ZodObject<{
719
- subscribedChannels: z.ZodArray<z.ZodString, "many">;
598
+ success: z.ZodBoolean;
720
599
  message: z.ZodString;
721
600
  }, "strip", z.ZodTypeAny, {
722
601
  message: string;
723
- subscribedChannels: string[];
602
+ success: boolean;
724
603
  }, {
725
604
  message: string;
726
- subscribedChannels: string[];
605
+ success: boolean;
727
606
  }>;
728
607
  }, "strip", z.ZodTypeAny, {
729
608
  message: string;
730
609
  success: true;
731
610
  data: {
732
611
  message: string;
733
- subscribedChannels: string[];
612
+ success: boolean;
734
613
  };
735
614
  }, {
736
615
  message: string;
737
616
  success: true;
738
617
  data: {
739
618
  message: string;
740
- subscribedChannels: string[];
619
+ success: boolean;
741
620
  };
742
621
  }>;
743
622
  400: z.ZodObject<{
@@ -785,11 +664,11 @@ export declare const channelsContract: {
785
664
  summary: "Add channels to subscription";
786
665
  method: "POST";
787
666
  body: z.ZodObject<{
788
- channelUsernames: z.ZodArray<z.ZodString, "many">;
667
+ channels: z.ZodArray<z.ZodString, "many">;
789
668
  }, "strip", z.ZodTypeAny, {
790
- channelUsernames: string[];
669
+ channels: string[];
791
670
  }, {
792
- channelUsernames: string[];
671
+ channels: string[];
793
672
  }>;
794
673
  path: "/api/channels/add";
795
674
  responses: {
@@ -797,28 +676,28 @@ export declare const channelsContract: {
797
676
  success: z.ZodLiteral<true>;
798
677
  message: z.ZodString;
799
678
  data: z.ZodObject<{
800
- subscribedChannels: z.ZodArray<z.ZodString, "many">;
679
+ success: z.ZodBoolean;
801
680
  message: z.ZodString;
802
681
  }, "strip", z.ZodTypeAny, {
803
682
  message: string;
804
- subscribedChannels: string[];
683
+ success: boolean;
805
684
  }, {
806
685
  message: string;
807
- subscribedChannels: string[];
686
+ success: boolean;
808
687
  }>;
809
688
  }, "strip", z.ZodTypeAny, {
810
689
  message: string;
811
690
  success: true;
812
691
  data: {
813
692
  message: string;
814
- subscribedChannels: string[];
693
+ success: boolean;
815
694
  };
816
695
  }, {
817
696
  message: string;
818
697
  success: true;
819
698
  data: {
820
699
  message: string;
821
- subscribedChannels: string[];
700
+ success: boolean;
822
701
  };
823
702
  }>;
824
703
  400: z.ZodObject<{
@@ -866,11 +745,11 @@ export declare const channelsContract: {
866
745
  summary: "Unsubscribe from channel";
867
746
  method: "POST";
868
747
  body: z.ZodObject<{
869
- channelUsername: z.ZodString;
748
+ channel: z.ZodString;
870
749
  }, "strip", z.ZodTypeAny, {
871
- channelUsername: string;
750
+ channel: string;
872
751
  }, {
873
- channelUsername: string;
752
+ channel: string;
874
753
  }>;
875
754
  path: "/api/channels/unsubscribe";
876
755
  responses: {
@@ -878,28 +757,33 @@ export declare const channelsContract: {
878
757
  success: z.ZodLiteral<true>;
879
758
  message: z.ZodString;
880
759
  data: z.ZodObject<{
881
- subscribedChannels: z.ZodArray<z.ZodString, "many">;
882
- message: z.ZodString;
760
+ success: z.ZodBoolean;
761
+ totalChannels: z.ZodNumber;
762
+ swapsRemaining: z.ZodOptional<z.ZodNumber>;
883
763
  }, "strip", z.ZodTypeAny, {
884
- message: string;
885
- subscribedChannels: string[];
764
+ success: boolean;
765
+ totalChannels: number;
766
+ swapsRemaining?: number | undefined;
886
767
  }, {
887
- message: string;
888
- subscribedChannels: string[];
768
+ success: boolean;
769
+ totalChannels: number;
770
+ swapsRemaining?: number | undefined;
889
771
  }>;
890
772
  }, "strip", z.ZodTypeAny, {
891
773
  message: string;
892
774
  success: true;
893
775
  data: {
894
- message: string;
895
- subscribedChannels: string[];
776
+ success: boolean;
777
+ totalChannels: number;
778
+ swapsRemaining?: number | undefined;
896
779
  };
897
780
  }, {
898
781
  message: string;
899
782
  success: true;
900
783
  data: {
901
- message: string;
902
- subscribedChannels: string[];
784
+ success: boolean;
785
+ totalChannels: number;
786
+ swapsRemaining?: number | undefined;
903
787
  };
904
788
  }>;
905
789
  400: z.ZodObject<{