8000 Regenerate client from commit 138c42b of spec repo (#72) · arduino/iot-client-js@b02e9e4 · GitHub
[go: up one dir, main page]

Skip to content

Commit b02e9e4

Browse files
github-actions[bot]ArduinoBot
andauthored
Regenerate client from commit 138c42b of spec repo (#72)
Co-authored-by: ArduinoBot <arduinobot@arduino.cc>
1 parent ac8915a commit b02e9e4

File tree

92 files changed

+2343
-107
lines changed

Some content is hidden

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

92 files changed

+2343
-107
lines changed

.apigentools-info

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"spec_versions": {
55
"v2": {
66
"apigentools_version": "1.1.0",
7-
"regenerated": "2023-09-22 12:42:20.430633",
8-
"spec_repo_commit": "4c87660"
7+
"regenerated": "2024-01-31 14:24:49.551850",
8+
"spec_repo_commit": "138c42b"
99
}
1010
}
1111
}

.openapi-generator/FILES

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,14 @@ docs/ArduinoCompressedv2.md
66
docs/ArduinoDashboardowner.md
77
docs/ArduinoDashboardshare.md
88
docs/ArduinoDashboardv2.md
9+
docs/ArduinoDashboardv2template.md
910
docs/ArduinoDevicev2.md
1011
docs/ArduinoDevicev2Cert.md
1112
docs/ArduinoDevicev2EventProperties.md
1213
docs/ArduinoDevicev2Pass.md
1314
docs/ArduinoDevicev2SimpleProperties.md
15+
docs/ArduinoDevicev2StatusEvent.md
16+
docs/ArduinoDevicev2StatusEvents.md
1417
docs/ArduinoDevicev2Webhook.md
1518
docs/ArduinoDevicev2properties.md
1619
docs/ArduinoDevicev2propertyvalue.md
@@ -30,11 +33,15 @@ docs/ArduinoSeriesRawLastValueResponse.md
3033
docs/ArduinoSeriesRawResponse.md
3134
docs/ArduinoSeriesResponse.md
3235
docs/ArduinoTags.md
36+
docs/ArduinoTemplateproperty.md
37+
docs/ArduinoTemplatevariable.md
3338
docs/ArduinoThing.md
39+
docs/ArduinoThingtemplate.md
3440
docs/ArduinoTimeseriesmedia.md
3541
docs/ArduinoTimezone.md
3642
docs/ArduinoVariableslinks.md
3743
docs/ArduinoWidgetv2.md
44+
docs/ArduinoWidgetv2template.md
3845
docs/BatchLastValueRequestsMediaV1.md
3946
docs/BatchQueryRawLastValueRequestMediaV1.md
4047
docs/BatchQueryRawRequestMediaV1.md
@@ -43,6 +50,7 @@ docs/BatchQueryRawResponseSeriesMediaV1.md
4350
docs/BatchQueryRequestMediaV1.md
4451
docs/BatchQueryRequestsMediaV1.md
4552
docs/CheckDevicesV2PassPayload.md
53+
docs/Clone.md
4654
docs/CreateDevicesV2CertsPayload.md
4755
docs/CreateDevicesV2Payload.md
4856
docs/CreateLoraDevicesV1Payload.md
@@ -62,6 +70,7 @@ docs/Error.md
6270
docs/HistoricDataRequest.md
6371
docs/LoraDevicesV1Api.md
6472
docs/LoraFreqPlanV1Api.md
73+
docs/Override.md
6574
docs/PropertiesV2Api.md
6675
docs/PropertiesValue.md
6776
docs/PropertiesValues.md
@@ -70,6 +79,7 @@ docs/PropertyValue.md
7079
docs/SeriesV2Api.md
7180
docs/Sharerequest.md
7281
docs/Tag.md
82+
docs/ThingClone.md
7383
docs/ThingCreate.md
7484
docs/ThingSketch.md
7585
docs/ThingUpdate.md
@@ -100,11 +110,14 @@ src/model/ArduinoCompressedv2.js
100110
src/model/ArduinoDashboardowner.js
101111
src/model/ArduinoDashboardshare.js
102112
src/model/ArduinoDashboardv2.js
< 67E6 code>113+
src/model/ArduinoDashboardv2template.js
103114
src/model/ArduinoDevicev2.js
104115
src/model/ArduinoDevicev2Cert.js
105116
src/model/ArduinoDevicev2EventProperties.js
106117
src/model/ArduinoDevicev2Pass.js
107118
src/model/ArduinoDevicev2SimpleProperties.js
119+
src/model/ArduinoDevicev2StatusEvent.js
120+
src/model/ArduinoDevicev2StatusEvents.js
108121
src/model/ArduinoDevicev2Webhook.js
109122
src/model/ArduinoDevicev2properties.js
110123
src/model/ArduinoDevicev2propertyvalue.js
@@ -124,11 +137,15 @@ src/model/ArduinoSeriesRawLastValueResponse.js
124137
src/model/ArduinoSeriesRawResponse.js
125138
src/model/ArduinoSeriesResponse.js
126139
src/model/ArduinoTags.js
140+
src/model/ArduinoTemplateproperty.js
141+
src/model/ArduinoTemplatevariable.js
127142
src/model/ArduinoThing.js
143+
src/model/ArduinoThingtemplate.js
128144
src/model/ArduinoTimeseriesmedia.js
129145
src/model/ArduinoTimezone.js
130146
src/model/ArduinoVariableslinks.js
131147
src/model/ArduinoWidgetv2.js
148+
src/model/ArduinoWidgetv2template.js
132149
src/model/BatchLastValueRequestsMediaV1.js
133150
src/model/BatchQueryRawLastValueRequestMediaV1.js
134151
src/model/BatchQueryRawRequestMediaV1.js
@@ -137,6 +154,7 @@ src/model/BatchQueryRawResponseSeriesMediaV1.js
137154
src/model/BatchQueryRequestMediaV1.js
138155
src/model/BatchQueryRequestsMediaV1.js
139156
src/model/CheckDevicesV2PassPayload.js
157+
src/model/Clone.js
140158
src/model/CreateDevicesV2CertsPayload.js
141159
src/model/CreateDevicesV2Payload.js
142160
src/model/CreateLoraDevicesV1Payload.js
@@ -148,12 +166,14 @@ src/model/Devicev2Otabinaryurl.js
148166
src/model/Devicev2Pass.js
149167
src/model/Error.js
150168
src/model/HistoricDataRequest.js
169+
src/model/Override.js
151170
src/model/PropertiesValue.js
152171
src/model/PropertiesValues.js
153172
src/model/Property.js
154173
src/model/PropertyValue.js
155174
src/model/Sharerequest.js
156175
src/model/Tag.js
176+
src/model/ThingClone.js
157177
src/model/ThingCreate.js
158178
src/model/ThingSketch.js
159179
src/model/ThingUpdate.js
@@ -177,11 +197,14 @@ test/model/ArduinoCompressedv2.spec.js
177197
test/model/ArduinoDashboardowner.spec.js
178198
test/model/ArduinoDashboardshare.spec.js
179199
test/model/ArduinoDashboardv2.spec.js
200+
test/model/ArduinoDashboardv2template.spec.js
180201
test/model/ArduinoDevicev2.spec.js
181202
test/model/ArduinoDevicev2Cert.spec.js
182203
test/model/ArduinoDevicev2EventProperties.spec.js
183204
test/model/ArduinoDevicev2Pass.spec.js
184205
test/model/ArduinoDevicev2SimpleProperties.spec.js
206+
test/model/ArduinoDevicev2StatusEvent.spec.js
207+
test/model/ArduinoDevicev2StatusEvents.spec.js
185208
test/model/ArduinoDevicev2Webhook.spec.js
186209
test/model/ArduinoDevicev2properties.spec.js
187210
test/model/ArduinoDevicev2propertyvalue.spec.js
@@ -201,11 +224,15 @@ test/model/ArduinoSeriesRawLastValueResponse.spec.js
201224
test/model/ArduinoSeriesRawResponse.spec.js
202225
test/model/ArduinoSeriesResponse.spec.js
203226
test/model/ArduinoTags.spec.js
227+
test/model/ArduinoTemplateproperty.spec.js
228+
test/model/ArduinoTemplatevariable.spec.js
204229
test/model/ArduinoThing.spec.js
230+
test/model/ArduinoThingtemplate.spec.js
205231
test/model/ArduinoTimeseriesmedia.spec.js
206232
test/model/ArduinoTimezone.spec.js
207233
test/model/ArduinoVariableslinks.spec.js
208234
test/model/ArduinoWidgetv2.spec.js
235+
test/model/ArduinoWidgetv2template.spec.js
209236
test/model/BatchLastValueRequestsMediaV1.spec.js
210237
test/model/BatchQueryRawLastValueRequestMediaV1.spec.js
211238
test/model/BatchQueryRawRequestMediaV1.spec.js
@@ -214,6 +241,7 @@ test/model/BatchQueryRawResponseSeriesMediaV1.spec.js
214241
test/model/BatchQueryRequestMediaV1.spec.js
215242
test/model/BatchQueryRequestsMediaV1.spec.js
216243
test/model/CheckDevicesV2PassPayload.spec.js
244+
test/model/Clone.spec.js
217245
test/model/CreateDevicesV2CertsPayload.spec.js
218246
test/model/CreateDevicesV2Payload.spec.js
219247
test/model/CreateLoraDevicesV1Payload.spec.js
@@ -225,12 +253,14 @@ test/model/Devicev2Otabinaryurl.spec.js
225253
test/model/Devicev2Pass.spec.js
226254
test/model/Error.spec.js
227255
test/model/HistoricDataRequest.spec.js
256+
test/model/Override.spec.js
228257
test/model/PropertiesValue.spec.js
229258
test/model/PropertiesValues.spec.js
230259
test/model/Property.spec.js
231260
test/model/PropertyValue.spec.js
232261
test/model/Sharerequest.spec.js
233262
test/model/Tag.spec.js
263+
test/model/ThingClone.spec.js
234264
test/model/ThingCreate.spec.js
235265
test/model/ThingSketch.spec.js
236266
test/model/ThingUpdate.spec.js

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": "2.0.0",
3+
"version": "2.0.1",
44
"description": " Provides a set of endpoints to manage Arduino IoT Cloud **Devices**, **Things**, **Properties** and **Timeseries**. This API can be called just with any HTTP Client, or using one of these clients: * [Javascript NPM package](https://www.npmjs.com/package/@arduino/arduino-iot-client) * [Python PYPI Package](https://pypi.org/project/arduino-iot-client/) * [Golang Module](https://github.com/arduino/iot-client-go)",
55
"license": "GPLv3",
66
"main": "dist/index.js",

src/ApiClient.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import querystring from "querystring";
1717

1818
/**
1919
* @module ApiClient
20-
* @version 2.0.0
20+
* @version 2.0.1
2121
*/
2222

2323
/**

src/api/DashboardsV2Api.js

Lines changed: 117 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
import ApiClient from "../ApiClient";
1616
import ArduinoDashboardshare from '../model/ArduinoDashboardshare';
1717
import ArduinoDashboardv2 from '../model/ArduinoDashboardv2';
18+
import ArduinoDashboardv2template from '../model/ArduinoDashboardv2template';
1819
import ArduinoVariableslinks from '../model/ArduinoVariableslinks';
20+
import Clone from '../model/Clone';
1921
import Dashboardshare from '../model/Dashboardshare';
2022
import Dashboardv2 from '../model/Dashboardv2';
2123
import Error from '../model/Error';
@@ -25,7 +27,7 @@ import Widgetlink from '../model/Widgetlink';
2527
/**
2628
* DashboardsV2 service.
2729
* @module api/DashboardsV2Api
28-
* @version 2.0.0
30+
* @version 2.0.1
2931
*/
3032
export default class DashboardsV2Api {
3133

@@ -42,6 +44,66 @@ export default class DashboardsV2Api {
4244

4345

4446

47+
/**
48+
* clone dashboards_v2
49+
* Clone an existing dashboard
50+
* @param {String} id The id of the dashboard
51+
* @param {module:model/Clone} clone
52+
* @param {Object} opts Optional parameters
53+
* @param {String} [xOrganization]
54+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ArduinoDashboardv2} and HTTP response
55+
*/
56+
dashboardsV2CloneWithHttpInfo(id, clone, opts) {
57+
opts = opts || {};
58+
let postBody = clone;
59+
// verify the required parameter 'id' is set
60+
if (id === undefined || id === null) {
61+
throw new Error("Missing the required parameter 'id' when calling dashboardsV2Clone");
62+
}
63+
// verify the required parameter 'clone' is set
64+
if (clone === undefined || clone === null) {
65+
throw new Error("Missing the required parameter 'clone' when calling dashboardsV2Clone");
66+
}
67+
68+
let pathParams = {
69+
'id': id
70+
};
71+
let queryParams = {
72+
};
73+
let headerParams = {
74+
'X-Organization': opts['xOrganization']
75+
};
76+
let formParams = {
77+
};
78+
79+
let authNames = ['oauth2'];
80+
let contentTypes = ['application/json', 'application/x-www-form-urlencoded'];
81+
let accepts = ['application/vnd.arduino.dashboardv2+json', 'application/vnd.goa.error+json'];
82+
let returnType = ArduinoDashboardv2;
83+
return this.apiClient.callApi(
84+
'/v2/dashboards/{id}/clone', 'PUT',
85+
pathParams, queryParams, headerParams, formParams, postBody,
86+
authNames, contentTypes, accepts, returnType, null
87+
);
88+
}
89+
90+
/**
91+
* clone dashboards_v2
92+
* Clone an existing dashboard
93+
* @param {String} id The id of the dashboard
94+
* @param {module:model/Clone} clone
95+
* @param {Object} opts Optional parameters
96+
* @param {String} opts.xOrganization
97+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ArduinoDashboardv2}
98+
*/
99+
dashboardsV2Clone(id, clone, opts) {
100+
return this.dashboardsV2CloneWithHttpInfo(id, clone, opts)
101+
.then(function(response_and_data) {
102+
return response_and_data.data;
103+
});
104+
}
105+
106+
45107
/**
46108
* create dashboards_v2
47109
* Create a new dashboard
@@ -558,6 +620,60 @@ export default class DashboardsV2Api {
558620
}
559621

560622

623+
/**
624+
* template dashboards_v2
625+
* Get a template of the dashboard
626+
* @param {String} id The id of the dashboard
627+
* @param {Object} opts Optional parameters
628+
* @param {String} [xOrganization]
629+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ArduinoDashboardv2template} and HTTP response
630+
*/
631+
dashboardsV2TemplateWithHttpInfo(id, opts) {
632+
opts = opts || {};
633+
let postBody = null;
634+
// verify the required parameter 'id' is set
635+
if (id === undefined || id === null) {
636+
throw new Error("Missing the required parameter 'id' when calling dashboardsV2Template");
637+
}
638+
639+
let pathParams = {
640+
'id': id
641+
};
642+
let queryParams = {
643+
};
644+
let headerParams = {
645+
'X-Organization': opts['xOrganization']
646+
};
647+
let formParams = {
648+
};
649+
650+
let authNames = ['oauth2'];
651+
let contentTypes = [];
652+
let accepts = ['application/vnd.arduino.dashboardv2template+json', 'application/vnd.goa.error+json'];
653+
let returnType = ArduinoDashboardv2template;
654+
return this.apiClient.callApi(
655+
'/v2/dashboards/{id}/template', 'GET',
656+
pathParams, queryParams, headerParams, formParams, postBody,
657+
authNames, contentTypes, accepts, returnType, null
658+
);
659+
}
660+
661+
/**
662+
* template dashboards_v2
663+
* Get a template of the dashboard
664+
* @param {String} id The id of the dashboard
665+
* @param {Object} opts Optional parameters
666+
* @param {String} opts.xOrganization
667+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ArduinoDashboardv2template}
668+
*/
669+
dashboardsV2Template(id, opts) {
670+
return this.dashboardsV2TemplateWithHttpInfo(id, opts)
671+
.then(function(response_and_data) {
672+
return response_and_data.data;
673+
});
674+
}
675+
676+
561677
/**
562678
* update dashboards_v2
563679
* Updates an existing dashboard

0 commit comments

Comments
 (0)
0