@blues-inc/notehub-js 1.0.21 → 1.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -2
- package/dist/ApiClient.js +2 -2
- package/dist/api/AlertApi.js +5 -2
- package/dist/api/AuthorizationApi.js +1 -1
- package/dist/api/BillingAccountApi.js +1 -1
- package/dist/api/DeviceApi.js +56 -5
- package/dist/api/EventApi.js +69 -28
- package/dist/api/MonitorApi.js +1 -1
- package/dist/api/ProjectApi.js +1 -1
- package/dist/api/RouteApi.js +4 -4
- package/dist/model/Alert.js +14 -1
- package/dist/model/AlertDataInner.js +1 -1
- package/dist/model/AlertNotificationsInner.js +1 -1
- package/dist/model/Aws.js +1 -1
- package/dist/model/Azure.js +1 -1
- package/dist/model/BillingAccount.js +1 -1
- package/dist/model/Body.js +1 -1
- package/dist/model/CloneProjectRequest.js +1 -1
- package/dist/model/Contact.js +1 -1
- package/dist/model/CreateFleetRequest.js +1 -1
- package/dist/model/CreateMonitor.js +1 -1
- package/dist/model/CreateProductRequest.js +1 -1
- package/dist/model/CreateProjectRequest.js +1 -1
- package/dist/model/DFUEnv.js +1 -1
- package/dist/model/DFUState.js +1 -1
- package/dist/model/DeleteDeviceFleetsRequest.js +1 -1
- package/dist/model/Device.js +1 -1
- package/dist/model/DeviceSession.js +1 -1
- package/dist/model/DeviceTowerInfo.js +1 -1
- package/dist/model/DeviceUsage.js +1 -1
- package/dist/model/EmailNotification.js +1 -1
- package/dist/model/EnvironmentVariables.js +1 -1
- package/dist/model/Error.js +1 -1
- package/dist/model/Event.js +1 -1
- package/dist/model/FirmwareInfo.js +1 -1
- package/dist/model/FirmwareStatus.js +1 -1
- package/dist/model/Fleet.js +1 -1
- package/dist/model/GetAlerts200Response.js +1 -1
- package/dist/model/GetBillingAccounts200Response.js +1 -1
- package/dist/model/GetDeviceEnvironmentVariables200Response.js +1 -1
- package/dist/model/GetDeviceHealthLog200Response.js +1 -1
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +1 -1
- package/dist/model/GetDeviceLatest200Response.js +1 -1
- package/dist/model/GetDevicePublicKey200Response.js +1 -1
- package/dist/model/GetDeviceSessions200Response.js +1 -1
- package/dist/model/GetProjectDevicePublicKeys200Response.js +1 -1
- package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +1 -1
- package/dist/model/GetProjectDevices200Response.js +1 -1
- package/dist/model/GetProjectEvents200Response.js +14 -1
- package/dist/model/GetProjectEventsByCursor200Response.js +1 -1
- package/dist/model/GetProjectFleets200Response.js +1 -1
- package/dist/model/GetProjectMembers200Response.js +1 -1
- package/dist/model/GetProjectProducts200Response.js +1 -1
- package/dist/model/GetProjects200Response.js +1 -1
- package/dist/model/GetRouteLogsByRoute200ResponseInner.js +1 -1
- package/dist/model/Google.js +1 -1
- package/dist/model/HandleNoteChanges200Response.js +1 -1
- package/dist/model/HandleNoteGet200Response.js +1 -1
- package/dist/model/HandleNoteSignal200Response.js +1 -1
- package/dist/model/HandleNotefileChanges200Response.js +1 -1
- package/dist/model/HandleNotefileChangesPending200Response.js +1 -1
- package/dist/model/HandleNotefileDeleteRequest.js +1 -1
- package/dist/model/Http.js +1 -1
- package/dist/model/HttpFilter.js +1 -1
- package/dist/model/HttpTransform.js +1 -1
- package/dist/model/Location.js +1 -1
- package/dist/model/Login200Response.js +1 -1
- package/dist/model/LoginRequest.js +1 -1
- package/dist/model/Monitor.js +1 -1
- package/dist/model/MonitorAlertRoutesInner.js +1 -1
- package/dist/model/Mqtt.js +1 -1
- package/dist/model/Note.js +1 -1
- package/dist/model/OTAStatus.js +1 -1
- package/dist/model/OTAStatusList.js +1 -1
- package/dist/model/OTAUpdateRequest.js +1 -1
- package/dist/model/OTAUpdateStatus.js +1 -1
- package/dist/model/PostProvisionProjectDeviceRequest.js +1 -1
- package/dist/model/Product.js +1 -1
- package/dist/model/Project.js +1 -1
- package/dist/model/ProjectMember.js +1 -1
- package/dist/model/Proxy.js +1 -1
- package/dist/model/PutDeviceFleetsRequest.js +1 -1
- package/dist/model/Radresponder.js +1 -1
- package/dist/model/Route.js +1 -1
- package/dist/model/RouteSchema.js +1 -1
- package/dist/model/Slack.js +1 -1
- package/dist/model/SlackBearerNotification.js +1 -1
- package/dist/model/SlackWebHookNotification.js +1 -1
- package/dist/model/Snowflake.js +1 -1
- package/dist/model/SnowflakeTransform.js +1 -1
- package/dist/model/Thingworx.js +1 -1
- package/dist/model/TowerLocation.js +1 -1
- package/dist/model/Twilio.js +1 -1
- package/dist/model/UpdateFleetRequest.js +1 -1
- package/dist/model/UserDbRoute.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ The OpenAPI definition for the Notehub.io API.
|
|
|
6
6
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
7
7
|
|
|
8
8
|
- API version: 1.1.0
|
|
9
|
-
- Package version: 1.0.
|
|
9
|
+
- Package version: 1.0.23
|
|
10
10
|
- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
|
|
11
11
|
For more information, please visit [https://dev.blues.io/support/](https://dev.blues.io/support/)
|
|
12
12
|
|
|
@@ -111,7 +111,8 @@ var api = new NotehubJs.AlertApi()
|
|
|
111
111
|
var projectUID = app:2606f411-dea6-44a0-9743-1130f57d77d8; // {String}
|
|
112
112
|
var opts = {
|
|
113
113
|
'pageSize': 50, // {Number}
|
|
114
|
-
'pageNum': 1 // {Number}
|
|
114
|
+
'pageNum': 1, // {Number}
|
|
115
|
+
'monitorUID': ["null"] // {[String]}
|
|
115
116
|
};
|
|
116
117
|
api.getAlerts(projectUID, opts).then(function(data) {
|
|
117
118
|
console.log('API called successfully. Returned data: ' + JSON.stringify(data));
|
package/dist/ApiClient.js
CHANGED
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
*/
|
|
27
27
|
/**
|
|
28
28
|
* @module ApiClient
|
|
29
|
-
* @version 1.0.
|
|
29
|
+
* @version 1.0.23
|
|
30
30
|
*/
|
|
31
31
|
/**
|
|
32
32
|
* Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
|
|
@@ -74,7 +74,7 @@ var ApiClient = /*#__PURE__*/function () {
|
|
|
74
74
|
* @default {}
|
|
75
75
|
*/
|
|
76
76
|
this.defaultHeaders = {
|
|
77
|
-
"User-Agent": "OpenAPI-Generator/1.0.
|
|
77
|
+
"User-Agent": "OpenAPI-Generator/1.0.23/Javascript"
|
|
78
78
|
};
|
|
79
79
|
|
|
80
80
|
/**
|
package/dist/api/AlertApi.js
CHANGED
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
/**
|
|
29
29
|
* Alert service.
|
|
30
30
|
* @module api/AlertApi
|
|
31
|
-
* @version 1.0.
|
|
31
|
+
* @version 1.0.23
|
|
32
32
|
*/
|
|
33
33
|
var AlertApi = exports["default"] = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
@@ -49,6 +49,7 @@ var AlertApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
49
49
|
* @param {Object} opts Optional parameters
|
|
50
50
|
* @param {Number} opts.pageSize (default to 50)
|
|
51
51
|
* @param {Number} opts.pageNum (default to 1)
|
|
52
|
+
* @param {Array.<String>} opts.monitorUID
|
|
52
53
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetAlerts200Response} and HTTP response
|
|
53
54
|
*/
|
|
54
55
|
return _createClass(AlertApi, [{
|
|
@@ -65,7 +66,8 @@ var AlertApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
65
66
|
};
|
|
66
67
|
var queryParams = {
|
|
67
68
|
pageSize: opts["pageSize"],
|
|
68
|
-
pageNum: opts["pageNum"]
|
|
69
|
+
pageNum: opts["pageNum"],
|
|
70
|
+
monitorUID: this.apiClient.buildCollectionParam(opts["monitorUID"], "multi")
|
|
69
71
|
};
|
|
70
72
|
var headerParams = {};
|
|
71
73
|
var formParams = {};
|
|
@@ -82,6 +84,7 @@ var AlertApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
82
84
|
* @param {Object} opts Optional parameters
|
|
83
85
|
* @param {Number} opts.pageSize (default to 50)
|
|
84
86
|
* @param {Number} opts.pageNum (default to 1)
|
|
87
|
+
* @param {Array.<String>} opts.monitorUID
|
|
85
88
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetAlerts200Response}
|
|
86
89
|
*/
|
|
87
90
|
}, {
|
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
/**
|
|
29
29
|
* Authorization service.
|
|
30
30
|
* @module api/AuthorizationApi
|
|
31
|
-
* @version 1.0.
|
|
31
|
+
* @version 1.0.23
|
|
32
32
|
*/
|
|
33
33
|
var AuthorizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
/**
|
|
29
29
|
* BillingAccount service.
|
|
30
30
|
* @module api/BillingAccountApi
|
|
31
|
-
* @version 1.0.
|
|
31
|
+
* @version 1.0.23
|
|
32
32
|
*/
|
|
33
33
|
var BillingAccountApi = exports["default"] = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
package/dist/api/DeviceApi.js
CHANGED
|
@@ -45,7 +45,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
45
45
|
/**
|
|
46
46
|
* Device service.
|
|
47
47
|
* @module api/DeviceApi
|
|
48
|
-
* @version 1.0.
|
|
48
|
+
* @version 1.0.23
|
|
49
49
|
*/
|
|
50
50
|
var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
51
51
|
/**
|
|
@@ -117,7 +117,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
117
117
|
* Delete Device
|
|
118
118
|
* @param {String} projectUID
|
|
119
119
|
* @param {String} deviceUID
|
|
120
|
-
* @param {
|
|
120
|
+
* @param {Boolean} purge
|
|
121
121
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
122
122
|
*/
|
|
123
123
|
}, {
|
|
@@ -156,7 +156,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
156
156
|
* Delete Device
|
|
157
157
|
* @param {String} projectUID
|
|
158
158
|
* @param {String} deviceUID
|
|
159
|
-
* @param {
|
|
159
|
+
* @param {Boolean} purge
|
|
160
160
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
161
161
|
*/
|
|
162
162
|
}, {
|
|
@@ -738,6 +738,15 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
738
738
|
* @param {Object} opts Optional parameters
|
|
739
739
|
* @param {Number} opts.pageSize (default to 50)
|
|
740
740
|
* @param {Number} opts.pageNum (default to 1)
|
|
741
|
+
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
742
|
+
* @param {Array.<String>} opts.tag Tag filter
|
|
743
|
+
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
744
|
+
* @param {String} opts.fleetUID
|
|
745
|
+
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
746
|
+
* @param {Array.<String>} opts.location Location filter
|
|
747
|
+
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
748
|
+
* @param {Array.<String>} opts.productUID
|
|
749
|
+
* @param {Array.<String>} opts.sku SKU filter
|
|
741
750
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectDevices200Response} and HTTP response
|
|
742
751
|
*/
|
|
743
752
|
}, {
|
|
@@ -754,7 +763,16 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
754
763
|
};
|
|
755
764
|
var queryParams = {
|
|
756
765
|
pageSize: opts["pageSize"],
|
|
757
|
-
pageNum: opts["pageNum"]
|
|
766
|
+
pageNum: opts["pageNum"],
|
|
767
|
+
deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
|
|
768
|
+
tag: this.apiClient.buildCollectionParam(opts["tag"], "multi"),
|
|
769
|
+
serialNumber: this.apiClient.buildCollectionParam(opts["serialNumber"], "multi"),
|
|
770
|
+
fleetUID: opts["fleetUID"],
|
|
771
|
+
notecardFirmware: this.apiClient.buildCollectionParam(opts["notecardFirmware"], "multi"),
|
|
772
|
+
location: this.apiClient.buildCollectionParam(opts["location"], "multi"),
|
|
773
|
+
hostFirmware: this.apiClient.buildCollectionParam(opts["hostFirmware"], "multi"),
|
|
774
|
+
productUID: this.apiClient.buildCollectionParam(opts["productUID"], "multi"),
|
|
775
|
+
sku: this.apiClient.buildCollectionParam(opts["sku"], "multi")
|
|
758
776
|
};
|
|
759
777
|
var headerParams = {};
|
|
760
778
|
var formParams = {};
|
|
@@ -771,6 +789,15 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
771
789
|
* @param {Object} opts Optional parameters
|
|
772
790
|
* @param {Number} opts.pageSize (default to 50)
|
|
773
791
|
* @param {Number} opts.pageNum (default to 1)
|
|
792
|
+
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
793
|
+
* @param {Array.<String>} opts.tag Tag filter
|
|
794
|
+
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
795
|
+
* @param {String} opts.fleetUID
|
|
796
|
+
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
797
|
+
* @param {Array.<String>} opts.location Location filter
|
|
798
|
+
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
799
|
+
* @param {Array.<String>} opts.productUID
|
|
800
|
+
* @param {Array.<String>} opts.sku SKU filter
|
|
774
801
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectDevices200Response}
|
|
775
802
|
*/
|
|
776
803
|
}, {
|
|
@@ -788,6 +815,14 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
788
815
|
* @param {Object} opts Optional parameters
|
|
789
816
|
* @param {Number} opts.pageSize (default to 50)
|
|
790
817
|
* @param {Number} opts.pageNum (default to 1)
|
|
818
|
+
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
819
|
+
* @param {Array.<String>} opts.tag Tag filter
|
|
820
|
+
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
821
|
+
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
822
|
+
* @param {Array.<String>} opts.location Location filter
|
|
823
|
+
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
824
|
+
* @param {Array.<String>} opts.productUID
|
|
825
|
+
* @param {Array.<String>} opts.sku SKU filter
|
|
791
826
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectDevices200Response} and HTTP response
|
|
792
827
|
*/
|
|
793
828
|
}, {
|
|
@@ -809,7 +844,15 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
809
844
|
};
|
|
810
845
|
var queryParams = {
|
|
811
846
|
pageSize: opts["pageSize"],
|
|
812
|
-
pageNum: opts["pageNum"]
|
|
847
|
+
pageNum: opts["pageNum"],
|
|
848
|
+
deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
|
|
849
|
+
tag: this.apiClient.buildCollectionParam(opts["tag"], "multi"),
|
|
850
|
+
serialNumber: this.apiClient.buildCollectionParam(opts["serialNumber"], "multi"),
|
|
851
|
+
notecardFirmware: this.apiClient.buildCollectionParam(opts["notecardFirmware"], "multi"),
|
|
852
|
+
location: this.apiClient.buildCollectionParam(opts["location"], "multi"),
|
|
853
|
+
hostFirmware: this.apiClient.buildCollectionParam(opts["hostFirmware"], "multi"),
|
|
854
|
+
productUID: this.apiClient.buildCollectionParam(opts["productUID"], "multi"),
|
|
855
|
+
sku: this.apiClient.buildCollectionParam(opts["sku"], "multi")
|
|
813
856
|
};
|
|
814
857
|
var headerParams = {};
|
|
815
858
|
var formParams = {};
|
|
@@ -827,6 +870,14 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
827
870
|
* @param {Object} opts Optional parameters
|
|
828
871
|
* @param {Number} opts.pageSize (default to 50)
|
|
829
872
|
* @param {Number} opts.pageNum (default to 1)
|
|
873
|
+
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
874
|
+
* @param {Array.<String>} opts.tag Tag filter
|
|
875
|
+
* @param {Array.<String>} opts.serialNumber Serial number filter
|
|
876
|
+
* @param {Array.<String>} opts.notecardFirmware Firmware version filter
|
|
877
|
+
* @param {Array.<String>} opts.location Location filter
|
|
878
|
+
* @param {Array.<String>} opts.hostFirmware Host firmware filter
|
|
879
|
+
* @param {Array.<String>} opts.productUID
|
|
880
|
+
* @param {Array.<String>} opts.sku SKU filter
|
|
830
881
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectDevices200Response}
|
|
831
882
|
*/
|
|
832
883
|
}, {
|
package/dist/api/EventApi.js
CHANGED
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* Event service.
|
|
32
32
|
* @module api/EventApi
|
|
33
|
-
* @version 1.0.
|
|
33
|
+
* @version 1.0.23
|
|
34
34
|
*/
|
|
35
35
|
var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -48,52 +48,62 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
48
48
|
/**
|
|
49
49
|
* Get Events of a Fleet
|
|
50
50
|
* @param {String} projectUID
|
|
51
|
-
* @param {String} fleetUID
|
|
52
51
|
* @param {Object} opts Optional parameters
|
|
52
|
+
* @param {Array.<String>} opts.fleetUID Filter by Fleet UID
|
|
53
53
|
* @param {Number} opts.pageSize (default to 50)
|
|
54
54
|
* @param {Number} opts.pageNum (default to 1)
|
|
55
|
-
* @param {String} opts.deviceUID A Device UID.
|
|
55
|
+
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
56
56
|
* @param {module:model/String} opts.sortBy (default to 'captured')
|
|
57
57
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
58
58
|
* @param {Number} opts.startDate Unix timestamp
|
|
59
59
|
* @param {Number} opts.endDate Unix timestamp
|
|
60
60
|
* @param {Boolean} opts.systemFilesOnly
|
|
61
61
|
* @param {String} opts.files
|
|
62
|
+
* @param {module:model/String} opts.format Response format (JSON or CSV) (default to 'json')
|
|
63
|
+
* @param {Array.<String>} opts.serialNumber Filter by Serial Number
|
|
64
|
+
* @param {Array.<String>} opts.sessionUID Filter by Session UID
|
|
65
|
+
* @param {Array.<String>} opts.eventUID Filter by Event UID
|
|
66
|
+
* @param {String} opts.selectFields Comma-separated list of fields to select from JSON payload (e.g., \"field1,field2.subfield,field3\"), this will reflect the columns in the CSV output.
|
|
67
|
+
* @param {Array.<String>} opts.deviceUIDs Deprecated.
|
|
68
|
+
* @param {String} opts.since Deprecated.
|
|
62
69
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectEvents200Response} and HTTP response
|
|
63
70
|
*/
|
|
64
71
|
return _createClass(EventApi, [{
|
|
65
72
|
key: "getFleetEventsWithHttpInfo",
|
|
66
|
-
value: function getFleetEventsWithHttpInfo(projectUID,
|
|
73
|
+
value: function getFleetEventsWithHttpInfo(projectUID, opts) {
|
|
67
74
|
opts = opts || {};
|
|
68
75
|
var postBody = null;
|
|
69
76
|
// verify the required parameter 'projectUID' is set
|
|
70
77
|
if (projectUID === undefined || projectUID === null) {
|
|
71
78
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getFleetEvents");
|
|
72
79
|
}
|
|
73
|
-
// verify the required parameter 'fleetUID' is set
|
|
74
|
-
if (fleetUID === undefined || fleetUID === null) {
|
|
75
|
-
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEvents");
|
|
76
|
-
}
|
|
77
80
|
var pathParams = {
|
|
78
|
-
projectUID: projectUID
|
|
79
|
-
fleetUID: fleetUID
|
|
81
|
+
projectUID: projectUID
|
|
80
82
|
};
|
|
81
83
|
var queryParams = {
|
|
84
|
+
fleetUID: this.apiClient.buildCollectionParam(opts["fleetUID"], "multi"),
|
|
82
85
|
pageSize: opts["pageSize"],
|
|
83
86
|
pageNum: opts["pageNum"],
|
|
84
|
-
deviceUID: opts["deviceUID"],
|
|
87
|
+
deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
|
|
85
88
|
sortBy: opts["sortBy"],
|
|
86
89
|
sortOrder: opts["sortOrder"],
|
|
87
90
|
startDate: opts["startDate"],
|
|
88
91
|
endDate: opts["endDate"],
|
|
89
92
|
systemFilesOnly: opts["systemFilesOnly"],
|
|
90
|
-
files: opts["files"]
|
|
93
|
+
files: opts["files"],
|
|
94
|
+
format: opts["format"],
|
|
95
|
+
serialNumber: this.apiClient.buildCollectionParam(opts["serialNumber"], "multi"),
|
|
96
|
+
sessionUID: this.apiClient.buildCollectionParam(opts["sessionUID"], "multi"),
|
|
97
|
+
eventUID: this.apiClient.buildCollectionParam(opts["eventUID"], "multi"),
|
|
98
|
+
selectFields: opts["selectFields"],
|
|
99
|
+
deviceUIDs: this.apiClient.buildCollectionParam(opts["deviceUIDs"], "multi"),
|
|
100
|
+
since: opts["since"]
|
|
91
101
|
};
|
|
92
102
|
var headerParams = {};
|
|
93
103
|
var formParams = {};
|
|
94
104
|
var authNames = ["api_key"];
|
|
95
105
|
var contentTypes = [];
|
|
96
|
-
var accepts = ["application/json"];
|
|
106
|
+
var accepts = ["application/json", "text/csv"];
|
|
97
107
|
var returnType = _GetProjectEvents200Response["default"];
|
|
98
108
|
return this.apiClient.callApi("/v1/projects/{projectUID}/fleets/{fleetUID}/events", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
99
109
|
}
|
|
@@ -101,23 +111,30 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
101
111
|
/**
|
|
102
112
|
* Get Events of a Fleet
|
|
103
113
|
* @param {String} projectUID
|
|
104
|
-
* @param {String} fleetUID
|
|
105
114
|
* @param {Object} opts Optional parameters
|
|
115
|
+
* @param {Array.<String>} opts.fleetUID Filter by Fleet UID
|
|
106
116
|
* @param {Number} opts.pageSize (default to 50)
|
|
107
117
|
* @param {Number} opts.pageNum (default to 1)
|
|
108
|
-
* @param {String} opts.deviceUID A Device UID.
|
|
118
|
+
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
109
119
|
* @param {module:model/String} opts.sortBy (default to 'captured')
|
|
110
120
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
111
121
|
* @param {Number} opts.startDate Unix timestamp
|
|
112
122
|
* @param {Number} opts.endDate Unix timestamp
|
|
113
123
|
* @param {Boolean} opts.systemFilesOnly
|
|
114
124
|
* @param {String} opts.files
|
|
125
|
+
* @param {module:model/String} opts.format Response format (JSON or CSV) (default to 'json')
|
|
126
|
+
* @param {Array.<String>} opts.serialNumber Filter by Serial Number
|
|
127
|
+
* @param {Array.<String>} opts.sessionUID Filter by Session UID
|
|
128
|
+
* @param {Array.<String>} opts.eventUID Filter by Event UID
|
|
129
|
+
* @param {String} opts.selectFields Comma-separated list of fields to select from JSON payload (e.g., \"field1,field2.subfield,field3\"), this will reflect the columns in the CSV output.
|
|
130
|
+
* @param {Array.<String>} opts.deviceUIDs Deprecated.
|
|
131
|
+
* @param {String} opts.since Deprecated.
|
|
115
132
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectEvents200Response}
|
|
116
133
|
*/
|
|
117
134
|
}, {
|
|
118
135
|
key: "getFleetEvents",
|
|
119
|
-
value: function getFleetEvents(projectUID,
|
|
120
|
-
return this.getFleetEventsWithHttpInfo(projectUID,
|
|
136
|
+
value: function getFleetEvents(projectUID, opts) {
|
|
137
|
+
return this.getFleetEventsWithHttpInfo(projectUID, opts).then(function (response_and_data) {
|
|
121
138
|
return response_and_data.data;
|
|
122
139
|
});
|
|
123
140
|
}
|
|
@@ -132,7 +149,7 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
132
149
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
133
150
|
* @param {Boolean} opts.systemFilesOnly
|
|
134
151
|
* @param {String} opts.files
|
|
135
|
-
* @param {String} opts.deviceUID A Device UID.
|
|
152
|
+
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
136
153
|
* @param {Number} opts.startDate Unix timestamp
|
|
137
154
|
* @param {Number} opts.endDate Unix timestamp
|
|
138
155
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectEventsByCursor200Response} and HTTP response
|
|
@@ -160,7 +177,7 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
160
177
|
sortOrder: opts["sortOrder"],
|
|
161
178
|
systemFilesOnly: opts["systemFilesOnly"],
|
|
162
179
|
files: opts["files"],
|
|
163
|
-
deviceUID: opts["deviceUID"],
|
|
180
|
+
deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
|
|
164
181
|
startDate: opts["startDate"],
|
|
165
182
|
endDate: opts["endDate"]
|
|
166
183
|
};
|
|
@@ -183,7 +200,7 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
183
200
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
184
201
|
* @param {Boolean} opts.systemFilesOnly
|
|
185
202
|
* @param {String} opts.files
|
|
186
|
-
* @param {String} opts.deviceUID A Device UID.
|
|
203
|
+
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
187
204
|
* @param {Number} opts.startDate Unix timestamp
|
|
188
205
|
* @param {Number} opts.endDate Unix timestamp
|
|
189
206
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectEventsByCursor200Response}
|
|
@@ -202,13 +219,21 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
202
219
|
* @param {Object} opts Optional parameters
|
|
203
220
|
* @param {Number} opts.pageSize (default to 50)
|
|
204
221
|
* @param {Number} opts.pageNum (default to 1)
|
|
205
|
-
* @param {String} opts.deviceUID A Device UID.
|
|
222
|
+
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
206
223
|
* @param {module:model/String} opts.sortBy (default to 'captured')
|
|
207
224
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
208
225
|
* @param {Number} opts.startDate Unix timestamp
|
|
209
226
|
* @param {Number} opts.endDate Unix timestamp
|
|
210
227
|
* @param {Boolean} opts.systemFilesOnly
|
|
211
228
|
* @param {String} opts.files
|
|
229
|
+
* @param {module:model/String} opts.format Response format (JSON or CSV) (default to 'json')
|
|
230
|
+
* @param {Array.<String>} opts.serialNumber Filter by Serial Number
|
|
231
|
+
* @param {Array.<String>} opts.fleetUID Filter by Fleet UID
|
|
232
|
+
* @param {Array.<String>} opts.sessionUID Filter by Session UID
|
|
233
|
+
* @param {Array.<String>} opts.eventUID Filter by Event UID
|
|
234
|
+
* @param {String} opts.selectFields Comma-separated list of fields to select from JSON payload (e.g., \"field1,field2.subfield,field3\"), this will reflect the columns in the CSV output.
|
|
235
|
+
* @param {Array.<String>} opts.deviceUIDs Deprecated.
|
|
236
|
+
* @param {String} opts.since Deprecated.
|
|
212
237
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectEvents200Response} and HTTP response
|
|
213
238
|
*/
|
|
214
239
|
}, {
|
|
@@ -226,19 +251,27 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
226
251
|
var queryParams = {
|
|
227
252
|
pageSize: opts["pageSize"],
|
|
228
253
|
pageNum: opts["pageNum"],
|
|
229
|
-
deviceUID: opts["deviceUID"],
|
|
254
|
+
deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
|
|
230
255
|
sortBy: opts["sortBy"],
|
|
231
256
|
sortOrder: opts["sortOrder"],
|
|
232
257
|
startDate: opts["startDate"],
|
|
233
258
|
endDate: opts["endDate"],
|
|
234
259
|
systemFilesOnly: opts["systemFilesOnly"],
|
|
235
|
-
files: opts["files"]
|
|
260
|
+
files: opts["files"],
|
|
261
|
+
format: opts["format"],
|
|
262
|
+
serialNumber: this.apiClient.buildCollectionParam(opts["serialNumber"], "multi"),
|
|
263
|
+
fleetUID: this.apiClient.buildCollectionParam(opts["fleetUID"], "multi"),
|
|
264
|
+
sessionUID: this.apiClient.buildCollectionParam(opts["sessionUID"], "multi"),
|
|
265
|
+
eventUID: this.apiClient.buildCollectionParam(opts["eventUID"], "multi"),
|
|
266
|
+
selectFields: opts["selectFields"],
|
|
267
|
+
deviceUIDs: this.apiClient.buildCollectionParam(opts["deviceUIDs"], "multi"),
|
|
268
|
+
since: opts["since"]
|
|
236
269
|
};
|
|
237
270
|
var headerParams = {};
|
|
238
271
|
var formParams = {};
|
|
239
272
|
var authNames = ["api_key"];
|
|
240
273
|
var contentTypes = [];
|
|
241
|
-
var accepts = ["application/json"];
|
|
274
|
+
var accepts = ["application/json", "text/csv"];
|
|
242
275
|
var returnType = _GetProjectEvents200Response["default"];
|
|
243
276
|
return this.apiClient.callApi("/v1/projects/{projectUID}/events", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
244
277
|
}
|
|
@@ -249,13 +282,21 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
249
282
|
* @param {Object} opts Optional parameters
|
|
250
283
|
* @param {Number} opts.pageSize (default to 50)
|
|
251
284
|
* @param {Number} opts.pageNum (default to 1)
|
|
252
|
-
* @param {String} opts.deviceUID A Device UID.
|
|
285
|
+
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
253
286
|
* @param {module:model/String} opts.sortBy (default to 'captured')
|
|
254
287
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
255
288
|
* @param {Number} opts.startDate Unix timestamp
|
|
256
289
|
* @param {Number} opts.endDate Unix timestamp
|
|
257
290
|
* @param {Boolean} opts.systemFilesOnly
|
|
258
291
|
* @param {String} opts.files
|
|
292
|
+
* @param {module:model/String} opts.format Response format (JSON or CSV) (default to 'json')
|
|
293
|
+
* @param {Array.<String>} opts.serialNumber Filter by Serial Number
|
|
294
|
+
* @param {Array.<String>} opts.fleetUID Filter by Fleet UID
|
|
295
|
+
* @param {Array.<String>} opts.sessionUID Filter by Session UID
|
|
296
|
+
* @param {Array.<String>} opts.eventUID Filter by Event UID
|
|
297
|
+
* @param {String} opts.selectFields Comma-separated list of fields to select from JSON payload (e.g., \"field1,field2.subfield,field3\"), this will reflect the columns in the CSV output.
|
|
298
|
+
* @param {Array.<String>} opts.deviceUIDs Deprecated.
|
|
299
|
+
* @param {String} opts.since Deprecated.
|
|
259
300
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectEvents200Response}
|
|
260
301
|
*/
|
|
261
302
|
}, {
|
|
@@ -276,7 +317,7 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
276
317
|
* @param {Boolean} opts.systemFilesOnly
|
|
277
318
|
* @param {String} opts.files
|
|
278
319
|
* @param {String} opts.fleetUID
|
|
279
|
-
* @param {String} opts.deviceUID A Device UID.
|
|
320
|
+
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
280
321
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectEventsByCursor200Response} and HTTP response
|
|
281
322
|
*/
|
|
282
323
|
}, {
|
|
@@ -298,7 +339,7 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
298
339
|
systemFilesOnly: opts["systemFilesOnly"],
|
|
299
340
|
files: opts["files"],
|
|
300
341
|
fleetUID: opts["fleetUID"],
|
|
301
|
-
deviceUID: opts["deviceUID"]
|
|
342
|
+
deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi")
|
|
302
343
|
};
|
|
303
344
|
var headerParams = {};
|
|
304
345
|
var formParams = {};
|
|
@@ -319,7 +360,7 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
319
360
|
* @param {Boolean} opts.systemFilesOnly
|
|
320
361
|
* @param {String} opts.files
|
|
321
362
|
* @param {String} opts.fleetUID
|
|
322
|
-
* @param {String} opts.deviceUID A Device UID.
|
|
363
|
+
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
323
364
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectEventsByCursor200Response}
|
|
324
365
|
*/
|
|
325
366
|
}, {
|
package/dist/api/MonitorApi.js
CHANGED
package/dist/api/ProjectApi.js
CHANGED
package/dist/api/RouteApi.js
CHANGED
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* Route service.
|
|
32
32
|
* @module api/RouteApi
|
|
33
|
-
* @version 1.0.
|
|
33
|
+
* @version 1.0.23
|
|
34
34
|
*/
|
|
35
35
|
var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -189,7 +189,7 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
189
189
|
* @param {Object} opts Optional parameters
|
|
190
190
|
* @param {Number} opts.pageSize (default to 50)
|
|
191
191
|
* @param {Number} opts.pageNum (default to 1)
|
|
192
|
-
* @param {String} opts.deviceUID A Device UID.
|
|
192
|
+
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
193
193
|
* @param {module:model/String} opts.sortBy (default to 'captured')
|
|
194
194
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
195
195
|
* @param {Number} opts.startDate Unix timestamp
|
|
@@ -218,7 +218,7 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
218
218
|
var queryParams = {
|
|
219
219
|
pageSize: opts["pageSize"],
|
|
220
220
|
pageNum: opts["pageNum"],
|
|
221
|
-
deviceUID: opts["deviceUID"],
|
|
221
|
+
deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
|
|
222
222
|
sortBy: opts["sortBy"],
|
|
223
223
|
sortOrder: opts["sortOrder"],
|
|
224
224
|
startDate: opts["startDate"],
|
|
@@ -242,7 +242,7 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
242
242
|
* @param {Object} opts Optional parameters
|
|
243
243
|
* @param {Number} opts.pageSize (default to 50)
|
|
244
244
|
* @param {Number} opts.pageNum (default to 1)
|
|
245
|
-
* @param {String} opts.deviceUID A Device UID.
|
|
245
|
+
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
246
246
|
* @param {module:model/String} opts.sortBy (default to 'captured')
|
|
247
247
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
248
248
|
* @param {Number} opts.startDate Unix timestamp
|
package/dist/model/Alert.js
CHANGED
|
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
31
31
|
/**
|
|
32
32
|
* The Alert model module.
|
|
33
33
|
* @module model/Alert
|
|
34
|
-
* @version 1.0.
|
|
34
|
+
* @version 1.0.23
|
|
35
35
|
*/
|
|
36
36
|
var Alert = /*#__PURE__*/function () {
|
|
37
37
|
/**
|
|
@@ -70,6 +70,9 @@ var Alert = /*#__PURE__*/function () {
|
|
|
70
70
|
if (data.hasOwnProperty("monitor_uid")) {
|
|
71
71
|
obj["monitor_uid"] = _ApiClient["default"].convertToType(data["monitor_uid"], "String");
|
|
72
72
|
}
|
|
73
|
+
if (data.hasOwnProperty("monitor_name")) {
|
|
74
|
+
obj["monitor_name"] = _ApiClient["default"].convertToType(data["monitor_name"], "String");
|
|
75
|
+
}
|
|
73
76
|
if (data.hasOwnProperty("device_uid")) {
|
|
74
77
|
obj["device_uid"] = _ApiClient["default"].convertToType(data["device_uid"], "String");
|
|
75
78
|
}
|
|
@@ -120,6 +123,10 @@ var Alert = /*#__PURE__*/function () {
|
|
|
120
123
|
throw new Error("Expected the field `monitor_uid` to be a primitive type in the JSON string but got " + data["monitor_uid"]);
|
|
121
124
|
}
|
|
122
125
|
// ensure the json data is a string
|
|
126
|
+
if (data["monitor_name"] && !(typeof data["monitor_name"] === "string" || data["monitor_name"] instanceof String)) {
|
|
127
|
+
throw new Error("Expected the field `monitor_name` to be a primitive type in the JSON string but got " + data["monitor_name"]);
|
|
128
|
+
}
|
|
129
|
+
// ensure the json data is a string
|
|
123
130
|
if (data["device_uid"] && !(typeof data["device_uid"] === "string" || data["device_uid"] instanceof String)) {
|
|
124
131
|
throw new Error("Expected the field `device_uid` to be a primitive type in the JSON string but got " + data["device_uid"]);
|
|
125
132
|
}
|
|
@@ -187,6 +194,12 @@ Alert.prototype["uid"] = undefined;
|
|
|
187
194
|
*/
|
|
188
195
|
Alert.prototype["monitor_uid"] = undefined;
|
|
189
196
|
|
|
197
|
+
/**
|
|
198
|
+
* Monitor Name
|
|
199
|
+
* @member {String} monitor_name
|
|
200
|
+
*/
|
|
201
|
+
Alert.prototype["monitor_name"] = undefined;
|
|
202
|
+
|
|
190
203
|
/**
|
|
191
204
|
* Device UID
|
|
192
205
|
* @member {String} device_uid
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The AlertDataInner model module.
|
|
28
28
|
* @module model/AlertDataInner
|
|
29
|
-
* @version 1.0.
|
|
29
|
+
* @version 1.0.23
|
|
30
30
|
*/
|
|
31
31
|
var AlertDataInner = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The AlertNotificationsInner model module.
|
|
28
28
|
* @module model/AlertNotificationsInner
|
|
29
|
-
* @version 1.0.
|
|
29
|
+
* @version 1.0.23
|
|
30
30
|
*/
|
|
31
31
|
var AlertNotificationsInner = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
package/dist/model/Aws.js
CHANGED
package/dist/model/Azure.js
CHANGED
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The BillingAccount model module.
|
|
32
32
|
* @module model/BillingAccount
|
|
33
|
-
* @version 1.0.
|
|
33
|
+
* @version 1.0.23
|
|
34
34
|
*/
|
|
35
35
|
var BillingAccount = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
package/dist/model/Body.js
CHANGED
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The CloneProjectRequest model module.
|
|
31
31
|
* @module model/CloneProjectRequest
|
|
32
|
-
* @version 1.0.
|
|
32
|
+
* @version 1.0.23
|
|
33
33
|
*/
|
|
34
34
|
var CloneProjectRequest = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
package/dist/model/Contact.js
CHANGED
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The CreateFleetRequest model module.
|
|
28
28
|
* @module model/CreateFleetRequest
|
|
29
|
-
* @version 1.0.
|
|
29
|
+
* @version 1.0.23
|
|
30
30
|
*/
|
|
31
31
|
var CreateFleetRequest = /*#__PURE__*/function () {
|
|
32
32
|
/**
|