lancer-shared 1.2.101 → 1.2.102

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 -7
  2. package/dist/constants/organization.d.ts +2 -2
  3. package/dist/constants/routes.js +0 -6
  4. package/dist/schemas/campaign/campaign-analytics.d.ts +18 -27
  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/proxy/proxy.js +1 -3
  10. package/dist/schemas/time-filter/index.d.ts +2 -2
  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
@@ -13259,12 +13259,11 @@ const systemSchema = objectType({
13259
13259
  prompts: systemPromptSchema,
13260
13260
  });
13261
13261
 
13262
- const timeFilterSchema = z.union([
13263
- z.literal("last_7_days"),
13264
- z.literal("last_30_days"),
13265
- z.literal("last_6_months"),
13266
- z.literal("last_year"),
13267
- z.literal("all_time"),
13262
+ const periodTypeSchema = z.union([
13263
+ z.literal("weekly"),
13264
+ z.literal("monthly"),
13265
+ z.literal("quarterly"),
13266
+ z.literal("yearly"),
13268
13267
  ]);
13269
13268
 
13270
13269
  const transactionStripeMetadataSchema = objectType({
@@ -13917,6 +13916,7 @@ exports.organizationTypeSchema = organizationTypeSchema;
13917
13916
  exports.parseConnectsException = parseConnectsException;
13918
13917
  exports.passwordSchema = passwordSchema;
13919
13918
  exports.paymentTypeEnum = paymentTypeEnum;
13919
+ exports.periodTypeSchema = periodTypeSchema;
13920
13920
  exports.periodUsageSchema = periodUsageSchema;
13921
13921
  exports.planFeatureSchema = planFeatureSchema;
13922
13922
  exports.planSchema = planSchema;
@@ -13973,7 +13973,6 @@ exports.suitabilityRatingSchema = suitabilityRatingSchema;
13973
13973
  exports.systemPromptSchema = systemPromptSchema;
13974
13974
  exports.systemSchema = systemSchema;
13975
13975
  exports.talentTypeEnum = talentTypeEnum;
13976
- exports.timeFilterSchema = timeFilterSchema;
13977
13976
  exports.trackUsageEventTypeEnum = trackUsageEventTypeEnum;
13978
13977
  exports.trackUsagePayloadSchema = trackUsagePayloadSchema;
13979
13978
  exports.transactionSchema = transactionSchema;
@@ -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',
@@ -1419,9 +1419,8 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
1419
1419
  biddingTaskScheduled: z.ZodNullable<z.ZodBoolean>;
1420
1420
  scheduledBiddingTime: z.ZodNullable<z.ZodNumber>;
1421
1421
  wonAmount: z.ZodOptional<z.ZodNumber>;
1422
- feedbackCheckTaskId: z.ZodNullable<z.ZodString>;
1423
- bidDecision: z.ZodNullable<z.ZodEnum<["proceeded", "rejected"]>>;
1424
- rejectedFeedback: z.ZodNullable<z.ZodString>;
1422
+ biddingTaskId: z.ZodNullable<z.ZodString>;
1423
+ doNotApplyReason: z.ZodNullable<z.ZodString>;
1425
1424
  }>, "processed">, "id" | "title" | "datetime" | "jobUrl">, "strip", z.ZodTypeAny, {
1426
1425
  id: string | null;
1427
1426
  title: string | null;
@@ -2256,9 +2255,8 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
2256
2255
  biddingTaskScheduled: z.ZodNullable<z.ZodBoolean>;
2257
2256
  scheduledBiddingTime: z.ZodNullable<z.ZodNumber>;
2258
2257
  wonAmount: z.ZodOptional<z.ZodNumber>;
2259
- feedbackCheckTaskId: z.ZodNullable<z.ZodString>;
2260
- bidDecision: z.ZodNullable<z.ZodEnum<["proceeded", "rejected"]>>;
2261
- rejectedFeedback: z.ZodNullable<z.ZodString>;
2258
+ biddingTaskId: z.ZodNullable<z.ZodString>;
2259
+ doNotApplyReason: z.ZodNullable<z.ZodString>;
2262
2260
  }>, "processed">, "id" | "title" | "datetime" | "jobUrl">, "strip", z.ZodTypeAny, {
2263
2261
  id: string | null;
2264
2262
  title: string | null;
@@ -3091,9 +3089,8 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
3091
3089
  biddingTaskScheduled: z.ZodNullable<z.ZodBoolean>;
3092
3090
  scheduledBiddingTime: z.ZodNullable<z.ZodNumber>;
3093
3091
  wonAmount: z.ZodOptional<z.ZodNumber>;
3094
- feedbackCheckTaskId: z.ZodNullable<z.ZodString>;
3095
- bidDecision: z.ZodNullable<z.ZodEnum<["proceeded", "rejected"]>>;
3096
- rejectedFeedback: z.ZodNullable<z.ZodString>;
3092
+ biddingTaskId: z.ZodNullable<z.ZodString>;
3093
+ doNotApplyReason: z.ZodNullable<z.ZodString>;
3097
3094
  }>, "processed">, "id" | "title" | "datetime" | "jobUrl">, "strip", z.ZodTypeAny, {
3098
3095
  id: string | null;
3099
3096
  title: string | null;
@@ -4408,9 +4405,8 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
4408
4405
  biddingTaskScheduled: z.ZodNullable<z.ZodBoolean>;
4409
4406
  scheduledBiddingTime: z.ZodNullable<z.ZodNumber>;
4410
4407
  wonAmount: z.ZodOptional<z.ZodNumber>;
4411
- feedbackCheckTaskId: z.ZodNullable<z.ZodString>;
4412
- bidDecision: z.ZodNullable<z.ZodEnum<["proceeded", "rejected"]>>;
4413
- rejectedFeedback: z.ZodNullable<z.ZodString>;
4408
+ biddingTaskId: z.ZodNullable<z.ZodString>;
4409
+ doNotApplyReason: z.ZodNullable<z.ZodString>;
4414
4410
  }>, "processed">, "id" | "title" | "datetime" | "jobUrl">, "strip", z.ZodTypeAny, {
4415
4411
  id: string | null;
4416
4412
  title: string | null;
@@ -5244,9 +5240,8 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
5244
5240
  biddingTaskScheduled: z.ZodNullable<z.ZodBoolean>;
5245
5241
  scheduledBiddingTime: z.ZodNullable<z.ZodNumber>;
5246
5242
  wonAmount: z.ZodOptional<z.ZodNumber>;
5247
- feedbackCheckTaskId: z.ZodNullable<z.ZodString>;
5248
- bidDecision: z.ZodNullable<z.ZodEnum<["proceeded", "rejected"]>>;
5249
- rejectedFeedback: z.ZodNullable<z.ZodString>;
5243
+ biddingTaskId: z.ZodNullable<z.ZodString>;
5244
+ doNotApplyReason: z.ZodNullable<z.ZodString>;
5250
5245
  }>, "processed">, "id" | "title" | "datetime" | "jobUrl">, "strip", z.ZodTypeAny, {
5251
5246
  id: string | null;
5252
5247
  title: string | null;
@@ -6078,9 +6073,8 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
6078
6073
  biddingTaskScheduled: z.ZodNullable<z.ZodBoolean>;
6079
6074
  scheduledBiddingTime: z.ZodNullable<z.ZodNumber>;
6080
6075
  wonAmount: z.ZodOptional<z.ZodNumber>;
6081
- feedbackCheckTaskId: z.ZodNullable<z.ZodString>;
6082
- bidDecision: z.ZodNullable<z.ZodEnum<["proceeded", "rejected"]>>;
6083
- rejectedFeedback: z.ZodNullable<z.ZodString>;
6076
+ biddingTaskId: z.ZodNullable<z.ZodString>;
6077
+ doNotApplyReason: z.ZodNullable<z.ZodString>;
6084
6078
  }>, "processed">, "id" | "title" | "datetime" | "jobUrl">, "strip", z.ZodTypeAny, {
6085
6079
  id: string | null;
6086
6080
  title: string | null;
@@ -6469,9 +6463,8 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
6469
6463
  biddingTaskScheduled: z.ZodNullable<z.ZodBoolean>;
6470
6464
  scheduledBiddingTime: z.ZodNullable<z.ZodNumber>;
6471
6465
  wonAmount: z.ZodOptional<z.ZodNumber>;
6472
- feedbackCheckTaskId: z.ZodNullable<z.ZodString>;
6473
- bidDecision: z.ZodNullable<z.ZodEnum<["proceeded", "rejected"]>>;
6474
- rejectedFeedback: z.ZodNullable<z.ZodString>;
6466
+ biddingTaskId: z.ZodNullable<z.ZodString>;
6467
+ doNotApplyReason: z.ZodNullable<z.ZodString>;
6475
6468
  }>, "processed">, "id" | "title" | "datetime" | "jobUrl">, "strip", z.ZodTypeAny, {
6476
6469
  id: string | null;
6477
6470
  title: string | null;
@@ -6833,9 +6826,8 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
6833
6826
  biddingTaskScheduled: z.ZodNullable<z.ZodBoolean>;
6834
6827
  scheduledBiddingTime: z.ZodNullable<z.ZodNumber>;
6835
6828
  wonAmount: z.ZodOptional<z.ZodNumber>;
6836
- feedbackCheckTaskId: z.ZodNullable<z.ZodString>;
6837
- bidDecision: z.ZodNullable<z.ZodEnum<["proceeded", "rejected"]>>;
6838
- rejectedFeedback: z.ZodNullable<z.ZodString>;
6829
+ biddingTaskId: z.ZodNullable<z.ZodString>;
6830
+ doNotApplyReason: z.ZodNullable<z.ZodString>;
6839
6831
  }>, "processed">, "id" | "title" | "datetime" | "jobUrl">, "strip", z.ZodTypeAny, {
6840
6832
  id: string | null;
6841
6833
  title: string | null;
@@ -7195,9 +7187,8 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
7195
7187
  biddingTaskScheduled: z.ZodNullable<z.ZodBoolean>;
7196
7188
  scheduledBiddingTime: z.ZodNullable<z.ZodNumber>;
7197
7189
  wonAmount: z.ZodOptional<z.ZodNumber>;
7198
- feedbackCheckTaskId: z.ZodNullable<z.ZodString>;
7199
- bidDecision: z.ZodNullable<z.ZodEnum<["proceeded", "rejected"]>>;
7200
- rejectedFeedback: z.ZodNullable<z.ZodString>;
7190
+ biddingTaskId: z.ZodNullable<z.ZodString>;
7191
+ doNotApplyReason: z.ZodNullable<z.ZodString>;
7201
7192
  }>, "processed">, "id" | "title" | "datetime" | "jobUrl">, "strip", z.ZodTypeAny, {
7202
7193
  id: string | null;
7203
7194
  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
  import { z } from "zod";
2
- export declare const timeFilterSchema: z.ZodUnion<[z.ZodLiteral<"last_7_days">, z.ZodLiteral<"last_30_days">, z.ZodLiteral<"last_6_months">, z.ZodLiteral<"last_year">, z.ZodLiteral<"all_time">]>;
3
- export type TimeFilter = z.infer<typeof timeFilterSchema>;
2
+ export declare const periodTypeSchema: z.ZodUnion<[z.ZodLiteral<"weekly">, z.ZodLiteral<"monthly">, z.ZodLiteral<"quarterly">, z.ZodLiteral<"yearly">]>;
3
+ export type PeriodType = z.infer<typeof periodTypeSchema>;
@@ -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);
@@ -9,33 +9,33 @@ export declare const upworkBusinessManagerAccountSchema: z.ZodObject<{
9
9
  proxy: z.ZodString;
10
10
  status: z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>;
11
11
  verified: z.ZodBoolean;
12
- isActive: z.ZodBoolean;
12
+ is_active: z.ZodBoolean;
13
13
  assignedOrganizations: z.ZodArray<z.ZodString, "many">;
14
- lastUsed: z.ZodNullable<z.ZodNumber>;
14
+ last_used: z.ZodNullable<z.ZodNumber>;
15
15
  }, "strip", z.ZodTypeAny, {
16
16
  id: string;
17
17
  email: string;
18
18
  status: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned";
19
19
  cookies: any[] | null;
20
20
  password: string;
21
- isActive: boolean;
22
21
  provider: "user_provided" | "lancer_provided";
23
22
  proxy: string;
24
23
  verified: boolean;
24
+ is_active: boolean;
25
25
  assignedOrganizations: string[];
26
- lastUsed: number | null;
26
+ last_used: number | null;
27
27
  }, {
28
28
  id: string;
29
29
  email: string;
30
30
  status: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned";
31
31
  cookies: any[] | null;
32
32
  password: string;
33
- isActive: boolean;
34
33
  provider: "user_provided" | "lancer_provided";
35
34
  proxy: string;
36
35
  verified: boolean;
36
+ is_active: boolean;
37
37
  assignedOrganizations: string[];
38
- lastUsed: number | null;
38
+ last_used: number | null;
39
39
  }>;
40
40
  export declare const createUpworkBusinessManagerAccountSchema: z.ZodObject<Pick<{
41
41
  id: z.ZodString;
@@ -46,9 +46,9 @@ export declare const createUpworkBusinessManagerAccountSchema: z.ZodObject<Pick<
46
46
  proxy: z.ZodString;
47
47
  status: z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>;
48
48
  verified: z.ZodBoolean;
49
- isActive: z.ZodBoolean;
49
+ is_active: z.ZodBoolean;
50
50
  assignedOrganizations: z.ZodArray<z.ZodString, "many">;
51
- lastUsed: z.ZodNullable<z.ZodNumber>;
51
+ last_used: z.ZodNullable<z.ZodNumber>;
52
52
  }, "email" | "password" | "provider" | "proxy" | "assignedOrganizations">, "strip", z.ZodTypeAny, {
53
53
  email: string;
54
54
  password: string;
@@ -67,29 +67,29 @@ export declare const updateUpworkBusinessManagerAccountSchema: z.ZodObject<{
67
67
  status: z.ZodOptional<z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>>;
68
68
  cookies: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodAny, "many">>>;
69
69
  password: z.ZodOptional<z.ZodString>;
70
- isActive: z.ZodOptional<z.ZodBoolean>;
71
70
  proxy: z.ZodOptional<z.ZodString>;
72
71
  verified: z.ZodOptional<z.ZodBoolean>;
72
+ is_active: z.ZodOptional<z.ZodBoolean>;
73
73
  assignedOrganizations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
74
- lastUsed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
74
+ last_used: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
75
75
  }, "strip", z.ZodTypeAny, {
76
76
  email?: string | undefined;
77
77
  status?: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned" | undefined;
78
78
  cookies?: any[] | null | undefined;
79
79
  password?: string | undefined;
80
- isActive?: boolean | undefined;
81
80
  proxy?: string | undefined;
82
81
  verified?: boolean | undefined;
82
+ is_active?: boolean | undefined;
83
83
  assignedOrganizations?: string[] | undefined;
84
- lastUsed?: number | null | undefined;
84
+ last_used?: number | null | undefined;
85
85
  }, {
86
86
  email?: string | undefined;
87
87
  status?: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned" | undefined;
88
88
  cookies?: any[] | null | undefined;
89
89
  password?: string | undefined;
90
- isActive?: boolean | undefined;
91
90
  proxy?: string | undefined;
92
91
  verified?: boolean | undefined;
92
+ is_active?: boolean | undefined;
93
93
  assignedOrganizations?: string[] | undefined;
94
- lastUsed?: number | null | undefined;
94
+ last_used?: number | null | undefined;
95
95
  }>;
@@ -16,9 +16,9 @@ exports.upworkBusinessManagerAccountSchema = zod_1.z.object({
16
16
  proxy: zod_1.z.string(),
17
17
  status: upwork_account_status_1.upworkAccountStatusSchema,
18
18
  verified: zod_1.z.boolean(),
19
- isActive: zod_1.z.boolean(),
19
+ is_active: zod_1.z.boolean(),
20
20
  assignedOrganizations: zod_1.z.array(zod_1.z.string()),
21
- lastUsed: zod_1.z.number().nullable(),
21
+ last_used: zod_1.z.number().nullable(),
22
22
  });
23
23
  exports.createUpworkBusinessManagerAccountSchema = exports.upworkBusinessManagerAccountSchema.pick({
24
24
  email: true,