@blues-inc/notehub-js 1.0.10 → 1.0.12
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.
- package/README.md +175 -180
- package/dist/ApiClient.js +155 -155
- package/dist/api/AuthorizationApi.js +15 -15
- package/dist/api/BillingAccountApi.js +13 -13
- package/dist/api/DeviceApi.js +157 -157
- package/dist/api/DevicesApi.js +58 -58
- package/dist/api/EnvironmentVariablesApi.js +110 -110
- package/dist/api/EventApi.js +94 -94
- package/dist/api/FilesApi.js +42 -42
- package/dist/api/FleetApi.js +160 -160
- package/dist/api/NotesApi.js +105 -105
- package/dist/api/ProductApi.js +29 -29
- package/dist/api/ProjectApi.js +137 -137
- package/dist/api/RouteApi.js +51 -51
- package/dist/index.js +14 -0
- package/dist/model/Aws.js +64 -64
- package/dist/model/Azure.js +42 -42
- package/dist/model/BillingAccount.js +20 -20
- package/dist/model/Body.js +4 -4
- package/dist/model/Contact.js +21 -21
- package/dist/model/CreateFleetRequest.js +6 -6
- package/dist/model/CreateProductRequest.js +21 -21
- package/dist/model/CreateProjectRequest.js +13 -13
- package/dist/model/DFUEnv.js +11 -11
- package/dist/model/DFUState.js +64 -64
- package/dist/model/DeleteDeviceFleetsRequest.js +7 -7
- package/dist/model/Device.js +82 -82
- package/dist/model/DeviceSession.js +181 -181
- package/dist/model/DeviceTowerInfo.js +13 -13
- package/dist/model/DeviceUsage.js +31 -31
- package/dist/model/Edgeimpulse.js +214 -0
- package/dist/model/EdgeimpulseSensorsInner.js +106 -0
- package/dist/model/EnvironmentVariables.js +7 -7
- package/dist/model/Error.js +30 -30
- package/dist/model/Event.js +222 -222
- package/dist/model/Fleet.js +20 -20
- package/dist/model/GetBillingAccounts200Response.js +8 -9
- package/dist/model/GetDeviceEnvironmentVariables200Response.js +11 -11
- package/dist/model/GetDeviceHealthLog200Response.js +10 -11
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +18 -18
- package/dist/model/GetDeviceLatest200Response.js +8 -9
- package/dist/model/GetDevicePublicKey200Response.js +15 -15
- package/dist/model/GetDeviceSessions200Response.js +15 -16
- package/dist/model/GetProjectDevicePublicKeys200Response.js +15 -16
- package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +11 -11
- package/dist/model/GetProjectDevices200Response.js +15 -16
- package/dist/model/GetProjectEvents200Response.js +20 -21
- package/dist/model/GetProjectEventsByCursor200Response.js +22 -23
- package/dist/model/GetProjectFleets200Response.js +10 -11
- package/dist/model/GetProjectMembers200Response.js +10 -11
- package/dist/model/GetProjectProducts200Response.js +8 -9
- package/dist/model/GetProjects200Response.js +8 -9
- package/dist/model/Google.js +27 -27
- package/dist/model/HandleNoteChanges200Response.js +10 -10
- package/dist/model/HandleNoteGet200Response.js +12 -12
- package/dist/model/HandleNoteSignal200Response.js +4 -4
- package/dist/model/HandleNotefileChanges200Response.js +10 -10
- package/dist/model/HandleNotefileChangesPending200Response.js +13 -13
- package/dist/model/HandleNotefileDeleteRequest.js +6 -6
- package/dist/model/Http.js +34 -34
- package/dist/model/HttpFilter.js +18 -18
- package/dist/model/HttpTransform.js +19 -19
- package/dist/model/Location.js +39 -39
- package/dist/model/Login200Response.js +6 -6
- package/dist/model/LoginRequest.js +11 -11
- package/dist/model/Mqtt.js +65 -65
- package/dist/model/Note.js +9 -9
- package/dist/model/Product.js +25 -25
- package/dist/model/Project.js +33 -33
- package/dist/model/ProjectMember.js +21 -21
- package/dist/model/Proxy.js +23 -23
- package/dist/model/PutDeviceFleetsRequest.js +7 -7
- package/dist/model/Radresponder.js +24 -24
- package/dist/model/Route.js +40 -35
- package/dist/model/RouteSchema.js +39 -38
- package/dist/model/Snowflake.js +44 -44
- package/dist/model/SnowflakeTransform.js +11 -11
- package/dist/model/Thingworx.js +32 -32
- package/dist/model/TowerLocation.js +51 -51
- package/dist/model/Twilio.js +42 -42
- package/dist/model/UpdateFleetRequest.js +16 -16
- package/dist/model/UserDbRoute.js +24 -24
- package/package.json +3 -3
package/dist/api/NotesApi.js
CHANGED
|
@@ -17,18 +17,18 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
17
17
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
18
18
|
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); }
|
|
19
19
|
/**
|
|
20
|
-
* Notes service.
|
|
21
|
-
* @module api/NotesApi
|
|
22
|
-
* @version 1.0.
|
|
23
|
-
*/
|
|
20
|
+
* Notes service.
|
|
21
|
+
* @module api/NotesApi
|
|
22
|
+
* @version 1.0.12
|
|
23
|
+
*/
|
|
24
24
|
var NotesApi = /*#__PURE__*/function () {
|
|
25
25
|
/**
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
26
|
+
* Constructs a new NotesApi.
|
|
27
|
+
* @alias module:api/NotesApi
|
|
28
|
+
* @class
|
|
29
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
30
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
31
|
+
*/
|
|
32
32
|
function NotesApi(apiClient) {
|
|
33
33
|
_classCallCheck(this, NotesApi);
|
|
34
34
|
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
@@ -36,9 +36,9 @@ var NotesApi = /*#__PURE__*/function () {
|
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
38
|
* Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
|
|
39
|
-
* @param {String} projectUID
|
|
40
|
-
* @param {String} deviceUID
|
|
41
|
-
* @param {String} notefileID
|
|
39
|
+
* @param {String} projectUID
|
|
40
|
+
* @param {String} deviceUID
|
|
41
|
+
* @param {String} notefileID
|
|
42
42
|
* @param {module:model/Note} note Body or payload of note to be added to the device
|
|
43
43
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
44
44
|
*/
|
|
@@ -63,25 +63,25 @@ var NotesApi = /*#__PURE__*/function () {
|
|
|
63
63
|
throw new _Error["default"]("Missing the required parameter 'note' when calling handleNoteAdd");
|
|
64
64
|
}
|
|
65
65
|
var pathParams = {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
66
|
+
projectUID: projectUID,
|
|
67
|
+
deviceUID: deviceUID,
|
|
68
|
+
notefileID: notefileID
|
|
69
69
|
};
|
|
70
70
|
var queryParams = {};
|
|
71
71
|
var headerParams = {};
|
|
72
72
|
var formParams = {};
|
|
73
|
-
var authNames = [
|
|
74
|
-
var contentTypes = [
|
|
75
|
-
var accepts = [
|
|
73
|
+
var authNames = ["api_key"];
|
|
74
|
+
var contentTypes = ["application/json"];
|
|
75
|
+
var accepts = ["application/json"];
|
|
76
76
|
var returnType = null;
|
|
77
|
-
return this.apiClient.callApi(
|
|
77
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/notes/{notefileID}", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
/**
|
|
81
81
|
* Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
|
|
82
|
-
* @param {String} projectUID
|
|
83
|
-
* @param {String} deviceUID
|
|
84
|
-
* @param {String} notefileID
|
|
82
|
+
* @param {String} projectUID
|
|
83
|
+
* @param {String} deviceUID
|
|
84
|
+
* @param {String} notefileID
|
|
85
85
|
* @param {module:model/Note} note Body or payload of note to be added to the device
|
|
86
86
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
87
87
|
*/
|
|
@@ -95,9 +95,9 @@ var NotesApi = /*#__PURE__*/function () {
|
|
|
95
95
|
|
|
96
96
|
/**
|
|
97
97
|
* Incrementally retrieve changes within a specific Notefile.
|
|
98
|
-
* @param {String} projectUID
|
|
99
|
-
* @param {String} deviceUID
|
|
100
|
-
* @param {String} notefileID
|
|
98
|
+
* @param {String} projectUID
|
|
99
|
+
* @param {String} deviceUID
|
|
100
|
+
* @param {String} notefileID
|
|
101
101
|
* @param {Object} opts Optional parameters
|
|
102
102
|
* @param {String} opts.tracker The change tracker ID.
|
|
103
103
|
* @param {Number} opts.max The maximum number of Notes to return in the request.
|
|
@@ -125,32 +125,32 @@ var NotesApi = /*#__PURE__*/function () {
|
|
|
125
125
|
throw new _Error["default"]("Missing the required parameter 'notefileID' when calling handleNoteChanges");
|
|
126
126
|
}
|
|
127
127
|
var pathParams = {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
128
|
+
projectUID: projectUID,
|
|
129
|
+
deviceUID: deviceUID,
|
|
130
|
+
notefileID: notefileID
|
|
131
131
|
};
|
|
132
132
|
var queryParams = {
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
133
|
+
tracker: opts["tracker"],
|
|
134
|
+
max: opts["max"],
|
|
135
|
+
start: opts["start"],
|
|
136
|
+
stop: opts["stop"],
|
|
137
|
+
deleted: opts["deleted"],
|
|
138
|
+
"delete": opts["_delete"]
|
|
139
139
|
};
|
|
140
140
|
var headerParams = {};
|
|
141
141
|
var formParams = {};
|
|
142
|
-
var authNames = [
|
|
142
|
+
var authNames = ["api_key"];
|
|
143
143
|
var contentTypes = [];
|
|
144
|
-
var accepts = [
|
|
144
|
+
var accepts = ["application/json"];
|
|
145
145
|
var returnType = _HandleNoteChanges200Response["default"];
|
|
146
|
-
return this.apiClient.callApi(
|
|
146
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/notes/{notefileID}/changes", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
/**
|
|
150
150
|
* Incrementally retrieve changes within a specific Notefile.
|
|
151
|
-
* @param {String} projectUID
|
|
152
|
-
* @param {String} deviceUID
|
|
153
|
-
* @param {String} notefileID
|
|
151
|
+
* @param {String} projectUID
|
|
152
|
+
* @param {String} deviceUID
|
|
153
|
+
* @param {String} notefileID
|
|
154
154
|
* @param {Object} opts Optional parameters
|
|
155
155
|
* @param {String} opts.tracker The change tracker ID.
|
|
156
156
|
* @param {Number} opts.max The maximum number of Notes to return in the request.
|
|
@@ -170,10 +170,10 @@ var NotesApi = /*#__PURE__*/function () {
|
|
|
170
170
|
|
|
171
171
|
/**
|
|
172
172
|
* Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
|
|
173
|
-
* @param {String} projectUID
|
|
174
|
-
* @param {String} deviceUID
|
|
175
|
-
* @param {String} notefileID
|
|
176
|
-
* @param {String} noteID
|
|
173
|
+
* @param {String} projectUID
|
|
174
|
+
* @param {String} deviceUID
|
|
175
|
+
* @param {String} notefileID
|
|
176
|
+
* @param {String} noteID
|
|
177
177
|
* @param {module:model/Note} note Body or payload of note to be added to the device
|
|
178
178
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
179
179
|
*/
|
|
@@ -202,27 +202,27 @@ var NotesApi = /*#__PURE__*/function () {
|
|
|
202
202
|
throw new _Error["default"]("Missing the required parameter 'note' when calling handleNoteCreateAdd");
|
|
203
203
|
}
|
|
204
204
|
var pathParams = {
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
205
|
+
projectUID: projectUID,
|
|
206
|
+
deviceUID: deviceUID,
|
|
207
|
+
notefileID: notefileID,
|
|
208
|
+
noteID: noteID
|
|
209
209
|
};
|
|
210
210
|
var queryParams = {};
|
|
211
211
|
var headerParams = {};
|
|
212
212
|
var formParams = {};
|
|
213
|
-
var authNames = [
|
|
214
|
-
var contentTypes = [
|
|
215
|
-
var accepts = [
|
|
213
|
+
var authNames = ["api_key"];
|
|
214
|
+
var contentTypes = ["application/json"];
|
|
215
|
+
var accepts = ["application/json"];
|
|
216
216
|
var returnType = null;
|
|
217
|
-
return this.apiClient.callApi(
|
|
217
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
218
218
|
}
|
|
219
219
|
|
|
220
220
|
/**
|
|
221
221
|
* Adds a Note to a Notefile, creating the Notefile if it doesn't yet exist.
|
|
222
|
-
* @param {String} projectUID
|
|
223
|
-
* @param {String} deviceUID
|
|
224
|
-
* @param {String} notefileID
|
|
225
|
-
* @param {String} noteID
|
|
222
|
+
* @param {String} projectUID
|
|
223
|
+
* @param {String} deviceUID
|
|
224
|
+
* @param {String} notefileID
|
|
225
|
+
* @param {String} noteID
|
|
226
226
|
* @param {module:model/Note} note Body or payload of note to be added to the device
|
|
227
227
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
228
228
|
*/
|
|
@@ -236,10 +236,10 @@ var NotesApi = /*#__PURE__*/function () {
|
|
|
236
236
|
|
|
237
237
|
/**
|
|
238
238
|
* Delete a note from a DB notefile
|
|
239
|
-
* @param {String} projectUID
|
|
240
|
-
* @param {String} deviceUID
|
|
241
|
-
* @param {String} notefileID
|
|
242
|
-
* @param {String} noteID
|
|
239
|
+
* @param {String} projectUID
|
|
240
|
+
* @param {String} deviceUID
|
|
241
|
+
* @param {String} notefileID
|
|
242
|
+
* @param {String} noteID
|
|
243
243
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
244
244
|
*/
|
|
245
245
|
}, {
|
|
@@ -263,27 +263,27 @@ var NotesApi = /*#__PURE__*/function () {
|
|
|
263
263
|
throw new _Error["default"]("Missing the required parameter 'noteID' when calling handleNoteDelete");
|
|
264
264
|
}
|
|
265
265
|
var pathParams = {
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
266
|
+
projectUID: projectUID,
|
|
267
|
+
deviceUID: deviceUID,
|
|
268
|
+
notefileID: notefileID,
|
|
269
|
+
noteID: noteID
|
|
270
270
|
};
|
|
271
271
|
var queryParams = {};
|
|
272
272
|
var headerParams = {};
|
|
273
273
|
var formParams = {};
|
|
274
|
-
var authNames = [
|
|
274
|
+
var authNames = ["api_key"];
|
|
275
275
|
var contentTypes = [];
|
|
276
|
-
var accepts = [
|
|
276
|
+
var accepts = ["application/json"];
|
|
277
277
|
var returnType = null;
|
|
278
|
-
return this.apiClient.callApi(
|
|
278
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
279
279
|
}
|
|
280
280
|
|
|
281
281
|
/**
|
|
282
282
|
* Delete a note from a DB notefile
|
|
283
|
-
* @param {String} projectUID
|
|
284
|
-
* @param {String} deviceUID
|
|
285
|
-
* @param {String} notefileID
|
|
286
|
-
* @param {String} noteID
|
|
283
|
+
* @param {String} projectUID
|
|
284
|
+
* @param {String} deviceUID
|
|
285
|
+
* @param {String} notefileID
|
|
286
|
+
* @param {String} noteID
|
|
287
287
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
288
288
|
*/
|
|
289
289
|
}, {
|
|
@@ -296,10 +296,10 @@ var NotesApi = /*#__PURE__*/function () {
|
|
|
296
296
|
|
|
297
297
|
/**
|
|
298
298
|
* Get a note from a DB notefile
|
|
299
|
-
* @param {String} projectUID
|
|
300
|
-
* @param {String} deviceUID
|
|
301
|
-
* @param {String} notefileID
|
|
302
|
-
* @param {String} noteID
|
|
299
|
+
* @param {String} projectUID
|
|
300
|
+
* @param {String} deviceUID
|
|
301
|
+
* @param {String} notefileID
|
|
302
|
+
* @param {String} noteID
|
|
303
303
|
* @param {Object} opts Optional parameters
|
|
304
304
|
* @param {Boolean} opts._delete Whether to delete the note from the DB notefile
|
|
305
305
|
* @param {Boolean} opts.deleted Whether to return deleted notes
|
|
@@ -327,30 +327,30 @@ var NotesApi = /*#__PURE__*/function () {
|
|
|
327
327
|
throw new _Error["default"]("Missing the required parameter 'noteID' when calling handleNoteGet");
|
|
328
328
|
}
|
|
329
329
|
var pathParams = {
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
330
|
+
projectUID: projectUID,
|
|
331
|
+
deviceUID: deviceUID,
|
|
332
|
+
notefileID: notefileID,
|
|
333
|
+
noteID: noteID
|
|
334
334
|
};
|
|
335
335
|
var queryParams = {
|
|
336
|
-
|
|
337
|
-
|
|
336
|
+
"delete": opts["_delete"],
|
|
337
|
+
deleted: opts["deleted"]
|
|
338
338
|
};
|
|
339
339
|
var headerParams = {};
|
|
340
340
|
var formParams = {};
|
|
341
|
-
var authNames = [
|
|
341
|
+
var authNames = ["api_key"];
|
|
342
342
|
var contentTypes = [];
|
|
343
|
-
var accepts = [
|
|
343
|
+
var accepts = ["application/json"];
|
|
344
344
|
var returnType = _HandleNoteGet200Response["default"];
|
|
345
|
-
return this.apiClient.callApi(
|
|
345
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
346
346
|
}
|
|
347
347
|
|
|
348
348
|
/**
|
|
349
349
|
* Get a note from a DB notefile
|
|
350
|
-
* @param {String} projectUID
|
|
351
|
-
* @param {String} deviceUID
|
|
352
|
-
* @param {String} notefileID
|
|
353
|
-
* @param {String} noteID
|
|
350
|
+
* @param {String} projectUID
|
|
351
|
+
* @param {String} deviceUID
|
|
352
|
+
* @param {String} notefileID
|
|
353
|
+
* @param {String} noteID
|
|
354
354
|
* @param {Object} opts Optional parameters
|
|
355
355
|
* @param {Boolean} opts._delete Whether to delete the note from the DB notefile
|
|
356
356
|
* @param {Boolean} opts.deleted Whether to return deleted notes
|
|
@@ -366,10 +366,10 @@ var NotesApi = /*#__PURE__*/function () {
|
|
|
366
366
|
|
|
367
367
|
/**
|
|
368
368
|
* Update a note in a DB notefile
|
|
369
|
-
* @param {String} projectUID
|
|
370
|
-
* @param {String} deviceUID
|
|
371
|
-
* @param {String} notefileID
|
|
372
|
-
* @param {String} noteID
|
|
369
|
+
* @param {String} projectUID
|
|
370
|
+
* @param {String} deviceUID
|
|
371
|
+
* @param {String} notefileID
|
|
372
|
+
* @param {String} noteID
|
|
373
373
|
* @param {module:model/Note} note Body or payload of note to be added to the device
|
|
374
374
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
375
375
|
*/
|
|
@@ -398,27 +398,27 @@ var NotesApi = /*#__PURE__*/function () {
|
|
|
398
398
|
throw new _Error["default"]("Missing the required parameter 'note' when calling handleNoteUpdate");
|
|
399
399
|
}
|
|
400
400
|
var pathParams = {
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
401
|
+
projectUID: projectUID,
|
|
402
|
+
deviceUID: deviceUID,
|
|
403
|
+
notefileID: notefileID,
|
|
404
|
+
noteID: noteID
|
|
405
405
|
};
|
|
406
406
|
var queryParams = {};
|
|
407
407
|
var headerParams = {};
|
|
408
408
|
var formParams = {};
|
|
409
|
-
var authNames = [
|
|
410
|
-
var contentTypes = [
|
|
411
|
-
var accepts = [
|
|
409
|
+
var authNames = ["api_key"];
|
|
410
|
+
var contentTypes = ["application/json"];
|
|
411
|
+
var accepts = ["application/json"];
|
|
412
412
|
var returnType = null;
|
|
413
|
-
return this.apiClient.callApi(
|
|
413
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/notes/{notefileID}/{noteID}", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
414
414
|
}
|
|
415
415
|
|
|
416
416
|
/**
|
|
417
417
|
* Update a note in a DB notefile
|
|
418
|
-
* @param {String} projectUID
|
|
419
|
-
* @param {String} deviceUID
|
|
420
|
-
* @param {String} notefileID
|
|
421
|
-
* @param {String} noteID
|
|
418
|
+
* @param {String} projectUID
|
|
419
|
+
* @param {String} deviceUID
|
|
420
|
+
* @param {String} notefileID
|
|
421
|
+
* @param {String} noteID
|
|
422
422
|
* @param {module:model/Note} note Body or payload of note to be added to the device
|
|
423
423
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
424
424
|
*/
|
package/dist/api/ProductApi.js
CHANGED
|
@@ -18,18 +18,18 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
18
18
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
19
19
|
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); }
|
|
20
20
|
/**
|
|
21
|
-
* Product service.
|
|
22
|
-
* @module api/ProductApi
|
|
23
|
-
* @version 1.0.
|
|
24
|
-
*/
|
|
21
|
+
* Product service.
|
|
22
|
+
* @module api/ProductApi
|
|
23
|
+
* @version 1.0.12
|
|
24
|
+
*/
|
|
25
25
|
var ProductApi = /*#__PURE__*/function () {
|
|
26
26
|
/**
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
27
|
+
* Constructs a new ProductApi.
|
|
28
|
+
* @alias module:api/ProductApi
|
|
29
|
+
* @class
|
|
30
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
31
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
32
|
+
*/
|
|
33
33
|
function ProductApi(apiClient) {
|
|
34
34
|
_classCallCheck(this, ProductApi);
|
|
35
35
|
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
@@ -37,7 +37,7 @@ var ProductApi = /*#__PURE__*/function () {
|
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
39
|
* Create Product within a Project
|
|
40
|
-
* @param {String} projectUID
|
|
40
|
+
* @param {String} projectUID
|
|
41
41
|
* @param {module:model/CreateProductRequest} createProductRequest Product to be created
|
|
42
42
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Product} and HTTP response
|
|
43
43
|
*/
|
|
@@ -54,21 +54,21 @@ var ProductApi = /*#__PURE__*/function () {
|
|
|
54
54
|
throw new _Error["default"]("Missing the required parameter 'createProductRequest' when calling createProduct");
|
|
55
55
|
}
|
|
56
56
|
var pathParams = {
|
|
57
|
-
|
|
57
|
+
projectUID: projectUID
|
|
58
58
|
};
|
|
59
59
|
var queryParams = {};
|
|
60
60
|
var headerParams = {};
|
|
61
61
|
var formParams = {};
|
|
62
|
-
var authNames = [
|
|
63
|
-
var contentTypes = [
|
|
64
|
-
var accepts = [
|
|
62
|
+
var authNames = ["api_key"];
|
|
63
|
+
var contentTypes = ["application/json"];
|
|
64
|
+
var accepts = ["application/json"];
|
|
65
65
|
var returnType = _Product["default"];
|
|
66
|
-
return this.apiClient.callApi(
|
|
66
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/products", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
/**
|
|
70
70
|
* Create Product within a Project
|
|
71
|
-
* @param {String} projectUID
|
|
71
|
+
* @param {String} projectUID
|
|
72
72
|
* @param {module:model/CreateProductRequest} createProductRequest Product to be created
|
|
73
73
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Product}
|
|
74
74
|
*/
|
|
@@ -82,7 +82,7 @@ var ProductApi = /*#__PURE__*/function () {
|
|
|
82
82
|
|
|
83
83
|
/**
|
|
84
84
|
* Get a Project by ProductUID
|
|
85
|
-
* @param {String} productUID
|
|
85
|
+
* @param {String} productUID
|
|
86
86
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
87
87
|
*/
|
|
88
88
|
}, {
|
|
@@ -94,21 +94,21 @@ var ProductApi = /*#__PURE__*/function () {
|
|
|
94
94
|
throw new _Error["default"]("Missing the required parameter 'productUID' when calling getProjectByProduct");
|
|
95
95
|
}
|
|
96
96
|
var pathParams = {
|
|
97
|
-
|
|
97
|
+
productUID: productUID
|
|
98
98
|
};
|
|
99
99
|
var queryParams = {};
|
|
100
100
|
var headerParams = {};
|
|
101
101
|
var formParams = {};
|
|
102
|
-
var authNames = [
|
|
102
|
+
var authNames = ["api_key"];
|
|
103
103
|
var contentTypes = [];
|
|
104
|
-
var accepts = [
|
|
104
|
+
var accepts = ["application/json"];
|
|
105
105
|
var returnType = _Project["default"];
|
|
106
|
-
return this.apiClient.callApi(
|
|
106
|
+
return this.apiClient.callApi("/v1/products/{productUID}/project", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
/**
|
|
110
110
|
* Get a Project by ProductUID
|
|
111
|
-
* @param {String} productUID
|
|
111
|
+
* @param {String} productUID
|
|
112
112
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
113
113
|
*/
|
|
114
114
|
}, {
|
|
@@ -121,7 +121,7 @@ var ProductApi = /*#__PURE__*/function () {
|
|
|
121
121
|
|
|
122
122
|
/**
|
|
123
123
|
* Get Products within a Project
|
|
124
|
-
* @param {String} projectUID
|
|
124
|
+
* @param {String} projectUID
|
|
125
125
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectProducts200Response} and HTTP response
|
|
126
126
|
*/
|
|
127
127
|
}, {
|
|
@@ -133,21 +133,21 @@ var ProductApi = /*#__PURE__*/function () {
|
|
|
133
133
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectProducts");
|
|
134
134
|
}
|
|
135
135
|
var pathParams = {
|
|
136
|
-
|
|
136
|
+
projectUID: projectUID
|
|
137
137
|
};
|
|
138
138
|
var queryParams = {};
|
|
139
139
|
var headerParams = {};
|
|
140
140
|
var formParams = {};
|
|
141
|
-
var authNames = [
|
|
141
|
+
var authNames = ["api_key"];
|
|
142
142
|
var contentTypes = [];
|
|
143
|
-
var accepts = [
|
|
143
|
+
var accepts = ["application/json"];
|
|
144
144
|
var returnType = _GetProjectProducts200Response["default"];
|
|
145
|
-
return this.apiClient.callApi(
|
|
145
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/products", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
/**
|
|
149
149
|
* Get Products within a Project
|
|
150
|
-
* @param {String} projectUID
|
|
150
|
+
* @param {String} projectUID
|
|
151
151
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectProducts200Response}
|
|
152
152
|
*/
|
|
153
153
|
}, {
|