@ada-support/web-storage 0.1.0 → 0.2.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.
@@ -5,4 +5,7 @@ export interface AdaFunctionalStorageValue {
5
5
  rolloutLastValue: {
6
6
  [clientHandle: string]: number;
7
7
  };
8
+ marketing_campaigns_shown: {
9
+ [clientHandle: string]: string;
10
+ };
8
11
  }
@@ -3,12 +3,16 @@ export interface StorageValueByKey {
3
3
  /** Used to store the chat version assigned to a user (for A/B testing purposes). */
4
4
  "ada-embed_chat-assigned-version": string;
5
5
  /** Used to store information about current versions available (“canary” or “stable”). */
6
- "ada-embed_chat-manifest-cache": object;
6
+ "ada-embed_chat-manifest-cache": string;
7
7
  /** Used to determine if the drawer was opened previously so when users navigate to other pages we can automatically open chat. */
8
8
  "ada-embed_is-drawer-open": boolean;
9
9
  /** Use to store general information about Ada application state. */
10
10
  "ada-functional-storage": Partial<AdaFunctionalStorageValue>;
11
11
  /** Used to identify the user within Ada. */
12
12
  "chatter": string;
13
+ /** Indicates whether user is connected to a live agent. */
14
+ "inLiveChat": boolean;
15
+ /** Indicates whether user is waiting to connect to a live agent. */
16
+ "liveChatPending": boolean;
13
17
  }
14
18
  export declare type StorageKey = keyof StorageValueByKey;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ada-support/web-storage",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "A package to provide access to Web Storage API",
5
5
  "main": "dist/index.js",
6
6
  "publishConfig": {
@@ -5,4 +5,7 @@ export interface AdaFunctionalStorageValue {
5
5
  rolloutLastValue: {
6
6
  [clientHandle: string]: number;
7
7
  };
8
+ marketing_campaigns_shown: {
9
+ [clientHandle: string]: string;
10
+ };
8
11
  }
@@ -5,7 +5,7 @@ export interface StorageValueByKey {
5
5
  "ada-embed_chat-assigned-version": string;
6
6
 
7
7
  /** Used to store information about current versions available (“canary” or “stable”). */
8
- "ada-embed_chat-manifest-cache": object;
8
+ "ada-embed_chat-manifest-cache": string;
9
9
 
10
10
  /** Used to determine if the drawer was opened previously so when users navigate to other pages we can automatically open chat. */
11
11
  "ada-embed_is-drawer-open": boolean;
@@ -15,6 +15,12 @@ export interface StorageValueByKey {
15
15
 
16
16
  /** Used to identify the user within Ada. */
17
17
  "chatter": string;
18
+
19
+ /** Indicates whether user is connected to a live agent. */
20
+ "inLiveChat": boolean;
21
+
22
+ /** Indicates whether user is waiting to connect to a live agent. */
23
+ "liveChatPending": boolean;
18
24
  }
19
25
 
20
26
  export type StorageKey = keyof StorageValueByKey;