@kl1/contracts 1.0.52 → 1.0.54

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 (50) hide show
  1. package/dist/index.js +1298 -1133
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +1296 -1133
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/src/channel/index.d.ts +2273 -1438
  6. package/dist/src/channel/index.d.ts.map +1 -1
  7. package/dist/src/chat/index.d.ts +6678 -1560
  8. package/dist/src/chat/index.d.ts.map +1 -1
  9. package/dist/src/chat/schema.d.ts +180 -180
  10. package/dist/src/chat/validation.d.ts +371 -440
  11. package/dist/src/chat/validation.d.ts.map +1 -1
  12. package/dist/src/comment/index.d.ts +3026 -1010
  13. package/dist/src/comment/index.d.ts.map +1 -1
  14. package/dist/src/comment/schema.d.ts +780 -188
  15. package/dist/src/comment/schema.d.ts.map +1 -1
  16. package/dist/src/contact/index.d.ts +296 -296
  17. package/dist/src/contact/schema.d.ts +20 -20
  18. package/dist/src/contact/validation.d.ts +150 -150
  19. package/dist/src/contract.d.ts +20591 -8915
  20. package/dist/src/contract.d.ts.map +1 -1
  21. package/dist/src/cx-log/index.d.ts +240 -240
  22. package/dist/src/cx-log/schema.d.ts +180 -180
  23. package/dist/src/index.d.ts +2 -0
  24. package/dist/src/index.d.ts.map +1 -1
  25. package/dist/src/instagram/index.d.ts +100 -100
  26. package/dist/src/line/index.d.ts +301 -6
  27. package/dist/src/line/index.d.ts.map +1 -1
  28. package/dist/src/line/schema.d.ts +301 -6
  29. package/dist/src/line/schema.d.ts.map +1 -1
  30. package/dist/src/messenger/index.d.ts +100 -100
  31. package/dist/src/telephony-cdr/index.d.ts +180 -180
  32. package/dist/src/telephony-cdr/schema.d.ts +40 -40
  33. package/dist/src/ticket/index.d.ts +4128 -1040
  34. package/dist/src/ticket/index.d.ts.map +1 -1
  35. package/dist/src/ticket/schema.d.ts +512 -40
  36. package/dist/src/ticket/schema.d.ts.map +1 -1
  37. package/dist/src/{mail/mail-server.d.ts → upload/index.d.ts} +72 -91
  38. package/dist/src/upload/index.d.ts.map +1 -0
  39. package/dist/src/upload/schema.d.ts +14 -0
  40. package/dist/src/upload/schema.d.ts.map +1 -1
  41. package/dist/src/upload/validation.d.ts +2 -0
  42. package/dist/src/upload/validation.d.ts.map +1 -0
  43. package/dist/src/user-presence-status-log/index.d.ts +63 -0
  44. package/dist/src/user-presence-status-log/index.d.ts.map +1 -1
  45. package/package.json +1 -1
  46. package/dist/src/app/index.d.ts +0 -17
  47. package/dist/src/app/index.d.ts.map +0 -1
  48. package/dist/src/mail/mail-server.d.ts.map +0 -1
  49. package/dist/src/platform-contact/schema.d.ts +0 -30
  50. package/dist/src/platform-contact/schema.d.ts.map +0 -1
@@ -1,64 +1,57 @@
1
1
  import z from 'zod';
