@kl1/contracts 1.4.28 → 1.4.30
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/api-contracts/src/chat/index.d.ts +5 -5
- package/dist/api-contracts/src/chat/index.d.ts.map +1 -1
- package/dist/api-contracts/src/contract.d.ts +15 -15
- package/dist/api-contracts/src/hold-label/index.d.ts +2 -2
- package/dist/api-contracts/src/hold-label/index.d.ts.map +1 -1
- package/dist/api-contracts/src/ticket/index.d.ts +14 -14
- package/dist/index.js +131 -135
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +131 -135
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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/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: "
|
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: "
|
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: "
|
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: "
|
3026
|
+
path: "chs/api/v1/chat/bot-room-count",
|
3028
3027
|
responses: {
|
3029
3028
|
200: DefaultSuccessResponseSchema.extend({
|
3030
3029
|
data: AllOpenCloseBotRoomCountSchema
|
@@ -6598,8 +6597,8 @@ var ticketContract = initContract26().router(
|
|
6598
6597
|
summary: "Delete a extension."
|
6599
6598
|
},
|
6600
6599
|
updateDescription: {
|
6601
|
-
method: "
|
6602
|
-
path: "
|
6600
|
+
method: "PUT",
|
6601
|
+
path: "tcs/api/v1/ticket/:id/description",
|
6603
6602
|
pathParams: z80.object({ id: z80.string() }),
|
6604
6603
|
body: z80.object({ description: z80.string() }),
|
6605
6604
|
headers: DefaultHeaderSchema,
|
@@ -6621,8 +6620,8 @@ var ticketContract = initContract26().router(
|
|
6621
6620
|
summary: "Update a description from a ticket"
|
6622
6621
|
},
|
6623
6622
|
updateTitle: {
|
6624
|
-
method: "
|
6625
|
-
path: "
|
6623
|
+
method: "PUT",
|
6624
|
+
path: "tcs/api/v1/ticket/:id/title",
|
6626
6625
|
pathParams: z80.object({ id: z80.string() }),
|
6627
6626
|
body: z80.object({ title: z80.string() }),
|
6628
6627
|
headers: DefaultHeaderSchema,
|
@@ -6644,8 +6643,8 @@ var ticketContract = initContract26().router(
|
|
6644
6643
|
summary: "Update a title from a ticket"
|
6645
6644
|
},
|
6646
6645
|
updateType: {
|
6647
|
-
method: "
|
6648
|
-
path: "
|
6646
|
+
method: "PUT",
|
6647
|
+
path: "tcs/api/v1/ticket/:id/type",
|
6649
6648
|
pathParams: z80.object({ id: z80.string() }),
|
6650
6649
|
body: z80.object({ type: z80.string() }),
|
6651
6650
|
headers: DefaultHeaderSchema,
|
@@ -6667,8 +6666,8 @@ var ticketContract = initContract26().router(
|
|
6667
6666
|
summary: "Update a type from a ticket"
|
6668
6667
|
},
|
6669
6668
|
updateStatus: {
|
6670
|
-
method: "
|
6671
|
-
path: "
|
6669
|
+
method: "PUT",
|
6670
|
+
path: "tcs/api/v1/ticket/:id/status",
|
6672
6671
|
pathParams: z80.object({ id: z80.string() }),
|
6673
6672
|
body: z80.object({ status: z80.string() }),
|
6674
6673
|
headers: DefaultHeaderSchema,
|
@@ -6690,8 +6689,8 @@ var ticketContract = initContract26().router(
|
|
6690
6689
|
summary: "Update a status from a ticket"
|
6691
6690
|
},
|
6692
6691
|
updatePriority: {
|
6693
|
-
method: "
|
6694
|
-
path: "
|
6692
|
+
method: "PUT",
|
6693
|
+
path: "tcs/api/v1/ticket/:id/priority",
|
6695
6694
|
pathParams: z80.object({ id: z80.string() }),
|
6696
6695
|
body: z80.object({ priority: z80.string() }),
|
6697
6696
|
headers: DefaultHeaderSchema,
|
@@ -6713,8 +6712,8 @@ var ticketContract = initContract26().router(
|
|
6713
6712
|
summary: "Update a priority from a ticket"
|
6714
6713
|
},
|
6715
6714
|
updateChannel: {
|
6716
|
-
method: "
|
6717
|
-
path: "
|
6715
|
+
method: "PUT",
|
6716
|
+
path: "tcs/api/v1/ticket/:id/channel",
|
6718
6717
|
pathParams: z80.object({ id: z80.string() }),
|
6719
6718
|
body: z80.object({ channel: z80.string() }),
|
6720
6719
|
headers: DefaultHeaderSchema,
|
@@ -6736,8 +6735,8 @@ var ticketContract = initContract26().router(
|
|
6736
6735
|
summary: "Update a channel from a ticket"
|
6737
6736
|
},
|
6738
6737
|
updateTags: {
|
6739
|
-
method: "
|
6740
|
-
path: "
|
6738
|
+
method: "PUT",
|
6739
|
+
path: "tcs/api/v1/ticket/:id/tags",
|
6741
6740
|
pathParams: z80.object({ id: z80.string() }),
|
6742
6741
|
body: z80.object({ tags: z80.array(z80.string()) }),
|
6743
6742
|
headers: DefaultHeaderSchema,
|
@@ -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
|
-
|
10729
|
-
|
10730
|
-
|
10731
|
-
|
10732
|
-
|
10733
|
-
|
10734
|
-
|
10735
|
-
|
10736
|
-
|
10737
|
-
|
10738
|
-
|
10739
|
-
|
10740
|
-
|
10741
|
-
|
10742
|
-
|
10743
|
-
|
10744
|
-
|
10745
|
-
|
10746
|
-
|
10747
|
-
|
10748
|
-
|
10749
|
-
|
10750
|
-
|
10751
|
-
|
10752
|
-
|
10753
|
-
|
10754
|
-
|
10755
|
-
|
10756
|
-
|
10757
|
-
|
10758
|
-
|
10759
|
-
|
10760
|
-
|
10761
|
-
|
10762
|
-
|
10763
|
-
|
10764
|
-
|
10765
|
-
|
10766
|
-
|
10767
|
-
|
10768
|
-
|
10769
|
-
|
10770
|
-
|
10771
|
-
|
10772
|
-
|
10773
|
-
|
10774
|
-
|
10775
|
-
|
10776
|
-
|
10777
|
-
|
10778
|
-
|
10779
|
-
|
10780
|
-
|
10781
|
-
|
10782
|
-
|
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()
|
10798
|
-
name: z136.string()
|
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
|
-
|
10822
|
-
|
10823
|
-
|
10824
|
-
|
10825
|
-
|
10826
|
-
|
10827
|
-
|
10828
|
-
|
10829
|
-
|
10830
|
-
|
10831
|
-
|
10832
|
-
|
10833
|
-
|
10834
|
-
|
10835
|
-
|
10836
|
-
|
10837
|
-
|
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
|
-
|
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";
|