@kl1/contracts 1.1.33 → 1.1.34

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
@@ -1617,6 +1617,44 @@ var ReloginChanelSchema = ChannelSchema2.extend({
1617
1617
  deletedAt: z33.string().nullable(),
1618
1618
  isReloginRequired: z33.boolean()
1619
1619
  });
1620
+ var DeleteMessageToPlatformSchema = z33.object({
1621
+ room: z33.object({
1622
+ id: z33.string().uuid(),
1623
+ channel: ChannelSchema2
1624
+ }),
1625
+ message: z33.object({
1626
+ id: z33.string().optional(),
1627
+ message: z33.string().nullable().optional(),
1628
+ direction: MessageDirectionTypeSchema,
1629
+ type: MessageTypeSchema,
1630
+ readAt: z33.union([z33.date(), z33.string()]).nullable().optional(),
1631
+ metadata: z33.any().optional(),
1632
+ platformId: z33.string().optional(),
1633
+ platformMessageId: z33.string().optional(),
1634
+ replyPlatformMessageId: z33.string().nullable().optional(),
1635
+ template: z33.any().optional(),
1636
+ locale: MessageLocaleTypeSchema.nullable().optional(),
1637
+ url: z33.string().nullable().optional(),
1638
+ previewUrl: z33.string().nullable().optional(),
1639
+ imageSetId: z33.string().nullable().optional(),
1640
+ upload: z33.object({
1641
+ bucketName: z33.string(),
1642
+ fileName: z33.string(),
1643
+ fileSize: z33.number(),
1644
+ fileKey: z33.string(),
1645
+ originalUrl: z33.string().optional()
1646
+ }).nullable().optional(),
1647
+ sender: z33.object({
1648
+ id: z33.string().uuid(),
1649
+ name: z33.string(),
1650
+ email: z33.string().email(),
1651
+ address: z33.string().nullable(),
1652
+ phone: z33.string().nullable()
1653
+ }).optional(),
1654
+ parentMessageId: z33.string().nullable().optional(),
1655
+ feedPostId: z33.string().uuid().nullable().optional()
1656
+ })
1657
+ });
1620
1658
  var SendMessageToPlatformSchema = z33.object({
1621
1659
  isBot: z33.boolean().nullable().default(false),
1622
1660
  room: z33.object({
@@ -2489,7 +2527,7 @@ var mainChatMessageContract = initContract7().router(
2489
2527
  body: ActionMessageSchema,
2490
2528
  responses: {
2491
2529
  200: DefaultSuccessResponseSchema.extend({
2492
- data: MessageSchema
2530
+ data: DeleteMessageToPlatformSchema
2493
2531
  }),
2494
2532
  404: DefaultErrorResponseSchema
2495
2533
  },
@@ -2656,7 +2694,7 @@ var commentContract = initContract8().router(
2656
2694
  summary: "Delete a comment."
2657
2695
  }
2658
2696
  },
2659
- { pathPrefix: "comment" }
2697
+ { pathPrefix: "ticket-service/comment" }
2660
2698
  );
2661
2699
 
2662
2700
  // src/company/index.ts
@@ -2846,7 +2884,7 @@ var companyContract = initContract9().router(
2846
2884
  }
2847
2885
  },
2848
2886
  {
2849
- pathPrefix: "companies"
2887
+ pathPrefix: "contact-service/companies"
2850
2888
  }
2851
2889
  );
2852
2890
 
@@ -3044,6 +3082,7 @@ var ContactContractValidationSchema = {
3044
3082
  page: z44.coerce.number().default(1),
3045
3083
  pageSize: z44.coerce.number().default(10),
3046
3084
  keyword: z44.string(),
3085
+ withEmail: z44.coerce.boolean().default(false),
3047
3086
  relations: z44.array(
3048
3087
  z44.union([
3049
3088
  z44.literal("company"),
@@ -3375,7 +3414,7 @@ var contactContract = initContract10().router(
3375
3414
  },
3376
3415
  {
3377
3416
  baseHeaders: DefaultHeaderSchema,
3378
- pathPrefix: "contact"
3417
+ pathPrefix: "contact-service/contact"
3379
3418
  }
3380
3419
  );
3381
3420
 
@@ -5633,7 +5672,7 @@ var ticketContract = initContract25().router(
5633
5672
  }
5634
5673
  }
5635
5674
  },
5636
- { pathPrefix: "ticket" }
5675
+ { pathPrefix: "ticket-service/ticket" }
5637
5676
  );
5638
5677
 
5639
5678
  // src/user/index.ts
@@ -6909,9 +6948,9 @@ var facebookFeedContract = initContract35().router({
6909
6948
  deleteMessage: {
6910
6949
  method: "DELETE",
6911
6950
  path: "/message",
6912
- body: SendMessageToPlatformSchema,
6951
+ body: DeleteMessageToPlatformSchema,
6913
6952
  responses: {
6914
- 200: SendMessageResponseSchema,
6953
+ 200: DeleteMessageToPlatformSchema,
6915
6954
  400: DefaultErrorResponseSchema,
6916
6955
  500: DefaultErrorResponseSchema
6917
6956
  }
@@ -7547,7 +7586,7 @@ var AttachmentSchema = z105.object({
7547
7586
  extensionName: z105.string()
7548
7587
  })
7549
7588
  });
7550
- var MessageSchema2 = z105.object({
7589
+ var MessageSchema3 = z105.object({
7551
7590
  id: z105.string(),
7552
7591
  createdAt: z105.date(),
7553
7592
  updatedAt: z105.date(),
@@ -7611,7 +7650,7 @@ var ActivityLogModel = z106.object({
7611
7650
  actor: UserModel
7612
7651
  });
7613
7652
  var MessagesAndLogsSchema = z106.array(
7614
- z106.union([MessageSchema2, ActivityLogModel])
7653
+ z106.union([MessageSchema3, ActivityLogModel])
7615
7654
  );
7616
7655
  var MailRoomSchema = z106.object({
7617
7656
  id: z106.string(),
@@ -7630,11 +7669,11 @@ var MailRoomSchema = z106.object({
7630
7669
  to: z106.array(MailUserSchema),
7631
7670
  cc: z106.array(MailUserSchema),
7632
7671
  bcc: z106.array(MailUserSchema),
7633
- firstMessage: MessageSchema2,
7634
- lastMessage: MessageSchema2,
7672
+ firstMessage: MessageSchema3,
7673
+ lastMessage: MessageSchema3,
7635
7674
  tags: z106.array(TagSchema2),
7636
7675
  assignee: UserModel,
7637
- messages: z106.array(MessageSchema2),
7676
+ messages: z106.array(MessageSchema3),
7638
7677
  messagesAndLogs: MessagesAndLogsSchema,
7639
7678
  mail: MailAccountSchema,
7640
7679
  unReadMessageCount: z106.number(),
@@ -8218,7 +8257,7 @@ var messageContract = initContract43().router(
8218
8257
  }),
8219
8258
  responses: {
8220
8259
  200: DefaultSuccessResponseSchema.extend({
8221
- data: MessageSchema2
8260
+ data: MessageSchema3
8222
8261
  }),
8223
8262
  ...DefaultResponses
8224
8263
  },