8000 Regenerate client from commit 584212d of spec repo (#23) · arduino/iot-client-js@6d02273 · GitHub
[go: up one dir, main page]

Skip to content
Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6d02273

Browse files
github-actions[bot]Fabrizio Mirabito
authored and
Fabrizio Mirabito
committed
Regenerate client from commit 584212d of spec repo (#23)
1 parent d503ade commit 6d02273

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+48
-46
lines changed

.apigentools-info

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
"codegen_version": "4.1.3",
55
"info_version": "1",
66
"image": null,
7-
"spec_repo_commit": "9279140"
7+
"spec_repo_commit": "584212d"
88
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@arduino/arduino-iot-client",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "Collection_of_all_public_API_endpoints_",
55
"license": "GPLv3",
66
"main": "dist/index.js",

src/ApiClient.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import querystring from "querystring";
1717

1818
/**
1919
* @module ApiClient
20-
* @version 1.0.0
20+
* @version 1.0.1
2121
*/
2222

2323
/**
@@ -444,11 +444,13 @@ class ApiClient {
444444
request.end((error, response) => {
445445
if (error) {
446446
var err = {};
447-
err.status = response.status;
448-
err.statusText = response.statusText;
449-
err.body = response.body;
450-
err.response = response;
451-
err.error = error;
447+
if (response) {
448+
err.status = response.status;
449+
err.statusText = response.statusText;
450+
err.body = response.body;
451+
err.response = response;
452+
err.error = error;
453+
}
452454

453455
reject(err);
454456
} else {

src/api/DevicesV2Api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import PropertiesValues from '../model/PropertiesValues';
2424
/**
2525
* DevicesV2 service.
2626
* @module api/DevicesV2Api
27-
* @version 1.0.0
27+
* @version 1.0.1
2828
*/
2929
export default class DevicesV2Api {
3030

src/api/PropertiesV2Api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import PropertyValue from '../model/PropertyValue';
2121
/**
2222
* PropertiesV2 service.
2323
* @module api/PropertiesV2Api
24-
* @version 1.0.0
24+
* @version 1.0.1
2525
*/
2626
export default class PropertiesV2Api {
2727

src/api/SeriesV2Api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import Error from '../model/Error';
2424
/**
2525
* SeriesV2 service.
2626
* @module api/SeriesV2Api
27-
* @version 1.0.0
27+
* @version 1.0.1
2828
*/
2929
export default class SeriesV2Api {
3030

src/api/ThingsV2Api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import ThingSketch from '../model/ThingSketch';
2222
/**
2323
* ThingsV2 service.
2424
* @module api/ThingsV2Api
25-
* @version 1.0.0
25+
* @version 1.0.1
2626
*/
2727
export default class ThingsV2Api {
2828

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ import ThingsV2Api from './api/ThingsV2Api';
8181
* </pre>
8282
* </p>
8383
* @module index
84-
* @version 1.0.0
84+
* @version 1.0.1
8585
*/
8686
export {
8787
/**

src/model/ArduinoDevicev2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import ArduinoDevicev2Webhook from './ArduinoDevicev2Webhook';
1717
/**
1818
* The ArduinoDevicev2 model module.
1919
* @module model/ArduinoDevicev2
20-
* @version 1.0.0
20+
* @version 1.0.1
2121
*/
2222
class ArduinoDevicev2 {
2323
/**

src/model/ArduinoDevicev2Webhook.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
1616
/**
1717
* The ArduinoDevicev2Webhook model module.
1818
* @module model/ArduinoDevicev2Webhook
19-
* @version 1.0.0
19+
* @version 1.0.1
2020
*/
2121
class ArduinoDevicev2Webhook {
2222
/**

src/model/ArduinoDevicev2properties.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import ArduinoProperty from './ArduinoProperty';
1717
/**
1818
* The ArduinoDevicev2properties model module.
1919
* @module model/ArduinoDevicev2properties
20-
* @version 1.0.0
20+
* @version 1.0.1
2121
*/
2222
class ArduinoDevicev2properties {
2323
/**

src/model/ArduinoDevicev2propertyvalue.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import ArduinoDevicev2propertyvalueValue from './ArduinoDevicev2propertyvalueVal
1717
/**
1818
* The ArduinoDevicev2propertyvalue model module.
1919
* @module model/ArduinoDevicev2propertyvalue
20-
* @version 1.0.0
20+
* @version 1.0.1
2121
*/
2222
class ArduinoDevicev2propertyvalue {
2323
/**

src/model/ArduinoDevicev2propertyvalueValue.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import ArduinoDevicev2propertyvalueValueStatistics from './ArduinoDevicev2proper
1717
/**
1818
* The ArduinoDevicev2propertyvalueValue model module.
1919
* @module model/ArduinoDevicev2propertyvalueValue
20-
* @version 1.0.0
20+
* @version 1.0.1
2121
*/
2222
class ArduinoDevicev2propertyvalueValue {
2323
/**

src/model/ArduinoDevicev2propertyvalueValueStatistics.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
1616
/**
1717
* The ArduinoDevicev2propertyvalueValueStatistics model module.
1818
* @module model/ArduinoDevicev2propertyvalueValueStatistics
19-
* @version 1.0.0
19+
* @version 1.0.1
2020
*/
2121
class ArduinoDevicev2propertyvalueValueStatistics {
2222
/**

src/model/ArduinoDevicev2propertyvalues.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import ArduinoDevicev2propertyvaluesLastEvaluatedKey from './ArduinoDevicev2prop
1818
/**
1919
* The ArduinoDevicev2propertyvalues model module.
2020
* @module model/ArduinoDevicev2propertyvalues
21-
* @version 1.0.0
21+
* @version 1.0.1
2222
*/
2323
class ArduinoDevicev2propertyvalues {
2424
/**

src/model/ArduinoDevicev2propertyvaluesLastEvaluatedKey.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
1616
/**
1717
* The ArduinoDevicev2propertyvaluesLastEvaluatedKey model module.
1818
* @module model/ArduinoDevicev2propertyvaluesLastEvaluatedKey
19-
* @version 1.0.0
19+
* @version 1.0.1
2020
*/
2121
class ArduinoDevicev2propertyvaluesLastEvaluatedKey {
2222
/**

src/model/ArduinoProperty.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
1616
/**
1717
* The ArduinoProperty model module.
1818
* @module model/ArduinoProperty
19-
* @version 1.0.0
19+
* @version 1.0.1
2020
*/
2121
class ArduinoProperty {
2222
/**

src/model/ArduinoSeriesBatch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import ArduinoSeriesResponse from './ArduinoSeriesResponse';
1717
/**
1818
* The ArduinoSeriesBatch model module.
1919
* @module model/ArduinoSeriesBatch
20-
* @version 1.0.0
20+
* @version 1.0.1
2121
*/
2222
class ArduinoSeriesBatch {
2323
/**

src/model/ArduinoSeriesRawBatch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import ArduinoSeriesRawResponse from './ArduinoSeriesRawResponse';
1717
/**
1818
* The ArduinoSeriesRawBatch model module.
1919
* @module model/ArduinoSeriesRawBatch
20-
* @version 1.0.0
20+
* @version 1.0.1
2121
*/
2222
class ArduinoSeriesRawBatch {
2323
/**

src/model/ArduinoSeriesRawBatchLastvalue.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import ArduinoSeriesRawLastValueResponse from './ArduinoSeriesRawLastValueRespon
1717
/**
1818
* The ArduinoSeriesRawBatchLastvalue model module.
1919
* @module model/ArduinoSeriesRawBatchLastvalue
20-
* @version 1.0.0
20+
* @version 1.0.1
2121
*/
2222
class ArduinoSeriesRawBatchLastvalue {
2323
/**

src/model/ArduinoSeriesRawLastValueResponse.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
1616
/**
1717
* The ArduinoSeriesRawLastValueResponse model module.
1818
* @module model/ArduinoSeriesRawLastValueResponse
19-
* @version 1.0.0
19+
* @version 1.0.1
2020
*/
2121
class ArduinoSeriesRawLastValueResponse {
2222
/**

src/model/ArduinoSeriesRawResponse.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import BatchQueryRawResponseSeriesMediaV1 from './BatchQueryRawResponseSeriesMed
1717
/**
1818
* The ArduinoSeriesRawResponse model module.
1919
* @module model/ArduinoSeriesRawResponse
20-
* @version 1.0.0
20+
* @version 1.0.1
2121
*/
2222
class ArduinoSeriesRawResponse {
2323
/**

src/model/ArduinoSeriesResponse.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
1616
/**
1717
* The ArduinoSeriesResponse model module.
1818
* @module model/ArduinoSeriesResponse
19-
* @version 1.0.0
19+
* @version 1.0.1
2020
*/
2121
class ArduinoSeriesResponse {
2222
/**

src/model/ArduinoThing.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import ArduinoProperty from './ArduinoProperty';
1717
/**
1818
* The ArduinoThing model module.
1919
* @module model/ArduinoThing
20-
* @version 1.0.0
20+
* @version 1.0.1
2121
*/
2222
class ArduinoThing {
2323
/**

src/model/BatchLastValueRequestsMediaV1.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import BatchQueryRawLastValueRequestMediaV1 from './BatchQueryRawLastValueReques
1717
/**
1818
* The BatchLastValueRequestsMediaV1 model module.
1919
* @module model/BatchLastValueRequestsMediaV1
20-
* @version 1.0.0
20+
* @version 1.0.1
2121
*/
2222
class BatchLastValueRequestsMediaV1 {
2323
/**

src/model/BatchQueryRawLastValueRequestMediaV1.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
1616
/**
1717
* The BatchQueryRawLastValueRequestMediaV1 model module.
1818
* @module model/BatchQueryRawLastValueRequestMediaV1
19-
* @version 1.0.0
19+
* @version 1.0.1
2020
*/
2121
class BatchQueryRawLastValueRequestMediaV1 {
2222
/**

src/model/BatchQueryRawRequestMediaV1.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
1616
/**
1717
* The BatchQueryRawRequestMediaV1 model module.
1818
* @module model/BatchQueryRawRequestMediaV1
19-
* @version 1.0.0
19+
* @version 1.0.1
2020
*/
2121
class BatchQueryRawRequestMediaV1 {
2222
/**

src/model/BatchQueryRawRequestsMediaV1.js

Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import BatchQueryRawRequestMediaV1 from './BatchQueryRawRequestMediaV1';
1717
/**
1818
* The BatchQueryRawRequestsMediaV1 model module.
1919
* @module model/BatchQueryRawRequestsMediaV1
20-
* @version 1.0.0
20+
* @version 1.0.1
2121
*/
2222
class BatchQueryRawRequestsMediaV1 {
2323
/**
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
1616
/**
1717
* The BatchQueryRawResponseSeriesMediaV1 model module.
1818
* @module model/BatchQueryRawResponseSeriesMediaV1
19-
* @version 1.0.0
19+
* @version 1.0.1
2020
*/
2121
class BatchQueryRawResponseSeriesMediaV1 {
2222
/**
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
1616
/**
1717
* The BatchQueryRequestMediaV1 model module.
1818
* @module model/BatchQueryRequestMediaV1
19-
* @version 1.0.0
19+
* @version 1.0.1
2020
*/
2121
class BatchQueryRequestMediaV1 {
2222
/**
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import BatchQueryRequestMediaV1 from './BatchQueryRequestMediaV1';
1717
/**
1818
* The BatchQueryRequestsMediaV1 model module.
1919
* @module model/BatchQueryRequestsMediaV1
20-
* @version 1.0.0
20+
* @version 1.0.1
2121
*/
2222
class BatchQueryRequestsMediaV1 {
2323
/**
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
1616
/**
1717
* The CreateDevicesV2Payload model module.
1818
* @module model/CreateDevicesV2Payload
19-
* @version 1.0.0
19+
* @version 1.0.1
2020
*/
2121
class CreateDevicesV2Payload {
2222
/**
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
1616
/**
1717
* The CreateThingsV2Payload model module.
1818
* @module model/CreateThingsV2Payload
19-
* @version 1.0.0
19+
* @version 1.0.1
2020
*/
2121
class CreateThingsV2Payload {
2222
/**
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
1616
/**
1717
* The Devicev2 model module.
1818
* @module model/Devicev2
19-
* @version 1.0.0
19+
* @version 1.0.1
2020
*/
2121
class Devicev2 {
2222
/**
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
1616
/**
1717
* The Error model module.
1818
* @module model/Error
19-
* @version 1.0.0
19+
* @version 1.0.1
2020
*/
2121
class Error {
2222
/**
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
1616
/**
1717
* The PropertiesValue model module.
1818
* @module model/PropertiesValue
19-
* @version 1.0.0
19+
* @version 1.0.1
2020
*/
2121
class PropertiesValue {
2222
/**
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import PropertiesValue from './PropertiesValue';
1717
/**
1818
* The PropertiesValues model module.
1919
* @module model/PropertiesValues
20-
* @version 1.0.0
20+
* @version 1.0.1
2121
*/
2222
class PropertiesValues {
2323
/**
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
1616
/**
1717
* The Property model module.
1818
* @module model/Property
19-
* @version 1.0.0
19+
* @version 1.0.1
2020
*/
2121
class Property {
2222
/**
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
1616
/**
1717
* The PropertyValue model module.
1818
* @module model/PropertyValue
19-
* @version 1.0.0
19+
* @version 1.0.1
2020
*/
2121
class PropertyValue {
2222
/**
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
1616
/**
1717
* The Thing model module.
1818
* @module model/Thing
19-
* @version 1.0.0
19+
* @version 1.0.1
2020
*/
2121
class Thing {
2222
/**
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
1616
/**
1717
* The ThingSketch model module.
1818
* @module model/ThingSketch
19-
* @version 1.0.0
19+
* @version 1.0.1
2020
*/
2121
class ThingSketch {
2222
/**