lancer-shared 1.2.271 → 1.2.272

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.
Files changed (44) hide show
  1. package/dist/bundle.cjs.js +9 -4
  2. package/dist/bundle.cjs.js.map +1 -1
  3. package/dist/bundle.esm.js +9 -5
  4. package/dist/bundle.esm.js.map +1 -1
  5. package/dist/schemas/account/bidder-account.d.ts +20 -20
  6. package/dist/schemas/account/scraper-account.d.ts +22 -22
  7. package/dist/schemas/agent/index.d.ts +216 -216
  8. package/dist/schemas/agent/proposal.d.ts +2 -2
  9. package/dist/schemas/bidder/bid.d.ts +2062 -2043
  10. package/dist/schemas/campaign/campaign-analytics.d.ts +784 -776
  11. package/dist/schemas/campaign/campaign-chat-bot.d.ts +9 -9
  12. package/dist/schemas/campaign/campaign.d.ts +378 -378
  13. package/dist/schemas/dashboard/index.d.ts +12 -12
  14. package/dist/schemas/golden-dataset/sample.d.ts +8 -8
  15. package/dist/schemas/invoice/index.d.ts +4 -4
  16. package/dist/schemas/job/index.d.ts +112 -112
  17. package/dist/schemas/job/job-api.d.ts +6 -6
  18. package/dist/schemas/job/job-details.d.ts +74 -74
  19. package/dist/schemas/job/job-filters.d.ts +47 -47
  20. package/dist/schemas/job/job-listing.d.ts +22 -22
  21. package/dist/schemas/job/nuxt.d.ts +24 -24
  22. package/dist/schemas/lead/index.d.ts +845 -844
  23. package/dist/schemas/lead/insufficient-connects-action.d.ts +3 -0
  24. package/dist/schemas/lead/lead-status.d.ts +10 -10
  25. package/dist/schemas/logger/feed/feed-chunk-enrich.d.ts +6 -6
  26. package/dist/schemas/logger/feed/feed-enrich.d.ts +6 -6
  27. package/dist/schemas/logger/feed/feed-job-enrich.d.ts +140 -140
  28. package/dist/schemas/logger/feed/feed-scrape.d.ts +6 -6
  29. package/dist/schemas/logger/log-event.d.ts +72 -72
  30. package/dist/schemas/logger/scraper-events.d.ts +28 -28
  31. package/dist/schemas/notifications/index.d.ts +4 -4
  32. package/dist/schemas/organization/billing.d.ts +2 -2
  33. package/dist/schemas/organization/index.d.ts +66 -62
  34. package/dist/schemas/organization/organization-leads.d.ts +4 -4
  35. package/dist/schemas/organization/subscription.d.ts +9 -9
  36. package/dist/schemas/plan/index.d.ts +22 -22
  37. package/dist/schemas/proxy/proxy.d.ts +2 -2
  38. package/dist/schemas/scraper/scrape-payload.d.ts +495 -490
  39. package/dist/schemas/scraper/scrape-result.d.ts +136 -136
  40. package/dist/schemas/talent/index.d.ts +148 -148
  41. package/dist/schemas/transaction/index.d.ts +2 -2
  42. package/dist/schemas/usage/index.d.ts +2 -2
  43. package/dist/schemas/usage-event/index.d.ts +8 -8
  44. package/package.json +1 -1
@@ -96,9 +96,7 @@ export declare const bidderAccountSchema: z.ZodObject<{
96
96
  id: string;
97
97
  name: string | null;
98
98
  email: string;
99
- region: "Worldwide" | "USOnly" | "UKOnly" | "All";
100
- createdAt: number;
101
- updatedAt: number;
99
+ region: "USOnly" | "UKOnly" | "Worldwide" | "All";
102
100
  password: string;
103
101
  provider: "user-provided" | "lancer-provided";
104
102
  isConnecting: boolean | null;
@@ -118,15 +116,15 @@ export declare const bidderAccountSchema: z.ZodObject<{
118
116
  }[];
119
117
  }[] | null;
120
118
  instanceId: string | null;
119
+ createdAt: number;
120
+ updatedAt: number;
121
121
  googleOauthTokens?: any;
122
122
  isProtected?: boolean | undefined;
