@teemill/pickfaces 0.1.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.
- package/.openapi-generator/FILES +21 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +45 -0
- package/dist/apis/PickfacesApi.d.ts +91 -0
- package/dist/apis/PickfacesApi.js +366 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +19 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/CreatePickfaceRequest.d.ts +38 -0
- package/dist/models/CreatePickfaceRequest.js +53 -0
- package/dist/models/CreatePickfaceRequestDimensions.d.ts +43 -0
- package/dist/models/CreatePickfaceRequestDimensions.js +54 -0
- package/dist/models/GetPickfaces200Response.d.ts +38 -0
- package/dist/models/GetPickfaces200Response.js +53 -0
- package/dist/models/ModelError.d.ts +37 -0
- package/dist/models/ModelError.js +53 -0
- package/dist/models/Pickface.d.ts +63 -0
- package/dist/models/Pickface.js +62 -0
- package/dist/models/PickfaceContentsInner.d.ts +58 -0
- package/dist/models/PickfaceContentsInner.js +61 -0
- package/dist/models/PickfaceContentsInnerApplicationsInner.d.ts +37 -0
- package/dist/models/PickfaceContentsInnerApplicationsInner.js +52 -0
- package/dist/models/PickfaceContentsInnerMetadata.d.ts +43 -0
- package/dist/models/PickfaceContentsInnerMetadata.js +54 -0
- package/dist/models/PickfaceContentsInnerQuantity.d.ts +43 -0
- package/dist/models/PickfaceContentsInnerQuantity.js +54 -0
- package/dist/models/UpdatePickfaceRequest.d.ts +31 -0
- package/dist/models/UpdatePickfaceRequest.js +50 -0
- package/dist/models/index.d.ts +10 -0
- package/dist/models/index.js +28 -0
- package/dist/runtime.d.ts +182 -0
- package/dist/runtime.js +562 -0
- package/package.json +19 -0
- package/src/apis/PickfacesApi.ts +304 -0
- package/src/apis/index.ts +3 -0
- package/src/index.ts +5 -0
- package/src/models/CreatePickfaceRequest.ts +80 -0
- package/src/models/CreatePickfaceRequestDimensions.ts +81 -0
- package/src/models/GetPickfaces200Response.ts +80 -0
- package/src/models/ModelError.ts +74 -0
- package/src/models/Pickface.ts +118 -0
- package/src/models/PickfaceContentsInner.ts +116 -0
- package/src/models/PickfaceContentsInnerApplicationsInner.ts +73 -0
- package/src/models/PickfaceContentsInnerMetadata.ts +81 -0
- package/src/models/PickfaceContentsInnerQuantity.ts +81 -0
- package/src/models/UpdatePickfaceRequest.ts +65 -0
- package/src/models/index.ts +12 -0
- package/src/runtime.ts +431 -0
- package/tsconfig.json +20 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
.gitignore
|
|
2
|
+
.npmignore
|
|
3
|
+
.openapi-generator-ignore
|
|
4
|
+
README.md
|
|
5
|
+
package.json
|
|
6
|
+
src/apis/PickfacesApi.ts
|
|
7
|
+
src/apis/index.ts
|
|
8
|
+
src/index.ts
|
|
9
|
+
src/models/CreatePickfaceRequest.ts
|
|
10
|
+
src/models/CreatePickfaceRequestDimensions.ts
|
|
11
|
+
src/models/GetPickfaces200Response.ts
|
|
12
|
+
src/models/ModelError.ts
|
|
13
|
+
src/models/Pickface.ts
|
|
14
|
+
src/models/PickfaceContentsInner.ts
|
|
15
|
+
src/models/PickfaceContentsInnerApplicationsInner.ts
|
|
16
|
+
src/models/PickfaceContentsInnerMetadata.ts
|
|
17
|
+
src/models/PickfaceContentsInnerQuantity.ts
|
|
18
|
+
src/models/UpdatePickfaceRequest.ts
|
|
19
|
+
src/models/index.ts
|
|
20
|
+
src/runtime.ts
|
|
21
|
+
tsconfig.json
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
7.1.0-SNAPSHOT
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# OpenAPI Generator Ignore
|
|
2
|
+
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
|
|
3
|
+
|
|
4
|
+
# Use this file to prevent files from being overwritten by the generator.
|
|
5
|
+
# The patterns follow closely to .gitignore or .dockerignore.
|
|
6
|
+
|
|
7
|
+
# As an example, the C# client generator defines ApiClient.cs.
|
|
8
|
+
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
|
|
9
|
+
#ApiClient.cs
|
|
10
|
+
|
|
11
|
+
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
|
|
12
|
+
#foo/*/qux
|
|
13
|
+
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
|
|
14
|
+
|
|
15
|
+
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
|
|
16
|
+
#foo/**/qux
|
|
17
|
+
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
|
|
18
|
+
|
|
19
|
+
# You can also negate patterns with an exclamation (!).
|
|
20
|
+
# For example, you can ignore all files in a docs folder with the file extension .md:
|
|
21
|
+
#docs/*.md
|
|
22
|
+
# Then explicitly reverse the ignore rule for a single file:
|
|
23
|
+
#!docs/README.md
|
package/README.md
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
## @teemill/pickfaces@0.1.1
|
|
2
|
+
|
|
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
|
+
|
|
5
|
+
Environment
|
|
6
|
+
* Node.js
|
|
7
|
+
* Webpack
|
|
8
|
+
* Browserify
|
|
9
|
+
|
|
10
|
+
Language level
|
|
11
|
+
* ES5 - you must have a Promises/A+ library installed
|
|
12
|
+
* ES6
|
|
13
|
+
|
|
14
|
+
Module system
|
|
15
|
+
* CommonJS
|
|
16
|
+
* ES6 module system
|
|
17
|
+
|
|
18
|
+
It can be used in both TypeScript and JavaScript. In TypeScript, the definition should be automatically resolved via `package.json`. ([Reference](http://www.typescriptlang.org/docs/handbook/typings-for-npm-packages.html))
|
|
19
|
+
|
|
20
|
+
### Building
|
|
21
|
+
|
|
22
|
+
To build and compile the typescript sources to javascript use:
|
|
23
|
+
```
|
|
24
|
+
npm install
|
|
25
|
+
npm run build
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### Publishing
|
|
29
|
+
|
|
30
|
+
First build the package then run ```npm publish```
|
|
31
|
+
|
|
32
|
+
### Consuming
|
|
33
|
+
|
|
34
|
+
navigate to the folder of your consuming project and run one of the following commands.
|
|
35
|
+
|
|
36
|
+
_published:_
|
|
37
|
+
|
|
38
|
+
```
|
|
39
|
+
npm install @teemill/pickfaces@0.1.1 --save
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
_unPublished (not recommended):_
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
npm install PATH_TO_GENERATED_PACKAGE --save
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/**
|
|
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)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.1
|
|
6
|
+
* Contact: hello@teemill.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { CreatePickfaceRequest, GetPickfaces200Response, Pickface, UpdatePickfaceRequest } from '../models/index';
|
|
14
|
+
export interface CreatePickfaceOperationRequest {
|
|
15
|
+
project: string;
|
|
16
|
+
createPickfaceRequest: CreatePickfaceRequest;
|
|
17
|
+
}
|
|
18
|
+
export interface DeletePickfaceRequest {
|
|
19
|
+
project: string;
|
|
20
|
+
pickfaceId: string;
|
|
21
|
+
}
|
|
22
|
+
export interface GetPickfaceRequest {
|
|
23
|
+
project: string;
|
|
24
|
+
pickfaceId: string;
|
|
25
|
+
}
|
|
26
|
+
export interface GetPickfacesRequest {
|
|
27
|
+
project: string;
|
|
28
|
+
search?: string;
|
|
29
|
+
pageToken?: number;
|
|
30
|
+
pageSize?: number;
|
|
31
|
+
}
|
|
32
|
+
export interface UpdatePickfaceOperationRequest {
|
|
33
|
+
project: string;
|
|
34
|
+
pickfaceId: string;
|
|
35
|
+
updatePickfaceRequest: UpdatePickfaceRequest;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
*/
|
|
40
|
+
export declare class PickfacesApi extends runtime.BaseAPI {
|
|
41
|
+
/**
|
|
42
|
+
* Create a Pickface
|
|
43
|
+
* Create Pickface
|
|
44
|
+
*/
|
|
45
|
+
createPickfaceRaw(requestParameters: CreatePickfaceOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Pickface>>;
|
|
46
|
+
/**
|
|
47
|
+
* Create a Pickface
|
|
48
|
+
* Create Pickface
|
|
49
|
+
*/
|
|
50
|
+
createPickface(requestParameters: CreatePickfaceOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Pickface>;
|
|
51
|
+
/**
|
|
52
|
+
* Delete a Pickface
|
|
53
|
+
* Delete Pickface
|
|
54
|
+
*/
|
|
55
|
+
deletePickfaceRaw(requestParameters: DeletePickfaceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
56
|
+
/**
|
|
57
|
+
* Delete a Pickface
|
|
58
|
+
* Delete Pickface
|
|
59
|
+
*/
|
|
60
|
+
deletePickface(requestParameters: DeletePickfaceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
61
|
+
/**
|
|
62
|
+
* Get a pickface
|
|
63
|
+
* Get pickface
|
|
64
|
+
*/
|
|
65
|
+
getPickfaceRaw(requestParameters: GetPickfaceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Pickface>>;
|
|
66
|
+
/**
|
|
67
|
+
* Get a pickface
|
|
68
|
+
* Get pickface
|
|
69
|
+
*/
|
|
70
|
+
getPickface(requestParameters: GetPickfaceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Pickface>;
|
|
71
|
+
/**
|
|
72
|
+
* Lists all pickfaces available paginated into chunks
|
|
73
|
+
* List pickfaces
|
|
74
|
+
*/
|
|
75
|
+
getPickfacesRaw(requestParameters: GetPickfacesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPickfaces200Response>>;
|
|
76
|
+
/**
|
|
77
|
+
* Lists all pickfaces available paginated into chunks
|
|
78
|
+
* List pickfaces
|
|
79
|
+
*/
|
|
80
|
+
getPickfaces(requestParameters: GetPickfacesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPickfaces200Response>;
|
|
81
|
+
/**
|
|
82
|
+
* Update a Pickface
|
|
83
|
+
* Update Pickface
|
|
84
|
+
*/
|
|
85
|
+
updatePickfaceRaw(requestParameters: UpdatePickfaceOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Pickface>>;
|
|
86
|
+
/**
|
|
87
|
+
* Update a Pickface
|
|
88
|
+
* Update Pickface
|
|
89
|
+
*/
|
|
90
|
+
updatePickface(requestParameters: UpdatePickfaceOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Pickface>;
|
|
91
|
+
}
|
|
@@ -0,0 +1,366 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
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)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.1
|
|
9
|
+
* Contact: hello@teemill.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __extends = (this && this.__extends) || (function () {
|
|
16
|
+
var extendStatics = function (d, b) {
|
|
17
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
+
return extendStatics(d, b);
|
|
21
|
+
};
|
|
22
|
+
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
+
extendStatics(d, b);
|
|
26
|
+
function __() { this.constructor = d; }
|
|
27
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
+
};
|
|
29
|
+
})();
|
|
30
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
31
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
32
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
33
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
34
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
35
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
36
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
40
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
41
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
42
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
43
|
+
function step(op) {
|
|
44
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
45
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
46
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
47
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
48
|
+
switch (op[0]) {
|
|
49
|
+
case 0: case 1: t = op; break;
|
|
50
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
51
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
52
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
53
|
+
default:
|
|
54
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
55
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
56
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
57
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
58
|
+
if (t[2]) _.ops.pop();
|
|
59
|
+
_.trys.pop(); continue;
|
|
60
|
+
}
|
|
61
|
+
op = body.call(thisArg, _);
|
|
62
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
63
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
+
exports.PickfacesApi = void 0;
|
|
68
|
+
var runtime = require("../runtime");
|
|
69
|
+
var index_1 = require("../models/index");
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
var PickfacesApi = /** @class */ (function (_super) {
|
|
74
|
+
__extends(PickfacesApi, _super);
|
|
75
|
+
function PickfacesApi() {
|
|
76
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Create a Pickface
|
|
80
|
+
* Create Pickface
|
|
81
|
+
*/
|
|
82
|
+
PickfacesApi.prototype.createPickfaceRaw = function (requestParameters, initOverrides) {
|
|
83
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84
|
+
var queryParameters, headerParameters, response;
|
|
85
|
+
return __generator(this, function (_a) {
|
|
86
|
+
switch (_a.label) {
|
|
87
|
+
case 0:
|
|
88
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
89
|
+
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling createPickface.');
|
|
90
|
+
}
|
|
91
|
+
if (requestParameters.createPickfaceRequest === null || requestParameters.createPickfaceRequest === undefined) {
|
|
92
|
+
throw new runtime.RequiredError('createPickfaceRequest', 'Required parameter requestParameters.createPickfaceRequest was null or undefined when calling createPickface.');
|
|
93
|
+
}
|
|
94
|
+
queryParameters = {};
|
|
95
|
+
if (requestParameters.project !== undefined) {
|
|
96
|
+
queryParameters['project'] = requestParameters.project;
|
|
97
|
+
}
|
|
98
|
+
headerParameters = {};
|
|
99
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
100
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
101
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
102
|
+
}
|
|
103
|
+
return [4 /*yield*/, this.request({
|
|
104
|
+
path: "/v1/pickfaces",
|
|
105
|
+
method: 'POST',
|
|
106
|
+
headers: headerParameters,
|
|
107
|
+
query: queryParameters,
|
|
108
|
+
body: (0, index_1.CreatePickfaceRequestToJSON)(requestParameters.createPickfaceRequest),
|
|
109
|
+
}, initOverrides)];
|
|
110
|
+
case 1:
|
|
111
|
+
response = _a.sent();
|
|
112
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PickfaceFromJSON)(jsonValue); })];
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
});
|
|
116
|
+
};
|
|
117
|
+
/**
|
|
118
|
+
* Create a Pickface
|
|
119
|
+
* Create Pickface
|
|
120
|
+
*/
|
|
121
|
+
PickfacesApi.prototype.createPickface = function (requestParameters, initOverrides) {
|
|
122
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
123
|
+
var response;
|
|
124
|
+
return __generator(this, function (_a) {
|
|
125
|
+
switch (_a.label) {
|
|
126
|
+
case 0: return [4 /*yield*/, this.createPickfaceRaw(requestParameters, initOverrides)];
|
|
127
|
+
case 1:
|
|
128
|
+
response = _a.sent();
|
|
129
|
+
return [4 /*yield*/, response.value()];
|
|
130
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
});
|
|
134
|
+
};
|
|
135
|
+
/**
|
|
136
|
+
* Delete a Pickface
|
|
137
|
+
* Delete Pickface
|
|
138
|
+
*/
|
|
139
|
+
PickfacesApi.prototype.deletePickfaceRaw = function (requestParameters, initOverrides) {
|
|
140
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
141
|
+
var queryParameters, headerParameters, response;
|
|
142
|
+
return __generator(this, function (_a) {
|
|
143
|
+
switch (_a.label) {
|
|
144
|
+
case 0:
|
|
145
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
146
|
+
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling deletePickface.');
|
|
147
|
+
}
|
|
148
|
+
if (requestParameters.pickfaceId === null || requestParameters.pickfaceId === undefined) {
|
|
149
|
+
throw new runtime.RequiredError('pickfaceId', 'Required parameter requestParameters.pickfaceId was null or undefined when calling deletePickface.');
|
|
150
|
+
}
|
|
151
|
+
queryParameters = {};
|
|
152
|
+
if (requestParameters.project !== undefined) {
|
|
153
|
+
queryParameters['project'] = requestParameters.project;
|
|
154
|
+
}
|
|
155
|
+
headerParameters = {};
|
|
156
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
157
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
158
|
+
}
|
|
159
|
+
return [4 /*yield*/, this.request({
|
|
160
|
+
path: "/v1/pickfaces/{pickfaceId}".replace("{".concat("pickfaceId", "}"), encodeURIComponent(String(requestParameters.pickfaceId))),
|
|
161
|
+
method: 'DELETE',
|
|
162
|
+
headers: headerParameters,
|
|
163
|
+
query: queryParameters,
|
|
164
|
+
}, initOverrides)];
|
|
165
|
+
case 1:
|
|
166
|
+
response = _a.sent();
|
|
167
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
});
|
|
171
|
+
};
|
|
172
|
+
/**
|
|
173
|
+
* Delete a Pickface
|
|
174
|
+
* Delete Pickface
|
|
175
|
+
*/
|
|
176
|
+
PickfacesApi.prototype.deletePickface = function (requestParameters, initOverrides) {
|
|
177
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
178
|
+
return __generator(this, function (_a) {
|
|
179
|
+
switch (_a.label) {
|
|
180
|
+
case 0: return [4 /*yield*/, this.deletePickfaceRaw(requestParameters, initOverrides)];
|
|
181
|
+
case 1:
|
|
182
|
+
_a.sent();
|
|
183
|
+
return [2 /*return*/];
|
|
184
|
+
}
|
|
185
|
+
});
|
|
186
|
+
});
|
|
187
|
+
};
|
|
188
|
+
/**
|
|
189
|
+
* Get a pickface
|
|
190
|
+
* Get pickface
|
|
191
|
+
*/
|
|
192
|
+
PickfacesApi.prototype.getPickfaceRaw = function (requestParameters, initOverrides) {
|
|
193
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
194
|
+
var queryParameters, headerParameters, response;
|
|
195
|
+
return __generator(this, function (_a) {
|
|
196
|
+
switch (_a.label) {
|
|
197
|
+
case 0:
|
|
198
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
199
|
+
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling getPickface.');
|
|
200
|
+
}
|
|
201
|
+
if (requestParameters.pickfaceId === null || requestParameters.pickfaceId === undefined) {
|
|
202
|
+
throw new runtime.RequiredError('pickfaceId', 'Required parameter requestParameters.pickfaceId was null or undefined when calling getPickface.');
|
|
203
|
+
}
|
|
204
|
+
queryParameters = {};
|
|
205
|
+
if (requestParameters.project !== undefined) {
|
|
206
|
+
queryParameters['project'] = requestParameters.project;
|
|
207
|
+
}
|
|
208
|
+
headerParameters = {};
|
|
209
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
210
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
211
|
+
}
|
|
212
|
+
return [4 /*yield*/, this.request({
|
|
213
|
+
path: "/v1/pickfaces/{pickfaceId}".replace("{".concat("pickfaceId", "}"), encodeURIComponent(String(requestParameters.pickfaceId))),
|
|
214
|
+
method: 'GET',
|
|
215
|
+
headers: headerParameters,
|
|
216
|
+
query: queryParameters,
|
|
217
|
+
}, initOverrides)];
|
|
218
|
+
case 1:
|
|
219
|
+
response = _a.sent();
|
|
220
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PickfaceFromJSON)(jsonValue); })];
|
|
221
|
+
}
|
|
222
|
+
});
|
|
223
|
+
});
|
|
224
|
+
};
|
|
225
|
+
/**
|
|
226
|
+
* Get a pickface
|
|
227
|
+
* Get pickface
|
|
228
|
+
*/
|
|
229
|
+
PickfacesApi.prototype.getPickface = function (requestParameters, initOverrides) {
|
|
230
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
231
|
+
var response;
|
|
232
|
+
return __generator(this, function (_a) {
|
|
233
|
+
switch (_a.label) {
|
|
234
|
+
case 0: return [4 /*yield*/, this.getPickfaceRaw(requestParameters, initOverrides)];
|
|
235
|
+
case 1:
|
|
236
|
+
response = _a.sent();
|
|
237
|
+
return [4 /*yield*/, response.value()];
|
|
238
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
239
|
+
}
|
|
240
|
+
});
|
|
241
|
+
});
|
|
242
|
+
};
|
|
243
|
+
/**
|
|
244
|
+
* Lists all pickfaces available paginated into chunks
|
|
245
|
+
* List pickfaces
|
|
246
|
+
*/
|
|
247
|
+
PickfacesApi.prototype.getPickfacesRaw = function (requestParameters, initOverrides) {
|
|
248
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
249
|
+
var queryParameters, headerParameters, response;
|
|
250
|
+
return __generator(this, function (_a) {
|
|
251
|
+
switch (_a.label) {
|
|
252
|
+
case 0:
|
|
253
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
254
|
+
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling getPickfaces.');
|
|
255
|
+
}
|
|
256
|
+
queryParameters = {};
|
|
257
|
+
if (requestParameters.project !== undefined) {
|
|
258
|
+
queryParameters['project'] = requestParameters.project;
|
|
259
|
+
}
|
|
260
|
+
if (requestParameters.search !== undefined) {
|
|
261
|
+
queryParameters['search'] = requestParameters.search;
|
|
262
|
+
}
|
|
263
|
+
if (requestParameters.pageToken !== undefined) {
|
|
264
|
+
queryParameters['pageToken'] = requestParameters.pageToken;
|
|
265
|
+
}
|
|
266
|
+
if (requestParameters.pageSize !== undefined) {
|
|
267
|
+
queryParameters['pageSize'] = requestParameters.pageSize;
|
|
268
|
+
}
|
|
269
|
+
headerParameters = {};
|
|
270
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
271
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
272
|
+
}
|
|
273
|
+
return [4 /*yield*/, this.request({
|
|
274
|
+
path: "/v1/pickfaces",
|
|
275
|
+
method: 'GET',
|
|
276
|
+
headers: headerParameters,
|
|
277
|
+
query: queryParameters,
|
|
278
|
+
}, initOverrides)];
|
|
279
|
+
case 1:
|
|
280
|
+
response = _a.sent();
|
|
281
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetPickfaces200ResponseFromJSON)(jsonValue); })];
|
|
282
|
+
}
|
|
283
|
+
});
|
|
284
|
+
});
|
|
285
|
+
};
|
|
286
|
+
/**
|
|
287
|
+
* Lists all pickfaces available paginated into chunks
|
|
288
|
+
* List pickfaces
|
|
289
|
+
*/
|
|
290
|
+
PickfacesApi.prototype.getPickfaces = function (requestParameters, initOverrides) {
|
|
291
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
292
|
+
var response;
|
|
293
|
+
return __generator(this, function (_a) {
|
|
294
|
+
switch (_a.label) {
|
|
295
|
+
case 0: return [4 /*yield*/, this.getPickfacesRaw(requestParameters, initOverrides)];
|
|
296
|
+
case 1:
|
|
297
|
+
response = _a.sent();
|
|
298
|
+
return [4 /*yield*/, response.value()];
|
|
299
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
300
|
+
}
|
|
301
|
+
});
|
|
302
|
+
});
|
|
303
|
+
};
|
|
304
|
+
/**
|
|
305
|
+
* Update a Pickface
|
|
306
|
+
* Update Pickface
|
|
307
|
+
*/
|
|
308
|
+
PickfacesApi.prototype.updatePickfaceRaw = function (requestParameters, initOverrides) {
|
|
309
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
310
|
+
var queryParameters, headerParameters, response;
|
|
311
|
+
return __generator(this, function (_a) {
|
|
312
|
+
switch (_a.label) {
|
|
313
|
+
case 0:
|
|
314
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
315
|
+
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling updatePickface.');
|
|
316
|
+
}
|
|
317
|
+
if (requestParameters.pickfaceId === null || requestParameters.pickfaceId === undefined) {
|
|
318
|
+
throw new runtime.RequiredError('pickfaceId', 'Required parameter requestParameters.pickfaceId was null or undefined when calling updatePickface.');
|
|
319
|
+
}
|
|
320
|
+
if (requestParameters.updatePickfaceRequest === null || requestParameters.updatePickfaceRequest === undefined) {
|
|
321
|
+
throw new runtime.RequiredError('updatePickfaceRequest', 'Required parameter requestParameters.updatePickfaceRequest was null or undefined when calling updatePickface.');
|
|
322
|
+
}
|
|
323
|
+
queryParameters = {};
|
|
324
|
+
if (requestParameters.project !== undefined) {
|
|
325
|
+
queryParameters['project'] = requestParameters.project;
|
|
326
|
+
}
|
|
327
|
+
headerParameters = {};
|
|
328
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
329
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
330
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
331
|
+
}
|
|
332
|
+
return [4 /*yield*/, this.request({
|
|
333
|
+
path: "/v1/pickfaces/{pickfaceId}".replace("{".concat("pickfaceId", "}"), encodeURIComponent(String(requestParameters.pickfaceId))),
|
|
334
|
+
method: 'PATCH',
|
|
335
|
+
headers: headerParameters,
|
|
336
|
+
query: queryParameters,
|
|
337
|
+
body: (0, index_1.UpdatePickfaceRequestToJSON)(requestParameters.updatePickfaceRequest),
|
|
338
|
+
}, initOverrides)];
|
|
339
|
+
case 1:
|
|
340
|
+
response = _a.sent();
|
|
341
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PickfaceFromJSON)(jsonValue); })];
|
|
342
|
+
}
|
|
343
|
+
});
|
|
344
|
+
});
|
|
345
|
+
};
|
|
346
|
+
/**
|
|
347
|
+
* Update a Pickface
|
|
348
|
+
* Update Pickface
|
|
349
|
+
*/
|
|
350
|
+
PickfacesApi.prototype.updatePickface = function (requestParameters, initOverrides) {
|
|
351
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
352
|
+
var response;
|
|
353
|
+
return __generator(this, function (_a) {
|
|
354
|
+
switch (_a.label) {
|
|
355
|
+
case 0: return [4 /*yield*/, this.updatePickfaceRaw(requestParameters, initOverrides)];
|
|
356
|
+
case 1:
|
|
357
|
+
response = _a.sent();
|
|
358
|
+
return [4 /*yield*/, response.value()];
|
|
359
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
360
|
+
}
|
|
361
|
+
});
|
|
362
|
+
});
|
|
363
|
+
};
|
|
364
|
+
return PickfacesApi;
|
|
365
|
+
}(runtime.BaseAPI));
|
|
366
|
+
exports.PickfacesApi = PickfacesApi;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './PickfacesApi';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
/* tslint:disable */
|
|
18
|
+
/* eslint-disable */
|
|
19
|
+
__exportStar(require("./PickfacesApi"), exports);
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
/* tslint:disable */
|
|
18
|
+
/* eslint-disable */
|
|
19
|
+
__exportStar(require("./runtime"), exports);
|
|
20
|
+
__exportStar(require("./apis/index"), exports);
|
|
21
|
+
__exportStar(require("./models/index"), exports);
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
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)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.1
|
|
6
|
+
* Contact: hello@teemill.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { CreatePickfaceRequestDimensions } from './CreatePickfaceRequestDimensions';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CreatePickfaceRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface CreatePickfaceRequest {
|
|
19
|
+
/**
|
|
20
|
+
* The location of the pickface
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof CreatePickfaceRequest
|
|
23
|
+
*/
|
|
24
|
+
location?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {CreatePickfaceRequestDimensions}
|
|
28
|
+
* @memberof CreatePickfaceRequest
|
|
29
|
+
*/
|
|
30
|
+
dimensions?: CreatePickfaceRequestDimensions;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the CreatePickfaceRequest interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfCreatePickfaceRequest(value: object): boolean;
|
|
36
|
+
export declare function CreatePickfaceRequestFromJSON(json: any): CreatePickfaceRequest;
|
|
37
|
+
export declare function CreatePickfaceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreatePickfaceRequest;
|
|
38
|
+
export declare function CreatePickfaceRequestToJSON(value?: CreatePickfaceRequest | null): any;
|