@kl1/contracts 1.0.66 → 1.0.68

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/dist/index.js +2328 -2331
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +2328 -2331
  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/call-log/schema.d.ts +4 -4
  8. package/dist/src/call-log/validation.d.ts +2 -2
  9. package/dist/src/channel/index.d.ts +67 -707
  10. package/dist/src/channel/index.d.ts.map +1 -1
  11. package/dist/src/channel/validation.d.ts +19 -0
  12. package/dist/src/channel/validation.d.ts.map +1 -1
  13. package/dist/src/chat/index.d.ts +600 -600
  14. package/dist/src/chat/schema.d.ts +74 -74
  15. package/dist/src/chat/validation.d.ts +128 -128
  16. package/dist/src/comment/index.d.ts +609 -609
  17. package/dist/src/comment/schema.d.ts +144 -144
  18. package/dist/src/contract.d.ts +3401 -4062
  19. package/dist/src/contract.d.ts.map +1 -1
  20. package/dist/src/cx-log/index.d.ts +90 -90
  21. package/dist/src/cx-log/schema.d.ts +62 -62
  22. package/dist/src/dashboard/index.d.ts +16 -31
  23. package/dist/src/dashboard/index.d.ts.map +1 -1
  24. package/dist/src/dashboard/schema.d.ts +6 -15
  25. package/dist/src/dashboard/schema.d.ts.map +1 -1
  26. package/dist/src/instagram/index.d.ts +78 -78
  27. package/dist/src/line/index.d.ts +96 -96
  28. package/dist/src/line/schema.d.ts +19 -19
  29. package/dist/src/line/schema.d.ts.map +1 -1
  30. package/dist/src/mail/mail-contract.d.ts +24 -24
  31. package/dist/src/mail/mail-server.d.ts +216 -0
  32. package/dist/src/mail/mail-server.d.ts.map +1 -0
  33. package/dist/src/mail/room-contract.d.ts +24 -24
  34. package/dist/src/mail/schemas/room-validation.schema.d.ts +8 -8
  35. package/dist/src/mail/schemas/room.schema.d.ts +4 -4
  36. package/dist/src/messenger/index.d.ts +78 -78
  37. package/dist/src/platform-contact/schema.d.ts +30 -0
  38. package/dist/src/platform-contact/schema.d.ts.map +1 -0
  39. package/dist/src/telephony-cdr/index.d.ts +38 -38
  40. package/dist/src/telephony-cdr/schema.d.ts +6 -6
  41. package/dist/src/telephony-cdr/validation.d.ts +5 -5
  42. package/dist/src/telephony-cdr/validation.d.ts.map +1 -1
  43. package/dist/src/ticket/index.d.ts +1084 -1084
  44. package/dist/src/ticket/schema.d.ts +72 -72
  45. package/dist/src/ticket/validation.d.ts +12 -12
  46. package/dist/src/user-presence-status-log/index.d.ts +4 -9
  47. package/dist/src/user-presence-status-log/index.d.ts.map +1 -1
  48. package/dist/src/user-presence-status-log/validation.d.ts +7 -0
  49. package/dist/src/user-presence-status-log/validation.d.ts.map +1 -1
  50. package/dist/src/wrap-up-form/index.d.ts +19 -19
  51. package/dist/src/wrap-up-form/schema.d.ts +2 -2
  52. package/dist/src/wrap-up-form/validation.d.ts +3 -3
  53. package/package.json +1 -1
@@ -1,11 +1,11 @@
1
1
  import z from 'zod';
