@blues-inc/notehub-js 1.0.36 → 1.0.37-beta.10

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 (133) hide show
  1. package/README.md +233 -227
  2. package/dist/ApiClient.js +156 -156
  3. package/dist/api/AlertApi.js +22 -22
  4. package/dist/api/AuthorizationApi.js +18 -18
  5. package/dist/api/BillingAccountApi.js +14 -14
  6. package/dist/api/DeviceApi.js +369 -369
  7. package/dist/api/EventApi.js +118 -118
  8. package/dist/api/ExternalDevicesApi.js +41 -41
  9. package/dist/api/MonitorApi.js +61 -61
  10. package/dist/api/ProjectApi.js +397 -387
  11. package/dist/api/RouteApi.js +77 -77
  12. package/dist/api/WebhookApi.js +51 -51
  13. package/dist/index.js +108 -66
  14. package/dist/model/Alert.js +114 -112
  15. package/dist/model/AlertDataInner.js +39 -39
  16. package/dist/model/AlertNotificationsInner.js +22 -22
  17. package/dist/model/AnalyticsEventsData.js +130 -0
  18. package/dist/model/{QuestionDataResponseMap.js → AnalyticsEventsResponse.js} +48 -59
  19. package/dist/model/AnalyticsRouteLogsData.js +140 -0
  20. package/dist/model/{DataSet.js → AnalyticsRouteLogsResponse.js} +54 -85
  21. package/dist/model/AnalyticsSessionsData.js +140 -0
  22. package/dist/model/AnalyticsSessionsResponse.js +132 -0
  23. package/dist/model/Aws.js +95 -95
  24. package/dist/model/{HttpFilter.js → AwsFilter.js} +40 -40
  25. package/dist/model/{HttpTransform.js → AwsTransform.js} +37 -37
  26. package/dist/model/Azure.js +61 -61
  27. package/dist/model/BillingAccount.js +28 -28
  28. package/dist/model/BillingAccountRole.js +9 -9
  29. package/dist/model/Body.js +5 -5
  30. package/dist/model/CloneProjectRequest.js +31 -31
  31. package/dist/model/Contact.js +26 -26
  32. package/dist/model/CreateFleetRequest.js +12 -12
  33. package/dist/model/CreateMonitor.js +216 -215
  34. package/dist/model/CreateProductRequest.js +36 -36
  35. package/dist/model/CreateProjectRequest.js +23 -23
  36. package/dist/model/CreateUpdateRepository.js +22 -22
  37. package/dist/model/CurrentFirmware.js +16 -16
  38. package/dist/model/DFUEnv.js +12 -12
  39. package/dist/model/DFUState.js +97 -97
  40. package/dist/model/DataField.js +7 -7
  41. package/dist/model/DataSetField.js +24 -24
  42. package/dist/model/DeleteDeviceFleetsRequest.js +8 -8
  43. package/dist/model/Device.js +153 -152
  44. package/dist/model/DeviceDfuHistory.js +26 -25
  45. package/dist/model/{DeviceDfuStatusCurrent.js → DeviceDfuHistoryCurrent.js} +58 -58
  46. package/dist/model/DeviceDfuHistoryPage.js +13 -12
  47. package/dist/model/DeviceDfuStateMachine.js +30 -29
  48. package/dist/model/DeviceDfuStateMachineNode.js +30 -30
  49. package/dist/model/DeviceDfuStatus.js +27 -27
  50. package/dist/model/DeviceDfuStatusPage.js +13 -12
  51. package/dist/model/DeviceSession.js +300 -300
  52. package/dist/model/DeviceTowerInfo.js +18 -18
  53. package/dist/model/DeviceUsage.js +44 -44
  54. package/dist/model/DfuActionRequest.js +7 -7
  55. package/dist/model/EmailNotification.js +7 -7
  56. package/dist/model/EnvTreeJsonNode.js +100 -98
  57. package/dist/model/EnvVar.js +20 -20
  58. package/dist/model/EnvironmentVariables.js +8 -8
  59. package/dist/model/Error.js +45 -45
  60. package/dist/model/Event.js +365 -365
  61. package/dist/model/Firmware.js +59 -59
  62. package/dist/model/FirmwareInfo.js +83 -83
  63. package/dist/model/Fleet.js +47 -47
  64. package/dist/model/GetAlerts200Response.js +15 -14
  65. package/dist/model/GetBillingAccounts200Response.js +10 -9
  66. package/dist/model/{GetDeviceEnvironmentVariables200Response.js → GetDeviceEnvironmentVariablesByPin200Response.js} +38 -38
  67. package/dist/model/{GetProjectFleets200Response.js → GetDeviceFleets200Response.js} +30 -29
  68. package/dist/model/GetDeviceHealthLog200Response.js +12 -11
  69. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +26 -26
  70. package/dist/model/GetDeviceLatest200Response.js +10 -9
  71. package/dist/model/GetDevicePublicKey200Response.js +22 -22
  72. package/dist/model/GetDeviceSessions200Response.js +23 -22
  73. package/dist/model/GetProjectDevicePublicKeys200Response.js +17 -16
  74. package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +14 -14
  75. package/dist/model/GetProjectDevices200Response.js +17 -16
  76. package/dist/model/GetProjectEvents200Response.js +21 -20
  77. package/dist/model/GetProjectEventsByCursor200Response.js +31 -30
  78. package/dist/model/GetProjectMembers200Response.js +12 -11
  79. package/dist/model/GetProjectProducts200Response.js +10 -9
  80. package/dist/model/GetProjects200Response.js +10 -9
  81. package/dist/model/GetWebhooks200Response.js +10 -9
  82. package/dist/model/Google.js +50 -50
  83. package/dist/model/HandleNoteChanges200Response.js +16 -16
  84. package/dist/model/HandleNoteGet200Response.js +13 -13
  85. package/dist/model/HandleNoteSignal200Response.js +5 -5
  86. package/dist/model/HandleNotefileChanges200Response.js +16 -16
  87. package/dist/model/HandleNotefileChangesPending200Response.js +20 -20
  88. package/dist/model/HandleNotefileDeleteRequest.js +7 -7
  89. package/dist/model/Http.js +54 -54
  90. package/dist/model/Location.js +50 -50
  91. package/dist/model/Login200Response.js +7 -7
  92. package/dist/model/LoginRequest.js +14 -14
  93. package/dist/model/Monitor.js +159 -158
  94. package/dist/model/MonitorAlertRoutesInner.js +18 -19
  95. package/dist/model/Mqtt.js +98 -98
  96. package/dist/model/Note.js +10 -10
  97. package/dist/model/NotefileSchema.js +19 -18
  98. package/dist/model/NotehubRoute.js +49 -49
  99. package/dist/model/NotehubRouteSchema.js +100 -101
  100. package/dist/model/PersonalAccessToken.js +168 -0
  101. package/dist/model/PersonalAccessTokenCreatedBy.js +116 -0
  102. package/dist/model/PersonalAccessTokenInfo.js +121 -0
  103. package/dist/model/PersonalAccessTokenSecret.js +105 -0
  104. package/dist/model/PostProvisionProjectDeviceRequest.js +25 -25
  105. package/dist/model/Product.js +36 -36
  106. package/dist/model/Project.js +47 -47
  107. package/dist/model/ProjectMember.js +28 -28
  108. package/dist/model/Proxy.js +34 -34
  109. package/dist/model/PutDeviceFleetsRequest.js +8 -8
  110. package/dist/model/Radresponder.js +34 -34
  111. package/dist/model/Repository.js +28 -28
  112. package/dist/model/Role.js +9 -9
  113. package/dist/model/RouteLog.js +48 -48
  114. package/dist/model/SchemaProperty.js +54 -54
  115. package/dist/model/SimUsage.js +27 -27
  116. package/dist/model/Slack.js +82 -82
  117. package/dist/model/SlackBearerNotification.js +30 -30
  118. package/dist/model/{SnowflakeTransform.js → SlackTransform.js} +28 -28
  119. package/dist/model/SlackWebHookNotification.js +25 -25
  120. package/dist/model/Snowflake.js +66 -66
  121. package/dist/model/Thingworx.js +48 -48
  122. package/dist/model/TowerLocation.js +75 -75
  123. package/dist/model/Twilio.js +65 -65
  124. package/dist/model/UpdateFleetRequest.js +31 -31
  125. package/dist/model/UploadMetadata.js +86 -73
  126. package/dist/model/UserDbRoute.js +33 -33
  127. package/dist/model/UserDfuStateMachine.js +27 -27
  128. package/dist/model/UserDfuStateMachineStatus.js +23 -23
  129. package/dist/model/UserFirmwareInfo.js +12 -12
  130. package/dist/model/WebhookSettings.js +15 -15
  131. package/package.json +3 -3
  132. package/dist/api/RepositoryApi.js +0 -605
  133. package/dist/model/QuestionDataResponseLineChart.js +0 -204
