@kl1/contracts 1.0.16 → 1.0.18
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.
- package/dist/index.js +1217 -564
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1216 -564
- package/dist/index.mjs.map +1 -1
- package/dist/src/chat/index.d.ts +8038 -114
- package/dist/src/chat/index.d.ts.map +1 -1
- package/dist/src/chat/schema.d.ts +28 -28
- package/dist/src/chat/schema.d.ts.map +1 -1
- package/dist/src/chat/validation.d.ts +415 -7755
- package/dist/src/chat/validation.d.ts.map +1 -1
- package/dist/src/contact/index.d.ts +1224 -0
- package/dist/src/contact/index.d.ts.map +1 -1
- package/dist/src/contact/validation.d.ts +833 -0
- package/dist/src/contact/validation.d.ts.map +1 -1
- package/dist/src/contract.d.ts +21408 -14956
- package/dist/src/contract.d.ts.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/mail/mail-contract.d.ts +1305 -1305
- package/dist/src/mail/message-contract.d.ts +56 -56
- package/dist/src/mail/room-contract.d.ts +1241 -1241
- package/dist/src/mail/schemas/message.schema.d.ts +33 -33
- package/dist/src/mail/schemas/room-validation.schema.d.ts +404 -404
- package/dist/src/mail/schemas/room.schema.d.ts +268 -268
- package/dist/src/messenger/index.d.ts +382 -7729
- package/dist/src/messenger/index.d.ts.map +1 -1
- package/dist/src/platform-contact/schema.d.ts +2 -2
- package/dist/src/ticket/index.d.ts +4661 -0
- package/dist/src/ticket/index.d.ts.map +1 -0
- package/dist/src/ticket/schema.d.ts +662 -3
- package/dist/src/ticket/schema.d.ts.map +1 -1
- package/dist/src/ticket/validation.d.ts +732 -0
- package/dist/src/ticket/validation.d.ts.map +1 -0
- package/package.json +1 -1
- package/dist/src/app/index.d.ts +0 -17
- package/dist/src/app/index.d.ts.map +0 -1
- package/dist/src/mail/mail-server.d.ts +0 -216
- package/dist/src/mail/mail-server.d.ts.map +0 -1
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0X1B,CAAC"}
|
@@ -1,4 +1,324 @@
|
|
1
1
|
import z from 'zod';
|
2
|
+
export declare const TicketCustomFieldSchema: z.ZodObject<{
|
3
|
+
id: z.ZodString;
|
4
|
+
createdAt: z.ZodDate;
|
5
|
+
updatedAt: z.ZodDate;
|
6
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
7
|
+
textValue: z.ZodNullable<z.ZodString>;
|
8
|
+
booleanValue: z.ZodNullable<z.ZodBoolean>;
|
9
|
+
numberValue: z.ZodNullable<z.ZodNumber>;
|
10
|
+
dateValue: z.ZodNullable<z.ZodDate>;
|
11
|
+
attribute: z.ZodObject<Omit<{
|
12
|
+
id: z.ZodString;
|
13
|
+
createdAt: z.ZodDate;
|
14
|
+
updatedAt: z.ZodDate;
|
15
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
16
|
+
systemName: z.ZodString;
|
17
|
+
displayName: z.ZodString;
|
18
|
+
type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
|
19
|
+
position: z.ZodNumber;
|
20
|
+
isDefault: z.ZodBoolean;
|
21
|
+
isArchived: z.ZodBoolean;
|
22
|
+
isRequired: z.ZodBoolean;
|
23
|
+
isUnique: z.ZodBoolean;
|
24
|
+
options: z.ZodArray<z.ZodObject<{
|
25
|
+
position: z.ZodNumber;
|
26
|
+
value: z.ZodString;
|
27
|
+
label: z.ZodString;
|
28
|
+
isDefault: z.ZodBoolean;
|
29
|
+
id: z.ZodString;
|
30
|
+
}, "strip", z.ZodTypeAny, {
|
31
|
+
id: string;
|
32
|
+
position: number;
|
33
|
+
value: string;
|
34
|
+
label: string;
|
35
|
+
isDefault: boolean;
|
36
|
+
}, {
|
37
|
+
id: string;
|
38
|
+
position: number;
|
39
|
+
value: string;
|
40
|
+
label: string;
|
41
|
+
isDefault: boolean;
|
42
|
+
}>, "many">;
|
43
|
+
group: z.ZodObject<{
|
44
|
+
id: z.ZodString;
|
45
|
+
createdAt: z.ZodDate;
|
46
|
+
updatedAt: z.ZodDate;
|
47
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
48
|
+
systemName: z.ZodString;
|
49
|
+
displayName: z.ZodString;
|
50
|
+
}, "strip", z.ZodTypeAny, {
|
51
|
+
id: string;
|
52
|
+
createdAt: Date;
|
53
|
+
updatedAt: Date;
|
54
|
+
deletedAt: Date | null;
|
55
|
+
systemName: string;
|
56
|
+
displayName: string;
|
57
|
+
}, {
|
58
|
+
id: string;
|
59
|
+
createdAt: Date;
|
60
|
+
updatedAt: Date;
|
61
|
+
deletedAt: Date | null;
|
62
|
+
systemName: string;
|
63
|
+
displayName: string;
|
64
|
+
}>;
|
65
|
+
}, "options" | "group">, "strip", z.ZodTypeAny, {
|
66
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
67
|
+
id: string;
|
68
|
+
position: number;
|
69
|
+
createdAt: Date;
|
70
|
+
updatedAt: Date;
|
71
|
+
deletedAt: Date | null;
|
72
|
+
isDefault: boolean;
|
73
|
+
systemName: string;
|
74
|
+
displayName: string;
|
75
|
+
isArchived: boolean;
|
76
|
+
isRequired: boolean;
|
77
|
+
isUnique: boolean;
|
78
|
+
}, {
|
79
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
80
|
+
id: string;
|
81
|
+
position: number;
|
82
|
+
createdAt: Date;
|
83
|
+
updatedAt: Date;
|
84
|
+
deletedAt: Date | null;
|
85
|
+
isDefault: boolean;
|
86
|
+
systemName: string;
|
87
|
+
displayName: string;
|
88
|
+
isArchived: boolean;
|
89
|
+
isRequired: boolean;
|
90
|
+
isUnique: boolean;
|
91
|
+
}>;
|
92
|
+
uploads: z.ZodArray<z.ZodObject<{
|
93
|
+
id: z.ZodString;
|
94
|
+
createdAt: z.ZodDate;
|
95
|
+
updatedAt: z.ZodDate;
|
96
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
97
|
+
customFieldId: z.ZodString;
|
98
|
+
upload: z.ZodObject<{
|
99
|
+
id: z.ZodString;
|
100
|
+
createdAt: z.ZodDate;
|
101
|
+
updatedAt: z.ZodDate;
|
102
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
103
|
+
bucketName: z.ZodString;
|
104
|
+
fileName: z.ZodString;
|
105
|
+
fileSize: z.ZodNumber;
|
106
|
+
fileKey: z.ZodString;
|
107
|
+
}, "strip", z.ZodTypeAny, {
|
108
|
+
id: string;
|
109
|
+
createdAt: Date;
|
110
|
+
updatedAt: Date;
|
111
|
+
deletedAt: Date | null;
|
112
|
+
fileName: string;
|
113
|
+
fileKey: string;
|
114
|
+
bucketName: string;
|
115
|
+
fileSize: number;
|
116
|
+
}, {
|
117
|
+
id: string;
|
118
|
+
createdAt: Date;
|
119
|
+
updatedAt: Date;
|
120
|
+
deletedAt: Date | null;
|
121
|
+
fileName: string;
|
122
|
+
fileKey: string;
|
123
|
+
bucketName: string;
|
124
|
+
fileSize: number;
|
125
|
+
}>;
|
126
|
+
}, "strip", z.ZodTypeAny, {
|
127
|
+
id: string;
|
128
|
+
createdAt: Date;
|
129
|
+
updatedAt: Date;
|
130
|
+
deletedAt: Date | null;
|
131
|
+
customFieldId: string;
|
132
|
+
upload: {
|
133
|
+
id: string;
|
134
|
+
createdAt: Date;
|
135
|
+
updatedAt: Date;
|
136
|
+
deletedAt: Date | null;
|
137
|
+
fileName: string;
|
138
|
+
fileKey: string;
|
139
|
+
bucketName: string;
|
140
|
+
fileSize: number;
|
141
|
+
};
|
142
|
+
}, {
|
143
|
+
id: string;
|
144
|
+
createdAt: Date;
|
145
|
+
updatedAt: Date;
|
146
|
+
deletedAt: Date | null;
|
147
|
+
customFieldId: string;
|
148
|
+
upload: {
|
149
|
+
id: string;
|
150
|
+
createdAt: Date;
|
151
|
+
updatedAt: Date;
|
152
|
+
deletedAt: Date | null;
|
153
|
+
fileName: string;
|
154
|
+
fileKey: string;
|
155
|
+
bucketName: string;
|
156
|
+
fileSize: number;
|
157
|
+
};
|
158
|
+
}>, "many">;
|
159
|
+
}, "strip", z.ZodTypeAny, {
|
160
|
+
id: string;
|
161
|
+
createdAt: Date;
|
162
|
+
updatedAt: Date;
|
163
|
+
deletedAt: Date | null;
|
164
|
+
attribute: {
|
165
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
166
|
+
id: string;
|
167
|
+
position: number;
|
168
|
+
createdAt: Date;
|
169
|
+
updatedAt: Date;
|
170
|
+
deletedAt: Date | null;
|
171
|
+
isDefault: boolean;
|
172
|
+
systemName: string;
|
173
|
+
displayName: string;
|
174
|
+
isArchived: boolean;
|
175
|
+
isRequired: boolean;
|
176
|
+
isUnique: boolean;
|
177
|
+
};
|
178
|
+
textValue: string | null;
|
179
|
+
booleanValue: boolean | null;
|
180
|
+
numberValue: number | null;
|
181
|
+
dateValue: Date | null;
|
182
|
+
uploads: {
|
183
|
+
id: string;
|
184
|
+
createdAt: Date;
|
185
|
+
updatedAt: Date;
|
186
|
+
deletedAt: Date | null;
|
187
|
+
customFieldId: string;
|
188
|
+
upload: {
|
189
|
+
id: string;
|
190
|
+
createdAt: Date;
|
191
|
+
updatedAt: Date;
|
192
|
+
deletedAt: Date | null;
|
193
|
+
fileName: string;
|
194
|
+
fileKey: string;
|
195
|
+
bucketName: string;
|
196
|
+
fileSize: number;
|
197
|
+
};
|
198
|
+
}[];
|
199
|
+
}, {
|
200
|
+
id: string;
|
201
|
+
createdAt: Date;
|
202
|
+
updatedAt: Date;
|
203
|
+
deletedAt: Date | null;
|
204
|
+
attribute: {
|
205
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
206
|
+
id: string;
|
207
|
+
position: number;
|
208
|
+
createdAt: Date;
|
209
|
+
updatedAt: Date;
|
210
|
+
deletedAt: Date | null;
|
211
|
+
isDefault: boolean;
|
212
|
+
systemName: string;
|
213
|
+
displayName: string;
|
214
|
+
isArchived: boolean;
|
215
|
+
isRequired: boolean;
|
216
|
+
isUnique: boolean;
|
217
|
+
};
|
218
|
+
textValue: string | null;
|
219
|
+
booleanValue: boolean | null;
|
220
|
+
numberValue: number | null;
|
221
|
+
dateValue: Date | null;
|
222
|
+
uploads: {
|
223
|
+
id: string;
|
224
|
+
createdAt: Date;
|
225
|
+
updatedAt: Date;
|
226
|
+
deletedAt: Date | null;
|
227
|
+
customFieldId: string;
|
228
|
+
upload: {
|
229
|
+
id: string;
|
230
|
+
createdAt: Date;
|
231
|
+
updatedAt: Date;
|
232
|
+
deletedAt: Date | null;
|
233
|
+
fileName: string;
|
234
|
+
fileKey: string;
|
235
|
+
bucketName: string;
|
236
|
+
fileSize: number;
|
237
|
+
};
|
238
|
+
}[];
|
239
|
+
}>;
|
240
|
+
export declare const TicketEntityTypesSchema: z.ZodObject<{
|
241
|
+
id: z.ZodString;
|
242
|
+
createdAt: z.ZodDate;
|
243
|
+
updatedAt: z.ZodDate;
|
244
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
245
|
+
entity: z.ZodString;
|
246
|
+
description: z.ZodNullable<z.ZodString>;
|
247
|
+
}, "strip", z.ZodTypeAny, {
|
248
|
+
id: string;
|
249
|
+
description: string | null;
|
250
|
+
createdAt: Date;
|
251
|
+
updatedAt: Date;
|
252
|
+
deletedAt: Date | null;
|
253
|
+
entity: string;
|
254
|
+
}, {
|
255
|
+
id: string;
|
256
|
+
description: string | null;
|
257
|
+
createdAt: Date;
|
258
|
+
updatedAt: Date;
|
259
|
+
deletedAt: Date | null;
|
260
|
+
entity: string;
|
261
|
+
}>;
|
262
|
+
export declare const TicketActivitySchema: z.ZodObject<{
|
263
|
+
id: z.ZodString;
|
264
|
+
createdAt: z.ZodDate;
|
265
|
+
updatedAt: z.ZodDate;
|
266
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
267
|
+
entityId: z.ZodString;
|
268
|
+
description: z.ZodString;
|
269
|
+
entityType: z.ZodObject<{
|
270
|
+
id: z.ZodString;
|
271
|
+
createdAt: z.ZodDate;
|
272
|
+
updatedAt: z.ZodDate;
|
273
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
274
|
+
entity: z.ZodString;
|
275
|
+
description: z.ZodNullable<z.ZodString>;
|
276
|
+
}, "strip", z.ZodTypeAny, {
|
277
|
+
id: string;
|
278
|
+
description: string | null;
|
279
|
+
createdAt: Date;
|
280
|
+
updatedAt: Date;
|
281
|
+
deletedAt: Date | null;
|
282
|
+
entity: string;
|
283
|
+
}, {
|
284
|
+
id: string;
|
285
|
+
description: string | null;
|
286
|
+
createdAt: Date;
|
287
|
+
updatedAt: Date;
|
288
|
+
deletedAt: Date | null;
|
289
|
+
entity: string;
|
290
|
+
}>;
|
291
|
+
}, "strip", z.ZodTypeAny, {
|
292
|
+
id: string;
|
293
|
+
description: string;
|
294
|
+
createdAt: Date;
|
295
|
+
updatedAt: Date;
|
296
|
+
deletedAt: Date | null;
|
297
|
+
entityId: string;
|
298
|
+
entityType: {
|
299
|
+
id: string;
|
300
|
+
description: string | null;
|
301
|
+
createdAt: Date;
|
302
|
+
updatedAt: Date;
|
303
|
+
deletedAt: Date | null;
|
304
|
+
entity: string;
|
305
|
+
};
|
306
|
+
}, {
|
307
|
+
id: string;
|
308
|
+
description: string;
|
309
|
+
createdAt: Date;
|
310
|
+
updatedAt: Date;
|
311
|
+
deletedAt: Date | null;
|
312
|
+
entityId: string;
|
313
|
+
entityType: {
|
314
|
+
id: string;
|
315
|
+
description: string | null;
|
316
|
+
createdAt: Date;
|
317
|
+
updatedAt: Date;
|
318
|
+
deletedAt: Date | null;
|
319
|
+
entity: string;
|
320
|
+
};
|
321
|
+
}>;
|
2
322
|
export declare const TicketSchema: z.ZodObject<{
|
3
323
|
id: z.ZodString;
|
4
324
|
createdAt: z.ZodDate;
|
@@ -14,7 +334,245 @@ export declare const TicketSchema: z.ZodObject<{
|
|
14
334
|
creatorId: z.ZodString;
|
15
335
|
assigneeId: z.ZodString;
|
16
336
|
reasonToAssign: z.ZodNullable<z.ZodString>;
|
17
|
-
ticketNumber: z.ZodNumber
|
337
|
+
ticketNumber: z.ZodOptional<z.ZodNumber>;
|
338
|
+
customFields: z.ZodArray<z.ZodObject<{
|
339
|
+
id: z.ZodString;
|
340
|
+
createdAt: z.ZodDate;
|
341
|
+
updatedAt: z.ZodDate;
|
342
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
343
|
+
textValue: z.ZodNullable<z.ZodString>;
|
344
|
+
booleanValue: z.ZodNullable<z.ZodBoolean>;
|
345
|
+
numberValue: z.ZodNullable<z.ZodNumber>;
|
346
|
+
dateValue: z.ZodNullable<z.ZodDate>;
|
347
|
+
attribute: z.ZodObject<Omit<{
|
348
|
+
id: z.ZodString;
|
349
|
+
createdAt: z.ZodDate;
|
350
|
+
updatedAt: z.ZodDate;
|
351
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
352
|
+
systemName: z.ZodString;
|
353
|
+
displayName: z.ZodString;
|
354
|
+
type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
|
355
|
+
position: z.ZodNumber;
|
356
|
+
isDefault: z.ZodBoolean;
|
357
|
+
isArchived: z.ZodBoolean;
|
358
|
+
isRequired: z.ZodBoolean;
|
359
|
+
isUnique: z.ZodBoolean;
|
360
|
+
options: z.ZodArray<z.ZodObject<{
|
361
|
+
position: z.ZodNumber;
|
362
|
+
value: z.ZodString;
|
363
|
+
label: z.ZodString;
|
364
|
+
isDefault: z.ZodBoolean;
|
365
|
+
id: z.ZodString;
|
366
|
+
}, "strip", z.ZodTypeAny, {
|
367
|
+
id: string;
|
368
|
+
position: number;
|
369
|
+
value: string;
|
370
|
+
label: string;
|
371
|
+
isDefault: boolean;
|
372
|
+
}, {
|
373
|
+
id: string;
|
374
|
+
position: number;
|
375
|
+
value: string;
|
376
|
+
label: string;
|
377
|
+
isDefault: boolean;
|
378
|
+
}>, "many">;
|
379
|
+
group: z.ZodObject<{
|
380
|
+
id: z.ZodString;
|
381
|
+
createdAt: z.ZodDate;
|
382
|
+
updatedAt: z.ZodDate;
|
383
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
384
|
+
systemName: z.ZodString;
|
385
|
+
displayName: z.ZodString;
|
386
|
+
}, "strip", z.ZodTypeAny, {
|
387
|
+
id: string;
|
388
|
+
createdAt: Date;
|
389
|
+
updatedAt: Date;
|
390
|
+
deletedAt: Date | null;
|
391
|
+
systemName: string;
|
392
|
+
displayName: string;
|
393
|
+
}, {
|
394
|
+
id: string;
|
395
|
+
createdAt: Date;
|
396
|
+
updatedAt: Date;
|
397
|
+
deletedAt: Date | null;
|
398
|
+
systemName: string;
|
399
|
+
displayName: string;
|
400
|
+
}>;
|
401
|
+
}, "options" | "group">, "strip", z.ZodTypeAny, {
|
402
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
403
|
+
id: string;
|
404
|
+
position: number;
|
405
|
+
createdAt: Date;
|
406
|
+
updatedAt: Date;
|
407
|
+
deletedAt: Date | null;
|
408
|
+
isDefault: boolean;
|
409
|
+
systemName: string;
|
410
|
+
displayName: string;
|
411
|
+
isArchived: boolean;
|
412
|
+
isRequired: boolean;
|
413
|
+
isUnique: boolean;
|
414
|
+
}, {
|
415
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
416
|
+
id: string;
|
417
|
+
position: number;
|
418
|
+
createdAt: Date;
|
419
|
+
updatedAt: Date;
|
420
|
+
deletedAt: Date | null;
|
421
|
+
isDefault: boolean;
|
422
|
+
systemName: string;
|
423
|
+
displayName: string;
|
424
|
+
isArchived: boolean;
|
425
|
+
isRequired: boolean;
|
426
|
+
isUnique: boolean;
|
427
|
+
}>;
|
428
|
+
uploads: z.ZodArray<z.ZodObject<{
|
429
|
+
id: z.ZodString;
|
430
|
+
createdAt: z.ZodDate;
|
431
|
+
updatedAt: z.ZodDate;
|
432
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
433
|
+
customFieldId: z.ZodString;
|
434
|
+
upload: z.ZodObject<{
|
435
|
+
id: z.ZodString;
|
436
|
+
createdAt: z.ZodDate;
|
437
|
+
updatedAt: z.ZodDate;
|
438
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
439
|
+
bucketName: z.ZodString;
|
440
|
+
fileName: z.ZodString;
|
441
|
+
fileSize: z.ZodNumber;
|
442
|
+
fileKey: z.ZodString;
|
443
|
+
}, "strip", z.ZodTypeAny, {
|
444
|
+
id: string;
|
445
|
+
createdAt: Date;
|
446
|
+
updatedAt: Date;
|
447
|
+
deletedAt: Date | null;
|
448
|
+
fileName: string;
|
449
|
+
fileKey: string;
|
450
|
+
bucketName: string;
|
451
|
+
fileSize: number;
|
452
|
+
}, {
|
453
|
+
id: string;
|
454
|
+
createdAt: Date;
|
455
|
+
updatedAt: Date;
|
456
|
+
deletedAt: Date | null;
|
457
|
+
fileName: string;
|
458
|
+
fileKey: string;
|
459
|
+
bucketName: string;
|
460
|
+
fileSize: number;
|
461
|
+
}>;
|
462
|
+
}, "strip", z.ZodTypeAny, {
|
463
|
+
id: string;
|
464
|
+
createdAt: Date;
|
465
|
+
updatedAt: Date;
|
466
|
+
deletedAt: Date | null;
|
467
|
+
customFieldId: string;
|
468
|
+
upload: {
|
469
|
+
id: string;
|
470
|
+
createdAt: Date;
|
471
|
+
updatedAt: Date;
|
472
|
+
deletedAt: Date | null;
|
473
|
+
fileName: string;
|
474
|
+
fileKey: string;
|
475
|
+
bucketName: string;
|
476
|
+
fileSize: number;
|
477
|
+
};
|
478
|
+
}, {
|
479
|
+
id: string;
|
480
|
+
createdAt: Date;
|
481
|
+
updatedAt: Date;
|
482
|
+
deletedAt: Date | null;
|
483
|
+
customFieldId: string;
|
484
|
+
upload: {
|
485
|
+
id: string;
|
486
|
+
createdAt: Date;
|
487
|
+
updatedAt: Date;
|
488
|
+
deletedAt: Date | null;
|
489
|
+
fileName: string;
|
490
|
+
fileKey: string;
|
491
|
+
bucketName: string;
|
492
|
+
fileSize: number;
|
493
|
+
};
|
494
|
+
}>, "many">;
|
495
|
+
}, "strip", z.ZodTypeAny, {
|
496
|
+
id: string;
|
497
|
+
createdAt: Date;
|
498
|
+
updatedAt: Date;
|
499
|
+
deletedAt: Date | null;
|
500
|
+
attribute: {
|
501
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
502
|
+
id: string;
|
503
|
+
position: number;
|
504
|
+
createdAt: Date;
|
505
|
+
updatedAt: Date;
|
506
|
+
deletedAt: Date | null;
|
507
|
+
isDefault: boolean;
|
508
|
+
systemName: string;
|
509
|
+
displayName: string;
|
510
|
+
isArchived: boolean;
|
511
|
+
isRequired: boolean;
|
512
|
+
isUnique: boolean;
|
513
|
+
};
|
514
|
+
textValue: string | null;
|
515
|
+
booleanValue: boolean | null;
|
516
|
+
numberValue: number | null;
|
517
|
+
dateValue: Date | null;
|
518
|
+
uploads: {
|
519
|
+
id: string;
|
520
|
+
createdAt: Date;
|
521
|
+
updatedAt: Date;
|
522
|
+
deletedAt: Date | null;
|
523
|
+
customFieldId: string;
|
524
|
+
upload: {
|
525
|
+
id: string;
|
526
|
+
createdAt: Date;
|
527
|
+
updatedAt: Date;
|
528
|
+
deletedAt: Date | null;
|
529
|
+
fileName: string;
|
530
|
+
fileKey: string;
|
531
|
+
bucketName: string;
|
532
|
+
fileSize: number;
|
533
|
+
};
|
534
|
+
}[];
|
535
|
+
}, {
|
536
|
+
id: string;
|
537
|
+
createdAt: Date;
|
538
|
+
updatedAt: Date;
|
539
|
+
deletedAt: Date | null;
|
540
|
+
attribute: {
|
541
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
542
|
+
id: string;
|
543
|
+
position: number;
|
544
|
+
createdAt: Date;
|
545
|
+
updatedAt: Date;
|
546
|
+
deletedAt: Date | null;
|
547
|
+
isDefault: boolean;
|
548
|
+
systemName: string;
|
549
|
+
displayName: string;
|
550
|
+
isArchived: boolean;
|
551
|
+
isRequired: boolean;
|
552
|
+
isUnique: boolean;
|
553
|
+
};
|
554
|
+
textValue: string | null;
|
555
|
+
booleanValue: boolean | null;
|
556
|
+
numberValue: number | null;
|
557
|
+
dateValue: Date | null;
|
558
|
+
uploads: {
|
559
|
+
id: string;
|
560
|
+
createdAt: Date;
|
561
|
+
updatedAt: Date;
|
562
|
+
deletedAt: Date | null;
|
563
|
+
customFieldId: string;
|
564
|
+
upload: {
|
565
|
+
id: string;
|
566
|
+
createdAt: Date;
|
567
|
+
updatedAt: Date;
|
568
|
+
deletedAt: Date | null;
|
569
|
+
fileName: string;
|
570
|
+
fileKey: string;
|
571
|
+
bucketName: string;
|
572
|
+
fileSize: number;
|
573
|
+
};
|
574
|
+
}[];
|
575
|
+
}>, "many">;
|
18
576
|
}, "strip", z.ZodTypeAny, {
|
19
577
|
type: string;
|
20
578
|
id: string;
|
@@ -26,11 +584,52 @@ export declare const TicketSchema: z.ZodObject<{
|
|
26
584
|
createdAt: Date;
|
27
585
|
updatedAt: Date;
|
28
586
|
deletedAt: Date | null;
|
587
|
+
customFields: {
|
588
|
+
id: string;
|
589
|
+
createdAt: Date;
|
590
|
+
updatedAt: Date;
|
591
|
+
deletedAt: Date | null;
|
592
|
+
attribute: {
|
593
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
594
|
+
id: string;
|
595
|
+
position: number;
|
596
|
+
createdAt: Date;
|
597
|
+
updatedAt: Date;
|
598
|
+
deletedAt: Date | null;
|
599
|
+
isDefault: boolean;
|
600
|
+
systemName: string;
|
601
|
+
displayName: string;
|
602
|
+
isArchived: boolean;
|
603
|
+
isRequired: boolean;
|
604
|
+
isUnique: boolean;
|
605
|
+
};
|
606
|
+
textValue: string | null;
|
607
|
+
booleanValue: boolean | null;
|
608
|
+
numberValue: number | null;
|
609
|
+
dateValue: Date | null;
|
610
|
+
uploads: {
|
611
|
+
id: string;
|
612
|
+
createdAt: Date;
|
613
|
+
updatedAt: Date;
|
614
|
+
deletedAt: Date | null;
|
615
|
+
customFieldId: string;
|
616
|
+
upload: {
|
617
|
+
id: string;
|
618
|
+
createdAt: Date;
|
619
|
+
updatedAt: Date;
|
620
|
+
deletedAt: Date | null;
|
621
|
+
fileName: string;
|
622
|
+
fileKey: string;
|
623
|
+
bucketName: string;
|
624
|
+
fileSize: number;
|
625
|
+
};
|
626
|
+
}[];
|
627
|
+
}[];
|
29
628
|
contactId: string;
|
30
629
|
assigneeId: string;
|
31
630
|
creatorId: string;
|
32
631
|
reasonToAssign: string | null;
|
33
|
-
ticketNumber
|
632
|
+
ticketNumber?: number | undefined;
|
34
633
|
}, {
|
35
634
|
type: string;
|
36
635
|
id: string;
|
@@ -42,10 +641,70 @@ export declare const TicketSchema: z.ZodObject<{
|
|
42
641
|
createdAt: Date;
|
43
642
|
updatedAt: Date;
|
44
643
|
deletedAt: Date | null;
|
644
|
+
customFields: {
|
645
|
+
id: string;
|
646
|
+
createdAt: Date;
|
647
|
+
updatedAt: Date;
|
648
|
+
deletedAt: Date | null;
|
649
|
+
attribute: {
|
650
|
+
type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
|
651
|
+
id: string;
|
652
|
+
position: number;
|
653
|
+
createdAt: Date;
|
654
|
+
updatedAt: Date;
|
655
|
+
deletedAt: Date | null;
|
656
|
+
isDefault: boolean;
|
657
|
+
systemName: string;
|
658
|
+
displayName: string;
|
659
|
+
isArchived: boolean;
|
660
|
+
isRequired: boolean;
|
661
|
+
isUnique: boolean;
|
662
|
+
};
|
663
|
+
textValue: string | null;
|
664
|
+
booleanValue: boolean | null;
|
665
|
+
numberValue: number | null;
|
666
|
+
dateValue: Date | null;
|
667
|
+
uploads: {
|
668
|
+
id: string;
|
669
|
+
createdAt: Date;
|
670
|
+
updatedAt: Date;
|
671
|
+
deletedAt: Date | null;
|
672
|
+
customFieldId: string;
|
673
|
+
upload: {
|
674
|
+
id: string;
|
675
|
+
createdAt: Date;
|
676
|
+
updatedAt: Date;
|
677
|
+
deletedAt: Date | null;
|
678
|
+
fileName: string;
|
679
|
+
fileKey: string;
|
680
|
+
bucketName: string;
|
681
|
+
fileSize: number;
|
682
|
+
};
|
683
|
+
}[];
|
684
|
+
}[];
|
45
685
|
contactId: string;
|
46
686
|
assigneeId: string;
|
47
687
|
creatorId: string;
|
48
688
|
reasonToAssign: string | null;
|
49
|
-
ticketNumber
|
689
|
+
ticketNumber?: number | undefined;
|
690
|
+
}>;
|
691
|
+
export declare const TicketCountByContactSchema: z.ZodObject<{
|
692
|
+
total: z.ZodNumber;
|
693
|
+
open: z.ZodNumber;
|
694
|
+
pending: z.ZodNumber;
|
695
|
+
closed: z.ZodNumber;
|
696
|
+
solved: z.ZodNumber;
|
697
|
+
}, "strip", z.ZodTypeAny, {
|
698
|
+
total: number;
|
699
|
+
closed: number;
|
700
|
+
open: number;
|
701
|
+
pending: number;
|
702
|
+
solved: number;
|
703
|
+
}, {
|
704
|
+
total: number;
|
705
|
+
closed: number;
|
706
|
+
open: number;
|
707
|
+
pending: number;
|
708
|
+
solved: number;
|
50
709
|
}>;
|
51
710
|
//# sourceMappingURL=schema.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/ticket/schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/ticket/schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAKpB,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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