@foundrynorth/compass-schema 1.0.21 → 1.0.23

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.
package/dist/schema.d.ts CHANGED
@@ -2154,6 +2154,81 @@ export declare const competitorSchema: z.ZodObject<{
2154
2154
  lat: number;
2155
2155
  lng: number;
2156
2156
  }>>;
2157
+ ads: z.ZodOptional<z.ZodObject<{
2158
+ facebook: z.ZodOptional<z.ZodArray<z.ZodObject<{
2159
+ adImage: z.ZodOptional<z.ZodString>;
2160
+ headline: z.ZodOptional<z.ZodString>;
2161
+ adCopy: z.ZodOptional<z.ZodString>;
2162
+ callToAction: z.ZodOptional<z.ZodString>;
2163
+ publisherPlatforms: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2164
+ startDate: z.ZodOptional<z.ZodString>;
2165
+ }, "strip", z.ZodTypeAny, {
2166
+ adImage?: string | undefined;
2167
+ headline?: string | undefined;
2168
+ adCopy?: string | undefined;
2169
+ callToAction?: string | undefined;
2170
+ publisherPlatforms?: string[] | undefined;
2171
+ startDate?: string | undefined;
2172
+ }, {
2173
+ adImage?: string | undefined;
2174
+ headline?: string | undefined;
2175
+ adCopy?: string | undefined;
2176
+ callToAction?: string | undefined;
2177
+ publisherPlatforms?: string[] | undefined;
2178
+ startDate?: string | undefined;
2179
+ }>, "many">>;
2180
+ google: z.ZodOptional<z.ZodArray<z.ZodObject<{
2181
+ headline: z.ZodOptional<z.ZodString>;
2182
+ description: z.ZodOptional<z.ZodString>;
2183
+ landingPage: z.ZodOptional<z.ZodString>;
2184
+ adType: z.ZodOptional<z.ZodString>;
2185
+ imageUrl: z.ZodOptional<z.ZodString>;
2186
+ }, "strip", z.ZodTypeAny, {
2187
+ description?: string | undefined;
2188
+ headline?: string | undefined;
2189
+ landingPage?: string | undefined;
2190
+ adType?: string | undefined;
2191
+ imageUrl?: string | undefined;
2192
+ }, {
2193
+ description?: string | undefined;
2194
+ headline?: string | undefined;
2195
+ landingPage?: string | undefined;
2196
+ adType?: string | undefined;
2197
+ imageUrl?: string | undefined;
2198
+ }>, "many">>;
2199
+ }, "strip", z.ZodTypeAny, {
2200
+ google?: {
2201
+ description?: string | undefined;
2202
+ headline?: string | undefined;
2203
+ landingPage?: string | undefined;
2204
+ adType?: string | undefined;
2205
+ imageUrl?: string | undefined;
2206
+ }[] | undefined;
2207
+ facebook?: {
2208
+ adImage?: string | undefined;
2209
+ headline?: string | undefined;
2210
+ adCopy?: string | undefined;
2211
+ callToAction?: string | undefined;
2212
+ publisherPlatforms?: string[] | undefined;
2213
+ startDate?: string | undefined;
2214
+ }[] | undefined;
2215
+ }, {
2216
+ google?: {
2217
+ description?: string | undefined;
2218
+ headline?: string | undefined;
2219
+ landingPage?: string | undefined;
2220
+ adType?: string | undefined;
2221
+ imageUrl?: string | undefined;
2222
+ }[] | undefined;
2223
+ facebook?: {
2224
+ adImage?: string | undefined;
2225
+ headline?: string | undefined;
2226
+ adCopy?: string | undefined;
2227
+ callToAction?: string | undefined;
2228
+ publisherPlatforms?: string[] | undefined;
2229
+ startDate?: string | undefined;
2230
+ }[] | undefined;
2231
+ }>>;
2157
2232
  }, "strip", z.ZodTypeAny, {
2158
2233
  name: string;
2159
2234
  source: "system-suggested" | "user-added";
@@ -2278,6 +2353,23 @@ export declare const competitorSchema: z.ZodObject<{
2278
2353
  lat: number;
2279
2354
  lng: number;
2280
2355
  } | undefined;
2356
+ ads?: {
2357
+ google?: {
2358
+ description?: string | undefined;
2359
+ headline?: string | undefined;
2360
+ landingPage?: string | undefined;
2361
+ adType?: string | undefined;
2362
+ imageUrl?: string | undefined;
2363
+ }[] | undefined;
2364
+ facebook?: {
2365
+ adImage?: string | undefined;
2366
+ headline?: string | undefined;
2367
+ adCopy?: string | undefined;
2368
+ callToAction?: string | undefined;
2369
+ publisherPlatforms?: string[] | undefined;
2370
+ startDate?: string | undefined;
2371
+ }[] | undefined;
2372
+ } | undefined;
2281
2373
  }, {
2282
2374
  name: string;
2283
2375
  mediaChannels: string[];
@@ -2402,6 +2494,23 @@ export declare const competitorSchema: z.ZodObject<{
2402
2494
  lat: number;
2403
2495
  lng: number;
2404
2496
  } | undefined;
2497
+ ads?: {
2498
+ google?: {
2499
+ description?: string | undefined;
2500
+ headline?: string | undefined;
2501
+ landingPage?: string | undefined;
2502
+ adType?: string | undefined;
2503
+ imageUrl?: string | undefined;
2504
+ }[] | undefined;
2505
+ facebook?: {
2506
+ adImage?: string | undefined;
2507
+ headline?: string | undefined;
2508
+ adCopy?: string | undefined;
2509
+ callToAction?: string | undefined;
2510
+ publisherPlatforms?: string[] | undefined;
2511
+ startDate?: string | undefined;
2512
+ }[] | undefined;
2513
+ } | undefined;
2405
2514
  }>;
2406
2515
  export type Competitor = z.infer<typeof competitorSchema>;
2407
2516
  export declare const extractionResultSchema: z.ZodObject<{
@@ -2809,6 +2918,81 @@ export declare const extractionResultSchema: z.ZodObject<{
2809
2918
  lat: number;
2810
2919
  lng: number;
2811
2920
  }>>;
2921
+ ads: z.ZodOptional<z.ZodObject<{
2922
+ facebook: z.ZodOptional<z.ZodArray<z.ZodObject<{
2923
+ adImage: z.ZodOptional<z.ZodString>;
2924
+ headline: z.ZodOptional<z.ZodString>;
2925
+ adCopy: z.ZodOptional<z.ZodString>;
2926
+ callToAction: z.ZodOptional<z.ZodString>;
2927
+ publisherPlatforms: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2928
+ startDate: z.ZodOptional<z.ZodString>;
2929
+ }, "strip", z.ZodTypeAny, {
2930
+ adImage?: string | undefined;
2931
+ headline?: string | undefined;
2932
+ adCopy?: string | undefined;
2933
+ callToAction?: string | undefined;
2934
+ publisherPlatforms?: string[] | undefined;
2935
+ startDate?: string | undefined;
2936
+ }, {
2937
+ adImage?: string | undefined;
2938
+ headline?: string | undefined;
2939
+ adCopy?: string | undefined;
2940
+ callToAction?: string | undefined;
2941
+ publisherPlatforms?: string[] | undefined;
2942
+ startDate?: string | undefined;
2943
+ }>, "many">>;
2944
+ google: z.ZodOptional<z.ZodArray<z.ZodObject<{
2945
+ headline: z.ZodOptional<z.ZodString>;
2946
+ description: z.ZodOptional<z.ZodString>;
2947
+ landingPage: z.ZodOptional<z.ZodString>;
2948
+ adType: z.ZodOptional<z.ZodString>;
2949
+ imageUrl: z.ZodOptional<z.ZodString>;
2950
+ }, "strip", z.ZodTypeAny, {
2951
+ description?: string | undefined;
2952
+ headline?: string | undefined;
2953
+ landingPage?: string | undefined;
2954
+ adType?: string | undefined;
2955
+ imageUrl?: string | undefined;
2956
+ }, {
2957
+ description?: string | undefined;
2958
+ headline?: string | undefined;
2959
+ landingPage?: string | undefined;
2960
+ adType?: string | undefined;
2961
+ imageUrl?: string | undefined;
2962
+ }>, "many">>;
2963
+ }, "strip", z.ZodTypeAny, {
2964
+ google?: {
2965
+ description?: string | undefined;
2966
+ headline?: string | undefined;
2967
+ landingPage?: string | undefined;
2968
+ adType?: string | undefined;
2969
+ imageUrl?: string | undefined;
2970
+ }[] | undefined;
2971
+ facebook?: {
2972
+ adImage?: string | undefined;
2973
+ headline?: string | undefined;
2974
+ adCopy?: string | undefined;
2975
+ callToAction?: string | undefined;
2976
+ publisherPlatforms?: string[] | undefined;
2977
+ startDate?: string | undefined;
2978
+ }[] | undefined;
2979
+ }, {
2980
+ google?: {
2981
+ description?: string | undefined;
2982
+ headline?: string | undefined;
2983
+ landingPage?: string | undefined;
2984
+ adType?: string | undefined;
2985
+ imageUrl?: string | undefined;
2986
+ }[] | undefined;
2987
+ facebook?: {
2988
+ adImage?: string | undefined;
2989
+ headline?: string | undefined;
2990
+ adCopy?: string | undefined;
2991
+ callToAction?: string | undefined;
2992
+ publisherPlatforms?: string[] | undefined;
2993
+ startDate?: string | undefined;
2994
+ }[] | undefined;
2995
+ }>>;
2812
2996
  }, "strip", z.ZodTypeAny, {
2813
2997
  name: string;
2814
2998
  source: "system-suggested" | "user-added";
@@ -2933,6 +3117,23 @@ export declare const extractionResultSchema: z.ZodObject<{
2933
3117
  lat: number;
2934
3118
  lng: number;
2935
3119
  } | undefined;
3120
+ ads?: {
3121
+ google?: {
3122
+ description?: string | undefined;
3123
+ headline?: string | undefined;
3124
+ landingPage?: string | undefined;
3125
+ adType?: string | undefined;
3126
+ imageUrl?: string | undefined;
3127
+ }[] | undefined;
3128
+ facebook?: {
3129
+ adImage?: string | undefined;
3130
+ headline?: string | undefined;
3131
+ adCopy?: string | undefined;
3132
+ callToAction?: string | undefined;
3133
+ publisherPlatforms?: string[] | undefined;
3134
+ startDate?: string | undefined;
3135
+ }[] | undefined;
3136
+ } | undefined;
2936
3137
  }, {
2937
3138
  name: string;
2938
3139
  mediaChannels: string[];
@@ -3057,6 +3258,23 @@ export declare const extractionResultSchema: z.ZodObject<{
3057
3258
  lat: number;
3058
3259
  lng: number;
3059
3260
  } | undefined;
3261
+ ads?: {
3262
+ google?: {
3263
+ description?: string | undefined;
3264
+ headline?: string | undefined;
3265
+ landingPage?: string | undefined;
3266
+ adType?: string | undefined;
3267
+ imageUrl?: string | undefined;
3268
+ }[] | undefined;
3269
+ facebook?: {
3270
+ adImage?: string | undefined;
3271
+ headline?: string | undefined;
3272
+ adCopy?: string | undefined;
3273
+ callToAction?: string | undefined;
3274
+ publisherPlatforms?: string[] | undefined;
3275
+ startDate?: string | undefined;
3276
+ }[] | undefined;
3277
+ } | undefined;
3060
3278
  }>, "many">;
3061
3279
  insufficient_evidence: z.ZodOptional<z.ZodBoolean>;
3062
3280
  verification_notes: z.ZodOptional<z.ZodString>;
@@ -3214,6 +3432,23 @@ export declare const extractionResultSchema: z.ZodObject<{
3214
3432
  lat: number;
3215
3433
  lng: number;
3216
3434
  } | undefined;
3435
+ ads?: {
3436
+ google?: {
3437
+ description?: string | undefined;
3438
+ headline?: string | undefined;
3439
+ landingPage?: string | undefined;
3440
+ adType?: string | undefined;
3441
+ imageUrl?: string | undefined;
3442
+ }[] | undefined;
3443
+ facebook?: {
3444
+ adImage?: string | undefined;
3445
+ headline?: string | undefined;
3446
+ adCopy?: string | undefined;
3447
+ callToAction?: string | undefined;
3448
+ publisherPlatforms?: string[] | undefined;
3449
+ startDate?: string | undefined;
3450
+ }[] | undefined;
3451
+ } | undefined;
3217
3452
  }[];
3218
3453
  shouldShowGeoDialog: boolean;
3219
3454
  prospectIntelligence?: {
@@ -3376,6 +3611,23 @@ export declare const extractionResultSchema: z.ZodObject<{
3376
3611
  lat: number;
3377
3612
  lng: number;
3378
3613
  } | undefined;
3614
+ ads?: {
3615
+ google?: {
3616
+ description?: string | undefined;
3617
+ headline?: string | undefined;
3618
+ landingPage?: string | undefined;
3619
+ adType?: string | undefined;
3620
+ imageUrl?: string | undefined;
3621
+ }[] | undefined;
3622
+ facebook?: {
3623
+ adImage?: string | undefined;
3624
+ headline?: string | undefined;
3625
+ adCopy?: string | undefined;
3626
+ callToAction?: string | undefined;
3627
+ publisherPlatforms?: string[] | undefined;
3628
+ startDate?: string | undefined;
3629
+ }[] | undefined;
3630
+ } | undefined;
3379
3631
  }[];
3380
3632
  prospectIntelligence?: {
3381
3633
  strengths: string[];
@@ -5151,6 +5403,81 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
5151
5403
  lat: number;
5152
5404
  lng: number;
5153
5405
  }>>;
5406
+ ads: z.ZodOptional<z.ZodObject<{
5407
+ facebook: z.ZodOptional<z.ZodArray<z.ZodObject<{
5408
+ adImage: z.ZodOptional<z.ZodString>;
5409
+ headline: z.ZodOptional<z.ZodString>;
5410
+ adCopy: z.ZodOptional<z.ZodString>;
5411
+ callToAction: z.ZodOptional<z.ZodString>;
5412
+ publisherPlatforms: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5413
+ startDate: z.ZodOptional<z.ZodString>;
5414
+ }, "strip", z.ZodTypeAny, {
5415
+ adImage?: string | undefined;
5416
+ headline?: string | undefined;
5417
+ adCopy?: string | undefined;
5418
+ callToAction?: string | undefined;
5419
+ publisherPlatforms?: string[] | undefined;
5420
+ startDate?: string | undefined;
5421
+ }, {
5422
+ adImage?: string | undefined;
5423
+ headline?: string | undefined;
5424
+ adCopy?: string | undefined;
5425
+ callToAction?: string | undefined;
5426
+ publisherPlatforms?: string[] | undefined;
5427
+ startDate?: string | undefined;
5428
+ }>, "many">>;
5429
+ google: z.ZodOptional<z.ZodArray<z.ZodObject<{
5430
+ headline: z.ZodOptional<z.ZodString>;
5431
+ description: z.ZodOptional<z.ZodString>;
5432
+ landingPage: z.ZodOptional<z.ZodString>;
5433
+ adType: z.ZodOptional<z.ZodString>;
5434
+ imageUrl: z.ZodOptional<z.ZodString>;
5435
+ }, "strip", z.ZodTypeAny, {
5436
+ description?: string | undefined;
5437
+ headline?: string | undefined;
5438
+ landingPage?: string | undefined;
5439
+ adType?: string | undefined;
5440
+ imageUrl?: string | undefined;
5441
+ }, {
5442
+ description?: string | undefined;
5443
+ headline?: string | undefined;
5444
+ landingPage?: string | undefined;
5445
+ adType?: string | undefined;
5446
+ imageUrl?: string | undefined;
5447
+ }>, "many">>;
5448
+ }, "strip", z.ZodTypeAny, {
5449
+ google?: {
5450
+ description?: string | undefined;
5451
+ headline?: string | undefined;
5452
+ landingPage?: string | undefined;
5453
+ adType?: string | undefined;
5454
+ imageUrl?: string | undefined;
5455
+ }[] | undefined;
5456
+ facebook?: {
5457
+ adImage?: string | undefined;
5458
+ headline?: string | undefined;
5459
+ adCopy?: string | undefined;
5460
+ callToAction?: string | undefined;
5461
+ publisherPlatforms?: string[] | undefined;
5462
+ startDate?: string | undefined;
5463
+ }[] | undefined;
5464
+ }, {
5465
+ google?: {
5466
+ description?: string | undefined;
5467
+ headline?: string | undefined;
5468
+ landingPage?: string | undefined;
5469
+ adType?: string | undefined;
5470
+ imageUrl?: string | undefined;
5471
+ }[] | undefined;
5472
+ facebook?: {
5473
+ adImage?: string | undefined;
5474
+ headline?: string | undefined;
5475
+ adCopy?: string | undefined;
5476
+ callToAction?: string | undefined;
5477
+ publisherPlatforms?: string[] | undefined;
5478
+ startDate?: string | undefined;
5479
+ }[] | undefined;
5480
+ }>>;
5154
5481
  }, "strip", z.ZodTypeAny, {
5155
5482
  name: string;
5156
5483
  source: "system-suggested" | "user-added";
@@ -5275,6 +5602,23 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
5275
5602
  lat: number;
5276
5603
  lng: number;
5277
5604
  } | undefined;
5605
+ ads?: {
5606
+ google?: {
5607
+ description?: string | undefined;
5608
+ headline?: string | undefined;
5609
+ landingPage?: string | undefined;
5610
+ adType?: string | undefined;
5611
+ imageUrl?: string | undefined;
5612
+ }[] | undefined;
5613
+ facebook?: {
5614
+ adImage?: string | undefined;
5615
+ headline?: string | undefined;
5616
+ adCopy?: string | undefined;
5617
+ callToAction?: string | undefined;
5618
+ publisherPlatforms?: string[] | undefined;
5619
+ startDate?: string | undefined;
5620
+ }[] | undefined;
5621
+ } | undefined;
5278
5622
  }, {
5279
5623
  name: string;
5280
5624
  mediaChannels: string[];
@@ -5399,6 +5743,23 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
5399
5743
  lat: number;
5400
5744
  lng: number;
5401
5745
  } | undefined;
5746
+ ads?: {
5747
+ google?: {
5748
+ description?: string | undefined;
5749
+ headline?: string | undefined;
5750
+ landingPage?: string | undefined;
5751
+ adType?: string | undefined;
5752
+ imageUrl?: string | undefined;
5753
+ }[] | undefined;
5754
+ facebook?: {
5755
+ adImage?: string | undefined;
5756
+ headline?: string | undefined;
5757
+ adCopy?: string | undefined;
5758
+ callToAction?: string | undefined;
5759
+ publisherPlatforms?: string[] | undefined;
5760
+ startDate?: string | undefined;
5761
+ }[] | undefined;
5762
+ } | undefined;
5402
5763
  }>, "many">;
