@kl1/contracts 1.2.84-uat → 1.2.85-uat

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.mjs CHANGED
@@ -4164,12 +4164,17 @@ import { initContract as initContract13 } from "@ts-rest/core";
4164
4164
  import z53 from "zod";
4165
4165
  var GetDashboardQueryParamsSchema = z53.object({
4166
4166
  channelIds: z53.array(z53.string().uuid()).optional(),
4167
- selectedDate: z53.string()
4167
+ selectedDate: z53.string().min(1)
4168
4168
  });
4169
4169
  var GetMessageChannelQueryParamsSchema = GetDashboardQueryParamsSchema.extend({
4170
4170
  time: z53.enum(["byDay", "byMonth", "byHour"]),
4171
4171
  channelIds: z53.array(z53.string()).optional()
4172
4172
  });
4173
+ var DashboardGlobalFiltersSchema = z53.object({
4174
+ automationQueueId: z53.string().uuid().optional(),
4175
+ selectedDate: z53.string().min(1),
4176
+ channelIds: z53.array(z53.string().uuid()).optional()
4177
+ });
4173
4178
  var DashboardQueryParamsSchema = GetDashboardQueryParamsSchema.extend({
4174
4179
  automationQueueId: z53.string().uuid().optional(),
4175
4180
  channelIds: z53.array(z53.string().uuid()).optional(),
@@ -4654,7 +4659,7 @@ var dashboardContract = initContract13().router(
4654
4659
  method: "GET",
4655
4660
  path: "/message/platform",
4656
4661
  summary: "Get message platform data",
4657
- query: DashboardQueryParamsSchema,
4662
+ query: DashboardGlobalFiltersSchema,
4658
4663
  headers: DefaultHeaderSchema,
4659
4664
  responses: {
4660
4665
  200: DefaultSuccessResponseSchema.extend({
@@ -4663,6 +4668,14 @@ var dashboardContract = initContract13().router(
4663
4668
  401: DefaultUnauthorizedSchema
4664
4669
  }
4665
4670
  },
4671
+ exportRoomChannelCounts: {
4672
+ method: "GET",
4673
+ path: "/export-room-channel-counts",
4674
+ query: DashboardGlobalFiltersSchema,
4675
+ responses: {
4676
+ 200: DefaultSuccessResponseSchema
4677
+ }
4678
+ },
4666
4679
  getMessageRoomStatusDispositionData: {
4667
4680
  method: "GET",
4668
4681
  path: "/message/disposition",
@@ -4697,7 +4710,7 @@ var dashboardContract = initContract13().router(
4697
4710
  method: "GET",
4698
4711
  path: "/message/total-incoming",
4699
4712
  summary: "Get total incoming message data",
4700
- query: DashboardQueryParamsSchema,
4713
+ query: DashboardGlobalFiltersSchema,
4701
4714
  headers: DefaultHeaderSchema,
4702
4715
  responses: {
4703
4716
  200: DefaultSuccessResponseSchema.extend({
@@ -4706,6 +4719,14 @@ var dashboardContract = initContract13().router(
4706
4719
  401: DefaultUnauthorizedSchema
4707
4720
  }
4708
4721
  },
4722
+ exportIncomingMessageCounts: {
4723
+ method: "GET",
4724
+ path: "/export-incoming-message-counts",
4725
+ query: DashboardGlobalFiltersSchema,
4726
+ responses: {
4727
+ 200: DefaultSuccessResponseSchema
4728
+ }
4729
+ },
4709
4730
  getCallCounts: {
4710
4731
  method: "GET",
4711
4732
  path: "/call-counts",