@telia-ace/widget-services 1.0.19-next.0 → 1.0.20-next.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/storage/types.d.ts
CHANGED
|
@@ -8,15 +8,15 @@ export declare enum StorageScope {
|
|
|
8
8
|
Implementation = "implementation",
|
|
9
9
|
Widget = "widget"
|
|
10
10
|
}
|
|
11
|
-
export
|
|
11
|
+
export type Store = {
|
|
12
12
|
tenant: StorageContainer;
|
|
13
13
|
implementation: StorageContainer;
|
|
14
14
|
widget: StorageContainer;
|
|
15
15
|
};
|
|
16
|
-
export
|
|
16
|
+
export type StorageContainer = {
|
|
17
17
|
[key: string]: StoredValue;
|
|
18
18
|
};
|
|
19
|
-
export
|
|
19
|
+
export type StoredValue = {
|
|
20
20
|
value: any;
|
|
21
21
|
expiration?: string;
|
|
22
22
|
category: StorageCategory;
|
|
@@ -27,18 +27,18 @@ export declare enum StorageCategory {
|
|
|
27
27
|
Analytical = "analytical",
|
|
28
28
|
Marketing = "marketing"
|
|
29
29
|
}
|
|
30
|
-
export
|
|
31
|
-
export
|
|
30
|
+
export type StorageWriter = (value?: any) => Promise<void>;
|
|
31
|
+
export type StorageConfigurationOptions = {
|
|
32
32
|
consent?: StorageConsent;
|
|
33
33
|
};
|
|
34
|
-
export
|
|
35
|
-
export
|
|
34
|
+
export type StorageConsent = number | number[] | StorageCategory | StorageCategory[];
|
|
35
|
+
export type Duration = {
|
|
36
36
|
days?: number;
|
|
37
37
|
hours?: number;
|
|
38
38
|
minutes?: number;
|
|
39
39
|
seconds?: number;
|
|
40
40
|
};
|
|
41
|
-
export
|
|
41
|
+
export type StorageWriterOptions = {
|
|
42
42
|
scope?: StorageScope;
|
|
43
43
|
duration?: Duration;
|
|
44
44
|
medium?: StorageMedium;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telia-ace/widget-services",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.20-next.0",
|
|
4
4
|
"description": "Services for ACE Widgets.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"author": "Telia Company AB",
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
},
|
|
22
22
|
"sideEffects": false,
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@telia-ace/widget-utilities": "^1.0.
|
|
24
|
+
"@telia-ace/widget-utilities": "^1.0.9-next.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@telia-ace/widget-developer-tools": "^1.0.
|
|
27
|
+
"@telia-ace/widget-developer-tools": "^1.0.15-next.0",
|
|
28
28
|
"@webprovisions/platform": "^1.1.2"
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|