telegram-jobs-contract 1.0.17 → 1.0.18

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.
@@ -19,8 +19,8 @@ export declare const bundlesContract: {
19
19
  createdAt: z.ZodString;
20
20
  updatedAt: z.ZodOptional<z.ZodString>;
21
21
  }, "strip", z.ZodTypeAny, {
22
- id: string;
23
22
  createdAt: string;
23
+ id: string;
24
24
  isActive: boolean;
25
25
  name: string;
26
26
  channels: string[];
@@ -29,8 +29,8 @@ export declare const bundlesContract: {
29
29
  updatedAt?: string | undefined;
30
30
  category?: string | undefined;
31
31
  }, {
32
- id: string;
33
32
  createdAt: string;
33
+ id: string;
34
34
  isActive: boolean;
35
35
  name: string;
36
36
  channels: string[];
@@ -43,8 +43,8 @@ export declare const bundlesContract: {
43
43
  message: string;
44
44
  success: true;
45
45
  data: {
46
- id: string;
47
46
  createdAt: string;
47
+ id: string;
48
48
  isActive: boolean;
49
49
  name: string;
50
50
  channels: string[];
@@ -57,8 +57,8 @@ export declare const bundlesContract: {
57
57
  message: string;
58
58
  success: true;
59
59
  data: {
60
- id: string;
61
60
  createdAt: string;
61
+ id: string;
62
62
  isActive: boolean;
63
63
  name: string;
64
64
  channels: string[];
@@ -102,8 +102,8 @@ export declare const bundlesContract: {
102
102
  createdAt: z.ZodString;
103
103
  updatedAt: z.ZodOptional<z.ZodString>;
104
104
  }, "strip", z.ZodTypeAny, {
105
- id: string;
106
105
  createdAt: string;
106
+ id: string;
107
107
  isActive: boolean;
108
108
  name: string;
109
109
  channels: string[];
@@ -112,8 +112,8 @@ export declare const bundlesContract: {
112
112
  updatedAt?: string | undefined;
113
113
  category?: string | undefined;
114
114
  }, {
115
- id: string;
116
115
  createdAt: string;
116
+ id: string;
117
117
  isActive: boolean;
118
118
  name: string;
119
119
  channels: string[];
@@ -126,8 +126,8 @@ export declare const bundlesContract: {
126
126
  message: string;
127
127
  success: true;
128
128
  data: {
129
- id: string;
130
129
  createdAt: string;
130
+ id: string;
131
131
  isActive: boolean;
132
132
  name: string;
133
133
  channels: string[];
@@ -140,8 +140,8 @@ export declare const bundlesContract: {
140
140
  message: string;
141
141
  success: true;
142
142
  data: {
143
- id: string;
144
143
  createdAt: string;
144
+ id: string;
145
145
  isActive: boolean;
146
146
  name: string;
147
147
  channels: string[];
@@ -101,7 +101,7 @@ export declare const jobsContract: {
101
101
  message: z.ZodString;
102
102
  data: z.ZodObject<{
103
103
  jobs: z.ZodArray<z.ZodObject<{
104
- id: z.ZodString;
104
+ _id: z.ZodString;
105
105
  telegramMessageId: z.ZodString;
106
106
  channelId: z.ZodString;
107
107
  channelUsername: z.ZodOptional<z.ZodString>;
@@ -194,7 +194,7 @@ export declare const jobsContract: {
194
194
  updatedAt: z.ZodOptional<z.ZodString>;
195
195
  isVisited: z.ZodOptional<z.ZodBoolean>;
196
196
  }, "strip", z.ZodTypeAny, {
197
- id: string;
197
+ _id: string;
198
198
  telegramMessageId: string;
199
199
  channelId: string;
200
200
  rawText: string;
@@ -231,7 +231,7 @@ export declare const jobsContract: {
231
231
  updatedAt?: string | undefined;
232
232
  isVisited?: boolean | undefined;
233
233
  }, {
234
- id: string;
234
+ _id: string;
235
235
  telegramMessageId: string;
236
236
  channelId: string;
237
237
  rawText: string;
@@ -273,7 +273,7 @@ export declare const jobsContract: {
273
273
  offset: z.ZodNumber;
274
274
  }, "strip", z.ZodTypeAny, {
275
275
  jobs: {
276
- id: string;
276
+ _id: string;
277
277
  telegramMessageId: string;
278
278
  channelId: string;
279
279
  rawText: string;
@@ -315,7 +315,7 @@ export declare const jobsContract: {
315
315
  offset: number;
316
316
  }, {
317
317
  jobs: {
318
- id: string;
318
+ _id: string;
319
319
  telegramMessageId: string;
320
320
  channelId: string;
321
321
  rawText: string;
@@ -361,7 +361,7 @@ export declare const jobsContract: {
361
361
  success: true;
362
362
  data: {
363
363
  jobs: {
364
- id: string;
364
+ _id: string;
365
365
  telegramMessageId: string;
366
366
  channelId: string;
367
367
  rawText: string;
@@ -407,7 +407,7 @@ export declare const jobsContract: {
407
407
  success: true;
408
408
  data: {
409
409
  jobs: {
410
- id: string;
410
+ _id: string;
411
411
  telegramMessageId: string;
412
412
  channelId: string;
413
413
  rawText: string;
@@ -499,7 +499,7 @@ export declare const jobsContract: {
499
499
  success: z.ZodLiteral<true>;
500
500
  message: z.ZodString;
501
501
  data: z.ZodObject<{
502
- id: z.ZodString;
502
+ _id: z.ZodString;
503
503
  telegramMessageId: z.ZodString;
504
504
  channelId: z.ZodString;
505
505
  channelUsername: z.ZodOptional<z.ZodString>;
@@ -592,7 +592,7 @@ export declare const jobsContract: {
592
592
  updatedAt: z.ZodOptional<z.ZodString>;
593
593
  isVisited: z.ZodOptional<z.ZodBoolean>;
594
594
  }, "strip", z.ZodTypeAny, {
595
- id: string;
595
+ _id: string;
596
596
  telegramMessageId: string;
597
597
  channelId: string;
598
598
  rawText: string;
@@ -629,7 +629,7 @@ export declare const jobsContract: {
629
629
  updatedAt?: string | undefined;
630
630
  isVisited?: boolean | undefined;
631
631
  }, {
632
- id: string;
632
+ _id: string;
633
633
  telegramMessageId: string;
634
634
  channelId: string;
635
635
  rawText: string;
@@ -670,7 +670,7 @@ export declare const jobsContract: {
670
670
  message: string;
671
671
  success: true;
672
672
  data: {
673
- id: string;
673
+ _id: string;
674
674
  telegramMessageId: string;
675
675
  channelId: string;
676
676
  rawText: string;
@@ -711,7 +711,7 @@ export declare const jobsContract: {
711
711
  message: string;
712
712
  success: true;
713
713
  data: {
714
- id: string;
714
+ _id: string;
715
715
  telegramMessageId: string;
716
716
  channelId: string;
717
717
  rawText: string;
package/dist/index.d.ts CHANGED
@@ -109,7 +109,7 @@ export declare const apiContract: {
109
109
  message: z.ZodString;
110
110
  data: z.ZodObject<{
111
111
  jobs: z.ZodArray<z.ZodObject<{
112
- id: z.ZodString;
112
+ _id: z.ZodString;
113
113
  telegramMessageId: z.ZodString;
114
114
  channelId: z.ZodString;
115
115
  channelUsername: z.ZodOptional<z.ZodString>;
@@ -202,7 +202,7 @@ export declare const apiContract: {
202
202
  updatedAt: z.ZodOptional<z.ZodString>;
203
203
  isVisited: z.ZodOptional<z.ZodBoolean>;
204
204
  }, "strip", z.ZodTypeAny, {
205
- id: string;
205
+ _id: string;
206
206
  telegramMessageId: string;
207
207
  channelId: string;
208
208
  rawText: string;
@@ -239,7 +239,7 @@ export declare const apiContract: {
239
239
  updatedAt?: string | undefined;
240
240
  isVisited?: boolean | undefined;
241
241
  }, {
242
- id: string;
242
+ _id: string;
243
243
  telegramMessageId: string;
244
244
  channelId: string;
245
245
  rawText: string;
@@ -281,7 +281,7 @@ export declare const apiContract: {
281
281
  offset: z.ZodNumber;
282
282
  }, "strip", z.ZodTypeAny, {
283
283
  jobs: {
284
- id: string;
284
+ _id: string;
285
285
  telegramMessageId: string;
286
286
  channelId: string;
287
287
  rawText: string;
@@ -323,7 +323,7 @@ export declare const apiContract: {
323
323
  offset: number;
324
324
  }, {
325
325
  jobs: {
326
- id: string;
326
+ _id: string;
327
327
  telegramMessageId: string;
328
328
  channelId: string;
329
329
  rawText: string;
@@ -369,7 +369,7 @@ export declare const apiContract: {
369
369
  success: true;
370
370
  data: {
371
371
  jobs: {
372
- id: string;
372
+ _id: string;
373
373
  telegramMessageId: string;
374
374
  channelId: string;
375
375
  rawText: string;
@@ -415,7 +415,7 @@ export declare const apiContract: {
415
415
  success: true;
416
416
  data: {
417
417
  jobs: {
418
- id: string;
418
+ _id: string;
419
419
  telegramMessageId: string;
420
420
  channelId: string;
421
421
  rawText: string;
@@ -507,7 +507,7 @@ export declare const apiContract: {
507
507
  success: z.ZodLiteral<true>;
508
508
  message: z.ZodString;
509
509
  data: z.ZodObject<{
510
- id: z.ZodString;
510
+ _id: z.ZodString;
511
511
  telegramMessageId: z.ZodString;
512
512
  channelId: z.ZodString;
513
513
  channelUsername: z.ZodOptional<z.ZodString>;
@@ -600,7 +600,7 @@ export declare const apiContract: {
600
600
  updatedAt: z.ZodOptional<z.ZodString>;
601
601
  isVisited: z.ZodOptional<z.ZodBoolean>;
602
602
  }, "strip", z.ZodTypeAny, {
603
- id: string;
603
+ _id: string;
604
604
  telegramMessageId: string;
605
605
  channelId: string;
606
606
  rawText: string;
@@ -637,7 +637,7 @@ export declare const apiContract: {
637
637
  updatedAt?: string | undefined;
638
638
  isVisited?: boolean | undefined;
639
639
  }, {
640
- id: string;
640
+ _id: string;
641
641
  telegramMessageId: string;
642
642
  channelId: string;
643
643
  rawText: string;
@@ -678,7 +678,7 @@ export declare const apiContract: {
678
678
  message: string;
679
679
  success: true;
680
680
  data: {
681
- id: string;
681
+ _id: string;
682
682
  telegramMessageId: string;
683
683
  channelId: string;
684
684
  rawText: string;
@@ -719,7 +719,7 @@ export declare const apiContract: {
719
719
  message: string;
720
720
  success: true;
721
721
  data: {
722
- id: string;
722
+ _id: string;
723
723
  telegramMessageId: string;
724
724
  channelId: string;
725
725
  rawText: string;
@@ -3127,8 +3127,8 @@ export declare const apiContract: {
3127
3127
  createdAt: z.ZodString;
3128
3128
  updatedAt: z.ZodOptional<z.ZodString>;
3129
3129
  }, "strip", z.ZodTypeAny, {
3130
- id: string;
3131
3130
  createdAt: string;
3131
+ id: string;
3132
3132
  isActive: boolean;
3133
3133
  name: string;
3134
3134
  channels: string[];
@@ -3137,8 +3137,8 @@ export declare const apiContract: {
3137
3137
  updatedAt?: string | undefined;
3138
3138
  category?: string | undefined;
3139
3139
  }, {
3140
- id: string;
3141
3140
  createdAt: string;
3141
+ id: string;
3142
3142
  isActive: boolean;
3143
3143
  name: string;
3144
3144
  channels: string[];
@@ -3151,8 +3151,8 @@ export declare const apiContract: {
3151
3151
  message: string;
3152
3152
  success: true;
3153
3153
  data: {
3154
- id: string;
3155
3154
  createdAt: string;
3155
+ id: string;
3156
3156
  isActive: boolean;
3157
3157
  name: string;
3158
3158
  channels: string[];
@@ -3165,8 +3165,8 @@ export declare const apiContract: {
3165
3165
  message: string;
3166
3166
  success: true;
3167
3167
  data: {
3168
- id: string;
3169
3168
  createdAt: string;
3169
+ id: string;
3170
3170
  isActive: boolean;
3171
3171
  name: string;
3172
3172
  channels: string[];
@@ -3210,8 +3210,8 @@ export declare const apiContract: {
3210
3210
  createdAt: z.ZodString;
3211
3211
  updatedAt: z.ZodOptional<z.ZodString>;
3212
3212
  }, "strip", z.ZodTypeAny, {
3213
- id: string;
3214
3213
  createdAt: string;
3214
+ id: string;
3215
3215
  isActive: boolean;
3216
3216
  name: string;
3217
3217
  channels: string[];
@@ -3220,8 +3220,8 @@ export declare const apiContract: {
3220
3220
  updatedAt?: string | undefined;
3221
3221
  category?: string | undefined;
3222
3222
  }, {
3223
- id: string;
3224
3223
  createdAt: string;
3224
+ id: string;
3225
3225
  isActive: boolean;
3226
3226
  name: string;
3227
3227
  channels: string[];
@@ -3234,8 +3234,8 @@ export declare const apiContract: {
3234
3234
  message: string;
3235
3235
  success: true;
3236
3236
  data: {
3237
- id: string;
3238
3237
  createdAt: string;
3238
+ id: string;
3239
3239
  isActive: boolean;
3240
3240
  name: string;
3241
3241
  channels: string[];
@@ -3248,8 +3248,8 @@ export declare const apiContract: {
3248
3248
  message: string;
3249
3249
  success: true;
3250
3250
  data: {
3251
- id: string;
3252
3251
  createdAt: string;
3252
+ id: string;
3253
3253
  isActive: boolean;
3254
3254
  name: string;
3255
3255
  channels: string[];
@@ -10,8 +10,8 @@ export declare const BundleSchema: z.ZodObject<{
10
10
  createdAt: z.ZodString;
11
11
  updatedAt: z.ZodOptional<z.ZodString>;
12
12
  }, "strip", z.ZodTypeAny, {
13
- id: string;
14
13
  createdAt: string;
14
+ id: string;
15
15
  isActive: boolean;
16
16
  name: string;
17
17
  channels: string[];
@@ -20,8 +20,8 @@ export declare const BundleSchema: z.ZodObject<{
20
20
  updatedAt?: string | undefined;
21
21
  category?: string | undefined;
22
22
  }, {
23
- id: string;
24
23
  createdAt: string;
24
+ id: string;
25
25
  isActive: boolean;
26
26
  name: string;
27
27
  channels: string[];
@@ -12,8 +12,8 @@ export declare const ChannelSchema: z.ZodObject<{
12
12
  createdAt: z.ZodString;
13
13
  updatedAt: z.ZodOptional<z.ZodString>;
14
14
  }, "strip", z.ZodTypeAny, {
15
- id: string;
16
15
  createdAt: string;
16
+ id: string;
17
17
  username: string;
18
18
  title: string;
19
19
  isActive: boolean;
@@ -24,8 +24,8 @@ export declare const ChannelSchema: z.ZodObject<{
24
24
  memberCount?: string | undefined;
25
25
  lastScrapedAt?: string | undefined;
26
26
  }, {
27
- id: string;
28
27
  createdAt: string;
28
+ id: string;
29
29
  username: string;
30
30
  title: string;
31
31
  isActive: boolean;
@@ -70,8 +70,8 @@ export declare const ExploreChannelsResponseSchema: z.ZodObject<{
70
70
  createdAt: z.ZodString;
71
71
  updatedAt: z.ZodOptional<z.ZodString>;
72
72
  }, "strip", z.ZodTypeAny, {
73
- id: string;
74
73
  createdAt: string;
74
+ id: string;
75
75
  username: string;
76
76
  title: string;
77
77
  isActive: boolean;
@@ -82,8 +82,8 @@ export declare const ExploreChannelsResponseSchema: z.ZodObject<{
82
82
  memberCount?: string | undefined;
83
83
  lastScrapedAt?: string | undefined;
84
84
  }, {
85
- id: string;
86
85
  createdAt: string;
86
+ id: string;
87
87
  username: string;
88
88
  title: string;
89
89
  isActive: boolean;
@@ -100,8 +100,8 @@ export declare const ExploreChannelsResponseSchema: z.ZodObject<{
100
100
  count: number;
101
101
  }[];
102
102
  channelsByCategory: Record<string, {
103
- id: string;
104
103
  createdAt: string;
104
+ id: string;
105
105
  username: string;
106
106
  title: string;
107
107
  isActive: boolean;
@@ -118,8 +118,8 @@ export declare const ExploreChannelsResponseSchema: z.ZodObject<{
118
118
  count: number;
119
119
  }[];
120
120
  channelsByCategory: Record<string, {
121
- id: string;
122
121
  createdAt: string;
122
+ id: string;
123
123
  username: string;
124
124
  title: string;
125
125
  isActive: boolean;
@@ -96,7 +96,7 @@ export declare const ParsedJobDataSchema: z.ZodObject<{
96
96
  experienceYears?: number | undefined;
97
97
  }>;
98
98
  export declare const JobSchema: z.ZodObject<{
99
- id: z.ZodString;
99
+ _id: z.ZodString;
100
100
  telegramMessageId: z.ZodString;
101
101
  channelId: z.ZodString;
102
102
  channelUsername: z.ZodOptional<z.ZodString>;
@@ -189,7 +189,7 @@ export declare const JobSchema: z.ZodObject<{
189
189
  updatedAt: z.ZodOptional<z.ZodString>;
190
190
  isVisited: z.ZodOptional<z.ZodBoolean>;
191
191
  }, "strip", z.ZodTypeAny, {
192
- id: string;
192
+ _id: string;
193
193
  telegramMessageId: string;
194
194
  channelId: string;
195
195
  rawText: string;
@@ -226,7 +226,7 @@ export declare const JobSchema: z.ZodObject<{
226
226
  updatedAt?: string | undefined;
227
227
  isVisited?: boolean | undefined;
228
228
  }, {
229
- id: string;
229
+ _id: string;
230
230
  telegramMessageId: string;
231
231
  channelId: string;
232
232
  rawText: string;
@@ -308,7 +308,7 @@ export declare const JobFiltersSchema: z.ZodObject<{
308
308
  }>;
309
309
  export declare const JobsResponseSchema: z.ZodObject<{
310
310
  jobs: z.ZodArray<z.ZodObject<{
311
- id: z.ZodString;
311
+ _id: z.ZodString;
312
312
  telegramMessageId: z.ZodString;
313
313
  channelId: z.ZodString;
314
314
  channelUsername: z.ZodOptional<z.ZodString>;
@@ -401,7 +401,7 @@ export declare const JobsResponseSchema: z.ZodObject<{
401
401
  updatedAt: z.ZodOptional<z.ZodString>;
402
402
  isVisited: z.ZodOptional<z.ZodBoolean>;
403
403
  }, "strip", z.ZodTypeAny, {
404
- id: string;
404
+ _id: string;
405
405
  telegramMessageId: string;
406
406
  channelId: string;
407
407
  rawText: string;
@@ -438,7 +438,7 @@ export declare const JobsResponseSchema: z.ZodObject<{
438
438
  updatedAt?: string | undefined;
439
439
  isVisited?: boolean | undefined;
440
440
  }, {
441
- id: string;
441
+ _id: string;
442
442
  telegramMessageId: string;
443
443
  channelId: string;
444
444
  rawText: string;
@@ -480,7 +480,7 @@ export declare const JobsResponseSchema: z.ZodObject<{
480
480
  offset: z.ZodNumber;
481
481
  }, "strip", z.ZodTypeAny, {
482
482
  jobs: {
483
- id: string;
483
+ _id: string;
484
484
  telegramMessageId: string;
485
485
  channelId: string;
486
486
  rawText: string;
@@ -522,7 +522,7 @@ export declare const JobsResponseSchema: z.ZodObject<{
522
522
  offset: number;
523
523
  }, {
524
524
  jobs: {
525
- id: string;
525
+ _id: string;
526
526
  telegramMessageId: string;
527
527
  channelId: string;
528
528
  rawText: string;
@@ -28,7 +28,7 @@ exports.ParsedJobDataSchema = zod_1.z.object({
28
28
  experienceYears: zod_1.z.number().optional(),
29
29
  });
30
30
  exports.JobSchema = zod_1.z.object({
31
- id: zod_1.z.string(),
31
+ _id: zod_1.z.string(),
32
32
  telegramMessageId: zod_1.z.string(),
33
33
  channelId: zod_1.z.string(),
34
34
  channelUsername: zod_1.z.string().optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "telegram-jobs-contract",
3
- "version": "1.0.17",
3
+ "version": "1.0.18",
4
4
  "description": "Shared API contract for telegram-jobs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",