@foundrynorth/compass-schema 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/relations.d.ts +5 -0
- package/dist/relations.d.ts.map +1 -1
- package/dist/relations.js +12 -1
- package/dist/relations.js.map +1 -1
- package/dist/schema.d.ts +939 -21
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +173 -0
- package/dist/schema.js.map +1 -1
- package/package.json +1 -1
package/dist/schema.d.ts
CHANGED
|
@@ -35816,6 +35816,25 @@ export declare const mediaOrderLineItems: import("drizzle-orm/pg-core").PgTableW
|
|
|
35816
35816
|
}, {}, {
|
|
35817
35817
|
length: number | undefined;
|
|
35818
35818
|
}>;
|
|
35819
|
+
simplifiCampaignId: import("drizzle-orm/pg-core").PgColumn<{
|
|
35820
|
+
name: "simplifi_campaign_id";
|
|
35821
|
+
tableName: "media_order_line_items";
|
|
35822
|
+
dataType: "string";
|
|
35823
|
+
columnType: "PgVarchar";
|
|
35824
|
+
data: string;
|
|
35825
|
+
driverParam: string;
|
|
35826
|
+
notNull: false;
|
|
35827
|
+
hasDefault: false;
|
|
35828
|
+
isPrimaryKey: false;
|
|
35829
|
+
isAutoincrement: false;
|
|
35830
|
+
hasRuntimeDefault: false;
|
|
35831
|
+
enumValues: [string, ...string[]];
|
|
35832
|
+
baseColumn: never;
|
|
35833
|
+
identity: undefined;
|
|
35834
|
+
generated: undefined;
|
|
35835
|
+
}, {}, {
|
|
35836
|
+
length: number | undefined;
|
|
35837
|
+
}>;
|
|
35819
35838
|
fulfillmentDetails: import("drizzle-orm/pg-core").PgColumn<{
|
|
35820
35839
|
name: "fulfillment_details";
|
|
35821
35840
|
tableName: "media_order_line_items";
|
|
@@ -36000,6 +36019,7 @@ export declare const insertMediaOrderLineItemSchema: z.ZodObject<Omit<{
|
|
|
36000
36019
|
isSubFlight: z.ZodOptional<z.ZodNumber>;
|
|
36001
36020
|
datasysCountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36002
36021
|
datasysCampaignId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36022
|
+
simplifiCampaignId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36003
36023
|
fulfillmentDetails: z.ZodOptional<z.ZodNullable<z.ZodType<import("drizzle-zod").Json, z.ZodTypeDef, import("drizzle-zod").Json>>>;
|
|
36004
36024
|
creativeSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36005
36025
|
trafficKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -36064,6 +36084,7 @@ export declare const insertMediaOrderLineItemSchema: z.ZodObject<Omit<{
|
|
|
36064
36084
|
isSubFlight?: number | undefined;
|
|
36065
36085
|
datasysCountId?: string | null | undefined;
|
|
36066
36086
|
datasysCampaignId?: string | null | undefined;
|
|
36087
|
+
simplifiCampaignId?: string | null | undefined;
|
|
36067
36088
|
fulfillmentDetails?: import("drizzle-zod").Json | undefined;
|
|
36068
36089
|
creativeSource?: string | null | undefined;
|
|
36069
36090
|
trafficKey?: string | null | undefined;
|
|
@@ -36118,6 +36139,7 @@ export declare const insertMediaOrderLineItemSchema: z.ZodObject<Omit<{
|
|
|
36118
36139
|
isSubFlight?: number | undefined;
|
|
36119
36140
|
datasysCountId?: string | null | undefined;
|
|
36120
36141
|
datasysCampaignId?: string | null | undefined;
|
|
36142
|
+
simplifiCampaignId?: string | null | undefined;
|
|
36121
36143
|
fulfillmentDetails?: import("drizzle-zod").Json | undefined;
|
|
36122
36144
|
creativeSource?: string | null | undefined;
|
|
36123
36145
|
trafficKey?: string | null | undefined;
|
|
@@ -36173,6 +36195,7 @@ export declare const updateMediaOrderLineItemSchema: z.ZodObject<{
|
|
|
36173
36195
|
isSubFlight: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
36174
36196
|
datasysCountId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
36175
36197
|
datasysCampaignId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
36198
|
+
simplifiCampaignId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
36176
36199
|
fulfillmentDetails: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<import("drizzle-zod").Json, z.ZodTypeDef, import("drizzle-zod").Json>>>>;
|
|
36177
36200
|
creativeSource: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
36178
36201
|
trafficKey: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
@@ -36235,6 +36258,7 @@ export declare const updateMediaOrderLineItemSchema: z.ZodObject<{
|
|
|
36235
36258
|
isSubFlight?: number | undefined;
|
|
36236
36259
|
datasysCountId?: string | null | undefined;
|
|
36237
36260
|
datasysCampaignId?: string | null | undefined;
|
|
36261
|
+
simplifiCampaignId?: string | null | undefined;
|
|
36238
36262
|
fulfillmentDetails?: import("drizzle-zod").Json | undefined;
|
|
36239
36263
|
creativeSource?: string | null | undefined;
|
|
36240
36264
|
trafficKey?: string | null | undefined;
|
|
@@ -36289,6 +36313,7 @@ export declare const updateMediaOrderLineItemSchema: z.ZodObject<{
|
|
|
36289
36313
|
isSubFlight?: number | undefined;
|
|
36290
36314
|
datasysCountId?: string | null | undefined;
|
|
36291
36315
|
datasysCampaignId?: string | null | undefined;
|
|
36316
|
+
simplifiCampaignId?: string | null | undefined;
|
|
36292
36317
|
fulfillmentDetails?: import("drizzle-zod").Json | undefined;
|
|
36293
36318
|
creativeSource?: string | null | undefined;
|
|
36294
36319
|
trafficKey?: string | null | undefined;
|
|
@@ -52282,7 +52307,7 @@ export type InsertDatasysDeployment = z.infer<typeof insertDatasysDeploymentSche
|
|
|
52282
52307
|
* Supported programmatic vendors.
|
|
52283
52308
|
* Extensible as new DSPs are added (e.g., DV360, Xandr).
|
|
52284
52309
|
*/
|
|
52285
|
-
export declare const programmaticVendorEnum: import("drizzle-orm/pg-core").PgEnum<["ttd", "datasys"]>;
|
|
52310
|
+
export declare const programmaticVendorEnum: import("drizzle-orm/pg-core").PgEnum<["ttd", "datasys", "simpli_fi"]>;
|
|
52286
52311
|
/**
|
|
52287
52312
|
* Account readiness status for a vendor.
|
|
52288
52313
|
*/
|
|
@@ -52340,14 +52365,14 @@ export declare const programmaticAccountMappings: import("drizzle-orm/pg-core").
|
|
|
52340
52365
|
tableName: "programmatic_account_mappings";
|
|
52341
52366
|
dataType: "string";
|
|
52342
52367
|
columnType: "PgEnumColumn";
|
|
52343
|
-
data: "ttd" | "datasys";
|
|
52368
|
+
data: "ttd" | "datasys" | "simpli_fi";
|
|
52344
52369
|
driverParam: string;
|
|
52345
52370
|
notNull: true;
|
|
52346
52371
|
hasDefault: false;
|
|
52347
52372
|
isPrimaryKey: false;
|
|
52348
52373
|
isAutoincrement: false;
|
|
52349
52374
|
hasRuntimeDefault: false;
|
|
52350
|
-
enumValues: ["ttd", "datasys"];
|
|
52375
|
+
enumValues: ["ttd", "datasys", "simpli_fi"];
|
|
52351
52376
|
baseColumn: never;
|
|
52352
52377
|
identity: undefined;
|
|
52353
52378
|
generated: undefined;
|
|
@@ -52496,7 +52521,7 @@ export declare const programmaticAccountMappings: import("drizzle-orm/pg-core").
|
|
|
52496
52521
|
export declare const insertProgrammaticAccountMappingSchema: z.ZodObject<Omit<{
|
|
52497
52522
|
id: z.ZodOptional<z.ZodString>;
|
|
52498
52523
|
hubspotCompanyId: z.ZodString;
|
|
52499
|
-
vendor: z.ZodEnum<["ttd", "datasys"]>;
|
|
52524
|
+
vendor: z.ZodEnum<["ttd", "datasys", "simpli_fi"]>;
|
|
52500
52525
|
vendorAccountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52501
52526
|
vendorAdvertiserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52502
52527
|
seedId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -52507,7 +52532,7 @@ export declare const insertProgrammaticAccountMappingSchema: z.ZodObject<Omit<{
|
|
|
52507
52532
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
52508
52533
|
}, "id" | "createdAt" | "updatedAt">, "strip", z.ZodTypeAny, {
|
|
52509
52534
|
hubspotCompanyId: string;
|
|
52510
|
-
vendor: "ttd" | "datasys";
|
|
52535
|
+
vendor: "ttd" | "datasys" | "simpli_fi";
|
|
52511
52536
|
status?: "active" | "needs_mapping" | "needs_onboarding" | "unavailable" | undefined;
|
|
52512
52537
|
vendorAccountId?: string | null | undefined;
|
|
52513
52538
|
vendorAdvertiserId?: string | null | undefined;
|
|
@@ -52516,7 +52541,7 @@ export declare const insertProgrammaticAccountMappingSchema: z.ZodObject<Omit<{
|
|
|
52516
52541
|
lastVerifiedAt?: Date | null | undefined;
|
|
52517
52542
|
}, {
|
|
52518
52543
|
hubspotCompanyId: string;
|
|
52519
|
-
vendor: "ttd" | "datasys";
|
|
52544
|
+
vendor: "ttd" | "datasys" | "simpli_fi";
|
|
52520
52545
|
status?: "active" | "needs_mapping" | "needs_onboarding" | "unavailable" | undefined;
|
|
52521
52546
|
vendorAccountId?: string | null | undefined;
|
|
52522
52547
|
vendorAdvertiserId?: string | null | undefined;
|
|
@@ -52559,14 +52584,14 @@ export declare const programmaticCatalogCache: import("drizzle-orm/pg-core").PgT
|
|
|
52559
52584
|
tableName: "programmatic_catalog_cache";
|
|
52560
52585
|
dataType: "string";
|
|
52561
52586
|
columnType: "PgEnumColumn";
|
|
52562
|
-
data: "ttd" | "datasys";
|
|
52587
|
+
data: "ttd" | "datasys" | "simpli_fi";
|
|
52563
52588
|
driverParam: string;
|
|
52564
52589
|
notNull: true;
|
|
52565
52590
|
hasDefault: false;
|
|
52566
52591
|
isPrimaryKey: false;
|
|
52567
52592
|
isAutoincrement: false;
|
|
52568
52593
|
hasRuntimeDefault: false;
|
|
52569
|
-
enumValues: ["ttd", "datasys"];
|
|
52594
|
+
enumValues: ["ttd", "datasys", "simpli_fi"];
|
|
52570
52595
|
baseColumn: never;
|
|
52571
52596
|
identity: undefined;
|
|
52572
52597
|
generated: undefined;
|
|
@@ -52765,7 +52790,7 @@ export declare const programmaticCatalogCache: import("drizzle-orm/pg-core").PgT
|
|
|
52765
52790
|
}>;
|
|
52766
52791
|
export declare const insertProgrammaticCatalogCacheSchema: z.ZodObject<Omit<{
|
|
52767
52792
|
id: z.ZodOptional<z.ZodString>;
|
|
52768
|
-
vendor: z.ZodEnum<["ttd", "datasys"]>;
|
|
52793
|
+
vendor: z.ZodEnum<["ttd", "datasys", "simpli_fi"]>;
|
|
52769
52794
|
vendorSegmentId: z.ZodString;
|
|
52770
52795
|
label: z.ZodString;
|
|
52771
52796
|
category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -52779,7 +52804,7 @@ export declare const insertProgrammaticCatalogCacheSchema: z.ZodObject<Omit<{
|
|
|
52779
52804
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
52780
52805
|
}, "id" | "createdAt" | "updatedAt">, "strip", z.ZodTypeAny, {
|
|
52781
52806
|
label: string;
|
|
52782
|
-
vendor: "ttd" | "datasys";
|
|
52807
|
+
vendor: "ttd" | "datasys" | "simpli_fi";
|
|
52783
52808
|
vendorSegmentId: string;
|
|
52784
52809
|
category?: string | null | undefined;
|
|
52785
52810
|
lastRefreshedAt?: Date | undefined;
|
|
@@ -52790,7 +52815,7 @@ export declare const insertProgrammaticCatalogCacheSchema: z.ZodObject<Omit<{
|
|
|
52790
52815
|
costIndex?: string | null | undefined;
|
|
52791
52816
|
}, {
|
|
52792
52817
|
label: string;
|
|
52793
|
-
vendor: "ttd" | "datasys";
|
|
52818
|
+
vendor: "ttd" | "datasys" | "simpli_fi";
|
|
52794
52819
|
vendorSegmentId: string;
|
|
52795
52820
|
category?: string | null | undefined;
|
|
52796
52821
|
lastRefreshedAt?: Date | undefined;
|
|
@@ -52872,14 +52897,14 @@ export declare const programmaticRecommendationRuns: import("drizzle-orm/pg-core
|
|
|
52872
52897
|
tableName: "programmatic_recommendation_runs";
|
|
52873
52898
|
dataType: "string";
|
|
52874
52899
|
columnType: "PgEnumColumn";
|
|
52875
|
-
data: "ttd" | "datasys";
|
|
52900
|
+
data: "ttd" | "datasys" | "simpli_fi";
|
|
52876
52901
|
driverParam: string;
|
|
52877
52902
|
notNull: true;
|
|
52878
52903
|
hasDefault: false;
|
|
52879
52904
|
isPrimaryKey: false;
|
|
52880
52905
|
isAutoincrement: false;
|
|
52881
52906
|
hasRuntimeDefault: false;
|
|
52882
|
-
enumValues: ["ttd", "datasys"];
|
|
52907
|
+
enumValues: ["ttd", "datasys", "simpli_fi"];
|
|
52883
52908
|
baseColumn: never;
|
|
52884
52909
|
identity: undefined;
|
|
52885
52910
|
generated: undefined;
|
|
@@ -52963,21 +52988,21 @@ export declare const insertProgrammaticRecommendationRunSchema: z.ZodObject<Omit
|
|
|
52963
52988
|
id: z.ZodOptional<z.ZodString>;
|
|
52964
52989
|
mediaOrderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52965
52990
|
lineItemId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52966
|
-
vendor: z.ZodEnum<["ttd", "datasys"]>;
|
|
52991
|
+
vendor: z.ZodEnum<["ttd", "datasys", "simpli_fi"]>;
|
|
52967
52992
|
requestParams: z.ZodType<Record<string, unknown>, z.ZodTypeDef, Record<string, unknown>>;
|
|
52968
52993
|
results: z.ZodType<Record<string, unknown>[], z.ZodTypeDef, Record<string, unknown>[]>;
|
|
52969
52994
|
correlationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52970
52995
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
52971
52996
|
}, "id" | "createdAt">, "strip", z.ZodTypeAny, {
|
|
52972
52997
|
results: Record<string, unknown>[];
|
|
52973
|
-
vendor: "ttd" | "datasys";
|
|
52998
|
+
vendor: "ttd" | "datasys" | "simpli_fi";
|
|
52974
52999
|
requestParams: Record<string, unknown>;
|
|
52975
53000
|
mediaOrderId?: string | null | undefined;
|
|
52976
53001
|
lineItemId?: string | null | undefined;
|
|
52977
53002
|
correlationId?: string | null | undefined;
|
|
52978
53003
|
}, {
|
|
52979
53004
|
results: Record<string, unknown>[];
|
|
52980
|
-
vendor: "ttd" | "datasys";
|
|
53005
|
+
vendor: "ttd" | "datasys" | "simpli_fi";
|
|
52981
53006
|
requestParams: Record<string, unknown>;
|
|
52982
53007
|
mediaOrderId?: string | null | undefined;
|
|
52983
53008
|
lineItemId?: string | null | undefined;
|
|
@@ -53052,14 +53077,14 @@ export declare const programmaticSegmentEquivalences: import("drizzle-orm/pg-cor
|
|
|
53052
53077
|
tableName: "programmatic_segment_equivalences";
|
|
53053
53078
|
dataType: "string";
|
|
53054
53079
|
columnType: "PgEnumColumn";
|
|
53055
|
-
data: "ttd" | "datasys";
|
|
53080
|
+
data: "ttd" | "datasys" | "simpli_fi";
|
|
53056
53081
|
driverParam: string;
|
|
53057
53082
|
notNull: true;
|
|
53058
53083
|
hasDefault: false;
|
|
53059
53084
|
isPrimaryKey: false;
|
|
53060
53085
|
isAutoincrement: false;
|
|
53061
53086
|
hasRuntimeDefault: false;
|
|
53062
|
-
enumValues: ["ttd", "datasys"];
|
|
53087
|
+
enumValues: ["ttd", "datasys", "simpli_fi"];
|
|
53063
53088
|
baseColumn: never;
|
|
53064
53089
|
identity: undefined;
|
|
53065
53090
|
generated: undefined;
|
|
@@ -53224,7 +53249,7 @@ export declare const insertProgrammaticSegmentEquivalenceSchema: z.ZodObject<Omi
|
|
|
53224
53249
|
id: z.ZodOptional<z.ZodString>;
|
|
53225
53250
|
canonicalIntentId: z.ZodString;
|
|
53226
53251
|
canonicalLabel: z.ZodString;
|
|
53227
|
-
vendor: z.ZodEnum<["ttd", "datasys"]>;
|
|
53252
|
+
vendor: z.ZodEnum<["ttd", "datasys", "simpli_fi"]>;
|
|
53228
53253
|
vendorSegmentId: z.ZodString;
|
|
53229
53254
|
vendorSegmentLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53230
53255
|
matchType: z.ZodEnum<["exact", "approximate", "none"]>;
|
|
@@ -53235,7 +53260,7 @@ export declare const insertProgrammaticSegmentEquivalenceSchema: z.ZodObject<Omi
|
|
|
53235
53260
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
53236
53261
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
53237
53262
|
}, "id" | "createdAt" | "updatedAt">, "strip", z.ZodTypeAny, {
|
|
53238
|
-
vendor: "ttd" | "datasys";
|
|
53263
|
+
vendor: "ttd" | "datasys" | "simpli_fi";
|
|
53239
53264
|
vendorSegmentId: string;
|
|
53240
53265
|
canonicalIntentId: string;
|
|
53241
53266
|
canonicalLabel: string;
|
|
@@ -53246,7 +53271,7 @@ export declare const insertProgrammaticSegmentEquivalenceSchema: z.ZodObject<Omi
|
|
|
53246
53271
|
vendorSegmentLabel?: string | null | undefined;
|
|
53247
53272
|
fitScore?: number | null | undefined;
|
|
53248
53273
|
}, {
|
|
53249
|
-
vendor: "ttd" | "datasys";
|
|
53274
|
+
vendor: "ttd" | "datasys" | "simpli_fi";
|
|
53250
53275
|
vendorSegmentId: string;
|
|
53251
53276
|
canonicalIntentId: string;
|
|
53252
53277
|
canonicalLabel: string;
|
|
@@ -60550,4 +60575,897 @@ export declare const businessIntelCache: import("drizzle-orm/pg-core").PgTableWi
|
|
|
60550
60575
|
}>;
|
|
60551
60576
|
export type BusinessIntelCache = typeof businessIntelCache.$inferSelect;
|
|
60552
60577
|
export type BusinessIntelCacheInsert = typeof businessIntelCache.$inferInsert;
|
|
60578
|
+
export declare const simplifiCampaignStatusEnum: import("drizzle-orm/pg-core").PgEnum<["draft", "active", "paused", "ended", "error"]>;
|
|
60579
|
+
export declare const simplifiGeoFenceTypeEnum: import("drizzle-orm/pg-core").PgEnum<["addressable", "location", "conversion_zone", "event"]>;
|
|
60580
|
+
/**
|
|
60581
|
+
* simplifi_campaigns — Tracks campaigns pushed to Simpli.fi DSP.
|
|
60582
|
+
* One campaign per eligible line item.
|
|
60583
|
+
*/
|
|
60584
|
+
export declare const simplifiCampaigns: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
60585
|
+
name: "simplifi_campaigns";
|
|
60586
|
+
schema: undefined;
|
|
60587
|
+
columns: {
|
|
60588
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
60589
|
+
name: "id";
|
|
60590
|
+
tableName: "simplifi_campaigns";
|
|
60591
|
+
dataType: "string";
|
|
60592
|
+
columnType: "PgVarchar";
|
|
60593
|
+
data: string;
|
|
60594
|
+
driverParam: string;
|
|
60595
|
+
notNull: true;
|
|
60596
|
+
hasDefault: true;
|
|
60597
|
+
isPrimaryKey: true;
|
|
60598
|
+
isAutoincrement: false;
|
|
60599
|
+
hasRuntimeDefault: false;
|
|
60600
|
+
enumValues: [string, ...string[]];
|
|
60601
|
+
baseColumn: never;
|
|
60602
|
+
identity: undefined;
|
|
60603
|
+
generated: undefined;
|
|
60604
|
+
}, {}, {
|
|
60605
|
+
length: number | undefined;
|
|
60606
|
+
}>;
|
|
60607
|
+
simplifiCampaignId: import("drizzle-orm/pg-core").PgColumn<{
|
|
60608
|
+
name: "simplifi_campaign_id";
|
|
60609
|
+
tableName: "simplifi_campaigns";
|
|
60610
|
+
dataType: "string";
|
|
60611
|
+
columnType: "PgText";
|
|
60612
|
+
data: string;
|
|
60613
|
+
driverParam: string;
|
|
60614
|
+
notNull: true;
|
|
60615
|
+
hasDefault: false;
|
|
60616
|
+
isPrimaryKey: false;
|
|
60617
|
+
isAutoincrement: false;
|
|
60618
|
+
hasRuntimeDefault: false;
|
|
60619
|
+
enumValues: [string, ...string[]];
|
|
60620
|
+
baseColumn: never;
|
|
60621
|
+
identity: undefined;
|
|
60622
|
+
generated: undefined;
|
|
60623
|
+
}, {}, {}>;
|
|
60624
|
+
organizationId: import("drizzle-orm/pg-core").PgColumn<{
|
|
60625
|
+
name: "organization_id";
|
|
60626
|
+
tableName: "simplifi_campaigns";
|
|
60627
|
+
dataType: "string";
|
|
60628
|
+
columnType: "PgText";
|
|
60629
|
+
data: string;
|
|
60630
|
+
driverParam: string;
|
|
60631
|
+
notNull: true;
|
|
60632
|
+
hasDefault: false;
|
|
60633
|
+
isPrimaryKey: false;
|
|
60634
|
+
isAutoincrement: false;
|
|
60635
|
+
hasRuntimeDefault: false;
|
|
60636
|
+
enumValues: [string, ...string[]];
|
|
60637
|
+
baseColumn: never;
|
|
60638
|
+
identity: undefined;
|
|
60639
|
+
generated: undefined;
|
|
60640
|
+
}, {}, {}>;
|
|
60641
|
+
campaignName: import("drizzle-orm/pg-core").PgColumn<{
|
|
60642
|
+
name: "campaign_name";
|
|
60643
|
+
tableName: "simplifi_campaigns";
|
|
60644
|
+
dataType: "string";
|
|
60645
|
+
columnType: "PgText";
|
|
60646
|
+
data: string;
|
|
60647
|
+
driverParam: string;
|
|
60648
|
+
notNull: true;
|
|
60649
|
+
hasDefault: false;
|
|
60650
|
+
isPrimaryKey: false;
|
|
60651
|
+
isAutoincrement: false;
|
|
60652
|
+
hasRuntimeDefault: false;
|
|
60653
|
+
enumValues: [string, ...string[]];
|
|
60654
|
+
baseColumn: never;
|
|
60655
|
+
identity: undefined;
|
|
60656
|
+
generated: undefined;
|
|
60657
|
+
}, {}, {}>;
|
|
60658
|
+
status: import("drizzle-orm/pg-core").PgColumn<{
|
|
60659
|
+
name: "status";
|
|
60660
|
+
tableName: "simplifi_campaigns";
|
|
60661
|
+
dataType: "string";
|
|
60662
|
+
columnType: "PgEnumColumn";
|
|
60663
|
+
data: "active" | "draft" | "error" | "paused" | "ended";
|
|
60664
|
+
driverParam: string;
|
|
60665
|
+
notNull: true;
|
|
60666
|
+
hasDefault: true;
|
|
60667
|
+
isPrimaryKey: false;
|
|
60668
|
+
isAutoincrement: false;
|
|
60669
|
+
hasRuntimeDefault: false;
|
|
60670
|
+
enumValues: ["draft", "active", "paused", "ended", "error"];
|
|
60671
|
+
baseColumn: never;
|
|
60672
|
+
identity: undefined;
|
|
60673
|
+
generated: undefined;
|
|
60674
|
+
}, {}, {}>;
|
|
60675
|
+
mediaOrderId: import("drizzle-orm/pg-core").PgColumn<{
|
|
60676
|
+
name: "media_order_id";
|
|
60677
|
+
tableName: "simplifi_campaigns";
|
|
60678
|
+
dataType: "string";
|
|
60679
|
+
columnType: "PgVarchar";
|
|
60680
|
+
data: string;
|
|
60681
|
+
driverParam: string;
|
|
60682
|
+
notNull: false;
|
|
60683
|
+
hasDefault: false;
|
|
60684
|
+
isPrimaryKey: false;
|
|
60685
|
+
isAutoincrement: false;
|
|
60686
|
+
hasRuntimeDefault: false;
|
|
60687
|
+
enumValues: [string, ...string[]];
|
|
60688
|
+
baseColumn: never;
|
|
60689
|
+
identity: undefined;
|
|
60690
|
+
generated: undefined;
|
|
60691
|
+
}, {}, {
|
|
60692
|
+
length: number | undefined;
|
|
60693
|
+
}>;
|
|
60694
|
+
lineItemId: import("drizzle-orm/pg-core").PgColumn<{
|
|
60695
|
+
name: "line_item_id";
|
|
60696
|
+
tableName: "simplifi_campaigns";
|
|
60697
|
+
dataType: "string";
|
|
60698
|
+
columnType: "PgVarchar";
|
|
60699
|
+
data: string;
|
|
60700
|
+
driverParam: string;
|
|
60701
|
+
notNull: false;
|
|
60702
|
+
hasDefault: false;
|
|
60703
|
+
isPrimaryKey: false;
|
|
60704
|
+
isAutoincrement: false;
|
|
60705
|
+
hasRuntimeDefault: false;
|
|
60706
|
+
enumValues: [string, ...string[]];
|
|
60707
|
+
baseColumn: never;
|
|
60708
|
+
identity: undefined;
|
|
60709
|
+
generated: undefined;
|
|
60710
|
+
}, {}, {
|
|
60711
|
+
length: number | undefined;
|
|
60712
|
+
}>;
|
|
60713
|
+
totalBudget: import("drizzle-orm/pg-core").PgColumn<{
|
|
60714
|
+
name: "total_budget";
|
|
60715
|
+
tableName: "simplifi_campaigns";
|
|
60716
|
+
dataType: "string";
|
|
60717
|
+
columnType: "PgNumeric";
|
|
60718
|
+
data: string;
|
|
60719
|
+
driverParam: string;
|
|
60720
|
+
notNull: false;
|
|
60721
|
+
hasDefault: false;
|
|
60722
|
+
isPrimaryKey: false;
|
|
60723
|
+
isAutoincrement: false;
|
|
60724
|
+
hasRuntimeDefault: false;
|
|
60725
|
+
enumValues: undefined;
|
|
60726
|
+
baseColumn: never;
|
|
60727
|
+
identity: undefined;
|
|
60728
|
+
generated: undefined;
|
|
60729
|
+
}, {}, {}>;
|
|
60730
|
+
startDate: import("drizzle-orm/pg-core").PgColumn<{
|
|
60731
|
+
name: "start_date";
|
|
60732
|
+
tableName: "simplifi_campaigns";
|
|
60733
|
+
dataType: "string";
|
|
60734
|
+
columnType: "PgDateString";
|
|
60735
|
+
data: string;
|
|
60736
|
+
driverParam: string;
|
|
60737
|
+
notNull: false;
|
|
60738
|
+
hasDefault: false;
|
|
60739
|
+
isPrimaryKey: false;
|
|
60740
|
+
isAutoincrement: false;
|
|
60741
|
+
hasRuntimeDefault: false;
|
|
60742
|
+
enumValues: undefined;
|
|
60743
|
+
baseColumn: never;
|
|
60744
|
+
identity: undefined;
|
|
60745
|
+
generated: undefined;
|
|
60746
|
+
}, {}, {}>;
|
|
60747
|
+
endDate: import("drizzle-orm/pg-core").PgColumn<{
|
|
60748
|
+
name: "end_date";
|
|
60749
|
+
tableName: "simplifi_campaigns";
|
|
60750
|
+
dataType: "string";
|
|
60751
|
+
columnType: "PgDateString";
|
|
60752
|
+
data: string;
|
|
60753
|
+
driverParam: string;
|
|
60754
|
+
notNull: false;
|
|
60755
|
+
hasDefault: false;
|
|
60756
|
+
isPrimaryKey: false;
|
|
60757
|
+
isAutoincrement: false;
|
|
60758
|
+
hasRuntimeDefault: false;
|
|
60759
|
+
enumValues: undefined;
|
|
60760
|
+
baseColumn: never;
|
|
60761
|
+
identity: undefined;
|
|
60762
|
+
generated: undefined;
|
|
60763
|
+
}, {}, {}>;
|
|
60764
|
+
simplifiMetadata: import("drizzle-orm/pg-core").PgColumn<{
|
|
60765
|
+
name: "simplifi_metadata";
|
|
60766
|
+
tableName: "simplifi_campaigns";
|
|
60767
|
+
dataType: "json";
|
|
60768
|
+
columnType: "PgJsonb";
|
|
60769
|
+
data: Record<string, unknown>;
|
|
60770
|
+
driverParam: unknown;
|
|
60771
|
+
notNull: false;
|
|
60772
|
+
hasDefault: false;
|
|
60773
|
+
isPrimaryKey: false;
|
|
60774
|
+
isAutoincrement: false;
|
|
60775
|
+
hasRuntimeDefault: false;
|
|
60776
|
+
enumValues: undefined;
|
|
60777
|
+
baseColumn: never;
|
|
60778
|
+
identity: undefined;
|
|
60779
|
+
generated: undefined;
|
|
60780
|
+
}, {}, {
|
|
60781
|
+
$type: Record<string, unknown>;
|
|
60782
|
+
}>;
|
|
60783
|
+
syncError: import("drizzle-orm/pg-core").PgColumn<{
|
|
60784
|
+
name: "sync_error";
|
|
60785
|
+
tableName: "simplifi_campaigns";
|
|
60786
|
+
dataType: "string";
|
|
60787
|
+
columnType: "PgText";
|
|
60788
|
+
data: string;
|
|
60789
|
+
driverParam: string;
|
|
60790
|
+
notNull: false;
|
|
60791
|
+
hasDefault: false;
|
|
60792
|
+
isPrimaryKey: false;
|
|
60793
|
+
isAutoincrement: false;
|
|
60794
|
+
hasRuntimeDefault: false;
|
|
60795
|
+
enumValues: [string, ...string[]];
|
|
60796
|
+
baseColumn: never;
|
|
60797
|
+
identity: undefined;
|
|
60798
|
+
generated: undefined;
|
|
60799
|
+
}, {}, {}>;
|
|
60800
|
+
lastSyncedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
60801
|
+
name: "last_synced_at";
|
|
60802
|
+
tableName: "simplifi_campaigns";
|
|
60803
|
+
dataType: "date";
|
|
60804
|
+
columnType: "PgTimestamp";
|
|
60805
|
+
data: Date;
|
|
60806
|
+
driverParam: string;
|
|
60807
|
+
notNull: false;
|
|
60808
|
+
hasDefault: false;
|
|
60809
|
+
isPrimaryKey: false;
|
|
60810
|
+
isAutoincrement: false;
|
|
60811
|
+
hasRuntimeDefault: false;
|
|
60812
|
+
enumValues: undefined;
|
|
60813
|
+
baseColumn: never;
|
|
60814
|
+
identity: undefined;
|
|
60815
|
+
generated: undefined;
|
|
60816
|
+
}, {}, {}>;
|
|
60817
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
60818
|
+
name: "created_at";
|
|
60819
|
+
tableName: "simplifi_campaigns";
|
|
60820
|
+
dataType: "date";
|
|
60821
|
+
columnType: "PgTimestamp";
|
|
60822
|
+
data: Date;
|
|
60823
|
+
driverParam: string;
|
|
60824
|
+
notNull: true;
|
|
60825
|
+
hasDefault: true;
|
|
60826
|
+
isPrimaryKey: false;
|
|
60827
|
+
isAutoincrement: false;
|
|
60828
|
+
hasRuntimeDefault: false;
|
|
60829
|
+
enumValues: undefined;
|
|
60830
|
+
baseColumn: never;
|
|
60831
|
+
identity: undefined;
|
|
60832
|
+
generated: undefined;
|
|
60833
|
+
}, {}, {}>;
|
|
60834
|
+
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
60835
|
+
name: "updated_at";
|
|
60836
|
+
tableName: "simplifi_campaigns";
|
|
60837
|
+
dataType: "date";
|
|
60838
|
+
columnType: "PgTimestamp";
|
|
60839
|
+
data: Date;
|
|
60840
|
+
driverParam: string;
|
|
60841
|
+
notNull: true;
|
|
60842
|
+
hasDefault: true;
|
|
60843
|
+
isPrimaryKey: false;
|
|
60844
|
+
isAutoincrement: false;
|
|
60845
|
+
hasRuntimeDefault: false;
|
|
60846
|
+
enumValues: undefined;
|
|
60847
|
+
baseColumn: never;
|
|
60848
|
+
identity: undefined;
|
|
60849
|
+
generated: undefined;
|
|
60850
|
+
}, {}, {}>;
|
|
60851
|
+
};
|
|
60852
|
+
dialect: "pg";
|
|
60853
|
+
}>;
|
|
60854
|
+
export declare const insertSimplifiCampaignSchema: z.ZodObject<Omit<{
|
|
60855
|
+
id: z.ZodOptional<z.ZodString>;
|
|
60856
|
+
simplifiCampaignId: z.ZodString;
|
|
60857
|
+
organizationId: z.ZodString;
|
|
60858
|
+
campaignName: z.ZodString;
|
|
60859
|
+
status: z.ZodOptional<z.ZodEnum<["draft", "active", "paused", "ended", "error"]>>;
|
|
60860
|
+
mediaOrderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60861
|
+
lineItemId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60862
|
+
totalBudget: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60863
|
+
startDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60864
|
+
endDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60865
|
+
simplifiMetadata: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, z.ZodTypeDef, Record<string, unknown>>>>;
|
|
60866
|
+
syncError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60867
|
+
lastSyncedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
60868
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
60869
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
60870
|
+
}, "id" | "createdAt" | "updatedAt">, "strip", z.ZodTypeAny, {
|
|
60871
|
+
simplifiCampaignId: string;
|
|
60872
|
+
organizationId: string;
|
|
60873
|
+
campaignName: string;
|
|
60874
|
+
status?: "active" | "draft" | "error" | "paused" | "ended" | undefined;
|
|
60875
|
+
totalBudget?: string | null | undefined;
|
|
60876
|
+
lastSyncedAt?: Date | null | undefined;
|
|
60877
|
+
mediaOrderId?: string | null | undefined;
|
|
60878
|
+
lineItemId?: string | null | undefined;
|
|
60879
|
+
startDate?: string | null | undefined;
|
|
60880
|
+
endDate?: string | null | undefined;
|
|
60881
|
+
simplifiMetadata?: Record<string, unknown> | null | undefined;
|
|
60882
|
+
syncError?: string | null | undefined;
|
|
60883
|
+
}, {
|
|
60884
|
+
simplifiCampaignId: string;
|
|
60885
|
+
organizationId: string;
|
|
60886
|
+
campaignName: string;
|
|
60887
|
+
status?: "active" | "draft" | "error" | "paused" | "ended" | undefined;
|
|
60888
|
+
totalBudget?: string | null | undefined;
|
|
60889
|
+
lastSyncedAt?: Date | null | undefined;
|
|
60890
|
+
mediaOrderId?: string | null | undefined;
|
|
60891
|
+
lineItemId?: string | null | undefined;
|
|
60892
|
+
startDate?: string | null | undefined;
|
|
60893
|
+
endDate?: string | null | undefined;
|
|
60894
|
+
simplifiMetadata?: Record<string, unknown> | null | undefined;
|
|
60895
|
+
syncError?: string | null | undefined;
|
|
60896
|
+
}>;
|
|
60897
|
+
export type SimplifiCampaignRecord = typeof simplifiCampaigns.$inferSelect;
|
|
60898
|
+
export type InsertSimplifiCampaign = z.infer<typeof insertSimplifiCampaignSchema>;
|
|
60899
|
+
/**
|
|
60900
|
+
* simplifi_geo_fences — Tracks geo-fences pushed to Simpli.fi campaigns.
|
|
60901
|
+
* Links a Simpli.fi campaign to geo-targets from the shared geo_targets table.
|
|
60902
|
+
*/
|
|
60903
|
+
export declare const simplifiGeoFences: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
60904
|
+
name: "simplifi_geo_fences";
|
|
60905
|
+
schema: undefined;
|
|
60906
|
+
columns: {
|
|
60907
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
60908
|
+
name: "id";
|
|
60909
|
+
tableName: "simplifi_geo_fences";
|
|
60910
|
+
dataType: "string";
|
|
60911
|
+
columnType: "PgVarchar";
|
|
60912
|
+
data: string;
|
|
60913
|
+
driverParam: string;
|
|
60914
|
+
notNull: true;
|
|
60915
|
+
hasDefault: true;
|
|
60916
|
+
isPrimaryKey: true;
|
|
60917
|
+
isAutoincrement: false;
|
|
60918
|
+
hasRuntimeDefault: false;
|
|
60919
|
+
enumValues: [string, ...string[]];
|
|
60920
|
+
baseColumn: never;
|
|
60921
|
+
identity: undefined;
|
|
60922
|
+
generated: undefined;
|
|
60923
|
+
}, {}, {
|
|
60924
|
+
length: number | undefined;
|
|
60925
|
+
}>;
|
|
60926
|
+
simplifiCampaignId: import("drizzle-orm/pg-core").PgColumn<{
|
|
60927
|
+
name: "simplifi_campaign_id";
|
|
60928
|
+
tableName: "simplifi_geo_fences";
|
|
60929
|
+
dataType: "string";
|
|
60930
|
+
columnType: "PgText";
|
|
60931
|
+
data: string;
|
|
60932
|
+
driverParam: string;
|
|
60933
|
+
notNull: true;
|
|
60934
|
+
hasDefault: false;
|
|
60935
|
+
isPrimaryKey: false;
|
|
60936
|
+
isAutoincrement: false;
|
|
60937
|
+
hasRuntimeDefault: false;
|
|
60938
|
+
enumValues: [string, ...string[]];
|
|
60939
|
+
baseColumn: never;
|
|
60940
|
+
identity: undefined;
|
|
60941
|
+
generated: undefined;
|
|
60942
|
+
}, {}, {}>;
|
|
60943
|
+
geoTargetId: import("drizzle-orm/pg-core").PgColumn<{
|
|
60944
|
+
name: "geo_target_id";
|
|
60945
|
+
tableName: "simplifi_geo_fences";
|
|
60946
|
+
dataType: "string";
|
|
60947
|
+
columnType: "PgVarchar";
|
|
60948
|
+
data: string;
|
|
60949
|
+
driverParam: string;
|
|
60950
|
+
notNull: false;
|
|
60951
|
+
hasDefault: false;
|
|
60952
|
+
isPrimaryKey: false;
|
|
60953
|
+
isAutoincrement: false;
|
|
60954
|
+
hasRuntimeDefault: false;
|
|
60955
|
+
enumValues: [string, ...string[]];
|
|
60956
|
+
baseColumn: never;
|
|
60957
|
+
identity: undefined;
|
|
60958
|
+
generated: undefined;
|
|
60959
|
+
}, {}, {
|
|
60960
|
+
length: number | undefined;
|
|
60961
|
+
}>;
|
|
60962
|
+
fenceType: import("drizzle-orm/pg-core").PgColumn<{
|
|
60963
|
+
name: "fence_type";
|
|
60964
|
+
tableName: "simplifi_geo_fences";
|
|
60965
|
+
dataType: "string";
|
|
60966
|
+
columnType: "PgEnumColumn";
|
|
60967
|
+
data: "location" | "addressable" | "conversion_zone" | "event";
|
|
60968
|
+
driverParam: string;
|
|
60969
|
+
notNull: true;
|
|
60970
|
+
hasDefault: true;
|
|
60971
|
+
isPrimaryKey: false;
|
|
60972
|
+
isAutoincrement: false;
|
|
60973
|
+
hasRuntimeDefault: false;
|
|
60974
|
+
enumValues: ["addressable", "location", "conversion_zone", "event"];
|
|
60975
|
+
baseColumn: never;
|
|
60976
|
+
identity: undefined;
|
|
60977
|
+
generated: undefined;
|
|
60978
|
+
}, {}, {}>;
|
|
60979
|
+
name: import("drizzle-orm/pg-core").PgColumn<{
|
|
60980
|
+
name: "name";
|
|
60981
|
+
tableName: "simplifi_geo_fences";
|
|
60982
|
+
dataType: "string";
|
|
60983
|
+
columnType: "PgText";
|
|
60984
|
+
data: string;
|
|
60985
|
+
driverParam: string;
|
|
60986
|
+
notNull: true;
|
|
60987
|
+
hasDefault: false;
|
|
60988
|
+
isPrimaryKey: false;
|
|
60989
|
+
isAutoincrement: false;
|
|
60990
|
+
hasRuntimeDefault: false;
|
|
60991
|
+
enumValues: [string, ...string[]];
|
|
60992
|
+
baseColumn: never;
|
|
60993
|
+
identity: undefined;
|
|
60994
|
+
generated: undefined;
|
|
60995
|
+
}, {}, {}>;
|
|
60996
|
+
lat: import("drizzle-orm/pg-core").PgColumn<{
|
|
60997
|
+
name: "lat";
|
|
60998
|
+
tableName: "simplifi_geo_fences";
|
|
60999
|
+
dataType: "string";
|
|
61000
|
+
columnType: "PgNumeric";
|
|
61001
|
+
data: string;
|
|
61002
|
+
driverParam: string;
|
|
61003
|
+
notNull: true;
|
|
61004
|
+
hasDefault: false;
|
|
61005
|
+
isPrimaryKey: false;
|
|
61006
|
+
isAutoincrement: false;
|
|
61007
|
+
hasRuntimeDefault: false;
|
|
61008
|
+
enumValues: undefined;
|
|
61009
|
+
baseColumn: never;
|
|
61010
|
+
identity: undefined;
|
|
61011
|
+
generated: undefined;
|
|
61012
|
+
}, {}, {}>;
|
|
61013
|
+
lng: import("drizzle-orm/pg-core").PgColumn<{
|
|
61014
|
+
name: "lng";
|
|
61015
|
+
tableName: "simplifi_geo_fences";
|
|
61016
|
+
dataType: "string";
|
|
61017
|
+
columnType: "PgNumeric";
|
|
61018
|
+
data: string;
|
|
61019
|
+
driverParam: string;
|
|
61020
|
+
notNull: true;
|
|
61021
|
+
hasDefault: false;
|
|
61022
|
+
isPrimaryKey: false;
|
|
61023
|
+
isAutoincrement: false;
|
|
61024
|
+
hasRuntimeDefault: false;
|
|
61025
|
+
enumValues: undefined;
|
|
61026
|
+
baseColumn: never;
|
|
61027
|
+
identity: undefined;
|
|
61028
|
+
generated: undefined;
|
|
61029
|
+
}, {}, {}>;
|
|
61030
|
+
radiusMeters: import("drizzle-orm/pg-core").PgColumn<{
|
|
61031
|
+
name: "radius_meters";
|
|
61032
|
+
tableName: "simplifi_geo_fences";
|
|
61033
|
+
dataType: "string";
|
|
61034
|
+
columnType: "PgNumeric";
|
|
61035
|
+
data: string;
|
|
61036
|
+
driverParam: string;
|
|
61037
|
+
notNull: true;
|
|
61038
|
+
hasDefault: false;
|
|
61039
|
+
isPrimaryKey: false;
|
|
61040
|
+
isAutoincrement: false;
|
|
61041
|
+
hasRuntimeDefault: false;
|
|
61042
|
+
enumValues: undefined;
|
|
61043
|
+
baseColumn: never;
|
|
61044
|
+
identity: undefined;
|
|
61045
|
+
generated: undefined;
|
|
61046
|
+
}, {}, {}>;
|
|
61047
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
61048
|
+
name: "created_at";
|
|
61049
|
+
tableName: "simplifi_geo_fences";
|
|
61050
|
+
dataType: "date";
|
|
61051
|
+
columnType: "PgTimestamp";
|
|
61052
|
+
data: Date;
|
|
61053
|
+
driverParam: string;
|
|
61054
|
+
notNull: true;
|
|
61055
|
+
hasDefault: true;
|
|
61056
|
+
isPrimaryKey: false;
|
|
61057
|
+
isAutoincrement: false;
|
|
61058
|
+
hasRuntimeDefault: false;
|
|
61059
|
+
enumValues: undefined;
|
|
61060
|
+
baseColumn: never;
|
|
61061
|
+
identity: undefined;
|
|
61062
|
+
generated: undefined;
|
|
61063
|
+
}, {}, {}>;
|
|
61064
|
+
};
|
|
61065
|
+
dialect: "pg";
|
|
61066
|
+
}>;
|
|
61067
|
+
export type SimplifiGeoFenceRecord = typeof simplifiGeoFences.$inferSelect;
|
|
61068
|
+
export type InsertSimplifiGeoFence = typeof simplifiGeoFences.$inferInsert;
|
|
61069
|
+
/**
|
|
61070
|
+
* simplifi_budget_flights — Budget flights (monthly/periodic budget splits)
|
|
61071
|
+
* for Simpli.fi campaigns. Proportional to days in each period.
|
|
61072
|
+
*/
|
|
61073
|
+
export declare const simplifiBudgetFlights: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
61074
|
+
name: "simplifi_budget_flights";
|
|
61075
|
+
schema: undefined;
|
|
61076
|
+
columns: {
|
|
61077
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
61078
|
+
name: "id";
|
|
61079
|
+
tableName: "simplifi_budget_flights";
|
|
61080
|
+
dataType: "string";
|
|
61081
|
+
columnType: "PgVarchar";
|
|
61082
|
+
data: string;
|
|
61083
|
+
driverParam: string;
|
|
61084
|
+
notNull: true;
|
|
61085
|
+
hasDefault: true;
|
|
61086
|
+
isPrimaryKey: true;
|
|
61087
|
+
isAutoincrement: false;
|
|
61088
|
+
hasRuntimeDefault: false;
|
|
61089
|
+
enumValues: [string, ...string[]];
|
|
61090
|
+
baseColumn: never;
|
|
61091
|
+
identity: undefined;
|
|
61092
|
+
generated: undefined;
|
|
61093
|
+
}, {}, {
|
|
61094
|
+
length: number | undefined;
|
|
61095
|
+
}>;
|
|
61096
|
+
simplifiCampaignId: import("drizzle-orm/pg-core").PgColumn<{
|
|
61097
|
+
name: "simplifi_campaign_id";
|
|
61098
|
+
tableName: "simplifi_budget_flights";
|
|
61099
|
+
dataType: "string";
|
|
61100
|
+
columnType: "PgText";
|
|
61101
|
+
data: string;
|
|
61102
|
+
driverParam: string;
|
|
61103
|
+
notNull: true;
|
|
61104
|
+
hasDefault: false;
|
|
61105
|
+
isPrimaryKey: false;
|
|
61106
|
+
isAutoincrement: false;
|
|
61107
|
+
hasRuntimeDefault: false;
|
|
61108
|
+
enumValues: [string, ...string[]];
|
|
61109
|
+
baseColumn: never;
|
|
61110
|
+
identity: undefined;
|
|
61111
|
+
generated: undefined;
|
|
61112
|
+
}, {}, {}>;
|
|
61113
|
+
simplifiFlightId: import("drizzle-orm/pg-core").PgColumn<{
|
|
61114
|
+
name: "simplifi_flight_id";
|
|
61115
|
+
tableName: "simplifi_budget_flights";
|
|
61116
|
+
dataType: "string";
|
|
61117
|
+
columnType: "PgText";
|
|
61118
|
+
data: string;
|
|
61119
|
+
driverParam: string;
|
|
61120
|
+
notNull: false;
|
|
61121
|
+
hasDefault: false;
|
|
61122
|
+
isPrimaryKey: false;
|
|
61123
|
+
isAutoincrement: false;
|
|
61124
|
+
hasRuntimeDefault: false;
|
|
61125
|
+
enumValues: [string, ...string[]];
|
|
61126
|
+
baseColumn: never;
|
|
61127
|
+
identity: undefined;
|
|
61128
|
+
generated: undefined;
|
|
61129
|
+
}, {}, {}>;
|
|
61130
|
+
startDate: import("drizzle-orm/pg-core").PgColumn<{
|
|
61131
|
+
name: "start_date";
|
|
61132
|
+
tableName: "simplifi_budget_flights";
|
|
61133
|
+
dataType: "string";
|
|
61134
|
+
columnType: "PgDateString";
|
|
61135
|
+
data: string;
|
|
61136
|
+
driverParam: string;
|
|
61137
|
+
notNull: true;
|
|
61138
|
+
hasDefault: false;
|
|
61139
|
+
isPrimaryKey: false;
|
|
61140
|
+
isAutoincrement: false;
|
|
61141
|
+
hasRuntimeDefault: false;
|
|
61142
|
+
enumValues: undefined;
|
|
61143
|
+
baseColumn: never;
|
|
61144
|
+
identity: undefined;
|
|
61145
|
+
generated: undefined;
|
|
61146
|
+
}, {}, {}>;
|
|
61147
|
+
endDate: import("drizzle-orm/pg-core").PgColumn<{
|
|
61148
|
+
name: "end_date";
|
|
61149
|
+
tableName: "simplifi_budget_flights";
|
|
61150
|
+
dataType: "string";
|
|
61151
|
+
columnType: "PgDateString";
|
|
61152
|
+
data: string;
|
|
61153
|
+
driverParam: string;
|
|
61154
|
+
notNull: true;
|
|
61155
|
+
hasDefault: false;
|
|
61156
|
+
isPrimaryKey: false;
|
|
61157
|
+
isAutoincrement: false;
|
|
61158
|
+
hasRuntimeDefault: false;
|
|
61159
|
+
enumValues: undefined;
|
|
61160
|
+
baseColumn: never;
|
|
61161
|
+
identity: undefined;
|
|
61162
|
+
generated: undefined;
|
|
61163
|
+
}, {}, {}>;
|
|
61164
|
+
budget: import("drizzle-orm/pg-core").PgColumn<{
|
|
61165
|
+
name: "budget";
|
|
61166
|
+
tableName: "simplifi_budget_flights";
|
|
61167
|
+
dataType: "string";
|
|
61168
|
+
columnType: "PgNumeric";
|
|
61169
|
+
data: string;
|
|
61170
|
+
driverParam: string;
|
|
61171
|
+
notNull: true;
|
|
61172
|
+
hasDefault: false;
|
|
61173
|
+
isPrimaryKey: false;
|
|
61174
|
+
isAutoincrement: false;
|
|
61175
|
+
hasRuntimeDefault: false;
|
|
61176
|
+
enumValues: undefined;
|
|
61177
|
+
baseColumn: never;
|
|
61178
|
+
identity: undefined;
|
|
61179
|
+
generated: undefined;
|
|
61180
|
+
}, {}, {}>;
|
|
61181
|
+
impressionCap: import("drizzle-orm/pg-core").PgColumn<{
|
|
61182
|
+
name: "impression_cap";
|
|
61183
|
+
tableName: "simplifi_budget_flights";
|
|
61184
|
+
dataType: "number";
|
|
61185
|
+
columnType: "PgInteger";
|
|
61186
|
+
data: number;
|
|
61187
|
+
driverParam: string | number;
|
|
61188
|
+
notNull: false;
|
|
61189
|
+
hasDefault: false;
|
|
61190
|
+
isPrimaryKey: false;
|
|
61191
|
+
isAutoincrement: false;
|
|
61192
|
+
hasRuntimeDefault: false;
|
|
61193
|
+
enumValues: undefined;
|
|
61194
|
+
baseColumn: never;
|
|
61195
|
+
identity: undefined;
|
|
61196
|
+
generated: undefined;
|
|
61197
|
+
}, {}, {}>;
|
|
61198
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
61199
|
+
name: "created_at";
|
|
61200
|
+
tableName: "simplifi_budget_flights";
|
|
61201
|
+
dataType: "date";
|
|
61202
|
+
columnType: "PgTimestamp";
|
|
61203
|
+
data: Date;
|
|
61204
|
+
driverParam: string;
|
|
61205
|
+
notNull: true;
|
|
61206
|
+
hasDefault: true;
|
|
61207
|
+
isPrimaryKey: false;
|
|
61208
|
+
isAutoincrement: false;
|
|
61209
|
+
hasRuntimeDefault: false;
|
|
61210
|
+
enumValues: undefined;
|
|
61211
|
+
baseColumn: never;
|
|
61212
|
+
identity: undefined;
|
|
61213
|
+
generated: undefined;
|
|
61214
|
+
}, {}, {}>;
|
|
61215
|
+
};
|
|
61216
|
+
dialect: "pg";
|
|
61217
|
+
}>;
|
|
61218
|
+
export type SimplifiBudgetFlightRecord = typeof simplifiBudgetFlights.$inferSelect;
|
|
61219
|
+
export type InsertSimplifiBudgetFlight = typeof simplifiBudgetFlights.$inferInsert;
|
|
61220
|
+
/** SEM campaign lifecycle status — tracks progression from intake through completion. */
|
|
61221
|
+
export declare const semCampaignStatusEnum: import("drizzle-orm/pg-core").PgEnum<["intake", "enriching", "ready", "exported", "active", "completed"]>;
|
|
61222
|
+
/** SEM enrichment pipeline status — tracks the async enrichment Trigger.dev task. */
|
|
61223
|
+
export declare const semEnrichmentStatusEnum: import("drizzle-orm/pg-core").PgEnum<["pending", "running", "completed", "failed"]>;
|
|
61224
|
+
/**
|
|
61225
|
+
* sem_campaigns — SEM campaign intelligence and lifecycle tracking.
|
|
61226
|
+
*
|
|
61227
|
+
* Created when an order with SEM_SEO line items transitions to "sent".
|
|
61228
|
+
* Enriched asynchronously by the sem-enrich Trigger.dev task with keyword
|
|
61229
|
+
* research, competitor analysis, landing page audit, and AI account structure.
|
|
61230
|
+
*
|
|
61231
|
+
* One record per SEM line item. The enrichmentData JSONB stores the full
|
|
61232
|
+
* DataForSEO + LLM output; accountStructure stores the Google Ads Editor-ready
|
|
61233
|
+
* campaign tree; exportHistory tracks CSV downloads.
|
|
61234
|
+
*/
|
|
61235
|
+
export declare const semCampaigns: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
61236
|
+
name: "sem_campaigns";
|
|
61237
|
+
schema: undefined;
|
|
61238
|
+
columns: {
|
|
61239
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
61240
|
+
name: "id";
|
|
61241
|
+
tableName: "sem_campaigns";
|
|
61242
|
+
dataType: "string";
|
|
61243
|
+
columnType: "PgVarchar";
|
|
61244
|
+
data: string;
|
|
61245
|
+
driverParam: string;
|
|
61246
|
+
notNull: true;
|
|
61247
|
+
hasDefault: true;
|
|
61248
|
+
isPrimaryKey: true;
|
|
61249
|
+
isAutoincrement: false;
|
|
61250
|
+
hasRuntimeDefault: false;
|
|
61251
|
+
enumValues: [string, ...string[]];
|
|
61252
|
+
baseColumn: never;
|
|
61253
|
+
identity: undefined;
|
|
61254
|
+
generated: undefined;
|
|
61255
|
+
}, {}, {
|
|
61256
|
+
length: number | undefined;
|
|
61257
|
+
}>;
|
|
61258
|
+
mediaOrderId: import("drizzle-orm/pg-core").PgColumn<{
|
|
61259
|
+
name: "media_order_id";
|
|
61260
|
+
tableName: "sem_campaigns";
|
|
61261
|
+
dataType: "string";
|
|
61262
|
+
columnType: "PgVarchar";
|
|
61263
|
+
data: string;
|
|
61264
|
+
driverParam: string;
|
|
61265
|
+
notNull: true;
|
|
61266
|
+
hasDefault: false;
|
|
61267
|
+
isPrimaryKey: false;
|
|
61268
|
+
isAutoincrement: false;
|
|
61269
|
+
hasRuntimeDefault: false;
|
|
61270
|
+
enumValues: [string, ...string[]];
|
|
61271
|
+
baseColumn: never;
|
|
61272
|
+
identity: undefined;
|
|
61273
|
+
generated: undefined;
|
|
61274
|
+
}, {}, {
|
|
61275
|
+
length: 36;
|
|
61276
|
+
}>;
|
|
61277
|
+
lineItemId: import("drizzle-orm/pg-core").PgColumn<{
|
|
61278
|
+
name: "line_item_id";
|
|
61279
|
+
tableName: "sem_campaigns";
|
|
61280
|
+
dataType: "string";
|
|
61281
|
+
columnType: "PgVarchar";
|
|
61282
|
+
data: string;
|
|
61283
|
+
driverParam: string;
|
|
61284
|
+
notNull: true;
|
|
61285
|
+
hasDefault: false;
|
|
61286
|
+
isPrimaryKey: false;
|
|
61287
|
+
isAutoincrement: false;
|
|
61288
|
+
hasRuntimeDefault: false;
|
|
61289
|
+
enumValues: [string, ...string[]];
|
|
61290
|
+
baseColumn: never;
|
|
61291
|
+
identity: undefined;
|
|
61292
|
+
generated: undefined;
|
|
61293
|
+
}, {}, {
|
|
61294
|
+
length: 36;
|
|
61295
|
+
}>;
|
|
61296
|
+
clientDomain: import("drizzle-orm/pg-core").PgColumn<{
|
|
61297
|
+
name: "client_domain";
|
|
61298
|
+
tableName: "sem_campaigns";
|
|
61299
|
+
dataType: "string";
|
|
61300
|
+
columnType: "PgText";
|
|
61301
|
+
data: string;
|
|
61302
|
+
driverParam: string;
|
|
61303
|
+
notNull: false;
|
|
61304
|
+
hasDefault: false;
|
|
61305
|
+
isPrimaryKey: false;
|
|
61306
|
+
isAutoincrement: false;
|
|
61307
|
+
hasRuntimeDefault: false;
|
|
61308
|
+
enumValues: [string, ...string[]];
|
|
61309
|
+
baseColumn: never;
|
|
61310
|
+
identity: undefined;
|
|
61311
|
+
generated: undefined;
|
|
61312
|
+
}, {}, {}>;
|
|
61313
|
+
googleAdsAccountId: import("drizzle-orm/pg-core").PgColumn<{
|
|
61314
|
+
name: "google_ads_account_id";
|
|
61315
|
+
tableName: "sem_campaigns";
|
|
61316
|
+
dataType: "string";
|
|
61317
|
+
columnType: "PgText";
|
|
61318
|
+
data: string;
|
|
61319
|
+
driverParam: string;
|
|
61320
|
+
notNull: false;
|
|
61321
|
+
hasDefault: false;
|
|
61322
|
+
isPrimaryKey: false;
|
|
61323
|
+
isAutoincrement: false;
|
|
61324
|
+
hasRuntimeDefault: false;
|
|
61325
|
+
enumValues: [string, ...string[]];
|
|
61326
|
+
baseColumn: never;
|
|
61327
|
+
identity: undefined;
|
|
61328
|
+
generated: undefined;
|
|
61329
|
+
}, {}, {}>;
|
|
61330
|
+
status: import("drizzle-orm/pg-core").PgColumn<{
|
|
61331
|
+
name: "status";
|
|
61332
|
+
tableName: "sem_campaigns";
|
|
61333
|
+
dataType: "string";
|
|
61334
|
+
columnType: "PgEnumColumn";
|
|
61335
|
+
data: "completed" | "active" | "ready" | "intake" | "enriching" | "exported";
|
|
61336
|
+
driverParam: string;
|
|
61337
|
+
notNull: true;
|
|
61338
|
+
hasDefault: true;
|
|
61339
|
+
isPrimaryKey: false;
|
|
61340
|
+
isAutoincrement: false;
|
|
61341
|
+
hasRuntimeDefault: false;
|
|
61342
|
+
enumValues: ["intake", "enriching", "ready", "exported", "active", "completed"];
|
|
61343
|
+
baseColumn: never;
|
|
61344
|
+
identity: undefined;
|
|
61345
|
+
generated: undefined;
|
|
61346
|
+
}, {}, {}>;
|
|
61347
|
+
enrichmentStatus: import("drizzle-orm/pg-core").PgColumn<{
|
|
61348
|
+
name: "enrichment_status";
|
|
61349
|
+
tableName: "sem_campaigns";
|
|
61350
|
+
dataType: "string";
|
|
61351
|
+
columnType: "PgEnumColumn";
|
|
61352
|
+
data: "pending" | "completed" | "failed" | "running";
|
|
61353
|
+
driverParam: string;
|
|
61354
|
+
notNull: true;
|
|
61355
|
+
hasDefault: true;
|
|
61356
|
+
isPrimaryKey: false;
|
|
61357
|
+
isAutoincrement: false;
|
|
61358
|
+
hasRuntimeDefault: false;
|
|
61359
|
+
enumValues: ["pending", "running", "completed", "failed"];
|
|
61360
|
+
baseColumn: never;
|
|
61361
|
+
identity: undefined;
|
|
61362
|
+
generated: undefined;
|
|
61363
|
+
}, {}, {}>;
|
|
61364
|
+
enrichmentData: import("drizzle-orm/pg-core").PgColumn<{
|
|
61365
|
+
name: "enrichment_data";
|
|
61366
|
+
tableName: "sem_campaigns";
|
|
61367
|
+
dataType: "json";
|
|
61368
|
+
columnType: "PgJsonb";
|
|
61369
|
+
data: unknown;
|
|
61370
|
+
driverParam: unknown;
|
|
61371
|
+
notNull: false;
|
|
61372
|
+
hasDefault: false;
|
|
61373
|
+
isPrimaryKey: false;
|
|
61374
|
+
isAutoincrement: false;
|
|
61375
|
+
hasRuntimeDefault: false;
|
|
61376
|
+
enumValues: undefined;
|
|
61377
|
+
baseColumn: never;
|
|
61378
|
+
identity: undefined;
|
|
61379
|
+
generated: undefined;
|
|
61380
|
+
}, {}, {}>;
|
|
61381
|
+
enrichmentError: import("drizzle-orm/pg-core").PgColumn<{
|
|
61382
|
+
name: "enrichment_error";
|
|
61383
|
+
tableName: "sem_campaigns";
|
|
61384
|
+
dataType: "string";
|
|
61385
|
+
columnType: "PgText";
|
|
61386
|
+
data: string;
|
|
61387
|
+
driverParam: string;
|
|
61388
|
+
notNull: false;
|
|
61389
|
+
hasDefault: false;
|
|
61390
|
+
isPrimaryKey: false;
|
|
61391
|
+
isAutoincrement: false;
|
|
61392
|
+
hasRuntimeDefault: false;
|
|
61393
|
+
enumValues: [string, ...string[]];
|
|
61394
|
+
baseColumn: never;
|
|
61395
|
+
identity: undefined;
|
|
61396
|
+
generated: undefined;
|
|
61397
|
+
}, {}, {}>;
|
|
61398
|
+
accountStructure: import("drizzle-orm/pg-core").PgColumn<{
|
|
61399
|
+
name: "account_structure";
|
|
61400
|
+
tableName: "sem_campaigns";
|
|
61401
|
+
dataType: "json";
|
|
61402
|
+
columnType: "PgJsonb";
|
|
61403
|
+
data: unknown;
|
|
61404
|
+
driverParam: unknown;
|
|
61405
|
+
notNull: false;
|
|
61406
|
+
hasDefault: false;
|
|
61407
|
+
isPrimaryKey: false;
|
|
61408
|
+
isAutoincrement: false;
|
|
61409
|
+
hasRuntimeDefault: false;
|
|
61410
|
+
enumValues: undefined;
|
|
61411
|
+
baseColumn: never;
|
|
61412
|
+
identity: undefined;
|
|
61413
|
+
generated: undefined;
|
|
61414
|
+
}, {}, {}>;
|
|
61415
|
+
exportHistory: import("drizzle-orm/pg-core").PgColumn<{
|
|
61416
|
+
name: "export_history";
|
|
61417
|
+
tableName: "sem_campaigns";
|
|
61418
|
+
dataType: "json";
|
|
61419
|
+
columnType: "PgJsonb";
|
|
61420
|
+
data: unknown;
|
|
61421
|
+
driverParam: unknown;
|
|
61422
|
+
notNull: false;
|
|
61423
|
+
hasDefault: true;
|
|
61424
|
+
isPrimaryKey: false;
|
|
61425
|
+
isAutoincrement: false;
|
|
61426
|
+
hasRuntimeDefault: false;
|
|
61427
|
+
enumValues: undefined;
|
|
61428
|
+
baseColumn: never;
|
|
61429
|
+
identity: undefined;
|
|
61430
|
+
generated: undefined;
|
|
61431
|
+
}, {}, {}>;
|
|
61432
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
61433
|
+
name: "created_at";
|
|
61434
|
+
tableName: "sem_campaigns";
|
|
61435
|
+
dataType: "date";
|
|
61436
|
+
columnType: "PgTimestamp";
|
|
61437
|
+
data: Date;
|
|
61438
|
+
driverParam: string;
|
|
61439
|
+
notNull: true;
|
|
61440
|
+
hasDefault: true;
|
|
61441
|
+
isPrimaryKey: false;
|
|
61442
|
+
isAutoincrement: false;
|
|
61443
|
+
hasRuntimeDefault: false;
|
|
61444
|
+
enumValues: undefined;
|
|
61445
|
+
baseColumn: never;
|
|
61446
|
+
identity: undefined;
|
|
61447
|
+
generated: undefined;
|
|
61448
|
+
}, {}, {}>;
|
|
61449
|
+
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
61450
|
+
name: "updated_at";
|
|
61451
|
+
tableName: "sem_campaigns";
|
|
61452
|
+
dataType: "date";
|
|
61453
|
+
columnType: "PgTimestamp";
|
|
61454
|
+
data: Date;
|
|
61455
|
+
driverParam: string;
|
|
61456
|
+
notNull: true;
|
|
61457
|
+
hasDefault: true;
|
|
61458
|
+
isPrimaryKey: false;
|
|
61459
|
+
isAutoincrement: false;
|
|
61460
|
+
hasRuntimeDefault: false;
|
|
61461
|
+
enumValues: undefined;
|
|
61462
|
+
baseColumn: never;
|
|
61463
|
+
identity: undefined;
|
|
61464
|
+
generated: undefined;
|
|
61465
|
+
}, {}, {}>;
|
|
61466
|
+
};
|
|
61467
|
+
dialect: "pg";
|
|
61468
|
+
}>;
|
|
61469
|
+
export type SemCampaignRecord = typeof semCampaigns.$inferSelect;
|
|
61470
|
+
export type InsertSemCampaign = typeof semCampaigns.$inferInsert;
|
|
60553
61471
|
//# sourceMappingURL=schema.d.ts.map
|