lancer-shared 1.2.301 → 1.2.303

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 (60) hide show
  1. package/dist/bundle.cjs.js +1 -0
  2. package/dist/bundle.cjs.js.map +1 -1
  3. package/dist/bundle.esm.js +1 -0
  4. package/dist/bundle.esm.js.map +1 -1
  5. package/dist/schemas/account/bidder-account.d.ts +40 -40
  6. package/dist/schemas/account/scraper-account.d.ts +27 -27
  7. package/dist/schemas/agent/index.d.ts +273 -273
  8. package/dist/schemas/agent/proposal.d.ts +4 -4
  9. package/dist/schemas/bidder/bid.d.ts +2358 -2358
  10. package/dist/schemas/campaign/campaign-analytics.d.ts +1404 -1404
  11. package/dist/schemas/campaign/campaign-chat-bot.d.ts +24 -24
  12. package/dist/schemas/campaign/campaign-expenses.d.ts +2 -2
  13. package/dist/schemas/campaign/campaign-insights.d.ts +12 -12
  14. package/dist/schemas/campaign/campaign.d.ts +566 -566
  15. package/dist/schemas/campaign/sequence/boost-node.d.ts +2 -2
  16. package/dist/schemas/campaign/sequence/client-size-node.d.ts +8 -8
  17. package/dist/schemas/campaign/sequence/client-spent-node.d.ts +16 -16
  18. package/dist/schemas/campaign/sequence/hire-rate-node.d.ts +16 -16
  19. package/dist/schemas/campaign/sequence/hourly-rate-node.d.ts +16 -16
  20. package/dist/schemas/campaign/sequence/rating-node.d.ts +16 -16
  21. package/dist/schemas/campaign/sequence/suitability-node.d.ts +16 -16
  22. package/dist/schemas/dashboard/index.d.ts +46 -46
  23. package/dist/schemas/golden-dataset/sample.d.ts +12 -12
  24. package/dist/schemas/infrastructure/index.d.ts +8 -8
  25. package/dist/schemas/invoice/index.d.ts +55 -55
  26. package/dist/schemas/job/index.d.ts +189 -189
  27. package/dist/schemas/job/job-api.d.ts +4 -4
  28. package/dist/schemas/job/job-details.d.ts +726 -726
  29. package/dist/schemas/job/job-filters.d.ts +55 -55
  30. package/dist/schemas/job/job-listing.d.ts +96 -96
  31. package/dist/schemas/job/nuxt.d.ts +130 -130
  32. package/dist/schemas/lead/index.d.ts +1040 -1040
  33. package/dist/schemas/lead/lead-status.d.ts +4 -4
  34. package/dist/schemas/logger/feed/feed-chunk-enrich.d.ts +16 -16
  35. package/dist/schemas/logger/feed/feed-enrich.d.ts +12 -12
  36. package/dist/schemas/logger/feed/feed-job-enrich.d.ts +272 -272
  37. package/dist/schemas/logger/feed/feed-scrape.d.ts +6 -6
  38. package/dist/schemas/logger/log-event.d.ts +103 -103
  39. package/dist/schemas/logger/scraper-events.d.ts +73 -73
  40. package/dist/schemas/notifications/index.d.ts +4 -4
  41. package/dist/schemas/organization/billing.d.ts +2 -2
  42. package/dist/schemas/organization/cover-letter.d.ts +4 -4
  43. package/dist/schemas/organization/index.d.ts +112 -112
  44. package/dist/schemas/organization/onboarding.d.ts +6 -6
  45. package/dist/schemas/organization/organization-leads.d.ts +4 -4
  46. package/dist/schemas/organization/subscription.d.ts +12 -12
  47. package/dist/schemas/plan/index.d.ts +55 -55
  48. package/dist/schemas/proxy/proxy.d.ts +29 -29
  49. package/dist/schemas/saved-search/index.d.ts +4 -4
  50. package/dist/schemas/scraper/scrape-payload.d.ts +876 -876
  51. package/dist/schemas/scraper/scrape-result.d.ts +174 -174
  52. package/dist/schemas/scraper/upwork-profile.d.ts +16 -16
  53. package/dist/schemas/shared.d.ts +1 -1
  54. package/dist/schemas/talent/index.d.ts +750 -750
  55. package/dist/schemas/transaction/index.d.ts +20 -20
  56. package/dist/schemas/upwork-analytics/index.d.ts +22 -22
  57. package/dist/schemas/usage/index.d.ts +16 -16
  58. package/dist/schemas/usage-event/index.d.ts +11 -11
  59. package/dist/schemas/user/index.d.ts +4 -4
  60. package/package.json +2 -2
