lancer-shared 1.2.322 → 1.2.324

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 (33) hide show
  1. package/dist/bundle.cjs.js +26 -6
  2. package/dist/bundle.cjs.js.map +1 -1
  3. package/dist/bundle.esm.js +25 -7
  4. package/dist/bundle.esm.js.map +1 -1
  5. package/dist/constants/chat.d.ts +3 -0
  6. package/dist/constants/index.d.ts +1 -0
  7. package/dist/constants/routes.d.ts +1 -0
  8. package/dist/schemas/account/bidder-account.d.ts +10 -10
  9. package/dist/schemas/account/scraper-account.d.ts +10 -10
  10. package/dist/schemas/agent/index.d.ts +50 -50
  11. package/dist/schemas/bidder/bid.d.ts +352 -352
  12. package/dist/schemas/campaign/campaign-analytics.d.ts +78 -78
  13. package/dist/schemas/campaign/campaign-chat-bot.d.ts +4 -4
  14. package/dist/schemas/chat/index.d.ts +137 -66
  15. package/dist/schemas/dashboard/index.d.ts +18 -18
  16. package/dist/schemas/golden-dataset/sample.d.ts +4 -4
  17. package/dist/schemas/job/index.d.ts +32 -32
  18. package/dist/schemas/job/nuxt.d.ts +6 -6
  19. package/dist/schemas/lead/index.d.ts +165 -165
  20. package/dist/schemas/lead/lead-status.d.ts +2 -2
  21. package/dist/schemas/logger/feed/feed-job-enrich.d.ts +30 -30
  22. package/dist/schemas/logger/log-event.d.ts +20 -20
  23. package/dist/schemas/logger/scraper-events.d.ts +4 -4
  24. package/dist/schemas/organization/organization-leads.d.ts +2 -2
  25. package/dist/schemas/plan/index.d.ts +2 -2
  26. package/dist/schemas/proxy/proxy.d.ts +3 -3
  27. package/dist/schemas/scraper/scrape-payload.d.ts +44 -44
  28. package/dist/schemas/scraper/scrape-result.d.ts +28 -28
  29. package/dist/schemas/transaction/index.d.ts +2 -2
  30. package/dist/schemas/upwork-talent/index.d.ts +11 -3
  31. package/dist/schemas/usage/index.d.ts +2 -2
  32. package/dist/schemas/usage-event/index.d.ts +6 -6
  33. package/package.json +1 -1
@@ -0,0 +1,3 @@
1
+ import { RoomType } from '../schemas/chat';
2
+ export declare const ROOM_EXTENDED_TYPE_MAP: Record<RoomType, readonly string[]>;
3
+ export declare const ROOM_TYPES_MATCHING_EMPTY_EXTENDED_TYPE: Set<RoomType>;
@@ -1,3 +1,4 @@
1
+ export * from './chat';
1
2
  export * from './default-questions';
2
3
  export * from './grouped-countries';
3
4
  export * from './invoice';
@@ -343,6 +343,7 @@ export declare const ROUTES: {
343
343
  readonly BY_ID: (id: string) => string;
344
344
  readonly COUNTRIES: "upwork-talent/countries";
345
345
  readonly SKILLS: "upwork-talent/skills";
346
+ readonly BY_PROFILE_URL: "upwork-talent/by-profile-url";
346
347
  };
