@blues-inc/notehub-js 1.0.28 → 1.0.29-beta.2

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 (116) hide show
  1. package/README.md +217 -190
  2. package/dist/ApiClient.js +156 -156
  3. package/dist/api/AlertApi.js +22 -22
  4. package/dist/api/AuthorizationApi.js +16 -16
  5. package/dist/api/BillingAccountApi.js +14 -14
  6. package/dist/api/DeviceApi.js +351 -351
  7. package/dist/api/EventApi.js +118 -118
  8. package/dist/api/MonitorApi.js +52 -52
  9. package/dist/api/ProjectApi.js +384 -339
  10. package/dist/api/RepositoryApi.js +605 -0
  11. package/dist/api/RouteApi.js +74 -74
  12. package/dist/index.js +56 -0
  13. package/dist/model/Alert.js +76 -74
  14. package/dist/model/AlertDataInner.js +35 -35
  15. package/dist/model/AlertNotificationsInner.js +18 -18
  16. package/dist/model/Aws.js +65 -65
  17. package/dist/model/Azure.js +43 -43
  18. package/dist/model/BillingAccount.js +21 -21
  19. package/dist/model/BillingAccountRole.js +9 -9
  20. package/dist/model/Body.js +5 -5
  21. package/dist/model/CloneProjectRequest.js +20 -20
  22. package/dist/model/Contact.js +22 -22
  23. package/dist/model/CreateFleetRequest.js +12 -12
  24. package/dist/model/CreateMonitor.js +126 -125
  25. package/dist/model/CreateProductRequest.js +22 -22
  26. package/dist/model/CreateProjectRequest.js +16 -16
  27. package/dist/model/CreateUpdateRepository.js +115 -0
  28. package/dist/model/CurrentFirmware.js +12 -12
  29. package/dist/model/DFUEnv.js +12 -12
  30. package/dist/model/DFUState.js +65 -65
  31. package/dist/model/DataField.js +92 -0
  32. package/dist/model/DataSet.js +164 -0
  33. package/dist/model/DataSetField.js +137 -0
  34. package/dist/model/DeleteDeviceFleetsRequest.js +8 -8
  35. package/dist/model/Device.js +94 -94
  36. package/dist/model/DeviceDfuHistory.js +20 -19
  37. package/dist/model/DeviceDfuHistoryPage.js +13 -12
  38. package/dist/model/DeviceDfuStateMachine.js +25 -24
  39. package/dist/model/DeviceDfuStateMachineNode.js +22 -22
  40. package/dist/model/DeviceDfuStatus.js +20 -20
  41. package/dist/model/DeviceDfuStatusCurrent.js +32 -32
  42. package/dist/model/DeviceDfuStatusPage.js +13 -12
  43. package/dist/model/DeviceSession.js +182 -182
  44. package/dist/model/DeviceTowerInfo.js +14 -14
  45. package/dist/model/DeviceUsage.js +32 -32
  46. package/dist/model/DfuActionRequest.js +7 -7
  47. package/dist/model/EmailNotification.js +7 -7
  48. package/dist/model/EnvironmentVariables.js +8 -8
  49. package/dist/model/Error.js +31 -31
  50. package/dist/model/Event.js +243 -243
  51. package/dist/model/Firmware.js +49 -49
  52. package/dist/model/FirmwareInfo.js +60 -60
  53. package/dist/model/Fleet.js +23 -23
  54. package/dist/model/GetAlerts200Response.js +15 -14
  55. package/dist/model/GetBillingAccounts200Response.js +10 -9
  56. package/dist/model/GetDeviceEnvironmentVariables200Response.js +12 -12
  57. package/dist/model/GetDeviceHealthLog200Response.js +12 -11
  58. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +19 -19
  59. package/dist/model/GetDeviceLatest200Response.js +10 -9
  60. package/dist/model/GetDevicePublicKey200Response.js +16 -16
  61. package/dist/model/GetDeviceSessions200Response.js +17 -16
  62. package/dist/model/GetProjectDevicePublicKeys200Response.js +17 -16
  63. package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
  64. package/dist/model/GetProjectDevices200Response.js +17 -16
  65. package/dist/model/GetProjectEvents200Response.js +21 -20
  66. package/dist/model/GetProjectEventsByCursor200Response.js +24 -23
  67. package/dist/model/GetProjectFleets200Response.js +12 -11
  68. package/dist/model/GetProjectMembers200Response.js +12 -11
  69. package/dist/model/GetProjectProducts200Response.js +10 -9
  70. package/dist/model/GetProjects200Response.js +10 -9
  71. package/dist/model/GetRouteLogsByRoute200ResponseInner.js +35 -35
  72. package/dist/model/Google.js +33 -33
  73. package/dist/model/HandleNoteChanges200Response.js +11 -11
  74. package/dist/model/HandleNoteGet200Response.js +13 -13
  75. package/dist/model/HandleNoteSignal200Response.js +5 -5
  76. package/dist/model/HandleNotefileChanges200Response.js +11 -11
  77. package/dist/model/HandleNotefileChangesPending200Response.js +14 -14
  78. package/dist/model/HandleNotefileDeleteRequest.js +7 -7
  79. package/dist/model/Http.js +35 -35
  80. package/dist/model/HttpFilter.js +19 -19
  81. package/dist/model/HttpTransform.js +20 -20
  82. package/dist/model/Location.js +40 -40
  83. package/dist/model/Login200Response.js +7 -7
  84. package/dist/model/LoginRequest.js +12 -12
  85. package/dist/model/Monitor.js +100 -99
  86. package/dist/model/MonitorAlertRoutesInner.js +9 -10
  87. package/dist/model/Mqtt.js +66 -66
  88. package/dist/model/Note.js +10 -10
  89. package/dist/model/NotehubRoute.js +36 -36
  90. package/dist/model/NotehubRouteSchema.js +45 -46
  91. package/dist/model/PostProvisionProjectDeviceRequest.js +18 -18
  92. package/dist/model/Product.js +26 -26
  93. package/dist/model/Project.js +34 -34
  94. package/dist/model/ProjectMember.js +22 -22
  95. package/dist/model/Proxy.js +24 -24
  96. package/dist/model/PutDeviceFleetsRequest.js +8 -8
  97. package/dist/model/QuestionDataResponseLineChart.js +204 -0
  98. package/dist/model/QuestionDataResponseMap.js +143 -0
  99. package/dist/model/Radresponder.js +25 -25
  100. package/dist/model/Repository.js +129 -0
  101. package/dist/model/Role.js +9 -9
  102. package/dist/model/Slack.js +53 -53
  103. package/dist/model/SlackBearerNotification.js +25 -25
  104. package/dist/model/SlackWebHookNotification.js +20 -20
  105. package/dist/model/Snowflake.js +45 -45
  106. package/dist/model/SnowflakeTransform.js +12 -12
  107. package/dist/model/Thingworx.js +33 -33
  108. package/dist/model/TowerLocation.js +52 -52
  109. package/dist/model/Twilio.js +43 -43
  110. package/dist/model/UpdateFleetRequest.js +22 -22
  111. package/dist/model/UploadMetadata.js +59 -59
  112. package/dist/model/UserDbRoute.js +25 -25
  113. package/dist/model/UserDfuStateMachine.js +20 -20
  114. package/dist/model/UserDfuStateMachineStatus.js +20 -20
  115. package/dist/model/UserFirmwareInfo.js +12 -12
  116. 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.28