123
123
  }, {
124
124
  id: string;
125
125
  name: string | null;
126
126
  email: string;
127
- region: "Worldwide" | "USOnly" | "UKOnly" | "All";
128
- createdAt: number;
129
- updatedAt: number;
127
+ region: "USOnly" | "UKOnly" | "Worldwide" | "All";
130
128
  password: string;
131
129
  provider: "user-provided" | "lancer-provided";
132
130
  isConnecting: boolean | null;
@@ -146,6 +144,8 @@ export declare const bidderAccountSchema: z.ZodObject<{
146
144
  }[];
147
145
  }[] | null;
148
146
  instanceId: string | null;
147
+ createdAt: number;
148
+ updatedAt: number;
149
149
  googleOauthTokens?: any;
150
150
  isProtected?: boolean | undefined;
151
151
  }>;
@@ -204,7 +204,7 @@ export declare const createBidderAccountSchema: z.ZodObject<z.objectUtil.extendS
204
204
  }>, "strip", z.ZodTypeAny, {
205
205
  name: string | null;
206
206
  email: string;
207
- region: "Worldwide" | "USOnly" | "UKOnly" | "All";
207
+ region: "USOnly" | "UKOnly" | "Worldwide" | "All";
208
208
  password: string;
209
209
  provider: "user-provided" | "lancer-provided";
210
210
  securityQuestionAnswer: string | null;
@@ -225,7 +225,7 @@ export declare const createBidderAccountSchema: z.ZodObject<z.objectUtil.extendS
225
225
  }, {
226
226
  name: string | null;
227
227
  email: string;
228
- region: "Worldwide" | "USOnly" | "UKOnly" | "All";
228
+ region: "USOnly" | "UKOnly" | "Worldwide" | "All";
229
229
  password: string;
230
230
  provider: "user-provided" | "lancer-provided";
231
231
  securityQuestionAnswer: string | null;
@@ -248,8 +248,6 @@ export declare const updateBidderAccountSchema: z.ZodObject<{
248
248
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
249
249
  email: z.ZodOptional<z.ZodString>;
250
250
  region: z.ZodOptional<z.ZodEnum<["Worldwide", "USOnly", "UKOnly", "All"]>>;
251
- createdAt: z.ZodOptional<z.ZodNumber>;
252
- updatedAt: z.ZodOptional<z.ZodNumber>;
253
251
  password: z.ZodOptional<z.ZodString>;
254
252
  provider: z.ZodOptional<z.ZodEnum<["user-provided", "lancer-provided"]>>;
255
253
  isConnecting: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
@@ -292,13 +290,13 @@ export declare const updateBidderAccountSchema: z.ZodObject<{
292
290
  }[];
293
291
  }>, "many">>>;
294
292
  instanceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
293
+ createdAt: z.ZodOptional<z.ZodNumber>;
294
+ updatedAt: z.ZodOptional<z.ZodNumber>;
295
295
  isProtected: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
296
296
  }, "strip", z.ZodTypeAny, {
297
297
  name?: string | null | undefined;
298
298
  email?: string | undefined;
299
- region?: "Worldwide" | "USOnly" | "UKOnly" | "All" | undefined;
300
- createdAt?: number | undefined;
301
- updatedAt?: number | undefined;
299
+ region?: "USOnly" | "UKOnly" | "Worldwide" | "All" | undefined;
302
300
  password?: string | undefined;
303
301
  provider?: "user-provided" | "lancer-provided" | undefined;
304
302
  isConnecting?: boolean | null | undefined;
@@ -319,13 +317,13 @@ export declare const updateBidderAccountSchema: z.ZodObject<{
319
317
  }[];
320
318
  }[] | null | undefined;
321
319
  instanceId?: string | null | undefined;
320
+ createdAt?: number | undefined;
321
+ updatedAt?: number | undefined;
322
322
  isProtected?: boolean | undefined;
323
323
  }, {
324
324
  name?: string | null | undefined;
325
325
  email?: string | undefined;
326
- region?: "Worldwide" | "USOnly" | "UKOnly" | "All" | undefined;
327
- createdAt?: number | undefined;
328
- updatedAt?: number | undefined;
326
+ region?: "USOnly" | "UKOnly" | "Worldwide" | "All" | undefined;
329
327
  password?: string | undefined;
330
328
  provider?: "user-provided" | "lancer-provided" | undefined;
331
329
  isConnecting?: boolean | null | undefined;
@@ -346,6 +344,8 @@ export declare const updateBidderAccountSchema: z.ZodObject<{
346
344
  }[];
347
345
  }[] | null | undefined;
