@blues-inc/notehub-js 1.0.37-beta.16 → 1.0.37-beta.18

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 (137) hide show
  1. package/README.md +20 -19
  2. package/dist/ApiClient.js +2 -2
  3. package/dist/api/AlertApi.js +1 -1
  4. package/dist/api/AuthorizationApi.js +1 -64
  5. package/dist/api/BillingAccountApi.js +1 -1
  6. package/dist/api/DeviceApi.js +8 -8
  7. package/dist/api/EventApi.js +1 -1
  8. package/dist/api/ExternalDevicesApi.js +1 -1
  9. package/dist/api/MonitorApi.js +10 -10
  10. package/dist/api/ProjectApi.js +14 -14
  11. package/dist/api/RouteApi.js +1 -1
  12. package/dist/api/WebhookApi.js +1 -1
  13. package/dist/index.js +127 -99
  14. package/dist/model/Alert.js +91 -91
  15. package/dist/model/AlertDataInner.js +10 -10
  16. package/dist/model/AlertNotificationsInner.js +10 -10
  17. package/dist/model/{UsageEventsData.js → AnalyticsEventsData.js} +30 -44
  18. package/dist/model/{UsageSessionsResponse.js → AnalyticsEventsResponse.js} +25 -25
  19. package/dist/model/{UsageRouteLogsData.js → AnalyticsRouteLogsData.js} +32 -46
  20. package/dist/model/{UsageRouteLogsResponse.js → AnalyticsRouteLogsResponse.js} +25 -25
  21. package/dist/model/{UsageSessionsData.js → AnalyticsSessionsData.js} +32 -36
  22. package/dist/model/{UsageEventsResponse.js → AnalyticsSessionsResponse.js} +25 -25
  23. package/dist/model/Aws.js +86 -86
  24. package/dist/model/Azure.js +51 -51
  25. package/dist/model/BillingAccount.js +19 -19
  26. package/dist/model/Body.js +1 -1
  27. package/dist/model/CellularPlan.js +168 -0
  28. package/dist/model/CloneProjectRequest.js +25 -25
  29. package/dist/model/Contact.js +19 -19
  30. package/dist/model/CreateFleetRequest.js +1 -1
  31. package/dist/model/CreateMonitor.js +186 -186
  32. package/dist/model/CreateProductRequest.js +30 -30
  33. package/dist/model/CreateProjectRequest.js +20 -20
  34. package/dist/model/CreateUpdateRepository.js +18 -18
  35. package/dist/model/CumulativeDataUsage.js +133 -0
  36. package/dist/model/CurrentFirmware.js +12 -12
  37. package/dist/model/DFUEnv.js +1 -1
  38. package/dist/model/DFUState.js +60 -60
  39. package/dist/model/DataField.js +1 -1
  40. package/dist/model/DataSet.js +164 -0
  41. package/dist/model/DataSetField.js +14 -14
  42. package/dist/model/DeleteDeviceFleetsRequest.js +1 -1
  43. package/dist/model/Device.js +173 -129
  44. package/dist/model/DeviceDfuHistory.js +15 -15
  45. package/dist/model/DeviceDfuHistoryPage.js +1 -1
  46. package/dist/model/DeviceDfuStateMachine.js +14 -14
  47. package/dist/model/DeviceDfuStateMachineNode.js +27 -27
  48. package/dist/model/DeviceDfuStatus.js +15 -15
  49. package/dist/model/{DeviceDfuHistoryCurrent.js → DeviceDfuStatusCurrent.js} +52 -52
  50. package/dist/model/DeviceDfuStatusPage.js +1 -1
  51. package/dist/model/DeviceSatellitePlan.js +196 -0
  52. package/dist/model/DeviceSession.js +278 -278
  53. package/dist/model/DeviceTowerInfo.js +15 -15
  54. package/dist/model/DeviceUsage.js +36 -36
  55. package/dist/model/DfuActionRequest.js +1 -1
  56. package/dist/model/EmailNotification.js +1 -1
  57. package/dist/model/EnvTreeJsonNode.js +76 -76
  58. package/dist/model/EnvVar.js +9 -9
  59. package/dist/model/EnvironmentVariables.js +1 -1
  60. package/dist/model/Error.js +38 -38
  61. package/dist/model/Event.js +340 -340
  62. package/dist/model/Firmware.js +45 -45
  63. package/dist/model/FirmwareInfo.js +71 -71
  64. package/dist/model/Fleet.js +31 -31
  65. package/dist/model/GetAlerts200Response.js +1 -1
  66. package/dist/model/GetBillingAccounts200Response.js +1 -1
  67. package/dist/model/{GetDeviceEnvironmentVariablesByPin200Response.js → GetDeviceEnvironmentVariables200Response.js} +30 -30
  68. package/dist/model/GetDeviceHealthLog200Response.js +1 -1
  69. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +15 -15
  70. package/dist/model/GetDeviceLatest200Response.js +1 -1
  71. package/dist/model/GetDevicePublicKey200Response.js +18 -18
  72. package/dist/model/GetDeviceSessions200Response.js +14 -14
  73. package/dist/model/GetProjectDevicePublicKeys200Response.js +1 -1
  74. package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
  75. package/dist/model/GetProjectDevices200Response.js +1 -1
  76. package/dist/model/GetProjectEvents200Response.js +1 -1
  77. package/dist/model/GetProjectEventsByCursor200Response.js +16 -16
  78. package/dist/model/{GetDeviceFleets200Response.js → GetProjectFleets200Response.js} +20 -20
  79. package/dist/model/GetProjectMembers200Response.js +1 -1
  80. package/dist/model/GetProjectProducts200Response.js +1 -1
  81. package/dist/model/GetProjects200Response.js +1 -1
  82. package/dist/model/GetWebhooks200Response.js +1 -1
  83. package/dist/model/Google.js +35 -35
  84. package/dist/model/HandleNoteChanges200Response.js +10 -10
  85. package/dist/model/HandleNoteGet200Response.js +1 -1
  86. package/dist/model/HandleNoteSignal200Response.js +1 -1
  87. package/dist/model/HandleNotefileChanges200Response.js +10 -10
  88. package/dist/model/HandleNotefileChangesPending200Response.js +15 -15
  89. package/dist/model/HandleNotefileDeleteRequest.js +1 -1
  90. package/dist/model/Http.js +43 -43
  91. package/dist/model/{AwsFilter.js → HttpFilter.js} +32 -32
  92. package/dist/model/{AwsTransform.js → HttpTransform.js} +21 -21
  93. package/dist/model/Location.js +38 -38
  94. package/dist/model/Login200Response.js +1 -1
  95. package/dist/model/LoginRequest.js +12 -12
  96. package/dist/model/Monitor.js +135 -135
  97. package/dist/model/MonitorAlertRoutesInner.js +12 -12
  98. package/dist/model/Mqtt.js +91 -91
  99. package/dist/model/Note.js +1 -1
  100. package/dist/model/NotefileSchema.js +1 -1
  101. package/dist/model/NotehubRoute.js +30 -30
  102. package/dist/model/NotehubRouteSchema.js +80 -80
  103. package/dist/model/PersonalAccessToken.js +37 -37
  104. package/dist/model/PersonalAccessTokenCreatedBy.js +13 -13
  105. package/dist/model/PersonalAccessTokenInfo.js +13 -13
  106. package/dist/model/PersonalAccessTokenSecret.js +14 -14
  107. package/dist/model/PostProvisionProjectDeviceRequest.js +14 -14
  108. package/dist/model/Product.js +29 -29
  109. package/dist/model/Project.js +35 -35
  110. package/dist/model/ProjectMember.js +19 -19
  111. package/dist/model/Proxy.js +21 -21
  112. package/dist/model/PutDeviceFleetsRequest.js +1 -1
  113. package/dist/model/QuestionDataResponseLineChart.js +204 -0
  114. package/dist/model/{OAuth2Error.js → QuestionDataResponseMap.js} +42 -65
  115. package/dist/model/Radresponder.js +28 -28
  116. package/dist/model/Repository.js +22 -22
  117. package/dist/model/RouteLog.js +28 -28
  118. package/dist/model/{OAuth2TokenResponse.js → SatellitePlan.js} +65 -53
  119. package/dist/model/SchemaProperty.js +36 -34
  120. package/dist/model/SimUsage.js +20 -20
  121. package/dist/model/Slack.js +71 -71
  122. package/dist/model/SlackBearerNotification.js +14 -14
  123. package/dist/model/SlackWebHookNotification.js +14 -14
  124. package/dist/model/Snowflake.js +57 -57
  125. package/dist/model/{SlackTransform.js → SnowflakeTransform.js} +19 -19
  126. package/dist/model/Thingworx.js +36 -36
  127. package/dist/model/TowerLocation.js +58 -58
  128. package/dist/model/Twilio.js +46 -46
  129. package/dist/model/UpdateFleetRequest.js +14 -14
  130. package/dist/model/UploadMetadata.js +68 -68
  131. package/dist/model/UserDbRoute.js +26 -26
  132. package/dist/model/UserDfuStateMachine.js +14 -14
  133. package/dist/model/UserDfuStateMachineStatus.js +9 -9
  134. package/dist/model/UserFirmwareInfo.js +1 -1
  135. package/dist/model/WebhookSettings.js +1 -1
  136. package/package.json +1 -1
  137. package/dist/api/UsageApi.js +0 -225
