lancer-shared 1.2.152 → 1.2.154
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/bundle.cjs.js
CHANGED
|
@@ -6642,6 +6642,7 @@ const ROUTES = {
|
|
|
6642
6642
|
TEST_SYSTEM_PROMPTS: 'agent/test-system-prompts',
|
|
6643
6643
|
ANALYZE_LEAD: 'agent/analyze-lead',
|
|
6644
6644
|
GENERATE_PROPOSAL: 'agent/generate-proposal',
|
|
6645
|
+
PICK_SPECIALISED_PROFILE: 'agent/pick-specialised-profile',
|
|
6645
6646
|
BID: 'agent/bid',
|
|
6646
6647
|
},
|
|
6647
6648
|
PLANS: {
|
|
@@ -12503,10 +12504,14 @@ const bidderAccountProvider = z.enum([
|
|
|
12503
12504
|
'user-provided',
|
|
12504
12505
|
'lancer-provided',
|
|
12505
12506
|
]);
|
|
12507
|
+
const bidderAccountAgencyContractorSchema = z.object({
|
|
12508
|
+
name: z.string(),
|
|
12509
|
+
specializedProfiles: z.array(z.string()),
|
|
12510
|
+
});
|
|
12506
12511
|
const bidderAccountAgencySchema = z.object({
|
|
12507
12512
|
name: z.string(),
|
|
12508
12513
|
logoUrl: z.string().nullable(),
|
|
12509
|
-
contractors: z.array(
|
|
12514
|
+
contractors: z.array(bidderAccountAgencyContractorSchema),
|
|
12510
12515
|
organizationId: z.string(),
|
|
12511
12516
|
});
|
|
12512
12517
|
const bidderAccountSchema = z.object({
|
|
@@ -12568,7 +12573,7 @@ const acceptUpworkInvitationSchema = z.object({
|
|
|
12568
12573
|
const acceptUpworkInvitationResponseSchema = z.object({
|
|
12569
12574
|
agencyName: z.string(),
|
|
12570
12575
|
photoUrl: z.string(),
|
|
12571
|
-
contractors: z.array(
|
|
12576
|
+
contractors: z.array(bidderAccountAgencyContractorSchema),
|
|
12572
12577
|
});
|
|
12573
12578
|
|
|
12574
12579
|
class BidderAccountAlreadyConnectedException extends Error {
|
|
@@ -13257,6 +13262,7 @@ const bidPayloadProposalDataSchema = z.object({
|
|
|
13257
13262
|
coverLetter: z.string(),
|
|
13258
13263
|
questionAnswerPairs: questionAnswerPairSchema.array().nullable(),
|
|
13259
13264
|
boostingEnabled: z.boolean(),
|
|
13265
|
+
specialisedProfileOptions: z.array(z.string()),
|
|
13260
13266
|
maximumBoost: z.number().nullable(),
|
|
13261
13267
|
biddingHourlyRateStrategy: biddingHourlyRateStrategyEnum,
|
|
13262
13268
|
biddingHourlyRatePercentage: z.number().min(0).max(100).nullable(),
|
|
@@ -13675,6 +13681,15 @@ const agentCalculateSuitabilityRequestSchema = z.object({
|
|
|
13675
13681
|
.array(z.object({ leadId: z.string(), campaignId: z.string() }))
|
|
13676
13682
|
.optional(),
|
|
13677
13683
|
});
|
|
13684
|
+
const agentPickSpecialisedProfileRequestSchema = z.object({
|
|
13685
|
+
jobTitle: z.string(),
|
|
13686
|
+
jobDescription: z.string(),
|
|
13687
|
+
specialisedProfiles: z.array(z.string()),
|
|
13688
|
+
});
|
|
13689
|
+
const agentPickSpecialisedProfileResponseSchema = z.object({
|
|
13690
|
+
profile: z.string(),
|
|
13691
|
+
reason: z.string(),
|
|
13692
|
+
});
|
|
13678
13693
|
const suitabilityRatingSchema = z.object({
|
|
13679
13694
|
rating: z.number(),
|
|
13680
13695
|
reason: z.string(),
|
|
@@ -14768,6 +14783,8 @@ exports.agencyBidProposalDataSchema = agencyBidProposalDataSchema;
|
|
|
14768
14783
|
exports.agentCalculateSuitabilityRequestSchema = agentCalculateSuitabilityRequestSchema;
|
|
14769
14784
|
exports.agentGenerateProposalRequestSchema = agentGenerateProposalRequestSchema;
|
|
14770
14785
|
exports.agentGenerateProposalResponseSchema = agentGenerateProposalResponseSchema;
|
|
14786
|
+
exports.agentPickSpecialisedProfileRequestSchema = agentPickSpecialisedProfileRequestSchema;
|
|
14787
|
+
exports.agentPickSpecialisedProfileResponseSchema = agentPickSpecialisedProfileResponseSchema;
|
|
14771
14788
|
exports.agentStatusSchema = agentStatusSchema;
|
|
14772
14789
|
exports.agentTaskResponseSchema = agentTaskResponseSchema;
|
|
14773
14790
|
exports.aiConfigSchema = aiConfigSchema;
|
|
@@ -14779,6 +14796,7 @@ exports.bidPayloadSchema = bidPayloadSchema;
|
|
|
14779
14796
|
exports.bidRangeSchema = bidRangeSchema;
|
|
14780
14797
|
exports.bidSuccessSchema = bidSuccessSchema;
|
|
14781
14798
|
exports.bidWithWarningEnum = bidWithWarningEnum;
|
|
14799
|
+
exports.bidderAccountAgencyContractorSchema = bidderAccountAgencyContractorSchema;
|
|
14782
14800
|
exports.bidderAccountAgencySchema = bidderAccountAgencySchema;
|
|
14783
14801
|
exports.bidderAccountAlreadyConnectedException = bidderAccountAlreadyConnectedException;
|
|
14784
14802
|
exports.bidderAccountProvider = bidderAccountProvider;
|
|
@@ -220,6 +220,7 @@ export declare const ROUTES: {
|
|
|
220
220
|
readonly TEST_SYSTEM_PROMPTS: "agent/test-system-prompts";
|
|
221
221
|
readonly ANALYZE_LEAD: "agent/analyze-lead";
|
|
222
222
|
readonly GENERATE_PROPOSAL: "agent/generate-proposal";
|
|
223
|
+
readonly PICK_SPECIALISED_PROFILE: "agent/pick-specialised-profile";
|
|
223
224
|
readonly BID: "agent/bid";
|
|
224
225
|
};
|
|
225
226
|
readonly PLANS: {
|
|
@@ -1,20 +1,45 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { Proxy } from '../proxy';
|
|
3
3
|
export declare const bidderAccountProvider: z.ZodEnum<["user-provided", "lancer-provided"]>;
|
|
4
|
+
export declare const bidderAccountAgencyContractorSchema: z.ZodObject<{
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
specializedProfiles: z.ZodArray<z.ZodString, "many">;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
name: string;
|
|
9
|
+
specializedProfiles: string[];
|
|
10
|
+
}, {
|
|
11
|
+
name: string;
|
|
12
|
+
specializedProfiles: string[];
|
|
13
|
+
}>;
|
|
4
14
|
export declare const bidderAccountAgencySchema: z.ZodObject<{
|
|
5
15
|
name: z.ZodString;
|
|
6
16
|
logoUrl: z.ZodNullable<z.ZodString>;
|
|
7
|
-
contractors: z.ZodArray<z.
|
|
17
|
+
contractors: z.ZodArray<z.ZodObject<{
|
|
18
|
+
name: z.ZodString;
|
|
19
|
+
specializedProfiles: z.ZodArray<z.ZodString, "many">;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
name: string;
|
|
22
|
+
specializedProfiles: string[];
|
|
23
|
+
}, {
|
|
24
|
+
name: string;
|
|
25
|
+
specializedProfiles: string[];
|
|
26
|
+
}>, "many">;
|
|
8
27
|
organizationId: z.ZodString;
|
|
9
28
|
}, "strip", z.ZodTypeAny, {
|
|
10
29
|
name: string;
|
|
11
30
|
logoUrl: string | null;
|
|
12
|
-
contractors:
|
|
31
|
+
contractors: {
|
|
32
|
+
name: string;
|
|
33
|
+
specializedProfiles: string[];
|
|
34
|
+
}[];
|
|
13
35
|
organizationId: string;
|
|
14
36
|
}, {
|
|
15
37
|
name: string;
|
|
16
38
|
logoUrl: string | null;
|
|
17
|
-
contractors:
|
|
39
|
+
contractors: {
|
|
40
|
+
name: string;
|
|
41
|
+
specializedProfiles: string[];
|
|
42
|
+
}[];
|
|
18
43
|
organizationId: string;
|
|
19
44
|
}>;
|
|
20
45
|
export declare const bidderAccountSchema: z.ZodObject<{
|
|
@@ -34,17 +59,32 @@ export declare const bidderAccountSchema: z.ZodObject<{
|
|
|
34
59
|
agencies: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
35
60
|
name: z.ZodString;
|
|
36
61
|
logoUrl: z.ZodNullable<z.ZodString>;
|
|
37
|
-
contractors: z.ZodArray<z.
|
|
62
|
+
contractors: z.ZodArray<z.ZodObject<{
|
|
63
|
+
name: z.ZodString;
|
|
64
|
+
specializedProfiles: z.ZodArray<z.ZodString, "many">;
|
|
65
|
+
}, "strip", z.ZodTypeAny, {
|
|
66
|
+
name: string;
|
|
67
|
+
specializedProfiles: string[];
|
|
68
|
+
}, {
|
|
69
|
+
name: string;
|
|
70
|
+
specializedProfiles: string[];
|
|
71
|
+
}>, "many">;
|
|
38
72
|
organizationId: z.ZodString;
|
|
39
73
|
}, "strip", z.ZodTypeAny, {
|
|
40
74
|
name: string;
|
|
41
75
|
logoUrl: string | null;
|
|
42
|
-
contractors:
|
|
76
|
+
contractors: {
|
|
77
|
+
name: string;
|
|
78
|
+
specializedProfiles: string[];
|
|
79
|
+
}[];
|
|
43
80
|
organizationId: string;
|
|
44
81
|
}, {
|
|
45
82
|
name: string;
|
|
46
83
|
logoUrl: string | null;
|
|
47
|
-
contractors:
|
|
84
|
+
contractors: {
|
|
85
|
+
name: string;
|
|
86
|
+
specializedProfiles: string[];
|
|
87
|
+
}[];
|
|
48
88
|
organizationId: string;
|
|
49
89
|
}>, "many">>;
|
|
50
90
|
instanceId: z.ZodNullable<z.ZodString>;
|
|
@@ -68,7 +108,10 @@ export declare const bidderAccountSchema: z.ZodObject<{
|
|
|
68
108
|
agencies: {
|
|
69
109
|
name: string;
|
|
70
110
|
logoUrl: string | null;
|
|
71
|
-
contractors:
|
|
111
|
+
contractors: {
|
|
112
|
+
name: string;
|
|
113
|
+
specializedProfiles: string[];
|
|
114
|
+
}[];
|
|
72
115
|
organizationId: string;
|
|
73
116
|
}[] | null;
|
|
74
117
|
instanceId: string | null;
|
|
@@ -93,7 +136,10 @@ export declare const bidderAccountSchema: z.ZodObject<{
|
|
|
93
136
|
agencies: {
|
|
94
137
|
name: string;
|
|
95
138
|
logoUrl: string | null;
|
|
96
|
-
contractors:
|
|
139
|
+
contractors: {
|
|
140
|
+
name: string;
|
|
141
|
+
specializedProfiles: string[];
|
|
142
|
+
}[];
|
|
97
143
|
organizationId: string;
|
|
98
144
|
}[] | null;
|
|
99
145
|
instanceId: string | null;
|
|
@@ -120,17 +166,32 @@ export declare const createBidderAccountSchema: z.ZodObject<z.objectUtil.extendS
|
|
|
120
166
|
agencies: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
121
167
|
name: z.ZodString;
|
|
122
168
|
logoUrl: z.ZodNullable<z.ZodString>;
|
|
123
|
-
contractors: z.ZodArray<z.
|
|
169
|
+
contractors: z.ZodArray<z.ZodObject<{
|
|
170
|
+
name: z.ZodString;
|
|
171
|
+
specializedProfiles: z.ZodArray<z.ZodString, "many">;
|
|
172
|
+
}, "strip", z.ZodTypeAny, {
|
|
173
|
+
name: string;
|
|
174
|
+
specializedProfiles: string[];
|
|
175
|
+
}, {
|
|
176
|
+
name: string;
|
|
177
|
+
specializedProfiles: string[];
|
|
178
|
+
}>, "many">;
|
|
124
179
|
organizationId: z.ZodString;
|
|
125
180
|
}, "strip", z.ZodTypeAny, {
|
|
126
181
|
name: string;
|
|
127
182
|
logoUrl: string | null;
|
|
128
|
-
contractors:
|
|
183
|
+
contractors: {
|
|
184
|
+
name: string;
|
|
185
|
+
specializedProfiles: string[];
|
|
186
|
+
}[];
|
|
129
187
|
organizationId: string;
|
|
130
188
|
}, {
|
|
131
189
|
name: string;
|
|
132
190
|
logoUrl: string | null;
|
|
133
|
-
contractors:
|
|
191
|
+
contractors: {
|
|
192
|
+
name: string;
|
|
193
|
+
specializedProfiles: string[];
|
|
194
|
+
}[];
|
|
134
195
|
organizationId: string;
|
|
135
196
|
}>, "many">>;
|
|
136
197
|
instanceId: z.ZodNullable<z.ZodString>;
|
|
@@ -151,7 +212,10 @@ export declare const createBidderAccountSchema: z.ZodObject<z.objectUtil.extendS
|
|
|
151
212
|
agencies: {
|
|
152
213
|
name: string;
|
|
153
214
|
logoUrl: string | null;
|
|
154
|
-
contractors:
|
|
215
|
+
contractors: {
|
|
216
|
+
name: string;
|
|
217
|
+
specializedProfiles: string[];
|
|
218
|
+
}[];
|
|
155
219
|
organizationId: string;
|
|
156
220
|
}[] | null;
|
|
157
221
|
region: "all" | "Worldwide" | "UKOnly" | "USOnly";
|
|
@@ -167,7 +231,10 @@ export declare const createBidderAccountSchema: z.ZodObject<z.objectUtil.extendS
|
|
|
167
231
|
agencies: {
|
|
168
232
|
name: string;
|
|
169
233
|
logoUrl: string | null;
|
|
170
|
-
contractors:
|
|
234
|
+
contractors: {
|
|
235
|
+
name: string;
|
|
236
|
+
specializedProfiles: string[];
|
|
237
|
+
}[];
|
|
171
238
|
organizationId: string;
|
|
172
239
|
}[] | null;
|
|
173
240
|
region: "all" | "Worldwide" | "UKOnly" | "USOnly";
|
|
@@ -189,17 +256,32 @@ export declare const updateBidderAccountSchema: z.ZodObject<{
|
|
|
189
256
|
agencies: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
190
257
|
name: z.ZodString;
|
|
191
258
|
logoUrl: z.ZodNullable<z.ZodString>;
|
|
192
|
-
contractors: z.ZodArray<z.
|
|
259
|
+
contractors: z.ZodArray<z.ZodObject<{
|
|
260
|
+
name: z.ZodString;
|
|
261
|
+
specializedProfiles: z.ZodArray<z.ZodString, "many">;
|
|
262
|
+
}, "strip", z.ZodTypeAny, {
|
|
263
|
+
name: string;
|
|
264
|
+
specializedProfiles: string[];
|
|
265
|
+
}, {
|
|
266
|
+
name: string;
|
|
267
|
+
specializedProfiles: string[];
|
|
268
|
+
}>, "many">;
|
|
193
269
|
organizationId: z.ZodString;
|
|
194
270
|
}, "strip", z.ZodTypeAny, {
|
|
195
271
|
name: string;
|
|
196
272
|
logoUrl: string | null;
|
|
197
|
-
contractors:
|
|
273
|
+
contractors: {
|
|
274
|
+
name: string;
|
|
275
|
+
specializedProfiles: string[];
|
|
276
|
+
}[];
|
|
198
277
|
organizationId: string;
|
|
199
278
|
}, {
|
|
200
279
|
name: string;
|
|
201
280
|
logoUrl: string | null;
|
|
202
|
-
contractors:
|
|
281
|
+
contractors: {
|
|
282
|
+
name: string;
|
|
283
|
+
specializedProfiles: string[];
|
|
284
|
+
}[];
|
|
203
285
|
organizationId: string;
|
|
204
286
|
}>, "many">>>;
|
|
205
287
|
instanceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -223,7 +305,10 @@ export declare const updateBidderAccountSchema: z.ZodObject<{
|
|
|
223
305
|
agencies?: {
|
|
224
306
|
name: string;
|
|
225
307
|
logoUrl: string | null;
|
|
226
|
-
contractors:
|
|
308
|
+
contractors: {
|
|
309
|
+
name: string;
|
|
310
|
+
specializedProfiles: string[];
|
|
311
|
+
}[];
|
|
227
312
|
organizationId: string;
|
|
228
313
|
}[] | null | undefined;
|
|
229
314
|
instanceId?: string | null | undefined;
|
|
@@ -247,7 +332,10 @@ export declare const updateBidderAccountSchema: z.ZodObject<{
|
|
|
247
332
|
agencies?: {
|
|
248
333
|
name: string;
|
|
249
334
|
logoUrl: string | null;
|
|
250
|
-
contractors:
|
|
335
|
+
contractors: {
|
|
336
|
+
name: string;
|
|
337
|
+
specializedProfiles: string[];
|
|
338
|
+
}[];
|
|
251
339
|
organizationId: string;
|
|
252
340
|
}[] | null | undefined;
|
|
253
341
|
instanceId?: string | null | undefined;
|
|
@@ -268,7 +356,7 @@ export declare const verifyBidderAccountCredentialsSchema: z.ZodObject<{
|
|
|
268
356
|
port: z.ZodNumber;
|
|
269
357
|
username: z.ZodString;
|
|
270
358
|
password: z.ZodString;
|
|
271
|
-
provider: z.ZodEnum<["webshare", "decodo", "proxy-cheap"]>;
|
|
359
|
+
provider: z.ZodEnum<["webshare", "decodo", "proxy-cheap", "rayobyte"]>;
|
|
272
360
|
fraudScore: z.ZodNullable<z.ZodNumber>;
|
|
273
361
|
claimedCountry: z.ZodEnum<["US", "CA", "GB", "AF", "AX", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR", "AM", "AW", "AU", "AT", "AZ", "BS", "BH", "BD", "BB", "BY", "BE", "BZ", "BJ", "BM", "BT", "BO", "BA", "BW", "BV", "BR", "IO", "BN", "BG", "BF", "BI", "KH", "CM", "CV", "KY", "CF", "TD", "CL", "CN", "CX", "CC", "CO", "KM", "CG", "CD", "CK", "CR", "CI", "HR", "CU", "CY", "CZ", "DK", "DJ", "DM", "DO", "EC", "EG", "SV", "GQ", "ER", "EE", "ET", "FK", "FO", "FJ", "FI", "FR", "GF", "PF", "TF", "GA", "GM", "GE", "DE", "GH", "GI", "GR", "GL", "GD", "GP", "GU", "GT", "GG", "GN", "GW", "GY", "HT", "HM", "VA", "HN", "HK", "HU", "IS", "IN", "ID", "IR", "IQ", "IE", "IM", "IL", "IT", "JM", "JP", "JE", "JO", "KZ", "KE", "KI", "KP", "KR", "KW", "KG", "LA", "LV", "LB", "LS", "LR", "LY", "LI", "LT", "LU", "MO", "MK", "MG", "MW", "MY", "MV", "ML", "MT", "MH", "MQ", "MR", "MU", "YT", "MX", "FM", "MD", "MC", "MN", "ME", "MS", "MA", "MZ", "MM", "NA", "NR", "NP", "NL", "AN", "NC", "NZ", "NI", "NE", "NG", "NU", "NF", "MP", "NO", "OM", "PK", "PW", "PS", "PA", "PG", "PY", "PE", "PH", "PN", "PL", "PT", "PR", "QA", "RE", "RO", "RU", "RW", "BL", "SH", "KN", "LC", "MF", "PM", "VC", "WS", "SM", "ST", "SA", "SN", "RS", "SC", "SL", "SG", "SK", "SI", "SB", "SO", "ZA", "GS", "ES", "LK", "SD", "SR", "SJ", "SZ", "SE", "CH", "SY", "TW", "TJ", "TZ", "TH", "TL", "TG", "TK", "TO", "TT", "TN", "TR", "TM", "TC", "TV", "UG", "UA", "AE", "UM", "UY", "UZ", "VU", "VE", "VN", "VG", "VI", "WF", "EH", "YE", "ZM", "ZW"]>;
|
|
274
362
|
status: z.ZodNullable<z.ZodEnum<["invalid", "valid", "pending_validation"]>>;
|
|
@@ -279,7 +367,7 @@ export declare const verifyBidderAccountCredentialsSchema: z.ZodObject<{
|
|
|
279
367
|
status: "valid" | "invalid" | "pending_validation" | null;
|
|
280
368
|
type: "rotating" | "static";
|
|
281
369
|
id: string;
|
|
282
|
-
provider: "webshare" | "decodo" | "proxy-cheap";
|
|
370
|
+
provider: "webshare" | "decodo" | "proxy-cheap" | "rayobyte";
|
|
283
371
|
password: string;
|
|
284
372
|
externalId: string;
|
|
285
373
|
host: string;
|
|
@@ -293,7 +381,7 @@ export declare const verifyBidderAccountCredentialsSchema: z.ZodObject<{
|
|
|
293
381
|
status: "valid" | "invalid" | "pending_validation" | null;
|
|
294
382
|
type: "rotating" | "static";
|
|
295
383
|
id: string;
|
|
296
|
-
provider: "webshare" | "decodo" | "proxy-cheap";
|
|
384
|
+
provider: "webshare" | "decodo" | "proxy-cheap" | "rayobyte";
|
|
297
385
|
password: string;
|
|
298
386
|
externalId: string;
|
|
299
387
|
host: string;
|
|
@@ -313,7 +401,7 @@ export declare const verifyBidderAccountCredentialsSchema: z.ZodObject<{
|
|
|
313
401
|
status: "valid" | "invalid" | "pending_validation" | null;
|
|
314
402
|
type: "rotating" | "static";
|
|
315
403
|
id: string;
|
|
316
|
-
provider: "webshare" | "decodo" | "proxy-cheap";
|
|
404
|
+
provider: "webshare" | "decodo" | "proxy-cheap" | "rayobyte";
|
|
317
405
|
password: string;
|
|
318
406
|
externalId: string;
|
|
319
407
|
host: string;
|
|
@@ -333,7 +421,7 @@ export declare const verifyBidderAccountCredentialsSchema: z.ZodObject<{
|
|
|
333
421
|
status: "valid" | "invalid" | "pending_validation" | null;
|
|
334
422
|
type: "rotating" | "static";
|
|
335
423
|
id: string;
|
|
336
|
-
provider: "webshare" | "decodo" | "proxy-cheap";
|
|
424
|
+
provider: "webshare" | "decodo" | "proxy-cheap" | "rayobyte";
|
|
337
425
|
password: string;
|
|
338
426
|
externalId: string;
|
|
339
427
|
host: string;
|
|
@@ -351,24 +439,42 @@ export declare const verifyBidderAccountCredentialsResponseSchema: z.ZodObject<{
|
|
|
351
439
|
agencies: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
352
440
|
name: z.ZodString;
|
|
353
441
|
logoUrl: z.ZodNullable<z.ZodString>;
|
|
354
|
-
contractors: z.ZodArray<z.
|
|
442
|
+
contractors: z.ZodArray<z.ZodObject<{
|
|
443
|
+
name: z.ZodString;
|
|
444
|
+
specializedProfiles: z.ZodArray<z.ZodString, "many">;
|
|
445
|
+
}, "strip", z.ZodTypeAny, {
|
|
446
|
+
name: string;
|
|
447
|
+
specializedProfiles: string[];
|
|
448
|
+
}, {
|
|
449
|
+
name: string;
|
|
450
|
+
specializedProfiles: string[];
|
|
451
|
+
}>, "many">;
|
|
355
452
|
organizationId: z.ZodString;
|
|
356
453
|
}, "strip", z.ZodTypeAny, {
|
|
357
454
|
name: string;
|
|
358
455
|
logoUrl: string | null;
|
|
359
|
-
contractors:
|
|
456
|
+
contractors: {
|
|
457
|
+
name: string;
|
|
458
|
+
specializedProfiles: string[];
|
|
459
|
+
}[];
|
|
360
460
|
organizationId: string;
|
|
361
461
|
}, {
|
|
362
462
|
name: string;
|
|
363
463
|
logoUrl: string | null;
|
|
364
|
-
contractors:
|
|
464
|
+
contractors: {
|
|
465
|
+
name: string;
|
|
466
|
+
specializedProfiles: string[];
|
|
467
|
+
}[];
|
|
365
468
|
organizationId: string;
|
|
366
469
|
}>, "many">>;
|
|
367
470
|
}, "strip", z.ZodTypeAny, {
|
|
368
471
|
agencies: {
|
|
369
472
|
name: string;
|
|
370
473
|
logoUrl: string | null;
|
|
371
|
-
contractors:
|
|
474
|
+
contractors: {
|
|
475
|
+
name: string;
|
|
476
|
+
specializedProfiles: string[];
|
|
477
|
+
}[];
|
|
372
478
|
organizationId: string;
|
|
373
479
|
}[] | null;
|
|
374
480
|
accountName: string | null;
|
|
@@ -377,7 +483,10 @@ export declare const verifyBidderAccountCredentialsResponseSchema: z.ZodObject<{
|
|
|
377
483
|
agencies: {
|
|
378
484
|
name: string;
|
|
379
485
|
logoUrl: string | null;
|
|
380
|
-
contractors:
|
|
486
|
+
contractors: {
|
|
487
|
+
name: string;
|
|
488
|
+
specializedProfiles: string[];
|
|
489
|
+
}[];
|
|
381
490
|
organizationId: string;
|
|
382
491
|
}[] | null;
|
|
383
492
|
accountName: string | null;
|
|
@@ -393,13 +502,28 @@ export declare const acceptUpworkInvitationSchema: z.ZodObject<{
|
|
|
393
502
|
export declare const acceptUpworkInvitationResponseSchema: z.ZodObject<{
|
|
394
503
|
agencyName: z.ZodString;
|
|
395
504
|
photoUrl: z.ZodString;
|
|
396
|
-
contractors: z.ZodArray<z.
|
|
505
|
+
contractors: z.ZodArray<z.ZodObject<{
|
|
506
|
+
name: z.ZodString;
|
|
507
|
+
specializedProfiles: z.ZodArray<z.ZodString, "many">;
|
|
508
|
+
}, "strip", z.ZodTypeAny, {
|
|
509
|
+
name: string;
|
|
510
|
+
specializedProfiles: string[];
|
|
511
|
+
}, {
|
|
512
|
+
name: string;
|
|
513
|
+
specializedProfiles: string[];
|
|
514
|
+
}>, "many">;
|
|
397
515
|
}, "strip", z.ZodTypeAny, {
|
|
398
|
-
contractors:
|
|
516
|
+
contractors: {
|
|
517
|
+
name: string;
|
|
518
|
+
specializedProfiles: string[];
|
|
519
|
+
}[];
|
|
399
520
|
agencyName: string;
|
|
400
521
|
photoUrl: string;
|
|
401
522
|
}, {
|
|
402
|
-
contractors:
|
|
523
|
+
contractors: {
|
|
524
|
+
name: string;
|
|
525
|
+
specializedProfiles: string[];
|
|
526
|
+
}[];
|
|
403
527
|
agencyName: string;
|
|
404
528
|
photoUrl: string;
|
|
405
529
|
}>;
|
|
@@ -412,5 +536,6 @@ export type UpdateBidderAccount = z.infer<typeof updateBidderAccountSchema>;
|
|
|
412
536
|
export type VerifyBidderAccountCredentials = z.infer<typeof verifyBidderAccountCredentialsSchema>;
|
|
413
537
|
export type VerifyBidderAccountCredentialsResponse = z.infer<typeof verifyBidderAccountCredentialsResponseSchema>;
|
|
414
538
|
export type BidderAccountAgency = z.infer<typeof bidderAccountAgencySchema>;
|
|
539
|
+
export type BidderAccountAgencyContractor = z.infer<typeof bidderAccountAgencyContractorSchema>;
|
|
415
540
|
export type AcceptUpworkInvitation = z.infer<typeof acceptUpworkInvitationSchema>;
|
|
416
541
|
export type AcceptUpworkInvitationResponse = z.infer<typeof acceptUpworkInvitationResponseSchema>;
|
|
@@ -998,12 +998,39 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
|
|
|
998
998
|
leadId: string;
|
|
999
999
|
}[] | undefined;
|
|
1000
1000
|
}>;
|
|
1001
|
+
export declare const agentPickSpecialisedProfileRequestSchema: z.ZodObject<{
|
|
1002
|
+
jobTitle: z.ZodString;
|
|
1003
|
+
jobDescription: z.ZodString;
|
|
1004
|
+
specialisedProfiles: z.ZodArray<z.ZodString, "many">;
|
|
1005
|
+
}, "strip", z.ZodTypeAny, {
|
|
1006
|
+
jobTitle: string;
|
|
1007
|
+
jobDescription: string;
|
|
1008
|
+
specialisedProfiles: string[];
|
|
1009
|
+
}, {
|
|
1010
|
+
jobTitle: string;
|
|
1011
|
+
jobDescription: string;
|
|
1012
|
+
specialisedProfiles: string[];
|
|
1013
|
+
}>;
|
|
1014
|
+
export declare const agentPickSpecialisedProfileResponseSchema: z.ZodObject<{
|
|
1015
|
+
profile: z.ZodString;
|
|
1016
|
+
reason: z.ZodString;
|
|
1017
|
+
}, "strip", z.ZodTypeAny, {
|
|
1018
|
+
profile: string;
|
|
1019
|
+
reason: string;
|
|
1020
|
+
}, {
|
|
1021
|
+
profile: string;
|
|
1022
|
+
reason: string;
|
|
1023
|
+
}>;
|
|
1001
1024
|
export interface AgentCalculateSuitabilityRequest extends z.infer<typeof agentCalculateSuitabilityRequestSchema> {
|
|
1002
1025
|
}
|
|
1003
1026
|
export interface AgentGenerateProposalRequest extends z.infer<typeof agentGenerateProposalRequestSchema> {
|
|
1004
1027
|
}
|
|
1005
1028
|
export interface AgentGenerateProposalResponse extends z.infer<typeof agentGenerateProposalResponseSchema> {
|
|
1006
1029
|
}
|
|
1030
|
+
export interface AgentPickSpecialisedProfileRequest extends z.infer<typeof agentPickSpecialisedProfileRequestSchema> {
|
|
1031
|
+
}
|
|
1032
|
+
export interface AgentPickSpecialisedProfileResponse extends z.infer<typeof agentPickSpecialisedProfileResponseSchema> {
|
|
1033
|
+
}
|
|
1007
1034
|
export declare const suitabilityRatingSchema: z.ZodObject<{
|
|
1008
1035
|
rating: z.ZodNumber;
|
|
1009
1036
|
reason: z.ZodString;
|
|
@@ -13,6 +13,7 @@ export declare const bidPayloadProposalDataSchema: z.ZodObject<{
|
|
|
13
13
|
answer: string;
|
|
14
14
|
}>, "many">>;
|
|
15
15
|
boostingEnabled: z.ZodBoolean;
|
|
16
|
+
specialisedProfileOptions: z.ZodArray<z.ZodString, "many">;
|
|
16
17
|
maximumBoost: z.ZodNullable<z.ZodNumber>;
|
|
17
18
|
biddingHourlyRateStrategy: z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>;
|
|
18
19
|
biddingHourlyRatePercentage: z.ZodNullable<z.ZodNumber>;
|
|
@@ -28,6 +29,7 @@ export declare const bidPayloadProposalDataSchema: z.ZodObject<{
|
|
|
28
29
|
answer: string;
|
|
29
30
|
}[] | null;
|
|
30
31
|
boostingEnabled: boolean;
|
|
32
|
+
specialisedProfileOptions: string[];
|
|
31
33
|
maximumBoost: number | null;
|
|
32
34
|
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
33
35
|
biddingHourlyRatePercentage: number | null;
|
|
@@ -43,6 +45,7 @@ export declare const bidPayloadProposalDataSchema: z.ZodObject<{
|
|
|
43
45
|
answer: string;
|
|
44
46
|
}[] | null;
|
|
45
47
|
boostingEnabled: boolean;
|
|
48
|
+
specialisedProfileOptions: string[];
|
|
46
49
|
maximumBoost: number | null;
|
|
47
50
|
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
48
51
|
biddingHourlyRatePercentage: number | null;
|
|
@@ -65,6 +68,7 @@ export declare const freelancerBidProposalDataSchema: z.ZodObject<{
|
|
|
65
68
|
answer: string;
|
|
66
69
|
}>, "many">>;
|
|
67
70
|
boostingEnabled: z.ZodBoolean;
|
|
71
|
+
specialisedProfileOptions: z.ZodArray<z.ZodString, "many">;
|
|
68
72
|
maximumBoost: z.ZodNullable<z.ZodNumber>;
|
|
69
73
|
biddingHourlyRateStrategy: z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>;
|
|
70
74
|
biddingHourlyRatePercentage: z.ZodNullable<z.ZodNumber>;
|
|
@@ -80,6 +84,7 @@ export declare const freelancerBidProposalDataSchema: z.ZodObject<{
|
|
|
80
84
|
answer: string;
|
|
81
85
|
}[] | null;
|
|
82
86
|
boostingEnabled: boolean;
|
|
87
|
+
specialisedProfileOptions: string[];
|
|
83
88
|
maximumBoost: number | null;
|
|
84
89
|
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
85
90
|
biddingHourlyRatePercentage: number | null;
|
|
@@ -95,6 +100,7 @@ export declare const freelancerBidProposalDataSchema: z.ZodObject<{
|
|
|
95
100
|
answer: string;
|
|
96
101
|
}[] | null;
|
|
97
102
|
boostingEnabled: boolean;
|
|
103
|
+
specialisedProfileOptions: string[];
|
|
98
104
|
maximumBoost: number | null;
|
|
99
105
|
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
100
106
|
biddingHourlyRatePercentage: number | null;
|
|
@@ -117,6 +123,7 @@ export declare const agencyBidProposalDataSchema: z.ZodObject<z.objectUtil.exten
|
|
|
117
123
|
answer: string;
|
|
118
124
|
}>, "many">>;
|
|
119
125
|
boostingEnabled: z.ZodBoolean;
|
|
126
|
+
specialisedProfileOptions: z.ZodArray<z.ZodString, "many">;
|
|
120
127
|
maximumBoost: z.ZodNullable<z.ZodNumber>;
|
|
121
128
|
biddingHourlyRateStrategy: z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>;
|
|
122
129
|
biddingHourlyRatePercentage: z.ZodNullable<z.ZodNumber>;
|
|
@@ -136,6 +143,7 @@ export declare const agencyBidProposalDataSchema: z.ZodObject<z.objectUtil.exten
|
|
|
136
143
|
answer: string;
|
|
137
144
|
}[] | null;
|
|
138
145
|
boostingEnabled: boolean;
|
|
146
|
+
specialisedProfileOptions: string[];
|
|
139
147
|
maximumBoost: number | null;
|
|
140
148
|
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
141
149
|
biddingHourlyRatePercentage: number | null;
|
|
@@ -154,6 +162,7 @@ export declare const agencyBidProposalDataSchema: z.ZodObject<z.objectUtil.exten
|
|
|
154
162
|
answer: string;
|
|
155
163
|
}[] | null;
|
|
156
164
|
boostingEnabled: boolean;
|
|
165
|
+
specialisedProfileOptions: string[];
|
|
157
166
|
maximumBoost: number | null;
|
|
158
167
|
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
159
168
|
biddingHourlyRatePercentage: number | null;
|
|
@@ -1669,6 +1678,7 @@ export declare const agencyBidPayloadSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
1669
1678
|
answer: string;
|
|
1670
1679
|
}>, "many">>;
|
|
1671
1680
|
boostingEnabled: z.ZodBoolean;
|
|
1681
|
+
specialisedProfileOptions: z.ZodArray<z.ZodString, "many">;
|
|
1672
1682
|
maximumBoost: z.ZodNullable<z.ZodNumber>;
|
|
1673
1683
|
biddingHourlyRateStrategy: z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>;
|
|
1674
1684
|
biddingHourlyRatePercentage: z.ZodNullable<z.ZodNumber>;
|
|
@@ -1688,6 +1698,7 @@ export declare const agencyBidPayloadSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
1688
1698
|
answer: string;
|
|
1689
1699
|
}[] | null;
|
|
1690
1700
|
boostingEnabled: boolean;
|
|
1701
|
+
specialisedProfileOptions: string[];
|
|
1691
1702
|
maximumBoost: number | null;
|
|
1692
1703
|
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
1693
1704
|
biddingHourlyRatePercentage: number | null;
|
|
@@ -1706,6 +1717,7 @@ export declare const agencyBidPayloadSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
1706
1717
|
answer: string;
|
|
1707
1718
|
}[] | null;
|
|
1708
1719
|
boostingEnabled: boolean;
|
|
1720
|
+
specialisedProfileOptions: string[];
|
|
1709
1721
|
maximumBoost: number | null;
|
|
1710
1722
|
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
1711
1723
|
biddingHourlyRatePercentage: number | null;
|
|
@@ -1866,6 +1878,7 @@ export declare const agencyBidPayloadSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
1866
1878
|
answer: string;
|
|
1867
1879
|
}[] | null;
|
|
1868
1880
|
boostingEnabled: boolean;
|
|
1881
|
+
specialisedProfileOptions: string[];
|
|
1869
1882
|
maximumBoost: number | null;
|
|
1870
1883
|
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
1871
1884
|
biddingHourlyRatePercentage: number | null;
|
|
@@ -2026,6 +2039,7 @@ export declare const agencyBidPayloadSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
2026
2039
|
answer: string;
|
|
2027
2040
|
}[] | null;
|
|
2028
2041
|
boostingEnabled: boolean;
|
|
2042
|
+
specialisedProfileOptions: string[];
|
|
2029
2043
|
maximumBoost: number | null;
|
|
2030
2044
|
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
2031
2045
|
biddingHourlyRatePercentage: number | null;
|
|
@@ -2656,6 +2670,7 @@ export declare const freelancerBidPayloadSchema: z.ZodObject<z.objectUtil.extend
|
|
|
2656
2670
|
answer: string;
|
|
2657
2671
|
}>, "many">>;
|
|
2658
2672
|
boostingEnabled: z.ZodBoolean;
|
|
2673
|
+
specialisedProfileOptions: z.ZodArray<z.ZodString, "many">;
|
|
2659
2674
|
maximumBoost: z.ZodNullable<z.ZodNumber>;
|
|
2660
2675
|
biddingHourlyRateStrategy: z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>;
|
|
2661
2676
|
biddingHourlyRatePercentage: z.ZodNullable<z.ZodNumber>;
|
|
@@ -2671,6 +2686,7 @@ export declare const freelancerBidPayloadSchema: z.ZodObject<z.objectUtil.extend
|
|
|
2671
2686
|
answer: string;
|
|
2672
2687
|
}[] | null;
|
|
2673
2688
|
boostingEnabled: boolean;
|
|
2689
|
+
specialisedProfileOptions: string[];
|
|
2674
2690
|
maximumBoost: number | null;
|
|
2675
2691
|
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
2676
2692
|
biddingHourlyRatePercentage: number | null;
|
|
@@ -2686,6 +2702,7 @@ export declare const freelancerBidPayloadSchema: z.ZodObject<z.objectUtil.extend
|
|
|
2686
2702
|
answer: string;
|
|
2687
2703
|
}[] | null;
|
|
2688
2704
|
boostingEnabled: boolean;
|
|
2705
|
+
specialisedProfileOptions: string[];
|
|
2689
2706
|
maximumBoost: number | null;
|
|
2690
2707
|
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
2691
2708
|
biddingHourlyRatePercentage: number | null;
|
|
@@ -2843,6 +2860,7 @@ export declare const freelancerBidPayloadSchema: z.ZodObject<z.objectUtil.extend
|
|
|
2843
2860
|
answer: string;
|
|
2844
2861
|
}[] | null;
|
|
2845
2862
|
boostingEnabled: boolean;
|
|
2863
|
+
specialisedProfileOptions: string[];
|
|
2846
2864
|
maximumBoost: number | null;
|
|
2847
2865
|
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
2848
2866
|
biddingHourlyRatePercentage: number | null;
|
|
@@ -3000,6 +3018,7 @@ export declare const freelancerBidPayloadSchema: z.ZodObject<z.objectUtil.extend
|
|
|
3000
3018
|
answer: string;
|
|
3001
3019
|
}[] | null;
|
|
3002
3020
|
boostingEnabled: boolean;
|
|
3021
|
+
specialisedProfileOptions: string[];
|
|
3003
3022
|
maximumBoost: number | null;
|
|
3004
3023
|
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
3005
3024
|
biddingHourlyRatePercentage: number | null;
|