@kl1/contracts 1.0.31 → 1.0.33
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 +1634 -1517
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1632 -1517
- package/dist/index.mjs.map +1 -1
- package/dist/src/attribute/validation.d.ts.map +1 -1
- package/dist/src/call-log/validation.d.ts +2 -2
- package/dist/src/channel/index.d.ts +527 -285
- package/dist/src/channel/index.d.ts.map +1 -1
- package/dist/src/channel/validation.d.ts +0 -285
- package/dist/src/channel/validation.d.ts.map +1 -1
- package/dist/src/chat/index.d.ts +73 -72
- package/dist/src/chat/index.d.ts.map +1 -1
- package/dist/src/chat/schema.d.ts +12 -12
- package/dist/src/chat/validation.d.ts +22 -22
- package/dist/src/company/index.d.ts +0 -80
- package/dist/src/company/index.d.ts.map +1 -1
- package/dist/src/company/validation.d.ts +0 -40
- package/dist/src/company/validation.d.ts.map +1 -1
- package/dist/src/contract.d.ts +2004 -1385
- package/dist/src/contract.d.ts.map +1 -1
- package/dist/src/cx-log/index.d.ts +22 -22
- package/dist/src/cx-log/schema.d.ts +16 -16
- package/dist/src/evaluate-form/schema.d.ts +6 -6
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/messenger/index.d.ts +14 -14
- package/dist/src/telephony-cdr/index.d.ts +458 -1
- package/dist/src/telephony-cdr/index.d.ts.map +1 -1
- package/dist/src/telephony-cdr/validation.d.ts +74 -0
- package/dist/src/telephony-cdr/validation.d.ts.map +1 -1
- package/package.json +47 -46
@@ -1,4 +1,461 @@
|
|
1
1
|
import z from 'zod';
|
2
|
-
import { CreateTelephonyCdrSchema } from './validation';
|
2
|
+
import { CreateTelephonyCdrSchema, GetAllTelephonyCdrSchema, GetRecentTelephonyCdrSchema } from './validation';
|
3
3
|
export type CreateTelephonyCdrRequest = z.infer<typeof CreateTelephonyCdrSchema>;
|
4
|
+
export type GetTelephonyCdrQuery = z.infer<typeof GetAllTelephonyCdrSchema>;
|
5
|
+
export type GetRecentTelephonyCdrQuery = z.infer<typeof GetRecentTelephonyCdrSchema>;
|
6
|
+
export declare const telephonyCdrContract: {
|
7
|
+
findAll: {
|
8
|
+
summary: "Get all telephony cdr.";
|
9
|
+
method: "GET";
|
10
|
+
query: z.ZodObject<{
|
11
|
+
page: z.ZodDefault<z.ZodNumber>;
|
12
|
+
pageSize: z.ZodDefault<z.ZodNumber>;
|
13
|
+
selectedDate: z.ZodOptional<z.ZodString>;
|
14
|
+
type: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
15
|
+
status: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
16
|
+
callFrom: z.ZodOptional<z.ZodString>;
|
17
|
+
callTo: z.ZodOptional<z.ZodString>;
|
18
|
+
trunk: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
20
|
+
page: number;
|
21
|
+
pageSize: number;
|
22
|
+
selectedDate?: string | undefined;
|
23
|
+
type?: string[] | undefined;
|
24
|
+
status?: string[] | undefined;
|
25
|
+
callFrom?: string | undefined;
|
26
|
+
callTo?: string | undefined;
|
27
|
+
trunk?: string[] | undefined;
|
28
|
+
}, {
|
29
|
+
page?: number | undefined;
|
30
|
+
pageSize?: number | undefined;
|
31
|
+
selectedDate?: string | undefined;
|
32
|
+
type?: string[] | undefined;
|
33
|
+
status?: string[] | undefined;
|
34
|
+
callFrom?: string | undefined;
|
35
|
+
callTo?: string | undefined;
|
36
|
+
trunk?: string[] | undefined;
|
37
|
+
}>;
|
38
|
+
responses: {
|
39
|
+
200: z.ZodObject<{
|
40
|
+
requestId: z.ZodString;
|
41
|
+
total: z.ZodNumber;
|
42
|
+
page: z.ZodNumber;
|
43
|
+
pageSize: z.ZodNumber;
|
44
|
+
telephonyCdrs: z.ZodArray<z.ZodObject<{
|
45
|
+
uniqueCallId: z.ZodString;
|
46
|
+
timeStart: z.ZodString;
|
47
|
+
callFrom: z.ZodString;
|
48
|
+
callTo: z.ZodString;
|
49
|
+
callDuration: z.ZodNullable<z.ZodNumber>;
|
50
|
+
talkDuration: z.ZodNullable<z.ZodNumber>;
|
51
|
+
srcTrunkName: z.ZodNullable<z.ZodString>;
|
52
|
+
dstTrunkName: z.ZodNullable<z.ZodString>;
|
53
|
+
pinCode: z.ZodNullable<z.ZodString>;
|
54
|
+
status: z.ZodString;
|
55
|
+
type: z.ZodString;
|
56
|
+
recording: z.ZodNullable<z.ZodString>;
|
57
|
+
didNumber: z.ZodNullable<z.ZodString>;
|
58
|
+
agentRingTime: z.ZodNullable<z.ZodNumber>;
|
59
|
+
}, "strip", z.ZodTypeAny, {
|
60
|
+
type: string;
|
61
|
+
recording: string | null;
|
62
|
+
status: string;
|
63
|
+
uniqueCallId: string;
|
64
|
+
timeStart: string;
|
65
|
+
callFrom: string;
|
66
|
+
callTo: string;
|
67
|
+
callDuration: number | null;
|
68
|
+
talkDuration: number | null;
|
69
|
+
srcTrunkName: string | null;
|
70
|
+
dstTrunkName: string | null;
|
71
|
+
pinCode: string | null;
|
72
|
+
didNumber: string | null;
|
73
|
+
agentRingTime: number | null;
|
74
|
+
}, {
|
75
|
+
type: string;
|
76
|
+
recording: string | null;
|
77
|
+
status: string;
|
78
|
+
uniqueCallId: string;
|
79
|
+
timeStart: string;
|
80
|
+
callFrom: string;
|
81
|
+
callTo: string;
|
82
|
+
callDuration: number | null;
|
83
|
+
talkDuration: number | null;
|
84
|
+
srcTrunkName: string | null;
|
85
|
+
dstTrunkName: string | null;
|
86
|
+
pinCode: string | null;
|
87
|
+
didNumber: string | null;
|
88
|
+
agentRingTime: number | null;
|
89
|
+
}>, "many">;
|
90
|
+
}, "strip", z.ZodTypeAny, {
|
91
|
+
total: number;
|
92
|
+
page: number;
|
93
|
+
pageSize: number;
|
94
|
+
requestId: string;
|
95
|
+
telephonyCdrs: {
|
96
|
+
type: string;
|
97
|
+
recording: string | null;
|
98
|
+
status: string;
|
99
|
+
uniqueCallId: string;
|
100
|
+
timeStart: string;
|
101
|
+
callFrom: string;
|
102
|
+
callTo: string;
|
103
|
+
callDuration: number | null;
|
104
|
+
talkDuration: number | null;
|
105
|
+
srcTrunkName: string | null;
|
106
|
+
dstTrunkName: string | null;
|
107
|
+
pinCode: string | null;
|
108
|
+
didNumber: string | null;
|
109
|
+
agentRingTime: number | null;
|
110
|
+
}[];
|
111
|
+
}, {
|
112
|
+
total: number;
|
113
|
+
page: number;
|
114
|
+
pageSize: number;
|
115
|
+
requestId: string;
|
116
|
+
telephonyCdrs: {
|
117
|
+
type: string;
|
118
|
+
recording: string | null;
|
119
|
+
status: string;
|
120
|
+
uniqueCallId: string;
|
121
|
+
timeStart: string;
|
122
|
+
callFrom: string;
|
123
|
+
callTo: string;
|
124
|
+
callDuration: number | null;
|
125
|
+
talkDuration: number | null;
|
126
|
+
srcTrunkName: string | null;
|
127
|
+
dstTrunkName: string | null;
|
128
|
+
pinCode: string | null;
|
129
|
+
didNumber: string | null;
|
130
|
+
agentRingTime: number | null;
|
131
|
+
}[];
|
132
|
+
}>;
|
133
|
+
};
|
134
|
+
path: "telephony-cdr/";
|
135
|
+
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
136
|
+
'x-tenant': z.ZodString;
|
137
|
+
authorization: z.ZodString;
|
138
|
+
'x-code': z.ZodOptional<z.ZodString>;
|
139
|
+
'x-client-timezone': z.ZodDefault<z.ZodString>;
|
140
|
+
}, "strip", z.ZodTypeAny, {
|
141
|
+
'x-tenant': string;
|
142
|
+
authorization: string;
|
143
|
+
'x-client-timezone': string;
|
144
|
+
'x-code'?: string | undefined;
|
145
|
+
}, {
|
146
|
+
'x-tenant': string;
|
147
|
+
authorization: string;
|
148
|
+
'x-code'?: string | undefined;
|
149
|
+
'x-client-timezone'?: string | undefined;
|
150
|
+
}>>>;
|
151
|
+
};
|
152
|
+
getRecordings: {
|
153
|
+
summary: "Get all telephony cdr.";
|
154
|
+
method: "GET";
|
155
|
+
query: z.ZodObject<{
|
156
|
+
page: z.ZodDefault<z.ZodNumber>;
|
157
|
+
pageSize: z.ZodDefault<z.ZodNumber>;
|
158
|
+
selectedDate: z.ZodOptional<z.ZodString>;
|
159
|
+
type: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
160
|
+
status: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
161
|
+
callFrom: z.ZodOptional<z.ZodString>;
|
162
|
+
callTo: z.ZodOptional<z.ZodString>;
|
163
|
+
trunk: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
164
|
+
}, "strip", z.ZodTypeAny, {
|
165
|
+
page: number;
|
166
|
+
pageSize: number;
|
167
|
+
selectedDate?: string | undefined;
|
168
|
+
type?: string[] | undefined;
|
169
|
+
status?: string[] | undefined;
|
170
|
+
callFrom?: string | undefined;
|
171
|
+
callTo?: string | undefined;
|
172
|
+
trunk?: string[] | undefined;
|
173
|
+
}, {
|
174
|
+
page?: number | undefined;
|
175
|
+
pageSize?: number | undefined;
|
176
|
+
selectedDate?: string | undefined;
|
177
|
+
type?: string[] | undefined;
|
178
|
+
status?: string[] | undefined;
|
179
|
+
callFrom?: string | undefined;
|
180
|
+
callTo?: string | undefined;
|
181
|
+
trunk?: string[] | undefined;
|
182
|
+
}>;
|
183
|
+
responses: {
|
184
|
+
200: z.ZodObject<{
|
185
|
+
requestId: z.ZodString;
|
186
|
+
total: z.ZodNumber;
|
187
|
+
page: z.ZodNumber;
|
188
|
+
pageSize: z.ZodNumber;
|
189
|
+
telephonyCdrs: z.ZodArray<z.ZodObject<{
|
190
|
+
uniqueCallId: z.ZodString;
|
191
|
+
timeStart: z.ZodString;
|
192
|
+
callFrom: z.ZodString;
|
193
|
+
callTo: z.ZodString;
|
194
|
+
callDuration: z.ZodNullable<z.ZodNumber>;
|
195
|
+
talkDuration: z.ZodNullable<z.ZodNumber>;
|
196
|
+
srcTrunkName: z.ZodNullable<z.ZodString>;
|
197
|
+
dstTrunkName: z.ZodNullable<z.ZodString>;
|
198
|
+
pinCode: z.ZodNullable<z.ZodString>;
|
199
|
+
status: z.ZodString;
|
200
|
+
type: z.ZodString;
|
201
|
+
recording: z.ZodNullable<z.ZodString>;
|
202
|
+
didNumber: z.ZodNullable<z.ZodString>;
|
203
|
+
agentRingTime: z.ZodNullable<z.ZodNumber>;
|
204
|
+
}, "strip", z.ZodTypeAny, {
|
205
|
+
type: string;
|
206
|
+
recording: string | null;
|
207
|
+
status: string;
|
208
|
+
uniqueCallId: string;
|
209
|
+
timeStart: string;
|
210
|
+
callFrom: string;
|
211
|
+
callTo: string;
|
212
|
+
callDuration: number | null;
|
213
|
+
talkDuration: number | null;
|
214
|
+
srcTrunkName: string | null;
|
215
|
+
dstTrunkName: string | null;
|
216
|
+
pinCode: string | null;
|
217
|
+
didNumber: string | null;
|
218
|
+
agentRingTime: number | null;
|
219
|
+
}, {
|
220
|
+
type: string;
|
221
|
+
recording: string | null;
|
222
|
+
status: string;
|
223
|
+
uniqueCallId: string;
|
224
|
+
timeStart: string;
|
225
|
+
callFrom: string;
|
226
|
+
callTo: string;
|
227
|
+
callDuration: number | null;
|
228
|
+
talkDuration: number | null;
|
229
|
+
srcTrunkName: string | null;
|
230
|
+
dstTrunkName: string | null;
|
231
|
+
pinCode: string | null;
|
232
|
+
didNumber: string | null;
|
233
|
+
agentRingTime: number | null;
|
234
|
+
}>, "many">;
|
235
|
+
}, "strip", z.ZodTypeAny, {
|
236
|
+
total: number;
|
237
|
+
page: number;
|
238
|
+
pageSize: number;
|
239
|
+
requestId: string;
|
240
|
+
telephonyCdrs: {
|
241
|
+
type: string;
|
242
|
+
recording: string | null;
|
243
|
+
status: string;
|
244
|
+
uniqueCallId: string;
|
245
|
+
timeStart: string;
|
246
|
+
callFrom: string;
|
247
|
+
callTo: string;
|
248
|
+
callDuration: number | null;
|
249
|
+
talkDuration: number | null;
|
250
|
+
srcTrunkName: string | null;
|
251
|
+
dstTrunkName: string | null;
|
252
|
+
pinCode: string | null;
|
253
|
+
didNumber: string | null;
|
254
|
+
agentRingTime: number | null;
|
255
|
+
}[];
|
256
|
+
}, {
|
257
|
+
total: number;
|
258
|
+
page: number;
|
259
|
+
pageSize: number;
|
260
|
+
requestId: string;
|
261
|
+
telephonyCdrs: {
|
262
|
+
type: string;
|
263
|
+
recording: string | null;
|
264
|
+
status: string;
|
265
|
+
uniqueCallId: string;
|
266
|
+
timeStart: string;
|
267
|
+
callFrom: string;
|
268
|
+
callTo: string;
|
269
|
+
callDuration: number | null;
|
270
|
+
talkDuration: number | null;
|
271
|
+
srcTrunkName: string | null;
|
272
|
+
dstTrunkName: string | null;
|
273
|
+
pinCode: string | null;
|
274
|
+
didNumber: string | null;
|
275
|
+
agentRingTime: number | null;
|
276
|
+
}[];
|
277
|
+
}>;
|
278
|
+
};
|
279
|
+
path: "telephony-cdr/recordings";
|
280
|
+
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
281
|
+
'x-tenant': z.ZodString;
|
282
|
+
authorization: z.ZodString;
|
283
|
+
'x-code': z.ZodOptional<z.ZodString>;
|
284
|
+
'x-client-timezone': z.ZodDefault<z.ZodString>;
|
285
|
+
}, "strip", z.ZodTypeAny, {
|
286
|
+
'x-tenant': string;
|
287
|
+
authorization: string;
|
288
|
+
'x-client-timezone': string;
|
289
|
+
'x-code'?: string | undefined;
|
290
|
+
}, {
|
291
|
+
'x-tenant': string;
|
292
|
+
authorization: string;
|
293
|
+
'x-code'?: string | undefined;
|
294
|
+
'x-client-timezone'?: string | undefined;
|
295
|
+
}>>>;
|
296
|
+
};
|
297
|
+
getRecentCall: {
|
298
|
+
summary: "Get recent telephony cdr.";
|
299
|
+
method: "GET";
|
300
|
+
query: z.ZodObject<{
|
301
|
+
page: z.ZodDefault<z.ZodNumber>;
|
302
|
+
pageSize: z.ZodDefault<z.ZodNumber>;
|
303
|
+
type: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
304
|
+
status: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
305
|
+
callFrom: z.ZodOptional<z.ZodString>;
|
306
|
+
callTo: z.ZodOptional<z.ZodString>;
|
307
|
+
result: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
308
|
+
callTags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
309
|
+
selectedDate: z.ZodOptional<z.ZodString>;
|
310
|
+
agentId: z.ZodOptional<z.ZodString>;
|
311
|
+
contact: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
312
|
+
callStatus: z.ZodOptional<z.ZodArray<z.ZodEnum<["incoming", "outgoing", "missed", "no_answered"]>, "many">>;
|
313
|
+
queueIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
314
|
+
notes: z.ZodOptional<z.ZodString>;
|
315
|
+
}, "strip", z.ZodTypeAny, {
|
316
|
+
page: number;
|
317
|
+
pageSize: number;
|
318
|
+
type?: string[] | undefined;
|
319
|
+
status?: string[] | undefined;
|
320
|
+
callFrom?: string | undefined;
|
321
|
+
callTo?: string | undefined;
|
322
|
+
result?: string[] | undefined;
|
323
|
+
callTags?: string[] | undefined;
|
324
|
+
selectedDate?: string | undefined;
|
325
|
+
agentId?: string | undefined;
|
326
|
+
contact?: string[] | undefined;
|
327
|
+
callStatus?: ("incoming" | "outgoing" | "missed" | "no_answered")[] | undefined;
|
328
|
+
queueIds?: string[] | undefined;
|
329
|
+
notes?: string | undefined;
|
330
|
+
}, {
|
331
|
+
page?: number | undefined;
|
332
|
+
pageSize?: number | undefined;
|
333
|
+
type?: string[] | undefined;
|
334
|
+
status?: string[] | undefined;
|
335
|
+
callFrom?: string | undefined;
|
336
|
+
callTo?: string | undefined;
|
337
|
+
result?: string[] | undefined;
|
338
|
+
callTags?: string[] | undefined;
|
339
|
+
selectedDate?: string | undefined;
|
340
|
+
agentId?: string | undefined;
|
341
|
+
contact?: string[] | undefined;
|
342
|
+
callStatus?: ("incoming" | "outgoing" | "missed" | "no_answered")[] | undefined;
|
343
|
+
queueIds?: string[] | undefined;
|
344
|
+
notes?: string | undefined;
|
345
|
+
}>;
|
346
|
+
responses: {
|
347
|
+
200: z.ZodObject<{
|
348
|
+
requestId: z.ZodString;
|
349
|
+
total: z.ZodNumber;
|
350
|
+
page: z.ZodNumber;
|
351
|
+
pageSize: z.ZodNumber;
|
352
|
+
telephonyCdrs: z.ZodArray<z.ZodObject<{
|
353
|
+
uniqueCallId: z.ZodString;
|
354
|
+
timeStart: z.ZodString;
|
355
|
+
callFrom: z.ZodString;
|
356
|
+
callTo: z.ZodString;
|
357
|
+
callDuration: z.ZodNullable<z.ZodNumber>;
|
358
|
+
talkDuration: z.ZodNullable<z.ZodNumber>;
|
359
|
+
srcTrunkName: z.ZodNullable<z.ZodString>;
|
360
|
+
dstTrunkName: z.ZodNullable<z.ZodString>;
|
361
|
+
pinCode: z.ZodNullable<z.ZodString>;
|
362
|
+
status: z.ZodString;
|
363
|
+
type: z.ZodString;
|
364
|
+
recording: z.ZodNullable<z.ZodString>;
|
365
|
+
didNumber: z.ZodNullable<z.ZodString>;
|
366
|
+
agentRingTime: z.ZodNullable<z.ZodNumber>;
|
367
|
+
}, "strip", z.ZodTypeAny, {
|
368
|
+
type: string;
|
369
|
+
recording: string | null;
|
370
|
+
status: string;
|
371
|
+
uniqueCallId: string;
|
372
|
+
timeStart: string;
|
373
|
+
callFrom: string;
|
374
|
+
callTo: string;
|
375
|
+
callDuration: number | null;
|
376
|
+
talkDuration: number | null;
|
377
|
+
srcTrunkName: string | null;
|
378
|
+
dstTrunkName: string | null;
|
379
|
+
pinCode: string | null;
|
380
|
+
didNumber: string | null;
|
381
|
+
agentRingTime: number | null;
|
382
|
+
}, {
|
383
|
+
type: string;
|
384
|
+
recording: string | null;
|
385
|
+
status: string;
|
386
|
+
uniqueCallId: string;
|
387
|
+
timeStart: string;
|
388
|
+
callFrom: string;
|
389
|
+
callTo: string;
|
390
|
+
callDuration: number | null;
|
391
|
+
talkDuration: number | null;
|
392
|
+
srcTrunkName: string | null;
|
393
|
+
dstTrunkName: string | null;
|
394
|
+
pinCode: string | null;
|
395
|
+
didNumber: string | null;
|
396
|
+
agentRingTime: number | null;
|
397
|
+
}>, "many">;
|
398
|
+
}, "strip", z.ZodTypeAny, {
|
399
|
+
total: number;
|
400
|
+
page: number;
|
401
|
+
pageSize: number;
|
402
|
+
requestId: string;
|
403
|
+
telephonyCdrs: {
|
404
|
+
type: string;
|
405
|
+
recording: string | null;
|
406
|
+
status: string;
|
407
|
+
uniqueCallId: string;
|
408
|
+
timeStart: string;
|
409
|
+
callFrom: string;
|
410
|
+
callTo: string;
|
411
|
+
callDuration: number | null;
|
412
|
+
talkDuration: number | null;
|
413
|
+
srcTrunkName: string | null;
|
414
|
+
dstTrunkName: string | null;
|
415
|
+
pinCode: string | null;
|
416
|
+
didNumber: string | null;
|
417
|
+
agentRingTime: number | null;
|
418
|
+
}[];
|
419
|
+
}, {
|
420
|
+
total: number;
|
421
|
+
page: number;
|
422
|
+
pageSize: number;
|
423
|
+
requestId: string;
|
424
|
+
telephonyCdrs: {
|
425
|
+
type: string;
|
426
|
+
recording: string | null;
|
427
|
+
status: string;
|
428
|
+
uniqueCallId: string;
|
429
|
+
timeStart: string;
|
430
|
+
callFrom: string;
|
431
|
+
callTo: string;
|
432
|
+
callDuration: number | null;
|
433
|
+
talkDuration: number | null;
|
434
|
+
srcTrunkName: string | null;
|
435
|
+
dstTrunkName: string | null;
|
436
|
+
pinCode: string | null;
|
437
|
+
didNumber: string | null;
|
438
|
+
agentRingTime: number | null;
|
439
|
+
}[];
|
440
|
+
}>;
|
441
|
+
};
|
442
|
+
path: "telephony-cdr/recent-calls";
|
443
|
+
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
444
|
+
'x-tenant': z.ZodString;
|
445
|
+
authorization: z.ZodString;
|
446
|
+
'x-code': z.ZodOptional<z.ZodString>;
|
447
|
+
'x-client-timezone': z.ZodDefault<z.ZodString>;
|
448
|
+
}, "strip", z.ZodTypeAny, {
|
449
|
+
'x-tenant': string;
|
450
|
+
authorization: string;
|
451
|
+
'x-client-timezone': string;
|
452
|
+
'x-code'?: string | undefined;
|
453
|
+
}, {
|
454
|
+
'x-tenant': string;
|
455
|
+
authorization: string;
|
456
|
+
'x-code'?: string | undefined;
|
457
|
+
'x-client-timezone'?: string | undefined;
|
458
|
+
}>>>;
|
459
|
+
};
|
460
|
+
};
|
4
461
|
//# 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,
|
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;AAQtB,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;AAGF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmDhC,CAAC"}
|
@@ -45,4 +45,78 @@ export declare const CreateTelephonyCdrSchema: z.ZodObject<{
|
|
45
45
|
didNumber: string | null;
|
46
46
|
agentRingTime: number | null;
|
47
47
|
}>;
|
48
|
+
export declare const GetAllTelephonyCdrSchema: z.ZodObject<{
|
49
|
+
page: z.ZodDefault<z.ZodNumber>;
|
50
|
+
pageSize: z.ZodDefault<z.ZodNumber>;
|
51
|
+
selectedDate: z.ZodOptional<z.ZodString>;
|
52
|
+
type: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
53
|
+
status: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
54
|
+
callFrom: z.ZodOptional<z.ZodString>;
|
55
|
+
callTo: z.ZodOptional<z.ZodString>;
|
56
|
+
trunk: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
57
|
+
}, "strip", z.ZodTypeAny, {
|
58
|
+
page: number;
|
59
|
+
pageSize: number;
|
60
|
+
selectedDate?: string | undefined;
|
61
|
+
type?: string[] | undefined;
|
62
|
+
status?: string[] | undefined;
|
63
|
+
callFrom?: string | undefined;
|
64
|
+
callTo?: string | undefined;
|
65
|
+
trunk?: string[] | undefined;
|
66
|
+
}, {
|
67
|
+
page?: number | undefined;
|
68
|
+
pageSize?: number | undefined;
|
69
|
+
selectedDate?: string | undefined;
|
70
|
+
type?: string[] | undefined;
|
71
|
+
status?: string[] | undefined;
|
72
|
+
callFrom?: string | undefined;
|
73
|
+
callTo?: string | undefined;
|
74
|
+
trunk?: string[] | undefined;
|
75
|
+
}>;
|
76
|
+
export declare const GetRecentTelephonyCdrSchema: z.ZodObject<{
|
77
|
+
page: z.ZodDefault<z.ZodNumber>;
|
78
|
+
pageSize: z.ZodDefault<z.ZodNumber>;
|
79
|
+
type: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
80
|
+
status: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
81
|
+
callFrom: z.ZodOptional<z.ZodString>;
|
82
|
+
callTo: z.ZodOptional<z.ZodString>;
|
83
|
+
result: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
84
|
+
callTags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
85
|
+
selectedDate: z.ZodOptional<z.ZodString>;
|
86
|
+
agentId: z.ZodOptional<z.ZodString>;
|
87
|
+
contact: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
88
|
+
callStatus: z.ZodOptional<z.ZodArray<z.ZodEnum<["incoming", "outgoing", "missed", "no_answered"]>, "many">>;
|
89
|
+
queueIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
90
|
+
notes: z.ZodOptional<z.ZodString>;
|
91
|
+
}, "strip", z.ZodTypeAny, {
|
92
|
+
page: number;
|
93
|
+
pageSize: number;
|
94
|
+
type?: string[] | undefined;
|
95
|
+
status?: string[] | undefined;
|
96
|
+
callFrom?: string | undefined;
|
97
|
+
callTo?: string | undefined;
|
98
|
+
result?: string[] | undefined;
|
99
|
+
callTags?: string[] | undefined;
|
100
|
+
selectedDate?: string | undefined;
|
101
|
+
agentId?: string | undefined;
|
102
|
+
contact?: string[] | undefined;
|
103
|
+
callStatus?: ("incoming" | "outgoing" | "missed" | "no_answered")[] | undefined;
|
104
|
+
queueIds?: string[] | undefined;
|
105
|
+
notes?: string | undefined;
|
106
|
+
}, {
|
107
|
+
page?: number | undefined;
|
108
|
+
pageSize?: number | undefined;
|
109
|
+
type?: string[] | undefined;
|
110
|
+
status?: string[] | undefined;
|
111
|
+
callFrom?: string | undefined;
|
112
|
+
callTo?: string | undefined;
|
113
|
+
result?: string[] | undefined;
|
114
|
+
callTags?: string[] | undefined;
|
115
|
+
selectedDate?: string | undefined;
|
116
|
+
agentId?: string | undefined;
|
117
|
+
contact?: string[] | undefined;
|
118
|
+
callStatus?: ("incoming" | "outgoing" | "missed" | "no_answered")[] | undefined;
|
119
|
+
queueIds?: string[] | undefined;
|
120
|
+
notes?: string | undefined;
|
121
|
+
}>;
|
48
122
|
//# 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;
|
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"}
|
package/package.json
CHANGED
@@ -1,50 +1,51 @@
|
|
1
1
|
{
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
},
|
22
|
-
"watch": {
|
23
|
-
"build": {
|
24
|
-
"patterns": [
|
25
|
-
"src"
|
26
|
-
],
|
27
|
-
"extensions": "ts",
|
28
|
-
"quite": true
|
2
|
+
"name": "@kl1/contracts",
|
3
|
+
"version": "1.0.33",
|
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"
|
29
21
|
},
|
30
|
-
"
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
22
|
+
"watch": {
|
23
|
+
"build": {
|
24
|
+
"patterns": [
|
25
|
+
"src"
|
26
|
+
],
|
27
|
+
"extensions": "ts",
|
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"
|
36
50
|
}
|
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
|
-
}
|
50
51
|
}
|