lancer-shared 1.2.256 → 1.2.258

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,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- export declare const campaignNotificationType: z.ZodEnum<["suitableLead", "proposalSent", "proposalViewed", "proposalReplied", "noConnects", "accountDisconnected", "biddingWarning", "boostAboveMaxConnects"]>;
2
+ export declare const campaignNotificationType: z.ZodEnum<["suitableLead", "proposalSent", "proposalViewed", "proposalReplied", "noConnects", "accountDisconnected", "biddingWarning", "boostAboveMaxConnects", "jobNoLongerAvailable", "privateJob", "jobAlreadyBiddedOn", "biddingFailed"]>;
3
3
  export declare const chatbotChannelSchema: z.ZodObject<{
4
4
  id: z.ZodString;
5
5
  name: z.ZodString;
@@ -27,7 +27,7 @@ export declare const chatbotSchema: z.ZodObject<{
27
27
  }>, "many">;
28
28
  selectedChannelId: z.ZodNullable<z.ZodString>;
29
29
  notificationsEnabled: z.ZodDefault<z.ZodBoolean>;
30
- notificationSettings: z.ZodRecord<z.ZodEnum<["suitableLead", "proposalSent", "proposalViewed", "proposalReplied", "noConnects", "accountDisconnected", "biddingWarning", "boostAboveMaxConnects"]>, z.ZodDefault<z.ZodBoolean>>;
30
+ notificationSettings: z.ZodRecord<z.ZodEnum<["suitableLead", "proposalSent", "proposalViewed", "proposalReplied", "noConnects", "accountDisconnected", "biddingWarning", "boostAboveMaxConnects", "jobNoLongerAvailable", "privateJob", "jobAlreadyBiddedOn", "biddingFailed"]>, z.ZodDefault<z.ZodBoolean>>;
31
31
  organizationId: z.ZodString;
32
32
  campaignId: z.ZodString;
33
33
  createdAt: z.ZodNumber;
@@ -44,7 +44,7 @@ export declare const chatbotSchema: z.ZodObject<{
44
44
  name: string;
45
45
  }[];
46
46
  selectedChannelId: string | null;
47
- notificationSettings: Partial<Record<"boostAboveMaxConnects" | "suitableLead" | "proposalSent" | "proposalViewed" | "proposalReplied" | "noConnects" | "accountDisconnected" | "biddingWarning", boolean>>;
47
+ notificationSettings: Partial<Record<"biddingFailed" | "boostAboveMaxConnects" | "privateJob" | "suitableLead" | "proposalSent" | "proposalViewed" | "proposalReplied" | "noConnects" | "accountDisconnected" | "biddingWarning" | "jobNoLongerAvailable" | "jobAlreadyBiddedOn", boolean>>;
48
48
  accessToken?: string | undefined;
49
49
  refreshToken?: string | undefined;
50
50
  }, {
@@ -58,7 +58,7 @@ export declare const chatbotSchema: z.ZodObject<{
58
58
  name: string;
59
59
  }[];
60
60
  selectedChannelId: string | null;
61
- notificationSettings: Partial<Record<"boostAboveMaxConnects" | "suitableLead" | "proposalSent" | "proposalViewed" | "proposalReplied" | "noConnects" | "accountDisconnected" | "biddingWarning", boolean | undefined>>;
61
+ notificationSettings: Partial<Record<"biddingFailed" | "boostAboveMaxConnects" | "privateJob" | "suitableLead" | "proposalSent" | "proposalViewed" | "proposalReplied" | "noConnects" | "accountDisconnected" | "biddingWarning" | "jobNoLongerAvailable" | "jobAlreadyBiddedOn", boolean | undefined>>;
62
62
  notificationsEnabled?: boolean | undefined;
63
63
  accessToken?: string | undefined;
64
64
  refreshToken?: string | undefined;
@@ -79,7 +79,7 @@ export declare const createChatbotSchema: z.ZodObject<Pick<{
79
79
  }>, "many">;
80
80
  selectedChannelId: z.ZodNullable<z.ZodString>;
81
81
  notificationsEnabled: z.ZodDefault<z.ZodBoolean>;
82
- notificationSettings: z.ZodRecord<z.ZodEnum<["suitableLead", "proposalSent", "proposalViewed", "proposalReplied", "noConnects", "accountDisconnected", "biddingWarning", "boostAboveMaxConnects"]>, z.ZodDefault<z.ZodBoolean>>;
82
+ notificationSettings: z.ZodRecord<z.ZodEnum<["suitableLead", "proposalSent", "proposalViewed", "proposalReplied", "noConnects", "accountDisconnected", "biddingWarning", "boostAboveMaxConnects", "jobNoLongerAvailable", "privateJob", "jobAlreadyBiddedOn", "biddingFailed"]>, z.ZodDefault<z.ZodBoolean>>;
83
83
  organizationId: z.ZodString;
84
84
  campaignId: z.ZodString;
85
85
  createdAt: z.ZodNumber;
@@ -121,7 +121,7 @@ export declare const updateChatbotSchema: z.ZodObject<Pick<{
121
121
  }>, "many">;
122
122
  selectedChannelId: z.ZodNullable<z.ZodString>;
123
123
  notificationsEnabled: z.ZodDefault<z.ZodBoolean>;
124
- notificationSettings: z.ZodRecord<z.ZodEnum<["suitableLead", "proposalSent", "proposalViewed", "proposalReplied", "noConnects", "accountDisconnected", "biddingWarning", "boostAboveMaxConnects"]>, z.ZodDefault<z.ZodBoolean>>;
124
+ notificationSettings: z.ZodRecord<z.ZodEnum<["suitableLead", "proposalSent", "proposalViewed", "proposalReplied", "noConnects", "accountDisconnected", "biddingWarning", "boostAboveMaxConnects", "jobNoLongerAvailable", "privateJob", "jobAlreadyBiddedOn", "biddingFailed"]>, z.ZodDefault<z.ZodBoolean>>;
125
125
  organizationId: z.ZodString;
126
126
  campaignId: z.ZodString;
127
127
  createdAt: z.ZodNumber;
@@ -129,31 +129,31 @@ export declare const updateChatbotSchema: z.ZodObject<Pick<{
129
129
  }, "notificationsEnabled" | "selectedChannelId" | "notificationSettings">, "strip", z.ZodTypeAny, {
130
130
  notificationsEnabled: boolean;
131
131
  selectedChannelId: string | null;
132
- notificationSettings: Partial<Record<"boostAboveMaxConnects" | "suitableLead" | "proposalSent" | "proposalViewed" | "proposalReplied" | "noConnects" | "accountDisconnected" | "biddingWarning", boolean>>;
132
+ notificationSettings: Partial<Record<"biddingFailed" | "boostAboveMaxConnects" | "privateJob" | "suitableLead" | "proposalSent" | "proposalViewed" | "proposalReplied" | "noConnects" | "accountDisconnected" | "biddingWarning" | "jobNoLongerAvailable" | "jobAlreadyBiddedOn", boolean>>;
133
133
  }, {
134
134
  selectedChannelId: string | null;
135
- notificationSettings: Partial<Record<"boostAboveMaxConnects" | "suitableLead" | "proposalSent" | "proposalViewed" | "proposalReplied" | "noConnects" | "accountDisconnected" | "biddingWarning", boolean | undefined>>;
135
+ notificationSettings: Partial<Record<"biddingFailed" | "boostAboveMaxConnects" | "privateJob" | "suitableLead" | "proposalSent" | "proposalViewed" | "proposalReplied" | "noConnects" | "accountDisconnected" | "biddingWarning" | "jobNoLongerAvailable" | "jobAlreadyBiddedOn", boolean | undefined>>;
136
136
  notificationsEnabled?: boolean | undefined;
137
137
  }>;
138
138
  export declare const sendNotificationRequestSchema: z.ZodObject<{
139
139
  organizationId: z.ZodString;
140
140
  campaignId: z.ZodString;
141
141
  leadId: z.ZodString;
142
- notificationType: z.ZodEnum<["suitableLead", "proposalSent", "proposalViewed", "proposalReplied", "noConnects", "accountDisconnected", "biddingWarning", "boostAboveMaxConnects"]>;
142
+ notificationType: z.ZodEnum<["suitableLead", "proposalSent", "proposalViewed", "proposalReplied", "noConnects", "accountDisconnected", "biddingWarning", "boostAboveMaxConnects", "jobNoLongerAvailable", "privateJob", "jobAlreadyBiddedOn", "biddingFailed"]>;
143
143
  message: z.ZodOptional<z.ZodString>;
144
144
  isSleepModeActive: z.ZodOptional<z.ZodBoolean>;
145
145
  }, "strip", z.ZodTypeAny, {
146
146
  campaignId: string;
147
147
  organizationId: string;
148
148
  leadId: string;
149
- notificationType: "boostAboveMaxConnects" | "suitableLead" | "proposalSent" | "proposalViewed" | "proposalReplied" | "noConnects" | "accountDisconnected" | "biddingWarning";
149
+ notificationType: "biddingFailed" | "boostAboveMaxConnects" | "privateJob" | "suitableLead" | "proposalSent" | "proposalViewed" | "proposalReplied" | "noConnects" | "accountDisconnected" | "biddingWarning" | "jobNoLongerAvailable" | "jobAlreadyBiddedOn";
150
150
  message?: string | undefined;
151
151
  isSleepModeActive?: boolean | undefined;
152
152
  }, {
153
153
  campaignId: string;
154
154
  organizationId: string;
155
155
  leadId: string;
156
- notificationType: "boostAboveMaxConnects" | "suitableLead" | "proposalSent" | "proposalViewed" | "proposalReplied" | "noConnects" | "accountDisconnected" | "biddingWarning";
156
+ notificationType: "biddingFailed" | "boostAboveMaxConnects" | "privateJob" | "suitableLead" | "proposalSent" | "proposalViewed" | "proposalReplied" | "noConnects" | "accountDisconnected" | "biddingWarning" | "jobNoLongerAvailable" | "jobAlreadyBiddedOn";
157
157
  message?: string | undefined;
158
158
  isSleepModeActive?: boolean | undefined;
159
159
  }>;
@@ -55,16 +55,16 @@ export declare const createSampleSchema: z.ZodObject<{
55
55
  }>;
56
56
  export declare const getSamplesRequestSchema: z.ZodObject<{
57
57
  organizationId: z.ZodString;
58
- campaignId: z.ZodString;
58
+ campaignId: z.ZodOptional<z.ZodString>;
59
59
  leadIds: z.ZodArray<z.ZodString, "many">;
60
60
  }, "strip", z.ZodTypeAny, {
61
- campaignId: string;
62
61
  organizationId: string;
63
62
  leadIds: string[];
63
+ campaignId?: string | undefined;
64
64
  }, {
65
- campaignId: string;
66
65
  organizationId: string;
67
66
  leadIds: string[];
67
+ campaignId?: string | undefined;
68
68
  }>;
69
69
  export declare const updateSampleSchema: z.ZodObject<{
70
70
  label: z.ZodEnum<["suitable", "unsuitable"]>;
@@ -3185,13 +3185,16 @@ export declare const getCampaignLeadsRequestQuerySchema: z.ZodObject<{
3185
3185
  cursor: z.ZodOptional<z.ZodString>;
3186
3186
  limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
3187
3187
  status: z.ZodOptional<z.ZodEnum<["all", "suitable", "contacted", "viewed", "replied"]>>;
3188
+ campaignId: z.ZodOptional<z.ZodString>;
3188
3189
  }, "strip", z.ZodTypeAny, {
3189
3190
  cursor?: string | undefined;
3190
3191
  status?: "all" | "contacted" | "viewed" | "replied" | "suitable" | undefined;
3192
+ campaignId?: string | undefined;
3191
3193
  limit?: number | undefined;
3192
3194
  }, {
3193
3195
  cursor?: string | undefined;
3194
3196
  status?: "all" | "contacted" | "viewed" | "replied" | "suitable" | undefined;
3197
+ campaignId?: string | undefined;
3195
3198
  limit?: number | undefined;
3196
3199
  }>;
3197
3200
  export declare const getCampaignLeadsResponseSchema: z.ZodObject<{
@@ -4128,6 +4131,7 @@ export interface Lead extends z.infer<typeof leadSchema> {
4128
4131
  questionAnswerPairs: QuestionAnswerPair[] | null;
4129
4132
  agentStatus: LeadAgentStatus | null;
4130
4133
  leadStatus: LeadStatus | null;
4134
+ campaignName: string | null;
4131
4135
  }
4132
4136
  export type LeadResponse = z.infer<typeof leadResponseSchema>;
4133
4137
  export type FindLeadsRequest = z.infer<typeof findLeadsRequestSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lancer-shared",
3
- "version": "1.2.256",
3
+ "version": "1.2.258",
4
4
  "description": "This package contains shared stuff.",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "dist/bundle.cjs.js",