@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.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(),
@@ -6504,6 +6506,37 @@ var CreateCXLogWrapUpFormSchema = z91.object({
6504
6506
  // src/wrap-up-form/index.ts
6505
6507
  var wrapUpFormContract = initContract34().router(
6506
6508
  {
6509
+ getWrapUpFormTimer: {
6510
+ method: "GET",
6511
+ path: "/timer",
6512
+ headers: DefaultHeaderSchema,
6513
+ responses: {
6514
+ 200: DefaultSuccessResponseSchema.extend({
6515
+ wrapUpFormTimer: z92.number()
6516
+ }),
6517
+ 400: z92.object({
6518
+ message: z92.string()
6519
+ }),
6520
+ 401: DefaultUnauthorizedSchema,
6521
+ 500: DefaultErrorResponseSchema
6522
+ }
6523
+ },
6524
+ updateWrapUpFormTimer: {
6525
+ method: "PATCH",
6526
+ path: "/timer",
6527
+ body: z92.number(),
6528
+ headers: DefaultHeaderSchema,
6529
+ responses: {
6530
+ 200: DefaultSuccessResponseSchema.extend({
6531
+ wrapUpFormTimer: z92.number()
6532
+ }),
6533
+ 400: z92.object({
6534
+ message: z92.string()
6535
+ }),
6536
+ 401: DefaultUnauthorizedSchema,
6537
+ 500: DefaultErrorResponseSchema
6538
+ }
6539
+ },
6507
6540
  createWrapUpForm: {
6508
6541
  method: "POST",
6509
6542
  path: "",
@@ -6551,6 +6584,20 @@ var wrapUpFormContract = initContract34().router(
6551
6584
  },
6552
6585
  summary: "Get all wrap up form"
6553
6586
  },
6587
+ getWrapUpForm: {
6588
+ method: "GET",
6589
+ path: "/:id",
6590
+ pathParams: z92.object({ id: z92.string() }),
6591
+ headers: DefaultHeaderSchema,
6592
+ responses: {
6593
+ 200: WrapUpFormSchema,
6594
+ 400: z92.object({
6595
+ message: z92.string()
6596
+ }),
6597
+ 401: DefaultUnauthorizedSchema,
6598
+ 500: DefaultErrorResponseSchema
6599
+ }
6600
+ },
6554
6601
  updateWrapUpForm: {
6555
6602
  method: "PATCH",
6556
6603
  path: "/:id",