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.d.cts
CHANGED
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
|
-
|
|
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
|
|
9064
|
-
authSettings: params.authSettings
|
|
9065
|
-
};
|
|
9065
|
+
const requestParams = {};
|
|
9066
9066
|
if (params.channelId) {
|
|
9067
|
-
|
|
9067
|
+
requestParams.channelId = params.channelId;
|
|
9068
9068
|
}
|
|
9069
9069
|
const response = await this.client.httpClient.post(
|
|
9070
9070
|
"/live/v3/channel/auth/update",
|
|
9071
|
-
|
|
9071
|
+
{ authSettings: params.authSettings },
|
|
9072
|
+
{ params: requestParams, headers: { "Content-Type": "application/json" } }
|
|
9072
9073
|
);
|
|
9073
9074
|
return response;
|
|
9074
9075
|
}
|