@kl1/contracts 1.0.74 → 1.0.76
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.js +28 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +28 -13
- package/dist/index.mjs.map +1 -1
- package/dist/src/channel/index.d.ts +1771 -1228
- package/dist/src/channel/index.d.ts.map +1 -1
- package/dist/src/channel/schema.d.ts +50 -50
- package/dist/src/channel/schema.d.ts.map +1 -1
- package/dist/src/chat/index.d.ts +2573 -2573
- package/dist/src/chat/schema.d.ts +400 -400
- package/dist/src/chat/validation.d.ts +395 -395
- package/dist/src/contract.d.ts +7034 -6491
- package/dist/src/contract.d.ts.map +1 -1
- package/dist/src/cx-log/index.d.ts +395 -395
- package/dist/src/cx-log/schema.d.ts +265 -265
- package/dist/src/instagram/index.d.ts +399 -399
- package/dist/src/line/index.d.ts +399 -399
- package/dist/src/messenger/index.d.ts +399 -399
- package/dist/src/viber/index.d.ts +610 -610
- package/package.json +1 -1
- package/dist/src/app/index.d.ts +0 -17
- package/dist/src/app/index.d.ts.map +0 -1
- package/dist/src/mail/mail-server.d.ts +0 -216
- package/dist/src/mail/mail-server.d.ts.map +0 -1
- package/dist/src/platform-contact/schema.d.ts +0 -30
- package/dist/src/platform-contact/schema.d.ts.map +0 -1
@@ -2325,14 +2325,14 @@ export declare const RoomSchema: z.ZodObject<{
|
|
2325
2325
|
telephonySignature: string | null;
|
2326
2326
|
};
|
2327
2327
|
}>;
|
2328
|
-
channel: z.
|
2329
|
-
id: z.
|
2330
|
-
createdAt: z.
|
2331
|
-
updatedAt: z.
|
2332
|
-
deletedAt: z.
|
2333
|
-
name: z.
|
2334
|
-
type: z.
|
2335
|
-
metadata: z.
|
2328
|
+
channel: z.ZodObject<{
|
2329
|
+
id: z.ZodString;
|
2330
|
+
createdAt: z.ZodDate;
|
2331
|
+
updatedAt: z.ZodDate;
|
2332
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
2333
|
+
name: z.ZodString;
|
2334
|
+
type: z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>;
|
2335
|
+
metadata: z.ZodObject<{
|
2336
2336
|
id: z.ZodString;
|
2337
2337
|
name: z.ZodString;
|
2338
2338
|
accessToken: z.ZodString;
|
@@ -2350,14 +2350,14 @@ export declare const RoomSchema: z.ZodObject<{
|
|
2350
2350
|
accessToken: string;
|
2351
2351
|
channelSecret?: string | undefined;
|
2352
2352
|
additionalCredentials?: any;
|
2353
|
-
}
|
2354
|
-
brandName: z.
|
2355
|
-
platformId: z.
|
2356
|
-
status: z.
|
2357
|
-
isReloginRequired: z.
|
2358
|
-
connectedUserName: z.
|
2359
|
-
connectedUserId: z.
|
2360
|
-
actor: z.
|
2353
|
+
}>;
|
2354
|
+
brandName: z.ZodString;
|
2355
|
+
platformId: z.ZodString;
|
2356
|
+
status: z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>;
|
2357
|
+
isReloginRequired: z.ZodBoolean;
|
2358
|
+
connectedUserName: z.ZodString;
|
2359
|
+
connectedUserId: z.ZodString;
|
2360
|
+
actor: z.ZodObject<{
|
2361
2361
|
id: z.ZodString;
|
2362
2362
|
createdAt: z.ZodDate;
|
2363
2363
|
updatedAt: z.ZodDate;
|
@@ -2560,28 +2560,23 @@ export declare const RoomSchema: z.ZodObject<{
|
|
2560
2560
|
extensionName: string;
|
2561
2561
|
telephonySignature: string | null;
|
2562
2562
|
};
|
2563
|
-
}
|
2563
|
+
}>;
|
2564
2564
|
}, "strip", z.ZodTypeAny, {
|
2565
|
-
|
2566
|
-
|
2567
|
-
|
2568
|
-
|
2569
|
-
name?: string | undefined;
|
2570
|
-
type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
|
2571
|
-
metadata?: {
|
2565
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
2566
|
+
id: string;
|
2567
|
+
name: string;
|
2568
|
+
metadata: {
|
2572
2569
|
id: string;
|
2573
2570
|
name: string;
|
2574
2571
|
accessToken: string;
|
2575
2572
|
channelSecret?: string | undefined;
|
2576
2573
|
additionalCredentials?: any;
|
2577
|
-
}
|
2578
|
-
|
2579
|
-
|
2580
|
-
|
2581
|
-
|
2582
|
-
|
2583
|
-
connectedUserId?: string | undefined;
|
2584
|
-
actor?: {
|
2574
|
+
};
|
2575
|
+
status: boolean;
|
2576
|
+
createdAt: Date;
|
2577
|
+
updatedAt: Date;
|
2578
|
+
deletedAt: Date | null;
|
2579
|
+
actor: {
|
2585
2580
|
id: string;
|
2586
2581
|
address: string | null;
|
2587
2582
|
name: string;
|
@@ -2624,28 +2619,28 @@ export declare const RoomSchema: z.ZodObject<{
|
|
2624
2619
|
extensionName: string;
|
2625
2620
|
telephonySignature: string | null;
|
2626
2621
|
};
|
2627
|
-
}
|
2622
|
+
};
|
2623
|
+
brandName: string;
|
2624
|
+
platformId: string;
|
2625
|
+
isReloginRequired: boolean;
|
2626
|
+
connectedUserName: string;
|
2627
|
+
connectedUserId: string;
|
2628
2628
|
}, {
|
2629
|
-
|
2630
|
-
|
2631
|
-
|
2632
|
-
|
2633
|
-
name?: string | undefined;
|
2634
|
-
type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
|
2635
|
-
metadata?: {
|
2629
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
2630
|
+
id: string;
|
2631
|
+
name: string;
|
2632
|
+
metadata: {
|
2636
2633
|
id: string;
|
2637
2634
|
name: string;
|
2638
2635
|
accessToken: string;
|
2639
2636
|
channelSecret?: string | undefined;
|
2640
2637
|
additionalCredentials?: any;
|
2641
|
-
}
|
2642
|
-
|
2643
|
-
|
2644
|
-
|
2645
|
-
|
2646
|
-
|
2647
|
-
connectedUserId?: string | undefined;
|
2648
|
-
actor?: {
|
2638
|
+
};
|
2639
|
+
status: boolean;
|
2640
|
+
createdAt: Date;
|
2641
|
+
updatedAt: Date;
|
2642
|
+
deletedAt: Date | null;
|
2643
|
+
actor: {
|
2649
2644
|
id: string;
|
2650
2645
|
address: string | null;
|
2651
2646
|
name: string;
|
@@ -2688,8 +2683,13 @@ export declare const RoomSchema: z.ZodObject<{
|
|
2688
2683
|
extensionName: string;
|
2689
2684
|
telephonySignature: string | null;
|
2690
2685
|
};
|
2691
|
-
}
|
2692
|
-
|
2686
|
+
};
|
2687
|
+
brandName: string;
|
2688
|
+
platformId: string;
|
2689
|
+
isReloginRequired: boolean;
|
2690
|
+
connectedUserName: string;
|
2691
|
+
connectedUserId: string;
|
2692
|
+
}>;
|
2693
2693
|
cxlog: z.ZodObject<{
|
2694
2694
|
id: z.ZodString;
|
2695
2695
|
createdAt: z.ZodDate;
|
@@ -2836,6 +2836,71 @@ export declare const RoomSchema: z.ZodObject<{
|
|
2836
2836
|
}>;
|
2837
2837
|
}, "strip", z.ZodTypeAny, {
|
2838
2838
|
id: string;
|
2839
|
+
channel: {
|
2840
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
2841
|
+
id: string;
|
2842
|
+
name: string;
|
2843
|
+
metadata: {
|
2844
|
+
id: string;
|
2845
|
+
name: string;
|
2846
|
+
accessToken: string;
|
2847
|
+
channelSecret?: string | undefined;
|
2848
|
+
additionalCredentials?: any;
|
2849
|
+
};
|
2850
|
+
status: boolean;
|
2851
|
+
createdAt: Date;
|
2852
|
+
updatedAt: Date;
|
2853
|
+
deletedAt: Date | null;
|
2854
|
+
actor: {
|
2855
|
+
id: string;
|
2856
|
+
address: string | null;
|
2857
|
+
name: string;
|
2858
|
+
email: string;
|
2859
|
+
createdAt: Date;
|
2860
|
+
updatedAt: Date;
|
2861
|
+
deletedAt: Date | null;
|
2862
|
+
emailVerifiedAt: Date | null;
|
2863
|
+
password: string;
|
2864
|
+
phone: string | null;
|
2865
|
+
notificationCount: number | null;
|
2866
|
+
roles: {
|
2867
|
+
id: string;
|
2868
|
+
description: string | null;
|
2869
|
+
createdAt: Date;
|
2870
|
+
updatedAt: Date;
|
2871
|
+
deletedAt: Date | null;
|
2872
|
+
systemName: string;
|
2873
|
+
displayName: string;
|
2874
|
+
permissions: {
|
2875
|
+
id: string;
|
2876
|
+
description: string | null;
|
2877
|
+
createdAt: Date;
|
2878
|
+
updatedAt: Date;
|
2879
|
+
deletedAt: Date | null;
|
2880
|
+
systemName: string;
|
2881
|
+
displayName: string;
|
2882
|
+
}[];
|
2883
|
+
}[];
|
2884
|
+
extension: {
|
2885
|
+
id: string;
|
2886
|
+
createdAt: Date;
|
2887
|
+
updatedAt: Date;
|
2888
|
+
deletedAt: Date | null;
|
2889
|
+
userId: string | null;
|
2890
|
+
sipServerUrl: string;
|
2891
|
+
sipUserName: string;
|
2892
|
+
webphoneLoginUser: string;
|
2893
|
+
extensionId: string | null;
|
2894
|
+
extensionName: string;
|
2895
|
+
telephonySignature: string | null;
|
2896
|
+
};
|
2897
|
+
};
|
2898
|
+
brandName: string;
|
2899
|
+
platformId: string;
|
2900
|
+
isReloginRequired: boolean;
|
2901
|
+
connectedUserName: string;
|
2902
|
+
connectedUserId: string;
|
2903
|
+
};
|
2839
2904
|
direction: "incoming" | "outgoing" | "system";
|
2840
2905
|
createdAt: Date;
|
2841
2906
|
updatedAt: Date;
|
@@ -3081,27 +3146,24 @@ export declare const RoomSchema: z.ZodObject<{
|
|
3081
3146
|
callTo: string | null;
|
3082
3147
|
} | null;
|
3083
3148
|
};
|
3084
|
-
|
3085
|
-
|
3086
|
-
|
3087
|
-
|
3088
|
-
|
3089
|
-
name
|
3090
|
-
|
3091
|
-
metadata?: {
|
3149
|
+
}, {
|
3150
|
+
id: string;
|
3151
|
+
channel: {
|
3152
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
3153
|
+
id: string;
|
3154
|
+
name: string;
|
3155
|
+
metadata: {
|
3092
3156
|
id: string;
|
3093
3157
|
name: string;
|
3094
3158
|
accessToken: string;
|
3095
3159
|
channelSecret?: string | undefined;
|
3096
3160
|
additionalCredentials?: any;
|
3097
|
-
}
|
3098
|
-
|
3099
|
-
|
3100
|
-
|
3101
|
-
|
3102
|
-
|
3103
|
-
connectedUserId?: string | undefined;
|
3104
|
-
actor?: {
|
3161
|
+
};
|
3162
|
+
status: boolean;
|
3163
|
+
createdAt: Date;
|
3164
|
+
updatedAt: Date;
|
3165
|
+
deletedAt: Date | null;
|
3166
|
+
actor: {
|
3105
3167
|
id: string;
|
3106
3168
|
address: string | null;
|
3107
3169
|
name: string;
|
@@ -3144,10 +3206,13 @@ export declare const RoomSchema: z.ZodObject<{
|
|
3144
3206
|
extensionName: string;
|
3145
3207
|
telephonySignature: string | null;
|
3146
3208
|
};
|
3147
|
-
}
|
3148
|
-
|
3149
|
-
|
3150
|
-
|
3209
|
+
};
|
3210
|
+
brandName: string;
|
3211
|
+
platformId: string;
|
3212
|
+
isReloginRequired: boolean;
|
3213
|
+
connectedUserName: string;
|
3214
|
+
connectedUserId: string;
|
3215
|
+
};
|
3151
3216
|
direction: "incoming" | "outgoing" | "system";
|
3152
3217
|
createdAt: Date;
|
3153
3218
|
updatedAt: Date;
|
@@ -3393,71 +3458,6 @@ export declare const RoomSchema: z.ZodObject<{
|
|
3393
3458
|
callTo: string | null;
|
3394
3459
|
} | null;
|
3395
3460
|
};
|
3396
|
-
channel?: {
|
3397
|
-
id?: string | undefined;
|
3398
|
-
createdAt?: Date | undefined;
|
3399
|
-
updatedAt?: Date | undefined;
|
3400
|
-
deletedAt?: Date | null | undefined;
|
3401
|
-
name?: string | undefined;
|
3402
|
-
type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
|
3403
|
-
metadata?: {
|
3404
|
-
id: string;
|
3405
|
-
name: string;
|
3406
|
-
accessToken: string;
|
3407
|
-
channelSecret?: string | undefined;
|
3408
|
-
additionalCredentials?: any;
|
3409
|
-
} | undefined;
|
3410
|
-
brandName?: string | undefined;
|
3411
|
-
platformId?: string | undefined;
|
3412
|
-
status?: boolean | undefined;
|
3413
|
-
isReloginRequired?: boolean | undefined;
|
3414
|
-
connectedUserName?: string | undefined;
|
3415
|
-
connectedUserId?: string | undefined;
|
3416
|
-
actor?: {
|
3417
|
-
id: string;
|
3418
|
-
address: string | null;
|
3419
|
-
name: string;
|
3420
|
-
email: string;
|
3421
|
-
createdAt: Date;
|
3422
|
-
updatedAt: Date;
|
3423
|
-
deletedAt: Date | null;
|
3424
|
-
emailVerifiedAt: Date | null;
|
3425
|
-
password: string;
|
3426
|
-
phone: string | null;
|
3427
|
-
notificationCount: number | null;
|
3428
|
-
roles: {
|
3429
|
-
id: string;
|
3430
|
-
description: string | null;
|
3431
|
-
createdAt: Date;
|
3432
|
-
updatedAt: Date;
|
3433
|
-
deletedAt: Date | null;
|
3434
|
-
systemName: string;
|
3435
|
-
displayName: string;
|
3436
|
-
permissions: {
|
3437
|
-
id: string;
|
3438
|
-
description: string | null;
|
3439
|
-
createdAt: Date;
|
3440
|
-
updatedAt: Date;
|
3441
|
-
deletedAt: Date | null;
|
3442
|
-
systemName: string;
|
3443
|
-
displayName: string;
|
3444
|
-
}[];
|
3445
|
-
}[];
|
3446
|
-
extension: {
|
3447
|
-
id: string;
|
3448
|
-
createdAt: Date;
|
3449
|
-
updatedAt: Date;
|
3450
|
-
deletedAt: Date | null;
|
3451
|
-
userId: string | null;
|
3452
|
-
sipServerUrl: string;
|
3453
|
-
sipUserName: string;
|
3454
|
-
webphoneLoginUser: string;
|
3455
|
-
extensionId: string | null;
|
3456
|
-
extensionName: string;
|
3457
|
-
telephonySignature: string | null;
|
3458
|
-
};
|
3459
|
-
} | undefined;
|
3460
|
-
} | undefined;
|
3461
3461
|
}>;
|
3462
3462
|
/**
|
3463
3463
|
* Message
|
@@ -4835,14 +4835,14 @@ export declare const MessageSchema: z.ZodObject<{
|
|
4835
4835
|
telephonySignature: string | null;
|
4836
4836
|
};
|
4837
4837
|
}>;
|
4838
|
-
channel: z.
|
4839
|
-
id: z.
|
4840
|
-
createdAt: z.
|
4841
|
-
updatedAt: z.
|
4842
|
-
deletedAt: z.
|
4843
|
-
name: z.
|
4844
|
-
type: z.
|
4845
|
-
metadata: z.
|
4838
|
+
channel: z.ZodObject<{
|
4839
|
+
id: z.ZodString;
|
4840
|
+
createdAt: z.ZodDate;
|
4841
|
+
updatedAt: z.ZodDate;
|
4842
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
4843
|
+
name: z.ZodString;
|
4844
|
+
type: z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>;
|
4845
|
+
metadata: z.ZodObject<{
|
4846
4846
|
id: z.ZodString;
|
4847
4847
|
name: z.ZodString;
|
4848
4848
|
accessToken: z.ZodString;
|
@@ -4860,14 +4860,14 @@ export declare const MessageSchema: z.ZodObject<{
|
|
4860
4860
|
accessToken: string;
|
4861
4861
|
channelSecret?: string | undefined;
|
4862
4862
|
additionalCredentials?: any;
|
4863
|
-
}
|
4864
|
-
brandName: z.
|
4865
|
-
platformId: z.
|
4866
|
-
status: z.
|
4867
|
-
isReloginRequired: z.
|
4868
|
-
connectedUserName: z.
|
4869
|
-
connectedUserId: z.
|
4870
|
-
actor: z.
|
4863
|
+
}>;
|
4864
|
+
brandName: z.ZodString;
|
4865
|
+
platformId: z.ZodString;
|
4866
|
+
status: z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>;
|
4867
|
+
isReloginRequired: z.ZodBoolean;
|
4868
|
+
connectedUserName: z.ZodString;
|
4869
|
+
connectedUserId: z.ZodString;
|
4870
|
+
actor: z.ZodObject<{
|
4871
4871
|
id: z.ZodString;
|
4872
4872
|
createdAt: z.ZodDate;
|
4873
4873
|
updatedAt: z.ZodDate;
|
@@ -5070,28 +5070,23 @@ export declare const MessageSchema: z.ZodObject<{
|
|
5070
5070
|
extensionName: string;
|
5071
5071
|
telephonySignature: string | null;
|
5072
5072
|
};
|
5073
|
-
}
|
5073
|
+
}>;
|
5074
5074
|
}, "strip", z.ZodTypeAny, {
|
5075
|
-
|
5076
|
-
|
5077
|
-
|
5078
|
-
|
5079
|
-
name?: string | undefined;
|
5080
|
-
type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
|
5081
|
-
metadata?: {
|
5075
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
5076
|
+
id: string;
|
5077
|
+
name: string;
|
5078
|
+
metadata: {
|
5082
5079
|
id: string;
|
5083
5080
|
name: string;
|
5084
5081
|
accessToken: string;
|
5085
5082
|
channelSecret?: string | undefined;
|
5086
5083
|
additionalCredentials?: any;
|
5087
|
-
}
|
5088
|
-
|
5089
|
-
|
5090
|
-
|
5091
|
-
|
5092
|
-
|
5093
|
-
connectedUserId?: string | undefined;
|
5094
|
-
actor?: {
|
5084
|
+
};
|
5085
|
+
status: boolean;
|
5086
|
+
createdAt: Date;
|
5087
|
+
updatedAt: Date;
|
5088
|
+
deletedAt: Date | null;
|
5089
|
+
actor: {
|
5095
5090
|
id: string;
|
5096
5091
|
address: string | null;
|
5097
5092
|
name: string;
|
@@ -5134,28 +5129,28 @@ export declare const MessageSchema: z.ZodObject<{
|
|
5134
5129
|
extensionName: string;
|
5135
5130
|
telephonySignature: string | null;
|
5136
5131
|
};
|
5137
|
-
}
|
5132
|
+
};
|
5133
|
+
brandName: string;
|
5134
|
+
platformId: string;
|
5135
|
+
isReloginRequired: boolean;
|
5136
|
+
connectedUserName: string;
|
5137
|
+
connectedUserId: string;
|
5138
5138
|
}, {
|
5139
|
-
|
5140
|
-
|
5141
|
-
|
5142
|
-
|
5143
|
-
name?: string | undefined;
|
5144
|
-
type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
|
5145
|
-
metadata?: {
|
5139
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
5140
|
+
id: string;
|
5141
|
+
name: string;
|
5142
|
+
metadata: {
|
5146
5143
|
id: string;
|
5147
5144
|
name: string;
|
5148
5145
|
accessToken: string;
|
5149
5146
|
channelSecret?: string | undefined;
|
5150
5147
|
additionalCredentials?: any;
|
5151
|
-
}
|
5152
|
-
|
5153
|
-
|
5154
|
-
|
5155
|
-
|
5156
|
-
|
5157
|
-
connectedUserId?: string | undefined;
|
5158
|
-
actor?: {
|
5148
|
+
};
|
5149
|
+
status: boolean;
|
5150
|
+
createdAt: Date;
|
5151
|
+
updatedAt: Date;
|
5152
|
+
deletedAt: Date | null;
|
5153
|
+
actor: {
|
5159
5154
|
id: string;
|
5160
5155
|
address: string | null;
|
5161
5156
|
name: string;
|
@@ -5198,8 +5193,13 @@ export declare const MessageSchema: z.ZodObject<{
|
|
5198
5193
|
extensionName: string;
|
5199
5194
|
telephonySignature: string | null;
|
5200
5195
|
};
|
5201
|
-
}
|
5202
|
-
|
5196
|
+
};
|
5197
|
+
brandName: string;
|
5198
|
+
platformId: string;
|
5199
|
+
isReloginRequired: boolean;
|
5200
|
+
connectedUserName: string;
|
5201
|
+
connectedUserId: string;
|
5202
|
+
}>;
|
5203
5203
|
cxlog: z.ZodObject<{
|
5204
5204
|
id: z.ZodString;
|
5205
5205
|
createdAt: z.ZodDate;
|
@@ -5346,6 +5346,71 @@ export declare const MessageSchema: z.ZodObject<{
|
|
5346
5346
|
}>;
|
5347
5347
|
}, "strip", z.ZodTypeAny, {
|
5348
5348
|
id: string;
|
5349
|
+
channel: {
|
5350
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
5351
|
+
id: string;
|
5352
|
+
name: string;
|
5353
|
+
metadata: {
|
5354
|
+
id: string;
|
5355
|
+
name: string;
|
5356
|
+
accessToken: string;
|
5357
|
+
channelSecret?: string | undefined;
|
5358
|
+
additionalCredentials?: any;
|
5359
|
+
};
|
5360
|
+
status: boolean;
|
5361
|
+
createdAt: Date;
|
5362
|
+
updatedAt: Date;
|
5363
|
+
deletedAt: Date | null;
|
5364
|
+
actor: {
|
5365
|
+
id: string;
|
5366
|
+
address: string | null;
|
5367
|
+
name: string;
|
5368
|
+
email: string;
|
5369
|
+
createdAt: Date;
|
5370
|
+
updatedAt: Date;
|
5371
|
+
deletedAt: Date | null;
|
5372
|
+
emailVerifiedAt: Date | null;
|
5373
|
+
password: string;
|
5374
|
+
phone: string | null;
|
5375
|
+
notificationCount: number | null;
|
5376
|
+
roles: {
|
5377
|
+
id: string;
|
5378
|
+
description: string | null;
|
5379
|
+
createdAt: Date;
|
5380
|
+
updatedAt: Date;
|
5381
|
+
deletedAt: Date | null;
|
5382
|
+
systemName: string;
|
5383
|
+
displayName: string;
|
5384
|
+
permissions: {
|
5385
|
+
id: string;
|
5386
|
+
description: string | null;
|
5387
|
+
createdAt: Date;
|
5388
|
+
updatedAt: Date;
|
5389
|
+
deletedAt: Date | null;
|
5390
|
+
systemName: string;
|
5391
|
+
displayName: string;
|
5392
|
+
}[];
|
5393
|
+
}[];
|
5394
|
+
extension: {
|
5395
|
+
id: string;
|
5396
|
+
createdAt: Date;
|
5397
|
+
updatedAt: Date;
|
5398
|
+
deletedAt: Date | null;
|
5399
|
+
userId: string | null;
|
5400
|
+
sipServerUrl: string;
|
5401
|
+
sipUserName: string;
|
5402
|
+
webphoneLoginUser: string;
|
5403
|
+
extensionId: string | null;
|
5404
|
+
extensionName: string;
|
5405
|
+
telephonySignature: string | null;
|
5406
|
+
};
|
5407
|
+
};
|
5408
|
+
brandName: string;
|
5409
|
+
platformId: string;
|
5410
|
+
isReloginRequired: boolean;
|
5411
|
+
connectedUserName: string;
|
5412
|
+
connectedUserId: string;
|
5413
|
+
};
|
5349
5414
|
direction: "incoming" | "outgoing" | "system";
|
5350
5415
|
createdAt: Date;
|
5351
5416
|
updatedAt: Date;
|
@@ -5591,27 +5656,24 @@ export declare const MessageSchema: z.ZodObject<{
|
|
5591
5656
|
callTo: string | null;
|
5592
5657
|
} | null;
|
5593
5658
|
};
|
5594
|
-
|
5595
|
-
|
5596
|
-
|
5597
|
-
|
5598
|
-
|
5599
|
-
name
|
5600
|
-
|
5601
|
-
metadata?: {
|
5659
|
+
}, {
|
5660
|
+
id: string;
|
5661
|
+
channel: {
|
5662
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
5663
|
+
id: string;
|
5664
|
+
name: string;
|
5665
|
+
metadata: {
|
5602
5666
|
id: string;
|
5603
5667
|
name: string;
|
5604
5668
|
accessToken: string;
|
5605
5669
|
channelSecret?: string | undefined;
|
5606
5670
|
additionalCredentials?: any;
|
5607
|
-
}
|
5608
|
-
|
5609
|
-
|
5610
|
-
|
5611
|
-
|
5612
|
-
|
5613
|
-
connectedUserId?: string | undefined;
|
5614
|
-
actor?: {
|
5671
|
+
};
|
5672
|
+
status: boolean;
|
5673
|
+
createdAt: Date;
|
5674
|
+
updatedAt: Date;
|
5675
|
+
deletedAt: Date | null;
|
5676
|
+
actor: {
|
5615
5677
|
id: string;
|
5616
5678
|
address: string | null;
|
5617
5679
|
name: string;
|
@@ -5654,10 +5716,13 @@ export declare const MessageSchema: z.ZodObject<{
|
|
5654
5716
|
extensionName: string;
|
5655
5717
|
telephonySignature: string | null;
|
5656
5718
|
};
|
5657
|
-
}
|
5658
|
-
|
5659
|
-
|
5660
|
-
|
5719
|
+
};
|
5720
|
+
brandName: string;
|
5721
|
+
platformId: string;
|
5722
|
+
isReloginRequired: boolean;
|
5723
|
+
connectedUserName: string;
|
5724
|
+
connectedUserId: string;
|
5725
|
+
};
|
5661
5726
|
direction: "incoming" | "outgoing" | "system";
|
5662
5727
|
createdAt: Date;
|
5663
5728
|
updatedAt: Date;
|
@@ -5903,71 +5968,6 @@ export declare const MessageSchema: z.ZodObject<{
|
|
5903
5968
|
callTo: string | null;
|
5904
5969
|
} | null;
|
5905
5970
|
};
|
5906
|
-
channel?: {
|
5907
|
-
id?: string | undefined;
|
5908
|
-
createdAt?: Date | undefined;
|
5909
|
-
updatedAt?: Date | undefined;
|
5910
|
-
deletedAt?: Date | null | undefined;
|
5911
|
-
name?: string | undefined;
|
5912
|
-
type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
|
5913
|
-
metadata?: {
|
5914
|
-
id: string;
|
5915
|
-
name: string;
|
5916
|
-
accessToken: string;
|
5917
|
-
channelSecret?: string | undefined;
|
5918
|
-
additionalCredentials?: any;
|
5919
|
-
} | undefined;
|
5920
|
-
brandName?: string | undefined;
|
5921
|
-
platformId?: string | undefined;
|
5922
|
-
status?: boolean | undefined;
|
5923
|
-
isReloginRequired?: boolean | undefined;
|
5924
|
-
connectedUserName?: string | undefined;
|
5925
|
-
connectedUserId?: string | undefined;
|
5926
|
-
actor?: {
|
5927
|
-
id: string;
|
5928
|
-
address: string | null;
|
5929
|
-
name: string;
|
5930
|
-
email: string;
|
5931
|
-
createdAt: Date;
|
5932
|
-
updatedAt: Date;
|
5933
|
-
deletedAt: Date | null;
|
5934
|
-
emailVerifiedAt: Date | null;
|
5935
|
-
password: string;
|
5936
|
-
phone: string | null;
|
5937
|
-
notificationCount: number | null;
|
5938
|
-
roles: {
|
5939
|
-
id: string;
|
5940
|
-
description: string | null;
|
5941
|
-
createdAt: Date;
|
5942
|
-
updatedAt: Date;
|
5943
|
-
deletedAt: Date | null;
|
5944
|
-
systemName: string;
|
5945
|
-
displayName: string;
|
5946
|
-
permissions: {
|
5947
|
-
id: string;
|
5948
|
-
description: string | null;
|
5949
|
-
createdAt: Date;
|
5950
|
-
updatedAt: Date;
|
5951
|
-
deletedAt: Date | null;
|
5952
|
-
systemName: string;
|
5953
|
-
displayName: string;
|
5954
|
-
}[];
|
5955
|
-
}[];
|
5956
|
-
extension: {
|
5957
|
-
id: string;
|
5958
|
-
createdAt: Date;
|
5959
|
-
updatedAt: Date;
|
5960
|
-
deletedAt: Date | null;
|
5961
|
-
userId: string | null;
|
5962
|
-
sipServerUrl: string;
|
5963
|
-
sipUserName: string;
|
5964
|
-
webphoneLoginUser: string;
|
5965
|
-
extensionId: string | null;
|
5966
|
-
extensionName: string;
|
5967
|
-
telephonySignature: string | null;
|
5968
|
-
};
|
5969
|
-
} | undefined;
|
5970
|
-
} | undefined;
|
5971
5971
|
}>;
|
5972
5972
|
upload: z.ZodObject<{
|
5973
5973
|
id: z.ZodString;
|
@@ -6721,6 +6721,71 @@ export declare const MessageSchema: z.ZodObject<{
|
|
6721
6721
|
imageSetId: string;
|
6722
6722
|
room: {
|
6723
6723
|
id: string;
|
6724
|
+
channel: {
|
6725
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
6726
|
+
id: string;
|
6727
|
+
name: string;
|
6728
|
+
metadata: {
|
6729
|
+
id: string;
|
6730
|
+
name: string;
|
6731
|
+
accessToken: string;
|
6732
|
+
channelSecret?: string | undefined;
|
6733
|
+
additionalCredentials?: any;
|
6734
|
+
};
|
6735
|
+
status: boolean;
|
6736
|
+
createdAt: Date;
|
6737
|
+
updatedAt: Date;
|
6738
|
+
deletedAt: Date | null;
|
6739
|
+
actor: {
|
6740
|
+
id: string;
|
6741
|
+
address: string | null;
|
6742
|
+
name: string;
|
6743
|
+
email: string;
|
6744
|
+
createdAt: Date;
|
6745
|
+
updatedAt: Date;
|
6746
|
+
deletedAt: Date | null;
|
6747
|
+
emailVerifiedAt: Date | null;
|
6748
|
+
password: string;
|
6749
|
+
phone: string | null;
|
6750
|
+
notificationCount: number | null;
|
6751
|
+
roles: {
|
6752
|
+
id: string;
|
6753
|
+
description: string | null;
|
6754
|
+
createdAt: Date;
|
6755
|
+
updatedAt: Date;
|
6756
|
+
deletedAt: Date | null;
|
6757
|
+
systemName: string;
|
6758
|
+
displayName: string;
|
6759
|
+
permissions: {
|
6760
|
+
id: string;
|
6761
|
+
description: string | null;
|
6762
|
+
createdAt: Date;
|
6763
|
+
updatedAt: Date;
|
6764
|
+
deletedAt: Date | null;
|
6765
|
+
systemName: string;
|
6766
|
+
displayName: string;
|
6767
|
+
}[];
|
6768
|
+
}[];
|
6769
|
+
extension: {
|
6770
|
+
id: string;
|
6771
|
+
createdAt: Date;
|
6772
|
+
updatedAt: Date;
|
6773
|
+
deletedAt: Date | null;
|
6774
|
+
userId: string | null;
|
6775
|
+
sipServerUrl: string;
|
6776
|
+
sipUserName: string;
|
6777
|
+
webphoneLoginUser: string;
|
6778
|
+
extensionId: string | null;
|
6779
|
+
extensionName: string;
|
6780
|
+
telephonySignature: string | null;
|
6781
|
+
};
|
6782
|
+
};
|
6783
|
+
brandName: string;
|
6784
|
+
platformId: string;
|
6785
|
+
isReloginRequired: boolean;
|
6786
|
+
connectedUserName: string;
|
6787
|
+
connectedUserId: string;
|
6788
|
+
};
|
6724
6789
|
direction: "incoming" | "outgoing" | "system";
|
6725
6790
|
createdAt: Date;
|
6726
6791
|
updatedAt: Date;
|
@@ -6966,71 +7031,6 @@ export declare const MessageSchema: z.ZodObject<{
|
|
6966
7031
|
callTo: string | null;
|
6967
7032
|
} | null;
|
6968
7033
|
};
|
6969
|
-
channel?: {
|
6970
|
-
id?: string | undefined;
|
6971
|
-
createdAt?: Date | undefined;
|
6972
|
-
updatedAt?: Date | undefined;
|
6973
|
-
deletedAt?: Date | null | undefined;
|
6974
|
-
name?: string | undefined;
|
6975
|
-
type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
|
6976
|
-
metadata?: {
|
6977
|
-
id: string;
|
6978
|
-
name: string;
|
6979
|
-
accessToken: string;
|
6980
|
-
channelSecret?: string | undefined;
|
6981
|
-
additionalCredentials?: any;
|
6982
|
-
} | undefined;
|
6983
|
-
brandName?: string | undefined;
|
6984
|
-
platformId?: string | undefined;
|
6985
|
-
status?: boolean | undefined;
|
6986
|
-
isReloginRequired?: boolean | undefined;
|
6987
|
-
connectedUserName?: string | undefined;
|
6988
|
-
connectedUserId?: string | undefined;
|
6989
|
-
actor?: {
|
6990
|
-
id: string;
|
6991
|
-
address: string | null;
|
6992
|
-
name: string;
|
6993
|
-
email: string;
|
6994
|
-
createdAt: Date;
|
6995
|
-
updatedAt: Date;
|
6996
|
-
deletedAt: Date | null;
|
6997
|
-
emailVerifiedAt: Date | null;
|
6998
|
-
password: string;
|
6999
|
-
phone: string | null;
|
7000
|
-
notificationCount: number | null;
|
7001
|
-
roles: {
|
7002
|
-
id: string;
|
7003
|
-
description: string | null;
|
7004
|
-
createdAt: Date;
|
7005
|
-
updatedAt: Date;
|
7006
|
-
deletedAt: Date | null;
|
7007
|
-
systemName: string;
|
7008
|
-
displayName: string;
|
7009
|
-
permissions: {
|
7010
|
-
id: string;
|
7011
|
-
description: string | null;
|
7012
|
-
createdAt: Date;
|
7013
|
-
updatedAt: Date;
|
7014
|
-
deletedAt: Date | null;
|
7015
|
-
systemName: string;
|
7016
|
-
displayName: string;
|
7017
|
-
}[];
|
7018
|
-
}[];
|
7019
|
-
extension: {
|
7020
|
-
id: string;
|
7021
|
-
createdAt: Date;
|
7022
|
-
updatedAt: Date;
|
7023
|
-
deletedAt: Date | null;
|
7024
|
-
userId: string | null;
|
7025
|
-
sipServerUrl: string;
|
7026
|
-
sipUserName: string;
|
7027
|
-
webphoneLoginUser: string;
|
7028
|
-
extensionId: string | null;
|
7029
|
-
extensionName: string;
|
7030
|
-
telephonySignature: string | null;
|
7031
|
-
};
|
7032
|
-
} | undefined;
|
7033
|
-
} | undefined;
|
7034
7034
|
};
|
7035
7035
|
upload: {
|
7036
7036
|
id: string;
|
@@ -7196,6 +7196,71 @@ export declare const MessageSchema: z.ZodObject<{
|
|
7196
7196
|
imageSetId: string;
|
7197
7197
|
room: {
|
7198
7198
|
id: string;
|
7199
|
+
channel: {
|
7200
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
7201
|
+
id: string;
|
7202
|
+
name: string;
|
7203
|
+
metadata: {
|
7204
|
+
id: string;
|
7205
|
+
name: string;
|
7206
|
+
accessToken: string;
|
7207
|
+
channelSecret?: string | undefined;
|
7208
|
+
additionalCredentials?: any;
|
7209
|
+
};
|
7210
|
+
status: boolean;
|
7211
|
+
createdAt: Date;
|
7212
|
+
updatedAt: Date;
|
7213
|
+
deletedAt: Date | null;
|
7214
|
+
actor: {
|
7215
|
+
id: string;
|
7216
|
+
address: string | null;
|
7217
|
+
name: string;
|
7218
|
+
email: string;
|
7219
|
+
createdAt: Date;
|
7220
|
+
updatedAt: Date;
|
7221
|
+
deletedAt: Date | null;
|
7222
|
+
emailVerifiedAt: Date | null;
|
7223
|
+
password: string;
|
7224
|
+
phone: string | null;
|
7225
|
+
notificationCount: number | null;
|
7226
|
+
roles: {
|
7227
|
+
id: string;
|
7228
|
+
description: string | null;
|
7229
|
+
createdAt: Date;
|
7230
|
+
updatedAt: Date;
|
7231
|
+
deletedAt: Date | null;
|
7232
|
+
systemName: string;
|
7233
|
+
displayName: string;
|
7234
|
+
permissions: {
|
7235
|
+
id: string;
|
7236
|
+
description: string | null;
|
7237
|
+
createdAt: Date;
|
7238
|
+
updatedAt: Date;
|
7239
|
+
deletedAt: Date | null;
|
7240
|
+
systemName: string;
|
7241
|
+
displayName: string;
|
7242
|
+
}[];
|
7243
|
+
}[];
|
7244
|
+
extension: {
|
7245
|
+
id: string;
|
7246
|
+
createdAt: Date;
|
7247
|
+
updatedAt: Date;
|
7248
|
+
deletedAt: Date | null;
|
7249
|
+
userId: string | null;
|
7250
|
+
sipServerUrl: string;
|
7251
|
+
sipUserName: string;
|
7252
|
+
webphoneLoginUser: string;
|
7253
|
+
extensionId: string | null;
|
7254
|
+
extensionName: string;
|
7255
|
+
telephonySignature: string | null;
|
7256
|
+
};
|
7257
|
+
};
|
7258
|
+
brandName: string;
|
7259
|
+
platformId: string;
|
7260
|
+
isReloginRequired: boolean;
|
7261
|
+
connectedUserName: string;
|
7262
|
+
connectedUserId: string;
|
7263
|
+
};
|
7199
7264
|
direction: "incoming" | "outgoing" | "system";
|
7200
7265
|
createdAt: Date;
|
7201
7266
|
updatedAt: Date;
|
@@ -7441,71 +7506,6 @@ export declare const MessageSchema: z.ZodObject<{
|
|
7441
7506
|
callTo: string | null;
|
7442
7507
|
} | null;
|
7443
7508
|
};
|
7444
|
-
channel?: {
|
7445
|
-
id?: string | undefined;
|
7446
|
-
createdAt?: Date | undefined;
|
7447
|
-
updatedAt?: Date | undefined;
|
7448
|
-
deletedAt?: Date | null | undefined;
|
7449
|
-
name?: string | undefined;
|
7450
|
-
type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
|
7451
|
-
metadata?: {
|
7452
|
-
id: string;
|
7453
|
-
name: string;
|
7454
|
-
accessToken: string;
|
7455
|
-
channelSecret?: string | undefined;
|
7456
|
-
additionalCredentials?: any;
|
7457
|
-
} | undefined;
|
7458
|
-
brandName?: string | undefined;
|
7459
|
-
platformId?: string | undefined;
|
7460
|
-
status?: boolean | undefined;
|
7461
|
-
isReloginRequired?: boolean | undefined;
|
7462
|
-
connectedUserName?: string | undefined;
|
7463
|
-
connectedUserId?: string | undefined;
|
7464
|
-
actor?: {
|
7465
|
-
id: string;
|
7466
|
-
address: string | null;
|
7467
|
-
name: string;
|
7468
|
-
email: string;
|
7469
|
-
createdAt: Date;
|
7470
|
-
updatedAt: Date;
|
7471
|
-
deletedAt: Date | null;
|
7472
|
-
emailVerifiedAt: Date | null;
|
7473
|
-
password: string;
|
7474
|
-
phone: string | null;
|
7475
|
-
notificationCount: number | null;
|
7476
|
-
roles: {
|
7477
|
-
id: string;
|
7478
|
-
description: string | null;
|
7479
|
-
createdAt: Date;
|
7480
|
-
updatedAt: Date;
|
7481
|
-
deletedAt: Date | null;
|
7482
|
-
systemName: string;
|
7483
|
-
displayName: string;
|
7484
|
-
permissions: {
|
7485
|
-
id: string;
|
7486
|
-
description: string | null;
|
7487
|
-
createdAt: Date;
|
7488
|
-
updatedAt: Date;
|
7489
|
-
deletedAt: Date | null;
|
7490
|
-
systemName: string;
|
7491
|
-
displayName: string;
|
7492
|
-
}[];
|
7493
|
-
}[];
|
7494
|
-
extension: {
|
7495
|
-
id: string;
|
7496
|
-
createdAt: Date;
|
7497
|
-
updatedAt: Date;
|
7498
|
-
deletedAt: Date | null;
|
7499
|
-
userId: string | null;
|
7500
|
-
sipServerUrl: string;
|
7501
|
-
sipUserName: string;
|
7502
|
-
webphoneLoginUser: string;
|
7503
|
-
extensionId: string | null;
|
7504
|
-
extensionName: string;
|
7505
|
-
telephonySignature: string | null;
|
7506
|
-
};
|
7507
|
-
} | undefined;
|
7508
|
-
} | undefined;
|
7509
7509
|
};
|
7510
7510
|
upload: {
|
7511
7511
|
id: string;
|