@kl1/contracts 1.2.78-uat → 1.2.80-uat
Sign up to get free protection for your applications and to get access to all the features.
- 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/channel/index.d.ts +26 -26
- package/dist/api-contracts/src/channel/schema.d.ts +28 -0
- package/dist/api-contracts/src/channel/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/contract.d.ts +31115 -31089
- package/dist/api-contracts/src/contract.d.ts.map +1 -1
- package/dist/api-contracts/src/dashboard/index.d.ts +26 -0
- package/dist/api-contracts/src/dashboard/index.d.ts.map +1 -1
- package/dist/index.js +90 -62
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +90 -62
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -198,6 +198,16 @@ var ChannelMetadataSchema = z6.object({
|
|
198
198
|
facebookFeedIntegrationType: z6.union([z6.literal("own"), z6.literal("business")]).optional(),
|
199
199
|
isCSATEnabled: z6.boolean().optional()
|
200
200
|
});
|
201
|
+
var CsatPreferencesSchema = z6.object({
|
202
|
+
image: z6.string().optional().nullable(),
|
203
|
+
headline: z6.string(),
|
204
|
+
scaleOptions: z6.array(
|
205
|
+
z6.object({
|
206
|
+
value: z6.string(),
|
207
|
+
label: z6.string().optional().nullable()
|
208
|
+
})
|
209
|
+
)
|
210
|
+
}).optional().nullable();
|
201
211
|
var ChannelSchema = z6.object({
|
202
212
|
id: z6.string().uuid(),
|
203
213
|
createdAt: z6.date(),
|
@@ -2333,7 +2343,7 @@ var messenger = initContract7().router(
|
|
2333
2343
|
}
|
2334
2344
|
},
|
2335
2345
|
{
|
2336
|
-
pathPrefix: "
|
2346
|
+
pathPrefix: "messenger"
|
2337
2347
|
}
|
2338
2348
|
);
|
2339
2349
|
var instagram = initContract7().router(
|
@@ -2363,7 +2373,7 @@ var instagram = initContract7().router(
|
|
2363
2373
|
}
|
2364
2374
|
},
|
2365
2375
|
{
|
2366
|
-
pathPrefix: "
|
2376
|
+
pathPrefix: "instagram"
|
2367
2377
|
}
|
2368
2378
|
);
|
2369
2379
|
var line = initContract7().router(
|
@@ -2380,7 +2390,7 @@ var line = initContract7().router(
|
|
2380
2390
|
}
|
2381
2391
|
},
|
2382
2392
|
{
|
2383
|
-
pathPrefix: "
|
2393
|
+
pathPrefix: "line"
|
2384
2394
|
}
|
2385
2395
|
);
|
2386
2396
|
var webchat = initContract7().router(
|
@@ -2400,7 +2410,7 @@ var webchat = initContract7().router(
|
|
2400
2410
|
}
|
2401
2411
|
},
|
2402
2412
|
{
|
2403
|
-
pathPrefix: "
|
2413
|
+
pathPrefix: "webchat"
|
2404
2414
|
}
|
2405
2415
|
);
|
2406
2416
|
var viber = initContract7().router(
|
@@ -2420,7 +2430,7 @@ var viber = initContract7().router(
|
|
2420
2430
|
}
|
2421
2431
|
},
|
2422
2432
|
{
|
2423
|
-
pathPrefix: "
|
2433
|
+
pathPrefix: "viber"
|
2424
2434
|
}
|
2425
2435
|
);
|
2426
2436
|
var telegram = initContract7().router(
|
@@ -2440,7 +2450,7 @@ var telegram = initContract7().router(
|
|
2440
2450
|
}
|
2441
2451
|
},
|
2442
2452
|
{
|
2443
|
-
pathPrefix: "
|
2453
|
+
pathPrefix: "telegram"
|
2444
2454
|
}
|
2445
2455
|
);
|
2446
2456
|
var whatsapp = initContract7().router(
|
@@ -2501,7 +2511,7 @@ var whatsapp = initContract7().router(
|
|
2501
2511
|
}
|
2502
2512
|
},
|
2503
2513
|
{
|
2504
|
-
pathPrefix: "
|
2514
|
+
pathPrefix: "whatsapp"
|
2505
2515
|
}
|
2506
2516
|
);
|
2507
2517
|
var lazada = initContract7().router(
|
@@ -2527,7 +2537,7 @@ var channelContract = initContract7().router(
|
|
2527
2537
|
{
|
2528
2538
|
getChannels: {
|
2529
2539
|
method: "GET",
|
2530
|
-
path: "
|
2540
|
+
path: "channel",
|
2531
2541
|
responses: {
|
2532
2542
|
200: DefaultSuccessResponseSchema.extend({
|
2533
2543
|
data: ChannelSchema.array()
|
@@ -2538,7 +2548,7 @@ var channelContract = initContract7().router(
|
|
2538
2548
|
},
|
2539
2549
|
disconnect: {
|
2540
2550
|
method: "POST",
|
2541
|
-
path: "
|
2551
|
+
path: "channel/disconnect/:channelId",
|
2542
2552
|
pathParams: z41.object({
|
2543
2553
|
channelId: z41.string().uuid()
|
2544
2554
|
}),
|
@@ -2553,7 +2563,7 @@ var channelContract = initContract7().router(
|
|
2553
2563
|
},
|
2554
2564
|
delete: {
|
2555
2565
|
method: "DELETE",
|
2556
|
-
path: "
|
2566
|
+
path: "channel/delete/:channelId",
|
2557
2567
|
pathParams: z41.object({
|
2558
2568
|
channelId: z41.string().uuid()
|
2559
2569
|
}),
|
@@ -2568,7 +2578,7 @@ var channelContract = initContract7().router(
|
|
2568
2578
|
},
|
2569
2579
|
rename: {
|
2570
2580
|
method: "POST",
|
2571
|
-
path: "
|
2581
|
+
path: "channel/rename/:channelId",
|
2572
2582
|
pathParams: z41.object({
|
2573
2583
|
channelId: z41.string().uuid()
|
2574
2584
|
}),
|
@@ -2585,7 +2595,7 @@ var channelContract = initContract7().router(
|
|
2585
2595
|
},
|
2586
2596
|
reconnect: {
|
2587
2597
|
method: "POST",
|
2588
|
-
path: "
|
2598
|
+
path: "channel/reconnect/:channelId",
|
2589
2599
|
pathParams: z41.object({
|
2590
2600
|
channelId: z41.string().uuid()
|
2591
2601
|
}),
|
@@ -2600,7 +2610,7 @@ var channelContract = initContract7().router(
|
|
2600
2610
|
},
|
2601
2611
|
relogin: {
|
2602
2612
|
method: "POST",
|
2603
|
-
path: "
|
2613
|
+
path: "channel/relogin",
|
2604
2614
|
responses: {
|
2605
2615
|
200: DefaultSuccessResponseSchema.extend({
|
2606
2616
|
channel: ChannelSchema
|
@@ -2612,7 +2622,7 @@ var channelContract = initContract7().router(
|
|
2612
2622
|
},
|
2613
2623
|
checknewTenant: {
|
2614
2624
|
method: "GET",
|
2615
|
-
path: "
|
2625
|
+
path: "channel/check-new-tenant",
|
2616
2626
|
responses: {
|
2617
2627
|
200: DefaultSuccessResponseSchema.extend({
|
2618
2628
|
data: tenantCheckedSchema
|
@@ -2623,7 +2633,7 @@ var channelContract = initContract7().router(
|
|
2623
2633
|
},
|
2624
2634
|
updateNewTenant: {
|
2625
2635
|
method: "PATCH",
|
2626
|
-
path: "
|
2636
|
+
path: "channel/update-new-tenant",
|
2627
2637
|
responses: {
|
2628
2638
|
200: DefaultSuccessResponseSchema.extend({
|
2629
2639
|
message: z41.string()
|
@@ -2693,7 +2703,7 @@ var channelFacebookFeedContract = initContract7().router(
|
|
2693
2703
|
}
|
2694
2704
|
},
|
2695
2705
|
{
|
2696
|
-
pathPrefix: "
|
2706
|
+
pathPrefix: "facebook-feed"
|
2697
2707
|
}
|
2698
2708
|
);
|
2699
2709
|
var channelBotContract = initContract7().router({
|
@@ -2734,7 +2744,7 @@ var channelSMSContract = initContract7().router(
|
|
2734
2744
|
}
|
2735
2745
|
},
|
2736
2746
|
{
|
2737
|
-
pathPrefix: "
|
2747
|
+
pathPrefix: "channel/sms"
|
2738
2748
|
}
|
2739
2749
|
);
|
2740
2750
|
|
@@ -4739,6 +4749,14 @@ var dashboardContract = initContract13().router(
|
|
4739
4749
|
})
|
4740
4750
|
}
|
4741
4751
|
},
|
4752
|
+
exportAgentMessageStatistics: {
|
4753
|
+
method: "GET",
|
4754
|
+
path: "/export-agent-message-statistics",
|
4755
|
+
query: MessageDashboardDetailsQuerySchema,
|
4756
|
+
responses: {
|
4757
|
+
200: DefaultSuccessResponseSchema
|
4758
|
+
}
|
4759
|
+
},
|
4742
4760
|
getUserCheckInLogsWithDays: {
|
4743
4761
|
method: "GET",
|
4744
4762
|
path: "/user-check-in-logs-with-days",
|
@@ -7737,51 +7755,54 @@ var BusinessCalendarSchema = DefaultEntitySchema.extend({
|
|
7737
7755
|
|
7738
7756
|
// src/business-calendar/index.ts
|
7739
7757
|
import z103 from "zod";
|
7740
|
-
var businessCalendarContract = initContract36().router(
|
7741
|
-
|
7742
|
-
|
7743
|
-
|
7744
|
-
|
7745
|
-
|
7746
|
-
|
7747
|
-
|
7748
|
-
|
7749
|
-
|
7750
|
-
|
7751
|
-
|
7752
|
-
|
7753
|
-
|
7754
|
-
|
7755
|
-
|
7756
|
-
|
7757
|
-
|
7758
|
-
|
7759
|
-
|
7760
|
-
|
7761
|
-
|
7762
|
-
|
7763
|
-
|
7764
|
-
|
7765
|
-
|
7766
|
-
|
7767
|
-
|
7768
|
-
|
7769
|
-
|
7770
|
-
|
7771
|
-
|
7758
|
+
var businessCalendarContract = initContract36().router(
|
7759
|
+
{
|
7760
|
+
createBusinessCalendar: {
|
7761
|
+
method: "POST",
|
7762
|
+
path: "",
|
7763
|
+
body: CreateBusinessCalendarSchema,
|
7764
|
+
responses: {
|
7765
|
+
201: DefaultSuccessResponseSchema.extend({
|
7766
|
+
businessCalendar: BusinessCalendarSchema
|
7767
|
+
}),
|
7768
|
+
500: DefaultErrorResponseSchema
|
7769
|
+
}
|
7770
|
+
},
|
7771
|
+
getAllBusinessCalendar: {
|
7772
|
+
method: "GET",
|
7773
|
+
path: "",
|
7774
|
+
responses: {
|
7775
|
+
200: DefaultSuccessResponseSchema.extend({
|
7776
|
+
businessCalendars: BusinessCalendarSchema.array()
|
7777
|
+
}),
|
7778
|
+
500: DefaultErrorResponseSchema
|
7779
|
+
}
|
7780
|
+
},
|
7781
|
+
updateBusinessCalendar: {
|
7782
|
+
method: "POST",
|
7783
|
+
path: "/:id",
|
7784
|
+
pathParams: z103.object({ id: z103.string() }),
|
7785
|
+
body: UpdateBusinessCalendarSchema,
|
7786
|
+
responses: {
|
7787
|
+
201: DefaultSuccessResponseSchema.extend({
|
7788
|
+
businessCalendar: BusinessCalendarSchema
|
7789
|
+
}),
|
7790
|
+
500: DefaultErrorResponseSchema
|
7791
|
+
}
|
7792
|
+
},
|
7793
|
+
deleteBusinessCalendar: {
|
7794
|
+
method: "DELETE",
|
7795
|
+
path: "/:id",
|
7796
|
+
pathParams: z103.object({ id: z103.string() }),
|
7797
|
+
body: null,
|
7798
|
+
responses: {
|
7799
|
+
200: DefaultSuccessResponseSchema,
|
7800
|
+
500: DefaultErrorResponseSchema
|
7801
|
+
}
|
7772
7802
|
}
|
7773
7803
|
},
|
7774
|
-
|
7775
|
-
|
7776
|
-
path: "business-calendars/:id",
|
7777
|
-
pathParams: z103.object({ id: z103.string() }),
|
7778
|
-
body: null,
|
7779
|
-
responses: {
|
7780
|
-
200: DefaultSuccessResponseSchema,
|
7781
|
-
500: DefaultErrorResponseSchema
|
7782
|
-
}
|
7783
|
-
}
|
7784
|
-
});
|
7804
|
+
{ pathPrefix: "ms/business-calendars" }
|
7805
|
+
);
|
7785
7806
|
|
7786
7807
|
// src/facebook-feed/index.ts
|
7787
7808
|
import { initContract as initContract37 } from "@ts-rest/core";
|
@@ -8691,7 +8712,6 @@ var apiContract = initContract43().router({
|
|
8691
8712
|
telephonyExtensionContract,
|
8692
8713
|
attribute: attributeContract,
|
8693
8714
|
tag: tagContract,
|
8694
|
-
channel: channelContract,
|
8695
8715
|
aws: awsContract,
|
8696
8716
|
agentPresenceStatus: telephonyAgentPresenceStatusContract,
|
8697
8717
|
userPresenceStatusLog: userPresenceStatusLogContract,
|
@@ -8699,7 +8719,15 @@ var apiContract = initContract43().router({
|
|
8699
8719
|
evaluateForm: evaluateFormContract,
|
8700
8720
|
upload: uploadContract,
|
8701
8721
|
snippet: snippetContract,
|
8702
|
-
bot: botContract
|
8722
|
+
bot: botContract,
|
8723
|
+
...initContract43().router(
|
8724
|
+
{
|
8725
|
+
channel: channelContract
|
8726
|
+
},
|
8727
|
+
{
|
8728
|
+
pathPrefix: "ms/"
|
8729
|
+
}
|
8730
|
+
)
|
8703
8731
|
});
|
8704
8732
|
var contactContract2 = initContract43().router({
|
8705
8733
|
contact: contactContract
|