@kl1/contracts 1.2.64-uat → 1.2.66-uat

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.mjs CHANGED
@@ -2153,7 +2153,8 @@ var ConnectWebChatSchema = z37.object({
2153
2153
  })
2154
2154
  });
2155
2155
  var GetChannelSchema = z37.object({
2156
- withDeleted: z37.coerce.boolean().default(false)
2156
+ withDeleted: z37.coerce.boolean().default(false),
2157
+ withRelations: z37.coerce.boolean().default(true).optional()
2157
2158
  });
2158
2159
  var ConnectBotSchema = z37.object({
2159
2160
  botId: z37.string().uuid()
@@ -4148,6 +4149,11 @@ var CallCountsQuerySchema = z53.object({
4148
4149
  types: z53.array(z53.string()).optional(),
4149
4150
  selectedDate: z53.string().optional()
4150
4151
  });
4152
+ var MessageDashboardDetailsQuerySchema = z53.object({
4153
+ automationQueueId: z53.string().uuid().optional(),
4154
+ selectedDate: z53.string().min(1),
4155
+ channelIds: z53.array(z53.string().uuid()).optional()
4156
+ });
4151
4157
 
4152
4158
  // src/dashboard/index.ts
4153
4159
  import z55 from "zod";
@@ -4371,7 +4377,21 @@ var AgentMessageStatisticsSchema = z54.object({
4371
4377
  name: z54.string(),
4372
4378
  openedRoomCount: z54.number(),
4373
4379
  holdRoomCount: z54.number(),
4374
- closedRoomCount: z54.number()
4380
+ closedRoomCount: z54.number(),
4381
+ averageFirstResponseTime: z54.number(),
4382
+ averageResolutionTime: z54.number(),
4383
+ totalHandledTime: z54.number()
4384
+ });
4385
+ var UserCheckInLogSchema = z54.object({
4386
+ userId: z54.string().uuid(),
4387
+ firstLoginTime: z54.string(),
4388
+ lastLogoutTime: z54.string().nullable(),
4389
+ totalLoginDuration: z54.string().nullable()
4390
+ });
4391
+ var UserCheckInLogsWithDaySchema = z54.object({
4392
+ date: z54.date(),
4393
+ formattedDate: z54.string(),
4394
+ userCheckInLogs: z54.array(UserCheckInLogSchema)
4375
4395
  });
4376
4396
 
4377
4397
  // src/dashboard/index.ts
@@ -4659,11 +4679,7 @@ var dashboardContract = initContract13().router(
4659
4679
  getMessageQueueData: {
4660
4680
  method: "GET",
4661
4681
  path: "/message-queue-data",
4662
- query: z55.object({
4663
- automationQueueId: z55.string().uuid().optional(),
4664
- selectedDate: z55.string().min(1),
4665
- channelIds: z55.array(z55.string().uuid()).optional()
4666
- }),
4682
+ query: MessageDashboardDetailsQuerySchema,
4667
4683
  responses: {
4668
4684
  200: DefaultSuccessResponseSchema.extend({
4669
4685
  messageQueueData: MessageQueueDataSchema
@@ -4673,10 +4689,22 @@ var dashboardContract = initContract13().router(
4673
4689
  getAgentMessageStatistics: {
4674
4690
  method: "GET",
4675
4691
  path: "/agent-message-statistics",
4676
- query: z55.object({
4677
- automationQueueId: z55.string().uuid().optional(),
4678
- selectedDate: z55.string().min(1),
4679
- channelIds: z55.array(z55.string().uuid()).optional(),
4692
+ query: MessageDashboardDetailsQuerySchema.extend({
4693
+ page: z55.coerce.number().positive(),
4694
+ pageSize: z55.coerce.number().positive()
4695
+ }),
4696
+ responses: {
4697
+ 200: DefaultSuccessResponseSchema.extend({
4698
+ page: z55.coerce.number().positive(),
4699
+ pageSize: z55.coerce.number().positive(),
4700
+ agentMessageStatistics: z55.array(AgentMessageStatisticsSchema).nullable()
4701
+ })
4702
+ }
4703
+ },
4704
+ getUserCheckInLogs: {
4705
+ method: "GET",
4706
+ path: "/user-check-in-logs-with-days",
4707
+ query: MessageDashboardDetailsQuerySchema.extend({
4680
4708
  page: z55.coerce.number().positive(),
4681
4709
  pageSize: z55.coerce.number().positive()
4682
4710
  }),
@@ -4684,7 +4712,7 @@ var dashboardContract = initContract13().router(
4684
4712
  200: DefaultSuccessResponseSchema.extend({
4685
4713
  page: z55.coerce.number().positive(),
4686
4714
  pageSize: z55.coerce.number().positive(),
4687
- agentMessageStatistics: z55.array(AgentMessageStatisticsSchema)
4715
+ userCheckInLogsWithDays: z55.array(UserCheckInLogsWithDaySchema)
4688
4716
  })
4689
4717
  }
4690
4718
  }
@@ -8862,7 +8890,8 @@ var automationQueueContract = initContract45().router(
8862
8890
  method: "GET",
8863
8891
  path: "",
8864
8892
  query: z117.object({
8865
- userId: z117.string().uuid().optional()
8893
+ userId: z117.string().uuid().optional(),
8894
+ withRelations: z117.coerce.boolean().default(true).optional()
8866
8895
  }).optional(),
8867
8896
  responses: {
8868
8897
  200: DefaultSuccessResponseSchema.extend({