@blues-inc/notehub-js 6.5.0-beta.14 → 6.5.0-beta.16

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 (187) hide show
  1. package/README.md +1 -13
  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/DeviceApi.js +1 -1
  7. package/dist/api/EventApi.js +1 -1
  8. package/dist/api/ExternalDevicesApi.js +1 -1
  9. package/dist/api/JobsApi.js +1 -1
  10. package/dist/api/MonitorApi.js +1 -1
  11. package/dist/api/OrganizationApi.js +1 -1
  12. package/dist/api/ProjectApi.js +1 -1
  13. package/dist/api/RouteApi.js +1 -1
  14. package/dist/api/UsageApi.js +1 -1
  15. package/dist/api/WebhookApi.js +1 -1
  16. package/dist/index.js +0 -35
  17. package/dist/model/AWSRoleConfig.js +1 -1
  18. package/dist/model/AddDeviceToFleetsRequest.js +1 -1
  19. package/dist/model/Alert.js +4 -4
  20. package/dist/model/AlertDataInner.js +11 -2
  21. package/dist/model/AlertNotificationsInner.js +1 -1
  22. package/dist/model/AwsRoute.js +1 -1
  23. package/dist/model/AzureRoute.js +1 -1
  24. package/dist/model/BatchJobRequests.js +1 -1
  25. package/dist/model/BillingAccount.js +1 -1
  26. package/dist/model/BlynkRoute.js +1 -1
  27. package/dist/model/Body.js +1 -1
  28. package/dist/model/CancelJobRun200Response.js +1 -1
  29. package/dist/model/CellularPlan.js +24 -5
  30. package/dist/model/CloneProjectRequest.js +1 -1
  31. package/dist/model/Contact.js +1 -1
  32. package/dist/model/CreateFleetRequest.js +1 -1
  33. package/dist/model/CreateJob201Response.js +1 -1
  34. package/dist/model/CreateMonitor.js +6 -10
  35. package/dist/model/CreateProductRequest.js +1 -1
  36. package/dist/model/CreateProjectRequest.js +1 -1
  37. package/dist/model/CreateProjectSecretRequest.js +1 -1
  38. package/dist/model/CreateUpdateRepository.js +1 -1
  39. package/dist/model/CreatedRepository.js +1 -1
  40. package/dist/model/CurrentFirmware.js +1 -1
  41. package/dist/model/DFUEnv.js +1 -1
  42. package/dist/model/DFUState.js +21 -3
  43. package/dist/model/DataField.js +1 -1
  44. package/dist/model/DataSet.js +1 -15
  45. package/dist/model/DataSetField.js +1 -1
  46. package/dist/model/DataUsage.js +1 -1
  47. package/dist/model/DatacakeRoute.js +1 -1
  48. package/dist/model/DeleteDeviceFromFleetsRequest.js +1 -1
  49. package/dist/model/DeleteJob200Response.js +1 -1
  50. package/dist/model/DeleteNotefilesRequest.js +1 -1
  51. package/dist/model/Device.js +1 -1
  52. package/dist/model/DeviceDfuHistory.js +1 -1
  53. package/dist/model/DeviceDfuHistoryCurrent.js +1 -1
  54. package/dist/model/DeviceDfuHistoryPage.js +1 -1
  55. package/dist/model/DeviceDfuStateMachine.js +11 -2
  56. package/dist/model/DeviceDfuStateMachineNode.js +11 -2
  57. package/dist/model/DeviceDfuStatus.js +1 -1
  58. package/dist/model/DeviceDfuStatusPage.js +1 -1
  59. package/dist/model/DeviceSession.js +1 -1
  60. package/dist/model/DeviceTowerInfo.js +1 -1
  61. package/dist/model/DeviceUsage.js +1 -1
  62. package/dist/model/DfuActionRequest.js +1 -1
  63. package/dist/model/EmailNotification.js +1 -1
  64. package/dist/model/EnvTreeJsonNode.js +1 -1
  65. package/dist/model/EnvVar.js +1 -1
  66. package/dist/model/EnvironmentVariables.js +1 -1
  67. package/dist/model/Error.js +1 -1
  68. package/dist/model/Event.js +1 -1
  69. package/dist/model/Filter.js +1 -1
  70. package/dist/model/Firmware.js +1 -1
  71. package/dist/model/FirmwareInfo.js +11 -2
  72. package/dist/model/Fleet.js +12 -3
  73. package/dist/model/FleetConnectivityAssurance.js +1 -1
  74. package/dist/model/GetAlerts200Response.js +1 -1
  75. package/dist/model/GetBillingAccount200Response.js +1 -1
  76. package/dist/model/GetBillingAccount200ResponsePlan.js +1 -1
  77. package/dist/model/GetBillingAccountBalanceHistory200Response.js +1 -1
  78. package/dist/model/GetBillingAccountBalanceHistory200ResponseDataInner.js +1 -1
  79. package/dist/model/GetBillingAccounts200Response.js +1 -1
  80. package/dist/model/GetDataUsage200Response.js +1 -1
  81. package/dist/model/GetDataUsage200ResponseDataInner.js +1 -1
  82. package/dist/model/GetDbNote200Response.js +1 -1
  83. package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +1 -1
  84. package/dist/model/GetDeviceFleets200Response.js +1 -1
  85. package/dist/model/GetDeviceHealthLog200Response.js +1 -1
  86. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +1 -1
  87. package/dist/model/GetDeviceJourney200Response.js +1 -1
  88. package/dist/model/GetDeviceJourney200ResponseJourney.js +1 -1
  89. package/dist/model/GetDeviceJourneys200Response.js +1 -1
  90. package/dist/model/GetDeviceJourneys200ResponseJourneysInner.js +1 -1
  91. package/dist/model/GetDeviceLatestEvents200Response.js +1 -1
  92. package/dist/model/GetDevicePlans200Response.js +1 -1
  93. package/dist/model/GetDevicePublicKey200Response.js +1 -1
  94. package/dist/model/GetDevicePublicKeys200Response.js +1 -1
  95. package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +1 -1
  96. package/dist/model/GetDeviceSessions200Response.js +1 -1
  97. package/dist/model/GetDevices200Response.js +1 -1
  98. package/dist/model/GetEvents200Response.js +1 -1
  99. package/dist/model/GetEventsByCursor200Response.js +1 -1
  100. package/dist/model/GetJobRuns200Response.js +1 -1
  101. package/dist/model/GetJobs200Response.js +1 -1
  102. package/dist/model/GetNotefile200Response.js +1 -1
  103. package/dist/model/GetOrganizations200Response.js +1 -1
  104. package/dist/model/GetProducts200Response.js +1 -1
  105. package/dist/model/GetProjectMembers200Response.js +1 -1
  106. package/dist/model/GetProjectSecretsResponse.js +1 -1
  107. package/dist/model/GetProjects200Response.js +1 -1
  108. package/dist/model/GetRouteLogsUsage200Response.js +1 -1
  109. package/dist/model/GetSessionsUsage200Response.js +1 -1
  110. package/dist/model/GetWebhooks200Response.js +1 -1
  111. package/dist/model/GoogleRoute.js +1 -1
  112. package/dist/model/HttpRoute.js +1 -1
  113. package/dist/model/Job.js +1 -1
  114. package/dist/model/JobDefinition.js +1 -1
  115. package/dist/model/JobDefinitionReportOptions.js +1 -1
  116. package/dist/model/JobDefinitionSelect.js +1 -1
  117. package/dist/model/JobDetail.js +1 -1
  118. package/dist/model/JobDetailAllOf.js +1 -1
  119. package/dist/model/JobRun.js +1 -1
  120. package/dist/model/Location.js +1 -1
  121. package/dist/model/Login200Response.js +1 -1
  122. package/dist/model/LoginRequest.js +1 -1
  123. package/dist/model/Monitor.js +4 -8
  124. package/dist/model/MonitorAlertRoutesInner.js +1 -1
  125. package/dist/model/MqttRoute.js +1 -1
  126. package/dist/model/Note.js +1 -1
  127. package/dist/model/NoteInput.js +1 -1
  128. package/dist/model/Notefile.js +1 -1
  129. package/dist/model/NotefileSchema.js +1 -1
  130. package/dist/model/NotehubRoute.js +11 -1
  131. package/dist/model/NotehubRouteSummary.js +14 -7
  132. package/dist/model/OAuth2Error.js +1 -1
  133. package/dist/model/OAuth2TokenResponse.js +1 -1
  134. package/dist/model/Organization.js +1 -1
  135. package/dist/model/PersonalAccessToken.js +1 -1
  136. package/dist/model/PersonalAccessTokenCreatedBy.js +1 -1
  137. package/dist/model/PersonalAccessTokenInfo.js +1 -1
  138. package/dist/model/PersonalAccessTokenSecret.js +1 -1
  139. package/dist/model/Product.js +1 -1
  140. package/dist/model/Project.js +12 -2
  141. package/dist/model/ProjectMember.js +1 -1
  142. package/dist/model/ProjectSecret.js +22 -4
  143. package/dist/model/ProvisionDeviceRequest.js +1 -1
  144. package/dist/model/ProxyRoute.js +1 -1
  145. package/dist/model/QubitroRoute.js +1 -1
  146. package/dist/model/RadRoute.js +1 -1
  147. package/dist/model/Repository.js +1 -15
  148. package/dist/model/RepositoryListResponse.js +1 -1
  149. package/dist/model/RepositoryTokenRequest.js +1 -1
  150. package/dist/model/RepositoryTokenResponse.js +1 -1
  151. package/dist/model/Role.js +0 -5
  152. package/dist/model/RouteLog.js +1 -1
  153. package/dist/model/RouteTransformSettings.js +1 -1
  154. package/dist/model/RunJob200Response.js +1 -1
  155. package/dist/model/S3ArchiveRoute.js +1 -1
  156. package/dist/model/SatelliteDataUsage.js +1 -1
  157. package/dist/model/SatellitePlan.js +1 -1
  158. package/dist/model/SchemaProperty.js +1 -1
  159. package/dist/model/SignalDevice200Response.js +1 -1
  160. package/dist/model/SimUsage.js +11 -2
  161. package/dist/model/SlackBearerNotification.js +1 -1
  162. package/dist/model/SlackRoute.js +1 -1
  163. package/dist/model/SlackWebHookNotification.js +1 -1
  164. package/dist/model/SnowflakeRoute.js +1 -1
  165. package/dist/model/SnowpipeStreamingRoute.js +1 -1
  166. package/dist/model/ThingworxRoute.js +1 -1
  167. package/dist/model/TowerLocation.js +1 -1
  168. package/dist/model/TwilioRoute.js +1 -1
  169. package/dist/model/UpdateFleetRequest.js +1 -1
  170. package/dist/model/UpdateHostFirmwareRequest.js +1 -1
  171. package/dist/model/UpdateProjectSecretRequest.js +1 -1
  172. package/dist/model/UploadMetadata.js +1 -1
  173. package/dist/model/UsageData.js +1 -1
  174. package/dist/model/UsageEventsData.js +1 -1
  175. package/dist/model/UsageEventsResponse.js +1 -1
  176. package/dist/model/UsageRouteLogsData.js +1 -1
  177. package/dist/model/UsageSessionsData.js +1 -1
  178. package/dist/model/UserDfuStateMachine.js +1 -1
  179. package/dist/model/UserDfuStateMachineStatus.js +1 -1
  180. package/dist/model/UserFirmwareInfo.js +1 -1
  181. package/dist/model/WebhookSettings.js +1 -1
  182. package/package.json +1 -1
  183. package/dist/api/DescriptionApi.js +0 -384
  184. package/dist/model/ArchiveStats.js +0 -125
  185. package/dist/model/DatasetReloadProgress.js +0 -116
  186. package/dist/model/DescriptionRecord.js +0 -233
  187. package/dist/model/DescriptionRecordList.js +0 -131
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The UsageData model module.
31
31
  * @module model/UsageData
