@kl1/contracts 1.0.28 → 1.0.29

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 (92) hide show
  1. package/dist/index.js +179 -124
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +178 -124
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/src/activity-log/index.d.ts +113 -113
  6. package/dist/src/activity-log/schema.d.ts +122 -122
  7. package/dist/src/app/index.d.ts +17 -0
  8. package/dist/src/app/index.d.ts.map +1 -0
  9. package/dist/src/attribute/index.d.ts +108 -108
  10. package/dist/src/attribute/schema.d.ts +24 -24
  11. package/dist/src/attribute-option/schema.d.ts +9 -9
  12. package/dist/src/auth/index.d.ts +89 -89
  13. package/dist/src/base-contract.d.ts +9 -9
  14. package/dist/src/call-log/schema.d.ts +9 -9
  15. package/dist/src/category/index.d.ts +42 -42
  16. package/dist/src/category/schema.d.ts +9 -9
  17. package/dist/src/channel/index.d.ts +357 -357
  18. package/dist/src/channel/schema.d.ts +101 -98
  19. package/dist/src/channel/schema.d.ts.map +1 -1
  20. package/dist/src/channel/validation.d.ts +89 -89
  21. package/dist/src/chat/index.d.ts +13187 -13187
  22. package/dist/src/chat/schema.d.ts +2360 -2360
  23. package/dist/src/chat/validation.d.ts +3251 -3251
  24. package/dist/src/comment/index.d.ts +1368 -1368
  25. package/dist/src/comment/schema.d.ts +388 -388
  26. package/dist/src/company/index.d.ts +316 -316
  27. package/dist/src/company/schema.d.ts +95 -95
  28. package/dist/src/company/validation.d.ts +177 -177
  29. package/dist/src/contact/index.d.ts +2171 -2171
  30. package/dist/src/contact/schema.d.ts +362 -362
  31. package/dist/src/contact/validation.d.ts +1685 -1685
  32. package/dist/src/contact-email/schema.d.ts +9 -9
  33. package/dist/src/contact-phone/schema.d.ts +9 -9
  34. package/dist/src/contract.d.ts +26474 -26668
  35. package/dist/src/contract.d.ts.map +1 -1
  36. package/dist/src/custom-field/schema.d.ts +12 -12
  37. package/dist/src/custom-field-upload/schema.d.ts +9 -9
  38. package/dist/src/cx-log/index.d.ts +1644 -1644
  39. package/dist/src/cx-log/schema.d.ts +1400 -1400
  40. package/dist/src/evaluate-form/index.d.ts +47 -0
  41. package/dist/src/evaluate-form/index.d.ts.map +1 -0
  42. package/dist/src/evaluate-form/schema.d.ts +9 -9
  43. package/dist/src/evaluate-form/validation.d.ts +28 -0
  44. package/dist/src/evaluate-form/validation.d.ts.map +1 -0
  45. package/dist/src/extension/index.d.ts +115 -115
  46. package/dist/src/extension/schema.d.ts +9 -9
  47. package/dist/src/group/schema.d.ts +9 -9
  48. package/dist/src/index.d.ts +1 -0
  49. package/dist/src/index.d.ts.map +1 -1
  50. package/dist/src/log-form/schema.d.ts +9 -9
  51. package/dist/src/mail/account-contract.d.ts +168 -168
  52. package/dist/src/mail/mail-contract.d.ts +3398 -3398
  53. package/dist/src/mail/mail-server.d.ts +216 -0
  54. package/dist/src/mail/mail-server.d.ts.map +1 -0
  55. package/dist/src/mail/message-contract.d.ts +152 -152
  56. package/dist/src/mail/room-contract.d.ts +3078 -3078
  57. package/dist/src/mail/schemas/account-validation.schema.d.ts +168 -168
  58. package/dist/src/mail/schemas/account.schema.d.ts +33 -33
  59. package/dist/src/mail/schemas/message.schema.d.ts +108 -108
  60. package/dist/src/mail/schemas/room-validation.schema.d.ts +1014 -1014
  61. package/dist/src/mail/schemas/room.schema.d.ts +816 -816
  62. package/dist/src/messenger/index.d.ts +1569 -1569
  63. package/dist/src/permission/index.d.ts +15 -15
  64. package/dist/src/permission/schema.d.ts +9 -9
  65. package/dist/src/platform-contact/schema.d.ts +30 -0
  66. package/dist/src/platform-contact/schema.d.ts.map +1 -0
  67. package/dist/src/role/index.d.ts +96 -96
  68. package/dist/src/role/schema.d.ts +24 -24
  69. package/dist/src/tag/index.d.ts +45 -45
  70. package/dist/src/tag/schema.d.ts +9 -9
  71. package/dist/src/tag-group/schema.d.ts +9 -9
  72. package/dist/src/telephony-agent-presence-status/index.d.ts +386 -386
  73. package/dist/src/telephony-agent-presence-status/schema.d.ts +122 -122
  74. package/dist/src/telephony-cdr/schema.d.ts +9 -9
  75. package/dist/src/telephony-live-queue-call/schema.d.ts +9 -9
  76. package/dist/src/telephony-queue-call-count/schema.d.ts +9 -9
  77. package/dist/src/tenant/schema.d.ts +9 -9
  78. package/dist/src/ticket/index.d.ts +858 -1094
  79. package/dist/src/ticket/index.d.ts.map +1 -1
  80. package/dist/src/ticket/schema.d.ts +212 -212
  81. package/dist/src/ticket/validation.d.ts +102 -338
  82. package/dist/src/ticket/validation.d.ts.map +1 -1
  83. package/dist/src/upload/schema.d.ts +9 -9
  84. package/dist/src/user/index.d.ts +293 -293
  85. package/dist/src/user/schema.d.ts +63 -63
  86. package/dist/src/user-presence-status-log/index.d.ts +88 -88
  87. package/dist/src/user-presence-status-log/schema.d.ts +128 -128
  88. package/dist/src/widget/index.d.ts +78 -78
  89. package/dist/src/widget/schema.d.ts +9 -9
  90. package/dist/src/wrap-up-form/index.d.ts +96 -96
  91. package/dist/src/wrap-up-form/schema.d.ts +24 -24
  92. package/package.json +10 -4
