analytica-frontend-lib 1.2.73 → 1.2.74
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 +1 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -2
- package/dist/index.mjs.map +1 -1
- package/dist/utils/chatUtils.d.ts +8 -5
- package/dist/utils/chatUtils.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -27,15 +27,18 @@ export interface ChatUserInfo {
|
|
|
27
27
|
export declare const isChatUserInfoValid: (userInfo: ChatUserInfo) => boolean;
|
|
28
28
|
/**
|
|
29
29
|
* Get WebSocket URL from API URL
|
|
30
|
-
* Converts https:// to wss
|
|
30
|
+
* Converts https:// to wss://, http:// to ws://, and replaces bff domain with chat domain
|
|
31
31
|
*
|
|
32
|
-
* @param apiUrl - The API URL (
|
|
33
|
-
* @returns WebSocket URL for chat
|
|
32
|
+
* @param apiUrl - The API URL (e.g., 'https://bff-hml.analiticaensino.com.br')
|
|
33
|
+
* @returns WebSocket URL for chat (e.g., 'wss://bff-hml-chat.analiticaensino.com.br')
|
|
34
34
|
*
|
|
35
35
|
* @example
|
|
36
36
|
* ```ts
|
|
37
|
-
* const wsUrl = getChatWsUrl('https://
|
|
38
|
-
* // Returns: 'wss://
|
|
37
|
+
* const wsUrl = getChatWsUrl('https://bff-hml.analiticaensino.com.br');
|
|
38
|
+
* // Returns: 'wss://bff-hml-chat.analiticaensino.com.br'
|
|
39
|
+
*
|
|
40
|
+
* const wsUrl = getChatWsUrl('https://bff.analiticaensino.com.br');
|
|
41
|
+
* // Returns: 'wss://bff-chat.analiticaensino.com.br'
|
|
39
42
|
* ```
|
|
40
43
|
*/
|
|
41
44
|
export declare const getChatWsUrl: (apiUrl: string) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatUtils.d.ts","sourceRoot":"","sources":["../../src/utils/chatUtils.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;G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