lancer-shared 1.2.152 → 1.2.153

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.
@@ -12503,10 +12503,14 @@ const bidderAccountProvider = z.enum([
12503
12503
  'user-provided',
12504
12504
  'lancer-provided',
12505
12505
  ]);
12506
+ const bidderAccountAgencyContractorSchema = z.object({
12507
+ name: z.string(),
12508
+ specializedProfiles: z.array(z.string()),
12509
+ });
12506
12510
  const bidderAccountAgencySchema = z.object({
12507
12511
  name: z.string(),
12508
12512
  logoUrl: z.string().nullable(),
12509
- contractors: z.array(z.string()),
12513
+ contractors: z.array(bidderAccountAgencyContractorSchema),
12510
12514
  organizationId: z.string(),
12511
12515
  });
12512
12516
  const bidderAccountSchema = z.object({
@@ -12568,7 +12572,7 @@ const acceptUpworkInvitationSchema = z.object({
12568
12572
  const acceptUpworkInvitationResponseSchema = z.object({
12569
12573
  agencyName: z.string(),
12570
12574
  photoUrl: z.string(),
12571
- contractors: z.array(z.string()),
12575
+ contractors: z.array(bidderAccountAgencyContractorSchema),
12572
12576
  });
12573
12577
 
12574
12578
  class BidderAccountAlreadyConnectedException extends Error {
@@ -14779,6 +14783,7 @@ exports.bidPayloadSchema = bidPayloadSchema;
14779
14783
  exports.bidRangeSchema = bidRangeSchema;
14780
14784
  exports.bidSuccessSchema = bidSuccessSchema;
14781
14785
  exports.bidWithWarningEnum = bidWithWarningEnum;
14786
+ exports.bidderAccountAgencyContractorSchema = bidderAccountAgencyContractorSchema;
14782
14787
  exports.bidderAccountAgencySchema = bidderAccountAgencySchema;
14783
14788
  exports.bidderAccountAlreadyConnectedException = bidderAccountAlreadyConnectedException;
14784
14789
  exports.bidderAccountProvider = bidderAccountProvider;
@@ -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.ZodString, "many">;
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: string[];
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: string[];
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.ZodString, "many">;
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: string[];
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: string[];
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: string[];
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: string[];
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.ZodString, "many">;
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: string[];
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: string[];
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: string[];
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: string[];
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.ZodString, "many">;
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: string[];
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: string[];
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: string[];
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: string[];
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.ZodString, "many">;
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: string[];
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: string[];
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: string[];
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: string[];
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.ZodString, "many">;
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: string[];
516
+ contractors: {
517
+ name: string;
518
+ specializedProfiles: string[];
519
+ }[];
399
520
  agencyName: string;
400
521
  photoUrl: string;
401
522
  }, {
402
- contractors: string[];
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>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lancer-shared",
3
- "version": "1.2.152",
3
+ "version": "1.2.153",
4
4
  "description": "This package contains shared stuff.",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "dist/bundle.cjs.js",