lancer-shared 1.2.177 → 1.2.179

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.
@@ -12693,6 +12693,7 @@ const leadStatusEnum = z.enum([
12693
12693
  'contacted',
12694
12694
  'insufficientConnects',
12695
12695
  'doesNotMeetCriteria',
12696
+ 'syncedInAnotherCampaign',
12696
12697
  'viewed',
12697
12698
  'replied',
12698
12699
  'won',
@@ -13255,6 +13256,7 @@ const updateCampaignAnalyticsSchema = z.object({
13255
13256
  'viewed',
13256
13257
  'replied',
13257
13258
  'doesNotMeetCriteria',
13259
+ 'syncedInAnotherCampaign',
13258
13260
  'insufficientConnects',
13259
13261
  'won',
13260
13262
  'leadsAnalyzed',
@@ -419,7 +419,7 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
419
419
  answer: string;
420
420
  }>, "many">>;
421
421
  agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
422
- leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "viewed", "replied", "won"]>>;
422
+ leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "viewed", "replied", "won"]>>;
423
423
  biddingAmount: z.ZodNullable<z.ZodNumber>;
424
424
  boosted: z.ZodNullable<z.ZodBoolean>;
425
425
  boostingAmount: z.ZodNullable<z.ZodNumber>;
@@ -533,7 +533,7 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
533
533
  suitabilityReason: string | null;
534
534
  proposal: string | null;
535
535
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
536
- leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "viewed" | "replied" | "won" | null;
536
+ leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "viewed" | "replied" | "won" | null;
537
537
  biddingAmount: number | null;
538
538
  boosted: boolean | null;
539
539
  boostingAmount: number | null;
@@ -668,7 +668,7 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
668
668
  suitabilityReason: string | null;
669
669
  proposal: string | null;
670
670
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
671
- leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "viewed" | "replied" | "won" | null;
671
+ leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "viewed" | "replied" | "won" | null;
672
672
  biddingAmount: number | null;
673
673
  boosted: boolean | null;
674
674
  boostingAmount: number | null;
@@ -819,7 +819,7 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
819
819
  suitabilityReason: string | null;
820
820
  proposal: string | null;
821
821
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
822
- leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "viewed" | "replied" | "won" | null;
822
+ leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "viewed" | "replied" | "won" | null;
823
823
  biddingAmount: number | null;
824
824
  boosted: boolean | null;
825
825
  boostingAmount: number | null;
@@ -964,7 +964,7 @@ export declare const agentCalculateSuitabilityRequestSchema: z.ZodObject<{
964
964
  suitabilityReason: string | null;
965
965
  proposal: string | null;
966
966
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
967
- leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "viewed" | "replied" | "won" | null;
967
+ leadStatus: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "viewed" | "replied" | "won" | null;
968
968
  biddingAmount: number | null;
969
969
  boosted: boolean | null;
970
970
  boostingAmount: number | null;
@@ -1026,7 +1026,8 @@ export declare const agentPickSpecialisedProfileResponseSchema: z.ZodObject<{
1026
1026
  profile: string;
1027
1027
  reason: string;
1028
1028
  }>;
1029
- export type AgentCalculateSuitabilityRequest = z.infer<typeof agentCalculateSuitabilityRequestSchema>;
1029
+ export interface AgentCalculateSuitabilityRequest extends z.infer<typeof agentCalculateSuitabilityRequestSchema> {
1030
+ }
1030
1031
  export interface AgentGenerateProposalRequest extends z.infer<typeof agentGenerateProposalRequestSchema> {
1031
1032
  }
1032
1033
  export interface AgentGenerateProposalResponse extends z.infer<typeof agentGenerateProposalResponseSchema> {
@@ -620,7 +620,7 @@ export declare const campaignStatusActivitySchema: z.ZodObject<z.objectUtil.exte
620
620
  sleepStartAtHour: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
621
621
  sleepEndAtHour: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
622
622
  sleepTimezone: z.ZodNullable<z.ZodString>;
623
- leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "viewed", "replied", "won"]>, z.ZodNumber>>;
623
+ leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "viewed", "replied", "won"]>, z.ZodNumber>>;
624
624
  expenses: z.ZodObject<{
625
625
  biddingAmount: z.ZodDefault<z.ZodNumber>;
626
626
  boostingAmount: z.ZodDefault<z.ZodNumber>;
@@ -673,6 +673,8 @@ export declare const campaignStatusActivitySchema: z.ZodObject<z.objectUtil.exte
673
673
  template: string;
674
674
  instructions: string;
675
675
  }>>;
676
+ organizationProfileId: z.ZodNullable<z.ZodString>;
677
+ lastSyncedProposalsAt: z.ZodNullable<z.ZodNumber>;
676
678
  }, "id" | "name">, "strip", z.ZodTypeAny, {
677
679
  id: string;
678
680
  name: string;
@@ -1179,7 +1181,7 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
1179
1181
  sleepStartAtHour: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1180
1182
  sleepEndAtHour: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1181
1183
  sleepTimezone: z.ZodNullable<z.ZodString>;
1182
- leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "viewed", "replied", "won"]>, z.ZodNumber>>;
1184
+ leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "viewed", "replied", "won"]>, z.ZodNumber>>;
1183
1185
  expenses: z.ZodObject<{
1184
1186
  biddingAmount: z.ZodDefault<z.ZodNumber>;
1185
1187
  boostingAmount: z.ZodDefault<z.ZodNumber>;
@@ -1232,6 +1234,8 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
1232
1234
  template: string;
1233
1235
  instructions: string;
1234
1236
  }>>;
