@blues-inc/notehub-js 2.3.0 → 3.0.0

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 (142) hide show
  1. package/README.md +46 -45
  2. package/dist/ApiClient.js +2 -2
  3. package/dist/api/AlertApi.js +1 -1
  4. package/dist/api/AuthorizationApi.js +1 -1
  5. package/dist/api/BillingAccountApi.js +1 -1
  6. package/dist/api/DeviceApi.js +806 -794
  7. package/dist/api/EventApi.js +83 -83
  8. package/dist/api/ExternalDevicesApi.js +1 -1
  9. package/dist/api/MonitorApi.js +1 -1
  10. package/dist/api/ProjectApi.js +228 -228
  11. package/dist/api/RouteApi.js +1 -1
  12. package/dist/api/UsageApi.js +24 -3
  13. package/dist/api/WebhookApi.js +1 -1
  14. package/dist/index.js +80 -73
  15. package/dist/model/{PutDeviceFleetsRequest.js → AddDeviceToFleetsRequest.js} +20 -20
  16. package/dist/model/Alert.js +1 -1
  17. package/dist/model/AlertDataInner.js +1 -1
  18. package/dist/model/AlertNotificationsInner.js +1 -1
  19. package/dist/model/AwsRoute.js +1 -1
  20. package/dist/model/AzureRoute.js +1 -1
  21. package/dist/model/BillingAccount.js +1 -1
  22. package/dist/model/BlynkRoute.js +1 -1
  23. package/dist/model/Body.js +1 -1
  24. package/dist/model/CellularPlan.js +1 -1
  25. package/dist/model/CloneProjectRequest.js +1 -1
  26. package/dist/model/Contact.js +1 -1
  27. package/dist/model/CreateFleetRequest.js +1 -1
  28. package/dist/model/CreateMonitor.js +1 -1
  29. package/dist/model/CreateProductRequest.js +1 -1
  30. package/dist/model/CreateProjectRequest.js +1 -1
  31. package/dist/model/CreateUpdateRepository.js +1 -1
  32. package/dist/model/CurrentFirmware.js +1 -1
  33. package/dist/model/DFUEnv.js +1 -1
  34. package/dist/model/DFUState.js +1 -1
  35. package/dist/model/DataField.js +1 -1
  36. package/dist/model/DataSetField.js +1 -1
  37. package/dist/model/DataUsage.js +1 -1
  38. package/dist/model/DatacakeRoute.js +1 -1
  39. package/dist/model/{DeleteDeviceFleetsRequest.js → DeleteDeviceFromFleetsRequest.js} +20 -20
  40. package/dist/model/{HandleNotefileDeleteRequest.js → DeleteNotefilesRequest.js} +19 -19
  41. package/dist/model/Device.js +1 -1
  42. package/dist/model/DeviceDfuHistory.js +1 -1
  43. package/dist/model/DeviceDfuHistoryCurrent.js +1 -1
  44. package/dist/model/DeviceDfuHistoryPage.js +1 -1
  45. package/dist/model/DeviceDfuStateMachine.js +1 -1
  46. package/dist/model/DeviceDfuStateMachineNode.js +1 -1
  47. package/dist/model/DeviceDfuStatus.js +1 -1
  48. package/dist/model/DeviceDfuStatusPage.js +1 -1
  49. package/dist/model/DeviceSession.js +1 -1
  50. package/dist/model/DeviceTowerInfo.js +1 -1
  51. package/dist/model/DeviceUsage.js +1 -1
  52. package/dist/model/DfuActionRequest.js +1 -1
  53. package/dist/model/EmailNotification.js +1 -1
  54. package/dist/model/EnvTreeJsonNode.js +1 -1
  55. package/dist/model/EnvVar.js +1 -1
  56. package/dist/model/EnvironmentVariables.js +1 -1
  57. package/dist/model/Error.js +1 -1
  58. package/dist/model/Event.js +1 -1
  59. package/dist/model/Filter.js +1 -1
  60. package/dist/model/Firmware.js +1 -1
  61. package/dist/model/FirmwareInfo.js +1 -1
  62. package/dist/model/Fleet.js +1 -1
  63. package/dist/model/FleetConnectivityAssurance.js +1 -1
  64. package/dist/model/GetAlerts200Response.js +1 -1
  65. package/dist/model/GetBillingAccounts200Response.js +1 -1
  66. package/dist/model/GetDataUsage200Response.js +1 -1
  67. package/dist/model/GetDataUsage200ResponseDataInner.js +1 -1
  68. package/dist/model/{HandleNoteGet200Response.js → GetDbNote200Response.js} +20 -20
  69. package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +1 -1
  70. package/dist/model/GetDeviceFleets200Response.js +1 -1
  71. package/dist/model/GetDeviceHealthLog200Response.js +1 -1
  72. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +1 -1
  73. package/dist/model/{GetDeviceLatest200Response.js → GetDeviceLatestEvents200Response.js} +18 -18
  74. package/dist/model/GetDevicePlans200Response.js +1 -1
  75. package/dist/model/GetDevicePublicKey200Response.js +1 -1
  76. package/dist/model/{GetProjectDevicePublicKeys200Response.js → GetDevicePublicKeys200Response.js} +26 -26
  77. package/dist/model/{GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js → GetDevicePublicKeys200ResponseDevicePublicKeysInner.js} +19 -19
  78. package/dist/model/GetDeviceSessions200Response.js +1 -1
  79. package/dist/model/{GetProjectDevices200Response.js → GetDevices200Response.js} +21 -21
  80. package/dist/model/{GetProjectEvents200Response.js → GetEvents200Response.js} +22 -22
  81. package/dist/model/{GetProjectEventsByCursor200Response.js → GetEventsByCursor200Response.js} +22 -22
  82. package/dist/model/{HandleNoteChanges200Response.js → GetNotefile200Response.js} +20 -20
  83. package/dist/model/GetProducts200Response.js +1 -1
  84. package/dist/model/GetProjectMembers200Response.js +1 -1
  85. package/dist/model/GetProjects200Response.js +1 -1
  86. package/dist/model/GetSessionsUsage200Response.js +1 -1
  87. package/dist/model/GetWebhooks200Response.js +1 -1
  88. package/dist/model/GoogleRoute.js +1 -1
  89. package/dist/model/HttpRoute.js +1 -1
  90. package/dist/model/{HandleNotefileChanges200Response.js → ListNotefiles200Response.js} +20 -20
  91. package/dist/model/{HandleNotefileChangesPending200Response.js → ListPendingNotefiles200Response.js} +21 -21
  92. package/dist/model/Location.js +1 -1
  93. package/dist/model/Login200Response.js +1 -1
  94. package/dist/model/LoginRequest.js +1 -1
  95. package/dist/model/Monitor.js +1 -1
  96. package/dist/model/MonitorAlertRoutesInner.js +1 -1
  97. package/dist/model/MqttRoute.js +1 -1
  98. package/dist/model/Note.js +1 -1
  99. package/dist/model/NotefileSchema.js +1 -1
  100. package/dist/model/NotehubRoute.js +15 -1
  101. package/dist/model/NotehubRouteSummary.js +1 -1
  102. package/dist/model/OAuth2Error.js +1 -1
  103. package/dist/model/OAuth2TokenResponse.js +1 -1
  104. package/dist/model/PersonalAccessToken.js +1 -1
  105. package/dist/model/PersonalAccessTokenCreatedBy.js +1 -1
  106. package/dist/model/PersonalAccessTokenInfo.js +1 -1
  107. package/dist/model/PersonalAccessTokenSecret.js +1 -1
  108. package/dist/model/Product.js +1 -1
  109. package/dist/model/Project.js +1 -1
  110. package/dist/model/ProjectMember.js +1 -1
  111. package/dist/model/{PostProvisionProjectDeviceRequest.js → ProvisionDeviceRequest.js} +22 -22
  112. package/dist/model/ProxyRoute.js +1 -1
  113. package/dist/model/QubitroRoute.js +1 -1
  114. package/dist/model/RadRoute.js +1 -1
  115. package/dist/model/Repository.js +1 -1
  116. package/dist/model/RouteLog.js +1 -1
  117. package/dist/model/RouteTransformSettings.js +1 -1
  118. package/dist/model/S3ArchiveRoute.js +1 -1
  119. package/dist/model/SatellitePlan.js +1 -1
  120. package/dist/model/SchemaProperty.js +1 -1
  121. package/dist/model/{HandleNoteSignal200Response.js → SignalDevice200Response.js} +18 -18
  122. package/dist/model/SimUsage.js +1 -1
  123. package/dist/model/SlackBearerNotification.js +1 -1
  124. package/dist/model/SlackRoute.js +1 -1
  125. package/dist/model/SlackWebHookNotification.js +1 -1
  126. package/dist/model/SnowflakeRoute.js +1 -1
  127. package/dist/model/SnowpipeStreamingRoute.js +223 -0
  128. package/dist/model/ThingworxRoute.js +1 -1
  129. package/dist/model/TowerLocation.js +1 -1
  130. package/dist/model/TwilioRoute.js +1 -1
  131. package/dist/model/UpdateFleetRequest.js +1 -1
  132. package/dist/model/UploadMetadata.js +1 -1
  133. package/dist/model/UsageData.js +1 -1
  134. package/dist/model/UsageEventsData.js +12 -1
  135. package/dist/model/UsageEventsResponse.js +1 -1
  136. package/dist/model/UsageRouteLogsData.js +1 -1
  137. package/dist/model/UsageSessionsData.js +1 -1
  138. package/dist/model/UserDfuStateMachine.js +1 -1
  139. package/dist/model/UserDfuStateMachineStatus.js +1 -1
  140. package/dist/model/UserFirmwareInfo.js +1 -1
  141. package/dist/model/WebhookSettings.js +1 -1
  142. package/package.json +1 -1
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
8
  var _Error = _interopRequireDefault(require("../model/Error"));
