@@ -27,7 +27,7 @@ import HistoricDataRequest from '../model/HistoricDataRequest';
27
27
/**
28
28
* SeriesV2 service.
29
29
* @module api/SeriesV2Api
30
- * @version 2.0.4
30
+ * @version 2.0.5
31
31
*/
32
32
export default class SeriesV2Api {
33
33
@@ -48,9 +48,12 @@ export default class SeriesV2Api {
48
48
* batch_query series_v2
49
49
* Returns the batch of time-series aggregated samples
50
50
* @param {module:model/BatchQueryRequestsMediaV1 } batchQueryRequestsMediaV1
51
+ * @param {Object } opts Optional parameters
52
+ * @param {String } [xOrganization]
51
53
* @return {Promise } a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ArduinoSeriesBatch} and HTTP response
52
54
*/
53
- seriesV2BatchQueryWithHttpInfo ( batchQueryRequestsMediaV1 ) {
55
+ seriesV2BatchQueryWithHttpInfo ( batchQueryRequestsMediaV1 , opts ) {
56
+ opts = opts || { } ;
54
57
let postBody = batchQueryRequestsMediaV1 ;
55
58
// verify the required parameter 'batchQueryRequestsMediaV1' is set
56
59
if ( batchQueryRequestsMediaV1 === undefined || batchQueryRequestsMediaV1 === null ) {
@@ -62,6 +65,7 @@ export default class SeriesV2Api {
62
65
let queryParams = {
63
66
} ;
64
67
let headerParams = {
68
+ 'X-Organization' : opts [ 'xOrganization' ]
65
69
} ;
66
70
let formParams = {
67
71
} ;
@@ -81,10 +85,12 @@ export default class SeriesV2Api {
81
85
* batch_query series_v2
82
86
* Returns the batch of time-series aggregated samples
83
87
* @param {module:model/BatchQueryRequestsMediaV1 } batchQueryRequestsMediaV1
88
+ * @param {Object } opts Optional parameters
89
+ * @param {String } opts.xOrganization
84
90
* @return {Promise } a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ArduinoSeriesBatch}
85
91
*/
86
- seriesV2BatchQuery ( batchQueryRequestsMediaV1 ) {
87
- return this . seriesV2BatchQueryWithHttpInfo ( batchQueryRequestsMediaV1 )
92
+ seriesV2BatchQuery ( batchQueryRequestsMediaV1 , opts ) {
93
+ return this . seriesV2BatchQueryWithHttpInfo ( batchQueryRequestsMediaV1 , opts )
88
94
. then ( function ( response_and_data ) {
89
95
return response_and_data . data ;
90
96
} ) ;
@@ -95,9 +101,12 @@ export default class SeriesV2Api {
95
101
* batch_query_raw series_v2
96
102
* Returns the batch of time-series raw samples
97
103
* @param {module:model/BatchQueryRawRequestsMediaV1 } batchQueryRawRequestsMediaV1
104
+ * @param {Object } opts Optional parameters
105
+ * @param {String } [xOrganization]
98
106
* @return {Promise } a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ArduinoSeriesRawBatch} and HTTP response
99
107
*/
100
- seriesV2BatchQueryRawWithHttpInfo ( batchQueryRawRequestsMediaV1 ) {
108
+ seriesV2BatchQueryRawWithHttpInfo ( batchQueryRawRequestsMediaV1 , opts ) {
109
+ opts = opts || { } ;
101
110
let postBody = batchQueryRawRequestsMediaV1 ;
102
111
// verify the required parameter 'batchQueryRawRequestsMediaV1' is set
103
112
if ( batchQueryRawRequestsMediaV1 === undefined || batchQueryRawRequestsMediaV1 === null ) {
@@ -109,6 +118,7 @@ export default class SeriesV2Api {
109
118
let queryParams = {
110
119
} ;
111
120
let headerParams = {
121
+ 'X-Organization' : opts [ 'xOrganization' ]
112
122
} ;
113
123
let formParams = {
114
124
} ;
@@ -128,10 +138,12 @@ export default class SeriesV2Api {
128
138
* batch_query_raw series_v2
129
139
* Returns the batch of time-series raw samples
130
140
* @param {module:model/BatchQueryRawRequestsMediaV1 } batchQueryRawRequestsMediaV1
141
+ * @param {Object } opts Optional parameters
142
+ * @param {String } opts.xOrganization
131
143
* @return {Promise } a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ArduinoSeriesRawBatch}
132
144
*/
133
- seriesV2BatchQueryRaw ( batchQueryRawRequestsMediaV1 ) {
134
- return this . seriesV2BatchQueryRawWithHttpInfo ( batchQueryRawRequestsMediaV1 )
145
+ seriesV2BatchQueryRaw ( batchQueryRawRequestsMediaV1 , opts ) {
146
+ return this . seriesV2BatchQueryRawWithHttpInfo ( batchQueryRawRequestsMediaV1 , opts )
135
147
. then ( function ( response_and_data ) {
136
148
return response_and_data . data ;
137
149
} ) ;
@@ -142,9 +154,12 @@ export default class SeriesV2Api {
142
154
* batch_query_raw_last_value series_v2
143
155
* Returns the batch of time-series data raw
144
156
* @param {module:model/BatchLastValueRequestsMediaV1 } batchLastValueRequestsMediaV1
157
+ * @param {Object } opts Optional parameters
158
+ * @param {String } [xOrganization]
145
159
* @return {Promise } a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ArduinoSeriesRawBatchLastvalue} and HTTP response
146
160
*/
147
- seriesV2BatchQueryRawLastValueWithHttpInfo ( batchLastValueRequestsMediaV1 ) {
161
+ seriesV2BatchQueryRawLastValueWithHttpInfo ( batchLastValueRequestsMediaV1 , opts ) {
162
+ opts = opts || { } ;
148
163
let postBody = batchLastValueRequestsMediaV1 ;
149
164
// verify the required parameter 'batchLastValueRequestsMediaV1' is set
150
165
if ( batchLastValueRequestsMediaV1 === undefined || batchLastValueRequestsMediaV1 === null ) {
@@ -156,6 +171,7 @@ export default class SeriesV2Api {
156
171
let queryParams = {
157
172
} ;
158
173
let headerParams = {
174
+ 'X-Organization' : opts [ 'xOrganization' ]
159
175
} ;
160
176
let formParams = {
161
177
} ;
@@ -175,10 +191,12 @@ export default class SeriesV2Api {
175
191
* batch_query_raw_last_value series_v2
176
192
* Returns the batch of time-series data raw
177
193
* @param {module:model/BatchLastValueRequestsMediaV1 } batchLastValueRequestsMediaV1
194
+ * @param {Object } opts Optional parameters
195
+ * @param {String } opts.xOrganization
178
196
* @return {Promise } a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ArduinoSeriesRawBatchLastvalue}
179
197
*/
180
- seriesV2BatchQueryRawLastValue ( batchLastValueRequestsMediaV1 ) {
181
- return this . seriesV2BatchQueryRawLastValueWithHttpInfo ( batchLastValueRequestsMediaV1 )
198
+ seriesV2BatchQueryRawLastValue ( batchLastValueRequestsMediaV1 , opts ) {
199
+ return this . seriesV2BatchQueryRawLastValueWithHttpInfo ( batchLastValueRequestsMediaV1 , opts )
182
200
. then ( function ( response_and_data ) {
183
201
return response_and_data . data ;
184
202
} ) ;
@@ -189,9 +207,12 @@ export default class SeriesV2Api {
189
207
* batch_query_sampling series_v2
190
208
* Returns a batch of time-series sampled samples. To be used for types that does not support mathematic aggregation. Types supported: strings, complex types.
191
209
* @param {module:model/BatchQuerySampledRequestsMediaV1 } batchQuerySampledRequestsMediaV1
210
+ * @param {Object } opts Optional parameters
211
+ * @param {String } [xOrganization]
192
212
* @return {Promise } a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ArduinoSeriesBatchSampled} and HTTP response
193
213
*/
194
- seriesV2BatchQuerySamplingWithHttpInfo ( batchQuerySampledRequestsMediaV1 ) {
214
+ seriesV2BatchQuerySamplingWithHttpInfo ( batchQuerySampledRequestsMediaV1 , opts ) {
215
+ opts = opts || { } ;
195
216
let postBody = batchQuerySampledRequestsMediaV1 ;
196
217
// verify the required parameter 'batchQuerySampledRequestsMediaV1' is set
197
218
if ( batchQuerySampledRequestsMediaV1 === undefined || batchQuerySampledRequestsMediaV1 === null ) {
@@ -203,6 +224,7 @@ export default class SeriesV2Api {
203
224
let queryParams = {
204
225
} ;
205
226
let headerParams = {
227
+ 'X-Organization' : opts [ 'xOrganization' ]
206
228
} ;
207
229
let formParams = {
208
230
} ;
@@ -222,10 +244,12 @@ export default class SeriesV2Api {
222
244
* batch_query_sampling series_v2
223
245
* Returns a batch of time-series sampled samples. To be used for types that does not support mathematic aggregation. Types supported: strings, complex types.
224
246
* @param {module:model/BatchQuerySampledRequestsMediaV1 } batchQuerySampledRequestsMediaV1
247
+ * @param {Object } opts Optional parameters
248
+ * @param {String } opts.xOrganization
225
249
* @return {Promise } a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ArduinoSeriesBatchSampled}
226
250
*/
227
- seriesV2BatchQuerySampling ( batchQuerySampledRequestsMediaV1 ) {
228
- return this . seriesV2BatchQuerySamplingWithHttpInfo ( batchQuerySampledRequestsMediaV1 )
251
+ seriesV2BatchQuerySampling ( batchQuerySampledRequestsMediaV1 , opts ) {
252
+ return this . seriesV2BatchQuerySamplingWithHttpInfo ( batchQuerySampledRequestsMediaV1 , opts )
229
253
. then ( function ( response_and_data ) {
230
254
return response_and_data . data ;
231
255
} ) ;
@@ -236,9 +260,12 @@ export default class SeriesV2Api {
236
260
* historic_data series_v2
237
261
* Request sending of historical data of properties by email
238
262
* @param {module:model/HistoricDataRequest } historicDataRequest
263
+ * @param {Object } opts Optional parameters
264
+ * @param {String } [xOrganization]
239
265
* @return {Promise } a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
240
266
*/
241
- seriesV2HistoricDataWithHttpInfo ( historicDataRequest ) {
267
+ seriesV2HistoricDataWithHttpInfo ( historicDataRequest , opts ) {
268
+ opts = opts || { } ;
242
269
let postBody = historicDataRequest ;
243
270
// verify the required parameter 'historicDataRequest' is set
244
271
if ( historicDataRequest === undefined || historicDataRequest === null ) {
@@ -250,6 +277,7 @@ export default class SeriesV2Api {
250
277
let queryParams = {
251
278
} ;
252
279
let headerParams = {
280
+ 'X-Organization' : opts [ 'xOrganization' ]
253
281
} ;
254
282
let formParams = {
255
283
} ;
@@ -269,10 +297,12 @@ export default class SeriesV2Api {
269
297
* historic_data series_v2
270
298
* Request sending of historical data of properties by email
271
299
* @param {module:model/HistoricDataRequest } historicDataRequest
300
+ * @param {Object } opts Optional parameters
301
+ * @param {String } opts.xOrganization
272
302
* @return {Promise } a {@link https://www.promisejs.org/|Promise}
273
303
*/
274
- seriesV2HistoricData ( historicDataRequest ) {
275
- return this . seriesV2HistoricDataWithHttpInfo ( historicDataRequest )
304
+ seriesV2HistoricData ( historicDataRequest , opts ) {
305
+ return this . seriesV2HistoricDataWithHttpInfo ( historicDataRequest , opts )
276
306
. then ( function ( response_and_data ) {
277
307
return response_and_data . data ;
278
308
} ) ;
0 commit comments