polyv-live-api-sdk 1.0.14 → 1.0.16

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/index.d.cts CHANGED
@@ -3620,7 +3620,7 @@ interface ListQuestionSendTimeParams {
3620
3620
  }
3621
3621
  interface AddEditQuestionParams {
3622
3622
  channelId: LiveInteractionChannelId;
3623
- questionId: string;
3623
+ questionId?: string;
3624
3624
  type: QuestionType;
3625
3625
  answer: string;
3626
3626
  name: string;
package/dist/index.js CHANGED
@@ -6978,7 +6978,9 @@ var LiveInteractionService = class {
6978
6978
  }
6979
6979
  validateQuestionPayload(params) {
6980
6980
  this.validateRequiredChannelId(params.channelId);
6981
- this.validateRequiredString(params.questionId, "questionId");
6981
+ if (params.questionId !== void 0) {
6982
+ this.validateRequiredString(params.questionId, "questionId");
6983
+ }
6982
6984
  this.validateRequiredString(params.type, "type");
6983
6985
  this.validateRequiredString(params.answer, "answer");
6984
6986
  this.validateRequiredString(params.name, "name");
@@ -9060,15 +9062,14 @@ var WebService = class {
9060
9062
  throw new PolyVValidationError("enabled must be Y or N");
9061
9063
  }
9062
9064
  }
9063
- const body = {
9064
- authSettings: params.authSettings
9065
- };
9065
+ const requestParams = {};
9066
9066
  if (params.channelId) {
9067
- body.channelId = params.channelId;
9067
+ requestParams.channelId = params.channelId;
9068
9068
  }
9069
9069
  const response = await this.client.httpClient.post(
9070
9070
  "/live/v3/channel/auth/update",
9071
- body
9071
+ { authSettings: params.authSettings },
9072
+ { params: requestParams, headers: { "Content-Type": "application/json" } }
9072
9073
  );
9073
9074
  return response;
9074
9075
  }