@blues-inc/notehub-js 1.0.18 → 1.0.20

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 (100) hide show
  1. package/README.md +86 -95
  2. package/dist/ApiClient.js +18 -9
  3. package/dist/api/AlertApi.js +95 -0
  4. package/dist/api/AuthorizationApi.js +18 -9
  5. package/dist/api/BillingAccountApi.js +18 -9
  6. package/dist/api/DeviceApi.js +904 -182
  7. package/dist/api/EventApi.js +69 -16
  8. package/dist/api/FirmwareApi.js +109 -0
  9. package/dist/api/MonitorApi.js +275 -0
  10. package/dist/api/ProjectApi.js +471 -282
  11. package/dist/api/RouteApi.js +96 -9
  12. package/dist/index.js +76 -41
  13. package/dist/model/Alert.js +259 -0
  14. package/dist/model/AlertDataInner.js +184 -0
  15. package/dist/model/AlertNotificationsInner.js +132 -0
  16. package/dist/model/Aws.js +17 -8
  17. package/dist/model/Azure.js +17 -8
  18. package/dist/model/BillingAccount.js +17 -8
  19. package/dist/model/BillingAccountRole.js +29 -8
  20. package/dist/model/Body.js +17 -8
  21. package/dist/model/CloneProjectRequest.js +17 -8
  22. package/dist/model/Contact.js +17 -8
  23. package/dist/model/CreateFleetRequest.js +17 -8
  24. package/dist/model/CreateMonitor.js +428 -0
  25. package/dist/model/CreateProductRequest.js +17 -8
  26. package/dist/model/CreateProjectRequest.js +17 -8
  27. package/dist/model/DFUEnv.js +17 -8
  28. package/dist/model/DFUState.js +17 -8
  29. package/dist/model/DeleteDeviceFleetsRequest.js +17 -8
  30. package/dist/model/Device.js +21 -14
  31. package/dist/model/DeviceSession.js +17 -8
  32. package/dist/model/DeviceTowerInfo.js +17 -8
  33. package/dist/model/DeviceUsage.js +17 -8
  34. package/dist/model/EnvironmentVariables.js +17 -8
  35. package/dist/model/Error.js +17 -8
  36. package/dist/model/Event.js +17 -8
  37. package/dist/model/FirmwareInfo.js +231 -0
  38. package/dist/model/Fleet.js +17 -8
  39. package/dist/model/GetAlerts200Response.js +143 -0
  40. package/dist/model/GetBillingAccounts200Response.js +17 -8
  41. package/dist/model/GetDeviceEnvironmentVariables200Response.js +17 -8
  42. package/dist/model/GetDeviceHealthLog200Response.js +17 -8
  43. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +17 -8
  44. package/dist/model/GetDeviceLatest200Response.js +17 -8
  45. package/dist/model/GetDevicePublicKey200Response.js +17 -8
  46. package/dist/model/GetDeviceSessions200Response.js +17 -8
  47. package/dist/model/GetProjectDevicePublicKeys200Response.js +17 -8
  48. package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +17 -8
  49. package/dist/model/GetProjectDevices200Response.js +17 -8
  50. package/dist/model/GetProjectEvents200Response.js +21 -27
  51. package/dist/model/GetProjectEventsByCursor200Response.js +17 -8
  52. package/dist/model/GetProjectFleets200Response.js +17 -8
  53. package/dist/model/GetProjectMembers200Response.js +17 -8
  54. package/dist/model/GetProjectProducts200Response.js +17 -8
  55. package/dist/model/GetProjects200Response.js +17 -8
  56. package/dist/model/GetRouteLogsByRoute200ResponseInner.js +17 -8
  57. package/dist/model/Google.js +17 -8
  58. package/dist/model/HandleNoteChanges200Response.js +17 -8
  59. package/dist/model/HandleNoteGet200Response.js +17 -8
  60. package/dist/model/HandleNoteSignal200Response.js +17 -8
  61. package/dist/model/HandleNotefileChanges200Response.js +17 -8
  62. package/dist/model/HandleNotefileChangesPending200Response.js +17 -8
  63. package/dist/model/HandleNotefileDeleteRequest.js +17 -8
  64. package/dist/model/Http.js +17 -8
  65. package/dist/model/HttpFilter.js +17 -8
  66. package/dist/model/HttpTransform.js +17 -8
  67. package/dist/model/Location.js +17 -8
  68. package/dist/model/Login200Response.js +17 -8
  69. package/dist/model/LoginRequest.js +17 -8
  70. package/dist/model/Monitor.js +328 -0
  71. package/dist/model/MonitorAlertRoutesInner.js +92 -0
  72. package/dist/model/MonitorThresholds.js +88 -0
  73. package/dist/model/Mqtt.js +17 -8
  74. package/dist/model/Note.js +17 -8
  75. package/dist/model/PostProvisionProjectDeviceRequest.js +17 -8
  76. package/dist/model/Product.js +17 -8
  77. package/dist/model/Project.js +17 -8
  78. package/dist/model/ProjectMember.js +17 -8
  79. package/dist/model/Proxy.js +17 -8
  80. package/dist/model/PutDeviceFleetsRequest.js +17 -8
  81. package/dist/model/Radresponder.js +17 -8
  82. package/dist/model/Role.js +37 -8
  83. package/dist/model/Route.js +17 -8
  84. package/dist/model/RouteSchema.js +29 -14
  85. package/dist/model/Slack.js +17 -8
  86. package/dist/model/Snowflake.js +17 -8
  87. package/dist/model/SnowflakeTransform.js +17 -8
  88. package/dist/model/Thingworx.js +17 -8
  89. package/dist/model/TowerLocation.js +17 -8
  90. package/dist/model/Twilio.js +17 -8
  91. package/dist/model/UpdateFleetRequest.js +17 -8
  92. package/dist/model/UserDbRoute.js +17 -8
  93. package/package.json +1 -1
  94. package/dist/api/DevicesApi.js +0 -346
  95. package/dist/api/EnvironmentVariablesApi.js +0 -567
  96. package/dist/api/FilesApi.js +0 -193
  97. package/dist/api/FleetApi.js +0 -736
  98. package/dist/api/NotesApi.js +0 -435
  99. package/dist/api/ProductApi.js +0 -163
  100. package/dist/api/RouteLogsApi.js +0 -160