9
- var _GetProjectEvents200Response = _interopRequireDefault(require("../model/GetProjectEvents200Response"));
10
- var _GetProjectEventsByCursor200Response = _interopRequireDefault(require("../model/GetProjectEventsByCursor200Response"));
9
+ var _GetEvents200Response = _interopRequireDefault(require("../model/GetEvents200Response"));
10
+ var _GetEventsByCursor200Response = _interopRequireDefault(require("../model/GetEventsByCursor200Response"));
11
11
  var _RouteLog = _interopRequireDefault(require("../model/RouteLog"));
12
12
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
13
13
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * Event service.
32
32
  * @module api/EventApi
33
- * @version 2.3.0
33
+ * @version 3.0.0
34
34
  */
35
35
  var EventApi = exports["default"] = /*#__PURE__*/function () {
36
36
  /**
@@ -46,9 +46,8 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
46
46
  }
47
47
 
48
48
  /**
49
- * Get Events of a Fleet
49
+ * Get Events of a Project
50
50
  * @param {String} projectOrProductUID
51
- * @param {String} fleetUID
52
51
  * @param {Object} opts Optional parameters
53
52
  * @param {Number} opts.pageSize (default to 50)
54
53
  * @param {Number} opts.pageNum (default to 1)
@@ -62,27 +61,23 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
62
61
  * @param {String} opts.files
63
62
  * @param {module:model/String} opts.format Response format (JSON or CSV) (default to 'json')
64
63
  * @param {Array.<String>} opts.serialNumber Filter by Serial Number
64
+ * @param {Array.<String>} opts.fleetUID Filter by Fleet UID
65
65
  * @param {Array.<String>} opts.sessionUID Filter by Session UID
66
66
  * @param {Array.<String>} opts.eventUID Filter by Event UID
67
67
  * @param {String} opts.selectFields Comma-separated list of fields to select from JSON payload (e.g., \"field1,field2.subfield,field3\"), this will reflect the columns in the CSV output.
68
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectEvents200Response} and HTTP response
68
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetEvents200Response} and HTTP response
69
69
  */
70
70
  return _createClass(EventApi, [{
71
- key: "getFleetEventsWithHttpInfo",
72
- value: function getFleetEventsWithHttpInfo(projectOrProductUID, fleetUID, opts) {
71
+ key: "getEventsWithHttpInfo",
72
+ value: function getEventsWithHttpInfo(projectOrProductUID, opts) {
73
73
  opts = opts || {};
74
74
  var postBody = null;
75
75
  // verify the required parameter 'projectOrProductUID' is set
76
76
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
77
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getFleetEvents");
78
- }
79
- // verify the required parameter 'fleetUID' is set
80
- if (fleetUID === undefined || fleetUID === null) {
81
- throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEvents");
77
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getEvents");
82
78
  }
83
79
  var pathParams = {
84
- projectOrProductUID: projectOrProductUID,
85
- fleetUID: fleetUID
80
+ projectOrProductUID: projectOrProductUID
86
81
  };
87
82
  var queryParams = {
88
83
  pageSize: opts["pageSize"],
@@ -97,6 +92,7 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
97
92
  files: opts["files"],
98
93
  format: opts["format"],
99
94
  serialNumber: this.apiClient.buildCollectionParam(opts["serialNumber"], "multi"),
95
+ fleetUID: this.apiClient.buildCollectionParam(opts["fleetUID"], "multi"),
100
96
  sessionUID: this.apiClient.buildCollectionParam(opts["sessionUID"], "multi"),
101
97
  eventUID: this.apiClient.buildCollectionParam(opts["eventUID"], "multi"),
102
98
  selectFields: opts["selectFields"]
@@ -106,14 +102,13 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
106
102
  var authNames = ["personalAccessToken"];
107
103
  var contentTypes = [];
108
104
  var accepts = ["application/json", "text/csv"];
109
- var returnType = _GetProjectEvents200Response["default"];
110
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/events", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
105
+ var returnType = _GetEvents200Response["default"];
106
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/events", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
111
107
  }
112
108
 
113
109
  /**
114
- * Get Events of a Fleet
110
+ * Get Events of a Project
115
111
  * @param {String} projectOrProductUID
116
- * @param {String} fleetUID
117
112
  * @param {Object} opts Optional parameters
118
113
  * @param {Number} opts.pageSize (default to 50)
119
114
  * @param {Number} opts.pageNum (default to 1)
@@ -127,50 +122,44 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
127
122
  * @param {String} opts.files
128
123
  * @param {module:model/String} opts.format Response format (JSON or CSV) (default to 'json')
129
124
  * @param {Array.<String>} opts.serialNumber Filter by Serial Number
125
+ * @param {Array.<String>} opts.fleetUID Filter by Fleet UID
130
126
  * @param {Array.<String>} opts.sessionUID Filter by Session UID
131
127
  * @param {Array.<String>} opts.eventUID Filter by Event UID
132
128
  * @param {String} opts.selectFields Comma-separated list of fields to select from JSON payload (e.g., \"field1,field2.subfield,field3\"), this will reflect the columns in the CSV output.
133
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectEvents200Response}
129
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetEvents200Response}
134
130
  */
135
131
  }, {
136
- key: "getFleetEvents",
137
- value: function getFleetEvents(projectOrProductUID, fleetUID, opts) {
138
- return this.getFleetEventsWithHttpInfo(projectOrProductUID, fleetUID, opts).then(function (response_and_data) {
132
+ key: "getEvents",
133
+ value: function getEvents(projectOrProductUID, opts) {
134
+ return this.getEventsWithHttpInfo(projectOrProductUID, opts).then(function (response_and_data) {
139
135
  return response_and_data.data;
140
136
  });
141
137
  }
142
138
 
143
139
  /**
144
- * Get Events of a Fleet by cursor
140
+ * Get Events of a Project by cursor
145
141
  * @param {String} projectOrProductUID
146
- * @param {String} fleetUID
147
142
  * @param {Object} opts Optional parameters
148
143
  * @param {Number} opts.limit (default to 50)
149
144
  * @param {String} opts.cursor A cursor, which can be obtained from the `next_cursor` value from a previous call to this endpoint. The results set returned will include this event as its first result if the given identifier is actually the UID of an event. If this event UID is not found, the parameter is ignored and the results set is the same as if the parameter was not included.
150
145
  * @param {module:model/String} opts.sortOrder (default to 'asc')
151
146
  * @param {Boolean} opts.systemFilesOnly
152
147
  * @param {String} opts.files
148
+ * @param {String} opts.fleetUID
153
149
  * @param {Array.<String>} opts.deviceUID A Device UID.
154
- * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
155
- * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
156
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectEventsByCursor200Response} and HTTP response
150
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetEventsByCursor200Response} and HTTP response
157
151
  */
158
152
  }, {
159
- key: "getFleetEventsByCursorWithHttpInfo",
160
- value: function getFleetEventsByCursorWithHttpInfo(projectOrProductUID, fleetUID, opts) {
153
+ key: "getEventsByCursorWithHttpInfo",
154
+ value: function getEventsByCursorWithHttpInfo(projectOrProductUID, opts) {
161
155
  opts = opts || {};
162
156
  var postBody = null;
163
157
  // verify the required parameter 'projectOrProductUID' is set
164
158
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
165
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getFleetEventsByCursor");
166
- }
167
- // verify the required parameter 'fleetUID' is set
168
- if (fleetUID === undefined || fleetUID === null) {
169
- throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEventsByCursor");
159
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getEventsByCursor");
170
160
  }
171
161
  var pathParams = {
172
- projectOrProductUID: projectOrProductUID,
173
- fleetUID: fleetUID
162
+ projectOrProductUID: projectOrProductUID
174
163
  };
175
164
  var queryParams = {
176
165
  limit: opts["limit"],
@@ -178,45 +167,43 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
178
167
  sortOrder: opts["sortOrder"],
179
168
  systemFilesOnly: opts["systemFilesOnly"],
180
169
  files: opts["files"],
181
- deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
182
- startDate: opts["startDate"],
183
- endDate: opts["endDate"]
170
+ fleetUID: opts["fleetUID"],
171
+ deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi")
184
172
  };
185
173
  var headerParams = {};
186
174
  var formParams = {};
187
175
  var authNames = ["personalAccessToken"];
188
176
  var contentTypes = [];
189
177
  var accepts = ["application/json"];
190
- var returnType = _GetProjectEventsByCursor200Response["default"];
191
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/events-cursor", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
178
+ var returnType = _GetEventsByCursor200Response["default"];
179
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/events-cursor", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
192
180
  }
193
181
 
194
182
  /**
195
- * Get Events of a Fleet by cursor
183
+ * Get Events of a Project by cursor
196
184
  * @param {String} projectOrProductUID
197
- * @param {String} fleetUID
198
185
  * @param {Object} opts Optional parameters
199
186
  * @param {Number} opts.limit (default to 50)
200
187
  * @param {String} opts.cursor A cursor, which can be obtained from the `next_cursor` value from a previous call to this endpoint. The results set returned will include this event as its first result if the given identifier is actually the UID of an event. If this event UID is not found, the parameter is ignored and the results set is the same as if the parameter was not included.
201
188
  * @param {module:model/String} opts.sortOrder (default to 'asc')
202
189
  * @param {Boolean} opts.systemFilesOnly
203
190
  * @param {String} opts.files
191
+ * @param {String} opts.fleetUID
204
192
  * @param {Array.<String>} opts.deviceUID A Device UID.
205
- * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
206
- * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
207
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectEventsByCursor200Response}
193
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetEventsByCursor200Response}
208
194
  */
209
195
  }, {
210
- key: "getFleetEventsByCursor",
211
- value: function getFleetEventsByCursor(projectOrProductUID, fleetUID, opts) {
212
- return this.getFleetEventsByCursorWithHttpInfo(projectOrProductUID, fleetUID, opts).then(function (response_and_data) {
196
+ key: "getEventsByCursor",
197
+ value: function getEventsByCursor(projectOrProductUID, opts) {
198
+ return this.getEventsByCursorWithHttpInfo(projectOrProductUID, opts).then(function (response_and_data) {
213
199
  return response_and_data.data;
214
200
  });
215
201
  }
216
202
 
217
203
  /**
218
- * Get Events of a Project
204
+ * Get Events of a Fleet
219
205
  * @param {String} projectOrProductUID
206
+ * @param {String} fleetUID
220
207
  * @param {Object} opts Optional parameters
221
208
  * @param {Number} opts.pageSize (default to 50)
222
209
  * @param {Number} opts.pageNum (default to 1)
@@ -230,23 +217,27 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
230
217
  * @param {String} opts.files
231
218
  * @param {module:model/String} opts.format Response format (JSON or CSV) (default to 'json')
232
219
  * @param {Array.<String>} opts.serialNumber Filter by Serial Number
233
- * @param {Array.<String>} opts.fleetUID Filter by Fleet UID
234
220
  * @param {Array.<String>} opts.sessionUID Filter by Session UID
235
221
  * @param {Array.<String>} opts.eventUID Filter by Event UID
236
222
  * @param {String} opts.selectFields Comma-separated list of fields to select from JSON payload (e.g., \"field1,field2.subfield,field3\"), this will reflect the columns in the CSV output.
237
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectEvents200Response} and HTTP response
223
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetEvents200Response} and HTTP response
238
224
  */
239
225
  }, {
240
- key: "getProjectEventsWithHttpInfo",
241
- value: function getProjectEventsWithHttpInfo(projectOrProductUID, opts) {
226
+ key: "getFleetEventsWithHttpInfo",
227
+ value: function getFleetEventsWithHttpInfo(projectOrProductUID, fleetUID, opts) {
242
228
  opts = opts || {};
243
229
  var postBody = null;
244
230
  // verify the required parameter 'projectOrProductUID' is set
245
231
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
246
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectEvents");
232
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getFleetEvents");
233
+ }
234
+ // verify the required parameter 'fleetUID' is set
235
+ if (fleetUID === undefined || fleetUID === null) {
236
+ throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEvents");
247
237
  }
248
238
  var pathParams = {
249
- projectOrProductUID: projectOrProductUID
239
+ projectOrProductUID: projectOrProductUID,
240
+ fleetUID: fleetUID
250
241
  };
251
242
  var queryParams = {
252
243
  pageSize: opts["pageSize"],
@@ -261,7 +252,6 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
261
252
  files: opts["files"],
262
253
  format: opts["format"],
263
254
  serialNumber: this.apiClient.buildCollectionParam(opts["serialNumber"], "multi"),
264
- fleetUID: this.apiClient.buildCollectionParam(opts["fleetUID"], "multi"),
265
255
  sessionUID: this.apiClient.buildCollectionParam(opts["sessionUID"], "multi"),
266
256
  eventUID: this.apiClient.buildCollectionParam(opts["eventUID"], "multi"),
267
257
  selectFields: opts["selectFields"]
@@ -271,13 +261,14 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
271
261
  var authNames = ["personalAccessToken"];
272
262
  var contentTypes = [];
273
263
  var accepts = ["application/json", "text/csv"];
274
- var returnType = _GetProjectEvents200Response["default"];
275
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/events", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
264
+ var returnType = _GetEvents200Response["default"];
265
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/events", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
276
266
  }
277
267
 
278
268
  /**
279
- * Get Events of a Project
269
+ * Get Events of a Fleet
280
270
  * @param {String} projectOrProductUID
271
+ * @param {String} fleetUID
281
272
  * @param {Object} opts Optional parameters
282
273
  * @param {Number} opts.pageSize (default to 50)
283
274
  * @param {Number} opts.pageNum (default to 1)
@@ -291,44 +282,50 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
291
282
  * @param {String} opts.files
292
283
  * @param {module:model/String} opts.format Response format (JSON or CSV) (default to 'json')
293
284
  * @param {Array.<String>} opts.serialNumber Filter by Serial Number
294
- * @param {Array.<String>} opts.fleetUID Filter by Fleet UID
295
285
  * @param {Array.<String>} opts.sessionUID Filter by Session UID
296
286
  * @param {Array.<String>} opts.eventUID Filter by Event UID
297
287
  * @param {String} opts.selectFields Comma-separated list of fields to select from JSON payload (e.g., \"field1,field2.subfield,field3\"), this will reflect the columns in the CSV output.
298
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectEvents200Response}
288
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetEvents200Response}
299
289
  */
300
290
  }, {
301
- key: "getProjectEvents",
302
- value: function getProjectEvents(projectOrProductUID, opts) {
303
- return this.getProjectEventsWithHttpInfo(projectOrProductUID, opts).then(function (response_and_data) {
291
+ key: "getFleetEvents",
292
+ value: function getFleetEvents(projectOrProductUID, fleetUID, opts) {
293
+ return this.getFleetEventsWithHttpInfo(projectOrProductUID, fleetUID, opts).then(function (response_and_data) {
304
294
  return response_and_data.data;
305
295
  });
306
296
  }
307
297
 
308
298
  /**
309
- * Get Events of a Project by cursor
299
+ * Get Events of a Fleet by cursor
310
300
  * @param {String} projectOrProductUID
301
+ * @param {String} fleetUID
311
302
  * @param {Object} opts Optional parameters
312
303
  * @param {Number} opts.limit (default to 50)
313
304
  * @param {String} opts.cursor A cursor, which can be obtained from the `next_cursor` value from a previous call to this endpoint. The results set returned will include this event as its first result if the given identifier is actually the UID of an event. If this event UID is not found, the parameter is ignored and the results set is the same as if the parameter was not included.
314
305
  * @param {module:model/String} opts.sortOrder (default to 'asc')
315
306
  * @param {Boolean} opts.systemFilesOnly
316
307
  * @param {String} opts.files
317
- * @param {String} opts.fleetUID
318
308
  * @param {Array.<String>} opts.deviceUID A Device UID.
319
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectEventsByCursor200Response} and HTTP response
309
+ * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
310
+ * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
311
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetEventsByCursor200Response} and HTTP response
320
312
  */
321
313
  }, {
322
- key: "getProjectEventsByCursorWithHttpInfo",
323
- value: function getProjectEventsByCursorWithHttpInfo(projectOrProductUID, opts) {
314
+ key: "getFleetEventsByCursorWithHttpInfo",
315
+ value: function getFleetEventsByCursorWithHttpInfo(projectOrProductUID, fleetUID, opts) {
324
316
  opts = opts || {};
325
317
  var postBody = null;
326
318
  // verify the required parameter 'projectOrProductUID' is set
327
319
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
328
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectEventsByCursor");
320
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getFleetEventsByCursor");
321
+ }
322
+ // verify the required parameter 'fleetUID' is set
323
+ if (fleetUID === undefined || fleetUID === null) {
324
+ throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEventsByCursor");
329
325
  }
330
326
  var pathParams = {
331
- projectOrProductUID: projectOrProductUID
327
+ projectOrProductUID: projectOrProductUID,
328
+ fleetUID: fleetUID
332
329
  };
333
330
  var queryParams = {
334
331
  limit: opts["limit"],
@@ -336,35 +333,38 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
336
333
  sortOrder: opts["sortOrder"],
337
334
  systemFilesOnly: opts["systemFilesOnly"],
338
335
  files: opts["files"],
339
- fleetUID: opts["fleetUID"],
340
- deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi")
336
+ deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
337
+ startDate: opts["startDate"],
338
+ endDate: opts["endDate"]
341
339
  };
342
340
  var headerParams = {};
343
341
  var formParams = {};
344
342
  var authNames = ["personalAccessToken"];
345
343
  var contentTypes = [];
346
344
  var accepts = ["application/json"];
347
- var returnType = _GetProjectEventsByCursor200Response["default"];
348
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/events-cursor", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
345
+ var returnType = _GetEventsByCursor200Response["default"];
346
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/events-cursor", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
349
347
  }
350
348
 
351
349
  /**
352
- * Get Events of a Project by cursor
350
+ * Get Events of a Fleet by cursor
353
351
  * @param {String} projectOrProductUID
352
+ * @param {String} fleetUID
354
353
  * @param {Object} opts Optional parameters
355
354
  * @param {Number} opts.limit (default to 50)
356
355
  * @param {String} opts.cursor A cursor, which can be obtained from the `next_cursor` value from a previous call to this endpoint. The results set returned will include this event as its first result if the given identifier is actually the UID of an event. If this event UID is not found, the parameter is ignored and the results set is the same as if the parameter was not included.
357
356
  * @param {module:model/String} opts.sortOrder (default to 'asc')
358
357
  * @param {Boolean} opts.systemFilesOnly
359
358
  * @param {String} opts.files
360
- * @param {String} opts.fleetUID
361
359
  * @param {Array.<String>} opts.deviceUID A Device UID.
362
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectEventsByCursor200Response}
360
+ * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
361
+ * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
362
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetEventsByCursor200Response}
363
363
  */
364
364
  }, {
365
- key: "getProjectEventsByCursor",
366
- value: function getProjectEventsByCursor(projectOrProductUID, opts) {
367
- return this.getProjectEventsByCursorWithHttpInfo(projectOrProductUID, opts).then(function (response_and_data) {
365
+ key: "getFleetEventsByCursor",
366
+ value: function getFleetEventsByCursor(projectOrProductUID, fleetUID, opts) {
367
+ return this.getFleetEventsByCursorWithHttpInfo(projectOrProductUID, fleetUID, opts).then(function (response_and_data) {
368
368
  return response_and_data.data;
369
369
  });
370
370
  }
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * ExternalDevices service.
31
31
  * @module api/ExternalDevicesApi
32
- * @version 2.3.0
32
+ * @version 3.0.0
33
33
  */
34
34
  var ExternalDevicesApi = exports["default"] = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * Monitor service.
31
31
  * @module api/MonitorApi
32
- * @version 2.3.0
32
+ * @version 3.0.0
33
33
  */
34
34
  var MonitorApi = exports["default"] = /*#__PURE__*/function () {
35
35
  /**