lancer-shared 1.2.115 → 1.2.117

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 +10 -1
  2. package/dist/constants/organization.d.ts +2 -2
  3. package/dist/constants/routes.js +0 -6
  4. package/dist/schemas/account/bidder-account-rental.d.ts +91 -0
  5. package/dist/schemas/campaign/campaign-integrations.d.ts +5 -0
  6. package/dist/schemas/job/job.d.ts +16 -16
  7. package/dist/schemas/job/pipeline-job.d.ts +3 -9
  8. package/dist/schemas/job/pipeline-job.js +0 -1
  9. package/dist/schemas/logger/log-event.d.ts +27 -10
  10. package/dist/schemas/proxy/proxy.js +1 -3
  11. package/dist/schemas/upwork-account/index.d.ts +1 -1
  12. package/dist/schemas/upwork-account/index.js +1 -1
  13. package/dist/schemas/upwork-account/upwork-business-manager-account.d.ts +14 -14
  14. package/dist/schemas/upwork-account/upwork-business-manager-account.js +2 -2
  15. package/dist/schemas/upwork-account/upwork-scraping-account.d.ts +23 -23
  16. package/dist/schemas/upwork-account/upwork-scraping-account.js +3 -4
  17. package/dist/schemas/user/index.d.ts +3 -0
  18. package/dist/types/upwork-account/upwork-scraping-account.d.ts +2 -2
  19. package/package.json +1 -1
  20. package/dist/constants/proxies.d.ts +0 -4
  21. package/dist/constants/upwork-filters.d.ts +0 -5
  22. package/dist/constants/upwork-filters.js +0 -75
  23. package/dist/schemas/account/exceptions/no-bidder-accounts-available.d.ts +0 -5
  24. package/dist/schemas/ai-config/ai-config.d.ts +0 -39
  25. package/dist/schemas/ai-config/ai-config.js +0 -12
  26. package/dist/schemas/ai-config/index.d.ts +0 -1
  27. package/dist/schemas/ai-config/index.js +0 -17
  28. package/dist/schemas/bid/bid-status.d.ts +0 -30
  29. package/dist/schemas/bid/bid-status.js +0 -15
  30. package/dist/schemas/bid/exceptions/base-exception.d.ts +0 -4
  31. package/dist/schemas/bid/exceptions/evalute-element.exception.d.ts +0 -5
  32. package/dist/schemas/bid/exceptions/wait-for-function-timeout.d.ts +0 -5
  33. package/dist/schemas/bidding/proposal-dto.d.ts +0 -26
  34. package/dist/schemas/bidding/proposal-dto.js +0 -18
  35. package/dist/schemas/job/job-pipeline.d.ts +0 -74
  36. package/dist/schemas/job/job-pipeline.js +0 -29
  37. package/dist/schemas/job/job-suitability.d.ts +0 -12
  38. package/dist/schemas/job/job-suitability.js +0 -13
  39. package/dist/schemas/knowledge-object/index.d.ts +0 -1
  40. package/dist/schemas/knowledge-object/index.js +0 -17
  41. package/dist/schemas/knowledge-object/knowledge-object.d.ts +0 -128
  42. package/dist/schemas/knowledge-object/knowledge-object.js +0 -47
  43. package/dist/schemas/scraper/scrape-response.d.ts +0 -345
  44. package/dist/schemas/scraper/scrape-response.js +0 -9
  45. package/dist/schemas/upwork-account/upwork-scraper-account.d.ts +0 -92
  46. package/dist/schemas/upwork-account/upwork-scraper-account.js +0 -31
  47. package/dist/types/ai-config/ai-config.d.ts +0 -6
  48. package/dist/types/ai-config/ai-config.js +0 -2
  49. package/dist/types/ai-config/index.d.ts +0 -1
  50. package/dist/types/ai-config/index.js +0 -17
  51. package/dist/types/bid/bid-status.d.ts +0 -5
  52. package/dist/types/bid/bid-status.js +0 -2
  53. package/dist/types/bidding/proposal-dto.d.ts +0 -3
  54. package/dist/types/bidding/proposal-dto.js +0 -2
  55. package/dist/types/job/job-pipeline.d.ts +0 -4
  56. package/dist/types/job/job-pipeline.js +0 -2
  57. package/dist/types/job/job-suitability.d.ts +0 -3
  58. package/dist/types/job/job-suitability.js +0 -2
  59. package/dist/types/knowledge-object/index.d.ts +0 -1
  60. package/dist/types/knowledge-object/index.js +0 -17
  61. package/dist/types/knowledge-object/knowledge-object.d.ts +0 -4
  62. package/dist/types/knowledge-object/knowledge-object.js +0 -2
  63. package/dist/types/scraper/scrape-response.d.ts +0 -4
  64. package/dist/types/scraper/scrape-response.js +0 -2
