lancer-shared 1.0.79 → 1.0.81

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 (51) hide show
  1. package/dist/constants/index.d.ts +9 -8
  2. package/dist/constants/index.js +2 -1
  3. package/dist/schemas/campaign/campaign.d.ts +10 -1
  4. package/dist/schemas/campaign/campaign.js +6 -0
  5. package/dist/schemas/job/job.d.ts +16 -16
  6. package/dist/schemas/job/pipeline-job.d.ts +3 -9
  7. package/dist/schemas/job/pipeline-job.js +0 -1
  8. package/dist/schemas/upwork-account/index.d.ts +1 -1
  9. package/dist/schemas/upwork-account/index.js +1 -1
  10. package/dist/schemas/upwork-account/upwork-business-manager-account.d.ts +14 -14
  11. package/dist/schemas/upwork-account/upwork-business-manager-account.js +2 -2
  12. package/dist/schemas/upwork-account/upwork-scraping-account.d.ts +23 -23
  13. package/dist/schemas/upwork-account/upwork-scraping-account.js +3 -4
  14. package/dist/types/upwork-account/upwork-scraping-account.d.ts +2 -2
  15. package/package.json +1 -1
  16. package/dist/constants/upwork-filters.d.ts +0 -5
  17. package/dist/constants/upwork-filters.js +0 -75
  18. package/dist/schemas/ai-config/ai-config.d.ts +0 -39
  19. package/dist/schemas/ai-config/ai-config.js +0 -12
  20. package/dist/schemas/ai-config/index.d.ts +0 -1
  21. package/dist/schemas/ai-config/index.js +0 -17
  22. package/dist/schemas/bidding/proposal-dto.d.ts +0 -26
  23. package/dist/schemas/bidding/proposal-dto.js +0 -18
  24. package/dist/schemas/job/job-pipeline.d.ts +0 -74
  25. package/dist/schemas/job/job-pipeline.js +0 -29
  26. package/dist/schemas/job/job-suitability.d.ts +0 -12
  27. package/dist/schemas/job/job-suitability.js +0 -13
  28. package/dist/schemas/knowledge-object/index.d.ts +0 -1
  29. package/dist/schemas/knowledge-object/index.js +0 -17
  30. package/dist/schemas/knowledge-object/knowledge-object.d.ts +0 -128
  31. package/dist/schemas/knowledge-object/knowledge-object.js +0 -47
  32. package/dist/schemas/scraper/scrape-response.d.ts +0 -345
  33. package/dist/schemas/scraper/scrape-response.js +0 -9
  34. package/dist/schemas/upwork-account/upwork-scraper-account.d.ts +0 -92
  35. package/dist/schemas/upwork-account/upwork-scraper-account.js +0 -31
  36. package/dist/types/ai-config/ai-config.d.ts +0 -6
  37. package/dist/types/ai-config/ai-config.js +0 -2
  38. package/dist/types/ai-config/index.d.ts +0 -1
  39. package/dist/types/ai-config/index.js +0 -17
  40. package/dist/types/bidding/proposal-dto.d.ts +0 -3
  41. package/dist/types/bidding/proposal-dto.js +0 -2
  42. package/dist/types/job/job-pipeline.d.ts +0 -4
  43. package/dist/types/job/job-pipeline.js +0 -2
  44. package/dist/types/job/job-suitability.d.ts +0 -3
  45. package/dist/types/job/job-suitability.js +0 -2
  46. package/dist/types/knowledge-object/index.d.ts +0 -1
  47. package/dist/types/knowledge-object/index.js +0 -17
  48. package/dist/types/knowledge-object/knowledge-object.d.ts +0 -4
  49. package/dist/types/knowledge-object/knowledge-object.js +0 -2
  50. package/dist/types/scraper/scrape-response.d.ts +0 -4
  51. package/dist/types/scraper/scrape-response.js +0 -2
@@ -7,11 +7,12 @@ export declare const paths: {
7
7
  details: (id: string) => string;
8
8
  };
9
9
  };
