@cellaware/utils 6.0.1 → 6.1.1
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/chatwms/date.d.ts +2 -0
- package/dist/chatwms/date.js +1 -0
- package/dist/chatwms/user.d.ts +11 -0
- package/dist/chatwms/user.js +9 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const CHATWMS_DEFAULT_DATE_FORMAT = 'MMDDYYYY';
|
package/dist/chatwms/user.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { HttpRequest } from "@azure/functions";
|
|
2
|
+
import { ChatWMSDateFormat } from "./date.js";
|
|
2
3
|
export interface ChatWMSUserData {
|
|
3
4
|
userId: string;
|
|
4
5
|
userDetails: string;
|
|
@@ -9,3 +10,13 @@ export declare function chatwmsInitUserData(): ChatWMSUserData;
|
|
|
9
10
|
* NOTE: will throw error if empty principal or decode issue
|
|
10
11
|
*/
|
|
11
12
|
export declare function chatwmsExtractUserDataFromHeaders(request: HttpRequest): ChatWMSUserData;
|
|
13
|
+
export interface ChatWMSUserSettings {
|
|
14
|
+
userId: string;
|
|
15
|
+
userDetails: string;
|
|
16
|
+
language: string;
|
|
17
|
+
theme: string;
|
|
18
|
+
developer?: boolean;
|
|
19
|
+
dateFormat?: ChatWMSDateFormat;
|
|
20
|
+
clientId: string;
|
|
21
|
+
}
|
|
22
|
+
export declare function chatwmsInitUserSettings(): ChatWMSUserSettings;
|
package/dist/chatwms/user.js
CHANGED
|
@@ -25,3 +25,12 @@ export function chatwmsExtractUserDataFromHeaders(request) {
|
|
|
25
25
|
throw new Error(`Authorization header not found`);
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
+
export function chatwmsInitUserSettings() {
|
|
29
|
+
return {
|
|
30
|
+
userId: '',
|
|
31
|
+
userDetails: '',
|
|
32
|
+
language: '',
|
|
33
|
+
theme: '',
|
|
34
|
+
clientId: ''
|
|
35
|
+
};
|
|
36
|
+
}
|