1237
+ organizationProfileId: z.ZodNullable<z.ZodString>;
1238
+ lastSyncedProposalsAt: z.ZodNullable<z.ZodNumber>;
1235
1239
  }, "id" | "name">, "strip", z.ZodTypeAny, {
1236
1240
  id: string;
1237
1241
  name: string;
@@ -1560,7 +1564,7 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
1560
1564
  answer: string;
1561
1565
  }>, "many">>;
1562
1566
  agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
1563
- leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "viewed", "replied", "won"]>>;
1567
+ leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "viewed", "replied", "won"]>>;
1564
1568
  biddingAmount: z.ZodNullable<z.ZodNumber>;
1565
1569
  boosted: z.ZodNullable<z.ZodBoolean>;
1566
1570
  boostingAmount: z.ZodNullable<z.ZodNumber>;
@@ -2090,7 +2094,7 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
2090
2094
  sleepStartAtHour: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
2091
2095
  sleepEndAtHour: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
2092
2096
  sleepTimezone: z.ZodNullable<z.ZodString>;
2093
- leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "viewed", "replied", "won"]>, z.ZodNumber>>;
2097
+ leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "viewed", "replied", "won"]>, z.ZodNumber>>;
2094
2098
  expenses: z.ZodObject<{
2095
2099
  biddingAmount: z.ZodDefault<z.ZodNumber>;
2096
2100
  boostingAmount: z.ZodDefault<z.ZodNumber>;
@@ -2143,6 +2147,8 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
2143
2147
  template: string;
2144
2148
  instructions: string;
2145
2149
  }>>;
2150
+ organizationProfileId: z.ZodNullable<z.ZodString>;
2151
+ lastSyncedProposalsAt: z.ZodNullable<z.ZodNumber>;
2146
2152
  }, "id" | "name">, "strip", z.ZodTypeAny, {
2147
2153
  id: string;
2148
2154
  name: string;
@@ -2153,7 +2159,7 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
2153
2159
  creditBalance: z.ZodNumber;
2154
2160
  }, {
2155
2161
  type: z.ZodLiteral<"lead_status">;
2156
- status: z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "viewed", "replied", "won"]>;
2162
+ status: z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "viewed", "replied", "won"]>;
2157
2163
  lead: z.ZodObject<Pick<Omit<z.objectUtil.extendShape<{
2158
2164
  id: z.ZodNullable<z.ZodString>;
2159
2165
  uid: z.ZodNullable<z.ZodString>;
@@ -2472,7 +2478,7 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
2472
2478
  answer: string;
2473
2479
  }>, "many">>;
2474
2480
  agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
2475
- leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "viewed", "replied", "won"]>>;
2481
+ leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "viewed", "replied", "won"]>>;
2476
2482
  biddingAmount: z.ZodNullable<z.ZodNumber>;
2477
2483
  boosted: z.ZodNullable<z.ZodBoolean>;
2478
2484
  boostingAmount: z.ZodNullable<z.ZodNumber>;
@@ -2497,7 +2503,7 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
2497
2503
  creditBalance: z.ZodNumber;
