@blues-inc/notehub-js 1.0.10 → 1.0.11

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 (82) hide show
  1. package/README.md +181 -178
  2. package/dist/ApiClient.js +157 -154
  3. package/dist/api/AuthorizationApi.js +63 -18
  4. package/dist/api/BillingAccountApi.js +15 -15
  5. package/dist/api/DeviceApi.js +159 -159
  6. package/dist/api/DevicesApi.js +58 -58
  7. package/dist/api/EnvironmentVariablesApi.js +110 -110
  8. package/dist/api/EventApi.js +94 -94
  9. package/dist/api/FilesApi.js +42 -42
  10. package/dist/api/FleetApi.js +160 -160
  11. package/dist/api/NotesApi.js +105 -105
  12. package/dist/api/ProductApi.js +29 -29
  13. package/dist/api/ProjectApi.js +139 -139
  14. package/dist/api/RouteApi.js +51 -51
  15. package/dist/index.js +7 -0
  16. package/dist/model/Aws.js +64 -64
  17. package/dist/model/Azure.js +42 -42
  18. package/dist/model/BillingAccount.js +20 -20
  19. package/dist/model/Body.js +4 -4
  20. package/dist/model/Contact.js +21 -21
  21. package/dist/model/CreateFleetRequest.js +6 -6
  22. package/dist/model/CreateProductRequest.js +21 -21
  23. package/dist/model/CreateProjectRequest.js +13 -13
  24. package/dist/model/DFUEnv.js +11 -11
  25. package/dist/model/DFUState.js +64 -64
  26. package/dist/model/DeleteDeviceFleetsRequest.js +7 -7
  27. package/dist/model/Device.js +82 -82
  28. package/dist/model/DeviceSession.js +181 -181
  29. package/dist/model/DeviceTowerInfo.js +13 -13
  30. package/dist/model/DeviceUsage.js +31 -31
  31. package/dist/model/EnvironmentVariables.js +7 -7
  32. package/dist/model/Error.js +30 -30
  33. package/dist/model/Event.js +222 -222
  34. package/dist/model/Fleet.js +20 -20
  35. package/dist/model/GenerateAuthToken200Response.js +114 -0
  36. package/dist/model/GetBillingAccounts200Response.js +8 -9
  37. package/dist/model/GetDeviceEnvironmentVariables200Response.js +11 -11
  38. package/dist/model/GetDeviceHealthLog200Response.js +10 -11
  39. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +18 -18
  40. package/dist/model/GetDeviceLatest200Response.js +8 -9
  41. package/dist/model/GetDevicePublicKey200Response.js +15 -15
  42. package/dist/model/GetDeviceSessions200Response.js +15 -16
  43. package/dist/model/GetProjectDevicePublicKeys200Response.js +15 -16
  44. package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +11 -11
  45. package/dist/model/GetProjectDevices200Response.js +15 -16
  46. package/dist/model/GetProjectEvents200Response.js +20 -21
  47. package/dist/model/GetProjectEventsByCursor200Response.js +22 -23
  48. package/dist/model/GetProjectFleets200Response.js +10 -11
  49. package/dist/model/GetProjectMembers200Response.js +10 -11
  50. package/dist/model/GetProjectProducts200Response.js +8 -9
  51. package/dist/model/GetProjects200Response.js +8 -9
  52. package/dist/model/Google.js +27 -27
  53. package/dist/model/HandleNoteChanges200Response.js +10 -10
  54. package/dist/model/HandleNoteGet200Response.js +12 -12
  55. package/dist/model/HandleNoteSignal200Response.js +4 -4
  56. package/dist/model/HandleNotefileChanges200Response.js +10 -10
  57. package/dist/model/HandleNotefileChangesPending200Response.js +13 -13
  58. package/dist/model/HandleNotefileDeleteRequest.js +6 -6
  59. package/dist/model/Http.js +34 -34
  60. package/dist/model/HttpFilter.js +18 -18
  61. package/dist/model/HttpTransform.js +19 -19
  62. package/dist/model/Location.js +39 -39
  63. package/dist/model/Login200Response.js +6 -6
  64. package/dist/model/LoginRequest.js +11 -11
  65. package/dist/model/Mqtt.js +65 -65
  66. package/dist/model/Note.js +9 -9
  67. package/dist/model/Product.js +25 -25
  68. package/dist/model/Project.js +33 -33
  69. package/dist/model/ProjectMember.js +21 -21
  70. package/dist/model/Proxy.js +23 -23
  71. package/dist/model/PutDeviceFleetsRequest.js +7 -7
  72. package/dist/model/Radresponder.js +24 -24
  73. package/dist/model/Route.js +35 -35
  74. package/dist/model/RouteSchema.js +39 -38
  75. package/dist/model/Snowflake.js +44 -44
  76. package/dist/model/SnowflakeTransform.js +11 -11
  77. package/dist/model/Thingworx.js +32 -32
  78. package/dist/model/TowerLocation.js +51 -51
  79. package/dist/model/Twilio.js +42 -42
  80. package/dist/model/UpdateFleetRequest.js +16 -16
  81. package/dist/model/UserDbRoute.js +24 -24
  82. package/package.json +3 -3
