@kl1/contracts 1.1.2-uat → 1.1.3

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
@@ -1101,9 +1101,7 @@ var PlatformContactSchema = z26.object({
1101
1101
  var RoomSchema = DefaultEntitySchema.extend({
1102
1102
  lastMessage: z26.string(),
1103
1103
  handleTime: z26.number(),
1104
- closedAt: z26.date(),
1105
- lastMessageAt: z26.date().nullable(),
1106
- status: z26.number(),
1104
+ closeAt: z26.date(),
1107
1105
  unreadCount: z26.number(),
1108
1106
  firstResponseAt: z26.date(),
1109
1107
  firstResponseTime: z26.number(),
@@ -1280,8 +1278,61 @@ var RepliedMessageSchema = DefaultEntitySchema.extend({
1280
1278
  url: z26.string(),
1281
1279
  previewUrl: z26.string(),
1282
1280
  imageSetId: z26.string(),
1281
+ // room: RoomSchema,
1283
1282
  upload: UploadSchema,
1283
+ // id: z.string().uuid(),
1284
+ // createdAt: z.date(),
1285
+ // updatedAt: z.date(),
1286
+ // deletedAt: z.date().nullable(),
1287
+ // name: z.string(),
1288
+ // email: z.string().email(),
1289
+ // emailVerifiedAt: z.date().nullable(),
1290
+ // password: z.string(),
1291
+ // address: z.string().nullable(),
1292
+ // phone: z.string().nullable(),
1293
+ // notificationCount: z.number().nullable(),
1294
+ // roles: z.array(RoleSchema),
1295
+ // extension: z.object({
1296
+ // id: z.string().uuid(),
1297
+ // createdAt: z.date(),
1298
+ // updatedAt: z.date(),
1299
+ // deletedAt: z.date().nullable(),
1300
+ // userId: z.string().nullable(),
1301
+ // sipServerUrl: z.string(),
1302
+ // sipUserName: z.string(),
1303
+ // webphoneLoginUser: z.string(),
1304
+ // extensionId: z.string().nullable(),
1305
+ // extensionName: z.string(),
1306
+ // telephonySignature: z.string().nullable(),
1307
+ // }),
1308
+ // }),
1284
1309
  actor: UserSchema,
1310
+ // id: z.string().uuid(),
1311
+ // createdAt: z.date(),
1312
+ // updatedAt: z.date(),
1313
+ // deletedAt: z.date().nullable(),
1314
+ // name: z.string(),
1315
+ // email: z.string().email(),
1316
+ // emailVerifiedAt: z.date().nullable(),
1317
+ // password: z.string(),
1318
+ // address: z.string().nullable(),
1319
+ // phone: z.string().nullable(),
1320
+ // notificationCount: z.number().nullable(),
1321
+ // roles: z.array(RoleSchema),
1322
+ // extension: z.object({
1323
+ // id: z.string().uuid(),
1324
+ // createdAt: z.date(),
1325
+ // updatedAt: z.date(),
1326
+ // deletedAt: z.date().nullable(),
1327
+ // userId: z.string().nullable(),
1328
+ // sipServerUrl: z.string(),
1329
+ // sipUserName: z.string(),
1330
+ // webphoneLoginUser: z.string(),
1331
+ // extensionId: z.string().nullable(),
1332
+ // extensionName: z.string(),
1333
+ // telephonySignature: z.string().nullable(),
1334
+ // }),
1335
+ // }),
1285
1336
  assignee: UserSchema,
1286
1337
  sender: UserSchema
1287
1338
  });
@@ -1397,12 +1448,7 @@ var SendMessageSchema = z29.object({
1397
1448
  messageAttachments: MessageAttachmentSchema.optional(),
1398
1449
  user: UserSchema.optional(),
1399
1450
  sticker: StickerSchema.optional(),
1400
- file: z29.custom().optional(),
1401
- messengerTags: z29.union([
1402
- z29.literal("post_purchase_update"),
1403
- z29.literal("account_update"),
1404
- z29.literal("confirmed_event_update")
1405
- ]).optional()
1451
+ file: z29.custom().optional()
1406
1452
  });
1407
1453
  var SolveRoomSchema = z29.object({
1408
1454
  roomId: z29.string(),
@@ -1451,7 +1497,6 @@ var SendMessageToPlatformSchema = z29.object({
1451
1497
  createdAt: z29.string(),
1452
1498
  updatedAt: z29.string(),
1453
1499
  platformContact: z29.object({
1454
- id: z29.string().uuid(),
1455
1500
  channelId: z29.string().uuid(),
1456
1501
  socialPlatformId: z29.string().nullable(),
1457
1502
  type: ChannelTypeSchema,
@@ -1466,23 +1511,12 @@ var SendMessageToPlatformSchema = z29.object({
1466
1511
  })
1467
1512
  }),
1468
1513
  actor: z29.object({
1469
- id: z29.string().uuid(),
1470
1514
  name: z29.string(),
1471
1515
  email: z29.string().email(),
1472
1516
  address: z29.string().nullable(),
1473
1517
  phone: z29.string().nullable()
1474
1518
  }).nullable(),
1475
- assignee: z29.object({
1476
- id: z29.string().uuid(),
1477
- name: z29.string(),
1478
- email: z29.string().email()
1479
- }).nullable(),
1480
- channel: ChannelSchema2,
1481
- messengerTags: z29.union([
1482
- z29.literal("post_purchase_update"),
1483
- z29.literal("account_update"),
1484
- z29.literal("confirmed_event_update")
1485
- ]).optional()
1519
+ channel: ChannelSchema2
1486
1520
  }),
1487
1521
  message: z29.object({
1488
1522
  message: z29.string().optional(),
@@ -3083,6 +3117,11 @@ var GetDashboardQueryDetailParamsSchema = GetDashboardQueryParamsSchema.merge(
3083
3117
  agentId: z44.string().uuid().optional()
3084
3118
  })
3085
3119
  ).optional();
3120
+ var GetDashboardInOutQueryParamsSchema = GetDashboardQueryParamsSchema.merge(
3121
+ z44.object({
3122
+ direction: z44.string().optional()
3123
+ })
3124
+ );
3086
3125
 
3087
3126
  // src/dashboard/index.ts
3088
3127
  import z46 from "zod";
@@ -3414,7 +3453,7 @@ var dashboardContract = initContract12().router(
3414
3453
  method: "GET",
3415
3454
  path: "/call/tag",
3416
3455
  summary: "Get call tag data",
3417
- query: GetDashboardQueryParamsSchema,
3456
+ query: GetDashboardInOutQueryParamsSchema,
3418
3457
  headers: DefaultHeaderSchema,
3419
3458
  responses: {
3420
3459
  200: DefaultSuccessResponseSchema.extend({
@@ -6003,7 +6042,7 @@ var userContract = initContract31().router(
6003
6042
  body: UpdateUserSchema,
6004
6043
  responses: {
6005
6044
  201: DefaultSuccessResponseSchema.extend({
6006
- role: UserSchema
6045
+ user: UserSchema
6007
6046
  }),
6008
6047
  400: z82.object({
6009
6048
  message: z82.string()