348
346
  instanceId?: string | null | undefined;
347
+ createdAt?: number | undefined;
348
+ updatedAt?: number | undefined;
349
349
  isProtected?: boolean | undefined;
350
350
  }>;
351
351
  export declare const verifyBidderAccountCredentialsSchema: z.ZodObject<{
@@ -517,19 +517,19 @@ export declare const acceptUpworkInvitationResponseSchema: z.ZodObject<{
517
517
  specializedProfiles: string[];
518
518
  }>, "many">;
519
519
  }, "strip", z.ZodTypeAny, {
520
- photoUrl: string;
521
520
  contractors: {
522
521
  name: string;
523
522
  specializedProfiles: string[];
524
523
  }[];
525
524
  agencyName: string;
526
- }, {
527
525
  photoUrl: string;
526
+ }, {
528
527
  contractors: {
529
528
  name: string;
530
529
  specializedProfiles: string[];
531
530
  }[];
532
531
  agencyName: string;
532
+ photoUrl: string;
533
533
  }>;
534
534
  export declare const reconnectBidderAccountRequestBodySchema: z.ZodObject<{
535
535
  organizationId: z.ZodString;
@@ -555,19 +555,19 @@ export declare const reconnectBidderAccountResponseSchema: z.ZodObject<{
555
555
  specializedProfiles: string[];
556
556
  }>, "many">;
557
557
  }, "strip", z.ZodTypeAny, {
558
- photoUrl: string;
559
558
  contractors: {
560
559
  name: string;
561
560
  specializedProfiles: string[];
562
561
  }[];
563
562
  agencyName: string;
564
- }, {
565
563
  photoUrl: string;
564
+ }, {
566
565
  contractors: {
567
566
  name: string;
568
567
  specializedProfiles: string[];
569
568
  }[];
570
569
  agencyName: string;
570
+ photoUrl: string;
571
571
  }>;
