lancer-shared 1.0.111 → 1.0.113
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 -0
- package/dist/constants/routes.js +31 -28
- package/dist/schemas/campaign/campaign-analytics.d.ts +264 -0
- package/dist/schemas/campaign/campaign-analytics.js +12 -1
- package/dist/schemas/job/job.d.ts +16 -16
- package/dist/schemas/job/pipeline-job.d.ts +3 -9
- package/dist/schemas/job/pipeline-job.js +0 -1
- package/dist/schemas/upwork-account/index.d.ts +1 -1
- package/dist/schemas/upwork-account/index.js +1 -1
- package/dist/schemas/upwork-account/upwork-business-manager-account.d.ts +14 -14
- package/dist/schemas/upwork-account/upwork-business-manager-account.js +2 -2
- package/dist/schemas/upwork-account/upwork-scraping-account.d.ts +23 -23
- package/dist/schemas/upwork-account/upwork-scraping-account.js +3 -4
- package/dist/types/campaign/campaign-analytics.d.ts +2 -1
- package/dist/types/upwork-account/upwork-scraping-account.d.ts +2 -2
- package/package.json +1 -1
- package/dist/constants/upwork-filters.d.ts +0 -5
- package/dist/constants/upwork-filters.js +0 -75
- package/dist/schemas/ai-config/ai-config.d.ts +0 -39
- package/dist/schemas/ai-config/ai-config.js +0 -12
- package/dist/schemas/ai-config/index.d.ts +0 -1
- package/dist/schemas/ai-config/index.js +0 -17
- package/dist/schemas/bid/bid-status.d.ts +0 -30
- package/dist/schemas/bid/bid-status.js +0 -15
- package/dist/schemas/bidding/proposal-dto.d.ts +0 -26
- package/dist/schemas/bidding/proposal-dto.js +0 -18
- package/dist/schemas/job/job-pipeline.d.ts +0 -74
- package/dist/schemas/job/job-pipeline.js +0 -29
- package/dist/schemas/job/job-suitability.d.ts +0 -12
- package/dist/schemas/job/job-suitability.js +0 -13
- package/dist/schemas/knowledge-object/index.d.ts +0 -1
- package/dist/schemas/knowledge-object/index.js +0 -17
- package/dist/schemas/knowledge-object/knowledge-object.d.ts +0 -128
- package/dist/schemas/knowledge-object/knowledge-object.js +0 -47
- package/dist/schemas/scraper/scrape-response.d.ts +0 -345
- package/dist/schemas/scraper/scrape-response.js +0 -9
- package/dist/schemas/upwork-account/upwork-scraper-account.d.ts +0 -92
- package/dist/schemas/upwork-account/upwork-scraper-account.js +0 -31
- package/dist/types/ai-config/ai-config.d.ts +0 -6
- package/dist/types/ai-config/ai-config.js +0 -2
- package/dist/types/ai-config/index.d.ts +0 -1
- package/dist/types/ai-config/index.js +0 -17
- package/dist/types/bid/bid-status.d.ts +0 -5
- package/dist/types/bid/bid-status.js +0 -2
- package/dist/types/bidding/proposal-dto.d.ts +0 -3
- package/dist/types/bidding/proposal-dto.js +0 -2
- package/dist/types/job/job-pipeline.d.ts +0 -4
- package/dist/types/job/job-pipeline.js +0 -2
- package/dist/types/job/job-suitability.d.ts +0 -3
- package/dist/types/job/job-suitability.js +0 -2
- package/dist/types/knowledge-object/index.d.ts +0 -1
- package/dist/types/knowledge-object/index.js +0 -17
- package/dist/types/knowledge-object/knowledge-object.d.ts +0 -4
- package/dist/types/knowledge-object/knowledge-object.js +0 -2
- package/dist/types/scraper/scrape-response.d.ts +0 -4
- package/dist/types/scraper/scrape-response.js +0 -2
|
@@ -19,6 +19,8 @@ export declare const ROUTES: {
|
|
|
19
19
|
};
|
|
20
20
|
readonly INSIGHTS: (campaignId: string) => string;
|
|
21
21
|
readonly CONNECT_SAVED: (campaignId: string) => string;
|
|
22
|
+
readonly ANALYTICS: (campaignId: string) => string;
|
|
23
|
+
readonly ACTIVITY: (campaignId: string) => string;
|
|
22
24
|
readonly INTEGRATIONS: {
|
|
23
25
|
readonly BASE: (campaignId: string) => string;
|
|
24
26
|
readonly TEST_SUITABILITY_WEBHOOK: (campaignId: string, integrationId: string) => string;
|
|
@@ -87,6 +89,7 @@ export declare const ROUTES: {
|
|
|
87
89
|
};
|
|
88
90
|
readonly BID: {
|
|
89
91
|
readonly BASE: "bid";
|
|
92
|
+
readonly BID_ON_JOB: "bid/bid-on-job/:userId/:campaignId/:leadId";
|
|
90
93
|
};
|
|
91
94
|
};
|
|
92
95
|
export type RouteParams = {
|
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`,
|
|
@@ -22,6 +22,8 @@ exports.ROUTES = {
|
|
|
22
22
|
},
|
|
23
23
|
INSIGHTS: (campaignId) => `campaigns/${campaignId}/insights`,
|
|
24
24
|
CONNECT_SAVED: (campaignId) => `campaigns/${campaignId}/get-connects-saved`,
|
|
25
|
+
ANALYTICS: (campaignId) => `campaigns/${campaignId}/analytics`,
|
|
26
|
+
ACTIVITY: (campaignId) => `campaigns/${campaignId}/activity`,
|
|
25
27
|
INTEGRATIONS: {
|
|
26
28
|
BASE: (campaignId) => `campaigns/${campaignId}/integrations`,
|
|
27
29
|
TEST_SUITABILITY_WEBHOOK: (campaignId, integrationId) => `campaigns/${campaignId}/integrations/${integrationId}/suitability/test-webhook`,
|
|
@@ -41,55 +43,56 @@ exports.ROUTES = {
|
|
|
41
43
|
},
|
|
42
44
|
},
|
|
43
45
|
JOBS: {
|
|
44
|
-
BASE:
|
|
46
|
+
BASE: "jobs",
|
|
45
47
|
BY_ID: (id) => `jobs/${id}`,
|
|
46
|
-
IMPORT:
|
|
47
|
-
FILTER_OPTIONS:
|
|
48
|
-
TOTAL_JOBS:
|
|
48
|
+
IMPORT: "jobs/import",
|
|
49
|
+
FILTER_OPTIONS: "jobs/filter-options",
|
|
50
|
+
TOTAL_JOBS: "jobs/total-jobs",
|
|
49
51
|
GET_JOB_TITLE: (jobId) => `jobs/get-job-title/${jobId}`,
|
|
50
|
-
SEARCH:
|
|
52
|
+
SEARCH: "jobs/search",
|
|
51
53
|
},
|
|
52
54
|
USERS: {
|
|
53
|
-
BASE:
|
|
55
|
+
BASE: "users",
|
|
54
56
|
BY_ID: (id) => `users/${id}`,
|
|
55
57
|
},
|
|
56
58
|
AI_CONFIG: {
|
|
57
|
-
BASE:
|
|
59
|
+
BASE: "ai-config",
|
|
58
60
|
},
|
|
59
61
|
COOKIES: {
|
|
60
|
-
BASE:
|
|
61
|
-
SCRAPE:
|
|
62
|
+
BASE: "cookies",
|
|
63
|
+
SCRAPE: "cookies/scrape-cookies",
|
|
62
64
|
},
|
|
63
65
|
SCRAPING: {
|
|
64
|
-
BASE:
|
|
65
|
-
START_SCRAPING:
|
|
66
|
-
START_WORLDWIDE_SCRAPING:
|
|
67
|
-
START_US_SCRAPING:
|
|
68
|
-
START_UK_SCRAPING:
|
|
69
|
-
UPDATE_ACTIVITY_4H_WORLDWIDE:
|
|
70
|
-
UPDATE_ACTIVITY_4H_UK:
|
|
71
|
-
UPDATE_ACTIVITY_4H_US:
|
|
72
|
-
UPDATE_ACTIVITY_24H_WORLDWIDE:
|
|
73
|
-
UPDATE_ACTIVITY_24H_UK:
|
|
74
|
-
UPDATE_ACTIVITY_24H_US:
|
|
66
|
+
BASE: "scraping",
|
|
67
|
+
START_SCRAPING: "scraping/start",
|
|
68
|
+
START_WORLDWIDE_SCRAPING: "scraping/start-worldwide",
|
|
69
|
+
START_US_SCRAPING: "scraping/start-us",
|
|
70
|
+
START_UK_SCRAPING: "scraping/start-uk",
|
|
71
|
+
UPDATE_ACTIVITY_4H_WORLDWIDE: "scraping/update-activity/4h",
|
|
72
|
+
UPDATE_ACTIVITY_4H_UK: "scraping/update-activity/4h/uk",
|
|
73
|
+
UPDATE_ACTIVITY_4H_US: "scraping/update-activity/4h/us",
|
|
74
|
+
UPDATE_ACTIVITY_24H_WORLDWIDE: "scraping/update-activity/24h",
|
|
75
|
+
UPDATE_ACTIVITY_24H_UK: "scraping/update-activity/24h/uk",
|
|
76
|
+
UPDATE_ACTIVITY_24H_US: "scraping/update-activity/24h/us",
|
|
75
77
|
},
|
|
76
78
|
ADMIN: {
|
|
77
|
-
BASE:
|
|
79
|
+
BASE: "admin",
|
|
78
80
|
MANAGER_ACCOUNTS: {
|
|
79
|
-
BASE:
|
|
81
|
+
BASE: "admin/manager-accounts",
|
|
80
82
|
BY_ID: (id) => `admin/manager-accounts/${id}`,
|
|
81
83
|
BY_PROVIDER: (provider) => `admin/manager-accounts/${provider}`,
|
|
82
84
|
BY_PROVIDER_AND_ID: (provider, id) => `admin/manager-accounts/${provider}/${id}`,
|
|
83
85
|
},
|
|
84
86
|
SCRAPER_ACCOUNTS: {
|
|
85
|
-
BASE:
|
|
87
|
+
BASE: "admin/scraper-accounts",
|
|
86
88
|
BY_ID: (id) => `admin/scraper-accounts/${id}`,
|
|
87
89
|
BY_PROVIDER: (provider) => `admin/scraper-accounts/${provider}`,
|
|
88
90
|
BY_PROVIDER_AND_ID: (provider, id) => `admin/scraper-accounts/${provider}/${id}`,
|
|
89
91
|
},
|
|
90
92
|
},
|
|
91
93
|
BID: {
|
|
92
|
-
BASE:
|
|
94
|
+
BASE: "bid",
|
|
95
|
+
BID_ON_JOB: `bid/bid-on-job/:userId/:campaignId/:leadId`,
|
|
93
96
|
},
|
|
94
97
|
};
|
|
95
98
|
// Helper function to build route with parameters
|
|
@@ -21,3 +21,267 @@ export declare const campaignAnalyticsResponseSchema: z.ZodObject<{
|
|
|
21
21
|
won: number;
|
|
22
22
|
jobsAnalyzed: number;
|
|
23
23
|
}>;
|
|
24
|
+
export declare const campaignActivitySchema: z.ZodObject<{
|
|
25
|
+
createdAt: z.ZodNumber;
|
|
26
|
+
status: z.ZodEnum<["pending", "active", "completed", "failed"]>;
|
|
27
|
+
job: z.ZodObject<Pick<{
|
|
28
|
+
id: z.ZodNullable<z.ZodString>;
|
|
29
|
+
createdAt: z.ZodNullable<z.ZodNumber>;
|
|
30
|
+
title: z.ZodNullable<z.ZodString>;
|
|
31
|
+
category: z.ZodNullable<z.ZodString>;
|
|
32
|
+
skills: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
33
|
+
name: z.ZodString;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
name: string;
|
|
36
|
+
}, {
|
|
37
|
+
name: string;
|
|
38
|
+
}>, "many">>;
|
|
39
|
+
datetime: z.ZodNullable<z.ZodNumber>;
|
|
40
|
+
description: z.ZodNullable<z.ZodString>;
|
|
41
|
+
descriptionLength: z.ZodNullable<z.ZodNumber>;
|
|
42
|
+
connectsRequired: z.ZodNullable<z.ZodNumber>;
|
|
43
|
+
projectType: z.ZodNullable<z.ZodString>;
|
|
44
|
+
projectDuration: z.ZodNullable<z.ZodString>;
|
|
45
|
+
questions: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
46
|
+
jobUrl: z.ZodNullable<z.ZodString>;
|
|
47
|
+
metadata: z.ZodNullable<z.ZodObject<{
|
|
48
|
+
hours: z.ZodNullable<z.ZodString>;
|
|
49
|
+
duration: z.ZodNullable<z.ZodString>;
|
|
50
|
+
experienceLevel: z.ZodNullable<z.ZodString>;
|
|
51
|
+
hourlyRate: z.ZodNullable<z.ZodObject<{
|
|
52
|
+
min: z.ZodNullable<z.ZodNumber>;
|
|
53
|
+
max: z.ZodNullable<z.ZodNumber>;
|
|
54
|
+
}, "strip", z.ZodTypeAny, {
|
|
55
|
+
max: number | null;
|
|
56
|
+
min: number | null;
|
|
57
|
+
}, {
|
|
58
|
+
max: number | null;
|
|
59
|
+
min: number | null;
|
|
60
|
+
}>>;
|
|
61
|
+
paymentType: z.ZodNullable<z.ZodString>;
|
|
62
|
+
fixedPrice: z.ZodNullable<z.ZodNumber>;
|
|
63
|
+
}, "strip", z.ZodTypeAny, {
|
|
64
|
+
hours: string | null;
|
|
65
|
+
duration: string | null;
|
|
66
|
+
experienceLevel: string | null;
|
|
67
|
+
hourlyRate: {
|
|
68
|
+
max: number | null;
|
|
69
|
+
min: number | null;
|
|
70
|
+
} | null;
|
|
71
|
+
paymentType: string | null;
|
|
72
|
+
fixedPrice: number | null;
|
|
73
|
+
}, {
|
|
74
|
+
hours: string | null;
|
|
75
|
+
duration: string | null;
|
|
76
|
+
experienceLevel: string | null;
|
|
77
|
+
hourlyRate: {
|
|
78
|
+
max: number | null;
|
|
79
|
+
min: number | null;
|
|
80
|
+
} | null;
|
|
81
|
+
paymentType: string | null;
|
|
82
|
+
fixedPrice: number | null;
|
|
83
|
+
}>>;
|
|
84
|
+
clientInfo: z.ZodNullable<z.ZodObject<{
|
|
85
|
+
isPaymentVerified: z.ZodNullable<z.ZodBoolean>;
|
|
86
|
+
isPhoneVerified: z.ZodNullable<z.ZodBoolean>;
|
|
87
|
+
numberOfReviews: z.ZodNullable<z.ZodNumber>;
|
|
88
|
+
rating: z.ZodNullable<z.ZodNumber>;
|
|
89
|
+
country: z.ZodNullable<z.ZodString>;
|
|
90
|
+
region: z.ZodNullable<z.ZodString>;
|
|
91
|
+
jobsPosted: z.ZodNullable<z.ZodNumber>;
|
|
92
|
+
totalSpent: z.ZodNullable<z.ZodNumber>;
|
|
93
|
+
numberOfHires: z.ZodNullable<z.ZodNumber>;
|
|
94
|
+
activeEngagements: z.ZodNullable<z.ZodNumber>;
|
|
95
|
+
openJobs: z.ZodNullable<z.ZodNumber>;
|
|
96
|
+
hireRate: z.ZodNullable<z.ZodNumber>;
|
|
97
|
+
memberSince: z.ZodNullable<z.ZodString>;
|
|
98
|
+
companyIndustry: z.ZodNullable<z.ZodString>;
|
|
99
|
+
companySize: z.ZodNullable<z.ZodString>;
|
|
100
|
+
enterpriseClient: z.ZodNullable<z.ZodBoolean>;
|
|
101
|
+
avgHourlyRatePaid: z.ZodNullable<z.ZodNumber>;
|
|
102
|
+
}, "strip", z.ZodTypeAny, {
|
|
103
|
+
country: string | null;
|
|
104
|
+
region: string | null;
|
|
105
|
+
isPaymentVerified: boolean | null;
|
|
106
|
+
isPhoneVerified: boolean | null;
|
|
107
|
+
numberOfReviews: number | null;
|
|
108
|
+
rating: number | null;
|
|
109
|
+
jobsPosted: number | null;
|
|
110
|
+
totalSpent: number | null;
|
|
111
|
+
numberOfHires: number | null;
|
|
112
|
+
activeEngagements: number | null;
|
|
113
|
+
openJobs: number | null;
|
|
114
|
+
hireRate: number | null;
|
|
115
|
+
memberSince: string | null;
|
|
116
|
+
companyIndustry: string | null;
|
|
117
|
+
companySize: string | null;
|
|
118
|
+
enterpriseClient: boolean | null;
|
|
119
|
+
avgHourlyRatePaid: number | null;
|
|
120
|
+
}, {
|
|
121
|
+
country: string | null;
|
|
122
|
+
region: string | null;
|
|
123
|
+
isPaymentVerified: boolean | null;
|
|
124
|
+
isPhoneVerified: boolean | null;
|
|
125
|
+
numberOfReviews: number | null;
|
|
126
|
+
rating: number | null;
|
|
127
|
+
jobsPosted: number | null;
|
|
128
|
+
totalSpent: number | null;
|
|
129
|
+
numberOfHires: number | null;
|
|
130
|
+
activeEngagements: number | null;
|
|
131
|
+
openJobs: number | null;
|
|
132
|
+
hireRate: number | null;
|
|
133
|
+
memberSince: string | null;
|
|
134
|
+
companyIndustry: string | null;
|
|
135
|
+
companySize: string | null;
|
|
136
|
+
enterpriseClient: boolean | null;
|
|
137
|
+
avgHourlyRatePaid: number | null;
|
|
138
|
+
}>>;
|
|
139
|
+
vendorQualifications: z.ZodNullable<z.ZodObject<{
|
|
140
|
+
location: z.ZodNullable<z.ZodString>;
|
|
141
|
+
talentType: z.ZodNullable<z.ZodEnum<["Agency", "Independent", "unspecified"]>>;
|
|
142
|
+
englishLevel: z.ZodNullable<z.ZodString>;
|
|
143
|
+
minimumEarnings: z.ZodNullable<z.ZodNumber>;
|
|
144
|
+
jobSuccessScore: z.ZodNullable<z.ZodString>;
|
|
145
|
+
includeRisingTalent: z.ZodNullable<z.ZodString>;
|
|
146
|
+
}, "strip", z.ZodTypeAny, {
|
|
147
|
+
location: string | null;
|
|
148
|
+
talentType: "unspecified" | "Agency" | "Independent" | null;
|
|
149
|
+
englishLevel: string | null;
|
|
150
|
+
minimumEarnings: number | null;
|
|
151
|
+
jobSuccessScore: string | null;
|
|
152
|
+
includeRisingTalent: string | null;
|
|
153
|
+
}, {
|
|
154
|
+
location: string | null;
|
|
155
|
+
talentType: "unspecified" | "Agency" | "Independent" | null;
|
|
156
|
+
englishLevel: string | null;
|
|
157
|
+
minimumEarnings: number | null;
|
|
158
|
+
jobSuccessScore: string | null;
|
|
159
|
+
includeRisingTalent: string | null;
|
|
160
|
+
}>>;
|
|
161
|
+
processed: z.ZodNullable<z.ZodBoolean>;
|
|
162
|
+
isFeatured: z.ZodNullable<z.ZodBoolean>;
|
|
163
|
+
clientReviews: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
164
|
+
jobTitle: z.ZodNullable<z.ZodString>;
|
|
165
|
+
freelancerName: z.ZodNullable<z.ZodString>;
|
|
166
|
+
freelancerRating: z.ZodNullable<z.ZodNumber>;
|
|
167
|
+
freelancerFeedback: z.ZodNullable<z.ZodString>;
|
|
168
|
+
clientFeedback: z.ZodNullable<z.ZodString>;
|
|
169
|
+
clientFeedbackRating: z.ZodNullable<z.ZodNumber>;
|
|
170
|
+
dateRange: z.ZodNullable<z.ZodString>;
|
|
171
|
+
paymentType: z.ZodNullable<z.ZodString>;
|
|
172
|
+
fixedPrice: z.ZodNullable<z.ZodNumber>;
|
|
173
|
+
hourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
174
|
+
numHours: z.ZodNullable<z.ZodNumber>;
|
|
175
|
+
totalBilled: z.ZodNullable<z.ZodNumber>;
|
|
176
|
+
}, "strip", z.ZodTypeAny, {
|
|
177
|
+
hourlyRate: number | null;
|
|
178
|
+
paymentType: string | null;
|
|
179
|
+
fixedPrice: number | null;
|
|
180
|
+
jobTitle: string | null;
|
|
181
|
+
freelancerName: string | null;
|
|
182
|
+
freelancerRating: number | null;
|
|
183
|
+
freelancerFeedback: string | null;
|
|
184
|
+
clientFeedback: string | null;
|
|
185
|
+
clientFeedbackRating: number | null;
|
|
186
|
+
dateRange: string | null;
|
|
187
|
+
numHours: number | null;
|
|
188
|
+
totalBilled: number | null;
|
|
189
|
+
}, {
|
|
190
|
+
hourlyRate: number | null;
|
|
191
|
+
paymentType: string | null;
|
|
192
|
+
fixedPrice: number | null;
|
|
193
|
+
jobTitle: string | null;
|
|
194
|
+
freelancerName: string | null;
|
|
195
|
+
freelancerRating: number | null;
|
|
196
|
+
freelancerFeedback: string | null;
|
|
197
|
+
clientFeedback: string | null;
|
|
198
|
+
clientFeedbackRating: number | null;
|
|
199
|
+
dateRange: string | null;
|
|
200
|
+
numHours: number | null;
|
|
201
|
+
totalBilled: number | null;
|
|
202
|
+
}>, "many">>;
|
|
203
|
+
region: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"USOnly">, z.ZodLiteral<"UKOnly">, z.ZodLiteral<"Worldwide">]>>;
|
|
204
|
+
bidRange: z.ZodNullable<z.ZodObject<{
|
|
205
|
+
high: z.ZodNullable<z.ZodNumber>;
|
|
206
|
+
avg: z.ZodNullable<z.ZodNumber>;
|
|
207
|
+
low: z.ZodNullable<z.ZodNumber>;
|
|
208
|
+
}, "strip", z.ZodTypeAny, {
|
|
209
|
+
high: number | null;
|
|
210
|
+
low: number | null;
|
|
211
|
+
avg: number | null;
|
|
212
|
+
}, {
|
|
213
|
+
high: number | null;
|
|
214
|
+
low: number | null;
|
|
215
|
+
avg: number | null;
|
|
216
|
+
}>>;
|
|
217
|
+
jobActivity: z.ZodNullable<z.ZodObject<{
|
|
218
|
+
proposals: z.ZodObject<{
|
|
219
|
+
min: z.ZodNullable<z.ZodNumber>;
|
|
220
|
+
max: z.ZodNullable<z.ZodNumber>;
|
|
221
|
+
}, "strip", z.ZodTypeAny, {
|
|
222
|
+
max: number | null;
|
|
223
|
+
min: number | null;
|
|
224
|
+
}, {
|
|
225
|
+
max: number | null;
|
|
226
|
+
min: number | null;
|
|
227
|
+
}>;
|
|
228
|
+
lastViewedByClient: z.ZodNullable<z.ZodString>;
|
|
229
|
+
hires: z.ZodNullable<z.ZodNumber>;
|
|
230
|
+
interviewing: z.ZodNullable<z.ZodNumber>;
|
|
231
|
+
invitesSent: z.ZodNullable<z.ZodNumber>;
|
|
232
|
+
unansweredInvites: z.ZodNullable<z.ZodNumber>;
|
|
233
|
+
updatedAt: z.ZodNullable<z.ZodNumber>;
|
|
234
|
+
}, "strip", z.ZodTypeAny, {
|
|
235
|
+
updatedAt: number | null;
|
|
236
|
+
proposals: {
|
|
237
|
+
max: number | null;
|
|
238
|
+
min: number | null;
|
|
239
|
+
};
|
|
240
|
+
lastViewedByClient: string | null;
|
|
241
|
+
hires: number | null;
|
|
242
|
+
interviewing: number | null;
|
|
243
|
+
invitesSent: number | null;
|
|
244
|
+
unansweredInvites: number | null;
|
|
245
|
+
}, {
|
|
246
|
+
updatedAt: number | null;
|
|
247
|
+
proposals: {
|
|
248
|
+
max: number | null;
|
|
249
|
+
min: number | null;
|
|
250
|
+
};
|
|
251
|
+
lastViewedByClient: string | null;
|
|
252
|
+
hires: number | null;
|
|
253
|
+
interviewing: number | null;
|
|
254
|
+
invitesSent: number | null;
|
|
255
|
+
unansweredInvites: number | null;
|
|
256
|
+
}>>;
|
|
257
|
+
activityUpdates: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
|
|
258
|
+
}, "id" | "title" | "datetime" | "jobUrl">, "strip", z.ZodTypeAny, {
|
|
259
|
+
id: string | null;
|
|
260
|
+
title: string | null;
|
|
261
|
+
datetime: number | null;
|
|
262
|
+
jobUrl: string | null;
|
|
263
|
+
}, {
|
|
264
|
+
id: string | null;
|
|
265
|
+
title: string | null;
|
|
266
|
+
datetime: number | null;
|
|
267
|
+
jobUrl: string | null;
|
|
268
|
+
}>;
|
|
269
|
+
}, "strip", z.ZodTypeAny, {
|
|
270
|
+
status: "failed" | "active" | "pending" | "completed";
|
|
271
|
+
createdAt: number;
|
|
272
|
+
job: {
|
|
273
|
+
id: string | null;
|
|
274
|
+
title: string | null;
|
|
275
|
+
datetime: number | null;
|
|
276
|
+
jobUrl: string | null;
|
|
277
|
+
};
|
|
278
|
+
}, {
|
|
279
|
+
status: "failed" | "active" | "pending" | "completed";
|
|
280
|
+
createdAt: number;
|
|
281
|
+
job: {
|
|
282
|
+
id: string | null;
|
|
283
|
+
title: string | null;
|
|
284
|
+
datetime: number | null;
|
|
285
|
+
jobUrl: string | null;
|
|
286
|
+
};
|
|
287
|
+
}>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.campaignAnalyticsResponseSchema = void 0;
|
|
3
|
+
exports.campaignActivitySchema = exports.campaignAnalyticsResponseSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const lead_1 = require("../lead");
|
|
5
6
|
exports.campaignAnalyticsResponseSchema = zod_1.z.object({
|
|
6
7
|
jobsAnalyzed: zod_1.z.number(),
|
|
7
8
|
contacted: zod_1.z.number(),
|
|
@@ -10,3 +11,13 @@ exports.campaignAnalyticsResponseSchema = zod_1.z.object({
|
|
|
10
11
|
negotiations: zod_1.z.number(),
|
|
11
12
|
won: zod_1.z.number(),
|
|
12
13
|
});
|
|
14
|
+
exports.campaignActivitySchema = zod_1.z.object({
|
|
15
|
+
createdAt: zod_1.z.number(),
|
|
16
|
+
status: zod_1.z.enum(["pending", "active", "completed", "failed"]),
|
|
17
|
+
job: lead_1.upworkJobSchema.pick({
|
|
18
|
+
id: true,
|
|
19
|
+
title: true,
|
|
20
|
+
datetime: true,
|
|
21
|
+
jobUrl: true,
|
|
22
|
+
}),
|
|
23
|
+
});
|
|
@@ -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
|
|
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" | "
|
|
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" | "
|
|
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),
|