lancer-shared 1.2.122 → 1.2.123

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.
@@ -11561,6 +11561,83 @@ class NoGoogleOAuthTokensFoundException extends Error {
11561
11561
  }
11562
11562
  const noGoogleOAuthTokensFoundException = (message) => new NoGoogleOAuthTokensFoundException(message);
11563
11563
 
11564
+ const scraperAccountType = z.enum([
11565
+ 'feed',
11566
+ 'job',
11567
+ 'status',
11568
+ 'activity',
11569
+ 'profile',
11570
+ 'unauthenticated',
11571
+ ]);
11572
+ const scraperAccountRegionEnum = z.enum([
11573
+ 'Worldwide',
11574
+ 'UKOnly',
11575
+ 'USOnly',
11576
+ ]);
11577
+ const scraperAccountSchema = z.object({
11578
+ id: z.string(),
11579
+ isActive: z.boolean(),
11580
+ region: scraperAccountRegionEnum,
11581
+ email: z.string().email(),
11582
+ password: z.string(),
11583
+ securityQuestionAnswer: z.string().nullable(),
11584
+ lastUsed: z.number().nullable(),
11585
+ multiloginProfileId: z.string().nullable(),
11586
+ proxyId: z.string().nullable(),
11587
+ type: scraperAccountType,
11588
+ createdAt: z.number(),
11589
+ updatedAt: z.number(),
11590
+ isProtected: z.boolean().optional(),
11591
+ });
11592
+ const createScraperAccountSchema = scraperAccountSchema
11593
+ .pick({
11594
+ region: true,
11595
+ email: true,
11596
+ password: true,
11597
+ securityQuestionAnswer: true,
11598
+ isActive: true,
11599
+ type: true,
11600
+ })
11601
+ .extend({
11602
+ proxyCountry: proxyCountryEnum.optional(),
11603
+ rotatingProxy: z.boolean().optional(),
11604
+ });
11605
+ const updateScraperAccountSchema = scraperAccountSchema
11606
+ .omit({
11607
+ id: true,
11608
+ })
11609
+ .partial();
11610
+
11611
+ const agentStatusSchema = z.enum([
11612
+ "suitabilityPending",
11613
+ "suitabilityProcessing",
11614
+ "suitabilityComplete",
11615
+ "suitabilityFailed",
11616
+ "proposalProcessing",
11617
+ "proposalComplete",
11618
+ "proposalFailed",
11619
+ "biddingProcessing",
11620
+ "biddingComplete",
11621
+ "biddingFailed",
11622
+ "jobArchived",
11623
+ ]);
11624
+ const leadStatusSchema = z.enum([
11625
+ "leads",
11626
+ "contacted",
11627
+ "viewed",
11628
+ "replied",
11629
+ "won",
11630
+ ]);
11631
+ const updateLeadStatusSchema = z.object({
11632
+ leadId: z.string(),
11633
+ organizationId: z.string(),
11634
+ campaignId: z.string(),
11635
+ status: leadStatusSchema,
11636
+ proposalId: z.string().optional(),
11637
+ userId: z.string().optional(),
11638
+ wonAmount: z.number().optional(),
11639
+ });
11640
+
11564
11641
  const booleanSchema = z
11565
11642
  .union([z.boolean(), z.literal("true"), z.literal("false")])
11566
11643
  .transform((value) => value === true || value === "true");
