@kl1/contracts 1.0.49 → 1.0.51
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 +8 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -2
- package/dist/index.mjs.map +1 -1
- package/dist/src/contract.d.ts +18 -26
- package/dist/src/contract.d.ts.map +1 -1
- package/dist/src/telephony-cdr/index.d.ts +18 -26
- package/dist/src/telephony-cdr/index.d.ts.map +1 -1
- package/dist/src/telephony-cdr/validation.d.ts +8 -26
- package/dist/src/telephony-cdr/validation.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -4384,7 +4384,12 @@ var GetRecentTelephonyCdrSchema = DefaultQueryParamsSchema.extend({
|
|
4384
4384
|
queueIds: z72.array(z72.string()).optional(),
|
4385
4385
|
notes: z72.string().optional()
|
4386
4386
|
});
|
4387
|
-
var GetExportTelephonyCdrSchema =
|
4387
|
+
var GetExportTelephonyCdrSchema = GetAllTelephonyCdrSchema.merge(
|
4388
|
+
z72.object({
|
4389
|
+
page: z72.coerce.number().positive().optional(),
|
4390
|
+
pageSize: z72.coerce.number().positive().optional()
|
4391
|
+
})
|
4392
|
+
);
|
4388
4393
|
var GetYeastarCallReportSchema = DefaultQueryParamsSchema.extend({
|
4389
4394
|
reportType: z72.enum([
|
4390
4395
|
"extcallstatistics",
|
@@ -4675,7 +4680,8 @@ var telephonyCdrContract = initContract28().router(
|
|
4675
4680
|
query: GetExportTelephonyCdrSchema,
|
4676
4681
|
responses: {
|
4677
4682
|
200: null,
|
4678
|
-
401: DefaultUnauthorizedSchema
|
4683
|
+
401: DefaultUnauthorizedSchema,
|
4684
|
+
404: DefaultNotFoundSchema
|
4679
4685
|
},
|
4680
4686
|
summary: "Get recent telephony cdr."
|
4681
4687
|
},
|