@blues-inc/notehub-js 1.0.15 → 1.0.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 (86) hide show
  1. package/README.md +3 -3
  2. package/dist/ApiClient.js +2 -2
  3. package/dist/api/AuthorizationApi.js +1 -1
  4. package/dist/api/BillingAccountApi.js +1 -1
  5. package/dist/api/DeviceApi.js +1 -1
  6. package/dist/api/DevicesApi.js +1 -1
  7. package/dist/api/EnvironmentVariablesApi.js +1 -1
  8. package/dist/api/EventApi.js +1 -1
  9. package/dist/api/FilesApi.js +1 -1
  10. package/dist/api/FleetApi.js +1 -1
  11. package/dist/api/NotesApi.js +1 -1
  12. package/dist/api/ProductApi.js +1 -1
  13. package/dist/api/ProjectApi.js +51 -5
  14. package/dist/api/RouteApi.js +1 -1
  15. package/dist/api/RouteLogsApi.js +1 -1
  16. package/dist/index.js +7 -14
  17. package/dist/model/Aws.js +1 -1
  18. package/dist/model/Azure.js +1 -1
  19. package/dist/model/BillingAccount.js +1 -1
  20. package/dist/model/Body.js +1 -1
  21. package/dist/model/CloneProjectRequest.js +139 -0
  22. package/dist/model/Contact.js +1 -1
  23. package/dist/model/CreateFleetRequest.js +1 -1
  24. package/dist/model/CreateProductRequest.js +1 -1
  25. package/dist/model/CreateProjectRequest.js +7 -5
  26. package/dist/model/DFUEnv.js +1 -1
  27. package/dist/model/DFUState.js +1 -1
  28. package/dist/model/DeleteDeviceFleetsRequest.js +1 -1
  29. package/dist/model/Device.js +1 -1
  30. package/dist/model/DeviceSession.js +1 -1
  31. package/dist/model/DeviceTowerInfo.js +1 -1
  32. package/dist/model/DeviceUsage.js +1 -1
  33. package/dist/model/EnvironmentVariables.js +1 -1
  34. package/dist/model/Error.js +1 -1
  35. package/dist/model/Event.js +1 -1
  36. package/dist/model/Fleet.js +1 -1
  37. package/dist/model/GetBillingAccounts200Response.js +1 -1
  38. package/dist/model/GetDeviceEnvironmentVariables200Response.js +1 -1
  39. package/dist/model/GetDeviceHealthLog200Response.js +1 -1
  40. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +1 -1
  41. package/dist/model/GetDeviceLatest200Response.js +1 -1
  42. package/dist/model/GetDevicePublicKey200Response.js +1 -1
  43. package/dist/model/GetDeviceSessions200Response.js +1 -1
  44. package/dist/model/GetProjectDevicePublicKeys200Response.js +1 -1
  45. package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +1 -1
  46. package/dist/model/GetProjectDevices200Response.js +1 -1
  47. package/dist/model/GetProjectEvents200Response.js +1 -1
  48. package/dist/model/GetProjectEventsByCursor200Response.js +1 -1
  49. package/dist/model/GetProjectFleets200Response.js +1 -1
  50. package/dist/model/GetProjectMembers200Response.js +1 -1
  51. package/dist/model/GetProjectProducts200Response.js +1 -1
  52. package/dist/model/GetProjects200Response.js +1 -1
  53. package/dist/model/GetRouteLogsByRoute200ResponseInner.js +1 -1
  54. package/dist/model/Google.js +1 -1
  55. package/dist/model/HandleNoteChanges200Response.js +1 -1
  56. package/dist/model/HandleNoteGet200Response.js +1 -1
  57. package/dist/model/HandleNoteSignal200Response.js +1 -1
  58. package/dist/model/HandleNotefileChanges200Response.js +1 -1
  59. package/dist/model/HandleNotefileChangesPending200Response.js +1 -1
  60. package/dist/model/HandleNotefileDeleteRequest.js +1 -1
  61. package/dist/model/Http.js +1 -1
  62. package/dist/model/HttpFilter.js +1 -1
  63. package/dist/model/HttpTransform.js +1 -1
  64. package/dist/model/Location.js +1 -1
  65. package/dist/model/Login200Response.js +1 -1
  66. package/dist/model/LoginRequest.js +1 -1
  67. package/dist/model/Mqtt.js +1 -1
  68. package/dist/model/Note.js +1 -1
  69. package/dist/model/Product.js +1 -1
  70. package/dist/model/Project.js +1 -1
  71. package/dist/model/ProjectMember.js +1 -1
  72. package/dist/model/Proxy.js +1 -1
  73. package/dist/model/PutDeviceFleetsRequest.js +1 -1
  74. package/dist/model/Radresponder.js +1 -1
  75. package/dist/model/Route.js +2 -7
  76. package/dist/model/RouteSchema.js +1 -1
  77. package/dist/model/Snowflake.js +1 -1
  78. package/dist/model/SnowflakeTransform.js +1 -1
  79. package/dist/model/Thingworx.js +1 -1
  80. package/dist/model/TowerLocation.js +1 -1
  81. package/dist/model/Twilio.js +1 -1
  82. package/dist/model/UpdateFleetRequest.js +1 -1
  83. package/dist/model/UserDbRoute.js +1 -1
  84. package/package.json +1 -1
  85. package/dist/model/Edgeimpulse.js +0 -214
  86. package/dist/model/EdgeimpulseSensorsInner.js +0 -106
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.0.0
9
- - Package version: 1.0.15
9
+ - Package version: 1.0.16
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
 