2
- export declare const serverContract: {
3
- create: {
4
- body: null;
5
- summary: "Register a new mail server";
2
+ import { DeleteAttachmentSchema, RenameAttachmentSchema } from './schema';
3
+ export type RenameAttachmentRequest = z.infer<typeof RenameAttachmentSchema>;
4
+ export type DeleteAttachmentRequest = z.infer<typeof DeleteAttachmentSchema>;
5
+ export declare const uploadContract: {
6
+ rename: {
7
+ body: z.ZodObject<{
8
+ newName: z.ZodString;
9
+ }, "strip", z.ZodTypeAny, {
10
+ newName: string;
11
+ }, {
12
+ newName: string;
13
+ }>;
14
+ summary: "Rename an attachment name";
6
15
  method: "POST";
16
+ pathParams: z.ZodObject<{
17
+ id: z.ZodString;
18
+ }, "strip", z.ZodTypeAny, {
19
+ id: string;
20
+ }, {
21
+ id: string;
22
+ }>;
7
23
  responses: {
8
- 401: z.ZodObject<{
24
+ 201: z.ZodObject<{
25
+ requestId: z.ZodString;
9
26
  message: z.ZodString;
10
- error: z.ZodAny;
11
27
  }, "strip", z.ZodTypeAny, {
12
28
  message: string;
13
- error?: any;
29
+ requestId: string;
14
30
  }, {
15
31
  message: string;
16
- error?: any;
32
+ requestId: string;
17
33
  }>;
18
- 404: z.ZodObject<{
34
+ 400: z.ZodObject<{
19
35
  message: z.ZodString;
20
- error: z.ZodAny;
21
36
  }, "strip", z.ZodTypeAny, {
22
37
  message: string;
23
- error?: any;
24
38
  }, {
25
39
  message: string;
26
- error?: any;
27
40
  }>;
28
- 422: z.ZodObject<{
41
+ 409: z.ZodObject<{
29
42
  message: z.ZodString;
30
- error: z.ZodAny;
31
43
  }, "strip", z.ZodTypeAny, {
32
44
  message: string;
33
- error?: any;
34
45
  }, {
35
46
  message: string;
36
- error?: any;
37
47
  }>;
38
- 200: z.ZodObject<{
39
- requestId: z.ZodString;
48
+ 500: z.ZodObject<{
40
49
  message: z.ZodString;
41
50
  }, "strip", z.ZodTypeAny, {
42
51
  message: string;
43
- requestId: string;
44
52
  }, {
45
53
  message: string;
46
- requestId: string;
47
54
  }>;
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
55
  401: z.ZodObject<{
63
56
  message: z.ZodString;
64
57
  error: z.ZodAny;
@@ -89,23 +82,29 @@ export declare const serverContract: {
89
82
  message: string;
90
83
  error?: any;
91
84
  }>;
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
85
  };
103
- path: "/server/:id";
86
+ path: "/upload/:id/rename";
87
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
88
+ 'x-tenant': z.ZodString;
89
+ authorization: z.ZodString;
90
+ 'x-code': z.ZodOptional<z.ZodString>;
91
+ 'x-client-timezone': z.ZodDefault<z.ZodString>;
92
+ }, "strip", z.ZodTypeAny, {
93
+ 'x-tenant': string;
94
+ authorization: string;
95
+ 'x-client-timezone': string;
96
+ 'x-code'?: string | undefined;
97
+ }, {
98
+ 'x-tenant': string;
99
+ authorization: string;
100
+ 'x-code'?: string | undefined;
101
+ 'x-client-timezone'?: string | undefined;
102
+ }>>>;
104
103
  };
105
- update: {
104
+ delete: {
106
105
  body: null;
107
- summary: "Update a mail server by id";
108
- method: "PATCH";
106
+ summary: "Delete an attachment";
107
+ method: "DELETE";
109
108
  pathParams: z.ZodObject<{
110
109
  id: z.ZodString;
111
110
  }, "strip", z.ZodTypeAny, {
@@ -114,61 +113,37 @@ export declare const serverContract: {
114
113
  id: string;
115
114
  }>;
116
115
  responses: {
117
- 401: z.ZodObject<{
116
+ 201: z.ZodObject<{
117
+ requestId: z.ZodString;
118
118
  message: z.ZodString;
119
- error: z.ZodAny;
120
119
  }, "strip", z.ZodTypeAny, {
121
120
  message: string;
122
- error?: any;
121
+ requestId: string;
123
122
  }, {
124
123
  message: string;
125
- error?: any;
124
+ requestId: string;
126
125
  }>;
127
- 404: z.ZodObject<{
126
+ 400: z.ZodObject<{
128
127
  message: z.ZodString;
129
- error: z.ZodAny;
130
128
  }, "strip", z.ZodTypeAny, {
131
129
  message: string;
132
- error?: any;
133
130
  }, {
134
131
  message: string;
135
- error?: any;
136
132
  }>;
137
- 422: z.ZodObject<{
133
+ 409: z.ZodObject<{
138
134
  message: z.ZodString;
139
- error: z.ZodAny;
140
135
  }, "strip", z.ZodTypeAny, {
141
136
  message: string;
142
- error?: any;
143
137
  }, {
144
138
  message: string;
145
- error?: any;
146
139
  }>;
147
- 200: z.ZodObject<{
148
- requestId: z.ZodString;
140
+ 500: z.ZodObject<{
149
141
  message: z.ZodString;
150
142
  }, "strip", z.ZodTypeAny, {
151
143
  message: string;
152
- requestId: string;
153
144
  }, {
154
145
  message: string;
155
- requestId: string;
156
146
  }>;
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
147
  401: z.ZodObject<{
173
148
  message: z.ZodString;
174
149
  error: z.ZodAny;
@@ -199,18 +174,24 @@ export declare const serverContract: {
199
174
  message: string;
200
175
  error?: any;
201
176
  }>;
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
177
  };
213
- path: "/server/:id";
178
+ path: "/upload/:id";
179
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
180
+ 'x-tenant': z.ZodString;
181
+ authorization: z.ZodString;
182
+ 'x-code': z.ZodOptional<z.ZodString>;
183
+ 'x-client-timezone': z.ZodDefault<z.ZodString>;
184
+ }, "strip", z.ZodTypeAny, {
185
+ 'x-tenant': string;
186
+ authorization: string;
187
+ 'x-client-timezone': string;
188
+ 'x-code'?: string | undefined;
189
+ }, {
190
+ 'x-tenant': string;
191
+ authorization: string;
192
+ 'x-code'?: string | undefined;
193
+ 'x-client-timezone'?: string | undefined;
194
+ }>>>;
214
195
  };
215
196
  };
216
- //# sourceMappingURL=mail-server.d.ts.map
197
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/upload/index.ts"],"names":[],"mappings":"AAQA,OAAO,CAAC,MAAM,KAAK,CAAC;AACpB,OAAO,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAE1E,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAC7E,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAC7E,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4D1B,CAAC"}
@@ -33,4 +33,18 @@ export declare const UploadSchema: z.ZodObject<{
33
33
  fileUrl: string | null;
34
34
  status?: string | undefined;
35
35
  }>;
36
+ export declare const RenameAttachmentSchema: z.ZodObject<{
37
+ newName: z.ZodString;
38
+ }, "strip", z.ZodTypeAny, {
39
+ newName: string;
40
+ }, {
41
+ newName: string;
42
+ }>;
43
+ export declare const DeleteAttachmentSchema: z.ZodObject<{
44
+ group: z.ZodUnion<[z.ZodLiteral<"ticket">, z.ZodLiteral<"contact">, z.ZodLiteral<"company">]>;
45
+ }, "strip", z.ZodTypeAny, {
46
+ group: "contact" | "ticket" | "company";
47
+ }, {
48
+ group: "contact" | "ticket" | "company";
49
+ }>;
36
50
  //# sourceMappingURL=schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/upload/schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAGpB,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOvB,CAAC"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/upload/schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAGpB,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOvB,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;EAEjC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;EAMjC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=validation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../src/upload/validation.ts"],"names":[],"mappings":""}
@@ -350,5 +350,68 @@ export declare const userPresenceStatusLogContract: {
350
350
  'x-client-timezone'?: string | undefined;
351
351
  }>>>;
352
352
  };
353
+ getExportData: {
354
+ method: "GET";
355
+ query: z.ZodOptional<z.ZodObject<{
356
+ page: z.ZodDefault<z.ZodNumber>;
357
+ pageSize: z.ZodDefault<z.ZodNumber>;
358
+ selectedDate: z.ZodOptional<z.ZodString>;
359
+ }, "strip", z.ZodTypeAny, {
360
+ page: number;
361
+ pageSize: number;
362
+ selectedDate?: string | undefined;
363
+ }, {
364
+ page?: number | undefined;
365
+ pageSize?: number | undefined;
366
+ selectedDate?: string | undefined;
367
+ }>>;
368
+ responses: {
369
+ 200: null;
370
+ 400: z.ZodObject<{
371
+ message: z.ZodString;
372
+ }, "strip", z.ZodTypeAny, {
373
+ message: string;
374
+ }, {
375
+ message: string;
376
+ }>;
377
+ 401: z.ZodObject<{
378
+ message: z.ZodString;
379
+ error: z.ZodAny;
380
+ }, "strip", z.ZodTypeAny, {
381
+ message: string;
382
+ error?: any;
383
+ }, {
384
+ message: string;
385
+ error?: any;
386
+ }>;
387
+ 500: z.ZodObject<{
388
+ message: z.ZodString;
389
+ error: z.ZodAny;
390
+ }, "strip", z.ZodTypeAny, {
391
+ message: string;
392
+ error?: any;
393
+ }, {
394
+ message: string;
395
+ error?: any;
396
+ }>;
397
+ };
398
+ path: "user-presence-status-log/export";
399
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
400
+ 'x-tenant': z.ZodString;
401
+ authorization: z.ZodString;
402
+ 'x-code': z.ZodOptional<z.ZodString>;
403
+ 'x-client-timezone': z.ZodDefault<z.ZodString>;
404
+ }, "strip", z.ZodTypeAny, {
405
+ 'x-tenant': string;
406
+ authorization: string;
407
+ 'x-client-timezone': string;
408
+ 'x-code'?: string | undefined;
409
+ }, {
410
+ 'x-tenant': string;
411
+ authorization: string;
412
+ 'x-code'?: string | undefined;
413
+ 'x-client-timezone'?: string | undefined;
414
+ }>>>;
415
+ };
353
416
  };
354
417
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/user-presence-status-log/index.ts"],"names":[],"mappings":"AACA,OAAO,CAAC,MAAM,KAAK,CAAC;AAOpB,OAAO,EAAE,2BAA2B,EAAE,MAAM,UAAU,CAAC;AACvD,OAAO,EAAE,iCAAiC,EAAE,MAAM,cAAc,CAAC;AAEjE,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CACnD,OAAO,iCAAiC,CACzC,CAAC;AACF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmBzC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/user-presence-status-log/index.ts"],"names":[],"mappings":"AACA,OAAO,CAAC,MAAM,KAAK,CAAC;AAOpB,OAAO,EAAE,2BAA2B,EAAE,MAAM,UAAU,CAAC;AACvD,OAAO,EAAE,iCAAiC,EAAE,MAAM,cAAc,CAAC;AAEjE,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CACnD,OAAO,iCAAiC,CACzC,CAAC;AACF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkCzC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kl1/contracts",
3
- "version": "1.0.52",
3
+ "version": "1.0.54",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/src/index.d.ts",
@@ -1,17 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const appContract: {
3
- getMessage: {
4
- method: "GET";
5
- responses: {
6
- 200: z.ZodObject<{
7
- message: z.ZodString;
8
- }, "strip", z.ZodTypeAny, {
9
- message: string;
10
- }, {
11
- message: string;
12
- }>;
13
- };
14
- path: "/";
15
- };
16
- };
17
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/app/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;CAQtB,CAAC"}
@@ -1 +0,0 @@
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"}
@@ -1,30 +0,0 @@
1
- import z from 'zod';
2
- export declare const PlatformContactSchema: z.ZodObject<{
3
- id: z.ZodString;
4
- createdAt: z.ZodDate;
5
- updatedAt: z.ZodDate;
6
- deletedAt: z.ZodNullable<z.ZodDate>;
7
- contactId: z.ZodString;
8
- channelId: z.ZodString;
9
- config: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
10
- type: z.ZodString;
11
- }, "strip", z.ZodTypeAny, {
12
- type: string;
13
- id: string;
14
- createdAt: Date;
15
- updatedAt: Date;
16
- deletedAt: Date | null;
17
- contactId: string;
18
- channelId: string;
19
- config: {};
20
- }, {
21
- type: string;
22
- id: string;
23
- createdAt: Date;
24
- updatedAt: Date;
25
- deletedAt: Date | null;
26
- contactId: string;
27
- channelId: string;
28
- config: {};
29
- }>;
30
- //# sourceMappingURL=schema.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/platform-contact/schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAMpB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKhC,CAAC"}