lancer-shared 1.2.43 → 1.2.45

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 (63) hide show
  1. package/dist/bundle.cjs.js +6 -0
  2. package/dist/constants/organization.d.ts +2 -2
  3. package/dist/constants/routes.d.ts +1 -0
  4. package/dist/constants/routes.js +0 -6
  5. package/dist/schemas/campaign/campaign-analytics.d.ts +44 -0
  6. package/dist/schemas/campaign/campaign-integrations.d.ts +5 -0
  7. package/dist/schemas/job/job.d.ts +16 -16
  8. package/dist/schemas/job/pipeline-job.d.ts +3 -9
  9. package/dist/schemas/job/pipeline-job.js +0 -1
  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/types/upwork-account/upwork-scraping-account.d.ts +2 -2
  18. package/package.json +1 -1
  19. package/dist/constants/proxies.d.ts +0 -4
  20. package/dist/constants/upwork-filters.d.ts +0 -5
  21. package/dist/constants/upwork-filters.js +0 -75
  22. package/dist/schemas/account/exceptions/no-bidder-accounts-available.d.ts +0 -5
  23. package/dist/schemas/ai-config/ai-config.d.ts +0 -39
  24. package/dist/schemas/ai-config/ai-config.js +0 -12
  25. package/dist/schemas/ai-config/index.d.ts +0 -1
  26. package/dist/schemas/ai-config/index.js +0 -17
  27. package/dist/schemas/bid/bid-status.d.ts +0 -30
  28. package/dist/schemas/bid/bid-status.js +0 -15
  29. package/dist/schemas/bid/exceptions/base-exception.d.ts +0 -4
  30. package/dist/schemas/bid/exceptions/evalute-element.exception.d.ts +0 -5
  31. package/dist/schemas/bid/exceptions/wait-for-function-timeout.d.ts +0 -5
  32. package/dist/schemas/bidding/proposal-dto.d.ts +0 -26
  33. package/dist/schemas/bidding/proposal-dto.js +0 -18
  34. package/dist/schemas/job/job-pipeline.d.ts +0 -74
  35. package/dist/schemas/job/job-pipeline.js +0 -29
  36. package/dist/schemas/job/job-suitability.d.ts +0 -12
  37. package/dist/schemas/job/job-suitability.js +0 -13
  38. package/dist/schemas/knowledge-object/index.d.ts +0 -1
  39. package/dist/schemas/knowledge-object/index.js +0 -17
  40. package/dist/schemas/knowledge-object/knowledge-object.d.ts +0 -128
  41. package/dist/schemas/knowledge-object/knowledge-object.js +0 -47
  42. package/dist/schemas/scraper/scrape-response.d.ts +0 -345
  43. package/dist/schemas/scraper/scrape-response.js +0 -9
  44. package/dist/schemas/upwork-account/upwork-scraper-account.d.ts +0 -92
  45. package/dist/schemas/upwork-account/upwork-scraper-account.js +0 -31
  46. package/dist/types/ai-config/ai-config.d.ts +0 -6
  47. package/dist/types/ai-config/ai-config.js +0 -2
  48. package/dist/types/ai-config/index.d.ts +0 -1
  49. package/dist/types/ai-config/index.js +0 -17
  50. package/dist/types/bid/bid-status.d.ts +0 -5
  51. package/dist/types/bid/bid-status.js +0 -2
  52. package/dist/types/bidding/proposal-dto.d.ts +0 -3
  53. package/dist/types/bidding/proposal-dto.js +0 -2
  54. package/dist/types/job/job-pipeline.d.ts +0 -4
  55. package/dist/types/job/job-pipeline.js +0 -2
  56. package/dist/types/job/job-suitability.d.ts +0 -3
  57. package/dist/types/job/job-suitability.js +0 -2
  58. package/dist/types/knowledge-object/index.d.ts +0 -1
  59. package/dist/types/knowledge-object/index.js +0 -17
  60. package/dist/types/knowledge-object/knowledge-object.d.ts +0 -4
  61. package/dist/types/knowledge-object/knowledge-object.js +0 -2
  62. package/dist/types/scraper/scrape-response.d.ts +0 -4
  63. package/dist/types/scraper/scrape-response.js +0 -2
