@blues-inc/notehub-js 1.0.32 → 1.0.33-beta.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/README.md +232 -212
  2. package/dist/ApiClient.js +156 -156
  3. package/dist/api/AlertApi.js +28 -28
  4. package/dist/api/AuthorizationApi.js +16 -16
  5. package/dist/api/BillingAccountApi.js +14 -14
  6. package/dist/api/DeviceApi.js +513 -513
  7. package/dist/api/EventApi.js +148 -148
  8. package/dist/api/ExternalDevicesApi.js +203 -0
  9. package/dist/api/MonitorApi.js +82 -82
  10. package/dist/api/ProjectApi.js +581 -522
  11. package/dist/api/RepositoryApi.js +103 -103
  12. package/dist/api/RouteApi.js +110 -110
  13. package/dist/api/WebhookApi.js +282 -0
  14. package/dist/index.js +28 -0
  15. package/dist/model/Alert.js +76 -74
  16. package/dist/model/AlertDataInner.js +35 -35
  17. package/dist/model/AlertNotificationsInner.js +18 -18
  18. package/dist/model/Aws.js +65 -65
  19. package/dist/model/Azure.js +43 -43
  20. package/dist/model/BillingAccount.js +21 -21
  21. package/dist/model/BillingAccountRole.js +9 -9
  22. package/dist/model/Body.js +5 -5
  23. package/dist/model/CloneProjectRequest.js +20 -20
  24. package/dist/model/Contact.js +22 -22
  25. package/dist/model/CreateFleetRequest.js +12 -12
  26. package/dist/model/CreateMonitor.js +126 -125
  27. package/dist/model/CreateProductRequest.js +22 -22
  28. package/dist/model/CreateProjectRequest.js +16 -16
  29. package/dist/model/CreateUpdateRepository.js +17 -17
  30. package/dist/model/CurrentFirmware.js +12 -12
  31. package/dist/model/DFUEnv.js +12 -12
  32. package/dist/model/DFUState.js +65 -65
  33. package/dist/model/DataField.js +7 -7
  34. package/dist/model/DataSet.js +30 -29
  35. package/dist/model/DataSetField.js +19 -19
  36. package/dist/model/DeleteDeviceFleetsRequest.js +8 -8
  37. package/dist/model/Device.js +102 -101
  38. package/dist/model/DeviceDfuHistory.js +20 -19
  39. package/dist/model/DeviceDfuHistoryPage.js +13 -12
  40. package/dist/model/DeviceDfuStateMachine.js +25 -24
  41. package/dist/model/DeviceDfuStateMachineNode.js +22 -22
  42. package/dist/model/DeviceDfuStatus.js +20 -20
  43. package/dist/model/DeviceDfuStatusCurrent.js +32 -32
  44. package/dist/model/DeviceDfuStatusPage.js +13 -12
  45. package/dist/model/DeviceSession.js +296 -185
  46. package/dist/model/DeviceTowerInfo.js +14 -14
  47. package/dist/model/DeviceUsage.js +35 -33
  48. package/dist/model/DfuActionRequest.js +7 -7
  49. package/dist/model/EmailNotification.js +7 -7
  50. package/dist/model/EnvironmentVariables.js +8 -8
  51. package/dist/model/Error.js +31 -31
  52. package/dist/model/Event.js +256 -243
  53. package/dist/model/Firmware.js +49 -49
  54. package/dist/model/FirmwareInfo.js +60 -60
  55. package/dist/model/Fleet.js +27 -27
  56. package/dist/model/GetAlerts200Response.js +15 -14
  57. package/dist/model/GetBillingAccounts200Response.js +10 -9
  58. package/dist/model/GetDeviceEnvironmentVariables200Response.js +16 -16
  59. package/dist/model/GetDeviceHealthLog200Response.js +12 -11
  60. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +19 -19
  61. package/dist/model/GetDeviceLatest200Response.js +10 -9
  62. package/dist/model/GetDevicePublicKey200Response.js +16 -16
  63. package/dist/model/GetDeviceSessions200Response.js +17 -16
  64. package/dist/model/GetProjectDevicePublicKeys200Response.js +17 -16
  65. package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
  66. package/dist/model/GetProjectDevices200Response.js +17 -16
  67. package/dist/model/GetProjectEvents200Response.js +21 -20
  68. package/dist/model/GetProjectEventsByCursor200Response.js +24 -23
  69. package/dist/model/GetProjectFleets200Response.js +12 -11
  70. package/dist/model/GetProjectMembers200Response.js +12 -11
  71. package/dist/model/GetProjectProducts200Response.js +10 -9
  72. package/dist/model/GetProjects200Response.js +10 -9
  73. package/dist/model/GetRouteLogsByRoute200ResponseInner.js +35 -35
  74. package/dist/model/GetWebhooks200Response.js +112 -0
  75. package/dist/model/Google.js +33 -33
  76. package/dist/model/HandleNoteChanges200Response.js +11 -11
  77. package/dist/model/HandleNoteGet200Response.js +13 -13
  78. package/dist/model/HandleNoteSignal200Response.js +5 -5
  79. package/dist/model/HandleNotefileChanges200Response.js +11 -11
  80. package/dist/model/HandleNotefileChangesPending200Response.js +14 -14
  81. package/dist/model/HandleNotefileDeleteRequest.js +7 -7
  82. package/dist/model/Http.js +35 -35
  83. package/dist/model/HttpFilter.js +19 -19
  84. package/dist/model/HttpTransform.js +20 -20
  85. package/dist/model/Location.js +40 -40
  86. package/dist/model/Login200Response.js +7 -7
  87. package/dist/model/LoginRequest.js +12 -12
  88. package/dist/model/Monitor.js +100 -99
  89. package/dist/model/MonitorAlertRoutesInner.js +9 -10
  90. package/dist/model/Mqtt.js +66 -66
  91. package/dist/model/Note.js +10 -10
  92. package/dist/model/NotefileSchema.js +19 -18
  93. package/dist/model/NotehubRoute.js +36 -36
  94. package/dist/model/NotehubRouteSchema.js +45 -46
  95. package/dist/model/PostProvisionProjectDeviceRequest.js +18 -18
  96. package/dist/model/Product.js +26 -26
  97. package/dist/model/Project.js +34 -34
  98. package/dist/model/ProjectMember.js +22 -22
  99. package/dist/model/Proxy.js +24 -24
  100. package/dist/model/PutDeviceFleetsRequest.js +8 -8
  101. package/dist/model/QuestionDataResponseLineChart.js +39 -39
  102. package/dist/model/QuestionDataResponseMap.js +16 -16
  103. package/dist/model/Radresponder.js +25 -25
  104. package/dist/model/Repository.js +22 -22
  105. package/dist/model/Role.js +9 -9
  106. package/dist/model/SchemaProperty.js +40 -38
  107. package/dist/model/SimUsage.js +19 -19
  108. package/dist/model/Slack.js +53 -53
  109. package/dist/model/SlackBearerNotification.js +25 -25
  110. package/dist/model/SlackWebHookNotification.js +20 -20
  111. package/dist/model/Snowflake.js +45 -45
  112. package/dist/model/SnowflakeTransform.js +12 -12
  113. package/dist/model/Thingworx.js +33 -33
  114. package/dist/model/TowerLocation.js +70 -58
  115. package/dist/model/Twilio.js +43 -43
  116. package/dist/model/UpdateFleetRequest.js +22 -22
  117. package/dist/model/UploadMetadata.js +59 -59
  118. package/dist/model/UserDbRoute.js +25 -25
  119. package/dist/model/UserDfuStateMachine.js +20 -20
  120. package/dist/model/UserDfuStateMachineStatus.js +20 -20
  121. package/dist/model/UserFirmwareInfo.js +12 -12
  122. package/dist/model/WebhookSettings.js +114 -0
  123. package/package.json +3 -3