2498
2504
  }>, "strip", z.ZodTypeAny, {
2499
2505
  type: "lead_status";
2500
- status: "contacted" | "viewed" | "replied" | "won" | "leads" | "insufficientConnects" | "doesNotMeetCriteria";
2506
+ status: "contacted" | "viewed" | "replied" | "won" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign";
2501
2507
  createdAt: number;
2502
2508
  organization: {
2503
2509
  id: string;
@@ -2516,7 +2522,7 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
2516
2522
  };
2517
2523
  }, {
2518
2524
  type: "lead_status";
2519
- status: "contacted" | "viewed" | "replied" | "won" | "leads" | "insufficientConnects" | "doesNotMeetCriteria";
2525
+ status: "contacted" | "viewed" | "replied" | "won" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign";
2520
2526
  createdAt: number;
2521
2527
  organization: {
2522
2528
  id: string;
@@ -3001,7 +3007,7 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
3001
3007
  sleepStartAtHour: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3002
3008
  sleepEndAtHour: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3003
3009
  sleepTimezone: z.ZodNullable<z.ZodString>;
3004
- leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "viewed", "replied", "won"]>, z.ZodNumber>>;
3010
+ leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "viewed", "replied", "won"]>, z.ZodNumber>>;
3005
3011
  expenses: z.ZodObject<{
3006
3012
  biddingAmount: z.ZodDefault<z.ZodNumber>;
3007
3013
  boostingAmount: z.ZodDefault<z.ZodNumber>;
@@ -3054,6 +3060,8 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
3054
3060
  template: string;
3055
3061
  instructions: string;
3056
3062
  }>>;
3063
+ organizationProfileId: z.ZodNullable<z.ZodString>;
3064
+ lastSyncedProposalsAt: z.ZodNullable<z.ZodNumber>;
3057
3065
  }, "id" | "name">, "strip", z.ZodTypeAny, {
3058
3066
  id: string;
3059
3067
  name: string;
@@ -3382,7 +3390,7 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
3382
3390
  answer: string;
3383
3391
  }>, "many">>;
3384
3392
  agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
3385
- leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "viewed", "replied", "won"]>>;
3393
+ leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "viewed", "replied", "won"]>>;
3386
3394
  biddingAmount: z.ZodNullable<z.ZodNumber>;
3387
3395
  boosted: z.ZodNullable<z.ZodBoolean>;
3388
3396
  boostingAmount: z.ZodNullable<z.ZodNumber>;
@@ -3909,7 +3917,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
3909
3917
  sleepStartAtHour: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3910
3918
  sleepEndAtHour: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
3911
3919
  sleepTimezone: z.ZodNullable<z.ZodString>;
3912
- leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "viewed", "replied", "won"]>, z.ZodNumber>>;
3920
+ leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "viewed", "replied", "won"]>, z.ZodNumber>>;
3913
3921
  expenses: z.ZodObject<{
3914
3922
  biddingAmount: z.ZodDefault<z.ZodNumber>;
3915
3923
  boostingAmount: z.ZodDefault<z.ZodNumber>;
@@ -3962,6 +3970,8 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
3962
3970
  template: string;
3963
3971
  instructions: string;
3964
3972
  }>>;
3973
+ organizationProfileId: z.ZodNullable<z.ZodString>;
3974
+ lastSyncedProposalsAt: z.ZodNullable<z.ZodNumber>;
3965
3975
  }, "id" | "name">, "strip", z.ZodTypeAny, {
3966
3976
  id: string;
3967
3977
  name: string;
@@ -4467,7 +4477,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
4467
4477
  sleepStartAtHour: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
4468
4478
  sleepEndAtHour: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
4469
4479
  sleepTimezone: z.ZodNullable<z.ZodString>;
4470
- leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "viewed", "replied", "won"]>, z.ZodNumber>>;
4480
+ leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "viewed", "replied", "won"]>, z.ZodNumber>>;
4471
4481
  expenses: z.ZodObject<{
4472
4482
  biddingAmount: z.ZodDefault<z.ZodNumber>;
4473
4483
  boostingAmount: z.ZodDefault<z.ZodNumber>;
@@ -4520,6 +4530,8 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
4520
4530
  template: string;
4521
4531
  instructions: string;
4522
4532
  }>>;
