@kl1/contracts 1.0.49 → 1.0.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/dist/index.js +3320 -3422
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +3320 -3422
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/src/app/index.d.ts +17 -0
  6. package/dist/src/app/index.d.ts.map +1 -0
  7. package/dist/src/attribute/index.d.ts +12 -12
  8. package/dist/src/attribute/schema.d.ts +2 -2
  9. package/dist/src/chat/index.d.ts +211 -211
  10. package/dist/src/chat/schema.d.ts +48 -54
  11. package/dist/src/chat/schema.d.ts.map +1 -1
  12. package/dist/src/chat/validation.d.ts +62 -62
  13. package/dist/src/comment/index.d.ts +94 -94
  14. package/dist/src/comment/schema.d.ts +26 -26
  15. package/dist/src/company/index.d.ts +32 -32
  16. package/dist/src/company/schema.d.ts +10 -10
  17. package/dist/src/company/validation.d.ts +18 -18
  18. package/dist/src/contact/index.d.ts +88 -88
  19. package/dist/src/contact/schema.d.ts +14 -14
  20. package/dist/src/contact/validation.d.ts +72 -72
  21. package/dist/src/contract.d.ts +1363 -8150
  22. package/dist/src/contract.d.ts.map +1 -1
  23. package/dist/src/custom-field/schema.d.ts +2 -2
  24. package/dist/src/cx-log/index.d.ts +52 -52
  25. package/dist/src/cx-log/schema.d.ts +44 -44
  26. package/dist/src/mail/mail-contract.d.ts +12 -12
  27. package/dist/src/mail/mail-server.d.ts +216 -0
  28. package/dist/src/mail/mail-server.d.ts.map +1 -0
  29. package/dist/src/mail/room-contract.d.ts +12 -12
  30. package/dist/src/mail/schemas/room-validation.schema.d.ts +4 -4
  31. package/dist/src/mail/schemas/room.schema.d.ts +2 -2
  32. package/dist/src/messenger/index.d.ts +32 -32
  33. package/dist/src/platform-contact/schema.d.ts +30 -0
  34. package/dist/src/platform-contact/schema.d.ts.map +1 -0
  35. package/dist/src/telephony-cdr/index.d.ts +60 -68
  36. package/dist/src/telephony-cdr/index.d.ts.map +1 -1
  37. package/dist/src/telephony-cdr/schema.d.ts +12 -12
  38. package/dist/src/telephony-cdr/validation.d.ts +8 -26
  39. package/dist/src/telephony-cdr/validation.d.ts.map +1 -1
  40. package/dist/src/ticket/index.d.ts +118 -118
  41. package/dist/src/ticket/schema.d.ts +22 -22
  42. package/dist/src/wrap-up-form/index.d.ts +1 -143
  43. package/dist/src/wrap-up-form/index.d.ts.map +1 -1
  44. package/dist/src/wrap-up-form/validation.d.ts +0 -13
  45. package/dist/src/wrap-up-form/validation.d.ts.map +1 -1
  46. package/package.json +1 -1
  47. package/dist/src/instagram/index.d.ts +0 -6643
  48. package/dist/src/instagram/index.d.ts.map +0 -1
  49. package/dist/src/instagram/schema.d.ts +0 -2
  50. package/dist/src/instagram/schema.d.ts.map +0 -1
  51. package/dist/src/instagram/validation.d.ts +0 -109
  52. package/dist/src/instagram/validation.d.ts.map +0 -1
