lancer-shared 1.2.326 → 1.2.327

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 (41) hide show
  1. package/dist/bundle.cjs.js +105 -0
  2. package/dist/bundle.cjs.js.map +1 -1
  3. package/dist/bundle.esm.js +94 -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 +1 -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/bidder/bid.d.ts +1744 -1744
  12. package/dist/schemas/campaign/campaign-analytics.d.ts +250 -250
  13. package/dist/schemas/campaign/campaign-chat-bot.d.ts +4 -4
  14. package/dist/schemas/campaign/campaign.d.ts +69 -69
  15. package/dist/schemas/chat/index.d.ts +563 -68
  16. package/dist/schemas/dashboard/index.d.ts +18 -18
  17. package/dist/schemas/golden-dataset/sample.d.ts +4 -4
  18. package/dist/schemas/job/index.d.ts +70 -70
  19. package/dist/schemas/job/job-details.d.ts +14 -14
  20. package/dist/schemas/job/job-listing.d.ts +10 -10
  21. package/dist/schemas/job/nuxt.d.ts +6 -6
  22. package/dist/schemas/lead/index.d.ts +683 -683
  23. package/dist/schemas/lead/lead-status.d.ts +2 -2
  24. package/dist/schemas/logger/feed/feed-job-enrich.d.ts +98 -98
  25. package/dist/schemas/logger/log-event.d.ts +40 -40
  26. package/dist/schemas/logger/scraper-events.d.ts +8 -8
  27. package/dist/schemas/notifications/index.d.ts +4 -4
  28. package/dist/schemas/organization/billing.d.ts +2 -2
  29. package/dist/schemas/organization/index.d.ts +34 -34
  30. package/dist/schemas/organization/onboarding.d.ts +2 -2
  31. package/dist/schemas/organization/organization-leads.d.ts +2 -2
  32. package/dist/schemas/organization/subscription.d.ts +6 -6
  33. package/dist/schemas/plan/index.d.ts +2 -2
  34. package/dist/schemas/proxy/proxy.d.ts +3 -3
  35. package/dist/schemas/scraper/scrape-payload.d.ts +262 -262
  36. package/dist/schemas/scraper/scrape-result.d.ts +86 -86
  37. package/dist/schemas/transaction/index.d.ts +4 -4
  38. package/dist/schemas/upwork-talent/index.d.ts +8 -8
  39. package/dist/schemas/usage/index.d.ts +2 -2
  40. package/dist/schemas/usage-event/index.d.ts +8 -8
  41. package/package.json +1 -1