@@ -6552,6 +6552,7 @@ const ROUTES = {
6552
6552
  GENERATE_COUNTS: (organizationId, campaignId) => `organizations/${organizationId}/campaigns/${campaignId}/leads/generate-counts`,
6553
6553
  },
6554
6554
  ANALYTICS: (organizationId, campaignId) => `organizations/${organizationId}/campaigns/${campaignId}/analytics`,
6555
+ TOTAL_STATS: (organizationId, campaignId) => `organizations/${organizationId}/campaigns/${campaignId}/analytics/totals`,
6555
6556
  ACTIVITIES: {
6556
6557
  BASE: (organizationId, campaignId) => `organizations/${organizationId}/campaigns/${campaignId}/activities`,
6557
6558
  BY_ID: (organizationId, campaignId, activityId) => `organizations/${organizationId}/campaigns/${campaignId}/activities/${activityId}`,
@@ -12881,10 +12882,12 @@ const baseActivitySchema = z.object({
12881
12882
  id: true,
12882
12883
  name: true,
12883
12884
  }),
12885
+ creditBalance: z.number(),
12884
12886
  });
12885
12887
  const campaignStatusActivityExtraSchema = z.object({
12886
12888
  type: z.literal("campaign_status"),
12887
12889
  status: z.enum(["started", "paused", "created", "error"]),
12890
+ creditBalance: z.number(),
12888
12891
  });
12889
12892
  const campaignStatusActivitySchema = baseActivitySchema.extend({
12890
12893
  ...campaignStatusActivityExtraSchema.shape,
@@ -12898,6 +12901,7 @@ const leadAnalysisActivityExtraSchema = z.object({
12898
12901
  jobUrl: true,
12899
12902
  }),
12900
12903
  suitabilityRating: z.number().min(0).max(100),
12904
+ creditBalance: z.number(),
12901
12905
  });
12902
12906
  const leadAnalysisActivitySchema = baseActivitySchema.extend({
12903
12907
  ...leadAnalysisActivityExtraSchema.shape,
@@ -12911,6 +12915,7 @@ const leadStatusActivityExtraSchema = z.object({
12911
12915
  datetime: true,
12912
12916
  jobUrl: true,
12913
12917
  }),
12918
+ creditBalance: z.number(),
12914
12919
  });
12915
12920
  const leadStatusActivitySchema = baseActivitySchema.extend({
12916
12921
  ...leadStatusActivityExtraSchema.shape,
@@ -12923,6 +12928,7 @@ const proposalSentActivityExtraSchema = z.object({
12923
12928
  datetime: true,
12924
12929
  jobUrl: true,
12925
12930
  }),
12931
+ creditBalance: z.number(),
12926
12932
  });
12927
12933
  const proposalSentActivitySchema = baseActivitySchema.extend({
12928
12934
  ...proposalSentActivityExtraSchema.shape,
@@ -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>;
@@ -127,6 +127,7 @@ export declare const ROUTES: {
127
127
  readonly GENERATE_COUNTS: (organizationId: string, campaignId: string) => string;
128
128
  };
129
129
  readonly ANALYTICS: (organizationId: string, campaignId: string) => string;
130
+ readonly TOTAL_STATS: (organizationId: string, campaignId: string) => string;
130
131
  readonly ACTIVITIES: {
131
132
  readonly BASE: (organizationId: string, campaignId: string) => string;
132
133
  readonly BY_ID: (organizationId: string, campaignId: string, activityId: string) => string;
@@ -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',
@@ -630,9 +630,11 @@ export declare const campaignStatusActivitySchema: z.ZodObject<z.objectUtil.exte
630
630
  id: string;
631
631
  name: string;
632
632
  }>;
633
+ creditBalance: z.ZodNumber;
633
634
  }, {
634
635
  type: z.ZodLiteral<"campaign_status">;
635
636
  status: z.ZodEnum<["started", "paused", "created", "error"]>;
637
+ creditBalance: z.ZodNumber;
636
638
  }>, "strip", z.ZodTypeAny, {
637
639
  type: "campaign_status";
638
640
  status: "paused" | "error" | "started" | "created";
@@ -645,6 +647,7 @@ export declare const campaignStatusActivitySchema: z.ZodObject<z.objectUtil.exte
645
647
  id: string;
646
648
  name: string;
647
649
  };
650
+ creditBalance: number;
648
651
  }, {
649
652
  type: "campaign_status";
650
653
  status: "paused" | "error" | "started" | "created";
@@ -657,6 +660,7 @@ export declare const campaignStatusActivitySchema: z.ZodObject<z.objectUtil.exte
657
660
  id: string;
658
661
  name: string;
659
662
  };
