@screeb/sdk-browser 0.2.1 → 0.2.2
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/cjs/index.cjs +1 -1
- package/dist/cjs/index.d.ts +1 -1
- package/dist/es/index.d.ts +1 -1
- package/dist/es/index.mjs +1 -1
- package/docs/README.md +2 -2
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
package/dist/cjs/index.d.ts
CHANGED
|
@@ -316,7 +316,7 @@ export declare const surveyClose: () => void | Promise<unknown>;
|
|
|
316
316
|
* );
|
|
317
317
|
* ```
|
|
318
318
|
*/
|
|
319
|
-
export declare const surveyStart: (surveyId: string, distributionId
|
|
319
|
+
export declare const surveyStart: (surveyId: string, distributionId?: string, allowMultipleResponses?: boolean, hiddenFields?: PropertyRecord, hooks?: HooksSurveyStart, language?: string) => void | Promise<unknown>;
|
|
320
320
|
/**
|
|
321
321
|
* Interrupts a running message.
|
|
322
322
|
*
|
package/dist/es/index.d.ts
CHANGED
|
@@ -316,7 +316,7 @@ export declare const surveyClose: () => void | Promise<unknown>;
|
|
|
316
316
|
* );
|
|
317
317
|
* ```
|
|
318
318
|
*/
|
|
319
|
-
export declare const surveyStart: (surveyId: string, distributionId
|
|
319
|
+
export declare const surveyStart: (surveyId: string, distributionId?: string, allowMultipleResponses?: boolean, hiddenFields?: PropertyRecord, hooks?: HooksSurveyStart, language?: string) => void | Promise<unknown>;
|
|
320
320
|
/**
|
|
321
321
|
* Interrupts a running message.
|
|
322
322
|
*
|
package/dist/es/index.mjs
CHANGED
|
@@ -514,4 +514,4 @@ var targetingCheck = function () { return callScreebCommand("targeting.check");
|
|
|
514
514
|
var targetingDebug = function () { return callScreebCommand("targeting.debug"); };
|
|
515
515
|
|
|
516
516
|
export { close, debug, eventTrack, identity, identityGet, identityGroupAssign, identityGroupUnassign, identityProperties, identityReset, init, isLoaded, load, messageClose, messageStart, surveyClose, surveyStart, targetingCheck, targetingDebug };
|
|
517
|
-
CONSTANTS.version = '0.2.
|
|
517
|
+
CONSTANTS.version = '0.2.2'
|
package/docs/README.md
CHANGED
|
@@ -1057,7 +1057,7 @@ ___
|
|
|
1057
1057
|
|
|
1058
1058
|
### surveyStart
|
|
1059
1059
|
|
|
1060
|
-
▸ **surveyStart**(`surveyId`, `distributionId
|
|
1060
|
+
▸ **surveyStart**(`surveyId`, `distributionId?`, `allowMultipleResponses?`, `hiddenFields?`, `hooks?`, `language?`): `void` \| `Promise`\<`unknown`\>
|
|
1061
1061
|
|
|
1062
1062
|
Starts a survey by its ID.
|
|
1063
1063
|
|
|
@@ -1066,7 +1066,7 @@ Starts a survey by its ID.
|
|
|
1066
1066
|
| Name | Type | Default value |
|
|
1067
1067
|
| :------ | :------ | :------ |
|
|
1068
1068
|
| `surveyId` | `string` | `undefined` |
|
|
1069
|
-
| `distributionId
|
|
1069
|
+
| `distributionId?` | `string` | `undefined` |
|
|
1070
1070
|
| `allowMultipleResponses` | `boolean` | `true` |
|
|
1071
1071
|
| `hiddenFields` | [`PropertyRecord`](README.md#propertyrecord) | `{}` |
|
|
1072
1072
|
| `hooks?` | [`HooksSurveyStart`](README.md#hookssurveystart) | `undefined` |
|