@teemill/warehouse-prefab-applications 0.0.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 +13 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +46 -0
- package/api.ts +1342 -0
- package/base.ts +86 -0
- package/common.ts +150 -0
- package/configuration.ts +110 -0
- package/dist/api.d.ts +841 -0
- package/dist/api.js +810 -0
- package/dist/base.d.ts +66 -0
- package/dist/base.js +65 -0
- package/dist/common.d.ts +65 -0
- package/dist/common.js +161 -0
- package/dist/configuration.d.ts +91 -0
- package/dist/configuration.js +43 -0
- package/dist/esm/api.d.ts +841 -0
- package/dist/esm/api.js +795 -0
- package/dist/esm/base.d.ts +66 -0
- package/dist/esm/base.js +60 -0
- package/dist/esm/common.d.ts +65 -0
- package/dist/esm/common.js +149 -0
- package/dist/esm/configuration.d.ts +91 -0
- package/dist/esm/configuration.js +39 -0
- package/dist/esm/index.d.ts +13 -0
- package/dist/esm/index.js +15 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +31 -0
- package/git_push.sh +57 -0
- package/index.ts +18 -0
- package/package.json +33 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +18 -0
package/dist/api.js
ADDED
|
@@ -0,0 +1,810 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Warehouse Prefab Applications API
|
|
6
|
+
* Manage Teemill Warehouse Prefab Applications 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.0.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 __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.TraysApi = exports.TraysApiFactory = exports.TraysApiFp = exports.TraysApiAxiosParamCreator = exports.PrefabApplicationsApi = exports.PrefabApplicationsApiFactory = exports.PrefabApplicationsApiFp = exports.PrefabApplicationsApiAxiosParamCreator = exports.BatchesApi = exports.BatchesApiFactory = exports.BatchesApiFp = exports.BatchesApiAxiosParamCreator = exports.PrefabApplicationStatusEnum = void 0;
|
|
26
|
+
const axios_1 = require("axios");
|
|
27
|
+
// Some imports not used depending on template conditions
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
const common_1 = require("./common");
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
const base_1 = require("./base");
|
|
32
|
+
exports.PrefabApplicationStatusEnum = {
|
|
33
|
+
Processing: 'processing',
|
|
34
|
+
Complete: 'complete'
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* BatchesApi - axios parameter creator
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
const BatchesApiAxiosParamCreator = function (configuration) {
|
|
41
|
+
return {
|
|
42
|
+
/**
|
|
43
|
+
* Create a batch of applications
|
|
44
|
+
* @summary Create batch
|
|
45
|
+
* @param {string} project What project it is
|
|
46
|
+
* @param {CreateBatchRequest} createBatchRequest Batch of application refs to create
|
|
47
|
+
* @param {*} [options] Override http request option.
|
|
48
|
+
* @throws {RequiredError}
|
|
49
|
+
*/
|
|
50
|
+
createBatch: (project_1, createBatchRequest_1, ...args_1) => __awaiter(this, [project_1, createBatchRequest_1, ...args_1], void 0, function* (project, createBatchRequest, options = {}) {
|
|
51
|
+
// verify required parameter 'project' is not null or undefined
|
|
52
|
+
(0, common_1.assertParamExists)('createBatch', 'project', project);
|
|
53
|
+
// verify required parameter 'createBatchRequest' is not null or undefined
|
|
54
|
+
(0, common_1.assertParamExists)('createBatch', 'createBatchRequest', createBatchRequest);
|
|
55
|
+
const localVarPath = `/v1/warehouse/prefab-applications/batches`;
|
|
56
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
57
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
58
|
+
let baseOptions;
|
|
59
|
+
if (configuration) {
|
|
60
|
+
baseOptions = configuration.baseOptions;
|
|
61
|
+
}
|
|
62
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
63
|
+
const localVarHeaderParameter = {};
|
|
64
|
+
const localVarQueryParameter = {};
|
|
65
|
+
// authentication session-oauth required
|
|
66
|
+
// oauth required
|
|
67
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
68
|
+
// authentication api-key required
|
|
69
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
70
|
+
if (project !== undefined) {
|
|
71
|
+
localVarQueryParameter['project'] = project;
|
|
72
|
+
}
|
|
73
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
74
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
75
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
76
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
77
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createBatchRequest, localVarRequestOptions, configuration);
|
|
78
|
+
return {
|
|
79
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
80
|
+
options: localVarRequestOptions,
|
|
81
|
+
};
|
|
82
|
+
}),
|
|
83
|
+
/**
|
|
84
|
+
* Get a batch of applications
|
|
85
|
+
* @summary Get batch
|
|
86
|
+
* @param {string} project What project it is
|
|
87
|
+
* @param {string} batchId Batch ID
|
|
88
|
+
* @param {*} [options] Override http request option.
|
|
89
|
+
* @throws {RequiredError}
|
|
90
|
+
*/
|
|
91
|
+
getBatch: (project_1, batchId_1, ...args_1) => __awaiter(this, [project_1, batchId_1, ...args_1], void 0, function* (project, batchId, options = {}) {
|
|
92
|
+
// verify required parameter 'project' is not null or undefined
|
|
93
|
+
(0, common_1.assertParamExists)('getBatch', 'project', project);
|
|
94
|
+
// verify required parameter 'batchId' is not null or undefined
|
|
95
|
+
(0, common_1.assertParamExists)('getBatch', 'batchId', batchId);
|
|
96
|
+
const localVarPath = `/v1/warehouse/prefab-applications/batches/{batchId}`
|
|
97
|
+
.replace(`{${"batchId"}}`, encodeURIComponent(String(batchId)));
|
|
98
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
99
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
100
|
+
let baseOptions;
|
|
101
|
+
if (configuration) {
|
|
102
|
+
baseOptions = configuration.baseOptions;
|
|
103
|
+
}
|
|
104
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
105
|
+
const localVarHeaderParameter = {};
|
|
106
|
+
const localVarQueryParameter = {};
|
|
107
|
+
// authentication session-oauth required
|
|
108
|
+
// oauth required
|
|
109
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
110
|
+
// authentication api-key required
|
|
111
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
112
|
+
if (project !== undefined) {
|
|
113
|
+
localVarQueryParameter['project'] = project;
|
|
114
|
+
}
|
|
115
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
116
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
117
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
118
|
+
return {
|
|
119
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
120
|
+
options: localVarRequestOptions,
|
|
121
|
+
};
|
|
122
|
+
}),
|
|
123
|
+
/**
|
|
124
|
+
* Lists all prefab applications in a batch paginated into chunks
|
|
125
|
+
* @summary List batch applications
|
|
126
|
+
* @param {string} project What project it is
|
|
127
|
+
* @param {string} batchId Batch ID
|
|
128
|
+
* @param {number} [pageToken] Page reference token
|
|
129
|
+
* @param {number} [pageSize] The number of results requested per request
|
|
130
|
+
* @param {*} [options] Override http request option.
|
|
131
|
+
* @throws {RequiredError}
|
|
132
|
+
*/
|
|
133
|
+
listBatchPrefabApplications: (project_1, batchId_1, pageToken_1, pageSize_1, ...args_1) => __awaiter(this, [project_1, batchId_1, pageToken_1, pageSize_1, ...args_1], void 0, function* (project, batchId, pageToken, pageSize, options = {}) {
|
|
134
|
+
// verify required parameter 'project' is not null or undefined
|
|
135
|
+
(0, common_1.assertParamExists)('listBatchPrefabApplications', 'project', project);
|
|
136
|
+
// verify required parameter 'batchId' is not null or undefined
|
|
137
|
+
(0, common_1.assertParamExists)('listBatchPrefabApplications', 'batchId', batchId);
|
|
138
|
+
const localVarPath = `/v1/warehouse/prefab-applications/batches/{batchId}/prefab-applications`
|
|
139
|
+
.replace(`{${"batchId"}}`, encodeURIComponent(String(batchId)));
|
|
140
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
141
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
142
|
+
let baseOptions;
|
|
143
|
+
if (configuration) {
|
|
144
|
+
baseOptions = configuration.baseOptions;
|
|
145
|
+
}
|
|
146
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
147
|
+
const localVarHeaderParameter = {};
|
|
148
|
+
const localVarQueryParameter = {};
|
|
149
|
+
// authentication session-oauth required
|
|
150
|
+
// oauth required
|
|
151
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
152
|
+
// authentication api-key required
|
|
153
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
154
|
+
if (project !== undefined) {
|
|
155
|
+
localVarQueryParameter['project'] = project;
|
|
156
|
+
}
|
|
157
|
+
if (pageToken !== undefined) {
|
|
158
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
159
|
+
}
|
|
160
|
+
if (pageSize !== undefined) {
|
|
161
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
162
|
+
}
|
|
163
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
164
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
165
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
166
|
+
return {
|
|
167
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
168
|
+
options: localVarRequestOptions,
|
|
169
|
+
};
|
|
170
|
+
}),
|
|
171
|
+
/**
|
|
172
|
+
* Lists all batches available paginated into chunks
|
|
173
|
+
* @summary List batches
|
|
174
|
+
* @param {string} project What project it is
|
|
175
|
+
* @param {string} [search] Search term used to filter results by name or identifier
|
|
176
|
+
* @param {number} [pageToken] Page reference token
|
|
177
|
+
* @param {number} [pageSize] The number of results requested per request
|
|
178
|
+
* @param {*} [options] Override http request option.
|
|
179
|
+
* @throws {RequiredError}
|
|
180
|
+
*/
|
|
181
|
+
listBatches: (project_1, search_1, pageToken_1, pageSize_1, ...args_1) => __awaiter(this, [project_1, search_1, pageToken_1, pageSize_1, ...args_1], void 0, function* (project, search, pageToken, pageSize, options = {}) {
|
|
182
|
+
// verify required parameter 'project' is not null or undefined
|
|
183
|
+
(0, common_1.assertParamExists)('listBatches', 'project', project);
|
|
184
|
+
const localVarPath = `/v1/warehouse/prefab-applications/batches`;
|
|
185
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
186
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
187
|
+
let baseOptions;
|
|
188
|
+
if (configuration) {
|
|
189
|
+
baseOptions = configuration.baseOptions;
|
|
190
|
+
}
|
|
191
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
192
|
+
const localVarHeaderParameter = {};
|
|
193
|
+
const localVarQueryParameter = {};
|
|
194
|
+
// authentication session-oauth required
|
|
195
|
+
// oauth required
|
|
196
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
197
|
+
// authentication api-key required
|
|
198
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
199
|
+
if (project !== undefined) {
|
|
200
|
+
localVarQueryParameter['project'] = project;
|
|
201
|
+
}
|
|
202
|
+
if (search !== undefined) {
|
|
203
|
+
localVarQueryParameter['search'] = search;
|
|
204
|
+
}
|
|
205
|
+
if (pageToken !== undefined) {
|
|
206
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
207
|
+
}
|
|
208
|
+
if (pageSize !== undefined) {
|
|
209
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
210
|
+
}
|
|
211
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
212
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
213
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
214
|
+
return {
|
|
215
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
216
|
+
options: localVarRequestOptions,
|
|
217
|
+
};
|
|
218
|
+
}),
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
exports.BatchesApiAxiosParamCreator = BatchesApiAxiosParamCreator;
|
|
222
|
+
/**
|
|
223
|
+
* BatchesApi - functional programming interface
|
|
224
|
+
* @export
|
|
225
|
+
*/
|
|
226
|
+
const BatchesApiFp = function (configuration) {
|
|
227
|
+
const localVarAxiosParamCreator = (0, exports.BatchesApiAxiosParamCreator)(configuration);
|
|
228
|
+
return {
|
|
229
|
+
/**
|
|
230
|
+
* Create a batch of applications
|
|
231
|
+
* @summary Create batch
|
|
232
|
+
* @param {string} project What project it is
|
|
233
|
+
* @param {CreateBatchRequest} createBatchRequest Batch of application refs to create
|
|
234
|
+
* @param {*} [options] Override http request option.
|
|
235
|
+
* @throws {RequiredError}
|
|
236
|
+
*/
|
|
237
|
+
createBatch(project, createBatchRequest, options) {
|
|
238
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
239
|
+
var _a, _b, _c;
|
|
240
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createBatch(project, createBatchRequest, options);
|
|
241
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
242
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BatchesApi.createBatch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
243
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
244
|
+
});
|
|
245
|
+
},
|
|
246
|
+
/**
|
|
247
|
+
* Get a batch of applications
|
|
248
|
+
* @summary Get batch
|
|
249
|
+
* @param {string} project What project it is
|
|
250
|
+
* @param {string} batchId Batch ID
|
|
251
|
+
* @param {*} [options] Override http request option.
|
|
252
|
+
* @throws {RequiredError}
|
|
253
|
+
*/
|
|
254
|
+
getBatch(project, batchId, options) {
|
|
255
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
256
|
+
var _a, _b, _c;
|
|
257
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBatch(project, batchId, options);
|
|
258
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
259
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BatchesApi.getBatch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
260
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
261
|
+
});
|
|
262
|
+
},
|
|
263
|
+
/**
|
|
264
|
+
* Lists all prefab applications in a batch paginated into chunks
|
|
265
|
+
* @summary List batch applications
|
|
266
|
+
* @param {string} project What project it is
|
|
267
|
+
* @param {string} batchId Batch ID
|
|
268
|
+
* @param {number} [pageToken] Page reference token
|
|
269
|
+
* @param {number} [pageSize] The number of results requested per request
|
|
270
|
+
* @param {*} [options] Override http request option.
|
|
271
|
+
* @throws {RequiredError}
|
|
272
|
+
*/
|
|
273
|
+
listBatchPrefabApplications(project, batchId, pageToken, pageSize, options) {
|
|
274
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
275
|
+
var _a, _b, _c;
|
|
276
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listBatchPrefabApplications(project, batchId, pageToken, pageSize, options);
|
|
277
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
278
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BatchesApi.listBatchPrefabApplications']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
279
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
280
|
+
});
|
|
281
|
+
},
|
|
282
|
+
/**
|
|
283
|
+
* Lists all batches available paginated into chunks
|
|
284
|
+
* @summary List batches
|
|
285
|
+
* @param {string} project What project it is
|
|
286
|
+
* @param {string} [search] Search term used to filter results by name or identifier
|
|
287
|
+
* @param {number} [pageToken] Page reference token
|
|
288
|
+
* @param {number} [pageSize] The number of results requested per request
|
|
289
|
+
* @param {*} [options] Override http request option.
|
|
290
|
+
* @throws {RequiredError}
|
|
291
|
+
*/
|
|
292
|
+
listBatches(project, search, pageToken, pageSize, options) {
|
|
293
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
294
|
+
var _a, _b, _c;
|
|
295
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listBatches(project, search, pageToken, pageSize, options);
|
|
296
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
297
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BatchesApi.listBatches']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
298
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
299
|
+
});
|
|
300
|
+
},
|
|
301
|
+
};
|
|
302
|
+
};
|
|
303
|
+
exports.BatchesApiFp = BatchesApiFp;
|
|
304
|
+
/**
|
|
305
|
+
* BatchesApi - factory interface
|
|
306
|
+
* @export
|
|
307
|
+
*/
|
|
308
|
+
const BatchesApiFactory = function (configuration, basePath, axios) {
|
|
309
|
+
const localVarFp = (0, exports.BatchesApiFp)(configuration);
|
|
310
|
+
return {
|
|
311
|
+
/**
|
|
312
|
+
* Create a batch of applications
|
|
313
|
+
* @summary Create batch
|
|
314
|
+
* @param {BatchesApiCreateBatchRequest} requestParameters Request parameters.
|
|
315
|
+
* @param {*} [options] Override http request option.
|
|
316
|
+
* @throws {RequiredError}
|
|
317
|
+
*/
|
|
318
|
+
createBatch(requestParameters, options) {
|
|
319
|
+
return localVarFp.createBatch(requestParameters.project, requestParameters.createBatchRequest, options).then((request) => request(axios, basePath));
|
|
320
|
+
},
|
|
321
|
+
/**
|
|
322
|
+
* Get a batch of applications
|
|
323
|
+
* @summary Get batch
|
|
324
|
+
* @param {BatchesApiGetBatchRequest} requestParameters Request parameters.
|
|
325
|
+
* @param {*} [options] Override http request option.
|
|
326
|
+
* @throws {RequiredError}
|
|
327
|
+
*/
|
|
328
|
+
getBatch(requestParameters, options) {
|
|
329
|
+
return localVarFp.getBatch(requestParameters.project, requestParameters.batchId, options).then((request) => request(axios, basePath));
|
|
330
|
+
},
|
|
331
|
+
/**
|
|
332
|
+
* Lists all prefab applications in a batch paginated into chunks
|
|
333
|
+
* @summary List batch applications
|
|
334
|
+
* @param {BatchesApiListBatchPrefabApplicationsRequest} requestParameters Request parameters.
|
|
335
|
+
* @param {*} [options] Override http request option.
|
|
336
|
+
* @throws {RequiredError}
|
|
337
|
+
*/
|
|
338
|
+
listBatchPrefabApplications(requestParameters, options) {
|
|
339
|
+
return localVarFp.listBatchPrefabApplications(requestParameters.project, requestParameters.batchId, requestParameters.pageToken, requestParameters.pageSize, options).then((request) => request(axios, basePath));
|
|
340
|
+
},
|
|
341
|
+
/**
|
|
342
|
+
* Lists all batches available paginated into chunks
|
|
343
|
+
* @summary List batches
|
|
344
|
+
* @param {BatchesApiListBatchesRequest} requestParameters Request parameters.
|
|
345
|
+
* @param {*} [options] Override http request option.
|
|
346
|
+
* @throws {RequiredError}
|
|
347
|
+
*/
|
|
348
|
+
listBatches(requestParameters, options) {
|
|
349
|
+
return localVarFp.listBatches(requestParameters.project, requestParameters.search, requestParameters.pageToken, requestParameters.pageSize, options).then((request) => request(axios, basePath));
|
|
350
|
+
},
|
|
351
|
+
};
|
|
352
|
+
};
|
|
353
|
+
exports.BatchesApiFactory = BatchesApiFactory;
|
|
354
|
+
/**
|
|
355
|
+
* BatchesApi - object-oriented interface
|
|
356
|
+
* @export
|
|
357
|
+
* @class BatchesApi
|
|
358
|
+
* @extends {BaseAPI}
|
|
359
|
+
*/
|
|
360
|
+
class BatchesApi extends base_1.BaseAPI {
|
|
361
|
+
/**
|
|
362
|
+
* Create a batch of applications
|
|
363
|
+
* @summary Create batch
|
|
364
|
+
* @param {BatchesApiCreateBatchRequest} requestParameters Request parameters.
|
|
365
|
+
* @param {*} [options] Override http request option.
|
|
366
|
+
* @throws {RequiredError}
|
|
367
|
+
* @memberof BatchesApi
|
|
368
|
+
*/
|
|
369
|
+
createBatch(requestParameters, options) {
|
|
370
|
+
return (0, exports.BatchesApiFp)(this.configuration).createBatch(requestParameters.project, requestParameters.createBatchRequest, options).then((request) => request(this.axios, this.basePath));
|
|
371
|
+
}
|
|
372
|
+
/**
|
|
373
|
+
* Get a batch of applications
|
|
374
|
+
* @summary Get batch
|
|
375
|
+
* @param {BatchesApiGetBatchRequest} requestParameters Request parameters.
|
|
376
|
+
* @param {*} [options] Override http request option.
|
|
377
|
+
* @throws {RequiredError}
|
|
378
|
+
* @memberof BatchesApi
|
|
379
|
+
*/
|
|
380
|
+
getBatch(requestParameters, options) {
|
|
381
|
+
return (0, exports.BatchesApiFp)(this.configuration).getBatch(requestParameters.project, requestParameters.batchId, options).then((request) => request(this.axios, this.basePath));
|
|
382
|
+
}
|
|
383
|
+
/**
|
|
384
|
+
* Lists all prefab applications in a batch paginated into chunks
|
|
385
|
+
* @summary List batch applications
|
|
386
|
+
* @param {BatchesApiListBatchPrefabApplicationsRequest} requestParameters Request parameters.
|
|
387
|
+
* @param {*} [options] Override http request option.
|
|
388
|
+
* @throws {RequiredError}
|
|
389
|
+
* @memberof BatchesApi
|
|
390
|
+
*/
|
|
391
|
+
listBatchPrefabApplications(requestParameters, options) {
|
|
392
|
+
return (0, exports.BatchesApiFp)(this.configuration).listBatchPrefabApplications(requestParameters.project, requestParameters.batchId, requestParameters.pageToken, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
393
|
+
}
|
|
394
|
+
/**
|
|
395
|
+
* Lists all batches available paginated into chunks
|
|
396
|
+
* @summary List batches
|
|
397
|
+
* @param {BatchesApiListBatchesRequest} requestParameters Request parameters.
|
|
398
|
+
* @param {*} [options] Override http request option.
|
|
399
|
+
* @throws {RequiredError}
|
|
400
|
+
* @memberof BatchesApi
|
|
401
|
+
*/
|
|
402
|
+
listBatches(requestParameters, options) {
|
|
403
|
+
return (0, exports.BatchesApiFp)(this.configuration).listBatches(requestParameters.project, requestParameters.search, requestParameters.pageToken, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
exports.BatchesApi = BatchesApi;
|
|
407
|
+
/**
|
|
408
|
+
* PrefabApplicationsApi - axios parameter creator
|
|
409
|
+
* @export
|
|
410
|
+
*/
|
|
411
|
+
const PrefabApplicationsApiAxiosParamCreator = function (configuration) {
|
|
412
|
+
return {
|
|
413
|
+
/**
|
|
414
|
+
* Get a prefab application
|
|
415
|
+
* @summary Get prefab application
|
|
416
|
+
* @param {string} project What project it is
|
|
417
|
+
* @param {string} prefabApplicationId Unique identifier of a prefab application
|
|
418
|
+
* @param {*} [options] Override http request option.
|
|
419
|
+
* @throws {RequiredError}
|
|
420
|
+
*/
|
|
421
|
+
getPrefabApplication: (project_1, prefabApplicationId_1, ...args_1) => __awaiter(this, [project_1, prefabApplicationId_1, ...args_1], void 0, function* (project, prefabApplicationId, options = {}) {
|
|
422
|
+
// verify required parameter 'project' is not null or undefined
|
|
423
|
+
(0, common_1.assertParamExists)('getPrefabApplication', 'project', project);
|
|
424
|
+
// verify required parameter 'prefabApplicationId' is not null or undefined
|
|
425
|
+
(0, common_1.assertParamExists)('getPrefabApplication', 'prefabApplicationId', prefabApplicationId);
|
|
426
|
+
const localVarPath = `/v1/warehouse/prefab-applications/{prefabApplicationId}`
|
|
427
|
+
.replace(`{${"prefabApplicationId"}}`, encodeURIComponent(String(prefabApplicationId)));
|
|
428
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
429
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
430
|
+
let baseOptions;
|
|
431
|
+
if (configuration) {
|
|
432
|
+
baseOptions = configuration.baseOptions;
|
|
433
|
+
}
|
|
434
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
435
|
+
const localVarHeaderParameter = {};
|
|
436
|
+
const localVarQueryParameter = {};
|
|
437
|
+
// authentication session-oauth required
|
|
438
|
+
// oauth required
|
|
439
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
440
|
+
// authentication api-key required
|
|
441
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
442
|
+
if (project !== undefined) {
|
|
443
|
+
localVarQueryParameter['project'] = project;
|
|
444
|
+
}
|
|
445
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
446
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
447
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
448
|
+
return {
|
|
449
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
450
|
+
options: localVarRequestOptions,
|
|
451
|
+
};
|
|
452
|
+
}),
|
|
453
|
+
/**
|
|
454
|
+
* Update a prefab application
|
|
455
|
+
* @summary Update prefab application
|
|
456
|
+
* @param {string} project What project it is
|
|
457
|
+
* @param {string} prefabApplicationId Unique identifier of a prefab application
|
|
458
|
+
* @param {PrefabApplication} prefabApplication Prefab application schema
|
|
459
|
+
* @param {*} [options] Override http request option.
|
|
460
|
+
* @throws {RequiredError}
|
|
461
|
+
*/
|
|
462
|
+
updatePrefabApplication: (project_1, prefabApplicationId_1, prefabApplication_1, ...args_1) => __awaiter(this, [project_1, prefabApplicationId_1, prefabApplication_1, ...args_1], void 0, function* (project, prefabApplicationId, prefabApplication, options = {}) {
|
|
463
|
+
// verify required parameter 'project' is not null or undefined
|
|
464
|
+
(0, common_1.assertParamExists)('updatePrefabApplication', 'project', project);
|
|
465
|
+
// verify required parameter 'prefabApplicationId' is not null or undefined
|
|
466
|
+
(0, common_1.assertParamExists)('updatePrefabApplication', 'prefabApplicationId', prefabApplicationId);
|
|
467
|
+
// verify required parameter 'prefabApplication' is not null or undefined
|
|
468
|
+
(0, common_1.assertParamExists)('updatePrefabApplication', 'prefabApplication', prefabApplication);
|
|
469
|
+
const localVarPath = `/v1/warehouse/prefab-applications/{prefabApplicationId}`
|
|
470
|
+
.replace(`{${"prefabApplicationId"}}`, encodeURIComponent(String(prefabApplicationId)));
|
|
471
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
472
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
473
|
+
let baseOptions;
|
|
474
|
+
if (configuration) {
|
|
475
|
+
baseOptions = configuration.baseOptions;
|
|
476
|
+
}
|
|
477
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
478
|
+
const localVarHeaderParameter = {};
|
|
479
|
+
const localVarQueryParameter = {};
|
|
480
|
+
// authentication session-oauth required
|
|
481
|
+
// oauth required
|
|
482
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
483
|
+
// authentication api-key required
|
|
484
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
485
|
+
if (project !== undefined) {
|
|
486
|
+
localVarQueryParameter['project'] = project;
|
|
487
|
+
}
|
|
488
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
489
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
490
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
491
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
492
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(prefabApplication, localVarRequestOptions, configuration);
|
|
493
|
+
return {
|
|
494
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
495
|
+
options: localVarRequestOptions,
|
|
496
|
+
};
|
|
497
|
+
}),
|
|
498
|
+
};
|
|
499
|
+
};
|
|
500
|
+
exports.PrefabApplicationsApiAxiosParamCreator = PrefabApplicationsApiAxiosParamCreator;
|
|
501
|
+
/**
|
|
502
|
+
* PrefabApplicationsApi - functional programming interface
|
|
503
|
+
* @export
|
|
504
|
+
*/
|
|
505
|
+
const PrefabApplicationsApiFp = function (configuration) {
|
|
506
|
+
const localVarAxiosParamCreator = (0, exports.PrefabApplicationsApiAxiosParamCreator)(configuration);
|
|
507
|
+
return {
|
|
508
|
+
/**
|
|
509
|
+
* Get a prefab application
|
|
510
|
+
* @summary Get prefab application
|
|
511
|
+
* @param {string} project What project it is
|
|
512
|
+
* @param {string} prefabApplicationId Unique identifier of a prefab application
|
|
513
|
+
* @param {*} [options] Override http request option.
|
|
514
|
+
* @throws {RequiredError}
|
|
515
|
+
*/
|
|
516
|
+
getPrefabApplication(project, prefabApplicationId, options) {
|
|
517
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
518
|
+
var _a, _b, _c;
|
|
519
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPrefabApplication(project, prefabApplicationId, options);
|
|
520
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
521
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PrefabApplicationsApi.getPrefabApplication']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
522
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
523
|
+
});
|
|
524
|
+
},
|
|
525
|
+
/**
|
|
526
|
+
* Update a prefab application
|
|
527
|
+
* @summary Update prefab application
|
|
528
|
+
* @param {string} project What project it is
|
|
529
|
+
* @param {string} prefabApplicationId Unique identifier of a prefab application
|
|
530
|
+
* @param {PrefabApplication} prefabApplication Prefab application schema
|
|
531
|
+
* @param {*} [options] Override http request option.
|
|
532
|
+
* @throws {RequiredError}
|
|
533
|
+
*/
|
|
534
|
+
updatePrefabApplication(project, prefabApplicationId, prefabApplication, options) {
|
|
535
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
536
|
+
var _a, _b, _c;
|
|
537
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePrefabApplication(project, prefabApplicationId, prefabApplication, options);
|
|
538
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
539
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PrefabApplicationsApi.updatePrefabApplication']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
540
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
541
|
+
});
|
|
542
|
+
},
|
|
543
|
+
};
|
|
544
|
+
};
|
|
545
|
+
exports.PrefabApplicationsApiFp = PrefabApplicationsApiFp;
|
|
546
|
+
/**
|
|
547
|
+
* PrefabApplicationsApi - factory interface
|
|
548
|
+
* @export
|
|
549
|
+
*/
|
|
550
|
+
const PrefabApplicationsApiFactory = function (configuration, basePath, axios) {
|
|
551
|
+
const localVarFp = (0, exports.PrefabApplicationsApiFp)(configuration);
|
|
552
|
+
return {
|
|
553
|
+
/**
|
|
554
|
+
* Get a prefab application
|
|
555
|
+
* @summary Get prefab application
|
|
556
|
+
* @param {PrefabApplicationsApiGetPrefabApplicationRequest} requestParameters Request parameters.
|
|
557
|
+
* @param {*} [options] Override http request option.
|
|
558
|
+
* @throws {RequiredError}
|
|
559
|
+
*/
|
|
560
|
+
getPrefabApplication(requestParameters, options) {
|
|
561
|
+
return localVarFp.getPrefabApplication(requestParameters.project, requestParameters.prefabApplicationId, options).then((request) => request(axios, basePath));
|
|
562
|
+
},
|
|
563
|
+
/**
|
|
564
|
+
* Update a prefab application
|
|
565
|
+
* @summary Update prefab application
|
|
566
|
+
* @param {PrefabApplicationsApiUpdatePrefabApplicationRequest} requestParameters Request parameters.
|
|
567
|
+
* @param {*} [options] Override http request option.
|
|
568
|
+
* @throws {RequiredError}
|
|
569
|
+
*/
|
|
570
|
+
updatePrefabApplication(requestParameters, options) {
|
|
571
|
+
return localVarFp.updatePrefabApplication(requestParameters.project, requestParameters.prefabApplicationId, requestParameters.prefabApplication, options).then((request) => request(axios, basePath));
|
|
572
|
+
},
|
|
573
|
+
};
|
|
574
|
+
};
|
|
575
|
+
exports.PrefabApplicationsApiFactory = PrefabApplicationsApiFactory;
|
|
576
|
+
/**
|
|
577
|
+
* PrefabApplicationsApi - object-oriented interface
|
|
578
|
+
* @export
|
|
579
|
+
* @class PrefabApplicationsApi
|
|
580
|
+
* @extends {BaseAPI}
|
|
581
|
+
*/
|
|
582
|
+
class PrefabApplicationsApi extends base_1.BaseAPI {
|
|
583
|
+
/**
|
|
584
|
+
* Get a prefab application
|
|
585
|
+
* @summary Get prefab application
|
|
586
|
+
* @param {PrefabApplicationsApiGetPrefabApplicationRequest} requestParameters Request parameters.
|
|
587
|
+
* @param {*} [options] Override http request option.
|
|
588
|
+
* @throws {RequiredError}
|
|
589
|
+
* @memberof PrefabApplicationsApi
|
|
590
|
+
*/
|
|
591
|
+
getPrefabApplication(requestParameters, options) {
|
|
592
|
+
return (0, exports.PrefabApplicationsApiFp)(this.configuration).getPrefabApplication(requestParameters.project, requestParameters.prefabApplicationId, options).then((request) => request(this.axios, this.basePath));
|
|
593
|
+
}
|
|
594
|
+
/**
|
|
595
|
+
* Update a prefab application
|
|
596
|
+
* @summary Update prefab application
|
|
597
|
+
* @param {PrefabApplicationsApiUpdatePrefabApplicationRequest} requestParameters Request parameters.
|
|
598
|
+
* @param {*} [options] Override http request option.
|
|
599
|
+
* @throws {RequiredError}
|
|
600
|
+
* @memberof PrefabApplicationsApi
|
|
601
|
+
*/
|
|
602
|
+
updatePrefabApplication(requestParameters, options) {
|
|
603
|
+
return (0, exports.PrefabApplicationsApiFp)(this.configuration).updatePrefabApplication(requestParameters.project, requestParameters.prefabApplicationId, requestParameters.prefabApplication, options).then((request) => request(this.axios, this.basePath));
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
exports.PrefabApplicationsApi = PrefabApplicationsApi;
|
|
607
|
+
/**
|
|
608
|
+
* TraysApi - axios parameter creator
|
|
609
|
+
* @export
|
|
610
|
+
*/
|
|
611
|
+
const TraysApiAxiosParamCreator = function (configuration) {
|
|
612
|
+
return {
|
|
613
|
+
/**
|
|
614
|
+
* Get a tray of applications
|
|
615
|
+
* @summary Get tray
|
|
616
|
+
* @param {string} project What project it is
|
|
617
|
+
* @param {string} trayId Tray ID
|
|
618
|
+
* @param {*} [options] Override http request option.
|
|
619
|
+
* @throws {RequiredError}
|
|
620
|
+
*/
|
|
621
|
+
getTray: (project_1, trayId_1, ...args_1) => __awaiter(this, [project_1, trayId_1, ...args_1], void 0, function* (project, trayId, options = {}) {
|
|
622
|
+
// verify required parameter 'project' is not null or undefined
|
|
623
|
+
(0, common_1.assertParamExists)('getTray', 'project', project);
|
|
624
|
+
// verify required parameter 'trayId' is not null or undefined
|
|
625
|
+
(0, common_1.assertParamExists)('getTray', 'trayId', trayId);
|
|
626
|
+
const localVarPath = `/v1/warehouse/prefab-applications/trays/{trayId}`
|
|
627
|
+
.replace(`{${"trayId"}}`, encodeURIComponent(String(trayId)));
|
|
628
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
629
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
630
|
+
let baseOptions;
|
|
631
|
+
if (configuration) {
|
|
632
|
+
baseOptions = configuration.baseOptions;
|
|
633
|
+
}
|
|
634
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
635
|
+
const localVarHeaderParameter = {};
|
|
636
|
+
const localVarQueryParameter = {};
|
|
637
|
+
// authentication session-oauth required
|
|
638
|
+
// oauth required
|
|
639
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
640
|
+
// authentication api-key required
|
|
641
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
642
|
+
if (project !== undefined) {
|
|
643
|
+
localVarQueryParameter['project'] = project;
|
|
644
|
+
}
|
|
645
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
646
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
647
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
648
|
+
return {
|
|
649
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
650
|
+
options: localVarRequestOptions,
|
|
651
|
+
};
|
|
652
|
+
}),
|
|
653
|
+
/**
|
|
654
|
+
* Lists all prefab application trays paginated into chunks
|
|
655
|
+
* @summary List trays
|
|
656
|
+
* @param {string} project What project it is
|
|
657
|
+
* @param {string} [search] Search term used to filter results by name or identifier
|
|
658
|
+
* @param {number} [pageToken] Page reference token
|
|
659
|
+
* @param {number} [pageSize] The number of results requested per request
|
|
660
|
+
* @param {*} [options] Override http request option.
|
|
661
|
+
* @throws {RequiredError}
|
|
662
|
+
*/
|
|
663
|
+
listTrays: (project_1, search_1, pageToken_1, pageSize_1, ...args_1) => __awaiter(this, [project_1, search_1, pageToken_1, pageSize_1, ...args_1], void 0, function* (project, search, pageToken, pageSize, options = {}) {
|
|
664
|
+
// verify required parameter 'project' is not null or undefined
|
|
665
|
+
(0, common_1.assertParamExists)('listTrays', 'project', project);
|
|
666
|
+
const localVarPath = `/v1/warehouse/prefab-applications/trays`;
|
|
667
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
668
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
669
|
+
let baseOptions;
|
|
670
|
+
if (configuration) {
|
|
671
|
+
baseOptions = configuration.baseOptions;
|
|
672
|
+
}
|
|
673
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
674
|
+
const localVarHeaderParameter = {};
|
|
675
|
+
const localVarQueryParameter = {};
|
|
676
|
+
// authentication session-oauth required
|
|
677
|
+
// oauth required
|
|
678
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
679
|
+
// authentication api-key required
|
|
680
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
681
|
+
if (project !== undefined) {
|
|
682
|
+
localVarQueryParameter['project'] = project;
|
|
683
|
+
}
|
|
684
|
+
if (search !== undefined) {
|
|
685
|
+
localVarQueryParameter['search'] = search;
|
|
686
|
+
}
|
|
687
|
+
if (pageToken !== undefined) {
|
|
688
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
689
|
+
}
|
|
690
|
+
if (pageSize !== undefined) {
|
|
691
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
692
|
+
}
|
|
693
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
694
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
695
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
696
|
+
return {
|
|
697
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
698
|
+
options: localVarRequestOptions,
|
|
699
|
+
};
|
|
700
|
+
}),
|
|
701
|
+
};
|
|
702
|
+
};
|
|
703
|
+
exports.TraysApiAxiosParamCreator = TraysApiAxiosParamCreator;
|
|
704
|
+
/**
|
|
705
|
+
* TraysApi - functional programming interface
|
|
706
|
+
* @export
|
|
707
|
+
*/
|
|
708
|
+
const TraysApiFp = function (configuration) {
|
|
709
|
+
const localVarAxiosParamCreator = (0, exports.TraysApiAxiosParamCreator)(configuration);
|
|
710
|
+
return {
|
|
711
|
+
/**
|
|
712
|
+
* Get a tray of applications
|
|
713
|
+
* @summary Get tray
|
|
714
|
+
* @param {string} project What project it is
|
|
715
|
+
* @param {string} trayId Tray ID
|
|
716
|
+
* @param {*} [options] Override http request option.
|
|
717
|
+
* @throws {RequiredError}
|
|
718
|
+
*/
|
|
719
|
+
getTray(project, trayId, options) {
|
|
720
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
721
|
+
var _a, _b, _c;
|
|
722
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getTray(project, trayId, options);
|
|
723
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
724
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TraysApi.getTray']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
725
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
726
|
+
});
|
|
727
|
+
},
|
|
728
|
+
/**
|
|
729
|
+
* Lists all prefab application trays paginated into chunks
|
|
730
|
+
* @summary List trays
|
|
731
|
+
* @param {string} project What project it is
|
|
732
|
+
* @param {string} [search] Search term used to filter results by name or identifier
|
|
733
|
+
* @param {number} [pageToken] Page reference token
|
|
734
|
+
* @param {number} [pageSize] The number of results requested per request
|
|
735
|
+
* @param {*} [options] Override http request option.
|
|
736
|
+
* @throws {RequiredError}
|
|
737
|
+
*/
|
|
738
|
+
listTrays(project, search, pageToken, pageSize, options) {
|
|
739
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
740
|
+
var _a, _b, _c;
|
|
741
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listTrays(project, search, pageToken, pageSize, options);
|
|
742
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
743
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TraysApi.listTrays']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
744
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
745
|
+
});
|
|
746
|
+
},
|
|
747
|
+
};
|
|
748
|
+
};
|
|
749
|
+
exports.TraysApiFp = TraysApiFp;
|
|
750
|
+
/**
|
|
751
|
+
* TraysApi - factory interface
|
|
752
|
+
* @export
|
|
753
|
+
*/
|
|
754
|
+
const TraysApiFactory = function (configuration, basePath, axios) {
|
|
755
|
+
const localVarFp = (0, exports.TraysApiFp)(configuration);
|
|
756
|
+
return {
|
|
757
|
+
/**
|
|
758
|
+
* Get a tray of applications
|
|
759
|
+
* @summary Get tray
|
|
760
|
+
* @param {TraysApiGetTrayRequest} requestParameters Request parameters.
|
|
761
|
+
* @param {*} [options] Override http request option.
|
|
762
|
+
* @throws {RequiredError}
|
|
763
|
+
*/
|
|
764
|
+
getTray(requestParameters, options) {
|
|
765
|
+
return localVarFp.getTray(requestParameters.project, requestParameters.trayId, options).then((request) => request(axios, basePath));
|
|
766
|
+
},
|
|
767
|
+
/**
|
|
768
|
+
* Lists all prefab application trays paginated into chunks
|
|
769
|
+
* @summary List trays
|
|
770
|
+
* @param {TraysApiListTraysRequest} requestParameters Request parameters.
|
|
771
|
+
* @param {*} [options] Override http request option.
|
|
772
|
+
* @throws {RequiredError}
|
|
773
|
+
*/
|
|
774
|
+
listTrays(requestParameters, options) {
|
|
775
|
+
return localVarFp.listTrays(requestParameters.project, requestParameters.search, requestParameters.pageToken, requestParameters.pageSize, options).then((request) => request(axios, basePath));
|
|
776
|
+
},
|
|
777
|
+
};
|
|
778
|
+
};
|
|
779
|
+
exports.TraysApiFactory = TraysApiFactory;
|
|
780
|
+
/**
|
|
781
|
+
* TraysApi - object-oriented interface
|
|
782
|
+
* @export
|
|
783
|
+
* @class TraysApi
|
|
784
|
+
* @extends {BaseAPI}
|
|
785
|
+
*/
|
|
786
|
+
class TraysApi extends base_1.BaseAPI {
|
|
787
|
+
/**
|
|
788
|
+
* Get a tray of applications
|
|
789
|
+
* @summary Get tray
|
|
790
|
+
* @param {TraysApiGetTrayRequest} requestParameters Request parameters.
|
|
791
|
+
* @param {*} [options] Override http request option.
|
|
792
|
+
* @throws {RequiredError}
|
|
793
|
+
* @memberof TraysApi
|
|
794
|
+
*/
|
|
795
|
+
getTray(requestParameters, options) {
|
|
796
|
+
return (0, exports.TraysApiFp)(this.configuration).getTray(requestParameters.project, requestParameters.trayId, options).then((request) => request(this.axios, this.basePath));
|
|
797
|
+
}
|
|
798
|
+
/**
|
|
799
|
+
* Lists all prefab application trays paginated into chunks
|
|
800
|
+
* @summary List trays
|
|
801
|
+
* @param {TraysApiListTraysRequest} requestParameters Request parameters.
|
|
802
|
+
* @param {*} [options] Override http request option.
|
|
803
|
+
* @throws {RequiredError}
|
|
804
|
+
* @memberof TraysApi
|
|
805
|
+
*/
|
|
806
|
+
listTrays(requestParameters, options) {
|
|
807
|
+
return (0, exports.TraysApiFp)(this.configuration).listTrays(requestParameters.project, requestParameters.search, requestParameters.pageToken, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
808
|
+
}
|
|
809
|
+
}
|
|
810
|
+
exports.TraysApi = TraysApi;
|