@foundrynorth/compass-schema 1.0.14 → 1.0.16
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 -0
- package/dist/relations.d.ts +22 -0
- package/dist/relations.d.ts.map +1 -1
- package/dist/relations.js +54 -2
- package/dist/relations.js.map +1 -1
- package/dist/schema.d.ts +1538 -138
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +154 -0
- package/dist/schema.js.map +1 -1
- package/package.json +2 -1
- package/src/relations.ts +61 -1
- package/src/schema.ts +194 -0
package/dist/schema.d.ts
CHANGED
|
@@ -8779,6 +8779,25 @@ export declare const plans: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
8779
8779
|
}, {}, {
|
|
8780
8780
|
length: number | undefined;
|
|
8781
8781
|
}>;
|
|
8782
|
+
selectedOptionId: import("drizzle-orm/pg-core").PgColumn<{
|
|
8783
|
+
name: "selected_option_id";
|
|
8784
|
+
tableName: "plans";
|
|
8785
|
+
dataType: "string";
|
|
8786
|
+
columnType: "PgVarchar";
|
|
8787
|
+
data: string;
|
|
8788
|
+
driverParam: string;
|
|
8789
|
+
notNull: false;
|
|
8790
|
+
hasDefault: false;
|
|
8791
|
+
isPrimaryKey: false;
|
|
8792
|
+
isAutoincrement: false;
|
|
8793
|
+
hasRuntimeDefault: false;
|
|
8794
|
+
enumValues: [string, ...string[]];
|
|
8795
|
+
baseColumn: never;
|
|
8796
|
+
identity: undefined;
|
|
8797
|
+
generated: undefined;
|
|
8798
|
+
}, {}, {
|
|
8799
|
+
length: number | undefined;
|
|
8800
|
+
}>;
|
|
8782
8801
|
contractId: import("drizzle-orm/pg-core").PgColumn<{
|
|
8783
8802
|
name: "contract_id";
|
|
8784
8803
|
tableName: "plans";
|
|
@@ -10896,6 +10915,25 @@ export declare const proposals: import("drizzle-orm/pg-core").PgTableWithColumns
|
|
|
10896
10915
|
}, {}, {
|
|
10897
10916
|
$type: string[];
|
|
10898
10917
|
}>;
|
|
10918
|
+
optionIds: import("drizzle-orm/pg-core").PgColumn<{
|
|
10919
|
+
name: "option_ids";
|
|
10920
|
+
tableName: "proposals";
|
|
10921
|
+
dataType: "json";
|
|
10922
|
+
columnType: "PgJsonb";
|
|
10923
|
+
data: string[];
|
|
10924
|
+
driverParam: unknown;
|
|
10925
|
+
notNull: false;
|
|
10926
|
+
hasDefault: false;
|
|
10927
|
+
isPrimaryKey: false;
|
|
10928
|
+
isAutoincrement: false;
|
|
10929
|
+
hasRuntimeDefault: false;
|
|
10930
|
+
enumValues: undefined;
|
|
10931
|
+
baseColumn: never;
|
|
10932
|
+
identity: undefined;
|
|
10933
|
+
generated: undefined;
|
|
10934
|
+
}, {}, {
|
|
10935
|
+
$type: string[];
|
|
10936
|
+
}>;
|
|
10899
10937
|
partnerId: import("drizzle-orm/pg-core").PgColumn<{
|
|
10900
10938
|
name: "partner_id";
|
|
10901
10939
|
tableName: "proposals";
|
|
@@ -11273,6 +11311,7 @@ export declare const insertProposalSchema: z.ZodObject<Omit<{
|
|
|
11273
11311
|
planId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11274
11312
|
engagementId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11275
11313
|
configurationIds: z.ZodOptional<z.ZodNullable<z.ZodType<string[], z.ZodTypeDef, string[]>>>;
|
|
11314
|
+
optionIds: z.ZodOptional<z.ZodNullable<z.ZodType<string[], z.ZodTypeDef, string[]>>>;
|
|
11276
11315
|
partnerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11277
11316
|
hubspotDealId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11278
11317
|
hubspotCompanyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -11305,6 +11344,7 @@ export declare const insertProposalSchema: z.ZodObject<Omit<{
|
|
|
11305
11344
|
engagementId?: string | null | undefined;
|
|
11306
11345
|
planId?: string | null | undefined;
|
|
11307
11346
|
configurationIds?: string[] | null | undefined;
|
|
11347
|
+
optionIds?: string[] | null | undefined;
|
|
11308
11348
|
clientCategory?: string | null | undefined;
|
|
11309
11349
|
clientGeo?: string | null | undefined;
|
|
11310
11350
|
builderState?: Record<string, any> | null | undefined;
|
|
@@ -11328,6 +11368,7 @@ export declare const insertProposalSchema: z.ZodObject<Omit<{
|
|
|
11328
11368
|
engagementId?: string | null | undefined;
|
|
11329
11369
|
planId?: string | null | undefined;
|
|
11330
11370
|
configurationIds?: string[] | null | undefined;
|
|
11371
|
+
optionIds?: string[] | null | undefined;
|
|
11331
11372
|
clientCategory?: string | null | undefined;
|
|
11332
11373
|
clientGeo?: string | null | undefined;
|
|
11333
11374
|
builderState?: Record<string, any> | null | undefined;
|
|
@@ -11345,6 +11386,7 @@ export declare const insertPlanSchema: z.ZodObject<Omit<{
|
|
|
11345
11386
|
id: z.ZodOptional<z.ZodString>;
|
|
11346
11387
|
partnerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11347
11388
|
engagementId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11389
|
+
selectedOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11348
11390
|
contractId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11349
11391
|
planMode: z.ZodOptional<z.ZodString>;
|
|
11350
11392
|
prospectBrand: z.ZodString;
|
|
@@ -11512,7 +11554,1316 @@ export declare const planConfigurations: import("drizzle-orm/pg-core").PgTableWi
|
|
|
11512
11554
|
columnType: "PgVarchar";
|
|
11513
11555
|
data: string;
|
|
11514
11556
|
driverParam: string;
|
|
11515
|
-
notNull: true;
|
|
11557
|
+
notNull: true;
|
|
11558
|
+
hasDefault: false;
|
|
11559
|
+
isPrimaryKey: false;
|
|
11560
|
+
isAutoincrement: false;
|
|
11561
|
+
hasRuntimeDefault: false;
|
|
11562
|
+
enumValues: [string, ...string[]];
|
|
11563
|
+
baseColumn: never;
|
|
11564
|
+
identity: undefined;
|
|
11565
|
+
generated: undefined;
|
|
11566
|
+
}, {}, {
|
|
11567
|
+
length: number | undefined;
|
|
11568
|
+
}>;
|
|
11569
|
+
name: import("drizzle-orm/pg-core").PgColumn<{
|
|
11570
|
+
name: "name";
|
|
11571
|
+
tableName: "plan_configurations";
|
|
11572
|
+
dataType: "string";
|
|
11573
|
+
columnType: "PgText";
|
|
11574
|
+
data: string;
|
|
11575
|
+
driverParam: string;
|
|
11576
|
+
notNull: true;
|
|
11577
|
+
hasDefault: false;
|
|
11578
|
+
isPrimaryKey: false;
|
|
11579
|
+
isAutoincrement: false;
|
|
11580
|
+
hasRuntimeDefault: false;
|
|
11581
|
+
enumValues: [string, ...string[]];
|
|
11582
|
+
baseColumn: never;
|
|
11583
|
+
identity: undefined;
|
|
11584
|
+
generated: undefined;
|
|
11585
|
+
}, {}, {}>;
|
|
11586
|
+
description: import("drizzle-orm/pg-core").PgColumn<{
|
|
11587
|
+
name: "description";
|
|
11588
|
+
tableName: "plan_configurations";
|
|
11589
|
+
dataType: "string";
|
|
11590
|
+
columnType: "PgText";
|
|
11591
|
+
data: string;
|
|
11592
|
+
driverParam: string;
|
|
11593
|
+
notNull: false;
|
|
11594
|
+
hasDefault: false;
|
|
11595
|
+
isPrimaryKey: false;
|
|
11596
|
+
isAutoincrement: false;
|
|
11597
|
+
hasRuntimeDefault: false;
|
|
11598
|
+
enumValues: [string, ...string[]];
|
|
11599
|
+
baseColumn: never;
|
|
11600
|
+
identity: undefined;
|
|
11601
|
+
generated: undefined;
|
|
11602
|
+
}, {}, {}>;
|
|
11603
|
+
allocations: import("drizzle-orm/pg-core").PgColumn<{
|
|
11604
|
+
name: "allocations";
|
|
11605
|
+
tableName: "plan_configurations";
|
|
11606
|
+
dataType: "json";
|
|
11607
|
+
columnType: "PgJsonb";
|
|
11608
|
+
data: unknown;
|
|
11609
|
+
driverParam: unknown;
|
|
11610
|
+
notNull: true;
|
|
11611
|
+
hasDefault: false;
|
|
11612
|
+
isPrimaryKey: false;
|
|
11613
|
+
isAutoincrement: false;
|
|
11614
|
+
hasRuntimeDefault: false;
|
|
11615
|
+
enumValues: undefined;
|
|
11616
|
+
baseColumn: never;
|
|
11617
|
+
identity: undefined;
|
|
11618
|
+
generated: undefined;
|
|
11619
|
+
}, {}, {}>;
|
|
11620
|
+
totalBudget: import("drizzle-orm/pg-core").PgColumn<{
|
|
11621
|
+
name: "total_budget";
|
|
11622
|
+
tableName: "plan_configurations";
|
|
11623
|
+
dataType: "number";
|
|
11624
|
+
columnType: "PgInteger";
|
|
11625
|
+
data: number;
|
|
11626
|
+
driverParam: string | number;
|
|
11627
|
+
notNull: false;
|
|
11628
|
+
hasDefault: false;
|
|
11629
|
+
isPrimaryKey: false;
|
|
11630
|
+
isAutoincrement: false;
|
|
11631
|
+
hasRuntimeDefault: false;
|
|
11632
|
+
enumValues: undefined;
|
|
11633
|
+
baseColumn: never;
|
|
11634
|
+
identity: undefined;
|
|
11635
|
+
generated: undefined;
|
|
11636
|
+
}, {}, {}>;
|
|
11637
|
+
durationMonths: import("drizzle-orm/pg-core").PgColumn<{
|
|
11638
|
+
name: "duration_months";
|
|
11639
|
+
tableName: "plan_configurations";
|
|
11640
|
+
dataType: "number";
|
|
11641
|
+
columnType: "PgInteger";
|
|
11642
|
+
data: number;
|
|
11643
|
+
driverParam: string | number;
|
|
11644
|
+
notNull: false;
|
|
11645
|
+
hasDefault: false;
|
|
11646
|
+
isPrimaryKey: false;
|
|
11647
|
+
isAutoincrement: false;
|
|
11648
|
+
hasRuntimeDefault: false;
|
|
11649
|
+
enumValues: undefined;
|
|
11650
|
+
baseColumn: never;
|
|
11651
|
+
identity: undefined;
|
|
11652
|
+
generated: undefined;
|
|
11653
|
+
}, {}, {}>;
|
|
11654
|
+
isActive: import("drizzle-orm/pg-core").PgColumn<{
|
|
11655
|
+
name: "is_active";
|
|
11656
|
+
tableName: "plan_configurations";
|
|
11657
|
+
dataType: "boolean";
|
|
11658
|
+
columnType: "PgBoolean";
|
|
11659
|
+
data: boolean;
|
|
11660
|
+
driverParam: boolean;
|
|
11661
|
+
notNull: true;
|
|
11662
|
+
hasDefault: true;
|
|
11663
|
+
isPrimaryKey: false;
|
|
11664
|
+
isAutoincrement: false;
|
|
11665
|
+
hasRuntimeDefault: false;
|
|
11666
|
+
enumValues: undefined;
|
|
11667
|
+
baseColumn: never;
|
|
11668
|
+
identity: undefined;
|
|
11669
|
+
generated: undefined;
|
|
11670
|
+
}, {}, {}>;
|
|
11671
|
+
isRecommended: import("drizzle-orm/pg-core").PgColumn<{
|
|
11672
|
+
name: "is_recommended";
|
|
11673
|
+
tableName: "plan_configurations";
|
|
11674
|
+
dataType: "boolean";
|
|
11675
|
+
columnType: "PgBoolean";
|
|
11676
|
+
data: boolean;
|
|
11677
|
+
driverParam: boolean;
|
|
11678
|
+
notNull: true;
|
|
11679
|
+
hasDefault: true;
|
|
11680
|
+
isPrimaryKey: false;
|
|
11681
|
+
isAutoincrement: false;
|
|
11682
|
+
hasRuntimeDefault: false;
|
|
11683
|
+
enumValues: undefined;
|
|
11684
|
+
baseColumn: never;
|
|
11685
|
+
identity: undefined;
|
|
11686
|
+
generated: undefined;
|
|
11687
|
+
}, {}, {}>;
|
|
11688
|
+
displayOrder: import("drizzle-orm/pg-core").PgColumn<{
|
|
11689
|
+
name: "display_order";
|
|
11690
|
+
tableName: "plan_configurations";
|
|
11691
|
+
dataType: "number";
|
|
11692
|
+
columnType: "PgInteger";
|
|
11693
|
+
data: number;
|
|
11694
|
+
driverParam: string | number;
|
|
11695
|
+
notNull: true;
|
|
11696
|
+
hasDefault: true;
|
|
11697
|
+
isPrimaryKey: false;
|
|
11698
|
+
isAutoincrement: false;
|
|
11699
|
+
hasRuntimeDefault: false;
|
|
11700
|
+
enumValues: undefined;
|
|
11701
|
+
baseColumn: never;
|
|
11702
|
+
identity: undefined;
|
|
11703
|
+
generated: undefined;
|
|
11704
|
+
}, {}, {}>;
|
|
11705
|
+
createdBy: import("drizzle-orm/pg-core").PgColumn<{
|
|
11706
|
+
name: "created_by";
|
|
11707
|
+
tableName: "plan_configurations";
|
|
11708
|
+
dataType: "string";
|
|
11709
|
+
columnType: "PgText";
|
|
11710
|
+
data: string;
|
|
11711
|
+
driverParam: string;
|
|
11712
|
+
notNull: false;
|
|
11713
|
+
hasDefault: false;
|
|
11714
|
+
isPrimaryKey: false;
|
|
11715
|
+
isAutoincrement: false;
|
|
11716
|
+
hasRuntimeDefault: false;
|
|
11717
|
+
enumValues: [string, ...string[]];
|
|
11718
|
+
baseColumn: never;
|
|
11719
|
+
identity: undefined;
|
|
11720
|
+
generated: undefined;
|
|
11721
|
+
}, {}, {}>;
|
|
11722
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
11723
|
+
name: "created_at";
|
|
11724
|
+
tableName: "plan_configurations";
|
|
11725
|
+
dataType: "date";
|
|
11726
|
+
columnType: "PgTimestamp";
|
|
11727
|
+
data: Date;
|
|
11728
|
+
driverParam: string;
|
|
11729
|
+
notNull: true;
|
|
11730
|
+
hasDefault: true;
|
|
11731
|
+
isPrimaryKey: false;
|
|
11732
|
+
isAutoincrement: false;
|
|
11733
|
+
hasRuntimeDefault: false;
|
|
11734
|
+
enumValues: undefined;
|
|
11735
|
+
baseColumn: never;
|
|
11736
|
+
identity: undefined;
|
|
11737
|
+
generated: undefined;
|
|
11738
|
+
}, {}, {}>;
|
|
11739
|
+
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
11740
|
+
name: "updated_at";
|
|
11741
|
+
tableName: "plan_configurations";
|
|
11742
|
+
dataType: "date";
|
|
11743
|
+
columnType: "PgTimestamp";
|
|
11744
|
+
data: Date;
|
|
11745
|
+
driverParam: string;
|
|
11746
|
+
notNull: true;
|
|
11747
|
+
hasDefault: true;
|
|
11748
|
+
isPrimaryKey: false;
|
|
11749
|
+
isAutoincrement: false;
|
|
11750
|
+
hasRuntimeDefault: false;
|
|
11751
|
+
enumValues: undefined;
|
|
11752
|
+
baseColumn: never;
|
|
11753
|
+
identity: undefined;
|
|
11754
|
+
generated: undefined;
|
|
11755
|
+
}, {}, {}>;
|
|
11756
|
+
};
|
|
11757
|
+
dialect: "pg";
|
|
11758
|
+
}>;
|
|
11759
|
+
export declare const insertPlanConfigurationSchema: z.ZodObject<Omit<{
|
|
11760
|
+
id: z.ZodOptional<z.ZodString>;
|
|
11761
|
+
planId: z.ZodString;
|
|
11762
|
+
name: z.ZodString;
|
|
11763
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11764
|
+
allocations: z.ZodType<import("drizzle-zod").Json, z.ZodTypeDef, import("drizzle-zod").Json>;
|
|
11765
|
+
totalBudget: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
11766
|
+
durationMonths: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
11767
|
+
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
11768
|
+
isRecommended: z.ZodOptional<z.ZodBoolean>;
|
|
11769
|
+
displayOrder: z.ZodOptional<z.ZodNumber>;
|
|
11770
|
+
createdBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11771
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
11772
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
11773
|
+
}, "id" | "createdAt" | "updatedAt">, "strip", z.ZodTypeAny, {
|
|
11774
|
+
name: string;
|
|
11775
|
+
allocations: import("drizzle-zod").Json;
|
|
11776
|
+
planId: string;
|
|
11777
|
+
displayOrder?: number | undefined;
|
|
11778
|
+
description?: string | null | undefined;
|
|
11779
|
+
createdBy?: string | null | undefined;
|
|
11780
|
+
isActive?: boolean | undefined;
|
|
11781
|
+
totalBudget?: number | null | undefined;
|
|
11782
|
+
durationMonths?: number | null | undefined;
|
|
11783
|
+
isRecommended?: boolean | undefined;
|
|
11784
|
+
}, {
|
|
11785
|
+
name: string;
|
|
11786
|
+
allocations: import("drizzle-zod").Json;
|
|
11787
|
+
planId: string;
|
|
11788
|
+
displayOrder?: number | undefined;
|
|
11789
|
+
description?: string | null | undefined;
|
|
11790
|
+
createdBy?: string | null | undefined;
|
|
11791
|
+
isActive?: boolean | undefined;
|
|
11792
|
+
totalBudget?: number | null | undefined;
|
|
11793
|
+
durationMonths?: number | null | undefined;
|
|
11794
|
+
isRecommended?: boolean | undefined;
|
|
11795
|
+
}>;
|
|
11796
|
+
export type InsertPlanConfiguration = z.infer<typeof insertPlanConfigurationSchema>;
|
|
11797
|
+
export type PlanConfiguration = typeof planConfigurations.$inferSelect;
|
|
11798
|
+
export declare const planOptionSourceEnum: import("drizzle-orm/pg-core").PgEnum<["strategist", "ai", "derived_snapshot"]>;
|
|
11799
|
+
export declare const planOptionKindEnum: import("drizzle-orm/pg-core").PgEnum<["base", "alternative"]>;
|
|
11800
|
+
export declare const planOptionStatusEnum: import("drizzle-orm/pg-core").PgEnum<["draft", "recommended", "selected", "ordered", "archived"]>;
|
|
11801
|
+
export declare const researchRunStatusEnum: import("drizzle-orm/pg-core").PgEnum<["queued", "running", "completed", "failed", "cancelled", "reused"]>;
|
|
11802
|
+
export declare const researchSnapshots: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
11803
|
+
name: "research_snapshots";
|
|
11804
|
+
schema: undefined;
|
|
11805
|
+
columns: {
|
|
11806
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
11807
|
+
name: "id";
|
|
11808
|
+
tableName: "research_snapshots";
|
|
11809
|
+
dataType: "string";
|
|
11810
|
+
columnType: "PgVarchar";
|
|
11811
|
+
data: string;
|
|
11812
|
+
driverParam: string;
|
|
11813
|
+
notNull: true;
|
|
11814
|
+
hasDefault: true;
|
|
11815
|
+
isPrimaryKey: true;
|
|
11816
|
+
isAutoincrement: false;
|
|
11817
|
+
hasRuntimeDefault: false;
|
|
11818
|
+
enumValues: [string, ...string[]];
|
|
11819
|
+
baseColumn: never;
|
|
11820
|
+
identity: undefined;
|
|
11821
|
+
generated: undefined;
|
|
11822
|
+
}, {}, {
|
|
11823
|
+
length: number | undefined;
|
|
11824
|
+
}>;
|
|
11825
|
+
engagementId: import("drizzle-orm/pg-core").PgColumn<{
|
|
11826
|
+
name: "engagement_id";
|
|
11827
|
+
tableName: "research_snapshots";
|
|
11828
|
+
dataType: "string";
|
|
11829
|
+
columnType: "PgVarchar";
|
|
11830
|
+
data: string;
|
|
11831
|
+
driverParam: string;
|
|
11832
|
+
notNull: false;
|
|
11833
|
+
hasDefault: false;
|
|
11834
|
+
isPrimaryKey: false;
|
|
11835
|
+
isAutoincrement: false;
|
|
11836
|
+
hasRuntimeDefault: false;
|
|
11837
|
+
enumValues: [string, ...string[]];
|
|
11838
|
+
baseColumn: never;
|
|
11839
|
+
identity: undefined;
|
|
11840
|
+
generated: undefined;
|
|
11841
|
+
}, {}, {
|
|
11842
|
+
length: number | undefined;
|
|
11843
|
+
}>;
|
|
11844
|
+
planId: import("drizzle-orm/pg-core").PgColumn<{
|
|
11845
|
+
name: "plan_id";
|
|
11846
|
+
tableName: "research_snapshots";
|
|
11847
|
+
dataType: "string";
|
|
11848
|
+
columnType: "PgVarchar";
|
|
11849
|
+
data: string;
|
|
11850
|
+
driverParam: string;
|
|
11851
|
+
notNull: true;
|
|
11852
|
+
hasDefault: false;
|
|
11853
|
+
isPrimaryKey: false;
|
|
11854
|
+
isAutoincrement: false;
|
|
11855
|
+
hasRuntimeDefault: false;
|
|
11856
|
+
enumValues: [string, ...string[]];
|
|
11857
|
+
baseColumn: never;
|
|
11858
|
+
identity: undefined;
|
|
11859
|
+
generated: undefined;
|
|
11860
|
+
}, {}, {
|
|
11861
|
+
length: number | undefined;
|
|
11862
|
+
}>;
|
|
11863
|
+
scopeType: import("drizzle-orm/pg-core").PgColumn<{
|
|
11864
|
+
name: "scope_type";
|
|
11865
|
+
tableName: "research_snapshots";
|
|
11866
|
+
dataType: "string";
|
|
11867
|
+
columnType: "PgText";
|
|
11868
|
+
data: string;
|
|
11869
|
+
driverParam: string;
|
|
11870
|
+
notNull: true;
|
|
11871
|
+
hasDefault: false;
|
|
11872
|
+
isPrimaryKey: false;
|
|
11873
|
+
isAutoincrement: false;
|
|
11874
|
+
hasRuntimeDefault: false;
|
|
11875
|
+
enumValues: [string, ...string[]];
|
|
11876
|
+
baseColumn: never;
|
|
11877
|
+
identity: undefined;
|
|
11878
|
+
generated: undefined;
|
|
11879
|
+
}, {}, {}>;
|
|
11880
|
+
scopeKey: import("drizzle-orm/pg-core").PgColumn<{
|
|
11881
|
+
name: "scope_key";
|
|
11882
|
+
tableName: "research_snapshots";
|
|
11883
|
+
dataType: "string";
|
|
11884
|
+
columnType: "PgText";
|
|
11885
|
+
data: string;
|
|
11886
|
+
driverParam: string;
|
|
11887
|
+
notNull: true;
|
|
11888
|
+
hasDefault: false;
|
|
11889
|
+
isPrimaryKey: false;
|
|
11890
|
+
isAutoincrement: false;
|
|
11891
|
+
hasRuntimeDefault: false;
|
|
11892
|
+
enumValues: [string, ...string[]];
|
|
11893
|
+
baseColumn: never;
|
|
11894
|
+
identity: undefined;
|
|
11895
|
+
generated: undefined;
|
|
11896
|
+
}, {}, {}>;
|
|
11897
|
+
sourceMode: import("drizzle-orm/pg-core").PgColumn<{
|
|
11898
|
+
name: "source_mode";
|
|
11899
|
+
tableName: "research_snapshots";
|
|
11900
|
+
dataType: "string";
|
|
11901
|
+
columnType: "PgText";
|
|
11902
|
+
data: string;
|
|
11903
|
+
driverParam: string;
|
|
11904
|
+
notNull: true;
|
|
11905
|
+
hasDefault: false;
|
|
11906
|
+
isPrimaryKey: false;
|
|
11907
|
+
isAutoincrement: false;
|
|
11908
|
+
hasRuntimeDefault: false;
|
|
11909
|
+
enumValues: [string, ...string[]];
|
|
11910
|
+
baseColumn: never;
|
|
11911
|
+
identity: undefined;
|
|
11912
|
+
generated: undefined;
|
|
11913
|
+
}, {}, {}>;
|
|
11914
|
+
snapshotVersion: import("drizzle-orm/pg-core").PgColumn<{
|
|
11915
|
+
name: "snapshot_version";
|
|
11916
|
+
tableName: "research_snapshots";
|
|
11917
|
+
dataType: "number";
|
|
11918
|
+
columnType: "PgInteger";
|
|
11919
|
+
data: number;
|
|
11920
|
+
driverParam: string | number;
|
|
11921
|
+
notNull: true;
|
|
11922
|
+
hasDefault: true;
|
|
11923
|
+
isPrimaryKey: false;
|
|
11924
|
+
isAutoincrement: false;
|
|
11925
|
+
hasRuntimeDefault: false;
|
|
11926
|
+
enumValues: undefined;
|
|
11927
|
+
baseColumn: never;
|
|
11928
|
+
identity: undefined;
|
|
11929
|
+
generated: undefined;
|
|
11930
|
+
}, {}, {}>;
|
|
11931
|
+
prospectProfile: import("drizzle-orm/pg-core").PgColumn<{
|
|
11932
|
+
name: "prospect_profile";
|
|
11933
|
+
tableName: "research_snapshots";
|
|
11934
|
+
dataType: "json";
|
|
11935
|
+
columnType: "PgJsonb";
|
|
11936
|
+
data: Record<string, any>;
|
|
11937
|
+
driverParam: unknown;
|
|
11938
|
+
notNull: false;
|
|
11939
|
+
hasDefault: false;
|
|
11940
|
+
isPrimaryKey: false;
|
|
11941
|
+
isAutoincrement: false;
|
|
11942
|
+
hasRuntimeDefault: false;
|
|
11943
|
+
enumValues: undefined;
|
|
11944
|
+
baseColumn: never;
|
|
11945
|
+
identity: undefined;
|
|
11946
|
+
generated: undefined;
|
|
11947
|
+
}, {}, {
|
|
11948
|
+
$type: Record<string, any>;
|
|
11949
|
+
}>;
|
|
11950
|
+
competitiveContext: import("drizzle-orm/pg-core").PgColumn<{
|
|
11951
|
+
name: "competitive_context";
|
|
11952
|
+
tableName: "research_snapshots";
|
|
11953
|
+
dataType: "json";
|
|
11954
|
+
columnType: "PgJsonb";
|
|
11955
|
+
data: Record<string, any>;
|
|
11956
|
+
driverParam: unknown;
|
|
11957
|
+
notNull: false;
|
|
11958
|
+
hasDefault: false;
|
|
11959
|
+
isPrimaryKey: false;
|
|
11960
|
+
isAutoincrement: false;
|
|
11961
|
+
hasRuntimeDefault: false;
|
|
11962
|
+
enumValues: undefined;
|
|
11963
|
+
baseColumn: never;
|
|
11964
|
+
identity: undefined;
|
|
11965
|
+
generated: undefined;
|
|
11966
|
+
}, {}, {
|
|
11967
|
+
$type: Record<string, any>;
|
|
11968
|
+
}>;
|
|
11969
|
+
marketContext: import("drizzle-orm/pg-core").PgColumn<{
|
|
11970
|
+
name: "market_context";
|
|
11971
|
+
tableName: "research_snapshots";
|
|
11972
|
+
dataType: "json";
|
|
11973
|
+
columnType: "PgJsonb";
|
|
11974
|
+
data: Record<string, any>;
|
|
11975
|
+
driverParam: unknown;
|
|
11976
|
+
notNull: false;
|
|
11977
|
+
hasDefault: false;
|
|
11978
|
+
isPrimaryKey: false;
|
|
11979
|
+
isAutoincrement: false;
|
|
11980
|
+
hasRuntimeDefault: false;
|
|
11981
|
+
enumValues: undefined;
|
|
11982
|
+
baseColumn: never;
|
|
11983
|
+
identity: undefined;
|
|
11984
|
+
generated: undefined;
|
|
11985
|
+
}, {}, {
|
|
11986
|
+
$type: Record<string, any>;
|
|
11987
|
+
}>;
|
|
11988
|
+
constraints: import("drizzle-orm/pg-core").PgColumn<{
|
|
11989
|
+
name: "constraints";
|
|
11990
|
+
tableName: "research_snapshots";
|
|
11991
|
+
dataType: "json";
|
|
11992
|
+
columnType: "PgJsonb";
|
|
11993
|
+
data: Record<string, any>;
|
|
11994
|
+
driverParam: unknown;
|
|
11995
|
+
notNull: false;
|
|
11996
|
+
hasDefault: false;
|
|
11997
|
+
isPrimaryKey: false;
|
|
11998
|
+
isAutoincrement: false;
|
|
11999
|
+
hasRuntimeDefault: false;
|
|
12000
|
+
enumValues: undefined;
|
|
12001
|
+
baseColumn: never;
|
|
12002
|
+
identity: undefined;
|
|
12003
|
+
generated: undefined;
|
|
12004
|
+
}, {}, {
|
|
12005
|
+
$type: Record<string, any>;
|
|
12006
|
+
}>;
|
|
12007
|
+
fulfillmentContext: import("drizzle-orm/pg-core").PgColumn<{
|
|
12008
|
+
name: "fulfillment_context";
|
|
12009
|
+
tableName: "research_snapshots";
|
|
12010
|
+
dataType: "json";
|
|
12011
|
+
columnType: "PgJsonb";
|
|
12012
|
+
data: Record<string, any>;
|
|
12013
|
+
driverParam: unknown;
|
|
12014
|
+
notNull: false;
|
|
12015
|
+
hasDefault: false;
|
|
12016
|
+
isPrimaryKey: false;
|
|
12017
|
+
isAutoincrement: false;
|
|
12018
|
+
hasRuntimeDefault: false;
|
|
12019
|
+
enumValues: undefined;
|
|
12020
|
+
baseColumn: never;
|
|
12021
|
+
identity: undefined;
|
|
12022
|
+
generated: undefined;
|
|
12023
|
+
}, {}, {
|
|
12024
|
+
$type: Record<string, any>;
|
|
12025
|
+
}>;
|
|
12026
|
+
brandContext: import("drizzle-orm/pg-core").PgColumn<{
|
|
12027
|
+
name: "brand_context";
|
|
12028
|
+
tableName: "research_snapshots";
|
|
12029
|
+
dataType: "json";
|
|
12030
|
+
columnType: "PgJsonb";
|
|
12031
|
+
data: Record<string, any>;
|
|
12032
|
+
driverParam: unknown;
|
|
12033
|
+
notNull: false;
|
|
12034
|
+
hasDefault: false;
|
|
12035
|
+
isPrimaryKey: false;
|
|
12036
|
+
isAutoincrement: false;
|
|
12037
|
+
hasRuntimeDefault: false;
|
|
12038
|
+
enumValues: undefined;
|
|
12039
|
+
baseColumn: never;
|
|
12040
|
+
identity: undefined;
|
|
12041
|
+
generated: undefined;
|
|
12042
|
+
}, {}, {
|
|
12043
|
+
$type: Record<string, any>;
|
|
12044
|
+
}>;
|
|
12045
|
+
provenance: import("drizzle-orm/pg-core").PgColumn<{
|
|
12046
|
+
name: "provenance";
|
|
12047
|
+
tableName: "research_snapshots";
|
|
12048
|
+
dataType: "json";
|
|
12049
|
+
columnType: "PgJsonb";
|
|
12050
|
+
data: Record<string, any>;
|
|
12051
|
+
driverParam: unknown;
|
|
12052
|
+
notNull: true;
|
|
12053
|
+
hasDefault: false;
|
|
12054
|
+
isPrimaryKey: false;
|
|
12055
|
+
isAutoincrement: false;
|
|
12056
|
+
hasRuntimeDefault: false;
|
|
12057
|
+
enumValues: undefined;
|
|
12058
|
+
baseColumn: never;
|
|
12059
|
+
identity: undefined;
|
|
12060
|
+
generated: undefined;
|
|
12061
|
+
}, {}, {
|
|
12062
|
+
$type: Record<string, any>;
|
|
12063
|
+
}>;
|
|
12064
|
+
freshUntil: import("drizzle-orm/pg-core").PgColumn<{
|
|
12065
|
+
name: "fresh_until";
|
|
12066
|
+
tableName: "research_snapshots";
|
|
12067
|
+
dataType: "date";
|
|
12068
|
+
columnType: "PgTimestamp";
|
|
12069
|
+
data: Date;
|
|
12070
|
+
driverParam: string;
|
|
12071
|
+
notNull: false;
|
|
12072
|
+
hasDefault: false;
|
|
12073
|
+
isPrimaryKey: false;
|
|
12074
|
+
isAutoincrement: false;
|
|
12075
|
+
hasRuntimeDefault: false;
|
|
12076
|
+
enumValues: undefined;
|
|
12077
|
+
baseColumn: never;
|
|
12078
|
+
identity: undefined;
|
|
12079
|
+
generated: undefined;
|
|
12080
|
+
}, {}, {}>;
|
|
12081
|
+
reuseHash: import("drizzle-orm/pg-core").PgColumn<{
|
|
12082
|
+
name: "reuse_hash";
|
|
12083
|
+
tableName: "research_snapshots";
|
|
12084
|
+
dataType: "string";
|
|
12085
|
+
columnType: "PgText";
|
|
12086
|
+
data: string;
|
|
12087
|
+
driverParam: string;
|
|
12088
|
+
notNull: false;
|
|
12089
|
+
hasDefault: false;
|
|
12090
|
+
isPrimaryKey: false;
|
|
12091
|
+
isAutoincrement: false;
|
|
12092
|
+
hasRuntimeDefault: false;
|
|
12093
|
+
enumValues: [string, ...string[]];
|
|
12094
|
+
baseColumn: never;
|
|
12095
|
+
identity: undefined;
|
|
12096
|
+
generated: undefined;
|
|
12097
|
+
}, {}, {}>;
|
|
12098
|
+
triggerRunId: import("drizzle-orm/pg-core").PgColumn<{
|
|
12099
|
+
name: "trigger_run_id";
|
|
12100
|
+
tableName: "research_snapshots";
|
|
12101
|
+
dataType: "string";
|
|
12102
|
+
columnType: "PgVarchar";
|
|
12103
|
+
data: string;
|
|
12104
|
+
driverParam: string;
|
|
12105
|
+
notNull: false;
|
|
12106
|
+
hasDefault: false;
|
|
12107
|
+
isPrimaryKey: false;
|
|
12108
|
+
isAutoincrement: false;
|
|
12109
|
+
hasRuntimeDefault: false;
|
|
12110
|
+
enumValues: [string, ...string[]];
|
|
12111
|
+
baseColumn: never;
|
|
12112
|
+
identity: undefined;
|
|
12113
|
+
generated: undefined;
|
|
12114
|
+
}, {}, {
|
|
12115
|
+
length: number | undefined;
|
|
12116
|
+
}>;
|
|
12117
|
+
costMeta: import("drizzle-orm/pg-core").PgColumn<{
|
|
12118
|
+
name: "cost_meta";
|
|
12119
|
+
tableName: "research_snapshots";
|
|
12120
|
+
dataType: "json";
|
|
12121
|
+
columnType: "PgJsonb";
|
|
12122
|
+
data: Record<string, any>;
|
|
12123
|
+
driverParam: unknown;
|
|
12124
|
+
notNull: false;
|
|
12125
|
+
hasDefault: false;
|
|
12126
|
+
isPrimaryKey: false;
|
|
12127
|
+
isAutoincrement: false;
|
|
12128
|
+
hasRuntimeDefault: false;
|
|
12129
|
+
enumValues: undefined;
|
|
12130
|
+
baseColumn: never;
|
|
12131
|
+
identity: undefined;
|
|
12132
|
+
generated: undefined;
|
|
12133
|
+
}, {}, {
|
|
12134
|
+
$type: Record<string, any>;
|
|
12135
|
+
}>;
|
|
12136
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
12137
|
+
name: "created_at";
|
|
12138
|
+
tableName: "research_snapshots";
|
|
12139
|
+
dataType: "date";
|
|
12140
|
+
columnType: "PgTimestamp";
|
|
12141
|
+
data: Date;
|
|
12142
|
+
driverParam: string;
|
|
12143
|
+
notNull: true;
|
|
12144
|
+
hasDefault: true;
|
|
12145
|
+
isPrimaryKey: false;
|
|
12146
|
+
isAutoincrement: false;
|
|
12147
|
+
hasRuntimeDefault: false;
|
|
12148
|
+
enumValues: undefined;
|
|
12149
|
+
baseColumn: never;
|
|
12150
|
+
identity: undefined;
|
|
12151
|
+
generated: undefined;
|
|
12152
|
+
}, {}, {}>;
|
|
12153
|
+
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
12154
|
+
name: "updated_at";
|
|
12155
|
+
tableName: "research_snapshots";
|
|
12156
|
+
dataType: "date";
|
|
12157
|
+
columnType: "PgTimestamp";
|
|
12158
|
+
data: Date;
|
|
12159
|
+
driverParam: string;
|
|
12160
|
+
notNull: true;
|
|
12161
|
+
hasDefault: true;
|
|
12162
|
+
isPrimaryKey: false;
|
|
12163
|
+
isAutoincrement: false;
|
|
12164
|
+
hasRuntimeDefault: false;
|
|
12165
|
+
enumValues: undefined;
|
|
12166
|
+
baseColumn: never;
|
|
12167
|
+
identity: undefined;
|
|
12168
|
+
generated: undefined;
|
|
12169
|
+
}, {}, {}>;
|
|
12170
|
+
};
|
|
12171
|
+
dialect: "pg";
|
|
12172
|
+
}>;
|
|
12173
|
+
export declare const insertResearchSnapshotSchema: z.ZodObject<Omit<{
|
|
12174
|
+
id: z.ZodOptional<z.ZodString>;
|
|
12175
|
+
engagementId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12176
|
+
planId: z.ZodString;
|
|
12177
|
+
scopeType: z.ZodString;
|
|
12178
|
+
scopeKey: z.ZodString;
|
|
12179
|
+
sourceMode: z.ZodString;
|
|
12180
|
+
snapshotVersion: z.ZodOptional<z.ZodNumber>;
|
|
12181
|
+
prospectProfile: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, any>, z.ZodTypeDef, Record<string, any>>>>;
|
|
12182
|
+
competitiveContext: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, any>, z.ZodTypeDef, Record<string, any>>>>;
|
|
12183
|
+
marketContext: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, any>, z.ZodTypeDef, Record<string, any>>>>;
|
|
12184
|
+
constraints: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, any>, z.ZodTypeDef, Record<string, any>>>>;
|
|
12185
|
+
fulfillmentContext: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, any>, z.ZodTypeDef, Record<string, any>>>>;
|
|
12186
|
+
brandContext: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, any>, z.ZodTypeDef, Record<string, any>>>>;
|
|
12187
|
+
provenance: z.ZodType<Record<string, any>, z.ZodTypeDef, Record<string, any>>;
|
|
12188
|
+
freshUntil: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
12189
|
+
reuseHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12190
|
+
triggerRunId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12191
|
+
costMeta: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, any>, z.ZodTypeDef, Record<string, any>>>>;
|
|
12192
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
12193
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
12194
|
+
}, "id" | "createdAt" | "updatedAt">, "strip", z.ZodTypeAny, {
|
|
12195
|
+
planId: string;
|
|
12196
|
+
scopeType: string;
|
|
12197
|
+
scopeKey: string;
|
|
12198
|
+
sourceMode: string;
|
|
12199
|
+
provenance: Record<string, any>;
|
|
12200
|
+
competitiveContext?: Record<string, any> | null | undefined;
|
|
12201
|
+
engagementId?: string | null | undefined;
|
|
12202
|
+
triggerRunId?: string | null | undefined;
|
|
12203
|
+
snapshotVersion?: number | undefined;
|
|
12204
|
+
prospectProfile?: Record<string, any> | null | undefined;
|
|
12205
|
+
marketContext?: Record<string, any> | null | undefined;
|
|
12206
|
+
constraints?: Record<string, any> | null | undefined;
|
|
12207
|
+
fulfillmentContext?: Record<string, any> | null | undefined;
|
|
12208
|
+
brandContext?: Record<string, any> | null | undefined;
|
|
12209
|
+
freshUntil?: Date | null | undefined;
|
|
12210
|
+
reuseHash?: string | null | undefined;
|
|
12211
|
+
costMeta?: Record<string, any> | null | undefined;
|
|
12212
|
+
}, {
|
|
12213
|
+
planId: string;
|
|
12214
|
+
scopeType: string;
|
|
12215
|
+
scopeKey: string;
|
|
12216
|
+
sourceMode: string;
|
|
12217
|
+
provenance: Record<string, any>;
|
|
12218
|
+
competitiveContext?: Record<string, any> | null | undefined;
|
|
12219
|
+
engagementId?: string | null | undefined;
|
|
12220
|
+
triggerRunId?: string | null | undefined;
|
|
12221
|
+
snapshotVersion?: number | undefined;
|
|
12222
|
+
prospectProfile?: Record<string, any> | null | undefined;
|
|
12223
|
+
marketContext?: Record<string, any> | null | undefined;
|
|
12224
|
+
constraints?: Record<string, any> | null | undefined;
|
|
12225
|
+
fulfillmentContext?: Record<string, any> | null | undefined;
|
|
12226
|
+
brandContext?: Record<string, any> | null | undefined;
|
|
12227
|
+
freshUntil?: Date | null | undefined;
|
|
12228
|
+
reuseHash?: string | null | undefined;
|
|
12229
|
+
costMeta?: Record<string, any> | null | undefined;
|
|
12230
|
+
}>;
|
|
12231
|
+
export type InsertResearchSnapshot = z.infer<typeof insertResearchSnapshotSchema>;
|
|
12232
|
+
export type ResearchSnapshot = typeof researchSnapshots.$inferSelect;
|
|
12233
|
+
export declare const planOptions: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
12234
|
+
name: "plan_options";
|
|
12235
|
+
schema: undefined;
|
|
12236
|
+
columns: {
|
|
12237
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
12238
|
+
name: "id";
|
|
12239
|
+
tableName: "plan_options";
|
|
12240
|
+
dataType: "string";
|
|
12241
|
+
columnType: "PgVarchar";
|
|
12242
|
+
data: string;
|
|
12243
|
+
driverParam: string;
|
|
12244
|
+
notNull: true;
|
|
12245
|
+
hasDefault: true;
|
|
12246
|
+
isPrimaryKey: true;
|
|
12247
|
+
isAutoincrement: false;
|
|
12248
|
+
hasRuntimeDefault: false;
|
|
12249
|
+
enumValues: [string, ...string[]];
|
|
12250
|
+
baseColumn: never;
|
|
12251
|
+
identity: undefined;
|
|
12252
|
+
generated: undefined;
|
|
12253
|
+
}, {}, {
|
|
12254
|
+
length: number | undefined;
|
|
12255
|
+
}>;
|
|
12256
|
+
planId: import("drizzle-orm/pg-core").PgColumn<{
|
|
12257
|
+
name: "plan_id";
|
|
12258
|
+
tableName: "plan_options";
|
|
12259
|
+
dataType: "string";
|
|
12260
|
+
columnType: "PgVarchar";
|
|
12261
|
+
data: string;
|
|
12262
|
+
driverParam: string;
|
|
12263
|
+
notNull: true;
|
|
12264
|
+
hasDefault: false;
|
|
12265
|
+
isPrimaryKey: false;
|
|
12266
|
+
isAutoincrement: false;
|
|
12267
|
+
hasRuntimeDefault: false;
|
|
12268
|
+
enumValues: [string, ...string[]];
|
|
12269
|
+
baseColumn: never;
|
|
12270
|
+
identity: undefined;
|
|
12271
|
+
generated: undefined;
|
|
12272
|
+
}, {}, {
|
|
12273
|
+
length: number | undefined;
|
|
12274
|
+
}>;
|
|
12275
|
+
engagementId: import("drizzle-orm/pg-core").PgColumn<{
|
|
12276
|
+
name: "engagement_id";
|
|
12277
|
+
tableName: "plan_options";
|
|
12278
|
+
dataType: "string";
|
|
12279
|
+
columnType: "PgVarchar";
|
|
12280
|
+
data: string;
|
|
12281
|
+
driverParam: string;
|
|
12282
|
+
notNull: false;
|
|
12283
|
+
hasDefault: false;
|
|
12284
|
+
isPrimaryKey: false;
|
|
12285
|
+
isAutoincrement: false;
|
|
12286
|
+
hasRuntimeDefault: false;
|
|
12287
|
+
enumValues: [string, ...string[]];
|
|
12288
|
+
baseColumn: never;
|
|
12289
|
+
identity: undefined;
|
|
12290
|
+
generated: undefined;
|
|
12291
|
+
}, {}, {
|
|
12292
|
+
length: number | undefined;
|
|
12293
|
+
}>;
|
|
12294
|
+
legacyConfigurationId: import("drizzle-orm/pg-core").PgColumn<{
|
|
12295
|
+
name: "legacy_configuration_id";
|
|
12296
|
+
tableName: "plan_options";
|
|
12297
|
+
dataType: "string";
|
|
12298
|
+
columnType: "PgVarchar";
|
|
12299
|
+
data: string;
|
|
12300
|
+
driverParam: string;
|
|
12301
|
+
notNull: false;
|
|
12302
|
+
hasDefault: false;
|
|
12303
|
+
isPrimaryKey: false;
|
|
12304
|
+
isAutoincrement: false;
|
|
12305
|
+
hasRuntimeDefault: false;
|
|
12306
|
+
enumValues: [string, ...string[]];
|
|
12307
|
+
baseColumn: never;
|
|
12308
|
+
identity: undefined;
|
|
12309
|
+
generated: undefined;
|
|
12310
|
+
}, {}, {
|
|
12311
|
+
length: number | undefined;
|
|
12312
|
+
}>;
|
|
12313
|
+
legacyTierKey: import("drizzle-orm/pg-core").PgColumn<{
|
|
12314
|
+
name: "legacy_tier_key";
|
|
12315
|
+
tableName: "plan_options";
|
|
12316
|
+
dataType: "string";
|
|
12317
|
+
columnType: "PgText";
|
|
12318
|
+
data: string;
|
|
12319
|
+
driverParam: string;
|
|
12320
|
+
notNull: false;
|
|
12321
|
+
hasDefault: false;
|
|
12322
|
+
isPrimaryKey: false;
|
|
12323
|
+
isAutoincrement: false;
|
|
12324
|
+
hasRuntimeDefault: false;
|
|
12325
|
+
enumValues: [string, ...string[]];
|
|
12326
|
+
baseColumn: never;
|
|
12327
|
+
identity: undefined;
|
|
12328
|
+
generated: undefined;
|
|
12329
|
+
}, {}, {}>;
|
|
12330
|
+
name: import("drizzle-orm/pg-core").PgColumn<{
|
|
12331
|
+
name: "name";
|
|
12332
|
+
tableName: "plan_options";
|
|
12333
|
+
dataType: "string";
|
|
12334
|
+
columnType: "PgText";
|
|
12335
|
+
data: string;
|
|
12336
|
+
driverParam: string;
|
|
12337
|
+
notNull: true;
|
|
12338
|
+
hasDefault: false;
|
|
12339
|
+
isPrimaryKey: false;
|
|
12340
|
+
isAutoincrement: false;
|
|
12341
|
+
hasRuntimeDefault: false;
|
|
12342
|
+
enumValues: [string, ...string[]];
|
|
12343
|
+
baseColumn: never;
|
|
12344
|
+
identity: undefined;
|
|
12345
|
+
generated: undefined;
|
|
12346
|
+
}, {}, {}>;
|
|
12347
|
+
label: import("drizzle-orm/pg-core").PgColumn<{
|
|
12348
|
+
name: "label";
|
|
12349
|
+
tableName: "plan_options";
|
|
12350
|
+
dataType: "string";
|
|
12351
|
+
columnType: "PgText";
|
|
12352
|
+
data: string;
|
|
12353
|
+
driverParam: string;
|
|
12354
|
+
notNull: false;
|
|
12355
|
+
hasDefault: false;
|
|
12356
|
+
isPrimaryKey: false;
|
|
12357
|
+
isAutoincrement: false;
|
|
12358
|
+
hasRuntimeDefault: false;
|
|
12359
|
+
enumValues: [string, ...string[]];
|
|
12360
|
+
baseColumn: never;
|
|
12361
|
+
identity: undefined;
|
|
12362
|
+
generated: undefined;
|
|
12363
|
+
}, {}, {}>;
|
|
12364
|
+
source: import("drizzle-orm/pg-core").PgColumn<{
|
|
12365
|
+
name: "source";
|
|
12366
|
+
tableName: "plan_options";
|
|
12367
|
+
dataType: "string";
|
|
12368
|
+
columnType: "PgEnumColumn";
|
|
12369
|
+
data: "strategist" | "ai" | "derived_snapshot";
|
|
12370
|
+
driverParam: string;
|
|
12371
|
+
notNull: true;
|
|
12372
|
+
hasDefault: false;
|
|
12373
|
+
isPrimaryKey: false;
|
|
12374
|
+
isAutoincrement: false;
|
|
12375
|
+
hasRuntimeDefault: false;
|
|
12376
|
+
enumValues: ["strategist", "ai", "derived_snapshot"];
|
|
12377
|
+
baseColumn: never;
|
|
12378
|
+
identity: undefined;
|
|
12379
|
+
generated: undefined;
|
|
12380
|
+
}, {}, {}>;
|
|
12381
|
+
kind: import("drizzle-orm/pg-core").PgColumn<{
|
|
12382
|
+
name: "kind";
|
|
12383
|
+
tableName: "plan_options";
|
|
12384
|
+
dataType: "string";
|
|
12385
|
+
columnType: "PgEnumColumn";
|
|
12386
|
+
data: "base" | "alternative";
|
|
12387
|
+
driverParam: string;
|
|
12388
|
+
notNull: true;
|
|
12389
|
+
hasDefault: false;
|
|
12390
|
+
isPrimaryKey: false;
|
|
12391
|
+
isAutoincrement: false;
|
|
12392
|
+
hasRuntimeDefault: false;
|
|
12393
|
+
enumValues: ["base", "alternative"];
|
|
12394
|
+
baseColumn: never;
|
|
12395
|
+
identity: undefined;
|
|
12396
|
+
generated: undefined;
|
|
12397
|
+
}, {}, {}>;
|
|
12398
|
+
status: import("drizzle-orm/pg-core").PgColumn<{
|
|
12399
|
+
name: "status";
|
|
12400
|
+
tableName: "plan_options";
|
|
12401
|
+
dataType: "string";
|
|
12402
|
+
columnType: "PgEnumColumn";
|
|
12403
|
+
data: "archived" | "draft" | "recommended" | "selected" | "ordered";
|
|
12404
|
+
driverParam: string;
|
|
12405
|
+
notNull: true;
|
|
12406
|
+
hasDefault: true;
|
|
12407
|
+
isPrimaryKey: false;
|
|
12408
|
+
isAutoincrement: false;
|
|
12409
|
+
hasRuntimeDefault: false;
|
|
12410
|
+
enumValues: ["draft", "recommended", "selected", "ordered", "archived"];
|
|
12411
|
+
baseColumn: never;
|
|
12412
|
+
identity: undefined;
|
|
12413
|
+
generated: undefined;
|
|
12414
|
+
}, {}, {}>;
|
|
12415
|
+
derivedFromOptionId: import("drizzle-orm/pg-core").PgColumn<{
|
|
12416
|
+
name: "derived_from_option_id";
|
|
12417
|
+
tableName: "plan_options";
|
|
12418
|
+
dataType: "string";
|
|
12419
|
+
columnType: "PgVarchar";
|
|
12420
|
+
data: string;
|
|
12421
|
+
driverParam: string;
|
|
12422
|
+
notNull: false;
|
|
12423
|
+
hasDefault: false;
|
|
12424
|
+
isPrimaryKey: false;
|
|
12425
|
+
isAutoincrement: false;
|
|
12426
|
+
hasRuntimeDefault: false;
|
|
12427
|
+
enumValues: [string, ...string[]];
|
|
12428
|
+
baseColumn: never;
|
|
12429
|
+
identity: undefined;
|
|
12430
|
+
generated: undefined;
|
|
12431
|
+
}, {}, {
|
|
12432
|
+
length: number | undefined;
|
|
12433
|
+
}>;
|
|
12434
|
+
researchSnapshotId: import("drizzle-orm/pg-core").PgColumn<{
|
|
12435
|
+
name: "research_snapshot_id";
|
|
12436
|
+
tableName: "plan_options";
|
|
12437
|
+
dataType: "string";
|
|
12438
|
+
columnType: "PgVarchar";
|
|
12439
|
+
data: string;
|
|
12440
|
+
driverParam: string;
|
|
12441
|
+
notNull: false;
|
|
12442
|
+
hasDefault: false;
|
|
12443
|
+
isPrimaryKey: false;
|
|
12444
|
+
isAutoincrement: false;
|
|
12445
|
+
hasRuntimeDefault: false;
|
|
12446
|
+
enumValues: [string, ...string[]];
|
|
12447
|
+
baseColumn: never;
|
|
12448
|
+
identity: undefined;
|
|
12449
|
+
generated: undefined;
|
|
12450
|
+
}, {}, {
|
|
12451
|
+
length: number | undefined;
|
|
12452
|
+
}>;
|
|
12453
|
+
generationRunId: import("drizzle-orm/pg-core").PgColumn<{
|
|
12454
|
+
name: "generation_run_id";
|
|
12455
|
+
tableName: "plan_options";
|
|
12456
|
+
dataType: "string";
|
|
12457
|
+
columnType: "PgVarchar";
|
|
12458
|
+
data: string;
|
|
12459
|
+
driverParam: string;
|
|
12460
|
+
notNull: false;
|
|
12461
|
+
hasDefault: false;
|
|
12462
|
+
isPrimaryKey: false;
|
|
12463
|
+
isAutoincrement: false;
|
|
12464
|
+
hasRuntimeDefault: false;
|
|
12465
|
+
enumValues: [string, ...string[]];
|
|
12466
|
+
baseColumn: never;
|
|
12467
|
+
identity: undefined;
|
|
12468
|
+
generated: undefined;
|
|
12469
|
+
}, {}, {
|
|
12470
|
+
length: number | undefined;
|
|
12471
|
+
}>;
|
|
12472
|
+
budgetTotal: import("drizzle-orm/pg-core").PgColumn<{
|
|
12473
|
+
name: "budget_total";
|
|
12474
|
+
tableName: "plan_options";
|
|
12475
|
+
dataType: "number";
|
|
12476
|
+
columnType: "PgInteger";
|
|
12477
|
+
data: number;
|
|
12478
|
+
driverParam: string | number;
|
|
12479
|
+
notNull: false;
|
|
12480
|
+
hasDefault: false;
|
|
12481
|
+
isPrimaryKey: false;
|
|
12482
|
+
isAutoincrement: false;
|
|
12483
|
+
hasRuntimeDefault: false;
|
|
12484
|
+
enumValues: undefined;
|
|
12485
|
+
baseColumn: never;
|
|
12486
|
+
identity: undefined;
|
|
12487
|
+
generated: undefined;
|
|
12488
|
+
}, {}, {}>;
|
|
12489
|
+
durationMonths: import("drizzle-orm/pg-core").PgColumn<{
|
|
12490
|
+
name: "duration_months";
|
|
12491
|
+
tableName: "plan_options";
|
|
12492
|
+
dataType: "number";
|
|
12493
|
+
columnType: "PgInteger";
|
|
12494
|
+
data: number;
|
|
12495
|
+
driverParam: string | number;
|
|
12496
|
+
notNull: false;
|
|
12497
|
+
hasDefault: false;
|
|
12498
|
+
isPrimaryKey: false;
|
|
12499
|
+
isAutoincrement: false;
|
|
12500
|
+
hasRuntimeDefault: false;
|
|
12501
|
+
enumValues: undefined;
|
|
12502
|
+
baseColumn: never;
|
|
12503
|
+
identity: undefined;
|
|
12504
|
+
generated: undefined;
|
|
12505
|
+
}, {}, {}>;
|
|
12506
|
+
allocations: import("drizzle-orm/pg-core").PgColumn<{
|
|
12507
|
+
name: "allocations";
|
|
12508
|
+
tableName: "plan_options";
|
|
12509
|
+
dataType: "json";
|
|
12510
|
+
columnType: "PgJsonb";
|
|
12511
|
+
data: Record<string, any>[];
|
|
12512
|
+
driverParam: unknown;
|
|
12513
|
+
notNull: true;
|
|
12514
|
+
hasDefault: true;
|
|
12515
|
+
isPrimaryKey: false;
|
|
12516
|
+
isAutoincrement: false;
|
|
12517
|
+
hasRuntimeDefault: false;
|
|
12518
|
+
enumValues: undefined;
|
|
12519
|
+
baseColumn: never;
|
|
12520
|
+
identity: undefined;
|
|
12521
|
+
generated: undefined;
|
|
12522
|
+
}, {}, {
|
|
12523
|
+
$type: Record<string, any>[];
|
|
12524
|
+
}>;
|
|
12525
|
+
rationale: import("drizzle-orm/pg-core").PgColumn<{
|
|
12526
|
+
name: "rationale";
|
|
12527
|
+
tableName: "plan_options";
|
|
12528
|
+
dataType: "string";
|
|
12529
|
+
columnType: "PgText";
|
|
12530
|
+
data: string;
|
|
12531
|
+
driverParam: string;
|
|
12532
|
+
notNull: false;
|
|
12533
|
+
hasDefault: false;
|
|
12534
|
+
isPrimaryKey: false;
|
|
12535
|
+
isAutoincrement: false;
|
|
12536
|
+
hasRuntimeDefault: false;
|
|
12537
|
+
enumValues: [string, ...string[]];
|
|
12538
|
+
baseColumn: never;
|
|
12539
|
+
identity: undefined;
|
|
12540
|
+
generated: undefined;
|
|
12541
|
+
}, {}, {}>;
|
|
12542
|
+
assumptions: import("drizzle-orm/pg-core").PgColumn<{
|
|
12543
|
+
name: "assumptions";
|
|
12544
|
+
tableName: "plan_options";
|
|
12545
|
+
dataType: "json";
|
|
12546
|
+
columnType: "PgJsonb";
|
|
12547
|
+
data: Record<string, any>;
|
|
12548
|
+
driverParam: unknown;
|
|
12549
|
+
notNull: false;
|
|
12550
|
+
hasDefault: false;
|
|
12551
|
+
isPrimaryKey: false;
|
|
12552
|
+
isAutoincrement: false;
|
|
12553
|
+
hasRuntimeDefault: false;
|
|
12554
|
+
enumValues: undefined;
|
|
12555
|
+
baseColumn: never;
|
|
12556
|
+
identity: undefined;
|
|
12557
|
+
generated: undefined;
|
|
12558
|
+
}, {}, {
|
|
12559
|
+
$type: Record<string, any>;
|
|
12560
|
+
}>;
|
|
12561
|
+
constraints: import("drizzle-orm/pg-core").PgColumn<{
|
|
12562
|
+
name: "constraints";
|
|
12563
|
+
tableName: "plan_options";
|
|
12564
|
+
dataType: "json";
|
|
12565
|
+
columnType: "PgJsonb";
|
|
12566
|
+
data: Record<string, any>;
|
|
12567
|
+
driverParam: unknown;
|
|
12568
|
+
notNull: false;
|
|
12569
|
+
hasDefault: false;
|
|
12570
|
+
isPrimaryKey: false;
|
|
12571
|
+
isAutoincrement: false;
|
|
12572
|
+
hasRuntimeDefault: false;
|
|
12573
|
+
enumValues: undefined;
|
|
12574
|
+
baseColumn: never;
|
|
12575
|
+
identity: undefined;
|
|
12576
|
+
generated: undefined;
|
|
12577
|
+
}, {}, {
|
|
12578
|
+
$type: Record<string, any>;
|
|
12579
|
+
}>;
|
|
12580
|
+
fulfillmentNotes: import("drizzle-orm/pg-core").PgColumn<{
|
|
12581
|
+
name: "fulfillment_notes";
|
|
12582
|
+
tableName: "plan_options";
|
|
12583
|
+
dataType: "string";
|
|
12584
|
+
columnType: "PgText";
|
|
12585
|
+
data: string;
|
|
12586
|
+
driverParam: string;
|
|
12587
|
+
notNull: false;
|
|
12588
|
+
hasDefault: false;
|
|
12589
|
+
isPrimaryKey: false;
|
|
12590
|
+
isAutoincrement: false;
|
|
12591
|
+
hasRuntimeDefault: false;
|
|
12592
|
+
enumValues: [string, ...string[]];
|
|
12593
|
+
baseColumn: never;
|
|
12594
|
+
identity: undefined;
|
|
12595
|
+
generated: undefined;
|
|
12596
|
+
}, {}, {}>;
|
|
12597
|
+
generationContext: import("drizzle-orm/pg-core").PgColumn<{
|
|
12598
|
+
name: "generation_context";
|
|
12599
|
+
tableName: "plan_options";
|
|
12600
|
+
dataType: "json";
|
|
12601
|
+
columnType: "PgJsonb";
|
|
12602
|
+
data: Record<string, any>;
|
|
12603
|
+
driverParam: unknown;
|
|
12604
|
+
notNull: false;
|
|
12605
|
+
hasDefault: false;
|
|
12606
|
+
isPrimaryKey: false;
|
|
12607
|
+
isAutoincrement: false;
|
|
12608
|
+
hasRuntimeDefault: false;
|
|
12609
|
+
enumValues: undefined;
|
|
12610
|
+
baseColumn: never;
|
|
12611
|
+
identity: undefined;
|
|
12612
|
+
generated: undefined;
|
|
12613
|
+
}, {}, {
|
|
12614
|
+
$type: Record<string, any>;
|
|
12615
|
+
}>;
|
|
12616
|
+
displayOrder: import("drizzle-orm/pg-core").PgColumn<{
|
|
12617
|
+
name: "display_order";
|
|
12618
|
+
tableName: "plan_options";
|
|
12619
|
+
dataType: "number";
|
|
12620
|
+
columnType: "PgInteger";
|
|
12621
|
+
data: number;
|
|
12622
|
+
driverParam: string | number;
|
|
12623
|
+
notNull: true;
|
|
12624
|
+
hasDefault: true;
|
|
12625
|
+
isPrimaryKey: false;
|
|
12626
|
+
isAutoincrement: false;
|
|
12627
|
+
hasRuntimeDefault: false;
|
|
12628
|
+
enumValues: undefined;
|
|
12629
|
+
baseColumn: never;
|
|
12630
|
+
identity: undefined;
|
|
12631
|
+
generated: undefined;
|
|
12632
|
+
}, {}, {}>;
|
|
12633
|
+
createdBy: import("drizzle-orm/pg-core").PgColumn<{
|
|
12634
|
+
name: "created_by";
|
|
12635
|
+
tableName: "plan_options";
|
|
12636
|
+
dataType: "string";
|
|
12637
|
+
columnType: "PgText";
|
|
12638
|
+
data: string;
|
|
12639
|
+
driverParam: string;
|
|
12640
|
+
notNull: false;
|
|
12641
|
+
hasDefault: false;
|
|
12642
|
+
isPrimaryKey: false;
|
|
12643
|
+
isAutoincrement: false;
|
|
12644
|
+
hasRuntimeDefault: false;
|
|
12645
|
+
enumValues: [string, ...string[]];
|
|
12646
|
+
baseColumn: never;
|
|
12647
|
+
identity: undefined;
|
|
12648
|
+
generated: undefined;
|
|
12649
|
+
}, {}, {}>;
|
|
12650
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
12651
|
+
name: "created_at";
|
|
12652
|
+
tableName: "plan_options";
|
|
12653
|
+
dataType: "date";
|
|
12654
|
+
columnType: "PgTimestamp";
|
|
12655
|
+
data: Date;
|
|
12656
|
+
driverParam: string;
|
|
12657
|
+
notNull: true;
|
|
12658
|
+
hasDefault: true;
|
|
12659
|
+
isPrimaryKey: false;
|
|
12660
|
+
isAutoincrement: false;
|
|
12661
|
+
hasRuntimeDefault: false;
|
|
12662
|
+
enumValues: undefined;
|
|
12663
|
+
baseColumn: never;
|
|
12664
|
+
identity: undefined;
|
|
12665
|
+
generated: undefined;
|
|
12666
|
+
}, {}, {}>;
|
|
12667
|
+
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
12668
|
+
name: "updated_at";
|
|
12669
|
+
tableName: "plan_options";
|
|
12670
|
+
dataType: "date";
|
|
12671
|
+
columnType: "PgTimestamp";
|
|
12672
|
+
data: Date;
|
|
12673
|
+
driverParam: string;
|
|
12674
|
+
notNull: true;
|
|
12675
|
+
hasDefault: true;
|
|
12676
|
+
isPrimaryKey: false;
|
|
12677
|
+
isAutoincrement: false;
|
|
12678
|
+
hasRuntimeDefault: false;
|
|
12679
|
+
enumValues: undefined;
|
|
12680
|
+
baseColumn: never;
|
|
12681
|
+
identity: undefined;
|
|
12682
|
+
generated: undefined;
|
|
12683
|
+
}, {}, {}>;
|
|
12684
|
+
};
|
|
12685
|
+
dialect: "pg";
|
|
12686
|
+
}>;
|
|
12687
|
+
export declare const insertPlanOptionSchema: z.ZodObject<Omit<{
|
|
12688
|
+
id: z.ZodOptional<z.ZodString>;
|
|
12689
|
+
planId: z.ZodString;
|
|
12690
|
+
engagementId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12691
|
+
legacyConfigurationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12692
|
+
legacyTierKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12693
|
+
name: z.ZodString;
|
|
12694
|
+
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12695
|
+
source: z.ZodEnum<["strategist", "ai", "derived_snapshot"]>;
|
|
12696
|
+
kind: z.ZodEnum<["base", "alternative"]>;
|
|
12697
|
+
status: z.ZodOptional<z.ZodEnum<["draft", "recommended", "selected", "ordered", "archived"]>>;
|
|
12698
|
+
derivedFromOptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12699
|
+
researchSnapshotId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12700
|
+
generationRunId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12701
|
+
budgetTotal: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
12702
|
+
durationMonths: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
12703
|
+
allocations: z.ZodOptional<z.ZodType<Record<string, any>[], z.ZodTypeDef, Record<string, any>[]>>;
|
|
12704
|
+
rationale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12705
|
+
assumptions: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, any>, z.ZodTypeDef, Record<string, any>>>>;
|
|
12706
|
+
constraints: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, any>, z.ZodTypeDef, Record<string, any>>>>;
|
|
12707
|
+
fulfillmentNotes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12708
|
+
generationContext: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, any>, z.ZodTypeDef, Record<string, any>>>>;
|
|
12709
|
+
displayOrder: z.ZodOptional<z.ZodNumber>;
|
|
12710
|
+
createdBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12711
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
12712
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
12713
|
+
}, "id" | "createdAt" | "updatedAt">, "strip", z.ZodTypeAny, {
|
|
12714
|
+
name: string;
|
|
12715
|
+
source: "strategist" | "ai" | "derived_snapshot";
|
|
12716
|
+
planId: string;
|
|
12717
|
+
kind: "base" | "alternative";
|
|
12718
|
+
status?: "archived" | "draft" | "recommended" | "selected" | "ordered" | undefined;
|
|
12719
|
+
displayOrder?: number | undefined;
|
|
12720
|
+
assumptions?: Record<string, any> | null | undefined;
|
|
12721
|
+
rationale?: string | null | undefined;
|
|
12722
|
+
allocations?: Record<string, any>[] | undefined;
|
|
12723
|
+
createdBy?: string | null | undefined;
|
|
12724
|
+
engagementId?: string | null | undefined;
|
|
12725
|
+
durationMonths?: number | null | undefined;
|
|
12726
|
+
constraints?: Record<string, any> | null | undefined;
|
|
12727
|
+
legacyConfigurationId?: string | null | undefined;
|
|
12728
|
+
legacyTierKey?: string | null | undefined;
|
|
12729
|
+
label?: string | null | undefined;
|
|
12730
|
+
derivedFromOptionId?: string | null | undefined;
|
|
12731
|
+
researchSnapshotId?: string | null | undefined;
|
|
12732
|
+
generationRunId?: string | null | undefined;
|
|
12733
|
+
budgetTotal?: number | null | undefined;
|
|
12734
|
+
fulfillmentNotes?: string | null | undefined;
|
|
12735
|
+
generationContext?: Record<string, any> | null | undefined;
|
|
12736
|
+
}, {
|
|
12737
|
+
name: string;
|
|
12738
|
+
source: "strategist" | "ai" | "derived_snapshot";
|
|
12739
|
+
planId: string;
|
|
12740
|
+
kind: "base" | "alternative";
|
|
12741
|
+
status?: "archived" | "draft" | "recommended" | "selected" | "ordered" | undefined;
|
|
12742
|
+
displayOrder?: number | undefined;
|
|
12743
|
+
assumptions?: Record<string, any> | null | undefined;
|
|
12744
|
+
rationale?: string | null | undefined;
|
|
12745
|
+
allocations?: Record<string, any>[] | undefined;
|
|
12746
|
+
createdBy?: string | null | undefined;
|
|
12747
|
+
engagementId?: string | null | undefined;
|
|
12748
|
+
durationMonths?: number | null | undefined;
|
|
12749
|
+
constraints?: Record<string, any> | null | undefined;
|
|
12750
|
+
legacyConfigurationId?: string | null | undefined;
|
|
12751
|
+
legacyTierKey?: string | null | undefined;
|
|
12752
|
+
label?: string | null | undefined;
|
|
12753
|
+
derivedFromOptionId?: string | null | undefined;
|
|
12754
|
+
researchSnapshotId?: string | null | undefined;
|
|
12755
|
+
generationRunId?: string | null | undefined;
|
|
12756
|
+
budgetTotal?: number | null | undefined;
|
|
12757
|
+
fulfillmentNotes?: string | null | undefined;
|
|
12758
|
+
generationContext?: Record<string, any> | null | undefined;
|
|
12759
|
+
}>;
|
|
12760
|
+
export type InsertPlanOption = z.infer<typeof insertPlanOptionSchema>;
|
|
12761
|
+
export type PlanOption = typeof planOptions.$inferSelect;
|
|
12762
|
+
export declare const researchRuns: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
12763
|
+
name: "research_runs";
|
|
12764
|
+
schema: undefined;
|
|
12765
|
+
columns: {
|
|
12766
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
12767
|
+
name: "id";
|
|
12768
|
+
tableName: "research_runs";
|
|
12769
|
+
dataType: "string";
|
|
12770
|
+
columnType: "PgVarchar";
|
|
12771
|
+
data: string;
|
|
12772
|
+
driverParam: string;
|
|
12773
|
+
notNull: true;
|
|
12774
|
+
hasDefault: true;
|
|
12775
|
+
isPrimaryKey: true;
|
|
12776
|
+
isAutoincrement: false;
|
|
12777
|
+
hasRuntimeDefault: false;
|
|
12778
|
+
enumValues: [string, ...string[]];
|
|
12779
|
+
baseColumn: never;
|
|
12780
|
+
identity: undefined;
|
|
12781
|
+
generated: undefined;
|
|
12782
|
+
}, {}, {
|
|
12783
|
+
length: number | undefined;
|
|
12784
|
+
}>;
|
|
12785
|
+
triggerRunId: import("drizzle-orm/pg-core").PgColumn<{
|
|
12786
|
+
name: "trigger_run_id";
|
|
12787
|
+
tableName: "research_runs";
|
|
12788
|
+
dataType: "string";
|
|
12789
|
+
columnType: "PgVarchar";
|
|
12790
|
+
data: string;
|
|
12791
|
+
driverParam: string;
|
|
12792
|
+
notNull: false;
|
|
12793
|
+
hasDefault: false;
|
|
12794
|
+
isPrimaryKey: false;
|
|
12795
|
+
isAutoincrement: false;
|
|
12796
|
+
hasRuntimeDefault: false;
|
|
12797
|
+
enumValues: [string, ...string[]];
|
|
12798
|
+
baseColumn: never;
|
|
12799
|
+
identity: undefined;
|
|
12800
|
+
generated: undefined;
|
|
12801
|
+
}, {}, {
|
|
12802
|
+
length: number | undefined;
|
|
12803
|
+
}>;
|
|
12804
|
+
taskId: import("drizzle-orm/pg-core").PgColumn<{
|
|
12805
|
+
name: "task_id";
|
|
12806
|
+
tableName: "research_runs";
|
|
12807
|
+
dataType: "string";
|
|
12808
|
+
columnType: "PgText";
|
|
12809
|
+
data: string;
|
|
12810
|
+
driverParam: string;
|
|
12811
|
+
notNull: true;
|
|
12812
|
+
hasDefault: false;
|
|
12813
|
+
isPrimaryKey: false;
|
|
12814
|
+
isAutoincrement: false;
|
|
12815
|
+
hasRuntimeDefault: false;
|
|
12816
|
+
enumValues: [string, ...string[]];
|
|
12817
|
+
baseColumn: never;
|
|
12818
|
+
identity: undefined;
|
|
12819
|
+
generated: undefined;
|
|
12820
|
+
}, {}, {}>;
|
|
12821
|
+
engagementId: import("drizzle-orm/pg-core").PgColumn<{
|
|
12822
|
+
name: "engagement_id";
|
|
12823
|
+
tableName: "research_runs";
|
|
12824
|
+
dataType: "string";
|
|
12825
|
+
columnType: "PgVarchar";
|
|
12826
|
+
data: string;
|
|
12827
|
+
driverParam: string;
|
|
12828
|
+
notNull: false;
|
|
12829
|
+
hasDefault: false;
|
|
12830
|
+
isPrimaryKey: false;
|
|
12831
|
+
isAutoincrement: false;
|
|
12832
|
+
hasRuntimeDefault: false;
|
|
12833
|
+
enumValues: [string, ...string[]];
|
|
12834
|
+
baseColumn: never;
|
|
12835
|
+
identity: undefined;
|
|
12836
|
+
generated: undefined;
|
|
12837
|
+
}, {}, {
|
|
12838
|
+
length: number | undefined;
|
|
12839
|
+
}>;
|
|
12840
|
+
planId: import("drizzle-orm/pg-core").PgColumn<{
|
|
12841
|
+
name: "plan_id";
|
|
12842
|
+
tableName: "research_runs";
|
|
12843
|
+
dataType: "string";
|
|
12844
|
+
columnType: "PgVarchar";
|
|
12845
|
+
data: string;
|
|
12846
|
+
driverParam: string;
|
|
12847
|
+
notNull: false;
|
|
12848
|
+
hasDefault: false;
|
|
12849
|
+
isPrimaryKey: false;
|
|
12850
|
+
isAutoincrement: false;
|
|
12851
|
+
hasRuntimeDefault: false;
|
|
12852
|
+
enumValues: [string, ...string[]];
|
|
12853
|
+
baseColumn: never;
|
|
12854
|
+
identity: undefined;
|
|
12855
|
+
generated: undefined;
|
|
12856
|
+
}, {}, {
|
|
12857
|
+
length: number | undefined;
|
|
12858
|
+
}>;
|
|
12859
|
+
researchSnapshotId: import("drizzle-orm/pg-core").PgColumn<{
|
|
12860
|
+
name: "research_snapshot_id";
|
|
12861
|
+
tableName: "research_runs";
|
|
12862
|
+
dataType: "string";
|
|
12863
|
+
columnType: "PgVarchar";
|
|
12864
|
+
data: string;
|
|
12865
|
+
driverParam: string;
|
|
12866
|
+
notNull: false;
|
|
11516
12867
|
hasDefault: false;
|
|
11517
12868
|
isPrimaryKey: false;
|
|
11518
12869
|
isAutoincrement: false;
|
|
@@ -11524,26 +12875,26 @@ export declare const planConfigurations: import("drizzle-orm/pg-core").PgTableWi
|
|
|
11524
12875
|
}, {}, {
|
|
11525
12876
|
length: number | undefined;
|
|
11526
12877
|
}>;
|
|
11527
|
-
|
|
11528
|
-
name: "
|
|
11529
|
-
tableName: "
|
|
12878
|
+
status: import("drizzle-orm/pg-core").PgColumn<{
|
|
12879
|
+
name: "status";
|
|
12880
|
+
tableName: "research_runs";
|
|
11530
12881
|
dataType: "string";
|
|
11531
|
-
columnType: "
|
|
11532
|
-
data:
|
|
12882
|
+
columnType: "PgEnumColumn";
|
|
12883
|
+
data: "completed" | "failed" | "queued" | "running" | "cancelled" | "reused";
|
|
11533
12884
|
driverParam: string;
|
|
11534
12885
|
notNull: true;
|
|
11535
|
-
hasDefault:
|
|
12886
|
+
hasDefault: true;
|
|
11536
12887
|
isPrimaryKey: false;
|
|
11537
12888
|
isAutoincrement: false;
|
|
11538
12889
|
hasRuntimeDefault: false;
|
|
11539
|
-
enumValues: [
|
|
12890
|
+
enumValues: ["queued", "running", "completed", "failed", "cancelled", "reused"];
|
|
11540
12891
|
baseColumn: never;
|
|
11541
12892
|
identity: undefined;
|
|
11542
12893
|
generated: undefined;
|
|
11543
12894
|
}, {}, {}>;
|
|
11544
|
-
|
|
11545
|
-
name: "
|
|
11546
|
-
tableName: "
|
|
12895
|
+
requestedBy: import("drizzle-orm/pg-core").PgColumn<{
|
|
12896
|
+
name: "requested_by";
|
|
12897
|
+
tableName: "research_runs";
|
|
11547
12898
|
dataType: "string";
|
|
11548
12899
|
columnType: "PgText";
|
|
11549
12900
|
data: string;
|
|
@@ -11558,47 +12909,47 @@ export declare const planConfigurations: import("drizzle-orm/pg-core").PgTableWi
|
|
|
11558
12909
|
identity: undefined;
|
|
11559
12910
|
generated: undefined;
|
|
11560
12911
|
}, {}, {}>;
|
|
11561
|
-
|
|
11562
|
-
name: "
|
|
11563
|
-
tableName: "
|
|
11564
|
-
dataType: "
|
|
11565
|
-
columnType: "
|
|
11566
|
-
data:
|
|
11567
|
-
driverParam:
|
|
11568
|
-
notNull:
|
|
12912
|
+
runReason: import("drizzle-orm/pg-core").PgColumn<{
|
|
12913
|
+
name: "run_reason";
|
|
12914
|
+
tableName: "research_runs";
|
|
12915
|
+
dataType: "string";
|
|
12916
|
+
columnType: "PgText";
|
|
12917
|
+
data: string;
|
|
12918
|
+
driverParam: string;
|
|
12919
|
+
notNull: false;
|
|
11569
12920
|
hasDefault: false;
|
|
11570
12921
|
isPrimaryKey: false;
|
|
11571
12922
|
isAutoincrement: false;
|
|
11572
12923
|
hasRuntimeDefault: false;
|
|
11573
|
-
enumValues:
|
|
12924
|
+
enumValues: [string, ...string[]];
|
|
11574
12925
|
baseColumn: never;
|
|
11575
12926
|
identity: undefined;
|
|
11576
12927
|
generated: undefined;
|
|
11577
12928
|
}, {}, {}>;
|
|
11578
|
-
|
|
11579
|
-
name: "
|
|
11580
|
-
tableName: "
|
|
11581
|
-
dataType: "
|
|
11582
|
-
columnType: "
|
|
11583
|
-
data:
|
|
11584
|
-
driverParam: string
|
|
12929
|
+
inputHash: import("drizzle-orm/pg-core").PgColumn<{
|
|
12930
|
+
name: "input_hash";
|
|
12931
|
+
tableName: "research_runs";
|
|
12932
|
+
dataType: "string";
|
|
12933
|
+
columnType: "PgText";
|
|
12934
|
+
data: string;
|
|
12935
|
+
driverParam: string;
|
|
11585
12936
|
notNull: false;
|
|
11586
12937
|
hasDefault: false;
|
|
11587
12938
|
isPrimaryKey: false;
|
|
11588
12939
|
isAutoincrement: false;
|
|
11589
12940
|
hasRuntimeDefault: false;
|
|
11590
|
-
enumValues:
|
|
12941
|
+
enumValues: [string, ...string[]];
|
|
11591
12942
|
baseColumn: never;
|
|
11592
12943
|
identity: undefined;
|
|
11593
12944
|
generated: undefined;
|
|
11594
12945
|
}, {}, {}>;
|
|
11595
|
-
|
|
11596
|
-
name: "
|
|
11597
|
-
tableName: "
|
|
11598
|
-
dataType: "
|
|
11599
|
-
columnType: "
|
|
11600
|
-
data:
|
|
11601
|
-
driverParam:
|
|
12946
|
+
costMeta: import("drizzle-orm/pg-core").PgColumn<{
|
|
12947
|
+
name: "cost_meta";
|
|
12948
|
+
tableName: "research_runs";
|
|
12949
|
+
dataType: "json";
|
|
12950
|
+
columnType: "PgJsonb";
|
|
12951
|
+
data: Record<string, any>;
|
|
12952
|
+
driverParam: unknown;
|
|
11602
12953
|
notNull: false;
|
|
11603
12954
|
hasDefault: false;
|
|
11604
12955
|
isPrimaryKey: false;
|
|
@@ -11608,33 +12959,18 @@ export declare const planConfigurations: import("drizzle-orm/pg-core").PgTableWi
|
|
|
11608
12959
|
baseColumn: never;
|
|
11609
12960
|
identity: undefined;
|
|
11610
12961
|
generated: undefined;
|
|
11611
|
-
}, {}, {
|
|
11612
|
-
|
|
11613
|
-
|
|
11614
|
-
|
|
11615
|
-
|
|
11616
|
-
|
|
11617
|
-
|
|
11618
|
-
|
|
11619
|
-
|
|
11620
|
-
|
|
11621
|
-
|
|
11622
|
-
|
|
11623
|
-
hasRuntimeDefault: false;
|
|
11624
|
-
enumValues: undefined;
|
|
11625
|
-
baseColumn: never;
|
|
11626
|
-
identity: undefined;
|
|
11627
|
-
generated: undefined;
|
|
11628
|
-
}, {}, {}>;
|
|
11629
|
-
isRecommended: import("drizzle-orm/pg-core").PgColumn<{
|
|
11630
|
-
name: "is_recommended";
|
|
11631
|
-
tableName: "plan_configurations";
|
|
11632
|
-
dataType: "boolean";
|
|
11633
|
-
columnType: "PgBoolean";
|
|
11634
|
-
data: boolean;
|
|
11635
|
-
driverParam: boolean;
|
|
11636
|
-
notNull: true;
|
|
11637
|
-
hasDefault: true;
|
|
12962
|
+
}, {}, {
|
|
12963
|
+
$type: Record<string, any>;
|
|
12964
|
+
}>;
|
|
12965
|
+
startedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
12966
|
+
name: "started_at";
|
|
12967
|
+
tableName: "research_runs";
|
|
12968
|
+
dataType: "date";
|
|
12969
|
+
columnType: "PgTimestamp";
|
|
12970
|
+
data: Date;
|
|
12971
|
+
driverParam: string;
|
|
12972
|
+
notNull: false;
|
|
12973
|
+
hasDefault: false;
|
|
11638
12974
|
isPrimaryKey: false;
|
|
11639
12975
|
isAutoincrement: false;
|
|
11640
12976
|
hasRuntimeDefault: false;
|
|
@@ -11643,15 +12979,15 @@ export declare const planConfigurations: import("drizzle-orm/pg-core").PgTableWi
|
|
|
11643
12979
|
identity: undefined;
|
|
11644
12980
|
generated: undefined;
|
|
11645
12981
|
}, {}, {}>;
|
|
11646
|
-
|
|
11647
|
-
name: "
|
|
11648
|
-
tableName: "
|
|
11649
|
-
dataType: "
|
|
11650
|
-
columnType: "
|
|
11651
|
-
data:
|
|
11652
|
-
driverParam: string
|
|
11653
|
-
notNull:
|
|
11654
|
-
hasDefault:
|
|
12982
|
+
completedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
12983
|
+
name: "completed_at";
|
|
12984
|
+
tableName: "research_runs";
|
|
12985
|
+
dataType: "date";
|
|
12986
|
+
columnType: "PgTimestamp";
|
|
12987
|
+
data: Date;
|
|
12988
|
+
driverParam: string;
|
|
12989
|
+
notNull: false;
|
|
12990
|
+
hasDefault: false;
|
|
11655
12991
|
isPrimaryKey: false;
|
|
11656
12992
|
isAutoincrement: false;
|
|
11657
12993
|
hasRuntimeDefault: false;
|
|
@@ -11660,9 +12996,9 @@ export declare const planConfigurations: import("drizzle-orm/pg-core").PgTableWi
|
|
|
11660
12996
|
identity: undefined;
|
|
11661
12997
|
generated: undefined;
|
|
11662
12998
|
}, {}, {}>;
|
|
11663
|
-
|
|
11664
|
-
name: "
|
|
11665
|
-
tableName: "
|
|
12999
|
+
error: import("drizzle-orm/pg-core").PgColumn<{
|
|
13000
|
+
name: "error";
|
|
13001
|
+
tableName: "research_runs";
|
|
11666
13002
|
dataType: "string";
|
|
11667
13003
|
columnType: "PgText";
|
|
11668
13004
|
data: string;
|
|
@@ -11679,24 +13015,7 @@ export declare const planConfigurations: import("drizzle-orm/pg-core").PgTableWi
|
|
|
11679
13015
|
}, {}, {}>;
|
|
11680
13016
|
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
11681
13017
|
name: "created_at";
|
|
11682
|
-
tableName: "
|
|
11683
|
-
dataType: "date";
|
|
11684
|
-
columnType: "PgTimestamp";
|
|
11685
|
-
data: Date;
|
|
11686
|
-
driverParam: string;
|
|
11687
|
-
notNull: true;
|
|
11688
|
-
hasDefault: true;
|
|
11689
|
-
isPrimaryKey: false;
|
|
11690
|
-
isAutoincrement: false;
|
|
11691
|
-
hasRuntimeDefault: false;
|
|
11692
|
-
enumValues: undefined;
|
|
11693
|
-
baseColumn: never;
|
|
11694
|
-
identity: undefined;
|
|
11695
|
-
generated: undefined;
|
|
11696
|
-
}, {}, {}>;
|
|
11697
|
-
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
11698
|
-
name: "updated_at";
|
|
11699
|
-
tableName: "plan_configurations";
|
|
13018
|
+
tableName: "research_runs";
|
|
11700
13019
|
dataType: "date";
|
|
11701
13020
|
columnType: "PgTimestamp";
|
|
11702
13021
|
data: Date;
|
|
@@ -11714,45 +13033,53 @@ export declare const planConfigurations: import("drizzle-orm/pg-core").PgTableWi
|
|
|
11714
13033
|
};
|
|
11715
13034
|
dialect: "pg";
|
|
11716
13035
|
}>;
|
|
11717
|
-
export declare const
|
|
13036
|
+
export declare const insertResearchRunSchema: z.ZodObject<Omit<{
|
|
11718
13037
|
id: z.ZodOptional<z.ZodString>;
|
|
11719
|
-
|
|
11720
|
-
|
|
11721
|
-
|
|
11722
|
-
|
|
11723
|
-
|
|
11724
|
-
|
|
11725
|
-
|
|
11726
|
-
|
|
11727
|
-
|
|
11728
|
-
|
|
13038
|
+
triggerRunId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13039
|
+
taskId: z.ZodString;
|
|
13040
|
+
engagementId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13041
|
+
planId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13042
|
+
researchSnapshotId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13043
|
+
status: z.ZodOptional<z.ZodEnum<["queued", "running", "completed", "failed", "cancelled", "reused"]>>;
|
|
13044
|
+
requestedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13045
|
+
runReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13046
|
+
inputHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13047
|
+
costMeta: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, any>, z.ZodTypeDef, Record<string, any>>>>;
|
|
13048
|
+
startedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
13049
|
+
completedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
13050
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11729
13051
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
11730
|
-
|
|
11731
|
-
|
|
11732
|
-
|
|
11733
|
-
|
|
11734
|
-
|
|
11735
|
-
|
|
11736
|
-
|
|
11737
|
-
|
|
11738
|
-
|
|
11739
|
-
|
|
11740
|
-
|
|
11741
|
-
|
|
13052
|
+
}, "id" | "createdAt">, "strip", z.ZodTypeAny, {
|
|
13053
|
+
taskId: string;
|
|
13054
|
+
status?: "completed" | "failed" | "queued" | "running" | "cancelled" | "reused" | undefined;
|
|
13055
|
+
engagementId?: string | null | undefined;
|
|
13056
|
+
triggerRunId?: string | null | undefined;
|
|
13057
|
+
planId?: string | null | undefined;
|
|
13058
|
+
costMeta?: Record<string, any> | null | undefined;
|
|
13059
|
+
researchSnapshotId?: string | null | undefined;
|
|
13060
|
+
requestedBy?: string | null | undefined;
|
|
13061
|
+
runReason?: string | null | undefined;
|
|
13062
|
+
inputHash?: string | null | undefined;
|
|
13063
|
+
startedAt?: Date | null | undefined;
|
|
13064
|
+
completedAt?: Date | null | undefined;
|
|
13065
|
+
error?: string | null | undefined;
|
|
11742
13066
|
}, {
|
|
11743
|
-
|
|
11744
|
-
|
|
11745
|
-
|
|
11746
|
-
|
|
11747
|
-
|
|
11748
|
-
|
|
11749
|
-
|
|
11750
|
-
|
|
11751
|
-
|
|
11752
|
-
|
|
13067
|
+
taskId: string;
|
|
13068
|
+
status?: "completed" | "failed" | "queued" | "running" | "cancelled" | "reused" | undefined;
|
|
13069
|
+
engagementId?: string | null | undefined;
|
|
13070
|
+
triggerRunId?: string | null | undefined;
|
|
13071
|
+
planId?: string | null | undefined;
|
|
13072
|
+
costMeta?: Record<string, any> | null | undefined;
|
|
13073
|
+
researchSnapshotId?: string | null | undefined;
|
|
13074
|
+
requestedBy?: string | null | undefined;
|
|
13075
|
+
runReason?: string | null | undefined;
|
|
13076
|
+
inputHash?: string | null | undefined;
|
|
13077
|
+
startedAt?: Date | null | undefined;
|
|
13078
|
+
completedAt?: Date | null | undefined;
|
|
13079
|
+
error?: string | null | undefined;
|
|
11753
13080
|
}>;
|
|
11754
|
-
export type
|
|
11755
|
-
export type
|
|
13081
|
+
export type InsertResearchRun = z.infer<typeof insertResearchRunSchema>;
|
|
13082
|
+
export type ResearchRun = typeof researchRuns.$inferSelect;
|
|
11756
13083
|
export declare const jobs: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
11757
13084
|
name: "jobs";
|
|
11758
13085
|
schema: undefined;
|
|
@@ -11901,9 +13228,9 @@ export declare const jobs: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
11901
13228
|
export declare const insertJobSchema: z.ZodObject<{
|
|
11902
13229
|
status: z.ZodOptional<z.ZodString>;
|
|
11903
13230
|
type: z.ZodString;
|
|
13231
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11904
13232
|
input: z.ZodType<import("drizzle-zod").Json, z.ZodTypeDef, import("drizzle-zod").Json>;
|
|
11905
13233
|
result: z.ZodOptional<z.ZodNullable<z.ZodType<import("drizzle-zod").Json, z.ZodTypeDef, import("drizzle-zod").Json>>>;
|
|
11906
|
-
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11907
13234
|
} & {
|
|
11908
13235
|
id: z.ZodOptional<z.ZodString>;
|
|
11909
13236
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -11911,15 +13238,15 @@ export declare const insertJobSchema: z.ZodObject<{
|
|
|
11911
13238
|
input: import("drizzle-zod").Json;
|
|
11912
13239
|
status?: string | undefined;
|
|
11913
13240
|
id?: string | undefined;
|
|
11914
|
-
result?: import("drizzle-zod").Json | undefined;
|
|
11915
13241
|
error?: string | null | undefined;
|
|
13242
|
+
result?: import("drizzle-zod").Json | undefined;
|
|
11916
13243
|
}, {
|
|
11917
13244
|
type: string;
|
|
11918
13245
|
input: import("drizzle-zod").Json;
|
|
11919
13246
|
status?: string | undefined;
|
|
11920
13247
|
id?: string | undefined;
|
|
11921
|
-
result?: import("drizzle-zod").Json | undefined;
|
|
11922
13248
|
error?: string | null | undefined;
|
|
13249
|
+
result?: import("drizzle-zod").Json | undefined;
|
|
11923
13250
|
}>;
|
|
11924
13251
|
export type InsertJob = z.infer<typeof insertJobSchema>;
|
|
11925
13252
|
export type Job = typeof jobs.$inferSelect;
|
|
@@ -12337,8 +13664,9 @@ export declare const insertJobRunSchema: z.ZodObject<Omit<{
|
|
|
12337
13664
|
stage?: string | null | undefined;
|
|
12338
13665
|
createdByUserId?: string | null | undefined;
|
|
12339
13666
|
ownerOrgId?: string | null | undefined;
|
|
12340
|
-
|
|
13667
|
+
startedAt?: Date | null | undefined;
|
|
12341
13668
|
completedAt?: Date | null | undefined;
|
|
13669
|
+
error?: string | null | undefined;
|
|
12342
13670
|
tenantId?: string | null | undefined;
|
|
12343
13671
|
progress?: number | undefined;
|
|
12344
13672
|
phase?: string | undefined;
|
|
@@ -12346,7 +13674,6 @@ export declare const insertJobRunSchema: z.ZodObject<Omit<{
|
|
|
12346
13674
|
isPlanStale?: boolean | undefined;
|
|
12347
13675
|
competitorHash?: string | null | undefined;
|
|
12348
13676
|
meta?: import("drizzle-zod").Json | undefined;
|
|
12349
|
-
startedAt?: Date | null | undefined;
|
|
12350
13677
|
version?: number | undefined;
|
|
12351
13678
|
latest?: boolean | undefined;
|
|
12352
13679
|
prospectId?: string | null | undefined;
|
|
@@ -12358,8 +13685,9 @@ export declare const insertJobRunSchema: z.ZodObject<Omit<{
|
|
|
12358
13685
|
stage?: string | null | undefined;
|
|
12359
13686
|
createdByUserId?: string | null | undefined;
|
|
12360
13687
|
ownerOrgId?: string | null | undefined;
|
|
12361
|
-
|
|
13688
|
+
startedAt?: Date | null | undefined;
|
|
12362
13689
|
completedAt?: Date | null | undefined;
|
|
13690
|
+
error?: string | null | undefined;
|
|
12363
13691
|
tenantId?: string | null | undefined;
|
|
12364
13692
|
progress?: number | undefined;
|
|
12365
13693
|
phase?: string | undefined;
|
|
@@ -12367,7 +13695,6 @@ export declare const insertJobRunSchema: z.ZodObject<Omit<{
|
|
|
12367
13695
|
isPlanStale?: boolean | undefined;
|
|
12368
13696
|
competitorHash?: string | null | undefined;
|
|
12369
13697
|
meta?: import("drizzle-zod").Json | undefined;
|
|
12370
|
-
startedAt?: Date | null | undefined;
|
|
12371
13698
|
version?: number | undefined;
|
|
12372
13699
|
latest?: boolean | undefined;
|
|
12373
13700
|
prospectId?: string | null | undefined;
|
|
@@ -28888,8 +30215,8 @@ export declare const insertPlanEnrichmentsSchema: z.ZodObject<Omit<{
|
|
|
28888
30215
|
requestedByUserId: string;
|
|
28889
30216
|
status?: string | undefined;
|
|
28890
30217
|
strategy?: string | null | undefined;
|
|
28891
|
-
completedAt?: Date | null | undefined;
|
|
28892
30218
|
startedAt?: Date | null | undefined;
|
|
30219
|
+
completedAt?: Date | null | undefined;
|
|
28893
30220
|
metadata?: {
|
|
28894
30221
|
creditsUsed?: number;
|
|
28895
30222
|
totalCost?: number;
|
|
@@ -28908,8 +30235,8 @@ export declare const insertPlanEnrichmentsSchema: z.ZodObject<Omit<{
|
|
|
28908
30235
|
requestedByUserId: string;
|
|
28909
30236
|
status?: string | undefined;
|
|
28910
30237
|
strategy?: string | null | undefined;
|
|
28911
|
-
completedAt?: Date | null | undefined;
|
|
28912
30238
|
startedAt?: Date | null | undefined;
|
|
30239
|
+
completedAt?: Date | null | undefined;
|
|
28913
30240
|
metadata?: {
|
|
28914
30241
|
creditsUsed?: number;
|
|
28915
30242
|
totalCost?: number;
|
|
@@ -29210,8 +30537,8 @@ export declare const insertAuditResultSchema: z.ZodObject<Omit<{
|
|
|
29210
30537
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
29211
30538
|
}, "id" | "createdAt">, "strip", z.ZodTypeAny, {
|
|
29212
30539
|
status: "failed" | "error" | "passed" | "warning";
|
|
29213
|
-
completedAt: Date;
|
|
29214
30540
|
startedAt: Date;
|
|
30541
|
+
completedAt: Date;
|
|
29215
30542
|
auditType: string;
|
|
29216
30543
|
frequency: "daily" | "hourly" | "weekly" | "continuous";
|
|
29217
30544
|
summary: string;
|
|
@@ -29231,8 +30558,8 @@ export declare const insertAuditResultSchema: z.ZodObject<Omit<{
|
|
|
29231
30558
|
triggeredBy?: string | null | undefined;
|
|
29232
30559
|
}, {
|
|
29233
30560
|
status: "failed" | "error" | "passed" | "warning";
|
|
29234
|
-
completedAt: Date;
|
|
29235
30561
|
startedAt: Date;
|
|
30562
|
+
completedAt: Date;
|
|
29236
30563
|
auditType: string;
|
|
29237
30564
|
frequency: "daily" | "hourly" | "weekly" | "continuous";
|
|
29238
30565
|
summary: string;
|
|
@@ -32976,6 +34303,25 @@ export declare const mediaOrders: import("drizzle-orm/pg-core").PgTableWithColum
|
|
|
32976
34303
|
}, {}, {
|
|
32977
34304
|
length: number | undefined;
|
|
32978
34305
|
}>;
|
|
34306
|
+
optionId: import("drizzle-orm/pg-core").PgColumn<{
|
|
34307
|
+
name: "option_id";
|
|
34308
|
+
tableName: "media_orders";
|
|
34309
|
+
dataType: "string";
|
|
34310
|
+
columnType: "PgVarchar";
|
|
34311
|
+
data: string;
|
|
34312
|
+
driverParam: string;
|
|
34313
|
+
notNull: false;
|
|
34314
|
+
hasDefault: false;
|
|
34315
|
+
isPrimaryKey: false;
|
|
34316
|
+
isAutoincrement: false;
|
|
34317
|
+
hasRuntimeDefault: false;
|
|
34318
|
+
enumValues: [string, ...string[]];
|
|
34319
|
+
baseColumn: never;
|
|
34320
|
+
identity: undefined;
|
|
34321
|
+
generated: undefined;
|
|
34322
|
+
}, {}, {
|
|
34323
|
+
length: number | undefined;
|
|
34324
|
+
}>;
|
|
32979
34325
|
contractId: import("drizzle-orm/pg-core").PgColumn<{
|
|
32980
34326
|
name: "contract_id";
|
|
32981
34327
|
tableName: "media_orders";
|
|
@@ -34327,6 +35673,7 @@ export declare const insertMediaOrderSchema: z.ZodObject<Omit<{
|
|
|
34327
35673
|
planId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34328
35674
|
engagementId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34329
35675
|
configurationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35676
|
+
optionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34330
35677
|
contractId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34331
35678
|
partnerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34332
35679
|
hubspotDealId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -34438,6 +35785,7 @@ export declare const insertMediaOrderSchema: z.ZodObject<Omit<{
|
|
|
34438
35785
|
vendorId?: string | null | undefined;
|
|
34439
35786
|
submittedBy?: string | null | undefined;
|
|
34440
35787
|
configurationId?: string | null | undefined;
|
|
35788
|
+
optionId?: string | null | undefined;
|
|
34441
35789
|
parentHubspotCompanyId?: string | null | undefined;
|
|
34442
35790
|
clientContactName?: string | null | undefined;
|
|
34443
35791
|
clientContactEmail?: string | null | undefined;
|
|
@@ -34521,6 +35869,7 @@ export declare const insertMediaOrderSchema: z.ZodObject<Omit<{
|
|
|
34521
35869
|
vendorId?: string | null | undefined;
|
|
34522
35870
|
submittedBy?: string | null | undefined;
|
|
34523
35871
|
configurationId?: string | null | undefined;
|
|
35872
|
+
optionId?: string | null | undefined;
|
|
34524
35873
|
parentHubspotCompanyId?: string | null | undefined;
|
|
34525
35874
|
clientContactName?: string | null | undefined;
|
|
34526
35875
|
clientContactEmail?: string | null | undefined;
|
|
@@ -34604,6 +35953,7 @@ export declare const updateMediaOrderSchema: z.ZodObject<{
|
|
|
34604
35953
|
vendorId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
34605
35954
|
submittedBy: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
34606
35955
|
configurationId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
35956
|
+
optionId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
34607
35957
|
parentHubspotCompanyId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
34608
35958
|
clientContactName: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
34609
35959
|
clientContactEmail: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
@@ -34691,6 +36041,7 @@ export declare const updateMediaOrderSchema: z.ZodObject<{
|
|
|
34691
36041
|
vendorId?: string | null | undefined;
|
|
34692
36042
|
submittedBy?: string | null | undefined;
|
|
34693
36043
|
configurationId?: string | null | undefined;
|
|
36044
|
+
optionId?: string | null | undefined;
|
|
34694
36045
|
parentHubspotCompanyId?: string | null | undefined;
|
|
34695
36046
|
clientContactName?: string | null | undefined;
|
|
34696
36047
|
clientContactEmail?: string | null | undefined;
|
|
@@ -34774,6 +36125,7 @@ export declare const updateMediaOrderSchema: z.ZodObject<{
|
|
|
34774
36125
|
vendorId?: string | null | undefined;
|
|
34775
36126
|
submittedBy?: string | null | undefined;
|
|
34776
36127
|
configurationId?: string | null | undefined;
|
|
36128
|
+
optionId?: string | null | undefined;
|
|
34777
36129
|
parentHubspotCompanyId?: string | null | undefined;
|
|
34778
36130
|
clientContactName?: string | null | undefined;
|
|
34779
36131
|
clientContactEmail?: string | null | undefined;
|
|
@@ -37421,6 +38773,42 @@ export declare const stribProducts: import("drizzle-orm/pg-core").PgTableWithCol
|
|
|
37421
38773
|
identity: undefined;
|
|
37422
38774
|
generated: undefined;
|
|
37423
38775
|
}, {}, {}>;
|
|
38776
|
+
previousSku: import("drizzle-orm/pg-core").PgColumn<{
|
|
38777
|
+
name: "previous_sku";
|
|
38778
|
+
tableName: "strib_products";
|
|
38779
|
+
dataType: "number";
|
|
38780
|
+
columnType: "PgInteger";
|
|
38781
|
+
data: number;
|
|
38782
|
+
driverParam: string | number;
|
|
38783
|
+
notNull: false;
|
|
38784
|
+
hasDefault: false;
|
|
38785
|
+
isPrimaryKey: false;
|
|
38786
|
+
isAutoincrement: false;
|
|
38787
|
+
hasRuntimeDefault: false;
|
|
38788
|
+
enumValues: undefined;
|
|
38789
|
+
baseColumn: never;
|
|
38790
|
+
identity: undefined;
|
|
38791
|
+
generated: undefined;
|
|
38792
|
+
}, {}, {}>;
|
|
38793
|
+
navigaPreviousProductId: import("drizzle-orm/pg-core").PgColumn<{
|
|
38794
|
+
name: "naviga_previous_product_id";
|
|
38795
|
+
tableName: "strib_products";
|
|
38796
|
+
dataType: "string";
|
|
38797
|
+
columnType: "PgVarchar";
|
|
38798
|
+
data: string;
|
|
38799
|
+
driverParam: string;
|
|
38800
|
+
notNull: false;
|
|
38801
|
+
hasDefault: false;
|
|
38802
|
+
isPrimaryKey: false;
|
|
38803
|
+
isAutoincrement: false;
|
|
38804
|
+
hasRuntimeDefault: false;
|
|
38805
|
+
enumValues: [string, ...string[]];
|
|
38806
|
+
baseColumn: never;
|
|
38807
|
+
identity: undefined;
|
|
38808
|
+
generated: undefined;
|
|
38809
|
+
}, {}, {
|
|
38810
|
+
length: number | undefined;
|
|
38811
|
+
}>;
|
|
37424
38812
|
hubspotProductName: import("drizzle-orm/pg-core").PgColumn<{
|
|
37425
38813
|
name: "hubspot_product_name";
|
|
37426
38814
|
tableName: "strib_products";
|
|
@@ -38158,6 +39546,8 @@ export declare const insertStribProductSchema: z.ZodObject<Omit<{
|
|
|
38158
39546
|
multiRunSku: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38159
39547
|
multiRunRatecardId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38160
39548
|
packageComponents: z.ZodOptional<z.ZodNullable<z.ZodType<import("drizzle-zod").Json, z.ZodTypeDef, import("drizzle-zod").Json>>>;
|
|
39549
|
+
previousSku: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
39550
|
+
navigaPreviousProductId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38161
39551
|
hubspotProductName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38162
39552
|
hubspotProductId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38163
39553
|
dealhubStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -38223,6 +39613,8 @@ export declare const insertStribProductSchema: z.ZodObject<Omit<{
|
|
|
38223
39613
|
multiRunSku?: string | null | undefined;
|
|
38224
39614
|
multiRunRatecardId?: string | null | undefined;
|
|
38225
39615
|
packageComponents?: import("drizzle-zod").Json | undefined;
|
|
39616
|
+
previousSku?: number | null | undefined;
|
|
39617
|
+
navigaPreviousProductId?: string | null | undefined;
|
|
38226
39618
|
hubspotProductName?: string | null | undefined;
|
|
38227
39619
|
dealhubStatus?: string | null | undefined;
|
|
38228
39620
|
hubspotWorkflowStatus?: string | null | undefined;
|
|
@@ -38270,6 +39662,8 @@ export declare const insertStribProductSchema: z.ZodObject<Omit<{
|
|
|
38270
39662
|
multiRunSku?: string | null | undefined;
|
|
38271
39663
|
multiRunRatecardId?: string | null | undefined;
|
|
38272
39664
|
packageComponents?: import("drizzle-zod").Json | undefined;
|
|
39665
|
+
previousSku?: number | null | undefined;
|
|
39666
|
+
navigaPreviousProductId?: string | null | undefined;
|
|
38273
39667
|
hubspotProductName?: string | null | undefined;
|
|
38274
39668
|
dealhubStatus?: string | null | undefined;
|
|
38275
39669
|
hubspotWorkflowStatus?: string | null | undefined;
|
|
@@ -38317,6 +39711,8 @@ export declare const updateStribProductSchema: z.ZodObject<{
|
|
|
38317
39711
|
multiRunSku: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
38318
39712
|
multiRunRatecardId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
38319
39713
|
packageComponents: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<import("drizzle-zod").Json, z.ZodTypeDef, import("drizzle-zod").Json>>>>;
|
|
39714
|
+
previousSku: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
39715
|
+
navigaPreviousProductId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
38320
39716
|
hubspotProductName: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
38321
39717
|
dealhubStatus: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
38322
39718
|
hubspotWorkflowStatus: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
@@ -38364,6 +39760,8 @@ export declare const updateStribProductSchema: z.ZodObject<{
|
|
|
38364
39760
|
multiRunSku?: string | null | undefined;
|
|
38365
39761
|
multiRunRatecardId?: string | null | undefined;
|
|
38366
39762
|
packageComponents?: import("drizzle-zod").Json | undefined;
|
|
39763
|
+
previousSku?: number | null | undefined;
|
|
39764
|
+
navigaPreviousProductId?: string | null | undefined;
|
|
38367
39765
|
hubspotProductName?: string | null | undefined;
|
|
38368
39766
|
dealhubStatus?: string | null | undefined;
|
|
38369
39767
|
hubspotWorkflowStatus?: string | null | undefined;
|
|
@@ -38411,6 +39809,8 @@ export declare const updateStribProductSchema: z.ZodObject<{
|
|
|
38411
39809
|
multiRunSku?: string | null | undefined;
|
|
38412
39810
|
multiRunRatecardId?: string | null | undefined;
|
|
38413
39811
|
packageComponents?: import("drizzle-zod").Json | undefined;
|
|
39812
|
+
previousSku?: number | null | undefined;
|
|
39813
|
+
navigaPreviousProductId?: string | null | undefined;
|
|
38414
39814
|
hubspotProductName?: string | null | undefined;
|
|
38415
39815
|
dealhubStatus?: string | null | undefined;
|
|
38416
39816
|
hubspotWorkflowStatus?: string | null | undefined;
|