lancer-shared 1.2.326 → 1.2.328

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.
Files changed (43) hide show
  1. package/dist/bundle.cjs.js +112 -0
  2. package/dist/bundle.cjs.js.map +1 -1
  3. package/dist/bundle.esm.js +100 -1
  4. package/dist/bundle.esm.js.map +1 -1
  5. package/dist/constants/chat.d.ts +17 -1
  6. package/dist/constants/routes.d.ts +2 -0
  7. package/dist/schemas/account/bidder-account.d.ts +33 -33
  8. package/dist/schemas/account/scraper-account.d.ts +10 -10
  9. package/dist/schemas/agent/index.d.ts +208 -208
  10. package/dist/schemas/agent/proposal.d.ts +2 -2
  11. package/dist/schemas/alert/index.d.ts +12 -0
  12. package/dist/schemas/bidder/bid.d.ts +1744 -1744
  13. package/dist/schemas/campaign/campaign-analytics.d.ts +250 -250
  14. package/dist/schemas/campaign/campaign-chat-bot.d.ts +4 -4
  15. package/dist/schemas/campaign/campaign.d.ts +69 -69
  16. package/dist/schemas/chat/index.d.ts +563 -68
  17. package/dist/schemas/dashboard/index.d.ts +18 -18
  18. package/dist/schemas/golden-dataset/sample.d.ts +4 -4
  19. package/dist/schemas/index.d.ts +1 -0
  20. package/dist/schemas/job/index.d.ts +70 -70
  21. package/dist/schemas/job/job-details.d.ts +14 -14
  22. package/dist/schemas/job/job-listing.d.ts +10 -10
  23. package/dist/schemas/job/nuxt.d.ts +6 -6
  24. package/dist/schemas/lead/index.d.ts +683 -683
  25. package/dist/schemas/lead/lead-status.d.ts +2 -2
  26. package/dist/schemas/logger/feed/feed-job-enrich.d.ts +98 -98
  27. package/dist/schemas/logger/log-event.d.ts +40 -40
  28. package/dist/schemas/logger/scraper-events.d.ts +8 -8
  29. package/dist/schemas/notifications/index.d.ts +4 -4
  30. package/dist/schemas/organization/billing.d.ts +2 -2
  31. package/dist/schemas/organization/index.d.ts +34 -34
  32. package/dist/schemas/organization/onboarding.d.ts +2 -2
  33. package/dist/schemas/organization/organization-leads.d.ts +2 -2
  34. package/dist/schemas/organization/subscription.d.ts +6 -6
  35. package/dist/schemas/plan/index.d.ts +2 -2
  36. package/dist/schemas/proxy/proxy.d.ts +3 -3
  37. package/dist/schemas/scraper/scrape-payload.d.ts +262 -262
  38. package/dist/schemas/scraper/scrape-result.d.ts +86 -86
  39. package/dist/schemas/transaction/index.d.ts +4 -4
  40. package/dist/schemas/upwork-talent/index.d.ts +8 -8
  41. package/dist/schemas/usage/index.d.ts +2 -2
  42. package/dist/schemas/usage-event/index.d.ts +8 -8
  43. package/package.json +1 -1
@@ -4,15 +4,126 @@ export declare const roomNoteSchema: z.ZodObject<{
4
4
  createdAt: z.ZodNumber;
5
5
  updatedAt: z.ZodNumber;
6
6
  }, "strip", z.ZodTypeAny, {
7
- note: string | null;
8
7
  createdAt: number;
9
8
  updatedAt: number;
10
- }, {
11
9
  note: string | null;
10
+ }, {
12
11
  createdAt: number;
13
12
  updatedAt: number;
13
+ note: string | null;
14
14
  }>;
15
15
  export type RoomNote = z.infer<typeof roomNoteSchema>;
