@screeb/sdk-browser 0.1.18 → 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.
@@ -412,6 +412,7 @@ var surveyClose = function () { return callScreebCommand("survey.close"); };
412
412
  *
413
413
  * Screeb.surveyStart(
414
414
  * '<UUID>',
415
+ * '<UUID>',
415
416
  * false,
416
417
  * {
417
418
  * color: "green",
@@ -425,10 +426,11 @@ var surveyClose = function () { return callScreebCommand("survey.close"); };
425
426
  * );
426
427
  * ```
427
428
  */
428
- var surveyStart = function (surveyId, allowMultipleResponses, hiddenFields, hooks, language) {
429
+ var surveyStart = function (surveyId, distributionId, allowMultipleResponses, hiddenFields, hooks, language) {
429
430
  if (allowMultipleResponses === void 0) { allowMultipleResponses = true; }
430
431
  if (hiddenFields === void 0) { hiddenFields = {}; }
431
432
  return callScreebCommand("survey.start", surveyId, {
433
+ distribution_id: distributionId,
432
434
  allow_multiple_responses: allowMultipleResponses,
433
435
  language: language,
434
436
  hidden_fields: hiddenFields,
@@ -531,4 +533,4 @@ exports.surveyClose = surveyClose;
531
533
  exports.surveyStart = surveyStart;
532
534
  exports.targetingCheck = targetingCheck;
533
535
  exports.targetingDebug = targetingDebug;
534
- CONSTANTS.version = '0.1.18'
536
+ CONSTANTS.version = '0.2.0'
@@ -301,6 +301,7 @@ export declare const surveyClose: () => void | Promise<unknown>;
301
301
  *
302
302
  * Screeb.surveyStart(
303
303
  * '<UUID>',
304
+ * '<UUID>',
304
305
  * false,
305
306
  * {
306
307
  * color: "green",
@@ -314,7 +315,7 @@ export declare const surveyClose: () => void | Promise<unknown>;
314
315
  * );
315
316
  * ```
316
317
  */
317
- export declare const surveyStart: (surveyId: string, allowMultipleResponses?: boolean, hiddenFields?: PropertyRecord, hooks?: Hooks, language?: string) => void | Promise<unknown>;
318
+ export declare const surveyStart: (surveyId: string, distributionId: string, allowMultipleResponses?: boolean, hiddenFields?: PropertyRecord, hooks?: Hooks, language?: string) => void | Promise<unknown>;
318
319
  /**
319
320
  * Interrupts a running message.
320
321
  *
@@ -301,6 +301,7 @@ export declare const surveyClose: () => void | Promise<unknown>;
301
301
  *
302
302
  * Screeb.surveyStart(
303
303
  * '<UUID>',
304
+ * '<UUID>',
304
305
  * false,
305
306
  * {
306
307
  * color: "green",
@@ -314,7 +315,7 @@ export declare const surveyClose: () => void | Promise<unknown>;
314
315
  * );
315
316
  * ```
316
317
  */
317
- export declare const surveyStart: (surveyId: string, allowMultipleResponses?: boolean, hiddenFields?: PropertyRecord, hooks?: Hooks, language?: string) => void | Promise<unknown>;
318
+ export declare const surveyStart: (surveyId: string, distributionId: string, allowMultipleResponses?: boolean, hiddenFields?: PropertyRecord, hooks?: Hooks, language?: string) => void | Promise<unknown>;
318
319
  /**
319
320
  * Interrupts a running message.
320
321
  *
package/dist/es/index.mjs CHANGED
@@ -410,6 +410,7 @@ var surveyClose = function () { return callScreebCommand("survey.close"); };
410
410
  *
411
411
  * Screeb.surveyStart(
412
412
  * '<UUID>',
413
+ * '<UUID>',
413
414
  * false,
414
415
  * {
415
416
  * color: "green",
@@ -423,10 +424,11 @@ var surveyClose = function () { return callScreebCommand("survey.close"); };
423
424
  * );
424
425
  * ```
425
426
  */
426
- var surveyStart = function (surveyId, allowMultipleResponses, hiddenFields, hooks, language) {
427
+ var surveyStart = function (surveyId, distributionId, allowMultipleResponses, hiddenFields, hooks, language) {
427
428
  if (allowMultipleResponses === void 0) { allowMultipleResponses = true; }
428
429
  if (hiddenFields === void 0) { hiddenFields = {}; }
429
430
  return callScreebCommand("survey.start", surveyId, {
431
+ distribution_id: distributionId,
430
432
  allow_multiple_responses: allowMultipleResponses,
431
433
  language: language,
432
434
  hidden_fields: hiddenFields,
@@ -512,4 +514,4 @@ var targetingCheck = function () { return callScreebCommand("targeting.check");
512
514
  var targetingDebug = function () { return callScreebCommand("targeting.debug"); };
513
515
 
514
516
  export { close, debug, eventTrack, identity, identityGet, identityGroupAssign, identityGroupUnassign, identityProperties, identityReset, init, isLoaded, load, messageClose, messageStart, surveyClose, surveyStart, targetingCheck, targetingDebug };
515
- CONSTANTS.version = '0.1.18'
517
+ CONSTANTS.version = '0.2.0'
package/docs/README.md CHANGED
@@ -878,7 +878,7 @@ ___
878
878
 
879
879
  ### surveyStart
880
880
 
881
- ▸ **surveyStart**(`surveyId`, `allowMultipleResponses?`, `hiddenFields?`, `hooks?`, `language?`): `void` \| `Promise`\<`unknown`\>
881
+ ▸ **surveyStart**(`surveyId`, `distributionId`, `allowMultipleResponses?`, `hiddenFields?`, `hooks?`, `language?`): `void` \| `Promise`\<`unknown`\>
882
882
 
883
883
  Starts a survey by its ID.
884
884
 
@@ -887,6 +887,7 @@ Starts a survey by its ID.
887
887
  | Name | Type | Default value |
888
888
  | :------ | :------ | :------ |
889
889
  | `surveyId` | `string` | `undefined` |
890
+ | `distributionId` | `string` | `undefined` |
890
891
  | `allowMultipleResponses` | `boolean` | `true` |
891
892
  | `hiddenFields` | [`PropertyRecord`](README.md#propertyrecord) | `{}` |
892
893
  | `hooks?` | [`Hooks`](README.md#hooks) | `undefined` |
@@ -902,6 +903,7 @@ Starts a survey by its ID.
902
903
  import * as Screeb from "@screeb/sdk-browser";
903
904
 
904
905
  Screeb.surveyStart(
906
+ '<UUID>',
905
907
  '<UUID>',
906
908
  false,
907
909
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@screeb/sdk-browser",
3
- "version": "0.1.18",
3
+ "version": "0.2.0",
4
4
  "description": "Screeb's browser sdk.",
5
5
  "keywords": [
6
6
  "product discovery",