@kl1/contracts 1.3.4 → 1.3.6

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
@@ -609,64 +609,72 @@ var WorkflowRuleSchema = DefaultEntitySchema.extend({
609
609
  });
610
610
 
611
611
  // src/chat/schema.ts
612
- var MessageDirectionTypeSchema = z18.union([
613
- z18.literal("incoming"),
614
- z18.literal("outgoing"),
615
- z18.literal("system")
616
- ]);
617
- var WorkflowAutoReplyMessageTypeSchema = z18.enum(["text", "image"]).default("text");
612
+ var messageDirections = [
613
+ "incoming",
614
+ "outgoing",
615
+ "system"
616
+ ];
617
+ var MessageDirectionTypeSchema = z18.enum(messageDirections);
618
+ var workflowAutoReplyMessageTypes = ["text", "image"];
619
+ var WorkflowAutoReplyMessageTypeSchema = z18.enum(workflowAutoReplyMessageTypes).default("text");
618
620
  var messageTypes = [
619
- z18.literal("text"),
620
- z18.literal("image"),
621
- z18.literal("video"),
622
- z18.literal("audio"),
623
- z18.literal("file"),
624
- z18.literal("imagemap"),
625
- z18.literal("group"),
626
- z18.literal("fallback"),
627
- z18.literal("location"),
628
- z18.literal("sticker"),
621
+ "text",
622
+ "image",
623
+ "video",
624
+ "audio",
625
+ "file",
626
+ "imagemap",
627
+ "group",
628
+ "fallback",
629
+ "location",
630
+ "sticker",
629
631
  // botpress specific
630
- z18.literal("carousel"),
631
- z18.literal("card"),
632
- z18.literal("choice"),
633
- z18.literal("dropdown"),
634
- z18.literal("text_with_image"),
635
- z18.literal("reaction"),
636
- z18.literal("contacts"),
632
+ "carousel",
633
+ "card",
634
+ "choice",
635
+ "dropdown",
636
+ "text_with_image",
637
+ "reaction",
638
+ "contacts",
639
+ // botpress specific
640
+ "carousel",
641
+ "card",
642
+ "choice",
643
+ "dropdown",
637
644
  // system
638
- z18.literal("csat"),
639
- z18.literal("assign"),
640
- z18.literal("solve"),
641
- z18.literal("resolved"),
642
- z18.literal("reopen"),
643
- z18.literal("open"),
644
- z18.literal("closed"),
645
- z18.literal("handed_over"),
646
- z18.literal("updated"),
647
- z18.literal("started"),
648
- z18.literal("hold"),
649
- z18.literal("unhold"),
650
- z18.literal("auto_unhold"),
651
- z18.literal("edited"),
652
- z18.literal("deleted"),
653
- z18.literal("unsupported"),
645
+ "csat",
646
+ "assign",
647
+ "solve",
648
+ "resolved",
649
+ "reopen",
650
+ "open",
651
+ "closed",
652
+ "handed_over",
653
+ "updated",
654
+ "started",
655
+ "hold",
656
+ "unhold",
657
+ "auto_unhold",
658
+ "edited",
659
+ "deleted",
660
+ "unsupported",
654
661
  // lazada specific
655
- z18.literal("lazada_item"),
656
- z18.literal("lazada_sys_msg"),
657
- z18.literal("lazada_order"),
658
- z18.literal("lazada_order_invite"),
659
- z18.literal("lazada_shop_invite")
662
+ "lazada_item",
663
+ "lazada_sys_msg",
664
+ "lazada_order",
665
+ "lazada_order_invite",
666
+ "lazada_shop_invite"
660
667
  ];
661
- var MessageTypeSchema = z18.union(messageTypes);
662
- var FeedPostTypeSchema = z18.enum([
668
+ var MessageTypeSchema = z18.enum(messageTypes);
669
+ var feedPostTypes = [
663
670
  "text",
664
671
  "added_photos",
665
672
  "added_video",
666
673
  "shared_story",
667
674
  "mobile_status_update",
668
675
  "no_data"
669
- ]);
676
+ ];
677
+ var FeedPostTypeSchema = z18.enum(feedPostTypes);
670
678
  var MessageLocaleTypeSchema = z18.enum(["mm", "en", "th", ""]);
671
679
  var PlatformContactMetadataSchema = z18.object({
672
680
  id: z18.string(),
@@ -2780,7 +2788,7 @@ var mainFeedContract = initContract8().router(
2780
2788
  {
2781
2789
  getFeedPostById: {
2782
2790
  method: "GET",
2783
- path: "/:id",
2791
+ path: "/feed-post/:id",
2784
2792
  pathParams: z42.object({
2785
2793
  id: z42.string().uuid()
2786
2794
  }),
@@ -2793,7 +2801,7 @@ var mainFeedContract = initContract8().router(
2793
2801
  },
2794
2802
  getMessagesByParent: {
2795
2803
  method: "GET",
2796
- path: "/message/:parentId/relevance",
2804
+ path: "/feed-post/message/:parentId/relevance",
2797
2805
  pathParams: z42.object({
2798
2806
  parentId: z42.string().uuid()
2799
2807
  }),
@@ -2810,8 +2818,7 @@ var mainFeedContract = initContract8().router(
2810
2818
  }
2811
2819
  },
2812
2820
  {
2813
- baseHeaders: DefaultHeaderSchema,
2814
- pathPrefix: "ms/feed-post"
2821
+ baseHeaders: DefaultHeaderSchema
2815
2822
  }
2816
2823
  );
2817
2824
  var mainChatRoomContract = initContract8().router(
@@ -10659,7 +10666,6 @@ export {
10659
10666
  userContract,
10660
10667
  userNotificationContract,
10661
10668
  userPresenceStatusLogContract,
10662
- widgetContract,
10663
10669
  widgetSettingContract,
10664
10670
  workflowContract,
10665
10671
  wrapUpFormContract