@@ -17,7 +17,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
17
17
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18
18
  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); } /**
19
19
  * Notehub API
20
- * The OpenAPI definition for the Notehub.io API.
20
+ * The OpenAPI definition for the Notehub.io API.
21
21
  *
22
22
  * The version of the OpenAPI document: 1.2.0
23
23
  * Contact: engineering@blues.io
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * The GetProjectProducts200Response model module.
32
32
  * @module model/GetProjectProducts200Response
33
- * @version 1.0.32
33
+ * @version 1.0.33-beta.10
34
34
  */
35
35
  var GetProjectProducts200Response = /*#__PURE__*/function () {
36
36
  /**
@@ -63,8 +63,8 @@ var GetProjectProducts200Response = /*#__PURE__*/function () {
63
63
  value: function constructFromObject(data, obj) {
64
64
  if (data) {
65
65
  obj = obj || new GetProjectProducts200Response();
66
- if (data.hasOwnProperty("products")) {
67
- obj["products"] = _ApiClient["default"].convertToType(data["products"], [_Product["default"]]);
66
+ if (data.hasOwnProperty('products')) {
67
+ obj['products'] = _ApiClient["default"].convertToType(data['products'], [_Product["default"]]);
68
68
  }
69
69
  } else if (data === null) {
70
70
  return null;
@@ -80,14 +80,14 @@ var GetProjectProducts200Response = /*#__PURE__*/function () {
80
80
  }, {
81
81
  key: "validateJSON",
82
82
  value: function validateJSON(data) {
83
- if (data["products"]) {
83
+ if (data['products']) {
84
84
  // data not null
85
85
  // ensure the json data is an array
86
- if (!Array.isArray(data["products"])) {
87
- throw new Error("Expected the field `products` to be an array in the JSON data but got " + data["products"]);
86
+ if (!Array.isArray(data['products'])) {
87
+ throw new Error("Expected the field `products` to be an array in the JSON data but got " + data['products']);
88
88
  }
89
89
  // validate the optional field `products` (array)
90
- var _iterator = _createForOfIteratorHelper(data["products"]),
90
+ var _iterator = _createForOfIteratorHelper(data['products']),
91
91
  _step;
92
92
  try {
93
93
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -99,6 +99,7 @@ var GetProjectProducts200Response = /*#__PURE__*/function () {
99
99
  } finally {
100
100
  _iterator.f();
101
101
  }
102
+ ;
102
103
  }
103
104
  return true;
104
105
  }
@@ -107,5 +108,5 @@ var GetProjectProducts200Response = /*#__PURE__*/function () {
107
108
  /**
108
109
  * @member {Array.<module:model/Product>} products
109
110
  */
110
- GetProjectProducts200Response.prototype["products"] = undefined;
111
+ GetProjectProducts200Response.prototype['products'] = undefined;
111
112
  var _default = exports["default"] = GetProjectProducts200Response;
@@ -17,7 +17,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
17
17
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18
18
  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); } /**
19
19
  * Notehub API
20
- * The OpenAPI definition for the Notehub.io API.
20
+ * The OpenAPI definition for the Notehub.io API.
21
21
  *
22
22
  * The version of the OpenAPI document: 1.2.0
23
23
  * Contact: engineering@blues.io
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * The GetProjects200Response model module.
32
32
  * @module model/GetProjects200Response
33
- * @version 1.0.32
33
+ * @version 1.0.33-beta.10
34
34
  */
35
35
  var GetProjects200Response = /*#__PURE__*/function () {
36
36
  /**
@@ -63,8 +63,8 @@ var GetProjects200Response = /*#__PURE__*/function () {
63
63
  value: function constructFromObject(data, obj) {
64
64
  if (data) {
65
65
  obj = obj || new GetProjects200Response();
66
- if (data.hasOwnProperty("projects")) {
67
- obj["projects"] = _ApiClient["default"].convertToType(data["projects"], [_Project["default"]]);
66
+ if (data.hasOwnProperty('projects')) {
67
+ obj['projects'] = _ApiClient["default"].convertToType(data['projects'], [_Project["default"]]);
68
68
  }
69
69
  } else if (data === null) {
70
70
  return null;
@@ -80,14 +80,14 @@ var GetProjects200Response = /*#__PURE__*/function () {
80
80
  }, {
81
81
  key: "validateJSON",
82
82
  value: function validateJSON(data) {
83
- if (data["projects"]) {
83
+ if (data['projects']) {
84
84
  // data not null
85
85
  // ensure the json data is an array
86
- if (!Array.isArray(data["projects"])) {
87
- throw new Error("Expected the field `projects` to be an array in the JSON data but got " + data["projects"]);
86
+ if (!Array.isArray(data['projects'])) {
87
+ throw new Error("Expected the field `projects` to be an array in the JSON data but got " + data['projects']);
88
88
  }
89
89
  // validate the optional field `projects` (array)
90
- var _iterator = _createForOfIteratorHelper(data["projects"]),
90
+ var _iterator = _createForOfIteratorHelper(data['projects']),
91
91
  _step;
92
92
  try {
93
93
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -99,6 +99,7 @@ var GetProjects200Response = /*#__PURE__*/function () {
99
99
  } finally {
100
100
  _iterator.f();
101
101
  }
102
+ ;
102
103
  }
103
104
  return true;
104
105
  }
@@ -107,5 +108,5 @@ var GetProjects200Response = /*#__PURE__*/function () {
107
108
  /**
108
109
  * @member {Array.<module:model/Project>} projects
109
110
  */
110
- GetProjects200Response.prototype["projects"] = undefined;
111
+ GetProjects200Response.prototype['projects'] = undefined;
111
112
  var _default = exports["default"] = GetProjects200Response;
@@ -13,7 +13,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
13
13
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
14
14
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
15
15
  * Notehub API
16
- * The OpenAPI definition for the Notehub.io API.
16
+ * The OpenAPI definition for the Notehub.io API.
17
17
  *
18
18
  * The version of the OpenAPI document: 1.2.0
19
19
  * Contact: engineering@blues.io
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The GetRouteLogsByRoute200ResponseInner model module.
28
28
  * @module model/GetRouteLogsByRoute200ResponseInner
29
- * @version 1.0.32
29
+ * @version 1.0.33-beta.10
30
30
  */
31
31
  var GetRouteLogsByRoute200ResponseInner = /*#__PURE__*/function () {
32
32
  /**
@@ -59,26 +59,26 @@ var GetRouteLogsByRoute200ResponseInner = /*#__PURE__*/function () {
59
59
  value: function constructFromObject(data, obj) {
60
60
  if (data) {
61
61
  obj = obj || new GetRouteLogsByRoute200ResponseInner();
62
- if (data.hasOwnProperty("date")) {
63
- obj["date"] = _ApiClient["default"].convertToType(data["date"], "String");
62
+ if (data.hasOwnProperty('date')) {
63
+ obj['date'] = _ApiClient["default"].convertToType(data['date'], 'String');
64
64
  }
65
- if (data.hasOwnProperty("routeUID")) {
66
- obj["routeUID"] = _ApiClient["default"].convertToType(data["routeUID"], "String");
65
+ if (data.hasOwnProperty('routeUID')) {
66
+ obj['routeUID'] = _ApiClient["default"].convertToType(data['routeUID'], 'String');
67
67
  }
68
- if (data.hasOwnProperty("eventUID")) {
69
- obj["eventUID"] = _ApiClient["default"].convertToType(data["eventUID"], "String");
68
+ if (data.hasOwnProperty('eventUID')) {
69
+ obj['eventUID'] = _ApiClient["default"].convertToType(data['eventUID'], 'String');
70
70
  }
71
- if (data.hasOwnProperty("attn")) {
72
- obj["attn"] = _ApiClient["default"].convertToType(data["attn"], "Boolean");
71
+ if (data.hasOwnProperty('attn')) {
72
+ obj['attn'] = _ApiClient["default"].convertToType(data['attn'], 'Boolean');
73
73
  }
74
- if (data.hasOwnProperty("status")) {
75
- obj["status"] = _ApiClient["default"].convertToType(data["status"], "String");
74
+ if (data.hasOwnProperty('status')) {
75
+ obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
76
76
  }
77
- if (data.hasOwnProperty("text")) {
78
- obj["text"] = _ApiClient["default"].convertToType(data["text"], "String");
77
+ if (data.hasOwnProperty('text')) {
78
+ obj['text'] = _ApiClient["default"].convertToType(data['text'], 'String');
79
79
  }
80
- if (data.hasOwnProperty("url")) {
81
- obj["url"] = _ApiClient["default"].convertToType(data["url"], "String");
80
+ if (data.hasOwnProperty('url')) {
81
+ obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String');
82
82
  }
83
83
  } else if (data === null) {
84
84
  return null;
@@ -95,28 +95,28 @@ var GetRouteLogsByRoute200ResponseInner = /*#__PURE__*/function () {
95
95
  key: "validateJSON",
96
96
  value: function validateJSON(data) {
97
97
  // ensure the json data is a string
98
- if (data["date"] && !(typeof data["date"] === "string" || data["date"] instanceof String)) {
99
- throw new Error("Expected the field `date` to be a primitive type in the JSON string but got " + data["date"]);
98
+ if (data['date'] && !(typeof data['date'] === 'string' || data['date'] instanceof String)) {
99
+ throw new Error("Expected the field `date` to be a primitive type in the JSON string but got " + data['date']);
100
100
  }
101
101
  // ensure the json data is a string
102
- if (data["routeUID"] && !(typeof data["routeUID"] === "string" || data["routeUID"] instanceof String)) {
103
- throw new Error("Expected the field `routeUID` to be a primitive type in the JSON string but got " + data["routeUID"]);
102
+ if (data['routeUID'] && !(typeof data['routeUID'] === 'string' || data['routeUID'] instanceof String)) {
103
+ throw new Error("Expected the field `routeUID` to be a primitive type in the JSON string but got " + data['routeUID']);
104
104
  }
105
105
  // ensure the json data is a string
106
- if (data["eventUID"] && !(typeof data["eventUID"] === "string" || data["eventUID"] instanceof String)) {
107
- throw new Error("Expected the field `eventUID` to be a primitive type in the JSON string but got " + data["eventUID"]);
106
+ if (data['eventUID'] && !(typeof data['eventUID'] === 'string' || data['eventUID'] instanceof String)) {
107
+ throw new Error("Expected the field `eventUID` to be a primitive type in the JSON string but got " + data['eventUID']);
108
108
  }
109
109
  // ensure the json data is a string
110
- if (data["status"] && !(typeof data["status"] === "string" || data["status"] instanceof String)) {
111
- throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data["status"]);
110
+ if (data['status'] && !(typeof data['status'] === 'string' || data['status'] instanceof String)) {
111
+ throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data['status']);
112
112
  }
113
113
  // ensure the json data is a string
114
- if (data["text"] && !(typeof data["text"] === "string" || data["text"] instanceof String)) {
115
- throw new Error("Expected the field `text` to be a primitive type in the JSON string but got " + data["text"]);
114
+ if (data['text'] && !(typeof data['text'] === 'string' || data['text'] instanceof String)) {
115
+ throw new Error("Expected the field `text` to be a primitive type in the JSON string but got " + data['text']);
116
116
  }
117
117
  // ensure the json data is a string
118
- if (data["url"] && !(typeof data["url"] === "string" || data["url"] instanceof String)) {
119
- throw new Error("Expected the field `url` to be a primitive type in the JSON string but got " + data["url"]);
118
+ if (data['url'] && !(typeof data['url'] === 'string' || data['url'] instanceof String)) {
119
+ throw new Error("Expected the field `url` to be a primitive type in the JSON string but got " + data['url']);
120
120
  }
121
121
  return true;
122
122
  }
@@ -126,41 +126,41 @@ var GetRouteLogsByRoute200ResponseInner = /*#__PURE__*/function () {
126
126
  * The date of the logs.
127
127
  * @member {String} date
128
128
  */
129
- GetRouteLogsByRoute200ResponseInner.prototype["date"] = undefined;
129
+ GetRouteLogsByRoute200ResponseInner.prototype['date'] = undefined;
130
130
 
131
131
  /**
132
132
  * The route UID.
133
133
  * @member {String} routeUID
134
134
  */
135
- GetRouteLogsByRoute200ResponseInner.prototype["routeUID"] = undefined;
135
+ GetRouteLogsByRoute200ResponseInner.prototype['routeUID'] = undefined;
136
136
 
137
137
  /**
138
138
  * The event UID.
139
139
  * @member {String} eventUID
140
140
  */
141
- GetRouteLogsByRoute200ResponseInner.prototype["eventUID"] = undefined;
141
+ GetRouteLogsByRoute200ResponseInner.prototype['eventUID'] = undefined;
142
142
 
143
143
  /**
144
144
  * Whether the event was routed in error
145
145
  * @member {Boolean} attn
146
146
  */
147
- GetRouteLogsByRoute200ResponseInner.prototype["attn"] = undefined;
147
+ GetRouteLogsByRoute200ResponseInner.prototype['attn'] = undefined;
148
148
 
149
149
  /**
150
150
  * The status of the event.
151
151
  * @member {String} status
152
152
  */
153
- GetRouteLogsByRoute200ResponseInner.prototype["status"] = undefined;
153
+ GetRouteLogsByRoute200ResponseInner.prototype['status'] = undefined;
154
154
 
155
155
  /**
156
156
  * The response body of the route.
157
157
  * @member {String} text
158
158
  */
159
- GetRouteLogsByRoute200ResponseInner.prototype["text"] = undefined;
159
+ GetRouteLogsByRoute200ResponseInner.prototype['text'] = undefined;
160
160
 
161
161
  /**
162
162
  * The URL of the route.
163
163
  * @member {String} url
164
164
  */
165
- GetRouteLogsByRoute200ResponseInner.prototype["url"] = undefined;
165
+ GetRouteLogsByRoute200ResponseInner.prototype['url'] = undefined;
166
166
  var _default = exports["default"] = GetRouteLogsByRoute200ResponseInner;
@@ -0,0 +1,112 @@
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 _WebhookSettings = _interopRequireDefault(require("./WebhookSettings"));
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
+ 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); }
11
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, 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 o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
12
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
13
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
14
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
15
+ 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); } }
16
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
17
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18
+ 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); } /**
19
+ * Notehub API
20
+ * The OpenAPI definition for the Notehub.io API.
21
+ *
22
+ * The version of the OpenAPI document: 1.2.0
23
+ * Contact: engineering@blues.io
24
+ *
25
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
26
+ * https://openapi-generator.tech
27
+ * Do not edit the class manually.
28
+ *
29
+ */
30
+ /**
31
+ * The GetWebhooks200Response model module.
32
+ * @module model/GetWebhooks200Response
33
+ * @version 1.0.33-beta.10
34
+ */
35
+ var GetWebhooks200Response = /*#__PURE__*/function () {
36
+ /**
37
+ * Constructs a new <code>GetWebhooks200Response</code>.
38
+ * @alias module:model/GetWebhooks200Response
39
+ */
40
+ function GetWebhooks200Response() {
41
+ _classCallCheck(this, GetWebhooks200Response);
42
+ GetWebhooks200Response.initialize(this);
43
+ }
44
+
45
+ /**
46
+ * Initializes the fields of this object.
47
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
48
+ * Only for internal use.
49
+ */
50
+ return _createClass(GetWebhooks200Response, null, [{
51
+ key: "initialize",
52
+ value: function initialize(obj) {}
53
+
54
+ /**
55
+ * Constructs a <code>GetWebhooks200Response</code> from a plain JavaScript object, optionally creating a new instance.
56
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
57
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
58
+ * @param {module:model/GetWebhooks200Response} obj Optional instance to populate.
59
+ * @return {module:model/GetWebhooks200Response} The populated <code>GetWebhooks200Response</code> instance.
60
+ */
61
+ }, {
62
+ key: "constructFromObject",
63
+ value: function constructFromObject(data, obj) {
64
+ if (data) {
65
+ obj = obj || new GetWebhooks200Response();
66
+ if (data.hasOwnProperty('webhooks')) {
67
+ obj['webhooks'] = _ApiClient["default"].convertToType(data['webhooks'], [_WebhookSettings["default"]]);
68
+ }
69
+ } else if (data === null) {
70
+ return null;
71
+ }
72
+ return obj;
73
+ }
74
+
75
+ /**
76
+ * Validates the JSON data with respect to <code>GetWebhooks200Response</code>.
77
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
78
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>GetWebhooks200Response</code>.
79
+ */
80
+ }, {
81
+ key: "validateJSON",
82
+ value: function validateJSON(data) {
83
+ if (data['webhooks']) {
84
+ // data not null
85
+ // ensure the json data is an array
86
+ if (!Array.isArray(data['webhooks'])) {
87
+ throw new Error("Expected the field `webhooks` to be an array in the JSON data but got " + data['webhooks']);
88
+ }
89
+ // validate the optional field `webhooks` (array)
90
+ var _iterator = _createForOfIteratorHelper(data['webhooks']),
91
+ _step;
92
+ try {
93
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
94
+ var item = _step.value;
95
+ _WebhookSettings["default"].validateJsonObject(item);
96
+ }
97
+ } catch (err) {
98
+ _iterator.e(err);
99
+ } finally {
100
+ _iterator.f();
101
+ }
102
+ ;
103
+ }
104
+ return true;
105
+ }
106
+ }]);
107
+ }();
108
+ /**
109
+ * @member {Array.<module:model/WebhookSettings>} webhooks
110
+ */
111
+ GetWebhooks200Response.prototype['webhooks'] = undefined;
112
+ var _default = exports["default"] = GetWebhooks200Response;
@@ -15,7 +15,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
15
15
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
16
16
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
17
17
  * Notehub API
18
- * The OpenAPI definition for the Notehub.io API.
18
+ * The OpenAPI definition for the Notehub.io API.
19
19
  *
20
20
  * The version of the OpenAPI document: 1.2.0
21
21
  * Contact: engineering@blues.io
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
28
28
  /**
29
29
  * The Google model module.
30
30
  * @module model/Google
31
- * @version 1.0.32
31
+ * @version 1.0.33-beta.10
32
32
  */
33
33
  var Google = /*#__PURE__*/function () {
34
34
  /**
@@ -62,26 +62,26 @@ var Google = /*#__PURE__*/function () {
62
62
  value: function constructFromObject(data, obj) {
63
63
  if (data) {
64
64
  obj = obj || new Google();
65
- if (data.hasOwnProperty("fleets")) {
66
- obj["fleets"] = _ApiClient["default"].convertToType(data["fleets"], ["String"]);
65
+ if (data.hasOwnProperty('fleets')) {
66
+ obj['fleets'] = _ApiClient["default"].convertToType(data['fleets'], ['String']);
67
67
  }
68
- if (data.hasOwnProperty("filter")) {
69
- obj["filter"] = _HttpFilter["default"].constructFromObject(data["filter"]);
68
+ if (data.hasOwnProperty('filter')) {
69
+ obj['filter'] = _HttpFilter["default"].constructFromObject(data['filter']);
70
70
  }
71
- if (data.hasOwnProperty("transform")) {
72
- obj["transform"] = _HttpTransform["default"].constructFromObject(data["transform"]);
71
+ if (data.hasOwnProperty('transform')) {
72
+ obj['transform'] = _HttpTransform["default"].constructFromObject(data['transform']);
73
73
  }
74
- if (data.hasOwnProperty("throttle_ms")) {
75
- obj["throttle_ms"] = _ApiClient["default"].convertToType(data["throttle_ms"], "Number");
74
+ if (data.hasOwnProperty('throttle_ms')) {
75
+ obj['throttle_ms'] = _ApiClient["default"].convertToType(data['throttle_ms'], 'Number');
76
76
  }
77
- if (data.hasOwnProperty("url")) {
78
- obj["url"] = _ApiClient["default"].convertToType(data["url"], "String");
77
+ if (data.hasOwnProperty('url')) {
78
+ obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String');
79
79
  }
80
- if (data.hasOwnProperty("timeout")) {
81
- obj["timeout"] = _ApiClient["default"].convertToType(data["timeout"], "Number");
80
+ if (data.hasOwnProperty('timeout')) {
81
+ obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'Number');
82
82
  }
83
- if (data.hasOwnProperty("token")) {
84
- obj["token"] = _ApiClient["default"].convertToType(data["token"], "String");
83
+ if (data.hasOwnProperty('token')) {
84
+ obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String');
85
85
  }
86
86
  } else if (data === null) {
87
87
  return null;
@@ -98,26 +98,26 @@ var Google = /*#__PURE__*/function () {
98
98
  key: "validateJSON",
99
99
  value: function validateJSON(data) {
100
100
  // ensure the json data is an array
101
- if (!Array.isArray(data["fleets"])) {
102
- throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data["fleets"]);
101
+ if (!Array.isArray(data['fleets'])) {
102
+ throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data['fleets']);
103
103
  }
104
104
  // validate the optional field `filter`
105
- if (data["filter"]) {
105
+ if (data['filter']) {
106
106
  // data not null
107
- _HttpFilter["default"].validateJSON(data["filter"]);
107
+ _HttpFilter["default"].validateJSON(data['filter']);
108
108
  }
109
109
  // validate the optional field `transform`
110
- if (data["transform"]) {
110
+ if (data['transform']) {
111
111
  // data not null
112
- _HttpTransform["default"].validateJSON(data["transform"]);
112
+ _HttpTransform["default"].validateJSON(data['transform']);
113
113
  }
114
114
  // ensure the json data is a string
115
- if (data["url"] && !(typeof data["url"] === "string" || data["url"] instanceof String)) {
116
- throw new Error("Expected the field `url` to be a primitive type in the JSON string but got " + data["url"]);
115
+ if (data['url'] && !(typeof data['url'] === 'string' || data['url'] instanceof String)) {
116
+ throw new Error("Expected the field `url` to be a primitive type in the JSON string but got " + data['url']);
117
117
  }
118
118
  // ensure the json data is a string
119
- if (data["token"] && !(typeof data["token"] === "string" || data["token"] instanceof String)) {
120
- throw new Error("Expected the field `token` to be a primitive type in the JSON string but got " + data["token"]);
119
+ if (data['token'] && !(typeof data['token'] === 'string' || data['token'] instanceof String)) {
120
+ throw new Error("Expected the field `token` to be a primitive type in the JSON string but got " + data['token']);
121
121
  }
122
122
  return true;
123
123
  }
@@ -127,38 +127,38 @@ var Google = /*#__PURE__*/function () {
127
127
  * list of Fleet UIDs to apply route to, if any. If empty, applies to all Fleets
128
128
  * @member {Array.<String>} fleets
129
129
  */
130
- Google.prototype["fleets"] = undefined;
130
+ Google.prototype['fleets'] = undefined;
131
131
 
132
132
  /**
133
133
  * @member {module:model/HttpFilter} filter
134
134
  */
135
- Google.prototype["filter"] = undefined;
135
+ Google.prototype['filter'] = undefined;
136
136
 
137
137
  /**
138
138
  * @member {module:model/HttpTransform} transform
139
139
  */
140
- Google.prototype["transform"] = undefined;
140
+ Google.prototype['transform'] = undefined;
141
141
 
142
142
  /**
143
143
  * @member {Number} throttle_ms
144
144
  */
145
- Google.prototype["throttle_ms"] = undefined;
145
+ Google.prototype['throttle_ms'] = undefined;
146
146
 
147
147
  /**
148
148
  * @member {String} url
149
149
  */
150
- Google.prototype["url"] = undefined;
150
+ Google.prototype['url'] = undefined;
151
151
 
152
152
  /**
153
153
  * Timeout in seconds for each request
154
154
  * @member {Number} timeout
155
155
  * @default 15
156
156
  */
157
- Google.prototype["timeout"] = 15;
157
+ Google.prototype['timeout'] = 15;
158
158
 
159
159
  /**
160
160
  * Optional authentication token
161
161
  * @member {String} token
162
162
  */
163
- Google.prototype["token"] = undefined;
163
+ Google.prototype['token'] = undefined;
164
164
  var _default = exports["default"] = Google;
@@ -13,7 +13,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
13
13
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
14
14
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
15
15
  * Notehub API
16
- * The OpenAPI definition for the Notehub.io API.
16
+ * The OpenAPI definition for the Notehub.io API.
17
17
  *
18
18
  * The version of the OpenAPI document: 1.2.0
19
19
  * Contact: engineering@blues.io
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The HandleNoteChanges200Response model module.
28
28
  * @module model/HandleNoteChanges200Response
29
- * @version 1.0.32
29
+ * @version 1.0.33-beta.10
30
30
  */
31
31
  var HandleNoteChanges200Response = /*#__PURE__*/function () {
32
32
  /**
@@ -59,14 +59,14 @@ var HandleNoteChanges200Response = /*#__PURE__*/function () {
59
59
  value: function constructFromObject(data, obj) {
60
60
  if (data) {
61
61
  obj = obj || new HandleNoteChanges200Response();
62
- if (data.hasOwnProperty("total")) {
63
- obj["total"] = _ApiClient["default"].convertToType(data["total"], "Number");
62
+ if (data.hasOwnProperty('total')) {
63
+ obj['total'] = _ApiClient["default"].convertToType(data['total'], 'Number');
64
64
  }
65
- if (data.hasOwnProperty("changes")) {
66
- obj["changes"] = _ApiClient["default"].convertToType(data["changes"], "Number");
65
+ if (data.hasOwnProperty('changes')) {
66
+ obj['changes'] = _ApiClient["default"].convertToType(data['changes'], 'Number');
67
67
  }
68
- if (data.hasOwnProperty("notes")) {
69
- obj["notes"] = _ApiClient["default"].convertToType(data["notes"], Object);
68
+ if (data.hasOwnProperty('notes')) {
69
+ obj['notes'] = _ApiClient["default"].convertToType(data['notes'], Object);
70
70
  }
71
71
  } else if (data === null) {
72
72
  return null;
@@ -90,17 +90,17 @@ var HandleNoteChanges200Response = /*#__PURE__*/function () {
90
90
  * The total number of notes.
91
91
  * @member {Number} total
92
92
  */
93
- HandleNoteChanges200Response.prototype["total"] = undefined;
93
+ HandleNoteChanges200Response.prototype['total'] = undefined;
94
94
 
95
95
  /**
96
96
  * The number of pending changes in the Notefile.
97
97
  * @member {Number} changes
98
98
  */
99
- HandleNoteChanges200Response.prototype["changes"] = undefined;
99
+ HandleNoteChanges200Response.prototype['changes'] = undefined;
100
100
 
101
101
  /**
102
102
  * An object with a key for each note and a value object with the body of each Note and the time the Note was added.
103
103
  * @member {Object} notes
104
104
  */
105
- HandleNoteChanges200Response.prototype["notes"] = undefined;
105
+ HandleNoteChanges200Response.prototype['notes'] = undefined;
106
106
  var _default = exports["default"] = HandleNoteChanges200Response;