5403
5764
  plan: z.ZodObject<{
5404
5765
  rationale: z.ZodString;
@@ -8171,6 +8532,23 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
8171
8532
  lat: number;
8172
8533
  lng: number;
8173
8534
  } | undefined;
8535
+ ads?: {
8536
+ google?: {
8537
+ description?: string | undefined;
8538
+ headline?: string | undefined;
8539
+ landingPage?: string | undefined;
8540
+ adType?: string | undefined;
8541
+ imageUrl?: string | undefined;
8542
+ }[] | undefined;
8543
+ facebook?: {
8544
+ adImage?: string | undefined;
8545
+ headline?: string | undefined;
8546
+ adCopy?: string | undefined;
8547
+ callToAction?: string | undefined;
8548
+ publisherPlatforms?: string[] | undefined;
8549
+ startDate?: string | undefined;
8550
+ }[] | undefined;
8551
+ } | undefined;
8174
8552
  }[];
8175
8553
  plan: {
8176
8554
  rationale: string;
@@ -8672,6 +9050,23 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
8672
9050
  lat: number;
8673
9051
  lng: number;
8674
9052
  } | undefined;
9053
+ ads?: {
9054
+ google?: {
9055
+ description?: string | undefined;
9056
+ headline?: string | undefined;
9057
+ landingPage?: string | undefined;
9058
+ adType?: string | undefined;
9059
+ imageUrl?: string | undefined;
9060
+ }[] | undefined;
9061
+ facebook?: {
9062
+ adImage?: string | undefined;
9063
+ headline?: string | undefined;
9064
+ adCopy?: string | undefined;
9065
+ callToAction?: string | undefined;
9066
+ publisherPlatforms?: string[] | undefined;
9067
+ startDate?: string | undefined;
9068
+ }[] | undefined;
9069
+ } | undefined;
8675
9070
  }[];
