lancer-shared 1.0.174 → 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.
@@ -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(),
@@ -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;
@@ -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;