@kl1/contracts 1.0.15 → 1.0.17
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 +1551 -851
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1551 -851
- package/dist/index.mjs.map +1 -1
- package/dist/src/app/index.d.ts +17 -0
- package/dist/src/app/index.d.ts.map +1 -0
- package/dist/src/call-log/schema.d.ts +2 -2
- package/dist/src/chat/index.d.ts +1437 -3140
- package/dist/src/chat/index.d.ts.map +1 -1
- package/dist/src/chat/schema.d.ts +256 -47
- package/dist/src/chat/schema.d.ts.map +1 -1
- package/dist/src/chat/validation.d.ts +5327 -92
- package/dist/src/chat/validation.d.ts.map +1 -1
- package/dist/src/contact/index.d.ts +4079 -581
- package/dist/src/contact/index.d.ts.map +1 -1
- package/dist/src/contact/validation.d.ts +3148 -0
- package/dist/src/contact/validation.d.ts.map +1 -1
- package/dist/src/contract.d.ts +25332 -13715
- package/dist/src/contract.d.ts.map +1 -1
- package/dist/src/cx-log/index.d.ts +8 -8
- package/dist/src/cx-log/schema.d.ts +4 -4
- package/dist/src/mail/mail-contract.d.ts +1316 -1316
- package/dist/src/mail/mail-server.d.ts +216 -0
- package/dist/src/mail/mail-server.d.ts.map +1 -0
- package/dist/src/mail/message-contract.d.ts +56 -56
- package/dist/src/mail/room-contract.d.ts +1254 -1254
- package/dist/src/mail/schemas/message.schema.d.ts +33 -33
- package/dist/src/mail/schemas/room-validation.schema.d.ts +408 -408
- package/dist/src/mail/schemas/room.schema.d.ts +270 -270
- package/dist/src/messenger/index.d.ts +5232 -54
- 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 +4662 -0
- package/dist/src/ticket/index.d.ts.map +1 -0
- package/dist/src/ticket/schema.d.ts +677 -5
- package/dist/src/ticket/schema.d.ts.map +1 -1
- package/dist/src/ticket/validation.d.ts +637 -0
- package/dist/src/ticket/validation.d.ts.map +1 -0
- package/package.json +1 -1
@@ -0,0 +1,216 @@
|
|
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
|
@@ -0,0 +1 @@
|
|
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"}
|
@@ -473,6 +473,30 @@ export declare const messageContract: {
|
|
473
473
|
updatedAt: Date;
|
474
474
|
deletedAt: Date | null;
|
475
475
|
roomId: string;
|
476
|
+
attachments: {
|
477
|
+
id: string;
|
478
|
+
createdAt: Date;
|
479
|
+
updatedAt: Date;
|
480
|
+
deletedAt: Date | null;
|
481
|
+
fileName: string;
|
482
|
+
fileType: string;
|
483
|
+
upload: {
|
484
|
+
id: string;
|
485
|
+
createdAt: Date;
|
486
|
+
updatedAt: Date;
|
487
|
+
deletedAt: Date | null;
|
488
|
+
bucket_name: string;
|
489
|
+
file_name: string;
|
490
|
+
file_key: string;
|
491
|
+
file_size: number;
|
492
|
+
file_url: string;
|
493
|
+
extension_name: string;
|
494
|
+
};
|
495
|
+
roomId: string;
|
496
|
+
messageId: string;
|
497
|
+
emailEngineAttachmentId: string;
|
498
|
+
uploadId: string;
|
499
|
+
}[];
|
476
500
|
subject: string;
|
477
501
|
textPlain: string;
|
478
502
|
textHtml: string;
|
@@ -514,6 +538,15 @@ export declare const messageContract: {
|
|
514
538
|
updatedAt: Date;
|
515
539
|
deletedAt: Date | null;
|
516
540
|
}[];
|
541
|
+
}, {
|
542
|
+
id: string;
|
543
|
+
direction: string;
|
544
|
+
action: string;
|
545
|
+
date: Date;
|
546
|
+
createdAt: Date;
|
547
|
+
updatedAt: Date;
|
548
|
+
deletedAt: Date | null;
|
549
|
+
roomId: string;
|
517
550
|
attachments: {
|
518
551
|
id: string;
|
519
552
|
createdAt: Date;
|
@@ -538,15 +571,6 @@ export declare const messageContract: {
|
|
538
571
|
emailEngineAttachmentId: string;
|
539
572
|
uploadId: string;
|
540
573
|
}[];
|
541
|
-
}, {
|
542
|
-
id: string;
|
543
|
-
direction: string;
|
544
|
-
action: string;
|
545
|
-
date: Date;
|
546
|
-
createdAt: Date;
|
547
|
-
updatedAt: Date;
|
548
|
-
deletedAt: Date | null;
|
549
|
-
roomId: string;
|
550
574
|
subject: string;
|
551
575
|
textPlain: string;
|
552
576
|
textHtml: string;
|
@@ -588,6 +612,17 @@ export declare const messageContract: {
|
|
588
612
|
updatedAt: Date;
|
589
613
|
deletedAt: Date | null;
|
590
614
|
}[];
|
615
|
+
}>;
|
616
|
+
}, "strip", z.ZodTypeAny, {
|
617
|
+
data: {
|
618
|
+
id: string;
|
619
|
+
direction: string;
|
620
|
+
action: string;
|
621
|
+
date: Date;
|
622
|
+
createdAt: Date;
|
623
|
+
updatedAt: Date;
|
624
|
+
deletedAt: Date | null;
|
625
|
+
roomId: string;
|
591
626
|
attachments: {
|
592
627
|
id: string;
|
593
628
|
createdAt: Date;
|
@@ -612,17 +647,6 @@ export declare const messageContract: {
|
|
612
647
|
emailEngineAttachmentId: string;
|
613
648
|
uploadId: string;
|
614
649
|
}[];
|
615
|
-
}>;
|
616
|
-
}, "strip", z.ZodTypeAny, {
|
617
|
-
data: {
|
618
|
-
id: string;
|
619
|
-
direction: string;
|
620
|
-
action: string;
|
621
|
-
date: Date;
|
622
|
-
createdAt: Date;
|
623
|
-
updatedAt: Date;
|
624
|
-
deletedAt: Date | null;
|
625
|
-
roomId: string;
|
626
650
|
subject: string;
|
627
651
|
textPlain: string;
|
628
652
|
textHtml: string;
|
@@ -664,6 +688,18 @@ export declare const messageContract: {
|
|
664
688
|
updatedAt: Date;
|
665
689
|
deletedAt: Date | null;
|
666
690
|
}[];
|
691
|
+
};
|
692
|
+
requestId: string;
|
693
|
+
}, {
|
694
|
+
data: {
|
695
|
+
id: string;
|
696
|
+
direction: string;
|
697
|
+
action: string;
|
698
|
+
date: Date;
|
699
|
+
createdAt: Date;
|
700
|
+
updatedAt: Date;
|
701
|
+
deletedAt: Date | null;
|
702
|
+
roomId: string;
|
667
703
|
attachments: {
|
668
704
|
id: string;
|
669
705
|
createdAt: Date;
|
@@ -688,18 +724,6 @@ export declare const messageContract: {
|
|
688
724
|
emailEngineAttachmentId: string;
|
689
725
|
uploadId: string;
|
690
726
|
}[];
|
691
|
-
};
|
692
|
-
requestId: string;
|
693
|
-
}, {
|
694
|
-
data: {
|
695
|
-
id: string;
|
696
|
-
direction: string;
|
697
|
-
action: string;
|
698
|
-
date: Date;
|
699
|
-
createdAt: Date;
|
700
|
-
updatedAt: Date;
|
701
|
-
deletedAt: Date | null;
|
702
|
-
roomId: string;
|
703
727
|
subject: string;
|
704
728
|
textPlain: string;
|
705
729
|
textHtml: string;
|
@@ -741,30 +765,6 @@ export declare const messageContract: {
|
|
741
765
|
updatedAt: Date;
|
742
766
|
deletedAt: Date | null;
|
743
767
|
}[];
|
744
|
-
attachments: {
|
745
|
-
id: string;
|
746
|
-
createdAt: Date;
|
747
|
-
updatedAt: Date;
|
748
|
-
deletedAt: Date | null;
|
749
|
-
fileName: string;
|
750
|
-
fileType: string;
|
751
|
-
upload: {
|
752
|
-
id: string;
|
753
|
-
createdAt: Date;
|
754
|
-
updatedAt: Date;
|
755
|
-
deletedAt: Date | null;
|
756
|
-
bucket_name: string;
|
757
|
-
file_name: string;
|
758
|
-
file_key: string;
|
759
|
-
file_size: number;
|
760
|
-
file_url: string;
|
761
|
-
extension_name: string;
|
762
|
-
};
|
763
|
-
roomId: string;
|
764
|
-
messageId: string;
|
765
|
-
emailEngineAttachmentId: string;
|
766
|
-
uploadId: string;
|
767
|
-
}[];
|
768
768
|
};
|
769
769
|
requestId: string;
|
770
770
|
}>;
|