8676
9071
  plan: {
8677
9072
  rationale: string;
@@ -11028,6 +11423,25 @@ export declare const plans: import("drizzle-orm/pg-core").PgTableWithColumns<{
11028
11423
  identity: undefined;
11029
11424
  generated: undefined;
11030
11425
  }, {}, {}>;
11426
+ defaultCreativeSource: import("drizzle-orm/pg-core").PgColumn<{
11427
+ name: "default_creative_source";
11428
+ tableName: "plans";
11429
+ dataType: "string";
11430
+ columnType: "PgVarchar";
11431
+ data: string;
11432
+ driverParam: string;
11433
+ notNull: false;
11434
+ hasDefault: false;
11435
+ isPrimaryKey: false;
11436
+ isAutoincrement: false;
11437
+ hasRuntimeDefault: false;
11438
+ enumValues: [string, ...string[]];
11439
+ baseColumn: never;
11440
+ identity: undefined;
11441
+ generated: undefined;
11442
+ }, {}, {
11443
+ length: number | undefined;
11444
+ }>;
11031
11445
  defaultFlightStart: import("drizzle-orm/pg-core").PgColumn<{
11032
11446
  name: "default_flight_start";
11033
11447
  tableName: "plans";
@@ -12109,6 +12523,7 @@ export declare const insertPlanSchema: z.ZodObject<Omit<{
12109
12523
  defaultTargeting: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12110
12524
  defaultAudience: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12111
12525
  defaultPromoting: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12526
+ defaultCreativeSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12112
12527
  defaultFlightStart: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12113
12528
  defaultFlightEnd: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12114
12529
  slackChannelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -12124,6 +12539,257 @@ export declare const insertPlanSchema: z.ZodObject<Omit<{
12124
12539
  laneType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12125
12540
  seasonalPattern: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12126
12541
  }, string | number | symbol>, "strip", z.ZodTypeAny, {}, {}>;
12542
+ export declare const proposalEngagement: import("drizzle-orm/pg-core").PgTableWithColumns<{
12543
+ name: "proposal_engagement";
12544
+ schema: undefined;
12545
+ columns: {
12546
+ id: import("drizzle-orm/pg-core").PgColumn<{
12547
+ name: "id";
12548
+ tableName: "proposal_engagement";
12549
+ dataType: "string";
12550
+ columnType: "PgVarchar";
12551
+ data: string;
12552
+ driverParam: string;
12553
+ notNull: true;
12554
+ hasDefault: true;
12555
+ isPrimaryKey: true;
12556
+ isAutoincrement: false;
12557
+ hasRuntimeDefault: false;
12558
+ enumValues: [string, ...string[]];
12559
+ baseColumn: never;
12560
+ identity: undefined;
12561
+ generated: undefined;
12562
+ }, {}, {
12563
+ length: number | undefined;
12564
+ }>;
12565
+ proposalId: import("drizzle-orm/pg-core").PgColumn<{
12566
+ name: "proposal_id";
12567
+ tableName: "proposal_engagement";
12568
+ dataType: "string";
12569
+ columnType: "PgVarchar";
12570
+ data: string;
12571
+ driverParam: string;
12572
+ notNull: false;
12573
+ hasDefault: false;
12574
+ isPrimaryKey: false;
12575
+ isAutoincrement: false;
12576
+ hasRuntimeDefault: false;
12577
+ enumValues: [string, ...string[]];
12578
+ baseColumn: never;
12579
+ identity: undefined;
12580
+ generated: undefined;
12581
+ }, {}, {
12582
+ length: number | undefined;
12583
+ }>;
12584
+ planId: import("drizzle-orm/pg-core").PgColumn<{
12585
+ name: "plan_id";
12586
+ tableName: "proposal_engagement";
12587
+ dataType: "string";
12588
+ columnType: "PgVarchar";
12589
+ data: string;
12590
+ driverParam: string;
12591
+ notNull: false;
12592
+ hasDefault: false;
12593
+ isPrimaryKey: false;
12594
+ isAutoincrement: false;
12595
+ hasRuntimeDefault: false;
12596
+ enumValues: [string, ...string[]];
12597
+ baseColumn: never;
12598
+ identity: undefined;
12599
+ generated: undefined;
12600
+ }, {}, {
12601
+ length: number | undefined;
12602
+ }>;
12603
+ shareToken: import("drizzle-orm/pg-core").PgColumn<{
12604
+ name: "share_token";
12605
+ tableName: "proposal_engagement";
12606
+ dataType: "string";
12607
+ columnType: "PgText";
12608
+ data: string;
12609
+ driverParam: string;
12610
+ notNull: true;
12611
+ hasDefault: false;
12612
+ isPrimaryKey: false;
12613
+ isAutoincrement: false;
12614
+ hasRuntimeDefault: false;
12615
+ enumValues: [string, ...string[]];
12616
+ baseColumn: never;
12617
+ identity: undefined;
12618
+ generated: undefined;
12619
+ }, {}, {}>;
12620
+ sessionId: import("drizzle-orm/pg-core").PgColumn<{
12621
+ name: "session_id";
12622
+ tableName: "proposal_engagement";
12623
+ dataType: "string";
12624
+ columnType: "PgText";
12625
+ data: string;
12626
+ driverParam: string;
12627
+ notNull: true;
12628
+ hasDefault: false;
12629
+ isPrimaryKey: false;
12630
+ isAutoincrement: false;
12631
+ hasRuntimeDefault: false;
12632
+ enumValues: [string, ...string[]];
12633
+ baseColumn: never;
12634
+ identity: undefined;
12635
+ generated: undefined;
12636
+ }, {}, {}>;
12637
+ events: import("drizzle-orm/pg-core").PgColumn<{
12638
+ name: "events";
12639
+ tableName: "proposal_engagement";
12640
+ dataType: "json";
12641
+ columnType: "PgJsonb";
12642
+ data: unknown;
12643
+ driverParam: unknown;
12644
+ notNull: true;
12645
+ hasDefault: true;
12646
+ isPrimaryKey: false;
12647
+ isAutoincrement: false;
12648
+ hasRuntimeDefault: false;
12649
+ enumValues: undefined;
12650
+ baseColumn: never;
12651
+ identity: undefined;
12652
+ generated: undefined;
12653
+ }, {}, {}>;
12654
+ engagementScore: import("drizzle-orm/pg-core").PgColumn<{
12655
+ name: "engagement_score";
12656
+ tableName: "proposal_engagement";
12657
+ dataType: "number";
12658
+ columnType: "PgInteger";
12659
+ data: number;
12660
+ driverParam: string | number;
12661
+ notNull: false;
12662
+ hasDefault: true;
12663
+ isPrimaryKey: false;
12664
+ isAutoincrement: false;
12665
+ hasRuntimeDefault: false;
12666
+ enumValues: undefined;
12667
+ baseColumn: never;
12668
+ identity: undefined;
12669
+ generated: undefined;
12670
+ }, {}, {}>;
12671
+ summary: import("drizzle-orm/pg-core").PgColumn<{
12672
+ name: "summary";
12673
+ tableName: "proposal_engagement";
12674
+ dataType: "string";
12675
+ columnType: "PgText";
12676
+ data: string;
12677
+ driverParam: string;
12678
+ notNull: false;
12679
+ hasDefault: false;
12680
+ isPrimaryKey: false;
12681
+ isAutoincrement: false;
12682
+ hasRuntimeDefault: false;
12683
+ enumValues: [string, ...string[]];
12684
+ baseColumn: never;
12685
+ identity: undefined;
12686
+ generated: undefined;
12687
+ }, {}, {}>;
12688
+ device: import("drizzle-orm/pg-core").PgColumn<{
12689
+ name: "device";
12690
+ tableName: "proposal_engagement";
12691
+ dataType: "string";
12692
+ columnType: "PgText";
12693
+ data: string;
12694
+ driverParam: string;
12695
+ notNull: false;
12696
+ hasDefault: false;
12697
+ isPrimaryKey: false;
12698
+ isAutoincrement: false;
12699
+ hasRuntimeDefault: false;
12700
+ enumValues: [string, ...string[]];
12701
+ baseColumn: never;
12702
+ identity: undefined;
12703
+ generated: undefined;
12704
+ }, {}, {}>;
12705
+ referrer: import("drizzle-orm/pg-core").PgColumn<{
12706
+ name: "referrer";
12707
+ tableName: "proposal_engagement";
12708
+ dataType: "string";
12709
+ columnType: "PgText";
12710
+ data: string;
12711
+ driverParam: string;
12712
+ notNull: false;
12713
+ hasDefault: false;
12714
+ isPrimaryKey: false;
12715
+ isAutoincrement: false;
12716
+ hasRuntimeDefault: false;
12717
+ enumValues: [string, ...string[]];
12718
+ baseColumn: never;
12719
+ identity: undefined;
12720
+ generated: undefined;
12721
+ }, {}, {}>;
12722
+ userAgent: import("drizzle-orm/pg-core").PgColumn<{
12723
+ name: "user_agent";
12724
+ tableName: "proposal_engagement";
12725
+ dataType: "string";
12726
+ columnType: "PgText";
12727
+ data: string;
12728
+ driverParam: string;
12729
+ notNull: false;
12730
+ hasDefault: false;
12731
+ isPrimaryKey: false;
12732
+ isAutoincrement: false;
12733
+ hasRuntimeDefault: false;
12734
+ enumValues: [string, ...string[]];
12735
+ baseColumn: never;
12736
+ identity: undefined;
12737
+ generated: undefined;
12738
+ }, {}, {}>;
12739
+ firstSeenAt: import("drizzle-orm/pg-core").PgColumn<{
12740
+ name: "first_seen_at";
12741
+ tableName: "proposal_engagement";
12742
+ dataType: "date";
12743
+ columnType: "PgTimestamp";
12744
+ data: Date;
12745
+ driverParam: string;
12746
+ notNull: true;
12747
+ hasDefault: true;
12748
+ isPrimaryKey: false;
12749
+ isAutoincrement: false;
12750
+ hasRuntimeDefault: false;
12751
+ enumValues: undefined;
12752
+ baseColumn: never;
12753
+ identity: undefined;
12754
+ generated: undefined;
12755
+ }, {}, {}>;
12756
+ lastSeenAt: import("drizzle-orm/pg-core").PgColumn<{
12757
+ name: "last_seen_at";
12758
+ tableName: "proposal_engagement";
12759
+ dataType: "date";
12760
+ columnType: "PgTimestamp";
12761
+ data: Date;
12762
+ driverParam: string;
12763
+ notNull: true;
12764
+ hasDefault: true;
12765
+ isPrimaryKey: false;
12766
+ isAutoincrement: false;
12767
+ hasRuntimeDefault: false;
12768
+ enumValues: undefined;
12769
+ baseColumn: never;
12770
+ identity: undefined;
12771
+ generated: undefined;
12772
+ }, {}, {}>;
12773
+ createdAt: import("drizzle-orm/pg-core").PgColumn<{
12774
+ name: "created_at";
12775
+ tableName: "proposal_engagement";
12776
+ dataType: "date";
12777
+ columnType: "PgTimestamp";
12778
+ data: Date;
12779
+ driverParam: string;
12780
+ notNull: true;
12781
+ hasDefault: true;
12782
+ isPrimaryKey: false;
12783
+ isAutoincrement: false;
12784
+ hasRuntimeDefault: false;
12785
+ enumValues: undefined;
12786
+ baseColumn: never;
12787
+ identity: undefined;
12788
+ generated: undefined;
12789
+ }, {}, {}>;
12790
+ };
12791
+ dialect: "pg";
12792
+ }>;
12127
12793
  export type InsertPlan = z.infer<typeof insertPlanSchema>;
12128
12794
  export type Plan = typeof plans.$inferSelect;
12129
12795
  export type PlanMode = "research_backed" | "direct_config" | "aor_pitch" | "io_entry";
@@ -30682,26 +31348,26 @@ export declare const insertGoogleAdCreativeSchema: z.ZodObject<Omit<{
30682
31348
  rawJson: z.ZodOptional<z.ZodNullable<z.ZodType<import("drizzle-zod").Json, z.ZodTypeDef, import("drizzle-zod").Json>>>;
30683
31349
  createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
30684
31350
  }, "id" | "createdAt">, "strip", z.ZodTypeAny, {
30685
- searchId: string;
30686
31351
  adType: string;
31352
+ searchId: string;
30687
31353
  description?: string | null | undefined;
30688
- imageUrl?: string | null | undefined;
30689
- videoUrl?: string | null | undefined;
30690
31354
  headline?: string | null | undefined;
30691
31355
  landingPage?: string | null | undefined;
31356
+ imageUrl?: string | null | undefined;
31357
+ videoUrl?: string | null | undefined;
30692
31358
  advertiser?: string | null | undefined;
30693
31359
  format?: string | null | undefined;
30694
31360
  lastShownDate?: Date | null | undefined;
30695
31361
  regions?: string[] | null | undefined;
30696
31362
  rawJson?: import("drizzle-zod").Json | undefined;
30697
31363
  }, {
30698
- searchId: string;
30699
31364
  adType: string;
31365
+ searchId: string;
30700
31366
  description?: string | null | undefined;
30701
- imageUrl?: string | null | undefined;
30702
- videoUrl?: string | null | undefined;
30703
31367
  headline?: string | null | undefined;
30704
31368
  landingPage?: string | null | undefined;
31369
+ imageUrl?: string | null | undefined;
31370
+ videoUrl?: string | null | undefined;
30705
31371
  advertiser?: string | null | undefined;
30706
31372
  format?: string | null | undefined;
30707
31373
  lastShownDate?: Date | null | undefined;
@@ -31160,11 +31826,11 @@ export declare const insertAuditResultSchema: z.ZodObject<Omit<{
31160
31826
  createdAt: z.ZodOptional<z.ZodDate>;
31161
31827
  }, "id" | "createdAt">, "strip", z.ZodTypeAny, {
31162
31828
  status: "warning" | "failed" | "error" | "passed";
31829
+ summary: string;
31163
31830
  startedAt: Date;
31164
31831
  completedAt: Date;
31165
31832
  auditType: string;
31166
31833
  frequency: "daily" | "hourly" | "weekly" | "continuous";
31167
- summary: string;
31168
31834
  tenantId?: string | null | undefined;
31169
31835
  durationMs?: number | null | undefined;
31170
31836
  details?: {
@@ -31181,11 +31847,11 @@ export declare const insertAuditResultSchema: z.ZodObject<Omit<{
31181
31847
  triggeredBy?: string | null | undefined;
31182
31848
  }, {
31183
31849
  status: "warning" | "failed" | "error" | "passed";
31850
+ summary: string;
31184
31851
  startedAt: Date;
31185
31852
  completedAt: Date;
31186
31853
  auditType: string;
31187
31854
  frequency: "daily" | "hourly" | "weekly" | "continuous";
31188
- summary: string;
31189
31855
  tenantId?: string | null | undefined;
31190
31856
  durationMs?: number | null | undefined;
31191
31857
  details?: {
@@ -35108,6 +35774,936 @@ export declare const updateSalesInitiativeSchema: z.ZodObject<{
35108
35774
  export type SalesInitiative = typeof salesInitiatives.$inferSelect;
35109
35775
  export type InsertSalesInitiative = z.infer<typeof insertSalesInitiativeSchema>;
35110
35776
  export type UpdateSalesInitiative = z.infer<typeof updateSalesInitiativeSchema>;
35777
+ export declare const salesPackages: import("drizzle-orm/pg-core").PgTableWithColumns<{
35778
+ name: "sales_packages";
35779
+ schema: undefined;
35780
+ columns: {
35781
+ id: import("drizzle-orm/pg-core").PgColumn<{
35782
+ name: "id";
35783
+ tableName: "sales_packages";
35784
+ dataType: "string";
35785
+ columnType: "PgUUID";
35786
+ data: string;
35787
+ driverParam: string;
35788
+ notNull: true;
35789
+ hasDefault: true;
35790
+ isPrimaryKey: true;
35791
+ isAutoincrement: false;
35792
+ hasRuntimeDefault: false;
35793
+ enumValues: undefined;
35794
+ baseColumn: never;
35795
+ identity: undefined;
35796
+ generated: undefined;
35797
+ }, {}, {}>;
35798
+ code: import("drizzle-orm/pg-core").PgColumn<{
35799
+ name: "code";
35800
+ tableName: "sales_packages";
35801
+ dataType: "string";
35802
+ columnType: "PgVarchar";
35803
+ data: string;
35804
+ driverParam: string;
35805
+ notNull: true;
35806
+ hasDefault: false;
35807
+ isPrimaryKey: false;
35808
+ isAutoincrement: false;
35809
+ hasRuntimeDefault: false;
35810
+ enumValues: [string, ...string[]];
35811
+ baseColumn: never;
35812
+ identity: undefined;
35813
+ generated: undefined;
35814
+ }, {}, {
35815
+ length: number | undefined;
35816
+ }>;
35817
+ name: import("drizzle-orm/pg-core").PgColumn<{
35818
+ name: "name";
35819
+ tableName: "sales_packages";
35820
+ dataType: "string";
35821
+ columnType: "PgVarchar";
35822
+ data: string;
35823
+ driverParam: string;
35824
+ notNull: true;
35825
+ hasDefault: false;
35826
+ isPrimaryKey: false;
35827
+ isAutoincrement: false;
35828
+ hasRuntimeDefault: false;
35829
+ enumValues: [string, ...string[]];
35830
+ baseColumn: never;
35831
+ identity: undefined;
35832
+ generated: undefined;
35833
+ }, {}, {
35834
+ length: number | undefined;
35835
+ }>;
35836
+ description: import("drizzle-orm/pg-core").PgColumn<{
35837
+ name: "description";
35838
+ tableName: "sales_packages";
35839
+ dataType: "string";
35840
+ columnType: "PgText";
35841
+ data: string;
35842
+ driverParam: string;
35843
+ notNull: false;
35844
+ hasDefault: false;
35845
+ isPrimaryKey: false;
35846
+ isAutoincrement: false;
35847
+ hasRuntimeDefault: false;
35848
+ enumValues: [string, ...string[]];
35849
+ baseColumn: never;
35850
+ identity: undefined;
35851
+ generated: undefined;
35852
+ }, {}, {}>;
35853
+ initiativeCode: import("drizzle-orm/pg-core").PgColumn<{
35854
+ name: "initiative_code";
35855
+ tableName: "sales_packages";
35856
+ dataType: "string";
35857
+ columnType: "PgVarchar";
35858
+ data: string;
35859
+ driverParam: string;
35860
+ notNull: false;
35861
+ hasDefault: false;
35862
+ isPrimaryKey: false;
35863
+ isAutoincrement: false;
35864
+ hasRuntimeDefault: false;
35865
+ enumValues: [string, ...string[]];
35866
+ baseColumn: never;
35867
+ identity: undefined;
35868
+ generated: undefined;
35869
+ }, {}, {
35870
+ length: number | undefined;
35871
+ }>;
35872
+ sellerSummary: import("drizzle-orm/pg-core").PgColumn<{
35873
+ name: "seller_summary";
35874
+ tableName: "sales_packages";
35875
+ dataType: "string";
35876
+ columnType: "PgText";
35877
+ data: string;
35878
+ driverParam: string;
35879
+ notNull: false;
35880
+ hasDefault: false;
35881
+ isPrimaryKey: false;
35882
+ isAutoincrement: false;
35883
+ hasRuntimeDefault: false;
35884
+ enumValues: [string, ...string[]];
35885
+ baseColumn: never;
35886
+ identity: undefined;
35887
+ generated: undefined;
35888
+ }, {}, {}>;
35889
+ packagePrice: import("drizzle-orm/pg-core").PgColumn<{
35890
+ name: "package_price";
35891
+ tableName: "sales_packages";
35892
+ dataType: "string";
35893
+ columnType: "PgNumeric";
35894
+ data: string;
35895
+ driverParam: string;
35896
+ notNull: false;
35897
+ hasDefault: false;
35898
+ isPrimaryKey: false;
35899
+ isAutoincrement: false;
35900
+ hasRuntimeDefault: false;
35901
+ enumValues: undefined;
35902
+ baseColumn: never;
35903
+ identity: undefined;
35904
+ generated: undefined;
35905
+ }, {}, {}>;
35906
+ discountPercent: import("drizzle-orm/pg-core").PgColumn<{
35907
+ name: "discount_percent";
35908
+ tableName: "sales_packages";
35909
+ dataType: "string";
35910
+ columnType: "PgNumeric";
35911
+ data: string;
35912
+ driverParam: string;
35913
+ notNull: false;
35914
+ hasDefault: false;
35915
+ isPrimaryKey: false;
35916
+ isAutoincrement: false;
35917
+ hasRuntimeDefault: false;
35918
+ enumValues: undefined;
35919
+ baseColumn: never;
35920
+ identity: undefined;
35921
+ generated: undefined;
35922
+ }, {}, {}>;
35923
+ addedValueAmount: import("drizzle-orm/pg-core").PgColumn<{
35924
+ name: "added_value_amount";
35925
+ tableName: "sales_packages";
35926
+ dataType: "string";
35927
+ columnType: "PgNumeric";
35928
+ data: string;
35929
+ driverParam: string;
35930
+ notNull: false;
35931
+ hasDefault: false;
35932
+ isPrimaryKey: false;
35933
+ isAutoincrement: false;
35934
+ hasRuntimeDefault: false;
35935
+ enumValues: undefined;
35936
+ baseColumn: never;
35937
+ identity: undefined;
35938
+ generated: undefined;
35939
+ }, {}, {}>;
35940
+ addedValueDescription: import("drizzle-orm/pg-core").PgColumn<{
35941
+ name: "added_value_description";
35942
+ tableName: "sales_packages";
35943
+ dataType: "string";
35944
+ columnType: "PgVarchar";
35945
+ data: string;
35946
+ driverParam: string;
35947
+ notNull: false;
35948
+ hasDefault: false;
35949
+ isPrimaryKey: false;
35950
+ isAutoincrement: false;
35951
+ hasRuntimeDefault: false;
35952
+ enumValues: [string, ...string[]];
35953
+ baseColumn: never;
35954
+ identity: undefined;
35955
+ generated: undefined;
35956
+ }, {}, {
35957
+ length: 255;
35958
+ }>;
35959
+ hubspotPackageValue: import("drizzle-orm/pg-core").PgColumn<{
35960
+ name: "hubspot_package_value";
35961
+ tableName: "sales_packages";
35962
+ dataType: "string";
35963
+ columnType: "PgVarchar";
35964
+ data: string;
35965
+ driverParam: string;
35966
+ notNull: true;
35967
+ hasDefault: false;
35968
+ isPrimaryKey: false;
35969
+ isAutoincrement: false;
35970
+ hasRuntimeDefault: false;
35971
+ enumValues: [string, ...string[]];
35972
+ baseColumn: never;
35973
+ identity: undefined;
35974
+ generated: undefined;
35975
+ }, {}, {
35976
+ length: number | undefined;
35977
+ }>;
35978
+ startsAt: import("drizzle-orm/pg-core").PgColumn<{
35979
+ name: "starts_at";
35980
+ tableName: "sales_packages";
35981
+ dataType: "string";
35982
+ columnType: "PgDateString";
35983
+ data: string;
35984
+ driverParam: string;
35985
+ notNull: false;
35986
+ hasDefault: false;
35987
+ isPrimaryKey: false;
35988
+ isAutoincrement: false;
35989
+ hasRuntimeDefault: false;
35990
+ enumValues: undefined;
35991
+ baseColumn: never;
35992
+ identity: undefined;
35993
+ generated: undefined;
35994
+ }, {}, {}>;
35995
+ endsAt: import("drizzle-orm/pg-core").PgColumn<{
35996
+ name: "ends_at";
35997
+ tableName: "sales_packages";
35998
+ dataType: "string";
35999
+ columnType: "PgDateString";
36000
+ data: string;
36001
+ driverParam: string;
36002
+ notNull: false;
36003
+ hasDefault: false;
36004
+ isPrimaryKey: false;
36005
+ isAutoincrement: false;
36006
+ hasRuntimeDefault: false;
36007
+ enumValues: undefined;
36008
+ baseColumn: never;
36009
+ identity: undefined;
36010
+ generated: undefined;
36011
+ }, {}, {}>;
36012
+ status: import("drizzle-orm/pg-core").PgColumn<{
36013
+ name: "status";
36014
+ tableName: "sales_packages";
36015
+ dataType: "string";
36016
+ columnType: "PgVarchar";
36017
+ data: string;
36018
+ driverParam: string;
36019
+ notNull: true;
36020
+ hasDefault: true;
36021
+ isPrimaryKey: false;
36022
+ isAutoincrement: false;
36023
+ hasRuntimeDefault: false;
36024
+ enumValues: [string, ...string[]];
36025
+ baseColumn: never;
36026
+ identity: undefined;
36027
+ generated: undefined;
36028
+ }, {}, {
36029
+ length: number | undefined;
36030
+ }>;
36031
+ recommendationMode: import("drizzle-orm/pg-core").PgColumn<{
36032
+ name: "recommendation_mode";
36033
+ tableName: "sales_packages";
36034
+ dataType: "string";
36035
+ columnType: "PgVarchar";
36036
+ data: string;
36037
+ driverParam: string;
36038
+ notNull: true;
36039
+ hasDefault: true;
36040
+ isPrimaryKey: false;
36041
+ isAutoincrement: false;
36042
+ hasRuntimeDefault: false;
36043
+ enumValues: [string, ...string[]];
36044
+ baseColumn: never;
36045
+ identity: undefined;
36046
+ generated: undefined;
36047
+ }, {}, {
36048
+ length: number | undefined;
36049
+ }>;
36050
+ recommendationPriority: import("drizzle-orm/pg-core").PgColumn<{
36051
+ name: "recommendation_priority";
36052
+ tableName: "sales_packages";
36053
+ dataType: "number";
36054
+ columnType: "PgInteger";
36055
+ data: number;
36056
+ driverParam: string | number;
36057
+ notNull: true;
36058
+ hasDefault: true;
36059
+ isPrimaryKey: false;
36060
+ isAutoincrement: false;
36061
+ hasRuntimeDefault: false;
36062
+ enumValues: undefined;
36063
+ baseColumn: never;
36064
+ identity: undefined;
36065
+ generated: undefined;
36066
+ }, {}, {}>;
36067
+ eligibilityRules: import("drizzle-orm/pg-core").PgColumn<{
36068
+ name: "eligibility_rules";
36069
+ tableName: "sales_packages";
36070
+ dataType: "json";
36071
+ columnType: "PgJsonb";
36072
+ data: {
36073
+ goals?: string[];
36074
+ industries?: string[];
36075
+ geographyTags?: string[];
36076
+ minBudget?: number | null;
36077
+ maxBudget?: number | null;
36078
+ requireActiveWindow?: boolean;
36079
+ minProductOverlap?: number | null;
36080
+ allowSubsetMatch?: boolean;
36081
+ allowNearMatch?: boolean;
36082
+ compareSignals?: string[];
36083
+ };
36084
+ driverParam: unknown;
36085
+ notNull: false;
36086
+ hasDefault: false;
36087
+ isPrimaryKey: false;
36088
+ isAutoincrement: false;
36089
+ hasRuntimeDefault: false;
36090
+ enumValues: undefined;
36091
+ baseColumn: never;
36092
+ identity: undefined;
36093
+ generated: undefined;
36094
+ }, {}, {
36095
+ $type: {
36096
+ goals?: string[];
36097
+ industries?: string[];
36098
+ geographyTags?: string[];
36099
+ minBudget?: number | null;
36100
+ maxBudget?: number | null;
36101
+ requireActiveWindow?: boolean;
36102
+ minProductOverlap?: number | null;
36103
+ allowSubsetMatch?: boolean;
36104
+ allowNearMatch?: boolean;
36105
+ compareSignals?: string[];
36106
+ };
36107
+ }>;
36108
+ assistantHints: import("drizzle-orm/pg-core").PgColumn<{
36109
+ name: "assistant_hints";
36110
+ tableName: "sales_packages";
36111
+ dataType: "json";
36112
+ columnType: "PgJsonb";
36113
+ data: {
36114
+ recommendedWhen?: string[];
36115
+ upsellMessage?: string | null;
36116
+ compareHeadline?: string | null;
36117
+ compareBody?: string | null;
36118
+ };
36119
+ driverParam: unknown;
36120
+ notNull: false;
36121
+ hasDefault: false;
36122
+ isPrimaryKey: false;
36123
+ isAutoincrement: false;
36124
+ hasRuntimeDefault: false;
36125
+ enumValues: undefined;
36126
+ baseColumn: never;
36127
+ identity: undefined;
36128
+ generated: undefined;
36129
+ }, {}, {
36130
+ $type: {
36131
+ recommendedWhen?: string[];
36132
+ upsellMessage?: string | null;
36133
+ compareHeadline?: string | null;
36134
+ compareBody?: string | null;
36135
+ };
36136
+ }>;
36137
+ taskTemplateMode: import("drizzle-orm/pg-core").PgColumn<{
36138
+ name: "task_template_mode";
36139
+ tableName: "sales_packages";
36140
+ dataType: "string";
36141
+ columnType: "PgVarchar";
36142
+ data: string;
36143
+ driverParam: string;
36144
+ notNull: true;
36145
+ hasDefault: true;
36146
+ isPrimaryKey: false;
36147
+ isAutoincrement: false;
36148
+ hasRuntimeDefault: false;
36149
+ enumValues: [string, ...string[]];
36150
+ baseColumn: never;
36151
+ identity: undefined;
36152
+ generated: undefined;
36153
+ }, {}, {
36154
+ length: number | undefined;
36155
+ }>;
36156
+ displayOrder: import("drizzle-orm/pg-core").PgColumn<{
36157
+ name: "display_order";
36158
+ tableName: "sales_packages";
36159
+ dataType: "number";
36160
+ columnType: "PgInteger";
36161
+ data: number;
36162
+ driverParam: string | number;
36163
+ notNull: true;
36164
+ hasDefault: true;
36165
+ isPrimaryKey: false;
36166
+ isAutoincrement: false;
36167
+ hasRuntimeDefault: false;
36168
+ enumValues: undefined;
36169
+ baseColumn: never;
36170
+ identity: undefined;
36171
+ generated: undefined;
36172
+ }, {}, {}>;
36173
+ isActive: import("drizzle-orm/pg-core").PgColumn<{
36174
+ name: "is_active";
36175
+ tableName: "sales_packages";
36176
+ dataType: "boolean";
36177
+ columnType: "PgBoolean";
36178
+ data: boolean;
36179
+ driverParam: boolean;
36180
+ notNull: true;
36181
+ hasDefault: true;
36182
+ isPrimaryKey: false;
36183
+ isAutoincrement: false;
36184
+ hasRuntimeDefault: false;
36185
+ enumValues: undefined;
36186
+ baseColumn: never;
36187
+ identity: undefined;
36188
+ generated: undefined;
36189
+ }, {}, {}>;
36190
+ createdAt: import("drizzle-orm/pg-core").PgColumn<{
36191
+ name: "created_at";
36192
+ tableName: "sales_packages";
36193
+ dataType: "date";
36194
+ columnType: "PgTimestamp";
36195
+ data: Date;
36196
+ driverParam: string;
36197
+ notNull: true;
36198
+ hasDefault: true;
36199
+ isPrimaryKey: false;
36200
+ isAutoincrement: false;
36201
+ hasRuntimeDefault: false;
36202
+ enumValues: undefined;
36203
+ baseColumn: never;
36204
+ identity: undefined;
36205
+ generated: undefined;
36206
+ }, {}, {}>;
36207
+ updatedAt: import("drizzle-orm/pg-core").PgColumn<{
36208
+ name: "updated_at";
36209
+ tableName: "sales_packages";
36210
+ dataType: "date";
36211
+ columnType: "PgTimestamp";
36212
+ data: Date;
36213
+ driverParam: string;
36214
+ notNull: true;
36215
+ hasDefault: true;
36216
+ isPrimaryKey: false;
36217
+ isAutoincrement: false;
36218
+ hasRuntimeDefault: false;
36219
+ enumValues: undefined;
36220
+ baseColumn: never;
36221
+ identity: undefined;
36222
+ generated: undefined;
36223
+ }, {}, {}>;
36224
+ };
36225
+ dialect: "pg";
36226
+ }>;
36227
+ export declare const insertSalesPackageSchema: z.ZodObject<Omit<{
36228
+ id: z.ZodOptional<z.ZodString>;
36229
+ code: z.ZodString;
36230
+ name: z.ZodString;
36231
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36232
+ initiativeCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36233
+ sellerSummary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36234
+ packagePrice: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36235
+ discountPercent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36236
+ addedValueAmount: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36237
+ addedValueDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36238
+ hubspotPackageValue: z.ZodString;
36239
+ startsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36240
+ endsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36241
+ status: z.ZodOptional<z.ZodString>;
36242
+ recommendationMode: z.ZodOptional<z.ZodString>;
36243
+ recommendationPriority: z.ZodOptional<z.ZodNumber>;
36244
+ eligibilityRules: z.ZodOptional<z.ZodNullable<z.ZodType<{
36245
+ goals?: string[];
36246
+ industries?: string[];
36247
+ geographyTags?: string[];
36248
+ minBudget?: number | null;
36249
+ maxBudget?: number | null;
36250
+ requireActiveWindow?: boolean;
36251
+ minProductOverlap?: number | null;
36252
+ allowSubsetMatch?: boolean;
36253
+ allowNearMatch?: boolean;
36254
+ compareSignals?: string[];
36255
+ }, z.ZodTypeDef, {
36256
+ goals?: string[];
36257
+ industries?: string[];
36258
+ geographyTags?: string[];
36259
+ minBudget?: number | null;
36260
+ maxBudget?: number | null;
36261
+ requireActiveWindow?: boolean;
36262
+ minProductOverlap?: number | null;
36263
+ allowSubsetMatch?: boolean;
36264
+ allowNearMatch?: boolean;
36265
+ compareSignals?: string[];
36266
+ }>>>;
36267
+ assistantHints: z.ZodOptional<z.ZodNullable<z.ZodType<{
36268
+ recommendedWhen?: string[];
36269
+ upsellMessage?: string | null;
36270
+ compareHeadline?: string | null;
36271
+ compareBody?: string | null;
36272
+ }, z.ZodTypeDef, {
36273
+ recommendedWhen?: string[];
36274
+ upsellMessage?: string | null;
36275
+ compareHeadline?: string | null;
36276
+ compareBody?: string | null;
36277
+ }>>>;
36278
+ taskTemplateMode: z.ZodOptional<z.ZodString>;
36279
+ displayOrder: z.ZodOptional<z.ZodNumber>;
36280
+ isActive: z.ZodOptional<z.ZodBoolean>;
36281
+ createdAt: z.ZodOptional<z.ZodDate>;
36282
+ updatedAt: z.ZodOptional<z.ZodDate>;
36283
+ }, "id" | "createdAt" | "updatedAt">, "strip", z.ZodTypeAny, {
36284
+ name: string;
36285
+ code: string;
36286
+ hubspotPackageValue: string;
36287
+ status?: string | undefined;
36288
+ displayOrder?: number | undefined;
36289
+ description?: string | null | undefined;
36290
+ isActive?: boolean | undefined;
36291
+ startsAt?: string | null | undefined;
36292
+ endsAt?: string | null | undefined;
36293
+ initiativeCode?: string | null | undefined;
36294
+ sellerSummary?: string | null | undefined;
36295
+ packagePrice?: string | null | undefined;
36296
+ discountPercent?: string | null | undefined;
36297
+ addedValueAmount?: string | null | undefined;
36298
+ addedValueDescription?: string | null | undefined;
36299
+ recommendationMode?: string | undefined;
36300
+ recommendationPriority?: number | undefined;
36301
+ eligibilityRules?: {
36302
+ goals?: string[];
36303
+ industries?: string[];
36304
+ geographyTags?: string[];
36305
+ minBudget?: number | null;
36306
+ maxBudget?: number | null;
36307
+ requireActiveWindow?: boolean;
36308
+ minProductOverlap?: number | null;
36309
+ allowSubsetMatch?: boolean;
36310
+ allowNearMatch?: boolean;
36311
+ compareSignals?: string[];
36312
+ } | null | undefined;
36313
+ assistantHints?: {
36314
+ recommendedWhen?: string[];
36315
+ upsellMessage?: string | null;
36316
+ compareHeadline?: string | null;
36317
+ compareBody?: string | null;
36318
+ } | null | undefined;
36319
+ taskTemplateMode?: string | undefined;
36320
+ }, {
36321
+ name: string;
36322
+ code: string;
36323
+ hubspotPackageValue: string;
36324
+ status?: string | undefined;
36325
+ displayOrder?: number | undefined;
36326
+ description?: string | null | undefined;
36327
+ isActive?: boolean | undefined;
36328
+ startsAt?: string | null | undefined;
36329
+ endsAt?: string | null | undefined;
36330
+ initiativeCode?: string | null | undefined;
36331
+ sellerSummary?: string | null | undefined;
36332
+ packagePrice?: string | null | undefined;
36333
+ discountPercent?: string | null | undefined;
36334
+ addedValueAmount?: string | null | undefined;
36335
+ addedValueDescription?: string | null | undefined;
36336
+ recommendationMode?: string | undefined;
36337
+ recommendationPriority?: number | undefined;
36338
+ eligibilityRules?: {
36339
+ goals?: string[];
36340
+ industries?: string[];
36341
+ geographyTags?: string[];
36342
+ minBudget?: number | null;
36343
+ maxBudget?: number | null;
36344
+ requireActiveWindow?: boolean;
36345
+ minProductOverlap?: number | null;
36346
+ allowSubsetMatch?: boolean;
36347
+ allowNearMatch?: boolean;
36348
+ compareSignals?: string[];
36349
+ } | null | undefined;
36350
+ assistantHints?: {
36351
+ recommendedWhen?: string[];
36352
+ upsellMessage?: string | null;
36353
+ compareHeadline?: string | null;
36354
+ compareBody?: string | null;
36355
+ } | null | undefined;
36356
+ taskTemplateMode?: string | undefined;
36357
+ }>;
36358
+ export declare const updateSalesPackageSchema: z.ZodObject<{
36359
+ name: z.ZodOptional<z.ZodString>;
36360
+ status: z.ZodOptional<z.ZodOptional<z.ZodString>>;
36361
+ code: z.ZodOptional<z.ZodString>;
36362
+ displayOrder: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
36363
+ description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36364
+ isActive: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
36365
+ startsAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36366
+ endsAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36367
+ initiativeCode: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36368
+ sellerSummary: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36369
+ packagePrice: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36370
+ discountPercent: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36371
+ addedValueAmount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36372
+ addedValueDescription: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36373
+ hubspotPackageValue: z.ZodOptional<z.ZodString>;
36374
+ recommendationMode: z.ZodOptional<z.ZodOptional<z.ZodString>>;
36375
+ recommendationPriority: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
36376
+ eligibilityRules: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<{
36377
+ goals?: string[];
36378
+ industries?: string[];
36379
+ geographyTags?: string[];
36380
+ minBudget?: number | null;
36381
+ maxBudget?: number | null;
36382
+ requireActiveWindow?: boolean;
36383
+ minProductOverlap?: number | null;
36384
+ allowSubsetMatch?: boolean;
36385
+ allowNearMatch?: boolean;
36386
+ compareSignals?: string[];
36387
+ }, z.ZodTypeDef, {
36388
+ goals?: string[];
36389
+ industries?: string[];
36390
+ geographyTags?: string[];
36391
+ minBudget?: number | null;
36392
+ maxBudget?: number | null;
36393
+ requireActiveWindow?: boolean;
36394
+ minProductOverlap?: number | null;
36395
+ allowSubsetMatch?: boolean;
36396
+ allowNearMatch?: boolean;
36397
+ compareSignals?: string[];
36398
+ }>>>>;
36399
+ assistantHints: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<{
36400
+ recommendedWhen?: string[];
36401
+ upsellMessage?: string | null;
36402
+ compareHeadline?: string | null;
36403
+ compareBody?: string | null;
36404
+ }, z.ZodTypeDef, {
36405
+ recommendedWhen?: string[];
36406
+ upsellMessage?: string | null;
36407
+ compareHeadline?: string | null;
36408
+ compareBody?: string | null;
36409
+ }>>>>;
36410
+ taskTemplateMode: z.ZodOptional<z.ZodOptional<z.ZodString>>;
36411
+ }, "strip", z.ZodTypeAny, {
36412
+ name?: string | undefined;
36413
+ status?: string | undefined;
36414
+ code?: string | undefined;
36415
+ displayOrder?: number | undefined;
36416
+ description?: string | null | undefined;
36417
+ isActive?: boolean | undefined;
36418
+ startsAt?: string | null | undefined;
36419
+ endsAt?: string | null | undefined;
36420
+ initiativeCode?: string | null | undefined;
36421
+ sellerSummary?: string | null | undefined;
36422
+ packagePrice?: string | null | undefined;
36423
+ discountPercent?: string | null | undefined;
36424
+ addedValueAmount?: string | null | undefined;
36425
+ addedValueDescription?: string | null | undefined;
36426
+ hubspotPackageValue?: string | undefined;
36427
+ recommendationMode?: string | undefined;
36428
+ recommendationPriority?: number | undefined;
36429
+ eligibilityRules?: {
36430
+ goals?: string[];
36431
+ industries?: string[];
36432
+ geographyTags?: string[];
36433
+ minBudget?: number | null;
36434
+ maxBudget?: number | null;
36435
+ requireActiveWindow?: boolean;
36436
+ minProductOverlap?: number | null;
36437
+ allowSubsetMatch?: boolean;
36438
+ allowNearMatch?: boolean;
36439
+ compareSignals?: string[];
36440
+ } | null | undefined;
36441
+ assistantHints?: {
36442
+ recommendedWhen?: string[];
36443
+ upsellMessage?: string | null;
36444
+ compareHeadline?: string | null;
36445
+ compareBody?: string | null;
36446
+ } | null | undefined;
36447
+ taskTemplateMode?: string | undefined;
36448
+ }, {
36449
+ name?: string | undefined;
36450
+ status?: string | undefined;
36451
+ code?: string | undefined;
36452
+ displayOrder?: number | undefined;
36453
+ description?: string | null | undefined;
36454
+ isActive?: boolean | undefined;
36455
+ startsAt?: string | null | undefined;
36456
+ endsAt?: string | null | undefined;
36457
+ initiativeCode?: string | null | undefined;
36458
+ sellerSummary?: string | null | undefined;
36459
+ packagePrice?: string | null | undefined;
36460
+ discountPercent?: string | null | undefined;
36461
+ addedValueAmount?: string | null | undefined;
36462
+ addedValueDescription?: string | null | undefined;
36463
+ hubspotPackageValue?: string | undefined;
36464
+ recommendationMode?: string | undefined;
36465
+ recommendationPriority?: number | undefined;
36466
+ eligibilityRules?: {
36467
+ goals?: string[];
36468
+ industries?: string[];
36469
+ geographyTags?: string[];
36470
+ minBudget?: number | null;
36471
+ maxBudget?: number | null;
36472
+ requireActiveWindow?: boolean;
36473
+ minProductOverlap?: number | null;
36474
+ allowSubsetMatch?: boolean;
36475
+ allowNearMatch?: boolean;
36476
+ compareSignals?: string[];
36477
+ } | null | undefined;
36478
+ assistantHints?: {
36479
+ recommendedWhen?: string[];
36480
+ upsellMessage?: string | null;
36481
+ compareHeadline?: string | null;
36482
+ compareBody?: string | null;
36483
+ } | null | undefined;
36484
+ taskTemplateMode?: string | undefined;
36485
+ }>;
36486
+ export type SalesPackage = typeof salesPackages.$inferSelect;
36487
+ export type InsertSalesPackage = z.infer<typeof insertSalesPackageSchema>;
36488
+ export type UpdateSalesPackage = z.infer<typeof updateSalesPackageSchema>;
36489
+ export declare const salesPackageProducts: import("drizzle-orm/pg-core").PgTableWithColumns<{
36490
+ name: "sales_package_products";
36491
+ schema: undefined;
36492
+ columns: {
36493
+ id: import("drizzle-orm/pg-core").PgColumn<{
36494
+ name: "id";
36495
+ tableName: "sales_package_products";
36496
+ dataType: "string";
36497
+ columnType: "PgUUID";
36498
+ data: string;
36499
+ driverParam: string;
36500
+ notNull: true;
36501
+ hasDefault: true;
36502
+ isPrimaryKey: true;
36503
+ isAutoincrement: false;
36504
+ hasRuntimeDefault: false;
36505
+ enumValues: undefined;
36506
+ baseColumn: never;
36507
+ identity: undefined;
36508
+ generated: undefined;
36509
+ }, {}, {}>;
36510
+ salesPackageCode: import("drizzle-orm/pg-core").PgColumn<{
36511
+ name: "sales_package_code";
36512
+ tableName: "sales_package_products";
36513
+ dataType: "string";
36514
+ columnType: "PgVarchar";
36515
+ data: string;
36516
+ driverParam: string;
36517
+ notNull: true;
36518
+ hasDefault: false;
36519
+ isPrimaryKey: false;
36520
+ isAutoincrement: false;
36521
+ hasRuntimeDefault: false;
36522
+ enumValues: [string, ...string[]];
36523
+ baseColumn: never;
36524
+ identity: undefined;
36525
+ generated: undefined;
36526
+ }, {}, {
36527
+ length: number | undefined;
36528
+ }>;
36529
+ stribProductId: import("drizzle-orm/pg-core").PgColumn<{
36530
+ name: "strib_product_id";
36531
+ tableName: "sales_package_products";
36532
+ dataType: "string";
36533
+ columnType: "PgUUID";
36534
+ data: string;
36535
+ driverParam: string;
36536
+ notNull: true;
36537
+ hasDefault: false;
36538
+ isPrimaryKey: false;
36539
+ isAutoincrement: false;
36540
+ hasRuntimeDefault: false;
36541
+ enumValues: undefined;
36542
+ baseColumn: never;
36543
+ identity: undefined;
36544
+ generated: undefined;
36545
+ }, {}, {}>;
36546
+ displayOrder: import("drizzle-orm/pg-core").PgColumn<{
36547
+ name: "display_order";
36548
+ tableName: "sales_package_products";
36549
+ dataType: "number";
36550
+ columnType: "PgInteger";
36551
+ data: number;
36552
+ driverParam: string | number;
36553
+ notNull: true;
36554
+ hasDefault: true;
36555
+ isPrimaryKey: false;
36556
+ isAutoincrement: false;
36557
+ hasRuntimeDefault: false;
36558
+ enumValues: undefined;
36559
+ baseColumn: never;
36560
+ identity: undefined;
36561
+ generated: undefined;
36562
+ }, {}, {}>;
36563
+ approvedUnitRate: import("drizzle-orm/pg-core").PgColumn<{
36564
+ name: "approved_unit_rate";
36565
+ tableName: "sales_package_products";
36566
+ dataType: "string";
36567
+ columnType: "PgNumeric";
36568
+ data: string;
36569
+ driverParam: string;
36570
+ notNull: false;
36571
+ hasDefault: false;
36572
+ isPrimaryKey: false;
36573
+ isAutoincrement: false;
36574
+ hasRuntimeDefault: false;
36575
+ enumValues: undefined;
36576
+ baseColumn: never;
36577
+ identity: undefined;
36578
+ generated: undefined;
36579
+ }, {}, {}>;
36580
+ approvedRateType: import("drizzle-orm/pg-core").PgColumn<{
36581
+ name: "approved_rate_type";
36582
+ tableName: "sales_package_products";
36583
+ dataType: "string";
36584
+ columnType: "PgVarchar";
36585
+ data: string;
36586
+ driverParam: string;
36587
+ notNull: false;
36588
+ hasDefault: false;
36589
+ isPrimaryKey: false;
36590
+ isAutoincrement: false;
36591
+ hasRuntimeDefault: false;
36592
+ enumValues: [string, ...string[]];
36593
+ baseColumn: never;
36594
+ identity: undefined;
36595
+ generated: undefined;
36596
+ }, {}, {
36597
+ length: number | undefined;
36598
+ }>;
36599
+ allocationMode: import("drizzle-orm/pg-core").PgColumn<{
36600
+ name: "allocation_mode";
36601
+ tableName: "sales_package_products";
36602
+ dataType: "string";
36603
+ columnType: "PgVarchar";
36604
+ data: string;
36605
+ driverParam: string;
36606
+ notNull: true;
36607
+ hasDefault: true;
36608
+ isPrimaryKey: false;
36609
+ isAutoincrement: false;
36610
+ hasRuntimeDefault: false;
36611
+ enumValues: [string, ...string[]];
36612
+ baseColumn: never;
36613
+ identity: undefined;
36614
+ generated: undefined;
36615
+ }, {}, {
36616
+ length: number | undefined;
36617
+ }>;
36618
+ allocationValue: import("drizzle-orm/pg-core").PgColumn<{
36619
+ name: "allocation_value";
36620
+ tableName: "sales_package_products";
36621
+ dataType: "string";
36622
+ columnType: "PgNumeric";
36623
+ data: string;
36624
+ driverParam: string;
36625
+ notNull: false;
36626
+ hasDefault: false;
36627
+ isPrimaryKey: false;
36628
+ isAutoincrement: false;
36629
+ hasRuntimeDefault: false;
36630
+ enumValues: undefined;
36631
+ baseColumn: never;
36632
+ identity: undefined;
36633
+ generated: undefined;
36634
+ }, {}, {}>;
36635
+ required: import("drizzle-orm/pg-core").PgColumn<{
36636
+ name: "required";
36637
+ tableName: "sales_package_products";
36638
+ dataType: "boolean";
36639
+ columnType: "PgBoolean";
36640
+ data: boolean;
36641
+ driverParam: boolean;
36642
+ notNull: true;
36643
+ hasDefault: true;
36644
+ isPrimaryKey: false;
36645
+ isAutoincrement: false;
36646
+ hasRuntimeDefault: false;
36647
+ enumValues: undefined;
36648
+ baseColumn: never;
36649
+ identity: undefined;
36650
+ generated: undefined;
36651
+ }, {}, {}>;
36652
+ defaultFulfillmentDetails: import("drizzle-orm/pg-core").PgColumn<{
36653
+ name: "default_fulfillment_details";
36654
+ tableName: "sales_package_products";
36655
+ dataType: "json";
36656
+ columnType: "PgJsonb";
36657
+ data: unknown;
36658
+ driverParam: unknown;
36659
+ notNull: false;
36660
+ hasDefault: false;
36661
+ isPrimaryKey: false;
36662
+ isAutoincrement: false;
36663
+ hasRuntimeDefault: false;
36664
+ enumValues: undefined;
36665
+ baseColumn: never;
36666
+ identity: undefined;
36667
+ generated: undefined;
36668
+ }, {}, {}>;
36669
+ createdAt: import("drizzle-orm/pg-core").PgColumn<{
36670
+ name: "created_at";
36671
+ tableName: "sales_package_products";
36672
+ dataType: "date";
36673
+ columnType: "PgTimestamp";
36674
+ data: Date;
36675
+ driverParam: string;
36676
+ notNull: true;
36677
+ hasDefault: true;
36678
+ isPrimaryKey: false;
36679
+ isAutoincrement: false;
36680
+ hasRuntimeDefault: false;
36681
+ enumValues: undefined;
36682
+ baseColumn: never;
36683
+ identity: undefined;
36684
+ generated: undefined;
36685
+ }, {}, {}>;
36686
+ updatedAt: import("drizzle-orm/pg-core").PgColumn<{
36687
+ name: "updated_at";
36688
+ tableName: "sales_package_products";
36689
+ dataType: "date";
36690
+ columnType: "PgTimestamp";
36691
+ data: Date;
36692
+ driverParam: string;
36693
+ notNull: true;
36694
+ hasDefault: true;
36695
+ isPrimaryKey: false;
36696
+ isAutoincrement: false;
36697
+ hasRuntimeDefault: false;
36698
+ enumValues: undefined;
36699
+ baseColumn: never;
36700
+ identity: undefined;
36701
+ generated: undefined;
36702
+ }, {}, {}>;
36703
+ };
36704
+ dialect: "pg";
36705
+ }>;
36706
+ export type SalesPackageProduct = typeof salesPackageProducts.$inferSelect;
35111
36707
  export declare const mediaOrders: import("drizzle-orm/pg-core").PgTableWithColumns<{
35112
36708
  name: "media_orders";
35113
36709
  schema: undefined;
@@ -35313,6 +36909,70 @@ export declare const mediaOrders: import("drizzle-orm/pg-core").PgTableWithColum
35313
36909
  }, {}, {
35314
36910
  length: number | undefined;
35315
36911
  }>;
36912
+ salesPackageCode: import("drizzle-orm/pg-core").PgColumn<{
36913
+ name: "sales_package_code";
36914
+ tableName: "media_orders";
36915
+ dataType: "string";
36916
+ columnType: "PgVarchar";
36917
+ data: string;
36918
+ driverParam: string;
36919
+ notNull: false;
36920
+ hasDefault: false;
36921
+ isPrimaryKey: false;
36922
+ isAutoincrement: false;
36923
+ hasRuntimeDefault: false;
36924
+ enumValues: [string, ...string[]];
36925
+ baseColumn: never;
36926
+ identity: undefined;
36927
+ generated: undefined;
36928
+ }, {}, {
36929
+ length: number | undefined;
36930
+ }>;
36931
+ salesPackageSnapshot: import("drizzle-orm/pg-core").PgColumn<{
36932
+ name: "sales_package_snapshot";
36933
+ tableName: "media_orders";
36934
+ dataType: "json";
36935
+ columnType: "PgJsonb";
36936
+ data: {
36937
+ code: string;
36938
+ name: string;
36939
+ packagePrice: number | null;
36940
+ initiativeCode: string | null;
36941
+ componentCount: number;
36942
+ appliedAt: string;
36943
+ packageSource: "direct_package" | "upgrade_from_selection" | "manual_products";
36944
+ compareSignals?: string[];
36945
+ sellerSummary?: string | null;
36946
+ discountPercent?: number | null;
36947
+ addedValueAmount?: number | null;
36948
+ addedValueDescription?: string | null;
36949
+ }[];
36950
+ driverParam: unknown;
36951
+ notNull: false;
36952
+ hasDefault: false;
36953
+ isPrimaryKey: false;
36954
+ isAutoincrement: false;
36955
+ hasRuntimeDefault: false;
36956
+ enumValues: undefined;
36957
+ baseColumn: never;
36958
+ identity: undefined;
36959
+ generated: undefined;
36960
+ }, {}, {
36961
+ $type: {
36962
+ code: string;
36963
+ name: string;
36964
+ packagePrice: number | null;
36965
+ initiativeCode: string | null;
36966
+ componentCount: number;
36967
+ appliedAt: string;
36968
+ packageSource: "direct_package" | "upgrade_from_selection" | "manual_products";
36969
+ compareSignals?: string[];
36970
+ sellerSummary?: string | null;
36971
+ discountPercent?: number | null;
36972
+ addedValueAmount?: number | null;
36973
+ addedValueDescription?: string | null;
36974
+ }[];
36975
+ }>;
35316
36976
  clientName: import("drizzle-orm/pg-core").PgColumn<{
35317
36977
  name: "client_name";
35318
36978
  tableName: "media_orders";
@@ -36618,6 +38278,34 @@ export declare const insertMediaOrderSchema: z.ZodObject<Omit<{
36618
38278
  hubspotCompanyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36619
38279
  parentHubspotCompanyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36620
38280
  initiativeCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38281
+ salesPackageCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38282
+ salesPackageSnapshot: z.ZodOptional<z.ZodNullable<z.ZodType<{
38283
+ code: string;
38284
+ name: string;
38285
+ packagePrice: number | null;
38286
+ initiativeCode: string | null;
38287
+ componentCount: number;
38288
+ appliedAt: string;
38289
+ packageSource: "direct_package" | "upgrade_from_selection" | "manual_products";
38290
+ compareSignals?: string[];
38291
+ sellerSummary?: string | null;
38292
+ discountPercent?: number | null;
38293
+ addedValueAmount?: number | null;
38294
+ addedValueDescription?: string | null;
38295
+ }[], z.ZodTypeDef, {
38296
+ code: string;
38297
+ name: string;
38298
+ packagePrice: number | null;
38299
+ initiativeCode: string | null;
38300
+ componentCount: number;
38301
+ appliedAt: string;
38302
+ packageSource: "direct_package" | "upgrade_from_selection" | "manual_products";
38303
+ compareSignals?: string[];
38304
+ sellerSummary?: string | null;
38305
+ discountPercent?: number | null;
38306
+ addedValueAmount?: number | null;
38307
+ addedValueDescription?: string | null;
38308
+ }[]>>>;
36621
38309
  clientName: z.ZodString;
36622
38310
  clientContactName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36623
38311
  clientContactEmail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -36717,6 +38405,7 @@ export declare const insertMediaOrderSchema: z.ZodObject<Omit<{
36717
38405
  defaultTargeting?: string | null | undefined;
36718
38406
  defaultAudience?: string | null | undefined;
36719
38407
  defaultPromoting?: string | null | undefined;
38408
+ defaultCreativeSource?: string | null | undefined;
36720
38409
  planId?: string | null | undefined;
36721
38410
  shareToken?: string | null | undefined;
36722
38411
  approvedAt?: Date | null | undefined;
@@ -36725,10 +38414,26 @@ export declare const insertMediaOrderSchema: z.ZodObject<Omit<{
36725
38414
  version?: number | undefined;
36726
38415
  vendorId?: string | null | undefined;
36727
38416
  submittedBy?: string | null | undefined;
38417
+ initiativeCode?: string | null | undefined;
38418
+ salesPackageCode?: string | null | undefined;
36728
38419
  configurationId?: string | null | undefined;
36729
38420
  optionId?: string | null | undefined;
38421
+ lastSyncedAt?: Date | null | undefined;
36730
38422
  parentHubspotCompanyId?: string | null | undefined;
36731
- initiativeCode?: string | null | undefined;
38423
+ salesPackageSnapshot?: {
38424
+ code: string;
38425
+ name: string;
38426
+ packagePrice: number | null;
38427
+ initiativeCode: string | null;
38428
+ componentCount: number;
38429
+ appliedAt: string;
38430
+ packageSource: "direct_package" | "upgrade_from_selection" | "manual_products";
38431
+ compareSignals?: string[];
38432
+ sellerSummary?: string | null;
38433
+ discountPercent?: number | null;
38434
+ addedValueAmount?: number | null;
38435
+ addedValueDescription?: string | null;
38436
+ }[] | null | undefined;
36732
38437
  clientContactName?: string | null | undefined;
36733
38438
  clientContactEmail?: string | null | undefined;
36734
38439
  orderTitle?: string | null | undefined;
@@ -36747,10 +38452,332 @@ export declare const insertMediaOrderSchema: z.ZodObject<Omit<{
36747
38452
  clientTier?: string | null | undefined;
36748
38453
  xlsxStorageKey?: string | null | undefined;
36749
38454
  xlsxGeneratedAt?: Date | null | undefined;
38455
+ lastSyncedVersion?: number | null | undefined;
38456
+ defaultGeography?: string | null | undefined;
38457
+ defaultCreativeRefreshCadence?: string | null | undefined;
38458
+ defaultRunDateStart?: string | null | undefined;
38459
+ defaultRunDateEnd?: string | null | undefined;
38460
+ orderNotes?: string | null | undefined;
38461
+ navigaAdvertiserId?: string | null | undefined;
38462
+ purchaseOrderNumber?: string | null | undefined;
38463
+ billToName?: string | null | undefined;
38464
+ billToEmail?: string | null | undefined;
38465
+ vendorAssignedAt?: Date | null | undefined;
38466
+ vendorAssignedBy?: string | null | undefined;
38467
+ vendorFulfillmentStatus?: "completed" | "assigned" | "in_progress" | "issue" | null | undefined;
38468
+ vendorFulfillmentNotes?: string | null | undefined;
38469
+ vendorFulfillmentCompletedAt?: Date | null | undefined;
38470
+ vendorFulfillmentCompletedBy?: string | null | undefined;
38471
+ isVendorCreated?: boolean | undefined;
38472
+ vendorSalesRep?: string | null | undefined;
38473
+ vendorOrderReference?: string | null | undefined;
38474
+ datasysAdvertiserId?: string | null | undefined;
38475
+ ioSigningStatus?: string | null | undefined;
38476
+ ioSentForSigningAt?: Date | null | undefined;
38477
+ ioSentForSigningBy?: string | null | undefined;
38478
+ ioPdfStorageKey?: string | null | undefined;
38479
+ ioPdfGeneratedAt?: Date | null | undefined;
38480
+ signaturePolicy?: string | undefined;
38481
+ signatureDecision?: string | null | undefined;
38482
+ signatureBypassReason?: string | null | undefined;
38483
+ signatureBypassNotes?: string | null | undefined;
38484
+ signatureBypassByUserId?: string | null | undefined;
38485
+ signatureBypassAt?: Date | null | undefined;
38486
+ ioImportHistory?: {
38487
+ fingerprint: string;
38488
+ importedAt: string;
38489
+ itemCount: number;
38490
+ }[] | null | undefined;
38491
+ earlyStartZone?: string | null | undefined;
38492
+ earlyStartReason?: string | null | undefined;
38493
+ }, {
38494
+ clientName: string;
38495
+ orderDate: string;
38496
+ status?: "approved" | "completed" | "active" | "draft" | "pending_approval" | "sent" | undefined;
38497
+ hubspotCompanyId?: string | null | undefined;
38498
+ partnerId?: string | null | undefined;
38499
+ hubspotDealId?: string | null | undefined;
38500
+ createdBy?: string | null | undefined;
38501
+ createdByUserId?: string | null | undefined;
38502
+ ownerUserId?: string | null | undefined;
38503
+ engagementId?: string | null | undefined;
38504
+ contractId?: string | null | undefined;
38505
+ pdfStorageKey?: string | null | undefined;
38506
+ pdfGeneratedAt?: Date | null | undefined;
38507
+ defaultTargeting?: string | null | undefined;
38508
+ defaultAudience?: string | null | undefined;
38509
+ defaultPromoting?: string | null | undefined;
38510
+ defaultCreativeSource?: string | null | undefined;
38511
+ planId?: string | null | undefined;
38512
+ shareToken?: string | null | undefined;
38513
+ approvedAt?: Date | null | undefined;
38514
+ approvedBy?: string | null | undefined;
38515
+ completedAt?: Date | null | undefined;
38516
+ version?: number | undefined;
38517
+ vendorId?: string | null | undefined;
38518
+ submittedBy?: string | null | undefined;
38519
+ initiativeCode?: string | null | undefined;
38520
+ salesPackageCode?: string | null | undefined;
38521
+ configurationId?: string | null | undefined;
38522
+ optionId?: string | null | undefined;
36750
38523
  lastSyncedAt?: Date | null | undefined;
38524
+ parentHubspotCompanyId?: string | null | undefined;
38525
+ salesPackageSnapshot?: {
38526
+ code: string;
38527
+ name: string;
38528
+ packagePrice: number | null;
38529
+ initiativeCode: string | null;
38530
+ componentCount: number;
38531
+ appliedAt: string;
38532
+ packageSource: "direct_package" | "upgrade_from_selection" | "manual_products";
38533
+ compareSignals?: string[];
38534
+ sellerSummary?: string | null;
38535
+ discountPercent?: number | null;
38536
+ addedValueAmount?: number | null;
38537
+ addedValueDescription?: string | null;
38538
+ }[] | null | undefined;
38539
+ clientContactName?: string | null | undefined;
38540
+ clientContactEmail?: string | null | undefined;
38541
+ orderTitle?: string | null | undefined;
38542
+ flightStart?: string | null | undefined;
38543
+ flightEnd?: string | null | undefined;
38544
+ totalInvestment?: string | null | undefined;
38545
+ totalAddedValue?: string | null | undefined;
38546
+ totalImpressions?: number | null | undefined;
38547
+ submittedAt?: Date | null | undefined;
38548
+ sentAt?: Date | null | undefined;
38549
+ activatedAt?: Date | null | undefined;
38550
+ returnReason?: string | null | undefined;
38551
+ amendmentReason?: "other" | "budget_adjustment" | "flight_date_change" | "product_swap" | "add_line_items" | "remove_line_items" | "rate_renegotiation" | "client_request" | null | undefined;
38552
+ amendmentNotes?: string | null | undefined;
38553
+ slaHold?: boolean | null | undefined;
38554
+ clientTier?: string | null | undefined;
38555
+ xlsxStorageKey?: string | null | undefined;
38556
+ xlsxGeneratedAt?: Date | null | undefined;
36751
38557
  lastSyncedVersion?: number | null | undefined;
36752
38558
  defaultGeography?: string | null | undefined;
38559
+ defaultCreativeRefreshCadence?: string | null | undefined;
38560
+ defaultRunDateStart?: string | null | undefined;
38561
+ defaultRunDateEnd?: string | null | undefined;
38562
+ orderNotes?: string | null | undefined;
38563
+ navigaAdvertiserId?: string | null | undefined;
38564
+ purchaseOrderNumber?: string | null | undefined;
38565
+ billToName?: string | null | undefined;
38566
+ billToEmail?: string | null | undefined;
38567
+ vendorAssignedAt?: Date | null | undefined;
38568
+ vendorAssignedBy?: string | null | undefined;
38569
+ vendorFulfillmentStatus?: "completed" | "assigned" | "in_progress" | "issue" | null | undefined;
38570
+ vendorFulfillmentNotes?: string | null | undefined;
38571
+ vendorFulfillmentCompletedAt?: Date | null | undefined;
38572
+ vendorFulfillmentCompletedBy?: string | null | undefined;
38573
+ isVendorCreated?: boolean | undefined;
38574
+ vendorSalesRep?: string | null | undefined;
38575
+ vendorOrderReference?: string | null | undefined;
38576
+ datasysAdvertiserId?: string | null | undefined;
38577
+ ioSigningStatus?: string | null | undefined;
38578
+ ioSentForSigningAt?: Date | null | undefined;
38579
+ ioSentForSigningBy?: string | null | undefined;
38580
+ ioPdfStorageKey?: string | null | undefined;
38581
+ ioPdfGeneratedAt?: Date | null | undefined;
38582
+ signaturePolicy?: string | undefined;
38583
+ signatureDecision?: string | null | undefined;
38584
+ signatureBypassReason?: string | null | undefined;
38585
+ signatureBypassNotes?: string | null | undefined;
38586
+ signatureBypassByUserId?: string | null | undefined;
38587
+ signatureBypassAt?: Date | null | undefined;
38588
+ ioImportHistory?: {
38589
+ fingerprint: string;
38590
+ importedAt: string;
38591
+ itemCount: number;
38592
+ }[] | null | undefined;
38593
+ earlyStartZone?: string | null | undefined;
38594
+ earlyStartReason?: string | null | undefined;
38595
+ }>;
38596
+ export declare const updateMediaOrderSchema: z.ZodObject<{
38597
+ status: z.ZodOptional<z.ZodOptional<z.ZodEnum<["draft", "pending_approval", "approved", "sent", "active", "completed"]>>>;
38598
+ hubspotCompanyId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38599
+ partnerId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38600
+ hubspotDealId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38601
+ createdBy: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38602
+ createdByUserId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38603
+ ownerUserId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38604
+ engagementId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38605
+ contractId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38606
+ pdfStorageKey: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38607
+ pdfGeneratedAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDate>>>;
38608
+ defaultTargeting: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38609
+ defaultAudience: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38610
+ defaultPromoting: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38611
+ defaultCreativeSource: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38612
+ planId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38613
+ clientName: z.ZodOptional<z.ZodString>;
38614
+ shareToken: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38615
+ approvedAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDate>>>;
38616
+ approvedBy: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38617
+ completedAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDate>>>;
38618
+ version: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
38619
+ vendorId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38620
+ submittedBy: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38621
+ initiativeCode: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38622
+ salesPackageCode: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38623
+ configurationId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38624
+ optionId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38625
+ lastSyncedAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDate>>>;
38626
+ parentHubspotCompanyId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38627
+ salesPackageSnapshot: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<{
38628
+ code: string;
38629
+ name: string;
38630
+ packagePrice: number | null;
38631
+ initiativeCode: string | null;
38632
+ componentCount: number;
38633
+ appliedAt: string;
38634
+ packageSource: "direct_package" | "upgrade_from_selection" | "manual_products";
38635
+ compareSignals?: string[];
38636
+ sellerSummary?: string | null;
38637
+ discountPercent?: number | null;
38638
+ addedValueAmount?: number | null;
38639
+ addedValueDescription?: string | null;
38640
+ }[], z.ZodTypeDef, {
38641
+ code: string;
38642
+ name: string;
38643
+ packagePrice: number | null;
38644
+ initiativeCode: string | null;
38645
+ componentCount: number;
38646
+ appliedAt: string;
38647
+ packageSource: "direct_package" | "upgrade_from_selection" | "manual_products";
38648
+ compareSignals?: string[];
38649
+ sellerSummary?: string | null;
38650
+ discountPercent?: number | null;
38651
+ addedValueAmount?: number | null;
38652
+ addedValueDescription?: string | null;
38653
+ }[]>>>>;
38654
+ clientContactName: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38655
+ clientContactEmail: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38656
+ orderDate: z.ZodOptional<z.ZodString>;
38657
+ orderTitle: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38658
+ flightStart: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38659
+ flightEnd: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38660
+ totalInvestment: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38661
+ totalAddedValue: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38662
+ totalImpressions: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
38663
+ submittedAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDate>>>;
38664
+ sentAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDate>>>;
38665
+ activatedAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDate>>>;
38666
+ returnReason: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38667
+ amendmentReason: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEnum<["budget_adjustment", "flight_date_change", "product_swap", "add_line_items", "remove_line_items", "rate_renegotiation", "client_request", "other"]>>>>;
38668
+ amendmentNotes: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38669
+ slaHold: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>>;
38670
+ clientTier: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38671
+ xlsxStorageKey: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38672
+ xlsxGeneratedAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDate>>>;
38673
+ lastSyncedVersion: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
38674
+ defaultGeography: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38675
+ defaultCreativeRefreshCadence: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38676
+ defaultRunDateStart: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38677
+ defaultRunDateEnd: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38678
+ orderNotes: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38679
+ navigaAdvertiserId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38680
+ purchaseOrderNumber: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38681
+ billToName: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38682
+ billToEmail: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38683
+ vendorAssignedAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDate>>>;
38684
+ vendorAssignedBy: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38685
+ vendorFulfillmentStatus: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEnum<["assigned", "in_progress", "completed", "issue"]>>>>;
38686
+ vendorFulfillmentNotes: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38687
+ vendorFulfillmentCompletedAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDate>>>;
38688
+ vendorFulfillmentCompletedBy: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38689
+ isVendorCreated: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
38690
+ vendorSalesRep: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38691
+ vendorOrderReference: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38692
+ datasysAdvertiserId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38693
+ ioSigningStatus: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38694
+ ioSentForSigningAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDate>>>;
38695
+ ioSentForSigningBy: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38696
+ ioPdfStorageKey: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38697
+ ioPdfGeneratedAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDate>>>;
38698
+ signaturePolicy: z.ZodOptional<z.ZodOptional<z.ZodString>>;
38699
+ signatureDecision: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38700
+ signatureBypassReason: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38701
+ signatureBypassNotes: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38702
+ signatureBypassByUserId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38703
+ signatureBypassAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDate>>>;
38704
+ ioImportHistory: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<{
38705
+ fingerprint: string;
38706
+ importedAt: string;
38707
+ itemCount: number;
38708
+ }[], z.ZodTypeDef, {
38709
+ fingerprint: string;
38710
+ importedAt: string;
38711
+ itemCount: number;
38712
+ }[]>>>>;
38713
+ earlyStartZone: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38714
+ earlyStartReason: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38715
+ }, "strip", z.ZodTypeAny, {
38716
+ status?: "approved" | "completed" | "active" | "draft" | "pending_approval" | "sent" | undefined;
38717
+ hubspotCompanyId?: string | null | undefined;
38718
+ partnerId?: string | null | undefined;
38719
+ hubspotDealId?: string | null | undefined;
38720
+ createdBy?: string | null | undefined;
38721
+ createdByUserId?: string | null | undefined;
38722
+ ownerUserId?: string | null | undefined;
38723
+ engagementId?: string | null | undefined;
38724
+ contractId?: string | null | undefined;
38725
+ pdfStorageKey?: string | null | undefined;
38726
+ pdfGeneratedAt?: Date | null | undefined;
38727
+ defaultTargeting?: string | null | undefined;
38728
+ defaultAudience?: string | null | undefined;
38729
+ defaultPromoting?: string | null | undefined;
36753
38730
  defaultCreativeSource?: string | null | undefined;
38731
+ planId?: string | null | undefined;
38732
+ clientName?: string | undefined;
38733
+ shareToken?: string | null | undefined;
38734
+ approvedAt?: Date | null | undefined;
38735
+ approvedBy?: string | null | undefined;
38736
+ completedAt?: Date | null | undefined;
38737
+ version?: number | undefined;
38738
+ vendorId?: string | null | undefined;
38739
+ submittedBy?: string | null | undefined;
38740
+ initiativeCode?: string | null | undefined;
38741
+ salesPackageCode?: string | null | undefined;
38742
+ configurationId?: string | null | undefined;
38743
+ optionId?: string | null | undefined;
38744
+ lastSyncedAt?: Date | null | undefined;
38745
+ parentHubspotCompanyId?: string | null | undefined;
38746
+ salesPackageSnapshot?: {
38747
+ code: string;
38748
+ name: string;
38749
+ packagePrice: number | null;
38750
+ initiativeCode: string | null;
38751
+ componentCount: number;
38752
+ appliedAt: string;
38753
+ packageSource: "direct_package" | "upgrade_from_selection" | "manual_products";
38754
+ compareSignals?: string[];
38755
+ sellerSummary?: string | null;
38756
+ discountPercent?: number | null;
38757
+ addedValueAmount?: number | null;
38758
+ addedValueDescription?: string | null;
38759
+ }[] | null | undefined;
38760
+ clientContactName?: string | null | undefined;
38761
+ clientContactEmail?: string | null | undefined;
38762
+ orderDate?: string | undefined;
38763
+ orderTitle?: string | null | undefined;
38764
+ flightStart?: string | null | undefined;
38765
+ flightEnd?: string | null | undefined;
38766
+ totalInvestment?: string | null | undefined;
38767
+ totalAddedValue?: string | null | undefined;
38768
+ totalImpressions?: number | null | undefined;
38769
+ submittedAt?: Date | null | undefined;
38770
+ sentAt?: Date | null | undefined;
38771
+ activatedAt?: Date | null | undefined;
38772
+ returnReason?: string | null | undefined;
38773
+ amendmentReason?: "other" | "budget_adjustment" | "flight_date_change" | "product_swap" | "add_line_items" | "remove_line_items" | "rate_renegotiation" | "client_request" | null | undefined;
38774
+ amendmentNotes?: string | null | undefined;
38775
+ slaHold?: boolean | null | undefined;
38776
+ clientTier?: string | null | undefined;
38777
+ xlsxStorageKey?: string | null | undefined;
38778
+ xlsxGeneratedAt?: Date | null | undefined;
38779
+ lastSyncedVersion?: number | null | undefined;
38780
+ defaultGeography?: string | null | undefined;
36754
38781
  defaultCreativeRefreshCadence?: string | null | undefined;
36755
38782
  defaultRunDateStart?: string | null | undefined;
36756
38783
  defaultRunDateEnd?: string | null | undefined;
@@ -36788,8 +38815,6 @@ export declare const insertMediaOrderSchema: z.ZodObject<Omit<{
36788
38815
  earlyStartZone?: string | null | undefined;
36789
38816
  earlyStartReason?: string | null | undefined;
36790
38817
  }, {
36791
- clientName: string;
36792
- orderDate: string;
36793
38818
  status?: "approved" | "completed" | "active" | "draft" | "pending_approval" | "sent" | undefined;
36794
38819
  hubspotCompanyId?: string | null | undefined;
36795
38820
  partnerId?: string | null | undefined;
@@ -36804,183 +38829,7 @@ export declare const insertMediaOrderSchema: z.ZodObject<Omit<{
36804
38829
  defaultTargeting?: string | null | undefined;
36805
38830
  defaultAudience?: string | null | undefined;
36806
38831
  defaultPromoting?: string | null | undefined;
36807
- planId?: string | null | undefined;
36808
- shareToken?: string | null | undefined;
36809
- approvedAt?: Date | null | undefined;
36810
- approvedBy?: string | null | undefined;
36811
- completedAt?: Date | null | undefined;
36812
- version?: number | undefined;
36813
- vendorId?: string | null | undefined;
36814
- submittedBy?: string | null | undefined;
36815
- configurationId?: string | null | undefined;
36816
- optionId?: string | null | undefined;
36817
- parentHubspotCompanyId?: string | null | undefined;
36818
- initiativeCode?: string | null | undefined;
36819
- clientContactName?: string | null | undefined;
36820
- clientContactEmail?: string | null | undefined;
36821
- orderTitle?: string | null | undefined;
36822
- flightStart?: string | null | undefined;
36823
- flightEnd?: string | null | undefined;
36824
- totalInvestment?: string | null | undefined;
36825
- totalAddedValue?: string | null | undefined;
36826
- totalImpressions?: number | null | undefined;
36827
- submittedAt?: Date | null | undefined;
36828
- sentAt?: Date | null | undefined;
36829
- activatedAt?: Date | null | undefined;
36830
- returnReason?: string | null | undefined;
36831
- amendmentReason?: "other" | "budget_adjustment" | "flight_date_change" | "product_swap" | "add_line_items" | "remove_line_items" | "rate_renegotiation" | "client_request" | null | undefined;
36832
- amendmentNotes?: string | null | undefined;
36833
- slaHold?: boolean | null | undefined;
36834
- clientTier?: string | null | undefined;
36835
- xlsxStorageKey?: string | null | undefined;
36836
- xlsxGeneratedAt?: Date | null | undefined;
36837
- lastSyncedAt?: Date | null | undefined;
36838
- lastSyncedVersion?: number | null | undefined;
36839
- defaultGeography?: string | null | undefined;
36840
38832
  defaultCreativeSource?: string | null | undefined;
36841
- defaultCreativeRefreshCadence?: string | null | undefined;
36842
- defaultRunDateStart?: string | null | undefined;
36843
- defaultRunDateEnd?: string | null | undefined;
36844
- orderNotes?: string | null | undefined;
36845
- navigaAdvertiserId?: string | null | undefined;
36846
- purchaseOrderNumber?: string | null | undefined;
36847
- billToName?: string | null | undefined;
36848
- billToEmail?: string | null | undefined;
36849
- vendorAssignedAt?: Date | null | undefined;
36850
- vendorAssignedBy?: string | null | undefined;
36851
- vendorFulfillmentStatus?: "completed" | "assigned" | "in_progress" | "issue" | null | undefined;
36852
- vendorFulfillmentNotes?: string | null | undefined;
36853
- vendorFulfillmentCompletedAt?: Date | null | undefined;
36854
- vendorFulfillmentCompletedBy?: string | null | undefined;
36855
- isVendorCreated?: boolean | undefined;
36856
- vendorSalesRep?: string | null | undefined;
36857
- vendorOrderReference?: string | null | undefined;
36858
- datasysAdvertiserId?: string | null | undefined;
36859
- ioSigningStatus?: string | null | undefined;
36860
- ioSentForSigningAt?: Date | null | undefined;
36861
- ioSentForSigningBy?: string | null | undefined;
36862
- ioPdfStorageKey?: string | null | undefined;
36863
- ioPdfGeneratedAt?: Date | null | undefined;
36864
- signaturePolicy?: string | undefined;
36865
- signatureDecision?: string | null | undefined;
36866
- signatureBypassReason?: string | null | undefined;
36867
- signatureBypassNotes?: string | null | undefined;
36868
- signatureBypassByUserId?: string | null | undefined;
36869
- signatureBypassAt?: Date | null | undefined;
36870
- ioImportHistory?: {
36871
- fingerprint: string;
36872
- importedAt: string;
36873
- itemCount: number;
36874
- }[] | null | undefined;
36875
- earlyStartZone?: string | null | undefined;
36876
- earlyStartReason?: string | null | undefined;
36877
- }>;
36878
- export declare const updateMediaOrderSchema: z.ZodObject<{
36879
- status: z.ZodOptional<z.ZodOptional<z.ZodEnum<["draft", "pending_approval", "approved", "sent", "active", "completed"]>>>;
36880
- hubspotCompanyId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36881
- partnerId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36882
- hubspotDealId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36883
- createdBy: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36884
- createdByUserId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36885
- ownerUserId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36886
- engagementId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36887
- contractId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36888
- pdfStorageKey: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36889
- pdfGeneratedAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDate>>>;
36890
- defaultTargeting: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36891
- defaultAudience: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36892
- defaultPromoting: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36893
- planId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36894
- clientName: z.ZodOptional<z.ZodString>;
36895
- shareToken: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36896
- approvedAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDate>>>;
36897
- approvedBy: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36898
- completedAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDate>>>;
36899
- version: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
36900
- vendorId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36901
- submittedBy: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36902
- configurationId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36903
- optionId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36904
- parentHubspotCompanyId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36905
- initiativeCode: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36906
- clientContactName: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36907
- clientContactEmail: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36908
- orderDate: z.ZodOptional<z.ZodString>;
36909
- orderTitle: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36910
- flightStart: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36911
- flightEnd: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36912
- totalInvestment: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36913
- totalAddedValue: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36914
- totalImpressions: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
36915
- submittedAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDate>>>;
36916
- sentAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDate>>>;
36917
- activatedAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDate>>>;
36918
- returnReason: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36919
- amendmentReason: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEnum<["budget_adjustment", "flight_date_change", "product_swap", "add_line_items", "remove_line_items", "rate_renegotiation", "client_request", "other"]>>>>;
36920
- amendmentNotes: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36921
- slaHold: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>>;
36922
- clientTier: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36923
- xlsxStorageKey: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36924
- xlsxGeneratedAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDate>>>;
36925
- lastSyncedAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDate>>>;
36926
- lastSyncedVersion: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
36927
- defaultGeography: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36928
- defaultCreativeSource: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36929
- defaultCreativeRefreshCadence: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36930
- defaultRunDateStart: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36931
- defaultRunDateEnd: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36932
- orderNotes: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36933
- navigaAdvertiserId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36934
- purchaseOrderNumber: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36935
- billToName: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36936
- billToEmail: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36937
- vendorAssignedAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDate>>>;
36938
- vendorAssignedBy: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36939
- vendorFulfillmentStatus: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEnum<["assigned", "in_progress", "completed", "issue"]>>>>;
36940
- vendorFulfillmentNotes: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36941
- vendorFulfillmentCompletedAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDate>>>;
36942
- vendorFulfillmentCompletedBy: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36943
- isVendorCreated: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
36944
- vendorSalesRep: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36945
- vendorOrderReference: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36946
- datasysAdvertiserId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36947
- ioSigningStatus: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36948
- ioSentForSigningAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDate>>>;
36949
- ioSentForSigningBy: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36950
- ioPdfStorageKey: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36951
- ioPdfGeneratedAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDate>>>;
36952
- signaturePolicy: z.ZodOptional<z.ZodOptional<z.ZodString>>;
36953
- signatureDecision: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36954
- signatureBypassReason: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36955
- signatureBypassNotes: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36956
- signatureBypassByUserId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36957
- signatureBypassAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDate>>>;
36958
- ioImportHistory: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<{
36959
- fingerprint: string;
36960
- importedAt: string;
36961
- itemCount: number;
36962
- }[], z.ZodTypeDef, {
36963
- fingerprint: string;
36964
- importedAt: string;
36965
- itemCount: number;
36966
- }[]>>>>;
36967
- earlyStartZone: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36968
- earlyStartReason: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36969
- }, "strip", z.ZodTypeAny, {
36970
- status?: "approved" | "completed" | "active" | "draft" | "pending_approval" | "sent" | undefined;
36971
- hubspotCompanyId?: string | null | undefined;
36972
- partnerId?: string | null | undefined;
36973
- hubspotDealId?: string | null | undefined;
36974
- createdBy?: string | null | undefined;
36975
- createdByUserId?: string | null | undefined;
36976
- ownerUserId?: string | null | undefined;
36977
- engagementId?: string | null | undefined;
36978
- contractId?: string | null | undefined;
36979
- pdfStorageKey?: string | null | undefined;
36980
- pdfGeneratedAt?: Date | null | undefined;
36981
- defaultTargeting?: string | null | undefined;
36982
- defaultAudience?: string | null | undefined;
36983
- defaultPromoting?: string | null | undefined;
36984
38833
  planId?: string | null | undefined;
36985
38834
  clientName?: string | undefined;
36986
38835
  shareToken?: string | null | undefined;
@@ -36990,97 +38839,26 @@ export declare const updateMediaOrderSchema: z.ZodObject<{
36990
38839
  version?: number | undefined;
36991
38840
  vendorId?: string | null | undefined;
36992
38841
  submittedBy?: string | null | undefined;
36993
- configurationId?: string | null | undefined;
36994
- optionId?: string | null | undefined;
36995
- parentHubspotCompanyId?: string | null | undefined;
36996
38842
  initiativeCode?: string | null | undefined;
36997
- clientContactName?: string | null | undefined;
36998
- clientContactEmail?: string | null | undefined;
36999
- orderDate?: string | undefined;
37000
- orderTitle?: string | null | undefined;
37001
- flightStart?: string | null | undefined;
37002
- flightEnd?: string | null | undefined;
37003
- totalInvestment?: string | null | undefined;
37004
- totalAddedValue?: string | null | undefined;
37005
- totalImpressions?: number | null | undefined;
37006
- submittedAt?: Date | null | undefined;
37007
- sentAt?: Date | null | undefined;
37008
- activatedAt?: Date | null | undefined;
37009
- returnReason?: string | null | undefined;
37010
- amendmentReason?: "other" | "budget_adjustment" | "flight_date_change" | "product_swap" | "add_line_items" | "remove_line_items" | "rate_renegotiation" | "client_request" | null | undefined;
37011
- amendmentNotes?: string | null | undefined;
37012
- slaHold?: boolean | null | undefined;
37013
- clientTier?: string | null | undefined;
37014
- xlsxStorageKey?: string | null | undefined;
37015
- xlsxGeneratedAt?: Date | null | undefined;
37016
- lastSyncedAt?: Date | null | undefined;
37017
- lastSyncedVersion?: number | null | undefined;
37018
- defaultGeography?: string | null | undefined;
37019
- defaultCreativeSource?: string | null | undefined;
37020
- defaultCreativeRefreshCadence?: string | null | undefined;
37021
- defaultRunDateStart?: string | null | undefined;
37022
- defaultRunDateEnd?: string | null | undefined;
37023
- orderNotes?: string | null | undefined;
37024
- navigaAdvertiserId?: string | null | undefined;
37025
- purchaseOrderNumber?: string | null | undefined;
37026
- billToName?: string | null | undefined;
37027
- billToEmail?: string | null | undefined;
37028
- vendorAssignedAt?: Date | null | undefined;
37029
- vendorAssignedBy?: string | null | undefined;
37030
- vendorFulfillmentStatus?: "completed" | "assigned" | "in_progress" | "issue" | null | undefined;
37031
- vendorFulfillmentNotes?: string | null | undefined;
37032
- vendorFulfillmentCompletedAt?: Date | null | undefined;
37033
- vendorFulfillmentCompletedBy?: string | null | undefined;
37034
- isVendorCreated?: boolean | undefined;
37035
- vendorSalesRep?: string | null | undefined;
37036
- vendorOrderReference?: string | null | undefined;
37037
- datasysAdvertiserId?: string | null | undefined;
37038
- ioSigningStatus?: string | null | undefined;
37039
- ioSentForSigningAt?: Date | null | undefined;
37040
- ioSentForSigningBy?: string | null | undefined;
37041
- ioPdfStorageKey?: string | null | undefined;
37042
- ioPdfGeneratedAt?: Date | null | undefined;
37043
- signaturePolicy?: string | undefined;
37044
- signatureDecision?: string | null | undefined;
37045
- signatureBypassReason?: string | null | undefined;
37046
- signatureBypassNotes?: string | null | undefined;
37047
- signatureBypassByUserId?: string | null | undefined;
37048
- signatureBypassAt?: Date | null | undefined;
37049
- ioImportHistory?: {
37050
- fingerprint: string;
37051
- importedAt: string;
37052
- itemCount: number;
37053
- }[] | null | undefined;
37054
- earlyStartZone?: string | null | undefined;
37055
- earlyStartReason?: string | null | undefined;
37056
- }, {
37057
- status?: "approved" | "completed" | "active" | "draft" | "pending_approval" | "sent" | undefined;
37058
- hubspotCompanyId?: string | null | undefined;
37059
- partnerId?: string | null | undefined;
37060
- hubspotDealId?: string | null | undefined;
37061
- createdBy?: string | null | undefined;
37062
- createdByUserId?: string | null | undefined;
37063
- ownerUserId?: string | null | undefined;
37064
- engagementId?: string | null | undefined;
37065
- contractId?: string | null | undefined;
37066
- pdfStorageKey?: string | null | undefined;
37067
- pdfGeneratedAt?: Date | null | undefined;
37068
- defaultTargeting?: string | null | undefined;
37069
- defaultAudience?: string | null | undefined;
37070
- defaultPromoting?: string | null | undefined;
37071
- planId?: string | null | undefined;
37072
- clientName?: string | undefined;
37073
- shareToken?: string | null | undefined;
37074
- approvedAt?: Date | null | undefined;
37075
- approvedBy?: string | null | undefined;
37076
- completedAt?: Date | null | undefined;
37077
- version?: number | undefined;
37078
- vendorId?: string | null | undefined;
37079
- submittedBy?: string | null | undefined;
38843
+ salesPackageCode?: string | null | undefined;
37080
38844
  configurationId?: string | null | undefined;
37081
38845
  optionId?: string | null | undefined;
38846
+ lastSyncedAt?: Date | null | undefined;
37082
38847
  parentHubspotCompanyId?: string | null | undefined;
37083
- initiativeCode?: string | null | undefined;
38848
+ salesPackageSnapshot?: {
38849
+ code: string;
38850
+ name: string;
38851
+ packagePrice: number | null;
38852
+ initiativeCode: string | null;
38853
+ componentCount: number;
38854
+ appliedAt: string;
38855
+ packageSource: "direct_package" | "upgrade_from_selection" | "manual_products";
38856
+ compareSignals?: string[];
38857
+ sellerSummary?: string | null;
38858
+ discountPercent?: number | null;
38859
+ addedValueAmount?: number | null;
38860
+ addedValueDescription?: string | null;
38861
+ }[] | null | undefined;
37084
38862
  clientContactName?: string | null | undefined;
37085
38863
  clientContactEmail?: string | null | undefined;
37086
38864
  orderDate?: string | undefined;
@@ -37100,10 +38878,8 @@ export declare const updateMediaOrderSchema: z.ZodObject<{
37100
38878
  clientTier?: string | null | undefined;
37101
38879
  xlsxStorageKey?: string | null | undefined;
37102
38880
  xlsxGeneratedAt?: Date | null | undefined;
37103
- lastSyncedAt?: Date | null | undefined;
37104
38881
  lastSyncedVersion?: number | null | undefined;
37105
38882
  defaultGeography?: string | null | undefined;
37106
- defaultCreativeSource?: string | null | undefined;
37107
38883
  defaultCreativeRefreshCadence?: string | null | undefined;
37108
38884
  defaultRunDateStart?: string | null | undefined;
37109
38885
  defaultRunDateEnd?: string | null | undefined;
@@ -37379,8 +39155,8 @@ export declare const insertMediaOrderSectionSchema: z.ZodObject<Omit<{
37379
39155
  sectionName: string;
37380
39156
  displayOrder?: number | undefined;
37381
39157
  productCode?: string | null | undefined;
37382
- reachMetricLabel?: string | null | undefined;
37383
39158
  billingCadence?: string | null | undefined;
39159
+ reachMetricLabel?: string | null | undefined;
37384
39160
  subtotalInvestment?: string | null | undefined;
37385
39161
  subtotalAddedValue?: string | null | undefined;
37386
39162
  subtotalReach?: number | null | undefined;
@@ -37389,8 +39165,8 @@ export declare const insertMediaOrderSectionSchema: z.ZodObject<Omit<{
37389
39165
  sectionName: string;
37390
39166
  displayOrder?: number | undefined;
37391
39167
  productCode?: string | null | undefined;
37392
- reachMetricLabel?: string | null | undefined;
37393
39168
  billingCadence?: string | null | undefined;
39169
+ reachMetricLabel?: string | null | undefined;
37394
39170
  subtotalInvestment?: string | null | undefined;
37395
39171
  subtotalAddedValue?: string | null | undefined;
37396
39172
  subtotalReach?: number | null | undefined;
@@ -37398,30 +39174,30 @@ export declare const insertMediaOrderSectionSchema: z.ZodObject<Omit<{
37398
39174
  export declare const updateMediaOrderSectionSchema: z.ZodObject<{
37399
39175
  displayOrder: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
37400
39176
  productCode: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
39177
+ billingCadence: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
37401
39178
  mediaOrderId: z.ZodOptional<z.ZodString>;
37402
39179
  sectionName: z.ZodOptional<z.ZodString>;
37403
39180
  reachMetricLabel: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
37404
- billingCadence: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
37405
39181
  subtotalInvestment: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
37406
39182
  subtotalAddedValue: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
37407
39183
  subtotalReach: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
37408
39184
  }, "strip", z.ZodTypeAny, {
37409
39185
  displayOrder?: number | undefined;
37410
39186
  productCode?: string | null | undefined;
39187
+ billingCadence?: string | null | undefined;
37411
39188
  mediaOrderId?: string | undefined;
37412
39189
  sectionName?: string | undefined;
37413
39190
  reachMetricLabel?: string | null | undefined;
37414
- billingCadence?: string | null | undefined;
37415
39191
  subtotalInvestment?: string | null | undefined;
37416
39192
  subtotalAddedValue?: string | null | undefined;
37417
39193
  subtotalReach?: number | null | undefined;
37418
39194
  }, {
37419
39195
  displayOrder?: number | undefined;
37420
39196
  productCode?: string | null | undefined;
39197
+ billingCadence?: string | null | undefined;
37421
39198
  mediaOrderId?: string | undefined;
37422
39199
  sectionName?: string | undefined;
37423
39200
  reachMetricLabel?: string | null | undefined;
37424
- billingCadence?: string | null | undefined;
37425
39201
  subtotalInvestment?: string | null | undefined;
37426
39202
  subtotalAddedValue?: string | null | undefined;
37427
39203
  subtotalReach?: number | null | undefined;
@@ -38221,6 +39997,80 @@ export declare const mediaOrderLineItems: import("drizzle-orm/pg-core").PgTableW
38221
39997
  }, {}, {
38222
39998
  length: number | undefined;
38223
39999
  }>;
40000
+ salesPackageCode: import("drizzle-orm/pg-core").PgColumn<{
40001
+ name: "sales_package_code";
40002
+ tableName: "media_order_line_items";
40003
+ dataType: "string";
40004
+ columnType: "PgVarchar";
40005
+ data: string;
40006
+ driverParam: string;
40007
+ notNull: false;
40008
+ hasDefault: false;
40009
+ isPrimaryKey: false;
40010
+ isAutoincrement: false;
40011
+ hasRuntimeDefault: false;
40012
+ enumValues: [string, ...string[]];
40013
+ baseColumn: never;
40014
+ identity: undefined;
40015
+ generated: undefined;
40016
+ }, {}, {
40017
+ length: number | undefined;
40018
+ }>;
40019
+ salesPackageComponentRef: import("drizzle-orm/pg-core").PgColumn<{
40020
+ name: "sales_package_component_ref";
40021
+ tableName: "media_order_line_items";
40022
+ dataType: "string";
40023
+ columnType: "PgVarchar";
40024
+ data: string;
40025
+ driverParam: string;
40026
+ notNull: false;
40027
+ hasDefault: false;
40028
+ isPrimaryKey: false;
40029
+ isAutoincrement: false;
40030
+ hasRuntimeDefault: false;
40031
+ enumValues: [string, ...string[]];
40032
+ baseColumn: never;
40033
+ identity: undefined;
40034
+ generated: undefined;
40035
+ }, {}, {
40036
+ length: number | undefined;
40037
+ }>;
40038
+ isPackageDerived: import("drizzle-orm/pg-core").PgColumn<{
40039
+ name: "is_package_derived";
40040
+ tableName: "media_order_line_items";
40041
+ dataType: "boolean";
40042
+ columnType: "PgBoolean";
40043
+ data: boolean;
40044
+ driverParam: boolean;
40045
+ notNull: true;
40046
+ hasDefault: true;
40047
+ isPrimaryKey: false;
40048
+ isAutoincrement: false;
40049
+ hasRuntimeDefault: false;
40050
+ enumValues: undefined;
40051
+ baseColumn: never;
40052
+ identity: undefined;
40053
+ generated: undefined;
40054
+ }, {}, {}>;
40055
+ packagePricingSource: import("drizzle-orm/pg-core").PgColumn<{
40056
+ name: "package_pricing_source";
40057
+ tableName: "media_order_line_items";
40058
+ dataType: "string";
40059
+ columnType: "PgVarchar";
40060
+ data: string;
40061
+ driverParam: string;
40062
+ notNull: false;
40063
+ hasDefault: false;
40064
+ isPrimaryKey: false;
40065
+ isAutoincrement: false;
40066
+ hasRuntimeDefault: false;
40067
+ enumValues: [string, ...string[]];
40068
+ baseColumn: never;
40069
+ identity: undefined;
40070
+ generated: undefined;
40071
+ }, {}, {
40072
+ length: number | undefined;
40073
+ }>;
38224
40074
  trafficKey: import("drizzle-orm/pg-core").PgColumn<{
38225
40075
  name: "traffic_key";
38226
40076
  tableName: "media_order_line_items";
@@ -38373,6 +40223,10 @@ export declare const insertMediaOrderLineItemSchema: z.ZodObject<Omit<{
38373
40223
  fulfillmentDetails: z.ZodOptional<z.ZodNullable<z.ZodType<import("drizzle-zod").Json, z.ZodTypeDef, import("drizzle-zod").Json>>>;
38374
40224
  creativeSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38375
40225
  initiativeCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40226
+ salesPackageCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40227
+ salesPackageComponentRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40228
+ isPackageDerived: z.ZodOptional<z.ZodBoolean>;
40229
+ packagePricingSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38376
40230
  trafficKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38377
40231
  trackingKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38378
40232
  trackingDetails: z.ZodOptional<z.ZodNullable<z.ZodType<{
@@ -38402,6 +40256,10 @@ export declare const insertMediaOrderLineItemSchema: z.ZodObject<Omit<{
38402
40256
  location?: string | null | undefined;
38403
40257
  managementFeePercent?: number | null | undefined;
38404
40258
  initiativeCode?: string | null | undefined;
40259
+ salesPackageCode?: string | null | undefined;
40260
+ hubspotProductId?: string | null | undefined;
40261
+ costRate?: number | null | undefined;
40262
+ stribProductId?: string | null | undefined;
38405
40263
  lastSyncedAt?: Date | null | undefined;
38406
40264
  promoting?: string | null | undefined;
38407
40265
  targeting?: string | null | undefined;
@@ -38416,18 +40274,15 @@ export declare const insertMediaOrderLineItemSchema: z.ZodObject<Omit<{
38416
40274
  rateType?: string | null | undefined;
38417
40275
  appliedTierCode?: string | null | undefined;
38418
40276
  rateApprovalStatus?: string | null | undefined;
38419
- costRate?: number | null | undefined;
38420
40277
  marginPercent?: number | null | undefined;
38421
40278
  marginDollars?: string | null | undefined;
38422
40279
  mediaBudget?: string | null | undefined;
38423
40280
  periodLabel?: string | null | undefined;
38424
40281
  locationId?: string | null | undefined;
38425
- stribProductId?: string | null | undefined;
38426
40282
  stribHoldId?: string | null | undefined;
38427
40283
  readership?: number | null | undefined;
38428
40284
  printAdNumber?: string | null | undefined;
38429
40285
  hubspotLineItemId?: string | null | undefined;
38430
- hubspotProductId?: string | null | undefined;
38431
40286
  syncStatus?: string | undefined;
38432
40287
  supersededById?: string | null | undefined;
38433
40288
  supersedesId?: string | null | undefined;
@@ -38439,6 +40294,9 @@ export declare const insertMediaOrderLineItemSchema: z.ZodObject<Omit<{
38439
40294
  simplifiCampaignId?: string | null | undefined;
38440
40295
  fulfillmentDetails?: import("drizzle-zod").Json | undefined;
38441
40296
  creativeSource?: string | null | undefined;
40297
+ salesPackageComponentRef?: string | null | undefined;
40298
+ isPackageDerived?: boolean | undefined;
40299
+ packagePricingSource?: string | null | undefined;
38442
40300
  trafficKey?: string | null | undefined;
38443
40301
  trackingKey?: string | null | undefined;
38444
40302
  trackingDetails?: {
@@ -38458,6 +40316,10 @@ export declare const insertMediaOrderLineItemSchema: z.ZodObject<Omit<{
38458
40316
  location?: string | null | undefined;
38459
40317
  managementFeePercent?: number | null | undefined;
38460
40318
  initiativeCode?: string | null | undefined;
40319
+ salesPackageCode?: string | null | undefined;
40320
+ hubspotProductId?: string | null | undefined;
40321
+ costRate?: number | null | undefined;
40322
+ stribProductId?: string | null | undefined;
38461
40323
  lastSyncedAt?: Date | null | undefined;
38462
40324
  promoting?: string | null | undefined;
38463
40325
  targeting?: string | null | undefined;
@@ -38472,18 +40334,15 @@ export declare const insertMediaOrderLineItemSchema: z.ZodObject<Omit<{
38472
40334
  rateType?: string | null | undefined;
38473
40335
  appliedTierCode?: string | null | undefined;
38474
40336
  rateApprovalStatus?: string | null | undefined;
38475
- costRate?: number | null | undefined;
38476
40337
  marginPercent?: number | null | undefined;
38477
40338
  marginDollars?: string | null | undefined;
38478
40339
  mediaBudget?: string | null | undefined;
38479
40340
  periodLabel?: string | null | undefined;
38480
40341
  locationId?: string | null | undefined;
38481
- stribProductId?: string | null | undefined;
38482
40342
  stribHoldId?: string | null | undefined;
38483
40343
  readership?: number | null | undefined;
38484
40344
  printAdNumber?: string | null | undefined;
38485
40345
  hubspotLineItemId?: string | null | undefined;
38486
- hubspotProductId?: string | null | undefined;
38487
40346
  syncStatus?: string | undefined;
38488
40347
  supersededById?: string | null | undefined;
38489
40348
  supersedesId?: string | null | undefined;
@@ -38495,6 +40354,9 @@ export declare const insertMediaOrderLineItemSchema: z.ZodObject<Omit<{
38495
40354
  simplifiCampaignId?: string | null | undefined;
38496
40355
  fulfillmentDetails?: import("drizzle-zod").Json | undefined;
38497
40356
  creativeSource?: string | null | undefined;
40357
+ salesPackageComponentRef?: string | null | undefined;
40358
+ isPackageDerived?: boolean | undefined;
40359
+ packagePricingSource?: string | null | undefined;
38498
40360
  trafficKey?: string | null | undefined;
38499
40361
  trackingKey?: string | null | undefined;
38500
40362
  trackingDetails?: {
@@ -38513,6 +40375,10 @@ export declare const updateMediaOrderLineItemSchema: z.ZodObject<{
38513
40375
  location: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38514
40376
  managementFeePercent: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
38515
40377
  initiativeCode: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
40378
+ salesPackageCode: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
40379
+ hubspotProductId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
40380
+ costRate: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
40381
+ stribProductId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38516
40382
  lastSyncedAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDate>>>;
38517
40383
  sectionId: z.ZodOptional<z.ZodString>;
38518
40384
  placement: z.ZodOptional<z.ZodString>;
@@ -38529,18 +40395,15 @@ export declare const updateMediaOrderLineItemSchema: z.ZodObject<{
38529
40395
  rateType: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38530
40396
  appliedTierCode: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38531
40397
  rateApprovalStatus: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38532
- costRate: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
38533
40398
  marginPercent: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
38534
40399
  marginDollars: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38535
40400
  mediaBudget: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38536
40401
  periodLabel: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38537
40402
  locationId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38538
- stribProductId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38539
40403
  stribHoldId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38540
40404
  readership: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
38541
40405
  printAdNumber: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38542
40406
  hubspotLineItemId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38543
- hubspotProductId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38544
40407
  syncStatus: z.ZodOptional<z.ZodOptional<z.ZodString>>;
38545
40408
  supersededById: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38546
40409
  supersedesId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
@@ -38552,6 +40415,9 @@ export declare const updateMediaOrderLineItemSchema: z.ZodObject<{
38552
40415
  simplifiCampaignId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38553
40416
  fulfillmentDetails: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<import("drizzle-zod").Json, z.ZodTypeDef, import("drizzle-zod").Json>>>>;
38554
40417
  creativeSource: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
40418
+ salesPackageComponentRef: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
40419
+ isPackageDerived: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
40420
+ packagePricingSource: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38555
40421
  trafficKey: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38556
40422
  trackingKey: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38557
40423
  trackingDetails: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<{
@@ -38577,6 +40443,10 @@ export declare const updateMediaOrderLineItemSchema: z.ZodObject<{
38577
40443
  location?: string | null | undefined;
38578
40444
  managementFeePercent?: number | null | undefined;
38579
40445
  initiativeCode?: string | null | undefined;
40446
+ salesPackageCode?: string | null | undefined;
40447
+ hubspotProductId?: string | null | undefined;
40448
+ costRate?: number | null | undefined;
40449
+ stribProductId?: string | null | undefined;
38580
40450
  lastSyncedAt?: Date | null | undefined;
38581
40451
  sectionId?: string | undefined;
38582
40452
  placement?: string | undefined;
@@ -38593,18 +40463,15 @@ export declare const updateMediaOrderLineItemSchema: z.ZodObject<{
38593
40463
  rateType?: string | null | undefined;
38594
40464
  appliedTierCode?: string | null | undefined;
38595
40465
  rateApprovalStatus?: string | null | undefined;
38596
- costRate?: number | null | undefined;
38597
40466
  marginPercent?: number | null | undefined;
38598
40467
  marginDollars?: string | null | undefined;
38599
40468
  mediaBudget?: string | null | undefined;
38600
40469
  periodLabel?: string | null | undefined;
38601
40470
  locationId?: string | null | undefined;
38602
- stribProductId?: string | null | undefined;
38603
40471
  stribHoldId?: string | null | undefined;
38604
40472
  readership?: number | null | undefined;
38605
40473
  printAdNumber?: string | null | undefined;
38606
40474
  hubspotLineItemId?: string | null | undefined;
38607
- hubspotProductId?: string | null | undefined;
38608
40475
  syncStatus?: string | undefined;
38609
40476
  supersededById?: string | null | undefined;
38610
40477
  supersedesId?: string | null | undefined;
@@ -38616,6 +40483,9 @@ export declare const updateMediaOrderLineItemSchema: z.ZodObject<{
38616
40483
  simplifiCampaignId?: string | null | undefined;
38617
40484
  fulfillmentDetails?: import("drizzle-zod").Json | undefined;
38618
40485
  creativeSource?: string | null | undefined;
40486
+ salesPackageComponentRef?: string | null | undefined;
40487
+ isPackageDerived?: boolean | undefined;
40488
+ packagePricingSource?: string | null | undefined;
38619
40489
  trafficKey?: string | null | undefined;
38620
40490
  trackingKey?: string | null | undefined;
38621
40491
  trackingDetails?: {
@@ -38633,6 +40503,10 @@ export declare const updateMediaOrderLineItemSchema: z.ZodObject<{
38633
40503
  location?: string | null | undefined;
38634
40504
  managementFeePercent?: number | null | undefined;
38635
40505
  initiativeCode?: string | null | undefined;
40506
+ salesPackageCode?: string | null | undefined;
40507
+ hubspotProductId?: string | null | undefined;
40508
+ costRate?: number | null | undefined;
40509
+ stribProductId?: string | null | undefined;
38636
40510
  lastSyncedAt?: Date | null | undefined;
38637
40511
  sectionId?: string | undefined;
38638
40512
  placement?: string | undefined;
@@ -38649,18 +40523,15 @@ export declare const updateMediaOrderLineItemSchema: z.ZodObject<{
38649
40523
  rateType?: string | null | undefined;
38650
40524
  appliedTierCode?: string | null | undefined;
38651
40525
  rateApprovalStatus?: string | null | undefined;
38652
- costRate?: number | null | undefined;
38653
40526
  marginPercent?: number | null | undefined;
38654
40527
  marginDollars?: string | null | undefined;
38655
40528
  mediaBudget?: string | null | undefined;
38656
40529
  periodLabel?: string | null | undefined;
38657
40530
  locationId?: string | null | undefined;
38658
- stribProductId?: string | null | undefined;
38659
40531
  stribHoldId?: string | null | undefined;
38660
40532
  readership?: number | null | undefined;
38661
40533
  printAdNumber?: string | null | undefined;
38662
40534
  hubspotLineItemId?: string | null | undefined;
38663
- hubspotProductId?: string | null | undefined;
38664
40535
  syncStatus?: string | undefined;
38665
40536
  supersededById?: string | null | undefined;
38666
40537
  supersedesId?: string | null | undefined;
@@ -38672,6 +40543,9 @@ export declare const updateMediaOrderLineItemSchema: z.ZodObject<{
38672
40543
  simplifiCampaignId?: string | null | undefined;
38673
40544
  fulfillmentDetails?: import("drizzle-zod").Json | undefined;
38674
40545
  creativeSource?: string | null | undefined;
40546
+ salesPackageComponentRef?: string | null | undefined;
40547
+ isPackageDerived?: boolean | undefined;
40548
+ packagePricingSource?: string | null | undefined;
38675
40549
  trafficKey?: string | null | undefined;
38676
40550
  trackingKey?: string | null | undefined;
38677
40551
  trackingDetails?: {
@@ -40626,8 +42500,6 @@ export declare const insertStribProductSchema: z.ZodObject<Omit<{
40626
42500
  isActive?: boolean | undefined;
40627
42501
  billingFrequency?: string | null | undefined;
40628
42502
  minimumSpend?: number | null | undefined;
40629
- costRate?: number | null | undefined;
40630
- hubspotProductId?: string | null | undefined;
40631
42503
  familyId?: number | null | undefined;
40632
42504
  sku?: number | null | undefined;
40633
42505
  navigaProductId?: string | null | undefined;
@@ -40641,6 +42513,7 @@ export declare const insertStribProductSchema: z.ZodObject<Omit<{
40641
42513
  previousSku?: number | null | undefined;
40642
42514
  navigaPreviousProductId?: string | null | undefined;
40643
42515
  hubspotProductName?: string | null | undefined;
42516
+ hubspotProductId?: string | null | undefined;
40644
42517
  dealhubStatus?: string | null | undefined;
40645
42518
  hubspotWorkflowStatus?: string | null | undefined;
40646
42519
  gamManaged?: boolean | undefined;
@@ -40656,6 +42529,7 @@ export declare const insertStribProductSchema: z.ZodObject<Omit<{
40656
42529
  escalatePercent?: number | null | undefined;
40657
42530
  directorEscalatePercent?: number | null | undefined;
40658
42531
  minimumMarginPercent?: number | null | undefined;
42532
+ costRate?: number | null | undefined;
40659
42533
  defaultMarginPercent?: number | null | undefined;
40660
42534
  approvalEnabled?: boolean | undefined;
40661
42535
  }, {
@@ -40676,8 +42550,6 @@ export declare const insertStribProductSchema: z.ZodObject<Omit<{
40676
42550
  isActive?: boolean | undefined;
40677
42551
  billingFrequency?: string | null | undefined;
40678
42552
  minimumSpend?: number | null | undefined;
40679
- costRate?: number | null | undefined;
40680
- hubspotProductId?: string | null | undefined;
40681
42553
  familyId?: number | null | undefined;
40682
42554
  sku?: number | null | undefined;
40683
42555
  navigaProductId?: string | null | undefined;
@@ -40691,6 +42563,7 @@ export declare const insertStribProductSchema: z.ZodObject<Omit<{
40691
42563
  previousSku?: number | null | undefined;
40692
42564
  navigaPreviousProductId?: string | null | undefined;
40693
42565
  hubspotProductName?: string | null | undefined;
42566
+ hubspotProductId?: string | null | undefined;
40694
42567
  dealhubStatus?: string | null | undefined;
40695
42568
  hubspotWorkflowStatus?: string | null | undefined;
40696
42569
  gamManaged?: boolean | undefined;
@@ -40706,6 +42579,7 @@ export declare const insertStribProductSchema: z.ZodObject<Omit<{
40706
42579
  escalatePercent?: number | null | undefined;
40707
42580
  directorEscalatePercent?: number | null | undefined;
40708
42581
  minimumMarginPercent?: number | null | undefined;
42582
+ costRate?: number | null | undefined;
40709
42583
  defaultMarginPercent?: number | null | undefined;
40710
42584
  approvalEnabled?: boolean | undefined;
40711
42585
  }>;
@@ -40725,8 +42599,6 @@ export declare const updateStribProductSchema: z.ZodObject<{
40725
42599
  pricingModel: z.ZodOptional<z.ZodString>;
40726
42600
  billingFrequency: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
40727
42601
  minimumSpend: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
40728
- costRate: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
40729
- hubspotProductId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
40730
42602
  familyId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
40731
42603
  categoryId: z.ZodOptional<z.ZodString>;
40732
42604
  sku: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
@@ -40741,6 +42613,7 @@ export declare const updateStribProductSchema: z.ZodObject<{
40741
42613
  previousSku: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
40742
42614
  navigaPreviousProductId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
40743
42615
  hubspotProductName: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
42616
+ hubspotProductId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
40744
42617
  dealhubStatus: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
40745
42618
  hubspotWorkflowStatus: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
40746
42619
  rateUnit: z.ZodOptional<z.ZodString>;
@@ -40757,6 +42630,7 @@ export declare const updateStribProductSchema: z.ZodObject<{
40757
42630
  escalatePercent: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
40758
42631
  directorEscalatePercent: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
40759
42632
  minimumMarginPercent: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
42633
+ costRate: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
40760
42634
  defaultMarginPercent: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
40761
42635
  approvalEnabled: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
40762
42636
  }, "strip", z.ZodTypeAny, {
@@ -40775,8 +42649,6 @@ export declare const updateStribProductSchema: z.ZodObject<{
40775
42649
  pricingModel?: string | undefined;
40776
42650
  billingFrequency?: string | null | undefined;
40777
42651
  minimumSpend?: number | null | undefined;
40778
- costRate?: number | null | undefined;
40779
- hubspotProductId?: string | null | undefined;
40780
42652
  familyId?: number | null | undefined;
40781
42653
  categoryId?: string | undefined;
40782
42654
  sku?: number | null | undefined;
@@ -40791,6 +42663,7 @@ export declare const updateStribProductSchema: z.ZodObject<{
40791
42663
  previousSku?: number | null | undefined;
40792
42664
  navigaPreviousProductId?: string | null | undefined;
40793
42665
  hubspotProductName?: string | null | undefined;
42666
+ hubspotProductId?: string | null | undefined;
40794
42667
  dealhubStatus?: string | null | undefined;
40795
42668
  hubspotWorkflowStatus?: string | null | undefined;
40796
42669
  rateUnit?: string | undefined;
@@ -40807,6 +42680,7 @@ export declare const updateStribProductSchema: z.ZodObject<{
40807
42680
  escalatePercent?: number | null | undefined;
40808
42681
  directorEscalatePercent?: number | null | undefined;
40809
42682
  minimumMarginPercent?: number | null | undefined;
42683
+ costRate?: number | null | undefined;
40810
42684
  defaultMarginPercent?: number | null | undefined;
40811
42685
  approvalEnabled?: boolean | undefined;
40812
42686
  }, {
@@ -40825,8 +42699,6 @@ export declare const updateStribProductSchema: z.ZodObject<{
40825
42699
  pricingModel?: string | undefined;
40826
42700
  billingFrequency?: string | null | undefined;
40827
42701
  minimumSpend?: number | null | undefined;
40828
- costRate?: number | null | undefined;
40829
- hubspotProductId?: string | null | undefined;
40830
42702
  familyId?: number | null | undefined;
40831
42703
  categoryId?: string | undefined;
40832
42704
  sku?: number | null | undefined;
@@ -40841,6 +42713,7 @@ export declare const updateStribProductSchema: z.ZodObject<{
40841
42713
  previousSku?: number | null | undefined;
40842
42714
  navigaPreviousProductId?: string | null | undefined;
40843
42715
  hubspotProductName?: string | null | undefined;
42716
+ hubspotProductId?: string | null | undefined;
40844
42717
  dealhubStatus?: string | null | undefined;
40845
42718
  hubspotWorkflowStatus?: string | null | undefined;
40846
42719
  rateUnit?: string | undefined;
@@ -40857,6 +42730,7 @@ export declare const updateStribProductSchema: z.ZodObject<{
40857
42730
  escalatePercent?: number | null | undefined;
40858
42731
  directorEscalatePercent?: number | null | undefined;
40859
42732
  minimumMarginPercent?: number | null | undefined;
42733
+ costRate?: number | null | undefined;
40860
42734
  defaultMarginPercent?: number | null | undefined;
40861
42735
  approvalEnabled?: boolean | undefined;
40862
42736
  }>;
@@ -56992,20 +58866,20 @@ export declare const insertContractSchema: z.ZodObject<Omit<{
56992
58866
  createdByUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
56993
58867
  createdAt: z.ZodOptional<z.ZodDate>;
56994
58868
  updatedAt: z.ZodOptional<z.ZodDate>;
56995
- }, "id" | "createdAt" | "updatedAt" | "lastSyncedAt" | "allocatedAmount" | "billedAmount" | "remainingAmount" | "actualMarginPct" | "actualMarginDollars" | "orderCount" | "lastRecalculatedAt" | "fluxAgreementId" | "syncSource">, "strip", z.ZodTypeAny, {
58869
+ }, "id" | "createdAt" | "updatedAt" | "allocatedAmount" | "billedAmount" | "remainingAmount" | "actualMarginPct" | "actualMarginDollars" | "orderCount" | "lastRecalculatedAt" | "fluxAgreementId" | "lastSyncedAt" | "syncSource">, "strip", z.ZodTypeAny, {
56996
58870
  name: string;
56997
58871
  hubspotCompanyId: string;
56998
- tierCode: string;
56999
58872
  startDate: string;
58873
+ tierCode: string;
57000
58874
  endDate: string;
57001
58875
  notes?: string | null | undefined;
57002
58876
  status?: "completed" | "active" | "draft" | "cancelled" | undefined;
57003
58877
  partnerId?: string | null | undefined;
57004
58878
  hubspotDealId?: string | null | undefined;
57005
58879
  createdByUserId?: string | null | undefined;
57006
- billingCadence?: string | null | undefined;
57007
58880
  commitmentAmount?: string | null | undefined;
57008
58881
  renewalDate?: string | null | undefined;
58882
+ billingCadence?: string | null | undefined;
57009
58883
  rateCard?: ContractRateCardEntry[] | null | undefined;
57010
58884
  fluxSlaProfileId?: string | null | undefined;
57011
58885
  customSlaDays?: number | null | undefined;
@@ -57022,17 +58896,17 @@ export declare const insertContractSchema: z.ZodObject<Omit<{
57022
58896
  }, {
57023
58897
  name: string;
57024
58898
  hubspotCompanyId: string;
57025
- tierCode: string;
57026
58899
  startDate: string;
58900
+ tierCode: string;
57027
58901
  endDate: string;
57028
58902
  notes?: string | null | undefined;
57029
58903
  status?: "completed" | "active" | "draft" | "cancelled" | undefined;
57030
58904
  partnerId?: string | null | undefined;
57031
58905
  hubspotDealId?: string | null | undefined;
57032
58906
  createdByUserId?: string | null | undefined;
57033
- billingCadence?: string | null | undefined;
57034
58907
  commitmentAmount?: string | null | undefined;
57035
58908
  renewalDate?: string | null | undefined;
58909
+ billingCadence?: string | null | undefined;
57036
58910
  rateCard?: ContractRateCardEntry[] | null | undefined;
57037
58911
  fluxSlaProfileId?: string | null | undefined;
57038
58912
  customSlaDays?: number | null | undefined;
@@ -57053,14 +58927,14 @@ export declare const updateContractSchema: z.ZodObject<{
57053
58927
  status: z.ZodOptional<z.ZodOptional<z.ZodEnum<["draft", "active", "completed", "cancelled"]>>>;
57054
58928
  hubspotCompanyId: z.ZodOptional<z.ZodString>;
57055
58929
  partnerId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
58930
+ startDate: z.ZodOptional<z.ZodString>;
57056
58931
  hubspotDealId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
57057
58932
  createdByUserId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
57058
58933
  tierCode: z.ZodOptional<z.ZodString>;
57059
- billingCadence: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
57060
58934
  commitmentAmount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
57061
- startDate: z.ZodOptional<z.ZodString>;
57062
58935
  endDate: z.ZodOptional<z.ZodString>;
57063
58936
  renewalDate: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
58937
+ billingCadence: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
57064
58938
  rateCard: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<ContractRateCardEntry[], z.ZodTypeDef, ContractRateCardEntry[]>>>>;
57065
58939
  fluxSlaProfileId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
57066
58940
  customSlaDays: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
@@ -57080,14 +58954,14 @@ export declare const updateContractSchema: z.ZodObject<{
57080
58954
  status?: "completed" | "active" | "draft" | "cancelled" | undefined;
57081
58955
  hubspotCompanyId?: string | undefined;
57082
58956
  partnerId?: string | null | undefined;
58957
+ startDate?: string | undefined;
57083
58958
  hubspotDealId?: string | null | undefined;
57084
58959
  createdByUserId?: string | null | undefined;
57085
58960
  tierCode?: string | undefined;
57086
- billingCadence?: string | null | undefined;
57087
58961
  commitmentAmount?: string | null | undefined;
57088
- startDate?: string | undefined;
57089
58962
  endDate?: string | undefined;
57090
58963
  renewalDate?: string | null | undefined;
58964
+ billingCadence?: string | null | undefined;
57091
58965
  rateCard?: ContractRateCardEntry[] | null | undefined;
57092
58966
  fluxSlaProfileId?: string | null | undefined;
57093
58967
  customSlaDays?: number | null | undefined;
@@ -57107,14 +58981,14 @@ export declare const updateContractSchema: z.ZodObject<{
57107
58981
  status?: "completed" | "active" | "draft" | "cancelled" | undefined;
57108
58982
  hubspotCompanyId?: string | undefined;
57109
58983
  partnerId?: string | null | undefined;
58984
+ startDate?: string | undefined;
57110
58985
  hubspotDealId?: string | null | undefined;
57111
58986
  createdByUserId?: string | null | undefined;
57112
58987
  tierCode?: string | undefined;
57113
- billingCadence?: string | null | undefined;
57114
58988
  commitmentAmount?: string | null | undefined;
57115
- startDate?: string | undefined;
57116
58989
  endDate?: string | undefined;
57117
58990
  renewalDate?: string | null | undefined;
58991
+ billingCadence?: string | null | undefined;
57118
58992
  rateCard?: ContractRateCardEntry[] | null | undefined;
57119
58993
  fluxSlaProfileId?: string | null | undefined;
57120
58994
  customSlaDays?: number | null | undefined;
@@ -63650,12 +65524,12 @@ export declare const insertSimplifiCampaignSchema: z.ZodObject<Omit<{
63650
65524
  organizationId: string;
63651
65525
  campaignName: string;
63652
65526
  status?: "active" | "draft" | "error" | "paused" | "ended" | undefined;
65527
+ startDate?: string | null | undefined;
63653
65528
  totalBudget?: string | null | undefined;
65529
+ endDate?: string | null | undefined;
63654
65530
  lastSyncedAt?: Date | null | undefined;
63655
65531
  mediaOrderId?: string | null | undefined;
63656
65532
  lineItemId?: string | null | undefined;
63657
- startDate?: string | null | undefined;
63658
- endDate?: string | null | undefined;
63659
65533
  simplifiMetadata?: Record<string, unknown> | null | undefined;
63660
65534
  syncError?: string | null | undefined;
63661
65535
  }, {
@@ -63663,12 +65537,12 @@ export declare const insertSimplifiCampaignSchema: z.ZodObject<Omit<{
63663
65537
  organizationId: string;
63664
65538
  campaignName: string;
63665
65539
  status?: "active" | "draft" | "error" | "paused" | "ended" | undefined;
65540
+ startDate?: string | null | undefined;
63666
65541
  totalBudget?: string | null | undefined;
65542
+ endDate?: string | null | undefined;
63667
65543
  lastSyncedAt?: Date | null | undefined;
63668
65544
  mediaOrderId?: string | null | undefined;
63669
65545
  lineItemId?: string | null | undefined;
63670
- startDate?: string | null | undefined;
63671
- endDate?: string | null | undefined;
63672
65546
  simplifiMetadata?: Record<string, unknown> | null | undefined;
63673
65547
  syncError?: string | null | undefined;
63674
65548
  }>;
@@ -64246,7 +66120,7 @@ export declare const semCampaigns: import("drizzle-orm/pg-core").PgTableWithColu
64246
66120
  }>;
64247
66121
  export type SemCampaignRecord = typeof semCampaigns.$inferSelect;
64248
66122
  export type InsertSemCampaign = typeof semCampaigns.$inferInsert;
64249
- export declare const compassEventOutboxStatusEnum: import("drizzle-orm/pg-core").PgEnum<["pending", "failed", "delivered", "dead_letter"]>;
66123
+ export declare const compassEventOutboxStatusEnum: import("drizzle-orm/pg-core").PgEnum<["pending", "processing", "failed", "delivered", "dead_letter"]>;
64250
66124
  export declare const compassEventOutbox: import("drizzle-orm/pg-core").PgTableWithColumns<{
64251
66125
  name: "compass_event_outbox";
64252
66126
  schema: undefined;
@@ -64394,14 +66268,14 @@ export declare const compassEventOutbox: import("drizzle-orm/pg-core").PgTableWi
64394
66268
  tableName: "compass_event_outbox";
64395
66269
  dataType: "string";
64396
66270
  columnType: "PgEnumColumn";
64397
- data: "pending" | "failed" | "delivered" | "dead_letter";
66271
+ data: "pending" | "failed" | "processing" | "delivered" | "dead_letter";
64398
66272
  driverParam: string;
64399
66273
  notNull: true;
64400
66274
  hasDefault: true;
64401
66275
  isPrimaryKey: false;
64402
66276
  isAutoincrement: false;
64403
66277
  hasRuntimeDefault: false;
64404
- enumValues: ["pending", "failed", "delivered", "dead_letter"];
66278
+ enumValues: ["pending", "processing", "failed", "delivered", "dead_letter"];
64405
66279
  baseColumn: never;
64406
66280
  identity: undefined;
64407
66281
  generated: undefined;