lancer-shared 1.0.173 → 1.0.175
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 +328 -38
- package/dist/constants/routes.d.ts +3 -3
- package/dist/schemas/campaign/campaign-analytics.d.ts +7 -0
- package/dist/schemas/lead/index.d.ts +61 -2
- package/dist/schemas/lead/nuxt.d.ts +1664 -0
- package/dist/schemas/logger/log-event.d.ts +5 -0
- package/dist/schemas/scraper/scrape-result.d.ts +23 -4
- package/dist/types/job/index.d.ts +1 -0
- package/dist/types/job/nuxt.d.ts +4 -0
- package/package.json +1 -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(),
|
|
@@ -6242,15 +6531,15 @@ const regionMapping = {
|
|
|
6242
6531
|
|
|
6243
6532
|
const ROUTES = {
|
|
6244
6533
|
AUTH: {
|
|
6245
|
-
BASE:
|
|
6246
|
-
REGISTER:
|
|
6534
|
+
BASE: "auth",
|
|
6535
|
+
REGISTER: "auth/register",
|
|
6247
6536
|
},
|
|
6248
6537
|
EVENTS: {
|
|
6249
|
-
BASE:
|
|
6538
|
+
BASE: "events",
|
|
6250
6539
|
BY_ID: (id) => `events/${id}`,
|
|
6251
6540
|
},
|
|
6252
6541
|
CAMPAIGNS: {
|
|
6253
|
-
BASE:
|
|
6542
|
+
BASE: "campaigns",
|
|
6254
6543
|
BY_ID: (id) => `campaigns/${id}`,
|
|
6255
6544
|
LEADS: {
|
|
6256
6545
|
BASE: (campaignId) => `campaigns/${campaignId}/leads`,
|
|
@@ -6283,69 +6572,69 @@ const ROUTES = {
|
|
|
6283
6572
|
},
|
|
6284
6573
|
},
|
|
6285
6574
|
JOBS: {
|
|
6286
|
-
BASE:
|
|
6575
|
+
BASE: "jobs",
|
|
6287
6576
|
BY_ID: (id) => `jobs/${id}`,
|
|
6288
|
-
|
|
6289
|
-
IMPORT:
|
|
6290
|
-
FILTER_OPTIONS:
|
|
6291
|
-
TOTAL_JOBS:
|
|
6577
|
+
UPDATE_ACTIVITY: `jobs/update-activity`,
|
|
6578
|
+
IMPORT: "jobs/import",
|
|
6579
|
+
FILTER_OPTIONS: "jobs/filter-options",
|
|
6580
|
+
TOTAL_JOBS: "jobs/total-jobs",
|
|
6292
6581
|
GET_JOB_TITLE: (jobId) => `jobs/get-job-title/${jobId}`,
|
|
6293
|
-
SEARCH:
|
|
6582
|
+
SEARCH: "jobs/search",
|
|
6294
6583
|
},
|
|
6295
6584
|
USERS: {
|
|
6296
|
-
BASE:
|
|
6585
|
+
BASE: "users",
|
|
6297
6586
|
BY_ID: (id) => `users/${id}`,
|
|
6298
6587
|
},
|
|
6299
6588
|
AI_CONFIG: {
|
|
6300
|
-
BASE:
|
|
6301
|
-
GENERATE_KNOWLEDGE_BASE:
|
|
6589
|
+
BASE: "ai-config",
|
|
6590
|
+
GENERATE_KNOWLEDGE_BASE: "ai-config/generate-knowledge-base",
|
|
6302
6591
|
},
|
|
6303
6592
|
COOKIES: {
|
|
6304
|
-
BASE:
|
|
6305
|
-
SCRAPE:
|
|
6593
|
+
BASE: "cookies",
|
|
6594
|
+
SCRAPE: "cookies/scrape-cookies",
|
|
6306
6595
|
},
|
|
6307
6596
|
SCRAPING: {
|
|
6308
|
-
BASE:
|
|
6309
|
-
START_SCRAPING:
|
|
6310
|
-
START_WORLDWIDE_SCRAPING:
|
|
6311
|
-
START_US_SCRAPING:
|
|
6312
|
-
START_UK_SCRAPING:
|
|
6313
|
-
UPDATE_ACTIVITY_4H_WORLDWIDE:
|
|
6314
|
-
UPDATE_ACTIVITY_4H_UK:
|
|
6315
|
-
UPDATE_ACTIVITY_4H_US:
|
|
6316
|
-
UPDATE_ACTIVITY_24H_WORLDWIDE:
|
|
6317
|
-
UPDATE_ACTIVITY_24H_UK:
|
|
6318
|
-
UPDATE_ACTIVITY_24H_US:
|
|
6319
|
-
SCRAPE_FEED_WORLDWIDE:
|
|
6320
|
-
SCRAPE_FEED_UK:
|
|
6321
|
-
SCRAPE_FEED_US:
|
|
6322
|
-
SCRAPE_JOB:
|
|
6323
|
-
SCRAPE_JOB_ACTIVITY:
|
|
6597
|
+
BASE: "scraping",
|
|
6598
|
+
START_SCRAPING: "scraping/start",
|
|
6599
|
+
START_WORLDWIDE_SCRAPING: "scraping/start-worldwide",
|
|
6600
|
+
START_US_SCRAPING: "scraping/start-us",
|
|
6601
|
+
START_UK_SCRAPING: "scraping/start-uk",
|
|
6602
|
+
UPDATE_ACTIVITY_4H_WORLDWIDE: "scraping/update-activity/4h",
|
|
6603
|
+
UPDATE_ACTIVITY_4H_UK: "scraping/update-activity/4h/uk",
|
|
6604
|
+
UPDATE_ACTIVITY_4H_US: "scraping/update-activity/4h/us",
|
|
6605
|
+
UPDATE_ACTIVITY_24H_WORLDWIDE: "scraping/update-activity/24h",
|
|
6606
|
+
UPDATE_ACTIVITY_24H_UK: "scraping/update-activity/24h/uk",
|
|
6607
|
+
UPDATE_ACTIVITY_24H_US: "scraping/update-activity/24h/us",
|
|
6608
|
+
SCRAPE_FEED_WORLDWIDE: "scraping/feed-worldwide",
|
|
6609
|
+
SCRAPE_FEED_UK: "scraping/feed-uk",
|
|
6610
|
+
SCRAPE_FEED_US: "scraping/feed-us",
|
|
6611
|
+
SCRAPE_JOB: "scraping/job",
|
|
6612
|
+
SCRAPE_JOB_ACTIVITY: "scraping/job-activity",
|
|
6324
6613
|
},
|
|
6325
6614
|
ADMIN: {
|
|
6326
|
-
BASE:
|
|
6615
|
+
BASE: "admin",
|
|
6327
6616
|
BIDDER_ACCOUNTS: {
|
|
6328
|
-
BASE:
|
|
6617
|
+
BASE: "admin/bidder-accounts",
|
|
6329
6618
|
BY_ID: (id) => `admin/bidder-accounts/${id}`,
|
|
6330
6619
|
BY_PROVIDER: (provider) => `admin/bidder-accounts/${provider}`,
|
|
6331
6620
|
BY_PROVIDER_AND_ID: (provider, id) => `admin/bidder-accounts/${provider}/${id}`,
|
|
6332
6621
|
},
|
|
6333
6622
|
SCRAPER_ACCOUNTS: {
|
|
6334
|
-
BASE:
|
|
6623
|
+
BASE: "admin/scraper-accounts",
|
|
6335
6624
|
BY_ID: (id) => `admin/scraper-accounts/${id}`,
|
|
6336
6625
|
BY_PROVIDER: (provider) => `admin/scraper-accounts/${provider}`,
|
|
6337
6626
|
BY_PROVIDER_AND_ID: (provider, id) => `admin/scraper-accounts/${provider}/${id}`,
|
|
6338
6627
|
},
|
|
6339
6628
|
PROXIES: {
|
|
6340
|
-
BASE:
|
|
6629
|
+
BASE: "admin/proxies",
|
|
6341
6630
|
BY_ID: (id) => `admin/proxies/${id}`,
|
|
6342
6631
|
REPLACE_PROXY: (id) => `admin/proxies/${id}/replace`,
|
|
6343
|
-
SYNC:
|
|
6344
|
-
AVAILABLE_REPLACEMENTS:
|
|
6632
|
+
SYNC: "admin/proxies/sync",
|
|
6633
|
+
AVAILABLE_REPLACEMENTS: "admin/proxies/available-replacements",
|
|
6345
6634
|
},
|
|
6346
6635
|
},
|
|
6347
6636
|
BID: {
|
|
6348
|
-
BASE:
|
|
6637
|
+
BASE: "bid",
|
|
6349
6638
|
BID_ON_JOB: (userId, campaignId, leadId) => `bid/${userId}/${campaignId}/${leadId}`,
|
|
6350
6639
|
},
|
|
6351
6640
|
};
|
|
@@ -6480,6 +6769,7 @@ exports.logEventSchema = logEventSchema;
|
|
|
6480
6769
|
exports.loginSchema = loginSchema;
|
|
6481
6770
|
exports.metadataSchema = metadataSchema;
|
|
6482
6771
|
exports.newChatMessageSchema = newChatMessageSchema;
|
|
6772
|
+
exports.nuxtStateJobSchema = nuxtStateJobSchema;
|
|
6483
6773
|
exports.organizationSchema = organizationSchema;
|
|
6484
6774
|
exports.organizationTypeSchema = organizationTypeSchema;
|
|
6485
6775
|
exports.passwordSchema = passwordSchema;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LeadStatus, TimeFilter } from
|
|
1
|
+
import { LeadStatus, TimeFilter } from "../types";
|
|
2
2
|
export declare const ROUTES: {
|
|
3
3
|
readonly AUTH: {
|
|
4
4
|
readonly BASE: "auth";
|
|
@@ -22,7 +22,7 @@ export declare const ROUTES: {
|
|
|
22
22
|
readonly AI_METRICS: (campaignId: string) => string;
|
|
23
23
|
readonly CONNECT_SAVED: (campaignId: string) => string;
|
|
24
24
|
readonly ANALYTICS: (campaignId: string, timeFilter: TimeFilter) => string;
|
|
25
|
-
readonly ACTIVITY: (campaignId: string, status: LeadStatus |
|
|
25
|
+
readonly ACTIVITY: (campaignId: string, status: LeadStatus | "all", offset: string, limit: string) => string;
|
|
26
26
|
readonly INTEGRATIONS: {
|
|
27
27
|
readonly BASE: (campaignId: string) => string;
|
|
28
28
|
readonly TEST_SUITABILITY_WEBHOOK: (campaignId: string, integrationId: string) => string;
|
|
@@ -44,7 +44,7 @@ export declare const ROUTES: {
|
|
|
44
44
|
readonly JOBS: {
|
|
45
45
|
readonly BASE: "jobs";
|
|
46
46
|
readonly BY_ID: (id: string) => string;
|
|
47
|
-
readonly
|
|
47
|
+
readonly UPDATE_ACTIVITY: "jobs/update-activity";
|
|
48
48
|
readonly IMPORT: "jobs/import";
|
|
49
49
|
readonly FILTER_OPTIONS: "jobs/filter-options";
|
|
50
50
|
readonly TOTAL_JOBS: "jobs/total-jobs";
|
|
@@ -104,6 +104,7 @@ export declare const campaignActivitySchema: z.ZodObject<{
|
|
|
104
104
|
status: z.ZodEnum<["leads", "contacted", "viewed", "replied", "negotiations", "won", "lost"]>;
|
|
105
105
|
job: z.ZodObject<Pick<{
|
|
106
106
|
id: z.ZodNullable<z.ZodString>;
|
|
107
|
+
uid: z.ZodNullable<z.ZodString>;
|
|
107
108
|
createdAt: z.ZodNullable<z.ZodNumber>;
|
|
108
109
|
title: z.ZodNullable<z.ZodString>;
|
|
109
110
|
category: z.ZodNullable<z.ZodString>;
|
|
@@ -304,6 +305,7 @@ export declare const campaignActivitySchema: z.ZodObject<{
|
|
|
304
305
|
max: number | null;
|
|
305
306
|
}>;
|
|
306
307
|
lastViewedByClient: z.ZodNullable<z.ZodString>;
|
|
308
|
+
lastViewedByClientTimestamp: z.ZodNullable<z.ZodNumber>;
|
|
307
309
|
hires: z.ZodNullable<z.ZodNumber>;
|
|
308
310
|
interviewing: z.ZodNullable<z.ZodNumber>;
|
|
309
311
|
invitesSent: z.ZodNullable<z.ZodNumber>;
|
|
@@ -315,6 +317,7 @@ export declare const campaignActivitySchema: z.ZodObject<{
|
|
|
315
317
|
max: number | null;
|
|
316
318
|
};
|
|
317
319
|
lastViewedByClient: string | null;
|
|
320
|
+
lastViewedByClientTimestamp: number | null;
|
|
318
321
|
hires: number | null;
|
|
319
322
|
interviewing: number | null;
|
|
320
323
|
invitesSent: number | null;
|
|
@@ -326,6 +329,7 @@ export declare const campaignActivitySchema: z.ZodObject<{
|
|
|
326
329
|
max: number | null;
|
|
327
330
|
};
|
|
328
331
|
lastViewedByClient: string | null;
|
|
332
|
+
lastViewedByClientTimestamp: number | null;
|
|
329
333
|
hires: number | null;
|
|
330
334
|
interviewing: number | null;
|
|
331
335
|
invitesSent: number | null;
|
|
@@ -345,6 +349,7 @@ export declare const campaignActivitySchema: z.ZodObject<{
|
|
|
345
349
|
max: number | null;
|
|
346
350
|
}>;
|
|
347
351
|
lastViewedByClient: z.ZodNullable<z.ZodString>;
|
|
352
|
+
lastViewedByClientTimestamp: z.ZodNullable<z.ZodNumber>;
|
|
348
353
|
hires: z.ZodNullable<z.ZodNumber>;
|
|
349
354
|
interviewing: z.ZodNullable<z.ZodNumber>;
|
|
350
355
|
invitesSent: z.ZodNullable<z.ZodNumber>;
|
|
@@ -356,6 +361,7 @@ export declare const campaignActivitySchema: z.ZodObject<{
|
|
|
356
361
|
max: number | null;
|
|
357
362
|
};
|
|
358
363
|
lastViewedByClient: string | null;
|
|
364
|
+
lastViewedByClientTimestamp: number | null;
|
|
359
365
|
hires: number | null;
|
|
360
366
|
interviewing: number | null;
|
|
361
367
|
invitesSent: number | null;
|
|
@@ -367,6 +373,7 @@ export declare const campaignActivitySchema: z.ZodObject<{
|
|
|
367
373
|
max: number | null;
|
|
368
374
|
};
|
|
369
375
|
lastViewedByClient: string | null;
|
|
376
|
+
lastViewedByClientTimestamp: number | null;
|
|
370
377
|
hires: number | null;
|
|
371
378
|
interviewing: number | null;
|
|
372
379
|
invitesSent: number | null;
|