@kl1/contracts 1.0.11 → 1.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/dist/index.js +855 -609
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +854 -609
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/src/app/index.d.ts +17 -0
  6. package/dist/src/app/index.d.ts.map +1 -0
  7. package/dist/src/category/index.d.ts +3 -3
  8. package/dist/src/chat/index.d.ts +15806 -6953
  9. package/dist/src/chat/index.d.ts.map +1 -1
  10. package/dist/src/chat/schema.d.ts +4233 -291
  11. package/dist/src/chat/schema.d.ts.map +1 -1
  12. package/dist/src/chat/validation.d.ts +5135 -495
  13. package/dist/src/chat/validation.d.ts.map +1 -1
  14. package/dist/src/company/schema.d.ts +9 -9
  15. package/dist/src/contact/index.d.ts +1352 -46
  16. package/dist/src/contact/index.d.ts.map +1 -1
  17. package/dist/src/contact/schema.d.ts +107 -15
  18. package/dist/src/contact/schema.d.ts.map +1 -1
  19. package/dist/src/contact/validation.d.ts +883 -15
  20. package/dist/src/contact/validation.d.ts.map +1 -1
  21. package/dist/src/contract.d.ts +37686 -20356
  22. package/dist/src/contract.d.ts.map +1 -1
  23. package/dist/src/custom-field/index.d.ts +4 -0
  24. package/dist/src/custom-field/index.d.ts.map +1 -0
  25. package/dist/src/custom-field/validation.d.ts +15 -0
  26. package/dist/src/custom-field/validation.d.ts.map +1 -0
  27. package/dist/src/extension/index.d.ts +12 -12
  28. package/dist/src/extension/schema.d.ts.map +1 -1
  29. package/dist/src/extension/validation.d.ts +6 -6
  30. package/dist/src/index.d.ts +1 -0
  31. package/dist/src/index.d.ts.map +1 -1
  32. package/dist/src/mail/mail-contract.d.ts +6 -6
  33. package/dist/src/mail/mail-server.d.ts +216 -0
  34. package/dist/src/mail/mail-server.d.ts.map +1 -0
  35. package/dist/src/mail/room-contract.d.ts +6 -6
  36. package/dist/src/mail/schemas/room-validation.schema.d.ts +6 -6
  37. package/dist/src/messenger/index.d.ts +5287 -647
  38. package/dist/src/messenger/index.d.ts.map +1 -1
  39. package/dist/src/permission/schema.d.ts.map +1 -1
  40. package/dist/src/role/index.d.ts +3 -3
  41. package/dist/src/role/schema.d.ts.map +1 -1
  42. package/dist/src/telephony-agent-presence-status/index.d.ts +17 -17
  43. package/dist/src/telephony-agent-presence-status/schema.d.ts +3 -3
  44. package/dist/src/telephony-agent-presence-status/validation.d.ts +6 -6
  45. package/dist/src/user/index.d.ts +9 -9
  46. package/dist/src/user/schema.d.ts.map +1 -1
  47. package/dist/src/user/validation.d.ts +6 -6
  48. package/dist/src/user-presence-status-log/index.d.ts +3 -3
  49. package/dist/src/widget/index.d.ts +3 -3
  50. package/dist/src/wrap-up-form/index.d.ts +27 -27
  51. package/dist/src/wrap-up-form/validation.d.ts +24 -24
  52. package/dist/utils.d.ts +6 -6
  53. package/package.json +1 -1
@@ -3,6 +3,7 @@ import { ContactContractValidationSchema } from './validation';
3
3
  import { ContactSchema } from './schema';
4
4
  export type CreateContactRequest = z.infer<typeof ContactContractValidationSchema.create.request>;
5
5
  export type CreateContactResponse = z.infer<typeof ContactContractValidationSchema.create.response>;
6
+ export type GetAllContactRequest = z.infer<typeof ContactContractValidationSchema.getAll.request>;
6
7
  export type UpdateContactRequest = Partial<CreateContactRequest>;
7
8
  export type UpdateContactResponse = CreateContactResponse;
8
9
  export type Contact = z.infer<typeof ContactSchema>;
