@hubs101/js-api-skd-client 1.0.10645 → 1.0.10647

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.
@@ -590,10 +590,10 @@ const _deleteExhibition = (basePath, token, exhibitionId) => __awaiter(void 0, v
590
590
  exports._deleteExhibition = _deleteExhibition;
591
591
  const _importOnboardingQuestions = (basePath, token, eventId, eventSource, removeAnswers) => __awaiter(void 0, void 0, void 0, function* () {
592
592
  const base = (0, base_1.getBasePath)(basePath);
593
- const response = yield (0, api_1.postRequest)(`${base.EVENTS}/${eventId}/import/onboarding-questions`, {
594
- event_source: eventSource,
593
+ const body = Object.assign({ event_source: eventSource }, (removeAnswers !== undefined && {
595
594
  remove_answers: removeAnswers,
596
- }, token);
595
+ }));
596
+ const response = yield (0, api_1.postRequest)(`${base.EVENTS}/${eventId}/import/onboarding-questions`, body, token);
597
597
  return response;
598
598
  });
599
599
  exports._importOnboardingQuestions = _importOnboardingQuestions;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubs101/js-api-skd-client",
3
- "version": "1.0.10645",
3
+ "version": "1.0.10647",
4
4
  "author": "Liveware",
5
5
  "scripts": {
6
6
  "test": "jest --config jestconfig.json",