@kl1/contracts 1.0.19 → 1.0.21
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 +1815 -1078
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1812 -1078
- package/dist/index.mjs.map +1 -1
- package/dist/src/call-log/schema.d.ts +8 -8
- package/dist/src/call-log/validation.d.ts +4 -4
- package/dist/src/chat/index.d.ts +2927 -1113
- package/dist/src/chat/index.d.ts.map +1 -1
- package/dist/src/chat/schema.d.ts +65 -77
- package/dist/src/chat/schema.d.ts.map +1 -1
- package/dist/src/chat/validation.d.ts +5081 -70
- package/dist/src/chat/validation.d.ts.map +1 -1
- package/dist/src/company/index.d.ts +1803 -0
- package/dist/src/company/index.d.ts.map +1 -0
- package/dist/src/company/schema.d.ts +5 -5
- package/dist/src/company/validation.d.ts +852 -0
- package/dist/src/company/validation.d.ts.map +1 -0
- package/dist/src/contact/index.d.ts +21 -21
- package/dist/src/contact/schema.d.ts +3 -3
- package/dist/src/contact/validation.d.ts +21 -21
- package/dist/src/contract.d.ts +25007 -13945
- package/dist/src/contract.d.ts.map +1 -1
- package/dist/src/cx-log/index.d.ts +5494 -26
- package/dist/src/cx-log/index.d.ts.map +1 -1
- package/dist/src/cx-log/schema.d.ts +4545 -12
- package/dist/src/cx-log/schema.d.ts.map +1 -1
- package/dist/src/dashboard/index.d.ts +1852 -0
- package/dist/src/dashboard/index.d.ts.map +1 -0
- package/dist/src/dashboard/schema.d.ts +885 -0
- package/dist/src/dashboard/schema.d.ts.map +1 -0
- package/dist/src/dashboard/validation.d.ts +19 -0
- package/dist/src/dashboard/validation.d.ts.map +1 -0
- package/dist/src/evaluate-form/schema.d.ts +2 -2
- package/dist/src/index.d.ts +3 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/mail/mail-contract.d.ts +118 -118
- package/dist/src/mail/message-contract.d.ts +6 -6
- package/dist/src/mail/room-contract.d.ts +112 -112
- package/dist/src/mail/schemas/message.schema.d.ts +4 -4
- package/dist/src/mail/schemas/room-validation.schema.d.ts +36 -36
- package/dist/src/mail/schemas/room.schema.d.ts +28 -28
- package/dist/src/messenger/index.d.ts +228 -70
- package/dist/src/messenger/index.d.ts.map +1 -1
- package/dist/src/telephony-cdr/schema.d.ts +8 -8
- package/dist/src/telephony-cdr/validation.d.ts +4 -4
- package/dist/src/telephony-queue-call-count/schema.d.ts +2 -2
- package/dist/src/ticket/index.d.ts +63 -66
- package/dist/src/ticket/index.d.ts.map +1 -1
- package/dist/src/ticket/validation.d.ts +63 -66
- package/dist/src/ticket/validation.d.ts.map +1 -1
- package/dist/src/user/index.d.ts +2 -0
- package/dist/src/user/index.d.ts.map +1 -1
- package/dist/src/wrap-up-form/index.d.ts +15 -15
- package/dist/src/wrap-up-form/schema.d.ts +2 -2
- package/dist/src/wrap-up-form/validation.d.ts +3 -3
- package/package.json +1 -1
@@ -639,7 +639,7 @@ export declare const messengerContract: {
|
|
639
639
|
textValue: import("zod").ZodNullable<import("zod").ZodString>;
|
640
640
|
booleanValue: import("zod").ZodNullable<import("zod").ZodBoolean>;
|
641
641
|
numberValue: import("zod").ZodNullable<import("zod").ZodNumber>;
|
642
|
-
dateValue: import("zod").ZodNullable<import("zod").
|
642
|
+
dateValue: import("zod").ZodNullable<import("zod").ZodDate>;
|
643
643
|
attribute: import("zod").ZodObject<Omit<{
|
644
644
|
id: import("zod").ZodString;
|
645
645
|
createdAt: import("zod").ZodDate;
|
@@ -743,7 +743,7 @@ export declare const messengerContract: {
|
|
743
743
|
textValue: string | null;
|
744
744
|
booleanValue: boolean | null;
|
745
745
|
numberValue: number | null;
|
746
|
-
dateValue:
|
746
|
+
dateValue: Date | null;
|
747
747
|
}, {
|
748
748
|
id: string;
|
749
749
|
createdAt: Date;
|
@@ -766,7 +766,7 @@ export declare const messengerContract: {
|
|
766
766
|
textValue: string | null;
|
767
767
|
booleanValue: boolean | null;
|
768
768
|
numberValue: number | null;
|
769
|
-
dateValue:
|
769
|
+
dateValue: Date | null;
|
770
770
|
}>, "many">>;
|
771
771
|
}, "customFields">, "strip", import("zod").ZodTypeAny, {
|
772
772
|
id: string;
|
@@ -2316,7 +2316,7 @@ export declare const messengerContract: {
|
|
2316
2316
|
} | undefined;
|
2317
2317
|
} | undefined;
|
2318
2318
|
}>>;
|
2319
|
-
|
2319
|
+
cxlog: import("zod").ZodObject<{
|
2320
2320
|
id: import("zod").ZodString;
|
2321
2321
|
createdAt: import("zod").ZodDate;
|
2322
2322
|
updatedAt: import("zod").ZodDate;
|
@@ -2324,15 +2324,14 @@ export declare const messengerContract: {
|
|
2324
2324
|
caseId: import("zod").ZodNumber;
|
2325
2325
|
entityId: import("zod").ZodString;
|
2326
2326
|
entityName: import("zod").ZodString;
|
2327
|
-
|
2327
|
+
channelType: import("zod").ZodNullable<import("zod").ZodString>;
|
2328
2328
|
channel: import("zod").ZodNullable<import("zod").ZodString>;
|
2329
|
-
queueId: import("zod").ZodNullable<import("zod").ZodString>;
|
2330
|
-
agentId: import("zod").ZodNullable<import("zod").ZodString>;
|
2331
2329
|
direction: import("zod").ZodNullable<import("zod").ZodString>;
|
2332
2330
|
startedDate: import("zod").ZodNullable<import("zod").ZodDate>;
|
2333
2331
|
handledTime: import("zod").ZodNullable<import("zod").ZodNumber>;
|
2334
|
-
firstResponseTime: import("zod").ZodNullable<import("zod").
|
2332
|
+
firstResponseTime: import("zod").ZodNullable<import("zod").ZodString>;
|
2335
2333
|
disposition: import("zod").ZodNullable<import("zod").ZodString>;
|
2334
|
+
slaMeet: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
2336
2335
|
}, "strip", import("zod").ZodTypeAny, {
|
2337
2336
|
id: string;
|
2338
2337
|
channel: string | null;
|
@@ -2344,12 +2343,11 @@ export declare const messengerContract: {
|
|
2344
2343
|
entityId: string;
|
2345
2344
|
caseId: number;
|
2346
2345
|
entityName: string;
|
2347
|
-
|
2348
|
-
queueId: string | null;
|
2349
|
-
agentId: string | null;
|
2346
|
+
channelType: string | null;
|
2350
2347
|
startedDate: Date | null;
|
2351
2348
|
handledTime: number | null;
|
2352
|
-
firstResponseTime:
|
2349
|
+
firstResponseTime: string | null;
|
2350
|
+
slaMeet?: string | null | undefined;
|
2353
2351
|
}, {
|
2354
2352
|
id: string;
|
2355
2353
|
channel: string | null;
|
@@ -2361,12 +2359,11 @@ export declare const messengerContract: {
|
|
2361
2359
|
entityId: string;
|
2362
2360
|
caseId: number;
|
2363
2361
|
entityName: string;
|
2364
|
-
|
2365
|
-
queueId: string | null;
|
2366
|
-
agentId: string | null;
|
2362
|
+
channelType: string | null;
|
2367
2363
|
startedDate: Date | null;
|
2368
2364
|
handledTime: number | null;
|
2369
|
-
firstResponseTime:
|
2365
|
+
firstResponseTime: string | null;
|
2366
|
+
slaMeet?: string | null | undefined;
|
2370
2367
|
}>;
|
2371
2368
|
}, "strip", import("zod").ZodTypeAny, {
|
2372
2369
|
id: string;
|
@@ -2584,7 +2581,7 @@ export declare const messengerContract: {
|
|
2584
2581
|
telephonySignature: string | null;
|
2585
2582
|
} | undefined;
|
2586
2583
|
};
|
2587
|
-
|
2584
|
+
cxlog: {
|
2588
2585
|
id: string;
|
2589
2586
|
channel: string | null;
|
2590
2587
|
disposition: string | null;
|
@@ -2595,12 +2592,11 @@ export declare const messengerContract: {
|
|
2595
2592
|
entityId: string;
|
2596
2593
|
caseId: number;
|
2597
2594
|
entityName: string;
|
2598
|
-
|
2599
|
-
queueId: string | null;
|
2600
|
-
agentId: string | null;
|
2595
|
+
channelType: string | null;
|
2601
2596
|
startedDate: Date | null;
|
2602
2597
|
handledTime: number | null;
|
2603
|
-
firstResponseTime:
|
2598
|
+
firstResponseTime: string | null;
|
2599
|
+
slaMeet?: string | null | undefined;
|
2604
2600
|
};
|
2605
2601
|
channel?: {
|
2606
2602
|
id?: string | undefined;
|
@@ -2881,7 +2877,7 @@ export declare const messengerContract: {
|
|
2881
2877
|
telephonySignature: string | null;
|
2882
2878
|
} | undefined;
|
2883
2879
|
};
|
2884
|
-
|
2880
|
+
cxlog: {
|
2885
2881
|
id: string;
|
2886
2882
|
channel: string | null;
|
2887
2883
|
disposition: string | null;
|
@@ -2892,12 +2888,11 @@ export declare const messengerContract: {
|
|
2892
2888
|
entityId: string;
|
2893
2889
|
caseId: number;
|
2894
2890
|
entityName: string;
|
2895
|
-
|
2896
|
-
queueId: string | null;
|
2897
|
-
agentId: string | null;
|
2891
|
+
channelType: string | null;
|
2898
2892
|
startedDate: Date | null;
|
2899
2893
|
handledTime: number | null;
|
2900
|
-
firstResponseTime:
|
2894
|
+
firstResponseTime: string | null;
|
2895
|
+
slaMeet?: string | null | undefined;
|
2901
2896
|
};
|
2902
2897
|
channel?: {
|
2903
2898
|
id?: string | undefined;
|
@@ -3694,12 +3689,6 @@ export declare const messengerContract: {
|
|
3694
3689
|
telephonySignature: string | null;
|
3695
3690
|
} | undefined;
|
3696
3691
|
};
|
3697
|
-
readAt: Date;
|
3698
|
-
platformMessageId: string;
|
3699
|
-
replyPlatformMessageId: string;
|
3700
|
-
locale: "" | "th" | "mm" | "en";
|
3701
|
-
previewUrl: string;
|
3702
|
-
imageSetId: string;
|
3703
3692
|
room: {
|
3704
3693
|
id: string;
|
3705
3694
|
direction: "incoming" | "outgoing" | "system";
|
@@ -3916,7 +3905,7 @@ export declare const messengerContract: {
|
|
3916
3905
|
telephonySignature: string | null;
|
3917
3906
|
} | undefined;
|
3918
3907
|
};
|
3919
|
-
|
3908
|
+
cxlog: {
|
3920
3909
|
id: string;
|
3921
3910
|
channel: string | null;
|
3922
3911
|
disposition: string | null;
|
@@ -3927,12 +3916,11 @@ export declare const messengerContract: {
|
|
3927
3916
|
entityId: string;
|
3928
3917
|
caseId: number;
|
3929
3918
|
entityName: string;
|
3930
|
-
|
3931
|
-
queueId: string | null;
|
3932
|
-
agentId: string | null;
|
3919
|
+
channelType: string | null;
|
3933
3920
|
startedDate: Date | null;
|
3934
3921
|
handledTime: number | null;
|
3935
|
-
firstResponseTime:
|
3922
|
+
firstResponseTime: string | null;
|
3923
|
+
slaMeet?: string | null | undefined;
|
3936
3924
|
};
|
3937
3925
|
channel?: {
|
3938
3926
|
id?: string | undefined;
|
@@ -3998,6 +3986,12 @@ export declare const messengerContract: {
|
|
3998
3986
|
} | undefined;
|
3999
3987
|
} | undefined;
|
4000
3988
|
};
|
3989
|
+
readAt: Date;
|
3990
|
+
platformMessageId: string;
|
3991
|
+
replyPlatformMessageId: string;
|
3992
|
+
locale: "" | "th" | "mm" | "en";
|
3993
|
+
previewUrl: string;
|
3994
|
+
imageSetId: string;
|
4001
3995
|
sender: {
|
4002
3996
|
id: string;
|
4003
3997
|
address: string | null;
|
@@ -4149,12 +4143,6 @@ export declare const messengerContract: {
|
|
4149
4143
|
telephonySignature: string | null;
|
4150
4144
|
} | undefined;
|
4151
4145
|
};
|
4152
|
-
readAt: Date;
|
4153
|
-
platformMessageId: string;
|
4154
|
-
replyPlatformMessageId: string;
|
4155
|
-
locale: "" | "th" | "mm" | "en";
|
4156
|
-
previewUrl: string;
|
4157
|
-
imageSetId: string;
|
4158
4146
|
room: {
|
4159
4147
|
id: string;
|
4160
4148
|
direction: "incoming" | "outgoing" | "system";
|
@@ -4371,7 +4359,7 @@ export declare const messengerContract: {
|
|
4371
4359
|
telephonySignature: string | null;
|
4372
4360
|
} | undefined;
|
4373
4361
|
};
|
4374
|
-
|
4362
|
+
cxlog: {
|
4375
4363
|
id: string;
|
4376
4364
|
channel: string | null;
|
4377
4365
|
disposition: string | null;
|
@@ -4382,12 +4370,11 @@ export declare const messengerContract: {
|
|
4382
4370
|
entityId: string;
|
4383
4371
|
caseId: number;
|
4384
4372
|
entityName: string;
|
4385
|
-
|
4386
|
-
queueId: string | null;
|
4387
|
-
agentId: string | null;
|
4373
|
+
channelType: string | null;
|
4388
4374
|
startedDate: Date | null;
|
4389
4375
|
handledTime: number | null;
|
4390
|
-
firstResponseTime:
|
4376
|
+
firstResponseTime: string | null;
|
4377
|
+
slaMeet?: string | null | undefined;
|
4391
4378
|
};
|
4392
4379
|
channel?: {
|
4393
4380
|
id?: string | undefined;
|
@@ -4453,6 +4440,12 @@ export declare const messengerContract: {
|
|
4453
4440
|
} | undefined;
|
4454
4441
|
} | undefined;
|
4455
4442
|
};
|
4443
|
+
readAt: Date;
|
4444
|
+
platformMessageId: string;
|
4445
|
+
replyPlatformMessageId: string;
|
4446
|
+
locale: "" | "th" | "mm" | "en";
|
4447
|
+
previewUrl: string;
|
4448
|
+
imageSetId: string;
|
4456
4449
|
sender: {
|
4457
4450
|
id: string;
|
4458
4451
|
address: string | null;
|
@@ -4606,12 +4599,6 @@ export declare const messengerContract: {
|
|
4606
4599
|
telephonySignature: string | null;
|
4607
4600
|
} | undefined;
|
4608
4601
|
};
|
4609
|
-
readAt: Date;
|
4610
|
-
platformMessageId: string;
|
4611
|
-
replyPlatformMessageId: string;
|
4612
|
-
locale: "" | "th" | "mm" | "en";
|
4613
|
-
previewUrl: string;
|
4614
|
-
imageSetId: string;
|
4615
4602
|
room: {
|
4616
4603
|
id: string;
|
4617
4604
|
direction: "incoming" | "outgoing" | "system";
|
@@ -4828,7 +4815,7 @@ export declare const messengerContract: {
|
|
4828
4815
|
telephonySignature: string | null;
|
4829
4816
|
} | undefined;
|
4830
4817
|
};
|
4831
|
-
|
4818
|
+
cxlog: {
|
4832
4819
|
id: string;
|
4833
4820
|
channel: string | null;
|
4834
4821
|
disposition: string | null;
|
@@ -4839,12 +4826,11 @@ export declare const messengerContract: {
|
|
4839
4826
|
entityId: string;
|
4840
4827
|
caseId: number;
|
4841
4828
|
entityName: string;
|
4842
|
-
|
4843
|
-
queueId: string | null;
|
4844
|
-
agentId: string | null;
|
4829
|
+
channelType: string | null;
|
4845
4830
|
startedDate: Date | null;
|
4846
4831
|
handledTime: number | null;
|
4847
|
-
firstResponseTime:
|
4832
|
+
firstResponseTime: string | null;
|
4833
|
+
slaMeet?: string | null | undefined;
|
4848
4834
|
};
|
4849
4835
|
channel?: {
|
4850
4836
|
id?: string | undefined;
|
@@ -4910,6 +4896,12 @@ export declare const messengerContract: {
|
|
4910
4896
|
} | undefined;
|
4911
4897
|
} | undefined;
|
4912
4898
|
};
|
4899
|
+
readAt: Date;
|
4900
|
+
platformMessageId: string;
|
4901
|
+
replyPlatformMessageId: string;
|
4902
|
+
locale: "" | "th" | "mm" | "en";
|
4903
|
+
previewUrl: string;
|
4904
|
+
imageSetId: string;
|
4913
4905
|
sender: {
|
4914
4906
|
id: string;
|
4915
4907
|
address: string | null;
|
@@ -5064,12 +5056,6 @@ export declare const messengerContract: {
|
|
5064
5056
|
telephonySignature: string | null;
|
5065
5057
|
} | undefined;
|
5066
5058
|
};
|
5067
|
-
readAt: Date;
|
5068
|
-
platformMessageId: string;
|
5069
|
-
replyPlatformMessageId: string;
|
5070
|
-
locale: "" | "th" | "mm" | "en";
|
5071
|
-
previewUrl: string;
|
5072
|
-
imageSetId: string;
|
5073
5059
|
room: {
|
5074
5060
|
id: string;
|
5075
5061
|
direction: "incoming" | "outgoing" | "system";
|
@@ -5286,7 +5272,7 @@ export declare const messengerContract: {
|
|
5286
5272
|
telephonySignature: string | null;
|
5287
5273
|
} | undefined;
|
5288
5274
|
};
|
5289
|
-
|
5275
|
+
cxlog: {
|
5290
5276
|
id: string;
|
5291
5277
|
channel: string | null;
|
5292
5278
|
disposition: string | null;
|
@@ -5297,12 +5283,11 @@ export declare const messengerContract: {
|
|
5297
5283
|
entityId: string;
|
5298
5284
|
caseId: number;
|
5299
5285
|
entityName: string;
|
5300
|
-
|
5301
|
-
queueId: string | null;
|
5302
|
-
agentId: string | null;
|
5286
|
+
channelType: string | null;
|
5303
5287
|
startedDate: Date | null;
|
5304
5288
|
handledTime: number | null;
|
5305
|
-
firstResponseTime:
|
5289
|
+
firstResponseTime: string | null;
|
5290
|
+
slaMeet?: string | null | undefined;
|
5306
5291
|
};
|
5307
5292
|
channel?: {
|
5308
5293
|
id?: string | undefined;
|
@@ -5368,6 +5353,12 @@ export declare const messengerContract: {
|
|
5368
5353
|
} | undefined;
|
5369
5354
|
} | undefined;
|
5370
5355
|
};
|
5356
|
+
readAt: Date;
|
5357
|
+
platformMessageId: string;
|
5358
|
+
replyPlatformMessageId: string;
|
5359
|
+
locale: "" | "th" | "mm" | "en";
|
5360
|
+
previewUrl: string;
|
5361
|
+
imageSetId: string;
|
5371
5362
|
sender: {
|
5372
5363
|
id: string;
|
5373
5364
|
address: string | null;
|
@@ -5429,5 +5420,172 @@ export declare const messengerContract: {
|
|
5429
5420
|
};
|
5430
5421
|
path: "/message";
|
5431
5422
|
};
|
5423
|
+
connectToService: {
|
5424
|
+
body: import("zod").ZodObject<{
|
5425
|
+
name: import("zod").ZodString;
|
5426
|
+
type: import("zod").ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>;
|
5427
|
+
metadata: import("zod").ZodObject<{
|
5428
|
+
id: import("zod").ZodString;
|
5429
|
+
name: import("zod").ZodString;
|
5430
|
+
accessToken: import("zod").ZodString;
|
5431
|
+
additionalCredentials: import("zod").ZodOptional<import("zod").ZodAny>;
|
5432
|
+
}, "strip", import("zod").ZodTypeAny, {
|
5433
|
+
id: string;
|
5434
|
+
name: string;
|
5435
|
+
accessToken: string;
|
5436
|
+
additionalCredentials?: any;
|
5437
|
+
}, {
|
5438
|
+
id: string;
|
5439
|
+
name: string;
|
5440
|
+
accessToken: string;
|
5441
|
+
additionalCredentials?: any;
|
5442
|
+
}>;
|
5443
|
+
brandName: import("zod").ZodString;
|
5444
|
+
platformId: import("zod").ZodString;
|
5445
|
+
status: import("zod").ZodUnion<[import("zod").ZodLiteral<true>, import("zod").ZodLiteral<false>]>;
|
5446
|
+
isReloginRequired: import("zod").ZodBoolean;
|
5447
|
+
connectedUserName: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
|
5448
|
+
connectedUserId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
|
5449
|
+
}, "strip", import("zod").ZodTypeAny, {
|
5450
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
5451
|
+
name: string;
|
5452
|
+
metadata: {
|
5453
|
+
id: string;
|
5454
|
+
name: string;
|
5455
|
+
accessToken: string;
|
5456
|
+
additionalCredentials?: any;
|
5457
|
+
};
|
5458
|
+
status: boolean;
|
5459
|
+
brandName: string;
|
5460
|
+
platformId: string;
|
5461
|
+
isReloginRequired: boolean;
|
5462
|
+
connectedUserName?: string | null | undefined;
|
5463
|
+
connectedUserId?: string | null | undefined;
|
5464
|
+
}, {
|
5465
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
5466
|
+
name: string;
|
5467
|
+
metadata: {
|
5468
|
+
id: string;
|
5469
|
+
name: string;
|
5470
|
+
accessToken: string;
|
5471
|
+
additionalCredentials?: any;
|
5472
|
+
};
|
5473
|
+
status: boolean;
|
5474
|
+
brandName: string;
|
5475
|
+
platformId: string;
|
5476
|
+
isReloginRequired: boolean;
|
5477
|
+
connectedUserName?: string | null | undefined;
|
5478
|
+
connectedUserId?: string | null | undefined;
|
5479
|
+
}>;
|
5480
|
+
method: "POST";
|
5481
|
+
responses: {
|
5482
|
+
200: import("zod").ZodObject<{
|
5483
|
+
requestId: import("zod").ZodString;
|
5484
|
+
data: import("zod").ZodObject<{
|
5485
|
+
name: import("zod").ZodString;
|
5486
|
+
type: import("zod").ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>;
|
5487
|
+
metadata: import("zod").ZodObject<{
|
5488
|
+
id: import("zod").ZodString;
|
5489
|
+
name: import("zod").ZodString;
|
5490
|
+
accessToken: import("zod").ZodString;
|
5491
|
+
additionalCredentials: import("zod").ZodOptional<import("zod").ZodAny>;
|
5492
|
+
}, "strip", import("zod").ZodTypeAny, {
|
5493
|
+
id: string;
|
5494
|
+
name: string;
|
5495
|
+
accessToken: string;
|
5496
|
+
additionalCredentials?: any;
|
5497
|
+
}, {
|
5498
|
+
id: string;
|
5499
|
+
name: string;
|
5500
|
+
accessToken: string;
|
5501
|
+
additionalCredentials?: any;
|
5502
|
+
}>;
|
5503
|
+
brandName: import("zod").ZodString;
|
5504
|
+
platformId: import("zod").ZodString;
|
5505
|
+
status: import("zod").ZodUnion<[import("zod").ZodLiteral<true>, import("zod").ZodLiteral<false>]>;
|
5506
|
+
isReloginRequired: import("zod").ZodBoolean;
|
5507
|
+
connectedUserName: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
|
5508
|
+
connectedUserId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
|
5509
|
+
}, "strip", import("zod").ZodTypeAny, {
|
5510
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
5511
|
+
name: string;
|
5512
|
+
metadata: {
|
5513
|
+
id: string;
|
5514
|
+
name: string;
|
5515
|
+
accessToken: string;
|
5516
|
+
additionalCredentials?: any;
|
5517
|
+
};
|
5518
|
+
status: boolean;
|
5519
|
+
brandName: string;
|
5520
|
+
platformId: string;
|
5521
|
+
isReloginRequired: boolean;
|
5522
|
+
connectedUserName?: string | null | undefined;
|
5523
|
+
connectedUserId?: string | null | undefined;
|
5524
|
+
}, {
|
5525
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
5526
|
+
name: string;
|
5527
|
+
metadata: {
|
5528
|
+
id: string;
|
5529
|
+
name: string;
|
5530
|
+
accessToken: string;
|
5531
|
+
additionalCredentials?: any;
|
5532
|
+
};
|
5533
|
+
status: boolean;
|
5534
|
+
brandName: string;
|
5535
|
+
platformId: string;
|
5536
|
+
isReloginRequired: boolean;
|
5537
|
+
connectedUserName?: string | null | undefined;
|
5538
|
+
connectedUserId?: string | null | undefined;
|
5539
|
+
}>;
|
5540
|
+
}, "strip", import("zod").ZodTypeAny, {
|
5541
|
+
data: {
|
5542
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
5543
|
+
name: string;
|
5544
|
+
metadata: {
|
5545
|
+
id: string;
|
5546
|
+
name: string;
|
5547
|
+
accessToken: string;
|
5548
|
+
additionalCredentials?: any;
|
5549
|
+
};
|
5550
|
+
status: boolean;
|
5551
|
+
brandName: string;
|
5552
|
+
platformId: string;
|
5553
|
+
isReloginRequired: boolean;
|
5554
|
+
connectedUserName?: string | null | undefined;
|
5555
|
+
connectedUserId?: string | null | undefined;
|
5556
|
+
};
|
5557
|
+
requestId: string;
|
5558
|
+
}, {
|
5559
|
+
data: {
|
5560
|
+
type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
|
5561
|
+
name: string;
|
5562
|
+
metadata: {
|
5563
|
+
id: string;
|
5564
|
+
name: string;
|
5565
|
+
accessToken: string;
|
5566
|
+
additionalCredentials?: any;
|
5567
|
+
};
|
5568
|
+
status: boolean;
|
5569
|
+
brandName: string;
|
5570
|
+
platformId: string;
|
5571
|
+
isReloginRequired: boolean;
|
5572
|
+
connectedUserName?: string | null | undefined;
|
5573
|
+
connectedUserId?: string | null | undefined;
|
5574
|
+
};
|
5575
|
+
requestId: string;
|
5576
|
+
}>;
|
5577
|
+
500: import("zod").ZodObject<{
|
5578
|
+
message: import("zod").ZodString;
|
5579
|
+
error: import("zod").ZodAny;
|
5580
|
+
}, "strip", import("zod").ZodTypeAny, {
|
5581
|
+
message: string;
|
5582
|
+
error?: any;
|
5583
|
+
}, {
|
5584
|
+
message: string;
|
5585
|
+
error?: any;
|
5586
|
+
}>;
|
5587
|
+
};
|
5588
|
+
path: "/connect";
|
5589
|
+
};
|
5432
5590
|
};
|
5433
5591
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoB5B,CAAC"}
|
@@ -32,12 +32,10 @@ export declare const TelephonyCdrSchema: z.ZodObject<{
|
|
32
32
|
updatedAt: Date;
|
33
33
|
deletedAt: Date | null;
|
34
34
|
extensionId: string | null;
|
35
|
-
contactId: string | null;
|
36
|
-
uploadId: string | null;
|
37
|
-
callFrom: string;
|
38
|
-
callTo: string;
|
39
35
|
uniqueCallId: string;
|
40
36
|
timeStart: string;
|
37
|
+
callFrom: string;
|
38
|
+
callTo: string;
|
41
39
|
callDuration: number | null;
|
42
40
|
talkDuration: number | null;
|
43
41
|
srcTrunkName: string | null;
|
@@ -45,8 +43,10 @@ export declare const TelephonyCdrSchema: z.ZodObject<{
|
|
45
43
|
pinCode: string | null;
|
46
44
|
didNumber: string | null;
|
47
45
|
agentRingTime: number | null;
|
46
|
+
uploadId: string | null;
|
48
47
|
serialNumber: string | null;
|
49
48
|
telephonyQueueId: string | null;
|
49
|
+
contactId: string | null;
|
50
50
|
}, {
|
51
51
|
type: string;
|
52
52
|
id: string;
|
@@ -56,12 +56,10 @@ export declare const TelephonyCdrSchema: z.ZodObject<{
|
|
56
56
|
updatedAt: Date;
|
57
57
|
deletedAt: Date | null;
|
58
58
|
extensionId: string | null;
|
59
|
-
contactId: string | null;
|
60
|
-
uploadId: string | null;
|
61
|
-
callFrom: string;
|
62
|
-
callTo: string;
|
63
59
|
uniqueCallId: string;
|
64
60
|
timeStart: string;
|
61
|
+
callFrom: string;
|
62
|
+
callTo: string;
|
65
63
|
callDuration: number | null;
|
66
64
|
talkDuration: number | null;
|
67
65
|
srcTrunkName: string | null;
|
@@ -69,7 +67,9 @@ export declare const TelephonyCdrSchema: z.ZodObject<{
|
|
69
67
|
pinCode: string | null;
|
70
68
|
didNumber: string | null;
|
71
69
|
agentRingTime: number | null;
|
70
|
+
uploadId: string | null;
|
72
71
|
serialNumber: string | null;
|
73
72
|
telephonyQueueId: string | null;
|
73
|
+
contactId: string | null;
|
74
74
|
}>;
|
75
75
|
//# sourceMappingURL=schema.d.ts.map
|
@@ -18,10 +18,10 @@ export declare const CreateTelephonyCdrSchema: z.ZodObject<{
|
|
18
18
|
type: string;
|
19
19
|
recording: string | null;
|
20
20
|
status: string;
|
21
|
-
callFrom: string;
|
22
|
-
callTo: string;
|
23
21
|
uniqueCallId: string;
|
24
22
|
timeStart: string;
|
23
|
+
callFrom: string;
|
24
|
+
callTo: string;
|
25
25
|
callDuration: number | null;
|
26
26
|
talkDuration: number | null;
|
27
27
|
srcTrunkName: string | null;
|
@@ -33,10 +33,10 @@ export declare const CreateTelephonyCdrSchema: z.ZodObject<{
|
|
33
33
|
type: string;
|
34
34
|
recording: string | null;
|
35
35
|
status: string;
|
36
|
-
callFrom: string;
|
37
|
-
callTo: string;
|
38
36
|
uniqueCallId: string;
|
39
37
|
timeStart: string;
|
38
|
+
callFrom: string;
|
39
|
+
callTo: string;
|
40
40
|
callDuration: number | null;
|
41
41
|
talkDuration: number | null;
|
42
42
|
srcTrunkName: string | null;
|
@@ -20,8 +20,8 @@ export declare const TelephonyQueueCallCountSchema: z.ZodObject<{
|
|
20
20
|
createdAt: Date;
|
21
21
|
updatedAt: Date;
|
22
22
|
deletedAt: Date | null;
|
23
|
-
sla: number;
|
24
23
|
telephonyQueueId: string;
|
24
|
+
sla: number;
|
25
25
|
totalQueueCall: number;
|
26
26
|
missedQueueCall: number;
|
27
27
|
answeredQueueCall: number;
|
@@ -36,8 +36,8 @@ export declare const TelephonyQueueCallCountSchema: z.ZodObject<{
|
|
36
36
|
createdAt: Date;
|
37
37
|
updatedAt: Date;
|
38
38
|
deletedAt: Date | null;
|
39
|
-
sla: number;
|
40
39
|
telephonyQueueId: string;
|
40
|
+
sla: number;
|
41
41
|
totalQueueCall: number;
|
42
42
|
missedQueueCall: number;
|
43
43
|
answeredQueueCall: number;
|