telegram-jobs-contract 1.0.15 → 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.
@@ -9,73 +9,43 @@ export declare const channelsContract: {
9
9
  success: z.ZodLiteral<true>;
10
10
  message: z.ZodString;
11
11
  data: z.ZodArray<z.ZodObject<{
12
- id: z.ZodString;
13
12
  username: z.ZodString;
14
13
  title: z.ZodString;
15
14
  description: z.ZodOptional<z.ZodString>;
16
- category: z.ZodOptional<z.ZodString>;
17
- memberCount: z.ZodOptional<z.ZodString>;
18
- isActive: z.ZodBoolean;
19
- isRecommended: z.ZodBoolean;
20
- lastScrapedAt: z.ZodOptional<z.ZodString>;
21
- createdAt: z.ZodString;
22
- updatedAt: z.ZodOptional<z.ZodString>;
15
+ memberCount: z.ZodOptional<z.ZodNumber>;
16
+ isJoined: z.ZodBoolean;
23
17
  }, "strip", z.ZodTypeAny, {
24
- id: string;
25
- createdAt: string;
26
18
  username: string;
27
19
  title: string;
28
- isActive: boolean;
29
- isRecommended: boolean;
20
+ isJoined: boolean;
30
21
  description?: string | undefined;
31
- updatedAt?: string | undefined;
32
- category?: string | undefined;
33
- memberCount?: string | undefined;
34
- lastScrapedAt?: string | undefined;
22
+ memberCount?: number | undefined;
35
23
  }, {
36
- id: string;
37
- createdAt: string;
38
24
  username: string;
39
25
  title: string;
40
- isActive: boolean;
41
- isRecommended: boolean;
26
+ isJoined: boolean;
42
27
  description?: string | undefined;
43
- updatedAt?: string | undefined;
44
- category?: string | undefined;
45
- memberCount?: string | undefined;
46
- lastScrapedAt?: string | undefined;
28
+ memberCount?: number | undefined;
47
29
  }>, "many">;
48
30
  }, "strip", z.ZodTypeAny, {
49
31
  message: string;
50
32
  success: true;
51
33
  data: {
52
- id: string;
53
- createdAt: string;
54
34
  username: string;
55
35
  title: string;
56
- isActive: boolean;
57
- isRecommended: boolean;
36
+ isJoined: boolean;
58
37
  description?: string | undefined;
59
- updatedAt?: string | undefined;
60
- category?: string | undefined;
61
- memberCount?: string | undefined;
62
- lastScrapedAt?: string | undefined;
38
+ memberCount?: number | undefined;
63
39
  }[];
64
40
  }, {
65
41
  message: string;
66
42
  success: true;
67
43
  data: {
68
- id: string;
69
- createdAt: string;
70
44
  username: string;
71
45
  title: string;
72
- isActive: boolean;
73
- isRecommended: boolean;
46
+ isJoined: boolean;
74
47
  description?: string | undefined;
75
- updatedAt?: string | undefined;
76
- category?: string | undefined;
77
- memberCount?: string | undefined;
78
- lastScrapedAt?: string | undefined;
48
+ memberCount?: number | undefined;
79
49
  }[];
80
50
  }>;
