@screeb/sdk-browser
Advanced tools
Comparing version 0.1.17 to 0.1.18
@@ -319,2 +319,36 @@ import { Hooks, PropertyRecord, ScreebIdentityGetReturn, ScreebOptions } from "./types"; | ||
/** | ||
* Interrupts a running message. | ||
* | ||
* @example | ||
* ```ts | ||
* import * as Screeb from "@screeb/sdk-browser"; | ||
* | ||
* Screeb.messageClose(); | ||
* ``` | ||
*/ | ||
export declare const messageClose: () => void | Promise<unknown>; | ||
/** | ||
* Starts a message by its ID. | ||
* | ||
* @example | ||
* ```ts | ||
* import * as Screeb from "@screeb/sdk-browser"; | ||
* | ||
* Screeb.messageStart( | ||
* '<UUID>', | ||
* false, | ||
* { | ||
* color: "green", | ||
* article_id: 42 | ||
* }, | ||
* { | ||
* version: "1.0.0", | ||
* onMessageShowed: (payload) => console.log("Message showed", payload), | ||
* }, | ||
* "en" | ||
* ); | ||
* ``` | ||
*/ | ||
export declare const messageStart: (messageId: string, hiddenFields?: PropertyRecord, hooks?: Hooks, language?: string) => void | Promise<unknown>; | ||
/** | ||
* Forces a targeting check. | ||
@@ -321,0 +355,0 @@ * |
@@ -319,2 +319,36 @@ import { Hooks, PropertyRecord, ScreebIdentityGetReturn, ScreebOptions } from "./types"; | ||
/** | ||
* Interrupts a running message. | ||
* | ||
* @example | ||
* ```ts | ||
* import * as Screeb from "@screeb/sdk-browser"; | ||
* | ||
* Screeb.messageClose(); | ||
* ``` | ||
*/ | ||
export declare const messageClose: () => void | Promise<unknown>; | ||
/** | ||
* Starts a message by its ID. | ||
* | ||
* @example | ||
* ```ts | ||
* import * as Screeb from "@screeb/sdk-browser"; | ||
* | ||
* Screeb.messageStart( | ||
* '<UUID>', | ||
* false, | ||
* { | ||
* color: "green", | ||
* article_id: 42 | ||
* }, | ||
* { | ||
* version: "1.0.0", | ||
* onMessageShowed: (payload) => console.log("Message showed", payload), | ||
* }, | ||
* "en" | ||
* ); | ||
* ``` | ||
*/ | ||
export declare const messageStart: (messageId: string, hiddenFields?: PropertyRecord, hooks?: Hooks, language?: string) => void | Promise<unknown>; | ||
/** | ||
* Forces a targeting check. | ||
@@ -321,0 +355,0 @@ * |
@@ -49,2 +49,4 @@ @screeb/sdk-browser | ||
- [load](README.md#load) | ||
- [messageClose](README.md#messageclose) | ||
- [messageStart](README.md#messagestart) | ||
- [surveyClose](README.md#surveyclose) | ||
@@ -797,2 +799,63 @@ - [surveyStart](README.md#surveystart) | ||
### messageClose | ||
▸ **messageClose**(): `void` \| `Promise`\<`unknown`\> | ||
Interrupts a running message. | ||
#### Returns | ||
`void` \| `Promise`\<`unknown`\> | ||
**`Example`** | ||
```ts | ||
import * as Screeb from "@screeb/sdk-browser"; | ||
Screeb.messageClose(); | ||
``` | ||
___ | ||
### messageStart | ||
▸ **messageStart**(`messageId`, `hiddenFields?`, `hooks?`, `language?`): `void` \| `Promise`\<`unknown`\> | ||
Starts a message by its ID. | ||
#### Parameters | ||
| Name | Type | | ||
| :------ | :------ | | ||
| `messageId` | `string` | | ||
| `hiddenFields` | [`PropertyRecord`](README.md#propertyrecord) | | ||
| `hooks?` | [`Hooks`](README.md#hooks) | | ||
| `language?` | `string` | | ||
#### Returns | ||
`void` \| `Promise`\<`unknown`\> | ||
**`Example`** | ||
```ts | ||
import * as Screeb from "@screeb/sdk-browser"; | ||
Screeb.messageStart( | ||
'<UUID>', | ||
false, | ||
{ | ||
color: "green", | ||
article_id: 42 | ||
}, | ||
{ | ||
version: "1.0.0", | ||
onMessageShowed: (payload) => console.log("Message showed", payload), | ||
}, | ||
"en" | ||
); | ||
``` | ||
___ | ||
### surveyClose | ||
@@ -799,0 +862,0 @@ |
{ | ||
"name": "@screeb/sdk-browser", | ||
"version": "0.1.17", | ||
"version": "0.1.18", | ||
"description": "Screeb's browser sdk.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
89226
2098
12