@foundrynorth/compass-schema 1.0.16 → 1.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/schema.d.ts +57 -145
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +10 -14
- package/dist/schema.js.map +1 -1
- package/package.json +1 -1
- package/src/schema.ts +11 -19
package/dist/schema.d.ts
CHANGED
|
@@ -55448,6 +55448,59 @@ export declare const contracts: import("drizzle-orm/pg-core").PgTableWithColumns
|
|
|
55448
55448
|
}, {}, {
|
|
55449
55449
|
length: number | undefined;
|
|
55450
55450
|
}>;
|
|
55451
|
+
fluxAgreementId: import("drizzle-orm/pg-core").PgColumn<{
|
|
55452
|
+
name: "flux_agreement_id";
|
|
55453
|
+
tableName: "contracts";
|
|
55454
|
+
dataType: "string";
|
|
55455
|
+
columnType: "PgText";
|
|
55456
|
+
data: string;
|
|
55457
|
+
driverParam: string;
|
|
55458
|
+
notNull: false;
|
|
55459
|
+
hasDefault: false;
|
|
55460
|
+
isPrimaryKey: false;
|
|
55461
|
+
isAutoincrement: false;
|
|
55462
|
+
hasRuntimeDefault: false;
|
|
55463
|
+
enumValues: [string, ...string[]];
|
|
55464
|
+
baseColumn: never;
|
|
55465
|
+
identity: undefined;
|
|
55466
|
+
generated: undefined;
|
|
55467
|
+
}, {}, {}>;
|
|
55468
|
+
lastSyncedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
55469
|
+
name: "last_synced_at";
|
|
55470
|
+
tableName: "contracts";
|
|
55471
|
+
dataType: "date";
|
|
55472
|
+
columnType: "PgTimestamp";
|
|
55473
|
+
data: Date;
|
|
55474
|
+
driverParam: string;
|
|
55475
|
+
notNull: false;
|
|
55476
|
+
hasDefault: false;
|
|
55477
|
+
isPrimaryKey: false;
|
|
55478
|
+
isAutoincrement: false;
|
|
55479
|
+
hasRuntimeDefault: false;
|
|
55480
|
+
enumValues: undefined;
|
|
55481
|
+
baseColumn: never;
|
|
55482
|
+
identity: undefined;
|
|
55483
|
+
generated: undefined;
|
|
55484
|
+
}, {}, {}>;
|
|
55485
|
+
syncSource: import("drizzle-orm/pg-core").PgColumn<{
|
|
55486
|
+
name: "sync_source";
|
|
55487
|
+
tableName: "contracts";
|
|
55488
|
+
dataType: "string";
|
|
55489
|
+
columnType: "PgVarchar";
|
|
55490
|
+
data: string;
|
|
55491
|
+
driverParam: string;
|
|
55492
|
+
notNull: false;
|
|
55493
|
+
hasDefault: true;
|
|
55494
|
+
isPrimaryKey: false;
|
|
55495
|
+
isAutoincrement: false;
|
|
55496
|
+
hasRuntimeDefault: false;
|
|
55497
|
+
enumValues: [string, ...string[]];
|
|
55498
|
+
baseColumn: never;
|
|
55499
|
+
identity: undefined;
|
|
55500
|
+
generated: undefined;
|
|
55501
|
+
}, {}, {
|
|
55502
|
+
length: number | undefined;
|
|
55503
|
+
}>;
|
|
55451
55504
|
notes: import("drizzle-orm/pg-core").PgColumn<{
|
|
55452
55505
|
name: "notes";
|
|
55453
55506
|
tableName: "contracts";
|
|
@@ -55554,11 +55607,14 @@ export declare const insertContractSchema: z.ZodObject<Omit<{
|
|
|
55554
55607
|
signingStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
55555
55608
|
sentForSigningAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
55556
55609
|
sentForSigningBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
55610
|
+
fluxAgreementId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
55611
|
+
lastSyncedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
55612
|
+
syncSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
55557
55613
|
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
55558
55614
|
createdByUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
55559
55615
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
55560
55616
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
55561
|
-
}, "id" | "createdAt" | "updatedAt" | "allocatedAmount" | "billedAmount" | "remainingAmount" | "actualMarginPct" | "actualMarginDollars" | "orderCount" | "lastRecalculatedAt">, "strip", z.ZodTypeAny, {
|
|
55617
|
+
}, "id" | "createdAt" | "updatedAt" | "lastSyncedAt" | "allocatedAmount" | "billedAmount" | "remainingAmount" | "actualMarginPct" | "actualMarginDollars" | "orderCount" | "lastRecalculatedAt" | "fluxAgreementId" | "syncSource">, "strip", z.ZodTypeAny, {
|
|
55562
55618
|
name: string;
|
|
55563
55619
|
hubspotCompanyId: string;
|
|
55564
55620
|
tierCode: string;
|
|
@@ -55699,150 +55755,6 @@ export type Contract = typeof contracts.$inferSelect;
|
|
|
55699
55755
|
export type InsertContract = z.infer<typeof insertContractSchema>;
|
|
55700
55756
|
export type UpdateContract = z.infer<typeof updateContractSchema>;
|
|
55701
55757
|
export declare const signerRoleEnum: import("drizzle-orm/pg-core").PgEnum<["internal_approver", "client_signer", "counter_signer"]>;
|
|
55702
|
-
export declare const contractSigners: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
55703
|
-
name: "contract_signers";
|
|
55704
|
-
schema: undefined;
|
|
55705
|
-
columns: {
|
|
55706
|
-
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
55707
|
-
name: "id";
|
|
55708
|
-
tableName: "contract_signers";
|
|
55709
|
-
dataType: "string";
|
|
55710
|
-
columnType: "PgUUID";
|
|
55711
|
-
data: string;
|
|
55712
|
-
driverParam: string;
|
|
55713
|
-
notNull: true;
|
|
55714
|
-
hasDefault: true;
|
|
55715
|
-
isPrimaryKey: true;
|
|
55716
|
-
isAutoincrement: false;
|
|
55717
|
-
hasRuntimeDefault: false;
|
|
55718
|
-
enumValues: undefined;
|
|
55719
|
-
baseColumn: never;
|
|
55720
|
-
identity: undefined;
|
|
55721
|
-
generated: undefined;
|
|
55722
|
-
}, {}, {}>;
|
|
55723
|
-
contractId: import("drizzle-orm/pg-core").PgColumn<{
|
|
55724
|
-
name: "contract_id";
|
|
55725
|
-
tableName: "contract_signers";
|
|
55726
|
-
dataType: "string";
|
|
55727
|
-
columnType: "PgUUID";
|
|
55728
|
-
data: string;
|
|
55729
|
-
driverParam: string;
|
|
55730
|
-
notNull: true;
|
|
55731
|
-
hasDefault: false;
|
|
55732
|
-
isPrimaryKey: false;
|
|
55733
|
-
isAutoincrement: false;
|
|
55734
|
-
hasRuntimeDefault: false;
|
|
55735
|
-
enumValues: undefined;
|
|
55736
|
-
baseColumn: never;
|
|
55737
|
-
identity: undefined;
|
|
55738
|
-
generated: undefined;
|
|
55739
|
-
}, {}, {}>;
|
|
55740
|
-
role: import("drizzle-orm/pg-core").PgColumn<{
|
|
55741
|
-
name: "role";
|
|
55742
|
-
tableName: "contract_signers";
|
|
55743
|
-
dataType: "string";
|
|
55744
|
-
columnType: "PgEnumColumn";
|
|
55745
|
-
data: "internal_approver" | "client_signer" | "counter_signer";
|
|
55746
|
-
driverParam: string;
|
|
55747
|
-
notNull: true;
|
|
55748
|
-
hasDefault: true;
|
|
55749
|
-
isPrimaryKey: false;
|
|
55750
|
-
isAutoincrement: false;
|
|
55751
|
-
hasRuntimeDefault: false;
|
|
55752
|
-
enumValues: ["internal_approver", "client_signer", "counter_signer"];
|
|
55753
|
-
baseColumn: never;
|
|
55754
|
-
identity: undefined;
|
|
55755
|
-
generated: undefined;
|
|
55756
|
-
}, {}, {}>;
|
|
55757
|
-
displayOrder: import("drizzle-orm/pg-core").PgColumn<{
|
|
55758
|
-
name: "display_order";
|
|
55759
|
-
tableName: "contract_signers";
|
|
55760
|
-
dataType: "number";
|
|
55761
|
-
columnType: "PgInteger";
|
|
55762
|
-
data: number;
|
|
55763
|
-
driverParam: string | number;
|
|
55764
|
-
notNull: true;
|
|
55765
|
-
hasDefault: true;
|
|
55766
|
-
isPrimaryKey: false;
|
|
55767
|
-
isAutoincrement: false;
|
|
55768
|
-
hasRuntimeDefault: false;
|
|
55769
|
-
enumValues: undefined;
|
|
55770
|
-
baseColumn: never;
|
|
55771
|
-
identity: undefined;
|
|
55772
|
-
generated: undefined;
|
|
55773
|
-
}, {}, {}>;
|
|
55774
|
-
hubspotContactId: import("drizzle-orm/pg-core").PgColumn<{
|
|
55775
|
-
name: "hubspot_contact_id";
|
|
55776
|
-
tableName: "contract_signers";
|
|
55777
|
-
dataType: "string";
|
|
55778
|
-
columnType: "PgText";
|
|
55779
|
-
data: string;
|
|
55780
|
-
driverParam: string;
|
|
55781
|
-
notNull: false;
|
|
55782
|
-
hasDefault: false;
|
|
55783
|
-
isPrimaryKey: false;
|
|
55784
|
-
isAutoincrement: false;
|
|
55785
|
-
hasRuntimeDefault: false;
|
|
55786
|
-
enumValues: [string, ...string[]];
|
|
55787
|
-
baseColumn: never;
|
|
55788
|
-
identity: undefined;
|
|
55789
|
-
generated: undefined;
|
|
55790
|
-
}, {}, {}>;
|
|
55791
|
-
name: import("drizzle-orm/pg-core").PgColumn<{
|
|
55792
|
-
name: "name";
|
|
55793
|
-
tableName: "contract_signers";
|
|
55794
|
-
dataType: "string";
|
|
55795
|
-
columnType: "PgText";
|
|
55796
|
-
data: string;
|
|
55797
|
-
driverParam: string;
|
|
55798
|
-
notNull: true;
|
|
55799
|
-
hasDefault: false;
|
|
55800
|
-
isPrimaryKey: false;
|
|
55801
|
-
isAutoincrement: false;
|
|
55802
|
-
hasRuntimeDefault: false;
|
|
55803
|
-
enumValues: [string, ...string[]];
|
|
55804
|
-
baseColumn: never;
|
|
55805
|
-
identity: undefined;
|
|
55806
|
-
generated: undefined;
|
|
55807
|
-
}, {}, {}>;
|
|
55808
|
-
email: import("drizzle-orm/pg-core").PgColumn<{
|
|
55809
|
-
name: "email";
|
|
55810
|
-
tableName: "contract_signers";
|
|
55811
|
-
dataType: "string";
|
|
55812
|
-
columnType: "PgText";
|
|
55813
|
-
data: string;
|
|
55814
|
-
driverParam: string;
|
|
55815
|
-
notNull: true;
|
|
55816
|
-
hasDefault: false;
|
|
55817
|
-
isPrimaryKey: false;
|
|
55818
|
-
isAutoincrement: false;
|
|
55819
|
-
hasRuntimeDefault: false;
|
|
55820
|
-
enumValues: [string, ...string[]];
|
|
55821
|
-
baseColumn: never;
|
|
55822
|
-
identity: undefined;
|
|
55823
|
-
generated: undefined;
|
|
55824
|
-
}, {}, {}>;
|
|
55825
|
-
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
55826
|
-
name: "created_at";
|
|
55827
|
-
tableName: "contract_signers";
|
|
55828
|
-
dataType: "date";
|
|
55829
|
-
columnType: "PgTimestamp";
|
|
55830
|
-
data: Date;
|
|
55831
|
-
driverParam: string;
|
|
55832
|
-
notNull: true;
|
|
55833
|
-
hasDefault: true;
|
|
55834
|
-
isPrimaryKey: false;
|
|
55835
|
-
isAutoincrement: false;
|
|
55836
|
-
hasRuntimeDefault: false;
|
|
55837
|
-
enumValues: undefined;
|
|
55838
|
-
baseColumn: never;
|
|
55839
|
-
identity: undefined;
|
|
55840
|
-
generated: undefined;
|
|
55841
|
-
}, {}, {}>;
|
|
55842
|
-
};
|
|
55843
|
-
dialect: "pg";
|
|
55844
|
-
}>;
|
|
55845
|
-
export type ContractSigner = typeof contractSigners.$inferSelect;
|
|
55846
55758
|
export declare const orderSigners: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
55847
55759
|
name: "order_signers";
|
|
55848
55760
|
schema: undefined;
|