@kl1/contracts 1.0.34 → 1.0.36

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 (79) hide show
  1. package/dist/index.js +1030 -924
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +1029 -924
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/src/activity-log/index.d.ts +17 -10
  6. package/dist/src/activity-log/index.d.ts.map +1 -1
  7. package/dist/src/activity-log/schema.d.ts +17 -10
  8. package/dist/src/activity-log/schema.d.ts.map +1 -1
  9. package/dist/src/auth/index.d.ts +17 -10
  10. package/dist/src/auth/index.d.ts.map +1 -1
  11. package/dist/src/channel/index.d.ts +650 -51
  12. package/dist/src/channel/index.d.ts.map +1 -1
  13. package/dist/src/channel/schema.d.ts +18 -12
  14. package/dist/src/channel/schema.d.ts.map +1 -1
  15. package/dist/src/chat/index.d.ts +12464 -12390
  16. package/dist/src/chat/index.d.ts.map +1 -1
  17. package/dist/src/chat/schema.d.ts +227 -110
  18. package/dist/src/chat/schema.d.ts.map +1 -1
  19. package/dist/src/chat/validation.d.ts +1158 -1545
  20. package/dist/src/chat/validation.d.ts.map +1 -1
  21. package/dist/src/comment/index.d.ts +1128 -491
  22. package/dist/src/comment/index.d.ts.map +1 -1
  23. package/dist/src/comment/schema.d.ts +319 -140
  24. package/dist/src/comment/schema.d.ts.map +1 -1
  25. package/dist/src/contact/index.d.ts +77 -0
  26. package/dist/src/contact/index.d.ts.map +1 -1
  27. package/dist/src/contact/schema.d.ts +16 -0
  28. package/dist/src/contact/schema.d.ts.map +1 -1
  29. package/dist/src/contact/validation.d.ts +63 -0
  30. package/dist/src/contact/validation.d.ts.map +1 -1
  31. package/dist/src/contract.d.ts +28088 -29053
  32. package/dist/src/contract.d.ts.map +1 -1
  33. package/dist/src/cx-log/index.d.ts +243 -72
  34. package/dist/src/cx-log/index.d.ts.map +1 -1
  35. package/dist/src/cx-log/schema.d.ts +193 -56
  36. package/dist/src/cx-log/schema.d.ts.map +1 -1
  37. package/dist/src/extension/index.d.ts +29 -120
  38. package/dist/src/extension/index.d.ts.map +1 -1
  39. package/dist/src/extension/schema.d.ts +3 -0
  40. package/dist/src/extension/schema.d.ts.map +1 -1
  41. package/dist/src/extension/validation.d.ts +6 -0
  42. package/dist/src/extension/validation.d.ts.map +1 -1
  43. package/dist/src/mail/mail-contract.d.ts +7 -0
  44. package/dist/src/mail/mail-contract.d.ts.map +1 -1
  45. package/dist/src/mail/room-contract.d.ts +7 -0
  46. package/dist/src/mail/room-contract.d.ts.map +1 -1
  47. package/dist/src/mail/schemas/room.schema.d.ts +5 -0
  48. package/dist/src/mail/schemas/room.schema.d.ts.map +1 -1
  49. package/dist/src/messenger/index.d.ts +442 -100
  50. package/dist/src/messenger/index.d.ts.map +1 -1
  51. package/dist/src/telephony-agent-presence-status/index.d.ts +57 -34
  52. package/dist/src/telephony-agent-presence-status/index.d.ts.map +1 -1
  53. package/dist/src/telephony-agent-presence-status/schema.d.ts +17 -10
  54. package/dist/src/telephony-agent-presence-status/schema.d.ts.map +1 -1
  55. package/dist/src/telephony-cdr/schema.d.ts +53 -0
  56. package/dist/src/telephony-cdr/schema.d.ts.map +1 -1
  57. package/dist/src/telephony-extension/index.d.ts +2 -0
  58. package/dist/src/telephony-extension/index.d.ts.map +1 -1
  59. package/dist/src/ticket/index.d.ts +3022 -1253
  60. package/dist/src/ticket/index.d.ts.map +1 -1
  61. package/dist/src/ticket/schema.d.ts +236 -167
  62. package/dist/src/ticket/schema.d.ts.map +1 -1
  63. package/dist/src/upload/schema.d.ts +3 -0
  64. package/dist/src/upload/schema.d.ts.map +1 -1
  65. package/dist/src/user/index.d.ts +57 -34
  66. package/dist/src/user/index.d.ts.map +1 -1
  67. package/dist/src/user/schema.d.ts +11 -6
  68. package/dist/src/user/schema.d.ts.map +1 -1
  69. package/dist/src/user-presence-status-log/index.d.ts +12 -8
  70. package/dist/src/user-presence-status-log/index.d.ts.map +1 -1
  71. package/dist/src/user-presence-status-log/schema.d.ts +17 -10
  72. package/dist/src/user-presence-status-log/schema.d.ts.map +1 -1
  73. package/package.json +1 -1
  74. package/dist/src/app/index.d.ts +0 -17
  75. package/dist/src/app/index.d.ts.map +0 -1
  76. package/dist/src/mail/mail-server.d.ts +0 -216
  77. package/dist/src/mail/mail-server.d.ts.map +0 -1
  78. package/dist/src/platform-contact/schema.d.ts +0 -30
  79. package/dist/src/platform-contact/schema.d.ts.map +0 -1
