@kl1/contracts 1.3.23 → 1.3.25
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/api-contracts/src/chat/index.d.ts +2 -2
- package/dist/api-contracts/src/chat/index.d.ts.map +1 -1
- package/dist/api-contracts/src/chat/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/contract.d.ts +585 -10
- package/dist/api-contracts/src/contract.d.ts.map +1 -1
- package/dist/api-contracts/src/cx-log/index.d.ts +4 -4
- package/dist/api-contracts/src/cx-log/validation.d.ts +2 -2
- package/dist/api-contracts/src/cx-log/validation.d.ts.map +1 -1
- package/dist/api-contracts/src/dashboard/index.d.ts +9 -0
- package/dist/api-contracts/src/dashboard/index.d.ts.map +1 -1
- package/dist/api-contracts/src/widget/index.d.ts +286 -3
- package/dist/api-contracts/src/widget/index.d.ts.map +1 -1
- package/dist/index.js +48 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +48 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
@@ -15,7 +15,7 @@ export declare const cxLogContract: {
|
|
15
15
|
channelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
16
16
|
trunks: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
17
17
|
queueId: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
18
|
-
agentIds: z.ZodOptional<z.ZodArray<z.ZodString, "many"
|
18
|
+
agentIds: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodRecord<z.ZodString, z.ZodString>]>, string[], string[] | Record<string, string>>>;
|
19
19
|
direction: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"inbound">, z.ZodLiteral<"outbound">]>, "many">>;
|
20
20
|
disposition: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
21
21
|
sentimentScore: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"positive">, z.ZodLiteral<"neutral">, z.ZodLiteral<"negative">]>, "many">>;
|
@@ -81,7 +81,7 @@ export declare const cxLogContract: {
|
|
81
81
|
channelIds?: string[] | undefined;
|
82
82
|
trunks?: string[] | undefined;
|
83
83
|
queueId?: string[] | undefined;
|
84
|
-
agentIds?: string[] | undefined;
|
84
|
+
agentIds?: string[] | Record<string, string> | undefined;
|
85
85
|
direction?: ("inbound" | "outbound")[] | undefined;
|
86
86
|
disposition?: string[] | undefined;
|
87
87
|
sentimentScore?: ("negative" | "positive" | "neutral")[] | undefined;
|
@@ -10561,7 +10561,7 @@ export declare const cxLogContract: {
|
|
10561
10561
|
channelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
10562
10562
|
trunks: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
10563
10563
|
queueId: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
10564
|
-
agentIds: z.ZodOptional<z.ZodArray<z.ZodString, "many"
|
10564
|
+
agentIds: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodRecord<z.ZodString, z.ZodString>]>, string[], string[] | Record<string, string>>>;
|
10565
10565
|
direction: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"inbound">, z.ZodLiteral<"outbound">]>, "many">>;
|
10566
10566
|
disposition: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
10567
10567
|
sentimentScore: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"positive">, z.ZodLiteral<"neutral">, z.ZodLiteral<"negative">]>, "many">>;
|
@@ -10627,7 +10627,7 @@ export declare const cxLogContract: {
|
|
10627
10627
|
channelIds?: string[] | undefined;
|
10628
10628
|
trunks?: string[] | undefined;
|
10629
10629
|
queueId?: string[] | undefined;
|
10630
|
-
agentIds?: string[] | undefined;
|
10630
|
+
agentIds?: string[] | Record<string, string> | undefined;
|
10631
10631
|
direction?: ("inbound" | "outbound")[] | undefined;
|
10632
10632
|
disposition?: string[] | undefined;
|
10633
10633
|
sentimentScore?: ("negative" | "positive" | "neutral")[] | undefined;
|
@@ -7,7 +7,7 @@ export declare const GetAllCxLogQueryParamsSchema: z.ZodOptional<z.ZodObject<{
|
|
7
7
|
channelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
8
8
|
trunks: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
9
9
|
queueId: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
10
|
-
agentIds: z.ZodOptional<z.ZodArray<z.ZodString, "many"
|
10
|
+
agentIds: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodRecord<z.ZodString, z.ZodString>]>, string[], string[] | Record<string, string>>>;
|
11
11
|
direction: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"inbound">, z.ZodLiteral<"outbound">]>, "many">>;
|
12
12
|
disposition: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
13
13
|
sentimentScore: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"positive">, z.ZodLiteral<"neutral">, z.ZodLiteral<"negative">]>, "many">>;
|
@@ -73,7 +73,7 @@ export declare const GetAllCxLogQueryParamsSchema: z.ZodOptional<z.ZodObject<{
|
|
73
73
|
channelIds?: string[] | undefined;
|
74
74
|
trunks?: string[] | undefined;
|
75
75
|
queueId?: string[] | undefined;
|
76
|
-
agentIds?: string[] | undefined;
|
76
|
+
agentIds?: string[] | Record<string, string> | undefined;
|
77
77
|
direction?: ("inbound" | "outbound")[] | undefined;
|
78
78
|
disposition?: string[] | undefined;
|
79
79
|
sentimentScore?: ("negative" | "positive" | "neutral")[] | undefined;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../../src/cx-log/validation.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAgBpB,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
1
|
+
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../../src/cx-log/validation.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAgBpB,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsC5B,CAAC"}
|
@@ -2880,7 +2880,13 @@ export declare const dashboardContract: {
|
|
2880
2880
|
totalLoginDuration: string | null;
|
2881
2881
|
};
|
2882
2882
|
}>, "many">;
|
2883
|
+
page: z.ZodNumber;
|
2884
|
+
pageSize: z.ZodNumber;
|
2885
|
+
total: z.ZodNumber;
|
2883
2886
|
}, "strip", z.ZodTypeAny, {
|
2887
|
+
total: number;
|
2888
|
+
page: number;
|
2889
|
+
pageSize: number;
|
2884
2890
|
requestId: string;
|
2885
2891
|
userCheckInLogs: {
|
2886
2892
|
day: Date;
|
@@ -2896,6 +2902,9 @@ export declare const dashboardContract: {
|
|
2896
2902
|
};
|
2897
2903
|
}[];
|
2898
2904
|
}, {
|
2905
|
+
total: number;
|
2906
|
+
page: number;
|
2907
|
+
pageSize: number;
|
2899
2908
|
requestId: string;
|
2900
2909
|
userCheckInLogs: {
|
2901
2910
|
day: Date;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/dashboard/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,qBAAqB,EACrB,kCAAkC,EAClC,mCAAmC,EACnC,6BAA6B,EAC7B,kCAAkC,EAClC,0BAA0B,EAE1B,4BAA4B,EAC7B,MAAM,cAAc,CAAC;AACtB,OAAO,CAAC,MAAM,KAAK,CAAC;AAMpB,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,yBAAyB,EACzB,+BAA+B,EAC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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6gB7B,CAAC"}
|
@@ -761,6 +761,248 @@ export declare const widgetContract: {
|
|
761
761
|
'x-client-timezone'?: string | undefined;
|
762
762
|
}>>>;
|
763
763
|
};
|
764
|
+
getContactProfileWidgets: {
|
765
|
+
summary: "Get contact profile widgets";
|
766
|
+
method: "GET";
|
767
|
+
responses: {
|
768
|
+
200: z.ZodArray<z.ZodObject<{
|
769
|
+
id: z.ZodString;
|
770
|
+
createdAt: z.ZodDate;
|
771
|
+
updatedAt: z.ZodDate;
|
772
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
773
|
+
name: z.ZodString;
|
774
|
+
description: z.ZodNullable<z.ZodString>;
|
775
|
+
position: z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">, z.ZodLiteral<"contact_profile">, z.ZodLiteral<"inbox_detail">]>;
|
776
|
+
fields: z.ZodObject<{
|
777
|
+
data: z.ZodArray<z.ZodString, "many">;
|
778
|
+
}, "strip", z.ZodTypeAny, {
|
779
|
+
data: string[];
|
780
|
+
}, {
|
781
|
+
data: string[];
|
782
|
+
}>;
|
783
|
+
url: z.ZodString;
|
784
|
+
type: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"iframe">, z.ZodLiteral<"custom">]>>;
|
785
|
+
headers: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
786
|
+
key: z.ZodString;
|
787
|
+
value: z.ZodString;
|
788
|
+
}, "strip", z.ZodTypeAny, {
|
789
|
+
key: string;
|
790
|
+
value: string;
|
791
|
+
}, {
|
792
|
+
key: string;
|
793
|
+
value: string;
|
794
|
+
}>, "many">>;
|
795
|
+
method: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"get">, z.ZodLiteral<"post">]>>;
|
796
|
+
fileKey: z.ZodNullable<z.ZodString>;
|
797
|
+
fileUrl: z.ZodNullable<z.ZodString>;
|
798
|
+
}, "strip", z.ZodTypeAny, {
|
799
|
+
name: string;
|
800
|
+
type: "custom" | "iframe" | null;
|
801
|
+
id: string;
|
802
|
+
url: string;
|
803
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
804
|
+
method: "get" | "post" | null;
|
805
|
+
description: string | null;
|
806
|
+
createdAt: Date;
|
807
|
+
updatedAt: Date;
|
808
|
+
deletedAt: Date | null;
|
809
|
+
headers: {
|
810
|
+
key: string;
|
811
|
+
value: string;
|
812
|
+
}[] | null;
|
813
|
+
fileKey: string | null;
|
814
|
+
fileUrl: string | null;
|
815
|
+
fields: {
|
816
|
+
data: string[];
|
817
|
+
};
|
818
|
+
}, {
|
819
|
+
name: string;
|
820
|
+
type: "custom" | "iframe" | null;
|
821
|
+
id: string;
|
822
|
+
url: string;
|
823
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
824
|
+
method: "get" | "post" | null;
|
825
|
+
description: string | null;
|
826
|
+
createdAt: Date;
|
827
|
+
updatedAt: Date;
|
828
|
+
deletedAt: Date | null;
|
829
|
+
headers: {
|
830
|
+
key: string;
|
831
|
+
value: string;
|
832
|
+
}[] | null;
|
833
|
+
fileKey: string | null;
|
834
|
+
fileUrl: string | null;
|
835
|
+
fields: {
|
836
|
+
data: string[];
|
837
|
+
};
|
838
|
+
}>, "many">;
|
839
|
+
400: z.ZodObject<{
|
840
|
+
message: z.ZodString;
|
841
|
+
}, "strip", z.ZodTypeAny, {
|
842
|
+
message: string;
|
843
|
+
}, {
|
844
|
+
message: string;
|
845
|
+
}>;
|
846
|
+
401: z.ZodObject<{
|
847
|
+
message: z.ZodString;
|
848
|
+
error: z.ZodAny;
|
849
|
+
}, "strip", z.ZodTypeAny, {
|
850
|
+
message: string;
|
851
|
+
error?: any;
|
852
|
+
}, {
|
853
|
+
message: string;
|
854
|
+
error?: any;
|
855
|
+
}>;
|
856
|
+
500: z.ZodObject<{
|
857
|
+
message: z.ZodString;
|
858
|
+
error: z.ZodAny;
|
859
|
+
}, "strip", z.ZodTypeAny, {
|
860
|
+
message: string;
|
861
|
+
error?: any;
|
862
|
+
}, {
|
863
|
+
message: string;
|
864
|
+
error?: any;
|
865
|
+
}>;
|
866
|
+
};
|
867
|
+
path: "ms/widget/contact_profile";
|
868
|
+
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
869
|
+
'x-tenant': z.ZodString;
|
870
|
+
'x-service-token': z.ZodString;
|
871
|
+
'x-code': z.ZodOptional<z.ZodString>;
|
872
|
+
'x-client-timezone': z.ZodDefault<z.ZodString>;
|
873
|
+
}, "strip", z.ZodTypeAny, {
|
874
|
+
'x-tenant': string;
|
875
|
+
'x-service-token': string;
|
876
|
+
'x-client-timezone': string;
|
877
|
+
'x-code'?: string | undefined;
|
878
|
+
}, {
|
879
|
+
'x-tenant': string;
|
880
|
+
'x-service-token': string;
|
881
|
+
'x-code'?: string | undefined;
|
882
|
+
'x-client-timezone'?: string | undefined;
|
883
|
+
}>>>;
|
884
|
+
};
|
885
|
+
getInboxDetailWidgets: {
|
886
|
+
summary: "Get inbox detail widgets";
|
887
|
+
method: "GET";
|
888
|
+
responses: {
|
889
|
+
200: z.ZodArray<z.ZodObject<{
|
890
|
+
id: z.ZodString;
|
891
|
+
createdAt: z.ZodDate;
|
892
|
+
updatedAt: z.ZodDate;
|
893
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
894
|
+
name: z.ZodString;
|
895
|
+
description: z.ZodNullable<z.ZodString>;
|
896
|
+
position: z.ZodUnion<[z.ZodLiteral<"menu">, z.ZodLiteral<"ticket_detail">, z.ZodLiteral<"contact_detail">, z.ZodLiteral<"contact_profile">, z.ZodLiteral<"inbox_detail">]>;
|
897
|
+
fields: z.ZodObject<{
|
898
|
+
data: z.ZodArray<z.ZodString, "many">;
|
899
|
+
}, "strip", z.ZodTypeAny, {
|
900
|
+
data: string[];
|
901
|
+
}, {
|
902
|
+
data: string[];
|
903
|
+
}>;
|
904
|
+
url: z.ZodString;
|
905
|
+
type: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"iframe">, z.ZodLiteral<"custom">]>>;
|
906
|
+
headers: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
907
|
+
key: z.ZodString;
|
908
|
+
value: z.ZodString;
|
909
|
+
}, "strip", z.ZodTypeAny, {
|
910
|
+
key: string;
|
911
|
+
value: string;
|
912
|
+
}, {
|
913
|
+
key: string;
|
914
|
+
value: string;
|
915
|
+
}>, "many">>;
|
916
|
+
method: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"get">, z.ZodLiteral<"post">]>>;
|
917
|
+
fileKey: z.ZodNullable<z.ZodString>;
|
918
|
+
fileUrl: z.ZodNullable<z.ZodString>;
|
919
|
+
}, "strip", z.ZodTypeAny, {
|
920
|
+
name: string;
|
921
|
+
type: "custom" | "iframe" | null;
|
922
|
+
id: string;
|
923
|
+
url: string;
|
924
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
925
|
+
method: "get" | "post" | null;
|
926
|
+
description: string | null;
|
927
|
+
createdAt: Date;
|
928
|
+
updatedAt: Date;
|
929
|
+
deletedAt: Date | null;
|
930
|
+
headers: {
|
931
|
+
key: string;
|
932
|
+
value: string;
|
933
|
+
}[] | null;
|
934
|
+
fileKey: string | null;
|
935
|
+
fileUrl: string | null;
|
936
|
+
fields: {
|
937
|
+
data: string[];
|
938
|
+
};
|
939
|
+
}, {
|
940
|
+
name: string;
|
941
|
+
type: "custom" | "iframe" | null;
|
942
|
+
id: string;
|
943
|
+
url: string;
|
944
|
+
position: "menu" | "ticket_detail" | "contact_detail" | "contact_profile" | "inbox_detail";
|
945
|
+
method: "get" | "post" | null;
|
946
|
+
description: string | null;
|
947
|
+
createdAt: Date;
|
948
|
+
updatedAt: Date;
|
949
|
+
deletedAt: Date | null;
|
950
|
+
headers: {
|
951
|
+
key: string;
|
952
|
+
value: string;
|
953
|
+
}[] | null;
|
954
|
+
fileKey: string | null;
|
955
|
+
fileUrl: string | null;
|
956
|
+
fields: {
|
957
|
+
data: string[];
|
958
|
+
};
|
959
|
+
}>, "many">;
|
960
|
+
400: z.ZodObject<{
|
961
|
+
message: z.ZodString;
|
962
|
+
}, "strip", z.ZodTypeAny, {
|
963
|
+
message: string;
|
964
|
+
}, {
|
965
|
+
message: string;
|
966
|
+
}>;
|
967
|
+
401: z.ZodObject<{
|
968
|
+
message: z.ZodString;
|
969
|
+
error: z.ZodAny;
|
970
|
+
}, "strip", z.ZodTypeAny, {
|
971
|
+
message: string;
|
972
|
+
error?: any;
|
973
|
+
}, {
|
974
|
+
message: string;
|
975
|
+
error?: any;
|
976
|
+
}>;
|
977
|
+
500: z.ZodObject<{
|
978
|
+
message: z.ZodString;
|
979
|
+
error: z.ZodAny;
|
980
|
+
}, "strip", z.ZodTypeAny, {
|
981
|
+
message: string;
|
982
|
+
error?: any;
|
983
|
+
}, {
|
984
|
+
message: string;
|
985
|
+
error?: any;
|
986
|
+
}>;
|
987
|
+
};
|
988
|
+
path: "ms/widget/inbox_detail";
|
989
|
+
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
990
|
+
'x-tenant': z.ZodString;
|
991
|
+
'x-service-token': z.ZodString;
|
992
|
+
'x-code': z.ZodOptional<z.ZodString>;
|
993
|
+
'x-client-timezone': z.ZodDefault<z.ZodString>;
|
994
|
+
}, "strip", z.ZodTypeAny, {
|
995
|
+
'x-tenant': string;
|
996
|
+
'x-service-token': string;
|
997
|
+
'x-client-timezone': string;
|
998
|
+
'x-code'?: string | undefined;
|
999
|
+
}, {
|
1000
|
+
'x-tenant': string;
|
1001
|
+
'x-service-token': string;
|
1002
|
+
'x-code'?: string | undefined;
|
1003
|
+
'x-client-timezone'?: string | undefined;
|
1004
|
+
}>>>;
|
1005
|
+
};
|
764
1006
|
getWidgetById: {
|
765
1007
|
summary: "Get widget by id";
|
766
1008
|
method: "GET";
|
@@ -905,13 +1147,54 @@ export declare const widgetContract: {
|
|
905
1147
|
responses: {
|
906
1148
|
201: z.ZodObject<{
|
907
1149
|
requestId: z.ZodString;
|
908
|
-
|
1150
|
+
widget: z.ZodObject<{
|
1151
|
+
token: z.ZodNullable<z.ZodString>;
|
1152
|
+
headers: z.ZodArray<z.ZodObject<{
|
1153
|
+
key: z.ZodString;
|
1154
|
+
value: z.ZodString;
|
1155
|
+
}, "strip", z.ZodTypeAny, {
|
1156
|
+
key: string;
|
1157
|
+
value: string;
|
1158
|
+
}, {
|
1159
|
+
key: string;
|
1160
|
+
value: string;
|
1161
|
+
}>, "many">;
|
1162
|
+
url: z.ZodString;
|
1163
|
+
}, "strip", z.ZodTypeAny, {
|
1164
|
+
url: string;
|
1165
|
+
headers: {
|
1166
|
+
key: string;
|
1167
|
+
value: string;
|
1168
|
+
}[];
|
1169
|
+
token: string | null;
|
1170
|
+
}, {
|
1171
|
+
url: string;
|
1172
|
+
headers: {
|
1173
|
+
key: string;
|
1174
|
+
value: string;
|
1175
|
+
}[];
|
1176
|
+
token: string | null;
|
1177
|
+
}>;
|
909
1178
|
}, "strip", z.ZodTypeAny, {
|
910
|
-
url: string;
|
911
1179
|
requestId: string;
|
1180
|
+
widget: {
|
1181
|
+
url: string;
|
1182
|
+
headers: {
|
1183
|
+
key: string;
|
1184
|
+
value: string;
|
1185
|
+
}[];
|
1186
|
+
token: string | null;
|
1187
|
+
};
|
912
1188
|
}, {
|
913
|
-
url: string;
|
914
1189
|
requestId: string;
|
1190
|
+
widget: {
|
1191
|
+
url: string;
|
1192
|
+
headers: {
|
1193
|
+
key: string;
|
1194
|
+
value: string;
|
1195
|
+
}[];
|
1196
|
+
token: string | null;
|
1197
|
+
};
|
915
1198
|
}>;
|
916
1199
|
400: z.ZodObject<{
|
917
1200
|
message: z.ZodString;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/widget/index.ts"],"names":[],"mappings":"AACA,OAAO,CAAC,MAAM,KAAK,CAAC;AAQpB,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,YAAY,EACZ,gBAAgB,EACjB,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,kBAAkB,EAClB,2BAA2B,EAC3B,kBAAkB,EACnB,MAAM,cAAc,CAAC;AAGtB,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AACrE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AACrE,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAC5C,OAAO,2BAA2B,CACnC,CAAC;AACF,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAClD,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC1D,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,YAAY,GAAG,CA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0L1B,CAAC"}
|
package/dist/index.js
CHANGED
@@ -743,8 +743,6 @@ var messageTypes = [
|
|
743
743
|
import_zod18.default.literal("text_with_image"),
|
744
744
|
import_zod18.default.literal("reaction"),
|
745
745
|
import_zod18.default.literal("contacts"),
|
746
|
-
// messenger referral
|
747
|
-
import_zod18.default.literal("referral"),
|
748
746
|
// system
|
749
747
|
import_zod18.default.literal("csat"),
|
750
748
|
import_zod18.default.literal("assign"),
|
@@ -4182,7 +4180,17 @@ var GetAllCxLogQueryParamsSchema = DefaultQueryParamsSchema.extend({
|
|
4182
4180
|
channelIds: import_zod51.default.array(import_zod51.default.string().uuid()),
|
4183
4181
|
trunks: import_zod51.default.array(import_zod51.default.string()),
|
4184
4182
|
queueId: import_zod51.default.array(import_zod51.default.string()),
|
4185
|
-
agentIds: import_zod51.default.
|
4183
|
+
agentIds: import_zod51.default.union([
|
4184
|
+
import_zod51.default.array(import_zod51.default.string()),
|
4185
|
+
// If it's an array
|
4186
|
+
import_zod51.default.record(import_zod51.default.string())
|
4187
|
+
// If it's an object
|
4188
|
+
]).transform((val) => {
|
4189
|
+
if (Array.isArray(val)) {
|
4190
|
+
return val;
|
4191
|
+
}
|
4192
|
+
return Object.values(val);
|
4193
|
+
}),
|
4186
4194
|
direction: import_zod51.default.array(import_zod51.default.union([import_zod51.default.literal("inbound"), import_zod51.default.literal("outbound")])),
|
4187
4195
|
disposition: import_zod51.default.array(import_zod51.default.string()),
|
4188
4196
|
sentimentScore: import_zod51.default.array(sentimentScoreSchema),
|
@@ -5039,7 +5047,10 @@ var dashboardContract = (0, import_core13.initContract)().router(
|
|
5039
5047
|
day: import_zod56.default.date(),
|
5040
5048
|
userCheckInLog: UserCheckInLogSchema
|
5041
5049
|
})
|
5042
|
-
)
|
5050
|
+
),
|
5051
|
+
page: import_zod56.default.coerce.number().positive(),
|
5052
|
+
pageSize: import_zod56.default.coerce.number().positive(),
|
5053
|
+
total: import_zod56.default.coerce.number().positive()
|
5043
5054
|
})
|
5044
5055
|
}
|
5045
5056
|
},
|
@@ -7200,6 +7211,34 @@ var widgetContract = (0, import_core29.initContract)().router(
|
|
7200
7211
|
},
|
7201
7212
|
summary: "Get contact widgets"
|
7202
7213
|
},
|
7214
|
+
getContactProfileWidgets: {
|
7215
|
+
method: "GET",
|
7216
|
+
path: "/contact_profile",
|
7217
|
+
headers: DefaultHeaderSchema,
|
7218
|
+
responses: {
|
7219
|
+
200: import_zod88.default.array(WidgetSchema),
|
7220
|
+
400: import_zod88.default.object({
|
7221
|
+
message: import_zod88.default.string()
|
7222
|
+
}),
|
7223
|
+
401: DefaultUnauthorizedSchema,
|
7224
|
+
500: DefaultErrorResponseSchema
|
7225
|
+
},
|
7226
|
+
summary: "Get contact profile widgets"
|
7227
|
+
},
|
7228
|
+
getInboxDetailWidgets: {
|
7229
|
+
method: "GET",
|
7230
|
+
path: "/inbox_detail",
|
7231
|
+
headers: DefaultHeaderSchema,
|
7232
|
+
responses: {
|
7233
|
+
200: import_zod88.default.array(WidgetSchema),
|
7234
|
+
400: import_zod88.default.object({
|
7235
|
+
message: import_zod88.default.string()
|
7236
|
+
}),
|
7237
|
+
401: DefaultUnauthorizedSchema,
|
7238
|
+
500: DefaultErrorResponseSchema
|
7239
|
+
},
|
7240
|
+
summary: "Get inbox detail widgets"
|
7241
|
+
},
|
7203
7242
|
getWidgetById: {
|
7204
7243
|
method: "GET",
|
7205
7244
|
path: "/:id",
|
@@ -7222,7 +7261,11 @@ var widgetContract = (0, import_core29.initContract)().router(
|
|
7222
7261
|
headers: DefaultHeaderSchema,
|
7223
7262
|
responses: {
|
7224
7263
|
201: DefaultSuccessResponseSchema.extend({
|
7225
|
-
|
7264
|
+
widget: import_zod88.default.object({
|
7265
|
+
token: import_zod88.default.string().nullable(),
|
7266
|
+
headers: import_zod88.default.array(WidgetHeaderSchema),
|
7267
|
+
url: import_zod88.default.string()
|
7268
|
+
})
|
7226
7269
|
}),
|
7227
7270
|
400: import_zod88.default.object({
|
7228
7271
|
message: import_zod88.default.string()
|