lancer-shared 1.2.113 → 1.2.114

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 (64) hide show
  1. package/dist/bundle.cjs.js +74 -56
  2. package/dist/constants/organization.d.ts +2 -2
  3. package/dist/constants/proxies.d.ts +4 -0
  4. package/dist/constants/routes.js +6 -0
  5. package/dist/constants/upwork-filters.d.ts +5 -0
  6. package/dist/constants/upwork-filters.js +75 -0
  7. package/dist/schemas/account/exceptions/no-bidder-accounts-available.d.ts +5 -0
  8. package/dist/schemas/ai-config/ai-config.d.ts +39 -0
  9. package/dist/schemas/ai-config/ai-config.js +12 -0
  10. package/dist/schemas/ai-config/index.d.ts +1 -0
  11. package/dist/schemas/ai-config/index.js +17 -0
  12. package/dist/schemas/bid/bid-status.d.ts +30 -0
  13. package/dist/schemas/bid/bid-status.js +15 -0
  14. package/dist/schemas/bid/exceptions/base-exception.d.ts +4 -0
  15. package/dist/schemas/bid/exceptions/evalute-element.exception.d.ts +5 -0
  16. package/dist/schemas/bid/exceptions/wait-for-function-timeout.d.ts +5 -0
  17. package/dist/schemas/bidding/proposal-dto.d.ts +26 -0
  18. package/dist/schemas/bidding/proposal-dto.js +18 -0
  19. package/dist/schemas/campaign/campaign-integrations.d.ts +0 -5
  20. package/dist/schemas/job/index.d.ts +6 -6
  21. package/dist/schemas/job/job-pipeline.d.ts +74 -0
  22. package/dist/schemas/job/job-pipeline.js +29 -0
  23. package/dist/schemas/job/job-suitability.d.ts +12 -0
  24. package/dist/schemas/job/job-suitability.js +13 -0
  25. package/dist/schemas/job/job.d.ts +16 -16
  26. package/dist/schemas/job/pipeline-job.d.ts +9 -3
  27. package/dist/schemas/job/pipeline-job.js +1 -0
  28. package/dist/schemas/knowledge-object/index.d.ts +1 -0
  29. package/dist/schemas/knowledge-object/index.js +17 -0
  30. package/dist/schemas/knowledge-object/knowledge-object.d.ts +128 -0
  31. package/dist/schemas/knowledge-object/knowledge-object.js +47 -0
  32. package/dist/schemas/logger/log-event.d.ts +127 -14
  33. package/dist/schemas/proxy/proxy.js +3 -1
  34. package/dist/schemas/scraper/scrape-payload.d.ts +5 -0
  35. package/dist/schemas/scraper/scrape-response.d.ts +345 -0
  36. package/dist/schemas/scraper/scrape-response.js +9 -0
  37. package/dist/schemas/upwork-account/index.d.ts +1 -1
  38. package/dist/schemas/upwork-account/index.js +1 -1
  39. package/dist/schemas/upwork-account/upwork-business-manager-account.d.ts +14 -14
  40. package/dist/schemas/upwork-account/upwork-business-manager-account.js +2 -2
  41. package/dist/schemas/upwork-account/upwork-scraper-account.d.ts +92 -0
  42. package/dist/schemas/upwork-account/upwork-scraper-account.js +31 -0
  43. package/dist/schemas/upwork-account/upwork-scraping-account.d.ts +23 -23
  44. package/dist/schemas/upwork-account/upwork-scraping-account.js +4 -3
  45. package/dist/types/ai-config/ai-config.d.ts +6 -0
  46. package/dist/types/ai-config/ai-config.js +2 -0
  47. package/dist/types/ai-config/index.d.ts +1 -0
  48. package/dist/types/ai-config/index.js +17 -0
  49. package/dist/types/bid/bid-status.d.ts +5 -0
  50. package/dist/types/bid/bid-status.js +2 -0
  51. package/dist/types/bidding/proposal-dto.d.ts +3 -0
  52. package/dist/types/bidding/proposal-dto.js +2 -0
  53. package/dist/types/job/job-pipeline.d.ts +4 -0
  54. package/dist/types/job/job-pipeline.js +2 -0
  55. package/dist/types/job/job-suitability.d.ts +3 -0
  56. package/dist/types/job/job-suitability.js +2 -0
  57. package/dist/types/knowledge-object/index.d.ts +1 -0
  58. package/dist/types/knowledge-object/index.js +17 -0
  59. package/dist/types/knowledge-object/knowledge-object.d.ts +4 -0
  60. package/dist/types/knowledge-object/knowledge-object.js +2 -0
  61. package/dist/types/scraper/scrape-response.d.ts +4 -0
  62. package/dist/types/scraper/scrape-response.js +2 -0
  63. package/dist/types/upwork-account/upwork-scraping-account.d.ts +2 -2
  64. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
