telegram-jobs-contract 1.0.7 → 1.0.9

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.ZodString;
110
+ rawText: z.ZodOptional<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;
201
200
  createdAt: string;
202
201
  status?: "pending_parse" | "parsed" | "failed" | undefined;
203
202
  channelUsername?: string | undefined;
204
203
  senderUserId?: string | undefined;
205
204
  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;
238
237
  createdAt: string;
239
238
  status?: "pending_parse" | "parsed" | "failed" | undefined;
240
239
  channelUsername?: string | undefined;
241
240
  senderUserId?: string | undefined;
242
241
  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;
280
279
  createdAt: string;
281
280
  status?: "pending_parse" | "parsed" | "failed" | undefined;
282
281
  channelUsername?: string | undefined;
283
282
  senderUserId?: string | undefined;
284
283
  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;
322
321
  createdAt: string;
323
322
  status?: "pending_parse" | "parsed" | "failed" | undefined;
324
323
  channelUsername?: string | undefined;
325
324
  senderUserId?: string | undefined;
326
325
  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;
368
367
  createdAt: string;
369
368
  status?: "pending_parse" | "parsed" | "failed" | undefined;
370
369
  channelUsername?: string | undefined;
371
370
  senderUserId?: string | undefined;
372
371
  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;
414
413
  createdAt: string;
415
414
  status?: "pending_parse" | "parsed" | "failed" | undefined;
416
415
  channelUsername?: string | undefined;
417
416
  senderUserId?: string | undefined;
418
417
  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.ZodString;
508
+ rawText: z.ZodOptional<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;
599
598
  createdAt: string;
600
599
  status?: "pending_parse" | "parsed" | "failed" | undefined;
601
600
  channelUsername?: string | undefined;
602
601
  senderUserId?: string | undefined;
603
602
  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;
636
635
  createdAt: string;
637
636
  status?: "pending_parse" | "parsed" | "failed" | undefined;
638
637
  channelUsername?: string | undefined;
639
638
  senderUserId?: string | undefined;
640
639
  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;
677
676
  createdAt: string;
678
677
  status?: "pending_parse" | "parsed" | "failed" | undefined;
679
678
  channelUsername?: string | undefined;
680
679
  senderUserId?: string | undefined;
681
680
  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;
718
717
  createdAt: string;
719
718
  status?: "pending_parse" | "parsed" | "failed" | undefined;
720
719
  channelUsername?: string | undefined;
721
720
  senderUserId?: string | undefined;
722
721
  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: import("zod").ZodOptional<import("zod").ZodString>;
116
116
  senderUserId: import("zod").ZodOptional<import("zod").ZodString>;
117
117
  senderUsername: import("zod").ZodOptional<import("zod").ZodString>;
