@kl1/contracts 1.1.35-uat → 1.1.37-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.js CHANGED
@@ -1077,7 +1077,7 @@ var WrapUpFormSchema = DefaultEntitySchema.extend({
1077
1077
  categories: import_zod24.default.array(CategorySchema),
1078
1078
  callFrom: import_zod24.default.string().nullable(),
1079
1079
  callTo: import_zod24.default.string().nullable(),
1080
- customFields: import_zod24.default.array(CustomFieldSchema).optional()
1080
+ customFields: import_zod24.default.array(CustomFieldSchema).optional().nullable()
1081
1081
  });
1082
1082
 
1083
1083
  // src/cx-log/schema.ts
@@ -2187,7 +2187,8 @@ var mainChatContract = (0, import_core7.initContract)().router(
2187
2187
  responses: {
2188
2188
  200: DefaultSuccessResponseSchema.extend({
2189
2189
  data: RoomSchema
2190
- })
2190
+ }),
2191
+ 409: DefaultErrorResponseSchema
2191
2192
  },
2192
2193
  summary: "Update room assignee"
2193
2194
  },
@@ -6561,7 +6562,8 @@ var UpdateWrapUpFormSchema = CreateWrapUpFormSchema.extend({
6561
6562
  type: import_zod91.z.string(),
6562
6563
  value: import_zod91.z.string()
6563
6564
  })
6564
- ).optional()
6565
+ ).optional(),
6566
+ durationSeconds: import_zod91.z.number().optional()
6565
6567
  });
6566
6568
  var CreateCXLogWrapUpFormSchema = import_zod91.z.object({
6567
6569
  cxLogId: import_zod91.z.string().uuid(),
@@ -6573,6 +6575,37 @@ var CreateCXLogWrapUpFormSchema = import_zod91.z.object({
6573
6575
  // src/wrap-up-form/index.ts
6574
6576
  var wrapUpFormContract = (0, import_core34.initContract)().router(
6575
6577
  {
6578
+ getWrapUpFormTimer: {
6579
+ method: "GET",
6580
+ path: "/timer",
6581
+ headers: DefaultHeaderSchema,
6582
+ responses: {
6583
+ 200: DefaultSuccessResponseSchema.extend({
6584
+ wrapUpFormTimer: import_zod92.default.number()
6585
+ }),
6586
+ 400: import_zod92.default.object({
6587
+ message: import_zod92.default.string()
6588
+ }),
6589
+ 401: DefaultUnauthorizedSchema,
6590
+ 500: DefaultErrorResponseSchema
6591
+ }
6592
+ },
6593
+ updateWrapUpFormTimer: {
6594
+ method: "PATCH",
6595
+ path: "/timer",
6596
+ body: import_zod92.default.number(),
6597
+ headers: DefaultHeaderSchema,
6598
+ responses: {
6599
+ 200: DefaultSuccessResponseSchema.extend({
6600
+ wrapUpFormTimer: import_zod92.default.number()
6601
+ }),
6602
+ 400: import_zod92.default.object({
6603
+ message: import_zod92.default.string()
6604
+ }),
6605
+ 401: DefaultUnauthorizedSchema,
6606
+ 500: DefaultErrorResponseSchema
6607
+ }
6608
+ },
6576
6609
  createWrapUpForm: {
6577
6610
  method: "POST",
6578
6611
  path: "",
@@ -6620,6 +6653,20 @@ var wrapUpFormContract = (0, import_core34.initContract)().router(
6620
6653
  },
6621
6654
  summary: "Get all wrap up form"
6622
6655
  },
6656
+ getWrapUpForm: {
6657
+ method: "GET",
6658
+ path: "/:id",
6659
+ pathParams: import_zod92.default.object({ id: import_zod92.default.string() }),
6660
+ headers: DefaultHeaderSchema,
6661
+ responses: {
6662
+ 200: WrapUpFormSchema,
6663
+ 400: import_zod92.default.object({
6664
+ message: import_zod92.default.string()
6665
+ }),
6666
+ 401: DefaultUnauthorizedSchema,
6667
+ 500: DefaultErrorResponseSchema
6668
+ }
6669
+ },
6623
6670
  updateWrapUpForm: {
6624
6671
  method: "PATCH",
6625
6672
  path: "/:id",