telegram-jobs-contract 1.0.18 → 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.
- package/dist/contracts/jobs.contract.d.ts +44 -44
- package/dist/index.d.ts +44 -44
- package/dist/schemas/jobs.d.ts +34 -34
- package/dist/schemas/jobs.js +1 -1
- package/package.json +1 -1
|
@@ -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
|
}[];
|
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
|
}[];
|
package/dist/schemas/jobs.d.ts
CHANGED
|
@@ -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
|
}[];
|
package/dist/schemas/jobs.js
CHANGED
|
@@ -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(),
|