@kl1/contracts 1.0.33 → 1.0.34
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 +18 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +18 -3
- 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/contract.d.ts +110 -0
- package/dist/src/contract.d.ts.map +1 -1
- package/dist/src/mail/mail-server.d.ts +216 -0
- package/dist/src/mail/mail-server.d.ts.map +1 -0
- package/dist/src/platform-contact/schema.d.ts +30 -0
- package/dist/src/platform-contact/schema.d.ts.map +1 -0
- package/dist/src/telephony-cdr/index.d.ts +112 -1
- package/dist/src/telephony-cdr/index.d.ts.map +1 -1
- package/dist/src/telephony-cdr/validation.d.ts +46 -0
- package/dist/src/telephony-cdr/validation.d.ts.map +1 -1
- package/package.json +46 -47
@@ -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"}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import z from 'zod';
|
2
|
+
export declare const PlatformContactSchema: z.ZodObject<{
|
3
|
+
id: z.ZodString;
|
4
|
+
createdAt: z.ZodDate;
|
5
|
+
updatedAt: z.ZodDate;
|
6
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
7
|
+
contactId: z.ZodString;
|
8
|
+
channelId: z.ZodString;
|
9
|
+
config: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
10
|
+
type: z.ZodString;
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
12
|
+
type: string;
|
13
|
+
id: string;
|
14
|
+
createdAt: Date;
|
15
|
+
updatedAt: Date;
|
16
|
+
deletedAt: Date | null;
|
17
|
+
contactId: string;
|
18
|
+
channelId: string;
|
19
|
+
config: {};
|
20
|
+
}, {
|
21
|
+
type: string;
|
22
|
+
id: string;
|
23
|
+
createdAt: Date;
|
24
|
+
updatedAt: Date;
|
25
|
+
deletedAt: Date | null;
|
26
|
+
contactId: string;
|
27
|
+
channelId: string;
|
28
|
+
config: {};
|
29
|
+
}>;
|
30
|
+
//# sourceMappingURL=schema.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/platform-contact/schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAMpB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKhC,CAAC"}
|
@@ -1,8 +1,9 @@
|
|
1
1
|
import z from 'zod';
|
2
|
-
import { CreateTelephonyCdrSchema, GetAllTelephonyCdrSchema, GetRecentTelephonyCdrSchema } from './validation';
|
2
|
+
import { CreateTelephonyCdrSchema, GetAllTelephonyCdrSchema, GetExportTelephonyCdrSchema, GetRecentTelephonyCdrSchema } from './validation';
|
3
3
|
export type CreateTelephonyCdrRequest = z.infer<typeof CreateTelephonyCdrSchema>;
|
4
4
|
export type GetTelephonyCdrQuery = z.infer<typeof GetAllTelephonyCdrSchema>;
|
5
5
|
export type GetRecentTelephonyCdrQuery = z.infer<typeof GetRecentTelephonyCdrSchema>;
|
6
|
+
export type GetExportTelephonyCdrQuery = z.infer<typeof GetExportTelephonyCdrSchema>;
|
6
7
|
export declare const telephonyCdrContract: {
|
7
8
|
findAll: {
|
8
9
|
summary: "Get all telephony cdr.";
|
@@ -130,6 +131,16 @@ export declare const telephonyCdrContract: {
|
|
130
131
|
agentRingTime: number | null;
|
131
132
|
}[];
|
132
133
|
}>;
|
134
|
+
401: z.ZodObject<{
|
135
|
+
message: z.ZodString;
|
136
|
+
error: z.ZodAny;
|
137
|
+
}, "strip", z.ZodTypeAny, {
|
138
|
+
message: string;
|
139
|
+
error?: any;
|
140
|
+
}, {
|
141
|
+
message: string;
|
142
|
+
error?: any;
|
143
|
+
}>;
|
133
144
|
};
|
134
145
|
path: "telephony-cdr/";
|
135
146
|
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
@@ -275,6 +286,16 @@ export declare const telephonyCdrContract: {
|
|
275
286
|
agentRingTime: number | null;
|
276
287
|
}[];
|
277
288
|
}>;
|
289
|
+
401: z.ZodObject<{
|
290
|
+
message: z.ZodString;
|
291
|
+
error: z.ZodAny;
|
292
|
+
}, "strip", z.ZodTypeAny, {
|
293
|
+
message: string;
|
294
|
+
error?: any;
|
295
|
+
}, {
|
296
|
+
message: string;
|
297
|
+
error?: any;
|
298
|
+
}>;
|
278
299
|
};
|
279
300
|
path: "telephony-cdr/recordings";
|
280
301
|
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
@@ -438,6 +459,16 @@ export declare const telephonyCdrContract: {
|
|
438
459
|
agentRingTime: number | null;
|
439
460
|
}[];
|
440
461
|
}>;
|
462
|
+
401: z.ZodObject<{
|
463
|
+
message: z.ZodString;
|
464
|
+
error: z.ZodAny;
|
465
|
+
}, "strip", z.ZodTypeAny, {
|
466
|
+
message: string;
|
467
|
+
error?: any;
|
468
|
+
}, {
|
469
|
+
message: string;
|
470
|
+
error?: any;
|
471
|
+
}>;
|
441
472
|
};
|
442
473
|
path: "telephony-cdr/recent-calls";
|
443
474
|
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
@@ -457,5 +488,85 @@ export declare const telephonyCdrContract: {
|
|
457
488
|
'x-client-timezone'?: string | undefined;
|
458
489
|
}>>>;
|
459
490
|
};
|
491
|
+
export: {
|
492
|
+
summary: "Get recent telephony cdr.";
|
493
|
+
method: "GET";
|
494
|
+
query: z.ZodObject<{
|
495
|
+
page: z.ZodDefault<z.ZodNumber>;
|
496
|
+
pageSize: z.ZodDefault<z.ZodNumber>;
|
497
|
+
type: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
498
|
+
status: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
499
|
+
callFrom: z.ZodOptional<z.ZodString>;
|
500
|
+
callTo: z.ZodOptional<z.ZodString>;
|
501
|
+
result: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
502
|
+
callTags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
503
|
+
selectedDate: z.ZodOptional<z.ZodString>;
|
504
|
+
agentId: z.ZodOptional<z.ZodString>;
|
505
|
+
contact: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
506
|
+
callStatus: z.ZodOptional<z.ZodArray<z.ZodEnum<["incoming", "outgoing", "missed", "no_answered"]>, "many">>;
|
507
|
+
queueIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
508
|
+
notes: z.ZodOptional<z.ZodString>;
|
509
|
+
}, "strip", z.ZodTypeAny, {
|
510
|
+
page: number;
|
511
|
+
pageSize: number;
|
512
|
+
type?: string[] | undefined;
|
513
|
+
status?: string[] | undefined;
|
514
|
+
callFrom?: string | undefined;
|
515
|
+
callTo?: string | undefined;
|
516
|
+
result?: string[] | undefined;
|
517
|
+
callTags?: string[] | undefined;
|
518
|
+
selectedDate?: string | undefined;
|
519
|
+
agentId?: string | undefined;
|
520
|
+
contact?: string[] | undefined;
|
521
|
+
callStatus?: ("incoming" | "outgoing" | "missed" | "no_answered")[] | undefined;
|
522
|
+
queueIds?: string[] | undefined;
|
523
|
+
notes?: string | undefined;
|
524
|
+
}, {
|
525
|
+
page?: number | undefined;
|
526
|
+
pageSize?: number | undefined;
|
527
|
+
type?: string[] | undefined;
|
528
|
+
status?: string[] | undefined;
|
529
|
+
callFrom?: string | undefined;
|
530
|
+
callTo?: string | undefined;
|
531
|
+
result?: string[] | undefined;
|
532
|
+
callTags?: string[] | undefined;
|
533
|
+
selectedDate?: string | undefined;
|
534
|
+
agentId?: string | undefined;
|
535
|
+
contact?: string[] | undefined;
|
536
|
+
callStatus?: ("incoming" | "outgoing" | "missed" | "no_answered")[] | undefined;
|
537
|
+
queueIds?: string[] | undefined;
|
538
|
+
notes?: string | undefined;
|
539
|
+
}>;
|
540
|
+
responses: {
|
541
|
+
200: null;
|
542
|
+
401: z.ZodObject<{
|
543
|
+
message: z.ZodString;
|
544
|
+
error: z.ZodAny;
|
545
|
+
}, "strip", z.ZodTypeAny, {
|
546
|
+
message: string;
|
547
|
+
error?: any;
|
548
|
+
}, {
|
549
|
+
message: string;
|
550
|
+
error?: any;
|
551
|
+
}>;
|
552
|
+
};
|
553
|
+
path: "telephony-cdr/export";
|
554
|
+
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
555
|
+
'x-tenant': z.ZodString;
|
556
|
+
authorization: z.ZodString;
|
557
|
+
'x-code': z.ZodOptional<z.ZodString>;
|
558
|
+
'x-client-timezone': z.ZodDefault<z.ZodString>;
|
559
|
+
}, "strip", z.ZodTypeAny, {
|
560
|
+
'x-tenant': string;
|
561
|
+
authorization: string;
|
562
|
+
'x-client-timezone': string;
|
563
|
+
'x-code'?: string | undefined;
|
564
|
+
}, {
|
565
|
+
'x-tenant': string;
|
566
|
+
authorization: string;
|
567
|
+
'x-code'?: string | undefined;
|
568
|
+
'x-client-timezone'?: string | undefined;
|
569
|
+
}>>>;
|
570
|
+
};
|
460
571
|
};
|
461
572
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/telephony-cdr/index.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AACpB,OAAO,EACL,wBAAwB,EACxB,wBAAwB,EACxB,2BAA2B,EAC5B,MAAM,cAAc,CAAC;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/telephony-cdr/index.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AACpB,OAAO,EACL,wBAAwB,EACxB,wBAAwB,EACxB,2BAA2B,EAC3B,2BAA2B,EAC5B,MAAM,cAAc,CAAC;AAStB,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAC7C,OAAO,wBAAwB,CAChC,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE5E,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,2BAA2B,CACnC,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,2BAA2B,CACnC,CAAC;AAGF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkEhC,CAAC"}
|
@@ -119,4 +119,50 @@ export declare const GetRecentTelephonyCdrSchema: z.ZodObject<{
|
|
119
119
|
queueIds?: string[] | undefined;
|
120
120
|
notes?: string | undefined;
|
121
121
|
}>;
|
122
|
+
export declare const GetExportTelephonyCdrSchema: z.ZodObject<{
|
123
|
+
page: z.ZodDefault<z.ZodNumber>;
|
124
|
+
pageSize: z.ZodDefault<z.ZodNumber>;
|
125
|
+
type: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
126
|
+
status: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
127
|
+
callFrom: z.ZodOptional<z.ZodString>;
|
128
|
+
callTo: z.ZodOptional<z.ZodString>;
|
129
|
+
result: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
130
|
+
callTags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
131
|
+
selectedDate: z.ZodOptional<z.ZodString>;
|
132
|
+
agentId: z.ZodOptional<z.ZodString>;
|
133
|
+
contact: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
134
|
+
callStatus: z.ZodOptional<z.ZodArray<z.ZodEnum<["incoming", "outgoing", "missed", "no_answered"]>, "many">>;
|
135
|
+
queueIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
136
|
+
notes: z.ZodOptional<z.ZodString>;
|
137
|
+
}, "strip", z.ZodTypeAny, {
|
138
|
+
page: number;
|
139
|
+
pageSize: number;
|
140
|
+
type?: string[] | undefined;
|
141
|
+
status?: string[] | undefined;
|
142
|
+
callFrom?: string | undefined;
|
143
|
+
callTo?: string | undefined;
|
144
|
+
result?: string[] | undefined;
|
145
|
+
callTags?: string[] | undefined;
|
146
|
+
selectedDate?: string | undefined;
|
147
|
+
agentId?: string | undefined;
|
148
|
+
contact?: string[] | undefined;
|
149
|
+
callStatus?: ("incoming" | "outgoing" | "missed" | "no_answered")[] | undefined;
|
150
|
+
queueIds?: string[] | undefined;
|
151
|
+
notes?: string | undefined;
|
152
|
+
}, {
|
153
|
+
page?: number | undefined;
|
154
|
+
pageSize?: number | undefined;
|
155
|
+
type?: string[] | undefined;
|
156
|
+
status?: string[] | undefined;
|
157
|
+
callFrom?: string | undefined;
|
158
|
+
callTo?: string | undefined;
|
159
|
+
result?: string[] | undefined;
|
160
|
+
callTags?: string[] | undefined;
|
161
|
+
selectedDate?: string | undefined;
|
162
|
+
agentId?: string | undefined;
|
163
|
+
contact?: string[] | undefined;
|
164
|
+
callStatus?: ("incoming" | "outgoing" | "missed" | "no_answered")[] | undefined;
|
165
|
+
queueIds?: string[] | undefined;
|
166
|
+
notes?: string | undefined;
|
167
|
+
}>;
|
122
168
|
//# sourceMappingURL=validation.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../src/telephony-cdr/validation.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAGpB,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAenC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOnC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAetC,CAAC"}
|
1
|
+
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../src/telephony-cdr/validation.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAGpB,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAenC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOnC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAetC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA8B,CAAC"}
|
package/package.json
CHANGED
@@ -1,51 +1,50 @@
|
|
1
1
|
{
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
2
|
+
"name": "@kl1/contracts",
|
3
|
+
"version": "1.0.34",
|
4
|
+
"description": "",
|
5
|
+
"main": "dist/index.js",
|
6
|
+
"types": "dist/src/index.d.ts",
|
7
|
+
"module": "dist/index.mjs",
|
8
|
+
"files": [
|
9
|
+
"dist"
|
10
|
+
],
|
11
|
+
"keywords": [],
|
12
|
+
"author": "",
|
13
|
+
"license": "ISC",
|
14
|
+
"scripts": {
|
15
|
+
"build": "tsup src/index.ts --sourcemap --format esm,cjs",
|
16
|
+
"types": "tsc --emitDeclarationOnly --declaration",
|
17
|
+
"watch:build": "npm-watch build",
|
18
|
+
"watch:types": "npm-watch types",
|
19
|
+
"dev": "concurrently \"npm:watch:build\" \"npm:watch:types\"",
|
20
|
+
"produce": "npm run build && npm run types"
|
21
|
+
},
|
22
|
+
"watch": {
|
23
|
+
"build": {
|
24
|
+
"patterns": [
|
25
|
+
"src"
|
26
|
+
],
|
27
|
+
"extensions": "ts",
|
28
|
+
"quite": true
|
21
29
|
},
|
22
|
-
"
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
"quite": true
|
29
|
-
},
|
30
|
-
"types": {
|
31
|
-
"patterns": [
|
32
|
-
"src"
|
33
|
-
],
|
34
|
-
"extensions": "ts",
|
35
|
-
"quite": true
|
36
|
-
}
|
37
|
-
},
|
38
|
-
"peerDependencies": {
|
39
|
-
"@ts-rest/core": "^3.30.5",
|
40
|
-
"zod": "^3.22.4"
|
41
|
-
},
|
42
|
-
"devDependencies": {
|
43
|
-
"concurrently": "^8.2.2",
|
44
|
-
"npm-watch": "^0.11.0",
|
45
|
-
"tsup": "^8.0.1",
|
46
|
-
"typescript": "^5.3.3"
|
47
|
-
},
|
48
|
-
"dependencies": {
|
49
|
-
"zod": "^3.22.4"
|
30
|
+
"types": {
|
31
|
+
"patterns": [
|
32
|
+
"src"
|
33
|
+
],
|
34
|
+
"extensions": "ts",
|
35
|
+
"quite": true
|
50
36
|
}
|
37
|
+
},
|
38
|
+
"peerDependencies": {
|
39
|
+
"@ts-rest/core": "^3.30.5",
|
40
|
+
"zod": "^3.22.4"
|
41
|
+
},
|
42
|
+
"devDependencies": {
|
43
|
+
"concurrently": "^8.2.2",
|
44
|
+
"npm-watch": "^0.11.0",
|
45
|
+
"tsup": "^8.0.1"
|
46
|
+
},
|
47
|
+
"dependencies": {
|
48
|
+
"zod": "^3.22.4"
|
49
|
+
}
|
51
50
|
}
|