lancer-shared 1.2.249 → 1.2.251
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 +33 -5
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +30 -6
- package/dist/bundle.esm.js.map +1 -1
- package/dist/constants/routes.d.ts +4 -0
- package/dist/schemas/agent/index.d.ts +8 -2
- package/dist/schemas/agent/profile.d.ts +55 -0
- package/dist/schemas/bidder/bid.d.ts +49 -0
- package/dist/schemas/campaign/campaign-analytics.d.ts +9 -0
- package/dist/schemas/lead/index.d.ts +20 -0
- package/dist/schemas/logger/log-event.d.ts +3 -0
- package/dist/schemas/scraper/scrape-payload.d.ts +5 -0
- package/package.json +1 -1
package/dist/bundle.cjs.js
CHANGED
|
@@ -6797,12 +6797,17 @@ const findLeadsResponseSchema = z.object({
|
|
|
6797
6797
|
lastMonthTotalWithEmptyFilters: z.number().optional(),
|
|
6798
6798
|
error: z.string().optional(),
|
|
6799
6799
|
});
|
|
6800
|
+
const getCampaignLeadsStatusEnum = z.enum([
|
|
6801
|
+
'all',
|
|
6802
|
+
'suitable',
|
|
6803
|
+
'contacted',
|
|
6804
|
+
'viewed',
|
|
6805
|
+
'replied',
|
|
6806
|
+
]);
|
|
6800
6807
|
const getCampaignLeadsRequestQuerySchema = z.object({
|
|
6801
6808
|
cursor: z.string().optional(),
|
|
6802
6809
|
limit: z.number().default(20).optional(),
|
|
6803
|
-
status:
|
|
6804
|
-
.enum(['all', 'suitable', 'contacted', 'viewed', 'replied'])
|
|
6805
|
-
.optional(),
|
|
6810
|
+
status: getCampaignLeadsStatusEnum.optional(),
|
|
6806
6811
|
});
|
|
6807
6812
|
const getCampaignLeadsResponseSchema = z.object({
|
|
6808
6813
|
data: z.array(leadSchema),
|
|
@@ -6822,6 +6827,22 @@ const proposalSchema = z.object({
|
|
|
6822
6827
|
questionAnswerPairs: questionAnswerPairSchema.array(),
|
|
6823
6828
|
});
|
|
6824
6829
|
|
|
6830
|
+
const specialisedProfileSchema = z.object({
|
|
6831
|
+
name: z.string(),
|
|
6832
|
+
title: z.string(),
|
|
6833
|
+
});
|
|
6834
|
+
const pickProfileRequestSchema = z.object({
|
|
6835
|
+
jobTitle: z.string(),
|
|
6836
|
+
jobDescription: z.string(),
|
|
6837
|
+
model: z.string(),
|
|
6838
|
+
// specialisedProfiles: z.array(specialisedProfileSchema),
|
|
6839
|
+
});
|
|
6840
|
+
const pickProfileResponseSchema = z.object({
|
|
6841
|
+
selectedProfile: specialisedProfileSchema,
|
|
6842
|
+
confidence: z.string(),
|
|
6843
|
+
matchingKeywords: z.array(z.string()),
|
|
6844
|
+
});
|
|
6845
|
+
|
|
6825
6846
|
const agentGenerateProposalRequestSchema = z.object({
|
|
6826
6847
|
userId: z.string().nullable(),
|
|
6827
6848
|
organizationId: z.string(),
|
|
@@ -8430,7 +8451,6 @@ const getSamplesRequestSchema = z.object({
|
|
|
8430
8451
|
leadIds: z.array(z.string()),
|
|
8431
8452
|
});
|
|
8432
8453
|
const updateSampleSchema = z.object({
|
|
8433
|
-
id: z.string(),
|
|
8434
8454
|
label: labelEnum,
|
|
8435
8455
|
});
|
|
8436
8456
|
|
|
@@ -8699,6 +8719,7 @@ const biddingCompletedEventMetadata = objectType({
|
|
|
8699
8719
|
boosted: booleanType(),
|
|
8700
8720
|
boostingAmount: numberType(),
|
|
8701
8721
|
applicationId: stringType(),
|
|
8722
|
+
boostedForPlace: z.number().nullable(),
|
|
8702
8723
|
});
|
|
8703
8724
|
const biddingFailedEventMetadata = objectType({
|
|
8704
8725
|
error: z.any(),
|
|
@@ -15034,7 +15055,6 @@ const ROUTES = {
|
|
|
15034
15055
|
SAMPLE: (id) => `admin/golden-dataset/${id}`,
|
|
15035
15056
|
CREATE_SAMPLE: 'admin/golden-dataset/create',
|
|
15036
15057
|
GET_SAMPLES: 'admin/golden-dataset/get-samples',
|
|
15037
|
-
UPDATE_SAMPLE: 'admin/golden-dataset/update',
|
|
15038
15058
|
},
|
|
15039
15059
|
AGENT: {
|
|
15040
15060
|
BASE: 'admin/agent',
|
|
@@ -15129,6 +15149,9 @@ const ROUTES = {
|
|
|
15129
15149
|
},
|
|
15130
15150
|
CHECK_LEAD_STATUS: (organizationId, campaignId, leadId) => `organizations/${organizationId}/campaigns/${campaignId}/leads/${leadId}/check-lead-status`,
|
|
15131
15151
|
},
|
|
15152
|
+
LEADS: {
|
|
15153
|
+
BASE: (organizationId) => `organizations/${organizationId}/leads`,
|
|
15154
|
+
},
|
|
15132
15155
|
USAGE_SUMMARIES: {
|
|
15133
15156
|
DAILY: {
|
|
15134
15157
|
BASE: (organizationId) => `usage-summaries/${organizationId}/daily`,
|
|
@@ -15176,6 +15199,7 @@ const ROUTES = {
|
|
|
15176
15199
|
TEST_SUITABILITY: 'agent/test-suitability',
|
|
15177
15200
|
TEST_PROPOSAL: 'agent/test-proposal',
|
|
15178
15201
|
TEST_SYSTEM_PROMPTS: 'agent/test-system-prompts',
|
|
15202
|
+
TEST_PICK_PROFILE: 'agent/test-pick-profile',
|
|
15179
15203
|
ANALYZE_LEAD: 'agent/analyze-lead',
|
|
15180
15204
|
GENERATE_PROPOSAL: 'agent/generate-proposal',
|
|
15181
15205
|
PICK_SPECIALISED_PROFILE: 'agent/pick-specialised-profile',
|
|
@@ -23983,6 +24007,7 @@ exports.getBiddingProcessingEventFromAnotherCampaignsPayloadSchema = getBiddingP
|
|
|
23983
24007
|
exports.getBiddingProcessingEventFromAnotherCampaignsResponseSchema = getBiddingProcessingEventFromAnotherCampaignsResponseSchema;
|
|
23984
24008
|
exports.getCampaignLeadsRequestQuerySchema = getCampaignLeadsRequestQuerySchema;
|
|
23985
24009
|
exports.getCampaignLeadsResponseSchema = getCampaignLeadsResponseSchema;
|
|
24010
|
+
exports.getCampaignLeadsStatusEnum = getCampaignLeadsStatusEnum;
|
|
23986
24011
|
exports.getMultiloginBrowserException = getMultiloginBrowserException;
|
|
23987
24012
|
exports.getNextStatus = getNextStatus;
|
|
23988
24013
|
exports.getPreviousStatus = getPreviousStatus;
|
|
@@ -24070,6 +24095,8 @@ exports.passwordSchema = passwordSchema;
|
|
|
24070
24095
|
exports.paymentTypeEnum = paymentTypeEnum;
|
|
24071
24096
|
exports.periodTypeSchema = periodTypeSchema;
|
|
24072
24097
|
exports.periodUsageSchema = periodUsageSchema;
|
|
24098
|
+
exports.pickProfileRequestSchema = pickProfileRequestSchema;
|
|
24099
|
+
exports.pickProfileResponseSchema = pickProfileResponseSchema;
|
|
24073
24100
|
exports.planFeatureSchema = planFeatureSchema;
|
|
24074
24101
|
exports.planSchema = planSchema;
|
|
24075
24102
|
exports.planSlugEnum = planSlugEnum;
|
|
@@ -24130,6 +24157,7 @@ exports.selectContractorException = selectContractorException;
|
|
|
24130
24157
|
exports.selectorNotFoundError = selectorNotFoundError;
|
|
24131
24158
|
exports.sendAlertPayloadSchema = sendAlertPayloadSchema;
|
|
24132
24159
|
exports.sendNotificationRequestSchema = sendNotificationRequestSchema;
|
|
24160
|
+
exports.specialisedProfileSchema = specialisedProfileSchema;
|
|
24133
24161
|
exports.stringify = stringify;
|
|
24134
24162
|
exports.subscribePayloadSchema = subscribePayloadSchema;
|
|
24135
24163
|
exports.subscriptionSchema = subscriptionSchema;
|