lancer-shared 1.2.311 → 1.2.313
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 +269 -136
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +252 -135
- package/dist/bundle.esm.js.map +1 -1
- package/dist/constants/routes.d.ts +54 -0
- package/dist/schemas/account/bidder-account.d.ts +70 -0
- package/dist/schemas/campaign/campaign-analytics.d.ts +32 -0
- package/dist/schemas/chat/index.d.ts +255 -0
- package/dist/schemas/index.d.ts +2 -1
- package/dist/schemas/logger/log-event.d.ts +61 -0
- package/dist/schemas/scraper/scrape-payload.d.ts +68 -0
- package/dist/schemas/upwork-talent/index.d.ts +562 -0
- package/package.json +1 -1
package/dist/bundle.cjs.js
CHANGED
|
@@ -5658,7 +5658,7 @@ const jobListingSchema = objectType({
|
|
|
5658
5658
|
weeklyBudget: amountSchema,
|
|
5659
5659
|
isSTSVectorSearchResult: booleanType(),
|
|
5660
5660
|
});
|
|
5661
|
-
const pagingSchema
|
|
5661
|
+
const pagingSchema = objectType({
|
|
5662
5662
|
total: numberType(),
|
|
5663
5663
|
offset: numberType(),
|
|
5664
5664
|
count: numberType(),
|
|
@@ -5670,7 +5670,7 @@ const jobsSearchSchema = objectType({
|
|
|
5670
5670
|
failed: booleanType(),
|
|
5671
5671
|
}),
|
|
5672
5672
|
jobs: arrayType(jobListingSchema),
|
|
5673
|
-
paging: pagingSchema
|
|
5673
|
+
paging: pagingSchema,
|
|
5674
5674
|
abortController: anyType().nullable(),
|
|
5675
5675
|
currentPage: numberType(),
|
|
5676
5676
|
jobsPerPage: numberType(),
|
|
@@ -6666,6 +6666,11 @@ const bidderAccountSchema = z.object({
|
|
|
6666
6666
|
isProtected: z.boolean().optional(),
|
|
6667
6667
|
status: bidderAccountStatusEnum,
|
|
6668
6668
|
errorMessage: z.string().nullable(),
|
|
6669
|
+
connectedToChat: z.boolean().nullable(),
|
|
6670
|
+
failedToRefreshRooms: z.boolean().nullable(),
|
|
6671
|
+
failedToRefreshRoomsAttempts: z.number().nullable(),
|
|
6672
|
+
roomsRefreshedAt: z.number().nullable(),
|
|
6673
|
+
userId: z.string().nullable(),
|
|
6669
6674
|
});
|
|
6670
6675
|
const connectUpworkAccountSchema = z.object({
|
|
6671
6676
|
email: z.string().email(),
|
|
@@ -6722,6 +6727,18 @@ const reconnectBidderAccountResponseSchema = z.object({
|
|
|
6722
6727
|
photoUrl: z.string(),
|
|
6723
6728
|
contractors: z.array(bidderAccountAgencyContractorSchema),
|
|
6724
6729
|
});
|
|
6730
|
+
const upworkOrganizationSchema = z.object({
|
|
6731
|
+
label: z.string(),
|
|
6732
|
+
photo_url: z.string(),
|
|
6733
|
+
uid: z.string(),
|
|
6734
|
+
id: z.string(),
|
|
6735
|
+
link: z.string(),
|
|
6736
|
+
type: z.enum(['freelancer', 'agency']),
|
|
6737
|
+
type_title: z.string(),
|
|
6738
|
+
is_active: z.boolean(),
|
|
6739
|
+
monetizedTitle: z.string(),
|
|
6740
|
+
portrait100: z.string().optional(),
|
|
6741
|
+
});
|
|
6725
6742
|
|
|
6726
6743
|
class BidderAccountAlreadyConnectedException extends Error {
|
|
6727
6744
|
code = 'BIDDER_ACCOUNT_ALREADY_CONNECTED';
|
|
@@ -8727,6 +8744,90 @@ const syncProposalsStatusRequestPayloadSchema = z.object({
|
|
|
8727
8744
|
bidderAccountId: z.string(),
|
|
8728
8745
|
});
|
|
8729
8746
|
|
|
8747
|
+
const roomSchema = z.object({
|
|
8748
|
+
roomId: z.string(),
|
|
8749
|
+
roomName: z.string(),
|
|
8750
|
+
topic: z.string(),
|
|
8751
|
+
organizationUid: z.string(),
|
|
8752
|
+
organizationType: z.string(),
|
|
8753
|
+
recentTimestamp: z.number(),
|
|
8754
|
+
context: z.object({
|
|
8755
|
+
freelancerId: z.string(),
|
|
8756
|
+
freelancerOrgId: z.string(),
|
|
8757
|
+
freelancerName: z.string().optional(),
|
|
8758
|
+
clientId: z.string().optional(),
|
|
8759
|
+
clientName: z.string().optional(),
|
|
8760
|
+
jobTitle: z.string().optional(),
|
|
8761
|
+
currentStatus: z.string().optional(),
|
|
8762
|
+
associatedAgencyOrgId: z.string().optional(),
|
|
8763
|
+
}),
|
|
8764
|
+
numUnread: z.number(),
|
|
8765
|
+
latestStory: z
|
|
8766
|
+
.object({
|
|
8767
|
+
message: z.string(),
|
|
8768
|
+
created: z.number(),
|
|
8769
|
+
messageId: z.string().optional(),
|
|
8770
|
+
senderName: z.string().optional(),
|
|
8771
|
+
})
|
|
8772
|
+
.optional(),
|
|
8773
|
+
lastChecked: z.number().optional(),
|
|
8774
|
+
hasNewMessages: z.boolean().optional(),
|
|
8775
|
+
updatedAt: z.number().optional(),
|
|
8776
|
+
});
|
|
8777
|
+
const roomsMetadataSchema = z.object({
|
|
8778
|
+
accountId: z.string(),
|
|
8779
|
+
lastUpdated: z.number(),
|
|
8780
|
+
totalRooms: z.number(),
|
|
8781
|
+
});
|
|
8782
|
+
const roomMessageSchema = z
|
|
8783
|
+
.object({
|
|
8784
|
+
messageId: z.string(),
|
|
8785
|
+
userId: z.string(),
|
|
8786
|
+
message: z.string(),
|
|
8787
|
+
created: z.number(),
|
|
8788
|
+
userName: z.string().optional(),
|
|
8789
|
+
orgId: z.string().optional(),
|
|
8790
|
+
senderName: z.string().optional(),
|
|
8791
|
+
})
|
|
8792
|
+
.passthrough();
|
|
8793
|
+
const roomTagSchema = z.object({
|
|
8794
|
+
id: z.string(),
|
|
8795
|
+
name: z.string(),
|
|
8796
|
+
color: z.string().optional(),
|
|
8797
|
+
createdAt: z.number(),
|
|
8798
|
+
updatedAt: z.number().optional(),
|
|
8799
|
+
});
|
|
8800
|
+
const createRoomTagRequestBodySchema = z.object({
|
|
8801
|
+
name: z.string(),
|
|
8802
|
+
color: z.string().optional(),
|
|
8803
|
+
});
|
|
8804
|
+
const assignRoomTagsRequestBodySchema = z.object({
|
|
8805
|
+
tagIds: z.array(z.string()),
|
|
8806
|
+
});
|
|
8807
|
+
const roomNoteSchema = z.object({
|
|
8808
|
+
note: z.string().nullable(),
|
|
8809
|
+
createdAt: z.number(),
|
|
8810
|
+
updatedAt: z.number(),
|
|
8811
|
+
});
|
|
8812
|
+
const updateRoomNotesRequestBodySchema = z.object({
|
|
8813
|
+
note: z.string(),
|
|
8814
|
+
});
|
|
8815
|
+
const sendMessageRequestSchema = z.object({
|
|
8816
|
+
message: z.string(),
|
|
8817
|
+
file: z.instanceof(File).optional(),
|
|
8818
|
+
});
|
|
8819
|
+
const freeSlotsRequestBodySchema = z.object({
|
|
8820
|
+
userId: z.string(),
|
|
8821
|
+
durationMinutes: z.number(),
|
|
8822
|
+
});
|
|
8823
|
+
const bookSlotRequestBodySchema = z.object({
|
|
8824
|
+
ownerUid: z.string(),
|
|
8825
|
+
duration: z.number(),
|
|
8826
|
+
platform: z.string(),
|
|
8827
|
+
startTime: z.number(),
|
|
8828
|
+
endTime: z.number(),
|
|
8829
|
+
});
|
|
8830
|
+
|
|
8730
8831
|
const campaignStatsSchema = z.object({
|
|
8731
8832
|
contacted: z.number(),
|
|
8732
8833
|
viewed: z.number(),
|
|
@@ -9119,6 +9220,8 @@ const verifyCredentialsSucceededEventMetadataSchema = objectType({
|
|
|
9119
9220
|
agencies: z.array(bidderAccountAgencySchema),
|
|
9120
9221
|
specialisedProfiles: z.array(z.string()),
|
|
9121
9222
|
portfolios: z.array(bidderAccountPortfolioSchema),
|
|
9223
|
+
upworkOrganizations: z.array(upworkOrganizationSchema),
|
|
9224
|
+
userId: z.string().nullable(),
|
|
9122
9225
|
});
|
|
9123
9226
|
const verifyCredentialsFailedEventMetadataSchema = objectType({
|
|
9124
9227
|
bidderAccountId: z.string(),
|
|
@@ -9425,138 +9528,6 @@ const systemSchema = objectType({
|
|
|
9425
9528
|
prompts: systemPromptSchema,
|
|
9426
9529
|
});
|
|
9427
9530
|
|
|
9428
|
-
const skillSchema = objectType({
|
|
9429
|
-
prettyName: stringType(),
|
|
9430
|
-
uid: stringType(),
|
|
9431
|
-
});
|
|
9432
|
-
const skillWrapperSchema = objectType({
|
|
9433
|
-
skill: skillSchema,
|
|
9434
|
-
uid: stringType(),
|
|
9435
|
-
});
|
|
9436
|
-
const portfolioCategorySchema = objectType({
|
|
9437
|
-
id: stringType().optional(),
|
|
9438
|
-
level1: stringType().optional(),
|
|
9439
|
-
level2: stringType().optional(),
|
|
9440
|
-
});
|
|
9441
|
-
const portfolioItemSchema = objectType({
|
|
9442
|
-
description: stringType().optional(),
|
|
9443
|
-
title: stringType(),
|
|
9444
|
-
videoUrl: stringType().optional(),
|
|
9445
|
-
uid: stringType(),
|
|
9446
|
-
thumbnailUrl: stringType().optional(),
|
|
9447
|
-
publicPortfolioItem: booleanType(),
|
|
9448
|
-
category: portfolioCategorySchema,
|
|
9449
|
-
});
|
|
9450
|
-
const locationSchema = objectType({
|
|
9451
|
-
country: stringType(),
|
|
9452
|
-
state: stringType().optional(),
|
|
9453
|
-
city: stringType().optional(),
|
|
9454
|
-
region: stringType(),
|
|
9455
|
-
subregion: stringType(),
|
|
9456
|
-
timezone: stringType(),
|
|
9457
|
-
zip: stringType().optional(),
|
|
9458
|
-
});
|
|
9459
|
-
const chargeRateSchema = objectType({
|
|
9460
|
-
rawValue: stringType(),
|
|
9461
|
-
currency: stringType(),
|
|
9462
|
-
});
|
|
9463
|
-
const portraitSchema = objectType({
|
|
9464
|
-
portrait: stringType(),
|
|
9465
|
-
});
|
|
9466
|
-
const statsSchema = objectType({
|
|
9467
|
-
hideJss: booleanType(),
|
|
9468
|
-
hideEarnings: booleanType(),
|
|
9469
|
-
topRatedStatus: stringType(),
|
|
9470
|
-
topRatedStatusEx: stringType(),
|
|
9471
|
-
rate: numberType(),
|
|
9472
|
-
earned: numberType(),
|
|
9473
|
-
jobSuccessScore: numberType(),
|
|
9474
|
-
rankInfo: anyType().optional(),
|
|
9475
|
-
totalHours: numberType(),
|
|
9476
|
-
totalHourlyJobs: numberType(),
|
|
9477
|
-
totalFpJobs: numberType(),
|
|
9478
|
-
totalCompletedJobs: numberType(),
|
|
9479
|
-
});
|
|
9480
|
-
const nuxtStateProfileSchema = objectType({
|
|
9481
|
-
title: stringType().optional(),
|
|
9482
|
-
firstName: stringType().optional(),
|
|
9483
|
-
lastName: stringType().optional(),
|
|
9484
|
-
description: stringType().optional(),
|
|
9485
|
-
location: locationSchema.optional(),
|
|
9486
|
-
chargeRate: chargeRateSchema.optional(),
|
|
9487
|
-
portrait: portraitSchema.optional(),
|
|
9488
|
-
profileUrl: stringType().optional(),
|
|
9489
|
-
offerConsultations: booleanType().optional(),
|
|
9490
|
-
jobSummariesAssignmentRids: anyType().optional(),
|
|
9491
|
-
shortName: stringType().optional(),
|
|
9492
|
-
skills: skillWrapperSchema.array().optional(),
|
|
9493
|
-
stats: statsSchema.optional(),
|
|
9494
|
-
portfolioItems: portfolioItemSchema.array().optional(),
|
|
9495
|
-
totalPortfolioItems: numberType().optional(),
|
|
9496
|
-
specializedProfiles: anyType().array().optional(),
|
|
9497
|
-
isDiversityCertified: booleanType().optional(),
|
|
9498
|
-
isBoosted: booleanType().optional(),
|
|
9499
|
-
boosted: booleanType().optional(),
|
|
9500
|
-
boostedWouldHaveBeen: booleanType().optional(),
|
|
9501
|
-
});
|
|
9502
|
-
const identitySchema = objectType({
|
|
9503
|
-
id: stringType().optional(),
|
|
9504
|
-
ciphertext: stringType(),
|
|
9505
|
-
uid: stringType(),
|
|
9506
|
-
});
|
|
9507
|
-
const agencySchema = objectType({
|
|
9508
|
-
orgId: stringType(),
|
|
9509
|
-
ciphertext: stringType(),
|
|
9510
|
-
name: stringType(),
|
|
9511
|
-
classifications: anyType().array(),
|
|
9512
|
-
logo: stringType().optional(),
|
|
9513
|
-
hideEarnings: booleanType(),
|
|
9514
|
-
totalEarnings: numberType(),
|
|
9515
|
-
isAgencyDiversityCertified: anyType().array(),
|
|
9516
|
-
});
|
|
9517
|
-
const optionsSchema = objectType({
|
|
9518
|
-
position: numberType(),
|
|
9519
|
-
});
|
|
9520
|
-
const upworkTalentSchema = objectType({
|
|
9521
|
-
identity: identitySchema,
|
|
9522
|
-
isPibAvailable: booleanType(),
|
|
9523
|
-
profile: nuxtStateProfileSchema,
|
|
9524
|
-
agency: agencySchema,
|
|
9525
|
-
options: optionsSchema,
|
|
9526
|
-
linkedInURL: stringType().nullish(),
|
|
9527
|
-
});
|
|
9528
|
-
const statusSchema = objectType({
|
|
9529
|
-
loading: booleanType(),
|
|
9530
|
-
loaded: booleanType(),
|
|
9531
|
-
failed: booleanType(),
|
|
9532
|
-
});
|
|
9533
|
-
const pagingSchema = objectType({
|
|
9534
|
-
total: numberType(),
|
|
9535
|
-
offset: numberType(),
|
|
9536
|
-
count: numberType(),
|
|
9537
|
-
originTotal: numberType(),
|
|
9538
|
-
pagesTotal: numberType(),
|
|
9539
|
-
page: numberType(),
|
|
9540
|
-
perPage: numberType(),
|
|
9541
|
-
});
|
|
9542
|
-
const flagsSchema = objectType({
|
|
9543
|
-
portfolioSearch: booleanType(),
|
|
9544
|
-
});
|
|
9545
|
-
const nuxtStateProfileSearchSchema = objectType({
|
|
9546
|
-
status: statusSchema,
|
|
9547
|
-
profiles: nuxtStateProfileSchema.array(),
|
|
9548
|
-
currentPage: numberType(),
|
|
9549
|
-
paging: pagingSchema,
|
|
9550
|
-
flags: flagsSchema,
|
|
9551
|
-
searchQueryCache: recordType(anyType()),
|
|
9552
|
-
});
|
|
9553
|
-
const profileSearchNuxtObjectStateSchema = objectType({
|
|
9554
|
-
profilesSearch: nuxtStateProfileSearchSchema,
|
|
9555
|
-
});
|
|
9556
|
-
const profileSearchNuxtObjectSchema = objectType({
|
|
9557
|
-
state: profileSearchNuxtObjectStateSchema,
|
|
9558
|
-
});
|
|
9559
|
-
|
|
9560
9531
|
const periodTypeSchema = z.union([
|
|
9561
9532
|
z.literal("weekly"),
|
|
9562
9533
|
z.literal("monthly"),
|
|
@@ -9662,6 +9633,98 @@ const getTop20CategoriesByAvgHourlyRatePaidResponseSchema = z.array(z.object({
|
|
|
9662
9633
|
avgHourlyRatePaid: z.number(),
|
|
9663
9634
|
}));
|
|
9664
9635
|
|
|
9636
|
+
const upworkTalentSkillWithRankSchema = objectType({
|
|
9637
|
+
skill: stringType(),
|
|
9638
|
+
rank: numberType(),
|
|
9639
|
+
});
|
|
9640
|
+
const upworkTalentSchema = objectType({
|
|
9641
|
+
id: stringType(),
|
|
9642
|
+
ciphertext: stringType(),
|
|
9643
|
+
vanityUrl: stringType().nullable(),
|
|
9644
|
+
name: stringType(),
|
|
9645
|
+
title: stringType(),
|
|
9646
|
+
description: stringType().nullable(),
|
|
9647
|
+
city: stringType().nullable(),
|
|
9648
|
+
country: stringType(),
|
|
9649
|
+
countryCode: stringType().nullable(),
|
|
9650
|
+
bigPortraitUrl: stringType().nullable(),
|
|
9651
|
+
portrait500Url: stringType().nullable(),
|
|
9652
|
+
hourlyRate: numberType().nullable(),
|
|
9653
|
+
totalJobsWorked: numberType(),
|
|
9654
|
+
totalJobsWorkedRecent: numberType(),
|
|
9655
|
+
totalFixedJobs: numberType(),
|
|
9656
|
+
totalHourlyJobs: numberType(),
|
|
9657
|
+
activeJobs: numberType().nullable(),
|
|
9658
|
+
hideEarnings: booleanType(),
|
|
9659
|
+
contractorEarnings: numberType(),
|
|
9660
|
+
recentEarnings: numberType(),
|
|
9661
|
+
averageRecentEarnings: numberType(),
|
|
9662
|
+
mrr: numberType(),
|
|
9663
|
+
earningsPerProject: numberType(),
|
|
9664
|
+
earningsPerProjectRecent: numberType(),
|
|
9665
|
+
badge: z.enum(['top_rated_plus', 'top_rated', 'rising_talent']).nullable(),
|
|
9666
|
+
jobSuccessScore: numberType().nullable(),
|
|
9667
|
+
totalFeedback: numberType(),
|
|
9668
|
+
rating: numberType(),
|
|
9669
|
+
ratingRecent: numberType(),
|
|
9670
|
+
isVetted: booleanType(),
|
|
9671
|
+
skills: stringType().array(),
|
|
9672
|
+
videoUrl: stringType().nullable(),
|
|
9673
|
+
memberSince: stringType().nullable(),
|
|
9674
|
+
worldTotal: numberType().nullable(),
|
|
9675
|
+
countryTotal: numberType().nullable(),
|
|
9676
|
+
mrrWorldRank: numberType().nullable(),
|
|
9677
|
+
mrrCountryRank: numberType().nullable(),
|
|
9678
|
+
totalEarningsWorldRank: numberType().nullable(),
|
|
9679
|
+
totalEarningsCountryRank: numberType().nullable(),
|
|
9680
|
+
recentEarningsWorldRank: numberType().nullable(),
|
|
9681
|
+
recentEarningsCountryRank: numberType().nullable(),
|
|
9682
|
+
totalProjectsWorldRank: numberType().nullable(),
|
|
9683
|
+
totalProjectsCountryRank: numberType().nullable(),
|
|
9684
|
+
averageEarningsPerProjectWorldRank: numberType().nullable(),
|
|
9685
|
+
averageEarningsPerProjectCountryRank: numberType().nullable(),
|
|
9686
|
+
skillsWithRank: upworkTalentSkillWithRankSchema.array(),
|
|
9687
|
+
});
|
|
9688
|
+
const upworkTalentSearchRequestSchema = objectType({
|
|
9689
|
+
page: numberType().nullable().optional(),
|
|
9690
|
+
limit: numberType().nullable().optional(),
|
|
9691
|
+
sortBy: stringType().nullable().optional(),
|
|
9692
|
+
sortOrder: z.enum(['asc', 'desc']).nullable().optional(),
|
|
9693
|
+
country: stringType().nullable().optional(),
|
|
9694
|
+
skill: stringType().nullable().optional(),
|
|
9695
|
+
badge: z.enum(['top_rated_plus', 'top_rated', 'rising_talent']).nullable().optional(),
|
|
9696
|
+
isVetted: booleanType().nullable().optional(),
|
|
9697
|
+
minEarnings: numberType().nullable().optional(),
|
|
9698
|
+
maxEarnings: numberType().nullable().optional(),
|
|
9699
|
+
minMrr: numberType().nullable().optional(),
|
|
9700
|
+
maxMrr: numberType().nullable().optional(),
|
|
9701
|
+
minHourlyRate: numberType().nullable().optional(),
|
|
9702
|
+
maxHourlyRate: numberType().nullable().optional(),
|
|
9703
|
+
minJobSuccessScore: numberType().nullable().optional(),
|
|
9704
|
+
searchQuery: stringType().nullable().optional(),
|
|
9705
|
+
});
|
|
9706
|
+
const upworkTalentSearchResponseSchema = objectType({
|
|
9707
|
+
data: upworkTalentSchema.array(),
|
|
9708
|
+
pagination: objectType({
|
|
9709
|
+
page: numberType(),
|
|
9710
|
+
limit: numberType(),
|
|
9711
|
+
total: numberType(),
|
|
9712
|
+
totalPages: numberType(),
|
|
9713
|
+
}),
|
|
9714
|
+
});
|
|
9715
|
+
const upworkTalentCountrySchema = objectType({
|
|
9716
|
+
country: stringType(),
|
|
9717
|
+
countryCode: stringType().nullable(),
|
|
9718
|
+
count: numberType(),
|
|
9719
|
+
});
|
|
9720
|
+
const upworkTalentSkillsSchema = objectType({
|
|
9721
|
+
skill: stringType(),
|
|
9722
|
+
count: numberType(),
|
|
9723
|
+
});
|
|
9724
|
+
const upworkTalentSkillsResponseSchema = objectType({
|
|
9725
|
+
data: upworkTalentSkillsSchema.array(),
|
|
9726
|
+
});
|
|
9727
|
+
|
|
9665
9728
|
const breakdownSchema = objectType({
|
|
9666
9729
|
suitability: numberType(),
|
|
9667
9730
|
proposal: numberType(),
|
|
@@ -15584,6 +15647,24 @@ const ROUTES = {
|
|
|
15584
15647
|
CONNECT_UPWORK_ACCOUNT: (id) => `organizations/${id}/bidder-accounts/connect-upwork-account`,
|
|
15585
15648
|
RETRY_CONNECT_UPWORK_ACCOUNT: (id, bidderId) => `organizations/${id}/bidder-accounts/${bidderId}/retry-connect-upwork-account`,
|
|
15586
15649
|
AVAILABLE_REGIONS: (id) => `organizations/${id}/bidder-accounts/available-regions`,
|
|
15650
|
+
CHAT: {
|
|
15651
|
+
ROOMS_TAGS: (organizationId) => `organizations/${organizationId}/chat/tags`,
|
|
15652
|
+
ROOM_TAG: (organizationId, bidderAccountId, roomId) => `organizations/${organizationId}/bidder-accounts/${bidderAccountId}/rooms/${roomId}/tags`,
|
|
15653
|
+
ROOM_NOTES: (organizationId, bidderAccountId, roomId) => `organizations/${organizationId}/bidder-accounts/${bidderAccountId}/rooms/${roomId}/notes`,
|
|
15654
|
+
CONNECT_ACCOUNT: (organizationId, bidderAccountId) => `organizations/${organizationId}/bidder-accounts/${bidderAccountId}/chat/connect-account`,
|
|
15655
|
+
ROOMS: (id, bidderAccountId) => `organizations/${id}/bidder-accounts/${bidderAccountId}/rooms`,
|
|
15656
|
+
ROOM: (id, bidderAccountId, roomId) => `organizations/${id}/bidder-accounts/${bidderAccountId}/rooms/${roomId}`,
|
|
15657
|
+
SEND_MESSAGE: (id, bidderAccountId, roomId) => `organizations/${id}/bidder-accounts/${bidderAccountId}/rooms/${roomId}/send-message`,
|
|
15658
|
+
REFRESH_ROOMS: (organizationId, bidderAccountId) => `organizations/${organizationId}/bidder-accounts/${bidderAccountId}/chat/refresh-rooms`,
|
|
15659
|
+
CREATE_ZOOM_MEETING: (organizationId, bidderAccountId, roomId) => `organizations/${organizationId}/bidder-accounts/${bidderAccountId}/rooms/${roomId}/create-zoom-meeting`,
|
|
15660
|
+
MARK_ROOM_AS_READ: (id, bidderAccountId, roomId) => `organizations/${id}/bidder-accounts/${bidderAccountId}/rooms/${roomId}/mark-as-read`,
|
|
15661
|
+
SCHEDULE_MEETING: (organizationId, bidderAccountId, roomId) => `organizations/${organizationId}/bidder-accounts/${bidderAccountId}/rooms/${roomId}/schedule-meeting`,
|
|
15662
|
+
ADD_TO_CALENDAR: (organizationId, bidderAccountId, roomId) => `organizations/${organizationId}/bidder-accounts/${bidderAccountId}/rooms/${roomId}/add-to-calendar`,
|
|
15663
|
+
JOIN_ZOOM_MEETING: (organizationId, bidderAccountId, roomId) => `organizations/${organizationId}/bidder-accounts/${bidderAccountId}/rooms/${roomId}/join-zoom-meeting`,
|
|
15664
|
+
GET_FREE_SLOTS: (organizationId, bidderAccountId, roomId) => `organizations/${organizationId}/bidder-accounts/${bidderAccountId}/rooms/${roomId}/free-slots`,
|
|
15665
|
+
BOOK_SLOT: (organizationId, bidderAccountId, roomId) => `organizations/${organizationId}/bidder-accounts/${bidderAccountId}/rooms/${roomId}/book-slot`,
|
|
15666
|
+
ATTACHMENT_REDIRECT: (organizationId, bidderAccountId, roomId) => `organizations/${organizationId}/bidder-accounts/${bidderAccountId}/rooms/${roomId}/attachment-redirect`,
|
|
15667
|
+
},
|
|
15587
15668
|
},
|
|
15588
15669
|
LEADS_BY_JOB_ID: (organizationId, jobId) => `organizations/${organizationId}/leads/${jobId}`,
|
|
15589
15670
|
UPDATE_CAMPAIGN_PRIORITY: (organizationId) => `organizations/${organizationId}/update-campaign-priority`,
|
|
@@ -15682,6 +15763,21 @@ const ROUTES = {
|
|
|
15682
15763
|
GENERATE_PROPOSAL: 'agent/generate-proposal',
|
|
15683
15764
|
PICK_SPECIALISED_PROFILE: 'agent/pick-specialised-profile',
|
|
15684
15765
|
BID: 'agent/bid',
|
|
15766
|
+
CHAT: {
|
|
15767
|
+
BASE: 'agent/chat',
|
|
15768
|
+
ROOMS: (bidderAccountId) => `agent/chat/rooms/${bidderAccountId}`,
|
|
15769
|
+
ROOM: (bidderAccountId, roomId) => `agent/chat/rooms/${bidderAccountId}/${roomId}`,
|
|
15770
|
+
SEND_MESSAGE: (bidderAccountId, roomId) => `agent/chat/rooms/${bidderAccountId}/${roomId}/send-message`,
|
|
15771
|
+
MARK_AS_READ: (bidderAccountId, roomId) => `agent/chat/rooms/${bidderAccountId}/${roomId}/mark-as-read`,
|
|
15772
|
+
REFRESH_ROOMS: (bidderAccountId) => `agent/chat/rooms/${bidderAccountId}/refresh`,
|
|
15773
|
+
CREATE_ZOOM_MEETING: (bidderAccountId, roomId) => `agent/chat/rooms/${bidderAccountId}/${roomId}/create-zoom-meeting`,
|
|
15774
|
+
SCHEDULE_MEETING: (bidderAccountId, roomId) => `agent/chat/rooms/${bidderAccountId}/${roomId}/schedule-meeting`,
|
|
15775
|
+
ADD_TO_CALENDAR: (bidderAccountId, roomId) => `agent/chat/rooms/${bidderAccountId}/${roomId}/add-to-calendar`,
|
|
15776
|
+
JOIN_ZOOM_MEETING: (bidderAccountId, roomId) => `agent/chat/rooms/${bidderAccountId}/${roomId}/join-zoom-meeting`,
|
|
15777
|
+
GET_FREE_SLOTS: (bidderAccountId, roomId) => `agent/chat/rooms/${bidderAccountId}/${roomId}/free-slots`,
|
|
15778
|
+
BOOK_SLOT: (bidderAccountId, roomId) => `agent/chat/rooms/${bidderAccountId}/${roomId}/book-slot`,
|
|
15779
|
+
ATTACHMENT_REDIRECT: (bidderAccountId, roomId) => `agent/chat/rooms/${bidderAccountId}/${roomId}/attachment-redirect`,
|
|
15780
|
+
},
|
|
15685
15781
|
},
|
|
15686
15782
|
PLANS: {
|
|
15687
15783
|
BASE: 'plans',
|
|
@@ -15724,6 +15820,27 @@ const ROUTES = {
|
|
|
15724
15820
|
TOP_10_CATEGORIES_BY_AVG_PAID_PER_PROJECT: 'upwork-analytics/top-10-categories-by-avg-paid-per-project',
|
|
15725
15821
|
TOP_20_CATEGORIES_BY_AVG_HOURLY_RATE_PAID: 'upwork-analytics/top-20-categories-by-avg-hourly-rate-paid',
|
|
15726
15822
|
},
|
|
15823
|
+
UPWORK_TALENT: {
|
|
15824
|
+
BASE: 'upwork-talent',
|
|
15825
|
+
SEARCH: 'upwork-talent/search',
|
|
15826
|
+
BY_ID: (id) => `upwork-talent/${id}`,
|
|
15827
|
+
COUNTRIES: 'upwork-talent/countries',
|
|
15828
|
+
SKILLS: 'upwork-talent/skills',
|
|
15829
|
+
},
|
|
15830
|
+
CHAT_ROOMS: {
|
|
15831
|
+
BASE: 'chat-rooms',
|
|
15832
|
+
BY_ACCOUNT_ID: (accountId) => `chat-rooms/${accountId}/rooms`,
|
|
15833
|
+
BY_ID: (accountId, roomId) => `chat-rooms/${accountId}/rooms/${roomId}`,
|
|
15834
|
+
METADATA: (accountId) => `chat-rooms/${accountId}`,
|
|
15835
|
+
MESSAGES: {
|
|
15836
|
+
BY_ROOM: (accountId, roomId) => `chat-rooms/${accountId}/rooms/${roomId}/messages`,
|
|
15837
|
+
BY_ID: (accountId, roomId, messageId) => `chat-rooms/${accountId}/rooms/${roomId}/messages/${messageId}`,
|
|
15838
|
+
},
|
|
15839
|
+
},
|
|
15840
|
+
AUTH_CACHE: {
|
|
15841
|
+
BASE: 'chat-auth-cache',
|
|
15842
|
+
BY_ID: (id) => `chat-auth-cache/${id}`,
|
|
15843
|
+
},
|
|
15727
15844
|
BIDDER_INSTANCES: {
|
|
15728
15845
|
BASE: 'bidder-instances',
|
|
15729
15846
|
BY_ID: (id) => `bidder-instances/${id}`,
|
|
@@ -24405,6 +24522,7 @@ exports.agentStatusSchema = agentStatusSchema;
|
|
|
24405
24522
|
exports.agentTaskResponseSchema = agentTaskResponseSchema;
|
|
24406
24523
|
exports.aiConfigSchema = aiConfigSchema;
|
|
24407
24524
|
exports.alreadyHiredActionEnum = alreadyHiredActionEnum;
|
|
24525
|
+
exports.assignRoomTagsRequestBodySchema = assignRoomTagsRequestBodySchema;
|
|
24408
24526
|
exports.bidAsEnum = bidAsEnum;
|
|
24409
24527
|
exports.bidConfigSchema = bidConfigSchema;
|
|
24410
24528
|
exports.bidDtoSchema = bidDtoSchema;
|
|
@@ -24430,6 +24548,7 @@ exports.biddingHourlyRateStrategyEnum = biddingHourlyRateStrategyEnum;
|
|
|
24430
24548
|
exports.biddingProcessingEventMetadata = biddingProcessingEventMetadata;
|
|
24431
24549
|
exports.biddingRejectedWithFeedbackEventMetadata = biddingRejectedWithFeedbackEventMetadata;
|
|
24432
24550
|
exports.billingIntervalEnum = billingIntervalEnum;
|
|
24551
|
+
exports.bookSlotRequestBodySchema = bookSlotRequestBodySchema;
|
|
24433
24552
|
exports.booleanSchema = booleanSchema;
|
|
24434
24553
|
exports.boostAboveMaxConnectsException = boostAboveMaxConnectsException;
|
|
24435
24554
|
exports.boostFormSchema = boostFormSchema;
|
|
@@ -24475,6 +24594,7 @@ exports.createCoverLetterTemplateSchema = createCoverLetterTemplateSchema;
|
|
|
24475
24594
|
exports.createHourlyRateFormSchema = createHourlyRateFormSchema;
|
|
24476
24595
|
exports.createOrganizationProfileSchema = createOrganizationProfileSchema;
|
|
24477
24596
|
exports.createOrganizationSchema = createOrganizationSchema;
|
|
24597
|
+
exports.createRoomTagRequestBodySchema = createRoomTagRequestBodySchema;
|
|
24478
24598
|
exports.createSampleSchema = createSampleSchema;
|
|
24479
24599
|
exports.createScraperAccountSchema = createScraperAccountSchema;
|
|
24480
24600
|
exports.createSuitabilityFormSchema = createSuitabilityFormSchema;
|
|
@@ -24516,6 +24636,7 @@ exports.findLeadsResponseSchema = findLeadsResponseSchema;
|
|
|
24516
24636
|
exports.forgotPasswordSchema = forgotPasswordSchema;
|
|
24517
24637
|
exports.formatCurrency = formatCurrency;
|
|
24518
24638
|
exports.formatDuration = formatDuration;
|
|
24639
|
+
exports.freeSlotsRequestBodySchema = freeSlotsRequestBodySchema;
|
|
24519
24640
|
exports.freelancerBidPayloadSchema = freelancerBidPayloadSchema;
|
|
24520
24641
|
exports.freelancerBidProposalDataSchema = freelancerBidProposalDataSchema;
|
|
24521
24642
|
exports.generateLeadCountsRequestSchema = generateLeadCountsRequestSchema;
|
|
@@ -24656,8 +24777,6 @@ exports.pluralize = pluralize;
|
|
|
24656
24777
|
exports.portfolioSchema = portfolioSchema;
|
|
24657
24778
|
exports.privateJobException = privateJobException;
|
|
24658
24779
|
exports.processFeedPayloadSchema = processFeedPayloadSchema;
|
|
24659
|
-
exports.profileSearchNuxtObjectSchema = profileSearchNuxtObjectSchema;
|
|
24660
|
-
exports.profileSearchNuxtObjectStateSchema = profileSearchNuxtObjectStateSchema;
|
|
24661
24780
|
exports.projectDurationEnum = projectDurationEnum;
|
|
24662
24781
|
exports.proposalCompleteEventMetadataSchema = proposalCompleteEventMetadataSchema;
|
|
24663
24782
|
exports.proposalErrorAlertException = proposalErrorAlertException;
|
|
@@ -24687,6 +24806,11 @@ exports.regionSchema = regionSchema;
|
|
|
24687
24806
|
exports.registerSchema = registerSchema;
|
|
24688
24807
|
exports.requiredEarningsEnum = requiredEarningsEnum;
|
|
24689
24808
|
exports.requiredJSSEnum = requiredJSSEnum;
|
|
24809
|
+
exports.roomMessageSchema = roomMessageSchema;
|
|
24810
|
+
exports.roomNoteSchema = roomNoteSchema;
|
|
24811
|
+
exports.roomSchema = roomSchema;
|
|
24812
|
+
exports.roomTagSchema = roomTagSchema;
|
|
24813
|
+
exports.roomsMetadataSchema = roomsMetadataSchema;
|
|
24690
24814
|
exports.sampleSchema = sampleSchema;
|
|
24691
24815
|
exports.savedSearchSchema = savedSearchSchema;
|
|
24692
24816
|
exports.scheduleBiddingEventMetadataSchema = scheduleBiddingEventMetadataSchema;
|
|
@@ -24708,6 +24832,7 @@ exports.selectAgencyException = selectAgencyException;
|
|
|
24708
24832
|
exports.selectContractorException = selectContractorException;
|
|
24709
24833
|
exports.selectorNotFoundError = selectorNotFoundError;
|
|
24710
24834
|
exports.sendAlertPayloadSchema = sendAlertPayloadSchema;
|
|
24835
|
+
exports.sendMessageRequestSchema = sendMessageRequestSchema;
|
|
24711
24836
|
exports.sendNotificationRequestSchema = sendNotificationRequestSchema;
|
|
24712
24837
|
exports.specialisedProfileSchema = specialisedProfileSchema;
|
|
24713
24838
|
exports.stringify = stringify;
|
|
@@ -24745,6 +24870,7 @@ exports.updateChatbotSchema = updateChatbotSchema;
|
|
|
24745
24870
|
exports.updateLeadStatusSchema = updateLeadStatusSchema;
|
|
24746
24871
|
exports.updateOrganizationLeadsStatusPayloadSchema = updateOrganizationLeadsStatusPayloadSchema;
|
|
24747
24872
|
exports.updateOrganizationProfileSchema = updateOrganizationProfileSchema;
|
|
24873
|
+
exports.updateRoomNotesRequestBodySchema = updateRoomNotesRequestBodySchema;
|
|
24748
24874
|
exports.updateSampleSchema = updateSampleSchema;
|
|
24749
24875
|
exports.updateScraperAccountSchema = updateScraperAccountSchema;
|
|
24750
24876
|
exports.updateSuitableLeadNotificationBodySchema = updateSuitableLeadNotificationBodySchema;
|
|
@@ -24752,8 +24878,15 @@ exports.updateSuitableLeadNotificationType = updateSuitableLeadNotificationType;
|
|
|
24752
24878
|
exports.upworkAccountConnectSchema = upworkAccountConnectSchema;
|
|
24753
24879
|
exports.upworkAccountConnectStatusSchema = upworkAccountConnectStatusSchema;
|
|
24754
24880
|
exports.upworkJobSchema = upworkJobSchema;
|
|
24881
|
+
exports.upworkOrganizationSchema = upworkOrganizationSchema;
|
|
24755
24882
|
exports.upworkProfileSchema = upworkProfileSchema;
|
|
24883
|
+
exports.upworkTalentCountrySchema = upworkTalentCountrySchema;
|
|
24756
24884
|
exports.upworkTalentSchema = upworkTalentSchema;
|
|
24885
|
+
exports.upworkTalentSearchRequestSchema = upworkTalentSearchRequestSchema;
|
|
24886
|
+
exports.upworkTalentSearchResponseSchema = upworkTalentSearchResponseSchema;
|
|
24887
|
+
exports.upworkTalentSkillWithRankSchema = upworkTalentSkillWithRankSchema;
|
|
24888
|
+
exports.upworkTalentSkillsResponseSchema = upworkTalentSkillsResponseSchema;
|
|
24889
|
+
exports.upworkTalentSkillsSchema = upworkTalentSkillsSchema;
|
|
24757
24890
|
exports.usageEventMetadataSchema = usageEventMetadataSchema;
|
|
24758
24891
|
exports.usageEventSchema = usageEventSchema;
|
|
24759
24892
|
exports.usageEventTypeEnum = usageEventTypeEnum;
|