@@ -0,0 +1,216 @@
1
+ import z from 'zod';
2
+ export declare const serverContract: {
3
+ create: {
4
+ body: null;
5
+ summary: "Register a new mail server";
6
+ method: "POST";
7
+ responses: {
8
+ 401: z.ZodObject<{
9
+ message: z.ZodString;
10
+ error: z.ZodAny;
11
+ }, "strip", z.ZodTypeAny, {
12
+ message: string;
13
+ error?: any;
14
+ }, {
15
+ message: string;
16
+ error?: any;
17
+ }>;
18
+ 404: z.ZodObject<{
19
+ message: z.ZodString;
20
+ error: z.ZodAny;
21
+ }, "strip", z.ZodTypeAny, {
22
+ message: string;
23
+ error?: any;
24
+ }, {
25
+ message: string;
26
+ error?: any;
27
+ }>;
28
+ 422: z.ZodObject<{
29
+ message: z.ZodString;
30
+ error: z.ZodAny;
31
+ }, "strip", z.ZodTypeAny, {
32
+ message: string;
33
+ error?: any;
34
+ }, {
35
+ message: string;
36
+ error?: any;
37
+ }>;
38
+ 200: z.ZodObject<{
39
+ requestId: z.ZodString;
40
+ message: z.ZodString;
41
+ }, "strip", z.ZodTypeAny, {
42
+ message: string;
43
+ requestId: string;
44
+ }, {
45
+ message: string;
46
+ requestId: string;
47
+ }>;
48
+ };
49
+ path: "/server/";
50
+ };
51
+ get: {
52
+ summary: "Get a mail server by id";
53
+ method: "GET";
54
+ pathParams: z.ZodObject<{
55
+ id: z.ZodString;
56
+ }, "strip", z.ZodTypeAny, {
57
+ id: string;
58
+ }, {
59
+ id: string;
60
+ }>;
61
+ responses: {
62
+ 401: z.ZodObject<{
63
+ message: z.ZodString;
64
+ error: z.ZodAny;
65
+ }, "strip", z.ZodTypeAny, {
66
+ message: string;
67
+ error?: any;
68
+ }, {
69
+ message: string;
70
+ error?: any;
71
+ }>;
72
+ 404: z.ZodObject<{
73
+ message: z.ZodString;
74
+ error: z.ZodAny;
75
+ }, "strip", z.ZodTypeAny, {
76
+ message: string;
77
+ error?: any;
78
+ }, {
79
+ message: string;
80
+ error?: any;
81
+ }>;
82
+ 422: z.ZodObject<{
83
+ message: z.ZodString;
84
+ error: z.ZodAny;
85
+ }, "strip", z.ZodTypeAny, {
86
+ message: string;
87
+ error?: any;
88
+ }, {
89
+ message: string;
90
+ error?: any;
91
+ }>;
92
+ 200: z.ZodObject<{
93
+ requestId: z.ZodString;
94
+ message: z.ZodString;
95
+ }, "strip", z.ZodTypeAny, {
96
+ message: string;
97
+ requestId: string;
98
+ }, {
99
+ message: string;
100
+ requestId: string;
101
+ }>;
102
+ };
103
+ path: "/server/:id";
104
+ };
105
+ update: {
106
+ body: null;
107
+ summary: "Update a mail server by id";
108
+ method: "PATCH";
109
+ pathParams: z.ZodObject<{
110
+ id: z.ZodString;
111
+ }, "strip", z.ZodTypeAny, {
112
+ id: string;
113
+ }, {
114
+ id: string;
115
+ }>;
116
+ responses: {
117
+ 401: z.ZodObject<{
118
+ message: z.ZodString;
119
+ error: z.ZodAny;
120
+ }, "strip", z.ZodTypeAny, {
121
+ message: string;
122
+ error?: any;
123
+ }, {
124
+ message: string;
125
+ error?: any;
126
+ }>;
127
+ 404: z.ZodObject<{
128
+ message: z.ZodString;
129
+ error: z.ZodAny;
130
+ }, "strip", z.ZodTypeAny, {
131
+ message: string;
132
+ error?: any;
133
+ }, {
134
+ message: string;
135
+ error?: any;
136
+ }>;
137
+ 422: z.ZodObject<{
138
+ message: z.ZodString;
139
+ error: z.ZodAny;
140
+ }, "strip", z.ZodTypeAny, {
141
+ message: string;
142
+ error?: any;
143
+ }, {
144
+ message: string;
145
+ error?: any;
146
+ }>;
147
+ 200: z.ZodObject<{
148
+ requestId: z.ZodString;
149
+ message: z.ZodString;
150
+ }, "strip", z.ZodTypeAny, {
151
+ message: string;
152
+ requestId: string;
153
+ }, {
154
+ message: string;
155
+ requestId: string;
156
+ }>;
157
+ };
158
+ path: "/server/:id";
159
+ };
160
+ delete: {
161
+ body: null;
162
+ summary: "Delete a mail server by id";
163
+ method: "PATCH";
164
+ pathParams: z.ZodObject<{
165
+ id: z.ZodString;
166
+ }, "strip", z.ZodTypeAny, {
167
+ id: string;
168
+ }, {
169
+ id: string;
170
+ }>;
171
+ responses: {
172
+ 401: z.ZodObject<{
173
+ message: z.ZodString;
174
+ error: z.ZodAny;
175
+ }, "strip", z.ZodTypeAny, {
176
+ message: string;
177
+ error?: any;
178
+ }, {
179
+ message: string;
180
+ error?: any;
181
+ }>;
182
+ 404: z.ZodObject<{
183
+ message: z.ZodString;
184
+ error: z.ZodAny;
185
+ }, "strip", z.ZodTypeAny, {
186
+ message: string;
187
+ error?: any;
188
+ }, {
189
+ message: string;
190
+ error?: any;
191
+ }>;
192
+ 422: z.ZodObject<{
193
+ message: z.ZodString;
194
+ error: z.ZodAny;
195
+ }, "strip", z.ZodTypeAny, {
196
+ message: string;
197
+ error?: any;
198
+ }, {
199
+ message: string;
200
+ error?: any;
201
+ }>;
202
+ 200: z.ZodObject<{
203
+ requestId: z.ZodString;
204
+ message: z.ZodString;
205
+ }, "strip", z.ZodTypeAny, {
206
+ message: string;
207
+ requestId: string;
208
+ }, {
209
+ message: string;
210
+ requestId: string;
211
+ }>;
212
+ };
213
+ path: "/server/:id";
214
+ };
215
+ };
216
+ //# sourceMappingURL=mail-server.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mail-server.d.ts","sourceRoot":"","sources":["../../../src/mail/mail-server.ts"],"names":[],"mappings":"AACA,OAAO,CAAC,MAAM,KAAK,CAAC;AAMpB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+D1B,CAAC"}
@@ -1928,7 +1928,6 @@ export declare const roomContract: {
1928
1928
  phone: string | null;
1929
1929
  notification_count: number | null;
1930
1930
  };
