@kl1/contracts 1.0.27 → 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 (81) hide show
  1. package/dist/index.js +144 -56
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +143 -56
  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 +108 -108
  8. package/dist/src/attribute/schema.d.ts +24 -24
  9. package/dist/src/attribute-option/schema.d.ts +9 -9
  10. package/dist/src/base-contract.d.ts +9 -9
  11. package/dist/src/call-log/schema.d.ts +9 -9
  12. package/dist/src/category/index.d.ts +42 -42
  13. package/dist/src/category/schema.d.ts +9 -9
  14. package/dist/src/channel/index.d.ts +38 -38
  15. package/dist/src/channel/schema.d.ts +9 -9
  16. package/dist/src/chat/index.d.ts +5335 -5335
  17. package/dist/src/chat/schema.d.ts +876 -876
  18. package/dist/src/chat/validation.d.ts +1008 -1008
  19. package/dist/src/comment/index.d.ts +363 -363
  20. package/dist/src/comment/schema.d.ts +105 -105
  21. package/dist/src/company/index.d.ts +288 -288
  22. package/dist/src/company/schema.d.ts +87 -87
  23. package/dist/src/company/validation.d.ts +162 -162
  24. package/dist/src/contact/index.d.ts +1212 -1212
  25. package/dist/src/contact/schema.d.ts +201 -201
  26. package/dist/src/contact/validation.d.ts +997 -997
  27. package/dist/src/contact-email/schema.d.ts +9 -9
  28. package/dist/src/contact-phone/schema.d.ts +9 -9
  29. package/dist/src/contract.d.ts +9737 -9761
  30. package/dist/src/contract.d.ts.map +1 -1
  31. package/dist/src/custom-field/schema.d.ts +9 -9
  32. package/dist/src/custom-field-upload/schema.d.ts +9 -9
  33. package/dist/src/cx-log/index.d.ts +621 -621
  34. package/dist/src/cx-log/schema.d.ts +564 -564
  35. package/dist/src/dashboard/index.d.ts +6 -6
  36. package/dist/src/dashboard/index.d.ts.map +1 -1
  37. package/dist/src/dashboard/schema.d.ts +2 -2
  38. package/dist/src/dashboard/schema.d.ts.map +1 -1
  39. package/dist/src/evaluate-form/index.d.ts +47 -0
  40. package/dist/src/evaluate-form/index.d.ts.map +1 -0
  41. package/dist/src/evaluate-form/schema.d.ts +9 -9
  42. package/dist/src/evaluate-form/validation.d.ts +28 -0
  43. package/dist/src/evaluate-form/validation.d.ts.map +1 -0
  44. package/dist/src/group/schema.d.ts +9 -9
  45. package/dist/src/index.d.ts +1 -0
  46. package/dist/src/index.d.ts.map +1 -1
  47. package/dist/src/log-form/schema.d.ts +9 -9
  48. package/dist/src/mail/mail-contract.d.ts +63 -63
  49. package/dist/src/mail/mail-server.d.ts +216 -0
  50. package/dist/src/mail/mail-server.d.ts.map +1 -0
  51. package/dist/src/mail/room-contract.d.ts +63 -63
  52. package/dist/src/mail/schemas/room-validation.schema.d.ts +14 -14
  53. package/dist/src/mail/schemas/room.schema.d.ts +25 -25
  54. package/dist/src/messenger/index.d.ts +492 -492
  55. package/dist/src/platform-contact/schema.d.ts +30 -0
  56. package/dist/src/platform-contact/schema.d.ts.map +1 -0
  57. package/dist/src/tag/index.d.ts +45 -45
  58. package/dist/src/tag/schema.d.ts +9 -9
  59. package/dist/src/tag-group/schema.d.ts +9 -9
  60. package/dist/src/telephony-agent-presence-status/index.d.ts +93 -93
  61. package/dist/src/telephony-agent-presence-status/schema.d.ts +33 -33
  62. package/dist/src/telephony-cdr/schema.d.ts +9 -9
  63. package/dist/src/telephony-live-queue-call/schema.d.ts +9 -9
  64. package/dist/src/telephony-queue-call-count/schema.d.ts +9 -9
  65. package/dist/src/tenant/schema.d.ts +9 -9
  66. package/dist/src/ticket/index.d.ts +774 -909
  67. package/dist/src/ticket/index.d.ts.map +1 -1
  68. package/dist/src/ticket/schema.d.ts +135 -135
  69. package/dist/src/ticket/validation.d.ts +168 -338
  70. package/dist/src/ticket/validation.d.ts.map +1 -1
  71. package/dist/src/upload/schema.d.ts +9 -9
  72. package/dist/src/user-presence-status-log/index.d.ts +36 -36
  73. package/dist/src/user-presence-status-log/schema.d.ts +39 -39
  74. package/dist/src/widget/index.d.ts +150 -79
  75. package/dist/src/widget/index.d.ts.map +1 -1
  76. package/dist/src/widget/schema.d.ts +9 -9
  77. package/dist/src/widget/validation.d.ts +10 -0
  78. package/dist/src/widget/validation.d.ts.map +1 -1
  79. package/dist/src/wrap-up-form/index.d.ts +96 -96
  80. package/dist/src/wrap-up-form/schema.d.ts +24 -24
  81. package/package.json +10 -4
