telegram-jobs-contract 1.0.16 → 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,13 +101,13 @@ 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>;
108
108
  senderUserId: z.ZodOptional<z.ZodString>;
109
109
  senderUsername: z.ZodOptional<z.ZodString>;
110
- rawText: z.ZodOptional<z.ZodString>;
110
+ rawText: z.ZodString;
111
111
  parsedData: z.ZodOptional<z.ZodObject<{
112
112
  jobTitle: z.ZodOptional<z.ZodString>;
113
113
  normalizedJobTitle: z.ZodOptional<z.ZodString>;
@@ -194,15 +194,15 @@ 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
+ rawText: string;
200
201
  createdAt: string;
201
202
  status?: "pending_parse" | "parsed" | "failed" | undefined;
202
203
  channelUsername?: string | undefined;
203
204
  senderUserId?: string | undefined;
204
205
  senderUsername?: string | undefined;
205
- rawText?: string | undefined;
206
206
  parsedData?: {
207
207
  jobTitle?: string | undefined;
208
208
  normalizedJobTitle?: string | undefined;
@@ -231,15 +231,15 @@ 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
+ rawText: string;
237
238
  createdAt: string;
238
239
  status?: "pending_parse" | "parsed" | "failed" | undefined;
239
240
  channelUsername?: string | undefined;
240
241
  senderUserId?: string | undefined;
241
242
  senderUsername?: string | undefined;
242
- rawText?: string | undefined;
243
243
  parsedData?: {
244
244
  jobTitle?: string | undefined;
245
245
  normalizedJobTitle?: string | undefined;
@@ -273,15 +273,15 @@ 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
+ rawText: string;
279
280
  createdAt: string;
280
281
  status?: "pending_parse" | "parsed" | "failed" | undefined;
281
282
  channelUsername?: string | undefined;
282
283
  senderUserId?: string | undefined;
283
284
  senderUsername?: string | undefined;
284
- rawText?: string | undefined;
285
285
  parsedData?: {
286
286
  jobTitle?: string | undefined;
287
287
  normalizedJobTitle?: string | undefined;
@@ -315,15 +315,15 @@ 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
+ rawText: string;
321
322
  createdAt: string;
322
323
  status?: "pending_parse" | "parsed" | "failed" | undefined;
323
324
  channelUsername?: string | undefined;
324
325
  senderUserId?: string | undefined;
325
326
  senderUsername?: string | undefined;
326
- rawText?: string | undefined;
327
327
  parsedData?: {
328
328
  jobTitle?: string | undefined;
329
329
  normalizedJobTitle?: string | undefined;
@@ -361,15 +361,15 @@ 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
+ rawText: string;
367
368
  createdAt: string;
368
369
  status?: "pending_parse" | "parsed" | "failed" | undefined;
369
370
  channelUsername?: string | undefined;
370
371
  senderUserId?: string | undefined;
371
372
  senderUsername?: string | undefined;
372
- rawText?: string | undefined;
373
373
  parsedData?: {
374
374
  jobTitle?: string | undefined;
375
375
  normalizedJobTitle?: string | undefined;
@@ -407,15 +407,15 @@ 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
+ rawText: string;
413
414
  createdAt: string;
414
415
  status?: "pending_parse" | "parsed" | "failed" | undefined;
415
416
  channelUsername?: string | undefined;
416
417
  senderUserId?: string | undefined;
417
418
  senderUsername?: string | undefined;
418
- rawText?: string | undefined;
419
419
  parsedData?: {
420
420
  jobTitle?: string | undefined;
421
421
  normalizedJobTitle?: string | undefined;
@@ -499,13 +499,13 @@ 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>;
506
506
  senderUserId: z.ZodOptional<z.ZodString>;
507
507
  senderUsername: z.ZodOptional<z.ZodString>;
508
- rawText: z.ZodOptional<z.ZodString>;
508
+ rawText: z.ZodString;
509
509
  parsedData: z.ZodOptional<z.ZodObject<{
510
510
  jobTitle: z.ZodOptional<z.ZodString>;
511
511
  normalizedJobTitle: z.ZodOptional<z.ZodString>;
@@ -592,15 +592,15 @@ 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
+ rawText: string;
598
599
  createdAt: string;
599
600
  status?: "pending_parse" | "parsed" | "failed" | undefined;
600
601
  channelUsername?: string | undefined;
601
602
  senderUserId?: string | undefined;
602
603
  senderUsername?: string | undefined;
603
- rawText?: string | undefined;
604
604
  parsedData?: {
605
605
  jobTitle?: string | undefined;
606
606
  normalizedJobTitle?: string | undefined;
@@ -629,15 +629,15 @@ 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
+ rawText: string;
635
636
  createdAt: string;
636
637
  status?: "pending_parse" | "parsed" | "failed" | undefined;
637
638
  channelUsername?: string | undefined;
638
639
  senderUserId?: string | undefined;
639
640
  senderUsername?: string | undefined;
640
- rawText?: string | undefined;
641
641
  parsedData?: {
642
642
  jobTitle?: string | undefined;
643
643
  normalizedJobTitle?: string | undefined;
@@ -670,15 +670,15 @@ 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
+ rawText: string;
676
677
  createdAt: string;
677
678
  status?: "pending_parse" | "parsed" | "failed" | undefined;
678
679
  channelUsername?: string | undefined;
679
680
  senderUserId?: string | undefined;
680
681
  senderUsername?: string | undefined;
681
- rawText?: string | undefined;
682
682
  parsedData?: {
683
683
  jobTitle?: string | undefined;
684
684
  normalizedJobTitle?: string | undefined;
@@ -711,15 +711,15 @@ 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
+ rawText: string;
717
718
  createdAt: string;
718
719
  status?: "pending_parse" | "parsed" | "failed" | undefined;
719
720
  channelUsername?: string | undefined;
720
721
  senderUserId?: string | undefined;
721
722
  senderUsername?: string | undefined;
722
- rawText?: string | undefined;
723
723
  parsedData?: {
724
724
  jobTitle?: string | undefined;
725
725
  normalizedJobTitle?: string | undefined;
package/dist/index.d.ts CHANGED
@@ -109,13 +109,13 @@ 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>;
116
116
  senderUserId: z.ZodOptional<z.ZodString>;
117
117
  senderUsername: z.ZodOptional<z.ZodString>;
118
- rawText: z.ZodOptional<z.ZodString>;
118
+ rawText: z.ZodString;
119
119
  parsedData: z.ZodOptional<z.ZodObject<{
120
120
  jobTitle: z.ZodOptional<z.ZodString>;
121
121
  normalizedJobTitle: z.ZodOptional<z.ZodString>;
@@ -202,15 +202,15 @@ 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
+ rawText: string;
208
209
  createdAt: string;
209
210
  status?: "pending_parse" | "parsed" | "failed" | undefined;
210
211
  channelUsername?: string | undefined;
211
212
  senderUserId?: string | undefined;
212
213
  senderUsername?: string | undefined;
213
- rawText?: string | undefined;
214
214
  parsedData?: {
215
215
  jobTitle?: string | undefined;
216
216
  normalizedJobTitle?: string | undefined;
@@ -239,15 +239,15 @@ 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
+ rawText: string;
245
246
  createdAt: string;
246
247
  status?: "pending_parse" | "parsed" | "failed" | undefined;
247
248
  channelUsername?: string | undefined;
248
249
  senderUserId?: string | undefined;
249
250
  senderUsername?: string | undefined;
250
- rawText?: string | undefined;
251
251
  parsedData?: {
252
252
  jobTitle?: string | undefined;
253
253
  normalizedJobTitle?: string | undefined;
@@ -281,15 +281,15 @@ 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
+ rawText: string;
287
288
  createdAt: string;
288
289
  status?: "pending_parse" | "parsed" | "failed" | undefined;
289
290
  channelUsername?: string | undefined;
290
291
  senderUserId?: string | undefined;
291
292
  senderUsername?: string | undefined;
292
- rawText?: string | undefined;
293
293
  parsedData?: {
294
294
  jobTitle?: string | undefined;
295
295
  normalizedJobTitle?: string | undefined;
@@ -323,15 +323,15 @@ 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
+ rawText: string;
329
330
  createdAt: string;
330
331
  status?: "pending_parse" | "parsed" | "failed" | undefined;
331
332
  channelUsername?: string | undefined;
332
333
  senderUserId?: string | undefined;
333
334
  senderUsername?: string | undefined;
334
- rawText?: string | undefined;
335
335
  parsedData?: {
336
336
  jobTitle?: string | undefined;
337
337
  normalizedJobTitle?: string | undefined;
@@ -369,15 +369,15 @@ 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
+ rawText: string;
375
376
  createdAt: string;
376
377
  status?: "pending_parse" | "parsed" | "failed" | undefined;
377
378
  channelUsername?: string | undefined;
378
379
  senderUserId?: string | undefined;
379
380
  senderUsername?: string | undefined;
380
- rawText?: string | undefined;
381
381
  parsedData?: {
382
382
  jobTitle?: string | undefined;
383
383
  normalizedJobTitle?: string | undefined;
@@ -415,15 +415,15 @@ 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
+ rawText: string;
421
422
  createdAt: string;
422
423
  status?: "pending_parse" | "parsed" | "failed" | undefined;
423
424
  channelUsername?: string | undefined;
424
425
  senderUserId?: string | undefined;
425
426
  senderUsername?: string | undefined;
426
- rawText?: string | undefined;
427
427
  parsedData?: {
428
428
  jobTitle?: string | undefined;
429
429
  normalizedJobTitle?: string | undefined;
@@ -507,13 +507,13 @@ 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>;
514
514
  senderUserId: z.ZodOptional<z.ZodString>;
515
515
  senderUsername: z.ZodOptional<z.ZodString>;
516
- rawText: z.ZodOptional<z.ZodString>;
516
+ rawText: z.ZodString;
517
517
  parsedData: z.ZodOptional<z.ZodObject<{
518
518
  jobTitle: z.ZodOptional<z.ZodString>;
519
519
  normalizedJobTitle: z.ZodOptional<z.ZodString>;
@@ -600,15 +600,15 @@ 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
+ rawText: string;
606
607
  createdAt: string;
607
608
  status?: "pending_parse" | "parsed" | "failed" | undefined;
608
609
  channelUsername?: string | undefined;
609
610
  senderUserId?: string | undefined;
610
611
  senderUsername?: string | undefined;
611
- rawText?: string | undefined;
612
612
  parsedData?: {
613
613
  jobTitle?: string | undefined;
614
614
  normalizedJobTitle?: string | undefined;
@@ -637,15 +637,15 @@ 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
+ rawText: string;
643
644
  createdAt: string;
644
645
  status?: "pending_parse" | "parsed" | "failed" | undefined;
645
646
  channelUsername?: string | undefined;
646
647
  senderUserId?: string | undefined;
647
648
  senderUsername?: string | undefined;
648
- rawText?: string | undefined;
649
649
  parsedData?: {
650
650
  jobTitle?: string | undefined;
651
651
  normalizedJobTitle?: string | undefined;
@@ -678,15 +678,15 @@ 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
+ rawText: string;
684
685
  createdAt: string;
685
686
  status?: "pending_parse" | "parsed" | "failed" | undefined;
686
687
  channelUsername?: string | undefined;
687
688
  senderUserId?: string | undefined;
688
689
  senderUsername?: string | undefined;
689
- rawText?: string | undefined;
690
690
  parsedData?: {
691
691
  jobTitle?: string | undefined;
692
692
  normalizedJobTitle?: string | undefined;
@@ -719,15 +719,15 @@ 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
+ rawText: string;
725
726
  createdAt: string;
726
727
  status?: "pending_parse" | "parsed" | "failed" | undefined;
727
728
  channelUsername?: string | undefined;
728
729
  senderUserId?: string | undefined;
729
730
  senderUsername?: string | undefined;
730
- rawText?: string | undefined;
731
731
  parsedData?: {
732
732
  jobTitle?: string | undefined;
733
733
  normalizedJobTitle?: string | undefined;
@@ -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,13 +96,13 @@ 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>;
103
103
  senderUserId: z.ZodOptional<z.ZodString>;
104
104
  senderUsername: z.ZodOptional<z.ZodString>;
105
- rawText: z.ZodOptional<z.ZodString>;
105
+ rawText: z.ZodString;
106
106
  parsedData: z.ZodOptional<z.ZodObject<{
107
107
  jobTitle: z.ZodOptional<z.ZodString>;
108
108
  normalizedJobTitle: z.ZodOptional<z.ZodString>;
@@ -189,15 +189,15 @@ 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
+ rawText: string;
195
196
  createdAt: string;
196
197
  status?: "pending_parse" | "parsed" | "failed" | undefined;
197
198
  channelUsername?: string | undefined;
198
199
  senderUserId?: string | undefined;
199
200
  senderUsername?: string | undefined;
200
- rawText?: string | undefined;
201
201
  parsedData?: {
202
202
  jobTitle?: string | undefined;
203
203
  normalizedJobTitle?: string | undefined;
@@ -226,15 +226,15 @@ 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
+ rawText: string;
232
233
  createdAt: string;
233
234
  status?: "pending_parse" | "parsed" | "failed" | undefined;
234
235
  channelUsername?: string | undefined;
235
236
  senderUserId?: string | undefined;
236
237
  senderUsername?: string | undefined;
237
- rawText?: string | undefined;
238
238
  parsedData?: {
239
239
  jobTitle?: string | undefined;
240
240
  normalizedJobTitle?: string | undefined;
@@ -308,13 +308,13 @@ 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>;
315
315
  senderUserId: z.ZodOptional<z.ZodString>;
316
316
  senderUsername: z.ZodOptional<z.ZodString>;
317
- rawText: z.ZodOptional<z.ZodString>;
317
+ rawText: z.ZodString;
318
318
  parsedData: z.ZodOptional<z.ZodObject<{
319
319
  jobTitle: z.ZodOptional<z.ZodString>;
320
320
  normalizedJobTitle: z.ZodOptional<z.ZodString>;
@@ -401,15 +401,15 @@ 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
+ rawText: string;
407
408
  createdAt: string;
408
409
  status?: "pending_parse" | "parsed" | "failed" | undefined;
409
410
  channelUsername?: string | undefined;
410
411
  senderUserId?: string | undefined;
411
412
  senderUsername?: string | undefined;
412
- rawText?: string | undefined;
413
413
  parsedData?: {
414
414
  jobTitle?: string | undefined;
415
415
  normalizedJobTitle?: string | undefined;
@@ -438,15 +438,15 @@ 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
+ rawText: string;
444
445
  createdAt: string;
445
446
  status?: "pending_parse" | "parsed" | "failed" | undefined;
446
447
  channelUsername?: string | undefined;
447
448
  senderUserId?: string | undefined;
448
449
  senderUsername?: string | undefined;
449
- rawText?: string | undefined;
450
450
  parsedData?: {
451
451
  jobTitle?: string | undefined;
452
452
  normalizedJobTitle?: string | undefined;
@@ -480,15 +480,15 @@ 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
+ rawText: string;
486
487
  createdAt: string;
487
488
  status?: "pending_parse" | "parsed" | "failed" | undefined;
488
489
  channelUsername?: string | undefined;
489
490
  senderUserId?: string | undefined;
490
491
  senderUsername?: string | undefined;
491
- rawText?: string | undefined;
492
492
  parsedData?: {
493
493
  jobTitle?: string | undefined;
494
494
  normalizedJobTitle?: string | undefined;
@@ -522,15 +522,15 @@ 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
+ rawText: string;
528
529
  createdAt: string;
529
530
  status?: "pending_parse" | "parsed" | "failed" | undefined;
530
531
  channelUsername?: string | undefined;
531
532
  senderUserId?: string | undefined;
532
533
  senderUsername?: string | undefined;
533
- rawText?: string | undefined;
534
534
  parsedData?: {
535
535
  jobTitle?: string | undefined;
536
536
  normalizedJobTitle?: string | undefined;
@@ -10,7 +10,7 @@ exports.ContactInfoSchema = zod_1.z.object({
10
10
  });
11
11
  exports.ParsedJobDataSchema = zod_1.z.object({
12
12
  jobTitle: zod_1.z.string().optional(),
13
- normalizedJobTitle: zod_1.z.string().optional(),
13
+ normalizedJobTitle: zod_1.z.string().optional(), // English normalized title for filtering
14
14
  company: zod_1.z.string().optional(),
15
15
  techStack: zod_1.z.array(zod_1.z.string()).optional(),
16
16
  salary: zod_1.z.string().optional(),
@@ -18,7 +18,7 @@ exports.ParsedJobDataSchema = zod_1.z.object({
18
18
  isRemote: zod_1.z.boolean().optional(),
19
19
  level: zod_1.z.string().optional(),
20
20
  employmentType: zod_1.z.string().optional(),
21
- location: zod_1.z.string().optional(),
21
+ location: zod_1.z.string().optional(), // Company location
22
22
  candidateLocation: zod_1.z.string().optional(),
23
23
  responsibilities: zod_1.z.array(zod_1.z.string()).optional(),
24
24
  requiredQualifications: zod_1.z.array(zod_1.z.string()).optional(),
@@ -28,13 +28,13 @@ 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(),
35
35
  senderUserId: zod_1.z.string().optional(),
36
36
  senderUsername: zod_1.z.string().optional(),
37
- rawText: zod_1.z.string().optional(), // Optional - only in detail view
37
+ rawText: zod_1.z.string(),
38
38
  parsedData: exports.ParsedJobDataSchema.optional(),
39
39
  status: zod_1.z.enum(['pending_parse', 'parsed', 'failed']).optional(),
40
40
  telegramMessageDate: 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.16",
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",