@blues-inc/notehub-js 6.4.0-beta.74 → 6.4.0-beta.76

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 (184) hide show
  1. package/README.md +11 -1
  2. package/dist/ApiClient.js +2 -2
  3. package/dist/api/AlertApi.js +1 -1
  4. package/dist/api/AuthorizationApi.js +1 -1
  5. package/dist/api/BillingAccountApi.js +1 -1
  6. package/dist/api/DescriptionApi.js +384 -0
  7. package/dist/api/DeviceApi.js +1 -1
  8. package/dist/api/EventApi.js +1 -1
  9. package/dist/api/ExternalDevicesApi.js +1 -1
  10. package/dist/api/JobsApi.js +1 -1
  11. package/dist/api/MonitorApi.js +1 -1
  12. package/dist/api/OrganizationApi.js +1 -1
  13. package/dist/api/ProjectApi.js +1 -1
  14. package/dist/api/RouteApi.js +1 -1
  15. package/dist/api/UsageApi.js +1 -1
  16. package/dist/api/WebhookApi.js +1 -1
  17. package/dist/index.js +21 -0
  18. package/dist/model/AWSRoleConfig.js +1 -1
  19. package/dist/model/AddDeviceToFleetsRequest.js +1 -1
  20. package/dist/model/Alert.js +1 -1
  21. package/dist/model/AlertDataInner.js +1 -1
  22. package/dist/model/AlertNotificationsInner.js +1 -1
  23. package/dist/model/AwsRoute.js +1 -1
  24. package/dist/model/AzureRoute.js +1 -1
  25. package/dist/model/BatchJobRequests.js +1 -1
  26. package/dist/model/BillingAccount.js +1 -1
  27. package/dist/model/BlynkRoute.js +1 -1
  28. package/dist/model/Body.js +1 -1
  29. package/dist/model/CancelJobRun200Response.js +1 -1
  30. package/dist/model/CellularPlan.js +1 -1
  31. package/dist/model/CloneProjectRequest.js +1 -1
  32. package/dist/model/Contact.js +1 -1
  33. package/dist/model/CreateFleetRequest.js +1 -1
  34. package/dist/model/CreateJob201Response.js +1 -1
  35. package/dist/model/CreateMonitor.js +1 -1
  36. package/dist/model/CreateProductRequest.js +1 -1
  37. package/dist/model/CreateProjectRequest.js +1 -1
  38. package/dist/model/CreateProjectSecretRequest.js +1 -1
  39. package/dist/model/CreateUpdateRepository.js +1 -1
  40. package/dist/model/CreatedRepository.js +1 -1
  41. package/dist/model/CurrentFirmware.js +1 -1
  42. package/dist/model/DFUEnv.js +1 -1
  43. package/dist/model/DFUState.js +1 -1
  44. package/dist/model/DataField.js +1 -1
  45. package/dist/model/DataSet.js +1 -19
  46. package/dist/model/DataSetField.js +1 -1
  47. package/dist/model/DataUsage.js +1 -1
  48. package/dist/model/DatacakeRoute.js +1 -1
  49. package/dist/model/DeleteDeviceFromFleetsRequest.js +1 -1
  50. package/dist/model/DeleteJob200Response.js +1 -1
  51. package/dist/model/DeleteNotefilesRequest.js +1 -1
  52. package/dist/model/DescriptionRecord.js +233 -0
  53. package/dist/model/DescriptionRecordList.js +131 -0
  54. package/dist/model/Device.js +1 -1
  55. package/dist/model/DeviceDfuHistory.js +1 -1
  56. package/dist/model/DeviceDfuHistoryCurrent.js +1 -1
  57. package/dist/model/DeviceDfuHistoryPage.js +1 -1
  58. package/dist/model/DeviceDfuStateMachine.js +1 -1
  59. package/dist/model/DeviceDfuStateMachineNode.js +1 -1
  60. package/dist/model/DeviceDfuStatus.js +1 -1
  61. package/dist/model/DeviceDfuStatusPage.js +1 -1
  62. package/dist/model/DeviceSession.js +1 -1
  63. package/dist/model/DeviceTowerInfo.js +1 -1
  64. package/dist/model/DeviceUsage.js +1 -1
  65. package/dist/model/DfuActionRequest.js +1 -1
  66. package/dist/model/EmailNotification.js +1 -1
  67. package/dist/model/EnvTreeJsonNode.js +1 -1
  68. package/dist/model/EnvVar.js +1 -1
  69. package/dist/model/EnvironmentVariables.js +1 -1
  70. package/dist/model/Error.js +1 -1
  71. package/dist/model/Event.js +1 -1
  72. package/dist/model/Filter.js +1 -1
  73. package/dist/model/Firmware.js +1 -1
  74. package/dist/model/FirmwareInfo.js +1 -1
  75. package/dist/model/Fleet.js +1 -1
  76. package/dist/model/FleetConnectivityAssurance.js +1 -1
  77. package/dist/model/GetAlerts200Response.js +1 -1
  78. package/dist/model/GetBillingAccount200Response.js +1 -1
  79. package/dist/model/GetBillingAccount200ResponsePlan.js +1 -1
  80. package/dist/model/GetBillingAccountBalanceHistory200Response.js +1 -1
  81. package/dist/model/GetBillingAccountBalanceHistory200ResponseDataInner.js +1 -1
  82. package/dist/model/GetBillingAccounts200Response.js +1 -1
  83. package/dist/model/GetDataUsage200Response.js +1 -1
  84. package/dist/model/GetDataUsage200ResponseDataInner.js +1 -1
  85. package/dist/model/GetDbNote200Response.js +1 -1
  86. package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +1 -1
  87. package/dist/model/GetDeviceFleets200Response.js +1 -1
  88. package/dist/model/GetDeviceHealthLog200Response.js +1 -1
  89. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +1 -1
  90. package/dist/model/GetDeviceJourney200Response.js +1 -1
  91. package/dist/model/GetDeviceJourney200ResponseJourney.js +1 -1
  92. package/dist/model/GetDeviceJourneys200Response.js +1 -1
  93. package/dist/model/GetDeviceJourneys200ResponseJourneysInner.js +1 -1
  94. package/dist/model/GetDeviceLatestEvents200Response.js +1 -1
  95. package/dist/model/GetDevicePlans200Response.js +1 -1
  96. package/dist/model/GetDevicePublicKey200Response.js +1 -1
  97. package/dist/model/GetDevicePublicKeys200Response.js +1 -1
  98. package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +1 -1
  99. package/dist/model/GetDeviceSessions200Response.js +1 -1
  100. package/dist/model/GetDevices200Response.js +1 -1
  101. package/dist/model/GetEvents200Response.js +1 -1
  102. package/dist/model/GetEventsByCursor200Response.js +1 -1
  103. package/dist/model/GetJobRuns200Response.js +1 -1
  104. package/dist/model/GetJobs200Response.js +1 -1
  105. package/dist/model/GetNotefile200Response.js +1 -1
  106. package/dist/model/GetOrganizations200Response.js +1 -1
  107. package/dist/model/GetProducts200Response.js +1 -1
  108. package/dist/model/GetProjectMembers200Response.js +1 -1
  109. package/dist/model/GetProjectSecretsResponse.js +1 -1
  110. package/dist/model/GetProjects200Response.js +1 -1
  111. package/dist/model/GetRouteLogsUsage200Response.js +1 -1
  112. package/dist/model/GetSessionsUsage200Response.js +1 -1
  113. package/dist/model/GetWebhooks200Response.js +1 -1
  114. package/dist/model/GoogleRoute.js +1 -1
  115. package/dist/model/HttpRoute.js +1 -1
  116. package/dist/model/Job.js +1 -1
  117. package/dist/model/JobDefinition.js +1 -1
  118. package/dist/model/JobDefinitionReportOptions.js +1 -1
  119. package/dist/model/JobDefinitionSelect.js +1 -1
  120. package/dist/model/JobDetail.js +1 -1
  121. package/dist/model/JobDetailAllOf.js +1 -1
  122. package/dist/model/JobRun.js +1 -1
  123. package/dist/model/Location.js +1 -1
  124. package/dist/model/Login200Response.js +1 -1
  125. package/dist/model/LoginRequest.js +1 -1
  126. package/dist/model/Monitor.js +1 -1
  127. package/dist/model/MonitorAlertRoutesInner.js +1 -1
  128. package/dist/model/MqttRoute.js +1 -1
  129. package/dist/model/Note.js +1 -1
  130. package/dist/model/NoteInput.js +1 -1
  131. package/dist/model/Notefile.js +1 -1
  132. package/dist/model/NotefileSchema.js +1 -1
  133. package/dist/model/NotehubRoute.js +1 -1
  134. package/dist/model/NotehubRouteSummary.js +1 -1
  135. package/dist/model/OAuth2Error.js +1 -1
  136. package/dist/model/OAuth2TokenResponse.js +1 -1
  137. package/dist/model/Organization.js +1 -1
  138. package/dist/model/PersonalAccessToken.js +1 -1
  139. package/dist/model/PersonalAccessTokenCreatedBy.js +1 -1
  140. package/dist/model/PersonalAccessTokenInfo.js +1 -1
  141. package/dist/model/PersonalAccessTokenSecret.js +1 -1
  142. package/dist/model/Product.js +1 -1
  143. package/dist/model/Project.js +1 -1
  144. package/dist/model/ProjectMember.js +1 -1
  145. package/dist/model/ProjectSecret.js +1 -1
  146. package/dist/model/ProvisionDeviceRequest.js +1 -1
  147. package/dist/model/ProxyRoute.js +1 -1
  148. package/dist/model/QubitroRoute.js +1 -1
  149. package/dist/model/RadRoute.js +1 -1
  150. package/dist/model/Repository.js +1 -1
  151. package/dist/model/RepositoryListResponse.js +1 -1
  152. package/dist/model/RepositoryTokenRequest.js +1 -1
  153. package/dist/model/RepositoryTokenResponse.js +1 -1
  154. package/dist/model/RouteLog.js +1 -1
  155. package/dist/model/RouteTransformSettings.js +1 -1
  156. package/dist/model/RunJob200Response.js +1 -1
  157. package/dist/model/S3ArchiveRoute.js +1 -1
  158. package/dist/model/SatelliteDataUsage.js +1 -1
  159. package/dist/model/SatellitePlan.js +1 -1
  160. package/dist/model/SchemaProperty.js +1 -1
  161. package/dist/model/SignalDevice200Response.js +1 -1
  162. package/dist/model/SimUsage.js +1 -1
  163. package/dist/model/SlackBearerNotification.js +1 -1
  164. package/dist/model/SlackRoute.js +1 -1
  165. package/dist/model/SlackWebHookNotification.js +1 -1
  166. package/dist/model/SnowflakeRoute.js +1 -1
  167. package/dist/model/SnowpipeStreamingRoute.js +1 -1
  168. package/dist/model/ThingworxRoute.js +1 -1
  169. package/dist/model/TowerLocation.js +1 -1
  170. package/dist/model/TwilioRoute.js +1 -1
  171. package/dist/model/UpdateFleetRequest.js +1 -1
  172. package/dist/model/UpdateHostFirmwareRequest.js +1 -1
  173. package/dist/model/UpdateProjectSecretRequest.js +1 -1
  174. package/dist/model/UploadMetadata.js +1 -1
  175. package/dist/model/UsageData.js +1 -1
  176. package/dist/model/UsageEventsData.js +1 -1
  177. package/dist/model/UsageEventsResponse.js +1 -1
  178. package/dist/model/UsageRouteLogsData.js +1 -1
  179. package/dist/model/UsageSessionsData.js +1 -1
  180. package/dist/model/UserDfuStateMachine.js +1 -1
  181. package/dist/model/UserDfuStateMachineStatus.js +1 -1
  182. package/dist/model/UserFirmwareInfo.js +1 -1
  183. package/dist/model/WebhookSettings.js +1 -1
  184. package/package.json +1 -1
