lancer-shared 1.2.84 → 1.2.86

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.
@@ -12989,6 +12989,12 @@ const updateChatbotSchema = chatbotSchema.pick({
12989
12989
  notificationsEnabled: true,
12990
12990
  notificationSettings: true,
12991
12991
  });
12992
+ const sendNotificationRequestSchema = z.object({
12993
+ organizationId: z.string(),
12994
+ campaignId: z.string(),
12995
+ leadId: z.string(),
12996
+ notificationType: campaignNotificationType,
12997
+ });
12992
12998
  const CAMPAIGN_NOTIFICATION_TYPES = {
12993
12999
  suitableLead: 'Suitable Lead',
12994
13000
  proposalSent: 'Proposal Sent',
@@ -13908,6 +13914,7 @@ exports.selectAgencyException = selectAgencyException;
13908
13914
  exports.selectContractorException = selectContractorException;
13909
13915
  exports.selectorNotFoundError = selectorNotFoundError;
13910
13916
  exports.sendAlertPayloadSchema = sendAlertPayloadSchema;
13917
+ exports.sendNotificationRequestSchema = sendNotificationRequestSchema;
13911
13918
  exports.subscribePayloadSchema = subscribePayloadSchema;
13912
13919
  exports.subscriptionSchema = subscriptionSchema;
13913
13920
  exports.subscriptionSourceEnum = subscriptionSourceEnum;
@@ -121,7 +121,26 @@ export declare const updateChatbotSchema: z.ZodObject<Pick<{
121
121
  notificationSettings: Partial<Record<"suitableLead" | "proposalSent" | "proposalViewed" | "proposalReplied" | "noConnects" | "accountDisconnected", boolean | undefined>>;
122
122
  notificationsEnabled?: boolean | undefined;
123
123
  }>;
124
+ export declare const sendNotificationRequestSchema: z.ZodObject<{
125
+ organizationId: z.ZodString;
126
+ campaignId: z.ZodString;
127
+ leadId: z.ZodString;
128
+ notificationType: z.ZodEnum<["suitableLead", "proposalSent", "proposalViewed", "proposalReplied", "noConnects", "accountDisconnected"]>;
129
+ }, "strip", z.ZodTypeAny, {
130
+ organizationId: string;
131
+ campaignId: string;
132
+ leadId: string;
133
+ notificationType: "suitableLead" | "proposalSent" | "proposalViewed" | "proposalReplied" | "noConnects" | "accountDisconnected";
134
+ }, {
135
+ organizationId: string;
136
+ campaignId: string;
137
+ leadId: string;
138
+ notificationType: "suitableLead" | "proposalSent" | "proposalViewed" | "proposalReplied" | "noConnects" | "accountDisconnected";
139
+ }>;
124
140
  export type CampaignNotificationType = z.infer<typeof campaignNotificationType>;
141
+ export interface SendNotificationRequest extends z.infer<typeof sendNotificationRequestSchema> {
142
+ notificationType: CampaignNotificationType;
143
+ }
125
144
  export declare const CAMPAIGN_NOTIFICATION_TYPES: Record<CampaignNotificationType, string>;
126
145
  export declare const CAMPAIGN_NOTIFICATION_SETTINGS: Record<CampaignNotificationType, string>;
127
146
  export interface ChatbotChannel extends z.infer<typeof chatbotChannelSchema> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lancer-shared",
3
- "version": "1.2.84",
3
+ "version": "1.2.86",
4
4
  "description": "This package contains shared stuff.",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "dist/bundle.cjs.js",