telegram-jobs-contract 1.0.17 → 1.0.19

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,14 +101,14 @@ 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;
105
- telegramMessageId: z.ZodString;
106
- channelId: z.ZodString;
107
- channelUsername: z.ZodOptional<z.ZodString>;
108
- senderUserId: z.ZodOptional<z.ZodString>;
109
- senderUsername: z.ZodOptional<z.ZodString>;
110
- rawText: z.ZodString;
111
- parsedData: z.ZodOptional<z.ZodObject<{
104
+ _id: z.ZodOptional<z.ZodString>;
105
+ telegramMessageId: z.ZodOptional<z.ZodString>;
106
+ channelId: z.ZodOptional<z.ZodString>;
107
+ channelUsername: z.ZodOptional<z.ZodOptional<z.ZodString>>;
108
+ senderUserId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
109
+ senderUsername: z.ZodOptional<z.ZodOptional<z.ZodString>>;
110
+ rawText: z.ZodOptional<z.ZodString>;
111
+ parsedData: z.ZodOptional<z.ZodOptional<z.ZodObject<{
112
112
  jobTitle: z.ZodOptional<z.ZodString>;
113
113
  normalizedJobTitle: z.ZodOptional<z.ZodString>;
114
114
  company: z.ZodOptional<z.ZodString>;
@@ -187,22 +187,21 @@ export declare const jobsContract: {
187
187
  benefits?: string[] | undefined;
188
188
  description?: string | undefined;
189
189
  experienceYears?: number | undefined;
190
- }>>;
191
- status: z.ZodOptional<z.ZodEnum<["pending_parse", "parsed", "failed"]>>;
192
- telegramMessageDate: z.ZodOptional<z.ZodString>;
193
- createdAt: z.ZodString;
194
- updatedAt: z.ZodOptional<z.ZodString>;
195
- isVisited: z.ZodOptional<z.ZodBoolean>;
190
+ }>>>;
191
+ status: z.ZodOptional<z.ZodOptional<z.ZodEnum<["pending_parse", "parsed", "failed"]>>>;
192
+ telegramMessageDate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
193
+ createdAt: z.ZodOptional<z.ZodString>;
194
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
195
+ isVisited: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
196
196
  }, "strip", z.ZodTypeAny, {
197
- id: string;
198
- telegramMessageId: string;
199
- channelId: string;
200
- rawText: string;
201
- createdAt: string;
202
197
  status?: "pending_parse" | "parsed" | "failed" | undefined;
198
+ _id?: string | undefined;
199
+ telegramMessageId?: string | undefined;
200
+ channelId?: string | undefined;
203
201
  channelUsername?: string | undefined;
204
202
  senderUserId?: string | undefined;
205
203
  senderUsername?: string | undefined;
204
+ rawText?: string | undefined;
206
205
  parsedData?: {
207
206
  jobTitle?: string | undefined;
208
207
  normalizedJobTitle?: string | undefined;
@@ -228,18 +227,18 @@ export declare const jobsContract: {
228
227
  experienceYears?: number | undefined;
229
228
  } | undefined;
230
229
  telegramMessageDate?: string | undefined;
230
+ createdAt?: string | undefined;
231
231
  updatedAt?: string | undefined;
232
232
  isVisited?: boolean | undefined;
233
233
  }, {
234
- id: string;
235
- telegramMessageId: string;
236
- channelId: string;
237
- rawText: string;
238
- createdAt: string;
239
234
  status?: "pending_parse" | "parsed" | "failed" | undefined;
235
+ _id?: string | undefined;
236
+ telegramMessageId?: string | undefined;
237
+ channelId?: string | undefined;
240
238
  channelUsername?: string | undefined;
241
239
  senderUserId?: string | undefined;
242
240
  senderUsername?: string | undefined;
241
+ rawText?: string | undefined;
243
242
  parsedData?: {
244
243
  jobTitle?: string | undefined;
245
244
  normalizedJobTitle?: string | undefined;
@@ -265,6 +264,7 @@ export declare const jobsContract: {
265
264
  experienceYears?: number | undefined;
266
265
  } | undefined;
267
266
  telegramMessageDate?: string | undefined;
267
+ createdAt?: string | undefined;
268
268
  updatedAt?: string | undefined;
269
269
  isVisited?: boolean | undefined;
270
270
  }>, "many">;
@@ -273,15 +273,14 @@ export declare const jobsContract: {
273
273
  offset: z.ZodNumber;
274
274
  }, "strip", z.ZodTypeAny, {
275
275
  jobs: {
276
- id: string;
277
- telegramMessageId: string;
278
- channelId: string;
279
- rawText: string;
280
- createdAt: string;
281
276
  status?: "pending_parse" | "parsed" | "failed" | undefined;
277
+ _id?: string | undefined;
278
+ telegramMessageId?: string | undefined;
279
+ channelId?: string | undefined;
282
280
  channelUsername?: string | undefined;
283
281
  senderUserId?: string | undefined;
284
282
  senderUsername?: string | undefined;
283
+ rawText?: string | undefined;
285
284
  parsedData?: {
286
285
  jobTitle?: string | undefined;
287
286
  normalizedJobTitle?: string | undefined;
@@ -307,6 +306,7 @@ export declare const jobsContract: {
307
306
  experienceYears?: number | undefined;
308
307
  } | undefined;
309
308
  telegramMessageDate?: string | undefined;
309
+ createdAt?: string | undefined;
310
310
  updatedAt?: string | undefined;
311
311
  isVisited?: boolean | undefined;
312
312
  }[];
@@ -315,15 +315,14 @@ export declare const jobsContract: {
315
315
  offset: number;
316
316
  }, {
317
317
  jobs: {
318
- id: string;
319
- telegramMessageId: string;
320
- channelId: string;
321
- rawText: string;
322
- createdAt: string;
323
318
  status?: "pending_parse" | "parsed" | "failed" | undefined;
319
+ _id?: string | undefined;
320
+ telegramMessageId?: string | undefined;
321
+ channelId?: string | undefined;
324
322
  channelUsername?: string | undefined;
325
323
  senderUserId?: string | undefined;
326
324
  senderUsername?: string | undefined;
325
+ rawText?: string | undefined;
327
326
  parsedData?: {
328
327
  jobTitle?: string | undefined;
329
328
  normalizedJobTitle?: string | undefined;
@@ -349,6 +348,7 @@ export declare const jobsContract: {
349
348
  experienceYears?: number | undefined;
350
349
  } | undefined;
351
350
  telegramMessageDate?: string | undefined;
351
+ createdAt?: string | undefined;
352
352
  updatedAt?: string | undefined;
353
353
  isVisited?: boolean | undefined;
354
354
  }[];
@@ -361,15 +361,14 @@ export declare const jobsContract: {
361
361
  success: true;
362
362
  data: {
363
363
  jobs: {
364
- id: string;
365
- telegramMessageId: string;
366
- channelId: string;
367
- rawText: string;
368
- createdAt: string;
369
364
  status?: "pending_parse" | "parsed" | "failed" | undefined;
365
+ _id?: string | undefined;
366
+ telegramMessageId?: string | undefined;
367
+ channelId?: string | undefined;
370
368
  channelUsername?: string | undefined;
371
369
  senderUserId?: string | undefined;
372
370
  senderUsername?: string | undefined;
371
+ rawText?: string | undefined;
373
372
  parsedData?: {
374
373
  jobTitle?: string | undefined;
375
374
  normalizedJobTitle?: string | undefined;
@@ -395,6 +394,7 @@ export declare const jobsContract: {
395
394
  experienceYears?: number | undefined;
396
395
  } | undefined;
397
396
  telegramMessageDate?: string | undefined;
397
+ createdAt?: string | undefined;
398
398
  updatedAt?: string | undefined;
399
399
  isVisited?: boolean | undefined;
400
400
  }[];
@@ -407,15 +407,14 @@ export declare const jobsContract: {
407
407
  success: true;
408
408
  data: {
409
409
  jobs: {
410
- id: string;
411
- telegramMessageId: string;
412
- channelId: string;
413
- rawText: string;
414
- createdAt: string;
415
410
  status?: "pending_parse" | "parsed" | "failed" | undefined;
411
+ _id?: string | undefined;
412
+ telegramMessageId?: string | undefined;
413
+ channelId?: string | undefined;
416
414
  channelUsername?: string | undefined;
417
415
  senderUserId?: string | undefined;
418
416
  senderUsername?: string | undefined;
417
+ rawText?: string | undefined;
419
418
  parsedData?: {
420
419
  jobTitle?: string | undefined;
421
420
  normalizedJobTitle?: string | undefined;
@@ -441,6 +440,7 @@ export declare const jobsContract: {
441
440
  experienceYears?: number | undefined;
442
441
  } | undefined;
443
442
  telegramMessageDate?: string | undefined;
443
+ createdAt?: string | undefined;
444
444
  updatedAt?: string | undefined;
445
445
  isVisited?: boolean | undefined;
446
446
  }[];
@@ -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,14 +109,14 @@ 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;
113
- telegramMessageId: z.ZodString;
114
- channelId: z.ZodString;
115
- channelUsername: z.ZodOptional<z.ZodString>;
116
- senderUserId: z.ZodOptional<z.ZodString>;
117
- senderUsername: z.ZodOptional<z.ZodString>;
118
- rawText: z.ZodString;
119
- parsedData: z.ZodOptional<z.ZodObject<{
112
+ _id: z.ZodOptional<z.ZodString>;
113
+ telegramMessageId: z.ZodOptional<z.ZodString>;
114
+ channelId: z.ZodOptional<z.ZodString>;
115
+ channelUsername: z.ZodOptional<z.ZodOptional<z.ZodString>>;
116
+ senderUserId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
117
+ senderUsername: z.ZodOptional<z.ZodOptional<z.ZodString>>;
118
+ rawText: z.ZodOptional<z.ZodString>;
119
+ parsedData: z.ZodOptional<z.ZodOptional<z.ZodObject<{
120
120
  jobTitle: z.ZodOptional<z.ZodString>;
121
121
  normalizedJobTitle: z.ZodOptional<z.ZodString>;
122
122
  company: z.ZodOptional<z.ZodString>;
@@ -195,22 +195,21 @@ export declare const apiContract: {
195
195
  benefits?: string[] | undefined;
196
196
  description?: string | undefined;
197
197
  experienceYears?: number | undefined;
198
- }>>;
199
- status: z.ZodOptional<z.ZodEnum<["pending_parse", "parsed", "failed"]>>;
200
- telegramMessageDate: z.ZodOptional<z.ZodString>;
201
- createdAt: z.ZodString;
202
- updatedAt: z.ZodOptional<z.ZodString>;
203
- isVisited: z.ZodOptional<z.ZodBoolean>;
198
+ }>>>;
199
+ status: z.ZodOptional<z.ZodOptional<z.ZodEnum<["pending_parse", "parsed", "failed"]>>>;
200
+ telegramMessageDate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
201
+ createdAt: z.ZodOptional<z.ZodString>;
202
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
203
+ isVisited: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
204
204
  }, "strip", z.ZodTypeAny, {
205
- id: string;
206
- telegramMessageId: string;
207
- channelId: string;
208
- rawText: string;
209
- createdAt: string;
210
205
  status?: "pending_parse" | "parsed" | "failed" | undefined;
206
+ _id?: string | undefined;
207
+ telegramMessageId?: string | undefined;
208
+ channelId?: string | undefined;
211
209
  channelUsername?: string | undefined;
212
210
  senderUserId?: string | undefined;
213
211
  senderUsername?: string | undefined;
212
+ rawText?: string | undefined;
214
213
  parsedData?: {
215
214
  jobTitle?: string | undefined;
216
215
  normalizedJobTitle?: string | undefined;
@@ -236,18 +235,18 @@ export declare const apiContract: {
236
235
  experienceYears?: number | undefined;
237
236
  } | undefined;
238
237
  telegramMessageDate?: string | undefined;
238
+ createdAt?: string | undefined;
239
239
  updatedAt?: string | undefined;
240
240
  isVisited?: boolean | undefined;
241
241
  }, {
242
- id: string;
243
- telegramMessageId: string;
244
- channelId: string;
245
- rawText: string;
246
- createdAt: string;
247
242
  status?: "pending_parse" | "parsed" | "failed" | undefined;
243
+ _id?: string | undefined;
244
+ telegramMessageId?: string | undefined;
245
+ channelId?: string | undefined;
248
246
  channelUsername?: string | undefined;
249
247
  senderUserId?: string | undefined;
250
248
  senderUsername?: string | undefined;
249
+ rawText?: string | undefined;
251
250
  parsedData?: {
252
251
  jobTitle?: string | undefined;
253
252
  normalizedJobTitle?: string | undefined;
@@ -273,6 +272,7 @@ export declare const apiContract: {
273
272
  experienceYears?: number | undefined;
274
273
  } | undefined;
275
274
  telegramMessageDate?: string | undefined;
275
+ createdAt?: string | undefined;
276
276
  updatedAt?: string | undefined;
277
277
  isVisited?: boolean | undefined;
278
278
  }>, "many">;
@@ -281,15 +281,14 @@ export declare const apiContract: {
281
281
  offset: z.ZodNumber;
282
282
  }, "strip", z.ZodTypeAny, {
283
283
  jobs: {
284
- id: string;
285
- telegramMessageId: string;
286
- channelId: string;
287
- rawText: string;
288
- createdAt: string;
289
284
  status?: "pending_parse" | "parsed" | "failed" | undefined;
285
+ _id?: string | undefined;
286
+ telegramMessageId?: string | undefined;
287
+ channelId?: string | undefined;
290
288
  channelUsername?: string | undefined;
291
289
  senderUserId?: string | undefined;
292
290
  senderUsername?: string | undefined;
291
+ rawText?: string | undefined;
293
292
  parsedData?: {
294
293
  jobTitle?: string | undefined;
295
294
  normalizedJobTitle?: string | undefined;
@@ -315,6 +314,7 @@ export declare const apiContract: {
315
314
  experienceYears?: number | undefined;
316
315
  } | undefined;
317
316
  telegramMessageDate?: string | undefined;
317
+ createdAt?: string | undefined;
318
318
  updatedAt?: string | undefined;
319
319
  isVisited?: boolean | undefined;
320
320
  }[];
@@ -323,15 +323,14 @@ export declare const apiContract: {
323
323
  offset: number;
324
324
  }, {
325
325
  jobs: {
326
- id: string;
327
- telegramMessageId: string;
328
- channelId: string;
329
- rawText: string;
330
- createdAt: string;
331
326
  status?: "pending_parse" | "parsed" | "failed" | undefined;
327
+ _id?: string | undefined;
328
+ telegramMessageId?: string | undefined;
329
+ channelId?: string | undefined;
332
330
  channelUsername?: string | undefined;
333
331
  senderUserId?: string | undefined;
334
332
  senderUsername?: string | undefined;
333
+ rawText?: string | undefined;
335
334
  parsedData?: {
336
335
  jobTitle?: string | undefined;
337
336
  normalizedJobTitle?: string | undefined;
@@ -357,6 +356,7 @@ export declare const apiContract: {
357
356
  experienceYears?: number | undefined;
358
357
  } | undefined;
359
358
  telegramMessageDate?: string | undefined;
359
+ createdAt?: string | undefined;
360
360
  updatedAt?: string | undefined;
361
361
  isVisited?: boolean | undefined;
362
362
  }[];
@@ -369,15 +369,14 @@ export declare const apiContract: {
369
369
  success: true;
370
370
  data: {
371
371
  jobs: {
372
- id: string;
373
- telegramMessageId: string;
374
- channelId: string;
375
- rawText: string;
376
- createdAt: string;
377
372
  status?: "pending_parse" | "parsed" | "failed" | undefined;
373
+ _id?: string | undefined;
374
+ telegramMessageId?: string | undefined;
375
+ channelId?: string | undefined;
378
376
  channelUsername?: string | undefined;
379
377
  senderUserId?: string | undefined;
380
378
  senderUsername?: string | undefined;
379
+ rawText?: string | undefined;
381
380
  parsedData?: {
382
381
  jobTitle?: string | undefined;
383
382
  normalizedJobTitle?: string | undefined;
@@ -403,6 +402,7 @@ export declare const apiContract: {
403
402
  experienceYears?: number | undefined;
404
403
  } | undefined;
405
404
  telegramMessageDate?: string | undefined;
405
+ createdAt?: string | undefined;
406
406
  updatedAt?: string | undefined;
407
407
  isVisited?: boolean | undefined;
408
408
  }[];
@@ -415,15 +415,14 @@ export declare const apiContract: {
415
415
  success: true;
416
416
  data: {
417
417
  jobs: {
418
- id: string;
419
- telegramMessageId: string;
420
- channelId: string;
421
- rawText: string;
422
- createdAt: string;
423
418
  status?: "pending_parse" | "parsed" | "failed" | undefined;
419
+ _id?: string | undefined;
420
+ telegramMessageId?: string | undefined;
421
+ channelId?: string | undefined;
424
422
  channelUsername?: string | undefined;
425
423
  senderUserId?: string | undefined;
426
424
  senderUsername?: string | undefined;
425
+ rawText?: string | undefined;
427
426
  parsedData?: {
428
427
  jobTitle?: string | undefined;
429
428
  normalizedJobTitle?: string | undefined;
@@ -449,6 +448,7 @@ export declare const apiContract: {
449
448
  experienceYears?: number | undefined;
450
449
  } | undefined;
451
450
  telegramMessageDate?: string | undefined;
451
+ createdAt?: string | undefined;
452
452
  updatedAt?: string | undefined;
453
453
  isVisited?: boolean | undefined;
454
454
  }[];
@@ -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,14 +308,14 @@ 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;
312
- telegramMessageId: z.ZodString;
313
- channelId: z.ZodString;
314
- channelUsername: z.ZodOptional<z.ZodString>;
315
- senderUserId: z.ZodOptional<z.ZodString>;
316
- senderUsername: z.ZodOptional<z.ZodString>;
317
- rawText: z.ZodString;
318
- parsedData: z.ZodOptional<z.ZodObject<{
311
+ _id: z.ZodOptional<z.ZodString>;
312
+ telegramMessageId: z.ZodOptional<z.ZodString>;
313
+ channelId: z.ZodOptional<z.ZodString>;
314
+ channelUsername: z.ZodOptional<z.ZodOptional<z.ZodString>>;
315
+ senderUserId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
316
+ senderUsername: z.ZodOptional<z.ZodOptional<z.ZodString>>;
317
+ rawText: z.ZodOptional<z.ZodString>;
318
+ parsedData: z.ZodOptional<z.ZodOptional<z.ZodObject<{
319
319
  jobTitle: z.ZodOptional<z.ZodString>;
320
320
  normalizedJobTitle: z.ZodOptional<z.ZodString>;
321
321
  company: z.ZodOptional<z.ZodString>;
@@ -394,22 +394,21 @@ export declare const JobsResponseSchema: z.ZodObject<{
394
394
  benefits?: string[] | undefined;
395
395
  description?: string | undefined;
396
396
  experienceYears?: number | undefined;
397
- }>>;
398
- status: z.ZodOptional<z.ZodEnum<["pending_parse", "parsed", "failed"]>>;
399
- telegramMessageDate: z.ZodOptional<z.ZodString>;
400
- createdAt: z.ZodString;
401
- updatedAt: z.ZodOptional<z.ZodString>;
402
- isVisited: z.ZodOptional<z.ZodBoolean>;
397
+ }>>>;
398
+ status: z.ZodOptional<z.ZodOptional<z.ZodEnum<["pending_parse", "parsed", "failed"]>>>;
399
+ telegramMessageDate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
400
+ createdAt: z.ZodOptional<z.ZodString>;
401
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
402
+ isVisited: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
403
403
  }, "strip", z.ZodTypeAny, {
404
- id: string;
405
- telegramMessageId: string;
406
- channelId: string;
407
- rawText: string;
408
- createdAt: string;
409
404
  status?: "pending_parse" | "parsed" | "failed" | undefined;
405
+ _id?: string | undefined;
406
+ telegramMessageId?: string | undefined;
407
+ channelId?: string | undefined;
410
408
  channelUsername?: string | undefined;
411
409
  senderUserId?: string | undefined;
412
410
  senderUsername?: string | undefined;
411
+ rawText?: string | undefined;
413
412
  parsedData?: {
414
413
  jobTitle?: string | undefined;
415
414
  normalizedJobTitle?: string | undefined;
@@ -435,18 +434,18 @@ export declare const JobsResponseSchema: z.ZodObject<{
435
434
  experienceYears?: number | undefined;
436
435
  } | undefined;
437
436
  telegramMessageDate?: string | undefined;
437
+ createdAt?: string | undefined;
438
438
  updatedAt?: string | undefined;
439
439
  isVisited?: boolean | undefined;
440
440
  }, {
441
- id: string;
442
- telegramMessageId: string;
443
- channelId: string;
444
- rawText: string;
445
- createdAt: string;
446
441
  status?: "pending_parse" | "parsed" | "failed" | undefined;
442
+ _id?: string | undefined;
443
+ telegramMessageId?: string | undefined;
444
+ channelId?: string | undefined;
447
445
  channelUsername?: string | undefined;
448
446
  senderUserId?: string | undefined;
449
447
  senderUsername?: string | undefined;
448
+ rawText?: string | undefined;
450
449
  parsedData?: {
451
450
  jobTitle?: string | undefined;
452
451
  normalizedJobTitle?: string | undefined;
@@ -472,6 +471,7 @@ export declare const JobsResponseSchema: z.ZodObject<{
472
471
  experienceYears?: number | undefined;
473
472
  } | undefined;
474
473
  telegramMessageDate?: string | undefined;
474
+ createdAt?: string | undefined;
475
475
  updatedAt?: string | undefined;
476
476
  isVisited?: boolean | undefined;
477
477
  }>, "many">;
@@ -480,15 +480,14 @@ export declare const JobsResponseSchema: z.ZodObject<{
480
480
  offset: z.ZodNumber;
481
481
  }, "strip", z.ZodTypeAny, {
482
482
  jobs: {
483
- id: string;
484
- telegramMessageId: string;
485
- channelId: string;
486
- rawText: string;
487
- createdAt: string;
488
483
  status?: "pending_parse" | "parsed" | "failed" | undefined;
484
+ _id?: string | undefined;
485
+ telegramMessageId?: string | undefined;
486
+ channelId?: string | undefined;
489
487
  channelUsername?: string | undefined;
490
488
  senderUserId?: string | undefined;
491
489
  senderUsername?: string | undefined;
490
+ rawText?: string | undefined;
492
491
  parsedData?: {
493
492
  jobTitle?: string | undefined;
494
493
  normalizedJobTitle?: string | undefined;
@@ -514,6 +513,7 @@ export declare const JobsResponseSchema: z.ZodObject<{
514
513
  experienceYears?: number | undefined;
515
514
  } | undefined;
516
515
  telegramMessageDate?: string | undefined;
516
+ createdAt?: string | undefined;
517
517
  updatedAt?: string | undefined;
518
518
  isVisited?: boolean | undefined;
519
519
  }[];
@@ -522,15 +522,14 @@ export declare const JobsResponseSchema: z.ZodObject<{
522
522
  offset: number;
523
523
  }, {
524
524
  jobs: {
525
- id: string;
526
- telegramMessageId: string;
527
- channelId: string;
528
- rawText: string;
529
- createdAt: string;
530
525
  status?: "pending_parse" | "parsed" | "failed" | undefined;
526
+ _id?: string | undefined;
527
+ telegramMessageId?: string | undefined;
528
+ channelId?: string | undefined;
531
529
  channelUsername?: string | undefined;
532
530
  senderUserId?: string | undefined;
533
531
  senderUsername?: string | undefined;
532
+ rawText?: string | undefined;
534
533
  parsedData?: {
535
534
  jobTitle?: string | undefined;
536
535
  normalizedJobTitle?: string | undefined;
@@ -556,6 +555,7 @@ export declare const JobsResponseSchema: z.ZodObject<{
556
555
  experienceYears?: number | undefined;
557
556
  } | undefined;
558
557
  telegramMessageDate?: string | undefined;
558
+ createdAt?: string | undefined;
559
559
  updatedAt?: string | undefined;
560
560
  isVisited?: boolean | undefined;
561
561
  }[];
@@ -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(),
@@ -58,7 +58,7 @@ exports.JobFiltersSchema = zod_1.z.object({
58
58
  .optional(),
59
59
  });
60
60
  exports.JobsResponseSchema = zod_1.z.object({
61
- jobs: zod_1.z.array(exports.JobSchema),
61
+ jobs: zod_1.z.array(exports.JobSchema.partial()),
62
62
  total: zod_1.z.number(),
63
63
  limit: zod_1.z.number(),
64
64
  offset: zod_1.z.number(),
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.19",
4
4
  "description": "Shared API contract for telegram-jobs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",