@@ -1,18 +1,18 @@
1
1
  import z from 'zod';
2
2
  export declare const CompanyCustomFieldSchema: 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
  textValue: z.ZodNullable<z.ZodString>;
8
8
  booleanValue: z.ZodNullable<z.ZodBoolean>;
9
9
  numberValue: z.ZodNullable<z.ZodNumber>;
10
10
  dateValue: z.ZodNullable<z.ZodDate>;
11
11
  attribute: z.ZodObject<Omit<{
12
12
  id: z.ZodString;
13
- createdAt: z.ZodString;
14
- updatedAt: z.ZodString;
15
- deletedAt: z.ZodNullable<z.ZodString>;
13
+ createdAt: z.ZodDate;
14
+ updatedAt: z.ZodDate;
15
+ deletedAt: z.ZodNullable<z.ZodDate>;
16
16
  systemName: z.ZodString;
17
17
  displayName: z.ZodString;
18
18
  type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
@@ -42,23 +42,23 @@ export declare const CompanyCustomFieldSchema: z.ZodObject<{
42
42
  }>, "many">;
43
43
  group: z.ZodObject<{
44
44
  id: z.ZodString;
45
- createdAt: z.ZodString;
46
- updatedAt: z.ZodString;
47
- deletedAt: z.ZodNullable<z.ZodString>;
45
+ createdAt: z.ZodDate;
46
+ updatedAt: z.ZodDate;
47
+ deletedAt: z.ZodNullable<z.ZodDate>;
48
48
  systemName: z.ZodString;
49
49
  displayName: z.ZodString;
50
50
  }, "strip", z.ZodTypeAny, {
51
51
  id: string;
52
- createdAt: string;
53
- updatedAt: string;
54
- deletedAt: string | null;
52
+ createdAt: Date;
53
+ updatedAt: Date;
54
+ deletedAt: Date | null;
55
55
  systemName: string;
56
56
  displayName: string;
57
57
  }, {
58
58
  id: string;
59
- createdAt: string;
60
- updatedAt: string;
61
- deletedAt: string | null;
59
+ createdAt: Date;
60
+ updatedAt: Date;
61
+ deletedAt: Date | null;
62
62
  systemName: string;
63
63
  displayName: string;
64
64
  }>;
@@ -66,9 +66,9 @@ export declare const CompanyCustomFieldSchema: z.ZodObject<{
66
66
  type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
67
67
  id: string;
68
68
  position: number;
69
- createdAt: string;
70
- updatedAt: string;
71
- deletedAt: string | null;
69
+ createdAt: Date;
70
+ updatedAt: Date;
71
+ deletedAt: Date | null;
72
72
  isDefault: boolean;
73
73
  systemName: string;
74
74
  displayName: string;
@@ -79,9 +79,9 @@ export declare const CompanyCustomFieldSchema: z.ZodObject<{
79
79
  type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
80
80
  id: string;
81
81
  position: number;
82
- createdAt: string;
83
- updatedAt: string;
84
- deletedAt: string | null;
82
+ createdAt: Date;
83
+ updatedAt: Date;
84
+ deletedAt: Date | null;
85
85
  isDefault: boolean;
86
86
  systemName: string;
87
87
  displayName: string;
@@ -91,16 +91,16 @@ export declare const CompanyCustomFieldSchema: z.ZodObject<{
91
91
  }>;
92
92
  }, "strip", z.ZodTypeAny, {
93
93
  id: string;
94
- createdAt: string;
95
- updatedAt: string;
96
- deletedAt: string | null;
94
+ createdAt: Date;
95
+ updatedAt: Date;
96
+ deletedAt: Date | null;
97
97
  attribute: {
98
98
  type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
99
99
  id: string;
100
100
  position: number;
101
- createdAt: string;
102
- updatedAt: string;
103
- deletedAt: string | null;
101
+ createdAt: Date;
102
+ updatedAt: Date;
103
+ deletedAt: Date | null;
104
104
  isDefault: boolean;
105
105
  systemName: string;
106
106
  displayName: string;
@@ -114,16 +114,16 @@ export declare const CompanyCustomFieldSchema: z.ZodObject<{
114
114
  dateValue: Date | null;
115
115
  }, {
116
116
  id: string;
117
- createdAt: string;
118
- updatedAt: string;
119
- deletedAt: string | null;
117
+ createdAt: Date;
118
+ updatedAt: Date;
119
+ deletedAt: Date | null;
120
120
  attribute: {
121
121
  type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
122
122
  id: string;
123
123
  position: number;
124
- createdAt: string;
125
- updatedAt: string;
126
- deletedAt: string | null;
124
+ createdAt: Date;
125
+ updatedAt: Date;
126
+ deletedAt: Date | null;
127
127
  isDefault: boolean;
128
128
  systemName: string;
129
129
  displayName: string;
@@ -138,27 +138,27 @@ export declare const CompanyCustomFieldSchema: z.ZodObject<{
138
138
  }>;
139
139
  export declare const CompanySchema: z.ZodObject<{
140
140
  id: z.ZodString;
141
- createdAt: z.ZodString;
142
- updatedAt: z.ZodString;
143
- deletedAt: z.ZodNullable<z.ZodString>;
141
+ createdAt: z.ZodDate;
142
+ updatedAt: z.ZodDate;
143
+ deletedAt: z.ZodNullable<z.ZodDate>;
144
144
  name: z.ZodOptional<z.ZodString>;
145
145
  phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
146
146
  address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
147
147
  industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
148
148
  customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
149
149
  id: z.ZodString;
150
- createdAt: z.ZodString;
151
- updatedAt: z.ZodString;
152
- deletedAt: z.ZodNullable<z.ZodString>;
150
+ createdAt: z.ZodDate;
151
+ updatedAt: z.ZodDate;
152
+ deletedAt: z.ZodNullable<z.ZodDate>;
153
153
  textValue: z.ZodNullable<z.ZodString>;
154
154
  booleanValue: z.ZodNullable<z.ZodBoolean>;
155
155
  numberValue: z.ZodNullable<z.ZodNumber>;
156
156
  dateValue: z.ZodNullable<z.ZodDate>;
157
157
  attribute: z.ZodObject<Omit<{
158
158
  id: z.ZodString;
159
- createdAt: z.ZodString;
160
- updatedAt: z.ZodString;
161
- deletedAt: z.ZodNullable<z.ZodString>;
159
+ createdAt: z.ZodDate;
160
+ updatedAt: z.ZodDate;
161
+ deletedAt: z.ZodNullable<z.ZodDate>;
162
162
  systemName: z.ZodString;
163
163
  displayName: z.ZodString;
164
164
  type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
@@ -188,23 +188,23 @@ export declare const CompanySchema: z.ZodObject<{
188
188
  }>, "many">;
189
189
  group: z.ZodObject<{
190
190
  id: z.ZodString;
191
- createdAt: z.ZodString;
192
- updatedAt: z.ZodString;
193
- deletedAt: z.ZodNullable<z.ZodString>;
191
+ createdAt: z.ZodDate;
192
+ updatedAt: z.ZodDate;
193
+ deletedAt: z.ZodNullable<z.ZodDate>;
194
194
  systemName: z.ZodString;
195
195
  displayName: z.ZodString;
196
196
  }, "strip", z.ZodTypeAny, {
197
197
  id: string;
198
- createdAt: string;
199
- updatedAt: string;
200
- deletedAt: string | null;
198
+ createdAt: Date;
199
+ updatedAt: Date;
200
+ deletedAt: Date | null;
201
201
  systemName: string;
202
202
  displayName: string;
203
203
  }, {
204
204
  id: string;
205
- createdAt: string;
206
- updatedAt: string;
207
- deletedAt: string | null;
205
+ createdAt: Date;
206
+ updatedAt: Date;
207
+ deletedAt: Date | null;
208
208
  systemName: string;
209
209
  displayName: string;
210
210
  }>;
@@ -212,9 +212,9 @@ export declare const CompanySchema: z.ZodObject<{
212
212
  type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
213
213
  id: string;
214
214
  position: number;
215
- createdAt: string;
216
- updatedAt: string;
217
- deletedAt: string | null;
215
+ createdAt: Date;
216
+ updatedAt: Date;
217
+ deletedAt: Date | null;
218
218
  isDefault: boolean;
219
219
  systemName: string;
220
220
  displayName: string;
@@ -225,9 +225,9 @@ export declare const CompanySchema: z.ZodObject<{
225
225
  type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
226
226
  id: string;
227
227
  position: number;
228
- createdAt: string;
229
- updatedAt: string;
230
- deletedAt: string | null;
228
+ createdAt: Date;
229
+ updatedAt: Date;
230
+ deletedAt: Date | null;
231
231
  isDefault: boolean;
232
232
  systemName: string;
233
233
  displayName: string;
@@ -237,16 +237,16 @@ export declare const CompanySchema: z.ZodObject<{
237
237
  }>;
238
238
  }, "strip", z.ZodTypeAny, {
239
239
  id: string;
240
- createdAt: string;
241
- updatedAt: string;
242
- deletedAt: string | null;
240
+ createdAt: Date;
241
+ updatedAt: Date;
242
+ deletedAt: Date | null;
243
243
  attribute: {
244
244
  type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
245
245
  id: string;
246
246
  position: number;
247
- createdAt: string;
248
- updatedAt: string;
249
- deletedAt: string | null;
247
+ createdAt: Date;
248
+ updatedAt: Date;
249
+ deletedAt: Date | null;
250
250
  isDefault: boolean;
251
251
  systemName: string;
252
252
  displayName: string;
@@ -260,16 +260,16 @@ export declare const CompanySchema: z.ZodObject<{
260
260
  dateValue: Date | null;
261
261
  }, {
262
262
  id: string;
263
- createdAt: string;
264
- updatedAt: string;
265
- deletedAt: string | null;
263
+ createdAt: Date;
264
+ updatedAt: Date;
265
+ deletedAt: Date | null;
266
266
  attribute: {
267
267
  type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
268
268
  id: string;
269
269
  position: number;
270
- createdAt: string;
271
- updatedAt: string;
272
- deletedAt: string | null;
270
+ createdAt: Date;
271
+ updatedAt: Date;
272
+ deletedAt: Date | null;
273
273
  isDefault: boolean;
274
274
  systemName: string;
275
275
  displayName: string;
@@ -284,25 +284,25 @@ export declare const CompanySchema: z.ZodObject<{
284
284
  }>, "many">>;
285
285
  }, "strip", z.ZodTypeAny, {
286
286
  id: string;
287
- createdAt: string;
288
- updatedAt: string;
289
- deletedAt: string | null;
287
+ createdAt: Date;
288
+ updatedAt: Date;
289
+ deletedAt: Date | null;
290
290
  name?: string | undefined;
291
291
  phone?: string | null | undefined;
292
292
  address?: string | null | undefined;
293
293
  industry?: string | null | undefined;
294
294
  customFields?: {
295
295
  id: string;
296
- createdAt: string;
297
- updatedAt: string;
298
- deletedAt: string | null;
296
+ createdAt: Date;
297
+ updatedAt: Date;
298
+ deletedAt: Date | null;
299
299
  attribute: {
300
300
  type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
301
301
  id: string;
302
302
  position: number;
303
- createdAt: string;
304
- updatedAt: string;
305
- deletedAt: string | null;
303
+ createdAt: Date;
304
+ updatedAt: Date;
305
+ deletedAt: Date | null;
306
306
  isDefault: boolean;
307
307
  systemName: string;
308
308
  displayName: string;
@@ -317,25 +317,25 @@ export declare const CompanySchema: z.ZodObject<{
317
317
  }[] | undefined;
318
318
  }, {
319
319
  id: string;
320
- createdAt: string;
321
- updatedAt: string;
322
- deletedAt: string | null;
320
+ createdAt: Date;
321
+ updatedAt: Date;
322
+ deletedAt: Date | null;
323
323
  name?: string | undefined;
324
324
  phone?: string | null | undefined;
325
325
  address?: string | null | undefined;
326
326
  industry?: string | null | undefined;
327
327
  customFields?: {
328
328
  id: string;
329
- createdAt: string;
330
- updatedAt: string;
331
- deletedAt: string | null;
329
+ createdAt: Date;
330
+ updatedAt: Date;
331
+ deletedAt: Date | null;
332
332
  attribute: {
333
333
  type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
334
334
  id: string;
335
335
  position: number;
336
- createdAt: string;
337
- updatedAt: string;
338
- deletedAt: string | null;
336
+ createdAt: Date;
337
+ updatedAt: Date;
338
+ deletedAt: Date | null;
339
339
  isDefault: boolean;
340
340
  systemName: string;
341
341
  displayName: string;