lancer-shared 1.2.163 → 1.2.165

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 (50) hide show
  1. package/dist/bundle.cjs.js +69 -44
  2. package/dist/constants/job-filter-options.d.ts +1 -0
  3. package/dist/constants/routes.d.ts +1 -0
  4. package/dist/schemas/agent/index.d.ts +10 -5
  5. package/dist/schemas/bid/bid.d.ts +5134 -177
  6. package/dist/schemas/bidder/bid-result.d.ts +30 -0
  7. package/dist/schemas/bidder/bid.d.ts +8010 -0
  8. package/dist/schemas/bidder/exceptions/cloudflare-challenge-failed.exception.d.ts +5 -0
  9. package/dist/schemas/bidder/exceptions/delete-multilogin-profile.exception.d.ts +5 -0
  10. package/dist/schemas/bidder/exceptions/dropdown-option-not-present.exception.d.ts +5 -0
  11. package/dist/schemas/bidder/exceptions/element-not-clickable.exception.d.ts +5 -0
  12. package/dist/schemas/bidder/exceptions/evalaute-element.exception.d.ts +5 -0
  13. package/dist/schemas/bidder/exceptions/evaluate-function.exception.d.ts +5 -0
  14. package/dist/schemas/bidder/exceptions/get-multilogin-browser.exception.d.ts +5 -0
  15. package/dist/schemas/bidder/exceptions/incorrect-security-question-answer.exception.d.ts +5 -0
  16. package/dist/schemas/bidder/exceptions/index.d.ts +63 -0
  17. package/dist/schemas/bidder/exceptions/init-browser.exception.d.ts +5 -0
  18. package/dist/schemas/bidder/exceptions/insufficient-connects.exception.d.ts +5 -0
  19. package/dist/schemas/bidder/exceptions/invalid-credentials.exception.d.ts +5 -0
  20. package/dist/schemas/bidder/exceptions/invalid-job-url.exception.d.ts +5 -0
  21. package/dist/schemas/bidder/exceptions/login-failed.exception.d.ts +5 -0
  22. package/dist/schemas/bidder/exceptions/multilogin-authentication.exception.d.ts +5 -0
  23. package/dist/schemas/bidder/exceptions/navigation-timeout.exception.d.ts +5 -0
  24. package/dist/schemas/bidder/exceptions/new-browser-page.exception.d.ts +5 -0
  25. package/dist/schemas/bidder/exceptions/new-page.exception.d.ts +5 -0
  26. package/dist/schemas/bidder/exceptions/open-new-url.exception.d.ts +15 -0
  27. package/dist/schemas/bidder/exceptions/parse-connects.exception.d.ts +5 -0
  28. package/dist/schemas/bidder/exceptions/proposal-error-alert.exception.d.ts +5 -0
  29. package/dist/schemas/bidder/exceptions/proposal-form-warning-alert.exception.d.ts +5 -0
  30. package/dist/schemas/bidder/exceptions/proposal-generation-failed.exception.d.ts +5 -0
  31. package/dist/schemas/bidder/exceptions/proposal-submit-failed.exception.d.ts +5 -0
  32. package/dist/schemas/bidder/exceptions/pupeteer-conection-error.exception.d.ts +5 -0
  33. package/dist/schemas/bidder/exceptions/question-pair-not-matching.exception.d.ts +5 -0
  34. package/dist/schemas/bidder/exceptions/select-agency.exception.d.ts +5 -0
  35. package/dist/schemas/bidder/exceptions/select-contractor.exception.d.ts +5 -0
  36. package/dist/schemas/bidder/exceptions/selector-not-found.exception.d.ts +5 -0
  37. package/dist/schemas/bidder/exceptions/typed-value-not-matching.exception.d.ts +5 -0
  38. package/dist/schemas/bidder/exceptions/typing-input-field.exception.d.ts +5 -0
  39. package/dist/schemas/bidder/exceptions/wait-for-function-timeout.exception.d.ts +5 -0
  40. package/dist/schemas/bidder/index.d.ts +4 -0
  41. package/dist/schemas/bidder/sync-proposal-status.d.ts +12 -0
  42. package/dist/schemas/campaign/campaign-analytics.d.ts +44 -27
  43. package/dist/schemas/campaign/campaign.d.ts +9 -9
  44. package/dist/schemas/index.d.ts +22 -22
  45. package/dist/schemas/lead/index.d.ts +36 -18
  46. package/dist/schemas/lead/lead-status.d.ts +17 -6
  47. package/dist/schemas/logger/log-event.d.ts +8 -5
  48. package/dist/schemas/organization/index.d.ts +4 -0
  49. package/dist/schemas/scraper/scrape-payload.d.ts +20 -10
  50. package/package.json +1 -1