4533
+ organizationProfileId: z.ZodNullable<z.ZodString>;
4534
+ lastSyncedProposalsAt: z.ZodNullable<z.ZodNumber>;
4523
4535
  }, "id" | "name">, "strip", z.ZodTypeAny, {
4524
4536
  id: string;
4525
4537
  name: string;
@@ -4848,7 +4860,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
4848
4860
  answer: string;
4849
4861
  }>, "many">>;
4850
4862
  agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
4851
- leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "viewed", "replied", "won"]>>;
4863
+ leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "viewed", "replied", "won"]>>;
4852
4864
  biddingAmount: z.ZodNullable<z.ZodNumber>;
4853
4865
  boosted: z.ZodNullable<z.ZodBoolean>;
4854
4866
  boostingAmount: z.ZodNullable<z.ZodNumber>;
@@ -5377,7 +5389,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
5377
5389
  sleepStartAtHour: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
5378
5390
  sleepEndAtHour: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
5379
5391
  sleepTimezone: z.ZodNullable<z.ZodString>;
5380
- leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "viewed", "replied", "won"]>, z.ZodNumber>>;
5392
+ leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "viewed", "replied", "won"]>, z.ZodNumber>>;
5381
5393
  expenses: z.ZodObject<{
5382
5394
  biddingAmount: z.ZodDefault<z.ZodNumber>;
5383
5395
  boostingAmount: z.ZodDefault<z.ZodNumber>;
@@ -5430,6 +5442,8 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
5430
5442
  template: string;
5431
5443
  instructions: string;
5432
5444
  }>>;
5445
+ organizationProfileId: z.ZodNullable<z.ZodString>;
5446
+ lastSyncedProposalsAt: z.ZodNullable<z.ZodNumber>;
5433
5447
  }, "id" | "name">, "strip", z.ZodTypeAny, {
5434
5448
  id: string;
5435
5449
  name: string;
@@ -5440,7 +5454,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
5440
5454
  creditBalance: z.ZodNumber;
5441
5455
  }, {
5442
5456
  type: z.ZodLiteral<"lead_status">;
5443
- status: z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "viewed", "replied", "won"]>;
5457
+ status: z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "viewed", "replied", "won"]>;
5444
5458
  lead: z.ZodObject<Pick<Omit<z.objectUtil.extendShape<{
5445
5459
  id: z.ZodNullable<z.ZodString>;
5446
5460
  uid: z.ZodNullable<z.ZodString>;
@@ -5759,7 +5773,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
5759
5773
  answer: string;
5760
5774
  }>, "many">>;
5761
5775
  agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
5762
- leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "viewed", "replied", "won"]>>;
5776
+ leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "viewed", "replied", "won"]>>;
5763
5777
  biddingAmount: z.ZodNullable<z.ZodNumber>;
5764
5778
  boosted: z.ZodNullable<z.ZodBoolean>;
5765
5779
  boostingAmount: z.ZodNullable<z.ZodNumber>;
@@ -5784,7 +5798,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
5784
5798
  creditBalance: z.ZodNumber;
5785
5799
  }>, "strip", z.ZodTypeAny, {
5786
5800
  type: "lead_status";
5787
- status: "contacted" | "viewed" | "replied" | "won" | "leads" | "insufficientConnects" | "doesNotMeetCriteria";
5801
+ status: "contacted" | "viewed" | "replied" | "won" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign";
5788
5802
  createdAt: number;
5789
5803
  organization: {
5790
5804
  id: string;
@@ -5803,7 +5817,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
5803
5817
  };
5804
5818
  }, {
5805
5819
  type: "lead_status";
5806
- status: "contacted" | "viewed" | "replied" | "won" | "leads" | "insufficientConnects" | "doesNotMeetCriteria";
5820
+ status: "contacted" | "viewed" | "replied" | "won" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign";
5807
5821
  createdAt: number;
5808
5822
  organization: {
5809
5823
  id: string;
@@ -6287,7 +6301,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
6287
6301
  sleepStartAtHour: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
6288
6302
  sleepEndAtHour: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
6289
6303
  sleepTimezone: z.ZodNullable<z.ZodString>;
6290
- leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "viewed", "replied", "won"]>, z.ZodNumber>>;
6304
+ leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "viewed", "replied", "won"]>, z.ZodNumber>>;
6291
6305
  expenses: z.ZodObject<{
6292
6306
  biddingAmount: z.ZodDefault<z.ZodNumber>;
6293
6307
  boostingAmount: z.ZodDefault<z.ZodNumber>;
@@ -6340,6 +6354,8 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
6340
6354
  template: string;
6341
6355
  instructions: string;
6342
6356
  }>>;