81
51
  401: z.ZodObject<{
@@ -115,73 +85,43 @@ export declare const channelsContract: {
115
85
  success: z.ZodLiteral<true>;
116
86
  message: z.ZodString;
117
87
  data: z.ZodArray<z.ZodObject<{
118
- id: z.ZodString;
119
88
  username: z.ZodString;
120
89
  title: z.ZodString;
121
90
  description: z.ZodOptional<z.ZodString>;
122
- category: z.ZodOptional<z.ZodString>;
123
- memberCount: z.ZodOptional<z.ZodString>;
124
- isActive: z.ZodBoolean;
125
- isRecommended: z.ZodBoolean;
126
- lastScrapedAt: z.ZodOptional<z.ZodString>;
127
- createdAt: z.ZodString;
128
- updatedAt: z.ZodOptional<z.ZodString>;
91
+ memberCount: z.ZodOptional<z.ZodNumber>;
92
+ isJoined: z.ZodBoolean;
129
93
  }, "strip", z.ZodTypeAny, {
130
- id: string;
131
- createdAt: string;
132
94
  username: string;
133
95
  title: string;
134
- isActive: boolean;
135
- isRecommended: boolean;
96
+ isJoined: boolean;
136
97
  description?: string | undefined;
137
- updatedAt?: string | undefined;
138
- category?: string | undefined;
139
- memberCount?: string | undefined;
140
- lastScrapedAt?: string | undefined;
98
+ memberCount?: number | undefined;
141
99
  }, {
142
- id: string;
143
- createdAt: string;
144
100
  username: string;
145
101
  title: string;
146
- isActive: boolean;
147
- isRecommended: boolean;
102
+ isJoined: boolean;
148
103
  description?: string | undefined;
149
- updatedAt?: string | undefined;
150
- category?: string | undefined;
151
- memberCount?: string | undefined;
152
- lastScrapedAt?: string | undefined;
104
+ memberCount?: number | undefined;
153
105
  }>, "many">;
154
106
  }, "strip", z.ZodTypeAny, {
155
107
  message: string;
156
108
  success: true;
157
109
  data: {
158
- id: string;
159
- createdAt: string;
160
110
  username: string;
161
111
  title: string;
162
- isActive: boolean;
163
- isRecommended: boolean;
112
+ isJoined: boolean;
164
113
  description?: string | undefined;
165
- updatedAt?: string | undefined;
166
- category?: string | undefined;
167
- memberCount?: string | undefined;
168
- lastScrapedAt?: string | undefined;
114
+ memberCount?: number | undefined;
169
115
  }[];
170
116
  }, {
171
117
  message: string;
172
118
  success: true;
173
119
  data: {
174
- id: string;
175
- createdAt: string;
176
120
  username: string;
177
121
  title: string;
178
- isActive: boolean;
179
- isRecommended: boolean;
122
+ isJoined: boolean;
180
123
  description?: string | undefined;
181
- updatedAt?: string | undefined;
182
- category?: string | undefined;
183
- memberCount?: string | undefined;
184
- lastScrapedAt?: string | undefined;
124
+ memberCount?: number | undefined;
185
125
  }[];
186
126
  }>;
187
127
  401: z.ZodObject<{
@@ -221,73 +161,43 @@ export declare const channelsContract: {
221
161
  success: z.ZodLiteral<true>;
222
162
  message: z.ZodString;
223
163
  data: z.ZodArray<z.ZodObject<{
224
- id: z.ZodString;
225
164
  username: z.ZodString;
226
165
  title: z.ZodString;
227
166
  description: z.ZodOptional<z.ZodString>;
228
- category: z.ZodOptional<z.ZodString>;
229
- memberCount: z.ZodOptional<z.ZodString>;
230
- isActive: z.ZodBoolean;
231
- isRecommended: z.ZodBoolean;
232
- lastScrapedAt: z.ZodOptional<z.ZodString>;
233
- createdAt: z.ZodString;
234
- updatedAt: z.ZodOptional<z.ZodString>;
167
+ memberCount: z.ZodOptional<z.ZodNumber>;
168
+ isJoined: z.ZodBoolean;
235
169
  }, "strip", z.ZodTypeAny, {
236
- id: string;
237
- createdAt: string;
238
170
  username: string;
239
171
  title: string;
240
- isActive: boolean;
241
- isRecommended: boolean;
172
+ isJoined: boolean;
242
173
  description?: string | undefined;
243
- updatedAt?: string | undefined;
244
- category?: string | undefined;
245
- memberCount?: string | undefined;
246
- lastScrapedAt?: string | undefined;
174
+ memberCount?: number | undefined;
247
175
  }, {
248
- id: string;
249
- createdAt: string;
250
176
  username: string;
251
177
  title: string;
252
- isActive: boolean;
253
- isRecommended: boolean;
178
+ isJoined: boolean;
254
179
  description?: string | undefined;
255
- updatedAt?: string | undefined;
256
- category?: string | undefined;
257
- memberCount?: string | undefined;
258
- lastScrapedAt?: string | undefined;
180
+ memberCount?: number | undefined;
259
181
  }>, "many">;
260
182
  }, "strip", z.ZodTypeAny, {
261
183
  message: string;
262
184
  success: true;
263
185
  data: {
264
- id: string;
265
- createdAt: string;
266
186
  username: string;
267
187
  title: string;
268
- isActive: boolean;
269
- isRecommended: boolean;
188
+ isJoined: boolean;
270
189
  description?: string | undefined;
271
- updatedAt?: string | undefined;
272
- category?: string | undefined;
273
- memberCount?: string | undefined;
274
- lastScrapedAt?: string | undefined;
190
+ memberCount?: number | undefined;
275
191
  }[];
276
192
  }, {
277
193
  message: string;
278
194
  success: true;
279
195
  data: {
280
- id: string;
281
- createdAt: string;
282
196
  username: string;
283
197
  title: string;
284
- isActive: boolean;
285
- isRecommended: boolean;
198
+ isJoined: boolean;
286
199
  description?: string | undefined;
287
- updatedAt?: string | undefined;
288
- category?: string | undefined;
289
- memberCount?: string | undefined;
290
- lastScrapedAt?: string | undefined;
200
+ memberCount?: number | undefined;
291
201
  }[];
292
202
  }>;
293
203
  500: z.ZodObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"channels.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/channels.contract.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAaxB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkI3B,CAAC"}
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.channelsContract = void 0;
4
4
  const core_1 = require("@ts-rest/core");
5
- const channels_1 = require("../schemas/channels");
6
5
  const errors_1 = require("../schemas/errors");
7
6
  const zod_1 = require("zod");
8
7
  const c = (0, core_1.initContract)();
@@ -19,7 +18,7 @@ exports.channelsContract = c.router({
19
18
  method: 'GET',
20
19
  path: '/api/channels/available',
21
20
  responses: {
22
- 200: (0, errors_1.SuccessResponseSchema)(zod_1.z.array(channels_1.ChannelSchema)),
21
+ 200: (0, errors_1.SuccessResponseSchema)(zod_1.z.array(ChannelInfoSchema)),
23
22
  401: errors_1.ErrorResponseSchema,
24
23
  500: errors_1.ErrorResponseSchema,
25
24
  },
@@ -29,7 +28,7 @@ exports.channelsContract = c.router({
29
28
  method: 'GET',
30
29
  path: '/api/channels/user-channels',
31
30
  responses: {
32
- 200: (0, errors_1.SuccessResponseSchema)(zod_1.z.array(channels_1.ChannelSchema)),
31
+ 200: (0, errors_1.SuccessResponseSchema)(zod_1.z.array(ChannelInfoSchema)),
33
32
  401: errors_1.ErrorResponseSchema,
34
33
  500: errors_1.ErrorResponseSchema,
35
34
  },
@@ -39,7 +38,7 @@ exports.channelsContract = c.router({
39
38
  method: 'GET',
40
39
  path: '/api/channels/recommended',
41
40
  responses: {
42
- 200: (0, errors_1.SuccessResponseSchema)(zod_1.z.array(channels_1.ChannelSchema)),
41
+ 200: (0, errors_1.SuccessResponseSchema)(zod_1.z.array(ChannelInfoSchema)),
43
42
  500: errors_1.ErrorResponseSchema,
44
43
  },
45
44
  summary: 'Get recommended channels',
@@ -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;
@@ -959,73 +959,43 @@ export declare const apiContract: {
959
959
  success: z.ZodLiteral<true>;
960
960
  message: z.ZodString;
961
961
  data: z.ZodArray<z.ZodObject<{
962
- id: z.ZodString;
963
962
  username: z.ZodString;
964
963
  title: z.ZodString;
965
964
  description: z.ZodOptional<z.ZodString>;
966
- category: z.ZodOptional<z.ZodString>;
967
- memberCount: z.ZodOptional<z.ZodString>;
968
- isActive: z.ZodBoolean;
969
- isRecommended: z.ZodBoolean;
970
- lastScrapedAt: z.ZodOptional<z.ZodString>;
971
- createdAt: z.ZodString;
972
- updatedAt: z.ZodOptional<z.ZodString>;
965
+ memberCount: z.ZodOptional<z.ZodNumber>;
966
+ isJoined: z.ZodBoolean;
973
967
  }, "strip", z.ZodTypeAny, {
974
- id: string;
975
- createdAt: string;
976
968
  username: string;
977
969
  title: string;
978
- isActive: boolean;
979
- isRecommended: boolean;
970
+ isJoined: boolean;
980
971
  description?: string | undefined;
981
- updatedAt?: string | undefined;
982
- category?: string | undefined;
983
- memberCount?: string | undefined;
984
- lastScrapedAt?: string | undefined;
972
+ memberCount?: number | undefined;
985
973
  }, {
986
- id: string;
987
- createdAt: string;
988
974
  username: string;
989
975
  title: string;
990
- isActive: boolean;
991
- isRecommended: boolean;
976
+ isJoined: boolean;
992
977
  description?: string | undefined;
993
- updatedAt?: string | undefined;
994
- category?: string | undefined;
995
- memberCount?: string | undefined;
996
- lastScrapedAt?: string | undefined;
978
+ memberCount?: number | undefined;
997
979
  }>, "many">;
998
980
  }, "strip", z.ZodTypeAny, {
999
981
  message: string;
1000
982
  success: true;
1001
983
  data: {
1002
- id: string;
1003
- createdAt: string;
1004
984
  username: string;
1005
985
  title: string;
1006
- isActive: boolean;
1007
- isRecommended: boolean;
986
+ isJoined: boolean;
1008
987
  description?: string | undefined;
1009
- updatedAt?: string | undefined;
1010
- category?: string | undefined;
1011
- memberCount?: string | undefined;
1012
- lastScrapedAt?: string | undefined;
988
+ memberCount?: number | undefined;
1013
989
  }[];
1014
990
  }, {
1015
991
  message: string;
1016
992
  success: true;
1017
993
  data: {
1018
- id: string;
1019
- createdAt: string;
1020
994
  username: string;
1021
995
  title: string;
1022
- isActive: boolean;
1023
- isRecommended: boolean;
996
+ isJoined: boolean;
1024
997
  description?: string | undefined;
1025
- updatedAt?: string | undefined;
1026
- category?: string | undefined;
1027
- memberCount?: string | undefined;
1028
- lastScrapedAt?: string | undefined;
998
+ memberCount?: number | undefined;
1029
999
  }[];
1030
1000
  }>;
1031
1001
  401: z.ZodObject<{
@@ -1065,73 +1035,43 @@ export declare const apiContract: {
1065
1035
  success: z.ZodLiteral<true>;
1066
1036
  message: z.ZodString;
1067
1037
  data: z.ZodArray<z.ZodObject<{
1068
- id: z.ZodString;
1069
1038
  username: z.ZodString;
1070
1039
  title: z.ZodString;
1071
1040
  description: z.ZodOptional<z.ZodString>;
1072
- category: z.ZodOptional<z.ZodString>;
1073
- memberCount: z.ZodOptional<z.ZodString>;
1074
- isActive: z.ZodBoolean;
1075
- isRecommended: z.ZodBoolean;
1076
- lastScrapedAt: z.ZodOptional<z.ZodString>;
1077
- createdAt: z.ZodString;
1078
- updatedAt: z.ZodOptional<z.ZodString>;
1041
+ memberCount: z.ZodOptional<z.ZodNumber>;
1042
+ isJoined: z.ZodBoolean;
1079
1043
  }, "strip", z.ZodTypeAny, {
1080
- id: string;
1081
- createdAt: string;
1082
1044
  username: string;
1083
1045
  title: string;
1084
- isActive: boolean;
1085
- isRecommended: boolean;
1046
+ isJoined: boolean;
1086
1047
  description?: string | undefined;
1087
- updatedAt?: string | undefined;
1088
- category?: string | undefined;
1089
- memberCount?: string | undefined;
1090
- lastScrapedAt?: string | undefined;
1048
+ memberCount?: number | undefined;
1091
1049
  }, {
1092
- id: string;
1093
- createdAt: string;
1094
1050
  username: string;
1095
1051
  title: string;
1096
- isActive: boolean;
1097
- isRecommended: boolean;
1052
+ isJoined: boolean;
1098
1053
  description?: string | undefined;
1099
- updatedAt?: string | undefined;
1100
- category?: string | undefined;
1101
- memberCount?: string | undefined;
1102
- lastScrapedAt?: string | undefined;
1054
+ memberCount?: number | undefined;
1103
1055
  }>, "many">;
1104
1056
  }, "strip", z.ZodTypeAny, {
1105
1057
  message: string;
1106
1058
  success: true;
1107
1059
  data: {
1108
- id: string;
1109
- createdAt: string;
1110
1060
  username: string;
1111
1061
  title: string;
1112
- isActive: boolean;
1113
- isRecommended: boolean;
1062
+ isJoined: boolean;
1114
1063
  description?: string | undefined;
1115
- updatedAt?: string | undefined;
1116
- category?: string | undefined;
1117
- memberCount?: string | undefined;
1118
- lastScrapedAt?: string | undefined;
1064
+ memberCount?: number | undefined;
1119
1065
  }[];
1120
1066
  }, {
1121
1067
  message: string;
1122
1068
  success: true;
1123
1069
  data: {
1124
- id: string;
1125
- createdAt: string;
1126
1070
  username: string;
1127
1071
  title: string;
1128
- isActive: boolean;
1129
- isRecommended: boolean;
1072
+ isJoined: boolean;
1130
1073
  description?: string | undefined;
1131
- updatedAt?: string | undefined;
1132
- category?: string | undefined;
1133
- memberCount?: string | undefined;
1134
- lastScrapedAt?: string | undefined;
1074
+ memberCount?: number | undefined;
1135
1075
  }[];
1136
1076
  }>;
1137
1077
  401: z.ZodObject<{
@@ -1171,73 +1111,43 @@ export declare const apiContract: {
1171
1111
  success: z.ZodLiteral<true>;
1172
1112
  message: z.ZodString;
1173
1113
  data: z.ZodArray<z.ZodObject<{
1174
- id: z.ZodString;
1175
1114
  username: z.ZodString;
1176
1115
  title: z.ZodString;
1177
1116
  description: z.ZodOptional<z.ZodString>;
1178
- category: z.ZodOptional<z.ZodString>;
1179
- memberCount: z.ZodOptional<z.ZodString>;
1180
- isActive: z.ZodBoolean;
1181
- isRecommended: z.ZodBoolean;
1182
- lastScrapedAt: z.ZodOptional<z.ZodString>;
1183
- createdAt: z.ZodString;
1184
- updatedAt: z.ZodOptional<z.ZodString>;
1117
+ memberCount: z.ZodOptional<z.ZodNumber>;
1118
+ isJoined: z.ZodBoolean;
1185
1119
  }, "strip", z.ZodTypeAny, {
1186
- id: string;
1187
- createdAt: string;
1188
1120
  username: string;
1189
1121
  title: string;
1190
- isActive: boolean;
1191
- isRecommended: boolean;
1122
+ isJoined: boolean;
1192
1123
  description?: string | undefined;
1193
- updatedAt?: string | undefined;
1194
- category?: string | undefined;
1195
- memberCount?: string | undefined;
1196
- lastScrapedAt?: string | undefined;
1124
+ memberCount?: number | undefined;
1197
1125
  }, {
1198
- id: string;
1199
- createdAt: string;
1200
1126
  username: string;
1201
1127
  title: string;
1202
- isActive: boolean;
1203
- isRecommended: boolean;
1128
+ isJoined: boolean;
1204
1129
  description?: string | undefined;
1205
- updatedAt?: string | undefined;
1206
- category?: string | undefined;
1207
- memberCount?: string | undefined;
1208
- lastScrapedAt?: string | undefined;
1130
+ memberCount?: number | undefined;
1209
1131
  }>, "many">;
1210
1132
  }, "strip", z.ZodTypeAny, {
1211
1133
  message: string;
1212
1134
  success: true;
1213
1135
  data: {
1214
- id: string;
1215
- createdAt: string;
1216
1136
  username: string;
1217
1137
  title: string;
1218
- isActive: boolean;
1219
- isRecommended: boolean;
1138
+ isJoined: boolean;
1220
1139
  description?: string | undefined;
1221
- updatedAt?: string | undefined;
1222
- category?: string | undefined;
1223
- memberCount?: string | undefined;
1224
- lastScrapedAt?: string | undefined;
1140
+ memberCount?: number | undefined;
1225
1141
  }[];
1226
1142
  }, {
1227
1143
  message: string;
1228
1144
  success: true;
1229
1145
  data: {
1230
- id: string;
1231
- createdAt: string;
1232
1146
  username: string;
1233
1147
  title: string;
1234
- isActive: boolean;
1235
- isRecommended: boolean;
1148
+ isJoined: boolean;
1236
1149
  description?: string | undefined;
1237
- updatedAt?: string | undefined;
1238
- category?: string | undefined;
1239
- memberCount?: string | undefined;
1240
- lastScrapedAt?: string | undefined;
1150
+ memberCount?: number | undefined;
1241
1151
  }[];
1242
1152
  }>;
1243
1153
  500: z.ZodObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAK/D,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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C,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC5D,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAGhE,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AACpD,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AACtD,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAC3C,OAAO,6BAA6B,CACrC,CAAC;AAGF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAG1D,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAGlD,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC1D,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
@@ -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.15",
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",