@kl1/contracts 1.0.32 → 1.0.33
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 +1809 -1627
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1807 -1627
- package/dist/index.mjs.map +1 -1
- package/dist/src/attribute/validation.d.ts.map +1 -1
- package/dist/src/call-log/validation.d.ts +2 -2
- package/dist/src/channel/index.d.ts +721 -299
- package/dist/src/channel/index.d.ts.map +1 -1
- package/dist/src/channel/validation.d.ts +0 -291
- package/dist/src/channel/validation.d.ts.map +1 -1
- package/dist/src/chat/index.d.ts +105 -104
- package/dist/src/chat/index.d.ts.map +1 -1
- package/dist/src/chat/schema.d.ts +16 -16
- package/dist/src/chat/schema.d.ts.map +1 -1
- package/dist/src/chat/validation.d.ts +193 -67
- package/dist/src/chat/validation.d.ts.map +1 -1
- package/dist/src/company/index.d.ts +8 -85
- package/dist/src/company/index.d.ts.map +1 -1
- package/dist/src/company/schema.d.ts +137 -0
- package/dist/src/company/schema.d.ts.map +1 -1
- package/dist/src/company/validation.d.ts +0 -40
- package/dist/src/company/validation.d.ts.map +1 -1
- package/dist/src/contact/index.d.ts +1191 -1191
- package/dist/src/contract.d.ts +3159 -2340
- package/dist/src/contract.d.ts.map +1 -1
- package/dist/src/cx-log/index.d.ts +22 -22
- package/dist/src/cx-log/schema.d.ts +16 -16
- package/dist/src/dashboard/index.d.ts +11 -7
- package/dist/src/dashboard/index.d.ts.map +1 -1
- package/dist/src/dashboard/schema.d.ts +127 -2
- package/dist/src/dashboard/schema.d.ts.map +1 -1
- package/dist/src/evaluate-form/schema.d.ts +6 -6
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/mail/mail-contract.d.ts +42 -42
- package/dist/src/mail/room-contract.d.ts +42 -42
- package/dist/src/mail/schemas/room-validation.schema.d.ts +14 -14
- package/dist/src/mail/schemas/room.schema.d.ts +10 -10
- package/dist/src/messenger/index.d.ts +1212 -707
- package/dist/src/messenger/index.d.ts.map +1 -1
- package/dist/src/messenger/validation.d.ts +108 -1
- package/dist/src/messenger/validation.d.ts.map +1 -1
- package/dist/src/ticket/index.d.ts +207 -342
- package/dist/src/ticket/index.d.ts.map +1 -1
- package/dist/src/ticket/validation.d.ts +168 -338
- package/dist/src/ticket/validation.d.ts.map +1 -1
- package/dist/src/widget/index.d.ts +72 -1
- package/dist/src/widget/index.d.ts.map +1 -1
- package/dist/src/widget/validation.d.ts +10 -0
- package/dist/src/widget/validation.d.ts.map +1 -1
- package/package.json +47 -46
- package/dist/src/app/index.d.ts +0 -17
- package/dist/src/app/index.d.ts.map +0 -1
- package/dist/src/mail/mail-server.d.ts +0 -216
- package/dist/src/mail/mail-server.d.ts.map +0 -1
- package/dist/src/platform-contact/schema.d.ts +0 -30
- package/dist/src/platform-contact/schema.d.ts.map +0 -1
@@ -363,20 +363,80 @@ export declare const contactContract: {
|
|
363
363
|
'x-client-timezone'?: string | undefined;
|
364
364
|
}>>>;
|
365
365
|
};
|
366
|
-
|
367
|
-
summary: "Get
|
366
|
+
getAll: {
|
367
|
+
summary: "Get all contacts";
|
368
368
|
method: "GET";
|
369
|
-
|
370
|
-
|
369
|
+
query: z.ZodObject<{
|
370
|
+
page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
371
|
+
pageSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
372
|
+
keyword: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
373
|
+
company: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
374
|
+
name: z.ZodOptional<z.ZodString>;
|
375
|
+
address: z.ZodOptional<z.ZodString>;
|
376
|
+
channel: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
377
|
+
selectedDate: z.ZodOptional<z.ZodString>;
|
378
|
+
customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
379
|
+
attributeId: z.ZodString;
|
380
|
+
type: z.ZodString;
|
381
|
+
value: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
382
|
+
}, "strip", z.ZodTypeAny, {
|
383
|
+
type: string;
|
384
|
+
value: (string | string[]) & (string | string[] | undefined);
|
385
|
+
attributeId: string;
|
386
|
+
}, {
|
387
|
+
type: string;
|
388
|
+
value: (string | string[]) & (string | string[] | undefined);
|
389
|
+
attributeId: string;
|
390
|
+
}>, "many">>;
|
391
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
392
|
+
phone: z.ZodOptional<z.ZodString>;
|
393
|
+
email: z.ZodOptional<z.ZodString>;
|
394
|
+
notes: z.ZodOptional<z.ZodString>;
|
371
395
|
}, "strip", z.ZodTypeAny, {
|
372
|
-
|
396
|
+
page?: number | undefined;
|
397
|
+
pageSize?: number | undefined;
|
398
|
+
keyword?: string | undefined;
|
399
|
+
company?: string[] | undefined;
|
400
|
+
name?: string | undefined;
|
401
|
+
address?: string | undefined;
|
402
|
+
channel?: string[] | undefined;
|
403
|
+
selectedDate?: string | undefined;
|
404
|
+
customFields?: {
|
405
|
+
type: string;
|
406
|
+
value: (string | string[]) & (string | string[] | undefined);
|
407
|
+
attributeId: string;
|
408
|
+
}[] | undefined;
|
409
|
+
tags?: string[] | undefined;
|
410
|
+
phone?: string | undefined;
|
411
|
+
email?: string | undefined;
|
412
|
+
notes?: string | undefined;
|
373
413
|
}, {
|
374
|
-
|
414
|
+
page?: number | undefined;
|
415
|
+
pageSize?: number | undefined;
|
416
|
+
keyword?: string | undefined;
|
417
|
+
company?: string[] | undefined;
|
418
|
+
name?: string | undefined;
|
419
|
+
address?: string | undefined;
|
420
|
+
channel?: string[] | undefined;
|
421
|
+
selectedDate?: string | undefined;
|
422
|
+
customFields?: {
|
423
|
+
type: string;
|
424
|
+
value: (string | string[]) & (string | string[] | undefined);
|
425
|
+
attributeId: string;
|
426
|
+
}[] | undefined;
|
427
|
+
tags?: string[] | undefined;
|
428
|
+
phone?: string | undefined;
|
429
|
+
email?: string | undefined;
|
430
|
+
notes?: string | undefined;
|
375
431
|
}>;
|
376
432
|
responses: {
|
377
433
|
200: z.ZodObject<{
|
378
434
|
requestId: z.ZodString;
|
379
|
-
|
435
|
+
page: z.ZodNumber;
|
436
|
+
pageSize: z.ZodNumber;
|
437
|
+
total: z.ZodNumber;
|
438
|
+
lastPage: z.ZodNumber;
|
439
|
+
data: z.ZodArray<z.ZodObject<{
|
380
440
|
id: z.ZodString;
|
381
441
|
createdAt: z.ZodDate;
|
382
442
|
updatedAt: z.ZodDate;
|
@@ -1115,7 +1175,7 @@ export declare const contactContract: {
|
|
1115
1175
|
entity: string;
|
1116
1176
|
};
|
1117
1177
|
}[] | undefined;
|
1118
|
-
}>;
|
1178
|
+
}>, "many">;
|
1119
1179
|
}, "strip", z.ZodTypeAny, {
|
1120
1180
|
data: {
|
1121
1181
|
id: string;
|
@@ -1218,7 +1278,11 @@ export declare const contactContract: {
|
|
1218
1278
|
entity: string;
|
1219
1279
|
};
|
1220
1280
|
}[] | undefined;
|
1221
|
-
};
|
1281
|
+
}[];
|
1282
|
+
total: number;
|
1283
|
+
page: number;
|
1284
|
+
pageSize: number;
|
1285
|
+
lastPage: number;
|
1222
1286
|
requestId: string;
|
1223
1287
|
}, {
|
1224
1288
|
data: {
|
@@ -1322,7 +1386,11 @@ export declare const contactContract: {
|
|
1322
1386
|
entity: string;
|
1323
1387
|
};
|
1324
1388
|
}[] | undefined;
|
1325
|
-
};
|
1389
|
+
}[];
|
1390
|
+
total: number;
|
1391
|
+
page: number;
|
1392
|
+
pageSize: number;
|
1393
|
+
lastPage: number;
|
1326
1394
|
requestId: string;
|
1327
1395
|
}>;
|
1328
1396
|
400: z.ZodObject<{
|
@@ -1377,7 +1445,7 @@ export declare const contactContract: {
|
|
1377
1445
|
error?: any;
|
1378
1446
|
}>;
|
1379
1447
|
};
|
1380
|
-
path: "contact
|
1448
|
+
path: "contact";
|
1381
1449
|
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
1382
1450
|
'x-tenant': z.ZodString;
|
1383
1451
|
authorization: z.ZodString;
|
@@ -1395,71 +1463,21 @@ export declare const contactContract: {
|
|
1395
1463
|
'x-client-timezone'?: string | undefined;
|
1396
1464
|
}>>>;
|
1397
1465
|
};
|
1398
|
-
|
1399
|
-
summary: "Get all contacts";
|
1466
|
+
filterContacts: {
|
1467
|
+
summary: "Get all contacts by filtering with only keyword";
|
1400
1468
|
method: "GET";
|
1401
1469
|
query: z.ZodObject<{
|
1402
1470
|
page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
1403
1471
|
pageSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
1404
|
-
keyword: z.ZodOptional<z.
|
1405
|
-
company: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
1406
|
-
name: z.ZodOptional<z.ZodString>;
|
1407
|
-
address: z.ZodOptional<z.ZodString>;
|
1408
|
-
channel: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
1409
|
-
selectedDate: z.ZodOptional<z.ZodString>;
|
1410
|
-
customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
1411
|
-
attributeId: z.ZodString;
|
1412
|
-
type: z.ZodString;
|
1413
|
-
value: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
1414
|
-
}, "strip", z.ZodTypeAny, {
|
1415
|
-
type: string;
|
1416
|
-
value: (string | string[]) & (string | string[] | undefined);
|
1417
|
-
attributeId: string;
|
1418
|
-
}, {
|
1419
|
-
type: string;
|
1420
|
-
value: (string | string[]) & (string | string[] | undefined);
|
1421
|
-
attributeId: string;
|
1422
|
-
}>, "many">>;
|
1423
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
1424
|
-
phone: z.ZodOptional<z.ZodString>;
|
1425
|
-
email: z.ZodOptional<z.ZodString>;
|
1426
|
-
notes: z.ZodOptional<z.ZodString>;
|
1472
|
+
keyword: z.ZodOptional<z.ZodString>;
|
1427
1473
|
}, "strip", z.ZodTypeAny, {
|
1428
1474
|
page?: number | undefined;
|
1429
1475
|
pageSize?: number | undefined;
|
1430
1476
|
keyword?: string | undefined;
|
1431
|
-
company?: string[] | undefined;
|
1432
|
-
name?: string | undefined;
|
1433
|
-
address?: string | undefined;
|
1434
|
-
channel?: string[] | undefined;
|
1435
|
-
selectedDate?: string | undefined;
|
1436
|
-
customFields?: {
|
1437
|
-
type: string;
|
1438
|
-
value: (string | string[]) & (string | string[] | undefined);
|
1439
|
-
attributeId: string;
|
1440
|
-
}[] | undefined;
|
1441
|
-
tags?: string[] | undefined;
|
1442
|
-
phone?: string | undefined;
|
1443
|
-
email?: string | undefined;
|
1444
|
-
notes?: string | undefined;
|
1445
1477
|
}, {
|
1446
1478
|
page?: number | undefined;
|
1447
1479
|
pageSize?: number | undefined;
|
1448
1480
|
keyword?: string | undefined;
|
1449
|
-
company?: string[] | undefined;
|
1450
|
-
name?: string | undefined;
|
1451
|
-
address?: string | undefined;
|
1452
|
-
channel?: string[] | undefined;
|
1453
|
-
selectedDate?: string | undefined;
|
1454
|
-
customFields?: {
|
1455
|
-
type: string;
|
1456
|
-
value: (string | string[]) & (string | string[] | undefined);
|
1457
|
-
attributeId: string;
|
1458
|
-
}[] | undefined;
|
1459
|
-
tags?: string[] | undefined;
|
1460
|
-
phone?: string | undefined;
|
1461
|
-
email?: string | undefined;
|
1462
|
-
notes?: string | undefined;
|
1463
1481
|
}>;
|
1464
1482
|
responses: {
|
1465
1483
|
200: z.ZodObject<{
|
@@ -2477,1057 +2495,7 @@ export declare const contactContract: {
|
|
2477
2495
|
error?: any;
|
2478
2496
|
}>;
|
2479
2497
|
};
|
2480
|
-
path: "contact";
|
2481
|
-
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
2482
|
-
'x-tenant': z.ZodString;
|
2483
|
-
authorization: z.ZodString;
|
2484
|
-
'x-code': z.ZodOptional<z.ZodString>;
|
2485
|
-
'x-client-timezone': z.ZodDefault<z.ZodString>;
|
2486
|
-
}, "strip", z.ZodTypeAny, {
|
2487
|
-
'x-tenant': string;
|
2488
|
-
authorization: string;
|
2489
|
-
'x-client-timezone': string;
|
2490
|
-
'x-code'?: string | undefined;
|
2491
|
-
}, {
|
2492
|
-
'x-tenant': string;
|
2493
|
-
authorization: string;
|
2494
|
-
'x-code'?: string | undefined;
|
2495
|
-
'x-client-timezone'?: string | undefined;
|
2496
|
-
}>>>;
|
2497
|
-
};
|
2498
|
-
filterContacts: {
|
2499
|
-
summary: "Get all contacts by filtering with only keyword";
|
2500
|
-
method: "GET";
|
2501
|
-
query: z.ZodObject<{
|
2502
|
-
page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
2503
|
-
pageSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
2504
|
-
keyword: z.ZodOptional<z.ZodString>;
|
2505
|
-
}, "strip", z.ZodTypeAny, {
|
2506
|
-
page?: number | undefined;
|
2507
|
-
pageSize?: number | undefined;
|
2508
|
-
keyword?: string | undefined;
|
2509
|
-
}, {
|
2510
|
-
page?: number | undefined;
|
2511
|
-
pageSize?: number | undefined;
|
2512
|
-
keyword?: string | undefined;
|
2513
|
-
}>;
|
2514
|
-
responses: {
|
2515
|
-
200: z.ZodObject<{
|
2516
|
-
requestId: z.ZodString;
|
2517
|
-
page: z.ZodNumber;
|
2518
|
-
pageSize: z.ZodNumber;
|
2519
|
-
total: z.ZodNumber;
|
2520
|
-
lastPage: z.ZodNumber;
|
2521
|
-
data: z.ZodArray<z.ZodObject<{
|
2522
|
-
id: z.ZodString;
|
2523
|
-
createdAt: z.ZodDate;
|
2524
|
-
updatedAt: z.ZodDate;
|
2525
|
-
deletedAt: z.ZodNullable<z.ZodDate>;
|
2526
|
-
name: z.ZodString;
|
2527
|
-
address: z.ZodNullable<z.ZodString>;
|
2528
|
-
channel: z.ZodNullable<z.ZodString>;
|
2529
|
-
notes: z.ZodNullable<z.ZodString>;
|
2530
|
-
contactProfile: z.ZodNullable<z.ZodString>;
|
2531
|
-
socialProfileUrl: z.ZodNullable<z.ZodString>;
|
2532
|
-
tags: z.ZodArray<z.ZodObject<{
|
2533
|
-
id: z.ZodString;
|
2534
|
-
createdAt: z.ZodDate;
|
2535
|
-
updatedAt: z.ZodDate;
|
2536
|
-
deletedAt: z.ZodNullable<z.ZodDate>;
|
2537
|
-
name: z.ZodString;
|
2538
|
-
}, "strip", z.ZodTypeAny, {
|
2539
|
-
id: string;
|
2540
|
-
name: string;
|
2541
|
-
createdAt: Date;
|
2542
|
-
updatedAt: Date;
|
2543
|
-
deletedAt: Date | null;
|
2544
|
-
}, {
|
2545
|
-
id: string;
|
2546
|
-
name: string;
|
2547
|
-
createdAt: Date;
|
2548
|
-
updatedAt: Date;
|
2549
|
-
deletedAt: Date | null;
|
2550
|
-
}>, "many">;
|
2551
|
-
company: z.ZodNullable<z.ZodObject<Omit<{
|
2552
|
-
id: z.ZodString;
|
2553
|
-
createdAt: z.ZodDate;
|
2554
|
-
updatedAt: z.ZodDate;
|
2555
|
-
deletedAt: z.ZodNullable<z.ZodDate>;
|
2556
|
-
name: z.ZodOptional<z.ZodString>;
|
2557
|
-
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
2558
|
-
address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
2559
|
-
industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
2560
|
-
customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
2561
|
-
id: z.ZodString;
|
2562
|
-
createdAt: z.ZodDate;
|
2563
|
-
updatedAt: z.ZodDate;
|
2564
|
-
deletedAt: z.ZodNullable<z.ZodDate>;
|
2565
|
-
textValue: z.ZodNullable<z.ZodString>;
|
2566
|
-
booleanValue: z.ZodNullable<z.ZodBoolean>;
|
2567
|
-
numberValue: z.ZodNullable<z.ZodNumber>;
|
2568
|
-
dateValue: z.ZodNullable<z.ZodDate>;
|
2569
|
-
attribute: z.ZodObject<Omit<{
|
2570
|
-
id: z.ZodString;
|
2571
|
-
createdAt: z.ZodDate;
|
2572
|
-
updatedAt: z.ZodDate;
|
2573
|
-
deletedAt: z.ZodNullable<z.ZodDate>;
|
2574
|
-
systemName: z.ZodString;
|
2575
|
-
displayName: z.ZodString;
|
2576
|
-
type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
|
2577
|
-
position: z.ZodNumber;
|
2578
|
-
isDefault: z.ZodBoolean;
|
2579
|
-
isArchived: z.ZodBoolean;
|
2580
|
-
isRequired: z.ZodBoolean;
|
2581
|
-
isUnique: z.ZodBoolean;
|
2582
|
-
options: z.ZodArray<z.ZodObject<{
|
2583
|
-
position: z.ZodNumber;
|
2584
|
-
value: z.ZodString;
|
2585
|
-
label: z.ZodString;
|
2586
|
-
isDefault: z.ZodBoolean;
|
2587
|
-
id: z.ZodString;
|
2588
|
-
}, "strip", z.ZodTypeAny, {
|
2589
|
-
id: string;
|
2590
|
-
position: number;
|
2591
|
-
value: string;
|
2592
|
-
label: string;
|
2593
|
-
isDefault: boolean;
|
2594
|
-
}, {
|
2595
|
-
id: string;
|
2596
|
-
position: number;
|
2597
|
-
value: string;
|
2598
|
-
label: string;
|
2599
|
-
isDefault: boolean;
|
2600
|
-
}>, "many">;
|
2601
|
-
group: z.ZodObject<{
|
2602
|
-
id: z.ZodString;
|
2603
|
-
createdAt: z.ZodDate;
|
2604
|
-
updatedAt: z.ZodDate;
|
2605
|
-
deletedAt: z.ZodNullable<z.ZodDate>;
|
2606
|
-
systemName: z.ZodString;
|
2607
|
-
displayName: z.ZodString;
|
2608
|
-
}, "strip", z.ZodTypeAny, {
|
2609
|
-
id: string;
|
2610
|
-
createdAt: Date;
|
2611
|
-
updatedAt: Date;
|
2612
|
-
deletedAt: Date | null;
|
2613
|
-
systemName: string;
|
2614
|
-
displayName: string;
|
2615
|
-
}, {
|
2616
|
-
id: string;
|
2617
|
-
createdAt: Date;
|
2618
|
-
updatedAt: Date;
|
2619
|
-
deletedAt: Date | null;
|
2620
|
-
systemName: string;
|
2621
|
-
displayName: string;
|
2622
|
-
}>;
|
2623
|
-
}, "options" | "group">, "strip", z.ZodTypeAny, {
|
2624
|
-
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
2625
|
-
id: string;
|
2626
|
-
position: number;
|
2627
|
-
createdAt: Date;
|
2628
|
-
updatedAt: Date;
|
2629
|
-
deletedAt: Date | null;
|
2630
|
-
isDefault: boolean;
|
2631
|
-
systemName: string;
|
2632
|
-
displayName: string;
|
2633
|
-
isArchived: boolean;
|
2634
|
-
isRequired: boolean;
|
2635
|
-
isUnique: boolean;
|
2636
|
-
}, {
|
2637
|
-
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
2638
|
-
id: string;
|
2639
|
-
position: number;
|
2640
|
-
createdAt: Date;
|
2641
|
-
updatedAt: Date;
|
2642
|
-
deletedAt: Date | null;
|
2643
|
-
isDefault: boolean;
|
2644
|
-
systemName: string;
|
2645
|
-
displayName: string;
|
2646
|
-
isArchived: boolean;
|
2647
|
-
isRequired: boolean;
|
2648
|
-
isUnique: boolean;
|
2649
|
-
}>;
|
2650
|
-
}, "strip", z.ZodTypeAny, {
|
2651
|
-
id: string;
|
2652
|
-
createdAt: Date;
|
2653
|
-
updatedAt: Date;
|
2654
|
-
deletedAt: Date | null;
|
2655
|
-
attribute: {
|
2656
|
-
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
2657
|
-
id: string;
|
2658
|
-
position: number;
|
2659
|
-
createdAt: Date;
|
2660
|
-
updatedAt: Date;
|
2661
|
-
deletedAt: Date | null;
|
2662
|
-
isDefault: boolean;
|
2663
|
-
systemName: string;
|
2664
|
-
displayName: string;
|
2665
|
-
isArchived: boolean;
|
2666
|
-
isRequired: boolean;
|
2667
|
-
isUnique: boolean;
|
2668
|
-
};
|
2669
|
-
textValue: string | null;
|
2670
|
-
booleanValue: boolean | null;
|
2671
|
-
numberValue: number | null;
|
2672
|
-
dateValue: Date | null;
|
2673
|
-
}, {
|
2674
|
-
id: string;
|
2675
|
-
createdAt: Date;
|
2676
|
-
updatedAt: Date;
|
2677
|
-
deletedAt: Date | null;
|
2678
|
-
attribute: {
|
2679
|
-
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
2680
|
-
id: string;
|
2681
|
-
position: number;
|
2682
|
-
createdAt: Date;
|
2683
|
-
updatedAt: Date;
|
2684
|
-
deletedAt: Date | null;
|
2685
|
-
isDefault: boolean;
|
2686
|
-
systemName: string;
|
2687
|
-
displayName: string;
|
2688
|
-
isArchived: boolean;
|
2689
|
-
isRequired: boolean;
|
2690
|
-
isUnique: boolean;
|
2691
|
-
};
|
2692
|
-
textValue: string | null;
|
2693
|
-
booleanValue: boolean | null;
|
2694
|
-
numberValue: number | null;
|
2695
|
-
dateValue: Date | null;
|
2696
|
-
}>, "many">>;
|
2697
|
-
}, "customFields">, "strip", z.ZodTypeAny, {
|
2698
|
-
id: string;
|
2699
|
-
createdAt: Date;
|
2700
|
-
updatedAt: Date;
|
2701
|
-
deletedAt: Date | null;
|
2702
|
-
address?: string | null | undefined;
|
2703
|
-
name?: string | undefined;
|
2704
|
-
phone?: string | null | undefined;
|
2705
|
-
industry?: string | null | undefined;
|
2706
|
-
}, {
|
2707
|
-
id: string;
|
2708
|
-
createdAt: Date;
|
2709
|
-
updatedAt: Date;
|
2710
|
-
deletedAt: Date | null;
|
2711
|
-
address?: string | null | undefined;
|
2712
|
-
name?: string | undefined;
|
2713
|
-
phone?: string | null | undefined;
|
2714
|
-
industry?: string | null | undefined;
|
2715
|
-
}>>;
|
2716
|
-
customFields: z.ZodArray<z.ZodObject<{
|
2717
|
-
id: z.ZodString;
|
2718
|
-
createdAt: z.ZodDate;
|
2719
|
-
updatedAt: z.ZodDate;
|
2720
|
-
deletedAt: z.ZodNullable<z.ZodDate>;
|
2721
|
-
textValue: z.ZodNullable<z.ZodString>;
|
2722
|
-
booleanValue: z.ZodNullable<z.ZodBoolean>;
|
2723
|
-
numberValue: z.ZodNullable<z.ZodNumber>;
|
2724
|
-
dateValue: z.ZodNullable<z.ZodDate>;
|
2725
|
-
attribute: z.ZodObject<Omit<{
|
2726
|
-
id: z.ZodString;
|
2727
|
-
createdAt: z.ZodDate;
|
2728
|
-
updatedAt: z.ZodDate;
|
2729
|
-
deletedAt: z.ZodNullable<z.ZodDate>;
|
2730
|
-
systemName: z.ZodString;
|
2731
|
-
displayName: z.ZodString;
|
2732
|
-
type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
|
2733
|
-
position: z.ZodNumber;
|
2734
|
-
isDefault: z.ZodBoolean;
|
2735
|
-
isArchived: z.ZodBoolean;
|
2736
|
-
isRequired: z.ZodBoolean;
|
2737
|
-
isUnique: z.ZodBoolean;
|
2738
|
-
options: z.ZodArray<z.ZodObject<{
|
2739
|
-
position: z.ZodNumber;
|
2740
|
-
value: z.ZodString;
|
2741
|
-
label: z.ZodString;
|
2742
|
-
isDefault: z.ZodBoolean;
|
2743
|
-
id: z.ZodString;
|
2744
|
-
}, "strip", z.ZodTypeAny, {
|
2745
|
-
id: string;
|
2746
|
-
position: number;
|
2747
|
-
value: string;
|
2748
|
-
label: string;
|
2749
|
-
isDefault: boolean;
|
2750
|
-
}, {
|
2751
|
-
id: string;
|
2752
|
-
position: number;
|
2753
|
-
value: string;
|
2754
|
-
label: string;
|
2755
|
-
isDefault: boolean;
|
2756
|
-
}>, "many">;
|
2757
|
-
group: z.ZodObject<{
|
2758
|
-
id: z.ZodString;
|
2759
|
-
createdAt: z.ZodDate;
|
2760
|
-
updatedAt: z.ZodDate;
|
2761
|
-
deletedAt: z.ZodNullable<z.ZodDate>;
|
2762
|
-
systemName: z.ZodString;
|
2763
|
-
displayName: z.ZodString;
|
2764
|
-
}, "strip", z.ZodTypeAny, {
|
2765
|
-
id: string;
|
2766
|
-
createdAt: Date;
|
2767
|
-
updatedAt: Date;
|
2768
|
-
deletedAt: Date | null;
|
2769
|
-
systemName: string;
|
2770
|
-
displayName: string;
|
2771
|
-
}, {
|
2772
|
-
id: string;
|
2773
|
-
createdAt: Date;
|
2774
|
-
updatedAt: Date;
|
2775
|
-
deletedAt: Date | null;
|
2776
|
-
systemName: string;
|
2777
|
-
displayName: string;
|
2778
|
-
}>;
|
2779
|
-
}, "options" | "group">, "strip", z.ZodTypeAny, {
|
2780
|
-
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
2781
|
-
id: string;
|
2782
|
-
position: number;
|
2783
|
-
createdAt: Date;
|
2784
|
-
updatedAt: Date;
|
2785
|
-
deletedAt: Date | null;
|
2786
|
-
isDefault: boolean;
|
2787
|
-
systemName: string;
|
2788
|
-
displayName: string;
|
2789
|
-
isArchived: boolean;
|
2790
|
-
isRequired: boolean;
|
2791
|
-
isUnique: boolean;
|
2792
|
-
}, {
|
2793
|
-
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
2794
|
-
id: string;
|
2795
|
-
position: number;
|
2796
|
-
createdAt: Date;
|
2797
|
-
updatedAt: Date;
|
2798
|
-
deletedAt: Date | null;
|
2799
|
-
isDefault: boolean;
|
2800
|
-
systemName: string;
|
2801
|
-
displayName: string;
|
2802
|
-
isArchived: boolean;
|
2803
|
-
isRequired: boolean;
|
2804
|
-
isUnique: boolean;
|
2805
|
-
}>;
|
2806
|
-
uploads: z.ZodArray<z.ZodObject<{
|
2807
|
-
id: z.ZodString;
|
2808
|
-
createdAt: z.ZodDate;
|
2809
|
-
updatedAt: z.ZodDate;
|
2810
|
-
deletedAt: z.ZodNullable<z.ZodDate>;
|
2811
|
-
customFieldId: z.ZodString;
|
2812
|
-
upload: z.ZodObject<{
|
2813
|
-
id: z.ZodString;
|
2814
|
-
createdAt: z.ZodDate;
|
2815
|
-
updatedAt: z.ZodDate;
|
2816
|
-
deletedAt: z.ZodNullable<z.ZodDate>;
|
2817
|
-
bucketName: z.ZodString;
|
2818
|
-
fileName: z.ZodString;
|
2819
|
-
fileSize: z.ZodNumber;
|
2820
|
-
fileKey: z.ZodString;
|
2821
|
-
}, "strip", z.ZodTypeAny, {
|
2822
|
-
id: string;
|
2823
|
-
createdAt: Date;
|
2824
|
-
updatedAt: Date;
|
2825
|
-
deletedAt: Date | null;
|
2826
|
-
fileName: string;
|
2827
|
-
fileKey: string;
|
2828
|
-
bucketName: string;
|
2829
|
-
fileSize: number;
|
2830
|
-
}, {
|
2831
|
-
id: string;
|
2832
|
-
createdAt: Date;
|
2833
|
-
updatedAt: Date;
|
2834
|
-
deletedAt: Date | null;
|
2835
|
-
fileName: string;
|
2836
|
-
fileKey: string;
|
2837
|
-
bucketName: string;
|
2838
|
-
fileSize: number;
|
2839
|
-
}>;
|
2840
|
-
}, "strip", z.ZodTypeAny, {
|
2841
|
-
id: string;
|
2842
|
-
createdAt: Date;
|
2843
|
-
updatedAt: Date;
|
2844
|
-
deletedAt: Date | null;
|
2845
|
-
customFieldId: string;
|
2846
|
-
upload: {
|
2847
|
-
id: string;
|
2848
|
-
createdAt: Date;
|
2849
|
-
updatedAt: Date;
|
2850
|
-
deletedAt: Date | null;
|
2851
|
-
fileName: string;
|
2852
|
-
fileKey: string;
|
2853
|
-
bucketName: string;
|
2854
|
-
fileSize: number;
|
2855
|
-
};
|
2856
|
-
}, {
|
2857
|
-
id: string;
|
2858
|
-
createdAt: Date;
|
2859
|
-
updatedAt: Date;
|
2860
|
-
deletedAt: Date | null;
|
2861
|
-
customFieldId: string;
|
2862
|
-
upload: {
|
2863
|
-
id: string;
|
2864
|
-
createdAt: Date;
|
2865
|
-
updatedAt: Date;
|
2866
|
-
deletedAt: Date | null;
|
2867
|
-
fileName: string;
|
2868
|
-
fileKey: string;
|
2869
|
-
bucketName: string;
|
2870
|
-
fileSize: number;
|
2871
|
-
};
|
2872
|
-
}>, "many">;
|
2873
|
-
}, "strip", z.ZodTypeAny, {
|
2874
|
-
id: string;
|
2875
|
-
createdAt: Date;
|
2876
|
-
updatedAt: Date;
|
2877
|
-
deletedAt: Date | null;
|
2878
|
-
attribute: {
|
2879
|
-
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
2880
|
-
id: string;
|
2881
|
-
position: number;
|
2882
|
-
createdAt: Date;
|
2883
|
-
updatedAt: Date;
|
2884
|
-
deletedAt: Date | null;
|
2885
|
-
isDefault: boolean;
|
2886
|
-
systemName: string;
|
2887
|
-
displayName: string;
|
2888
|
-
isArchived: boolean;
|
2889
|
-
isRequired: boolean;
|
2890
|
-
isUnique: boolean;
|
2891
|
-
};
|
2892
|
-
textValue: string | null;
|
2893
|
-
booleanValue: boolean | null;
|
2894
|
-
numberValue: number | null;
|
2895
|
-
dateValue: Date | null;
|
2896
|
-
uploads: {
|
2897
|
-
id: string;
|
2898
|
-
createdAt: Date;
|
2899
|
-
updatedAt: Date;
|
2900
|
-
deletedAt: Date | null;
|
2901
|
-
customFieldId: string;
|
2902
|
-
upload: {
|
2903
|
-
id: string;
|
2904
|
-
createdAt: Date;
|
2905
|
-
updatedAt: Date;
|
2906
|
-
deletedAt: Date | null;
|
2907
|
-
fileName: string;
|
2908
|
-
fileKey: string;
|
2909
|
-
bucketName: string;
|
2910
|
-
fileSize: number;
|
2911
|
-
};
|
2912
|
-
}[];
|
2913
|
-
}, {
|
2914
|
-
id: string;
|
2915
|
-
createdAt: Date;
|
2916
|
-
updatedAt: Date;
|
2917
|
-
deletedAt: Date | null;
|
2918
|
-
attribute: {
|
2919
|
-
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
2920
|
-
id: string;
|
2921
|
-
position: number;
|
2922
|
-
createdAt: Date;
|
2923
|
-
updatedAt: Date;
|
2924
|
-
deletedAt: Date | null;
|
2925
|
-
isDefault: boolean;
|
2926
|
-
systemName: string;
|
2927
|
-
displayName: string;
|
2928
|
-
isArchived: boolean;
|
2929
|
-
isRequired: boolean;
|
2930
|
-
isUnique: boolean;
|
2931
|
-
};
|
2932
|
-
textValue: string | null;
|
2933
|
-
booleanValue: boolean | null;
|
2934
|
-
numberValue: number | null;
|
2935
|
-
dateValue: Date | null;
|
2936
|
-
uploads: {
|
2937
|
-
id: string;
|
2938
|
-
createdAt: Date;
|
2939
|
-
updatedAt: Date;
|
2940
|
-
deletedAt: Date | null;
|
2941
|
-
customFieldId: string;
|
2942
|
-
upload: {
|
2943
|
-
id: string;
|
2944
|
-
createdAt: Date;
|
2945
|
-
updatedAt: Date;
|
2946
|
-
deletedAt: Date | null;
|
2947
|
-
fileName: string;
|
2948
|
-
fileKey: string;
|
2949
|
-
bucketName: string;
|
2950
|
-
fileSize: number;
|
2951
|
-
};
|
2952
|
-
}[];
|
2953
|
-
}>, "many">;
|
2954
|
-
contactEmails: z.ZodArray<z.ZodObject<{
|
2955
|
-
id: z.ZodString;
|
2956
|
-
createdAt: z.ZodDate;
|
2957
|
-
updatedAt: z.ZodDate;
|
2958
|
-
deletedAt: z.ZodNullable<z.ZodDate>;
|
2959
|
-
email: z.ZodString;
|
2960
|
-
isPrimary: z.ZodBoolean;
|
2961
|
-
}, "strip", z.ZodTypeAny, {
|
2962
|
-
id: string;
|
2963
|
-
isPrimary: boolean;
|
2964
|
-
email: string;
|
2965
|
-
createdAt: Date;
|
2966
|
-
updatedAt: Date;
|
2967
|
-
deletedAt: Date | null;
|
2968
|
-
}, {
|
2969
|
-
id: string;
|
2970
|
-
isPrimary: boolean;
|
2971
|
-
email: string;
|
2972
|
-
createdAt: Date;
|
2973
|
-
updatedAt: Date;
|
2974
|
-
deletedAt: Date | null;
|
2975
|
-
}>, "many">;
|
2976
|
-
contactPhones: z.ZodArray<z.ZodObject<{
|
2977
|
-
id: z.ZodString;
|
2978
|
-
createdAt: z.ZodDate;
|
2979
|
-
updatedAt: z.ZodDate;
|
2980
|
-
deletedAt: z.ZodNullable<z.ZodDate>;
|
2981
|
-
phone: z.ZodString;
|
2982
|
-
isPrimary: z.ZodBoolean;
|
2983
|
-
}, "strip", z.ZodTypeAny, {
|
2984
|
-
id: string;
|
2985
|
-
isPrimary: boolean;
|
2986
|
-
createdAt: Date;
|
2987
|
-
updatedAt: Date;
|
2988
|
-
deletedAt: Date | null;
|
2989
|
-
phone: string;
|
2990
|
-
}, {
|
2991
|
-
id: string;
|
2992
|
-
isPrimary: boolean;
|
2993
|
-
createdAt: Date;
|
2994
|
-
updatedAt: Date;
|
2995
|
-
deletedAt: Date | null;
|
2996
|
-
phone: string;
|
2997
|
-
}>, "many">;
|
2998
|
-
activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
2999
|
-
id: z.ZodString;
|
3000
|
-
createdAt: z.ZodDate;
|
3001
|
-
updatedAt: z.ZodDate;
|
3002
|
-
deletedAt: z.ZodNullable<z.ZodDate>;
|
3003
|
-
entityId: z.ZodString;
|
3004
|
-
description: z.ZodString;
|
3005
|
-
entityType: z.ZodObject<{
|
3006
|
-
id: z.ZodString;
|
3007
|
-
createdAt: z.ZodDate;
|
3008
|
-
updatedAt: z.ZodDate;
|
3009
|
-
deletedAt: z.ZodNullable<z.ZodDate>;
|
3010
|
-
entity: z.ZodString;
|
3011
|
-
description: z.ZodNullable<z.ZodString>;
|
3012
|
-
}, "strip", z.ZodTypeAny, {
|
3013
|
-
id: string;
|
3014
|
-
description: string | null;
|
3015
|
-
createdAt: Date;
|
3016
|
-
updatedAt: Date;
|
3017
|
-
deletedAt: Date | null;
|
3018
|
-
entity: string;
|
3019
|
-
}, {
|
3020
|
-
id: string;
|
3021
|
-
description: string | null;
|
3022
|
-
createdAt: Date;
|
3023
|
-
updatedAt: Date;
|
3024
|
-
deletedAt: Date | null;
|
3025
|
-
entity: string;
|
3026
|
-
}>;
|
3027
|
-
}, "strip", z.ZodTypeAny, {
|
3028
|
-
id: string;
|
3029
|
-
description: string;
|
3030
|
-
createdAt: Date;
|
3031
|
-
updatedAt: Date;
|
3032
|
-
deletedAt: Date | null;
|
3033
|
-
entityId: string;
|
3034
|
-
entityType: {
|
3035
|
-
id: string;
|
3036
|
-
description: string | null;
|
3037
|
-
createdAt: Date;
|
3038
|
-
updatedAt: Date;
|
3039
|
-
deletedAt: Date | null;
|
3040
|
-
entity: string;
|
3041
|
-
};
|
3042
|
-
}, {
|
3043
|
-
id: string;
|
3044
|
-
description: string;
|
3045
|
-
createdAt: Date;
|
3046
|
-
updatedAt: Date;
|
3047
|
-
deletedAt: Date | null;
|
3048
|
-
entityId: string;
|
3049
|
-
entityType: {
|
3050
|
-
id: string;
|
3051
|
-
description: string | null;
|
3052
|
-
createdAt: Date;
|
3053
|
-
updatedAt: Date;
|
3054
|
-
deletedAt: Date | null;
|
3055
|
-
entity: string;
|
3056
|
-
};
|
3057
|
-
}>, "many">>;
|
3058
|
-
}, "strip", z.ZodTypeAny, {
|
3059
|
-
id: string;
|
3060
|
-
channel: string | null;
|
3061
|
-
address: string | null;
|
3062
|
-
name: string;
|
3063
|
-
createdAt: Date;
|
3064
|
-
updatedAt: Date;
|
3065
|
-
deletedAt: Date | null;
|
3066
|
-
customFields: {
|
3067
|
-
id: string;
|
3068
|
-
createdAt: Date;
|
3069
|
-
updatedAt: Date;
|
3070
|
-
deletedAt: Date | null;
|
3071
|
-
attribute: {
|
3072
|
-
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
3073
|
-
id: string;
|
3074
|
-
position: number;
|
3075
|
-
createdAt: Date;
|
3076
|
-
updatedAt: Date;
|
3077
|
-
deletedAt: Date | null;
|
3078
|
-
isDefault: boolean;
|
3079
|
-
systemName: string;
|
3080
|
-
displayName: string;
|
3081
|
-
isArchived: boolean;
|
3082
|
-
isRequired: boolean;
|
3083
|
-
isUnique: boolean;
|
3084
|
-
};
|
3085
|
-
textValue: string | null;
|
3086
|
-
booleanValue: boolean | null;
|
3087
|
-
numberValue: number | null;
|
3088
|
-
dateValue: Date | null;
|
3089
|
-
uploads: {
|
3090
|
-
id: string;
|
3091
|
-
createdAt: Date;
|
3092
|
-
updatedAt: Date;
|
3093
|
-
deletedAt: Date | null;
|
3094
|
-
customFieldId: string;
|
3095
|
-
upload: {
|
3096
|
-
id: string;
|
3097
|
-
createdAt: Date;
|
3098
|
-
updatedAt: Date;
|
3099
|
-
deletedAt: Date | null;
|
3100
|
-
fileName: string;
|
3101
|
-
fileKey: string;
|
3102
|
-
bucketName: string;
|
3103
|
-
fileSize: number;
|
3104
|
-
};
|
3105
|
-
}[];
|
3106
|
-
}[];
|
3107
|
-
notes: string | null;
|
3108
|
-
contactProfile: string | null;
|
3109
|
-
socialProfileUrl: string | null;
|
3110
|
-
tags: {
|
3111
|
-
id: string;
|
3112
|
-
name: string;
|
3113
|
-
createdAt: Date;
|
3114
|
-
updatedAt: Date;
|
3115
|
-
deletedAt: Date | null;
|
3116
|
-
}[];
|
3117
|
-
company: {
|
3118
|
-
id: string;
|
3119
|
-
createdAt: Date;
|
3120
|
-
updatedAt: Date;
|
3121
|
-
deletedAt: Date | null;
|
3122
|
-
address?: string | null | undefined;
|
3123
|
-
name?: string | undefined;
|
3124
|
-
phone?: string | null | undefined;
|
3125
|
-
industry?: string | null | undefined;
|
3126
|
-
} | null;
|
3127
|
-
contactEmails: {
|
3128
|
-
id: string;
|
3129
|
-
isPrimary: boolean;
|
3130
|
-
email: string;
|
3131
|
-
createdAt: Date;
|
3132
|
-
updatedAt: Date;
|
3133
|
-
deletedAt: Date | null;
|
3134
|
-
}[];
|
3135
|
-
contactPhones: {
|
3136
|
-
id: string;
|
3137
|
-
isPrimary: boolean;
|
3138
|
-
createdAt: Date;
|
3139
|
-
updatedAt: Date;
|
3140
|
-
deletedAt: Date | null;
|
3141
|
-
phone: string;
|
3142
|
-
}[];
|
3143
|
-
activityLogs?: {
|
3144
|
-
id: string;
|
3145
|
-
description: string;
|
3146
|
-
createdAt: Date;
|
3147
|
-
updatedAt: Date;
|
3148
|
-
deletedAt: Date | null;
|
3149
|
-
entityId: string;
|
3150
|
-
entityType: {
|
3151
|
-
id: string;
|
3152
|
-
description: string | null;
|
3153
|
-
createdAt: Date;
|
3154
|
-
updatedAt: Date;
|
3155
|
-
deletedAt: Date | null;
|
3156
|
-
entity: string;
|
3157
|
-
};
|
3158
|
-
}[] | undefined;
|
3159
|
-
}, {
|
3160
|
-
id: string;
|
3161
|
-
channel: string | null;
|
3162
|
-
address: string | null;
|
3163
|
-
name: string;
|
3164
|
-
createdAt: Date;
|
3165
|
-
updatedAt: Date;
|
3166
|
-
deletedAt: Date | null;
|
3167
|
-
customFields: {
|
3168
|
-
id: string;
|
3169
|
-
createdAt: Date;
|
3170
|
-
updatedAt: Date;
|
3171
|
-
deletedAt: Date | null;
|
3172
|
-
attribute: {
|
3173
|
-
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
3174
|
-
id: string;
|
3175
|
-
position: number;
|
3176
|
-
createdAt: Date;
|
3177
|
-
updatedAt: Date;
|
3178
|
-
deletedAt: Date | null;
|
3179
|
-
isDefault: boolean;
|
3180
|
-
systemName: string;
|
3181
|
-
displayName: string;
|
3182
|
-
isArchived: boolean;
|
3183
|
-
isRequired: boolean;
|
3184
|
-
isUnique: boolean;
|
3185
|
-
};
|
3186
|
-
textValue: string | null;
|
3187
|
-
booleanValue: boolean | null;
|
3188
|
-
numberValue: number | null;
|
3189
|
-
dateValue: Date | null;
|
3190
|
-
uploads: {
|
3191
|
-
id: string;
|
3192
|
-
createdAt: Date;
|
3193
|
-
updatedAt: Date;
|
3194
|
-
deletedAt: Date | null;
|
3195
|
-
customFieldId: string;
|
3196
|
-
upload: {
|
3197
|
-
id: string;
|
3198
|
-
createdAt: Date;
|
3199
|
-
updatedAt: Date;
|
3200
|
-
deletedAt: Date | null;
|
3201
|
-
fileName: string;
|
3202
|
-
fileKey: string;
|
3203
|
-
bucketName: string;
|
3204
|
-
fileSize: number;
|
3205
|
-
};
|
3206
|
-
}[];
|
3207
|
-
}[];
|
3208
|
-
notes: string | null;
|
3209
|
-
contactProfile: string | null;
|
3210
|
-
socialProfileUrl: string | null;
|
3211
|
-
tags: {
|
3212
|
-
id: string;
|
3213
|
-
name: string;
|
3214
|
-
createdAt: Date;
|
3215
|
-
updatedAt: Date;
|
3216
|
-
deletedAt: Date | null;
|
3217
|
-
}[];
|
3218
|
-
company: {
|
3219
|
-
id: string;
|
3220
|
-
createdAt: Date;
|
3221
|
-
updatedAt: Date;
|
3222
|
-
deletedAt: Date | null;
|
3223
|
-
address?: string | null | undefined;
|
3224
|
-
name?: string | undefined;
|
3225
|
-
phone?: string | null | undefined;
|
3226
|
-
industry?: string | null | undefined;
|
3227
|
-
} | null;
|
3228
|
-
contactEmails: {
|
3229
|
-
id: string;
|
3230
|
-
isPrimary: boolean;
|
3231
|
-
email: string;
|
3232
|
-
createdAt: Date;
|
3233
|
-
updatedAt: Date;
|
3234
|
-
deletedAt: Date | null;
|
3235
|
-
}[];
|
3236
|
-
contactPhones: {
|
3237
|
-
id: string;
|
3238
|
-
isPrimary: boolean;
|
3239
|
-
createdAt: Date;
|
3240
|
-
updatedAt: Date;
|
3241
|
-
deletedAt: Date | null;
|
3242
|
-
phone: string;
|
3243
|
-
}[];
|
3244
|
-
activityLogs?: {
|
3245
|
-
id: string;
|
3246
|
-
description: string;
|
3247
|
-
createdAt: Date;
|
3248
|
-
updatedAt: Date;
|
3249
|
-
deletedAt: Date | null;
|
3250
|
-
entityId: string;
|
3251
|
-
entityType: {
|
3252
|
-
id: string;
|
3253
|
-
description: string | null;
|
3254
|
-
createdAt: Date;
|
3255
|
-
updatedAt: Date;
|
3256
|
-
deletedAt: Date | null;
|
3257
|
-
entity: string;
|
3258
|
-
};
|
3259
|
-
}[] | undefined;
|
3260
|
-
}>, "many">;
|
3261
|
-
}, "strip", z.ZodTypeAny, {
|
3262
|
-
data: {
|
3263
|
-
id: string;
|
3264
|
-
channel: string | null;
|
3265
|
-
address: string | null;
|
3266
|
-
name: string;
|
3267
|
-
createdAt: Date;
|
3268
|
-
updatedAt: Date;
|
3269
|
-
deletedAt: Date | null;
|
3270
|
-
customFields: {
|
3271
|
-
id: string;
|
3272
|
-
createdAt: Date;
|
3273
|
-
updatedAt: Date;
|
3274
|
-
deletedAt: Date | null;
|
3275
|
-
attribute: {
|
3276
|
-
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
3277
|
-
id: string;
|
3278
|
-
position: number;
|
3279
|
-
createdAt: Date;
|
3280
|
-
updatedAt: Date;
|
3281
|
-
deletedAt: Date | null;
|
3282
|
-
isDefault: boolean;
|
3283
|
-
systemName: string;
|
3284
|
-
displayName: string;
|
3285
|
-
isArchived: boolean;
|
3286
|
-
isRequired: boolean;
|
3287
|
-
isUnique: boolean;
|
3288
|
-
};
|
3289
|
-
textValue: string | null;
|
3290
|
-
booleanValue: boolean | null;
|
3291
|
-
numberValue: number | null;
|
3292
|
-
dateValue: Date | null;
|
3293
|
-
uploads: {
|
3294
|
-
id: string;
|
3295
|
-
createdAt: Date;
|
3296
|
-
updatedAt: Date;
|
3297
|
-
deletedAt: Date | null;
|
3298
|
-
customFieldId: string;
|
3299
|
-
upload: {
|
3300
|
-
id: string;
|
3301
|
-
createdAt: Date;
|
3302
|
-
updatedAt: Date;
|
3303
|
-
deletedAt: Date | null;
|
3304
|
-
fileName: string;
|
3305
|
-
fileKey: string;
|
3306
|
-
bucketName: string;
|
3307
|
-
fileSize: number;
|
3308
|
-
};
|
3309
|
-
}[];
|
3310
|
-
}[];
|
3311
|
-
notes: string | null;
|
3312
|
-
contactProfile: string | null;
|
3313
|
-
socialProfileUrl: string | null;
|
3314
|
-
tags: {
|
3315
|
-
id: string;
|
3316
|
-
name: string;
|
3317
|
-
createdAt: Date;
|
3318
|
-
updatedAt: Date;
|
3319
|
-
deletedAt: Date | null;
|
3320
|
-
}[];
|
3321
|
-
company: {
|
3322
|
-
id: string;
|
3323
|
-
createdAt: Date;
|
3324
|
-
updatedAt: Date;
|
3325
|
-
deletedAt: Date | null;
|
3326
|
-
address?: string | null | undefined;
|
3327
|
-
name?: string | undefined;
|
3328
|
-
phone?: string | null | undefined;
|
3329
|
-
industry?: string | null | undefined;
|
3330
|
-
} | null;
|
3331
|
-
contactEmails: {
|
3332
|
-
id: string;
|
3333
|
-
isPrimary: boolean;
|
3334
|
-
email: string;
|
3335
|
-
createdAt: Date;
|
3336
|
-
updatedAt: Date;
|
3337
|
-
deletedAt: Date | null;
|
3338
|
-
}[];
|
3339
|
-
contactPhones: {
|
3340
|
-
id: string;
|
3341
|
-
isPrimary: boolean;
|
3342
|
-
createdAt: Date;
|
3343
|
-
updatedAt: Date;
|
3344
|
-
deletedAt: Date | null;
|
3345
|
-
phone: string;
|
3346
|
-
}[];
|
3347
|
-
activityLogs?: {
|
3348
|
-
id: string;
|
3349
|
-
description: string;
|
3350
|
-
createdAt: Date;
|
3351
|
-
updatedAt: Date;
|
3352
|
-
deletedAt: Date | null;
|
3353
|
-
entityId: string;
|
3354
|
-
entityType: {
|
3355
|
-
id: string;
|
3356
|
-
description: string | null;
|
3357
|
-
createdAt: Date;
|
3358
|
-
updatedAt: Date;
|
3359
|
-
deletedAt: Date | null;
|
3360
|
-
entity: string;
|
3361
|
-
};
|
3362
|
-
}[] | undefined;
|
3363
|
-
}[];
|
3364
|
-
total: number;
|
3365
|
-
page: number;
|
3366
|
-
pageSize: number;
|
3367
|
-
lastPage: number;
|
3368
|
-
requestId: string;
|
3369
|
-
}, {
|
3370
|
-
data: {
|
3371
|
-
id: string;
|
3372
|
-
channel: string | null;
|
3373
|
-
address: string | null;
|
3374
|
-
name: string;
|
3375
|
-
createdAt: Date;
|
3376
|
-
updatedAt: Date;
|
3377
|
-
deletedAt: Date | null;
|
3378
|
-
customFields: {
|
3379
|
-
id: string;
|
3380
|
-
createdAt: Date;
|
3381
|
-
updatedAt: Date;
|
3382
|
-
deletedAt: Date | null;
|
3383
|
-
attribute: {
|
3384
|
-
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
3385
|
-
id: string;
|
3386
|
-
position: number;
|
3387
|
-
createdAt: Date;
|
3388
|
-
updatedAt: Date;
|
3389
|
-
deletedAt: Date | null;
|
3390
|
-
isDefault: boolean;
|
3391
|
-
systemName: string;
|
3392
|
-
displayName: string;
|
3393
|
-
isArchived: boolean;
|
3394
|
-
isRequired: boolean;
|
3395
|
-
isUnique: boolean;
|
3396
|
-
};
|
3397
|
-
textValue: string | null;
|
3398
|
-
booleanValue: boolean | null;
|
3399
|
-
numberValue: number | null;
|
3400
|
-
dateValue: Date | null;
|
3401
|
-
uploads: {
|
3402
|
-
id: string;
|
3403
|
-
createdAt: Date;
|
3404
|
-
updatedAt: Date;
|
3405
|
-
deletedAt: Date | null;
|
3406
|
-
customFieldId: string;
|
3407
|
-
upload: {
|
3408
|
-
id: string;
|
3409
|
-
createdAt: Date;
|
3410
|
-
updatedAt: Date;
|
3411
|
-
deletedAt: Date | null;
|
3412
|
-
fileName: string;
|
3413
|
-
fileKey: string;
|
3414
|
-
bucketName: string;
|
3415
|
-
fileSize: number;
|
3416
|
-
};
|
3417
|
-
}[];
|
3418
|
-
}[];
|
3419
|
-
notes: string | null;
|
3420
|
-
contactProfile: string | null;
|
3421
|
-
socialProfileUrl: string | null;
|
3422
|
-
tags: {
|
3423
|
-
id: string;
|
3424
|
-
name: string;
|
3425
|
-
createdAt: Date;
|
3426
|
-
updatedAt: Date;
|
3427
|
-
deletedAt: Date | null;
|
3428
|
-
}[];
|
3429
|
-
company: {
|
3430
|
-
id: string;
|
3431
|
-
createdAt: Date;
|
3432
|
-
updatedAt: Date;
|
3433
|
-
deletedAt: Date | null;
|
3434
|
-
address?: string | null | undefined;
|
3435
|
-
name?: string | undefined;
|
3436
|
-
phone?: string | null | undefined;
|
3437
|
-
industry?: string | null | undefined;
|
3438
|
-
} | null;
|
3439
|
-
contactEmails: {
|
3440
|
-
id: string;
|
3441
|
-
isPrimary: boolean;
|
3442
|
-
email: string;
|
3443
|
-
createdAt: Date;
|
3444
|
-
updatedAt: Date;
|
3445
|
-
deletedAt: Date | null;
|
3446
|
-
}[];
|
3447
|
-
contactPhones: {
|
3448
|
-
id: string;
|
3449
|
-
isPrimary: boolean;
|
3450
|
-
createdAt: Date;
|
3451
|
-
updatedAt: Date;
|
3452
|
-
deletedAt: Date | null;
|
3453
|
-
phone: string;
|
3454
|
-
}[];
|
3455
|
-
activityLogs?: {
|
3456
|
-
id: string;
|
3457
|
-
description: string;
|
3458
|
-
createdAt: Date;
|
3459
|
-
updatedAt: Date;
|
3460
|
-
deletedAt: Date | null;
|
3461
|
-
entityId: string;
|
3462
|
-
entityType: {
|
3463
|
-
id: string;
|
3464
|
-
description: string | null;
|
3465
|
-
createdAt: Date;
|
3466
|
-
updatedAt: Date;
|
3467
|
-
deletedAt: Date | null;
|
3468
|
-
entity: string;
|
3469
|
-
};
|
3470
|
-
}[] | undefined;
|
3471
|
-
}[];
|
3472
|
-
total: number;
|
3473
|
-
page: number;
|
3474
|
-
pageSize: number;
|
3475
|
-
lastPage: number;
|
3476
|
-
requestId: string;
|
3477
|
-
}>;
|
3478
|
-
400: z.ZodObject<{
|
3479
|
-
message: z.ZodString;
|
3480
|
-
}, "strip", z.ZodTypeAny, {
|
3481
|
-
message: string;
|
3482
|
-
}, {
|
3483
|
-
message: string;
|
3484
|
-
}>;
|
3485
|
-
409: z.ZodObject<{
|
3486
|
-
message: z.ZodString;
|
3487
|
-
}, "strip", z.ZodTypeAny, {
|
3488
|
-
message: string;
|
3489
|
-
}, {
|
3490
|
-
message: string;
|
3491
|
-
}>;
|
3492
|
-
500: z.ZodObject<{
|
3493
|
-
message: z.ZodString;
|
3494
|
-
}, "strip", z.ZodTypeAny, {
|
3495
|
-
message: string;
|
3496
|
-
}, {
|
3497
|
-
message: string;
|
3498
|
-
}>;
|
3499
|
-
401: z.ZodObject<{
|
3500
|
-
message: z.ZodString;
|
3501
|
-
error: z.ZodAny;
|
3502
|
-
}, "strip", z.ZodTypeAny, {
|
3503
|
-
message: string;
|
3504
|
-
error?: any;
|
3505
|
-
}, {
|
3506
|
-
message: string;
|
3507
|
-
error?: any;
|
3508
|
-
}>;
|
3509
|
-
404: z.ZodObject<{
|
3510
|
-
message: z.ZodString;
|
3511
|
-
error: z.ZodAny;
|
3512
|
-
}, "strip", z.ZodTypeAny, {
|
3513
|
-
message: string;
|
3514
|
-
error?: any;
|
3515
|
-
}, {
|
3516
|
-
message: string;
|
3517
|
-
error?: any;
|
3518
|
-
}>;
|
3519
|
-
422: z.ZodObject<{
|
3520
|
-
message: z.ZodString;
|
3521
|
-
error: z.ZodAny;
|
3522
|
-
}, "strip", z.ZodTypeAny, {
|
3523
|
-
message: string;
|
3524
|
-
error?: any;
|
3525
|
-
}, {
|
3526
|
-
message: string;
|
3527
|
-
error?: any;
|
3528
|
-
}>;
|
3529
|
-
};
|
3530
|
-
path: "contact/filter";
|
2498
|
+
path: "contact/filter/list";
|
3531
2499
|
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
3532
2500
|
'x-tenant': z.ZodString;
|
3533
2501
|
authorization: z.ZodString;
|
@@ -8183,10 +7151,191 @@ export declare const contactContract: {
|
|
8183
7151
|
existed: z.ZodBoolean;
|
8184
7152
|
}, "strip", z.ZodTypeAny, {
|
8185
7153
|
requestId: string;
|
8186
|
-
existed: boolean;
|
7154
|
+
existed: boolean;
|
7155
|
+
}, {
|
7156
|
+
requestId: string;
|
7157
|
+
existed: boolean;
|
7158
|
+
}>;
|
7159
|
+
400: z.ZodObject<{
|
7160
|
+
message: z.ZodString;
|
7161
|
+
}, "strip", z.ZodTypeAny, {
|
7162
|
+
message: string;
|
7163
|
+
}, {
|
7164
|
+
message: string;
|
7165
|
+
}>;
|
7166
|
+
409: z.ZodObject<{
|
7167
|
+
message: z.ZodString;
|
7168
|
+
}, "strip", z.ZodTypeAny, {
|
7169
|
+
message: string;
|
7170
|
+
}, {
|
7171
|
+
message: string;
|
7172
|
+
}>;
|
7173
|
+
500: z.ZodObject<{
|
7174
|
+
message: z.ZodString;
|
7175
|
+
}, "strip", z.ZodTypeAny, {
|
7176
|
+
message: string;
|
7177
|
+
}, {
|
7178
|
+
message: string;
|
7179
|
+
}>;
|
7180
|
+
401: z.ZodObject<{
|
7181
|
+
message: z.ZodString;
|
7182
|
+
error: z.ZodAny;
|
7183
|
+
}, "strip", z.ZodTypeAny, {
|
7184
|
+
message: string;
|
7185
|
+
error?: any;
|
7186
|
+
}, {
|
7187
|
+
message: string;
|
7188
|
+
error?: any;
|
7189
|
+
}>;
|
7190
|
+
404: z.ZodObject<{
|
7191
|
+
message: z.ZodString;
|
7192
|
+
error: z.ZodAny;
|
7193
|
+
}, "strip", z.ZodTypeAny, {
|
7194
|
+
message: string;
|
7195
|
+
error?: any;
|
7196
|
+
}, {
|
7197
|
+
message: string;
|
7198
|
+
error?: any;
|
7199
|
+
}>;
|
7200
|
+
422: z.ZodObject<{
|
7201
|
+
message: z.ZodString;
|
7202
|
+
error: z.ZodAny;
|
7203
|
+
}, "strip", z.ZodTypeAny, {
|
7204
|
+
message: string;
|
7205
|
+
error?: any;
|
7206
|
+
}, {
|
7207
|
+
message: string;
|
7208
|
+
error?: any;
|
7209
|
+
}>;
|
7210
|
+
};
|
7211
|
+
path: "contact/check/email";
|
7212
|
+
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
7213
|
+
'x-tenant': z.ZodString;
|
7214
|
+
authorization: z.ZodString;
|
7215
|
+
'x-code': z.ZodOptional<z.ZodString>;
|
7216
|
+
'x-client-timezone': z.ZodDefault<z.ZodString>;
|
7217
|
+
}, "strip", z.ZodTypeAny, {
|
7218
|
+
'x-tenant': string;
|
7219
|
+
authorization: string;
|
7220
|
+
'x-client-timezone': string;
|
7221
|
+
'x-code'?: string | undefined;
|
7222
|
+
}, {
|
7223
|
+
'x-tenant': string;
|
7224
|
+
authorization: string;
|
7225
|
+
'x-code'?: string | undefined;
|
7226
|
+
'x-client-timezone'?: string | undefined;
|
7227
|
+
}>>>;
|
7228
|
+
};
|
7229
|
+
addAttachments: {
|
7230
|
+
body: z.ZodObject<{
|
7231
|
+
attributeId: z.ZodString;
|
7232
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
7233
|
+
bucketName: z.ZodString;
|
7234
|
+
fileKey: z.ZodString;
|
7235
|
+
fileName: z.ZodString;
|
7236
|
+
fileSize: z.ZodNumber;
|
7237
|
+
}, "strip", z.ZodTypeAny, {
|
7238
|
+
fileName: string;
|
7239
|
+
fileKey: string;
|
7240
|
+
bucketName: string;
|
7241
|
+
fileSize: number;
|
7242
|
+
}, {
|
7243
|
+
fileName: string;
|
7244
|
+
fileKey: string;
|
7245
|
+
bucketName: string;
|
7246
|
+
fileSize: number;
|
7247
|
+
}>, "many">>;
|
7248
|
+
}, "strip", z.ZodTypeAny, {
|
7249
|
+
attributeId: string;
|
7250
|
+
attachments?: {
|
7251
|
+
fileName: string;
|
7252
|
+
fileKey: string;
|
7253
|
+
bucketName: string;
|
7254
|
+
fileSize: number;
|
7255
|
+
}[] | undefined;
|
7256
|
+
}, {
|
7257
|
+
attributeId: string;
|
7258
|
+
attachments?: {
|
7259
|
+
fileName: string;
|
7260
|
+
fileKey: string;
|
7261
|
+
bucketName: string;
|
7262
|
+
fileSize: number;
|
7263
|
+
}[] | undefined;
|
7264
|
+
}>;
|
7265
|
+
summary: " attachment information from pre-uploaded files in AWS S3 to contacts.";
|
7266
|
+
method: "POST";
|
7267
|
+
pathParams: z.ZodObject<{
|
7268
|
+
id: z.ZodString;
|
7269
|
+
}, "strip", z.ZodTypeAny, {
|
7270
|
+
id: string;
|
7271
|
+
}, {
|
7272
|
+
id: string;
|
7273
|
+
}>;
|
7274
|
+
responses: {
|
7275
|
+
201: z.ZodObject<{
|
7276
|
+
requestId: z.ZodString;
|
7277
|
+
message: z.ZodObject<{
|
7278
|
+
id: z.ZodString;
|
7279
|
+
createdAt: z.ZodDate;
|
7280
|
+
updatedAt: z.ZodDate;
|
7281
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
7282
|
+
textValue: z.ZodNullable<z.ZodString>;
|
7283
|
+
booleanValue: z.ZodNullable<z.ZodBoolean>;
|
7284
|
+
numberValue: z.ZodNullable<z.ZodNumber>;
|
7285
|
+
dateValue: z.ZodNullable<z.ZodDate>;
|
7286
|
+
entityId: z.ZodString;
|
7287
|
+
attributeId: z.ZodString;
|
7288
|
+
}, "strip", z.ZodTypeAny, {
|
7289
|
+
id: string;
|
7290
|
+
createdAt: Date;
|
7291
|
+
updatedAt: Date;
|
7292
|
+
deletedAt: Date | null;
|
7293
|
+
attributeId: string;
|
7294
|
+
textValue: string | null;
|
7295
|
+
booleanValue: boolean | null;
|
7296
|
+
numberValue: number | null;
|
7297
|
+
dateValue: Date | null;
|
7298
|
+
entityId: string;
|
7299
|
+
}, {
|
7300
|
+
id: string;
|
7301
|
+
createdAt: Date;
|
7302
|
+
updatedAt: Date;
|
7303
|
+
deletedAt: Date | null;
|
7304
|
+
attributeId: string;
|
7305
|
+
textValue: string | null;
|
7306
|
+
booleanValue: boolean | null;
|
7307
|
+
numberValue: number | null;
|
7308
|
+
dateValue: Date | null;
|
7309
|
+
entityId: string;
|
7310
|
+
}>;
|
7311
|
+
}, "strip", z.ZodTypeAny, {
|
7312
|
+
message: {
|
7313
|
+
id: string;
|
7314
|
+
createdAt: Date;
|
7315
|
+
updatedAt: Date;
|
7316
|
+
deletedAt: Date | null;
|
7317
|
+
attributeId: string;
|
7318
|
+
textValue: string | null;
|
7319
|
+
booleanValue: boolean | null;
|
7320
|
+
numberValue: number | null;
|
7321
|
+
dateValue: Date | null;
|
7322
|
+
entityId: string;
|
7323
|
+
};
|
7324
|
+
requestId: string;
|
8187
7325
|
}, {
|
7326
|
+
message: {
|
7327
|
+
id: string;
|
7328
|
+
createdAt: Date;
|
7329
|
+
updatedAt: Date;
|
7330
|
+
deletedAt: Date | null;
|
7331
|
+
attributeId: string;
|
7332
|
+
textValue: string | null;
|
7333
|
+
booleanValue: boolean | null;
|
7334
|
+
numberValue: number | null;
|
7335
|
+
dateValue: Date | null;
|
7336
|
+
entityId: string;
|
7337
|
+
};
|
8188
7338
|
requestId: string;
|
8189
|
-
existed: boolean;
|
8190
7339
|
}>;
|
8191
7340
|
400: z.ZodObject<{
|
8192
7341
|
message: z.ZodString;
|
@@ -8240,7 +7389,7 @@ export declare const contactContract: {
|
|
8240
7389
|
error?: any;
|
8241
7390
|
}>;
|
8242
7391
|
};
|
8243
|
-
path: "contact/
|
7392
|
+
path: "contact/:id/attachments";
|
8244
7393
|
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
8245
7394
|
'x-tenant': z.ZodString;
|
8246
7395
|
authorization: z.ZodString;
|
@@ -8258,44 +7407,9 @@ export declare const contactContract: {
|
|
8258
7407
|
'x-client-timezone'?: string | undefined;
|
8259
7408
|
}>>>;
|
8260
7409
|
};
|
8261
|
-
|
8262
|
-
|
8263
|
-
|
8264
|
-
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
8265
|
-
bucketName: z.ZodString;
|
8266
|
-
fileKey: z.ZodString;
|
8267
|
-
fileName: z.ZodString;
|
8268
|
-
fileSize: z.ZodNumber;
|
8269
|
-
}, "strip", z.ZodTypeAny, {
|
8270
|
-
fileName: string;
|
8271
|
-
fileKey: string;
|
8272
|
-
bucketName: string;
|
8273
|
-
fileSize: number;
|
8274
|
-
}, {
|
8275
|
-
fileName: string;
|
8276
|
-
fileKey: string;
|
8277
|
-
bucketName: string;
|
8278
|
-
fileSize: number;
|
8279
|
-
}>, "many">>;
|
8280
|
-
}, "strip", z.ZodTypeAny, {
|
8281
|
-
attributeId: string;
|
8282
|
-
attachments?: {
|
8283
|
-
fileName: string;
|
8284
|
-
fileKey: string;
|
8285
|
-
bucketName: string;
|
8286
|
-
fileSize: number;
|
8287
|
-
}[] | undefined;
|
8288
|
-
}, {
|
8289
|
-
attributeId: string;
|
8290
|
-
attachments?: {
|
8291
|
-
fileName: string;
|
8292
|
-
fileKey: string;
|
8293
|
-
bucketName: string;
|
8294
|
-
fileSize: number;
|
8295
|
-
}[] | undefined;
|
8296
|
-
}>;
|
8297
|
-
summary: " attachment information from pre-uploaded files in AWS S3 to contacts.";
|
8298
|
-
method: "POST";
|
7410
|
+
getById: {
|
7411
|
+
summary: "Get a contact by id";
|
7412
|
+
method: "GET";
|
8299
7413
|
pathParams: z.ZodObject<{
|
8300
7414
|
id: z.ZodString;
|
8301
7415
|
}, "strip", z.ZodTypeAny, {
|
@@ -8304,68 +7418,954 @@ export declare const contactContract: {
|
|
8304
7418
|
id: string;
|
8305
7419
|
}>;
|
8306
7420
|
responses: {
|
8307
|
-
|
7421
|
+
200: z.ZodObject<{
|
8308
7422
|
requestId: z.ZodString;
|
8309
|
-
|
7423
|
+
data: z.ZodObject<{
|
8310
7424
|
id: z.ZodString;
|
8311
7425
|
createdAt: z.ZodDate;
|
8312
7426
|
updatedAt: z.ZodDate;
|
8313
7427
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
8314
|
-
|
8315
|
-
|
8316
|
-
|
8317
|
-
|
8318
|
-
|
8319
|
-
|
7428
|
+
name: z.ZodString;
|
7429
|
+
address: z.ZodNullable<z.ZodString>;
|
7430
|
+
channel: z.ZodNullable<z.ZodString>;
|
7431
|
+
notes: z.ZodNullable<z.ZodString>;
|
7432
|
+
contactProfile: z.ZodNullable<z.ZodString>;
|
7433
|
+
socialProfileUrl: z.ZodNullable<z.ZodString>;
|
7434
|
+
tags: z.ZodArray<z.ZodObject<{
|
7435
|
+
id: z.ZodString;
|
7436
|
+
createdAt: z.ZodDate;
|
7437
|
+
updatedAt: z.ZodDate;
|
7438
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
7439
|
+
name: z.ZodString;
|
7440
|
+
}, "strip", z.ZodTypeAny, {
|
7441
|
+
id: string;
|
7442
|
+
name: string;
|
7443
|
+
createdAt: Date;
|
7444
|
+
updatedAt: Date;
|
7445
|
+
deletedAt: Date | null;
|
7446
|
+
}, {
|
7447
|
+
id: string;
|
7448
|
+
name: string;
|
7449
|
+
createdAt: Date;
|
7450
|
+
updatedAt: Date;
|
7451
|
+
deletedAt: Date | null;
|
7452
|
+
}>, "many">;
|
7453
|
+
company: z.ZodNullable<z.ZodObject<Omit<{
|
7454
|
+
id: z.ZodString;
|
7455
|
+
createdAt: z.ZodDate;
|
7456
|
+
updatedAt: z.ZodDate;
|
7457
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
7458
|
+
name: z.ZodOptional<z.ZodString>;
|
7459
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
7460
|
+
address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
7461
|
+
industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
7462
|
+
customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
7463
|
+
id: z.ZodString;
|
7464
|
+
createdAt: z.ZodDate;
|
7465
|
+
updatedAt: z.ZodDate;
|
7466
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
7467
|
+
textValue: z.ZodNullable<z.ZodString>;
|
7468
|
+
booleanValue: z.ZodNullable<z.ZodBoolean>;
|
7469
|
+
numberValue: z.ZodNullable<z.ZodNumber>;
|
7470
|
+
dateValue: z.ZodNullable<z.ZodDate>;
|
7471
|
+
attribute: z.ZodObject<Omit<{
|
7472
|
+
id: z.ZodString;
|
7473
|
+
createdAt: z.ZodDate;
|
7474
|
+
updatedAt: z.ZodDate;
|
7475
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
7476
|
+
systemName: z.ZodString;
|
7477
|
+
displayName: z.ZodString;
|
7478
|
+
type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
|
7479
|
+
position: z.ZodNumber;
|
7480
|
+
isDefault: z.ZodBoolean;
|
7481
|
+
isArchived: z.ZodBoolean;
|
7482
|
+
isRequired: z.ZodBoolean;
|
7483
|
+
isUnique: z.ZodBoolean;
|
7484
|
+
options: z.ZodArray<z.ZodObject<{
|
7485
|
+
position: z.ZodNumber;
|
7486
|
+
value: z.ZodString;
|
7487
|
+
label: z.ZodString;
|
7488
|
+
isDefault: z.ZodBoolean;
|
7489
|
+
id: z.ZodString;
|
7490
|
+
}, "strip", z.ZodTypeAny, {
|
7491
|
+
id: string;
|
7492
|
+
position: number;
|
7493
|
+
value: string;
|
7494
|
+
label: string;
|
7495
|
+
isDefault: boolean;
|
7496
|
+
}, {
|
7497
|
+
id: string;
|
7498
|
+
position: number;
|
7499
|
+
value: string;
|
7500
|
+
label: string;
|
7501
|
+
isDefault: boolean;
|
7502
|
+
}>, "many">;
|
7503
|
+
group: z.ZodObject<{
|
7504
|
+
id: z.ZodString;
|
7505
|
+
createdAt: z.ZodDate;
|
7506
|
+
updatedAt: z.ZodDate;
|
7507
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
7508
|
+
systemName: z.ZodString;
|
7509
|
+
displayName: z.ZodString;
|
7510
|
+
}, "strip", z.ZodTypeAny, {
|
7511
|
+
id: string;
|
7512
|
+
createdAt: Date;
|
7513
|
+
updatedAt: Date;
|
7514
|
+
deletedAt: Date | null;
|
7515
|
+
systemName: string;
|
7516
|
+
displayName: string;
|
7517
|
+
}, {
|
7518
|
+
id: string;
|
7519
|
+
createdAt: Date;
|
7520
|
+
updatedAt: Date;
|
7521
|
+
deletedAt: Date | null;
|
7522
|
+
systemName: string;
|
7523
|
+
displayName: string;
|
7524
|
+
}>;
|
7525
|
+
}, "options" | "group">, "strip", z.ZodTypeAny, {
|
7526
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
7527
|
+
id: string;
|
7528
|
+
position: number;
|
7529
|
+
createdAt: Date;
|
7530
|
+
updatedAt: Date;
|
7531
|
+
deletedAt: Date | null;
|
7532
|
+
isDefault: boolean;
|
7533
|
+
systemName: string;
|
7534
|
+
displayName: string;
|
7535
|
+
isArchived: boolean;
|
7536
|
+
isRequired: boolean;
|
7537
|
+
isUnique: boolean;
|
7538
|
+
}, {
|
7539
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
7540
|
+
id: string;
|
7541
|
+
position: number;
|
7542
|
+
createdAt: Date;
|
7543
|
+
updatedAt: Date;
|
7544
|
+
deletedAt: Date | null;
|
7545
|
+
isDefault: boolean;
|
7546
|
+
systemName: string;
|
7547
|
+
displayName: string;
|
7548
|
+
isArchived: boolean;
|
7549
|
+
isRequired: boolean;
|
7550
|
+
isUnique: boolean;
|
7551
|
+
}>;
|
7552
|
+
}, "strip", z.ZodTypeAny, {
|
7553
|
+
id: string;
|
7554
|
+
createdAt: Date;
|
7555
|
+
updatedAt: Date;
|
7556
|
+
deletedAt: Date | null;
|
7557
|
+
attribute: {
|
7558
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
7559
|
+
id: string;
|
7560
|
+
position: number;
|
7561
|
+
createdAt: Date;
|
7562
|
+
updatedAt: Date;
|
7563
|
+
deletedAt: Date | null;
|
7564
|
+
isDefault: boolean;
|
7565
|
+
systemName: string;
|
7566
|
+
displayName: string;
|
7567
|
+
isArchived: boolean;
|
7568
|
+
isRequired: boolean;
|
7569
|
+
isUnique: boolean;
|
7570
|
+
};
|
7571
|
+
textValue: string | null;
|
7572
|
+
booleanValue: boolean | null;
|
7573
|
+
numberValue: number | null;
|
7574
|
+
dateValue: Date | null;
|
7575
|
+
}, {
|
7576
|
+
id: string;
|
7577
|
+
createdAt: Date;
|
7578
|
+
updatedAt: Date;
|
7579
|
+
deletedAt: Date | null;
|
7580
|
+
attribute: {
|
7581
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
7582
|
+
id: string;
|
7583
|
+
position: number;
|
7584
|
+
createdAt: Date;
|
7585
|
+
updatedAt: Date;
|
7586
|
+
deletedAt: Date | null;
|
7587
|
+
isDefault: boolean;
|
7588
|
+
systemName: string;
|
7589
|
+
displayName: string;
|
7590
|
+
isArchived: boolean;
|
7591
|
+
isRequired: boolean;
|
7592
|
+
isUnique: boolean;
|
7593
|
+
};
|
7594
|
+
textValue: string | null;
|
7595
|
+
booleanValue: boolean | null;
|
7596
|
+
numberValue: number | null;
|
7597
|
+
dateValue: Date | null;
|
7598
|
+
}>, "many">>;
|
7599
|
+
}, "customFields">, "strip", z.ZodTypeAny, {
|
7600
|
+
id: string;
|
7601
|
+
createdAt: Date;
|
7602
|
+
updatedAt: Date;
|
7603
|
+
deletedAt: Date | null;
|
7604
|
+
address?: string | null | undefined;
|
7605
|
+
name?: string | undefined;
|
7606
|
+
phone?: string | null | undefined;
|
7607
|
+
industry?: string | null | undefined;
|
7608
|
+
}, {
|
7609
|
+
id: string;
|
7610
|
+
createdAt: Date;
|
7611
|
+
updatedAt: Date;
|
7612
|
+
deletedAt: Date | null;
|
7613
|
+
address?: string | null | undefined;
|
7614
|
+
name?: string | undefined;
|
7615
|
+
phone?: string | null | undefined;
|
7616
|
+
industry?: string | null | undefined;
|
7617
|
+
}>>;
|
7618
|
+
customFields: z.ZodArray<z.ZodObject<{
|
7619
|
+
id: z.ZodString;
|
7620
|
+
createdAt: z.ZodDate;
|
7621
|
+
updatedAt: z.ZodDate;
|
7622
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
7623
|
+
textValue: z.ZodNullable<z.ZodString>;
|
7624
|
+
booleanValue: z.ZodNullable<z.ZodBoolean>;
|
7625
|
+
numberValue: z.ZodNullable<z.ZodNumber>;
|
7626
|
+
dateValue: z.ZodNullable<z.ZodDate>;
|
7627
|
+
attribute: z.ZodObject<Omit<{
|
7628
|
+
id: z.ZodString;
|
7629
|
+
createdAt: z.ZodDate;
|
7630
|
+
updatedAt: z.ZodDate;
|
7631
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
7632
|
+
systemName: z.ZodString;
|
7633
|
+
displayName: z.ZodString;
|
7634
|
+
type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
|
7635
|
+
position: z.ZodNumber;
|
7636
|
+
isDefault: z.ZodBoolean;
|
7637
|
+
isArchived: z.ZodBoolean;
|
7638
|
+
isRequired: z.ZodBoolean;
|
7639
|
+
isUnique: z.ZodBoolean;
|
7640
|
+
options: z.ZodArray<z.ZodObject<{
|
7641
|
+
position: z.ZodNumber;
|
7642
|
+
value: z.ZodString;
|
7643
|
+
label: z.ZodString;
|
7644
|
+
isDefault: z.ZodBoolean;
|
7645
|
+
id: z.ZodString;
|
7646
|
+
}, "strip", z.ZodTypeAny, {
|
7647
|
+
id: string;
|
7648
|
+
position: number;
|
7649
|
+
value: string;
|
7650
|
+
label: string;
|
7651
|
+
isDefault: boolean;
|
7652
|
+
}, {
|
7653
|
+
id: string;
|
7654
|
+
position: number;
|
7655
|
+
value: string;
|
7656
|
+
label: string;
|
7657
|
+
isDefault: boolean;
|
7658
|
+
}>, "many">;
|
7659
|
+
group: z.ZodObject<{
|
7660
|
+
id: z.ZodString;
|
7661
|
+
createdAt: z.ZodDate;
|
7662
|
+
updatedAt: z.ZodDate;
|
7663
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
7664
|
+
systemName: z.ZodString;
|
7665
|
+
displayName: z.ZodString;
|
7666
|
+
}, "strip", z.ZodTypeAny, {
|
7667
|
+
id: string;
|
7668
|
+
createdAt: Date;
|
7669
|
+
updatedAt: Date;
|
7670
|
+
deletedAt: Date | null;
|
7671
|
+
systemName: string;
|
7672
|
+
displayName: string;
|
7673
|
+
}, {
|
7674
|
+
id: string;
|
7675
|
+
createdAt: Date;
|
7676
|
+
updatedAt: Date;
|
7677
|
+
deletedAt: Date | null;
|
7678
|
+
systemName: string;
|
7679
|
+
displayName: string;
|
7680
|
+
}>;
|
7681
|
+
}, "options" | "group">, "strip", z.ZodTypeAny, {
|
7682
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
7683
|
+
id: string;
|
7684
|
+
position: number;
|
7685
|
+
createdAt: Date;
|
7686
|
+
updatedAt: Date;
|
7687
|
+
deletedAt: Date | null;
|
7688
|
+
isDefault: boolean;
|
7689
|
+
systemName: string;
|
7690
|
+
displayName: string;
|
7691
|
+
isArchived: boolean;
|
7692
|
+
isRequired: boolean;
|
7693
|
+
isUnique: boolean;
|
7694
|
+
}, {
|
7695
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
7696
|
+
id: string;
|
7697
|
+
position: number;
|
7698
|
+
createdAt: Date;
|
7699
|
+
updatedAt: Date;
|
7700
|
+
deletedAt: Date | null;
|
7701
|
+
isDefault: boolean;
|
7702
|
+
systemName: string;
|
7703
|
+
displayName: string;
|
7704
|
+
isArchived: boolean;
|
7705
|
+
isRequired: boolean;
|
7706
|
+
isUnique: boolean;
|
7707
|
+
}>;
|
7708
|
+
uploads: z.ZodArray<z.ZodObject<{
|
7709
|
+
id: z.ZodString;
|
7710
|
+
createdAt: z.ZodDate;
|
7711
|
+
updatedAt: z.ZodDate;
|
7712
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
7713
|
+
customFieldId: z.ZodString;
|
7714
|
+
upload: z.ZodObject<{
|
7715
|
+
id: z.ZodString;
|
7716
|
+
createdAt: z.ZodDate;
|
7717
|
+
updatedAt: z.ZodDate;
|
7718
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
7719
|
+
bucketName: z.ZodString;
|
7720
|
+
fileName: z.ZodString;
|
7721
|
+
fileSize: z.ZodNumber;
|
7722
|
+
fileKey: z.ZodString;
|
7723
|
+
}, "strip", z.ZodTypeAny, {
|
7724
|
+
id: string;
|
7725
|
+
createdAt: Date;
|
7726
|
+
updatedAt: Date;
|
7727
|
+
deletedAt: Date | null;
|
7728
|
+
fileName: string;
|
7729
|
+
fileKey: string;
|
7730
|
+
bucketName: string;
|
7731
|
+
fileSize: number;
|
7732
|
+
}, {
|
7733
|
+
id: string;
|
7734
|
+
createdAt: Date;
|
7735
|
+
updatedAt: Date;
|
7736
|
+
deletedAt: Date | null;
|
7737
|
+
fileName: string;
|
7738
|
+
fileKey: string;
|
7739
|
+
bucketName: string;
|
7740
|
+
fileSize: number;
|
7741
|
+
}>;
|
7742
|
+
}, "strip", z.ZodTypeAny, {
|
7743
|
+
id: string;
|
7744
|
+
createdAt: Date;
|
7745
|
+
updatedAt: Date;
|
7746
|
+
deletedAt: Date | null;
|
7747
|
+
customFieldId: string;
|
7748
|
+
upload: {
|
7749
|
+
id: string;
|
7750
|
+
createdAt: Date;
|
7751
|
+
updatedAt: Date;
|
7752
|
+
deletedAt: Date | null;
|
7753
|
+
fileName: string;
|
7754
|
+
fileKey: string;
|
7755
|
+
bucketName: string;
|
7756
|
+
fileSize: number;
|
7757
|
+
};
|
7758
|
+
}, {
|
7759
|
+
id: string;
|
7760
|
+
createdAt: Date;
|
7761
|
+
updatedAt: Date;
|
7762
|
+
deletedAt: Date | null;
|
7763
|
+
customFieldId: string;
|
7764
|
+
upload: {
|
7765
|
+
id: string;
|
7766
|
+
createdAt: Date;
|
7767
|
+
updatedAt: Date;
|
7768
|
+
deletedAt: Date | null;
|
7769
|
+
fileName: string;
|
7770
|
+
fileKey: string;
|
7771
|
+
bucketName: string;
|
7772
|
+
fileSize: number;
|
7773
|
+
};
|
7774
|
+
}>, "many">;
|
7775
|
+
}, "strip", z.ZodTypeAny, {
|
7776
|
+
id: string;
|
7777
|
+
createdAt: Date;
|
7778
|
+
updatedAt: Date;
|
7779
|
+
deletedAt: Date | null;
|
7780
|
+
attribute: {
|
7781
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
7782
|
+
id: string;
|
7783
|
+
position: number;
|
7784
|
+
createdAt: Date;
|
7785
|
+
updatedAt: Date;
|
7786
|
+
deletedAt: Date | null;
|
7787
|
+
isDefault: boolean;
|
7788
|
+
systemName: string;
|
7789
|
+
displayName: string;
|
7790
|
+
isArchived: boolean;
|
7791
|
+
isRequired: boolean;
|
7792
|
+
isUnique: boolean;
|
7793
|
+
};
|
7794
|
+
textValue: string | null;
|
7795
|
+
booleanValue: boolean | null;
|
7796
|
+
numberValue: number | null;
|
7797
|
+
dateValue: Date | null;
|
7798
|
+
uploads: {
|
7799
|
+
id: string;
|
7800
|
+
createdAt: Date;
|
7801
|
+
updatedAt: Date;
|
7802
|
+
deletedAt: Date | null;
|
7803
|
+
customFieldId: string;
|
7804
|
+
upload: {
|
7805
|
+
id: string;
|
7806
|
+
createdAt: Date;
|
7807
|
+
updatedAt: Date;
|
7808
|
+
deletedAt: Date | null;
|
7809
|
+
fileName: string;
|
7810
|
+
fileKey: string;
|
7811
|
+
bucketName: string;
|
7812
|
+
fileSize: number;
|
7813
|
+
};
|
7814
|
+
}[];
|
7815
|
+
}, {
|
7816
|
+
id: string;
|
7817
|
+
createdAt: Date;
|
7818
|
+
updatedAt: Date;
|
7819
|
+
deletedAt: Date | null;
|
7820
|
+
attribute: {
|
7821
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
7822
|
+
id: string;
|
7823
|
+
position: number;
|
7824
|
+
createdAt: Date;
|
7825
|
+
updatedAt: Date;
|
7826
|
+
deletedAt: Date | null;
|
7827
|
+
isDefault: boolean;
|
7828
|
+
systemName: string;
|
7829
|
+
displayName: string;
|
7830
|
+
isArchived: boolean;
|
7831
|
+
isRequired: boolean;
|
7832
|
+
isUnique: boolean;
|
7833
|
+
};
|
7834
|
+
textValue: string | null;
|
7835
|
+
booleanValue: boolean | null;
|
7836
|
+
numberValue: number | null;
|
7837
|
+
dateValue: Date | null;
|
7838
|
+
uploads: {
|
7839
|
+
id: string;
|
7840
|
+
createdAt: Date;
|
7841
|
+
updatedAt: Date;
|
7842
|
+
deletedAt: Date | null;
|
7843
|
+
customFieldId: string;
|
7844
|
+
upload: {
|
7845
|
+
id: string;
|
7846
|
+
createdAt: Date;
|
7847
|
+
updatedAt: Date;
|
7848
|
+
deletedAt: Date | null;
|
7849
|
+
fileName: string;
|
7850
|
+
fileKey: string;
|
7851
|
+
bucketName: string;
|
7852
|
+
fileSize: number;
|
7853
|
+
};
|
7854
|
+
}[];
|
7855
|
+
}>, "many">;
|
7856
|
+
contactEmails: z.ZodArray<z.ZodObject<{
|
7857
|
+
id: z.ZodString;
|
7858
|
+
createdAt: z.ZodDate;
|
7859
|
+
updatedAt: z.ZodDate;
|
7860
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
7861
|
+
email: z.ZodString;
|
7862
|
+
isPrimary: z.ZodBoolean;
|
7863
|
+
}, "strip", z.ZodTypeAny, {
|
7864
|
+
id: string;
|
7865
|
+
isPrimary: boolean;
|
7866
|
+
email: string;
|
7867
|
+
createdAt: Date;
|
7868
|
+
updatedAt: Date;
|
7869
|
+
deletedAt: Date | null;
|
7870
|
+
}, {
|
7871
|
+
id: string;
|
7872
|
+
isPrimary: boolean;
|
7873
|
+
email: string;
|
7874
|
+
createdAt: Date;
|
7875
|
+
updatedAt: Date;
|
7876
|
+
deletedAt: Date | null;
|
7877
|
+
}>, "many">;
|
7878
|
+
contactPhones: z.ZodArray<z.ZodObject<{
|
7879
|
+
id: z.ZodString;
|
7880
|
+
createdAt: z.ZodDate;
|
7881
|
+
updatedAt: z.ZodDate;
|
7882
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
7883
|
+
phone: z.ZodString;
|
7884
|
+
isPrimary: z.ZodBoolean;
|
7885
|
+
}, "strip", z.ZodTypeAny, {
|
7886
|
+
id: string;
|
7887
|
+
isPrimary: boolean;
|
7888
|
+
createdAt: Date;
|
7889
|
+
updatedAt: Date;
|
7890
|
+
deletedAt: Date | null;
|
7891
|
+
phone: string;
|
7892
|
+
}, {
|
7893
|
+
id: string;
|
7894
|
+
isPrimary: boolean;
|
7895
|
+
createdAt: Date;
|
7896
|
+
updatedAt: Date;
|
7897
|
+
deletedAt: Date | null;
|
7898
|
+
phone: string;
|
7899
|
+
}>, "many">;
|
7900
|
+
activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
7901
|
+
id: z.ZodString;
|
7902
|
+
createdAt: z.ZodDate;
|
7903
|
+
updatedAt: z.ZodDate;
|
7904
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
7905
|
+
entityId: z.ZodString;
|
7906
|
+
description: z.ZodString;
|
7907
|
+
entityType: z.ZodObject<{
|
7908
|
+
id: z.ZodString;
|
7909
|
+
createdAt: z.ZodDate;
|
7910
|
+
updatedAt: z.ZodDate;
|
7911
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
7912
|
+
entity: z.ZodString;
|
7913
|
+
description: z.ZodNullable<z.ZodString>;
|
7914
|
+
}, "strip", z.ZodTypeAny, {
|
7915
|
+
id: string;
|
7916
|
+
description: string | null;
|
7917
|
+
createdAt: Date;
|
7918
|
+
updatedAt: Date;
|
7919
|
+
deletedAt: Date | null;
|
7920
|
+
entity: string;
|
7921
|
+
}, {
|
7922
|
+
id: string;
|
7923
|
+
description: string | null;
|
7924
|
+
createdAt: Date;
|
7925
|
+
updatedAt: Date;
|
7926
|
+
deletedAt: Date | null;
|
7927
|
+
entity: string;
|
7928
|
+
}>;
|
7929
|
+
}, "strip", z.ZodTypeAny, {
|
7930
|
+
id: string;
|
7931
|
+
description: string;
|
7932
|
+
createdAt: Date;
|
7933
|
+
updatedAt: Date;
|
7934
|
+
deletedAt: Date | null;
|
7935
|
+
entityId: string;
|
7936
|
+
entityType: {
|
7937
|
+
id: string;
|
7938
|
+
description: string | null;
|
7939
|
+
createdAt: Date;
|
7940
|
+
updatedAt: Date;
|
7941
|
+
deletedAt: Date | null;
|
7942
|
+
entity: string;
|
7943
|
+
};
|
7944
|
+
}, {
|
7945
|
+
id: string;
|
7946
|
+
description: string;
|
7947
|
+
createdAt: Date;
|
7948
|
+
updatedAt: Date;
|
7949
|
+
deletedAt: Date | null;
|
7950
|
+
entityId: string;
|
7951
|
+
entityType: {
|
7952
|
+
id: string;
|
7953
|
+
description: string | null;
|
7954
|
+
createdAt: Date;
|
7955
|
+
updatedAt: Date;
|
7956
|
+
deletedAt: Date | null;
|
7957
|
+
entity: string;
|
7958
|
+
};
|
7959
|
+
}>, "many">>;
|
8320
7960
|
}, "strip", z.ZodTypeAny, {
|
8321
7961
|
id: string;
|
7962
|
+
channel: string | null;
|
7963
|
+
address: string | null;
|
7964
|
+
name: string;
|
8322
7965
|
createdAt: Date;
|
8323
7966
|
updatedAt: Date;
|
8324
7967
|
deletedAt: Date | null;
|
8325
|
-
|
8326
|
-
|
8327
|
-
|
8328
|
-
|
8329
|
-
|
8330
|
-
|
7968
|
+
customFields: {
|
7969
|
+
id: string;
|
7970
|
+
createdAt: Date;
|
7971
|
+
updatedAt: Date;
|
7972
|
+
deletedAt: Date | null;
|
7973
|
+
attribute: {
|
7974
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
7975
|
+
id: string;
|
7976
|
+
position: number;
|
7977
|
+
createdAt: Date;
|
7978
|
+
updatedAt: Date;
|
7979
|
+
deletedAt: Date | null;
|
7980
|
+
isDefault: boolean;
|
7981
|
+
systemName: string;
|
7982
|
+
displayName: string;
|
7983
|
+
isArchived: boolean;
|
7984
|
+
isRequired: boolean;
|
7985
|
+
isUnique: boolean;
|
7986
|
+
};
|
7987
|
+
textValue: string | null;
|
7988
|
+
booleanValue: boolean | null;
|
7989
|
+
numberValue: number | null;
|
7990
|
+
dateValue: Date | null;
|
7991
|
+
uploads: {
|
7992
|
+
id: string;
|
7993
|
+
createdAt: Date;
|
7994
|
+
updatedAt: Date;
|
7995
|
+
deletedAt: Date | null;
|
7996
|
+
customFieldId: string;
|
7997
|
+
upload: {
|
7998
|
+
id: string;
|
7999
|
+
createdAt: Date;
|
8000
|
+
updatedAt: Date;
|
8001
|
+
deletedAt: Date | null;
|
8002
|
+
fileName: string;
|
8003
|
+
fileKey: string;
|
8004
|
+
bucketName: string;
|
8005
|
+
fileSize: number;
|
8006
|
+
};
|
8007
|
+
}[];
|
8008
|
+
}[];
|
8009
|
+
notes: string | null;
|
8010
|
+
contactProfile: string | null;
|
8011
|
+
socialProfileUrl: string | null;
|
8012
|
+
tags: {
|
8013
|
+
id: string;
|
8014
|
+
name: string;
|
8015
|
+
createdAt: Date;
|
8016
|
+
updatedAt: Date;
|
8017
|
+
deletedAt: Date | null;
|
8018
|
+
}[];
|
8019
|
+
company: {
|
8020
|
+
id: string;
|
8021
|
+
createdAt: Date;
|
8022
|
+
updatedAt: Date;
|
8023
|
+
deletedAt: Date | null;
|
8024
|
+
address?: string | null | undefined;
|
8025
|
+
name?: string | undefined;
|
8026
|
+
phone?: string | null | undefined;
|
8027
|
+
industry?: string | null | undefined;
|
8028
|
+
} | null;
|
8029
|
+
contactEmails: {
|
8030
|
+
id: string;
|
8031
|
+
isPrimary: boolean;
|
8032
|
+
email: string;
|
8033
|
+
createdAt: Date;
|
8034
|
+
updatedAt: Date;
|
8035
|
+
deletedAt: Date | null;
|
8036
|
+
}[];
|
8037
|
+
contactPhones: {
|
8038
|
+
id: string;
|
8039
|
+
isPrimary: boolean;
|
8040
|
+
createdAt: Date;
|
8041
|
+
updatedAt: Date;
|
8042
|
+
deletedAt: Date | null;
|
8043
|
+
phone: string;
|
8044
|
+
}[];
|
8045
|
+
activityLogs?: {
|
8046
|
+
id: string;
|
8047
|
+
description: string;
|
8048
|
+
createdAt: Date;
|
8049
|
+
updatedAt: Date;
|
8050
|
+
deletedAt: Date | null;
|
8051
|
+
entityId: string;
|
8052
|
+
entityType: {
|
8053
|
+
id: string;
|
8054
|
+
description: string | null;
|
8055
|
+
createdAt: Date;
|
8056
|
+
updatedAt: Date;
|
8057
|
+
deletedAt: Date | null;
|
8058
|
+
entity: string;
|
8059
|
+
};
|
8060
|
+
}[] | undefined;
|
8331
8061
|
}, {
|
8332
8062
|
id: string;
|
8063
|
+
channel: string | null;
|
8064
|
+
address: string | null;
|
8065
|
+
name: string;
|
8333
8066
|
createdAt: Date;
|
8334
8067
|
updatedAt: Date;
|
8335
8068
|
deletedAt: Date | null;
|
8336
|
-
|
8337
|
-
|
8338
|
-
|
8339
|
-
|
8340
|
-
|
8341
|
-
|
8069
|
+
customFields: {
|
8070
|
+
id: string;
|
8071
|
+
createdAt: Date;
|
8072
|
+
updatedAt: Date;
|
8073
|
+
deletedAt: Date | null;
|
8074
|
+
attribute: {
|
8075
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
8076
|
+
id: string;
|
8077
|
+
position: number;
|
8078
|
+
createdAt: Date;
|
8079
|
+
updatedAt: Date;
|
8080
|
+
deletedAt: Date | null;
|
8081
|
+
isDefault: boolean;
|
8082
|
+
systemName: string;
|
8083
|
+
displayName: string;
|
8084
|
+
isArchived: boolean;
|
8085
|
+
isRequired: boolean;
|
8086
|
+
isUnique: boolean;
|
8087
|
+
};
|
8088
|
+
textValue: string | null;
|
8089
|
+
booleanValue: boolean | null;
|
8090
|
+
numberValue: number | null;
|
8091
|
+
dateValue: Date | null;
|
8092
|
+
uploads: {
|
8093
|
+
id: string;
|
8094
|
+
createdAt: Date;
|
8095
|
+
updatedAt: Date;
|
8096
|
+
deletedAt: Date | null;
|
8097
|
+
customFieldId: string;
|
8098
|
+
upload: {
|
8099
|
+
id: string;
|
8100
|
+
createdAt: Date;
|
8101
|
+
updatedAt: Date;
|
8102
|
+
deletedAt: Date | null;
|
8103
|
+
fileName: string;
|
8104
|
+
fileKey: string;
|
8105
|
+
bucketName: string;
|
8106
|
+
fileSize: number;
|
8107
|
+
};
|
8108
|
+
}[];
|
8109
|
+
}[];
|
8110
|
+
notes: string | null;
|
8111
|
+
contactProfile: string | null;
|
8112
|
+
socialProfileUrl: string | null;
|
8113
|
+
tags: {
|
8114
|
+
id: string;
|
8115
|
+
name: string;
|
8116
|
+
createdAt: Date;
|
8117
|
+
updatedAt: Date;
|
8118
|
+
deletedAt: Date | null;
|
8119
|
+
}[];
|
8120
|
+
company: {
|
8121
|
+
id: string;
|
8122
|
+
createdAt: Date;
|
8123
|
+
updatedAt: Date;
|
8124
|
+
deletedAt: Date | null;
|
8125
|
+
address?: string | null | undefined;
|
8126
|
+
name?: string | undefined;
|
8127
|
+
phone?: string | null | undefined;
|
8128
|
+
industry?: string | null | undefined;
|
8129
|
+
} | null;
|
8130
|
+
contactEmails: {
|
8131
|
+
id: string;
|
8132
|
+
isPrimary: boolean;
|
8133
|
+
email: string;
|
8134
|
+
createdAt: Date;
|
8135
|
+
updatedAt: Date;
|
8136
|
+
deletedAt: Date | null;
|
8137
|
+
}[];
|
8138
|
+
contactPhones: {
|
8139
|
+
id: string;
|
8140
|
+
isPrimary: boolean;
|
8141
|
+
createdAt: Date;
|
8142
|
+
updatedAt: Date;
|
8143
|
+
deletedAt: Date | null;
|
8144
|
+
phone: string;
|
8145
|
+
}[];
|
8146
|
+
activityLogs?: {
|
8147
|
+
id: string;
|
8148
|
+
description: string;
|
8149
|
+
createdAt: Date;
|
8150
|
+
updatedAt: Date;
|
8151
|
+
deletedAt: Date | null;
|
8152
|
+
entityId: string;
|
8153
|
+
entityType: {
|
8154
|
+
id: string;
|
8155
|
+
description: string | null;
|
8156
|
+
createdAt: Date;
|
8157
|
+
updatedAt: Date;
|
8158
|
+
deletedAt: Date | null;
|
8159
|
+
entity: string;
|
8160
|
+
};
|
8161
|
+
}[] | undefined;
|
8342
8162
|
}>;
|
8343
8163
|
}, "strip", z.ZodTypeAny, {
|
8344
|
-
|
8164
|
+
data: {
|
8345
8165
|
id: string;
|
8166
|
+
channel: string | null;
|
8167
|
+
address: string | null;
|
8168
|
+
name: string;
|
8346
8169
|
createdAt: Date;
|
8347
8170
|
updatedAt: Date;
|
8348
8171
|
deletedAt: Date | null;
|
8349
|
-
|
8350
|
-
|
8351
|
-
|
8352
|
-
|
8353
|
-
|
8354
|
-
|
8172
|
+
customFields: {
|
8173
|
+
id: string;
|
8174
|
+
createdAt: Date;
|
8175
|
+
updatedAt: Date;
|
8176
|
+
deletedAt: Date | null;
|
8177
|
+
attribute: {
|
8178
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
8179
|
+
id: string;
|
8180
|
+
position: number;
|
8181
|
+
createdAt: Date;
|
8182
|
+
updatedAt: Date;
|
8183
|
+
deletedAt: Date | null;
|
8184
|
+
isDefault: boolean;
|
8185
|
+
systemName: string;
|
8186
|
+
displayName: string;
|
8187
|
+
isArchived: boolean;
|
8188
|
+
isRequired: boolean;
|
8189
|
+
isUnique: boolean;
|
8190
|
+
};
|
8191
|
+
textValue: string | null;
|
8192
|
+
booleanValue: boolean | null;
|
8193
|
+
numberValue: number | null;
|
8194
|
+
dateValue: Date | null;
|
8195
|
+
uploads: {
|
8196
|
+
id: string;
|
8197
|
+
createdAt: Date;
|
8198
|
+
updatedAt: Date;
|
8199
|
+
deletedAt: Date | null;
|
8200
|
+
customFieldId: string;
|
8201
|
+
upload: {
|
8202
|
+
id: string;
|
8203
|
+
createdAt: Date;
|
8204
|
+
updatedAt: Date;
|
8205
|
+
deletedAt: Date | null;
|
8206
|
+
fileName: string;
|
8207
|
+
fileKey: string;
|
8208
|
+
bucketName: string;
|
8209
|
+
fileSize: number;
|
8210
|
+
};
|
8211
|
+
}[];
|
8212
|
+
}[];
|
8213
|
+
notes: string | null;
|
8214
|
+
contactProfile: string | null;
|
8215
|
+
socialProfileUrl: string | null;
|
8216
|
+
tags: {
|
8217
|
+
id: string;
|
8218
|
+
name: string;
|
8219
|
+
createdAt: Date;
|
8220
|
+
updatedAt: Date;
|
8221
|
+
deletedAt: Date | null;
|
8222
|
+
}[];
|
8223
|
+
company: {
|
8224
|
+
id: string;
|
8225
|
+
createdAt: Date;
|
8226
|
+
updatedAt: Date;
|
8227
|
+
deletedAt: Date | null;
|
8228
|
+
address?: string | null | undefined;
|
8229
|
+
name?: string | undefined;
|
8230
|
+
phone?: string | null | undefined;
|
8231
|
+
industry?: string | null | undefined;
|
8232
|
+
} | null;
|
8233
|
+
contactEmails: {
|
8234
|
+
id: string;
|
8235
|
+
isPrimary: boolean;
|
8236
|
+
email: string;
|
8237
|
+
createdAt: Date;
|
8238
|
+
updatedAt: Date;
|
8239
|
+
deletedAt: Date | null;
|
8240
|
+
}[];
|
8241
|
+
contactPhones: {
|
8242
|
+
id: string;
|
8243
|
+
isPrimary: boolean;
|
8244
|
+
createdAt: Date;
|
8245
|
+
updatedAt: Date;
|
8246
|
+
deletedAt: Date | null;
|
8247
|
+
phone: string;
|
8248
|
+
}[];
|
8249
|
+
activityLogs?: {
|
8250
|
+
id: string;
|
8251
|
+
description: string;
|
8252
|
+
createdAt: Date;
|
8253
|
+
updatedAt: Date;
|
8254
|
+
deletedAt: Date | null;
|
8255
|
+
entityId: string;
|
8256
|
+
entityType: {
|
8257
|
+
id: string;
|
8258
|
+
description: string | null;
|
8259
|
+
createdAt: Date;
|
8260
|
+
updatedAt: Date;
|
8261
|
+
deletedAt: Date | null;
|
8262
|
+
entity: string;
|
8263
|
+
};
|
8264
|
+
}[] | undefined;
|
8355
8265
|
};
|
8356
8266
|
requestId: string;
|
8357
8267
|
}, {
|
8358
|
-
|
8268
|
+
data: {
|
8359
8269
|
id: string;
|
8270
|
+
channel: string | null;
|
8271
|
+
address: string | null;
|
8272
|
+
name: string;
|
8360
8273
|
createdAt: Date;
|
8361
8274
|
updatedAt: Date;
|
8362
8275
|
deletedAt: Date | null;
|
8363
|
-
|
8364
|
-
|
8365
|
-
|
8366
|
-
|
8367
|
-
|
8368
|
-
|
8276
|
+
customFields: {
|
8277
|
+
id: string;
|
8278
|
+
createdAt: Date;
|
8279
|
+
updatedAt: Date;
|
8280
|
+
deletedAt: Date | null;
|
8281
|
+
attribute: {
|
8282
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
8283
|
+
id: string;
|
8284
|
+
position: number;
|
8285
|
+
createdAt: Date;
|
8286
|
+
updatedAt: Date;
|
8287
|
+
deletedAt: Date | null;
|
8288
|
+
isDefault: boolean;
|
8289
|
+
systemName: string;
|
8290
|
+
displayName: string;
|
8291
|
+
isArchived: boolean;
|
8292
|
+
isRequired: boolean;
|
8293
|
+
isUnique: boolean;
|
8294
|
+
};
|
8295
|
+
textValue: string | null;
|
8296
|
+
booleanValue: boolean | null;
|
8297
|
+
numberValue: number | null;
|
8298
|
+
dateValue: Date | null;
|
8299
|
+
uploads: {
|
8300
|
+
id: string;
|
8301
|
+
createdAt: Date;
|
8302
|
+
updatedAt: Date;
|
8303
|
+
deletedAt: Date | null;
|
8304
|
+
customFieldId: string;
|
8305
|
+
upload: {
|
8306
|
+
id: string;
|
8307
|
+
createdAt: Date;
|
8308
|
+
updatedAt: Date;
|
8309
|
+
deletedAt: Date | null;
|
8310
|
+
fileName: string;
|
8311
|
+
fileKey: string;
|
8312
|
+
bucketName: string;
|
8313
|
+
fileSize: number;
|
8314
|
+
};
|
8315
|
+
}[];
|
8316
|
+
}[];
|
8317
|
+
notes: string | null;
|
8318
|
+
contactProfile: string | null;
|
8319
|
+
socialProfileUrl: string | null;
|
8320
|
+
tags: {
|
8321
|
+
id: string;
|
8322
|
+
name: string;
|
8323
|
+
createdAt: Date;
|
8324
|
+
updatedAt: Date;
|
8325
|
+
deletedAt: Date | null;
|
8326
|
+
}[];
|
8327
|
+
company: {
|
8328
|
+
id: string;
|
8329
|
+
createdAt: Date;
|
8330
|
+
updatedAt: Date;
|
8331
|
+
deletedAt: Date | null;
|
8332
|
+
address?: string | null | undefined;
|
8333
|
+
name?: string | undefined;
|
8334
|
+
phone?: string | null | undefined;
|
8335
|
+
industry?: string | null | undefined;
|
8336
|
+
} | null;
|
8337
|
+
contactEmails: {
|
8338
|
+
id: string;
|
8339
|
+
isPrimary: boolean;
|
8340
|
+
email: string;
|
8341
|
+
createdAt: Date;
|
8342
|
+
updatedAt: Date;
|
8343
|
+
deletedAt: Date | null;
|
8344
|
+
}[];
|
8345
|
+
contactPhones: {
|
8346
|
+
id: string;
|
8347
|
+
isPrimary: boolean;
|
8348
|
+
createdAt: Date;
|
8349
|
+
updatedAt: Date;
|
8350
|
+
deletedAt: Date | null;
|
8351
|
+
phone: string;
|
8352
|
+
}[];
|
8353
|
+
activityLogs?: {
|
8354
|
+
id: string;
|
8355
|
+
description: string;
|
8356
|
+
createdAt: Date;
|
8357
|
+
updatedAt: Date;
|
8358
|
+
deletedAt: Date | null;
|
8359
|
+
entityId: string;
|
8360
|
+
entityType: {
|
8361
|
+
id: string;
|
8362
|
+
description: string | null;
|
8363
|
+
createdAt: Date;
|
8364
|
+
updatedAt: Date;
|
8365
|
+
deletedAt: Date | null;
|
8366
|
+
entity: string;
|
8367
|
+
};
|
8368
|
+
}[] | undefined;
|
8369
8369
|
};
|
8370
8370
|
requestId: string;
|
8371
8371
|
}>;
|
@@ -8421,7 +8421,7 @@ export declare const contactContract: {
|
|
8421
8421
|
error?: any;
|
8422
8422
|
}>;
|
8423
8423
|
};
|
8424
|
-
path: "contact/:id
|
8424
|
+
path: "contact/:id";
|
8425
8425
|
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
8426
8426
|
'x-tenant': z.ZodString;
|
8427
8427
|
authorization: z.ZodString;
|