2
- export declare const ConnectLineSchema: z.ZodObject<{
3
- lineId: z.ZodOptional<z.ZodString>;
2
+ export declare const ConnectLineService: z.ZodObject<{
3
+ name: z.ZodString;
4
4
  accessToken: z.ZodOptional<z.ZodString>;
5
- lineSecret: z.ZodOptional<z.ZodString>;
6
5
  brandName: z.ZodOptional<z.ZodString>;
7
- name: z.ZodOptional<z.ZodString>;
8
- actor: z.ZodObject<{
6
+ lineId: z.ZodOptional<z.ZodString>;
7
+ lineSecret: z.ZodOptional<z.ZodString>;
8
+ actor: z.ZodOptional<z.ZodObject<{
9
9
  id: z.ZodString;
10
10
  createdAt: z.ZodDate;
11
11
  updatedAt: z.ZodDate;
@@ -208,9 +208,14 @@ export declare const ConnectLineSchema: z.ZodObject<{
208
208
  extensionName: string;
209
209
  telephonySignature: string | null;
210
210
  };
211
- }>;
211
+ }>>;
212
212
  }, "strip", z.ZodTypeAny, {
213
- actor: {
213
+ name: string;
214
+ accessToken?: string | undefined;
215
+ brandName?: string | undefined;
216
+ lineId?: string | undefined;
217
+ lineSecret?: string | undefined;
218
+ actor?: {
214
219
  id: string;
215
220
  address: string | null;
216
221
  name: string;
@@ -253,14 +258,14 @@ export declare const ConnectLineSchema: z.ZodObject<{
253
258
  extensionName: string;
254
259
  telephonySignature: string | null;
255
260
  };
256
- };
257
- lineId?: string | undefined;
261
+ } | undefined;
262
+ }, {
263
+ name: string;
258
264
  accessToken?: string | undefined;
259
- lineSecret?: string | undefined;
260
265
  brandName?: string | undefined;
261
- name?: string | undefined;
262
- }, {
263
- actor: {
266
+ lineId?: string | undefined;
267
+ lineSecret?: string | undefined;
268
+ actor?: {
264
269
  id: string;
265
270
  address: string | null;
266
271
  name: string;
@@ -303,11 +308,6 @@ export declare const ConnectLineSchema: z.ZodObject<{
303
308
  extensionName: string;
304
309
  telephonySignature: string | null;
305
310
  };
306
- };
307
- lineId?: string | undefined;
308
- accessToken?: string | undefined;
309
- lineSecret?: string | undefined;
310
- brandName?: string | undefined;
311
- name?: string | undefined;
311
+ } | undefined;
312
312
  }>;
313
313
  //# sourceMappingURL=schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/line/schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAGpB,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAO5B,CAAC"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/line/schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAIpB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE7B,CAAA"}
@@ -1841,7 +1841,7 @@ export declare const mailContract: {
1841
1841
  updatedAt: Date;
1842
1842
  deletedAt: Date | null;
1843
1843
  }[];
1844
- note: string;
1844
+ resolved: boolean;
1845
1845
  lastMessage: {
1846
1846
  id: string;
1847
1847
  direction: string;
@@ -1928,7 +1928,7 @@ export declare const mailContract: {
1928
1928
  phone: string | null;
1929
1929
  notification_count: number | null;
1930
1930
  };
1931
- resolved: boolean;
1931
+ note: string;
1932
1932
  assigneeId: string | null;
1933
1933
  subject: string;
1934
1934
  from: {
@@ -2251,7 +2251,7 @@ export declare const mailContract: {
2251
2251
  updatedAt: Date;
2252
2252
  deletedAt: Date | null;
2253
2253
  }[];
2254
- note: string;
2254
+ resolved: boolean;
2255
2255
  lastMessage: {
2256
2256
  id: string;
2257
2257
  direction: string;
@@ -2338,7 +2338,7 @@ export declare const mailContract: {
2338
2338
  phone: string | null;
2339
2339
  notification_count: number | null;
2340
2340
  };
2341
- resolved: boolean;
2341
+ note: string;
2342
2342
  assigneeId: string | null;
2343
2343
  subject: string;
2344
2344
  from: {
@@ -2666,7 +2666,7 @@ export declare const mailContract: {
2666
2666
  updatedAt: Date;
2667
2667
  deletedAt: Date | null;
2668
2668
  }[];
2669
- note: string;
2669
+ resolved: boolean;
2670
2670
  lastMessage: {
2671
2671
  id: string;
2672
2672
  direction: string;
@@ -2753,7 +2753,7 @@ export declare const mailContract: {
2753
2753
  phone: string | null;
2754
2754
  notification_count: number | null;
2755
2755
  };
2756
- resolved: boolean;
2756
+ note: string;
2757
2757
  assigneeId: string | null;
2758
2758
  subject: string;
2759
2759
  from: {
@@ -3082,7 +3082,7 @@ export declare const mailContract: {
3082
3082
  updatedAt: Date;
3083
3083
  deletedAt: Date | null;
3084
3084
  }[];
3085
- note: string;
3085
+ resolved: boolean;
3086
3086
  lastMessage: {
3087
3087
  id: string;
3088
3088
  direction: string;
@@ -3169,7 +3169,7 @@ export declare const mailContract: {
3169
3169
  phone: string | null;
3170
3170
  notification_count: number | null;
3171
3171
  };
3172
- resolved: boolean;
3172
+ note: string;
3173
3173
  assigneeId: string | null;
3174
3174
  subject: string;
3175
3175
  from: {
@@ -5268,7 +5268,7 @@ export declare const mailContract: {
5268
5268
  updatedAt: Date;
5269
5269
  deletedAt: Date | null;
5270
5270
  }[];
5271
- note: string;
5271
+ resolved: boolean;
5272
5272
  lastMessage: {
5273
5273
  id: string;
5274
5274
  direction: string;
@@ -5355,7 +5355,7 @@ export declare const mailContract: {
5355
5355
  phone: string | null;
5356
5356
  notification_count: number | null;
5357
5357
  };
5358
- resolved: boolean;
5358
+ note: string;
5359
5359
  assigneeId: string | null;
5360
5360
  subject: string;
5361
5361
  from: {
@@ -5678,7 +5678,7 @@ export declare const mailContract: {
5678
5678
  updatedAt: Date;
5679
5679
  deletedAt: Date | null;
5680
5680
  }[];
5681
- note: string;
5681
+ resolved: boolean;
5682
5682
  lastMessage: {
5683
5683
  id: string;
5684
5684
  direction: string;
@@ -5765,7 +5765,7 @@ export declare const mailContract: {
5765
5765
  phone: string | null;
5766
5766
  notification_count: number | null;
5767
5767
  };
5768
- resolved: boolean;
5768
+ note: string;
5769
5769
  assigneeId: string | null;
5770
5770
  subject: string;
5771
5771
  from: {
@@ -6090,7 +6090,7 @@ export declare const mailContract: {
6090
6090
  updatedAt: Date;
6091
6091
  deletedAt: Date | null;
6092
6092
  }[];
6093
- note: string;
6093
+ resolved: boolean;
6094
6094
  lastMessage: {
6095
6095
  id: string;
6096
6096
  direction: string;
@@ -6177,7 +6177,7 @@ export declare const mailContract: {
6177
6177
  phone: string | null;
6178
6178
  notification_count: number | null;
6179
6179
  };
6180
- resolved: boolean;
6180
+ note: string;
6181
6181
  assigneeId: string | null;
6182
6182
  subject: string;
6183
6183
  from: {
@@ -6503,7 +6503,7 @@ export declare const mailContract: {
6503
6503
  updatedAt: Date;
6504
6504
  deletedAt: Date | null;
6505
6505
  }[];
6506
- note: string;
6506
+ resolved: boolean;
6507
6507
  lastMessage: {
6508
6508
  id: string;
6509
6509
  direction: string;
@@ -6590,7 +6590,7 @@ export declare const mailContract: {
6590
6590
  phone: string | null;
6591
6591
  notification_count: number | null;
6592
6592
  };
6593
- resolved: boolean;
6593
+ note: string;
6594
6594
  assigneeId: string | null;
6595
6595
  subject: string;
6596
6596
  from: {
@@ -8965,7 +8965,7 @@ export declare const mailContract: {
8965
8965
  updatedAt: Date;
8966
8966
  deletedAt: Date | null;
8967
8967
  }[];
8968
- note: string;
8968
+ resolved: boolean;
8969
8969
  lastMessage: {
8970
8970
  id: string;
8971
8971
  direction: string;
@@ -9052,7 +9052,7 @@ export declare const mailContract: {
9052
9052
  phone: string | null;
9053
9053
  notification_count: number | null;
9054
9054
  };
9055
- resolved: boolean;
9055
+ note: string;
9056
9056
  assigneeId: string | null;
9057
9057
  subject: string;
9058
9058
  from: {
@@ -9375,7 +9375,7 @@ export declare const mailContract: {
9375
9375
  updatedAt: Date;
9376
9376
  deletedAt: Date | null;
9377
9377
  }[];
9378
- note: string;
9378
+ resolved: boolean;
9379
9379
  lastMessage: {
9380
9380
  id: string;
9381
9381
  direction: string;
@@ -9462,7 +9462,7 @@ export declare const mailContract: {
9462
9462
  phone: string | null;
9463
9463
  notification_count: number | null;
9464
9464
  };
9465
- resolved: boolean;
9465
+ note: string;
9466
9466
  assigneeId: string | null;
9467
9467
  subject: string;
9468
9468
  from: {
@@ -9787,7 +9787,7 @@ export declare const mailContract: {
9787
9787
  updatedAt: Date;
9788
9788
  deletedAt: Date | null;
9789
9789
  }[];
9790
- note: string;
9790
+ resolved: boolean;
9791
9791
  lastMessage: {
9792
9792
  id: string;
9793
9793
  direction: string;
@@ -9874,7 +9874,7 @@ export declare const mailContract: {
9874
9874
  phone: string | null;
9875
9875
  notification_count: number | null;
9876
9876
  };
9877
- resolved: boolean;
9877
+ note: string;
9878
9878
  assigneeId: string | null;
9879
9879
  subject: string;
9880
9880
  from: {
@@ -10200,7 +10200,7 @@ export declare const mailContract: {
10200
10200
  updatedAt: Date;
10201
10201
  deletedAt: Date | null;
10202
10202
  }[];
10203
- note: string;
10203
+ resolved: boolean;
10204
10204
  lastMessage: {
10205
10205
  id: string;
10206
10206
  direction: string;
@@ -10287,7 +10287,7 @@ export declare const mailContract: {
10287
10287
  phone: string | null;
10288
10288
  notification_count: number | null;
10289
10289
  };
10290
- resolved: boolean;
10290
+ note: string;
10291
10291
  assigneeId: string | null;
10292
10292
  subject: string;
10293
10293
  from: {
@@ -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"}