@@ -397,9 +398,9 @@ export declare const contactContract: {
397
398
  updatedAt: z.ZodDate;
398
399
  deletedAt: z.ZodNullable<z.ZodDate>;
399
400
  name: z.ZodOptional<z.ZodString>;
400
- phone: z.ZodOptional<z.ZodString>;
401
- address: z.ZodOptional<z.ZodString>;
402
- industry: z.ZodOptional<z.ZodString>;
401
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
402
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
403
+ industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
403
404
  customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
404
405
  id: z.ZodString;
405
406
  createdAt: z.ZodDate;
@@ -542,19 +543,19 @@ export declare const contactContract: {
542
543
  createdAt: Date;
543
544
  updatedAt: Date;
544
545
  deletedAt: Date | null;
545
- address?: string | undefined;
546
+ address?: string | null | undefined;
546
547
  name?: string | undefined;
547
- phone?: string | undefined;
548
- industry?: string | undefined;
548
+ phone?: string | null | undefined;
549
+ industry?: string | null | undefined;
549
550
  }, {
550
551
  id: string;
551
552
  createdAt: Date;
552
553
  updatedAt: Date;
553
554
  deletedAt: Date | null;
554
- address?: string | undefined;
555
+ address?: string | null | undefined;
555
556
  name?: string | undefined;
556
- phone?: string | undefined;
557
- industry?: string | undefined;
557
+ phone?: string | null | undefined;
558
+ industry?: string | null | undefined;
558
559
  }>>;
559
560
  customFields: z.ZodArray<z.ZodObject<{
560
561
  id: z.ZodString;
@@ -839,30 +840,1147 @@ export declare const contactContract: {
839
840
  phone: string;
840
841
  }>, "many">;
841
842
  activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
843
+ id: z.ZodString;
844
+ createdAt: z.ZodDate;
845
+ updatedAt: z.ZodDate;
846
+ deletedAt: z.ZodNullable<z.ZodDate>;
847
+ entityId: z.ZodString;
848
+ description: z.ZodString;
849
+ entityType: z.ZodObject<{
850
+ id: z.ZodString;
851
+ createdAt: z.ZodDate;
852
+ updatedAt: z.ZodDate;
853
+ deletedAt: z.ZodNullable<z.ZodDate>;
854
+ entity: z.ZodString;
855
+ description: z.ZodNullable<z.ZodString>;
856
+ }, "strip", z.ZodTypeAny, {
857
+ id: string;
858
+ description: string | null;
859
+ createdAt: Date;
860
+ updatedAt: Date;
861
+ deletedAt: Date | null;
862
+ entity: string;
863
+ }, {
864
+ id: string;
865
+ description: string | null;
866
+ createdAt: Date;
867
+ updatedAt: Date;
868
+ deletedAt: Date | null;
869
+ entity: string;
870
+ }>;
871
+ }, "strip", z.ZodTypeAny, {
872
+ id: string;
873
+ description: string;
874
+ createdAt: Date;
875
+ updatedAt: Date;
876
+ deletedAt: Date | null;
877
+ entityId: string;
878
+ entityType: {
879
+ id: string;
880
+ description: string | null;
881
+ createdAt: Date;
882
+ updatedAt: Date;
883
+ deletedAt: Date | null;
884
+ entity: string;
885
+ };
886
+ }, {
887
+ id: string;
888
+ description: string;
889
+ createdAt: Date;
890
+ updatedAt: Date;
891
+ deletedAt: Date | null;
892
+ entityId: string;
893
+ entityType: {
894
+ id: string;
895
+ description: string | null;
896
+ createdAt: Date;
897
+ updatedAt: Date;
898
+ deletedAt: Date | null;
899
+ entity: string;
900
+ };
901
+ }>, "many">>;
902
+ }, "strip", z.ZodTypeAny, {
903
+ id: string;
904
+ channel: string | null;
905
+ address: string | null;
906
+ name: string;
907
+ createdAt: Date;
908
+ updatedAt: Date;
909
+ deletedAt: Date | null;
910
+ customFields: {
911
+ id: string;
912
+ createdAt: Date;
913
+ updatedAt: Date;
914
+ deletedAt: Date | null;
915
+ attribute: {
916
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
917
+ id: string;
918
+ position: number;
919
+ createdAt: Date;
920
+ updatedAt: Date;
921
+ deletedAt: Date | null;
922
+ isDefault: boolean;
923
+ systemName: string;
924
+ displayName: string;
925
+ isArchived: boolean;
926
+ isRequired: boolean;
927
+ isUnique: boolean;
928
+ };
929
+ textValue: string | null;
930
+ booleanValue: boolean | null;
931
+ numberValue: number | null;
932
+ dateValue: Date | null;
933
+ uploads: {
934
+ id: string;
935
+ createdAt: Date;
936
+ updatedAt: Date;
937
+ deletedAt: Date | null;
938
+ customFieldId: string;
939
+ upload: {
940
+ id: string;
941
+ createdAt: Date;
942
+ updatedAt: Date;
943
+ deletedAt: Date | null;
944
+ fileName: string;
945
+ fileKey: string;
946
+ bucketName: string;
947
+ fileSize: number;
948
+ };
949
+ }[];
950
+ }[];
951
+ notes: string | null;
952
+ contactProfile: string | null;
953
+ socialProfileUrl: string | null;
954
+ tags: {
955
+ id: string;
956
+ name: string;
957
+ createdAt: Date;
958
+ updatedAt: Date;
959
+ deletedAt: Date | null;
960
+ }[];
961
+ company: {
962
+ id: string;
963
+ createdAt: Date;
964
+ updatedAt: Date;
965
+ deletedAt: Date | null;
966
+ address?: string | null | undefined;
967
+ name?: string | undefined;
968
+ phone?: string | null | undefined;
969
+ industry?: string | null | undefined;
970
+ } | null;
971
+ contactEmails: {
972
+ id: string;
973
+ isPrimary: boolean;
974
+ email: string;
975
+ createdAt: Date;
976
+ updatedAt: Date;
977
+ deletedAt: Date | null;
978
+ }[];
979
+ contactPhones: {
980
+ id: string;
981
+ isPrimary: boolean;
982
+ createdAt: Date;
983
+ updatedAt: Date;
984
+ deletedAt: Date | null;
985
+ phone: string;
986
+ }[];
987
+ activityLogs?: {
988
+ id: string;
989
+ description: string;
990
+ createdAt: Date;
991
+ updatedAt: Date;
992
+ deletedAt: Date | null;
993
+ entityId: string;
994
+ entityType: {
995
+ id: string;
996
+ description: string | null;
997
+ createdAt: Date;
998
+ updatedAt: Date;
999
+ deletedAt: Date | null;
1000
+ entity: string;
1001
+ };
1002
+ }[] | undefined;
1003
+ }, {
1004
+ id: string;
1005
+ channel: string | null;
1006
+ address: string | null;
1007
+ name: string;
1008
+ createdAt: Date;
1009
+ updatedAt: Date;
1010
+ deletedAt: Date | null;
1011
+ customFields: {
1012
+ id: string;
1013
+ createdAt: Date;
1014
+ updatedAt: Date;
1015
+ deletedAt: Date | null;
1016
+ attribute: {
1017
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1018
+ id: string;
1019
+ position: number;
1020
+ createdAt: Date;
1021
+ updatedAt: Date;
1022
+ deletedAt: Date | null;
1023
+ isDefault: boolean;
1024
+ systemName: string;
1025
+ displayName: string;
1026
+ isArchived: boolean;
1027
+ isRequired: boolean;
1028
+ isUnique: boolean;
1029
+ };
1030
+ textValue: string | null;
1031
+ booleanValue: boolean | null;
1032
+ numberValue: number | null;
1033
+ dateValue: Date | null;
1034
+ uploads: {
1035
+ id: string;
1036
+ createdAt: Date;
1037
+ updatedAt: Date;
1038
+ deletedAt: Date | null;
1039
+ customFieldId: string;
1040
+ upload: {
1041
+ id: string;
1042
+ createdAt: Date;
1043
+ updatedAt: Date;
1044
+ deletedAt: Date | null;
1045
+ fileName: string;
1046
+ fileKey: string;
1047
+ bucketName: string;
1048
+ fileSize: number;
1049
+ };
1050
+ }[];
1051
+ }[];
1052
+ notes: string | null;
1053
+ contactProfile: string | null;
1054
+ socialProfileUrl: string | null;
1055
+ tags: {
1056
+ id: string;
1057
+ name: string;
1058
+ createdAt: Date;
1059
+ updatedAt: Date;
1060
+ deletedAt: Date | null;
1061
+ }[];
1062
+ company: {
1063
+ id: string;
1064
+ createdAt: Date;
1065
+ updatedAt: Date;
1066
+ deletedAt: Date | null;
1067
+ address?: string | null | undefined;
1068
+ name?: string | undefined;
1069
+ phone?: string | null | undefined;
1070
+ industry?: string | null | undefined;
1071
+ } | null;
1072
+ contactEmails: {
1073
+ id: string;
1074
+ isPrimary: boolean;
1075
+ email: string;
1076
+ createdAt: Date;
1077
+ updatedAt: Date;
1078
+ deletedAt: Date | null;
1079
+ }[];
1080
+ contactPhones: {
1081
+ id: string;
1082
+ isPrimary: boolean;
1083
+ createdAt: Date;
1084
+ updatedAt: Date;
1085
+ deletedAt: Date | null;
1086
+ phone: string;
1087
+ }[];
1088
+ activityLogs?: {
1089
+ id: string;
1090
+ description: string;
1091
+ createdAt: Date;
1092
+ updatedAt: Date;
1093
+ deletedAt: Date | null;
1094
+ entityId: string;
1095
+ entityType: {
1096
+ id: string;
1097
+ description: string | null;
1098
+ createdAt: Date;
1099
+ updatedAt: Date;
1100
+ deletedAt: Date | null;
1101
+ entity: string;
1102
+ };
1103
+ }[] | undefined;
1104
+ }>;
1105
+ }, "strip", z.ZodTypeAny, {
1106
+ data: {
1107
+ id: string;
1108
+ channel: string | null;
1109
+ address: string | null;
1110
+ name: string;
1111
+ createdAt: Date;
1112
+ updatedAt: Date;
1113
+ deletedAt: Date | null;
1114
+ customFields: {
1115
+ id: string;
1116
+ createdAt: Date;
1117
+ updatedAt: Date;
1118
+ deletedAt: Date | null;
1119
+ attribute: {
1120
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1121
+ id: string;
1122
+ position: number;
1123
+ createdAt: Date;
1124
+ updatedAt: Date;
1125
+ deletedAt: Date | null;
1126
+ isDefault: boolean;
1127
+ systemName: string;
1128
+ displayName: string;
1129
+ isArchived: boolean;
1130
+ isRequired: boolean;
1131
+ isUnique: boolean;
1132
+ };
1133
+ textValue: string | null;
1134
+ booleanValue: boolean | null;
1135
+ numberValue: number | null;
1136
+ dateValue: Date | null;
1137
+ uploads: {
1138
+ id: string;
1139
+ createdAt: Date;
1140
+ updatedAt: Date;
1141
+ deletedAt: Date | null;
1142
+ customFieldId: string;
1143
+ upload: {
1144
+ id: string;
1145
+ createdAt: Date;
1146
+ updatedAt: Date;
1147
+ deletedAt: Date | null;
1148
+ fileName: string;
1149
+ fileKey: string;
1150
+ bucketName: string;
1151
+ fileSize: number;
1152
+ };
1153
+ }[];
1154
+ }[];
1155
+ notes: string | null;
1156
+ contactProfile: string | null;
1157
+ socialProfileUrl: string | null;
1158
+ tags: {
1159
+ id: string;
1160
+ name: string;
1161
+ createdAt: Date;
1162
+ updatedAt: Date;
1163
+ deletedAt: Date | null;
1164
+ }[];
1165
+ company: {
1166
+ id: string;
1167
+ createdAt: Date;
1168
+ updatedAt: Date;
1169
+ deletedAt: Date | null;
1170
+ address?: string | null | undefined;
1171
+ name?: string | undefined;
1172
+ phone?: string | null | undefined;
1173
+ industry?: string | null | undefined;
1174
+ } | null;
1175
+ contactEmails: {
1176
+ id: string;
1177
+ isPrimary: boolean;
1178
+ email: string;
1179
+ createdAt: Date;
1180
+ updatedAt: Date;
1181
+ deletedAt: Date | null;
1182
+ }[];
1183
+ contactPhones: {
1184
+ id: string;
1185
+ isPrimary: boolean;
1186
+ createdAt: Date;
1187
+ updatedAt: Date;
1188
+ deletedAt: Date | null;
1189
+ phone: string;
1190
+ }[];
1191
+ activityLogs?: {
1192
+ id: string;
1193
+ description: string;
1194
+ createdAt: Date;
1195
+ updatedAt: Date;
1196
+ deletedAt: Date | null;
1197
+ entityId: string;
1198
+ entityType: {
1199
+ id: string;
1200
+ description: string | null;
1201
+ createdAt: Date;
1202
+ updatedAt: Date;
1203
+ deletedAt: Date | null;
1204
+ entity: string;
1205
+ };
1206
+ }[] | undefined;
1207
+ };
1208
+ requestId: string;
1209
+ }, {
1210
+ data: {
1211
+ id: string;
1212
+ channel: string | null;
1213
+ address: string | null;
1214
+ name: string;
1215
+ createdAt: Date;
1216
+ updatedAt: Date;
1217
+ deletedAt: Date | null;
1218
+ customFields: {
1219
+ id: string;
1220
+ createdAt: Date;
1221
+ updatedAt: Date;
1222
+ deletedAt: Date | null;
1223
+ attribute: {
1224
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1225
+ id: string;
1226
+ position: number;
1227
+ createdAt: Date;
1228
+ updatedAt: Date;
1229
+ deletedAt: Date | null;
1230
+ isDefault: boolean;
1231
+ systemName: string;
1232
+ displayName: string;
1233
+ isArchived: boolean;
1234
+ isRequired: boolean;
1235
+ isUnique: boolean;
1236
+ };
1237
+ textValue: string | null;
1238
+ booleanValue: boolean | null;
1239
+ numberValue: number | null;
1240
+ dateValue: Date | null;
1241
+ uploads: {
1242
+ id: string;
1243
+ createdAt: Date;
1244
+ updatedAt: Date;
1245
+ deletedAt: Date | null;
1246
+ customFieldId: string;
1247
+ upload: {
1248
+ id: string;
1249
+ createdAt: Date;
1250
+ updatedAt: Date;
1251
+ deletedAt: Date | null;
1252
+ fileName: string;
1253
+ fileKey: string;
1254
+ bucketName: string;
1255
+ fileSize: number;
1256
+ };
1257
+ }[];
1258
+ }[];
1259
+ notes: string | null;
1260
+ contactProfile: string | null;
1261
+ socialProfileUrl: string | null;
1262
+ tags: {
1263
+ id: string;
1264
+ name: string;
1265
+ createdAt: Date;
1266
+ updatedAt: Date;
1267
+ deletedAt: Date | null;
1268
+ }[];
1269
+ company: {
1270
+ id: string;
1271
+ createdAt: Date;
1272
+ updatedAt: Date;
1273
+ deletedAt: Date | null;
1274
+ address?: string | null | undefined;
1275
+ name?: string | undefined;
1276
+ phone?: string | null | undefined;
1277
+ industry?: string | null | undefined;
1278
+ } | null;
1279
+ contactEmails: {
1280
+ id: string;
1281
+ isPrimary: boolean;
1282
+ email: string;
1283
+ createdAt: Date;
1284
+ updatedAt: Date;
1285
+ deletedAt: Date | null;
1286
+ }[];
1287
+ contactPhones: {
1288
+ id: string;
1289
+ isPrimary: boolean;
1290
+ createdAt: Date;
1291
+ updatedAt: Date;
1292
+ deletedAt: Date | null;
1293
+ phone: string;
1294
+ }[];
1295
+ activityLogs?: {
1296
+ id: string;
1297
+ description: string;
1298
+ createdAt: Date;
1299
+ updatedAt: Date;
1300
+ deletedAt: Date | null;
1301
+ entityId: string;
1302
+ entityType: {
1303
+ id: string;
1304
+ description: string | null;
1305
+ createdAt: Date;
1306
+ updatedAt: Date;
1307
+ deletedAt: Date | null;
1308
+ entity: string;
1309
+ };
1310
+ }[] | undefined;
1311
+ };
1312
+ requestId: string;
1313
+ }>;
1314
+ 400: z.ZodObject<{
1315
+ message: z.ZodString;
1316
+ }, "strip", z.ZodTypeAny, {
1317
+ message: string;
1318
+ }, {
1319
+ message: string;
1320
+ }>;
1321
+ 409: z.ZodObject<{
1322
+ message: z.ZodString;
1323
+ }, "strip", z.ZodTypeAny, {
1324
+ message: string;
1325
+ }, {
1326
+ message: string;
1327
+ }>;
1328
+ 500: z.ZodObject<{
1329
+ message: z.ZodString;
1330
+ }, "strip", z.ZodTypeAny, {
1331
+ message: string;
1332
+ }, {
1333
+ message: string;
1334
+ }>;
1335
+ 401: z.ZodObject<{
1336
+ message: z.ZodString;
1337
+ error: z.ZodAny;
1338
+ }, "strip", z.ZodTypeAny, {
1339
+ message: string;
1340
+ error?: any;
1341
+ }, {
1342
+ message: string;
1343
+ error?: any;
1344
+ }>;
1345
+ 404: z.ZodObject<{
1346
+ message: z.ZodString;
1347
+ error: z.ZodAny;
1348
+ }, "strip", z.ZodTypeAny, {
1349
+ message: string;
1350
+ error?: any;
1351
+ }, {
1352
+ message: string;
1353
+ error?: any;
1354
+ }>;
1355
+ 422: z.ZodObject<{
1356
+ message: z.ZodString;
1357
+ error: z.ZodAny;
1358
+ }, "strip", z.ZodTypeAny, {
1359
+ message: string;
1360
+ error?: any;
1361
+ }, {
1362
+ message: string;
1363
+ error?: any;
1364
+ }>;
1365
+ };
1366
+ path: "contact/:id";
1367
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1368
+ 'x-tenant': z.ZodString;
1369
+ authorization: z.ZodString;
1370
+ }, "strip", z.ZodTypeAny, {
1371
+ 'x-tenant': string;
1372
+ authorization: string;
1373
+ }, {
1374
+ 'x-tenant': string;
1375
+ authorization: string;
1376
+ }>>>;
1377
+ };
1378
+ getAll: {
1379
+ summary: "Get all contacts";
1380
+ method: "GET";
1381
+ query: z.ZodObject<{
1382
+ page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1383
+ pageSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1384
+ keyword: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1385
+ company: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1386
+ name: z.ZodOptional<z.ZodString>;
1387
+ address: z.ZodOptional<z.ZodString>;
1388
+ channel: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1389
+ selectedDate: z.ZodOptional<z.ZodString>;
1390
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
1391
+ attributeId: z.ZodString;
1392
+ type: z.ZodString;
1393
+ value: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
1394
+ }, "strip", z.ZodTypeAny, {
1395
+ type: string;
1396
+ value: (string | string[]) & (string | string[] | undefined);
1397
+ attributeId: string;
1398
+ }, {
1399
+ type: string;
1400
+ value: (string | string[]) & (string | string[] | undefined);
1401
+ attributeId: string;
1402
+ }>, "many">>;
1403
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1404
+ phone: z.ZodOptional<z.ZodString>;
1405
+ email: z.ZodOptional<z.ZodString>;
1406
+ notes: z.ZodOptional<z.ZodString>;
1407
+ }, "strip", z.ZodTypeAny, {
1408
+ page?: number | undefined;
1409
+ pageSize?: number | undefined;
1410
+ keyword?: string | undefined;
1411
+ company?: string[] | undefined;
1412
+ name?: string | undefined;
1413
+ address?: string | undefined;
1414
+ channel?: string[] | undefined;
1415
+ selectedDate?: string | undefined;
1416
+ customFields?: {
1417
+ type: string;
1418
+ value: (string | string[]) & (string | string[] | undefined);
1419
+ attributeId: string;
1420
+ }[] | undefined;
1421
+ tags?: string[] | undefined;
1422
+ phone?: string | undefined;
1423
+ email?: string | undefined;
1424
+ notes?: string | undefined;
1425
+ }, {
1426
+ page?: number | undefined;
1427
+ pageSize?: number | undefined;
1428
+ keyword?: string | undefined;
1429
+ company?: string[] | undefined;
1430
+ name?: string | undefined;
1431
+ address?: string | undefined;
1432
+ channel?: string[] | undefined;
1433
+ selectedDate?: string | undefined;
1434
+ customFields?: {
1435
+ type: string;
1436
+ value: (string | string[]) & (string | string[] | undefined);
1437
+ attributeId: string;
1438
+ }[] | undefined;
1439
+ tags?: string[] | undefined;
1440
+ phone?: string | undefined;
1441
+ email?: string | undefined;
1442
+ notes?: string | undefined;
1443
+ }>;
1444
+ responses: {
1445
+ 200: z.ZodObject<{
1446
+ requestId: z.ZodString;
1447
+ page: z.ZodNumber;
1448
+ pageSize: z.ZodNumber;
1449
+ total: z.ZodNumber;
1450
+ data: z.ZodArray<z.ZodObject<{
1451
+ id: z.ZodString;
1452
+ createdAt: z.ZodDate;
1453
+ updatedAt: z.ZodDate;
1454
+ deletedAt: z.ZodNullable<z.ZodDate>;
1455
+ name: z.ZodString;
1456
+ address: z.ZodNullable<z.ZodString>;
1457
+ channel: z.ZodNullable<z.ZodString>;
1458
+ notes: z.ZodNullable<z.ZodString>;
1459
+ contactProfile: z.ZodNullable<z.ZodString>;
1460
+ socialProfileUrl: z.ZodNullable<z.ZodString>;
1461
+ tags: z.ZodArray<z.ZodObject<{
1462
+ id: z.ZodString;
1463
+ createdAt: z.ZodDate;
1464
+ updatedAt: z.ZodDate;
1465
+ deletedAt: z.ZodNullable<z.ZodDate>;
1466
+ name: z.ZodString;
1467
+ }, "strip", z.ZodTypeAny, {
1468
+ id: string;
1469
+ name: string;
1470
+ createdAt: Date;
1471
+ updatedAt: Date;
1472
+ deletedAt: Date | null;
1473
+ }, {
1474
+ id: string;
1475
+ name: string;
1476
+ createdAt: Date;
1477
+ updatedAt: Date;
1478
+ deletedAt: Date | null;
1479
+ }>, "many">;
1480
+ company: z.ZodNullable<z.ZodObject<Omit<{
1481
+ id: z.ZodString;
1482
+ createdAt: z.ZodDate;
1483
+ updatedAt: z.ZodDate;
1484
+ deletedAt: z.ZodNullable<z.ZodDate>;
1485
+ name: z.ZodOptional<z.ZodString>;
1486
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1487
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1488
+ industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1489
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
1490
+ id: z.ZodString;
1491
+ createdAt: z.ZodDate;
1492
+ updatedAt: z.ZodDate;
1493
+ deletedAt: z.ZodNullable<z.ZodDate>;
1494
+ textValue: z.ZodNullable<z.ZodString>;
1495
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
1496
+ numberValue: z.ZodNullable<z.ZodNumber>;
1497
+ dateValue: z.ZodNullable<z.ZodString>;
1498
+ attribute: z.ZodObject<Omit<{
1499
+ id: z.ZodString;
1500
+ createdAt: z.ZodDate;
1501
+ updatedAt: z.ZodDate;
1502
+ deletedAt: z.ZodNullable<z.ZodDate>;
1503
+ systemName: z.ZodString;
1504
+ displayName: z.ZodString;
1505
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
1506
+ position: z.ZodNumber;
1507
+ isDefault: z.ZodBoolean;
1508
+ isArchived: z.ZodBoolean;
1509
+ isRequired: z.ZodBoolean;
1510
+ isUnique: z.ZodBoolean;
1511
+ options: z.ZodArray<z.ZodObject<{
1512
+ position: z.ZodNumber;
1513
+ value: z.ZodString;
1514
+ label: z.ZodString;
1515
+ isDefault: z.ZodBoolean;
1516
+ id: z.ZodString;
1517
+ }, "strip", z.ZodTypeAny, {
1518
+ id: string;
1519
+ position: number;
1520
+ value: string;
1521
+ label: string;
1522
+ isDefault: boolean;
1523
+ }, {
1524
+ id: string;
1525
+ position: number;
1526
+ value: string;
1527
+ label: string;
1528
+ isDefault: boolean;
1529
+ }>, "many">;
1530
+ group: z.ZodObject<{
1531
+ id: z.ZodString;
1532
+ createdAt: z.ZodDate;
1533
+ updatedAt: z.ZodDate;
1534
+ deletedAt: z.ZodNullable<z.ZodDate>;
1535
+ systemName: z.ZodString;
1536
+ displayName: z.ZodString;
1537
+ }, "strip", z.ZodTypeAny, {
1538
+ id: string;
1539
+ createdAt: Date;
1540
+ updatedAt: Date;
1541
+ deletedAt: Date | null;
1542
+ systemName: string;
1543
+ displayName: string;
1544
+ }, {
1545
+ id: string;
1546
+ createdAt: Date;
1547
+ updatedAt: Date;
1548
+ deletedAt: Date | null;
1549
+ systemName: string;
1550
+ displayName: string;
1551
+ }>;
1552
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
1553
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1554
+ id: string;
1555
+ position: number;
1556
+ createdAt: Date;
1557
+ updatedAt: Date;
1558
+ deletedAt: Date | null;
1559
+ isDefault: boolean;
1560
+ systemName: string;
1561
+ displayName: string;
1562
+ isArchived: boolean;
1563
+ isRequired: boolean;
1564
+ isUnique: boolean;
1565
+ }, {
1566
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1567
+ id: string;
1568
+ position: number;
1569
+ createdAt: Date;
1570
+ updatedAt: Date;
1571
+ deletedAt: Date | null;
1572
+ isDefault: boolean;
1573
+ systemName: string;
1574
+ displayName: string;
1575
+ isArchived: boolean;
1576
+ isRequired: boolean;
1577
+ isUnique: boolean;
1578
+ }>;
1579
+ }, "strip", z.ZodTypeAny, {
1580
+ id: string;
1581
+ createdAt: Date;
1582
+ updatedAt: Date;
1583
+ deletedAt: Date | null;
1584
+ attribute: {
1585
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1586
+ id: string;
1587
+ position: number;
1588
+ createdAt: Date;
1589
+ updatedAt: Date;
1590
+ deletedAt: Date | null;
1591
+ isDefault: boolean;
1592
+ systemName: string;
1593
+ displayName: string;
1594
+ isArchived: boolean;
1595
+ isRequired: boolean;
1596
+ isUnique: boolean;
1597
+ };
1598
+ textValue: string | null;
1599
+ booleanValue: boolean | null;
1600
+ numberValue: number | null;
1601
+ dateValue: string | null;
1602
+ }, {
1603
+ id: string;
1604
+ createdAt: Date;
1605
+ updatedAt: Date;
1606
+ deletedAt: Date | null;
1607
+ attribute: {
1608
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1609
+ id: string;
1610
+ position: number;
1611
+ createdAt: Date;
1612
+ updatedAt: Date;
1613
+ deletedAt: Date | null;
1614
+ isDefault: boolean;
1615
+ systemName: string;
1616
+ displayName: string;
1617
+ isArchived: boolean;
1618
+ isRequired: boolean;
1619
+ isUnique: boolean;
1620
+ };
1621
+ textValue: string | null;
1622
+ booleanValue: boolean | null;
1623
+ numberValue: number | null;
1624
+ dateValue: string | null;
1625
+ }>, "many">>;
1626
+ }, "customFields">, "strip", z.ZodTypeAny, {
1627
+ id: string;
1628
+ createdAt: Date;
1629
+ updatedAt: Date;
1630
+ deletedAt: Date | null;
1631
+ address?: string | null | undefined;
1632
+ name?: string | undefined;
1633
+ phone?: string | null | undefined;
1634
+ industry?: string | null | undefined;
1635
+ }, {
1636
+ id: string;
1637
+ createdAt: Date;
1638
+ updatedAt: Date;
1639
+ deletedAt: Date | null;
1640
+ address?: string | null | undefined;
1641
+ name?: string | undefined;
1642
+ phone?: string | null | undefined;
1643
+ industry?: string | null | undefined;
1644
+ }>>;
1645
+ customFields: z.ZodArray<z.ZodObject<{
1646
+ id: z.ZodString;
1647
+ createdAt: z.ZodDate;
1648
+ updatedAt: z.ZodDate;
1649
+ deletedAt: z.ZodNullable<z.ZodDate>;
1650
+ textValue: z.ZodNullable<z.ZodString>;
1651
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
1652
+ numberValue: z.ZodNullable<z.ZodNumber>;
1653
+ dateValue: z.ZodNullable<z.ZodDate>;
1654
+ attribute: z.ZodObject<Omit<{
1655
+ id: z.ZodString;
1656
+ createdAt: z.ZodDate;
1657
+ updatedAt: z.ZodDate;
1658
+ deletedAt: z.ZodNullable<z.ZodDate>;
1659
+ systemName: z.ZodString;
1660
+ displayName: z.ZodString;
1661
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
1662
+ position: z.ZodNumber;
1663
+ isDefault: z.ZodBoolean;
1664
+ isArchived: z.ZodBoolean;
1665
+ isRequired: z.ZodBoolean;
1666
+ isUnique: z.ZodBoolean;
1667
+ options: z.ZodArray<z.ZodObject<{
1668
+ position: z.ZodNumber;
1669
+ value: z.ZodString;
1670
+ label: z.ZodString;
1671
+ isDefault: z.ZodBoolean;
1672
+ id: z.ZodString;
1673
+ }, "strip", z.ZodTypeAny, {
1674
+ id: string;
1675
+ position: number;
1676
+ value: string;
1677
+ label: string;
1678
+ isDefault: boolean;
1679
+ }, {
1680
+ id: string;
1681
+ position: number;
1682
+ value: string;
1683
+ label: string;
1684
+ isDefault: boolean;
1685
+ }>, "many">;
1686
+ group: z.ZodObject<{
1687
+ id: z.ZodString;
1688
+ createdAt: z.ZodDate;
1689
+ updatedAt: z.ZodDate;
1690
+ deletedAt: z.ZodNullable<z.ZodDate>;
1691
+ systemName: z.ZodString;
1692
+ displayName: z.ZodString;
1693
+ }, "strip", z.ZodTypeAny, {
1694
+ id: string;
1695
+ createdAt: Date;
1696
+ updatedAt: Date;
1697
+ deletedAt: Date | null;
1698
+ systemName: string;
1699
+ displayName: string;
1700
+ }, {
1701
+ id: string;
1702
+ createdAt: Date;
1703
+ updatedAt: Date;
1704
+ deletedAt: Date | null;
1705
+ systemName: string;
1706
+ displayName: string;
1707
+ }>;
1708
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
1709
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1710
+ id: string;
1711
+ position: number;
1712
+ createdAt: Date;
1713
+ updatedAt: Date;
1714
+ deletedAt: Date | null;
1715
+ isDefault: boolean;
1716
+ systemName: string;
1717
+ displayName: string;
1718
+ isArchived: boolean;
1719
+ isRequired: boolean;
1720
+ isUnique: boolean;
1721
+ }, {
1722
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1723
+ id: string;
1724
+ position: number;
1725
+ createdAt: Date;
1726
+ updatedAt: Date;
1727
+ deletedAt: Date | null;
1728
+ isDefault: boolean;
1729
+ systemName: string;
1730
+ displayName: string;
1731
+ isArchived: boolean;
1732
+ isRequired: boolean;
1733
+ isUnique: boolean;
1734
+ }>;
1735
+ uploads: z.ZodArray<z.ZodObject<{
1736
+ id: z.ZodString;
1737
+ createdAt: z.ZodDate;
1738
+ updatedAt: z.ZodDate;
1739
+ deletedAt: z.ZodNullable<z.ZodDate>;
1740
+ customFieldId: z.ZodString;
1741
+ upload: z.ZodObject<{
1742
+ id: z.ZodString;
1743
+ createdAt: z.ZodDate;
1744
+ updatedAt: z.ZodDate;
1745
+ deletedAt: z.ZodNullable<z.ZodDate>;
1746
+ bucketName: z.ZodString;
1747
+ fileName: z.ZodString;
1748
+ fileSize: z.ZodNumber;
1749
+ fileKey: z.ZodString;
1750
+ }, "strip", z.ZodTypeAny, {
1751
+ id: string;
1752
+ createdAt: Date;
1753
+ updatedAt: Date;
1754
+ deletedAt: Date | null;
1755
+ fileName: string;
1756
+ fileKey: string;
1757
+ bucketName: string;
1758
+ fileSize: number;
1759
+ }, {
1760
+ id: string;
1761
+ createdAt: Date;
1762
+ updatedAt: Date;
1763
+ deletedAt: Date | null;
1764
+ fileName: string;
1765
+ fileKey: string;
1766
+ bucketName: string;
1767
+ fileSize: number;
1768
+ }>;
1769
+ }, "strip", z.ZodTypeAny, {
1770
+ id: string;
1771
+ createdAt: Date;
1772
+ updatedAt: Date;
1773
+ deletedAt: Date | null;
1774
+ customFieldId: string;
1775
+ upload: {
1776
+ id: string;
1777
+ createdAt: Date;
1778
+ updatedAt: Date;
1779
+ deletedAt: Date | null;
1780
+ fileName: string;
1781
+ fileKey: string;
1782
+ bucketName: string;
1783
+ fileSize: number;
1784
+ };
1785
+ }, {
1786
+ id: string;
1787
+ createdAt: Date;
1788
+ updatedAt: Date;
1789
+ deletedAt: Date | null;
1790
+ customFieldId: string;
1791
+ upload: {
1792
+ id: string;
1793
+ createdAt: Date;
1794
+ updatedAt: Date;
1795
+ deletedAt: Date | null;
1796
+ fileName: string;
1797
+ fileKey: string;
1798
+ bucketName: string;
1799
+ fileSize: number;
1800
+ };
1801
+ }>, "many">;
1802
+ }, "strip", z.ZodTypeAny, {
1803
+ id: string;
1804
+ createdAt: Date;
1805
+ updatedAt: Date;
1806
+ deletedAt: Date | null;
1807
+ attribute: {
1808
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1809
+ id: string;
1810
+ position: number;
1811
+ createdAt: Date;
1812
+ updatedAt: Date;
1813
+ deletedAt: Date | null;
1814
+ isDefault: boolean;
1815
+ systemName: string;
1816
+ displayName: string;
1817
+ isArchived: boolean;
1818
+ isRequired: boolean;
1819
+ isUnique: boolean;
1820
+ };
1821
+ textValue: string | null;
1822
+ booleanValue: boolean | null;
1823
+ numberValue: number | null;
1824
+ dateValue: Date | null;
1825
+ uploads: {
1826
+ id: string;
1827
+ createdAt: Date;
1828
+ updatedAt: Date;
1829
+ deletedAt: Date | null;
1830
+ customFieldId: string;
1831
+ upload: {
1832
+ id: string;
1833
+ createdAt: Date;
1834
+ updatedAt: Date;
1835
+ deletedAt: Date | null;
1836
+ fileName: string;
1837
+ fileKey: string;
1838
+ bucketName: string;
1839
+ fileSize: number;
1840
+ };
1841
+ }[];
1842
+ }, {
1843
+ id: string;
1844
+ createdAt: Date;
1845
+ updatedAt: Date;
1846
+ deletedAt: Date | null;
1847
+ attribute: {
1848
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
1849
+ id: string;
1850
+ position: number;
1851
+ createdAt: Date;
1852
+ updatedAt: Date;
1853
+ deletedAt: Date | null;
1854
+ isDefault: boolean;
1855
+ systemName: string;
1856
+ displayName: string;
1857
+ isArchived: boolean;
1858
+ isRequired: boolean;
1859
+ isUnique: boolean;
1860
+ };
1861
+ textValue: string | null;
1862
+ booleanValue: boolean | null;
1863
+ numberValue: number | null;
1864
+ dateValue: Date | null;
1865
+ uploads: {
1866
+ id: string;
1867
+ createdAt: Date;
1868
+ updatedAt: Date;
1869
+ deletedAt: Date | null;
1870
+ customFieldId: string;
1871
+ upload: {
1872
+ id: string;
1873
+ createdAt: Date;
1874
+ updatedAt: Date;
1875
+ deletedAt: Date | null;
1876
+ fileName: string;
1877
+ fileKey: string;
1878
+ bucketName: string;
1879
+ fileSize: number;
1880
+ };
1881
+ }[];
1882
+ }>, "many">;
1883
+ contactEmails: z.ZodArray<z.ZodObject<{
1884
+ id: z.ZodString;
1885
+ createdAt: z.ZodDate;
1886
+ updatedAt: z.ZodDate;
1887
+ deletedAt: z.ZodNullable<z.ZodDate>;
1888
+ email: z.ZodString;
1889
+ isPrimary: z.ZodBoolean;
1890
+ }, "strip", z.ZodTypeAny, {
1891
+ id: string;
1892
+ isPrimary: boolean;
1893
+ email: string;
1894
+ createdAt: Date;
1895
+ updatedAt: Date;
1896
+ deletedAt: Date | null;
1897
+ }, {
1898
+ id: string;
1899
+ isPrimary: boolean;
1900
+ email: string;
1901
+ createdAt: Date;
1902
+ updatedAt: Date;
1903
+ deletedAt: Date | null;
1904
+ }>, "many">;
1905
+ contactPhones: z.ZodArray<z.ZodObject<{
1906
+ id: z.ZodString;
1907
+ createdAt: z.ZodDate;
1908
+ updatedAt: z.ZodDate;
1909
+ deletedAt: z.ZodNullable<z.ZodDate>;
1910
+ phone: z.ZodString;
1911
+ isPrimary: z.ZodBoolean;
1912
+ }, "strip", z.ZodTypeAny, {
1913
+ id: string;
1914
+ isPrimary: boolean;
1915
+ createdAt: Date;
1916
+ updatedAt: Date;
1917
+ deletedAt: Date | null;
1918
+ phone: string;
1919
+ }, {
1920
+ id: string;
1921
+ isPrimary: boolean;
1922
+ createdAt: Date;
1923
+ updatedAt: Date;
1924
+ deletedAt: Date | null;
1925
+ phone: string;
1926
+ }>, "many">;
1927
+ activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1928
+ id: z.ZodString;
1929
+ createdAt: z.ZodDate;
1930
+ updatedAt: z.ZodDate;
1931
+ deletedAt: z.ZodNullable<z.ZodDate>;
842
1932
  entityId: z.ZodString;
843
1933
  description: z.ZodString;
844
1934
  entityType: z.ZodObject<{
1935
+ id: z.ZodString;
1936
+ createdAt: z.ZodDate;
1937
+ updatedAt: z.ZodDate;
1938
+ deletedAt: z.ZodNullable<z.ZodDate>;
845
1939
  entity: z.ZodString;
846
1940
  description: z.ZodNullable<z.ZodString>;
847
1941
  }, "strip", z.ZodTypeAny, {
1942
+ id: string;
848
1943
  description: string | null;
1944
+ createdAt: Date;
1945
+ updatedAt: Date;
1946
+ deletedAt: Date | null;
849
1947
  entity: string;
850
1948
  }, {
1949
+ id: string;
851
1950
  description: string | null;
1951
+ createdAt: Date;
1952
+ updatedAt: Date;
1953
+ deletedAt: Date | null;
852
1954
  entity: string;
853
1955
  }>;
854
1956
  }, "strip", z.ZodTypeAny, {
1957
+ id: string;
855
1958
  description: string;
1959
+ createdAt: Date;
1960
+ updatedAt: Date;
1961
+ deletedAt: Date | null;
856
1962
  entityId: string;
857
1963
  entityType: {
1964
+ id: string;
858
1965
  description: string | null;
1966
+ createdAt: Date;
1967
+ updatedAt: Date;
1968
+ deletedAt: Date | null;
859
1969
  entity: string;
860
1970
  };
861
1971
  }, {
1972
+ id: string;
862
1973
  description: string;
1974
+ createdAt: Date;
1975
+ updatedAt: Date;
1976
+ deletedAt: Date | null;
863
1977
  entityId: string;
864
1978
  entityType: {
1979
+ id: string;
865
1980
  description: string | null;
1981
+ createdAt: Date;
1982
+ updatedAt: Date;
1983
+ deletedAt: Date | null;
866
1984
  entity: string;
867
1985
  };
868
1986
  }>, "many">>;
@@ -930,10 +2048,10 @@ export declare const contactContract: {
930
2048
  createdAt: Date;
931
2049
  updatedAt: Date;
932
2050
  deletedAt: Date | null;
933
- address?: string | undefined;
2051
+ address?: string | null | undefined;
934
2052
  name?: string | undefined;
935
- phone?: string | undefined;
936
- industry?: string | undefined;
2053
+ phone?: string | null | undefined;
2054
+ industry?: string | null | undefined;
937
2055
  } | null;
938
2056
  contactEmails: {
939
2057
  id: string;
@@ -952,10 +2070,18 @@ export declare const contactContract: {
952
2070
  phone: string;
953
2071
  }[];
954
2072
  activityLogs?: {
2073
+ id: string;
955
2074
  description: string;
2075
+ createdAt: Date;
2076
+ updatedAt: Date;
2077
+ deletedAt: Date | null;
956
2078
  entityId: string;
957
2079
  entityType: {
2080
+ id: string;
958
2081
  description: string | null;
2082
+ createdAt: Date;
2083
+ updatedAt: Date;
2084
+ deletedAt: Date | null;
959
2085
  entity: string;
960
2086
  };
961
2087
  }[] | undefined;
@@ -1023,10 +2149,10 @@ export declare const contactContract: {
1023
2149
  createdAt: Date;
1024
2150
  updatedAt: Date;
1025
2151
  deletedAt: Date | null;
1026
- address?: string | undefined;
2152
+ address?: string | null | undefined;
1027
2153
  name?: string | undefined;
1028
- phone?: string | undefined;
1029
- industry?: string | undefined;
2154
+ phone?: string | null | undefined;
2155
+ industry?: string | null | undefined;
1030
2156
  } | null;
1031
2157
  contactEmails: {
1032
2158
  id: string;
@@ -1045,14 +2171,22 @@ export declare const contactContract: {
1045
2171
  phone: string;
1046
2172
  }[];
1047
2173
  activityLogs?: {
2174
+ id: string;
1048
2175
  description: string;
2176
+ createdAt: Date;
2177
+ updatedAt: Date;
2178
+ deletedAt: Date | null;
1049
2179
  entityId: string;
1050
2180
  entityType: {
2181
+ id: string;
1051
2182
  description: string | null;
2183
+ createdAt: Date;
2184
+ updatedAt: Date;
2185
+ deletedAt: Date | null;
1052
2186
  entity: string;
1053
2187
  };
1054
2188
  }[] | undefined;
1055
- }>;
2189
+ }>, "many">;
1056
2190
  }, "strip", z.ZodTypeAny, {
1057
2191
  data: {
1058
2192
  id: string;
@@ -1118,10 +2252,10 @@ export declare const contactContract: {
1118
2252
  createdAt: Date;
1119
2253
  updatedAt: Date;
1120
2254
  deletedAt: Date | null;
1121
- address?: string | undefined;
2255
+ address?: string | null | undefined;
1122
2256
  name?: string | undefined;
1123
- phone?: string | undefined;
1124
- industry?: string | undefined;
2257
+ phone?: string | null | undefined;
2258
+ industry?: string | null | undefined;
1125
2259
  } | null;
1126
2260
  contactEmails: {
1127
2261
  id: string;
@@ -1140,14 +2274,25 @@ export declare const contactContract: {
1140
2274
  phone: string;
1141
2275
  }[];
1142
2276
  activityLogs?: {
2277
+ id: string;
1143
2278
  description: string;
2279
+ createdAt: Date;
2280
+ updatedAt: Date;
2281
+ deletedAt: Date | null;
1144
2282
  entityId: string;
1145
2283
  entityType: {
2284
+ id: string;
1146
2285
  description: string | null;
2286
+ createdAt: Date;
2287
+ updatedAt: Date;
2288
+ deletedAt: Date | null;
1147
2289
  entity: string;
1148
2290
  };
1149
2291
  }[] | undefined;
1150
- };
2292
+ }[];
2293
+ total: number;
2294
+ page: number;
2295
+ pageSize: number;
1151
2296
  requestId: string;
1152
2297
  }, {
1153
2298
  data: {
@@ -1214,10 +2359,10 @@ export declare const contactContract: {
1214
2359
  createdAt: Date;
1215
2360
  updatedAt: Date;
1216
2361
  deletedAt: Date | null;
1217
- address?: string | undefined;
2362
+ address?: string | null | undefined;
1218
2363
  name?: string | undefined;
1219
- phone?: string | undefined;
1220
- industry?: string | undefined;
2364
+ phone?: string | null | undefined;
2365
+ industry?: string | null | undefined;
1221
2366
  } | null;
1222
2367
  contactEmails: {
1223
2368
  id: string;
@@ -1236,14 +2381,25 @@ export declare const contactContract: {
1236
2381
  phone: string;
1237
2382
  }[];
1238
2383
  activityLogs?: {
2384
+ id: string;
1239
2385
  description: string;
2386
+ createdAt: Date;
2387
+ updatedAt: Date;
2388
+ deletedAt: Date | null;
1240
2389
  entityId: string;
1241
2390
  entityType: {
2391
+ id: string;
1242
2392
  description: string | null;
2393
+ createdAt: Date;
2394
+ updatedAt: Date;
2395
+ deletedAt: Date | null;
1243
2396
  entity: string;
1244
2397
  };
1245
2398
  }[] | undefined;
1246
- };
2399
+ }[];
2400
+ total: number;
2401
+ page: number;
2402
+ pageSize: number;
1247
2403
  requestId: string;
1248
2404
  }>;