- import { z } from "zod";
2
- export declare const LogEventTypeEnum: z.ZodEnum<["scraperStarted", "scraperCompleted", "jobScraped", "jobScrapeFailed", "jobsIndexed", "jobDuplicateSkipped", "scraperFailed", "jobActivityScraped", "jobActivityScrapeFailed", "leadStatusCheckFailed", "leadStatusUpdated", "feedScrapeStarted", "feedScrapeCompleted", "feedScrapeFailed", "jobListingScraped", "jobSyncPublished", "jobSyncReceived", "leadsCreatedAndSynced", "suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "manualSuitabilityAnalyzed", "proposalProcessing", "proposalComplete", "proposalFailed", "manualProposalGenerated", "biddingProcessing", "biddingComplete", "biddingFailed", "biddingSkipped", "biddingPending", "biddingRetry", "biddingInsufficientConnects", "biddingWarningAlert", "biddingRejected", "biddingRejectedWithFeedback", "checkSuitableLeadFeedbackStatus", "biddingApproved", "errorLogged", "cloudTaskRetry", "manualLeadEdited", "leadArchived", "auditTrailLogged"]>;
1
+ import { z } from 'zod';
2
+ export declare const LogEventTypeEnum: z.ZodEnum<["scraperStarted", "scraperCompleted", "scrapeJobStarted", "jobScraped", "jobScrapeFailed", "jobsIndexed", "jobDuplicateSkipped", "scraperFailed", "jobActivityScraped", "jobActivityScrapeFailed", "leadStatusCheckFailed", "leadStatusUpdated", "feedScrapeStarted", "feedScrapeCompleted", "feedScrapeFailed", "jobListingScraped", "jobSyncPublished", "jobSyncReceived", "leadsCreatedAndSynced", "suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "manualSuitabilityAnalyzed", "proposalProcessing", "proposalComplete", "proposalFailed", "manualProposalGenerated", "biddingProcessing", "biddingComplete", "biddingFailed", "biddingSkipped", "biddingPending", "biddingRetry", "biddingInsufficientConnects", "biddingWarningAlert", "biddingRejected", "biddingRejectedWithFeedback", "checkSuitableLeadFeedbackStatus", "biddingApproved", "errorLogged", "cloudTaskRetry", "manualLeadEdited", "leadArchived", "auditTrailLogged"]>;
3
3
  export declare const logEventSchema: z.ZodObject<{
4
- type: z.ZodEnum<["scraperStarted", "scraperCompleted", "jobScraped", "jobScrapeFailed", "jobsIndexed", "jobDuplicateSkipped", "scraperFailed", "jobActivityScraped", "jobActivityScrapeFailed", "leadStatusCheckFailed", "leadStatusUpdated", "feedScrapeStarted", "feedScrapeCompleted", "feedScrapeFailed", "jobListingScraped", "jobSyncPublished", "jobSyncReceived", "leadsCreatedAndSynced", "suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "manualSuitabilityAnalyzed", "proposalProcessing", "proposalComplete", "proposalFailed", "manualProposalGenerated", "biddingProcessing", "biddingComplete", "biddingFailed", "biddingSkipped", "biddingPending", "biddingRetry", "biddingInsufficientConnects", "biddingWarningAlert", "biddingRejected", "biddingRejectedWithFeedback", "checkSuitableLeadFeedbackStatus", "biddingApproved", "errorLogged", "cloudTaskRetry", "manualLeadEdited", "leadArchived", "auditTrailLogged"]>;
4
+ type: z.ZodEnum<["scraperStarted", "scraperCompleted", "scrapeJobStarted", "jobScraped", "jobScrapeFailed", "jobsIndexed", "jobDuplicateSkipped", "scraperFailed", "jobActivityScraped", "jobActivityScrapeFailed", "leadStatusCheckFailed", "leadStatusUpdated", "feedScrapeStarted", "feedScrapeCompleted", "feedScrapeFailed", "jobListingScraped", "jobSyncPublished", "jobSyncReceived", "leadsCreatedAndSynced", "suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "manualSuitabilityAnalyzed", "proposalProcessing", "proposalComplete", "proposalFailed", "manualProposalGenerated", "biddingProcessing", "biddingComplete", "biddingFailed", "biddingSkipped", "biddingPending", "biddingRetry", "biddingInsufficientConnects", "biddingWarningAlert", "biddingRejected", "biddingRejectedWithFeedback", "checkSuitableLeadFeedbackStatus", "biddingApproved", "errorLogged", "cloudTaskRetry", "manualLeadEdited", "leadArchived", "auditTrailLogged"]>;
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: "scraperStarted" | "scraperCompleted" | "jobScraped" | "jobScrapeFailed" | "jobsIndexed" | "jobDuplicateSkipped" | "scraperFailed" | "jobActivityScraped" | "jobActivityScrapeFailed" | "leadStatusCheckFailed" | "leadStatusUpdated" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "jobListingScraped" | "jobSyncPublished" | "jobSyncReceived" | "leadsCreatedAndSynced" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged";
16
+ type: "scraperStarted" | "scraperCompleted" | "scrapeJobStarted" | "jobScraped" | "jobScrapeFailed" | "jobsIndexed" | "jobDuplicateSkipped" | "scraperFailed" | "jobActivityScraped" | "jobActivityScrapeFailed" | "leadStatusCheckFailed" | "leadStatusUpdated" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "jobListingScraped" | "jobSyncPublished" | "jobSyncReceived" | "leadsCreatedAndSynced" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged";
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: "scraperStarted" | "scraperCompleted" | "jobScraped" | "jobScrapeFailed" | "jobsIndexed" | "jobDuplicateSkipped" | "scraperFailed" | "jobActivityScraped" | "jobActivityScrapeFailed" | "leadStatusCheckFailed" | "leadStatusUpdated" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "jobListingScraped" | "jobSyncPublished" | "jobSyncReceived" | "leadsCreatedAndSynced" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged";
28
+ type: "scraperStarted" | "scraperCompleted" | "scrapeJobStarted" | "jobScraped" | "jobScrapeFailed" | "jobsIndexed" | "jobDuplicateSkipped" | "scraperFailed" | "jobActivityScraped" | "jobActivityScrapeFailed" | "leadStatusCheckFailed" | "leadStatusUpdated" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "jobListingScraped" | "jobSyncPublished" | "jobSyncReceived" | "leadsCreatedAndSynced" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged";
29
29
  source: string;
30
30
  resourceId: string | null;
31
31
  organizationId: string | null;
@@ -82,6 +82,111 @@ export declare const listingScrapedEventMetadata: z.ZodObject<{
82
82
  region: "USOnly" | "UKOnly" | "Worldwide" | null;
83
83
  };
84
84
  }>;
85
+ export declare const scrapeJobStartedEventMetadata: z.ZodObject<{
86
+ listing: z.ZodObject<{
87
+ uid: z.ZodNullable<z.ZodString>;
88
+ title: z.ZodNullable<z.ZodString>;
89
+ jobUrl: z.ZodNullable<z.ZodString>;
90
+ datetime: z.ZodNullable<z.ZodString>;
91
+ isFeatured: z.ZodNullable<z.ZodBoolean>;
92
+ region: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"USOnly">, z.ZodLiteral<"UKOnly">, z.ZodLiteral<"Worldwide">]>>;
93
+ }, "strip", z.ZodTypeAny, {
94
+ uid: string | null;
95
+ title: string | null;
96
+ jobUrl: string | null;
97
+ datetime: string | null;
98
+ isFeatured: boolean | null;
99
+ region: "USOnly" | "UKOnly" | "Worldwide" | null;
100
+ }, {
101
+ uid: string | null;
102
+ title: string | null;
103
+ jobUrl: string | null;
104
+ datetime: string | null;
105
+ isFeatured: boolean | null;
106
+ region: "USOnly" | "UKOnly" | "Worldwide" | null;
107
+ }>;
108
+ region: z.ZodUnion<[z.ZodLiteral<"USOnly">, z.ZodLiteral<"UKOnly">, z.ZodLiteral<"Worldwide">]>;
109
+ accountId: z.ZodString;
110
+ accountEmail: z.ZodString;
111
+ }, "strip", z.ZodTypeAny, {
112
+ region: "USOnly" | "UKOnly" | "Worldwide";
113
+ listing: {
114
+ uid: string | null;
115
+ title: string | null;
116
+ jobUrl: string | null;
117
+ datetime: string | null;
118
+ isFeatured: boolean | null;
119
+ region: "USOnly" | "UKOnly" | "Worldwide" | null;
120
+ };
121
+ accountId: string;
122
+ accountEmail: string;
123
+ }, {
124
+ region: "USOnly" | "UKOnly" | "Worldwide";
125
+ listing: {
126
+ uid: string | null;
127
+ title: string | null;
128
+ jobUrl: string | null;
129
+ datetime: string | null;
130
+ isFeatured: boolean | null;
131
+ region: "USOnly" | "UKOnly" | "Worldwide" | null;
132
+ };
133
+ accountId: string;
134
+ accountEmail: string;
135
+ }>;
136
+ export declare const scrapeJobFailedEventMetadata: z.ZodObject<{
137
+ listing: z.ZodObject<{
138
+ uid: z.ZodNullable<z.ZodString>;
139
+ title: z.ZodNullable<z.ZodString>;
140
+ jobUrl: z.ZodNullable<z.ZodString>;
141
+ datetime: z.ZodNullable<z.ZodString>;
142
+ isFeatured: z.ZodNullable<z.ZodBoolean>;
143
+ region: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"USOnly">, z.ZodLiteral<"UKOnly">, z.ZodLiteral<"Worldwide">]>>;
144
+ }, "strip", z.ZodTypeAny, {
145
+ uid: string | null;
146
+ title: string | null;
147
+ jobUrl: string | null;
148
+ datetime: string | null;
149
+ isFeatured: boolean | null;
150
+ region: "USOnly" | "UKOnly" | "Worldwide" | null;
151
+ }, {
152
+ uid: string | null;
153
+ title: string | null;
154
+ jobUrl: string | null;
155
+ datetime: string | null;
156
+ isFeatured: boolean | null;
157
+ region: "USOnly" | "UKOnly" | "Worldwide" | null;
158
+ }>;
159
+ region: z.ZodUnion<[z.ZodLiteral<"USOnly">, z.ZodLiteral<"UKOnly">, z.ZodLiteral<"Worldwide">]>;
160
+ accountId: z.ZodString;
161
+ accountEmail: z.ZodString;
162
+ error: z.ZodString;
163
+ }, "strip", z.ZodTypeAny, {
164
+ region: "USOnly" | "UKOnly" | "Worldwide";
165
+ listing: {
166
+ uid: string | null;
167
+ title: string | null;
168
+ jobUrl: string | null;
169
+ datetime: string | null;
170
+ isFeatured: boolean | null;
171
+ region: "USOnly" | "UKOnly" | "Worldwide" | null;
172
+ };
173
+ accountId: string;
174
+ accountEmail: string;
175
+ error: string;
176
+ }, {
177
+ region: "USOnly" | "UKOnly" | "Worldwide";
178
+ listing: {
179
+ uid: string | null;
180
+ title: string | null;
181
+ jobUrl: string | null;
182
+ datetime: string | null;
183
+ isFeatured: boolean | null;
184
+ region: "USOnly" | "UKOnly" | "Worldwide" | null;
185
+ };
186
+ accountId: string;
187
+ accountEmail: string;
188
+ error: string;
189
+ }>;
85
190
  export declare const jobActivityScrapedEventMetadata: z.ZodObject<{
86
191
  activity: z.ZodObject<{
87
192
  proposals: z.ZodObject<{
@@ -228,21 +333,27 @@ export declare const feedScrapeStartedEventMetadata: z.ZodObject<{
228
333
  export declare const feedScrapeCompletedEventMetadata: z.ZodObject<{
229
334
  id: z.ZodString;
230
335
  endTime: z.ZodNumber;
336
+ listingCount: z.ZodNumber;
337
+ duration: z.ZodString;
338
+ accountEmail: z.ZodString;
231
339
  region: z.ZodUnion<[z.ZodLiteral<"USOnly">, z.ZodLiteral<"UKOnly">, z.ZodLiteral<"Worldwide">]>;
232
340
  durationMillis: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
233
- duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
234
341
  }, "strip", z.ZodTypeAny, {
235
342
  region: "USOnly" | "UKOnly" | "Worldwide";
343
+ accountEmail: string;
236
344
  id: string;
237
345
  endTime: number;
346
+ listingCount: number;
347
+ duration: string;
238
348
  durationMillis?: number | null | undefined;
239
- duration?: string | null | undefined;
240
349
  }, {
241
350
  region: "USOnly" | "UKOnly" | "Worldwide";
351
+ accountEmail: string;
242
352
  id: string;
243
353
  endTime: number;
354
+ listingCount: number;
355
+ duration: string;
244
356
  durationMillis?: number | null | undefined;
245
- duration?: string | null | undefined;
246
357
  }>;
247
358
  export declare const biddingCompletedEventMetadata: z.ZodObject<{
248
359
  biddingAmount: z.ZodNumber;
@@ -334,6 +445,8 @@ export declare const biddingRejectedWithFeedbackEventMetadata: z.ZodObject<{
334
445
  export type LogEventType = z.infer<typeof LogEventTypeEnum>;
335
446
  export type LogEvent = z.infer<typeof logEventSchema>;
336
447
  export type ListingScrapedEventMetadata = z.infer<typeof listingScrapedEventMetadata>;
448
+ export type ScrapeJobStartedEventMetadata = z.infer<typeof scrapeJobStartedEventMetadata>;
449
+ export type ScrapeJobFailedEventMetadata = z.infer<typeof scrapeJobFailedEventMetadata>;
337
450
  export type JobActivityScrapedEventMetadata = z.infer<typeof jobActivityScrapedEventMetadata>;
338
451
  export type JobActivityScrapeFailedEventMetadata = z.infer<typeof jobActivityScrapeFailedEventMetadata>;
339
452
  export type FeedScrapeStartedEventMetadata = z.infer<typeof feedScrapeStartedEventMetadata>;
@@ -552,7 +665,7 @@ export declare const proposalCompleteEventMetadataSchema: z.ZodObject<{
552
665
  }>;
553
666
  export type ProposalCompleteEventMetadata = z.infer<typeof proposalCompleteEventMetadataSchema>;
554
667
  export declare const eventLoggerPayloadSchema: z.ZodUnion<[z.ZodObject<{
555
- type: z.ZodEnum<["scraperStarted", "scraperCompleted", "jobScraped", "jobScrapeFailed", "jobsIndexed", "jobDuplicateSkipped", "scraperFailed", "jobActivityScraped", "jobActivityScrapeFailed", "leadStatusCheckFailed", "leadStatusUpdated", "feedScrapeStarted", "feedScrapeCompleted", "feedScrapeFailed", "jobListingScraped", "jobSyncPublished", "jobSyncReceived", "leadsCreatedAndSynced", "suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "manualSuitabilityAnalyzed", "proposalProcessing", "proposalComplete", "proposalFailed", "manualProposalGenerated", "biddingProcessing", "biddingComplete", "biddingFailed", "biddingSkipped", "biddingPending", "biddingRetry", "biddingInsufficientConnects", "biddingWarningAlert", "biddingRejected", "biddingRejectedWithFeedback", "checkSuitableLeadFeedbackStatus", "biddingApproved", "errorLogged", "cloudTaskRetry", "manualLeadEdited", "leadArchived", "auditTrailLogged"]>;
668
+ type: z.ZodEnum<["scraperStarted", "scraperCompleted", "scrapeJobStarted", "jobScraped", "jobScrapeFailed", "jobsIndexed", "jobDuplicateSkipped", "scraperFailed", "jobActivityScraped", "jobActivityScrapeFailed", "leadStatusCheckFailed", "leadStatusUpdated", "feedScrapeStarted", "feedScrapeCompleted", "feedScrapeFailed", "jobListingScraped", "jobSyncPublished", "jobSyncReceived", "leadsCreatedAndSynced", "suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "manualSuitabilityAnalyzed", "proposalProcessing", "proposalComplete", "proposalFailed", "manualProposalGenerated", "biddingProcessing", "biddingComplete", "biddingFailed", "biddingSkipped", "biddingPending", "biddingRetry", "biddingInsufficientConnects", "biddingWarningAlert", "biddingRejected", "biddingRejectedWithFeedback", "checkSuitableLeadFeedbackStatus", "biddingApproved", "errorLogged", "cloudTaskRetry", "manualLeadEdited", "leadArchived", "auditTrailLogged"]>;
556
669
  source: z.ZodString;
557
670
  resourceType: z.ZodDefault<z.ZodString>;
558
671
  resourceId: z.ZodNullable<z.ZodString>;
@@ -564,7 +677,7 @@ export declare const eventLoggerPayloadSchema: z.ZodUnion<[z.ZodObject<{
564
677
  metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
565
678
  timestamp: z.ZodNumber;
566
679
  }, "strip", z.ZodTypeAny, {
567
- type: "scraperStarted" | "scraperCompleted" | "jobScraped" | "jobScrapeFailed" | "jobsIndexed" | "jobDuplicateSkipped" | "scraperFailed" | "jobActivityScraped" | "jobActivityScrapeFailed" | "leadStatusCheckFailed" | "leadStatusUpdated" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "jobListingScraped" | "jobSyncPublished" | "jobSyncReceived" | "leadsCreatedAndSynced" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged";
680
+ type: "scraperStarted" | "scraperCompleted" | "scrapeJobStarted" | "jobScraped" | "jobScrapeFailed" | "jobsIndexed" | "jobDuplicateSkipped" | "scraperFailed" | "jobActivityScraped" | "jobActivityScrapeFailed" | "leadStatusCheckFailed" | "leadStatusUpdated" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "jobListingScraped" | "jobSyncPublished" | "jobSyncReceived" | "leadsCreatedAndSynced" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged";
568
681
  source: string;
569
682
  resourceType: string;
570
683
  resourceId: string | null;
@@ -576,7 +689,7 @@ export declare const eventLoggerPayloadSchema: z.ZodUnion<[z.ZodObject<{
576
689
  metadata: Record<string, unknown> | null;
577
690
  timestamp: number;
578
691
  }, {
579
- type: "scraperStarted" | "scraperCompleted" | "jobScraped" | "jobScrapeFailed" | "jobsIndexed" | "jobDuplicateSkipped" | "scraperFailed" | "jobActivityScraped" | "jobActivityScrapeFailed" | "leadStatusCheckFailed" | "leadStatusUpdated" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "jobListingScraped" | "jobSyncPublished" | "jobSyncReceived" | "leadsCreatedAndSynced" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged";
692
+ type: "scraperStarted" | "scraperCompleted" | "scrapeJobStarted" | "jobScraped" | "jobScrapeFailed" | "jobsIndexed" | "jobDuplicateSkipped" | "scraperFailed" | "jobActivityScraped" | "jobActivityScrapeFailed" | "leadStatusCheckFailed" | "leadStatusUpdated" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "jobListingScraped" | "jobSyncPublished" | "jobSyncReceived" | "leadsCreatedAndSynced" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged";
580
693
  source: string;
581
694
  resourceId: string | null;
582
695
  organizationId: string | null;
@@ -588,7 +701,7 @@ export declare const eventLoggerPayloadSchema: z.ZodUnion<[z.ZodObject<{
588
701
  timestamp: number;
589
702
  resourceType?: string | undefined;
590
703
  }>, z.ZodArray<z.ZodObject<{
591
- type: z.ZodEnum<["scraperStarted", "scraperCompleted", "jobScraped", "jobScrapeFailed", "jobsIndexed", "jobDuplicateSkipped", "scraperFailed", "jobActivityScraped", "jobActivityScrapeFailed", "leadStatusCheckFailed", "leadStatusUpdated", "feedScrapeStarted", "feedScrapeCompleted", "feedScrapeFailed", "jobListingScraped", "jobSyncPublished", "jobSyncReceived", "leadsCreatedAndSynced", "suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "manualSuitabilityAnalyzed", "proposalProcessing", "proposalComplete", "proposalFailed", "manualProposalGenerated", "biddingProcessing", "biddingComplete", "biddingFailed", "biddingSkipped", "biddingPending", "biddingRetry", "biddingInsufficientConnects", "biddingWarningAlert", "biddingRejected", "biddingRejectedWithFeedback", "checkSuitableLeadFeedbackStatus", "biddingApproved", "errorLogged", "cloudTaskRetry", "manualLeadEdited", "leadArchived", "auditTrailLogged"]>;
704
+ type: z.ZodEnum<["scraperStarted", "scraperCompleted", "scrapeJobStarted", "jobScraped", "jobScrapeFailed", "jobsIndexed", "jobDuplicateSkipped", "scraperFailed", "jobActivityScraped", "jobActivityScrapeFailed", "leadStatusCheckFailed", "leadStatusUpdated", "feedScrapeStarted", "feedScrapeCompleted", "feedScrapeFailed", "jobListingScraped", "jobSyncPublished", "jobSyncReceived", "leadsCreatedAndSynced", "suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "manualSuitabilityAnalyzed", "proposalProcessing", "proposalComplete", "proposalFailed", "manualProposalGenerated", "biddingProcessing", "biddingComplete", "biddingFailed", "biddingSkipped", "biddingPending", "biddingRetry", "biddingInsufficientConnects", "biddingWarningAlert", "biddingRejected", "biddingRejectedWithFeedback", "checkSuitableLeadFeedbackStatus", "biddingApproved", "errorLogged", "cloudTaskRetry", "manualLeadEdited", "leadArchived", "auditTrailLogged"]>;
592
705
  source: z.ZodString;
593
706
  resourceType: z.ZodDefault<z.ZodString>;
594
707
  resourceId: z.ZodNullable<z.ZodString>;
@@ -600,7 +713,7 @@ export declare const eventLoggerPayloadSchema: z.ZodUnion<[z.ZodObject<{
600
713
  metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
601
714
  timestamp: z.ZodNumber;
602
715
  }, "strip", z.ZodTypeAny, {
603
- type: "scraperStarted" | "scraperCompleted" | "jobScraped" | "jobScrapeFailed" | "jobsIndexed" | "jobDuplicateSkipped" | "scraperFailed" | "jobActivityScraped" | "jobActivityScrapeFailed" | "leadStatusCheckFailed" | "leadStatusUpdated" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "jobListingScraped" | "jobSyncPublished" | "jobSyncReceived" | "leadsCreatedAndSynced" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged";
716
+ type: "scraperStarted" | "scraperCompleted" | "scrapeJobStarted" | "jobScraped" | "jobScrapeFailed" | "jobsIndexed" | "jobDuplicateSkipped" | "scraperFailed" | "jobActivityScraped" | "jobActivityScrapeFailed" | "leadStatusCheckFailed" | "leadStatusUpdated" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "jobListingScraped" | "jobSyncPublished" | "jobSyncReceived" | "leadsCreatedAndSynced" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged";
604
717
  source: string;
605
718
  resourceType: string;
606
719
  resourceId: string | null;
@@ -612,7 +725,7 @@ export declare const eventLoggerPayloadSchema: z.ZodUnion<[z.ZodObject<{
612
725
  metadata: Record<string, unknown> | null;
613
726
  timestamp: number;
614
727
  }, {
615
- type: "scraperStarted" | "scraperCompleted" | "jobScraped" | "jobScrapeFailed" | "jobsIndexed" | "jobDuplicateSkipped" | "scraperFailed" | "jobActivityScraped" | "jobActivityScrapeFailed" | "leadStatusCheckFailed" | "leadStatusUpdated" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "jobListingScraped" | "jobSyncPublished" | "jobSyncReceived" | "leadsCreatedAndSynced" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged";
728
+ type: "scraperStarted" | "scraperCompleted" | "scrapeJobStarted" | "jobScraped" | "jobScrapeFailed" | "jobsIndexed" | "jobDuplicateSkipped" | "scraperFailed" | "jobActivityScraped" | "jobActivityScrapeFailed" | "leadStatusCheckFailed" | "leadStatusUpdated" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "jobListingScraped" | "jobSyncPublished" | "jobSyncReceived" | "leadsCreatedAndSynced" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "biddingRejected" | "biddingRejectedWithFeedback" | "checkSuitableLeadFeedbackStatus" | "biddingApproved" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged";
616
729
  source: string;
617
730
  resourceId: string | null;
618
731
  organizationId: string | null;
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.externalProxySchema = exports.proxySchema = exports.proxyCountrySchema = exports.proxyProviderSchema = void 0;
3
+ exports.externalProxySchema = exports.proxySchema = exports.proxyCountrySchema = exports.proxyProviderSchema = exports.proxyStatusSchema = void 0;
4
4
  const zod_1 = require("zod");
5
+ exports.proxyStatusSchema = zod_1.z.enum(['ready', 'pending', 'to_replace']);
5
6
  exports.proxyProviderSchema = zod_1.z.enum(['webshare']);
6
7
  exports.proxyCountrySchema = zod_1.z.enum(['USA']);
7
8
  exports.proxySchema = zod_1.z.object({
@@ -13,6 +14,7 @@ exports.proxySchema = zod_1.z.object({
13
14
  password: zod_1.z.string(),
14
15
  provider: exports.proxyProviderSchema,
15
16
  country: exports.proxyCountrySchema,
17
+ status: exports.proxyStatusSchema,
16
18
  bidderId: zod_1.z.string().nullable(),
17
19
  });
18
20
  exports.externalProxySchema = exports.proxySchema.omit({
@@ -1500,7 +1500,9 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1500
1500
  instanceId: import("zod").ZodNullable<import("zod").ZodString>;
1501
1501
  createdAt: import("zod").ZodNumber;
1502
1502
  updatedAt: import("zod").ZodNumber;
1503
+ region: import("zod").ZodEnum<["all", "Worldwide", "UKOnly", "USOnly"]>;
1503
1504
  }, "strip", import("zod").ZodTypeAny, {
1505
+ region: "USOnly" | "UKOnly" | "Worldwide" | "all";
1504
1506
  id: string;
1505
1507
  name: string | null;
1506
1508
  createdAt: number;
@@ -1523,6 +1525,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1523
1525
  instanceId: string | null;
1524
1526
  googleOauthTokens?: any;
1525
1527
  }, {
1528
+ region: "USOnly" | "UKOnly" | "Worldwide" | "all";
1526
1529
  id: string;
1527
1530
  name: string | null;
1528
1531
  createdAt: number;
@@ -1817,6 +1820,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1817
1820
  wonAmount?: number | undefined;
1818
1821
  };
1819
1822
  bidder: {
1823
+ region: "USOnly" | "UKOnly" | "Worldwide" | "all";
1820
1824
  id: string;
1821
1825
  name: string | null;
1822
1826
  createdAt: number;
@@ -2111,6 +2115,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
2111
2115
  wonAmount?: number | undefined;
2112
2116
  };
2113
2117
  bidder: {
2118
+ region: "USOnly" | "UKOnly" | "Worldwide" | "all";
2114
2119
  id: string;
2115
2120
  name: string | null;
2116
2121
  createdAt: number;