lancer-shared 1.2.105 → 1.2.106

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.
@@ -12997,6 +12997,7 @@ const campaignNotificationType = z.enum([
12997
12997
  'proposalReplied',
12998
12998
  'noConnects',
12999
12999
  'accountDisconnected',
13000
+ 'biddingWarning',
13000
13001
  ]);
13001
13002
  const chatbotChannelSchema = z.object({
13002
13003
  id: z.string(),
@@ -13030,6 +13031,7 @@ const sendNotificationRequestSchema = z.object({
13030
13031
  campaignId: z.string(),
13031
13032
  leadId: z.string(),
13032
13033
  notificationType: campaignNotificationType,
13034
+ message: z.string().optional(),
13033
13035
  });
13034
13036
  const CAMPAIGN_NOTIFICATION_TYPES = {
13035
13037
  suitableLead: 'Suitable Lead',
@@ -13038,6 +13040,7 @@ const CAMPAIGN_NOTIFICATION_TYPES = {
13038
13040
  proposalReplied: 'Proposal Replied',
13039
13041
  noConnects: 'No Connects',
13040
13042
  accountDisconnected: 'Account Disconnected',
13043
+ biddingWarning: 'Bidding Warning',
13041
13044
  };
13042
13045
  const CAMPAIGN_NOTIFICATION_SETTINGS = {
13043
13046
  suitableLead: 'When Lancer determines a job is suitable for your company',
@@ -13046,6 +13049,7 @@ const CAMPAIGN_NOTIFICATION_SETTINGS = {
13046
13049
  proposalReplied: 'When a client replies to your proposal',
13047
13050
  noConnects: 'When your Agency profile has run out of Upwork connects',
13048
13051
  accountDisconnected: 'When there is an issue with your Upwork Bidder account',
13052
+ biddingWarning: 'When there is a bidding warning',
13049
13053
  };
13050
13054
 
13051
13055
  const campaignCountByStatusSchema = z.object({
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- export declare const campaignNotificationType: z.ZodEnum<["suitableLead", "proposalSent", "proposalViewed", "proposalReplied", "noConnects", "accountDisconnected"]>;
2
+ export declare const campaignNotificationType: z.ZodEnum<["suitableLead", "proposalSent", "proposalViewed", "proposalReplied", "noConnects", "accountDisconnected", "biddingWarning"]>;
3
3
  export declare const chatbotChannelSchema: z.ZodObject<{
4
4
  id: z.ZodString;
5
5
  name: z.ZodString;
@@ -25,7 +25,7 @@ export declare const chatbotSchema: z.ZodObject<{
25
25
  }>, "many">;
26
26
  selectedChannelId: z.ZodNullable<z.ZodString>;
27
27
  notificationsEnabled: z.ZodDefault<z.ZodBoolean>;
28
- notificationSettings: z.ZodRecord<z.ZodEnum<["suitableLead", "proposalSent", "proposalViewed", "proposalReplied", "noConnects", "accountDisconnected"]>, z.ZodDefault<z.ZodBoolean>>;
28
+ notificationSettings: z.ZodRecord<z.ZodEnum<["suitableLead", "proposalSent", "proposalViewed", "proposalReplied", "noConnects", "accountDisconnected", "biddingWarning"]>, z.ZodDefault<z.ZodBoolean>>;
29
29
  organizationId: z.ZodString;
30
30
  campaignId: z.ZodString;
31
31
  createdAt: z.ZodNumber;
@@ -38,7 +38,7 @@ export declare const chatbotSchema: z.ZodObject<{
38
38
  }[];
39
39
  selectedChannelId: string | null;
40
40
  notificationsEnabled: boolean;
41
- notificationSettings: Partial<Record<"suitableLead" | "proposalSent" | "proposalViewed" | "proposalReplied" | "noConnects" | "accountDisconnected", boolean>>;
41
+ notificationSettings: Partial<Record<"suitableLead" | "proposalSent" | "proposalViewed" | "proposalReplied" | "noConnects" | "accountDisconnected" | "biddingWarning", boolean>>;
42
42
  organizationId: string;
43
43
  campaignId: string;
44
44
  createdAt: number;
@@ -50,7 +50,7 @@ export declare const chatbotSchema: z.ZodObject<{
50
50
  name: string;
51
51
  }[];
52
52
  selectedChannelId: string | null;
53
- notificationSettings: Partial<Record<"suitableLead" | "proposalSent" | "proposalViewed" | "proposalReplied" | "noConnects" | "accountDisconnected", boolean | undefined>>;
53
+ notificationSettings: Partial<Record<"suitableLead" | "proposalSent" | "proposalViewed" | "proposalReplied" | "noConnects" | "accountDisconnected" | "biddingWarning", boolean | undefined>>;
54
54
  organizationId: string;
55
55
  campaignId: string;
56
56
  createdAt: number;
@@ -71,7 +71,7 @@ export declare const createChatbotSchema: z.ZodObject<Pick<{
71
71
  }>, "many">;
72
72
  selectedChannelId: z.ZodNullable<z.ZodString>;
73
73
  notificationsEnabled: z.ZodDefault<z.ZodBoolean>;
74
- notificationSettings: z.ZodRecord<z.ZodEnum<["suitableLead", "proposalSent", "proposalViewed", "proposalReplied", "noConnects", "accountDisconnected"]>, z.ZodDefault<z.ZodBoolean>>;
74
+ notificationSettings: z.ZodRecord<z.ZodEnum<["suitableLead", "proposalSent", "proposalViewed", "proposalReplied", "noConnects", "accountDisconnected", "biddingWarning"]>, z.ZodDefault<z.ZodBoolean>>;
75
75
  organizationId: z.ZodString;
76
76
  campaignId: z.ZodString;
77
77
  createdAt: z.ZodNumber;
@@ -107,7 +107,7 @@ export declare const updateChatbotSchema: z.ZodObject<Pick<{
107
107
  }>, "many">;
108
108
  selectedChannelId: z.ZodNullable<z.ZodString>;
109
109
  notificationsEnabled: z.ZodDefault<z.ZodBoolean>;
110
- notificationSettings: z.ZodRecord<z.ZodEnum<["suitableLead", "proposalSent", "proposalViewed", "proposalReplied", "noConnects", "accountDisconnected"]>, z.ZodDefault<z.ZodBoolean>>;
110
+ notificationSettings: z.ZodRecord<z.ZodEnum<["suitableLead", "proposalSent", "proposalViewed", "proposalReplied", "noConnects", "accountDisconnected", "biddingWarning"]>, z.ZodDefault<z.ZodBoolean>>;
111
111
  organizationId: z.ZodString;
112
112
  campaignId: z.ZodString;
113
113
  createdAt: z.ZodNumber;
@@ -115,27 +115,30 @@ export declare const updateChatbotSchema: z.ZodObject<Pick<{
115
115
  }, "selectedChannelId" | "notificationsEnabled" | "notificationSettings">, "strip", z.ZodTypeAny, {
116
116
  selectedChannelId: string | null;
117
117
  notificationsEnabled: boolean;
118
- notificationSettings: Partial<Record<"suitableLead" | "proposalSent" | "proposalViewed" | "proposalReplied" | "noConnects" | "accountDisconnected", boolean>>;
118
+ notificationSettings: Partial<Record<"suitableLead" | "proposalSent" | "proposalViewed" | "proposalReplied" | "noConnects" | "accountDisconnected" | "biddingWarning", boolean>>;
119
119
  }, {
120
120
  selectedChannelId: string | null;
121
- notificationSettings: Partial<Record<"suitableLead" | "proposalSent" | "proposalViewed" | "proposalReplied" | "noConnects" | "accountDisconnected", boolean | undefined>>;
121
+ notificationSettings: Partial<Record<"suitableLead" | "proposalSent" | "proposalViewed" | "proposalReplied" | "noConnects" | "accountDisconnected" | "biddingWarning", boolean | undefined>>;
122
122
  notificationsEnabled?: boolean | undefined;
123
123
  }>;
124
124
  export declare const sendNotificationRequestSchema: z.ZodObject<{
125
125
  organizationId: z.ZodString;
126
126
  campaignId: z.ZodString;
127
127
  leadId: z.ZodString;
128
- notificationType: z.ZodEnum<["suitableLead", "proposalSent", "proposalViewed", "proposalReplied", "noConnects", "accountDisconnected"]>;
128
+ notificationType: z.ZodEnum<["suitableLead", "proposalSent", "proposalViewed", "proposalReplied", "noConnects", "accountDisconnected", "biddingWarning"]>;
129
+ message: z.ZodOptional<z.ZodString>;
129
130
  }, "strip", z.ZodTypeAny, {
130
131
  organizationId: string;
131
132
  campaignId: string;
132
133
  leadId: string;
133
- notificationType: "suitableLead" | "proposalSent" | "proposalViewed" | "proposalReplied" | "noConnects" | "accountDisconnected";
134
+ notificationType: "suitableLead" | "proposalSent" | "proposalViewed" | "proposalReplied" | "noConnects" | "accountDisconnected" | "biddingWarning";
135
+ message?: string | undefined;
134
136
  }, {
135
137
  organizationId: string;
136
138
  campaignId: string;
137
139
  leadId: string;
138
- notificationType: "suitableLead" | "proposalSent" | "proposalViewed" | "proposalReplied" | "noConnects" | "accountDisconnected";
140
+ notificationType: "suitableLead" | "proposalSent" | "proposalViewed" | "proposalReplied" | "noConnects" | "accountDisconnected" | "biddingWarning";
141
+ message?: string | undefined;
139
142
  }>;
140
143
  export type CampaignNotificationType = z.infer<typeof campaignNotificationType>;
141
144
  export interface SendNotificationRequest extends z.infer<typeof sendNotificationRequestSchema> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lancer-shared",
3
- "version": "1.2.105",
3
+ "version": "1.2.106",
4
4
  "description": "This package contains shared stuff.",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "dist/bundle.cjs.js",