@kl1/contracts 1.2.2-uat → 1.2.4-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.
@@ -1,10 +1,11 @@
1
1
  import { z } from 'zod';
2
- import { CreateAutomationQueueSchema, QueueDistributionStrategySchema, UpdateAutomationQueueSchema } from './validation';
2
+ import { CheckHasAssignedRoomSchema, CreateAutomationQueueSchema, QueueDistributionStrategySchema, UpdateAutomationQueueSchema } from './validation';
3
3
  import { AutomationQueueSchema } from './schema';
4
4
  export type AutomationQueue = z.infer<typeof AutomationQueueSchema>;
5
5
  export type QueueDistributionStrategy = z.infer<typeof QueueDistributionStrategySchema>;
6
6
  export type CreateAutomationQueueRequest = z.infer<typeof CreateAutomationQueueSchema>;
7
7
  export type UpdateAutomationQueueRequest = z.infer<typeof UpdateAutomationQueueSchema>;
8
+ export type CheckHasAssignedRoomBody = z.infer<typeof CheckHasAssignedRoomSchema>;
8
9
  export declare const automationQueueContract: {
9
10
  createAutomationQueue: {
10
11
  body: z.ZodObject<{
@@ -4239,5 +4240,41 @@ export declare const automationQueueContract: {
4239
4240
  };
4240
4241
  path: "/automation-queue/:id";
4241
4242
  };
4243
+ checkHasAssignedRoom: {
4244
+ body: z.ZodObject<{
4245
+ userId: z.ZodString;
4246
+ queueId: z.ZodOptional<z.ZodString>;
4247
+ }, "strip", z.ZodTypeAny, {
4248
+ userId: string;
4249
+ queueId?: string | undefined;
4250
+ }, {
4251
+ userId: string;
4252
+ queueId?: string | undefined;
4253
+ }>;
4254
+ method: "POST";
4255
+ responses: {
4256
+ 200: z.ZodObject<{
4257
+ requestId: z.ZodString;
4258
+ data: z.ZodObject<{
4259
+ hasAssignedRoom: z.ZodBoolean;
4260
+ }, "strip", z.ZodTypeAny, {
4261
+ hasAssignedRoom: boolean;
4262
+ }, {
4263
+ hasAssignedRoom: boolean;
4264
+ }>;
4265
+ }, "strip", z.ZodTypeAny, {
4266
+ data: {
4267
+ hasAssignedRoom: boolean;
4268
+ };
4269
+ requestId: string;
4270
+ }, {
4271
+ data: {
4272
+ hasAssignedRoom: boolean;
4273
+ };
4274
+ requestId: string;
4275
+ }>;
4276
+ };
4277
+ path: "/automation-queue/check-has-assigned-room";
4278
+ };
4242
4279
  };
4243
4280
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/automation-queue/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,2BAA2B,EAC3B,+BAA+B,EAC/B,2BAA2B,EAC5B,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAGjD,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAC7C,OAAO,+BAA+B,CACvC,CAAC;AACF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAChD,OAAO,2BAA2B,CACnC,CAAC;AACF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAChD,OAAO,2BAA2B,CACnC,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2FnC,CAAC"}
@@ -50,4 +50,14 @@ export declare const UpdateAutomationQueueSchema: z.ZodObject<{
50
50
  distributionStrategy: "round-robin" | "fewest-assignments" | "random" | "notify-all";
51
51
  maximumAssignPerAgent: number;
52
52
  }>;
53
+ export declare const CheckHasAssignedRoomSchema: z.ZodObject<{
54
+ userId: z.ZodString;
55
+ queueId: z.ZodOptional<z.ZodString>;
56
+ }, "strip", z.ZodTypeAny, {
57
+ userId: string;
58
+ queueId?: string | undefined;
59
+ }, {
60
+ userId: string;
61
+ queueId?: string | undefined;
62
+ }>;
53
63
  //# sourceMappingURL=validation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../../src/automation-queue/validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,+BAA+B,mIAK1C,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;EAYtC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;EAA8B,CAAC"}
1
+ {"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../../src/automation-queue/validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,+BAA+B,mIAK1C,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;EAYtC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;EAA8B,CAAC;AAEvE,eAAO,MAAM,0BAA0B;;;;;;;;;EAGrC,CAAC"}
@@ -223612,19 +223612,19 @@ export declare const workflowContract: {
223612
223612
  chat: {
223613
223613
  updateAssignee: {
223614
223614
  body: import("zod").ZodObject<{
223615
- assigneeId: import("zod").ZodString;
223615
+ assigneeId: import("zod").ZodOptional<import("zod").ZodString>;
223616
223616
  roomId: import("zod").ZodString;
223617
223617
  workflowId: import("zod").ZodString;
223618
223618
  queueId: import("zod").ZodOptional<import("zod").ZodString>;
223619
223619
  }, "strip", import("zod").ZodTypeAny, {
223620
- assigneeId: string;
223621
223620
  roomId: string;
223622
223621
  workflowId: string;
223622
+ assigneeId?: string | undefined;
223623
223623
  queueId?: string | undefined;
223624
223624
  }, {
223625
- assigneeId: string;
223626
223625
  roomId: string;
223627
223626
  workflowId: string;
223627
+ assigneeId?: string | undefined;
223628
223628
  queueId?: string | undefined;
223629
223629
  }>;
223630
223630
  summary: "Update room assignee";
@@ -2,19 +2,19 @@ import z from 'zod';
2
2
  export declare const chatContract: {
3
3
  updateAssignee: {
4
4
  body: z.ZodObject<{
5
- assigneeId: z.ZodString;
5
+ assigneeId: z.ZodOptional<z.ZodString>;
6
6
  roomId: z.ZodString;
7
7
  workflowId: z.ZodString;
8
8
  queueId: z.ZodOptional<z.ZodString>;
9
9
  }, "strip", z.ZodTypeAny, {
10
- assigneeId: string;
11
10
  roomId: string;
12
11
  workflowId: string;
12
+ assigneeId?: string | undefined;
13
13
  queueId?: string | undefined;
14
14
  }, {
15
- assigneeId: string;
16
15
  roomId: string;
17
16
  workflowId: string;
17
+ assigneeId?: string | undefined;
18
18
  queueId?: string | undefined;
19
19
  }>;
20
20
  summary: "Update room assignee";
package/dist/index.js CHANGED
@@ -7886,7 +7886,7 @@ var chatContract = (0, import_core38.initContract)().router(
7886
7886
  method: "POST",
7887
7887
  path: "/room/assignee",
7888
7888
  body: import_zod106.default.object({
7889
- assigneeId: import_zod106.default.string().uuid(),
7889
+ assigneeId: import_zod106.default.string().uuid().optional(),
7890
7890
  roomId: import_zod106.default.string().uuid(),
7891
7891
  workflowId: import_zod106.default.string().uuid(),
7892
7892
  queueId: import_zod106.default.string().uuid().optional()
@@ -8380,6 +8380,10 @@ var CreateAutomationQueueSchema = import_zod112.z.object({
8380
8380
  // isAssignmentDeniable: z.coerce.boolean(),
8381
8381
  });
8382
8382
  var UpdateAutomationQueueSchema = CreateAutomationQueueSchema;
8383
+ var CheckHasAssignedRoomSchema = import_zod112.z.object({
8384
+ userId: import_zod112.z.string().uuid(),
8385
+ queueId: import_zod112.z.string().uuid().optional()
8386
+ });
8383
8387
 
8384
8388
  // src/automation-queue/schema.ts
8385
8389
  var import_zod113 = require("zod");
@@ -8472,6 +8476,18 @@ var automationQueueContract = (0, import_core43.initContract)().router(
8472
8476
  message: import_zod114.z.string()
8473
8477
  })
8474
8478
  }
8479
+ },
8480
+ checkHasAssignedRoom: {
8481
+ method: "POST",
8482
+ path: "/check-has-assigned-room",
8483
+ body: CheckHasAssignedRoomSchema,
8484
+ responses: {
8485
+ 200: DefaultSuccessResponseSchema.extend({
8486
+ data: import_zod114.z.object({
8487
+ hasAssignedRoom: import_zod114.z.boolean()
8488
+ })
8489
+ })
8490
+ }
8475
8491
  }
8476
8492
  },
8477
8493
  { pathPrefix: "/automation-queue" }