@kl1/contracts 1.3.30 → 1.3.32
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/activity-log/index.d.ts +1 -1
- package/dist/api-contracts/src/attribute/index.d.ts +7 -7
- package/dist/api-contracts/src/auth/index.d.ts +1 -1
- package/dist/api-contracts/src/automation-queue/index.d.ts +7 -7
- package/dist/api-contracts/src/automation-queue/index.d.ts.map +1 -1
- package/dist/api-contracts/src/aws/index.d.ts +2 -2
- package/dist/api-contracts/src/botpress/index.d.ts +2 -2
- package/dist/api-contracts/src/business-calendar/index.d.ts +4 -4
- package/dist/api-contracts/src/business-calendar/index.d.ts.map +1 -1
- package/dist/api-contracts/src/category/index.d.ts +7 -7
- package/dist/api-contracts/src/channel/index.d.ts +27 -27
- package/dist/api-contracts/src/channel/index.d.ts.map +1 -1
- package/dist/api-contracts/src/chat/index.d.ts +1821 -1821
- package/dist/api-contracts/src/chat/index.d.ts.map +1 -1
- package/dist/api-contracts/src/chat/schema.d.ts +400 -400
- package/dist/api-contracts/src/chat/validation.d.ts +321 -321
- package/dist/api-contracts/src/comment/index.d.ts +364 -364
- package/dist/api-contracts/src/comment/schema.d.ts +88 -88
- package/dist/api-contracts/src/contract.d.ts +33503 -33503
- package/dist/api-contracts/src/contract.d.ts.map +1 -1
- package/dist/api-contracts/src/cx-log/index.d.ts +64 -64
- package/dist/api-contracts/src/cx-log/index.d.ts.map +1 -1
- package/dist/api-contracts/src/cx-log/schema.d.ts +80 -80
- package/dist/api-contracts/src/dashboard/index.d.ts +19 -19
- package/dist/api-contracts/src/evaluate-form/index.d.ts +1 -1
- package/dist/api-contracts/src/extension/index.d.ts +7 -7
- package/dist/api-contracts/src/facebook-feed/index.d.ts +220 -220
- package/dist/api-contracts/src/general-setting/index.d.ts +2 -2
- package/dist/api-contracts/src/hold-label/index.d.ts +10 -10
- package/dist/api-contracts/src/instagram/index.d.ts +220 -220
- package/dist/api-contracts/src/line/index.d.ts +220 -220
- package/dist/api-contracts/src/mail/email-engine-webhooks-events.contract.d.ts +1 -1
- package/dist/api-contracts/src/mail/email-engine-webhooks-events.contract.d.ts.map +1 -1
- package/dist/api-contracts/src/mail/mail-contract.d.ts +240 -240
- package/dist/api-contracts/src/mail/room-contract.d.ts +240 -240
- package/dist/api-contracts/src/mail/schemas/room-validation.schema.d.ts +80 -80
- package/dist/api-contracts/src/mail/schemas/room.schema.d.ts +60 -60
- package/dist/api-contracts/src/messenger/index.d.ts +220 -220
- package/dist/api-contracts/src/notification/index.d.ts +4 -4
- package/dist/api-contracts/src/permission/index.d.ts +1 -1
- package/dist/api-contracts/src/presence-status/index.d.ts +5 -5
- package/dist/api-contracts/src/role/index.d.ts +5 -5
- package/dist/api-contracts/src/snippet/index.d.ts +8 -8
- package/dist/api-contracts/src/subscription/index.d.ts +5 -5
- package/dist/api-contracts/src/tag/index.d.ts +4 -4
- package/dist/api-contracts/src/telegram/index.d.ts +220 -220
- package/dist/api-contracts/src/telephony-agent-presence-status/index.d.ts +3 -3
- package/dist/api-contracts/src/telephony-cdr/index.d.ts +14 -14
- package/dist/api-contracts/src/telephony-extension/index.d.ts +1 -1
- package/dist/api-contracts/src/ticket/index.d.ts +672 -672
- package/dist/api-contracts/src/ticket/schema.d.ts +44 -44
- package/dist/api-contracts/src/ticket/validation.d.ts +20 -20
- package/dist/api-contracts/src/upload/index.d.ts +2 -2
- package/dist/api-contracts/src/user/index.d.ts +7 -7
- package/dist/api-contracts/src/user-presence-status-log/index.d.ts +2 -2
- package/dist/api-contracts/src/viber/index.d.ts +220 -220
- package/dist/api-contracts/src/webchat/index.d.ts +220 -220
- package/dist/api-contracts/src/whatsapp/index.d.ts +220 -220
- package/dist/api-contracts/src/workflow-rule/index.d.ts +260 -260
- package/dist/api-contracts/src/wrap-up-form/index.d.ts +187 -187
- package/dist/api-contracts/src/wrap-up-form/schema.d.ts +20 -20
- package/dist/index.js +187 -169
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +187 -169
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1728,7 +1728,7 @@ var activityLogContract = initContract2().router(
|
|
|
1728
1728
|
summary: "Get all activity logs"
|
|
1729
1729
|
}
|
|
1730
1730
|
},
|
|
1731
|
-
{ pathPrefix: "activity-log" }
|
|
1731
|
+
{ pathPrefix: "ms/activity-log" }
|
|
1732
1732
|
);
|
|
1733
1733
|
|
|
1734
1734
|
// src/attribute/index.ts
|
|
@@ -1853,7 +1853,7 @@ var attributeContract = initContract3().router(
|
|
|
1853
1853
|
}
|
|
1854
1854
|
},
|
|
1855
1855
|
{
|
|
1856
|
-
pathPrefix: "attributes"
|
|
1856
|
+
pathPrefix: "ms/attributes"
|
|
1857
1857
|
}
|
|
1858
1858
|
);
|
|
1859
1859
|
|
|
@@ -1876,7 +1876,7 @@ var authContract = initContract4().router(
|
|
|
1876
1876
|
summary: "Get current user"
|
|
1877
1877
|
}
|
|
1878
1878
|
},
|
|
1879
|
-
{ pathPrefix: "auth" }
|
|
1879
|
+
{ pathPrefix: "ms/auth" }
|
|
1880
1880
|
);
|
|
1881
1881
|
|
|
1882
1882
|
// src/aws/index.ts
|
|
@@ -1940,7 +1940,7 @@ var awsContract = initContract5().router(
|
|
|
1940
1940
|
}
|
|
1941
1941
|
},
|
|
1942
1942
|
{
|
|
1943
|
-
pathPrefix: "aws/s3"
|
|
1943
|
+
pathPrefix: "ms/aws/s3"
|
|
1944
1944
|
}
|
|
1945
1945
|
);
|
|
1946
1946
|
|
|
@@ -2068,7 +2068,7 @@ var categoryContract = initContract6().router(
|
|
|
2068
2068
|
}
|
|
2069
2069
|
},
|
|
2070
2070
|
{
|
|
2071
|
-
pathPrefix: "categories"
|
|
2071
|
+
pathPrefix: "ms/categories"
|
|
2072
2072
|
}
|
|
2073
2073
|
);
|
|
2074
2074
|
|
|
@@ -2338,7 +2338,7 @@ var messenger = initContract7().router(
|
|
|
2338
2338
|
}
|
|
2339
2339
|
},
|
|
2340
2340
|
{
|
|
2341
|
-
pathPrefix: "
|
|
2341
|
+
pathPrefix: "messenger"
|
|
2342
2342
|
}
|
|
2343
2343
|
);
|
|
2344
2344
|
var instagram = initContract7().router(
|
|
@@ -2368,7 +2368,7 @@ var instagram = initContract7().router(
|
|
|
2368
2368
|
}
|
|
2369
2369
|
},
|
|
2370
2370
|
{
|
|
2371
|
-
pathPrefix: "
|
|
2371
|
+
pathPrefix: "instagram"
|
|
2372
2372
|
}
|
|
2373
2373
|
);
|
|
2374
2374
|
var line = initContract7().router(
|
|
@@ -2385,7 +2385,7 @@ var line = initContract7().router(
|
|
|
2385
2385
|
}
|
|
2386
2386
|
},
|
|
2387
2387
|
{
|
|
2388
|
-
pathPrefix: "
|
|
2388
|
+
pathPrefix: "line"
|
|
2389
2389
|
}
|
|
2390
2390
|
);
|
|
2391
2391
|
var webchat = initContract7().router(
|
|
@@ -2405,7 +2405,7 @@ var webchat = initContract7().router(
|
|
|
2405
2405
|
}
|
|
2406
2406
|
},
|
|
2407
2407
|
{
|
|
2408
|
-
pathPrefix: "
|
|
2408
|
+
pathPrefix: "webchat"
|
|
2409
2409
|
}
|
|
2410
2410
|
);
|
|
2411
2411
|
var viber = initContract7().router(
|
|
@@ -2425,7 +2425,7 @@ var viber = initContract7().router(
|
|
|
2425
2425
|
}
|
|
2426
2426
|
},
|
|
2427
2427
|
{
|
|
2428
|
-
pathPrefix: "
|
|
2428
|
+
pathPrefix: "viber"
|
|
2429
2429
|
}
|
|
2430
2430
|
);
|
|
2431
2431
|
var telegram = initContract7().router(
|
|
@@ -2445,7 +2445,7 @@ var telegram = initContract7().router(
|
|
|
2445
2445
|
}
|
|
2446
2446
|
},
|
|
2447
2447
|
{
|
|
2448
|
-
pathPrefix: "
|
|
2448
|
+
pathPrefix: "telegram"
|
|
2449
2449
|
}
|
|
2450
2450
|
);
|
|
2451
2451
|
var whatsapp = initContract7().router(
|
|
@@ -2506,14 +2506,14 @@ var whatsapp = initContract7().router(
|
|
|
2506
2506
|
}
|
|
2507
2507
|
},
|
|
2508
2508
|
{
|
|
2509
|
-
pathPrefix: "
|
|
2509
|
+
pathPrefix: "whatsapp"
|
|
2510
2510
|
}
|
|
2511
2511
|
);
|
|
2512
2512
|
var channelContract = initContract7().router(
|
|
2513
2513
|
{
|
|
2514
2514
|
getChannels: {
|
|
2515
2515
|
method: "GET",
|
|
2516
|
-
path: "/",
|
|
2516
|
+
path: "/channel",
|
|
2517
2517
|
responses: {
|
|
2518
2518
|
200: DefaultSuccessResponseSchema.extend({
|
|
2519
2519
|
data: ChannelSchema.array()
|
|
@@ -2524,7 +2524,7 @@ var channelContract = initContract7().router(
|
|
|
2524
2524
|
},
|
|
2525
2525
|
disconnect: {
|
|
2526
2526
|
method: "POST",
|
|
2527
|
-
path: "/disconnect/:channelId",
|
|
2527
|
+
path: "ms/channel/disconnect/:channelId",
|
|
2528
2528
|
pathParams: z41.object({
|
|
2529
2529
|
channelId: z41.string().uuid()
|
|
2530
2530
|
}),
|
|
@@ -2539,7 +2539,7 @@ var channelContract = initContract7().router(
|
|
|
2539
2539
|
},
|
|
2540
2540
|
delete: {
|
|
2541
2541
|
method: "DELETE",
|
|
2542
|
-
path: "/delete/:channelId",
|
|
2542
|
+
path: "ms/channel/delete/:channelId",
|
|
2543
2543
|
pathParams: z41.object({
|
|
2544
2544
|
channelId: z41.string().uuid()
|
|
2545
2545
|
}),
|
|
@@ -2554,7 +2554,7 @@ var channelContract = initContract7().router(
|
|
|
2554
2554
|
},
|
|
2555
2555
|
rename: {
|
|
2556
2556
|
method: "POST",
|
|
2557
|
-
path: "/rename/:channelId",
|
|
2557
|
+
path: "ms/channel/rename/:channelId",
|
|
2558
2558
|
pathParams: z41.object({
|
|
2559
2559
|
channelId: z41.string().uuid()
|
|
2560
2560
|
}),
|
|
@@ -2571,7 +2571,7 @@ var channelContract = initContract7().router(
|
|
|
2571
2571
|
},
|
|
2572
2572
|
reconnect: {
|
|
2573
2573
|
method: "POST",
|
|
2574
|
-
path: "/reconnect/:channelId",
|
|
2574
|
+
path: "ms/channel/reconnect/:channelId",
|
|
2575
2575
|
pathParams: z41.object({
|
|
2576
2576
|
channelId: z41.string().uuid()
|
|
2577
2577
|
}),
|
|
@@ -2588,7 +2588,7 @@ var channelContract = initContract7().router(
|
|
|
2588
2588
|
},
|
|
2589
2589
|
relogin: {
|
|
2590
2590
|
method: "POST",
|
|
2591
|
-
path: "/relogin",
|
|
2591
|
+
path: "ms/channel/relogin",
|
|
2592
2592
|
responses: {
|
|
2593
2593
|
200: DefaultSuccessResponseSchema.extend({
|
|
2594
2594
|
channel: ChannelSchema
|
|
@@ -2600,7 +2600,7 @@ var channelContract = initContract7().router(
|
|
|
2600
2600
|
},
|
|
2601
2601
|
checknewTenant: {
|
|
2602
2602
|
method: "GET",
|
|
2603
|
-
path: "/check-new-tenant",
|
|
2603
|
+
path: "ms/channel/check-new-tenant",
|
|
2604
2604
|
responses: {
|
|
2605
2605
|
200: DefaultSuccessResponseSchema.extend({
|
|
2606
2606
|
data: tenantCheckedSchema
|
|
@@ -2611,7 +2611,7 @@ var channelContract = initContract7().router(
|
|
|
2611
2611
|
},
|
|
2612
2612
|
updateNewTenant: {
|
|
2613
2613
|
method: "PATCH",
|
|
2614
|
-
path: "/update-new-tenant",
|
|
2614
|
+
path: "ms/channel/update-new-tenant",
|
|
2615
2615
|
responses: {
|
|
2616
2616
|
200: DefaultSuccessResponseSchema.extend({
|
|
2617
2617
|
message: z41.string()
|
|
@@ -2650,8 +2650,7 @@ var channelContract = initContract7().router(
|
|
|
2650
2650
|
whatsapp
|
|
2651
2651
|
},
|
|
2652
2652
|
{
|
|
2653
|
-
baseHeaders: DefaultHeaderSchema
|
|
2654
|
-
pathPrefix: "channel"
|
|
2653
|
+
baseHeaders: DefaultHeaderSchema
|
|
2655
2654
|
}
|
|
2656
2655
|
);
|
|
2657
2656
|
var channelFacebookFeedContract = initContract7().router(
|
|
@@ -2681,7 +2680,7 @@ var channelFacebookFeedContract = initContract7().router(
|
|
|
2681
2680
|
}
|
|
2682
2681
|
},
|
|
2683
2682
|
{
|
|
2684
|
-
pathPrefix: "/facebook-feed"
|
|
2683
|
+
pathPrefix: "ms/facebook-feed"
|
|
2685
2684
|
}
|
|
2686
2685
|
);
|
|
2687
2686
|
var channelBotContract = initContract7().router({
|
|
@@ -2722,7 +2721,7 @@ var channelSMSContract = initContract7().router(
|
|
|
2722
2721
|
}
|
|
2723
2722
|
},
|
|
2724
2723
|
{
|
|
2725
|
-
pathPrefix: "
|
|
2724
|
+
pathPrefix: "channel/sms"
|
|
2726
2725
|
}
|
|
2727
2726
|
);
|
|
2728
2727
|
|
|
@@ -2747,14 +2746,14 @@ var receiveMessageContract = initContract8().router(
|
|
|
2747
2746
|
"x-code": z42.string().uuid(),
|
|
2748
2747
|
"x-tenant": z42.string().uuid()
|
|
2749
2748
|
}),
|
|
2750
|
-
pathPrefix: "message"
|
|
2749
|
+
pathPrefix: "ms/message"
|
|
2751
2750
|
}
|
|
2752
2751
|
);
|
|
2753
2752
|
var mainFeedContract = initContract8().router(
|
|
2754
2753
|
{
|
|
2755
2754
|
getFeedPostById: {
|
|
2756
2755
|
method: "GET",
|
|
2757
|
-
path: "
|
|
2756
|
+
path: "/:id",
|
|
2758
2757
|
pathParams: z42.object({
|
|
2759
2758
|
id: z42.string().uuid()
|
|
2760
2759
|
}),
|
|
@@ -2767,7 +2766,7 @@ var mainFeedContract = initContract8().router(
|
|
|
2767
2766
|
},
|
|
2768
2767
|
getMessagesByParent: {
|
|
2769
2768
|
method: "GET",
|
|
2770
|
-
path: "/
|
|
2769
|
+
path: "/message/:parentId/relevance",
|
|
2771
2770
|
pathParams: z42.object({
|
|
2772
2771
|
parentId: z42.string().uuid()
|
|
2773
2772
|
}),
|
|
@@ -2784,7 +2783,8 @@ var mainFeedContract = initContract8().router(
|
|
|
2784
2783
|
}
|
|
2785
2784
|
},
|
|
2786
2785
|
{
|
|
2787
|
-
baseHeaders: DefaultHeaderSchema
|
|
2786
|
+
baseHeaders: DefaultHeaderSchema,
|
|
2787
|
+
pathPrefix: "ms/feed-post"
|
|
2788
2788
|
}
|
|
2789
2789
|
);
|
|
2790
2790
|
var mainChatRoomContract = initContract8().router(
|
|
@@ -2919,7 +2919,7 @@ var mainChatRoomContract = initContract8().router(
|
|
|
2919
2919
|
},
|
|
2920
2920
|
{
|
|
2921
2921
|
baseHeaders: DefaultHeaderSchema,
|
|
2922
|
-
pathPrefix: "chat"
|
|
2922
|
+
pathPrefix: "ms/chat"
|
|
2923
2923
|
}
|
|
2924
2924
|
);
|
|
2925
2925
|
var mainChatContract = initContract8().router(
|
|
@@ -3030,7 +3030,7 @@ var mainChatContract = initContract8().router(
|
|
|
3030
3030
|
},
|
|
3031
3031
|
{
|
|
3032
3032
|
baseHeaders: DefaultHeaderSchema,
|
|
3033
|
-
pathPrefix: "chat"
|
|
3033
|
+
pathPrefix: "ms/chat"
|
|
3034
3034
|
}
|
|
3035
3035
|
);
|
|
3036
3036
|
var initiateMessageContract = initContract8().router(
|
|
@@ -3048,7 +3048,7 @@ var initiateMessageContract = initContract8().router(
|
|
|
3048
3048
|
},
|
|
3049
3049
|
{
|
|
3050
3050
|
baseHeaders: DefaultHeaderSchema,
|
|
3051
|
-
pathPrefix: "chat"
|
|
3051
|
+
pathPrefix: "ms/chat"
|
|
3052
3052
|
}
|
|
3053
3053
|
);
|
|
3054
3054
|
var mainChatMessageContract = initContract8().router(
|
|
@@ -3092,7 +3092,7 @@ var mainChatMessageContract = initContract8().router(
|
|
|
3092
3092
|
},
|
|
3093
3093
|
{
|
|
3094
3094
|
baseHeaders: DefaultHeaderSchema,
|
|
3095
|
-
pathPrefix: "chat"
|
|
3095
|
+
pathPrefix: "ms/chat"
|
|
3096
3096
|
}
|
|
3097
3097
|
);
|
|
3098
3098
|
|
|
@@ -4078,66 +4078,69 @@ var GetAllCxLogQueryParamsSchema = DefaultQueryParamsSchema.extend({
|
|
|
4078
4078
|
}).partial().optional();
|
|
4079
4079
|
|
|
4080
4080
|
// src/cx-log/index.ts
|
|
4081
|
-
var cxLogContract = initContract12().router(
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
|
|
4081
|
+
var cxLogContract = initContract12().router(
|
|
4082
|
+
{
|
|
4083
|
+
findAll: {
|
|
4084
|
+
method: "GET",
|
|
4085
|
+
path: "/cx-logs",
|
|
4086
|
+
headers: DefaultHeaderSchema,
|
|
4087
|
+
responses: {
|
|
4088
|
+
200: DefaultSuccessResponseSchema.extend({
|
|
4089
|
+
total: z52.number(),
|
|
4090
|
+
page: z52.number(),
|
|
4091
|
+
pageSize: z52.number(),
|
|
4092
|
+
cxLogs: z52.array(CxLogSchemaWithRelations)
|
|
4093
|
+
}),
|
|
4094
|
+
401: DefaultUnauthorizedSchema
|
|
4095
|
+
},
|
|
4096
|
+
query: GetAllCxLogQueryParamsSchema,
|
|
4097
|
+
summary: "Get all cx-logs"
|
|
4094
4098
|
},
|
|
4095
|
-
|
|
4096
|
-
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
|
|
4099
|
+
export: {
|
|
4100
|
+
method: "GET",
|
|
4101
|
+
path: "/cx-logs/export",
|
|
4102
|
+
headers: DefaultHeaderSchema,
|
|
4103
|
+
responses: {
|
|
4104
|
+
200: null,
|
|
4105
|
+
401: DefaultUnauthorizedSchema
|
|
4106
|
+
},
|
|
4107
|
+
query: GetAllCxLogQueryParamsSchema,
|
|
4108
|
+
summary: "Export cx-logs"
|
|
4105
4109
|
},
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
|
|
4110
|
+
syncSla: {
|
|
4111
|
+
method: "POST",
|
|
4112
|
+
path: "/cx-logs/sync-sla",
|
|
4113
|
+
headers: DefaultHeaderSchema,
|
|
4114
|
+
responses: {
|
|
4115
|
+
200: null,
|
|
4116
|
+
401: DefaultUnauthorizedSchema,
|
|
4117
|
+
500: DefaultErrorResponseSchema
|
|
4118
|
+
},
|
|
4119
|
+
body: null,
|
|
4120
|
+
summary: "Export cx-logs"
|
|
4117
4121
|
},
|
|
4118
|
-
|
|
4119
|
-
|
|
4122
|
+
updateSla: {
|
|
4123
|
+
method: "POST",
|
|
4124
|
+
path: "/cx-logs",
|
|
4125
|
+
headers: z52.object({
|
|
4126
|
+
// biome-ignore lint/style/useNamingConvention: <explanation>
|
|
4127
|
+
"x-tenant": z52.string({ required_error: "Tenant id is required" }),
|
|
4128
|
+
"x-code": z52.string().uuid().optional()
|
|
4129
|
+
}),
|
|
4130
|
+
responses: {
|
|
4131
|
+
200: null,
|
|
4132
|
+
403: DefaultUnauthorizedSchema,
|
|
4133
|
+
404: DefaultNotFoundSchema,
|
|
4134
|
+
500: DefaultErrorResponseSchema
|
|
4135
|
+
},
|
|
4136
|
+
body: z52.object({
|
|
4137
|
+
roomId: z52.string().uuid(),
|
|
4138
|
+
slaStatus: z52.enum(["meet", "unmeet", "-"])
|
|
4139
|
+
})
|
|
4140
|
+
}
|
|
4120
4141
|
},
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
path: "/cx-logs",
|
|
4124
|
-
headers: z52.object({
|
|
4125
|
-
// biome-ignore lint/style/useNamingConvention: <explanation>
|
|
4126
|
-
"x-tenant": z52.string({ required_error: "Tenant id is required" }),
|
|
4127
|
-
"x-code": z52.string().uuid().optional()
|
|
4128
|
-
}),
|
|
4129
|
-
responses: {
|
|
4130
|
-
200: null,
|
|
4131
|
-
403: DefaultUnauthorizedSchema,
|
|
4132
|
-
404: DefaultNotFoundSchema,
|
|
4133
|
-
500: DefaultErrorResponseSchema
|
|
4134
|
-
},
|
|
4135
|
-
body: z52.object({
|
|
4136
|
-
roomId: z52.string().uuid(),
|
|
4137
|
-
slaStatus: z52.enum(["meet", "unmeet", "-"])
|
|
4138
|
-
})
|
|
4139
|
-
}
|
|
4140
|
-
});
|
|
4142
|
+
{ pathPrefix: "ms" }
|
|
4143
|
+
);
|
|
4141
4144
|
|
|
4142
4145
|
// src/dashboard/index.ts
|
|
4143
4146
|
import { initContract as initContract13 } from "@ts-rest/core";
|
|
@@ -4637,7 +4640,7 @@ var dashboardContract = initContract13().router(
|
|
|
4637
4640
|
}
|
|
4638
4641
|
},
|
|
4639
4642
|
{
|
|
4640
|
-
pathPrefix: "dashboard"
|
|
4643
|
+
pathPrefix: "ms/dashboard"
|
|
4641
4644
|
}
|
|
4642
4645
|
);
|
|
4643
4646
|
|
|
@@ -4670,7 +4673,7 @@ var evaluateFormContract = initContract14().router(
|
|
|
4670
4673
|
summary: "Create evaluate form"
|
|
4671
4674
|
}
|
|
4672
4675
|
},
|
|
4673
|
-
{ pathPrefix: "evaluate-forms" }
|
|
4676
|
+
{ pathPrefix: "ms/evaluate-forms" }
|
|
4674
4677
|
);
|
|
4675
4678
|
|
|
4676
4679
|
// src/extension/index.ts
|
|
@@ -4846,7 +4849,7 @@ var extensionContract = initContract15().router(
|
|
|
4846
4849
|
summary: "Request new extension."
|
|
4847
4850
|
}
|
|
4848
4851
|
},
|
|
4849
|
-
{ pathPrefix: "extension" }
|
|
4852
|
+
{ pathPrefix: "ms/extension" }
|
|
4850
4853
|
);
|
|
4851
4854
|
|
|
4852
4855
|
// src/instagram/index.ts
|
|
@@ -5104,20 +5107,23 @@ var lineContract = initContract17().router({
|
|
|
5104
5107
|
// src/mail/email-engine-webhooks-events.contract.ts
|
|
5105
5108
|
import { initContract as initContract18 } from "@ts-rest/core";
|
|
5106
5109
|
import z64 from "zod";
|
|
5107
|
-
var emailEngineWebhooksEventsContract = initContract18().router(
|
|
5108
|
-
|
|
5109
|
-
|
|
5110
|
-
|
|
5111
|
-
|
|
5112
|
-
|
|
5113
|
-
|
|
5114
|
-
|
|
5115
|
-
|
|
5116
|
-
|
|
5117
|
-
|
|
5118
|
-
|
|
5119
|
-
|
|
5120
|
-
}
|
|
5110
|
+
var emailEngineWebhooksEventsContract = initContract18().router(
|
|
5111
|
+
{
|
|
5112
|
+
handleWebhooksEvents: {
|
|
5113
|
+
method: "POST",
|
|
5114
|
+
path: "/email_engine/webhooks",
|
|
5115
|
+
// we don't need to respone anything but added responses just for solving type error
|
|
5116
|
+
responses: {
|
|
5117
|
+
200: DefaultSuccessResponseSchema.extend({
|
|
5118
|
+
message: z64.string()
|
|
5119
|
+
})
|
|
5120
|
+
},
|
|
5121
|
+
body: null,
|
|
5122
|
+
summary: "Handle email engine webhooks events such as authenticationSuccess, messageNew"
|
|
5123
|
+
}
|
|
5124
|
+
},
|
|
5125
|
+
{ pathPrefix: "ms" }
|
|
5126
|
+
);
|
|
5121
5127
|
|
|
5122
5128
|
// src/messenger/index.ts
|
|
5123
5129
|
import { initContract as initContract19 } from "@ts-rest/core";
|
|
@@ -5253,7 +5259,7 @@ var permissionContract = initContract20().router(
|
|
|
5253
5259
|
summary: "Get all permissions"
|
|
5254
5260
|
}
|
|
5255
5261
|
},
|
|
5256
|
-
{ pathPrefix: "permission" }
|
|
5262
|
+
{ pathPrefix: "ms/permission" }
|
|
5257
5263
|
);
|
|
5258
5264
|
|
|
5259
5265
|
// src/role/index.ts
|
|
@@ -5356,7 +5362,7 @@ var roleContract = initContract21().router(
|
|
|
5356
5362
|
summary: "Get role by Id"
|
|
5357
5363
|
}
|
|
5358
5364
|
},
|
|
5359
|
-
{ pathPrefix: "role" }
|
|
5365
|
+
{ pathPrefix: "ms/role" }
|
|
5360
5366
|
);
|
|
5361
5367
|
|
|
5362
5368
|
// src/tag/index.ts
|
|
@@ -5429,7 +5435,7 @@ var tagContract = initContract22().router(
|
|
|
5429
5435
|
}
|
|
5430
5436
|
},
|
|
5431
5437
|
{
|
|
5432
|
-
pathPrefix: "tags"
|
|
5438
|
+
pathPrefix: "ms/tags"
|
|
5433
5439
|
}
|
|
5434
5440
|
);
|
|
5435
5441
|
|
|
@@ -5523,7 +5529,7 @@ var telephonyAgentPresenceStatusContract = initContract23().router(
|
|
|
5523
5529
|
summary: "Update presence status"
|
|
5524
5530
|
}
|
|
5525
5531
|
},
|
|
5526
|
-
{ pathPrefix: "telephony" }
|
|
5532
|
+
{ pathPrefix: "ms/telephony" }
|
|
5527
5533
|
);
|
|
5528
5534
|
|
|
5529
5535
|
// src/telephony-cdr/index.ts
|
|
@@ -5845,7 +5851,7 @@ var telephonyCdrContract = initContract24().router(
|
|
|
5845
5851
|
}
|
|
5846
5852
|
}
|
|
5847
5853
|
},
|
|
5848
|
-
{ pathPrefix: "telephony-cdr" }
|
|
5854
|
+
{ pathPrefix: "ms/telephony-cdr" }
|
|
5849
5855
|
);
|
|
5850
5856
|
|
|
5851
5857
|
// src/telephony-extension/index.ts
|
|
@@ -5902,7 +5908,7 @@ var telephonyExtensionContract = initContract25().router(
|
|
|
5902
5908
|
summary: "Get all extension list by yeastar"
|
|
5903
5909
|
}
|
|
5904
5910
|
},
|
|
5905
|
-
{ pathPrefix: "telephony" }
|
|
5911
|
+
{ pathPrefix: "ms/telephony" }
|
|
5906
5912
|
);
|
|
5907
5913
|
|
|
5908
5914
|
// src/ticket/index.ts
|
|
@@ -6583,7 +6589,7 @@ var userContract = initContract27().router(
|
|
|
6583
6589
|
summary: "Delete a user."
|
|
6584
6590
|
}
|
|
6585
6591
|
},
|
|
6586
|
-
{ pathPrefix: "user" }
|
|
6592
|
+
{ pathPrefix: "ms/user" }
|
|
6587
6593
|
);
|
|
6588
6594
|
|
|
6589
6595
|
// src/user-presence-status-log/index.ts
|
|
@@ -6643,7 +6649,7 @@ var userPresenceStatusLogContract = initContract28().router(
|
|
|
6643
6649
|
}
|
|
6644
6650
|
}
|
|
6645
6651
|
},
|
|
6646
|
-
{ pathPrefix: "user-presence-status-log" }
|
|
6652
|
+
{ pathPrefix: "ms/user-presence-status-log" }
|
|
6647
6653
|
);
|
|
6648
6654
|
|
|
6649
6655
|
// src/widget/index.ts
|
|
@@ -7035,7 +7041,7 @@ var wrapUpFormContract = initContract30().router(
|
|
|
7035
7041
|
summary: "Update a wrap up form."
|
|
7036
7042
|
}
|
|
7037
7043
|
},
|
|
7038
|
-
{ pathPrefix: "wrap-up-form" }
|
|
7044
|
+
{ pathPrefix: "ms/wrap-up-form" }
|
|
7039
7045
|
);
|
|
7040
7046
|
|
|
7041
7047
|
// src/upload/index.ts
|
|
@@ -7099,7 +7105,7 @@ var uploadContract = initContract31().router(
|
|
|
7099
7105
|
}
|
|
7100
7106
|
},
|
|
7101
7107
|
{
|
|
7102
|
-
pathPrefix: "/upload"
|
|
7108
|
+
pathPrefix: "ms/upload"
|
|
7103
7109
|
}
|
|
7104
7110
|
);
|
|
7105
7111
|
|
|
@@ -7429,7 +7435,7 @@ var userNotificationContract = initContract34().router(
|
|
|
7429
7435
|
}
|
|
7430
7436
|
},
|
|
7431
7437
|
{
|
|
7432
|
-
pathPrefix: "notification"
|
|
7438
|
+
pathPrefix: "ms/notification"
|
|
7433
7439
|
}
|
|
7434
7440
|
);
|
|
7435
7441
|
|
|
@@ -7586,7 +7592,7 @@ var snippetContract = initContract35().router(
|
|
|
7586
7592
|
}
|
|
7587
7593
|
},
|
|
7588
7594
|
{
|
|
7589
|
-
pathPrefix: "snippets"
|
|
7595
|
+
pathPrefix: "ms/snippets"
|
|
7590
7596
|
}
|
|
7591
7597
|
);
|
|
7592
7598
|
|
|
@@ -7665,51 +7671,56 @@ var BusinessCalendarSchema = DefaultEntitySchema.extend({
|
|
|
7665
7671
|
|
|
7666
7672
|
// src/business-calendar/index.ts
|
|
7667
7673
|
import z104 from "zod";
|
|
7668
|
-
var businessCalendarContract = initContract36().router(
|
|
7669
|
-
|
|
7670
|
-
|
|
7671
|
-
|
|
7672
|
-
|
|
7673
|
-
|
|
7674
|
-
|
|
7675
|
-
|
|
7676
|
-
|
|
7677
|
-
|
|
7678
|
-
|
|
7679
|
-
|
|
7680
|
-
|
|
7681
|
-
|
|
7682
|
-
|
|
7683
|
-
|
|
7684
|
-
|
|
7685
|
-
|
|
7686
|
-
|
|
7687
|
-
|
|
7688
|
-
|
|
7689
|
-
|
|
7690
|
-
|
|
7691
|
-
|
|
7692
|
-
|
|
7693
|
-
|
|
7694
|
-
|
|
7695
|
-
|
|
7696
|
-
|
|
7697
|
-
|
|
7698
|
-
|
|
7699
|
-
|
|
7674
|
+
var businessCalendarContract = initContract36().router(
|
|
7675
|
+
{
|
|
7676
|
+
createBusinessCalendar: {
|
|
7677
|
+
method: "POST",
|
|
7678
|
+
path: "",
|
|
7679
|
+
body: CreateBusinessCalendarSchema,
|
|
7680
|
+
responses: {
|
|
7681
|
+
201: DefaultSuccessResponseSchema.extend({
|
|
7682
|
+
businessCalendar: BusinessCalendarSchema
|
|
7683
|
+
}),
|
|
7684
|
+
500: DefaultErrorResponseSchema
|
|
7685
|
+
}
|
|
7686
|
+
},
|
|
7687
|
+
getAllBusinessCalendar: {
|
|
7688
|
+
method: "GET",
|
|
7689
|
+
path: "",
|
|
7690
|
+
responses: {
|
|
7691
|
+
200: DefaultSuccessResponseSchema.extend({
|
|
7692
|
+
businessCalendars: BusinessCalendarSchema.array()
|
|
7693
|
+
}),
|
|
7694
|
+
500: DefaultErrorResponseSchema
|
|
7695
|
+
}
|
|
7696
|
+
},
|
|
7697
|
+
updateBusinessCalendar: {
|
|
7698
|
+
method: "POST",
|
|
7699
|
+
path: "/:id",
|
|
7700
|
+
pathParams: z104.object({ id: z104.string() }),
|
|
7701
|
+
body: UpdateBusinessCalendarSchema,
|
|
7702
|
+
responses: {
|
|
7703
|
+
201: DefaultSuccessResponseSchema.extend({
|
|
7704
|
+
businessCalendar: BusinessCalendarSchema
|
|
7705
|
+
}),
|
|
7706
|
+
500: DefaultErrorResponseSchema
|
|
7707
|
+
}
|
|
7708
|
+
},
|
|
7709
|
+
deleteBusinessCalendar: {
|
|
7710
|
+
method: "DELETE",
|
|
7711
|
+
path: "/:id",
|
|
7712
|
+
pathParams: z104.object({ id: z104.string() }),
|
|
7713
|
+
body: null,
|
|
7714
|
+
responses: {
|
|
7715
|
+
200: DefaultSuccessResponseSchema,
|
|
7716
|
+
500: DefaultErrorResponseSchema
|
|
7717
|
+
}
|
|
7700
7718
|
}
|
|
7701
7719
|
},
|
|
7702
|
-
|
|
7703
|
-
|
|
7704
|
-
path: "business-calendars/:id",
|
|
7705
|
-
pathParams: z104.object({ id: z104.string() }),
|
|
7706
|
-
body: null,
|
|
7707
|
-
responses: {
|
|
7708
|
-
200: DefaultSuccessResponseSchema,
|
|
7709
|
-
500: DefaultErrorResponseSchema
|
|
7710
|
-
}
|
|
7720
|
+
{
|
|
7721
|
+
pathPrefix: "ms/business-calendars"
|
|
7711
7722
|
}
|
|
7712
|
-
|
|
7723
|
+
);
|
|
7713
7724
|
|
|
7714
7725
|
// src/facebook-feed/index.ts
|
|
7715
7726
|
import { initContract as initContract37 } from "@ts-rest/core";
|
|
@@ -8375,7 +8386,7 @@ var botContract = initContract40().router(
|
|
|
8375
8386
|
}
|
|
8376
8387
|
},
|
|
8377
8388
|
{
|
|
8378
|
-
pathPrefix: "
|
|
8389
|
+
pathPrefix: "bots"
|
|
8379
8390
|
}
|
|
8380
8391
|
);
|
|
8381
8392
|
|
|
@@ -8483,7 +8494,7 @@ var presenceStatusContract = initContract41().router(
|
|
|
8483
8494
|
summary: "Delete a presence status."
|
|
8484
8495
|
}
|
|
8485
8496
|
},
|
|
8486
|
-
{ pathPrefix: "presence_status" }
|
|
8497
|
+
{ pathPrefix: "ms/presence_status" }
|
|
8487
8498
|
);
|
|
8488
8499
|
|
|
8489
8500
|
// src/whatsapp/index.ts
|
|
@@ -8618,7 +8629,6 @@ var apiContract = initContract43().router({
|
|
|
8618
8629
|
telephonyExtensionContract,
|
|
8619
8630
|
attribute: attributeContract,
|
|
8620
8631
|
tag: tagContract,
|
|
8621
|
-
channel: channelContract,
|
|
8622
8632
|
aws: awsContract,
|
|
8623
8633
|
agentPresenceStatus: telephonyAgentPresenceStatusContract,
|
|
8624
8634
|
userPresenceStatusLog: userPresenceStatusLogContract,
|
|
@@ -8626,7 +8636,15 @@ var apiContract = initContract43().router({
|
|
|
8626
8636
|
evaluateForm: evaluateFormContract,
|
|
8627
8637
|
upload: uploadContract,
|
|
8628
8638
|
snippet: snippetContract,
|
|
8629
|
-
bot: botContract
|
|
8639
|
+
bot: botContract,
|
|
8640
|
+
...initContract43().router(
|
|
8641
|
+
{
|
|
8642
|
+
channel: channelContract
|
|
8643
|
+
},
|
|
8644
|
+
{
|
|
8645
|
+
pathPrefix: "ms/"
|
|
8646
|
+
}
|
|
8647
|
+
)
|
|
8630
8648
|
});
|
|
8631
8649
|
var contactContract2 = initContract43().router({
|
|
8632
8650
|
contact: contactContract
|
|
@@ -8686,10 +8704,10 @@ var workflowContract = initContract43().router(
|
|
|
8686
8704
|
chat: chatContract
|
|
8687
8705
|
},
|
|
8688
8706
|
{
|
|
8689
|
-
pathPrefix: "workflow/"
|
|
8707
|
+
pathPrefix: "ms/workflow/"
|
|
8690
8708
|
}
|
|
8691
8709
|
);
|
|
8692
|
-
var settingsPathPrefix = "settings/";
|
|
8710
|
+
var settingsPathPrefix = "ms/settings/";
|
|
8693
8711
|
var ticketSettingContract = initContract43().router(
|
|
8694
8712
|
{
|
|
8695
8713
|
ticketSetting: attributeContract
|
|
@@ -8820,7 +8838,7 @@ var generalSettingContract = initContract44().router(
|
|
|
8820
8838
|
}
|
|
8821
8839
|
},
|
|
8822
8840
|
{
|
|
8823
|
-
pathPrefix: "general-setting"
|
|
8841
|
+
pathPrefix: "ms/general-setting"
|
|
8824
8842
|
}
|
|
8825
8843
|
);
|
|
8826
8844
|
|
|
@@ -8962,7 +8980,7 @@ var automationQueueContract = initContract45().router(
|
|
|
8962
8980
|
},
|
|
8963
8981
|
{
|
|
8964
8982
|
baseHeaders: DefaultHeaderSchema,
|
|
8965
|
-
pathPrefix: "/automation-queue"
|
|
8983
|
+
pathPrefix: "ms/automation-queue"
|
|
8966
8984
|
}
|
|
8967
8985
|
);
|
|
8968
8986
|
|
|
@@ -10166,7 +10184,7 @@ var holdLabelContract = initContract52().router(
|
|
|
10166
10184
|
}
|
|
10167
10185
|
}
|
|
10168
10186
|
},
|
|
10169
|
-
{ pathPrefix: "hold-label" }
|
|
10187
|
+
{ pathPrefix: "ms/hold-label" }
|
|
10170
10188
|
);
|
|
10171
10189
|
|
|
10172
10190
|
// src/subscription/index.ts
|
|
@@ -10319,7 +10337,7 @@ var subscriptionContract = initContract53().router(
|
|
|
10319
10337
|
}
|
|
10320
10338
|
},
|
|
10321
10339
|
{
|
|
10322
|
-
pathPrefix: "subscriptions"
|
|
10340
|
+
pathPrefix: "ms/subscriptions"
|
|
10323
10341
|
}
|
|
10324
10342
|
);
|
|
10325
10343
|
|