6357
+ organizationProfileId: z.ZodNullable<z.ZodString>;
6358
+ lastSyncedProposalsAt: z.ZodNullable<z.ZodNumber>;
6343
6359
  }, "id" | "name">, "strip", z.ZodTypeAny, {
6344
6360
  id: string;
6345
6361
  name: string;
@@ -6668,7 +6684,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
6668
6684
  answer: string;
6669
6685
  }>, "many">>;
6670
6686
  agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
6671
- leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "viewed", "replied", "won"]>>;
6687
+ leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "viewed", "replied", "won"]>>;
6672
6688
  biddingAmount: z.ZodNullable<z.ZodNumber>;
6673
6689
  boosted: z.ZodNullable<z.ZodBoolean>;
6674
6690
  boostingAmount: z.ZodNullable<z.ZodNumber>;
@@ -7060,7 +7076,7 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
7060
7076
  answer: string;
7061
7077
  }>, "many">>;
7062
7078
  agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
7063
- leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "viewed", "replied", "won"]>>;
7079
+ leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "viewed", "replied", "won"]>>;
7064
7080
  biddingAmount: z.ZodNullable<z.ZodNumber>;
7065
7081
  boosted: z.ZodNullable<z.ZodBoolean>;
7066
7082
  boostingAmount: z.ZodNullable<z.ZodNumber>;
@@ -7106,7 +7122,7 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
7106
7122
  };
7107
7123
  }>, z.ZodObject<{
7108
7124
  type: z.ZodLiteral<"lead_status">;
7109
- status: z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "viewed", "replied", "won"]>;
7125
+ status: z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "viewed", "replied", "won"]>;
7110
7126
  lead: z.ZodObject<Pick<Omit<z.objectUtil.extendShape<{
7111
7127
  id: z.ZodNullable<z.ZodString>;
7112
7128
  uid: z.ZodNullable<z.ZodString>;
@@ -7425,7 +7441,7 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
7425
7441
  answer: string;
7426
7442
  }>, "many">>;
7427
7443
  agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
7428
- leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "viewed", "replied", "won"]>>;
7444
+ leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "viewed", "replied", "won"]>>;
7429
7445
  biddingAmount: z.ZodNullable<z.ZodNumber>;
7430
7446
  boosted: z.ZodNullable<z.ZodBoolean>;
7431
7447
  boostingAmount: z.ZodNullable<z.ZodNumber>;
@@ -7450,7 +7466,7 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
7450
7466
  creditBalance: z.ZodNumber;
7451
7467
  }, "strip", z.ZodTypeAny, {
7452
7468
  type: "lead_status";
7453
- status: "contacted" | "viewed" | "replied" | "won" | "leads" | "insufficientConnects" | "doesNotMeetCriteria";
7469
+ status: "contacted" | "viewed" | "replied" | "won" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign";
7454
7470
  creditBalance: number;
7455
7471
  lead: {
7456
7472
  id: string | null;
@@ -7460,7 +7476,7 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
7460
7476
  };
7461
7477
  }, {
7462
7478
  type: "lead_status";
7463
- status: "contacted" | "viewed" | "replied" | "won" | "leads" | "insufficientConnects" | "doesNotMeetCriteria";
7479
+ status: "contacted" | "viewed" | "replied" | "won" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign";
7464
7480
  creditBalance: number;
7465
7481
  lead: {
7466
7482
  id: string | null;
@@ -7788,7 +7804,7 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
7788
7804
  answer: string;
7789
7805
  }>, "many">>;
7790
7806
  agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
7791
- leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "viewed", "replied", "won"]>>;
7807
+ leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "viewed", "replied", "won"]>>;
7792
7808
  biddingAmount: z.ZodNullable<z.ZodNumber>;
7793
7809
  boosted: z.ZodNullable<z.ZodBoolean>;
7794
7810
  boostingAmount: z.ZodNullable<z.ZodNumber>;
