lancer-shared 1.2.95 → 1.2.96

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.
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lancer-shared",
3
- "version": "1.2.95",
3
+ "version": "1.2.96",
4
4
  "description": "This package contains shared stuff.",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "dist/bundle.cjs.js",