lancer-shared 1.2.149 → 1.2.151

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.
@@ -12606,7 +12606,7 @@ class NoGoogleOAuthTokensFoundException extends Error {
12606
12606
  }
12607
12607
  const noGoogleOAuthTokensFoundException = (message) => new NoGoogleOAuthTokensFoundException(message);
12608
12608
 
12609
- const scraperAccountType = z.enum([
12609
+ const scraperAccountTypeEnum = z.enum([
12610
12610
  'feed',
12611
12611
  'job',
12612
12612
  'status',
@@ -12629,7 +12629,7 @@ const scraperAccountSchema = z.object({
12629
12629
  lastUsed: z.number().nullable(),
12630
12630
  multiloginProfileId: z.string().nullable(),
12631
12631
  proxyId: z.string().nullable(),
12632
- type: scraperAccountType,
12632
+ type: scraperAccountTypeEnum,
12633
12633
  createdAt: z.number(),
12634
12634
  updatedAt: z.number(),
12635
12635
  isProtected: z.boolean().optional(),
@@ -12982,6 +12982,7 @@ const campaignSchema = z.object({
12982
12982
  biddingDelayInMinutes: z.number().default(5),
12983
12983
  biddingHourlyRateStrategy: biddingHourlyRateStrategyEnum,
12984
12984
  biddingFixedHourlyRate: z.number().nullable(),
12985
+ biddingHourlyRatePercentage: z.number().min(0).max(100).nullable(),
12985
12986
  bidWithWarning: bidWithWarningEnum,
12986
12987
  leadCounts: z.record(leadStatusSchema, z.number()).nullable(),
12987
12988
  expenses: campaignExpensesSchema,
@@ -13257,8 +13258,10 @@ const bidPayloadProposalDataSchema = z.object({
13257
13258
  boostingEnabled: z.boolean(),
13258
13259
  maximumBoost: z.number().nullable(),
13259
13260
  biddingHourlyRateStrategy: biddingHourlyRateStrategyEnum,
13261
+ biddingHourlyRatePercentage: z.number().min(0).max(100).nullable(),
13260
13262
  biddingFixedHourlyRate: z.number().nullable(),
13261
13263
  isHourlyRate: z.boolean(),
13264
+ jobMinHourlyRate: z.number().nullable(),
13262
13265
  jobMaxHourlyRate: z.number().nullable(),
13263
13266
  bidWithWarning: bidWithWarningEnum,
13264
13267
  });
@@ -13849,6 +13852,9 @@ const LogEventTypeEnum = z.enum([
13849
13852
  'feedChunkEnrichFailed',
13850
13853
  'scrapeJobsCompleted',
13851
13854
  'scraperAccountError',
13855
+ 'scraperAccountSwapStarted',
13856
+ 'scraperAccountSwapCompleted',
13857
+ 'scraperAccountSwapFailed',
13852
13858
  ]);
13853
13859
  const logEventSchema = z.object({
13854
13860
  // The type of event (use a z.enum if possible)
@@ -13978,6 +13984,35 @@ const scraperAccountErrorEventMetadata = objectType({
13978
13984
  errorCode: stringType(),
13979
13985
  errorMessage: stringType(),
13980
13986
  });
13987
+ const scraperAccountSwapStartedEventMetadata = objectType({
13988
+ region: regionSchema,
13989
+ type: scraperAccountTypeEnum,
13990
+ accountId: stringType(),
13991
+ accountEmail: stringType(),
13992
+ });
13993
+ const scraperAccountSwapCompletedEventMetadata = scraperAccountSwapStartedEventMetadata
13994
+ .pick({
13995
+ region: true,
13996
+ type: true,
13997
+ accountId: true,
13998
+ accountEmail: true,
13999
+ })
14000
+ .extend({
14001
+ newAccountId: stringType(),
14002
+ newAccountEmail: stringType(),
14003
+ });
14004
+ const scraperAccountSwapFailedEventMetadata = scraperAccountSwapStartedEventMetadata
14005
+ .pick({
14006
+ region: true,
14007
+ type: true,
14008
+ accountId: true,
14009
+ accountEmail: true,
14010
+ })
14011
+ .extend({
14012
+ errorStack: stringType(),
14013
+ errorCode: stringType(),
14014
+ errorMessage: stringType(),
14015
+ });
13981
14016
 
13982
14017
  const planStripeMetadataSchema = objectType({
13983
14018
  id: stringType().regex(/^prod_[a-zA-Z0-9]+$/),
@@ -14955,7 +14990,10 @@ exports.scraperAccountErrorEventMetadata = scraperAccountErrorEventMetadata;
14955
14990
  exports.scraperAccountProxyNotFoundException = scraperAccountProxyNotFoundException;
14956
14991
  exports.scraperAccountRegionEnum = scraperAccountRegionEnum;
14957
14992
  exports.scraperAccountSchema = scraperAccountSchema;
14958
- exports.scraperAccountType = scraperAccountType;
14993
+ exports.scraperAccountSwapCompletedEventMetadata = scraperAccountSwapCompletedEventMetadata;
14994
+ exports.scraperAccountSwapFailedEventMetadata = scraperAccountSwapFailedEventMetadata;
14995
+ exports.scraperAccountSwapStartedEventMetadata = scraperAccountSwapStartedEventMetadata;
14996
+ exports.scraperAccountTypeEnum = scraperAccountTypeEnum;
14959
14997
  exports.selectAgencyException = selectAgencyException;
14960
14998
  exports.selectContractorException = selectContractorException;
14961
14999
  exports.selectorNotFoundError = selectorNotFoundError;
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import { Proxy } from '../proxy';
3
- export declare const scraperAccountType: z.ZodEnum<["feed", "job", "status", "activity", "profile", "unauthenticated"]>;
3
+ export declare const scraperAccountTypeEnum: z.ZodEnum<["feed", "job", "status", "activity", "profile", "unauthenticated"]>;
4
4
  export declare const scraperAccountRegionEnum: z.ZodEnum<["Worldwide", "UKOnly", "USOnly"]>;
5
5
  export declare const scraperAccountSchema: z.ZodObject<{
6
6
  id: z.ZodString;
@@ -121,7 +121,7 @@ export declare const updateScraperAccountSchema: z.ZodObject<{
121
121
  updatedAt?: number | undefined;
122
122
  isProtected?: boolean | undefined;
123
123
  }>;
124
- export type ScraperAccountType = z.infer<typeof scraperAccountType>;
124
+ export type ScraperAccountType = z.infer<typeof scraperAccountTypeEnum>;
125
125
  export interface ScraperAccount extends z.infer<typeof scraperAccountSchema> {
126
126
  proxy?: Proxy;
127
127
  }
@@ -15,8 +15,10 @@ export declare const bidPayloadProposalDataSchema: z.ZodObject<{
15
15
  boostingEnabled: z.ZodBoolean;
16
16
  maximumBoost: z.ZodNullable<z.ZodNumber>;
17
17
  biddingHourlyRateStrategy: z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>;
18
+ biddingHourlyRatePercentage: z.ZodNullable<z.ZodNumber>;
18
19
  biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
19
20
  isHourlyRate: z.ZodBoolean;
21
+ jobMinHourlyRate: z.ZodNullable<z.ZodNumber>;
20
22
  jobMaxHourlyRate: z.ZodNullable<z.ZodNumber>;
21
23
  bidWithWarning: z.ZodEnum<["bid", "skip"]>;
22
24
  }, "strip", z.ZodTypeAny, {
@@ -28,8 +30,10 @@ export declare const bidPayloadProposalDataSchema: z.ZodObject<{
28
30
  boostingEnabled: boolean;
29
31
  maximumBoost: number | null;
30
32
  biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
33
+ biddingHourlyRatePercentage: number | null;
31
34
  biddingFixedHourlyRate: number | null;
32
35
  isHourlyRate: boolean;
36
+ jobMinHourlyRate: number | null;
33
37
  jobMaxHourlyRate: number | null;
34
38
  bidWithWarning: "bid" | "skip";
35
39
  }, {
@@ -41,8 +45,10 @@ export declare const bidPayloadProposalDataSchema: z.ZodObject<{
41
45
  boostingEnabled: boolean;
42
46
  maximumBoost: number | null;
43
47
  biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
48
+ biddingHourlyRatePercentage: number | null;
44
49
  biddingFixedHourlyRate: number | null;
45
50
  isHourlyRate: boolean;
51
+ jobMinHourlyRate: number | null;
46
52
  jobMaxHourlyRate: number | null;
47
53
  bidWithWarning: "bid" | "skip";
48
54
  }>;
@@ -61,8 +67,10 @@ export declare const freelancerBidProposalDataSchema: z.ZodObject<{
61
67
  boostingEnabled: z.ZodBoolean;
62
68
  maximumBoost: z.ZodNullable<z.ZodNumber>;
63
69
  biddingHourlyRateStrategy: z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>;
70
+ biddingHourlyRatePercentage: z.ZodNullable<z.ZodNumber>;
64
71
  biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
65
72
  isHourlyRate: z.ZodBoolean;
73
+ jobMinHourlyRate: z.ZodNullable<z.ZodNumber>;
66
74
  jobMaxHourlyRate: z.ZodNullable<z.ZodNumber>;
67
75
  bidWithWarning: z.ZodEnum<["bid", "skip"]>;
68
76
  }, "strip", z.ZodTypeAny, {
@@ -74,8 +82,10 @@ export declare const freelancerBidProposalDataSchema: z.ZodObject<{
74
82
  boostingEnabled: boolean;
75
83
  maximumBoost: number | null;
76
84
  biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
85
+ biddingHourlyRatePercentage: number | null;
77
86
  biddingFixedHourlyRate: number | null;
78
87
  isHourlyRate: boolean;
88
+ jobMinHourlyRate: number | null;
79
89
  jobMaxHourlyRate: number | null;
80
90
  bidWithWarning: "bid" | "skip";
81
91
  }, {
@@ -87,8 +97,10 @@ export declare const freelancerBidProposalDataSchema: z.ZodObject<{
87
97
  boostingEnabled: boolean;
88
98
  maximumBoost: number | null;
89
99
  biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
100
+ biddingHourlyRatePercentage: number | null;
90
101
  biddingFixedHourlyRate: number | null;
91
102
  isHourlyRate: boolean;
103
+ jobMinHourlyRate: number | null;
92
104
  jobMaxHourlyRate: number | null;
93
105
  bidWithWarning: "bid" | "skip";
94
106
  }>;
@@ -107,8 +119,10 @@ export declare const agencyBidProposalDataSchema: z.ZodObject<z.objectUtil.exten
107
119
  boostingEnabled: z.ZodBoolean;
108
120
  maximumBoost: z.ZodNullable<z.ZodNumber>;
109
121
  biddingHourlyRateStrategy: z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>;
122
+ biddingHourlyRatePercentage: z.ZodNullable<z.ZodNumber>;
110
123
  biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
111
124
  isHourlyRate: z.ZodBoolean;
125
+ jobMinHourlyRate: z.ZodNullable<z.ZodNumber>;
112
126
  jobMaxHourlyRate: z.ZodNullable<z.ZodNumber>;
113
127
  bidWithWarning: z.ZodEnum<["bid", "skip"]>;
114
128
  }, {
@@ -124,8 +138,10 @@ export declare const agencyBidProposalDataSchema: z.ZodObject<z.objectUtil.exten
124
138
  boostingEnabled: boolean;
125
139
  maximumBoost: number | null;
126
140
  biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
141
+ biddingHourlyRatePercentage: number | null;
127
142
  biddingFixedHourlyRate: number | null;
128
143
  isHourlyRate: boolean;
144
+ jobMinHourlyRate: number | null;
129
145
  jobMaxHourlyRate: number | null;
130
146
  bidWithWarning: "bid" | "skip";
131
147
  agencyName: string;
@@ -140,8 +156,10 @@ export declare const agencyBidProposalDataSchema: z.ZodObject<z.objectUtil.exten
140
156
  boostingEnabled: boolean;
141
157
  maximumBoost: number | null;
142
158
  biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
159
+ biddingHourlyRatePercentage: number | null;
143
160
  biddingFixedHourlyRate: number | null;
144
161
  isHourlyRate: boolean;
162
+ jobMinHourlyRate: number | null;
145
163
  jobMaxHourlyRate: number | null;
146
164
  bidWithWarning: "bid" | "skip";
147
165
  agencyName: string;
@@ -1653,8 +1671,10 @@ export declare const agencyBidPayloadSchema: z.ZodObject<z.objectUtil.extendShap
1653
1671
  boostingEnabled: z.ZodBoolean;
1654
1672
  maximumBoost: z.ZodNullable<z.ZodNumber>;
1655
1673
  biddingHourlyRateStrategy: z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>;
1674
+ biddingHourlyRatePercentage: z.ZodNullable<z.ZodNumber>;
1656
1675
  biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
1657
1676
  isHourlyRate: z.ZodBoolean;
1677
+ jobMinHourlyRate: z.ZodNullable<z.ZodNumber>;
1658
1678
  jobMaxHourlyRate: z.ZodNullable<z.ZodNumber>;
1659
1679
  bidWithWarning: z.ZodEnum<["bid", "skip"]>;
1660
1680
  }, {
@@ -1670,8 +1690,10 @@ export declare const agencyBidPayloadSchema: z.ZodObject<z.objectUtil.extendShap
1670
1690
  boostingEnabled: boolean;
1671
1691
  maximumBoost: number | null;
1672
1692
  biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
1693
+ biddingHourlyRatePercentage: number | null;
1673
1694
  biddingFixedHourlyRate: number | null;
1674
1695
  isHourlyRate: boolean;
1696
+ jobMinHourlyRate: number | null;
1675
1697
  jobMaxHourlyRate: number | null;
1676
1698
  bidWithWarning: "bid" | "skip";
1677
1699
  agencyName: string;
@@ -1686,8 +1708,10 @@ export declare const agencyBidPayloadSchema: z.ZodObject<z.objectUtil.extendShap
1686
1708
  boostingEnabled: boolean;
1687
1709
  maximumBoost: number | null;
1688
1710
  biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
1711
+ biddingHourlyRatePercentage: number | null;
1689
1712
  biddingFixedHourlyRate: number | null;
1690
1713
  isHourlyRate: boolean;
1714
+ jobMinHourlyRate: number | null;
1691
1715
  jobMaxHourlyRate: number | null;
1692
1716
  bidWithWarning: "bid" | "skip";
1693
1717
  agencyName: string;
@@ -1844,8 +1868,10 @@ export declare const agencyBidPayloadSchema: z.ZodObject<z.objectUtil.extendShap
1844
1868
  boostingEnabled: boolean;
1845
1869
  maximumBoost: number | null;
1846
1870
  biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
1871
+ biddingHourlyRatePercentage: number | null;
1847
1872
  biddingFixedHourlyRate: number | null;
1848
1873
  isHourlyRate: boolean;
1874
+ jobMinHourlyRate: number | null;
1849
1875
  jobMaxHourlyRate: number | null;
1850
1876
  bidWithWarning: "bid" | "skip";
1851
1877
  agencyName: string;
@@ -2002,8 +2028,10 @@ export declare const agencyBidPayloadSchema: z.ZodObject<z.objectUtil.extendShap
2002
2028
  boostingEnabled: boolean;
2003
2029
  maximumBoost: number | null;
2004
2030
  biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
2031
+ biddingHourlyRatePercentage: number | null;
2005
2032
  biddingFixedHourlyRate: number | null;
2006
2033
  isHourlyRate: boolean;
2034
+ jobMinHourlyRate: number | null;
2007
2035
  jobMaxHourlyRate: number | null;
2008
2036
  bidWithWarning: "bid" | "skip";
2009
2037
  agencyName: string;
@@ -2630,8 +2658,10 @@ export declare const freelancerBidPayloadSchema: z.ZodObject<z.objectUtil.extend
2630
2658
  boostingEnabled: z.ZodBoolean;
2631
2659
  maximumBoost: z.ZodNullable<z.ZodNumber>;
2632
2660
  biddingHourlyRateStrategy: z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>;
2661
+ biddingHourlyRatePercentage: z.ZodNullable<z.ZodNumber>;
2633
2662
  biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
2634
2663
  isHourlyRate: z.ZodBoolean;
2664
+ jobMinHourlyRate: z.ZodNullable<z.ZodNumber>;
2635
2665
  jobMaxHourlyRate: z.ZodNullable<z.ZodNumber>;
2636
2666
  bidWithWarning: z.ZodEnum<["bid", "skip"]>;
2637
2667
  }, "strip", z.ZodTypeAny, {
@@ -2643,8 +2673,10 @@ export declare const freelancerBidPayloadSchema: z.ZodObject<z.objectUtil.extend
2643
2673
  boostingEnabled: boolean;
2644
2674
  maximumBoost: number | null;
2645
2675
  biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
2676
+ biddingHourlyRatePercentage: number | null;
2646
2677
  biddingFixedHourlyRate: number | null;
2647
2678
  isHourlyRate: boolean;
2679
+ jobMinHourlyRate: number | null;
2648
2680
  jobMaxHourlyRate: number | null;
2649
2681
  bidWithWarning: "bid" | "skip";
2650
2682
  }, {
@@ -2656,8 +2688,10 @@ export declare const freelancerBidPayloadSchema: z.ZodObject<z.objectUtil.extend
2656
2688
  boostingEnabled: boolean;
2657
2689
  maximumBoost: number | null;
2658
2690
  biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
2691
+ biddingHourlyRatePercentage: number | null;
2659
2692
  biddingFixedHourlyRate: number | null;
2660
2693
  isHourlyRate: boolean;
2694
+ jobMinHourlyRate: number | null;
2661
2695
  jobMaxHourlyRate: number | null;
2662
2696
  bidWithWarning: "bid" | "skip";
2663
2697
  }>;
@@ -2811,8 +2845,10 @@ export declare const freelancerBidPayloadSchema: z.ZodObject<z.objectUtil.extend
2811
2845
  boostingEnabled: boolean;
2812
2846
  maximumBoost: number | null;
2813
2847
  biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
2848
+ biddingHourlyRatePercentage: number | null;
2814
2849
  biddingFixedHourlyRate: number | null;
2815
2850
  isHourlyRate: boolean;
2851
+ jobMinHourlyRate: number | null;
2816
2852
  jobMaxHourlyRate: number | null;
2817
2853
  bidWithWarning: "bid" | "skip";
2818
2854
  };
@@ -2966,8 +3002,10 @@ export declare const freelancerBidPayloadSchema: z.ZodObject<z.objectUtil.extend
2966
3002
  boostingEnabled: boolean;
2967
3003
  maximumBoost: number | null;
2968
3004
  biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
3005
+ biddingHourlyRatePercentage: number | null;
2969
3006
  biddingFixedHourlyRate: number | null;
2970
3007
  isHourlyRate: boolean;
3008
+ jobMinHourlyRate: number | null;
2971
3009
  jobMaxHourlyRate: number | null;
2972
3010
  bidWithWarning: "bid" | "skip";
2973
3011
  };
@@ -260,6 +260,7 @@ export declare const campaignSchema: z.ZodObject<{
260
260
  biddingDelayInMinutes: z.ZodDefault<z.ZodNumber>;
261
261
  biddingHourlyRateStrategy: z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>;
262
262
  biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
263
+ biddingHourlyRatePercentage: z.ZodNullable<z.ZodNumber>;
263
264
  bidWithWarning: z.ZodEnum<["bid", "skip"]>;
264
265
  leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>, z.ZodNumber>>;
265
266
  expenses: z.ZodObject<{
@@ -378,6 +379,7 @@ export declare const campaignSchema: z.ZodObject<{
378
379
  biddingDelayInMinutes: number;
379
380
  biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
380
381
  biddingFixedHourlyRate: number | null;
382
+ biddingHourlyRatePercentage: number | null;
381
383
  bidWithWarning: "bid" | "skip";
382
384
  leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won", number>> | null;
383
385
  expenses: {
@@ -462,6 +464,7 @@ export declare const campaignSchema: z.ZodObject<{
462
464
  monthlyBudget: number | null;
463
465
  biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
464
466
  biddingFixedHourlyRate: number | null;
467
+ biddingHourlyRatePercentage: number | null;
465
468
  bidWithWarning: "bid" | "skip";
466
469
  leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won", number>> | null;
467
470
  expenses: {
@@ -750,6 +753,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
750
753
  biddingDelayInMinutes: z.ZodDefault<z.ZodNumber>;
751
754
  biddingHourlyRateStrategy: z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>;
752
755
  biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
756
+ biddingHourlyRatePercentage: z.ZodNullable<z.ZodNumber>;
753
757
  bidWithWarning: z.ZodEnum<["bid", "skip"]>;
754
758
  leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>, z.ZodNumber>>;
755
759
  expenses: z.ZodObject<{
@@ -865,6 +869,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
865
869
  biddingDelayInMinutes: number;
866
870
  biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
867
871
  biddingFixedHourlyRate: number | null;
872
+ biddingHourlyRatePercentage: number | null;
868
873
  bidWithWarning: "bid" | "skip";
869
874
  leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won", number>> | null;
870
875
  expenses: {
@@ -940,6 +945,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
940
945
  monthlyBudget: number | null;
941
946
  biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
942
947
  biddingFixedHourlyRate: number | null;
948
+ biddingHourlyRatePercentage: number | null;
943
949
  bidWithWarning: "bid" | "skip";
944
950
  leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won", number>> | null;
945
951
  expenses: {
@@ -1202,6 +1208,7 @@ export declare const updateCampaignSchema: z.ZodObject<{
1202
1208
  biddingDelayInMinutes: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1203
1209
  biddingHourlyRateStrategy: z.ZodOptional<z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>>;
1204
1210
  biddingFixedHourlyRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1211
+ biddingHourlyRatePercentage: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1205
1212
  bidWithWarning: z.ZodOptional<z.ZodEnum<["bid", "skip"]>>;
1206
1213
  leadCounts: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>, z.ZodNumber>>>;
1207
1214
  expenses: z.ZodOptional<z.ZodObject<{
@@ -1318,6 +1325,7 @@ export declare const updateCampaignSchema: z.ZodObject<{
1318
1325
  biddingDelayInMinutes?: number | undefined;
1319
1326
  biddingHourlyRateStrategy?: "match_job_budget" | "match_profile_rate" | "fixed_rate" | undefined;
1320
1327
  biddingFixedHourlyRate?: number | null | undefined;
1328
+ biddingHourlyRatePercentage?: number | null | undefined;
1321
1329
  bidWithWarning?: "bid" | "skip" | undefined;
1322
1330
  leadCounts?: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won", number>> | null | undefined;
1323
1331
  expenses?: {
@@ -1404,6 +1412,7 @@ export declare const updateCampaignSchema: z.ZodObject<{
1404
1412
  biddingDelayInMinutes?: number | undefined;
1405
1413
  biddingHourlyRateStrategy?: "match_job_budget" | "match_profile_rate" | "fixed_rate" | undefined;
1406
1414
  biddingFixedHourlyRate?: number | null | undefined;
1415
+ biddingHourlyRatePercentage?: number | null | undefined;
1407
1416
  bidWithWarning?: "bid" | "skip" | undefined;
1408
1417
  leadCounts?: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won", number>> | null | undefined;
1409
1418
  expenses?: {
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
- export declare const LogEventTypeEnum: z.ZodEnum<["leadStatusCheckFailed", "leadStatusUpdated", "jobSyncPublished", "jobSyncReceived", "jobsIndexed", "leadsCreatedAndSynced", "jobDuplicateSkipped", "suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "manualSuitabilityAnalyzed", "proposalProcessing", "proposalComplete", "proposalFailed", "manualProposalGenerated", "biddingProcessing", "biddingComplete", "biddingFailed", "biddingSkipped", "biddingPending", "biddingRetry", "biddingInsufficientConnects", "biddingWarningAlert", "biddingRejected", "biddingRejectedWithFeedback", "checkSuitableLeadFeedbackStatus", "biddingApproved", "acceptInvitationFailed", "errorLogged", "cloudTaskRetry", "manualLeadEdited", "leadArchived", "auditTrailLogged", "feedScrapeStarted", "feedScrapeCompleted", "feedScrapeFailed", "feedEnrichStarted", "feedEnrichCompleted", "feedEnrichFailed", "feedJobEnrichStarted", "feedJobEnrichCompleted", "feedJobEnrichFailed", "feedChunkEnrichStarted", "feedChunkEnrichCompleted", "feedChunkEnrichFailed", "scrapeJobsCompleted", "scraperAccountError"]>;
2
+ export declare const LogEventTypeEnum: z.ZodEnum<["leadStatusCheckFailed", "leadStatusUpdated", "jobSyncPublished", "jobSyncReceived", "jobsIndexed", "leadsCreatedAndSynced", "jobDuplicateSkipped", "suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "manualSuitabilityAnalyzed", "proposalProcessing", "proposalComplete", "proposalFailed", "manualProposalGenerated", "biddingProcessing", "biddingComplete", "biddingFailed", "biddingSkipped", "biddingPending", "biddingRetry", "biddingInsufficientConnects", "biddingWarningAlert", "biddingRejected", "biddingRejectedWithFeedback", "checkSuitableLeadFeedbackStatus", "biddingApproved", "acceptInvitationFailed", "errorLogged", "cloudTaskRetry", "manualLeadEdited", "leadArchived", "auditTrailLogged", "feedScrapeStarted", "feedScrapeCompleted", "feedScrapeFailed", "feedEnrichStarted", "feedEnrichCompleted", "feedEnrichFailed", "feedJobEnrichStarted", "feedJobEnrichCompleted", "feedJobEnrichFailed", "feedChunkEnrichStarted", "feedChunkEnrichCompleted", "feedChunkEnrichFailed", "scrapeJobsCompleted", "scraperAccountError", "scraperAccountSwapStarted", "scraperAccountSwapCompleted", "scraperAccountSwapFailed"]>;
3
3
  export declare const logEventSchema: z.ZodObject<{
4
- type: z.ZodEnum<["leadStatusCheckFailed", "leadStatusUpdated", "jobSyncPublished", "jobSyncReceived", "jobsIndexed", "leadsCreatedAndSynced", "jobDuplicateSkipped", "suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "manualSuitabilityAnalyzed", "proposalProcessing", "proposalComplete", "proposalFailed", "manualProposalGenerated", "biddingProcessing", "biddingComplete", "biddingFailed", "biddingSkipped", "biddingPending", "biddingRetry", "biddingInsufficientConnects", "biddingWarningAlert", "biddingRejected", "biddingRejectedWithFeedback", "checkSuitableLeadFeedbackStatus", "biddingApproved", "acceptInvitationFailed", "errorLogged", "cloudTaskRetry", "manualLeadEdited", "leadArchived", "auditTrailLogged", "feedScrapeStarted", "feedScrapeCompleted", "feedScrapeFailed", "feedEnrichStarted", "feedEnrichCompleted", "feedEnrichFailed", "feedJobEnrichStarted", "feedJobEnrichCompleted", "feedJobEnrichFailed", "feedChunkEnrichStarted", "feedChunkEnrichCompleted", "feedChunkEnrichFailed", "scrapeJobsCompleted", "scraperAccountError"]>;
4
+ type: z.ZodEnum<["leadStatusCheckFailed", "leadStatusUpdated", "jobSyncPublished", "jobSyncReceived", "jobsIndexed", "leadsCreatedAndSynced", "jobDuplicateSkipped", "suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "manualSuitabilityAnalyzed", "proposalProcessing", "proposalComplete", "proposalFailed", "manualProposalGenerated", "biddingProcessing", "biddingComplete", "biddingFailed", "biddingSkipped", "biddingPending", "biddingRetry", "biddingInsufficientConnects", "biddingWarningAlert", "biddingRejected", "biddingRejectedWithFeedback", "checkSuitableLeadFeedbackStatus", "biddingApproved", "acceptInvitationFailed", "errorLogged", "cloudTaskRetry", "manualLeadEdited", "leadArchived", "auditTrailLogged", "feedScrapeStarted", "feedScrapeCompleted", "feedScrapeFailed", "feedEnrichStarted", "feedEnrichCompleted", "feedEnrichFailed", "feedJobEnrichStarted", "feedJobEnrichCompleted", "feedJobEnrichFailed", "feedChunkEnrichStarted", "feedChunkEnrichCompleted", "feedChunkEnrichFailed", "scrapeJobsCompleted", "scraperAccountError", "scraperAccountSwapStarted", "scraperAccountSwapCompleted", "scraperAccountSwapFailed"]>;
5
5
  source: z.ZodString;
6
6
  resourceType: z.ZodDefault<z.ZodString>;
7
7
  resourceId: z.ZodNullable<z.ZodString>;
@@ -13,7 +13,7 @@ export declare const logEventSchema: z.ZodObject<{
13
13
  metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
14
14
  timestamp: z.ZodNumber;
15
15
  }, "strip", z.ZodTypeAny, {
16
- type: "leadStatusCheckFailed" | "leadStatusUpdated" | "jobSyncPublished" | "jobSyncReceived" | "jobsIndexed" | "leadsCreatedAndSynced" | "jobDuplicateSkipped" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "acceptInvitationFailed" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "feedEnrichStarted" | "feedEnrichCompleted" | "feedEnrichFailed" | "feedJobEnrichStarted" | "feedJobEnrichCompleted" | "feedJobEnrichFailed" | "feedChunkEnrichStarted" | "feedChunkEnrichCompleted" | "feedChunkEnrichFailed" | "scrapeJobsCompleted" | "scraperAccountError";
16
+ type: "leadStatusCheckFailed" | "leadStatusUpdated" | "jobSyncPublished" | "jobSyncReceived" | "jobsIndexed" | "leadsCreatedAndSynced" | "jobDuplicateSkipped" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "acceptInvitationFailed" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "feedEnrichStarted" | "feedEnrichCompleted" | "feedEnrichFailed" | "feedJobEnrichStarted" | "feedJobEnrichCompleted" | "feedJobEnrichFailed" | "feedChunkEnrichStarted" | "feedChunkEnrichCompleted" | "feedChunkEnrichFailed" | "scrapeJobsCompleted" | "scraperAccountError" | "scraperAccountSwapStarted" | "scraperAccountSwapCompleted" | "scraperAccountSwapFailed";
17
17
  source: string;
18
18
  resourceType: string;
19
19
  resourceId: string | null;
@@ -25,7 +25,7 @@ export declare const logEventSchema: z.ZodObject<{
25
25
  metadata: Record<string, unknown> | null;
26
26
  timestamp: number;
27
27
  }, {
28
- type: "leadStatusCheckFailed" | "leadStatusUpdated" | "jobSyncPublished" | "jobSyncReceived" | "jobsIndexed" | "leadsCreatedAndSynced" | "jobDuplicateSkipped" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "acceptInvitationFailed" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "feedEnrichStarted" | "feedEnrichCompleted" | "feedEnrichFailed" | "feedJobEnrichStarted" | "feedJobEnrichCompleted" | "feedJobEnrichFailed" | "feedChunkEnrichStarted" | "feedChunkEnrichCompleted" | "feedChunkEnrichFailed" | "scrapeJobsCompleted" | "scraperAccountError";
28
+ type: "leadStatusCheckFailed" | "leadStatusUpdated" | "jobSyncPublished" | "jobSyncReceived" | "jobsIndexed" | "leadsCreatedAndSynced" | "jobDuplicateSkipped" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "acceptInvitationFailed" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "feedEnrichStarted" | "feedEnrichCompleted" | "feedEnrichFailed" | "feedJobEnrichStarted" | "feedJobEnrichCompleted" | "feedJobEnrichFailed" | "feedChunkEnrichStarted" | "feedChunkEnrichCompleted" | "feedChunkEnrichFailed" | "scrapeJobsCompleted" | "scraperAccountError" | "scraperAccountSwapStarted" | "scraperAccountSwapCompleted" | "scraperAccountSwapFailed";
29
29
  source: string;
30
30
  resourceId: string | null;
31
31
  organizationId: string | null;
@@ -340,7 +340,7 @@ export declare const proposalCompleteEventMetadataSchema: z.ZodObject<{
340
340
  }>;
341
341
  export type ProposalCompleteEventMetadata = z.infer<typeof proposalCompleteEventMetadataSchema>;
342
342
  export declare const eventLoggerPayloadSchema: z.ZodUnion<[z.ZodObject<{
343
- type: z.ZodEnum<["leadStatusCheckFailed", "leadStatusUpdated", "jobSyncPublished", "jobSyncReceived", "jobsIndexed", "leadsCreatedAndSynced", "jobDuplicateSkipped", "suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "manualSuitabilityAnalyzed", "proposalProcessing", "proposalComplete", "proposalFailed", "manualProposalGenerated", "biddingProcessing", "biddingComplete", "biddingFailed", "biddingSkipped", "biddingPending", "biddingRetry", "biddingInsufficientConnects", "biddingWarningAlert", "biddingRejected", "biddingRejectedWithFeedback", "checkSuitableLeadFeedbackStatus", "biddingApproved", "acceptInvitationFailed", "errorLogged", "cloudTaskRetry", "manualLeadEdited", "leadArchived", "auditTrailLogged", "feedScrapeStarted", "feedScrapeCompleted", "feedScrapeFailed", "feedEnrichStarted", "feedEnrichCompleted", "feedEnrichFailed", "feedJobEnrichStarted", "feedJobEnrichCompleted", "feedJobEnrichFailed", "feedChunkEnrichStarted", "feedChunkEnrichCompleted", "feedChunkEnrichFailed", "scrapeJobsCompleted", "scraperAccountError"]>;
343
+ type: z.ZodEnum<["leadStatusCheckFailed", "leadStatusUpdated", "jobSyncPublished", "jobSyncReceived", "jobsIndexed", "leadsCreatedAndSynced", "jobDuplicateSkipped", "suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "manualSuitabilityAnalyzed", "proposalProcessing", "proposalComplete", "proposalFailed", "manualProposalGenerated", "biddingProcessing", "biddingComplete", "biddingFailed", "biddingSkipped", "biddingPending", "biddingRetry", "biddingInsufficientConnects", "biddingWarningAlert", "biddingRejected", "biddingRejectedWithFeedback", "checkSuitableLeadFeedbackStatus", "biddingApproved", "acceptInvitationFailed", "errorLogged", "cloudTaskRetry", "manualLeadEdited", "leadArchived", "auditTrailLogged", "feedScrapeStarted", "feedScrapeCompleted", "feedScrapeFailed", "feedEnrichStarted", "feedEnrichCompleted", "feedEnrichFailed", "feedJobEnrichStarted", "feedJobEnrichCompleted", "feedJobEnrichFailed", "feedChunkEnrichStarted", "feedChunkEnrichCompleted", "feedChunkEnrichFailed", "scrapeJobsCompleted", "scraperAccountError", "scraperAccountSwapStarted", "scraperAccountSwapCompleted", "scraperAccountSwapFailed"]>;
344
344
  source: z.ZodString;
345
345
  resourceType: z.ZodDefault<z.ZodString>;
346
346
  resourceId: z.ZodNullable<z.ZodString>;
@@ -352,7 +352,7 @@ export declare const eventLoggerPayloadSchema: z.ZodUnion<[z.ZodObject<{
352
352
  metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
353
353
  timestamp: z.ZodNumber;
354
354
  }, "strip", z.ZodTypeAny, {
355
- type: "leadStatusCheckFailed" | "leadStatusUpdated" | "jobSyncPublished" | "jobSyncReceived" | "jobsIndexed" | "leadsCreatedAndSynced" | "jobDuplicateSkipped" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "acceptInvitationFailed" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "feedEnrichStarted" | "feedEnrichCompleted" | "feedEnrichFailed" | "feedJobEnrichStarted" | "feedJobEnrichCompleted" | "feedJobEnrichFailed" | "feedChunkEnrichStarted" | "feedChunkEnrichCompleted" | "feedChunkEnrichFailed" | "scrapeJobsCompleted" | "scraperAccountError";
355
+ type: "leadStatusCheckFailed" | "leadStatusUpdated" | "jobSyncPublished" | "jobSyncReceived" | "jobsIndexed" | "leadsCreatedAndSynced" | "jobDuplicateSkipped" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "acceptInvitationFailed" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "feedEnrichStarted" | "feedEnrichCompleted" | "feedEnrichFailed" | "feedJobEnrichStarted" | "feedJobEnrichCompleted" | "feedJobEnrichFailed" | "feedChunkEnrichStarted" | "feedChunkEnrichCompleted" | "feedChunkEnrichFailed" | "scrapeJobsCompleted" | "scraperAccountError" | "scraperAccountSwapStarted" | "scraperAccountSwapCompleted" | "scraperAccountSwapFailed";
356
356
  source: string;
357
357
  resourceType: string;
358
358
  resourceId: string | null;
@@ -364,7 +364,7 @@ export declare const eventLoggerPayloadSchema: z.ZodUnion<[z.ZodObject<{
364
364
  metadata: Record<string, unknown> | null;
365
365
  timestamp: number;
366
366
  }, {
367
- type: "leadStatusCheckFailed" | "leadStatusUpdated" | "jobSyncPublished" | "jobSyncReceived" | "jobsIndexed" | "leadsCreatedAndSynced" | "jobDuplicateSkipped" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "acceptInvitationFailed" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "feedEnrichStarted" | "feedEnrichCompleted" | "feedEnrichFailed" | "feedJobEnrichStarted" | "feedJobEnrichCompleted" | "feedJobEnrichFailed" | "feedChunkEnrichStarted" | "feedChunkEnrichCompleted" | "feedChunkEnrichFailed" | "scrapeJobsCompleted" | "scraperAccountError";
367
+ type: "leadStatusCheckFailed" | "leadStatusUpdated" | "jobSyncPublished" | "jobSyncReceived" | "jobsIndexed" | "leadsCreatedAndSynced" | "jobDuplicateSkipped" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "acceptInvitationFailed" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "feedEnrichStarted" | "feedEnrichCompleted" | "feedEnrichFailed" | "feedJobEnrichStarted" | "feedJobEnrichCompleted" | "feedJobEnrichFailed" | "feedChunkEnrichStarted" | "feedChunkEnrichCompleted" | "feedChunkEnrichFailed" | "scrapeJobsCompleted" | "scraperAccountError" | "scraperAccountSwapStarted" | "scraperAccountSwapCompleted" | "scraperAccountSwapFailed";
368
368
  source: string;
369
369
  resourceId: string | null;
370
370
  organizationId: string | null;
@@ -376,7 +376,7 @@ export declare const eventLoggerPayloadSchema: z.ZodUnion<[z.ZodObject<{
376
376
  timestamp: number;
377
377
  resourceType?: string | undefined;
378
378
  }>, z.ZodArray<z.ZodObject<{
379
- type: z.ZodEnum<["leadStatusCheckFailed", "leadStatusUpdated", "jobSyncPublished", "jobSyncReceived", "jobsIndexed", "leadsCreatedAndSynced", "jobDuplicateSkipped", "suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "manualSuitabilityAnalyzed", "proposalProcessing", "proposalComplete", "proposalFailed", "manualProposalGenerated", "biddingProcessing", "biddingComplete", "biddingFailed", "biddingSkipped", "biddingPending", "biddingRetry", "biddingInsufficientConnects", "biddingWarningAlert", "biddingRejected", "biddingRejectedWithFeedback", "checkSuitableLeadFeedbackStatus", "biddingApproved", "acceptInvitationFailed", "errorLogged", "cloudTaskRetry", "manualLeadEdited", "leadArchived", "auditTrailLogged", "feedScrapeStarted", "feedScrapeCompleted", "feedScrapeFailed", "feedEnrichStarted", "feedEnrichCompleted", "feedEnrichFailed", "feedJobEnrichStarted", "feedJobEnrichCompleted", "feedJobEnrichFailed", "feedChunkEnrichStarted", "feedChunkEnrichCompleted", "feedChunkEnrichFailed", "scrapeJobsCompleted", "scraperAccountError"]>;
379
+ type: z.ZodEnum<["leadStatusCheckFailed", "leadStatusUpdated", "jobSyncPublished", "jobSyncReceived", "jobsIndexed", "leadsCreatedAndSynced", "jobDuplicateSkipped", "suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "manualSuitabilityAnalyzed", "proposalProcessing", "proposalComplete", "proposalFailed", "manualProposalGenerated", "biddingProcessing", "biddingComplete", "biddingFailed", "biddingSkipped", "biddingPending", "biddingRetry", "biddingInsufficientConnects", "biddingWarningAlert", "biddingRejected", "biddingRejectedWithFeedback", "checkSuitableLeadFeedbackStatus", "biddingApproved", "acceptInvitationFailed", "errorLogged", "cloudTaskRetry", "manualLeadEdited", "leadArchived", "auditTrailLogged", "feedScrapeStarted", "feedScrapeCompleted", "feedScrapeFailed", "feedEnrichStarted", "feedEnrichCompleted", "feedEnrichFailed", "feedJobEnrichStarted", "feedJobEnrichCompleted", "feedJobEnrichFailed", "feedChunkEnrichStarted", "feedChunkEnrichCompleted", "feedChunkEnrichFailed", "scrapeJobsCompleted", "scraperAccountError", "scraperAccountSwapStarted", "scraperAccountSwapCompleted", "scraperAccountSwapFailed"]>;
380
380
  source: z.ZodString;
381
381
  resourceType: z.ZodDefault<z.ZodString>;
382
382
  resourceId: z.ZodNullable<z.ZodString>;
@@ -388,7 +388,7 @@ export declare const eventLoggerPayloadSchema: z.ZodUnion<[z.ZodObject<{
388
388
  metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
389
389
  timestamp: z.ZodNumber;
390
390
  }, "strip", z.ZodTypeAny, {
391
- type: "leadStatusCheckFailed" | "leadStatusUpdated" | "jobSyncPublished" | "jobSyncReceived" | "jobsIndexed" | "leadsCreatedAndSynced" | "jobDuplicateSkipped" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "acceptInvitationFailed" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "feedEnrichStarted" | "feedEnrichCompleted" | "feedEnrichFailed" | "feedJobEnrichStarted" | "feedJobEnrichCompleted" | "feedJobEnrichFailed" | "feedChunkEnrichStarted" | "feedChunkEnrichCompleted" | "feedChunkEnrichFailed" | "scrapeJobsCompleted" | "scraperAccountError";
391
+ type: "leadStatusCheckFailed" | "leadStatusUpdated" | "jobSyncPublished" | "jobSyncReceived" | "jobsIndexed" | "leadsCreatedAndSynced" | "jobDuplicateSkipped" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "acceptInvitationFailed" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "feedEnrichStarted" | "feedEnrichCompleted" | "feedEnrichFailed" | "feedJobEnrichStarted" | "feedJobEnrichCompleted" | "feedJobEnrichFailed" | "feedChunkEnrichStarted" | "feedChunkEnrichCompleted" | "feedChunkEnrichFailed" | "scrapeJobsCompleted" | "scraperAccountError" | "scraperAccountSwapStarted" | "scraperAccountSwapCompleted" | "scraperAccountSwapFailed";
392
392
  source: string;
393
393
  resourceType: string;
394
394
  resourceId: string | null;
@@ -400,7 +400,7 @@ export declare const eventLoggerPayloadSchema: z.ZodUnion<[z.ZodObject<{
400
400
  metadata: Record<string, unknown> | null;
401
401
  timestamp: number;
402
402
  }, {
403
- type: "leadStatusCheckFailed" | "leadStatusUpdated" | "jobSyncPublished" | "jobSyncReceived" | "jobsIndexed" | "leadsCreatedAndSynced" | "jobDuplicateSkipped" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "acceptInvitationFailed" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "feedEnrichStarted" | "feedEnrichCompleted" | "feedEnrichFailed" | "feedJobEnrichStarted" | "feedJobEnrichCompleted" | "feedJobEnrichFailed" | "feedChunkEnrichStarted" | "feedChunkEnrichCompleted" | "feedChunkEnrichFailed" | "scrapeJobsCompleted" | "scraperAccountError";
403
+ type: "leadStatusCheckFailed" | "leadStatusUpdated" | "jobSyncPublished" | "jobSyncReceived" | "jobsIndexed" | "leadsCreatedAndSynced" | "jobDuplicateSkipped" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "acceptInvitationFailed" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "feedEnrichStarted" | "feedEnrichCompleted" | "feedEnrichFailed" | "feedJobEnrichStarted" | "feedJobEnrichCompleted" | "feedJobEnrichFailed" | "feedChunkEnrichStarted" | "feedChunkEnrichCompleted" | "feedChunkEnrichFailed" | "scrapeJobsCompleted" | "scraperAccountError" | "scraperAccountSwapStarted" | "scraperAccountSwapCompleted" | "scraperAccountSwapFailed";
404
404
  source: string;
405
405
  resourceId: string | null;
406
406
  organizationId: string | null;
@@ -437,7 +437,82 @@ export declare const scraperAccountErrorEventMetadata: z.ZodObject<{
437
437
  errorCode: string;
438
438
  errorMessage: string;
439
439
  }>;
440
+ export declare const scraperAccountSwapStartedEventMetadata: z.ZodObject<{
441
+ region: z.ZodUnion<[z.ZodLiteral<"USOnly">, z.ZodLiteral<"UKOnly">, z.ZodLiteral<"Worldwide">]>;
442
+ type: z.ZodEnum<["feed", "job", "status", "activity", "profile", "unauthenticated"]>;
443
+ accountId: z.ZodString;
444
+ accountEmail: z.ZodString;
445
+ }, "strip", z.ZodTypeAny, {
446
+ type: "status" | "activity" | "feed" | "job" | "profile" | "unauthenticated";
447
+ region: "USOnly" | "UKOnly" | "Worldwide";
448
+ accountId: string;
449
+ accountEmail: string;
450
+ }, {
451
+ type: "status" | "activity" | "feed" | "job" | "profile" | "unauthenticated";
452
+ region: "USOnly" | "UKOnly" | "Worldwide";
453
+ accountId: string;
454
+ accountEmail: string;
455
+ }>;
456
+ export declare const scraperAccountSwapCompletedEventMetadata: z.ZodObject<z.objectUtil.extendShape<Pick<{
457
+ region: z.ZodUnion<[z.ZodLiteral<"USOnly">, z.ZodLiteral<"UKOnly">, z.ZodLiteral<"Worldwide">]>;
458
+ type: z.ZodEnum<["feed", "job", "status", "activity", "profile", "unauthenticated"]>;
459
+ accountId: z.ZodString;
460
+ accountEmail: z.ZodString;
461
+ }, "type" | "region" | "accountId" | "accountEmail">, {
462
+ newAccountId: z.ZodString;
463
+ newAccountEmail: z.ZodString;
464
+ }>, "strip", z.ZodTypeAny, {
465
+ type: "status" | "activity" | "feed" | "job" | "profile" | "unauthenticated";
466
+ region: "USOnly" | "UKOnly" | "Worldwide";
467
+ accountId: string;
468
+ accountEmail: string;
469
+ newAccountId: string;
470
+ newAccountEmail: string;
471
+ }, {
472
+ type: "status" | "activity" | "feed" | "job" | "profile" | "unauthenticated";
473
+ region: "USOnly" | "UKOnly" | "Worldwide";
474
+ accountId: string;
475
+ accountEmail: string;
476
+ newAccountId: string;
477
+ newAccountEmail: string;
478
+ }>;
479
+ export declare const scraperAccountSwapFailedEventMetadata: z.ZodObject<z.objectUtil.extendShape<Pick<{
480
+ region: z.ZodUnion<[z.ZodLiteral<"USOnly">, z.ZodLiteral<"UKOnly">, z.ZodLiteral<"Worldwide">]>;
481
+ type: z.ZodEnum<["feed", "job", "status", "activity", "profile", "unauthenticated"]>;
482
+ accountId: z.ZodString;
483
+ accountEmail: z.ZodString;
484
+ }, "type" | "region" | "accountId" | "accountEmail">, {
485
+ errorStack: z.ZodString;
486
+ errorCode: z.ZodString;
487
+ errorMessage: z.ZodString;
488
+ }>, "strip", z.ZodTypeAny, {
489
+ type: "status" | "activity" | "feed" | "job" | "profile" | "unauthenticated";
490
+ region: "USOnly" | "UKOnly" | "Worldwide";
491
+ errorStack: string;
492
+ errorCode: string;
493
+ errorMessage: string;
494
+ accountId: string;
495
+ accountEmail: string;
496
+ }, {
497
+ type: "status" | "activity" | "feed" | "job" | "profile" | "unauthenticated";
498
+ region: "USOnly" | "UKOnly" | "Worldwide";
499
+ errorStack: string;
500
+ errorCode: string;
501
+ errorMessage: string;
502
+ accountId: string;
503
+ accountEmail: string;
504
+ }>;
440
505
  export interface ScrapeJobsCompletedEventMetadata extends z.infer<typeof scrapeJobsCompletedEventMetadata> {
441
506
  }
507
+ export interface JobActivityScrapedEventMetadata extends z.infer<typeof jobActivityScrapedEventMetadata> {
508
+ }
509
+ export interface JobActivityScrapeFailedEventMetadata extends z.infer<typeof jobActivityScrapeFailedEventMetadata> {
510
+ }
442
511
  export interface ScraperAccountErrorEventMetadata extends z.infer<typeof scraperAccountErrorEventMetadata> {
443
512
  }
513
+ export interface ScraperAccountSwapStartedEventMetadata extends z.infer<typeof scraperAccountSwapStartedEventMetadata> {
514
+ }
515
+ export interface ScraperAccountSwapCompletedEventMetadata extends z.infer<typeof scraperAccountSwapCompletedEventMetadata> {
516
+ }
517
+ export interface ScraperAccountSwapFailedEventMetadata extends z.infer<typeof scraperAccountSwapFailedEventMetadata> {
518
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lancer-shared",
3
- "version": "1.2.149",
3
+ "version": "1.2.151",
4
4
  "description": "This package contains shared stuff.",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "dist/bundle.cjs.js",