lancer-shared 1.2.59 → 1.2.60
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
|
@@ -12070,6 +12070,11 @@ const generateLeadCountsRequestSchema = z.object({
|
|
|
12070
12070
|
campaignId: z.string().optional(),
|
|
12071
12071
|
});
|
|
12072
12072
|
|
|
12073
|
+
const proposalSchema = z.object({
|
|
12074
|
+
coverLetter: z.string(),
|
|
12075
|
+
questionAnswerPairs: questionAnswerPairSchema.array(),
|
|
12076
|
+
});
|
|
12077
|
+
|
|
12073
12078
|
const LogEventTypeEnum = z.enum([
|
|
12074
12079
|
// Scraper Events
|
|
12075
12080
|
"scraperStarted",
|
|
@@ -12419,10 +12424,6 @@ const suitabilityRatingSchema = z.object({
|
|
|
12419
12424
|
rating: z.number(),
|
|
12420
12425
|
reason: z.string(),
|
|
12421
12426
|
});
|
|
12422
|
-
const proposalSchema = z.object({
|
|
12423
|
-
coverLetter: z.string(),
|
|
12424
|
-
questionAnswerPairs: questionAnswerPairSchema.array(),
|
|
12425
|
-
});
|
|
12426
12427
|
const agentTaskResponseSchema = z.object({
|
|
12427
12428
|
result: z.union([suitabilityRatingSchema, proposalSchema]),
|
|
12428
12429
|
model: z.string(),
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import { proposalSchema } from "./proposal";
|
|
2
3
|
export declare const agentTaskRequestSchema: z.ZodObject<{
|
|
3
4
|
userId: z.ZodNullable<z.ZodString>;
|
|
4
5
|
organizationId: z.ZodString;
|
|
@@ -1775,31 +1776,8 @@ export declare const suitabilityRatingSchema: z.ZodObject<{
|
|
|
1775
1776
|
rating: number;
|
|
1776
1777
|
reason: string;
|
|
1777
1778
|
}>;
|
|
1778
|
-
export
|
|
1779
|
-
|
|
1780
|
-
questionAnswerPairs: z.ZodArray<z.ZodObject<{
|
|
1781
|
-
question: z.ZodString;
|
|
1782
|
-
answer: z.ZodString;
|
|
1783
|
-
}, "strip", z.ZodTypeAny, {
|
|
1784
|
-
question: string;
|
|
1785
|
-
answer: string;
|
|
1786
|
-
}, {
|
|
1787
|
-
question: string;
|
|
1788
|
-
answer: string;
|
|
1789
|
-
}>, "many">;
|
|
1790
|
-
}, "strip", z.ZodTypeAny, {
|
|
1791
|
-
questionAnswerPairs: {
|
|
1792
|
-
question: string;
|
|
1793
|
-
answer: string;
|
|
1794
|
-
}[];
|
|
1795
|
-
coverLetter: string;
|
|
1796
|
-
}, {
|
|
1797
|
-
questionAnswerPairs: {
|
|
1798
|
-
question: string;
|
|
1799
|
-
answer: string;
|
|
1800
|
-
}[];
|
|
1801
|
-
coverLetter: string;
|
|
1802
|
-
}>;
|
|
1779
|
+
export { proposalSchema };
|
|
1780
|
+
export type Proposal = z.infer<typeof proposalSchema>;
|
|
1803
1781
|
export declare const agentTaskResponseSchema: z.ZodObject<{
|
|
1804
1782
|
result: z.ZodUnion<[z.ZodObject<{
|
|
1805
1783
|
rating: z.ZodNumber;
|
|
@@ -2012,4 +1990,3 @@ export declare const testSystemPromptsResponseSchema: z.ZodObject<{
|
|
|
2012
1990
|
export type TestSystemPromptsResponse = z.infer<typeof testSystemPromptsResponseSchema>;
|
|
2013
1991
|
export type AgentTaskResponse = z.infer<typeof agentTaskResponseSchema>;
|
|
2014
1992
|
export type SuitabilityRating = z.infer<typeof suitabilityRatingSchema>;
|
|
2015
|
-
export type Proposal = z.infer<typeof proposalSchema>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const proposalSchema: z.ZodObject<{
|
|
3
|
+
coverLetter: z.ZodString;
|
|
4
|
+
questionAnswerPairs: z.ZodArray<z.ZodObject<{
|
|
5
|
+
question: z.ZodString;
|
|
6
|
+
answer: z.ZodString;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
question: string;
|
|
9
|
+
answer: string;
|
|
10
|
+
}, {
|
|
11
|
+
question: string;
|
|
12
|
+
answer: string;
|
|
13
|
+
}>, "many">;
|
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
coverLetter: string;
|
|
16
|
+
questionAnswerPairs: {
|
|
17
|
+
question: string;
|
|
18
|
+
answer: string;
|
|
19
|
+
}[];
|
|
20
|
+
}, {
|
|
21
|
+
coverLetter: string;
|
|
22
|
+
questionAnswerPairs: {
|
|
23
|
+
question: string;
|
|
24
|
+
answer: string;
|
|
25
|
+
}[];
|
|
26
|
+
}>;
|
|
27
|
+
export type Proposal = z.infer<typeof proposalSchema>;
|