lancer-shared 1.0.146 → 1.0.148
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.
- package/dist/constants/routes.d.ts +3 -2
- package/dist/constants/routes.js +29 -28
- package/dist/schemas/campaign/campaign-analytics.d.ts +2 -2
- package/dist/schemas/lead/lead.d.ts +24 -24
- package/dist/schemas/scraper/scrape-result.d.ts +131 -10
- package/dist/schemas/scraper/scrape-result.js +7 -1
- package/dist/schemas/user/index.d.ts +2 -2
- package/dist/types/scraper/scrape-result.d.ts +3 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LeadStatus, TimeFilter } from
|
|
1
|
+
import { LeadStatus, TimeFilter } from "../types";
|
|
2
2
|
export declare const ROUTES: {
|
|
3
3
|
readonly AUTH: {
|
|
4
4
|
readonly BASE: "auth";
|
|
@@ -21,7 +21,7 @@ export declare const ROUTES: {
|
|
|
21
21
|
readonly INSIGHTS: (campaignId: string) => string;
|
|
22
22
|
readonly CONNECT_SAVED: (campaignId: string) => string;
|
|
23
23
|
readonly ANALYTICS: (campaignId: string, timeFilter: TimeFilter) => string;
|
|
24
|
-
readonly ACTIVITY: (campaignId: string, status: LeadStatus |
|
|
24
|
+
readonly ACTIVITY: (campaignId: string, status: LeadStatus | "all", offset: string, limit: string) => string;
|
|
25
25
|
readonly INTEGRATIONS: {
|
|
26
26
|
readonly BASE: (campaignId: string) => string;
|
|
27
27
|
readonly TEST_SUITABILITY_WEBHOOK: (campaignId: string, integrationId: string) => string;
|
|
@@ -55,6 +55,7 @@ export declare const ROUTES: {
|
|
|
55
55
|
};
|
|
56
56
|
readonly AI_CONFIG: {
|
|
57
57
|
readonly BASE: "ai-config";
|
|
58
|
+
readonly GENERATE_KNOWLEDGE_BASE: "ai-config/generate-knowledge-base";
|
|
58
59
|
};
|
|
59
60
|
readonly COOKIES: {
|
|
60
61
|
readonly BASE: "cookies";
|
package/dist/constants/routes.js
CHANGED
|
@@ -3,15 +3,15 @@ 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
|
EVENTS: {
|
|
10
|
-
BASE:
|
|
10
|
+
BASE: "events",
|
|
11
11
|
BY_ID: (id) => `events/${id}`,
|
|
12
12
|
},
|
|
13
13
|
CAMPAIGNS: {
|
|
14
|
-
BASE:
|
|
14
|
+
BASE: "campaigns",
|
|
15
15
|
BY_ID: (id) => `campaigns/${id}`,
|
|
16
16
|
LEADS: {
|
|
17
17
|
BASE: (campaignId) => `campaigns/${campaignId}/leads`,
|
|
@@ -43,55 +43,56 @@ exports.ROUTES = {
|
|
|
43
43
|
},
|
|
44
44
|
},
|
|
45
45
|
JOBS: {
|
|
46
|
-
BASE:
|
|
46
|
+
BASE: "jobs",
|
|
47
47
|
BY_ID: (id) => `jobs/${id}`,
|
|
48
|
-
IMPORT:
|
|
49
|
-
FILTER_OPTIONS:
|
|
50
|
-
TOTAL_JOBS:
|
|
48
|
+
IMPORT: "jobs/import",
|
|
49
|
+
FILTER_OPTIONS: "jobs/filter-options",
|
|
50
|
+
TOTAL_JOBS: "jobs/total-jobs",
|
|
51
51
|
GET_JOB_TITLE: (jobId) => `jobs/get-job-title/${jobId}`,
|
|
52
|
-
SEARCH:
|
|
52
|
+
SEARCH: "jobs/search",
|
|
53
53
|
},
|
|
54
54
|
USERS: {
|
|
55
|
-
BASE:
|
|
55
|
+
BASE: "users",
|
|
56
56
|
BY_ID: (id) => `users/${id}`,
|
|
57
57
|
},
|
|
58
58
|
AI_CONFIG: {
|
|
59
|
-
BASE:
|
|
59
|
+
BASE: "ai-config",
|
|
60
|
+
GENERATE_KNOWLEDGE_BASE: "ai-config/generate-knowledge-base",
|
|
60
61
|
},
|
|
61
62
|
COOKIES: {
|
|
62
|
-
BASE:
|
|
63
|
-
SCRAPE:
|
|
63
|
+
BASE: "cookies",
|
|
64
|
+
SCRAPE: "cookies/scrape-cookies",
|
|
64
65
|
},
|
|
65
66
|
SCRAPING: {
|
|
66
|
-
BASE:
|
|
67
|
-
START_SCRAPING:
|
|
68
|
-
START_WORLDWIDE_SCRAPING:
|
|
69
|
-
START_US_SCRAPING:
|
|
70
|
-
START_UK_SCRAPING:
|
|
71
|
-
UPDATE_ACTIVITY_4H_WORLDWIDE:
|
|
72
|
-
UPDATE_ACTIVITY_4H_UK:
|
|
73
|
-
UPDATE_ACTIVITY_4H_US:
|
|
74
|
-
UPDATE_ACTIVITY_24H_WORLDWIDE:
|
|
75
|
-
UPDATE_ACTIVITY_24H_UK:
|
|
76
|
-
UPDATE_ACTIVITY_24H_US:
|
|
67
|
+
BASE: "scraping",
|
|
68
|
+
START_SCRAPING: "scraping/start",
|
|
69
|
+
START_WORLDWIDE_SCRAPING: "scraping/start-worldwide",
|
|
70
|
+
START_US_SCRAPING: "scraping/start-us",
|
|
71
|
+
START_UK_SCRAPING: "scraping/start-uk",
|
|
72
|
+
UPDATE_ACTIVITY_4H_WORLDWIDE: "scraping/update-activity/4h",
|
|
73
|
+
UPDATE_ACTIVITY_4H_UK: "scraping/update-activity/4h/uk",
|
|
74
|
+
UPDATE_ACTIVITY_4H_US: "scraping/update-activity/4h/us",
|
|
75
|
+
UPDATE_ACTIVITY_24H_WORLDWIDE: "scraping/update-activity/24h",
|
|
76
|
+
UPDATE_ACTIVITY_24H_UK: "scraping/update-activity/24h/uk",
|
|
77
|
+
UPDATE_ACTIVITY_24H_US: "scraping/update-activity/24h/us",
|
|
77
78
|
},
|
|
78
79
|
ADMIN: {
|
|
79
|
-
BASE:
|
|
80
|
+
BASE: "admin",
|
|
80
81
|
BIDDER_ACCOUNTS: {
|
|
81
|
-
BASE:
|
|
82
|
+
BASE: "admin/bidder-accounts",
|
|
82
83
|
BY_ID: (id) => `admin/bidder-accounts/${id}`,
|
|
83
84
|
BY_PROVIDER: (provider) => `admin/bidder-accounts/${provider}`,
|
|
84
85
|
BY_PROVIDER_AND_ID: (provider, id) => `admin/bidder-accounts/${provider}/${id}`,
|
|
85
86
|
},
|
|
86
87
|
SCRAPER_ACCOUNTS: {
|
|
87
|
-
BASE:
|
|
88
|
+
BASE: "admin/scraper-accounts",
|
|
88
89
|
BY_ID: (id) => `admin/scraper-accounts/${id}`,
|
|
89
90
|
BY_PROVIDER: (provider) => `admin/scraper-accounts/${provider}`,
|
|
90
91
|
BY_PROVIDER_AND_ID: (provider, id) => `admin/scraper-accounts/${provider}/${id}`,
|
|
91
92
|
},
|
|
92
93
|
},
|
|
93
94
|
BID: {
|
|
94
|
-
BASE:
|
|
95
|
+
BASE: "bid",
|
|
95
96
|
BID_ON_JOB: (userId, campaignId, leadId) => `bid/${userId}/${campaignId}/${leadId}`,
|
|
96
97
|
},
|
|
97
98
|
};
|
|
@@ -252,10 +252,10 @@ export declare const campaignActivitySchema: z.ZodObject<{
|
|
|
252
252
|
numHours: z.ZodNullable<z.ZodNumber>;
|
|
253
253
|
totalBilled: z.ZodNullable<z.ZodNumber>;
|
|
254
254
|
}, "strip", z.ZodTypeAny, {
|
|
255
|
+
jobTitle: string | null;
|
|
255
256
|
hourlyRate: number | null;
|
|
256
257
|
paymentType: string | null;
|
|
257
258
|
fixedPrice: number | null;
|
|
258
|
-
jobTitle: string | null;
|
|
259
259
|
freelancerName: string | null;
|
|
260
260
|
freelancerRating: number | null;
|
|
261
261
|
freelancerFeedback: string | null;
|
|
@@ -265,10 +265,10 @@ export declare const campaignActivitySchema: z.ZodObject<{
|
|
|
265
265
|
numHours: number | null;
|
|
266
266
|
totalBilled: number | null;
|
|
267
267
|
}, {
|
|
268
|
+
jobTitle: string | null;
|
|
268
269
|
hourlyRate: number | null;
|
|
269
270
|
paymentType: string | null;
|
|
270
271
|
fixedPrice: number | null;
|
|
271
|
-
jobTitle: string | null;
|
|
272
272
|
freelancerName: string | null;
|
|
273
273
|
freelancerRating: number | null;
|
|
274
274
|
freelancerFeedback: string | null;
|
|
@@ -97,10 +97,10 @@ export declare const clientReviewSchema: z.ZodObject<{
|
|
|
97
97
|
numHours: z.ZodNullable<z.ZodNumber>;
|
|
98
98
|
totalBilled: z.ZodNullable<z.ZodNumber>;
|
|
99
99
|
}, "strip", z.ZodTypeAny, {
|
|
100
|
+
jobTitle: string | null;
|
|
100
101
|
hourlyRate: number | null;
|
|
101
102
|
paymentType: string | null;
|
|
102
103
|
fixedPrice: number | null;
|
|
103
|
-
jobTitle: string | null;
|
|
104
104
|
freelancerName: string | null;
|
|
105
105
|
freelancerRating: number | null;
|
|
106
106
|
freelancerFeedback: string | null;
|
|
@@ -110,10 +110,10 @@ export declare const clientReviewSchema: z.ZodObject<{
|
|
|
110
110
|
numHours: number | null;
|
|
111
111
|
totalBilled: number | null;
|
|
112
112
|
}, {
|
|
113
|
+
jobTitle: string | null;
|
|
113
114
|
hourlyRate: number | null;
|
|
114
115
|
paymentType: string | null;
|
|
115
116
|
fixedPrice: number | null;
|
|
116
|
-
jobTitle: string | null;
|
|
117
117
|
freelancerName: string | null;
|
|
118
118
|
freelancerRating: number | null;
|
|
119
119
|
freelancerFeedback: string | null;
|
|
@@ -363,10 +363,10 @@ export declare const upworkJobSchema: z.ZodObject<{
|
|
|
363
363
|
numHours: z.ZodNullable<z.ZodNumber>;
|
|
364
364
|
totalBilled: z.ZodNullable<z.ZodNumber>;
|
|
365
365
|
}, "strip", z.ZodTypeAny, {
|
|
366
|
+
jobTitle: string | null;
|
|
366
367
|
hourlyRate: number | null;
|
|
367
368
|
paymentType: string | null;
|
|
368
369
|
fixedPrice: number | null;
|
|
369
|
-
jobTitle: string | null;
|
|
370
370
|
freelancerName: string | null;
|
|
371
371
|
freelancerRating: number | null;
|
|
372
372
|
freelancerFeedback: string | null;
|
|
@@ -376,10 +376,10 @@ export declare const upworkJobSchema: z.ZodObject<{
|
|
|
376
376
|
numHours: number | null;
|
|
377
377
|
totalBilled: number | null;
|
|
378
378
|
}, {
|
|
379
|
+
jobTitle: string | null;
|
|
379
380
|
hourlyRate: number | null;
|
|
380
381
|
paymentType: string | null;
|
|
381
382
|
fixedPrice: number | null;
|
|
382
|
-
jobTitle: string | null;
|
|
383
383
|
freelancerName: string | null;
|
|
384
384
|
freelancerRating: number | null;
|
|
385
385
|
freelancerFeedback: string | null;
|
|
@@ -462,10 +462,10 @@ export declare const upworkJobSchema: z.ZodObject<{
|
|
|
462
462
|
region: "USOnly" | "UKOnly" | "Worldwide" | null;
|
|
463
463
|
datetime: number | null;
|
|
464
464
|
createdAt: number | null;
|
|
465
|
-
category: string | null;
|
|
466
465
|
skills: {
|
|
467
466
|
name: string;
|
|
468
467
|
}[] | null;
|
|
468
|
+
category: string | null;
|
|
469
469
|
descriptionLength: number | null;
|
|
470
470
|
connectsRequired: number | null;
|
|
471
471
|
projectType: string | null;
|
|
@@ -502,10 +502,10 @@ export declare const upworkJobSchema: z.ZodObject<{
|
|
|
502
502
|
processed: boolean | null;
|
|
503
503
|
isFeatured: boolean | null;
|
|
504
504
|
clientReviews: {
|
|
505
|
+
jobTitle: string | null;
|
|
505
506
|
hourlyRate: number | null;
|
|
506
507
|
paymentType: string | null;
|
|
507
508
|
fixedPrice: number | null;
|
|
508
|
-
jobTitle: string | null;
|
|
509
509
|
freelancerName: string | null;
|
|
510
510
|
freelancerRating: number | null;
|
|
511
511
|
freelancerFeedback: string | null;
|
|
@@ -551,10 +551,10 @@ export declare const upworkJobSchema: z.ZodObject<{
|
|
|
551
551
|
region: "USOnly" | "UKOnly" | "Worldwide" | null;
|
|
552
552
|
datetime: number | null;
|
|
553
553
|
createdAt: number | null;
|
|
554
|
-
category: string | null;
|
|
555
554
|
skills: {
|
|
556
555
|
name: string;
|
|
557
556
|
}[] | null;
|
|
557
|
+
category: string | null;
|
|
558
558
|
descriptionLength: number | null;
|
|
559
559
|
connectsRequired: number | null;
|
|
560
560
|
projectType: string | null;
|
|
@@ -591,10 +591,10 @@ export declare const upworkJobSchema: z.ZodObject<{
|
|
|
591
591
|
processed: boolean | null;
|
|
592
592
|
isFeatured: boolean | null;
|
|
593
593
|
clientReviews: {
|
|
594
|
+
jobTitle: string | null;
|
|
594
595
|
hourlyRate: number | null;
|
|
595
596
|
paymentType: string | null;
|
|
596
597
|
fixedPrice: number | null;
|
|
597
|
-
jobTitle: string | null;
|
|
598
598
|
freelancerName: string | null;
|
|
599
599
|
freelancerRating: number | null;
|
|
600
600
|
freelancerFeedback: string | null;
|
|
@@ -773,10 +773,10 @@ export declare const leadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
|
773
773
|
numHours: z.ZodNullable<z.ZodNumber>;
|
|
774
774
|
totalBilled: z.ZodNullable<z.ZodNumber>;
|
|
775
775
|
}, "strip", z.ZodTypeAny, {
|
|
776
|
+
jobTitle: string | null;
|
|
776
777
|
hourlyRate: number | null;
|
|
777
778
|
paymentType: string | null;
|
|
778
779
|
fixedPrice: number | null;
|
|
779
|
-
jobTitle: string | null;
|
|
780
780
|
freelancerName: string | null;
|
|
781
781
|
freelancerRating: number | null;
|
|
782
782
|
freelancerFeedback: string | null;
|
|
@@ -786,10 +786,10 @@ export declare const leadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
|
786
786
|
numHours: number | null;
|
|
787
787
|
totalBilled: number | null;
|
|
788
788
|
}, {
|
|
789
|
+
jobTitle: string | null;
|
|
789
790
|
hourlyRate: number | null;
|
|
790
791
|
paymentType: string | null;
|
|
791
792
|
fixedPrice: number | null;
|
|
792
|
-
jobTitle: string | null;
|
|
793
793
|
freelancerName: string | null;
|
|
794
794
|
freelancerRating: number | null;
|
|
795
795
|
freelancerFeedback: string | null;
|
|
@@ -927,10 +927,10 @@ export declare const leadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
|
927
927
|
question: string;
|
|
928
928
|
}[] | null;
|
|
929
929
|
proposal: string | null;
|
|
930
|
-
category: string | null;
|
|
931
930
|
skills: {
|
|
932
931
|
name: string;
|
|
933
932
|
}[] | null;
|
|
933
|
+
category: string | null;
|
|
934
934
|
descriptionLength: number | null;
|
|
935
935
|
connectsRequired: number | null;
|
|
936
936
|
projectType: string | null;
|
|
@@ -966,10 +966,10 @@ export declare const leadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
|
966
966
|
} | null;
|
|
967
967
|
isFeatured: boolean | null;
|
|
968
968
|
clientReviews: {
|
|
969
|
+
jobTitle: string | null;
|
|
969
970
|
hourlyRate: number | null;
|
|
970
971
|
paymentType: string | null;
|
|
971
972
|
fixedPrice: number | null;
|
|
972
|
-
jobTitle: string | null;
|
|
973
973
|
freelancerName: string | null;
|
|
974
974
|
freelancerRating: number | null;
|
|
975
975
|
freelancerFeedback: string | null;
|
|
@@ -1040,10 +1040,10 @@ export declare const leadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
|
1040
1040
|
question: string;
|
|
1041
1041
|
}[] | null;
|
|
1042
1042
|
proposal: string | null;
|
|
1043
|
-
category: string | null;
|
|
1044
1043
|
skills: {
|
|
1045
1044
|
name: string;
|
|
1046
1045
|
}[] | null;
|
|
1046
|
+
category: string | null;
|
|
1047
1047
|
descriptionLength: number | null;
|
|
1048
1048
|
connectsRequired: number | null;
|
|
1049
1049
|
projectType: string | null;
|
|
@@ -1079,10 +1079,10 @@ export declare const leadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
|
1079
1079
|
} | null;
|
|
1080
1080
|
isFeatured: boolean | null;
|
|
1081
1081
|
clientReviews: {
|
|
1082
|
+
jobTitle: string | null;
|
|
1082
1083
|
hourlyRate: number | null;
|
|
1083
1084
|
paymentType: string | null;
|
|
1084
1085
|
fixedPrice: number | null;
|
|
1085
|
-
jobTitle: string | null;
|
|
1086
1086
|
freelancerName: string | null;
|
|
1087
1087
|
freelancerRating: number | null;
|
|
1088
1088
|
freelancerFeedback: string | null;
|
|
@@ -1299,10 +1299,10 @@ export declare const leadResponseSchema: z.ZodObject<{
|
|
|
1299
1299
|
numHours: z.ZodNullable<z.ZodNumber>;
|
|
1300
1300
|
totalBilled: z.ZodNullable<z.ZodNumber>;
|
|
1301
1301
|
}, "strip", z.ZodTypeAny, {
|
|
1302
|
+
jobTitle: string | null;
|
|
1302
1303
|
hourlyRate: number | null;
|
|
1303
1304
|
paymentType: string | null;
|
|
1304
1305
|
fixedPrice: number | null;
|
|
1305
|
-
jobTitle: string | null;
|
|
1306
1306
|
freelancerName: string | null;
|
|
1307
1307
|
freelancerRating: number | null;
|
|
1308
1308
|
freelancerFeedback: string | null;
|
|
@@ -1312,10 +1312,10 @@ export declare const leadResponseSchema: z.ZodObject<{
|
|
|
1312
1312
|
numHours: number | null;
|
|
1313
1313
|
totalBilled: number | null;
|
|
1314
1314
|
}, {
|
|
1315
|
+
jobTitle: string | null;
|
|
1315
1316
|
hourlyRate: number | null;
|
|
1316
1317
|
paymentType: string | null;
|
|
1317
1318
|
fixedPrice: number | null;
|
|
1318
|
-
jobTitle: string | null;
|
|
1319
1319
|
freelancerName: string | null;
|
|
1320
1320
|
freelancerRating: number | null;
|
|
1321
1321
|
freelancerFeedback: string | null;
|
|
@@ -1453,10 +1453,10 @@ export declare const leadResponseSchema: z.ZodObject<{
|
|
|
1453
1453
|
question: string;
|
|
1454
1454
|
}[] | null;
|
|
1455
1455
|
proposal: string | null;
|
|
1456
|
-
category: string | null;
|
|
1457
1456
|
skills: {
|
|
1458
1457
|
name: string;
|
|
1459
1458
|
}[] | null;
|
|
1459
|
+
category: string | null;
|
|
1460
1460
|
descriptionLength: number | null;
|
|
1461
1461
|
connectsRequired: number | null;
|
|
1462
1462
|
projectType: string | null;
|
|
@@ -1492,10 +1492,10 @@ export declare const leadResponseSchema: z.ZodObject<{
|
|
|
1492
1492
|
} | null;
|
|
1493
1493
|
isFeatured: boolean | null;
|
|
1494
1494
|
clientReviews: {
|
|
1495
|
+
jobTitle: string | null;
|
|
1495
1496
|
hourlyRate: number | null;
|
|
1496
1497
|
paymentType: string | null;
|
|
1497
1498
|
fixedPrice: number | null;
|
|
1498
|
-
jobTitle: string | null;
|
|
1499
1499
|
freelancerName: string | null;
|
|
1500
1500
|
freelancerRating: number | null;
|
|
1501
1501
|
freelancerFeedback: string | null;
|
|
@@ -1566,10 +1566,10 @@ export declare const leadResponseSchema: z.ZodObject<{
|
|
|
1566
1566
|
question: string;
|
|
1567
1567
|
}[] | null;
|
|
1568
1568
|
proposal: string | null;
|
|
1569
|
-
category: string | null;
|
|
1570
1569
|
skills: {
|
|
1571
1570
|
name: string;
|
|
1572
1571
|
}[] | null;
|
|
1572
|
+
category: string | null;
|
|
1573
1573
|
descriptionLength: number | null;
|
|
1574
1574
|
connectsRequired: number | null;
|
|
1575
1575
|
projectType: string | null;
|
|
@@ -1605,10 +1605,10 @@ export declare const leadResponseSchema: z.ZodObject<{
|
|
|
1605
1605
|
} | null;
|
|
1606
1606
|
isFeatured: boolean | null;
|
|
1607
1607
|
clientReviews: {
|
|
1608
|
+
jobTitle: string | null;
|
|
1608
1609
|
hourlyRate: number | null;
|
|
1609
1610
|
paymentType: string | null;
|
|
1610
1611
|
fixedPrice: number | null;
|
|
1611
|
-
jobTitle: string | null;
|
|
1612
1612
|
freelancerName: string | null;
|
|
1613
1613
|
freelancerRating: number | null;
|
|
1614
1614
|
freelancerFeedback: string | null;
|
|
@@ -1684,10 +1684,10 @@ export declare const leadResponseSchema: z.ZodObject<{
|
|
|
1684
1684
|
question: string;
|
|
1685
1685
|
}[] | null;
|
|
1686
1686
|
proposal: string | null;
|
|
1687
|
-
category: string | null;
|
|
1688
1687
|
skills: {
|
|
1689
1688
|
name: string;
|
|
1690
1689
|
}[] | null;
|
|
1690
|
+
category: string | null;
|
|
1691
1691
|
descriptionLength: number | null;
|
|
1692
1692
|
connectsRequired: number | null;
|
|
1693
1693
|
projectType: string | null;
|
|
@@ -1723,10 +1723,10 @@ export declare const leadResponseSchema: z.ZodObject<{
|
|
|
1723
1723
|
} | null;
|
|
1724
1724
|
isFeatured: boolean | null;
|
|
1725
1725
|
clientReviews: {
|
|
1726
|
+
jobTitle: string | null;
|
|
1726
1727
|
hourlyRate: number | null;
|
|
1727
1728
|
paymentType: string | null;
|
|
1728
1729
|
fixedPrice: number | null;
|
|
1729
|
-
jobTitle: string | null;
|
|
1730
1730
|
freelancerName: string | null;
|
|
1731
1731
|
freelancerRating: number | null;
|
|
1732
1732
|
freelancerFeedback: string | null;
|
|
@@ -1802,10 +1802,10 @@ export declare const leadResponseSchema: z.ZodObject<{
|
|
|
1802
1802
|
question: string;
|
|
1803
1803
|
}[] | null;
|
|
1804
1804
|
proposal: string | null;
|
|
1805
|
-
category: string | null;
|
|
1806
1805
|
skills: {
|
|
1807
1806
|
name: string;
|
|
1808
1807
|
}[] | null;
|
|
1808
|
+
category: string | null;
|
|
1809
1809
|
descriptionLength: number | null;
|
|
1810
1810
|
connectsRequired: number | null;
|
|
1811
1811
|
projectType: string | null;
|
|
@@ -1841,10 +1841,10 @@ export declare const leadResponseSchema: z.ZodObject<{
|
|
|
1841
1841
|
} | null;
|
|
1842
1842
|
isFeatured: boolean | null;
|
|
1843
1843
|
clientReviews: {
|
|
1844
|
+
jobTitle: string | null;
|
|
1844
1845
|
hourlyRate: number | null;
|
|
1845
1846
|
paymentType: string | null;
|
|
1846
1847
|
fixedPrice: number | null;
|
|
1847
|
-
jobTitle: string | null;
|
|
1848
1848
|
freelancerName: string | null;
|
|
1849
1849
|
freelancerRating: number | null;
|
|
1850
1850
|
freelancerFeedback: string | null;
|
|
@@ -151,10 +151,10 @@ export declare const scrapeResultSchema: z.ZodObject<{
|
|
|
151
151
|
numHours: z.ZodNullable<z.ZodNumber>;
|
|
152
152
|
totalBilled: z.ZodNullable<z.ZodNumber>;
|
|
153
153
|
}, "strip", z.ZodTypeAny, {
|
|
154
|
+
jobTitle: string | null;
|
|
154
155
|
hourlyRate: number | null;
|
|
155
156
|
paymentType: string | null;
|
|
156
157
|
fixedPrice: number | null;
|
|
157
|
-
jobTitle: string | null;
|
|
158
158
|
freelancerName: string | null;
|
|
159
159
|
freelancerRating: number | null;
|
|
160
160
|
freelancerFeedback: string | null;
|
|
@@ -164,10 +164,10 @@ export declare const scrapeResultSchema: z.ZodObject<{
|
|
|
164
164
|
numHours: number | null;
|
|
165
165
|
totalBilled: number | null;
|
|
166
166
|
}, {
|
|
167
|
+
jobTitle: string | null;
|
|
167
168
|
hourlyRate: number | null;
|
|
168
169
|
paymentType: string | null;
|
|
169
170
|
fixedPrice: number | null;
|
|
170
|
-
jobTitle: string | null;
|
|
171
171
|
freelancerName: string | null;
|
|
172
172
|
freelancerRating: number | null;
|
|
173
173
|
freelancerFeedback: string | null;
|
|
@@ -250,10 +250,10 @@ export declare const scrapeResultSchema: z.ZodObject<{
|
|
|
250
250
|
region: "USOnly" | "UKOnly" | "Worldwide" | null;
|
|
251
251
|
datetime: number | null;
|
|
252
252
|
createdAt: number | null;
|
|
253
|
-
category: string | null;
|
|
254
253
|
skills: {
|
|
255
254
|
name: string;
|
|
256
255
|
}[] | null;
|
|
256
|
+
category: string | null;
|
|
257
257
|
descriptionLength: number | null;
|
|
258
258
|
connectsRequired: number | null;
|
|
259
259
|
projectType: string | null;
|
|
@@ -290,10 +290,10 @@ export declare const scrapeResultSchema: z.ZodObject<{
|
|
|
290
290
|
processed: boolean | null;
|
|
291
291
|
isFeatured: boolean | null;
|
|
292
292
|
clientReviews: {
|
|
293
|
+
jobTitle: string | null;
|
|
293
294
|
hourlyRate: number | null;
|
|
294
295
|
paymentType: string | null;
|
|
295
296
|
fixedPrice: number | null;
|
|
296
|
-
jobTitle: string | null;
|
|
297
297
|
freelancerName: string | null;
|
|
298
298
|
freelancerRating: number | null;
|
|
299
299
|
freelancerFeedback: string | null;
|
|
@@ -339,10 +339,10 @@ export declare const scrapeResultSchema: z.ZodObject<{
|
|
|
339
339
|
region: "USOnly" | "UKOnly" | "Worldwide" | null;
|
|
340
340
|
datetime: number | null;
|
|
341
341
|
createdAt: number | null;
|
|
342
|
-
category: string | null;
|
|
343
342
|
skills: {
|
|
344
343
|
name: string;
|
|
345
344
|
}[] | null;
|
|
345
|
+
category: string | null;
|
|
346
346
|
descriptionLength: number | null;
|
|
347
347
|
connectsRequired: number | null;
|
|
348
348
|
projectType: string | null;
|
|
@@ -379,10 +379,10 @@ export declare const scrapeResultSchema: z.ZodObject<{
|
|
|
379
379
|
processed: boolean | null;
|
|
380
380
|
isFeatured: boolean | null;
|
|
381
381
|
clientReviews: {
|
|
382
|
+
jobTitle: string | null;
|
|
382
383
|
hourlyRate: number | null;
|
|
383
384
|
paymentType: string | null;
|
|
384
385
|
fixedPrice: number | null;
|
|
385
|
-
jobTitle: string | null;
|
|
386
386
|
freelancerName: string | null;
|
|
387
387
|
freelancerRating: number | null;
|
|
388
388
|
freelancerFeedback: string | null;
|
|
@@ -436,10 +436,10 @@ export declare const scrapeResultSchema: z.ZodObject<{
|
|
|
436
436
|
region: "USOnly" | "UKOnly" | "Worldwide" | null;
|
|
437
437
|
datetime: number | null;
|
|
438
438
|
createdAt: number | null;
|
|
439
|
-
category: string | null;
|
|
440
439
|
skills: {
|
|
441
440
|
name: string;
|
|
442
441
|
}[] | null;
|
|
442
|
+
category: string | null;
|
|
443
443
|
descriptionLength: number | null;
|
|
444
444
|
connectsRequired: number | null;
|
|
445
445
|
projectType: string | null;
|
|
@@ -476,10 +476,10 @@ export declare const scrapeResultSchema: z.ZodObject<{
|
|
|
476
476
|
processed: boolean | null;
|
|
477
477
|
isFeatured: boolean | null;
|
|
478
478
|
clientReviews: {
|
|
479
|
+
jobTitle: string | null;
|
|
479
480
|
hourlyRate: number | null;
|
|
480
481
|
paymentType: string | null;
|
|
481
482
|
fixedPrice: number | null;
|
|
482
|
-
jobTitle: string | null;
|
|
483
483
|
freelancerName: string | null;
|
|
484
484
|
freelancerRating: number | null;
|
|
485
485
|
freelancerFeedback: string | null;
|
|
@@ -531,10 +531,10 @@ export declare const scrapeResultSchema: z.ZodObject<{
|
|
|
531
531
|
region: "USOnly" | "UKOnly" | "Worldwide" | null;
|
|
532
532
|
datetime: number | null;
|
|
533
533
|
createdAt: number | null;
|
|
534
|
-
category: string | null;
|
|
535
534
|
skills: {
|
|
536
535
|
name: string;
|
|
537
536
|
}[] | null;
|
|
537
|
+
category: string | null;
|
|
538
538
|
descriptionLength: number | null;
|
|
539
539
|
connectsRequired: number | null;
|
|
540
540
|
projectType: string | null;
|
|
@@ -571,10 +571,10 @@ export declare const scrapeResultSchema: z.ZodObject<{
|
|
|
571
571
|
processed: boolean | null;
|
|
572
572
|
isFeatured: boolean | null;
|
|
573
573
|
clientReviews: {
|
|
574
|
+
jobTitle: string | null;
|
|
574
575
|
hourlyRate: number | null;
|
|
575
576
|
paymentType: string | null;
|
|
576
577
|
fixedPrice: number | null;
|
|
577
|
-
jobTitle: string | null;
|
|
578
578
|
freelancerName: string | null;
|
|
579
579
|
freelancerRating: number | null;
|
|
580
580
|
freelancerFeedback: string | null;
|
|
@@ -606,3 +606,124 @@ export declare const scrapeResultSchema: z.ZodObject<{
|
|
|
606
606
|
usAccountCookies?: any[] | undefined;
|
|
607
607
|
ukAccountCookies?: any[] | undefined;
|
|
608
608
|
}>;
|
|
609
|
+
export declare const scrapeUserProfileResultSchema: z.ZodObject<{
|
|
610
|
+
success: z.ZodBoolean;
|
|
611
|
+
message: z.ZodString;
|
|
612
|
+
data: z.ZodObject<{
|
|
613
|
+
name: z.ZodNullable<z.ZodString>;
|
|
614
|
+
country: z.ZodNullable<z.ZodString>;
|
|
615
|
+
bio: z.ZodNullable<z.ZodString>;
|
|
616
|
+
skills: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
617
|
+
certifications: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
618
|
+
employmentHistory: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
619
|
+
jobTitle: z.ZodString;
|
|
620
|
+
period: z.ZodString;
|
|
621
|
+
description: z.ZodString;
|
|
622
|
+
}, "strip", z.ZodTypeAny, {
|
|
623
|
+
description: string;
|
|
624
|
+
jobTitle: string;
|
|
625
|
+
period: string;
|
|
626
|
+
}, {
|
|
627
|
+
description: string;
|
|
628
|
+
jobTitle: string;
|
|
629
|
+
period: string;
|
|
630
|
+
}>, "many">>;
|
|
631
|
+
languages: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
632
|
+
portfolio: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
633
|
+
title: z.ZodString;
|
|
634
|
+
description: z.ZodString;
|
|
635
|
+
skills: z.ZodArray<z.ZodString, "many">;
|
|
636
|
+
publishedDate: z.ZodString;
|
|
637
|
+
}, "strip", z.ZodTypeAny, {
|
|
638
|
+
title: string;
|
|
639
|
+
description: string;
|
|
640
|
+
skills: string[];
|
|
641
|
+
publishedDate: string;
|
|
642
|
+
}, {
|
|
643
|
+
title: string;
|
|
644
|
+
description: string;
|
|
645
|
+
skills: string[];
|
|
646
|
+
publishedDate: string;
|
|
647
|
+
}>, "many">>;
|
|
648
|
+
}, "strip", z.ZodTypeAny, {
|
|
649
|
+
name: string | null;
|
|
650
|
+
country: string | null;
|
|
651
|
+
bio: string | null;
|
|
652
|
+
skills: string[] | null;
|
|
653
|
+
certifications: string[] | null;
|
|
654
|
+
employmentHistory: {
|
|
655
|
+
description: string;
|
|
656
|
+
jobTitle: string;
|
|
657
|
+
period: string;
|
|
658
|
+
}[] | null;
|
|
659
|
+
languages: Record<string, string> | null;
|
|
660
|
+
portfolio: {
|
|
661
|
+
title: string;
|
|
662
|
+
description: string;
|
|
663
|
+
skills: string[];
|
|
664
|
+
publishedDate: string;
|
|
665
|
+
}[] | null;
|
|
666
|
+
}, {
|
|
667
|
+
name: string | null;
|
|
668
|
+
country: string | null;
|
|
669
|
+
bio: string | null;
|
|
670
|
+
skills: string[] | null;
|
|
671
|
+
certifications: string[] | null;
|
|
672
|
+
employmentHistory: {
|
|
673
|
+
description: string;
|
|
674
|
+
jobTitle: string;
|
|
675
|
+
period: string;
|
|
676
|
+
}[] | null;
|
|
677
|
+
languages: Record<string, string> | null;
|
|
678
|
+
portfolio: {
|
|
679
|
+
title: string;
|
|
680
|
+
description: string;
|
|
681
|
+
skills: string[];
|
|
682
|
+
publishedDate: string;
|
|
683
|
+
}[] | null;
|
|
684
|
+
}>;
|
|
685
|
+
}, "strip", z.ZodTypeAny, {
|
|
686
|
+
data: {
|
|
687
|
+
name: string | null;
|
|
688
|
+
country: string | null;
|
|
689
|
+
bio: string | null;
|
|
690
|
+
skills: string[] | null;
|
|
691
|
+
certifications: string[] | null;
|
|
692
|
+
employmentHistory: {
|
|
693
|
+
description: string;
|
|
694
|
+
jobTitle: string;
|
|
695
|
+
period: string;
|
|
696
|
+
}[] | null;
|
|
697
|
+
languages: Record<string, string> | null;
|
|
698
|
+
portfolio: {
|
|
699
|
+
title: string;
|
|
700
|
+
description: string;
|
|
701
|
+
skills: string[];
|
|
702
|
+
publishedDate: string;
|
|
703
|
+
}[] | null;
|
|
704
|
+
};
|
|
705
|
+
message: string;
|
|
706
|
+
success: boolean;
|
|
707
|
+
}, {
|
|
708
|
+
data: {
|
|
709
|
+
name: string | null;
|
|
710
|
+
country: string | null;
|
|
711
|
+
bio: string | null;
|
|
712
|
+
skills: string[] | null;
|
|
713
|
+
certifications: string[] | null;
|
|
714
|
+
employmentHistory: {
|
|
715
|
+
description: string;
|
|
716
|
+
jobTitle: string;
|
|
717
|
+
period: string;
|
|
718
|
+
}[] | null;
|
|
719
|
+
languages: Record<string, string> | null;
|
|
720
|
+
portfolio: {
|
|
721
|
+
title: string;
|
|
722
|
+
description: string;
|
|
723
|
+
skills: string[];
|
|
724
|
+
publishedDate: string;
|
|
725
|
+
}[] | null;
|
|
726
|
+
};
|
|
727
|
+
message: string;
|
|
728
|
+
success: boolean;
|
|
729
|
+
}>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.scrapeResultSchema = exports.regionSchema = void 0;
|
|
3
|
+
exports.scrapeUserProfileResultSchema = exports.scrapeResultSchema = exports.regionSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const lead_1 = require("../lead");
|
|
6
|
+
const user_1 = require("../user");
|
|
6
7
|
exports.regionSchema = zod_1.z.union([
|
|
7
8
|
zod_1.z.literal("USOnly"),
|
|
8
9
|
zod_1.z.literal("UKOnly"),
|
|
@@ -15,3 +16,8 @@ exports.scrapeResultSchema = zod_1.z.object({
|
|
|
15
16
|
usAccountCookies: zod_1.z.array(zod_1.z.any()).optional(),
|
|
16
17
|
ukAccountCookies: zod_1.z.array(zod_1.z.any()).optional(),
|
|
17
18
|
});
|
|
19
|
+
exports.scrapeUserProfileResultSchema = zod_1.z.object({
|
|
20
|
+
success: zod_1.z.boolean(),
|
|
21
|
+
message: zod_1.z.string(),
|
|
22
|
+
data: user_1.upworkProfileSchema,
|
|
23
|
+
});
|
|
@@ -107,8 +107,8 @@ export declare const upworkProfileSchema: z.ZodObject<{
|
|
|
107
107
|
}, "strip", z.ZodTypeAny, {
|
|
108
108
|
name: string | null;
|
|
109
109
|
country: string | null;
|
|
110
|
-
skills: string[] | null;
|
|
111
110
|
bio: string | null;
|
|
111
|
+
skills: string[] | null;
|
|
112
112
|
certifications: string[] | null;
|
|
113
113
|
employmentHistory: {
|
|
114
114
|
description: string;
|
|
@@ -125,8 +125,8 @@ export declare const upworkProfileSchema: z.ZodObject<{
|
|
|
125
125
|
}, {
|
|
126
126
|
name: string | null;
|
|
127
127
|
country: string | null;
|
|
128
|
-
skills: string[] | null;
|
|
129
128
|
bio: string | null;
|
|
129
|
+
skills: string[] | null;
|
|
130
130
|
certifications: string[] | null;
|
|
131
131
|
employmentHistory: {
|
|
132
132
|
description: string;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { regionSchema, scrapeResultSchema } from "../../schemas";
|
|
2
|
+
import { regionSchema, scrapeResultSchema, scrapeUserProfileResultSchema } from "../../schemas";
|
|
3
3
|
export interface ScrapeResult extends z.infer<typeof scrapeResultSchema> {
|
|
4
4
|
}
|
|
5
5
|
export type Region = z.infer<typeof regionSchema>;
|
|
6
|
+
export interface ScrapeUserProfileResult extends z.infer<typeof scrapeUserProfileResultSchema> {
|
|
7
|
+
}
|