10
- export * from "./job-filter-options";
11
- export { default as countryMapping } from "./mappings/countryMapping";
12
- export { default as regionMapping } from "./mappings/regionMapping";
13
- export * from "./job-filter-options";
14
- export * from "./common-questions";
15
- export * from "./job-status";
16
- export * from "./routes";
17
- export * from "./collections";
10
+ export * from './job-filter-options';
11
+ export { default as countryMapping } from './mappings/countryMapping';
12
+ export { default as regionMapping } from './mappings/regionMapping';
13
+ export * from './job-filter-options';
14
+ export * from './common-questions';
15
+ export * from './job-status';
16
+ export * from './routes';
17
+ export * from './collections';
18
+ export * from './account-status';
@@ -23,7 +23,7 @@ exports.paths = {
23
23
  register: `auth/register`,
24
24
  },
25
25
  users: {
26
- root: "users",
26
+ root: 'users',
27
27
  details: (id) => `users/${id}`,
28
28
  },
29
29
  };
@@ -37,3 +37,4 @@ __exportStar(require("./common-questions"), exports);
37
37
  __exportStar(require("./job-status"), exports);
38
38
  __exportStar(require("./routes"), exports);
39
39
  __exportStar(require("./collections"), exports);
40
+ __exportStar(require("./account-status"), exports);
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import { z } from "zod";
2
2
  export declare const campaignSchema: z.ZodObject<{
3
3
  id: z.ZodString;
4
4
  name: z.ZodString;
@@ -254,9 +254,11 @@ export declare const campaignSchema: z.ZodObject<{
254
254
  slack: string | null;
255
255
  };
256
256
  }>;
257
+ status: z.ZodUnion<[z.ZodLiteral<"active">, z.ZodLiteral<"draft">, z.ZodLiteral<"paused">, z.ZodLiteral<"error">]>;
257
258
  }, "strip", z.ZodTypeAny, {
258
259
  id: string;
259
260
  name: string;
261
+ status: "error" | "active" | "paused" | "draft";
260
262
  createdAt: number;
261
263
  updatedAt: number;
262
264
  leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "negotiations" | "won" | "lost", number>> | null;
@@ -330,6 +332,7 @@ export declare const campaignSchema: z.ZodObject<{
330
332
  }, {
331
333
  id: string;
332
334
  name: string;
335
+ status: "error" | "active" | "paused" | "draft";
333
336
  createdAt: number;
334
337
  updatedAt: number;
335
338
  leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "negotiations" | "won" | "lost", number>> | null;
@@ -656,8 +659,10 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
656
659
  slack: string | null;
657
660
  };
658
661
  }>;