1931
- resolved: boolean;
1932
1931
  assigneeId: string | null;
1933
1932
  subject: string;
1934
1933
  from: {
@@ -1963,6 +1962,7 @@ export declare const roomContract: {
1963
1962
  updatedAt: Date;
1964
1963
  deletedAt: Date | null;
1965
1964
  }[];
1965
+ resolved: boolean;
1966
1966
  mailId: string;
1967
1967
  lastMessageId: string;
1968
1968
  firstMessageId: string;
@@ -2338,7 +2338,6 @@ export declare const roomContract: {
2338
2338
  phone: string | null;
2339
2339
  notification_count: number | null;
2340
2340
  };
2341
- resolved: boolean;
2342
2341
  assigneeId: string | null;
2343
2342
  subject: string;
2344
2343
  from: {
@@ -2373,6 +2372,7 @@ export declare const roomContract: {
2373
2372
  updatedAt: Date;
2374
2373
  deletedAt: Date | null;
2375
2374
  }[];
2375
+ resolved: boolean;
2376
2376
  mailId: string;
2377
2377
  lastMessageId: string;
2378
2378
  firstMessageId: string;
@@ -2753,7 +2753,6 @@ export declare const roomContract: {
2753
2753
  phone: string | null;
2754
2754
  notification_count: number | null;
2755
2755
  };
2756
- resolved: boolean;
2757
2756
  assigneeId: string | null;
2758
2757
  subject: string;
2759
2758
  from: {
@@ -2788,6 +2787,7 @@ export declare const roomContract: {
2788
2787
  updatedAt: Date;
2789
2788
  deletedAt: Date | null;
2790
2789
  }[];
2790
+ resolved: boolean;
2791
2791
  mailId: string;
2792
2792
  lastMessageId: string;
2793
2793
  firstMessageId: string;
@@ -3169,7 +3169,6 @@ export declare const roomContract: {
3169
3169
  phone: string | null;
3170
3170
  notification_count: number | null;
3171
3171
  };
3172
- resolved: boolean;
3173
3172
  assigneeId: string | null;
3174
3173
  subject: string;
3175
3174
  from: {
@@ -3204,6 +3203,7 @@ export declare const roomContract: {
3204
3203
  updatedAt: Date;
3205
3204
  deletedAt: Date | null;
3206
3205
  }[];
3206
+ resolved: boolean;
3207
3207
  mailId: string;
3208
3208
  lastMessageId: string;
3209
3209
  firstMessageId: string;
@@ -5355,7 +5355,6 @@ export declare const roomContract: {
5355
5355
  phone: string | null;
5356
5356
  notification_count: number | null;
5357
5357
  };
5358
- resolved: boolean;
5359
5358
  assigneeId: string | null;
5360
5359
  subject: string;
5361
5360
  from: {
@@ -5390,6 +5389,7 @@ export declare const roomContract: {
5390
5389
  updatedAt: Date;
5391
5390
  deletedAt: Date | null;
5392
5391
  }[];
5392
+ resolved: boolean;
5393
5393
  mailId: string;
5394
5394
  lastMessageId: string;
5395
5395
  firstMessageId: string;
@@ -5765,7 +5765,6 @@ export declare const roomContract: {
5765
5765
  phone: string | null;
5766
5766
  notification_count: number | null;
5767
5767
  };
5768
- resolved: boolean;
5769
5768
  assigneeId: string | null;
5770
5769
  subject: string;
5771
5770
  from: {
@@ -5800,6 +5799,7 @@ export declare const roomContract: {
5800
5799
  updatedAt: Date;
5801
5800
  deletedAt: Date | null;
5802
5801
  }[];
5802
+ resolved: boolean;
5803
5803
  mailId: string;
5804
5804
  lastMessageId: string;
5805
5805
  firstMessageId: string;
@@ -6177,7 +6177,6 @@ export declare const roomContract: {
6177
6177
  phone: string | null;
6178
6178
  notification_count: number | null;
6179
6179
  };
6180
- resolved: boolean;
6181
6180
  assigneeId: string | null;
6182
6181
  subject: string;
6183
6182
  from: {
@@ -6212,6 +6211,7 @@ export declare const roomContract: {
6212
6211
  updatedAt: Date;
6213
6212
  deletedAt: Date | null;
6214
6213
  }[];
6214
+ resolved: boolean;
6215
6215
  mailId: string;
6216
6216
  lastMessageId: string;
6217
6217
  firstMessageId: string;
@@ -6590,7 +6590,6 @@ export declare const roomContract: {
6590
6590
  phone: string | null;
6591
6591
  notification_count: number | null;
6592
6592
  };
6593
- resolved: boolean;
6594
6593
  assigneeId: string | null;
6595
6594
  subject: string;
6596
6595
  from: {
@@ -6625,6 +6624,7 @@ export declare const roomContract: {
6625
6624
  updatedAt: Date;
6626
6625
  deletedAt: Date | null;
6627
6626
  }[];
6627
+ resolved: boolean;
6628
6628
  mailId: string;
6629
6629
  lastMessageId: string;
6630
6630
  firstMessageId: string;
@@ -9052,7 +9052,6 @@ export declare const roomContract: {
9052
9052
  phone: string | null;
9053
9053
  notification_count: number | null;
9054
9054
  };
9055
- resolved: boolean;
9056
9055
  assigneeId: string | null;
9057
9056
  subject: string;
9058
9057
  from: {
@@ -9087,6 +9086,7 @@ export declare const roomContract: {
9087
9086
  updatedAt: Date;
9088
9087
  deletedAt: Date | null;
9089
9088
  }[];
9089
+ resolved: boolean;
9090
9090
  mailId: string;
9091
9091
  lastMessageId: string;
9092
9092
  firstMessageId: string;
@@ -9462,7 +9462,6 @@ export declare const roomContract: {
9462
9462
  phone: string | null;
9463
9463
  notification_count: number | null;
9464
9464
  };
9465
- resolved: boolean;
9466
9465
  assigneeId: string | null;
9467
9466
  subject: string;
9468
9467
  from: {
@@ -9497,6 +9496,7 @@ export declare const roomContract: {
9497
9496
  updatedAt: Date;
9498
9497
  deletedAt: Date | null;
9499
9498
  }[];
9499
+ resolved: boolean;
9500
9500
  mailId: string;
9501
9501
  lastMessageId: string;
9502
9502
  firstMessageId: string;
@@ -9874,7 +9874,6 @@ export declare const roomContract: {
9874
9874
  phone: string | null;
9875
9875
  notification_count: number | null;
9876
9876
  };
9877
- resolved: boolean;
9878
9877
  assigneeId: string | null;
9879
9878
  subject: string;
9880
9879
  from: {
@@ -9909,6 +9908,7 @@ export declare const roomContract: {
9909
9908
  updatedAt: Date;
9910
9909
  deletedAt: Date | null;
9911
9910
  }[];
9911
+ resolved: boolean;
9912
9912
  mailId: string;
9913
9913
  lastMessageId: string;
9914
9914
  firstMessageId: string;
@@ -10287,7 +10287,6 @@ export declare const roomContract: {
10287
10287
  phone: string | null;
10288
10288
  notification_count: number | null;
10289
10289
  };
10290
- resolved: boolean;
10291
10290
  assigneeId: string | null;
10292
10291
  subject: string;
10293
10292
  from: {
@@ -10322,6 +10321,7 @@ export declare const roomContract: {
10322
10321
  updatedAt: Date;
10323
10322
  deletedAt: Date | null;
10324
10323
  }[];
10324
+ resolved: boolean;
10325
10325
  mailId: string;
10326
10326
  lastMessageId: string;
10327
10327
  firstMessageId: string;
@@ -1846,7 +1846,6 @@ export declare const RoomContractsValidationSchema: {
1846
1846
  phone: string | null;
1847
1847
  notification_count: number | null;
1848
1848
  };
1849
- resolved: boolean;
1850
1849
  assigneeId: string | null;
1851
1850
  subject: string;
1852
1851
  from: {
@@ -1881,6 +1880,7 @@ export declare const RoomContractsValidationSchema: {
1881
1880
  updatedAt: Date;
1882
1881
  deletedAt: Date | null;
1883
1882
  }[];
1883
+ resolved: boolean;
1884
1884
  mailId: string;
1885
1885
  lastMessageId: string;
1886
1886
  firstMessageId: string;
@@ -2256,7 +2256,6 @@ export declare const RoomContractsValidationSchema: {
2256
2256
  phone: string | null;
2257
2257
  notification_count: number | null;
2258
2258
  };
2259
- resolved: boolean;
2260
2259
  assigneeId: string | null;
2261
2260
  subject: string;
2262
2261
  from: {
@@ -2291,6 +2290,7 @@ export declare const RoomContractsValidationSchema: {
2291
2290
  updatedAt: Date;
2292
2291
  deletedAt: Date | null;
2293
2292
  }[];
2293
+ resolved: boolean;
2294
2294
  mailId: string;
2295
2295
  lastMessageId: string;
2296
2296
  firstMessageId: string;
@@ -2671,7 +2671,6 @@ export declare const RoomContractsValidationSchema: {
2671
2671
  phone: string | null;
2672
2672
  notification_count: number | null;
2673
2673
  };
2674
- resolved: boolean;
2675
2674
  assigneeId: string | null;
2676
2675
  subject: string;
2677
2676
  from: {
@@ -2706,6 +2705,7 @@ export declare const RoomContractsValidationSchema: {
2706
2705
  updatedAt: Date;
2707
2706
  deletedAt: Date | null;
2708
2707
  }[];
2708
+ resolved: boolean;
2709
2709
  mailId: string;
2710
2710
  lastMessageId: string;
2711
2711
  firstMessageId: string;
@@ -3086,7 +3086,6 @@ export declare const RoomContractsValidationSchema: {
3086
3086
  phone: string | null;
3087
3087
  notification_count: number | null;
3088
3088
  };
3089
- resolved: boolean;
3090
3089
  assigneeId: string | null;
3091
3090
  subject: string;
3092
3091
  from: {
@@ -3121,6 +3120,7 @@ export declare const RoomContractsValidationSchema: {
3121
3120
  updatedAt: Date;
3122
3121
  deletedAt: Date | null;
3123
3122
  }[];
3123
+ resolved: boolean;
3124
3124
  mailId: string;
3125
3125
  lastMessageId: string;
3126
3126
  firstMessageId: string;
@@ -1899,7 +1899,6 @@ export declare const MailRoomSchema: z.ZodObject<{
1899
1899
  phone: string | null;
1900
1900
  notification_count: number | null;
1901
1901
  };
1902
- resolved: boolean;
1903
1902
  assigneeId: string | null;
1904
1903
  subject: string;
1905
1904
  from: {
@@ -1934,6 +1933,7 @@ export declare const MailRoomSchema: z.ZodObject<{
1934
1933
  updatedAt: Date;
1935
1934
  deletedAt: Date | null;
1936
1935
  }[];
1936
+ resolved: boolean;
1937
1937
  mailId: string;
1938
1938
  lastMessageId: string;
1939
1939
  firstMessageId: string;
@@ -2309,7 +2309,6 @@ export declare const MailRoomSchema: z.ZodObject<{
2309
2309
  phone: string | null;
2310
2310
  notification_count: number | null;
2311
2311
  };
2312
- resolved: boolean;
2313
2312
  assigneeId: string | null;
2314
2313
  subject: string;
2315
2314
  from: {
@@ -2344,6 +2343,7 @@ export declare const MailRoomSchema: z.ZodObject<{
2344
2343
  updatedAt: Date;
2345
2344
  deletedAt: Date | null;
2346
2345
  }[];
2346
+ resolved: boolean;
2347
2347
  mailId: string;
2348
2348
  lastMessageId: string;
2349
2349
  firstMessageId: string;