@@ -84,7 +84,7 @@ export declare const UserPresenceStatusLogSchema: z.ZodObject<{
84
84
  displayName: string;
85
85
  }[];
86
86
  }>, "many">;
87
- extension: z.ZodOptional<z.ZodObject<{
87
+ extension: z.ZodObject<{
88
88
  id: z.ZodString;
89
89
  createdAt: z.ZodDate;
90
90
  updatedAt: z.ZodDate;
@@ -92,6 +92,7 @@ export declare const UserPresenceStatusLogSchema: z.ZodObject<{
92
92
  userId: z.ZodNullable<z.ZodString>;
93
93
  sipServerUrl: z.ZodString;
94
94
  sipUserName: z.ZodString;
95
+ webphoneLoginUser: z.ZodString;
95
96
  extensionId: z.ZodNumber;
96
97
  extensionName: z.ZodString;
97
98
  telephonySignature: z.ZodNullable<z.ZodString>;
@@ -103,6 +104,7 @@ export declare const UserPresenceStatusLogSchema: z.ZodObject<{
103
104
  userId: string | null;
104
105
  sipServerUrl: string;
105
106
  sipUserName: string;
107
+ webphoneLoginUser: string;
106
108
  extensionId: number;
107
109
  extensionName: string;
108
110
  telephonySignature: string | null;
@@ -114,10 +116,11 @@ export declare const UserPresenceStatusLogSchema: z.ZodObject<{
114
116
  userId: string | null;
115
117
  sipServerUrl: string;
116
118
  sipUserName: string;
119
+ webphoneLoginUser: string;
117
120
  extensionId: number;
118
121
  extensionName: string;
119
122
  telephonySignature: string | null;
120
- }>>;
123
+ }>;
121
124
  }, "strip", z.ZodTypeAny, {
122
125
  id: string;
123
126
  address: string | null;
@@ -148,7 +151,7 @@ export declare const UserPresenceStatusLogSchema: z.ZodObject<{
148
151
  displayName: string;
149
152
  }[];
150
153
  }[];
151
- extension?: {
154
+ extension: {
152
155
  id: string;
153
156
  createdAt: Date;
154
157
  updatedAt: Date;
@@ -156,10 +159,11 @@ export declare const UserPresenceStatusLogSchema: z.ZodObject<{
156
159
  userId: string | null;
157
160
  sipServerUrl: string;
158
161
  sipUserName: string;
162
+ webphoneLoginUser: string;
159
163
  extensionId: number;
160
164
  extensionName: string;
161
165
  telephonySignature: string | null;
162
- } | undefined;
166
+ };
163
167
  }, {
164
168
  id: string;
165
169
  address: string | null;
@@ -190,7 +194,7 @@ export declare const UserPresenceStatusLogSchema: z.ZodObject<{
190
194
  displayName: string;
191
195
  }[];
192
196
  }[];
193
- extension?: {
197
+ extension: {
194
198
  id: string;
195
199
  createdAt: Date;
196
200
  updatedAt: Date;
@@ -198,10 +202,11 @@ export declare const UserPresenceStatusLogSchema: z.ZodObject<{
198
202
  userId: string | null;
199
203
  sipServerUrl: string;
200
204
  sipUserName: string;
205
+ webphoneLoginUser: string;
201
206
  extensionId: number;
202
207
  extensionName: string;
203
208
  telephonySignature: string | null;
204
- } | undefined;
209
+ };
205
210
  }>;
206
211
  previousPresenceStatus: z.ZodObject<{
207
212
  id: z.ZodString;
@@ -281,7 +286,7 @@ export declare const UserPresenceStatusLogSchema: z.ZodObject<{
281
286
  displayName: string;
282
287
  }[];
283
288
  }[];
284
- extension?: {
289
+ extension: {
285
290
  id: string;
286
291
  createdAt: Date;
287
292
  updatedAt: Date;
@@ -289,10 +294,11 @@ export declare const UserPresenceStatusLogSchema: z.ZodObject<{
289
294
  userId: string | null;
290
295
  sipServerUrl: string;
291
296
  sipUserName: string;
297
+ webphoneLoginUser: string;
292
298
  extensionId: number;
293
299
  extensionName: string;
294
300
  telephonySignature: string | null;
295
- } | undefined;
301
+ };
296
302
  };
297
303
  createdAt: Date;
298
304
  updatedAt: Date;
@@ -346,7 +352,7 @@ export declare const UserPresenceStatusLogSchema: z.ZodObject<{
346
352
  displayName: string;
347
353
  }[];
348
354
  }[];
349
- extension?: {
355
+ extension: {
350
356
  id: string;
351
357
  createdAt: Date;
352
358
  updatedAt: Date;
@@ -354,10 +360,11 @@ export declare const UserPresenceStatusLogSchema: z.ZodObject<{
354
360
  userId: string | null;
355
361
  sipServerUrl: string;
356
362
  sipUserName: string;
363
+ webphoneLoginUser: string;
357
364
  extensionId: number;
358
365
  extensionName: string;
359
366
  telephonySignature: string | null;
360
- } | undefined;
367
+ };
361
368
  };
362
369
  createdAt: Date;
363
370
  updatedAt: Date;
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/user-presence-status-log/schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAKpB,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKtC,CAAC"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/user-presence-status-log/schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAKpB,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKtC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kl1/contracts",
3
- "version": "1.0.34",
3
+ "version": "1.0.36",
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,216 +0,0 @@
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
@@ -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"}