663
+ creditBalance: number;
660
664
  }>;
661
665
  export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extendShape<{
662
666
  createdAt: z.ZodNumber;
@@ -1135,6 +1139,7 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
1135
1139
  id: string;
1136
1140
  name: string;
1137
1141
  }>;
1142
+ creditBalance: z.ZodNumber;
1138
1143
  }, {
1139
1144
  type: z.ZodLiteral<"lead_analysis">;
1140
1145
  lead: z.ZodObject<Pick<Omit<z.objectUtil.extendShape<{
@@ -1471,6 +1476,7 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
1471
1476
  jobUrl: string | null;
1472
1477
  }>;
1473
1478
  suitabilityRating: z.ZodNumber;
1479
+ creditBalance: z.ZodNumber;
1474
1480
  }>, "strip", z.ZodTypeAny, {
1475
1481
  type: "lead_analysis";
1476
1482
  createdAt: number;
@@ -1482,6 +1488,7 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
1482
1488
  id: string;
1483
1489
  name: string;
1484
1490
  };
1491
+ creditBalance: number;
1485
1492
  suitabilityRating: number;
1486
1493
  lead: {
1487
1494
  id: string | null;
@@ -1500,6 +1507,7 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
1500
1507
  id: string;
1501
1508
  name: string;
1502
1509
  };
1510
+ creditBalance: number;
1503
1511
  suitabilityRating: number;
1504
1512
  lead: {
1505
1513
  id: string | null;
@@ -1985,6 +1993,7 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
1985
1993
  id: string;
1986
1994
  name: string;
1987
1995
  }>;
1996
+ creditBalance: z.ZodNumber;
1988
1997
  }, {
1989
1998
  type: z.ZodLiteral<"lead_status">;
1990
1999
  status: z.ZodEnum<["leads", "contacted", "viewed", "replied", "won", "lost"]>;
@@ -2321,6 +2330,7 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
2321
2330
  datetime: number | null;
2322
2331
  jobUrl: string | null;
2323
2332
  }>;
2333
+ creditBalance: z.ZodNumber;
2324
2334
  }>, "strip", z.ZodTypeAny, {
2325
2335
  type: "lead_status";
2326
2336
  status: "contacted" | "viewed" | "replied" | "won" | "leads" | "lost";
@@ -2333,6 +2343,7 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
2333
2343
  id: string;
2334
2344
  name: string;
2335
2345
  };
2346
+ creditBalance: number;
2336
2347
  lead: {
2337
2348
  id: string | null;
2338
2349
  title: string | null;
@@ -2351,6 +2362,7 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
2351
2362
  id: string;
2352
2363
  name: string;
2353
2364
  };
2365
+ creditBalance: number;
2354
2366
  lead: {
2355
2367
  id: string | null;
2356
2368
  title: string | null;
@@ -2835,6 +2847,7 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
2835
2847
  id: string;
2836
2848
  name: string;
2837
2849
  }>;
2850
+ creditBalance: z.ZodNumber;
2838
2851
  }, {
2839
2852
  type: z.ZodLiteral<"proposal_sent">;
2840
2853
  lead: z.ZodObject<Pick<Omit<z.objectUtil.extendShape<{
@@ -3170,6 +3183,7 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
3170
3183
  datetime: number | null;
3171
3184
  jobUrl: string | null;
3172
3185
  }>;
3186
+ creditBalance: z.ZodNumber;
3173
3187
  }>, "strip", z.ZodTypeAny, {
3174
3188
  type: "proposal_sent";
3175
3189
  createdAt: number;
@@ -3181,6 +3195,7 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
3181
3195
  id: string;
3182
3196
  name: string;
3183
3197
  };
3198
+ creditBalance: number;
3184
3199
  lead: {
3185
3200
  id: string | null;
3186
3201
  title: string | null;
@@ -3198,6 +3213,7 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
3198
3213
  id: string;
3199
3214
  name: string;
3200
3215
  };
