@cellaware/utils 6.0.0 → 6.1.0
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
- package/dist/chatwms/vendor.d.ts +0 -8
- package/dist/chatwms/vendor.js +0 -16
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const 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
|
+
}
|
package/package.json
CHANGED
package/dist/chatwms/vendor.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const CHATWMS_VENDOR_GROUP_CELLAWARE = "cellaware";
|
|
2
|
-
export declare const CHATWMS_VENDOR_GROUP_BLUEYONDER = "blueyonder";
|
|
3
|
-
export declare const CHATWMS_VENDOR_GROUPS: string[];
|
|
4
|
-
export declare const CHATWMS_VENDOR_CELLAWARE_DEMO: string;
|
|
5
|
-
export declare const CHATWMS_VENDOR_BLUEYONDER_DISCRETE: string;
|
|
6
|
-
export declare const CHATWMS_VENDOR_BLUEYONDER_DISCRETE_CLOUD: string;
|
|
7
|
-
export declare const CHATWMS_VENDOR_BLUEYONDER_DISPATCHER: string;
|
|
8
|
-
export declare const CHATWMS_PRODUCT_VENDORS: string[];
|
package/dist/chatwms/vendor.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export const CHATWMS_VENDOR_GROUP_CELLAWARE = 'cellaware';
|
|
2
|
-
export const CHATWMS_VENDOR_GROUP_BLUEYONDER = 'blueyonder';
|
|
3
|
-
export const CHATWMS_VENDOR_GROUPS = [
|
|
4
|
-
CHATWMS_VENDOR_GROUP_CELLAWARE,
|
|
5
|
-
CHATWMS_VENDOR_GROUP_BLUEYONDER
|
|
6
|
-
];
|
|
7
|
-
export const CHATWMS_VENDOR_CELLAWARE_DEMO = CHATWMS_VENDOR_GROUP_CELLAWARE + '-demo';
|
|
8
|
-
export const CHATWMS_VENDOR_BLUEYONDER_DISCRETE = CHATWMS_VENDOR_GROUP_BLUEYONDER + '-discrete';
|
|
9
|
-
export const CHATWMS_VENDOR_BLUEYONDER_DISCRETE_CLOUD = CHATWMS_VENDOR_GROUP_BLUEYONDER + '-discrete-cloud';
|
|
10
|
-
export const CHATWMS_VENDOR_BLUEYONDER_DISPATCHER = CHATWMS_VENDOR_GROUP_BLUEYONDER + '-dispatcher';
|
|
11
|
-
export const CHATWMS_PRODUCT_VENDORS = [
|
|
12
|
-
CHATWMS_VENDOR_CELLAWARE_DEMO,
|
|
13
|
-
CHATWMS_VENDOR_BLUEYONDER_DISCRETE,
|
|
14
|
-
CHATWMS_VENDOR_BLUEYONDER_DISCRETE_CLOUD,
|
|
15
|
-
CHATWMS_VENDOR_BLUEYONDER_DISPATCHER
|
|
16
|
-
];
|