@foundrynorth/compass-schema 1.0.20 → 1.0.21
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/LICENSE +4 -3
- package/dist/schema.d.ts +2039 -47
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +182 -3
- package/dist/schema.js.map +1 -1
- package/dist/types/activity-feed.d.ts +37 -0
- package/dist/types/activity-feed.d.ts.map +1 -0
- package/dist/types/activity-feed.js +63 -0
- package/dist/types/activity-feed.js.map +1 -0
- package/package.json +2 -2
- package/src/schema.ts +296 -4
- package/src/types/activity-feed.ts +97 -0
package/dist/schema.d.ts
CHANGED
|
@@ -158,6 +158,11 @@ export declare const insertUserSchema: z.ZodObject<Pick<{
|
|
|
158
158
|
export type InsertUser = z.infer<typeof insertUserSchema>;
|
|
159
159
|
export type User = typeof users.$inferSelect;
|
|
160
160
|
export declare const avatarRequestStatusEnum: import("drizzle-orm/pg-core").PgEnum<["pending", "processed", "rejected"]>;
|
|
161
|
+
export declare const activityEventTypeEnum: import("drizzle-orm/pg-core").PgEnum<[string, ...string[]]>;
|
|
162
|
+
export declare const activitySeverityEnum: import("drizzle-orm/pg-core").PgEnum<[string, ...string[]]>;
|
|
163
|
+
export declare const activitySourceSystemEnum: import("drizzle-orm/pg-core").PgEnum<[string, ...string[]]>;
|
|
164
|
+
export declare const pendingActionTypeEnum: import("drizzle-orm/pg-core").PgEnum<[string, ...string[]]>;
|
|
165
|
+
export declare const amendmentReasonEnum: import("drizzle-orm/pg-core").PgEnum<["budget_adjustment", "flight_date_change", "product_swap", "add_line_items", "remove_line_items", "rate_renegotiation", "client_request", "other"]>;
|
|
161
166
|
export declare const vendorFulfillmentStatusEnum: import("drizzle-orm/pg-core").PgEnum<["assigned", "in_progress", "completed", "issue"]>;
|
|
162
167
|
export declare const vendorAccessLevelEnum: import("drizzle-orm/pg-core").PgEnum<["fulfillment_only", "fulfillment_and_sales"]>;
|
|
163
168
|
export declare const annotationTargetType: import("drizzle-orm/pg-core").PgEnum<["scope", "competitor", "channel_weight", "product", "tier", "exclusion", "strategy_pillar", "risk_item", "assumption", "measurement_kpi", "tracking_prereq", "other"]>;
|
|
@@ -208,7 +213,7 @@ export declare const avatarRequests: import("drizzle-orm/pg-core").PgTableWithCo
|
|
|
208
213
|
tableName: "avatar_requests";
|
|
209
214
|
dataType: "string";
|
|
210
215
|
columnType: "PgEnumColumn";
|
|
211
|
-
data: "
|
|
216
|
+
data: "rejected" | "pending" | "processed";
|
|
212
217
|
driverParam: string;
|
|
213
218
|
notNull: true;
|
|
214
219
|
hasDefault: true;
|
|
@@ -523,6 +528,227 @@ export declare const userProfiles: import("drizzle-orm/pg-core").PgTableWithColu
|
|
|
523
528
|
identity: undefined;
|
|
524
529
|
generated: undefined;
|
|
525
530
|
}, {}, {}>;
|
|
531
|
+
proposalPortraitRenderUrl: import("drizzle-orm/pg-core").PgColumn<{
|
|
532
|
+
name: "proposal_portrait_render_url";
|
|
533
|
+
tableName: "user_profiles";
|
|
534
|
+
dataType: "string";
|
|
535
|
+
columnType: "PgText";
|
|
536
|
+
data: string;
|
|
537
|
+
driverParam: string;
|
|
538
|
+
notNull: false;
|
|
539
|
+
hasDefault: false;
|
|
540
|
+
isPrimaryKey: false;
|
|
541
|
+
isAutoincrement: false;
|
|
542
|
+
hasRuntimeDefault: false;
|
|
543
|
+
enumValues: [string, ...string[]];
|
|
544
|
+
baseColumn: never;
|
|
545
|
+
identity: undefined;
|
|
546
|
+
generated: undefined;
|
|
547
|
+
}, {}, {}>;
|
|
548
|
+
proposalPortraitCutoutUrl: import("drizzle-orm/pg-core").PgColumn<{
|
|
549
|
+
name: "proposal_portrait_cutout_url";
|
|
550
|
+
tableName: "user_profiles";
|
|
551
|
+
dataType: "string";
|
|
552
|
+
columnType: "PgText";
|
|
553
|
+
data: string;
|
|
554
|
+
driverParam: string;
|
|
555
|
+
notNull: false;
|
|
556
|
+
hasDefault: false;
|
|
557
|
+
isPrimaryKey: false;
|
|
558
|
+
isAutoincrement: false;
|
|
559
|
+
hasRuntimeDefault: false;
|
|
560
|
+
enumValues: [string, ...string[]];
|
|
561
|
+
baseColumn: never;
|
|
562
|
+
identity: undefined;
|
|
563
|
+
generated: undefined;
|
|
564
|
+
}, {}, {}>;
|
|
565
|
+
proposalPortraitStatus: import("drizzle-orm/pg-core").PgColumn<{
|
|
566
|
+
name: "proposal_portrait_status";
|
|
567
|
+
tableName: "user_profiles";
|
|
568
|
+
dataType: "string";
|
|
569
|
+
columnType: "PgText";
|
|
570
|
+
data: string;
|
|
571
|
+
driverParam: string;
|
|
572
|
+
notNull: false;
|
|
573
|
+
hasDefault: false;
|
|
574
|
+
isPrimaryKey: false;
|
|
575
|
+
isAutoincrement: false;
|
|
576
|
+
hasRuntimeDefault: false;
|
|
577
|
+
enumValues: [string, ...string[]];
|
|
578
|
+
baseColumn: never;
|
|
579
|
+
identity: undefined;
|
|
580
|
+
generated: undefined;
|
|
581
|
+
}, {}, {}>;
|
|
582
|
+
proposalPortraitPromptVersion: import("drizzle-orm/pg-core").PgColumn<{
|
|
583
|
+
name: "proposal_portrait_prompt_version";
|
|
584
|
+
tableName: "user_profiles";
|
|
585
|
+
dataType: "string";
|
|
586
|
+
columnType: "PgText";
|
|
587
|
+
data: string;
|
|
588
|
+
driverParam: string;
|
|
589
|
+
notNull: false;
|
|
590
|
+
hasDefault: false;
|
|
591
|
+
isPrimaryKey: false;
|
|
592
|
+
isAutoincrement: false;
|
|
593
|
+
hasRuntimeDefault: false;
|
|
594
|
+
enumValues: [string, ...string[]];
|
|
595
|
+
baseColumn: never;
|
|
596
|
+
identity: undefined;
|
|
597
|
+
generated: undefined;
|
|
598
|
+
}, {}, {}>;
|
|
599
|
+
proposalPortraitSeed: import("drizzle-orm/pg-core").PgColumn<{
|
|
600
|
+
name: "proposal_portrait_seed";
|
|
601
|
+
tableName: "user_profiles";
|
|
602
|
+
dataType: "number";
|
|
603
|
+
columnType: "PgInteger";
|
|
604
|
+
data: number;
|
|
605
|
+
driverParam: string | number;
|
|
606
|
+
notNull: false;
|
|
607
|
+
hasDefault: false;
|
|
608
|
+
isPrimaryKey: false;
|
|
609
|
+
isAutoincrement: false;
|
|
610
|
+
hasRuntimeDefault: false;
|
|
611
|
+
enumValues: undefined;
|
|
612
|
+
baseColumn: never;
|
|
613
|
+
identity: undefined;
|
|
614
|
+
generated: undefined;
|
|
615
|
+
}, {}, {}>;
|
|
616
|
+
proposalPortraitGeneratedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
617
|
+
name: "proposal_portrait_generated_at";
|
|
618
|
+
tableName: "user_profiles";
|
|
619
|
+
dataType: "date";
|
|
620
|
+
columnType: "PgTimestamp";
|
|
621
|
+
data: Date;
|
|
622
|
+
driverParam: string;
|
|
623
|
+
notNull: false;
|
|
624
|
+
hasDefault: false;
|
|
625
|
+
isPrimaryKey: false;
|
|
626
|
+
isAutoincrement: false;
|
|
627
|
+
hasRuntimeDefault: false;
|
|
628
|
+
enumValues: undefined;
|
|
629
|
+
baseColumn: never;
|
|
630
|
+
identity: undefined;
|
|
631
|
+
generated: undefined;
|
|
632
|
+
}, {}, {}>;
|
|
633
|
+
proposalPortraitSourcePhotoHash: import("drizzle-orm/pg-core").PgColumn<{
|
|
634
|
+
name: "proposal_portrait_source_photo_hash";
|
|
635
|
+
tableName: "user_profiles";
|
|
636
|
+
dataType: "string";
|
|
637
|
+
columnType: "PgText";
|
|
638
|
+
data: string;
|
|
639
|
+
driverParam: string;
|
|
640
|
+
notNull: false;
|
|
641
|
+
hasDefault: false;
|
|
642
|
+
isPrimaryKey: false;
|
|
643
|
+
isAutoincrement: false;
|
|
644
|
+
hasRuntimeDefault: false;
|
|
645
|
+
enumValues: [string, ...string[]];
|
|
646
|
+
baseColumn: never;
|
|
647
|
+
identity: undefined;
|
|
648
|
+
generated: undefined;
|
|
649
|
+
}, {}, {}>;
|
|
650
|
+
proposalPortraitPreviewRenderUrl: import("drizzle-orm/pg-core").PgColumn<{
|
|
651
|
+
name: "proposal_portrait_preview_render_url";
|
|
652
|
+
tableName: "user_profiles";
|
|
653
|
+
dataType: "string";
|
|
654
|
+
columnType: "PgText";
|
|
655
|
+
data: string;
|
|
656
|
+
driverParam: string;
|
|
657
|
+
notNull: false;
|
|
658
|
+
hasDefault: false;
|
|
659
|
+
isPrimaryKey: false;
|
|
660
|
+
isAutoincrement: false;
|
|
661
|
+
hasRuntimeDefault: false;
|
|
662
|
+
enumValues: [string, ...string[]];
|
|
663
|
+
baseColumn: never;
|
|
664
|
+
identity: undefined;
|
|
665
|
+
generated: undefined;
|
|
666
|
+
}, {}, {}>;
|
|
667
|
+
proposalPortraitPreviewCutoutUrl: import("drizzle-orm/pg-core").PgColumn<{
|
|
668
|
+
name: "proposal_portrait_preview_cutout_url";
|
|
669
|
+
tableName: "user_profiles";
|
|
670
|
+
dataType: "string";
|
|
671
|
+
columnType: "PgText";
|
|
672
|
+
data: string;
|
|
673
|
+
driverParam: string;
|
|
674
|
+
notNull: false;
|
|
675
|
+
hasDefault: false;
|
|
676
|
+
isPrimaryKey: false;
|
|
677
|
+
isAutoincrement: false;
|
|
678
|
+
hasRuntimeDefault: false;
|
|
679
|
+
enumValues: [string, ...string[]];
|
|
680
|
+
baseColumn: never;
|
|
681
|
+
identity: undefined;
|
|
682
|
+
generated: undefined;
|
|
683
|
+
}, {}, {}>;
|
|
684
|
+
proposalPortraitPreviewPromptVersion: import("drizzle-orm/pg-core").PgColumn<{
|
|
685
|
+
name: "proposal_portrait_preview_prompt_version";
|
|
686
|
+
tableName: "user_profiles";
|
|
687
|
+
dataType: "string";
|
|
688
|
+
columnType: "PgText";
|
|
689
|
+
data: string;
|
|
690
|
+
driverParam: string;
|
|
691
|
+
notNull: false;
|
|
692
|
+
hasDefault: false;
|
|
693
|
+
isPrimaryKey: false;
|
|
694
|
+
isAutoincrement: false;
|
|
695
|
+
hasRuntimeDefault: false;
|
|
696
|
+
enumValues: [string, ...string[]];
|
|
697
|
+
baseColumn: never;
|
|
698
|
+
identity: undefined;
|
|
699
|
+
generated: undefined;
|
|
700
|
+
}, {}, {}>;
|
|
701
|
+
proposalPortraitPreviewSeed: import("drizzle-orm/pg-core").PgColumn<{
|
|
702
|
+
name: "proposal_portrait_preview_seed";
|
|
703
|
+
tableName: "user_profiles";
|
|
704
|
+
dataType: "number";
|
|
705
|
+
columnType: "PgInteger";
|
|
706
|
+
data: number;
|
|
707
|
+
driverParam: string | number;
|
|
708
|
+
notNull: false;
|
|
709
|
+
hasDefault: false;
|
|
710
|
+
isPrimaryKey: false;
|
|
711
|
+
isAutoincrement: false;
|
|
712
|
+
hasRuntimeDefault: false;
|
|
713
|
+
enumValues: undefined;
|
|
714
|
+
baseColumn: never;
|
|
715
|
+
identity: undefined;
|
|
716
|
+
generated: undefined;
|
|
717
|
+
}, {}, {}>;
|
|
718
|
+
proposalPortraitPreviewGeneratedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
719
|
+
name: "proposal_portrait_preview_generated_at";
|
|
720
|
+
tableName: "user_profiles";
|
|
721
|
+
dataType: "date";
|
|
722
|
+
columnType: "PgTimestamp";
|
|
723
|
+
data: Date;
|
|
724
|
+
driverParam: string;
|
|
725
|
+
notNull: false;
|
|
726
|
+
hasDefault: false;
|
|
727
|
+
isPrimaryKey: false;
|
|
728
|
+
isAutoincrement: false;
|
|
729
|
+
hasRuntimeDefault: false;
|
|
730
|
+
enumValues: undefined;
|
|
731
|
+
baseColumn: never;
|
|
732
|
+
identity: undefined;
|
|
733
|
+
generated: undefined;
|
|
734
|
+
}, {}, {}>;
|
|
735
|
+
proposalPortraitPreviewSourcePhotoHash: import("drizzle-orm/pg-core").PgColumn<{
|
|
736
|
+
name: "proposal_portrait_preview_source_photo_hash";
|
|
737
|
+
tableName: "user_profiles";
|
|
738
|
+
dataType: "string";
|
|
739
|
+
columnType: "PgText";
|
|
740
|
+
data: string;
|
|
741
|
+
driverParam: string;
|
|
742
|
+
notNull: false;
|
|
743
|
+
hasDefault: false;
|
|
744
|
+
isPrimaryKey: false;
|
|
745
|
+
isAutoincrement: false;
|
|
746
|
+
hasRuntimeDefault: false;
|
|
747
|
+
enumValues: [string, ...string[]];
|
|
748
|
+
baseColumn: never;
|
|
749
|
+
identity: undefined;
|
|
750
|
+
generated: undefined;
|
|
751
|
+
}, {}, {}>;
|
|
526
752
|
preferredMarketId: import("drizzle-orm/pg-core").PgColumn<{
|
|
527
753
|
name: "preferred_market_id";
|
|
528
754
|
tableName: "user_profiles";
|
|
@@ -646,6 +872,19 @@ export declare const insertUserProfileSchema: z.ZodObject<Omit<{
|
|
|
646
872
|
photoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
647
873
|
agencyAvatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
648
874
|
lastAvatarGeneratedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
875
|
+
proposalPortraitRenderUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
876
|
+
proposalPortraitCutoutUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
877
|
+
proposalPortraitStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
878
|
+
proposalPortraitPromptVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
879
|
+
proposalPortraitSeed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
880
|
+
proposalPortraitGeneratedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
881
|
+
proposalPortraitSourcePhotoHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
882
|
+
proposalPortraitPreviewRenderUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
883
|
+
proposalPortraitPreviewCutoutUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
884
|
+
proposalPortraitPreviewPromptVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
885
|
+
proposalPortraitPreviewSeed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
886
|
+
proposalPortraitPreviewGeneratedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
887
|
+
proposalPortraitPreviewSourcePhotoHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
649
888
|
preferredMarketId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
650
889
|
cardToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
651
890
|
hubspotContactId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -665,6 +904,19 @@ export declare const insertUserProfileSchema: z.ZodObject<Omit<{
|
|
|
665
904
|
photoUrl?: string | null | undefined;
|
|
666
905
|
agencyAvatarUrl?: string | null | undefined;
|
|
667
906
|
lastAvatarGeneratedAt?: Date | null | undefined;
|
|
907
|
+
proposalPortraitRenderUrl?: string | null | undefined;
|
|
908
|
+
proposalPortraitCutoutUrl?: string | null | undefined;
|
|
909
|
+
proposalPortraitStatus?: string | null | undefined;
|
|
910
|
+
proposalPortraitPromptVersion?: string | null | undefined;
|
|
911
|
+
proposalPortraitSeed?: number | null | undefined;
|
|
912
|
+
proposalPortraitGeneratedAt?: Date | null | undefined;
|
|
913
|
+
proposalPortraitSourcePhotoHash?: string | null | undefined;
|
|
914
|
+
proposalPortraitPreviewRenderUrl?: string | null | undefined;
|
|
915
|
+
proposalPortraitPreviewCutoutUrl?: string | null | undefined;
|
|
916
|
+
proposalPortraitPreviewPromptVersion?: string | null | undefined;
|
|
917
|
+
proposalPortraitPreviewSeed?: number | null | undefined;
|
|
918
|
+
proposalPortraitPreviewGeneratedAt?: Date | null | undefined;
|
|
919
|
+
proposalPortraitPreviewSourcePhotoHash?: string | null | undefined;
|
|
668
920
|
preferredMarketId?: string | null | undefined;
|
|
669
921
|
cardToken?: string | null | undefined;
|
|
670
922
|
hubspotContactId?: string | null | undefined;
|
|
@@ -682,6 +934,19 @@ export declare const insertUserProfileSchema: z.ZodObject<Omit<{
|
|
|
682
934
|
photoUrl?: string | null | undefined;
|
|
683
935
|
agencyAvatarUrl?: string | null | undefined;
|
|
684
936
|
lastAvatarGeneratedAt?: Date | null | undefined;
|
|
937
|
+
proposalPortraitRenderUrl?: string | null | undefined;
|
|
938
|
+
proposalPortraitCutoutUrl?: string | null | undefined;
|
|
939
|
+
proposalPortraitStatus?: string | null | undefined;
|
|
940
|
+
proposalPortraitPromptVersion?: string | null | undefined;
|
|
941
|
+
proposalPortraitSeed?: number | null | undefined;
|
|
942
|
+
proposalPortraitGeneratedAt?: Date | null | undefined;
|
|
943
|
+
proposalPortraitSourcePhotoHash?: string | null | undefined;
|
|
944
|
+
proposalPortraitPreviewRenderUrl?: string | null | undefined;
|
|
945
|
+
proposalPortraitPreviewCutoutUrl?: string | null | undefined;
|
|
946
|
+
proposalPortraitPreviewPromptVersion?: string | null | undefined;
|
|
947
|
+
proposalPortraitPreviewSeed?: number | null | undefined;
|
|
948
|
+
proposalPortraitPreviewGeneratedAt?: Date | null | undefined;
|
|
949
|
+
proposalPortraitPreviewSourcePhotoHash?: string | null | undefined;
|
|
685
950
|
preferredMarketId?: string | null | undefined;
|
|
686
951
|
cardToken?: string | null | undefined;
|
|
687
952
|
hubspotContactId?: string | null | undefined;
|
|
@@ -700,6 +965,19 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
700
965
|
photoUrl: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
701
966
|
agencyAvatarUrl: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
702
967
|
lastAvatarGeneratedAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDate>>>;
|
|
968
|
+
proposalPortraitRenderUrl: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
969
|
+
proposalPortraitCutoutUrl: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
970
|
+
proposalPortraitStatus: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
971
|
+
proposalPortraitPromptVersion: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
972
|
+
proposalPortraitSeed: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
973
|
+
proposalPortraitGeneratedAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDate>>>;
|
|
974
|
+
proposalPortraitSourcePhotoHash: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
975
|
+
proposalPortraitPreviewRenderUrl: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
976
|
+
proposalPortraitPreviewCutoutUrl: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
977
|
+
proposalPortraitPreviewPromptVersion: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
978
|
+
proposalPortraitPreviewSeed: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
979
|
+
proposalPortraitPreviewGeneratedAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDate>>>;
|
|
980
|
+
proposalPortraitPreviewSourcePhotoHash: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
703
981
|
preferredMarketId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
704
982
|
cardToken: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
705
983
|
hubspotContactId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
@@ -717,6 +995,19 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
717
995
|
photoUrl?: string | null | undefined;
|
|
718
996
|
agencyAvatarUrl?: string | null | undefined;
|
|
719
997
|
lastAvatarGeneratedAt?: Date | null | undefined;
|
|
998
|
+
proposalPortraitRenderUrl?: string | null | undefined;
|
|
999
|
+
proposalPortraitCutoutUrl?: string | null | undefined;
|
|
1000
|
+
proposalPortraitStatus?: string | null | undefined;
|
|
1001
|
+
proposalPortraitPromptVersion?: string | null | undefined;
|
|
1002
|
+
proposalPortraitSeed?: number | null | undefined;
|
|
1003
|
+
proposalPortraitGeneratedAt?: Date | null | undefined;
|
|
1004
|
+
proposalPortraitSourcePhotoHash?: string | null | undefined;
|
|
1005
|
+
proposalPortraitPreviewRenderUrl?: string | null | undefined;
|
|
1006
|
+
proposalPortraitPreviewCutoutUrl?: string | null | undefined;
|
|
1007
|
+
proposalPortraitPreviewPromptVersion?: string | null | undefined;
|
|
1008
|
+
proposalPortraitPreviewSeed?: number | null | undefined;
|
|
1009
|
+
proposalPortraitPreviewGeneratedAt?: Date | null | undefined;
|
|
1010
|
+
proposalPortraitPreviewSourcePhotoHash?: string | null | undefined;
|
|
720
1011
|
preferredMarketId?: string | null | undefined;
|
|
721
1012
|
cardToken?: string | null | undefined;
|
|
722
1013
|
hubspotContactId?: string | null | undefined;
|
|
@@ -734,6 +1025,19 @@ export declare const updateUserProfileSchema: z.ZodObject<{
|
|
|
734
1025
|
photoUrl?: string | null | undefined;
|
|
735
1026
|
agencyAvatarUrl?: string | null | undefined;
|
|
736
1027
|
lastAvatarGeneratedAt?: Date | null | undefined;
|
|
1028
|
+
proposalPortraitRenderUrl?: string | null | undefined;
|
|
1029
|
+
proposalPortraitCutoutUrl?: string | null | undefined;
|
|
1030
|
+
proposalPortraitStatus?: string | null | undefined;
|
|
1031
|
+
proposalPortraitPromptVersion?: string | null | undefined;
|
|
1032
|
+
proposalPortraitSeed?: number | null | undefined;
|
|
1033
|
+
proposalPortraitGeneratedAt?: Date | null | undefined;
|
|
1034
|
+
proposalPortraitSourcePhotoHash?: string | null | undefined;
|
|
1035
|
+
proposalPortraitPreviewRenderUrl?: string | null | undefined;
|
|
1036
|
+
proposalPortraitPreviewCutoutUrl?: string | null | undefined;
|
|
1037
|
+
proposalPortraitPreviewPromptVersion?: string | null | undefined;
|
|
1038
|
+
proposalPortraitPreviewSeed?: number | null | undefined;
|
|
1039
|
+
proposalPortraitPreviewGeneratedAt?: Date | null | undefined;
|
|
1040
|
+
proposalPortraitPreviewSourcePhotoHash?: string | null | undefined;
|
|
737
1041
|
preferredMarketId?: string | null | undefined;
|
|
738
1042
|
cardToken?: string | null | undefined;
|
|
739
1043
|
hubspotContactId?: string | null | undefined;
|
|
@@ -869,6 +1173,227 @@ export declare const externalTeamMembers: import("drizzle-orm/pg-core").PgTableW
|
|
|
869
1173
|
identity: undefined;
|
|
870
1174
|
generated: undefined;
|
|
871
1175
|
}, {}, {}>;
|
|
1176
|
+
proposalPortraitRenderUrl: import("drizzle-orm/pg-core").PgColumn<{
|
|
1177
|
+
name: "proposal_portrait_render_url";
|
|
1178
|
+
tableName: "external_team_members";
|
|
1179
|
+
dataType: "string";
|
|
1180
|
+
columnType: "PgText";
|
|
1181
|
+
data: string;
|
|
1182
|
+
driverParam: string;
|
|
1183
|
+
notNull: false;
|
|
1184
|
+
hasDefault: false;
|
|
1185
|
+
isPrimaryKey: false;
|
|
1186
|
+
isAutoincrement: false;
|
|
1187
|
+
hasRuntimeDefault: false;
|
|
1188
|
+
enumValues: [string, ...string[]];
|
|
1189
|
+
baseColumn: never;
|
|
1190
|
+
identity: undefined;
|
|
1191
|
+
generated: undefined;
|
|
1192
|
+
}, {}, {}>;
|
|
1193
|
+
proposalPortraitCutoutUrl: import("drizzle-orm/pg-core").PgColumn<{
|
|
1194
|
+
name: "proposal_portrait_cutout_url";
|
|
1195
|
+
tableName: "external_team_members";
|
|
1196
|
+
dataType: "string";
|
|
1197
|
+
columnType: "PgText";
|
|
1198
|
+
data: string;
|
|
1199
|
+
driverParam: string;
|
|
1200
|
+
notNull: false;
|
|
1201
|
+
hasDefault: false;
|
|
1202
|
+
isPrimaryKey: false;
|
|
1203
|
+
isAutoincrement: false;
|
|
1204
|
+
hasRuntimeDefault: false;
|
|
1205
|
+
enumValues: [string, ...string[]];
|
|
1206
|
+
baseColumn: never;
|
|
1207
|
+
identity: undefined;
|
|
1208
|
+
generated: undefined;
|
|
1209
|
+
}, {}, {}>;
|
|
1210
|
+
proposalPortraitStatus: import("drizzle-orm/pg-core").PgColumn<{
|
|
1211
|
+
name: "proposal_portrait_status";
|
|
1212
|
+
tableName: "external_team_members";
|
|
1213
|
+
dataType: "string";
|
|
1214
|
+
columnType: "PgText";
|
|
1215
|
+
data: string;
|
|
1216
|
+
driverParam: string;
|
|
1217
|
+
notNull: false;
|
|
1218
|
+
hasDefault: false;
|
|
1219
|
+
isPrimaryKey: false;
|
|
1220
|
+
isAutoincrement: false;
|
|
1221
|
+
hasRuntimeDefault: false;
|
|
1222
|
+
enumValues: [string, ...string[]];
|
|
1223
|
+
baseColumn: never;
|
|
1224
|
+
identity: undefined;
|
|
1225
|
+
generated: undefined;
|
|
1226
|
+
}, {}, {}>;
|
|
1227
|
+
proposalPortraitPromptVersion: import("drizzle-orm/pg-core").PgColumn<{
|
|
1228
|
+
name: "proposal_portrait_prompt_version";
|
|
1229
|
+
tableName: "external_team_members";
|
|
1230
|
+
dataType: "string";
|
|
1231
|
+
columnType: "PgText";
|
|
1232
|
+
data: string;
|
|
1233
|
+
driverParam: string;
|
|
1234
|
+
notNull: false;
|
|
1235
|
+
hasDefault: false;
|
|
1236
|
+
isPrimaryKey: false;
|
|
1237
|
+
isAutoincrement: false;
|
|
1238
|
+
hasRuntimeDefault: false;
|
|
1239
|
+
enumValues: [string, ...string[]];
|
|
1240
|
+
baseColumn: never;
|
|
1241
|
+
identity: undefined;
|
|
1242
|
+
generated: undefined;
|
|
1243
|
+
}, {}, {}>;
|
|
1244
|
+
proposalPortraitSeed: import("drizzle-orm/pg-core").PgColumn<{
|
|
1245
|
+
name: "proposal_portrait_seed";
|
|
1246
|
+
tableName: "external_team_members";
|
|
1247
|
+
dataType: "number";
|
|
1248
|
+
columnType: "PgInteger";
|
|
1249
|
+
data: number;
|
|
1250
|
+
driverParam: string | number;
|
|
1251
|
+
notNull: false;
|
|
1252
|
+
hasDefault: false;
|
|
1253
|
+
isPrimaryKey: false;
|
|
1254
|
+
isAutoincrement: false;
|
|
1255
|
+
hasRuntimeDefault: false;
|
|
1256
|
+
enumValues: undefined;
|
|
1257
|
+
baseColumn: never;
|
|
1258
|
+
identity: undefined;
|
|
1259
|
+
generated: undefined;
|
|
1260
|
+
}, {}, {}>;
|
|
1261
|
+
proposalPortraitGeneratedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
1262
|
+
name: "proposal_portrait_generated_at";
|
|
1263
|
+
tableName: "external_team_members";
|
|
1264
|
+
dataType: "date";
|
|
1265
|
+
columnType: "PgTimestamp";
|
|
1266
|
+
data: Date;
|
|
1267
|
+
driverParam: string;
|
|
1268
|
+
notNull: false;
|
|
1269
|
+
hasDefault: false;
|
|
1270
|
+
isPrimaryKey: false;
|
|
1271
|
+
isAutoincrement: false;
|
|
1272
|
+
hasRuntimeDefault: false;
|
|
1273
|
+
enumValues: undefined;
|
|
1274
|
+
baseColumn: never;
|
|
1275
|
+
identity: undefined;
|
|
1276
|
+
generated: undefined;
|
|
1277
|
+
}, {}, {}>;
|
|
1278
|
+
proposalPortraitSourcePhotoHash: import("drizzle-orm/pg-core").PgColumn<{
|
|
1279
|
+
name: "proposal_portrait_source_photo_hash";
|
|
1280
|
+
tableName: "external_team_members";
|
|
1281
|
+
dataType: "string";
|
|
1282
|
+
columnType: "PgText";
|
|
1283
|
+
data: string;
|
|
1284
|
+
driverParam: string;
|
|
1285
|
+
notNull: false;
|
|
1286
|
+
hasDefault: false;
|
|
1287
|
+
isPrimaryKey: false;
|
|
1288
|
+
isAutoincrement: false;
|
|
1289
|
+
hasRuntimeDefault: false;
|
|
1290
|
+
enumValues: [string, ...string[]];
|
|
1291
|
+
baseColumn: never;
|
|
1292
|
+
identity: undefined;
|
|
1293
|
+
generated: undefined;
|
|
1294
|
+
}, {}, {}>;
|
|
1295
|
+
proposalPortraitPreviewRenderUrl: import("drizzle-orm/pg-core").PgColumn<{
|
|
1296
|
+
name: "proposal_portrait_preview_render_url";
|
|
1297
|
+
tableName: "external_team_members";
|
|
1298
|
+
dataType: "string";
|
|
1299
|
+
columnType: "PgText";
|
|
1300
|
+
data: string;
|
|
1301
|
+
driverParam: string;
|
|
1302
|
+
notNull: false;
|
|
1303
|
+
hasDefault: false;
|
|
1304
|
+
isPrimaryKey: false;
|
|
1305
|
+
isAutoincrement: false;
|
|
1306
|
+
hasRuntimeDefault: false;
|
|
1307
|
+
enumValues: [string, ...string[]];
|
|
1308
|
+
baseColumn: never;
|
|
1309
|
+
identity: undefined;
|
|
1310
|
+
generated: undefined;
|
|
1311
|
+
}, {}, {}>;
|
|
1312
|
+
proposalPortraitPreviewCutoutUrl: import("drizzle-orm/pg-core").PgColumn<{
|
|
1313
|
+
name: "proposal_portrait_preview_cutout_url";
|
|
1314
|
+
tableName: "external_team_members";
|
|
1315
|
+
dataType: "string";
|
|
1316
|
+
columnType: "PgText";
|
|
1317
|
+
data: string;
|
|
1318
|
+
driverParam: string;
|
|
1319
|
+
notNull: false;
|
|
1320
|
+
hasDefault: false;
|
|
1321
|
+
isPrimaryKey: false;
|
|
1322
|
+
isAutoincrement: false;
|
|
1323
|
+
hasRuntimeDefault: false;
|
|
1324
|
+
enumValues: [string, ...string[]];
|
|
1325
|
+
baseColumn: never;
|
|
1326
|
+
identity: undefined;
|
|
1327
|
+
generated: undefined;
|
|
1328
|
+
}, {}, {}>;
|
|
1329
|
+
proposalPortraitPreviewPromptVersion: import("drizzle-orm/pg-core").PgColumn<{
|
|
1330
|
+
name: "proposal_portrait_preview_prompt_version";
|
|
1331
|
+
tableName: "external_team_members";
|
|
1332
|
+
dataType: "string";
|
|
1333
|
+
columnType: "PgText";
|
|
1334
|
+
data: string;
|
|
1335
|
+
driverParam: string;
|
|
1336
|
+
notNull: false;
|
|
1337
|
+
hasDefault: false;
|
|
1338
|
+
isPrimaryKey: false;
|
|
1339
|
+
isAutoincrement: false;
|
|
1340
|
+
hasRuntimeDefault: false;
|
|
1341
|
+
enumValues: [string, ...string[]];
|
|
1342
|
+
baseColumn: never;
|
|
1343
|
+
identity: undefined;
|
|
1344
|
+
generated: undefined;
|
|
1345
|
+
}, {}, {}>;
|
|
1346
|
+
proposalPortraitPreviewSeed: import("drizzle-orm/pg-core").PgColumn<{
|
|
1347
|
+
name: "proposal_portrait_preview_seed";
|
|
1348
|
+
tableName: "external_team_members";
|
|
1349
|
+
dataType: "number";
|
|
1350
|
+
columnType: "PgInteger";
|
|
1351
|
+
data: number;
|
|
1352
|
+
driverParam: string | number;
|
|
1353
|
+
notNull: false;
|
|
1354
|
+
hasDefault: false;
|
|
1355
|
+
isPrimaryKey: false;
|
|
1356
|
+
isAutoincrement: false;
|
|
1357
|
+
hasRuntimeDefault: false;
|
|
1358
|
+
enumValues: undefined;
|
|
1359
|
+
baseColumn: never;
|
|
1360
|
+
identity: undefined;
|
|
1361
|
+
generated: undefined;
|
|
1362
|
+
}, {}, {}>;
|
|
1363
|
+
proposalPortraitPreviewGeneratedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
1364
|
+
name: "proposal_portrait_preview_generated_at";
|
|
1365
|
+
tableName: "external_team_members";
|
|
1366
|
+
dataType: "date";
|
|
1367
|
+
columnType: "PgTimestamp";
|
|
1368
|
+
data: Date;
|
|
1369
|
+
driverParam: string;
|
|
1370
|
+
notNull: false;
|
|
1371
|
+
hasDefault: false;
|
|
1372
|
+
isPrimaryKey: false;
|
|
1373
|
+
isAutoincrement: false;
|
|
1374
|
+
hasRuntimeDefault: false;
|
|
1375
|
+
enumValues: undefined;
|
|
1376
|
+
baseColumn: never;
|
|
1377
|
+
identity: undefined;
|
|
1378
|
+
generated: undefined;
|
|
1379
|
+
}, {}, {}>;
|
|
1380
|
+
proposalPortraitPreviewSourcePhotoHash: import("drizzle-orm/pg-core").PgColumn<{
|
|
1381
|
+
name: "proposal_portrait_preview_source_photo_hash";
|
|
1382
|
+
tableName: "external_team_members";
|
|
1383
|
+
dataType: "string";
|
|
1384
|
+
columnType: "PgText";
|
|
1385
|
+
data: string;
|
|
1386
|
+
driverParam: string;
|
|
1387
|
+
notNull: false;
|
|
1388
|
+
hasDefault: false;
|
|
1389
|
+
isPrimaryKey: false;
|
|
1390
|
+
isAutoincrement: false;
|
|
1391
|
+
hasRuntimeDefault: false;
|
|
1392
|
+
enumValues: [string, ...string[]];
|
|
1393
|
+
baseColumn: never;
|
|
1394
|
+
identity: undefined;
|
|
1395
|
+
generated: undefined;
|
|
1396
|
+
}, {}, {}>;
|
|
872
1397
|
linkedinUrl: import("drizzle-orm/pg-core").PgColumn<{
|
|
873
1398
|
name: "linkedin_url";
|
|
874
1399
|
tableName: "external_team_members";
|
|
@@ -948,6 +1473,19 @@ export declare const insertExternalTeamMemberSchema: z.ZodObject<Omit<{
|
|
|
948
1473
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
949
1474
|
photoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
950
1475
|
agencyAvatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1476
|
+
proposalPortraitRenderUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1477
|
+
proposalPortraitCutoutUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1478
|
+
proposalPortraitStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1479
|
+
proposalPortraitPromptVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1480
|
+
proposalPortraitSeed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1481
|
+
proposalPortraitGeneratedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1482
|
+
proposalPortraitSourcePhotoHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1483
|
+
proposalPortraitPreviewRenderUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1484
|
+
proposalPortraitPreviewCutoutUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1485
|
+
proposalPortraitPreviewPromptVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1486
|
+
proposalPortraitPreviewSeed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1487
|
+
proposalPortraitPreviewGeneratedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1488
|
+
proposalPortraitPreviewSourcePhotoHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
951
1489
|
linkedinUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
952
1490
|
displayOrder: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
953
1491
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
@@ -958,6 +1496,19 @@ export declare const insertExternalTeamMemberSchema: z.ZodObject<Omit<{
|
|
|
958
1496
|
linkedinUrl?: string | null | undefined;
|
|
959
1497
|
photoUrl?: string | null | undefined;
|
|
960
1498
|
agencyAvatarUrl?: string | null | undefined;
|
|
1499
|
+
proposalPortraitRenderUrl?: string | null | undefined;
|
|
1500
|
+
proposalPortraitCutoutUrl?: string | null | undefined;
|
|
1501
|
+
proposalPortraitStatus?: string | null | undefined;
|
|
1502
|
+
proposalPortraitPromptVersion?: string | null | undefined;
|
|
1503
|
+
proposalPortraitSeed?: number | null | undefined;
|
|
1504
|
+
proposalPortraitGeneratedAt?: Date | null | undefined;
|
|
1505
|
+
proposalPortraitSourcePhotoHash?: string | null | undefined;
|
|
1506
|
+
proposalPortraitPreviewRenderUrl?: string | null | undefined;
|
|
1507
|
+
proposalPortraitPreviewCutoutUrl?: string | null | undefined;
|
|
1508
|
+
proposalPortraitPreviewPromptVersion?: string | null | undefined;
|
|
1509
|
+
proposalPortraitPreviewSeed?: number | null | undefined;
|
|
1510
|
+
proposalPortraitPreviewGeneratedAt?: Date | null | undefined;
|
|
1511
|
+
proposalPortraitPreviewSourcePhotoHash?: string | null | undefined;
|
|
961
1512
|
partnerId?: string | null | undefined;
|
|
962
1513
|
email?: string | null | undefined;
|
|
963
1514
|
displayOrder?: number | null | undefined;
|
|
@@ -967,6 +1518,19 @@ export declare const insertExternalTeamMemberSchema: z.ZodObject<Omit<{
|
|
|
967
1518
|
linkedinUrl?: string | null | undefined;
|
|
968
1519
|
photoUrl?: string | null | undefined;
|
|
969
1520
|
agencyAvatarUrl?: string | null | undefined;
|
|
1521
|
+
proposalPortraitRenderUrl?: string | null | undefined;
|
|
1522
|
+
proposalPortraitCutoutUrl?: string | null | undefined;
|
|
1523
|
+
proposalPortraitStatus?: string | null | undefined;
|
|
1524
|
+
proposalPortraitPromptVersion?: string | null | undefined;
|
|
1525
|
+
proposalPortraitSeed?: number | null | undefined;
|
|
1526
|
+
proposalPortraitGeneratedAt?: Date | null | undefined;
|
|
1527
|
+
proposalPortraitSourcePhotoHash?: string | null | undefined;
|
|
1528
|
+
proposalPortraitPreviewRenderUrl?: string | null | undefined;
|
|
1529
|
+
proposalPortraitPreviewCutoutUrl?: string | null | undefined;
|
|
1530
|
+
proposalPortraitPreviewPromptVersion?: string | null | undefined;
|
|
1531
|
+
proposalPortraitPreviewSeed?: number | null | undefined;
|
|
1532
|
+
proposalPortraitPreviewGeneratedAt?: Date | null | undefined;
|
|
1533
|
+
proposalPortraitPreviewSourcePhotoHash?: string | null | undefined;
|
|
970
1534
|
partnerId?: string | null | undefined;
|
|
971
1535
|
email?: string | null | undefined;
|
|
972
1536
|
displayOrder?: number | null | undefined;
|
|
@@ -977,6 +1541,19 @@ export declare const updateExternalTeamMemberSchema: z.ZodObject<{
|
|
|
977
1541
|
linkedinUrl: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
978
1542
|
photoUrl: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
979
1543
|
agencyAvatarUrl: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1544
|
+
proposalPortraitRenderUrl: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1545
|
+
proposalPortraitCutoutUrl: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1546
|
+
proposalPortraitStatus: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1547
|
+
proposalPortraitPromptVersion: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1548
|
+
proposalPortraitSeed: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
1549
|
+
proposalPortraitGeneratedAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDate>>>;
|
|
1550
|
+
proposalPortraitSourcePhotoHash: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1551
|
+
proposalPortraitPreviewRenderUrl: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1552
|
+
proposalPortraitPreviewCutoutUrl: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1553
|
+
proposalPortraitPreviewPromptVersion: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1554
|
+
proposalPortraitPreviewSeed: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
1555
|
+
proposalPortraitPreviewGeneratedAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDate>>>;
|
|
1556
|
+
proposalPortraitPreviewSourcePhotoHash: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
980
1557
|
partnerId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
981
1558
|
email: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
982
1559
|
displayOrder: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
@@ -986,6 +1563,19 @@ export declare const updateExternalTeamMemberSchema: z.ZodObject<{
|
|
|
986
1563
|
linkedinUrl?: string | null | undefined;
|
|
987
1564
|
photoUrl?: string | null | undefined;
|
|
988
1565
|
agencyAvatarUrl?: string | null | undefined;
|
|
1566
|
+
proposalPortraitRenderUrl?: string | null | undefined;
|
|
1567
|
+
proposalPortraitCutoutUrl?: string | null | undefined;
|
|
1568
|
+
proposalPortraitStatus?: string | null | undefined;
|
|
1569
|
+
proposalPortraitPromptVersion?: string | null | undefined;
|
|
1570
|
+
proposalPortraitSeed?: number | null | undefined;
|
|
1571
|
+
proposalPortraitGeneratedAt?: Date | null | undefined;
|
|
1572
|
+
proposalPortraitSourcePhotoHash?: string | null | undefined;
|
|
1573
|
+
proposalPortraitPreviewRenderUrl?: string | null | undefined;
|
|
1574
|
+
proposalPortraitPreviewCutoutUrl?: string | null | undefined;
|
|
1575
|
+
proposalPortraitPreviewPromptVersion?: string | null | undefined;
|
|
1576
|
+
proposalPortraitPreviewSeed?: number | null | undefined;
|
|
1577
|
+
proposalPortraitPreviewGeneratedAt?: Date | null | undefined;
|
|
1578
|
+
proposalPortraitPreviewSourcePhotoHash?: string | null | undefined;
|
|
989
1579
|
partnerId?: string | null | undefined;
|
|
990
1580
|
email?: string | null | undefined;
|
|
991
1581
|
displayOrder?: number | null | undefined;
|
|
@@ -995,6 +1585,19 @@ export declare const updateExternalTeamMemberSchema: z.ZodObject<{
|
|
|
995
1585
|
linkedinUrl?: string | null | undefined;
|
|
996
1586
|
photoUrl?: string | null | undefined;
|
|
997
1587
|
agencyAvatarUrl?: string | null | undefined;
|
|
1588
|
+
proposalPortraitRenderUrl?: string | null | undefined;
|
|
1589
|
+
proposalPortraitCutoutUrl?: string | null | undefined;
|
|
1590
|
+
proposalPortraitStatus?: string | null | undefined;
|
|
1591
|
+
proposalPortraitPromptVersion?: string | null | undefined;
|
|
1592
|
+
proposalPortraitSeed?: number | null | undefined;
|
|
1593
|
+
proposalPortraitGeneratedAt?: Date | null | undefined;
|
|
1594
|
+
proposalPortraitSourcePhotoHash?: string | null | undefined;
|
|
1595
|
+
proposalPortraitPreviewRenderUrl?: string | null | undefined;
|
|
1596
|
+
proposalPortraitPreviewCutoutUrl?: string | null | undefined;
|
|
1597
|
+
proposalPortraitPreviewPromptVersion?: string | null | undefined;
|
|
1598
|
+
proposalPortraitPreviewSeed?: number | null | undefined;
|
|
1599
|
+
proposalPortraitPreviewGeneratedAt?: Date | null | undefined;
|
|
1600
|
+
proposalPortraitPreviewSourcePhotoHash?: string | null | undefined;
|
|
998
1601
|
partnerId?: string | null | undefined;
|
|
999
1602
|
email?: string | null | undefined;
|
|
1000
1603
|
displayOrder?: number | null | undefined;
|
|
@@ -12880,7 +13483,7 @@ export declare const researchRuns: import("drizzle-orm/pg-core").PgTableWithColu
|
|
|
12880
13483
|
tableName: "research_runs";
|
|
12881
13484
|
dataType: "string";
|
|
12882
13485
|
columnType: "PgEnumColumn";
|
|
12883
|
-
data: "completed" | "
|
|
13486
|
+
data: "completed" | "running" | "failed" | "queued" | "cancelled" | "reused";
|
|
12884
13487
|
driverParam: string;
|
|
12885
13488
|
notNull: true;
|
|
12886
13489
|
hasDefault: true;
|
|
@@ -13051,7 +13654,7 @@ export declare const insertResearchRunSchema: z.ZodObject<Omit<{
|
|
|
13051
13654
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
13052
13655
|
}, "id" | "createdAt">, "strip", z.ZodTypeAny, {
|
|
13053
13656
|
taskId: string;
|
|
13054
|
-
status?: "completed" | "
|
|
13657
|
+
status?: "completed" | "running" | "failed" | "queued" | "cancelled" | "reused" | undefined;
|
|
13055
13658
|
engagementId?: string | null | undefined;
|
|
13056
13659
|
triggerRunId?: string | null | undefined;
|
|
13057
13660
|
planId?: string | null | undefined;
|
|
@@ -13065,7 +13668,7 @@ export declare const insertResearchRunSchema: z.ZodObject<Omit<{
|
|
|
13065
13668
|
error?: string | null | undefined;
|
|
13066
13669
|
}, {
|
|
13067
13670
|
taskId: string;
|
|
13068
|
-
status?: "completed" | "
|
|
13671
|
+
status?: "completed" | "running" | "failed" | "queued" | "cancelled" | "reused" | undefined;
|
|
13069
13672
|
engagementId?: string | null | undefined;
|
|
13070
13673
|
triggerRunId?: string | null | undefined;
|
|
13071
13674
|
planId?: string | null | undefined;
|
|
@@ -13329,7 +13932,7 @@ export declare const jobRuns: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
13329
13932
|
tableName: "job_runs";
|
|
13330
13933
|
dataType: "string";
|
|
13331
13934
|
columnType: "PgEnumColumn";
|
|
13332
|
-
data: "completed" | "
|
|
13935
|
+
data: "completed" | "running" | "active" | "failed" | "queued" | "awaiting_confirmation" | "awaiting_user_confirmation" | "awaiting_enrichment_confirmation";
|
|
13333
13936
|
driverParam: string;
|
|
13334
13937
|
notNull: true;
|
|
13335
13938
|
hasDefault: true;
|
|
@@ -13660,7 +14263,7 @@ export declare const insertJobRunSchema: z.ZodObject<Omit<{
|
|
|
13660
14263
|
name: string;
|
|
13661
14264
|
id: string;
|
|
13662
14265
|
queue: string;
|
|
13663
|
-
status?: "completed" | "
|
|
14266
|
+
status?: "completed" | "running" | "active" | "failed" | "queued" | "awaiting_confirmation" | "awaiting_user_confirmation" | "awaiting_enrichment_confirmation" | undefined;
|
|
13664
14267
|
stage?: string | null | undefined;
|
|
13665
14268
|
createdByUserId?: string | null | undefined;
|
|
13666
14269
|
ownerOrgId?: string | null | undefined;
|
|
@@ -13681,7 +14284,7 @@ export declare const insertJobRunSchema: z.ZodObject<Omit<{
|
|
|
13681
14284
|
name: string;
|
|
13682
14285
|
id: string;
|
|
13683
14286
|
queue: string;
|
|
13684
|
-
status?: "completed" | "
|
|
14287
|
+
status?: "completed" | "running" | "active" | "failed" | "queued" | "awaiting_confirmation" | "awaiting_user_confirmation" | "awaiting_enrichment_confirmation" | undefined;
|
|
13685
14288
|
stage?: string | null | undefined;
|
|
13686
14289
|
createdByUserId?: string | null | undefined;
|
|
13687
14290
|
ownerOrgId?: string | null | undefined;
|
|
@@ -14568,6 +15171,23 @@ export declare const clerkUsers: import("drizzle-orm/pg-core").PgTableWithColumn
|
|
|
14568
15171
|
identity: undefined;
|
|
14569
15172
|
generated: undefined;
|
|
14570
15173
|
}, {}, {}>;
|
|
15174
|
+
compassVoiceWarmth: import("drizzle-orm/pg-core").PgColumn<{
|
|
15175
|
+
name: "compass_voice_warmth";
|
|
15176
|
+
tableName: "clerk_users";
|
|
15177
|
+
dataType: "string";
|
|
15178
|
+
columnType: "PgNumeric";
|
|
15179
|
+
data: string;
|
|
15180
|
+
driverParam: string;
|
|
15181
|
+
notNull: false;
|
|
15182
|
+
hasDefault: true;
|
|
15183
|
+
isPrimaryKey: false;
|
|
15184
|
+
isAutoincrement: false;
|
|
15185
|
+
hasRuntimeDefault: false;
|
|
15186
|
+
enumValues: undefined;
|
|
15187
|
+
baseColumn: never;
|
|
15188
|
+
identity: undefined;
|
|
15189
|
+
generated: undefined;
|
|
15190
|
+
}, {}, {}>;
|
|
14571
15191
|
};
|
|
14572
15192
|
dialect: "pg";
|
|
14573
15193
|
}>;
|
|
@@ -14592,6 +15212,7 @@ export declare const insertClerkUserSchema: z.ZodObject<Omit<{
|
|
|
14592
15212
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
14593
15213
|
approvedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
14594
15214
|
approvedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15215
|
+
compassVoiceWarmth: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14595
15216
|
}, "createdAt" | "apiCallCount" | "lastApiCall">, "strip", z.ZodTypeAny, {
|
|
14596
15217
|
id: string;
|
|
14597
15218
|
email: string;
|
|
@@ -14610,6 +15231,7 @@ export declare const insertClerkUserSchema: z.ZodObject<Omit<{
|
|
|
14610
15231
|
partnerRole?: string | null | undefined;
|
|
14611
15232
|
vendorId?: string | null | undefined;
|
|
14612
15233
|
vendorAccessLevel?: "fulfillment_only" | "fulfillment_and_sales" | null | undefined;
|
|
15234
|
+
compassVoiceWarmth?: string | null | undefined;
|
|
14613
15235
|
}, {
|
|
14614
15236
|
id: string;
|
|
14615
15237
|
email: string;
|
|
@@ -14628,6 +15250,7 @@ export declare const insertClerkUserSchema: z.ZodObject<Omit<{
|
|
|
14628
15250
|
partnerRole?: string | null | undefined;
|
|
14629
15251
|
vendorId?: string | null | undefined;
|
|
14630
15252
|
vendorAccessLevel?: "fulfillment_only" | "fulfillment_and_sales" | null | undefined;
|
|
15253
|
+
compassVoiceWarmth?: string | null | undefined;
|
|
14631
15254
|
}>;
|
|
14632
15255
|
export type InsertClerkUser = z.infer<typeof insertClerkUserSchema>;
|
|
14633
15256
|
export type ClerkUser = typeof clerkUsers.$inferSelect;
|
|
@@ -30325,7 +30948,7 @@ export declare const auditResults: import("drizzle-orm/pg-core").PgTableWithColu
|
|
|
30325
30948
|
tableName: "audit_results";
|
|
30326
30949
|
dataType: "string";
|
|
30327
30950
|
columnType: "PgEnumColumn";
|
|
30328
|
-
data: "
|
|
30951
|
+
data: "warning" | "failed" | "error" | "passed";
|
|
30329
30952
|
driverParam: string;
|
|
30330
30953
|
notNull: true;
|
|
30331
30954
|
hasDefault: false;
|
|
@@ -30536,7 +31159,7 @@ export declare const insertAuditResultSchema: z.ZodObject<Omit<{
|
|
|
30536
31159
|
tenantId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30537
31160
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
30538
31161
|
}, "id" | "createdAt">, "strip", z.ZodTypeAny, {
|
|
30539
|
-
status: "
|
|
31162
|
+
status: "warning" | "failed" | "error" | "passed";
|
|
30540
31163
|
startedAt: Date;
|
|
30541
31164
|
completedAt: Date;
|
|
30542
31165
|
auditType: string;
|
|
@@ -30557,7 +31180,7 @@ export declare const insertAuditResultSchema: z.ZodObject<Omit<{
|
|
|
30557
31180
|
} | null | undefined;
|
|
30558
31181
|
triggeredBy?: string | null | undefined;
|
|
30559
31182
|
}, {
|
|
30560
|
-
status: "
|
|
31183
|
+
status: "warning" | "failed" | "error" | "passed";
|
|
30561
31184
|
startedAt: Date;
|
|
30562
31185
|
completedAt: Date;
|
|
30563
31186
|
auditType: string;
|
|
@@ -34223,6 +34846,268 @@ export declare const updateVendorSchema: z.ZodObject<{
|
|
|
34223
34846
|
export type Vendor = typeof vendors.$inferSelect;
|
|
34224
34847
|
export type InsertVendor = z.infer<typeof insertVendorSchema>;
|
|
34225
34848
|
export declare const mediaOrderStatusEnum: import("drizzle-orm/pg-core").PgEnum<["draft", "pending_approval", "approved", "sent", "active", "completed"]>;
|
|
34849
|
+
export declare const salesInitiatives: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
34850
|
+
name: "sales_initiatives";
|
|
34851
|
+
schema: undefined;
|
|
34852
|
+
columns: {
|
|
34853
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
34854
|
+
name: "id";
|
|
34855
|
+
tableName: "sales_initiatives";
|
|
34856
|
+
dataType: "string";
|
|
34857
|
+
columnType: "PgUUID";
|
|
34858
|
+
data: string;
|
|
34859
|
+
driverParam: string;
|
|
34860
|
+
notNull: true;
|
|
34861
|
+
hasDefault: true;
|
|
34862
|
+
isPrimaryKey: true;
|
|
34863
|
+
isAutoincrement: false;
|
|
34864
|
+
hasRuntimeDefault: false;
|
|
34865
|
+
enumValues: undefined;
|
|
34866
|
+
baseColumn: never;
|
|
34867
|
+
identity: undefined;
|
|
34868
|
+
generated: undefined;
|
|
34869
|
+
}, {}, {}>;
|
|
34870
|
+
code: import("drizzle-orm/pg-core").PgColumn<{
|
|
34871
|
+
name: "code";
|
|
34872
|
+
tableName: "sales_initiatives";
|
|
34873
|
+
dataType: "string";
|
|
34874
|
+
columnType: "PgVarchar";
|
|
34875
|
+
data: string;
|
|
34876
|
+
driverParam: string;
|
|
34877
|
+
notNull: true;
|
|
34878
|
+
hasDefault: false;
|
|
34879
|
+
isPrimaryKey: false;
|
|
34880
|
+
isAutoincrement: false;
|
|
34881
|
+
hasRuntimeDefault: false;
|
|
34882
|
+
enumValues: [string, ...string[]];
|
|
34883
|
+
baseColumn: never;
|
|
34884
|
+
identity: undefined;
|
|
34885
|
+
generated: undefined;
|
|
34886
|
+
}, {}, {
|
|
34887
|
+
length: number | undefined;
|
|
34888
|
+
}>;
|
|
34889
|
+
name: import("drizzle-orm/pg-core").PgColumn<{
|
|
34890
|
+
name: "name";
|
|
34891
|
+
tableName: "sales_initiatives";
|
|
34892
|
+
dataType: "string";
|
|
34893
|
+
columnType: "PgVarchar";
|
|
34894
|
+
data: string;
|
|
34895
|
+
driverParam: string;
|
|
34896
|
+
notNull: true;
|
|
34897
|
+
hasDefault: false;
|
|
34898
|
+
isPrimaryKey: false;
|
|
34899
|
+
isAutoincrement: false;
|
|
34900
|
+
hasRuntimeDefault: false;
|
|
34901
|
+
enumValues: [string, ...string[]];
|
|
34902
|
+
baseColumn: never;
|
|
34903
|
+
identity: undefined;
|
|
34904
|
+
generated: undefined;
|
|
34905
|
+
}, {}, {
|
|
34906
|
+
length: number | undefined;
|
|
34907
|
+
}>;
|
|
34908
|
+
description: import("drizzle-orm/pg-core").PgColumn<{
|
|
34909
|
+
name: "description";
|
|
34910
|
+
tableName: "sales_initiatives";
|
|
34911
|
+
dataType: "string";
|
|
34912
|
+
columnType: "PgText";
|
|
34913
|
+
data: string;
|
|
34914
|
+
driverParam: string;
|
|
34915
|
+
notNull: false;
|
|
34916
|
+
hasDefault: false;
|
|
34917
|
+
isPrimaryKey: false;
|
|
34918
|
+
isAutoincrement: false;
|
|
34919
|
+
hasRuntimeDefault: false;
|
|
34920
|
+
enumValues: [string, ...string[]];
|
|
34921
|
+
baseColumn: never;
|
|
34922
|
+
identity: undefined;
|
|
34923
|
+
generated: undefined;
|
|
34924
|
+
}, {}, {}>;
|
|
34925
|
+
hubspotValue: import("drizzle-orm/pg-core").PgColumn<{
|
|
34926
|
+
name: "hubspot_value";
|
|
34927
|
+
tableName: "sales_initiatives";
|
|
34928
|
+
dataType: "string";
|
|
34929
|
+
columnType: "PgVarchar";
|
|
34930
|
+
data: string;
|
|
34931
|
+
driverParam: string;
|
|
34932
|
+
notNull: true;
|
|
34933
|
+
hasDefault: false;
|
|
34934
|
+
isPrimaryKey: false;
|
|
34935
|
+
isAutoincrement: false;
|
|
34936
|
+
hasRuntimeDefault: false;
|
|
34937
|
+
enumValues: [string, ...string[]];
|
|
34938
|
+
baseColumn: never;
|
|
34939
|
+
identity: undefined;
|
|
34940
|
+
generated: undefined;
|
|
34941
|
+
}, {}, {
|
|
34942
|
+
length: number | undefined;
|
|
34943
|
+
}>;
|
|
34944
|
+
displayOrder: import("drizzle-orm/pg-core").PgColumn<{
|
|
34945
|
+
name: "display_order";
|
|
34946
|
+
tableName: "sales_initiatives";
|
|
34947
|
+
dataType: "number";
|
|
34948
|
+
columnType: "PgInteger";
|
|
34949
|
+
data: number;
|
|
34950
|
+
driverParam: string | number;
|
|
34951
|
+
notNull: true;
|
|
34952
|
+
hasDefault: true;
|
|
34953
|
+
isPrimaryKey: false;
|
|
34954
|
+
isAutoincrement: false;
|
|
34955
|
+
hasRuntimeDefault: false;
|
|
34956
|
+
enumValues: undefined;
|
|
34957
|
+
baseColumn: never;
|
|
34958
|
+
identity: undefined;
|
|
34959
|
+
generated: undefined;
|
|
34960
|
+
}, {}, {}>;
|
|
34961
|
+
startsAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
34962
|
+
name: "starts_at";
|
|
34963
|
+
tableName: "sales_initiatives";
|
|
34964
|
+
dataType: "string";
|
|
34965
|
+
columnType: "PgDateString";
|
|
34966
|
+
data: string;
|
|
34967
|
+
driverParam: string;
|
|
34968
|
+
notNull: false;
|
|
34969
|
+
hasDefault: false;
|
|
34970
|
+
isPrimaryKey: false;
|
|
34971
|
+
isAutoincrement: false;
|
|
34972
|
+
hasRuntimeDefault: false;
|
|
34973
|
+
enumValues: undefined;
|
|
34974
|
+
baseColumn: never;
|
|
34975
|
+
identity: undefined;
|
|
34976
|
+
generated: undefined;
|
|
34977
|
+
}, {}, {}>;
|
|
34978
|
+
endsAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
34979
|
+
name: "ends_at";
|
|
34980
|
+
tableName: "sales_initiatives";
|
|
34981
|
+
dataType: "string";
|
|
34982
|
+
columnType: "PgDateString";
|
|
34983
|
+
data: string;
|
|
34984
|
+
driverParam: string;
|
|
34985
|
+
notNull: false;
|
|
34986
|
+
hasDefault: false;
|
|
34987
|
+
isPrimaryKey: false;
|
|
34988
|
+
isAutoincrement: false;
|
|
34989
|
+
hasRuntimeDefault: false;
|
|
34990
|
+
enumValues: undefined;
|
|
34991
|
+
baseColumn: never;
|
|
34992
|
+
identity: undefined;
|
|
34993
|
+
generated: undefined;
|
|
34994
|
+
}, {}, {}>;
|
|
34995
|
+
isActive: import("drizzle-orm/pg-core").PgColumn<{
|
|
34996
|
+
name: "is_active";
|
|
34997
|
+
tableName: "sales_initiatives";
|
|
34998
|
+
dataType: "boolean";
|
|
34999
|
+
columnType: "PgBoolean";
|
|
35000
|
+
data: boolean;
|
|
35001
|
+
driverParam: boolean;
|
|
35002
|
+
notNull: true;
|
|
35003
|
+
hasDefault: true;
|
|
35004
|
+
isPrimaryKey: false;
|
|
35005
|
+
isAutoincrement: false;
|
|
35006
|
+
hasRuntimeDefault: false;
|
|
35007
|
+
enumValues: undefined;
|
|
35008
|
+
baseColumn: never;
|
|
35009
|
+
identity: undefined;
|
|
35010
|
+
generated: undefined;
|
|
35011
|
+
}, {}, {}>;
|
|
35012
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
35013
|
+
name: "created_at";
|
|
35014
|
+
tableName: "sales_initiatives";
|
|
35015
|
+
dataType: "date";
|
|
35016
|
+
columnType: "PgTimestamp";
|
|
35017
|
+
data: Date;
|
|
35018
|
+
driverParam: string;
|
|
35019
|
+
notNull: true;
|
|
35020
|
+
hasDefault: true;
|
|
35021
|
+
isPrimaryKey: false;
|
|
35022
|
+
isAutoincrement: false;
|
|
35023
|
+
hasRuntimeDefault: false;
|
|
35024
|
+
enumValues: undefined;
|
|
35025
|
+
baseColumn: never;
|
|
35026
|
+
identity: undefined;
|
|
35027
|
+
generated: undefined;
|
|
35028
|
+
}, {}, {}>;
|
|
35029
|
+
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
35030
|
+
name: "updated_at";
|
|
35031
|
+
tableName: "sales_initiatives";
|
|
35032
|
+
dataType: "date";
|
|
35033
|
+
columnType: "PgTimestamp";
|
|
35034
|
+
data: Date;
|
|
35035
|
+
driverParam: string;
|
|
35036
|
+
notNull: true;
|
|
35037
|
+
hasDefault: true;
|
|
35038
|
+
isPrimaryKey: false;
|
|
35039
|
+
isAutoincrement: false;
|
|
35040
|
+
hasRuntimeDefault: false;
|
|
35041
|
+
enumValues: undefined;
|
|
35042
|
+
baseColumn: never;
|
|
35043
|
+
identity: undefined;
|
|
35044
|
+
generated: undefined;
|
|
35045
|
+
}, {}, {}>;
|
|
35046
|
+
};
|
|
35047
|
+
dialect: "pg";
|
|
35048
|
+
}>;
|
|
35049
|
+
export declare const insertSalesInitiativeSchema: z.ZodObject<Omit<{
|
|
35050
|
+
id: z.ZodOptional<z.ZodString>;
|
|
35051
|
+
code: z.ZodString;
|
|
35052
|
+
name: z.ZodString;
|
|
35053
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35054
|
+
hubspotValue: z.ZodString;
|
|
35055
|
+
displayOrder: z.ZodOptional<z.ZodNumber>;
|
|
35056
|
+
startsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35057
|
+
endsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35058
|
+
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
35059
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
35060
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
35061
|
+
}, "id" | "createdAt" | "updatedAt">, "strip", z.ZodTypeAny, {
|
|
35062
|
+
name: string;
|
|
35063
|
+
code: string;
|
|
35064
|
+
hubspotValue: string;
|
|
35065
|
+
displayOrder?: number | undefined;
|
|
35066
|
+
description?: string | null | undefined;
|
|
35067
|
+
isActive?: boolean | undefined;
|
|
35068
|
+
startsAt?: string | null | undefined;
|
|
35069
|
+
endsAt?: string | null | undefined;
|
|
35070
|
+
}, {
|
|
35071
|
+
name: string;
|
|
35072
|
+
code: string;
|
|
35073
|
+
hubspotValue: string;
|
|
35074
|
+
displayOrder?: number | undefined;
|
|
35075
|
+
description?: string | null | undefined;
|
|
35076
|
+
isActive?: boolean | undefined;
|
|
35077
|
+
startsAt?: string | null | undefined;
|
|
35078
|
+
endsAt?: string | null | undefined;
|
|
35079
|
+
}>;
|
|
35080
|
+
export declare const updateSalesInitiativeSchema: z.ZodObject<{
|
|
35081
|
+
name: z.ZodOptional<z.ZodString>;
|
|
35082
|
+
code: z.ZodOptional<z.ZodString>;
|
|
35083
|
+
displayOrder: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
35084
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
35085
|
+
isActive: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
35086
|
+
startsAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
35087
|
+
endsAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
35088
|
+
hubspotValue: z.ZodOptional<z.ZodString>;
|
|
35089
|
+
}, "strip", z.ZodTypeAny, {
|
|
35090
|
+
name?: string | undefined;
|
|
35091
|
+
code?: string | undefined;
|
|
35092
|
+
displayOrder?: number | undefined;
|
|
35093
|
+
description?: string | null | undefined;
|
|
35094
|
+
isActive?: boolean | undefined;
|
|
35095
|
+
startsAt?: string | null | undefined;
|
|
35096
|
+
endsAt?: string | null | undefined;
|
|
35097
|
+
hubspotValue?: string | undefined;
|
|
35098
|
+
}, {
|
|
35099
|
+
name?: string | undefined;
|
|
35100
|
+
code?: string | undefined;
|
|
35101
|
+
displayOrder?: number | undefined;
|
|
35102
|
+
description?: string | null | undefined;
|
|
35103
|
+
isActive?: boolean | undefined;
|
|
35104
|
+
startsAt?: string | null | undefined;
|
|
35105
|
+
endsAt?: string | null | undefined;
|
|
35106
|
+
hubspotValue?: string | undefined;
|
|
35107
|
+
}>;
|
|
35108
|
+
export type SalesInitiative = typeof salesInitiatives.$inferSelect;
|
|
35109
|
+
export type InsertSalesInitiative = z.infer<typeof insertSalesInitiativeSchema>;
|
|
35110
|
+
export type UpdateSalesInitiative = z.infer<typeof updateSalesInitiativeSchema>;
|
|
34226
35111
|
export declare const mediaOrders: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
34227
35112
|
name: "media_orders";
|
|
34228
35113
|
schema: undefined;
|
|
@@ -34409,6 +35294,25 @@ export declare const mediaOrders: import("drizzle-orm/pg-core").PgTableWithColum
|
|
|
34409
35294
|
identity: undefined;
|
|
34410
35295
|
generated: undefined;
|
|
34411
35296
|
}, {}, {}>;
|
|
35297
|
+
initiativeCode: import("drizzle-orm/pg-core").PgColumn<{
|
|
35298
|
+
name: "initiative_code";
|
|
35299
|
+
tableName: "media_orders";
|
|
35300
|
+
dataType: "string";
|
|
35301
|
+
columnType: "PgVarchar";
|
|
35302
|
+
data: string;
|
|
35303
|
+
driverParam: string;
|
|
35304
|
+
notNull: false;
|
|
35305
|
+
hasDefault: false;
|
|
35306
|
+
isPrimaryKey: false;
|
|
35307
|
+
isAutoincrement: false;
|
|
35308
|
+
hasRuntimeDefault: false;
|
|
35309
|
+
enumValues: [string, ...string[]];
|
|
35310
|
+
baseColumn: never;
|
|
35311
|
+
identity: undefined;
|
|
35312
|
+
generated: undefined;
|
|
35313
|
+
}, {}, {
|
|
35314
|
+
length: number | undefined;
|
|
35315
|
+
}>;
|
|
34412
35316
|
clientName: import("drizzle-orm/pg-core").PgColumn<{
|
|
34413
35317
|
name: "client_name";
|
|
34414
35318
|
tableName: "media_orders";
|
|
@@ -34584,7 +35488,7 @@ export declare const mediaOrders: import("drizzle-orm/pg-core").PgTableWithColum
|
|
|
34584
35488
|
tableName: "media_orders";
|
|
34585
35489
|
dataType: "string";
|
|
34586
35490
|
columnType: "PgEnumColumn";
|
|
34587
|
-
data: "
|
|
35491
|
+
data: "approved" | "completed" | "active" | "draft" | "pending_approval" | "sent";
|
|
34588
35492
|
driverParam: string;
|
|
34589
35493
|
notNull: true;
|
|
34590
35494
|
hasDefault: true;
|
|
@@ -34732,6 +35636,40 @@ export declare const mediaOrders: import("drizzle-orm/pg-core").PgTableWithColum
|
|
|
34732
35636
|
identity: undefined;
|
|
34733
35637
|
generated: undefined;
|
|
34734
35638
|
}, {}, {}>;
|
|
35639
|
+
amendmentReason: import("drizzle-orm/pg-core").PgColumn<{
|
|
35640
|
+
name: "amendment_reason";
|
|
35641
|
+
tableName: "media_orders";
|
|
35642
|
+
dataType: "string";
|
|
35643
|
+
columnType: "PgEnumColumn";
|
|
35644
|
+
data: "other" | "budget_adjustment" | "flight_date_change" | "product_swap" | "add_line_items" | "remove_line_items" | "rate_renegotiation" | "client_request";
|
|
35645
|
+
driverParam: string;
|
|
35646
|
+
notNull: false;
|
|
35647
|
+
hasDefault: false;
|
|
35648
|
+
isPrimaryKey: false;
|
|
35649
|
+
isAutoincrement: false;
|
|
35650
|
+
hasRuntimeDefault: false;
|
|
35651
|
+
enumValues: ["budget_adjustment", "flight_date_change", "product_swap", "add_line_items", "remove_line_items", "rate_renegotiation", "client_request", "other"];
|
|
35652
|
+
baseColumn: never;
|
|
35653
|
+
identity: undefined;
|
|
35654
|
+
generated: undefined;
|
|
35655
|
+
}, {}, {}>;
|
|
35656
|
+
amendmentNotes: import("drizzle-orm/pg-core").PgColumn<{
|
|
35657
|
+
name: "amendment_notes";
|
|
35658
|
+
tableName: "media_orders";
|
|
35659
|
+
dataType: "string";
|
|
35660
|
+
columnType: "PgText";
|
|
35661
|
+
data: string;
|
|
35662
|
+
driverParam: string;
|
|
35663
|
+
notNull: false;
|
|
35664
|
+
hasDefault: false;
|
|
35665
|
+
isPrimaryKey: false;
|
|
35666
|
+
isAutoincrement: false;
|
|
35667
|
+
hasRuntimeDefault: false;
|
|
35668
|
+
enumValues: [string, ...string[]];
|
|
35669
|
+
baseColumn: never;
|
|
35670
|
+
identity: undefined;
|
|
35671
|
+
generated: undefined;
|
|
35672
|
+
}, {}, {}>;
|
|
34735
35673
|
slaHold: import("drizzle-orm/pg-core").PgColumn<{
|
|
34736
35674
|
name: "sla_hold";
|
|
34737
35675
|
tableName: "media_orders";
|
|
@@ -35059,25 +35997,6 @@ export declare const mediaOrders: import("drizzle-orm/pg-core").PgTableWithColum
|
|
|
35059
35997
|
identity: undefined;
|
|
35060
35998
|
generated: undefined;
|
|
35061
35999
|
}, {}, {}>;
|
|
35062
|
-
initiativeCode: import("drizzle-orm/pg-core").PgColumn<{
|
|
35063
|
-
name: "initiative_code";
|
|
35064
|
-
tableName: "media_orders";
|
|
35065
|
-
dataType: "string";
|
|
35066
|
-
columnType: "PgVarchar";
|
|
35067
|
-
data: string;
|
|
35068
|
-
driverParam: string;
|
|
35069
|
-
notNull: false;
|
|
35070
|
-
hasDefault: false;
|
|
35071
|
-
isPrimaryKey: false;
|
|
35072
|
-
isAutoincrement: false;
|
|
35073
|
-
hasRuntimeDefault: false;
|
|
35074
|
-
enumValues: [string, ...string[]];
|
|
35075
|
-
baseColumn: never;
|
|
35076
|
-
identity: undefined;
|
|
35077
|
-
generated: undefined;
|
|
35078
|
-
}, {}, {
|
|
35079
|
-
length: number | undefined;
|
|
35080
|
-
}>;
|
|
35081
36000
|
navigaAdvertiserId: import("drizzle-orm/pg-core").PgColumn<{
|
|
35082
36001
|
name: "naviga_advertiser_id";
|
|
35083
36002
|
tableName: "media_orders";
|
|
@@ -35204,7 +36123,7 @@ export declare const mediaOrders: import("drizzle-orm/pg-core").PgTableWithColum
|
|
|
35204
36123
|
tableName: "media_orders";
|
|
35205
36124
|
dataType: "string";
|
|
35206
36125
|
columnType: "PgEnumColumn";
|
|
35207
|
-
data: "
|
|
36126
|
+
data: "completed" | "assigned" | "in_progress" | "issue";
|
|
35208
36127
|
driverParam: string;
|
|
35209
36128
|
notNull: false;
|
|
35210
36129
|
hasDefault: false;
|
|
@@ -35698,6 +36617,7 @@ export declare const insertMediaOrderSchema: z.ZodObject<Omit<{
|
|
|
35698
36617
|
hubspotDealId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35699
36618
|
hubspotCompanyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35700
36619
|
parentHubspotCompanyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36620
|
+
initiativeCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35701
36621
|
clientName: z.ZodString;
|
|
35702
36622
|
clientContactName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35703
36623
|
clientContactEmail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -35717,6 +36637,8 @@ export declare const insertMediaOrderSchema: z.ZodObject<Omit<{
|
|
|
35717
36637
|
activatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
35718
36638
|
completedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
35719
36639
|
returnReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36640
|
+
amendmentReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<["budget_adjustment", "flight_date_change", "product_swap", "add_line_items", "remove_line_items", "rate_renegotiation", "client_request", "other"]>>>;
|
|
36641
|
+
amendmentNotes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35720
36642
|
slaHold: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
35721
36643
|
clientTier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35722
36644
|
shareToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -35736,7 +36658,6 @@ export declare const insertMediaOrderSchema: z.ZodObject<Omit<{
|
|
|
35736
36658
|
defaultRunDateEnd: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35737
36659
|
defaultPromoting: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35738
36660
|
orderNotes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35739
|
-
initiativeCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35740
36661
|
navigaAdvertiserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35741
36662
|
purchaseOrderNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35742
36663
|
billToName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -35782,7 +36703,7 @@ export declare const insertMediaOrderSchema: z.ZodObject<Omit<{
|
|
|
35782
36703
|
}, "id" | "createdAt" | "updatedAt">, "strip", z.ZodTypeAny, {
|
|
35783
36704
|
clientName: string;
|
|
35784
36705
|
orderDate: string;
|
|
35785
|
-
status?: "
|
|
36706
|
+
status?: "approved" | "completed" | "active" | "draft" | "pending_approval" | "sent" | undefined;
|
|
35786
36707
|
hubspotCompanyId?: string | null | undefined;
|
|
35787
36708
|
partnerId?: string | null | undefined;
|
|
35788
36709
|
hubspotDealId?: string | null | undefined;
|
|
@@ -35807,6 +36728,7 @@ export declare const insertMediaOrderSchema: z.ZodObject<Omit<{
|
|
|
35807
36728
|
configurationId?: string | null | undefined;
|
|
35808
36729
|
optionId?: string | null | undefined;
|
|
35809
36730
|
parentHubspotCompanyId?: string | null | undefined;
|
|
36731
|
+
initiativeCode?: string | null | undefined;
|
|
35810
36732
|
clientContactName?: string | null | undefined;
|
|
35811
36733
|
clientContactEmail?: string | null | undefined;
|
|
35812
36734
|
orderTitle?: string | null | undefined;
|
|
@@ -35819,6 +36741,8 @@ export declare const insertMediaOrderSchema: z.ZodObject<Omit<{
|
|
|
35819
36741
|
sentAt?: Date | null | undefined;
|
|
35820
36742
|
activatedAt?: Date | null | undefined;
|
|
35821
36743
|
returnReason?: string | null | undefined;
|
|
36744
|
+
amendmentReason?: "other" | "budget_adjustment" | "flight_date_change" | "product_swap" | "add_line_items" | "remove_line_items" | "rate_renegotiation" | "client_request" | null | undefined;
|
|
36745
|
+
amendmentNotes?: string | null | undefined;
|
|
35822
36746
|
slaHold?: boolean | null | undefined;
|
|
35823
36747
|
clientTier?: string | null | undefined;
|
|
35824
36748
|
xlsxStorageKey?: string | null | undefined;
|
|
@@ -35831,14 +36755,13 @@ export declare const insertMediaOrderSchema: z.ZodObject<Omit<{
|
|
|
35831
36755
|
defaultRunDateStart?: string | null | undefined;
|
|
35832
36756
|
defaultRunDateEnd?: string | null | undefined;
|
|
35833
36757
|
orderNotes?: string | null | undefined;
|
|
35834
|
-
initiativeCode?: string | null | undefined;
|
|
35835
36758
|
navigaAdvertiserId?: string | null | undefined;
|
|
35836
36759
|
purchaseOrderNumber?: string | null | undefined;
|
|
35837
36760
|
billToName?: string | null | undefined;
|
|
35838
36761
|
billToEmail?: string | null | undefined;
|
|
35839
36762
|
vendorAssignedAt?: Date | null | undefined;
|
|
35840
36763
|
vendorAssignedBy?: string | null | undefined;
|
|
35841
|
-
vendorFulfillmentStatus?: "
|
|
36764
|
+
vendorFulfillmentStatus?: "completed" | "assigned" | "in_progress" | "issue" | null | undefined;
|
|
35842
36765
|
vendorFulfillmentNotes?: string | null | undefined;
|
|
35843
36766
|
vendorFulfillmentCompletedAt?: Date | null | undefined;
|
|
35844
36767
|
vendorFulfillmentCompletedBy?: string | null | undefined;
|
|
@@ -35867,7 +36790,7 @@ export declare const insertMediaOrderSchema: z.ZodObject<Omit<{
|
|
|
35867
36790
|
}, {
|
|
35868
36791
|
clientName: string;
|
|
35869
36792
|
orderDate: string;
|
|
35870
|
-
status?: "
|
|
36793
|
+
status?: "approved" | "completed" | "active" | "draft" | "pending_approval" | "sent" | undefined;
|
|
35871
36794
|
hubspotCompanyId?: string | null | undefined;
|
|
35872
36795
|
partnerId?: string | null | undefined;
|
|
35873
36796
|
hubspotDealId?: string | null | undefined;
|
|
@@ -35892,6 +36815,7 @@ export declare const insertMediaOrderSchema: z.ZodObject<Omit<{
|
|
|
35892
36815
|
configurationId?: string | null | undefined;
|
|
35893
36816
|
optionId?: string | null | undefined;
|
|
35894
36817
|
parentHubspotCompanyId?: string | null | undefined;
|
|
36818
|
+
initiativeCode?: string | null | undefined;
|
|
35895
36819
|
clientContactName?: string | null | undefined;
|
|
35896
36820
|
clientContactEmail?: string | null | undefined;
|
|
35897
36821
|
orderTitle?: string | null | undefined;
|
|
@@ -35904,6 +36828,8 @@ export declare const insertMediaOrderSchema: z.ZodObject<Omit<{
|
|
|
35904
36828
|
sentAt?: Date | null | undefined;
|
|
35905
36829
|
activatedAt?: Date | null | undefined;
|
|
35906
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;
|
|
35907
36833
|
slaHold?: boolean | null | undefined;
|
|
35908
36834
|
clientTier?: string | null | undefined;
|
|
35909
36835
|
xlsxStorageKey?: string | null | undefined;
|
|
@@ -35916,14 +36842,13 @@ export declare const insertMediaOrderSchema: z.ZodObject<Omit<{
|
|
|
35916
36842
|
defaultRunDateStart?: string | null | undefined;
|
|
35917
36843
|
defaultRunDateEnd?: string | null | undefined;
|
|
35918
36844
|
orderNotes?: string | null | undefined;
|
|
35919
|
-
initiativeCode?: string | null | undefined;
|
|
35920
36845
|
navigaAdvertiserId?: string | null | undefined;
|
|
35921
36846
|
purchaseOrderNumber?: string | null | undefined;
|
|
35922
36847
|
billToName?: string | null | undefined;
|
|
35923
36848
|
billToEmail?: string | null | undefined;
|
|
35924
36849
|
vendorAssignedAt?: Date | null | undefined;
|
|
35925
36850
|
vendorAssignedBy?: string | null | undefined;
|
|
35926
|
-
vendorFulfillmentStatus?: "
|
|
36851
|
+
vendorFulfillmentStatus?: "completed" | "assigned" | "in_progress" | "issue" | null | undefined;
|
|
35927
36852
|
vendorFulfillmentNotes?: string | null | undefined;
|
|
35928
36853
|
vendorFulfillmentCompletedAt?: Date | null | undefined;
|
|
35929
36854
|
vendorFulfillmentCompletedBy?: string | null | undefined;
|
|
@@ -35977,6 +36902,7 @@ export declare const updateMediaOrderSchema: z.ZodObject<{
|
|
|
35977
36902
|
configurationId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
35978
36903
|
optionId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
35979
36904
|
parentHubspotCompanyId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
36905
|
+
initiativeCode: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
35980
36906
|
clientContactName: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
35981
36907
|
clientContactEmail: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
35982
36908
|
orderDate: z.ZodOptional<z.ZodString>;
|
|
@@ -35990,6 +36916,8 @@ export declare const updateMediaOrderSchema: z.ZodObject<{
|
|
|
35990
36916
|
sentAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDate>>>;
|
|
35991
36917
|
activatedAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDate>>>;
|
|
35992
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>>>;
|
|
35993
36921
|
slaHold: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>>;
|
|
35994
36922
|
clientTier: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
35995
36923
|
xlsxStorageKey: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
@@ -36002,7 +36930,6 @@ export declare const updateMediaOrderSchema: z.ZodObject<{
|
|
|
36002
36930
|
defaultRunDateStart: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
36003
36931
|
defaultRunDateEnd: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
36004
36932
|
orderNotes: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
36005
|
-
initiativeCode: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
36006
36933
|
navigaAdvertiserId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
36007
36934
|
purchaseOrderNumber: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
36008
36935
|
billToName: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
@@ -36040,7 +36967,7 @@ export declare const updateMediaOrderSchema: z.ZodObject<{
|
|
|
36040
36967
|
earlyStartZone: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
36041
36968
|
earlyStartReason: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
36042
36969
|
}, "strip", z.ZodTypeAny, {
|
|
36043
|
-
status?: "
|
|
36970
|
+
status?: "approved" | "completed" | "active" | "draft" | "pending_approval" | "sent" | undefined;
|
|
36044
36971
|
hubspotCompanyId?: string | null | undefined;
|
|
36045
36972
|
partnerId?: string | null | undefined;
|
|
36046
36973
|
hubspotDealId?: string | null | undefined;
|
|
@@ -36066,6 +36993,7 @@ export declare const updateMediaOrderSchema: z.ZodObject<{
|
|
|
36066
36993
|
configurationId?: string | null | undefined;
|
|
36067
36994
|
optionId?: string | null | undefined;
|
|
36068
36995
|
parentHubspotCompanyId?: string | null | undefined;
|
|
36996
|
+
initiativeCode?: string | null | undefined;
|
|
36069
36997
|
clientContactName?: string | null | undefined;
|
|
36070
36998
|
clientContactEmail?: string | null | undefined;
|
|
36071
36999
|
orderDate?: string | undefined;
|
|
@@ -36079,6 +37007,8 @@ export declare const updateMediaOrderSchema: z.ZodObject<{
|
|
|
36079
37007
|
sentAt?: Date | null | undefined;
|
|
36080
37008
|
activatedAt?: Date | null | undefined;
|
|
36081
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;
|
|
36082
37012
|
slaHold?: boolean | null | undefined;
|
|
36083
37013
|
clientTier?: string | null | undefined;
|
|
36084
37014
|
xlsxStorageKey?: string | null | undefined;
|
|
@@ -36091,14 +37021,13 @@ export declare const updateMediaOrderSchema: z.ZodObject<{
|
|
|
36091
37021
|
defaultRunDateStart?: string | null | undefined;
|
|
36092
37022
|
defaultRunDateEnd?: string | null | undefined;
|
|
36093
37023
|
orderNotes?: string | null | undefined;
|
|
36094
|
-
initiativeCode?: string | null | undefined;
|
|
36095
37024
|
navigaAdvertiserId?: string | null | undefined;
|
|
36096
37025
|
purchaseOrderNumber?: string | null | undefined;
|
|
36097
37026
|
billToName?: string | null | undefined;
|
|
36098
37027
|
billToEmail?: string | null | undefined;
|
|
36099
37028
|
vendorAssignedAt?: Date | null | undefined;
|
|
36100
37029
|
vendorAssignedBy?: string | null | undefined;
|
|
36101
|
-
vendorFulfillmentStatus?: "
|
|
37030
|
+
vendorFulfillmentStatus?: "completed" | "assigned" | "in_progress" | "issue" | null | undefined;
|
|
36102
37031
|
vendorFulfillmentNotes?: string | null | undefined;
|
|
36103
37032
|
vendorFulfillmentCompletedAt?: Date | null | undefined;
|
|
36104
37033
|
vendorFulfillmentCompletedBy?: string | null | undefined;
|
|
@@ -36125,7 +37054,7 @@ export declare const updateMediaOrderSchema: z.ZodObject<{
|
|
|
36125
37054
|
earlyStartZone?: string | null | undefined;
|
|
36126
37055
|
earlyStartReason?: string | null | undefined;
|
|
36127
37056
|
}, {
|
|
36128
|
-
status?: "
|
|
37057
|
+
status?: "approved" | "completed" | "active" | "draft" | "pending_approval" | "sent" | undefined;
|
|
36129
37058
|
hubspotCompanyId?: string | null | undefined;
|
|
36130
37059
|
partnerId?: string | null | undefined;
|
|
36131
37060
|
hubspotDealId?: string | null | undefined;
|
|
@@ -36151,6 +37080,7 @@ export declare const updateMediaOrderSchema: z.ZodObject<{
|
|
|
36151
37080
|
configurationId?: string | null | undefined;
|
|
36152
37081
|
optionId?: string | null | undefined;
|
|
36153
37082
|
parentHubspotCompanyId?: string | null | undefined;
|
|
37083
|
+
initiativeCode?: string | null | undefined;
|
|
36154
37084
|
clientContactName?: string | null | undefined;
|
|
36155
37085
|
clientContactEmail?: string | null | undefined;
|
|
36156
37086
|
orderDate?: string | undefined;
|
|
@@ -36164,6 +37094,8 @@ export declare const updateMediaOrderSchema: z.ZodObject<{
|
|
|
36164
37094
|
sentAt?: Date | null | undefined;
|
|
36165
37095
|
activatedAt?: Date | null | undefined;
|
|
36166
37096
|
returnReason?: string | null | undefined;
|
|
37097
|
+
amendmentReason?: "other" | "budget_adjustment" | "flight_date_change" | "product_swap" | "add_line_items" | "remove_line_items" | "rate_renegotiation" | "client_request" | null | undefined;
|
|
37098
|
+
amendmentNotes?: string | null | undefined;
|
|
36167
37099
|
slaHold?: boolean | null | undefined;
|
|
36168
37100
|
clientTier?: string | null | undefined;
|
|
36169
37101
|
xlsxStorageKey?: string | null | undefined;
|
|
@@ -36176,14 +37108,13 @@ export declare const updateMediaOrderSchema: z.ZodObject<{
|
|
|
36176
37108
|
defaultRunDateStart?: string | null | undefined;
|
|
36177
37109
|
defaultRunDateEnd?: string | null | undefined;
|
|
36178
37110
|
orderNotes?: string | null | undefined;
|
|
36179
|
-
initiativeCode?: string | null | undefined;
|
|
36180
37111
|
navigaAdvertiserId?: string | null | undefined;
|
|
36181
37112
|
purchaseOrderNumber?: string | null | undefined;
|
|
36182
37113
|
billToName?: string | null | undefined;
|
|
36183
37114
|
billToEmail?: string | null | undefined;
|
|
36184
37115
|
vendorAssignedAt?: Date | null | undefined;
|
|
36185
37116
|
vendorAssignedBy?: string | null | undefined;
|
|
36186
|
-
vendorFulfillmentStatus?: "
|
|
37117
|
+
vendorFulfillmentStatus?: "completed" | "assigned" | "in_progress" | "issue" | null | undefined;
|
|
36187
37118
|
vendorFulfillmentNotes?: string | null | undefined;
|
|
36188
37119
|
vendorFulfillmentCompletedAt?: Date | null | undefined;
|
|
36189
37120
|
vendorFulfillmentCompletedBy?: string | null | undefined;
|
|
@@ -37271,6 +38202,25 @@ export declare const mediaOrderLineItems: import("drizzle-orm/pg-core").PgTableW
|
|
|
37271
38202
|
}, {}, {
|
|
37272
38203
|
length: number | undefined;
|
|
37273
38204
|
}>;
|
|
38205
|
+
initiativeCode: import("drizzle-orm/pg-core").PgColumn<{
|
|
38206
|
+
name: "initiative_code";
|
|
38207
|
+
tableName: "media_order_line_items";
|
|
38208
|
+
dataType: "string";
|
|
38209
|
+
columnType: "PgVarchar";
|
|
38210
|
+
data: string;
|
|
38211
|
+
driverParam: string;
|
|
38212
|
+
notNull: false;
|
|
38213
|
+
hasDefault: false;
|
|
38214
|
+
isPrimaryKey: false;
|
|
38215
|
+
isAutoincrement: false;
|
|
38216
|
+
hasRuntimeDefault: false;
|
|
38217
|
+
enumValues: [string, ...string[]];
|
|
38218
|
+
baseColumn: never;
|
|
38219
|
+
identity: undefined;
|
|
38220
|
+
generated: undefined;
|
|
38221
|
+
}, {}, {
|
|
38222
|
+
length: number | undefined;
|
|
38223
|
+
}>;
|
|
37274
38224
|
trafficKey: import("drizzle-orm/pg-core").PgColumn<{
|
|
37275
38225
|
name: "traffic_key";
|
|
37276
38226
|
tableName: "media_order_line_items";
|
|
@@ -37422,6 +38372,7 @@ export declare const insertMediaOrderLineItemSchema: z.ZodObject<Omit<{
|
|
|
37422
38372
|
simplifiCampaignId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37423
38373
|
fulfillmentDetails: z.ZodOptional<z.ZodNullable<z.ZodType<import("drizzle-zod").Json, z.ZodTypeDef, import("drizzle-zod").Json>>>;
|
|
37424
38374
|
creativeSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38375
|
+
initiativeCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37425
38376
|
trafficKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37426
38377
|
trackingKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37427
38378
|
trackingDetails: z.ZodOptional<z.ZodNullable<z.ZodType<{
|
|
@@ -37450,6 +38401,7 @@ export declare const insertMediaOrderLineItemSchema: z.ZodObject<Omit<{
|
|
|
37450
38401
|
displayOrder?: number | undefined;
|
|
37451
38402
|
location?: string | null | undefined;
|
|
37452
38403
|
managementFeePercent?: number | null | undefined;
|
|
38404
|
+
initiativeCode?: string | null | undefined;
|
|
37453
38405
|
lastSyncedAt?: Date | null | undefined;
|
|
37454
38406
|
promoting?: string | null | undefined;
|
|
37455
38407
|
targeting?: string | null | undefined;
|
|
@@ -37505,6 +38457,7 @@ export declare const insertMediaOrderLineItemSchema: z.ZodObject<Omit<{
|
|
|
37505
38457
|
displayOrder?: number | undefined;
|
|
37506
38458
|
location?: string | null | undefined;
|
|
37507
38459
|
managementFeePercent?: number | null | undefined;
|
|
38460
|
+
initiativeCode?: string | null | undefined;
|
|
37508
38461
|
lastSyncedAt?: Date | null | undefined;
|
|
37509
38462
|
promoting?: string | null | undefined;
|
|
37510
38463
|
targeting?: string | null | undefined;
|
|
@@ -37559,6 +38512,7 @@ export declare const updateMediaOrderLineItemSchema: z.ZodObject<{
|
|
|
37559
38512
|
displayOrder: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
37560
38513
|
location: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
37561
38514
|
managementFeePercent: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
38515
|
+
initiativeCode: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
37562
38516
|
lastSyncedAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDate>>>;
|
|
37563
38517
|
sectionId: z.ZodOptional<z.ZodString>;
|
|
37564
38518
|
placement: z.ZodOptional<z.ZodString>;
|
|
@@ -37622,6 +38576,7 @@ export declare const updateMediaOrderLineItemSchema: z.ZodObject<{
|
|
|
37622
38576
|
displayOrder?: number | undefined;
|
|
37623
38577
|
location?: string | null | undefined;
|
|
37624
38578
|
managementFeePercent?: number | null | undefined;
|
|
38579
|
+
initiativeCode?: string | null | undefined;
|
|
37625
38580
|
lastSyncedAt?: Date | null | undefined;
|
|
37626
38581
|
sectionId?: string | undefined;
|
|
37627
38582
|
placement?: string | undefined;
|
|
@@ -37677,6 +38632,7 @@ export declare const updateMediaOrderLineItemSchema: z.ZodObject<{
|
|
|
37677
38632
|
displayOrder?: number | undefined;
|
|
37678
38633
|
location?: string | null | undefined;
|
|
37679
38634
|
managementFeePercent?: number | null | undefined;
|
|
38635
|
+
initiativeCode?: string | null | undefined;
|
|
37680
38636
|
lastSyncedAt?: Date | null | undefined;
|
|
37681
38637
|
sectionId?: string | undefined;
|
|
37682
38638
|
placement?: string | undefined;
|
|
@@ -39906,6 +40862,118 @@ export declare const updateStribProductSchema: z.ZodObject<{
|
|
|
39906
40862
|
}>;
|
|
39907
40863
|
export type StribProduct = typeof stribProducts.$inferSelect;
|
|
39908
40864
|
export type InsertStribProduct = z.infer<typeof insertStribProductSchema>;
|
|
40865
|
+
export declare const salesInitiativeProducts: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
40866
|
+
name: "sales_initiative_products";
|
|
40867
|
+
schema: undefined;
|
|
40868
|
+
columns: {
|
|
40869
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
40870
|
+
name: "id";
|
|
40871
|
+
tableName: "sales_initiative_products";
|
|
40872
|
+
dataType: "string";
|
|
40873
|
+
columnType: "PgUUID";
|
|
40874
|
+
data: string;
|
|
40875
|
+
driverParam: string;
|
|
40876
|
+
notNull: true;
|
|
40877
|
+
hasDefault: true;
|
|
40878
|
+
isPrimaryKey: true;
|
|
40879
|
+
isAutoincrement: false;
|
|
40880
|
+
hasRuntimeDefault: false;
|
|
40881
|
+
enumValues: undefined;
|
|
40882
|
+
baseColumn: never;
|
|
40883
|
+
identity: undefined;
|
|
40884
|
+
generated: undefined;
|
|
40885
|
+
}, {}, {}>;
|
|
40886
|
+
initiativeCode: import("drizzle-orm/pg-core").PgColumn<{
|
|
40887
|
+
name: "initiative_code";
|
|
40888
|
+
tableName: "sales_initiative_products";
|
|
40889
|
+
dataType: "string";
|
|
40890
|
+
columnType: "PgVarchar";
|
|
40891
|
+
data: string;
|
|
40892
|
+
driverParam: string;
|
|
40893
|
+
notNull: true;
|
|
40894
|
+
hasDefault: false;
|
|
40895
|
+
isPrimaryKey: false;
|
|
40896
|
+
isAutoincrement: false;
|
|
40897
|
+
hasRuntimeDefault: false;
|
|
40898
|
+
enumValues: [string, ...string[]];
|
|
40899
|
+
baseColumn: never;
|
|
40900
|
+
identity: undefined;
|
|
40901
|
+
generated: undefined;
|
|
40902
|
+
}, {}, {
|
|
40903
|
+
length: number | undefined;
|
|
40904
|
+
}>;
|
|
40905
|
+
stribProductId: import("drizzle-orm/pg-core").PgColumn<{
|
|
40906
|
+
name: "strib_product_id";
|
|
40907
|
+
tableName: "sales_initiative_products";
|
|
40908
|
+
dataType: "string";
|
|
40909
|
+
columnType: "PgUUID";
|
|
40910
|
+
data: string;
|
|
40911
|
+
driverParam: string;
|
|
40912
|
+
notNull: true;
|
|
40913
|
+
hasDefault: false;
|
|
40914
|
+
isPrimaryKey: false;
|
|
40915
|
+
isAutoincrement: false;
|
|
40916
|
+
hasRuntimeDefault: false;
|
|
40917
|
+
enumValues: undefined;
|
|
40918
|
+
baseColumn: never;
|
|
40919
|
+
identity: undefined;
|
|
40920
|
+
generated: undefined;
|
|
40921
|
+
}, {}, {}>;
|
|
40922
|
+
displayOrder: import("drizzle-orm/pg-core").PgColumn<{
|
|
40923
|
+
name: "display_order";
|
|
40924
|
+
tableName: "sales_initiative_products";
|
|
40925
|
+
dataType: "number";
|
|
40926
|
+
columnType: "PgInteger";
|
|
40927
|
+
data: number;
|
|
40928
|
+
driverParam: string | number;
|
|
40929
|
+
notNull: true;
|
|
40930
|
+
hasDefault: true;
|
|
40931
|
+
isPrimaryKey: false;
|
|
40932
|
+
isAutoincrement: false;
|
|
40933
|
+
hasRuntimeDefault: false;
|
|
40934
|
+
enumValues: undefined;
|
|
40935
|
+
baseColumn: never;
|
|
40936
|
+
identity: undefined;
|
|
40937
|
+
generated: undefined;
|
|
40938
|
+
}, {}, {}>;
|
|
40939
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
40940
|
+
name: "created_at";
|
|
40941
|
+
tableName: "sales_initiative_products";
|
|
40942
|
+
dataType: "date";
|
|
40943
|
+
columnType: "PgTimestamp";
|
|
40944
|
+
data: Date;
|
|
40945
|
+
driverParam: string;
|
|
40946
|
+
notNull: true;
|
|
40947
|
+
hasDefault: true;
|
|
40948
|
+
isPrimaryKey: false;
|
|
40949
|
+
isAutoincrement: false;
|
|
40950
|
+
hasRuntimeDefault: false;
|
|
40951
|
+
enumValues: undefined;
|
|
40952
|
+
baseColumn: never;
|
|
40953
|
+
identity: undefined;
|
|
40954
|
+
generated: undefined;
|
|
40955
|
+
}, {}, {}>;
|
|
40956
|
+
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
40957
|
+
name: "updated_at";
|
|
40958
|
+
tableName: "sales_initiative_products";
|
|
40959
|
+
dataType: "date";
|
|
40960
|
+
columnType: "PgTimestamp";
|
|
40961
|
+
data: Date;
|
|
40962
|
+
driverParam: string;
|
|
40963
|
+
notNull: true;
|
|
40964
|
+
hasDefault: true;
|
|
40965
|
+
isPrimaryKey: false;
|
|
40966
|
+
isAutoincrement: false;
|
|
40967
|
+
hasRuntimeDefault: false;
|
|
40968
|
+
enumValues: undefined;
|
|
40969
|
+
baseColumn: never;
|
|
40970
|
+
identity: undefined;
|
|
40971
|
+
generated: undefined;
|
|
40972
|
+
}, {}, {}>;
|
|
40973
|
+
};
|
|
40974
|
+
dialect: "pg";
|
|
40975
|
+
}>;
|
|
40976
|
+
export type SalesInitiativeProduct = typeof salesInitiativeProducts.$inferSelect;
|
|
39909
40977
|
/**
|
|
39910
40978
|
* strib_product_rates — tier-based pricing per product.
|
|
39911
40979
|
* Different tiers depending on family: Digital uses open/advocacy/tier_1/tier_2/tier_3;
|
|
@@ -42540,6 +43608,23 @@ export declare const rateExceptionRequests: import("drizzle-orm/pg-core").PgTabl
|
|
|
42540
43608
|
}, {}, {
|
|
42541
43609
|
length: number | undefined;
|
|
42542
43610
|
}>;
|
|
43611
|
+
batchId: import("drizzle-orm/pg-core").PgColumn<{
|
|
43612
|
+
name: "batch_id";
|
|
43613
|
+
tableName: "rate_exception_requests";
|
|
43614
|
+
dataType: "string";
|
|
43615
|
+
columnType: "PgUUID";
|
|
43616
|
+
data: string;
|
|
43617
|
+
driverParam: string;
|
|
43618
|
+
notNull: false;
|
|
43619
|
+
hasDefault: false;
|
|
43620
|
+
isPrimaryKey: false;
|
|
43621
|
+
isAutoincrement: false;
|
|
43622
|
+
hasRuntimeDefault: false;
|
|
43623
|
+
enumValues: undefined;
|
|
43624
|
+
baseColumn: never;
|
|
43625
|
+
identity: undefined;
|
|
43626
|
+
generated: undefined;
|
|
43627
|
+
}, {}, {}>;
|
|
42543
43628
|
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
42544
43629
|
name: "created_at";
|
|
42545
43630
|
tableName: "rate_exception_requests";
|
|
@@ -43018,6 +44103,225 @@ export declare const slaConfig: import("drizzle-orm/pg-core").PgTableWithColumns
|
|
|
43018
44103
|
}>;
|
|
43019
44104
|
export type SlaConfig = typeof slaConfig.$inferSelect;
|
|
43020
44105
|
export type InsertSlaConfig = typeof slaConfig.$inferInsert;
|
|
44106
|
+
/**
|
|
44107
|
+
* sla_snapshots — Point-in-time SLA state from fn-flux evaluations.
|
|
44108
|
+
* Each row captures the hold status, deadline, milestones, and profile
|
|
44109
|
+
* for a given media order + fulfillment ticket pair.
|
|
44110
|
+
*/
|
|
44111
|
+
export declare const slaHoldStatusEnum: import("drizzle-orm/pg-core").PgEnum<["clear", "hold", "override"]>;
|
|
44112
|
+
export declare const slaSnapshots: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
44113
|
+
name: "sla_snapshots";
|
|
44114
|
+
schema: undefined;
|
|
44115
|
+
columns: {
|
|
44116
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
44117
|
+
name: "id";
|
|
44118
|
+
tableName: "sla_snapshots";
|
|
44119
|
+
dataType: "number";
|
|
44120
|
+
columnType: "PgSerial";
|
|
44121
|
+
data: number;
|
|
44122
|
+
driverParam: number;
|
|
44123
|
+
notNull: true;
|
|
44124
|
+
hasDefault: true;
|
|
44125
|
+
isPrimaryKey: true;
|
|
44126
|
+
isAutoincrement: false;
|
|
44127
|
+
hasRuntimeDefault: false;
|
|
44128
|
+
enumValues: undefined;
|
|
44129
|
+
baseColumn: never;
|
|
44130
|
+
identity: undefined;
|
|
44131
|
+
generated: undefined;
|
|
44132
|
+
}, {}, {}>;
|
|
44133
|
+
mediaOrderId: import("drizzle-orm/pg-core").PgColumn<{
|
|
44134
|
+
name: "media_order_id";
|
|
44135
|
+
tableName: "sla_snapshots";
|
|
44136
|
+
dataType: "string";
|
|
44137
|
+
columnType: "PgText";
|
|
44138
|
+
data: string;
|
|
44139
|
+
driverParam: string;
|
|
44140
|
+
notNull: true;
|
|
44141
|
+
hasDefault: false;
|
|
44142
|
+
isPrimaryKey: false;
|
|
44143
|
+
isAutoincrement: false;
|
|
44144
|
+
hasRuntimeDefault: false;
|
|
44145
|
+
enumValues: [string, ...string[]];
|
|
44146
|
+
baseColumn: never;
|
|
44147
|
+
identity: undefined;
|
|
44148
|
+
generated: undefined;
|
|
44149
|
+
}, {}, {}>;
|
|
44150
|
+
ticketId: import("drizzle-orm/pg-core").PgColumn<{
|
|
44151
|
+
name: "ticket_id";
|
|
44152
|
+
tableName: "sla_snapshots";
|
|
44153
|
+
dataType: "string";
|
|
44154
|
+
columnType: "PgText";
|
|
44155
|
+
data: string;
|
|
44156
|
+
driverParam: string;
|
|
44157
|
+
notNull: true;
|
|
44158
|
+
hasDefault: false;
|
|
44159
|
+
isPrimaryKey: false;
|
|
44160
|
+
isAutoincrement: false;
|
|
44161
|
+
hasRuntimeDefault: false;
|
|
44162
|
+
enumValues: [string, ...string[]];
|
|
44163
|
+
baseColumn: never;
|
|
44164
|
+
identity: undefined;
|
|
44165
|
+
generated: undefined;
|
|
44166
|
+
}, {}, {}>;
|
|
44167
|
+
holdStatus: import("drizzle-orm/pg-core").PgColumn<{
|
|
44168
|
+
name: "hold_status";
|
|
44169
|
+
tableName: "sla_snapshots";
|
|
44170
|
+
dataType: "string";
|
|
44171
|
+
columnType: "PgEnumColumn";
|
|
44172
|
+
data: "clear" | "override" | "hold";
|
|
44173
|
+
driverParam: string;
|
|
44174
|
+
notNull: true;
|
|
44175
|
+
hasDefault: true;
|
|
44176
|
+
isPrimaryKey: false;
|
|
44177
|
+
isAutoincrement: false;
|
|
44178
|
+
hasRuntimeDefault: false;
|
|
44179
|
+
enumValues: ["clear", "hold", "override"];
|
|
44180
|
+
baseColumn: never;
|
|
44181
|
+
identity: undefined;
|
|
44182
|
+
generated: undefined;
|
|
44183
|
+
}, {}, {}>;
|
|
44184
|
+
holdReason: import("drizzle-orm/pg-core").PgColumn<{
|
|
44185
|
+
name: "hold_reason";
|
|
44186
|
+
tableName: "sla_snapshots";
|
|
44187
|
+
dataType: "string";
|
|
44188
|
+
columnType: "PgText";
|
|
44189
|
+
data: string;
|
|
44190
|
+
driverParam: string;
|
|
44191
|
+
notNull: false;
|
|
44192
|
+
hasDefault: false;
|
|
44193
|
+
isPrimaryKey: false;
|
|
44194
|
+
isAutoincrement: false;
|
|
44195
|
+
hasRuntimeDefault: false;
|
|
44196
|
+
enumValues: [string, ...string[]];
|
|
44197
|
+
baseColumn: never;
|
|
44198
|
+
identity: undefined;
|
|
44199
|
+
generated: undefined;
|
|
44200
|
+
}, {}, {}>;
|
|
44201
|
+
slaDays: import("drizzle-orm/pg-core").PgColumn<{
|
|
44202
|
+
name: "sla_days";
|
|
44203
|
+
tableName: "sla_snapshots";
|
|
44204
|
+
dataType: "number";
|
|
44205
|
+
columnType: "PgInteger";
|
|
44206
|
+
data: number;
|
|
44207
|
+
driverParam: string | number;
|
|
44208
|
+
notNull: true;
|
|
44209
|
+
hasDefault: false;
|
|
44210
|
+
isPrimaryKey: false;
|
|
44211
|
+
isAutoincrement: false;
|
|
44212
|
+
hasRuntimeDefault: false;
|
|
44213
|
+
enumValues: undefined;
|
|
44214
|
+
baseColumn: never;
|
|
44215
|
+
identity: undefined;
|
|
44216
|
+
generated: undefined;
|
|
44217
|
+
}, {}, {}>;
|
|
44218
|
+
availableDays: import("drizzle-orm/pg-core").PgColumn<{
|
|
44219
|
+
name: "available_days";
|
|
44220
|
+
tableName: "sla_snapshots";
|
|
44221
|
+
dataType: "string";
|
|
44222
|
+
columnType: "PgNumeric";
|
|
44223
|
+
data: string;
|
|
44224
|
+
driverParam: string;
|
|
44225
|
+
notNull: false;
|
|
44226
|
+
hasDefault: false;
|
|
44227
|
+
isPrimaryKey: false;
|
|
44228
|
+
isAutoincrement: false;
|
|
44229
|
+
hasRuntimeDefault: false;
|
|
44230
|
+
enumValues: undefined;
|
|
44231
|
+
baseColumn: never;
|
|
44232
|
+
identity: undefined;
|
|
44233
|
+
generated: undefined;
|
|
44234
|
+
}, {}, {}>;
|
|
44235
|
+
slaDeadline: import("drizzle-orm/pg-core").PgColumn<{
|
|
44236
|
+
name: "sla_deadline";
|
|
44237
|
+
tableName: "sla_snapshots";
|
|
44238
|
+
dataType: "date";
|
|
44239
|
+
columnType: "PgTimestamp";
|
|
44240
|
+
data: Date;
|
|
44241
|
+
driverParam: string;
|
|
44242
|
+
notNull: false;
|
|
44243
|
+
hasDefault: false;
|
|
44244
|
+
isPrimaryKey: false;
|
|
44245
|
+
isAutoincrement: false;
|
|
44246
|
+
hasRuntimeDefault: false;
|
|
44247
|
+
enumValues: undefined;
|
|
44248
|
+
baseColumn: never;
|
|
44249
|
+
identity: undefined;
|
|
44250
|
+
generated: undefined;
|
|
44251
|
+
}, {}, {}>;
|
|
44252
|
+
campaignStartDate: import("drizzle-orm/pg-core").PgColumn<{
|
|
44253
|
+
name: "campaign_start_date";
|
|
44254
|
+
tableName: "sla_snapshots";
|
|
44255
|
+
dataType: "string";
|
|
44256
|
+
columnType: "PgDateString";
|
|
44257
|
+
data: string;
|
|
44258
|
+
driverParam: string;
|
|
44259
|
+
notNull: false;
|
|
44260
|
+
hasDefault: false;
|
|
44261
|
+
isPrimaryKey: false;
|
|
44262
|
+
isAutoincrement: false;
|
|
44263
|
+
hasRuntimeDefault: false;
|
|
44264
|
+
enumValues: undefined;
|
|
44265
|
+
baseColumn: never;
|
|
44266
|
+
identity: undefined;
|
|
44267
|
+
generated: undefined;
|
|
44268
|
+
}, {}, {}>;
|
|
44269
|
+
milestones: import("drizzle-orm/pg-core").PgColumn<{
|
|
44270
|
+
name: "milestones";
|
|
44271
|
+
tableName: "sla_snapshots";
|
|
44272
|
+
dataType: "json";
|
|
44273
|
+
columnType: "PgJsonb";
|
|
44274
|
+
data: unknown;
|
|
44275
|
+
driverParam: unknown;
|
|
44276
|
+
notNull: false;
|
|
44277
|
+
hasDefault: false;
|
|
44278
|
+
isPrimaryKey: false;
|
|
44279
|
+
isAutoincrement: false;
|
|
44280
|
+
hasRuntimeDefault: false;
|
|
44281
|
+
enumValues: undefined;
|
|
44282
|
+
baseColumn: never;
|
|
44283
|
+
identity: undefined;
|
|
44284
|
+
generated: undefined;
|
|
44285
|
+
}, {}, {}>;
|
|
44286
|
+
profileName: import("drizzle-orm/pg-core").PgColumn<{
|
|
44287
|
+
name: "profile_name";
|
|
44288
|
+
tableName: "sla_snapshots";
|
|
44289
|
+
dataType: "string";
|
|
44290
|
+
columnType: "PgText";
|
|
44291
|
+
data: string;
|
|
44292
|
+
driverParam: string;
|
|
44293
|
+
notNull: false;
|
|
44294
|
+
hasDefault: false;
|
|
44295
|
+
isPrimaryKey: false;
|
|
44296
|
+
isAutoincrement: false;
|
|
44297
|
+
hasRuntimeDefault: false;
|
|
44298
|
+
enumValues: [string, ...string[]];
|
|
44299
|
+
baseColumn: never;
|
|
44300
|
+
identity: undefined;
|
|
44301
|
+
generated: undefined;
|
|
44302
|
+
}, {}, {}>;
|
|
44303
|
+
lastUpdatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
44304
|
+
name: "last_updated_at";
|
|
44305
|
+
tableName: "sla_snapshots";
|
|
44306
|
+
dataType: "date";
|
|
44307
|
+
columnType: "PgTimestamp";
|
|
44308
|
+
data: Date;
|
|
44309
|
+
driverParam: string;
|
|
44310
|
+
notNull: false;
|
|
44311
|
+
hasDefault: true;
|
|
44312
|
+
isPrimaryKey: false;
|
|
44313
|
+
isAutoincrement: false;
|
|
44314
|
+
hasRuntimeDefault: false;
|
|
44315
|
+
enumValues: undefined;
|
|
44316
|
+
baseColumn: never;
|
|
44317
|
+
identity: undefined;
|
|
44318
|
+
generated: undefined;
|
|
44319
|
+
}, {}, {}>;
|
|
44320
|
+
};
|
|
44321
|
+
dialect: "pg";
|
|
44322
|
+
}>;
|
|
44323
|
+
export type SlaSnapshot = typeof slaSnapshots.$inferSelect;
|
|
44324
|
+
export type InsertSlaSnapshot = typeof slaSnapshots.$inferInsert;
|
|
43021
44325
|
/**
|
|
43022
44326
|
* inventory_sync_log — Audit trail for external inventory syncs (GAM, Sailthru, Naviga).
|
|
43023
44327
|
* Tracks when syncs run, how many products were synced, and any errors.
|
|
@@ -44920,7 +46224,7 @@ export declare const hubspotSyncLedger: import("drizzle-orm/pg-core").PgTableWit
|
|
|
44920
46224
|
tableName: "hubspot_sync_ledger";
|
|
44921
46225
|
dataType: "string";
|
|
44922
46226
|
columnType: "PgEnumColumn";
|
|
44923
|
-
data: "
|
|
46227
|
+
data: "success" | "pending" | "failure" | "conflict";
|
|
44924
46228
|
driverParam: string;
|
|
44925
46229
|
notNull: true;
|
|
44926
46230
|
hasDefault: true;
|
|
@@ -62823,7 +64127,7 @@ export declare const semCampaigns: import("drizzle-orm/pg-core").PgTableWithColu
|
|
|
62823
64127
|
tableName: "sem_campaigns";
|
|
62824
64128
|
dataType: "string";
|
|
62825
64129
|
columnType: "PgEnumColumn";
|
|
62826
|
-
data: "
|
|
64130
|
+
data: "completed" | "running" | "pending" | "failed";
|
|
62827
64131
|
driverParam: string;
|
|
62828
64132
|
notNull: true;
|
|
62829
64133
|
hasDefault: true;
|
|
@@ -63324,4 +64628,692 @@ export declare const creativeDeliveries: import("drizzle-orm/pg-core").PgTableWi
|
|
|
63324
64628
|
};
|
|
63325
64629
|
dialect: "pg";
|
|
63326
64630
|
}>;
|
|
64631
|
+
export declare const orderActivityFeed: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
64632
|
+
name: "order_activity_feed";
|
|
64633
|
+
schema: undefined;
|
|
64634
|
+
columns: {
|
|
64635
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
64636
|
+
name: "id";
|
|
64637
|
+
tableName: "order_activity_feed";
|
|
64638
|
+
dataType: "string";
|
|
64639
|
+
columnType: "PgUUID";
|
|
64640
|
+
data: string;
|
|
64641
|
+
driverParam: string;
|
|
64642
|
+
notNull: true;
|
|
64643
|
+
hasDefault: true;
|
|
64644
|
+
isPrimaryKey: true;
|
|
64645
|
+
isAutoincrement: false;
|
|
64646
|
+
hasRuntimeDefault: false;
|
|
64647
|
+
enumValues: undefined;
|
|
64648
|
+
baseColumn: never;
|
|
64649
|
+
identity: undefined;
|
|
64650
|
+
generated: undefined;
|
|
64651
|
+
}, {}, {}>;
|
|
64652
|
+
mediaOrderId: import("drizzle-orm/pg-core").PgColumn<{
|
|
64653
|
+
name: "media_order_id";
|
|
64654
|
+
tableName: "order_activity_feed";
|
|
64655
|
+
dataType: "string";
|
|
64656
|
+
columnType: "PgVarchar";
|
|
64657
|
+
data: string;
|
|
64658
|
+
driverParam: string;
|
|
64659
|
+
notNull: true;
|
|
64660
|
+
hasDefault: false;
|
|
64661
|
+
isPrimaryKey: false;
|
|
64662
|
+
isAutoincrement: false;
|
|
64663
|
+
hasRuntimeDefault: false;
|
|
64664
|
+
enumValues: [string, ...string[]];
|
|
64665
|
+
baseColumn: never;
|
|
64666
|
+
identity: undefined;
|
|
64667
|
+
generated: undefined;
|
|
64668
|
+
}, {}, {
|
|
64669
|
+
length: number | undefined;
|
|
64670
|
+
}>;
|
|
64671
|
+
lineItemId: import("drizzle-orm/pg-core").PgColumn<{
|
|
64672
|
+
name: "line_item_id";
|
|
64673
|
+
tableName: "order_activity_feed";
|
|
64674
|
+
dataType: "string";
|
|
64675
|
+
columnType: "PgVarchar";
|
|
64676
|
+
data: string;
|
|
64677
|
+
driverParam: string;
|
|
64678
|
+
notNull: false;
|
|
64679
|
+
hasDefault: false;
|
|
64680
|
+
isPrimaryKey: false;
|
|
64681
|
+
isAutoincrement: false;
|
|
64682
|
+
hasRuntimeDefault: false;
|
|
64683
|
+
enumValues: [string, ...string[]];
|
|
64684
|
+
baseColumn: never;
|
|
64685
|
+
identity: undefined;
|
|
64686
|
+
generated: undefined;
|
|
64687
|
+
}, {}, {
|
|
64688
|
+
length: number | undefined;
|
|
64689
|
+
}>;
|
|
64690
|
+
eventType: import("drizzle-orm/pg-core").PgColumn<{
|
|
64691
|
+
name: "event_type";
|
|
64692
|
+
tableName: "order_activity_feed";
|
|
64693
|
+
dataType: "string";
|
|
64694
|
+
columnType: "PgEnumColumn";
|
|
64695
|
+
data: string;
|
|
64696
|
+
driverParam: string;
|
|
64697
|
+
notNull: true;
|
|
64698
|
+
hasDefault: false;
|
|
64699
|
+
isPrimaryKey: false;
|
|
64700
|
+
isAutoincrement: false;
|
|
64701
|
+
hasRuntimeDefault: false;
|
|
64702
|
+
enumValues: [string, ...string[]];
|
|
64703
|
+
baseColumn: never;
|
|
64704
|
+
identity: undefined;
|
|
64705
|
+
generated: undefined;
|
|
64706
|
+
}, {}, {}>;
|
|
64707
|
+
title: import("drizzle-orm/pg-core").PgColumn<{
|
|
64708
|
+
name: "title";
|
|
64709
|
+
tableName: "order_activity_feed";
|
|
64710
|
+
dataType: "string";
|
|
64711
|
+
columnType: "PgText";
|
|
64712
|
+
data: string;
|
|
64713
|
+
driverParam: string;
|
|
64714
|
+
notNull: true;
|
|
64715
|
+
hasDefault: false;
|
|
64716
|
+
isPrimaryKey: false;
|
|
64717
|
+
isAutoincrement: false;
|
|
64718
|
+
hasRuntimeDefault: false;
|
|
64719
|
+
enumValues: [string, ...string[]];
|
|
64720
|
+
baseColumn: never;
|
|
64721
|
+
identity: undefined;
|
|
64722
|
+
generated: undefined;
|
|
64723
|
+
}, {}, {}>;
|
|
64724
|
+
detail: import("drizzle-orm/pg-core").PgColumn<{
|
|
64725
|
+
name: "detail";
|
|
64726
|
+
tableName: "order_activity_feed";
|
|
64727
|
+
dataType: "string";
|
|
64728
|
+
columnType: "PgText";
|
|
64729
|
+
data: string;
|
|
64730
|
+
driverParam: string;
|
|
64731
|
+
notNull: false;
|
|
64732
|
+
hasDefault: false;
|
|
64733
|
+
isPrimaryKey: false;
|
|
64734
|
+
isAutoincrement: false;
|
|
64735
|
+
hasRuntimeDefault: false;
|
|
64736
|
+
enumValues: [string, ...string[]];
|
|
64737
|
+
baseColumn: never;
|
|
64738
|
+
identity: undefined;
|
|
64739
|
+
generated: undefined;
|
|
64740
|
+
}, {}, {}>;
|
|
64741
|
+
severity: import("drizzle-orm/pg-core").PgColumn<{
|
|
64742
|
+
name: "severity";
|
|
64743
|
+
tableName: "order_activity_feed";
|
|
64744
|
+
dataType: "string";
|
|
64745
|
+
columnType: "PgEnumColumn";
|
|
64746
|
+
data: string;
|
|
64747
|
+
driverParam: string;
|
|
64748
|
+
notNull: true;
|
|
64749
|
+
hasDefault: false;
|
|
64750
|
+
isPrimaryKey: false;
|
|
64751
|
+
isAutoincrement: false;
|
|
64752
|
+
hasRuntimeDefault: false;
|
|
64753
|
+
enumValues: [string, ...string[]];
|
|
64754
|
+
baseColumn: never;
|
|
64755
|
+
identity: undefined;
|
|
64756
|
+
generated: undefined;
|
|
64757
|
+
}, {}, {}>;
|
|
64758
|
+
sourceSystem: import("drizzle-orm/pg-core").PgColumn<{
|
|
64759
|
+
name: "source_system";
|
|
64760
|
+
tableName: "order_activity_feed";
|
|
64761
|
+
dataType: "string";
|
|
64762
|
+
columnType: "PgEnumColumn";
|
|
64763
|
+
data: string;
|
|
64764
|
+
driverParam: string;
|
|
64765
|
+
notNull: true;
|
|
64766
|
+
hasDefault: false;
|
|
64767
|
+
isPrimaryKey: false;
|
|
64768
|
+
isAutoincrement: false;
|
|
64769
|
+
hasRuntimeDefault: false;
|
|
64770
|
+
enumValues: [string, ...string[]];
|
|
64771
|
+
baseColumn: never;
|
|
64772
|
+
identity: undefined;
|
|
64773
|
+
generated: undefined;
|
|
64774
|
+
}, {}, {}>;
|
|
64775
|
+
externalId: import("drizzle-orm/pg-core").PgColumn<{
|
|
64776
|
+
name: "external_id";
|
|
64777
|
+
tableName: "order_activity_feed";
|
|
64778
|
+
dataType: "string";
|
|
64779
|
+
columnType: "PgText";
|
|
64780
|
+
data: string;
|
|
64781
|
+
driverParam: string;
|
|
64782
|
+
notNull: true;
|
|
64783
|
+
hasDefault: false;
|
|
64784
|
+
isPrimaryKey: false;
|
|
64785
|
+
isAutoincrement: false;
|
|
64786
|
+
hasRuntimeDefault: false;
|
|
64787
|
+
enumValues: [string, ...string[]];
|
|
64788
|
+
baseColumn: never;
|
|
64789
|
+
identity: undefined;
|
|
64790
|
+
generated: undefined;
|
|
64791
|
+
}, {}, {}>;
|
|
64792
|
+
status: import("drizzle-orm/pg-core").PgColumn<{
|
|
64793
|
+
name: "status";
|
|
64794
|
+
tableName: "order_activity_feed";
|
|
64795
|
+
dataType: "string";
|
|
64796
|
+
columnType: "PgText";
|
|
64797
|
+
data: string;
|
|
64798
|
+
driverParam: string;
|
|
64799
|
+
notNull: false;
|
|
64800
|
+
hasDefault: false;
|
|
64801
|
+
isPrimaryKey: false;
|
|
64802
|
+
isAutoincrement: false;
|
|
64803
|
+
hasRuntimeDefault: false;
|
|
64804
|
+
enumValues: [string, ...string[]];
|
|
64805
|
+
baseColumn: never;
|
|
64806
|
+
identity: undefined;
|
|
64807
|
+
generated: undefined;
|
|
64808
|
+
}, {}, {}>;
|
|
64809
|
+
occurredAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
64810
|
+
name: "occurred_at";
|
|
64811
|
+
tableName: "order_activity_feed";
|
|
64812
|
+
dataType: "date";
|
|
64813
|
+
columnType: "PgTimestamp";
|
|
64814
|
+
data: Date;
|
|
64815
|
+
driverParam: string;
|
|
64816
|
+
notNull: true;
|
|
64817
|
+
hasDefault: false;
|
|
64818
|
+
isPrimaryKey: false;
|
|
64819
|
+
isAutoincrement: false;
|
|
64820
|
+
hasRuntimeDefault: false;
|
|
64821
|
+
enumValues: undefined;
|
|
64822
|
+
baseColumn: never;
|
|
64823
|
+
identity: undefined;
|
|
64824
|
+
generated: undefined;
|
|
64825
|
+
}, {}, {}>;
|
|
64826
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
64827
|
+
name: "created_at";
|
|
64828
|
+
tableName: "order_activity_feed";
|
|
64829
|
+
dataType: "date";
|
|
64830
|
+
columnType: "PgTimestamp";
|
|
64831
|
+
data: Date;
|
|
64832
|
+
driverParam: string;
|
|
64833
|
+
notNull: true;
|
|
64834
|
+
hasDefault: true;
|
|
64835
|
+
isPrimaryKey: false;
|
|
64836
|
+
isAutoincrement: false;
|
|
64837
|
+
hasRuntimeDefault: false;
|
|
64838
|
+
enumValues: undefined;
|
|
64839
|
+
baseColumn: never;
|
|
64840
|
+
identity: undefined;
|
|
64841
|
+
generated: undefined;
|
|
64842
|
+
}, {}, {}>;
|
|
64843
|
+
metadata: import("drizzle-orm/pg-core").PgColumn<{
|
|
64844
|
+
name: "metadata";
|
|
64845
|
+
tableName: "order_activity_feed";
|
|
64846
|
+
dataType: "json";
|
|
64847
|
+
columnType: "PgJsonb";
|
|
64848
|
+
data: Record<string, unknown>;
|
|
64849
|
+
driverParam: unknown;
|
|
64850
|
+
notNull: false;
|
|
64851
|
+
hasDefault: false;
|
|
64852
|
+
isPrimaryKey: false;
|
|
64853
|
+
isAutoincrement: false;
|
|
64854
|
+
hasRuntimeDefault: false;
|
|
64855
|
+
enumValues: undefined;
|
|
64856
|
+
baseColumn: never;
|
|
64857
|
+
identity: undefined;
|
|
64858
|
+
generated: undefined;
|
|
64859
|
+
}, {}, {
|
|
64860
|
+
$type: Record<string, unknown>;
|
|
64861
|
+
}>;
|
|
64862
|
+
};
|
|
64863
|
+
dialect: "pg";
|
|
64864
|
+
}>;
|
|
64865
|
+
export type OrderActivityFeedEntry = typeof orderActivityFeed.$inferSelect;
|
|
64866
|
+
export declare const pendingActions: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
64867
|
+
name: "pending_actions";
|
|
64868
|
+
schema: undefined;
|
|
64869
|
+
columns: {
|
|
64870
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
64871
|
+
name: "id";
|
|
64872
|
+
tableName: "pending_actions";
|
|
64873
|
+
dataType: "string";
|
|
64874
|
+
columnType: "PgUUID";
|
|
64875
|
+
data: string;
|
|
64876
|
+
driverParam: string;
|
|
64877
|
+
notNull: true;
|
|
64878
|
+
hasDefault: true;
|
|
64879
|
+
isPrimaryKey: true;
|
|
64880
|
+
isAutoincrement: false;
|
|
64881
|
+
hasRuntimeDefault: false;
|
|
64882
|
+
enumValues: undefined;
|
|
64883
|
+
baseColumn: never;
|
|
64884
|
+
identity: undefined;
|
|
64885
|
+
generated: undefined;
|
|
64886
|
+
}, {}, {}>;
|
|
64887
|
+
mediaOrderId: import("drizzle-orm/pg-core").PgColumn<{
|
|
64888
|
+
name: "media_order_id";
|
|
64889
|
+
tableName: "pending_actions";
|
|
64890
|
+
dataType: "string";
|
|
64891
|
+
columnType: "PgVarchar";
|
|
64892
|
+
data: string;
|
|
64893
|
+
driverParam: string;
|
|
64894
|
+
notNull: true;
|
|
64895
|
+
hasDefault: false;
|
|
64896
|
+
isPrimaryKey: false;
|
|
64897
|
+
isAutoincrement: false;
|
|
64898
|
+
hasRuntimeDefault: false;
|
|
64899
|
+
enumValues: [string, ...string[]];
|
|
64900
|
+
baseColumn: never;
|
|
64901
|
+
identity: undefined;
|
|
64902
|
+
generated: undefined;
|
|
64903
|
+
}, {}, {
|
|
64904
|
+
length: number | undefined;
|
|
64905
|
+
}>;
|
|
64906
|
+
lineItemId: import("drizzle-orm/pg-core").PgColumn<{
|
|
64907
|
+
name: "line_item_id";
|
|
64908
|
+
tableName: "pending_actions";
|
|
64909
|
+
dataType: "string";
|
|
64910
|
+
columnType: "PgVarchar";
|
|
64911
|
+
data: string;
|
|
64912
|
+
driverParam: string;
|
|
64913
|
+
notNull: false;
|
|
64914
|
+
hasDefault: false;
|
|
64915
|
+
isPrimaryKey: false;
|
|
64916
|
+
isAutoincrement: false;
|
|
64917
|
+
hasRuntimeDefault: false;
|
|
64918
|
+
enumValues: [string, ...string[]];
|
|
64919
|
+
baseColumn: never;
|
|
64920
|
+
identity: undefined;
|
|
64921
|
+
generated: undefined;
|
|
64922
|
+
}, {}, {
|
|
64923
|
+
length: number | undefined;
|
|
64924
|
+
}>;
|
|
64925
|
+
actionType: import("drizzle-orm/pg-core").PgColumn<{
|
|
64926
|
+
name: "action_type";
|
|
64927
|
+
tableName: "pending_actions";
|
|
64928
|
+
dataType: "string";
|
|
64929
|
+
columnType: "PgEnumColumn";
|
|
64930
|
+
data: string;
|
|
64931
|
+
driverParam: string;
|
|
64932
|
+
notNull: true;
|
|
64933
|
+
hasDefault: false;
|
|
64934
|
+
isPrimaryKey: false;
|
|
64935
|
+
isAutoincrement: false;
|
|
64936
|
+
hasRuntimeDefault: false;
|
|
64937
|
+
enumValues: [string, ...string[]];
|
|
64938
|
+
baseColumn: never;
|
|
64939
|
+
identity: undefined;
|
|
64940
|
+
generated: undefined;
|
|
64941
|
+
}, {}, {}>;
|
|
64942
|
+
message: import("drizzle-orm/pg-core").PgColumn<{
|
|
64943
|
+
name: "message";
|
|
64944
|
+
tableName: "pending_actions";
|
|
64945
|
+
dataType: "string";
|
|
64946
|
+
columnType: "PgText";
|
|
64947
|
+
data: string;
|
|
64948
|
+
driverParam: string;
|
|
64949
|
+
notNull: true;
|
|
64950
|
+
hasDefault: false;
|
|
64951
|
+
isPrimaryKey: false;
|
|
64952
|
+
isAutoincrement: false;
|
|
64953
|
+
hasRuntimeDefault: false;
|
|
64954
|
+
enumValues: [string, ...string[]];
|
|
64955
|
+
baseColumn: never;
|
|
64956
|
+
identity: undefined;
|
|
64957
|
+
generated: undefined;
|
|
64958
|
+
}, {}, {}>;
|
|
64959
|
+
activityFeedId: import("drizzle-orm/pg-core").PgColumn<{
|
|
64960
|
+
name: "activity_feed_id";
|
|
64961
|
+
tableName: "pending_actions";
|
|
64962
|
+
dataType: "string";
|
|
64963
|
+
columnType: "PgUUID";
|
|
64964
|
+
data: string;
|
|
64965
|
+
driverParam: string;
|
|
64966
|
+
notNull: true;
|
|
64967
|
+
hasDefault: false;
|
|
64968
|
+
isPrimaryKey: false;
|
|
64969
|
+
isAutoincrement: false;
|
|
64970
|
+
hasRuntimeDefault: false;
|
|
64971
|
+
enumValues: undefined;
|
|
64972
|
+
baseColumn: never;
|
|
64973
|
+
identity: undefined;
|
|
64974
|
+
generated: undefined;
|
|
64975
|
+
}, {}, {}>;
|
|
64976
|
+
resolvedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
64977
|
+
name: "resolved_at";
|
|
64978
|
+
tableName: "pending_actions";
|
|
64979
|
+
dataType: "date";
|
|
64980
|
+
columnType: "PgTimestamp";
|
|
64981
|
+
data: Date;
|
|
64982
|
+
driverParam: string;
|
|
64983
|
+
notNull: false;
|
|
64984
|
+
hasDefault: false;
|
|
64985
|
+
isPrimaryKey: false;
|
|
64986
|
+
isAutoincrement: false;
|
|
64987
|
+
hasRuntimeDefault: false;
|
|
64988
|
+
enumValues: undefined;
|
|
64989
|
+
baseColumn: never;
|
|
64990
|
+
identity: undefined;
|
|
64991
|
+
generated: undefined;
|
|
64992
|
+
}, {}, {}>;
|
|
64993
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
64994
|
+
name: "created_at";
|
|
64995
|
+
tableName: "pending_actions";
|
|
64996
|
+
dataType: "date";
|
|
64997
|
+
columnType: "PgTimestamp";
|
|
64998
|
+
data: Date;
|
|
64999
|
+
driverParam: string;
|
|
65000
|
+
notNull: true;
|
|
65001
|
+
hasDefault: true;
|
|
65002
|
+
isPrimaryKey: false;
|
|
65003
|
+
isAutoincrement: false;
|
|
65004
|
+
hasRuntimeDefault: false;
|
|
65005
|
+
enumValues: undefined;
|
|
65006
|
+
baseColumn: never;
|
|
65007
|
+
identity: undefined;
|
|
65008
|
+
generated: undefined;
|
|
65009
|
+
}, {}, {}>;
|
|
65010
|
+
};
|
|
65011
|
+
dialect: "pg";
|
|
65012
|
+
}>;
|
|
65013
|
+
export type PendingAction = typeof pendingActions.$inferSelect;
|
|
65014
|
+
export declare const orderVersionSnapshots: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
65015
|
+
name: "order_version_snapshots";
|
|
65016
|
+
schema: undefined;
|
|
65017
|
+
columns: {
|
|
65018
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
65019
|
+
name: "id";
|
|
65020
|
+
tableName: "order_version_snapshots";
|
|
65021
|
+
dataType: "string";
|
|
65022
|
+
columnType: "PgUUID";
|
|
65023
|
+
data: string;
|
|
65024
|
+
driverParam: string;
|
|
65025
|
+
notNull: true;
|
|
65026
|
+
hasDefault: true;
|
|
65027
|
+
isPrimaryKey: true;
|
|
65028
|
+
isAutoincrement: false;
|
|
65029
|
+
hasRuntimeDefault: false;
|
|
65030
|
+
enumValues: undefined;
|
|
65031
|
+
baseColumn: never;
|
|
65032
|
+
identity: undefined;
|
|
65033
|
+
generated: undefined;
|
|
65034
|
+
}, {}, {}>;
|
|
65035
|
+
mediaOrderId: import("drizzle-orm/pg-core").PgColumn<{
|
|
65036
|
+
name: "media_order_id";
|
|
65037
|
+
tableName: "order_version_snapshots";
|
|
65038
|
+
dataType: "string";
|
|
65039
|
+
columnType: "PgVarchar";
|
|
65040
|
+
data: string;
|
|
65041
|
+
driverParam: string;
|
|
65042
|
+
notNull: true;
|
|
65043
|
+
hasDefault: false;
|
|
65044
|
+
isPrimaryKey: false;
|
|
65045
|
+
isAutoincrement: false;
|
|
65046
|
+
hasRuntimeDefault: false;
|
|
65047
|
+
enumValues: [string, ...string[]];
|
|
65048
|
+
baseColumn: never;
|
|
65049
|
+
identity: undefined;
|
|
65050
|
+
generated: undefined;
|
|
65051
|
+
}, {}, {
|
|
65052
|
+
length: number | undefined;
|
|
65053
|
+
}>;
|
|
65054
|
+
version: import("drizzle-orm/pg-core").PgColumn<{
|
|
65055
|
+
name: "version";
|
|
65056
|
+
tableName: "order_version_snapshots";
|
|
65057
|
+
dataType: "number";
|
|
65058
|
+
columnType: "PgInteger";
|
|
65059
|
+
data: number;
|
|
65060
|
+
driverParam: string | number;
|
|
65061
|
+
notNull: true;
|
|
65062
|
+
hasDefault: false;
|
|
65063
|
+
isPrimaryKey: false;
|
|
65064
|
+
isAutoincrement: false;
|
|
65065
|
+
hasRuntimeDefault: false;
|
|
65066
|
+
enumValues: undefined;
|
|
65067
|
+
baseColumn: never;
|
|
65068
|
+
identity: undefined;
|
|
65069
|
+
generated: undefined;
|
|
65070
|
+
}, {}, {}>;
|
|
65071
|
+
amendmentReason: import("drizzle-orm/pg-core").PgColumn<{
|
|
65072
|
+
name: "amendment_reason";
|
|
65073
|
+
tableName: "order_version_snapshots";
|
|
65074
|
+
dataType: "string";
|
|
65075
|
+
columnType: "PgText";
|
|
65076
|
+
data: string;
|
|
65077
|
+
driverParam: string;
|
|
65078
|
+
notNull: false;
|
|
65079
|
+
hasDefault: false;
|
|
65080
|
+
isPrimaryKey: false;
|
|
65081
|
+
isAutoincrement: false;
|
|
65082
|
+
hasRuntimeDefault: false;
|
|
65083
|
+
enumValues: [string, ...string[]];
|
|
65084
|
+
baseColumn: never;
|
|
65085
|
+
identity: undefined;
|
|
65086
|
+
generated: undefined;
|
|
65087
|
+
}, {}, {}>;
|
|
65088
|
+
amendmentNotes: import("drizzle-orm/pg-core").PgColumn<{
|
|
65089
|
+
name: "amendment_notes";
|
|
65090
|
+
tableName: "order_version_snapshots";
|
|
65091
|
+
dataType: "string";
|
|
65092
|
+
columnType: "PgText";
|
|
65093
|
+
data: string;
|
|
65094
|
+
driverParam: string;
|
|
65095
|
+
notNull: false;
|
|
65096
|
+
hasDefault: false;
|
|
65097
|
+
isPrimaryKey: false;
|
|
65098
|
+
isAutoincrement: false;
|
|
65099
|
+
hasRuntimeDefault: false;
|
|
65100
|
+
enumValues: [string, ...string[]];
|
|
65101
|
+
baseColumn: never;
|
|
65102
|
+
identity: undefined;
|
|
65103
|
+
generated: undefined;
|
|
65104
|
+
}, {}, {}>;
|
|
65105
|
+
amendedBy: import("drizzle-orm/pg-core").PgColumn<{
|
|
65106
|
+
name: "amended_by";
|
|
65107
|
+
tableName: "order_version_snapshots";
|
|
65108
|
+
dataType: "string";
|
|
65109
|
+
columnType: "PgVarchar";
|
|
65110
|
+
data: string;
|
|
65111
|
+
driverParam: string;
|
|
65112
|
+
notNull: false;
|
|
65113
|
+
hasDefault: false;
|
|
65114
|
+
isPrimaryKey: false;
|
|
65115
|
+
isAutoincrement: false;
|
|
65116
|
+
hasRuntimeDefault: false;
|
|
65117
|
+
enumValues: [string, ...string[]];
|
|
65118
|
+
baseColumn: never;
|
|
65119
|
+
identity: undefined;
|
|
65120
|
+
generated: undefined;
|
|
65121
|
+
}, {}, {
|
|
65122
|
+
length: number | undefined;
|
|
65123
|
+
}>;
|
|
65124
|
+
snapshot: import("drizzle-orm/pg-core").PgColumn<{
|
|
65125
|
+
name: "snapshot";
|
|
65126
|
+
tableName: "order_version_snapshots";
|
|
65127
|
+
dataType: "json";
|
|
65128
|
+
columnType: "PgJsonb";
|
|
65129
|
+
data: Record<string, unknown>;
|
|
65130
|
+
driverParam: unknown;
|
|
65131
|
+
notNull: true;
|
|
65132
|
+
hasDefault: false;
|
|
65133
|
+
isPrimaryKey: false;
|
|
65134
|
+
isAutoincrement: false;
|
|
65135
|
+
hasRuntimeDefault: false;
|
|
65136
|
+
enumValues: undefined;
|
|
65137
|
+
baseColumn: never;
|
|
65138
|
+
identity: undefined;
|
|
65139
|
+
generated: undefined;
|
|
65140
|
+
}, {}, {
|
|
65141
|
+
$type: Record<string, unknown>;
|
|
65142
|
+
}>;
|
|
65143
|
+
netInvestment: import("drizzle-orm/pg-core").PgColumn<{
|
|
65144
|
+
name: "net_investment";
|
|
65145
|
+
tableName: "order_version_snapshots";
|
|
65146
|
+
dataType: "string";
|
|
65147
|
+
columnType: "PgNumeric";
|
|
65148
|
+
data: string;
|
|
65149
|
+
driverParam: string;
|
|
65150
|
+
notNull: false;
|
|
65151
|
+
hasDefault: false;
|
|
65152
|
+
isPrimaryKey: false;
|
|
65153
|
+
isAutoincrement: false;
|
|
65154
|
+
hasRuntimeDefault: false;
|
|
65155
|
+
enumValues: undefined;
|
|
65156
|
+
baseColumn: never;
|
|
65157
|
+
identity: undefined;
|
|
65158
|
+
generated: undefined;
|
|
65159
|
+
}, {}, {}>;
|
|
65160
|
+
lineItemCount: import("drizzle-orm/pg-core").PgColumn<{
|
|
65161
|
+
name: "line_item_count";
|
|
65162
|
+
tableName: "order_version_snapshots";
|
|
65163
|
+
dataType: "number";
|
|
65164
|
+
columnType: "PgInteger";
|
|
65165
|
+
data: number;
|
|
65166
|
+
driverParam: string | number;
|
|
65167
|
+
notNull: false;
|
|
65168
|
+
hasDefault: false;
|
|
65169
|
+
isPrimaryKey: false;
|
|
65170
|
+
isAutoincrement: false;
|
|
65171
|
+
hasRuntimeDefault: false;
|
|
65172
|
+
enumValues: undefined;
|
|
65173
|
+
baseColumn: never;
|
|
65174
|
+
identity: undefined;
|
|
65175
|
+
generated: undefined;
|
|
65176
|
+
}, {}, {}>;
|
|
65177
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
65178
|
+
name: "created_at";
|
|
65179
|
+
tableName: "order_version_snapshots";
|
|
65180
|
+
dataType: "date";
|
|
65181
|
+
columnType: "PgTimestamp";
|
|
65182
|
+
data: Date;
|
|
65183
|
+
driverParam: string;
|
|
65184
|
+
notNull: true;
|
|
65185
|
+
hasDefault: true;
|
|
65186
|
+
isPrimaryKey: false;
|
|
65187
|
+
isAutoincrement: false;
|
|
65188
|
+
hasRuntimeDefault: false;
|
|
65189
|
+
enumValues: undefined;
|
|
65190
|
+
baseColumn: never;
|
|
65191
|
+
identity: undefined;
|
|
65192
|
+
generated: undefined;
|
|
65193
|
+
}, {}, {}>;
|
|
65194
|
+
};
|
|
65195
|
+
dialect: "pg";
|
|
65196
|
+
}>;
|
|
65197
|
+
export type OrderVersionSnapshot = typeof orderVersionSnapshots.$inferSelect;
|
|
65198
|
+
export declare const userMilestones: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
65199
|
+
name: "user_milestones";
|
|
65200
|
+
schema: undefined;
|
|
65201
|
+
columns: {
|
|
65202
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
65203
|
+
name: "id";
|
|
65204
|
+
tableName: "user_milestones";
|
|
65205
|
+
dataType: "string";
|
|
65206
|
+
columnType: "PgUUID";
|
|
65207
|
+
data: string;
|
|
65208
|
+
driverParam: string;
|
|
65209
|
+
notNull: true;
|
|
65210
|
+
hasDefault: true;
|
|
65211
|
+
isPrimaryKey: true;
|
|
65212
|
+
isAutoincrement: false;
|
|
65213
|
+
hasRuntimeDefault: false;
|
|
65214
|
+
enumValues: undefined;
|
|
65215
|
+
baseColumn: never;
|
|
65216
|
+
identity: undefined;
|
|
65217
|
+
generated: undefined;
|
|
65218
|
+
}, {}, {}>;
|
|
65219
|
+
userId: import("drizzle-orm/pg-core").PgColumn<{
|
|
65220
|
+
name: "user_id";
|
|
65221
|
+
tableName: "user_milestones";
|
|
65222
|
+
dataType: "string";
|
|
65223
|
+
columnType: "PgVarchar";
|
|
65224
|
+
data: string;
|
|
65225
|
+
driverParam: string;
|
|
65226
|
+
notNull: true;
|
|
65227
|
+
hasDefault: false;
|
|
65228
|
+
isPrimaryKey: false;
|
|
65229
|
+
isAutoincrement: false;
|
|
65230
|
+
hasRuntimeDefault: false;
|
|
65231
|
+
enumValues: [string, ...string[]];
|
|
65232
|
+
baseColumn: never;
|
|
65233
|
+
identity: undefined;
|
|
65234
|
+
generated: undefined;
|
|
65235
|
+
}, {}, {
|
|
65236
|
+
length: number | undefined;
|
|
65237
|
+
}>;
|
|
65238
|
+
milestoneKey: import("drizzle-orm/pg-core").PgColumn<{
|
|
65239
|
+
name: "milestone_key";
|
|
65240
|
+
tableName: "user_milestones";
|
|
65241
|
+
dataType: "string";
|
|
65242
|
+
columnType: "PgText";
|
|
65243
|
+
data: string;
|
|
65244
|
+
driverParam: string;
|
|
65245
|
+
notNull: true;
|
|
65246
|
+
hasDefault: false;
|
|
65247
|
+
isPrimaryKey: false;
|
|
65248
|
+
isAutoincrement: false;
|
|
65249
|
+
hasRuntimeDefault: false;
|
|
65250
|
+
enumValues: [string, ...string[]];
|
|
65251
|
+
baseColumn: never;
|
|
65252
|
+
identity: undefined;
|
|
65253
|
+
generated: undefined;
|
|
65254
|
+
}, {}, {}>;
|
|
65255
|
+
shownAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
65256
|
+
name: "shown_at";
|
|
65257
|
+
tableName: "user_milestones";
|
|
65258
|
+
dataType: "date";
|
|
65259
|
+
columnType: "PgTimestamp";
|
|
65260
|
+
data: Date;
|
|
65261
|
+
driverParam: string;
|
|
65262
|
+
notNull: true;
|
|
65263
|
+
hasDefault: true;
|
|
65264
|
+
isPrimaryKey: false;
|
|
65265
|
+
isAutoincrement: false;
|
|
65266
|
+
hasRuntimeDefault: false;
|
|
65267
|
+
enumValues: undefined;
|
|
65268
|
+
baseColumn: never;
|
|
65269
|
+
identity: undefined;
|
|
65270
|
+
generated: undefined;
|
|
65271
|
+
}, {}, {}>;
|
|
65272
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
65273
|
+
name: "created_at";
|
|
65274
|
+
tableName: "user_milestones";
|
|
65275
|
+
dataType: "date";
|
|
65276
|
+
columnType: "PgTimestamp";
|
|
65277
|
+
data: Date;
|
|
65278
|
+
driverParam: string;
|
|
65279
|
+
notNull: true;
|
|
65280
|
+
hasDefault: true;
|
|
65281
|
+
isPrimaryKey: false;
|
|
65282
|
+
isAutoincrement: false;
|
|
65283
|
+
hasRuntimeDefault: false;
|
|
65284
|
+
enumValues: undefined;
|
|
65285
|
+
baseColumn: never;
|
|
65286
|
+
identity: undefined;
|
|
65287
|
+
generated: undefined;
|
|
65288
|
+
}, {}, {}>;
|
|
65289
|
+
};
|
|
65290
|
+
dialect: "pg";
|
|
65291
|
+
}>;
|
|
65292
|
+
export type UserMilestone = typeof userMilestones.$inferSelect;
|
|
65293
|
+
/** Shape of the ad_activity JSONB column in business_intel_cache */
|
|
65294
|
+
export interface BusinessIntelAdActivity {
|
|
65295
|
+
google?: {
|
|
65296
|
+
active: boolean;
|
|
65297
|
+
adCount: number;
|
|
65298
|
+
lastSeen?: string;
|
|
65299
|
+
};
|
|
65300
|
+
meta?: {
|
|
65301
|
+
active: boolean;
|
|
65302
|
+
adCount: number;
|
|
65303
|
+
lastSeen?: string;
|
|
65304
|
+
};
|
|
65305
|
+
}
|
|
65306
|
+
/** Shape of the seo_snapshot JSONB column in business_intel_cache */
|
|
65307
|
+
export interface BusinessIntelSeoSnapshot {
|
|
65308
|
+
organicTraffic?: number;
|
|
65309
|
+
topKeywords?: string[];
|
|
65310
|
+
paidTrafficCost?: number;
|
|
65311
|
+
}
|
|
65312
|
+
/** Shape of the tech_signals JSONB column in business_intel_cache */
|
|
65313
|
+
export interface BusinessIntelTechSignals {
|
|
65314
|
+
analytics?: string[];
|
|
65315
|
+
advertising?: string[];
|
|
65316
|
+
crm?: string[];
|
|
65317
|
+
social?: string[];
|
|
65318
|
+
}
|
|
63327
65319
|
//# sourceMappingURL=schema.d.ts.map
|