@@ -186,6 +186,7 @@ All URIs are relative to *https://api.notefile.net*
186
186
  | _NotehubJs.ProductApi_ | [**createProduct**](docs/ProductApi.md#createProduct) | **POST** /v1/projects/{projectUID}/products |
187
187
  | _NotehubJs.ProductApi_ | [**getProjectByProduct**](docs/ProductApi.md#getProjectByProduct) | **GET** /v1/products/{productUID}/project |
188
188
  | _NotehubJs.ProductApi_ | [**getProjectProducts**](docs/ProductApi.md#getProjectProducts) | **GET** /v1/projects/{projectUID}/products |
189
+ | _NotehubJs.ProjectApi_ | [**cloneProject**](docs/ProjectApi.md#cloneProject) | **POST** /v1/projects/{projectUID}/clone |
189
190
  | _NotehubJs.ProjectApi_ | [**createProduct**](docs/ProjectApi.md#createProduct) | **POST** /v1/projects/{projectUID}/products |
190
191
  | _NotehubJs.ProjectApi_ | [**createProject**](docs/ProjectApi.md#createProject) | **POST** /v1/projects |
191
192
  | _NotehubJs.ProjectApi_ | [**deleteProjectEnvironmentVariable**](docs/ProjectApi.md#deleteProjectEnvironmentVariable) | **DELETE** /v1/projects/{projectUID}/environment_variables/{key} |
@@ -219,6 +220,7 @@ All URIs are relative to *https://api.notefile.net*
219
220
  - [NotehubJs.BillingAccount](docs/BillingAccount.md)
220
221
  - [NotehubJs.BillingAccountRole](docs/BillingAccountRole.md)
221
222
  - [NotehubJs.Body](docs/Body.md)
223
+ - [NotehubJs.CloneProjectRequest](docs/CloneProjectRequest.md)
222
224
  - [NotehubJs.Contact](docs/Contact.md)
223
225
  - [NotehubJs.CreateFleetRequest](docs/CreateFleetRequest.md)
224
226
  - [NotehubJs.CreateProductRequest](docs/CreateProductRequest.md)
@@ -230,8 +232,6 @@ All URIs are relative to *https://api.notefile.net*
230
232
  - [NotehubJs.DeviceSession](docs/DeviceSession.md)
231
233
  - [NotehubJs.DeviceTowerInfo](docs/DeviceTowerInfo.md)
232
234
  - [NotehubJs.DeviceUsage](docs/DeviceUsage.md)
233
- - [NotehubJs.Edgeimpulse](docs/Edgeimpulse.md)
234
- - [NotehubJs.EdgeimpulseSensorsInner](docs/EdgeimpulseSensorsInner.md)
235
235
  - [NotehubJs.EnvironmentVariables](docs/EnvironmentVariables.md)
236
236
  - [NotehubJs.Error](docs/Error.md)
237
237
  - [NotehubJs.Event](docs/Event.md)
package/dist/ApiClient.js CHANGED
@@ -15,7 +15,7 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
15
15
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
16
16
  /**
17
17
  * @module ApiClient
18
- * @version 1.0.15
18
+ * @version 1.0.16
19
19
  */
20
20
  /**
21
21
  * Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
@@ -63,7 +63,7 @@ var ApiClient = /*#__PURE__*/function () {
63
63
  * @default {}
64
64
  */
65
65
  this.defaultHeaders = {
66
- "User-Agent": "OpenAPI-Generator/1.0.15/Javascript"
66
+ "User-Agent": "OpenAPI-Generator/1.0.16/Javascript"
67
67
  };
68
68
 
69
69
  /**
@@ -17,7 +17,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
17
17
  /**
18
18
  * Authorization service.
19
19
  * @module api/AuthorizationApi
20
- * @version 1.0.15
20
+ * @version 1.0.16
21
21
  */
22
22
  var AuthorizationApi = /*#__PURE__*/function () {
23
23
  /**
@@ -17,7 +17,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
17
17
  /**
18
18
  * BillingAccount service.
19
19
  * @module api/BillingAccountApi
20
- * @version 1.0.15
20
+ * @version 1.0.16
21
21
  */
22
22
  var BillingAccountApi = /*#__PURE__*/function () {
23
23
  /**
@@ -27,7 +27,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
27
27
  /**
28
28
  * Device service.
29
29
  * @module api/DeviceApi
30
- * @version 1.0.15
30
+ * @version 1.0.16
31
31
  */
32
32
  var DeviceApi = /*#__PURE__*/function () {
33
33
  /**
@@ -19,7 +19,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
19
19
  /**
20
20
  * Devices service.
21
21
  * @module api/DevicesApi
22
- * @version 1.0.15
22
+ * @version 1.0.16
23
23
  */
24
24
  var DevicesApi = /*#__PURE__*/function () {
25
25
  /**
@@ -18,7 +18,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
18
18
  /**
19
19
  * EnvironmentVariables service.
20
20
  * @module api/EnvironmentVariablesApi
21
- * @version 1.0.15
21
+ * @version 1.0.16
22
22
  */
23
23
  var EnvironmentVariablesApi = /*#__PURE__*/function () {
24
24
  /**
@@ -18,7 +18,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
18
18
  /**
19
19
  * Event service.
20
20
  * @module api/EventApi
21
- * @version 1.0.15
21
+ * @version 1.0.16
22
22
  */
23
23
  var EventApi = /*#__PURE__*/function () {
24
24
  /**
@@ -19,7 +19,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
19
19
  /**
20
20
  * Files service.
21
21
  * @module api/FilesApi
22
- * @version 1.0.15
22
+ * @version 1.0.16
23
23
  */
24
24
  var FilesApi = /*#__PURE__*/function () {
25
25
  /**
@@ -26,7 +26,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
26
26
  /**
27
27
  * Fleet service.
28
28
  * @module api/FleetApi
29
- * @version 1.0.15
29
+ * @version 1.0.16
30
30
  */
31
31
  var FleetApi = /*#__PURE__*/function () {
32
32
  /**
@@ -19,7 +19,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
19
19
  /**
20
20
  * Notes service.
21
21
  * @module api/NotesApi
22
- * @version 1.0.15
22
+ * @version 1.0.16
23
23
  */
24
24
  var NotesApi = /*#__PURE__*/function () {
25
25
  /**
@@ -20,7 +20,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
20
20
  /**
21
21
  * Product service.
22
22
  * @module api/ProductApi
23
- * @version 1.0.15
23
+ * @version 1.0.16
24
24
  */
25
25
  var ProductApi = /*#__PURE__*/function () {
26
26
  /**
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ var _CloneProjectRequest = _interopRequireDefault(require("../model/CloneProjectRequest"));
8
9
  var _CreateProductRequest = _interopRequireDefault(require("../model/CreateProductRequest"));
9
10
  var _CreateProjectRequest = _interopRequireDefault(require("../model/CreateProjectRequest"));
10
11
  var _EnvironmentVariables = _interopRequireDefault(require("../model/EnvironmentVariables"));
@@ -28,7 +29,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
28
29
  /**
29
30
  * Project service.
30
31
  * @module api/ProjectApi
31
- * @version 1.0.15
32
+ * @version 1.0.16
32
33
  */
33
34
  var ProjectApi = /*#__PURE__*/function () {
34
35
  /**
@@ -44,12 +45,57 @@ var ProjectApi = /*#__PURE__*/function () {
44
45
  }
45
46
 
46
47
  /**
47
- * Create Product within a Project
48
- * @param {String} projectUID
49
- * @param {module:model/CreateProductRequest} createProductRequest Product to be created
50
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Product} and HTTP response
48
+ * Clone a Project
49
+ * @param {String} projectUID The project UID to be cloned.
50
+ * @param {module:model/CloneProjectRequest} cloneProjectRequest Project to be cloned
51
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
51
52
  */
52
53
  _createClass(ProjectApi, [{
54
+ key: "cloneProjectWithHttpInfo",
55
+ value: function cloneProjectWithHttpInfo(projectUID, cloneProjectRequest) {
56
+ var postBody = cloneProjectRequest;
57
+ // verify the required parameter 'projectUID' is set
58
+ if (projectUID === undefined || projectUID === null) {
59
+ throw new _Error["default"]("Missing the required parameter 'projectUID' when calling cloneProject");
60
+ }
61
+ // verify the required parameter 'cloneProjectRequest' is set
62
+ if (cloneProjectRequest === undefined || cloneProjectRequest === null) {
63
+ throw new _Error["default"]("Missing the required parameter 'cloneProjectRequest' when calling cloneProject");
64
+ }
65
+ var pathParams = {
66
+ projectUID: projectUID
67
+ };
68
+ var queryParams = {};
69
+ var headerParams = {};
70
+ var formParams = {};
71
+ var authNames = ["api_key"];
72
+ var contentTypes = ["application/json"];
73
+ var accepts = ["application/json"];
74
+ var returnType = _Project["default"];
75
+ return this.apiClient.callApi("/v1/projects/{projectUID}/clone", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
76
+ }
77
+
78
+ /**
79
+ * Clone a Project
80
+ * @param {String} projectUID The project UID to be cloned.
81
+ * @param {module:model/CloneProjectRequest} cloneProjectRequest Project to be cloned
82
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
83
+ */
84
+ }, {
85
+ key: "cloneProject",
86
+ value: function cloneProject(projectUID, cloneProjectRequest) {
87
+ return this.cloneProjectWithHttpInfo(projectUID, cloneProjectRequest).then(function (response_and_data) {
88
+ return response_and_data.data;
89
+ });
90
+ }
91
+
92
+ /**
93
+ * Create Product within a Project
94
+ * @param {String} projectUID
95
+ * @param {module:model/CreateProductRequest} createProductRequest Product to be created
96
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Product} and HTTP response
97
+ */
98
+ }, {
53
99
  key: "createProductWithHttpInfo",
54
100
  value: function createProductWithHttpInfo(projectUID, createProductRequest) {
55
101
  var postBody = createProductRequest;
@@ -18,7 +18,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
18
18
  /**
19
19
  * Route service.
20
20
  * @module api/RouteApi
21
- * @version 1.0.15
21
+ * @version 1.0.16
22
22
  */
23
23
  var RouteApi = /*#__PURE__*/function () {
24
24
  /**
@@ -17,7 +17,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
17
17
  /**
18
18
  * RouteLogs service.
19
19
  * @module api/RouteLogsApi
20
- * @version 1.0.15
20
+ * @version 1.0.16
21
21
  */
22
22
  var RouteLogsApi = /*#__PURE__*/function () {
23
23
  /**
package/dist/index.js CHANGED
@@ -51,6 +51,12 @@ Object.defineProperty(exports, "Body", {
51
51
  return _Body["default"];
52
52
  }
53
53
  });
54
+ Object.defineProperty(exports, "CloneProjectRequest", {
55
+ enumerable: true,
56
+ get: function get() {
57
+ return _CloneProjectRequest["default"];
58
+ }
59
+ });
54
60
  Object.defineProperty(exports, "Contact", {
55
61
  enumerable: true,
56
62
  get: function get() {
@@ -129,18 +135,6 @@ Object.defineProperty(exports, "DevicesApi", {
129
135
  return _DevicesApi["default"];
130
136
  }
131
137
  });
132
- Object.defineProperty(exports, "Edgeimpulse", {
133
- enumerable: true,
134
- get: function get() {
135
- return _Edgeimpulse["default"];
136
- }
137
- });
138
- Object.defineProperty(exports, "EdgeimpulseSensorsInner", {
139
- enumerable: true,
140
- get: function get() {
141
- return _EdgeimpulseSensorsInner["default"];
142
- }
143
- });
144
138
  Object.defineProperty(exports, "EnvironmentVariables", {
145
139
  enumerable: true,
146
140
  get: function get() {
@@ -513,6 +507,7 @@ var _Azure = _interopRequireDefault(require("./model/Azure"));
513
507
  var _BillingAccount = _interopRequireDefault(require("./model/BillingAccount"));
514
508
  var _BillingAccountRole = _interopRequireDefault(require("./model/BillingAccountRole"));
515
509
  var _Body = _interopRequireDefault(require("./model/Body"));
510
+ var _CloneProjectRequest = _interopRequireDefault(require("./model/CloneProjectRequest"));
516
511
  var _Contact = _interopRequireDefault(require("./model/Contact"));
517
512
  var _CreateFleetRequest = _interopRequireDefault(require("./model/CreateFleetRequest"));
518
513
  var _CreateProductRequest = _interopRequireDefault(require("./model/CreateProductRequest"));
@@ -524,8 +519,6 @@ var _Device = _interopRequireDefault(require("./model/Device"));
524
519
  var _DeviceSession = _interopRequireDefault(require("./model/DeviceSession"));
525
520
  var _DeviceTowerInfo = _interopRequireDefault(require("./model/DeviceTowerInfo"));
526
521
  var _DeviceUsage = _interopRequireDefault(require("./model/DeviceUsage"));
527
- var _Edgeimpulse = _interopRequireDefault(require("./model/Edgeimpulse"));
528
- var _EdgeimpulseSensorsInner = _interopRequireDefault(require("./model/EdgeimpulseSensorsInner"));
529
522
  var _EnvironmentVariables = _interopRequireDefault(require("./model/EnvironmentVariables"));
530
523
  var _Error = _interopRequireDefault(require("./model/Error"));
531
524
  var _Event = _interopRequireDefault(require("./model/Event"));
package/dist/model/Aws.js CHANGED
@@ -17,7 +17,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
17
17
  /**
18
18
  * The Aws model module.
19
19
  * @module model/Aws
20
- * @version 1.0.15
20
+ * @version 1.0.16
21
21
  */
22
22
  var Aws = /*#__PURE__*/function () {
23
23
  /**
@@ -17,7 +17,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
17
17
  /**
18
18
  * The Azure model module.
19
19
  * @module model/Azure
20
- * @version 1.0.15
20
+ * @version 1.0.16
21
21
  */
22
22
  var Azure = /*#__PURE__*/function () {
23
23
  /**
@@ -19,7 +19,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
19
19
  /**
20
20
  * The BillingAccount model module.
21
21
  * @module model/BillingAccount
22
- * @version 1.0.15
22
+ * @version 1.0.16
23
23
  */
24
24
  var BillingAccount = /*#__PURE__*/function () {
25
25
  /**
@@ -15,7 +15,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
15
15
  /**
16
16
  * The Body model module.
17
17
  * @module model/Body
18
- * @version 1.0.15
18
+ * @version 1.0.16
19
19
  */
20
20
  var Body = /*#__PURE__*/function () {
21
21
  /**
@@ -0,0 +1,139 @@
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(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
9
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
10
+ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
11
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
12
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
13
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
14
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
15
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
16
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
17
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
18
+ /**
19
+ * The CloneProjectRequest model module.
20
+ * @module model/CloneProjectRequest
21
+ * @version 1.0.16
22
+ */
23
+ var CloneProjectRequest = /*#__PURE__*/function () {
24
+ /**
25
+ * Constructs a new <code>CloneProjectRequest</code>.
26
+ * @alias module:model/CloneProjectRequest
27
+ * @param label {String} The label for the project.
28
+ * @param billingAccountUid {String} The billing account UID for the project. The caller of the API must be able to create projects within the billing account, otherwise an error will be returned.
29
+ */
30
+ function CloneProjectRequest(label, billingAccountUid) {
31
+ _classCallCheck(this, CloneProjectRequest);
32
+ CloneProjectRequest.initialize(this, label, billingAccountUid);
33
+ }
34
+
35
+ /**
36
+ * Initializes the fields of this object.
37
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
38
+ * Only for internal use.
39
+ */
40
+ _createClass(CloneProjectRequest, null, [{
41
+ key: "initialize",
42
+ value: function initialize(obj, label, billingAccountUid) {
43
+ obj["label"] = label;
44
+ obj["billing_account_uid"] = billingAccountUid;
45
+ }
46
+
47
+ /**
48
+ * Constructs a <code>CloneProjectRequest</code> from a plain JavaScript object, optionally creating a new instance.
49
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
50
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
51
+ * @param {module:model/CloneProjectRequest} obj Optional instance to populate.
52
+ * @return {module:model/CloneProjectRequest} The populated <code>CloneProjectRequest</code> instance.
53
+ */
54
+ }, {
55
+ key: "constructFromObject",
56
+ value: function constructFromObject(data, obj) {
57
+ if (data) {
58
+ obj = obj || new CloneProjectRequest();
59
+ if (data.hasOwnProperty("label")) {
60
+ obj["label"] = _ApiClient["default"].convertToType(data["label"], "String");
61
+ }
62
+ if (data.hasOwnProperty("billing_account_uid")) {
63
+ obj["billing_account_uid"] = _ApiClient["default"].convertToType(data["billing_account_uid"], "String");
64
+ }
65
+ if (data.hasOwnProperty("disable_clone_routes")) {
66
+ obj["disable_clone_routes"] = _ApiClient["default"].convertToType(data["disable_clone_routes"], "Boolean");
67
+ }
68
+ if (data.hasOwnProperty("disable_clone_fleets")) {
69
+ obj["disable_clone_fleets"] = _ApiClient["default"].convertToType(data["disable_clone_fleets"], "Boolean");
70
+ }
71
+ } else if (data === null) {
72
+ return null;
73
+ }
74
+ return obj;
75
+ }
76
+
77
+ /**
78
+ * Validates the JSON data with respect to <code>CloneProjectRequest</code>.
79
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
80
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>CloneProjectRequest</code>.
81
+ */
82
+ }, {
83
+ key: "validateJSON",
84
+ value: function validateJSON(data) {
85
+ // check to make sure all required properties are present in the JSON string
86
+ var _iterator = _createForOfIteratorHelper(CloneProjectRequest.RequiredProperties),
87
+ _step;
88
+ try {
89
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
90
+ var property = _step.value;
91
+ if (!data[property]) {
92
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
93
+ }
94
+ }
95
+ // ensure the json data is a string
96
+ } catch (err) {
97
+ _iterator.e(err);
98
+ } finally {
99
+ _iterator.f();
100
+ }
101
+ if (data["label"] && !(typeof data["label"] === "string" || data["label"] instanceof String)) {
102
+ throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data["label"]);
103
+ }
104
+ // ensure the json data is a string
105
+ if (data["billing_account_uid"] && !(typeof data["billing_account_uid"] === "string" || data["billing_account_uid"] instanceof String)) {
106
+ throw new Error("Expected the field `billing_account_uid` to be a primitive type in the JSON string but got " + data["billing_account_uid"]);
107
+ }
108
+ return true;
109
+ }
110
+ }]);
111
+ return CloneProjectRequest;
112
+ }();
113
+ CloneProjectRequest.RequiredProperties = ["label", "billing_account_uid"];
114
+
115
+ /**
116
+ * The label for the project.
117
+ * @member {String} label
118
+ */
119
+ CloneProjectRequest.prototype["label"] = undefined;
120
+
121
+ /**
122
+ * The billing account UID for the project. The caller of the API must be able to create projects within the billing account, otherwise an error will be returned.
123
+ * @member {String} billing_account_uid
124
+ */
125
+ CloneProjectRequest.prototype["billing_account_uid"] = undefined;
126
+
127
+ /**
128
+ * Whether to disallow the cloning of the routes from the parent project. Default is false if not specified.
129
+ * @member {Boolean} disable_clone_routes
130
+ */
131
+ CloneProjectRequest.prototype["disable_clone_routes"] = undefined;
132
+
133
+ /**
134
+ * Whether to disallow the cloning of the fleets from the parent project. Default is false if not specified.
135
+ * @member {Boolean} disable_clone_fleets
136
+ */
137
+ CloneProjectRequest.prototype["disable_clone_fleets"] = undefined;
138
+ var _default = CloneProjectRequest;
139
+ exports["default"] = _default;
@@ -15,7 +15,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
15
15
  /**
16
16
  * The Contact model module.
17
17
  * @module model/Contact
18
- * @version 1.0.15
18
+ * @version 1.0.16
19
19
  */
20
20
  var Contact = /*#__PURE__*/function () {
21
21
  /**
@@ -15,7 +15,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
15
15
  /**
16
16
  * The CreateFleetRequest model module.
17
17
  * @module model/CreateFleetRequest
18
- * @version 1.0.15
18
+ * @version 1.0.16
19
19
  */
20
20
  var CreateFleetRequest = /*#__PURE__*/function () {
21
21
  /**
@@ -18,7 +18,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
18
18
  /**
19
19
  * The CreateProductRequest model module.
20
20
  * @module model/CreateProductRequest
21
- * @version 1.0.15
21
+ * @version 1.0.16
22
22
  */
23
23
  var CreateProductRequest = /*#__PURE__*/function () {
24
24
  /**
@@ -18,17 +18,18 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
18
18
  /**
19
19
  * The CreateProjectRequest model module.
20
20
  * @module model/CreateProjectRequest
21
- * @version 1.0.15
21
+ * @version 1.0.16
22
22
  */
23
23
  var CreateProjectRequest = /*#__PURE__*/function () {
24
24
  /**
25
25
  * Constructs a new <code>CreateProjectRequest</code>.
26
26
  * @alias module:model/CreateProjectRequest
27
27
  * @param label {String} The label for the project.
28
+ * @param billingAccountUid {String} The billing account UID for the project. The caller of the API must be able to create projects within the billing account, otherwise an error will be returned.
28
29
  */
29
- function CreateProjectRequest(label) {
30
+ function CreateProjectRequest(label, billingAccountUid) {
30
31
  _classCallCheck(this, CreateProjectRequest);
31
- CreateProjectRequest.initialize(this, label);
32
+ CreateProjectRequest.initialize(this, label, billingAccountUid);
32
33
  }
33
34
 
34
35
  /**
@@ -38,8 +39,9 @@ var CreateProjectRequest = /*#__PURE__*/function () {
38
39
  */
39
40
  _createClass(CreateProjectRequest, null, [{
40
41
  key: "initialize",
41
- value: function initialize(obj, label) {
42
+ value: function initialize(obj, label, billingAccountUid) {
42
43
  obj["label"] = label;
44
+ obj["billing_account_uid"] = billingAccountUid;
43
45
  }
44
46
 
45
47
  /**
@@ -102,7 +104,7 @@ var CreateProjectRequest = /*#__PURE__*/function () {
102
104
  }]);
103
105
  return CreateProjectRequest;
104
106
  }();
105
- CreateProjectRequest.RequiredProperties = ["label"];
107
+ CreateProjectRequest.RequiredProperties = ["label", "billing_account_uid"];
106
108
 
107
109
  /**
108
110
  * The label for the project.
@@ -16,7 +16,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
16
16
  /**
17
17
  * The DFUEnv model module.
18
18
  * @module model/DFUEnv
19
- * @version 1.0.15
19
+ * @version 1.0.16
20
20
  */
21
21
  var DFUEnv = /*#__PURE__*/function () {
22
22
  /**
@@ -15,7 +15,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
15
15
  /**
16
16
  * The DFUState model module.
17
17
  * @module model/DFUState
18
- * @version 1.0.15
18
+ * @version 1.0.16
19
19
  */
20
20
  var DFUState = /*#__PURE__*/function () {
21
21
  /**
@@ -18,7 +18,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
18
18
  /**
19
19
  * The DeleteDeviceFleetsRequest model module.
20
20
  * @module model/DeleteDeviceFleetsRequest
21
- * @version 1.0.15
21
+ * @version 1.0.16
22
22
  */
23
23
  var DeleteDeviceFleetsRequest = /*#__PURE__*/function () {
24
24
  /**
@@ -22,7 +22,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
22
22
  /**
23
23
  * The Device model module.
24
24
  * @module model/Device
25
- * @version 1.0.15
25
+ * @version 1.0.16
26
26
  */
27
27
  var Device = /*#__PURE__*/function () {
28
28
  /**
@@ -17,7 +17,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
17
17
  /**
18
18
  * The DeviceSession model module.
19
19
  * @module model/DeviceSession
20
- * @version 1.0.15
20
+ * @version 1.0.16
21
21
  */
22
22
  var DeviceSession = /*#__PURE__*/function () {
23
23
  /**
@@ -15,7 +15,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
15
15
  /**
16
16
  * The DeviceTowerInfo model module.
17
17
  * @module model/DeviceTowerInfo
18
- * @version 1.0.15
18
+ * @version 1.0.16
19
19
  */
20
20
  var DeviceTowerInfo = /*#__PURE__*/function () {
21
21
  /**
@@ -15,7 +15,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
15
15
  /**
16
16
  * The DeviceUsage model module.
17
17
  * @module model/DeviceUsage
18
- * @version 1.0.15
18
+ * @version 1.0.16
19
19
  */
20
20
  var DeviceUsage = /*#__PURE__*/function () {
21
21
  /**
@@ -18,7 +18,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
18
18
  /**
19
19
  * The EnvironmentVariables model module.
20
20
  * @module model/EnvironmentVariables
21
- * @version 1.0.15
21
+ * @version 1.0.16
22
22
  */
23
23
  var EnvironmentVariables = /*#__PURE__*/function () {
24
24
  /**