@@ -33,9 +33,9 @@ export declare const chatbotSchema: z.ZodObject<{
33
33
  createdAt: z.ZodNumber;
34
34
  updatedAt: z.ZodNumber;
35
35
  }, "strip", z.ZodTypeAny, {
36
+ organizationId: string;
36
37
  createdAt: number;
37
38
  updatedAt: number;
38
- organizationId: string;
39
39
  campaignId: string;
40
40
  notificationsEnabled: boolean;
41
41
  workspaceId: string;
@@ -48,9 +48,9 @@ export declare const chatbotSchema: z.ZodObject<{
48
48
  accessToken?: string | undefined;
49
49
  refreshToken?: string | undefined;
50
50
  }, {
51
+ organizationId: string;
51
52
  createdAt: number;
52
53
  updatedAt: number;
53
- organizationId: string;
54
54
  campaignId: string;
55
55
  workspaceId: string;
56
56
  channels: {
@@ -143,15 +143,15 @@ export declare const sendNotificationRequestSchema: z.ZodObject<{
143
143
  message: z.ZodOptional<z.ZodString>;
144
144
  isSleepModeActive: z.ZodOptional<z.ZodBoolean>;
145
145
  }, "strip", z.ZodTypeAny, {
146
- leadId: string;
147
146
  organizationId: string;
147
+ leadId: string;
148
148
  campaignId: string;
149
149
  notificationType: "biddingFailed" | "boostAboveMaxConnects" | "privateJob" | "alreadyHired" | "suitableLead" | "proposalSent" | "proposalViewed" | "proposalReplied" | "noConnects" | "accountDisconnected" | "biddingWarning" | "jobNoLongerAvailable" | "jobAlreadyBiddedOn";
150
150
  message?: string | undefined;
151
151
  isSleepModeActive?: boolean | undefined;
152
152
  }, {
153
- leadId: string;
154
153
  organizationId: string;
154
+ leadId: string;
155
155
  campaignId: string;
156
156
  notificationType: "biddingFailed" | "boostAboveMaxConnects" | "privateJob" | "alreadyHired" | "suitableLead" | "proposalSent" | "proposalViewed" | "proposalReplied" | "noConnects" | "accountDisconnected" | "biddingWarning" | "jobNoLongerAvailable" | "jobAlreadyBiddedOn";
157
157
  message?: string | undefined;
@@ -468,9 +468,8 @@ export declare const campaignSchema: z.ZodObject<{
468
468
  name: string;
469
469
  createdAt: number;
470
470
  updatedAt: number;
471
- coverLetterTemplateId: string | null;
472
471
  biddingDelayInMinutes: number;
473
- bidWithWarning: "bid" | "skip";
472
+ bidWithWarning: "skip" | "bid";
474
473
  biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate" | "smart_bidding";
475
474
  biddingHourlyRatePercentage: number | null;
476
475
  biddingFixedHourlyRate: number | null;
@@ -480,7 +479,7 @@ export declare const campaignSchema: z.ZodObject<{
480
479
  maximumBoost: number | null;
481
480
  minBoost: number | null;
482
481
  insufficeintBoostConnectsAction: "skip" | "bid_without_boost";
483
- alreadyHiredAction: "bid" | "skip";
482
+ alreadyHiredAction: "skip" | "bid";
484
483
  bidConfig: {
485
484
  contractorName: string | null;
486
485
  agencyName: string | null;
@@ -489,6 +488,8 @@ export declare const campaignSchema: z.ZodObject<{
489
488
  bidAs: "freelancer" | "agency" | null;
490
489
  selectedPortfoliosIds: string[] | null;
491
490
  } | null;
491
+ coverLetterTemplateId: string | null;
492
+ leadCounts: Partial<Record<"rejected" | "biddingFailed" | "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "viewed" | "replied" | "biddingScheduled" | "alreadyHired" | "won", number>> | null;
492
493
  filters: {
493
494
  regions: ("USOnly" | "UKOnly" | "Worldwide" | "All")[] | null;
494
495
  questions: {
@@ -549,12 +550,16 @@ export declare const campaignSchema: z.ZodObject<{
549
550
  totalSpentIncludeClientsWithLessThanXPostedJobs: number | null;
550
551
  averageHourlyRateIncludeClientsWithLessThanXPostedJobs: number | null;
551
552
  };
553
+ limits: {
554
+ enabled: boolean;
555
+ maxDailyProposalsSent: number;
556
+ windowAnchorAt: number | null;
557
+ };
552
558
  archivedAt: number | null;
553
559
  confirmedBillingAt: number | null;
554
560
  monthlyBudget: number | null;
555
561
  boostingThreshold: number | null;
556
562
  biddingFixedPriceRate: number | null;
557
- leadCounts: Partial<Record<"rejected" | "biddingFailed" | "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "viewed" | "replied" | "biddingScheduled" | "alreadyHired" | "won", number>> | null;
558
563
  expenses: {
559
564
  biddingAmount: number;
560
565
  boosted: number;
@@ -572,11 +577,6 @@ export declare const campaignSchema: z.ZodObject<{
572
577
  } | null;
573
578
  organizationProfileId: string | null;
574
579
  lastSyncedProposalsAt: number | null;
575
- limits: {
576
- enabled: boolean;
577
- maxDailyProposalsSent: number;
578
- windowAnchorAt: number | null;
579
- };
580
580
  workTime: {
581
581
  days: ("monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday")[];
582
582
  enabled: boolean;
@@ -593,15 +593,14 @@ export declare const campaignSchema: z.ZodObject<{
593
593
  name: string;
594
594
  createdAt: number;
595
595
  updatedAt: number;
596
- coverLetterTemplateId: string | null;
597
- bidWithWarning: "bid" | "skip";
596
+ bidWithWarning: "skip" | "bid";
598
597
  biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate" | "smart_bidding";
599
598
  biddingHourlyRatePercentage: number | null;
600
599
  biddingFixedHourlyRate: number | null;
601
600
  boostDownToNthPlace: number | null;
602
601
  connectsAbovePrevious: number | null;
603
602
  insufficeintBoostConnectsAction: "skip" | "bid_without_boost";
604
- alreadyHiredAction: "bid" | "skip";
603
+ alreadyHiredAction: "skip" | "bid";
605
604
  bidConfig: {
606
605
  contractorName: string | null;
607
606
  agencyName: string | null;
@@ -610,6 +609,8 @@ export declare const campaignSchema: z.ZodObject<{
610
609
  bidAs: "freelancer" | "agency" | null;
611
610
  selectedPortfoliosIds: string[] | null;
612
611
  } | null;
612
+ coverLetterTemplateId: string | null;
613
+ leadCounts: Partial<Record<"rejected" | "biddingFailed" | "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "viewed" | "replied" | "biddingScheduled" | "alreadyHired" | "won", number>> | null;
613
614
  filters: {
614
615
  regions: ("USOnly" | "UKOnly" | "Worldwide" | "All")[] | null;
615
616
  questions: {
@@ -670,11 +671,15 @@ export declare const campaignSchema: z.ZodObject<{
670
671
  totalSpentIncludeClientsWithLessThanXPostedJobs: number | null;
671
672
  averageHourlyRateIncludeClientsWithLessThanXPostedJobs: number | null;
672
673
  };
674
+ limits: {
675
+ enabled: boolean;
676
+ maxDailyProposalsSent: number;
677
+ windowAnchorAt: number | null;
678
+ };
673
679
  archivedAt: number | null;
674
680
  confirmedBillingAt: number | null;
675
681
  monthlyBudget: number | null;
676
682
  biddingFixedPriceRate: number | null;
677
- leadCounts: Partial<Record<"rejected" | "biddingFailed" | "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "viewed" | "replied" | "biddingScheduled" | "alreadyHired" | "won", number>> | null;
678
683
  expenses: {
679
684
  biddingAmount?: number | undefined;
680
685
  boosted?: number | undefined;
@@ -692,11 +697,6 @@ export declare const campaignSchema: z.ZodObject<{
692
697
  } | null;
693
698
  organizationProfileId: string | null;
694
699
  lastSyncedProposalsAt: number | null;
695
- limits: {
696
- enabled: boolean;
697
- maxDailyProposalsSent: number;
698
- windowAnchorAt: number | null;
699
- };
700
700
  workTime: {
701
701
  days: ("monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday")[];
702
702
  enabled: boolean;
@@ -1128,9 +1128,8 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
1128
1128
  }, "id" | "createdAt" | "updatedAt" | "bidConfig">, "strip", z.ZodTypeAny, {
1129
1129
  priority: number | null;
1130
1130
  name: string;
1131
- coverLetterTemplateId: string | null;
1132
1131
  biddingDelayInMinutes: number;
1133
- bidWithWarning: "bid" | "skip";
1132
+ bidWithWarning: "skip" | "bid";
1134
1133
  biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate" | "smart_bidding";
1135
1134
  biddingHourlyRatePercentage: number | null;
1136
1135
  biddingFixedHourlyRate: number | null;
@@ -1140,7 +1139,9 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
1140
1139
  maximumBoost: number | null;
1141
1140
  minBoost: number | null;
1142
1141
  insufficeintBoostConnectsAction: "skip" | "bid_without_boost";
1143
- alreadyHiredAction: "bid" | "skip";
1142
+ alreadyHiredAction: "skip" | "bid";
1143
+ coverLetterTemplateId: string | null;
1144
+ leadCounts: Partial<Record<"rejected" | "biddingFailed" | "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "viewed" | "replied" | "biddingScheduled" | "alreadyHired" | "won", number>> | null;
1144
1145
  filters: {
1145
1146
  regions: ("USOnly" | "UKOnly" | "Worldwide" | "All")[] | null;
1146
1147
  questions: {
@@ -1201,12 +1202,16 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
1201
1202
  totalSpentIncludeClientsWithLessThanXPostedJobs: number | null;
1202
1203
  averageHourlyRateIncludeClientsWithLessThanXPostedJobs: number | null;
1203
1204
  };
1205
+ limits: {
1206
+ enabled: boolean;
1207
+ maxDailyProposalsSent: number;
1208
+ windowAnchorAt: number | null;
1209
+ };
1204
1210
  archivedAt: number | null;
1205
1211
  confirmedBillingAt: number | null;
1206
1212
  monthlyBudget: number | null;
1207
1213
  boostingThreshold: number | null;
1208
1214
  biddingFixedPriceRate: number | null;
1209
- leadCounts: Partial<Record<"rejected" | "biddingFailed" | "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "viewed" | "replied" | "biddingScheduled" | "alreadyHired" | "won", number>> | null;
1210
1215
  expenses: {
1211
1216
  biddingAmount: number;
1212
1217
  boosted: number;
@@ -1224,11 +1229,6 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
1224
1229
  } | null;
1225
1230
  organizationProfileId: string | null;
1226
1231
  lastSyncedProposalsAt: number | null;
1227
- limits: {
1228
- enabled: boolean;
1229
- maxDailyProposalsSent: number;
1230
- windowAnchorAt: number | null;
1231
- };
1232
1232
  workTime: {
1233
1233
  days: ("monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday")[];
1234
1234
  enabled: boolean;
@@ -1242,15 +1242,16 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
1242
1242
  }, {
1243
1243
  priority: number | null;
1244
1244
  name: string;
1245
- coverLetterTemplateId: string | null;
1246
- bidWithWarning: "bid" | "skip";
1245
+ bidWithWarning: "skip" | "bid";
1247
1246
  biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate" | "smart_bidding";
1248
1247
  biddingHourlyRatePercentage: number | null;
1249
1248
  biddingFixedHourlyRate: number | null;
1250
1249
  boostDownToNthPlace: number | null;
1251
1250
  connectsAbovePrevious: number | null;
1252
1251
  insufficeintBoostConnectsAction: "skip" | "bid_without_boost";
1253
- alreadyHiredAction: "bid" | "skip";
1252
+ alreadyHiredAction: "skip" | "bid";
1253
+ coverLetterTemplateId: string | null;
1254
+ leadCounts: Partial<Record<"rejected" | "biddingFailed" | "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "viewed" | "replied" | "biddingScheduled" | "alreadyHired" | "won", number>> | null;
1254
1255
  filters: {
1255
1256
  regions: ("USOnly" | "UKOnly" | "Worldwide" | "All")[] | null;
1256
1257
  questions: {
@@ -1311,11 +1312,15 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
1311
1312
  totalSpentIncludeClientsWithLessThanXPostedJobs: number | null;
1312
1313
  averageHourlyRateIncludeClientsWithLessThanXPostedJobs: number | null;
1313
1314
  };
1315
+ limits: {
1316
+ enabled: boolean;
1317
+ maxDailyProposalsSent: number;
1318
+ windowAnchorAt: number | null;
1319
+ };
1314
1320
  archivedAt: number | null;
1315
1321
  confirmedBillingAt: number | null;
1316
1322
  monthlyBudget: number | null;
1317
1323
  biddingFixedPriceRate: number | null;
1318
- leadCounts: Partial<Record<"rejected" | "biddingFailed" | "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "viewed" | "replied" | "biddingScheduled" | "alreadyHired" | "won", number>> | null;
1319
1324
  expenses: {
1320
1325
  biddingAmount?: number | undefined;
1321
1326
  boosted?: number | undefined;
@@ -1333,11 +1338,6 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
1333
1338
  } | null;
1334
1339
  organizationProfileId: string | null;
1335
1340
  lastSyncedProposalsAt: number | null;
1336
- limits: {
1337
- enabled: boolean;
1338
- maxDailyProposalsSent: number;
1339
- windowAnchorAt: number | null;
1340
- };
1341
1341
  workTime: {
1342
1342
  days: ("monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday")[];
1343
1343
  enabled: boolean;
@@ -1359,7 +1359,6 @@ export declare const updateCampaignSchema: z.ZodObject<{
1359
1359
  priority: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1360
1360
  name: z.ZodOptional<z.ZodString>;
1361
1361
  status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"active">, z.ZodLiteral<"draft">, z.ZodLiteral<"paused">, z.ZodLiteral<"error">, z.ZodLiteral<"archived">]>>>;
1362
- coverLetterTemplateId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1363
1362
  biddingDelayInMinutes: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1364
1363
  bidWithWarning: z.ZodOptional<z.ZodEnum<["bid", "skip"]>>;
1365
1364
  biddingHourlyRateStrategy: z.ZodOptional<z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate", "smart_bidding"]>>;
@@ -1394,6 +1393,8 @@ export declare const updateCampaignSchema: z.ZodObject<{
1394
1393
  bidAs: "freelancer" | "agency" | null;
1395
1394
  selectedPortfoliosIds: string[] | null;
1396
1395
  }>>>;
1396
+ coverLetterTemplateId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1397
+ leadCounts: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "boostAboveMaxConnects", "privateJob", "noLongerAvailable", "rejected", "alreadyBiddedOn", "viewed", "replied", "biddingScheduled", "biddingFailed", "alreadyHired", "won"]>, z.ZodNumber>>>;
1397
1398
  filters: z.ZodOptional<z.ZodObject<{
1398
1399
  keywords: z.ZodNullable<z.ZodObject<{
1399
1400
  includes: z.ZodNullable<z.ZodString>;
@@ -1656,12 +1657,24 @@ export declare const updateCampaignSchema: z.ZodObject<{
1656
1657
  totalSpentIncludeClientsWithLessThanXPostedJobs: number | null;
1657
1658
  averageHourlyRateIncludeClientsWithLessThanXPostedJobs: number | null;
1658
1659
  }>>;
1660
+ limits: z.ZodOptional<z.ZodObject<{
1661
+ maxDailyProposalsSent: z.ZodNumber;
1662
+ enabled: z.ZodBoolean;
1663
+ windowAnchorAt: z.ZodNullable<z.ZodNumber>;
1664
+ }, "strip", z.ZodTypeAny, {
1665
+ enabled: boolean;
1666
+ maxDailyProposalsSent: number;
1667
+ windowAnchorAt: number | null;
1668
+ }, {
1669
+ enabled: boolean;
1670
+ maxDailyProposalsSent: number;
1671
+ windowAnchorAt: number | null;
1672
+ }>>;
1659
1673
  archivedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1660
1674
  confirmedBillingAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1661
1675
  monthlyBudget: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1662
1676
  boostingThreshold: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
1663
1677
  biddingFixedPriceRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1664
- leadCounts: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "boostAboveMaxConnects", "privateJob", "noLongerAvailable", "rejected", "alreadyBiddedOn", "viewed", "replied", "biddingScheduled", "biddingFailed", "alreadyHired", "won"]>, z.ZodNumber>>>;
1665
1678
  expenses: z.ZodOptional<z.ZodObject<{
1666
1679
  biddingAmount: z.ZodDefault<z.ZodNumber>;
1667
1680
  boostingAmount: z.ZodDefault<z.ZodNumber>;
@@ -1701,19 +1714,6 @@ export declare const updateCampaignSchema: z.ZodObject<{
1701
1714
  }>>>;
1702
1715
  organizationProfileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1703
1716
  lastSyncedProposalsAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1704
- limits: z.ZodOptional<z.ZodObject<{
1705
- maxDailyProposalsSent: z.ZodNumber;
1706
- enabled: z.ZodBoolean;
1707
- windowAnchorAt: z.ZodNullable<z.ZodNumber>;
1708
- }, "strip", z.ZodTypeAny, {
1709
- enabled: boolean;
1710
- maxDailyProposalsSent: number;
1711
- windowAnchorAt: number | null;
1712
- }, {
1713
- enabled: boolean;
1714
- maxDailyProposalsSent: number;
1715
- windowAnchorAt: number | null;
1716
- }>>;
1717
1717
  workTime: z.ZodOptional<z.ZodObject<{
1718
1718
  enabled: z.ZodBoolean;
1719
1719
  days: z.ZodArray<z.ZodEnum<["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"]>, "many">;
@@ -1750,9 +1750,8 @@ export declare const updateCampaignSchema: z.ZodObject<{
1750
1750
  priority?: number | null | undefined;
1751
1751
  name?: string | undefined;
1752
1752
  status?: "error" | "active" | "paused" | "draft" | "archived" | undefined;
1753
- coverLetterTemplateId?: string | null | undefined;
1754
1753
  biddingDelayInMinutes?: number | undefined;
1755
- bidWithWarning?: "bid" | "skip" | undefined;
1754
+ bidWithWarning?: "skip" | "bid" | undefined;
1756
1755
  biddingHourlyRateStrategy?: "match_job_budget" | "match_profile_rate" | "fixed_rate" | "smart_bidding" | undefined;
1757
1756
  biddingHourlyRatePercentage?: number | null | undefined;
1758
1757
  biddingFixedHourlyRate?: number | null | undefined;
@@ -1762,7 +1761,7 @@ export declare const updateCampaignSchema: z.ZodObject<{
1762
1761
  maximumBoost?: number | null | undefined;
1763
1762
  minBoost?: number | null | undefined;
1764
1763
  insufficeintBoostConnectsAction?: "skip" | "bid_without_boost" | undefined;
1765
- alreadyHiredAction?: "bid" | "skip" | undefined;
1764
+ alreadyHiredAction?: "skip" | "bid" | undefined;
1766
1765
  bidConfig?: {
1767
1766
  contractorName: string | null;
1768
1767
  agencyName: string | null;
@@ -1771,6 +1770,8 @@ export declare const updateCampaignSchema: z.ZodObject<{
1771
1770
  bidAs: "freelancer" | "agency" | null;
1772
1771
  selectedPortfoliosIds: string[] | null;
1773
1772
  } | null | undefined;
1773
+ coverLetterTemplateId?: string | null | undefined;
1774
+ leadCounts?: Partial<Record<"rejected" | "biddingFailed" | "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "viewed" | "replied" | "biddingScheduled" | "alreadyHired" | "won", number>> | null | undefined;
1774
1775
  filters?: {
1775
1776
  regions: ("USOnly" | "UKOnly" | "Worldwide" | "All")[] | null;
1776
1777
  questions: {
@@ -1831,12 +1832,16 @@ export declare const updateCampaignSchema: z.ZodObject<{
1831
1832
  totalSpentIncludeClientsWithLessThanXPostedJobs: number | null;
1832
1833
  averageHourlyRateIncludeClientsWithLessThanXPostedJobs: number | null;
1833
1834
  } | undefined;
1835
+ limits?: {
1836
+ enabled: boolean;
1837
+ maxDailyProposalsSent: number;
1838
+ windowAnchorAt: number | null;
1839
+ } | undefined;
1834
1840
  archivedAt?: number | null | undefined;
1835
1841
  confirmedBillingAt?: number | null | undefined;
1836
1842
  monthlyBudget?: number | null | undefined;
1837
1843
  boostingThreshold?: number | null | undefined;
1838
1844
  biddingFixedPriceRate?: number | null | undefined;
1839
- leadCounts?: Partial<Record<"rejected" | "biddingFailed" | "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "viewed" | "replied" | "biddingScheduled" | "alreadyHired" | "won", number>> | null | undefined;
1840
1845
  expenses?: {
1841
1846
  biddingAmount: number;
1842
1847
  boosted: number;
@@ -1854,11 +1859,6 @@ export declare const updateCampaignSchema: z.ZodObject<{
1854
1859
  } | null | undefined;
1855
1860
  organizationProfileId?: string | null | undefined;
1856
1861
  lastSyncedProposalsAt?: number | null | undefined;
1857
- limits?: {
1858
- enabled: boolean;
1859
- maxDailyProposalsSent: number;
1860
- windowAnchorAt: number | null;
1861
- } | undefined;
1862
1862
  workTime?: {
1863
1863
  days: ("monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday")[];
1864
1864
  enabled: boolean;
@@ -1873,9 +1873,8 @@ export declare const updateCampaignSchema: z.ZodObject<{
1873
1873
  priority?: number | null | undefined;
1874
1874
  name?: string | undefined;
1875
1875
  status?: "error" | "active" | "paused" | "draft" | "archived" | undefined;
1876
- coverLetterTemplateId?: string | null | undefined;
1877
1876
  biddingDelayInMinutes?: number | undefined;
1878
- bidWithWarning?: "bid" | "skip" | undefined;
1877
+ bidWithWarning?: "skip" | "bid" | undefined;
1879
1878
  biddingHourlyRateStrategy?: "match_job_budget" | "match_profile_rate" | "fixed_rate" | "smart_bidding" | undefined;
1880
1879
  biddingHourlyRatePercentage?: number | null | undefined;
1881
1880
  biddingFixedHourlyRate?: number | null | undefined;
@@ -1885,7 +1884,7 @@ export declare const updateCampaignSchema: z.ZodObject<{
1885
1884
  maximumBoost?: number | null | undefined;
1886
1885
  minBoost?: number | null | undefined;
1887
1886
  insufficeintBoostConnectsAction?: "skip" | "bid_without_boost" | undefined;
1888
- alreadyHiredAction?: "bid" | "skip" | undefined;
1887
+ alreadyHiredAction?: "skip" | "bid" | undefined;
1889
1888
  bidConfig?: {
1890
1889
  contractorName: string | null;
1891
1890
  agencyName: string | null;
@@ -1894,6 +1893,8 @@ export declare const updateCampaignSchema: z.ZodObject<{
1894
1893
  bidAs: "freelancer" | "agency" | null;
1895
1894
  selectedPortfoliosIds: string[] | null;
1896
1895
  } | null | undefined;
1896
+ coverLetterTemplateId?: string | null | undefined;
1897
+ leadCounts?: Partial<Record<"rejected" | "biddingFailed" | "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "viewed" | "replied" | "biddingScheduled" | "alreadyHired" | "won", number>> | null | undefined;
1897
1898
  filters?: {
1898
1899
  regions: ("USOnly" | "UKOnly" | "Worldwide" | "All")[] | null;
1899
1900
  questions: {
@@ -1954,12 +1955,16 @@ export declare const updateCampaignSchema: z.ZodObject<{
1954
1955
  totalSpentIncludeClientsWithLessThanXPostedJobs: number | null;
1955
1956
  averageHourlyRateIncludeClientsWithLessThanXPostedJobs: number | null;
1956
1957
  } | undefined;
1958
+ limits?: {
1959
+ enabled: boolean;
1960
+ maxDailyProposalsSent: number;
1961
+ windowAnchorAt: number | null;
1962
+ } | undefined;
1957
1963
  archivedAt?: number | null | undefined;
1958
1964
  confirmedBillingAt?: number | null | undefined;
1959
1965
  monthlyBudget?: number | null | undefined;
1960
1966
  boostingThreshold?: number | null | undefined;
1961
1967
  biddingFixedPriceRate?: number | null | undefined;
1962
- leadCounts?: Partial<Record<"rejected" | "biddingFailed" | "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "alreadyBiddedOn" | "viewed" | "replied" | "biddingScheduled" | "alreadyHired" | "won", number>> | null | undefined;
1963
1968
  expenses?: {
1964
1969
  biddingAmount?: number | undefined;
1965
1970
  boosted?: number | undefined;
@@ -1977,11 +1982,6 @@ export declare const updateCampaignSchema: z.ZodObject<{
1977
1982
  } | null | undefined;
1978
1983
  organizationProfileId?: string | null | undefined;
1979
1984
  lastSyncedProposalsAt?: number | null | undefined;
1980
- limits?: {
1981
- enabled: boolean;
1982
- maxDailyProposalsSent: number;
1983
- windowAnchorAt: number | null;
1984
- } | undefined;
1985
1985
  workTime?: {
1986
1986
  days: ("monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday")[];
1987
1987
  enabled: boolean;