@voyantjs/crm 0.4.5 → 0.6.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/dist/booking-extension.d.ts +2 -2
- package/dist/booking-extension.d.ts.map +1 -1
- package/dist/booking-extension.js +2 -1
- package/dist/routes/accounts.d.ts +42 -64
- package/dist/routes/accounts.d.ts.map +1 -1
- package/dist/routes/accounts.js +22 -25
- package/dist/routes/activities.d.ts +6 -6
- package/dist/routes/activities.d.ts.map +1 -1
- package/dist/routes/activities.js +6 -5
- package/dist/routes/custom-fields.d.ts +6 -6
- package/dist/routes/custom-fields.d.ts.map +1 -1
- package/dist/routes/custom-fields.js +6 -5
- package/dist/routes/index.d.ts +73 -95
- package/dist/routes/index.d.ts.map +1 -1
- package/dist/routes/opportunities.d.ts +10 -10
- package/dist/routes/opportunities.d.ts.map +1 -1
- package/dist/routes/opportunities.js +7 -6
- package/dist/routes/pipelines.d.ts +2 -2
- package/dist/routes/pipelines.d.ts.map +1 -1
- package/dist/routes/pipelines.js +7 -6
- package/dist/routes/quotes.d.ts +7 -7
- package/dist/routes/quotes.d.ts.map +1 -1
- package/dist/routes/quotes.js +6 -5
- package/dist/schema-accounts.d.ts +1 -1
- package/dist/schema-activities.d.ts +1 -1
- package/dist/service/accounts-organizations.d.ts +4 -4
- package/dist/service/accounts-people.d.ts +21 -21
- package/dist/service/accounts.d.ts +25 -25
- package/dist/service/activities.d.ts +6 -6
- package/dist/service/custom-fields.d.ts +6 -6
- package/dist/service/index.d.ts +58 -58
- package/dist/service/opportunities.d.ts +10 -10
- package/dist/service/pipelines.d.ts +2 -2
- package/dist/service/quotes.d.ts +7 -7
- package/dist/validation.d.ts +11 -11
- package/package.json +5 -5
|
@@ -15,7 +15,7 @@ export declare const customFieldRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
15
15
|
entityType: "organization" | "person" | "opportunity" | "quote" | "activity";
|
|
16
16
|
key: string;
|
|
17
17
|
label: string;
|
|
18
|
-
fieldType: "boolean" | "json" | "date" | "
|
|
18
|
+
fieldType: "boolean" | "json" | "date" | "set" | "enum" | "text" | "phone" | "varchar" | "double" | "monetary" | "address";
|
|
19
19
|
isRequired: boolean;
|
|
20
20
|
isSearchable: boolean;
|
|
21
21
|
options: {
|
|
@@ -40,6 +40,7 @@ export declare const customFieldRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
40
40
|
output: {
|
|
41
41
|
data: {
|
|
42
42
|
key: string;
|
|
43
|
+
id: string;
|
|
43
44
|
createdAt: string;
|
|
44
45
|
updatedAt: string;
|
|
45
46
|
options: {
|
|
@@ -48,8 +49,7 @@ export declare const customFieldRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
48
49
|
}[] | null;
|
|
49
50
|
entityType: "organization" | "person" | "opportunity" | "quote" | "activity";
|
|
50
51
|
label: string;
|
|
51
|
-
|
|
52
|
-
fieldType: "boolean" | "json" | "date" | "text" | "phone" | "set" | "enum" | "varchar" | "double" | "monetary" | "address";
|
|
52
|
+
fieldType: "boolean" | "json" | "date" | "set" | "enum" | "text" | "phone" | "varchar" | "double" | "monetary" | "address";
|
|
53
53
|
isRequired: boolean;
|
|
54
54
|
isSearchable: boolean;
|
|
55
55
|
} | undefined;
|
|
@@ -83,7 +83,7 @@ export declare const customFieldRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
83
83
|
entityType: "organization" | "person" | "opportunity" | "quote" | "activity";
|
|
84
84
|
key: string;
|
|
85
85
|
label: string;
|
|
86
|
-
fieldType: "boolean" | "json" | "date" | "
|
|
86
|
+
fieldType: "boolean" | "json" | "date" | "set" | "enum" | "text" | "phone" | "varchar" | "double" | "monetary" | "address";
|
|
87
87
|
isRequired: boolean;
|
|
88
88
|
isSearchable: boolean;
|
|
89
89
|
options: {
|
|
@@ -123,7 +123,7 @@ export declare const customFieldRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
123
123
|
entityType: "organization" | "person" | "opportunity" | "quote" | "activity";
|
|
124
124
|
key: string;
|
|
125
125
|
label: string;
|
|
126
|
-
fieldType: "boolean" | "json" | "date" | "
|
|
126
|
+
fieldType: "boolean" | "json" | "date" | "set" | "enum" | "text" | "phone" | "varchar" | "double" | "monetary" | "address";
|
|
127
127
|
isRequired: boolean;
|
|
128
128
|
isSearchable: boolean;
|
|
129
129
|
options: {
|
|
@@ -204,11 +204,11 @@ export declare const customFieldRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
204
204
|
};
|
|
205
205
|
output: {
|
|
206
206
|
data: {
|
|
207
|
+
id: string;
|
|
207
208
|
createdAt: string;
|
|
208
209
|
updatedAt: string;
|
|
209
210
|
entityType: "organization" | "person" | "opportunity" | "quote" | "activity";
|
|
210
211
|
entityId: string;
|
|
211
|
-
id: string;
|
|
212
212
|
definitionId: string;
|
|
213
213
|
textValue: string | null;
|
|
214
214
|
numberValue: number | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-fields.d.ts","sourceRoot":"","sources":["../../src/routes/custom-fields.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"custom-fields.d.ts","sourceRoot":"","sources":["../../src/routes/custom-fields.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAYjE,KAAK,GAAG,GAAG;IACT,SAAS,EAAE;QACT,EAAE,EAAE,kBAAkB,CAAA;QACtB,MAAM,CAAC,EAAE,MAAM,CAAA;KAChB,CAAA;CACF,CAAA;AAED,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mCAuD1B,CAAA"}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
+
import { parseJsonBody, parseQuery } from "@voyantjs/hono";
|
|
1
2
|
import { Hono } from "hono";
|
|
2
3
|
import { crmService } from "../service/index.js";
|
|
3
4
|
import { customFieldDefinitionListQuerySchema, customFieldValueListQuerySchema, insertCustomFieldDefinitionSchema, updateCustomFieldDefinitionSchema, upsertCustomFieldValueSchema, } from "../validation.js";
|
|
4
5
|
export const customFieldRoutes = new Hono()
|
|
5
6
|
.get("/custom-fields", async (c) => {
|
|
6
|
-
const query =
|
|
7
|
+
const query = await parseQuery(c, customFieldDefinitionListQuerySchema);
|
|
7
8
|
return c.json(await crmService.listCustomFieldDefinitions(c.get("db"), query));
|
|
8
9
|
})
|
|
9
10
|
.post("/custom-fields", async (c) => {
|
|
10
11
|
return c.json({
|
|
11
|
-
data: await crmService.createCustomFieldDefinition(c.get("db"),
|
|
12
|
+
data: await crmService.createCustomFieldDefinition(c.get("db"), await parseJsonBody(c, insertCustomFieldDefinitionSchema)),
|
|
12
13
|
}, 201);
|
|
13
14
|
})
|
|
14
15
|
.get("/custom-fields/:id", async (c) => {
|
|
@@ -18,7 +19,7 @@ export const customFieldRoutes = new Hono()
|
|
|
18
19
|
return c.json({ data: row });
|
|
19
20
|
})
|
|
20
21
|
.patch("/custom-fields/:id", async (c) => {
|
|
21
|
-
const row = await crmService.updateCustomFieldDefinition(c.get("db"), c.req.param("id"),
|
|
22
|
+
const row = await crmService.updateCustomFieldDefinition(c.get("db"), c.req.param("id"), await parseJsonBody(c, updateCustomFieldDefinitionSchema));
|
|
22
23
|
if (!row)
|
|
23
24
|
return c.json({ error: "Custom field not found" }, 404);
|
|
24
25
|
return c.json({ data: row });
|
|
@@ -30,12 +31,12 @@ export const customFieldRoutes = new Hono()
|
|
|
30
31
|
return c.json({ success: true });
|
|
31
32
|
})
|
|
32
33
|
.get("/custom-field-values", async (c) => {
|
|
33
|
-
const query =
|
|
34
|
+
const query = await parseQuery(c, customFieldValueListQuerySchema);
|
|
34
35
|
return c.json(await crmService.listCustomFieldValues(c.get("db"), query));
|
|
35
36
|
})
|
|
36
37
|
.put("/custom-fields/:id/value", async (c) => {
|
|
37
38
|
return c.json({
|
|
38
|
-
data: await crmService.upsertCustomFieldValue(c.get("db"), c.req.param("id"),
|
|
39
|
+
data: await crmService.upsertCustomFieldValue(c.get("db"), c.req.param("id"), await parseJsonBody(c, upsertCustomFieldValueSchema)),
|
|
39
40
|
}, 200);
|
|
40
41
|
})
|
|
41
42
|
.delete("/custom-field-values/:id", async (c) => {
|
package/dist/routes/index.d.ts
CHANGED
|
@@ -44,21 +44,21 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
44
44
|
input: {};
|
|
45
45
|
output: {
|
|
46
46
|
data: {
|
|
47
|
+
source: string | null;
|
|
47
48
|
relation: "partner" | "supplier" | "other" | "client" | null;
|
|
49
|
+
id: string;
|
|
48
50
|
name: string;
|
|
49
51
|
createdAt: string;
|
|
50
52
|
updatedAt: string;
|
|
51
|
-
|
|
53
|
+
status: "active" | "inactive" | "archived";
|
|
52
54
|
notes: string | null;
|
|
53
|
-
|
|
55
|
+
website: string | null;
|
|
54
56
|
legalName: string | null;
|
|
55
57
|
industry: string | null;
|
|
56
58
|
ownerId: string | null;
|
|
57
59
|
defaultCurrency: string | null;
|
|
58
60
|
preferredLanguage: string | null;
|
|
59
61
|
paymentTerms: number | null;
|
|
60
|
-
status: "active" | "inactive" | "archived";
|
|
61
|
-
source: string | null;
|
|
62
62
|
sourceRef: string | null;
|
|
63
63
|
tags: string[];
|
|
64
64
|
archivedAt: string | null;
|
|
@@ -197,7 +197,7 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
197
197
|
id: string;
|
|
198
198
|
entityType: string;
|
|
199
199
|
entityId: string;
|
|
200
|
-
kind: "email" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social"
|
|
200
|
+
kind: "email" | "other" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social";
|
|
201
201
|
label: string | null;
|
|
202
202
|
value: string;
|
|
203
203
|
normalizedValue: string | null;
|
|
@@ -225,19 +225,19 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
225
225
|
output: {
|
|
226
226
|
data: {
|
|
227
227
|
value: string;
|
|
228
|
+
metadata: {
|
|
229
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
230
|
+
} | null;
|
|
231
|
+
id: string;
|
|
228
232
|
createdAt: string;
|
|
229
233
|
updatedAt: string;
|
|
230
|
-
|
|
234
|
+
notes: string | null;
|
|
235
|
+
kind: "email" | "other" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social";
|
|
231
236
|
entityType: string;
|
|
232
237
|
entityId: string;
|
|
233
238
|
label: string | null;
|
|
234
239
|
normalizedValue: string | null;
|
|
235
240
|
isPrimary: boolean;
|
|
236
|
-
notes: string | null;
|
|
237
|
-
metadata: {
|
|
238
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
239
|
-
} | null;
|
|
240
|
-
id: string;
|
|
241
241
|
} | null;
|
|
242
242
|
};
|
|
243
243
|
outputFormat: "json";
|
|
@@ -257,7 +257,7 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
257
257
|
id: string;
|
|
258
258
|
entityType: string;
|
|
259
259
|
entityId: string;
|
|
260
|
-
label: "primary" | "other" | "billing" | "shipping" | "mailing" | "meeting" | "
|
|
260
|
+
label: "service" | "primary" | "other" | "billing" | "shipping" | "mailing" | "meeting" | "legal";
|
|
261
261
|
fullText: string | null;
|
|
262
262
|
line1: string | null;
|
|
263
263
|
line2: string | null;
|
|
@@ -291,16 +291,18 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
291
291
|
};
|
|
292
292
|
output: {
|
|
293
293
|
data: {
|
|
294
|
+
metadata: {
|
|
295
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
296
|
+
} | null;
|
|
297
|
+
id: string;
|
|
294
298
|
createdAt: string;
|
|
295
299
|
updatedAt: string;
|
|
300
|
+
notes: string | null;
|
|
301
|
+
timezone: string | null;
|
|
296
302
|
entityType: string;
|
|
297
303
|
entityId: string;
|
|
298
|
-
label: "primary" | "other" | "billing" | "shipping" | "mailing" | "meeting" | "
|
|
304
|
+
label: "service" | "primary" | "other" | "billing" | "shipping" | "mailing" | "meeting" | "legal";
|
|
299
305
|
isPrimary: boolean;
|
|
300
|
-
notes: string | null;
|
|
301
|
-
metadata: {
|
|
302
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
303
|
-
} | null;
|
|
304
306
|
fullText: string | null;
|
|
305
307
|
line1: string | null;
|
|
306
308
|
line2: string | null;
|
|
@@ -310,8 +312,6 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
310
312
|
country: string | null;
|
|
311
313
|
latitude: number | null;
|
|
312
314
|
longitude: number | null;
|
|
313
|
-
timezone: string | null;
|
|
314
|
-
id: string;
|
|
315
315
|
} | null;
|
|
316
316
|
};
|
|
317
317
|
outputFormat: "json";
|
|
@@ -342,17 +342,6 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
342
342
|
} & {
|
|
343
343
|
"/organizations/:id/notes": {
|
|
344
344
|
$post: {
|
|
345
|
-
input: {
|
|
346
|
-
param: {
|
|
347
|
-
id: string;
|
|
348
|
-
};
|
|
349
|
-
};
|
|
350
|
-
output: {
|
|
351
|
-
error: string;
|
|
352
|
-
};
|
|
353
|
-
outputFormat: "json";
|
|
354
|
-
status: 400;
|
|
355
|
-
} | {
|
|
356
345
|
input: {
|
|
357
346
|
param: {
|
|
358
347
|
id: string;
|
|
@@ -371,8 +360,8 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
371
360
|
};
|
|
372
361
|
output: {
|
|
373
362
|
data: {
|
|
374
|
-
createdAt: string;
|
|
375
363
|
id: string;
|
|
364
|
+
createdAt: string;
|
|
376
365
|
organizationId: string;
|
|
377
366
|
authorId: string;
|
|
378
367
|
content: string;
|
|
@@ -656,7 +645,7 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
656
645
|
id: string;
|
|
657
646
|
entityType: string;
|
|
658
647
|
entityId: string;
|
|
659
|
-
kind: "email" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social"
|
|
648
|
+
kind: "email" | "other" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social";
|
|
660
649
|
label: string | null;
|
|
661
650
|
value: string;
|
|
662
651
|
normalizedValue: string | null;
|
|
@@ -684,19 +673,19 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
684
673
|
output: {
|
|
685
674
|
data: {
|
|
686
675
|
value: string;
|
|
676
|
+
metadata: {
|
|
677
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
678
|
+
} | null;
|
|
679
|
+
id: string;
|
|
687
680
|
createdAt: string;
|
|
688
681
|
updatedAt: string;
|
|
689
|
-
|
|
682
|
+
notes: string | null;
|
|
683
|
+
kind: "email" | "other" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social";
|
|
690
684
|
entityType: string;
|
|
691
685
|
entityId: string;
|
|
692
686
|
label: string | null;
|
|
693
687
|
normalizedValue: string | null;
|
|
694
688
|
isPrimary: boolean;
|
|
695
|
-
notes: string | null;
|
|
696
|
-
metadata: {
|
|
697
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
698
|
-
} | null;
|
|
699
|
-
id: string;
|
|
700
689
|
} | null;
|
|
701
690
|
};
|
|
702
691
|
outputFormat: "json";
|
|
@@ -716,7 +705,7 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
716
705
|
id: string;
|
|
717
706
|
entityType: string;
|
|
718
707
|
entityId: string;
|
|
719
|
-
label: "primary" | "other" | "billing" | "shipping" | "mailing" | "meeting" | "
|
|
708
|
+
label: "service" | "primary" | "other" | "billing" | "shipping" | "mailing" | "meeting" | "legal";
|
|
720
709
|
fullText: string | null;
|
|
721
710
|
line1: string | null;
|
|
722
711
|
line2: string | null;
|
|
@@ -750,16 +739,18 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
750
739
|
};
|
|
751
740
|
output: {
|
|
752
741
|
data: {
|
|
742
|
+
metadata: {
|
|
743
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
744
|
+
} | null;
|
|
745
|
+
id: string;
|
|
753
746
|
createdAt: string;
|
|
754
747
|
updatedAt: string;
|
|
748
|
+
notes: string | null;
|
|
749
|
+
timezone: string | null;
|
|
755
750
|
entityType: string;
|
|
756
751
|
entityId: string;
|
|
757
|
-
label: "primary" | "other" | "billing" | "shipping" | "mailing" | "meeting" | "
|
|
752
|
+
label: "service" | "primary" | "other" | "billing" | "shipping" | "mailing" | "meeting" | "legal";
|
|
758
753
|
isPrimary: boolean;
|
|
759
|
-
notes: string | null;
|
|
760
|
-
metadata: {
|
|
761
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
762
|
-
} | null;
|
|
763
754
|
fullText: string | null;
|
|
764
755
|
line1: string | null;
|
|
765
756
|
line2: string | null;
|
|
@@ -769,8 +760,6 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
769
760
|
country: string | null;
|
|
770
761
|
latitude: number | null;
|
|
771
762
|
longitude: number | null;
|
|
772
|
-
timezone: string | null;
|
|
773
|
-
id: string;
|
|
774
763
|
} | null;
|
|
775
764
|
};
|
|
776
765
|
outputFormat: "json";
|
|
@@ -801,17 +790,6 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
801
790
|
} & {
|
|
802
791
|
"/people/:id/notes": {
|
|
803
792
|
$post: {
|
|
804
|
-
input: {
|
|
805
|
-
param: {
|
|
806
|
-
id: string;
|
|
807
|
-
};
|
|
808
|
-
};
|
|
809
|
-
output: {
|
|
810
|
-
error: string;
|
|
811
|
-
};
|
|
812
|
-
outputFormat: "json";
|
|
813
|
-
status: 400;
|
|
814
|
-
} | {
|
|
815
793
|
input: {
|
|
816
794
|
param: {
|
|
817
795
|
id: string;
|
|
@@ -830,8 +808,8 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
830
808
|
};
|
|
831
809
|
output: {
|
|
832
810
|
data: {
|
|
833
|
-
createdAt: string;
|
|
834
811
|
id: string;
|
|
812
|
+
createdAt: string;
|
|
835
813
|
personId: string;
|
|
836
814
|
authorId: string;
|
|
837
815
|
content: string;
|
|
@@ -912,7 +890,7 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
912
890
|
id: string;
|
|
913
891
|
personId: string;
|
|
914
892
|
organizationId: string | null;
|
|
915
|
-
channel: "email" | "
|
|
893
|
+
channel: "email" | "other" | "phone" | "whatsapp" | "sms" | "meeting";
|
|
916
894
|
direction: "inbound" | "outbound";
|
|
917
895
|
subject: string | null;
|
|
918
896
|
content: string | null;
|
|
@@ -945,12 +923,12 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
945
923
|
};
|
|
946
924
|
output: {
|
|
947
925
|
data: {
|
|
948
|
-
createdAt: string;
|
|
949
926
|
id: string;
|
|
927
|
+
createdAt: string;
|
|
950
928
|
organizationId: string | null;
|
|
951
929
|
personId: string;
|
|
952
930
|
content: string | null;
|
|
953
|
-
channel: "email" | "
|
|
931
|
+
channel: "email" | "other" | "phone" | "whatsapp" | "sms" | "meeting";
|
|
954
932
|
direction: "inbound" | "outbound";
|
|
955
933
|
subject: string | null;
|
|
956
934
|
sentAt: string | null;
|
|
@@ -986,11 +964,11 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
986
964
|
input: {};
|
|
987
965
|
output: {
|
|
988
966
|
data: {
|
|
967
|
+
id: string;
|
|
989
968
|
name: string;
|
|
990
969
|
createdAt: string;
|
|
991
970
|
updatedAt: string;
|
|
992
971
|
description: string | null;
|
|
993
|
-
id: string;
|
|
994
972
|
conditions: {
|
|
995
973
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
996
974
|
} | null;
|
|
@@ -1081,7 +1059,7 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
1081
1059
|
id: string;
|
|
1082
1060
|
entityType: string;
|
|
1083
1061
|
entityId: string;
|
|
1084
|
-
kind: "email" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social"
|
|
1062
|
+
kind: "email" | "other" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social";
|
|
1085
1063
|
label: string | null;
|
|
1086
1064
|
value: string;
|
|
1087
1065
|
normalizedValue: string | null;
|
|
@@ -1148,7 +1126,7 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
1148
1126
|
id: string;
|
|
1149
1127
|
entityType: string;
|
|
1150
1128
|
entityId: string;
|
|
1151
|
-
label: "primary" | "other" | "billing" | "shipping" | "mailing" | "meeting" | "
|
|
1129
|
+
label: "service" | "primary" | "other" | "billing" | "shipping" | "mailing" | "meeting" | "legal";
|
|
1152
1130
|
fullText: string | null;
|
|
1153
1131
|
line1: string | null;
|
|
1154
1132
|
line2: string | null;
|
|
@@ -1226,11 +1204,11 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
1226
1204
|
input: {};
|
|
1227
1205
|
output: {
|
|
1228
1206
|
data: {
|
|
1207
|
+
id: string;
|
|
1229
1208
|
name: string;
|
|
1230
1209
|
createdAt: string;
|
|
1231
1210
|
updatedAt: string;
|
|
1232
1211
|
entityType: "organization" | "person" | "opportunity" | "quote" | "activity";
|
|
1233
|
-
id: string;
|
|
1234
1212
|
isDefault: boolean;
|
|
1235
1213
|
sortOrder: number;
|
|
1236
1214
|
} | undefined;
|
|
@@ -1364,10 +1342,10 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
1364
1342
|
input: {};
|
|
1365
1343
|
output: {
|
|
1366
1344
|
data: {
|
|
1345
|
+
id: string;
|
|
1367
1346
|
name: string;
|
|
1368
1347
|
createdAt: string;
|
|
1369
1348
|
updatedAt: string;
|
|
1370
|
-
id: string;
|
|
1371
1349
|
sortOrder: number;
|
|
1372
1350
|
pipelineId: string;
|
|
1373
1351
|
probability: number | null;
|
|
@@ -1520,16 +1498,16 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
1520
1498
|
input: {};
|
|
1521
1499
|
output: {
|
|
1522
1500
|
data: {
|
|
1501
|
+
source: string | null;
|
|
1502
|
+
id: string;
|
|
1523
1503
|
createdAt: string;
|
|
1524
1504
|
updatedAt: string;
|
|
1505
|
+
organizationId: string | null;
|
|
1506
|
+
status: "archived" | "open" | "won" | "lost";
|
|
1525
1507
|
title: string;
|
|
1526
|
-
id: string;
|
|
1527
1508
|
ownerId: string | null;
|
|
1528
|
-
status: "archived" | "open" | "won" | "lost";
|
|
1529
|
-
source: string | null;
|
|
1530
1509
|
sourceRef: string | null;
|
|
1531
1510
|
tags: string[];
|
|
1532
|
-
organizationId: string | null;
|
|
1533
1511
|
personId: string | null;
|
|
1534
1512
|
pipelineId: string;
|
|
1535
1513
|
stageId: string;
|
|
@@ -1695,11 +1673,11 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
1695
1673
|
};
|
|
1696
1674
|
output: {
|
|
1697
1675
|
data: {
|
|
1698
|
-
|
|
1676
|
+
id: string;
|
|
1699
1677
|
createdAt: string;
|
|
1700
|
-
isPrimary: boolean;
|
|
1701
1678
|
role: "other" | "traveler" | "booker" | "decision_maker" | "finance";
|
|
1702
|
-
|
|
1679
|
+
opportunityId: string;
|
|
1680
|
+
isPrimary: boolean;
|
|
1703
1681
|
personId: string;
|
|
1704
1682
|
} | undefined;
|
|
1705
1683
|
};
|
|
@@ -1772,18 +1750,18 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
1772
1750
|
};
|
|
1773
1751
|
output: {
|
|
1774
1752
|
data: {
|
|
1775
|
-
|
|
1753
|
+
id: string;
|
|
1776
1754
|
createdAt: string;
|
|
1777
1755
|
updatedAt: string;
|
|
1756
|
+
currency: string | null;
|
|
1778
1757
|
description: string | null;
|
|
1779
|
-
|
|
1758
|
+
opportunityId: string;
|
|
1780
1759
|
productId: string | null;
|
|
1781
1760
|
supplierServiceId: string | null;
|
|
1782
1761
|
nameSnapshot: string;
|
|
1783
1762
|
quantity: number;
|
|
1784
1763
|
unitPriceAmountCents: number | null;
|
|
1785
1764
|
costAmountCents: number | null;
|
|
1786
|
-
currency: string | null;
|
|
1787
1765
|
discountAmountCents: number | null;
|
|
1788
1766
|
} | undefined;
|
|
1789
1767
|
};
|
|
@@ -1890,14 +1868,14 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
1890
1868
|
input: {};
|
|
1891
1869
|
output: {
|
|
1892
1870
|
data: {
|
|
1893
|
-
|
|
1871
|
+
id: string;
|
|
1894
1872
|
createdAt: string;
|
|
1895
1873
|
updatedAt: string;
|
|
1896
|
-
notes: string | null;
|
|
1897
|
-
id: string;
|
|
1898
1874
|
status: "archived" | "draft" | "sent" | "accepted" | "expired" | "rejected";
|
|
1899
|
-
archivedAt: string | null;
|
|
1900
1875
|
currency: string;
|
|
1876
|
+
notes: string | null;
|
|
1877
|
+
opportunityId: string;
|
|
1878
|
+
archivedAt: string | null;
|
|
1901
1879
|
validUntil: string | null;
|
|
1902
1880
|
subtotalAmountCents: number;
|
|
1903
1881
|
taxAmountCents: number;
|
|
@@ -2049,16 +2027,16 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
2049
2027
|
};
|
|
2050
2028
|
output: {
|
|
2051
2029
|
data: {
|
|
2052
|
-
|
|
2030
|
+
id: string;
|
|
2053
2031
|
createdAt: string;
|
|
2054
2032
|
updatedAt: string;
|
|
2033
|
+
currency: string;
|
|
2055
2034
|
description: string;
|
|
2056
|
-
|
|
2035
|
+
quoteId: string;
|
|
2057
2036
|
productId: string | null;
|
|
2058
2037
|
supplierServiceId: string | null;
|
|
2059
2038
|
quantity: number;
|
|
2060
2039
|
unitPriceAmountCents: number;
|
|
2061
|
-
currency: string;
|
|
2062
2040
|
totalAmountCents: number;
|
|
2063
2041
|
} | undefined;
|
|
2064
2042
|
};
|
|
@@ -2162,13 +2140,13 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
2162
2140
|
input: {};
|
|
2163
2141
|
output: {
|
|
2164
2142
|
data: {
|
|
2143
|
+
id: string;
|
|
2165
2144
|
createdAt: string;
|
|
2166
2145
|
updatedAt: string;
|
|
2167
|
-
|
|
2146
|
+
status: "done" | "planned" | "cancelled";
|
|
2168
2147
|
type: "email" | "meeting" | "call" | "task" | "follow_up" | "note";
|
|
2169
|
-
|
|
2148
|
+
description: string | null;
|
|
2170
2149
|
ownerId: string | null;
|
|
2171
|
-
status: "done" | "planned" | "cancelled";
|
|
2172
2150
|
subject: string;
|
|
2173
2151
|
dueAt: string | null;
|
|
2174
2152
|
completedAt: string | null;
|
|
@@ -2313,11 +2291,11 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
2313
2291
|
};
|
|
2314
2292
|
output: {
|
|
2315
2293
|
data: {
|
|
2294
|
+
id: string;
|
|
2316
2295
|
createdAt: string;
|
|
2296
|
+
role: "primary" | "related";
|
|
2317
2297
|
entityType: "organization" | "person" | "opportunity" | "quote" | "activity";
|
|
2318
2298
|
entityId: string;
|
|
2319
|
-
role: "primary" | "related";
|
|
2320
|
-
id: string;
|
|
2321
2299
|
activityId: string;
|
|
2322
2300
|
} | undefined;
|
|
2323
2301
|
};
|
|
@@ -2382,9 +2360,9 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
2382
2360
|
};
|
|
2383
2361
|
output: {
|
|
2384
2362
|
data: {
|
|
2363
|
+
id: string;
|
|
2385
2364
|
createdAt: string;
|
|
2386
2365
|
isPrimary: boolean;
|
|
2387
|
-
id: string;
|
|
2388
2366
|
personId: string;
|
|
2389
2367
|
activityId: string;
|
|
2390
2368
|
} | undefined;
|
|
@@ -2429,7 +2407,7 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
2429
2407
|
entityType: "organization" | "person" | "opportunity" | "quote" | "activity";
|
|
2430
2408
|
key: string;
|
|
2431
2409
|
label: string;
|
|
2432
|
-
fieldType: "boolean" | "json" | "date" | "
|
|
2410
|
+
fieldType: "boolean" | "json" | "date" | "set" | "enum" | "text" | "phone" | "varchar" | "double" | "monetary" | "address";
|
|
2433
2411
|
isRequired: boolean;
|
|
2434
2412
|
isSearchable: boolean;
|
|
2435
2413
|
options: {
|
|
@@ -2454,6 +2432,7 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
2454
2432
|
output: {
|
|
2455
2433
|
data: {
|
|
2456
2434
|
key: string;
|
|
2435
|
+
id: string;
|
|
2457
2436
|
createdAt: string;
|
|
2458
2437
|
updatedAt: string;
|
|
2459
2438
|
options: {
|
|
@@ -2462,8 +2441,7 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
2462
2441
|
}[] | null;
|
|
2463
2442
|
entityType: "organization" | "person" | "opportunity" | "quote" | "activity";
|
|
2464
2443
|
label: string;
|
|
2465
|
-
|
|
2466
|
-
fieldType: "boolean" | "json" | "date" | "text" | "phone" | "set" | "enum" | "varchar" | "double" | "monetary" | "address";
|
|
2444
|
+
fieldType: "boolean" | "json" | "date" | "set" | "enum" | "text" | "phone" | "varchar" | "double" | "monetary" | "address";
|
|
2467
2445
|
isRequired: boolean;
|
|
2468
2446
|
isSearchable: boolean;
|
|
2469
2447
|
} | undefined;
|
|
@@ -2497,7 +2475,7 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
2497
2475
|
entityType: "organization" | "person" | "opportunity" | "quote" | "activity";
|
|
2498
2476
|
key: string;
|
|
2499
2477
|
label: string;
|
|
2500
|
-
fieldType: "boolean" | "json" | "date" | "
|
|
2478
|
+
fieldType: "boolean" | "json" | "date" | "set" | "enum" | "text" | "phone" | "varchar" | "double" | "monetary" | "address";
|
|
2501
2479
|
isRequired: boolean;
|
|
2502
2480
|
isSearchable: boolean;
|
|
2503
2481
|
options: {
|
|
@@ -2537,7 +2515,7 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
2537
2515
|
entityType: "organization" | "person" | "opportunity" | "quote" | "activity";
|
|
2538
2516
|
key: string;
|
|
2539
2517
|
label: string;
|
|
2540
|
-
fieldType: "boolean" | "json" | "date" | "
|
|
2518
|
+
fieldType: "boolean" | "json" | "date" | "set" | "enum" | "text" | "phone" | "varchar" | "double" | "monetary" | "address";
|
|
2541
2519
|
isRequired: boolean;
|
|
2542
2520
|
isSearchable: boolean;
|
|
2543
2521
|
options: {
|
|
@@ -2618,11 +2596,11 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
2618
2596
|
};
|
|
2619
2597
|
output: {
|
|
2620
2598
|
data: {
|
|
2599
|
+
id: string;
|
|
2621
2600
|
createdAt: string;
|
|
2622
2601
|
updatedAt: string;
|
|
2623
2602
|
entityType: "organization" | "person" | "opportunity" | "quote" | "activity";
|
|
2624
2603
|
entityId: string;
|
|
2625
|
-
id: string;
|
|
2626
2604
|
definitionId: string;
|
|
2627
2605
|
textValue: string | null;
|
|
2628
2606
|
numberValue: number | null;
|
|
@@ -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;AAUjE,KAAK,GAAG,GAAG;IACT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