@kl1/contracts 1.4.23 → 1.4.25

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",
@@ -8510,10 +8497,11 @@ var ContactContractValidationSchema2 = {
8510
8497
  response: CustomFieldSchema
8511
8498
  }
8512
8499
  };
8513
- var SendLineMessageSchema = z109.object({
8500
+ var SendMessageSchema2 = z109.object({
8514
8501
  channelId: z109.string(),
8515
8502
  message: z109.string(),
8516
- contactId: z109.string()
8503
+ contactId: z109.string().optional(),
8504
+ platformUserId: z109.string().optional()
8517
8505
  });
8518
8506
 
8519
8507
  // src/public-api/index.ts
@@ -8523,7 +8511,7 @@ var publicApiContract = initContract38().router(
8523
8511
  sendMessage: {
8524
8512
  method: "POST",
8525
8513
  path: "/message/send",
8526
- body: SendLineMessageSchema,
8514
+ body: SendMessageSchema2,
8527
8515
  responses: {
8528
8516
  201: z110.object({
8529
8517
  status: z110.string(),
@@ -9416,6 +9404,9 @@ var memberSettingContract = initContract44().router(
9416
9404
  var presenceStatusContract2 = initContract44().router({
9417
9405
  presenceStatus: presenceStatusContract
9418
9406
  });
9407
+ var laravelServiceTelephonyCdrContract = initContract44().router({
9408
+ laravelServiceTelephonyCdr
9409
+ });
9419
9410
 
9420
9411
  // src/general-setting/index.ts
9421
9412
  import { initContract as initContract45 } from "@ts-rest/core";
@@ -11108,6 +11099,8 @@ export {
11108
11099
  holdLabelContract,
11109
11100
  initiateMessageContract,
11110
11101
  invoiceContract,
11102
+ laravelServiceTelephonyCdr,
11103
+ laravelServiceTelephonyCdrContract,
11111
11104
  mailContract,
11112
11105
  mainChatContract,
11113
11106
  mainChatMessageContract,