@voyantjs/crm 0.1.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.
Files changed (60) hide show
  1. package/LICENSE +109 -0
  2. package/README.md +47 -0
  3. package/dist/booking-extension.d.ts +123 -0
  4. package/dist/booking-extension.d.ts.map +1 -0
  5. package/dist/booking-extension.js +86 -0
  6. package/dist/index.d.ts +14 -0
  7. package/dist/index.d.ts.map +1 -0
  8. package/dist/index.js +29 -0
  9. package/dist/routes/accounts.d.ts +1203 -0
  10. package/dist/routes/accounts.d.ts.map +1 -0
  11. package/dist/routes/accounts.js +226 -0
  12. package/dist/routes/activities.d.ts +299 -0
  13. package/dist/routes/activities.d.ts.map +1 -0
  14. package/dist/routes/activities.js +61 -0
  15. package/dist/routes/custom-fields.d.ts +256 -0
  16. package/dist/routes/custom-fields.d.ts.map +1 -0
  17. package/dist/routes/custom-fields.js +46 -0
  18. package/dist/routes/index.d.ts +2671 -0
  19. package/dist/routes/index.d.ts.map +1 -0
  20. package/dist/routes/index.js +14 -0
  21. package/dist/routes/opportunities.d.ts +387 -0
  22. package/dist/routes/opportunities.d.ts.map +1 -0
  23. package/dist/routes/opportunities.js +69 -0
  24. package/dist/routes/pipelines.d.ts +292 -0
  25. package/dist/routes/pipelines.d.ts.map +1 -0
  26. package/dist/routes/pipelines.js +58 -0
  27. package/dist/routes/quotes.d.ts +283 -0
  28. package/dist/routes/quotes.d.ts.map +1 -0
  29. package/dist/routes/quotes.js +51 -0
  30. package/dist/schema.d.ts +3478 -0
  31. package/dist/schema.d.ts.map +1 -0
  32. package/dist/schema.js +515 -0
  33. package/dist/service/accounts.d.ts +982 -0
  34. package/dist/service/accounts.d.ts.map +1 -0
  35. package/dist/service/accounts.js +509 -0
  36. package/dist/service/activities.d.ts +486 -0
  37. package/dist/service/activities.d.ts.map +1 -0
  38. package/dist/service/activities.js +114 -0
  39. package/dist/service/custom-fields.d.ts +118 -0
  40. package/dist/service/custom-fields.d.ts.map +1 -0
  41. package/dist/service/custom-fields.js +88 -0
  42. package/dist/service/helpers.d.ts +22 -0
  43. package/dist/service/helpers.d.ts.map +1 -0
  44. package/dist/service/helpers.js +39 -0
  45. package/dist/service/index.d.ts +3329 -0
  46. package/dist/service/index.d.ts.map +1 -0
  47. package/dist/service/index.js +14 -0
  48. package/dist/service/opportunities.d.ts +822 -0
  49. package/dist/service/opportunities.d.ts.map +1 -0
  50. package/dist/service/opportunities.js +117 -0
  51. package/dist/service/pipelines.d.ts +113 -0
  52. package/dist/service/pipelines.d.ts.map +1 -0
  53. package/dist/service/pipelines.js +68 -0
  54. package/dist/service/quotes.d.ts +494 -0
  55. package/dist/service/quotes.d.ts.map +1 -0
  56. package/dist/service/quotes.js +69 -0
  57. package/dist/validation.d.ts +860 -0
  58. package/dist/validation.d.ts.map +1 -0
  59. package/dist/validation.js +315 -0
  60. package/package.json +56 -0
