lancer-shared 1.0.156 → 1.0.158

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.
@@ -0,0 +1 @@
1
+ export * from './proxy';
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./proxy"), exports);
@@ -0,0 +1,31 @@
1
+ import { z } from 'zod';
2
+ export declare const proxyProviderSchema: z.ZodEnum<["webshare"]>;
3
+ export declare const proxyCountrySchema: z.ZodEnum<["USA"]>;
4
+ export declare const proxySchema: z.ZodObject<{
5
+ host: z.ZodString;
6
+ port: z.ZodNumber;
7
+ username: z.ZodString;
8
+ password: z.ZodString;
9
+ provider: z.ZodEnum<["webshare"]>;
10
+ country: z.ZodEnum<["USA"]>;
11
+ bidderId: z.ZodNullable<z.ZodString>;
12
+ }, "strip", z.ZodTypeAny, {
13
+ port: number;
14
+ country: "USA";
15
+ username: string;
16
+ host: string;
17
+ provider: "webshare";
18
+ password: string;
19
+ bidderId: string | null;
20
+ }, {
21
+ port: number;
22
+ country: "USA";
23
+ username: string;
24
+ host: string;
25
+ provider: "webshare";
26
+ password: string;
27
+ bidderId: string | null;
28
+ }>;
29
+ export type ProxyProvider = z.infer<typeof proxyProviderSchema>;
30
+ export interface Proxy extends z.infer<typeof proxySchema> {
31
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.proxySchema = exports.proxyCountrySchema = exports.proxyProviderSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.proxyProviderSchema = zod_1.z.enum(['webshare']);
6
+ exports.proxyCountrySchema = zod_1.z.enum(['USA']);
7
+ exports.proxySchema = zod_1.z.object({
8
+ host: zod_1.z.string(),
9
+ port: zod_1.z.number(),
10
+ username: zod_1.z.string(),
11
+ password: zod_1.z.string(),
12
+ provider: exports.proxyProviderSchema,
13
+ country: exports.proxyCountrySchema,
14
+ bidderId: zod_1.z.string().nullable(),
15
+ });
@@ -8,12 +8,12 @@ export declare const savedSearchSchema: import("zod").ZodObject<{
8
8
  id: number;
9
9
  url: string;
10
10
  name: string;
11
- createdAt: Date;
12
11
  isActive: boolean;
12
+ createdAt: Date;
13
13
  }, {
14
14
  id: number;
15
15
  url: string;
16
16
  name: string;
17
- createdAt: Date;
18
17
  isActive: boolean | "false" | "true";
18
+ createdAt: Date;
19
19
  }>;
@@ -6,14 +6,14 @@ export declare const scrapePayloadSchema: z.ZodObject<{
6
6
  password: z.ZodString;
7
7
  }, "strip", z.ZodTypeAny, {
8
8
  username: string;
9
- latestJobsUrls: string[];
10
- cookies: any[];
11
9
  password: string;
10
+ cookies: any[];
11
+ latestJobsUrls: string[];
12
12
  }, {
13
13
  username: string;
14
- latestJobsUrls: string[];
15
- cookies: any[];
16
14
  password: string;
15
+ cookies: any[];
16
+ latestJobsUrls: string[];
17
17
  }>;
18
18
  export declare const scrapeUserProfilePayloadSchema: z.ZodObject<{
19
19
  profileUrl: z.ZodString;
@@ -22,12 +22,12 @@ export declare const scrapeUserProfilePayloadSchema: z.ZodObject<{
22
22
  password: z.ZodString;
23
23
  }, "strip", z.ZodTypeAny, {
24
24
  username: string;
25
- cookies: any[];
26
25
  password: string;
26
+ cookies: any[];
27
27
  profileUrl: string;
28
28
  }, {
29
29
  username: string;
30
- cookies: any[];
31
30
  password: string;
31
+ cookies: any[];
32
32
  profileUrl: string;
33
33
  }>;
@@ -40,22 +40,22 @@ export declare const scrapeResultSchema: z.ZodObject<{
40
40
  }, "strip", z.ZodTypeAny, {
41
41
  hours: string | null;
42
42
  duration: string | null;
43
+ paymentType: string | null;
43
44
  experienceLevel: string | null;
44
45
  hourlyRate: {
45
46
  max: number | null;
46
47
  min: number | null;
47
48
  } | null;
48
- paymentType: string | null;
49
49
  fixedPrice: number | null;
50
50
  }, {
51
51
  hours: string | null;
52
52
  duration: string | null;
53
+ paymentType: string | null;
53
54
  experienceLevel: string | null;
54
55
  hourlyRate: {
55
56
  max: number | null;
56
57
  min: number | null;
57
58
  } | null;
58
- paymentType: string | null;
59
59
  fixedPrice: number | null;
60
60
  }>>;
61
61
  clientInfo: z.ZodNullable<z.ZodObject<{
@@ -81,8 +81,10 @@ export declare const scrapeResultSchema: z.ZodObject<{
81
81
  region: string | null;
82
82
  isPaymentVerified: boolean | null;
83
83
  isPhoneVerified: boolean | null;
84
- numberOfReviews: number | null;
84
+ enterpriseClient: boolean | null;
85
+ companySize: string | null;
85
86
  rating: number | null;
87
+ numberOfReviews: number | null;
86
88
  jobsPosted: number | null;
87
89
  totalSpent: number | null;
88
90
  numberOfHires: number | null;
@@ -91,16 +93,16 @@ export declare const scrapeResultSchema: z.ZodObject<{
91
93
  hireRate: number | null;
92
94
  memberSince: string | null;
93
95
  companyIndustry: string | null;
94
- companySize: string | null;
95
- enterpriseClient: boolean | null;
96
96
  avgHourlyRatePaid: number | null;
97
97
  }, {
98
98
  country: string | null;
99
99
  region: string | null;
100
100
  isPaymentVerified: boolean | null;
101
101
  isPhoneVerified: boolean | null;
102
- numberOfReviews: number | null;
102
+ enterpriseClient: boolean | null;
103
+ companySize: string | null;
103
104
  rating: number | null;
105
+ numberOfReviews: number | null;
104
106
  jobsPosted: number | null;
105
107
  totalSpent: number | null;
106
108
  numberOfHires: number | null;
@@ -109,8 +111,6 @@ export declare const scrapeResultSchema: z.ZodObject<{
109
111
  hireRate: number | null;
110
112
  memberSince: string | null;
111
113
  companyIndustry: string | null;
112
- companySize: string | null;
113
- enterpriseClient: boolean | null;
114
114
  avgHourlyRatePaid: number | null;
115
115
  }>>;
116
116
  vendorQualifications: z.ZodNullable<z.ZodObject<{
@@ -122,18 +122,18 @@ export declare const scrapeResultSchema: z.ZodObject<{
122
122
  includeRisingTalent: z.ZodNullable<z.ZodString>;
123
123
  }, "strip", z.ZodTypeAny, {
124
124
  location: string | null;
125
- talentType: "unspecified" | "Agency" | "Independent" | null;
125
+ includeRisingTalent: string | null;
126
+ talentType: "unspecified" | "Independent" | "Agency" | null;
126
127
  englishLevel: string | null;
127
128
  minimumEarnings: number | null;
128
129
  jobSuccessScore: string | null;
129
- includeRisingTalent: string | null;
130
130
  }, {
131
131
  location: string | null;
132
- talentType: "unspecified" | "Agency" | "Independent" | null;
132
+ includeRisingTalent: string | null;
133
+ talentType: "unspecified" | "Independent" | "Agency" | null;
133
134
  englishLevel: string | null;
134
135
  minimumEarnings: number | null;
135
136
  jobSuccessScore: string | null;
136
- includeRisingTalent: string | null;
137
137
  }>>;
138
138
  processed: z.ZodNullable<z.ZodBoolean>;
139
139
  isFeatured: z.ZodNullable<z.ZodBoolean>;
@@ -151,9 +151,9 @@ 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
+ paymentType: string | null;
154
155
  jobTitle: string | null;
155
156
  hourlyRate: number | null;
156
- paymentType: string | null;
157
157
  fixedPrice: number | null;
158
158
  freelancerName: string | null;
159
159
  freelancerRating: number | null;
@@ -164,9 +164,9 @@ export declare const scrapeResultSchema: z.ZodObject<{
164
164
  numHours: number | null;
165
165
  totalBilled: number | null;
166
166
  }, {
167
+ paymentType: string | null;
167
168
  jobTitle: string | null;
168
169
  hourlyRate: number | null;
169
- paymentType: string | null;
170
170
  fixedPrice: number | null;
171
171
  freelancerName: string | null;
172
172
  freelancerRating: number | null;
@@ -238,35 +238,30 @@ export declare const scrapeResultSchema: z.ZodObject<{
238
238
  metadata: {
239
239
  hours: string | null;
240
240
  duration: string | null;
241
+ paymentType: string | null;
241
242
  experienceLevel: string | null;
242
243
  hourlyRate: {
243
244
  max: number | null;
244
245
  min: number | null;
245
246
  } | null;
246
- paymentType: string | null;
247
247
  fixedPrice: number | null;
248
248
  } | null;
249
249
  description: string | null;
250
- region: "USOnly" | "UKOnly" | "Worldwide" | null;
250
+ region: "Worldwide" | "UKOnly" | "USOnly" | null;
251
251
  datetime: number | null;
252
252
  createdAt: number | null;
253
- skills: {
254
- name: string;
255
- }[] | null;
256
- category: string | null;
257
- descriptionLength: number | null;
258
- connectsRequired: number | null;
259
- projectType: string | null;
253
+ isFeatured: boolean | null;
260
254
  projectDuration: string | null;
261
255
  questions: string[] | null;
262
- jobUrl: string | null;
263
256
  clientInfo: {
264
257
  country: string | null;
265
258
  region: string | null;
266
259
  isPaymentVerified: boolean | null;
267
260
  isPhoneVerified: boolean | null;
268
- numberOfReviews: number | null;
261
+ enterpriseClient: boolean | null;
262
+ companySize: string | null;
269
263
  rating: number | null;
264
+ numberOfReviews: number | null;
270
265
  jobsPosted: number | null;
271
266
  totalSpent: number | null;
272
267
  numberOfHires: number | null;
@@ -275,24 +270,29 @@ export declare const scrapeResultSchema: z.ZodObject<{
275
270
  hireRate: number | null;
276
271
  memberSince: string | null;
277
272
  companyIndustry: string | null;
278
- companySize: string | null;
279
- enterpriseClient: boolean | null;
280
273
  avgHourlyRatePaid: number | null;
281
274
  } | null;
282
275
  vendorQualifications: {
283
276
  location: string | null;
284
- talentType: "unspecified" | "Agency" | "Independent" | null;
277
+ includeRisingTalent: string | null;
278
+ talentType: "unspecified" | "Independent" | "Agency" | null;
285
279
  englishLevel: string | null;
286
280
  minimumEarnings: number | null;
287
281
  jobSuccessScore: string | null;
288
- includeRisingTalent: string | null;
289
282
  } | null;
283
+ jobUrl: string | null;
284
+ skills: {
285
+ name: string;
286
+ }[] | null;
287
+ category: string | null;
288
+ descriptionLength: number | null;
289
+ connectsRequired: number | null;
290
+ projectType: string | null;
290
291
  processed: boolean | null;
291
- isFeatured: boolean | null;
292
292
  clientReviews: {
293
+ paymentType: string | null;
293
294
  jobTitle: string | null;
294
295
  hourlyRate: number | null;
295
- paymentType: string | null;
296
296
  fixedPrice: number | null;
297
297
  freelancerName: string | null;
298
298
  freelancerRating: number | null;
@@ -327,35 +327,30 @@ export declare const scrapeResultSchema: z.ZodObject<{
327
327
  metadata: {
328
328
  hours: string | null;
329
329
  duration: string | null;
330
+ paymentType: string | null;
330
331
  experienceLevel: string | null;
331
332
  hourlyRate: {
332
333
  max: number | null;
333
334
  min: number | null;
334
335
  } | null;
335
- paymentType: string | null;
336
336
  fixedPrice: number | null;
337
337
  } | null;
338
338
  description: string | null;
339
- region: "USOnly" | "UKOnly" | "Worldwide" | null;
339
+ region: "Worldwide" | "UKOnly" | "USOnly" | null;
340
340
  datetime: number | null;
341
341
  createdAt: number | null;
342
- skills: {
343
- name: string;
344
- }[] | null;
345
- category: string | null;
346
- descriptionLength: number | null;
347
- connectsRequired: number | null;
348
- projectType: string | null;
342
+ isFeatured: boolean | null;
349
343
  projectDuration: string | null;
350
344
  questions: string[] | null;
351
- jobUrl: string | null;
352
345
  clientInfo: {
353
346
  country: string | null;
354
347
  region: string | null;
355
348
  isPaymentVerified: boolean | null;
356
349
  isPhoneVerified: boolean | null;
357
- numberOfReviews: number | null;
350
+ enterpriseClient: boolean | null;
351
+ companySize: string | null;
358
352
  rating: number | null;
353
+ numberOfReviews: number | null;
359
354
  jobsPosted: number | null;
360
355
  totalSpent: number | null;
361
356
  numberOfHires: number | null;
@@ -364,24 +359,29 @@ export declare const scrapeResultSchema: z.ZodObject<{
364
359
  hireRate: number | null;
365
360
  memberSince: string | null;
366
361
  companyIndustry: string | null;
367
- companySize: string | null;
368
- enterpriseClient: boolean | null;
369
362
  avgHourlyRatePaid: number | null;
370
363
  } | null;
371
364
  vendorQualifications: {
372
365
  location: string | null;
373
- talentType: "unspecified" | "Agency" | "Independent" | null;
366
+ includeRisingTalent: string | null;
367
+ talentType: "unspecified" | "Independent" | "Agency" | null;
374
368
  englishLevel: string | null;
375
369
  minimumEarnings: number | null;
376
370
  jobSuccessScore: string | null;
377
- includeRisingTalent: string | null;
378
371
  } | null;
372
+ jobUrl: string | null;
373
+ skills: {
374
+ name: string;
375
+ }[] | null;
376
+ category: string | null;
377
+ descriptionLength: number | null;
378
+ connectsRequired: number | null;
379
+ projectType: string | null;
379
380
  processed: boolean | null;
380
- isFeatured: boolean | null;
381
381
  clientReviews: {
382
+ paymentType: string | null;
382
383
  jobTitle: string | null;
383
384
  hourlyRate: number | null;
384
- paymentType: string | null;
385
385
  fixedPrice: number | null;
386
386
  freelancerName: string | null;
387
387
  freelancerRating: number | null;
@@ -416,7 +416,7 @@ export declare const scrapeResultSchema: z.ZodObject<{
416
416
  usAccountCookies: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
417
417
  ukAccountCookies: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
418
418
  }, "strip", z.ZodTypeAny, {
419
- region: "USOnly" | "UKOnly" | "Worldwide";
419
+ region: "Worldwide" | "UKOnly" | "USOnly";
420
420
  cookies: any[];
421
421
  jobs: {
422
422
  id: string | null;
@@ -424,35 +424,30 @@ export declare const scrapeResultSchema: z.ZodObject<{
424
424
  metadata: {
425
425
  hours: string | null;
426
426
  duration: string | null;
427
+ paymentType: string | null;
427
428
  experienceLevel: string | null;
428
429
  hourlyRate: {
429
430
  max: number | null;
430
431
  min: number | null;
431
432
  } | null;
432
- paymentType: string | null;
433
433
  fixedPrice: number | null;
434
434
  } | null;
435
435
  description: string | null;
436
- region: "USOnly" | "UKOnly" | "Worldwide" | null;
436
+ region: "Worldwide" | "UKOnly" | "USOnly" | null;
437
437
  datetime: number | null;
438
438
  createdAt: number | null;
439
- skills: {
440
- name: string;
441
- }[] | null;
442
- category: string | null;
443
- descriptionLength: number | null;
444
- connectsRequired: number | null;
445
- projectType: string | null;
439
+ isFeatured: boolean | null;
446
440
  projectDuration: string | null;
447
441
  questions: string[] | null;
448
- jobUrl: string | null;
449
442
  clientInfo: {
450
443
  country: string | null;
451
444
  region: string | null;
452
445
  isPaymentVerified: boolean | null;
453
446
  isPhoneVerified: boolean | null;
454
- numberOfReviews: number | null;
447
+ enterpriseClient: boolean | null;
448
+ companySize: string | null;
455
449
  rating: number | null;
450
+ numberOfReviews: number | null;
456
451
  jobsPosted: number | null;
457
452
  totalSpent: number | null;
458
453
  numberOfHires: number | null;
@@ -461,24 +456,29 @@ export declare const scrapeResultSchema: z.ZodObject<{
461
456
  hireRate: number | null;
462
457
  memberSince: string | null;
463
458
  companyIndustry: string | null;
464
- companySize: string | null;
465
- enterpriseClient: boolean | null;
466
459
  avgHourlyRatePaid: number | null;
467
460
  } | null;
468
461
  vendorQualifications: {
469
462
  location: string | null;
470
- talentType: "unspecified" | "Agency" | "Independent" | null;
463
+ includeRisingTalent: string | null;
464
+ talentType: "unspecified" | "Independent" | "Agency" | null;
471
465
  englishLevel: string | null;
472
466
  minimumEarnings: number | null;
473
467
  jobSuccessScore: string | null;
474
- includeRisingTalent: string | null;
475
468
  } | null;
469
+ jobUrl: string | null;
470
+ skills: {
471
+ name: string;
472
+ }[] | null;
473
+ category: string | null;
474
+ descriptionLength: number | null;
475
+ connectsRequired: number | null;
476
+ projectType: string | null;
476
477
  processed: boolean | null;
477
- isFeatured: boolean | null;
478
478
  clientReviews: {
479
+ paymentType: string | null;
479
480
  jobTitle: string | null;
480
481
  hourlyRate: number | null;
481
- paymentType: string | null;
482
482
  fixedPrice: number | null;
483
483
  freelancerName: string | null;
484
484
  freelancerRating: number | null;
@@ -511,7 +511,7 @@ export declare const scrapeResultSchema: z.ZodObject<{
511
511
  usAccountCookies?: any[] | undefined;
512
512
  ukAccountCookies?: any[] | undefined;
513
513
  }, {
514
- region: "USOnly" | "UKOnly" | "Worldwide";
514
+ region: "Worldwide" | "UKOnly" | "USOnly";
515
515
  cookies: any[];
516
516
  jobs: {
517
517
  id: string | null;
@@ -519,35 +519,30 @@ export declare const scrapeResultSchema: z.ZodObject<{
519
519
  metadata: {
520
520
  hours: string | null;
521
521
  duration: string | null;
522
+ paymentType: string | null;
522
523
  experienceLevel: string | null;
523
524
  hourlyRate: {
524
525
  max: number | null;
525
526
  min: number | null;
526
527
  } | null;
527
- paymentType: string | null;
528
528
  fixedPrice: number | null;
529
529
  } | null;
530
530
  description: string | null;
531
- region: "USOnly" | "UKOnly" | "Worldwide" | null;
531
+ region: "Worldwide" | "UKOnly" | "USOnly" | null;
532
532
  datetime: number | null;
533
533
  createdAt: number | null;
534
- skills: {
535
- name: string;
536
- }[] | null;
537
- category: string | null;
538
- descriptionLength: number | null;
539
- connectsRequired: number | null;
540
- projectType: string | null;
534
+ isFeatured: boolean | null;
541
535
  projectDuration: string | null;
542
536
  questions: string[] | null;
543
- jobUrl: string | null;
544
537
  clientInfo: {
545
538
  country: string | null;
546
539
  region: string | null;
547
540
  isPaymentVerified: boolean | null;
548
541
  isPhoneVerified: boolean | null;
549
- numberOfReviews: number | null;
542
+ enterpriseClient: boolean | null;
543
+ companySize: string | null;
550
544
  rating: number | null;
545
+ numberOfReviews: number | null;
551
546
  jobsPosted: number | null;
552
547
  totalSpent: number | null;
553
548
  numberOfHires: number | null;
@@ -556,24 +551,29 @@ export declare const scrapeResultSchema: z.ZodObject<{
556
551
  hireRate: number | null;
557
552
  memberSince: string | null;
558
553
  companyIndustry: string | null;
559
- companySize: string | null;
560
- enterpriseClient: boolean | null;
561
554
  avgHourlyRatePaid: number | null;
562
555
  } | null;
563
556
  vendorQualifications: {
564
557
  location: string | null;
565
- talentType: "unspecified" | "Agency" | "Independent" | null;
558
+ includeRisingTalent: string | null;
559
+ talentType: "unspecified" | "Independent" | "Agency" | null;
566
560
  englishLevel: string | null;
567
561
  minimumEarnings: number | null;
568
562
  jobSuccessScore: string | null;
569
- includeRisingTalent: string | null;
570
563
  } | null;
564
+ jobUrl: string | null;
565
+ skills: {
566
+ name: string;
567
+ }[] | null;
568
+ category: string | null;
569
+ descriptionLength: number | null;
570
+ connectsRequired: number | null;
571
+ projectType: string | null;
571
572
  processed: boolean | null;
572
- isFeatured: boolean | null;
573
573
  clientReviews: {
574
+ paymentType: string | null;
574
575
  jobTitle: string | null;
575
576
  hourlyRate: number | null;
576
- paymentType: string | null;
577
577
  fixedPrice: number | null;
578
578
  freelancerName: string | null;
579
579
  freelancerRating: number | null;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "commonjs",
3
3
  "name": "lancer-shared",
4
- "version": "1.0.156",
4
+ "version": "1.0.158",
5
5
  "description": "This package contains shared stuff.",
6
6
  "types": "./dist/index.d.ts",
7
7
  "main": "./dist/index.js",