@@ -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 _AwsFilter = _interopRequireDefault(require("./AwsFilter"));
9
- var _AwsTransform = _interopRequireDefault(require("./AwsTransform"));
8
+ var _HttpFilter = _interopRequireDefault(require("./HttpFilter"));
9
+ var _HttpTransform = _interopRequireDefault(require("./HttpTransform"));
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 Mqtt model module.
30
30
  * @module model/Mqtt
31
- * @version 1.0.37-beta.16
31
+ * @version 1.0.37-beta.18
32
32
  */
33
33
  var Mqtt = /*#__PURE__*/function () {
34
34
  /**
@@ -62,32 +62,14 @@ var Mqtt = /*#__PURE__*/function () {
62
62
  value: function constructFromObject(data, obj) {
63
63
  if (data) {
64
64
  obj = obj || new Mqtt();
65
- if (data.hasOwnProperty('broker')) {
66
- obj['broker'] = _ApiClient["default"].convertToType(data['broker'], 'String');
67
- }
68
- if (data.hasOwnProperty('certificate')) {
69
- obj['certificate'] = _ApiClient["default"].convertToType(data['certificate'], 'String');
70
- }
71
- if (data.hasOwnProperty('certificate_name')) {
72
- obj['certificate_name'] = _ApiClient["default"].convertToType(data['certificate_name'], '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('key')) {
81
- obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String');
82
- }
83
- if (data.hasOwnProperty('password')) {
84
- obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String');
85
- }
86
- if (data.hasOwnProperty('port')) {
87
- obj['port'] = _ApiClient["default"].convertToType(data['port'], 'Number');
68
+ if (data.hasOwnProperty('filter')) {
69
+ obj['filter'] = _HttpFilter["default"].constructFromObject(data['filter']);
88
70
  }
89
- if (data.hasOwnProperty('private_key_name')) {
90
- obj['private_key_name'] = _ApiClient["default"].convertToType(data['private_key_name'], 'String');
71
+ if (data.hasOwnProperty('transform')) {
72
+ obj['transform'] = _HttpTransform["default"].constructFromObject(data['transform']);
91
73
  }
92
74
  if (data.hasOwnProperty('throttle_ms')) {
93
75
  obj['throttle_ms'] = _ApiClient["default"].convertToType(data['throttle_ms'], 'Number');
@@ -95,15 +77,33 @@ var Mqtt = /*#__PURE__*/function () {
95
77
  if (data.hasOwnProperty('timeout')) {
96
78
  obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'Number');
97
79
  }
98
- if (data.hasOwnProperty('topic')) {
99
- obj['topic'] = _ApiClient["default"].convertToType(data['topic'], 'String');
80
+ if (data.hasOwnProperty('broker')) {
81
+ obj['broker'] = _ApiClient["default"].convertToType(data['broker'], 'String');
100
82
  }
101
- if (data.hasOwnProperty('transform')) {
102
- obj['transform'] = _AwsTransform["default"].constructFromObject(data['transform']);
83
+ if (data.hasOwnProperty('port')) {
84
+ obj['port'] = _ApiClient["default"].convertToType(data['port'], 'Number');
103
85
  }
104
86
  if (data.hasOwnProperty('username')) {
105
87
  obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String');
106
88
  }
89
+ if (data.hasOwnProperty('password')) {
90
+ obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String');
91
+ }
92
+ if (data.hasOwnProperty('topic')) {
93
+ obj['topic'] = _ApiClient["default"].convertToType(data['topic'], 'String');
94
+ }
95
+ if (data.hasOwnProperty('certificate')) {
96
+ obj['certificate'] = _ApiClient["default"].convertToType(data['certificate'], 'String');
97
+ }
98
+ if (data.hasOwnProperty('certificate_name')) {
99
+ obj['certificate_name'] = _ApiClient["default"].convertToType(data['certificate_name'], 'String');
100
+ }
101
+ if (data.hasOwnProperty('key')) {
102
+ obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String');
103
+ }
104
+ if (data.hasOwnProperty('private_key_name')) {
105
+ obj['private_key_name'] = _ApiClient["default"].convertToType(data['private_key_name'], 'String');
106
+ }
107
107
  } else if (data === null) {
108
108
  return null;
109
109
  }
@@ -118,11 +118,37 @@ var Mqtt = /*#__PURE__*/function () {
118
118
  }, {
119
119
  key: "validateJSON",
120
120
  value: function validateJSON(data) {
121
+ // ensure the json data is an array
122
+ if (!Array.isArray(data['fleets'])) {
123
+ throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data['fleets']);
124
+ }
125
+ // validate the optional field `filter`
126
+ if (data['filter']) {
127
+ // data not null
128
+ _HttpFilter["default"].validateJSON(data['filter']);
129
+ }
130
+ // validate the optional field `transform`
131
+ if (data['transform']) {
132
+ // data not null
133
+ _HttpTransform["default"].validateJSON(data['transform']);
134
+ }
121
135
  // ensure the json data is a string
122
136
  if (data['broker'] && !(typeof data['broker'] === 'string' || data['broker'] instanceof String)) {
123
137
  throw new Error("Expected the field `broker` to be a primitive type in the JSON string but got " + data['broker']);
124
138
  }
125
139
  // ensure the json data is a string
140
+ if (data['username'] && !(typeof data['username'] === 'string' || data['username'] instanceof String)) {
141
+ throw new Error("Expected the field `username` to be a primitive type in the JSON string but got " + data['username']);
142
+ }
143
+ // ensure the json data is a string
144
+ if (data['password'] && !(typeof data['password'] === 'string' || data['password'] instanceof String)) {
145
+ throw new Error("Expected the field `password` to be a primitive type in the JSON string but got " + data['password']);
146
+ }
147
+ // ensure the json data is a string
148
+ if (data['topic'] && !(typeof data['topic'] === 'string' || data['topic'] instanceof String)) {
149
+ throw new Error("Expected the field `topic` to be a primitive type in the JSON string but got " + data['topic']);
150
+ }
151
+ // ensure the json data is a string
126
152
  if (data['certificate'] && !(typeof data['certificate'] === 'string' || data['certificate'] instanceof String)) {
127
153
  throw new Error("Expected the field `certificate` to be a primitive type in the JSON string but got " + data['certificate']);
128
154
  }
@@ -130,119 +156,93 @@ var Mqtt = /*#__PURE__*/function () {
130
156
  if (data['certificate_name'] && !(typeof data['certificate_name'] === 'string' || data['certificate_name'] instanceof String)) {
131
157
  throw new Error("Expected the field `certificate_name` to be a primitive type in the JSON string but got " + data['certificate_name']);
132
158
  }
133
- // validate the optional field `filter`
134
- if (data['filter']) {
135
- // data not null
136
- _AwsFilter["default"].validateJSON(data['filter']);
137
- }
138
- // ensure the json data is an array
139
- if (!Array.isArray(data['fleets'])) {
140
- throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data['fleets']);
141
- }
142
159
  // ensure the json data is a string
143
160
  if (data['key'] && !(typeof data['key'] === 'string' || data['key'] instanceof String)) {
144
161
  throw new Error("Expected the field `key` to be a primitive type in the JSON string but got " + data['key']);
145
162
  }
146
163
  // ensure the json data is a string
147
- if (data['password'] && !(typeof data['password'] === 'string' || data['password'] instanceof String)) {
148
- throw new Error("Expected the field `password` to be a primitive type in the JSON string but got " + data['password']);
149
- }
150
- // ensure the json data is a string
151
164
  if (data['private_key_name'] && !(typeof data['private_key_name'] === 'string' || data['private_key_name'] instanceof String)) {
152
165
  throw new Error("Expected the field `private_key_name` to be a primitive type in the JSON string but got " + data['private_key_name']);
153
166
  }
154
- // ensure the json data is a string
155
- if (data['topic'] && !(typeof data['topic'] === 'string' || data['topic'] instanceof String)) {
156
- throw new Error("Expected the field `topic` to be a primitive type in the JSON string but got " + data['topic']);
157
- }
158
- // validate the optional field `transform`
159
- if (data['transform']) {
160
- // data not null
161
- _AwsTransform["default"].validateJSON(data['transform']);
162
- }
163
- // ensure the json data is a string
164
- if (data['username'] && !(typeof data['username'] === 'string' || data['username'] instanceof String)) {
165
- throw new Error("Expected the field `username` to be a primitive type in the JSON string but got " + data['username']);
166
- }
167
167
  return true;
168
168
  }
169
169
  }]);
170
170
  }();
171
171
  /**
172
- * @member {String} broker
172
+ * list of Fleet UIDs to apply route to, if any. If empty, applies to all Fleets
173
+ * @member {Array.<String>} fleets
173
174
  */
174
- Mqtt.prototype['broker'] = undefined;
175
+ Mqtt.prototype['fleets'] = undefined;
175
176
 
176
177
  /**
177
- * Certificate with \\n newlines. This value is input-only and will be omitted from the response and replaced with a placeholder
178
- * @member {String} certificate
178
+ * @member {module:model/HttpFilter} filter
179
179
  */
180
- Mqtt.prototype['certificate'] = undefined;
180
+ Mqtt.prototype['filter'] = undefined;
181
181
 
182
182
  /**
183
- * Name of certificate.
184
- * @member {String} certificate_name
183
+ * @member {module:model/HttpTransform} transform
185
184
  */
186
- Mqtt.prototype['certificate_name'] = undefined;
185
+ Mqtt.prototype['transform'] = undefined;
187
186
 
188
187
  /**
189
- * @member {module:model/AwsFilter} filter
188
+ * @member {Number} throttle_ms
190
189
  */
191
- Mqtt.prototype['filter'] = undefined;
190
+ Mqtt.prototype['throttle_ms'] = undefined;
192
191
 
193
192
  /**
194
- * list of Fleet UIDs to apply route to, if any. If empty, applies to all Fleets
195
- * @member {Array.<String>} fleets
193
+ * Timeout in seconds for each request
194
+ * @member {Number} timeout
195
+ * @default 15
196
196
  */
197
- Mqtt.prototype['fleets'] = undefined;
197
+ Mqtt.prototype['timeout'] = 15;
198
198
 
199
199
  /**
200
- * Key with \\n newlines. This value is input-only and will be omitted from the response and replaced with a placeholder
201
- * @member {String} key
200
+ * @member {String} broker
202
201
  */
203
- Mqtt.prototype['key'] = undefined;
202
+ Mqtt.prototype['broker'] = undefined;
204
203
 
205
204
  /**
206
- * This value is input-only and will be omitted from the response and replaced with a placeholder
207
- * @member {String} password
205
+ * @member {Number} port
208
206
  */
209
- Mqtt.prototype['password'] = undefined;
207
+ Mqtt.prototype['port'] = undefined;
210
208
 
211
209
  /**
212
- * @member {Number} port
210
+ * @member {String} username
213
211
  */
214
- Mqtt.prototype['port'] = undefined;
212
+ Mqtt.prototype['username'] = undefined;
215
213
 
216
214
  /**
217
- * Name of key
218
- * @member {String} private_key_name
215
+ * This value is input-only and will be omitted from the response and replaced with a placeholder
216
+ * @member {String} password
219
217
  */
220
- Mqtt.prototype['private_key_name'] = undefined;
218
+ Mqtt.prototype['password'] = undefined;
221
219
 
222
220
  /**
223
- * @member {Number} throttle_ms
221
+ * @member {String} topic
224
222
  */
225
- Mqtt.prototype['throttle_ms'] = undefined;
223
+ Mqtt.prototype['topic'] = undefined;
226
224
 
227
225
  /**
228
- * Timeout in seconds for each request
229
- * @member {Number} timeout
230
- * @default 15
226
+ * Certificate with \\n newlines. This value is input-only and will be omitted from the response and replaced with a placeholder
227
+ * @member {String} certificate
231
228
  */
232
- Mqtt.prototype['timeout'] = 15;
229
+ Mqtt.prototype['certificate'] = undefined;
233
230
 
234
231
  /**
235
- * @member {String} topic
232
+ * Name of certificate.
233
+ * @member {String} certificate_name
236
234
  */
237
- Mqtt.prototype['topic'] = undefined;
235
+ Mqtt.prototype['certificate_name'] = undefined;
238
236
 
239
237
  /**
240
- * @member {module:model/AwsTransform} transform
238
+ * Key with \\n newlines. This value is input-only and will be omitted from the response and replaced with a placeholder
239
+ * @member {String} key
241
240
  */
242
- Mqtt.prototype['transform'] = undefined;
241
+ Mqtt.prototype['key'] = undefined;
243
242
 
244
243
  /**
245
- * @member {String} username
244
+ * Name of key
245
+ * @member {String} private_key_name
246
246
  */
247
- Mqtt.prototype['username'] = undefined;
247
+ Mqtt.prototype['private_key_name'] = undefined;
248
248
  var _default = exports["default"] = Mqtt;
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The Note model module.
28
28
  * @module model/Note
29
- * @version 1.0.37-beta.16
29
+ * @version 1.0.37-beta.18
30
30
  */
31
31
  var Note = /*#__PURE__*/function () {
32
32
  /**
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * The NotefileSchema model module.
32
32
  * @module model/NotefileSchema
33
- * @version 1.0.37-beta.16
33
+ * @version 1.0.37-beta.18
34
34
  */
35
35
  var NotefileSchema = /*#__PURE__*/function () {
36
36
  /**
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
27
27
  /**
28
28
  * The NotehubRoute model module.
29
29
  * @module model/NotehubRoute
30
- * @version 1.0.37-beta.16
30
+ * @version 1.0.37-beta.18
31
31
  */
32
32
  var NotehubRoute = /*#__PURE__*/function () {
33
33
  /**
@@ -60,24 +60,24 @@ var NotehubRoute = /*#__PURE__*/function () {
60
60
  value: function constructFromObject(data, obj) {
61
61
  if (data) {
62
62
  obj = obj || new NotehubRoute();
63
- if (data.hasOwnProperty('disabled')) {
64
- obj['disabled'] = _ApiClient["default"].convertToType(data['disabled'], 'Boolean');
63
+ if (data.hasOwnProperty('uid')) {
64
+ obj['uid'] = _ApiClient["default"].convertToType(data['uid'], 'String');
65
65
  }
66
66
  if (data.hasOwnProperty('label')) {
67
67
  obj['label'] = _ApiClient["default"].convertToType(data['label'], 'String');
68
68
  }
69
+ if (data.hasOwnProperty('route_type')) {
70
+ obj['route_type'] = _ApiClient["default"].convertToType(data['route_type'], 'String');
71
+ }
69
72
  if (data.hasOwnProperty('modified')) {
70
73
  obj['modified'] = _ApiClient["default"].convertToType(data['modified'], 'String');
71
74
  }
72
- if (data.hasOwnProperty('route_type')) {
73
- obj['route_type'] = _ApiClient["default"].convertToType(data['route_type'], 'String');
75
+ if (data.hasOwnProperty('disabled')) {
76
+ obj['disabled'] = _ApiClient["default"].convertToType(data['disabled'], 'Boolean');
74
77
  }
75
78
  if (data.hasOwnProperty('schema')) {
76
79
  obj['schema'] = _NotehubRouteSchema["default"].constructFromObject(data['schema']);
77
80
  }
78
- if (data.hasOwnProperty('uid')) {
79
- obj['uid'] = _ApiClient["default"].convertToType(data['uid'], 'String');
80
- }
81
81
  } else if (data === null) {
82
82
  return null;
83
83
  }
@@ -93,36 +93,35 @@ var NotehubRoute = /*#__PURE__*/function () {
93
93
  key: "validateJSON",
94
94
  value: function validateJSON(data) {
95
95
  // ensure the json data is a string
96
- if (data['label'] && !(typeof data['label'] === 'string' || data['label'] instanceof String)) {
97
- throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data['label']);
96
+ if (data['uid'] && !(typeof data['uid'] === 'string' || data['uid'] instanceof String)) {
97
+ throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got " + data['uid']);
98
98
  }
99
99
  // ensure the json data is a string
100
- if (data['modified'] && !(typeof data['modified'] === 'string' || data['modified'] instanceof String)) {
101
- throw new Error("Expected the field `modified` to be a primitive type in the JSON string but got " + data['modified']);
100
+ if (data['label'] && !(typeof data['label'] === 'string' || data['label'] instanceof String)) {
101
+ throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data['label']);
102
102
  }
103
103
  // ensure the json data is a string
104
104
  if (data['route_type'] && !(typeof data['route_type'] === 'string' || data['route_type'] instanceof String)) {
105
105
  throw new Error("Expected the field `route_type` to be a primitive type in the JSON string but got " + data['route_type']);
106
106
  }
107
+ // ensure the json data is a string
108
+ if (data['modified'] && !(typeof data['modified'] === 'string' || data['modified'] instanceof String)) {
109
+ throw new Error("Expected the field `modified` to be a primitive type in the JSON string but got " + data['modified']);
110
+ }
107
111
  // validate the optional field `schema`
108
112
  if (data['schema']) {
109
113
  // data not null
110
114
  _NotehubRouteSchema["default"].validateJSON(data['schema']);
111
115
  }
112
- // ensure the json data is a string
113
- if (data['uid'] && !(typeof data['uid'] === 'string' || data['uid'] instanceof String)) {
114
- throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got " + data['uid']);
115
- }
116
116
  return true;
117
117
  }
118
118
  }]);
119
119
  }();
120
120
  /**
121
- * Is route disabled?
122
- * @member {Boolean} disabled
123
- * @default false
121
+ * Route UID
122
+ * @member {String} uid
124
123
  */
125
- NotehubRoute.prototype['disabled'] = false;
124
+ NotehubRoute.prototype['uid'] = undefined;
126
125
 
127
126
  /**
128
127
  * Route Label
@@ -130,6 +129,13 @@ NotehubRoute.prototype['disabled'] = false;
130
129
  */
131
130
  NotehubRoute.prototype['label'] = undefined;
132
131
 
132
+ /**
133
+ * Type of route.
134
+ * @member {module:model/NotehubRoute.RouteTypeEnum} route_type
135
+ * @default 'http'
136
+ */
137
+ NotehubRoute.prototype['route_type'] = 'http';
138
+
133
139
  /**
134
140
  * Last Modified
135
141
  * @member {String} modified
@@ -137,23 +143,17 @@ NotehubRoute.prototype['label'] = undefined;
137
143
  NotehubRoute.prototype['modified'] = undefined;
138
144
 
139
145
  /**
140
- * Type of route.
141
- * @member {module:model/NotehubRoute.RouteTypeEnum} route_type
142
- * @default 'http'
146
+ * Is route disabled?
147
+ * @member {Boolean} disabled
148
+ * @default false
143
149
  */
144
- NotehubRoute.prototype['route_type'] = 'http';
150
+ NotehubRoute.prototype['disabled'] = false;
145
151
 
146
152
  /**
147
153
  * @member {module:model/NotehubRouteSchema} schema
148
154
  */
149
155
  NotehubRoute.prototype['schema'] = undefined;
150
156
 
151
- /**
152
- * Route UID
153
- * @member {String} uid
154
- */
155
- NotehubRoute.prototype['uid'] = undefined;
156
-
157
157
  /**
158
158
  * Allowed values for the <code>route_type</code> property.
159
159
  * @enum {String}