16
+ export declare const roomCrmStatusEnum: z.ZodEnum<["replied", "interested", "follow_up", "not_interested", "closed"]>;
17
+ export type RoomCrmStatus = z.infer<typeof roomCrmStatusEnum>;
18
+ export declare const roomJobClientHistorySchema: z.ZodObject<{
19
+ jobUrl: z.ZodNullable<z.ZodString>;
20
+ title: z.ZodNullable<z.ZodString>;
21
+ clientInfo: z.ZodNullable<z.ZodObject<{
22
+ isPaymentVerified: z.ZodNullable<z.ZodBoolean>;
23
+ isPhoneVerified: z.ZodNullable<z.ZodBoolean>;
24
+ numberOfReviews: z.ZodNullable<z.ZodNumber>;
25
+ rating: z.ZodNullable<z.ZodNumber>;
26
+ country: z.ZodNullable<z.ZodString>;
27
+ region: z.ZodNullable<z.ZodString>;
28
+ jobsPosted: z.ZodNullable<z.ZodNumber>;
29
+ totalSpent: z.ZodNullable<z.ZodNumber>;
30
+ numberOfHires: z.ZodNullable<z.ZodNumber>;
31
+ activeEngagements: z.ZodNullable<z.ZodNumber>;
32
+ openJobs: z.ZodNullable<z.ZodNumber>;
33
+ hireRate: z.ZodNullable<z.ZodNumber>;
34
+ memberSince: z.ZodNullable<z.ZodString>;
35
+ companyIndustry: z.ZodNullable<z.ZodString>;
36
+ companySize: z.ZodNullable<z.ZodString>;
37
+ enterpriseClient: z.ZodNullable<z.ZodBoolean>;
38
+ avgHourlyRatePaid: z.ZodNullable<z.ZodNumber>;
39
+ companyId: z.ZodNullable<z.ZodString>;
40
+ }, "strip", z.ZodTypeAny, {
41
+ country: string | null;
42
+ region: string | null;
43
+ openJobs: number | null;
44
+ isPhoneVerified: boolean | null;
45
+ isPaymentVerified: boolean | null;
46
+ numberOfReviews: number | null;
47
+ rating: number | null;
48
+ jobsPosted: number | null;
49
+ totalSpent: number | null;
50
+ numberOfHires: number | null;
51
+ activeEngagements: number | null;
52
+ hireRate: number | null;
53
+ memberSince: string | null;
54
+ companyIndustry: string | null;
55
+ companySize: string | null;
56
+ enterpriseClient: boolean | null;
57
+ avgHourlyRatePaid: number | null;
58
+ companyId: string | null;
59
+ }, {
60
+ country: string | null;
61
+ region: string | null;
62
+ openJobs: number | null;
63
+ isPhoneVerified: boolean | null;
64
+ isPaymentVerified: boolean | null;
65
+ numberOfReviews: number | null;
66
+ rating: number | null;
67
+ jobsPosted: number | null;
68
+ totalSpent: number | null;
69
+ numberOfHires: number | null;
70
+ activeEngagements: number | null;
71
+ hireRate: number | null;
72
+ memberSince: string | null;
73
+ companyIndustry: string | null;
74
+ companySize: string | null;
75
+ enterpriseClient: boolean | null;
76
+ avgHourlyRatePaid: number | null;
77
+ companyId: string | null;
78
+ }>>;
79
+ }, "strip", z.ZodTypeAny, {
80
+ title: string | null;
81
+ jobUrl: string | null;
82
+ clientInfo: {
83
+ country: string | null;
84
+ region: string | null;
85
+ openJobs: number | null;
86
+ isPhoneVerified: boolean | null;
87
+ isPaymentVerified: boolean | null;
88
+ numberOfReviews: number | null;
89
+ rating: number | null;
90
+ jobsPosted: number | null;
91
+ totalSpent: number | null;
92
+ numberOfHires: number | null;
93
+ activeEngagements: number | null;
94
+ hireRate: number | null;
95
+ memberSince: string | null;
96
+ companyIndustry: string | null;
97
+ companySize: string | null;
98
+ enterpriseClient: boolean | null;
99
+ avgHourlyRatePaid: number | null;
100
+ companyId: string | null;
101
+ } | null;
102
+ }, {
103
+ title: string | null;
104
+ jobUrl: string | null;
105
+ clientInfo: {
106
+ country: string | null;
107
+ region: string | null;
108
+ openJobs: number | null;
109
+ isPhoneVerified: boolean | null;
110
+ isPaymentVerified: boolean | null;
111
+ numberOfReviews: number | null;
112
+ rating: number | null;
113
+ jobsPosted: number | null;
114
+ totalSpent: number | null;
115
+ numberOfHires: number | null;
116
+ activeEngagements: number | null;
117
+ hireRate: number | null;
118
+ memberSince: string | null;
119
+ companyIndustry: string | null;
120
+ companySize: string | null;
121
+ enterpriseClient: boolean | null;
122
+ avgHourlyRatePaid: number | null;
123
+ companyId: string | null;
124
+ } | null;
125
+ }>;
126
+ export type RoomJobClientHistory = z.infer<typeof roomJobClientHistorySchema>;
16
127
  export declare const roomSchema: z.ZodObject<{
17
128
  id: z.ZodString;
18
129
  roomId: z.ZodString;
@@ -34,19 +145,19 @@ export declare const roomSchema: z.ZodObject<{
34
145
  }, "strip", z.ZodTypeAny, {
35
146
  freelancerId: string;
36
147
  freelancerOrgId: string;
148
+ jobTitle?: string | undefined;
37
149
  freelancerName?: string | undefined;
38
150
  clientId?: string | undefined;
39
151
  clientName?: string | undefined;
40
- jobTitle?: string | undefined;
41
152
  currentStatus?: string | undefined;
42
153
  associatedAgencyOrgId?: string | undefined;
43
154
  }, {
44
155
  freelancerId: string;
45
156
  freelancerOrgId: string;
157
+ jobTitle?: string | undefined;
46
158
  freelancerName?: string | undefined;
47
159
  clientId?: string | undefined;
48
160
  clientName?: string | undefined;
49
- jobTitle?: string | undefined;
50
161
  currentStatus?: string | undefined;
51
162
  associatedAgencyOrgId?: string | undefined;
52
163
  }>;
@@ -77,33 +188,143 @@ export declare const roomSchema: z.ZodObject<{
77
188
  createdAt: z.ZodNumber;
78
189
  updatedAt: z.ZodNumber;
79
190
  }, "strip", z.ZodTypeAny, {
80
- note: string | null;
81
191
  createdAt: number;
82
192
  updatedAt: number;
83
- }, {
84
193
  note: string | null;
194
+ }, {
85
195
  createdAt: number;
86
196
  updatedAt: number;
197
+ note: string | null;
198
+ }>>;
199
+ crmStatus: z.ZodOptional<z.ZodEnum<["replied", "interested", "follow_up", "not_interested", "closed"]>>;
200
+ crmStatusUpdatedAt: z.ZodOptional<z.ZodNumber>;
201
+ jobClientHistory: z.ZodOptional<z.ZodObject<{
202
+ jobUrl: z.ZodNullable<z.ZodString>;
203
+ title: z.ZodNullable<z.ZodString>;
204
+ clientInfo: z.ZodNullable<z.ZodObject<{
205
+ isPaymentVerified: z.ZodNullable<z.ZodBoolean>;
206
+ isPhoneVerified: z.ZodNullable<z.ZodBoolean>;
207
+ numberOfReviews: z.ZodNullable<z.ZodNumber>;
208
+ rating: z.ZodNullable<z.ZodNumber>;
209
+ country: z.ZodNullable<z.ZodString>;
210
+ region: z.ZodNullable<z.ZodString>;
211
+ jobsPosted: z.ZodNullable<z.ZodNumber>;
212
+ totalSpent: z.ZodNullable<z.ZodNumber>;
213
+ numberOfHires: z.ZodNullable<z.ZodNumber>;
214
+ activeEngagements: z.ZodNullable<z.ZodNumber>;
215
+ openJobs: z.ZodNullable<z.ZodNumber>;
216
+ hireRate: z.ZodNullable<z.ZodNumber>;
217
+ memberSince: z.ZodNullable<z.ZodString>;
218
+ companyIndustry: z.ZodNullable<z.ZodString>;
219
+ companySize: z.ZodNullable<z.ZodString>;
220
+ enterpriseClient: z.ZodNullable<z.ZodBoolean>;
221
+ avgHourlyRatePaid: z.ZodNullable<z.ZodNumber>;
222
+ companyId: z.ZodNullable<z.ZodString>;
223
+ }, "strip", z.ZodTypeAny, {
224
+ country: string | null;
225
+ region: string | null;
226
+ openJobs: number | null;
227
+ isPhoneVerified: boolean | null;
228
+ isPaymentVerified: boolean | null;
229
+ numberOfReviews: number | null;
230
+ rating: number | null;
231
+ jobsPosted: number | null;
232
+ totalSpent: number | null;
233
+ numberOfHires: number | null;
234
+ activeEngagements: number | null;
235
+ hireRate: number | null;
236
+ memberSince: string | null;
237
+ companyIndustry: string | null;
238
+ companySize: string | null;
239
+ enterpriseClient: boolean | null;
240
+ avgHourlyRatePaid: number | null;
241
+ companyId: string | null;
242
+ }, {
243
+ country: string | null;
244
+ region: string | null;
245
+ openJobs: number | null;
246
+ isPhoneVerified: boolean | null;
247
+ isPaymentVerified: boolean | null;
248
+ numberOfReviews: number | null;
249
+ rating: number | null;
250
+ jobsPosted: number | null;
251
+ totalSpent: number | null;
252
+ numberOfHires: number | null;
253
+ activeEngagements: number | null;
254
+ hireRate: number | null;
255
+ memberSince: string | null;
256
+ companyIndustry: string | null;
257
+ companySize: string | null;
258
+ enterpriseClient: boolean | null;
259
+ avgHourlyRatePaid: number | null;
260
+ companyId: string | null;
261
+ }>>;
262
+ }, "strip", z.ZodTypeAny, {
263
+ title: string | null;
264
+ jobUrl: string | null;
265
+ clientInfo: {
266
+ country: string | null;
267
+ region: string | null;
268
+ openJobs: number | null;
269
+ isPhoneVerified: boolean | null;
270
+ isPaymentVerified: boolean | null;
271
+ numberOfReviews: number | null;
272
+ rating: number | null;
273
+ jobsPosted: number | null;
274
+ totalSpent: number | null;
275
+ numberOfHires: number | null;
276
+ activeEngagements: number | null;
277
+ hireRate: number | null;
278
+ memberSince: string | null;
279
+ companyIndustry: string | null;
280
+ companySize: string | null;
281
+ enterpriseClient: boolean | null;
282
+ avgHourlyRatePaid: number | null;
283
+ companyId: string | null;
284
+ } | null;
285
+ }, {
286
+ title: string | null;
287
+ jobUrl: string | null;
288
+ clientInfo: {
289
+ country: string | null;
290
+ region: string | null;
291
+ openJobs: number | null;
292
+ isPhoneVerified: boolean | null;
293
+ isPaymentVerified: boolean | null;
294
+ numberOfReviews: number | null;
295
+ rating: number | null;
296
+ jobsPosted: number | null;
297
+ totalSpent: number | null;
298
+ numberOfHires: number | null;
299
+ activeEngagements: number | null;
300
+ hireRate: number | null;
301
+ memberSince: string | null;
302
+ companyIndustry: string | null;
303
+ companySize: string | null;
304
+ enterpriseClient: boolean | null;
305
+ avgHourlyRatePaid: number | null;
306
+ companyId: string | null;
307
+ } | null;
87
308
  }>>;
88
309
  }, "strip", z.ZodTypeAny, {
89
310
  id: string;
90
- roomId: string;
91
- roomName: string;
92
- topic: string;
93
- organizationUid: string;
94
- organizationType: string;
95
- recentTimestamp: number;
96
- organizationName: string;
97
311
  context: {
98
312
  freelancerId: string;
99
313
  freelancerOrgId: string;
314
+ jobTitle?: string | undefined;
100
315
  freelancerName?: string | undefined;
101
316
  clientId?: string | undefined;
102
317
  clientName?: string | undefined;
103
- jobTitle?: string | undefined;
104
318
  currentStatus?: string | undefined;
105
319
  associatedAgencyOrgId?: string | undefined;
106
320
  };
321
+ organizationName: string;
322
+ organizationType: string;
323
+ roomId: string;
324
+ roomName: string;
325
+ topic: string;
326
+ organizationUid: string;
327
+ recentTimestamp: number;
107
328
  numUnread: number;
108
329
  updatedAt?: number | undefined;
109
330
  latestStory?: {
@@ -117,29 +338,55 @@ export declare const roomSchema: z.ZodObject<{
117
338
  lastFetchedAt?: number | undefined;
118
339
  roomTypeExtended?: string | undefined;
119
340
  roomNote?: {
120
- note: string | null;
121
341
  createdAt: number;
122
342
  updatedAt: number;
343
+ note: string | null;
344
+ } | undefined;
345
+ crmStatus?: "closed" | "replied" | "interested" | "follow_up" | "not_interested" | undefined;
346
+ crmStatusUpdatedAt?: number | undefined;
347
+ jobClientHistory?: {
348
+ title: string | null;
349
+ jobUrl: string | null;
350
+ clientInfo: {
351
+ country: string | null;
352
+ region: string | null;
353
+ openJobs: number | null;
354
+ isPhoneVerified: boolean | null;
355
+ isPaymentVerified: boolean | null;
356
+ numberOfReviews: number | null;
357
+ rating: number | null;
358
+ jobsPosted: number | null;
359
+ totalSpent: number | null;
360
+ numberOfHires: number | null;
361
+ activeEngagements: number | null;
362
+ hireRate: number | null;
363
+ memberSince: string | null;
364
+ companyIndustry: string | null;
365
+ companySize: string | null;
366
+ enterpriseClient: boolean | null;
367
+ avgHourlyRatePaid: number | null;
368
+ companyId: string | null;
369
+ } | null;
123
370
  } | undefined;
124
371
  }, {
125
372
  id: string;
126
- roomId: string;
127
- roomName: string;
128
- topic: string;
129
- organizationUid: string;
130
- organizationType: string;
131
- recentTimestamp: number;
132
- organizationName: string;
133
373
  context: {
134
374
  freelancerId: string;
135
375
  freelancerOrgId: string;
376
+ jobTitle?: string | undefined;
136
377
  freelancerName?: string | undefined;
137
378
  clientId?: string | undefined;
138
379
  clientName?: string | undefined;
139
- jobTitle?: string | undefined;
140
380
  currentStatus?: string | undefined;
141
381
  associatedAgencyOrgId?: string | undefined;
142
382
  };
383
+ organizationName: string;
384
+ organizationType: string;
385
+ roomId: string;
386
+ roomName: string;
387
+ topic: string;
388
+ organizationUid: string;
389
+ recentTimestamp: number;
143
390
  numUnread: number;
144
391
  updatedAt?: number | undefined;
145
392
  latestStory?: {
@@ -153,9 +400,35 @@ export declare const roomSchema: z.ZodObject<{
153
400
  lastFetchedAt?: number | undefined;
154
401
  roomTypeExtended?: string | undefined;
155
402
  roomNote?: {
156
- note: string | null;
157
403
  createdAt: number;
158
404
  updatedAt: number;
405
+ note: string | null;
406
+ } | undefined;
407
+ crmStatus?: "closed" | "replied" | "interested" | "follow_up" | "not_interested" | undefined;
408
+ crmStatusUpdatedAt?: number | undefined;
409
+ jobClientHistory?: {
410
+ title: string | null;
411
+ jobUrl: string | null;
412
+ clientInfo: {
413
+ country: string | null;
414
+ region: string | null;
415
+ openJobs: number | null;
416
+ isPhoneVerified: boolean | null;
417
+ isPaymentVerified: boolean | null;
418
+ numberOfReviews: number | null;
419
+ rating: number | null;
420
+ jobsPosted: number | null;
421
+ totalSpent: number | null;
422
+ numberOfHires: number | null;
423
+ activeEngagements: number | null;
424
+ hireRate: number | null;
425
+ memberSince: string | null;
426
+ companyIndustry: string | null;
427
+ companySize: string | null;
428
+ enterpriseClient: boolean | null;
429
+ avgHourlyRatePaid: number | null;
430
+ companyId: string | null;
431
+ } | null;
159
432
  } | undefined;
160
433
  }>;
161
434
  export type Room = z.infer<typeof roomSchema>;
@@ -227,19 +500,19 @@ export declare const getRoomsResponseSchema: z.ZodObject<{
227
500
  }, "strip", z.ZodTypeAny, {
228
501
  freelancerId: string;
229
502
  freelancerOrgId: string;
503
+ jobTitle?: string | undefined;
230
504
  freelancerName?: string | undefined;
231
505
  clientId?: string | undefined;
232
506
  clientName?: string | undefined;
233
- jobTitle?: string | undefined;
234
507
  currentStatus?: string | undefined;
235
508
  associatedAgencyOrgId?: string | undefined;
236
509
  }, {
237
510
  freelancerId: string;
238
511
  freelancerOrgId: string;
512
+ jobTitle?: string | undefined;
239
513
  freelancerName?: string | undefined;
240
514
  clientId?: string | undefined;
241
515
  clientName?: string | undefined;
242
- jobTitle?: string | undefined;
243
516
  currentStatus?: string | undefined;
244
517
  associatedAgencyOrgId?: string | undefined;
245
518
  }>;
@@ -270,33 +543,143 @@ export declare const getRoomsResponseSchema: z.ZodObject<{
270
543
  createdAt: z.ZodNumber;
271
544
  updatedAt: z.ZodNumber;
272
545
  }, "strip", z.ZodTypeAny, {
273
- note: string | null;
274
546
  createdAt: number;
275
547
  updatedAt: number;
276
- }, {
277
548
  note: string | null;
549
+ }, {
278
550
  createdAt: number;
279
551
  updatedAt: number;
552
+ note: string | null;
553
+ }>>;
554
+ crmStatus: z.ZodOptional<z.ZodEnum<["replied", "interested", "follow_up", "not_interested", "closed"]>>;
555
+ crmStatusUpdatedAt: z.ZodOptional<z.ZodNumber>;
556
+ jobClientHistory: z.ZodOptional<z.ZodObject<{
557
+ jobUrl: z.ZodNullable<z.ZodString>;
558
+ title: z.ZodNullable<z.ZodString>;
559
+ clientInfo: z.ZodNullable<z.ZodObject<{
560
+ isPaymentVerified: z.ZodNullable<z.ZodBoolean>;
561
+ isPhoneVerified: z.ZodNullable<z.ZodBoolean>;
562
+ numberOfReviews: z.ZodNullable<z.ZodNumber>;
563
+ rating: z.ZodNullable<z.ZodNumber>;
564
+ country: z.ZodNullable<z.ZodString>;
565
+ region: z.ZodNullable<z.ZodString>;
566
+ jobsPosted: z.ZodNullable<z.ZodNumber>;
567
+ totalSpent: z.ZodNullable<z.ZodNumber>;
568
+ numberOfHires: z.ZodNullable<z.ZodNumber>;
569
+ activeEngagements: z.ZodNullable<z.ZodNumber>;
570
+ openJobs: z.ZodNullable<z.ZodNumber>;
571
+ hireRate: z.ZodNullable<z.ZodNumber>;
572
+ memberSince: z.ZodNullable<z.ZodString>;
573
+ companyIndustry: z.ZodNullable<z.ZodString>;
574
+ companySize: z.ZodNullable<z.ZodString>;
575
+ enterpriseClient: z.ZodNullable<z.ZodBoolean>;
576
+ avgHourlyRatePaid: z.ZodNullable<z.ZodNumber>;
577
+ companyId: z.ZodNullable<z.ZodString>;
578
+ }, "strip", z.ZodTypeAny, {
579
+ country: string | null;
580
+ region: string | null;
581
+ openJobs: number | null;
582
+ isPhoneVerified: boolean | null;
583
+ isPaymentVerified: boolean | null;
584
+ numberOfReviews: number | null;
585
+ rating: number | null;
586
+ jobsPosted: number | null;
587
+ totalSpent: number | null;
588
+ numberOfHires: number | null;
589
+ activeEngagements: number | null;
590
+ hireRate: number | null;
591
+ memberSince: string | null;
592
+ companyIndustry: string | null;
593
+ companySize: string | null;
594
+ enterpriseClient: boolean | null;
595
+ avgHourlyRatePaid: number | null;
596
+ companyId: string | null;
597
+ }, {
598
+ country: string | null;
599
+ region: string | null;
600
+ openJobs: number | null;
601
+ isPhoneVerified: boolean | null;
602
+ isPaymentVerified: boolean | null;
603
+ numberOfReviews: number | null;
604
+ rating: number | null;
605
+ jobsPosted: number | null;
606
+ totalSpent: number | null;
607
+ numberOfHires: number | null;
608
+ activeEngagements: number | null;
609
+ hireRate: number | null;
610
+ memberSince: string | null;
611
+ companyIndustry: string | null;
612
+ companySize: string | null;
613
+ enterpriseClient: boolean | null;
614
+ avgHourlyRatePaid: number | null;
615
+ companyId: string | null;
616
+ }>>;
617
+ }, "strip", z.ZodTypeAny, {
618
+ title: string | null;
619
+ jobUrl: string | null;
620
+ clientInfo: {
621
+ country: string | null;
622
+ region: string | null;
623
+ openJobs: number | null;
624
+ isPhoneVerified: boolean | null;
625
+ isPaymentVerified: boolean | null;
626
+ numberOfReviews: number | null;
627
+ rating: number | null;
628
+ jobsPosted: number | null;
629
+ totalSpent: number | null;
630
+ numberOfHires: number | null;
631
+ activeEngagements: number | null;
632
+ hireRate: number | null;
633
+ memberSince: string | null;
634
+ companyIndustry: string | null;
635
+ companySize: string | null;
636
+ enterpriseClient: boolean | null;
637
+ avgHourlyRatePaid: number | null;
638
+ companyId: string | null;
639
+ } | null;
640
+ }, {
641
+ title: string | null;
642
+ jobUrl: string | null;
643
+ clientInfo: {
644
+ country: string | null;
645
+ region: string | null;
646
+ openJobs: number | null;
647
+ isPhoneVerified: boolean | null;
648
+ isPaymentVerified: boolean | null;
649
+ numberOfReviews: number | null;
650
+ rating: number | null;
651
+ jobsPosted: number | null;
652
+ totalSpent: number | null;
653
+ numberOfHires: number | null;
654
+ activeEngagements: number | null;
655
+ hireRate: number | null;
656
+ memberSince: string | null;
657
+ companyIndustry: string | null;
658
+ companySize: string | null;
659
+ enterpriseClient: boolean | null;
660
+ avgHourlyRatePaid: number | null;
661
+ companyId: string | null;
662
+ } | null;
280
663
  }>>;
281
664
  }, "strip", z.ZodTypeAny, {
282
665
  id: string;
283
- roomId: string;
284
- roomName: string;
285
- topic: string;
286
- organizationUid: string;
287
- organizationType: string;
288
- recentTimestamp: number;
289
- organizationName: string;
290
666
  context: {
291
667
  freelancerId: string;
292
668
  freelancerOrgId: string;
669
+ jobTitle?: string | undefined;
293
670
  freelancerName?: string | undefined;
294
671
  clientId?: string | undefined;
295
672
  clientName?: string | undefined;
296
- jobTitle?: string | undefined;
297
673
  currentStatus?: string | undefined;
298
674
  associatedAgencyOrgId?: string | undefined;
299
675
  };
676
+ organizationName: string;
677
+ organizationType: string;
678
+ roomId: string;
679
+ roomName: string;
680
+ topic: string;
681
+ organizationUid: string;
682
+ recentTimestamp: number;
300
683
  numUnread: number;
301
684
  updatedAt?: number | undefined;
302
685
  latestStory?: {
@@ -310,29 +693,55 @@ export declare const getRoomsResponseSchema: z.ZodObject<{
310
693
  lastFetchedAt?: number | undefined;
311
694
  roomTypeExtended?: string | undefined;
312
695
  roomNote?: {
313
- note: string | null;
314
696
  createdAt: number;
315
697
  updatedAt: number;
698
+ note: string | null;
699
+ } | undefined;
700
+ crmStatus?: "closed" | "replied" | "interested" | "follow_up" | "not_interested" | undefined;
701
+ crmStatusUpdatedAt?: number | undefined;
702
+ jobClientHistory?: {
703
+ title: string | null;
704
+ jobUrl: string | null;
705
+ clientInfo: {
706
+ country: string | null;
707
+ region: string | null;
708
+ openJobs: number | null;
709
+ isPhoneVerified: boolean | null;
710
+ isPaymentVerified: boolean | null;
711
+ numberOfReviews: number | null;
712
+ rating: number | null;
713
+ jobsPosted: number | null;
714
+ totalSpent: number | null;
715
+ numberOfHires: number | null;
716
+ activeEngagements: number | null;
717
+ hireRate: number | null;
718
+ memberSince: string | null;
719
+ companyIndustry: string | null;
720
+ companySize: string | null;
721
+ enterpriseClient: boolean | null;
722
+ avgHourlyRatePaid: number | null;
723
+ companyId: string | null;
724
+ } | null;
316
725
  } | undefined;
317
726
  }, {
318
727
  id: string;
319
- roomId: string;
320
- roomName: string;
321
- topic: string;
322
- organizationUid: string;
323
- organizationType: string;
324
- recentTimestamp: number;
325
- organizationName: string;
326
728
  context: {
327
729
  freelancerId: string;
328
730
  freelancerOrgId: string;
731
+ jobTitle?: string | undefined;
329
732
  freelancerName?: string | undefined;
330
733
  clientId?: string | undefined;
331
734
  clientName?: string | undefined;
332
- jobTitle?: string | undefined;
333
735
  currentStatus?: string | undefined;
334
736
  associatedAgencyOrgId?: string | undefined;
335
737
  };
738
+ organizationName: string;
739
+ organizationType: string;
740
+ roomId: string;
741
+ roomName: string;
742
+ topic: string;
743
+ organizationUid: string;
744
+ recentTimestamp: number;
336
745
  numUnread: number;
337
746
  updatedAt?: number | undefined;
338
747
  latestStory?: {
@@ -346,9 +755,35 @@ export declare const getRoomsResponseSchema: z.ZodObject<{
346
755
  lastFetchedAt?: number | undefined;
347
756
  roomTypeExtended?: string | undefined;
348
757
  roomNote?: {
349
- note: string | null;
350
758
  createdAt: number;
351
759
  updatedAt: number;
760
+ note: string | null;
761
+ } | undefined;
762
+ crmStatus?: "closed" | "replied" | "interested" | "follow_up" | "not_interested" | undefined;
763
+ crmStatusUpdatedAt?: number | undefined;
764
+ jobClientHistory?: {
765
+ title: string | null;
766
+ jobUrl: string | null;
767
+ clientInfo: {
768
+ country: string | null;
769
+ region: string | null;
770
+ openJobs: number | null;
771
+ isPhoneVerified: boolean | null;
772
+ isPaymentVerified: boolean | null;
773
+ numberOfReviews: number | null;
774
+ rating: number | null;
775
+ jobsPosted: number | null;
776
+ totalSpent: number | null;
777
+ numberOfHires: number | null;
778
+ activeEngagements: number | null;
779
+ hireRate: number | null;
780
+ memberSince: string | null;
781
+ companyIndustry: string | null;
782
+ companySize: string | null;
783
+ enterpriseClient: boolean | null;
784
+ avgHourlyRatePaid: number | null;
785
+ companyId: string | null;
786
+ } | null;
352
787
  } | undefined;
353
788
  }>, "many">;
354
789
  pagination: z.ZodObject<{
@@ -358,35 +793,35 @@ export declare const getRoomsResponseSchema: z.ZodObject<{
358
793
  total: z.ZodNumber;
359
794
  }, "strip", z.ZodTypeAny, {
360
795
  total: number;
361
- hasMore: boolean;
362
796
  nextCursor: string | null;
797
+ hasMore: boolean;
363
798
  limit: number;
364
799
  }, {
365
800
  total: number;
366
- hasMore: boolean;
367
801
  nextCursor: string | null;
802
+ hasMore: boolean;
368
803
  limit: number;
369
804
  }>;
370
805
  }, "strip", z.ZodTypeAny, {
371
806
  data: {
372
807
  id: string;
373
- roomId: string;
374
- roomName: string;
375
- topic: string;
376
- organizationUid: string;
377
- organizationType: string;
378
- recentTimestamp: number;
379
- organizationName: string;
380
808
  context: {
381
809
  freelancerId: string;
382
810
  freelancerOrgId: string;
811
+ jobTitle?: string | undefined;
383
812
  freelancerName?: string | undefined;
384
813
  clientId?: string | undefined;
385
814
  clientName?: string | undefined;
386
- jobTitle?: string | undefined;
387
815
  currentStatus?: string | undefined;
388
816
  associatedAgencyOrgId?: string | undefined;
389
817
  };
818
+ organizationName: string;
819
+ organizationType: string;
820
+ roomId: string;
821
+ roomName: string;
822
+ topic: string;
823
+ organizationUid: string;
824
+ recentTimestamp: number;
390
825
  numUnread: number;
391
826
  updatedAt?: number | undefined;
392
827
  latestStory?: {
@@ -400,37 +835,63 @@ export declare const getRoomsResponseSchema: z.ZodObject<{
400
835
  lastFetchedAt?: number | undefined;
401
836
  roomTypeExtended?: string | undefined;
402
837
  roomNote?: {
403
- note: string | null;
404
838
  createdAt: number;
405
839
  updatedAt: number;
840
+ note: string | null;
841
+ } | undefined;
842
+ crmStatus?: "closed" | "replied" | "interested" | "follow_up" | "not_interested" | undefined;
843
+ crmStatusUpdatedAt?: number | undefined;
844
+ jobClientHistory?: {
845
+ title: string | null;
846
+ jobUrl: string | null;
847
+ clientInfo: {
848
+ country: string | null;
849
+ region: string | null;
850
+ openJobs: number | null;
851
+ isPhoneVerified: boolean | null;
852
+ isPaymentVerified: boolean | null;
853
+ numberOfReviews: number | null;
854
+ rating: number | null;
855
+ jobsPosted: number | null;
856
+ totalSpent: number | null;
857
+ numberOfHires: number | null;
858
+ activeEngagements: number | null;
859
+ hireRate: number | null;
860
+ memberSince: string | null;
861
+ companyIndustry: string | null;
862
+ companySize: string | null;
863
+ enterpriseClient: boolean | null;
864
+ avgHourlyRatePaid: number | null;
865
+ companyId: string | null;
866
+ } | null;
406
867
  } | undefined;
407
868
  }[];
408
869
  pagination: {
409
870
  total: number;
410
- hasMore: boolean;
411
871
  nextCursor: string | null;
872
+ hasMore: boolean;
412
873
  limit: number;
413
874
  };
414
875
  }, {
415
876
  data: {
416
877
  id: string;
417
- roomId: string;
418
- roomName: string;
419
- topic: string;
420
- organizationUid: string;
421
- organizationType: string;
422
- recentTimestamp: number;
423
- organizationName: string;
424
878
  context: {
425
879
  freelancerId: string;
426
880
  freelancerOrgId: string;
881
+ jobTitle?: string | undefined;
427
882
  freelancerName?: string | undefined;
428
883
  clientId?: string | undefined;
429
884
  clientName?: string | undefined;
430
- jobTitle?: string | undefined;
431
885
  currentStatus?: string | undefined;
432
886
  associatedAgencyOrgId?: string | undefined;
433
887
  };
888
+ organizationName: string;
889
+ organizationType: string;
890
+ roomId: string;
891
+ roomName: string;
892
+ topic: string;
893
+ organizationUid: string;
894
+ recentTimestamp: number;
434
895
  numUnread: number;
435
896
  updatedAt?: number | undefined;
436
897
  latestStory?: {
@@ -444,15 +905,41 @@ export declare const getRoomsResponseSchema: z.ZodObject<{
444
905
  lastFetchedAt?: number | undefined;
445
906
  roomTypeExtended?: string | undefined;
446
907
  roomNote?: {
447
- note: string | null;
448
908
  createdAt: number;
449
909
  updatedAt: number;
910
+ note: string | null;
911
+ } | undefined;
912
+ crmStatus?: "closed" | "replied" | "interested" | "follow_up" | "not_interested" | undefined;
913
+ crmStatusUpdatedAt?: number | undefined;
914
+ jobClientHistory?: {
915
+ title: string | null;
916
+ jobUrl: string | null;
917
+ clientInfo: {
918
+ country: string | null;
919
+ region: string | null;
920
+ openJobs: number | null;
921
+ isPhoneVerified: boolean | null;
922
+ isPaymentVerified: boolean | null;
923
+ numberOfReviews: number | null;
924
+ rating: number | null;
925
+ jobsPosted: number | null;
926
+ totalSpent: number | null;
927
+ numberOfHires: number | null;
928
+ activeEngagements: number | null;
929
+ hireRate: number | null;
930
+ memberSince: string | null;
931
+ companyIndustry: string | null;
932
+ companySize: string | null;
933
+ enterpriseClient: boolean | null;
934
+ avgHourlyRatePaid: number | null;
935
+ companyId: string | null;
936
+ } | null;
450
937
  } | undefined;
451
938
  }[];
452
939
  pagination: {
453
940
  total: number;
454
- hasMore: boolean;
455
941
  nextCursor: string | null;
942
+ hasMore: boolean;
456
943
  limit: number;
457
944
  };
458
945
  }>;
@@ -504,6 +991,14 @@ export declare const updateRoomNotesRequestBodySchema: z.ZodObject<{
504
991
  note: string;
505
992
  }>;
506
993
  export type UpdateRoomNotesRequestBody = z.infer<typeof updateRoomNotesRequestBodySchema>;
994
+ export declare const updateRoomCrmStatusRequestBodySchema: z.ZodObject<{
995
+ status: z.ZodEnum<["replied", "interested", "follow_up", "not_interested", "closed"]>;
996
+ }, "strip", z.ZodTypeAny, {
997
+ status: "closed" | "replied" | "interested" | "follow_up" | "not_interested";
998
+ }, {
999
+ status: "closed" | "replied" | "interested" | "follow_up" | "not_interested";
1000
+ }>;
1001
+ export type UpdateRoomCrmStatusRequestBody = z.infer<typeof updateRoomCrmStatusRequestBodySchema>;
507
1002
  export declare const sendMessageRequestSchema: z.ZodObject<{
508
1003
  message: z.ZodString;
509
1004
  file: z.ZodOptional<z.ZodType<File, z.ZodTypeDef, File>>;