@@ -1,193 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
- var _Error = _interopRequireDefault(require("../model/Error"));
9
- var _HandleNotefileChanges200Response = _interopRequireDefault(require("../model/HandleNotefileChanges200Response"));
10
- var _HandleNotefileChangesPending200Response = _interopRequireDefault(require("../model/HandleNotefileChangesPending200Response"));
11
- var _HandleNotefileDeleteRequest = _interopRequireDefault(require("../model/HandleNotefileDeleteRequest"));
12
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
14
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
15
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
16
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
17
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
18
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
19
- /**
20
- * Files service.
21
- * @module api/FilesApi
22
- * @version 1.0.18
23
- */
24
- var FilesApi = /*#__PURE__*/function () {
25
- /**
26
- * Constructs a new FilesApi.
27
- * @alias module:api/FilesApi
28
- * @class
29
- * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
30
- * default to {@link module:ApiClient#instance} if unspecified.
31
- */
32
- function FilesApi(apiClient) {
33
- _classCallCheck(this, FilesApi);
34
- this.apiClient = apiClient || _ApiClient["default"].instance;
35
- }
36
-
37
- /**
38
- * Used to perform queries on a single or multiple files to determine if new Notes are available to read
39
- * @param {String} projectUID
40
- * @param {String} deviceUID
41
- * @param {Object} opts Optional parameters
42
- * @param {String} opts.tracker The change tracker ID.
43
- * @param {Array.<String>} opts.files One or more files to obtain change information from.
44
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/HandleNotefileChanges200Response} and HTTP response
45
- */
46
- _createClass(FilesApi, [{
47
- key: "handleNotefileChangesWithHttpInfo",
48
- value: function handleNotefileChangesWithHttpInfo(projectUID, deviceUID, opts) {
49
- opts = opts || {};
50
- var postBody = null;
51
- // verify the required parameter 'projectUID' is set
52
- if (projectUID === undefined || projectUID === null) {
53
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling handleNotefileChanges");
54
- }
55
- // verify the required parameter 'deviceUID' is set
56
- if (deviceUID === undefined || deviceUID === null) {
57
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling handleNotefileChanges");
58
- }
59
- var pathParams = {
60
- projectUID: projectUID,
61
- deviceUID: deviceUID
62
- };
63
- var queryParams = {
64
- tracker: opts["tracker"],
65
- files: this.apiClient.buildCollectionParam(opts["files"], "multi")
66
- };
67
- var headerParams = {};
68
- var formParams = {};
69
- var authNames = ["api_key"];
70
- var contentTypes = [];
71
- var accepts = ["application/json"];
72
- var returnType = _HandleNotefileChanges200Response["default"];
73
- return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/files/changes", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
74
- }
75
-
76
- /**
77
- * Used to perform queries on a single or multiple files to determine if new Notes are available to read
78
- * @param {String} projectUID
79
- * @param {String} deviceUID
80
- * @param {Object} opts Optional parameters
81
- * @param {String} opts.tracker The change tracker ID.
82
- * @param {Array.<String>} opts.files One or more files to obtain change information from.
83
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/HandleNotefileChanges200Response}
84
- */
85
- }, {
86
- key: "handleNotefileChanges",
87
- value: function handleNotefileChanges(projectUID, deviceUID, opts) {
88
- return this.handleNotefileChangesWithHttpInfo(projectUID, deviceUID, opts).then(function (response_and_data) {
89
- return response_and_data.data;
90
- });
91
- }
92
-
93
- /**
94
- * Returns info about file changes that are pending upload to Notehub or download to the Notecard.
95
- * @param {String} projectUID
96
- * @param {String} deviceUID
97
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/HandleNotefileChangesPending200Response} and HTTP response
98
- */
99
- }, {
100
- key: "handleNotefileChangesPendingWithHttpInfo",
101
- value: function handleNotefileChangesPendingWithHttpInfo(projectUID, deviceUID) {
102
- var postBody = null;
103
- // verify the required parameter 'projectUID' is set
104
- if (projectUID === undefined || projectUID === null) {
105
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling handleNotefileChangesPending");
106
- }
107
- // verify the required parameter 'deviceUID' is set
108
- if (deviceUID === undefined || deviceUID === null) {
109
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling handleNotefileChangesPending");
110
- }
111
- var pathParams = {
112
- projectUID: projectUID,
113
- deviceUID: deviceUID
114
- };
115
- var queryParams = {};
116
- var headerParams = {};
117
- var formParams = {};
118
- var authNames = ["api_key"];
119
- var contentTypes = [];
120
- var accepts = ["application/json"];
121
- var returnType = _HandleNotefileChangesPending200Response["default"];
122
- return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/files/changes/pending", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
123
- }
124
-
125
- /**
126
- * Returns info about file changes that are pending upload to Notehub or download to the Notecard.
127
- * @param {String} projectUID
128
- * @param {String} deviceUID
129
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/HandleNotefileChangesPending200Response}
130
- */
131
- }, {
132
- key: "handleNotefileChangesPending",
133
- value: function handleNotefileChangesPending(projectUID, deviceUID) {
134
- return this.handleNotefileChangesPendingWithHttpInfo(projectUID, deviceUID).then(function (response_and_data) {
135
- return response_and_data.data;
136
- });
137
- }
138
-
139
- /**
140
- * Deletes Notefiles and the Notes they contain.
141
- * @param {String} projectUID
142
- * @param {String} deviceUID
143
- * @param {module:model/HandleNotefileDeleteRequest} handleNotefileDeleteRequest
144
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
145
- */
146
- }, {
147
- key: "handleNotefileDeleteWithHttpInfo",
148
- value: function handleNotefileDeleteWithHttpInfo(projectUID, deviceUID, handleNotefileDeleteRequest) {
149
- var postBody = handleNotefileDeleteRequest;
150
- // verify the required parameter 'projectUID' is set
151
- if (projectUID === undefined || projectUID === null) {
152
- throw new _Error["default"]("Missing the required parameter 'projectUID' when calling handleNotefileDelete");
153
- }
154
- // verify the required parameter 'deviceUID' is set
155
- if (deviceUID === undefined || deviceUID === null) {
156
- throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling handleNotefileDelete");
157
- }
158
- // verify the required parameter 'handleNotefileDeleteRequest' is set
159
- if (handleNotefileDeleteRequest === undefined || handleNotefileDeleteRequest === null) {
160
- throw new _Error["default"]("Missing the required parameter 'handleNotefileDeleteRequest' when calling handleNotefileDelete");
161
- }
162
- var pathParams = {
163
- projectUID: projectUID,
164
- deviceUID: deviceUID
165
- };
166
- var queryParams = {};
167
- var headerParams = {};
168
- var formParams = {};
169
- var authNames = ["api_key"];
170
- var contentTypes = ["application/json"];
171
- var accepts = ["application/json"];
172
- var returnType = null;
173
- return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/files", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
174
- }
175
-
176
- /**
177
- * Deletes Notefiles and the Notes they contain.
178
- * @param {String} projectUID
179
- * @param {String} deviceUID
180
- * @param {module:model/HandleNotefileDeleteRequest} handleNotefileDeleteRequest
181
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}
182
- */
183
- }, {
184
- key: "handleNotefileDelete",
185
- value: function handleNotefileDelete(projectUID, deviceUID, handleNotefileDeleteRequest) {
186
- return this.handleNotefileDeleteWithHttpInfo(projectUID, deviceUID, handleNotefileDeleteRequest).then(function (response_and_data) {
187
- return response_and_data.data;
188
- });
189
- }
190
- }]);
191
- return FilesApi;
192
- }();
193
- exports["default"] = FilesApi;