@@ -11909,6 +11986,8 @@ const feedJobSchemaV2 = objectType({
11909
11986
  uid: stringType(),
11910
11987
  ciphertext: stringType(),
11911
11988
  title: stringType(),
11989
+ category: stringType().optional(),
11990
+ jobUrl: stringType().optional(),
11912
11991
  description: stringType(),
11913
11992
  createdOn: stringType(),
11914
11993
  publishedOn: stringType(),
@@ -11923,7 +12002,7 @@ const feedJobSchemaV2 = objectType({
11923
12002
  freelancersToHire: numberType(),
11924
12003
  relevanceEncoded: stringType(),
11925
12004
  enterpriseJob: booleanType(),
11926
- tierText: stringType(),
12005
+ tierText: stringType().nullable(),
11927
12006
  isApplied: booleanType(),
11928
12007
  proposalsTier: stringType().nullable(),
11929
12008
  premium: booleanType(),
@@ -12667,78 +12746,6 @@ const feedJobSchema = objectType({
12667
12746
  region: regionSchema.nullable(),
12668
12747
  });
12669
12748
 
12670
- const scraperAccountType = z.enum([
12671
- 'feed',
12672
- 'job',
12673
- 'status',
12674
- 'activity',
12675
- 'profile',
12676
- 'unauthenticated',
12677
- ]);
12678
- const scraperAccountSchema = z.object({
12679
- id: z.string(),
12680
- isActive: z.boolean(),
12681
- region: regionEnum,
12682
- email: z.string().email(),
12683
- password: z.string(),
12684
- securityQuestionAnswer: z.string().nullable(),
12685
- lastUsed: z.number().nullable(),
12686
- multiloginProfileId: z.string().nullable(),
12687
- proxyId: z.string().nullable(),
12688
- type: scraperAccountType,
12689
- createdAt: z.number(),
12690
- updatedAt: z.number(),
12691
- isProtected: z.boolean().optional(),
12692
- });
12693
- const createScraperAccountSchema = scraperAccountSchema
12694
- .pick({
12695
- region: true,
12696
- email: true,
12697
- password: true,
12698
- securityQuestionAnswer: true,
12699
- isActive: true,
12700
- type: true,
12701
- })
12702
- .extend({
12703
- proxyCountry: proxyCountryEnum.optional(),
12704
- rotatingProxy: z.boolean().optional(),
12705
- });
12706
- const updateScraperAccountSchema = scraperAccountSchema
12707
- .omit({
12708
- id: true,
12709
- })
12710
- .partial();
12711
-
12712
- const agentStatusSchema = z.enum([
12713
- "suitabilityPending",
12714
- "suitabilityProcessing",
12715
- "suitabilityComplete",
12716
- "suitabilityFailed",
12717
- "proposalProcessing",
12718
- "proposalComplete",
12719
- "proposalFailed",
12720
- "biddingProcessing",
12721
- "biddingComplete",
12722
- "biddingFailed",
12723
- "jobArchived",
12724
- ]);
12725
- const leadStatusSchema = z.enum([
12726
- "leads",
12727
- "contacted",
12728
- "viewed",
12729
- "replied",
12730
- "won",
12731
- ]);
12732
- const updateLeadStatusSchema = z.object({
12733
- leadId: z.string(),
12734
- organizationId: z.string(),
12735
- campaignId: z.string(),
12736
- status: leadStatusSchema,
12737
- proposalId: z.string().optional(),
12738
- userId: z.string().optional(),
12739
- wonAmount: z.number().optional(),
12740
- });
12741
-
12742
12749
  const questionAnswerPairSchema = z.object({
12743
12750
  question: z.string(),
12744
12751
  answer: z.string(),
@@ -13188,7 +13195,7 @@ const logEventSchema = z.object({
13188
13195
  timestamp: z.number(),
13189
13196
  });
13190
13197
  const listingScrapedEventMetadata = objectType({
13191
- listing: feedJobSchema,
13198
+ listing: feedJobSchemaV2,
13192
13199
  region: regionSchema,
13193
13200
  });
13194
13201
  const scrapeFeedEventMetadata = objectType({
@@ -13219,7 +13226,7 @@ const scrapeFeedJobsDetailsFailedEventMetadata = objectType({
13219
13226
  duration: stringType(),
13220
13227
  });
13221
13228
  const scrapeJobStartedEventMetadata = objectType({
13222
- listing: feedJobSchema,
13229
+ listing: feedJobSchemaV2,
13223
13230
  region: regionSchema,
13224
13231
  accountId: stringType(),
13225
13232
  accountEmail: stringType(),
@@ -13236,7 +13243,7 @@ const jobActivityScrapedEventMetadata = objectType({
13236
13243
  scrapedAt: numberType(),
13237
13244
  });
13238
13245
  const jobActivityScrapeFailedEventMetadata = objectType({
13239
- listing: feedJobSchema,
13246
+ listing: feedJobSchemaV2,
13240
13247
  region: regionSchema,
13241
13248
  offsetHour: jobActivityOffsetHourSchema,
13242
13249
  });
@@ -14769,6 +14776,7 @@ exports.scrapePayloadSchema = scrapePayloadSchema;
14769
14776
  exports.scrapeResultSchema = scrapeResultSchema;
14770
14777
  exports.scrapeUserProfileRequestSchema = scrapeUserProfileRequestSchema;
14771
14778
  exports.scraperAccountErrorEventMetadata = scraperAccountErrorEventMetadata;
14779
+ exports.scraperAccountRegionEnum = scraperAccountRegionEnum;
14772
14780
  exports.scraperAccountSchema = scraperAccountSchema;
14773
14781
  exports.scraperAccountType = scraperAccountType;
14774
14782
  exports.selectAgencyException = selectAgencyException;
@@ -1,10 +1,11 @@
1
1
  import { z } from 'zod';
2
2
  import { Proxy } from '../proxy';
3
3
  export declare const scraperAccountType: z.ZodEnum<["feed", "job", "status", "activity", "profile", "unauthenticated"]>;
4
+ export declare const scraperAccountRegionEnum: z.ZodEnum<["Worldwide", "UKOnly", "USOnly"]>;
4
5
  export declare const scraperAccountSchema: z.ZodObject<{
5
6
  id: z.ZodString;
6
7
  isActive: z.ZodBoolean;
7
- region: z.ZodEnum<["all", "Worldwide", "UKOnly", "USOnly"]>;
8
+ region: z.ZodEnum<["Worldwide", "UKOnly", "USOnly"]>;
8
9
  email: z.ZodString;
9
10
  password: z.ZodString;
10
11
  securityQuestionAnswer: z.ZodNullable<z.ZodString>;
@@ -18,7 +19,7 @@ export declare const scraperAccountSchema: z.ZodObject<{
18
19
  }, "strip", z.ZodTypeAny, {
19
20
  id: string;
20
21
  isActive: boolean;
21
- region: "all" | "Worldwide" | "UKOnly" | "USOnly";
22
+ region: "Worldwide" | "UKOnly" | "USOnly";
22
23
  email: string;
23
24
  password: string;
24
25
  securityQuestionAnswer: string | null;
@@ -32,7 +33,7 @@ export declare const scraperAccountSchema: z.ZodObject<{
32
33
  }, {
33
34
  id: string;
34
35
  isActive: boolean;
35
- region: "all" | "Worldwide" | "UKOnly" | "USOnly";
36
+ region: "Worldwide" | "UKOnly" | "USOnly";
36
37
  email: string;
37
38
  password: string;
38
39
  securityQuestionAnswer: string | null;
@@ -47,7 +48,7 @@ export declare const scraperAccountSchema: z.ZodObject<{
47
48
  export declare const createScraperAccountSchema: z.ZodObject<z.objectUtil.extendShape<Pick<{
48
49
  id: z.ZodString;
49
50
  isActive: z.ZodBoolean;
50
- region: z.ZodEnum<["all", "Worldwide", "UKOnly", "USOnly"]>;
51
+ region: z.ZodEnum<["Worldwide", "UKOnly", "USOnly"]>;
51
52
  email: z.ZodString;
52
53
  password: z.ZodString;
53
54
  securityQuestionAnswer: z.ZodNullable<z.ZodString>;
@@ -63,7 +64,7 @@ export declare const createScraperAccountSchema: z.ZodObject<z.objectUtil.extend
63
64
  rotatingProxy: z.ZodOptional<z.ZodBoolean>;
64
65
  }>, "strip", z.ZodTypeAny, {
65
66
  isActive: boolean;
66
- region: "all" | "Worldwide" | "UKOnly" | "USOnly";
67
+ region: "Worldwide" | "UKOnly" | "USOnly";
67
68
  email: string;
68
69
  password: string;
69
70
  securityQuestionAnswer: string | null;
@@ -72,7 +73,7 @@ export declare const createScraperAccountSchema: z.ZodObject<z.objectUtil.extend
72
73
  rotatingProxy?: boolean | undefined;
73
74
  }, {
74
75
  isActive: boolean;
75
- region: "all" | "Worldwide" | "UKOnly" | "USOnly";
76
+ region: "Worldwide" | "UKOnly" | "USOnly";
76
77
  email: string;
77
78
  password: string;
78
79
  securityQuestionAnswer: string | null;
@@ -82,7 +83,7 @@ export declare const createScraperAccountSchema: z.ZodObject<z.objectUtil.extend
82
83
  }>;
83
84
  export declare const updateScraperAccountSchema: z.ZodObject<{
84
85
  isActive: z.ZodOptional<z.ZodBoolean>;
85
- region: z.ZodOptional<z.ZodEnum<["all", "Worldwide", "UKOnly", "USOnly"]>>;
86
+ region: z.ZodOptional<z.ZodEnum<["Worldwide", "UKOnly", "USOnly"]>>;
86
87
  email: z.ZodOptional<z.ZodString>;
87
88
  password: z.ZodOptional<z.ZodString>;
88
89
  securityQuestionAnswer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -95,7 +96,7 @@ export declare const updateScraperAccountSchema: z.ZodObject<{
95
96
  isProtected: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
96
97
  }, "strip", z.ZodTypeAny, {
97
98
  isActive?: boolean | undefined;
98
- region?: "all" | "Worldwide" | "UKOnly" | "USOnly" | undefined;
99
+ region?: "Worldwide" | "UKOnly" | "USOnly" | undefined;
99
100
  email?: string | undefined;
100
101
  password?: string | undefined;
101
102
  securityQuestionAnswer?: string | null | undefined;
@@ -108,7 +109,7 @@ export declare const updateScraperAccountSchema: z.ZodObject<{
108
109
  isProtected?: boolean | undefined;
109
110
  }, {
110
111
  isActive?: boolean | undefined;
111
- region?: "all" | "Worldwide" | "UKOnly" | "USOnly" | undefined;
112
+ region?: "Worldwide" | "UKOnly" | "USOnly" | undefined;
112
113
  email?: string | undefined;
113
114
  password?: string | undefined;
114
115
  securityQuestionAnswer?: string | null | undefined;
@@ -126,3 +127,4 @@ export interface ScraperAccount extends z.infer<typeof scraperAccountSchema> {
126
127
  }
127
128
  export type CreateScraperAccount = z.infer<typeof createScraperAccountSchema>;
128
129
  export type UpdateScraperAccount = z.infer<typeof updateScraperAccountSchema>;
130
+ export type ScraperAccountRegion = z.infer<typeof scraperAccountRegionEnum>;
@@ -4,6 +4,8 @@ export declare const feedJobSchemaV2: z.ZodObject<{
4
4
  uid: z.ZodString;
5
5
  ciphertext: z.ZodString;
6
6
  title: z.ZodString;
7
+ category: z.ZodOptional<z.ZodString>;
8
+ jobUrl: z.ZodOptional<z.ZodString>;
7
9
  description: z.ZodString;
8
10
  createdOn: z.ZodString;
9
11
  publishedOn: z.ZodString;
@@ -55,7 +57,7 @@ export declare const feedJobSchemaV2: z.ZodObject<{
55
57
  freelancersToHire: z.ZodNumber;
56
58
  relevanceEncoded: z.ZodString;
57
59
  enterpriseJob: z.ZodBoolean;
58
- tierText: z.ZodString;
60
+ tierText: z.ZodNullable<z.ZodString>;
59
61
  isApplied: z.ZodBoolean;
60
62
  proposalsTier: z.ZodNullable<z.ZodString>;
61
63
  premium: z.ZodBoolean;
@@ -127,7 +129,7 @@ export declare const feedJobSchemaV2: z.ZodObject<{
127
129
  freelancersToHire: number;
128
130
  relevanceEncoded: string;
129
131
  enterpriseJob: boolean;
130
- tierText: string;
132
+ tierText: string | null;
131
133
  isApplied: boolean;
132
134
  proposalsTier: string | null;
133
135
  premium: boolean;
@@ -147,6 +149,8 @@ export declare const feedJobSchemaV2: z.ZodObject<{
147
149
  amount: number;
148
150
  };
149
151
  isSTSVectorSearchResult: boolean;
152
+ category?: string | undefined;
153
+ jobUrl?: string | undefined;
150
154
  clientRelation?: any;
151
155
  }, {
152
156
  type: number;
@@ -176,7 +180,7 @@ export declare const feedJobSchemaV2: z.ZodObject<{
176
180
  freelancersToHire: number;
177
181
  relevanceEncoded: string;
178
182
  enterpriseJob: boolean;
179
- tierText: string;
183
+ tierText: string | null;
180
184
  isApplied: boolean;
181
185
  proposalsTier: string | null;
182
186
  premium: boolean;
@@ -196,6 +200,8 @@ export declare const feedJobSchemaV2: z.ZodObject<{
196
200
  amount: number;
197
201
  };
198
202
  isSTSVectorSearchResult: boolean;
203
+ category?: string | undefined;
204
+ jobUrl?: string | undefined;
199
205
  clientRelation?: any;
200
206
  }>;
201
207
  export declare const nuxtStateJobsSearchSchema: z.ZodObject<{
@@ -218,6 +224,8 @@ export declare const nuxtStateJobsSearchSchema: z.ZodObject<{
218
224
  uid: z.ZodString;
219
225
  ciphertext: z.ZodString;
220
226
  title: z.ZodString;
227
+ category: z.ZodOptional<z.ZodString>;
228
+ jobUrl: z.ZodOptional<z.ZodString>;
221
229
  description: z.ZodString;
222
230
  createdOn: z.ZodString;
223
231
  publishedOn: z.ZodString;
@@ -269,7 +277,7 @@ export declare const nuxtStateJobsSearchSchema: z.ZodObject<{
269
277
  freelancersToHire: z.ZodNumber;
270
278
  relevanceEncoded: z.ZodString;
271
279
  enterpriseJob: z.ZodBoolean;
272
- tierText: z.ZodString;
280
+ tierText: z.ZodNullable<z.ZodString>;
273
281
  isApplied: z.ZodBoolean;
274
282
  proposalsTier: z.ZodNullable<z.ZodString>;
275
283
  premium: z.ZodBoolean;
@@ -341,7 +349,7 @@ export declare const nuxtStateJobsSearchSchema: z.ZodObject<{
341
349
  freelancersToHire: number;
342
350
  relevanceEncoded: string;
343
351
  enterpriseJob: boolean;
344
- tierText: string;
352
+ tierText: string | null;
345
353
  isApplied: boolean;
346
354
  proposalsTier: string | null;
347
355
  premium: boolean;
@@ -361,6 +369,8 @@ export declare const nuxtStateJobsSearchSchema: z.ZodObject<{
361
369
  amount: number;
362
370
  };
363
371
  isSTSVectorSearchResult: boolean;
372
+ category?: string | undefined;
373
+ jobUrl?: string | undefined;
364
374
  clientRelation?: any;
365
375
  }, {
366
376
  type: number;
@@ -390,7 +400,7 @@ export declare const nuxtStateJobsSearchSchema: z.ZodObject<{
390
400
  freelancersToHire: number;
391
401
  relevanceEncoded: string;
392
402
  enterpriseJob: boolean;
393
- tierText: string;
403
+ tierText: string | null;
394
404
  isApplied: boolean;
395
405
  proposalsTier: string | null;
396
406
  premium: boolean;
@@ -410,6 +420,8 @@ export declare const nuxtStateJobsSearchSchema: z.ZodObject<{
410
420
  amount: number;
411
421
  };
412
422
  isSTSVectorSearchResult: boolean;
423
+ category?: string | undefined;
424
+ jobUrl?: string | undefined;
413
425
  clientRelation?: any;
414
426
  }>, "many">;
415
427
  paging: z.ZodObject<{
@@ -463,7 +475,7 @@ export declare const nuxtStateJobsSearchSchema: z.ZodObject<{
463
475
  freelancersToHire: number;
464
476
  relevanceEncoded: string;
465
477
  enterpriseJob: boolean;
466
- tierText: string;
478
+ tierText: string | null;
467
479
  isApplied: boolean;
468
480
  proposalsTier: string | null;
469
481
  premium: boolean;
@@ -483,6 +495,8 @@ export declare const nuxtStateJobsSearchSchema: z.ZodObject<{
483
495
  amount: number;
484
496
  };
485
497
  isSTSVectorSearchResult: boolean;
498
+ category?: string | undefined;
499
+ jobUrl?: string | undefined;
486
500
  clientRelation?: any;
487
501
  }[];
488
502
  paging: {
@@ -528,7 +542,7 @@ export declare const nuxtStateJobsSearchSchema: z.ZodObject<{
528
542
  freelancersToHire: number;
529
543
  relevanceEncoded: string;
530
544
  enterpriseJob: boolean;
531
- tierText: string;
545
+ tierText: string | null;
532
546
  isApplied: boolean;
533
547
  proposalsTier: string | null;
534
548
  premium: boolean;
@@ -548,6 +562,8 @@ export declare const nuxtStateJobsSearchSchema: z.ZodObject<{
548
562
  amount: number;
549
563
  };
550
564
  isSTSVectorSearchResult: boolean;
565
+ category?: string | undefined;
566
+ jobUrl?: string | undefined;
551
567
  clientRelation?: any;
552
568
  }[];
553
569
  paging: {
@@ -595,7 +611,7 @@ export declare const nuxtStateJobsSearchSchema: z.ZodObject<{
595
611
  freelancersToHire: number;
596
612
  relevanceEncoded: string;
597
613
  enterpriseJob: boolean;
598
- tierText: string;
614
+ tierText: string | null;
599
615
  isApplied: boolean;
600
616
  proposalsTier: string | null;
601
617
  premium: boolean;
@@ -615,6 +631,8 @@ export declare const nuxtStateJobsSearchSchema: z.ZodObject<{
615
631
  amount: number;
616
632
  };
617
633
  isSTSVectorSearchResult: boolean;
634
+ category?: string | undefined;
635
+ jobUrl?: string | undefined;
618
636
  clientRelation?: any;
619
637
  }[];
620
638
  paging: {
@@ -662,7 +680,7 @@ export declare const nuxtStateJobsSearchSchema: z.ZodObject<{
662
680
  freelancersToHire: number;
663
681
  relevanceEncoded: string;
664
682
  enterpriseJob: boolean;
665
- tierText: string;
683
+ tierText: string | null;
666
684
  isApplied: boolean;
667
685
  proposalsTier: string | null;
668
686
  premium: boolean;
@@ -682,6 +700,8 @@ export declare const nuxtStateJobsSearchSchema: z.ZodObject<{
682
700
  amount: number;
683
701
  };
684
702
  isSTSVectorSearchResult: boolean;
703
+ category?: string | undefined;
704
+ jobUrl?: string | undefined;
685
705
  clientRelation?: any;
686
706
  }[];
687
707
  paging: {
@@ -731,7 +751,7 @@ export declare const nuxtStateJobsSearchSchema: z.ZodObject<{
731
751
  freelancersToHire: number;
732
752
  relevanceEncoded: string;
733
753
  enterpriseJob: boolean;
734
- tierText: string;
754
+ tierText: string | null;
735
755
  isApplied: boolean;
736
756
  proposalsTier: string | null;
737
757
  premium: boolean;
@@ -751,6 +771,8 @@ export declare const nuxtStateJobsSearchSchema: z.ZodObject<{
751
771
  amount: number;
752
772
  };
753
773
  isSTSVectorSearchResult: boolean;
774
+ category?: string | undefined;
775
+ jobUrl?: string | undefined;
754
776
  clientRelation?: any;
755
777
  }[];
756
778
  paging: {
@@ -800,7 +822,7 @@ export declare const nuxtStateJobsSearchSchema: z.ZodObject<{
800
822
  freelancersToHire: number;
801
823
  relevanceEncoded: string;
802
824
  enterpriseJob: boolean;
803
- tierText: string;
825
+ tierText: string | null;
804
826
  isApplied: boolean;
805
827
  proposalsTier: string | null;
806
828
  premium: boolean;
@@ -820,6 +842,8 @@ export declare const nuxtStateJobsSearchSchema: z.ZodObject<{
820
842
  amount: number;
821
843
  };
822
844
  isSTSVectorSearchResult: boolean;
845
+ category?: string | undefined;
846
+ jobUrl?: string | undefined;
823
847
  clientRelation?: any;
824
848
  }[];
825
849
  paging: {