@kl1/contracts 1.0.40 → 1.0.41

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
@@ -1075,13 +1075,13 @@ var CustomFieldSchema = DefaultEntitySchema.extend({
1075
1075
  var GetRoomsSchema = z29.object({
1076
1076
  page: z29.coerce.number().positive().default(1),
1077
1077
  pageSize: z29.coerce.number().positive().default(20),
1078
- contactTagIds: z29.string().array().optional(),
1079
- contactIds: z29.string().array().optional(),
1080
- agentIds: z29.string().array().optional(),
1081
- roomTagIds: z29.string().array().optional(),
1078
+ contactTags: z29.string().array().optional(),
1079
+ contacts: z29.string().array().optional(),
1080
+ agents: z29.string().array().optional(),
1081
+ roomTags: z29.string().array().optional(),
1082
1082
  keyword: z29.string().optional(),
1083
- company: z29.string().array().optional(),
1084
- channel: z29.string().array().optional(),
1083
+ companies: z29.string().array().optional(),
1084
+ channels: z29.string().array().optional(),
1085
1085
  name: z29.string().optional(),
1086
1086
  address: z29.string().optional(),
1087
1087
  contactGroups: z29.string().array().optional(),
@@ -1091,7 +1091,9 @@ var GetRoomsSchema = z29.object({
1091
1091
  phone: z29.string().optional(),
1092
1092
  email: z29.string().optional(),
1093
1093
  notes: z29.string().optional(),
1094
- tab: z29.string().optional()
1094
+ tab: z29.string().optional(),
1095
+ type: z29.string().optional(),
1096
+ sorting: z29.string().optional().default("desc")
1095
1097
  });
1096
1098
  var UpdateRoomTagsAndNotesSchema = z29.object({
1097
1099
  note: z29.string().optional(),
@@ -1106,24 +1108,28 @@ var MessageAttachmentSchema = z29.object({
1106
1108
  fileName: z29.string(),
1107
1109
  fileSize: z29.number(),
1108
1110
  url: z29.string(),
1109
- fileType: MessageTypeSchema,
1111
+ fileType: z29.string(),
1110
1112
  thumbnailUrl: z29.string().optional()
1111
1113
  });
1114
+ var StickerSchema = z29.object({
1115
+ packageId: z29.number().optional(),
1116
+ stickerId: z29.number().optional()
1117
+ });
1112
1118
  var SendMessageSchema = z29.object({
1113
1119
  roomId: z29.string().uuid(),
1114
1120
  messageType: MessageTypeSchema,
1115
1121
  message: z29.string().optional(),
1116
1122
  messageAttachments: MessageAttachmentSchema.optional(),
1117
1123
  user: UserSchema.optional(),
1118
- packageId: z29.number().optional(),
1119
- stickerId: z29.number().optional()
1124
+ sticker: StickerSchema
1120
1125
  });
1121
1126
  var SolveRoomSchema = z29.object({
1122
1127
  roomId: z29.string(),
1123
1128
  disposition: z29.string()
1124
1129
  });
1125
- var UpdateAssigneeSchema = SolveRoomSchema.extend({
1126
- assigneeId: z29.string().uuid()
1130
+ var UpdateAssigneeSchema = z29.object({
1131
+ assigneeId: z29.string().uuid(),
1132
+ roomId: z29.string()
1127
1133
  });
1128
1134
  var SearchRoomsSchema = DefaultQueryParamsSchema.extend({
1129
1135
  query: z29.string()
@@ -1310,9 +1316,6 @@ var mainChatContract = initContract6().router(
1310
1316
  path: "/message",
1311
1317
  body: SendMessageSchema,
1312
1318
  responses: {
1313
- 200: DefaultSuccessResponseSchema.extend({
1314
- data: MessageSchema
1315
- }),
1316
1319
  500: DefaultErrorResponseSchema
1317
1320
  },
1318
1321
  summary: "Send message to room"