572
572
  export interface BidderAccount extends z.infer<typeof bidderAccountSchema> {
573
573
  proxy?: Proxy;
@@ -17,30 +17,30 @@ export declare const scraperAccountSchema: z.ZodObject<{
17
17
  updatedAt: z.ZodNumber;
18
18
  isProtected: z.ZodOptional<z.ZodBoolean>;
19
19
  }, "strip", z.ZodTypeAny, {
20
- type: "status" | "profile" | "job" | "activity" | "feed" | "unauthenticated";
20
+ type: "status" | "profile" | "job" | "feed" | "activity" | "unauthenticated";
21
21
  id: string;
22
22
  email: string;
23
- region: "Worldwide" | "USOnly" | "UKOnly";
24
- createdAt: number;
25
- updatedAt: number;
23
+ region: "USOnly" | "UKOnly" | "Worldwide";
26
24
  password: string;
27
25
  securityQuestionAnswer: string | null;
28
26
  lastUsed: number | null;
29
27
  proxyId: string | null;
28
+ createdAt: number;
29
+ updatedAt: number;
30
30
  multiloginProfileId: string | null;
31
31
  isActive: boolean;
32
32
  isProtected?: boolean | undefined;
33
33
  }, {
34
- type: "status" | "profile" | "job" | "activity" | "feed" | "unauthenticated";
34
+ type: "status" | "profile" | "job" | "feed" | "activity" | "unauthenticated";
35
35
  id: string;
36
36
  email: string;
37
- region: "Worldwide" | "USOnly" | "UKOnly";
38
- createdAt: number;
39
- updatedAt: number;
37
+ region: "USOnly" | "UKOnly" | "Worldwide";
40
38
  password: string;
41
39
  securityQuestionAnswer: string | null;
42
40
  lastUsed: number | null;
43
41
  proxyId: string | null;
42
+ createdAt: number;
43
+ updatedAt: number;
44
44
  multiloginProfileId: string | null;
45
45
  isActive: boolean;
46
46
  isProtected?: boolean | undefined;
@@ -63,18 +63,18 @@ export declare const createScraperAccountSchema: z.ZodObject<z.objectUtil.extend
63
63
  proxyCountry: z.ZodOptional<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"]>>;
64
64
  rotatingProxy: z.ZodOptional<z.ZodBoolean>;
65
65
  }>, "strip", z.ZodTypeAny, {
66
- type: "status" | "profile" | "job" | "activity" | "feed" | "unauthenticated";
66
+ type: "status" | "profile" | "job" | "feed" | "activity" | "unauthenticated";
67
67
  email: string;
68
- region: "Worldwide" | "USOnly" | "UKOnly";
68
+ region: "USOnly" | "UKOnly" | "Worldwide";
69
69
  password: string;
70
70
  securityQuestionAnswer: string | null;
71
71
  isActive: boolean;
72
72
  proxyCountry?: "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" | undefined;
73
73
  rotatingProxy?: boolean | undefined;
74
74
  }, {
75
- type: "status" | "profile" | "job" | "activity" | "feed" | "unauthenticated";
75
+ type: "status" | "profile" | "job" | "feed" | "activity" | "unauthenticated";
76
76
  email: string;
77
- region: "Worldwide" | "USOnly" | "UKOnly";
77
+ region: "USOnly" | "UKOnly" | "Worldwide";
78
78
  password: string;
79
79
  securityQuestionAnswer: string | null;
80
80
  isActive: boolean;
@@ -85,38 +85,38 @@ export declare const updateScraperAccountSchema: z.ZodObject<{
85
85
  type: z.ZodOptional<z.ZodEnum<["feed", "job", "status", "activity", "profile", "unauthenticated"]>>;
86
86
  email: z.ZodOptional<z.ZodString>;
87
87
  region: z.ZodOptional<z.ZodEnum<["Worldwide", "UKOnly", "USOnly"]>>;
88
- createdAt: z.ZodOptional<z.ZodNumber>;
89
- updatedAt: z.ZodOptional<z.ZodNumber>;
90
88
  password: z.ZodOptional<z.ZodString>;
91
89
  securityQuestionAnswer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
92
90
  lastUsed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
93
91
  proxyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
92
+ createdAt: z.ZodOptional<z.ZodNumber>;
93
+ updatedAt: z.ZodOptional<z.ZodNumber>;
94
94
  isProtected: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
95
95
  multiloginProfileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
96
96
  isActive: z.ZodOptional<z.ZodBoolean>;
97
97
  }, "strip", z.ZodTypeAny, {
98
- type?: "status" | "profile" | "job" | "activity" | "feed" | "unauthenticated" | undefined;
98
+ type?: "status" | "profile" | "job" | "feed" | "activity" | "unauthenticated" | undefined;
99
99
  email?: string | undefined;
100
- region?: "Worldwide" | "USOnly" | "UKOnly" | undefined;
101
- createdAt?: number | undefined;
102
- updatedAt?: number | undefined;
100
+ region?: "USOnly" | "UKOnly" | "Worldwide" | undefined;
103
101
  password?: string | undefined;
104
102
  securityQuestionAnswer?: string | null | undefined;
105
103
  lastUsed?: number | null | undefined;
106
104
  proxyId?: string | null | undefined;
105
+ createdAt?: number | undefined;
106
+ updatedAt?: number | undefined;
107
107
  isProtected?: boolean | undefined;
108
108
  multiloginProfileId?: string | null | undefined;
109
109
  isActive?: boolean | undefined;
110
110
  }, {
111
- type?: "status" | "profile" | "job" | "activity" | "feed" | "unauthenticated" | undefined;
111
+ type?: "status" | "profile" | "job" | "feed" | "activity" | "unauthenticated" | undefined;
112
112
  email?: string | undefined;
113
- region?: "Worldwide" | "USOnly" | "UKOnly" | undefined;
114
- createdAt?: number | undefined;
115
- updatedAt?: number | undefined;
113
+ region?: "USOnly" | "UKOnly" | "Worldwide" | undefined;
116
114
  password?: string | undefined;
117
115
  securityQuestionAnswer?: string | null | undefined;
118
116
  lastUsed?: number | null | undefined;
119
117
  proxyId?: string | null | undefined;
118
+ createdAt?: number | undefined;
119
+ updatedAt?: number | undefined;
120
120
  isProtected?: boolean | undefined;
121
121
  multiloginProfileId?: string | null | undefined;
122
122
  isActive?: boolean | undefined;