lancer-shared 1.2.46 → 1.2.48

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,14 +1,5 @@
1
1
  'use strict';
2
2
 
3
- const CAMPAIGN_WEBHOOK_TYPES = {
4
- suitableLead: 'suitableLead',
5
- proposalSent: 'proposalSent',
6
- proposalViewed: 'proposalViewed',
7
- proposalReplied: 'proposalReplied',
8
- lowConnects: 'lowConnects',
9
- accountHealth: 'accountHealth',
10
- };
11
-
12
3
  const commonQuestions = [
13
4
  {
14
5
  id: 'similar_experience',
@@ -346,13 +337,10 @@ const jobStatusOrder = [
346
337
  "viewed",
347
338
  "replied",
348
339
  "won",
349
- "lost",
350
340
  ];
351
341
  const getPreviousStatus = (status) => {
352
342
  if (status === "won")
353
343
  return "replied";
354
- if (status === "lost")
355
- return "replied";
356
344
  const index = jobStatusOrder.indexOf(status);
357
345
  return index > 0 ? jobStatusOrder[index - 1] : null;
358
346
  };
@@ -6501,6 +6489,10 @@ const ROUTES = {
6501
6489
  DASHBOARD: {
6502
6490
  CAMPAIGN_STATS: "admin/dashboard/campaign-stats",
6503
6491
  },
6492
+ ALERTS: {
6493
+ BASE: "admin/alerts",
6494
+ SEND_ALERT: "admin/alerts/send",
6495
+ },
6504
6496
  },
6505
6497
  BID: {
6506
6498
  BASE: "bid",
@@ -6524,7 +6516,6 @@ const ROUTES = {
6524
6516
  BASE: (id) => `organizations/${id}/members`,
6525
6517
  BY_ID: (id, memberId) => `organizations/${id}/members/${memberId}`,
6526
6518
  },
6527
- NOTIFICATIONS: (id) => `organizations/${id}/settings/notifications`,
6528
6519
  SETTINGS: (id) => `organizations/${id}/settings`,
6529
6520
  CHARGES: (id) => `organizations/${id}/charges`,
6530
6521
  PAYMENT_METHODS: (id) => `organizations/${id}/payment-methods`,
@@ -6546,8 +6537,6 @@ const ROUTES = {
6546
6537
  LEADS: {
6547
6538
  BASE: (organizationId, campaignId) => `organizations/${organizationId}/campaigns/${campaignId}/leads`,
6548
6539
  BY_ID: (organizationId, campaignId, leadId) => `organizations/${organizationId}/campaigns/${campaignId}/leads/${leadId}`,
6549
- SEND_NOTIFICATION: (organizationId, campaignId, leadId) => `organizations/${organizationId}/campaigns/${campaignId}/leads/${leadId}/send-notification`,
6550
- SEND_TEST_NOTIFICATION: (organizationId, campaignId) => `organizations/${organizationId}/campaigns/${campaignId}/send-test-notification`,
6551
6540
  SEARCH: (organizationId, campaignId) => `organizations/${organizationId}/campaigns/${campaignId}/leads/search`,
6552
6541
  GENERATE_COUNTS: (organizationId, campaignId) => `organizations/${organizationId}/campaigns/${campaignId}/leads/generate-counts`,
6553
6542
  },
@@ -6557,24 +6546,6 @@ const ROUTES = {
6557
6546
  BASE: (organizationId, campaignId) => `organizations/${organizationId}/campaigns/${campaignId}/activities`,
6558
6547
  BY_ID: (organizationId, campaignId, activityId) => `organizations/${organizationId}/campaigns/${campaignId}/activities/${activityId}`,
6559
6548
  },
6560
- INSIGHTS: (organizationId, campaignId) => `organizations/${organizationId}/campaigns/${campaignId}/insights`,
6561
- INTEGRATIONS: {
6562
- BASE: (organizationId, campaignId) => `organizations/${organizationId}/campaigns/${campaignId}/integrations`,
6563
- TEST_SUITABILITY_WEBHOOK: (organizationId, campaignId, integrationId) => `organizations/${organizationId}/campaigns/${campaignId}/integrations/${integrationId}/suitability/test-webhook`,
6564
- TEST_PROPOSAL_WEBHOOK: (organizationId, campaignId, integrationId) => `organizations/${organizationId}/campaigns/${campaignId}/integrations/${integrationId}/proposal/test-webhook`,
6565
- SUITABILITY_NOTIFICATION: (organizationId, campaignId, leadId) => `organizations/${organizationId}/campaigns/${campaignId}/integrations/suitability/notify/${leadId}`,
6566
- PROPOSAL_SENT_NOTIFICATION: (organizationId, campaignId, leadId) => `organizations/${organizationId}/campaigns/${campaignId}/integrations/proposal-sent/notify/${leadId}`,
6567
- SLACK: {
6568
- BASE: (organizationId, campaignId) => `organizations/${organizationId}/campaigns/${campaignId}/integrations/slack`,
6569
- TEST_SUITABILITY_WEBHOOK: (organizationId, campaignId) => `organizations/${organizationId}/campaigns/${campaignId}/integrations/slack/suitability/test-webhook`,
6570
- TEST_PROPOSAL_WEBHOOK: (organizationId, campaignId) => `organizations/${organizationId}/campaigns/${campaignId}/integrations/slack/proposal/test-webhook`,
6571
- },
6572
- DISCORD: {
6573
- BASE: (organizationId, campaignId) => `organizations/${organizationId}/campaigns/${campaignId}/integrations/discord`,
6574
- TEST_SUITABILITY_WEBHOOK: (organizationId, campaignId) => `organizations/${organizationId}/campaigns/${campaignId}/integrations/discord/suitability/test-webhook`,
6575
- TEST_PROPOSAL_WEBHOOK: (organizationId, campaignId) => `organizations/${organizationId}/campaigns/${campaignId}/integrations/discord/proposal/test-webhook`,
6576
- },
6577
- },
6578
6549
  },
6579
6550
  USAGE_SUMMARIES: {
6580
6551
  DAILY: {
@@ -6630,7 +6601,7 @@ const ROUTES = {
6630
6601
  },
6631
6602
  NOTIFICATIONS: {
6632
6603
  BASE: "notifications",
6633
- SEND_ALERT: "notifications/send-alert",
6604
+ SEND_NOTIFICATION: "notifications/send",
6634
6605
  },
6635
6606
  USAGE_EVENTS: {
6636
6607
  BASE: "usage-events",
@@ -12034,7 +12005,6 @@ const leadStatusSchema = z.enum([
12034
12005
  "viewed",
12035
12006
  "replied",
12036
12007
  "won",
12037
- "lost",
12038
12008
  ]);
12039
12009
  const updateLeadStatusSchema = z.object({
12040
12010
  leadId: z.string(),
@@ -12386,7 +12356,6 @@ const notificationConfigSchema = objectType({
12386
12356
  });
12387
12357
  const organizationSettingsSchema = objectType({
12388
12358
  aiConfig: aiConfigSchema,
12389
- notifications: notificationConfigSchema,
12390
12359
  });
12391
12360
  const subscribePayloadSchema = objectType({
12392
12361
  planId: stringType().min(1, "Plan id is required."),
@@ -12453,7 +12422,6 @@ const bidPayloadProposalDataSchema = z.object({
12453
12422
  coverLetter: z.string(),
12454
12423
  questionAnswerPairs: questionAnswerPairSchema.array().nullable(),
12455
12424
  boostingEnabled: z.boolean(),
12456
- minimumBoost: z.number().nullable(),
12457
12425
  maximumBoost: z.number().nullable(),
12458
12426
  });
12459
12427
  const freelancerBidProposalDataSchema = bidPayloadProposalDataSchema;
@@ -12763,13 +12731,23 @@ const campaignExpensesSchema = z.object({
12763
12731
  });
12764
12732
 
12765
12733
  const campaignNotificationType = z.enum([
12766
- 'suitableLead',
12767
- 'proposalSent',
12768
- 'proposalViewed',
12769
- 'proposalReplied',
12770
- 'lowConnects',
12771
- 'accountHealth',
12734
+ "suitableLead",
12735
+ "proposalSent",
12736
+ "proposalViewed",
12737
+ "proposalReplied",
12738
+ "lowConnects",
12739
+ "noConnects",
12740
+ "accountDisconnected",
12772
12741
  ]);
12742
+ const CAMPAIGN_WEBHOOK_TYPES = {
12743
+ suitableLead: "suitableLead",
12744
+ proposalSent: "proposalSent",
12745
+ proposalViewed: "proposalViewed",
12746
+ proposalReplied: "proposalReplied",
12747
+ lowConnects: "lowConnects",
12748
+ noConnects: "noConnects",
12749
+ accountDisconnected: "accountDisconnected",
12750
+ };
12773
12751
  const campaignWebhookSettingsSchema = z.object(Object.fromEntries(Object.values(campaignNotificationType.enum).map((type) => [
12774
12752
  type,
12775
12753
  z.boolean().default(false),
@@ -12780,6 +12758,12 @@ const campaignWebhookSchema = z.object({
12780
12758
  url: z.string().url(),
12781
12759
  notificationSettings: campaignWebhookSettingsSchema,
12782
12760
  });
12761
+ const sendNotificationRequestSchema = z.object({
12762
+ organizationId: z.string(),
12763
+ campaignId: z.string(),
12764
+ leadId: z.string(),
12765
+ type: campaignNotificationType,
12766
+ });
12783
12767
 
12784
12768
  const bidConfigSchema = z.object({
12785
12769
  agencyName: z.string().nullable(),
@@ -13805,6 +13789,7 @@ exports.selectAgencyException = selectAgencyException;
13805
13789
  exports.selectContractorException = selectContractorException;
13806
13790
  exports.selectorNotFoundError = selectorNotFoundError;
13807
13791
  exports.sendAlertPayloadSchema = sendAlertPayloadSchema;
13792
+ exports.sendNotificationRequestSchema = sendNotificationRequestSchema;
13808
13793
  exports.subscribePayloadSchema = subscribePayloadSchema;
13809
13794
  exports.subscriptionSchema = subscriptionSchema;
13810
13795
  exports.subscriptionSourceEnum = subscriptionSourceEnum;
@@ -1,9 +1,8 @@
1
- export * from './campaign-webhook-types';
2
- export * from './common-questions';
3
- export * from './invoice';
4
- export * from './job-filter-options';
5
- export * from './job-status';
6
- export { default as countryMapping } from './mappings/countryMapping';
7
- export { default as regionMapping } from './mappings/regionMapping';
8
- export * from './routes';
9
- export * from './upwork-accounts';
1
+ export * from "./common-questions";
2
+ export * from "./invoice";
3
+ export * from "./job-filter-options";
4
+ export * from "./job-status";
5
+ export { default as countryMapping } from "./mappings/countryMapping";
6
+ export { default as regionMapping } from "./mappings/regionMapping";
7
+ export * from "./routes";
8
+ export * from "./upwork-accounts";
@@ -76,6 +76,10 @@ export declare const ROUTES: {
76
76
  readonly DASHBOARD: {
77
77
  readonly CAMPAIGN_STATS: "admin/dashboard/campaign-stats";
78
78
  };
79
+ readonly ALERTS: {
80
+ readonly BASE: "admin/alerts";
81
+ readonly SEND_ALERT: "admin/alerts/send";
82
+ };
79
83
  };
80
84
  readonly BID: {
81
85
  readonly BASE: "bid";
@@ -99,7 +103,6 @@ export declare const ROUTES: {
99
103
  readonly BASE: (id: string) => string;
100
104
  readonly BY_ID: (id: string, memberId: string) => string;
101
105
  };
102
- readonly NOTIFICATIONS: (id: string) => string;
103
106
  readonly SETTINGS: (id: string) => string;
104
107
  readonly CHARGES: (id: string) => string;
105
108
  readonly PAYMENT_METHODS: (id: string) => string;
@@ -121,8 +124,6 @@ export declare const ROUTES: {
121
124
  readonly LEADS: {
122
125
  readonly BASE: (organizationId: string, campaignId: string) => string;
123
126
  readonly BY_ID: (organizationId: string, campaignId: string, leadId: string) => string;
124
- readonly SEND_NOTIFICATION: (organizationId: string, campaignId: string, leadId: string) => string;
125
- readonly SEND_TEST_NOTIFICATION: (organizationId: string, campaignId: string) => string;
126
127
  readonly SEARCH: (organizationId: string, campaignId: string) => string;
127
128
  readonly GENERATE_COUNTS: (organizationId: string, campaignId: string) => string;
128
129
  };
@@ -132,24 +133,6 @@ export declare const ROUTES: {
132
133
  readonly BASE: (organizationId: string, campaignId: string) => string;
133
134
  readonly BY_ID: (organizationId: string, campaignId: string, activityId: string) => string;
134
135
  };
135
- readonly INSIGHTS: (organizationId: string, campaignId: string) => string;
136
- readonly INTEGRATIONS: {
137
- readonly BASE: (organizationId: string, campaignId: string) => string;
138
- readonly TEST_SUITABILITY_WEBHOOK: (organizationId: string, campaignId: string, integrationId: string) => string;
139
- readonly TEST_PROPOSAL_WEBHOOK: (organizationId: string, campaignId: string, integrationId: string) => string;
140
- readonly SUITABILITY_NOTIFICATION: (organizationId: string, campaignId: string, leadId: string) => string;
141
- readonly PROPOSAL_SENT_NOTIFICATION: (organizationId: string, campaignId: string, leadId: string) => string;
142
- readonly SLACK: {
143
- readonly BASE: (organizationId: string, campaignId: string) => string;
144
- readonly TEST_SUITABILITY_WEBHOOK: (organizationId: string, campaignId: string) => string;
145
- readonly TEST_PROPOSAL_WEBHOOK: (organizationId: string, campaignId: string) => string;
146
- };
147
- readonly DISCORD: {
148
- readonly BASE: (organizationId: string, campaignId: string) => string;
149
- readonly TEST_SUITABILITY_WEBHOOK: (organizationId: string, campaignId: string) => string;
150
- readonly TEST_PROPOSAL_WEBHOOK: (organizationId: string, campaignId: string) => string;
151
- };
152
- };
153
136
  };
154
137
  readonly USAGE_SUMMARIES: {
155
138
  readonly DAILY: {
@@ -201,7 +184,7 @@ export declare const ROUTES: {
201
184
  };
202
185
  readonly NOTIFICATIONS: {
203
186
  readonly BASE: "notifications";
204
- readonly SEND_ALERT: "notifications/send-alert";
187
+ readonly SEND_NOTIFICATION: "notifications/send";
205
188
  };
206
189
  readonly USAGE_EVENTS: {
207
190
  readonly BASE: "usage-events";
@@ -318,7 +318,7 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
318
318
  answer: string;
319
319
  }>, "many">>;
320
320
  agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
321
- leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won", "lost"]>>;
321
+ leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>>;
322
322
  biddingAmount: z.ZodNullable<z.ZodNumber>;
323
323
  boosted: z.ZodNullable<z.ZodBoolean>;
324
324
  boostingAmount: z.ZodNullable<z.ZodNumber>;
@@ -425,7 +425,7 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
425
425
  answer: string;
426
426
  }[] | null;
427
427
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
428
- leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost" | null;
428
+ leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | null;
429
429
  biddingAmount: number | null;
430
430
  boosted: boolean | null;
431
431
  boostingAmount: number | null;
@@ -553,7 +553,7 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
553
553
  answer: string;
554
554
  }[] | null;
555
555
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
556
- leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost" | null;
556
+ leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | null;
557
557
  biddingAmount: number | null;
558
558
  boosted: boolean | null;
559
559
  boostingAmount: number | null;
@@ -686,7 +686,7 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
686
686
  answer: string;
687
687
  }[] | null;
688
688
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
689
- leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost" | null;
689
+ leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | null;
690
690
  biddingAmount: number | null;
691
691
  boosted: boolean | null;
692
692
  boostingAmount: number | null;
@@ -819,7 +819,7 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
819
819
  answer: string;
820
820
  }[] | null;
821
821
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
822
- leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost" | null;
822
+ leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | null;
823
823
  biddingAmount: number | null;
824
824
  boosted: boolean | null;
825
825
  boostingAmount: number | null;
@@ -1209,7 +1209,7 @@ export declare const testSystemPromptsRequestSchema: z.ZodObject<{
1209
1209
  answer: string;
1210
1210
  }>, "many">>;
1211
1211
  agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
1212
- leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won", "lost"]>>;
1212
+ leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>>;
1213
1213
  biddingAmount: z.ZodNullable<z.ZodNumber>;
1214
1214
  boosted: z.ZodNullable<z.ZodBoolean>;
1215
1215
  boostingAmount: z.ZodNullable<z.ZodNumber>;
@@ -1316,7 +1316,7 @@ export declare const testSystemPromptsRequestSchema: z.ZodObject<{
1316
1316
  answer: string;
1317
1317
  }[] | null;
1318
1318
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
1319
- leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost" | null;
1319
+ leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | null;
1320
1320
  biddingAmount: number | null;
1321
1321
  boosted: boolean | null;
1322
1322
  boostingAmount: number | null;
@@ -1444,7 +1444,7 @@ export declare const testSystemPromptsRequestSchema: z.ZodObject<{
1444
1444
  answer: string;
1445
1445
  }[] | null;
1446
1446
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
1447
- leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost" | null;
1447
+ leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | null;
1448
1448
  biddingAmount: number | null;
1449
1449
  boosted: boolean | null;
1450
1450
  boostingAmount: number | null;
@@ -1575,7 +1575,7 @@ export declare const testSystemPromptsRequestSchema: z.ZodObject<{
1575
1575
  answer: string;
1576
1576
  }[] | null;
1577
1577
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
1578
- leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost" | null;
1578
+ leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | null;
1579
1579
  biddingAmount: number | null;
1580
1580
  boosted: boolean | null;
1581
1581
  boostingAmount: number | null;
@@ -1720,7 +1720,7 @@ export declare const testSystemPromptsRequestSchema: z.ZodObject<{
1720
1720
  answer: string;
1721
1721
  }[] | null;
1722
1722
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
1723
- leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost" | null;
1723
+ leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | null;
1724
1724
  biddingAmount: number | null;
1725
1725
  boosted: boolean | null;
1726
1726
  boostingAmount: number | null;
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import { z } from 'zod';
2
2
  export declare const bidPayloadProposalDataSchema: z.ZodObject<{
3
3
  coverLetter: z.ZodString;
4
4
  questionAnswerPairs: z.ZodNullable<z.ZodArray<z.ZodObject<{
@@ -12,7 +12,6 @@ export declare const bidPayloadProposalDataSchema: z.ZodObject<{
12
12
  answer: string;
13
13
  }>, "many">>;
14
14
  boostingEnabled: z.ZodBoolean;
15
- minimumBoost: z.ZodNullable<z.ZodNumber>;
16
15
  maximumBoost: z.ZodNullable<z.ZodNumber>;
17
16
  }, "strip", z.ZodTypeAny, {
18
17
  coverLetter: string;
@@ -21,7 +20,6 @@ export declare const bidPayloadProposalDataSchema: z.ZodObject<{
21
20
  answer: string;
22
21
  }[] | null;
23
22
  boostingEnabled: boolean;
24
- minimumBoost: number | null;
25
23
  maximumBoost: number | null;
26
24
  }, {
27
25
  coverLetter: string;
@@ -30,7 +28,6 @@ export declare const bidPayloadProposalDataSchema: z.ZodObject<{
30
28
  answer: string;
31
29
  }[] | null;
32
30
  boostingEnabled: boolean;
33
- minimumBoost: number | null;
34
31
  maximumBoost: number | null;
35
32
  }>;
36
33
  export declare const freelancerBidProposalDataSchema: z.ZodObject<{
@@ -46,7 +43,6 @@ export declare const freelancerBidProposalDataSchema: z.ZodObject<{
46
43
  answer: string;
47
44
  }>, "many">>;
48
45
  boostingEnabled: z.ZodBoolean;
49
- minimumBoost: z.ZodNullable<z.ZodNumber>;
50
46
  maximumBoost: z.ZodNullable<z.ZodNumber>;
51
47
  }, "strip", z.ZodTypeAny, {
52
48
  coverLetter: string;
@@ -55,7 +51,6 @@ export declare const freelancerBidProposalDataSchema: z.ZodObject<{
55
51
  answer: string;
56
52
  }[] | null;
57
53
  boostingEnabled: boolean;
58
- minimumBoost: number | null;
59
54
  maximumBoost: number | null;
60
55
  }, {
61
56
  coverLetter: string;
@@ -64,7 +59,6 @@ export declare const freelancerBidProposalDataSchema: z.ZodObject<{
64
59
  answer: string;
65
60
  }[] | null;
66
61
  boostingEnabled: boolean;
67
- minimumBoost: number | null;
68
62
  maximumBoost: number | null;
69
63
  }>;
70
64
  export declare const agencyBidProposalDataSchema: z.ZodObject<z.objectUtil.extendShape<{
@@ -80,7 +74,6 @@ export declare const agencyBidProposalDataSchema: z.ZodObject<z.objectUtil.exten
80
74
  answer: string;
81
75
  }>, "many">>;
82
76
  boostingEnabled: z.ZodBoolean;
83
- minimumBoost: z.ZodNullable<z.ZodNumber>;
84
77
  maximumBoost: z.ZodNullable<z.ZodNumber>;
85
78
  }, {
86
79
  agencyName: z.ZodString;
@@ -93,7 +86,6 @@ export declare const agencyBidProposalDataSchema: z.ZodObject<z.objectUtil.exten
93
86
  answer: string;
94
87
  }[] | null;
95
88
  boostingEnabled: boolean;
96
- minimumBoost: number | null;
97
89
  maximumBoost: number | null;
98
90
  agencyName: string;
99
91
  contractorName: string;
@@ -105,7 +97,6 @@ export declare const agencyBidProposalDataSchema: z.ZodObject<z.objectUtil.exten
105
97
  answer: string;
106
98
  }[] | null;
107
99
  boostingEnabled: boolean;
108
- minimumBoost: number | null;
109
100
  maximumBoost: number | null;
110
101
  agencyName: string;
111
102
  contractorName: string;
@@ -142,7 +133,6 @@ export declare const agencyBidPayloadSchema: z.ZodObject<z.objectUtil.extendShap
142
133
  answer: string;
143
134
  }>, "many">>;
144
135
  boostingEnabled: z.ZodBoolean;
145
- minimumBoost: z.ZodNullable<z.ZodNumber>;
146
136
  maximumBoost: z.ZodNullable<z.ZodNumber>;
147
137
  }, {
148
138
  agencyName: z.ZodString;
@@ -155,7 +145,6 @@ export declare const agencyBidPayloadSchema: z.ZodObject<z.objectUtil.extendShap
155
145
  answer: string;
156
146
  }[] | null;
157
147
  boostingEnabled: boolean;
158
- minimumBoost: number | null;
159
148
  maximumBoost: number | null;
160
149
  agencyName: string;
161
150
  contractorName: string;
@@ -167,7 +156,6 @@ export declare const agencyBidPayloadSchema: z.ZodObject<z.objectUtil.extendShap
167
156
  answer: string;
168
157
  }[] | null;
169
158
  boostingEnabled: boolean;
170
- minimumBoost: number | null;
171
159
  maximumBoost: number | null;
172
160
  agencyName: string;
173
161
  contractorName: string;
@@ -184,7 +172,6 @@ export declare const agencyBidPayloadSchema: z.ZodObject<z.objectUtil.extendShap
184
172
  answer: string;
185
173
  }[] | null;
186
174
  boostingEnabled: boolean;
187
- minimumBoost: number | null;
188
175
  maximumBoost: number | null;
189
176
  agencyName: string;
190
177
  contractorName: string;
@@ -201,7 +188,6 @@ export declare const agencyBidPayloadSchema: z.ZodObject<z.objectUtil.extendShap
201
188
  answer: string;
202
189
  }[] | null;
203
190
  boostingEnabled: boolean;
204
- minimumBoost: number | null;
205
191
  maximumBoost: number | null;
206
192
  agencyName: string;
207
193
  contractorName: string;
@@ -226,7 +212,6 @@ export declare const freelancerBidPayloadSchema: z.ZodObject<z.objectUtil.extend
226
212
  answer: string;
227
213
  }>, "many">>;
228
214
  boostingEnabled: z.ZodBoolean;
229
- minimumBoost: z.ZodNullable<z.ZodNumber>;
230
215
  maximumBoost: z.ZodNullable<z.ZodNumber>;
231
216
  }, "strip", z.ZodTypeAny, {
232
217
  coverLetter: string;
@@ -235,7 +220,6 @@ export declare const freelancerBidPayloadSchema: z.ZodObject<z.objectUtil.extend
235
220
  answer: string;
236
221
  }[] | null;
237
222
  boostingEnabled: boolean;
238
- minimumBoost: number | null;
239
223
  maximumBoost: number | null;
240
224
  }, {
241
225
  coverLetter: string;
@@ -244,7 +228,6 @@ export declare const freelancerBidPayloadSchema: z.ZodObject<z.objectUtil.extend
244
228
  answer: string;
245
229
  }[] | null;
246
230
  boostingEnabled: boolean;
247
- minimumBoost: number | null;
248
231
  maximumBoost: number | null;
249
232
  }>;
250
233
  }>, "strip", z.ZodTypeAny, {
@@ -258,7 +241,6 @@ export declare const freelancerBidPayloadSchema: z.ZodObject<z.objectUtil.extend
258
241
  answer: string;
259
242
  }[] | null;
260
243
  boostingEnabled: boolean;
261
- minimumBoost: number | null;
262
244
  maximumBoost: number | null;
263
245
  };
264
246
  }, {
@@ -272,7 +254,6 @@ export declare const freelancerBidPayloadSchema: z.ZodObject<z.objectUtil.extend
272
254
  answer: string;
273
255
  }[] | null;
274
256
  boostingEnabled: boolean;
275
- minimumBoost: number | null;
276
257
  maximumBoost: number | null;
277
258
  };
278
259
  }>;
