@kl1/contracts 1.1.35-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.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(),
@@ -6620,6 +6622,20 @@ var wrapUpFormContract = (0, import_core34.initContract)().router(
6620
6622
  },
6621
6623
  summary: "Get all wrap up form"
6622
6624
  },
6625
+ getWrapUpForm: {
6626
+ method: "GET",
6627
+ path: "/:id",
6628
+ pathParams: import_zod92.default.object({ id: import_zod92.default.string() }),
6629
+ headers: DefaultHeaderSchema,
6630
+ responses: {
6631
+ 200: WrapUpFormSchema,
6632
+ 400: import_zod92.default.object({
6633
+ message: import_zod92.default.string()
6634
+ }),
6635
+ 401: DefaultUnauthorizedSchema,
6636
+ 500: DefaultErrorResponseSchema
6637
+ }
6638
+ },
6623
6639
  updateWrapUpForm: {
6624
6640
  method: "PATCH",
6625
6641
  path: "/:id",
@@ -6637,6 +6653,37 @@ var wrapUpFormContract = (0, import_core34.initContract)().router(
6637
6653
  500: DefaultErrorResponseSchema
6638
6654
  },
6639
6655
  summary: "Update a wrap up form."
6656
+ },
6657
+ getWrapUpFormTimer: {
6658
+ method: "GET",
6659
+ path: "/timer",
6660
+ headers: DefaultHeaderSchema,
6661
+ responses: {
6662
+ 200: DefaultSuccessResponseSchema.extend({
6663
+ wrapUpFormTimer: import_zod92.default.number()
6664
+ }),
6665
+ 400: import_zod92.default.object({
6666
+ message: import_zod92.default.string()
6667
+ }),
6668
+ 401: DefaultUnauthorizedSchema,
6669
+ 500: DefaultErrorResponseSchema
6670
+ }
6671
+ },
6672
+ updateWrapUpFormTimer: {
6673
+ method: "PATCH",
6674
+ path: "/timer",
6675
+ body: import_zod92.default.number(),
6676
+ headers: DefaultHeaderSchema,
6677
+ responses: {
6678
+ 200: DefaultSuccessResponseSchema.extend({
6679
+ wrapUpFormTimer: import_zod92.default.number()
6680
+ }),
6681
+ 400: import_zod92.default.object({
6682
+ message: import_zod92.default.string()
6683
+ }),
6684
+ 401: DefaultUnauthorizedSchema,
6685
+ 500: DefaultErrorResponseSchema
6686
+ }
6640
6687
  }
6641
6688
  },
6642
6689
  { pathPrefix: "wrap-up-form" }