347
348
  readonly CHAT_ROOMS: {
348
349
  readonly BASE: "chat-rooms";
@@ -137,6 +137,8 @@ export declare const bidderAccountSchema: z.ZodObject<{
137
137
  email: string;
138
138
  status: "connected" | "connecting" | "failed_to_connect" | "draft" | "reconnecting";
139
139
  region: "USOnly" | "UKOnly" | "Worldwide" | "All";
140
+ createdAt: number;
141
+ updatedAt: number;
140
142
  userId: string | null;
141
143
  password: string;
142
144
  provider: "user-provided" | "lancer-provided";
@@ -165,8 +167,6 @@ export declare const bidderAccountSchema: z.ZodObject<{
165
167
  imageUrl: string;
166
168
  }[] | null;
167
169
  instanceId: string | null;
168
- createdAt: number;
169
- updatedAt: number;
170
170
  errorMessage: string | null;
171
171
  connectedToChat: boolean | null;
172
172
  failedToRefreshRooms: boolean | null;
@@ -182,6 +182,8 @@ export declare const bidderAccountSchema: z.ZodObject<{
182
182
  email: string;
183
183
  status: "connected" | "connecting" | "failed_to_connect" | "draft" | "reconnecting";
184
184
  region: "USOnly" | "UKOnly" | "Worldwide" | "All";
185
+ createdAt: number;
186
+ updatedAt: number;
185
187
  userId: string | null;
186
188
  password: string;
187
189
  provider: "user-provided" | "lancer-provided";
@@ -210,8 +212,6 @@ export declare const bidderAccountSchema: z.ZodObject<{
210
212
  imageUrl: string;
211
213
  }[] | null;
212
214
  instanceId: string | null;
213
- createdAt: number;
214
- updatedAt: number;
215
215
  errorMessage: string | null;
216
216
  connectedToChat: boolean | null;
217
217
  failedToRefreshRooms: boolean | null;
@@ -368,6 +368,8 @@ export declare const updateBidderAccountSchema: z.ZodObject<{
368
368
  email: z.ZodOptional<z.ZodString>;
369
369
  status: z.ZodOptional<z.ZodEnum<["connected", "failed_to_connect", "connecting", "draft", "reconnecting"]>>;
370
370
  region: z.ZodOptional<z.ZodEnum<["Worldwide", "USOnly", "UKOnly", "All"]>>;
371
+ createdAt: z.ZodOptional<z.ZodNumber>;
372
+ updatedAt: z.ZodOptional<z.ZodNumber>;
371
373
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
372
374
  password: z.ZodOptional<z.ZodString>;
373
375
  provider: z.ZodOptional<z.ZodEnum<["user-provided", "lancer-provided"]>>;
@@ -427,8 +429,6 @@ export declare const updateBidderAccountSchema: z.ZodObject<{
427
429
  imageUrl: string;
428
430
  }>, "many">>>;
429
431
  instanceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
430
- createdAt: z.ZodOptional<z.ZodNumber>;
431
- updatedAt: z.ZodOptional<z.ZodNumber>;
432
432
  isProtected: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
433
433
  errorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
434
434
  connectedToChat: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
@@ -442,6 +442,8 @@ export declare const updateBidderAccountSchema: z.ZodObject<{
442
442
  email?: string | undefined;
443
443
  status?: "connected" | "connecting" | "failed_to_connect" | "draft" | "reconnecting" | undefined;
444
444
  region?: "USOnly" | "UKOnly" | "Worldwide" | "All" | undefined;
445
+ createdAt?: number | undefined;
446
+ updatedAt?: number | undefined;
445
447
  userId?: string | null | undefined;
446
448
  password?: string | undefined;
447
449
  provider?: "user-provided" | "lancer-provided" | undefined;
@@ -471,8 +473,6 @@ export declare const updateBidderAccountSchema: z.ZodObject<{
471
473
  imageUrl: string;
472
474
  }[] | null | undefined;
473
475
  instanceId?: string | null | undefined;
474
- createdAt?: number | undefined;
475
- updatedAt?: number | undefined;
476
476
  isProtected?: boolean | undefined;
477
477
  errorMessage?: string | null | undefined;
478
478
  connectedToChat?: boolean | null | undefined;
@@ -486,6 +486,8 @@ export declare const updateBidderAccountSchema: z.ZodObject<{
486
486
  email?: string | undefined;
487
487
  status?: "connected" | "connecting" | "failed_to_connect" | "draft" | "reconnecting" | undefined;
488
488
  region?: "USOnly" | "UKOnly" | "Worldwide" | "All" | undefined;
489
+ createdAt?: number | undefined;
490
+ updatedAt?: number | undefined;
489
491
  userId?: string | null | undefined;
490
492
  password?: string | undefined;
491
493
  provider?: "user-provided" | "lancer-provided" | undefined;
@@ -515,8 +517,6 @@ export declare const updateBidderAccountSchema: z.ZodObject<{
515
517
  imageUrl: string;
516
518
  }[] | null | undefined;
517
519
  instanceId?: string | null | undefined;
518
- createdAt?: number | undefined;
519
- updatedAt?: number | undefined;
520
520
  isProtected?: boolean | undefined;
521
521
  errorMessage?: string | null | undefined;
522
522
  connectedToChat?: boolean | null | undefined;
@@ -21,12 +21,12 @@ export declare const scraperAccountSchema: z.ZodObject<{
21
21
  id: string;
22
22
  email: string;
23
23
  region: "USOnly" | "UKOnly" | "Worldwide";
24
+ createdAt: number;
25
+ updatedAt: number;
24
26
  password: string;
25
27
  securityQuestionAnswer: string | null;
26
28
  lastUsed: number | null;
27
29
  proxyId: string | null;
28
- createdAt: number;
29
- updatedAt: number;
30
30
  isActive: boolean;
31
31
  multiloginProfileId: string | null;
32
32
  isProtected?: boolean | undefined;
@@ -35,12 +35,12 @@ export declare const scraperAccountSchema: z.ZodObject<{
35
35
  id: string;
36
36
  email: string;
37
37
  region: "USOnly" | "UKOnly" | "Worldwide";
38
+ createdAt: number;
39
+ updatedAt: number;
38
40
  password: string;
39
41
  securityQuestionAnswer: string | null;
40
42
  lastUsed: number | null;
41
43
  proxyId: string | null;
42
- createdAt: number;
43
- updatedAt: number;
44
44
  isActive: boolean;
45
45
  multiloginProfileId: string | null;
46
46
  isProtected?: boolean | undefined;
@@ -85,12 +85,12 @@ export declare const updateScraperAccountSchema: z.ZodObject<{
85
85
  type: z.ZodOptional<z.ZodEnum<["feed", "job", "status", "activity", "profile", "unauthenticated"]>>;
86
86
  email: z.ZodOptional<z.ZodString>;
87
87
  region: z.ZodOptional<z.ZodEnum<["Worldwide", "UKOnly", "USOnly"]>>;
88
+ createdAt: z.ZodOptional<z.ZodNumber>;
89
+ updatedAt: z.ZodOptional<z.ZodNumber>;
88
90
  password: z.ZodOptional<z.ZodString>;
89
91
  securityQuestionAnswer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
90
92
  lastUsed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
91
93
  proxyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
92
- createdAt: z.ZodOptional<z.ZodNumber>;
93
- updatedAt: z.ZodOptional<z.ZodNumber>;
94
94
  isProtected: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
95
95
  isActive: z.ZodOptional<z.ZodBoolean>;
96
96
  multiloginProfileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -98,12 +98,12 @@ export declare const updateScraperAccountSchema: z.ZodObject<{
98
98
  type?: "status" | "profile" | "job" | "feed" | "activity" | "unauthenticated" | undefined;
99
99
  email?: string | undefined;
100
100
  region?: "USOnly" | "UKOnly" | "Worldwide" | undefined;
101
+ createdAt?: number | undefined;
102
+ updatedAt?: number | undefined;
101
103
  password?: string | undefined;
102
104
  securityQuestionAnswer?: string | null | undefined;
103
105
  lastUsed?: number | null | undefined;
104
106
  proxyId?: string | null | undefined;
105
- createdAt?: number | undefined;
106
- updatedAt?: number | undefined;
107
107
  isProtected?: boolean | undefined;
108
108
  isActive?: boolean | undefined;
109
109
  multiloginProfileId?: string | null | undefined;
@@ -111,12 +111,12 @@ export declare const updateScraperAccountSchema: z.ZodObject<{
111
111
  type?: "status" | "profile" | "job" | "feed" | "activity" | "unauthenticated" | undefined;
112
112
  email?: string | undefined;
113
113
  region?: "USOnly" | "UKOnly" | "Worldwide" | undefined;
114
+ createdAt?: number | undefined;
115
+ updatedAt?: number | undefined;
114
116
  password?: string | undefined;
115
117
  securityQuestionAnswer?: string | null | undefined;
116
118
  lastUsed?: number | null | undefined;
117
119
  proxyId?: string | null | undefined;
118
- createdAt?: number | undefined;
119
- updatedAt?: number | undefined;
120
120
  isProtected?: boolean | undefined;
121
121
  isActive?: boolean | undefined;
122
122
  multiloginProfileId?: string | null | undefined;
@@ -52,9 +52,9 @@ export declare const agentGenerateProposalRequestSchema: z.ZodObject<{
52
52
  numHours: z.ZodNullable<z.ZodNumber>;
53
53
  totalBilled: z.ZodNullable<z.ZodNumber>;
54
54
  }, "strip", z.ZodTypeAny, {
55
- hourlyRate: number | null;
56
- jobTitle: string | null;
57
55
  freelancerName: string | null;
56
+ jobTitle: string | null;
57
+ hourlyRate: number | null;
58
58
  freelancerRating: number | null;
59
59
  freelancerFeedback: string | null;
60
60
  clientFeedback: string | null;
@@ -65,9 +65,9 @@ export declare const agentGenerateProposalRequestSchema: z.ZodObject<{
65
65
  numHours: number | null;
66
66
  totalBilled: number | null;
67
67
  }, {
68
- hourlyRate: number | null;
69
- jobTitle: string | null;
70
68
  freelancerName: string | null;
69
+ jobTitle: string | null;
70
+ hourlyRate: number | null;
71
71
  freelancerRating: number | null;
72
72
  freelancerFeedback: string | null;
73
73
  clientFeedback: string | null;
@@ -79,9 +79,9 @@ export declare const agentGenerateProposalRequestSchema: z.ZodObject<{
79
79
  totalBilled: number | null;
80
80
  }>, "many">>;
81
81
  }, "strip", z.ZodTypeAny, {
82
+ userId: string | null;
82
83
  organizationId: string;
83
84
  campaignId: string;
84
- userId: string | null;
85
85
  job: {
86
86
  title: string;
87
87
  description: string;
@@ -97,9 +97,9 @@ export declare const agentGenerateProposalRequestSchema: z.ZodObject<{
97
97
  campaignId: string;
98
98
  }[] | undefined;
99
99
  clientReviews?: {
100
- hourlyRate: number | null;
101
- jobTitle: string | null;
102
100
  freelancerName: string | null;
101
+ jobTitle: string | null;
102
+ hourlyRate: number | null;
103
103
  freelancerRating: number | null;
104
104
  freelancerFeedback: string | null;
105
105
  clientFeedback: string | null;
@@ -111,9 +111,9 @@ export declare const agentGenerateProposalRequestSchema: z.ZodObject<{
111
111
  totalBilled: number | null;
112
112
  }[] | undefined;
113
113
  }, {
114
+ userId: string | null;
114
115
  organizationId: string;
115
116
  campaignId: string;
116
- userId: string | null;
117
117
  job: {
118
118
  title: string;
119
119
  description: string;
@@ -129,9 +129,9 @@ export declare const agentGenerateProposalRequestSchema: z.ZodObject<{
129
129
  campaignId: string;
130
130
  }[] | undefined;
131
131
  clientReviews?: {
132
- hourlyRate: number | null;
133
- jobTitle: string | null;
134
132
  freelancerName: string | null;
133
+ jobTitle: string | null;
134
+ hourlyRate: number | null;
135
135
  freelancerRating: number | null;
136
136
  freelancerFeedback: string | null;
137
137
  clientFeedback: string | null;
@@ -326,9 +326,9 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
326
326
  numHours: z.ZodNullable<z.ZodNumber>;
327
327
  totalBilled: z.ZodNullable<z.ZodNumber>;
328
328
  }, "strip", z.ZodTypeAny, {
329
- hourlyRate: number | null;
330
- jobTitle: string | null;
331
329
  freelancerName: string | null;
330
+ jobTitle: string | null;
331
+ hourlyRate: number | null;
332
332
  freelancerRating: number | null;
333
333
  freelancerFeedback: string | null;
334
334
  clientFeedback: string | null;
@@ -339,9 +339,9 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
339
339
  numHours: number | null;
340
340
  totalBilled: number | null;
341
341
  }, {
342
- hourlyRate: number | null;
343
- jobTitle: string | null;
344
342
  freelancerName: string | null;
343
+ jobTitle: string | null;
344
+ hourlyRate: number | null;
345
345
  freelancerRating: number | null;
346
346
  freelancerFeedback: string | null;
347
347
  clientFeedback: string | null;
@@ -385,8 +385,8 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
385
385
  unansweredInvites: z.ZodNullable<z.ZodNumber>;
386
386
  updatedAt: z.ZodNullable<z.ZodNumber>;
387
387
  }, "strip", z.ZodTypeAny, {
388
- unansweredInvites: number | null;
389
388
  updatedAt: number | null;
389
+ unansweredInvites: number | null;
390
390
  proposals: {
391
391
  max: number | null;
392
392
  min: number | null;
@@ -397,8 +397,8 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
397
397
  interviewing: number | null;
398
398
  invitesSent: number | null;
399
399
  }, {
400
- unansweredInvites: number | null;
401
400
  updatedAt: number | null;
401
+ unansweredInvites: number | null;
402
402
  proposals: {
403
403
  max: number | null;
404
404
  min: number | null;
@@ -430,8 +430,8 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
430
430
  unansweredInvites: z.ZodNullable<z.ZodNumber>;
431
431
  updatedAt: z.ZodNullable<z.ZodNumber>;
432
432
  }, "strip", z.ZodTypeAny, {
433
- unansweredInvites: number | null;
434
433
  updatedAt: number | null;
434
+ unansweredInvites: number | null;
435
435
  proposals: {
436
436
  max: number | null;
437
437
  min: number | null;
@@ -442,8 +442,8 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
442
442
  interviewing: number | null;
443
443
  invitesSent: number | null;
444
444
  }, {
445
- unansweredInvites: number | null;
446
445
  updatedAt: number | null;
446
+ unansweredInvites: number | null;
447
447
  proposals: {
448
448
  max: number | null;
449
449
  min: number | null;
@@ -597,14 +597,15 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
597
597
  description: string | null;
598
598
  region: "USOnly" | "UKOnly" | "Worldwide" | "All" | null;
599
599
  datetime: number | null;
600
+ createdAt: number | null;
601
+ updatedAt: number | null;
602
+ proposal: string | null;
600
603
  organizationId: string;
601
604
  campaignId: string;
602
605
  category: string | null;
603
606
  uid: string | null;
604
607
  questions: string[] | null;
605
608
  occupation: string | null;
606
- createdAt: number | null;
607
- updatedAt: number | null;
608
609
  questionAnswerPairs: {
609
610
  answer: string;
610
611
  question: string;
@@ -612,9 +613,9 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
612
613
  coverLetterTemplateId: string | null;
613
614
  jobId: string;
614
615
  clientReviews: {
615
- hourlyRate: number | null;
616
- jobTitle: string | null;
617
616
  freelancerName: string | null;
617
+ jobTitle: string | null;
618
+ hourlyRate: number | null;
618
619
  freelancerRating: number | null;
619
620
  freelancerFeedback: string | null;
620
621
  clientFeedback: string | null;
@@ -668,8 +669,8 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
668
669
  avg: number | null;
669
670
  } | null;
670
671
  jobActivity: {
671
- unansweredInvites: number | null;
672
672
  updatedAt: number | null;
673
+ unansweredInvites: number | null;
673
674
  proposals: {
674
675
  max: number | null;
675
676
  min: number | null;
@@ -684,7 +685,6 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
684
685
  scrapedAt: number | null;
685
686
  suitabilityRating: number | null;
686
687
  suitabilityReason: string | null;
687
- proposal: string | null;
688
688
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
689
689
  leadStatus: "rejected" | "biddingFailed" | "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "viewed" | "replied" | "biddingScheduled" | "alreadyHired" | "won" | null;
690
690
  biddingAmount: number | null;
@@ -727,8 +727,8 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
727
727
  proposalId?: string | undefined;
728
728
  wonAmount?: number | undefined;
729
729
  activity?: Partial<Record<"4h" | "24h", {
730
- unansweredInvites: number | null;
731
730
  updatedAt: number | null;
731
+ unansweredInvites: number | null;
732
732
  proposals: {
733
733
  max: number | null;
734
734
  min: number | null;
@@ -763,14 +763,15 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
763
763
  description: string | null;
764
764
  region: "USOnly" | "UKOnly" | "Worldwide" | "All" | null;
765
765
  datetime: number | null;
766
+ createdAt: number | null;
767
+ updatedAt: number | null;
768
+ proposal: string | null;
766
769
  organizationId: string;
767
770
  campaignId: string;
768
771
  category: string | null;
769
772
  uid: string | null;
770
773
  questions: string[] | null;
771
774
  occupation: string | null;
772
- createdAt: number | null;
773
- updatedAt: number | null;
774
775
  questionAnswerPairs: {
775
776
  answer: string;
776
777
  question: string;
@@ -778,9 +779,9 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
778
779
  coverLetterTemplateId: string | null;
779
780
  jobId: string;
780
781
  clientReviews: {
781
- hourlyRate: number | null;
782
- jobTitle: string | null;
783
782
  freelancerName: string | null;
783
+ jobTitle: string | null;
784
+ hourlyRate: number | null;
784
785
  freelancerRating: number | null;
785
786
  freelancerFeedback: string | null;
786
787
  clientFeedback: string | null;
@@ -834,8 +835,8 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
834
835
  avg: number | null;
835
836
  } | null;
836
837
  jobActivity: {
837
- unansweredInvites: number | null;
838
838
  updatedAt: number | null;
839
+ unansweredInvites: number | null;
839
840
  proposals: {
840
841
  max: number | null;
841
842
  min: number | null;
@@ -850,7 +851,6 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
850
851
  scrapedAt: number | null;
851
852
  suitabilityRating: number | null;
852
853
  suitabilityReason: string | null;
853
- proposal: string | null;
854
854
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
855
855
  leadStatus: "rejected" | "biddingFailed" | "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "viewed" | "replied" | "biddingScheduled" | "alreadyHired" | "won" | null;
856
856
  biddingAmount: number | null;
@@ -893,8 +893,8 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
893
893
  proposalId?: string | undefined;
894
894
  wonAmount?: number | undefined;
895
895
  activity?: Partial<Record<"4h" | "24h", {
896
- unansweredInvites: number | null;
897
896
  updatedAt: number | null;
897
+ unansweredInvites: number | null;
898
898
  proposals: {
899
899
  max: number | null;
900
900
  min: number | null;
@@ -925,9 +925,9 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
925
925
  campaignId: string;
926
926
  }>, "many">>;
927
927
  }, "strip", z.ZodTypeAny, {
928
+ userId: string | null;
928
929
  organizationId: string;
929
930
  campaignId: string;
930
- userId: string | null;
931
931
  lead: {
932
932
  id: string | null;
933
933
  title: string | null;
@@ -945,14 +945,15 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
945
945
  description: string | null;
946
946
  region: "USOnly" | "UKOnly" | "Worldwide" | "All" | null;
947
947
  datetime: number | null;
948
+ createdAt: number | null;
949
+ updatedAt: number | null;
950
+ proposal: string | null;
948
951
  organizationId: string;
949
952
  campaignId: string;
950
953
  category: string | null;
951
954
  uid: string | null;
952
955
  questions: string[] | null;
953
956
  occupation: string | null;
954
- createdAt: number | null;
955
- updatedAt: number | null;
956
957
  questionAnswerPairs: {
957
958
  answer: string;
958
959
  question: string;
@@ -960,9 +961,9 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
960
961
  coverLetterTemplateId: string | null;
961
962
  jobId: string;
962
963
  clientReviews: {
963
- hourlyRate: number | null;
964
- jobTitle: string | null;
965
964
  freelancerName: string | null;
965
+ jobTitle: string | null;
966
+ hourlyRate: number | null;
966
967
  freelancerRating: number | null;
967
968
  freelancerFeedback: string | null;
968
969
  clientFeedback: string | null;
@@ -1016,8 +1017,8 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
1016
1017
  avg: number | null;
1017
1018
  } | null;
1018
1019
  jobActivity: {
1019
- unansweredInvites: number | null;
1020
1020
  updatedAt: number | null;
1021
+ unansweredInvites: number | null;
1021
1022
  proposals: {
1022
1023
  max: number | null;
1023
1024
  min: number | null;
@@ -1032,7 +1033,6 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
1032
1033
  scrapedAt: number | null;
1033
1034
  suitabilityRating: number | null;
1034
1035
  suitabilityReason: string | null;
1035
- proposal: string | null;
1036
1036
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
1037
1037
  leadStatus: "rejected" | "biddingFailed" | "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "viewed" | "replied" | "biddingScheduled" | "alreadyHired" | "won" | null;
1038
1038
  biddingAmount: number | null;
@@ -1075,8 +1075,8 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
1075
1075
  proposalId?: string | undefined;
1076
1076
  wonAmount?: number | undefined;
1077
1077
  activity?: Partial<Record<"4h" | "24h", {
1078
- unansweredInvites: number | null;
1079
1078
  updatedAt: number | null;
1079
+ unansweredInvites: number | null;
1080
1080
  proposals: {
1081
1081
  max: number | null;
1082
1082
  min: number | null;
@@ -1101,9 +1101,9 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
1101
1101
  campaignId: string;
1102
1102
  }[] | undefined;
1103
1103
  }, {
1104
+ userId: string | null;
1104
1105
  organizationId: string;
1105
1106
  campaignId: string;
1106
- userId: string | null;
1107
1107
  lead: {
1108
1108
  id: string | null;
1109
1109
  title: string | null;
@@ -1121,14 +1121,15 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
1121
1121
  description: string | null;
1122
1122
  region: "USOnly" | "UKOnly" | "Worldwide" | "All" | null;
1123
1123
  datetime: number | null;
1124
+ createdAt: number | null;
1125
+ updatedAt: number | null;
1126
+ proposal: string | null;
1124
1127
  organizationId: string;
1125
1128
  campaignId: string;
1126
1129
  category: string | null;
1127
1130
  uid: string | null;
1128
1131
  questions: string[] | null;
1129
1132
  occupation: string | null;
1130
- createdAt: number | null;
1131
- updatedAt: number | null;
1132
1133
  questionAnswerPairs: {
1133
1134
  answer: string;
1134
1135
  question: string;
@@ -1136,9 +1137,9 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
1136
1137
  coverLetterTemplateId: string | null;
1137
1138
  jobId: string;
1138
1139
  clientReviews: {
1139
- hourlyRate: number | null;
1140
- jobTitle: string | null;
1141
1140
  freelancerName: string | null;
1141
+ jobTitle: string | null;
1142
+ hourlyRate: number | null;
1142
1143
  freelancerRating: number | null;
1143
1144
  freelancerFeedback: string | null;
1144
1145
  clientFeedback: string | null;
@@ -1192,8 +1193,8 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
1192
1193
  avg: number | null;
1193
1194
  } | null;
1194
1195
  jobActivity: {
1195
- unansweredInvites: number | null;
1196
1196
  updatedAt: number | null;
1197
+ unansweredInvites: number | null;
1197
1198
  proposals: {
1198
1199
  max: number | null;
1199
1200
  min: number | null;
@@ -1208,7 +1209,6 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
1208
1209
  scrapedAt: number | null;
1209
1210
  suitabilityRating: number | null;
1210
1211
  suitabilityReason: string | null;
1211
- proposal: string | null;
1212
1212
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
1213
1213
  leadStatus: "rejected" | "biddingFailed" | "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "viewed" | "replied" | "biddingScheduled" | "alreadyHired" | "won" | null;
1214
1214
  biddingAmount: number | null;
@@ -1251,8 +1251,8 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
1251
1251
  proposalId?: string | undefined;
1252
1252
  wonAmount?: number | undefined;
1253
1253
  activity?: Partial<Record<"4h" | "24h", {
1254
- unansweredInvites: number | null;
1255
1254
  updatedAt: number | null;
1255
+ unansweredInvites: number | null;
1256
1256
  proposals: {
1257
1257
  max: number | null;
1258
1258
  min: number | null;
@@ -1282,12 +1282,12 @@ export declare const agentPickSpecialisedProfileRequestSchema: z.ZodObject<{
1282
1282
  jobDescription: z.ZodString;
1283
1283
  specialisedProfiles: z.ZodArray<z.ZodString, "many">;
1284
1284
  }, "strip", z.ZodTypeAny, {
1285
- specialisedProfiles: string[];
1286
1285
  jobTitle: string;
1286
+ specialisedProfiles: string[];
1287
1287
  jobDescription: string;
1288
1288
  }, {
1289
- specialisedProfiles: string[];
1290
1289
  jobTitle: string;
1290
+ specialisedProfiles: string[];
1291
1291
  jobDescription: string;
1292
1292
  }>;
1293
1293
  export declare const agentPickSpecialisedProfileResponseSchema: z.ZodObject<{