@ada-support/embed-types
Advanced tools
Comparing version 1.6.4 to 1.6.5
{ | ||
"name": "@ada-support/embed-types", | ||
"version": "1.6.4", | ||
"version": "1.6.5", | ||
"main": "./dist/index.js", | ||
@@ -5,0 +5,0 @@ "types": "./dist/index.d.ts", |
@@ -13,2 +13,17 @@ # embed-types | ||
## Set up and development | ||
Install dependencies: | ||
```sh | ||
yarn | ||
``` | ||
Run ESLint | ||
```sh | ||
yarn lint | ||
``` | ||
## Deployment | ||
The NPM publish job will run automatically via Github actions upon merging your branch to `main` | ||
## Installation | ||
@@ -28,12 +43,1 @@ | ||
You can also import any `export`ed items exposed in our public API. | ||
## ESLint | ||
1. Install dependencies: | ||
```sh | ||
yarn | ||
``` | ||
1. Run ESLint | ||
```sh | ||
yarn lint | ||
``` |
@@ -71,2 +71,3 @@ import type { AdaEventKey, AdaEventSubscriptionCallback } from "./ada-events"; | ||
export type FlatObjectPayload = Record<string, FlatObjectValue>; | ||
export type Modality = "messaging" | "voice"; | ||
@@ -86,2 +87,3 @@ export interface WindowInfo { | ||
sensitiveMetaFields?: FlatObjectPayload; | ||
activeModality?: Modality; | ||
} | ||
@@ -96,3 +98,7 @@ | ||
closeCampaign(): Promise<void>; | ||
createProactive(body: string, duration?: number, responseId?: string): Promise<void>; | ||
createProactive( | ||
body: string, | ||
duration?: number, | ||
responseId?: string, | ||
): Promise<void>; | ||
deleteHistory(): Promise<void>; | ||
@@ -106,5 +112,12 @@ evaluateCampaignConditions(options: CampaignParams): Promise<void>; | ||
stop(): Promise<void>; | ||
subscribeEvent<K extends AdaEventKey>(eventKey: K, callback: AdaEventSubscriptionCallback<K>): Promise<number>; | ||
subscribeEvent<K extends AdaEventKey>( | ||
eventKey: K, | ||
callback: AdaEventSubscriptionCallback<K>, | ||
): Promise<number>; | ||
toggle(): Promise<void>; | ||
trackEvent(eventKey: string, value: number, meta: FlatObjectPayload): Promise<void>; | ||
trackEvent( | ||
eventKey: string, | ||
value: number, | ||
meta: FlatObjectPayload, | ||
): Promise<void>; | ||
triggerCampaign(campaignKey: string, options: CampaignParams): Promise<void>; | ||
@@ -123,2 +136,5 @@ unsubscribeEvent(id: number): Promise<void>; | ||
/** A queue of actions created by embed-loader and traversed by embed-2 */ | ||
export type AdaEmbedLoaderInitialActionQueue = {method: keyof AdaEmbedAPI; arguments: unknown[]}[]; | ||
export type AdaEmbedLoaderInitialActionQueue = { | ||
method: keyof AdaEmbedAPI; | ||
arguments: unknown[]; | ||
}[]; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10766
156
42