@blues-inc/notehub-js 1.0.37-beta.4 → 1.0.37-beta.6
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 +10 -7
- package/dist/ApiClient.js +2 -2
- package/dist/api/AlertApi.js +1 -1
- package/dist/api/AuthorizationApi.js +1 -1
- package/dist/api/BillingAccountApi.js +1 -1
- package/dist/api/DeviceApi.js +8 -8
- package/dist/api/EventApi.js +1 -1
- package/dist/api/ExternalDevicesApi.js +1 -1
- package/dist/api/MonitorApi.js +10 -10
- package/dist/api/ProjectApi.js +14 -14
- package/dist/api/RouteApi.js +1 -1
- package/dist/api/WebhookApi.js +1 -1
- package/dist/index.js +59 -38
- package/dist/model/Alert.js +91 -91
- package/dist/model/AlertDataInner.js +10 -10
- package/dist/model/AlertNotificationsInner.js +10 -10
- package/dist/model/AnalyticsEventsData.js +14 -14
- package/dist/model/AnalyticsEventsResponse.js +1 -1
- package/dist/model/AnalyticsRouteLogsData.js +15 -15
- package/dist/model/AnalyticsRouteLogsResponse.js +1 -1
- package/dist/model/AnalyticsSessionsData.js +14 -14
- package/dist/model/AnalyticsSessionsResponse.js +1 -1
- package/dist/model/Aws.js +86 -86
- package/dist/model/Azure.js +51 -51
- package/dist/model/BillingAccount.js +19 -19
- package/dist/model/Body.js +1 -1
- package/dist/model/CloneProjectRequest.js +25 -25
- package/dist/model/Contact.js +19 -19
- package/dist/model/CreateFleetRequest.js +1 -1
- package/dist/model/CreateMonitor.js +186 -186
- package/dist/model/CreateProductRequest.js +30 -30
- package/dist/model/CreateProjectRequest.js +20 -20
- package/dist/model/CreateUpdateRepository.js +18 -18
- package/dist/model/CurrentFirmware.js +12 -12
- package/dist/model/DFUEnv.js +1 -1
- package/dist/model/DFUState.js +60 -60
- package/dist/model/DataField.js +1 -1
- package/dist/model/DataSet.js +164 -0
- package/dist/model/DataSetField.js +14 -14
- package/dist/model/DeleteDeviceFleetsRequest.js +1 -1
- package/dist/model/Device.js +134 -134
- package/dist/model/DeviceDfuHistory.js +15 -15
- package/dist/model/DeviceDfuHistoryPage.js +1 -1
- package/dist/model/DeviceDfuStateMachine.js +14 -14
- package/dist/model/DeviceDfuStateMachineNode.js +27 -27
- package/dist/model/DeviceDfuStatus.js +15 -15
- package/dist/model/{DeviceDfuHistoryCurrent.js → DeviceDfuStatusCurrent.js} +52 -52
- package/dist/model/DeviceDfuStatusPage.js +1 -1
- package/dist/model/DeviceSession.js +278 -278
- package/dist/model/DeviceTowerInfo.js +15 -15
- package/dist/model/DeviceUsage.js +36 -36
- package/dist/model/DfuActionRequest.js +1 -1
- package/dist/model/EmailNotification.js +1 -1
- package/dist/model/EnvTreeJsonNode.js +76 -76
- package/dist/model/EnvVar.js +9 -9
- package/dist/model/EnvironmentVariables.js +1 -1
- package/dist/model/Error.js +38 -38
- package/dist/model/Event.js +340 -340
- package/dist/model/Firmware.js +45 -45
- package/dist/model/FirmwareInfo.js +71 -71
- package/dist/model/Fleet.js +31 -31
- package/dist/model/GetAlerts200Response.js +1 -1
- package/dist/model/GetBillingAccounts200Response.js +1 -1
- package/dist/model/{GetDeviceEnvironmentVariablesByPin200Response.js → GetDeviceEnvironmentVariables200Response.js} +30 -30
- package/dist/model/GetDeviceHealthLog200Response.js +1 -1
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +15 -15
- package/dist/model/GetDeviceLatest200Response.js +1 -1
- package/dist/model/GetDevicePublicKey200Response.js +18 -18
- package/dist/model/GetDeviceSessions200Response.js +14 -14
- package/dist/model/GetProjectDevicePublicKeys200Response.js +1 -1
- package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
- package/dist/model/GetProjectDevices200Response.js +1 -1
- package/dist/model/GetProjectEvents200Response.js +1 -1
- package/dist/model/GetProjectEventsByCursor200Response.js +16 -16
- package/dist/model/{GetDeviceFleets200Response.js → GetProjectFleets200Response.js} +20 -20
- package/dist/model/GetProjectMembers200Response.js +1 -1
- package/dist/model/GetProjectProducts200Response.js +1 -1
- package/dist/model/GetProjects200Response.js +1 -1
- package/dist/model/GetWebhooks200Response.js +1 -1
- package/dist/model/Google.js +35 -35
- package/dist/model/HandleNoteChanges200Response.js +10 -10
- package/dist/model/HandleNoteGet200Response.js +1 -1
- package/dist/model/HandleNoteSignal200Response.js +1 -1
- package/dist/model/HandleNotefileChanges200Response.js +10 -10
- package/dist/model/HandleNotefileChangesPending200Response.js +15 -15
- package/dist/model/HandleNotefileDeleteRequest.js +1 -1
- package/dist/model/Http.js +43 -43
- package/dist/model/{AwsFilter.js → HttpFilter.js} +32 -32
- package/dist/model/{AwsTransform.js → HttpTransform.js} +21 -21
- package/dist/model/Location.js +38 -38
- package/dist/model/Login200Response.js +1 -1
- package/dist/model/LoginRequest.js +12 -12
- package/dist/model/Monitor.js +135 -135
- package/dist/model/MonitorAlertRoutesInner.js +12 -12
- package/dist/model/Mqtt.js +91 -91
- package/dist/model/Note.js +1 -1
- package/dist/model/NotefileSchema.js +1 -1
- package/dist/model/NotehubRoute.js +30 -30
- package/dist/model/NotehubRouteSchema.js +80 -80
- package/dist/model/PersonalAccessToken.js +37 -37
- package/dist/model/PersonalAccessTokenCreatedBy.js +13 -13
- package/dist/model/PersonalAccessTokenInfo.js +13 -13
- package/dist/model/PersonalAccessTokenSecret.js +14 -14
- package/dist/model/PostProvisionProjectDeviceRequest.js +14 -14
- package/dist/model/Product.js +29 -29
- package/dist/model/Project.js +35 -35
- package/dist/model/ProjectMember.js +19 -19
- package/dist/model/Proxy.js +21 -21
- package/dist/model/PutDeviceFleetsRequest.js +1 -1
- package/dist/model/QuestionDataResponseLineChart.js +204 -0
- package/dist/model/QuestionDataResponseMap.js +143 -0
- package/dist/model/Radresponder.js +28 -28
- package/dist/model/Repository.js +22 -22
- package/dist/model/RouteLog.js +28 -28
- package/dist/model/SchemaProperty.js +36 -34
- package/dist/model/SimUsage.js +72 -19
- package/dist/model/Slack.js +71 -71
- package/dist/model/SlackBearerNotification.js +14 -14
- package/dist/model/SlackWebHookNotification.js +14 -14
- package/dist/model/Snowflake.js +57 -57
- package/dist/model/{SlackTransform.js → SnowflakeTransform.js} +19 -19
- package/dist/model/Thingworx.js +36 -36
- package/dist/model/TowerLocation.js +58 -58
- package/dist/model/Twilio.js +46 -46
- package/dist/model/UpdateFleetRequest.js +14 -14
- package/dist/model/UploadMetadata.js +68 -68
- package/dist/model/UserDbRoute.js +26 -26
- package/dist/model/UserDfuStateMachine.js +14 -14
- package/dist/model/UserDfuStateMachineStatus.js +9 -9
- package/dist/model/UserFirmwareInfo.js +1 -1
- package/dist/model/WebhookSettings.js +1 -1
- package/package.json +1 -1
package/dist/model/RouteLog.js
CHANGED
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The RouteLog model module.
|
|
28
28
|
* @module model/RouteLog
|
|
29
|
-
* @version 1.0.37-beta.
|
|
29
|
+
* @version 1.0.37-beta.6
|
|
30
30
|
*/
|
|
31
31
|
var RouteLog = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -59,20 +59,17 @@ var RouteLog = /*#__PURE__*/function () {
|
|
|
59
59
|
value: function constructFromObject(data, obj) {
|
|
60
60
|
if (data) {
|
|
61
61
|
obj = obj || new RouteLog();
|
|
62
|
-
if (data.hasOwnProperty('attn')) {
|
|
63
|
-
obj['attn'] = _ApiClient["default"].convertToType(data['attn'], 'Boolean');
|
|
64
|
-
}
|
|
65
62
|
if (data.hasOwnProperty('date')) {
|
|
66
63
|
obj['date'] = _ApiClient["default"].convertToType(data['date'], 'String');
|
|
67
64
|
}
|
|
68
|
-
if (data.hasOwnProperty('
|
|
69
|
-
obj['
|
|
65
|
+
if (data.hasOwnProperty('routeUID')) {
|
|
66
|
+
obj['routeUID'] = _ApiClient["default"].convertToType(data['routeUID'], 'String');
|
|
70
67
|
}
|
|
71
|
-
if (data.hasOwnProperty('
|
|
72
|
-
obj['
|
|
68
|
+
if (data.hasOwnProperty('eventUID')) {
|
|
69
|
+
obj['eventUID'] = _ApiClient["default"].convertToType(data['eventUID'], 'String');
|
|
73
70
|
}
|
|
74
|
-
if (data.hasOwnProperty('
|
|
75
|
-
obj['
|
|
71
|
+
if (data.hasOwnProperty('attn')) {
|
|
72
|
+
obj['attn'] = _ApiClient["default"].convertToType(data['attn'], 'Boolean');
|
|
76
73
|
}
|
|
77
74
|
if (data.hasOwnProperty('status')) {
|
|
78
75
|
obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
|
|
@@ -83,6 +80,9 @@ var RouteLog = /*#__PURE__*/function () {
|
|
|
83
80
|
if (data.hasOwnProperty('url')) {
|
|
84
81
|
obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String');
|
|
85
82
|
}
|
|
83
|
+
if (data.hasOwnProperty('duration')) {
|
|
84
|
+
obj['duration'] = _ApiClient["default"].convertToType(data['duration'], 'Number');
|
|
85
|
+
}
|
|
86
86
|
} else if (data === null) {
|
|
87
87
|
return null;
|
|
88
88
|
}
|
|
@@ -102,12 +102,12 @@ var RouteLog = /*#__PURE__*/function () {
|
|
|
102
102
|
throw new Error("Expected the field `date` to be a primitive type in the JSON string but got " + data['date']);
|
|
103
103
|
}
|
|
104
104
|
// ensure the json data is a string
|
|
105
|
-
if (data['
|
|
106
|
-
throw new Error("Expected the field `
|
|
105
|
+
if (data['routeUID'] && !(typeof data['routeUID'] === 'string' || data['routeUID'] instanceof String)) {
|
|
106
|
+
throw new Error("Expected the field `routeUID` to be a primitive type in the JSON string but got " + data['routeUID']);
|
|
107
107
|
}
|
|
108
108
|
// ensure the json data is a string
|
|
109
|
-
if (data['
|
|
110
|
-
throw new Error("Expected the field `
|
|
109
|
+
if (data['eventUID'] && !(typeof data['eventUID'] === 'string' || data['eventUID'] instanceof String)) {
|
|
110
|
+
throw new Error("Expected the field `eventUID` to be a primitive type in the JSON string but got " + data['eventUID']);
|
|
111
111
|
}
|
|
112
112
|
// ensure the json data is a string
|
|
113
113
|
if (data['status'] && !(typeof data['status'] === 'string' || data['status'] instanceof String)) {
|
|
@@ -125,12 +125,6 @@ var RouteLog = /*#__PURE__*/function () {
|
|
|
125
125
|
}
|
|
126
126
|
}]);
|
|
127
127
|
}();
|
|
128
|
-
/**
|
|
129
|
-
* If true, an error was returned when routing
|
|
130
|
-
* @member {Boolean} attn
|
|
131
|
-
*/
|
|
132
|
-
RouteLog.prototype['attn'] = undefined;
|
|
133
|
-
|
|
134
128
|
/**
|
|
135
129
|
* The date of the logs.
|
|
136
130
|
* @member {String} date
|
|
@@ -138,22 +132,22 @@ RouteLog.prototype['attn'] = undefined;
|
|
|
138
132
|
RouteLog.prototype['date'] = undefined;
|
|
139
133
|
|
|
140
134
|
/**
|
|
141
|
-
* The
|
|
142
|
-
* @member {
|
|
135
|
+
* The route UID.
|
|
136
|
+
* @member {String} routeUID
|
|
143
137
|
*/
|
|
144
|
-
RouteLog.prototype['
|
|
138
|
+
RouteLog.prototype['routeUID'] = undefined;
|
|
145
139
|
|
|
146
140
|
/**
|
|
147
141
|
* The event UID.
|
|
148
|
-
* @member {String}
|
|
142
|
+
* @member {String} eventUID
|
|
149
143
|
*/
|
|
150
|
-
RouteLog.prototype['
|
|
144
|
+
RouteLog.prototype['eventUID'] = undefined;
|
|
151
145
|
|
|
152
146
|
/**
|
|
153
|
-
*
|
|
154
|
-
* @member {
|
|
147
|
+
* If true, an error was returned when routing
|
|
148
|
+
* @member {Boolean} attn
|
|
155
149
|
*/
|
|
156
|
-
RouteLog.prototype['
|
|
150
|
+
RouteLog.prototype['attn'] = undefined;
|
|
157
151
|
|
|
158
152
|
/**
|
|
159
153
|
* The status of the event.
|
|
@@ -172,4 +166,10 @@ RouteLog.prototype['text'] = undefined;
|
|
|
172
166
|
* @member {String} url
|
|
173
167
|
*/
|
|
174
168
|
RouteLog.prototype['url'] = undefined;
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* The duration of the route in milliseconds
|
|
172
|
+
* @member {Number} duration
|
|
173
|
+
*/
|
|
174
|
+
RouteLog.prototype['duration'] = undefined;
|
|
175
175
|
var _default = exports["default"] = RouteLog;
|
|
@@ -29,17 +29,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The SchemaProperty model module.
|
|
31
31
|
* @module model/SchemaProperty
|
|
32
|
-
* @version 1.0.37-beta.
|
|
32
|
+
* @version 1.0.37-beta.6
|
|
33
33
|
*/
|
|
34
34
|
var SchemaProperty = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
36
36
|
* Constructs a new <code>SchemaProperty</code>.
|
|
37
37
|
* @alias module:model/SchemaProperty
|
|
38
38
|
* @param type {module:model/SchemaProperty.TypeEnum}
|
|
39
|
+
* @param updatedAt {Date}
|
|
39
40
|
*/
|
|
40
|
-
function SchemaProperty(type) {
|
|
41
|
+
function SchemaProperty(type, updatedAt) {
|
|
41
42
|
_classCallCheck(this, SchemaProperty);
|
|
42
|
-
SchemaProperty.initialize(this, type);
|
|
43
|
+
SchemaProperty.initialize(this, type, updatedAt);
|
|
43
44
|
}
|
|
44
45
|
|
|
45
46
|
/**
|
|
@@ -49,8 +50,9 @@ var SchemaProperty = /*#__PURE__*/function () {
|
|
|
49
50
|
*/
|
|
50
51
|
return _createClass(SchemaProperty, null, [{
|
|
51
52
|
key: "initialize",
|
|
52
|
-
value: function initialize(obj, type) {
|
|
53
|
+
value: function initialize(obj, type, updatedAt) {
|
|
53
54
|
obj['type'] = type;
|
|
55
|
+
obj['updatedAt'] = updatedAt;
|
|
54
56
|
}
|
|
55
57
|
|
|
56
58
|
/**
|
|
@@ -65,20 +67,20 @@ var SchemaProperty = /*#__PURE__*/function () {
|
|
|
65
67
|
value: function constructFromObject(data, obj) {
|
|
66
68
|
if (data) {
|
|
67
69
|
obj = obj || new SchemaProperty();
|
|
68
|
-
if (data.hasOwnProperty('items')) {
|
|
69
|
-
obj['items'] = _ApiClient["default"].convertToType(data['items'], [SchemaProperty]);
|
|
70
|
-
}
|
|
71
70
|
if (data.hasOwnProperty('name')) {
|
|
72
71
|
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
|
|
73
72
|
}
|
|
74
|
-
if (data.hasOwnProperty('properties')) {
|
|
75
|
-
obj['properties'] = _ApiClient["default"].convertToType(data['properties'], [SchemaProperty]);
|
|
76
|
-
}
|
|
77
73
|
if (data.hasOwnProperty('type')) {
|
|
78
74
|
obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String');
|
|
79
75
|
}
|
|
80
|
-
if (data.hasOwnProperty('
|
|
81
|
-
obj['
|
|
76
|
+
if (data.hasOwnProperty('updatedAt')) {
|
|
77
|
+
obj['updatedAt'] = _ApiClient["default"].convertToType(data['updatedAt'], 'Date');
|
|
78
|
+
}
|
|
79
|
+
if (data.hasOwnProperty('items')) {
|
|
80
|
+
obj['items'] = _ApiClient["default"].convertToType(data['items'], [SchemaProperty]);
|
|
81
|
+
}
|
|
82
|
+
if (data.hasOwnProperty('properties')) {
|
|
83
|
+
obj['properties'] = _ApiClient["default"].convertToType(data['properties'], [SchemaProperty]);
|
|
82
84
|
}
|
|
83
85
|
} else if (data === null) {
|
|
84
86
|
return null;
|
|
@@ -104,11 +106,19 @@ var SchemaProperty = /*#__PURE__*/function () {
|
|
|
104
106
|
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
105
107
|
}
|
|
106
108
|
}
|
|
109
|
+
// ensure the json data is a string
|
|
107
110
|
} catch (err) {
|
|
108
111
|
_iterator.e(err);
|
|
109
112
|
} finally {
|
|
110
113
|
_iterator.f();
|
|
111
114
|
}
|
|
115
|
+
if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
|
|
116
|
+
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
|
|
117
|
+
}
|
|
118
|
+
// ensure the json data is a string
|
|
119
|
+
if (data['type'] && !(typeof data['type'] === 'string' || data['type'] instanceof String)) {
|
|
120
|
+
throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data['type']);
|
|
121
|
+
}
|
|
112
122
|
if (data['items']) {
|
|
113
123
|
// data not null
|
|
114
124
|
// ensure the json data is an array
|
|
@@ -130,10 +140,6 @@ var SchemaProperty = /*#__PURE__*/function () {
|
|
|
130
140
|
}
|
|
131
141
|
;
|
|
132
142
|
}
|
|
133
|
-
// ensure the json data is a string
|
|
134
|
-
if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
|
|
135
|
-
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
|
|
136
|
-
}
|
|
137
143
|
if (data['properties']) {
|
|
138
144
|
// data not null
|
|
139
145
|
// ensure the json data is an array
|
|
@@ -155,21 +161,11 @@ var SchemaProperty = /*#__PURE__*/function () {
|
|
|
155
161
|
}
|
|
156
162
|
;
|
|
157
163
|
}
|
|
158
|
-
// ensure the json data is a string
|
|
159
|
-
if (data['type'] && !(typeof data['type'] === 'string' || data['type'] instanceof String)) {
|
|
160
|
-
throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data['type']);
|
|
161
|
-
}
|
|
162
164
|
return true;
|
|
163
165
|
}
|
|
164
166
|
}]);
|
|
165
167
|
}();
|
|
166
|
-
SchemaProperty.RequiredProperties = ["type"];
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* Used if type is array
|
|
170
|
-
* @member {Array.<module:model/SchemaProperty>} items
|
|
171
|
-
*/
|
|
172
|
-
SchemaProperty.prototype['items'] = undefined;
|
|
168
|
+
SchemaProperty.RequiredProperties = ["type", "updatedAt"];
|
|
173
169
|
|
|
174
170
|
/**
|
|
175
171
|
* Name of the field (optional for array/object children)
|
|
@@ -178,20 +174,26 @@ SchemaProperty.prototype['items'] = undefined;
|
|
|
178
174
|
SchemaProperty.prototype['name'] = undefined;
|
|
179
175
|
|
|
180
176
|
/**
|
|
181
|
-
*
|
|
182
|
-
* @member {Array.<module:model/SchemaProperty>} properties
|
|
177
|
+
* @member {module:model/SchemaProperty.TypeEnum} type
|
|
183
178
|
*/
|
|
184
|
-
SchemaProperty.prototype['
|
|
179
|
+
SchemaProperty.prototype['type'] = undefined;
|
|
185
180
|
|
|
186
181
|
/**
|
|
187
|
-
* @member {
|
|
182
|
+
* @member {Date} updatedAt
|
|
188
183
|
*/
|
|
189
|
-
SchemaProperty.prototype['
|
|
184
|
+
SchemaProperty.prototype['updatedAt'] = undefined;
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* Used if type is array
|
|
188
|
+
* @member {Array.<module:model/SchemaProperty>} items
|
|
189
|
+
*/
|
|
190
|
+
SchemaProperty.prototype['items'] = undefined;
|
|
190
191
|
|
|
191
192
|
/**
|
|
192
|
-
*
|
|
193
|
+
* Used if type is object
|
|
194
|
+
* @member {Array.<module:model/SchemaProperty>} properties
|
|
193
195
|
*/
|
|
194
|
-
SchemaProperty.prototype['
|
|
196
|
+
SchemaProperty.prototype['properties'] = undefined;
|
|
195
197
|
|
|
196
198
|
/**
|
|
197
199
|
* Allowed values for the <code>type</code> property.
|
package/dist/model/SimUsage.js
CHANGED
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The SimUsage model module.
|
|
28
28
|
* @module model/SimUsage
|
|
29
|
-
* @version 1.0.37-beta.
|
|
29
|
+
* @version 1.0.37-beta.6
|
|
30
30
|
*/
|
|
31
31
|
var SimUsage = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -62,17 +62,32 @@ var SimUsage = /*#__PURE__*/function () {
|
|
|
62
62
|
if (data.hasOwnProperty('iccid')) {
|
|
63
63
|
obj['iccid'] = _ApiClient["default"].convertToType(data['iccid'], 'String');
|
|
64
64
|
}
|
|
65
|
-
if (data.hasOwnProperty('
|
|
66
|
-
obj['
|
|
67
|
-
}
|
|
68
|
-
if (data.hasOwnProperty('lifetime_used')) {
|
|
69
|
-
obj['lifetime_used'] = _ApiClient["default"].convertToType(data['lifetime_used'], 'Number');
|
|
65
|
+
if (data.hasOwnProperty('used')) {
|
|
66
|
+
obj['used'] = _ApiClient["default"].convertToType(data['used'], 'Number');
|
|
70
67
|
}
|
|
71
68
|
if (data.hasOwnProperty('limit')) {
|
|
72
69
|
obj['limit'] = _ApiClient["default"].convertToType(data['limit'], 'Number');
|
|
73
70
|
}
|
|
74
|
-
if (data.hasOwnProperty('
|
|
75
|
-
obj['
|
|
71
|
+
if (data.hasOwnProperty('lifetimeUsed')) {
|
|
72
|
+
obj['lifetimeUsed'] = _ApiClient["default"].convertToType(data['lifetimeUsed'], 'Number');
|
|
73
|
+
}
|
|
74
|
+
if (data.hasOwnProperty('lastUpdated')) {
|
|
75
|
+
obj['lastUpdated'] = _ApiClient["default"].convertToType(data['lastUpdated'], 'Number');
|
|
76
|
+
}
|
|
77
|
+
if (data.hasOwnProperty('activated')) {
|
|
78
|
+
obj['activated'] = _ApiClient["default"].convertToType(data['activated'], 'Number');
|
|
79
|
+
}
|
|
80
|
+
if (data.hasOwnProperty('expires')) {
|
|
81
|
+
obj['expires'] = _ApiClient["default"].convertToType(data['expires'], 'Number');
|
|
82
|
+
}
|
|
83
|
+
if (data.hasOwnProperty('plan_type')) {
|
|
84
|
+
obj['plan_type'] = _ApiClient["default"].convertToType(data['plan_type'], 'String');
|
|
85
|
+
}
|
|
86
|
+
if (data.hasOwnProperty('imsi')) {
|
|
87
|
+
obj['imsi'] = _ApiClient["default"].convertToType(data['imsi'], 'String');
|
|
88
|
+
}
|
|
89
|
+
if (data.hasOwnProperty('is_bundled')) {
|
|
90
|
+
obj['is_bundled'] = _ApiClient["default"].convertToType(data['is_bundled'], 'Boolean');
|
|
76
91
|
}
|
|
77
92
|
} else if (data === null) {
|
|
78
93
|
return null;
|
|
@@ -92,6 +107,14 @@ var SimUsage = /*#__PURE__*/function () {
|
|
|
92
107
|
if (data['iccid'] && !(typeof data['iccid'] === 'string' || data['iccid'] instanceof String)) {
|
|
93
108
|
throw new Error("Expected the field `iccid` to be a primitive type in the JSON string but got " + data['iccid']);
|
|
94
109
|
}
|
|
110
|
+
// ensure the json data is a string
|
|
111
|
+
if (data['plan_type'] && !(typeof data['plan_type'] === 'string' || data['plan_type'] instanceof String)) {
|
|
112
|
+
throw new Error("Expected the field `plan_type` to be a primitive type in the JSON string but got " + data['plan_type']);
|
|
113
|
+
}
|
|
114
|
+
// ensure the json data is a string
|
|
115
|
+
if (data['imsi'] && !(typeof data['imsi'] === 'string' || data['imsi'] instanceof String)) {
|
|
116
|
+
throw new Error("Expected the field `imsi` to be a primitive type in the JSON string but got " + data['imsi']);
|
|
117
|
+
}
|
|
95
118
|
return true;
|
|
96
119
|
}
|
|
97
120
|
}]);
|
|
@@ -103,26 +126,56 @@ var SimUsage = /*#__PURE__*/function () {
|
|
|
103
126
|
SimUsage.prototype['iccid'] = undefined;
|
|
104
127
|
|
|
105
128
|
/**
|
|
106
|
-
*
|
|
107
|
-
* @member {Number}
|
|
129
|
+
* Bytes used on the SIMs current data plan
|
|
130
|
+
* @member {Number} used
|
|
131
|
+
*/
|
|
132
|
+
SimUsage.prototype['used'] = undefined;
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Limit in bytes of the SIMs current data plan
|
|
136
|
+
* @member {Number} limit
|
|
108
137
|
*/
|
|
109
|
-
SimUsage.prototype['
|
|
138
|
+
SimUsage.prototype['limit'] = undefined;
|
|
110
139
|
|
|
111
140
|
/**
|
|
112
141
|
* Total number of bytes used by SIM
|
|
113
|
-
* @member {Number}
|
|
142
|
+
* @member {Number} lifetimeUsed
|
|
114
143
|
*/
|
|
115
|
-
SimUsage.prototype['
|
|
144
|
+
SimUsage.prototype['lifetimeUsed'] = undefined;
|
|
116
145
|
|
|
117
146
|
/**
|
|
118
|
-
*
|
|
119
|
-
* @member {Number}
|
|
147
|
+
* Time this usage information was last updated
|
|
148
|
+
* @member {Number} lastUpdated
|
|
120
149
|
*/
|
|
121
|
-
SimUsage.prototype['
|
|
150
|
+
SimUsage.prototype['lastUpdated'] = undefined;
|
|
122
151
|
|
|
123
152
|
/**
|
|
124
|
-
*
|
|
125
|
-
* @member {Number}
|
|
153
|
+
* Activation date of the SIM card as Unix timestamp
|
|
154
|
+
* @member {Number} activated
|
|
126
155
|
*/
|
|
127
|
-
SimUsage.prototype['
|
|
156
|
+
SimUsage.prototype['activated'] = undefined;
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Date when the cellular plan expires as Unix timestamp
|
|
160
|
+
* @member {Number} expires
|
|
161
|
+
*/
|
|
162
|
+
SimUsage.prototype['expires'] = undefined;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Plan type name
|
|
166
|
+
* @member {String} plan_type
|
|
167
|
+
*/
|
|
168
|
+
SimUsage.prototype['plan_type'] = undefined;
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* IMSI of the SIM card
|
|
172
|
+
* @member {String} imsi
|
|
173
|
+
*/
|
|
174
|
+
SimUsage.prototype['imsi'] = undefined;
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Whether this SIM uses an internal bundled data plan (AT&T)
|
|
178
|
+
* @member {Boolean} is_bundled
|
|
179
|
+
*/
|
|
180
|
+
SimUsage.prototype['is_bundled'] = undefined;
|
|
128
181
|
var _default = exports["default"] = SimUsage;
|
package/dist/model/Slack.js
CHANGED
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
-
var
|
|
9
|
-
var
|
|
8
|
+
var _HttpFilter = _interopRequireDefault(require("./HttpFilter"));
|
|
9
|
+
var _SnowflakeTransform = _interopRequireDefault(require("./SnowflakeTransform"));
|
|
10
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
11
|
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); }
|
|
12
12
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
/**
|
|
29
29
|
* The Slack model module.
|
|
30
30
|
* @module model/Slack
|
|
31
|
-
* @version 1.0.37-beta.
|
|
31
|
+
* @version 1.0.37-beta.6
|
|
32
32
|
*/
|
|
33
33
|
var Slack = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
@@ -62,26 +62,14 @@ var Slack = /*#__PURE__*/function () {
|
|
|
62
62
|
value: function constructFromObject(data, obj) {
|
|
63
63
|
if (data) {
|
|
64
64
|
obj = obj || new Slack();
|
|
65
|
-
if (data.hasOwnProperty('bearer')) {
|
|
66
|
-
obj['bearer'] = _ApiClient["default"].convertToType(data['bearer'], 'String');
|
|
67
|
-
}
|
|
68
|
-
if (data.hasOwnProperty('blocks')) {
|
|
69
|
-
obj['blocks'] = _ApiClient["default"].convertToType(data['blocks'], 'String');
|
|
70
|
-
}
|
|
71
|
-
if (data.hasOwnProperty('channel')) {
|
|
72
|
-
obj['channel'] = _ApiClient["default"].convertToType(data['channel'], 'String');
|
|
73
|
-
}
|
|
74
|
-
if (data.hasOwnProperty('filter')) {
|
|
75
|
-
obj['filter'] = _AwsFilter["default"].constructFromObject(data['filter']);
|
|
76
|
-
}
|
|
77
65
|
if (data.hasOwnProperty('fleets')) {
|
|
78
66
|
obj['fleets'] = _ApiClient["default"].convertToType(data['fleets'], ['String']);
|
|
79
67
|
}
|
|
80
|
-
if (data.hasOwnProperty('
|
|
81
|
-
obj['
|
|
68
|
+
if (data.hasOwnProperty('filter')) {
|
|
69
|
+
obj['filter'] = _HttpFilter["default"].constructFromObject(data['filter']);
|
|
82
70
|
}
|
|
83
|
-
if (data.hasOwnProperty('
|
|
84
|
-
obj['
|
|
71
|
+
if (data.hasOwnProperty('transform')) {
|
|
72
|
+
obj['transform'] = _SnowflakeTransform["default"].constructFromObject(data['transform']);
|
|
85
73
|
}
|
|
86
74
|
if (data.hasOwnProperty('throttle_ms')) {
|
|
87
75
|
obj['throttle_ms'] = _ApiClient["default"].convertToType(data['throttle_ms'], 'Number');
|
|
@@ -89,12 +77,24 @@ var Slack = /*#__PURE__*/function () {
|
|
|
89
77
|
if (data.hasOwnProperty('timeout')) {
|
|
90
78
|
obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'Number');
|
|
91
79
|
}
|
|
92
|
-
if (data.hasOwnProperty('
|
|
93
|
-
obj['
|
|
80
|
+
if (data.hasOwnProperty('slack_type')) {
|
|
81
|
+
obj['slack_type'] = _ApiClient["default"].convertToType(data['slack_type'], 'String');
|
|
82
|
+
}
|
|
83
|
+
if (data.hasOwnProperty('bearer')) {
|
|
84
|
+
obj['bearer'] = _ApiClient["default"].convertToType(data['bearer'], 'String');
|
|
85
|
+
}
|
|
86
|
+
if (data.hasOwnProperty('channel')) {
|
|
87
|
+
obj['channel'] = _ApiClient["default"].convertToType(data['channel'], 'String');
|
|
94
88
|
}
|
|
95
89
|
if (data.hasOwnProperty('webhook_url')) {
|
|
96
90
|
obj['webhook_url'] = _ApiClient["default"].convertToType(data['webhook_url'], 'String');
|
|
97
91
|
}
|
|
92
|
+
if (data.hasOwnProperty('text')) {
|
|
93
|
+
obj['text'] = _ApiClient["default"].convertToType(data['text'], 'String');
|
|
94
|
+
}
|
|
95
|
+
if (data.hasOwnProperty('blocks')) {
|
|
96
|
+
obj['blocks'] = _ApiClient["default"].convertToType(data['blocks'], 'String');
|
|
97
|
+
}
|
|
98
98
|
} else if (data === null) {
|
|
99
99
|
return null;
|
|
100
100
|
}
|
|
@@ -109,76 +109,76 @@ var Slack = /*#__PURE__*/function () {
|
|
|
109
109
|
}, {
|
|
110
110
|
key: "validateJSON",
|
|
111
111
|
value: function validateJSON(data) {
|
|
112
|
-
// ensure the json data is
|
|
113
|
-
if (
|
|
114
|
-
throw new Error("Expected the field `
|
|
115
|
-
}
|
|
116
|
-
// ensure the json data is a string
|
|
117
|
-
if (data['blocks'] && !(typeof data['blocks'] === 'string' || data['blocks'] instanceof String)) {
|
|
118
|
-
throw new Error("Expected the field `blocks` to be a primitive type in the JSON string but got " + data['blocks']);
|
|
119
|
-
}
|
|
120
|
-
// ensure the json data is a string
|
|
121
|
-
if (data['channel'] && !(typeof data['channel'] === 'string' || data['channel'] instanceof String)) {
|
|
122
|
-
throw new Error("Expected the field `channel` to be a primitive type in the JSON string but got " + data['channel']);
|
|
112
|
+
// ensure the json data is an array
|
|
113
|
+
if (!Array.isArray(data['fleets'])) {
|
|
114
|
+
throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data['fleets']);
|
|
123
115
|
}
|
|
124
116
|
// validate the optional field `filter`
|
|
125
117
|
if (data['filter']) {
|
|
126
118
|
// data not null
|
|
127
|
-
|
|
119
|
+
_HttpFilter["default"].validateJSON(data['filter']);
|
|
128
120
|
}
|
|
129
|
-
//
|
|
130
|
-
if (
|
|
131
|
-
|
|
121
|
+
// validate the optional field `transform`
|
|
122
|
+
if (data['transform']) {
|
|
123
|
+
// data not null
|
|
124
|
+
_SnowflakeTransform["default"].validateJSON(data['transform']);
|
|
132
125
|
}
|
|
133
126
|
// ensure the json data is a string
|
|
134
127
|
if (data['slack_type'] && !(typeof data['slack_type'] === 'string' || data['slack_type'] instanceof String)) {
|
|
135
128
|
throw new Error("Expected the field `slack_type` to be a primitive type in the JSON string but got " + data['slack_type']);
|
|
136
129
|
}
|
|
137
130
|
// ensure the json data is a string
|
|
138
|
-
if (data['
|
|
139
|
-
throw new Error("Expected the field `
|
|
131
|
+
if (data['bearer'] && !(typeof data['bearer'] === 'string' || data['bearer'] instanceof String)) {
|
|
132
|
+
throw new Error("Expected the field `bearer` to be a primitive type in the JSON string but got " + data['bearer']);
|
|
140
133
|
}
|
|
141
|
-
//
|
|
142
|
-
if (data['
|
|
143
|
-
|
|
144
|
-
_SlackTransform["default"].validateJSON(data['transform']);
|
|
134
|
+
// ensure the json data is a string
|
|
135
|
+
if (data['channel'] && !(typeof data['channel'] === 'string' || data['channel'] instanceof String)) {
|
|
136
|
+
throw new Error("Expected the field `channel` to be a primitive type in the JSON string but got " + data['channel']);
|
|
145
137
|
}
|
|
146
138
|
// ensure the json data is a string
|
|
147
139
|
if (data['webhook_url'] && !(typeof data['webhook_url'] === 'string' || data['webhook_url'] instanceof String)) {
|
|
148
140
|
throw new Error("Expected the field `webhook_url` to be a primitive type in the JSON string but got " + data['webhook_url']);
|
|
149
141
|
}
|
|
142
|
+
// ensure the json data is a string
|
|
143
|
+
if (data['text'] && !(typeof data['text'] === 'string' || data['text'] instanceof String)) {
|
|
144
|
+
throw new Error("Expected the field `text` to be a primitive type in the JSON string but got " + data['text']);
|
|
145
|
+
}
|
|
146
|
+
// ensure the json data is a string
|
|
147
|
+
if (data['blocks'] && !(typeof data['blocks'] === 'string' || data['blocks'] instanceof String)) {
|
|
148
|
+
throw new Error("Expected the field `blocks` to be a primitive type in the JSON string but got " + data['blocks']);
|
|
149
|
+
}
|
|
150
150
|
return true;
|
|
151
151
|
}
|
|
152
152
|
}]);
|
|
153
153
|
}();
|
|
154
154
|
/**
|
|
155
|
-
*
|
|
156
|
-
* @member {String}
|
|
155
|
+
* list of Fleet UIDs to apply route to, if any. If empty, applies to all Fleets
|
|
156
|
+
* @member {Array.<String>} fleets
|
|
157
157
|
*/
|
|
158
|
-
Slack.prototype['
|
|
158
|
+
Slack.prototype['fleets'] = undefined;
|
|
159
159
|
|
|
160
160
|
/**
|
|
161
|
-
*
|
|
162
|
-
* @member {String} blocks
|
|
161
|
+
* @member {module:model/HttpFilter} filter
|
|
163
162
|
*/
|
|
164
|
-
Slack.prototype['
|
|
163
|
+
Slack.prototype['filter'] = undefined;
|
|
165
164
|
|
|
166
165
|
/**
|
|
167
|
-
*
|
|
168
|
-
* @member {String} channel
|
|
166
|
+
* @member {module:model/SnowflakeTransform} transform
|
|
169
167
|
*/
|
|
170
|
-
Slack.prototype['
|
|
168
|
+
Slack.prototype['transform'] = undefined;
|
|
171
169
|
|
|
172
170
|
/**
|
|
173
|
-
*
|
|
171
|
+
* Minimum time between requests in Miliseconds
|
|
172
|
+
* @member {Number} throttle_ms
|
|
174
173
|
*/
|
|
175
|
-
Slack.prototype['
|
|
174
|
+
Slack.prototype['throttle_ms'] = undefined;
|
|
176
175
|
|
|
177
176
|
/**
|
|
178
|
-
*
|
|
179
|
-
* @member {
|
|
177
|
+
* Timeout in seconds for each request
|
|
178
|
+
* @member {Number} timeout
|
|
179
|
+
* @default 15
|
|
180
180
|
*/
|
|
181
|
-
Slack.prototype['
|
|
181
|
+
Slack.prototype['timeout'] = 15;
|
|
182
182
|
|
|
183
183
|
/**
|
|
184
184
|
* The type of Slack message. Must be one of \"slack-bearer\" for Bearer Token or \"slack-webhook\" for Webhook messages
|
|
@@ -187,32 +187,32 @@ Slack.prototype['fleets'] = undefined;
|
|
|
187
187
|
Slack.prototype['slack_type'] = undefined;
|
|
188
188
|
|
|
189
189
|
/**
|
|
190
|
-
* The
|
|
191
|
-
* @member {String}
|
|
190
|
+
* The Bearer Token for Slack messaging, if the \"slack-bearer\" type is selected
|
|
191
|
+
* @member {String} bearer
|
|
192
192
|
*/
|
|
193
|
-
Slack.prototype['
|
|
193
|
+
Slack.prototype['bearer'] = undefined;
|
|
194
194
|
|
|
195
195
|
/**
|
|
196
|
-
*
|
|
197
|
-
* @member {
|
|
196
|
+
* The Channel ID for Bearer Token method, if the \"slack-bearer\" type is selected
|
|
197
|
+
* @member {String} channel
|
|
198
198
|
*/
|
|
199
|
-
Slack.prototype['
|
|
199
|
+
Slack.prototype['channel'] = undefined;
|
|
200
200
|
|
|
201
201
|
/**
|
|
202
|
-
*
|
|
203
|
-
* @member {
|
|
204
|
-
* @default 15
|
|
202
|
+
* The Webhook URL for Slack Messaging if the \"slack-webhook\" type is selected
|
|
203
|
+
* @member {String} webhook_url
|
|
205
204
|
*/
|
|
206
|
-
Slack.prototype['
|
|
205
|
+
Slack.prototype['webhook_url'] = undefined;
|
|
207
206
|
|
|
208
207
|
/**
|
|
209
|
-
*
|
|
208
|
+
* The simple text message to be sent, if the blocks message field is not in use. Placeholders are available for this field.
|
|
209
|
+
* @member {String} text
|
|
210
210
|
*/
|
|
211
|
-
Slack.prototype['
|
|
211
|
+
Slack.prototype['text'] = undefined;
|
|
212
212
|
|
|
213
213
|
/**
|
|
214
|
-
* The
|
|
215
|
-
* @member {String}
|
|
214
|
+
* The Blocks message to be sent. If populated, this field overrides the text field within the Slack Messaging API. Placeholders are available for this field.
|
|
215
|
+
* @member {String} blocks
|
|
216
216
|
*/
|
|
217
|
-
Slack.prototype['
|
|
217
|
+
Slack.prototype['blocks'] = undefined;
|
|
218
218
|
var _default = exports["default"] = Slack;
|