1249
2405
  400: z.ZodObject<{
@@ -1298,7 +2454,7 @@ export declare const contactContract: {
1298
2454
  error?: any;
1299
2455
  }>;
1300
2456
  };
1301
- path: "contact/:id";
2457
+ path: "contact";
1302
2458
  headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1303
2459
  'x-tenant': z.ZodString;
1304
2460
  authorization: z.ZodString;
@@ -1622,9 +2778,9 @@ export declare const contactContract: {
1622
2778
  updatedAt: z.ZodDate;
1623
2779
  deletedAt: z.ZodNullable<z.ZodDate>;
1624
2780
  name: z.ZodOptional<z.ZodString>;
1625
- phone: z.ZodOptional<z.ZodString>;
1626
- address: z.ZodOptional<z.ZodString>;
1627
- industry: z.ZodOptional<z.ZodString>;
2781
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2782
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2783
+ industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1628
2784
  customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
1629
2785
  id: z.ZodString;
1630
2786
  createdAt: z.ZodDate;
@@ -1767,19 +2923,19 @@ export declare const contactContract: {
1767
2923
  createdAt: Date;
1768
2924
  updatedAt: Date;
1769
2925
  deletedAt: Date | null;
1770
- address?: string | undefined;
2926
+ address?: string | null | undefined;
1771
2927
  name?: string | undefined;
1772
- phone?: string | undefined;
1773
- industry?: string | undefined;
2928
+ phone?: string | null | undefined;
2929
+ industry?: string | null | undefined;
1774
2930
  }, {
1775
2931
  id: string;
1776
2932
  createdAt: Date;
1777
2933
  updatedAt: Date;
1778
2934
  deletedAt: Date | null;
1779
- address?: string | undefined;
2935
+ address?: string | null | undefined;
1780
2936
  name?: string | undefined;
1781
- phone?: string | undefined;
1782
- industry?: string | undefined;
2937
+ phone?: string | null | undefined;
2938
+ industry?: string | null | undefined;
1783
2939
  }>>;
1784
2940
  customFields: z.ZodArray<z.ZodObject<{
1785
2941
  id: z.ZodString;
@@ -2064,30 +3220,62 @@ export declare const contactContract: {
2064
3220
  phone: string;
2065
3221
  }>, "many">;
2066
3222
  activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
3223
+ id: z.ZodString;
3224
+ createdAt: z.ZodDate;
3225
+ updatedAt: z.ZodDate;
3226
+ deletedAt: z.ZodNullable<z.ZodDate>;
2067
3227
  entityId: z.ZodString;
2068
3228
  description: z.ZodString;
2069
3229
  entityType: z.ZodObject<{
3230
+ id: z.ZodString;
3231
+ createdAt: z.ZodDate;
3232
+ updatedAt: z.ZodDate;
3233
+ deletedAt: z.ZodNullable<z.ZodDate>;
2070
3234
  entity: z.ZodString;
2071
3235
  description: z.ZodNullable<z.ZodString>;
2072
3236
  }, "strip", z.ZodTypeAny, {
3237
+ id: string;
2073
3238
  description: string | null;
3239
+ createdAt: Date;
3240
+ updatedAt: Date;
3241
+ deletedAt: Date | null;
2074
3242
  entity: string;
2075
3243
  }, {
3244
+ id: string;
2076
3245
  description: string | null;
3246
+ createdAt: Date;
3247
+ updatedAt: Date;
3248
+ deletedAt: Date | null;
2077
3249
  entity: string;
2078
3250
  }>;
2079
3251
  }, "strip", z.ZodTypeAny, {
3252
+ id: string;
2080
3253
  description: string;
3254
+ createdAt: Date;
3255
+ updatedAt: Date;
3256
+ deletedAt: Date | null;
2081
3257
  entityId: string;
2082
3258
  entityType: {
3259
+ id: string;
2083
3260
  description: string | null;
3261
+ createdAt: Date;
3262
+ updatedAt: Date;
3263
+ deletedAt: Date | null;
2084
3264
  entity: string;
2085
3265
  };
2086
3266
  }, {
3267
+ id: string;
2087
3268
  description: string;
3269
+ createdAt: Date;
3270
+ updatedAt: Date;
3271
+ deletedAt: Date | null;
2088
3272
  entityId: string;
2089
3273
  entityType: {
3274
+ id: string;
2090
3275
  description: string | null;
3276
+ createdAt: Date;
3277
+ updatedAt: Date;
3278
+ deletedAt: Date | null;
2091
3279
  entity: string;
2092
3280
  };
2093
3281
  }>, "many">>;
@@ -2155,10 +3343,10 @@ export declare const contactContract: {
2155
3343
  createdAt: Date;
2156
3344
  updatedAt: Date;
2157
3345
  deletedAt: Date | null;
2158
- address?: string | undefined;
3346
+ address?: string | null | undefined;
2159
3347
  name?: string | undefined;
2160
- phone?: string | undefined;
2161
- industry?: string | undefined;
3348
+ phone?: string | null | undefined;
3349
+ industry?: string | null | undefined;
2162
3350
  } | null;
2163
3351
  contactEmails: {
2164
3352
  id: string;
@@ -2177,10 +3365,18 @@ export declare const contactContract: {
2177
3365
  phone: string;
2178
3366
  }[];
2179
3367
  activityLogs?: {
3368
+ id: string;
2180
3369
  description: string;
3370
+ createdAt: Date;
3371
+ updatedAt: Date;
3372
+ deletedAt: Date | null;
2181
3373
  entityId: string;
2182
3374
  entityType: {
3375
+ id: string;
2183
3376
  description: string | null;
3377
+ createdAt: Date;
3378
+ updatedAt: Date;
3379
+ deletedAt: Date | null;
2184
3380
  entity: string;
2185
3381
  };
2186
3382
  }[] | undefined;
@@ -2248,10 +3444,10 @@ export declare const contactContract: {
2248
3444
  createdAt: Date;
2249
3445
  updatedAt: Date;
2250
3446
  deletedAt: Date | null;
2251
- address?: string | undefined;
3447
+ address?: string | null | undefined;
2252
3448
  name?: string | undefined;
2253
- phone?: string | undefined;
2254
- industry?: string | undefined;
3449
+ phone?: string | null | undefined;
3450
+ industry?: string | null | undefined;
2255
3451
  } | null;
2256
3452
  contactEmails: {
2257
3453
  id: string;
@@ -2270,10 +3466,18 @@ export declare const contactContract: {
2270
3466
  phone: string;
2271
3467
  }[];
2272
3468
  activityLogs?: {
3469
+ id: string;
2273
3470
  description: string;
3471
+ createdAt: Date;
3472
+ updatedAt: Date;
3473
+ deletedAt: Date | null;
2274
3474
  entityId: string;
2275
3475
  entityType: {
3476
+ id: string;
2276
3477
  description: string | null;
3478
+ createdAt: Date;
3479
+ updatedAt: Date;
3480
+ deletedAt: Date | null;
2277
3481
  entity: string;
2278
3482
  };
2279
3483
  }[] | undefined;
@@ -2343,10 +3547,10 @@ export declare const contactContract: {
2343
3547
  createdAt: Date;
2344
3548
  updatedAt: Date;
2345
3549
  deletedAt: Date | null;
2346
- address?: string | undefined;
3550
+ address?: string | null | undefined;
2347
3551
  name?: string | undefined;
2348
- phone?: string | undefined;
2349
- industry?: string | undefined;
3552
+ phone?: string | null | undefined;
3553
+ industry?: string | null | undefined;
2350
3554
  } | null;
2351
3555
  contactEmails: {
2352
3556
  id: string;
@@ -2365,10 +3569,18 @@ export declare const contactContract: {
2365
3569
  phone: string;
2366
3570
  }[];
2367
3571
  activityLogs?: {
3572
+ id: string;
2368
3573
  description: string;
3574
+ createdAt: Date;
3575
+ updatedAt: Date;
3576
+ deletedAt: Date | null;
2369
3577
  entityId: string;
2370
3578
  entityType: {
3579
+ id: string;
2371
3580
  description: string | null;
3581
+ createdAt: Date;
3582
+ updatedAt: Date;
3583
+ deletedAt: Date | null;
2372
3584
  entity: string;
2373
3585
  };
2374
3586
  }[] | undefined;
@@ -2439,10 +3651,10 @@ export declare const contactContract: {
2439
3651
  createdAt: Date;
2440
3652
  updatedAt: Date;
2441
3653
  deletedAt: Date | null;
2442
- address?: string | undefined;
3654
+ address?: string | null | undefined;
2443
3655
  name?: string | undefined;
2444
- phone?: string | undefined;
2445
- industry?: string | undefined;
3656
+ phone?: string | null | undefined;
3657
+ industry?: string | null | undefined;
2446
3658
  } | null;
2447
3659
  contactEmails: {
2448
3660
  id: string;
@@ -2461,10 +3673,18 @@ export declare const contactContract: {
2461
3673
  phone: string;
2462
3674
  }[];
2463
3675
  activityLogs?: {
3676
+ id: string;
2464
3677
  description: string;
3678
+ createdAt: Date;
3679
+ updatedAt: Date;
3680
+ deletedAt: Date | null;
2465
3681
  entityId: string;
2466
3682
  entityType: {
3683
+ id: string;
2467
3684
  description: string | null;
3685
+ createdAt: Date;
3686
+ updatedAt: Date;
3687
+ deletedAt: Date | null;
2468
3688
  entity: string;
2469
3689
  };
2470
3690
  }[] | undefined;
@@ -2535,5 +3755,91 @@ export declare const contactContract: {
2535
3755
  authorization: string;
2536
3756
  }>>>;
2537
3757
  };
3758
+ delete: {
3759
+ body: null;
3760
+ summary: "Delete a contact";
3761
+ method: "DELETE";
3762
+ pathParams: z.ZodObject<{
3763
+ id: z.ZodString;
3764
+ }, "strip", z.ZodTypeAny, {
3765
+ id: string;
3766
+ }, {
3767
+ id: string;
3768
+ }>;
3769
+ responses: {
3770
+ 200: z.ZodObject<{
3771
+ requestId: z.ZodString;
3772
+ message: z.ZodString;
3773
+ }, "strip", z.ZodTypeAny, {
3774
+ message: string;
3775
+ requestId: string;
3776
+ }, {
3777
+ message: string;
3778
+ requestId: string;
3779
+ }>;
3780
+ 400: z.ZodObject<{
3781
+ message: z.ZodString;
3782
+ }, "strip", z.ZodTypeAny, {
3783
+ message: string;
3784
+ }, {
3785
+ message: string;
3786
+ }>;
3787
+ 409: z.ZodObject<{
3788
+ message: z.ZodString;
3789
+ }, "strip", z.ZodTypeAny, {
3790
+ message: string;
3791
+ }, {
3792
+ message: string;
3793
+ }>;
3794
+ 500: z.ZodObject<{
3795
+ message: z.ZodString;
3796
+ }, "strip", z.ZodTypeAny, {
3797
+ message: string;
3798
+ }, {
3799
+ message: string;
3800
+ }>;
3801
+ 401: z.ZodObject<{
3802
+ message: z.ZodString;
3803
+ error: z.ZodAny;
3804
+ }, "strip", z.ZodTypeAny, {
3805
+ message: string;
3806
+ error?: any;
3807
+ }, {
3808
+ message: string;
3809
+ error?: any;
3810
+ }>;
3811
+ 404: z.ZodObject<{
3812
+ message: z.ZodString;
3813
+ error: z.ZodAny;
3814
+ }, "strip", z.ZodTypeAny, {
3815
+ message: string;
3816
+ error?: any;
3817
+ }, {
3818
+ message: string;
3819
+ error?: any;
3820
+ }>;
3821
+ 422: z.ZodObject<{
3822
+ message: z.ZodString;
3823
+ error: z.ZodAny;
3824
+ }, "strip", z.ZodTypeAny, {
3825
+ message: string;
3826
+ error?: any;
3827
+ }, {
3828
+ message: string;
3829
+ error?: any;
3830
+ }>;
3831
+ };
3832
+ path: "contact/:id";
3833
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3834
+ 'x-tenant': z.ZodString;
3835
+ authorization: z.ZodString;
3836
+ }, "strip", z.ZodTypeAny, {
3837
+ 'x-tenant': string;
3838
+ authorization: string;
3839
+ }, {
3840
+ 'x-tenant': string;
3841
+ authorization: string;
3842
+ }>>>;
3843
+ };
2538
3844
  };
2539
3845
  //# sourceMappingURL=index.d.ts.map