@ada-cx/messaging-sdk 1.4.0 → 1.6.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/client/client-channel-handlers.d.ts +0 -1
- package/dist/client/client-host-runtime.d.ts +0 -1
- package/dist/client/client-types.d.ts +4 -1
- package/dist/client/client.d.ts +2 -16
- package/dist/client/config-helpers.d.ts +3 -13
- package/dist/frame-channel/types.d.ts +0 -1
- package/dist/index.d.ts +1 -1
- package/dist/mobile-webview-runtime.d.ts +1 -1
- package/dist/npm/index.cjs +57 -1
- package/dist/npm/index.cjs.map +1 -1
- package/dist/npm/index.d.cts +2 -2
- package/dist/npm/index.d.ts +1 -1
- package/dist/npm/index.js +57 -1
- package/dist/npm/index.js.map +1 -1
- package/dist/npm/testing.cjs +1 -155
- package/dist/npm/testing.cjs.map +1 -1
- package/dist/npm/testing.js +174 -151
- package/dist/npm/testing.js.map +1 -1
- package/dist/shared-utils/host-branding.d.ts +3 -0
- package/package.json +2 -2
- package/dist/client/url-business-events.d.ts +0 -19
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
interface UrlMatchCondition {
|
|
2
|
-
type: string;
|
|
3
|
-
value: string;
|
|
4
|
-
}
|
|
5
|
-
interface UrlTriggerCondition {
|
|
6
|
-
type: "url-match";
|
|
7
|
-
conditionsAny: UrlMatchCondition[];
|
|
8
|
-
}
|
|
9
|
-
export interface UrlBusinessEvent {
|
|
10
|
-
key: string;
|
|
11
|
-
value: number;
|
|
12
|
-
triggerConditions: UrlTriggerCondition[];
|
|
13
|
-
}
|
|
14
|
-
/** Parse the public `GET business_events/` response without trusting its shape. */
|
|
15
|
-
export declare function parseUrlBusinessEvents(payload: unknown): UrlBusinessEvent[];
|
|
16
|
-
/** Return every event with ANY matching URL trigger, matching legacy Embed2. */
|
|
17
|
-
export declare function getMatchingUrlBusinessEvents(events: UrlBusinessEvent[], href: string): UrlBusinessEvent[];
|
|
18
|
-
export declare function fetchUrlBusinessEvents(endpoint: string, fetcher?: typeof globalThis.fetch, signal?: AbortSignal): Promise<UrlBusinessEvent[]>;
|
|
19
|
-
export {};
|