@blues-inc/notehub-js 2.3.0-beta.2 → 2.3.0-beta.21

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 (144) hide show
  1. package/README.md +47 -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 +769 -721
  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 +282 -282
  11. package/dist/api/RouteApi.js +1 -1
  12. package/dist/api/UsageApi.js +16 -4
  13. package/dist/api/WebhookApi.js +1 -1
  14. package/dist/index.js +86 -79
  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/Location.js +1 -1
  91. package/dist/model/Login200Response.js +1 -1
  92. package/dist/model/LoginRequest.js +1 -1
  93. package/dist/model/Monitor.js +1 -1
  94. package/dist/model/MonitorAlertRoutesInner.js +1 -1
  95. package/dist/model/MqttRoute.js +1 -1
  96. package/dist/model/Note.js +90 -10
  97. package/dist/model/NoteInput.js +99 -0
  98. package/dist/model/Notefile.js +159 -0
  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
  143. package/dist/model/HandleNotefileChanges200Response.js +0 -106
  144. package/dist/model/HandleNotefileChangesPending200Response.js +0 -115
@@ -6,26 +6,25 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
8
  var _Body = _interopRequireDefault(require("../model/Body"));
9
+ var _DeleteNotefilesRequest = _interopRequireDefault(require("../model/DeleteNotefilesRequest"));
9
10
  var _Device = _interopRequireDefault(require("../model/Device"));
10
11
  var _EnvTreeJsonNode = _interopRequireDefault(require("../model/EnvTreeJsonNode"));
11
12
  var _EnvironmentVariables = _interopRequireDefault(require("../model/EnvironmentVariables"));
12
13
  var _Error = _interopRequireDefault(require("../model/Error"));
14
+ var _GetDbNote200Response = _interopRequireDefault(require("../model/GetDbNote200Response"));
13
15
  var _GetDeviceEnvironmentVariablesByPin200Response = _interopRequireDefault(require("../model/GetDeviceEnvironmentVariablesByPin200Response"));
14
16
  var _GetDeviceHealthLog200Response = _interopRequireDefault(require("../model/GetDeviceHealthLog200Response"));
15
- var _GetDeviceLatest200Response = _interopRequireDefault(require("../model/GetDeviceLatest200Response"));
17
+ var _GetDeviceLatestEvents200Response = _interopRequireDefault(require("../model/GetDeviceLatestEvents200Response"));
16
18
  var _GetDevicePlans200Response = _interopRequireDefault(require("../model/GetDevicePlans200Response"));
17
19
  var _GetDevicePublicKey200Response = _interopRequireDefault(require("../model/GetDevicePublicKey200Response"));
20
+ var _GetDevicePublicKeys200Response = _interopRequireDefault(require("../model/GetDevicePublicKeys200Response"));
18
21
  var _GetDeviceSessions200Response = _interopRequireDefault(require("../model/GetDeviceSessions200Response"));
19
- var _GetProjectDevicePublicKeys200Response = _interopRequireDefault(require("../model/GetProjectDevicePublicKeys200Response"));
20
- var _GetProjectDevices200Response = _interopRequireDefault(require("../model/GetProjectDevices200Response"));
21
- var _HandleNoteChanges200Response = _interopRequireDefault(require("../model/HandleNoteChanges200Response"));
22
- var _HandleNoteGet200Response = _interopRequireDefault(require("../model/HandleNoteGet200Response"));
23
- var _HandleNoteSignal200Response = _interopRequireDefault(require("../model/HandleNoteSignal200Response"));
24
- var _HandleNotefileChanges200Response = _interopRequireDefault(require("../model/HandleNotefileChanges200Response"));
25
- var _HandleNotefileChangesPending200Response = _interopRequireDefault(require("../model/HandleNotefileChangesPending200Response"));
26
- var _HandleNotefileDeleteRequest = _interopRequireDefault(require("../model/HandleNotefileDeleteRequest"));
27
- var _Note = _interopRequireDefault(require("../model/Note"));
28
- var _PostProvisionProjectDeviceRequest = _interopRequireDefault(require("../model/PostProvisionProjectDeviceRequest"));
22
+ var _GetDevices200Response = _interopRequireDefault(require("../model/GetDevices200Response"));
23
+ var _GetNotefile200Response = _interopRequireDefault(require("../model/GetNotefile200Response"));
24
+ var _NoteInput = _interopRequireDefault(require("../model/NoteInput"));
25
+ var _Notefile = _interopRequireDefault(require("../model/Notefile"));
26
+ var _ProvisionDeviceRequest = _interopRequireDefault(require("../model/ProvisionDeviceRequest"));
27
+ var _SignalDevice200Response = _interopRequireDefault(require("../model/SignalDevice200Response"));
29
28
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
30
29
  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); }
31
30
  function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
@@ -47,7 +46,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
47
46
  /**
48
47
  * Device service.
49
48
  * @module api/DeviceApi
50
- * @version 2.3.0-beta.2
49
+ * @version 2.3.0-beta.21
51
50
  */