@@ -13,7 +13,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
13
13
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
14
14
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
15
15
  * Notehub API
16
- * The OpenAPI definition for the Notehub.io API.
16
+ * The OpenAPI definition for the Notehub.io API.
17
17
  *
18
18
  * The version of the OpenAPI document: 1.2.0
19
19
  * Contact: engineering@blues.io
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The UpdateFleetRequest model module.
28
28
  * @module model/UpdateFleetRequest
29
- * @version 1.0.36
29
+ * @version 1.0.37-beta.10
30
30
  */
31
31
  var UpdateFleetRequest = /*#__PURE__*/function () {
32
32
  /**
@@ -59,20 +59,20 @@ var UpdateFleetRequest = /*#__PURE__*/function () {
59
59
  value: function constructFromObject(data, obj) {
60
60
  if (data) {
61
61
  obj = obj || new UpdateFleetRequest();
62
- if (data.hasOwnProperty("label")) {
63
- obj["label"] = _ApiClient["default"].convertToType(data["label"], "String");
62
+ if (data.hasOwnProperty('addDevices')) {
63
+ obj['addDevices'] = _ApiClient["default"].convertToType(data['addDevices'], ['String']);
64
64
  }
65
- if (data.hasOwnProperty("addDevices")) {
66
- obj["addDevices"] = _ApiClient["default"].convertToType(data["addDevices"], ["String"]);
65
+ if (data.hasOwnProperty('label')) {
66
+ obj['label'] = _ApiClient["default"].convertToType(data['label'], 'String');
67
67
  }
68
- if (data.hasOwnProperty("removeDevices")) {
69
- obj["removeDevices"] = _ApiClient["default"].convertToType(data["removeDevices"], ["String"]);
68
+ if (data.hasOwnProperty('removeDevices')) {
69
+ obj['removeDevices'] = _ApiClient["default"].convertToType(data['removeDevices'], ['String']);
70
70
  }
71
- if (data.hasOwnProperty("smart_rule")) {
72
- obj["smart_rule"] = _ApiClient["default"].convertToType(data["smart_rule"], "String");
71
+ if (data.hasOwnProperty('smart_rule')) {
72
+ obj['smart_rule'] = _ApiClient["default"].convertToType(data['smart_rule'], 'String');
73
73
  }
74
- if (data.hasOwnProperty("watchdog_mins")) {
75
- obj["watchdog_mins"] = _ApiClient["default"].convertToType(data["watchdog_mins"], "Number");
74
+ if (data.hasOwnProperty('watchdog_mins')) {
75
+ obj['watchdog_mins'] = _ApiClient["default"].convertToType(data['watchdog_mins'], 'Number');
76
76
  }
77
77
  } else if (data === null) {
78
78
  return null;
@@ -88,53 +88,53 @@ var UpdateFleetRequest = /*#__PURE__*/function () {
88
88
  }, {
89
89
  key: "validateJSON",
90
90
  value: function validateJSON(data) {
91
- // ensure the json data is a string
92
- if (data["label"] && !(typeof data["label"] === "string" || data["label"] instanceof String)) {
93
- throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data["label"]);
94
- }
95
91
  // ensure the json data is an array
96
- if (!Array.isArray(data["addDevices"])) {
97
- throw new Error("Expected the field `addDevices` to be an array in the JSON data but got " + data["addDevices"]);
92
+ if (!Array.isArray(data['addDevices'])) {
93
+ throw new Error("Expected the field `addDevices` to be an array in the JSON data but got " + data['addDevices']);
94
+ }
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']);
98
98
  }
99
99
  // ensure the json data is an array
100
- if (!Array.isArray(data["removeDevices"])) {
101
- throw new Error("Expected the field `removeDevices` to be an array in the JSON data but got " + data["removeDevices"]);
100
+ if (!Array.isArray(data['removeDevices'])) {
101
+ throw new Error("Expected the field `removeDevices` to be an array in the JSON data but got " + data['removeDevices']);
102
102
  }
103
103
  // ensure the json data is a string
104
- if (data["smart_rule"] && !(typeof data["smart_rule"] === "string" || data["smart_rule"] instanceof String)) {
105
- throw new Error("Expected the field `smart_rule` to be a primitive type in the JSON string but got " + data["smart_rule"]);
104
+ if (data['smart_rule'] && !(typeof data['smart_rule'] === 'string' || data['smart_rule'] instanceof String)) {
105
+ throw new Error("Expected the field `smart_rule` to be a primitive type in the JSON string but got " + data['smart_rule']);
106
106
  }
107
107
  return true;
108
108
  }
109
109
  }]);
110
110
  }();
111
111
  /**
112
- * The label for the Fleet.
113
- * @member {String} label
112
+ * List of DeviceUIDs to add to fleet
113
+ * @member {Array.<String>} addDevices
114
114
  */
115
- UpdateFleetRequest.prototype["label"] = undefined;
115
+ UpdateFleetRequest.prototype['addDevices'] = undefined;
116
116
 
117
117
  /**
118
- * List of DeviceUIDs to add to fleet
119
- * @member {Array.<String>} addDevices
118
+ * The label for the Fleet.
119
+ * @member {String} label
120
120
  */
121
- UpdateFleetRequest.prototype["addDevices"] = undefined;
121
+ UpdateFleetRequest.prototype['label'] = undefined;
122
122
 
123
123
  /**
124
124
  * List of DeviceUIDs to remove from fleet
125
125
  * @member {Array.<String>} removeDevices
126
126
  */
127
- UpdateFleetRequest.prototype["removeDevices"] = undefined;
127
+ UpdateFleetRequest.prototype['removeDevices'] = undefined;
128
128
 
129
129
  /**
130
130
  * JSONata expression that will be evaluated to determine device membership into this fleet, if the expression evaluates to a 1, the device will be included, if it evaluates to -1 it will be removed, and if it evaluates to 0 or errors it will be left unchanged.
131
131
  * @member {String} smart_rule
132
132
  */
133
- UpdateFleetRequest.prototype["smart_rule"] = undefined;
133
+ UpdateFleetRequest.prototype['smart_rule'] = undefined;
134
134
 
135
135
  /**
136
136
  * A watchdog timer is used to generate an event every N minutes of inactivity. 0 means no watchdog
137
137
  * @member {Number} watchdog_mins
138
138
  */
139
- UpdateFleetRequest.prototype["watchdog_mins"] = undefined;
139
+ UpdateFleetRequest.prototype['watchdog_mins'] = undefined;
140
140
  var _default = exports["default"] = UpdateFleetRequest;
@@ -14,7 +14,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
14
14
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
15
15
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
16
16
  * Notehub API
17
- * The OpenAPI definition for the Notehub.io API.
17
+ * The OpenAPI definition for the Notehub.io API.
18
18
  *
19
19
  * The version of the OpenAPI document: 1.2.0
20
20
  * Contact: engineering@blues.io
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
27
27
  /**
28
28
  * The UploadMetadata model module.
29
29
  * @module model/UploadMetadata
30
- * @version 1.0.36
30
+ * @version 1.0.37-beta.10
31
31
  */
32
32
  var UploadMetadata = /*#__PURE__*/function () {
33
33
  /**
@@ -60,44 +60,47 @@ var UploadMetadata = /*#__PURE__*/function () {
60
60
  value: function constructFromObject(data, obj) {
61
61
  if (data) {
62
62
  obj = obj || new UploadMetadata();
63
- if (data.hasOwnProperty("name")) {
64
- obj["name"] = _ApiClient["default"].convertToType(data["name"], "String");
63
+ if (data.hasOwnProperty('contains')) {
64
+ obj['contains'] = _ApiClient["default"].convertToType(data['contains'], 'String');
65
65
  }
66
- if (data.hasOwnProperty("length")) {
67
- obj["length"] = _ApiClient["default"].convertToType(data["length"], "Number");
66
+ if (data.hasOwnProperty('crc32')) {
67
+ obj['crc32'] = _ApiClient["default"].convertToType(data['crc32'], 'Number');
68
68
  }
69
- if (data.hasOwnProperty("md5")) {
70
- obj["md5"] = _ApiClient["default"].convertToType(data["md5"], "String");
69
+ if (data.hasOwnProperty('created')) {
70
+ obj['created'] = _ApiClient["default"].convertToType(data['created'], 'Number');
71
71
  }
72
- if (data.hasOwnProperty("crc32")) {
73
- obj["crc32"] = _ApiClient["default"].convertToType(data["crc32"], "Number");
72
+ if (data.hasOwnProperty('firmware')) {
73
+ obj['firmware'] = _Firmware["default"].constructFromObject(data['firmware']);
74
74
  }
75
- if (data.hasOwnProperty("created")) {
76
- obj["created"] = _ApiClient["default"].convertToType(data["created"], "Number");
75
+ if (data.hasOwnProperty('found')) {
76
+ obj['found'] = _ApiClient["default"].convertToType(data['found'], 'String');
77
77
  }
78
- if (data.hasOwnProperty("modified")) {
79
- obj["modified"] = _ApiClient["default"].convertToType(data["modified"], "Number");
78
+ if (data.hasOwnProperty('length')) {
79
+ obj['length'] = _ApiClient["default"].convertToType(data['length'], 'Number');
80
80
  }
81
- if (data.hasOwnProperty("source")) {
82
- obj["source"] = _ApiClient["default"].convertToType(data["source"], "String");
81
+ if (data.hasOwnProperty('md5')) {
82
+ obj['md5'] = _ApiClient["default"].convertToType(data['md5'], 'String');
83
83
  }
84
- if (data.hasOwnProperty("contains")) {
85
- obj["contains"] = _ApiClient["default"].convertToType(data["contains"], "String");
84
+ if (data.hasOwnProperty('modified')) {
85
+ obj['modified'] = _ApiClient["default"].convertToType(data['modified'], 'Number');
86
86
  }
87
- if (data.hasOwnProperty("found")) {
88
- obj["found"] = _ApiClient["default"].convertToType(data["found"], "String");
87
+ if (data.hasOwnProperty('name')) {
88
+ obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
89
89
  }
90
- if (data.hasOwnProperty("type")) {
91
- obj["type"] = _ApiClient["default"].convertToType(data["type"], "String");
90
+ if (data.hasOwnProperty('notes')) {
91
+ obj['notes'] = _ApiClient["default"].convertToType(data['notes'], 'String');
92
92
  }
93
- if (data.hasOwnProperty("tags")) {
94
- obj["tags"] = _ApiClient["default"].convertToType(data["tags"], "String");
93
+ if (data.hasOwnProperty('source')) {
94
+ obj['source'] = _ApiClient["default"].convertToType(data['source'], 'String');
95
95
  }
96
- if (data.hasOwnProperty("notes")) {
97
- obj["notes"] = _ApiClient["default"].convertToType(data["notes"], "String");
96
+ if (data.hasOwnProperty('tags')) {
97
+ obj['tags'] = _ApiClient["default"].convertToType(data['tags'], 'String');
98
98
  }
99
- if (data.hasOwnProperty("firmware")) {
100
- obj["firmware"] = _Firmware["default"].constructFromObject(data["firmware"]);
99
+ if (data.hasOwnProperty('type')) {
100
+ obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String');
101
+ }
102
+ if (data.hasOwnProperty('version')) {
103
+ obj['version'] = _ApiClient["default"].convertToType(data['version'], 'String');
101
104
  }
102
105
  } else if (data === null) {
103
106
  return null;
@@ -114,108 +117,118 @@ var UploadMetadata = /*#__PURE__*/function () {
114
117
  key: "validateJSON",
115
118
  value: function validateJSON(data) {
116
119
  // ensure the json data is a string
117
- if (data["name"] && !(typeof data["name"] === "string" || data["name"] instanceof String)) {
118
- throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data["name"]);
120
+ if (data['contains'] && !(typeof data['contains'] === 'string' || data['contains'] instanceof String)) {
121
+ throw new Error("Expected the field `contains` to be a primitive type in the JSON string but got " + data['contains']);
122
+ }
123
+ // validate the optional field `firmware`
124
+ if (data['firmware']) {
125
+ // data not null
126
+ _Firmware["default"].validateJSON(data['firmware']);
119
127
  }
120
128
  // ensure the json data is a string
121
- if (data["md5"] && !(typeof data["md5"] === "string" || data["md5"] instanceof String)) {
122
- throw new Error("Expected the field `md5` to be a primitive type in the JSON string but got " + data["md5"]);
129
+ if (data['found'] && !(typeof data['found'] === 'string' || data['found'] instanceof String)) {
130
+ throw new Error("Expected the field `found` to be a primitive type in the JSON string but got " + data['found']);
123
131
  }
124
132
  // ensure the json data is a string
125
- if (data["source"] && !(typeof data["source"] === "string" || data["source"] instanceof String)) {
126
- throw new Error("Expected the field `source` to be a primitive type in the JSON string but got " + data["source"]);
133
+ if (data['md5'] && !(typeof data['md5'] === 'string' || data['md5'] instanceof String)) {
134
+ throw new Error("Expected the field `md5` to be a primitive type in the JSON string but got " + data['md5']);
127
135
  }
128
136
  // ensure the json data is a string
129
- if (data["contains"] && !(typeof data["contains"] === "string" || data["contains"] instanceof String)) {
130
- throw new Error("Expected the field `contains` to be a primitive type in the JSON string but got " + data["contains"]);
137
+ if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
138
+ throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
131
139
  }
132
140
  // ensure the json data is a string
133
- if (data["found"] && !(typeof data["found"] === "string" || data["found"] instanceof String)) {
134
- throw new Error("Expected the field `found` to be a primitive type in the JSON string but got " + data["found"]);
141
+ if (data['notes'] && !(typeof data['notes'] === 'string' || data['notes'] instanceof String)) {
142
+ throw new Error("Expected the field `notes` to be a primitive type in the JSON string but got " + data['notes']);
135
143
  }
136
144
  // ensure the json data is a string
137
- if (data["type"] && !(typeof data["type"] === "string" || data["type"] instanceof String)) {
138
- throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data["type"]);
145
+ if (data['source'] && !(typeof data['source'] === 'string' || data['source'] instanceof String)) {
146
+ throw new Error("Expected the field `source` to be a primitive type in the JSON string but got " + data['source']);
139
147
  }
140
148
  // ensure the json data is a string
141
- if (data["tags"] && !(typeof data["tags"] === "string" || data["tags"] instanceof String)) {
142
- throw new Error("Expected the field `tags` to be a primitive type in the JSON string but got " + data["tags"]);
149
+ if (data['tags'] && !(typeof data['tags'] === 'string' || data['tags'] instanceof String)) {
150
+ throw new Error("Expected the field `tags` to be a primitive type in the JSON string but got " + data['tags']);
143
151
  }
144
152
  // ensure the json data is a string
145
- if (data["notes"] && !(typeof data["notes"] === "string" || data["notes"] instanceof String)) {
146
- throw new Error("Expected the field `notes` to be a primitive type in the JSON string but got " + data["notes"]);
153
+ if (data['type'] && !(typeof data['type'] === 'string' || data['type'] instanceof String)) {
154
+ throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data['type']);
147
155
  }
148
- // validate the optional field `firmware`
149
- if (data["firmware"]) {
150
- // data not null
151
- _Firmware["default"].validateJSON(data["firmware"]);
156
+ // ensure the json data is a string
157
+ if (data['version'] && !(typeof data['version'] === 'string' || data['version'] instanceof String)) {
158
+ throw new Error("Expected the field `version` to be a primitive type in the JSON string but got " + data['version']);
152
159
  }
153
160
  return true;
154
161
  }
155
162
  }]);
156
163
  }();
157
164
  /**
158
- * @member {String} name
165
+ * @member {String} contains
159
166
  */
160
- UploadMetadata.prototype["name"] = undefined;
167
+ UploadMetadata.prototype['contains'] = undefined;
161
168
 
162
169
  /**
163
- * @member {Number} length
170
+ * @member {Number} crc32
164
171
  */
165
- UploadMetadata.prototype["length"] = undefined;
172
+ UploadMetadata.prototype['crc32'] = undefined;
166
173
 
167
174
  /**
168
- * @member {String} md5
175
+ * @member {Number} created
169
176
  */
170
- UploadMetadata.prototype["md5"] = undefined;
177
+ UploadMetadata.prototype['created'] = undefined;
171
178
 
172
179
  /**
173
- * @member {Number} crc32
180
+ * @member {module:model/Firmware} firmware
174
181
  */
175
- UploadMetadata.prototype["crc32"] = undefined;
182
+ UploadMetadata.prototype['firmware'] = undefined;
176
183
 
177
184
  /**
178
- * @member {Number} created
185
+ * @member {String} found
179
186
  */
180
- UploadMetadata.prototype["created"] = undefined;
187
+ UploadMetadata.prototype['found'] = undefined;
181
188
 
182
189
  /**
183
- * @member {Number} modified
190
+ * @member {Number} length
184
191
  */
185
- UploadMetadata.prototype["modified"] = undefined;
192
+ UploadMetadata.prototype['length'] = undefined;
186
193
 
187
194
  /**
188
- * @member {String} source
195
+ * @member {String} md5
189
196
  */
190
- UploadMetadata.prototype["source"] = undefined;
197
+ UploadMetadata.prototype['md5'] = undefined;
191
198
 
192
199
  /**
193
- * @member {String} contains
200
+ * @member {Number} modified
194
201
  */
195
- UploadMetadata.prototype["contains"] = undefined;
202
+ UploadMetadata.prototype['modified'] = undefined;
196
203
 
197
204
  /**
198
- * @member {String} found
205
+ * @member {String} name
199
206
  */
200
- UploadMetadata.prototype["found"] = undefined;
207
+ UploadMetadata.prototype['name'] = undefined;
201
208
 
202
209
  /**
203
- * @member {String} type
210
+ * @member {String} notes
211
+ */
212
+ UploadMetadata.prototype['notes'] = undefined;
213
+
214
+ /**
215
+ * @member {String} source
204
216
  */
205
- UploadMetadata.prototype["type"] = undefined;
217
+ UploadMetadata.prototype['source'] = undefined;
206
218
 
207
219
  /**
208
220
  * @member {String} tags
209
221
  */
210
- UploadMetadata.prototype["tags"] = undefined;
222
+ UploadMetadata.prototype['tags'] = undefined;
211
223
 
212
224
  /**
213
- * @member {String} notes
225
+ * @member {String} type
214
226
  */
215
- UploadMetadata.prototype["notes"] = undefined;
227
+ UploadMetadata.prototype['type'] = undefined;
216
228
 
217
229
  /**
218
- * @member {module:model/Firmware} firmware
230
+ * User-specified version string provided at time of upload
231
+ * @member {String} version
219
232
  */
220
- UploadMetadata.prototype["firmware"] = undefined;
233
+ UploadMetadata.prototype['version'] = undefined;
221
234
  var _default = exports["default"] = UploadMetadata;
@@ -13,7 +13,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
13
13
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
14
14
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
15
15
  * Notehub API
16
- * The OpenAPI definition for the Notehub.io API.
16
+ * The OpenAPI definition for the Notehub.io API.
17
17
  *
18
18
  * The version of the OpenAPI document: 1.2.0
19
19
  * Contact: engineering@blues.io
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The UserDbRoute model module.
28
28
  * @module model/UserDbRoute
29
- * @version 1.0.36
29
+ * @version 1.0.37-beta.10
30
30
  */
31
31
  var UserDbRoute = /*#__PURE__*/function () {
32
32
  /**
@@ -59,20 +59,20 @@ var UserDbRoute = /*#__PURE__*/function () {
59
59
  value: function constructFromObject(data, obj) {
60
60
  if (data) {
61
61
  obj = obj || new UserDbRoute();
62
- if (data.hasOwnProperty("uid")) {
63
- obj["uid"] = _ApiClient["default"].convertToType(data["uid"], "String");
62
+ if (data.hasOwnProperty('disabled')) {
63
+ obj['disabled'] = _ApiClient["default"].convertToType(data['disabled'], 'Boolean');
64
64
  }
65
- if (data.hasOwnProperty("label")) {
66
- obj["label"] = _ApiClient["default"].convertToType(data["label"], "String");
65
+ if (data.hasOwnProperty('label')) {
66
+ obj['label'] = _ApiClient["default"].convertToType(data['label'], 'String');
67
67
  }
68
- if (data.hasOwnProperty("type")) {
69
- obj["type"] = _ApiClient["default"].convertToType(data["type"], "String");
68
+ if (data.hasOwnProperty('modified')) {
69
+ obj['modified'] = _ApiClient["default"].convertToType(data['modified'], 'String');
70
70
  }
71
- if (data.hasOwnProperty("modified")) {
72
- obj["modified"] = _ApiClient["default"].convertToType(data["modified"], "String");
71
+ if (data.hasOwnProperty('type')) {
72
+ obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String');
73
73
  }
74
- if (data.hasOwnProperty("disabled")) {
75
- obj["disabled"] = _ApiClient["default"].convertToType(data["disabled"], "Boolean");
74
+ if (data.hasOwnProperty('uid')) {
75
+ obj['uid'] = _ApiClient["default"].convertToType(data['uid'], 'String');
76
76
  }
77
77
  } else if (data === null) {
78
78
  return null;
@@ -89,52 +89,52 @@ var UserDbRoute = /*#__PURE__*/function () {
89
89
  key: "validateJSON",
90
90
  value: function validateJSON(data) {
91
91
  // ensure the json data is a string
92
- if (data["uid"] && !(typeof data["uid"] === "string" || data["uid"] instanceof String)) {
93
- throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got " + data["uid"]);
92
+ if (data['label'] && !(typeof data['label'] === 'string' || data['label'] instanceof String)) {
93
+ throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data['label']);
94
94
  }
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['modified'] && !(typeof data['modified'] === 'string' || data['modified'] instanceof String)) {
97
+ throw new Error("Expected the field `modified` to be a primitive type in the JSON string but got " + data['modified']);
98
98
  }
99
99
  // ensure the json data is a string
100
- if (data["type"] && !(typeof data["type"] === "string" || data["type"] instanceof String)) {
101
- throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data["type"]);
100
+ if (data['type'] && !(typeof data['type'] === 'string' || data['type'] instanceof String)) {
101
+ throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data['type']);
102
102
  }
103
103
  // ensure the json data is a string
104
- if (data["modified"] && !(typeof data["modified"] === "string" || data["modified"] instanceof String)) {
105
- throw new Error("Expected the field `modified` to be a primitive type in the JSON string but got " + data["modified"]);
104
+ if (data['uid'] && !(typeof data['uid'] === 'string' || data['uid'] instanceof String)) {
105
+ throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got " + data['uid']);
106
106
  }
107
107
  return true;
108
108
  }
109
109
  }]);
110
110
  }();
111
111
  /**
112
- * @member {String} uid
113
- * @default 'route:8d65a087d5d290ce5bdf03aeff2becc0'
112
+ * @member {Boolean} disabled
113
+ * @default false
114
114
  */
115
- UserDbRoute.prototype["uid"] = "route:8d65a087d5d290ce5bdf03aeff2becc0";
115
+ UserDbRoute.prototype['disabled'] = false;
116
116
 
117
117
  /**
118
118
  * @member {String} label
119
119
  * @default 'success route'
120
120
  */
121
- UserDbRoute.prototype["label"] = "success route";
121
+ UserDbRoute.prototype['label'] = 'success route';
122
122
 
123
123
  /**
124
- * @member {String} type
125
- * @default 'http'
124
+ * @member {String} modified
125
+ * @default '2020-03-09T17:58:37Z'
126
126
  */
127
- UserDbRoute.prototype["type"] = "http";
127
+ UserDbRoute.prototype['modified'] = '2020-03-09T17:58:37Z';
128
128
 
129
129
  /**
130
- * @member {String} modified
131
- * @default '2020-03-09T17:58:37Z'
130
+ * @member {String} type
131
+ * @default 'http'
132
132
  */
133
- UserDbRoute.prototype["modified"] = "2020-03-09T17:58:37Z";
133
+ UserDbRoute.prototype['type'] = 'http';
134
134
 
135
135
  /**
136
- * @member {Boolean} disabled
137
- * @default false
136
+ * @member {String} uid
137
+ * @default 'route:8d65a087d5d290ce5bdf03aeff2becc0'
138
138
  */
139
- UserDbRoute.prototype["disabled"] = false;
139
+ UserDbRoute.prototype['uid'] = 'route:8d65a087d5d290ce5bdf03aeff2becc0';
140
140
  var _default = exports["default"] = UserDbRoute;
@@ -15,7 +15,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
15
15
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
16
16
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
17
17
  * Notehub API
18
- * The OpenAPI definition for the Notehub.io API.
18
+ * The OpenAPI definition for the Notehub.io API.
19
19
  *
20
20
  * The version of the OpenAPI document: 1.2.0
21
21
  * Contact: engineering@blues.io
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
28
28
  /**
29
29
  * The UserDfuStateMachine model module.
30
30
  * @module model/UserDfuStateMachine
31
- * @version 1.0.36
31
+ * @version 1.0.37-beta.10
32
32
  */
33
33
  var UserDfuStateMachine = /*#__PURE__*/function () {
34
34
  /**
@@ -61,17 +61,17 @@ var UserDfuStateMachine = /*#__PURE__*/function () {
61
61
  value: function constructFromObject(data, obj) {
62
62
  if (data) {
63
63
  obj = obj || new UserDfuStateMachine();
64
- if (data.hasOwnProperty("status")) {
65
- obj["status"] = _UserDfuStateMachineStatus["default"].constructFromObject(data["status"]);
64
+ if (data.hasOwnProperty('created')) {
65
+ obj['created'] = _ApiClient["default"].convertToType(data['created'], 'Date');
66
66
  }
67
- if (data.hasOwnProperty("created")) {
68
- obj["created"] = _ApiClient["default"].convertToType(data["created"], "Date");
67
+ if (data.hasOwnProperty('from_version')) {
68
+ obj['from_version'] = _ApiClient["default"].convertToType(data['from_version'], 'String');
69
69
  }
70
- if (data.hasOwnProperty("from_version")) {
71
- obj["from_version"] = _ApiClient["default"].convertToType(data["from_version"], "String");
70
+ if (data.hasOwnProperty('metadata')) {
71
+ obj['metadata'] = _UploadMetadata["default"].constructFromObject(data['metadata']);
72
72
  }
73
- if (data.hasOwnProperty("metadata")) {
74
- obj["metadata"] = _UploadMetadata["default"].constructFromObject(data["metadata"]);
73
+ if (data.hasOwnProperty('status')) {
74
+ obj['status'] = _UserDfuStateMachineStatus["default"].constructFromObject(data['status']);
75
75
  }
76
76
  } else if (data === null) {
77
77
  return null;
@@ -87,41 +87,41 @@ var UserDfuStateMachine = /*#__PURE__*/function () {
87
87
  }, {
88
88
  key: "validateJSON",
89
89
  value: function validateJSON(data) {
90
- // validate the optional field `status`
91
- if (data["status"]) {
92
- // data not null
93
- _UserDfuStateMachineStatus["default"].validateJSON(data["status"]);
94
- }
95
90
  // ensure the json data is a string
96
- if (data["from_version"] && !(typeof data["from_version"] === "string" || data["from_version"] instanceof String)) {
97
- throw new Error("Expected the field `from_version` to be a primitive type in the JSON string but got " + data["from_version"]);
91
+ if (data['from_version'] && !(typeof data['from_version'] === 'string' || data['from_version'] instanceof String)) {
92
+ throw new Error("Expected the field `from_version` to be a primitive type in the JSON string but got " + data['from_version']);
98
93
  }
99
94
  // validate the optional field `metadata`
100
- if (data["metadata"]) {
95
+ if (data['metadata']) {
101
96
  // data not null
102
- _UploadMetadata["default"].validateJSON(data["metadata"]);
97
+ _UploadMetadata["default"].validateJSON(data['metadata']);
98
+ }
99
+ // validate the optional field `status`
100
+ if (data['status']) {
101
+ // data not null
102
+ _UserDfuStateMachineStatus["default"].validateJSON(data['status']);
103
103
  }
104
104
  return true;
105
105
  }
106
106
  }]);
107
107
  }();
108
- /**
109
- * @member {module:model/UserDfuStateMachineStatus} status
110
- */
111
- UserDfuStateMachine.prototype["status"] = undefined;
112
-
113
108
  /**
114
109
  * @member {Date} created
115
110
  */
116
- UserDfuStateMachine.prototype["created"] = undefined;
111
+ UserDfuStateMachine.prototype['created'] = undefined;
117
112
 
118
113
  /**
119
114
  * @member {String} from_version
120
115
  */
121
- UserDfuStateMachine.prototype["from_version"] = undefined;
116
+ UserDfuStateMachine.prototype['from_version'] = undefined;
122
117
 
123
118
  /**
124
119
  * @member {module:model/UploadMetadata} metadata
125
120
  */
126
- UserDfuStateMachine.prototype["metadata"] = undefined;
121
+ UserDfuStateMachine.prototype['metadata'] = undefined;
122
+
123
+ /**
124
+ * @member {module:model/UserDfuStateMachineStatus} status
125
+ */
126
+ UserDfuStateMachine.prototype['status'] = undefined;
127
127
  var _default = exports["default"] = UserDfuStateMachine;