lancer-shared 1.2.348 → 1.2.350

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.
@@ -475,7 +475,7 @@ export declare const campaignStatusActivitySchema: z.ZodObject<z.objectUtil.exte
475
475
  subscription: z.ZodNullable<z.ZodObject<{
476
476
  planId: z.ZodString;
477
477
  pendingPlanId: z.ZodNullable<z.ZodString>;
478
- status: z.ZodEnum<["active", "trialing", "cancelled", "paused", "payment_processing", "payment_pending", "payment_failed"]>;
478
+ status: z.ZodEnum<["active", "trialing", "archived", "cancelled", "paused", "payment_processing", "payment_pending", "payment_failed"]>;
479
479
  startedAt: z.ZodNumber;
480
480
  currentPeriodEnd: z.ZodNumber;
481
481
  stripe: z.ZodObject<{
@@ -543,7 +543,7 @@ export declare const campaignStatusActivitySchema: z.ZodObject<z.objectUtil.exte
543
543
  usBidderSubscriptionItemId: z.ZodNullable<z.ZodString>;
544
544
  }, "strip", z.ZodTypeAny, {
545
545
  source: "manual" | "stripe";
546
- status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
546
+ status: "active" | "paused" | "archived" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
547
547
  planId: string;
548
548
  stripe: {
549
549
  id: string;
@@ -568,7 +568,7 @@ export declare const campaignStatusActivitySchema: z.ZodObject<z.objectUtil.exte
568
568
  usBidderSubscriptionItemId: string | null;
569
569
  }, {
570
570
  source: "manual" | "stripe";
571
- status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
571
+ status: "active" | "paused" | "archived" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
572
572
  planId: string;
573
573
  stripe: {
574
574
  id: string;
@@ -1143,7 +1143,7 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
1143
1143
  subscription: z.ZodNullable<z.ZodObject<{
1144
1144
  planId: z.ZodString;
1145
1145
  pendingPlanId: z.ZodNullable<z.ZodString>;
1146
- status: z.ZodEnum<["active", "trialing", "cancelled", "paused", "payment_processing", "payment_pending", "payment_failed"]>;
1146
+ status: z.ZodEnum<["active", "trialing", "archived", "cancelled", "paused", "payment_processing", "payment_pending", "payment_failed"]>;
1147
1147
  startedAt: z.ZodNumber;
1148
1148
  currentPeriodEnd: z.ZodNumber;
1149
1149
  stripe: z.ZodObject<{
@@ -1211,7 +1211,7 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
1211
1211
  usBidderSubscriptionItemId: z.ZodNullable<z.ZodString>;
1212
1212
  }, "strip", z.ZodTypeAny, {
1213
1213
  source: "manual" | "stripe";
1214
- status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
1214
+ status: "active" | "paused" | "archived" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
1215
1215
  planId: string;
1216
1216
  stripe: {
1217
1217
  id: string;
@@ -1236,7 +1236,7 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
1236
1236
  usBidderSubscriptionItemId: string | null;
1237
1237
  }, {
1238
1238
  source: "manual" | "stripe";
1239
- status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
1239
+ status: "active" | "paused" | "archived" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
1240
1240
  planId: string;
1241
1241
  stripe: {
1242
1242
  id: string;
@@ -2243,7 +2243,7 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
2243
2243
  subscription: z.ZodNullable<z.ZodObject<{
2244
2244
  planId: z.ZodString;
2245
2245
  pendingPlanId: z.ZodNullable<z.ZodString>;
2246
- status: z.ZodEnum<["active", "trialing", "cancelled", "paused", "payment_processing", "payment_pending", "payment_failed"]>;
2246
+ status: z.ZodEnum<["active", "trialing", "archived", "cancelled", "paused", "payment_processing", "payment_pending", "payment_failed"]>;
2247
2247
  startedAt: z.ZodNumber;
2248
2248
  currentPeriodEnd: z.ZodNumber;
2249
2249
  stripe: z.ZodObject<{
@@ -2311,7 +2311,7 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
2311
2311
  usBidderSubscriptionItemId: z.ZodNullable<z.ZodString>;
2312
2312
  }, "strip", z.ZodTypeAny, {
2313
2313
  source: "manual" | "stripe";
2314
- status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
2314
+ status: "active" | "paused" | "archived" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
2315
2315
  planId: string;
2316
2316
  stripe: {
2317
2317
  id: string;
@@ -2336,7 +2336,7 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
2336
2336
  usBidderSubscriptionItemId: string | null;
2337
2337
  }, {
2338
2338
  source: "manual" | "stripe";
2339
- status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
2339
+ status: "active" | "paused" | "archived" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
2340
2340
  planId: string;
2341
2341
  stripe: {
2342
2342
  id: string;
@@ -3343,7 +3343,7 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
3343
3343
  subscription: z.ZodNullable<z.ZodObject<{
3344
3344
  planId: z.ZodString;
3345
3345
  pendingPlanId: z.ZodNullable<z.ZodString>;
3346
- status: z.ZodEnum<["active", "trialing", "cancelled", "paused", "payment_processing", "payment_pending", "payment_failed"]>;
3346
+ status: z.ZodEnum<["active", "trialing", "archived", "cancelled", "paused", "payment_processing", "payment_pending", "payment_failed"]>;
3347
3347
  startedAt: z.ZodNumber;
3348
3348
  currentPeriodEnd: z.ZodNumber;
3349
3349
  stripe: z.ZodObject<{
@@ -3411,7 +3411,7 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
3411
3411
  usBidderSubscriptionItemId: z.ZodNullable<z.ZodString>;
3412
3412
  }, "strip", z.ZodTypeAny, {
3413
3413
  source: "manual" | "stripe";
3414
- status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
3414
+ status: "active" | "paused" | "archived" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
3415
3415
  planId: string;
3416
3416
  stripe: {
3417
3417
  id: string;
@@ -3436,7 +3436,7 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
3436
3436
  usBidderSubscriptionItemId: string | null;
3437
3437
  }, {
3438
3438
  source: "manual" | "stripe";
3439
- status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
3439
+ status: "active" | "paused" | "archived" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
3440
3440
  planId: string;
3441
3441
  stripe: {
3442
3442
  id: string;
@@ -4440,7 +4440,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
4440
4440
  subscription: z.ZodNullable<z.ZodObject<{
4441
4441
  planId: z.ZodString;
4442
4442
  pendingPlanId: z.ZodNullable<z.ZodString>;
4443
- status: z.ZodEnum<["active", "trialing", "cancelled", "paused", "payment_processing", "payment_pending", "payment_failed"]>;
4443
+ status: z.ZodEnum<["active", "trialing", "archived", "cancelled", "paused", "payment_processing", "payment_pending", "payment_failed"]>;
4444
4444
  startedAt: z.ZodNumber;
4445
4445
  currentPeriodEnd: z.ZodNumber;
4446
4446
  stripe: z.ZodObject<{
@@ -4508,7 +4508,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
4508
4508
  usBidderSubscriptionItemId: z.ZodNullable<z.ZodString>;
4509
4509
  }, "strip", z.ZodTypeAny, {
4510
4510
  source: "manual" | "stripe";
4511
- status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
4511
+ status: "active" | "paused" | "archived" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
4512
4512
  planId: string;
4513
4513
  stripe: {
4514
4514
  id: string;
@@ -4533,7 +4533,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
4533
4533
  usBidderSubscriptionItemId: string | null;
4534
4534
  }, {
4535
4535
  source: "manual" | "stripe";
4536
- status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
4536
+ status: "active" | "paused" | "archived" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
4537
4537
  planId: string;
4538
4538
  stripe: {
4539
4539
  id: string;
@@ -5107,7 +5107,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
5107
5107
  subscription: z.ZodNullable<z.ZodObject<{
5108
5108
  planId: z.ZodString;
5109
5109
  pendingPlanId: z.ZodNullable<z.ZodString>;
5110
- status: z.ZodEnum<["active", "trialing", "cancelled", "paused", "payment_processing", "payment_pending", "payment_failed"]>;
5110
+ status: z.ZodEnum<["active", "trialing", "archived", "cancelled", "paused", "payment_processing", "payment_pending", "payment_failed"]>;
5111
5111
  startedAt: z.ZodNumber;
5112
5112
  currentPeriodEnd: z.ZodNumber;
5113
5113
  stripe: z.ZodObject<{
@@ -5175,7 +5175,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
5175
5175
  usBidderSubscriptionItemId: z.ZodNullable<z.ZodString>;
5176
5176
  }, "strip", z.ZodTypeAny, {
5177
5177
  source: "manual" | "stripe";
5178
- status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
5178
+ status: "active" | "paused" | "archived" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
5179
5179
  planId: string;
5180
5180
  stripe: {
5181
5181
  id: string;
@@ -5200,7 +5200,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
5200
5200
  usBidderSubscriptionItemId: string | null;
5201
5201
  }, {
5202
5202
  source: "manual" | "stripe";
5203
- status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
5203
+ status: "active" | "paused" | "archived" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
5204
5204
  planId: string;
5205
5205
  stripe: {
5206
5206
  id: string;
@@ -6206,7 +6206,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
6206
6206
  subscription: z.ZodNullable<z.ZodObject<{
6207
6207
  planId: z.ZodString;
6208
6208
  pendingPlanId: z.ZodNullable<z.ZodString>;
6209
- status: z.ZodEnum<["active", "trialing", "cancelled", "paused", "payment_processing", "payment_pending", "payment_failed"]>;
6209
+ status: z.ZodEnum<["active", "trialing", "archived", "cancelled", "paused", "payment_processing", "payment_pending", "payment_failed"]>;
6210
6210
  startedAt: z.ZodNumber;
6211
6211
  currentPeriodEnd: z.ZodNumber;
6212
6212
  stripe: z.ZodObject<{
@@ -6274,7 +6274,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
6274
6274
  usBidderSubscriptionItemId: z.ZodNullable<z.ZodString>;
6275
6275
  }, "strip", z.ZodTypeAny, {
6276
6276
  source: "manual" | "stripe";
6277
- status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
6277
+ status: "active" | "paused" | "archived" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
6278
6278
  planId: string;
6279
6279
  stripe: {
6280
6280
  id: string;
@@ -6299,7 +6299,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
6299
6299
  usBidderSubscriptionItemId: string | null;
6300
6300
  }, {
6301
6301
  source: "manual" | "stripe";
6302
- status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
6302
+ status: "active" | "paused" | "archived" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
6303
6303
  planId: string;
6304
6304
  stripe: {
6305
6305
  id: string;
@@ -7305,7 +7305,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
7305
7305
  subscription: z.ZodNullable<z.ZodObject<{
7306
7306
  planId: z.ZodString;
7307
7307
  pendingPlanId: z.ZodNullable<z.ZodString>;
7308
- status: z.ZodEnum<["active", "trialing", "cancelled", "paused", "payment_processing", "payment_pending", "payment_failed"]>;
7308
+ status: z.ZodEnum<["active", "trialing", "archived", "cancelled", "paused", "payment_processing", "payment_pending", "payment_failed"]>;
7309
7309
  startedAt: z.ZodNumber;
7310
7310
  currentPeriodEnd: z.ZodNumber;
7311
7311
  stripe: z.ZodObject<{
@@ -7373,7 +7373,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
7373
7373
  usBidderSubscriptionItemId: z.ZodNullable<z.ZodString>;
7374
7374
  }, "strip", z.ZodTypeAny, {
7375
7375
  source: "manual" | "stripe";
7376
- status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
7376
+ status: "active" | "paused" | "archived" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
7377
7377
  planId: string;
7378
7378
  stripe: {
7379
7379
  id: string;
@@ -7398,7 +7398,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
7398
7398
  usBidderSubscriptionItemId: string | null;
7399
7399
  }, {
7400
7400
  source: "manual" | "stripe";
7401
- status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
7401
+ status: "active" | "paused" | "archived" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
7402
7402
  planId: string;
7403
7403
  stripe: {
7404
7404
  id: string;
@@ -554,6 +554,7 @@ export declare const campaignSchema: z.ZodObject<{
554
554
  averageHourlyRateIncludeClientsWithLessThanXPostedJobs: number | null;
555
555
  searchQueryMode?: "custom" | "builder" | null | undefined;
556
556
  };
557
+ organizationProfileId: string | null;
557
558
  limits: {
558
559
  enabled: boolean;
559
560
  maxDailyProposalsSent: number;
@@ -579,7 +580,6 @@ export declare const campaignSchema: z.ZodObject<{
579
580
  status: "active" | "archived";
580
581
  instructions: string;
581
582
  } | null;
582
- organizationProfileId: string | null;
583
583
  lastSyncedProposalsAt: number | null;
584
584
  workTime: {
585
585
  days: ("monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday")[];
@@ -676,6 +676,7 @@ export declare const campaignSchema: z.ZodObject<{
676
676
  averageHourlyRateIncludeClientsWithLessThanXPostedJobs: number | null;
677
677
  searchQueryMode?: "custom" | "builder" | null | undefined;
678
678
  };
679
+ organizationProfileId: string | null;
679
680
  limits: {
680
681
  enabled: boolean;
681
682
  maxDailyProposalsSent: number;
@@ -700,7 +701,6 @@ export declare const campaignSchema: z.ZodObject<{
700
701
  status: "active" | "archived";
701
702
  instructions: string;
702
703
  } | null;
703
- organizationProfileId: string | null;
704
704
  lastSyncedProposalsAt: number | null;
705
705
  workTime: {
706
706
  days: ("monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday")[];
@@ -1211,6 +1211,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
1211
1211
  averageHourlyRateIncludeClientsWithLessThanXPostedJobs: number | null;
1212
1212
  searchQueryMode?: "custom" | "builder" | null | undefined;
1213
1213
  };
1214
+ organizationProfileId: string | null;
1214
1215
  limits: {
1215
1216
  enabled: boolean;
1216
1217
  maxDailyProposalsSent: number;
@@ -1236,7 +1237,6 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
1236
1237
  status: "active" | "archived";
1237
1238
  instructions: string;
1238
1239
  } | null;
1239
- organizationProfileId: string | null;
1240
1240
  lastSyncedProposalsAt: number | null;
1241
1241
  workTime: {
1242
1242
  days: ("monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday")[];
@@ -1322,6 +1322,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
1322
1322
  averageHourlyRateIncludeClientsWithLessThanXPostedJobs: number | null;
1323
1323
  searchQueryMode?: "custom" | "builder" | null | undefined;
1324
1324
  };
1325
+ organizationProfileId: string | null;
1325
1326
  limits: {
1326
1327
  enabled: boolean;
1327
1328
  maxDailyProposalsSent: number;
@@ -1346,7 +1347,6 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
1346
1347
  status: "active" | "archived";
1347
1348
  instructions: string;
1348
1349
  } | null;
1349
- organizationProfileId: string | null;
1350
1350
  lastSyncedProposalsAt: number | null;
1351
1351
  workTime: {
1352
1352
  days: ("monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday")[];
@@ -1670,6 +1670,7 @@ export declare const updateCampaignSchema: z.ZodObject<{
1670
1670
  averageHourlyRateIncludeClientsWithLessThanXPostedJobs: number | null;
1671
1671
  searchQueryMode?: "custom" | "builder" | null | undefined;
1672
1672
  }>>;
1673
+ organizationProfileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1673
1674
  limits: z.ZodOptional<z.ZodObject<{
1674
1675
  maxDailyProposalsSent: z.ZodNumber;
1675
1676
  enabled: z.ZodBoolean;
@@ -1725,7 +1726,6 @@ export declare const updateCampaignSchema: z.ZodObject<{
1725
1726
  status: "active" | "archived";
1726
1727
  instructions: string;
1727
1728
  }>>>;
1728
- organizationProfileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1729
1729
  lastSyncedProposalsAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1730
1730
  workTime: z.ZodOptional<z.ZodObject<{
1731
1731
  enabled: z.ZodBoolean;
@@ -1846,6 +1846,7 @@ export declare const updateCampaignSchema: z.ZodObject<{
1846
1846
  averageHourlyRateIncludeClientsWithLessThanXPostedJobs: number | null;
1847
1847
  searchQueryMode?: "custom" | "builder" | null | undefined;
1848
1848
  } | undefined;
1849
+ organizationProfileId?: string | null | undefined;
1849
1850
  limits?: {
1850
1851
  enabled: boolean;
1851
1852
  maxDailyProposalsSent: number;
@@ -1871,7 +1872,6 @@ export declare const updateCampaignSchema: z.ZodObject<{
1871
1872
  status: "active" | "archived";
1872
1873
  instructions: string;
1873
1874
  } | null | undefined;
1874
- organizationProfileId?: string | null | undefined;
1875
1875
  lastSyncedProposalsAt?: number | null | undefined;
1876
1876
  workTime?: {
1877
1877
  days: ("monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday")[];
@@ -1970,6 +1970,7 @@ export declare const updateCampaignSchema: z.ZodObject<{
1970
1970
  averageHourlyRateIncludeClientsWithLessThanXPostedJobs: number | null;
1971
1971
  searchQueryMode?: "custom" | "builder" | null | undefined;
1972
1972
  } | undefined;
1973
+ organizationProfileId?: string | null | undefined;
1973
1974
  limits?: {
1974
1975
  enabled: boolean;
1975
1976
  maxDailyProposalsSent: number;
@@ -1995,7 +1996,6 @@ export declare const updateCampaignSchema: z.ZodObject<{
1995
1996
  status: "active" | "archived";
1996
1997
  instructions: string;
1997
1998
  } | null | undefined;
1998
- organizationProfileId?: string | null | undefined;
1999
1999
  lastSyncedProposalsAt?: number | null | undefined;
2000
2000
  workTime?: {
2001
2001
  days: ("monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday")[];
@@ -365,6 +365,168 @@ export declare const organizationCampaignStatsSchema: z.ZodObject<{
365
365
  };
366
366
  }[];
367
367
  }>;
368
+ export declare const organizationAnalyticsOverviewQuerySchema: z.ZodObject<{
369
+ periodType: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"weekly">, z.ZodLiteral<"monthly">, z.ZodLiteral<"quarterly">, z.ZodLiteral<"yearly">, z.ZodLiteral<"allTime">]>>;
370
+ date: z.ZodString;
371
+ }, "strip", z.ZodTypeAny, {
372
+ date: string;
373
+ periodType: "monthly" | "quarterly" | "yearly" | "weekly" | "allTime";
374
+ }, {
375
+ date: string;
376
+ periodType?: "monthly" | "quarterly" | "yearly" | "weekly" | "allTime" | undefined;
377
+ }>;
378
+ export declare const organizationAnalyticsOverviewItemSchema: z.ZodObject<{
379
+ organizationId: z.ZodString;
380
+ organizationName: z.ZodString;
381
+ planId: z.ZodNullable<z.ZodString>;
382
+ planName: z.ZodNullable<z.ZodString>;
383
+ subscriptionStatus: z.ZodNullable<z.ZodEnum<["active", "trialing", "archived", "cancelled", "paused", "payment_processing", "payment_pending", "payment_failed"]>>;
384
+ billingInterval: z.ZodNullable<z.ZodEnum<["monthly", "quarterly", "yearly"]>>;
385
+ campaignCount: z.ZodNumber;
386
+ activeCampaignCount: z.ZodNumber;
387
+ periodStats: z.ZodObject<{
388
+ leadsAnalyzed: z.ZodNumber;
389
+ contactedSync: z.ZodNumber;
390
+ viewed: z.ZodNumber;
391
+ replied: z.ZodNumber;
392
+ totalBiddingAmount: z.ZodNumber;
393
+ totalBoostedAmount: z.ZodNumber;
394
+ effectiveBoostedAmount: z.ZodNumber;
395
+ costPerReply: z.ZodNumber;
396
+ }, "strip", z.ZodTypeAny, {
397
+ viewed: number;
398
+ replied: number;
399
+ leadsAnalyzed: number;
400
+ contactedSync: number;
401
+ totalBiddingAmount: number;
402
+ totalBoostedAmount: number;
403
+ effectiveBoostedAmount: number;
404
+ costPerReply: number;
405
+ }, {
406
+ viewed: number;
407
+ replied: number;
408
+ leadsAnalyzed: number;
409
+ contactedSync: number;
410
+ totalBiddingAmount: number;
411
+ totalBoostedAmount: number;
412
+ effectiveBoostedAmount: number;
413
+ costPerReply: number;
414
+ }>;
415
+ }, "strip", z.ZodTypeAny, {
416
+ organizationId: string;
417
+ planId: string | null;
418
+ billingInterval: "monthly" | "quarterly" | "yearly" | null;
419
+ organizationName: string;
420
+ campaignCount: number;
421
+ activeCampaignCount: number;
422
+ planName: string | null;
423
+ subscriptionStatus: "active" | "paused" | "archived" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed" | null;
424
+ periodStats: {
425
+ viewed: number;
426
+ replied: number;
427
+ leadsAnalyzed: number;
428
+ contactedSync: number;
429
+ totalBiddingAmount: number;
430
+ totalBoostedAmount: number;
431
+ effectiveBoostedAmount: number;
432
+ costPerReply: number;
433
+ };
434
+ }, {
435
+ organizationId: string;
436
+ planId: string | null;
437
+ billingInterval: "monthly" | "quarterly" | "yearly" | null;
438
+ organizationName: string;
439
+ campaignCount: number;
440
+ activeCampaignCount: number;
441
+ planName: string | null;
442
+ subscriptionStatus: "active" | "paused" | "archived" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed" | null;
443
+ periodStats: {
444
+ viewed: number;
445
+ replied: number;
446
+ leadsAnalyzed: number;
447
+ contactedSync: number;
448
+ totalBiddingAmount: number;
449
+ totalBoostedAmount: number;
450
+ effectiveBoostedAmount: number;
451
+ costPerReply: number;
452
+ };
453
+ }>;
454
+ export declare const organizationAnalyticsOverviewResponseSchema: z.ZodArray<z.ZodObject<{
455
+ organizationId: z.ZodString;
456
+ organizationName: z.ZodString;
457
+ planId: z.ZodNullable<z.ZodString>;
458
+ planName: z.ZodNullable<z.ZodString>;
459
+ subscriptionStatus: z.ZodNullable<z.ZodEnum<["active", "trialing", "archived", "cancelled", "paused", "payment_processing", "payment_pending", "payment_failed"]>>;
460
+ billingInterval: z.ZodNullable<z.ZodEnum<["monthly", "quarterly", "yearly"]>>;
461
+ campaignCount: z.ZodNumber;
462
+ activeCampaignCount: z.ZodNumber;
463
+ periodStats: z.ZodObject<{
464
+ leadsAnalyzed: z.ZodNumber;
465
+ contactedSync: z.ZodNumber;
466
+ viewed: z.ZodNumber;
467
+ replied: z.ZodNumber;
468
+ totalBiddingAmount: z.ZodNumber;
469
+ totalBoostedAmount: z.ZodNumber;
470
+ effectiveBoostedAmount: z.ZodNumber;
471
+ costPerReply: z.ZodNumber;
472
+ }, "strip", z.ZodTypeAny, {
473
+ viewed: number;
474
+ replied: number;
475
+ leadsAnalyzed: number;
476
+ contactedSync: number;
477
+ totalBiddingAmount: number;
478
+ totalBoostedAmount: number;
479
+ effectiveBoostedAmount: number;
480
+ costPerReply: number;
481
+ }, {
482
+ viewed: number;
483
+ replied: number;
484
+ leadsAnalyzed: number;
485
+ contactedSync: number;
486
+ totalBiddingAmount: number;
487
+ totalBoostedAmount: number;
488
+ effectiveBoostedAmount: number;
489
+ costPerReply: number;
490
+ }>;
491
+ }, "strip", z.ZodTypeAny, {
492
+ organizationId: string;
493
+ planId: string | null;
494
+ billingInterval: "monthly" | "quarterly" | "yearly" | null;
495
+ organizationName: string;
496
+ campaignCount: number;
497
+ activeCampaignCount: number;
498
+ planName: string | null;
499
+ subscriptionStatus: "active" | "paused" | "archived" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed" | null;
500
+ periodStats: {
501
+ viewed: number;
502
+ replied: number;
503
+ leadsAnalyzed: number;
504
+ contactedSync: number;
505
+ totalBiddingAmount: number;
506
+ totalBoostedAmount: number;
507
+ effectiveBoostedAmount: number;
508
+ costPerReply: number;
509
+ };
510
+ }, {
511
+ organizationId: string;
512
+ planId: string | null;
513
+ billingInterval: "monthly" | "quarterly" | "yearly" | null;
514
+ organizationName: string;
515
+ campaignCount: number;
516
+ activeCampaignCount: number;
517
+ planName: string | null;
518
+ subscriptionStatus: "active" | "paused" | "archived" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed" | null;
519
+ periodStats: {
520
+ viewed: number;
521
+ replied: number;
522
+ leadsAnalyzed: number;
523
+ contactedSync: number;
524
+ totalBiddingAmount: number;
525
+ totalBoostedAmount: number;
526
+ effectiveBoostedAmount: number;
527
+ costPerReply: number;
528
+ };
529
+ }>, "many">;
368
530
  export declare const monitoringBidFailureRecordSchema: z.ZodObject<{
369
531
  id: z.ZodString;
370
532
  eventId: z.ZodString;
@@ -386,9 +548,9 @@ export declare const monitoringBidFailureRecordSchema: z.ZodObject<{
386
548
  leadId: string | null;
387
549
  campaignId: string | null;
388
550
  skipBidding: boolean | null;
551
+ eventId: string;
389
552
  timestamp: number;
390
553
  organizationName: string | null;
391
- eventId: string;
392
554
  }, {
393
555
  reason: string | null;
394
556
  id: string;
@@ -398,9 +560,9 @@ export declare const monitoringBidFailureRecordSchema: z.ZodObject<{
398
560
  leadId: string | null;
399
561
  campaignId: string | null;
400
562
  skipBidding: boolean | null;
563
+ eventId: string;
401
564
  timestamp: number;
402
565
  organizationName: string | null;
403
- eventId: string;
404
566
  }>;
405
567
  export declare const bidderMonitoringRowSchema: z.ZodObject<{
406
568
  eventType: z.ZodEnum<["biddingFailed", "syncProposalsStatusFailed", "refreshRoomsFailed", "unauthenticatedSessionDetected", "verifyCredentialsFailed"]>;
@@ -431,9 +593,9 @@ export declare const bidderMonitoringRowSchema: z.ZodObject<{
431
593
  viewed: boolean;
432
594
  leadId: string | null;
433
595
  campaignId: string | null;
596
+ eventId: string;
434
597
  timestamp: number;
435
598
  organizationName: string | null;
436
- eventId: string;
437
599
  eventType: "biddingFailed" | "syncProposalsStatusFailed" | "refreshRoomsFailed" | "unauthenticatedSessionDetected" | "verifyCredentialsFailed";
438
600
  screenshotUrl: string | null;
439
601
  attempt: number | null;
@@ -449,9 +611,9 @@ export declare const bidderMonitoringRowSchema: z.ZodObject<{
449
611
  viewed: boolean;
450
612
  leadId: string | null;
451
613
  campaignId: string | null;
614
+ eventId: string;
452
615
  timestamp: number;
453
616
  organizationName: string | null;
454
- eventId: string;
455
617
  eventType: "biddingFailed" | "syncProposalsStatusFailed" | "refreshRoomsFailed" | "unauthenticatedSessionDetected" | "verifyCredentialsFailed";
456
618
  screenshotUrl: string | null;
457
619
  attempt: number | null;
@@ -487,9 +649,9 @@ export declare const bidderFailureDashboardResponseSchema: z.ZodObject<{
487
649
  viewed: boolean;
488
650
  leadId: string | null;
489
651
  campaignId: string | null;
652
+ eventId: string;
490
653
  timestamp: number;
491
654
  organizationName: string | null;
492
- eventId: string;
493
655
  eventType: "biddingFailed" | "syncProposalsStatusFailed" | "refreshRoomsFailed" | "unauthenticatedSessionDetected" | "verifyCredentialsFailed";
494
656
  screenshotUrl: string | null;
495
657
  attempt: number | null;
@@ -505,9 +667,9 @@ export declare const bidderFailureDashboardResponseSchema: z.ZodObject<{
505
667
  viewed: boolean;
506
668
  leadId: string | null;
507
669
  campaignId: string | null;
670
+ eventId: string;
508
671
  timestamp: number;
509
672
  organizationName: string | null;
510
- eventId: string;
511
673
  eventType: "biddingFailed" | "syncProposalsStatusFailed" | "refreshRoomsFailed" | "unauthenticatedSessionDetected" | "verifyCredentialsFailed";
512
674
  screenshotUrl: string | null;
513
675
  attempt: number | null;
@@ -527,9 +689,9 @@ export declare const bidderFailureDashboardResponseSchema: z.ZodObject<{
527
689
  viewed: boolean;
528
690
  leadId: string | null;
529
691
  campaignId: string | null;
692
+ eventId: string;
530
693
  timestamp: number;
531
694
  organizationName: string | null;
532
- eventId: string;
533
695
  eventType: "biddingFailed" | "syncProposalsStatusFailed" | "refreshRoomsFailed" | "unauthenticatedSessionDetected" | "verifyCredentialsFailed";
534
696
  screenshotUrl: string | null;
535
697
  attempt: number | null;
@@ -549,9 +711,9 @@ export declare const bidderFailureDashboardResponseSchema: z.ZodObject<{
549
711
  viewed: boolean;
550
712
  leadId: string | null;
551
713
  campaignId: string | null;
714
+ eventId: string;
552
715
  timestamp: number;
553
716
  organizationName: string | null;
554
- eventId: string;
555
717
  eventType: "biddingFailed" | "syncProposalsStatusFailed" | "refreshRoomsFailed" | "unauthenticatedSessionDetected" | "verifyCredentialsFailed";
556
718
  screenshotUrl: string | null;
557
719
  attempt: number | null;
@@ -561,6 +723,9 @@ export declare const bidderFailureDashboardResponseSchema: z.ZodObject<{
561
723
  unviewedCount: number;
562
724
  }>;
563
725
  export type OrganizationCampaignStats = z.infer<typeof organizationCampaignStatsSchema>;
726
+ export type OrganizationAnalyticsOverviewQuery = z.infer<typeof organizationAnalyticsOverviewQuerySchema>;
727
+ export type OrganizationAnalyticsOverviewItem = z.infer<typeof organizationAnalyticsOverviewItemSchema>;
728
+ export type OrganizationAnalyticsOverviewResponse = z.infer<typeof organizationAnalyticsOverviewResponseSchema>;
564
729
  export type CampaignDetails = z.infer<typeof campaignDetailsSchema>;
565
730
  export type CampaignStats = z.infer<typeof campaignStatsSchema>;
566
731
  export type SuitabilityBreakdown = z.infer<typeof suitabilityBreakdownSchema>;
@@ -415,20 +415,20 @@ export declare const suitabilityPendingEventMetadataSchema: z.ZodObject<{
415
415
  title: string;
416
416
  jobUrl: string;
417
417
  jobId: string;
418
+ timestamp: number;
418
419
  applyToLeads: {
419
420
  leadId: string;
420
421
  campaignId: string;
421
422
  }[];
422
- timestamp: number;
423
423
  }, {
424
424
  title: string;
425
425
  jobUrl: string;
426
426
  jobId: string;
427
+ timestamp: number;
427
428
  applyToLeads: {
428
429
  leadId: string;
429
430
  campaignId: string;
430
431
  }[];
431
- timestamp: number;
432
432
  }>;
433
433
  export type SuitabilityPendingEventMetadata = z.infer<typeof suitabilityPendingEventMetadataSchema>;
434
434
  export declare const suitabilityCompleteEventMetadataSchema: z.ZodObject<{
@@ -471,12 +471,12 @@ export declare const suitabilityCompleteEventMetadataSchema: z.ZodObject<{
471
471
  provider?: string | undefined;
472
472
  agentStatus?: string | undefined;
473
473
  model?: string | undefined;
474
- promptTokens?: number | undefined;
475
- completionTokens?: number | undefined;
476
474
  messages?: {
477
475
  content: string;
478
476
  role: string;
479
477
  }[] | undefined;
478
+ promptTokens?: number | undefined;
479
+ completionTokens?: number | undefined;
480
480
  }, {
481
481
  jobId: string;
482
482
  suitabilityRating: number;
@@ -488,12 +488,12 @@ export declare const suitabilityCompleteEventMetadataSchema: z.ZodObject<{
488
488
  provider?: string | undefined;
489
489
  agentStatus?: string | undefined;
490
490
  model?: string | undefined;
491
- promptTokens?: number | undefined;
492
- completionTokens?: number | undefined;
493
491
  messages?: {
494
492
  content: string;
495
493
  role: string;
496
494
  }[] | undefined;
495
+ promptTokens?: number | undefined;
496
+ completionTokens?: number | undefined;
497
497
  }>;
498
498
  export type SuitabilityCompleteEventMetadata = z.infer<typeof suitabilityCompleteEventMetadataSchema>;
499
499
  export declare const suitabilityFailedEventMetadataSchema: z.ZodObject<{
@@ -577,12 +577,12 @@ export declare const proposalCompleteEventMetadataSchema: z.ZodObject<{
577
577
  provider?: string | undefined;
578
578
  coverLetterTemplateId?: string | undefined;
579
579
  model?: string | undefined;
580
- promptTokens?: number | undefined;
581
- completionTokens?: number | undefined;
582
580
  messages?: {
583
581
  content: string;
584
582
  role: string;
585
583
  }[] | undefined;
584
+ promptTokens?: number | undefined;
585
+ completionTokens?: number | undefined;
586
586
  }, {
587
587
  jobId: string;
588
588
  proposal: {
@@ -600,12 +600,12 @@ export declare const proposalCompleteEventMetadataSchema: z.ZodObject<{
600
600
  provider?: string | undefined;
601
601
  coverLetterTemplateId?: string | undefined;
602
602
  model?: string | undefined;
603
- promptTokens?: number | undefined;
604
- completionTokens?: number | undefined;
605
603
  messages?: {
606
604
  content: string;
607
605
  role: string;
608
606
  }[] | undefined;
607
+ promptTokens?: number | undefined;
608
+ completionTokens?: number | undefined;
609
609
  }>;
610
610
  export type ProposalCompleteEventMetadata = z.infer<typeof proposalCompleteEventMetadataSchema>;
611
611
  export declare const eventLoggerPayloadSchema: z.ZodUnion<[z.ZodObject<{