@kl1/contracts 1.1.27-uat → 1.1.29-uat

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
@@ -7215,50 +7215,34 @@ import { initContract as initContract40 } from "@ts-rest/core";
7215
7215
 
7216
7216
  // src/business-calendar/validation.ts
7217
7217
  import z104 from "zod";
7218
- var TimeSlotDataSchema = z104.object({
7219
- startTime: z104.string(),
7220
- endTime: z104.string()
7221
- }).array();
7218
+ var TimeSlotDataSchema = z104.any();
7222
7219
  var CreateBusinessHourSchema = z104.object({
7223
- day: z104.enum([
7224
- "sunday",
7225
- "monday",
7226
- "tuesday",
7227
- "wednesday",
7228
- "thursday",
7229
- "friday",
7230
- "saturday"
7231
- ]),
7220
+ day: z104.string(),
7232
7221
  isEnabled: z104.boolean(),
7233
7222
  timeSlots: TimeSlotDataSchema
7234
7223
  }).array();
7235
7224
  var UpdateBusinessHourSchema = z104.object({
7236
7225
  id: z104.string(),
7237
- day: z104.enum([
7238
- "sunday",
7239
- "monday",
7240
- "tuesday",
7241
- "wednesday",
7242
- "thursday",
7243
- "friday",
7244
- "saturday"
7245
- ]),
7226
+ day: z104.string(),
7246
7227
  isEnabled: z104.boolean(),
7247
7228
  timeSlots: TimeSlotDataSchema
7248
7229
  }).array();
7249
7230
  var CreateHolidaySchema = z104.object({
7250
7231
  name: z104.string(),
7251
- date: z104.string()
7232
+ date: z104.string(),
7233
+ isEnabled: z104.boolean()
7252
7234
  }).array();
7253
7235
  var UpdateHolidaySchema = z104.object({
7254
- id: z104.string(),
7236
+ id: z104.string().optional(),
7255
7237
  name: z104.string(),
7256
- date: z104.string()
7238
+ date: z104.string(),
7239
+ isEnabled: z104.boolean()
7257
7240
  }).array();
7258
7241
  var CreateBusinessCalendarSchema = z104.object({
7259
7242
  name: z104.string(),
7260
7243
  description: z104.string().optional(),
7261
7244
  timeZone: z104.string(),
7245
+ isEnabled: z104.boolean(),
7262
7246
  channelIds: z104.string().array(),
7263
7247
  businessHours: CreateBusinessHourSchema,
7264
7248
  holidays: CreateHolidaySchema
@@ -7268,6 +7252,7 @@ var UpdateBusinessCalendarSchema = z104.object({
7268
7252
  name: z104.string(),
7269
7253
  description: z104.string().optional(),
7270
7254
  timeZone: z104.string(),
7255
+ isEnabled: z104.boolean(),
7271
7256
  channelIds: z104.string().array(),
7272
7257
  businessHours: UpdateBusinessHourSchema,
7273
7258
  holidays: UpdateHolidaySchema
@@ -7278,24 +7263,25 @@ var DeleteBusinessCalendarSchema = z104.object({
7278
7263
 
7279
7264
  // src/business-calendar/schema.ts
7280
7265
  import z105 from "zod";
7281
- var BusinessCalendarSchema = DefaultEntitySchema.extend({
7282
- name: z105.string(),
7283
- description: z105.string().optional(),
7284
- timeZone: z105.string()
7285
- });
7266
+ var TimeSlotDataSchema2 = z105.any();
7286
7267
  var BusinessHourSchema = DefaultEntitySchema.extend({
7287
7268
  day: z105.string(),
7288
- timeSlots: z105.string(),
7289
- businessCalendarId: z105.string()
7269
+ isEnabled: z105.boolean(),
7270
+ timeSlots: TimeSlotDataSchema2
7290
7271
  });
7291
7272
  var HolidaySchema = DefaultEntitySchema.extend({
7292
7273
  name: z105.string(),
7293
- date: z105.date(),
7294
- businessCalendarId: z105.string()
7274
+ date: z105.string(),
7275
+ isEnabled: z105.boolean()
7295
7276
  });
7296
- var TimezoneSchema = DefaultEntitySchema.extend({
7277
+ var BusinessCalendarSchema = DefaultEntitySchema.extend({
7297
7278
  name: z105.string(),
7298
- gmtOffset: z105.number()
7279
+ description: z105.string().optional(),
7280
+ timeZone: z105.string(),
7281
+ isEnabled: z105.boolean(),
7282
+ channelIds: z105.string().array(),
7283
+ businessHours: BusinessHourSchema.array(),
7284
+ holidays: HolidaySchema.array()
7299
7285
  });
7300
7286
 
7301
7287
  // src/business-calendar/index.ts
@@ -7316,7 +7302,7 @@ var businessCalendarContract = initContract40().router({
7316
7302
  method: "GET",
7317
7303
  path: "business-calendars",
7318
7304
  responses: {
7319
- 201: DefaultSuccessResponseSchema.extend({
7305
+ 200: DefaultSuccessResponseSchema.extend({
7320
7306
  businessCalendars: BusinessCalendarSchema.array()
7321
7307
  }),
7322
7308
  500: DefaultErrorResponseSchema