@kl1/contracts 1.0.59 → 1.0.61
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 +79 -36
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +78 -36
- package/dist/index.mjs.map +1 -1
- package/dist/src/chat/index.d.ts +3 -0
- package/dist/src/chat/index.d.ts.map +1 -1
- package/dist/src/chat/validation.d.ts +3 -0
- package/dist/src/chat/validation.d.ts.map +1 -1
- package/dist/src/contact/index.d.ts +203 -410
- package/dist/src/contact/index.d.ts.map +1 -1
- package/dist/src/contact/validation.d.ts +45 -205
- package/dist/src/contact/validation.d.ts.map +1 -1
- package/dist/src/contract.d.ts +206 -410
- package/dist/src/contract.d.ts.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/package.json +2 -3
@@ -18,266 +18,106 @@ export type Contact = z.infer<typeof ContactSchema>;
|
|
18
18
|
export declare const contactContract: {
|
19
19
|
create: {
|
20
20
|
body: z.ZodObject<{
|
21
|
-
name: z.
|
22
|
-
|
23
|
-
attributeId: z.ZodString;
|
24
|
-
value: z.ZodString;
|
25
|
-
}, "strip", z.ZodTypeAny, {
|
26
|
-
value: string;
|
27
|
-
isRequired: boolean;
|
28
|
-
attributeId: string;
|
21
|
+
name: z.ZodEffects<z.AnyZodObject, {
|
22
|
+
[x: string]: any;
|
29
23
|
}, {
|
30
|
-
|
31
|
-
isRequired: boolean;
|
32
|
-
attributeId: string;
|
24
|
+
[x: string]: any;
|
33
25
|
}>;
|
34
|
-
email: z.
|
35
|
-
|
36
|
-
attributeId: z.ZodString;
|
37
|
-
value: z.ZodArray<z.ZodObject<{
|
38
|
-
email: z.ZodString;
|
39
|
-
isPrimary: z.ZodBoolean;
|
40
|
-
}, "strip", z.ZodTypeAny, {
|
41
|
-
isPrimary: boolean;
|
42
|
-
email: string;
|
43
|
-
}, {
|
44
|
-
isPrimary: boolean;
|
45
|
-
email: string;
|
46
|
-
}>, "many">;
|
47
|
-
}, "strip", z.ZodTypeAny, {
|
48
|
-
value: {
|
49
|
-
isPrimary: boolean;
|
50
|
-
email: string;
|
51
|
-
}[];
|
52
|
-
isRequired: boolean;
|
53
|
-
attributeId: string;
|
26
|
+
email: z.ZodEffects<z.AnyZodObject, {
|
27
|
+
[x: string]: any;
|
54
28
|
}, {
|
55
|
-
|
56
|
-
isPrimary: boolean;
|
57
|
-
email: string;
|
58
|
-
}[];
|
59
|
-
isRequired: boolean;
|
60
|
-
attributeId: string;
|
29
|
+
[x: string]: any;
|
61
30
|
}>;
|
62
|
-
channel: z.
|
63
|
-
|
64
|
-
attributeId: z.ZodString;
|
65
|
-
value: z.ZodString;
|
66
|
-
}, "strip", z.ZodTypeAny, {
|
67
|
-
value: string;
|
68
|
-
isRequired: boolean;
|
69
|
-
attributeId: string;
|
31
|
+
channel: z.ZodEffects<z.AnyZodObject, {
|
32
|
+
[x: string]: any;
|
70
33
|
}, {
|
71
|
-
|
72
|
-
isRequired: boolean;
|
73
|
-
attributeId: string;
|
34
|
+
[x: string]: any;
|
74
35
|
}>;
|
75
|
-
address: z.
|
76
|
-
|
77
|
-
attributeId: z.ZodString;
|
78
|
-
value: z.ZodString;
|
79
|
-
}, "strip", z.ZodTypeAny, {
|
80
|
-
value: string;
|
81
|
-
isRequired: boolean;
|
82
|
-
attributeId: string;
|
36
|
+
address: z.ZodEffects<z.AnyZodObject, {
|
37
|
+
[x: string]: any;
|
83
38
|
}, {
|
84
|
-
|
85
|
-
isRequired: boolean;
|
86
|
-
attributeId: string;
|
39
|
+
[x: string]: any;
|
87
40
|
}>;
|
88
|
-
phone: z.ZodOptional<z.
|
89
|
-
|
90
|
-
attributeId: z.ZodString;
|
91
|
-
value: z.ZodArray<z.ZodObject<{
|
92
|
-
phone: z.ZodString;
|
93
|
-
isPrimary: z.ZodBoolean;
|
94
|
-
}, "strip", z.ZodTypeAny, {
|
95
|
-
isPrimary: boolean;
|
96
|
-
phone: string;
|
97
|
-
}, {
|
98
|
-
isPrimary: boolean;
|
99
|
-
phone: string;
|
100
|
-
}>, "many">;
|
101
|
-
}, "strip", z.ZodTypeAny, {
|
102
|
-
value: {
|
103
|
-
isPrimary: boolean;
|
104
|
-
phone: string;
|
105
|
-
}[];
|
106
|
-
isRequired: boolean;
|
107
|
-
attributeId: string;
|
41
|
+
phone: z.ZodOptional<z.ZodEffects<z.AnyZodObject, {
|
42
|
+
[x: string]: any;
|
108
43
|
}, {
|
109
|
-
|
110
|
-
isPrimary: boolean;
|
111
|
-
phone: string;
|
112
|
-
}[];
|
113
|
-
isRequired: boolean;
|
114
|
-
attributeId: string;
|
44
|
+
[x: string]: any;
|
115
45
|
}>>;
|
116
|
-
notes: z.
|
117
|
-
|
118
|
-
attributeId: z.ZodString;
|
119
|
-
value: z.ZodString;
|
120
|
-
}, "strip", z.ZodTypeAny, {
|
121
|
-
value: string;
|
122
|
-
isRequired: boolean;
|
123
|
-
attributeId: string;
|
46
|
+
notes: z.ZodEffects<z.AnyZodObject, {
|
47
|
+
[x: string]: any;
|
124
48
|
}, {
|
125
|
-
|
126
|
-
isRequired: boolean;
|
127
|
-
attributeId: string;
|
49
|
+
[x: string]: any;
|
128
50
|
}>;
|
129
|
-
tags: z.
|
130
|
-
|
131
|
-
attributeId: z.ZodString;
|
132
|
-
value: z.ZodArray<z.ZodString, "many">;
|
133
|
-
}, "strip", z.ZodTypeAny, {
|
134
|
-
value: string[];
|
135
|
-
isRequired: boolean;
|
136
|
-
attributeId: string;
|
51
|
+
tags: z.ZodEffects<z.AnyZodObject, {
|
52
|
+
[x: string]: any;
|
137
53
|
}, {
|
138
|
-
|
139
|
-
isRequired: boolean;
|
140
|
-
attributeId: string;
|
54
|
+
[x: string]: any;
|
141
55
|
}>;
|
142
|
-
company: z.
|
143
|
-
|
144
|
-
attributeId: z.ZodString;
|
145
|
-
value: z.ZodString;
|
146
|
-
}, "strip", z.ZodTypeAny, {
|
147
|
-
value: string;
|
148
|
-
isRequired: boolean;
|
149
|
-
attributeId: string;
|
56
|
+
company: z.ZodEffects<z.AnyZodObject, {
|
57
|
+
[x: string]: any;
|
150
58
|
}, {
|
151
|
-
|
152
|
-
isRequired: boolean;
|
153
|
-
attributeId: string;
|
59
|
+
[x: string]: any;
|
154
60
|
}>;
|
155
|
-
customFields: z.ZodArray<z.
|
156
|
-
|
157
|
-
attributeId: z.ZodString;
|
158
|
-
value: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
159
|
-
type: z.ZodString;
|
160
|
-
isDefaultAttribute: z.ZodBoolean;
|
161
|
-
}, "strip", z.ZodTypeAny, {
|
162
|
-
type: string;
|
163
|
-
value: (string | string[]) & (string | string[] | undefined);
|
164
|
-
isRequired: boolean;
|
165
|
-
attributeId: string;
|
166
|
-
isDefaultAttribute: boolean;
|
61
|
+
customFields: z.ZodArray<z.ZodEffects<z.AnyZodObject, {
|
62
|
+
[x: string]: any;
|
167
63
|
}, {
|
168
|
-
|
169
|
-
value: (string | string[]) & (string | string[] | undefined);
|
170
|
-
isRequired: boolean;
|
171
|
-
attributeId: string;
|
172
|
-
isDefaultAttribute: boolean;
|
64
|
+
[x: string]: any;
|
173
65
|
}>, "many">;
|
174
66
|
}, "strip", z.ZodTypeAny, {
|
175
67
|
channel: {
|
176
|
-
|
177
|
-
isRequired: boolean;
|
178
|
-
attributeId: string;
|
68
|
+
[x: string]: any;
|
179
69
|
};
|
180
70
|
address: {
|
181
|
-
|
182
|
-
isRequired: boolean;
|
183
|
-
attributeId: string;
|
71
|
+
[x: string]: any;
|
184
72
|
};
|
185
73
|
name: {
|
186
|
-
|
187
|
-
isRequired: boolean;
|
188
|
-
attributeId: string;
|
74
|
+
[x: string]: any;
|
189
75
|
};
|
190
76
|
email: {
|
191
|
-
|
192
|
-
isPrimary: boolean;
|
193
|
-
email: string;
|
194
|
-
}[];
|
195
|
-
isRequired: boolean;
|
196
|
-
attributeId: string;
|
77
|
+
[x: string]: any;
|
197
78
|
};
|
198
79
|
customFields: {
|
199
|
-
|
200
|
-
value: (string | string[]) & (string | string[] | undefined);
|
201
|
-
isRequired: boolean;
|
202
|
-
attributeId: string;
|
203
|
-
isDefaultAttribute: boolean;
|
80
|
+
[x: string]: any;
|
204
81
|
}[];
|
205
82
|
company: {
|
206
|
-
|
207
|
-
isRequired: boolean;
|
208
|
-
attributeId: string;
|
83
|
+
[x: string]: any;
|
209
84
|
};
|
210
85
|
notes: {
|
211
|
-
|
212
|
-
isRequired: boolean;
|
213
|
-
attributeId: string;
|
86
|
+
[x: string]: any;
|
214
87
|
};
|
215
88
|
tags: {
|
216
|
-
|
217
|
-
isRequired: boolean;
|
218
|
-
attributeId: string;
|
89
|
+
[x: string]: any;
|
219
90
|
};
|
220
91
|
phone?: {
|
221
|
-
|
222
|
-
isPrimary: boolean;
|
223
|
-
phone: string;
|
224
|
-
}[];
|
225
|
-
isRequired: boolean;
|
226
|
-
attributeId: string;
|
92
|
+
[x: string]: any;
|
227
93
|
} | undefined;
|
228
94
|
}, {
|
229
95
|
channel: {
|
230
|
-
|
231
|
-
isRequired: boolean;
|
232
|
-
attributeId: string;
|
96
|
+
[x: string]: any;
|
233
97
|
};
|
234
98
|
address: {
|
235
|
-
|
236
|
-
isRequired: boolean;
|
237
|
-
attributeId: string;
|
99
|
+
[x: string]: any;
|
238
100
|
};
|
239
101
|
name: {
|
240
|
-
|
241
|
-
isRequired: boolean;
|
242
|
-
attributeId: string;
|
102
|
+
[x: string]: any;
|
243
103
|
};
|
244
104
|
email: {
|
245
|
-
|
246
|
-
isPrimary: boolean;
|
247
|
-
email: string;
|
248
|
-
}[];
|
249
|
-
isRequired: boolean;
|
250
|
-
attributeId: string;
|
105
|
+
[x: string]: any;
|
251
106
|
};
|
252
107
|
customFields: {
|
253
|
-
|
254
|
-
value: (string | string[]) & (string | string[] | undefined);
|
255
|
-
isRequired: boolean;
|
256
|
-
attributeId: string;
|
257
|
-
isDefaultAttribute: boolean;
|
108
|
+
[x: string]: any;
|
258
109
|
}[];
|
259
110
|
company: {
|
260
|
-
|
261
|
-
isRequired: boolean;
|
262
|
-
attributeId: string;
|
111
|
+
[x: string]: any;
|
263
112
|
};
|
264
113
|
notes: {
|
265
|
-
|
266
|
-
isRequired: boolean;
|
267
|
-
attributeId: string;
|
114
|
+
[x: string]: any;
|
268
115
|
};
|
269
116
|
tags: {
|
270
|
-
|
271
|
-
isRequired: boolean;
|
272
|
-
attributeId: string;
|
117
|
+
[x: string]: any;
|
273
118
|
};
|
274
119
|
phone?: {
|
275
|
-
|
276
|
-
isPrimary: boolean;
|
277
|
-
phone: string;
|
278
|
-
}[];
|
279
|
-
isRequired: boolean;
|
280
|
-
attributeId: string;
|
120
|
+
[x: string]: any;
|
281
121
|
} | undefined;
|
282
122
|
}>;
|
283
123
|
summary: "Create a new contact";
|
@@ -2559,266 +2399,106 @@ export declare const contactContract: {
|
|
2559
2399
|
};
|
2560
2400
|
update: {
|
2561
2401
|
body: z.ZodObject<{
|
2562
|
-
name: z.ZodOptional<z.
|
2563
|
-
|
2564
|
-
attributeId: z.ZodString;
|
2565
|
-
value: z.ZodString;
|
2566
|
-
}, "strip", z.ZodTypeAny, {
|
2567
|
-
value: string;
|
2568
|
-
isRequired: boolean;
|
2569
|
-
attributeId: string;
|
2402
|
+
name: z.ZodOptional<z.ZodEffects<z.AnyZodObject, {
|
2403
|
+
[x: string]: any;
|
2570
2404
|
}, {
|
2571
|
-
|
2572
|
-
isRequired: boolean;
|
2573
|
-
attributeId: string;
|
2405
|
+
[x: string]: any;
|
2574
2406
|
}>>;
|
2575
|
-
email: z.ZodOptional<z.
|
2576
|
-
|
2577
|
-
attributeId: z.ZodString;
|
2578
|
-
value: z.ZodArray<z.ZodObject<{
|
2579
|
-
email: z.ZodString;
|
2580
|
-
isPrimary: z.ZodBoolean;
|
2581
|
-
}, "strip", z.ZodTypeAny, {
|
2582
|
-
isPrimary: boolean;
|
2583
|
-
email: string;
|
2584
|
-
}, {
|
2585
|
-
isPrimary: boolean;
|
2586
|
-
email: string;
|
2587
|
-
}>, "many">;
|
2588
|
-
}, "strip", z.ZodTypeAny, {
|
2589
|
-
value: {
|
2590
|
-
isPrimary: boolean;
|
2591
|
-
email: string;
|
2592
|
-
}[];
|
2593
|
-
isRequired: boolean;
|
2594
|
-
attributeId: string;
|
2407
|
+
email: z.ZodOptional<z.ZodEffects<z.AnyZodObject, {
|
2408
|
+
[x: string]: any;
|
2595
2409
|
}, {
|
2596
|
-
|
2597
|
-
isPrimary: boolean;
|
2598
|
-
email: string;
|
2599
|
-
}[];
|
2600
|
-
isRequired: boolean;
|
2601
|
-
attributeId: string;
|
2410
|
+
[x: string]: any;
|
2602
2411
|
}>>;
|
2603
|
-
channel: z.ZodOptional<z.
|
2604
|
-
|
2605
|
-
attributeId: z.ZodString;
|
2606
|
-
value: z.ZodString;
|
2607
|
-
}, "strip", z.ZodTypeAny, {
|
2608
|
-
value: string;
|
2609
|
-
isRequired: boolean;
|
2610
|
-
attributeId: string;
|
2412
|
+
channel: z.ZodOptional<z.ZodEffects<z.AnyZodObject, {
|
2413
|
+
[x: string]: any;
|
2611
2414
|
}, {
|
2612
|
-
|
2613
|
-
isRequired: boolean;
|
2614
|
-
attributeId: string;
|
2415
|
+
[x: string]: any;
|
2615
2416
|
}>>;
|
2616
|
-
address: z.ZodOptional<z.
|
2617
|
-
|
2618
|
-
attributeId: z.ZodString;
|
2619
|
-
value: z.ZodString;
|
2620
|
-
}, "strip", z.ZodTypeAny, {
|
2621
|
-
value: string;
|
2622
|
-
isRequired: boolean;
|
2623
|
-
attributeId: string;
|
2417
|
+
address: z.ZodOptional<z.ZodEffects<z.AnyZodObject, {
|
2418
|
+
[x: string]: any;
|
2624
2419
|
}, {
|
2625
|
-
|
2626
|
-
isRequired: boolean;
|
2627
|
-
attributeId: string;
|
2420
|
+
[x: string]: any;
|
2628
2421
|
}>>;
|
2629
|
-
phone: z.ZodOptional<z.ZodOptional<z.
|
2630
|
-
|
2631
|
-
attributeId: z.ZodString;
|
2632
|
-
value: z.ZodArray<z.ZodObject<{
|
2633
|
-
phone: z.ZodString;
|
2634
|
-
isPrimary: z.ZodBoolean;
|
2635
|
-
}, "strip", z.ZodTypeAny, {
|
2636
|
-
isPrimary: boolean;
|
2637
|
-
phone: string;
|
2638
|
-
}, {
|
2639
|
-
isPrimary: boolean;
|
2640
|
-
phone: string;
|
2641
|
-
}>, "many">;
|
2642
|
-
}, "strip", z.ZodTypeAny, {
|
2643
|
-
value: {
|
2644
|
-
isPrimary: boolean;
|
2645
|
-
phone: string;
|
2646
|
-
}[];
|
2647
|
-
isRequired: boolean;
|
2648
|
-
attributeId: string;
|
2422
|
+
phone: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.AnyZodObject, {
|
2423
|
+
[x: string]: any;
|
2649
2424
|
}, {
|
2650
|
-
|
2651
|
-
isPrimary: boolean;
|
2652
|
-
phone: string;
|
2653
|
-
}[];
|
2654
|
-
isRequired: boolean;
|
2655
|
-
attributeId: string;
|
2425
|
+
[x: string]: any;
|
2656
2426
|
}>>>;
|
2657
|
-
notes: z.ZodOptional<z.
|
2658
|
-
|
2659
|
-
attributeId: z.ZodString;
|
2660
|
-
value: z.ZodString;
|
2661
|
-
}, "strip", z.ZodTypeAny, {
|
2662
|
-
value: string;
|
2663
|
-
isRequired: boolean;
|
2664
|
-
attributeId: string;
|
2427
|
+
notes: z.ZodOptional<z.ZodEffects<z.AnyZodObject, {
|
2428
|
+
[x: string]: any;
|
2665
2429
|
}, {
|
2666
|
-
|
2667
|
-
isRequired: boolean;
|
2668
|
-
attributeId: string;
|
2430
|
+
[x: string]: any;
|
2669
2431
|
}>>;
|
2670
|
-
tags: z.ZodOptional<z.
|
2671
|
-
|
2672
|
-
attributeId: z.ZodString;
|
2673
|
-
value: z.ZodArray<z.ZodString, "many">;
|
2674
|
-
}, "strip", z.ZodTypeAny, {
|
2675
|
-
value: string[];
|
2676
|
-
isRequired: boolean;
|
2677
|
-
attributeId: string;
|
2432
|
+
tags: z.ZodOptional<z.ZodEffects<z.AnyZodObject, {
|
2433
|
+
[x: string]: any;
|
2678
2434
|
}, {
|
2679
|
-
|
2680
|
-
isRequired: boolean;
|
2681
|
-
attributeId: string;
|
2435
|
+
[x: string]: any;
|
2682
2436
|
}>>;
|
2683
|
-
company: z.ZodOptional<z.
|
2684
|
-
|
2685
|
-
attributeId: z.ZodString;
|
2686
|
-
value: z.ZodString;
|
2687
|
-
}, "strip", z.ZodTypeAny, {
|
2688
|
-
value: string;
|
2689
|
-
isRequired: boolean;
|
2690
|
-
attributeId: string;
|
2437
|
+
company: z.ZodOptional<z.ZodEffects<z.AnyZodObject, {
|
2438
|
+
[x: string]: any;
|
2691
2439
|
}, {
|
2692
|
-
|
2693
|
-
isRequired: boolean;
|
2694
|
-
attributeId: string;
|
2440
|
+
[x: string]: any;
|
2695
2441
|
}>>;
|
2696
|
-
customFields: z.ZodOptional<z.ZodArray<z.
|
2697
|
-
|
2698
|
-
attributeId: z.ZodString;
|
2699
|
-
value: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
2700
|
-
type: z.ZodString;
|
2701
|
-
isDefaultAttribute: z.ZodBoolean;
|
2702
|
-
}, "strip", z.ZodTypeAny, {
|
2703
|
-
type: string;
|
2704
|
-
value: (string | string[]) & (string | string[] | undefined);
|
2705
|
-
isRequired: boolean;
|
2706
|
-
attributeId: string;
|
2707
|
-
isDefaultAttribute: boolean;
|
2442
|
+
customFields: z.ZodOptional<z.ZodArray<z.ZodEffects<z.AnyZodObject, {
|
2443
|
+
[x: string]: any;
|
2708
2444
|
}, {
|
2709
|
-
|
2710
|
-
value: (string | string[]) & (string | string[] | undefined);
|
2711
|
-
isRequired: boolean;
|
2712
|
-
attributeId: string;
|
2713
|
-
isDefaultAttribute: boolean;
|
2445
|
+
[x: string]: any;
|
2714
2446
|
}>, "many">>;
|
2715
2447
|
}, "strip", z.ZodTypeAny, {
|
2716
2448
|
name?: {
|
2717
|
-
|
2718
|
-
isRequired: boolean;
|
2719
|
-
attributeId: string;
|
2449
|
+
[x: string]: any;
|
2720
2450
|
} | undefined;
|
2721
2451
|
email?: {
|
2722
|
-
|
2723
|
-
isPrimary: boolean;
|
2724
|
-
email: string;
|
2725
|
-
}[];
|
2726
|
-
isRequired: boolean;
|
2727
|
-
attributeId: string;
|
2452
|
+
[x: string]: any;
|
2728
2453
|
} | undefined;
|
2729
2454
|
channel?: {
|
2730
|
-
|
2731
|
-
isRequired: boolean;
|
2732
|
-
attributeId: string;
|
2455
|
+
[x: string]: any;
|
2733
2456
|
} | undefined;
|
2734
2457
|
address?: {
|
2735
|
-
|
2736
|
-
isRequired: boolean;
|
2737
|
-
attributeId: string;
|
2458
|
+
[x: string]: any;
|
2738
2459
|
} | undefined;
|
2739
2460
|
phone?: {
|
2740
|
-
|
2741
|
-
isPrimary: boolean;
|
2742
|
-
phone: string;
|
2743
|
-
}[];
|
2744
|
-
isRequired: boolean;
|
2745
|
-
attributeId: string;
|
2461
|
+
[x: string]: any;
|
2746
2462
|
} | undefined;
|
2747
2463
|
notes?: {
|
2748
|
-
|
2749
|
-
isRequired: boolean;
|
2750
|
-
attributeId: string;
|
2464
|
+
[x: string]: any;
|
2751
2465
|
} | undefined;
|
2752
2466
|
tags?: {
|
2753
|
-
|
2754
|
-
isRequired: boolean;
|
2755
|
-
attributeId: string;
|
2467
|
+
[x: string]: any;
|
2756
2468
|
} | undefined;
|
2757
2469
|
company?: {
|
2758
|
-
|
2759
|
-
isRequired: boolean;
|
2760
|
-
attributeId: string;
|
2470
|
+
[x: string]: any;
|
2761
2471
|
} | undefined;
|
2762
2472
|
customFields?: {
|
2763
|
-
|
2764
|
-
value: (string | string[]) & (string | string[] | undefined);
|
2765
|
-
isRequired: boolean;
|
2766
|
-
attributeId: string;
|
2767
|
-
isDefaultAttribute: boolean;
|
2473
|
+
[x: string]: any;
|
2768
2474
|
}[] | undefined;
|
2769
2475
|
}, {
|
2770
2476
|
name?: {
|
2771
|
-
|
2772
|
-
isRequired: boolean;
|
2773
|
-
attributeId: string;
|
2477
|
+
[x: string]: any;
|
2774
2478
|
} | undefined;
|
2775
2479
|
email?: {
|
2776
|
-
|
2777
|
-
isPrimary: boolean;
|
2778
|
-
email: string;
|
2779
|
-
}[];
|
2780
|
-
isRequired: boolean;
|
2781
|
-
attributeId: string;
|
2480
|
+
[x: string]: any;
|
2782
2481
|
} | undefined;
|
2783
2482
|
channel?: {
|
2784
|
-
|
2785
|
-
isRequired: boolean;
|
2786
|
-
attributeId: string;
|
2483
|
+
[x: string]: any;
|
2787
2484
|
} | undefined;
|
2788
2485
|
address?: {
|
2789
|
-
|
2790
|
-
isRequired: boolean;
|
2791
|
-
attributeId: string;
|
2486
|
+
[x: string]: any;
|
2792
2487
|
} | undefined;
|
2793
2488
|
phone?: {
|
2794
|
-
|
2795
|
-
isPrimary: boolean;
|
2796
|
-
phone: string;
|
2797
|
-
}[];
|
2798
|
-
isRequired: boolean;
|
2799
|
-
attributeId: string;
|
2489
|
+
[x: string]: any;
|
2800
2490
|
} | undefined;
|
2801
2491
|
notes?: {
|
2802
|
-
|
2803
|
-
isRequired: boolean;
|
2804
|
-
attributeId: string;
|
2492
|
+
[x: string]: any;
|
2805
2493
|
} | undefined;
|
2806
2494
|
tags?: {
|
2807
|
-
|
2808
|
-
isRequired: boolean;
|
2809
|
-
attributeId: string;
|
2495
|
+
[x: string]: any;
|
2810
2496
|
} | undefined;
|
2811
2497
|
company?: {
|
2812
|
-
|
2813
|
-
isRequired: boolean;
|
2814
|
-
attributeId: string;
|
2498
|
+
[x: string]: any;
|
2815
2499
|
} | undefined;
|
2816
2500
|
customFields?: {
|
2817
|
-
|
2818
|
-
value: (string | string[]) & (string | string[] | undefined);
|
2819
|
-
isRequired: boolean;
|
2820
|
-
attributeId: string;
|
2821
|
-
isDefaultAttribute: boolean;
|
2501
|
+
[x: string]: any;
|
2822
2502
|
}[] | undefined;
|
2823
2503
|
}>;
|
2824
2504
|
summary: "Update a contact";
|
@@ -8593,5 +8273,118 @@ export declare const contactContract: {
|
|
8593
8273
|
'x-client-timezone'?: string | undefined;
|
8594
8274
|
}>>>;
|
8595
8275
|
};
|
8276
|
+
getExportContacts: {
|
8277
|
+
method: "GET";
|
8278
|
+
query: z.ZodObject<{
|
8279
|
+
page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
8280
|
+
pageSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
8281
|
+
keyword: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
8282
|
+
company: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
8283
|
+
name: z.ZodOptional<z.ZodString>;
|
8284
|
+
address: z.ZodOptional<z.ZodString>;
|
8285
|
+
channel: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
8286
|
+
selectedDate: z.ZodOptional<z.ZodString>;
|
8287
|
+
customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
8288
|
+
attributeId: z.ZodString;
|
8289
|
+
type: z.ZodString;
|
8290
|
+
value: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
8291
|
+
}, "strip", z.ZodTypeAny, {
|
8292
|
+
type: string;
|
8293
|
+
value: (string | string[]) & (string | string[] | undefined);
|
8294
|
+
attributeId: string;
|
8295
|
+
}, {
|
8296
|
+
type: string;
|
8297
|
+
value: (string | string[]) & (string | string[] | undefined);
|
8298
|
+
attributeId: string;
|
8299
|
+
}>, "many">>;
|
8300
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
8301
|
+
phone: z.ZodOptional<z.ZodString>;
|
8302
|
+
email: z.ZodOptional<z.ZodString>;
|
8303
|
+
notes: z.ZodOptional<z.ZodString>;
|
8304
|
+
}, "strip", z.ZodTypeAny, {
|
8305
|
+
page?: number | undefined;
|
8306
|
+
pageSize?: number | undefined;
|
8307
|
+
keyword?: string | undefined;
|
8308
|
+
company?: string[] | undefined;
|
8309
|
+
name?: string | undefined;
|
8310
|
+
address?: string | undefined;
|
8311
|
+
channel?: string[] | undefined;
|
8312
|
+
selectedDate?: string | undefined;
|
8313
|
+
customFields?: {
|
8314
|
+
type: string;
|
8315
|
+
value: (string | string[]) & (string | string[] | undefined);
|
8316
|
+
attributeId: string;
|
8317
|
+
}[] | undefined;
|
8318
|
+
tags?: string[] | undefined;
|
8319
|
+
phone?: string | undefined;
|
8320
|
+
email?: string | undefined;
|
8321
|
+
notes?: string | undefined;
|
8322
|
+
}, {
|
8323
|
+
page?: number | undefined;
|
8324
|
+
pageSize?: number | undefined;
|
8325
|
+
keyword?: string | undefined;
|
8326
|
+
company?: string[] | undefined;
|
8327
|
+
name?: string | undefined;
|
8328
|
+
address?: string | undefined;
|
8329
|
+
channel?: string[] | undefined;
|
8330
|
+
selectedDate?: string | undefined;
|
8331
|
+
customFields?: {
|
8332
|
+
type: string;
|
8333
|
+
value: (string | string[]) & (string | string[] | undefined);
|
8334
|
+
attributeId: string;
|
8335
|
+
}[] | undefined;
|
8336
|
+
tags?: string[] | undefined;
|
8337
|
+
phone?: string | undefined;
|
8338
|
+
email?: string | undefined;
|
8339
|
+
notes?: string | undefined;
|
8340
|
+
}>;
|
8341
|
+
responses: {
|
8342
|
+
200: null;
|
8343
|
+
400: z.ZodObject<{
|
8344
|
+
message: z.ZodString;
|
8345
|
+
}, "strip", z.ZodTypeAny, {
|
8346
|
+
message: string;
|
8347
|
+
}, {
|
8348
|
+
message: string;
|
8349
|
+
}>;
|
8350
|
+
401: z.ZodObject<{
|
8351
|
+
message: z.ZodString;
|
8352
|
+
error: z.ZodAny;
|
8353
|
+
}, "strip", z.ZodTypeAny, {
|
8354
|
+
message: string;
|
8355
|
+
error?: any;
|
8356
|
+
}, {
|
8357
|
+
message: string;
|
8358
|
+
error?: any;
|
8359
|
+
}>;
|
8360
|
+
404: z.ZodObject<{
|
8361
|
+
message: z.ZodString;
|
8362
|
+
error: z.ZodAny;
|
8363
|
+
}, "strip", z.ZodTypeAny, {
|
8364
|
+
message: string;
|
8365
|
+
error?: any;
|
8366
|
+
}, {
|
8367
|
+
message: string;
|
8368
|
+
error?: any;
|
8369
|
+
}>;
|
8370
|
+
};
|
8371
|
+
path: "contact/export";
|
8372
|
+
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
8373
|
+
'x-tenant': z.ZodString;
|
8374
|
+
authorization: z.ZodString;
|
8375
|
+
'x-code': z.ZodOptional<z.ZodString>;
|
8376
|
+
'x-client-timezone': z.ZodDefault<z.ZodString>;
|
8377
|
+
}, "strip", z.ZodTypeAny, {
|
8378
|
+
'x-tenant': string;
|
8379
|
+
authorization: string;
|
8380
|
+
'x-client-timezone': string;
|
8381
|
+
'x-code'?: string | undefined;
|
8382
|
+
}, {
|
8383
|
+
'x-tenant': string;
|
8384
|
+
authorization: string;
|
8385
|
+
'x-code'?: string | undefined;
|
8386
|
+
'x-client-timezone'?: string | undefined;
|
8387
|
+
}>>>;
|
8388
|
+
};
|
8596
8389
|
};
|
8597
8390
|
//# sourceMappingURL=index.d.ts.map
|