@@ -1,116 +1,116 @@
1
1
  import z from 'zod';
2
2
  export declare const EntitySchema: z.ZodObject<{
3
3
  id: z.ZodString;
4
- createdAt: z.ZodString;
5
- updatedAt: z.ZodString;
6
- deletedAt: z.ZodNullable<z.ZodString>;
4
+ createdAt: z.ZodDate;
5
+ updatedAt: z.ZodDate;
6
+ deletedAt: z.ZodNullable<z.ZodDate>;
7
7
  entity: z.ZodString;
8
8
  description: z.ZodString;
9
9
  }, "strip", z.ZodTypeAny, {
10
10
  id: string;
11
11
  description: string;
12
- createdAt: string;
13
- updatedAt: string;
14
- deletedAt: string | null;
12
+ createdAt: Date;
13
+ updatedAt: Date;
14
+ deletedAt: Date | null;
15
15
  entity: string;
16
16
  }, {
17
17
  id: string;
18
18
  description: string;
19
- createdAt: string;
20
- updatedAt: string;
21
- deletedAt: string | null;
19
+ createdAt: Date;
20
+ updatedAt: Date;
21
+ deletedAt: Date | null;
22
22
  entity: string;
23
23
  }>;
24
24
  export declare const ActivityLogSchema: z.ZodObject<{
25
25
  id: z.ZodString;
26
- createdAt: z.ZodString;
27
- updatedAt: z.ZodString;
28
- deletedAt: z.ZodNullable<z.ZodString>;
26
+ createdAt: z.ZodDate;
27
+ updatedAt: z.ZodDate;
28
+ deletedAt: z.ZodNullable<z.ZodDate>;
29
29
  actor: z.ZodObject<{
30
30
  id: z.ZodString;
31
- createdAt: z.ZodString;
32
- updatedAt: z.ZodString;
33
- deletedAt: z.ZodNullable<z.ZodString>;
31
+ createdAt: z.ZodDate;
32
+ updatedAt: z.ZodDate;
33
+ deletedAt: z.ZodNullable<z.ZodDate>;
34
34
  name: z.ZodString;
35
35
  email: z.ZodString;
36
- emailVerifiedAt: z.ZodNullable<z.ZodString>;
36
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
37
37
  password: z.ZodString;
38
38
  address: z.ZodNullable<z.ZodString>;
39
39
  phone: z.ZodNullable<z.ZodString>;
40
40
  notificationCount: z.ZodNullable<z.ZodNumber>;
41
41
  roles: z.ZodArray<z.ZodObject<{
42
42
  id: z.ZodString;
43
- createdAt: z.ZodString;
44
- updatedAt: z.ZodString;
45
- deletedAt: z.ZodNullable<z.ZodString>;
43
+ createdAt: z.ZodDate;
44
+ updatedAt: z.ZodDate;
45
+ deletedAt: z.ZodNullable<z.ZodDate>;
46
46
  systemName: z.ZodString;
47
47
  displayName: z.ZodString;
48
48
  description: z.ZodNullable<z.ZodString>;
49
49
  permissions: z.ZodArray<z.ZodObject<{
50
50
  id: z.ZodString;
51
- createdAt: z.ZodString;
52
- updatedAt: z.ZodString;
53
- deletedAt: z.ZodNullable<z.ZodString>;
51
+ createdAt: z.ZodDate;
52
+ updatedAt: z.ZodDate;
53
+ deletedAt: z.ZodNullable<z.ZodDate>;
54
54
  systemName: z.ZodString;
55
55
  displayName: z.ZodString;
56
56
  description: z.ZodNullable<z.ZodString>;
57
57
  }, "strip", z.ZodTypeAny, {
58
58
  id: string;
59
59
  description: string | null;
60
- createdAt: string;
61
- updatedAt: string;
62
- deletedAt: string | null;
60
+ createdAt: Date;
61
+ updatedAt: Date;
62
+ deletedAt: Date | null;
63
63
  systemName: string;
64
64
  displayName: string;
65
65
  }, {
66
66
  id: string;
67
67
  description: string | null;
68
- createdAt: string;
69
- updatedAt: string;
70
- deletedAt: string | null;
68
+ createdAt: Date;
69
+ updatedAt: Date;
70
+ deletedAt: Date | null;
71
71
  systemName: string;
72
72
  displayName: string;
73
73
  }>, "many">;
74
74
  }, "strip", z.ZodTypeAny, {
75
75
  id: string;
76
76
  description: string | null;
77
- createdAt: string;
78
- updatedAt: string;
79
- deletedAt: string | null;
77
+ createdAt: Date;
78
+ updatedAt: Date;
79
+ deletedAt: Date | null;
80
80
  systemName: string;
81
81
  displayName: string;
82
82
  permissions: {
83
83
  id: string;
84
84
  description: string | null;
85
- createdAt: string;
86
- updatedAt: string;
87
- deletedAt: string | null;
85
+ createdAt: Date;
86
+ updatedAt: Date;
87
+ deletedAt: Date | null;
88
88
  systemName: string;
89
89
  displayName: string;
90
90
  }[];
91
91
  }, {
92
92
  id: string;
93
93
  description: string | null;
94
- createdAt: string;
95
- updatedAt: string;
96
- deletedAt: string | null;
94
+ createdAt: Date;
95
+ updatedAt: Date;
96
+ deletedAt: Date | null;
97
97
  systemName: string;
98
98
  displayName: string;
99
99
  permissions: {
100
100
  id: string;
101
101
  description: string | null;
102
- createdAt: string;
103
- updatedAt: string;
104
- deletedAt: string | null;
102
+ createdAt: Date;
103
+ updatedAt: Date;
104
+ deletedAt: Date | null;
105
105
  systemName: string;
106
106
  displayName: string;
107
107
  }[];
108
108
  }>, "many">;
109
109
  extension: z.ZodOptional<z.ZodObject<{
110
110
  id: z.ZodString;
111
- createdAt: z.ZodString;
112
- updatedAt: z.ZodString;
113
- deletedAt: z.ZodNullable<z.ZodString>;
111
+ createdAt: z.ZodDate;
112
+ updatedAt: z.ZodDate;
113
+ deletedAt: z.ZodNullable<z.ZodDate>;
114
114
  userId: z.ZodNullable<z.ZodString>;
115
115
  sipServerUrl: z.ZodString;
116
116
  sipUserName: z.ZodString;
@@ -119,9 +119,9 @@ export declare const ActivityLogSchema: z.ZodObject<{
119
119
  telephonySignature: z.ZodNullable<z.ZodString>;
120
120
  }, "strip", z.ZodTypeAny, {
121
121
  id: string;
122
- createdAt: string;
123
- updatedAt: string;
124
- deletedAt: string | null;
122
+ createdAt: Date;
123
+ updatedAt: Date;
124
+ deletedAt: Date | null;
125
125
  userId: string | null;
126
126
  sipServerUrl: string;
127
127
  sipUserName: string;
@@ -130,9 +130,9 @@ export declare const ActivityLogSchema: z.ZodObject<{
130
130
  telephonySignature: string | null;
131
131
  }, {
132
132
  id: string;
133
- createdAt: string;
134
- updatedAt: string;
135
- deletedAt: string | null;
133
+ createdAt: Date;
134
+ updatedAt: Date;
135
+ deletedAt: Date | null;
136
136
  userId: string | null;
137
137
  sipServerUrl: string;
138
138
  sipUserName: string;
@@ -145,36 +145,36 @@ export declare const ActivityLogSchema: z.ZodObject<{
145
145
  address: string | null;
146
146
  name: string;
147
147
  email: string;
148
- createdAt: string;
149
- updatedAt: string;
150
- deletedAt: string | null;
151
- emailVerifiedAt: string | null;
148
+ createdAt: Date;
149
+ updatedAt: Date;
150
+ deletedAt: Date | null;
151
+ emailVerifiedAt: Date | null;
152
152
  password: string;
153
153
  phone: string | null;
154
154
  notificationCount: number | null;
155
155
  roles: {
156
156
  id: string;
157
157
  description: string | null;
158
- createdAt: string;
159
- updatedAt: string;
160
- deletedAt: string | null;
158
+ createdAt: Date;
159
+ updatedAt: Date;
160
+ deletedAt: Date | null;
161
161
  systemName: string;
162
162
  displayName: string;
163
163
  permissions: {
164
164
  id: string;
165
165
  description: string | null;
166
- createdAt: string;
167
- updatedAt: string;
168
- deletedAt: string | null;
166
+ createdAt: Date;
167
+ updatedAt: Date;
168
+ deletedAt: Date | null;
169
169
  systemName: string;
170
170
  displayName: string;
171
171
  }[];
172
172
  }[];
173
173
  extension?: {
174
174
  id: string;
175
- createdAt: string;
176
- updatedAt: string;
177
- deletedAt: string | null;
175
+ createdAt: Date;
176
+ updatedAt: Date;
177
+ deletedAt: Date | null;
178
178
  userId: string | null;
179
179
  sipServerUrl: string;
180
180
  sipUserName: string;
@@ -187,36 +187,36 @@ export declare const ActivityLogSchema: z.ZodObject<{
187
187
  address: string | null;
188
188
  name: string;
189
189
  email: string;
190
- createdAt: string;
191
- updatedAt: string;
192
- deletedAt: string | null;
193
- emailVerifiedAt: string | null;
190
+ createdAt: Date;
191
+ updatedAt: Date;
192
+ deletedAt: Date | null;
193
+ emailVerifiedAt: Date | null;
194
194
  password: string;
195
195
  phone: string | null;
196
196
  notificationCount: number | null;
197
197
  roles: {
198
198
  id: string;
199
199
  description: string | null;
200
- createdAt: string;
201
- updatedAt: string;
202
- deletedAt: string | null;
200
+ createdAt: Date;
201
+ updatedAt: Date;
202
+ deletedAt: Date | null;
203
203
  systemName: string;
204
204
  displayName: string;
205
205
  permissions: {
206
206
  id: string;
207
207
  description: string | null;
208
- createdAt: string;
209
- updatedAt: string;
210
- deletedAt: string | null;
208
+ createdAt: Date;
209
+ updatedAt: Date;
210
+ deletedAt: Date | null;
211
211
  systemName: string;
212
212
  displayName: string;
213
213
  }[];
214
214
  }[];
215
215
  extension?: {
216
216
  id: string;
217
- createdAt: string;
218
- updatedAt: string;
219
- deletedAt: string | null;
217
+ createdAt: Date;
218
+ updatedAt: Date;
219
+ deletedAt: Date | null;
220
220
  userId: string | null;
221
221
  sipServerUrl: string;
222
222
  sipUserName: string;
@@ -229,67 +229,67 @@ export declare const ActivityLogSchema: z.ZodObject<{
229
229
  description: z.ZodString;
230
230
  entityType: z.ZodObject<{
231
231
  id: z.ZodString;
232
- createdAt: z.ZodString;
233
- updatedAt: z.ZodString;
234
- deletedAt: z.ZodNullable<z.ZodString>;
232
+ createdAt: z.ZodDate;
233
+ updatedAt: z.ZodDate;
234
+ deletedAt: z.ZodNullable<z.ZodDate>;
235
235
  entity: z.ZodString;
236
236
  description: z.ZodString;
237
237
  }, "strip", z.ZodTypeAny, {
238
238
  id: string;
239
239
  description: string;
240
- createdAt: string;
241
- updatedAt: string;
242
- deletedAt: string | null;
240
+ createdAt: Date;
241
+ updatedAt: Date;
242
+ deletedAt: Date | null;
243
243
  entity: string;
244
244
  }, {
245
245
  id: string;
246
246
  description: string;
247
- createdAt: string;
248
- updatedAt: string;
249
- deletedAt: string | null;
247
+ createdAt: Date;
248
+ updatedAt: Date;
249
+ deletedAt: Date | null;
250
250
  entity: string;
251
251
  }>;
252
252
  }, "strip", z.ZodTypeAny, {
253
253
  id: string;
254
254
  description: string;
255
- createdAt: string;
256
- updatedAt: string;
257
- deletedAt: string | null;
255
+ createdAt: Date;
256
+ updatedAt: Date;
257
+ deletedAt: Date | null;
258
258
  actor: {
259
259
  id: string;
260
260
  address: string | null;
261
261
  name: string;
262
262
  email: string;
263
- createdAt: string;
264
- updatedAt: string;
265
- deletedAt: string | null;
266
- emailVerifiedAt: string | null;
263
+ createdAt: Date;
264
+ updatedAt: Date;
265
+ deletedAt: Date | null;
266
+ emailVerifiedAt: Date | null;
267
267
  password: string;
268
268
  phone: string | null;
269
269
  notificationCount: number | null;
270
270
  roles: {
271
271
  id: string;
272
272
  description: string | null;
273
- createdAt: string;
274
- updatedAt: string;
275
- deletedAt: string | null;
273
+ createdAt: Date;
274
+ updatedAt: Date;
275
+ deletedAt: Date | null;
276
276
  systemName: string;
277
277
  displayName: string;
278
278
  permissions: {
279
279
  id: string;
280
280
  description: string | null;
281
- createdAt: string;
282
- updatedAt: string;
283
- deletedAt: string | null;
281
+ createdAt: Date;
282
+ updatedAt: Date;
283
+ deletedAt: Date | null;
284
284
  systemName: string;
285
285
  displayName: string;
286
286
  }[];
287
287
  }[];
288
288
  extension?: {
289
289
  id: string;
290
- createdAt: string;
291
- updatedAt: string;
292
- deletedAt: string | null;
290
+ createdAt: Date;
291
+ updatedAt: Date;
292
+ deletedAt: Date | null;
293
293
  userId: string | null;
294
294
  sipServerUrl: string;
295
295
  sipUserName: string;
@@ -302,52 +302,52 @@ export declare const ActivityLogSchema: z.ZodObject<{
302
302
  entityType: {
303
303
  id: string;
304
304
  description: string;
305
- createdAt: string;
306
- updatedAt: string;
307
- deletedAt: string | null;
305
+ createdAt: Date;
306
+ updatedAt: Date;
307
+ deletedAt: Date | null;
308
308
  entity: string;
309
309
  };
310
310
  }, {
311
311
  id: string;
312
312
  description: string;
313
- createdAt: string;
314
- updatedAt: string;
315
- deletedAt: string | null;
313
+ createdAt: Date;
314
+ updatedAt: Date;
315
+ deletedAt: Date | null;
316
316
  actor: {
317
317
  id: string;
318
318
  address: string | null;
319
319
  name: string;
320
320
  email: string;
321
- createdAt: string;
322
- updatedAt: string;
323
- deletedAt: string | null;
324
- emailVerifiedAt: string | null;
321
+ createdAt: Date;
322
+ updatedAt: Date;
323
+ deletedAt: Date | null;
324
+ emailVerifiedAt: Date | null;
325
325
  password: string;
326
326
  phone: string | null;
327
327
  notificationCount: number | null;
328
328
  roles: {
329
329
  id: string;
330
330
  description: string | null;
331
- createdAt: string;
332
- updatedAt: string;
333
- deletedAt: string | null;
331
+ createdAt: Date;
332
+ updatedAt: Date;
333
+ deletedAt: Date | null;
334
334
  systemName: string;
335
335
  displayName: string;
336
336
  permissions: {
337
337
  id: string;
338
338
  description: string | null;
339
- createdAt: string;
340
- updatedAt: string;
341
- deletedAt: string | null;
339
+ createdAt: Date;
340
+ updatedAt: Date;
341
+ deletedAt: Date | null;
342
342
  systemName: string;
343
343
  displayName: string;
344
344
  }[];
345
345
  }[];
346
346
  extension?: {
347
347
  id: string;
348
- createdAt: string;
349
- updatedAt: string;
350
- deletedAt: string | null;
348
+ createdAt: Date;
349
+ updatedAt: Date;
350
+ deletedAt: Date | null;
351
351
  userId: string | null;
352
352
  sipServerUrl: string;
353
353
  sipUserName: string;
@@ -360,9 +360,9 @@ export declare const ActivityLogSchema: z.ZodObject<{
360
360
  entityType: {
361
361
  id: string;
362
362
  description: string;
363
- createdAt: string;
364
- updatedAt: string;
365
- deletedAt: string | null;
363
+ createdAt: Date;
364
+ updatedAt: Date;
365
+ deletedAt: Date | null;
366
366
  entity: string;
367
367
  };
368
368
  }>;
@@ -0,0 +1,17 @@
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
@@ -0,0 +1 @@
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"}