@kl1/contracts 1.1.97-uat → 1.1.98-uat

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.mjs CHANGED
@@ -3777,6 +3777,12 @@ var GetDashboardInOutQueryParamsSchema = GetDashboardQueryParamsSchema.merge(
3777
3777
  direction: z48.string().optional()
3778
3778
  })
3779
3779
  );
3780
+ var CallCountsQuerySchema = z48.object({
3781
+ agentIds: z48.array(z48.string().uuid()).optional(),
3782
+ userId: z48.string().uuid().optional(),
3783
+ types: z48.array(z48.string()).optional(),
3784
+ selectedDate: z48.string().optional()
3785
+ });
3780
3786
 
3781
3787
  // src/dashboard/index.ts
3782
3788
  import z50 from "zod";
@@ -3972,6 +3978,13 @@ var MessageIncomingDataSchema = z49.array(
3972
3978
  var MessageTotalIncomingDataSchema = z49.array(
3973
3979
  z49.object({ name: z49.string(), data: z49.array(z49.number()) }).nullable()
3974
3980
  );
3981
+ var CallCountsSchema = z49.object({
3982
+ answeredCallCount: z49.number().gte(0),
3983
+ noAnswerCallCount: z49.number().gte(0),
3984
+ busyCallCount: z49.number().gte(0),
3985
+ failedCallCount: z49.number().gte(0),
3986
+ totalCallCount: z49.number().gte(0)
3987
+ });
3975
3988
 
3976
3989
  // src/dashboard/index.ts
3977
3990
  var dashboardContract = initContract12().router(
@@ -4220,6 +4233,16 @@ var dashboardContract = initContract12().router(
4220
4233
  }),
4221
4234
  401: DefaultUnauthorizedSchema
4222
4235
  }
4236
+ },
4237
+ getCallCounts: {
4238
+ method: "GET",
4239
+ path: "/call-counts",
4240
+ query: CallCountsQuerySchema,
4241
+ responses: {
4242
+ 200: DefaultSuccessResponseSchema.extend({
4243
+ callCounts: CallCountsSchema
4244
+ })
4245
+ }
4223
4246
  }
4224
4247
  },
4225
4248
  {