@teemill/pickfaces 0.2.0 → 0.3.1

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 (39) hide show
  1. package/.openapi-generator/VERSION +1 -1
  2. package/README.md +2 -2
  3. package/dist/apis/PickfacesApi.d.ts +3 -3
  4. package/dist/apis/PickfacesApi.js +103 -33
  5. package/dist/models/CreatePickfaceRequest.d.ts +2 -2
  6. package/dist/models/CreatePickfaceRequest.js +2 -2
  7. package/dist/models/CreatePickfaceRequestDimensions.d.ts +2 -2
  8. package/dist/models/CreatePickfaceRequestDimensions.js +2 -2
  9. package/dist/models/GetPickfaces200Response.d.ts +2 -2
  10. package/dist/models/GetPickfaces200Response.js +2 -2
  11. package/dist/models/ModelError.d.ts +2 -2
  12. package/dist/models/ModelError.js +2 -2
  13. package/dist/models/Pickface.d.ts +2 -2
  14. package/dist/models/Pickface.js +2 -2
  15. package/dist/models/PickfaceContentsInner.d.ts +2 -2
  16. package/dist/models/PickfaceContentsInner.js +2 -2
  17. package/dist/models/PickfaceContentsInnerApplicationsInner.d.ts +2 -2
  18. package/dist/models/PickfaceContentsInnerApplicationsInner.js +2 -2
  19. package/dist/models/PickfaceContentsInnerMetadata.d.ts +2 -2
  20. package/dist/models/PickfaceContentsInnerMetadata.js +2 -2
  21. package/dist/models/PickfaceContentsInnerQuantity.d.ts +2 -2
  22. package/dist/models/PickfaceContentsInnerQuantity.js +2 -2
  23. package/dist/models/UpdatePickfaceRequest.d.ts +2 -2
  24. package/dist/models/UpdatePickfaceRequest.js +2 -2
  25. package/dist/runtime.d.ts +7 -2
  26. package/dist/runtime.js +7 -4
  27. package/package.json +1 -1
  28. package/src/apis/PickfacesApi.ts +83 -12
  29. package/src/models/CreatePickfaceRequest.ts +2 -2
  30. package/src/models/CreatePickfaceRequestDimensions.ts +2 -2
  31. package/src/models/GetPickfaces200Response.ts +2 -2
  32. package/src/models/ModelError.ts +2 -2
  33. package/src/models/Pickface.ts +2 -2
  34. package/src/models/PickfaceContentsInner.ts +2 -2
  35. package/src/models/PickfaceContentsInnerApplicationsInner.ts +2 -2
  36. package/src/models/PickfaceContentsInnerMetadata.ts +2 -2
  37. package/src/models/PickfaceContentsInnerQuantity.ts +2 -2
  38. package/src/models/UpdatePickfaceRequest.ts +2 -2
  39. package/src/runtime.ts +14 -4
