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.cjs +7 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.js +7 -6
- package/dist/index.js.map +1 -1
- package/dist/services/live-interaction.service.d.ts.map +1 -1
- package/dist/services/web.service.d.ts.map +1 -1
- package/dist/types/live-interaction.d.ts +1 -1
- package/dist/types/live-interaction.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -6985,7 +6985,9 @@ var LiveInteractionService = class {
|
|
|
6985
6985
|
}
|
|
6986
6986
|
validateQuestionPayload(params) {
|
|
6987
6987
|
this.validateRequiredChannelId(params.channelId);
|
|
6988
|
-
|
|
6988
|
+
if (params.questionId !== void 0) {
|
|
6989
|
+
this.validateRequiredString(params.questionId, "questionId");
|
|
6990
|
+
}
|
|
6989
6991
|
this.validateRequiredString(params.type, "type");
|
|
6990
6992
|
this.validateRequiredString(params.answer, "answer");
|
|
6991
6993
|
this.validateRequiredString(params.name, "name");
|
|
@@ -9067,15 +9069,14 @@ var WebService = class {
|
|
|
9067
9069
|
throw new PolyVValidationError("enabled must be Y or N");
|
|
9068
9070
|
}
|
|
9069
9071
|
}
|
|
9070
|
-
const
|
|
9071
|
-
authSettings: params.authSettings
|
|
9072
|
-
};
|
|
9072
|
+
const requestParams = {};
|
|
9073
9073
|
if (params.channelId) {
|
|
9074
|
-
|
|
9074
|
+
requestParams.channelId = params.channelId;
|
|
9075
9075
|
}
|
|
9076
9076
|
const response = await this.client.httpClient.post(
|
|
9077
9077
|
"/live/v3/channel/auth/update",
|
|
9078
|
-
|
|
9078
|
+
{ authSettings: params.authSettings },
|
|
9079
|
+
{ params: requestParams, headers: { "Content-Type": "application/json" } }
|
|
9079
9080
|
);
|
|
9080
9081
|
return response;
|
|
9081
9082
|
}
|