@kl1/contracts 1.4.23 → 1.4.24

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
@@ -5990,7 +5990,8 @@ var GetAllTelephonyCdrSchema = DefaultQueryParamsSchema.extend({
5990
5990
  queueStatus: z76.string().optional(),
5991
5991
  agentIds: z76.array(z76.string().uuid()).optional(),
5992
5992
  agentCallsOnly: z76.coerce.boolean().optional(),
5993
- contactId: z76.string().uuid().optional()
5993
+ contactId: z76.string().uuid().optional(),
5994
+ recordingsOnly: z76.boolean().optional()
5994
5995
  });
5995
5996
  var GetRecentTelephonyCdrSchema = DefaultQueryParamsSchema.extend({
5996
5997
  type: z76.array(z76.string()).optional(),
@@ -6081,40 +6082,26 @@ var GetYeastarCallReportSchema = DefaultQueryParamsSchema.extend({
6081
6082
 
6082
6083
  // src/telephony-cdr/index.ts
6083
6084
  import { initContract as initContract24 } from "@ts-rest/core";
6085
+ var laravelServiceTelephonyCdr = initContract24().router({
6086
+ findAll: {
6087
+ method: "GET",
6088
+ path: "/tcdrs/api/v1/telephony-cdr",
6089
+ headers: DefaultHeaderSchema,
6090
+ query: GetAllTelephonyCdrSchema,
6091
+ responses: {
6092
+ 200: DefaultSuccessResponseSchema.extend({
6093
+ total: z77.number(),
6094
+ page: z77.number(),
6095
+ pageSize: z77.number(),
6096
+ telephonyCdrs: z77.array(TelephonyCdrSchema)
6097
+ }),
6098
+ 401: DefaultUnauthorizedSchema
6099
+ },
6100
+ summary: "Get all telephony cdr."
6101
+ }
6102
+ });
6084
6103
  var telephonyCdrContract = initContract24().router(
6085
6104
  {
6086
- findAll: {
6087
- method: "GET",
6088
- path: "/",
6089
- headers: DefaultHeaderSchema,
6090
- query: GetAllTelephonyCdrSchema,
6091
- responses: {
6092
- 200: DefaultSuccessResponseSchema.extend({
6093
- total: z77.number(),
6094
- page: z77.number(),
6095
- pageSize: z77.number(),
6096
- telephonyCdrs: z77.array(TelephonyCdrSchema)
6097
- }),
6098
- 401: DefaultUnauthorizedSchema
6099
- },
6100
- summary: "Get all telephony cdr."
6101
- },
6102
- getRecordings: {
6103
- method: "GET",
6104
- path: "/recordings",
6105
- headers: DefaultHeaderSchema,
6106
- query: GetAllTelephonyCdrSchema,
6107
- responses: {
6108
- 200: DefaultSuccessResponseSchema.extend({
6109
- total: z77.number(),
6110
- page: z77.number(),
6111
- pageSize: z77.number(),
6112
- telephonyCdrs: z77.array(TelephonyCdrSchema)
6113
- }),
6114
- 401: DefaultUnauthorizedSchema
6115
- },
6116
- summary: "Get all telephony cdr."
6117
- },
6118
6105
  getRecentCall: {
6119
6106
  method: "GET",
6120
6107
  path: "/recent-calls",
@@ -9416,6 +9403,9 @@ var memberSettingContract = initContract44().router(
9416
9403
  var presenceStatusContract2 = initContract44().router({
9417
9404
  presenceStatus: presenceStatusContract
9418
9405
  });
9406
+ var laravelServiceTelephonyCdrContract = initContract44().router({
9407
+ laravelServiceTelephonyCdr
9408
+ });
9419
9409
 
9420
9410
  // src/general-setting/index.ts
9421
9411
  import { initContract as initContract45 } from "@ts-rest/core";
@@ -11108,6 +11098,8 @@ export {
11108
11098
  holdLabelContract,
11109
11099
  initiateMessageContract,
11110
11100
  invoiceContract,
11101
+ laravelServiceTelephonyCdr,
11102
+ laravelServiceTelephonyCdrContract,
11111
11103
  mailContract,
11112
11104
  mainChatContract,
11113
11105
  mainChatMessageContract,