3216
+ creditBalance: number;
3201
3217
  lead: {
3202
3218
  id: string | null;
3203
3219
  title: string | null;
@@ -3682,9 +3698,11 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
3682
3698
  id: string;
3683
3699
  name: string;
3684
3700
  }>;
3701
+ creditBalance: z.ZodNumber;
3685
3702
  }, {
3686
3703
  type: z.ZodLiteral<"campaign_status">;
3687
3704
  status: z.ZodEnum<["started", "paused", "created", "error"]>;
3705
+ creditBalance: z.ZodNumber;
3688
3706
  }>, "strip", z.ZodTypeAny, {
3689
3707
  type: "campaign_status";
3690
3708
  status: "paused" | "error" | "started" | "created";
@@ -3697,6 +3715,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
3697
3715
  id: string;
3698
3716
  name: string;
3699
3717
  };
3718
+ creditBalance: number;
3700
3719
  }, {
3701
3720
  type: "campaign_status";
3702
3721
  status: "paused" | "error" | "started" | "created";
@@ -3709,6 +3728,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
3709
3728
  id: string;
3710
3729
  name: string;
3711
3730
  };
3731
+ creditBalance: number;
3712
3732
  }>, z.ZodObject<z.objectUtil.extendShape<{
3713
3733
  createdAt: z.ZodNumber;
3714
3734
  organization: z.ZodObject<Pick<{
@@ -4186,6 +4206,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
4186
4206
  id: string;
4187
4207
  name: string;
4188
4208
  }>;
4209
+ creditBalance: z.ZodNumber;
4189
4210
  }, {
4190
4211
  type: z.ZodLiteral<"lead_analysis">;
4191
4212
  lead: z.ZodObject<Pick<Omit<z.objectUtil.extendShape<{
@@ -4522,6 +4543,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
4522
4543
  jobUrl: string | null;
4523
4544
  }>;
4524
4545
  suitabilityRating: z.ZodNumber;
4546
+ creditBalance: z.ZodNumber;
4525
4547
  }>, "strip", z.ZodTypeAny, {
4526
4548
  type: "lead_analysis";
4527
4549
  createdAt: number;
@@ -4533,6 +4555,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
4533
4555
  id: string;
4534
4556
  name: string;
4535
4557
  };
4558
+ creditBalance: number;
4536
4559
  suitabilityRating: number;
4537
4560
  lead: {
4538
4561
  id: string | null;
@@ -4551,6 +4574,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
4551
4574
  id: string;
4552
4575
  name: string;
4553
4576
  };
4577
+ creditBalance: number;
4554
4578
  suitabilityRating: number;
4555
4579
  lead: {
4556
4580
  id: string | null;
@@ -5035,6 +5059,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
5035
5059
  id: string;
5036
5060
  name: string;
5037
5061
  }>;
5062
+ creditBalance: z.ZodNumber;
5038
5063
  }, {
5039
5064
  type: z.ZodLiteral<"lead_status">;
5040
5065
  status: z.ZodEnum<["leads", "contacted", "viewed", "replied", "won", "lost"]>;
@@ -5371,6 +5396,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
5371
5396
  datetime: number | null;
5372
5397
  jobUrl: string | null;
5373
5398
  }>;
5399
+ creditBalance: z.ZodNumber;
5374
5400
  }>, "strip", z.ZodTypeAny, {
5375
5401
  type: "lead_status";
5376
5402
  status: "contacted" | "viewed" | "replied" | "won" | "leads" | "lost";
@@ -5383,6 +5409,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
5383
5409
  id: string;
5384
5410
  name: string;
5385
5411
  };
5412
+ creditBalance: number;
5386
5413
  lead: {
5387
5414
  id: string | null;
5388
5415
  title: string | null;
@@ -5401,6 +5428,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
5401
5428
  id: string;
5402
5429
  name: string;
5403
5430
  };
5431
+ creditBalance: number;
5404
5432
  lead: {
5405
5433
  id: string | null;
5406
5434
  title: string | null;
@@ -5884,6 +5912,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
5884
5912
  id: string;
5885
5913
  name: string;
5886
5914
  }>;