package/README.md CHANGED
@@ -6,7 +6,7 @@ The OpenAPI definition for the Notehub.io API.
6
6
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
7
7
 
8
8
  - API version: 1.2.0
9
- - Package version: 6.4.0-beta.74
9
+ - Package version: 6.4.0-beta.76
10
10
  - Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
11
11
  For more information, please visit [https://dev.blues.io/support/](https://dev.blues.io/support/)
12
12
 
@@ -138,6 +138,14 @@ All URIs are relative to *https://api.notefile.net*
138
138
  | _NotehubJs.BillingAccountApi_ | [**getBillingAccount**](docs/BillingAccountApi.md#getBillingAccount) | **GET** /v1/billing-accounts/{billingAccountUID} |
139
139
  | _NotehubJs.BillingAccountApi_ | [**getBillingAccountBalanceHistory**](docs/BillingAccountApi.md#getBillingAccountBalanceHistory) | **GET** /v1/billing-accounts/{billingAccountUID}/balance-history |
140
140
  | _NotehubJs.BillingAccountApi_ | [**getBillingAccounts**](docs/BillingAccountApi.md#getBillingAccounts) | **GET** /v1/billing-accounts |
141
+ | _NotehubJs.DescriptionApi_ | [**deleteGlobalDescription**](docs/DescriptionApi.md#deleteGlobalDescription) | **DELETE** /v1/description/{descriptionName} |
142
+ | _NotehubJs.DescriptionApi_ | [**deleteProjectDescription**](docs/DescriptionApi.md#deleteProjectDescription) | **DELETE** /v1/projects/{projectOrProductUID}/description/{descriptionName} |
143
+ | _NotehubJs.DescriptionApi_ | [**getGlobalDescription**](docs/DescriptionApi.md#getGlobalDescription) | **GET** /v1/description/{descriptionName} |
144
+ | _NotehubJs.DescriptionApi_ | [**getProjectDescription**](docs/DescriptionApi.md#getProjectDescription) | **GET** /v1/projects/{projectOrProductUID}/description/{descriptionName} |
145
+ | _NotehubJs.DescriptionApi_ | [**listGlobalDescriptions**](docs/DescriptionApi.md#listGlobalDescriptions) | **GET** /v1/description |
146
+ | _NotehubJs.DescriptionApi_ | [**listProjectDescriptions**](docs/DescriptionApi.md#listProjectDescriptions) | **GET** /v1/projects/{projectOrProductUID}/description |
147
+ | _NotehubJs.DescriptionApi_ | [**setGlobalDescription**](docs/DescriptionApi.md#setGlobalDescription) | **POST** /v1/description/{descriptionName} |
148
+ | _NotehubJs.DescriptionApi_ | [**setProjectDescription**](docs/DescriptionApi.md#setProjectDescription) | **POST** /v1/projects/{projectOrProductUID}/description/{descriptionName} |
141
149
  | _NotehubJs.DeviceApi_ | [**addDbNote**](docs/DeviceApi.md#addDbNote) | **POST** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID} |
142
150
  | _NotehubJs.DeviceApi_ | [**addQiNote**](docs/DeviceApi.md#addQiNote) | **POST** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID} |
143
151
  | _NotehubJs.DeviceApi_ | [**createNotefile**](docs/DeviceApi.md#createNotefile) | **POST** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/notefiles/{notefileID} |
@@ -298,6 +306,8 @@ All URIs are relative to *https://api.notefile.net*
298
306
  - [NotehubJs.DeleteDeviceFromFleetsRequest](docs/DeleteDeviceFromFleetsRequest.md)
299
307
  - [NotehubJs.DeleteJob200Response](docs/DeleteJob200Response.md)
300
308
  - [NotehubJs.DeleteNotefilesRequest](docs/DeleteNotefilesRequest.md)
309
+ - [NotehubJs.DescriptionRecord](docs/DescriptionRecord.md)
310
+ - [NotehubJs.DescriptionRecordList](docs/DescriptionRecordList.md)
301
311
  - [NotehubJs.Device](docs/Device.md)
302
312
  - [NotehubJs.DeviceDfuHistory](docs/DeviceDfuHistory.md)
303
313
  - [NotehubJs.DeviceDfuHistoryCurrent](docs/DeviceDfuHistoryCurrent.md)
package/dist/ApiClient.js CHANGED
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  */
27
27
  /**
28
28
  * @module ApiClient
29
- * @version 6.4.0-beta.74
29
+ * @version 6.4.0-beta.76
30
30
  */
31
31
  /**
32
32
  * Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
@@ -68,7 +68,7 @@ var ApiClient = /*#__PURE__*/function () {
68
68
  */
69
69
  this.defaultHeaders = {};
70
70
  if (typeof window === "undefined") {
71
- this.defaultHeaders["User-Agent"] = "OpenAPI-Generator/6.4.0-beta.74/Javascript";
71
+ this.defaultHeaders["User-Agent"] = "OpenAPI-Generator/6.4.0-beta.76/Javascript";
72
72
  }
73
73
 
74
74
  /**
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
28
28
  /**
29
29
  * Alert service.
30
30
  * @module api/AlertApi
31
- * @version 6.4.0-beta.74
31
+ * @version 6.4.0-beta.76
32
32
  */
33
33
  var AlertApi = exports["default"] = /*#__PURE__*/function () {
34
34
  /**
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * Authorization service.
32
32
  * @module api/AuthorizationApi
33
- * @version 6.4.0-beta.74
33
+ * @version 6.4.0-beta.76
34
34
  */
35
35
  var AuthorizationApi = exports["default"] = /*#__PURE__*/function () {
36
36
  /**
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * BillingAccount service.
32
32
  * @module api/BillingAccountApi
33
- * @version 6.4.0-beta.74
33
+ * @version 6.4.0-beta.76
34
34
  */
35
35
  var BillingAccountApi = exports["default"] = /*#__PURE__*/function () {
36
36
  /**
@@ -0,0 +1,384 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ var _DescriptionRecord = _interopRequireDefault(require("../model/DescriptionRecord"));
9
+ var _DescriptionRecordList = _interopRequireDefault(require("../model/DescriptionRecordList"));
10
+ var _Error = _interopRequireDefault(require("../model/Error"));
11
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
12
+ 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); }
13
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
14
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
15
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
16
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
+ 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); } /**
18
+ * Notehub API
19
+ * The OpenAPI definition for the Notehub.io API.
20
+ *
21
+ * The version of the OpenAPI document: 1.2.0
22
+ * Contact: engineering@blues.io
23
+ *
24
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
25
+ * https://openapi-generator.tech
26
+ * Do not edit the class manually.
27
+ *
28
+ */
29
+ /**
30
+ * Description service.
31
+ * @module api/DescriptionApi
32
+ * @version 6.4.0-beta.76
33
+ */
34
+ var DescriptionApi = exports["default"] = /*#__PURE__*/function () {
35
+ /**
36
+ * Constructs a new DescriptionApi.
37
+ * @alias module:api/DescriptionApi
38
+ * @class
39
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
40
+ * default to {@link module:ApiClient#instance} if unspecified.
41
+ */
42
+ function DescriptionApi(apiClient) {
43
+ _classCallCheck(this, DescriptionApi);
44
+ this.apiClient = apiClient || _ApiClient["default"].instance;
45
+ }
46
+
47
+ /**
48
+ * Delete a global description record by name (Blues staff only).
49
+ * @param {String} descriptionName
50
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
51
+ */
52
+ return _createClass(DescriptionApi, [{
53
+ key: "deleteGlobalDescriptionWithHttpInfo",
54
+ value: function deleteGlobalDescriptionWithHttpInfo(descriptionName) {
55
+ var postBody = null;
56
+ // verify the required parameter 'descriptionName' is set
57
+ if (descriptionName === undefined || descriptionName === null) {
58
+ throw new _Error["default"]("Missing the required parameter 'descriptionName' when calling deleteGlobalDescription");
59
+ }
60
+ var pathParams = {
61
+ descriptionName: descriptionName
62
+ };
63
+ var queryParams = {};
64
+ var headerParams = {};
65
+ var formParams = {};
66
+ var authNames = ["personalAccessToken"];
67
+ var contentTypes = [];
68
+ var accepts = ["application/json"];
69
+ var returnType = null;
70
+ return this.apiClient.callApi("/v1/description/{descriptionName}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
71
+ }
72
+
73
+ /**
74
+ * Delete a global description record by name (Blues staff only).
75
+ * @param {String} descriptionName
76
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
77
+ */
78
+ }, {
79
+ key: "deleteGlobalDescription",
80
+ value: function deleteGlobalDescription(descriptionName) {
81
+ return this.deleteGlobalDescriptionWithHttpInfo(descriptionName).then(function (response_and_data) {
82
+ return response_and_data.data;
83
+ });
84
+ }
85
+
86
+ /**
87
+ * Delete a project description record by name.
88
+ * @param {String} projectOrProductUID
89
+ * @param {String} descriptionName
90
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
91
+ */
92
+ }, {
93
+ key: "deleteProjectDescriptionWithHttpInfo",
94
+ value: function deleteProjectDescriptionWithHttpInfo(projectOrProductUID, descriptionName) {
95
+ var postBody = null;
96
+ // verify the required parameter 'projectOrProductUID' is set
97
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
98
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteProjectDescription");
99
+ }
100
+ // verify the required parameter 'descriptionName' is set
101
+ if (descriptionName === undefined || descriptionName === null) {
102
+ throw new _Error["default"]("Missing the required parameter 'descriptionName' when calling deleteProjectDescription");
103
+ }
104
+ var pathParams = {
105
+ projectOrProductUID: projectOrProductUID,
106
+ descriptionName: descriptionName
107
+ };
108
+ var queryParams = {};
109
+ var headerParams = {};
110
+ var formParams = {};
111
+ var authNames = ["personalAccessToken"];
112
+ var contentTypes = [];
113
+ var accepts = ["application/json"];
114
+ var returnType = null;
115
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/description/{descriptionName}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
116
+ }
117
+
118
+ /**
119
+ * Delete a project description record by name.
120
+ * @param {String} projectOrProductUID
121
+ * @param {String} descriptionName
122
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
123
+ */
124
+ }, {
125
+ key: "deleteProjectDescription",
126
+ value: function deleteProjectDescription(projectOrProductUID, descriptionName) {
127
+ return this.deleteProjectDescriptionWithHttpInfo(projectOrProductUID, descriptionName).then(function (response_and_data) {
128
+ return response_and_data.data;
129
+ });
130
+ }
131
+
132
+ /**
133
+ * Get a global description record. Returns the raw content with its stored Content-Type.
134
+ * @param {String} descriptionName
135
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link File} and HTTP response
136
+ */
137
+ }, {
138
+ key: "getGlobalDescriptionWithHttpInfo",
139
+ value: function getGlobalDescriptionWithHttpInfo(descriptionName) {
140
+ var postBody = null;
141
+ // verify the required parameter 'descriptionName' is set
142
+ if (descriptionName === undefined || descriptionName === null) {
143
+ throw new _Error["default"]("Missing the required parameter 'descriptionName' when calling getGlobalDescription");
144
+ }
145
+ var pathParams = {
146
+ descriptionName: descriptionName
147
+ };
148
+ var queryParams = {};
149
+ var headerParams = {};
150
+ var formParams = {};
151
+ var authNames = ["personalAccessToken"];
152
+ var contentTypes = [];
153
+ var accepts = ["application/octet-stream", "application/json"];
154
+ var returnType = File;
155
+ return this.apiClient.callApi("/v1/description/{descriptionName}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
156
+ }
157
+
158
+ /**
159
+ * Get a global description record. Returns the raw content with its stored Content-Type.
160
+ * @param {String} descriptionName
161
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link File}
162
+ */
163
+ }, {
164
+ key: "getGlobalDescription",
165
+ value: function getGlobalDescription(descriptionName) {
166
+ return this.getGlobalDescriptionWithHttpInfo(descriptionName).then(function (response_and_data) {
167
+ return response_and_data.data;
168
+ });
169
+ }
170
+
171
+ /**
172
+ * Get a project description record. Returns the raw content with its stored Content-Type.
173
+ * @param {String} projectOrProductUID
174
+ * @param {String} descriptionName
175
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link File} and HTTP response
176
+ */
177
+ }, {
178
+ key: "getProjectDescriptionWithHttpInfo",
179
+ value: function getProjectDescriptionWithHttpInfo(projectOrProductUID, descriptionName) {
180
+ var postBody = null;
181
+ // verify the required parameter 'projectOrProductUID' is set
182
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
183
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectDescription");
184
+ }
185
+ // verify the required parameter 'descriptionName' is set
186
+ if (descriptionName === undefined || descriptionName === null) {
187
+ throw new _Error["default"]("Missing the required parameter 'descriptionName' when calling getProjectDescription");
188
+ }
189
+ var pathParams = {
190
+ projectOrProductUID: projectOrProductUID,
191
+ descriptionName: descriptionName
192
+ };
193
+ var queryParams = {};
194
+ var headerParams = {};
195
+ var formParams = {};
196
+ var authNames = ["personalAccessToken"];
197
+ var contentTypes = [];
198
+ var accepts = ["application/octet-stream", "application/json"];
199
+ var returnType = File;
200
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/description/{descriptionName}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
201
+ }
202
+
203
+ /**
204
+ * Get a project description record. Returns the raw content with its stored Content-Type.
205
+ * @param {String} projectOrProductUID
206
+ * @param {String} descriptionName
207
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link File}
208
+ */
209
+ }, {
210
+ key: "getProjectDescription",
211
+ value: function getProjectDescription(projectOrProductUID, descriptionName) {
212
+ return this.getProjectDescriptionWithHttpInfo(projectOrProductUID, descriptionName).then(function (response_and_data) {
213
+ return response_and_data.data;
214
+ });
215
+ }
216
+
217
+ /**
218
+ * List metadata for all global description records.
219
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DescriptionRecordList} and HTTP response
220
+ */
221
+ }, {
222
+ key: "listGlobalDescriptionsWithHttpInfo",
223
+ value: function listGlobalDescriptionsWithHttpInfo() {
224
+ var postBody = null;
225
+ var pathParams = {};
226
+ var queryParams = {};
227
+ var headerParams = {};
228
+ var formParams = {};
229
+ var authNames = ["personalAccessToken"];
230
+ var contentTypes = [];
231
+ var accepts = ["application/json"];
232
+ var returnType = _DescriptionRecordList["default"];
233
+ return this.apiClient.callApi("/v1/description", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
234
+ }
235
+
236
+ /**
237
+ * List metadata for all global description records.
238
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DescriptionRecordList}
239
+ */
240
+ }, {
241
+ key: "listGlobalDescriptions",
242
+ value: function listGlobalDescriptions() {
243
+ return this.listGlobalDescriptionsWithHttpInfo().then(function (response_and_data) {
244
+ return response_and_data.data;
245
+ });
246
+ }
247
+
248
+ /**
249
+ * List metadata for all description records in a project.
250
+ * @param {String} projectOrProductUID
251
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DescriptionRecordList} and HTTP response
252
+ */
253
+ }, {
254
+ key: "listProjectDescriptionsWithHttpInfo",
255
+ value: function listProjectDescriptionsWithHttpInfo(projectOrProductUID) {
256
+ var postBody = null;
257
+ // verify the required parameter 'projectOrProductUID' is set
258
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
259
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling listProjectDescriptions");
260
+ }
261
+ var pathParams = {
262
+ projectOrProductUID: projectOrProductUID
263
+ };
264
+ var queryParams = {};
265
+ var headerParams = {};
266
+ var formParams = {};
267
+ var authNames = ["personalAccessToken"];
268
+ var contentTypes = [];
269
+ var accepts = ["application/json"];
270
+ var returnType = _DescriptionRecordList["default"];
271
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/description", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
272
+ }
273
+
274
+ /**
275
+ * List metadata for all description records in a project.
276
+ * @param {String} projectOrProductUID
277
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DescriptionRecordList}
278
+ */
279
+ }, {
280
+ key: "listProjectDescriptions",
281
+ value: function listProjectDescriptions(projectOrProductUID) {
282
+ return this.listProjectDescriptionsWithHttpInfo(projectOrProductUID).then(function (response_and_data) {
283
+ return response_and_data.data;
284
+ });
285
+ }
286
+
287
+ /**
288
+ * Create or replace a global description record, Blues staff only (up to 10MB). The request Content-Type is stored and returned on GET; when omitted it is detected (JSON or text).
289
+ * @param {String} descriptionName
290
+ * @param {File} body The description content (up to 10MB). The request Content-Type is stored and returned on GET; when omitted it is detected (JSON or text).
291
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DescriptionRecord} and HTTP response
292
+ */
293
+ }, {
294
+ key: "setGlobalDescriptionWithHttpInfo",
295
+ value: function setGlobalDescriptionWithHttpInfo(descriptionName, body) {
296
+ var postBody = body;
297
+ // verify the required parameter 'descriptionName' is set
298
+ if (descriptionName === undefined || descriptionName === null) {
299
+ throw new _Error["default"]("Missing the required parameter 'descriptionName' when calling setGlobalDescription");
300
+ }
301
+ // verify the required parameter 'body' is set
302
+ if (body === undefined || body === null) {
303
+ throw new _Error["default"]("Missing the required parameter 'body' when calling setGlobalDescription");
304
+ }
305
+ var pathParams = {
306
+ descriptionName: descriptionName
307
+ };
308
+ var queryParams = {};
309
+ var headerParams = {};
310
+ var formParams = {};
311
+ var authNames = ["personalAccessToken"];
312
+ var contentTypes = ["application/octet-stream"];
313
+ var accepts = ["application/json"];
314
+ var returnType = _DescriptionRecord["default"];
315
+ return this.apiClient.callApi("/v1/description/{descriptionName}", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
316
+ }
317
+
318
+ /**
319
+ * Create or replace a global description record, Blues staff only (up to 10MB). The request Content-Type is stored and returned on GET; when omitted it is detected (JSON or text).
320
+ * @param {String} descriptionName
321
+ * @param {File} body The description content (up to 10MB). The request Content-Type is stored and returned on GET; when omitted it is detected (JSON or text).
322
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DescriptionRecord}
323
+ */
324
+ }, {
325
+ key: "setGlobalDescription",
326
+ value: function setGlobalDescription(descriptionName, body) {
327
+ return this.setGlobalDescriptionWithHttpInfo(descriptionName, body).then(function (response_and_data) {
328
+ return response_and_data.data;
329
+ });
330
+ }
331
+
332
+ /**
333
+ * Create or replace a project description record (up to 10MB). The request Content-Type is stored and returned on GET; when omitted it is detected (JSON or text).
334
+ * @param {String} projectOrProductUID
335
+ * @param {String} descriptionName
336
+ * @param {File} body The description content (up to 10MB). The request Content-Type is stored and returned on GET; when omitted it is detected (JSON or text).
337
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DescriptionRecord} and HTTP response
338
+ */
339
+ }, {
340
+ key: "setProjectDescriptionWithHttpInfo",
341
+ value: function setProjectDescriptionWithHttpInfo(projectOrProductUID, descriptionName, body) {
342
+ var postBody = body;
343
+ // verify the required parameter 'projectOrProductUID' is set
344
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
345
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling setProjectDescription");
346
+ }
347
+ // verify the required parameter 'descriptionName' is set
348
+ if (descriptionName === undefined || descriptionName === null) {
349
+ throw new _Error["default"]("Missing the required parameter 'descriptionName' when calling setProjectDescription");
350
+ }
351
+ // verify the required parameter 'body' is set
352
+ if (body === undefined || body === null) {
353
+ throw new _Error["default"]("Missing the required parameter 'body' when calling setProjectDescription");
354
+ }
355
+ var pathParams = {
356
+ projectOrProductUID: projectOrProductUID,
357
+ descriptionName: descriptionName
358
+ };
359
+ var queryParams = {};
360
+ var headerParams = {};
361
+ var formParams = {};
362
+ var authNames = ["personalAccessToken"];
363
+ var contentTypes = ["application/octet-stream"];
364
+ var accepts = ["application/json"];
365
+ var returnType = _DescriptionRecord["default"];
366
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/description/{descriptionName}", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
367
+ }
368
+
369
+ /**
370
+ * Create or replace a project description record (up to 10MB). The request Content-Type is stored and returned on GET; when omitted it is detected (JSON or text).
371
+ * @param {String} projectOrProductUID
372
+ * @param {String} descriptionName
373
+ * @param {File} body The description content (up to 10MB). The request Content-Type is stored and returned on GET; when omitted it is detected (JSON or text).
374
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DescriptionRecord}
375
+ */
376
+ }, {
377
+ key: "setProjectDescription",
378
+ value: function setProjectDescription(projectOrProductUID, descriptionName, body) {
379
+ return this.setProjectDescriptionWithHttpInfo(projectOrProductUID, descriptionName, body).then(function (response_and_data) {
380
+ return response_and_data.data;
381
+ });
382
+ }
383
+ }]);
384
+ }();
@@ -48,7 +48,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
48
48
  /**
49
49
  * Device service.
50
50
  * @module api/DeviceApi
51
- * @version 6.4.0-beta.74
51
+ * @version 6.4.0-beta.76
52
52
  */
53
53
  var DeviceApi = exports["default"] = /*#__PURE__*/function () {
54
54
  /**
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * Event service.
32
32
  * @module api/EventApi
33
- * @version 6.4.0-beta.74
33
+ * @version 6.4.0-beta.76
34
34
  */
35
35
  var EventApi = exports["default"] = /*#__PURE__*/function () {
36
36
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * ExternalDevices service.
31
31
  * @module api/ExternalDevicesApi
32
- * @version 6.4.0-beta.74
32
+ * @version 6.4.0-beta.76
33
33
  */
34
34
  var ExternalDevicesApi = exports["default"] = /*#__PURE__*/function () {
35
35
  /**
@@ -36,7 +36,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
36
36
  /**
37
37
  * Jobs service.
38
38
  * @module api/JobsApi
39
- * @version 6.4.0-beta.74
39
+ * @version 6.4.0-beta.76
40
40
  */
41
41
  var JobsApi = exports["default"] = /*#__PURE__*/function () {
42
42
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * Monitor service.
31
31
  * @module api/MonitorApi
32
- * @version 6.4.0-beta.74
32
+ * @version 6.4.0-beta.76
33
33
  */
34
34
  var MonitorApi = exports["default"] = /*#__PURE__*/function () {
35
35
  /**
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * Organization service.
32
32
  * @module api/OrganizationApi
33
- * @version 6.4.0-beta.74
33
+ * @version 6.4.0-beta.76
34
34
  */
35
35
  var OrganizationApi = exports["default"] = /*#__PURE__*/function () {
36
36
  /**
@@ -56,7 +56,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
56
56
  /**
57
57
  * Project service.
58
58
  * @module api/ProjectApi
59
- * @version 6.4.0-beta.74
59
+ * @version 6.4.0-beta.76
60
60
  */
61
61
  var ProjectApi = exports["default"] = /*#__PURE__*/function () {
62
62
  /**
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * Route service.
32
32
  * @module api/RouteApi
33
- * @version 6.4.0-beta.74
33
+ * @version 6.4.0-beta.76
34
34
  */
35
35
  var RouteApi = exports["default"] = /*#__PURE__*/function () {
36
36
  /**
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * Usage service.
33
33
  * @module api/UsageApi
34
- * @version 6.4.0-beta.74
34
+ * @version 6.4.0-beta.76
35
35
  */
36
36
  var UsageApi = exports["default"] = /*#__PURE__*/function () {
37
37
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * Webhook service.
31
31
  * @module api/WebhookApi
32
- * @version 6.4.0-beta.74
32
+ * @version 6.4.0-beta.76
33
33
  */
34
34
  var WebhookApi = exports["default"] = /*#__PURE__*/function () {
35
35
  /**
package/dist/index.js CHANGED
@@ -237,6 +237,24 @@ Object.defineProperty(exports, "DeleteNotefilesRequest", {
237
237
  return _DeleteNotefilesRequest["default"];
238
238
  }
239
239
  });
240
+ Object.defineProperty(exports, "DescriptionApi", {
241
+ enumerable: true,
242
+ get: function get() {
243
+ return _DescriptionApi["default"];
244
+ }
245
+ });
246
+ Object.defineProperty(exports, "DescriptionRecord", {
247
+ enumerable: true,
248
+ get: function get() {
249
+ return _DescriptionRecord["default"];
250
+ }
251
+ });
252
+ Object.defineProperty(exports, "DescriptionRecordList", {
253
+ enumerable: true,
254
+ get: function get() {
255
+ return _DescriptionRecordList["default"];
256
+ }
257
+ });
240
258
  Object.defineProperty(exports, "Device", {
241
259
  enumerable: true,
242
260
  get: function get() {
@@ -1125,6 +1143,8 @@ var _DatacakeRoute = _interopRequireDefault(require("./model/DatacakeRoute"));
1125
1143
  var _DeleteDeviceFromFleetsRequest = _interopRequireDefault(require("./model/DeleteDeviceFromFleetsRequest"));
1126
1144
  var _DeleteJob200Response = _interopRequireDefault(require("./model/DeleteJob200Response"));
1127
1145
  var _DeleteNotefilesRequest = _interopRequireDefault(require("./model/DeleteNotefilesRequest"));
1146
+ var _DescriptionRecord = _interopRequireDefault(require("./model/DescriptionRecord"));
1147
+ var _DescriptionRecordList = _interopRequireDefault(require("./model/DescriptionRecordList"));
1128
1148
  var _Device = _interopRequireDefault(require("./model/Device"));
1129
1149
  var _DeviceDfuHistory = _interopRequireDefault(require("./model/DeviceDfuHistory"));
1130
1150
  var _DeviceDfuHistoryCurrent = _interopRequireDefault(require("./model/DeviceDfuHistoryCurrent"));
@@ -1260,6 +1280,7 @@ var _WebhookSettings = _interopRequireDefault(require("./model/WebhookSettings")
1260
1280
  var _AlertApi = _interopRequireDefault(require("./api/AlertApi"));
1261
1281
  var _AuthorizationApi = _interopRequireDefault(require("./api/AuthorizationApi"));
1262
1282
  var _BillingAccountApi = _interopRequireDefault(require("./api/BillingAccountApi"));
1283
+ var _DescriptionApi = _interopRequireDefault(require("./api/DescriptionApi"));
1263
1284
  var _DeviceApi = _interopRequireDefault(require("./api/DeviceApi"));
1264
1285
  var _EventApi = _interopRequireDefault(require("./api/EventApi"));
1265
1286
  var _ExternalDevicesApi = _interopRequireDefault(require("./api/ExternalDevicesApi"));
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The AWSRoleConfig model module.
31
31
  * @module model/AWSRoleConfig
32
- * @version 6.4.0-beta.74
32
+ * @version 6.4.0-beta.76
33
33
  */
34
34
  var AWSRoleConfig = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The AddDeviceToFleetsRequest model module.
31
31
  * @module model/AddDeviceToFleetsRequest
32
- * @version 6.4.0-beta.74
32
+ * @version 6.4.0-beta.76
33
33
  */
34
34
  var AddDeviceToFleetsRequest = /*#__PURE__*/function () {
35
35
  /**
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The Alert model module.
33
33
  * @module model/Alert
34
- * @version 6.4.0-beta.74
34
+ * @version 6.4.0-beta.76
35
35
  */
36
36
  var Alert = /*#__PURE__*/function () {
37
37
  /**
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The AlertDataInner model module.
28
28
  * @module model/AlertDataInner
29
- * @version 6.4.0-beta.74
29
+ * @version 6.4.0-beta.76
30
30
  */
31
31
  var AlertDataInner = /*#__PURE__*/function () {
32
32
  /**