lancer-shared 1.2.244 → 1.2.246
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 +39 -1
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +36 -2
- package/dist/bundle.esm.js.map +1 -1
- package/dist/constants/routes.d.ts +6 -0
- package/dist/schemas/agent/classification-enum.d.ts +3 -0
- package/dist/schemas/campaign/campaign-analytics.d.ts +48 -0
- package/dist/schemas/campaign/campaign.d.ts +30 -0
- package/dist/schemas/golden-dataset/index.d.ts +1 -0
- package/dist/schemas/golden-dataset/sample.d.ts +72 -0
- package/dist/schemas/index.d.ts +1 -0
- package/dist/schemas/job/job-filters.d.ts +6 -0
- package/dist/schemas/scraper/scrape-payload.d.ts +14 -0
- package/package.json +1 -1
package/dist/bundle.cjs.js
CHANGED
|
@@ -5201,6 +5201,8 @@ const jobFiltersSchema = z.object({
|
|
|
5201
5201
|
.nullable(),
|
|
5202
5202
|
includeClientsWithZeroReviews: z.boolean().nullable(),
|
|
5203
5203
|
includeClientsWithLessThanXPostedJobs: z.number().nullable(),
|
|
5204
|
+
totalSpentIncludeClientsWithLessThanXPostedJobs: z.number().nullable(),
|
|
5205
|
+
averageHourlyRateIncludeClientsWithLessThanXPostedJobs: z.number().nullable(),
|
|
5204
5206
|
vendorQualifications: z
|
|
5205
5207
|
.object({
|
|
5206
5208
|
locationIncludes: z.array(z.string()).nullable(),
|
|
@@ -6864,7 +6866,7 @@ const agentPickSpecialisedProfileResponseSchema = z.object({
|
|
|
6864
6866
|
reason: z.string(),
|
|
6865
6867
|
});
|
|
6866
6868
|
const suitabilityRatingSchema = z.object({
|
|
6867
|
-
|
|
6869
|
+
rating: z.number(),
|
|
6868
6870
|
reason: z.string(),
|
|
6869
6871
|
});
|
|
6870
6872
|
const jobQualityScoreSchema = z.object({
|
|
@@ -8402,6 +8404,32 @@ const organizationCampaignStatsSchema = z.object({
|
|
|
8402
8404
|
campaigns: z.array(campaignDetailsSchema),
|
|
8403
8405
|
});
|
|
8404
8406
|
|
|
8407
|
+
const labelEnum = z.enum(['suitable', 'unsuitable']);
|
|
8408
|
+
const sampleSchema = z.object({
|
|
8409
|
+
id: z.string(),
|
|
8410
|
+
organizationId: z.string(),
|
|
8411
|
+
campaignId: z.string(),
|
|
8412
|
+
leadId: z.string(),
|
|
8413
|
+
systemPromptSnapshot: z.string(),
|
|
8414
|
+
jobDetailsSnapshot: z.string(),
|
|
8415
|
+
label: labelEnum,
|
|
8416
|
+
updatedAt: z.number(),
|
|
8417
|
+
createdAt: z.number(),
|
|
8418
|
+
});
|
|
8419
|
+
const createSampleSchema = z.object({
|
|
8420
|
+
organizationId: z.string(),
|
|
8421
|
+
systemPromptSnapshot: z.string(),
|
|
8422
|
+
jobDetailsSnapshot: z.string(),
|
|
8423
|
+
campaignId: z.string(),
|
|
8424
|
+
leadId: z.string(),
|
|
8425
|
+
label: labelEnum,
|
|
8426
|
+
});
|
|
8427
|
+
const getSamplesRequestSchema = z.object({
|
|
8428
|
+
organizationId: z.string(),
|
|
8429
|
+
campaignId: z.string(),
|
|
8430
|
+
leadIds: z.array(z.string()),
|
|
8431
|
+
});
|
|
8432
|
+
|
|
8405
8433
|
const gcpMetadataSchema = objectType({
|
|
8406
8434
|
instanceName: stringType(),
|
|
8407
8435
|
machineType: stringType(),
|
|
@@ -14997,6 +15025,12 @@ const ROUTES = {
|
|
|
14997
15025
|
BASE: 'admin/alerts',
|
|
14998
15026
|
SEND_ALERT: 'admin/alerts/send',
|
|
14999
15027
|
},
|
|
15028
|
+
GOLDEN_DATASET: {
|
|
15029
|
+
BASE: 'admin/golden-dataset',
|
|
15030
|
+
SAMPLE: (id) => `admin/golden-dataset/${id}`,
|
|
15031
|
+
CREATE_SAMPLE: 'admin/golden-dataset/create',
|
|
15032
|
+
GET_SAMPLES: 'admin/golden-dataset/get-samples',
|
|
15033
|
+
},
|
|
15000
15034
|
AGENT: {
|
|
15001
15035
|
BASE: 'admin/agent',
|
|
15002
15036
|
TEST_JOB_QUALITY: 'admin/agent/test-job-quality',
|
|
@@ -23895,6 +23929,7 @@ exports.createCoverLetterTemplateSchema = createCoverLetterTemplateSchema;
|
|
|
23895
23929
|
exports.createHourlyRateFormSchema = createHourlyRateFormSchema;
|
|
23896
23930
|
exports.createOrganizationProfileSchema = createOrganizationProfileSchema;
|
|
23897
23931
|
exports.createOrganizationSchema = createOrganizationSchema;
|
|
23932
|
+
exports.createSampleSchema = createSampleSchema;
|
|
23898
23933
|
exports.createScraperAccountSchema = createScraperAccountSchema;
|
|
23899
23934
|
exports.createSuitabilityFormSchema = createSuitabilityFormSchema;
|
|
23900
23935
|
exports.dailyUsageSchema = dailyUsageSchema;
|
|
@@ -23947,6 +23982,7 @@ exports.getMultiloginBrowserException = getMultiloginBrowserException;
|
|
|
23947
23982
|
exports.getNextStatus = getNextStatus;
|
|
23948
23983
|
exports.getPreviousStatus = getPreviousStatus;
|
|
23949
23984
|
exports.getRouteWithoutAdminPrefix = getRouteWithoutAdminPrefix;
|
|
23985
|
+
exports.getSamplesRequestSchema = getSamplesRequestSchema;
|
|
23950
23986
|
exports.goToUrlException = goToUrlException;
|
|
23951
23987
|
exports.hasQuestionsEnum = hasQuestionsEnum;
|
|
23952
23988
|
exports.incorrectSecurityQuestionAnswerException = incorrectSecurityQuestionAnswerException;
|
|
@@ -23985,6 +24021,7 @@ exports.jobNoLongerAvailableException = jobNoLongerAvailableException;
|
|
|
23985
24021
|
exports.jobQualityScoreSchema = jobQualityScoreSchema;
|
|
23986
24022
|
exports.jobSkillsSchema = jobSkillsSchema;
|
|
23987
24023
|
exports.jobStatusOrder = jobStatusOrder;
|
|
24024
|
+
exports.labelEnum = labelEnum;
|
|
23988
24025
|
exports.lancerBiddingExceptionEventMetadata = lancerBiddingExceptionEventMetadata;
|
|
23989
24026
|
exports.leadAnalysisActivitySchema = leadAnalysisActivitySchema;
|
|
23990
24027
|
exports.leadResponseSchema = leadResponseSchema;
|
|
@@ -24067,6 +24104,7 @@ exports.regionSchema = regionSchema;
|
|
|
24067
24104
|
exports.registerSchema = registerSchema;
|
|
24068
24105
|
exports.requiredEarningsEnum = requiredEarningsEnum;
|
|
24069
24106
|
exports.requiredJSSEnum = requiredJSSEnum;
|
|
24107
|
+
exports.sampleSchema = sampleSchema;
|
|
24070
24108
|
exports.savedSearchSchema = savedSearchSchema;
|
|
24071
24109
|
exports.scrapeJobActivityPayloadSchema = scrapeJobActivityPayloadSchema;
|
|
24072
24110
|
exports.scrapeJobPayloadSchema = scrapeJobPayloadSchema;
|