@@ -12501,7 +12501,8 @@ const LogEventTypeEnum = z.enum([
12501
12501
  'manualLeadEdited',
12502
12502
  'leadArchived',
12503
12503
  'auditTrailLogged',
12504
- // Lead Events
12504
+ // Account Events
12505
+ 'scraperAccountError',
12505
12506
  ]);
12506
12507
  const logEventSchema = z.object({
12507
12508
  // The type of event (use a z.enum if possible)
@@ -12623,6 +12624,12 @@ const leadStatusEventMetadata = objectType({
12623
12624
  .optional(),
12624
12625
  reason: z.string().optional(),
12625
12626
  });
12627
+ const scraperAccountErrorEventMetadata = objectType({
12628
+ accountId: stringType(),
12629
+ accountEmail: stringType(),
12630
+ errorCode: stringType(),
12631
+ errorMessage: stringType(),
12632
+ });
12626
12633
  const biddingRejectedWithFeedbackEventMetadata = objectType({
12627
12634
  feedback: z.string(),
12628
12635
  });
@@ -13398,6 +13405,7 @@ const userSchema = objectType({
13398
13405
  organizationIds: z.array(stringType()),
13399
13406
  createdAt: numberType(),
13400
13407
  updatedAt: numberType(),
13408
+ role: z.enum(["admin", "user"]),
13401
13409
  });
13402
13410
  const loginSchema = objectType({
13403
13411
  email: stringType().email(),
@@ -14090,6 +14098,7 @@ exports.scrapeJobStartedEventMetadata = scrapeJobStartedEventMetadata;
14090
14098
  exports.scrapePayloadSchema = scrapePayloadSchema;
14091
14099
  exports.scrapeResultSchema = scrapeResultSchema;
14092
14100
  exports.scrapeUserProfileRequestSchema = scrapeUserProfileRequestSchema;
14101
+ exports.scraperAccountErrorEventMetadata = scraperAccountErrorEventMetadata;
14093
14102
  exports.scraperAccountSchema = scraperAccountSchema;
14094
14103
  exports.scraperAccountType = scraperAccountType;
14095
14104
  exports.selectAgencyException = selectAgencyException;
@@ -1,2 +1,2 @@
1
- import { CreditDeductionEventType } from "../schemas";
2
- export declare const creditDeductionAmountMap: Record<CreditDeductionEventType, number>;
1
+ import { TrackUsageEventType } from "../schemas";
2
+ export declare const creditDeductionAmountMap: Record<TrackUsageEventType, number>;
@@ -91,12 +91,6 @@ exports.ROUTES = {
91
91
  BY_PROVIDER: (provider) => `admin/scraper-accounts/${provider}`,
92
92
  BY_PROVIDER_AND_ID: (provider, id) => `admin/scraper-accounts/${provider}/${id}`,
93
93
  },
94
- PROXIES: {
95
- BASE: 'admin/proxies',
96
- BY_ID: (id) => `admin/proxies/${id}`,
97
- REPLACE_PROXY: (id) => `admin/proxies/${id}/replace`,
98
- SYNC: 'admin/proxies/sync',
99
- },
100
94
  },
101
95
  BID: {
102
96
  BASE: 'bid',
@@ -0,0 +1,91 @@
1
+ import { z } from 'zod';
2
+ export declare const bidderAccountRentalStatusEnum: z.ZodEnum<["pending_payment", "active", "cancelled", "suspended", "expired"]>;
3
+ export declare const bidderAccountRentalSchema: z.ZodObject<{
4
+ id: z.ZodString;
5
+ organizationId: z.ZodString;
6
+ bidderAccountId: z.ZodString;
7
+ region: z.ZodEnum<["Worldwide", "UKOnly", "USOnly"]>;
8
+ status: z.ZodEnum<["pending_payment", "active", "cancelled", "suspended", "expired"]>;
9
+ monthlyPrice: z.ZodNumber;
10
+ currency: z.ZodDefault<z.ZodString>;
11
+ stripe: z.ZodObject<{
12
+ subscriptionId: z.ZodString;
13
+ customerId: z.ZodString;
14
+ priceId: z.ZodString;
15
+ invoiceId: z.ZodNullable<z.ZodString>;
16
+ }, "strip", z.ZodTypeAny, {
17
+ subscriptionId: string;
18
+ customerId: string;
19
+ priceId: string;
20
+ invoiceId: string | null;
21
+ }, {
22
+ subscriptionId: string;
23
+ customerId: string;
24
+ priceId: string;
25
+ invoiceId: string | null;
26
+ }>;
27
+ startDate: z.ZodNumber;
28
+ endDate: z.ZodNullable<z.ZodNumber>;
29
+ cancelledAt: z.ZodNullable<z.ZodNumber>;
30
+ createdAt: z.ZodNumber;
31
+ updatedAt: z.ZodNumber;
32
+ }, "strip", z.ZodTypeAny, {
33
+ id: string;
34
+ organizationId: string;
35
+ bidderAccountId: string;
36
+ region: "Worldwide" | "UKOnly" | "USOnly";
37
+ status: "pending_payment" | "active" | "cancelled" | "suspended" | "expired";
38
+ monthlyPrice: number;
39
+ currency: string;
40
+ stripe: {
41
+ subscriptionId: string;
42
+ customerId: string;
43
+ priceId: string;
44
+ invoiceId: string | null;
45
+ };
46
+ startDate: number;
47
+ endDate: number | null;
48
+ cancelledAt: number | null;
49
+ createdAt: number;
50
+ updatedAt: number;
51
+ }, {
52
+ id: string;
53
+ organizationId: string;
54
+ bidderAccountId: string;
55
+ region: "Worldwide" | "UKOnly" | "USOnly";
56
+ status: "pending_payment" | "active" | "cancelled" | "suspended" | "expired";
57
+ monthlyPrice: number;
58
+ stripe: {
59
+ subscriptionId: string;
60
+ customerId: string;
61
+ priceId: string;
62
+ invoiceId: string | null;
63
+ };
64
+ startDate: number;
65
+ endDate: number | null;
66
+ cancelledAt: number | null;
67
+ createdAt: number;
68
+ updatedAt: number;
69
+ currency?: string | undefined;
70
+ }>;
71
+ export declare const createBidderAccountRentalSchema: z.ZodObject<{
72
+ region: z.ZodEnum<["Worldwide", "UKOnly", "USOnly"]>;
73
+ paymentMethodId: z.ZodString;
74
+ }, "strip", z.ZodTypeAny, {
75
+ region: "Worldwide" | "UKOnly" | "USOnly";
76
+ paymentMethodId: string;
77
+ }, {
78
+ region: "Worldwide" | "UKOnly" | "USOnly";
79
+ paymentMethodId: string;
80
+ }>;
81
+ export declare const cancelBidderAccountRentalSchema: z.ZodObject<{
82
+ reason: z.ZodOptional<z.ZodString>;
83
+ }, "strip", z.ZodTypeAny, {
84
+ reason?: string | undefined;
85
+ }, {
86
+ reason?: string | undefined;
87
+ }>;
88
+ export type BidderAccountRental = z.infer<typeof bidderAccountRentalSchema>;
89
+ export type BidderAccountRentalStatus = z.infer<typeof bidderAccountRentalStatusEnum>;
90
+ export type CreateBidderAccountRental = z.infer<typeof createBidderAccountRentalSchema>;
91
+ export type CancelBidderAccountRental = z.infer<typeof cancelBidderAccountRentalSchema>;
@@ -80,3 +80,8 @@ export declare const updateCampaignIntegrationsSchema: z.ZodObject<{
80
80
  slack: string | null;
81
81
  } | undefined;
82
82
  }>;
83
+ export type CampaignIntegration = z.infer<typeof campaignIntegrations>;
84
+ export interface CampaignIntegrations extends z.infer<typeof campaignIntegrationsSchema> {
85
+ }
86
+ export interface UpdateCampaignIntegrations extends z.infer<typeof updateCampaignIntegrationsSchema> {
87
+ }
@@ -44,9 +44,9 @@ export declare const clientInfoSchema: z.ZodObject<{
44
44
  }, "strip", z.ZodTypeAny, {
45
45
  country: string | null;
46
46
  region: string | null;
47
+ rating: number | null;
47
48
  isPaymentVerified: boolean | null;
48
49
  numberOfReviews: number | null;
49
- rating: number | null;
50
50
  jobsPosted: number | null;
51
51
  totalSpent: number | null;
52
52
  numberOfHires: number | null;
@@ -60,9 +60,9 @@ export declare const clientInfoSchema: z.ZodObject<{
60
60
  }, {
61
61
  country: string | null;
62
62
  region: string | null;
63
+ rating: number | null;
63
64
  isPaymentVerified: boolean | null;
64
65
  numberOfReviews: number | null;
65
- rating: number | null;
66
66
  jobsPosted: number | null;
67
67
  totalSpent: number | null;
68
68
  numberOfHires: number | null;
@@ -187,9 +187,9 @@ export declare const upworkJobSchema: z.ZodObject<{
187
187
  }, "strip", z.ZodTypeAny, {
188
188
  country: string | null;
189
189
  region: string | null;
190
+ rating: number | null;
190
191
  isPaymentVerified: boolean | null;
191
192
  numberOfReviews: number | null;
192
- rating: number | null;
193
193
  jobsPosted: number | null;
194
194
  totalSpent: number | null;
195
195
  numberOfHires: number | null;
@@ -203,9 +203,9 @@ export declare const upworkJobSchema: z.ZodObject<{
203
203
  }, {
204
204
  country: string | null;
205
205
  region: string | null;
206
+ rating: number | null;
206
207
  isPaymentVerified: boolean | null;
207
208
  numberOfReviews: number | null;
208
- rating: number | null;
209
209
  jobsPosted: number | null;
210
210
  totalSpent: number | null;
211
211
  numberOfHires: number | null;
@@ -267,9 +267,9 @@ export declare const upworkJobSchema: z.ZodObject<{
267
267
  clientInfo: {
268
268
  country: string | null;
269
269
  region: string | null;
270
+ rating: number | null;
270
271
  isPaymentVerified: boolean | null;
271
272
  numberOfReviews: number | null;
272
- rating: number | null;
273
273
  jobsPosted: number | null;
274
274
  totalSpent: number | null;
275
275
  numberOfHires: number | null;
@@ -319,9 +319,9 @@ export declare const upworkJobSchema: z.ZodObject<{
319
319
  clientInfo: {
320
320
  country: string | null;
321
321
  region: string | null;
322
+ rating: number | null;
322
323
  isPaymentVerified: boolean | null;
323
324
  numberOfReviews: number | null;
324
- rating: number | null;
325
325
  jobsPosted: number | null;
326
326
  totalSpent: number | null;
327
327
  numberOfHires: number | null;
@@ -418,9 +418,9 @@ export declare const jobSchema: z.ZodObject<z.objectUtil.extendShape<{
418
418
  }, "strip", z.ZodTypeAny, {
419
419
  country: string | null;
420
420
  region: string | null;
421
+ rating: number | null;
421
422
  isPaymentVerified: boolean | null;
422
423
  numberOfReviews: number | null;
423
- rating: number | null;
424
424
  jobsPosted: number | null;
425
425
  totalSpent: number | null;
426
426
  numberOfHires: number | null;
@@ -434,9 +434,9 @@ export declare const jobSchema: z.ZodObject<z.objectUtil.extendShape<{
434
434
  }, {
435
435
  country: string | null;
436
436
  region: string | null;
437
+ rating: number | null;
437
438
  isPaymentVerified: boolean | null;
438
439
  numberOfReviews: number | null;
439
- rating: number | null;
440
440
  jobsPosted: number | null;
441
441
  totalSpent: number | null;
442
442
  numberOfHires: number | null;
@@ -550,9 +550,9 @@ export declare const jobSchema: z.ZodObject<z.objectUtil.extendShape<{
550
550
  clientInfo: {
551
551
  country: string | null;
552
552
  region: string | null;
553
+ rating: number | null;
553
554
  isPaymentVerified: boolean | null;
554
555
  numberOfReviews: number | null;
555
- rating: number | null;
556
556
  jobsPosted: number | null;
557
557
  totalSpent: number | null;
558
558
  numberOfHires: number | null;
@@ -624,9 +624,9 @@ export declare const jobSchema: z.ZodObject<z.objectUtil.extendShape<{
624
624
  clientInfo: {
625
625
  country: string | null;
626
626
  region: string | null;
627
+ rating: number | null;
627
628
  isPaymentVerified: boolean | null;
628
629
  numberOfReviews: number | null;
629
- rating: number | null;
630
630
  jobsPosted: number | null;
631
631
  totalSpent: number | null;
632
632
  numberOfHires: number | null;
@@ -752,9 +752,9 @@ export declare const jobResponseSchema: z.ZodObject<{
752
752
  }, "strip", z.ZodTypeAny, {
753
753
  country: string | null;
754
754
  region: string | null;
755
+ rating: number | null;
755
756
  isPaymentVerified: boolean | null;
756
757
  numberOfReviews: number | null;
757
- rating: number | null;
758
758
  jobsPosted: number | null;
759
759
  totalSpent: number | null;
760
760
  numberOfHires: number | null;
@@ -768,9 +768,9 @@ export declare const jobResponseSchema: z.ZodObject<{
768
768
  }, {
769
769
  country: string | null;
770
770
  region: string | null;
771
+ rating: number | null;
771
772
  isPaymentVerified: boolean | null;
772
773
  numberOfReviews: number | null;
773
- rating: number | null;
774
774
  jobsPosted: number | null;
775
775
  totalSpent: number | null;
776
776
  numberOfHires: number | null;
@@ -884,9 +884,9 @@ export declare const jobResponseSchema: z.ZodObject<{
884
884
  clientInfo: {
885
885
  country: string | null;
886
886
  region: string | null;
887
+ rating: number | null;
887
888
  isPaymentVerified: boolean | null;
888
889
  numberOfReviews: number | null;
889
- rating: number | null;
890
890
  jobsPosted: number | null;
891
891
  totalSpent: number | null;
892
892
  numberOfHires: number | null;
@@ -958,9 +958,9 @@ export declare const jobResponseSchema: z.ZodObject<{
958
958
  clientInfo: {
959
959
  country: string | null;
960
960
  region: string | null;
961
+ rating: number | null;
961
962
  isPaymentVerified: boolean | null;
962
963
  numberOfReviews: number | null;
963
- rating: number | null;
964
964
  jobsPosted: number | null;
965
965
  totalSpent: number | null;
966
966
  numberOfHires: number | null;
@@ -1037,9 +1037,9 @@ export declare const jobResponseSchema: z.ZodObject<{
1037
1037
  clientInfo: {
1038
1038
  country: string | null;
1039
1039
  region: string | null;
1040
+ rating: number | null;
1040
1041
  isPaymentVerified: boolean | null;
1041
1042
  numberOfReviews: number | null;
1042
- rating: number | null;
1043
1043
  jobsPosted: number | null;
1044
1044
  totalSpent: number | null;
1045
1045
  numberOfHires: number | null;
@@ -1116,9 +1116,9 @@ export declare const jobResponseSchema: z.ZodObject<{
1116
1116
  clientInfo: {
1117
1117
  country: string | null;
1118
1118
  region: string | null;
1119
+ rating: number | null;
1119
1120
  isPaymentVerified: boolean | null;
1120
1121
  numberOfReviews: number | null;
1121
- rating: number | null;
1122
1122
  jobsPosted: number | null;
1123
1123
  totalSpent: number | null;
1124
1124
  numberOfHires: number | null;
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import { z } from "zod";
2
2
  export declare const jobPipelineDetailsSchema: z.ZodObject<Pick<z.objectUtil.extendShape<z.objectUtil.extendShape<{
3
3
  id: z.ZodNullable<z.ZodString>;
4
4
  createdAt: z.ZodNullable<z.ZodNumber>;
@@ -222,7 +222,7 @@ export declare const jobPipelineDetailsSchema: z.ZodObject<Pick<z.objectUtil.ext
222
222
  biddingAmount: z.ZodOptional<z.ZodNumber>;
223
223
  boosted: z.ZodOptional<z.ZodBoolean>;
224
224
  boostingAmount: z.ZodOptional<z.ZodNumber>;
225
- }>, "title" | "metadata" | "description" | "status" | "jobId" | "updatedAt" | "questions" | "clientInfo" | "addedAt" | "suitabilityRating" | "suitabilityReason" | "suitabilityStatus" | "biddingAmount" | "boosted" | "boostingAmount">, "strip", z.ZodTypeAny, {
225
+ }>, "title" | "metadata" | "description" | "status" | "jobId" | "updatedAt" | "clientInfo" | "addedAt" | "suitabilityRating" | "suitabilityReason" | "suitabilityStatus" | "biddingAmount" | "boosted" | "boostingAmount">, "strip", z.ZodTypeAny, {
226
226
  title: string | null;
227
227
  metadata: {
228
228
  hourlyRate: {
@@ -233,7 +233,6 @@ export declare const jobPipelineDetailsSchema: z.ZodObject<Pick<z.objectUtil.ext
233
233
  };
234
234
  description: string | null;
235
235
  jobId: string;
236
- questions: string[] | null;
237
236
  clientInfo: {
238
237
  country: string | null;
239
238
  };
@@ -257,7 +256,6 @@ export declare const jobPipelineDetailsSchema: z.ZodObject<Pick<z.objectUtil.ext
257
256
  };
258
257
  description: string | null;
259
258
  jobId: string;
260
- questions: string[] | null;
261
259
  clientInfo: {
262
260
  country: string | null;
263
261
  };
@@ -495,7 +493,7 @@ export declare const jobPipelineResponseSchema: z.ZodObject<{
495
493
  biddingAmount: z.ZodOptional<z.ZodNumber>;
496
494
  boosted: z.ZodOptional<z.ZodBoolean>;
497
495
  boostingAmount: z.ZodOptional<z.ZodNumber>;
498
- }>, "title" | "metadata" | "description" | "status" | "jobId" | "updatedAt" | "questions" | "clientInfo" | "addedAt" | "suitabilityRating" | "suitabilityReason" | "suitabilityStatus" | "biddingAmount" | "boosted" | "boostingAmount">, "strip", z.ZodTypeAny, {
496
+ }>, "title" | "metadata" | "description" | "status" | "jobId" | "updatedAt" | "clientInfo" | "addedAt" | "suitabilityRating" | "suitabilityReason" | "suitabilityStatus" | "biddingAmount" | "boosted" | "boostingAmount">, "strip", z.ZodTypeAny, {
499
497
  title: string | null;
500
498
  metadata: {
501
499
  hourlyRate: {
@@ -506,7 +504,6 @@ export declare const jobPipelineResponseSchema: z.ZodObject<{
506
504
  };
507
505
  description: string | null;
508
506
  jobId: string;
509
- questions: string[] | null;
510
507
  clientInfo: {
511
508
  country: string | null;
512
509
  };
@@ -530,7 +527,6 @@ export declare const jobPipelineResponseSchema: z.ZodObject<{
530
527
  };
531
528
  description: string | null;
532
529
  jobId: string;
533
- questions: string[] | null;
534
530
  clientInfo: {
535
531
  country: string | null;
536
532
  };
@@ -559,7 +555,6 @@ export declare const jobPipelineResponseSchema: z.ZodObject<{
559
555
  };
560
556
  description: string | null;
561
557
  jobId: string;
562
- questions: string[] | null;
563
558
  clientInfo: {
564
559
  country: string | null;
565
560
  };
@@ -588,7 +583,6 @@ export declare const jobPipelineResponseSchema: z.ZodObject<{
588
583
  };
589
584
  description: string | null;
590
585
  jobId: string;
591
- questions: string[] | null;
592
586
  clientInfo: {
593
587
  country: string | null;
594
588
  };
@@ -33,7 +33,6 @@ exports.jobPipelineDetailsSchema = job_details_1.jobDetailsSchema
33
33
  biddingAmount: true,
34
34
  boostingAmount: true,
35
35
  boosted: true,
36
- questions: true,
37
36
  });
38
37
  exports.jobPipelineResponseSchema = zod_1.z.object({
39
38
  jobs: zod_1.z.array(exports.jobPipelineDetailsSchema),
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
- export declare const LogEventTypeEnum: z.ZodEnum<["scraperStarted", "scraperCompleted", "scrapeJobStarted", "jobScraped", "jobScrapeFailed", "scrapeJobDetailsStarted", "scrapeJobDetailsCompleted", "scrapeJobDetailsFailed", "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"]>;
2
+ export declare const LogEventTypeEnum: z.ZodEnum<["scraperStarted", "scraperCompleted", "scrapeJobStarted", "jobScraped", "jobScrapeFailed", "scrapeJobDetailsStarted", "scrapeJobDetailsCompleted", "scrapeJobDetailsFailed", "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", "scraperAccountError"]>;
3
3
  export declare const logEventSchema: z.ZodObject<{
4
- type: z.ZodEnum<["scraperStarted", "scraperCompleted", "scrapeJobStarted", "jobScraped", "jobScrapeFailed", "scrapeJobDetailsStarted", "scrapeJobDetailsCompleted", "scrapeJobDetailsFailed", "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", "scrapeJobDetailsStarted", "scrapeJobDetailsCompleted", "scrapeJobDetailsFailed", "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", "scraperAccountError"]>;
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" | "scrapeJobStarted" | "jobScraped" | "jobScrapeFailed" | "scrapeJobDetailsStarted" | "scrapeJobDetailsCompleted" | "scrapeJobDetailsFailed" | "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" | "scrapeJobDetailsStarted" | "scrapeJobDetailsCompleted" | "scrapeJobDetailsFailed" | "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" | "scraperAccountError";
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" | "scrapeJobStarted" | "jobScraped" | "jobScrapeFailed" | "scrapeJobDetailsStarted" | "scrapeJobDetailsCompleted" | "scrapeJobDetailsFailed" | "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" | "scrapeJobDetailsStarted" | "scrapeJobDetailsCompleted" | "scrapeJobDetailsFailed" | "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" | "scraperAccountError";
29
29
  source: string;
30
30
  resourceId: string | null;
31
31
  organizationId: string | null;
@@ -514,6 +514,22 @@ export declare const leadStatusEventMetadata: z.ZodObject<{
514
514
  proposalId: string | null;
515
515
  } | undefined;
516
516
  }>;
517
+ export declare const scraperAccountErrorEventMetadata: z.ZodObject<{
518
+ accountId: z.ZodString;
519
+ accountEmail: z.ZodString;
520
+ errorCode: z.ZodString;
521
+ errorMessage: z.ZodString;
522
+ }, "strip", z.ZodTypeAny, {
523
+ accountId: string;
524
+ accountEmail: string;
525
+ errorMessage: string;
526
+ errorCode: string;
527
+ }, {
528
+ accountId: string;
529
+ accountEmail: string;
530
+ errorMessage: string;
531
+ errorCode: string;
532
+ }>;
517
533
  export declare const biddingRejectedWithFeedbackEventMetadata: z.ZodObject<{
518
534
  feedback: z.ZodString;
519
535
  }, "strip", z.ZodTypeAny, {
@@ -538,6 +554,7 @@ export type BiddingCompletedEventMetadata = z.infer<typeof biddingCompletedEvent
538
554
  export type BiddingFailedEventMetadata = z.infer<typeof biddingFailedEventMetadata>;
539
555
  export type BiddingRejectedWithFeedbackEventMetadata = z.infer<typeof biddingRejectedWithFeedbackEventMetadata>;
540
556
  export type LeadStatusEventMetadata = z.infer<typeof leadStatusEventMetadata>;
557
+ export type ScraperAccountErrorEventMetadata = z.infer<typeof scraperAccountErrorEventMetadata>;
541
558
  export declare const suitabilityPendingEventMetadataSchema: z.ZodObject<{
542
559
  jobId: z.ZodString;
543
560
  jobUrl: z.ZodString;
@@ -748,7 +765,7 @@ export declare const proposalCompleteEventMetadataSchema: z.ZodObject<{
748
765
  }>;
749
766
  export type ProposalCompleteEventMetadata = z.infer<typeof proposalCompleteEventMetadataSchema>;
750
767
  export declare const eventLoggerPayloadSchema: z.ZodUnion<[z.ZodObject<{
751
- type: z.ZodEnum<["scraperStarted", "scraperCompleted", "scrapeJobStarted", "jobScraped", "jobScrapeFailed", "scrapeJobDetailsStarted", "scrapeJobDetailsCompleted", "scrapeJobDetailsFailed", "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"]>;
768
+ type: z.ZodEnum<["scraperStarted", "scraperCompleted", "scrapeJobStarted", "jobScraped", "jobScrapeFailed", "scrapeJobDetailsStarted", "scrapeJobDetailsCompleted", "scrapeJobDetailsFailed", "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", "scraperAccountError"]>;
752
769
  source: z.ZodString;
753
770
  resourceType: z.ZodDefault<z.ZodString>;
754
771
  resourceId: z.ZodNullable<z.ZodString>;
@@ -760,7 +777,7 @@ export declare const eventLoggerPayloadSchema: z.ZodUnion<[z.ZodObject<{
760
777
  metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
761
778
  timestamp: z.ZodNumber;
762
779
  }, "strip", z.ZodTypeAny, {
763
- type: "scraperStarted" | "scraperCompleted" | "scrapeJobStarted" | "jobScraped" | "jobScrapeFailed" | "scrapeJobDetailsStarted" | "scrapeJobDetailsCompleted" | "scrapeJobDetailsFailed" | "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";
780
+ type: "scraperStarted" | "scraperCompleted" | "scrapeJobStarted" | "jobScraped" | "jobScrapeFailed" | "scrapeJobDetailsStarted" | "scrapeJobDetailsCompleted" | "scrapeJobDetailsFailed" | "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" | "scraperAccountError";
764
781
  source: string;
765
782
  resourceType: string;
766
783
  resourceId: string | null;
@@ -772,7 +789,7 @@ export declare const eventLoggerPayloadSchema: z.ZodUnion<[z.ZodObject<{
772
789
  metadata: Record<string, unknown> | null;
773
790
  timestamp: number;
774
791
  }, {
775
- type: "scraperStarted" | "scraperCompleted" | "scrapeJobStarted" | "jobScraped" | "jobScrapeFailed" | "scrapeJobDetailsStarted" | "scrapeJobDetailsCompleted" | "scrapeJobDetailsFailed" | "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";
792
+ type: "scraperStarted" | "scraperCompleted" | "scrapeJobStarted" | "jobScraped" | "jobScrapeFailed" | "scrapeJobDetailsStarted" | "scrapeJobDetailsCompleted" | "scrapeJobDetailsFailed" | "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" | "scraperAccountError";
776
793
  source: string;
777
794
  resourceId: string | null;
778
795
  organizationId: string | null;
@@ -784,7 +801,7 @@ export declare const eventLoggerPayloadSchema: z.ZodUnion<[z.ZodObject<{
784
801
  timestamp: number;
785
802
  resourceType?: string | undefined;
786
803
  }>, z.ZodArray<z.ZodObject<{
787
- type: z.ZodEnum<["scraperStarted", "scraperCompleted", "scrapeJobStarted", "jobScraped", "jobScrapeFailed", "scrapeJobDetailsStarted", "scrapeJobDetailsCompleted", "scrapeJobDetailsFailed", "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"]>;
804
+ type: z.ZodEnum<["scraperStarted", "scraperCompleted", "scrapeJobStarted", "jobScraped", "jobScrapeFailed", "scrapeJobDetailsStarted", "scrapeJobDetailsCompleted", "scrapeJobDetailsFailed", "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", "scraperAccountError"]>;
788
805
  source: z.ZodString;
789
806
  resourceType: z.ZodDefault<z.ZodString>;
790
807
  resourceId: z.ZodNullable<z.ZodString>;
@@ -796,7 +813,7 @@ export declare const eventLoggerPayloadSchema: z.ZodUnion<[z.ZodObject<{
796
813
  metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
797
814
  timestamp: z.ZodNumber;
798
815
  }, "strip", z.ZodTypeAny, {
799
- type: "scraperStarted" | "scraperCompleted" | "scrapeJobStarted" | "jobScraped" | "jobScrapeFailed" | "scrapeJobDetailsStarted" | "scrapeJobDetailsCompleted" | "scrapeJobDetailsFailed" | "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";
816
+ type: "scraperStarted" | "scraperCompleted" | "scrapeJobStarted" | "jobScraped" | "jobScrapeFailed" | "scrapeJobDetailsStarted" | "scrapeJobDetailsCompleted" | "scrapeJobDetailsFailed" | "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" | "scraperAccountError";
800
817
  source: string;
801
818
  resourceType: string;
802
819
  resourceId: string | null;
@@ -808,7 +825,7 @@ export declare const eventLoggerPayloadSchema: z.ZodUnion<[z.ZodObject<{
808
825
  metadata: Record<string, unknown> | null;
809
826
  timestamp: number;
810
827
  }, {
811
- type: "scraperStarted" | "scraperCompleted" | "scrapeJobStarted" | "jobScraped" | "jobScrapeFailed" | "scrapeJobDetailsStarted" | "scrapeJobDetailsCompleted" | "scrapeJobDetailsFailed" | "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";
828
+ type: "scraperStarted" | "scraperCompleted" | "scrapeJobStarted" | "jobScraped" | "jobScrapeFailed" | "scrapeJobDetailsStarted" | "scrapeJobDetailsCompleted" | "scrapeJobDetailsFailed" | "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" | "scraperAccountError";
812
829
  source: string;
813
830
  resourceId: string | null;
814
831
  organizationId: string | null;
@@ -1,8 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.externalProxySchema = exports.proxySchema = exports.proxyCountrySchema = exports.proxyProviderSchema = exports.proxyStatusSchema = void 0;
3
+ exports.externalProxySchema = exports.proxySchema = exports.proxyCountrySchema = exports.proxyProviderSchema = void 0;
4
4
  const zod_1 = require("zod");
5
- exports.proxyStatusSchema = zod_1.z.enum(['ready', 'pending', 'to_replace']);
6
5
  exports.proxyProviderSchema = zod_1.z.enum(['webshare']);
7
6
  exports.proxyCountrySchema = zod_1.z.enum(['USA']);
8
7
  exports.proxySchema = zod_1.z.object({
@@ -14,7 +13,6 @@ exports.proxySchema = zod_1.z.object({
14
13
  password: zod_1.z.string(),
15
14
  provider: exports.proxyProviderSchema,
16
15
  country: exports.proxyCountrySchema,
17
- status: exports.proxyStatusSchema,
18
16
  bidderId: zod_1.z.string().nullable(),
19
17
  });
20
18
  exports.externalProxySchema = exports.proxySchema.omit({
@@ -1,3 +1,3 @@
1
1
  export * from './upwork-account-status';
2
2
  export * from './upwork-business-manager-account';
3
- export * from './upwork-scraper-account';
3
+ export * from './upwork-scraping-account';
@@ -16,4 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./upwork-account-status"), exports);
18
18
  __exportStar(require("./upwork-business-manager-account"), exports);
19
- __exportStar(require("./upwork-scraper-account"), exports);
19
+ __exportStar(require("./upwork-scraping-account"), exports);