@blues-inc/notehub-js 1.0.35-beta.9 → 1.0.36

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.
Files changed (133) hide show
  1. package/README.md +227 -244
  2. package/dist/ApiClient.js +156 -156
  3. package/dist/api/AlertApi.js +22 -22
  4. package/dist/api/AuthorizationApi.js +16 -16
  5. package/dist/api/BillingAccountApi.js +14 -14
  6. package/dist/api/DeviceApi.js +404 -351
  7. package/dist/api/EventApi.js +130 -130
  8. package/dist/api/ExternalDevicesApi.js +41 -41
  9. package/dist/api/MonitorApi.js +52 -52
  10. package/dist/api/ProjectApi.js +441 -355
  11. package/dist/api/RepositoryApi.js +103 -103
  12. package/dist/api/RouteApi.js +81 -81
  13. package/dist/api/WebhookApi.js +51 -51
  14. package/dist/index.js +14 -63
  15. package/dist/model/Alert.js +74 -76
  16. package/dist/model/AlertDataInner.js +35 -35
  17. package/dist/model/AlertNotificationsInner.js +18 -18
  18. package/dist/model/Aws.js +65 -65
  19. package/dist/model/Azure.js +43 -43
  20. package/dist/model/BillingAccount.js +21 -21
  21. package/dist/model/BillingAccountRole.js +9 -9
  22. package/dist/model/Body.js +5 -5
  23. package/dist/model/CloneProjectRequest.js +20 -20
  24. package/dist/model/Contact.js +22 -22
  25. package/dist/model/CreateFleetRequest.js +12 -12
  26. package/dist/model/CreateMonitor.js +125 -126
  27. package/dist/model/CreateProductRequest.js +22 -22
  28. package/dist/model/CreateProjectRequest.js +16 -16
  29. package/dist/model/CreateUpdateRepository.js +17 -17
  30. package/dist/model/CurrentFirmware.js +12 -12
  31. package/dist/model/DFUEnv.js +12 -12
  32. package/dist/model/DFUState.js +65 -65
  33. package/dist/model/DataField.js +7 -7
  34. package/dist/model/DataSet.js +29 -30
  35. package/dist/model/DataSetField.js +19 -19
  36. package/dist/model/DeleteDeviceFleetsRequest.js +8 -8
  37. package/dist/model/Device.js +101 -102
  38. package/dist/model/DeviceDfuHistory.js +19 -20
  39. package/dist/model/DeviceDfuHistoryPage.js +12 -13
  40. package/dist/model/DeviceDfuStateMachine.js +24 -25
  41. package/dist/model/DeviceDfuStateMachineNode.js +22 -22
  42. package/dist/model/DeviceDfuStatus.js +20 -20
  43. package/dist/model/DeviceDfuStatusCurrent.js +32 -32
  44. package/dist/model/DeviceDfuStatusPage.js +12 -13
  45. package/dist/model/DeviceSession.js +221 -221
  46. package/dist/model/DeviceTowerInfo.js +14 -14
  47. package/dist/model/DeviceUsage.js +32 -32
  48. package/dist/model/DfuActionRequest.js +7 -7
  49. package/dist/model/EmailNotification.js +7 -7
  50. package/dist/model/EnvTreeJsonNode.js +267 -0
  51. package/dist/model/{ApiKeySecret.js → EnvVar.js} +46 -32
  52. package/dist/model/EnvironmentVariables.js +8 -8
  53. package/dist/model/Error.js +31 -31
  54. package/dist/model/Event.js +248 -248
  55. package/dist/model/Firmware.js +49 -49
  56. package/dist/model/FirmwareInfo.js +60 -60
  57. package/dist/model/Fleet.js +36 -27
  58. package/dist/model/GetAlerts200Response.js +14 -15
  59. package/dist/model/GetBillingAccounts200Response.js +9 -10
  60. package/dist/model/GetDeviceEnvironmentVariables200Response.js +16 -16
  61. package/dist/model/GetDeviceHealthLog200Response.js +11 -12
  62. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +19 -19
  63. package/dist/model/GetDeviceLatest200Response.js +9 -10
  64. package/dist/model/GetDevicePublicKey200Response.js +16 -16
  65. package/dist/model/GetDeviceSessions200Response.js +16 -17
  66. package/dist/model/GetProjectDevicePublicKeys200Response.js +16 -17
  67. package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
  68. package/dist/model/GetProjectDevices200Response.js +16 -17
  69. package/dist/model/GetProjectEvents200Response.js +20 -21
  70. package/dist/model/GetProjectEventsByCursor200Response.js +23 -24
  71. package/dist/model/GetProjectFleets200Response.js +11 -12
  72. package/dist/model/GetProjectMembers200Response.js +11 -12
  73. package/dist/model/GetProjectProducts200Response.js +9 -10
  74. package/dist/model/GetProjects200Response.js +9 -10
  75. package/dist/model/GetWebhooks200Response.js +9 -10
  76. package/dist/model/Google.js +33 -33
  77. package/dist/model/HandleNoteChanges200Response.js +11 -11
  78. package/dist/model/HandleNoteGet200Response.js +13 -13
  79. package/dist/model/HandleNoteSignal200Response.js +5 -5
  80. package/dist/model/HandleNotefileChanges200Response.js +11 -11
  81. package/dist/model/HandleNotefileChangesPending200Response.js +14 -14
  82. package/dist/model/HandleNotefileDeleteRequest.js +7 -7
  83. package/dist/model/Http.js +35 -35
  84. package/dist/model/HttpFilter.js +19 -19
  85. package/dist/model/HttpTransform.js +20 -20
  86. package/dist/model/Location.js +40 -40
  87. package/dist/model/Login200Response.js +7 -7
  88. package/dist/model/LoginRequest.js +12 -12
  89. package/dist/model/Monitor.js +99 -100
  90. package/dist/model/MonitorAlertRoutesInner.js +10 -9
  91. package/dist/model/Mqtt.js +66 -66
  92. package/dist/model/Note.js +10 -10
  93. package/dist/model/NotefileSchema.js +18 -19
  94. package/dist/model/NotehubRoute.js +36 -36
  95. package/dist/model/NotehubRouteSchema.js +46 -45
  96. package/dist/model/PostProvisionProjectDeviceRequest.js +18 -18
  97. package/dist/model/Product.js +26 -26
  98. package/dist/model/Project.js +34 -34
  99. package/dist/model/ProjectMember.js +22 -22
  100. package/dist/model/Proxy.js +24 -24
  101. package/dist/model/PutDeviceFleetsRequest.js +8 -8
  102. package/dist/model/QuestionDataResponseLineChart.js +39 -39
  103. package/dist/model/QuestionDataResponseMap.js +16 -16
  104. package/dist/model/Radresponder.js +25 -25
  105. package/dist/model/Repository.js +22 -22
  106. package/dist/model/Role.js +9 -9
  107. package/dist/model/RouteLog.js +44 -35
  108. package/dist/model/SchemaProperty.js +38 -40
  109. package/dist/model/SimUsage.js +19 -19
  110. package/dist/model/Slack.js +53 -53
  111. package/dist/model/SlackBearerNotification.js +25 -25
  112. package/dist/model/SlackWebHookNotification.js +20 -20
  113. package/dist/model/Snowflake.js +45 -45
  114. package/dist/model/SnowflakeTransform.js +12 -12
  115. package/dist/model/Thingworx.js +33 -33
  116. package/dist/model/TowerLocation.js +54 -54
  117. package/dist/model/Twilio.js +43 -43
  118. package/dist/model/UpdateFleetRequest.js +31 -22
  119. package/dist/model/UploadMetadata.js +59 -59
  120. package/dist/model/UserDbRoute.js +25 -25
  121. package/dist/model/UserDfuStateMachine.js +20 -20
  122. package/dist/model/UserDfuStateMachineStatus.js +20 -20
  123. package/dist/model/UserFirmwareInfo.js +12 -12
  124. package/dist/model/WebhookSettings.js +15 -15
  125. package/package.json +3 -3
  126. package/dist/api/ApiAccessApi.js +0 -238
  127. package/dist/model/ApiKey.js +0 -186
  128. package/dist/model/ApiKeyCreatedBy.js +0 -116
  129. package/dist/model/ApiKeyPermissionEntry.js +0 -127
  130. package/dist/model/ApiKeyPermissions.js +0 -141
  131. package/dist/model/UpdateApiKeyRequest.js +0 -135
  132. package/dist/model/UpdateApiKeyRequestRoles.js +0 -141
  133. package/dist/model/UpdateApiKeyRole.js +0 -103
