@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,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
- dateValue: z.ZodNullable<z.ZodString>;
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;
@@ -111,19 +111,19 @@ export declare const CompanyCustomFieldSchema: z.ZodObject<{
111
111
  textValue: string | null;
112
112
  booleanValue: boolean | null;
113
113
  numberValue: number | null;
114
- dateValue: string | null;
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;
@@ -134,31 +134,31 @@ export declare const CompanyCustomFieldSchema: z.ZodObject<{
134
134
  textValue: string | null;
135
135
  booleanValue: boolean | null;
136
136
  numberValue: number | null;
137
- dateValue: string | null;
137
+ dateValue: Date | null;
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
- dateValue: z.ZodNullable<z.ZodString>;
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;
@@ -257,19 +257,19 @@ export declare const CompanySchema: z.ZodObject<{
257
257
  textValue: string | null;
258
258
  booleanValue: boolean | null;
259
259
  numberValue: number | null;
260
- dateValue: string | null;
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;
@@ -280,29 +280,29 @@ export declare const CompanySchema: z.ZodObject<{
280
280
  textValue: string | null;
281
281
  booleanValue: boolean | null;
282
282
  numberValue: number | null;
283
- dateValue: string | null;
283
+ dateValue: Date | null;
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;
@@ -313,29 +313,29 @@ export declare const CompanySchema: z.ZodObject<{
313
313
  textValue: string | null;
314
314
  booleanValue: boolean | null;
315
315
  numberValue: number | null;
316
- dateValue: string | null;
316
+ dateValue: Date | null;
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;
@@ -346,7 +346,7 @@ export declare const CompanySchema: z.ZodObject<{
346
346
  textValue: string | null;
347
347
  booleanValue: boolean | null;
348
348
  numberValue: number | null;
349
- dateValue: string | null;
349
+ dateValue: Date | null;
350
350
  }[] | undefined;
351
351
  }>;
352
352
  //# sourceMappingURL=schema.d.ts.map