lancer-shared 1.0.40 → 1.0.42

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.
@@ -3,4 +3,5 @@ export declare const COLLECTIONS: {
3
3
  readonly SETTINGS: "settings";
4
4
  readonly CAMPAIGNS: "campaigns";
5
5
  readonly LEADS: "leads";
6
+ readonly EVENTS: "events";
6
7
  };
@@ -7,4 +7,5 @@ exports.COLLECTIONS = {
7
7
  SETTINGS: "settings",
8
8
  CAMPAIGNS: "campaigns",
9
9
  LEADS: "leads",
10
+ EVENTS: "events",
10
11
  };
@@ -60,6 +60,9 @@ export declare const ROUTES: {
60
60
  readonly SCRAPING: {
61
61
  readonly BASE: "scraping";
62
62
  readonly START_SCRAPING: "scraping/start";
63
+ readonly START_WORLDWIDE_SCRAPING: "scraping/start-worldwide";
64
+ readonly START_US_SCRAPING: "scraping/start-us";
65
+ readonly START_UK_SCRAPING: "scraping/start-uk";
63
66
  };
64
67
  };
65
68
  export type RouteParams = {
@@ -63,6 +63,9 @@ exports.ROUTES = {
63
63
  SCRAPING: {
64
64
  BASE: "scraping",
65
65
  START_SCRAPING: "scraping/start",
66
+ START_WORLDWIDE_SCRAPING: "scraping/start-worldwide",
67
+ START_US_SCRAPING: "scraping/start-us",
68
+ START_UK_SCRAPING: "scraping/start-uk",
66
69
  },
67
70
  };
68
71
  // Helper function to build route with parameters
@@ -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;
@@ -342,7 +342,7 @@ export declare const upworkJobSchema: z.ZodObject<{
342
342
  } | null;
343
343
  processed: boolean | null;
344
344
  }>;
