lancer-shared 1.2.160 → 1.2.162
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.
- package/dist/bundle.cjs.js +281 -144
- package/dist/schemas/index.d.ts +6 -5
- package/dist/schemas/organization/index.d.ts +9 -0
- package/dist/schemas/talent/index.d.ts +2408 -0
- package/package.json +1 -1
package/dist/bundle.cjs.js
CHANGED
|
@@ -11557,7 +11557,7 @@ const jobListingSchema = objectType({
|
|
|
11557
11557
|
weeklyBudget: amountSchema,
|
|
11558
11558
|
isSTSVectorSearchResult: booleanType(),
|
|
11559
11559
|
});
|
|
11560
|
-
const pagingSchema = objectType({
|
|
11560
|
+
const pagingSchema$1 = objectType({
|
|
11561
11561
|
total: numberType(),
|
|
11562
11562
|
offset: numberType(),
|
|
11563
11563
|
count: numberType(),
|
|
@@ -11569,7 +11569,7 @@ const jobsSearchSchema = objectType({
|
|
|
11569
11569
|
failed: booleanType(),
|
|
11570
11570
|
}),
|
|
11571
11571
|
jobs: arrayType(jobListingSchema),
|
|
11572
|
-
paging: pagingSchema,
|
|
11572
|
+
paging: pagingSchema$1,
|
|
11573
11573
|
abortController: anyType().nullable(),
|
|
11574
11574
|
currentPage: numberType(),
|
|
11575
11575
|
jobsPerPage: numberType(),
|
|
@@ -12769,6 +12769,70 @@ const generateLeadCountsRequestSchema = z.object({
|
|
|
12769
12769
|
campaignId: z.string().optional(),
|
|
12770
12770
|
});
|
|
12771
12771
|
|
|
12772
|
+
const proposalSchema = z.object({
|
|
12773
|
+
coverLetter: z.string(),
|
|
12774
|
+
questionAnswerPairs: questionAnswerPairSchema.array(),
|
|
12775
|
+
});
|
|
12776
|
+
|
|
12777
|
+
const agentGenerateProposalRequestSchema = z.object({
|
|
12778
|
+
userId: z.string().nullable(),
|
|
12779
|
+
organizationId: z.string(),
|
|
12780
|
+
campaignId: z.string(),
|
|
12781
|
+
job: z.object({
|
|
12782
|
+
leadId: z.string(),
|
|
12783
|
+
jobId: z.string(),
|
|
12784
|
+
title: z.string(),
|
|
12785
|
+
description: z.string(),
|
|
12786
|
+
questions: z.array(z.string()),
|
|
12787
|
+
clientCountry: z.string(),
|
|
12788
|
+
}),
|
|
12789
|
+
isOverallHighestPriorityCampaign: z.boolean().optional(),
|
|
12790
|
+
applyToLeads: z
|
|
12791
|
+
.array(z.object({ leadId: z.string(), campaignId: z.string() }))
|
|
12792
|
+
.optional(),
|
|
12793
|
+
});
|
|
12794
|
+
const agentGenerateProposalResponseSchema = z.object({
|
|
12795
|
+
coverLetter: z.string(),
|
|
12796
|
+
questionAnswerPairs: z.array(z.object({
|
|
12797
|
+
question: z.string(),
|
|
12798
|
+
answer: z.string(),
|
|
12799
|
+
})),
|
|
12800
|
+
});
|
|
12801
|
+
const agentCalculateSuitabilityRequestSchema = z.object({
|
|
12802
|
+
userId: z.string().nullable(),
|
|
12803
|
+
organizationId: z.string(),
|
|
12804
|
+
campaignId: z.string(),
|
|
12805
|
+
lead: leadSchema,
|
|
12806
|
+
isOverallHighestPriorityCampaign: z.boolean().optional(),
|
|
12807
|
+
applyToLeads: z
|
|
12808
|
+
.array(z.object({ leadId: z.string(), campaignId: z.string() }))
|
|
12809
|
+
.optional(),
|
|
12810
|
+
});
|
|
12811
|
+
const agentPickSpecialisedProfileRequestSchema = z.object({
|
|
12812
|
+
jobTitle: z.string(),
|
|
12813
|
+
jobDescription: z.string(),
|
|
12814
|
+
specialisedProfiles: z.array(z.string()),
|
|
12815
|
+
});
|
|
12816
|
+
const agentPickSpecialisedProfileResponseSchema = z.object({
|
|
12817
|
+
profile: z.string(),
|
|
12818
|
+
reason: z.string(),
|
|
12819
|
+
});
|
|
12820
|
+
const suitabilityRatingSchema = z.object({
|
|
12821
|
+
rating: z.number(),
|
|
12822
|
+
reason: z.string(),
|
|
12823
|
+
});
|
|
12824
|
+
const jobQualityScoreSchema = z.object({
|
|
12825
|
+
rating: z.number(),
|
|
12826
|
+
reason: z.string(),
|
|
12827
|
+
});
|
|
12828
|
+
const agentTaskResponseSchema = z.object({
|
|
12829
|
+
result: z.union([suitabilityRatingSchema, proposalSchema]),
|
|
12830
|
+
model: z.string(),
|
|
12831
|
+
provider: z.string(),
|
|
12832
|
+
promptTokens: z.number(),
|
|
12833
|
+
completionTokens: z.number(),
|
|
12834
|
+
});
|
|
12835
|
+
|
|
12772
12836
|
const usageEventTypeEnum = z.enum([
|
|
12773
12837
|
'suitabilityComplete',
|
|
12774
12838
|
'proposalComplete',
|
|
@@ -12893,6 +12957,7 @@ const organizationSchema = objectType({
|
|
|
12893
12957
|
openRouterApiKey: stringType().nullable(),
|
|
12894
12958
|
oneTimePayments: oneTimePaymentsSchema.optional(),
|
|
12895
12959
|
});
|
|
12960
|
+
const organizationUpdateSchema = objectType({ planId: stringType() });
|
|
12896
12961
|
const caseStudySchema = objectType({
|
|
12897
12962
|
id: stringType(),
|
|
12898
12963
|
title: stringType(),
|
|
@@ -13613,6 +13678,71 @@ class WaitForFunctionTimeoutError extends Error {
|
|
|
13613
13678
|
}
|
|
13614
13679
|
const waitForFunctionTimeoutError = (fn, timeout) => new WaitForFunctionTimeoutError(fn, timeout);
|
|
13615
13680
|
|
|
13681
|
+
const campaignStatsSchema = z.object({
|
|
13682
|
+
contacted: z.number(),
|
|
13683
|
+
viewed: z.number(),
|
|
13684
|
+
replied: z.number(),
|
|
13685
|
+
won: z.number(),
|
|
13686
|
+
proposalsGenerated: z.number(),
|
|
13687
|
+
leadsAnalyzed: z.number(),
|
|
13688
|
+
leadsFailed: z.number(),
|
|
13689
|
+
});
|
|
13690
|
+
const suitabilityBreakdownSchema = z.object({
|
|
13691
|
+
lessThan50: z.number(),
|
|
13692
|
+
between50And60: z.number(),
|
|
13693
|
+
between60And70: z.number(),
|
|
13694
|
+
between70And80: z.number(),
|
|
13695
|
+
between80And90: z.number(),
|
|
13696
|
+
above90: z.number(),
|
|
13697
|
+
});
|
|
13698
|
+
const campaignDetailsSchema = z.object({
|
|
13699
|
+
id: z.string(),
|
|
13700
|
+
name: z.string(),
|
|
13701
|
+
status: campaignStatusSchema,
|
|
13702
|
+
createdAt: z.number(),
|
|
13703
|
+
updatedAt: z.number(),
|
|
13704
|
+
stats: campaignStatsSchema,
|
|
13705
|
+
suitabilityBreakdown: suitabilityBreakdownSchema,
|
|
13706
|
+
});
|
|
13707
|
+
const organizationCampaignStatsSchema = z.object({
|
|
13708
|
+
organizationId: z.string(),
|
|
13709
|
+
organizationName: z.string(),
|
|
13710
|
+
organizationType: z.string(),
|
|
13711
|
+
tierId: z.string(),
|
|
13712
|
+
active: z.boolean(),
|
|
13713
|
+
createdAt: z.number(),
|
|
13714
|
+
campaignCount: z.number(),
|
|
13715
|
+
activeCampaignCount: z.number(),
|
|
13716
|
+
totalStats: campaignStatsSchema,
|
|
13717
|
+
campaigns: z.array(campaignDetailsSchema),
|
|
13718
|
+
});
|
|
13719
|
+
|
|
13720
|
+
const gcpMetadataSchema = objectType({
|
|
13721
|
+
instanceName: stringType(),
|
|
13722
|
+
machineType: stringType(),
|
|
13723
|
+
zone: stringType(),
|
|
13724
|
+
region: stringType(),
|
|
13725
|
+
});
|
|
13726
|
+
const hetznerMetadataSchema = objectType({
|
|
13727
|
+
id: stringType(),
|
|
13728
|
+
name: stringType(),
|
|
13729
|
+
type: stringType(),
|
|
13730
|
+
image: stringType(),
|
|
13731
|
+
createdAt: numberType(),
|
|
13732
|
+
});
|
|
13733
|
+
const bidderInstanceStatusEnum = z.enum(["available", "unavailable"]);
|
|
13734
|
+
const bidderInstanceSchema = objectType({
|
|
13735
|
+
id: stringType(),
|
|
13736
|
+
ipAddress: stringType(),
|
|
13737
|
+
domain: stringType().nullable(),
|
|
13738
|
+
bidderAccounts: arrayType(stringType()),
|
|
13739
|
+
gcp: gcpMetadataSchema,
|
|
13740
|
+
hetzner: hetznerMetadataSchema,
|
|
13741
|
+
status: bidderInstanceStatusEnum,
|
|
13742
|
+
createdAt: numberType(),
|
|
13743
|
+
updatedAt: numberType(),
|
|
13744
|
+
});
|
|
13745
|
+
|
|
13616
13746
|
const invoiceStripeMetadataLineSchema = objectType({
|
|
13617
13747
|
description: stringType(),
|
|
13618
13748
|
amount: numberType(),
|
|
@@ -13658,70 +13788,6 @@ const invoiceSchema = objectType({
|
|
|
13658
13788
|
updatedAt: numberType(),
|
|
13659
13789
|
});
|
|
13660
13790
|
|
|
13661
|
-
const proposalSchema = z.object({
|
|
13662
|
-
coverLetter: z.string(),
|
|
13663
|
-
questionAnswerPairs: questionAnswerPairSchema.array(),
|
|
13664
|
-
});
|
|
13665
|
-
|
|
13666
|
-
const agentGenerateProposalRequestSchema = z.object({
|
|
13667
|
-
userId: z.string().nullable(),
|
|
13668
|
-
organizationId: z.string(),
|
|
13669
|
-
campaignId: z.string(),
|
|
13670
|
-
job: z.object({
|
|
13671
|
-
leadId: z.string(),
|
|
13672
|
-
jobId: z.string(),
|
|
13673
|
-
title: z.string(),
|
|
13674
|
-
description: z.string(),
|
|
13675
|
-
questions: z.array(z.string()),
|
|
13676
|
-
clientCountry: z.string(),
|
|
13677
|
-
}),
|
|
13678
|
-
isOverallHighestPriorityCampaign: z.boolean().optional(),
|
|
13679
|
-
applyToLeads: z
|
|
13680
|
-
.array(z.object({ leadId: z.string(), campaignId: z.string() }))
|
|
13681
|
-
.optional(),
|
|
13682
|
-
});
|
|
13683
|
-
const agentGenerateProposalResponseSchema = z.object({
|
|
13684
|
-
coverLetter: z.string(),
|
|
13685
|
-
questionAnswerPairs: z.array(z.object({
|
|
13686
|
-
question: z.string(),
|
|
13687
|
-
answer: z.string(),
|
|
13688
|
-
})),
|
|
13689
|
-
});
|
|
13690
|
-
const agentCalculateSuitabilityRequestSchema = z.object({
|
|
13691
|
-
userId: z.string().nullable(),
|
|
13692
|
-
organizationId: z.string(),
|
|
13693
|
-
campaignId: z.string(),
|
|
13694
|
-
lead: leadSchema,
|
|
13695
|
-
isOverallHighestPriorityCampaign: z.boolean().optional(),
|
|
13696
|
-
applyToLeads: z
|
|
13697
|
-
.array(z.object({ leadId: z.string(), campaignId: z.string() }))
|
|
13698
|
-
.optional(),
|
|
13699
|
-
});
|
|
13700
|
-
const agentPickSpecialisedProfileRequestSchema = z.object({
|
|
13701
|
-
jobTitle: z.string(),
|
|
13702
|
-
jobDescription: z.string(),
|
|
13703
|
-
specialisedProfiles: z.array(z.string()),
|
|
13704
|
-
});
|
|
13705
|
-
const agentPickSpecialisedProfileResponseSchema = z.object({
|
|
13706
|
-
profile: z.string(),
|
|
13707
|
-
reason: z.string(),
|
|
13708
|
-
});
|
|
13709
|
-
const suitabilityRatingSchema = z.object({
|
|
13710
|
-
rating: z.number(),
|
|
13711
|
-
reason: z.string(),
|
|
13712
|
-
});
|
|
13713
|
-
const jobQualityScoreSchema = z.object({
|
|
13714
|
-
rating: z.number(),
|
|
13715
|
-
reason: z.string(),
|
|
13716
|
-
});
|
|
13717
|
-
const agentTaskResponseSchema = z.object({
|
|
13718
|
-
result: z.union([suitabilityRatingSchema, proposalSchema]),
|
|
13719
|
-
model: z.string(),
|
|
13720
|
-
provider: z.string(),
|
|
13721
|
-
promptTokens: z.number(),
|
|
13722
|
-
completionTokens: z.number(),
|
|
13723
|
-
});
|
|
13724
|
-
|
|
13725
13791
|
const feedEnrichStartedEventMetadata = objectType({
|
|
13726
13792
|
id: stringType(),
|
|
13727
13793
|
feedScrapeId: stringType(),
|
|
@@ -14046,6 +14112,19 @@ const scraperAccountSwapFailedEventMetadata = scraperAccountSwapStartedEventMeta
|
|
|
14046
14112
|
errorMessage: stringType(),
|
|
14047
14113
|
});
|
|
14048
14114
|
|
|
14115
|
+
const sendAlertPayloadSchema = z.object({
|
|
14116
|
+
type: z.union([
|
|
14117
|
+
z.literal("suitability"),
|
|
14118
|
+
z.literal("proposal"),
|
|
14119
|
+
z.literal("bidding"),
|
|
14120
|
+
z.literal("scraper"),
|
|
14121
|
+
]),
|
|
14122
|
+
organizationId: z.string().nullable(),
|
|
14123
|
+
campaignId: z.string().nullable(),
|
|
14124
|
+
leadId: z.string().nullable(),
|
|
14125
|
+
errorMessage: z.string(),
|
|
14126
|
+
});
|
|
14127
|
+
|
|
14049
14128
|
const planStripeMetadataSchema = objectType({
|
|
14050
14129
|
id: stringType().regex(/^prod_[a-zA-Z0-9]+$/),
|
|
14051
14130
|
name: stringType(),
|
|
@@ -14215,6 +14294,138 @@ const systemSchema = objectType({
|
|
|
14215
14294
|
prompts: systemPromptSchema,
|
|
14216
14295
|
});
|
|
14217
14296
|
|
|
14297
|
+
const skillSchema = objectType({
|
|
14298
|
+
prettyName: stringType(),
|
|
14299
|
+
uid: stringType(),
|
|
14300
|
+
});
|
|
14301
|
+
const skillWrapperSchema = objectType({
|
|
14302
|
+
skill: skillSchema,
|
|
14303
|
+
uid: stringType(),
|
|
14304
|
+
});
|
|
14305
|
+
const portfolioCategorySchema = objectType({
|
|
14306
|
+
id: stringType().optional(),
|
|
14307
|
+
level1: stringType().optional(),
|
|
14308
|
+
level2: stringType().optional(),
|
|
14309
|
+
});
|
|
14310
|
+
const portfolioItemSchema = objectType({
|
|
14311
|
+
description: stringType().optional(),
|
|
14312
|
+
title: stringType(),
|
|
14313
|
+
videoUrl: stringType().optional(),
|
|
14314
|
+
uid: stringType(),
|
|
14315
|
+
thumbnailUrl: stringType().optional(),
|
|
14316
|
+
publicPortfolioItem: booleanType(),
|
|
14317
|
+
category: portfolioCategorySchema,
|
|
14318
|
+
});
|
|
14319
|
+
const locationSchema = objectType({
|
|
14320
|
+
country: stringType(),
|
|
14321
|
+
state: stringType().optional(),
|
|
14322
|
+
city: stringType().optional(),
|
|
14323
|
+
region: stringType(),
|
|
14324
|
+
subregion: stringType(),
|
|
14325
|
+
timezone: stringType(),
|
|
14326
|
+
zip: stringType().optional(),
|
|
14327
|
+
});
|
|
14328
|
+
const chargeRateSchema = objectType({
|
|
14329
|
+
rawValue: stringType(),
|
|
14330
|
+
currency: stringType(),
|
|
14331
|
+
});
|
|
14332
|
+
const portraitSchema = objectType({
|
|
14333
|
+
portrait: stringType(),
|
|
14334
|
+
});
|
|
14335
|
+
const statsSchema = objectType({
|
|
14336
|
+
hideJss: booleanType(),
|
|
14337
|
+
hideEarnings: booleanType(),
|
|
14338
|
+
topRatedStatus: stringType(),
|
|
14339
|
+
topRatedStatusEx: stringType(),
|
|
14340
|
+
rate: numberType(),
|
|
14341
|
+
earned: numberType(),
|
|
14342
|
+
jobSuccessScore: numberType(),
|
|
14343
|
+
rankInfo: anyType().optional(),
|
|
14344
|
+
totalHours: numberType(),
|
|
14345
|
+
totalHourlyJobs: numberType(),
|
|
14346
|
+
totalFpJobs: numberType(),
|
|
14347
|
+
totalCompletedJobs: numberType(),
|
|
14348
|
+
});
|
|
14349
|
+
const nuxtStateProfileSchema = objectType({
|
|
14350
|
+
title: stringType().optional(),
|
|
14351
|
+
firstName: stringType().optional(),
|
|
14352
|
+
lastName: stringType().optional(),
|
|
14353
|
+
description: stringType().optional(),
|
|
14354
|
+
location: locationSchema.optional(),
|
|
14355
|
+
chargeRate: chargeRateSchema.optional(),
|
|
14356
|
+
portrait: portraitSchema.optional(),
|
|
14357
|
+
profileUrl: stringType().optional(),
|
|
14358
|
+
offerConsultations: booleanType().optional(),
|
|
14359
|
+
jobSummariesAssignmentRids: anyType().optional(),
|
|
14360
|
+
shortName: stringType().optional(),
|
|
14361
|
+
skills: skillWrapperSchema.array().optional(),
|
|
14362
|
+
stats: statsSchema.optional(),
|
|
14363
|
+
portfolioItems: portfolioItemSchema.array().optional(),
|
|
14364
|
+
totalPortfolioItems: numberType().optional(),
|
|
14365
|
+
specializedProfiles: anyType().array().optional(),
|
|
14366
|
+
isDiversityCertified: booleanType().optional(),
|
|
14367
|
+
isBoosted: booleanType().optional(),
|
|
14368
|
+
boosted: booleanType().optional(),
|
|
14369
|
+
boostedWouldHaveBeen: booleanType().optional(),
|
|
14370
|
+
});
|
|
14371
|
+
const identitySchema = objectType({
|
|
14372
|
+
id: stringType().optional(),
|
|
14373
|
+
ciphertext: stringType(),
|
|
14374
|
+
uid: stringType(),
|
|
14375
|
+
});
|
|
14376
|
+
const agencySchema = objectType({
|
|
14377
|
+
orgId: stringType(),
|
|
14378
|
+
ciphertext: stringType(),
|
|
14379
|
+
name: stringType(),
|
|
14380
|
+
classifications: anyType().array(),
|
|
14381
|
+
logo: stringType().optional(),
|
|
14382
|
+
hideEarnings: booleanType(),
|
|
14383
|
+
totalEarnings: numberType(),
|
|
14384
|
+
isAgencyDiversityCertified: anyType().array(),
|
|
14385
|
+
});
|
|
14386
|
+
const optionsSchema = objectType({
|
|
14387
|
+
position: numberType(),
|
|
14388
|
+
});
|
|
14389
|
+
const upworkTalentSchema = objectType({
|
|
14390
|
+
identity: identitySchema,
|
|
14391
|
+
isPibAvailable: booleanType(),
|
|
14392
|
+
profile: nuxtStateProfileSchema,
|
|
14393
|
+
agency: agencySchema,
|
|
14394
|
+
options: optionsSchema,
|
|
14395
|
+
linkedInURL: stringType().nullish(),
|
|
14396
|
+
});
|
|
14397
|
+
const statusSchema = objectType({
|
|
14398
|
+
loading: booleanType(),
|
|
14399
|
+
loaded: booleanType(),
|
|
14400
|
+
failed: booleanType(),
|
|
14401
|
+
});
|
|
14402
|
+
const pagingSchema = objectType({
|
|
14403
|
+
total: numberType(),
|
|
14404
|
+
offset: numberType(),
|
|
14405
|
+
count: numberType(),
|
|
14406
|
+
originTotal: numberType(),
|
|
14407
|
+
pagesTotal: numberType(),
|
|
14408
|
+
page: numberType(),
|
|
14409
|
+
perPage: numberType(),
|
|
14410
|
+
});
|
|
14411
|
+
const flagsSchema = objectType({
|
|
14412
|
+
portfolioSearch: booleanType(),
|
|
14413
|
+
});
|
|
14414
|
+
const nuxtStateProfileSearchSchema = objectType({
|
|
14415
|
+
status: statusSchema,
|
|
14416
|
+
profiles: nuxtStateProfileSchema.array(),
|
|
14417
|
+
currentPage: numberType(),
|
|
14418
|
+
paging: pagingSchema,
|
|
14419
|
+
flags: flagsSchema,
|
|
14420
|
+
searchQueryCache: recordType(anyType()),
|
|
14421
|
+
});
|
|
14422
|
+
const profileSearchNuxtObjectStateSchema = objectType({
|
|
14423
|
+
profilesSearch: nuxtStateProfileSearchSchema,
|
|
14424
|
+
});
|
|
14425
|
+
const profileSearchNuxtObjectSchema = objectType({
|
|
14426
|
+
state: profileSearchNuxtObjectStateSchema,
|
|
14427
|
+
});
|
|
14428
|
+
|
|
14218
14429
|
const periodTypeSchema = z.union([
|
|
14219
14430
|
z.literal("weekly"),
|
|
14220
14431
|
z.literal("monthly"),
|
|
@@ -14289,84 +14500,6 @@ const forgotPasswordSchema = objectType({
|
|
|
14289
14500
|
email: stringType().email(),
|
|
14290
14501
|
});
|
|
14291
14502
|
|
|
14292
|
-
const campaignStatsSchema = z.object({
|
|
14293
|
-
contacted: z.number(),
|
|
14294
|
-
viewed: z.number(),
|
|
14295
|
-
replied: z.number(),
|
|
14296
|
-
won: z.number(),
|
|
14297
|
-
proposalsGenerated: z.number(),
|
|
14298
|
-
leadsAnalyzed: z.number(),
|
|
14299
|
-
leadsFailed: z.number(),
|
|
14300
|
-
});
|
|
14301
|
-
const suitabilityBreakdownSchema = z.object({
|
|
14302
|
-
lessThan50: z.number(),
|
|
14303
|
-
between50And60: z.number(),
|
|
14304
|
-
between60And70: z.number(),
|
|
14305
|
-
between70And80: z.number(),
|
|
14306
|
-
between80And90: z.number(),
|
|
14307
|
-
above90: z.number(),
|
|
14308
|
-
});
|
|
14309
|
-
const campaignDetailsSchema = z.object({
|
|
14310
|
-
id: z.string(),
|
|
14311
|
-
name: z.string(),
|
|
14312
|
-
status: campaignStatusSchema,
|
|
14313
|
-
createdAt: z.number(),
|
|
14314
|
-
updatedAt: z.number(),
|
|
14315
|
-
stats: campaignStatsSchema,
|
|
14316
|
-
suitabilityBreakdown: suitabilityBreakdownSchema,
|
|
14317
|
-
});
|
|
14318
|
-
const organizationCampaignStatsSchema = z.object({
|
|
14319
|
-
organizationId: z.string(),
|
|
14320
|
-
organizationName: z.string(),
|
|
14321
|
-
organizationType: z.string(),
|
|
14322
|
-
tierId: z.string(),
|
|
14323
|
-
active: z.boolean(),
|
|
14324
|
-
createdAt: z.number(),
|
|
14325
|
-
campaignCount: z.number(),
|
|
14326
|
-
activeCampaignCount: z.number(),
|
|
14327
|
-
totalStats: campaignStatsSchema,
|
|
14328
|
-
campaigns: z.array(campaignDetailsSchema),
|
|
14329
|
-
});
|
|
14330
|
-
|
|
14331
|
-
const sendAlertPayloadSchema = z.object({
|
|
14332
|
-
type: z.union([
|
|
14333
|
-
z.literal("suitability"),
|
|
14334
|
-
z.literal("proposal"),
|
|
14335
|
-
z.literal("bidding"),
|
|
14336
|
-
z.literal("scraper"),
|
|
14337
|
-
]),
|
|
14338
|
-
organizationId: z.string().nullable(),
|
|
14339
|
-
campaignId: z.string().nullable(),
|
|
14340
|
-
leadId: z.string().nullable(),
|
|
14341
|
-
errorMessage: z.string(),
|
|
14342
|
-
});
|
|
14343
|
-
|
|
14344
|
-
const gcpMetadataSchema = objectType({
|
|
14345
|
-
instanceName: stringType(),
|
|
14346
|
-
machineType: stringType(),
|
|
14347
|
-
zone: stringType(),
|
|
14348
|
-
region: stringType(),
|
|
14349
|
-
});
|
|
14350
|
-
const hetznerMetadataSchema = objectType({
|
|
14351
|
-
id: stringType(),
|
|
14352
|
-
name: stringType(),
|
|
14353
|
-
type: stringType(),
|
|
14354
|
-
image: stringType(),
|
|
14355
|
-
createdAt: numberType(),
|
|
14356
|
-
});
|
|
14357
|
-
const bidderInstanceStatusEnum = z.enum(["available", "unavailable"]);
|
|
14358
|
-
const bidderInstanceSchema = objectType({
|
|
14359
|
-
id: stringType(),
|
|
14360
|
-
ipAddress: stringType(),
|
|
14361
|
-
domain: stringType().nullable(),
|
|
14362
|
-
bidderAccounts: arrayType(stringType()),
|
|
14363
|
-
gcp: gcpMetadataSchema,
|
|
14364
|
-
hetzner: hetznerMetadataSchema,
|
|
14365
|
-
status: bidderInstanceStatusEnum,
|
|
14366
|
-
createdAt: numberType(),
|
|
14367
|
-
updatedAt: numberType(),
|
|
14368
|
-
});
|
|
14369
|
-
|
|
14370
14503
|
const planSlugToNameMap = {
|
|
14371
14504
|
[planSlugEnum.enum['lancer-unlimited-launch-offer']]: 'Lancer Unlimited - Launch Offer',
|
|
14372
14505
|
};
|
|
@@ -23158,6 +23291,7 @@ exports.organizationSchema = organizationSchema;
|
|
|
23158
23291
|
exports.organizationSettingsSchema = organizationSettingsSchema;
|
|
23159
23292
|
exports.organizationTierEnum = organizationTierEnum;
|
|
23160
23293
|
exports.organizationTypeSchema = organizationTypeSchema;
|
|
23294
|
+
exports.organizationUpdateSchema = organizationUpdateSchema;
|
|
23161
23295
|
exports.pageClosedException = pageClosedException;
|
|
23162
23296
|
exports.pageContentException = pageContentException;
|
|
23163
23297
|
exports.parseConnectsException = parseConnectsException;
|
|
@@ -23174,6 +23308,8 @@ exports.planStripeMetadataSchema = planStripeMetadataSchema;
|
|
|
23174
23308
|
exports.pluralize = pluralize;
|
|
23175
23309
|
exports.portfolioSchema = portfolioSchema;
|
|
23176
23310
|
exports.processFeedPayloadSchema = processFeedPayloadSchema;
|
|
23311
|
+
exports.profileSearchNuxtObjectSchema = profileSearchNuxtObjectSchema;
|
|
23312
|
+
exports.profileSearchNuxtObjectStateSchema = profileSearchNuxtObjectStateSchema;
|
|
23177
23313
|
exports.projectDurationEnum = projectDurationEnum;
|
|
23178
23314
|
exports.proposalCompleteEventMetadataSchema = proposalCompleteEventMetadataSchema;
|
|
23179
23315
|
exports.proposalErrorAlertException = proposalErrorAlertException;
|
|
@@ -23257,6 +23393,7 @@ exports.upworkAccountConnectSchema = upworkAccountConnectSchema;
|
|
|
23257
23393
|
exports.upworkAccountConnectStatusSchema = upworkAccountConnectStatusSchema;
|
|
23258
23394
|
exports.upworkJobSchema = upworkJobSchema;
|
|
23259
23395
|
exports.upworkProfileSchema = upworkProfileSchema;
|
|
23396
|
+
exports.upworkTalentSchema = upworkTalentSchema;
|
|
23260
23397
|
exports.usageEventMetadataSchema = usageEventMetadataSchema;
|
|
23261
23398
|
exports.usageEventSchema = usageEventSchema;
|
|
23262
23399
|
exports.usageEventTypeEnum = usageEventTypeEnum;
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
export * from "./account";
|
|
2
|
+
export * from "./agent";
|
|
2
3
|
export * from "./bid";
|
|
3
4
|
export * from "./campaign";
|
|
5
|
+
export * from "./dashboard";
|
|
6
|
+
export * from './infrastructure';
|
|
4
7
|
export * from "./invoice";
|
|
5
8
|
export * from "./job";
|
|
6
9
|
export * from "./lead";
|
|
7
|
-
export * from "./agent";
|
|
8
10
|
export * from "./logger";
|
|
11
|
+
export * from "./notifications";
|
|
9
12
|
export * from "./organization";
|
|
10
13
|
export * from "./plan";
|
|
11
14
|
export * from "./proxy";
|
|
12
15
|
export * from "./saved-search";
|
|
13
16
|
export * from "./scraper";
|
|
17
|
+
export * from "./shared";
|
|
14
18
|
export * from "./system";
|
|
19
|
+
export * from './talent';
|
|
15
20
|
export * from "./time-filter";
|
|
16
21
|
export * from "./transaction";
|
|
17
22
|
export * from "./usage";
|
|
18
23
|
export * from "./usage-event";
|
|
19
24
|
export * from "./user";
|
|
20
|
-
export * from "./dashboard";
|
|
21
|
-
export * from "./notifications";
|
|
22
|
-
export * from "./shared";
|
|
23
|
-
export * from "./infrastructure";
|
|
@@ -406,6 +406,13 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
406
406
|
} | undefined;
|
|
407
407
|
} | undefined;
|
|
408
408
|
}>;
|
|
409
|
+
export declare const organizationUpdateSchema: z.ZodObject<{
|
|
410
|
+
planId: z.ZodString;
|
|
411
|
+
}, "strip", z.ZodTypeAny, {
|
|
412
|
+
planId: string;
|
|
413
|
+
}, {
|
|
414
|
+
planId: string;
|
|
415
|
+
}>;
|
|
409
416
|
export declare const caseStudySchema: z.ZodObject<{
|
|
410
417
|
id: z.ZodString;
|
|
411
418
|
title: z.ZodString;
|
|
@@ -894,6 +901,8 @@ export interface Organization extends infer<typeof organizationSchema> {
|
|
|
894
901
|
onboarding: OnboardingProgress | null;
|
|
895
902
|
oneTimePayments: OneTimePayments;
|
|
896
903
|
}
|
|
904
|
+
export interface OrganizationUpdateSchema extends infer<typeof organizationUpdateSchema> {
|
|
905
|
+
}
|
|
897
906
|
export interface TrackUsagePayloadSchema extends infer<typeof trackUsagePayloadSchema> {
|
|
898
907
|
}
|
|
899
908
|
export interface AiConfig extends infer<typeof aiConfigSchema> {
|