lancer-shared 1.0.4 → 1.0.6
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.
|
@@ -51,8 +51,7 @@ export declare const ROUTES: {
|
|
|
51
51
|
};
|
|
52
52
|
readonly SCRAPING: {
|
|
53
53
|
readonly BASE: "scraping";
|
|
54
|
-
readonly
|
|
55
|
-
readonly START_SCRAPING: "scraping/start-scraping";
|
|
54
|
+
readonly START_SCRAPING: "scraping/start";
|
|
56
55
|
};
|
|
57
56
|
};
|
|
58
57
|
export type RouteParams = {
|
package/dist/constants/routes.js
CHANGED
|
@@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.buildRoute = exports.ROUTES = void 0;
|
|
4
4
|
exports.ROUTES = {
|
|
5
5
|
AUTH: {
|
|
6
|
-
BASE:
|
|
7
|
-
REGISTER:
|
|
6
|
+
BASE: 'auth',
|
|
7
|
+
REGISTER: 'auth/register',
|
|
8
8
|
},
|
|
9
9
|
CAMPAIGNS: {
|
|
10
|
-
BASE:
|
|
10
|
+
BASE: 'campaigns',
|
|
11
11
|
BY_ID: (id) => `campaigns/${id}`,
|
|
12
12
|
JOBS: {
|
|
13
13
|
BASE: (campaignId) => `campaigns/${campaignId}/jobs`,
|
|
@@ -34,28 +34,27 @@ exports.ROUTES = {
|
|
|
34
34
|
},
|
|
35
35
|
},
|
|
36
36
|
JOBS: {
|
|
37
|
-
BASE:
|
|
38
|
-
IMPORT:
|
|
39
|
-
FILTER_OPTIONS:
|
|
40
|
-
TOTAL_JOBS:
|
|
37
|
+
BASE: 'jobs',
|
|
38
|
+
IMPORT: 'jobs/import',
|
|
39
|
+
FILTER_OPTIONS: 'jobs/filter-options',
|
|
40
|
+
TOTAL_JOBS: 'jobs/total-jobs',
|
|
41
41
|
GET_JOB_TITLE: (jobId) => `jobs/get-job-title/${jobId}`,
|
|
42
|
-
SEARCH:
|
|
42
|
+
SEARCH: 'jobs/search',
|
|
43
43
|
},
|
|
44
44
|
USERS: {
|
|
45
|
-
BASE:
|
|
45
|
+
BASE: 'users',
|
|
46
46
|
BY_ID: (id) => `users/${id}`,
|
|
47
47
|
},
|
|
48
48
|
AI_CONFIG: {
|
|
49
|
-
BASE:
|
|
49
|
+
BASE: 'ai-config',
|
|
50
50
|
},
|
|
51
51
|
COOKIES: {
|
|
52
|
-
BASE:
|
|
53
|
-
SCRAPE:
|
|
52
|
+
BASE: 'cookies',
|
|
53
|
+
SCRAPE: 'cookies/scrape-cookies',
|
|
54
54
|
},
|
|
55
55
|
SCRAPING: {
|
|
56
|
-
BASE:
|
|
57
|
-
|
|
58
|
-
START_SCRAPING: "scraping/start-scraping",
|
|
56
|
+
BASE: 'scraping',
|
|
57
|
+
START_SCRAPING: 'scraping/start',
|
|
59
58
|
},
|
|
60
59
|
};
|
|
61
60
|
// 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;
|
|
48
47
|
isPaymentVerified: boolean | null;
|
|
49
48
|
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;
|
|
64
63
|
isPaymentVerified: boolean | null;
|
|
65
64
|
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;
|
|
191
190
|
isPaymentVerified: boolean | null;
|
|
192
191
|
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;
|
|
207
206
|
isPaymentVerified: boolean | null;
|
|
208
207
|
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;
|
|
271
270
|
isPaymentVerified: boolean | null;
|
|
272
271
|
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;
|
|
323
322
|
isPaymentVerified: boolean | null;
|
|
324
323
|
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;
|
|
422
421
|
isPaymentVerified: boolean | null;
|
|
423
422
|
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;
|
|
438
437
|
isPaymentVerified: boolean | null;
|
|
439
438
|
numberOfReviews: number | null;
|
|
439
|
+
rating: number | null;
|
|
440
440
|
jobsPosted: number | null;
|
|
441
441
|
totalSpent: number | null;
|
|
442
442
|
numberOfHires: number | null;
|
|
@@ -469,6 +469,7 @@ export declare const jobSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
469
469
|
}>>;
|
|
470
470
|
processed: z.ZodNullable<z.ZodBoolean>;
|
|
471
471
|
}, {
|
|
472
|
+
jobId: z.ZodString;
|
|
472
473
|
updatedAt: z.ZodNullable<z.ZodNumber>;
|
|
473
474
|
suitabilityRating: z.ZodNullable<z.ZodNumber>;
|
|
474
475
|
suitabilityReason: z.ZodNullable<z.ZodString>;
|
|
@@ -530,6 +531,7 @@ export declare const jobSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
530
531
|
description: string | null;
|
|
531
532
|
status: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
532
533
|
datetime: number | null;
|
|
534
|
+
jobId: string;
|
|
533
535
|
createdAt: number | null;
|
|
534
536
|
updatedAt: number | null;
|
|
535
537
|
questionAnswerPairs: {
|
|
@@ -550,9 +552,9 @@ export declare const jobSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
550
552
|
clientInfo: {
|
|
551
553
|
country: string | null;
|
|
552
554
|
region: string | null;
|
|
553
|
-
rating: number | null;
|
|
554
555
|
isPaymentVerified: boolean | null;
|
|
555
556
|
numberOfReviews: number | null;
|
|
557
|
+
rating: number | null;
|
|
556
558
|
jobsPosted: number | null;
|
|
557
559
|
totalSpent: number | null;
|
|
558
560
|
numberOfHires: number | null;
|
|
@@ -604,6 +606,7 @@ export declare const jobSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
604
606
|
description: string | null;
|
|
605
607
|
status: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
606
608
|
datetime: number | null;
|
|
609
|
+
jobId: string;
|
|
607
610
|
createdAt: number | null;
|
|
608
611
|
updatedAt: number | null;
|
|
609
612
|
questionAnswerPairs: {
|
|
@@ -624,9 +627,9 @@ export declare const jobSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
624
627
|
clientInfo: {
|
|
625
628
|
country: string | null;
|
|
626
629
|
region: string | null;
|
|
627
|
-
rating: number | null;
|
|
628
630
|
isPaymentVerified: boolean | null;
|
|
629
631
|
numberOfReviews: number | null;
|
|
632
|
+
rating: number | null;
|
|
630
633
|
jobsPosted: number | null;
|
|
631
634
|
totalSpent: number | null;
|
|
632
635
|
numberOfHires: number | null;
|
|
@@ -752,9 +755,9 @@ export declare const jobResponseSchema: z.ZodObject<{
|
|
|
752
755
|
}, "strip", z.ZodTypeAny, {
|
|
753
756
|
country: string | null;
|
|
754
757
|
region: string | null;
|
|
755
|
-
rating: number | null;
|
|
756
758
|
isPaymentVerified: boolean | null;
|
|
757
759
|
numberOfReviews: number | null;
|
|
760
|
+
rating: number | null;
|
|
758
761
|
jobsPosted: number | null;
|
|
759
762
|
totalSpent: number | null;
|
|
760
763
|
numberOfHires: number | null;
|
|
@@ -768,9 +771,9 @@ export declare const jobResponseSchema: z.ZodObject<{
|
|
|
768
771
|
}, {
|
|
769
772
|
country: string | null;
|
|
770
773
|
region: string | null;
|
|
771
|
-
rating: number | null;
|
|
772
774
|
isPaymentVerified: boolean | null;
|
|
773
775
|
numberOfReviews: number | null;
|
|
776
|
+
rating: number | null;
|
|
774
777
|
jobsPosted: number | null;
|
|
775
778
|
totalSpent: number | null;
|
|
776
779
|
numberOfHires: number | null;
|
|
@@ -803,6 +806,7 @@ export declare const jobResponseSchema: z.ZodObject<{
|
|
|
803
806
|
}>>;
|
|
804
807
|
processed: z.ZodNullable<z.ZodBoolean>;
|
|
805
808
|
}, {
|
|
809
|
+
jobId: z.ZodString;
|
|
806
810
|
updatedAt: z.ZodNullable<z.ZodNumber>;
|
|
807
811
|
suitabilityRating: z.ZodNullable<z.ZodNumber>;
|
|
808
812
|
suitabilityReason: z.ZodNullable<z.ZodString>;
|
|
@@ -864,6 +868,7 @@ export declare const jobResponseSchema: z.ZodObject<{
|
|
|
864
868
|
description: string | null;
|
|
865
869
|
status: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
866
870
|
datetime: number | null;
|
|
871
|
+
jobId: string;
|
|
867
872
|
createdAt: number | null;
|
|
868
873
|
updatedAt: number | null;
|
|
869
874
|
questionAnswerPairs: {
|
|
@@ -884,9 +889,9 @@ export declare const jobResponseSchema: z.ZodObject<{
|
|
|
884
889
|
clientInfo: {
|
|
885
890
|
country: string | null;
|
|
886
891
|
region: string | null;
|
|
887
|
-
rating: number | null;
|
|
888
892
|
isPaymentVerified: boolean | null;
|
|
889
893
|
numberOfReviews: number | null;
|
|
894
|
+
rating: number | null;
|
|
890
895
|
jobsPosted: number | null;
|
|
891
896
|
totalSpent: number | null;
|
|
892
897
|
numberOfHires: number | null;
|
|
@@ -938,6 +943,7 @@ export declare const jobResponseSchema: z.ZodObject<{
|
|
|
938
943
|
description: string | null;
|
|
939
944
|
status: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
940
945
|
datetime: number | null;
|
|
946
|
+
jobId: string;
|
|
941
947
|
createdAt: number | null;
|
|
942
948
|
updatedAt: number | null;
|
|
943
949
|
questionAnswerPairs: {
|
|
@@ -958,9 +964,9 @@ export declare const jobResponseSchema: z.ZodObject<{
|
|
|
958
964
|
clientInfo: {
|
|
959
965
|
country: string | null;
|
|
960
966
|
region: string | null;
|
|
961
|
-
rating: number | null;
|
|
962
967
|
isPaymentVerified: boolean | null;
|
|
963
968
|
numberOfReviews: number | null;
|
|
969
|
+
rating: number | null;
|
|
964
970
|
jobsPosted: number | null;
|
|
965
971
|
totalSpent: number | null;
|
|
966
972
|
numberOfHires: number | null;
|
|
@@ -1017,6 +1023,7 @@ export declare const jobResponseSchema: z.ZodObject<{
|
|
|
1017
1023
|
description: string | null;
|
|
1018
1024
|
status: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
1019
1025
|
datetime: number | null;
|
|
1026
|
+
jobId: string;
|
|
1020
1027
|
createdAt: number | null;
|
|
1021
1028
|
updatedAt: number | null;
|
|
1022
1029
|
questionAnswerPairs: {
|
|
@@ -1037,9 +1044,9 @@ export declare const jobResponseSchema: z.ZodObject<{
|
|
|
1037
1044
|
clientInfo: {
|
|
1038
1045
|
country: string | null;
|
|
1039
1046
|
region: string | null;
|
|
1040
|
-
rating: number | null;
|
|
1041
1047
|
isPaymentVerified: boolean | null;
|
|
1042
1048
|
numberOfReviews: number | null;
|
|
1049
|
+
rating: number | null;
|
|
1043
1050
|
jobsPosted: number | null;
|
|
1044
1051
|
totalSpent: number | null;
|
|
1045
1052
|
numberOfHires: number | null;
|
|
@@ -1096,6 +1103,7 @@ export declare const jobResponseSchema: z.ZodObject<{
|
|
|
1096
1103
|
description: string | null;
|
|
1097
1104
|
status: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalPending" | "proposalProcessing" | "proposalComplete" | "biddingPending" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
|
|
1098
1105
|
datetime: number | null;
|
|
1106
|
+
jobId: string;
|
|
1099
1107
|
createdAt: number | null;
|
|
1100
1108
|
updatedAt: number | null;
|
|
1101
1109
|
questionAnswerPairs: {
|
|
@@ -1116,9 +1124,9 @@ export declare const jobResponseSchema: z.ZodObject<{
|
|
|
1116
1124
|
clientInfo: {
|
|
1117
1125
|
country: string | null;
|
|
1118
1126
|
region: string | null;
|
|
1119
|
-
rating: number | null;
|
|
1120
1127
|
isPaymentVerified: boolean | null;
|
|
1121
1128
|
numberOfReviews: number | null;
|
|
1129
|
+
rating: number | null;
|
|
1122
1130
|
jobsPosted: number | null;
|
|
1123
1131
|
totalSpent: number | null;
|
|
1124
1132
|
numberOfHires: number | null;
|
package/dist/schemas/job/job.js
CHANGED
|
@@ -65,6 +65,7 @@ exports.upworkJobSchema = zod_1.z.object({
|
|
|
65
65
|
processed: (0, zod_1.boolean)().nullable(),
|
|
66
66
|
});
|
|
67
67
|
exports.jobSchema = exports.upworkJobSchema.extend({
|
|
68
|
+
jobId: zod_1.z.string(),
|
|
68
69
|
updatedAt: zod_1.z.number().nullable(),
|
|
69
70
|
suitabilityRating: zod_1.z.number().nullable(),
|
|
70
71
|
suitabilityReason: zod_1.z.string().nullable(),
|
|
@@ -76,9 +76,9 @@ export declare const scrapeResultSchema: z.ZodObject<{
|
|
|
76
76
|
}, "strip", z.ZodTypeAny, {
|
|
77
77
|
country: string | null;
|
|
78
78
|
region: string | null;
|
|
79
|
-
rating: number | null;
|
|
80
79
|
isPaymentVerified: boolean | null;
|
|
81
80
|
numberOfReviews: number | null;
|
|
81
|
+
rating: number | null;
|
|
82
82
|
jobsPosted: number | null;
|
|
83
83
|
totalSpent: number | null;
|
|
84
84
|
numberOfHires: number | null;
|
|
@@ -92,9 +92,9 @@ export declare const scrapeResultSchema: z.ZodObject<{
|
|
|
92
92
|
}, {
|
|
93
93
|
country: string | null;
|
|
94
94
|
region: string | null;
|
|
95
|
-
rating: number | null;
|
|
96
95
|
isPaymentVerified: boolean | null;
|
|
97
96
|
numberOfReviews: number | null;
|
|
97
|
+
rating: number | null;
|
|
98
98
|
jobsPosted: number | null;
|
|
99
99
|
totalSpent: number | null;
|
|
100
100
|
numberOfHires: number | null;
|
|
@@ -156,9 +156,9 @@ export declare const scrapeResultSchema: z.ZodObject<{
|
|
|
156
156
|
clientInfo: {
|
|
157
157
|
country: string | null;
|
|
158
158
|
region: string | null;
|
|
159
|
-
rating: number | null;
|
|
160
159
|
isPaymentVerified: boolean | null;
|
|
161
160
|
numberOfReviews: number | null;
|
|
161
|
+
rating: number | null;
|
|
162
162
|
jobsPosted: number | null;
|
|
163
163
|
totalSpent: number | null;
|
|
164
164
|
numberOfHires: number | null;
|
|
@@ -208,9 +208,9 @@ export declare const scrapeResultSchema: z.ZodObject<{
|
|
|
208
208
|
clientInfo: {
|
|
209
209
|
country: string | null;
|
|
210
210
|
region: string | null;
|
|
211
|
-
rating: number | null;
|
|
212
211
|
isPaymentVerified: boolean | null;
|
|
213
212
|
numberOfReviews: number | null;
|
|
213
|
+
rating: number | null;
|
|
214
214
|
jobsPosted: number | null;
|
|
215
215
|
totalSpent: number | null;
|
|
216
216
|
numberOfHires: number | null;
|
|
@@ -263,9 +263,9 @@ export declare const scrapeResultSchema: z.ZodObject<{
|
|
|
263
263
|
clientInfo: {
|
|
264
264
|
country: string | null;
|
|
265
265
|
region: string | null;
|
|
266
|
-
rating: number | null;
|
|
267
266
|
isPaymentVerified: boolean | null;
|
|
268
267
|
numberOfReviews: number | null;
|
|
268
|
+
rating: number | null;
|
|
269
269
|
jobsPosted: number | null;
|
|
270
270
|
totalSpent: number | null;
|
|
271
271
|
numberOfHires: number | null;
|
|
@@ -318,9 +318,9 @@ export declare const scrapeResultSchema: z.ZodObject<{
|
|
|
318
318
|
clientInfo: {
|
|
319
319
|
country: string | null;
|
|
320
320
|
region: string | null;
|
|
321
|
-
rating: number | null;
|
|
322
321
|
isPaymentVerified: boolean | null;
|
|
323
322
|
numberOfReviews: number | null;
|
|
323
|
+
rating: number | null;
|
|
324
324
|
jobsPosted: number | null;
|
|
325
325
|
totalSpent: number | null;
|
|
326
326
|
numberOfHires: number | null;
|