@voyant-travel/relationships 0.119.2 → 0.119.4
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/routes/accounts.d.ts +64 -64
- package/dist/routes/activities.d.ts +11 -11
- package/dist/routes/custom-fields.d.ts +15 -15
- package/dist/routes/customer-signals.d.ts +17 -17
- package/dist/routes/index.d.ts +140 -140
- package/dist/routes/person-documents.d.ts +21 -21
- package/dist/routes/person-relationships.d.ts +12 -12
- package/dist/schema-accounts.d.ts +5 -5
- package/dist/service/accounts-merge.d.ts +2 -2
- package/dist/service/accounts-organizations.d.ts +5 -5
- package/dist/service/accounts-people.d.ts +17 -17
- package/dist/service/accounts-shared.d.ts +1 -1
- package/dist/service/accounts.d.ts +26 -26
- package/dist/service/activities.d.ts +3 -3
- package/dist/service/customer-signals.d.ts +1 -1
- package/dist/service/index.d.ts +44 -44
- package/dist/service/person-documents.d.ts +1 -1
- package/dist/service/person-relationships.d.ts +13 -13
- package/dist/validation.d.ts +2 -2
- package/dist/validation.d.ts.map +1 -1
- package/dist/validation.js +1 -1
- package/package.json +7 -7
|
@@ -17,7 +17,7 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
17
17
|
website: string | null;
|
|
18
18
|
taxId: string | null;
|
|
19
19
|
industry: string | null;
|
|
20
|
-
relation: "
|
|
20
|
+
relation: "partner" | "supplier" | "other" | "client" | null;
|
|
21
21
|
ownerId: string | null;
|
|
22
22
|
defaultCurrency: string | null;
|
|
23
23
|
preferredLanguage: string | null;
|
|
@@ -45,24 +45,24 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
45
45
|
input: {};
|
|
46
46
|
output: {
|
|
47
47
|
data: {
|
|
48
|
-
id: string;
|
|
49
48
|
name: string;
|
|
49
|
+
id: string;
|
|
50
50
|
status: "active" | "inactive" | "archived";
|
|
51
51
|
createdAt: string;
|
|
52
|
-
|
|
53
|
-
relation: "
|
|
54
|
-
|
|
55
|
-
industry: string | null;
|
|
52
|
+
source: string | null;
|
|
53
|
+
relation: "partner" | "supplier" | "other" | "client" | null;
|
|
54
|
+
tags: string[];
|
|
56
55
|
updatedAt: string;
|
|
57
|
-
|
|
56
|
+
notes: string | null;
|
|
58
57
|
website: string | null;
|
|
58
|
+
legalName: string | null;
|
|
59
|
+
taxId: string | null;
|
|
60
|
+
industry: string | null;
|
|
61
|
+
ownerId: string | null;
|
|
59
62
|
defaultCurrency: string | null;
|
|
60
63
|
preferredLanguage: string | null;
|
|
61
64
|
paymentTerms: number | null;
|
|
62
|
-
source: string | null;
|
|
63
65
|
sourceRef: string | null;
|
|
64
|
-
tags: string[];
|
|
65
|
-
notes: string | null;
|
|
66
66
|
archivedAt: string | null;
|
|
67
67
|
} | undefined;
|
|
68
68
|
};
|
|
@@ -97,7 +97,7 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
97
97
|
website: string | null;
|
|
98
98
|
taxId: string | null;
|
|
99
99
|
industry: string | null;
|
|
100
|
-
relation: "
|
|
100
|
+
relation: "partner" | "supplier" | "other" | "client" | null;
|
|
101
101
|
ownerId: string | null;
|
|
102
102
|
defaultCurrency: string | null;
|
|
103
103
|
preferredLanguage: string | null;
|
|
@@ -143,7 +143,7 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
143
143
|
website: string | null;
|
|
144
144
|
taxId: string | null;
|
|
145
145
|
industry: string | null;
|
|
146
|
-
relation: "
|
|
146
|
+
relation: "partner" | "supplier" | "other" | "client" | null;
|
|
147
147
|
ownerId: string | null;
|
|
148
148
|
defaultCurrency: string | null;
|
|
149
149
|
preferredLanguage: string | null;
|
|
@@ -165,6 +165,17 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
165
165
|
} & {
|
|
166
166
|
"/organizations/:id/merge": {
|
|
167
167
|
$post: {
|
|
168
|
+
input: {
|
|
169
|
+
param: {
|
|
170
|
+
id: string;
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
output: {
|
|
174
|
+
error: string;
|
|
175
|
+
};
|
|
176
|
+
outputFormat: "json";
|
|
177
|
+
status: 404 | 400;
|
|
178
|
+
} | {
|
|
168
179
|
input: {
|
|
169
180
|
param: {
|
|
170
181
|
id: string;
|
|
@@ -178,7 +189,7 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
178
189
|
website: string | null;
|
|
179
190
|
taxId: string | null;
|
|
180
191
|
industry: string | null;
|
|
181
|
-
relation: "
|
|
192
|
+
relation: "partner" | "supplier" | "other" | "client" | null;
|
|
182
193
|
ownerId: string | null;
|
|
183
194
|
defaultCurrency: string | null;
|
|
184
195
|
preferredLanguage: string | null;
|
|
@@ -195,17 +206,6 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
195
206
|
};
|
|
196
207
|
outputFormat: "json";
|
|
197
208
|
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
209
|
};
|
|
210
210
|
};
|
|
211
211
|
} & {
|
|
@@ -247,7 +247,7 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
247
247
|
id: string;
|
|
248
248
|
entityType: string;
|
|
249
249
|
entityId: string;
|
|
250
|
-
kind: "
|
|
250
|
+
kind: "email" | "other" | "phone" | "website" | "mobile" | "whatsapp" | "sms" | "fax" | "social";
|
|
251
251
|
label: string | null;
|
|
252
252
|
value: string;
|
|
253
253
|
normalizedValue: string | null;
|
|
@@ -277,17 +277,17 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
277
277
|
id: string;
|
|
278
278
|
createdAt: string;
|
|
279
279
|
value: string;
|
|
280
|
+
metadata: {
|
|
281
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
282
|
+
} | null;
|
|
280
283
|
updatedAt: string;
|
|
281
284
|
notes: string | null;
|
|
282
|
-
kind: "
|
|
285
|
+
kind: "email" | "other" | "phone" | "website" | "mobile" | "whatsapp" | "sms" | "fax" | "social";
|
|
283
286
|
entityType: string;
|
|
284
287
|
entityId: string;
|
|
285
288
|
label: string | null;
|
|
286
289
|
normalizedValue: string | null;
|
|
287
290
|
isPrimary: boolean;
|
|
288
|
-
metadata: {
|
|
289
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
290
|
-
} | null;
|
|
291
291
|
} | null;
|
|
292
292
|
};
|
|
293
293
|
outputFormat: "json";
|
|
@@ -307,7 +307,7 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
307
307
|
id: string;
|
|
308
308
|
entityType: string;
|
|
309
309
|
entityId: string;
|
|
310
|
-
label: "primary" | "
|
|
310
|
+
label: "primary" | "service" | "other" | "legal" | "billing" | "shipping" | "mailing" | "meeting";
|
|
311
311
|
fullText: string | null;
|
|
312
312
|
line1: string | null;
|
|
313
313
|
line2: string | null;
|
|
@@ -343,25 +343,25 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
343
343
|
data: {
|
|
344
344
|
id: string;
|
|
345
345
|
createdAt: string;
|
|
346
|
+
metadata: {
|
|
347
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
348
|
+
} | null;
|
|
346
349
|
updatedAt: string;
|
|
347
350
|
notes: string | null;
|
|
351
|
+
timezone: string | null;
|
|
352
|
+
region: string | null;
|
|
348
353
|
entityType: string;
|
|
349
354
|
entityId: string;
|
|
350
|
-
label: "primary" | "
|
|
355
|
+
label: "primary" | "service" | "other" | "legal" | "billing" | "shipping" | "mailing" | "meeting";
|
|
351
356
|
isPrimary: boolean;
|
|
352
|
-
metadata: {
|
|
353
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
354
|
-
} | null;
|
|
355
357
|
fullText: string | null;
|
|
356
358
|
line1: string | null;
|
|
357
359
|
line2: string | null;
|
|
358
360
|
city: string | null;
|
|
359
|
-
region: string | null;
|
|
360
361
|
postalCode: string | null;
|
|
361
362
|
country: string | null;
|
|
362
363
|
latitude: number | null;
|
|
363
364
|
longitude: number | null;
|
|
364
|
-
timezone: string | null;
|
|
365
365
|
} | null;
|
|
366
366
|
};
|
|
367
367
|
outputFormat: "json";
|
|
@@ -413,8 +413,8 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
413
413
|
id: string;
|
|
414
414
|
organizationId: string;
|
|
415
415
|
createdAt: string;
|
|
416
|
-
content: string;
|
|
417
416
|
authorId: string;
|
|
417
|
+
content: string;
|
|
418
418
|
};
|
|
419
419
|
};
|
|
420
420
|
outputFormat: "json";
|
|
@@ -492,7 +492,7 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
492
492
|
lastName: string;
|
|
493
493
|
gender: string | null;
|
|
494
494
|
jobTitle: string | null;
|
|
495
|
-
relation: "
|
|
495
|
+
relation: "partner" | "supplier" | "other" | "client" | null;
|
|
496
496
|
preferredLanguage: string | null;
|
|
497
497
|
preferredCurrency: string | null;
|
|
498
498
|
ownerId: string | null;
|
|
@@ -542,7 +542,7 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
542
542
|
lastName: string;
|
|
543
543
|
gender: string | null;
|
|
544
544
|
jobTitle: string | null;
|
|
545
|
-
relation: "
|
|
545
|
+
relation: "partner" | "supplier" | "other" | "client" | null;
|
|
546
546
|
preferredLanguage: string | null;
|
|
547
547
|
preferredCurrency: string | null;
|
|
548
548
|
ownerId: string | null;
|
|
@@ -604,7 +604,7 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
604
604
|
lastName: string;
|
|
605
605
|
gender: string | null;
|
|
606
606
|
jobTitle: string | null;
|
|
607
|
-
relation: "
|
|
607
|
+
relation: "partner" | "supplier" | "other" | "client" | null;
|
|
608
608
|
preferredLanguage: string | null;
|
|
609
609
|
preferredCurrency: string | null;
|
|
610
610
|
ownerId: string | null;
|
|
@@ -666,7 +666,7 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
666
666
|
lastName: string;
|
|
667
667
|
gender: string | null;
|
|
668
668
|
jobTitle: string | null;
|
|
669
|
-
relation: "
|
|
669
|
+
relation: "partner" | "supplier" | "other" | "client" | null;
|
|
670
670
|
preferredLanguage: string | null;
|
|
671
671
|
preferredCurrency: string | null;
|
|
672
672
|
ownerId: string | null;
|
|
@@ -712,7 +712,7 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
712
712
|
error: string;
|
|
713
713
|
};
|
|
714
714
|
outputFormat: "json";
|
|
715
|
-
status:
|
|
715
|
+
status: 404 | 400;
|
|
716
716
|
} | {
|
|
717
717
|
input: {
|
|
718
718
|
param: {
|
|
@@ -728,7 +728,7 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
728
728
|
lastName: string;
|
|
729
729
|
gender: string | null;
|
|
730
730
|
jobTitle: string | null;
|
|
731
|
-
relation: "
|
|
731
|
+
relation: "partner" | "supplier" | "other" | "client" | null;
|
|
732
732
|
preferredLanguage: string | null;
|
|
733
733
|
preferredCurrency: string | null;
|
|
734
734
|
ownerId: string | null;
|
|
@@ -798,7 +798,7 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
798
798
|
id: string;
|
|
799
799
|
entityType: string;
|
|
800
800
|
entityId: string;
|
|
801
|
-
kind: "
|
|
801
|
+
kind: "email" | "other" | "phone" | "website" | "mobile" | "whatsapp" | "sms" | "fax" | "social";
|
|
802
802
|
label: string | null;
|
|
803
803
|
value: string;
|
|
804
804
|
normalizedValue: string | null;
|
|
@@ -828,17 +828,17 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
828
828
|
id: string;
|
|
829
829
|
createdAt: string;
|
|
830
830
|
value: string;
|
|
831
|
+
metadata: {
|
|
832
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
833
|
+
} | null;
|
|
831
834
|
updatedAt: string;
|
|
832
835
|
notes: string | null;
|
|
833
|
-
kind: "
|
|
836
|
+
kind: "email" | "other" | "phone" | "website" | "mobile" | "whatsapp" | "sms" | "fax" | "social";
|
|
834
837
|
entityType: string;
|
|
835
838
|
entityId: string;
|
|
836
839
|
label: string | null;
|
|
837
840
|
normalizedValue: string | null;
|
|
838
841
|
isPrimary: boolean;
|
|
839
|
-
metadata: {
|
|
840
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
841
|
-
} | null;
|
|
842
842
|
} | null;
|
|
843
843
|
};
|
|
844
844
|
outputFormat: "json";
|
|
@@ -858,7 +858,7 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
858
858
|
id: string;
|
|
859
859
|
entityType: string;
|
|
860
860
|
entityId: string;
|
|
861
|
-
label: "primary" | "
|
|
861
|
+
label: "primary" | "service" | "other" | "legal" | "billing" | "shipping" | "mailing" | "meeting";
|
|
862
862
|
fullText: string | null;
|
|
863
863
|
line1: string | null;
|
|
864
864
|
line2: string | null;
|
|
@@ -894,25 +894,25 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
894
894
|
data: {
|
|
895
895
|
id: string;
|
|
896
896
|
createdAt: string;
|
|
897
|
+
metadata: {
|
|
898
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
899
|
+
} | null;
|
|
897
900
|
updatedAt: string;
|
|
898
901
|
notes: string | null;
|
|
902
|
+
timezone: string | null;
|
|
903
|
+
region: string | null;
|
|
899
904
|
entityType: string;
|
|
900
905
|
entityId: string;
|
|
901
|
-
label: "primary" | "
|
|
906
|
+
label: "primary" | "service" | "other" | "legal" | "billing" | "shipping" | "mailing" | "meeting";
|
|
902
907
|
isPrimary: boolean;
|
|
903
|
-
metadata: {
|
|
904
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
905
|
-
} | null;
|
|
906
908
|
fullText: string | null;
|
|
907
909
|
line1: string | null;
|
|
908
910
|
line2: string | null;
|
|
909
911
|
city: string | null;
|
|
910
|
-
region: string | null;
|
|
911
912
|
postalCode: string | null;
|
|
912
913
|
country: string | null;
|
|
913
914
|
latitude: number | null;
|
|
914
915
|
longitude: number | null;
|
|
915
|
-
timezone: string | null;
|
|
916
916
|
} | null;
|
|
917
917
|
};
|
|
918
918
|
outputFormat: "json";
|
|
@@ -963,9 +963,9 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
963
963
|
data: {
|
|
964
964
|
id: string;
|
|
965
965
|
createdAt: string;
|
|
966
|
-
content: string;
|
|
967
966
|
personId: string;
|
|
968
967
|
authorId: string;
|
|
968
|
+
content: string;
|
|
969
969
|
};
|
|
970
970
|
};
|
|
971
971
|
outputFormat: "json";
|
|
@@ -1080,13 +1080,13 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1080
1080
|
id: string;
|
|
1081
1081
|
brand: string;
|
|
1082
1082
|
createdAt: string;
|
|
1083
|
+
personId: string;
|
|
1083
1084
|
last4: string | null;
|
|
1084
1085
|
holderName: string | null;
|
|
1085
1086
|
expMonth: number | null;
|
|
1086
1087
|
expYear: number | null;
|
|
1087
1088
|
processorToken: string;
|
|
1088
1089
|
isDefault: boolean;
|
|
1089
|
-
personId: string;
|
|
1090
1090
|
};
|
|
1091
1091
|
};
|
|
1092
1092
|
outputFormat: "json";
|
|
@@ -1169,7 +1169,7 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1169
1169
|
id: string;
|
|
1170
1170
|
personId: string;
|
|
1171
1171
|
organizationId: string | null;
|
|
1172
|
-
channel: "
|
|
1172
|
+
channel: "email" | "other" | "phone" | "whatsapp" | "sms" | "meeting";
|
|
1173
1173
|
direction: "inbound" | "outbound";
|
|
1174
1174
|
subject: string | null;
|
|
1175
1175
|
content: string | null;
|
|
@@ -1205,12 +1205,12 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1205
1205
|
id: string;
|
|
1206
1206
|
organizationId: string | null;
|
|
1207
1207
|
createdAt: string;
|
|
1208
|
+
personId: string;
|
|
1208
1209
|
content: string | null;
|
|
1209
|
-
channel: "
|
|
1210
|
+
channel: "email" | "other" | "phone" | "whatsapp" | "sms" | "meeting";
|
|
1210
1211
|
direction: "inbound" | "outbound";
|
|
1211
1212
|
subject: string | null;
|
|
1212
1213
|
sentAt: string | null;
|
|
1213
|
-
personId: string;
|
|
1214
1214
|
};
|
|
1215
1215
|
};
|
|
1216
1216
|
outputFormat: "json";
|
|
@@ -1243,11 +1243,11 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1243
1243
|
input: {};
|
|
1244
1244
|
output: {
|
|
1245
1245
|
data: {
|
|
1246
|
-
id: string;
|
|
1247
1246
|
name: string;
|
|
1247
|
+
id: string;
|
|
1248
|
+
description: string | null;
|
|
1248
1249
|
createdAt: string;
|
|
1249
1250
|
updatedAt: string;
|
|
1250
|
-
description: string | null;
|
|
1251
1251
|
conditions: {
|
|
1252
1252
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
1253
1253
|
} | null;
|
|
@@ -1338,7 +1338,7 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1338
1338
|
id: string;
|
|
1339
1339
|
entityType: string;
|
|
1340
1340
|
entityId: string;
|
|
1341
|
-
kind: "
|
|
1341
|
+
kind: "email" | "other" | "phone" | "website" | "mobile" | "whatsapp" | "sms" | "fax" | "social";
|
|
1342
1342
|
label: string | null;
|
|
1343
1343
|
value: string;
|
|
1344
1344
|
normalizedValue: string | null;
|
|
@@ -1405,7 +1405,7 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
1405
1405
|
id: string;
|
|
1406
1406
|
entityType: string;
|
|
1407
1407
|
entityId: string;
|
|
1408
|
-
label: "primary" | "
|
|
1408
|
+
label: "primary" | "service" | "other" | "legal" | "billing" | "shipping" | "mailing" | "meeting";
|
|
1409
1409
|
fullText: string | null;
|
|
1410
1410
|
line1: string | null;
|
|
1411
1411
|
line2: string | null;
|
|
@@ -15,7 +15,7 @@ export declare const activityRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
15
15
|
subject: string;
|
|
16
16
|
type: "email" | "meeting" | "call" | "task" | "follow_up" | "note";
|
|
17
17
|
ownerId: string | null;
|
|
18
|
-
status: "cancelled" | "
|
|
18
|
+
status: "cancelled" | "done" | "planned";
|
|
19
19
|
dueAt: string | null;
|
|
20
20
|
completedAt: string | null;
|
|
21
21
|
location: string | null;
|
|
@@ -37,16 +37,16 @@ export declare const activityRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
37
37
|
input: {};
|
|
38
38
|
output: {
|
|
39
39
|
data: {
|
|
40
|
+
type: "email" | "meeting" | "call" | "task" | "follow_up" | "note";
|
|
40
41
|
id: string;
|
|
41
|
-
|
|
42
|
+
description: string | null;
|
|
43
|
+
status: "cancelled" | "done" | "planned";
|
|
42
44
|
createdAt: string;
|
|
43
|
-
type: "email" | "meeting" | "call" | "task" | "follow_up" | "note";
|
|
44
|
-
ownerId: string | null;
|
|
45
45
|
updatedAt: string;
|
|
46
|
+
completedAt: string | null;
|
|
47
|
+
ownerId: string | null;
|
|
46
48
|
subject: string;
|
|
47
|
-
description: string | null;
|
|
48
49
|
dueAt: string | null;
|
|
49
|
-
completedAt: string | null;
|
|
50
50
|
location: string | null;
|
|
51
51
|
} | undefined;
|
|
52
52
|
};
|
|
@@ -79,7 +79,7 @@ export declare const activityRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
79
79
|
subject: string;
|
|
80
80
|
type: "email" | "meeting" | "call" | "task" | "follow_up" | "note";
|
|
81
81
|
ownerId: string | null;
|
|
82
|
-
status: "cancelled" | "
|
|
82
|
+
status: "cancelled" | "done" | "planned";
|
|
83
83
|
dueAt: string | null;
|
|
84
84
|
completedAt: string | null;
|
|
85
85
|
location: string | null;
|
|
@@ -117,7 +117,7 @@ export declare const activityRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
117
117
|
subject: string;
|
|
118
118
|
type: "email" | "meeting" | "call" | "task" | "follow_up" | "note";
|
|
119
119
|
ownerId: string | null;
|
|
120
|
-
status: "cancelled" | "
|
|
120
|
+
status: "cancelled" | "done" | "planned";
|
|
121
121
|
dueAt: string | null;
|
|
122
122
|
completedAt: string | null;
|
|
123
123
|
location: string | null;
|
|
@@ -168,7 +168,7 @@ export declare const activityRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
168
168
|
data: {
|
|
169
169
|
id: string;
|
|
170
170
|
activityId: string;
|
|
171
|
-
entityType: "
|
|
171
|
+
entityType: "organization" | "person" | "quote" | "activity";
|
|
172
172
|
entityId: string;
|
|
173
173
|
role: "primary" | "related";
|
|
174
174
|
createdAt: string;
|
|
@@ -190,9 +190,9 @@ export declare const activityRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
190
190
|
data: {
|
|
191
191
|
id: string;
|
|
192
192
|
createdAt: string;
|
|
193
|
-
entityType: "person" | "organization" | "quote" | "activity";
|
|
194
|
-
entityId: string;
|
|
195
193
|
role: "primary" | "related";
|
|
194
|
+
entityType: "organization" | "person" | "quote" | "activity";
|
|
195
|
+
entityId: string;
|
|
196
196
|
activityId: string;
|
|
197
197
|
} | undefined;
|
|
198
198
|
};
|
|
@@ -12,10 +12,10 @@ export declare const customFieldRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
12
12
|
output: {
|
|
13
13
|
data: {
|
|
14
14
|
id: string;
|
|
15
|
-
entityType: "
|
|
15
|
+
entityType: "organization" | "person" | "quote" | "activity";
|
|
16
16
|
key: string;
|
|
17
17
|
label: string;
|
|
18
|
-
fieldType: "boolean" | "json" | "date" | "text" | "
|
|
18
|
+
fieldType: "boolean" | "json" | "date" | "text" | "enum" | "set" | "phone" | "varchar" | "double" | "monetary" | "address";
|
|
19
19
|
isRequired: boolean;
|
|
20
20
|
isSearchable: boolean;
|
|
21
21
|
options: {
|
|
@@ -39,19 +39,19 @@ export declare const customFieldRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
39
39
|
input: {};
|
|
40
40
|
output: {
|
|
41
41
|
data: {
|
|
42
|
+
options: {
|
|
43
|
+
label: string;
|
|
44
|
+
value: string;
|
|
45
|
+
}[] | null;
|
|
42
46
|
id: string;
|
|
43
47
|
createdAt: string;
|
|
48
|
+
key: string;
|
|
44
49
|
updatedAt: string;
|
|
45
|
-
entityType: "
|
|
50
|
+
entityType: "organization" | "person" | "quote" | "activity";
|
|
46
51
|
label: string;
|
|
47
|
-
fieldType: "boolean" | "json" | "date" | "text" | "
|
|
48
|
-
key: string;
|
|
52
|
+
fieldType: "boolean" | "json" | "date" | "text" | "enum" | "set" | "phone" | "varchar" | "double" | "monetary" | "address";
|
|
49
53
|
isRequired: boolean;
|
|
50
54
|
isSearchable: boolean;
|
|
51
|
-
options: {
|
|
52
|
-
label: string;
|
|
53
|
-
value: string;
|
|
54
|
-
}[] | null;
|
|
55
55
|
} | undefined;
|
|
56
56
|
};
|
|
57
57
|
outputFormat: "json";
|
|
@@ -80,10 +80,10 @@ export declare const customFieldRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
80
80
|
output: {
|
|
81
81
|
data: {
|
|
82
82
|
id: string;
|
|
83
|
-
entityType: "
|
|
83
|
+
entityType: "organization" | "person" | "quote" | "activity";
|
|
84
84
|
key: string;
|
|
85
85
|
label: string;
|
|
86
|
-
fieldType: "boolean" | "json" | "date" | "text" | "
|
|
86
|
+
fieldType: "boolean" | "json" | "date" | "text" | "enum" | "set" | "phone" | "varchar" | "double" | "monetary" | "address";
|
|
87
87
|
isRequired: boolean;
|
|
88
88
|
isSearchable: boolean;
|
|
89
89
|
options: {
|
|
@@ -120,10 +120,10 @@ export declare const customFieldRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
120
120
|
output: {
|
|
121
121
|
data: {
|
|
122
122
|
id: string;
|
|
123
|
-
entityType: "
|
|
123
|
+
entityType: "organization" | "person" | "quote" | "activity";
|
|
124
124
|
key: string;
|
|
125
125
|
label: string;
|
|
126
|
-
fieldType: "boolean" | "json" | "date" | "text" | "
|
|
126
|
+
fieldType: "boolean" | "json" | "date" | "text" | "enum" | "set" | "phone" | "varchar" | "double" | "monetary" | "address";
|
|
127
127
|
isRequired: boolean;
|
|
128
128
|
isSearchable: boolean;
|
|
129
129
|
options: {
|
|
@@ -172,7 +172,7 @@ export declare const customFieldRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
172
172
|
data: {
|
|
173
173
|
id: string;
|
|
174
174
|
definitionId: string;
|
|
175
|
-
entityType: "
|
|
175
|
+
entityType: "organization" | "person" | "quote" | "activity";
|
|
176
176
|
entityId: string;
|
|
177
177
|
textValue: string | null;
|
|
178
178
|
numberValue: number | null;
|
|
@@ -207,7 +207,7 @@ export declare const customFieldRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
207
207
|
id: string;
|
|
208
208
|
createdAt: string;
|
|
209
209
|
updatedAt: string;
|
|
210
|
-
entityType: "
|
|
210
|
+
entityType: "organization" | "person" | "quote" | "activity";
|
|
211
211
|
entityId: string;
|
|
212
212
|
definitionId: string;
|
|
213
213
|
textValue: string | null;
|
|
@@ -15,8 +15,8 @@ export declare const customerSignalRoutes: import("hono/hono-base").HonoBase<Env
|
|
|
15
15
|
personId: string;
|
|
16
16
|
productId: string | null;
|
|
17
17
|
optionUnitId: string | null;
|
|
18
|
-
kind: "
|
|
19
|
-
source: "
|
|
18
|
+
kind: "notify" | "wishlist" | "inquiry" | "request_offer" | "referral";
|
|
19
|
+
source: "admin" | "form" | "phone" | "abandoned_cart" | "website" | "booking";
|
|
20
20
|
status: "expired" | "new" | "contacted" | "qualified" | "converted" | "lost";
|
|
21
21
|
priority: string;
|
|
22
22
|
notes: string | null;
|
|
@@ -55,19 +55,19 @@ export declare const customerSignalRoutes: import("hono/hono-base").HonoBase<Env
|
|
|
55
55
|
id: string;
|
|
56
56
|
status: "expired" | "new" | "contacted" | "qualified" | "converted" | "lost";
|
|
57
57
|
createdAt: string;
|
|
58
|
-
|
|
59
|
-
source: "website" | "phone" | "form" | "admin" | "abandoned_cart" | "booking";
|
|
60
|
-
tags: string[];
|
|
61
|
-
notes: string | null;
|
|
62
|
-
kind: "wishlist" | "notify" | "inquiry" | "request_offer" | "referral";
|
|
58
|
+
source: "admin" | "form" | "phone" | "abandoned_cart" | "website" | "booking";
|
|
63
59
|
metadata: {
|
|
64
60
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
65
61
|
} | null;
|
|
62
|
+
tags: string[];
|
|
63
|
+
priority: string;
|
|
64
|
+
updatedAt: string;
|
|
65
|
+
notes: string | null;
|
|
66
|
+
kind: "notify" | "wishlist" | "inquiry" | "request_offer" | "referral";
|
|
66
67
|
personId: string;
|
|
67
|
-
assignedToUserId: string | null;
|
|
68
68
|
productId: string | null;
|
|
69
69
|
optionUnitId: string | null;
|
|
70
|
-
|
|
70
|
+
assignedToUserId: string | null;
|
|
71
71
|
followUpAt: string | null;
|
|
72
72
|
resolvedBookingId: string | null;
|
|
73
73
|
sourceSubmissionId: string | null;
|
|
@@ -102,8 +102,8 @@ export declare const customerSignalRoutes: import("hono/hono-base").HonoBase<Env
|
|
|
102
102
|
personId: string;
|
|
103
103
|
productId: string | null;
|
|
104
104
|
optionUnitId: string | null;
|
|
105
|
-
kind: "
|
|
106
|
-
source: "
|
|
105
|
+
kind: "notify" | "wishlist" | "inquiry" | "request_offer" | "referral";
|
|
106
|
+
source: "admin" | "form" | "phone" | "abandoned_cart" | "website" | "booking";
|
|
107
107
|
status: "expired" | "new" | "contacted" | "qualified" | "converted" | "lost";
|
|
108
108
|
priority: string;
|
|
109
109
|
notes: string | null;
|
|
@@ -148,8 +148,8 @@ export declare const customerSignalRoutes: import("hono/hono-base").HonoBase<Env
|
|
|
148
148
|
personId: string;
|
|
149
149
|
productId: string | null;
|
|
150
150
|
optionUnitId: string | null;
|
|
151
|
-
kind: "
|
|
152
|
-
source: "
|
|
151
|
+
kind: "notify" | "wishlist" | "inquiry" | "request_offer" | "referral";
|
|
152
|
+
source: "admin" | "form" | "phone" | "abandoned_cart" | "website" | "booking";
|
|
153
153
|
status: "expired" | "new" | "contacted" | "qualified" | "converted" | "lost";
|
|
154
154
|
priority: string;
|
|
155
155
|
notes: string | null;
|
|
@@ -220,8 +220,8 @@ export declare const customerSignalRoutes: import("hono/hono-base").HonoBase<Env
|
|
|
220
220
|
personId: string;
|
|
221
221
|
productId: string | null;
|
|
222
222
|
optionUnitId: string | null;
|
|
223
|
-
kind: "
|
|
224
|
-
source: "
|
|
223
|
+
kind: "notify" | "wishlist" | "inquiry" | "request_offer" | "referral";
|
|
224
|
+
source: "admin" | "form" | "phone" | "abandoned_cart" | "website" | "booking";
|
|
225
225
|
status: "expired" | "new" | "contacted" | "qualified" | "converted" | "lost";
|
|
226
226
|
priority: string;
|
|
227
227
|
notes: string | null;
|
|
@@ -255,8 +255,8 @@ export declare const customerSignalRoutes: import("hono/hono-base").HonoBase<Env
|
|
|
255
255
|
personId: string;
|
|
256
256
|
productId: string | null;
|
|
257
257
|
optionUnitId: string | null;
|
|
258
|
-
kind: "
|
|
259
|
-
source: "
|
|
258
|
+
kind: "notify" | "wishlist" | "inquiry" | "request_offer" | "referral";
|
|
259
|
+
source: "admin" | "form" | "phone" | "abandoned_cart" | "website" | "booking";
|
|
260
260
|
status: "expired" | "new" | "contacted" | "qualified" | "converted" | "lost";
|
|
261
261
|
priority: string;
|
|
262
262
|
notes: string | null;
|