@@ -7833,15 +7849,15 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
7833
7849
  export declare const updateCampaignAnalyticsSchema: z.ZodObject<{
7834
7850
  organizationId: z.ZodString;
7835
7851
  campaignId: z.ZodString;
7836
- fields: z.ZodArray<z.ZodEnum<["contacted", "viewed", "replied", "doesNotMeetCriteria", "insufficientConnects", "won", "leadsAnalyzed", "leadsFailed", "proposalsFailed", "suitableJobs", "unsuitableJobs", "wonAmount"]>, "many">;
7852
+ fields: z.ZodArray<z.ZodEnum<["contacted", "viewed", "replied", "doesNotMeetCriteria", "syncedInAnotherCampaign", "insufficientConnects", "won", "leadsAnalyzed", "leadsFailed", "proposalsFailed", "suitableJobs", "unsuitableJobs", "wonAmount"]>, "many">;
7837
7853
  }, "strip", z.ZodTypeAny, {
7838
7854
  campaignId: string;
7839
7855
  organizationId: string;
7840
- fields: ("contacted" | "viewed" | "replied" | "won" | "leadsAnalyzed" | "leadsFailed" | "suitableJobs" | "unsuitableJobs" | "wonAmount" | "insufficientConnects" | "doesNotMeetCriteria" | "proposalsFailed")[];
7856
+ fields: ("contacted" | "viewed" | "replied" | "won" | "leadsAnalyzed" | "leadsFailed" | "suitableJobs" | "unsuitableJobs" | "wonAmount" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "proposalsFailed")[];
7841
7857
  }, {
7842
7858
  campaignId: string;
7843
7859
  organizationId: string;
7844
- fields: ("contacted" | "viewed" | "replied" | "won" | "leadsAnalyzed" | "leadsFailed" | "suitableJobs" | "unsuitableJobs" | "wonAmount" | "insufficientConnects" | "doesNotMeetCriteria" | "proposalsFailed")[];
7860
+ fields: ("contacted" | "viewed" | "replied" | "won" | "leadsAnalyzed" | "leadsFailed" | "suitableJobs" | "unsuitableJobs" | "wonAmount" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "proposalsFailed")[];
7845
7861
  }>;
7846
7862
  export type CampaignAnalytics = z.infer<typeof campaignAnalyticsSchema>;
7847
7863
  export type CampaignAnalyticsStats = z.infer<typeof campaignAnalyticsStatsSchema>;
@@ -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 leadStatusEnum: z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "viewed", "replied", "won"]>;
3
+ export declare const leadStatusEnum: z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "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", "insufficientConnects", "doesNotMeetCriteria", "viewed", "replied", "won"]>;
8
+ status: z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "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" | "insufficientConnects" | "doesNotMeetCriteria" | "viewed" | "replied" | "won";
16
+ status: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "viewed" | "replied" | "won";
17
17
  proposalId?: string | undefined;
18
18
  userId?: string | undefined;
19
19
  wonAmount?: number | undefined;
@@ -21,19 +21,19 @@ export declare const updateLeadStatusSchema: z.ZodObject<{
21
21
  leadId: string;
22
22
  organizationId: string;
23
23
  campaignId: string;
24
- status: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "viewed" | "replied" | "won";
24
+ status: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "viewed" | "replied" | "won";
25
25
  proposalId?: string | undefined;
26
26
  userId?: string | undefined;
27
27
  wonAmount?: number | undefined;
28
28
  }>;
29
29
  export declare const updateOrganizationLeadsStatusPayloadSchema: z.ZodArray<z.ZodObject<{
30
30
  applicationUid: z.ZodString;
31
- status: z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "viewed", "replied", "won"]>;
31
+ status: z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "viewed", "replied", "won"]>;
32
32
  }, "strip", z.ZodTypeAny, {
33
- status: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "viewed" | "replied" | "won";
33
+ status: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "viewed" | "replied" | "won";
34
34
  applicationUid: string;
35
35
  }, {
36
- status: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "viewed" | "replied" | "won";
36
+ status: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "viewed" | "replied" | "won";
37
37
  applicationUid: string;
38
38
  }>, "many">;
39
39
  export type LeadStatus = z.infer<typeof leadStatusEnum>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lancer-shared",
3
- "version": "1.2.177",
3
+ "version": "1.2.179",
4
4
  "description": "This package contains shared stuff.",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "dist/bundle.cjs.js",