@kl1/contracts 1.0.24 → 1.0.25
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 +18 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +18 -7
- package/dist/index.mjs.map +1 -1
- package/dist/src/app/index.d.ts +17 -0
- package/dist/src/app/index.d.ts.map +1 -0
- package/dist/src/contract.d.ts +146 -19
- package/dist/src/contract.d.ts.map +1 -1
- package/dist/src/cx-log/index.d.ts +127 -0
- package/dist/src/cx-log/index.d.ts.map +1 -1
- package/dist/src/dashboard/index.d.ts +19 -19
- package/dist/src/mail/mail-server.d.ts +216 -0
- package/dist/src/mail/mail-server.d.ts.map +1 -0
- package/dist/src/platform-contact/schema.d.ts +30 -0
- package/dist/src/platform-contact/schema.d.ts.map +1 -0
- package/package.json +10 -4
@@ -0,0 +1,17 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const appContract: {
|
3
|
+
getMessage: {
|
4
|
+
method: "GET";
|
5
|
+
responses: {
|
6
|
+
200: z.ZodObject<{
|
7
|
+
message: z.ZodString;
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
9
|
+
message: string;
|
10
|
+
}, {
|
11
|
+
message: string;
|
12
|
+
}>;
|
13
|
+
};
|
14
|
+
path: "/";
|
15
|
+
};
|
16
|
+
};
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/app/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;CAQtB,CAAC"}
|
package/dist/src/contract.d.ts
CHANGED
@@ -19019,6 +19019,133 @@ export declare const apiContract: {
|
|
19019
19019
|
'x-client-timezone'?: string | undefined;
|
19020
19020
|
}>>>;
|
19021
19021
|
};
|
19022
|
+
export: {
|
19023
|
+
summary: "Export cx-logs";
|
19024
|
+
method: "GET";
|
19025
|
+
query: import("zod").ZodOptional<import("zod").ZodObject<{
|
19026
|
+
page: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
|
19027
|
+
pageSize: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNumber>>;
|
19028
|
+
contactId: import("zod").ZodOptional<import("zod").ZodString>;
|
19029
|
+
caseId: import("zod").ZodOptional<import("zod").ZodString>;
|
19030
|
+
channelIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
19031
|
+
queueId: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
19032
|
+
agentIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
19033
|
+
direction: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodLiteral<"inbound">, import("zod").ZodLiteral<"outbound">]>, "many">>;
|
19034
|
+
disposition: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
19035
|
+
sentimentScore: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodLiteral<"positive">, import("zod").ZodLiteral<"negative">]>, "many">>;
|
19036
|
+
csatScore: import("zod").ZodOptional<import("zod").ZodString>;
|
19037
|
+
sla: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodLiteral<"meet">, import("zod").ZodLiteral<"unmeet">]>, "many">>;
|
19038
|
+
tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
19039
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
19040
|
+
contactLabels: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
19041
|
+
email: import("zod").ZodOptional<import("zod").ZodString>;
|
19042
|
+
channel: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
19043
|
+
phone: import("zod").ZodOptional<import("zod").ZodString>;
|
19044
|
+
notes: import("zod").ZodOptional<import("zod").ZodString>;
|
19045
|
+
address: import("zod").ZodOptional<import("zod").ZodString>;
|
19046
|
+
company: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
19047
|
+
customFields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
19048
|
+
attributeId: import("zod").ZodString;
|
19049
|
+
value: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>;
|
19050
|
+
type: import("zod").ZodOptional<import("zod").ZodString>;
|
19051
|
+
}, "strip", import("zod").ZodTypeAny, {
|
19052
|
+
value: (string | string[]) & (string | string[] | undefined);
|
19053
|
+
attributeId: string;
|
19054
|
+
type?: string | undefined;
|
19055
|
+
}, {
|
19056
|
+
value: (string | string[]) & (string | string[] | undefined);
|
19057
|
+
attributeId: string;
|
19058
|
+
type?: string | undefined;
|
19059
|
+
}>, "many">>;
|
19060
|
+
selectedDate: import("zod").ZodOptional<import("zod").ZodString>;
|
19061
|
+
}, "strip", import("zod").ZodTypeAny, {
|
19062
|
+
page?: number | undefined;
|
19063
|
+
pageSize?: number | undefined;
|
19064
|
+
contactId?: string | undefined;
|
19065
|
+
caseId?: string | undefined;
|
19066
|
+
channelIds?: string[] | undefined;
|
19067
|
+
queueId?: string[] | undefined;
|
19068
|
+
agentIds?: string[] | undefined;
|
19069
|
+
direction?: ("inbound" | "outbound")[] | undefined;
|
19070
|
+
disposition?: string[] | undefined;
|
19071
|
+
sentimentScore?: ("positive" | "negative")[] | undefined;
|
19072
|
+
csatScore?: string | undefined;
|
19073
|
+
sla?: ("meet" | "unmeet")[] | undefined;
|
19074
|
+
tags?: string[] | undefined;
|
19075
|
+
name?: string | undefined;
|
19076
|
+
contactLabels?: string[] | undefined;
|
19077
|
+
email?: string | undefined;
|
19078
|
+
channel?: string[] | undefined;
|
19079
|
+
phone?: string | undefined;
|
19080
|
+
notes?: string | undefined;
|
19081
|
+
address?: string | undefined;
|
19082
|
+
company?: string[] | undefined;
|
19083
|
+
customFields?: {
|
19084
|
+
value: (string | string[]) & (string | string[] | undefined);
|
19085
|
+
attributeId: string;
|
19086
|
+
type?: string | undefined;
|
19087
|
+
}[] | undefined;
|
19088
|
+
selectedDate?: string | undefined;
|
19089
|
+
}, {
|
19090
|
+
page?: number | undefined;
|
19091
|
+
pageSize?: number | undefined;
|
19092
|
+
contactId?: string | undefined;
|
19093
|
+
caseId?: string | undefined;
|
19094
|
+
channelIds?: string[] | undefined;
|
19095
|
+
queueId?: string[] | undefined;
|
19096
|
+
agentIds?: string[] | undefined;
|
19097
|
+
direction?: ("inbound" | "outbound")[] | undefined;
|
19098
|
+
disposition?: string[] | undefined;
|
19099
|
+
sentimentScore?: ("positive" | "negative")[] | undefined;
|
19100
|
+
csatScore?: string | undefined;
|
19101
|
+
sla?: ("meet" | "unmeet")[] | undefined;
|
19102
|
+
tags?: string[] | undefined;
|
19103
|
+
name?: string | undefined;
|
19104
|
+
contactLabels?: string[] | undefined;
|
19105
|
+
email?: string | undefined;
|
19106
|
+
channel?: string[] | undefined;
|
19107
|
+
phone?: string | undefined;
|
19108
|
+
notes?: string | undefined;
|
19109
|
+
address?: string | undefined;
|
19110
|
+
company?: string[] | undefined;
|
19111
|
+
customFields?: {
|
19112
|
+
value: (string | string[]) & (string | string[] | undefined);
|
19113
|
+
attributeId: string;
|
19114
|
+
type?: string | undefined;
|
19115
|
+
}[] | undefined;
|
19116
|
+
selectedDate?: string | undefined;
|
19117
|
+
}>>;
|
19118
|
+
responses: {
|
19119
|
+
200: null;
|
19120
|
+
401: import("zod").ZodObject<{
|
19121
|
+
message: import("zod").ZodString;
|
19122
|
+
error: import("zod").ZodAny;
|
19123
|
+
}, "strip", import("zod").ZodTypeAny, {
|
19124
|
+
message: string;
|
19125
|
+
error?: any;
|
19126
|
+
}, {
|
19127
|
+
message: string;
|
19128
|
+
error?: any;
|
19129
|
+
}>;
|
19130
|
+
};
|
19131
|
+
path: "/cx-logs/export";
|
19132
|
+
headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
|
19133
|
+
'x-tenant': import("zod").ZodString;
|
19134
|
+
authorization: import("zod").ZodString;
|
19135
|
+
'x-code': import("zod").ZodOptional<import("zod").ZodString>;
|
19136
|
+
'x-client-timezone': import("zod").ZodDefault<import("zod").ZodString>;
|
19137
|
+
}, "strip", import("zod").ZodTypeAny, {
|
19138
|
+
'x-tenant': string;
|
19139
|
+
authorization: string;
|
19140
|
+
'x-client-timezone': string;
|
19141
|
+
'x-code'?: string | undefined;
|
19142
|
+
}, {
|
19143
|
+
'x-tenant': string;
|
19144
|
+
authorization: string;
|
19145
|
+
'x-code'?: string | undefined;
|
19146
|
+
'x-client-timezone'?: string | undefined;
|
19147
|
+
}>>>;
|
19148
|
+
};
|
19022
19149
|
};
|
19023
19150
|
dashboard: {
|
19024
19151
|
getDashboardData: {
|
@@ -20344,7 +20471,7 @@ export declare const apiContract: {
|
|
20344
20471
|
responses: {
|
20345
20472
|
200: import("zod").ZodObject<{
|
20346
20473
|
requestId: import("zod").ZodString;
|
20347
|
-
|
20474
|
+
customerCountStatus: import("zod").ZodObject<{
|
20348
20475
|
newContactCount: import("zod").ZodNullable<import("zod").ZodNumber>;
|
20349
20476
|
oldContactCount: import("zod").ZodNullable<import("zod").ZodNumber>;
|
20350
20477
|
}, "strip", import("zod").ZodTypeAny, {
|
@@ -20356,13 +20483,13 @@ export declare const apiContract: {
|
|
20356
20483
|
}>;
|
20357
20484
|
}, "strip", import("zod").ZodTypeAny, {
|
20358
20485
|
requestId: string;
|
20359
|
-
|
20486
|
+
customerCountStatus: {
|
20360
20487
|
newContactCount: number | null;
|
20361
20488
|
oldContactCount: number | null;
|
20362
20489
|
};
|
20363
20490
|
}, {
|
20364
20491
|
requestId: string;
|
20365
|
-
|
20492
|
+
customerCountStatus: {
|
20366
20493
|
newContactCount: number | null;
|
20367
20494
|
oldContactCount: number | null;
|
20368
20495
|
};
|
@@ -20378,7 +20505,7 @@ export declare const apiContract: {
|
|
20378
20505
|
error?: any;
|
20379
20506
|
}>;
|
20380
20507
|
};
|
20381
|
-
path: "dashboard/message/
|
20508
|
+
path: "dashboard/message/customers";
|
20382
20509
|
headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
|
20383
20510
|
'x-tenant': import("zod").ZodString;
|
20384
20511
|
authorization: import("zod").ZodString;
|
@@ -20409,7 +20536,7 @@ export declare const apiContract: {
|
|
20409
20536
|
responses: {
|
20410
20537
|
200: import("zod").ZodObject<{
|
20411
20538
|
requestId: import("zod").ZodString;
|
20412
|
-
|
20539
|
+
messageStatus: import("zod").ZodObject<{
|
20413
20540
|
total: import("zod").ZodNullable<import("zod").ZodNumber>;
|
20414
20541
|
closed: import("zod").ZodNullable<import("zod").ZodNumber>;
|
20415
20542
|
unassignedOpen: import("zod").ZodNullable<import("zod").ZodNumber>;
|
@@ -20427,7 +20554,7 @@ export declare const apiContract: {
|
|
20427
20554
|
}>;
|
20428
20555
|
}, "strip", import("zod").ZodTypeAny, {
|
20429
20556
|
requestId: string;
|
20430
|
-
|
20557
|
+
messageStatus: {
|
20431
20558
|
total: number | null;
|
20432
20559
|
closed: number | null;
|
20433
20560
|
unassignedOpen: number | null;
|
@@ -20435,7 +20562,7 @@ export declare const apiContract: {
|
|
20435
20562
|
};
|
20436
20563
|
}, {
|
20437
20564
|
requestId: string;
|
20438
|
-
|
20565
|
+
messageStatus: {
|
20439
20566
|
total: number | null;
|
20440
20567
|
closed: number | null;
|
20441
20568
|
unassignedOpen: number | null;
|
@@ -20484,7 +20611,7 @@ export declare const apiContract: {
|
|
20484
20611
|
responses: {
|
20485
20612
|
200: import("zod").ZodObject<{
|
20486
20613
|
requestId: import("zod").ZodString;
|
20487
|
-
|
20614
|
+
messageAverageData: import("zod").ZodObject<{
|
20488
20615
|
selectedWeekAvgByDay: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
20489
20616
|
day: import("zod").ZodNullable<import("zod").ZodString>;
|
20490
20617
|
avgResolutionTime: import("zod").ZodNullable<import("zod").ZodString>;
|
@@ -20549,7 +20676,7 @@ export declare const apiContract: {
|
|
20549
20676
|
}>;
|
20550
20677
|
}, "strip", import("zod").ZodTypeAny, {
|
20551
20678
|
requestId: string;
|
20552
|
-
|
20679
|
+
messageAverageData: {
|
20553
20680
|
selectedWeekAvgByDay?: {
|
20554
20681
|
day: string | null;
|
20555
20682
|
avgResolutionTime: string | null;
|
@@ -20566,7 +20693,7 @@ export declare const apiContract: {
|
|
20566
20693
|
};
|
20567
20694
|
}, {
|
20568
20695
|
requestId: string;
|
20569
|
-
|
20696
|
+
messageAverageData: {
|
20570
20697
|
selectedWeekAvgByDay?: {
|
20571
20698
|
day: string | null;
|
20572
20699
|
avgResolutionTime: string | null;
|
@@ -20755,7 +20882,7 @@ export declare const apiContract: {
|
|
20755
20882
|
responses: {
|
20756
20883
|
200: import("zod").ZodObject<{
|
20757
20884
|
requestId: import("zod").ZodString;
|
20758
|
-
|
20885
|
+
messageDisposition: import("zod").ZodObject<{
|
20759
20886
|
resolvedDispositionCount: import("zod").ZodNullable<import("zod").ZodNumber>;
|
20760
20887
|
prankDispositionCount: import("zod").ZodNullable<import("zod").ZodNumber>;
|
20761
20888
|
followUpDispositionCount: import("zod").ZodNullable<import("zod").ZodNumber>;
|
@@ -20776,7 +20903,7 @@ export declare const apiContract: {
|
|
20776
20903
|
}>;
|
20777
20904
|
}, "strip", import("zod").ZodTypeAny, {
|
20778
20905
|
requestId: string;
|
20779
|
-
|
20906
|
+
messageDisposition: {
|
20780
20907
|
resolvedDispositionCount: number | null;
|
20781
20908
|
prankDispositionCount: number | null;
|
20782
20909
|
followUpDispositionCount: number | null;
|
@@ -20785,7 +20912,7 @@ export declare const apiContract: {
|
|
20785
20912
|
};
|
20786
20913
|
}, {
|
20787
20914
|
requestId: string;
|
20788
|
-
|
20915
|
+
messageDisposition: {
|
20789
20916
|
resolvedDispositionCount: number | null;
|
20790
20917
|
prankDispositionCount: number | null;
|
20791
20918
|
followUpDispositionCount: number | null;
|
@@ -20835,7 +20962,7 @@ export declare const apiContract: {
|
|
20835
20962
|
responses: {
|
20836
20963
|
200: import("zod").ZodObject<{
|
20837
20964
|
requestId: import("zod").ZodString;
|
20838
|
-
|
20965
|
+
messageIncomingData: import("zod").ZodArray<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodObject<{
|
20839
20966
|
platform: import("zod").ZodNullable<import("zod").ZodString>;
|
20840
20967
|
hour: import("zod").ZodNullable<import("zod").ZodString>;
|
20841
20968
|
messageCount: import("zod").ZodNullable<import("zod").ZodString>;
|
@@ -20850,14 +20977,14 @@ export declare const apiContract: {
|
|
20850
20977
|
}>>>, "many">;
|
20851
20978
|
}, "strip", import("zod").ZodTypeAny, {
|
20852
20979
|
requestId: string;
|
20853
|
-
|
20980
|
+
messageIncomingData: ({
|
20854
20981
|
platform: string | null;
|
20855
20982
|
hour: string | null;
|
20856
20983
|
messageCount: string | null;
|
20857
20984
|
} | null | undefined)[];
|
20858
20985
|
}, {
|
20859
20986
|
requestId: string;
|
20860
|
-
|
20987
|
+
messageIncomingData: ({
|
20861
20988
|
platform: string | null;
|
20862
20989
|
hour: string | null;
|
20863
20990
|
messageCount: string | null;
|
@@ -20905,7 +21032,7 @@ export declare const apiContract: {
|
|
20905
21032
|
responses: {
|
20906
21033
|
200: import("zod").ZodObject<{
|
20907
21034
|
requestId: import("zod").ZodString;
|
20908
|
-
|
21035
|
+
messageTotalIncomingData: import("zod").ZodArray<import("zod").ZodNullable<import("zod").ZodObject<{
|
20909
21036
|
name: import("zod").ZodString;
|
20910
21037
|
data: import("zod").ZodArray<import("zod").ZodNumber, "many">;
|
20911
21038
|
}, "strip", import("zod").ZodTypeAny, {
|
@@ -20917,13 +21044,13 @@ export declare const apiContract: {
|
|
20917
21044
|
}>>, "many">;
|
20918
21045
|
}, "strip", import("zod").ZodTypeAny, {
|
20919
21046
|
requestId: string;
|
20920
|
-
|
21047
|
+
messageTotalIncomingData: ({
|
20921
21048
|
data: number[];
|
20922
21049
|
name: string;
|
20923
21050
|
} | null)[];
|
20924
21051
|
}, {
|
20925
21052
|
requestId: string;
|
20926
|
-
|
21053
|
+
messageTotalIncomingData: ({
|
20927
21054
|
data: number[];
|
20928
21055
|
name: string;
|
20929
21056
|
} | null)[];
|