@@ -1 +1 @@
1
- 7.1.0-SNAPSHOT
1
+ 7.3.0-SNAPSHOT
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @teemill/pickfaces@0.2.0
1
+ ## @teemill/pickfaces@0.3.1
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @teemill/pickfaces@0.2.0 --save
39
+ npm install @teemill/pickfaces@0.3.1 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Pickfaces API
3
- * Manage Teemill Pickfaces Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
3
+ * Manage Teemill Pickfaces. Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 0.2.0
5
+ * The version of the OpenAPI document: 0.3.1
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -77,7 +77,7 @@ export declare class PickfacesApi extends runtime.BaseAPI {
77
77
  * Lists all pickfaces available paginated into chunks
78
78
  * List pickfaces
79
79
  */
80
- getPickfaces(project: string, search?: string, pageToken?: number, pageSize?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPickfaces200Response>;
80
+ getPickfaces(project: string, optionalParameters?: runtime.OptionalOnly<GetPickfacesRequest>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPickfaces200Response>;
81
81
  /**
82
82
  * Update a Pickface
83
83
  * Update Pickface
@@ -3,9 +3,9 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Pickfaces API
6
- * Manage Teemill Pickfaces Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
+ * Manage Teemill Pickfaces. Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 0.2.0
8
+ * The version of the OpenAPI document: 0.3.1
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -27,6 +27,17 @@ var __extends = (this && this.__extends) || (function () {
27
27
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
28
  };
29
29
  })();
30
+ var __assign = (this && this.__assign) || function () {
31
+ __assign = Object.assign || function(t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
+ t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
30
41
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
31
42
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
32
43
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -81,9 +92,9 @@ var PickfacesApi = /** @class */ (function (_super) {
81
92
  */
82
93
  PickfacesApi.prototype.createPickfaceRaw = function (requestParameters, initOverrides) {
83
94
  return __awaiter(this, void 0, void 0, function () {
84
- var queryParameters, headerParameters, response;
85
- return __generator(this, function (_a) {
86
- switch (_a.label) {
95
+ var queryParameters, headerParameters, _a, _b, response;
96
+ return __generator(this, function (_c) {
97
+ switch (_c.label) {
87
98
  case 0:
88
99
  if (requestParameters.project === null || requestParameters.project === undefined) {
89
100
  throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling createPickface.');
@@ -97,6 +108,16 @@ var PickfacesApi = /** @class */ (function (_super) {
97
108
  }
98
109
  headerParameters = {};
99
110
  headerParameters['Content-Type'] = 'application/json';
111
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
112
+ // oauth required
113
+ _a = headerParameters;
114
+ _b = "Authorization";
115
+ return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
116
+ case 1:
117
+ // oauth required
118
+ _a[_b] = _c.sent();
119
+ _c.label = 2;
120
+ case 2:
100
121
  if (this.configuration && this.configuration.apiKey) {
101
122
  headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
102
123
  }
@@ -107,8 +128,8 @@ var PickfacesApi = /** @class */ (function (_super) {
107
128
  query: queryParameters,
108
129
  body: (0, index_1.CreatePickfaceRequestToJSON)(requestParameters.createPickfaceRequest),
109
130
  }, initOverrides)];
110
- case 1:
111
- response = _a.sent();
131
+ case 3:
132
+ response = _c.sent();
112
133
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PickfaceFromJSON)(jsonValue); })];
113
134
  }
114
135
  });
@@ -123,7 +144,9 @@ var PickfacesApi = /** @class */ (function (_super) {
123
144
  var response;
124
145
  return __generator(this, function (_a) {
125
146
  switch (_a.label) {
126
- case 0: return [4 /*yield*/, this.createPickfaceRaw({ project: project, createPickfaceRequest: createPickfaceRequest }, initOverrides)];
147
+ case 0: return [4 /*yield*/, this.createPickfaceRaw({
148
+ project: project, createPickfaceRequest: createPickfaceRequest,
149
+ }, initOverrides)];
127
150
  case 1:
128
151
  response = _a.sent();
129
152
  return [4 /*yield*/, response.value()];
@@ -138,9 +161,9 @@ var PickfacesApi = /** @class */ (function (_super) {
138
161
  */
139
162
  PickfacesApi.prototype.deletePickfaceRaw = function (requestParameters, initOverrides) {
140
163
  return __awaiter(this, void 0, void 0, function () {
141
- var queryParameters, headerParameters, response;
142
- return __generator(this, function (_a) {
143
- switch (_a.label) {
164
+ var queryParameters, headerParameters, _a, _b, response;
165
+ return __generator(this, function (_c) {
166
+ switch (_c.label) {
144
167
  case 0:
145
168
  if (requestParameters.project === null || requestParameters.project === undefined) {
146
169
  throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling deletePickface.');
@@ -153,6 +176,16 @@ var PickfacesApi = /** @class */ (function (_super) {
153
176
  queryParameters['project'] = requestParameters.project;
154
177
  }
155
178
  headerParameters = {};
179
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
180
+ // oauth required
181
+ _a = headerParameters;
182
+ _b = "Authorization";
183
+ return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
184
+ case 1:
185
+ // oauth required
186
+ _a[_b] = _c.sent();
187
+ _c.label = 2;
188
+ case 2:
156
189
  if (this.configuration && this.configuration.apiKey) {
157
190
  headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
158
191
  }
@@ -162,8 +195,8 @@ var PickfacesApi = /** @class */ (function (_super) {
162
195
  headers: headerParameters,
163
196
  query: queryParameters,
164
197
  }, initOverrides)];
165
- case 1:
166
- response = _a.sent();
198
+ case 3:
199
+ response = _c.sent();
167
200
  return [2 /*return*/, new runtime.VoidApiResponse(response)];
168
201
  }
169
202
  });
@@ -177,7 +210,9 @@ var PickfacesApi = /** @class */ (function (_super) {
177
210
  return __awaiter(this, void 0, void 0, function () {
178
211
  return __generator(this, function (_a) {
179
212
  switch (_a.label) {
180
- case 0: return [4 /*yield*/, this.deletePickfaceRaw({ project: project, pickfaceId: pickfaceId }, initOverrides)];
213
+ case 0: return [4 /*yield*/, this.deletePickfaceRaw({
214
+ project: project, pickfaceId: pickfaceId,
215
+ }, initOverrides)];
181
216
  case 1:
182
217
  _a.sent();
183
218
  return [2 /*return*/];
@@ -191,9 +226,9 @@ var PickfacesApi = /** @class */ (function (_super) {
191
226
  */
192
227
  PickfacesApi.prototype.getPickfaceRaw = function (requestParameters, initOverrides) {
193
228
  return __awaiter(this, void 0, void 0, function () {
194
- var queryParameters, headerParameters, response;
195
- return __generator(this, function (_a) {
196
- switch (_a.label) {
229
+ var queryParameters, headerParameters, _a, _b, response;
230
+ return __generator(this, function (_c) {
231
+ switch (_c.label) {
197
232
  case 0:
198
233
  if (requestParameters.project === null || requestParameters.project === undefined) {
199
234
  throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling getPickface.');
@@ -206,6 +241,16 @@ var PickfacesApi = /** @class */ (function (_super) {
206
241
  queryParameters['project'] = requestParameters.project;
207
242
  }
208
243
  headerParameters = {};
244
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
245
+ // oauth required
246
+ _a = headerParameters;
247
+ _b = "Authorization";
248
+ return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
249
+ case 1:
250
+ // oauth required
251
+ _a[_b] = _c.sent();
252
+ _c.label = 2;
253
+ case 2:
209
254
  if (this.configuration && this.configuration.apiKey) {
210
255
  headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
211
256
  }
@@ -215,8 +260,8 @@ var PickfacesApi = /** @class */ (function (_super) {
215
260
  headers: headerParameters,
216
261
  query: queryParameters,
217
262
  }, initOverrides)];
218
- case 1:
219
- response = _a.sent();
263
+ case 3:
264
+ response = _c.sent();
220
265
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PickfaceFromJSON)(jsonValue); })];
221
266
  }
222
267
  });
@@ -231,7 +276,9 @@ var PickfacesApi = /** @class */ (function (_super) {
231
276
  var response;
232
277
  return __generator(this, function (_a) {
233
278
  switch (_a.label) {
234
- case 0: return [4 /*yield*/, this.getPickfaceRaw({ project: project, pickfaceId: pickfaceId }, initOverrides)];
279
+ case 0: return [4 /*yield*/, this.getPickfaceRaw({
280
+ project: project, pickfaceId: pickfaceId,
281
+ }, initOverrides)];
235
282
  case 1:
236
283
  response = _a.sent();
237
284
  return [4 /*yield*/, response.value()];
@@ -246,9 +293,9 @@ var PickfacesApi = /** @class */ (function (_super) {
246
293
  */
247
294
  PickfacesApi.prototype.getPickfacesRaw = function (requestParameters, initOverrides) {
248
295
  return __awaiter(this, void 0, void 0, function () {
249
- var queryParameters, headerParameters, response;
250
- return __generator(this, function (_a) {
251
- switch (_a.label) {
296
+ var queryParameters, headerParameters, _a, _b, response;
297
+ return __generator(this, function (_c) {
298
+ switch (_c.label) {
252
299
  case 0:
253
300
  if (requestParameters.project === null || requestParameters.project === undefined) {
254
301
  throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling getPickfaces.');
@@ -267,6 +314,16 @@ var PickfacesApi = /** @class */ (function (_super) {
267
314
  queryParameters['pageSize'] = requestParameters.pageSize;
268
315
  }
269
316
  headerParameters = {};
317
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
318
+ // oauth required
319
+ _a = headerParameters;
320
+ _b = "Authorization";
321
+ return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
322
+ case 1:
323
+ // oauth required
324
+ _a[_b] = _c.sent();
325
+ _c.label = 2;
326
+ case 2:
270
327
  if (this.configuration && this.configuration.apiKey) {
271
328
  headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
272
329
  }
@@ -276,8 +333,8 @@ var PickfacesApi = /** @class */ (function (_super) {
276
333
  headers: headerParameters,
277
334
  query: queryParameters,
278
335
  }, initOverrides)];
279
- case 1:
280
- response = _a.sent();
336
+ case 3:
337
+ response = _c.sent();
281
338
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetPickfaces200ResponseFromJSON)(jsonValue); })];
282
339
  }
283
340
  });
@@ -287,12 +344,13 @@ var PickfacesApi = /** @class */ (function (_super) {
287
344
  * Lists all pickfaces available paginated into chunks
288
345
  * List pickfaces
289
346
  */
290
- PickfacesApi.prototype.getPickfaces = function (project, search, pageToken, pageSize, initOverrides) {
347
+ PickfacesApi.prototype.getPickfaces = function (project, optionalParameters, initOverrides) {
348
+ if (optionalParameters === void 0) { optionalParameters = {}; }
291
349
  return __awaiter(this, void 0, void 0, function () {
292
350
  var response;
293
351
  return __generator(this, function (_a) {
294
352
  switch (_a.label) {
295
- case 0: return [4 /*yield*/, this.getPickfacesRaw({ project: project, search: search, pageToken: pageToken, pageSize: pageSize }, initOverrides)];
353
+ case 0: return [4 /*yield*/, this.getPickfacesRaw(__assign({ project: project }, optionalParameters), initOverrides)];
296
354
  case 1:
297
355
  response = _a.sent();
298
356
  return [4 /*yield*/, response.value()];
@@ -307,9 +365,9 @@ var PickfacesApi = /** @class */ (function (_super) {
307
365
  */
308
366
  PickfacesApi.prototype.updatePickfaceRaw = function (requestParameters, initOverrides) {
309
367
  return __awaiter(this, void 0, void 0, function () {
310
- var queryParameters, headerParameters, response;
311
- return __generator(this, function (_a) {
312
- switch (_a.label) {
368
+ var queryParameters, headerParameters, _a, _b, response;
369
+ return __generator(this, function (_c) {
370
+ switch (_c.label) {
313
371
  case 0:
314
372
  if (requestParameters.project === null || requestParameters.project === undefined) {
315
373
  throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling updatePickface.');
@@ -326,6 +384,16 @@ var PickfacesApi = /** @class */ (function (_super) {
326
384
  }
327
385
  headerParameters = {};
328
386
  headerParameters['Content-Type'] = 'application/json';
387
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
388
+ // oauth required
389
+ _a = headerParameters;
390
+ _b = "Authorization";
391
+ return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
392
+ case 1:
393
+ // oauth required
394
+ _a[_b] = _c.sent();
395
+ _c.label = 2;
396
+ case 2:
329
397
  if (this.configuration && this.configuration.apiKey) {
330
398
  headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
331
399
  }
@@ -336,8 +404,8 @@ var PickfacesApi = /** @class */ (function (_super) {
336
404
  query: queryParameters,
337
405
  body: (0, index_1.UpdatePickfaceRequestToJSON)(requestParameters.updatePickfaceRequest),
338
406
  }, initOverrides)];
339
- case 1:
340
- response = _a.sent();
407
+ case 3:
408
+ response = _c.sent();
341
409
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PickfaceFromJSON)(jsonValue); })];
342
410
  }
343
411
  });
@@ -352,7 +420,9 @@ var PickfacesApi = /** @class */ (function (_super) {
352
420
  var response;
353
421
  return __generator(this, function (_a) {
354
422
  switch (_a.label) {
355
- case 0: return [4 /*yield*/, this.updatePickfaceRaw({ project: project, pickfaceId: pickfaceId, updatePickfaceRequest: updatePickfaceRequest }, initOverrides)];
423
+ case 0: return [4 /*yield*/, this.updatePickfaceRaw({
424
+ project: project, pickfaceId: pickfaceId, updatePickfaceRequest: updatePickfaceRequest,
425
+ }, initOverrides)];
356
426
  case 1:
357
427
  response = _a.sent();
358
428
  return [4 /*yield*/, response.value()];
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Pickfaces API
3
- * Manage Teemill Pickfaces Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
3
+ * Manage Teemill Pickfaces. Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 0.2.0
5
+ * The version of the OpenAPI document: 0.3.1
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -3,9 +3,9 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Pickfaces API
6
- * Manage Teemill Pickfaces Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
+ * Manage Teemill Pickfaces. Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 0.2.0
8
+ * The version of the OpenAPI document: 0.3.1
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Pickfaces API
3
- * Manage Teemill Pickfaces Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
3
+ * Manage Teemill Pickfaces. Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 0.2.0
5
+ * The version of the OpenAPI document: 0.3.1
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -3,9 +3,9 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Pickfaces API
6
- * Manage Teemill Pickfaces Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
+ * Manage Teemill Pickfaces. Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 0.2.0
8
+ * The version of the OpenAPI document: 0.3.1
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Pickfaces API
3
- * Manage Teemill Pickfaces Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
3
+ * Manage Teemill Pickfaces. Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 0.2.0
5
+ * The version of the OpenAPI document: 0.3.1
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -3,9 +3,9 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Pickfaces API
6
- * Manage Teemill Pickfaces Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
+ * Manage Teemill Pickfaces. Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 0.2.0
8
+ * The version of the OpenAPI document: 0.3.1
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Pickfaces API
3
- * Manage Teemill Pickfaces Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
3
+ * Manage Teemill Pickfaces. Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 0.2.0
5
+ * The version of the OpenAPI document: 0.3.1
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -3,9 +3,9 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Pickfaces API
6
- * Manage Teemill Pickfaces Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
+ * Manage Teemill Pickfaces. Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 0.2.0
8
+ * The version of the OpenAPI document: 0.3.1
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Pickfaces API
3
- * Manage Teemill Pickfaces Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
3
+ * Manage Teemill Pickfaces. Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 0.2.0
5
+ * The version of the OpenAPI document: 0.3.1
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -3,9 +3,9 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Pickfaces API
6
- * Manage Teemill Pickfaces Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
+ * Manage Teemill Pickfaces. Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 0.2.0
8
+ * The version of the OpenAPI document: 0.3.1
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Pickfaces API
3
- * Manage Teemill Pickfaces Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
3
+ * Manage Teemill Pickfaces. Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 0.2.0
5
+ * The version of the OpenAPI document: 0.3.1
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -3,9 +3,9 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Pickfaces API
6
- * Manage Teemill Pickfaces Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
+ * Manage Teemill Pickfaces. Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 0.2.0
8
+ * The version of the OpenAPI document: 0.3.1
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Pickfaces API
3
- * Manage Teemill Pickfaces Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
3
+ * Manage Teemill Pickfaces. Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 0.2.0
5
+ * The version of the OpenAPI document: 0.3.1
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -3,9 +3,9 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Pickfaces API
6
- * Manage Teemill Pickfaces Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
+ * Manage Teemill Pickfaces. Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 0.2.0
8
+ * The version of the OpenAPI document: 0.3.1
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Pickfaces API
3
- * Manage Teemill Pickfaces Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
3
+ * Manage Teemill Pickfaces. Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 0.2.0
5
+ * The version of the OpenAPI document: 0.3.1
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -3,9 +3,9 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Pickfaces API
6
- * Manage Teemill Pickfaces Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
+ * Manage Teemill Pickfaces. Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 0.2.0
8
+ * The version of the OpenAPI document: 0.3.1
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Pickfaces API
3
- * Manage Teemill Pickfaces Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
3
+ * Manage Teemill Pickfaces. Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 0.2.0
5
+ * The version of the OpenAPI document: 0.3.1
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -3,9 +3,9 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Pickfaces API
6
- * Manage Teemill Pickfaces Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
+ * Manage Teemill Pickfaces. Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 0.2.0
8
+ * The version of the OpenAPI document: 0.3.1
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Pickfaces API
3
- * Manage Teemill Pickfaces Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
3
+ * Manage Teemill Pickfaces. Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 0.2.0
5
+ * The version of the OpenAPI document: 0.3.1
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -3,9 +3,9 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Pickfaces API
6
- * Manage Teemill Pickfaces Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
+ * Manage Teemill Pickfaces. Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 0.2.0
8
+ * The version of the OpenAPI document: 0.3.1
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/runtime.d.ts CHANGED
@@ -1,14 +1,18 @@
1
1
  /**
2
2
  * Pickfaces API
3
- * Manage Teemill Pickfaces Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
3
+ * Manage Teemill Pickfaces. Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 0.2.0
5
+ * The version of the OpenAPI document: 0.3.1
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ export type OptionalProperties<T> = {
13
+ [K in keyof T]-?: undefined extends T[K] ? K : never;
14
+ }[keyof T];
15
+ export type OptionalOnly<T> = Partial<Pick<T, OptionalProperties<T>>>;
12
16
  export declare const BASE_PATH: string;
13
17
  export interface ConfigurationParameters {
14
18
  basePath?: string;
@@ -46,6 +50,7 @@ export declare class BaseAPI {
46
50
  private static readonly jsonRegex;
47
51
  private middleware;
48
52
  constructor(configuration?: Configuration);
53
+ isResponseError(error: any): error is ResponseError;
49
54
  withMiddleware<T extends BaseAPI>(this: T, ...middlewares: Middleware[]): T;
50
55
  withPreMiddleware<T extends BaseAPI>(this: T, ...preMiddlewares: Array<Middleware['pre']>): T;
51
56
  withPostMiddleware<T extends BaseAPI>(this: T, ...postMiddlewares: Array<Middleware['post']>): T;
package/dist/runtime.js CHANGED
@@ -3,9 +3,9 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Pickfaces API
6
- * Manage Teemill Pickfaces Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
+ * Manage Teemill Pickfaces. Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 0.2.0
8
+ * The version of the OpenAPI document: 0.3.1
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -266,6 +266,9 @@ var BaseAPI = /** @class */ (function () {
266
266
  }); };
267
267
  this.middleware = configuration.middleware;
268
268
  }
269
+ BaseAPI.prototype.isResponseError = function (error) {
270
+ return error instanceof Error && error.name === 'ResponseError';
271
+ };
269
272
  BaseAPI.prototype.withMiddleware = function () {
270
273
  var _a;
271
274
  var middlewares = [];
@@ -456,8 +459,8 @@ function querystringSingleKey(key, value, keyPrefix) {
456
459
  var fullKey = keyPrefix + (keyPrefix.length ? "[".concat(key, "]") : key);
457
460
  if (value instanceof Array) {
458
461
  var multiValue = value.map(function (singleValue) { return encodeURIComponent(String(singleValue)); })
459
- .join("&".concat(encodeURIComponent(fullKey), "="));
460
- return "".concat(encodeURIComponent(fullKey), "=").concat(multiValue);
462
+ .join("&".concat(encodeURIComponent(fullKey), "[]="));
463
+ return "".concat(encodeURIComponent(fullKey), "[]=").concat(multiValue);
461
464
  }
462
465
  if (value instanceof Set) {
463
466
  var valueAsArray = Array.from(value);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teemill/pickfaces",
3
- "version": "0.2.0",
3
+ "version": "0.3.1",
4
4
  "description": "OpenAPI client for @teemill/pickfaces",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Pickfaces API
5
- * Manage Teemill Pickfaces Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
5
+ * Manage Teemill Pickfaces. Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 0.2.0
7
+ * The version of the OpenAPI document: 0.3.1
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -87,6 +87,11 @@ export class PickfacesApi extends runtime.BaseAPI {
87
87
 
88
88
  headerParameters['Content-Type'] = 'application/json';
89
89
 
90
+ if (this.configuration && this.configuration.accessToken) {
91
+ // oauth required
92
+ headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
93
+ }
94
+
90
95
  if (this.configuration && this.configuration.apiKey) {
91
96
  headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
92
97
  }
@@ -106,8 +111,17 @@ export class PickfacesApi extends runtime.BaseAPI {
106
111
  * Create a Pickface
107
112
  * Create Pickface
108
113
  */
109
- async createPickface(project: string, createPickfaceRequest: CreatePickfaceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Pickface> {
110
- const response = await this.createPickfaceRaw({ project: project, createPickfaceRequest: createPickfaceRequest }, initOverrides);
114
+ async createPickface(
115
+ project: string, createPickfaceRequest: CreatePickfaceRequest,
116
+ initOverrides?: RequestInit | runtime.InitOverrideFunction
117
+ ): Promise<Pickface> {
118
+ const response = await this.createPickfaceRaw(
119
+ {
120
+ project: project,createPickfaceRequest: createPickfaceRequest,
121
+ },
122
+ initOverrides
123
+ );
124
+
111
125
  return await response.value();
112
126
  }
113
127
 
@@ -132,6 +146,11 @@ export class PickfacesApi extends runtime.BaseAPI {
132
146
 
133
147
  const headerParameters: runtime.HTTPHeaders = {};
134
148
 
149
+ if (this.configuration && this.configuration.accessToken) {
150
+ // oauth required
151
+ headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
152
+ }
153
+
135
154
  if (this.configuration && this.configuration.apiKey) {
136
155
  headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
137
156
  }
@@ -150,8 +169,16 @@ export class PickfacesApi extends runtime.BaseAPI {
150
169
  * Delete a Pickface
151
170
  * Delete Pickface
152
171
  */
153
- async deletePickface(project: string, pickfaceId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
154
- await this.deletePickfaceRaw({ project: project, pickfaceId: pickfaceId }, initOverrides);
172
+ async deletePickface(
173
+ project: string, pickfaceId: string,
174
+ initOverrides?: RequestInit | runtime.InitOverrideFunction
175
+ ): Promise<void> {
176
+ await this.deletePickfaceRaw(
177
+ {
178
+ project: project,pickfaceId: pickfaceId,
179
+ },
180
+ initOverrides
181
+ );
155
182
  }
156
183
 
157
184
  /**
@@ -175,6 +202,11 @@ export class PickfacesApi extends runtime.BaseAPI {
175
202
 
176
203
  const headerParameters: runtime.HTTPHeaders = {};
177
204
 
205
+ if (this.configuration && this.configuration.accessToken) {
206
+ // oauth required
207
+ headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
208
+ }
209
+
178
210
  if (this.configuration && this.configuration.apiKey) {
179
211
  headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
180
212
  }
@@ -193,8 +225,17 @@ export class PickfacesApi extends runtime.BaseAPI {
193
225
  * Get a pickface
194
226
  * Get pickface
195
227
  */
196
- async getPickface(project: string, pickfaceId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Pickface> {
197
- const response = await this.getPickfaceRaw({ project: project, pickfaceId: pickfaceId }, initOverrides);
228
+ async getPickface(
229
+ project: string, pickfaceId: string,
230
+ initOverrides?: RequestInit | runtime.InitOverrideFunction
231
+ ): Promise<Pickface> {
232
+ const response = await this.getPickfaceRaw(
233
+ {
234
+ project: project,pickfaceId: pickfaceId,
235
+ },
236
+ initOverrides
237
+ );
238
+
198
239
  return await response.value();
199
240
  }
200
241
 
@@ -227,6 +268,11 @@ export class PickfacesApi extends runtime.BaseAPI {
227
268
 
228
269
  const headerParameters: runtime.HTTPHeaders = {};
229
270
 
271
+ if (this.configuration && this.configuration.accessToken) {
272
+ // oauth required
273
+ headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
274
+ }
275
+
230
276
  if (this.configuration && this.configuration.apiKey) {
231
277
  headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
232
278
  }
@@ -245,8 +291,19 @@ export class PickfacesApi extends runtime.BaseAPI {
245
291
  * Lists all pickfaces available paginated into chunks
246
292
  * List pickfaces
247
293
  */
248
- async getPickfaces(project: string, search?: string, pageToken?: number, pageSize?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPickfaces200Response> {
249
- const response = await this.getPickfacesRaw({ project: project, search: search, pageToken: pageToken, pageSize: pageSize }, initOverrides);
294
+ async getPickfaces(
295
+ project: string,
296
+ optionalParameters: runtime.OptionalOnly<GetPickfacesRequest> = {},
297
+ initOverrides?: RequestInit | runtime.InitOverrideFunction
298
+ ): Promise<GetPickfaces200Response> {
299
+ const response = await this.getPickfacesRaw(
300
+ {
301
+ project: project,
302
+ ...optionalParameters,
303
+ },
304
+ initOverrides
305
+ );
306
+
250
307
  return await response.value();
251
308
  }
252
309
 
@@ -277,6 +334,11 @@ export class PickfacesApi extends runtime.BaseAPI {
277
334
 
278
335
  headerParameters['Content-Type'] = 'application/json';
279
336
 
337
+ if (this.configuration && this.configuration.accessToken) {
338
+ // oauth required
339
+ headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
340
+ }
341
+
280
342
  if (this.configuration && this.configuration.apiKey) {
281
343
  headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
282
344
  }
@@ -296,8 +358,17 @@ export class PickfacesApi extends runtime.BaseAPI {
296
358
  * Update a Pickface
297
359
  * Update Pickface
298
360
  */
299
- async updatePickface(project: string, pickfaceId: string, updatePickfaceRequest: UpdatePickfaceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Pickface> {
300
- const response = await this.updatePickfaceRaw({ project: project, pickfaceId: pickfaceId, updatePickfaceRequest: updatePickfaceRequest }, initOverrides);
361
+ async updatePickface(
362
+ project: string, pickfaceId: string, updatePickfaceRequest: UpdatePickfaceRequest,
363
+ initOverrides?: RequestInit | runtime.InitOverrideFunction
364
+ ): Promise<Pickface> {
365
+ const response = await this.updatePickfaceRaw(
366
+ {
367
+ project: project,pickfaceId: pickfaceId,updatePickfaceRequest: updatePickfaceRequest,
368
+ },
369
+ initOverrides
370
+ );
371
+
301
372
  return await response.value();
302
373
  }
303
374
 
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Pickfaces API
5
- * Manage Teemill Pickfaces Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
5
+ * Manage Teemill Pickfaces. Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 0.2.0
7
+ * The version of the OpenAPI document: 0.3.1
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Pickfaces API
5
- * Manage Teemill Pickfaces Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
5
+ * Manage Teemill Pickfaces. Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 0.2.0
7
+ * The version of the OpenAPI document: 0.3.1
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Pickfaces API
5
- * Manage Teemill Pickfaces Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
5
+ * Manage Teemill Pickfaces. Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 0.2.0
7
+ * The version of the OpenAPI document: 0.3.1
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Pickfaces API
5
- * Manage Teemill Pickfaces Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
5
+ * Manage Teemill Pickfaces. Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 0.2.0
7
+ * The version of the OpenAPI document: 0.3.1
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Pickfaces API
5
- * Manage Teemill Pickfaces Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
5
+ * Manage Teemill Pickfaces. Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 0.2.0
7
+ * The version of the OpenAPI document: 0.3.1
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Pickfaces API
5
- * Manage Teemill Pickfaces Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
5
+ * Manage Teemill Pickfaces. Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 0.2.0
7
+ * The version of the OpenAPI document: 0.3.1
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Pickfaces API
5
- * Manage Teemill Pickfaces Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
5
+ * Manage Teemill Pickfaces. Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 0.2.0
7
+ * The version of the OpenAPI document: 0.3.1
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Pickfaces API
5
- * Manage Teemill Pickfaces Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
5
+ * Manage Teemill Pickfaces. Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 0.2.0
7
+ * The version of the OpenAPI document: 0.3.1
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Pickfaces API
5
- * Manage Teemill Pickfaces Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
5
+ * Manage Teemill Pickfaces. Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 0.2.0
7
+ * The version of the OpenAPI document: 0.3.1
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Pickfaces API
5
- * Manage Teemill Pickfaces Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
5
+ * Manage Teemill Pickfaces. Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 0.2.0
7
+ * The version of the OpenAPI document: 0.3.1
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/src/runtime.ts CHANGED
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Pickfaces API
5
- * Manage Teemill Pickfaces Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
5
+ * Manage Teemill Pickfaces. Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 0.2.0
7
+ * The version of the OpenAPI document: 0.3.1
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -13,6 +13,12 @@
13
13
  */
14
14
 
15
15
 
16
+ export type OptionalProperties<T> = {
17
+ [K in keyof T]-?: undefined extends T[K] ? K : never
18
+ }[keyof T];
19
+
20
+ export type OptionalOnly<T> = Partial<Pick<T, OptionalProperties<T>>>;
21
+
16
22
  export const BASE_PATH = "https://api.localhost:8080".replace(/\/+$/, "");
17
23
 
18
24
  export interface ConfigurationParameters {
@@ -98,6 +104,10 @@ export class BaseAPI {
98
104
  this.middleware = configuration.middleware;
99
105
  }
100
106
 
107
+ isResponseError(error: any): error is ResponseError {
108
+ return error instanceof Error && error.name === 'ResponseError';
109
+ }
110
+
101
111
  withMiddleware<T extends BaseAPI>(this: T, ...middlewares: Middleware[]) {
102
112
  const next = this.clone<T>();
103
113
  next.middleware = next.middleware.concat(...middlewares);
@@ -326,8 +336,8 @@ function querystringSingleKey(key: string, value: string | number | null | undef
326
336
  const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key);
327
337
  if (value instanceof Array) {
328
338
  const multiValue = value.map(singleValue => encodeURIComponent(String(singleValue)))
329
- .join(`&${encodeURIComponent(fullKey)}=`);
330
- return `${encodeURIComponent(fullKey)}=${multiValue}`;
339
+ .join(`&${encodeURIComponent(fullKey)}[]=`);
340
+ return `${encodeURIComponent(fullKey)}[]=${multiValue}`;
331
341
  }
332
342
  if (value instanceof Set) {
333
343
  const valueAsArray = Array.from(value);