118
- rawText: import("zod").ZodString;
118
+ rawText: import("zod").ZodOptional<import("zod").ZodString>;
119
119
  parsedData: import("zod").ZodOptional<import("zod").ZodObject<{
120
120
  jobTitle: import("zod").ZodOptional<import("zod").ZodString>;
121
121
  normalizedJobTitle: import("zod").ZodOptional<import("zod").ZodString>;
@@ -205,12 +205,12 @@ export declare const apiContract: {
205
205
  id: string;
206
206
  telegramMessageId: string;
207
207
  channelId: string;
208
- rawText: string;
209
208
  createdAt: string;
210
209
  status?: "pending_parse" | "parsed" | "failed" | undefined;
211
210
  channelUsername?: string | undefined;
212
211
  senderUserId?: string | undefined;
213
212
  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;
246
245
  createdAt: string;
247
246
  status?: "pending_parse" | "parsed" | "failed" | undefined;
248
247
  channelUsername?: string | undefined;
249
248
  senderUserId?: string | undefined;
250
249
  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;
288
287
  createdAt: string;
289
288
  status?: "pending_parse" | "parsed" | "failed" | undefined;
290
289
  channelUsername?: string | undefined;
291
290
  senderUserId?: string | undefined;
292
291
  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;
330
329
  createdAt: string;
331
330
  status?: "pending_parse" | "parsed" | "failed" | undefined;
332
331
  channelUsername?: string | undefined;
333
332
  senderUserId?: string | undefined;
334
333
  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;
376
375
  createdAt: string;
377
376
  status?: "pending_parse" | "parsed" | "failed" | undefined;
378
377
  channelUsername?: string | undefined;
379
378
  senderUserId?: string | undefined;
380
379
  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;
422
421
  createdAt: string;
423
422
  status?: "pending_parse" | "parsed" | "failed" | undefined;
424
423
  channelUsername?: string | undefined;
425
424
  senderUserId?: string | undefined;
426
425
  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: import("zod").ZodOptional<import("zod").ZodString>;
514
514
  senderUserId: import("zod").ZodOptional<import("zod").ZodString>;
515
515
  senderUsername: import("zod").ZodOptional<import("zod").ZodString>;
516
- rawText: import("zod").ZodString;
516
+ rawText: import("zod").ZodOptional<import("zod").ZodString>;
517
517
  parsedData: import("zod").ZodOptional<import("zod").ZodObject<{
518
518
  jobTitle: import("zod").ZodOptional<import("zod").ZodString>;
519
519
  normalizedJobTitle: import("zod").ZodOptional<import("zod").ZodString>;
@@ -603,12 +603,12 @@ export declare const apiContract: {
603
603
  id: string;
604
604
  telegramMessageId: string;
605
605
  channelId: string;
606
- rawText: string;
607
606
  createdAt: string;
608
607
  status?: "pending_parse" | "parsed" | "failed" | undefined;
609
608
  channelUsername?: string | undefined;
610
609
  senderUserId?: string | undefined;
611
610
  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;
644
643
  createdAt: string;
645
644
  status?: "pending_parse" | "parsed" | "failed" | undefined;
646
645
  channelUsername?: string | undefined;
647
646
  senderUserId?: string | undefined;
648
647
  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;
685
684
  createdAt: string;
686
685
  status?: "pending_parse" | "parsed" | "failed" | undefined;
687
686
  channelUsername?: string | undefined;
688
687
  senderUserId?: string | undefined;
689
688
  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;
726
725
  createdAt: string;
727
726
  status?: "pending_parse" | "parsed" | "failed" | undefined;
728
727
  channelUsername?: string | undefined;
729
728
  senderUserId?: string | undefined;
730
729
  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.ZodString;
105
+ rawText: z.ZodOptional<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;
196
195
  createdAt: string;
197
196
  status?: "pending_parse" | "parsed" | "failed" | undefined;
198
197
  channelUsername?: string | undefined;
199
198
  senderUserId?: string | undefined;
200
199
  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;
233
232
  createdAt: string;
234
233
  status?: "pending_parse" | "parsed" | "failed" | undefined;
235
234
  channelUsername?: string | undefined;
236
235
  senderUserId?: string | undefined;
237
236
  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.ZodString;
317
+ rawText: z.ZodOptional<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;
408
407
  createdAt: string;
409
408
  status?: "pending_parse" | "parsed" | "failed" | undefined;
410
409
  channelUsername?: string | undefined;
411
410
  senderUserId?: string | undefined;
412
411
  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;
445
444
  createdAt: string;
446
445
  status?: "pending_parse" | "parsed" | "failed" | undefined;
447
446
  channelUsername?: string | undefined;
448
447
  senderUserId?: string | undefined;
449
448
  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;
487
486
  createdAt: string;
488
487
  status?: "pending_parse" | "parsed" | "failed" | undefined;
489
488
  channelUsername?: string | undefined;
490
489
  senderUserId?: string | undefined;
491
490
  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;
529
528
  createdAt: string;
530
529
  status?: "pending_parse" | "parsed" | "failed" | undefined;
531
530
  channelUsername?: string | undefined;
532
531
  senderUserId?: string | undefined;
533
532
  senderUsername?: string | undefined;
533
+ rawText?: string | undefined;
534
534
  parsedData?: {
535
535
  jobTitle?: string | undefined;
536
536
  normalizedJobTitle?: string | undefined;
@@ -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(),
37
+ rawText: zod_1.z.string().optional(), // Optional - only in detail view
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.7",
3
+ "version": "1.0.9",
4
4
  "description": "Shared API contract for telegram-jobs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",