@kl1/contracts 1.2.77-uat → 1.2.79-uat
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/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 +28 -28
- package/dist/api-contracts/src/channel/index.d.ts.map +1 -1
- 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 +84 -58
- 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 +83 -61
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +83 -61
- 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()
|
|
@@ -2663,8 +2673,7 @@ var channelContract = initContract7().router(
|
|
|
2663
2673
|
lazada
|
|
2664
2674
|
},
|
|
2665
2675
|
{
|
|
2666
|
-
baseHeaders: DefaultHeaderSchema
|
|
2667
|
-
pathPrefix: "channel"
|
|
2676
|
+
baseHeaders: DefaultHeaderSchema
|
|
2668
2677
|
}
|
|
2669
2678
|
);
|
|
2670
2679
|
var channelFacebookFeedContract = initContract7().router(
|
|
@@ -2694,7 +2703,7 @@ var channelFacebookFeedContract = initContract7().router(
|
|
|
2694
2703
|
}
|
|
2695
2704
|
},
|
|
2696
2705
|
{
|
|
2697
|
-
pathPrefix: "
|
|
2706
|
+
pathPrefix: "facebook-feed"
|
|
2698
2707
|
}
|
|
2699
2708
|
);
|
|
2700
2709
|
var channelBotContract = initContract7().router({
|
|
@@ -2735,7 +2744,7 @@ var channelSMSContract = initContract7().router(
|
|
|
2735
2744
|
}
|
|
2736
2745
|
},
|
|
2737
2746
|
{
|
|
2738
|
-
pathPrefix: "
|
|
2747
|
+
pathPrefix: "channel/sms"
|
|
2739
2748
|
}
|
|
2740
2749
|
);
|
|
2741
2750
|
|
|
@@ -4740,6 +4749,14 @@ var dashboardContract = initContract13().router(
|
|
|
4740
4749
|
})
|
|
4741
4750
|
}
|
|
4742
4751
|
},
|
|
4752
|
+
exportAgentMessageStatistics: {
|
|
4753
|
+
method: "GET",
|
|
4754
|
+
path: "/export-agent-message-statistics",
|
|
4755
|
+
query: MessageDashboardDetailsQuerySchema,
|
|
4756
|
+
responses: {
|
|
4757
|
+
200: DefaultSuccessResponseSchema
|
|
4758
|
+
}
|
|
4759
|
+
},
|
|
4743
4760
|
getUserCheckInLogsWithDays: {
|
|
4744
4761
|
method: "GET",
|
|
4745
4762
|
path: "/user-check-in-logs-with-days",
|
|
@@ -7738,51 +7755,56 @@ var BusinessCalendarSchema = DefaultEntitySchema.extend({
|
|
|
7738
7755
|
|
|
7739
7756
|
// src/business-calendar/index.ts
|
|
7740
7757
|
import z103 from "zod";
|
|
7741
|
-
var businessCalendarContract = initContract36().router(
|
|
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
|
-
|
|
7772
|
-
|
|
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
|
+
}
|
|
7773
7802
|
}
|
|
7774
7803
|
},
|
|
7775
|
-
|
|
7776
|
-
|
|
7777
|
-
path: "business-calendars/:id",
|
|
7778
|
-
pathParams: z103.object({ id: z103.string() }),
|
|
7779
|
-
body: null,
|
|
7780
|
-
responses: {
|
|
7781
|
-
200: DefaultSuccessResponseSchema,
|
|
7782
|
-
500: DefaultErrorResponseSchema
|
|
7783
|
-
}
|
|
7804
|
+
{
|
|
7805
|
+
pathPrefix: "ms/business-calendars"
|
|
7784
7806
|
}
|
|
7785
|
-
|
|
7807
|
+
);
|
|
7786
7808
|
|
|
7787
7809
|
// src/facebook-feed/index.ts
|
|
7788
7810
|
import { initContract as initContract37 } from "@ts-rest/core";
|