@wacht/jsx 0.0.1-alpha.56 → 0.0.1-alpha.57
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.cjs.js +545 -545
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +16 -6
- package/dist/index.es.js +2947 -2914
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -959,6 +959,22 @@ declare type UseAgentIntegrationsReturnType = {
|
|
|
959
959
|
refetch: () => Promise<void>;
|
|
960
960
|
};
|
|
961
961
|
|
|
962
|
+
export declare function useAgentSession(ticket?: string | null): UseAgentSessionResult;
|
|
963
|
+
|
|
964
|
+
declare interface UseAgentSessionResult {
|
|
965
|
+
hasSession: boolean;
|
|
966
|
+
sessionLoading: boolean;
|
|
967
|
+
sessionError: Error | null;
|
|
968
|
+
sessionId: string | null;
|
|
969
|
+
contextGroup: string | null;
|
|
970
|
+
agents: AgentWithIntegrations[];
|
|
971
|
+
activeAgent: AgentWithIntegrations | null;
|
|
972
|
+
setActiveAgent: (agent: AgentWithIntegrations) => void;
|
|
973
|
+
ticketExchanged: boolean;
|
|
974
|
+
ticketLoading: boolean;
|
|
975
|
+
refetch: () => Promise<void>;
|
|
976
|
+
}
|
|
977
|
+
|
|
962
978
|
export declare function useChannelCounts(): UseChannelCountsReturnType;
|
|
963
979
|
|
|
964
980
|
declare type UseChannelCountsReturnType = {
|
|
@@ -1153,12 +1169,6 @@ declare type UsernameSignInParams = {
|
|
|
1153
1169
|
|
|
1154
1170
|
export declare function useSession(): UseSessionReturnType;
|
|
1155
1171
|
|
|
1156
|
-
export declare function useSessionAgents(): {
|
|
1157
|
-
agents: AgentWithIntegrations[];
|
|
1158
|
-
loading: boolean;
|
|
1159
|
-
error: any;
|
|
1160
|
-
};
|
|
1161
|
-
|
|
1162
1172
|
declare type UseSessionReturnType = {
|
|
1163
1173
|
loading: true;
|
|
1164
1174
|
session: never;
|