662
+ status: z.ZodUnion<[z.ZodLiteral<"active">, z.ZodLiteral<"draft">, z.ZodLiteral<"paused">, z.ZodLiteral<"error">]>;
659
663
  }, "id" | "createdAt" | "updatedAt">, "strip", z.ZodTypeAny, {
660
664
  name: string;
665
+ status: "error" | "active" | "paused" | "draft";
661
666
  leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "negotiations" | "won" | "lost", number>> | null;
662
667
  filters: {
663
668
  projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
@@ -728,6 +733,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
728
733
  };
729
734
  }, {
730
735
  name: string;
736
+ status: "error" | "active" | "paused" | "draft";
731
737
  leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "negotiations" | "won" | "lost", number>> | null;
732
738
  filters: {
733
739
  projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
@@ -1052,9 +1058,11 @@ export declare const updateCampaignSchema: z.ZodObject<Omit<{
1052
1058
  slack: string | null;
1053
1059
  };
1054
1060
  }>;
1061
+ status: z.ZodUnion<[z.ZodLiteral<"active">, z.ZodLiteral<"draft">, z.ZodLiteral<"paused">, z.ZodLiteral<"error">]>;
1055
1062
  }, "createdAt" | "updatedAt">, "strip", z.ZodTypeAny, {
1056
1063
  id: string;
1057
1064
  name: string;
1065
+ status: "error" | "active" | "paused" | "draft";
1058
1066
  leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "negotiations" | "won" | "lost", number>> | null;
1059
1067
  filters: {
1060
1068
  projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
@@ -1126,6 +1134,7 @@ export declare const updateCampaignSchema: z.ZodObject<Omit<{
1126
1134
  }, {
1127
1135
  id: string;
1128
1136
  name: string;
1137
+ status: "error" | "active" | "paused" | "draft";
1129
1138
  leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "negotiations" | "won" | "lost", number>> | null;
1130
1139
  filters: {
1131
1140
  projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
@@ -24,6 +24,12 @@ exports.campaignSchema = zod_1.z.object({
24
24
  leadCounts: zod_1.z.record(lead_1.leadStatusSchema, zod_1.z.number()).nullable(),
25
25
  expenses: campaign_expenses_1.campaignExpensesSchema,
26
26
  integrations: campaign_integrations_1.campaignIntegrationsSchema,
27
+ status: zod_1.z.union([
28
+ zod_1.z.literal("active"),
29
+ zod_1.z.literal("draft"),
30
+ zod_1.z.literal("paused"),
31
+ zod_1.z.literal("error"),
32
+ ]),
27
33
  });
28
34
  exports.createCampaignSchema = exports.campaignSchema.omit({
29
35
  id: true,
@@ -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,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,
@@ -5,32 +5,32 @@ export declare const upworkScrapingAccountSchema: z.ZodObject<{
5
5
  password: z.ZodString;
6
6
  cookies: z.ZodRecord<z.ZodString, z.ZodString>;
7
7
  proxy_credentials: z.ZodString;
8
- region: z.ZodEnum<["all", "Worldwide", "UKOnly", "USOnly"]>;
9
- isActive: z.ZodBoolean;
10
- lastUsed: z.ZodNumber;
8
+ region: z.ZodString;
9
+ is_active: z.ZodBoolean;
10
+ last_used: z.ZodNumber;
11
11
  status: z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>;
12
12
  verified: z.ZodBoolean;
13
13
  }, "strip", z.ZodTypeAny, {
14
14
  id: string;
15
15
  email: string;
16
16
  status: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned";
17
- region: "all" | "USOnly" | "UKOnly" | "Worldwide";
17
+ region: string;
18
18
  cookies: Record<string, string>;
19
19
  password: string;
20
- isActive: boolean;
21
20
  verified: boolean;
22
- lastUsed: number;
21
+ is_active: boolean;
22
+ last_used: number;
23
23
  proxy_credentials: string;
24
24
  }, {
25
25
  id: string;
26
26
  email: string;
27
27
  status: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned";
28
- region: "all" | "USOnly" | "UKOnly" | "Worldwide";
28
+ region: string;
29
29
  cookies: Record<string, string>;
30
30
  password: string;
31
- isActive: boolean;
32
31
  verified: boolean;
33
- lastUsed: number;
32
+ is_active: boolean;
33
+ last_used: number;
34
34
  proxy_credentials: string;
35
35
  }>;
36
36
  export declare const createUpworkScraperAccountSchema: z.ZodObject<Pick<{
@@ -39,20 +39,20 @@ export declare const createUpworkScraperAccountSchema: z.ZodObject<Pick<{
39
39
  password: z.ZodString;
40
40
  cookies: z.ZodRecord<z.ZodString, z.ZodString>;
41
41
  proxy_credentials: z.ZodString;
42
- region: z.ZodEnum<["all", "Worldwide", "UKOnly", "USOnly"]>;
43
- isActive: z.ZodBoolean;
44
- lastUsed: z.ZodNumber;
42
+ region: z.ZodString;
43
+ is_active: z.ZodBoolean;
44
+ last_used: z.ZodNumber;
45
45
  status: z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>;
46
46
  verified: z.ZodBoolean;
47
47
  }, "email" | "region" | "password" | "verified" | "proxy_credentials">, "strip", z.ZodTypeAny, {
48
48
  email: string;
49
- region: "all" | "USOnly" | "UKOnly" | "Worldwide";
49
+ region: string;
50
50
  password: string;
51
51
  verified: boolean;
52
52
  proxy_credentials: string;
53
53
  }, {
54
54
  email: string;
55
- region: "all" | "USOnly" | "UKOnly" | "Worldwide";
55
+ region: string;
56
56
  password: string;
57
57
  verified: boolean;
58
58
  proxy_credentials: string;
@@ -60,31 +60,31 @@ export declare const createUpworkScraperAccountSchema: z.ZodObject<Pick<{
60
60
  export declare const updateUpworkScraperAccountSchema: z.ZodObject<{
61
61
  email: z.ZodOptional<z.ZodString>;
62
62
  status: z.ZodOptional<z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>>;
63
- region: z.ZodOptional<z.ZodEnum<["all", "Worldwide", "UKOnly", "USOnly"]>>;
63
+ region: z.ZodOptional<z.ZodString>;
64
64
  cookies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
65
65
  password: z.ZodOptional<z.ZodString>;
66
- isActive: z.ZodOptional<z.ZodBoolean>;
67
66
  verified: z.ZodOptional<z.ZodBoolean>;
68
- lastUsed: z.ZodOptional<z.ZodNumber>;
67
+ is_active: z.ZodOptional<z.ZodBoolean>;
68
+ last_used: z.ZodOptional<z.ZodNumber>;
69
69
  proxy_credentials: z.ZodOptional<z.ZodString>;
70
70
  }, "strip", z.ZodTypeAny, {
71
71
  email?: string | undefined;
72
72
  status?: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned" | undefined;
73
- region?: "all" | "USOnly" | "UKOnly" | "Worldwide" | undefined;
73
+ region?: string | undefined;
74
74
  cookies?: Record<string, string> | undefined;
75
75
  password?: string | undefined;
76
- isActive?: boolean | undefined;
77
76
  verified?: boolean | undefined;
78
- lastUsed?: number | undefined;
77
+ is_active?: boolean | undefined;
78
+ last_used?: number | undefined;
79
79
  proxy_credentials?: string | undefined;
80
80
  }, {
81
81
  email?: string | undefined;
82
82
  status?: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned" | undefined;
83
- region?: "all" | "USOnly" | "UKOnly" | "Worldwide" | undefined;
83
+ region?: string | undefined;
84
84
  cookies?: Record<string, string> | undefined;
85
85
  password?: string | undefined;
86
- isActive?: boolean | undefined;
87
86
  verified?: boolean | undefined;
88
- lastUsed?: number | undefined;
87
+ is_active?: boolean | undefined;
88
+ last_used?: number | undefined;
89
89
  proxy_credentials?: string | undefined;
90
90
  }>;
@@ -3,16 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.updateUpworkScraperAccountSchema = exports.createUpworkScraperAccountSchema = exports.upworkScrapingAccountSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const upwork_account_status_1 = require("./upwork-account-status");
6
- const job_filters_1 = require("../job-filters");
7
6
  exports.upworkScrapingAccountSchema = zod_1.z.object({
8
7
  id: zod_1.z.string(),
9
8
  email: zod_1.z.string().email(),
10
9
  password: zod_1.z.string(),
11
10
  cookies: zod_1.z.record(zod_1.z.string(), zod_1.z.string()),
12
11
  proxy_credentials: zod_1.z.string(),
13
- region: job_filters_1.regionEnum,
14
- isActive: zod_1.z.boolean(),
15
- lastUsed: zod_1.z.number(),
12
+ region: zod_1.z.string(),
13
+ is_active: zod_1.z.boolean(),
14
+ last_used: zod_1.z.number(),
16
15
  status: upwork_account_status_1.upworkAccountStatusSchema,
17
16
  verified: zod_1.z.boolean(),
18
17
  });
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { createUpworkScraperAccountSchema, updateUpworkScraperAccountSchema, upworkScraperAccountSchema } from '../../schemas';
3
- export type UpworkScraperAccount = z.infer<typeof upworkScraperAccountSchema>;
2
+ import { createUpworkScraperAccountSchema, updateUpworkScraperAccountSchema, upworkScrapingAccountSchema } from '../../schemas';
3
+ export type UpworkScrapingAccount = z.infer<typeof upworkScrapingAccountSchema>;
4
4
  export type CreateUpworkScraperAccount = z.infer<typeof createUpworkScraperAccountSchema>;
5
5
  export type UpdateUpworkScraperAccount = z.infer<typeof updateUpworkScraperAccountSchema>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "commonjs",
3
3
  "name": "lancer-shared",
4
- "version": "1.0.79",
4
+ "version": "1.0.81",
5
5
  "description": "This package contains shared stuff.",
6
6
  "types": "./dist/index.d.ts",
7
7
  "main": "./dist/index.js",
@@ -1,5 +0,0 @@
1
- import { KnowledgeObject } from '../types/knowledge-object';
2
- export declare const CATEGORIES: string[];
3
- export declare const EXPERIENCE_LEVELS: string[];
4
- export declare const CLIENT_HISTORY: string[];
5
- export declare const emptyKnowledgeObject: KnowledgeObject;