5915
+ creditBalance: z.ZodNumber;
5887
5916
  }, {
5888
5917
  type: z.ZodLiteral<"proposal_sent">;
5889
5918
  lead: z.ZodObject<Pick<Omit<z.objectUtil.extendShape<{
@@ -6219,6 +6248,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
6219
6248
  datetime: number | null;
6220
6249
  jobUrl: string | null;
6221
6250
  }>;
6251
+ creditBalance: z.ZodNumber;
6222
6252
  }>, "strip", z.ZodTypeAny, {
6223
6253
  type: "proposal_sent";
6224
6254
  createdAt: number;
@@ -6230,6 +6260,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
6230
6260
  id: string;
6231
6261
  name: string;
6232
6262
  };
6263
+ creditBalance: number;
6233
6264
  lead: {
6234
6265
  id: string | null;
6235
6266
  title: string | null;
@@ -6247,6 +6278,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
6247
6278
  id: string;
6248
6279
  name: string;
6249
6280
  };
6281
+ creditBalance: number;
6250
6282
  lead: {
6251
6283
  id: string | null;
6252
6284
  title: string | null;
@@ -6257,12 +6289,15 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
6257
6289
  export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6258
6290
  type: z.ZodLiteral<"campaign_status">;
6259
6291
  status: z.ZodEnum<["started", "paused", "created", "error"]>;
6292
+ creditBalance: z.ZodNumber;
6260
6293
  }, "strip", z.ZodTypeAny, {
6261
6294
  type: "campaign_status";
6262
6295
  status: "paused" | "error" | "started" | "created";
6296
+ creditBalance: number;
6263
6297
  }, {
6264
6298
  type: "campaign_status";
6265
6299
  status: "paused" | "error" | "started" | "created";
6300
+ creditBalance: number;
6266
6301
  }>, z.ZodObject<{
6267
6302
  type: z.ZodLiteral<"lead_analysis">;
6268
6303
  lead: z.ZodObject<Pick<Omit<z.objectUtil.extendShape<{
@@ -6599,8 +6634,10 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
6599
6634
  jobUrl: string | null;
6600
6635
  }>;
6601
6636
  suitabilityRating: z.ZodNumber;
6637
+ creditBalance: z.ZodNumber;
6602
6638
  }, "strip", z.ZodTypeAny, {
6603
6639
  type: "lead_analysis";
6640
+ creditBalance: number;
6604
6641
  suitabilityRating: number;
6605
6642
  lead: {
6606
6643
  id: string | null;
@@ -6610,6 +6647,7 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
6610
6647
  };
6611
6648
  }, {
6612
6649
  type: "lead_analysis";
6650
+ creditBalance: number;
6613
6651
  suitabilityRating: number;
6614
6652
  lead: {
6615
6653
  id: string | null;
@@ -6953,9 +6991,11 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
6953
6991
  datetime: number | null;
6954
6992
  jobUrl: string | null;
6955
6993
  }>;
6994
+ creditBalance: z.ZodNumber;
6956
6995
  }, "strip", z.ZodTypeAny, {
6957
6996
  type: "lead_status";
6958
6997
  status: "contacted" | "viewed" | "replied" | "won" | "leads" | "lost";
6998
+ creditBalance: number;
6959
6999
  lead: {
6960
7000
  id: string | null;
6961
7001
  title: string | null;
@@ -6965,6 +7005,7 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
6965
7005
  }, {
6966
7006
  type: "lead_status";
6967
7007
  status: "contacted" | "viewed" | "replied" | "won" | "leads" | "lost";
7008
+ creditBalance: number;
6968
7009
  lead: {
6969
7010
  id: string | null;
6970
7011
  title: string | null;
@@ -7306,8 +7347,10 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
7306
7347
  datetime: number | null;
7307
7348
  jobUrl: string | null;
7308
7349
  }>;
7350
+ creditBalance: z.ZodNumber;
7309
7351
  }, "strip", z.ZodTypeAny, {
7310
7352
  type: "proposal_sent";
7353
+ creditBalance: number;
7311
7354
  lead: {
7312
7355
  id: string | null;
7313
7356
  title: string | null;
@@ -7316,6 +7359,7 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
7316
7359
  };
7317
7360
  }, {
7318
7361
  type: "proposal_sent";
7362
+ creditBalance: number;
7319
7363
  lead: {
7320
7364
  id: string | null;
7321
7365
  title: string | null;
@@ -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,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);