@kl1/contracts 1.2.1-uat → 1.2.2-uat

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.mjs CHANGED
@@ -1104,6 +1104,10 @@ var TelephonyDropdownListSchema = z25.object({
1104
1104
  var TelephonyRedirectSettingSchema = z25.object({
1105
1105
  callRedirectTo: z25.string()
1106
1106
  });
1107
+ var CallSettingSchema = z25.object({
1108
+ callRedirectTo: z25.string(),
1109
+ isMultiTabUsed: z25.string()
1110
+ });
1107
1111
 
1108
1112
  // src/wrap-up-form/schema.ts
1109
1113
  import z26 from "zod";
@@ -5386,6 +5390,39 @@ var telephonyCdrContract = initContract23().router(
5386
5390
  401: DefaultUnauthorizedSchema,
5387
5391
  500: DefaultErrorResponseSchema
5388
5392
  }
5393
+ },
5394
+ getCallSetting: {
5395
+ method: "GET",
5396
+ path: "/call-setting",
5397
+ headers: DefaultHeaderSchema,
5398
+ responses: {
5399
+ 200: DefaultSuccessResponseSchema.extend({
5400
+ callRedirectTo: z71.string(),
5401
+ isMultiTabUsed: z71.string()
5402
+ }),
5403
+ 400: z71.object({
5404
+ message: z71.string()
5405
+ }),
5406
+ 401: DefaultUnauthorizedSchema,
5407
+ 500: DefaultErrorResponseSchema
5408
+ }
5409
+ },
5410
+ updateCallSetting: {
5411
+ method: "PATCH",
5412
+ path: "/call-setting",
5413
+ headers: DefaultHeaderSchema,
5414
+ body: CallSettingSchema,
5415
+ responses: {
5416
+ 200: DefaultSuccessResponseSchema.extend({
5417
+ callRedirectTo: z71.string(),
5418
+ isMultiTabUsed: z71.string()
5419
+ }),
5420
+ 400: z71.object({
5421
+ message: z71.string()
5422
+ }),
5423
+ 401: DefaultUnauthorizedSchema,
5424
+ 500: DefaultErrorResponseSchema
5425
+ }
5389
5426
  }
5390
5427
  },
5391
5428
  { pathPrefix: "telephony-cdr" }
@@ -7134,7 +7171,6 @@ var CreateBusinessCalendarSchema = z98.object({
7134
7171
  description: z98.string().optional(),
7135
7172
  timeZone: z98.string(),
7136
7173
  isEnabled: z98.boolean(),
7137
- channelIds: z98.string().array(),
7138
7174
  businessHours: CreateBusinessHourSchema,
7139
7175
  holidays: CreateHolidaySchema
7140
7176
  });
@@ -7144,7 +7180,6 @@ var UpdateBusinessCalendarSchema = z98.object({
7144
7180
  description: z98.string().optional(),
7145
7181
  timeZone: z98.string(),
7146
7182
  isEnabled: z98.boolean(),
7147
- channelIds: z98.string().array(),
7148
7183
  businessHours: UpdateBusinessHourSchema,
7149
7184
  holidays: UpdateHolidaySchema
7150
7185
  });
@@ -7172,7 +7207,6 @@ var BusinessCalendarSchema = DefaultEntitySchema.extend({
7172
7207
  timeZone: z99.string(),
7173
7208
  isEnabled: z99.boolean(),
7174
7209
  isDefault: z99.boolean(),
7175
- channelIds: z99.string().array(),
7176
7210
  businessHours: BusinessHourSchema.array(),
7177
7211
  holidays: HolidaySchema.array()
7178
7212
  });