@@ -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-beta.9
34
- */
31
+ * Repository service.
32
+ * @module api/RepositoryApi
33
+ * @version 1.0.36
34
+ */
35
35
  var RepositoryApi = exports["default"] = /*#__PURE__*/function () {
36
36
  /**
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
- */
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 = ['api_key'];
66
- var contentTypes = ['application/json'];
67
- var accepts = ['application/json'];
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('/v1/repositories', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
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
- 'repositoryUID': repositoryUID
109
+ repositoryUID: repositoryUID
110
110
  };
111
111
  var queryParams = {};
112
112
  var headerParams = {
113
- 'X-Repository-Key': xRepositoryKey
113
+ "X-Repository-Key": xRepositoryKey
114
114
  };
115
115
  var formParams = {};
116
- var authNames = ['api_key'];
117
- var contentTypes = ['application/json'];
118
- var accepts = ['application/json'];
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('/v1/repositories/{repositoryUID}/datasets', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
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
- 'repositoryUID': repositoryUID
157
+ repositoryUID: repositoryUID
158
158
  };
159
159
  var queryParams = {};
160
160
  var headerParams = {
161
- 'X-Repository-Key': xRepositoryKey
161
+ "X-Repository-Key": xRepositoryKey
162
162
  };
163
163
  var formParams = {};
164
- var authNames = ['api_key'];
164
+ var authNames = ["api_key"];
165
165
  var contentTypes = [];
166
- var accepts = ['application/json'];
166
+ var accepts = ["application/json"];
167
167
  var returnType = null;
168
- return this.apiClient.callApi('/v1/repositories/{repositoryUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
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
- 'repositoryUID': repositoryUID,
210
- 'name': name
209
+ repositoryUID: repositoryUID,
210
+ name: name
211
211
  };
212
212
  var queryParams = {};
213
213
  var headerParams = {
214
- 'X-Repository-Key': xRepositoryKey
214
+ "X-Repository-Key": xRepositoryKey
215
215
  };
216
216
  var formParams = {};
217
- var authNames = ['api_key'];
217
+ var authNames = ["api_key"];
218
218
  var contentTypes = [];
219
- var accepts = ['application/json'];
219
+ var accepts = ["application/json"];
220
220
  var returnType = null;
221
- return this.apiClient.callApi('/v1/repositories/{repositoryUID}/datasets/{name}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
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
- 'repositoryUID': repositoryUID
258
+ repositoryUID: repositoryUID
259
259
  };
260
260
  var queryParams = {};
261
261
  var headerParams = {
262
- 'X-Repository-Key': xRepositoryKey
262
+ "X-Repository-Key": xRepositoryKey
263
263
  };
264
264
  var formParams = {};
265
- var authNames = ['api_key'];
265
+ var authNames = ["api_key"];
266
266
  var contentTypes = [];
267
- var accepts = ['application/json'];
267
+ var accepts = ["application/json"];
268
268
  var returnType = _Repository["default"];
269
- return this.apiClient.callApi('/v1/repositories/{repositoryUID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
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
- 'repositoryUID': repositoryUID
313
+ repositoryUID: repositoryUID
314
314
  };
315
315
  var queryParams = {
316
- 'start': start,
317
- 'end': opts['end']
316
+ start: start,
317
+ end: opts["end"]
318
318
  };
319
319
  var headerParams = {
320
- 'X-Repository-Key': xRepositoryKey
320
+ "X-Repository-Key": xRepositoryKey
321
321
  };
322
322
  var formParams = {};
323
- var authNames = ['api_key'];
323
+ var authNames = ["api_key"];
324
324
  var contentTypes = [];
325
- var accepts = ['text/csv', 'application/json'];
325
+ var accepts = ["text/csv", "application/json"];
326
326
  var returnType = File;
327
- return this.apiClient.callApi('/v1/repositories/{repositoryUID}/data', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
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
- 'repositoryUID': repositoryUID,
372
- 'name': name
371
+ repositoryUID: repositoryUID,
372
+ name: name
373
373
  };
374
374
  var queryParams = {};
375
375
  var headerParams = {
376
- 'X-Repository-Key': xRepositoryKey
376
+ "X-Repository-Key": xRepositoryKey
377
377
  };
378
378
  var formParams = {};
379
- var authNames = ['api_key'];
379
+ var authNames = ["api_key"];
380
380
  var contentTypes = [];
381
- var accepts = ['application/json'];
381
+ var accepts = ["application/json"];
382
382
  var returnType = _DataSet["default"];
383
- return this.apiClient.callApi('/v1/repositories/{repositoryUID}/datasets/{name}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
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
- 'repositoryUID': repositoryUID
425
+ repositoryUID: repositoryUID
426
426
  };
427
427
  var queryParams = {};
428
428
  var headerParams = {
429
- 'X-Repository-Key': xRepositoryKey
429
+ "X-Repository-Key": xRepositoryKey
430
430
  };
431
431
  var formParams = {};
432
- var authNames = ['api_key'];
433
- var contentTypes = ['application/json'];
434
- var accepts = ['application/json'];
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('/v1/repositories/{repositoryUID}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
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
- 'repositoryUID': repositoryUID,
495
- 'name': name
494
+ repositoryUID: repositoryUID,
495
+ name: name
496
496
  };
497
497
  var queryParams = {
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']
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
- 'X-Repository-Key': xRepositoryKey
510
+ "X-Repository-Key": xRepositoryKey
511
511
  };
512
512
  var formParams = {};
513
- var authNames = ['api_key'];
513
+ var authNames = ["api_key"];
514
514
  var contentTypes = [];
515
- var accepts = ['text/csv', 'application/json'];
515
+ var accepts = ["text/csv", "application/json"];
516
516
  var returnType = File;
517
- return this.apiClient.callApi('/v1/repositories/{repositoryUID}/datasets/{name}/query', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
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
- 'repositoryUID': repositoryUID
573
+ repositoryUID: repositoryUID
574
574
  };
575
575
  var queryParams = {};
576
576
  var headerParams = {
577
- 'X-Repository-Key': xRepositoryKey,
578
- 'X-ClickHouse-Format': opts['xClickHouseFormat']
577
+ "X-Repository-Key": xRepositoryKey,
578
+ "X-ClickHouse-Format": opts["xClickHouseFormat"]
579
579
  };
580
580
  var formParams = {};
581
- var authNames = ['api_key'];
582
- var contentTypes = ['text/plain'];
583
- var accepts = ['text/plain', 'application/json'];
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('/v1/repositories/{repositoryUID}/sql', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
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