@blues-inc/notehub-js 1.0.35-beta.4 → 1.0.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +222 -234
- package/dist/ApiClient.js +156 -156
- package/dist/api/AlertApi.js +22 -22
- package/dist/api/AuthorizationApi.js +16 -16
- package/dist/api/BillingAccountApi.js +14 -14
- package/dist/api/DeviceApi.js +351 -351
- package/dist/api/EventApi.js +118 -118
- package/dist/api/ExternalDevicesApi.js +41 -41
- package/dist/api/MonitorApi.js +52 -52
- package/dist/api/ProjectApi.js +355 -355
- package/dist/api/RepositoryApi.js +103 -103
- package/dist/api/RouteApi.js +77 -77
- package/dist/api/WebhookApi.js +51 -51
- package/dist/index.js +0 -21
- package/dist/model/Alert.js +74 -76
- package/dist/model/AlertDataInner.js +35 -35
- package/dist/model/AlertNotificationsInner.js +18 -18
- package/dist/model/Aws.js +65 -65
- package/dist/model/Azure.js +43 -43
- package/dist/model/BillingAccount.js +21 -21
- package/dist/model/BillingAccountRole.js +9 -9
- package/dist/model/Body.js +5 -5
- package/dist/model/CloneProjectRequest.js +20 -20
- package/dist/model/Contact.js +22 -22
- package/dist/model/CreateFleetRequest.js +12 -12
- package/dist/model/CreateMonitor.js +125 -126
- package/dist/model/CreateProductRequest.js +22 -22
- package/dist/model/CreateProjectRequest.js +16 -16
- package/dist/model/CreateUpdateRepository.js +17 -17
- package/dist/model/CurrentFirmware.js +12 -12
- package/dist/model/DFUEnv.js +12 -12
- package/dist/model/DFUState.js +65 -65
- package/dist/model/DataField.js +7 -7
- package/dist/model/DataSet.js +29 -30
- package/dist/model/DataSetField.js +19 -19
- package/dist/model/DeleteDeviceFleetsRequest.js +8 -8
- package/dist/model/Device.js +101 -102
- package/dist/model/DeviceDfuHistory.js +19 -20
- package/dist/model/DeviceDfuHistoryPage.js +12 -13
- package/dist/model/DeviceDfuStateMachine.js +24 -25
- package/dist/model/DeviceDfuStateMachineNode.js +22 -22
- package/dist/model/DeviceDfuStatus.js +20 -20
- package/dist/model/DeviceDfuStatusCurrent.js +32 -32
- package/dist/model/DeviceDfuStatusPage.js +12 -13
- package/dist/model/DeviceSession.js +221 -221
- package/dist/model/DeviceTowerInfo.js +14 -14
- package/dist/model/DeviceUsage.js +32 -32
- package/dist/model/DfuActionRequest.js +7 -7
- package/dist/model/EmailNotification.js +7 -7
- package/dist/model/EnvironmentVariables.js +8 -8
- package/dist/model/Error.js +31 -31
- package/dist/model/Event.js +248 -248
- package/dist/model/Firmware.js +49 -49
- package/dist/model/FirmwareInfo.js +60 -60
- package/dist/model/Fleet.js +27 -27
- package/dist/model/GetAlerts200Response.js +14 -15
- package/dist/model/GetBillingAccounts200Response.js +9 -10
- package/dist/model/GetDeviceEnvironmentVariables200Response.js +16 -16
- package/dist/model/GetDeviceHealthLog200Response.js +11 -12
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +19 -19
- package/dist/model/GetDeviceLatest200Response.js +9 -10
- package/dist/model/GetDevicePublicKey200Response.js +16 -16
- package/dist/model/GetDeviceSessions200Response.js +16 -17
- package/dist/model/GetProjectDevicePublicKeys200Response.js +16 -17
- package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
- package/dist/model/GetProjectDevices200Response.js +16 -17
- package/dist/model/GetProjectEvents200Response.js +20 -21
- package/dist/model/GetProjectEventsByCursor200Response.js +23 -24
- package/dist/model/GetProjectFleets200Response.js +11 -12
- package/dist/model/GetProjectMembers200Response.js +11 -12
- package/dist/model/GetProjectProducts200Response.js +9 -10
- package/dist/model/GetProjects200Response.js +9 -10
- package/dist/model/GetWebhooks200Response.js +9 -10
- package/dist/model/Google.js +33 -33
- package/dist/model/HandleNoteChanges200Response.js +11 -11
- package/dist/model/HandleNoteGet200Response.js +13 -13
- package/dist/model/HandleNoteSignal200Response.js +5 -5
- package/dist/model/HandleNotefileChanges200Response.js +11 -11
- package/dist/model/HandleNotefileChangesPending200Response.js +14 -14
- package/dist/model/HandleNotefileDeleteRequest.js +7 -7
- package/dist/model/Http.js +35 -35
- package/dist/model/HttpFilter.js +19 -19
- package/dist/model/HttpTransform.js +20 -20
- package/dist/model/Location.js +40 -40
- package/dist/model/Login200Response.js +7 -7
- package/dist/model/LoginRequest.js +12 -12
- package/dist/model/Monitor.js +99 -100
- package/dist/model/MonitorAlertRoutesInner.js +10 -9
- package/dist/model/Mqtt.js +66 -66
- package/dist/model/Note.js +10 -10
- package/dist/model/NotefileSchema.js +18 -19
- package/dist/model/NotehubRoute.js +36 -36
- package/dist/model/NotehubRouteSchema.js +46 -45
- package/dist/model/PostProvisionProjectDeviceRequest.js +18 -18
- package/dist/model/Product.js +26 -26
- package/dist/model/Project.js +34 -34
- package/dist/model/ProjectMember.js +22 -22
- package/dist/model/Proxy.js +24 -24
- package/dist/model/PutDeviceFleetsRequest.js +8 -8
- package/dist/model/QuestionDataResponseLineChart.js +39 -39
- package/dist/model/QuestionDataResponseMap.js +16 -16
- package/dist/model/Radresponder.js +25 -25
- package/dist/model/Repository.js +22 -22
- package/dist/model/Role.js +9 -9
- package/dist/model/RouteLog.js +35 -35
- package/dist/model/SchemaProperty.js +38 -40
- package/dist/model/SimUsage.js +19 -19
- package/dist/model/Slack.js +53 -53
- package/dist/model/SlackBearerNotification.js +25 -25
- package/dist/model/SlackWebHookNotification.js +20 -20
- package/dist/model/Snowflake.js +45 -45
- package/dist/model/SnowflakeTransform.js +12 -12
- package/dist/model/Thingworx.js +33 -33
- package/dist/model/TowerLocation.js +54 -54
- package/dist/model/Twilio.js +43 -43
- package/dist/model/UpdateFleetRequest.js +22 -22
- package/dist/model/UploadMetadata.js +59 -59
- package/dist/model/UserDbRoute.js +25 -25
- package/dist/model/UserDfuStateMachine.js +20 -20
- package/dist/model/UserDfuStateMachineStatus.js +20 -20
- package/dist/model/UserFirmwareInfo.js +12 -12
- package/dist/model/WebhookSettings.js +15 -15
- package/package.json +3 -3
- package/dist/api/AnalyticsApi.js +0 -102
- package/dist/model/GetEventsAnalytics200Response.js +0 -112
- package/dist/model/GetEventsAnalytics200ResponseEventsInner.js +0 -115
|
@@ -17,7 +17,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
17
17
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
18
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
19
19
|
* Notehub API
|
|
20
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
20
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
21
21
|
*
|
|
22
22
|
* The version of the OpenAPI document: 1.2.0
|
|
23
23
|
* Contact: engineering@blues.io
|
|
@@ -28,18 +28,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
*
|
|
29
29
|
*/
|
|
30
30
|
/**
|
|
31
|
-
* Repository service.
|
|
32
|
-
* @module api/RepositoryApi
|
|
33
|
-
* @version 1.0.35
|
|
34
|
-
*/
|
|
31
|
+
* Repository service.
|
|
32
|
+
* @module api/RepositoryApi
|
|
33
|
+
* @version 1.0.35
|
|
34
|
+
*/
|
|
35
35
|
var RepositoryApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
37
|
+
* Constructs a new RepositoryApi.
|
|
38
|
+
* @alias module:api/RepositoryApi
|
|
39
|
+
* @class
|
|
40
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
41
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
42
|
+
*/
|
|
43
43
|
function RepositoryApi(apiClient) {
|
|
44
44
|
_classCallCheck(this, RepositoryApi);
|
|
45
45
|
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
@@ -47,7 +47,7 @@ var RepositoryApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
49
|
* Create a new repository
|
|
50
|
-
* @param {module:model/CreateUpdateRepository} createUpdateRepository
|
|
50
|
+
* @param {module:model/CreateUpdateRepository} createUpdateRepository
|
|
51
51
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Repository} and HTTP response
|
|
52
52
|
*/
|
|
53
53
|
return _createClass(RepositoryApi, [{
|
|
@@ -62,16 +62,16 @@ var RepositoryApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
62
62
|
var queryParams = {};
|
|
63
63
|
var headerParams = {};
|
|
64
64
|
var formParams = {};
|
|
65
|
-
var authNames = [
|
|
66
|
-
var contentTypes = [
|
|
67
|
-
var accepts = [
|
|
65
|
+
var authNames = ["api_key"];
|
|
66
|
+
var contentTypes = ["application/json"];
|
|
67
|
+
var accepts = ["application/json"];
|
|
68
68
|
var returnType = _Repository["default"];
|
|
69
|
-
return this.apiClient.callApi(
|
|
69
|
+
return this.apiClient.callApi("/v1/repositories", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
/**
|
|
73
73
|
* Create a new repository
|
|
74
|
-
* @param {module:model/CreateUpdateRepository} createUpdateRepository
|
|
74
|
+
* @param {module:model/CreateUpdateRepository} createUpdateRepository
|
|
75
75
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Repository}
|
|
76
76
|
*/
|
|
77
77
|
}, {
|
|
@@ -84,9 +84,9 @@ var RepositoryApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
84
84
|
|
|
85
85
|
/**
|
|
86
86
|
* Create a new dataset within a repository
|
|
87
|
-
* @param {String} repositoryUID
|
|
87
|
+
* @param {String} repositoryUID
|
|
88
88
|
* @param {String} xRepositoryKey The secret key used to access this repository
|
|
89
|
-
* @param {module:model/DataSet} dataSet
|
|
89
|
+
* @param {module:model/DataSet} dataSet
|
|
90
90
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DataSet} and HTTP response
|
|
91
91
|
*/
|
|
92
92
|
}, {
|
|
@@ -106,25 +106,25 @@ var RepositoryApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
106
106
|
throw new _Error["default"]("Missing the required parameter 'dataSet' when calling createRepositoryDataset");
|
|
107
107
|
}
|
|
108
108
|
var pathParams = {
|
|
109
|
-
|
|
109
|
+
repositoryUID: repositoryUID
|
|
110
110
|
};
|
|
111
111
|
var queryParams = {};
|
|
112
112
|
var headerParams = {
|
|
113
|
-
|
|
113
|
+
"X-Repository-Key": xRepositoryKey
|
|
114
114
|
};
|
|
115
115
|
var formParams = {};
|
|
116
|
-
var authNames = [
|
|
117
|
-
var contentTypes = [
|
|
118
|
-
var accepts = [
|
|
116
|
+
var authNames = ["api_key"];
|
|
117
|
+
var contentTypes = ["application/json"];
|
|
118
|
+
var accepts = ["application/json"];
|
|
119
119
|
var returnType = _DataSet["default"];
|
|
120
|
-
return this.apiClient.callApi(
|
|
120
|
+
return this.apiClient.callApi("/v1/repositories/{repositoryUID}/datasets", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
/**
|
|
124
124
|
* Create a new dataset within a repository
|
|
125
|
-
* @param {String} repositoryUID
|
|
125
|
+
* @param {String} repositoryUID
|
|
126
126
|
* @param {String} xRepositoryKey The secret key used to access this repository
|
|
127
|
-
* @param {module:model/DataSet} dataSet
|
|
127
|
+
* @param {module:model/DataSet} dataSet
|
|
128
128
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DataSet}
|
|
129
129
|
*/
|
|
130
130
|
}, {
|
|
@@ -137,7 +137,7 @@ var RepositoryApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
137
137
|
|
|
138
138
|
/**
|
|
139
139
|
* Delete a repository
|
|
140
|
-
* @param {String} repositoryUID
|
|
140
|
+
* @param {String} repositoryUID
|
|
141
141
|
* @param {String} xRepositoryKey The secret key used to access this repository
|
|
142
142
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
143
143
|
*/
|
|
@@ -154,23 +154,23 @@ var RepositoryApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
154
154
|
throw new _Error["default"]("Missing the required parameter 'xRepositoryKey' when calling deleteRepository");
|
|
155
155
|
}
|
|
156
156
|
var pathParams = {
|
|
157
|
-
|
|
157
|
+
repositoryUID: repositoryUID
|
|
158
158
|
};
|
|
159
159
|
var queryParams = {};
|
|
160
160
|
var headerParams = {
|
|
161
|
-
|
|
161
|
+
"X-Repository-Key": xRepositoryKey
|
|
162
162
|
};
|
|
163
163
|
var formParams = {};
|
|
164
|
-
var authNames = [
|
|
164
|
+
var authNames = ["api_key"];
|
|
165
165
|
var contentTypes = [];
|
|
166
|
-
var accepts = [
|
|
166
|
+
var accepts = ["application/json"];
|
|
167
167
|
var returnType = null;
|
|
168
|
-
return this.apiClient.callApi(
|
|
168
|
+
return this.apiClient.callApi("/v1/repositories/{repositoryUID}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
/**
|
|
172
172
|
* Delete a repository
|
|
173
|
-
* @param {String} repositoryUID
|
|
173
|
+
* @param {String} repositoryUID
|
|
174
174
|
* @param {String} xRepositoryKey The secret key used to access this repository
|
|
175
175
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
176
176
|
*/
|
|
@@ -184,7 +184,7 @@ var RepositoryApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
184
184
|
|
|
185
185
|
/**
|
|
186
186
|
* Delete a dataset
|
|
187
|
-
* @param {String} repositoryUID
|
|
187
|
+
* @param {String} repositoryUID
|
|
188
188
|
* @param {String} name The name of the data set
|
|
189
189
|
* @param {String} xRepositoryKey The secret key used to access this repository
|
|
190
190
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
@@ -206,24 +206,24 @@ var RepositoryApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
206
206
|
throw new _Error["default"]("Missing the required parameter 'xRepositoryKey' when calling deleteRepositoryDataset");
|
|
207
207
|
}
|
|
208
208
|
var pathParams = {
|
|
209
|
-
|
|
210
|
-
|
|
209
|
+
repositoryUID: repositoryUID,
|
|
210
|
+
name: name
|
|
211
211
|
};
|
|
212
212
|
var queryParams = {};
|
|
213
213
|
var headerParams = {
|
|
214
|
-
|
|
214
|
+
"X-Repository-Key": xRepositoryKey
|
|
215
215
|
};
|
|
216
216
|
var formParams = {};
|
|
217
|
-
var authNames = [
|
|
217
|
+
var authNames = ["api_key"];
|
|
218
218
|
var contentTypes = [];
|
|
219
|
-
var accepts = [
|
|
219
|
+
var accepts = ["application/json"];
|
|
220
220
|
var returnType = null;
|
|
221
|
-
return this.apiClient.callApi(
|
|
221
|
+
return this.apiClient.callApi("/v1/repositories/{repositoryUID}/datasets/{name}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
222
222
|
}
|
|
223
223
|
|
|
224
224
|
/**
|
|
225
225
|
* Delete a dataset
|
|
226
|
-
* @param {String} repositoryUID
|
|
226
|
+
* @param {String} repositoryUID
|
|
227
227
|
* @param {String} name The name of the data set
|
|
228
228
|
* @param {String} xRepositoryKey The secret key used to access this repository
|
|
229
229
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
@@ -238,7 +238,7 @@ var RepositoryApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
238
238
|
|
|
239
239
|
/**
|
|
240
240
|
* Get repository information
|
|
241
|
-
* @param {String} repositoryUID
|
|
241
|
+
* @param {String} repositoryUID
|
|
242
242
|
* @param {String} xRepositoryKey The secret key used to access this repository
|
|
243
243
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Repository} and HTTP response
|
|
244
244
|
*/
|
|
@@ -255,23 +255,23 @@ var RepositoryApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
255
255
|
throw new _Error["default"]("Missing the required parameter 'xRepositoryKey' when calling getRepository");
|
|
256
256
|
}
|
|
257
257
|
var pathParams = {
|
|
258
|
-
|
|
258
|
+
repositoryUID: repositoryUID
|
|
259
259
|
};
|
|
260
260
|
var queryParams = {};
|
|
261
261
|
var headerParams = {
|
|
262
|
-
|
|
262
|
+
"X-Repository-Key": xRepositoryKey
|
|
263
263
|
};
|
|
264
264
|
var formParams = {};
|
|
265
|
-
var authNames = [
|
|
265
|
+
var authNames = ["api_key"];
|
|
266
266
|
var contentTypes = [];
|
|
267
|
-
var accepts = [
|
|
267
|
+
var accepts = ["application/json"];
|
|
268
268
|
var returnType = _Repository["default"];
|
|
269
|
-
return this.apiClient.callApi(
|
|
269
|
+
return this.apiClient.callApi("/v1/repositories/{repositoryUID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
270
270
|
}
|
|
271
271
|
|
|
272
272
|
/**
|
|
273
273
|
* Get repository information
|
|
274
|
-
* @param {String} repositoryUID
|
|
274
|
+
* @param {String} repositoryUID
|
|
275
275
|
* @param {String} xRepositoryKey The secret key used to access this repository
|
|
276
276
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Repository}
|
|
277
277
|
*/
|
|
@@ -286,7 +286,7 @@ var RepositoryApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
286
286
|
/**
|
|
287
287
|
* Get event and session data from a repository in NDJSON format.
|
|
288
288
|
* @param {String} xRepositoryKey The secret key used to access this repository
|
|
289
|
-
* @param {String} repositoryUID
|
|
289
|
+
* @param {String} repositoryUID
|
|
290
290
|
* @param {String} start Start of the time range, as an ISO-8601 date or relative to now (e.g. -1y). Relative dates follow the Postgres INTERVAL format.
|
|
291
291
|
* @param {Object} opts Optional parameters
|
|
292
292
|
* @param {String} opts.end End of the time range, as an ISO-8601 date or relative to now. If omitted, current time is used.
|
|
@@ -310,27 +310,27 @@ var RepositoryApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
310
310
|
throw new _Error["default"]("Missing the required parameter 'start' when calling getRepositoryData");
|
|
311
311
|
}
|
|
312
312
|
var pathParams = {
|
|
313
|
-
|
|
313
|
+
repositoryUID: repositoryUID
|
|
314
314
|
};
|
|
315
315
|
var queryParams = {
|
|
316
|
-
|
|
317
|
-
|
|
316
|
+
start: start,
|
|
317
|
+
end: opts["end"]
|
|
318
318
|
};
|
|
319
319
|
var headerParams = {
|
|
320
|
-
|
|
320
|
+
"X-Repository-Key": xRepositoryKey
|
|
321
321
|
};
|
|
322
322
|
var formParams = {};
|
|
323
|
-
var authNames = [
|
|
323
|
+
var authNames = ["api_key"];
|
|
324
324
|
var contentTypes = [];
|
|
325
|
-
var accepts = [
|
|
325
|
+
var accepts = ["text/csv", "application/json"];
|
|
326
326
|
var returnType = File;
|
|
327
|
-
return this.apiClient.callApi(
|
|
327
|
+
return this.apiClient.callApi("/v1/repositories/{repositoryUID}/data", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
328
328
|
}
|
|
329
329
|
|
|
330
330
|
/**
|
|
331
331
|
* Get event and session data from a repository in NDJSON format.
|
|
332
332
|
* @param {String} xRepositoryKey The secret key used to access this repository
|
|
333
|
-
* @param {String} repositoryUID
|
|
333
|
+
* @param {String} repositoryUID
|
|
334
334
|
* @param {String} start Start of the time range, as an ISO-8601 date or relative to now (e.g. -1y). Relative dates follow the Postgres INTERVAL format.
|
|
335
335
|
* @param {Object} opts Optional parameters
|
|
336
336
|
* @param {String} opts.end End of the time range, as an ISO-8601 date or relative to now. If omitted, current time is used.
|
|
@@ -346,7 +346,7 @@ var RepositoryApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
346
346
|
|
|
347
347
|
/**
|
|
348
348
|
* Get the details of a dataset
|
|
349
|
-
* @param {String} repositoryUID
|
|
349
|
+
* @param {String} repositoryUID
|
|
350
350
|
* @param {String} name The name of the data set
|
|
351
351
|
* @param {String} xRepositoryKey The secret key used to access this repository
|
|
352
352
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DataSet} and HTTP response
|
|
@@ -368,24 +368,24 @@ var RepositoryApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
368
368
|
throw new _Error["default"]("Missing the required parameter 'xRepositoryKey' when calling getRepositoryDataset");
|
|
369
369
|
}
|
|
370
370
|
var pathParams = {
|
|
371
|
-
|
|
372
|
-
|
|
371
|
+
repositoryUID: repositoryUID,
|
|
372
|
+
name: name
|
|
373
373
|
};
|
|
374
374
|
var queryParams = {};
|
|
375
375
|
var headerParams = {
|
|
376
|
-
|
|
376
|
+
"X-Repository-Key": xRepositoryKey
|
|
377
377
|
};
|
|
378
378
|
var formParams = {};
|
|
379
|
-
var authNames = [
|
|
379
|
+
var authNames = ["api_key"];
|
|
380
380
|
var contentTypes = [];
|
|
381
|
-
var accepts = [
|
|
381
|
+
var accepts = ["application/json"];
|
|
382
382
|
var returnType = _DataSet["default"];
|
|
383
|
-
return this.apiClient.callApi(
|
|
383
|
+
return this.apiClient.callApi("/v1/repositories/{repositoryUID}/datasets/{name}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
384
384
|
}
|
|
385
385
|
|
|
386
386
|
/**
|
|
387
387
|
* Get the details of a dataset
|
|
388
|
-
* @param {String} repositoryUID
|
|
388
|
+
* @param {String} repositoryUID
|
|
389
389
|
* @param {String} name The name of the data set
|
|
390
390
|
* @param {String} xRepositoryKey The secret key used to access this repository
|
|
391
391
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DataSet}
|
|
@@ -400,9 +400,9 @@ var RepositoryApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
400
400
|
|
|
401
401
|
/**
|
|
402
402
|
* Update a repository
|
|
403
|
-
* @param {String} repositoryUID
|
|
403
|
+
* @param {String} repositoryUID
|
|
404
404
|
* @param {String} xRepositoryKey The secret key used to access this repository
|
|
405
|
-
* @param {module:model/CreateUpdateRepository} createUpdateRepository
|
|
405
|
+
* @param {module:model/CreateUpdateRepository} createUpdateRepository
|
|
406
406
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Repository} and HTTP response
|
|
407
407
|
*/
|
|
408
408
|
}, {
|
|
@@ -422,25 +422,25 @@ var RepositoryApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
422
422
|
throw new _Error["default"]("Missing the required parameter 'createUpdateRepository' when calling putRepository");
|
|
423
423
|
}
|
|
424
424
|
var pathParams = {
|
|
425
|
-
|
|
425
|
+
repositoryUID: repositoryUID
|
|
426
426
|
};
|
|
427
427
|
var queryParams = {};
|
|
428
428
|
var headerParams = {
|
|
429
|
-
|
|
429
|
+
"X-Repository-Key": xRepositoryKey
|
|
430
430
|
};
|
|
431
431
|
var formParams = {};
|
|
432
|
-
var authNames = [
|
|
433
|
-
var contentTypes = [
|
|
434
|
-
var accepts = [
|
|
432
|
+
var authNames = ["api_key"];
|
|
433
|
+
var contentTypes = ["application/json"];
|
|
434
|
+
var accepts = ["application/json"];
|
|
435
435
|
var returnType = _Repository["default"];
|
|
436
|
-
return this.apiClient.callApi(
|
|
436
|
+
return this.apiClient.callApi("/v1/repositories/{repositoryUID}", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
437
437
|
}
|
|
438
438
|
|
|
439
439
|
/**
|
|
440
440
|
* Update a repository
|
|
441
|
-
* @param {String} repositoryUID
|
|
441
|
+
* @param {String} repositoryUID
|
|
442
442
|
* @param {String} xRepositoryKey The secret key used to access this repository
|
|
443
|
-
* @param {module:model/CreateUpdateRepository} createUpdateRepository
|
|
443
|
+
* @param {module:model/CreateUpdateRepository} createUpdateRepository
|
|
444
444
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Repository}
|
|
445
445
|
*/
|
|
446
446
|
}, {
|
|
@@ -454,7 +454,7 @@ var RepositoryApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
454
454
|
/**
|
|
455
455
|
* Query a dataset with support for time ranges, field selection, filtering, and location-based queries
|
|
456
456
|
* @param {String} xRepositoryKey The secret key used to access this repository
|
|
457
|
-
* @param {String} repositoryUID
|
|
457
|
+
* @param {String} repositoryUID
|
|
458
458
|
* @param {String} name The name of the data set
|
|
459
459
|
* @param {String} start Start of the time range, as an ISO-8601 date or relative to now (e.g. -1y). Relative dates follow the Postgres INTERVAL format.
|
|
460
460
|
* @param {Object} opts Optional parameters
|
|
@@ -491,36 +491,36 @@ var RepositoryApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
491
491
|
throw new _Error["default"]("Missing the required parameter 'start' when calling queryRepositoryDataset");
|
|
492
492
|
}
|
|
493
493
|
var pathParams = {
|
|
494
|
-
|
|
495
|
-
|
|
494
|
+
repositoryUID: repositoryUID,
|
|
495
|
+
name: name
|
|
496
496
|
};
|
|
497
497
|
var queryParams = {
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
498
|
+
start: start,
|
|
499
|
+
end: opts["end"],
|
|
500
|
+
select: opts["select"],
|
|
501
|
+
where: opts["where"],
|
|
502
|
+
aggregate_window: opts["aggregateWindow"],
|
|
503
|
+
location_near: opts["locationNear"],
|
|
504
|
+
location_near_radius: opts["locationNearRadius"],
|
|
505
|
+
limit: opts["limit"],
|
|
506
|
+
order_by: opts["orderBy"],
|
|
507
|
+
distinct: opts["distinct"]
|
|
508
508
|
};
|
|
509
509
|
var headerParams = {
|
|
510
|
-
|
|
510
|
+
"X-Repository-Key": xRepositoryKey
|
|
511
511
|
};
|
|
512
512
|
var formParams = {};
|
|
513
|
-
var authNames = [
|
|
513
|
+
var authNames = ["api_key"];
|
|
514
514
|
var contentTypes = [];
|
|
515
|
-
var accepts = [
|
|
515
|
+
var accepts = ["text/csv", "application/json"];
|
|
516
516
|
var returnType = File;
|
|
517
|
-
return this.apiClient.callApi(
|
|
517
|
+
return this.apiClient.callApi("/v1/repositories/{repositoryUID}/datasets/{name}/query", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
518
518
|
}
|
|
519
519
|
|
|
520
520
|
/**
|
|
521
521
|
* Query a dataset with support for time ranges, field selection, filtering, and location-based queries
|
|
522
522
|
* @param {String} xRepositoryKey The secret key used to access this repository
|
|
523
|
-
* @param {String} repositoryUID
|
|
523
|
+
* @param {String} repositoryUID
|
|
524
524
|
* @param {String} name The name of the data set
|
|
525
525
|
* @param {String} start Start of the time range, as an ISO-8601 date or relative to now (e.g. -1y). Relative dates follow the Postgres INTERVAL format.
|
|
526
526
|
* @param {Object} opts Optional parameters
|
|
@@ -545,7 +545,7 @@ var RepositoryApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
545
545
|
|
|
546
546
|
/**
|
|
547
547
|
* Run a raw Clickhouse-compatible SQL statement against the repository's database. Results are returned in CSV format
|
|
548
|
-
* @param {String} repositoryUID
|
|
548
|
+
* @param {String} repositoryUID
|
|
549
549
|
* @param {String} xRepositoryKey The secret key used to access this repository
|
|
550
550
|
* @param {String} body Clickhouse-compatible SQL statement
|
|
551
551
|
* @param {Object} opts Optional parameters
|
|
@@ -570,24 +570,24 @@ var RepositoryApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
570
570
|
throw new _Error["default"]("Missing the required parameter 'body' when calling queryRepositorySql");
|
|
571
571
|
}
|
|
572
572
|
var pathParams = {
|
|
573
|
-
|
|
573
|
+
repositoryUID: repositoryUID
|
|
574
574
|
};
|
|
575
575
|
var queryParams = {};
|
|
576
576
|
var headerParams = {
|
|
577
|
-
|
|
578
|
-
|
|
577
|
+
"X-Repository-Key": xRepositoryKey,
|
|
578
|
+
"X-ClickHouse-Format": opts["xClickHouseFormat"]
|
|
579
579
|
};
|
|
580
580
|
var formParams = {};
|
|
581
|
-
var authNames = [
|
|
582
|
-
var contentTypes = [
|
|
583
|
-
var accepts = [
|
|
581
|
+
var authNames = ["api_key"];
|
|
582
|
+
var contentTypes = ["text/plain"];
|
|
583
|
+
var accepts = ["text/plain", "application/json"];
|
|
584
584
|
var returnType = File;
|
|
585
|
-
return this.apiClient.callApi(
|
|
585
|
+
return this.apiClient.callApi("/v1/repositories/{repositoryUID}/sql", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
586
586
|
}
|
|
587
587
|
|
|
588
588
|
/**
|
|
589
589
|
* Run a raw Clickhouse-compatible SQL statement against the repository's database. Results are returned in CSV format
|
|
590
|
-
* @param {String} repositoryUID
|
|
590
|
+
* @param {String} repositoryUID
|
|
591
591
|
* @param {String} xRepositoryKey The secret key used to access this repository
|
|
592
592
|
* @param {String} body Clickhouse-compatible SQL statement
|
|
593
593
|
* @param {Object} opts Optional parameters
|