lancer-shared 1.2.153 → 1.2.154
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
CHANGED
|
@@ -6642,6 +6642,7 @@ const ROUTES = {
|
|
|
6642
6642
|
TEST_SYSTEM_PROMPTS: 'agent/test-system-prompts',
|
|
6643
6643
|
ANALYZE_LEAD: 'agent/analyze-lead',
|
|
6644
6644
|
GENERATE_PROPOSAL: 'agent/generate-proposal',
|
|
6645
|
+
PICK_SPECIALISED_PROFILE: 'agent/pick-specialised-profile',
|
|
6645
6646
|
BID: 'agent/bid',
|
|
6646
6647
|
},
|
|
6647
6648
|
PLANS: {
|
|
@@ -13261,6 +13262,7 @@ const bidPayloadProposalDataSchema = z.object({
|
|
|
13261
13262
|
coverLetter: z.string(),
|
|
13262
13263
|
questionAnswerPairs: questionAnswerPairSchema.array().nullable(),
|
|
13263
13264
|
boostingEnabled: z.boolean(),
|
|
13265
|
+
specialisedProfileOptions: z.array(z.string()),
|
|
13264
13266
|
maximumBoost: z.number().nullable(),
|
|
13265
13267
|
biddingHourlyRateStrategy: biddingHourlyRateStrategyEnum,
|
|
13266
13268
|
biddingHourlyRatePercentage: z.number().min(0).max(100).nullable(),
|
|
@@ -13679,6 +13681,15 @@ const agentCalculateSuitabilityRequestSchema = z.object({
|
|
|
13679
13681
|
.array(z.object({ leadId: z.string(), campaignId: z.string() }))
|
|
13680
13682
|
.optional(),
|
|
13681
13683
|
});
|
|
13684
|
+
const agentPickSpecialisedProfileRequestSchema = z.object({
|
|
13685
|
+
jobTitle: z.string(),
|
|
13686
|
+
jobDescription: z.string(),
|
|
13687
|
+
specialisedProfiles: z.array(z.string()),
|
|
13688
|
+
});
|
|
13689
|
+
const agentPickSpecialisedProfileResponseSchema = z.object({
|
|
13690
|
+
profile: z.string(),
|
|
13691
|
+
reason: z.string(),
|
|
13692
|
+
});
|
|
13682
13693
|
const suitabilityRatingSchema = z.object({
|
|
13683
13694
|
rating: z.number(),
|
|
13684
13695
|
reason: z.string(),
|
|
@@ -14772,6 +14783,8 @@ exports.agencyBidProposalDataSchema = agencyBidProposalDataSchema;
|
|
|
14772
14783
|
exports.agentCalculateSuitabilityRequestSchema = agentCalculateSuitabilityRequestSchema;
|
|
14773
14784
|
exports.agentGenerateProposalRequestSchema = agentGenerateProposalRequestSchema;
|
|
14774
14785
|
exports.agentGenerateProposalResponseSchema = agentGenerateProposalResponseSchema;
|
|
14786
|
+
exports.agentPickSpecialisedProfileRequestSchema = agentPickSpecialisedProfileRequestSchema;
|
|
14787
|
+
exports.agentPickSpecialisedProfileResponseSchema = agentPickSpecialisedProfileResponseSchema;
|
|
14775
14788
|
exports.agentStatusSchema = agentStatusSchema;
|
|
14776
14789
|
exports.agentTaskResponseSchema = agentTaskResponseSchema;
|
|
14777
14790
|
exports.aiConfigSchema = aiConfigSchema;
|
|
@@ -220,6 +220,7 @@ export declare const ROUTES: {
|
|
|
220
220
|
readonly TEST_SYSTEM_PROMPTS: "agent/test-system-prompts";
|
|
221
221
|
readonly ANALYZE_LEAD: "agent/analyze-lead";
|
|
222
222
|
readonly GENERATE_PROPOSAL: "agent/generate-proposal";
|
|
223
|
+
readonly PICK_SPECIALISED_PROFILE: "agent/pick-specialised-profile";
|
|
223
224
|
readonly BID: "agent/bid";
|
|
224
225
|
};
|
|
225
226
|
readonly PLANS: {
|
|
@@ -998,12 +998,39 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
|
|
|
998
998
|
leadId: string;
|
|
999
999
|
}[] | undefined;
|
|
1000
1000
|
}>;
|
|
1001
|
+
export declare const agentPickSpecialisedProfileRequestSchema: z.ZodObject<{
|
|
1002
|
+
jobTitle: z.ZodString;
|
|
1003
|
+
jobDescription: z.ZodString;
|
|
1004
|
+
specialisedProfiles: z.ZodArray<z.ZodString, "many">;
|
|
1005
|
+
}, "strip", z.ZodTypeAny, {
|
|
1006
|
+
jobTitle: string;
|
|
1007
|
+
jobDescription: string;
|
|
1008
|
+
specialisedProfiles: string[];
|
|
1009
|
+
}, {
|
|
1010
|
+
jobTitle: string;
|
|
1011
|
+
jobDescription: string;
|
|
1012
|
+
specialisedProfiles: string[];
|
|
1013
|
+
}>;
|
|
1014
|
+
export declare const agentPickSpecialisedProfileResponseSchema: z.ZodObject<{
|
|
1015
|
+
profile: z.ZodString;
|
|
1016
|
+
reason: z.ZodString;
|
|
1017
|
+
}, "strip", z.ZodTypeAny, {
|
|
1018
|
+
profile: string;
|
|
1019
|
+
reason: string;
|
|
1020
|
+
}, {
|
|
1021
|
+
profile: string;
|
|
1022
|
+
reason: string;
|
|
1023
|
+
}>;
|
|
1001
1024
|
export interface AgentCalculateSuitabilityRequest extends z.infer<typeof agentCalculateSuitabilityRequestSchema> {
|
|
1002
1025
|
}
|
|
1003
1026
|
export interface AgentGenerateProposalRequest extends z.infer<typeof agentGenerateProposalRequestSchema> {
|
|
1004
1027
|
}
|
|
1005
1028
|
export interface AgentGenerateProposalResponse extends z.infer<typeof agentGenerateProposalResponseSchema> {
|
|
1006
1029
|
}
|
|
1030
|
+
export interface AgentPickSpecialisedProfileRequest extends z.infer<typeof agentPickSpecialisedProfileRequestSchema> {
|
|
1031
|
+
}
|
|
1032
|
+
export interface AgentPickSpecialisedProfileResponse extends z.infer<typeof agentPickSpecialisedProfileResponseSchema> {
|
|
1033
|
+
}
|
|
1007
1034
|
export declare const suitabilityRatingSchema: z.ZodObject<{
|
|
1008
1035
|
rating: z.ZodNumber;
|
|
1009
1036
|
reason: z.ZodString;
|
|
@@ -13,6 +13,7 @@ export declare const bidPayloadProposalDataSchema: z.ZodObject<{
|
|
|
13
13
|
answer: string;
|
|
14
14
|
}>, "many">>;
|
|
15
15
|
boostingEnabled: z.ZodBoolean;
|
|
16
|
+
specialisedProfileOptions: z.ZodArray<z.ZodString, "many">;
|
|
16
17
|
maximumBoost: z.ZodNullable<z.ZodNumber>;
|
|
17
18
|
biddingHourlyRateStrategy: z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>;
|
|
18
19
|
biddingHourlyRatePercentage: z.ZodNullable<z.ZodNumber>;
|
|
@@ -28,6 +29,7 @@ export declare const bidPayloadProposalDataSchema: z.ZodObject<{
|
|
|
28
29
|
answer: string;
|
|
29
30
|
}[] | null;
|
|
30
31
|
boostingEnabled: boolean;
|
|
32
|
+
specialisedProfileOptions: string[];
|
|
31
33
|
maximumBoost: number | null;
|
|
32
34
|
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
33
35
|
biddingHourlyRatePercentage: number | null;
|
|
@@ -43,6 +45,7 @@ export declare const bidPayloadProposalDataSchema: z.ZodObject<{
|
|
|
43
45
|
answer: string;
|
|
44
46
|
}[] | null;
|
|
45
47
|
boostingEnabled: boolean;
|
|
48
|
+
specialisedProfileOptions: string[];
|
|
46
49
|
maximumBoost: number | null;
|
|
47
50
|
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
48
51
|
biddingHourlyRatePercentage: number | null;
|
|
@@ -65,6 +68,7 @@ export declare const freelancerBidProposalDataSchema: z.ZodObject<{
|
|
|
65
68
|
answer: string;
|
|
66
69
|
}>, "many">>;
|
|
67
70
|
boostingEnabled: z.ZodBoolean;
|
|
71
|
+
specialisedProfileOptions: z.ZodArray<z.ZodString, "many">;
|
|
68
72
|
maximumBoost: z.ZodNullable<z.ZodNumber>;
|
|
69
73
|
biddingHourlyRateStrategy: z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>;
|
|
70
74
|
biddingHourlyRatePercentage: z.ZodNullable<z.ZodNumber>;
|
|
@@ -80,6 +84,7 @@ export declare const freelancerBidProposalDataSchema: z.ZodObject<{
|
|
|
80
84
|
answer: string;
|
|
81
85
|
}[] | null;
|
|
82
86
|
boostingEnabled: boolean;
|
|
87
|
+
specialisedProfileOptions: string[];
|
|
83
88
|
maximumBoost: number | null;
|
|
84
89
|
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
85
90
|
biddingHourlyRatePercentage: number | null;
|
|
@@ -95,6 +100,7 @@ export declare const freelancerBidProposalDataSchema: z.ZodObject<{
|
|
|
95
100
|
answer: string;
|
|
96
101
|
}[] | null;
|
|
97
102
|
boostingEnabled: boolean;
|
|
103
|
+
specialisedProfileOptions: string[];
|
|
98
104
|
maximumBoost: number | null;
|
|
99
105
|
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
100
106
|
biddingHourlyRatePercentage: number | null;
|
|
@@ -117,6 +123,7 @@ export declare const agencyBidProposalDataSchema: z.ZodObject<z.objectUtil.exten
|
|
|
117
123
|
answer: string;
|
|
118
124
|
}>, "many">>;
|
|
119
125
|
boostingEnabled: z.ZodBoolean;
|
|
126
|
+
specialisedProfileOptions: z.ZodArray<z.ZodString, "many">;
|
|
120
127
|
maximumBoost: z.ZodNullable<z.ZodNumber>;
|
|
121
128
|
biddingHourlyRateStrategy: z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>;
|
|
122
129
|
biddingHourlyRatePercentage: z.ZodNullable<z.ZodNumber>;
|
|
@@ -136,6 +143,7 @@ export declare const agencyBidProposalDataSchema: z.ZodObject<z.objectUtil.exten
|
|
|
136
143
|
answer: string;
|
|
137
144
|
}[] | null;
|
|
138
145
|
boostingEnabled: boolean;
|
|
146
|
+
specialisedProfileOptions: string[];
|
|
139
147
|
maximumBoost: number | null;
|
|
140
148
|
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
141
149
|
biddingHourlyRatePercentage: number | null;
|
|
@@ -154,6 +162,7 @@ export declare const agencyBidProposalDataSchema: z.ZodObject<z.objectUtil.exten
|
|
|
154
162
|
answer: string;
|
|
155
163
|
}[] | null;
|
|
156
164
|
boostingEnabled: boolean;
|
|
165
|
+
specialisedProfileOptions: string[];
|
|
157
166
|
maximumBoost: number | null;
|
|
158
167
|
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
159
168
|
biddingHourlyRatePercentage: number | null;
|
|
@@ -1669,6 +1678,7 @@ export declare const agencyBidPayloadSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
1669
1678
|
answer: string;
|
|
1670
1679
|
}>, "many">>;
|
|
1671
1680
|
boostingEnabled: z.ZodBoolean;
|
|
1681
|
+
specialisedProfileOptions: z.ZodArray<z.ZodString, "many">;
|
|
1672
1682
|
maximumBoost: z.ZodNullable<z.ZodNumber>;
|
|
1673
1683
|
biddingHourlyRateStrategy: z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>;
|
|
1674
1684
|
biddingHourlyRatePercentage: z.ZodNullable<z.ZodNumber>;
|
|
@@ -1688,6 +1698,7 @@ export declare const agencyBidPayloadSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
1688
1698
|
answer: string;
|
|
1689
1699
|
}[] | null;
|
|
1690
1700
|
boostingEnabled: boolean;
|
|
1701
|
+
specialisedProfileOptions: string[];
|
|
1691
1702
|
maximumBoost: number | null;
|
|
1692
1703
|
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
1693
1704
|
biddingHourlyRatePercentage: number | null;
|
|
@@ -1706,6 +1717,7 @@ export declare const agencyBidPayloadSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
1706
1717
|
answer: string;
|
|
1707
1718
|
}[] | null;
|
|
1708
1719
|
boostingEnabled: boolean;
|
|
1720
|
+
specialisedProfileOptions: string[];
|
|
1709
1721
|
maximumBoost: number | null;
|
|
1710
1722
|
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
1711
1723
|
biddingHourlyRatePercentage: number | null;
|
|
@@ -1866,6 +1878,7 @@ export declare const agencyBidPayloadSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
1866
1878
|
answer: string;
|
|
1867
1879
|
}[] | null;
|
|
1868
1880
|
boostingEnabled: boolean;
|
|
1881
|
+
specialisedProfileOptions: string[];
|
|
1869
1882
|
maximumBoost: number | null;
|
|
1870
1883
|
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
1871
1884
|
biddingHourlyRatePercentage: number | null;
|
|
@@ -2026,6 +2039,7 @@ export declare const agencyBidPayloadSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
2026
2039
|
answer: string;
|
|
2027
2040
|
}[] | null;
|
|
2028
2041
|
boostingEnabled: boolean;
|
|
2042
|
+
specialisedProfileOptions: string[];
|
|
2029
2043
|
maximumBoost: number | null;
|
|
2030
2044
|
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
2031
2045
|
biddingHourlyRatePercentage: number | null;
|
|
@@ -2656,6 +2670,7 @@ export declare const freelancerBidPayloadSchema: z.ZodObject<z.objectUtil.extend
|
|
|
2656
2670
|
answer: string;
|
|
2657
2671
|
}>, "many">>;
|
|
2658
2672
|
boostingEnabled: z.ZodBoolean;
|
|
2673
|
+
specialisedProfileOptions: z.ZodArray<z.ZodString, "many">;
|
|
2659
2674
|
maximumBoost: z.ZodNullable<z.ZodNumber>;
|
|
2660
2675
|
biddingHourlyRateStrategy: z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>;
|
|
2661
2676
|
biddingHourlyRatePercentage: z.ZodNullable<z.ZodNumber>;
|
|
@@ -2671,6 +2686,7 @@ export declare const freelancerBidPayloadSchema: z.ZodObject<z.objectUtil.extend
|
|
|
2671
2686
|
answer: string;
|
|
2672
2687
|
}[] | null;
|
|
2673
2688
|
boostingEnabled: boolean;
|
|
2689
|
+
specialisedProfileOptions: string[];
|
|
2674
2690
|
maximumBoost: number | null;
|
|
2675
2691
|
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
2676
2692
|
biddingHourlyRatePercentage: number | null;
|
|
@@ -2686,6 +2702,7 @@ export declare const freelancerBidPayloadSchema: z.ZodObject<z.objectUtil.extend
|
|
|
2686
2702
|
answer: string;
|
|
2687
2703
|
}[] | null;
|
|
2688
2704
|
boostingEnabled: boolean;
|
|
2705
|
+
specialisedProfileOptions: string[];
|
|
2689
2706
|
maximumBoost: number | null;
|
|
2690
2707
|
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
2691
2708
|
biddingHourlyRatePercentage: number | null;
|
|
@@ -2843,6 +2860,7 @@ export declare const freelancerBidPayloadSchema: z.ZodObject<z.objectUtil.extend
|
|
|
2843
2860
|
answer: string;
|
|
2844
2861
|
}[] | null;
|
|
2845
2862
|
boostingEnabled: boolean;
|
|
2863
|
+
specialisedProfileOptions: string[];
|
|
2846
2864
|
maximumBoost: number | null;
|
|
2847
2865
|
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
2848
2866
|
biddingHourlyRatePercentage: number | null;
|
|
@@ -3000,6 +3018,7 @@ export declare const freelancerBidPayloadSchema: z.ZodObject<z.objectUtil.extend
|
|
|
3000
3018
|
answer: string;
|
|
3001
3019
|
}[] | null;
|
|
3002
3020
|
boostingEnabled: boolean;
|
|
3021
|
+
specialisedProfileOptions: string[];
|
|
3003
3022
|
maximumBoost: number | null;
|
|
3004
3023
|
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
3005
3024
|
biddingHourlyRatePercentage: number | null;
|