@kl1/contracts 1.4.29 → 1.4.31

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
@@ -2837,7 +2837,7 @@ var mainFeedContract = initContract8().router(
2837
2837
  {
2838
2838
  getFeedPostById: {
2839
2839
  method: "GET",
2840
- path: "/:id",
2840
+ path: "chs/api/v1/chat/feed-post/:id",
2841
2841
  pathParams: z42.object({
2842
2842
  id: z42.string().uuid()
2843
2843
  }),
@@ -2850,7 +2850,7 @@ var mainFeedContract = initContract8().router(
2850
2850
  },
2851
2851
  getMessagesByParent: {
2852
2852
  method: "GET",
2853
- path: "/message/:parentId/relevance",
2853
+ path: "ms/feed-post/message/:parentId/relevance",
2854
2854
  pathParams: z42.object({
2855
2855
  parentId: z42.string().uuid()
2856
2856
  }),
@@ -2867,8 +2867,7 @@ var mainFeedContract = initContract8().router(
2867
2867
  }
2868
2868
  },
2869
2869
  {
2870
- baseHeaders: DefaultHeaderSchema,
2871
- pathPrefix: "ms/feed-post"
2870
+ baseHeaders: DefaultHeaderSchema
2872
2871
  }
2873
2872
  );
2874
2873
  var mainChatRoomContract = initContract8().router(
@@ -2892,7 +2891,7 @@ var mainChatRoomContract = initContract8().router(
2892
2891
  },
2893
2892
  getRoom: {
2894
2893
  method: "GET",
2895
- path: "ms/chat/room/:roomId",
2894
+ path: "chs/api/v1/chat/rooms/:roomId",
2896
2895
  pathParams: z42.object({
2897
2896
  roomId: z42.string().uuid()
2898
2897
  }),
@@ -3004,7 +3003,7 @@ var mainChatRoomContract = initContract8().router(
3004
3003
  },
3005
3004
  getAllRoomCount: {
3006
3005
  method: "GET",
3007
- path: "/chs/api/v1/chat/opened-and-closed-room-counts",
3006
+ path: "chs/api/v1/chat/opened-and-closed-room-counts",
3008
3007
  responses: {
3009
3008
  200: DefaultSuccessResponseSchema.extend({
3010
3009
  data: AllOpenCloseRoomCountSchema
@@ -3014,7 +3013,7 @@ var mainChatRoomContract = initContract8().router(
3014
3013
  },
3015
3014
  getAllQueueAndHoldCount: {
3016
3015
  method: "GET",
3017
- path: "/chs/api/v1/chat/queue-and-hold-room-counts",
3016
+ path: "chs/api/v1/chat/queue-and-hold-room-counts",
3018
3017
  responses: {
3019
3018
  200: DefaultSuccessResponseSchema.extend({
3020
3019
  data: AllHoldAndQueueRoomCountSchema
@@ -3024,7 +3023,7 @@ var mainChatRoomContract = initContract8().router(
3024
3023
  },
3025
3024
  getAllBotRoomCount: {
3026
3025
  method: "GET",
3027
- path: "/chs/api/v1/chat/bot-room-count",
3026
+ path: "chs/api/v1/chat/bot-room-count",
3028
3027
  responses: {
3029
3028
  200: DefaultSuccessResponseSchema.extend({
3030
3029
  data: AllOpenCloseBotRoomCountSchema
@@ -10723,124 +10722,121 @@ var HoldRoomSchema = z135.object({
10723
10722
  });
10724
10723
 
10725
10724
  // src/hold-label/index.ts
10726
- var holdLabelContract = initContract53().router(
10727
- {
10728
- createHoldLabel: {
10729
- method: "POST",
10730
- path: "/",
10731
- body: z136.object({ name: z136.string() }),
10732
- responses: {
10733
- 201: DefaultSuccessResponseSchema.extend({
10734
- holdLabel: HoldLabelSchema
10735
- })
10736
- }
10737
- },
10738
- getHoldLabels: {
10739
- method: "GET",
10740
- path: "/",
10741
- responses: {
10742
- 200: DefaultSuccessResponseSchema.extend({
10743
- holdLabels: z136.array(HoldLabelSchema)
10744
- })
10745
- }
10746
- },
10747
- updateHoldLabelPosition: {
10748
- // To avoid conflict with updateHoldLabel, I used "POST" here.
10749
- method: "POST",
10750
- path: "/position",
10751
- body: UpdatePositionSchema2,
10752
- responses: {
10753
- 200: DefaultSuccessResponseSchema.extend({
10754
- holdLabel: HoldLabelSchema
10755
- })
10756
- }
10757
- },
10758
- updateHoldLabel: {
10759
- method: "PATCH",
10760
- path: "/:id",
10761
- pathParams: z136.object({ id: z136.string().uuid() }),
10762
- body: z136.object({ name: z136.string() }),
10763
- responses: {
10764
- 200: DefaultSuccessResponseSchema.extend({
10765
- holdLabel: HoldLabelSchema
10766
- })
10767
- }
10768
- },
10769
- deleteHoldLabel: {
10770
- method: "DELETE",
10771
- path: "/:id",
10772
- pathParams: z136.object({ id: z136.string().uuid() }),
10773
- body: null,
10774
- responses: {
10775
- 200: DefaultSuccessResponseSchema
10776
- }
10777
- },
10778
- getAutoUnhold: {
10779
- method: "GET",
10780
- path: "/auto-unhold",
10781
- responses: {
10782
- 200: DefaultSuccessResponseSchema.extend({
10783
- autoUnhold: z136.boolean(),
10784
- resumeLabel: z136.object({
10785
- show: z136.boolean(),
10786
- name: z136.string()
10787
- })
10788
- })
10789
- }
10790
- },
10791
- updateAutoUnhold: {
10792
- method: "POST",
10793
- path: "/auto-unhold",
10794
- body: z136.object({
10795
- autoUnhold: z136.boolean().optional(),
10725
+ var holdLabelContract = initContract53().router({
10726
+ createHoldLabel: {
10727
+ method: "POST",
10728
+ path: "ms/hold-label",
10729
+ body: z136.object({ name: z136.string() }),
10730
+ responses: {
10731
+ 201: DefaultSuccessResponseSchema.extend({
10732
+ holdLabel: HoldLabelSchema
10733
+ })
10734
+ }
10735
+ },
10736
+ getHoldLabels: {
10737
+ method: "GET",
10738
+ path: "chs/api/v1/hold-label",
10739
+ responses: {
10740
+ 200: DefaultSuccessResponseSchema.extend({
10741
+ holdLabels: z136.array(HoldLabelSchema)
10742
+ })
10743
+ }
10744
+ },
10745
+ updateHoldLabelPosition: {
10746
+ // To avoid conflict with updateHoldLabel, I used "POST" here.
10747
+ method: "POST",
10748
+ path: "ms/hold-label/position",
10749
+ body: UpdatePositionSchema2,
10750
+ responses: {
10751
+ 200: DefaultSuccessResponseSchema.extend({
10752
+ holdLabel: HoldLabelSchema
10753
+ })
10754
+ }
10755
+ },
10756
+ updateHoldLabel: {
10757
+ method: "PATCH",
10758
+ path: "ms/hold-label/:id",
10759
+ pathParams: z136.object({ id: z136.string().uuid() }),
10760
+ body: z136.object({ name: z136.string() }),
10761
+ responses: {
10762
+ 200: DefaultSuccessResponseSchema.extend({
10763
+ holdLabel: HoldLabelSchema
10764
+ })
10765
+ }
10766
+ },
10767
+ deleteHoldLabel: {
10768
+ method: "DELETE",
10769
+ path: "ms/hold-label/:id",
10770
+ pathParams: z136.object({ id: z136.string().uuid() }),
10771
+ body: null,
10772
+ responses: {
10773
+ 200: DefaultSuccessResponseSchema
10774
+ }
10775
+ },
10776
+ getAutoUnhold: {
10777
+ method: "GET",
10778
+ path: "ms/hold-label/auto-unhold",
10779
+ responses: {
10780
+ 200: DefaultSuccessResponseSchema.extend({
10781
+ autoUnhold: z136.boolean(),
10796
10782
  resumeLabel: z136.object({
10797
- show: z136.boolean().optional(),
10798
- name: z136.string().optional()
10799
- }).optional()
10800
- }),
10801
- responses: {
10802
- 200: DefaultSuccessResponseSchema.extend({
10803
- autoUnhold: z136.boolean(),
10804
- resumeLabel: z136.object({
10805
- show: z136.boolean(),
10806
- name: z136.string()
10807
- })
10808
- })
10809
- }
10810
- },
10811
- getHoldLogs: {
10812
- method: "GET",
10813
- path: "/hold-logs",
10814
- query: z136.object({ cxLogId: z136.string().uuid() }),
10815
- responses: {
10816
- 200: z136.object({
10817
- holdLogs: z136.array(FormattedHoldLogSchema)
10783
+ show: z136.boolean(),
10784
+ name: z136.string()
10818
10785
  })
10819
- }
10820
- },
10821
- holdRoom: {
10822
- method: "POST",
10823
- path: "/hold-room",
10824
- body: HoldRoomSchema,
10825
- responses: {
10826
- 200: DefaultSuccessResponseSchema.extend({
10827
- holdLog: HoldLogSchema
10828
- })
10829
- }
10830
- },
10831
- unholdRoom: {
10832
- method: "POST",
10833
- path: "/unhold-room",
10834
- body: z136.object({ roomId: z136.string().uuid() }),
10835
- responses: {
10836
- 200: DefaultSuccessResponseSchema.extend({
10837
- holdLog: HoldLogSchema.optional()
10786
+ })
10787
+ }
10788
+ },
10789
+ updateAutoUnhold: {
10790
+ method: "POST",
10791
+ path: "ms/hold-label/auto-unhold",
10792
+ body: z136.object({
10793
+ autoUnhold: z136.boolean().optional(),
10794
+ resumeLabel: z136.object({
10795
+ show: z136.boolean().optional(),
10796
+ name: z136.string().optional()
10797
+ }).optional()
10798
+ }),
10799
+ responses: {
10800
+ 200: DefaultSuccessResponseSchema.extend({
10801
+ autoUnhold: z136.boolean(),
10802
+ resumeLabel: z136.object({
10803
+ show: z136.boolean(),
10804
+ name: z136.string()
10838
10805
  })
10839
- }
10806
+ })
10840
10807
  }
10841
10808
  },
10842
- { pathPrefix: "ms/hold-label" }
10843
- );
10809
+ getHoldLogs: {
10810
+ method: "GET",
10811
+ path: "ms/hold-label/hold-logs",
10812
+ query: z136.object({ cxLogId: z136.string().uuid() }),
10813
+ responses: {
10814
+ 200: z136.object({
10815
+ holdLogs: z136.array(FormattedHoldLogSchema)
10816
+ })
10817
+ }
10818
+ },
10819
+ holdRoom: {
10820
+ method: "POST",
10821
+ path: "ms/hold-label/hold-room",
10822
+ body: HoldRoomSchema,
10823
+ responses: {
10824
+ 200: DefaultSuccessResponseSchema.extend({
10825
+ holdLog: HoldLogSchema
10826
+ })
10827
+ }
10828
+ },
10829
+ unholdRoom: {
10830
+ method: "POST",
10831
+ path: "ms/hold-label/unhold-room",
10832
+ body: z136.object({ roomId: z136.string().uuid() }),
10833
+ responses: {
10834
+ 200: DefaultSuccessResponseSchema.extend({
10835
+ holdLog: HoldLogSchema.optional()
10836
+ })
10837
+ }
10838
+ }
10839
+ });
10844
10840
 
10845
10841
  // src/subscription/index.ts
10846
10842
  import { initContract as initContract54 } from "@ts-rest/core";