ask-sdk-model
Advanced tools
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)); |
{ | ||
"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
176937
3334