lancer-shared 1.0.174 → 1.0.176
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 +292 -0
- package/dist/constants/account-status.d.ts +3 -0
- package/dist/constants/account-status.js +17 -0
- package/dist/constants/collections.js +4 -1
- package/dist/constants/common-questions.js +4 -1
- package/dist/constants/index.js +32 -10
- package/dist/constants/job-filter-options.js +4 -1
- package/dist/constants/job-status.js +12 -7
- package/dist/constants/mappings/countryMapping.js +3 -1
- package/dist/constants/mappings/regionMapping.js +3 -1
- package/dist/constants/routes.js +35 -43
- package/dist/constants/upwork-accounts.js +6 -3
- package/dist/index.js +20 -4
- package/dist/schemas/account/account-status.js +5 -2
- package/dist/schemas/account/bidder-account.js +22 -19
- package/dist/schemas/account/index.js +19 -3
- package/dist/schemas/account/manager-account.d.ts +116 -0
- package/dist/schemas/account/manager-account.js +38 -0
- package/dist/schemas/account/scraper-account.js +24 -21
- package/dist/schemas/ai/ai-config.js +11 -8
- package/dist/schemas/ai/index.js +19 -3
- package/dist/schemas/ai/proposal.js +13 -10
- package/dist/schemas/ai/suitability.js +11 -8
- package/dist/schemas/bid/bid-result.js +13 -10
- package/dist/schemas/bid/bid.d.ts +12 -12
- package/dist/schemas/bid/bid.js +30 -27
- package/dist/schemas/bid/index.js +18 -2
- package/dist/schemas/bidding/index.d.ts +1 -0
- package/dist/schemas/bidding/index.js +17 -0
- package/dist/schemas/bidding/proposal-bidding-status.d.ts +26 -0
- package/dist/schemas/bidding/proposal-bidding-status.js +18 -0
- package/dist/schemas/campaign/campaign-ai-metrics.js +8 -5
- package/dist/schemas/campaign/campaign-analytics.d.ts +7 -0
- package/dist/schemas/campaign/campaign-analytics.js +31 -28
- package/dist/schemas/campaign/campaign-expenses.js +8 -5
- package/dist/schemas/campaign/campaign-insights.js +30 -30
- package/dist/schemas/campaign/campaign-integrations.js +13 -10
- package/dist/schemas/campaign/campaign-job-count.js +6 -3
- package/dist/schemas/campaign/campaign.js +35 -32
- package/dist/schemas/campaign/index.js +23 -7
- package/dist/schemas/chat-message/chat-message.js +10 -7
- package/dist/schemas/chat-message/index.js +17 -1
- package/dist/schemas/config/agency-config.js +9 -6
- package/dist/schemas/config/index.js +17 -1
- package/dist/schemas/index.js +32 -16
- package/dist/schemas/job/index.d.ts +3 -95
- package/dist/schemas/job/index.js +19 -0
- package/dist/schemas/job/job-details.d.ts +335 -0
- package/dist/schemas/job/job-details.js +29 -0
- package/dist/schemas/job/job-note.d.ts +83 -0
- package/dist/schemas/job/job-note.js +30 -0
- package/dist/schemas/job/job-status.d.ts +3 -0
- package/dist/schemas/job/job-status.js +27 -0
- package/dist/schemas/job/job.d.ts +1160 -0
- package/dist/schemas/job/job.js +90 -0
- package/dist/schemas/job/pipeline-job.d.ts +602 -0
- package/dist/schemas/job/pipeline-job.js +42 -0
- package/dist/schemas/job/upwork-job.d.ts +334 -0
- package/dist/schemas/job/upwork-job.js +60 -0
- package/dist/schemas/job-filters/index.js +17 -1
- package/dist/schemas/job-filters/job-filters.js +65 -62
- package/dist/schemas/lead/index.d.ts +67 -8
- package/dist/schemas/lead/index.js +19 -166
- package/dist/schemas/lead/lead-note.js +16 -13
- package/dist/schemas/lead/lead-status.js +6 -3
- package/dist/schemas/lead/lead.d.ts +1897 -0
- package/dist/schemas/lead/lead.js +143 -0
- package/dist/schemas/lead/nuxt.d.ts +1664 -0
- package/dist/schemas/logger/index.js +17 -1
- package/dist/schemas/logger/log-event.d.ts +9 -4
- package/dist/schemas/logger/log-event.js +19 -38
- package/dist/schemas/organization/index.js +17 -1
- package/dist/schemas/organization/organization.js +17 -14
- package/dist/schemas/proxy/index.js +17 -1
- package/dist/schemas/proxy/proxy.js +17 -14
- package/dist/schemas/saved-search/index.js +11 -8
- package/dist/schemas/scraper/index.js +18 -2
- package/dist/schemas/scraper/scrape-payload.js +14 -19
- package/dist/schemas/scraper/scrape-result.d.ts +23 -4
- package/dist/schemas/scraper/scrape-result.js +21 -21
- package/dist/schemas/shared.js +9 -12
- package/dist/schemas/time-filter/index.js +8 -5
- package/dist/schemas/upwork-account/index.d.ts +3 -0
- package/dist/schemas/upwork-account/index.js +19 -0
- package/dist/schemas/upwork-account/upwork-account-status.d.ts +2 -0
- package/dist/schemas/upwork-account/upwork-account-status.js +11 -0
- package/dist/schemas/upwork-account/upwork-business-manager-account.d.ts +95 -0
- package/dist/schemas/upwork-account/upwork-business-manager-account.js +35 -0
- package/dist/schemas/upwork-account/upwork-scraping-account.d.ts +90 -0
- package/dist/schemas/upwork-account/upwork-scraping-account.js +29 -0
- package/dist/schemas/user/index.js +41 -38
- package/dist/types/account/account-status.js +2 -1
- package/dist/types/account/bidder-account.js +2 -1
- package/dist/types/account/index.js +19 -3
- package/dist/types/account/manager-account.d.ts +7 -0
- package/dist/types/account/manager-account.js +2 -0
- package/dist/types/account/scraper-account.js +2 -1
- package/dist/types/ai/ai-config.js +2 -1
- package/dist/types/ai/index.js +19 -3
- package/dist/types/ai/proposal.js +2 -1
- package/dist/types/ai/suitability.js +2 -1
- package/dist/types/bid/bid-result.js +2 -1
- package/dist/types/bid/bid.js +2 -1
- package/dist/types/bid/index.js +18 -2
- package/dist/types/bidding/index.d.ts +1 -0
- package/dist/types/bidding/index.js +17 -0
- package/dist/types/bidding/proposal-bidding-status.d.ts +3 -0
- package/dist/types/bidding/proposal-bidding-status.js +2 -0
- package/dist/types/campaign/campaign-analytics.js +2 -1
- package/dist/types/campaign/campaign-expenses.js +2 -1
- package/dist/types/campaign/campaign-insights.js +2 -1
- package/dist/types/campaign/campaign-integrations.js +2 -1
- package/dist/types/campaign/campaign-job-count.js +2 -1
- package/dist/types/campaign/campaign.js +2 -1
- package/dist/types/campaign/index.js +22 -6
- package/dist/types/chat-message/chat-message.js +2 -1
- package/dist/types/chat-message/index.js +17 -1
- package/dist/types/config/agency-config.js +2 -1
- package/dist/types/config/index.js +17 -1
- package/dist/types/index.js +29 -14
- package/dist/types/job/index.d.ts +1 -0
- package/dist/types/job/index.js +19 -2
- package/dist/types/job/job-details.d.ts +36 -0
- package/dist/types/job/job-details.js +2 -0
- package/dist/types/job/job-note.js +2 -1
- package/dist/types/job/job-status.js +4 -1
- package/dist/types/job/job.d.ts +36 -0
- package/dist/types/job/job.js +2 -0
- package/dist/types/job/nuxt.d.ts +4 -0
- package/dist/types/job-filters/index.js +17 -1
- package/dist/types/job-filters/job-filters.js +2 -1
- package/dist/types/logger/index.js +17 -1
- package/dist/types/logger/log-event.js +2 -1
- package/dist/types/saved-search/index.js +2 -1
- package/dist/types/scraper/index.js +18 -2
- package/dist/types/scraper/scrape-payload.js +2 -1
- package/dist/types/scraper/scrape-result.js +2 -1
- package/dist/types/time-filter/index.js +2 -1
- package/dist/types/upwork-account/index.d.ts +3 -0
- package/dist/types/upwork-account/index.js +19 -0
- package/dist/types/upwork-account/upwork-account-status.d.ts +3 -0
- package/dist/types/upwork-account/upwork-account-status.js +2 -0
- package/dist/types/upwork-account/upwork-business-manager-account.d.ts +7 -0
- package/dist/types/upwork-account/upwork-business-manager-account.js +2 -0
- package/dist/types/upwork-account/upwork-scraping-account.d.ts +5 -0
- package/dist/types/upwork-account/upwork-scraping-account.js +2 -0
- package/dist/types/user/index.js +2 -1
- package/dist/utils/index.js +17 -1
- package/dist/utils/try-catch.js +23 -8
- package/package.json +1 -1
- package/dist/schemas/event/index.d.ts +0 -58
- package/dist/types/shared.js +0 -1
package/dist/bundle.cjs.js
CHANGED
|
@@ -4972,6 +4972,293 @@ const leadStatusSchema = z.enum([
|
|
|
4972
4972
|
"lost",
|
|
4973
4973
|
]);
|
|
4974
4974
|
|
|
4975
|
+
const segmentationDataSchema = objectType({
|
|
4976
|
+
customValue: stringType().nullable(),
|
|
4977
|
+
label: stringType(),
|
|
4978
|
+
name: stringType(),
|
|
4979
|
+
sortOrder: numberType(),
|
|
4980
|
+
type: stringType(),
|
|
4981
|
+
value: stringType(),
|
|
4982
|
+
skill: anyType().nullable(),
|
|
4983
|
+
});
|
|
4984
|
+
const clientActivitySchema = objectType({
|
|
4985
|
+
lastBuyerActivity: stringType(),
|
|
4986
|
+
totalApplicants: numberType(),
|
|
4987
|
+
totalHired: numberType(),
|
|
4988
|
+
totalInvitedToInterview: numberType(),
|
|
4989
|
+
unansweredInvites: numberType(),
|
|
4990
|
+
invitationsSent: numberType(),
|
|
4991
|
+
numberOfPositionsToHire: numberType(),
|
|
4992
|
+
});
|
|
4993
|
+
const annotationsSchema = objectType({
|
|
4994
|
+
tags: arrayType(stringType()),
|
|
4995
|
+
});
|
|
4996
|
+
const budgetSchema = objectType({
|
|
4997
|
+
amount: numberType(),
|
|
4998
|
+
currencyCode: stringType(),
|
|
4999
|
+
});
|
|
5000
|
+
const engagementDurationSchema = objectType({
|
|
5001
|
+
label: stringType(),
|
|
5002
|
+
weeks: numberType(),
|
|
5003
|
+
});
|
|
5004
|
+
const extendedBudgetInfoSchema = objectType({
|
|
5005
|
+
hourlyBudgetMin: numberType().nullable(),
|
|
5006
|
+
hourlyBudgetMax: numberType().nullable(),
|
|
5007
|
+
hourlyBudgetType: stringType().nullable(),
|
|
5008
|
+
});
|
|
5009
|
+
const qualificationsSchema = objectType({
|
|
5010
|
+
countries: anyType().nullable(),
|
|
5011
|
+
earnings: anyType().nullable(),
|
|
5012
|
+
groupRecno: anyType().nullable(),
|
|
5013
|
+
languages: anyType().nullable(),
|
|
5014
|
+
localDescription: anyType().nullable(),
|
|
5015
|
+
localFlexibilityDescription: anyType().nullable(),
|
|
5016
|
+
localMarket: booleanType(),
|
|
5017
|
+
minJobSuccessScore: numberType(),
|
|
5018
|
+
minOdeskHours: numberType(),
|
|
5019
|
+
onSiteType: anyType().nullable(),
|
|
5020
|
+
prefEnglishSkill: numberType(),
|
|
5021
|
+
regions: anyType().nullable(),
|
|
5022
|
+
risingTalent: booleanType(),
|
|
5023
|
+
shouldHavePortfolio: booleanType(),
|
|
5024
|
+
states: anyType().nullable(),
|
|
5025
|
+
tests: anyType().nullable(),
|
|
5026
|
+
timezones: anyType().nullable(),
|
|
5027
|
+
type: numberType(),
|
|
5028
|
+
locationCheckRequired: booleanType(),
|
|
5029
|
+
group: anyType().nullable(),
|
|
5030
|
+
location: anyType().nullable(),
|
|
5031
|
+
locations: anyType().nullable(),
|
|
5032
|
+
});
|
|
5033
|
+
const jobSchema = objectType({
|
|
5034
|
+
status: numberType(),
|
|
5035
|
+
category: objectType({
|
|
5036
|
+
name: stringType(),
|
|
5037
|
+
urlSlug: stringType(),
|
|
5038
|
+
}),
|
|
5039
|
+
categoryGroup: objectType({
|
|
5040
|
+
name: stringType(),
|
|
5041
|
+
urlSlug: stringType(),
|
|
5042
|
+
}),
|
|
5043
|
+
budget: budgetSchema,
|
|
5044
|
+
postedOn: stringType(),
|
|
5045
|
+
publishTime: stringType(),
|
|
5046
|
+
wasRenewed: booleanType(),
|
|
5047
|
+
startDate: stringType().nullable(),
|
|
5048
|
+
deliveryDate: stringType().nullable(),
|
|
5049
|
+
workload: stringType().nullable(),
|
|
5050
|
+
engagementDuration: engagementDurationSchema,
|
|
5051
|
+
extendedBudgetInfo: extendedBudgetInfoSchema,
|
|
5052
|
+
contractorTier: numberType(),
|
|
5053
|
+
description: stringType(),
|
|
5054
|
+
segmentationData: arrayType(segmentationDataSchema),
|
|
5055
|
+
clientActivity: clientActivitySchema,
|
|
5056
|
+
annotations: annotationsSchema,
|
|
5057
|
+
uid: stringType(),
|
|
5058
|
+
title: stringType(),
|
|
5059
|
+
type: numberType(),
|
|
5060
|
+
ciphertext: stringType(),
|
|
5061
|
+
access: numberType(),
|
|
5062
|
+
createdOn: stringType(),
|
|
5063
|
+
hideBudget: booleanType(),
|
|
5064
|
+
notSureProjectDuration: booleanType(),
|
|
5065
|
+
notSureFreelancersToHire: booleanType(),
|
|
5066
|
+
notSureExperienceLevel: booleanType(),
|
|
5067
|
+
numberOfPositionsToHire: numberType(),
|
|
5068
|
+
isContractToHire: booleanType(),
|
|
5069
|
+
attachments: arrayType(anyType()),
|
|
5070
|
+
isPremium: booleanType(),
|
|
5071
|
+
qualifications: qualificationsSchema,
|
|
5072
|
+
questions: arrayType(objectType({ question: stringType(), position: numberType() })),
|
|
5073
|
+
durationIdV3: numberType(),
|
|
5074
|
+
durationLabel: stringType(),
|
|
5075
|
+
});
|
|
5076
|
+
const buyerSchema = objectType({
|
|
5077
|
+
isEnterprise: booleanType(),
|
|
5078
|
+
isPaymentMethodVerified: booleanType(),
|
|
5079
|
+
stats: objectType({
|
|
5080
|
+
totalAssignments: numberType(),
|
|
5081
|
+
activeAssignmentsCount: numberType(),
|
|
5082
|
+
hoursCount: numberType(),
|
|
5083
|
+
feedbackCount: numberType(),
|
|
5084
|
+
score: numberType(),
|
|
5085
|
+
totalJobsWithHires: numberType(),
|
|
5086
|
+
totalCharges: objectType({
|
|
5087
|
+
amount: numberType(),
|
|
5088
|
+
}),
|
|
5089
|
+
}),
|
|
5090
|
+
location: objectType({
|
|
5091
|
+
offsetFromUtcMillis: numberType(),
|
|
5092
|
+
countryTimezone: stringType(),
|
|
5093
|
+
city: stringType(),
|
|
5094
|
+
country: stringType(),
|
|
5095
|
+
}),
|
|
5096
|
+
company: objectType({
|
|
5097
|
+
isEDCReplicated: anyType().nullable(),
|
|
5098
|
+
contractDate: stringType(),
|
|
5099
|
+
profile: objectType({
|
|
5100
|
+
industry: stringType(),
|
|
5101
|
+
size: numberType(),
|
|
5102
|
+
}),
|
|
5103
|
+
name: stringType().nullable(),
|
|
5104
|
+
}),
|
|
5105
|
+
jobs: objectType({
|
|
5106
|
+
postedCount: numberType(),
|
|
5107
|
+
openCount: numberType(),
|
|
5108
|
+
}),
|
|
5109
|
+
avgHourlyJobsRate: objectType({
|
|
5110
|
+
amount: numberType(),
|
|
5111
|
+
}).nullable(),
|
|
5112
|
+
});
|
|
5113
|
+
const currentUserInfoSchema = objectType({
|
|
5114
|
+
owner: booleanType(),
|
|
5115
|
+
freelancerInfo: objectType({
|
|
5116
|
+
profileState: stringType(),
|
|
5117
|
+
applied: anyType().nullable(),
|
|
5118
|
+
devProfileCiphertext: stringType(),
|
|
5119
|
+
hired: anyType().nullable(),
|
|
5120
|
+
application: recordType(anyType()),
|
|
5121
|
+
pendingInvite: recordType(anyType()),
|
|
5122
|
+
contract: anyType().nullable(),
|
|
5123
|
+
hourlyRate: objectType({
|
|
5124
|
+
amount: numberType(),
|
|
5125
|
+
}),
|
|
5126
|
+
qualificationsMatches: objectType({
|
|
5127
|
+
matches: arrayType(objectType({
|
|
5128
|
+
clientPreferred: stringType(),
|
|
5129
|
+
clientPreferredLabel: stringType().nullable(),
|
|
5130
|
+
freelancerValue: stringType(),
|
|
5131
|
+
freelancerValueLabel: stringType(),
|
|
5132
|
+
qualification: numberType(),
|
|
5133
|
+
qualified: booleanType(),
|
|
5134
|
+
})),
|
|
5135
|
+
}),
|
|
5136
|
+
}),
|
|
5137
|
+
});
|
|
5138
|
+
const workHistorySchema = arrayType(objectType({
|
|
5139
|
+
isPtcJob: anyType().nullable(),
|
|
5140
|
+
status: anyType().nullable(),
|
|
5141
|
+
isEDCReplicated: anyType().nullable(),
|
|
5142
|
+
startDate: stringType(),
|
|
5143
|
+
endDate: stringType(),
|
|
5144
|
+
totalCharge: numberType(),
|
|
5145
|
+
totalHours: numberType(),
|
|
5146
|
+
jobInfo: objectType({
|
|
5147
|
+
title: stringType(),
|
|
5148
|
+
id: anyType().nullable(),
|
|
5149
|
+
uid: anyType().nullable(),
|
|
5150
|
+
access: numberType(),
|
|
5151
|
+
type: numberType(),
|
|
5152
|
+
ciphertext: anyType().nullable(),
|
|
5153
|
+
}),
|
|
5154
|
+
contractorInfo: objectType({
|
|
5155
|
+
contractorName: stringType(),
|
|
5156
|
+
accessType: stringType(),
|
|
5157
|
+
ciphertext: stringType(),
|
|
5158
|
+
}),
|
|
5159
|
+
rate: objectType({
|
|
5160
|
+
amount: numberType(),
|
|
5161
|
+
}).nullable(),
|
|
5162
|
+
feedback: objectType({
|
|
5163
|
+
feedbackSuppressed: booleanType(),
|
|
5164
|
+
score: numberType(),
|
|
5165
|
+
comment: stringType(),
|
|
5166
|
+
feedback_suppressed: booleanType(),
|
|
5167
|
+
}),
|
|
5168
|
+
feedbackToClient: objectType({
|
|
5169
|
+
feedbackSuppressed: booleanType(),
|
|
5170
|
+
score: numberType(),
|
|
5171
|
+
comment: stringType(),
|
|
5172
|
+
feedback_suppressed: booleanType(),
|
|
5173
|
+
}),
|
|
5174
|
+
isEDCPublic: booleanType(),
|
|
5175
|
+
}));
|
|
5176
|
+
const sandsSchema = objectType({
|
|
5177
|
+
occupation: objectType({
|
|
5178
|
+
freeText: stringType().nullable(),
|
|
5179
|
+
ontologyId: stringType(),
|
|
5180
|
+
prefLabel: stringType(),
|
|
5181
|
+
id: stringType(),
|
|
5182
|
+
uid: stringType(),
|
|
5183
|
+
}),
|
|
5184
|
+
ontologySkills: arrayType(anyType()),
|
|
5185
|
+
additionalSkills: arrayType(objectType({
|
|
5186
|
+
uid: stringType(),
|
|
5187
|
+
name: stringType(),
|
|
5188
|
+
isFreeText: booleanType(),
|
|
5189
|
+
})),
|
|
5190
|
+
});
|
|
5191
|
+
const connectsSchema = objectType({
|
|
5192
|
+
pricing: objectType({
|
|
5193
|
+
price: numberType(),
|
|
5194
|
+
context: stringType(),
|
|
5195
|
+
auctionPrice: numberType(),
|
|
5196
|
+
}),
|
|
5197
|
+
requiredConnects: numberType(),
|
|
5198
|
+
availableConnects: numberType(),
|
|
5199
|
+
chooseConnectsStatus: objectType({
|
|
5200
|
+
isExplainerModalShown: booleanType().nullable(),
|
|
5201
|
+
}),
|
|
5202
|
+
canSeeApplicantsRates: booleanType(),
|
|
5203
|
+
});
|
|
5204
|
+
const authSchema = objectType({
|
|
5205
|
+
canFlagOpening: booleanType(),
|
|
5206
|
+
canPostJob: booleanType(),
|
|
5207
|
+
domestic: objectType({
|
|
5208
|
+
country: stringType().nullable(),
|
|
5209
|
+
isInfographicTooltipAvailable: booleanType(),
|
|
5210
|
+
}),
|
|
5211
|
+
});
|
|
5212
|
+
const applicationContextSchema = objectType({
|
|
5213
|
+
freelancerAllowed: booleanType(),
|
|
5214
|
+
clientAllowed: booleanType(),
|
|
5215
|
+
userIntentEvaluation: objectType({
|
|
5216
|
+
isDeclined: booleanType(),
|
|
5217
|
+
reason: stringType().nullable(),
|
|
5218
|
+
}),
|
|
5219
|
+
canApplyOnBehalfOfAgencyFreelancers: booleanType(),
|
|
5220
|
+
canSubmitMoreProposals: booleanType(),
|
|
5221
|
+
submittedProposals: anyType().nullable(),
|
|
5222
|
+
});
|
|
5223
|
+
const nuxtStateJobSchema = objectType({
|
|
5224
|
+
cache: booleanType(),
|
|
5225
|
+
job: jobSchema,
|
|
5226
|
+
buyer: buyerSchema,
|
|
5227
|
+
currentUserInfo: currentUserInfoSchema,
|
|
5228
|
+
isVisitor: booleanType(),
|
|
5229
|
+
openJobs: arrayType(anyType()),
|
|
5230
|
+
workHistory: workHistorySchema,
|
|
5231
|
+
similarJobs: arrayType(anyType()),
|
|
5232
|
+
sands: sandsSchema,
|
|
5233
|
+
auth: authSchema,
|
|
5234
|
+
applicants: objectType({
|
|
5235
|
+
applicantsBidsStats: anyType().nullable(),
|
|
5236
|
+
}),
|
|
5237
|
+
connects: connectsSchema.nullish(),
|
|
5238
|
+
enterpriseJobAdditionalInfo: recordType(anyType()),
|
|
5239
|
+
applicationContext: applicationContextSchema,
|
|
5240
|
+
profileMatchServiceUid: stringType(),
|
|
5241
|
+
seo: objectType({
|
|
5242
|
+
title: stringType(),
|
|
5243
|
+
description: stringType(),
|
|
5244
|
+
url: stringType(),
|
|
5245
|
+
}),
|
|
5246
|
+
teamUid: anyType().nullable(),
|
|
5247
|
+
proposalPermissions: objectType({
|
|
5248
|
+
freelancerAllowed: booleanType(),
|
|
5249
|
+
clientAllowed: booleanType(),
|
|
5250
|
+
}),
|
|
5251
|
+
jobSlug: anyType().nullable(),
|
|
5252
|
+
prefillWith: anyType().nullable(),
|
|
5253
|
+
isGroupOpportunity: booleanType(),
|
|
5254
|
+
workLocation: anyType().nullable(),
|
|
5255
|
+
isPhoneVerified: booleanType(),
|
|
5256
|
+
errorResponse: anyType().nullable(),
|
|
5257
|
+
isApplyBlocked: booleanType(),
|
|
5258
|
+
hasAiInterview: booleanType(),
|
|
5259
|
+
talentFeePromotion: booleanType().nullish(),
|
|
5260
|
+
});
|
|
5261
|
+
|
|
4975
5262
|
const jobSkillsSchema = objectType({
|
|
4976
5263
|
name: stringType(),
|
|
4977
5264
|
});
|
|
@@ -5027,6 +5314,7 @@ const jobActivitySchema = objectType({
|
|
|
5027
5314
|
max: numberType().nullable(),
|
|
5028
5315
|
}),
|
|
5029
5316
|
lastViewedByClient: stringType().nullable(),
|
|
5317
|
+
lastViewedByClientTimestamp: numberType().nullable(),
|
|
5030
5318
|
hires: numberType().nullable(),
|
|
5031
5319
|
interviewing: numberType().nullable(),
|
|
5032
5320
|
invitesSent: numberType().nullable(),
|
|
@@ -5057,6 +5345,7 @@ const jobActivityOffsetHours = [4, 24];
|
|
|
5057
5345
|
const jobActivityOffsetEnum = z.enum(jobActivityOffsetHours.map((h) => `${h}h`));
|
|
5058
5346
|
const upworkJobSchema = objectType({
|
|
5059
5347
|
id: stringType().nullable(),
|
|
5348
|
+
uid: stringType().nullable(),
|
|
5060
5349
|
createdAt: numberType().nullable(),
|
|
5061
5350
|
title: stringType().nullable(),
|
|
5062
5351
|
category: stringType().nullable(),
|
|
@@ -5327,6 +5616,8 @@ const LogEventTypeEnum = z.enum([
|
|
|
5327
5616
|
// Knowledge Base Events
|
|
5328
5617
|
"knowledgeBaseGenerationComplete",
|
|
5329
5618
|
"knowledgeBaseGenerationFailed",
|
|
5619
|
+
// Model Chain Events
|
|
5620
|
+
"modelFailed",
|
|
5330
5621
|
]);
|
|
5331
5622
|
const logEventSchema = z.object({
|
|
5332
5623
|
// The type of event (use a z.enum if possible)
|
|
@@ -6480,6 +6771,7 @@ exports.logEventSchema = logEventSchema;
|
|
|
6480
6771
|
exports.loginSchema = loginSchema;
|
|
6481
6772
|
exports.metadataSchema = metadataSchema;
|
|
6482
6773
|
exports.newChatMessageSchema = newChatMessageSchema;
|
|
6774
|
+
exports.nuxtStateJobSchema = nuxtStateJobSchema;
|
|
6483
6775
|
exports.organizationSchema = organizationSchema;
|
|
6484
6776
|
exports.organizationTypeSchema = organizationTypeSchema;
|
|
6485
6777
|
exports.passwordSchema = passwordSchema;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.accountStatusDisplayMap = exports.accountStatusOrder = void 0;
|
|
4
|
+
exports.accountStatusOrder = [
|
|
5
|
+
'verification_required',
|
|
6
|
+
'shadow_banned',
|
|
7
|
+
'healthy',
|
|
8
|
+
'banned',
|
|
9
|
+
'suspended',
|
|
10
|
+
];
|
|
11
|
+
exports.accountStatusDisplayMap = {
|
|
12
|
+
verification_required: 'Verification Required',
|
|
13
|
+
shadow_banned: 'Shadow Banned',
|
|
14
|
+
healthy: 'Healthy',
|
|
15
|
+
banned: 'Banned',
|
|
16
|
+
suspended: 'Suspended',
|
|
17
|
+
};
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.commonQuestions = void 0;
|
|
4
|
+
exports.commonQuestions = [
|
|
2
5
|
{
|
|
3
6
|
id: 'similar_experience',
|
|
4
7
|
question: 'Describe your recent experience with similar projects',
|
package/dist/constants/index.js
CHANGED
|
@@ -1,4 +1,24 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
|
+
};
|
|
19
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
+
exports.regionMapping = exports.countryMapping = exports.paths = void 0;
|
|
21
|
+
exports.paths = {
|
|
2
22
|
auth: {
|
|
3
23
|
register: `auth/register`,
|
|
4
24
|
},
|
|
@@ -7,12 +27,14 @@ export const paths = {
|
|
|
7
27
|
details: (id) => `users/${id}`,
|
|
8
28
|
},
|
|
9
29
|
};
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
30
|
+
__exportStar(require("./job-filter-options"), exports);
|
|
31
|
+
var countryMapping_1 = require("./mappings/countryMapping");
|
|
32
|
+
Object.defineProperty(exports, "countryMapping", { enumerable: true, get: function () { return __importDefault(countryMapping_1).default; } });
|
|
33
|
+
var regionMapping_1 = require("./mappings/regionMapping");
|
|
34
|
+
Object.defineProperty(exports, "regionMapping", { enumerable: true, get: function () { return __importDefault(regionMapping_1).default; } });
|
|
35
|
+
__exportStar(require("./job-filter-options"), exports);
|
|
36
|
+
__exportStar(require("./common-questions"), exports);
|
|
37
|
+
__exportStar(require("./job-status"), exports);
|
|
38
|
+
__exportStar(require("./routes"), exports);
|
|
39
|
+
__exportStar(require("./collections"), exports);
|
|
40
|
+
__exportStar(require("./upwork-accounts"), exports);
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.JOB_FILTER_OPTIONS = void 0;
|
|
4
|
+
exports.JOB_FILTER_OPTIONS = {
|
|
2
5
|
REGIONS: ["Worldwide", "UKOnly", "USOnly"],
|
|
3
6
|
PROJECT_DURATION: [
|
|
4
7
|
"Less than 1 month",
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getNextStatus = exports.getPreviousStatus = exports.jobStatusOrder = void 0;
|
|
4
|
+
exports.jobStatusOrder = [
|
|
2
5
|
"leads",
|
|
3
6
|
"contacted",
|
|
4
7
|
"viewed",
|
|
@@ -7,15 +10,17 @@ export const jobStatusOrder = [
|
|
|
7
10
|
"won",
|
|
8
11
|
"lost",
|
|
9
12
|
];
|
|
10
|
-
|
|
13
|
+
const getPreviousStatus = (status) => {
|
|
11
14
|
if (status === "won")
|
|
12
15
|
return "negotiations";
|
|
13
16
|
if (status === "lost")
|
|
14
17
|
return "negotiations";
|
|
15
|
-
const index = jobStatusOrder.indexOf(status);
|
|
16
|
-
return index > 0 ? jobStatusOrder[index - 1] : null;
|
|
18
|
+
const index = exports.jobStatusOrder.indexOf(status);
|
|
19
|
+
return index > 0 ? exports.jobStatusOrder[index - 1] : null;
|
|
17
20
|
};
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
+
exports.getPreviousStatus = getPreviousStatus;
|
|
22
|
+
const getNextStatus = (status) => {
|
|
23
|
+
const index = exports.jobStatusOrder.indexOf(status);
|
|
24
|
+
return index < exports.jobStatusOrder.length - 1 ? exports.jobStatusOrder[index + 1] : null;
|
|
21
25
|
};
|
|
26
|
+
exports.getNextStatus = getNextStatus;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
3
|
const countryMapping = {
|
|
2
4
|
USA: "United States",
|
|
3
5
|
GBR: "United Kingdom",
|
|
@@ -117,4 +119,4 @@ const countryMapping = {
|
|
|
117
119
|
VCT: "Saint Vincent and the Grenadines",
|
|
118
120
|
VGB: "British Virgin Islands",
|
|
119
121
|
};
|
|
120
|
-
|
|
122
|
+
exports.default = countryMapping;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
3
|
const regionMapping = {
|
|
2
4
|
Africa: [
|
|
3
5
|
"Algeria",
|
|
@@ -237,4 +239,4 @@ const regionMapping = {
|
|
|
237
239
|
"Wallis and Futuna",
|
|
238
240
|
],
|
|
239
241
|
};
|
|
240
|
-
|
|
242
|
+
exports.default = regionMapping;
|
package/dist/constants/routes.js
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.buildRoute = exports.ROUTES = void 0;
|
|
4
|
+
exports.ROUTES = {
|
|
2
5
|
AUTH: {
|
|
3
|
-
BASE:
|
|
4
|
-
REGISTER:
|
|
6
|
+
BASE: 'auth',
|
|
7
|
+
REGISTER: 'auth/register',
|
|
5
8
|
},
|
|
6
9
|
EVENTS: {
|
|
7
|
-
BASE:
|
|
10
|
+
BASE: 'events',
|
|
8
11
|
BY_ID: (id) => `events/${id}`,
|
|
9
12
|
},
|
|
10
13
|
CAMPAIGNS: {
|
|
11
|
-
BASE:
|
|
14
|
+
BASE: 'campaigns',
|
|
12
15
|
BY_ID: (id) => `campaigns/${id}`,
|
|
13
16
|
LEADS: {
|
|
14
17
|
BASE: (campaignId) => `campaigns/${campaignId}/leads`,
|
|
@@ -41,76 +44,65 @@ export const ROUTES = {
|
|
|
41
44
|
},
|
|
42
45
|
},
|
|
43
46
|
JOBS: {
|
|
44
|
-
BASE:
|
|
47
|
+
BASE: 'jobs',
|
|
45
48
|
BY_ID: (id) => `jobs/${id}`,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
TOTAL_JOBS: "jobs/total-jobs",
|
|
49
|
+
IMPORT: 'jobs/import',
|
|
50
|
+
FILTER_OPTIONS: 'jobs/filter-options',
|
|
51
|
+
TOTAL_JOBS: 'jobs/total-jobs',
|
|
50
52
|
GET_JOB_TITLE: (jobId) => `jobs/get-job-title/${jobId}`,
|
|
51
|
-
SEARCH:
|
|
53
|
+
SEARCH: 'jobs/search',
|
|
52
54
|
},
|
|
53
55
|
USERS: {
|
|
54
|
-
BASE:
|
|
56
|
+
BASE: 'users',
|
|
55
57
|
BY_ID: (id) => `users/${id}`,
|
|
56
58
|
},
|
|
57
59
|
AI_CONFIG: {
|
|
58
|
-
BASE:
|
|
59
|
-
GENERATE_KNOWLEDGE_BASE:
|
|
60
|
+
BASE: 'ai-config',
|
|
61
|
+
GENERATE_KNOWLEDGE_BASE: 'ai-config/generate-knowledge-base',
|
|
60
62
|
},
|
|
61
63
|
COOKIES: {
|
|
62
|
-
BASE:
|
|
63
|
-
SCRAPE:
|
|
64
|
+
BASE: 'cookies',
|
|
65
|
+
SCRAPE: 'cookies/scrape-cookies',
|
|
64
66
|
},
|
|
65
67
|
SCRAPING: {
|
|
66
|
-
BASE:
|
|
67
|
-
START_SCRAPING:
|
|
68
|
-
START_WORLDWIDE_SCRAPING:
|
|
69
|
-
START_US_SCRAPING:
|
|
70
|
-
START_UK_SCRAPING:
|
|
71
|
-
UPDATE_ACTIVITY_4H_WORLDWIDE:
|
|
72
|
-
UPDATE_ACTIVITY_4H_UK:
|
|
73
|
-
UPDATE_ACTIVITY_4H_US:
|
|
74
|
-
UPDATE_ACTIVITY_24H_WORLDWIDE:
|
|
75
|
-
UPDATE_ACTIVITY_24H_UK:
|
|
76
|
-
UPDATE_ACTIVITY_24H_US:
|
|
77
|
-
SCRAPE_FEED_WORLDWIDE: "scraping/feed-worldwide",
|
|
78
|
-
SCRAPE_FEED_UK: "scraping/feed-uk",
|
|
79
|
-
SCRAPE_FEED_US: "scraping/feed-us",
|
|
80
|
-
SCRAPE_JOB: "scraping/job",
|
|
81
|
-
SCRAPE_JOB_ACTIVITY: "scraping/job-activity",
|
|
68
|
+
BASE: 'scraping',
|
|
69
|
+
START_SCRAPING: 'scraping/start',
|
|
70
|
+
START_WORLDWIDE_SCRAPING: 'scraping/start-worldwide',
|
|
71
|
+
START_US_SCRAPING: 'scraping/start-us',
|
|
72
|
+
START_UK_SCRAPING: 'scraping/start-uk',
|
|
73
|
+
UPDATE_ACTIVITY_4H_WORLDWIDE: 'scraping/update-activity/4h',
|
|
74
|
+
UPDATE_ACTIVITY_4H_UK: 'scraping/update-activity/4h/uk',
|
|
75
|
+
UPDATE_ACTIVITY_4H_US: 'scraping/update-activity/4h/us',
|
|
76
|
+
UPDATE_ACTIVITY_24H_WORLDWIDE: 'scraping/update-activity/24h',
|
|
77
|
+
UPDATE_ACTIVITY_24H_UK: 'scraping/update-activity/24h/uk',
|
|
78
|
+
UPDATE_ACTIVITY_24H_US: 'scraping/update-activity/24h/us',
|
|
82
79
|
},
|
|
83
80
|
ADMIN: {
|
|
84
|
-
BASE:
|
|
81
|
+
BASE: 'admin',
|
|
85
82
|
BIDDER_ACCOUNTS: {
|
|
86
|
-
BASE:
|
|
83
|
+
BASE: 'admin/bidder-accounts',
|
|
87
84
|
BY_ID: (id) => `admin/bidder-accounts/${id}`,
|
|
88
85
|
BY_PROVIDER: (provider) => `admin/bidder-accounts/${provider}`,
|
|
89
86
|
BY_PROVIDER_AND_ID: (provider, id) => `admin/bidder-accounts/${provider}/${id}`,
|
|
90
87
|
},
|
|
91
88
|
SCRAPER_ACCOUNTS: {
|
|
92
|
-
BASE:
|
|
89
|
+
BASE: 'admin/scraper-accounts',
|
|
93
90
|
BY_ID: (id) => `admin/scraper-accounts/${id}`,
|
|
94
91
|
BY_PROVIDER: (provider) => `admin/scraper-accounts/${provider}`,
|
|
95
92
|
BY_PROVIDER_AND_ID: (provider, id) => `admin/scraper-accounts/${provider}/${id}`,
|
|
96
93
|
},
|
|
97
|
-
PROXIES: {
|
|
98
|
-
BASE: "admin/proxies",
|
|
99
|
-
BY_ID: (id) => `admin/proxies/${id}`,
|
|
100
|
-
REPLACE_PROXY: (id) => `admin/proxies/${id}/replace`,
|
|
101
|
-
SYNC: "admin/proxies/sync",
|
|
102
|
-
},
|
|
103
94
|
},
|
|
104
95
|
BID: {
|
|
105
|
-
BASE:
|
|
96
|
+
BASE: 'bid',
|
|
106
97
|
BID_ON_JOB: (userId, campaignId, leadId) => `bid/${userId}/${campaignId}/${leadId}`,
|
|
107
98
|
},
|
|
108
99
|
};
|
|
109
100
|
// Helper function to build route with parameters
|
|
110
|
-
|
|
101
|
+
const buildRoute = (route, params = {}) => {
|
|
111
102
|
let builtRoute = route;
|
|
112
103
|
Object.entries(params).forEach(([key, value]) => {
|
|
113
104
|
builtRoute = builtRoute.replace(`:${key}`, value);
|
|
114
105
|
});
|
|
115
106
|
return builtRoute;
|
|
116
107
|
};
|
|
108
|
+
exports.buildRoute = buildRoute;
|
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.bidderAccountProviderDisplayMap = exports.accountStatusDisplayMap = exports.accountStatusOrder = void 0;
|
|
4
|
+
exports.accountStatusOrder = [
|
|
2
5
|
'verification_required',
|
|
3
6
|
'shadow_banned',
|
|
4
7
|
'healthy',
|
|
5
8
|
'banned',
|
|
6
9
|
'suspended',
|
|
7
10
|
];
|
|
8
|
-
|
|
11
|
+
exports.accountStatusDisplayMap = {
|
|
9
12
|
verification_required: 'Verification Required',
|
|
10
13
|
shadow_banned: 'Shadow Banned',
|
|
11
14
|
healthy: 'Healthy',
|
|
12
15
|
banned: 'Banned',
|
|
13
16
|
suspended: 'Suspended',
|
|
14
17
|
};
|
|
15
|
-
|
|
18
|
+
exports.bidderAccountProviderDisplayMap = {
|
|
16
19
|
'lancer-provided': 'Lancer Provided',
|
|
17
20
|
'user-provided': 'User Provided',
|
|
18
21
|
};
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./schemas"), exports);
|
|
18
|
+
__exportStar(require("./types"), exports);
|
|
19
|
+
__exportStar(require("./constants"), exports);
|
|
20
|
+
__exportStar(require("./utils"), exports);
|