@@ -0,0 +1,1203 @@
1
+ import type { PostgresJsDatabase } from "drizzle-orm/postgres-js";
2
+ type Env = {
3
+ Variables: {
4
+ db: PostgresJsDatabase;
5
+ userId?: string;
6
+ };
7
+ };
8
+ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
9
+ "/organizations": {
10
+ $get: {
11
+ input: {};
12
+ output: {
13
+ data: {
14
+ id: string;
15
+ name: string;
16
+ legalName: string | null;
17
+ website: string | null;
18
+ industry: string | null;
19
+ relation: "partner" | "supplier" | "other" | "client" | null;
20
+ ownerId: string | null;
21
+ defaultCurrency: string | null;
22
+ preferredLanguage: string | null;
23
+ paymentTerms: number | null;
24
+ status: "active" | "inactive" | "archived";
25
+ source: string | null;
26
+ sourceRef: string | null;
27
+ tags: string[];
28
+ notes: string | null;
29
+ createdAt: string;
30
+ updatedAt: string;
31
+ archivedAt: string | null;
32
+ }[];
33
+ total: number;
34
+ limit: number;
35
+ offset: number;
36
+ };
37
+ outputFormat: "json";
38
+ status: import("hono/utils/http-status").ContentfulStatusCode;
39
+ };
40
+ };
41
+ } & {
42
+ "/organizations": {
43
+ $post: {
44
+ input: {};
45
+ output: {
46
+ data: {
47
+ relation: "partner" | "supplier" | "other" | "client" | null;
48
+ name: string;
49
+ createdAt: string;
50
+ updatedAt: string;
51
+ website: string | null;
52
+ notes: string | null;
53
+ id: string;
54
+ legalName: string | null;
55
+ industry: string | null;
56
+ ownerId: string | null;
57
+ defaultCurrency: string | null;
58
+ preferredLanguage: string | null;
59
+ paymentTerms: number | null;
60
+ status: "active" | "inactive" | "archived";
61
+ source: string | null;
62
+ sourceRef: string | null;
63
+ tags: string[];
64
+ archivedAt: string | null;
65
+ } | undefined;
66
+ };
67
+ outputFormat: "json";
68
+ status: 201;
69
+ };
70
+ };
71
+ } & {
72
+ "/organizations/:id": {
73
+ $get: {
74
+ input: {
75
+ param: {
76
+ id: string;
77
+ };
78
+ };
79
+ output: {
80
+ error: string;
81
+ };
82
+ outputFormat: "json";
83
+ status: 404;
84
+ } | {
85
+ input: {
86
+ param: {
87
+ id: string;
88
+ };
89
+ };
90
+ output: {
91
+ data: {
92
+ id: string;
93
+ name: string;
94
+ legalName: string | null;
95
+ website: string | null;
96
+ industry: string | null;
97
+ relation: "partner" | "supplier" | "other" | "client" | null;
98
+ ownerId: string | null;
99
+ defaultCurrency: string | null;
100
+ preferredLanguage: string | null;
101
+ paymentTerms: number | null;
102
+ status: "active" | "inactive" | "archived";
103
+ source: string | null;
104
+ sourceRef: string | null;
105
+ tags: string[];
106
+ notes: string | null;
107
+ createdAt: string;
108
+ updatedAt: string;
109
+ archivedAt: string | null;
110
+ };
111
+ };
112
+ outputFormat: "json";
113
+ status: import("hono/utils/http-status").ContentfulStatusCode;
114
+ };
115
+ };
116
+ } & {
117
+ "/organizations/:id": {
118
+ $patch: {
119
+ input: {
120
+ param: {
121
+ id: string;
122
+ };
123
+ };
124
+ output: {
125
+ error: string;
126
+ };
127
+ outputFormat: "json";
128
+ status: 404;
129
+ } | {
130
+ input: {
131
+ param: {
132
+ id: string;
133
+ };
134
+ };
135
+ output: {
136
+ data: {
137
+ id: string;
138
+ name: string;
139
+ legalName: string | null;
140
+ website: string | null;
141
+ industry: string | null;
142
+ relation: "partner" | "supplier" | "other" | "client" | null;
143
+ ownerId: string | null;
144
+ defaultCurrency: string | null;
145
+ preferredLanguage: string | null;
146
+ paymentTerms: number | null;
147
+ status: "active" | "inactive" | "archived";
148
+ source: string | null;
149
+ sourceRef: string | null;
150
+ tags: string[];
151
+ notes: string | null;
152
+ createdAt: string;
153
+ updatedAt: string;
154
+ archivedAt: string | null;
155
+ };
156
+ };
157
+ outputFormat: "json";
158
+ status: import("hono/utils/http-status").ContentfulStatusCode;
159
+ };
160
+ };
161
+ } & {
162
+ "/organizations/:id": {
163
+ $delete: {
164
+ input: {
165
+ param: {
166
+ id: string;
167
+ };
168
+ };
169
+ output: {
170
+ error: string;
171
+ };
172
+ outputFormat: "json";
173
+ status: 404;
174
+ } | {
175
+ input: {
176
+ param: {
177
+ id: string;
178
+ };
179
+ };
180
+ output: {
181
+ success: true;
182
+ };
183
+ outputFormat: "json";
184
+ status: import("hono/utils/http-status").ContentfulStatusCode;
185
+ };
186
+ };
187
+ } & {
188
+ "/organizations/:id/contact-methods": {
189
+ $get: {
190
+ input: {
191
+ param: {
192
+ id: string;
193
+ };
194
+ };
195
+ output: {
196
+ data: {
197
+ id: string;
198
+ entityType: string;
199
+ entityId: string;
200
+ kind: "email" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social" | "other";
201
+ label: string | null;
202
+ value: string;
203
+ normalizedValue: string | null;
204
+ isPrimary: boolean;
205
+ notes: string | null;
206
+ metadata: {
207
+ [x: string]: import("hono/utils/types").JSONValue;
208
+ } | null;
209
+ createdAt: string;
210
+ updatedAt: string;
211
+ }[];
212
+ };
213
+ outputFormat: "json";
214
+ status: import("hono/utils/http-status").ContentfulStatusCode;
215
+ };
216
+ };
217
+ } & {
218
+ "/organizations/:id/contact-methods": {
219
+ $post: {
220
+ input: {
221
+ param: {
222
+ id: string;
223
+ };
224
+ };
225
+ output: {
226
+ data: {
227
+ value: string;
228
+ createdAt: string;
229
+ updatedAt: string;
230
+ kind: "email" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social" | "other";
231
+ entityType: string;
232
+ entityId: string;
233
+ label: string | null;
234
+ normalizedValue: string | null;
235
+ isPrimary: boolean;
236
+ notes: string | null;
237
+ metadata: {
238
+ [x: string]: import("hono/utils/types").JSONValue;
239
+ } | null;
240
+ id: string;
241
+ } | null;
242
+ };
243
+ outputFormat: "json";
244
+ status: 201;
245
+ };
246
+ };
247
+ } & {
248
+ "/organizations/:id/addresses": {
249
+ $get: {
250
+ input: {
251
+ param: {
252
+ id: string;
253
+ };
254
+ };
255
+ output: {
256
+ data: {
257
+ id: string;
258
+ entityType: string;
259
+ entityId: string;
260
+ label: "primary" | "other" | "billing" | "shipping" | "mailing" | "meeting" | "service" | "legal";
261
+ fullText: string | null;
262
+ line1: string | null;
263
+ line2: string | null;
264
+ city: string | null;
265
+ region: string | null;
266
+ postalCode: string | null;
267
+ country: string | null;
268
+ latitude: number | null;
269
+ longitude: number | null;
270
+ timezone: string | null;
271
+ isPrimary: boolean;
272
+ notes: string | null;
273
+ metadata: {
274
+ [x: string]: import("hono/utils/types").JSONValue;
275
+ } | null;
276
+ createdAt: string;
277
+ updatedAt: string;
278
+ }[];
279
+ };
280
+ outputFormat: "json";
281
+ status: import("hono/utils/http-status").ContentfulStatusCode;
282
+ };
283
+ };
284
+ } & {
285
+ "/organizations/:id/addresses": {
286
+ $post: {
287
+ input: {
288
+ param: {
289
+ id: string;
290
+ };
291
+ };
292
+ output: {
293
+ data: {
294
+ createdAt: string;
295
+ updatedAt: string;
296
+ entityType: string;
297
+ entityId: string;
298
+ label: "primary" | "other" | "billing" | "shipping" | "mailing" | "meeting" | "service" | "legal";
299
+ isPrimary: boolean;
300
+ notes: string | null;
301
+ metadata: {
302
+ [x: string]: import("hono/utils/types").JSONValue;
303
+ } | null;
304
+ fullText: string | null;
305
+ line1: string | null;
306
+ line2: string | null;
307
+ city: string | null;
308
+ region: string | null;
309
+ postalCode: string | null;
310
+ country: string | null;
311
+ latitude: number | null;
312
+ longitude: number | null;
313
+ timezone: string | null;
314
+ id: string;
315
+ } | null;
316
+ };
317
+ outputFormat: "json";
318
+ status: 201;
319
+ };
320
+ };
321
+ } & {
322
+ "/organizations/:id/notes": {
323
+ $get: {
324
+ input: {
325
+ param: {
326
+ id: string;
327
+ };
328
+ };
329
+ output: {
330
+ data: {
331
+ id: string;
332
+ organizationId: string;
333
+ authorId: string;
334
+ content: string;
335
+ createdAt: string;
336
+ }[];
337
+ };
338
+ outputFormat: "json";
339
+ status: import("hono/utils/http-status").ContentfulStatusCode;
340
+ };
341
+ };
342
+ } & {
343
+ "/organizations/:id/notes": {
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
+ input: {
357
+ param: {
358
+ id: string;
359
+ };
360
+ };
361
+ output: {
362
+ error: string;
363
+ };
364
+ outputFormat: "json";
365
+ status: 404;
366
+ } | {
367
+ input: {
368
+ param: {
369
+ id: string;
370
+ };
371
+ };
372
+ output: {
373
+ data: {
374
+ createdAt: string;
375
+ id: string;
376
+ organizationId: string;
377
+ authorId: string;
378
+ content: string;
379
+ };
380
+ };
381
+ outputFormat: "json";
382
+ status: 201;
383
+ };
384
+ };
385
+ } & {
386
+ "/organization-notes/:id": {
387
+ $patch: {
388
+ input: {
389
+ param: {
390
+ id: string;
391
+ };
392
+ };
393
+ output: {
394
+ error: string;
395
+ };
396
+ outputFormat: "json";
397
+ status: 404;
398
+ } | {
399
+ input: {
400
+ param: {
401
+ id: string;
402
+ };
403
+ };
404
+ output: {
405
+ data: {
406
+ id: string;
407
+ organizationId: string;
408
+ authorId: string;
409
+ content: string;
410
+ createdAt: string;
411
+ };
412
+ };
413
+ outputFormat: "json";
414
+ status: import("hono/utils/http-status").ContentfulStatusCode;
415
+ };
416
+ };
417
+ } & {
418
+ "/organization-notes/:id": {
419
+ $delete: {
420
+ input: {
421
+ param: {
422
+ id: string;
423
+ };
424
+ };
425
+ output: {
426
+ error: string;
427
+ };
428
+ outputFormat: "json";
429
+ status: 404;
430
+ } | {
431
+ input: {
432
+ param: {
433
+ id: string;
434
+ };
435
+ };
436
+ output: {
437
+ success: true;
438
+ };
439
+ outputFormat: "json";
440
+ status: import("hono/utils/http-status").ContentfulStatusCode;
441
+ };
442
+ };
443
+ } & {
444
+ "/people": {
445
+ $get: {
446
+ input: {};
447
+ output: {
448
+ data: {
449
+ id: string;
450
+ organizationId: string | null;
451
+ firstName: string;
452
+ lastName: string;
453
+ jobTitle: string | null;
454
+ relation: "partner" | "supplier" | "other" | "client" | null;
455
+ preferredLanguage: string | null;
456
+ preferredCurrency: string | null;
457
+ ownerId: string | null;
458
+ status: "active" | "inactive" | "archived";
459
+ source: string | null;
460
+ sourceRef: string | null;
461
+ tags: string[];
462
+ birthday: string | null;
463
+ notes: string | null;
464
+ createdAt: string;
465
+ updatedAt: string;
466
+ archivedAt: string | null;
467
+ email: string | null;
468
+ phone: string | null;
469
+ website: string | null;
470
+ address: string | null;
471
+ city: string | null;
472
+ country: string | null;
473
+ }[];
474
+ total: number;
475
+ limit: number;
476
+ offset: number;
477
+ };
478
+ outputFormat: "json";
479
+ status: import("hono/utils/http-status").ContentfulStatusCode;
480
+ };
481
+ };
482
+ } & {
483
+ "/people": {
484
+ $post: {
485
+ input: {};
486
+ output: {
487
+ data: {
488
+ id: string;
489
+ organizationId: string | null;
490
+ firstName: string;
491
+ lastName: string;
492
+ jobTitle: string | null;
493
+ relation: "partner" | "supplier" | "other" | "client" | null;
494
+ preferredLanguage: string | null;
495
+ preferredCurrency: string | null;
496
+ ownerId: string | null;
497
+ status: "active" | "inactive" | "archived";
498
+ source: string | null;
499
+ sourceRef: string | null;
500
+ tags: string[];
501
+ birthday: string | null;
502
+ notes: string | null;
503
+ createdAt: string;
504
+ updatedAt: string;
505
+ archivedAt: string | null;
506
+ email: string | null;
507
+ phone: string | null;
508
+ website: string | null;
509
+ address: string | null;
510
+ city: string | null;
511
+ country: string | null;
512
+ } | null;
513
+ };
514
+ outputFormat: "json";
515
+ status: 201;
516
+ };
517
+ };
518
+ } & {
519
+ "/people/:id": {
520
+ $get: {
521
+ input: {
522
+ param: {
523
+ id: string;
524
+ };
525
+ };
526
+ output: {
527
+ error: string;
528
+ };
529
+ outputFormat: "json";
530
+ status: 404;
531
+ } | {
532
+ input: {
533
+ param: {
534
+ id: string;
535
+ };
536
+ };
537
+ output: {
538
+ data: {
539
+ id: string;
540
+ organizationId: string | null;
541
+ firstName: string;
542
+ lastName: string;
543
+ jobTitle: string | null;
544
+ relation: "partner" | "supplier" | "other" | "client" | null;
545
+ preferredLanguage: string | null;
546
+ preferredCurrency: string | null;
547
+ ownerId: string | null;
548
+ status: "active" | "inactive" | "archived";
549
+ source: string | null;
550
+ sourceRef: string | null;
551
+ tags: string[];
552
+ birthday: string | null;
553
+ notes: string | null;
554
+ createdAt: string;
555
+ updatedAt: string;
556
+ archivedAt: string | null;
557
+ email: string | null;
558
+ phone: string | null;
559
+ website: string | null;
560
+ address: string | null;
561
+ city: string | null;
562
+ country: string | null;
563
+ };
564
+ };
565
+ outputFormat: "json";
566
+ status: import("hono/utils/http-status").ContentfulStatusCode;
567
+ };
568
+ };
569
+ } & {
570
+ "/people/:id": {
571
+ $patch: {
572
+ input: {
573
+ param: {
574
+ id: string;
575
+ };
576
+ };
577
+ output: {
578
+ error: string;
579
+ };
580
+ outputFormat: "json";
581
+ status: 404;
582
+ } | {
583
+ input: {
584
+ param: {
585
+ id: string;
586
+ };
587
+ };
588
+ output: {
589
+ data: {
590
+ id: string;
591
+ organizationId: string | null;
592
+ firstName: string;
593
+ lastName: string;
594
+ jobTitle: string | null;
595
+ relation: "partner" | "supplier" | "other" | "client" | null;
596
+ preferredLanguage: string | null;
597
+ preferredCurrency: string | null;
598
+ ownerId: string | null;
599
+ status: "active" | "inactive" | "archived";
600
+ source: string | null;
601
+ sourceRef: string | null;
602
+ tags: string[];
603
+ birthday: string | null;
604
+ notes: string | null;
605
+ createdAt: string;
606
+ updatedAt: string;
607
+ archivedAt: string | null;
608
+ email: string | null;
609
+ phone: string | null;
610
+ website: string | null;
611
+ address: string | null;
612
+ city: string | null;
613
+ country: string | null;
614
+ };
615
+ };
616
+ outputFormat: "json";
617
+ status: import("hono/utils/http-status").ContentfulStatusCode;
618
+ };
619
+ };
620
+ } & {
621
+ "/people/:id": {
622
+ $delete: {
623
+ input: {
624
+ param: {
625
+ id: string;
626
+ };
627
+ };
628
+ output: {
629
+ error: string;
630
+ };
631
+ outputFormat: "json";
632
+ status: 404;
633
+ } | {
634
+ input: {
635
+ param: {
636
+ id: string;
637
+ };
638
+ };
639
+ output: {
640
+ success: true;
641
+ };
642
+ outputFormat: "json";
643
+ status: import("hono/utils/http-status").ContentfulStatusCode;
644
+ };
645
+ };
646
+ } & {
647
+ "/people/:id/contact-methods": {
648
+ $get: {
649
+ input: {
650
+ param: {
651
+ id: string;
652
+ };
653
+ };
654
+ output: {
655
+ data: {
656
+ id: string;
657
+ entityType: string;
658
+ entityId: string;
659
+ kind: "email" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social" | "other";
660
+ label: string | null;
661
+ value: string;
662
+ normalizedValue: string | null;
663
+ isPrimary: boolean;
664
+ notes: string | null;
665
+ metadata: {
666
+ [x: string]: import("hono/utils/types").JSONValue;
667
+ } | null;
668
+ createdAt: string;
669
+ updatedAt: string;
670
+ }[];
671
+ };
672
+ outputFormat: "json";
673
+ status: import("hono/utils/http-status").ContentfulStatusCode;
674
+ };
675
+ };
676
+ } & {
677
+ "/people/:id/contact-methods": {
678
+ $post: {
679
+ input: {
680
+ param: {
681
+ id: string;
682
+ };
683
+ };
684
+ output: {
685
+ data: {
686
+ value: string;
687
+ createdAt: string;
688
+ updatedAt: string;
689
+ kind: "email" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social" | "other";
690
+ entityType: string;
691
+ entityId: string;
692
+ label: string | null;
693
+ normalizedValue: string | null;
694
+ isPrimary: boolean;
695
+ notes: string | null;
696
+ metadata: {
697
+ [x: string]: import("hono/utils/types").JSONValue;
698
+ } | null;
699
+ id: string;
700
+ } | null;
701
+ };
702
+ outputFormat: "json";
703
+ status: 201;
704
+ };
705
+ };
706
+ } & {
707
+ "/people/:id/addresses": {
708
+ $get: {
709
+ input: {
710
+ param: {
711
+ id: string;
712
+ };
713
+ };
714
+ output: {
715
+ data: {
716
+ id: string;
717
+ entityType: string;
718
+ entityId: string;
719
+ label: "primary" | "other" | "billing" | "shipping" | "mailing" | "meeting" | "service" | "legal";
720
+ fullText: string | null;
721
+ line1: string | null;
722
+ line2: string | null;
723
+ city: string | null;
724
+ region: string | null;
725
+ postalCode: string | null;
726
+ country: string | null;
727
+ latitude: number | null;
728
+ longitude: number | null;
729
+ timezone: string | null;
730
+ isPrimary: boolean;
731
+ notes: string | null;
732
+ metadata: {
733
+ [x: string]: import("hono/utils/types").JSONValue;
734
+ } | null;
735
+ createdAt: string;
736
+ updatedAt: string;
737
+ }[];
738
+ };
739
+ outputFormat: "json";
740
+ status: import("hono/utils/http-status").ContentfulStatusCode;
741
+ };
742
+ };
743
+ } & {
744
+ "/people/:id/addresses": {
745
+ $post: {
746
+ input: {
747
+ param: {
748
+ id: string;
749
+ };
750
+ };
751
+ output: {
752
+ data: {
753
+ createdAt: string;
754
+ updatedAt: string;
755
+ entityType: string;
756
+ entityId: string;
757
+ label: "primary" | "other" | "billing" | "shipping" | "mailing" | "meeting" | "service" | "legal";
758
+ isPrimary: boolean;
759
+ notes: string | null;
760
+ metadata: {
761
+ [x: string]: import("hono/utils/types").JSONValue;
762
+ } | null;
763
+ fullText: string | null;
764
+ line1: string | null;
765
+ line2: string | null;
766
+ city: string | null;
767
+ region: string | null;
768
+ postalCode: string | null;
769
+ country: string | null;
770
+ latitude: number | null;
771
+ longitude: number | null;
772
+ timezone: string | null;
773
+ id: string;
774
+ } | null;
775
+ };
776
+ outputFormat: "json";
777
+ status: 201;
778
+ };
779
+ };
780
+ } & {
781
+ "/people/:id/notes": {
782
+ $get: {
783
+ input: {
784
+ param: {
785
+ id: string;
786
+ };
787
+ };
788
+ output: {
789
+ data: {
790
+ id: string;
791
+ personId: string;
792
+ authorId: string;
793
+ content: string;
794
+ createdAt: string;
795
+ }[];
796
+ };
797
+ outputFormat: "json";
798
+ status: import("hono/utils/http-status").ContentfulStatusCode;
799
+ };
800
+ };
801
+ } & {
802
+ "/people/:id/notes": {
803
+ $post: {
804
+ input: {
805
+ param: {
806
+ id: string;
807
+ };
808
+ };
809
+ output: {
810
+ error: string;
811
+ };
812
+ outputFormat: "json";
813
+ status: 400;
814
+ } | {
815
+ input: {
816
+ param: {
817
+ id: string;
818
+ };
819
+ };
820
+ output: {
821
+ error: string;
822
+ };
823
+ outputFormat: "json";
824
+ status: 404;
825
+ } | {
826
+ input: {
827
+ param: {
828
+ id: string;
829
+ };
830
+ };
831
+ output: {
832
+ data: {
833
+ createdAt: string;
834
+ id: string;
835
+ personId: string;
836
+ authorId: string;
837
+ content: string;
838
+ };
839
+ };
840
+ outputFormat: "json";
841
+ status: 201;
842
+ };
843
+ };
844
+ } & {
845
+ "/person-notes/:id": {
846
+ $patch: {
847
+ input: {
848
+ param: {
849
+ id: string;
850
+ };
851
+ };
852
+ output: {
853
+ error: string;
854
+ };
855
+ outputFormat: "json";
856
+ status: 404;
857
+ } | {
858
+ input: {
859
+ param: {
860
+ id: string;
861
+ };
862
+ };
863
+ output: {
864
+ data: {
865
+ id: string;
866
+ personId: string;
867
+ authorId: string;
868
+ content: string;
869
+ createdAt: string;
870
+ };
871
+ };
872
+ outputFormat: "json";
873
+ status: import("hono/utils/http-status").ContentfulStatusCode;
874
+ };
875
+ };
876
+ } & {
877
+ "/person-notes/:id": {
878
+ $delete: {
879
+ input: {
880
+ param: {
881
+ id: string;
882
+ };
883
+ };
884
+ output: {
885
+ error: string;
886
+ };
887
+ outputFormat: "json";
888
+ status: 404;
889
+ } | {
890
+ input: {
891
+ param: {
892
+ id: string;
893
+ };
894
+ };
895
+ output: {
896
+ success: true;
897
+ };
898
+ outputFormat: "json";
899
+ status: import("hono/utils/http-status").ContentfulStatusCode;
900
+ };
901
+ };
902
+ } & {
903
+ "/people/:id/communications": {
904
+ $get: {
905
+ input: {
906
+ param: {
907
+ id: string;
908
+ };
909
+ };
910
+ output: {
911
+ data: {
912
+ id: string;
913
+ personId: string;
914
+ organizationId: string | null;
915
+ channel: "email" | "phone" | "whatsapp" | "sms" | "other" | "meeting";
916
+ direction: "inbound" | "outbound";
917
+ subject: string | null;
918
+ content: string | null;
919
+ sentAt: string | null;
920
+ createdAt: string;
921
+ }[];
922
+ };
923
+ outputFormat: "json";
924
+ status: import("hono/utils/http-status").ContentfulStatusCode;
925
+ };
926
+ };
927
+ } & {
928
+ "/people/:id/communications": {
929
+ $post: {
930
+ input: {
931
+ param: {
932
+ id: string;
933
+ };
934
+ };
935
+ output: {
936
+ error: string;
937
+ };
938
+ outputFormat: "json";
939
+ status: 404;
940
+ } | {
941
+ input: {
942
+ param: {
943
+ id: string;
944
+ };
945
+ };
946
+ output: {
947
+ data: {
948
+ createdAt: string;
949
+ id: string;
950
+ organizationId: string | null;
951
+ personId: string;
952
+ subject: string | null;
953
+ content: string | null;
954
+ channel: "email" | "phone" | "whatsapp" | "sms" | "other" | "meeting";
955
+ direction: "inbound" | "outbound";
956
+ sentAt: string | null;
957
+ };
958
+ };
959
+ outputFormat: "json";
960
+ status: 201;
961
+ };
962
+ };
963
+ } & {
964
+ "/segments": {
965
+ $get: {
966
+ input: {};
967
+ output: {
968
+ data: {
969
+ id: string;
970
+ name: string;
971
+ description: string | null;
972
+ conditions: {
973
+ [x: string]: import("hono/utils/types").JSONValue;
974
+ } | null;
975
+ createdAt: string;
976
+ updatedAt: string;
977
+ }[];
978
+ };
979
+ outputFormat: "json";
980
+ status: import("hono/utils/http-status").ContentfulStatusCode;
981
+ };
982
+ };
983
+ } & {
984
+ "/segments": {
985
+ $post: {
986
+ input: {};
987
+ output: {
988
+ data: {
989
+ name: string;
990
+ createdAt: string;
991
+ updatedAt: string;
992
+ description: string | null;
993
+ id: string;
994
+ conditions: {
995
+ [x: string]: import("hono/utils/types").JSONValue;
996
+ } | null;
997
+ } | undefined;
998
+ };
999
+ outputFormat: "json";
1000
+ status: 201;
1001
+ };
1002
+ };
1003
+ } & {
1004
+ "/segments/:segmentId": {
1005
+ $delete: {
1006
+ input: {
1007
+ param: {
1008
+ segmentId: string;
1009
+ };
1010
+ };
1011
+ output: {
1012
+ error: string;
1013
+ };
1014
+ outputFormat: "json";
1015
+ status: 404;
1016
+ } | {
1017
+ input: {
1018
+ param: {
1019
+ segmentId: string;
1020
+ };
1021
+ };
1022
+ output: {
1023
+ success: true;
1024
+ };
1025
+ outputFormat: "json";
1026
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1027
+ };
1028
+ };
1029
+ } & {
1030
+ "/people/export": {
1031
+ $post: {
1032
+ input: {};
1033
+ output: {};
1034
+ outputFormat: string;
1035
+ status: import("hono/utils/http-status").StatusCode;
1036
+ };
1037
+ };
1038
+ } & {
1039
+ "/people/import": {
1040
+ $post: {
1041
+ input: {};
1042
+ output: {
1043
+ error: "CSV must have a header row and at least one data row" | undefined;
1044
+ };
1045
+ outputFormat: "json";
1046
+ status: 400;
1047
+ } | {
1048
+ input: {};
1049
+ output: {
1050
+ imported: number;
1051
+ errors: {
1052
+ row: number;
1053
+ error: string;
1054
+ }[];
1055
+ };
1056
+ outputFormat: "json";
1057
+ status: 200;
1058
+ };
1059
+ };
1060
+ } & {
1061
+ "/contact-methods/:id": {
1062
+ $patch: {
1063
+ input: {
1064
+ param: {
1065
+ id: string;
1066
+ };
1067
+ };
1068
+ output: {
1069
+ error: string;
1070
+ };
1071
+ outputFormat: "json";
1072
+ status: 404;
1073
+ } | {
1074
+ input: {
1075
+ param: {
1076
+ id: string;
1077
+ };
1078
+ };
1079
+ output: {
1080
+ data: {
1081
+ id: string;
1082
+ entityType: string;
1083
+ entityId: string;
1084
+ kind: "email" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social" | "other";
1085
+ label: string | null;
1086
+ value: string;
1087
+ normalizedValue: string | null;
1088
+ isPrimary: boolean;
1089
+ notes: string | null;
1090
+ metadata: {
1091
+ [x: string]: import("hono/utils/types").JSONValue;
1092
+ } | null;
1093
+ createdAt: string;
1094
+ updatedAt: string;
1095
+ };
1096
+ };
1097
+ outputFormat: "json";
1098
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1099
+ };
1100
+ };
1101
+ } & {
1102
+ "/contact-methods/:id": {
1103
+ $delete: {
1104
+ input: {
1105
+ param: {
1106
+ id: string;
1107
+ };
1108
+ };
1109
+ output: {
1110
+ error: string;
1111
+ };
1112
+ outputFormat: "json";
1113
+ status: 404;
1114
+ } | {
1115
+ input: {
1116
+ param: {
1117
+ id: string;
1118
+ };
1119
+ };
1120
+ output: {
1121
+ success: true;
1122
+ };
1123
+ outputFormat: "json";
1124
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1125
+ };
1126
+ };
1127
+ } & {
1128
+ "/addresses/:id": {
1129
+ $patch: {
1130
+ input: {
1131
+ param: {
1132
+ id: string;
1133
+ };
1134
+ };
1135
+ output: {
1136
+ error: string;
1137
+ };
1138
+ outputFormat: "json";
1139
+ status: 404;
1140
+ } | {
1141
+ input: {
1142
+ param: {
1143
+ id: string;
1144
+ };
1145
+ };
1146
+ output: {
1147
+ data: {
1148
+ id: string;
1149
+ entityType: string;
1150
+ entityId: string;
1151
+ label: "primary" | "other" | "billing" | "shipping" | "mailing" | "meeting" | "service" | "legal";
1152
+ fullText: string | null;
1153
+ line1: string | null;
1154
+ line2: string | null;
1155
+ city: string | null;
1156
+ region: string | null;
1157
+ postalCode: string | null;
1158
+ country: string | null;
1159
+ latitude: number | null;
1160
+ longitude: number | null;
1161
+ timezone: string | null;
1162
+ isPrimary: boolean;
1163
+ notes: string | null;
1164
+ metadata: {
1165
+ [x: string]: import("hono/utils/types").JSONValue;
1166
+ } | null;
1167
+ createdAt: string;
1168
+ updatedAt: string;
1169
+ };
1170
+ };
1171
+ outputFormat: "json";
1172
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1173
+ };
1174
+ };
1175
+ } & {
1176
+ "/addresses/:id": {
1177
+ $delete: {
1178
+ input: {
1179
+ param: {
1180
+ id: string;
1181
+ };
1182
+ };
1183
+ output: {
1184
+ error: string;
1185
+ };
1186
+ outputFormat: "json";
1187
+ status: 404;
1188
+ } | {
1189
+ input: {
1190
+ param: {
1191
+ id: string;
1192
+ };
1193
+ };
1194
+ output: {
1195
+ success: true;
1196
+ };
1197
+ outputFormat: "json";
1198
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1199
+ };
1200
+ };
1201
+ }, "/", "/addresses/:id">;
1202
+ export {};
1203
+ //# sourceMappingURL=accounts.d.ts.map