New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ask-sdk-model

Package Overview
Dependencies
Maintainers
1
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ask-sdk-model - npm Package Compare versions

Comparing version 1.4.1 to 1.5.0

93

index.js

@@ -821,2 +821,95 @@ "use strict";

};
/**
*
* @param {string} deviceId The device Id
*/
UpsServiceClient.prototype.getSystemDistanceUnits = function (deviceId) {
return __awaiter(this, void 0, void 0, function () {
var __operationId__, queryParams, headerParams, pathParams, authorizationValue, errorDefinitions;
return __generator(this, function (_a) {
__operationId__ = 'getSystemDistanceUnits';
// verify required parameter 'deviceId' is not null or undefined
if (deviceId == null) {
throw new Error("Required parameter deviceId was null or undefined when calling " + __operationId__ + ".");
}
queryParams = new Map();
headerParams = [];
headerParams.push({ key: 'Content-type', value: 'application/json' });
pathParams = new Map();
pathParams.set('deviceId', deviceId);
authorizationValue = "Bearer " + this.apiConfiguration.authorizationValue;
headerParams.push({ key: "Authorization", value: authorizationValue });
errorDefinitions = new Map();
errorDefinitions.set(200, "Successfully get the setting");
errorDefinitions.set(204, "The query did not return any results.");
errorDefinitions.set(401, "The authentication token is malformed or invalid.");
errorDefinitions.set(403, "The authentication token does not have access to resource.");
errorDefinitions.set(429, "The skill has been throttled due to an excessive number of requests.");
errorDefinitions.set(0, "An unexpected error occurred.");
return [2 /*return*/, this.invoke("GET", this.apiConfiguration.apiEndpoint, "/v2/devices/{deviceId}/settings/System.distanceUnits", pathParams, queryParams, headerParams, null, errorDefinitions)];
});
});
};
/**
*
* @param {string} deviceId The device Id
*/
UpsServiceClient.prototype.getSystemTemperatureUnit = function (deviceId) {
return __awaiter(this, void 0, void 0, function () {
var __operationId__, queryParams, headerParams, pathParams, authorizationValue, errorDefinitions;
return __generator(this, function (_a) {
__operationId__ = 'getSystemTemperatureUnit';
// verify required parameter 'deviceId' is not null or undefined
if (deviceId == null) {
throw new Error("Required parameter deviceId was null or undefined when calling " + __operationId__ + ".");
}
queryParams = new Map();
headerParams = [];
headerParams.push({ key: 'Content-type', value: 'application/json' });
pathParams = new Map();
pathParams.set('deviceId', deviceId);
authorizationValue = "Bearer " + this.apiConfiguration.authorizationValue;
headerParams.push({ key: "Authorization", value: authorizationValue });
errorDefinitions = new Map();
errorDefinitions.set(200, "Successfully get the setting");
errorDefinitions.set(204, "The query did not return any results.");
errorDefinitions.set(401, "The authentication token is malformed or invalid.");
errorDefinitions.set(403, "The authentication token does not have access to resource.");
errorDefinitions.set(429, "The skill has been throttled due to an excessive number of requests.");
errorDefinitions.set(0, "An unexpected error occurred.");
return [2 /*return*/, this.invoke("GET", this.apiConfiguration.apiEndpoint, "/v2/devices/{deviceId}/settings/System.temperatureUnit", pathParams, queryParams, headerParams, null, errorDefinitions)];
});
});
};
/**
*
* @param {string} deviceId The device Id
*/
UpsServiceClient.prototype.getSystemTimeZone = function (deviceId) {
return __awaiter(this, void 0, void 0, function () {
var __operationId__, queryParams, headerParams, pathParams, authorizationValue, errorDefinitions;
return __generator(this, function (_a) {
__operationId__ = 'getSystemTimeZone';
// verify required parameter 'deviceId' is not null or undefined
if (deviceId == null) {
throw new Error("Required parameter deviceId was null or undefined when calling " + __operationId__ + ".");
}
queryParams = new Map();
headerParams = [];
headerParams.push({ key: 'Content-type', value: 'application/json' });
pathParams = new Map();
pathParams.set('deviceId', deviceId);
authorizationValue = "Bearer " + this.apiConfiguration.authorizationValue;
headerParams.push({ key: "Authorization", value: authorizationValue });
errorDefinitions = new Map();
errorDefinitions.set(200, "Successfully get the setting");
errorDefinitions.set(204, "The query did not return any results.");
errorDefinitions.set(401, "The authentication token is malformed or invalid.");
errorDefinitions.set(403, "The authentication token does not have access to resource.");
errorDefinitions.set(429, "The skill has been throttled due to an excessive number of requests.");
errorDefinitions.set(0, "An unexpected error occurred.");
return [2 /*return*/, this.invoke("GET", this.apiConfiguration.apiEndpoint, "/v2/devices/{deviceId}/settings/System.timeZone", pathParams, queryParams, headerParams, null, errorDefinitions)];
});
});
};
return UpsServiceClient;

@@ -823,0 +916,0 @@ }(services.BaseServiceClient));

2

package.json
{
"name": "ask-sdk-model",
"version": "1.4.1",
"version": "1.5.0",
"description": "Model package for Alexa Skills Kit SDK",

@@ -5,0 +5,0 @@ "main": "index.js",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc