@kl1/contracts 1.2.2-uat → 1.2.4-uat

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.mjs CHANGED
@@ -7785,7 +7785,7 @@ var chatContract = initContract38().router(
7785
7785
  method: "POST",
7786
7786
  path: "/room/assignee",
7787
7787
  body: z106.object({
7788
- assigneeId: z106.string().uuid(),
7788
+ assigneeId: z106.string().uuid().optional(),
7789
7789
  roomId: z106.string().uuid(),
7790
7790
  workflowId: z106.string().uuid(),
7791
7791
  queueId: z106.string().uuid().optional()
@@ -8279,6 +8279,10 @@ var CreateAutomationQueueSchema = z112.object({
8279
8279
  // isAssignmentDeniable: z.coerce.boolean(),
8280
8280
  });
8281
8281
  var UpdateAutomationQueueSchema = CreateAutomationQueueSchema;
8282
+ var CheckHasAssignedRoomSchema = z112.object({
8283
+ userId: z112.string().uuid(),
8284
+ queueId: z112.string().uuid().optional()
8285
+ });
8282
8286
 
8283
8287
  // src/automation-queue/schema.ts
8284
8288
  import { z as z113 } from "zod";
@@ -8371,6 +8375,18 @@ var automationQueueContract = initContract43().router(
8371
8375
  message: z114.string()
8372
8376
  })
8373
8377
  }
8378
+ },
8379
+ checkHasAssignedRoom: {
8380
+ method: "POST",
8381
+ path: "/check-has-assigned-room",
8382
+ body: CheckHasAssignedRoomSchema,
8383
+ responses: {
8384
+ 200: DefaultSuccessResponseSchema.extend({
8385
+ data: z114.object({
8386
+ hasAssignedRoom: z114.boolean()
8387
+ })
8388
+ })
8389
+ }
8374
8390
  }
8375
8391
  },
8376
8392
  { pathPrefix: "/automation-queue" }