33
+ * @version 1.0.29-beta.2
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.28
33
+ * @version 1.0.29-beta.2
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.28
29
+ * @version 1.0.29-beta.2
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;
@@ -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.28
31
+ * @version 1.0.29-beta.2
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.28
29
+ * @version 1.0.29-beta.2
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;
@@ -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 HandleNoteGet200Response model module.
28
28
  * @module model/HandleNoteGet200Response
29
- * @version 1.0.28
29
+ * @version 1.0.29-beta.2
30
30
  */
31
31
  var HandleNoteGet200Response = /*#__PURE__*/function () {
32
32
  /**
@@ -59,14 +59,14 @@ var HandleNoteGet200Response = /*#__PURE__*/function () {
59
59
  value: function constructFromObject(data, obj) {
60
60
  if (data) {
61
61
  obj = obj || new HandleNoteGet200Response();
62
- if (data.hasOwnProperty("body")) {
63
- obj["body"] = _ApiClient["default"].convertToType(data["body"], Object);
62
+ if (data.hasOwnProperty('body')) {
63
+ obj['body'] = _ApiClient["default"].convertToType(data['body'], Object);
64
64
  }
65
- if (data.hasOwnProperty("payload")) {
66
- obj["payload"] = _ApiClient["default"].convertToType(data["payload"], "String");
65
+ if (data.hasOwnProperty('payload')) {
66
+ obj['payload'] = _ApiClient["default"].convertToType(data['payload'], 'String');
67
67
  }
68
- if (data.hasOwnProperty("time")) {
69
- obj["time"] = _ApiClient["default"].convertToType(data["time"], "Number");
68
+ if (data.hasOwnProperty('time')) {
69
+ obj['time'] = _ApiClient["default"].convertToType(data['time'], 'Number');
70
70
  }
71
71
  } else if (data === null) {
72
72
  return null;
@@ -83,8 +83,8 @@ var HandleNoteGet200Response = /*#__PURE__*/function () {
83
83
  key: "validateJSON",
84
84
  value: function validateJSON(data) {
85
85
  // ensure the json data is a string
86
- if (data["payload"] && !(typeof data["payload"] === "string" || data["payload"] instanceof String)) {
87
- throw new Error("Expected the field `payload` to be a primitive type in the JSON string but got " + data["payload"]);
86
+ if (data['payload'] && !(typeof data['payload'] === 'string' || data['payload'] instanceof String)) {
87
+ throw new Error("Expected the field `payload` to be a primitive type in the JSON string but got " + data['payload']);
88
88
  }
89
89
  return true;
90
90
  }
@@ -94,17 +94,17 @@ var HandleNoteGet200Response = /*#__PURE__*/function () {
94
94
  * The note body
95
95
  * @member {Object} body
96
96
  */
97
- HandleNoteGet200Response.prototype["body"] = undefined;
97
+ HandleNoteGet200Response.prototype['body'] = undefined;
98
98
 
99
99
  /**
100
100
  * The note payload
101
101
  * @member {String} payload
102
102
  */
103
- HandleNoteGet200Response.prototype["payload"] = undefined;
103
+ HandleNoteGet200Response.prototype['payload'] = undefined;
104
104
 
105
105
  /**
106
106
  * The time the Note was added to the Notecard or Notehub
107
107
  * @member {Number} time
108
108
  */
109
- HandleNoteGet200Response.prototype["time"] = undefined;
109
+ HandleNoteGet200Response.prototype['time'] = undefined;
110
110
  var _default = exports["default"] = HandleNoteGet200Response;
@@ -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 HandleNoteSignal200Response model module.
28
28
  * @module model/HandleNoteSignal200Response
29
- * @version 1.0.28
29
+ * @version 1.0.29-beta.2
30
30
  */
31
31
  var HandleNoteSignal200Response = /*#__PURE__*/function () {
32
32
  /**
@@ -59,8 +59,8 @@ var HandleNoteSignal200Response = /*#__PURE__*/function () {
59
59
  value: function constructFromObject(data, obj) {
60
60
  if (data) {
61
61
  obj = obj || new HandleNoteSignal200Response();
62
- if (data.hasOwnProperty("connected")) {
63
- obj["connected"] = _ApiClient["default"].convertToType(data["connected"], "Boolean");
62
+ if (data.hasOwnProperty('connected')) {
63
+ obj['connected'] = _ApiClient["default"].convertToType(data['connected'], 'Boolean');
64
64
  }
65
65
  } else if (data === null) {
66
66
  return null;
@@ -84,5 +84,5 @@ var HandleNoteSignal200Response = /*#__PURE__*/function () {
84
84
  * true if the Notecard is connected to Notehub.
85
85
  * @member {Boolean} connected
86
86
  */
87
- HandleNoteSignal200Response.prototype["connected"] = undefined;
87
+ HandleNoteSignal200Response.prototype['connected'] = undefined;
88
88
  var _default = exports["default"] = HandleNoteSignal200Response;