@voyant-travel/relationships 0.119.2

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