@blues-inc/notehub-js 1.0.37-beta.3 → 1.0.37-beta.30

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 (140) hide show
  1. package/README.md +25 -17
  2. package/dist/ApiClient.js +3 -3
  3. package/dist/api/AlertApi.js +2 -2
  4. package/dist/api/AuthorizationApi.js +65 -2
  5. package/dist/api/BillingAccountApi.js +2 -2
  6. package/dist/api/DeviceApi.js +9 -9
  7. package/dist/api/EventApi.js +2 -2
  8. package/dist/api/ExternalDevicesApi.js +2 -2
  9. package/dist/api/MonitorApi.js +11 -11
  10. package/dist/api/ProjectApi.js +15 -15
  11. package/dist/api/RouteApi.js +2 -2
  12. package/dist/api/UsageApi.js +285 -0
  13. package/dist/api/WebhookApi.js +2 -2
  14. package/dist/index.js +127 -99
  15. package/dist/model/Alert.js +92 -92
  16. package/dist/model/AlertDataInner.js +11 -11
  17. package/dist/model/AlertNotificationsInner.js +11 -11
  18. package/dist/model/Aws.js +87 -87
  19. package/dist/model/{HttpFilter.js → AwsFilter.js} +33 -33
  20. package/dist/model/{HttpTransform.js → AwsTransform.js} +22 -22
  21. package/dist/model/Azure.js +52 -52
  22. package/dist/model/BillingAccount.js +20 -20
  23. package/dist/model/BillingAccountRole.js +1 -1
  24. package/dist/model/Body.js +2 -2
  25. package/dist/model/CellularPlan.js +168 -0
  26. package/dist/model/CloneProjectRequest.js +26 -26
  27. package/dist/model/Contact.js +20 -20
  28. package/dist/model/CreateFleetRequest.js +2 -2
  29. package/dist/model/CreateMonitor.js +187 -187
  30. package/dist/model/CreateProductRequest.js +31 -31
  31. package/dist/model/CreateProjectRequest.js +21 -21
  32. package/dist/model/CreateUpdateRepository.js +19 -19
  33. package/dist/model/CumulativeDataUsage.js +133 -0
  34. package/dist/model/CurrentFirmware.js +13 -13
  35. package/dist/model/DFUEnv.js +2 -2
  36. package/dist/model/DFUState.js +61 -61
  37. package/dist/model/DataField.js +2 -2
  38. package/dist/model/DataSetField.js +15 -15
  39. package/dist/model/DeleteDeviceFleetsRequest.js +2 -2
  40. package/dist/model/Device.js +178 -134
  41. package/dist/model/DeviceDfuHistory.js +16 -16
  42. package/dist/model/{DeviceDfuStatusCurrent.js → DeviceDfuHistoryCurrent.js} +53 -53
  43. package/dist/model/DeviceDfuHistoryPage.js +2 -2
  44. package/dist/model/DeviceDfuStateMachine.js +15 -15
  45. package/dist/model/DeviceDfuStateMachineNode.js +28 -28
  46. package/dist/model/DeviceDfuStatus.js +16 -16
  47. package/dist/model/DeviceDfuStatusPage.js +2 -2
  48. package/dist/model/DeviceSession.js +279 -279
  49. package/dist/model/DeviceTowerInfo.js +16 -16
  50. package/dist/model/DeviceUsage.js +37 -37
  51. package/dist/model/DfuActionRequest.js +2 -2
  52. package/dist/model/EmailNotification.js +2 -2
  53. package/dist/model/EnvTreeJsonNode.js +77 -77
  54. package/dist/model/EnvVar.js +10 -10
  55. package/dist/model/EnvironmentVariables.js +2 -2
  56. package/dist/model/Error.js +39 -39
  57. package/dist/model/Event.js +341 -341
  58. package/dist/model/Firmware.js +46 -46
  59. package/dist/model/FirmwareInfo.js +72 -72
  60. package/dist/model/Fleet.js +32 -32
  61. package/dist/model/GetAlerts200Response.js +2 -2
  62. package/dist/model/GetBillingAccounts200Response.js +2 -2
  63. package/dist/model/{GetDeviceEnvironmentVariables200Response.js → GetDeviceEnvironmentVariablesByPin200Response.js} +31 -31
  64. package/dist/model/{GetProjectFleets200Response.js → GetDeviceFleets200Response.js} +21 -21
  65. package/dist/model/GetDeviceHealthLog200Response.js +2 -2
  66. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +16 -16
  67. package/dist/model/GetDeviceLatest200Response.js +2 -2
  68. package/dist/model/GetDevicePublicKey200Response.js +19 -19
  69. package/dist/model/GetDeviceSessions200Response.js +15 -15
  70. package/dist/model/GetProjectDevicePublicKeys200Response.js +2 -2
  71. package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +13 -13
  72. package/dist/model/GetProjectDevices200Response.js +2 -2
  73. package/dist/model/GetProjectEvents200Response.js +2 -2
  74. package/dist/model/GetProjectEventsByCursor200Response.js +17 -17
  75. package/dist/model/GetProjectMembers200Response.js +2 -2
  76. package/dist/model/GetProjectProducts200Response.js +2 -2
  77. package/dist/model/GetProjects200Response.js +2 -2
  78. package/dist/model/GetWebhooks200Response.js +2 -2
  79. package/dist/model/Google.js +36 -36
  80. package/dist/model/HandleNoteChanges200Response.js +11 -11
  81. package/dist/model/HandleNoteGet200Response.js +2 -2
  82. package/dist/model/HandleNoteSignal200Response.js +2 -2
  83. package/dist/model/HandleNotefileChanges200Response.js +11 -11
  84. package/dist/model/HandleNotefileChangesPending200Response.js +16 -16
  85. package/dist/model/HandleNotefileDeleteRequest.js +2 -2
  86. package/dist/model/Http.js +44 -44
  87. package/dist/model/Location.js +39 -39
  88. package/dist/model/Login200Response.js +2 -2
  89. package/dist/model/LoginRequest.js +13 -13
  90. package/dist/model/Monitor.js +136 -136
  91. package/dist/model/MonitorAlertRoutesInner.js +13 -13
  92. package/dist/model/Mqtt.js +92 -92
  93. package/dist/model/Note.js +2 -2
  94. package/dist/model/NotefileSchema.js +2 -2
  95. package/dist/model/NotehubRoute.js +31 -31
  96. package/dist/model/NotehubRouteSchema.js +81 -81
  97. package/dist/model/OAuth2Error.js +166 -0
  98. package/dist/model/OAuth2TokenResponse.js +154 -0
  99. package/dist/model/PersonalAccessToken.js +38 -38
  100. package/dist/model/PersonalAccessTokenCreatedBy.js +14 -14
  101. package/dist/model/PersonalAccessTokenInfo.js +14 -14
  102. package/dist/model/PersonalAccessTokenSecret.js +15 -15
  103. package/dist/model/PostProvisionProjectDeviceRequest.js +15 -15
  104. package/dist/model/Product.js +30 -30
  105. package/dist/model/Project.js +36 -36
  106. package/dist/model/ProjectMember.js +20 -20
  107. package/dist/model/Proxy.js +22 -22
  108. package/dist/model/PutDeviceFleetsRequest.js +2 -2
  109. package/dist/model/Radresponder.js +29 -29
  110. package/dist/model/Repository.js +23 -23
  111. package/dist/model/Role.js +1 -1
  112. package/dist/model/RouteLog.js +29 -29
  113. package/dist/model/SatellitePlan.js +166 -0
  114. package/dist/model/SchemaProperty.js +35 -37
  115. package/dist/model/SimUsage.js +20 -51
  116. package/dist/model/Slack.js +72 -72
  117. package/dist/model/SlackBearerNotification.js +15 -15
  118. package/dist/model/{SnowflakeTransform.js → SlackTransform.js} +20 -20
  119. package/dist/model/SlackWebHookNotification.js +15 -15
  120. package/dist/model/Snowflake.js +58 -58
  121. package/dist/model/Thingworx.js +37 -37
  122. package/dist/model/TowerLocation.js +59 -59
  123. package/dist/model/Twilio.js +47 -47
  124. package/dist/model/UpdateFleetRequest.js +15 -15
  125. package/dist/model/UploadMetadata.js +69 -69
  126. package/dist/model/{AnalyticsEventsData.js → UsageData.js} +42 -36
  127. package/dist/model/{QuestionDataResponseMap.js → UsageEventsData.js} +52 -51
  128. package/dist/model/{AnalyticsEventsResponse.js → UsageEventsResponse.js} +26 -26
  129. package/dist/model/{AnalyticsRouteLogsData.js → UsageRouteLogsData.js} +47 -33
  130. package/dist/model/{AnalyticsSessionsResponse.js → UsageRouteLogsResponse.js} +26 -26
  131. package/dist/model/{AnalyticsSessionsData.js → UsageSessionsData.js} +37 -33
  132. package/dist/model/{AnalyticsRouteLogsResponse.js → UsageSessionsResponse.js} +26 -26
  133. package/dist/model/UserDbRoute.js +27 -27
  134. package/dist/model/UserDfuStateMachine.js +15 -15
  135. package/dist/model/UserDfuStateMachineStatus.js +10 -10
  136. package/dist/model/UserFirmwareInfo.js +2 -2
  137. package/dist/model/WebhookSettings.js +2 -2
  138. package/package.json +1 -1
  139. package/dist/model/DataSet.js +0 -164
  140. package/dist/model/QuestionDataResponseLineChart.js +0 -204