@@ -332,6 +332,10 @@ const JOB_FILTER_OPTIONS = {
332
332
  'Unspecified',
333
333
  ],
334
334
  };
335
+ const HIERARCHICAL_CATEGORIES_TO_CHILDREN = JOB_FILTER_OPTIONS.HIERARCHICAL_CATEGORIES.reduce((acc, category) => {
336
+ acc[category.label] = category.children;
337
+ return acc;
338
+ }, {});
335
339
  const regionNames = {
336
340
  Worldwide: 'Worldwide',
337
341
  USOnly: 'US Only',
@@ -6545,6 +6549,7 @@ const ROUTES = {
6545
6549
  BASE: (id) => `organizations/${id}/members`,
6546
6550
  BY_ID: (id, memberId) => `organizations/${id}/members/${memberId}`,
6547
6551
  },
6552
+ UPDATE_LEADS_STATUS: (id) => `organizations/${id}/update-leads-status`,
6548
6553
  SETTINGS: (id) => `organizations/${id}/settings`,
6549
6554
  CHARGES: (id) => `organizations/${id}/charges`,
6550
6555
  PAYMENT_METHODS: (id) => `organizations/${id}/payment-methods`,
@@ -12669,34 +12674,40 @@ const updateScraperAccountSchema = scraperAccountSchema
12669
12674
  .partial();
12670
12675
 
12671
12676
  const agentStatusSchema = z.enum([
12672
- "suitabilityPending",
12673
- "suitabilityProcessing",
12674
- "suitabilityComplete",
12675
- "suitabilityFailed",
12676
- "proposalProcessing",
12677
- "proposalComplete",
12678
- "proposalFailed",
12679
- "biddingProcessing",
12680
- "biddingComplete",
12681
- "biddingFailed",
12682
- "jobArchived",
12677
+ 'suitabilityPending',
12678
+ 'suitabilityProcessing',
12679
+ 'suitabilityComplete',
12680
+ 'suitabilityFailed',
12681
+ 'proposalProcessing',
12682
+ 'proposalComplete',
12683
+ 'proposalFailed',
12684
+ 'biddingProcessing',
12685
+ 'biddingComplete',
12686
+ 'biddingFailed',
12687
+ 'jobArchived',
12683
12688
  ]);
12684
- const leadStatusSchema = z.enum([
12685
- "leads",
12686
- "contacted",
12687
- "viewed",
12688
- "replied",
12689
- "won",
12689
+ const leadStatusEnum = z.enum([
12690
+ 'leads',
12691
+ 'contacted',
12692
+ 'insufficientConnects',
12693
+ 'doesNotMeetCriteria',
12694
+ 'viewed',
12695
+ 'replied',
12696
+ 'won',
12690
12697
  ]);
12691
12698
  const updateLeadStatusSchema = z.object({
12692
12699
  leadId: z.string(),
12693
12700
  organizationId: z.string(),
12694
12701
  campaignId: z.string(),
12695
- status: leadStatusSchema,
12702
+ status: leadStatusEnum,
12696
12703
  proposalId: z.string().optional(),
12697
12704
  userId: z.string().optional(),
12698
12705
  wonAmount: z.number().optional(),
12699
12706
  });
12707
+ const updateOrganizationLeadsStatusPayloadSchema = z.array(z.object({
12708
+ applicationUid: z.string(),
12709
+ status: leadStatusEnum,
12710
+ }));
12700
12711
 
12701
12712
  const questionAnswerPairSchema = z.object({
12702
12713
  question: z.string(),
@@ -12715,7 +12726,7 @@ const leadSchema = upworkJobSchema
12715
12726
  proposalId: stringType().optional(),
12716
12727
  questionAnswerPairs: arrayType(questionAnswerPairSchema).nullable(),
12717
12728
  agentStatus: agentStatusSchema.nullable(),
12718
- leadStatus: leadStatusSchema.nullable(),
12729
+ leadStatus: leadStatusEnum.nullable(),
12719
12730
  biddingAmount: numberType().nullable(),
12720
12731
  boosted: booleanType().nullable(),
12721
12732
  boostingAmount: numberType().nullable(),
@@ -12725,6 +12736,7 @@ const leadSchema = upworkJobSchema
12725
12736
  feedbackCheckTaskId: stringType().nullable(),
12726
12737
  bidDecision: z.enum(['proceeded', 'rejected']).nullable(),
12727
12738
  rejectedFeedback: stringType().nullable(),
12739
+ applicationId: stringType().nullable(),
12728
12740
  })
12729
12741
  .omit({
12730
12742
  processed: true,
@@ -12956,6 +12968,7 @@ const organizationSchema = objectType({
12956
12968
  createdAt: numberType(),
12957
12969
  updatedAt: numberType(),
12958
12970
  openRouterApiKey: stringType().nullable(),
12971
+ nextProposalStatusSyncTime: numberType().nullable(),
12959
12972
  oneTimePayments: oneTimePaymentsSchema.optional(),
12960
12973
  });
12961
12974
  const organizationUpdateSchema = objectType({ planId: stringType() });
@@ -13068,7 +13081,7 @@ const campaignSchema = z.object({
13068
13081
  sleepStartAtHour: z.number().nullable().default(23),
13069
13082
  sleepEndAtHour: z.number().nullable().default(7),
13070
13083
  sleepTimezone: z.string().nullable(),
13071
- leadCounts: z.record(leadStatusSchema, z.number()).nullable(),
13084
+ leadCounts: z.record(leadStatusEnum, z.number()).nullable(),
13072
13085
  expenses: campaignExpensesSchema,
13073
13086
  notificationsEnabled: z.boolean().nullable(),
13074
13087
  status: campaignStatusSchema.optional(),
@@ -13141,10 +13154,10 @@ const campaignAnalyticsResponseSchema = z.object({
13141
13154
  won: z.number(),
13142
13155
  });
13143
13156
  const campaignActivityTypeSchema = z.enum([
13144
- "campaign_status",
13145
- "lead_analysis",
13146
- "lead_status",
13147
- "proposal_sent",
13157
+ 'campaign_status',
13158
+ 'lead_analysis',
13159
+ 'lead_status',
13160
+ 'proposal_sent',
13148
13161
  ]);
13149
13162
  const baseActivitySchema = z.object({
13150
13163
  createdAt: z.number(),
@@ -13159,15 +13172,15 @@ const baseActivitySchema = z.object({
13159
13172
  creditBalance: z.number(),
13160
13173
  });
13161
13174
  const campaignStatusActivityExtraSchema = z.object({
13162
- type: z.literal("campaign_status"),
13163
- status: z.enum(["started", "paused", "created", "error"]),
13175
+ type: z.literal('campaign_status'),
13176
+ status: z.enum(['started', 'paused', 'created', 'error']),
13164
13177
  creditBalance: z.number(),
13165
13178
  });
13166
13179
  const campaignStatusActivitySchema = baseActivitySchema.extend({
13167
13180
  ...campaignStatusActivityExtraSchema.shape,
13168
13181
  });
13169
13182
  const leadAnalysisActivityExtraSchema = z.object({
13170
- type: z.literal("lead_analysis"),
13183
+ type: z.literal('lead_analysis'),
13171
13184
  lead: leadSchema.pick({
13172
13185
  id: true,
13173
13186
  title: true,
@@ -13181,8 +13194,8 @@ const leadAnalysisActivitySchema = baseActivitySchema.extend({
13181
13194
  ...leadAnalysisActivityExtraSchema.shape,
13182
13195
  });
13183
13196
  const leadStatusActivityExtraSchema = z.object({
13184
- type: z.literal("lead_status"),
13185
- status: leadStatusSchema,
13197
+ type: z.literal('lead_status'),
13198
+ status: leadStatusEnum,
13186
13199
  lead: leadSchema.pick({
13187
13200
  id: true,
13188
13201
  title: true,
@@ -13195,7 +13208,7 @@ const leadStatusActivitySchema = baseActivitySchema.extend({
13195
13208
  ...leadStatusActivityExtraSchema.shape,
13196
13209
  });
13197
13210
  const proposalSentActivityExtraSchema = z.object({
13198
- type: z.literal("proposal_sent"),
13211
+ type: z.literal('proposal_sent'),
13199
13212
  lead: leadSchema.pick({
13200
13213
  id: true,
13201
13214
  title: true,
@@ -13207,13 +13220,13 @@ const proposalSentActivityExtraSchema = z.object({
13207
13220
  const proposalSentActivitySchema = baseActivitySchema.extend({
13208
13221
  ...proposalSentActivityExtraSchema.shape,
13209
13222
  });
13210
- const campaignActivitySchema = z.discriminatedUnion("type", [
13223
+ const campaignActivitySchema = z.discriminatedUnion('type', [
13211
13224
  campaignStatusActivitySchema,
13212
13225
  leadAnalysisActivitySchema,
13213
13226
  leadStatusActivitySchema,
13214
13227
  proposalSentActivitySchema,
13215
13228
  ]);
13216
- const campaignActivityCreateSchema = z.discriminatedUnion("type", [
13229
+ const campaignActivityCreateSchema = z.discriminatedUnion('type', [
13217
13230
  campaignStatusActivityExtraSchema,
13218
13231
  leadAnalysisActivityExtraSchema,
13219
13232
  leadStatusActivityExtraSchema,
@@ -13223,16 +13236,16 @@ const updateCampaignAnalyticsSchema = z.object({
13223
13236
  organizationId: z.string(),
13224
13237
  campaignId: z.string(),
13225
13238
  fields: z.array(z.enum([
13226
- "contacted",
13227
- "viewed",
13228
- "replied",
13229
- "won",
13230
- "leadsAnalyzed",
13231
- "leadsFailed",
13232
- "proposalsFailed",
13233
- "suitableJobs",
13234
- "unsuitableJobs",
13235
- "wonAmount",
13239
+ 'contacted',
13240
+ 'viewed',
13241
+ 'replied',
13242
+ 'won',
13243
+ 'leadsAnalyzed',
13244
+ 'leadsFailed',
13245
+ 'proposalsFailed',
13246
+ 'suitableJobs',
13247
+ 'unsuitableJobs',
13248
+ 'wonAmount',
13236
13249
  ])),
13237
13250
  });
13238
13251
 
@@ -13341,6 +13354,9 @@ const campaignInsightsSchema = z.object({
13341
13354
  });
13342
13355
 
13343
13356
  const bidPayloadProposalDataSchema = z.object({
13357
+ organizationId: z.string(),
13358
+ campaignId: z.string(),
13359
+ lead: leadSchema,
13344
13360
  coverLetter: z.string(),
13345
13361
  questionAnswerPairs: questionAnswerPairSchema.array().nullable(),
13346
13362
  boostingEnabled: z.boolean(),
@@ -13679,6 +13695,11 @@ class WaitForFunctionTimeoutError extends Error {
13679
13695
  }
13680
13696
  const waitForFunctionTimeoutError = (fn, timeout) => new WaitForFunctionTimeoutError(fn, timeout);
13681
13697
 
13698
+ const syncProposalsStatusRequestPayloadSchema = z.object({
13699
+ organizationId: z.string(),
13700
+ bidderAccountId: z.string(),
13701
+ });
13702
+
13682
13703
  const campaignStatsSchema = z.object({
13683
13704
  contacted: z.number(),
13684
13705
  viewed: z.number(),
@@ -13980,6 +14001,7 @@ const biddingCompletedEventMetadata = objectType({
13980
14001
  biddingAmount: numberType(),
13981
14002
  boosted: booleanType(),
13982
14003
  boostingAmount: numberType(),
14004
+ applicationId: stringType(),
13983
14005
  });
13984
14006
  const biddingFailedEventMetadata = objectType({
13985
14007
  error: z.any(),
@@ -14000,7 +14022,7 @@ const leadStatusEventMetadata = objectType({
14000
14022
  userId: stringType(),
14001
14023
  metadata: z
14002
14024
  .object({
14003
- status: leadStatusSchema,
14025
+ status: leadStatusEnum,
14004
14026
  proposalId: stringType().nullable(),
14005
14027
  })
14006
14028
  .optional(),
@@ -23070,6 +23092,7 @@ exports.FeedJobEnrichException = FeedJobEnrichException;
23070
23092
  exports.FeedScrapeException = FeedScrapeException;
23071
23093
  exports.GetMultiloginBrowserException = GetMultiloginBrowserException;
23072
23094
  exports.GoToUrlException = GoToUrlException;
23095
+ exports.HIERARCHICAL_CATEGORIES_TO_CHILDREN = HIERARCHICAL_CATEGORIES_TO_CHILDREN;
23073
23096
  exports.IncorrectSecurityQuestionAnswerException = IncorrectSecurityQuestionAnswerException;
23074
23097
  exports.InitBrowserException = InitBrowserException;
23075
23098
  exports.InsufficientConnectsException = InsufficientConnectsException;
@@ -23265,8 +23288,8 @@ exports.leadAnalysisActivitySchema = leadAnalysisActivitySchema;
23265
23288
  exports.leadResponseSchema = leadResponseSchema;
23266
23289
  exports.leadSchema = leadSchema;
23267
23290
  exports.leadStatusActivitySchema = leadStatusActivitySchema;
23291
+ exports.leadStatusEnum = leadStatusEnum;
23268
23292
  exports.leadStatusEventMetadata = leadStatusEventMetadata;
23269
- exports.leadStatusSchema = leadStatusSchema;
23270
23293
  exports.limitsSchema = limitsSchema;
23271
23294
  exports.logEventSchema = logEventSchema;
23272
23295
  exports.loginFailedException = loginFailedException;
@@ -23370,6 +23393,7 @@ exports.suitabilityCompleteEventMetadataSchema = suitabilityCompleteEventMetadat
23370
23393
  exports.suitabilityFailedEventMetadataSchema = suitabilityFailedEventMetadataSchema;
23371
23394
  exports.suitabilityPendingEventMetadataSchema = suitabilityPendingEventMetadataSchema;
23372
23395
  exports.suitabilityRatingSchema = suitabilityRatingSchema;
23396
+ exports.syncProposalsStatusRequestPayloadSchema = syncProposalsStatusRequestPayloadSchema;
23373
23397
  exports.systemPromptSchema = systemPromptSchema;
23374
23398
  exports.systemSchema = systemSchema;
23375
23399
  exports.talentTypeEnum = talentTypeEnum;
@@ -23387,6 +23411,7 @@ exports.updateCampaignAnalyticsSchema = updateCampaignAnalyticsSchema;
23387
23411
  exports.updateCampaignSchema = updateCampaignSchema;
23388
23412
  exports.updateChatbotSchema = updateChatbotSchema;
23389
23413
  exports.updateLeadStatusSchema = updateLeadStatusSchema;
23414
+ exports.updateOrganizationLeadsStatusPayloadSchema = updateOrganizationLeadsStatusPayloadSchema;
23390
23415
  exports.updateScraperAccountSchema = updateScraperAccountSchema;
23391
23416
  exports.updateSuitableLeadNotificationBodySchema = updateSuitableLeadNotificationBodySchema;
23392
23417
  exports.updateSuitableLeadNotificationType = updateSuitableLeadNotificationType;
@@ -63,4 +63,5 @@ export declare const JOB_FILTER_OPTIONS: {
63
63
  CLIENT_INDUSTRY: readonly ["Aerospace", "Agriculture & Forestry", "Art & Design", "Automotive", "Aviation", "Education", "Energy & Utilities", "Engineering & Architecture", "Fashion & Beauty", "Finance & Accounting", "Food & Beverage", "Government & Public Sector", "Health & Fitness", "HR & Business Services", "Legal", "Manufacturing & Construction", "Media & Entertainment", "Military & Defense", "Mining", "Real Estate", "Retail & Consumer Goods", "Sales & Marketing", "Science & Medicine", "Sports & Recreation", "Supply Chain & Logistics", "Tech & IT", "Transportation & Warehousing", "Travel & Hospitality"];
64
64
  CLIENT_SIZE: readonly ["Individual client", "Small company (2-9 people)", "Mid-sized company (10-99 people)", "Large company (100-1,000 people)", "Large company (1,000+ people)", "Unspecified"];
65
65
  };
66
+ export declare const HIERARCHICAL_CATEGORIES_TO_CHILDREN: Record<"Accounting & Consulting" | "Admin Support" | "Customer Service" | "Data Science & Analytics" | "Design & Creative" | "Engineering & Architecture" | "IT & Networking" | "Legal" | "Sales & Marketing" | "Translation" | "Software Development" | "Writing", readonly ["Accounting & Bookkeeping", "Financial Planning", "Management Consulting & Analysis", "Other - Accounting & Consulting", "Personal & Professional Coaching", "Recruiting & Human Resources"] | readonly ["Data Entry & Transcription Services", "Market Research & Product Reviews", "Project Management", "Virtual Assistance"] | readonly ["Community Management & Tagging", "Customer Service & Tech Support"] | readonly ["AI & Machine Learning", "Data Analysis & Testing", "Data Extraction/ETL", "Data Mining & Management"] | readonly ["Art & Illustration", "Audio & Music Production", "Branding & Logo Design", "Graphic, Editorial & Presentation Design", "NFT, AR/VR & Game Art", "Performing Arts", "Photography", "Product Design", "Video & Animation"] | readonly ["3D Modeling & CAD", "Building & Landscape Architecture", "Chemical Engineering", "Civil & Structural Engineering", "Contract Manufacturing", "Electrical & Electronic Engineering", "Energy & Mechanical Engineering"] | readonly ["Database Management & Administration", "DevOps & Solution Architecture", "ERP/CRM Software", "Information Security & Compliance", "Network & System Administration"] | readonly ["Corporate & Contract Law", "Finance & Tax Law", "International & Immigration Law", "Public Law"] | readonly ["Digital Marketing", "Lead Generation & Telemarketing", "Marketing, PR & Brand Strategy"] | readonly ["Language Tutoring & Interpretation", "Translation & Localization Services"] | readonly ["AI Apps & Integration", "Blockchain, NFT & Cryptocurrency", "Desktop Application Development", "Ecommerce Development", "Game Design & Development", "Mobile Development", "Other - Software Development", "Product Management & Scrum", "QA Testing", "Scripts & Utilities", "Web & Mobile Design", "Web Development"] | readonly ["Content Writing", "Editing & Proofreading Services", "Professional & Business Writing", "Sales & Marketing Copywriting"]>;
66
67
  export declare const regionNames: Record<Region, string>;
@@ -126,6 +126,7 @@ export declare const ROUTES: {
126
126
  readonly BASE: (id: string) => string;
127
127
  readonly BY_ID: (id: string, memberId: string) => string;
128
128
  };
129
+ readonly UPDATE_LEADS_STATUS: (id: string) => string;
129
130
  readonly SETTINGS: (id: string) => string;
130
131
  readonly CHARGES: (id: string) => string;
131
132
  readonly PAYMENT_METHODS: (id: string) => string;
@@ -419,7 +419,7 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
419
419
  answer: string;
420
420
  }>, "many">>;
421
421
  agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
422
- leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>>;
422
+ leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "viewed", "replied", "won"]>>;
423
423
  biddingAmount: z.ZodNullable<z.ZodNumber>;
424
424
  boosted: z.ZodNullable<z.ZodBoolean>;
425
425
  boostingAmount: z.ZodNullable<z.ZodNumber>;
@@ -429,6 +429,7 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
429
429
  feedbackCheckTaskId: z.ZodNullable<z.ZodString>;
430
430
  bidDecision: z.ZodNullable<z.ZodEnum<["proceeded", "rejected"]>>;
431
431
  rejectedFeedback: z.ZodNullable<z.ZodString>;
432
+ applicationId: z.ZodNullable<z.ZodString>;
432
433
  }>, "processed">, "strip", z.ZodTypeAny, {
433
434
  organizationId: string;
434
435
  campaignId: string;
@@ -532,7 +533,7 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
532
533
  suitabilityReason: string | null;
533
534
  proposal: string | null;
534
535
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
535
- leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | null;
536
+ leadStatus: "leads" | "contacted" | "insufficientConnects" | "viewed" | "replied" | "won" | null;
536
537
  biddingAmount: number | null;
537
538
  boosted: boolean | null;
538
539
  boostingAmount: number | null;
@@ -541,6 +542,7 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
541
542
  feedbackCheckTaskId: string | null;
542
543
  bidDecision: "proceeded" | "rejected" | null;
543
544
  rejectedFeedback: string | null;
545
+ applicationId: string | null;
544
546
  activity?: Partial<Record<"4h" | "24h", {
545
547
  proposals: {
546
548
  min: number | null;
@@ -666,7 +668,7 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
666
668
  suitabilityReason: string | null;
667
669
  proposal: string | null;
668
670
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
669
- leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | null;
671
+ leadStatus: "leads" | "contacted" | "insufficientConnects" | "viewed" | "replied" | "won" | null;
670
672
  biddingAmount: number | null;
671
673
  boosted: boolean | null;
672
674
  boostingAmount: number | null;
@@ -675,6 +677,7 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
675
677
  feedbackCheckTaskId: string | null;
676
678
  bidDecision: "proceeded" | "rejected" | null;
677
679
  rejectedFeedback: string | null;
680
+ applicationId: string | null;
678
681
  activity?: Partial<Record<"4h" | "24h", {
679
682
  proposals: {
680
683
  min: number | null;
@@ -816,7 +819,7 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
816
819
  suitabilityReason: string | null;
817
820
  proposal: string | null;
818
821
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
819
- leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | null;
822
+ leadStatus: "leads" | "contacted" | "insufficientConnects" | "viewed" | "replied" | "won" | null;
820
823
  biddingAmount: number | null;
821
824
  boosted: boolean | null;
822
825
  boostingAmount: number | null;
@@ -825,6 +828,7 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
825
828
  feedbackCheckTaskId: string | null;
826
829
  bidDecision: "proceeded" | "rejected" | null;
827
830
  rejectedFeedback: string | null;
831
+ applicationId: string | null;
828
832
  activity?: Partial<Record<"4h" | "24h", {
829
833
  proposals: {
830
834
  min: number | null;
@@ -960,7 +964,7 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
960
964
  suitabilityReason: string | null;
961
965
  proposal: string | null;
962
966
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
963
- leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | null;
967
+ leadStatus: "leads" | "contacted" | "insufficientConnects" | "viewed" | "replied" | "won" | null;
964
968
  biddingAmount: number | null;
965
969
  boosted: boolean | null;
966
970
  boostingAmount: number | null;
@@ -969,6 +973,7 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
969
973
  feedbackCheckTaskId: string | null;
970
974
  bidDecision: "proceeded" | "rejected" | null;
971
975
  rejectedFeedback: string | null;
976
+ applicationId: string | null;
972
977
  activity?: Partial<Record<"4h" | "24h", {
973
978
  proposals: {
974
979
  min: number | null;