@kl1/contracts 1.1.39 → 1.1.40

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
@@ -2538,6 +2538,15 @@ var mainChatContract = initContract7().router(
2538
2538
  500: DefaultErrorResponseSchema
2539
2539
  }
2540
2540
  },
2541
+ getUnreadCounts: {
2542
+ method: "GET",
2543
+ path: "/rooms/unread-count",
2544
+ responses: {
2545
+ 200: DefaultSuccessResponseSchema.extend({
2546
+ unreadCountsByAssignee: z37.array(UnreadCountsByAssigneeSchema)
2547
+ })
2548
+ }
2549
+ },
2541
2550
  getRoomsByPlatformContactId: {
2542
2551
  method: "GET",
2543
2552
  path: "/rooms/:platformContactId",
@@ -3708,6 +3717,12 @@ var GetDashboardInOutQueryParamsSchema = GetDashboardQueryParamsSchema.merge(
3708
3717
  direction: z48.string().optional()
3709
3718
  })
3710
3719
  );
3720
+ var CallCountsQuerySchema = z48.object({
3721
+ agentIds: z48.array(z48.string().uuid()).optional(),
3722
+ userId: z48.string().uuid().optional(),
3723
+ types: z48.array(z48.string()).optional(),
3724
+ selectedDate: z48.string().optional()
3725
+ });
3711
3726
 
3712
3727
  // src/dashboard/index.ts
3713
3728
  import z50 from "zod";
@@ -3904,6 +3919,13 @@ var MessageIncomingDataSchema = z49.array(
3904
3919
  var MessageTotalIncomingDataSchema = z49.array(
3905
3920
  z49.object({ name: z49.string(), data: z49.array(z49.number()) }).nullable()
3906
3921
  );
3922
+ var CallCountsSchema = z49.object({
3923
+ answeredCallCount: z49.number().gte(0),
3924
+ noAnswerCallCount: z49.number().gte(0),
3925
+ busyCallCount: z49.number().gte(0),
3926
+ failedCallCount: z49.number().gte(0),
3927
+ totalCallCount: z49.number().gte(0)
3928
+ });
3907
3929
 
3908
3930
  // src/dashboard/index.ts
3909
3931
  var dashboardContract = initContract12().router(
@@ -4152,6 +4174,16 @@ var dashboardContract = initContract12().router(
4152
4174
  }),
4153
4175
  401: DefaultUnauthorizedSchema
4154
4176
  }
4177
+ },
4178
+ getCallCounts: {
4179
+ method: "GET",
4180
+ path: "/call-counts",
4181
+ query: CallCountsQuerySchema,
4182
+ responses: {
4183
+ 200: DefaultSuccessResponseSchema.extend({
4184
+ callCounts: CallCountsSchema
4185
+ })
4186
+ }
4155
4187
  }
4156
4188
  },
4157
4189
  {