@@ -15,7 +15,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
15
15
  * Notehub API
16
16
  * The OpenAPI definition for the Notehub.io API.
17
17
  *
18
- * The version of the OpenAPI document: 1.2.0
18
+ * The version of the OpenAPI document: 1.2.1
19
19
  * Contact: engineering@blues.io
20
20
  *
21
21
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The Contact model module.
28
28
  * @module model/Contact
29
- * @version 1.0.37-beta.3
29
+ * @version 1.0.37-beta.30
30
30
  */
31
31
  var Contact = /*#__PURE__*/function () {
32
32
  /**
@@ -59,18 +59,18 @@ var Contact = /*#__PURE__*/function () {
59
59
  value: function constructFromObject(data, obj) {
60
60
  if (data) {
61
61
  obj = obj || new Contact();
62
- if (data.hasOwnProperty('name')) {
63
- obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
64
- }
65
62
  if (data.hasOwnProperty('email')) {
66
63
  obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String');
67
64
  }
68
- if (data.hasOwnProperty('role')) {
69
- obj['role'] = _ApiClient["default"].convertToType(data['role'], 'String');
65
+ if (data.hasOwnProperty('name')) {
66
+ obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
70
67
  }
71
68
  if (data.hasOwnProperty('organization')) {
72
69
  obj['organization'] = _ApiClient["default"].convertToType(data['organization'], 'String');
73
70
  }
71
+ if (data.hasOwnProperty('role')) {
72
+ obj['role'] = _ApiClient["default"].convertToType(data['role'], 'String');
73
+ }
74
74
  } else if (data === null) {
75
75
  return null;
76
76
  }
@@ -85,43 +85,43 @@ var Contact = /*#__PURE__*/function () {
85
85
  }, {
86
86
  key: "validateJSON",
87
87
  value: function validateJSON(data) {
88
- // ensure the json data is a string
89
- if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
90
- throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
91
- }
92
88
  // ensure the json data is a string
93
89
  if (data['email'] && !(typeof data['email'] === 'string' || data['email'] instanceof String)) {
94
90
  throw new Error("Expected the field `email` to be a primitive type in the JSON string but got " + data['email']);
95
91
  }
96
92
  // ensure the json data is a string
97
- if (data['role'] && !(typeof data['role'] === 'string' || data['role'] instanceof String)) {
98
- throw new Error("Expected the field `role` to be a primitive type in the JSON string but got " + data['role']);
93
+ if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
94
+ throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
99
95
  }
100
96
  // ensure the json data is a string
101
97
  if (data['organization'] && !(typeof data['organization'] === 'string' || data['organization'] instanceof String)) {
102
98
  throw new Error("Expected the field `organization` to be a primitive type in the JSON string but got " + data['organization']);
103
99
  }
100
+ // ensure the json data is a string
101
+ if (data['role'] && !(typeof data['role'] === 'string' || data['role'] instanceof String)) {
102
+ throw new Error("Expected the field `role` to be a primitive type in the JSON string but got " + data['role']);
103
+ }
104
104
  return true;
105
105
  }
106
106
  }]);
107
107
  }();
