@kl1/contracts 1.1.34-uat → 1.1.36-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
@@ -1008,7 +1008,7 @@ var WrapUpFormSchema = DefaultEntitySchema.extend({
1008
1008
  categories: z24.array(CategorySchema),
1009
1009
  callFrom: z24.string().nullable(),
1010
1010
  callTo: z24.string().nullable(),
1011
- customFields: z24.array(CustomFieldSchema).optional()
1011
+ customFields: z24.array(CustomFieldSchema).optional().nullable()
1012
1012
  });
1013
1013
 
1014
1014
  // src/cx-log/schema.ts
@@ -2118,7 +2118,8 @@ var mainChatContract = initContract7().router(
2118
2118
  responses: {
2119
2119
  200: DefaultSuccessResponseSchema.extend({
2120
2120
  data: RoomSchema
2121
- })
2121
+ }),
2122
+ 409: DefaultErrorResponseSchema
2122
2123
  },
2123
2124
  summary: "Update room assignee"
2124
2125
  },
@@ -6492,7 +6493,8 @@ var UpdateWrapUpFormSchema = CreateWrapUpFormSchema.extend({
6492
6493
  type: z91.string(),
6493
6494
  value: z91.string()
6494
6495
  })
6495
- ).optional()
6496
+ ).optional(),
6497
+ durationSeconds: z91.number().optional()
6496
6498
  });
6497
6499
  var CreateCXLogWrapUpFormSchema = z91.object({
6498
6500
  cxLogId: z91.string().uuid(),
@@ -6551,6 +6553,20 @@ var wrapUpFormContract = initContract34().router(
6551
6553
  },
6552
6554
  summary: "Get all wrap up form"
6553
6555
  },
6556
+ getWrapUpForm: {
6557
+ method: "GET",
6558
+ path: "/:id",
6559
+ pathParams: z92.object({ id: z92.string() }),
6560
+ headers: DefaultHeaderSchema,
6561
+ responses: {
6562
+ 200: WrapUpFormSchema,
6563
+ 400: z92.object({
6564
+ message: z92.string()
6565
+ }),
6566
+ 401: DefaultUnauthorizedSchema,
6567
+ 500: DefaultErrorResponseSchema
6568
+ }
6569
+ },
6554
6570
  updateWrapUpForm: {
6555
6571
  method: "PATCH",
6556
6572
  path: "/:id",
@@ -6568,6 +6584,37 @@ var wrapUpFormContract = initContract34().router(
6568
6584
  500: DefaultErrorResponseSchema
6569
6585
  },
6570
6586
  summary: "Update a wrap up form."
6587
+ },
6588
+ getWrapUpFormTimer: {
6589
+ method: "GET",
6590
+ path: "/timer",
6591
+ headers: DefaultHeaderSchema,
6592
+ responses: {
6593
+ 200: DefaultSuccessResponseSchema.extend({
6594
+ wrapUpFormTimer: z92.number()
6595
+ }),
6596
+ 400: z92.object({
6597
+ message: z92.string()
6598
+ }),
6599
+ 401: DefaultUnauthorizedSchema,
6600
+ 500: DefaultErrorResponseSchema
6601
+ }
6602
+ },
6603
+ updateWrapUpFormTimer: {
6604
+ method: "PATCH",
6605
+ path: "/timer",
6606
+ body: z92.number(),
6607
+ headers: DefaultHeaderSchema,
6608
+ responses: {
6609
+ 200: DefaultSuccessResponseSchema.extend({
6610
+ wrapUpFormTimer: z92.number()
6611
+ }),
6612
+ 400: z92.object({
6613
+ message: z92.string()
6614
+ }),
6615
+ 401: DefaultUnauthorizedSchema,
6616
+ 500: DefaultErrorResponseSchema
6617
+ }
6571
6618
  }
6572
6619
  },
6573
6620
  { pathPrefix: "wrap-up-form" }
@@ -7203,7 +7250,7 @@ var businessCalendarContract = initContract40().router({
7203
7250
  }
7204
7251
  },
7205
7252
  updateBusinessCalendar: {
7206
- method: "PUT",
7253
+ method: "POST",
7207
7254
  path: "business-calendars/:id",
7208
7255
  pathParams: z106.object({ id: z106.string() }),
7209
7256
  body: UpdateBusinessCalendarSchema,