polyv-live-api-sdk 1.0.14-rc.0 → 1.0.15

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");