lancer-shared 1.2.95 → 1.2.97

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.
@@ -13249,6 +13249,8 @@ const upworkProfileSchema = objectType({
13249
13249
  const systemPromptSchema = objectType({
13250
13250
  suitability: stringType(),
13251
13251
  proposal: stringType(),
13252
+ proposalQuestions: stringType(),
13253
+ proposalNoQuestions: stringType(),
13252
13254
  questionHandlingGuidelines: stringType(),
13253
13255
  });
13254
13256
  const systemSchema = objectType({
@@ -1,4 +1,5 @@
1
1
  import { z } from "zod";
2
+ import { Lead } from "../lead";
2
3
  import { proposalSchema } from "./proposal";
3
4
  export declare const agentTaskRequestSchema: z.ZodObject<{
4
5
  userId: z.ZodNullable<z.ZodString>;
@@ -329,8 +330,9 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
329
330
  biddingTaskScheduled: z.ZodNullable<z.ZodBoolean>;
330
331
  scheduledBiddingTime: z.ZodNullable<z.ZodNumber>;
331
332
  wonAmount: z.ZodOptional<z.ZodNumber>;
332
- biddingTaskId: z.ZodNullable<z.ZodString>;
333
- doNotApplyReason: z.ZodNullable<z.ZodString>;
333
+ feedbackCheckTaskId: z.ZodNullable<z.ZodString>;
334
+ bidDecision: z.ZodNullable<z.ZodEnum<["proceeded", "rejected"]>>;
335
+ rejectedFeedback: z.ZodNullable<z.ZodString>;
334
336
  }>, "processed">, "strip", z.ZodTypeAny, {
335
337
  organizationId: string;
336
338
  campaignId: string;
@@ -440,8 +442,9 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
440
442
  boostingAmount: number | null;
441
443
  biddingTaskScheduled: boolean | null;
442
444
  scheduledBiddingTime: number | null;
443
- biddingTaskId: string | null;
444
- doNotApplyReason: string | null;
445
+ feedbackCheckTaskId: string | null;
446
+ bidDecision: "proceeded" | "rejected" | null;
447
+ rejectedFeedback: string | null;
445
448
  activity?: Partial<Record<"4h" | "24h", {
446
449
  proposals: {
447
450
  min: number | null;
@@ -573,8 +576,9 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
573
576
  boostingAmount: number | null;
574
577
  biddingTaskScheduled: boolean | null;
575
578
  scheduledBiddingTime: number | null;
576
- biddingTaskId: string | null;
577
- doNotApplyReason: string | null;
579
+ feedbackCheckTaskId: string | null;
580
+ bidDecision: "proceeded" | "rejected" | null;
581
+ rejectedFeedback: string | null;
578
582
  activity?: Partial<Record<"4h" | "24h", {
579
583
  proposals: {
580
584
  min: number | null;
@@ -722,8 +726,9 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
722
726
  boostingAmount: number | null;
723
727
  biddingTaskScheduled: boolean | null;
724
728
  scheduledBiddingTime: number | null;
725
- biddingTaskId: string | null;
726
- doNotApplyReason: string | null;
729
+ feedbackCheckTaskId: string | null;
730
+ bidDecision: "proceeded" | "rejected" | null;
731
+ rejectedFeedback: string | null;
727
732
  activity?: Partial<Record<"4h" | "24h", {
728
733
  proposals: {
729
734
  min: number | null;
@@ -865,8 +870,9 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
865
870
  boostingAmount: number | null;
866
871
  biddingTaskScheduled: boolean | null;
867
872
  scheduledBiddingTime: number | null;
868
- biddingTaskId: string | null;
869
- doNotApplyReason: string | null;
873
+ feedbackCheckTaskId: string | null;
874
+ bidDecision: "proceeded" | "rejected" | null;
875
+ rejectedFeedback: string | null;
870
876
  activity?: Partial<Record<"4h" | "24h", {
871
877
  proposals: {
872
878
  min: number | null;
@@ -896,7 +902,9 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
896
902
  leadId: string;
897
903
  }[] | undefined;
898
904
  }>;
899
- export type AgentTaskRequest = z.infer<typeof agentTaskRequestSchema>;
905
+ export interface AgentTaskRequest extends z.infer<typeof agentTaskRequestSchema> {
906
+ lead: Lead;
907
+ }
900
908
  export declare const suitabilityRatingSchema: z.ZodObject<{
901
909
  rating: z.ZodNumber;
902
910
  reason: z.ZodString;
@@ -2,40 +2,56 @@ import { infer } from "zod";
2
2
  export declare const systemPromptSchema: import("zod").ZodObject<{
3
3
  suitability: import("zod").ZodString;
4
4
  proposal: import("zod").ZodString;
5
+ proposalQuestions: import("zod").ZodString;
6
+ proposalNoQuestions: import("zod").ZodString;
5
7
  questionHandlingGuidelines: import("zod").ZodString;
6
8
  }, "strip", import("zod").ZodTypeAny, {
7
9
  suitability: string;
8
10
  proposal: string;
11
+ proposalQuestions: string;
12
+ proposalNoQuestions: string;
9
13
  questionHandlingGuidelines: string;
10
14
  }, {
11
15
  suitability: string;
12
16
  proposal: string;
17
+ proposalQuestions: string;
18
+ proposalNoQuestions: string;
13
19
  questionHandlingGuidelines: string;
14
20
  }>;
15
21
  export declare const systemSchema: import("zod").ZodObject<{
16
22
  prompts: import("zod").ZodObject<{
17
23
  suitability: import("zod").ZodString;
18
24
  proposal: import("zod").ZodString;
25
+ proposalQuestions: import("zod").ZodString;
26
+ proposalNoQuestions: import("zod").ZodString;
19
27
  questionHandlingGuidelines: import("zod").ZodString;
20
28
  }, "strip", import("zod").ZodTypeAny, {
21
29
  suitability: string;
22
30
  proposal: string;
31
+ proposalQuestions: string;
32
+ proposalNoQuestions: string;
23
33
  questionHandlingGuidelines: string;
24
34
  }, {
25
35
  suitability: string;
26
36
  proposal: string;
37
+ proposalQuestions: string;
38
+ proposalNoQuestions: string;
27
39
  questionHandlingGuidelines: string;
28
40
  }>;
29
41
  }, "strip", import("zod").ZodTypeAny, {
30
42
  prompts: {
31
43
  suitability: string;
32
44
  proposal: string;
45
+ proposalQuestions: string;
46
+ proposalNoQuestions: string;
33
47
  questionHandlingGuidelines: string;
34
48
  };
35
49
  }, {
36
50
  prompts: {
37
51
  suitability: string;
38
52
  proposal: string;
53
+ proposalQuestions: string;
54
+ proposalNoQuestions: string;
39
55
  questionHandlingGuidelines: string;
40
56
  };
41
57
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lancer-shared",
3
- "version": "1.2.95",
3
+ "version": "1.2.97",
4
4
  "description": "This package contains shared stuff.",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "dist/bundle.cjs.js",