@voyantjs/crm 0.46.0 → 0.49.0
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/README.md +16 -0
- package/dist/events.d.ts +23 -0
- package/dist/events.d.ts.map +1 -0
- package/dist/events.js +9 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/routes/accounts.d.ts +5 -5
- package/dist/routes/customer-signals.d.ts +12 -12
- package/dist/routes/index.d.ts +25 -25
- package/dist/routes/opportunities.d.ts +4 -4
- package/dist/routes/quotes.d.ts +4 -4
- package/dist/schema-sales.d.ts +2 -2
- package/dist/schema-signals.d.ts +2 -2
- package/dist/service/accounts-people.d.ts +3 -3
- package/dist/service/accounts.d.ts +3 -3
- package/dist/service/customer-signals.d.ts +16 -16
- package/dist/service/index.d.ts +33 -33
- package/dist/service/opportunities.d.ts +4 -4
- package/dist/service/quotes.d.ts +4 -4
- package/dist/validation.d.ts +21 -21
- package/package.json +11 -6
package/README.md
CHANGED
|
@@ -32,12 +32,28 @@ const app = createApp({
|
|
|
32
32
|
- **Notes** — person (`pnot`), organization (`onot`)
|
|
33
33
|
- **Communication log** (`clog`)
|
|
34
34
|
- **Segments** + **segment members** (`seg`, `segm`)
|
|
35
|
+
- **Customer signals** (`csg`) — inquiry, wishlist, notify, request-offer, and referral signals used by admin CRM and public storefront intake
|
|
36
|
+
|
|
37
|
+
## Events
|
|
38
|
+
|
|
39
|
+
`customer.signal.created` is emitted when public storefront intake accepts a
|
|
40
|
+
lead or newsletter subscription. Subscribe to it from app code to send
|
|
41
|
+
operator notifications:
|
|
42
|
+
|
|
43
|
+
```ts
|
|
44
|
+
eventBus.subscribe("customer.signal.created", async ({ data }) => {
|
|
45
|
+
if (data.intake?.surface === "storefront") {
|
|
46
|
+
await notifySalesTeam(data.id)
|
|
47
|
+
}
|
|
48
|
+
})
|
|
49
|
+
```
|
|
35
50
|
|
|
36
51
|
## Exports
|
|
37
52
|
|
|
38
53
|
| Entry | Description |
|
|
39
54
|
| --- | --- |
|
|
40
55
|
| `.` | Module export + public types |
|
|
56
|
+
| `./events` | CRM event names, payload types, and emit helpers |
|
|
41
57
|
| `./schema` | Drizzle tables + linkable definitions |
|
|
42
58
|
| `./validation` | Zod schemas |
|
|
43
59
|
| `./routes` | Hono routes for admin/public surfaces |
|
package/dist/events.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { EventBus, EventSource } from "@voyantjs/core";
|
|
2
|
+
export declare const CUSTOMER_SIGNAL_CREATED_EVENT: "customer.signal.created";
|
|
3
|
+
export type CustomerSignalCreatedIntake = {
|
|
4
|
+
surface: "storefront";
|
|
5
|
+
type: "lead";
|
|
6
|
+
} | {
|
|
7
|
+
surface: "storefront";
|
|
8
|
+
type: "newsletter";
|
|
9
|
+
doubleOptIn: "not_configured" | "requested";
|
|
10
|
+
};
|
|
11
|
+
export interface CustomerSignalCreatedEvent {
|
|
12
|
+
id: string;
|
|
13
|
+
personId: string;
|
|
14
|
+
kind: "wishlist" | "notify" | "inquiry" | "request_offer" | "referral";
|
|
15
|
+
source: "form" | "phone" | "admin" | "abandoned_cart" | "website" | "booking";
|
|
16
|
+
status: "new" | "contacted" | "qualified" | "converted" | "lost" | "expired";
|
|
17
|
+
productId?: string | null;
|
|
18
|
+
optionUnitId?: string | null;
|
|
19
|
+
sourceSubmissionId?: string | null;
|
|
20
|
+
intake?: CustomerSignalCreatedIntake;
|
|
21
|
+
}
|
|
22
|
+
export declare function emitCustomerSignalCreated(eventBus: EventBus | undefined, payload: CustomerSignalCreatedEvent, source?: EventSource): Promise<void>;
|
|
23
|
+
//# sourceMappingURL=events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAE3D,eAAO,MAAM,6BAA6B,EAAG,yBAAkC,CAAA;AAE/E,MAAM,MAAM,2BAA2B,GACnC;IACE,OAAO,EAAE,YAAY,CAAA;IACrB,IAAI,EAAE,MAAM,CAAA;CACb,GACD;IACE,OAAO,EAAE,YAAY,CAAA;IACrB,IAAI,EAAE,YAAY,CAAA;IAClB,WAAW,EAAE,gBAAgB,GAAG,WAAW,CAAA;CAC5C,CAAA;AAEL,MAAM,WAAW,0BAA0B;IACzC,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,UAAU,GAAG,QAAQ,GAAG,SAAS,GAAG,eAAe,GAAG,UAAU,CAAA;IACtE,MAAM,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,gBAAgB,GAAG,SAAS,GAAG,SAAS,CAAA;IAC7E,MAAM,EAAE,KAAK,GAAG,WAAW,GAAG,WAAW,GAAG,WAAW,GAAG,MAAM,GAAG,SAAS,CAAA;IAC5E,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAClC,MAAM,CAAC,EAAE,2BAA2B,CAAA;CACrC;AAED,wBAAsB,yBAAyB,CAC7C,QAAQ,EAAE,QAAQ,GAAG,SAAS,EAC9B,OAAO,EAAE,0BAA0B,EACnC,MAAM,GAAE,WAAuB,GAC9B,OAAO,CAAC,IAAI,CAAC,CAMf"}
|
package/dist/events.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export const CUSTOMER_SIGNAL_CREATED_EVENT = "customer.signal.created";
|
|
2
|
+
export async function emitCustomerSignalCreated(eventBus, payload, source = "service") {
|
|
3
|
+
if (!eventBus)
|
|
4
|
+
return;
|
|
5
|
+
await eventBus.emit(CUSTOMER_SIGNAL_CREATED_EVENT, payload, {
|
|
6
|
+
category: "domain",
|
|
7
|
+
source,
|
|
8
|
+
});
|
|
9
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { LinkableDefinition, Module } from "@voyantjs/core";
|
|
2
2
|
import type { HonoModule } from "@voyantjs/hono/module";
|
|
3
|
+
import { CUSTOMER_SIGNAL_CREATED_EVENT, emitCustomerSignalCreated } from "./events.js";
|
|
3
4
|
import { type CrmRouteRuntimeOptions } from "./route-runtime.js";
|
|
4
5
|
import { crmService } from "./service/index.js";
|
|
5
6
|
export type { CrmRoutes } from "./routes/index.js";
|
|
@@ -18,6 +19,7 @@ export interface CrmHonoModuleOptions extends CrmRouteRuntimeOptions {
|
|
|
18
19
|
export declare function createCrmHonoModule(options?: CrmHonoModuleOptions): HonoModule;
|
|
19
20
|
export declare const crmHonoModule: HonoModule;
|
|
20
21
|
export { crmBookingExtension } from "./booking-extension.js";
|
|
22
|
+
export type { CustomerSignalCreatedEvent, CustomerSignalCreatedIntake } from "./events.js";
|
|
21
23
|
export type { CrmRouteRuntime, CrmRouteRuntimeOptions, ResolveCrmKmsProvider, } from "./route-runtime.js";
|
|
22
24
|
export { buildCrmRouteRuntime, CRM_ROUTE_RUNTIME_CONTAINER_KEY, } from "./route-runtime.js";
|
|
23
25
|
export type { Activity, ActivityLink, ActivityParticipant, CommunicationLogEntry, CustomerSignal, CustomFieldDefinition, CustomFieldValue, NewActivity, NewActivityLink, NewActivityParticipant, NewCommunicationLogEntry, NewCustomerSignal, NewCustomFieldDefinition, NewCustomFieldValue, NewOpportunity, NewOpportunityParticipant, NewOpportunityProduct, NewOrganization, NewOrganizationNote, NewPerson, NewPersonDocument, NewPersonNote, NewPersonRelationship, NewPipeline, NewQuote, NewQuoteLine, NewSegment, NewSegmentMember, NewStage, Opportunity, OpportunityParticipant, OpportunityProduct, Organization, OrganizationNote, Person, PersonDocument, PersonNote, PersonRelationship, Pipeline, Quote, QuoteLine, Segment, SegmentMember, Stage, } from "./schema.js";
|
|
@@ -29,5 +31,5 @@ export { personDocumentNumberPlaintextSchema, personDocumentsService, personPiiB
|
|
|
29
31
|
export type { CreatePersonRelationshipInput, PersonRelationshipKind, PersonRelationshipListQuery, UpdatePersonRelationshipInput, } from "./service/person-relationships.js";
|
|
30
32
|
export { personRelationshipsService } from "./service/person-relationships.js";
|
|
31
33
|
export { activityListQuerySchema, communicationChannelSchema, communicationDirectionSchema, communicationListQuerySchema, customerSignalKindSchema, customerSignalListQuerySchema, customerSignalPrioritySchema, customerSignalSourceSchema, customerSignalStatusSchema, customFieldDefinitionListQuerySchema, customFieldValueListQuerySchema, insertActivityLinkSchema, insertActivityParticipantSchema, insertActivitySchema, insertCommunicationLogSchema, insertCustomerSignalSchema, insertCustomFieldDefinitionSchema, insertOpportunityParticipantSchema, insertOpportunityProductSchema, insertOpportunitySchema, insertOrganizationNoteSchema, insertOrganizationSchema, insertPersonDocumentFromPlaintextSchema, insertPersonDocumentSchema, insertPersonNoteSchema, insertPersonRelationshipSchema, insertPersonSchema, insertPipelineSchema, insertQuoteLineSchema, insertQuoteSchema, insertSegmentSchema, insertStageSchema, opportunityListQuerySchema, organizationListQuerySchema, personDocumentListQuerySchema, personDocumentTypeSchema, personListQuerySchema, personRelationshipKindSchema, personRelationshipListQuerySchema, pipelineListQuerySchema, quoteListQuerySchema, relationTypeSchema, resolveCustomerSignalSchema, stageListQuerySchema, updateActivitySchema, updateCustomerSignalSchema, updateCustomFieldDefinitionSchema, updateOpportunityProductSchema, updateOpportunitySchema, updateOrganizationSchema, updatePersonDocumentFromPlaintextSchema, updatePersonDocumentSchema, updatePersonProfilePiiSchema, updatePersonRelationshipSchema, updatePersonSchema, updatePipelineSchema, updateQuoteLineSchema, updateQuoteSchema, updateStageSchema, upsertCustomFieldValueSchema, } from "./validation.js";
|
|
32
|
-
export { crmService };
|
|
34
|
+
export { CUSTOMER_SIGNAL_CREATED_EVENT, crmService, emitCustomerSignalCreated };
|
|
33
35
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"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"}
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CUSTOMER_SIGNAL_CREATED_EVENT, emitCustomerSignalCreated } from "./events.js";
|
|
1
2
|
import { buildCrmRouteRuntime, CRM_ROUTE_RUNTIME_CONTAINER_KEY, } from "./route-runtime.js";
|
|
2
3
|
import { crmRoutes } from "./routes/index.js";
|
|
3
4
|
import { crmService } from "./service/index.js";
|
|
@@ -47,4 +48,4 @@ export { customerSignalsService } from "./service/customer-signals.js";
|
|
|
47
48
|
export { personDocumentNumberPlaintextSchema, personDocumentsService, personPiiBlobPlaintextSchema, } from "./service/person-documents.js";
|
|
48
49
|
export { personRelationshipsService } from "./service/person-relationships.js";
|
|
49
50
|
export { activityListQuerySchema, communicationChannelSchema, communicationDirectionSchema, communicationListQuerySchema, customerSignalKindSchema, customerSignalListQuerySchema, customerSignalPrioritySchema, customerSignalSourceSchema, customerSignalStatusSchema, customFieldDefinitionListQuerySchema, customFieldValueListQuerySchema, insertActivityLinkSchema, insertActivityParticipantSchema, insertActivitySchema, insertCommunicationLogSchema, insertCustomerSignalSchema, insertCustomFieldDefinitionSchema, insertOpportunityParticipantSchema, insertOpportunityProductSchema, insertOpportunitySchema, insertOrganizationNoteSchema, insertOrganizationSchema, insertPersonDocumentFromPlaintextSchema, insertPersonDocumentSchema, insertPersonNoteSchema, insertPersonRelationshipSchema, insertPersonSchema, insertPipelineSchema, insertQuoteLineSchema, insertQuoteSchema, insertSegmentSchema, insertStageSchema, opportunityListQuerySchema, organizationListQuerySchema, personDocumentListQuerySchema, personDocumentTypeSchema, personListQuerySchema, personRelationshipKindSchema, personRelationshipListQuerySchema, pipelineListQuerySchema, quoteListQuerySchema, relationTypeSchema, resolveCustomerSignalSchema, stageListQuerySchema, updateActivitySchema, updateCustomerSignalSchema, updateCustomFieldDefinitionSchema, updateOpportunityProductSchema, updateOpportunitySchema, updateOrganizationSchema, updatePersonDocumentFromPlaintextSchema, updatePersonDocumentSchema, updatePersonProfilePiiSchema, updatePersonRelationshipSchema, updatePersonSchema, updatePipelineSchema, updateQuoteLineSchema, updateQuoteSchema, updateStageSchema, upsertCustomFieldValueSchema, } from "./validation.js";
|
|
50
|
-
export { crmService };
|
|
51
|
+
export { CUSTOMER_SIGNAL_CREATED_EVENT, crmService, emitCustomerSignalCreated };
|
|
@@ -201,7 +201,7 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
201
201
|
id: string;
|
|
202
202
|
entityType: string;
|
|
203
203
|
entityId: string;
|
|
204
|
-
kind: "email" | "other" | "phone" | "
|
|
204
|
+
kind: "email" | "other" | "phone" | "website" | "mobile" | "whatsapp" | "sms" | "fax" | "social";
|
|
205
205
|
label: string | null;
|
|
206
206
|
value: string;
|
|
207
207
|
normalizedValue: string | null;
|
|
@@ -236,7 +236,7 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
236
236
|
createdAt: string;
|
|
237
237
|
updatedAt: string;
|
|
238
238
|
notes: string | null;
|
|
239
|
-
kind: "email" | "other" | "phone" | "
|
|
239
|
+
kind: "email" | "other" | "phone" | "website" | "mobile" | "whatsapp" | "sms" | "fax" | "social";
|
|
240
240
|
entityType: string;
|
|
241
241
|
entityId: string;
|
|
242
242
|
label: string | null;
|
|
@@ -693,7 +693,7 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
693
693
|
id: string;
|
|
694
694
|
entityType: string;
|
|
695
695
|
entityId: string;
|
|
696
|
-
kind: "email" | "other" | "phone" | "
|
|
696
|
+
kind: "email" | "other" | "phone" | "website" | "mobile" | "whatsapp" | "sms" | "fax" | "social";
|
|
697
697
|
label: string | null;
|
|
698
698
|
value: string;
|
|
699
699
|
normalizedValue: string | null;
|
|
@@ -728,7 +728,7 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
728
728
|
createdAt: string;
|
|
729
729
|
updatedAt: string;
|
|
730
730
|
notes: string | null;
|
|
731
|
-
kind: "email" | "other" | "phone" | "
|
|
731
|
+
kind: "email" | "other" | "phone" | "website" | "mobile" | "whatsapp" | "sms" | "fax" | "social";
|
|
732
732
|
entityType: string;
|
|
733
733
|
entityId: string;
|
|
734
734
|
label: string | null;
|
|
@@ -1233,7 +1233,7 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1233
1233
|
id: string;
|
|
1234
1234
|
entityType: string;
|
|
1235
1235
|
entityId: string;
|
|
1236
|
-
kind: "email" | "other" | "phone" | "
|
|
1236
|
+
kind: "email" | "other" | "phone" | "website" | "mobile" | "whatsapp" | "sms" | "fax" | "social";
|
|
1237
1237
|
label: string | null;
|
|
1238
1238
|
value: string;
|
|
1239
1239
|
normalizedValue: string | null;
|
|
@@ -16,8 +16,8 @@ export declare const customerSignalRoutes: import("hono/hono-base").HonoBase<Env
|
|
|
16
16
|
productId: string | null;
|
|
17
17
|
optionUnitId: string | null;
|
|
18
18
|
kind: "wishlist" | "notify" | "inquiry" | "request_offer" | "referral";
|
|
19
|
-
source: "admin" | "form" | "phone" | "
|
|
20
|
-
status: "
|
|
19
|
+
source: "admin" | "form" | "phone" | "abandoned_cart" | "website" | "booking";
|
|
20
|
+
status: "new" | "contacted" | "qualified" | "converted" | "lost" | "expired";
|
|
21
21
|
priority: string;
|
|
22
22
|
notes: string | null;
|
|
23
23
|
tags: string[];
|
|
@@ -52,14 +52,14 @@ export declare const customerSignalRoutes: import("hono/hono-base").HonoBase<Env
|
|
|
52
52
|
input: {};
|
|
53
53
|
output: {
|
|
54
54
|
data: {
|
|
55
|
-
source: "admin" | "form" | "phone" | "
|
|
55
|
+
source: "admin" | "form" | "phone" | "abandoned_cart" | "website" | "booking";
|
|
56
56
|
metadata: {
|
|
57
57
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
58
58
|
} | null;
|
|
59
59
|
id: string;
|
|
60
60
|
createdAt: string;
|
|
61
61
|
updatedAt: string;
|
|
62
|
-
status: "
|
|
62
|
+
status: "new" | "contacted" | "qualified" | "converted" | "lost" | "expired";
|
|
63
63
|
notes: string | null;
|
|
64
64
|
kind: "wishlist" | "notify" | "inquiry" | "request_offer" | "referral";
|
|
65
65
|
tags: string[];
|
|
@@ -103,8 +103,8 @@ export declare const customerSignalRoutes: import("hono/hono-base").HonoBase<Env
|
|
|
103
103
|
productId: string | null;
|
|
104
104
|
optionUnitId: string | null;
|
|
105
105
|
kind: "wishlist" | "notify" | "inquiry" | "request_offer" | "referral";
|
|
106
|
-
source: "admin" | "form" | "phone" | "
|
|
107
|
-
status: "
|
|
106
|
+
source: "admin" | "form" | "phone" | "abandoned_cart" | "website" | "booking";
|
|
107
|
+
status: "new" | "contacted" | "qualified" | "converted" | "lost" | "expired";
|
|
108
108
|
priority: string;
|
|
109
109
|
notes: string | null;
|
|
110
110
|
tags: string[];
|
|
@@ -149,8 +149,8 @@ export declare const customerSignalRoutes: import("hono/hono-base").HonoBase<Env
|
|
|
149
149
|
productId: string | null;
|
|
150
150
|
optionUnitId: string | null;
|
|
151
151
|
kind: "wishlist" | "notify" | "inquiry" | "request_offer" | "referral";
|
|
152
|
-
source: "admin" | "form" | "phone" | "
|
|
153
|
-
status: "
|
|
152
|
+
source: "admin" | "form" | "phone" | "abandoned_cart" | "website" | "booking";
|
|
153
|
+
status: "new" | "contacted" | "qualified" | "converted" | "lost" | "expired";
|
|
154
154
|
priority: string;
|
|
155
155
|
notes: string | null;
|
|
156
156
|
tags: string[];
|
|
@@ -221,8 +221,8 @@ export declare const customerSignalRoutes: import("hono/hono-base").HonoBase<Env
|
|
|
221
221
|
productId: string | null;
|
|
222
222
|
optionUnitId: string | null;
|
|
223
223
|
kind: "wishlist" | "notify" | "inquiry" | "request_offer" | "referral";
|
|
224
|
-
source: "admin" | "form" | "phone" | "
|
|
225
|
-
status: "
|
|
224
|
+
source: "admin" | "form" | "phone" | "abandoned_cart" | "website" | "booking";
|
|
225
|
+
status: "new" | "contacted" | "qualified" | "converted" | "lost" | "expired";
|
|
226
226
|
priority: string;
|
|
227
227
|
notes: string | null;
|
|
228
228
|
tags: string[];
|
|
@@ -256,8 +256,8 @@ export declare const customerSignalRoutes: import("hono/hono-base").HonoBase<Env
|
|
|
256
256
|
productId: string | null;
|
|
257
257
|
optionUnitId: string | null;
|
|
258
258
|
kind: "wishlist" | "notify" | "inquiry" | "request_offer" | "referral";
|
|
259
|
-
source: "admin" | "form" | "phone" | "
|
|
260
|
-
status: "
|
|
259
|
+
source: "admin" | "form" | "phone" | "abandoned_cart" | "website" | "booking";
|
|
260
|
+
status: "new" | "contacted" | "qualified" | "converted" | "lost" | "expired";
|
|
261
261
|
priority: string;
|
|
262
262
|
notes: string | null;
|
|
263
263
|
tags: string[];
|
package/dist/routes/index.d.ts
CHANGED
|
@@ -201,7 +201,7 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
201
201
|
id: string;
|
|
202
202
|
entityType: string;
|
|
203
203
|
entityId: string;
|
|
204
|
-
kind: "email" | "other" | "phone" | "
|
|
204
|
+
kind: "email" | "other" | "phone" | "website" | "mobile" | "whatsapp" | "sms" | "fax" | "social";
|
|
205
205
|
label: string | null;
|
|
206
206
|
value: string;
|
|
207
207
|
normalizedValue: string | null;
|
|
@@ -236,7 +236,7 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
236
236
|
createdAt: string;
|
|
237
237
|
updatedAt: string;
|
|
238
238
|
notes: string | null;
|
|
239
|
-
kind: "email" | "other" | "phone" | "
|
|
239
|
+
kind: "email" | "other" | "phone" | "website" | "mobile" | "whatsapp" | "sms" | "fax" | "social";
|
|
240
240
|
entityType: string;
|
|
241
241
|
entityId: string;
|
|
242
242
|
label: string | null;
|
|
@@ -693,7 +693,7 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
693
693
|
id: string;
|
|
694
694
|
entityType: string;
|
|
695
695
|
entityId: string;
|
|
696
|
-
kind: "email" | "other" | "phone" | "
|
|
696
|
+
kind: "email" | "other" | "phone" | "website" | "mobile" | "whatsapp" | "sms" | "fax" | "social";
|
|
697
697
|
label: string | null;
|
|
698
698
|
value: string;
|
|
699
699
|
normalizedValue: string | null;
|
|
@@ -728,7 +728,7 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
728
728
|
createdAt: string;
|
|
729
729
|
updatedAt: string;
|
|
730
730
|
notes: string | null;
|
|
731
|
-
kind: "email" | "other" | "phone" | "
|
|
731
|
+
kind: "email" | "other" | "phone" | "website" | "mobile" | "whatsapp" | "sms" | "fax" | "social";
|
|
732
732
|
entityType: string;
|
|
733
733
|
entityId: string;
|
|
734
734
|
label: string | null;
|
|
@@ -1233,7 +1233,7 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
1233
1233
|
id: string;
|
|
1234
1234
|
entityType: string;
|
|
1235
1235
|
entityId: string;
|
|
1236
|
-
kind: "email" | "other" | "phone" | "
|
|
1236
|
+
kind: "email" | "other" | "phone" | "website" | "mobile" | "whatsapp" | "sms" | "fax" | "social";
|
|
1237
1237
|
label: string | null;
|
|
1238
1238
|
value: string;
|
|
1239
1239
|
normalizedValue: string | null;
|
|
@@ -1986,8 +1986,8 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
1986
1986
|
productId: string | null;
|
|
1987
1987
|
optionUnitId: string | null;
|
|
1988
1988
|
kind: "wishlist" | "notify" | "inquiry" | "request_offer" | "referral";
|
|
1989
|
-
source: "admin" | "form" | "phone" | "
|
|
1990
|
-
status: "
|
|
1989
|
+
source: "admin" | "form" | "phone" | "abandoned_cart" | "website" | "booking";
|
|
1990
|
+
status: "new" | "contacted" | "qualified" | "converted" | "lost" | "expired";
|
|
1991
1991
|
priority: string;
|
|
1992
1992
|
notes: string | null;
|
|
1993
1993
|
tags: string[];
|
|
@@ -2022,14 +2022,14 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
2022
2022
|
input: {};
|
|
2023
2023
|
output: {
|
|
2024
2024
|
data: {
|
|
2025
|
-
source: "admin" | "form" | "phone" | "
|
|
2025
|
+
source: "admin" | "form" | "phone" | "abandoned_cart" | "website" | "booking";
|
|
2026
2026
|
metadata: {
|
|
2027
2027
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
2028
2028
|
} | null;
|
|
2029
2029
|
id: string;
|
|
2030
2030
|
createdAt: string;
|
|
2031
2031
|
updatedAt: string;
|
|
2032
|
-
status: "
|
|
2032
|
+
status: "new" | "contacted" | "qualified" | "converted" | "lost" | "expired";
|
|
2033
2033
|
notes: string | null;
|
|
2034
2034
|
kind: "wishlist" | "notify" | "inquiry" | "request_offer" | "referral";
|
|
2035
2035
|
tags: string[];
|
|
@@ -2073,8 +2073,8 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
2073
2073
|
productId: string | null;
|
|
2074
2074
|
optionUnitId: string | null;
|
|
2075
2075
|
kind: "wishlist" | "notify" | "inquiry" | "request_offer" | "referral";
|
|
2076
|
-
source: "admin" | "form" | "phone" | "
|
|
2077
|
-
status: "
|
|
2076
|
+
source: "admin" | "form" | "phone" | "abandoned_cart" | "website" | "booking";
|
|
2077
|
+
status: "new" | "contacted" | "qualified" | "converted" | "lost" | "expired";
|
|
2078
2078
|
priority: string;
|
|
2079
2079
|
notes: string | null;
|
|
2080
2080
|
tags: string[];
|
|
@@ -2119,8 +2119,8 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
2119
2119
|
productId: string | null;
|
|
2120
2120
|
optionUnitId: string | null;
|
|
2121
2121
|
kind: "wishlist" | "notify" | "inquiry" | "request_offer" | "referral";
|
|
2122
|
-
source: "admin" | "form" | "phone" | "
|
|
2123
|
-
status: "
|
|
2122
|
+
source: "admin" | "form" | "phone" | "abandoned_cart" | "website" | "booking";
|
|
2123
|
+
status: "new" | "contacted" | "qualified" | "converted" | "lost" | "expired";
|
|
2124
2124
|
priority: string;
|
|
2125
2125
|
notes: string | null;
|
|
2126
2126
|
tags: string[];
|
|
@@ -2191,8 +2191,8 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
2191
2191
|
productId: string | null;
|
|
2192
2192
|
optionUnitId: string | null;
|
|
2193
2193
|
kind: "wishlist" | "notify" | "inquiry" | "request_offer" | "referral";
|
|
2194
|
-
source: "admin" | "form" | "phone" | "
|
|
2195
|
-
status: "
|
|
2194
|
+
source: "admin" | "form" | "phone" | "abandoned_cart" | "website" | "booking";
|
|
2195
|
+
status: "new" | "contacted" | "qualified" | "converted" | "lost" | "expired";
|
|
2196
2196
|
priority: string;
|
|
2197
2197
|
notes: string | null;
|
|
2198
2198
|
tags: string[];
|
|
@@ -2226,8 +2226,8 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
2226
2226
|
productId: string | null;
|
|
2227
2227
|
optionUnitId: string | null;
|
|
2228
2228
|
kind: "wishlist" | "notify" | "inquiry" | "request_offer" | "referral";
|
|
2229
|
-
source: "admin" | "form" | "phone" | "
|
|
2230
|
-
status: "
|
|
2229
|
+
source: "admin" | "form" | "phone" | "abandoned_cart" | "website" | "booking";
|
|
2230
|
+
status: "new" | "contacted" | "qualified" | "converted" | "lost" | "expired";
|
|
2231
2231
|
priority: string;
|
|
2232
2232
|
notes: string | null;
|
|
2233
2233
|
tags: string[];
|
|
@@ -2541,7 +2541,7 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
2541
2541
|
pipelineId: string;
|
|
2542
2542
|
stageId: string;
|
|
2543
2543
|
ownerId: string | null;
|
|
2544
|
-
status: "
|
|
2544
|
+
status: "lost" | "archived" | "open" | "won";
|
|
2545
2545
|
valueAmountCents: number | null;
|
|
2546
2546
|
valueCurrency: string | null;
|
|
2547
2547
|
expectedCloseDate: string | null;
|
|
@@ -2573,7 +2573,7 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
2573
2573
|
createdAt: string;
|
|
2574
2574
|
updatedAt: string;
|
|
2575
2575
|
organizationId: string | null;
|
|
2576
|
-
status: "
|
|
2576
|
+
status: "lost" | "archived" | "open" | "won";
|
|
2577
2577
|
title: string;
|
|
2578
2578
|
ownerId: string | null;
|
|
2579
2579
|
sourceRef: string | null;
|
|
@@ -2621,7 +2621,7 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
2621
2621
|
pipelineId: string;
|
|
2622
2622
|
stageId: string;
|
|
2623
2623
|
ownerId: string | null;
|
|
2624
|
-
status: "
|
|
2624
|
+
status: "lost" | "archived" | "open" | "won";
|
|
2625
2625
|
valueAmountCents: number | null;
|
|
2626
2626
|
valueCurrency: string | null;
|
|
2627
2627
|
expectedCloseDate: string | null;
|
|
@@ -2667,7 +2667,7 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
2667
2667
|
pipelineId: string;
|
|
2668
2668
|
stageId: string;
|
|
2669
2669
|
ownerId: string | null;
|
|
2670
|
-
status: "
|
|
2670
|
+
status: "lost" | "archived" | "open" | "won";
|
|
2671
2671
|
valueAmountCents: number | null;
|
|
2672
2672
|
valueCurrency: string | null;
|
|
2673
2673
|
expectedCloseDate: string | null;
|
|
@@ -2913,7 +2913,7 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
2913
2913
|
data: {
|
|
2914
2914
|
id: string;
|
|
2915
2915
|
opportunityId: string;
|
|
2916
|
-
status: "
|
|
2916
|
+
status: "expired" | "archived" | "draft" | "sent" | "accepted" | "rejected";
|
|
2917
2917
|
validUntil: string | null;
|
|
2918
2918
|
currency: string;
|
|
2919
2919
|
subtotalAmountCents: number;
|
|
@@ -2941,7 +2941,7 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
2941
2941
|
id: string;
|
|
2942
2942
|
createdAt: string;
|
|
2943
2943
|
updatedAt: string;
|
|
2944
|
-
status: "
|
|
2944
|
+
status: "expired" | "archived" | "draft" | "sent" | "accepted" | "rejected";
|
|
2945
2945
|
currency: string;
|
|
2946
2946
|
notes: string | null;
|
|
2947
2947
|
opportunityId: string;
|
|
@@ -2979,7 +2979,7 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
2979
2979
|
data: {
|
|
2980
2980
|
id: string;
|
|
2981
2981
|
opportunityId: string;
|
|
2982
|
-
status: "
|
|
2982
|
+
status: "expired" | "archived" | "draft" | "sent" | "accepted" | "rejected";
|
|
2983
2983
|
validUntil: string | null;
|
|
2984
2984
|
currency: string;
|
|
2985
2985
|
subtotalAmountCents: number;
|
|
@@ -3018,7 +3018,7 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
3018
3018
|
data: {
|
|
3019
3019
|
id: string;
|
|
3020
3020
|
opportunityId: string;
|
|
3021
|
-
status: "
|
|
3021
|
+
status: "expired" | "archived" | "draft" | "sent" | "accepted" | "rejected";
|
|
3022
3022
|
validUntil: string | null;
|
|
3023
3023
|
currency: string;
|
|
3024
3024
|
subtotalAmountCents: number;
|
|
@@ -18,7 +18,7 @@ export declare const opportunityRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
18
18
|
pipelineId: string;
|
|
19
19
|
stageId: string;
|
|
20
20
|
ownerId: string | null;
|
|
21
|
-
status: "
|
|
21
|
+
status: "lost" | "archived" | "open" | "won";
|
|
22
22
|
valueAmountCents: number | null;
|
|
23
23
|
valueCurrency: string | null;
|
|
24
24
|
expectedCloseDate: string | null;
|
|
@@ -50,7 +50,7 @@ export declare const opportunityRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
50
50
|
createdAt: string;
|
|
51
51
|
updatedAt: string;
|
|
52
52
|
organizationId: string | null;
|
|
53
|
-
status: "
|
|
53
|
+
status: "lost" | "archived" | "open" | "won";
|
|
54
54
|
title: string;
|
|
55
55
|
ownerId: string | null;
|
|
56
56
|
sourceRef: string | null;
|
|
@@ -98,7 +98,7 @@ export declare const opportunityRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
98
98
|
pipelineId: string;
|
|
99
99
|
stageId: string;
|
|
100
100
|
ownerId: string | null;
|
|
101
|
-
status: "
|
|
101
|
+
status: "lost" | "archived" | "open" | "won";
|
|
102
102
|
valueAmountCents: number | null;
|
|
103
103
|
valueCurrency: string | null;
|
|
104
104
|
expectedCloseDate: string | null;
|
|
@@ -144,7 +144,7 @@ export declare const opportunityRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
144
144
|
pipelineId: string;
|
|
145
145
|
stageId: string;
|
|
146
146
|
ownerId: string | null;
|
|
147
|
-
status: "
|
|
147
|
+
status: "lost" | "archived" | "open" | "won";
|
|
148
148
|
valueAmountCents: number | null;
|
|
149
149
|
valueCurrency: string | null;
|
|
150
150
|
expectedCloseDate: string | null;
|
package/dist/routes/quotes.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export declare const quoteRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
13
13
|
data: {
|
|
14
14
|
id: string;
|
|
15
15
|
opportunityId: string;
|
|
16
|
-
status: "
|
|
16
|
+
status: "expired" | "archived" | "draft" | "sent" | "accepted" | "rejected";
|
|
17
17
|
validUntil: string | null;
|
|
18
18
|
currency: string;
|
|
19
19
|
subtotalAmountCents: number;
|
|
@@ -41,7 +41,7 @@ export declare const quoteRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
41
41
|
id: string;
|
|
42
42
|
createdAt: string;
|
|
43
43
|
updatedAt: string;
|
|
44
|
-
status: "
|
|
44
|
+
status: "expired" | "archived" | "draft" | "sent" | "accepted" | "rejected";
|
|
45
45
|
currency: string;
|
|
46
46
|
notes: string | null;
|
|
47
47
|
opportunityId: string;
|
|
@@ -79,7 +79,7 @@ export declare const quoteRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
79
79
|
data: {
|
|
80
80
|
id: string;
|
|
81
81
|
opportunityId: string;
|
|
82
|
-
status: "
|
|
82
|
+
status: "expired" | "archived" | "draft" | "sent" | "accepted" | "rejected";
|
|
83
83
|
validUntil: string | null;
|
|
84
84
|
currency: string;
|
|
85
85
|
subtotalAmountCents: number;
|
|
@@ -118,7 +118,7 @@ export declare const quoteRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
118
118
|
data: {
|
|
119
119
|
id: string;
|
|
120
120
|
opportunityId: string;
|
|
121
|
-
status: "
|
|
121
|
+
status: "expired" | "archived" | "draft" | "sent" | "accepted" | "rejected";
|
|
122
122
|
validUntil: string | null;
|
|
123
123
|
currency: string;
|
|
124
124
|
subtotalAmountCents: number;
|
package/dist/schema-sales.d.ts
CHANGED
|
@@ -429,7 +429,7 @@ export declare const opportunities: import("drizzle-orm/pg-core").PgTableWithCol
|
|
|
429
429
|
tableName: "opportunities";
|
|
430
430
|
dataType: "string";
|
|
431
431
|
columnType: "PgEnumColumn";
|
|
432
|
-
data: "
|
|
432
|
+
data: "lost" | "archived" | "open" | "won";
|
|
433
433
|
driverParam: string;
|
|
434
434
|
notNull: true;
|
|
435
435
|
hasDefault: true;
|
|
@@ -1013,7 +1013,7 @@ export declare const quotes: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
1013
1013
|
tableName: "quotes";
|
|
1014
1014
|
dataType: "string";
|
|
1015
1015
|
columnType: "PgEnumColumn";
|
|
1016
|
-
data: "
|
|
1016
|
+
data: "expired" | "archived" | "draft" | "sent" | "accepted" | "rejected";
|
|
1017
1017
|
driverParam: string;
|
|
1018
1018
|
notNull: true;
|
|
1019
1019
|
hasDefault: true;
|
package/dist/schema-signals.d.ts
CHANGED
|
@@ -113,7 +113,7 @@ export declare const customerSignals: import("drizzle-orm/pg-core").PgTableWithC
|
|
|
113
113
|
tableName: "customer_signals";
|
|
114
114
|
dataType: "string";
|
|
115
115
|
columnType: "PgEnumColumn";
|
|
116
|
-
data: "admin" | "form" | "phone" | "
|
|
116
|
+
data: "admin" | "form" | "phone" | "abandoned_cart" | "website" | "booking";
|
|
117
117
|
driverParam: string;
|
|
118
118
|
notNull: true;
|
|
119
119
|
hasDefault: false;
|
|
@@ -130,7 +130,7 @@ export declare const customerSignals: import("drizzle-orm/pg-core").PgTableWithC
|
|
|
130
130
|
tableName: "customer_signals";
|
|
131
131
|
dataType: "string";
|
|
132
132
|
columnType: "PgEnumColumn";
|
|
133
|
-
data: "
|
|
133
|
+
data: "new" | "contacted" | "qualified" | "converted" | "lost" | "expired";
|
|
134
134
|
driverParam: string;
|
|
135
135
|
notNull: true;
|
|
136
136
|
hasDefault: true;
|
|
@@ -150,7 +150,7 @@ export declare const peopleAccountsService: {
|
|
|
150
150
|
id: string;
|
|
151
151
|
entityType: string;
|
|
152
152
|
entityId: string;
|
|
153
|
-
kind: "email" | "other" | "phone" | "
|
|
153
|
+
kind: "email" | "other" | "phone" | "website" | "mobile" | "whatsapp" | "sms" | "fax" | "social";
|
|
154
154
|
label: string | null;
|
|
155
155
|
value: string;
|
|
156
156
|
normalizedValue: string | null;
|
|
@@ -167,7 +167,7 @@ export declare const peopleAccountsService: {
|
|
|
167
167
|
createdAt: Date;
|
|
168
168
|
updatedAt: Date;
|
|
169
169
|
notes: string | null;
|
|
170
|
-
kind: "email" | "other" | "phone" | "
|
|
170
|
+
kind: "email" | "other" | "phone" | "website" | "mobile" | "whatsapp" | "sms" | "fax" | "social";
|
|
171
171
|
entityType: string;
|
|
172
172
|
entityId: string;
|
|
173
173
|
label: string | null;
|
|
@@ -178,7 +178,7 @@ export declare const peopleAccountsService: {
|
|
|
178
178
|
id: string;
|
|
179
179
|
entityType: string;
|
|
180
180
|
entityId: string;
|
|
181
|
-
kind: "email" | "other" | "phone" | "
|
|
181
|
+
kind: "email" | "other" | "phone" | "website" | "mobile" | "whatsapp" | "sms" | "fax" | "social";
|
|
182
182
|
label: string | null;
|
|
183
183
|
value: string;
|
|
184
184
|
normalizedValue: string | null;
|
|
@@ -147,7 +147,7 @@ export declare const accountsService: {
|
|
|
147
147
|
id: string;
|
|
148
148
|
entityType: string;
|
|
149
149
|
entityId: string;
|
|
150
|
-
kind: "email" | "other" | "phone" | "
|
|
150
|
+
kind: "email" | "other" | "phone" | "website" | "mobile" | "whatsapp" | "sms" | "fax" | "social";
|
|
151
151
|
label: string | null;
|
|
152
152
|
value: string;
|
|
153
153
|
normalizedValue: string | null;
|
|
@@ -164,7 +164,7 @@ export declare const accountsService: {
|
|
|
164
164
|
createdAt: Date;
|
|
165
165
|
updatedAt: Date;
|
|
166
166
|
notes: string | null;
|
|
167
|
-
kind: "email" | "other" | "phone" | "
|
|
167
|
+
kind: "email" | "other" | "phone" | "website" | "mobile" | "whatsapp" | "sms" | "fax" | "social";
|
|
168
168
|
entityType: string;
|
|
169
169
|
entityId: string;
|
|
170
170
|
label: string | null;
|
|
@@ -175,7 +175,7 @@ export declare const accountsService: {
|
|
|
175
175
|
id: string;
|
|
176
176
|
entityType: string;
|
|
177
177
|
entityId: string;
|
|
178
|
-
kind: "email" | "other" | "phone" | "
|
|
178
|
+
kind: "email" | "other" | "phone" | "website" | "mobile" | "whatsapp" | "sms" | "fax" | "social";
|
|
179
179
|
label: string | null;
|
|
180
180
|
value: string;
|
|
181
181
|
normalizedValue: string | null;
|