@voyantjs/crm 0.26.3 → 0.26.5
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/index.d.ts +5 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/routes/customer-signals.d.ts +281 -0
- package/dist/routes/customer-signals.d.ts.map +1 -0
- package/dist/routes/customer-signals.js +45 -0
- package/dist/routes/index.d.ts +271 -0
- package/dist/routes/index.d.ts.map +1 -1
- package/dist/routes/index.js +2 -0
- package/dist/schema-accounts.d.ts +82 -93
- package/dist/schema-accounts.d.ts.map +1 -1
- package/dist/schema-accounts.js +17 -7
- package/dist/schema-signals.d.ts +324 -0
- package/dist/schema-signals.d.ts.map +1 -0
- package/dist/schema-signals.js +80 -0
- package/dist/schema.d.ts +1 -0
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +1 -0
- package/dist/service/accounts-shared.d.ts +0 -2
- package/dist/service/accounts-shared.d.ts.map +1 -1
- package/dist/service/accounts-shared.js +20 -72
- package/dist/service/customer-signals.d.ts +733 -0
- package/dist/service/customer-signals.d.ts.map +1 -0
- package/dist/service/customer-signals.js +112 -0
- package/dist/service/index.d.ts +712 -0
- package/dist/service/index.d.ts.map +1 -1
- package/dist/service/index.js +3 -0
- package/dist/validation.d.ts +140 -0
- package/dist/validation.d.ts.map +1 -1
- package/dist/validation.js +56 -0
- package/package.json +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/routes/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/routes/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAajE,KAAK,GAAG,GAAG;IACT,SAAS,EAAE;QACT,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBASU,CAAA;AAEhC,MAAM,MAAM,SAAS,GAAG,OAAO,SAAS,CAAA"}
|
package/dist/routes/index.js
CHANGED
|
@@ -2,6 +2,7 @@ import { Hono } from "hono";
|
|
|
2
2
|
import { accountRoutes } from "./accounts.js";
|
|
3
3
|
import { activityRoutes } from "./activities.js";
|
|
4
4
|
import { customFieldRoutes } from "./custom-fields.js";
|
|
5
|
+
import { customerSignalRoutes } from "./customer-signals.js";
|
|
5
6
|
import { opportunityRoutes } from "./opportunities.js";
|
|
6
7
|
import { personDocumentRoutes } from "./person-documents.js";
|
|
7
8
|
import { personRelationshipRoutes } from "./person-relationships.js";
|
|
@@ -11,6 +12,7 @@ export const crmRoutes = new Hono()
|
|
|
11
12
|
.route("/", accountRoutes)
|
|
12
13
|
.route("/", personDocumentRoutes)
|
|
13
14
|
.route("/", personRelationshipRoutes)
|
|
15
|
+
.route("/", customerSignalRoutes)
|
|
14
16
|
.route("/", pipelineRoutes)
|
|
15
17
|
.route("/", opportunityRoutes)
|
|
16
18
|
.route("/", quoteRoutes)
|
|
@@ -786,97 +786,88 @@ export declare const people: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
786
786
|
};
|
|
787
787
|
dialect: "pg";
|
|
788
788
|
}>;
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
isAutoincrement: false;
|
|
872
|
-
hasRuntimeDefault: false;
|
|
873
|
-
enumValues: undefined;
|
|
874
|
-
baseColumn: never;
|
|
875
|
-
identity: undefined;
|
|
876
|
-
generated: undefined;
|
|
877
|
-
}, {}, {}>;
|
|
878
|
-
};
|
|
879
|
-
dialect: "pg";
|
|
789
|
+
/**
|
|
790
|
+
* `person_directory` is a Postgres VIEW (not a table) that exposes
|
|
791
|
+
* each person's primary email / phone / website by `LATERAL` lookup
|
|
792
|
+
* against `identity_contact_points`. The view is created in the
|
|
793
|
+
* 0028 migration; this binding gives Drizzle a typed read surface.
|
|
794
|
+
*
|
|
795
|
+
* The previous `person_directory_projections` table was a denormalized
|
|
796
|
+
* cache that had to be rebuilt on every contact-point change — see
|
|
797
|
+
* #446 for the discussion of why we replaced it. Indexed lateral
|
|
798
|
+
* joins (`idx_identity_contact_points_entity_kind_primary_created`
|
|
799
|
+
* already exists) keep view reads sub-millisecond at realistic CRM
|
|
800
|
+
* volumes.
|
|
801
|
+
*/
|
|
802
|
+
export declare const personDirectoryView: import("drizzle-orm/pg-core").PgViewWithSelection<"person_directory", true, {
|
|
803
|
+
personId: import("drizzle-orm/pg-core").PgColumn<{
|
|
804
|
+
name: string;
|
|
805
|
+
tableName: "person_directory";
|
|
806
|
+
dataType: "string";
|
|
807
|
+
columnType: "PgText";
|
|
808
|
+
data: string;
|
|
809
|
+
driverParam: string;
|
|
810
|
+
notNull: true;
|
|
811
|
+
hasDefault: false;
|
|
812
|
+
isPrimaryKey: false;
|
|
813
|
+
isAutoincrement: false;
|
|
814
|
+
hasRuntimeDefault: false;
|
|
815
|
+
enumValues: [string, ...string[]];
|
|
816
|
+
baseColumn: never;
|
|
817
|
+
identity: undefined;
|
|
818
|
+
generated: undefined;
|
|
819
|
+
}, {}, {}>;
|
|
820
|
+
email: import("drizzle-orm/pg-core").PgColumn<{
|
|
821
|
+
name: "email";
|
|
822
|
+
tableName: "person_directory";
|
|
823
|
+
dataType: "string";
|
|
824
|
+
columnType: "PgText";
|
|
825
|
+
data: string;
|
|
826
|
+
driverParam: string;
|
|
827
|
+
notNull: false;
|
|
828
|
+
hasDefault: false;
|
|
829
|
+
isPrimaryKey: false;
|
|
830
|
+
isAutoincrement: false;
|
|
831
|
+
hasRuntimeDefault: false;
|
|
832
|
+
enumValues: [string, ...string[]];
|
|
833
|
+
baseColumn: never;
|
|
834
|
+
identity: undefined;
|
|
835
|
+
generated: undefined;
|
|
836
|
+
}, {}, {}>;
|
|
837
|
+
phone: import("drizzle-orm/pg-core").PgColumn<{
|
|
838
|
+
name: "phone";
|
|
839
|
+
tableName: "person_directory";
|
|
840
|
+
dataType: "string";
|
|
841
|
+
columnType: "PgText";
|
|
842
|
+
data: string;
|
|
843
|
+
driverParam: string;
|
|
844
|
+
notNull: false;
|
|
845
|
+
hasDefault: false;
|
|
846
|
+
isPrimaryKey: false;
|
|
847
|
+
isAutoincrement: false;
|
|
848
|
+
hasRuntimeDefault: false;
|
|
849
|
+
enumValues: [string, ...string[]];
|
|
850
|
+
baseColumn: never;
|
|
851
|
+
identity: undefined;
|
|
852
|
+
generated: undefined;
|
|
853
|
+
}, {}, {}>;
|
|
854
|
+
website: import("drizzle-orm/pg-core").PgColumn<{
|
|
855
|
+
name: "website";
|
|
856
|
+
tableName: "person_directory";
|
|
857
|
+
dataType: "string";
|
|
858
|
+
columnType: "PgText";
|
|
859
|
+
data: string;
|
|
860
|
+
driverParam: string;
|
|
861
|
+
notNull: false;
|
|
862
|
+
hasDefault: false;
|
|
863
|
+
isPrimaryKey: false;
|
|
864
|
+
isAutoincrement: false;
|
|
865
|
+
hasRuntimeDefault: false;
|
|
866
|
+
enumValues: [string, ...string[]];
|
|
867
|
+
baseColumn: never;
|
|
868
|
+
identity: undefined;
|
|
869
|
+
generated: undefined;
|
|
870
|
+
}, {}, {}>;
|
|
880
871
|
}>;
|
|
881
872
|
export declare const personNotes: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
882
873
|
name: "person_notes";
|
|
@@ -2105,6 +2096,4 @@ export type Organization = typeof organizations.$inferSelect;
|
|
|
2105
2096
|
export type NewOrganization = typeof organizations.$inferInsert;
|
|
2106
2097
|
export type Person = typeof people.$inferSelect;
|
|
2107
2098
|
export type NewPerson = typeof people.$inferInsert;
|
|
2108
|
-
export type PersonDirectoryProjection = typeof personDirectoryProjections.$inferSelect;
|
|
2109
|
-
export type NewPersonDirectoryProjection = typeof personDirectoryProjections.$inferInsert;
|
|
2110
2099
|
//# sourceMappingURL=schema-accounts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-accounts.d.ts","sourceRoot":"","sources":["../src/schema-accounts.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"schema-accounts.d.ts","sourceRoot":"","sources":["../src/schema-accounts.ts"],"names":[],"mappings":"AAyBA;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,kGAMjC,CAAA;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,0BAA0B,2KAYrC,CAAA;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,MAAM,MAAM,SAAS,GAAG,OAAO,MAAM,CAAC,YAAY,CAAA"}
|
package/dist/schema-accounts.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { typeId, typeIdRef } from "@voyantjs/db/lib/typeid-column";
|
|
2
2
|
import { sql } from "drizzle-orm";
|
|
3
|
-
import { boolean, check, date, index, integer, jsonb, pgEnum, pgTable, text, timestamp, uniqueIndex, } from "drizzle-orm/pg-core";
|
|
3
|
+
import { boolean, check, date, index, integer, jsonb, pgEnum, pgTable, pgView, text, timestamp, uniqueIndex, } from "drizzle-orm/pg-core";
|
|
4
4
|
import { communicationChannelEnum, communicationDirectionEnum, recordStatusEnum, relationTypeEnum, } from "./schema-shared.js";
|
|
5
5
|
/**
|
|
6
6
|
* Identity-document types stored on `person_documents`. Open-ended via
|
|
@@ -112,15 +112,25 @@ export const people = pgTable("people", {
|
|
|
112
112
|
index("idx_people_relation_updated").on(table.relation, table.updatedAt),
|
|
113
113
|
index("idx_people_status_updated").on(table.status, table.updatedAt),
|
|
114
114
|
]);
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
115
|
+
/**
|
|
116
|
+
* `person_directory` is a Postgres VIEW (not a table) that exposes
|
|
117
|
+
* each person's primary email / phone / website by `LATERAL` lookup
|
|
118
|
+
* against `identity_contact_points`. The view is created in the
|
|
119
|
+
* 0028 migration; this binding gives Drizzle a typed read surface.
|
|
120
|
+
*
|
|
121
|
+
* The previous `person_directory_projections` table was a denormalized
|
|
122
|
+
* cache that had to be rebuilt on every contact-point change — see
|
|
123
|
+
* #446 for the discussion of why we replaced it. Indexed lateral
|
|
124
|
+
* joins (`idx_identity_contact_points_entity_kind_primary_created`
|
|
125
|
+
* already exists) keep view reads sub-millisecond at realistic CRM
|
|
126
|
+
* volumes.
|
|
127
|
+
*/
|
|
128
|
+
export const personDirectoryView = pgView("person_directory", {
|
|
129
|
+
personId: typeIdRef("person_id").notNull(),
|
|
119
130
|
email: text("email"),
|
|
120
131
|
phone: text("phone"),
|
|
121
132
|
website: text("website"),
|
|
122
|
-
|
|
123
|
-
}, (table) => [uniqueIndex("uq_person_directory_projections_person").on(table.personId)]);
|
|
133
|
+
}).existing();
|
|
124
134
|
export const personNotes = pgTable("person_notes", {
|
|
125
135
|
id: typeId("person_notes"),
|
|
126
136
|
personId: typeIdRef("person_id")
|
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Customer signals — lighter than `opportunities` (no deal value or
|
|
3
|
+
* stages), heavier than `segments` (lifecycle + assignment). Records
|
|
4
|
+
* "person X expressed interest in product/departure Y from source Z,
|
|
5
|
+
* status pending". The most common use cases:
|
|
6
|
+
*
|
|
7
|
+
* - Notify-availability ("ping me when this departure opens up")
|
|
8
|
+
* - Wishlist / saved trips
|
|
9
|
+
* - Inquiry captured by an operator (phone call, web form)
|
|
10
|
+
* - Request-offer pre-pipeline that may or may not become a booking
|
|
11
|
+
* - Abandoned-cart recovery
|
|
12
|
+
*
|
|
13
|
+
* Cross-module IDs (`productId`, `optionUnitId`, `resolvedBookingId`)
|
|
14
|
+
* are intentionally plain `text()` columns rather than FK references
|
|
15
|
+
* — voyant's project-wide rule is that cross-module FKs go through
|
|
16
|
+
* link tables or stay loose. The signal is owned by CRM; products
|
|
17
|
+
* and bookings reference its id, not the other way around.
|
|
18
|
+
*/
|
|
19
|
+
export declare const customerSignalKindEnum: import("drizzle-orm/pg-core").PgEnum<["wishlist", "notify", "inquiry", "request_offer", "referral"]>;
|
|
20
|
+
export declare const customerSignalSourceEnum: import("drizzle-orm/pg-core").PgEnum<["form", "phone", "admin", "abandoned_cart", "website", "booking"]>;
|
|
21
|
+
export declare const customerSignalStatusEnum: import("drizzle-orm/pg-core").PgEnum<["new", "contacted", "qualified", "converted", "lost", "expired"]>;
|
|
22
|
+
export declare const customerSignals: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
23
|
+
name: "customer_signals";
|
|
24
|
+
schema: undefined;
|
|
25
|
+
columns: {
|
|
26
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
27
|
+
name: string;
|
|
28
|
+
tableName: "customer_signals";
|
|
29
|
+
dataType: "string";
|
|
30
|
+
columnType: "PgText";
|
|
31
|
+
data: string;
|
|
32
|
+
driverParam: string;
|
|
33
|
+
notNull: true;
|
|
34
|
+
hasDefault: true;
|
|
35
|
+
isPrimaryKey: true;
|
|
36
|
+
isAutoincrement: false;
|
|
37
|
+
hasRuntimeDefault: true;
|
|
38
|
+
enumValues: [string, ...string[]];
|
|
39
|
+
baseColumn: never;
|
|
40
|
+
identity: undefined;
|
|
41
|
+
generated: undefined;
|
|
42
|
+
}, {}, {}>;
|
|
43
|
+
personId: import("drizzle-orm/pg-core").PgColumn<{
|
|
44
|
+
name: string;
|
|
45
|
+
tableName: "customer_signals";
|
|
46
|
+
dataType: "string";
|
|
47
|
+
columnType: "PgText";
|
|
48
|
+
data: string;
|
|
49
|
+
driverParam: string;
|
|
50
|
+
notNull: true;
|
|
51
|
+
hasDefault: false;
|
|
52
|
+
isPrimaryKey: false;
|
|
53
|
+
isAutoincrement: false;
|
|
54
|
+
hasRuntimeDefault: false;
|
|
55
|
+
enumValues: [string, ...string[]];
|
|
56
|
+
baseColumn: never;
|
|
57
|
+
identity: undefined;
|
|
58
|
+
generated: undefined;
|
|
59
|
+
}, {}, {}>;
|
|
60
|
+
productId: import("drizzle-orm/pg-core").PgColumn<{
|
|
61
|
+
name: "product_id";
|
|
62
|
+
tableName: "customer_signals";
|
|
63
|
+
dataType: "string";
|
|
64
|
+
columnType: "PgText";
|
|
65
|
+
data: string;
|
|
66
|
+
driverParam: string;
|
|
67
|
+
notNull: false;
|
|
68
|
+
hasDefault: false;
|
|
69
|
+
isPrimaryKey: false;
|
|
70
|
+
isAutoincrement: false;
|
|
71
|
+
hasRuntimeDefault: false;
|
|
72
|
+
enumValues: [string, ...string[]];
|
|
73
|
+
baseColumn: never;
|
|
74
|
+
identity: undefined;
|
|
75
|
+
generated: undefined;
|
|
76
|
+
}, {}, {}>;
|
|
77
|
+
optionUnitId: import("drizzle-orm/pg-core").PgColumn<{
|
|
78
|
+
name: "option_unit_id";
|
|
79
|
+
tableName: "customer_signals";
|
|
80
|
+
dataType: "string";
|
|
81
|
+
columnType: "PgText";
|
|
82
|
+
data: string;
|
|
83
|
+
driverParam: string;
|
|
84
|
+
notNull: false;
|
|
85
|
+
hasDefault: false;
|
|
86
|
+
isPrimaryKey: false;
|
|
87
|
+
isAutoincrement: false;
|
|
88
|
+
hasRuntimeDefault: false;
|
|
89
|
+
enumValues: [string, ...string[]];
|
|
90
|
+
baseColumn: never;
|
|
91
|
+
identity: undefined;
|
|
92
|
+
generated: undefined;
|
|
93
|
+
}, {}, {}>;
|
|
94
|
+
kind: import("drizzle-orm/pg-core").PgColumn<{
|
|
95
|
+
name: "kind";
|
|
96
|
+
tableName: "customer_signals";
|
|
97
|
+
dataType: "string";
|
|
98
|
+
columnType: "PgEnumColumn";
|
|
99
|
+
data: "wishlist" | "notify" | "inquiry" | "request_offer" | "referral";
|
|
100
|
+
driverParam: string;
|
|
101
|
+
notNull: true;
|
|
102
|
+
hasDefault: false;
|
|
103
|
+
isPrimaryKey: false;
|
|
104
|
+
isAutoincrement: false;
|
|
105
|
+
hasRuntimeDefault: false;
|
|
106
|
+
enumValues: ["wishlist", "notify", "inquiry", "request_offer", "referral"];
|
|
107
|
+
baseColumn: never;
|
|
108
|
+
identity: undefined;
|
|
109
|
+
generated: undefined;
|
|
110
|
+
}, {}, {}>;
|
|
111
|
+
source: import("drizzle-orm/pg-core").PgColumn<{
|
|
112
|
+
name: "source";
|
|
113
|
+
tableName: "customer_signals";
|
|
114
|
+
dataType: "string";
|
|
115
|
+
columnType: "PgEnumColumn";
|
|
116
|
+
data: "admin" | "form" | "phone" | "website" | "abandoned_cart" | "booking";
|
|
117
|
+
driverParam: string;
|
|
118
|
+
notNull: true;
|
|
119
|
+
hasDefault: false;
|
|
120
|
+
isPrimaryKey: false;
|
|
121
|
+
isAutoincrement: false;
|
|
122
|
+
hasRuntimeDefault: false;
|
|
123
|
+
enumValues: ["form", "phone", "admin", "abandoned_cart", "website", "booking"];
|
|
124
|
+
baseColumn: never;
|
|
125
|
+
identity: undefined;
|
|
126
|
+
generated: undefined;
|
|
127
|
+
}, {}, {}>;
|
|
128
|
+
status: import("drizzle-orm/pg-core").PgColumn<{
|
|
129
|
+
name: "status";
|
|
130
|
+
tableName: "customer_signals";
|
|
131
|
+
dataType: "string";
|
|
132
|
+
columnType: "PgEnumColumn";
|
|
133
|
+
data: "lost" | "expired" | "new" | "contacted" | "qualified" | "converted";
|
|
134
|
+
driverParam: string;
|
|
135
|
+
notNull: true;
|
|
136
|
+
hasDefault: true;
|
|
137
|
+
isPrimaryKey: false;
|
|
138
|
+
isAutoincrement: false;
|
|
139
|
+
hasRuntimeDefault: false;
|
|
140
|
+
enumValues: ["new", "contacted", "qualified", "converted", "lost", "expired"];
|
|
141
|
+
baseColumn: never;
|
|
142
|
+
identity: undefined;
|
|
143
|
+
generated: undefined;
|
|
144
|
+
}, {}, {}>;
|
|
145
|
+
priority: import("drizzle-orm/pg-core").PgColumn<{
|
|
146
|
+
name: "priority";
|
|
147
|
+
tableName: "customer_signals";
|
|
148
|
+
dataType: "string";
|
|
149
|
+
columnType: "PgText";
|
|
150
|
+
data: string;
|
|
151
|
+
driverParam: string;
|
|
152
|
+
notNull: true;
|
|
153
|
+
hasDefault: true;
|
|
154
|
+
isPrimaryKey: false;
|
|
155
|
+
isAutoincrement: false;
|
|
156
|
+
hasRuntimeDefault: false;
|
|
157
|
+
enumValues: [string, ...string[]];
|
|
158
|
+
baseColumn: never;
|
|
159
|
+
identity: undefined;
|
|
160
|
+
generated: undefined;
|
|
161
|
+
}, {}, {}>;
|
|
162
|
+
notes: import("drizzle-orm/pg-core").PgColumn<{
|
|
163
|
+
name: "notes";
|
|
164
|
+
tableName: "customer_signals";
|
|
165
|
+
dataType: "string";
|
|
166
|
+
columnType: "PgText";
|
|
167
|
+
data: string;
|
|
168
|
+
driverParam: string;
|
|
169
|
+
notNull: false;
|
|
170
|
+
hasDefault: false;
|
|
171
|
+
isPrimaryKey: false;
|
|
172
|
+
isAutoincrement: false;
|
|
173
|
+
hasRuntimeDefault: false;
|
|
174
|
+
enumValues: [string, ...string[]];
|
|
175
|
+
baseColumn: never;
|
|
176
|
+
identity: undefined;
|
|
177
|
+
generated: undefined;
|
|
178
|
+
}, {}, {}>;
|
|
179
|
+
tags: import("drizzle-orm/pg-core").PgColumn<{
|
|
180
|
+
name: "tags";
|
|
181
|
+
tableName: "customer_signals";
|
|
182
|
+
dataType: "json";
|
|
183
|
+
columnType: "PgJsonb";
|
|
184
|
+
data: string[];
|
|
185
|
+
driverParam: unknown;
|
|
186
|
+
notNull: true;
|
|
187
|
+
hasDefault: true;
|
|
188
|
+
isPrimaryKey: false;
|
|
189
|
+
isAutoincrement: false;
|
|
190
|
+
hasRuntimeDefault: false;
|
|
191
|
+
enumValues: undefined;
|
|
192
|
+
baseColumn: never;
|
|
193
|
+
identity: undefined;
|
|
194
|
+
generated: undefined;
|
|
195
|
+
}, {}, {
|
|
196
|
+
$type: string[];
|
|
197
|
+
}>;
|
|
198
|
+
assignedToUserId: import("drizzle-orm/pg-core").PgColumn<{
|
|
199
|
+
name: "assigned_to_user_id";
|
|
200
|
+
tableName: "customer_signals";
|
|
201
|
+
dataType: "string";
|
|
202
|
+
columnType: "PgText";
|
|
203
|
+
data: string;
|
|
204
|
+
driverParam: string;
|
|
205
|
+
notNull: false;
|
|
206
|
+
hasDefault: false;
|
|
207
|
+
isPrimaryKey: false;
|
|
208
|
+
isAutoincrement: false;
|
|
209
|
+
hasRuntimeDefault: false;
|
|
210
|
+
enumValues: [string, ...string[]];
|
|
211
|
+
baseColumn: never;
|
|
212
|
+
identity: undefined;
|
|
213
|
+
generated: undefined;
|
|
214
|
+
}, {}, {}>;
|
|
215
|
+
followUpAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
216
|
+
name: "follow_up_at";
|
|
217
|
+
tableName: "customer_signals";
|
|
218
|
+
dataType: "date";
|
|
219
|
+
columnType: "PgTimestamp";
|
|
220
|
+
data: Date;
|
|
221
|
+
driverParam: string;
|
|
222
|
+
notNull: false;
|
|
223
|
+
hasDefault: false;
|
|
224
|
+
isPrimaryKey: false;
|
|
225
|
+
isAutoincrement: false;
|
|
226
|
+
hasRuntimeDefault: false;
|
|
227
|
+
enumValues: undefined;
|
|
228
|
+
baseColumn: never;
|
|
229
|
+
identity: undefined;
|
|
230
|
+
generated: undefined;
|
|
231
|
+
}, {}, {}>;
|
|
232
|
+
resolvedBookingId: import("drizzle-orm/pg-core").PgColumn<{
|
|
233
|
+
name: "resolved_booking_id";
|
|
234
|
+
tableName: "customer_signals";
|
|
235
|
+
dataType: "string";
|
|
236
|
+
columnType: "PgText";
|
|
237
|
+
data: string;
|
|
238
|
+
driverParam: string;
|
|
239
|
+
notNull: false;
|
|
240
|
+
hasDefault: false;
|
|
241
|
+
isPrimaryKey: false;
|
|
242
|
+
isAutoincrement: false;
|
|
243
|
+
hasRuntimeDefault: false;
|
|
244
|
+
enumValues: [string, ...string[]];
|
|
245
|
+
baseColumn: never;
|
|
246
|
+
identity: undefined;
|
|
247
|
+
generated: undefined;
|
|
248
|
+
}, {}, {}>;
|
|
249
|
+
sourceSubmissionId: import("drizzle-orm/pg-core").PgColumn<{
|
|
250
|
+
name: "source_submission_id";
|
|
251
|
+
tableName: "customer_signals";
|
|
252
|
+
dataType: "string";
|
|
253
|
+
columnType: "PgText";
|
|
254
|
+
data: string;
|
|
255
|
+
driverParam: string;
|
|
256
|
+
notNull: false;
|
|
257
|
+
hasDefault: false;
|
|
258
|
+
isPrimaryKey: false;
|
|
259
|
+
isAutoincrement: false;
|
|
260
|
+
hasRuntimeDefault: false;
|
|
261
|
+
enumValues: [string, ...string[]];
|
|
262
|
+
baseColumn: never;
|
|
263
|
+
identity: undefined;
|
|
264
|
+
generated: undefined;
|
|
265
|
+
}, {}, {}>;
|
|
266
|
+
metadata: import("drizzle-orm/pg-core").PgColumn<{
|
|
267
|
+
name: "metadata";
|
|
268
|
+
tableName: "customer_signals";
|
|
269
|
+
dataType: "json";
|
|
270
|
+
columnType: "PgJsonb";
|
|
271
|
+
data: Record<string, unknown>;
|
|
272
|
+
driverParam: unknown;
|
|
273
|
+
notNull: false;
|
|
274
|
+
hasDefault: false;
|
|
275
|
+
isPrimaryKey: false;
|
|
276
|
+
isAutoincrement: false;
|
|
277
|
+
hasRuntimeDefault: false;
|
|
278
|
+
enumValues: undefined;
|
|
279
|
+
baseColumn: never;
|
|
280
|
+
identity: undefined;
|
|
281
|
+
generated: undefined;
|
|
282
|
+
}, {}, {
|
|
283
|
+
$type: Record<string, unknown>;
|
|
284
|
+
}>;
|
|
285
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
286
|
+
name: "created_at";
|
|
287
|
+
tableName: "customer_signals";
|
|
288
|
+
dataType: "date";
|
|
289
|
+
columnType: "PgTimestamp";
|
|
290
|
+
data: Date;
|
|
291
|
+
driverParam: string;
|
|
292
|
+
notNull: true;
|
|
293
|
+
hasDefault: true;
|
|
294
|
+
isPrimaryKey: false;
|
|
295
|
+
isAutoincrement: false;
|
|
296
|
+
hasRuntimeDefault: false;
|
|
297
|
+
enumValues: undefined;
|
|
298
|
+
baseColumn: never;
|
|
299
|
+
identity: undefined;
|
|
300
|
+
generated: undefined;
|
|
301
|
+
}, {}, {}>;
|
|
302
|
+
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
303
|
+
name: "updated_at";
|
|
304
|
+
tableName: "customer_signals";
|
|
305
|
+
dataType: "date";
|
|
306
|
+
columnType: "PgTimestamp";
|
|
307
|
+
data: Date;
|
|
308
|
+
driverParam: string;
|
|
309
|
+
notNull: true;
|
|
310
|
+
hasDefault: true;
|
|
311
|
+
isPrimaryKey: false;
|
|
312
|
+
isAutoincrement: false;
|
|
313
|
+
hasRuntimeDefault: false;
|
|
314
|
+
enumValues: undefined;
|
|
315
|
+
baseColumn: never;
|
|
316
|
+
identity: undefined;
|
|
317
|
+
generated: undefined;
|
|
318
|
+
}, {}, {}>;
|
|
319
|
+
};
|
|
320
|
+
dialect: "pg";
|
|
321
|
+
}>;
|
|
322
|
+
export type CustomerSignal = typeof customerSignals.$inferSelect;
|
|
323
|
+
export type NewCustomerSignal = typeof customerSignals.$inferInsert;
|
|
324
|
+
//# sourceMappingURL=schema-signals.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-signals.d.ts","sourceRoot":"","sources":["../src/schema-signals.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAOH,eAAO,MAAM,sBAAsB,sGAMjC,CAAA;AAEF,eAAO,MAAM,wBAAwB,0GAOnC,CAAA;AAEF,eAAO,MAAM,wBAAwB,yGAOnC,CAAA;AAEF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2C3B,CAAA;AAED,MAAM,MAAM,cAAc,GAAG,OAAO,eAAe,CAAC,YAAY,CAAA;AAChE,MAAM,MAAM,iBAAiB,GAAG,OAAO,eAAe,CAAC,YAAY,CAAA"}
|