345
- export declare const leadSchema: z.ZodObject<z.objectUtil.extendShape<{
345
+ export declare const jobSchema: z.ZodObject<z.objectUtil.extendShape<{
346
346
  id: z.ZodNullable<z.ZodString>;
347
347
  createdAt: z.ZodNullable<z.ZodNumber>;
348
348
  title: z.ZodNullable<z.ZodString>;
@@ -418,9 +418,9 @@ export declare const leadSchema: 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 leadSchema: 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;
@@ -469,7 +469,6 @@ export declare const leadSchema: z.ZodObject<z.objectUtil.extendShape<{
469
469
  }>>;
470
470
  processed: z.ZodNullable<z.ZodBoolean>;
471
471
  }, {
472
- jobId: z.ZodString;
473
472
  updatedAt: z.ZodNullable<z.ZodNumber>;
474
473
  suitabilityRating: z.ZodNullable<z.ZodNumber>;
475
474
  suitabilityReason: z.ZodNullable<z.ZodString>;
@@ -531,7 +530,6 @@ export declare const leadSchema: z.ZodObject<z.objectUtil.extendShape<{
531
530
  description: string | null;
532
531
  status: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
533
532
  datetime: number | null;
534
- jobId: string;
535
533
  createdAt: number | null;
536
534
  updatedAt: number | null;
537
535
  questionAnswerPairs: {
@@ -552,9 +550,9 @@ export declare const leadSchema: z.ZodObject<z.objectUtil.extendShape<{
552
550
  clientInfo: {
553
551
  country: string | null;
554
552
  region: string | null;
553
+ rating: number | null;
555
554
  isPaymentVerified: boolean | null;
556
555
  numberOfReviews: number | null;
557
- rating: number | null;
558
556
  jobsPosted: number | null;
559
557
  totalSpent: number | null;
560
558
  numberOfHires: number | null;
@@ -606,7 +604,6 @@ export declare const leadSchema: z.ZodObject<z.objectUtil.extendShape<{
606
604
  description: string | null;
607
605
  status: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
608
606
  datetime: number | null;
609
- jobId: string;
610
607
  createdAt: number | null;
611
608
  updatedAt: number | null;
612
609
  questionAnswerPairs: {
@@ -627,9 +624,9 @@ export declare const leadSchema: z.ZodObject<z.objectUtil.extendShape<{
627
624
  clientInfo: {
628
625
  country: string | null;
629
626
  region: string | null;
627
+ rating: number | null;
630
628
  isPaymentVerified: boolean | null;
631
629
  numberOfReviews: number | null;
632
- rating: number | null;
633
630
  jobsPosted: number | null;
634
631
  totalSpent: number | null;
635
632
  numberOfHires: number | null;
@@ -679,7 +676,7 @@ export declare const jobListItemSchema: z.ZodObject<{
679
676
  jobUrl: string | null;
680
677
  }>;
681
678
  export declare const jobResponseSchema: z.ZodObject<{
682
- leads: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
679
+ jobs: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
683
680
  id: z.ZodNullable<z.ZodString>;
684
681
  createdAt: z.ZodNullable<z.ZodNumber>;
685
682
  title: z.ZodNullable<z.ZodString>;
@@ -755,9 +752,9 @@ export declare const jobResponseSchema: z.ZodObject<{
755
752
  }, "strip", z.ZodTypeAny, {
756
753
  country: string | null;
757
754
  region: string | null;
755
+ rating: number | null;
758
756
  isPaymentVerified: boolean | null;
759
757
  numberOfReviews: number | null;
760
- rating: number | null;
761
758
  jobsPosted: number | null;
762
759
  totalSpent: number | null;
763
760
  numberOfHires: number | null;
@@ -771,9 +768,9 @@ export declare const jobResponseSchema: z.ZodObject<{
771
768
  }, {
772
769
  country: string | null;
773
770
  region: string | null;
771
+ rating: number | null;
774
772
  isPaymentVerified: boolean | null;
775
773
  numberOfReviews: number | null;
776
- rating: number | null;
777
774
  jobsPosted: number | null;
778
775
  totalSpent: number | null;
779
776
  numberOfHires: number | null;
@@ -806,7 +803,6 @@ export declare const jobResponseSchema: z.ZodObject<{
806
803
  }>>;
807
804
  processed: z.ZodNullable<z.ZodBoolean>;
808
805
  }, {
809
- jobId: z.ZodString;
810
806
  updatedAt: z.ZodNullable<z.ZodNumber>;
811
807
  suitabilityRating: z.ZodNullable<z.ZodNumber>;
812
808
  suitabilityReason: z.ZodNullable<z.ZodString>;
@@ -868,7 +864,6 @@ export declare const jobResponseSchema: z.ZodObject<{
868
864
  description: string | null;
869
865
  status: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
870
866
  datetime: number | null;
871
- jobId: string;
872
867
  createdAt: number | null;
873
868
  updatedAt: number | null;
874
869
  questionAnswerPairs: {
@@ -889,9 +884,9 @@ export declare const jobResponseSchema: z.ZodObject<{
889
884
  clientInfo: {
890
885
  country: string | null;
891
886
  region: string | null;
887
+ rating: number | null;
892
888
  isPaymentVerified: boolean | null;
893
889
  numberOfReviews: number | null;
894
- rating: number | null;
895
890
  jobsPosted: number | null;
896
891
  totalSpent: number | null;
897
892
  numberOfHires: number | null;
@@ -943,7 +938,6 @@ export declare const jobResponseSchema: z.ZodObject<{
943
938
  description: string | null;
944
939
  status: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
945
940
  datetime: number | null;
946
- jobId: string;
947
941
  createdAt: number | null;
948
942
  updatedAt: number | null;
949
943
  questionAnswerPairs: {
@@ -964,9 +958,9 @@ export declare const jobResponseSchema: z.ZodObject<{
964
958
  clientInfo: {
965
959
  country: string | null;
966
960
  region: string | null;
961
+ rating: number | null;
967
962
  isPaymentVerified: boolean | null;
968
963
  numberOfReviews: number | null;
969
- rating: number | null;
970
964
  jobsPosted: number | null;
971
965
  totalSpent: number | null;
972
966
  numberOfHires: number | null;
@@ -1006,7 +1000,7 @@ export declare const jobResponseSchema: z.ZodObject<{
1006
1000
  hasMore: z.ZodBoolean;
1007
1001
  jobCounts: z.ZodNullable<z.ZodNumber>;
1008
1002
  }, "strip", z.ZodTypeAny, {
1009
- leads: {
1003
+ jobs: {
1010
1004
  id: string | null;
1011
1005
  title: string | null;
1012
1006
  metadata: {
@@ -1023,7 +1017,6 @@ export declare const jobResponseSchema: z.ZodObject<{
1023
1017
  description: string | null;
1024
1018
  status: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
1025
1019
  datetime: number | null;
1026
- jobId: string;
1027
1020
  createdAt: number | null;
1028
1021
  updatedAt: number | null;
1029
1022
  questionAnswerPairs: {
@@ -1044,9 +1037,9 @@ export declare const jobResponseSchema: z.ZodObject<{
1044
1037
  clientInfo: {
1045
1038
  country: string | null;
1046
1039
  region: string | null;
1040
+ rating: number | null;
1047
1041
  isPaymentVerified: boolean | null;
1048
1042
  numberOfReviews: number | null;
1049
- rating: number | null;
1050
1043
  jobsPosted: number | null;
1051
1044
  totalSpent: number | null;
1052
1045
  numberOfHires: number | null;
@@ -1086,7 +1079,7 @@ export declare const jobResponseSchema: z.ZodObject<{
1086
1079
  hasMore: boolean;
1087
1080
  jobCounts: number | null;
1088
1081
  }, {
1089
- leads: {
1082
+ jobs: {
1090
1083
  id: string | null;
1091
1084
  title: string | null;
1092
1085
  metadata: {
@@ -1103,7 +1096,6 @@ export declare const jobResponseSchema: z.ZodObject<{
1103
1096
  description: string | null;
1104
1097
  status: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
1105
1098
  datetime: number | null;
1106
- jobId: string;
1107
1099
  createdAt: number | null;
1108
1100
  updatedAt: number | null;
1109
1101
  questionAnswerPairs: {
@@ -1124,9 +1116,9 @@ export declare const jobResponseSchema: z.ZodObject<{
1124
1116
  clientInfo: {
1125
1117
  country: string | null;
1126
1118
  region: string | null;
1119
+ rating: number | null;
1127
1120
  isPaymentVerified: boolean | null;
1128
1121
  numberOfReviews: number | null;
1129
- rating: number | null;
1130
1122
  jobsPosted: number | null;
1131
1123
  totalSpent: number | null;
1132
1124
  numberOfHires: number | null;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.jobResponseSchema = exports.jobListItemSchema = exports.leadSchema = exports.upworkJobSchema = exports.metadataSchema = exports.clientInfoSchema = exports.vendorQualificationSchema = exports.jobSkillsSchema = void 0;
3
+ exports.jobResponseSchema = exports.jobListItemSchema = exports.jobSchema = exports.upworkJobSchema = exports.metadataSchema = exports.clientInfoSchema = exports.vendorQualificationSchema = exports.jobSkillsSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const job_note_1 = require("./job-note");
6
6
  const job_status_1 = require("./job-status");
@@ -64,8 +64,7 @@ exports.upworkJobSchema = zod_1.z.object({
64
64
  vendorQualifications: exports.vendorQualificationSchema.nullable(),
65
65
  processed: (0, zod_1.boolean)().nullable(),
66
66
  });
67
- exports.leadSchema = exports.upworkJobSchema.extend({
68
- jobId: zod_1.z.string(),
67
+ exports.jobSchema = exports.upworkJobSchema.extend({
69
68
  updatedAt: zod_1.z.number().nullable(),
70
69
  suitabilityRating: zod_1.z.number().nullable(),
71
70
  suitabilityReason: zod_1.z.string().nullable(),
@@ -84,7 +83,7 @@ exports.jobListItemSchema = zod_1.z.object({
84
83
  datetime: zod_1.z.string().nullable(),
85
84
  });
86
85
  exports.jobResponseSchema = zod_1.z.object({
87
- leads: zod_1.z.array(exports.leadSchema),
86
+ jobs: zod_1.z.array(exports.jobSchema),
88
87
  nextCursor: zod_1.z.string().nullable(),
89
88
  hasMore: zod_1.z.boolean(),
90
89
  jobCounts: zod_1.z.number().nullable(),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "commonjs",
3
3
  "name": "lancer-shared",
4
- "version": "1.0.40",
4
+ "version": "1.0.42",
5
5
  "description": "This package contains shared stuff.",
6
6
  "types": "./dist/index.d.ts",
7
7
  "main": "./dist/index.js",