@kl1/contracts 1.0.12 → 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.
- package/dist/index.js +112 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +112 -6
- package/dist/index.mjs.map +1 -1
- package/dist/src/app/index.d.ts +17 -0
- package/dist/src/app/index.d.ts.map +1 -0
- package/dist/src/chat/schema.d.ts +9 -0
- package/dist/src/chat/schema.d.ts.map +1 -1
- package/dist/src/contact/index.d.ts +1178 -0
- package/dist/src/contact/index.d.ts.map +1 -1
- package/dist/src/contact/schema.d.ts.map +1 -1
- package/dist/src/contact/validation.d.ts +820 -0
- package/dist/src/contact/validation.d.ts.map +1 -1
- package/dist/src/contract.d.ts +1177 -0
- package/dist/src/contract.d.ts.map +1 -1
- package/dist/src/custom-field/index.d.ts +4 -0
- package/dist/src/custom-field/index.d.ts.map +1 -0
- package/dist/src/custom-field/validation.d.ts +15 -0
- package/dist/src/custom-field/validation.d.ts.map +1 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/mail/mail-server.d.ts +216 -0
- package/dist/src/mail/mail-server.d.ts.map +1 -0
- package/package.json +46 -46
@@ -1025,5 +1025,825 @@ export declare const ContactContractValidationSchema: {
|
|
1025
1025
|
}[] | undefined;
|
1026
1026
|
}>;
|
1027
1027
|
};
|
1028
|
+
delete: {
|
1029
|
+
request: z.ZodObject<{
|
1030
|
+
id: z.ZodString;
|
1031
|
+
}, "strip", z.ZodTypeAny, {
|
1032
|
+
id: string;
|
1033
|
+
}, {
|
1034
|
+
id: string;
|
1035
|
+
}>;
|
1036
|
+
response: z.ZodString;
|
1037
|
+
};
|
1038
|
+
getAll: {
|
1039
|
+
request: z.ZodObject<{
|
1040
|
+
page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
1041
|
+
pageSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
1042
|
+
keyword: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
1043
|
+
company: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
1044
|
+
name: z.ZodOptional<z.ZodString>;
|
1045
|
+
address: z.ZodOptional<z.ZodString>;
|
1046
|
+
channel: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
1047
|
+
selectedDate: z.ZodOptional<z.ZodString>;
|
1048
|
+
customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
1049
|
+
attributeId: z.ZodString;
|
1050
|
+
type: z.ZodString;
|
1051
|
+
value: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
1052
|
+
}, "strip", z.ZodTypeAny, {
|
1053
|
+
type: string;
|
1054
|
+
value: (string | string[]) & (string | string[] | undefined);
|
1055
|
+
attributeId: string;
|
1056
|
+
}, {
|
1057
|
+
type: string;
|
1058
|
+
value: (string | string[]) & (string | string[] | undefined);
|
1059
|
+
attributeId: string;
|
1060
|
+
}>, "many">>;
|
1061
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
1062
|
+
phone: z.ZodOptional<z.ZodString>;
|
1063
|
+
email: z.ZodOptional<z.ZodString>;
|
1064
|
+
notes: z.ZodOptional<z.ZodString>;
|
1065
|
+
}, "strip", z.ZodTypeAny, {
|
1066
|
+
page?: number | undefined;
|
1067
|
+
pageSize?: number | undefined;
|
1068
|
+
keyword?: string | undefined;
|
1069
|
+
company?: string[] | undefined;
|
1070
|
+
name?: string | undefined;
|
1071
|
+
address?: string | undefined;
|
1072
|
+
channel?: string[] | undefined;
|
1073
|
+
selectedDate?: string | undefined;
|
1074
|
+
customFields?: {
|
1075
|
+
type: string;
|
1076
|
+
value: (string | string[]) & (string | string[] | undefined);
|
1077
|
+
attributeId: string;
|
1078
|
+
}[] | undefined;
|
1079
|
+
tags?: string[] | undefined;
|
1080
|
+
phone?: string | undefined;
|
1081
|
+
email?: string | undefined;
|
1082
|
+
notes?: string | undefined;
|
1083
|
+
}, {
|
1084
|
+
page?: number | undefined;
|
1085
|
+
pageSize?: number | undefined;
|
1086
|
+
keyword?: string | undefined;
|
1087
|
+
company?: string[] | undefined;
|
1088
|
+
name?: string | undefined;
|
1089
|
+
address?: string | undefined;
|
1090
|
+
channel?: string[] | undefined;
|
1091
|
+
selectedDate?: string | undefined;
|
1092
|
+
customFields?: {
|
1093
|
+
type: string;
|
1094
|
+
value: (string | string[]) & (string | string[] | undefined);
|
1095
|
+
attributeId: string;
|
1096
|
+
}[] | undefined;
|
1097
|
+
tags?: string[] | undefined;
|
1098
|
+
phone?: string | undefined;
|
1099
|
+
email?: string | undefined;
|
1100
|
+
notes?: string | undefined;
|
1101
|
+
}>;
|
1102
|
+
response: {
|
1103
|
+
page: z.ZodNumber;
|
1104
|
+
pageSize: z.ZodNumber;
|
1105
|
+
total: z.ZodNumber;
|
1106
|
+
data: z.ZodArray<z.ZodObject<{
|
1107
|
+
id: z.ZodString;
|
1108
|
+
createdAt: z.ZodDate;
|
1109
|
+
updatedAt: z.ZodDate;
|
1110
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
1111
|
+
name: z.ZodString;
|
1112
|
+
address: z.ZodNullable<z.ZodString>;
|
1113
|
+
channel: z.ZodNullable<z.ZodString>;
|
1114
|
+
notes: z.ZodNullable<z.ZodString>;
|
1115
|
+
contactProfile: z.ZodNullable<z.ZodString>;
|
1116
|
+
socialProfileUrl: z.ZodNullable<z.ZodString>;
|
1117
|
+
tags: z.ZodArray<z.ZodObject<{
|
1118
|
+
id: z.ZodString;
|
1119
|
+
createdAt: z.ZodDate;
|
1120
|
+
updatedAt: z.ZodDate;
|
1121
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
1122
|
+
name: z.ZodString;
|
1123
|
+
}, "strip", z.ZodTypeAny, {
|
1124
|
+
id: string;
|
1125
|
+
name: string;
|
1126
|
+
createdAt: Date;
|
1127
|
+
updatedAt: Date;
|
1128
|
+
deletedAt: Date | null;
|
1129
|
+
}, {
|
1130
|
+
id: string;
|
1131
|
+
name: string;
|
1132
|
+
createdAt: Date;
|
1133
|
+
updatedAt: Date;
|
1134
|
+
deletedAt: Date | null;
|
1135
|
+
}>, "many">;
|
1136
|
+
company: z.ZodNullable<z.ZodObject<Omit<{
|
1137
|
+
id: z.ZodString;
|
1138
|
+
createdAt: z.ZodDate;
|
1139
|
+
updatedAt: z.ZodDate;
|
1140
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
1141
|
+
name: z.ZodOptional<z.ZodString>;
|
1142
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
1143
|
+
address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
1144
|
+
industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
1145
|
+
customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
1146
|
+
id: z.ZodString;
|
1147
|
+
createdAt: z.ZodDate;
|
1148
|
+
updatedAt: z.ZodDate;
|
1149
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
1150
|
+
textValue: z.ZodNullable<z.ZodString>;
|
1151
|
+
booleanValue: z.ZodNullable<z.ZodBoolean>;
|
1152
|
+
numberValue: z.ZodNullable<z.ZodNumber>;
|
1153
|
+
dateValue: z.ZodNullable<z.ZodString>;
|
1154
|
+
attribute: z.ZodObject<Omit<{
|
1155
|
+
id: z.ZodString;
|
1156
|
+
createdAt: z.ZodDate;
|
1157
|
+
updatedAt: z.ZodDate;
|
1158
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
1159
|
+
systemName: z.ZodString;
|
1160
|
+
displayName: z.ZodString;
|
1161
|
+
type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
|
1162
|
+
position: z.ZodNumber;
|
1163
|
+
isDefault: z.ZodBoolean;
|
1164
|
+
isArchived: z.ZodBoolean;
|
1165
|
+
isRequired: z.ZodBoolean;
|
1166
|
+
isUnique: z.ZodBoolean;
|
1167
|
+
options: z.ZodArray<z.ZodObject<{
|
1168
|
+
position: z.ZodNumber;
|
1169
|
+
value: z.ZodString;
|
1170
|
+
label: z.ZodString;
|
1171
|
+
isDefault: z.ZodBoolean;
|
1172
|
+
id: z.ZodString;
|
1173
|
+
}, "strip", z.ZodTypeAny, {
|
1174
|
+
id: string;
|
1175
|
+
position: number;
|
1176
|
+
value: string;
|
1177
|
+
label: string;
|
1178
|
+
isDefault: boolean;
|
1179
|
+
}, {
|
1180
|
+
id: string;
|
1181
|
+
position: number;
|
1182
|
+
value: string;
|
1183
|
+
label: string;
|
1184
|
+
isDefault: boolean;
|
1185
|
+
}>, "many">;
|
1186
|
+
group: z.ZodObject<{
|
1187
|
+
id: z.ZodString;
|
1188
|
+
createdAt: z.ZodDate;
|
1189
|
+
updatedAt: z.ZodDate;
|
1190
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
1191
|
+
systemName: z.ZodString;
|
1192
|
+
displayName: z.ZodString;
|
1193
|
+
}, "strip", z.ZodTypeAny, {
|
1194
|
+
id: string;
|
1195
|
+
createdAt: Date;
|
1196
|
+
updatedAt: Date;
|
1197
|
+
deletedAt: Date | null;
|
1198
|
+
systemName: string;
|
1199
|
+
displayName: string;
|
1200
|
+
}, {
|
1201
|
+
id: string;
|
1202
|
+
createdAt: Date;
|
1203
|
+
updatedAt: Date;
|
1204
|
+
deletedAt: Date | null;
|
1205
|
+
systemName: string;
|
1206
|
+
displayName: string;
|
1207
|
+
}>;
|
1208
|
+
}, "options" | "group">, "strip", z.ZodTypeAny, {
|
1209
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
1210
|
+
id: string;
|
1211
|
+
position: number;
|
1212
|
+
createdAt: Date;
|
1213
|
+
updatedAt: Date;
|
1214
|
+
deletedAt: Date | null;
|
1215
|
+
isDefault: boolean;
|
1216
|
+
systemName: string;
|
1217
|
+
displayName: string;
|
1218
|
+
isArchived: boolean;
|
1219
|
+
isRequired: boolean;
|
1220
|
+
isUnique: boolean;
|
1221
|
+
}, {
|
1222
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
1223
|
+
id: string;
|
1224
|
+
position: number;
|
1225
|
+
createdAt: Date;
|
1226
|
+
updatedAt: Date;
|
1227
|
+
deletedAt: Date | null;
|
1228
|
+
isDefault: boolean;
|
1229
|
+
systemName: string;
|
1230
|
+
displayName: string;
|
1231
|
+
isArchived: boolean;
|
1232
|
+
isRequired: boolean;
|
1233
|
+
isUnique: boolean;
|
1234
|
+
}>;
|
1235
|
+
}, "strip", z.ZodTypeAny, {
|
1236
|
+
id: string;
|
1237
|
+
createdAt: Date;
|
1238
|
+
updatedAt: Date;
|
1239
|
+
deletedAt: Date | null;
|
1240
|
+
attribute: {
|
1241
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
1242
|
+
id: string;
|
1243
|
+
position: number;
|
1244
|
+
createdAt: Date;
|
1245
|
+
updatedAt: Date;
|
1246
|
+
deletedAt: Date | null;
|
1247
|
+
isDefault: boolean;
|
1248
|
+
systemName: string;
|
1249
|
+
displayName: string;
|
1250
|
+
isArchived: boolean;
|
1251
|
+
isRequired: boolean;
|
1252
|
+
isUnique: boolean;
|
1253
|
+
};
|
1254
|
+
textValue: string | null;
|
1255
|
+
booleanValue: boolean | null;
|
1256
|
+
numberValue: number | null;
|
1257
|
+
dateValue: string | null;
|
1258
|
+
}, {
|
1259
|
+
id: string;
|
1260
|
+
createdAt: Date;
|
1261
|
+
updatedAt: Date;
|
1262
|
+
deletedAt: Date | null;
|
1263
|
+
attribute: {
|
1264
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
1265
|
+
id: string;
|
1266
|
+
position: number;
|
1267
|
+
createdAt: Date;
|
1268
|
+
updatedAt: Date;
|
1269
|
+
deletedAt: Date | null;
|
1270
|
+
isDefault: boolean;
|
1271
|
+
systemName: string;
|
1272
|
+
displayName: string;
|
1273
|
+
isArchived: boolean;
|
1274
|
+
isRequired: boolean;
|
1275
|
+
isUnique: boolean;
|
1276
|
+
};
|
1277
|
+
textValue: string | null;
|
1278
|
+
booleanValue: boolean | null;
|
1279
|
+
numberValue: number | null;
|
1280
|
+
dateValue: string | null;
|
1281
|
+
}>, "many">>;
|
1282
|
+
}, "customFields">, "strip", z.ZodTypeAny, {
|
1283
|
+
id: string;
|
1284
|
+
createdAt: Date;
|
1285
|
+
updatedAt: Date;
|
1286
|
+
deletedAt: Date | null;
|
1287
|
+
address?: string | null | undefined;
|
1288
|
+
name?: string | undefined;
|
1289
|
+
phone?: string | null | undefined;
|
1290
|
+
industry?: string | null | undefined;
|
1291
|
+
}, {
|
1292
|
+
id: string;
|
1293
|
+
createdAt: Date;
|
1294
|
+
updatedAt: Date;
|
1295
|
+
deletedAt: Date | null;
|
1296
|
+
address?: string | null | undefined;
|
1297
|
+
name?: string | undefined;
|
1298
|
+
phone?: string | null | undefined;
|
1299
|
+
industry?: string | null | undefined;
|
1300
|
+
}>>;
|
1301
|
+
customFields: z.ZodArray<z.ZodObject<{
|
1302
|
+
id: z.ZodString;
|
1303
|
+
createdAt: z.ZodDate;
|
1304
|
+
updatedAt: z.ZodDate;
|
1305
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
1306
|
+
textValue: z.ZodNullable<z.ZodString>;
|
1307
|
+
booleanValue: z.ZodNullable<z.ZodBoolean>;
|
1308
|
+
numberValue: z.ZodNullable<z.ZodNumber>;
|
1309
|
+
dateValue: z.ZodNullable<z.ZodDate>;
|
1310
|
+
attribute: z.ZodObject<Omit<{
|
1311
|
+
id: z.ZodString;
|
1312
|
+
createdAt: z.ZodDate;
|
1313
|
+
updatedAt: z.ZodDate;
|
1314
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
1315
|
+
systemName: z.ZodString;
|
1316
|
+
displayName: z.ZodString;
|
1317
|
+
type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
|
1318
|
+
position: z.ZodNumber;
|
1319
|
+
isDefault: z.ZodBoolean;
|
1320
|
+
isArchived: z.ZodBoolean;
|
1321
|
+
isRequired: z.ZodBoolean;
|
1322
|
+
isUnique: z.ZodBoolean;
|
1323
|
+
options: z.ZodArray<z.ZodObject<{
|
1324
|
+
position: z.ZodNumber;
|
1325
|
+
value: z.ZodString;
|
1326
|
+
label: z.ZodString;
|
1327
|
+
isDefault: z.ZodBoolean;
|
1328
|
+
id: z.ZodString;
|
1329
|
+
}, "strip", z.ZodTypeAny, {
|
1330
|
+
id: string;
|
1331
|
+
position: number;
|
1332
|
+
value: string;
|
1333
|
+
label: string;
|
1334
|
+
isDefault: boolean;
|
1335
|
+
}, {
|
1336
|
+
id: string;
|
1337
|
+
position: number;
|
1338
|
+
value: string;
|
1339
|
+
label: string;
|
1340
|
+
isDefault: boolean;
|
1341
|
+
}>, "many">;
|
1342
|
+
group: z.ZodObject<{
|
1343
|
+
id: z.ZodString;
|
1344
|
+
createdAt: z.ZodDate;
|
1345
|
+
updatedAt: z.ZodDate;
|
1346
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
1347
|
+
systemName: z.ZodString;
|
1348
|
+
displayName: z.ZodString;
|
1349
|
+
}, "strip", z.ZodTypeAny, {
|
1350
|
+
id: string;
|
1351
|
+
createdAt: Date;
|
1352
|
+
updatedAt: Date;
|
1353
|
+
deletedAt: Date | null;
|
1354
|
+
systemName: string;
|
1355
|
+
displayName: string;
|
1356
|
+
}, {
|
1357
|
+
id: string;
|
1358
|
+
createdAt: Date;
|
1359
|
+
updatedAt: Date;
|
1360
|
+
deletedAt: Date | null;
|
1361
|
+
systemName: string;
|
1362
|
+
displayName: string;
|
1363
|
+
}>;
|
1364
|
+
}, "options" | "group">, "strip", z.ZodTypeAny, {
|
1365
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
1366
|
+
id: string;
|
1367
|
+
position: number;
|
1368
|
+
createdAt: Date;
|
1369
|
+
updatedAt: Date;
|
1370
|
+
deletedAt: Date | null;
|
1371
|
+
isDefault: boolean;
|
1372
|
+
systemName: string;
|
1373
|
+
displayName: string;
|
1374
|
+
isArchived: boolean;
|
1375
|
+
isRequired: boolean;
|
1376
|
+
isUnique: boolean;
|
1377
|
+
}, {
|
1378
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
1379
|
+
id: string;
|
1380
|
+
position: number;
|
1381
|
+
createdAt: Date;
|
1382
|
+
updatedAt: Date;
|
1383
|
+
deletedAt: Date | null;
|
1384
|
+
isDefault: boolean;
|
1385
|
+
systemName: string;
|
1386
|
+
displayName: string;
|
1387
|
+
isArchived: boolean;
|
1388
|
+
isRequired: boolean;
|
1389
|
+
isUnique: boolean;
|
1390
|
+
}>;
|
1391
|
+
uploads: z.ZodArray<z.ZodObject<{
|
1392
|
+
id: z.ZodString;
|
1393
|
+
createdAt: z.ZodDate;
|
1394
|
+
updatedAt: z.ZodDate;
|
1395
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
1396
|
+
customFieldId: z.ZodString;
|
1397
|
+
upload: z.ZodObject<{
|
1398
|
+
id: z.ZodString;
|
1399
|
+
createdAt: z.ZodDate;
|
1400
|
+
updatedAt: z.ZodDate;
|
1401
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
1402
|
+
bucketName: z.ZodString;
|
1403
|
+
fileName: z.ZodString;
|
1404
|
+
fileSize: z.ZodNumber;
|
1405
|
+
fileKey: z.ZodString;
|
1406
|
+
}, "strip", z.ZodTypeAny, {
|
1407
|
+
id: string;
|
1408
|
+
createdAt: Date;
|
1409
|
+
updatedAt: Date;
|
1410
|
+
deletedAt: Date | null;
|
1411
|
+
fileName: string;
|
1412
|
+
fileKey: string;
|
1413
|
+
bucketName: string;
|
1414
|
+
fileSize: number;
|
1415
|
+
}, {
|
1416
|
+
id: string;
|
1417
|
+
createdAt: Date;
|
1418
|
+
updatedAt: Date;
|
1419
|
+
deletedAt: Date | null;
|
1420
|
+
fileName: string;
|
1421
|
+
fileKey: string;
|
1422
|
+
bucketName: string;
|
1423
|
+
fileSize: number;
|
1424
|
+
}>;
|
1425
|
+
}, "strip", z.ZodTypeAny, {
|
1426
|
+
id: string;
|
1427
|
+
createdAt: Date;
|
1428
|
+
updatedAt: Date;
|
1429
|
+
deletedAt: Date | null;
|
1430
|
+
customFieldId: string;
|
1431
|
+
upload: {
|
1432
|
+
id: string;
|
1433
|
+
createdAt: Date;
|
1434
|
+
updatedAt: Date;
|
1435
|
+
deletedAt: Date | null;
|
1436
|
+
fileName: string;
|
1437
|
+
fileKey: string;
|
1438
|
+
bucketName: string;
|
1439
|
+
fileSize: number;
|
1440
|
+
};
|
1441
|
+
}, {
|
1442
|
+
id: string;
|
1443
|
+
createdAt: Date;
|
1444
|
+
updatedAt: Date;
|
1445
|
+
deletedAt: Date | null;
|
1446
|
+
customFieldId: string;
|
1447
|
+
upload: {
|
1448
|
+
id: string;
|
1449
|
+
createdAt: Date;
|
1450
|
+
updatedAt: Date;
|
1451
|
+
deletedAt: Date | null;
|
1452
|
+
fileName: string;
|
1453
|
+
fileKey: string;
|
1454
|
+
bucketName: string;
|
1455
|
+
fileSize: number;
|
1456
|
+
};
|
1457
|
+
}>, "many">;
|
1458
|
+
}, "strip", z.ZodTypeAny, {
|
1459
|
+
id: string;
|
1460
|
+
createdAt: Date;
|
1461
|
+
updatedAt: Date;
|
1462
|
+
deletedAt: Date | null;
|
1463
|
+
attribute: {
|
1464
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
1465
|
+
id: string;
|
1466
|
+
position: number;
|
1467
|
+
createdAt: Date;
|
1468
|
+
updatedAt: Date;
|
1469
|
+
deletedAt: Date | null;
|
1470
|
+
isDefault: boolean;
|
1471
|
+
systemName: string;
|
1472
|
+
displayName: string;
|
1473
|
+
isArchived: boolean;
|
1474
|
+
isRequired: boolean;
|
1475
|
+
isUnique: boolean;
|
1476
|
+
};
|
1477
|
+
textValue: string | null;
|
1478
|
+
booleanValue: boolean | null;
|
1479
|
+
numberValue: number | null;
|
1480
|
+
dateValue: Date | null;
|
1481
|
+
uploads: {
|
1482
|
+
id: string;
|
1483
|
+
createdAt: Date;
|
1484
|
+
updatedAt: Date;
|
1485
|
+
deletedAt: Date | null;
|
1486
|
+
customFieldId: string;
|
1487
|
+
upload: {
|
1488
|
+
id: string;
|
1489
|
+
createdAt: Date;
|
1490
|
+
updatedAt: Date;
|
1491
|
+
deletedAt: Date | null;
|
1492
|
+
fileName: string;
|
1493
|
+
fileKey: string;
|
1494
|
+
bucketName: string;
|
1495
|
+
fileSize: number;
|
1496
|
+
};
|
1497
|
+
}[];
|
1498
|
+
}, {
|
1499
|
+
id: string;
|
1500
|
+
createdAt: Date;
|
1501
|
+
updatedAt: Date;
|
1502
|
+
deletedAt: Date | null;
|
1503
|
+
attribute: {
|
1504
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
1505
|
+
id: string;
|
1506
|
+
position: number;
|
1507
|
+
createdAt: Date;
|
1508
|
+
updatedAt: Date;
|
1509
|
+
deletedAt: Date | null;
|
1510
|
+
isDefault: boolean;
|
1511
|
+
systemName: string;
|
1512
|
+
displayName: string;
|
1513
|
+
isArchived: boolean;
|
1514
|
+
isRequired: boolean;
|
1515
|
+
isUnique: boolean;
|
1516
|
+
};
|
1517
|
+
textValue: string | null;
|
1518
|
+
booleanValue: boolean | null;
|
1519
|
+
numberValue: number | null;
|
1520
|
+
dateValue: Date | null;
|
1521
|
+
uploads: {
|
1522
|
+
id: string;
|
1523
|
+
createdAt: Date;
|
1524
|
+
updatedAt: Date;
|
1525
|
+
deletedAt: Date | null;
|
1526
|
+
customFieldId: string;
|
1527
|
+
upload: {
|
1528
|
+
id: string;
|
1529
|
+
createdAt: Date;
|
1530
|
+
updatedAt: Date;
|
1531
|
+
deletedAt: Date | null;
|
1532
|
+
fileName: string;
|
1533
|
+
fileKey: string;
|
1534
|
+
bucketName: string;
|
1535
|
+
fileSize: number;
|
1536
|
+
};
|
1537
|
+
}[];
|
1538
|
+
}>, "many">;
|
1539
|
+
contactEmails: z.ZodArray<z.ZodObject<{
|
1540
|
+
id: z.ZodString;
|
1541
|
+
createdAt: z.ZodDate;
|
1542
|
+
updatedAt: z.ZodDate;
|
1543
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
1544
|
+
email: z.ZodString;
|
1545
|
+
isPrimary: z.ZodBoolean;
|
1546
|
+
}, "strip", z.ZodTypeAny, {
|
1547
|
+
id: string;
|
1548
|
+
isPrimary: boolean;
|
1549
|
+
email: string;
|
1550
|
+
createdAt: Date;
|
1551
|
+
updatedAt: Date;
|
1552
|
+
deletedAt: Date | null;
|
1553
|
+
}, {
|
1554
|
+
id: string;
|
1555
|
+
isPrimary: boolean;
|
1556
|
+
email: string;
|
1557
|
+
createdAt: Date;
|
1558
|
+
updatedAt: Date;
|
1559
|
+
deletedAt: Date | null;
|
1560
|
+
}>, "many">;
|
1561
|
+
contactPhones: z.ZodArray<z.ZodObject<{
|
1562
|
+
id: z.ZodString;
|
1563
|
+
createdAt: z.ZodDate;
|
1564
|
+
updatedAt: z.ZodDate;
|
1565
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
1566
|
+
phone: z.ZodString;
|
1567
|
+
isPrimary: z.ZodBoolean;
|
1568
|
+
}, "strip", z.ZodTypeAny, {
|
1569
|
+
id: string;
|
1570
|
+
isPrimary: boolean;
|
1571
|
+
createdAt: Date;
|
1572
|
+
updatedAt: Date;
|
1573
|
+
deletedAt: Date | null;
|
1574
|
+
phone: string;
|
1575
|
+
}, {
|
1576
|
+
id: string;
|
1577
|
+
isPrimary: boolean;
|
1578
|
+
createdAt: Date;
|
1579
|
+
updatedAt: Date;
|
1580
|
+
deletedAt: Date | null;
|
1581
|
+
phone: string;
|
1582
|
+
}>, "many">;
|
1583
|
+
activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
1584
|
+
id: z.ZodString;
|
1585
|
+
createdAt: z.ZodDate;
|
1586
|
+
updatedAt: z.ZodDate;
|
1587
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
1588
|
+
entityId: z.ZodString;
|
1589
|
+
description: z.ZodString;
|
1590
|
+
entityType: z.ZodObject<{
|
1591
|
+
id: z.ZodString;
|
1592
|
+
createdAt: z.ZodDate;
|
1593
|
+
updatedAt: z.ZodDate;
|
1594
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
1595
|
+
entity: z.ZodString;
|
1596
|
+
description: z.ZodNullable<z.ZodString>;
|
1597
|
+
}, "strip", z.ZodTypeAny, {
|
1598
|
+
id: string;
|
1599
|
+
description: string | null;
|
1600
|
+
createdAt: Date;
|
1601
|
+
updatedAt: Date;
|
1602
|
+
deletedAt: Date | null;
|
1603
|
+
entity: string;
|
1604
|
+
}, {
|
1605
|
+
id: string;
|
1606
|
+
description: string | null;
|
1607
|
+
createdAt: Date;
|
1608
|
+
updatedAt: Date;
|
1609
|
+
deletedAt: Date | null;
|
1610
|
+
entity: string;
|
1611
|
+
}>;
|
1612
|
+
}, "strip", z.ZodTypeAny, {
|
1613
|
+
id: string;
|
1614
|
+
description: string;
|
1615
|
+
createdAt: Date;
|
1616
|
+
updatedAt: Date;
|
1617
|
+
deletedAt: Date | null;
|
1618
|
+
entityId: string;
|
1619
|
+
entityType: {
|
1620
|
+
id: string;
|
1621
|
+
description: string | null;
|
1622
|
+
createdAt: Date;
|
1623
|
+
updatedAt: Date;
|
1624
|
+
deletedAt: Date | null;
|
1625
|
+
entity: string;
|
1626
|
+
};
|
1627
|
+
}, {
|
1628
|
+
id: string;
|
1629
|
+
description: string;
|
1630
|
+
createdAt: Date;
|
1631
|
+
updatedAt: Date;
|
1632
|
+
deletedAt: Date | null;
|
1633
|
+
entityId: string;
|
1634
|
+
entityType: {
|
1635
|
+
id: string;
|
1636
|
+
description: string | null;
|
1637
|
+
createdAt: Date;
|
1638
|
+
updatedAt: Date;
|
1639
|
+
deletedAt: Date | null;
|
1640
|
+
entity: string;
|
1641
|
+
};
|
1642
|
+
}>, "many">>;
|
1643
|
+
}, "strip", z.ZodTypeAny, {
|
1644
|
+
id: string;
|
1645
|
+
channel: string | null;
|
1646
|
+
address: string | null;
|
1647
|
+
name: string;
|
1648
|
+
createdAt: Date;
|
1649
|
+
updatedAt: Date;
|
1650
|
+
deletedAt: Date | null;
|
1651
|
+
customFields: {
|
1652
|
+
id: string;
|
1653
|
+
createdAt: Date;
|
1654
|
+
updatedAt: Date;
|
1655
|
+
deletedAt: Date | null;
|
1656
|
+
attribute: {
|
1657
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
1658
|
+
id: string;
|
1659
|
+
position: number;
|
1660
|
+
createdAt: Date;
|
1661
|
+
updatedAt: Date;
|
1662
|
+
deletedAt: Date | null;
|
1663
|
+
isDefault: boolean;
|
1664
|
+
systemName: string;
|
1665
|
+
displayName: string;
|
1666
|
+
isArchived: boolean;
|
1667
|
+
isRequired: boolean;
|
1668
|
+
isUnique: boolean;
|
1669
|
+
};
|
1670
|
+
textValue: string | null;
|
1671
|
+
booleanValue: boolean | null;
|
1672
|
+
numberValue: number | null;
|
1673
|
+
dateValue: Date | null;
|
1674
|
+
uploads: {
|
1675
|
+
id: string;
|
1676
|
+
createdAt: Date;
|
1677
|
+
updatedAt: Date;
|
1678
|
+
deletedAt: Date | null;
|
1679
|
+
customFieldId: string;
|
1680
|
+
upload: {
|
1681
|
+
id: string;
|
1682
|
+
createdAt: Date;
|
1683
|
+
updatedAt: Date;
|
1684
|
+
deletedAt: Date | null;
|
1685
|
+
fileName: string;
|
1686
|
+
fileKey: string;
|
1687
|
+
bucketName: string;
|
1688
|
+
fileSize: number;
|
1689
|
+
};
|
1690
|
+
}[];
|
1691
|
+
}[];
|
1692
|
+
notes: string | null;
|
1693
|
+
contactProfile: string | null;
|
1694
|
+
socialProfileUrl: string | null;
|
1695
|
+
tags: {
|
1696
|
+
id: string;
|
1697
|
+
name: string;
|
1698
|
+
createdAt: Date;
|
1699
|
+
updatedAt: Date;
|
1700
|
+
deletedAt: Date | null;
|
1701
|
+
}[];
|
1702
|
+
company: {
|
1703
|
+
id: string;
|
1704
|
+
createdAt: Date;
|
1705
|
+
updatedAt: Date;
|
1706
|
+
deletedAt: Date | null;
|
1707
|
+
address?: string | null | undefined;
|
1708
|
+
name?: string | undefined;
|
1709
|
+
phone?: string | null | undefined;
|
1710
|
+
industry?: string | null | undefined;
|
1711
|
+
} | null;
|
1712
|
+
contactEmails: {
|
1713
|
+
id: string;
|
1714
|
+
isPrimary: boolean;
|
1715
|
+
email: string;
|
1716
|
+
createdAt: Date;
|
1717
|
+
updatedAt: Date;
|
1718
|
+
deletedAt: Date | null;
|
1719
|
+
}[];
|
1720
|
+
contactPhones: {
|
1721
|
+
id: string;
|
1722
|
+
isPrimary: boolean;
|
1723
|
+
createdAt: Date;
|
1724
|
+
updatedAt: Date;
|
1725
|
+
deletedAt: Date | null;
|
1726
|
+
phone: string;
|
1727
|
+
}[];
|
1728
|
+
activityLogs?: {
|
1729
|
+
id: string;
|
1730
|
+
description: string;
|
1731
|
+
createdAt: Date;
|
1732
|
+
updatedAt: Date;
|
1733
|
+
deletedAt: Date | null;
|
1734
|
+
entityId: string;
|
1735
|
+
entityType: {
|
1736
|
+
id: string;
|
1737
|
+
description: string | null;
|
1738
|
+
createdAt: Date;
|
1739
|
+
updatedAt: Date;
|
1740
|
+
deletedAt: Date | null;
|
1741
|
+
entity: string;
|
1742
|
+
};
|
1743
|
+
}[] | undefined;
|
1744
|
+
}, {
|
1745
|
+
id: string;
|
1746
|
+
channel: string | null;
|
1747
|
+
address: string | null;
|
1748
|
+
name: string;
|
1749
|
+
createdAt: Date;
|
1750
|
+
updatedAt: Date;
|
1751
|
+
deletedAt: Date | null;
|
1752
|
+
customFields: {
|
1753
|
+
id: string;
|
1754
|
+
createdAt: Date;
|
1755
|
+
updatedAt: Date;
|
1756
|
+
deletedAt: Date | null;
|
1757
|
+
attribute: {
|
1758
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
1759
|
+
id: string;
|
1760
|
+
position: number;
|
1761
|
+
createdAt: Date;
|
1762
|
+
updatedAt: Date;
|
1763
|
+
deletedAt: Date | null;
|
1764
|
+
isDefault: boolean;
|
1765
|
+
systemName: string;
|
1766
|
+
displayName: string;
|
1767
|
+
isArchived: boolean;
|
1768
|
+
isRequired: boolean;
|
1769
|
+
isUnique: boolean;
|
1770
|
+
};
|
1771
|
+
textValue: string | null;
|
1772
|
+
booleanValue: boolean | null;
|
1773
|
+
numberValue: number | null;
|
1774
|
+
dateValue: Date | null;
|
1775
|
+
uploads: {
|
1776
|
+
id: string;
|
1777
|
+
createdAt: Date;
|
1778
|
+
updatedAt: Date;
|
1779
|
+
deletedAt: Date | null;
|
1780
|
+
customFieldId: string;
|
1781
|
+
upload: {
|
1782
|
+
id: string;
|
1783
|
+
createdAt: Date;
|
1784
|
+
updatedAt: Date;
|
1785
|
+
deletedAt: Date | null;
|
1786
|
+
fileName: string;
|
1787
|
+
fileKey: string;
|
1788
|
+
bucketName: string;
|
1789
|
+
fileSize: number;
|
1790
|
+
};
|
1791
|
+
}[];
|
1792
|
+
}[];
|
1793
|
+
notes: string | null;
|
1794
|
+
contactProfile: string | null;
|
1795
|
+
socialProfileUrl: string | null;
|
1796
|
+
tags: {
|
1797
|
+
id: string;
|
1798
|
+
name: string;
|
1799
|
+
createdAt: Date;
|
1800
|
+
updatedAt: Date;
|
1801
|
+
deletedAt: Date | null;
|
1802
|
+
}[];
|
1803
|
+
company: {
|
1804
|
+
id: string;
|
1805
|
+
createdAt: Date;
|
1806
|
+
updatedAt: Date;
|
1807
|
+
deletedAt: Date | null;
|
1808
|
+
address?: string | null | undefined;
|
1809
|
+
name?: string | undefined;
|
1810
|
+
phone?: string | null | undefined;
|
1811
|
+
industry?: string | null | undefined;
|
1812
|
+
} | null;
|
1813
|
+
contactEmails: {
|
1814
|
+
id: string;
|
1815
|
+
isPrimary: boolean;
|
1816
|
+
email: string;
|
1817
|
+
createdAt: Date;
|
1818
|
+
updatedAt: Date;
|
1819
|
+
deletedAt: Date | null;
|
1820
|
+
}[];
|
1821
|
+
contactPhones: {
|
1822
|
+
id: string;
|
1823
|
+
isPrimary: boolean;
|
1824
|
+
createdAt: Date;
|
1825
|
+
updatedAt: Date;
|
1826
|
+
deletedAt: Date | null;
|
1827
|
+
phone: string;
|
1828
|
+
}[];
|
1829
|
+
activityLogs?: {
|
1830
|
+
id: string;
|
1831
|
+
description: string;
|
1832
|
+
createdAt: Date;
|
1833
|
+
updatedAt: Date;
|
1834
|
+
deletedAt: Date | null;
|
1835
|
+
entityId: string;
|
1836
|
+
entityType: {
|
1837
|
+
id: string;
|
1838
|
+
description: string | null;
|
1839
|
+
createdAt: Date;
|
1840
|
+
updatedAt: Date;
|
1841
|
+
deletedAt: Date | null;
|
1842
|
+
entity: string;
|
1843
|
+
};
|
1844
|
+
}[] | undefined;
|
1845
|
+
}>, "many">;
|
1846
|
+
};
|
1847
|
+
};
|
1028
1848
|
};
|
1029
1849
|
//# sourceMappingURL=validation.d.ts.map
|