@kl1/contracts 1.4.19 → 1.4.21
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/api-contracts/src/chat/index.d.ts +3 -0
- package/dist/api-contracts/src/chat/index.d.ts.map +1 -1
- package/dist/api-contracts/src/chat/validation.d.ts +3 -0
- package/dist/api-contracts/src/chat/validation.d.ts.map +1 -1
- package/dist/api-contracts/src/contract.d.ts +1192 -1099
- package/dist/api-contracts/src/contract.d.ts.map +1 -1
- package/dist/api-contracts/src/public-api/index.d.ts +1196 -1101
- package/dist/api-contracts/src/public-api/index.d.ts.map +1 -1
- package/dist/api-contracts/src/public-api/schema.d.ts +1 -0
- package/dist/api-contracts/src/public-api/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/public-api/validation.d.ts +13 -0
- package/dist/api-contracts/src/public-api/validation.d.ts.map +1 -1
- package/dist/index.js +78 -29
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +78 -29
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
@@ -1,6 +1,6 @@
|
|
1
1
|
import z from 'zod';
|
2
|
-
import { ContactContractValidationSchema } from './validation';
|
3
|
-
import { ContactSchema } from './schema';
|
2
|
+
import { ContactContractValidationSchema, SendLineMessageSchema } from './validation';
|
3
|
+
import { ChannelTypeSchema, ContactSchema } from './schema';
|
4
4
|
import { GetTagsSchema } from '../tag/validation';
|
5
5
|
export type CreateContactRequest = z.infer<typeof ContactContractValidationSchema.create.request>;
|
6
6
|
export type CreateContactResponse = z.infer<typeof ContactContractValidationSchema.create.response>;
|
@@ -11,7 +11,304 @@ export type UpdateContactRequest = Partial<CreateContactRequest>;
|
|
11
11
|
export type UpdateContactResponse = CreateContactResponse;
|
12
12
|
export type Contact = z.infer<typeof ContactSchema>;
|
13
13
|
export type GetAllTagsRequest = z.infer<typeof GetTagsSchema>;
|
14
|
+
export type GetSendLineRequest = z.infer<typeof SendLineMessageSchema>;
|
15
|
+
export type PublicApiChannelType = z.infer<typeof ChannelTypeSchema>;
|
14
16
|
export declare const publicApiContract: {
|
17
|
+
sendMessage: {
|
18
|
+
body: z.ZodObject<{
|
19
|
+
channelId: z.ZodString;
|
20
|
+
message: z.ZodString;
|
21
|
+
contactId: z.ZodString;
|
22
|
+
}, "strip", z.ZodTypeAny, {
|
23
|
+
message: string;
|
24
|
+
channelId: string;
|
25
|
+
contactId: string;
|
26
|
+
}, {
|
27
|
+
message: string;
|
28
|
+
channelId: string;
|
29
|
+
contactId: string;
|
30
|
+
}>;
|
31
|
+
summary: "Send line message";
|
32
|
+
method: "POST";
|
33
|
+
responses: {
|
34
|
+
201: z.ZodObject<{
|
35
|
+
status: z.ZodString;
|
36
|
+
channel: z.ZodString;
|
37
|
+
message: z.ZodString;
|
38
|
+
requestId: z.ZodString;
|
39
|
+
}, "strip", z.ZodTypeAny, {
|
40
|
+
message: string;
|
41
|
+
channel: string;
|
42
|
+
status: string;
|
43
|
+
requestId: string;
|
44
|
+
}, {
|
45
|
+
message: string;
|
46
|
+
channel: string;
|
47
|
+
status: string;
|
48
|
+
requestId: string;
|
49
|
+
}>;
|
50
|
+
400: z.ZodObject<{
|
51
|
+
message: z.ZodString;
|
52
|
+
}, "strip", z.ZodTypeAny, {
|
53
|
+
message: string;
|
54
|
+
}, {
|
55
|
+
message: string;
|
56
|
+
}>;
|
57
|
+
409: z.ZodObject<{
|
58
|
+
message: z.ZodString;
|
59
|
+
}, "strip", z.ZodTypeAny, {
|
60
|
+
message: string;
|
61
|
+
}, {
|
62
|
+
message: string;
|
63
|
+
}>;
|
64
|
+
401: z.ZodObject<{
|
65
|
+
message: z.ZodString;
|
66
|
+
error: z.ZodAny;
|
67
|
+
}, "strip", z.ZodTypeAny, {
|
68
|
+
message: string;
|
69
|
+
error?: any;
|
70
|
+
}, {
|
71
|
+
message: string;
|
72
|
+
error?: any;
|
73
|
+
}>;
|
74
|
+
404: z.ZodObject<{
|
75
|
+
message: z.ZodString;
|
76
|
+
error: z.ZodAny;
|
77
|
+
}, "strip", z.ZodTypeAny, {
|
78
|
+
message: string;
|
79
|
+
error?: any;
|
80
|
+
}, {
|
81
|
+
message: string;
|
82
|
+
error?: any;
|
83
|
+
}>;
|
84
|
+
422: z.ZodObject<{
|
85
|
+
message: z.ZodString;
|
86
|
+
error: z.ZodAny;
|
87
|
+
}, "strip", z.ZodTypeAny, {
|
88
|
+
message: string;
|
89
|
+
error?: any;
|
90
|
+
}, {
|
91
|
+
message: string;
|
92
|
+
error?: any;
|
93
|
+
}>;
|
94
|
+
500: z.ZodObject<{
|
95
|
+
message: z.ZodString;
|
96
|
+
error: z.ZodAny;
|
97
|
+
}, "strip", z.ZodTypeAny, {
|
98
|
+
message: string;
|
99
|
+
error?: any;
|
100
|
+
}, {
|
101
|
+
message: string;
|
102
|
+
error?: any;
|
103
|
+
}>;
|
104
|
+
};
|
105
|
+
path: "api/v1/message/send";
|
106
|
+
};
|
107
|
+
getAllTags: {
|
108
|
+
method: "GET";
|
109
|
+
query: z.ZodOptional<z.ZodObject<{
|
110
|
+
group: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"general">, z.ZodLiteral<"contact">]>>>;
|
111
|
+
keyword: z.ZodOptional<z.ZodString>;
|
112
|
+
}, "strip", z.ZodTypeAny, {
|
113
|
+
group?: "general" | "contact" | undefined;
|
114
|
+
keyword?: string | undefined;
|
115
|
+
}, {
|
116
|
+
group?: "general" | "contact" | undefined;
|
117
|
+
keyword?: string | undefined;
|
118
|
+
}>>;
|
119
|
+
responses: {
|
120
|
+
200: z.ZodObject<{
|
121
|
+
requestId: z.ZodString;
|
122
|
+
tags: z.ZodArray<z.ZodObject<{
|
123
|
+
id: z.ZodString;
|
124
|
+
createdAt: z.ZodDate;
|
125
|
+
updatedAt: z.ZodDate;
|
126
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
127
|
+
name: z.ZodString;
|
128
|
+
}, "strip", z.ZodTypeAny, {
|
129
|
+
name: string;
|
130
|
+
id: string;
|
131
|
+
createdAt: Date;
|
132
|
+
updatedAt: Date;
|
133
|
+
deletedAt: Date | null;
|
134
|
+
}, {
|
135
|
+
name: string;
|
136
|
+
id: string;
|
137
|
+
createdAt: Date;
|
138
|
+
updatedAt: Date;
|
139
|
+
deletedAt: Date | null;
|
140
|
+
}>, "many">;
|
141
|
+
}, "strip", z.ZodTypeAny, {
|
142
|
+
requestId: string;
|
143
|
+
tags: {
|
144
|
+
name: string;
|
145
|
+
id: string;
|
146
|
+
createdAt: Date;
|
147
|
+
updatedAt: Date;
|
148
|
+
deletedAt: Date | null;
|
149
|
+
}[];
|
150
|
+
}, {
|
151
|
+
requestId: string;
|
152
|
+
tags: {
|
153
|
+
name: string;
|
154
|
+
id: string;
|
155
|
+
createdAt: Date;
|
156
|
+
updatedAt: Date;
|
157
|
+
deletedAt: Date | null;
|
158
|
+
}[];
|
159
|
+
}>;
|
160
|
+
400: z.ZodObject<{
|
161
|
+
message: z.ZodString;
|
162
|
+
}, "strip", z.ZodTypeAny, {
|
163
|
+
message: string;
|
164
|
+
}, {
|
165
|
+
message: string;
|
166
|
+
}>;
|
167
|
+
409: z.ZodObject<{
|
168
|
+
message: z.ZodString;
|
169
|
+
}, "strip", z.ZodTypeAny, {
|
170
|
+
message: string;
|
171
|
+
}, {
|
172
|
+
message: string;
|
173
|
+
}>;
|
174
|
+
401: z.ZodObject<{
|
175
|
+
message: z.ZodString;
|
176
|
+
error: z.ZodAny;
|
177
|
+
}, "strip", z.ZodTypeAny, {
|
178
|
+
message: string;
|
179
|
+
error?: any;
|
180
|
+
}, {
|
181
|
+
message: string;
|
182
|
+
error?: any;
|
183
|
+
}>;
|
184
|
+
404: z.ZodObject<{
|
185
|
+
message: z.ZodString;
|
186
|
+
error: z.ZodAny;
|
187
|
+
}, "strip", z.ZodTypeAny, {
|
188
|
+
message: string;
|
189
|
+
error?: any;
|
190
|
+
}, {
|
191
|
+
message: string;
|
192
|
+
error?: any;
|
193
|
+
}>;
|
194
|
+
422: z.ZodObject<{
|
195
|
+
message: z.ZodString;
|
196
|
+
error: z.ZodAny;
|
197
|
+
}, "strip", z.ZodTypeAny, {
|
198
|
+
message: string;
|
199
|
+
error?: any;
|
200
|
+
}, {
|
201
|
+
message: string;
|
202
|
+
error?: any;
|
203
|
+
}>;
|
204
|
+
500: z.ZodObject<{
|
205
|
+
message: z.ZodString;
|
206
|
+
error: z.ZodAny;
|
207
|
+
}, "strip", z.ZodTypeAny, {
|
208
|
+
message: string;
|
209
|
+
error?: any;
|
210
|
+
}, {
|
211
|
+
message: string;
|
212
|
+
error?: any;
|
213
|
+
}>;
|
214
|
+
};
|
215
|
+
path: "api/v1/tags";
|
216
|
+
};
|
217
|
+
getAllChannel: {
|
218
|
+
method: "GET";
|
219
|
+
query: z.ZodObject<{
|
220
|
+
page: z.ZodDefault<z.ZodNumber>;
|
221
|
+
pageSize: z.ZodDefault<z.ZodNumber>;
|
222
|
+
keyword: z.ZodOptional<z.ZodString>;
|
223
|
+
}, "strip", z.ZodTypeAny, {
|
224
|
+
page: number;
|
225
|
+
pageSize: number;
|
226
|
+
keyword?: string | undefined;
|
227
|
+
}, {
|
228
|
+
page?: number | undefined;
|
229
|
+
pageSize?: number | undefined;
|
230
|
+
keyword?: string | undefined;
|
231
|
+
}>;
|
232
|
+
responses: {
|
233
|
+
200: z.ZodObject<{
|
234
|
+
requestId: z.ZodString;
|
235
|
+
page: z.ZodNumber;
|
236
|
+
pageSize: z.ZodNumber;
|
237
|
+
total: z.ZodNumber;
|
238
|
+
lastPage: z.ZodNumber;
|
239
|
+
data: z.ZodAny;
|
240
|
+
}, "strip", z.ZodTypeAny, {
|
241
|
+
total: number;
|
242
|
+
page: number;
|
243
|
+
pageSize: number;
|
244
|
+
lastPage: number;
|
245
|
+
requestId: string;
|
246
|
+
data?: any;
|
247
|
+
}, {
|
248
|
+
total: number;
|
249
|
+
page: number;
|
250
|
+
pageSize: number;
|
251
|
+
lastPage: number;
|
252
|
+
requestId: string;
|
253
|
+
data?: any;
|
254
|
+
}>;
|
255
|
+
400: z.ZodObject<{
|
256
|
+
message: z.ZodString;
|
257
|
+
}, "strip", z.ZodTypeAny, {
|
258
|
+
message: string;
|
259
|
+
}, {
|
260
|
+
message: string;
|
261
|
+
}>;
|
262
|
+
409: z.ZodObject<{
|
263
|
+
message: z.ZodString;
|
264
|
+
}, "strip", z.ZodTypeAny, {
|
265
|
+
message: string;
|
266
|
+
}, {
|
267
|
+
message: string;
|
268
|
+
}>;
|
269
|
+
401: z.ZodObject<{
|
270
|
+
message: z.ZodString;
|
271
|
+
error: z.ZodAny;
|
272
|
+
}, "strip", z.ZodTypeAny, {
|
273
|
+
message: string;
|
274
|
+
error?: any;
|
275
|
+
}, {
|
276
|
+
message: string;
|
277
|
+
error?: any;
|
278
|
+
}>;
|
279
|
+
404: z.ZodObject<{
|
280
|
+
message: z.ZodString;
|
281
|
+
error: z.ZodAny;
|
282
|
+
}, "strip", z.ZodTypeAny, {
|
283
|
+
message: string;
|
284
|
+
error?: any;
|
285
|
+
}, {
|
286
|
+
message: string;
|
287
|
+
error?: any;
|
288
|
+
}>;
|
289
|
+
422: z.ZodObject<{
|
290
|
+
message: z.ZodString;
|
291
|
+
error: z.ZodAny;
|
292
|
+
}, "strip", z.ZodTypeAny, {
|
293
|
+
message: string;
|
294
|
+
error?: any;
|
295
|
+
}, {
|
296
|
+
message: string;
|
297
|
+
error?: any;
|
298
|
+
}>;
|
299
|
+
500: z.ZodObject<{
|
300
|
+
message: z.ZodString;
|
301
|
+
error: z.ZodAny;
|
302
|
+
}, "strip", z.ZodTypeAny, {
|
303
|
+
message: string;
|
304
|
+
error?: any;
|
305
|
+
}, {
|
306
|
+
message: string;
|
307
|
+
error?: any;
|
308
|
+
}>;
|
309
|
+
};
|
310
|
+
path: "api/v1/channels";
|
311
|
+
};
|
15
312
|
createContact: {
|
16
313
|
body: z.ZodObject<{
|
17
314
|
name: z.ZodString;
|
@@ -869,306 +1166,101 @@ export declare const publicApiContract: {
|
|
869
1166
|
data: {
|
870
1167
|
name: string;
|
871
1168
|
id: string;
|
872
|
-
channel: string | null;
|
873
|
-
address: string | null;
|
874
|
-
createdAt: Date;
|
875
|
-
updatedAt: Date;
|
876
|
-
deletedAt: Date | null;
|
877
|
-
customFields: {
|
878
|
-
id: string;
|
879
|
-
createdAt: Date;
|
880
|
-
updatedAt: Date;
|
881
|
-
deletedAt: Date | null;
|
882
|
-
attribute: {
|
883
|
-
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
884
|
-
id: string;
|
885
|
-
position: number;
|
886
|
-
createdAt: Date;
|
887
|
-
updatedAt: Date;
|
888
|
-
deletedAt: Date | null;
|
889
|
-
systemName: string;
|
890
|
-
displayName: string;
|
891
|
-
isDefault: boolean;
|
892
|
-
isArchived: boolean;
|
893
|
-
isRequired: boolean;
|
894
|
-
isUnique: boolean;
|
895
|
-
};
|
896
|
-
textValue: string | null;
|
897
|
-
booleanValue: boolean | null;
|
898
|
-
numberValue: number | null;
|
899
|
-
dateValue: Date | null;
|
900
|
-
uploads: {
|
901
|
-
id: string;
|
902
|
-
status: string | null;
|
903
|
-
createdAt: Date;
|
904
|
-
updatedAt: Date;
|
905
|
-
deletedAt: Date | null;
|
906
|
-
fileName: string;
|
907
|
-
fileKey: string;
|
908
|
-
bucketName: string;
|
909
|
-
fileSize: number;
|
910
|
-
fileUrl: string | null;
|
911
|
-
}[];
|
912
|
-
}[];
|
913
|
-
company: {
|
914
|
-
id: string;
|
915
|
-
createdAt: Date;
|
916
|
-
updatedAt: Date;
|
917
|
-
deletedAt: Date | null;
|
918
|
-
name?: string | undefined;
|
919
|
-
address?: string | null | undefined;
|
920
|
-
phone?: string | null | undefined;
|
921
|
-
industry?: string | null | undefined;
|
922
|
-
} | null;
|
923
|
-
notes: string | null;
|
924
|
-
contactProfile: string | null;
|
925
|
-
socialProfileUrl: string | null;
|
926
|
-
tags: {
|
927
|
-
name: string;
|
928
|
-
id: string;
|
929
|
-
createdAt: Date;
|
930
|
-
updatedAt: Date;
|
931
|
-
deletedAt: Date | null;
|
932
|
-
}[];
|
933
|
-
contactEmails: {
|
934
|
-
id: string;
|
935
|
-
isPrimary: boolean;
|
936
|
-
email: string;
|
937
|
-
createdAt: Date;
|
938
|
-
updatedAt: Date;
|
939
|
-
deletedAt: Date | null;
|
940
|
-
}[];
|
941
|
-
contactPhones: {
|
942
|
-
id: string;
|
943
|
-
isPrimary: boolean;
|
944
|
-
createdAt: Date;
|
945
|
-
updatedAt: Date;
|
946
|
-
deletedAt: Date | null;
|
947
|
-
phone: string;
|
948
|
-
}[];
|
949
|
-
activityLogs?: {
|
950
|
-
id: string;
|
951
|
-
description: string;
|
952
|
-
createdAt: Date;
|
953
|
-
updatedAt: Date;
|
954
|
-
deletedAt: Date | null;
|
955
|
-
entityId: string;
|
956
|
-
entityType: {
|
957
|
-
id: string;
|
958
|
-
description: string | null;
|
959
|
-
createdAt: Date;
|
960
|
-
updatedAt: Date;
|
961
|
-
deletedAt: Date | null;
|
962
|
-
entity: string;
|
963
|
-
};
|
964
|
-
}[] | undefined;
|
965
|
-
};
|
966
|
-
requestId: string;
|
967
|
-
}>;
|
968
|
-
400: z.ZodObject<{
|
969
|
-
message: z.ZodString;
|
970
|
-
}, "strip", z.ZodTypeAny, {
|
971
|
-
message: string;
|
972
|
-
}, {
|
973
|
-
message: string;
|
974
|
-
}>;
|
975
|
-
409: z.ZodObject<{
|
976
|
-
message: z.ZodString;
|
977
|
-
}, "strip", z.ZodTypeAny, {
|
978
|
-
message: string;
|
979
|
-
}, {
|
980
|
-
message: string;
|
981
|
-
}>;
|
982
|
-
401: z.ZodObject<{
|
983
|
-
message: z.ZodString;
|
984
|
-
error: z.ZodAny;
|
985
|
-
}, "strip", z.ZodTypeAny, {
|
986
|
-
message: string;
|
987
|
-
error?: any;
|
988
|
-
}, {
|
989
|
-
message: string;
|
990
|
-
error?: any;
|
991
|
-
}>;
|
992
|
-
404: z.ZodObject<{
|
993
|
-
message: z.ZodString;
|
994
|
-
error: z.ZodAny;
|
995
|
-
}, "strip", z.ZodTypeAny, {
|
996
|
-
message: string;
|
997
|
-
error?: any;
|
998
|
-
}, {
|
999
|
-
message: string;
|
1000
|
-
error?: any;
|
1001
|
-
}>;
|
1002
|
-
422: z.ZodObject<{
|
1003
|
-
message: z.ZodString;
|
1004
|
-
error: z.ZodAny;
|
1005
|
-
}, "strip", z.ZodTypeAny, {
|
1006
|
-
message: string;
|
1007
|
-
error?: any;
|
1008
|
-
}, {
|
1009
|
-
message: string;
|
1010
|
-
error?: any;
|
1011
|
-
}>;
|
1012
|
-
500: z.ZodObject<{
|
1013
|
-
message: z.ZodString;
|
1014
|
-
error: z.ZodAny;
|
1015
|
-
}, "strip", z.ZodTypeAny, {
|
1016
|
-
message: string;
|
1017
|
-
error?: any;
|
1018
|
-
}, {
|
1019
|
-
message: string;
|
1020
|
-
error?: any;
|
1021
|
-
}>;
|
1022
|
-
};
|
1023
|
-
path: "api/v1/contacts";
|
1024
|
-
};
|
1025
|
-
getAllTags: {
|
1026
|
-
method: "GET";
|
1027
|
-
query: z.ZodOptional<z.ZodObject<{
|
1028
|
-
group: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"general">, z.ZodLiteral<"contact">]>>>;
|
1029
|
-
keyword: z.ZodOptional<z.ZodString>;
|
1030
|
-
}, "strip", z.ZodTypeAny, {
|
1031
|
-
group?: "general" | "contact" | undefined;
|
1032
|
-
keyword?: string | undefined;
|
1033
|
-
}, {
|
1034
|
-
group?: "general" | "contact" | undefined;
|
1035
|
-
keyword?: string | undefined;
|
1036
|
-
}>>;
|
1037
|
-
responses: {
|
1038
|
-
200: z.ZodObject<{
|
1039
|
-
requestId: z.ZodString;
|
1040
|
-
tags: z.ZodArray<z.ZodObject<{
|
1041
|
-
id: z.ZodString;
|
1042
|
-
createdAt: z.ZodDate;
|
1043
|
-
updatedAt: z.ZodDate;
|
1044
|
-
deletedAt: z.ZodNullable<z.ZodDate>;
|
1045
|
-
name: z.ZodString;
|
1046
|
-
}, "strip", z.ZodTypeAny, {
|
1047
|
-
name: string;
|
1048
|
-
id: string;
|
1049
|
-
createdAt: Date;
|
1050
|
-
updatedAt: Date;
|
1051
|
-
deletedAt: Date | null;
|
1052
|
-
}, {
|
1053
|
-
name: string;
|
1054
|
-
id: string;
|
1055
|
-
createdAt: Date;
|
1056
|
-
updatedAt: Date;
|
1057
|
-
deletedAt: Date | null;
|
1058
|
-
}>, "many">;
|
1059
|
-
}, "strip", z.ZodTypeAny, {
|
1060
|
-
requestId: string;
|
1061
|
-
tags: {
|
1062
|
-
name: string;
|
1063
|
-
id: string;
|
1064
|
-
createdAt: Date;
|
1065
|
-
updatedAt: Date;
|
1066
|
-
deletedAt: Date | null;
|
1067
|
-
}[];
|
1068
|
-
}, {
|
1069
|
-
requestId: string;
|
1070
|
-
tags: {
|
1071
|
-
name: string;
|
1072
|
-
id: string;
|
1169
|
+
channel: string | null;
|
1170
|
+
address: string | null;
|
1073
1171
|
createdAt: Date;
|
1074
1172
|
updatedAt: Date;
|
1075
1173
|
deletedAt: Date | null;
|
1076
|
-
|
1077
|
-
|
1078
|
-
|
1079
|
-
|
1080
|
-
|
1081
|
-
|
1082
|
-
|
1083
|
-
|
1084
|
-
|
1085
|
-
|
1086
|
-
|
1087
|
-
|
1088
|
-
|
1089
|
-
|
1090
|
-
|
1091
|
-
|
1092
|
-
|
1093
|
-
|
1094
|
-
|
1095
|
-
|
1096
|
-
|
1097
|
-
|
1098
|
-
|
1099
|
-
|
1100
|
-
|
1101
|
-
|
1102
|
-
|
1103
|
-
|
1104
|
-
|
1105
|
-
|
1106
|
-
|
1107
|
-
|
1108
|
-
|
1109
|
-
|
1110
|
-
|
1111
|
-
|
1112
|
-
|
1113
|
-
|
1114
|
-
|
1115
|
-
|
1116
|
-
|
1117
|
-
|
1118
|
-
|
1119
|
-
|
1120
|
-
|
1121
|
-
|
1122
|
-
|
1123
|
-
|
1124
|
-
|
1125
|
-
|
1126
|
-
|
1127
|
-
|
1128
|
-
|
1129
|
-
|
1130
|
-
|
1131
|
-
|
1132
|
-
|
1133
|
-
|
1134
|
-
|
1135
|
-
|
1136
|
-
|
1137
|
-
|
1138
|
-
|
1139
|
-
|
1140
|
-
|
1141
|
-
|
1142
|
-
|
1143
|
-
|
1144
|
-
|
1145
|
-
|
1146
|
-
|
1147
|
-
|
1148
|
-
|
1149
|
-
|
1150
|
-
|
1151
|
-
|
1152
|
-
|
1153
|
-
|
1154
|
-
|
1155
|
-
|
1156
|
-
|
1157
|
-
|
1158
|
-
|
1159
|
-
|
1160
|
-
|
1161
|
-
|
1162
|
-
|
1163
|
-
|
1164
|
-
|
1165
|
-
}, {
|
1166
|
-
total: number;
|
1167
|
-
page: number;
|
1168
|
-
pageSize: number;
|
1169
|
-
lastPage: number;
|
1174
|
+
customFields: {
|
1175
|
+
id: string;
|
1176
|
+
createdAt: Date;
|
1177
|
+
updatedAt: Date;
|
1178
|
+
deletedAt: Date | null;
|
1179
|
+
attribute: {
|
1180
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
1181
|
+
id: string;
|
1182
|
+
position: number;
|
1183
|
+
createdAt: Date;
|
1184
|
+
updatedAt: Date;
|
1185
|
+
deletedAt: Date | null;
|
1186
|
+
systemName: string;
|
1187
|
+
displayName: string;
|
1188
|
+
isDefault: boolean;
|
1189
|
+
isArchived: boolean;
|
1190
|
+
isRequired: boolean;
|
1191
|
+
isUnique: boolean;
|
1192
|
+
};
|
1193
|
+
textValue: string | null;
|
1194
|
+
booleanValue: boolean | null;
|
1195
|
+
numberValue: number | null;
|
1196
|
+
dateValue: Date | null;
|
1197
|
+
uploads: {
|
1198
|
+
id: string;
|
1199
|
+
status: string | null;
|
1200
|
+
createdAt: Date;
|
1201
|
+
updatedAt: Date;
|
1202
|
+
deletedAt: Date | null;
|
1203
|
+
fileName: string;
|
1204
|
+
fileKey: string;
|
1205
|
+
bucketName: string;
|
1206
|
+
fileSize: number;
|
1207
|
+
fileUrl: string | null;
|
1208
|
+
}[];
|
1209
|
+
}[];
|
1210
|
+
company: {
|
1211
|
+
id: string;
|
1212
|
+
createdAt: Date;
|
1213
|
+
updatedAt: Date;
|
1214
|
+
deletedAt: Date | null;
|
1215
|
+
name?: string | undefined;
|
1216
|
+
address?: string | null | undefined;
|
1217
|
+
phone?: string | null | undefined;
|
1218
|
+
industry?: string | null | undefined;
|
1219
|
+
} | null;
|
1220
|
+
notes: string | null;
|
1221
|
+
contactProfile: string | null;
|
1222
|
+
socialProfileUrl: string | null;
|
1223
|
+
tags: {
|
1224
|
+
name: string;
|
1225
|
+
id: string;
|
1226
|
+
createdAt: Date;
|
1227
|
+
updatedAt: Date;
|
1228
|
+
deletedAt: Date | null;
|
1229
|
+
}[];
|
1230
|
+
contactEmails: {
|
1231
|
+
id: string;
|
1232
|
+
isPrimary: boolean;
|
1233
|
+
email: string;
|
1234
|
+
createdAt: Date;
|
1235
|
+
updatedAt: Date;
|
1236
|
+
deletedAt: Date | null;
|
1237
|
+
}[];
|
1238
|
+
contactPhones: {
|
1239
|
+
id: string;
|
1240
|
+
isPrimary: boolean;
|
1241
|
+
createdAt: Date;
|
1242
|
+
updatedAt: Date;
|
1243
|
+
deletedAt: Date | null;
|
1244
|
+
phone: string;
|
1245
|
+
}[];
|
1246
|
+
activityLogs?: {
|
1247
|
+
id: string;
|
1248
|
+
description: string;
|
1249
|
+
createdAt: Date;
|
1250
|
+
updatedAt: Date;
|
1251
|
+
deletedAt: Date | null;
|
1252
|
+
entityId: string;
|
1253
|
+
entityType: {
|
1254
|
+
id: string;
|
1255
|
+
description: string | null;
|
1256
|
+
createdAt: Date;
|
1257
|
+
updatedAt: Date;
|
1258
|
+
deletedAt: Date | null;
|
1259
|
+
entity: string;
|
1260
|
+
};
|
1261
|
+
}[] | undefined;
|
1262
|
+
};
|
1170
1263
|
requestId: string;
|
1171
|
-
data?: any;
|
1172
1264
|
}>;
|
1173
1265
|
400: z.ZodObject<{
|
1174
1266
|
message: z.ZodString;
|
@@ -1225,7 +1317,7 @@ export declare const publicApiContract: {
|
|
1225
1317
|
error?: any;
|
1226
1318
|
}>;
|
1227
1319
|
};
|
1228
|
-
path: "api/v1/
|
1320
|
+
path: "api/v1/contacts";
|
1229
1321
|
};
|
1230
1322
|
getAllContact: {
|
1231
1323
|
summary: "Get all contacts";
|
@@ -2256,10 +2348,13 @@ export declare const publicApiContract: {
|
|
2256
2348
|
method: "GET";
|
2257
2349
|
query: z.ZodObject<{
|
2258
2350
|
socialPlatformId: z.ZodString;
|
2351
|
+
channelType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"whatsapp">, z.ZodLiteral<"messenger">, z.ZodLiteral<"telegram">, z.ZodLiteral<"instagram">, z.ZodLiteral<"line">, z.ZodLiteral<"viber">, z.ZodLiteral<"kakao">, z.ZodLiteral<"shopee">, z.ZodLiteral<"lazada">, z.ZodLiteral<"webchat">, z.ZodLiteral<"facebook_feed">, z.ZodLiteral<"sms_vonage">]>>;
|
2259
2352
|
}, "strip", z.ZodTypeAny, {
|
2260
2353
|
socialPlatformId: string;
|
2354
|
+
channelType?: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage" | undefined;
|
2261
2355
|
}, {
|
2262
2356
|
socialPlatformId: string;
|
2357
|
+
channelType?: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage" | undefined;
|
2263
2358
|
}>;
|
2264
2359
|
responses: {
|
2265
2360
|
200: z.ZodObject<{
|
@@ -3566,74 +3661,13 @@ export declare const publicApiContract: {
|
|
3566
3661
|
}, {
|
3567
3662
|
message: string;
|
3568
3663
|
error?: any;
|
3569
|
-
}>;
|
3570
|
-
};
|
3571
|
-
path: "api/v1/contacts/fields";
|
3572
|
-
};
|
3573
|
-
|
3574
|
-
|
3575
|
-
|
3576
|
-
email: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
3577
|
-
email: z.ZodString;
|
3578
|
-
isPrimary: z.ZodBoolean;
|
3579
|
-
}, "strip", z.ZodTypeAny, {
|
3580
|
-
isPrimary: boolean;
|
3581
|
-
email: string;
|
3582
|
-
}, {
|
3583
|
-
isPrimary: boolean;
|
3584
|
-
email: string;
|
3585
|
-
}>, "many">>>;
|
3586
|
-
channel: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
3587
|
-
address: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
3588
|
-
phone: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
3589
|
-
phone: z.ZodString;
|
3590
|
-
isPrimary: z.ZodBoolean;
|
3591
|
-
}, "strip", z.ZodTypeAny, {
|
3592
|
-
isPrimary: boolean;
|
3593
|
-
phone: string;
|
3594
|
-
}, {
|
3595
|
-
isPrimary: boolean;
|
3596
|
-
phone: string;
|
3597
|
-
}>, "many">>>;
|
3598
|
-
notes: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
3599
|
-
tags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
3600
|
-
company: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
3601
|
-
customFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
3602
|
-
}, "strip", z.ZodTypeAny, {
|
3603
|
-
name?: string | undefined;
|
3604
|
-
email?: {
|
3605
|
-
isPrimary: boolean;
|
3606
|
-
email: string;
|
3607
|
-
}[] | undefined;
|
3608
|
-
channel?: string | undefined;
|
3609
|
-
address?: string | undefined;
|
3610
|
-
phone?: {
|
3611
|
-
isPrimary: boolean;
|
3612
|
-
phone: string;
|
3613
|
-
}[] | undefined;
|
3614
|
-
notes?: string | undefined;
|
3615
|
-
tags?: string[] | undefined;
|
3616
|
-
company?: string | undefined;
|
3617
|
-
customFields?: Record<string, string> | undefined;
|
3618
|
-
}, {
|
3619
|
-
name?: string | undefined;
|
3620
|
-
email?: {
|
3621
|
-
isPrimary: boolean;
|
3622
|
-
email: string;
|
3623
|
-
}[] | undefined;
|
3624
|
-
channel?: string | undefined;
|
3625
|
-
address?: string | undefined;
|
3626
|
-
phone?: {
|
3627
|
-
isPrimary: boolean;
|
3628
|
-
phone: string;
|
3629
|
-
}[] | undefined;
|
3630
|
-
notes?: string | undefined;
|
3631
|
-
tags?: string[] | undefined;
|
3632
|
-
company?: string | undefined;
|
3633
|
-
customFields?: Record<string, string> | undefined;
|
3634
|
-
}>;
|
3635
|
-
summary: "Update a contact";
|
3636
|
-
method: "PATCH";
|
3664
|
+
}>;
|
3665
|
+
};
|
3666
|
+
path: "api/v1/contacts/fields";
|
3667
|
+
};
|
3668
|
+
getContactById: {
|
3669
|
+
summary: "Get a contact by id";
|
3670
|
+
method: "GET";
|
3637
3671
|
pathParams: z.ZodObject<{
|
3638
3672
|
id: z.ZodString;
|
3639
3673
|
}, "strip", z.ZodTypeAny, {
|
@@ -4049,273 +4083,66 @@ export declare const publicApiContract: {
|
|
4049
4083
|
createdAt: Date;
|
4050
4084
|
updatedAt: Date;
|
4051
4085
|
deletedAt: Date | null;
|
4052
|
-
}, {
|
4053
|
-
id: string;
|
4054
|
-
isPrimary: boolean;
|
4055
|
-
email: string;
|
4056
|
-
createdAt: Date;
|
4057
|
-
updatedAt: Date;
|
4058
|
-
deletedAt: Date | null;
|
4059
|
-
}>, "many">;
|
4060
|
-
contactPhones: z.ZodArray<z.ZodObject<{
|
4061
|
-
id: z.ZodString;
|
4062
|
-
createdAt: z.ZodDate;
|
4063
|
-
updatedAt: z.ZodDate;
|
4064
|
-
deletedAt: z.ZodNullable<z.ZodDate>;
|
4065
|
-
phone: z.ZodString;
|
4066
|
-
isPrimary: z.ZodBoolean;
|
4067
|
-
}, "strip", z.ZodTypeAny, {
|
4068
|
-
id: string;
|
4069
|
-
isPrimary: boolean;
|
4070
|
-
createdAt: Date;
|
4071
|
-
updatedAt: Date;
|
4072
|
-
deletedAt: Date | null;
|
4073
|
-
phone: string;
|
4074
|
-
}, {
|
4075
|
-
id: string;
|
4076
|
-
isPrimary: boolean;
|
4077
|
-
createdAt: Date;
|
4078
|
-
updatedAt: Date;
|
4079
|
-
deletedAt: Date | null;
|
4080
|
-
phone: string;
|
4081
|
-
}>, "many">;
|
4082
|
-
activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
4083
|
-
id: z.ZodString;
|
4084
|
-
createdAt: z.ZodDate;
|
4085
|
-
updatedAt: z.ZodDate;
|
4086
|
-
deletedAt: z.ZodNullable<z.ZodDate>;
|
4087
|
-
entityId: z.ZodString;
|
4088
|
-
description: z.ZodString;
|
4089
|
-
entityType: z.ZodObject<{
|
4090
|
-
id: z.ZodString;
|
4091
|
-
createdAt: z.ZodDate;
|
4092
|
-
updatedAt: z.ZodDate;
|
4093
|
-
deletedAt: z.ZodNullable<z.ZodDate>;
|
4094
|
-
entity: z.ZodString;
|
4095
|
-
description: z.ZodNullable<z.ZodString>;
|
4096
|
-
}, "strip", z.ZodTypeAny, {
|
4097
|
-
id: string;
|
4098
|
-
description: string | null;
|
4099
|
-
createdAt: Date;
|
4100
|
-
updatedAt: Date;
|
4101
|
-
deletedAt: Date | null;
|
4102
|
-
entity: string;
|
4103
|
-
}, {
|
4104
|
-
id: string;
|
4105
|
-
description: string | null;
|
4106
|
-
createdAt: Date;
|
4107
|
-
updatedAt: Date;
|
4108
|
-
deletedAt: Date | null;
|
4109
|
-
entity: string;
|
4110
|
-
}>;
|
4111
|
-
}, "strip", z.ZodTypeAny, {
|
4112
|
-
id: string;
|
4113
|
-
description: string;
|
4114
|
-
createdAt: Date;
|
4115
|
-
updatedAt: Date;
|
4116
|
-
deletedAt: Date | null;
|
4117
|
-
entityId: string;
|
4118
|
-
entityType: {
|
4119
|
-
id: string;
|
4120
|
-
description: string | null;
|
4121
|
-
createdAt: Date;
|
4122
|
-
updatedAt: Date;
|
4123
|
-
deletedAt: Date | null;
|
4124
|
-
entity: string;
|
4125
|
-
};
|
4126
|
-
}, {
|
4127
|
-
id: string;
|
4128
|
-
description: string;
|
4129
|
-
createdAt: Date;
|
4130
|
-
updatedAt: Date;
|
4131
|
-
deletedAt: Date | null;
|
4132
|
-
entityId: string;
|
4133
|
-
entityType: {
|
4134
|
-
id: string;
|
4135
|
-
description: string | null;
|
4136
|
-
createdAt: Date;
|
4137
|
-
updatedAt: Date;
|
4138
|
-
deletedAt: Date | null;
|
4139
|
-
entity: string;
|
4140
|
-
};
|
4141
|
-
}>, "many">>;
|
4142
|
-
}, "strip", z.ZodTypeAny, {
|
4143
|
-
name: string;
|
4144
|
-
id: string;
|
4145
|
-
channel: string | null;
|
4146
|
-
address: string | null;
|
4147
|
-
createdAt: Date;
|
4148
|
-
updatedAt: Date;
|
4149
|
-
deletedAt: Date | null;
|
4150
|
-
customFields: {
|
4151
|
-
id: string;
|
4152
|
-
createdAt: Date;
|
4153
|
-
updatedAt: Date;
|
4154
|
-
deletedAt: Date | null;
|
4155
|
-
attribute: {
|
4156
|
-
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
4157
|
-
id: string;
|
4158
|
-
position: number;
|
4159
|
-
createdAt: Date;
|
4160
|
-
updatedAt: Date;
|
4161
|
-
deletedAt: Date | null;
|
4162
|
-
systemName: string;
|
4163
|
-
displayName: string;
|
4164
|
-
isDefault: boolean;
|
4165
|
-
isArchived: boolean;
|
4166
|
-
isRequired: boolean;
|
4167
|
-
isUnique: boolean;
|
4168
|
-
};
|
4169
|
-
textValue: string | null;
|
4170
|
-
booleanValue: boolean | null;
|
4171
|
-
numberValue: number | null;
|
4172
|
-
dateValue: Date | null;
|
4173
|
-
uploads: {
|
4174
|
-
id: string;
|
4175
|
-
status: string | null;
|
4176
|
-
createdAt: Date;
|
4177
|
-
updatedAt: Date;
|
4178
|
-
deletedAt: Date | null;
|
4179
|
-
fileName: string;
|
4180
|
-
fileKey: string;
|
4181
|
-
bucketName: string;
|
4182
|
-
fileSize: number;
|
4183
|
-
fileUrl: string | null;
|
4184
|
-
}[];
|
4185
|
-
}[];
|
4186
|
-
company: {
|
4187
|
-
id: string;
|
4188
|
-
createdAt: Date;
|
4189
|
-
updatedAt: Date;
|
4190
|
-
deletedAt: Date | null;
|
4191
|
-
name?: string | undefined;
|
4192
|
-
address?: string | null | undefined;
|
4193
|
-
phone?: string | null | undefined;
|
4194
|
-
industry?: string | null | undefined;
|
4195
|
-
} | null;
|
4196
|
-
notes: string | null;
|
4197
|
-
contactProfile: string | null;
|
4198
|
-
socialProfileUrl: string | null;
|
4199
|
-
tags: {
|
4200
|
-
name: string;
|
4201
|
-
id: string;
|
4202
|
-
createdAt: Date;
|
4203
|
-
updatedAt: Date;
|
4204
|
-
deletedAt: Date | null;
|
4205
|
-
}[];
|
4206
|
-
contactEmails: {
|
4207
|
-
id: string;
|
4208
|
-
isPrimary: boolean;
|
4209
|
-
email: string;
|
4210
|
-
createdAt: Date;
|
4211
|
-
updatedAt: Date;
|
4212
|
-
deletedAt: Date | null;
|
4213
|
-
}[];
|
4214
|
-
contactPhones: {
|
4215
|
-
id: string;
|
4216
|
-
isPrimary: boolean;
|
4217
|
-
createdAt: Date;
|
4218
|
-
updatedAt: Date;
|
4219
|
-
deletedAt: Date | null;
|
4220
|
-
phone: string;
|
4221
|
-
}[];
|
4222
|
-
activityLogs?: {
|
4223
|
-
id: string;
|
4224
|
-
description: string;
|
4225
|
-
createdAt: Date;
|
4226
|
-
updatedAt: Date;
|
4227
|
-
deletedAt: Date | null;
|
4228
|
-
entityId: string;
|
4229
|
-
entityType: {
|
4230
|
-
id: string;
|
4231
|
-
description: string | null;
|
4232
|
-
createdAt: Date;
|
4233
|
-
updatedAt: Date;
|
4234
|
-
deletedAt: Date | null;
|
4235
|
-
entity: string;
|
4236
|
-
};
|
4237
|
-
}[] | undefined;
|
4238
|
-
}, {
|
4239
|
-
name: string;
|
4240
|
-
id: string;
|
4241
|
-
channel: string | null;
|
4242
|
-
address: string | null;
|
4243
|
-
createdAt: Date;
|
4244
|
-
updatedAt: Date;
|
4245
|
-
deletedAt: Date | null;
|
4246
|
-
customFields: {
|
4247
|
-
id: string;
|
4248
|
-
createdAt: Date;
|
4249
|
-
updatedAt: Date;
|
4250
|
-
deletedAt: Date | null;
|
4251
|
-
attribute: {
|
4252
|
-
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
4253
|
-
id: string;
|
4254
|
-
position: number;
|
4255
|
-
createdAt: Date;
|
4256
|
-
updatedAt: Date;
|
4257
|
-
deletedAt: Date | null;
|
4258
|
-
systemName: string;
|
4259
|
-
displayName: string;
|
4260
|
-
isDefault: boolean;
|
4261
|
-
isArchived: boolean;
|
4262
|
-
isRequired: boolean;
|
4263
|
-
isUnique: boolean;
|
4264
|
-
};
|
4265
|
-
textValue: string | null;
|
4266
|
-
booleanValue: boolean | null;
|
4267
|
-
numberValue: number | null;
|
4268
|
-
dateValue: Date | null;
|
4269
|
-
uploads: {
|
4270
|
-
id: string;
|
4271
|
-
status: string | null;
|
4272
|
-
createdAt: Date;
|
4273
|
-
updatedAt: Date;
|
4274
|
-
deletedAt: Date | null;
|
4275
|
-
fileName: string;
|
4276
|
-
fileKey: string;
|
4277
|
-
bucketName: string;
|
4278
|
-
fileSize: number;
|
4279
|
-
fileUrl: string | null;
|
4280
|
-
}[];
|
4281
|
-
}[];
|
4282
|
-
company: {
|
4283
|
-
id: string;
|
4284
|
-
createdAt: Date;
|
4285
|
-
updatedAt: Date;
|
4286
|
-
deletedAt: Date | null;
|
4287
|
-
name?: string | undefined;
|
4288
|
-
address?: string | null | undefined;
|
4289
|
-
phone?: string | null | undefined;
|
4290
|
-
industry?: string | null | undefined;
|
4291
|
-
} | null;
|
4292
|
-
notes: string | null;
|
4293
|
-
contactProfile: string | null;
|
4294
|
-
socialProfileUrl: string | null;
|
4295
|
-
tags: {
|
4296
|
-
name: string;
|
4297
|
-
id: string;
|
4298
|
-
createdAt: Date;
|
4299
|
-
updatedAt: Date;
|
4300
|
-
deletedAt: Date | null;
|
4301
|
-
}[];
|
4302
|
-
contactEmails: {
|
4086
|
+
}, {
|
4303
4087
|
id: string;
|
4304
4088
|
isPrimary: boolean;
|
4305
4089
|
email: string;
|
4306
4090
|
createdAt: Date;
|
4307
4091
|
updatedAt: Date;
|
4308
4092
|
deletedAt: Date | null;
|
4309
|
-
}
|
4310
|
-
contactPhones: {
|
4093
|
+
}>, "many">;
|
4094
|
+
contactPhones: z.ZodArray<z.ZodObject<{
|
4095
|
+
id: z.ZodString;
|
4096
|
+
createdAt: z.ZodDate;
|
4097
|
+
updatedAt: z.ZodDate;
|
4098
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
4099
|
+
phone: z.ZodString;
|
4100
|
+
isPrimary: z.ZodBoolean;
|
4101
|
+
}, "strip", z.ZodTypeAny, {
|
4311
4102
|
id: string;
|
4312
4103
|
isPrimary: boolean;
|
4313
4104
|
createdAt: Date;
|
4314
4105
|
updatedAt: Date;
|
4315
4106
|
deletedAt: Date | null;
|
4316
4107
|
phone: string;
|
4317
|
-
}
|
4318
|
-
|
4108
|
+
}, {
|
4109
|
+
id: string;
|
4110
|
+
isPrimary: boolean;
|
4111
|
+
createdAt: Date;
|
4112
|
+
updatedAt: Date;
|
4113
|
+
deletedAt: Date | null;
|
4114
|
+
phone: string;
|
4115
|
+
}>, "many">;
|
4116
|
+
activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
4117
|
+
id: z.ZodString;
|
4118
|
+
createdAt: z.ZodDate;
|
4119
|
+
updatedAt: z.ZodDate;
|
4120
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
4121
|
+
entityId: z.ZodString;
|
4122
|
+
description: z.ZodString;
|
4123
|
+
entityType: z.ZodObject<{
|
4124
|
+
id: z.ZodString;
|
4125
|
+
createdAt: z.ZodDate;
|
4126
|
+
updatedAt: z.ZodDate;
|
4127
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
4128
|
+
entity: z.ZodString;
|
4129
|
+
description: z.ZodNullable<z.ZodString>;
|
4130
|
+
}, "strip", z.ZodTypeAny, {
|
4131
|
+
id: string;
|
4132
|
+
description: string | null;
|
4133
|
+
createdAt: Date;
|
4134
|
+
updatedAt: Date;
|
4135
|
+
deletedAt: Date | null;
|
4136
|
+
entity: string;
|
4137
|
+
}, {
|
4138
|
+
id: string;
|
4139
|
+
description: string | null;
|
4140
|
+
createdAt: Date;
|
4141
|
+
updatedAt: Date;
|
4142
|
+
deletedAt: Date | null;
|
4143
|
+
entity: string;
|
4144
|
+
}>;
|
4145
|
+
}, "strip", z.ZodTypeAny, {
|
4319
4146
|
id: string;
|
4320
4147
|
description: string;
|
4321
4148
|
createdAt: Date;
|
@@ -4330,11 +4157,23 @@ export declare const publicApiContract: {
|
|
4330
4157
|
deletedAt: Date | null;
|
4331
4158
|
entity: string;
|
4332
4159
|
};
|
4333
|
-
}
|
4334
|
-
|
4335
|
-
|
4336
|
-
|
4337
|
-
|
4160
|
+
}, {
|
4161
|
+
id: string;
|
4162
|
+
description: string;
|
4163
|
+
createdAt: Date;
|
4164
|
+
updatedAt: Date;
|
4165
|
+
deletedAt: Date | null;
|
4166
|
+
entityId: string;
|
4167
|
+
entityType: {
|
4168
|
+
id: string;
|
4169
|
+
description: string | null;
|
4170
|
+
createdAt: Date;
|
4171
|
+
updatedAt: Date;
|
4172
|
+
deletedAt: Date | null;
|
4173
|
+
entity: string;
|
4174
|
+
};
|
4175
|
+
}>, "many">>;
|
4176
|
+
}, "strip", z.ZodTypeAny, {
|
4338
4177
|
name: string;
|
4339
4178
|
id: string;
|
4340
4179
|
channel: string | null;
|
@@ -4430,12 +4269,7 @@ export declare const publicApiContract: {
|
|
4430
4269
|
entity: string;
|
4431
4270
|
};
|
4432
4271
|
}[] | undefined;
|
4433
|
-
}
|
4434
|
-
message: string;
|
4435
|
-
status: string;
|
4436
|
-
requestId: string;
|
4437
|
-
}, {
|
4438
|
-
data: {
|
4272
|
+
}, {
|
4439
4273
|
name: string;
|
4440
4274
|
id: string;
|
4441
4275
|
channel: string | null;
|
@@ -4498,420 +4332,242 @@ export declare const publicApiContract: {
|
|
4498
4332
|
createdAt: Date;
|
4499
4333
|
updatedAt: Date;
|
4500
4334
|
deletedAt: Date | null;
|
4501
|
-
}[];
|
4502
|
-
contactEmails: {
|
4503
|
-
id: string;
|
4504
|
-
isPrimary: boolean;
|
4505
|
-
email: string;
|
4506
|
-
createdAt: Date;
|
4507
|
-
updatedAt: Date;
|
4508
|
-
deletedAt: Date | null;
|
4509
|
-
}[];
|
4510
|
-
contactPhones: {
|
4511
|
-
id: string;
|
4512
|
-
isPrimary: boolean;
|
4513
|
-
createdAt: Date;
|
4514
|
-
updatedAt: Date;
|
4515
|
-
deletedAt: Date | null;
|
4516
|
-
phone: string;
|
4517
|
-
}[];
|
4518
|
-
activityLogs?: {
|
4519
|
-
id: string;
|
4520
|
-
description: string;
|
4521
|
-
createdAt: Date;
|
4522
|
-
updatedAt: Date;
|
4523
|
-
deletedAt: Date | null;
|
4524
|
-
entityId: string;
|
4525
|
-
entityType: {
|
4526
|
-
id: string;
|
4527
|
-
description: string | null;
|
4528
|
-
createdAt: Date;
|
4529
|
-
updatedAt: Date;
|
4530
|
-
deletedAt: Date | null;
|
4531
|
-
entity: string;
|
4532
|
-
};
|
4533
|
-
}[] | undefined;
|
4534
|
-
};
|
4535
|
-
message: string;
|
4536
|
-
status: string;
|
4537
|
-
requestId: string;
|
4538
|
-
}>;
|
4539
|
-
400: z.ZodObject<{
|
4540
|
-
message: z.ZodString;
|
4541
|
-
}, "strip", z.ZodTypeAny, {
|
4542
|
-
message: string;
|
4543
|
-
}, {
|
4544
|
-
message: string;
|
4545
|
-
}>;
|
4546
|
-
409: z.ZodObject<{
|
4547
|
-
message: z.ZodString;
|
4548
|
-
}, "strip", z.ZodTypeAny, {
|
4549
|
-
message: string;
|
4550
|
-
}, {
|
4551
|
-
message: string;
|
4552
|
-
}>;
|
4553
|
-
401: z.ZodObject<{
|
4554
|
-
message: z.ZodString;
|
4555
|
-
error: z.ZodAny;
|
4556
|
-
}, "strip", z.ZodTypeAny, {
|
4557
|
-
message: string;
|
4558
|
-
error?: any;
|
4559
|
-
}, {
|
4560
|
-
message: string;
|
4561
|
-
error?: any;
|
4562
|
-
}>;
|
4563
|
-
404: z.ZodObject<{
|
4564
|
-
message: z.ZodString;
|
4565
|
-
error: z.ZodAny;
|
4566
|
-
}, "strip", z.ZodTypeAny, {
|
4567
|
-
message: string;
|
4568
|
-
error?: any;
|
4569
|
-
}, {
|
4570
|
-
message: string;
|
4571
|
-
error?: any;
|
4572
|
-
}>;
|
4573
|
-
422: z.ZodObject<{
|
4574
|
-
message: z.ZodString;
|
4575
|
-
error: z.ZodAny;
|
4576
|
-
}, "strip", z.ZodTypeAny, {
|
4577
|
-
message: string;
|
4578
|
-
error?: any;
|
4579
|
-
}, {
|
4580
|
-
message: string;
|
4581
|
-
error?: any;
|
4582
|
-
}>;
|
4583
|
-
500: z.ZodObject<{
|
4584
|
-
message: z.ZodString;
|
4585
|
-
error: z.ZodAny;
|
4586
|
-
}, "strip", z.ZodTypeAny, {
|
4587
|
-
message: string;
|
4588
|
-
error?: any;
|
4589
|
-
}, {
|
4590
|
-
message: string;
|
4591
|
-
error?: any;
|
4592
|
-
}>;
|
4593
|
-
};
|
4594
|
-
path: "api/v1/contacts/:id";
|
4595
|
-
};
|
4596
|
-
createContactAttachmentRecords: {
|
4597
|
-
body: z.ZodObject<{
|
4598
|
-
contactId: z.ZodString;
|
4599
|
-
attributeId: z.ZodString;
|
4600
|
-
contactAttachmentRecords: z.ZodArray<z.ZodObject<{
|
4601
|
-
bucketName: z.ZodString;
|
4602
|
-
fileKey: z.ZodString;
|
4603
|
-
fileName: z.ZodString;
|
4604
|
-
fileSize: z.ZodNumber;
|
4605
|
-
url: z.ZodString;
|
4606
|
-
}, "strip", z.ZodTypeAny, {
|
4607
|
-
url: string;
|
4608
|
-
fileName: string;
|
4609
|
-
fileKey: string;
|
4610
|
-
bucketName: string;
|
4611
|
-
fileSize: number;
|
4612
|
-
}, {
|
4613
|
-
url: string;
|
4614
|
-
fileName: string;
|
4615
|
-
fileKey: string;
|
4616
|
-
bucketName: string;
|
4617
|
-
fileSize: number;
|
4618
|
-
}>, "many">;
|
4619
|
-
}, "strip", z.ZodTypeAny, {
|
4620
|
-
attributeId: string;
|
4621
|
-
contactId: string;
|
4622
|
-
contactAttachmentRecords: {
|
4623
|
-
url: string;
|
4624
|
-
fileName: string;
|
4625
|
-
fileKey: string;
|
4626
|
-
bucketName: string;
|
4627
|
-
fileSize: number;
|
4628
|
-
}[];
|
4629
|
-
}, {
|
4630
|
-
attributeId: string;
|
4631
|
-
contactId: string;
|
4632
|
-
contactAttachmentRecords: {
|
4633
|
-
url: string;
|
4634
|
-
fileName: string;
|
4635
|
-
fileKey: string;
|
4636
|
-
bucketName: string;
|
4637
|
-
fileSize: number;
|
4638
|
-
}[];
|
4639
|
-
}>;
|
4640
|
-
summary: "Create a new contact attachment";
|
4641
|
-
method: "POST";
|
4642
|
-
responses: {
|
4643
|
-
201: z.ZodObject<{
|
4644
|
-
requestId: z.ZodString;
|
4645
|
-
message: z.ZodObject<{
|
4646
|
-
id: z.ZodString;
|
4647
|
-
createdAt: z.ZodDate;
|
4648
|
-
updatedAt: z.ZodDate;
|
4649
|
-
deletedAt: z.ZodNullable<z.ZodDate>;
|
4650
|
-
textValue: z.ZodNullable<z.ZodString>;
|
4651
|
-
booleanValue: z.ZodNullable<z.ZodBoolean>;
|
4652
|
-
numberValue: z.ZodNullable<z.ZodNumber>;
|
4653
|
-
dateValue: z.ZodNullable<z.ZodDate>;
|
4654
|
-
attribute: z.ZodObject<Omit<{
|
4655
|
-
id: z.ZodString;
|
4656
|
-
createdAt: z.ZodDate;
|
4657
|
-
updatedAt: z.ZodDate;
|
4658
|
-
deletedAt: z.ZodNullable<z.ZodDate>;
|
4659
|
-
systemName: z.ZodString;
|
4660
|
-
displayName: z.ZodString;
|
4661
|
-
type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
|
4662
|
-
position: z.ZodNumber;
|
4663
|
-
isDefault: z.ZodBoolean;
|
4664
|
-
isArchived: z.ZodBoolean;
|
4665
|
-
isRequired: z.ZodBoolean;
|
4666
|
-
isUnique: z.ZodBoolean;
|
4667
|
-
options: z.ZodArray<z.ZodObject<{
|
4668
|
-
position: z.ZodNumber;
|
4669
|
-
value: z.ZodString;
|
4670
|
-
label: z.ZodString;
|
4671
|
-
isDefault: z.ZodBoolean;
|
4672
|
-
id: z.ZodString;
|
4673
|
-
}, "strip", z.ZodTypeAny, {
|
4335
|
+
}[];
|
4336
|
+
contactEmails: {
|
4337
|
+
id: string;
|
4338
|
+
isPrimary: boolean;
|
4339
|
+
email: string;
|
4340
|
+
createdAt: Date;
|
4341
|
+
updatedAt: Date;
|
4342
|
+
deletedAt: Date | null;
|
4343
|
+
}[];
|
4344
|
+
contactPhones: {
|
4345
|
+
id: string;
|
4346
|
+
isPrimary: boolean;
|
4347
|
+
createdAt: Date;
|
4348
|
+
updatedAt: Date;
|
4349
|
+
deletedAt: Date | null;
|
4350
|
+
phone: string;
|
4351
|
+
}[];
|
4352
|
+
activityLogs?: {
|
4353
|
+
id: string;
|
4354
|
+
description: string;
|
4355
|
+
createdAt: Date;
|
4356
|
+
updatedAt: Date;
|
4357
|
+
deletedAt: Date | null;
|
4358
|
+
entityId: string;
|
4359
|
+
entityType: {
|
4674
4360
|
id: string;
|
4675
|
-
|
4676
|
-
|
4677
|
-
|
4678
|
-
|
4679
|
-
|
4361
|
+
description: string | null;
|
4362
|
+
createdAt: Date;
|
4363
|
+
updatedAt: Date;
|
4364
|
+
deletedAt: Date | null;
|
4365
|
+
entity: string;
|
4366
|
+
};
|
4367
|
+
}[] | undefined;
|
4368
|
+
}>;
|
4369
|
+
requestId: z.ZodString;
|
4370
|
+
}, "strip", z.ZodTypeAny, {
|
4371
|
+
data: {
|
4372
|
+
name: string;
|
4373
|
+
id: string;
|
4374
|
+
channel: string | null;
|
4375
|
+
address: string | null;
|
4376
|
+
createdAt: Date;
|
4377
|
+
updatedAt: Date;
|
4378
|
+
deletedAt: Date | null;
|
4379
|
+
customFields: {
|
4380
|
+
id: string;
|
4381
|
+
createdAt: Date;
|
4382
|
+
updatedAt: Date;
|
4383
|
+
deletedAt: Date | null;
|
4384
|
+
attribute: {
|
4385
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
4680
4386
|
id: string;
|
4681
4387
|
position: number;
|
4682
|
-
value: string;
|
4683
|
-
label: string;
|
4684
|
-
isDefault: boolean;
|
4685
|
-
}>, "many">;
|
4686
|
-
group: z.ZodObject<{
|
4687
|
-
id: z.ZodString;
|
4688
|
-
createdAt: z.ZodDate;
|
4689
|
-
updatedAt: z.ZodDate;
|
4690
|
-
deletedAt: z.ZodNullable<z.ZodDate>;
|
4691
|
-
systemName: z.ZodString;
|
4692
|
-
displayName: z.ZodString;
|
4693
|
-
}, "strip", z.ZodTypeAny, {
|
4694
|
-
id: string;
|
4695
4388
|
createdAt: Date;
|
4696
4389
|
updatedAt: Date;
|
4697
4390
|
deletedAt: Date | null;
|
4698
4391
|
systemName: string;
|
4699
4392
|
displayName: string;
|
4700
|
-
|
4393
|
+
isDefault: boolean;
|
4394
|
+
isArchived: boolean;
|
4395
|
+
isRequired: boolean;
|
4396
|
+
isUnique: boolean;
|
4397
|
+
};
|
4398
|
+
textValue: string | null;
|
4399
|
+
booleanValue: boolean | null;
|
4400
|
+
numberValue: number | null;
|
4401
|
+
dateValue: Date | null;
|
4402
|
+
uploads: {
|
4701
4403
|
id: string;
|
4404
|
+
status: string | null;
|
4702
4405
|
createdAt: Date;
|
4703
4406
|
updatedAt: Date;
|
4704
4407
|
deletedAt: Date | null;
|
4705
|
-
|
4706
|
-
|
4707
|
-
|
4708
|
-
|
4709
|
-
|
4710
|
-
|
4711
|
-
|
4712
|
-
|
4713
|
-
updatedAt: Date;
|
4714
|
-
deletedAt: Date | null;
|
4715
|
-
systemName: string;
|
4716
|
-
displayName: string;
|
4717
|
-
isDefault: boolean;
|
4718
|
-
isArchived: boolean;
|
4719
|
-
isRequired: boolean;
|
4720
|
-
isUnique: boolean;
|
4721
|
-
}, {
|
4722
|
-
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
4408
|
+
fileName: string;
|
4409
|
+
fileKey: string;
|
4410
|
+
bucketName: string;
|
4411
|
+
fileSize: number;
|
4412
|
+
fileUrl: string | null;
|
4413
|
+
}[];
|
4414
|
+
}[];
|
4415
|
+
company: {
|
4723
4416
|
id: string;
|
4724
|
-
position: number;
|
4725
4417
|
createdAt: Date;
|
4726
4418
|
updatedAt: Date;
|
4727
4419
|
deletedAt: Date | null;
|
4728
|
-
|
4729
|
-
|
4730
|
-
|
4731
|
-
|
4732
|
-
|
4733
|
-
|
4734
|
-
|
4735
|
-
|
4736
|
-
|
4737
|
-
|
4738
|
-
updatedAt: z.ZodDate;
|
4739
|
-
deletedAt: z.ZodNullable<z.ZodDate>;
|
4740
|
-
bucketName: z.ZodString;
|
4741
|
-
fileName: z.ZodString;
|
4742
|
-
fileSize: z.ZodNumber;
|
4743
|
-
fileKey: z.ZodString;
|
4744
|
-
fileUrl: z.ZodNullable<z.ZodString>;
|
4745
|
-
status: z.ZodNullable<z.ZodString>;
|
4746
|
-
}, "strip", z.ZodTypeAny, {
|
4420
|
+
name?: string | undefined;
|
4421
|
+
address?: string | null | undefined;
|
4422
|
+
phone?: string | null | undefined;
|
4423
|
+
industry?: string | null | undefined;
|
4424
|
+
} | null;
|
4425
|
+
notes: string | null;
|
4426
|
+
contactProfile: string | null;
|
4427
|
+
socialProfileUrl: string | null;
|
4428
|
+
tags: {
|
4429
|
+
name: string;
|
4747
4430
|
id: string;
|
4748
|
-
status: string | null;
|
4749
4431
|
createdAt: Date;
|
4750
4432
|
updatedAt: Date;
|
4751
4433
|
deletedAt: Date | null;
|
4752
|
-
|
4753
|
-
|
4754
|
-
bucketName: string;
|
4755
|
-
fileSize: number;
|
4756
|
-
fileUrl: string | null;
|
4757
|
-
}, {
|
4434
|
+
}[];
|
4435
|
+
contactEmails: {
|
4758
4436
|
id: string;
|
4759
|
-
|
4437
|
+
isPrimary: boolean;
|
4438
|
+
email: string;
|
4760
4439
|
createdAt: Date;
|
4761
4440
|
updatedAt: Date;
|
4762
4441
|
deletedAt: Date | null;
|
4763
|
-
|
4764
|
-
|
4765
|
-
bucketName: string;
|
4766
|
-
fileSize: number;
|
4767
|
-
fileUrl: string | null;
|
4768
|
-
}>, "many">;
|
4769
|
-
}, "strip", z.ZodTypeAny, {
|
4770
|
-
id: string;
|
4771
|
-
createdAt: Date;
|
4772
|
-
updatedAt: Date;
|
4773
|
-
deletedAt: Date | null;
|
4774
|
-
attribute: {
|
4775
|
-
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
4442
|
+
}[];
|
4443
|
+
contactPhones: {
|
4776
4444
|
id: string;
|
4777
|
-
|
4445
|
+
isPrimary: boolean;
|
4778
4446
|
createdAt: Date;
|
4779
4447
|
updatedAt: Date;
|
4780
4448
|
deletedAt: Date | null;
|
4781
|
-
|
4782
|
-
|
4783
|
-
|
4784
|
-
isArchived: boolean;
|
4785
|
-
isRequired: boolean;
|
4786
|
-
isUnique: boolean;
|
4787
|
-
};
|
4788
|
-
textValue: string | null;
|
4789
|
-
booleanValue: boolean | null;
|
4790
|
-
numberValue: number | null;
|
4791
|
-
dateValue: Date | null;
|
4792
|
-
uploads: {
|
4449
|
+
phone: string;
|
4450
|
+
}[];
|
4451
|
+
activityLogs?: {
|
4793
4452
|
id: string;
|
4794
|
-
|
4453
|
+
description: string;
|
4795
4454
|
createdAt: Date;
|
4796
4455
|
updatedAt: Date;
|
4797
4456
|
deletedAt: Date | null;
|
4798
|
-
|
4799
|
-
|
4800
|
-
|
4801
|
-
|
4802
|
-
|
4803
|
-
|
4804
|
-
|
4457
|
+
entityId: string;
|
4458
|
+
entityType: {
|
4459
|
+
id: string;
|
4460
|
+
description: string | null;
|
4461
|
+
createdAt: Date;
|
4462
|
+
updatedAt: Date;
|
4463
|
+
deletedAt: Date | null;
|
4464
|
+
entity: string;
|
4465
|
+
};
|
4466
|
+
}[] | undefined;
|
4467
|
+
};
|
4468
|
+
message: string;
|
4469
|
+
status: string;
|
4470
|
+
requestId: string;
|
4471
|
+
}, {
|
4472
|
+
data: {
|
4473
|
+
name: string;
|
4805
4474
|
id: string;
|
4475
|
+
channel: string | null;
|
4476
|
+
address: string | null;
|
4806
4477
|
createdAt: Date;
|
4807
4478
|
updatedAt: Date;
|
4808
4479
|
deletedAt: Date | null;
|
4809
|
-
|
4810
|
-
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
4480
|
+
customFields: {
|
4811
4481
|
id: string;
|
4812
|
-
position: number;
|
4813
4482
|
createdAt: Date;
|
4814
4483
|
updatedAt: Date;
|
4815
4484
|
deletedAt: Date | null;
|
4816
|
-
|
4817
|
-
|
4818
|
-
|
4819
|
-
|
4820
|
-
|
4821
|
-
|
4822
|
-
|
4823
|
-
|
4824
|
-
|
4825
|
-
|
4826
|
-
|
4827
|
-
|
4485
|
+
attribute: {
|
4486
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
4487
|
+
id: string;
|
4488
|
+
position: number;
|
4489
|
+
createdAt: Date;
|
4490
|
+
updatedAt: Date;
|
4491
|
+
deletedAt: Date | null;
|
4492
|
+
systemName: string;
|
4493
|
+
displayName: string;
|
4494
|
+
isDefault: boolean;
|
4495
|
+
isArchived: boolean;
|
4496
|
+
isRequired: boolean;
|
4497
|
+
isUnique: boolean;
|
4498
|
+
};
|
4499
|
+
textValue: string | null;
|
4500
|
+
booleanValue: boolean | null;
|
4501
|
+
numberValue: number | null;
|
4502
|
+
dateValue: Date | null;
|
4503
|
+
uploads: {
|
4504
|
+
id: string;
|
4505
|
+
status: string | null;
|
4506
|
+
createdAt: Date;
|
4507
|
+
updatedAt: Date;
|
4508
|
+
deletedAt: Date | null;
|
4509
|
+
fileName: string;
|
4510
|
+
fileKey: string;
|
4511
|
+
bucketName: string;
|
4512
|
+
fileSize: number;
|
4513
|
+
fileUrl: string | null;
|
4514
|
+
}[];
|
4515
|
+
}[];
|
4516
|
+
company: {
|
4828
4517
|
id: string;
|
4829
|
-
status: string | null;
|
4830
4518
|
createdAt: Date;
|
4831
4519
|
updatedAt: Date;
|
4832
4520
|
deletedAt: Date | null;
|
4833
|
-
|
4834
|
-
|
4835
|
-
|
4836
|
-
|
4837
|
-
|
4838
|
-
|
4839
|
-
|
4840
|
-
|
4841
|
-
|
4842
|
-
|
4843
|
-
createdAt: Date;
|
4844
|
-
updatedAt: Date;
|
4845
|
-
deletedAt: Date | null;
|
4846
|
-
attribute: {
|
4847
|
-
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
4521
|
+
name?: string | undefined;
|
4522
|
+
address?: string | null | undefined;
|
4523
|
+
phone?: string | null | undefined;
|
4524
|
+
industry?: string | null | undefined;
|
4525
|
+
} | null;
|
4526
|
+
notes: string | null;
|
4527
|
+
contactProfile: string | null;
|
4528
|
+
socialProfileUrl: string | null;
|
4529
|
+
tags: {
|
4530
|
+
name: string;
|
4848
4531
|
id: string;
|
4849
|
-
position: number;
|
4850
4532
|
createdAt: Date;
|
4851
4533
|
updatedAt: Date;
|
4852
4534
|
deletedAt: Date | null;
|
4853
|
-
|
4854
|
-
|
4855
|
-
isDefault: boolean;
|
4856
|
-
isArchived: boolean;
|
4857
|
-
isRequired: boolean;
|
4858
|
-
isUnique: boolean;
|
4859
|
-
};
|
4860
|
-
textValue: string | null;
|
4861
|
-
booleanValue: boolean | null;
|
4862
|
-
numberValue: number | null;
|
4863
|
-
dateValue: Date | null;
|
4864
|
-
uploads: {
|
4535
|
+
}[];
|
4536
|
+
contactEmails: {
|
4865
4537
|
id: string;
|
4866
|
-
|
4538
|
+
isPrimary: boolean;
|
4539
|
+
email: string;
|
4867
4540
|
createdAt: Date;
|
4868
4541
|
updatedAt: Date;
|
4869
4542
|
deletedAt: Date | null;
|
4870
|
-
fileName: string;
|
4871
|
-
fileKey: string;
|
4872
|
-
bucketName: string;
|
4873
|
-
fileSize: number;
|
4874
|
-
fileUrl: string | null;
|
4875
4543
|
}[];
|
4876
|
-
|
4877
|
-
requestId: string;
|
4878
|
-
}, {
|
4879
|
-
message: {
|
4880
|
-
id: string;
|
4881
|
-
createdAt: Date;
|
4882
|
-
updatedAt: Date;
|
4883
|
-
deletedAt: Date | null;
|
4884
|
-
attribute: {
|
4885
|
-
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
4544
|
+
contactPhones: {
|
4886
4545
|
id: string;
|
4887
|
-
|
4546
|
+
isPrimary: boolean;
|
4888
4547
|
createdAt: Date;
|
4889
4548
|
updatedAt: Date;
|
4890
4549
|
deletedAt: Date | null;
|
4891
|
-
|
4892
|
-
|
4893
|
-
|
4894
|
-
isArchived: boolean;
|
4895
|
-
isRequired: boolean;
|
4896
|
-
isUnique: boolean;
|
4897
|
-
};
|
4898
|
-
textValue: string | null;
|
4899
|
-
booleanValue: boolean | null;
|
4900
|
-
numberValue: number | null;
|
4901
|
-
dateValue: Date | null;
|
4902
|
-
uploads: {
|
4550
|
+
phone: string;
|
4551
|
+
}[];
|
4552
|
+
activityLogs?: {
|
4903
4553
|
id: string;
|
4904
|
-
|
4554
|
+
description: string;
|
4905
4555
|
createdAt: Date;
|
4906
4556
|
updatedAt: Date;
|
4907
4557
|
deletedAt: Date | null;
|
4908
|
-
|
4909
|
-
|
4910
|
-
|
4911
|
-
|
4912
|
-
|
4913
|
-
|
4558
|
+
entityId: string;
|
4559
|
+
entityType: {
|
4560
|
+
id: string;
|
4561
|
+
description: string | null;
|
4562
|
+
createdAt: Date;
|
4563
|
+
updatedAt: Date;
|
4564
|
+
deletedAt: Date | null;
|
4565
|
+
entity: string;
|
4566
|
+
};
|
4567
|
+
}[] | undefined;
|
4914
4568
|
};
|
4569
|
+
message: string;
|
4570
|
+
status: string;
|
4915
4571
|
requestId: string;
|
4916
4572
|
}>;
|
4917
4573
|
400: z.ZodObject<{
|
@@ -4969,11 +4625,72 @@ export declare const publicApiContract: {
|
|
4969
4625
|
error?: any;
|
4970
4626
|
}>;
|
4971
4627
|
};
|
4972
|
-
path: "api/v1/contacts
|
4628
|
+
path: "api/v1/contacts/:id";
|
4973
4629
|
};
|
4974
|
-
|
4975
|
-
|
4976
|
-
|
4630
|
+
updateContact: {
|
4631
|
+
body: z.ZodObject<{
|
4632
|
+
name: z.ZodOptional<z.ZodString>;
|
4633
|
+
email: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
4634
|
+
email: z.ZodString;
|
4635
|
+
isPrimary: z.ZodBoolean;
|
4636
|
+
}, "strip", z.ZodTypeAny, {
|
4637
|
+
isPrimary: boolean;
|
4638
|
+
email: string;
|
4639
|
+
}, {
|
4640
|
+
isPrimary: boolean;
|
4641
|
+
email: string;
|
4642
|
+
}>, "many">>>;
|
4643
|
+
channel: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
4644
|
+
address: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
4645
|
+
phone: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
4646
|
+
phone: z.ZodString;
|
4647
|
+
isPrimary: z.ZodBoolean;
|
4648
|
+
}, "strip", z.ZodTypeAny, {
|
4649
|
+
isPrimary: boolean;
|
4650
|
+
phone: string;
|
4651
|
+
}, {
|
4652
|
+
isPrimary: boolean;
|
4653
|
+
phone: string;
|
4654
|
+
}>, "many">>>;
|
4655
|
+
notes: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
4656
|
+
tags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
4657
|
+
company: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
4658
|
+
customFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
4659
|
+
}, "strip", z.ZodTypeAny, {
|
4660
|
+
name?: string | undefined;
|
4661
|
+
email?: {
|
4662
|
+
isPrimary: boolean;
|
4663
|
+
email: string;
|
4664
|
+
}[] | undefined;
|
4665
|
+
channel?: string | undefined;
|
4666
|
+
address?: string | undefined;
|
4667
|
+
phone?: {
|
4668
|
+
isPrimary: boolean;
|
4669
|
+
phone: string;
|
4670
|
+
}[] | undefined;
|
4671
|
+
notes?: string | undefined;
|
4672
|
+
tags?: string[] | undefined;
|
4673
|
+
company?: string | undefined;
|
4674
|
+
customFields?: Record<string, string> | undefined;
|
4675
|
+
}, {
|
4676
|
+
name?: string | undefined;
|
4677
|
+
email?: {
|
4678
|
+
isPrimary: boolean;
|
4679
|
+
email: string;
|
4680
|
+
}[] | undefined;
|
4681
|
+
channel?: string | undefined;
|
4682
|
+
address?: string | undefined;
|
4683
|
+
phone?: {
|
4684
|
+
isPrimary: boolean;
|
4685
|
+
phone: string;
|
4686
|
+
}[] | undefined;
|
4687
|
+
notes?: string | undefined;
|
4688
|
+
tags?: string[] | undefined;
|
4689
|
+
company?: string | undefined;
|
4690
|
+
customFields?: Record<string, string> | undefined;
|
4691
|
+
}>;
|
4692
|
+
summary: "Update a contact";
|
4693
|
+
method: "PATCH";
|
4977
4694
|
pathParams: z.ZodObject<{
|
4978
4695
|
id: z.ZodString;
|
4979
4696
|
}, "strip", z.ZodTypeAny, {
|
@@ -5478,8 +5195,104 @@ export declare const publicApiContract: {
|
|
5478
5195
|
deletedAt: Date | null;
|
5479
5196
|
entity: string;
|
5480
5197
|
};
|
5481
|
-
}>, "many">>;
|
5482
|
-
}, "strip", z.ZodTypeAny, {
|
5198
|
+
}>, "many">>;
|
5199
|
+
}, "strip", z.ZodTypeAny, {
|
5200
|
+
name: string;
|
5201
|
+
id: string;
|
5202
|
+
channel: string | null;
|
5203
|
+
address: string | null;
|
5204
|
+
createdAt: Date;
|
5205
|
+
updatedAt: Date;
|
5206
|
+
deletedAt: Date | null;
|
5207
|
+
customFields: {
|
5208
|
+
id: string;
|
5209
|
+
createdAt: Date;
|
5210
|
+
updatedAt: Date;
|
5211
|
+
deletedAt: Date | null;
|
5212
|
+
attribute: {
|
5213
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
5214
|
+
id: string;
|
5215
|
+
position: number;
|
5216
|
+
createdAt: Date;
|
5217
|
+
updatedAt: Date;
|
5218
|
+
deletedAt: Date | null;
|
5219
|
+
systemName: string;
|
5220
|
+
displayName: string;
|
5221
|
+
isDefault: boolean;
|
5222
|
+
isArchived: boolean;
|
5223
|
+
isRequired: boolean;
|
5224
|
+
isUnique: boolean;
|
5225
|
+
};
|
5226
|
+
textValue: string | null;
|
5227
|
+
booleanValue: boolean | null;
|
5228
|
+
numberValue: number | null;
|
5229
|
+
dateValue: Date | null;
|
5230
|
+
uploads: {
|
5231
|
+
id: string;
|
5232
|
+
status: string | null;
|
5233
|
+
createdAt: Date;
|
5234
|
+
updatedAt: Date;
|
5235
|
+
deletedAt: Date | null;
|
5236
|
+
fileName: string;
|
5237
|
+
fileKey: string;
|
5238
|
+
bucketName: string;
|
5239
|
+
fileSize: number;
|
5240
|
+
fileUrl: string | null;
|
5241
|
+
}[];
|
5242
|
+
}[];
|
5243
|
+
company: {
|
5244
|
+
id: string;
|
5245
|
+
createdAt: Date;
|
5246
|
+
updatedAt: Date;
|
5247
|
+
deletedAt: Date | null;
|
5248
|
+
name?: string | undefined;
|
5249
|
+
address?: string | null | undefined;
|
5250
|
+
phone?: string | null | undefined;
|
5251
|
+
industry?: string | null | undefined;
|
5252
|
+
} | null;
|
5253
|
+
notes: string | null;
|
5254
|
+
contactProfile: string | null;
|
5255
|
+
socialProfileUrl: string | null;
|
5256
|
+
tags: {
|
5257
|
+
name: string;
|
5258
|
+
id: string;
|
5259
|
+
createdAt: Date;
|
5260
|
+
updatedAt: Date;
|
5261
|
+
deletedAt: Date | null;
|
5262
|
+
}[];
|
5263
|
+
contactEmails: {
|
5264
|
+
id: string;
|
5265
|
+
isPrimary: boolean;
|
5266
|
+
email: string;
|
5267
|
+
createdAt: Date;
|
5268
|
+
updatedAt: Date;
|
5269
|
+
deletedAt: Date | null;
|
5270
|
+
}[];
|
5271
|
+
contactPhones: {
|
5272
|
+
id: string;
|
5273
|
+
isPrimary: boolean;
|
5274
|
+
createdAt: Date;
|
5275
|
+
updatedAt: Date;
|
5276
|
+
deletedAt: Date | null;
|
5277
|
+
phone: string;
|
5278
|
+
}[];
|
5279
|
+
activityLogs?: {
|
5280
|
+
id: string;
|
5281
|
+
description: string;
|
5282
|
+
createdAt: Date;
|
5283
|
+
updatedAt: Date;
|
5284
|
+
deletedAt: Date | null;
|
5285
|
+
entityId: string;
|
5286
|
+
entityType: {
|
5287
|
+
id: string;
|
5288
|
+
description: string | null;
|
5289
|
+
createdAt: Date;
|
5290
|
+
updatedAt: Date;
|
5291
|
+
deletedAt: Date | null;
|
5292
|
+
entity: string;
|
5293
|
+
};
|
5294
|
+
}[] | undefined;
|
5295
|
+
}, {
|
5483
5296
|
name: string;
|
5484
5297
|
id: string;
|
5485
5298
|
channel: string | null;
|
@@ -5575,7 +5388,10 @@ export declare const publicApiContract: {
|
|
5575
5388
|
entity: string;
|
5576
5389
|
};
|
5577
5390
|
}[] | undefined;
|
5578
|
-
}
|
5391
|
+
}>;
|
5392
|
+
requestId: z.ZodString;
|
5393
|
+
}, "strip", z.ZodTypeAny, {
|
5394
|
+
data: {
|
5579
5395
|
name: string;
|
5580
5396
|
id: string;
|
5581
5397
|
channel: string | null;
|
@@ -5671,9 +5487,11 @@ export declare const publicApiContract: {
|
|
5671
5487
|
entity: string;
|
5672
5488
|
};
|
5673
5489
|
}[] | undefined;
|
5674
|
-
}
|
5675
|
-
|
5676
|
-
|
5490
|
+
};
|
5491
|
+
message: string;
|
5492
|
+
status: string;
|
5493
|
+
requestId: string;
|
5494
|
+
}, {
|
5677
5495
|
data: {
|
5678
5496
|
name: string;
|
5679
5497
|
id: string;
|
@@ -5723,157 +5541,434 @@ export declare const publicApiContract: {
|
|
5723
5541
|
createdAt: Date;
|
5724
5542
|
updatedAt: Date;
|
5725
5543
|
deletedAt: Date | null;
|
5726
|
-
name?: string | undefined;
|
5727
|
-
address?: string | null | undefined;
|
5728
|
-
phone?: string | null | undefined;
|
5729
|
-
industry?: string | null | undefined;
|
5730
|
-
} | null;
|
5731
|
-
notes: string | null;
|
5732
|
-
contactProfile: string | null;
|
5733
|
-
socialProfileUrl: string | null;
|
5734
|
-
tags: {
|
5735
|
-
name: string;
|
5544
|
+
name?: string | undefined;
|
5545
|
+
address?: string | null | undefined;
|
5546
|
+
phone?: string | null | undefined;
|
5547
|
+
industry?: string | null | undefined;
|
5548
|
+
} | null;
|
5549
|
+
notes: string | null;
|
5550
|
+
contactProfile: string | null;
|
5551
|
+
socialProfileUrl: string | null;
|
5552
|
+
tags: {
|
5553
|
+
name: string;
|
5554
|
+
id: string;
|
5555
|
+
createdAt: Date;
|
5556
|
+
updatedAt: Date;
|
5557
|
+
deletedAt: Date | null;
|
5558
|
+
}[];
|
5559
|
+
contactEmails: {
|
5560
|
+
id: string;
|
5561
|
+
isPrimary: boolean;
|
5562
|
+
email: string;
|
5563
|
+
createdAt: Date;
|
5564
|
+
updatedAt: Date;
|
5565
|
+
deletedAt: Date | null;
|
5566
|
+
}[];
|
5567
|
+
contactPhones: {
|
5568
|
+
id: string;
|
5569
|
+
isPrimary: boolean;
|
5570
|
+
createdAt: Date;
|
5571
|
+
updatedAt: Date;
|
5572
|
+
deletedAt: Date | null;
|
5573
|
+
phone: string;
|
5574
|
+
}[];
|
5575
|
+
activityLogs?: {
|
5576
|
+
id: string;
|
5577
|
+
description: string;
|
5578
|
+
createdAt: Date;
|
5579
|
+
updatedAt: Date;
|
5580
|
+
deletedAt: Date | null;
|
5581
|
+
entityId: string;
|
5582
|
+
entityType: {
|
5583
|
+
id: string;
|
5584
|
+
description: string | null;
|
5585
|
+
createdAt: Date;
|
5586
|
+
updatedAt: Date;
|
5587
|
+
deletedAt: Date | null;
|
5588
|
+
entity: string;
|
5589
|
+
};
|
5590
|
+
}[] | undefined;
|
5591
|
+
};
|
5592
|
+
message: string;
|
5593
|
+
status: string;
|
5594
|
+
requestId: string;
|
5595
|
+
}>;
|
5596
|
+
400: z.ZodObject<{
|
5597
|
+
message: z.ZodString;
|
5598
|
+
}, "strip", z.ZodTypeAny, {
|
5599
|
+
message: string;
|
5600
|
+
}, {
|
5601
|
+
message: string;
|
5602
|
+
}>;
|
5603
|
+
409: z.ZodObject<{
|
5604
|
+
message: z.ZodString;
|
5605
|
+
}, "strip", z.ZodTypeAny, {
|
5606
|
+
message: string;
|
5607
|
+
}, {
|
5608
|
+
message: string;
|
5609
|
+
}>;
|
5610
|
+
401: z.ZodObject<{
|
5611
|
+
message: z.ZodString;
|
5612
|
+
error: z.ZodAny;
|
5613
|
+
}, "strip", z.ZodTypeAny, {
|
5614
|
+
message: string;
|
5615
|
+
error?: any;
|
5616
|
+
}, {
|
5617
|
+
message: string;
|
5618
|
+
error?: any;
|
5619
|
+
}>;
|
5620
|
+
404: z.ZodObject<{
|
5621
|
+
message: z.ZodString;
|
5622
|
+
error: z.ZodAny;
|
5623
|
+
}, "strip", z.ZodTypeAny, {
|
5624
|
+
message: string;
|
5625
|
+
error?: any;
|
5626
|
+
}, {
|
5627
|
+
message: string;
|
5628
|
+
error?: any;
|
5629
|
+
}>;
|
5630
|
+
422: z.ZodObject<{
|
5631
|
+
message: z.ZodString;
|
5632
|
+
error: z.ZodAny;
|
5633
|
+
}, "strip", z.ZodTypeAny, {
|
5634
|
+
message: string;
|
5635
|
+
error?: any;
|
5636
|
+
}, {
|
5637
|
+
message: string;
|
5638
|
+
error?: any;
|
5639
|
+
}>;
|
5640
|
+
500: z.ZodObject<{
|
5641
|
+
message: z.ZodString;
|
5642
|
+
error: z.ZodAny;
|
5643
|
+
}, "strip", z.ZodTypeAny, {
|
5644
|
+
message: string;
|
5645
|
+
error?: any;
|
5646
|
+
}, {
|
5647
|
+
message: string;
|
5648
|
+
error?: any;
|
5649
|
+
}>;
|
5650
|
+
};
|
5651
|
+
path: "api/v1/contacts/:id";
|
5652
|
+
};
|
5653
|
+
createContactAttachmentRecords: {
|
5654
|
+
body: z.ZodObject<{
|
5655
|
+
contactId: z.ZodString;
|
5656
|
+
attributeId: z.ZodString;
|
5657
|
+
contactAttachmentRecords: z.ZodArray<z.ZodObject<{
|
5658
|
+
bucketName: z.ZodString;
|
5659
|
+
fileKey: z.ZodString;
|
5660
|
+
fileName: z.ZodString;
|
5661
|
+
fileSize: z.ZodNumber;
|
5662
|
+
url: z.ZodString;
|
5663
|
+
}, "strip", z.ZodTypeAny, {
|
5664
|
+
url: string;
|
5665
|
+
fileName: string;
|
5666
|
+
fileKey: string;
|
5667
|
+
bucketName: string;
|
5668
|
+
fileSize: number;
|
5669
|
+
}, {
|
5670
|
+
url: string;
|
5671
|
+
fileName: string;
|
5672
|
+
fileKey: string;
|
5673
|
+
bucketName: string;
|
5674
|
+
fileSize: number;
|
5675
|
+
}>, "many">;
|
5676
|
+
}, "strip", z.ZodTypeAny, {
|
5677
|
+
attributeId: string;
|
5678
|
+
contactId: string;
|
5679
|
+
contactAttachmentRecords: {
|
5680
|
+
url: string;
|
5681
|
+
fileName: string;
|
5682
|
+
fileKey: string;
|
5683
|
+
bucketName: string;
|
5684
|
+
fileSize: number;
|
5685
|
+
}[];
|
5686
|
+
}, {
|
5687
|
+
attributeId: string;
|
5688
|
+
contactId: string;
|
5689
|
+
contactAttachmentRecords: {
|
5690
|
+
url: string;
|
5691
|
+
fileName: string;
|
5692
|
+
fileKey: string;
|
5693
|
+
bucketName: string;
|
5694
|
+
fileSize: number;
|
5695
|
+
}[];
|
5696
|
+
}>;
|
5697
|
+
summary: "Create a new contact attachment";
|
5698
|
+
method: "POST";
|
5699
|
+
responses: {
|
5700
|
+
201: z.ZodObject<{
|
5701
|
+
requestId: z.ZodString;
|
5702
|
+
message: z.ZodObject<{
|
5703
|
+
id: z.ZodString;
|
5704
|
+
createdAt: z.ZodDate;
|
5705
|
+
updatedAt: z.ZodDate;
|
5706
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
5707
|
+
textValue: z.ZodNullable<z.ZodString>;
|
5708
|
+
booleanValue: z.ZodNullable<z.ZodBoolean>;
|
5709
|
+
numberValue: z.ZodNullable<z.ZodNumber>;
|
5710
|
+
dateValue: z.ZodNullable<z.ZodDate>;
|
5711
|
+
attribute: z.ZodObject<Omit<{
|
5712
|
+
id: z.ZodString;
|
5713
|
+
createdAt: z.ZodDate;
|
5714
|
+
updatedAt: z.ZodDate;
|
5715
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
5716
|
+
systemName: z.ZodString;
|
5717
|
+
displayName: z.ZodString;
|
5718
|
+
type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
|
5719
|
+
position: z.ZodNumber;
|
5720
|
+
isDefault: z.ZodBoolean;
|
5721
|
+
isArchived: z.ZodBoolean;
|
5722
|
+
isRequired: z.ZodBoolean;
|
5723
|
+
isUnique: z.ZodBoolean;
|
5724
|
+
options: z.ZodArray<z.ZodObject<{
|
5725
|
+
position: z.ZodNumber;
|
5726
|
+
value: z.ZodString;
|
5727
|
+
label: z.ZodString;
|
5728
|
+
isDefault: z.ZodBoolean;
|
5729
|
+
id: z.ZodString;
|
5730
|
+
}, "strip", z.ZodTypeAny, {
|
5731
|
+
id: string;
|
5732
|
+
position: number;
|
5733
|
+
value: string;
|
5734
|
+
label: string;
|
5735
|
+
isDefault: boolean;
|
5736
|
+
}, {
|
5737
|
+
id: string;
|
5738
|
+
position: number;
|
5739
|
+
value: string;
|
5740
|
+
label: string;
|
5741
|
+
isDefault: boolean;
|
5742
|
+
}>, "many">;
|
5743
|
+
group: z.ZodObject<{
|
5744
|
+
id: z.ZodString;
|
5745
|
+
createdAt: z.ZodDate;
|
5746
|
+
updatedAt: z.ZodDate;
|
5747
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
5748
|
+
systemName: z.ZodString;
|
5749
|
+
displayName: z.ZodString;
|
5750
|
+
}, "strip", z.ZodTypeAny, {
|
5751
|
+
id: string;
|
5752
|
+
createdAt: Date;
|
5753
|
+
updatedAt: Date;
|
5754
|
+
deletedAt: Date | null;
|
5755
|
+
systemName: string;
|
5756
|
+
displayName: string;
|
5757
|
+
}, {
|
5758
|
+
id: string;
|
5759
|
+
createdAt: Date;
|
5760
|
+
updatedAt: Date;
|
5761
|
+
deletedAt: Date | null;
|
5762
|
+
systemName: string;
|
5763
|
+
displayName: string;
|
5764
|
+
}>;
|
5765
|
+
}, "options" | "group">, "strip", z.ZodTypeAny, {
|
5766
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
5767
|
+
id: string;
|
5768
|
+
position: number;
|
5769
|
+
createdAt: Date;
|
5770
|
+
updatedAt: Date;
|
5771
|
+
deletedAt: Date | null;
|
5772
|
+
systemName: string;
|
5773
|
+
displayName: string;
|
5774
|
+
isDefault: boolean;
|
5775
|
+
isArchived: boolean;
|
5776
|
+
isRequired: boolean;
|
5777
|
+
isUnique: boolean;
|
5778
|
+
}, {
|
5779
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
5780
|
+
id: string;
|
5781
|
+
position: number;
|
5782
|
+
createdAt: Date;
|
5783
|
+
updatedAt: Date;
|
5784
|
+
deletedAt: Date | null;
|
5785
|
+
systemName: string;
|
5786
|
+
displayName: string;
|
5787
|
+
isDefault: boolean;
|
5788
|
+
isArchived: boolean;
|
5789
|
+
isRequired: boolean;
|
5790
|
+
isUnique: boolean;
|
5791
|
+
}>;
|
5792
|
+
uploads: z.ZodArray<z.ZodObject<{
|
5793
|
+
id: z.ZodString;
|
5794
|
+
createdAt: z.ZodDate;
|
5795
|
+
updatedAt: z.ZodDate;
|
5796
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
5797
|
+
bucketName: z.ZodString;
|
5798
|
+
fileName: z.ZodString;
|
5799
|
+
fileSize: z.ZodNumber;
|
5800
|
+
fileKey: z.ZodString;
|
5801
|
+
fileUrl: z.ZodNullable<z.ZodString>;
|
5802
|
+
status: z.ZodNullable<z.ZodString>;
|
5803
|
+
}, "strip", z.ZodTypeAny, {
|
5736
5804
|
id: string;
|
5805
|
+
status: string | null;
|
5737
5806
|
createdAt: Date;
|
5738
5807
|
updatedAt: Date;
|
5739
5808
|
deletedAt: Date | null;
|
5740
|
-
|
5741
|
-
|
5809
|
+
fileName: string;
|
5810
|
+
fileKey: string;
|
5811
|
+
bucketName: string;
|
5812
|
+
fileSize: number;
|
5813
|
+
fileUrl: string | null;
|
5814
|
+
}, {
|
5742
5815
|
id: string;
|
5743
|
-
|
5744
|
-
email: string;
|
5816
|
+
status: string | null;
|
5745
5817
|
createdAt: Date;
|
5746
5818
|
updatedAt: Date;
|
5747
5819
|
deletedAt: Date | null;
|
5748
|
-
|
5749
|
-
|
5820
|
+
fileName: string;
|
5821
|
+
fileKey: string;
|
5822
|
+
bucketName: string;
|
5823
|
+
fileSize: number;
|
5824
|
+
fileUrl: string | null;
|
5825
|
+
}>, "many">;
|
5826
|
+
}, "strip", z.ZodTypeAny, {
|
5827
|
+
id: string;
|
5828
|
+
createdAt: Date;
|
5829
|
+
updatedAt: Date;
|
5830
|
+
deletedAt: Date | null;
|
5831
|
+
attribute: {
|
5832
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
5750
5833
|
id: string;
|
5751
|
-
|
5834
|
+
position: number;
|
5752
5835
|
createdAt: Date;
|
5753
5836
|
updatedAt: Date;
|
5754
5837
|
deletedAt: Date | null;
|
5755
|
-
|
5756
|
-
|
5757
|
-
|
5838
|
+
systemName: string;
|
5839
|
+
displayName: string;
|
5840
|
+
isDefault: boolean;
|
5841
|
+
isArchived: boolean;
|
5842
|
+
isRequired: boolean;
|
5843
|
+
isUnique: boolean;
|
5844
|
+
};
|
5845
|
+
textValue: string | null;
|
5846
|
+
booleanValue: boolean | null;
|
5847
|
+
numberValue: number | null;
|
5848
|
+
dateValue: Date | null;
|
5849
|
+
uploads: {
|
5758
5850
|
id: string;
|
5759
|
-
|
5851
|
+
status: string | null;
|
5760
5852
|
createdAt: Date;
|
5761
5853
|
updatedAt: Date;
|
5762
5854
|
deletedAt: Date | null;
|
5763
|
-
|
5764
|
-
|
5765
|
-
|
5766
|
-
|
5767
|
-
|
5768
|
-
|
5769
|
-
|
5770
|
-
entity: string;
|
5771
|
-
};
|
5772
|
-
}[] | undefined;
|
5773
|
-
};
|
5774
|
-
message: string;
|
5775
|
-
status: string;
|
5776
|
-
requestId: string;
|
5777
|
-
}, {
|
5778
|
-
data: {
|
5779
|
-
name: string;
|
5855
|
+
fileName: string;
|
5856
|
+
fileKey: string;
|
5857
|
+
bucketName: string;
|
5858
|
+
fileSize: number;
|
5859
|
+
fileUrl: string | null;
|
5860
|
+
}[];
|
5861
|
+
}, {
|
5780
5862
|
id: string;
|
5781
|
-
channel: string | null;
|
5782
|
-
address: string | null;
|
5783
5863
|
createdAt: Date;
|
5784
5864
|
updatedAt: Date;
|
5785
5865
|
deletedAt: Date | null;
|
5786
|
-
|
5866
|
+
attribute: {
|
5867
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
5787
5868
|
id: string;
|
5869
|
+
position: number;
|
5788
5870
|
createdAt: Date;
|
5789
5871
|
updatedAt: Date;
|
5790
5872
|
deletedAt: Date | null;
|
5791
|
-
|
5792
|
-
|
5793
|
-
|
5794
|
-
|
5795
|
-
|
5796
|
-
|
5797
|
-
|
5798
|
-
|
5799
|
-
|
5800
|
-
|
5801
|
-
|
5802
|
-
|
5803
|
-
isUnique: boolean;
|
5804
|
-
};
|
5805
|
-
textValue: string | null;
|
5806
|
-
booleanValue: boolean | null;
|
5807
|
-
numberValue: number | null;
|
5808
|
-
dateValue: Date | null;
|
5809
|
-
uploads: {
|
5810
|
-
id: string;
|
5811
|
-
status: string | null;
|
5812
|
-
createdAt: Date;
|
5813
|
-
updatedAt: Date;
|
5814
|
-
deletedAt: Date | null;
|
5815
|
-
fileName: string;
|
5816
|
-
fileKey: string;
|
5817
|
-
bucketName: string;
|
5818
|
-
fileSize: number;
|
5819
|
-
fileUrl: string | null;
|
5820
|
-
}[];
|
5821
|
-
}[];
|
5822
|
-
company: {
|
5873
|
+
systemName: string;
|
5874
|
+
displayName: string;
|
5875
|
+
isDefault: boolean;
|
5876
|
+
isArchived: boolean;
|
5877
|
+
isRequired: boolean;
|
5878
|
+
isUnique: boolean;
|
5879
|
+
};
|
5880
|
+
textValue: string | null;
|
5881
|
+
booleanValue: boolean | null;
|
5882
|
+
numberValue: number | null;
|
5883
|
+
dateValue: Date | null;
|
5884
|
+
uploads: {
|
5823
5885
|
id: string;
|
5886
|
+
status: string | null;
|
5824
5887
|
createdAt: Date;
|
5825
5888
|
updatedAt: Date;
|
5826
5889
|
deletedAt: Date | null;
|
5827
|
-
|
5828
|
-
|
5829
|
-
|
5830
|
-
|
5831
|
-
|
5832
|
-
|
5833
|
-
|
5834
|
-
|
5835
|
-
|
5836
|
-
|
5890
|
+
fileName: string;
|
5891
|
+
fileKey: string;
|
5892
|
+
bucketName: string;
|
5893
|
+
fileSize: number;
|
5894
|
+
fileUrl: string | null;
|
5895
|
+
}[];
|
5896
|
+
}>;
|
5897
|
+
}, "strip", z.ZodTypeAny, {
|
5898
|
+
message: {
|
5899
|
+
id: string;
|
5900
|
+
createdAt: Date;
|
5901
|
+
updatedAt: Date;
|
5902
|
+
deletedAt: Date | null;
|
5903
|
+
attribute: {
|
5904
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
5837
5905
|
id: string;
|
5906
|
+
position: number;
|
5838
5907
|
createdAt: Date;
|
5839
5908
|
updatedAt: Date;
|
5840
5909
|
deletedAt: Date | null;
|
5841
|
-
|
5842
|
-
|
5910
|
+
systemName: string;
|
5911
|
+
displayName: string;
|
5912
|
+
isDefault: boolean;
|
5913
|
+
isArchived: boolean;
|
5914
|
+
isRequired: boolean;
|
5915
|
+
isUnique: boolean;
|
5916
|
+
};
|
5917
|
+
textValue: string | null;
|
5918
|
+
booleanValue: boolean | null;
|
5919
|
+
numberValue: number | null;
|
5920
|
+
dateValue: Date | null;
|
5921
|
+
uploads: {
|
5843
5922
|
id: string;
|
5844
|
-
|
5845
|
-
email: string;
|
5923
|
+
status: string | null;
|
5846
5924
|
createdAt: Date;
|
5847
5925
|
updatedAt: Date;
|
5848
5926
|
deletedAt: Date | null;
|
5927
|
+
fileName: string;
|
5928
|
+
fileKey: string;
|
5929
|
+
bucketName: string;
|
5930
|
+
fileSize: number;
|
5931
|
+
fileUrl: string | null;
|
5849
5932
|
}[];
|
5850
|
-
|
5933
|
+
};
|
5934
|
+
requestId: string;
|
5935
|
+
}, {
|
5936
|
+
message: {
|
5937
|
+
id: string;
|
5938
|
+
createdAt: Date;
|
5939
|
+
updatedAt: Date;
|
5940
|
+
deletedAt: Date | null;
|
5941
|
+
attribute: {
|
5942
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
5851
5943
|
id: string;
|
5852
|
-
|
5944
|
+
position: number;
|
5853
5945
|
createdAt: Date;
|
5854
5946
|
updatedAt: Date;
|
5855
5947
|
deletedAt: Date | null;
|
5856
|
-
|
5857
|
-
|
5858
|
-
|
5948
|
+
systemName: string;
|
5949
|
+
displayName: string;
|
5950
|
+
isDefault: boolean;
|
5951
|
+
isArchived: boolean;
|
5952
|
+
isRequired: boolean;
|
5953
|
+
isUnique: boolean;
|
5954
|
+
};
|
5955
|
+
textValue: string | null;
|
5956
|
+
booleanValue: boolean | null;
|
5957
|
+
numberValue: number | null;
|
5958
|
+
dateValue: Date | null;
|
5959
|
+
uploads: {
|
5859
5960
|
id: string;
|
5860
|
-
|
5961
|
+
status: string | null;
|
5861
5962
|
createdAt: Date;
|
5862
5963
|
updatedAt: Date;
|
5863
5964
|
deletedAt: Date | null;
|
5864
|
-
|
5865
|
-
|
5866
|
-
|
5867
|
-
|
5868
|
-
|
5869
|
-
|
5870
|
-
deletedAt: Date | null;
|
5871
|
-
entity: string;
|
5872
|
-
};
|
5873
|
-
}[] | undefined;
|
5965
|
+
fileName: string;
|
5966
|
+
fileKey: string;
|
5967
|
+
bucketName: string;
|
5968
|
+
fileSize: number;
|
5969
|
+
fileUrl: string | null;
|
5970
|
+
}[];
|
5874
5971
|
};
|
5875
|
-
message: string;
|
5876
|
-
status: string;
|
5877
5972
|
requestId: string;
|
5878
5973
|
}>;
|
5879
5974
|
400: z.ZodObject<{
|
@@ -5931,7 +6026,7 @@ export declare const publicApiContract: {
|
|
5931
6026
|
error?: any;
|
5932
6027
|
}>;
|
5933
6028
|
};
|
5934
|
-
path: "api/v1/contacts
|
6029
|
+
path: "api/v1/contacts/attachments";
|
5935
6030
|
};
|
5936
6031
|
deleteContact: {
|
5937
6032
|
body: null;
|