32
- * @version 6.5.0-beta.14
32
+ * @version 6.5.0-beta.16
33
33
  */
34
34
  var UsageData = /*#__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 UsageEventsData model module.
31
31
  * @module model/UsageEventsData
32
- * @version 6.5.0-beta.14
32
+ * @version 6.5.0-beta.16
33
33
  */
34
34
  var UsageEventsData = /*#__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
  * The UsageEventsResponse model module.
32
32
  * @module model/UsageEventsResponse
33
- * @version 6.5.0-beta.14
33
+ * @version 6.5.0-beta.16
34
34
  */
35
35
  var UsageEventsResponse = /*#__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
  * The UsageRouteLogsData model module.
31
31
  * @module model/UsageRouteLogsData
32
- * @version 6.5.0-beta.14
32
+ * @version 6.5.0-beta.16
33
33
  */
34
34
  var UsageRouteLogsData = /*#__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 UsageSessionsData model module.
31
31
  * @module model/UsageSessionsData
32
- * @version 6.5.0-beta.14
32
+ * @version 6.5.0-beta.16
33
33
  */
34
34
  var UsageSessionsData = /*#__PURE__*/function () {
35
35
  /**
@@ -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 6.5.0-beta.14
31
+ * @version 6.5.0-beta.16
32
32
  */
33
33
  var UserDfuStateMachine = /*#__PURE__*/function () {
34
34
  /**
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The UserDfuStateMachineStatus model module.
28
28
  * @module model/UserDfuStateMachineStatus
29
- * @version 6.5.0-beta.14
29
+ * @version 6.5.0-beta.16
30
30
  */
31
31
  var UserDfuStateMachineStatus = /*#__PURE__*/function () {
32
32
  /**
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
28
28
  /**
29
29
  * The UserFirmwareInfo model module.
30
30
  * @module model/UserFirmwareInfo
31
- * @version 6.5.0-beta.14
31
+ * @version 6.5.0-beta.16
32
32
  */
33
33
  var UserFirmwareInfo = /*#__PURE__*/function () {
34
34
  /**
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The WebhookSettings model module.
28
28
  * @module model/WebhookSettings
29
- * @version 6.5.0-beta.14
29
+ * @version 6.5.0-beta.16
30
30
  */
31
31
  var WebhookSettings = /*#__PURE__*/function () {
32
32
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blues-inc/notehub-js",
3
- "version": "6.5.0-beta.14",
3
+ "version": "6.5.0-beta.16",
4
4
  "description": "The OpenAPI definition for the Notehub.io API. ",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -1,384 +0,0 @@
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.5.0-beta.14
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
- }();
@@ -1,125 +0,0 @@
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
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
- 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); }
10
- function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
11
- 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); } }
12
- function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
13
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
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
- * Notehub API
16
- * The OpenAPI definition for the Notehub.io API.
17
- *
18
- * The version of the OpenAPI document: 1.2.0
19
- * Contact: engineering@blues.io
20
- *
21
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
22
- * https://openapi-generator.tech
23
- * Do not edit the class manually.
24
- *
25
- */
26
- /**
27
- * The ArchiveStats model module.
28
- * @module model/ArchiveStats
29
- * @version 6.5.0-beta.14
30
- */
31
- var ArchiveStats = /*#__PURE__*/function () {
32
- /**
33
- * Constructs a new <code>ArchiveStats</code>.
34
- * Statistics about a repository&#39;s data archive.
35
- * @alias module:model/ArchiveStats
36
- */
37
- function ArchiveStats() {
38
- _classCallCheck(this, ArchiveStats);
39
- ArchiveStats.initialize(this);
40
- }
41
-
42
- /**
43
- * Initializes the fields of this object.
44
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
45
- * Only for internal use.
46
- */
47
- return _createClass(ArchiveStats, null, [{
48
- key: "initialize",
49
- value: function initialize(obj) {}
50
-
51
- /**
52
- * Constructs a <code>ArchiveStats</code> from a plain JavaScript object, optionally creating a new instance.
53
- * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
54
- * @param {Object} data The plain JavaScript object bearing properties of interest.
55
- * @param {module:model/ArchiveStats} obj Optional instance to populate.
56
- * @return {module:model/ArchiveStats} The populated <code>ArchiveStats</code> instance.
57
- */
58
- }, {
59
- key: "constructFromObject",
60
- value: function constructFromObject(data, obj) {
61
- if (data) {
62
- obj = obj || new ArchiveStats();
63
- if (data.hasOwnProperty("begin")) {
64
- obj["begin"] = _ApiClient["default"].convertToType(data["begin"], "Date");
65
- }
66
- if (data.hasOwnProperty("end")) {
67
- obj["end"] = _ApiClient["default"].convertToType(data["end"], "Date");
68
- }
69
- if (data.hasOwnProperty("file_count")) {
70
- obj["file_count"] = _ApiClient["default"].convertToType(data["file_count"], "Number");
71
- }
72
- if (data.hasOwnProperty("record_count")) {
73
- obj["record_count"] = _ApiClient["default"].convertToType(data["record_count"], "Number");
74
- }
75
- if (data.hasOwnProperty("total_size_bytes")) {
76
- obj["total_size_bytes"] = _ApiClient["default"].convertToType(data["total_size_bytes"], "Number");
77
- }
78
- } else if (data === null) {
79
- return null;
80
- }
81
- return obj;
82
- }
83
-
84
- /**
85
- * Validates the JSON data with respect to <code>ArchiveStats</code>.
86
- * @param {Object} data The plain JavaScript object bearing properties of interest.
87
- * @return {boolean} to indicate whether the JSON data is valid with respect to <code>ArchiveStats</code>.
88
- */
89
- }, {
90
- key: "validateJSON",
91
- value: function validateJSON(data) {
92
- return true;
93
- }
94
- }]);
95
- }();
96
- /**
97
- * Timestamp of the earliest archived record.
98
- * @member {Date} begin
99
- */
100
- ArchiveStats.prototype["begin"] = undefined;
101
-
102
- /**
103
- * Timestamp of the latest archived record.
104
- * @member {Date} end
105
- */
106
- ArchiveStats.prototype["end"] = undefined;
107
-
108
- /**
109
- * Number of archive files.
110
- * @member {Number} file_count
111
- */
112
- ArchiveStats.prototype["file_count"] = undefined;
113
-
114
- /**
115
- * Total number of records across all archive files. Null when the count cannot be determined because one or more archive files predate the record-count filename format.
116
- * @member {Number} record_count
117
- */
118
- ArchiveStats.prototype["record_count"] = undefined;
119
-
120
- /**
121
- * Total size of all archive files, in bytes.
122
- * @member {Number} total_size_bytes
123
- */
124
- ArchiveStats.prototype["total_size_bytes"] = undefined;
125
- var _default = exports["default"] = ArchiveStats;