108
- /**
109
- * @member {String} name
110
- */
111
- Contact.prototype['name'] = undefined;
112
-
113
108
  /**
114
109
  * @member {String} email
115
110
  */
116
111
  Contact.prototype['email'] = undefined;
117
112
 
118
113
  /**
119
- * @member {String} role
114
+ * @member {String} name
120
115
  */
121
- Contact.prototype['role'] = undefined;
116
+ Contact.prototype['name'] = undefined;
122
117
 
123
118
  /**
124
119
  * @member {String} organization
125
120
  */
126
121
  Contact.prototype['organization'] = undefined;
122
+
123
+ /**
124
+ * @member {String} role
125
+ */
126
+ Contact.prototype['role'] = undefined;
127
127
  var _default = exports["default"] = Contact;
@@ -15,7 +15,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
15
15
  * Notehub API
16
16
  * The OpenAPI definition for the Notehub.io API.
17
17
  *
18
- * The version of the OpenAPI document: 1.2.0
18
+ * The version of the OpenAPI document: 1.2.1
19
19
  * Contact: engineering@blues.io
20
20
  *
21
21
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The CreateFleetRequest model module.
28
28
  * @module model/CreateFleetRequest
29
- * @version 1.0.37-beta.3
29
+ * @version 1.0.37-beta.30
30
30
  */
31
31
  var CreateFleetRequest = /*#__PURE__*/function () {
32
32
  /**