@kl1/contracts 1.1.3-uat → 1.1.4-uat

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
@@ -1988,6 +1988,7 @@ var mainChatContract = initContract7().router(
1988
1988
  body: SendMessageSchema,
1989
1989
  responses: {
1990
1990
  200: SendMessageResponseSchema,
1991
+ 400: DefaultErrorResponseSchema,
1991
1992
  422: DefaultErrorResponseSchema,
1992
1993
  500: DefaultErrorResponseSchema
1993
1994
  },
@@ -2060,7 +2061,24 @@ var mainChatContract = initContract7().router(
2060
2061
  }),
2061
2062
  responses: {
2062
2063
  200: DefaultSuccessResponseSchema.extend({
2063
- data: RoomSchema
2064
+ data: z33.object({
2065
+ room: RoomSchema,
2066
+ latestIncomingMessage: z33.object({
2067
+ message: z33.string(),
2068
+ direction: MessageDirectionTypeSchema,
2069
+ type: MessageTypeSchema,
2070
+ readAt: z33.date(),
2071
+ metadata: z33.any(),
2072
+ platformId: z33.string(),
2073
+ platformMessageId: z33.string(),
2074
+ replyPlatformMessageId: z33.string(),
2075
+ template: z33.any(),
2076
+ locale: MessageLocaleTypeSchema,
2077
+ url: z33.string(),
2078
+ previewUrl: z33.string(),
2079
+ imageSetId: z33.string()
2080
+ })
2081
+ })
2064
2082
  }),
2065
2083
  404: DefaultErrorResponseSchema
2066
2084
  },
@@ -3083,6 +3101,11 @@ var GetDashboardQueryDetailParamsSchema = GetDashboardQueryParamsSchema.merge(
3083
3101
  agentId: z44.string().uuid().optional()
3084
3102
  })
3085
3103
  ).optional();
3104
+ var GetDashboardInOutQueryParamsSchema = GetDashboardQueryParamsSchema.merge(
3105
+ z44.object({
3106
+ direction: z44.string().optional()
3107
+ })
3108
+ );
3086
3109
 
3087
3110
  // src/dashboard/index.ts
3088
3111
  import z46 from "zod";
@@ -3414,7 +3437,7 @@ var dashboardContract = initContract12().router(
3414
3437
  method: "GET",
3415
3438
  path: "/call/tag",
3416
3439
  summary: "Get call tag data",
3417
- query: GetDashboardQueryParamsSchema,
3440
+ query: GetDashboardInOutQueryParamsSchema,
3418
3441
  headers: DefaultHeaderSchema,
3419
3442
  responses: {
3420
3443
  200: DefaultSuccessResponseSchema.extend({
@@ -4669,6 +4692,7 @@ var messengerContract = initContract23().router({
4669
4692
  body: SendMessageToPlatformSchema,
4670
4693
  responses: {
4671
4694
  200: SendMessageResponseSchema,
4695
+ 400: DefaultErrorResponseSchema,
4672
4696
  500: DefaultErrorResponseSchema
4673
4697
  }
4674
4698
  },
@@ -5045,7 +5069,8 @@ var GetAllTelephonyCdrSchema = DefaultQueryParamsSchema.extend({
5045
5069
  userId: z76.string().uuid().optional(),
5046
5070
  queueStatus: z76.string().optional(),
5047
5071
  agentIds: z76.array(z76.string().uuid()).optional(),
5048
- agentCallsOnly: z76.coerce.boolean().optional()
5072
+ agentCallsOnly: z76.coerce.boolean().optional(),
5073
+ contactId: z76.string().uuid().optional()
5049
5074
  });
5050
5075
  var GetRecentTelephonyCdrSchema = DefaultQueryParamsSchema.extend({
5051
5076
  type: z76.array(z76.string()).optional(),