@kl1/contracts 1.1.86-uat → 1.1.88-uat

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.mjs CHANGED
@@ -1328,6 +1328,9 @@ var RoomSchema = DefaultEntitySchema.extend({
1328
1328
  cxlog: CxLogSchema,
1329
1329
  workflowRule: WorkflowRuleSchema
1330
1330
  });
1331
+ var QueueRoomSchema = RoomSchema.extend({
1332
+ automationQueueId: z30.string().uuid().nullable()
1333
+ });
1331
1334
  var MessageSchema = DefaultEntitySchema.extend({
1332
1335
  message: z30.string(),
1333
1336
  direction: MessageDirectionTypeSchema,
@@ -1556,6 +1559,9 @@ var GetRoomsSchema = z33.object({
1556
1559
  caseId: z33.string().optional(),
1557
1560
  dispositions: z33.array(z33.string()).optional()
1558
1561
  });
1562
+ var GetQueueRoomsSchema = GetRoomsSchema.extend({
1563
+ automationQueueId: z33.string().uuid()
1564
+ });
1559
1565
  var UpdateRoomTagsAndNotesSchema = z33.object({
1560
1566
  note: z33.string().optional(),
1561
1567
  tags: TagSchema.array().optional()
@@ -1604,6 +1610,14 @@ var SendMessageSchema = z33.object({
1604
1610
  mentions: z33.array(z33.string().uuid()).optional()
1605
1611
  }).optional()
1606
1612
  });
1613
+ var InitiateMessageSchema = z33.object({
1614
+ platformContactId: z33.string().uuid(),
1615
+ channelId: z33.string().uuid(),
1616
+ message: z33.object({
1617
+ message: z33.string().optional(),
1618
+ messageType: MessageTypeSchema
1619
+ })
1620
+ });
1607
1621
  var SolveRoomSchema = z33.object({
1608
1622
  roomId: z33.string(),
1609
1623
  disposition: z33.string()
@@ -2486,6 +2500,30 @@ var mainChatRoomContract = initContract7().router(
2486
2500
  pathPrefix: "chat"
2487
2501
  }
2488
2502
  );
2503
+ var mainChatRoomQueueContract = initContract7().router(
2504
+ {
2505
+ getQueueRooms: {
2506
+ method: "GET",
2507
+ path: "/rooms-queue",
2508
+ responses: {
2509
+ 200: DefaultSuccessResponseSchema.extend({
2510
+ total: z37.number(),
2511
+ page: z37.number(),
2512
+ pageSize: z37.number(),
2513
+ data: z37.array(QueueRoomSchema),
2514
+ unreadCountsByAssignee: z37.array(UnreadCountsByAssigneeSchema)
2515
+ }),
2516
+ 401: DefaultUnauthorizedSchema
2517
+ },
2518
+ query: GetQueueRoomsSchema,
2519
+ summary: "Get rooms related with queue"
2520
+ }
2521
+ },
2522
+ {
2523
+ baseHeaders: DefaultHeaderSchema,
2524
+ pathPrefix: "chat"
2525
+ }
2526
+ );
2489
2527
  var mainChatContract = initContract7().router(
2490
2528
  {
2491
2529
  sendMessage: {
@@ -2500,6 +2538,16 @@ var mainChatContract = initContract7().router(
2500
2538
  },
2501
2539
  summary: "Send message to room"
2502
2540
  },
2541
+ initiateMessage: {
2542
+ method: "POST",
2543
+ path: "/initiate-message",
2544
+ body: InitiateMessageSchema,
2545
+ responses: {
2546
+ 200: DefaultSuccessResponseSchema.extend({ data: MessageSchema }),
2547
+ 400: DefaultErrorResponseSchema,
2548
+ 500: DefaultErrorResponseSchema
2549
+ }
2550
+ },
2503
2551
  getRoomsByPlatformContactId: {
2504
2552
  method: "GET",
2505
2553
  path: "/rooms/:platformContactId",
@@ -9220,6 +9268,7 @@ export {
9220
9268
  mainChatContract,
9221
9269
  mainChatMessageContract,
9222
9270
  mainChatRoomContract,
9271
+ mainChatRoomQueueContract,
9223
9272
  mainFeedContract,
9224
9273
  memberSettingContract,
9225
9274
  notificationContract,