@@ -9,20 +9,20 @@ export declare const scrapeJobsCompletedEventMetadata: z.ZodObject<{
9
9
  failedEnrichJobCount: z.ZodNumber;
10
10
  }, "strip", z.ZodTypeAny, {
11
11
  region: "USOnly" | "UKOnly" | "Worldwide" | "All";
12
- duration: string;
13
- successfulEnrichJobCount: number;
14
- failedEnrichJobCount: number;
15
12
  feedScraperAccountId: string;
16
13
  feedScraperAccountEmail: string;
17
14
  uniqueJobsFound: number;
18
- }, {
19
- region: "USOnly" | "UKOnly" | "Worldwide" | "All";
20
15
  duration: string;
21
16
  successfulEnrichJobCount: number;
22
17
  failedEnrichJobCount: number;
18
+ }, {
19
+ region: "USOnly" | "UKOnly" | "Worldwide" | "All";
23
20
  feedScraperAccountId: string;
24
21
  feedScraperAccountEmail: string;
25
22
  uniqueJobsFound: number;
23
+ duration: string;
24
+ successfulEnrichJobCount: number;
25
+ failedEnrichJobCount: number;
26
26
  }>;
27
27
  export declare const jobActivityScrapedEventMetadata: z.ZodObject<{
28
28
  activity: z.ZodObject<{
@@ -30,11 +30,11 @@ export declare const jobActivityScrapedEventMetadata: z.ZodObject<{
30
30
  min: z.ZodNullable<z.ZodNumber>;
31
31
  max: z.ZodNullable<z.ZodNumber>;
32
32
  }, "strip", z.ZodTypeAny, {
33
- max: number | null;
34
33
  min: number | null;
35
- }, {
36
34
  max: number | null;
35
+ }, {
37
36
  min: number | null;
37
+ max: number | null;
38
38
  }>;
39
39
  lastViewedByClient: z.ZodNullable<z.ZodString>;
40
40
  lastViewedByClientTimestamp: z.ZodNullable<z.ZodNumber>;
@@ -44,29 +44,29 @@ export declare const jobActivityScrapedEventMetadata: z.ZodObject<{
44
44
  unansweredInvites: z.ZodNullable<z.ZodNumber>;
45
45
  updatedAt: z.ZodNullable<z.ZodNumber>;
46
46
  }, "strip", z.ZodTypeAny, {
47
- unansweredInvites: number | null;
48
- updatedAt: number | null;
49
47
  proposals: {
50
- max: number | null;
51
48
  min: number | null;
49
+ max: number | null;
52
50
  };
53
51
  lastViewedByClient: string | null;
54
52
  lastViewedByClientTimestamp: number | null;
55
53
  hires: number | null;
56
54
  interviewing: number | null;
57
55
  invitesSent: number | null;
58
- }, {
59
56
  unansweredInvites: number | null;
60
57
  updatedAt: number | null;
58
+ }, {
61
59
  proposals: {
62
- max: number | null;
63
60
  min: number | null;
61
+ max: number | null;
64
62
  };
65
63
  lastViewedByClient: string | null;
66
64
  lastViewedByClientTimestamp: number | null;
67
65
  hires: number | null;
68
66
  interviewing: number | null;
69
67
  invitesSent: number | null;
68
+ unansweredInvites: number | null;
69
+ updatedAt: number | null;
70
70
  }>;
71
71
  region: z.ZodUnion<[z.ZodLiteral<"USOnly">, z.ZodLiteral<"UKOnly">, z.ZodLiteral<"Worldwide">, z.ZodLiteral<"All">]>;
72
72
  offsetHour: z.ZodType<4 | 24, z.ZodTypeDef, 4 | 24>;
@@ -74,37 +74,37 @@ export declare const jobActivityScrapedEventMetadata: z.ZodObject<{
74
74
  }, "strip", z.ZodTypeAny, {
75
75
  region: "USOnly" | "UKOnly" | "Worldwide" | "All";
76
76
  activity: {
77
- unansweredInvites: number | null;
78
- updatedAt: number | null;
79
77
  proposals: {
80
- max: number | null;
81
78
  min: number | null;
79
+ max: number | null;
82
80
  };
83
81
  lastViewedByClient: string | null;
84
82
  lastViewedByClientTimestamp: number | null;
85
83
  hires: number | null;
86
84
  interviewing: number | null;
87
85
  invitesSent: number | null;
86
+ unansweredInvites: number | null;
87
+ updatedAt: number | null;
88
88
  };
89
- scrapedAt: number;
90
89
  offsetHour: 4 | 24;
90
+ scrapedAt: number;
91
91
  }, {
92
92
  region: "USOnly" | "UKOnly" | "Worldwide" | "All";
93
93
  activity: {
94
- unansweredInvites: number | null;
95
- updatedAt: number | null;
96
94
  proposals: {
97
- max: number | null;
98
95
  min: number | null;
96
+ max: number | null;
99
97
  };
100
98
  lastViewedByClient: string | null;
101
99
  lastViewedByClientTimestamp: number | null;
102
100
  hires: number | null;
103
101
  interviewing: number | null;
104
102
  invitesSent: number | null;
103
+ unansweredInvites: number | null;
104
+ updatedAt: number | null;
105
105
  };
106
- scrapedAt: number;
107
106
  offsetHour: 4 | 24;
107
+ scrapedAt: number;
108
108
  }>;
109
109
  export declare const jobActivityScrapeFailedEventMetadata: z.ZodObject<{
110
110
  listing: z.ZodObject<{
@@ -177,15 +177,15 @@ export declare const jobActivityScrapeFailedEventMetadata: z.ZodObject<{
177
177
  highlighted: z.ZodBoolean;
178
178
  }, "strip", z.ZodTypeAny, {
179
179
  uid: string;
180
- prefLabel: string;
181
180
  parentSkillUid: string | null;
181
+ prefLabel: string;
182
182
  prettyName: string;
183
183
  highlighted: boolean;
184
184
  freeText?: any;
185
185
  }, {
186
186
  uid: string;
187
- prefLabel: string;
188
187
  parentSkillUid: string | null;
188
+ prefLabel: string;
189
189
  prettyName: string;
190
190
  highlighted: boolean;
191
191
  freeText?: any;
@@ -194,11 +194,11 @@ export declare const jobActivityScrapeFailedEventMetadata: z.ZodObject<{
194
194
  min: z.ZodNumber;
195
195
  max: z.ZodNumber;
196
196
  }, "strip", z.ZodTypeAny, {
197
- max: number;
198
197
  min: number;
199
- }, {
200
198
  max: number;
199
+ }, {
201
200
  min: number;
201
+ max: number;
202
202
  }>;
203
203
  weeklyBudget: z.ZodObject<{
204
204
  amount: z.ZodNumber;
@@ -210,18 +210,18 @@ export declare const jobActivityScrapeFailedEventMetadata: z.ZodObject<{
210
210
  isSTSVectorSearchResult: z.ZodBoolean;
211
211
  }, "strip", z.ZodTypeAny, {
212
212
  type: number;
213
- title: string;
214
- description: string;
215
- amount: {
216
- amount: number;
217
- };
218
213
  uid: string;
219
214
  ciphertext: string;
215
+ title: string;
216
+ description: string;
220
217
  createdOn: string;
221
- durationLabel: string | null;
222
218
  publishedOn: string;
223
219
  renewedOn: string | null;
220
+ durationLabel: string | null;
224
221
  engagement: string | null;
222
+ amount: {
223
+ amount: number;
224
+ };
225
225
  connectPrice: number | null;
226
226
  client: {
227
227
  location: {
@@ -242,15 +242,15 @@ export declare const jobActivityScrapeFailedEventMetadata: z.ZodObject<{
242
242
  premium: boolean;
243
243
  attrs: {
244
244
  uid: string;
245
- prefLabel: string;
246
245
  parentSkillUid: string | null;
246
+ prefLabel: string;
247
247
  prettyName: string;
248
248
  highlighted: boolean;
249
249
  freeText?: any;
250
250
  }[];
251
251
  hourlyBudget: {
252
- max: number;
253
252
  min: number;
253
+ max: number;
254
254
  };
255
255
  weeklyBudget: {
256
256
  amount: number;
@@ -261,18 +261,18 @@ export declare const jobActivityScrapeFailedEventMetadata: z.ZodObject<{
261
261
  clientRelation?: any;
262
262
  }, {
263
263
  type: number;
264
- title: string;
265
- description: string;
266
- amount: {
267
- amount: number;
268
- };
269
264
  uid: string;
270
265
  ciphertext: string;
266
+ title: string;
267
+ description: string;
271
268
  createdOn: string;
272
- durationLabel: string | null;
273
269
  publishedOn: string;
274
270
  renewedOn: string | null;
271
+ durationLabel: string | null;
275
272
  engagement: string | null;
273
+ amount: {
274
+ amount: number;
275
+ };
276
276
  connectPrice: number | null;
277
277
  client: {
278
278
  location: {
@@ -293,15 +293,15 @@ export declare const jobActivityScrapeFailedEventMetadata: z.ZodObject<{
293
293
  premium: boolean;
294
294
  attrs: {
295
295
  uid: string;
296
- prefLabel: string;
297
296
  parentSkillUid: string | null;
297
+ prefLabel: string;
298
298
  prettyName: string;
299
299
  highlighted: boolean;
300
300
  freeText?: any;
301
301
  }[];
302
302
  hourlyBudget: {
303
- max: number;
304
303
  min: number;
304
+ max: number;
305
305
  };
306
306
  weeklyBudget: {
307
307
  amount: number;
@@ -314,20 +314,22 @@ export declare const jobActivityScrapeFailedEventMetadata: z.ZodObject<{
314
314
  region: z.ZodUnion<[z.ZodLiteral<"USOnly">, z.ZodLiteral<"UKOnly">, z.ZodLiteral<"Worldwide">, z.ZodLiteral<"All">]>;
315
315
  offsetHour: z.ZodType<4 | 24, z.ZodTypeDef, 4 | 24>;
316
316
  }, "strip", z.ZodTypeAny, {
317
+ region: "USOnly" | "UKOnly" | "Worldwide" | "All";
318
+ offsetHour: 4 | 24;
317
319
  listing: {
318
320
  type: number;
319
- title: string;
320
- description: string;
321
- amount: {
322
- amount: number;
323
- };
324
321
  uid: string;
325
322
  ciphertext: string;
323
+ title: string;
324
+ description: string;
326
325
  createdOn: string;
327
- durationLabel: string | null;
328
326
  publishedOn: string;
329
327
  renewedOn: string | null;
328
+ durationLabel: string | null;
330
329
  engagement: string | null;
330
+ amount: {
331
+ amount: number;
332
+ };
331
333
  connectPrice: number | null;
332
334
  client: {
333
335
  location: {
@@ -348,15 +350,15 @@ export declare const jobActivityScrapeFailedEventMetadata: z.ZodObject<{
348
350
  premium: boolean;
349
351
  attrs: {
350
352
  uid: string;
351
- prefLabel: string;
352
353
  parentSkillUid: string | null;
354
+ prefLabel: string;
353
355
  prettyName: string;
354
356
  highlighted: boolean;
355
357
  freeText?: any;
356
358
  }[];
357
359
  hourlyBudget: {
358
- max: number;
359
360
  min: number;
361
+ max: number;
360
362
  };
361
363
  weeklyBudget: {
362
364
  amount: number;
@@ -366,23 +368,23 @@ export declare const jobActivityScrapeFailedEventMetadata: z.ZodObject<{
366
368
  jobUrl?: string | undefined;
367
369
  clientRelation?: any;
368
370
  };
371
+ }, {
369
372
  region: "USOnly" | "UKOnly" | "Worldwide" | "All";
370
373
  offsetHour: 4 | 24;
371
- }, {
372
374
  listing: {
373
375
  type: number;
374
- title: string;
375
- description: string;
376
- amount: {
377
- amount: number;
378
- };
379
376
  uid: string;
380
377
  ciphertext: string;
378
+ title: string;
379
+ description: string;
381
380
  createdOn: string;
382
- durationLabel: string | null;
383
381
  publishedOn: string;
384
382
  renewedOn: string | null;
383
+ durationLabel: string | null;
385
384
  engagement: string | null;
385
+ amount: {
386
+ amount: number;
387
+ };
386
388
  connectPrice: number | null;
387
389
  client: {
388
390
  location: {
@@ -403,15 +405,15 @@ export declare const jobActivityScrapeFailedEventMetadata: z.ZodObject<{
403
405
  premium: boolean;
404
406
  attrs: {
405
407
  uid: string;
406
- prefLabel: string;
407
408
  parentSkillUid: string | null;
409
+ prefLabel: string;
408
410
  prettyName: string;
409
411
  highlighted: boolean;
410
412
  freeText?: any;
411
413
  }[];
412
414
  hourlyBudget: {
413
- max: number;
414
415
  min: number;
416
+ max: number;
415
417
  };
416
418
  weeklyBudget: {
417
419
  amount: number;
@@ -421,21 +423,19 @@ export declare const jobActivityScrapeFailedEventMetadata: z.ZodObject<{
421
423
  jobUrl?: string | undefined;
422
424
  clientRelation?: any;
423
425
  };
424
- region: "USOnly" | "UKOnly" | "Worldwide" | "All";
425
- offsetHour: 4 | 24;
426
426
  }>;
427
427
  export declare const scraperAccountErrorEventMetadata: z.ZodObject<{
428
428
  errorStack: z.ZodString;
429
429
  errorCode: z.ZodString;
430
430
  errorMessage: z.ZodString;
431
431
  }, "strip", z.ZodTypeAny, {
432
+ errorStack: string;
432
433
  errorCode: string;
433
434
  errorMessage: string;
434
- errorStack: string;
435
435
  }, {
436
+ errorStack: string;
436
437
  errorCode: string;
437
438
  errorMessage: string;
438
- errorStack: string;
439
439
  }>;
440
440
  export declare const scraperAccountSwapStartedEventMetadata: z.ZodObject<{
441
441
  region: z.ZodUnion<[z.ZodLiteral<"USOnly">, z.ZodLiteral<"UKOnly">, z.ZodLiteral<"Worldwide">, z.ZodLiteral<"All">]>;
@@ -443,12 +443,12 @@ export declare const scraperAccountSwapStartedEventMetadata: z.ZodObject<{
443
443
  accountId: z.ZodString;
444
444
  accountEmail: z.ZodString;
445
445
  }, "strip", z.ZodTypeAny, {
446
- type: "status" | "profile" | "job" | "feed" | "activity" | "unauthenticated";
446
+ type: "status" | "activity" | "feed" | "job" | "profile" | "unauthenticated";
447
447
  region: "USOnly" | "UKOnly" | "Worldwide" | "All";
448
448
  accountId: string;
449
449
  accountEmail: string;
450
450
  }, {
451
- type: "status" | "profile" | "job" | "feed" | "activity" | "unauthenticated";
451
+ type: "status" | "activity" | "feed" | "job" | "profile" | "unauthenticated";
452
452
  region: "USOnly" | "UKOnly" | "Worldwide" | "All";
453
453
  accountId: string;
454
454
  accountEmail: string;
@@ -462,14 +462,14 @@ export declare const scraperAccountSwapCompletedEventMetadata: z.ZodObject<z.obj
462
462
  newAccountId: z.ZodString;
463
463
  newAccountEmail: z.ZodString;
464
464
  }>, "strip", z.ZodTypeAny, {
465
- type: "status" | "profile" | "job" | "feed" | "activity" | "unauthenticated";
465
+ type: "status" | "activity" | "feed" | "job" | "profile" | "unauthenticated";
466
466
  region: "USOnly" | "UKOnly" | "Worldwide" | "All";
467
467
  accountId: string;
468
468
  accountEmail: string;
469
469
  newAccountId: string;
470
470
  newAccountEmail: string;
471
471
  }, {
472
- type: "status" | "profile" | "job" | "feed" | "activity" | "unauthenticated";
472
+ type: "status" | "activity" | "feed" | "job" | "profile" | "unauthenticated";
473
473
  region: "USOnly" | "UKOnly" | "Worldwide" | "All";
474
474
  accountId: string;
475
475
  accountEmail: string;
@@ -486,20 +486,20 @@ export declare const scraperAccountSwapFailedEventMetadata: z.ZodObject<z.object
486
486
  errorCode: z.ZodString;
487
487
  errorMessage: z.ZodString;
488
488
  }>, "strip", z.ZodTypeAny, {
489
- type: "status" | "profile" | "job" | "feed" | "activity" | "unauthenticated";
490
- errorCode: string;
489
+ type: "status" | "activity" | "feed" | "job" | "profile" | "unauthenticated";
491
490
  region: "USOnly" | "UKOnly" | "Worldwide" | "All";
492
- accountId: string;
493
- errorMessage: string;
494
491
  errorStack: string;
492
+ errorCode: string;
493
+ errorMessage: string;
494
+ accountId: string;
495
495
  accountEmail: string;
496
496
  }, {
497
- type: "status" | "profile" | "job" | "feed" | "activity" | "unauthenticated";
498
- errorCode: string;
497
+ type: "status" | "activity" | "feed" | "job" | "profile" | "unauthenticated";
499
498
  region: "USOnly" | "UKOnly" | "Worldwide" | "All";
500
- accountId: string;
501
- errorMessage: string;
502
499
  errorStack: string;
500
+ errorCode: string;
501
+ errorMessage: string;
502
+ accountId: string;
503
503
  accountEmail: string;
504
504
  }>;
505
505
  export interface ScrapeJobsCompletedEventMetadata extends z.infer<typeof scrapeJobsCompletedEventMetadata> {
@@ -6,16 +6,16 @@ export declare const sendAlertPayloadSchema: z.ZodObject<{
6
6
  leadId: z.ZodNullable<z.ZodString>;
7
7
  errorMessage: z.ZodString;
8
8
  }, "strip", z.ZodTypeAny, {
9
- type: "proposal" | "suitability" | "bidding" | "scraper";
10
- leadId: string | null;
9
+ type: "suitability" | "proposal" | "bidding" | "scraper";
11
10
  organizationId: string | null;
12
11
  campaignId: string | null;
12
+ leadId: string | null;
13
13
  errorMessage: string;
14
14
  }, {
15
- type: "proposal" | "suitability" | "bidding" | "scraper";
16
- leadId: string | null;
15
+ type: "suitability" | "proposal" | "bidding" | "scraper";
17
16
  organizationId: string | null;
18
17
  campaignId: string | null;
18
+ leadId: string | null;
19
19
  errorMessage: string;
20
20
  }>;
21
21
  export type SendAlertPayload = z.infer<typeof sendAlertPayloadSchema>;
@@ -35,17 +35,17 @@ export declare const billingSchema: import("zod").ZodObject<{
35
35
  };
36
36
  }>;
37
37
  }, "strip", import("zod").ZodTypeAny, {
38
+ savedCard: boolean;
38
39
  stripe: {
39
40
  customer: {
40
41
  id: string | null;
41
42
  };
42
43
  };
43
- savedCard: boolean;
44
44
  }, {
45
+ savedCard: boolean;
45
46
  stripe: {
46
47
  customer: {
47
48
  id: string | null;
48
49
  };
49
50
  };
50
- savedCard: boolean;
51
51
  }>;
@@ -9,17 +9,17 @@ export declare const coverLetterTemplateSchema: z.ZodObject<{
9
9
  }, "strip", z.ZodTypeAny, {
10
10
  id: string;
11
11
  name: string;
12
- template: string;
13
12
  description: string | null;
14
- status: "active" | "archived";
13
+ template: string;
15
14
  instructions: string;
15
+ status: "active" | "archived";
16
16
  }, {
17
17
  id: string;
18
18
  name: string;
19
- template: string;
20
19
  description: string | null;
21
- status: "active" | "archived";
20
+ template: string;
22
21
  instructions: string;
22
+ status: "active" | "archived";
23
23
  }>;
24
24
  export declare const createCoverLetterTemplateSchema: z.ZodObject<Pick<{
25
25
  id: z.ZodString;