telegram-jobs-contract 1.0.16 → 1.0.17

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.
@@ -107,7 +107,7 @@ export declare const jobsContract: {
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>;
@@ -197,12 +197,12 @@ export declare const jobsContract: {
197
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;
@@ -234,12 +234,12 @@ export declare const jobsContract: {
234
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;
@@ -276,12 +276,12 @@ export declare const jobsContract: {
276
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;
@@ -318,12 +318,12 @@ export declare const jobsContract: {
318
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;
@@ -364,12 +364,12 @@ export declare const jobsContract: {
364
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;
@@ -410,12 +410,12 @@ export declare const jobsContract: {
410
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;
@@ -505,7 +505,7 @@ export declare const jobsContract: {
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>;
@@ -595,12 +595,12 @@ export declare const jobsContract: {
595
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;
@@ -632,12 +632,12 @@ export declare const jobsContract: {
632
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;
@@ -673,12 +673,12 @@ export declare const jobsContract: {
673
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;
@@ -714,12 +714,12 @@ export declare const jobsContract: {
714
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
@@ -115,7 +115,7 @@ export declare const apiContract: {
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>;
@@ -205,12 +205,12 @@ export declare const apiContract: {
205
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;
@@ -242,12 +242,12 @@ export declare const apiContract: {
242
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;
@@ -284,12 +284,12 @@ export declare const apiContract: {
284
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;
@@ -326,12 +326,12 @@ export declare const apiContract: {
326
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;
@@ -372,12 +372,12 @@ export declare const apiContract: {
372
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;
@@ -418,12 +418,12 @@ export declare const apiContract: {
418
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;
@@ -513,7 +513,7 @@ export declare const apiContract: {
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>;
@@ -603,12 +603,12 @@ export declare const apiContract: {
603
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;
@@ -640,12 +640,12 @@ export declare const apiContract: {
640
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;
@@ -681,12 +681,12 @@ export declare const apiContract: {
681
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;
@@ -722,12 +722,12 @@ export declare const apiContract: {
722
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;
@@ -102,7 +102,7 @@ export declare const JobSchema: z.ZodObject<{
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>;
@@ -192,12 +192,12 @@ export declare const JobSchema: z.ZodObject<{
192
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;
@@ -229,12 +229,12 @@ export declare const JobSchema: z.ZodObject<{
229
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;
@@ -314,7 +314,7 @@ export declare const JobsResponseSchema: z.ZodObject<{
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>;
@@ -404,12 +404,12 @@ export declare const JobsResponseSchema: z.ZodObject<{
404
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;
@@ -441,12 +441,12 @@ export declare const JobsResponseSchema: z.ZodObject<{
441
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;
@@ -483,12 +483,12 @@ export declare const JobsResponseSchema: z.ZodObject<{
483
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;
@@ -525,12 +525,12 @@ export declare const JobsResponseSchema: z.ZodObject<{
525
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(),
@@ -34,7 +34,7 @@ exports.JobSchema = zod_1.z.object({
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.17",
4
4
  "description": "Shared API contract for telegram-jobs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",