@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.mjs CHANGED
@@ -4917,6 +4917,7 @@ var GetRecentTelephonyCdrSchema = DefaultQueryParamsSchema.extend({
4917
4917
  queueIds: z83.array(z83.string()).optional(),
4918
4918
  notes: z83.string().optional()
4919
4919
  });
4920
+ var GetExportTelephonyCdrSchema = GetRecentTelephonyCdrSchema;
4920
4921
 
4921
4922
  // src/telephony-cdr/index.ts
4922
4923
  import { initContract as initContract32 } from "@ts-rest/core";
@@ -4933,7 +4934,8 @@ var telephonyCdrContract = initContract32().router(
4933
4934
  page: z84.number(),
4934
4935
  pageSize: z84.number(),
4935
4936
  telephonyCdrs: z84.array(CreateTelephonyCdrSchema)
4936
- })
4937
+ }),
4938
+ 401: DefaultUnauthorizedSchema
4937
4939
  },
4938
4940
  summary: "Get all telephony cdr."
4939
4941
  },
@@ -4948,7 +4950,8 @@ var telephonyCdrContract = initContract32().router(
4948
4950
  page: z84.number(),
4949
4951
  pageSize: z84.number(),
4950
4952
  telephonyCdrs: z84.array(CreateTelephonyCdrSchema)
4951
- })
4953
+ }),
4954
+ 401: DefaultUnauthorizedSchema
4952
4955
  },
4953
4956
  summary: "Get all telephony cdr."
4954
4957
  },
@@ -4963,7 +4966,19 @@ var telephonyCdrContract = initContract32().router(
4963
4966
  page: z84.number(),
4964
4967
  pageSize: z84.number(),
4965
4968
  telephonyCdrs: z84.array(CreateTelephonyCdrSchema)
4966
- })
4969
+ }),
4970
+ 401: DefaultUnauthorizedSchema
4971
+ },
4972
+ summary: "Get recent telephony cdr."
4973
+ },
4974
+ export: {
4975
+ method: "GET",
4976
+ path: "/export",
4977
+ headers: DefaultHeaderSchema,
4978
+ query: GetExportTelephonyCdrSchema,
4979
+ responses: {
4980
+ 200: null,
4981
+ 401: DefaultUnauthorizedSchema
4967
4982
  },
4968
4983
  summary: "Get recent telephony cdr."
4969
4984
  }