lancer-shared 1.2.94 → 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;
@@ -1,5 +1,6 @@
1
1
  import { infer } from "zod";
2
2
  import { BidderAccount } from "../account";
3
+ import { Campaign } from "../campaign";
3
4
  import { Lead } from "../lead";
4
5
  export declare const scrapePayloadSchema: import("zod").ZodObject<{
5
6
  latestJobsUrls: import("zod").ZodArray<import("zod").ZodString, "many">;
@@ -197,11 +198,11 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
197
198
  projectDuration: import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodEnum<["Less than 1 month", "1 to 3 months", "3 to 6 months", "More than 6 months", "Unspecified"]>, "many">>;
198
199
  experienceLevel: import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodEnum<["Entry level", "Intermediate", "Expert"]>, "many">>;
199
200
  questions: import("zod").ZodNullable<import("zod").ZodObject<{
200
- hasQuestions: import("zod").ZodDefault<import("zod").ZodEnum<["all", "yes", "no"]>>;
201
+ hasQuestions: import("zod").ZodArray<import("zod").ZodEnum<["all", "yes", "no"]>, "many">;
201
202
  }, "strip", import("zod").ZodTypeAny, {
202
- hasQuestions: "all" | "yes" | "no";
203
+ hasQuestions: ("all" | "yes" | "no")[];
203
204
  }, {
204
- hasQuestions?: "all" | "yes" | "no" | undefined;
205
+ hasQuestions: ("all" | "yes" | "no")[];
205
206
  }>>;
206
207
  engagementType: import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodEnum<["Less than 30 hrs/week", "More than 30 hrs/week", "Unspecified"]>, "many">>;
207
208
  clientInfo: import("zod").ZodNullable<import("zod").ZodObject<{
@@ -299,7 +300,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
299
300
  projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
300
301
  experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
301
302
  questions: {
302
- hasQuestions: "all" | "yes" | "no";
303
+ hasQuestions: ("all" | "yes" | "no")[];
303
304
  } | null;
304
305
  engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
305
306
  clientInfo: {
@@ -349,7 +350,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
349
350
  projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
350
351
  experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
351
352
  questions: {
352
- hasQuestions?: "all" | "yes" | "no" | undefined;
353
+ hasQuestions: ("all" | "yes" | "no")[];
353
354
  } | null;
354
355
  engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
355
356
  clientInfo: {
@@ -444,7 +445,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
444
445
  projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
445
446
  experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
446
447
  questions: {
447
- hasQuestions: "all" | "yes" | "no";
448
+ hasQuestions: ("all" | "yes" | "no")[];
448
449
  } | null;
449
450
  engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
450
451
  clientInfo: {
@@ -521,7 +522,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
521
522
  projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
522
523
  experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
523
524
  questions: {
524
- hasQuestions?: "all" | "yes" | "no" | undefined;
525
+ hasQuestions: ("all" | "yes" | "no")[];
525
526
  } | null;
526
527
  engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
527
528
  clientInfo: {
@@ -1159,8 +1160,9 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1159
1160
  biddingTaskScheduled: import("zod").ZodNullable<import("zod").ZodBoolean>;
1160
1161
  scheduledBiddingTime: import("zod").ZodNullable<import("zod").ZodNumber>;
1161
1162
  wonAmount: import("zod").ZodOptional<import("zod").ZodNumber>;
1162
- biddingTaskId: import("zod").ZodNullable<import("zod").ZodString>;
1163
- doNotApplyReason: import("zod").ZodNullable<import("zod").ZodString>;
1163
+ feedbackCheckTaskId: import("zod").ZodNullable<import("zod").ZodString>;
1164
+ bidDecision: import("zod").ZodNullable<import("zod").ZodEnum<["proceeded", "rejected"]>>;
1165
+ rejectedFeedback: import("zod").ZodNullable<import("zod").ZodString>;
1164
1166
  }>, "processed">, "strip", import("zod").ZodTypeAny, {
1165
1167
  uid: string | null;
1166
1168
  title: string | null;
@@ -1270,8 +1272,9 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1270
1272
  leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | null;
1271
1273
  biddingTaskScheduled: boolean | null;
1272
1274
  scheduledBiddingTime: number | null;
1273
- biddingTaskId: string | null;
1274
- doNotApplyReason: string | null;
1275
+ feedbackCheckTaskId: string | null;
1276
+ bidDecision: "proceeded" | "rejected" | null;
1277
+ rejectedFeedback: string | null;
1275
1278
  activity?: Partial<Record<"4h" | "24h", {
1276
1279
  updatedAt: number | null;
1277
1280
  proposals: {
@@ -1403,8 +1406,9 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1403
1406
  leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | null;
1404
1407
  biddingTaskScheduled: boolean | null;
1405
1408
  scheduledBiddingTime: number | null;
1406
- biddingTaskId: string | null;
1407
- doNotApplyReason: string | null;
1409
+ feedbackCheckTaskId: string | null;
1410
+ bidDecision: "proceeded" | "rejected" | null;
1411
+ rejectedFeedback: string | null;
1408
1412
  activity?: Partial<Record<"4h" | "24h", {
1409
1413
  updatedAt: number | null;
1410
1414
  proposals: {
@@ -1529,7 +1533,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1529
1533
  projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
1530
1534
  experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
1531
1535
  questions: {
1532
- hasQuestions: "all" | "yes" | "no";
1536
+ hasQuestions: ("all" | "yes" | "no")[];
1533
1537
  } | null;
1534
1538
  engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
1535
1539
  clientInfo: {
@@ -1739,8 +1743,9 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1739
1743
  leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | null;
1740
1744
  biddingTaskScheduled: boolean | null;
1741
1745
  scheduledBiddingTime: number | null;
1742
- biddingTaskId: string | null;
1743
- doNotApplyReason: string | null;
1746
+ feedbackCheckTaskId: string | null;
1747
+ bidDecision: "proceeded" | "rejected" | null;
1748
+ rejectedFeedback: string | null;
1744
1749
  activity?: Partial<Record<"4h" | "24h", {
1745
1750
  updatedAt: number | null;
1746
1751
  proposals: {
@@ -1813,7 +1818,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1813
1818
  projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
1814
1819
  experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
1815
1820
  questions: {
1816
- hasQuestions?: "all" | "yes" | "no" | undefined;
1821
+ hasQuestions: ("all" | "yes" | "no")[];
1817
1822
  } | null;
1818
1823
  engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
1819
1824
  clientInfo: {
@@ -2023,8 +2028,9 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
2023
2028
  leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | null;
2024
2029
  biddingTaskScheduled: boolean | null;
2025
2030
  scheduledBiddingTime: number | null;
2026
- biddingTaskId: string | null;
2027
- doNotApplyReason: string | null;
2031
+ feedbackCheckTaskId: string | null;
2032
+ bidDecision: "proceeded" | "rejected" | null;
2033
+ rejectedFeedback: string | null;
2028
2034
  activity?: Partial<Record<"4h" | "24h", {
2029
2035
  updatedAt: number | null;
2030
2036
  proposals: {
@@ -2083,6 +2089,7 @@ export interface ProcessFeedPayload extends infer<typeof processFeedPayloadSchem
2083
2089
  export interface ScrapeJobActivityPayload extends infer<typeof scrapeJobActivityPayloadSchema> {
2084
2090
  }
2085
2091
  export interface CheckLeadStatusPayload extends infer<typeof checkLeadStatusPayloadSchema> {
2092
+ campaign: Campaign;
2086
2093
  bidder: BidderAccount;
2087
2094
  lead: Lead;
2088
2095
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lancer-shared",
3
- "version": "1.2.94",
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",