52
51
  var DeviceApi = exports["default"] = /*#__PURE__*/function () {
53
52
  /**
@@ -63,271 +62,315 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
63
62
  }
64
63
 
65
64
  /**
66
- * Delete environment variable of a device
65
+ * Add a Note to a .db notefile. if noteID is '-' then payload is ignored and empty notefile is created
67
66
  * @param {String} projectOrProductUID
68
67
  * @param {String} deviceUID
69
- * @param {String} key The environment variable key to delete.
70
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
68
+ * @param {String} notefileID
69
+ * @param {String} noteID
70
+ * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
71
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
71
72
  */
72
73
  return _createClass(DeviceApi, [{
73
- key: "deleteDeviceEnvironmentVariableWithHttpInfo",
74
- value: function deleteDeviceEnvironmentVariableWithHttpInfo(projectOrProductUID, deviceUID, key) {
75
- var postBody = null;
74
+ key: "addDbNoteWithHttpInfo",
75
+ value: function addDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, noteInput) {
76
+ var postBody = noteInput;
76
77
  // verify the required parameter 'projectOrProductUID' is set
77
78
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
78
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteDeviceEnvironmentVariable");
79
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling addDbNote");
79
80
  }
80
81
  // verify the required parameter 'deviceUID' is set
81
82
  if (deviceUID === undefined || deviceUID === null) {
82
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling deleteDeviceEnvironmentVariable");
83
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling addDbNote");
83
84
  }
84
- // verify the required parameter 'key' is set
85
- if (key === undefined || key === null) {
86
- throw new _Error["default"]("Missing the required parameter 'key' when calling deleteDeviceEnvironmentVariable");
85
+ // verify the required parameter 'notefileID' is set
86
+ if (notefileID === undefined || notefileID === null) {
87
+ throw new _Error["default"]("Missing the required parameter 'notefileID' when calling addDbNote");
88
+ }
89
+ // verify the required parameter 'noteID' is set
90
+ if (noteID === undefined || noteID === null) {
91
+ throw new _Error["default"]("Missing the required parameter 'noteID' when calling addDbNote");
92
+ }
93
+ // verify the required parameter 'noteInput' is set
94
+ if (noteInput === undefined || noteInput === null) {
95
+ throw new _Error["default"]("Missing the required parameter 'noteInput' when calling addDbNote");
87
96
  }
88
97
  var pathParams = {
89
98
  'projectOrProductUID': projectOrProductUID,
90
99
  'deviceUID': deviceUID,
91
- 'key': key
100
+ 'notefileID': notefileID,
101
+ 'noteID': noteID
92
102
  };
93
103
  var queryParams = {};
94
104
  var headerParams = {};
95
105
  var formParams = {};
96
106
  var authNames = ['personalAccessToken'];
97
- var contentTypes = [];
107
+ var contentTypes = ['application/json'];
98
108
  var accepts = ['application/json'];
99
- var returnType = _EnvironmentVariables["default"];
100
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables/{key}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
109
+ var returnType = null;
110
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
101
111
  }
102
112
 
103
113
  /**
104
- * Delete environment variable of a device
114
+ * Add a Note to a .db notefile. if noteID is '-' then payload is ignored and empty notefile is created
105
115
  * @param {String} projectOrProductUID
106
116
  * @param {String} deviceUID
107
- * @param {String} key The environment variable key to delete.
108
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
117
+ * @param {String} notefileID
118
+ * @param {String} noteID
119
+ * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
120
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
109
121
  */
110
122
  }, {
111
- key: "deleteDeviceEnvironmentVariable",
112
- value: function deleteDeviceEnvironmentVariable(projectOrProductUID, deviceUID, key) {
113
- return this.deleteDeviceEnvironmentVariableWithHttpInfo(projectOrProductUID, deviceUID, key).then(function (response_and_data) {
123
+ key: "addDbNote",
124
+ value: function addDbNote(projectOrProductUID, deviceUID, notefileID, noteID, noteInput) {
125
+ return this.addDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, noteInput).then(function (response_and_data) {
114
126
  return response_and_data.data;
115
127
  });
116
128
  }
117
129
 
118
130
  /**
119
- * Delete Device
131
+ * Add environment variables of a device
120
132
  * @param {String} projectOrProductUID
121
133
  * @param {String} deviceUID
122
- * @param {Boolean} purge
123
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
134
+ * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
135
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
124
136
  */
125
137
  }, {
126
- key: "deleteProjectDeviceWithHttpInfo",
127
- value: function deleteProjectDeviceWithHttpInfo(projectOrProductUID, deviceUID, purge) {
128
- var postBody = null;
138
+ key: "addDeviceEnvironmentVariablesWithHttpInfo",
139
+ value: function addDeviceEnvironmentVariablesWithHttpInfo(projectOrProductUID, deviceUID, environmentVariables) {
140
+ var postBody = environmentVariables;
129
141
  // verify the required parameter 'projectOrProductUID' is set
130
142
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
131
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteProjectDevice");
143
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling addDeviceEnvironmentVariables");
132
144
  }
133
145
  // verify the required parameter 'deviceUID' is set
134
146
  if (deviceUID === undefined || deviceUID === null) {
135
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling deleteProjectDevice");
147
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling addDeviceEnvironmentVariables");
136
148
  }
137
- // verify the required parameter 'purge' is set
138
- if (purge === undefined || purge === null) {
139
- throw new _Error["default"]("Missing the required parameter 'purge' when calling deleteProjectDevice");
149
+ // verify the required parameter 'environmentVariables' is set
150
+ if (environmentVariables === undefined || environmentVariables === null) {
151
+ throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling addDeviceEnvironmentVariables");
140
152
  }
141
153
  var pathParams = {
142
154
  'projectOrProductUID': projectOrProductUID,
143
155
  'deviceUID': deviceUID
144
156
  };
145
- var queryParams = {
146
- 'purge': purge
147
- };
157
+ var queryParams = {};
148
158
  var headerParams = {};
149
159
  var formParams = {};
150
160
  var authNames = ['personalAccessToken'];
151
- var contentTypes = [];
161
+ var contentTypes = ['application/json'];
152
162
  var accepts = ['application/json'];
153
- var returnType = null;
154
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
163
+ var returnType = _EnvironmentVariables["default"];
164
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
155
165
  }
156
166
 
157
167
  /**
158
- * Delete Device
168
+ * Add environment variables of a device
159
169
  * @param {String} projectOrProductUID
160
170
  * @param {String} deviceUID
161
- * @param {Boolean} purge
162
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}
171
+ * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
172
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
163
173
  */
164
174
  }, {
165
- key: "deleteProjectDevice",
166
- value: function deleteProjectDevice(projectOrProductUID, deviceUID, purge) {
167
- return this.deleteProjectDeviceWithHttpInfo(projectOrProductUID, deviceUID, purge).then(function (response_and_data) {
175
+ key: "addDeviceEnvironmentVariables",
176
+ value: function addDeviceEnvironmentVariables(projectOrProductUID, deviceUID, environmentVariables) {
177
+ return this.addDeviceEnvironmentVariablesWithHttpInfo(projectOrProductUID, deviceUID, environmentVariables).then(function (response_and_data) {
168
178
  return response_and_data.data;
169
179
  });
170
180
  }
171
181
 
172
182
  /**
173
- * Disable Device
174
- * @param {String} projectOrProductUID
183
+ * Add environment variables of a device with device pin authorization
184
+ * @param {String} productUID
175
185
  * @param {String} deviceUID
176
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
186
+ * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
187
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
177
188
  */
178
189
  }, {
179
- key: "disableDeviceWithHttpInfo",
180
- value: function disableDeviceWithHttpInfo(projectOrProductUID, deviceUID) {
181
- var postBody = null;
182
- // verify the required parameter 'projectOrProductUID' is set
183
- if (projectOrProductUID === undefined || projectOrProductUID === null) {
184
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling disableDevice");
190
+ key: "addDeviceEnvironmentVariablesByPinWithHttpInfo",
191
+ value: function addDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, environmentVariables) {
192
+ var postBody = environmentVariables;
193
+ // verify the required parameter 'productUID' is set
194
+ if (productUID === undefined || productUID === null) {
195
+ throw new _Error["default"]("Missing the required parameter 'productUID' when calling addDeviceEnvironmentVariablesByPin");
185
196
  }
186
197
  // verify the required parameter 'deviceUID' is set
187
198
  if (deviceUID === undefined || deviceUID === null) {
188
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling disableDevice");
199
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling addDeviceEnvironmentVariablesByPin");
200
+ }
201
+ // verify the required parameter 'environmentVariables' is set
202
+ if (environmentVariables === undefined || environmentVariables === null) {
203
+ throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling addDeviceEnvironmentVariablesByPin");
189
204
  }
190
205
  var pathParams = {
191
- 'projectOrProductUID': projectOrProductUID,
206
+ 'productUID': productUID,
192
207
  'deviceUID': deviceUID
193
208
  };
194
209
  var queryParams = {};
195
210
  var headerParams = {};
196
211
  var formParams = {};
197
- var authNames = ['personalAccessToken'];
198
- var contentTypes = [];
212
+ var authNames = ['pin'];
213
+ var contentTypes = ['application/json'];
199
214
  var accepts = ['application/json'];
200
- var returnType = null;
201
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/disable', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
215
+ var returnType = _EnvironmentVariables["default"];
216
+ return this.apiClient.callApi('/v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
202
217
  }
203
218
 
204
219
  /**
205
- * Disable Device
206
- * @param {String} projectOrProductUID
220
+ * Add environment variables of a device with device pin authorization
221
+ * @param {String} productUID
207
222
  * @param {String} deviceUID
208
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}
223
+ * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
224
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
209
225
  */
210
226
  }, {
211
- key: "disableDevice",
212
- value: function disableDevice(projectOrProductUID, deviceUID) {
213
- return this.disableDeviceWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
227
+ key: "addDeviceEnvironmentVariablesByPin",
228
+ value: function addDeviceEnvironmentVariablesByPin(productUID, deviceUID, environmentVariables) {
229
+ return this.addDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, environmentVariables).then(function (response_and_data) {
214
230
  return response_and_data.data;
215
231
  });
216
232
  }
217
233
 
218
234
  /**
219
- * Enable Device
235
+ * Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
220
236
  * @param {String} projectOrProductUID
221
237
  * @param {String} deviceUID
238
+ * @param {String} notefileID
239
+ * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
222
240
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
223
241
  */
224
242
  }, {
225
- key: "enableDeviceWithHttpInfo",
226
- value: function enableDeviceWithHttpInfo(projectOrProductUID, deviceUID) {
227
- var postBody = null;
243
+ key: "addQiNoteWithHttpInfo",
244
+ value: function addQiNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteInput) {
245
+ var postBody = noteInput;
228
246
  // verify the required parameter 'projectOrProductUID' is set
229
247
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
230
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling enableDevice");
248
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling addQiNote");
231
249
  }
232
250
  // verify the required parameter 'deviceUID' is set
233
251
  if (deviceUID === undefined || deviceUID === null) {
234
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling enableDevice");
252
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling addQiNote");
253
+ }
254
+ // verify the required parameter 'notefileID' is set
255
+ if (notefileID === undefined || notefileID === null) {
256
+ throw new _Error["default"]("Missing the required parameter 'notefileID' when calling addQiNote");
257
+ }
258
+ // verify the required parameter 'noteInput' is set
259
+ if (noteInput === undefined || noteInput === null) {
260
+ throw new _Error["default"]("Missing the required parameter 'noteInput' when calling addQiNote");
235
261
  }
236
262
  var pathParams = {
237
263
  'projectOrProductUID': projectOrProductUID,
238
- 'deviceUID': deviceUID
264
+ 'deviceUID': deviceUID,
265
+ 'notefileID': notefileID
239
266
  };
240
267
  var queryParams = {};
241
268
  var headerParams = {};
242
269
  var formParams = {};
243
270
  var authNames = ['personalAccessToken'];
244
- var contentTypes = [];
271
+ var contentTypes = ['application/json'];
245
272
  var accepts = ['application/json'];
246
273
  var returnType = null;
247
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/enable', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
274
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
248
275
  }
249
276
 
250
277
  /**
251
- * Enable Device
278
+ * Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
252
279
  * @param {String} projectOrProductUID
253
280
  * @param {String} deviceUID
281
+ * @param {String} notefileID
282
+ * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
254
283
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
255
284
  */
256
285
  }, {
257
- key: "enableDevice",
258
- value: function enableDevice(projectOrProductUID, deviceUID) {
259
- return this.enableDeviceWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
286
+ key: "addQiNote",
287
+ value: function addQiNote(projectOrProductUID, deviceUID, notefileID, noteInput) {
288
+ return this.addQiNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteInput).then(function (response_and_data) {
260
289
  return response_and_data.data;
261
290
  });
262
291
  }
263
292
 
264
293
  /**
265
- * Get Device
294
+ * Delete Device
266
295
  * @param {String} projectOrProductUID
267
296
  * @param {String} deviceUID
268
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Device} and HTTP response
297
+ * @param {Boolean} purge
298
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
269
299
  */
270
300
  }, {
271
- key: "getDeviceWithHttpInfo",
272
- value: function getDeviceWithHttpInfo(projectOrProductUID, deviceUID) {
301
+ key: "deleteDeviceWithHttpInfo",
302
+ value: function deleteDeviceWithHttpInfo(projectOrProductUID, deviceUID, purge) {
273
303
  var postBody = null;
274
304
  // verify the required parameter 'projectOrProductUID' is set
275
305
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
276
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDevice");
306
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteDevice");
277
307
  }
278
308
  // verify the required parameter 'deviceUID' is set
279
309
  if (deviceUID === undefined || deviceUID === null) {
280
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDevice");
310
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling deleteDevice");
311
+ }
312
+ // verify the required parameter 'purge' is set
313
+ if (purge === undefined || purge === null) {
314
+ throw new _Error["default"]("Missing the required parameter 'purge' when calling deleteDevice");
281
315
  }
282
316
  var pathParams = {
283
317
  'projectOrProductUID': projectOrProductUID,
284
318
  'deviceUID': deviceUID
285
319
  };
286
- var queryParams = {};
320
+ var queryParams = {
321
+ 'purge': purge
322
+ };
287
323
  var headerParams = {};
288
324
  var formParams = {};
289
325
  var authNames = ['personalAccessToken'];
290
326
  var contentTypes = [];
291
327
  var accepts = ['application/json'];
292
- var returnType = _Device["default"];
293
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
328
+ var returnType = null;
329
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
294
330
  }
295
331
 
296
332
  /**
297
- * Get Device
333
+ * Delete Device
298
334
  * @param {String} projectOrProductUID
299
335
  * @param {String} deviceUID
300
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Device}
336
+ * @param {Boolean} purge
337
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
301
338
  */
302
339
  }, {
303
- key: "getDevice",
304
- value: function getDevice(projectOrProductUID, deviceUID) {
305
- return this.getDeviceWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
340
+ key: "deleteDevice",
341
+ value: function deleteDevice(projectOrProductUID, deviceUID, purge) {
342
+ return this.deleteDeviceWithHttpInfo(projectOrProductUID, deviceUID, purge).then(function (response_and_data) {
306
343
  return response_and_data.data;
307
344
  });
308
345
  }
309
346
 
310
347
  /**
311
- * Get environment variable hierarchy for a device
348
+ * Delete environment variable of a device
312
349
  * @param {String} projectOrProductUID
313
350
  * @param {String} deviceUID
314
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
351
+ * @param {String} key The environment variable key to delete.
352
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
315
353
  */
316
354
  }, {
317
- key: "getDeviceEnvironmentHierarchyWithHttpInfo",
318
- value: function getDeviceEnvironmentHierarchyWithHttpInfo(projectOrProductUID, deviceUID) {
355
+ key: "deleteDeviceEnvironmentVariableWithHttpInfo",
356
+ value: function deleteDeviceEnvironmentVariableWithHttpInfo(projectOrProductUID, deviceUID, key) {
319
357
  var postBody = null;
320
358
  // verify the required parameter 'projectOrProductUID' is set
321
359
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
322
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDeviceEnvironmentHierarchy");
360
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteDeviceEnvironmentVariable");
323
361
  }
324
362
  // verify the required parameter 'deviceUID' is set
325
363
  if (deviceUID === undefined || deviceUID === null) {
326
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentHierarchy");
364
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling deleteDeviceEnvironmentVariable");
365
+ }
366
+ // verify the required parameter 'key' is set
367
+ if (key === undefined || key === null) {
368
+ throw new _Error["default"]("Missing the required parameter 'key' when calling deleteDeviceEnvironmentVariable");
327
369
  }
328
370
  var pathParams = {
329
371
  'projectOrProductUID': projectOrProductUID,
330
- 'deviceUID': deviceUID
372
+ 'deviceUID': deviceUID,
373
+ 'key': key
331
374
  };
332
375
  var queryParams = {};
333
376
  var headerParams = {};
@@ -335,45 +378,58 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
335
378
  var authNames = ['personalAccessToken'];
336
379
  var contentTypes = [];
337
380
  var accepts = ['application/json'];
338
- var returnType = _EnvTreeJsonNode["default"];
339
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_hierarchy', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
381
+ var returnType = _EnvironmentVariables["default"];
382
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables/{key}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
340
383
  }
341
384
 
342
385
  /**
343
- * Get environment variable hierarchy for a device
386
+ * Delete environment variable of a device
344
387
  * @param {String} projectOrProductUID
345
388
  * @param {String} deviceUID
346
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
389
+ * @param {String} key The environment variable key to delete.
390
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
347
391
  */
348
392
  }, {
349
- key: "getDeviceEnvironmentHierarchy",
350
- value: function getDeviceEnvironmentHierarchy(projectOrProductUID, deviceUID) {
351
- return this.getDeviceEnvironmentHierarchyWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
393
+ key: "deleteDeviceEnvironmentVariable",
394
+ value: function deleteDeviceEnvironmentVariable(projectOrProductUID, deviceUID, key) {
395
+ return this.deleteDeviceEnvironmentVariableWithHttpInfo(projectOrProductUID, deviceUID, key).then(function (response_and_data) {
352
396
  return response_and_data.data;
353
397
  });
354
398
  }
355
399
 
356
400
  /**
357
- * Get environment variables of a device
401
+ * Delete a note from a .db or .qi notefile
358
402
  * @param {String} projectOrProductUID
359
403
  * @param {String} deviceUID
360
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response} and HTTP response
404
+ * @param {String} notefileID
405
+ * @param {String} noteID
406
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
361
407
  */
362
408
  }, {
363
- key: "getDeviceEnvironmentVariablesWithHttpInfo",
364
- value: function getDeviceEnvironmentVariablesWithHttpInfo(projectOrProductUID, deviceUID) {
409
+ key: "deleteNoteWithHttpInfo",
410
+ value: function deleteNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID) {
365
411
  var postBody = null;
366
412
  // verify the required parameter 'projectOrProductUID' is set
367
413
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
368
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDeviceEnvironmentVariables");
414
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteNote");
369
415
  }
370
416
  // verify the required parameter 'deviceUID' is set
371
417
  if (deviceUID === undefined || deviceUID === null) {
372
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentVariables");
418
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling deleteNote");
419
+ }
420
+ // verify the required parameter 'notefileID' is set
421
+ if (notefileID === undefined || notefileID === null) {
422
+ throw new _Error["default"]("Missing the required parameter 'notefileID' when calling deleteNote");
423
+ }
424
+ // verify the required parameter 'noteID' is set
425
+ if (noteID === undefined || noteID === null) {
426
+ throw new _Error["default"]("Missing the required parameter 'noteID' when calling deleteNote");
373
427
  }
374
428
  var pathParams = {
375
429
  'projectOrProductUID': projectOrProductUID,
376
- 'deviceUID': deviceUID
430
+ 'deviceUID': deviceUID,
431
+ 'notefileID': notefileID,
432
+ 'noteID': noteID
377
433
  };
378
434
  var queryParams = {};
379
435
  var headerParams = {};
@@ -381,146 +437,141 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
381
437
  var authNames = ['personalAccessToken'];
382
438
  var contentTypes = [];
383
439
  var accepts = ['application/json'];
384
- var returnType = _GetDeviceEnvironmentVariablesByPin200Response["default"];
385
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
440
+ var returnType = null;
441
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
386
442
  }
387
443
 
388
444
  /**
389
- * Get environment variables of a device
445
+ * Delete a note from a .db or .qi notefile
390
446
  * @param {String} projectOrProductUID
391
447
  * @param {String} deviceUID
392
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response}
448
+ * @param {String} notefileID
449
+ * @param {String} noteID
450
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
393
451
  */
394
452
  }, {
395
- key: "getDeviceEnvironmentVariables",
396
- value: function getDeviceEnvironmentVariables(projectOrProductUID, deviceUID) {
397
- return this.getDeviceEnvironmentVariablesWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
453
+ key: "deleteNote",
454
+ value: function deleteNote(projectOrProductUID, deviceUID, notefileID, noteID) {
455
+ return this.deleteNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID).then(function (response_and_data) {
398
456
  return response_and_data.data;
399
457
  });
400
458
  }
401
459
 
402
460
  /**
403
- * Get environment variables of a device with device pin authorization
404
- * @param {String} productUID
461
+ * Deletes Notefiles and the Notes they contain.
462
+ * @param {String} projectOrProductUID
405
463
  * @param {String} deviceUID
406
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response} and HTTP response
464
+ * @param {module:model/DeleteNotefilesRequest} deleteNotefilesRequest
465
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
407
466
  */
408
467
  }, {
409
- key: "getDeviceEnvironmentVariablesByPinWithHttpInfo",
410
- value: function getDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID) {
411
- var postBody = null;
412
- // verify the required parameter 'productUID' is set
413
- if (productUID === undefined || productUID === null) {
414
- throw new _Error["default"]("Missing the required parameter 'productUID' when calling getDeviceEnvironmentVariablesByPin");
468
+ key: "deleteNotefilesWithHttpInfo",
469
+ value: function deleteNotefilesWithHttpInfo(projectOrProductUID, deviceUID, deleteNotefilesRequest) {
470
+ var postBody = deleteNotefilesRequest;
471
+ // verify the required parameter 'projectOrProductUID' is set
472
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
473
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteNotefiles");
415
474
  }
416
475
  // verify the required parameter 'deviceUID' is set
417
476
  if (deviceUID === undefined || deviceUID === null) {
418
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentVariablesByPin");
477
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling deleteNotefiles");
478
+ }
479
+ // verify the required parameter 'deleteNotefilesRequest' is set
480
+ if (deleteNotefilesRequest === undefined || deleteNotefilesRequest === null) {
481
+ throw new _Error["default"]("Missing the required parameter 'deleteNotefilesRequest' when calling deleteNotefiles");
419
482
  }
420
483
  var pathParams = {
421
- 'productUID': productUID,
484
+ 'projectOrProductUID': projectOrProductUID,
422
485
  'deviceUID': deviceUID
423
486
  };
424
487
  var queryParams = {};
425
488
  var headerParams = {};
426
489
  var formParams = {};
427
- var authNames = ['pin'];
428
- var contentTypes = [];
490
+ var authNames = ['personalAccessToken'];
491
+ var contentTypes = ['application/json'];
429
492
  var accepts = ['application/json'];
430
- var returnType = _GetDeviceEnvironmentVariablesByPin200Response["default"];
431
- return this.apiClient.callApi('/v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
493
+ var returnType = null;
494
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
432
495
  }
433
496
 
434
497
  /**
435
- * Get environment variables of a device with device pin authorization
436
- * @param {String} productUID
498
+ * Deletes Notefiles and the Notes they contain.
499
+ * @param {String} projectOrProductUID
437
500
  * @param {String} deviceUID
438
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response}
501
+ * @param {module:model/DeleteNotefilesRequest} deleteNotefilesRequest
502
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
439
503
  */
440
504
  }, {
441
- key: "getDeviceEnvironmentVariablesByPin",
442
- value: function getDeviceEnvironmentVariablesByPin(productUID, deviceUID) {
443
- return this.getDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID).then(function (response_and_data) {
505
+ key: "deleteNotefiles",
506
+ value: function deleteNotefiles(projectOrProductUID, deviceUID, deleteNotefilesRequest) {
507
+ return this.deleteNotefilesWithHttpInfo(projectOrProductUID, deviceUID, deleteNotefilesRequest).then(function (response_and_data) {
444
508
  return response_and_data.data;
445
509
  });
446
510
  }
447
511
 
448
512
  /**
449
- * Get Device Health Log
513
+ * Disable Device
450
514
  * @param {String} projectOrProductUID
451
515
  * @param {String} deviceUID
452
- * @param {Object} opts Optional parameters
453
- * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
454
- * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
455
- * @param {Array.<module:model/String>} opts.logType Return only specified log types
456
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceHealthLog200Response} and HTTP response
516
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
457
517
  */
458
518
  }, {
459
- key: "getDeviceHealthLogWithHttpInfo",
460
- value: function getDeviceHealthLogWithHttpInfo(projectOrProductUID, deviceUID, opts) {
461
- opts = opts || {};
519
+ key: "disableDeviceWithHttpInfo",
520
+ value: function disableDeviceWithHttpInfo(projectOrProductUID, deviceUID) {
462
521
  var postBody = null;
463
522
  // verify the required parameter 'projectOrProductUID' is set
464
523
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
465
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDeviceHealthLog");
524
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling disableDevice");
466
525
  }
467
526
  // verify the required parameter 'deviceUID' is set
468
527
  if (deviceUID === undefined || deviceUID === null) {
469
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceHealthLog");
528
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling disableDevice");
470
529
  }
471
530
  var pathParams = {
472
531
  'projectOrProductUID': projectOrProductUID,
473
532
  'deviceUID': deviceUID
474
533
  };
475
- var queryParams = {
476
- 'startDate': opts['startDate'],
477
- 'endDate': opts['endDate'],
478
- 'log_type': this.apiClient.buildCollectionParam(opts['logType'], 'multi')
479
- };
534
+ var queryParams = {};
480
535
  var headerParams = {};
481
536
  var formParams = {};
482
537
  var authNames = ['personalAccessToken'];
483
538
  var contentTypes = [];
484
539
  var accepts = ['application/json'];
485
- var returnType = _GetDeviceHealthLog200Response["default"];
486
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/health-log', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
540
+ var returnType = null;
541
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/disable', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
487
542
  }
488
543
 
489
544
  /**
490
- * Get Device Health Log
545
+ * Disable Device
491
546
  * @param {String} projectOrProductUID
492
547
  * @param {String} deviceUID
493
- * @param {Object} opts Optional parameters
494
- * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
495
- * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
496
- * @param {Array.<module:model/String>} opts.logType Return only specified log types
497
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceHealthLog200Response}
548
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
498
549
  */
499
550
  }, {
500
- key: "getDeviceHealthLog",
501
- value: function getDeviceHealthLog(projectOrProductUID, deviceUID, opts) {
502
- return this.getDeviceHealthLogWithHttpInfo(projectOrProductUID, deviceUID, opts).then(function (response_and_data) {
551
+ key: "disableDevice",
552
+ value: function disableDevice(projectOrProductUID, deviceUID) {
553
+ return this.disableDeviceWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
503
554
  return response_and_data.data;
504
555
  });
505
556
  }
506
557
 
507
558
  /**
508
- * Get Device Latest Events
559
+ * Disable Connectivity Assurance
509
560
  * @param {String} projectOrProductUID
510
561
  * @param {String} deviceUID
511
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceLatest200Response} and HTTP response
562
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
512
563
  */
513
564
  }, {
514
- key: "getDeviceLatestWithHttpInfo",
515
- value: function getDeviceLatestWithHttpInfo(projectOrProductUID, deviceUID) {
565
+ key: "disableDeviceConnectivityAssuranceWithHttpInfo",
566
+ value: function disableDeviceConnectivityAssuranceWithHttpInfo(projectOrProductUID, deviceUID) {
516
567
  var postBody = null;
517
568
  // verify the required parameter 'projectOrProductUID' is set
518
569
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
519
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDeviceLatest");
570
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling disableDeviceConnectivityAssurance");
520
571
  }
521
572
  // verify the required parameter 'deviceUID' is set
522
573
  if (deviceUID === undefined || deviceUID === null) {
523
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceLatest");
574
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling disableDeviceConnectivityAssurance");
524
575
  }
525
576
  var pathParams = {
526
577
  'projectOrProductUID': projectOrProductUID,
@@ -532,41 +583,41 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
532
583
  var authNames = ['personalAccessToken'];
533
584
  var contentTypes = [];
534
585
  var accepts = ['application/json'];
535
- var returnType = _GetDeviceLatest200Response["default"];
536
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/latest', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
586
+ var returnType = null;
587
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/disable-connectivity-assurance', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
537
588
  }
538
589
 
539
590
  /**
540
- * Get Device Latest Events
591
+ * Disable Connectivity Assurance
541
592
  * @param {String} projectOrProductUID
542
593
  * @param {String} deviceUID
543
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceLatest200Response}
594
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
544
595
  */
545
596
  }, {
546
- key: "getDeviceLatest",
547
- value: function getDeviceLatest(projectOrProductUID, deviceUID) {
548
- return this.getDeviceLatestWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
597
+ key: "disableDeviceConnectivityAssurance",
598
+ value: function disableDeviceConnectivityAssurance(projectOrProductUID, deviceUID) {
599
+ return this.disableDeviceConnectivityAssuranceWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
549
600
  return response_and_data.data;
550
601
  });
551
602
  }
552
603
 
553
604
  /**
554
- * Get Data Plans associated with the device, this include the primary sim, any external sim, as well as any satellite connections.
605
+ * Enable Device
555
606
  * @param {String} projectOrProductUID
556
607
  * @param {String} deviceUID
557
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevicePlans200Response} and HTTP response
608
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
558
609
  */
559
610
  }, {
560
- key: "getDevicePlansWithHttpInfo",
561
- value: function getDevicePlansWithHttpInfo(projectOrProductUID, deviceUID) {
611
+ key: "enableDeviceWithHttpInfo",
612
+ value: function enableDeviceWithHttpInfo(projectOrProductUID, deviceUID) {
562
613
  var postBody = null;
563
614
  // verify the required parameter 'projectOrProductUID' is set
564
615
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
565
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDevicePlans");
616
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling enableDevice");
566
617
  }
567
618
  // verify the required parameter 'deviceUID' is set
568
619
  if (deviceUID === undefined || deviceUID === null) {
569
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDevicePlans");
620
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling enableDevice");
570
621
  }
571
622
  var pathParams = {
572
623
  'projectOrProductUID': projectOrProductUID,
@@ -578,41 +629,41 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
578
629
  var authNames = ['personalAccessToken'];
579
630
  var contentTypes = [];
580
631
  var accepts = ['application/json'];
581
- var returnType = _GetDevicePlans200Response["default"];
582
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/plans', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
632
+ var returnType = null;
633
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/enable', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
583
634
  }
584
635
 
585
636
  /**
586
- * Get Data Plans associated with the device, this include the primary sim, any external sim, as well as any satellite connections.
637
+ * Enable Device
587
638
  * @param {String} projectOrProductUID
588
639
  * @param {String} deviceUID
589
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevicePlans200Response}
640
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
590
641
  */
591
642
  }, {
592
- key: "getDevicePlans",
593
- value: function getDevicePlans(projectOrProductUID, deviceUID) {
594
- return this.getDevicePlansWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
643
+ key: "enableDevice",
644
+ value: function enableDevice(projectOrProductUID, deviceUID) {
645
+ return this.enableDeviceWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
595
646
  return response_and_data.data;
596
647
  });
597
648
  }
598
649
 
599
650
  /**
600
- * Get Device Public Key
651
+ * Enable Connectivity Assurance
601
652
  * @param {String} projectOrProductUID
602
653
  * @param {String} deviceUID
603
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevicePublicKey200Response} and HTTP response
654
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
604
655
  */
605
656
  }, {
606
- key: "getDevicePublicKeyWithHttpInfo",
607
- value: function getDevicePublicKeyWithHttpInfo(projectOrProductUID, deviceUID) {
657
+ key: "enableDeviceConnectivityAssuranceWithHttpInfo",
658
+ value: function enableDeviceConnectivityAssuranceWithHttpInfo(projectOrProductUID, deviceUID) {
608
659
  var postBody = null;
609
660
  // verify the required parameter 'projectOrProductUID' is set
610
661
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
611
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDevicePublicKey");
662
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling enableDeviceConnectivityAssurance");
612
663
  }
613
664
  // verify the required parameter 'deviceUID' is set
614
665
  if (deviceUID === undefined || deviceUID === null) {
615
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDevicePublicKey");
666
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling enableDeviceConnectivityAssurance");
616
667
  }
617
668
  var pathParams = {
618
669
  'projectOrProductUID': projectOrProductUID,
@@ -624,515 +675,404 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
624
675
  var authNames = ['personalAccessToken'];
625
676
  var contentTypes = [];
626
677
  var accepts = ['application/json'];
627
- var returnType = _GetDevicePublicKey200Response["default"];
628
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/public-key', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
678
+ var returnType = null;
679
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/enable-connectivity-assurance', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
629
680
  }
630
681
 
631
682
  /**
632
- * Get Device Public Key
683
+ * Enable Connectivity Assurance
633
684
  * @param {String} projectOrProductUID
634
685
  * @param {String} deviceUID
635
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevicePublicKey200Response}
686
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
636
687
  */
637
688
  }, {
638
- key: "getDevicePublicKey",
639
- value: function getDevicePublicKey(projectOrProductUID, deviceUID) {
640
- return this.getDevicePublicKeyWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
689
+ key: "enableDeviceConnectivityAssurance",
690
+ value: function enableDeviceConnectivityAssurance(projectOrProductUID, deviceUID) {
691
+ return this.enableDeviceConnectivityAssuranceWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
641
692
  return response_and_data.data;
642
693
  });
643
694
  }
644
695
 
645
696
  /**
646
- * Get Device Sessions
697
+ * Get a note from a .db or .qi notefile
647
698
  * @param {String} projectOrProductUID
648
699
  * @param {String} deviceUID
700
+ * @param {String} notefileID
701
+ * @param {String} noteID
649
702
  * @param {Object} opts Optional parameters
650
- * @param {Number} opts.pageSize (default to 50)
651
- * @param {Number} opts.pageNum (default to 1)
652
- * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
653
- * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
654
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceSessions200Response} and HTTP response
703
+ * @param {Boolean} opts._delete Whether to delete the note from the DB notefile
704
+ * @param {Boolean} opts.deleted Whether to return deleted notes
705
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDbNote200Response} and HTTP response
655
706
  */
656
707
  }, {
657
- key: "getDeviceSessionsWithHttpInfo",
658
- value: function getDeviceSessionsWithHttpInfo(projectOrProductUID, deviceUID, opts) {
708
+ key: "getDbNoteWithHttpInfo",
709
+ value: function getDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, opts) {
659
710
  opts = opts || {};
660
711
  var postBody = null;
661
712
  // verify the required parameter 'projectOrProductUID' is set
662
713
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
663
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDeviceSessions");
714
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDbNote");
664
715
  }
665
716
  // verify the required parameter 'deviceUID' is set
666
717
  if (deviceUID === undefined || deviceUID === null) {
667
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceSessions");
718
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDbNote");
719
+ }
720
+ // verify the required parameter 'notefileID' is set
721
+ if (notefileID === undefined || notefileID === null) {
722
+ throw new _Error["default"]("Missing the required parameter 'notefileID' when calling getDbNote");
723
+ }
724
+ // verify the required parameter 'noteID' is set
725
+ if (noteID === undefined || noteID === null) {
726
+ throw new _Error["default"]("Missing the required parameter 'noteID' when calling getDbNote");
668
727
  }
669
728
  var pathParams = {
670
729
  'projectOrProductUID': projectOrProductUID,
671
- 'deviceUID': deviceUID
730
+ 'deviceUID': deviceUID,
731
+ 'notefileID': notefileID,
732
+ 'noteID': noteID
672
733
  };
673
734
  var queryParams = {
674
- 'pageSize': opts['pageSize'],
675
- 'pageNum': opts['pageNum'],
676
- 'startDate': opts['startDate'],
677
- 'endDate': opts['endDate']
735
+ 'delete': opts['_delete'],
736
+ 'deleted': opts['deleted']
678
737
  };
679
738
  var headerParams = {};
680
739
  var formParams = {};
681
740
  var authNames = ['personalAccessToken'];
682
741
  var contentTypes = [];
683
742
  var accepts = ['application/json'];
684
- var returnType = _GetDeviceSessions200Response["default"];
685
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/sessions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
743
+ var returnType = _GetDbNote200Response["default"];
744
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
686
745
  }
687
746
 
688
747
  /**
689
- * Get Device Sessions
748
+ * Get a note from a .db or .qi notefile
690
749
  * @param {String} projectOrProductUID
691
750
  * @param {String} deviceUID
751
+ * @param {String} notefileID
752
+ * @param {String} noteID
692
753
  * @param {Object} opts Optional parameters
693
- * @param {Number} opts.pageSize (default to 50)
694
- * @param {Number} opts.pageNum (default to 1)
695
- * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
696
- * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
697
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceSessions200Response}
754
+ * @param {Boolean} opts._delete Whether to delete the note from the DB notefile
755
+ * @param {Boolean} opts.deleted Whether to return deleted notes
756
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDbNote200Response}
698
757
  */
699
758
  }, {
700
- key: "getDeviceSessions",
701
- value: function getDeviceSessions(projectOrProductUID, deviceUID, opts) {
702
- return this.getDeviceSessionsWithHttpInfo(projectOrProductUID, deviceUID, opts).then(function (response_and_data) {
759
+ key: "getDbNote",
760
+ value: function getDbNote(projectOrProductUID, deviceUID, notefileID, noteID, opts) {
761
+ return this.getDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, opts).then(function (response_and_data) {
703
762
  return response_and_data.data;
704
763
  });
705
764
  }
706
765
 
707
766
  /**
708
- * Get Device Public Keys of a Project
767
+ * Get Device
709
768
  * @param {String} projectOrProductUID
710
- * @param {Object} opts Optional parameters
711
- * @param {Number} opts.pageSize (default to 50)
712
- * @param {Number} opts.pageNum (default to 1)
713
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectDevicePublicKeys200Response} and HTTP response
769
+ * @param {String} deviceUID
770
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Device} and HTTP response
714
771
  */
715
772
  }, {
716
- key: "getProjectDevicePublicKeysWithHttpInfo",
717
- value: function getProjectDevicePublicKeysWithHttpInfo(projectOrProductUID, opts) {
718
- opts = opts || {};
773
+ key: "getDeviceWithHttpInfo",
774
+ value: function getDeviceWithHttpInfo(projectOrProductUID, deviceUID) {
719
775
  var postBody = null;
720
776
  // verify the required parameter 'projectOrProductUID' is set
721
777
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
722
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectDevicePublicKeys");
778
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDevice");
779
+ }
780
+ // verify the required parameter 'deviceUID' is set
781
+ if (deviceUID === undefined || deviceUID === null) {
782
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDevice");
723
783
  }
724
784
  var pathParams = {
725
- 'projectOrProductUID': projectOrProductUID
726
- };
727
- var queryParams = {
728
- 'pageSize': opts['pageSize'],
729
- 'pageNum': opts['pageNum']
785
+ 'projectOrProductUID': projectOrProductUID,
786
+ 'deviceUID': deviceUID
730
787
  };
788
+ var queryParams = {};
731
789
  var headerParams = {};
732
790
  var formParams = {};
733
791
  var authNames = ['personalAccessToken'];
734
792
  var contentTypes = [];
735
793
  var accepts = ['application/json'];
736
- var returnType = _GetProjectDevicePublicKeys200Response["default"];
737
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/public-keys', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
794
+ var returnType = _Device["default"];
795
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
738
796
  }
739
797
 
740
798
  /**
741
- * Get Device Public Keys of a Project
799
+ * Get Device
742
800
  * @param {String} projectOrProductUID
743
- * @param {Object} opts Optional parameters
744
- * @param {Number} opts.pageSize (default to 50)
745
- * @param {Number} opts.pageNum (default to 1)
746
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectDevicePublicKeys200Response}
801
+ * @param {String} deviceUID
802
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Device}
747
803
  */
748
804
  }, {
749
- key: "getProjectDevicePublicKeys",
750
- value: function getProjectDevicePublicKeys(projectOrProductUID, opts) {
751
- return this.getProjectDevicePublicKeysWithHttpInfo(projectOrProductUID, opts).then(function (response_and_data) {
805
+ key: "getDevice",
806
+ value: function getDevice(projectOrProductUID, deviceUID) {
807
+ return this.getDeviceWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
752
808
  return response_and_data.data;
753
809
  });
754
810
  }
755
811
 
756
812
  /**
757
- * Get Devices of a Project
813
+ * Get environment variable hierarchy for a device
758
814
  * @param {String} projectOrProductUID
759
- * @param {Object} opts Optional parameters
760
- * @param {Number} opts.pageSize (default to 50)
761
- * @param {Number} opts.pageNum (default to 1)
762
- * @param {Array.<String>} opts.deviceUID A Device UID.
763
- * @param {Array.<String>} opts.tag Tag filter
764
- * @param {Array.<String>} opts.serialNumber Serial number filter
765
- * @param {Array.<String>} opts.fleetUID
766
- * @param {Array.<String>} opts.notecardFirmware Firmware version filter
767
- * @param {Array.<String>} opts.location Location filter
768
- * @param {Array.<String>} opts.hostFirmware Host firmware filter
769
- * @param {Array.<String>} opts.productUID
770
- * @param {Array.<String>} opts.sku SKU filter
771
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectDevices200Response} and HTTP response
815
+ * @param {String} deviceUID
816
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvTreeJsonNode} and HTTP response
772
817
  */
773
818
  }, {
774
- key: "getProjectDevicesWithHttpInfo",
775
- value: function getProjectDevicesWithHttpInfo(projectOrProductUID, opts) {
776
- opts = opts || {};
819
+ key: "getDeviceEnvironmentHierarchyWithHttpInfo",
820
+ value: function getDeviceEnvironmentHierarchyWithHttpInfo(projectOrProductUID, deviceUID) {
777
821
  var postBody = null;
778
822
  // verify the required parameter 'projectOrProductUID' is set
779
823
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
780
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectDevices");
824
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDeviceEnvironmentHierarchy");
825
+ }
826
+ // verify the required parameter 'deviceUID' is set
827
+ if (deviceUID === undefined || deviceUID === null) {
828
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentHierarchy");
781
829
  }
782
830
  var pathParams = {
783
- 'projectOrProductUID': projectOrProductUID
784
- };
785
- var queryParams = {
786
- 'pageSize': opts['pageSize'],
787
- 'pageNum': opts['pageNum'],
788
- 'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
789
- 'tag': this.apiClient.buildCollectionParam(opts['tag'], 'multi'),
790
- 'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
791
- 'fleetUID': this.apiClient.buildCollectionParam(opts['fleetUID'], 'multi'),
792
- 'notecardFirmware': this.apiClient.buildCollectionParam(opts['notecardFirmware'], 'multi'),
793
- 'location': this.apiClient.buildCollectionParam(opts['location'], 'multi'),
794
- 'hostFirmware': this.apiClient.buildCollectionParam(opts['hostFirmware'], 'multi'),
795
- 'productUID': this.apiClient.buildCollectionParam(opts['productUID'], 'multi'),
796
- 'sku': this.apiClient.buildCollectionParam(opts['sku'], 'multi')
831
+ 'projectOrProductUID': projectOrProductUID,
832
+ 'deviceUID': deviceUID
797
833
  };
834
+ var queryParams = {};
798
835
  var headerParams = {};
799
836
  var formParams = {};
800
837
  var authNames = ['personalAccessToken'];
801
838
  var contentTypes = [];
802
839
  var accepts = ['application/json'];
803
- var returnType = _GetProjectDevices200Response["default"];
804
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
840
+ var returnType = _EnvTreeJsonNode["default"];
841
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_hierarchy', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
805
842
  }
806
843
 
807
844
  /**
808
- * Get Devices of a Project
845
+ * Get environment variable hierarchy for a device
809
846
  * @param {String} projectOrProductUID
810
- * @param {Object} opts Optional parameters
811
- * @param {Number} opts.pageSize (default to 50)
812
- * @param {Number} opts.pageNum (default to 1)
813
- * @param {Array.<String>} opts.deviceUID A Device UID.
814
- * @param {Array.<String>} opts.tag Tag filter
815
- * @param {Array.<String>} opts.serialNumber Serial number filter
816
- * @param {Array.<String>} opts.fleetUID
817
- * @param {Array.<String>} opts.notecardFirmware Firmware version filter
818
- * @param {Array.<String>} opts.location Location filter
819
- * @param {Array.<String>} opts.hostFirmware Host firmware filter
820
- * @param {Array.<String>} opts.productUID
821
- * @param {Array.<String>} opts.sku SKU filter
822
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectDevices200Response}
847
+ * @param {String} deviceUID
848
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvTreeJsonNode}
823
849
  */
824
850
  }, {
825
- key: "getProjectDevices",
826
- value: function getProjectDevices(projectOrProductUID, opts) {
827
- return this.getProjectDevicesWithHttpInfo(projectOrProductUID, opts).then(function (response_and_data) {
851
+ key: "getDeviceEnvironmentHierarchy",
852
+ value: function getDeviceEnvironmentHierarchy(projectOrProductUID, deviceUID) {
853
+ return this.getDeviceEnvironmentHierarchyWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
828
854
  return response_and_data.data;
829
855
  });
830
856
  }
831
857
 
832
858
  /**
833
- * Get Devices of a Fleet within a Project
859
+ * Get environment variables of a device
834
860
  * @param {String} projectOrProductUID
835
- * @param {String} fleetUID
836
- * @param {Object} opts Optional parameters
837
- * @param {Number} opts.pageSize (default to 50)
838
- * @param {Number} opts.pageNum (default to 1)
839
- * @param {Array.<String>} opts.deviceUID A Device UID.
840
- * @param {Array.<String>} opts.tag Tag filter
841
- * @param {Array.<String>} opts.serialNumber Serial number filter
842
- * @param {Array.<String>} opts.notecardFirmware Firmware version filter
843
- * @param {Array.<String>} opts.location Location filter
844
- * @param {Array.<String>} opts.hostFirmware Host firmware filter
845
- * @param {Array.<String>} opts.productUID
846
- * @param {Array.<String>} opts.sku SKU filter
847
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectDevices200Response} and HTTP response
861
+ * @param {String} deviceUID
862
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response} and HTTP response
848
863
  */
849
864
  }, {
850
- key: "getProjectFleetDevicesWithHttpInfo",
851
- value: function getProjectFleetDevicesWithHttpInfo(projectOrProductUID, fleetUID, opts) {
852
- opts = opts || {};
865
+ key: "getDeviceEnvironmentVariablesWithHttpInfo",
866
+ value: function getDeviceEnvironmentVariablesWithHttpInfo(projectOrProductUID, deviceUID) {
853
867
  var postBody = null;
854
868
  // verify the required parameter 'projectOrProductUID' is set
855
869
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
856
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectFleetDevices");
870
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDeviceEnvironmentVariables");
857
871
  }
858
- // verify the required parameter 'fleetUID' is set
859
- if (fleetUID === undefined || fleetUID === null) {
860
- throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getProjectFleetDevices");
872
+ // verify the required parameter 'deviceUID' is set
873
+ if (deviceUID === undefined || deviceUID === null) {
874
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentVariables");
861
875
  }
862
876
  var pathParams = {
863
877
  'projectOrProductUID': projectOrProductUID,
864
- 'fleetUID': fleetUID
865
- };
866
- var queryParams = {
867
- 'pageSize': opts['pageSize'],
868
- 'pageNum': opts['pageNum'],
869
- 'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
870
- 'tag': this.apiClient.buildCollectionParam(opts['tag'], 'multi'),
871
- 'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
872
- 'notecardFirmware': this.apiClient.buildCollectionParam(opts['notecardFirmware'], 'multi'),
873
- 'location': this.apiClient.buildCollectionParam(opts['location'], 'multi'),
874
- 'hostFirmware': this.apiClient.buildCollectionParam(opts['hostFirmware'], 'multi'),
875
- 'productUID': this.apiClient.buildCollectionParam(opts['productUID'], 'multi'),
876
- 'sku': this.apiClient.buildCollectionParam(opts['sku'], 'multi')
878
+ 'deviceUID': deviceUID
877
879
  };
880
+ var queryParams = {};
878
881
  var headerParams = {};
879
882
  var formParams = {};
880
883
  var authNames = ['personalAccessToken'];
881
884
  var contentTypes = [];
882
885
  var accepts = ['application/json'];
883
- var returnType = _GetProjectDevices200Response["default"];
884
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/devices', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
886
+ var returnType = _GetDeviceEnvironmentVariablesByPin200Response["default"];
887
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
885
888
  }
886
889
 
887
890
  /**
888
- * Get Devices of a Fleet within a Project
891
+ * Get environment variables of a device
889
892
  * @param {String} projectOrProductUID
890
- * @param {String} fleetUID
891
- * @param {Object} opts Optional parameters
892
- * @param {Number} opts.pageSize (default to 50)
893
- * @param {Number} opts.pageNum (default to 1)
894
- * @param {Array.<String>} opts.deviceUID A Device UID.
895
- * @param {Array.<String>} opts.tag Tag filter
896
- * @param {Array.<String>} opts.serialNumber Serial number filter
897
- * @param {Array.<String>} opts.notecardFirmware Firmware version filter
898
- * @param {Array.<String>} opts.location Location filter
899
- * @param {Array.<String>} opts.hostFirmware Host firmware filter
900
- * @param {Array.<String>} opts.productUID
901
- * @param {Array.<String>} opts.sku SKU filter
902
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectDevices200Response}
893
+ * @param {String} deviceUID
894
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response}
903
895
  */
904
896
  }, {
905
- key: "getProjectFleetDevices",
906
- value: function getProjectFleetDevices(projectOrProductUID, fleetUID, opts) {
907
- return this.getProjectFleetDevicesWithHttpInfo(projectOrProductUID, fleetUID, opts).then(function (response_and_data) {
897
+ key: "getDeviceEnvironmentVariables",
898
+ value: function getDeviceEnvironmentVariables(projectOrProductUID, deviceUID) {
899
+ return this.getDeviceEnvironmentVariablesWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
908
900
  return response_and_data.data;
909
901
  });
910
902
  }
911
903
 
912
904
  /**
913
- * Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
914
- * @param {String} projectOrProductUID
905
+ * Get environment variables of a device with device pin authorization
906
+ * @param {String} productUID
915
907
  * @param {String} deviceUID
916
- * @param {String} notefileID
917
- * @param {module:model/Note} note Body or payload of note to be added to the device
918
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
908
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response} and HTTP response
919
909
  */
920
910
  }, {
921
- key: "handleNoteAddWithHttpInfo",
922
- value: function handleNoteAddWithHttpInfo(projectOrProductUID, deviceUID, notefileID, note) {
923
- var postBody = note;
924
- // verify the required parameter 'projectOrProductUID' is set
925
- if (projectOrProductUID === undefined || projectOrProductUID === null) {
926
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling handleNoteAdd");
911
+ key: "getDeviceEnvironmentVariablesByPinWithHttpInfo",
912
+ value: function getDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID) {
913
+ var postBody = null;
914
+ // verify the required parameter 'productUID' is set
915
+ if (productUID === undefined || productUID === null) {
916
+ throw new _Error["default"]("Missing the required parameter 'productUID' when calling getDeviceEnvironmentVariablesByPin");
927
917
  }
928
918
  // verify the required parameter 'deviceUID' is set
929
919
  if (deviceUID === undefined || deviceUID === null) {
930
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling handleNoteAdd");
931
- }
932
- // verify the required parameter 'notefileID' is set
933
- if (notefileID === undefined || notefileID === null) {
934
- throw new _Error["default"]("Missing the required parameter 'notefileID' when calling handleNoteAdd");
935
- }
936
- // verify the required parameter 'note' is set
937
- if (note === undefined || note === null) {
938
- throw new _Error["default"]("Missing the required parameter 'note' when calling handleNoteAdd");
920
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentVariablesByPin");
939
921
  }
940
922
  var pathParams = {
941
- 'projectOrProductUID': projectOrProductUID,
942
- 'deviceUID': deviceUID,
943
- 'notefileID': notefileID
923
+ 'productUID': productUID,
924
+ 'deviceUID': deviceUID
944
925
  };
945
926
  var queryParams = {};
946
927
  var headerParams = {};
947
928
  var formParams = {};
948
- var authNames = ['personalAccessToken'];
949
- var contentTypes = ['application/json'];
929
+ var authNames = ['pin'];
930
+ var contentTypes = [];
950
931
  var accepts = ['application/json'];
951
- var returnType = null;
952
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
932
+ var returnType = _GetDeviceEnvironmentVariablesByPin200Response["default"];
933
+ return this.apiClient.callApi('/v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
953
934
  }
954
935
 
955
936
  /**
956
- * Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
957
- * @param {String} projectOrProductUID
937
+ * Get environment variables of a device with device pin authorization
938
+ * @param {String} productUID
958
939
  * @param {String} deviceUID
959
- * @param {String} notefileID
960
- * @param {module:model/Note} note Body or payload of note to be added to the device
961
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}
940
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariablesByPin200Response}
962
941
  */
963
942
  }, {
964
- key: "handleNoteAdd",
965
- value: function handleNoteAdd(projectOrProductUID, deviceUID, notefileID, note) {
966
- return this.handleNoteAddWithHttpInfo(projectOrProductUID, deviceUID, notefileID, note).then(function (response_and_data) {
943
+ key: "getDeviceEnvironmentVariablesByPin",
944
+ value: function getDeviceEnvironmentVariablesByPin(productUID, deviceUID) {
945
+ return this.getDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID).then(function (response_and_data) {
967
946
  return response_and_data.data;
968
947
  });
969
948
  }
970
949
 
971
950
  /**
972
- * Incrementally retrieve changes within a specific Notefile.
951
+ * Get Device Health Log
973
952
  * @param {String} projectOrProductUID
974
953
  * @param {String} deviceUID
975
- * @param {String} notefileID
976
954
  * @param {Object} opts Optional parameters
977
- * @param {Number} opts.max The maximum number of Notes to return in the request.
978
- * @param {Boolean} opts.deleted true to return deleted notes.
979
- * @param {Boolean} opts._delete true to delete the notes returned by the request.
980
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/HandleNoteChanges200Response} and HTTP response
955
+ * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
956
+ * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
957
+ * @param {Array.<module:model/String>} opts.logType Return only specified log types
958
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceHealthLog200Response} and HTTP response
981
959
  */
982
960
  }, {
983
- key: "handleNoteChangesWithHttpInfo",
984
- value: function handleNoteChangesWithHttpInfo(projectOrProductUID, deviceUID, notefileID, opts) {
961
+ key: "getDeviceHealthLogWithHttpInfo",
962
+ value: function getDeviceHealthLogWithHttpInfo(projectOrProductUID, deviceUID, opts) {
985
963
  opts = opts || {};
986
964
  var postBody = null;
987
965
  // verify the required parameter 'projectOrProductUID' is set
988
966
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
989
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling handleNoteChanges");
967
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDeviceHealthLog");
990
968
  }
991
969
  // verify the required parameter 'deviceUID' is set
992
970
  if (deviceUID === undefined || deviceUID === null) {
993
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling handleNoteChanges");
994
- }
995
- // verify the required parameter 'notefileID' is set
996
- if (notefileID === undefined || notefileID === null) {
997
- throw new _Error["default"]("Missing the required parameter 'notefileID' when calling handleNoteChanges");
971
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceHealthLog");
998
972
  }
999
973
  var pathParams = {
1000
974
  'projectOrProductUID': projectOrProductUID,
1001
- 'deviceUID': deviceUID,
1002
- 'notefileID': notefileID
975
+ 'deviceUID': deviceUID
1003
976
  };
1004
977
  var queryParams = {
1005
- 'max': opts['max'],
1006
- 'deleted': opts['deleted'],
1007
- 'delete': opts['_delete']
978
+ 'startDate': opts['startDate'],
979
+ 'endDate': opts['endDate'],
980
+ 'log_type': this.apiClient.buildCollectionParam(opts['logType'], 'multi')
1008
981
  };
1009
982
  var headerParams = {};
1010
983
  var formParams = {};
1011
984
  var authNames = ['personalAccessToken'];
1012
985
  var contentTypes = [];
1013
986
  var accepts = ['application/json'];
1014
- var returnType = _HandleNoteChanges200Response["default"];
1015
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/changes', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
987
+ var returnType = _GetDeviceHealthLog200Response["default"];
988
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/health-log', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1016
989
  }
1017
990
 
1018
991
  /**
1019
- * Incrementally retrieve changes within a specific Notefile.
992
+ * Get Device Health Log
1020
993
  * @param {String} projectOrProductUID
1021
994
  * @param {String} deviceUID
1022
- * @param {String} notefileID
1023
995
  * @param {Object} opts Optional parameters
1024
- * @param {Number} opts.max The maximum number of Notes to return in the request.
1025
- * @param {Boolean} opts.deleted true to return deleted notes.
1026
- * @param {Boolean} opts._delete true to delete the notes returned by the request.
1027
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/HandleNoteChanges200Response}
996
+ * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
997
+ * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
998
+ * @param {Array.<module:model/String>} opts.logType Return only specified log types
999
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceHealthLog200Response}
1028
1000
  */
1029
1001
  }, {
1030
- key: "handleNoteChanges",
1031
- value: function handleNoteChanges(projectOrProductUID, deviceUID, notefileID, opts) {
1032
- return this.handleNoteChangesWithHttpInfo(projectOrProductUID, deviceUID, notefileID, opts).then(function (response_and_data) {
1002
+ key: "getDeviceHealthLog",
1003
+ value: function getDeviceHealthLog(projectOrProductUID, deviceUID, opts) {
1004
+ return this.getDeviceHealthLogWithHttpInfo(projectOrProductUID, deviceUID, opts).then(function (response_and_data) {
1033
1005
  return response_and_data.data;
1034
1006
  });
1035
1007
  }
1036
1008
 
1037
1009
  /**
1038
- * Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
1010
+ * Get Device Latest Events
1039
1011
  * @param {String} projectOrProductUID
1040
1012
  * @param {String} deviceUID
1041
- * @param {String} notefileID
1042
- * @param {String} noteID
1043
- * @param {module:model/Note} note Body or payload of note to be added to the device
1044
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
1013
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceLatestEvents200Response} and HTTP response
1045
1014
  */
1046
1015
  }, {
1047
- key: "handleNoteCreateAddWithHttpInfo",
1048
- value: function handleNoteCreateAddWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, note) {
1049
- var postBody = note;
1016
+ key: "getDeviceLatestEventsWithHttpInfo",
1017
+ value: function getDeviceLatestEventsWithHttpInfo(projectOrProductUID, deviceUID) {
1018
+ var postBody = null;
1050
1019
  // verify the required parameter 'projectOrProductUID' is set
1051
1020
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
1052
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling handleNoteCreateAdd");
1021
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDeviceLatestEvents");
1053
1022
  }
1054
1023
  // verify the required parameter 'deviceUID' is set
1055
1024
  if (deviceUID === undefined || deviceUID === null) {
1056
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling handleNoteCreateAdd");
1057
- }
1058
- // verify the required parameter 'notefileID' is set
1059
- if (notefileID === undefined || notefileID === null) {
1060
- throw new _Error["default"]("Missing the required parameter 'notefileID' when calling handleNoteCreateAdd");
1061
- }
1062
- // verify the required parameter 'noteID' is set
1063
- if (noteID === undefined || noteID === null) {
1064
- throw new _Error["default"]("Missing the required parameter 'noteID' when calling handleNoteCreateAdd");
1065
- }
1066
- // verify the required parameter 'note' is set
1067
- if (note === undefined || note === null) {
1068
- throw new _Error["default"]("Missing the required parameter 'note' when calling handleNoteCreateAdd");
1025
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceLatestEvents");
1069
1026
  }
1070
1027
  var pathParams = {
1071
1028
  'projectOrProductUID': projectOrProductUID,
1072
- 'deviceUID': deviceUID,
1073
- 'notefileID': notefileID,
1074
- 'noteID': noteID
1029
+ 'deviceUID': deviceUID
1075
1030
  };
1076
1031
  var queryParams = {};
1077
1032
  var headerParams = {};
1078
1033
  var formParams = {};
1079
1034
  var authNames = ['personalAccessToken'];
1080
- var contentTypes = ['application/json'];
1035
+ var contentTypes = [];
1081
1036
  var accepts = ['application/json'];
1082
- var returnType = null;
1083
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1037
+ var returnType = _GetDeviceLatestEvents200Response["default"];
1038
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/latest', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1084
1039
  }
1085
1040
 
1086
1041
  /**
1087
- * Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
1042
+ * Get Device Latest Events
1088
1043
  * @param {String} projectOrProductUID
1089
1044
  * @param {String} deviceUID
1090
- * @param {String} notefileID
1091
- * @param {String} noteID
1092
- * @param {module:model/Note} note Body or payload of note to be added to the device
1093
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}
1045
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceLatestEvents200Response}
1094
1046
  */
1095
1047
  }, {
1096
- key: "handleNoteCreateAdd",
1097
- value: function handleNoteCreateAdd(projectOrProductUID, deviceUID, notefileID, noteID, note) {
1098
- return this.handleNoteCreateAddWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, note).then(function (response_and_data) {
1048
+ key: "getDeviceLatestEvents",
1049
+ value: function getDeviceLatestEvents(projectOrProductUID, deviceUID) {
1050
+ return this.getDeviceLatestEventsWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
1099
1051
  return response_and_data.data;
1100
1052
  });
1101
1053
  }
1102
1054
 
1103
1055
  /**
1104
- * Delete a note from a DB notefile
1056
+ * Get Data Plans associated with the device, this include the primary sim, any external sim, as well as any satellite connections.
1105
1057
  * @param {String} projectOrProductUID
1106
1058
  * @param {String} deviceUID
1107
- * @param {String} notefileID
1108
- * @param {String} noteID
1109
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
1059
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevicePlans200Response} and HTTP response
1110
1060
  */
1111
1061
  }, {
1112
- key: "handleNoteDeleteWithHttpInfo",
1113
- value: function handleNoteDeleteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID) {
1062
+ key: "getDevicePlansWithHttpInfo",
1063
+ value: function getDevicePlansWithHttpInfo(projectOrProductUID, deviceUID) {
1114
1064
  var postBody = null;
1115
1065
  // verify the required parameter 'projectOrProductUID' is set
1116
1066
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
1117
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling handleNoteDelete");
1067
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDevicePlans");
1118
1068
  }
1119
1069
  // verify the required parameter 'deviceUID' is set
1120
1070
  if (deviceUID === undefined || deviceUID === null) {
1121
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling handleNoteDelete");
1122
- }
1123
- // verify the required parameter 'notefileID' is set
1124
- if (notefileID === undefined || notefileID === null) {
1125
- throw new _Error["default"]("Missing the required parameter 'notefileID' when calling handleNoteDelete");
1126
- }
1127
- // verify the required parameter 'noteID' is set
1128
- if (noteID === undefined || noteID === null) {
1129
- throw new _Error["default"]("Missing the required parameter 'noteID' when calling handleNoteDelete");
1071
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDevicePlans");
1130
1072
  }
1131
1073
  var pathParams = {
1132
1074
  'projectOrProductUID': projectOrProductUID,
1133
- 'deviceUID': deviceUID,
1134
- 'notefileID': notefileID,
1135
- 'noteID': noteID
1075
+ 'deviceUID': deviceUID
1136
1076
  };
1137
1077
  var queryParams = {};
1138
1078
  var headerParams = {};
@@ -1140,361 +1080,455 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1140
1080
  var authNames = ['personalAccessToken'];
1141
1081
  var contentTypes = [];
1142
1082
  var accepts = ['application/json'];
1143
- var returnType = null;
1144
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1083
+ var returnType = _GetDevicePlans200Response["default"];
1084
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/plans', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1145
1085
  }
1146
1086
 
1147
1087
  /**
1148
- * Delete a note from a DB notefile
1088
+ * Get Data Plans associated with the device, this include the primary sim, any external sim, as well as any satellite connections.
1149
1089
  * @param {String} projectOrProductUID
1150
1090
  * @param {String} deviceUID
1151
- * @param {String} notefileID
1152
- * @param {String} noteID
1153
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}
1091
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevicePlans200Response}
1154
1092
  */
1155
1093
  }, {
1156
- key: "handleNoteDelete",
1157
- value: function handleNoteDelete(projectOrProductUID, deviceUID, notefileID, noteID) {
1158
- return this.handleNoteDeleteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID).then(function (response_and_data) {
1094
+ key: "getDevicePlans",
1095
+ value: function getDevicePlans(projectOrProductUID, deviceUID) {
1096
+ return this.getDevicePlansWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
1159
1097
  return response_and_data.data;
1160
1098
  });
1161
1099
  }
1162
1100
 
1163
1101
  /**
1164
- * Get a note from a DB notefile
1102
+ * Get Device Public Key
1165
1103
  * @param {String} projectOrProductUID
1166
1104
  * @param {String} deviceUID
1167
- * @param {String} notefileID
1168
- * @param {String} noteID
1169
- * @param {Object} opts Optional parameters
1170
- * @param {Boolean} opts._delete Whether to delete the note from the DB notefile
1171
- * @param {Boolean} opts.deleted Whether to return deleted notes
1172
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/HandleNoteGet200Response} and HTTP response
1105
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevicePublicKey200Response} and HTTP response
1173
1106
  */
1174
1107
  }, {
1175
- key: "handleNoteGetWithHttpInfo",
1176
- value: function handleNoteGetWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, opts) {
1177
- opts = opts || {};
1108
+ key: "getDevicePublicKeyWithHttpInfo",
1109
+ value: function getDevicePublicKeyWithHttpInfo(projectOrProductUID, deviceUID) {
1178
1110
  var postBody = null;
1179
1111
  // verify the required parameter 'projectOrProductUID' is set
1180
1112
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
1181
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling handleNoteGet");
1113
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDevicePublicKey");
1182
1114
  }
1183
1115
  // verify the required parameter 'deviceUID' is set
1184
1116
  if (deviceUID === undefined || deviceUID === null) {
1185
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling handleNoteGet");
1186
- }
1187
- // verify the required parameter 'notefileID' is set
1188
- if (notefileID === undefined || notefileID === null) {
1189
- throw new _Error["default"]("Missing the required parameter 'notefileID' when calling handleNoteGet");
1190
- }
1191
- // verify the required parameter 'noteID' is set
1192
- if (noteID === undefined || noteID === null) {
1193
- throw new _Error["default"]("Missing the required parameter 'noteID' when calling handleNoteGet");
1117
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDevicePublicKey");
1194
1118
  }
1195
1119
  var pathParams = {
1196
1120
  'projectOrProductUID': projectOrProductUID,
1197
- 'deviceUID': deviceUID,
1198
- 'notefileID': notefileID,
1199
- 'noteID': noteID
1200
- };
1201
- var queryParams = {
1202
- 'delete': opts['_delete'],
1203
- 'deleted': opts['deleted']
1121
+ 'deviceUID': deviceUID
1204
1122
  };
1123
+ var queryParams = {};
1205
1124
  var headerParams = {};
1206
1125
  var formParams = {};
1207
1126
  var authNames = ['personalAccessToken'];
1208
1127
  var contentTypes = [];
1209
1128
  var accepts = ['application/json'];
1210
- var returnType = _HandleNoteGet200Response["default"];
1211
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1129
+ var returnType = _GetDevicePublicKey200Response["default"];
1130
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/public-key', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1212
1131
  }
1213
1132
 
1214
1133
  /**
1215
- * Get a note from a DB notefile
1134
+ * Get Device Public Key
1216
1135
  * @param {String} projectOrProductUID
1217
1136
  * @param {String} deviceUID
1218
- * @param {String} notefileID
1219
- * @param {String} noteID
1137
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevicePublicKey200Response}
1138
+ */
1139
+ }, {
1140
+ key: "getDevicePublicKey",
1141
+ value: function getDevicePublicKey(projectOrProductUID, deviceUID) {
1142
+ return this.getDevicePublicKeyWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
1143
+ return response_and_data.data;
1144
+ });
1145
+ }
1146
+
1147
+ /**
1148
+ * Get Device Public Keys of a Project
1149
+ * @param {String} projectOrProductUID
1150
+ * @param {Object} opts Optional parameters
1151
+ * @param {Number} opts.pageSize (default to 50)
1152
+ * @param {Number} opts.pageNum (default to 1)
1153
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevicePublicKeys200Response} and HTTP response
1154
+ */
1155
+ }, {
1156
+ key: "getDevicePublicKeysWithHttpInfo",
1157
+ value: function getDevicePublicKeysWithHttpInfo(projectOrProductUID, opts) {
1158
+ opts = opts || {};
1159
+ var postBody = null;
1160
+ // verify the required parameter 'projectOrProductUID' is set
1161
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
1162
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDevicePublicKeys");
1163
+ }
1164
+ var pathParams = {
1165
+ 'projectOrProductUID': projectOrProductUID
1166
+ };
1167
+ var queryParams = {
1168
+ 'pageSize': opts['pageSize'],
1169
+ 'pageNum': opts['pageNum']
1170
+ };
1171
+ var headerParams = {};
1172
+ var formParams = {};
1173
+ var authNames = ['personalAccessToken'];
1174
+ var contentTypes = [];
1175
+ var accepts = ['application/json'];
1176
+ var returnType = _GetDevicePublicKeys200Response["default"];
1177
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/public-keys', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1178
+ }
1179
+
1180
+ /**
1181
+ * Get Device Public Keys of a Project
1182
+ * @param {String} projectOrProductUID
1220
1183
  * @param {Object} opts Optional parameters
1221
- * @param {Boolean} opts._delete Whether to delete the note from the DB notefile
1222
- * @param {Boolean} opts.deleted Whether to return deleted notes
1223
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/HandleNoteGet200Response}
1184
+ * @param {Number} opts.pageSize (default to 50)
1185
+ * @param {Number} opts.pageNum (default to 1)
1186
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevicePublicKeys200Response}
1224
1187
  */
1225
1188
  }, {
1226
- key: "handleNoteGet",
1227
- value: function handleNoteGet(projectOrProductUID, deviceUID, notefileID, noteID, opts) {
1228
- return this.handleNoteGetWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, opts).then(function (response_and_data) {
1189
+ key: "getDevicePublicKeys",
1190
+ value: function getDevicePublicKeys(projectOrProductUID, opts) {
1191
+ return this.getDevicePublicKeysWithHttpInfo(projectOrProductUID, opts).then(function (response_and_data) {
1229
1192
  return response_and_data.data;
1230
1193
  });
1231
1194
  }
1232
1195
 
1233
1196
  /**
1234
- * Send a signal from Notehub to a Notecard.
1197
+ * Get Device Sessions
1235
1198
  * @param {String} projectOrProductUID
1236
1199
  * @param {String} deviceUID
1237
- * @param {module:model/Body} body Body or payload of singnal to be sent to the device
1238
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/HandleNoteSignal200Response} and HTTP response
1200
+ * @param {Object} opts Optional parameters
1201
+ * @param {Number} opts.pageSize (default to 50)
1202
+ * @param {Number} opts.pageNum (default to 1)
1203
+ * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
1204
+ * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
1205
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceSessions200Response} and HTTP response
1239
1206
  */
1240
1207
  }, {
1241
- key: "handleNoteSignalWithHttpInfo",
1242
- value: function handleNoteSignalWithHttpInfo(projectOrProductUID, deviceUID, body) {
1243
- var postBody = body;
1208
+ key: "getDeviceSessionsWithHttpInfo",
1209
+ value: function getDeviceSessionsWithHttpInfo(projectOrProductUID, deviceUID, opts) {
1210
+ opts = opts || {};
1211
+ var postBody = null;
1244
1212
  // verify the required parameter 'projectOrProductUID' is set
1245
1213
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
1246
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling handleNoteSignal");
1214
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDeviceSessions");
1247
1215
  }
1248
1216
  // verify the required parameter 'deviceUID' is set
1249
1217
  if (deviceUID === undefined || deviceUID === null) {
1250
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling handleNoteSignal");
1251
- }
1252
- // verify the required parameter 'body' is set
1253
- if (body === undefined || body === null) {
1254
- throw new _Error["default"]("Missing the required parameter 'body' when calling handleNoteSignal");
1218
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceSessions");
1255
1219
  }
1256
1220
  var pathParams = {
1257
1221
  'projectOrProductUID': projectOrProductUID,
1258
1222
  'deviceUID': deviceUID
1259
1223
  };
1260
- var queryParams = {};
1224
+ var queryParams = {
1225
+ 'pageSize': opts['pageSize'],
1226
+ 'pageNum': opts['pageNum'],
1227
+ 'startDate': opts['startDate'],
1228
+ 'endDate': opts['endDate']
1229
+ };
1261
1230
  var headerParams = {};
1262
1231
  var formParams = {};
1263
1232
  var authNames = ['personalAccessToken'];
1264
- var contentTypes = ['application/json'];
1233
+ var contentTypes = [];
1265
1234
  var accepts = ['application/json'];
1266
- var returnType = _HandleNoteSignal200Response["default"];
1267
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/signal', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1235
+ var returnType = _GetDeviceSessions200Response["default"];
1236
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/sessions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1268
1237
  }
1269
1238
 
1270
1239
  /**
1271
- * Send a signal from Notehub to a Notecard.
1240
+ * Get Device Sessions
1272
1241
  * @param {String} projectOrProductUID
1273
1242
  * @param {String} deviceUID
1274
- * @param {module:model/Body} body Body or payload of singnal to be sent to the device
1275
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/HandleNoteSignal200Response}
1243
+ * @param {Object} opts Optional parameters
1244
+ * @param {Number} opts.pageSize (default to 50)
1245
+ * @param {Number} opts.pageNum (default to 1)
1246
+ * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
1247
+ * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
1248
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceSessions200Response}
1276
1249
  */
1277
1250
  }, {
1278
- key: "handleNoteSignal",
1279
- value: function handleNoteSignal(projectOrProductUID, deviceUID, body) {
1280
- return this.handleNoteSignalWithHttpInfo(projectOrProductUID, deviceUID, body).then(function (response_and_data) {
1251
+ key: "getDeviceSessions",
1252
+ value: function getDeviceSessions(projectOrProductUID, deviceUID, opts) {
1253
+ return this.getDeviceSessionsWithHttpInfo(projectOrProductUID, deviceUID, opts).then(function (response_and_data) {
1281
1254
  return response_and_data.data;
1282
1255
  });
1283
1256
  }
1284
1257
 
1285
1258
  /**
1286
- * Update a note in a DB notefile
1259
+ * Get Devices of a Project
1287
1260
  * @param {String} projectOrProductUID
1288
- * @param {String} deviceUID
1289
- * @param {String} notefileID
1290
- * @param {String} noteID
1291
- * @param {module:model/Note} note Body or payload of note to be added to the device
1292
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
1261
+ * @param {Object} opts Optional parameters
1262
+ * @param {Number} opts.pageSize (default to 50)
1263
+ * @param {Number} opts.pageNum (default to 1)
1264
+ * @param {Array.<String>} opts.deviceUID A Device UID.
1265
+ * @param {Array.<String>} opts.tag Tag filter
1266
+ * @param {Array.<String>} opts.serialNumber Serial number filter
1267
+ * @param {Array.<String>} opts.fleetUID
1268
+ * @param {Array.<String>} opts.notecardFirmware Firmware version filter
1269
+ * @param {Array.<String>} opts.location Location filter
1270
+ * @param {Array.<String>} opts.hostFirmware Host firmware filter
1271
+ * @param {Array.<String>} opts.productUID
1272
+ * @param {Array.<String>} opts.sku SKU filter
1273
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevices200Response} and HTTP response
1293
1274
  */
1294
1275
  }, {
1295
- key: "handleNoteUpdateWithHttpInfo",
1296
- value: function handleNoteUpdateWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, note) {
1297
- var postBody = note;
1276
+ key: "getDevicesWithHttpInfo",
1277
+ value: function getDevicesWithHttpInfo(projectOrProductUID, opts) {
1278
+ opts = opts || {};
1279
+ var postBody = null;
1298
1280
  // verify the required parameter 'projectOrProductUID' is set
1299
1281
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
1300
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling handleNoteUpdate");
1301
- }
1302
- // verify the required parameter 'deviceUID' is set
1303
- if (deviceUID === undefined || deviceUID === null) {
1304
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling handleNoteUpdate");
1305
- }
1306
- // verify the required parameter 'notefileID' is set
1307
- if (notefileID === undefined || notefileID === null) {
1308
- throw new _Error["default"]("Missing the required parameter 'notefileID' when calling handleNoteUpdate");
1309
- }
1310
- // verify the required parameter 'noteID' is set
1311
- if (noteID === undefined || noteID === null) {
1312
- throw new _Error["default"]("Missing the required parameter 'noteID' when calling handleNoteUpdate");
1313
- }
1314
- // verify the required parameter 'note' is set
1315
- if (note === undefined || note === null) {
1316
- throw new _Error["default"]("Missing the required parameter 'note' when calling handleNoteUpdate");
1282
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDevices");
1317
1283
  }
1318
1284
  var pathParams = {
1319
- 'projectOrProductUID': projectOrProductUID,
1320
- 'deviceUID': deviceUID,
1321
- 'notefileID': notefileID,
1322
- 'noteID': noteID
1285
+ 'projectOrProductUID': projectOrProductUID
1286
+ };
1287
+ var queryParams = {
1288
+ 'pageSize': opts['pageSize'],
1289
+ 'pageNum': opts['pageNum'],
1290
+ 'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
1291
+ 'tag': this.apiClient.buildCollectionParam(opts['tag'], 'multi'),
1292
+ 'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
1293
+ 'fleetUID': this.apiClient.buildCollectionParam(opts['fleetUID'], 'multi'),
1294
+ 'notecardFirmware': this.apiClient.buildCollectionParam(opts['notecardFirmware'], 'multi'),
1295
+ 'location': this.apiClient.buildCollectionParam(opts['location'], 'multi'),
1296
+ 'hostFirmware': this.apiClient.buildCollectionParam(opts['hostFirmware'], 'multi'),
1297
+ 'productUID': this.apiClient.buildCollectionParam(opts['productUID'], 'multi'),
1298
+ 'sku': this.apiClient.buildCollectionParam(opts['sku'], 'multi')
1323
1299
  };
1324
- var queryParams = {};
1325
1300
  var headerParams = {};
1326
1301
  var formParams = {};
1327
1302
  var authNames = ['personalAccessToken'];
1328
- var contentTypes = ['application/json'];
1303
+ var contentTypes = [];
1329
1304
  var accepts = ['application/json'];
1330
- var returnType = null;
1331
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1305
+ var returnType = _GetDevices200Response["default"];
1306
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1332
1307
  }
1333
1308
 
1334
1309
  /**
1335
- * Update a note in a DB notefile
1310
+ * Get Devices of a Project
1336
1311
  * @param {String} projectOrProductUID
1337
- * @param {String} deviceUID
1338
- * @param {String} notefileID
1339
- * @param {String} noteID
1340
- * @param {module:model/Note} note Body or payload of note to be added to the device
1341
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}
1312
+ * @param {Object} opts Optional parameters
1313
+ * @param {Number} opts.pageSize (default to 50)
1314
+ * @param {Number} opts.pageNum (default to 1)
1315
+ * @param {Array.<String>} opts.deviceUID A Device UID.
1316
+ * @param {Array.<String>} opts.tag Tag filter
1317
+ * @param {Array.<String>} opts.serialNumber Serial number filter
1318
+ * @param {Array.<String>} opts.fleetUID
1319
+ * @param {Array.<String>} opts.notecardFirmware Firmware version filter
1320
+ * @param {Array.<String>} opts.location Location filter
1321
+ * @param {Array.<String>} opts.hostFirmware Host firmware filter
1322
+ * @param {Array.<String>} opts.productUID
1323
+ * @param {Array.<String>} opts.sku SKU filter
1324
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevices200Response}
1342
1325
  */
1343
1326
  }, {
1344
- key: "handleNoteUpdate",
1345
- value: function handleNoteUpdate(projectOrProductUID, deviceUID, notefileID, noteID, note) {
1346
- return this.handleNoteUpdateWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, note).then(function (response_and_data) {
1327
+ key: "getDevices",
1328
+ value: function getDevices(projectOrProductUID, opts) {
1329
+ return this.getDevicesWithHttpInfo(projectOrProductUID, opts).then(function (response_and_data) {
1347
1330
  return response_and_data.data;
1348
1331
  });
1349
1332
  }
1350
1333
 
1351
1334
  /**
1352
- * Used to perform queries on a single or multiple files to determine if new Notes are available to read
1335
+ * Get Devices of a Fleet within a Project
1353
1336
  * @param {String} projectOrProductUID
1354
- * @param {String} deviceUID
1337
+ * @param {String} fleetUID
1355
1338
  * @param {Object} opts Optional parameters
1356
- * @param {Array.<String>} opts.files One or more files to obtain change information from.
1357
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/HandleNotefileChanges200Response} and HTTP response
1339
+ * @param {Number} opts.pageSize (default to 50)
1340
+ * @param {Number} opts.pageNum (default to 1)
1341
+ * @param {Array.<String>} opts.deviceUID A Device UID.
1342
+ * @param {Array.<String>} opts.tag Tag filter
1343
+ * @param {Array.<String>} opts.serialNumber Serial number filter
1344
+ * @param {Array.<String>} opts.notecardFirmware Firmware version filter
1345
+ * @param {Array.<String>} opts.location Location filter
1346
+ * @param {Array.<String>} opts.hostFirmware Host firmware filter
1347
+ * @param {Array.<String>} opts.productUID
1348
+ * @param {Array.<String>} opts.sku SKU filter
1349
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevices200Response} and HTTP response
1358
1350
  */
1359
1351
  }, {
1360
- key: "handleNotefileChangesWithHttpInfo",
1361
- value: function handleNotefileChangesWithHttpInfo(projectOrProductUID, deviceUID, opts) {
1352
+ key: "getFleetDevicesWithHttpInfo",
1353
+ value: function getFleetDevicesWithHttpInfo(projectOrProductUID, fleetUID, opts) {
1362
1354
  opts = opts || {};
1363
1355
  var postBody = null;
1364
1356
  // verify the required parameter 'projectOrProductUID' is set
1365
1357
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
1366
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling handleNotefileChanges");
1358
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getFleetDevices");
1367
1359
  }
1368
- // verify the required parameter 'deviceUID' is set
1369
- if (deviceUID === undefined || deviceUID === null) {
1370
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling handleNotefileChanges");
1360
+ // verify the required parameter 'fleetUID' is set
1361
+ if (fleetUID === undefined || fleetUID === null) {
1362
+ throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetDevices");
1371
1363
  }
1372
1364
  var pathParams = {
1373
1365
  'projectOrProductUID': projectOrProductUID,
1374
- 'deviceUID': deviceUID
1366
+ 'fleetUID': fleetUID
1375
1367
  };
1376
1368
  var queryParams = {
1377
- 'files': this.apiClient.buildCollectionParam(opts['files'], 'multi')
1369
+ 'pageSize': opts['pageSize'],
1370
+ 'pageNum': opts['pageNum'],
1371
+ 'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
1372
+ 'tag': this.apiClient.buildCollectionParam(opts['tag'], 'multi'),
1373
+ 'serialNumber': this.apiClient.buildCollectionParam(opts['serialNumber'], 'multi'),
1374
+ 'notecardFirmware': this.apiClient.buildCollectionParam(opts['notecardFirmware'], 'multi'),
1375
+ 'location': this.apiClient.buildCollectionParam(opts['location'], 'multi'),
1376
+ 'hostFirmware': this.apiClient.buildCollectionParam(opts['hostFirmware'], 'multi'),
1377
+ 'productUID': this.apiClient.buildCollectionParam(opts['productUID'], 'multi'),
1378
+ 'sku': this.apiClient.buildCollectionParam(opts['sku'], 'multi')
1378
1379
  };
1379
1380
  var headerParams = {};
1380
1381
  var formParams = {};
1381
1382
  var authNames = ['personalAccessToken'];
1382
1383
  var contentTypes = [];
1383
1384
  var accepts = ['application/json'];
1384
- var returnType = _HandleNotefileChanges200Response["default"];
1385
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files/changes', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1385
+ var returnType = _GetDevices200Response["default"];
1386
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/devices', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1386
1387
  }
1387
1388
 
1388
1389
  /**
1389
- * Used to perform queries on a single or multiple files to determine if new Notes are available to read
1390
+ * Get Devices of a Fleet within a Project
1390
1391
  * @param {String} projectOrProductUID
1391
- * @param {String} deviceUID
1392
+ * @param {String} fleetUID
1392
1393
  * @param {Object} opts Optional parameters
1393
- * @param {Array.<String>} opts.files One or more files to obtain change information from.
1394
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/HandleNotefileChanges200Response}
1394
+ * @param {Number} opts.pageSize (default to 50)
1395
+ * @param {Number} opts.pageNum (default to 1)
1396
+ * @param {Array.<String>} opts.deviceUID A Device UID.
1397
+ * @param {Array.<String>} opts.tag Tag filter
1398
+ * @param {Array.<String>} opts.serialNumber Serial number filter
1399
+ * @param {Array.<String>} opts.notecardFirmware Firmware version filter
1400
+ * @param {Array.<String>} opts.location Location filter
1401
+ * @param {Array.<String>} opts.hostFirmware Host firmware filter
1402
+ * @param {Array.<String>} opts.productUID
1403
+ * @param {Array.<String>} opts.sku SKU filter
1404
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevices200Response}
1395
1405
  */
1396
1406
  }, {
1397
- key: "handleNotefileChanges",
1398
- value: function handleNotefileChanges(projectOrProductUID, deviceUID, opts) {
1399
- return this.handleNotefileChangesWithHttpInfo(projectOrProductUID, deviceUID, opts).then(function (response_and_data) {
1407
+ key: "getFleetDevices",
1408
+ value: function getFleetDevices(projectOrProductUID, fleetUID, opts) {
1409
+ return this.getFleetDevicesWithHttpInfo(projectOrProductUID, fleetUID, opts).then(function (response_and_data) {
1400
1410
  return response_and_data.data;
1401
1411
  });
1402
1412
  }
1403
1413
 
1404
1414
  /**
1405
- * Returns info about file changes that are pending upload to Notehub or download to the Notecard.
1415
+ * For .qi files, returns the queued up notes. For .db files, returns all notes in the notefile
1406
1416
  * @param {String} projectOrProductUID
1407
1417
  * @param {String} deviceUID
1408
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/HandleNotefileChangesPending200Response} and HTTP response
1418
+ * @param {String} notefileID
1419
+ * @param {Object} opts Optional parameters
1420
+ * @param {Number} opts.max The maximum number of Notes to return in the request.
1421
+ * @param {Boolean} opts.deleted true to return deleted notes.
1422
+ * @param {Boolean} opts._delete true to delete the notes returned by the request.
1423
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetNotefile200Response} and HTTP response
1409
1424
  */
1410
1425
  }, {
1411
- key: "handleNotefileChangesPendingWithHttpInfo",
1412
- value: function handleNotefileChangesPendingWithHttpInfo(projectOrProductUID, deviceUID) {
1426
+ key: "getNotefileWithHttpInfo",
1427
+ value: function getNotefileWithHttpInfo(projectOrProductUID, deviceUID, notefileID, opts) {
1428
+ opts = opts || {};
1413
1429
  var postBody = null;
1414
1430
  // verify the required parameter 'projectOrProductUID' is set
1415
1431
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
1416
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling handleNotefileChangesPending");
1432
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getNotefile");
1417
1433
  }
1418
1434
  // verify the required parameter 'deviceUID' is set
1419
1435
  if (deviceUID === undefined || deviceUID === null) {
1420
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling handleNotefileChangesPending");
1436
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getNotefile");
1437
+ }
1438
+ // verify the required parameter 'notefileID' is set
1439
+ if (notefileID === undefined || notefileID === null) {
1440
+ throw new _Error["default"]("Missing the required parameter 'notefileID' when calling getNotefile");
1421
1441
  }
1422
1442
  var pathParams = {
1423
1443
  'projectOrProductUID': projectOrProductUID,
1424
- 'deviceUID': deviceUID
1444
+ 'deviceUID': deviceUID,
1445
+ 'notefileID': notefileID
1446
+ };
1447
+ var queryParams = {
1448
+ 'max': opts['max'],
1449
+ 'deleted': opts['deleted'],
1450
+ 'delete': opts['_delete']
1425
1451
  };
1426
- var queryParams = {};
1427
1452
  var headerParams = {};
1428
1453
  var formParams = {};
1429
1454
  var authNames = ['personalAccessToken'];
1430
1455
  var contentTypes = [];
1431
1456
  var accepts = ['application/json'];
1432
- var returnType = _HandleNotefileChangesPending200Response["default"];
1433
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files/changes/pending', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1457
+ var returnType = _GetNotefile200Response["default"];
1458
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1434
1459
  }
1435
1460
 
1436
1461
  /**
1437
- * Returns info about file changes that are pending upload to Notehub or download to the Notecard.
1462
+ * For .qi files, returns the queued up notes. For .db files, returns all notes in the notefile
1438
1463
  * @param {String} projectOrProductUID
1439
1464
  * @param {String} deviceUID
1440
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/HandleNotefileChangesPending200Response}
1465
+ * @param {String} notefileID
1466
+ * @param {Object} opts Optional parameters
1467
+ * @param {Number} opts.max The maximum number of Notes to return in the request.
1468
+ * @param {Boolean} opts.deleted true to return deleted notes.
1469
+ * @param {Boolean} opts._delete true to delete the notes returned by the request.
1470
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetNotefile200Response}
1441
1471
  */
1442
1472
  }, {
1443
- key: "handleNotefileChangesPending",
1444
- value: function handleNotefileChangesPending(projectOrProductUID, deviceUID) {
1445
- return this.handleNotefileChangesPendingWithHttpInfo(projectOrProductUID, deviceUID).then(function (response_and_data) {
1473
+ key: "getNotefile",
1474
+ value: function getNotefile(projectOrProductUID, deviceUID, notefileID, opts) {
1475
+ return this.getNotefileWithHttpInfo(projectOrProductUID, deviceUID, notefileID, opts).then(function (response_and_data) {
1446
1476
  return response_and_data.data;
1447
1477
  });
1448
1478
  }
1449
1479
 
1450
1480
  /**
1451
- * Deletes Notefiles and the Notes they contain.
1481
+ * Lists .qi and .db files for the device
1452
1482
  * @param {String} projectOrProductUID
1453
1483
  * @param {String} deviceUID
1454
- * @param {module:model/HandleNotefileDeleteRequest} handleNotefileDeleteRequest
1455
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
1484
+ * @param {Object} opts Optional parameters
1485
+ * @param {Array.<String>} opts.files One or more files to obtain change information from.
1486
+ * @param {Boolean} opts.pending show only files that are pending sync to the Notecard
1487
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/Notefile>} and HTTP response
1456
1488
  */
1457
1489
  }, {
1458
- key: "handleNotefileDeleteWithHttpInfo",
1459
- value: function handleNotefileDeleteWithHttpInfo(projectOrProductUID, deviceUID, handleNotefileDeleteRequest) {
1460
- var postBody = handleNotefileDeleteRequest;
1490
+ key: "listNotefilesWithHttpInfo",
1491
+ value: function listNotefilesWithHttpInfo(projectOrProductUID, deviceUID, opts) {
1492
+ opts = opts || {};
1493
+ var postBody = null;
1461
1494
  // verify the required parameter 'projectOrProductUID' is set
1462
1495
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
1463
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling handleNotefileDelete");
1496
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling listNotefiles");
1464
1497
  }
1465
1498
  // verify the required parameter 'deviceUID' is set
1466
1499
  if (deviceUID === undefined || deviceUID === null) {
1467
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling handleNotefileDelete");
1468
- }
1469
- // verify the required parameter 'handleNotefileDeleteRequest' is set
1470
- if (handleNotefileDeleteRequest === undefined || handleNotefileDeleteRequest === null) {
1471
- throw new _Error["default"]("Missing the required parameter 'handleNotefileDeleteRequest' when calling handleNotefileDelete");
1500
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling listNotefiles");
1472
1501
  }
1473
1502
  var pathParams = {
1474
1503
  'projectOrProductUID': projectOrProductUID,
1475
1504
  'deviceUID': deviceUID
1476
1505
  };
1477
- var queryParams = {};
1506
+ var queryParams = {
1507
+ 'files': this.apiClient.buildCollectionParam(opts['files'], 'multi'),
1508
+ 'pending': opts['pending']
1509
+ };
1478
1510
  var headerParams = {};
1479
1511
  var formParams = {};
1480
1512
  var authNames = ['personalAccessToken'];
1481
- var contentTypes = ['application/json'];
1513
+ var contentTypes = [];
1482
1514
  var accepts = ['application/json'];
1483
- var returnType = null;
1484
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1515
+ var returnType = [_Notefile["default"]];
1516
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/files', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1485
1517
  }
1486
1518
 
1487
1519
  /**
1488
- * Deletes Notefiles and the Notes they contain.
1520
+ * Lists .qi and .db files for the device
1489
1521
  * @param {String} projectOrProductUID
1490
1522
  * @param {String} deviceUID
1491
- * @param {module:model/HandleNotefileDeleteRequest} handleNotefileDeleteRequest
1492
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}
1523
+ * @param {Object} opts Optional parameters
1524
+ * @param {Array.<String>} opts.files One or more files to obtain change information from.
1525
+ * @param {Boolean} opts.pending show only files that are pending sync to the Notecard
1526
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/Notefile>}
1493
1527
  */
1494
1528
  }, {
1495
- key: "handleNotefileDelete",
1496
- value: function handleNotefileDelete(projectOrProductUID, deviceUID, handleNotefileDeleteRequest) {
1497
- return this.handleNotefileDeleteWithHttpInfo(projectOrProductUID, deviceUID, handleNotefileDeleteRequest).then(function (response_and_data) {
1529
+ key: "listNotefiles",
1530
+ value: function listNotefiles(projectOrProductUID, deviceUID, opts) {
1531
+ return this.listNotefilesWithHttpInfo(projectOrProductUID, deviceUID, opts).then(function (response_and_data) {
1498
1532
  return response_and_data.data;
1499
1533
  });
1500
1534
  }
@@ -1503,24 +1537,24 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1503
1537
  * Provision Device for a Project
1504
1538
  * @param {String} projectOrProductUID
1505
1539
  * @param {String} deviceUID
1506
- * @param {module:model/PostProvisionProjectDeviceRequest} postProvisionProjectDeviceRequest Provision a device to a specific ProductUID
1540
+ * @param {module:model/ProvisionDeviceRequest} provisionDeviceRequest Provision a device to a specific ProductUID
1507
1541
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response
1508
1542
  */
1509
1543
  }, {
1510
- key: "postProvisionProjectDeviceWithHttpInfo",
1511
- value: function postProvisionProjectDeviceWithHttpInfo(projectOrProductUID, deviceUID, postProvisionProjectDeviceRequest) {
1512
- var postBody = postProvisionProjectDeviceRequest;
1544
+ key: "provisionDeviceWithHttpInfo",
1545
+ value: function provisionDeviceWithHttpInfo(projectOrProductUID, deviceUID, provisionDeviceRequest) {
1546
+ var postBody = provisionDeviceRequest;
1513
1547
  // verify the required parameter 'projectOrProductUID' is set
1514
1548
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
1515
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling postProvisionProjectDevice");
1549
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling provisionDevice");
1516
1550
  }
1517
1551
  // verify the required parameter 'deviceUID' is set
1518
1552
  if (deviceUID === undefined || deviceUID === null) {
1519
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling postProvisionProjectDevice");
1553
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling provisionDevice");
1520
1554
  }
1521
- // verify the required parameter 'postProvisionProjectDeviceRequest' is set
1522
- if (postProvisionProjectDeviceRequest === undefined || postProvisionProjectDeviceRequest === null) {
1523
- throw new _Error["default"]("Missing the required parameter 'postProvisionProjectDeviceRequest' when calling postProvisionProjectDevice");
1555
+ // verify the required parameter 'provisionDeviceRequest' is set
1556
+ if (provisionDeviceRequest === undefined || provisionDeviceRequest === null) {
1557
+ throw new _Error["default"]("Missing the required parameter 'provisionDeviceRequest' when calling provisionDevice");
1524
1558
  }
1525
1559
  var pathParams = {
1526
1560
  'projectOrProductUID': projectOrProductUID,
@@ -1540,39 +1574,39 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1540
1574
  * Provision Device for a Project
1541
1575
  * @param {String} projectOrProductUID
1542
1576
  * @param {String} deviceUID
1543
- * @param {module:model/PostProvisionProjectDeviceRequest} postProvisionProjectDeviceRequest Provision a device to a specific ProductUID
1577
+ * @param {module:model/ProvisionDeviceRequest} provisionDeviceRequest Provision a device to a specific ProductUID
1544
1578
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object}
1545
1579
  */
1546
1580
  }, {
1547
- key: "postProvisionProjectDevice",
1548
- value: function postProvisionProjectDevice(projectOrProductUID, deviceUID, postProvisionProjectDeviceRequest) {
1549
- return this.postProvisionProjectDeviceWithHttpInfo(projectOrProductUID, deviceUID, postProvisionProjectDeviceRequest).then(function (response_and_data) {
1581
+ key: "provisionDevice",
1582
+ value: function provisionDevice(projectOrProductUID, deviceUID, provisionDeviceRequest) {
1583
+ return this.provisionDeviceWithHttpInfo(projectOrProductUID, deviceUID, provisionDeviceRequest).then(function (response_and_data) {
1550
1584
  return response_and_data.data;
1551
1585
  });
1552
1586
  }
1553
1587
 
1554
1588
  /**
1555
- * Put environment variables of a device
1589
+ * Send a signal from Notehub to a Notecard.
1556
1590
  * @param {String} projectOrProductUID
1557
1591
  * @param {String} deviceUID
1558
- * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1559
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
1592
+ * @param {module:model/Body} body Body or payload of signal to be sent to the device
1593
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SignalDevice200Response} and HTTP response
1560
1594
  */
1561
1595
  }, {
1562
- key: "putDeviceEnvironmentVariablesWithHttpInfo",
1563
- value: function putDeviceEnvironmentVariablesWithHttpInfo(projectOrProductUID, deviceUID, environmentVariables) {
1564
- var postBody = environmentVariables;
1596
+ key: "signalDeviceWithHttpInfo",
1597
+ value: function signalDeviceWithHttpInfo(projectOrProductUID, deviceUID, body) {
1598
+ var postBody = body;
1565
1599
  // verify the required parameter 'projectOrProductUID' is set
1566
1600
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
1567
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling putDeviceEnvironmentVariables");
1601
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling signalDevice");
1568
1602
  }
1569
1603
  // verify the required parameter 'deviceUID' is set
1570
1604
  if (deviceUID === undefined || deviceUID === null) {
1571
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling putDeviceEnvironmentVariables");
1605
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling signalDevice");
1572
1606
  }
1573
- // verify the required parameter 'environmentVariables' is set
1574
- if (environmentVariables === undefined || environmentVariables === null) {
1575
- throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling putDeviceEnvironmentVariables");
1607
+ // verify the required parameter 'body' is set
1608
+ if (body === undefined || body === null) {
1609
+ throw new _Error["default"]("Missing the required parameter 'body' when calling signalDevice");
1576
1610
  }
1577
1611
  var pathParams = {
1578
1612
  'projectOrProductUID': projectOrProductUID,
@@ -1584,73 +1618,87 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1584
1618
  var authNames = ['personalAccessToken'];
1585
1619
  var contentTypes = ['application/json'];
1586
1620
  var accepts = ['application/json'];
1587
- var returnType = _EnvironmentVariables["default"];
1588
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1621
+ var returnType = _SignalDevice200Response["default"];
1622
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/signal', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1589
1623
  }
1590
1624
 
1591
1625
  /**
1592
- * Put environment variables of a device
1626
+ * Send a signal from Notehub to a Notecard.
1593
1627
  * @param {String} projectOrProductUID
1594
1628
  * @param {String} deviceUID
1595
- * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1596
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
1629
+ * @param {module:model/Body} body Body or payload of signal to be sent to the device
1630
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SignalDevice200Response}
1597
1631
  */
1598
1632
  }, {
1599
- key: "putDeviceEnvironmentVariables",
1600
- value: function putDeviceEnvironmentVariables(projectOrProductUID, deviceUID, environmentVariables) {
1601
- return this.putDeviceEnvironmentVariablesWithHttpInfo(projectOrProductUID, deviceUID, environmentVariables).then(function (response_and_data) {
1633
+ key: "signalDevice",
1634
+ value: function signalDevice(projectOrProductUID, deviceUID, body) {
1635
+ return this.signalDeviceWithHttpInfo(projectOrProductUID, deviceUID, body).then(function (response_and_data) {
1602
1636
  return response_and_data.data;
1603
1637
  });
1604
1638
  }
1605
1639
 
1606
1640
  /**
1607
- * Put environment variables of a device with device pin authorization
1608
- * @param {String} productUID
1641
+ * Update a note in a .db or .qi notefile
1642
+ * @param {String} projectOrProductUID
1609
1643
  * @param {String} deviceUID
1610
- * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1611
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
1644
+ * @param {String} notefileID
1645
+ * @param {String} noteID
1646
+ * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
1647
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
1612
1648
  */
1613
1649
  }, {
1614
- key: "putDeviceEnvironmentVariablesByPinWithHttpInfo",
1615
- value: function putDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, environmentVariables) {
1616
- var postBody = environmentVariables;
1617
- // verify the required parameter 'productUID' is set
1618
- if (productUID === undefined || productUID === null) {
1619
- throw new _Error["default"]("Missing the required parameter 'productUID' when calling putDeviceEnvironmentVariablesByPin");
1650
+ key: "updateDbNoteWithHttpInfo",
1651
+ value: function updateDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, noteInput) {
1652
+ var postBody = noteInput;
1653
+ // verify the required parameter 'projectOrProductUID' is set
1654
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
1655
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling updateDbNote");
1620
1656
  }
1621
1657
  // verify the required parameter 'deviceUID' is set
1622
1658
  if (deviceUID === undefined || deviceUID === null) {
1623
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling putDeviceEnvironmentVariablesByPin");
1659
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling updateDbNote");
1624
1660
  }
1625
- // verify the required parameter 'environmentVariables' is set
1626
- if (environmentVariables === undefined || environmentVariables === null) {
1627
- throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling putDeviceEnvironmentVariablesByPin");
1661
+ // verify the required parameter 'notefileID' is set
1662
+ if (notefileID === undefined || notefileID === null) {
1663
+ throw new _Error["default"]("Missing the required parameter 'notefileID' when calling updateDbNote");
1664
+ }
1665
+ // verify the required parameter 'noteID' is set
1666
+ if (noteID === undefined || noteID === null) {
1667
+ throw new _Error["default"]("Missing the required parameter 'noteID' when calling updateDbNote");
1668
+ }
1669
+ // verify the required parameter 'noteInput' is set
1670
+ if (noteInput === undefined || noteInput === null) {
1671
+ throw new _Error["default"]("Missing the required parameter 'noteInput' when calling updateDbNote");
1628
1672
  }
1629
1673
  var pathParams = {
1630
- 'productUID': productUID,
1631
- 'deviceUID': deviceUID
1674
+ 'projectOrProductUID': projectOrProductUID,
1675
+ 'deviceUID': deviceUID,
1676
+ 'notefileID': notefileID,
1677
+ 'noteID': noteID
1632
1678
  };
1633
1679
  var queryParams = {};
1634
1680
  var headerParams = {};
1635
1681
  var formParams = {};
1636
- var authNames = ['pin'];
1682
+ var authNames = ['personalAccessToken'];
1637
1683
  var contentTypes = ['application/json'];
1638
1684
  var accepts = ['application/json'];
1639
- var returnType = _EnvironmentVariables["default"];
1640
- return this.apiClient.callApi('/v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1685
+ var returnType = null;
1686
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1641
1687
  }
1642
1688
 
1643
1689
  /**
1644
- * Put environment variables of a device with device pin authorization
1645
- * @param {String} productUID
1690
+ * Update a note in a .db or .qi notefile
1691
+ * @param {String} projectOrProductUID
1646
1692
  * @param {String} deviceUID
1647
- * @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
1648
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
1693
+ * @param {String} notefileID
1694
+ * @param {String} noteID
1695
+ * @param {module:model/NoteInput} noteInput Body or payload of note to be added to the device
1696
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
1649
1697
  */
1650
1698
  }, {
1651
- key: "putDeviceEnvironmentVariablesByPin",
1652
- value: function putDeviceEnvironmentVariablesByPin(productUID, deviceUID, environmentVariables) {
1653
- return this.putDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, environmentVariables).then(function (response_and_data) {
1699
+ key: "updateDbNote",
1700
+ value: function updateDbNote(projectOrProductUID, deviceUID, notefileID, noteID, noteInput) {
1701
+ return this.updateDbNoteWithHttpInfo(projectOrProductUID, deviceUID, notefileID, noteID, noteInput).then(function (response_and_data) {
1654
1702
  return response_and_data.data;
1655
1703
  });
1656
1704
  }