@@ -563,7 +563,7 @@ export declare const campaignStatusActivitySchema: z.ZodObject<z.objectUtil.exte
563
563
  maximumBoost: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
564
564
  monthlyBudget: z.ZodNullable<z.ZodNumber>;
565
565
  boostingThreshold: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
566
- leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won", "lost"]>, z.ZodNumber>>;
566
+ leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>, z.ZodNumber>>;
567
567
  expenses: z.ZodObject<{
568
568
  biddingAmount: z.ZodDefault<z.ZodNumber>;
569
569
  boostingAmount: z.ZodDefault<z.ZodNumber>;
@@ -1071,7 +1071,7 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
1071
1071
  maximumBoost: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1072
1072
  monthlyBudget: z.ZodNullable<z.ZodNumber>;
1073
1073
  boostingThreshold: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1074
- leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won", "lost"]>, z.ZodNumber>>;
1074
+ leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>, z.ZodNumber>>;
1075
1075
  expenses: z.ZodObject<{
1076
1076
  biddingAmount: z.ZodDefault<z.ZodNumber>;
1077
1077
  boostingAmount: z.ZodDefault<z.ZodNumber>;
@@ -1455,7 +1455,7 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
1455
1455
  answer: string;
1456
1456
  }>, "many">>;
1457
1457
  agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
1458
- leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won", "lost"]>>;
1458
+ leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>>;
1459
1459
  biddingAmount: z.ZodNullable<z.ZodNumber>;
1460
1460
  boosted: z.ZodNullable<z.ZodBoolean>;
1461
1461
  boostingAmount: z.ZodNullable<z.ZodNumber>;
@@ -1924,7 +1924,7 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
1924
1924
  maximumBoost: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1925
1925
  monthlyBudget: z.ZodNullable<z.ZodNumber>;
1926
1926
  boostingThreshold: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1927
- leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won", "lost"]>, z.ZodNumber>>;
1927
+ leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>, z.ZodNumber>>;
1928
1928
  expenses: z.ZodObject<{
1929
1929
  biddingAmount: z.ZodDefault<z.ZodNumber>;
1930
1930
  boostingAmount: z.ZodDefault<z.ZodNumber>;
@@ -1993,7 +1993,7 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
1993
1993
  creditBalance: z.ZodNumber;
1994
1994
  }, {
1995
1995
  type: z.ZodLiteral<"lead_status">;
1996
- status: z.ZodEnum<["leads", "contacted", "viewed", "replied", "won", "lost"]>;
1996
+ status: z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>;
1997
1997
  lead: z.ZodObject<Pick<Omit<z.objectUtil.extendShape<{
1998
1998
  id: z.ZodNullable<z.ZodString>;
1999
1999
  uid: z.ZodNullable<z.ZodString>;
@@ -2309,7 +2309,7 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
2309
2309
  answer: string;
2310
2310
  }>, "many">>;
2311
2311
  agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
2312
- leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won", "lost"]>>;
2312
+ leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>>;
2313
2313
  biddingAmount: z.ZodNullable<z.ZodNumber>;
2314
2314
  boosted: z.ZodNullable<z.ZodBoolean>;
2315
2315
  boostingAmount: z.ZodNullable<z.ZodNumber>;
@@ -2330,7 +2330,7 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
2330
2330
  creditBalance: z.ZodNumber;
2331
2331
  }>, "strip", z.ZodTypeAny, {
2332
2332
  type: "lead_status";
2333
- status: "contacted" | "viewed" | "replied" | "won" | "leads" | "lost";
2333
+ status: "contacted" | "viewed" | "replied" | "won" | "leads";
2334
2334
  createdAt: number;
2335
2335
  organization: {
2336
2336
  id: string;
@@ -2349,7 +2349,7 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
2349
2349
  };
2350
2350
  }, {
2351
2351
  type: "lead_status";
2352
- status: "contacted" | "viewed" | "replied" | "won" | "leads" | "lost";
2352
+ status: "contacted" | "viewed" | "replied" | "won" | "leads";
2353
2353
  createdAt: number;
2354
2354
  organization: {
2355
2355
  id: string;
@@ -2777,7 +2777,7 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
2777
2777
  maximumBoost: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
2778
2778
  monthlyBudget: z.ZodNullable<z.ZodNumber>;
2779
2779
  boostingThreshold: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
2780
- leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won", "lost"]>, z.ZodNumber>>;
2780
+ leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>, z.ZodNumber>>;
2781
2781
  expenses: z.ZodObject<{
2782
2782
  biddingAmount: z.ZodDefault<z.ZodNumber>;
2783
2783
  boostingAmount: z.ZodDefault<z.ZodNumber>;
@@ -3161,7 +3161,7 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
3161
3161
  answer: string;
3162
3162
  }>, "many">>;
3163
3163
  agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
3164
- leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won", "lost"]>>;
3164
+ leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>>;
3165
3165
  biddingAmount: z.ZodNullable<z.ZodNumber>;
3166
3166
  boosted: z.ZodNullable<z.ZodBoolean>;
3167
3167
  boostingAmount: z.ZodNullable<z.ZodNumber>;
@@ -3627,7 +3627,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
3627
3627
  maximumBoost: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3628
3628
  monthlyBudget: z.ZodNullable<z.ZodNumber>;
3629
3629
  boostingThreshold: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3630
- leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won", "lost"]>, z.ZodNumber>>;
3630
+ leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>, z.ZodNumber>>;
3631
3631
  expenses: z.ZodObject<{
3632
3632
  biddingAmount: z.ZodDefault<z.ZodNumber>;
3633
3633
  boostingAmount: z.ZodDefault<z.ZodNumber>;
@@ -4134,7 +4134,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
4134
4134
  maximumBoost: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
4135
4135
  monthlyBudget: z.ZodNullable<z.ZodNumber>;
4136
4136
  boostingThreshold: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
4137
- leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won", "lost"]>, z.ZodNumber>>;
4137
+ leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>, z.ZodNumber>>;
4138
4138
  expenses: z.ZodObject<{
4139
4139
  biddingAmount: z.ZodDefault<z.ZodNumber>;
4140
4140
  boostingAmount: z.ZodDefault<z.ZodNumber>;
@@ -4518,7 +4518,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
4518
4518
  answer: string;
4519
4519
  }>, "many">>;
4520
4520
  agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
4521
- leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won", "lost"]>>;
4521
+ leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>>;
4522
4522
  biddingAmount: z.ZodNullable<z.ZodNumber>;
4523
4523
  boosted: z.ZodNullable<z.ZodBoolean>;
4524
4524
  boostingAmount: z.ZodNullable<z.ZodNumber>;
@@ -4986,7 +4986,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
4986
4986
  maximumBoost: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
4987
4987
  monthlyBudget: z.ZodNullable<z.ZodNumber>;
4988
4988
  boostingThreshold: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
4989
- leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won", "lost"]>, z.ZodNumber>>;
4989
+ leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>, z.ZodNumber>>;
4990
4990
  expenses: z.ZodObject<{
4991
4991
  biddingAmount: z.ZodDefault<z.ZodNumber>;
4992
4992
  boostingAmount: z.ZodDefault<z.ZodNumber>;
@@ -5055,7 +5055,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
5055
5055
  creditBalance: z.ZodNumber;
5056
5056
  }, {
5057
5057
  type: z.ZodLiteral<"lead_status">;
5058
- status: z.ZodEnum<["leads", "contacted", "viewed", "replied", "won", "lost"]>;
5058
+ status: z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>;
5059
5059
  lead: z.ZodObject<Pick<Omit<z.objectUtil.extendShape<{
5060
5060
  id: z.ZodNullable<z.ZodString>;
5061
5061
  uid: z.ZodNullable<z.ZodString>;
@@ -5371,7 +5371,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
5371
5371
  answer: string;
5372
5372
  }>, "many">>;
5373
5373
  agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
5374
- leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won", "lost"]>>;
5374
+ leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>>;
5375
5375
  biddingAmount: z.ZodNullable<z.ZodNumber>;
5376
5376
  boosted: z.ZodNullable<z.ZodBoolean>;
5377
5377
  boostingAmount: z.ZodNullable<z.ZodNumber>;
@@ -5392,7 +5392,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
5392
5392
  creditBalance: z.ZodNumber;
5393
5393
  }>, "strip", z.ZodTypeAny, {
5394
5394
  type: "lead_status";
5395
- status: "contacted" | "viewed" | "replied" | "won" | "leads" | "lost";
5395
+ status: "contacted" | "viewed" | "replied" | "won" | "leads";
5396
5396
  createdAt: number;
5397
5397
  organization: {
5398
5398
  id: string;
@@ -5411,7 +5411,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
5411
5411
  };
5412
5412
  }, {
5413
5413
  type: "lead_status";
5414
- status: "contacted" | "viewed" | "replied" | "won" | "leads" | "lost";
5414
+ status: "contacted" | "viewed" | "replied" | "won" | "leads";
5415
5415
  createdAt: number;
5416
5416
  organization: {
5417
5417
  id: string;
@@ -5838,7 +5838,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
5838
5838
  maximumBoost: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
5839
5839
  monthlyBudget: z.ZodNullable<z.ZodNumber>;
5840
5840
  boostingThreshold: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
5841
- leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won", "lost"]>, z.ZodNumber>>;
5841
+ leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>, z.ZodNumber>>;
5842
5842
  expenses: z.ZodObject<{
5843
5843
  biddingAmount: z.ZodDefault<z.ZodNumber>;
5844
5844
  boostingAmount: z.ZodDefault<z.ZodNumber>;
@@ -6222,7 +6222,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
6222
6222
  answer: string;
6223
6223
  }>, "many">>;
6224
6224
  agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
6225
- leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won", "lost"]>>;
6225
+ leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>>;
6226
6226
  biddingAmount: z.ZodNullable<z.ZodNumber>;
6227
6227
  boosted: z.ZodNullable<z.ZodBoolean>;
6228
6228
  boostingAmount: z.ZodNullable<z.ZodNumber>;
@@ -6607,7 +6607,7 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
6607
6607
  answer: string;
6608
6608
  }>, "many">>;
6609
6609
  agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
6610
- leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won", "lost"]>>;
6610
+ leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>>;
6611
6611
  biddingAmount: z.ZodNullable<z.ZodNumber>;
6612
6612
  boosted: z.ZodNullable<z.ZodBoolean>;
6613
6613
  boostingAmount: z.ZodNullable<z.ZodNumber>;
@@ -6649,7 +6649,7 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
6649
6649
  };
6650
6650
  }>, z.ZodObject<{
6651
6651
  type: z.ZodLiteral<"lead_status">;
6652
- status: z.ZodEnum<["leads", "contacted", "viewed", "replied", "won", "lost"]>;
6652
+ status: z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>;
6653
6653
  lead: z.ZodObject<Pick<Omit<z.objectUtil.extendShape<{
6654
6654
  id: z.ZodNullable<z.ZodString>;
6655
6655
  uid: z.ZodNullable<z.ZodString>;
@@ -6965,7 +6965,7 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
6965
6965
  answer: string;
6966
6966
  }>, "many">>;
6967
6967
  agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
6968
- leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won", "lost"]>>;
6968
+ leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>>;
6969
6969
  biddingAmount: z.ZodNullable<z.ZodNumber>;
6970
6970
  boosted: z.ZodNullable<z.ZodBoolean>;
6971
6971
  boostingAmount: z.ZodNullable<z.ZodNumber>;
@@ -6986,7 +6986,7 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
6986
6986
  creditBalance: z.ZodNumber;
6987
6987
  }, "strip", z.ZodTypeAny, {
6988
6988
  type: "lead_status";
6989
- status: "contacted" | "viewed" | "replied" | "won" | "leads" | "lost";
6989
+ status: "contacted" | "viewed" | "replied" | "won" | "leads";
6990
6990
  creditBalance: number;
6991
6991
  lead: {
6992
6992
  id: string | null;
@@ -6996,7 +6996,7 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
6996
6996
  };
6997
6997
  }, {
6998
6998
  type: "lead_status";
6999
- status: "contacted" | "viewed" | "replied" | "won" | "leads" | "lost";
6999
+ status: "contacted" | "viewed" | "replied" | "won" | "leads";
7000
7000
  creditBalance: number;
7001
7001
  lead: {
7002
7002
  id: string | null;
@@ -7321,7 +7321,7 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
7321
7321
  answer: string;
7322
7322
  }>, "many">>;
7323
7323
  agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
7324
- leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won", "lost"]>>;
7324
+ leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>>;
7325
7325
  biddingAmount: z.ZodNullable<z.ZodNumber>;
7326
7326
  boosted: z.ZodNullable<z.ZodBoolean>;
7327
7327
  boostingAmount: z.ZodNullable<z.ZodNumber>;
@@ -1,5 +1,7 @@
1
- import { z } from 'zod';
2
- export declare const campaignNotificationType: z.ZodEnum<["suitableLead", "proposalSent", "proposalViewed", "proposalReplied", "lowConnects", "accountHealth"]>;
1
+ import { z } from "zod";
2
+ export declare const campaignNotificationType: z.ZodEnum<["suitableLead", "proposalSent", "proposalViewed", "proposalReplied", "lowConnects", "noConnects", "accountDisconnected"]>;
3
+ export type CampaignNotificationType = z.infer<typeof campaignNotificationType>;
4
+ export declare const CAMPAIGN_WEBHOOK_TYPES: Record<CampaignNotificationType, string>;
3
5
  export declare const campaignWebhookSettingsSchema: z.ZodObject<{
4
6
  [k: string]: z.ZodDefault<z.ZodBoolean>;
5
7
  }, "strip", z.ZodTypeAny, {
@@ -33,7 +35,23 @@ export declare const campaignWebhookSchema: z.ZodObject<{
33
35
  [x: string]: boolean | undefined;
34
36
  };
35
37
  }>;
36
- export type CampaignNotificationType = z.infer<typeof campaignNotificationType>;
38
+ export declare const sendNotificationRequestSchema: z.ZodObject<{
39
+ organizationId: z.ZodString;
40
+ campaignId: z.ZodString;
41
+ leadId: z.ZodString;
42
+ type: z.ZodEnum<["suitableLead", "proposalSent", "proposalViewed", "proposalReplied", "lowConnects", "noConnects", "accountDisconnected"]>;
43
+ }, "strip", z.ZodTypeAny, {
44
+ type: "suitableLead" | "proposalSent" | "proposalViewed" | "proposalReplied" | "lowConnects" | "noConnects" | "accountDisconnected";
45
+ organizationId: string;
46
+ campaignId: string;
47
+ leadId: string;
48
+ }, {
49
+ type: "suitableLead" | "proposalSent" | "proposalViewed" | "proposalReplied" | "lowConnects" | "noConnects" | "accountDisconnected";
50
+ organizationId: string;
51
+ campaignId: string;
52
+ leadId: string;
53
+ }>;
54
+ export type SendNotificationRequest = z.infer<typeof sendNotificationRequestSchema>;
37
55
  export interface CampaignWebhook extends z.infer<typeof campaignWebhookSchema> {
38
56
  }
39
57
  export interface CampaignWebhookSettings extends z.infer<typeof campaignWebhookSettingsSchema> {
@@ -257,7 +257,7 @@ export declare const campaignSchema: z.ZodObject<{
257
257
  maximumBoost: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
258
258
  monthlyBudget: z.ZodNullable<z.ZodNumber>;
259
259
  boostingThreshold: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
260
- leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won", "lost"]>, z.ZodNumber>>;
260
+ leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>, z.ZodNumber>>;
261
261
  expenses: z.ZodObject<{
262
262
  biddingAmount: z.ZodDefault<z.ZodNumber>;
263
263
  boostingAmount: z.ZodDefault<z.ZodNumber>;
@@ -377,7 +377,7 @@ export declare const campaignSchema: z.ZodObject<{
377
377
  maximumBoost: number | null;
378
378
  monthlyBudget: number | null;
379
379
  boostingThreshold: number | null;
380
- leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won" | "lost", number>> | null;
380
+ leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won", number>> | null;
381
381
  expenses: {
382
382
  biddingAmount: number;
383
383
  boostingAmount: number;
@@ -458,7 +458,7 @@ export declare const campaignSchema: z.ZodObject<{
458
458
  updatedAt: number;
459
459
  confirmedBillingAt: number | null;
460
460
  monthlyBudget: number | null;
461
- leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won" | "lost", number>> | null;
461
+ leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won", number>> | null;
462
462
  expenses: {
463
463
  biddingAmount?: number | undefined;
464
464
  boostingAmount?: number | undefined;
@@ -722,7 +722,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
722
722
  maximumBoost: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
723
723
  monthlyBudget: z.ZodNullable<z.ZodNumber>;
724
724
  boostingThreshold: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
725
- leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won", "lost"]>, z.ZodNumber>>;
725
+ leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>, z.ZodNumber>>;
726
726
  expenses: z.ZodObject<{
727
727
  biddingAmount: z.ZodDefault<z.ZodNumber>;
728
728
  boostingAmount: z.ZodDefault<z.ZodNumber>;
@@ -839,7 +839,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
839
839
  maximumBoost: number | null;
840
840
  monthlyBudget: number | null;
841
841
  boostingThreshold: number | null;
842
- leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won" | "lost", number>> | null;
842
+ leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won", number>> | null;
843
843
  expenses: {
844
844
  biddingAmount: number;
845
845
  boostingAmount: number;
@@ -911,7 +911,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
911
911
  };
912
912
  confirmedBillingAt: number | null;
913
913
  monthlyBudget: number | null;
914
- leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won" | "lost", number>> | null;
914
+ leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won", number>> | null;
915
915
  expenses: {
916
916
  biddingAmount?: number | undefined;
917
917
  boostingAmount?: number | undefined;
@@ -1168,7 +1168,7 @@ export declare const updateCampaignSchema: z.ZodObject<{
1168
1168
  maximumBoost: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
1169
1169
  monthlyBudget: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1170
1170
  boostingThreshold: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
1171
- leadCounts: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won", "lost"]>, z.ZodNumber>>>;
1171
+ leadCounts: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>, z.ZodNumber>>>;
1172
1172
  expenses: z.ZodOptional<z.ZodObject<{
1173
1173
  biddingAmount: z.ZodDefault<z.ZodNumber>;
1174
1174
  boostingAmount: z.ZodDefault<z.ZodNumber>;
@@ -1286,7 +1286,7 @@ export declare const updateCampaignSchema: z.ZodObject<{
1286
1286
  maximumBoost?: number | null | undefined;
1287
1287
  monthlyBudget?: number | null | undefined;
1288
1288
  boostingThreshold?: number | null | undefined;
1289
- leadCounts?: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won" | "lost", number>> | null | undefined;
1289
+ leadCounts?: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won", number>> | null | undefined;
1290
1290
  expenses?: {
1291
1291
  biddingAmount: number;
1292
1292
  boostingAmount: number;
@@ -1368,7 +1368,7 @@ export declare const updateCampaignSchema: z.ZodObject<{
1368
1368
  maximumBoost?: number | null | undefined;
1369
1369
  monthlyBudget?: number | null | undefined;
1370
1370
  boostingThreshold?: number | null | undefined;
1371
- leadCounts?: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won" | "lost", number>> | null | undefined;
1371
+ leadCounts?: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won", number>> | null | undefined;
1372
1372
  expenses?: {
1373
1373
  biddingAmount?: number | undefined;
1374
1374
  boostingAmount?: number | undefined;
@@ -326,7 +326,7 @@ export declare const leadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
326
326
  answer: string;
327
327
  }>, "many">>;
328
328
  agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
329
- leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won", "lost"]>>;
329
+ leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>>;
330
330
  biddingAmount: z.ZodNullable<z.ZodNumber>;
331
331
  boosted: z.ZodNullable<z.ZodBoolean>;
332
332
  boostingAmount: z.ZodNullable<z.ZodNumber>;
@@ -433,7 +433,7 @@ export declare const leadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
433
433
  answer: string;
434
434
  }[] | null;
435
435
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
436
- leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost" | null;
436
+ leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | null;
437
437
  biddingAmount: number | null;
438
438
  boosted: boolean | null;
439
439
  boostingAmount: number | null;
@@ -561,7 +561,7 @@ export declare const leadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
561
561
  answer: string;
562
562
  }[] | null;
563
563
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
564
- leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost" | null;
564
+ leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | null;
565
565
  biddingAmount: number | null;
566
566
  boosted: boolean | null;
567
567
  boostingAmount: number | null;
@@ -906,7 +906,7 @@ export declare const leadResponseSchema: z.ZodObject<{
906
906
  answer: string;
907
907
  }>, "many">>;
908
908
  agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
909
- leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won", "lost"]>>;
909
+ leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>>;
910
910
  biddingAmount: z.ZodNullable<z.ZodNumber>;
911
911
  boosted: z.ZodNullable<z.ZodBoolean>;
912
912
  boostingAmount: z.ZodNullable<z.ZodNumber>;
@@ -1013,7 +1013,7 @@ export declare const leadResponseSchema: z.ZodObject<{
1013
1013
  answer: string;
1014
1014
  }[] | null;
1015
1015
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
1016
- leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost" | null;
1016
+ leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | null;
1017
1017
  biddingAmount: number | null;
1018
1018
  boosted: boolean | null;
1019
1019
  boostingAmount: number | null;
@@ -1141,7 +1141,7 @@ export declare const leadResponseSchema: z.ZodObject<{
1141
1141
  answer: string;
1142
1142
  }[] | null;
1143
1143
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
1144
- leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost" | null;
1144
+ leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | null;
1145
1145
  biddingAmount: number | null;
1146
1146
  boosted: boolean | null;
1147
1147
  boostingAmount: number | null;
@@ -1274,7 +1274,7 @@ export declare const leadResponseSchema: z.ZodObject<{
1274
1274
  answer: string;
1275
1275
  }[] | null;
1276
1276
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
1277
- leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost" | null;
1277
+ leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | null;
1278
1278
  biddingAmount: number | null;
1279
1279
  boosted: boolean | null;
1280
1280
  boostingAmount: number | null;
@@ -1407,7 +1407,7 @@ export declare const leadResponseSchema: z.ZodObject<{
1407
1407
  answer: string;
1408
1408
  }[] | null;
1409
1409
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
1410
- leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost" | null;
1410
+ leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | null;
1411
1411
  biddingAmount: number | null;
1412
1412
  boosted: boolean | null;
1413
1413
  boostingAmount: number | null;
@@ -2292,7 +2292,7 @@ export declare const findLeadsResponseSchema: z.ZodObject<{
2292
2292
  answer: string;
2293
2293
  }>, "many">>;
2294
2294
  agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
2295
- leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won", "lost"]>>;
2295
+ leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>>;
2296
2296
  biddingAmount: z.ZodNullable<z.ZodNumber>;
2297
2297
  boosted: z.ZodNullable<z.ZodBoolean>;
2298
2298
  boostingAmount: z.ZodNullable<z.ZodNumber>;
@@ -2399,7 +2399,7 @@ export declare const findLeadsResponseSchema: z.ZodObject<{
2399
2399
  answer: string;
2400
2400
  }[] | null;
2401
2401
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
2402
- leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost" | null;
2402
+ leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | null;
2403
2403
  biddingAmount: number | null;
2404
2404
  boosted: boolean | null;
2405
2405
  boostingAmount: number | null;
@@ -2527,7 +2527,7 @@ export declare const findLeadsResponseSchema: z.ZodObject<{
2527
2527
  answer: string;
2528
2528
  }[] | null;
2529
2529
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
2530
- leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost" | null;
2530
+ leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | null;
2531
2531
  biddingAmount: number | null;
2532
2532
  boosted: boolean | null;
2533
2533
  boostingAmount: number | null;
@@ -2771,7 +2771,7 @@ export declare const findLeadsResponseSchema: z.ZodObject<{
2771
2771
  answer: string;
2772
2772
  }[] | null;
2773
2773
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
2774
- leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost" | null;
2774
+ leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | null;
2775
2775
  biddingAmount: number | null;
2776
2776
  boosted: boolean | null;
2777
2777
  boostingAmount: number | null;
@@ -3015,7 +3015,7 @@ export declare const findLeadsResponseSchema: z.ZodObject<{
3015
3015
  answer: string;
3016
3016
  }[] | null;
3017
3017
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
3018
- leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost" | null;
3018
+ leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | null;
3019
3019
  biddingAmount: number | null;
3020
3020
  boosted: boolean | null;
3021
3021
  boostingAmount: number | null;
@@ -1,11 +1,11 @@
1
1
  import { z } from "zod";
2
2
  export declare const agentStatusSchema: z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>;
3
- export declare const leadStatusSchema: z.ZodEnum<["leads", "contacted", "viewed", "replied", "won", "lost"]>;
3
+ export declare const leadStatusSchema: z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>;
4
4
  export declare const updateLeadStatusSchema: z.ZodObject<{
5
5
  leadId: z.ZodString;
6
6
  organizationId: z.ZodString;
7
7
  campaignId: z.ZodString;
8
- status: z.ZodEnum<["leads", "contacted", "viewed", "replied", "won", "lost"]>;
8
+ status: z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>;
9
9
  proposalId: z.ZodOptional<z.ZodString>;
10
10
  userId: z.ZodOptional<z.ZodString>;
11
11
  wonAmount: z.ZodOptional<z.ZodNumber>;
@@ -13,7 +13,7 @@ export declare const updateLeadStatusSchema: z.ZodObject<{
13
13
  leadId: string;
14
14
  organizationId: string;
15
15
  campaignId: string;
16
- status: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost";
16
+ status: "leads" | "contacted" | "viewed" | "replied" | "won";
17
17
  proposalId?: string | undefined;
18
18
  userId?: string | undefined;
19
19
  wonAmount?: number | undefined;
@@ -21,7 +21,7 @@ export declare const updateLeadStatusSchema: z.ZodObject<{
21
21
  leadId: string;
22
22
  organizationId: string;
23
23
  campaignId: string;
24
- status: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost";
24
+ status: "leads" | "contacted" | "viewed" | "replied" | "won";
25
25
  proposalId?: string | undefined;
26
26
  userId?: string | undefined;
27
27
  wonAmount?: number | undefined;
@@ -290,13 +290,13 @@ export declare const leadStatusEventMetadata: z.ZodObject<{
290
290
  leadId: z.ZodString;
291
291
  userId: z.ZodString;
292
292
  metadata: z.ZodOptional<z.ZodObject<{
293
- status: z.ZodEnum<["leads", "contacted", "viewed", "replied", "won", "lost"]>;
293
+ status: z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>;
294
294
  proposalId: z.ZodNullable<z.ZodString>;
295
295
  }, "strip", z.ZodTypeAny, {
296
- status: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost";
296
+ status: "leads" | "contacted" | "viewed" | "replied" | "won";
297
297
  proposalId: string | null;
298
298
  }, {
299
- status: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost";
299
+ status: "leads" | "contacted" | "viewed" | "replied" | "won";
300
300
  proposalId: string | null;
301
301
  }>>;
302
302
  reason: z.ZodOptional<z.ZodString>;
@@ -307,7 +307,7 @@ export declare const leadStatusEventMetadata: z.ZodObject<{
307
307
  leadId: string;
308
308
  reason?: string | undefined;
309
309
  metadata?: {
310
- status: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost";
310
+ status: "leads" | "contacted" | "viewed" | "replied" | "won";
311
311
  proposalId: string | null;
312
312
  } | undefined;
313
313
  }, {
@@ -317,7 +317,7 @@ export declare const leadStatusEventMetadata: z.ZodObject<{
317
317
  leadId: string;
318
318
  reason?: string | undefined;
319
319
  metadata?: {
320
- status: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost";
320
+ status: "leads" | "contacted" | "viewed" | "replied" | "won";
321
321
  proposalId: string | null;
322
322
  } | undefined;
323
323
  }>;
@@ -618,19 +618,6 @@ export declare const organizationSettingsSchema: z.ZodObject<{
618
618
  category: string;
619
619
  }[] | null;
620
620
  }>;
621
- notifications: z.ZodObject<{
622
- emailEnabled: z.ZodBoolean;
623
- discordWebhookUrl: z.ZodNullable<z.ZodString>;
624
- slackWebhookUrl: z.ZodNullable<z.ZodString>;
625
- }, "strip", z.ZodTypeAny, {
626
- emailEnabled: boolean;
627
- discordWebhookUrl: string | null;
628
- slackWebhookUrl: string | null;
629
- }, {
630
- emailEnabled: boolean;
631
- discordWebhookUrl: string | null;
632
- slackWebhookUrl: string | null;
633
- }>;
634
621
  }, "strip", z.ZodTypeAny, {
635
622
  aiConfig: {
636
623
  questionRules: {
@@ -639,11 +626,6 @@ export declare const organizationSettingsSchema: z.ZodObject<{
639
626
  category: string;
640
627
  }[] | null;
641
628
  };
642
- notifications: {
643
- emailEnabled: boolean;
644
- discordWebhookUrl: string | null;
645
- slackWebhookUrl: string | null;
646
- };
647
629
  }, {
648
630
  aiConfig: {
649
631
  questionRules: {
@@ -652,11 +634,6 @@ export declare const organizationSettingsSchema: z.ZodObject<{
652
634
  category: string;
653
635
  }[] | null;
654
636
  };
655
- notifications: {
656
- emailEnabled: boolean;
657
- discordWebhookUrl: string | null;
658
- slackWebhookUrl: string | null;
659
- };
660
637
  }>;
661
638
  export declare const subscribePayloadSchema: z.ZodObject<{
662
639
  planId: z.ZodString;
@@ -341,7 +341,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
341
341
  maximumBoost: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodNumber>>;
342
342
  monthlyBudget: import("zod").ZodNullable<import("zod").ZodNumber>;
343
343
  boostingThreshold: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodNumber>>;
344
- leadCounts: import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodEnum<["leads", "contacted", "viewed", "replied", "won", "lost"]>, import("zod").ZodNumber>>;
344
+ leadCounts: import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>, import("zod").ZodNumber>>;
345
345
  expenses: import("zod").ZodObject<{
346
346
  biddingAmount: import("zod").ZodDefault<import("zod").ZodNumber>;
347
347
  boostingAmount: import("zod").ZodDefault<import("zod").ZodNumber>;
@@ -461,7 +461,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
461
461
  maximumBoost: number | null;
462
462
  monthlyBudget: number | null;
463
463
  boostingThreshold: number | null;
464
- leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won" | "lost", number>> | null;
464
+ leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won", number>> | null;
465
465
  expenses: {
466
466
  biddingAmount: number;
467
467
  boostingAmount: number;
@@ -542,7 +542,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
542
542
  updatedAt: number;
543
543
  confirmedBillingAt: number | null;
544
544
  monthlyBudget: number | null;
545
- leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won" | "lost", number>> | null;
545
+ leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won", number>> | null;
546
546
  expenses: {
547
547
  biddingAmount?: number | undefined;
548
548
  boostingAmount?: number | undefined;
@@ -1137,7 +1137,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1137
1137
  answer: string;
1138
1138
  }>, "many">>;
1139
1139
  agentStatus: import("zod").ZodNullable<import("zod").ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
1140
- leadStatus: import("zod").ZodNullable<import("zod").ZodEnum<["leads", "contacted", "viewed", "replied", "won", "lost"]>>;
1140
+ leadStatus: import("zod").ZodNullable<import("zod").ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>>;
1141
1141
  biddingAmount: import("zod").ZodNullable<import("zod").ZodNumber>;
1142
1142
  boosted: import("zod").ZodNullable<import("zod").ZodBoolean>;
1143
1143
  boostingAmount: import("zod").ZodNullable<import("zod").ZodNumber>;
@@ -1247,7 +1247,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1247
1247
  answer: string;
1248
1248
  }[] | null;
1249
1249
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
1250
- leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost" | null;
1250
+ leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | null;
1251
1251
  biddingTaskScheduled: boolean | null;
1252
1252
  scheduledBiddingTime: number | null;
1253
1253
  activity?: Partial<Record<"4h" | "24h", {
@@ -1375,7 +1375,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1375
1375
  answer: string;
1376
1376
  }[] | null;
1377
1377
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
1378
- leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost" | null;
1378
+ leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | null;
1379
1379
  biddingTaskScheduled: boolean | null;
1380
1380
  scheduledBiddingTime: number | null;
1381
1381
  activity?: Partial<Record<"4h" | "24h", {
@@ -1540,7 +1540,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1540
1540
  maximumBoost: number | null;
1541
1541
  monthlyBudget: number | null;
1542
1542
  boostingThreshold: number | null;
1543
- leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won" | "lost", number>> | null;
1543
+ leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won", number>> | null;
1544
1544
  expenses: {
1545
1545
  biddingAmount: number;
1546
1546
  boostingAmount: number;
@@ -1712,7 +1712,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1712
1712
  answer: string;
1713
1713
  }[] | null;
1714
1714
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
1715
- leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost" | null;
1715
+ leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | null;
1716
1716
  biddingTaskScheduled: boolean | null;
1717
1717
  scheduledBiddingTime: number | null;
1718
1718
  activity?: Partial<Record<"4h" | "24h", {
@@ -1822,7 +1822,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1822
1822
  updatedAt: number;
1823
1823
  confirmedBillingAt: number | null;
1824
1824
  monthlyBudget: number | null;
1825
- leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won" | "lost", number>> | null;
1825
+ leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won", number>> | null;
1826
1826
  expenses: {
1827
1827
  biddingAmount?: number | undefined;
1828
1828
  boostingAmount?: number | undefined;
@@ -1997,7 +1997,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1997
1997
  answer: string;
1998
1998
  }[] | null;
1999
1999
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
2000
- leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost" | null;
2000
+ leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | null;
2001
2001
  biddingTaskScheduled: boolean | null;
2002
2002
  scheduledBiddingTime: number | null;
2003
2003
  activity?: Partial<Record<"4h" | "24h", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lancer-shared",
3
- "version": "1.2.46",
3
+ "version": "1.2.48",
4
4
  "description": "This package contains shared stuff.",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "dist/bundle.cjs.js",