@@ -17,7 +17,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
17
17
  /**
18
18
  * The DeviceSession model module.
19
19
  * @module model/DeviceSession
20
- * @version 1.0.10
20
+ * @version 1.0.11
21
21
  */
22
22
  var DeviceSession = /*#__PURE__*/function () {
23
23
  /**
@@ -50,143 +50,143 @@ var DeviceSession = /*#__PURE__*/function () {
50
50
  value: function constructFromObject(data, obj) {
51
51
  if (data) {
52
52
  obj = obj || new DeviceSession();
53
- if (data.hasOwnProperty('session')) {
54
- obj['session'] = _ApiClient["default"].convertToType(data['session'], 'String');
53
+ if (data.hasOwnProperty("session")) {
54
+ obj["session"] = _ApiClient["default"].convertToType(data["session"], "String");
55
55
  }
56
- if (data.hasOwnProperty('device')) {
57
- obj['device'] = _ApiClient["default"].convertToType(data['device'], 'String');
56
+ if (data.hasOwnProperty("device")) {
57
+ obj["device"] = _ApiClient["default"].convertToType(data["device"], "String");
58
58
  }
59
- if (data.hasOwnProperty('sn')) {
60
- obj['sn'] = _ApiClient["default"].convertToType(data['sn'], 'String');
59
+ if (data.hasOwnProperty("sn")) {
60
+ obj["sn"] = _ApiClient["default"].convertToType(data["sn"], "String");
61
61
  }
62
- if (data.hasOwnProperty('product')) {
63
- obj['product'] = _ApiClient["default"].convertToType(data['product'], 'String');
62
+ if (data.hasOwnProperty("product")) {
63
+ obj["product"] = _ApiClient["default"].convertToType(data["product"], "String");
64
64
  }
65
- if (data.hasOwnProperty('fleets')) {
66
- obj['fleets'] = _ApiClient["default"].convertToType(data['fleets'], ['String']);
65
+ if (data.hasOwnProperty("fleets")) {
66
+ obj["fleets"] = _ApiClient["default"].convertToType(data["fleets"], ["String"]);
67
67
  }
68
- if (data.hasOwnProperty('cell')) {
69
- obj['cell'] = _ApiClient["default"].convertToType(data['cell'], 'String');
68
+ if (data.hasOwnProperty("cell")) {
69
+ obj["cell"] = _ApiClient["default"].convertToType(data["cell"], "String");
70
70
  }
71
- if (data.hasOwnProperty('scan')) {
72
- obj['scan'] = _ApiClient["default"].convertToType(data['scan'], 'Blob');
71
+ if (data.hasOwnProperty("scan")) {
72
+ obj["scan"] = _ApiClient["default"].convertToType(data["scan"], "Blob");
73
73
  }
74
- if (data.hasOwnProperty('triangulate')) {
75
- obj['triangulate'] = _ApiClient["default"].convertToType(data['triangulate'], Object);
74
+ if (data.hasOwnProperty("triangulate")) {
75
+ obj["triangulate"] = _ApiClient["default"].convertToType(data["triangulate"], Object);
76
76
  }
77
- if (data.hasOwnProperty('rssi')) {
78
- obj['rssi'] = _ApiClient["default"].convertToType(data['rssi'], 'Number');
77
+ if (data.hasOwnProperty("rssi")) {
78
+ obj["rssi"] = _ApiClient["default"].convertToType(data["rssi"], "Number");
79
79
  }
80
- if (data.hasOwnProperty('sinr')) {
81
- obj['sinr'] = _ApiClient["default"].convertToType(data['sinr'], 'Number');
80
+ if (data.hasOwnProperty("sinr")) {
81
+ obj["sinr"] = _ApiClient["default"].convertToType(data["sinr"], "Number");
82
82
  }
83
- if (data.hasOwnProperty('rsrp')) {
84
- obj['rsrp'] = _ApiClient["default"].convertToType(data['rsrp'], 'Number');
83
+ if (data.hasOwnProperty("rsrp")) {
84
+ obj["rsrp"] = _ApiClient["default"].convertToType(data["rsrp"], "Number");
85
85
  }
86
- if (data.hasOwnProperty('rsrq')) {
87
- obj['rsrq'] = _ApiClient["default"].convertToType(data['rsrq'], 'Number');
86
+ if (data.hasOwnProperty("rsrq")) {
87
+ obj["rsrq"] = _ApiClient["default"].convertToType(data["rsrq"], "Number");
88
88
  }
89
- if (data.hasOwnProperty('bars')) {
90
- obj['bars'] = _ApiClient["default"].convertToType(data['bars'], 'Number');
89
+ if (data.hasOwnProperty("bars")) {
90
+ obj["bars"] = _ApiClient["default"].convertToType(data["bars"], "Number");
91
91
  }
92
- if (data.hasOwnProperty('rat')) {
93
- obj['rat'] = _ApiClient["default"].convertToType(data['rat'], 'String');
92
+ if (data.hasOwnProperty("rat")) {
93
+ obj["rat"] = _ApiClient["default"].convertToType(data["rat"], "String");
94
94
  }
95
- if (data.hasOwnProperty('bearer')) {
96
- obj['bearer'] = _ApiClient["default"].convertToType(data['bearer'], 'String');
95
+ if (data.hasOwnProperty("bearer")) {
96
+ obj["bearer"] = _ApiClient["default"].convertToType(data["bearer"], "String");
97
97
  }
98
- if (data.hasOwnProperty('ip')) {
99
- obj['ip'] = _ApiClient["default"].convertToType(data['ip'], 'String');
98
+ if (data.hasOwnProperty("ip")) {
99
+ obj["ip"] = _ApiClient["default"].convertToType(data["ip"], "String");
100
100
  }
101
- if (data.hasOwnProperty('bssid')) {
102
- obj['bssid'] = _ApiClient["default"].convertToType(data['bssid'], 'String');
101
+ if (data.hasOwnProperty("bssid")) {
102
+ obj["bssid"] = _ApiClient["default"].convertToType(data["bssid"], "String");
103
103
  }
104
- if (data.hasOwnProperty('ssid')) {
105
- obj['ssid'] = _ApiClient["default"].convertToType(data['ssid'], 'String');
104
+ if (data.hasOwnProperty("ssid")) {
105
+ obj["ssid"] = _ApiClient["default"].convertToType(data["ssid"], "String");
106
106
  }
107
- if (data.hasOwnProperty('iccid')) {
108
- obj['iccid'] = _ApiClient["default"].convertToType(data['iccid'], 'String');
107
+ if (data.hasOwnProperty("iccid")) {
108
+ obj["iccid"] = _ApiClient["default"].convertToType(data["iccid"], "String");
109
109
  }
110
- if (data.hasOwnProperty('apn')) {
111
- obj['apn'] = _ApiClient["default"].convertToType(data['apn'], 'String');
110
+ if (data.hasOwnProperty("apn")) {
111
+ obj["apn"] = _ApiClient["default"].convertToType(data["apn"], "String");
112
112
  }
113
- if (data.hasOwnProperty('tower')) {
114
- obj['tower'] = _TowerLocation["default"].constructFromObject(data['tower']);
113
+ if (data.hasOwnProperty("tower")) {
114
+ obj["tower"] = _TowerLocation["default"].constructFromObject(data["tower"]);
115
115
  }
116
- if (data.hasOwnProperty('tri')) {
117
- obj['tri'] = _TowerLocation["default"].constructFromObject(data['tri']);
116
+ if (data.hasOwnProperty("tri")) {
117
+ obj["tri"] = _TowerLocation["default"].constructFromObject(data["tri"]);
118
118
  }
119
- if (data.hasOwnProperty('when')) {
120
- obj['when'] = _ApiClient["default"].convertToType(data['when'], 'Number');
119
+ if (data.hasOwnProperty("when")) {
120
+ obj["when"] = _ApiClient["default"].convertToType(data["when"], "Number");
121
121
  }
122
- if (data.hasOwnProperty('where_when')) {
123
- obj['where_when'] = _ApiClient["default"].convertToType(data['where_when'], 'Number');
122
+ if (data.hasOwnProperty("where_when")) {
123
+ obj["where_when"] = _ApiClient["default"].convertToType(data["where_when"], "Number");
124
124
  }
125
- if (data.hasOwnProperty('where')) {
126
- obj['where'] = _ApiClient["default"].convertToType(data['where'], 'String');
125
+ if (data.hasOwnProperty("where")) {
126
+ obj["where"] = _ApiClient["default"].convertToType(data["where"], "String");
127
127
  }
128
- if (data.hasOwnProperty('where_lat')) {
129
- obj['where_lat'] = _ApiClient["default"].convertToType(data['where_lat'], 'Number');
128
+ if (data.hasOwnProperty("where_lat")) {
129
+ obj["where_lat"] = _ApiClient["default"].convertToType(data["where_lat"], "Number");
130
130
  }
131
- if (data.hasOwnProperty('where_lon')) {
132
- obj['where_lon'] = _ApiClient["default"].convertToType(data['where_lon'], 'Number');
131
+ if (data.hasOwnProperty("where_lon")) {
132
+ obj["where_lon"] = _ApiClient["default"].convertToType(data["where_lon"], "Number");
133
133
  }
134
- if (data.hasOwnProperty('where_location')) {
135
- obj['where_location'] = _ApiClient["default"].convertToType(data['where_location'], 'String');
134
+ if (data.hasOwnProperty("where_location")) {
135
+ obj["where_location"] = _ApiClient["default"].convertToType(data["where_location"], "String");
136
136
  }
137
- if (data.hasOwnProperty('where_country')) {
138
- obj['where_country'] = _ApiClient["default"].convertToType(data['where_country'], 'String');
137
+ if (data.hasOwnProperty("where_country")) {
138
+ obj["where_country"] = _ApiClient["default"].convertToType(data["where_country"], "String");
139
139
  }
140
- if (data.hasOwnProperty('where_timezone')) {
141
- obj['where_timezone'] = _ApiClient["default"].convertToType(data['where_timezone'], 'String');
140
+ if (data.hasOwnProperty("where_timezone")) {
141
+ obj["where_timezone"] = _ApiClient["default"].convertToType(data["where_timezone"], "String");
142
142
  }
143
- if (data.hasOwnProperty('usage_actual')) {
144
- obj['usage_actual'] = _ApiClient["default"].convertToType(data['usage_actual'], 'Boolean');
143
+ if (data.hasOwnProperty("usage_actual")) {
144
+ obj["usage_actual"] = _ApiClient["default"].convertToType(data["usage_actual"], "Boolean");
145
145
  }
146
- if (data.hasOwnProperty('voltage')) {
147
- obj['voltage'] = _ApiClient["default"].convertToType(data['voltage'], 'Number');
146
+ if (data.hasOwnProperty("voltage")) {
147
+ obj["voltage"] = _ApiClient["default"].convertToType(data["voltage"], "Number");
148
148
  }
149
- if (data.hasOwnProperty('temp')) {
150
- obj['temp'] = _ApiClient["default"].convertToType(data['temp'], 'Number');
149
+ if (data.hasOwnProperty("temp")) {
150
+ obj["temp"] = _ApiClient["default"].convertToType(data["temp"], "Number");
151
151
  }
152
- if (data.hasOwnProperty('continuous')) {
153
- obj['continuous'] = _ApiClient["default"].convertToType(data['continuous'], 'Boolean');
152
+ if (data.hasOwnProperty("continuous")) {
153
+ obj["continuous"] = _ApiClient["default"].convertToType(data["continuous"], "Boolean");
154
154
  }
155
- if (data.hasOwnProperty('tls')) {
156
- obj['tls'] = _ApiClient["default"].convertToType(data['tls'], 'Boolean');
155
+ if (data.hasOwnProperty("tls")) {
156
+ obj["tls"] = _ApiClient["default"].convertToType(data["tls"], "Boolean");
157
157
  }
158
- if (data.hasOwnProperty('work')) {
159
- obj['work'] = _ApiClient["default"].convertToType(data['work'], 'Number');
158
+ if (data.hasOwnProperty("work")) {
159
+ obj["work"] = _ApiClient["default"].convertToType(data["work"], "Number");
160
160
  }
161
- if (data.hasOwnProperty('events')) {
162
- obj['events'] = _ApiClient["default"].convertToType(data['events'], 'Number');
161
+ if (data.hasOwnProperty("events")) {
162
+ obj["events"] = _ApiClient["default"].convertToType(data["events"], "Number");
163
163
  }
164
- if (data.hasOwnProperty('moved')) {
165
- obj['moved'] = _ApiClient["default"].convertToType(data['moved'], 'Number');
164
+ if (data.hasOwnProperty("moved")) {
165
+ obj["moved"] = _ApiClient["default"].convertToType(data["moved"], "Number");
166
166
  }
167
- if (data.hasOwnProperty('orientation')) {
168
- obj['orientation'] = _ApiClient["default"].convertToType(data['orientation'], 'String');
167
+ if (data.hasOwnProperty("orientation")) {
168
+ obj["orientation"] = _ApiClient["default"].convertToType(data["orientation"], "String");
169
169
  }
170
- if (data.hasOwnProperty('hp_secs_total')) {
171
- obj['hp_secs_total'] = _ApiClient["default"].convertToType(data['hp_secs_total'], 'Number');
170
+ if (data.hasOwnProperty("hp_secs_total")) {
171
+ obj["hp_secs_total"] = _ApiClient["default"].convertToType(data["hp_secs_total"], "Number");
172
172
  }
173
- if (data.hasOwnProperty('hp_secs_data')) {
174
- obj['hp_secs_data'] = _ApiClient["default"].convertToType(data['hp_secs_data'], 'Number');
173
+ if (data.hasOwnProperty("hp_secs_data")) {
174
+ obj["hp_secs_data"] = _ApiClient["default"].convertToType(data["hp_secs_data"], "Number");
175
175
  }
176
- if (data.hasOwnProperty('hp_secs_gps')) {
177
- obj['hp_secs_gps'] = _ApiClient["default"].convertToType(data['hp_secs_gps'], 'Number');
176
+ if (data.hasOwnProperty("hp_secs_gps")) {
177
+ obj["hp_secs_gps"] = _ApiClient["default"].convertToType(data["hp_secs_gps"], "Number");
178
178
  }
179
- if (data.hasOwnProperty('hp_cycles_total')) {
180
- obj['hp_cycles_total'] = _ApiClient["default"].convertToType(data['hp_cycles_total'], 'Number');
179
+ if (data.hasOwnProperty("hp_cycles_total")) {
180
+ obj["hp_cycles_total"] = _ApiClient["default"].convertToType(data["hp_cycles_total"], "Number");
181
181
  }
182
- if (data.hasOwnProperty('hp_cycles_data')) {
183
- obj['hp_cycles_data'] = _ApiClient["default"].convertToType(data['hp_cycles_data'], 'Number');
182
+ if (data.hasOwnProperty("hp_cycles_data")) {
183
+ obj["hp_cycles_data"] = _ApiClient["default"].convertToType(data["hp_cycles_data"], "Number");
184
184
  }
185
- if (data.hasOwnProperty('hp_cycles_gps')) {
186
- obj['hp_cycles_gps'] = _ApiClient["default"].convertToType(data['hp_cycles_gps'], 'Number');
185
+ if (data.hasOwnProperty("hp_cycles_gps")) {
186
+ obj["hp_cycles_gps"] = _ApiClient["default"].convertToType(data["hp_cycles_gps"], "Number");
187
187
  }
188
- if (data.hasOwnProperty('period')) {
189
- obj['period'] = _DeviceUsage["default"].constructFromObject(data['period']);
188
+ if (data.hasOwnProperty("period")) {
189
+ obj["period"] = _DeviceUsage["default"].constructFromObject(data["period"]);
190
190
  }
191
191
  } else if (data === null) {
192
192
  return null;
@@ -203,91 +203,91 @@ var DeviceSession = /*#__PURE__*/function () {
203
203
  key: "validateJSON",
204
204
  value: function validateJSON(data) {
205
205
  // ensure the json data is a string
206
- if (data['session'] && !(typeof data['session'] === 'string' || data['session'] instanceof String)) {
207
- throw new Error("Expected the field `session` to be a primitive type in the JSON string but got " + data['session']);
206
+ if (data["session"] && !(typeof data["session"] === "string" || data["session"] instanceof String)) {
207
+ throw new Error("Expected the field `session` to be a primitive type in the JSON string but got " + data["session"]);
208
208
  }
209
209
  // ensure the json data is a string
210
- if (data['device'] && !(typeof data['device'] === 'string' || data['device'] instanceof String)) {
211
- throw new Error("Expected the field `device` to be a primitive type in the JSON string but got " + data['device']);
210
+ if (data["device"] && !(typeof data["device"] === "string" || data["device"] instanceof String)) {
211
+ throw new Error("Expected the field `device` to be a primitive type in the JSON string but got " + data["device"]);
212
212
  }
213
213
  // ensure the json data is a string
214
- if (data['sn'] && !(typeof data['sn'] === 'string' || data['sn'] instanceof String)) {
215
- throw new Error("Expected the field `sn` to be a primitive type in the JSON string but got " + data['sn']);
214
+ if (data["sn"] && !(typeof data["sn"] === "string" || data["sn"] instanceof String)) {
215
+ throw new Error("Expected the field `sn` to be a primitive type in the JSON string but got " + data["sn"]);
216
216
  }
217
217
  // ensure the json data is a string
218
- if (data['product'] && !(typeof data['product'] === 'string' || data['product'] instanceof String)) {
219
- throw new Error("Expected the field `product` to be a primitive type in the JSON string but got " + data['product']);
218
+ if (data["product"] && !(typeof data["product"] === "string" || data["product"] instanceof String)) {
219
+ throw new Error("Expected the field `product` to be a primitive type in the JSON string but got " + data["product"]);
220
220
  }
221
221
  // ensure the json data is an array
222
- if (!Array.isArray(data['fleets'])) {
223
- throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data['fleets']);
222
+ if (!Array.isArray(data["fleets"])) {
223
+ throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data["fleets"]);
224
224
  }
225
225
  // ensure the json data is a string
226
- if (data['cell'] && !(typeof data['cell'] === 'string' || data['cell'] instanceof String)) {
227
- throw new Error("Expected the field `cell` to be a primitive type in the JSON string but got " + data['cell']);
226
+ if (data["cell"] && !(typeof data["cell"] === "string" || data["cell"] instanceof String)) {
227
+ throw new Error("Expected the field `cell` to be a primitive type in the JSON string but got " + data["cell"]);
228
228
  }
229
229
  // ensure the json data is a string
230
- if (data['rat'] && !(typeof data['rat'] === 'string' || data['rat'] instanceof String)) {
231
- throw new Error("Expected the field `rat` to be a primitive type in the JSON string but got " + data['rat']);
230
+ if (data["rat"] && !(typeof data["rat"] === "string" || data["rat"] instanceof String)) {
231
+ throw new Error("Expected the field `rat` to be a primitive type in the JSON string but got " + data["rat"]);
232
232
  }
233
233
  // ensure the json data is a string
234
- if (data['bearer'] && !(typeof data['bearer'] === 'string' || data['bearer'] instanceof String)) {
235
- throw new Error("Expected the field `bearer` to be a primitive type in the JSON string but got " + data['bearer']);
234
+ if (data["bearer"] && !(typeof data["bearer"] === "string" || data["bearer"] instanceof String)) {
235
+ throw new Error("Expected the field `bearer` to be a primitive type in the JSON string but got " + data["bearer"]);
236
236
  }
237
237
  // ensure the json data is a string
238
- if (data['ip'] && !(typeof data['ip'] === 'string' || data['ip'] instanceof String)) {
239
- throw new Error("Expected the field `ip` to be a primitive type in the JSON string but got " + data['ip']);
238
+ if (data["ip"] && !(typeof data["ip"] === "string" || data["ip"] instanceof String)) {
239
+ throw new Error("Expected the field `ip` to be a primitive type in the JSON string but got " + data["ip"]);
240
240
  }
241
241
  // ensure the json data is a string
242
- if (data['bssid'] && !(typeof data['bssid'] === 'string' || data['bssid'] instanceof String)) {
243
- throw new Error("Expected the field `bssid` to be a primitive type in the JSON string but got " + data['bssid']);
242
+ if (data["bssid"] && !(typeof data["bssid"] === "string" || data["bssid"] instanceof String)) {
243
+ throw new Error("Expected the field `bssid` to be a primitive type in the JSON string but got " + data["bssid"]);
244
244
  }
245
245
  // ensure the json data is a string
246
- if (data['ssid'] && !(typeof data['ssid'] === 'string' || data['ssid'] instanceof String)) {
247
- throw new Error("Expected the field `ssid` to be a primitive type in the JSON string but got " + data['ssid']);
246
+ if (data["ssid"] && !(typeof data["ssid"] === "string" || data["ssid"] instanceof String)) {
247
+ throw new Error("Expected the field `ssid` to be a primitive type in the JSON string but got " + data["ssid"]);
248
248
  }
249
249
  // ensure the json data is a string
250
- if (data['iccid'] && !(typeof data['iccid'] === 'string' || data['iccid'] instanceof String)) {
251
- throw new Error("Expected the field `iccid` to be a primitive type in the JSON string but got " + data['iccid']);
250
+ if (data["iccid"] && !(typeof data["iccid"] === "string" || data["iccid"] instanceof String)) {
251
+ throw new Error("Expected the field `iccid` to be a primitive type in the JSON string but got " + data["iccid"]);
252
252
  }
253
253
  // ensure the json data is a string
254
- if (data['apn'] && !(typeof data['apn'] === 'string' || data['apn'] instanceof String)) {
255
- throw new Error("Expected the field `apn` to be a primitive type in the JSON string but got " + data['apn']);
254
+ if (data["apn"] && !(typeof data["apn"] === "string" || data["apn"] instanceof String)) {
255
+ throw new Error("Expected the field `apn` to be a primitive type in the JSON string but got " + data["apn"]);
256
256
  }
257
257
  // validate the optional field `tower`
258
- if (data['tower']) {
258
+ if (data["tower"]) {
259
259
  // data not null
260
- _TowerLocation["default"].validateJSON(data['tower']);
260
+ _TowerLocation["default"].validateJSON(data["tower"]);
261
261
  }
262
262
  // validate the optional field `tri`
263
- if (data['tri']) {
263
+ if (data["tri"]) {
264
264
  // data not null
265
- _TowerLocation["default"].validateJSON(data['tri']);
265
+ _TowerLocation["default"].validateJSON(data["tri"]);
266
266
  }
267
267
  // ensure the json data is a string
268
- if (data['where'] && !(typeof data['where'] === 'string' || data['where'] instanceof String)) {
269
- throw new Error("Expected the field `where` to be a primitive type in the JSON string but got " + data['where']);
268
+ if (data["where"] && !(typeof data["where"] === "string" || data["where"] instanceof String)) {
269
+ throw new Error("Expected the field `where` to be a primitive type in the JSON string but got " + data["where"]);
270
270
  }
271
271
  // ensure the json data is a string
272
- if (data['where_location'] && !(typeof data['where_location'] === 'string' || data['where_location'] instanceof String)) {
273
- throw new Error("Expected the field `where_location` to be a primitive type in the JSON string but got " + data['where_location']);
272
+ if (data["where_location"] && !(typeof data["where_location"] === "string" || data["where_location"] instanceof String)) {
273
+ throw new Error("Expected the field `where_location` to be a primitive type in the JSON string but got " + data["where_location"]);
274
274
  }
275
275
  // ensure the json data is a string
276
- if (data['where_country'] && !(typeof data['where_country'] === 'string' || data['where_country'] instanceof String)) {
277
- throw new Error("Expected the field `where_country` to be a primitive type in the JSON string but got " + data['where_country']);
276
+ if (data["where_country"] && !(typeof data["where_country"] === "string" || data["where_country"] instanceof String)) {
277
+ throw new Error("Expected the field `where_country` to be a primitive type in the JSON string but got " + data["where_country"]);
278
278
  }
279
279
  // ensure the json data is a string
280
- if (data['where_timezone'] && !(typeof data['where_timezone'] === 'string' || data['where_timezone'] instanceof String)) {
281
- throw new Error("Expected the field `where_timezone` to be a primitive type in the JSON string but got " + data['where_timezone']);
280
+ if (data["where_timezone"] && !(typeof data["where_timezone"] === "string" || data["where_timezone"] instanceof String)) {
281
+ throw new Error("Expected the field `where_timezone` to be a primitive type in the JSON string but got " + data["where_timezone"]);
282
282
  }
283
283
  // ensure the json data is a string
284
- if (data['orientation'] && !(typeof data['orientation'] === 'string' || data['orientation'] instanceof String)) {
285
- throw new Error("Expected the field `orientation` to be a primitive type in the JSON string but got " + data['orientation']);
284
+ if (data["orientation"] && !(typeof data["orientation"] === "string" || data["orientation"] instanceof String)) {
285
+ throw new Error("Expected the field `orientation` to be a primitive type in the JSON string but got " + data["orientation"]);
286
286
  }
287
287
  // validate the optional field `period`
288
- if (data['period']) {
288
+ if (data["period"]) {
289
289
  // data not null
290
- _DeviceUsage["default"].validateJSON(data['period']);
290
+ _DeviceUsage["default"].validateJSON(data["period"]);
291
291
  }
292
292
  return true;
293
293
  }
@@ -298,240 +298,240 @@ var DeviceSession = /*#__PURE__*/function () {
298
298
  * Session UID
299
299
  * @member {String} session
300
300
  */
301
- DeviceSession.prototype['session'] = undefined;
301
+ DeviceSession.prototype["session"] = undefined;
302
302
 
303
303
  /**
304
304
  * Device UID
305
305
  * @member {String} device
306
306
  */
307
- DeviceSession.prototype['device'] = undefined;
307
+ DeviceSession.prototype["device"] = undefined;
308
308
 
309
309
  /**
310
310
  * Device Serial Number
311
311
  * @member {String} sn
312
312
  */
313
- DeviceSession.prototype['sn'] = undefined;
313
+ DeviceSession.prototype["sn"] = undefined;
314
314
 
315
315
  /**
316
316
  * Product UID
317
317
  * @member {String} product
318
318
  */
319
- DeviceSession.prototype['product'] = undefined;
319
+ DeviceSession.prototype["product"] = undefined;
320
320
 
321
321
  /**
322
322
  * Array of Fleet UIDs
323
323
  * @member {Array.<String>} fleets
324
324
  */
325
- DeviceSession.prototype['fleets'] = undefined;
325
+ DeviceSession.prototype["fleets"] = undefined;
326
326
 
327
327
  /**
328
328
  * Cell ID where the session originated and quality (\"mcc,mnc,lac,cellid\")
329
329
  * @member {String} cell
330
330
  */
331
- DeviceSession.prototype['cell'] = undefined;
331
+ DeviceSession.prototype["cell"] = undefined;
332
332
 
333
333
  /**
334
334
  * @member {Blob} scan
335
335
  */
336
- DeviceSession.prototype['scan'] = undefined;
336
+ DeviceSession.prototype["scan"] = undefined;
337
337
 
338
338
  /**
339
339
  * @member {Object} triangulate
340
340
  */
341
- DeviceSession.prototype['triangulate'] = undefined;
341
+ DeviceSession.prototype["triangulate"] = undefined;
342
342
 
343
343
  /**
344
344
  * @member {Number} rssi
345
345
  */
346
- DeviceSession.prototype['rssi'] = undefined;
346
+ DeviceSession.prototype["rssi"] = undefined;
347
347
 
348
348
  /**
349
349
  * @member {Number} sinr
350
350
  */
351
- DeviceSession.prototype['sinr'] = undefined;
351
+ DeviceSession.prototype["sinr"] = undefined;
352
352
 
353
353
  /**
354
354
  * @member {Number} rsrp
355
355
  */
356
- DeviceSession.prototype['rsrp'] = undefined;
356
+ DeviceSession.prototype["rsrp"] = undefined;
357
357
 
358
358
  /**
359
359
  * @member {Number} rsrq
360
360
  */
361
- DeviceSession.prototype['rsrq'] = undefined;
361
+ DeviceSession.prototype["rsrq"] = undefined;
362
362
 
363
363
  /**
364
364
  * @member {Number} bars
365
365
  */
366
- DeviceSession.prototype['bars'] = undefined;
366
+ DeviceSession.prototype["bars"] = undefined;
367
367
 
368
368
  /**
369
369
  * @member {String} rat
370
370
  */
371
- DeviceSession.prototype['rat'] = undefined;
371
+ DeviceSession.prototype["rat"] = undefined;
372
372
 
373
373
  /**
374
374
  * @member {String} bearer
375
375
  */
376
- DeviceSession.prototype['bearer'] = undefined;
376
+ DeviceSession.prototype["bearer"] = undefined;
377
377
 
378
378
  /**
379
379
  * @member {String} ip
380
380
  */
381
- DeviceSession.prototype['ip'] = undefined;
381
+ DeviceSession.prototype["ip"] = undefined;
382
382
 
383
383
  /**
384
384
  * @member {String} bssid
385
385
  */
386
- DeviceSession.prototype['bssid'] = undefined;
386
+ DeviceSession.prototype["bssid"] = undefined;
387
387
 
388
388
  /**
389
389
  * @member {String} ssid
390
390
  */
391
- DeviceSession.prototype['ssid'] = undefined;
391
+ DeviceSession.prototype["ssid"] = undefined;
392
392
 
393
393
  /**
394
394
  * @member {String} iccid
395
395
  */
396
- DeviceSession.prototype['iccid'] = undefined;
396
+ DeviceSession.prototype["iccid"] = undefined;
397
397
 
398
398
  /**
399
399
  * @member {String} apn
400
400
  */
401
- DeviceSession.prototype['apn'] = undefined;
401
+ DeviceSession.prototype["apn"] = undefined;
402
402
 
403
403
  /**
404
404
  * @member {module:model/TowerLocation} tower
405
405
  */
406
- DeviceSession.prototype['tower'] = undefined;
406
+ DeviceSession.prototype["tower"] = undefined;
407
407
 
408
408
  /**
409
409
  * @member {module:model/TowerLocation} tri
410
410
  */
411
- DeviceSession.prototype['tri'] = undefined;
411
+ DeviceSession.prototype["tri"] = undefined;
412
412
 
413
413
  /**
414
414
  * Last known capture time of a note routed through this session
415
415
  * @member {Number} when
416
416
  */
417
- DeviceSession.prototype['when'] = undefined;
417
+ DeviceSession.prototype["when"] = undefined;
418
418
 
419
419
  /**
420
420
  * @member {Number} where_when
421
421
  */
422
- DeviceSession.prototype['where_when'] = undefined;
422
+ DeviceSession.prototype["where_when"] = undefined;
423
423
 
424
424
  /**
425
425
  * Where OLC
426
426
  * @member {String} where
427
427
  */
428
- DeviceSession.prototype['where'] = undefined;
428
+ DeviceSession.prototype["where"] = undefined;
429
429
 
430
430
  /**
431
431
  * @member {Number} where_lat
432
432
  */
433
- DeviceSession.prototype['where_lat'] = undefined;
433
+ DeviceSession.prototype["where_lat"] = undefined;
434
434
 
435
435
  /**
436
436
  * @member {Number} where_lon
437
437
  */
438
- DeviceSession.prototype['where_lon'] = undefined;
438
+ DeviceSession.prototype["where_lon"] = undefined;
439
439
 
440
440
  /**
441
441
  * @member {String} where_location
442
442
  */
443
- DeviceSession.prototype['where_location'] = undefined;
443
+ DeviceSession.prototype["where_location"] = undefined;
444
444
 
445
445
  /**
446
446
  * @member {String} where_country
447
447
  */
448
- DeviceSession.prototype['where_country'] = undefined;
448
+ DeviceSession.prototype["where_country"] = undefined;
449
449
 
450
450
  /**
451
451
  * @member {String} where_timezone
452
452
  */
453
- DeviceSession.prototype['where_timezone'] = undefined;
453
+ DeviceSession.prototype["where_timezone"] = undefined;
454
454
 
455
455
  /**
456
456
  * @member {Boolean} usage_actual
457
457
  */
458
- DeviceSession.prototype['usage_actual'] = undefined;
458
+ DeviceSession.prototype["usage_actual"] = undefined;
459
459
 
460
460
  /**
461
461
  * @member {Number} voltage
462
462
  */
463
- DeviceSession.prototype['voltage'] = undefined;
463
+ DeviceSession.prototype["voltage"] = undefined;
464
464
 
465
465
  /**
466
466
  * @member {Number} temp
467
467
  */
468
- DeviceSession.prototype['temp'] = undefined;
468
+ DeviceSession.prototype["temp"] = undefined;
469
469
 
470
470
  /**
471
471
  * @member {Boolean} continuous
472
472
  */
473
- DeviceSession.prototype['continuous'] = undefined;
473
+ DeviceSession.prototype["continuous"] = undefined;
474
474
 
475
475
  /**
476
476
  * @member {Boolean} tls
477
477
  */
478
- DeviceSession.prototype['tls'] = undefined;
478
+ DeviceSession.prototype["tls"] = undefined;
479
479
 
480
480
  /**
481
481
  * Last time work was done for this session
482
482
  * @member {Number} work
483
483
  */
484
- DeviceSession.prototype['work'] = undefined;
484
+ DeviceSession.prototype["work"] = undefined;
485
485
 
486
486
  /**
487
487
  * Number of events routed
488
488
  * @member {Number} events
489
489
  */
490
- DeviceSession.prototype['events'] = undefined;
490
+ DeviceSession.prototype["events"] = undefined;
491
491
 
492
492
  /**
493
493
  * @member {Number} moved
494
494
  */
495
- DeviceSession.prototype['moved'] = undefined;
495
+ DeviceSession.prototype["moved"] = undefined;
496
496
 
497
497
  /**
498
498
  * @member {String} orientation
499
499
  */
500
- DeviceSession.prototype['orientation'] = undefined;
500
+ DeviceSession.prototype["orientation"] = undefined;
501
501
 
502
502
  /**
503
503
  * @member {Number} hp_secs_total
504
504
  */
505
- DeviceSession.prototype['hp_secs_total'] = undefined;
505
+ DeviceSession.prototype["hp_secs_total"] = undefined;
506
506
 
507
507
  /**
508
508
  * @member {Number} hp_secs_data
509
509
  */
510
- DeviceSession.prototype['hp_secs_data'] = undefined;
510
+ DeviceSession.prototype["hp_secs_data"] = undefined;
511
511
 
512
512
  /**
513
513
  * @member {Number} hp_secs_gps
514
514
  */
515
- DeviceSession.prototype['hp_secs_gps'] = undefined;
515
+ DeviceSession.prototype["hp_secs_gps"] = undefined;
516
516
 
517
517
  /**
518
518
  * @member {Number} hp_cycles_total
519
519
  */
520
- DeviceSession.prototype['hp_cycles_total'] = undefined;
520
+ DeviceSession.prototype["hp_cycles_total"] = undefined;
521
521
 
522
522
  /**
523
523
  * @member {Number} hp_cycles_data
524
524
  */
525
- DeviceSession.prototype['hp_cycles_data'] = undefined;
525
+ DeviceSession.prototype["hp_cycles_data"] = undefined;
526
526
 
527
527
  /**
528
528
  * @member {Number} hp_cycles_gps
529
529
  */
530
- DeviceSession.prototype['hp_cycles_gps'] = undefined;
530
+ DeviceSession.prototype["hp_cycles_gps"] = undefined;
531
531
 
532
532
  /**
533
533
  * @member {module:model/DeviceUsage} period
534
534
  */
535
- DeviceSession.prototype['period'] = undefined;
535
+ DeviceSession.prototype["period"] = undefined;
536
536
  var _default = DeviceSession;
537
537
  exports["default"] = _default;