@teemill/warehouse-prefab-applications 0.5.0 → 0.6.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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @teemill/warehouse-prefab-applications@0.5.0
1
+ ## @teemill/warehouse-prefab-applications@0.6.1
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). 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/warehouse-prefab-applications@0.5.0 --save
39
+ npm install @teemill/warehouse-prefab-applications@0.6.1 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
package/api.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Warehouse Prefab Applications API
5
5
  * 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)
6
6
  *
7
- * The version of the OpenAPI document: 0.5.0
7
+ * The version of the OpenAPI document: 0.6.1
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -120,6 +120,25 @@ export interface CreateBatchRequest {
120
120
  */
121
121
  'applicationRefs': Array<string>;
122
122
  }
123
+ /**
124
+ *
125
+ * @export
126
+ * @interface CreateTrayRequest
127
+ */
128
+ export interface CreateTrayRequest {
129
+ /**
130
+ * Row number of the tray
131
+ * @type {number}
132
+ * @memberof CreateTrayRequest
133
+ */
134
+ 'row': number;
135
+ /**
136
+ * Column of the tray
137
+ * @type {string}
138
+ * @memberof CreateTrayRequest
139
+ */
140
+ 'column': string;
141
+ }
123
142
  /**
124
143
  *
125
144
  * @export
@@ -440,6 +459,12 @@ export interface ValidationError {
440
459
  * @memberof ValidationError
441
460
  */
442
461
  'message': string;
462
+ /**
463
+ *
464
+ * @type {{ [key: string]: Array<string>; }}
465
+ * @memberof ValidationError
466
+ */
467
+ 'errors'?: { [key: string]: Array<string>; };
443
468
  }
444
469
 
445
470
  /**
@@ -1345,6 +1370,56 @@ export class PrefabApplicationsApi extends BaseAPI {
1345
1370
  */
1346
1371
  export const TraysApiAxiosParamCreator = function (configuration?: Configuration) {
1347
1372
  return {
1373
+ /**
1374
+ * Create a tray
1375
+ * @summary Create tray
1376
+ * @param {string} project What project it is
1377
+ * @param {CreateTrayRequest} createTrayRequest Create a tray
1378
+ * @param {*} [options] Override http request option.
1379
+ * @throws {RequiredError}
1380
+ */
1381
+ createTray: async (project: string, createTrayRequest: CreateTrayRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1382
+ // verify required parameter 'project' is not null or undefined
1383
+ assertParamExists('createTray', 'project', project)
1384
+ // verify required parameter 'createTrayRequest' is not null or undefined
1385
+ assertParamExists('createTray', 'createTrayRequest', createTrayRequest)
1386
+ const localVarPath = `/v1/warehouse/prefab-applications/trays`;
1387
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1388
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1389
+ let baseOptions;
1390
+ if (configuration) {
1391
+ baseOptions = configuration.baseOptions;
1392
+ }
1393
+
1394
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1395
+ const localVarHeaderParameter = {} as any;
1396
+ const localVarQueryParameter = {} as any;
1397
+
1398
+ // authentication session-oauth required
1399
+ // oauth required
1400
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
1401
+
1402
+ // authentication api-key required
1403
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
1404
+
1405
+ if (project !== undefined) {
1406
+ localVarQueryParameter['project'] = project;
1407
+ }
1408
+
1409
+
1410
+
1411
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1412
+
1413
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1414
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1415
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1416
+ localVarRequestOptions.data = serializeDataIfNeeded(createTrayRequest, localVarRequestOptions, configuration)
1417
+
1418
+ return {
1419
+ url: toPathString(localVarUrlObj),
1420
+ options: localVarRequestOptions,
1421
+ };
1422
+ },
1348
1423
  /**
1349
1424
  * Get a tray of applications
1350
1425
  * @summary Get tray
@@ -1754,6 +1829,20 @@ export const TraysApiAxiosParamCreator = function (configuration?: Configuration
1754
1829
  export const TraysApiFp = function(configuration?: Configuration) {
1755
1830
  const localVarAxiosParamCreator = TraysApiAxiosParamCreator(configuration)
1756
1831
  return {
1832
+ /**
1833
+ * Create a tray
1834
+ * @summary Create tray
1835
+ * @param {string} project What project it is
1836
+ * @param {CreateTrayRequest} createTrayRequest Create a tray
1837
+ * @param {*} [options] Override http request option.
1838
+ * @throws {RequiredError}
1839
+ */
1840
+ async createTray(project: string, createTrayRequest: CreateTrayRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Tray>> {
1841
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createTray(project, createTrayRequest, options);
1842
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1843
+ const localVarOperationServerBasePath = operationServerMap['TraysApi.createTray']?.[localVarOperationServerIndex]?.url;
1844
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1845
+ },
1757
1846
  /**
1758
1847
  * Get a tray of applications
1759
1848
  * @summary Get tray
@@ -1873,6 +1962,16 @@ export const TraysApiFp = function(configuration?: Configuration) {
1873
1962
  export const TraysApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1874
1963
  const localVarFp = TraysApiFp(configuration)
1875
1964
  return {
1965
+ /**
1966
+ * Create a tray
1967
+ * @summary Create tray
1968
+ * @param {TraysApiCreateTrayRequest} requestParameters Request parameters.
1969
+ * @param {*} [options] Override http request option.
1970
+ * @throws {RequiredError}
1971
+ */
1972
+ createTray(requestParameters: TraysApiCreateTrayRequest, options?: RawAxiosRequestConfig): AxiosPromise<Tray> {
1973
+ return localVarFp.createTray(requestParameters.project, requestParameters.createTrayRequest, options).then((request) => request(axios, basePath));
1974
+ },
1876
1975
  /**
1877
1976
  * Get a tray of applications
1878
1977
  * @summary Get tray
@@ -1946,6 +2045,27 @@ export const TraysApiFactory = function (configuration?: Configuration, basePath
1946
2045
  };
1947
2046
  };
1948
2047
 
2048
+ /**
2049
+ * Request parameters for createTray operation in TraysApi.
2050
+ * @export
2051
+ * @interface TraysApiCreateTrayRequest
2052
+ */
2053
+ export interface TraysApiCreateTrayRequest {
2054
+ /**
2055
+ * What project it is
2056
+ * @type {string}
2057
+ * @memberof TraysApiCreateTray
2058
+ */
2059
+ readonly project: string
2060
+
2061
+ /**
2062
+ * Create a tray
2063
+ * @type {CreateTrayRequest}
2064
+ * @memberof TraysApiCreateTray
2065
+ */
2066
+ readonly createTrayRequest: CreateTrayRequest
2067
+ }
2068
+
1949
2069
  /**
1950
2070
  * Request parameters for getTray operation in TraysApi.
1951
2071
  * @export
@@ -2177,6 +2297,18 @@ export interface TraysApiUpdateTrayRequest {
2177
2297
  * @extends {BaseAPI}
2178
2298
  */
2179
2299
  export class TraysApi extends BaseAPI {
2300
+ /**
2301
+ * Create a tray
2302
+ * @summary Create tray
2303
+ * @param {TraysApiCreateTrayRequest} requestParameters Request parameters.
2304
+ * @param {*} [options] Override http request option.
2305
+ * @throws {RequiredError}
2306
+ * @memberof TraysApi
2307
+ */
2308
+ public createTray(requestParameters: TraysApiCreateTrayRequest, options?: RawAxiosRequestConfig) {
2309
+ return TraysApiFp(this.configuration).createTray(requestParameters.project, requestParameters.createTrayRequest, options).then((request) => request(this.axios, this.basePath));
2310
+ }
2311
+
2180
2312
  /**
2181
2313
  * Get a tray of applications
2182
2314
  * @summary Get tray
package/base.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Warehouse Prefab Applications API
5
5
  * 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)
6
6
  *
7
- * The version of the OpenAPI document: 0.5.0
7
+ * The version of the OpenAPI document: 0.6.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/common.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Warehouse Prefab Applications API
5
5
  * 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)
6
6
  *
7
- * The version of the OpenAPI document: 0.5.0
7
+ * The version of the OpenAPI document: 0.6.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/configuration.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Warehouse Prefab Applications API
5
5
  * 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)
6
6
  *
7
- * The version of the OpenAPI document: 0.5.0
7
+ * The version of the OpenAPI document: 0.6.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/dist/api.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Warehouse Prefab Applications API
3
3
  * 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)
4
4
  *
5
- * The version of the OpenAPI document: 0.5.0
5
+ * The version of the OpenAPI document: 0.6.1
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -107,6 +107,25 @@ export interface CreateBatchRequest {
107
107
  */
108
108
  'applicationRefs': Array<string>;
109
109
  }
110
+ /**
111
+ *
112
+ * @export
113
+ * @interface CreateTrayRequest
114
+ */
115
+ export interface CreateTrayRequest {
116
+ /**
117
+ * Row number of the tray
118
+ * @type {number}
119
+ * @memberof CreateTrayRequest
120
+ */
121
+ 'row': number;
122
+ /**
123
+ * Column of the tray
124
+ * @type {string}
125
+ * @memberof CreateTrayRequest
126
+ */
127
+ 'column': string;
128
+ }
110
129
  /**
111
130
  *
112
131
  * @export
@@ -424,6 +443,14 @@ export interface ValidationError {
424
443
  * @memberof ValidationError
425
444
  */
426
445
  'message': string;
446
+ /**
447
+ *
448
+ * @type {{ [key: string]: Array<string>; }}
449
+ * @memberof ValidationError
450
+ */
451
+ 'errors'?: {
452
+ [key: string]: Array<string>;
453
+ };
427
454
  }
428
455
  /**
429
456
  * BatchesApi - axios parameter creator
@@ -908,6 +935,15 @@ export declare class PrefabApplicationsApi extends BaseAPI {
908
935
  * @export
909
936
  */
910
937
  export declare const TraysApiAxiosParamCreator: (configuration?: Configuration) => {
938
+ /**
939
+ * Create a tray
940
+ * @summary Create tray
941
+ * @param {string} project What project it is
942
+ * @param {CreateTrayRequest} createTrayRequest Create a tray
943
+ * @param {*} [options] Override http request option.
944
+ * @throws {RequiredError}
945
+ */
946
+ createTray: (project: string, createTrayRequest: CreateTrayRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
911
947
  /**
912
948
  * Get a tray of applications
913
949
  * @summary Get tray
@@ -988,6 +1024,15 @@ export declare const TraysApiAxiosParamCreator: (configuration?: Configuration)
988
1024
  * @export
989
1025
  */
990
1026
  export declare const TraysApiFp: (configuration?: Configuration) => {
1027
+ /**
1028
+ * Create a tray
1029
+ * @summary Create tray
1030
+ * @param {string} project What project it is
1031
+ * @param {CreateTrayRequest} createTrayRequest Create a tray
1032
+ * @param {*} [options] Override http request option.
1033
+ * @throws {RequiredError}
1034
+ */
1035
+ createTray(project: string, createTrayRequest: CreateTrayRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Tray>>;
991
1036
  /**
992
1037
  * Get a tray of applications
993
1038
  * @summary Get tray
@@ -1068,6 +1113,14 @@ export declare const TraysApiFp: (configuration?: Configuration) => {
1068
1113
  * @export
1069
1114
  */
1070
1115
  export declare const TraysApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
1116
+ /**
1117
+ * Create a tray
1118
+ * @summary Create tray
1119
+ * @param {TraysApiCreateTrayRequest} requestParameters Request parameters.
1120
+ * @param {*} [options] Override http request option.
1121
+ * @throws {RequiredError}
1122
+ */
1123
+ createTray(requestParameters: TraysApiCreateTrayRequest, options?: RawAxiosRequestConfig): AxiosPromise<Tray>;
1071
1124
  /**
1072
1125
  * Get a tray of applications
1073
1126
  * @summary Get tray
@@ -1125,6 +1178,25 @@ export declare const TraysApiFactory: (configuration?: Configuration, basePath?:
1125
1178
  */
1126
1179
  updateTray(requestParameters: TraysApiUpdateTrayRequest, options?: RawAxiosRequestConfig): AxiosPromise<Tray>;
1127
1180
  };
1181
+ /**
1182
+ * Request parameters for createTray operation in TraysApi.
1183
+ * @export
1184
+ * @interface TraysApiCreateTrayRequest
1185
+ */
1186
+ export interface TraysApiCreateTrayRequest {
1187
+ /**
1188
+ * What project it is
1189
+ * @type {string}
1190
+ * @memberof TraysApiCreateTray
1191
+ */
1192
+ readonly project: string;
1193
+ /**
1194
+ * Create a tray
1195
+ * @type {CreateTrayRequest}
1196
+ * @memberof TraysApiCreateTray
1197
+ */
1198
+ readonly createTrayRequest: CreateTrayRequest;
1199
+ }
1128
1200
  /**
1129
1201
  * Request parameters for getTray operation in TraysApi.
1130
1202
  * @export
@@ -1331,6 +1403,15 @@ export interface TraysApiUpdateTrayRequest {
1331
1403
  * @extends {BaseAPI}
1332
1404
  */
1333
1405
  export declare class TraysApi extends BaseAPI {
1406
+ /**
1407
+ * Create a tray
1408
+ * @summary Create tray
1409
+ * @param {TraysApiCreateTrayRequest} requestParameters Request parameters.
1410
+ * @param {*} [options] Override http request option.
1411
+ * @throws {RequiredError}
1412
+ * @memberof TraysApi
1413
+ */
1414
+ createTray(requestParameters: TraysApiCreateTrayRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Tray, any>>;
1334
1415
  /**
1335
1416
  * Get a tray of applications
1336
1417
  * @summary Get tray
package/dist/api.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Warehouse Prefab Applications API
6
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
7
  *
8
- * The version of the OpenAPI document: 0.5.0
8
+ * The version of the OpenAPI document: 0.6.1
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -701,6 +701,47 @@ exports.PrefabApplicationsApi = PrefabApplicationsApi;
701
701
  */
702
702
  const TraysApiAxiosParamCreator = function (configuration) {
703
703
  return {
704
+ /**
705
+ * Create a tray
706
+ * @summary Create tray
707
+ * @param {string} project What project it is
708
+ * @param {CreateTrayRequest} createTrayRequest Create a tray
709
+ * @param {*} [options] Override http request option.
710
+ * @throws {RequiredError}
711
+ */
712
+ createTray: (project_1, createTrayRequest_1, ...args_1) => __awaiter(this, [project_1, createTrayRequest_1, ...args_1], void 0, function* (project, createTrayRequest, options = {}) {
713
+ // verify required parameter 'project' is not null or undefined
714
+ (0, common_1.assertParamExists)('createTray', 'project', project);
715
+ // verify required parameter 'createTrayRequest' is not null or undefined
716
+ (0, common_1.assertParamExists)('createTray', 'createTrayRequest', createTrayRequest);
717
+ const localVarPath = `/v1/warehouse/prefab-applications/trays`;
718
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
719
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
720
+ let baseOptions;
721
+ if (configuration) {
722
+ baseOptions = configuration.baseOptions;
723
+ }
724
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
725
+ const localVarHeaderParameter = {};
726
+ const localVarQueryParameter = {};
727
+ // authentication session-oauth required
728
+ // oauth required
729
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
730
+ // authentication api-key required
731
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
732
+ if (project !== undefined) {
733
+ localVarQueryParameter['project'] = project;
734
+ }
735
+ localVarHeaderParameter['Content-Type'] = 'application/json';
736
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
737
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
738
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
739
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createTrayRequest, localVarRequestOptions, configuration);
740
+ return {
741
+ url: (0, common_1.toPathString)(localVarUrlObj),
742
+ options: localVarRequestOptions,
743
+ };
744
+ }),
704
745
  /**
705
746
  * Get a tray of applications
706
747
  * @summary Get tray
@@ -1040,6 +1081,23 @@ exports.TraysApiAxiosParamCreator = TraysApiAxiosParamCreator;
1040
1081
  const TraysApiFp = function (configuration) {
1041
1082
  const localVarAxiosParamCreator = (0, exports.TraysApiAxiosParamCreator)(configuration);
1042
1083
  return {
1084
+ /**
1085
+ * Create a tray
1086
+ * @summary Create tray
1087
+ * @param {string} project What project it is
1088
+ * @param {CreateTrayRequest} createTrayRequest Create a tray
1089
+ * @param {*} [options] Override http request option.
1090
+ * @throws {RequiredError}
1091
+ */
1092
+ createTray(project, createTrayRequest, options) {
1093
+ return __awaiter(this, void 0, void 0, function* () {
1094
+ var _a, _b, _c;
1095
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createTray(project, createTrayRequest, options);
1096
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1097
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TraysApi.createTray']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1098
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1099
+ });
1100
+ },
1043
1101
  /**
1044
1102
  * Get a tray of applications
1045
1103
  * @summary Get tray
@@ -1180,6 +1238,16 @@ exports.TraysApiFp = TraysApiFp;
1180
1238
  const TraysApiFactory = function (configuration, basePath, axios) {
1181
1239
  const localVarFp = (0, exports.TraysApiFp)(configuration);
1182
1240
  return {
1241
+ /**
1242
+ * Create a tray
1243
+ * @summary Create tray
1244
+ * @param {TraysApiCreateTrayRequest} requestParameters Request parameters.
1245
+ * @param {*} [options] Override http request option.
1246
+ * @throws {RequiredError}
1247
+ */
1248
+ createTray(requestParameters, options) {
1249
+ return localVarFp.createTray(requestParameters.project, requestParameters.createTrayRequest, options).then((request) => request(axios, basePath));
1250
+ },
1183
1251
  /**
1184
1252
  * Get a tray of applications
1185
1253
  * @summary Get tray
@@ -1260,6 +1328,17 @@ exports.TraysApiFactory = TraysApiFactory;
1260
1328
  * @extends {BaseAPI}
1261
1329
  */
1262
1330
  class TraysApi extends base_1.BaseAPI {
1331
+ /**
1332
+ * Create a tray
1333
+ * @summary Create tray
1334
+ * @param {TraysApiCreateTrayRequest} requestParameters Request parameters.
1335
+ * @param {*} [options] Override http request option.
1336
+ * @throws {RequiredError}
1337
+ * @memberof TraysApi
1338
+ */
1339
+ createTray(requestParameters, options) {
1340
+ return (0, exports.TraysApiFp)(this.configuration).createTray(requestParameters.project, requestParameters.createTrayRequest, options).then((request) => request(this.axios, this.basePath));
1341
+ }
1263
1342
  /**
1264
1343
  * Get a tray of applications
1265
1344
  * @summary Get tray
package/dist/base.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Warehouse Prefab Applications API
3
3
  * 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)
4
4
  *
5
- * The version of the OpenAPI document: 0.5.0
5
+ * The version of the OpenAPI document: 0.6.1
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/base.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Warehouse Prefab Applications API
6
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
7
  *
8
- * The version of the OpenAPI document: 0.5.0
8
+ * The version of the OpenAPI document: 0.6.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/common.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Warehouse Prefab Applications API
3
3
  * 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)
4
4
  *
5
- * The version of the OpenAPI document: 0.5.0
5
+ * The version of the OpenAPI document: 0.6.1
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Warehouse Prefab Applications API
6
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
7
  *
8
- * The version of the OpenAPI document: 0.5.0
8
+ * The version of the OpenAPI document: 0.6.1
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Warehouse Prefab Applications API
3
3
  * 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)
4
4
  *
5
- * The version of the OpenAPI document: 0.5.0
5
+ * The version of the OpenAPI document: 0.6.1
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Warehouse Prefab Applications API
6
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
7
  *
8
- * The version of the OpenAPI document: 0.5.0
8
+ * The version of the OpenAPI document: 0.6.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/esm/api.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Warehouse Prefab Applications API
3
3
  * 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)
4
4
  *
5
- * The version of the OpenAPI document: 0.5.0
5
+ * The version of the OpenAPI document: 0.6.1
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -107,6 +107,25 @@ export interface CreateBatchRequest {
107
107
  */
108
108
  'applicationRefs': Array<string>;
109
109
  }
110
+ /**
111
+ *
112
+ * @export
113
+ * @interface CreateTrayRequest
114
+ */
115
+ export interface CreateTrayRequest {
116
+ /**
117
+ * Row number of the tray
118
+ * @type {number}
119
+ * @memberof CreateTrayRequest
120
+ */
121
+ 'row': number;
122
+ /**
123
+ * Column of the tray
124
+ * @type {string}
125
+ * @memberof CreateTrayRequest
126
+ */
127
+ 'column': string;
128
+ }
110
129
  /**
111
130
  *
112
131
  * @export
@@ -424,6 +443,14 @@ export interface ValidationError {
424
443
  * @memberof ValidationError
425
444
  */
426
445
  'message': string;
446
+ /**
447
+ *
448
+ * @type {{ [key: string]: Array<string>; }}
449
+ * @memberof ValidationError
450
+ */
451
+ 'errors'?: {
452
+ [key: string]: Array<string>;
453
+ };
427
454
  }
428
455
  /**
429
456
  * BatchesApi - axios parameter creator
@@ -908,6 +935,15 @@ export declare class PrefabApplicationsApi extends BaseAPI {
908
935
  * @export
909
936
  */
910
937
  export declare const TraysApiAxiosParamCreator: (configuration?: Configuration) => {
938
+ /**
939
+ * Create a tray
940
+ * @summary Create tray
941
+ * @param {string} project What project it is
942
+ * @param {CreateTrayRequest} createTrayRequest Create a tray
943
+ * @param {*} [options] Override http request option.
944
+ * @throws {RequiredError}
945
+ */
946
+ createTray: (project: string, createTrayRequest: CreateTrayRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
911
947
  /**
912
948
  * Get a tray of applications
913
949
  * @summary Get tray
@@ -988,6 +1024,15 @@ export declare const TraysApiAxiosParamCreator: (configuration?: Configuration)
988
1024
  * @export
989
1025
  */
990
1026
  export declare const TraysApiFp: (configuration?: Configuration) => {
1027
+ /**
1028
+ * Create a tray
1029
+ * @summary Create tray
1030
+ * @param {string} project What project it is
1031
+ * @param {CreateTrayRequest} createTrayRequest Create a tray
1032
+ * @param {*} [options] Override http request option.
1033
+ * @throws {RequiredError}
1034
+ */
1035
+ createTray(project: string, createTrayRequest: CreateTrayRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Tray>>;
991
1036
  /**
992
1037
  * Get a tray of applications
993
1038
  * @summary Get tray
@@ -1068,6 +1113,14 @@ export declare const TraysApiFp: (configuration?: Configuration) => {
1068
1113
  * @export
1069
1114
  */
1070
1115
  export declare const TraysApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
1116
+ /**
1117
+ * Create a tray
1118
+ * @summary Create tray
1119
+ * @param {TraysApiCreateTrayRequest} requestParameters Request parameters.
1120
+ * @param {*} [options] Override http request option.
1121
+ * @throws {RequiredError}
1122
+ */
1123
+ createTray(requestParameters: TraysApiCreateTrayRequest, options?: RawAxiosRequestConfig): AxiosPromise<Tray>;
1071
1124
  /**
1072
1125
  * Get a tray of applications
1073
1126
  * @summary Get tray
@@ -1125,6 +1178,25 @@ export declare const TraysApiFactory: (configuration?: Configuration, basePath?:
1125
1178
  */
1126
1179
  updateTray(requestParameters: TraysApiUpdateTrayRequest, options?: RawAxiosRequestConfig): AxiosPromise<Tray>;
1127
1180
  };
1181
+ /**
1182
+ * Request parameters for createTray operation in TraysApi.
1183
+ * @export
1184
+ * @interface TraysApiCreateTrayRequest
1185
+ */
1186
+ export interface TraysApiCreateTrayRequest {
1187
+ /**
1188
+ * What project it is
1189
+ * @type {string}
1190
+ * @memberof TraysApiCreateTray
1191
+ */
1192
+ readonly project: string;
1193
+ /**
1194
+ * Create a tray
1195
+ * @type {CreateTrayRequest}
1196
+ * @memberof TraysApiCreateTray
1197
+ */
1198
+ readonly createTrayRequest: CreateTrayRequest;
1199
+ }
1128
1200
  /**
1129
1201
  * Request parameters for getTray operation in TraysApi.
1130
1202
  * @export
@@ -1331,6 +1403,15 @@ export interface TraysApiUpdateTrayRequest {
1331
1403
  * @extends {BaseAPI}
1332
1404
  */
1333
1405
  export declare class TraysApi extends BaseAPI {
1406
+ /**
1407
+ * Create a tray
1408
+ * @summary Create tray
1409
+ * @param {TraysApiCreateTrayRequest} requestParameters Request parameters.
1410
+ * @param {*} [options] Override http request option.
1411
+ * @throws {RequiredError}
1412
+ * @memberof TraysApi
1413
+ */
1414
+ createTray(requestParameters: TraysApiCreateTrayRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Tray, any>>;
1334
1415
  /**
1335
1416
  * Get a tray of applications
1336
1417
  * @summary Get tray
package/dist/esm/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Warehouse Prefab Applications API
5
5
  * 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)
6
6
  *
7
- * The version of the OpenAPI document: 0.5.0
7
+ * The version of the OpenAPI document: 0.6.1
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -690,6 +690,47 @@ export class PrefabApplicationsApi extends BaseAPI {
690
690
  */
691
691
  export const TraysApiAxiosParamCreator = function (configuration) {
692
692
  return {
693
+ /**
694
+ * Create a tray
695
+ * @summary Create tray
696
+ * @param {string} project What project it is
697
+ * @param {CreateTrayRequest} createTrayRequest Create a tray
698
+ * @param {*} [options] Override http request option.
699
+ * @throws {RequiredError}
700
+ */
701
+ createTray: (project_1, createTrayRequest_1, ...args_1) => __awaiter(this, [project_1, createTrayRequest_1, ...args_1], void 0, function* (project, createTrayRequest, options = {}) {
702
+ // verify required parameter 'project' is not null or undefined
703
+ assertParamExists('createTray', 'project', project);
704
+ // verify required parameter 'createTrayRequest' is not null or undefined
705
+ assertParamExists('createTray', 'createTrayRequest', createTrayRequest);
706
+ const localVarPath = `/v1/warehouse/prefab-applications/trays`;
707
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
708
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
709
+ let baseOptions;
710
+ if (configuration) {
711
+ baseOptions = configuration.baseOptions;
712
+ }
713
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
714
+ const localVarHeaderParameter = {};
715
+ const localVarQueryParameter = {};
716
+ // authentication session-oauth required
717
+ // oauth required
718
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
719
+ // authentication api-key required
720
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
721
+ if (project !== undefined) {
722
+ localVarQueryParameter['project'] = project;
723
+ }
724
+ localVarHeaderParameter['Content-Type'] = 'application/json';
725
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
726
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
727
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
728
+ localVarRequestOptions.data = serializeDataIfNeeded(createTrayRequest, localVarRequestOptions, configuration);
729
+ return {
730
+ url: toPathString(localVarUrlObj),
731
+ options: localVarRequestOptions,
732
+ };
733
+ }),
693
734
  /**
694
735
  * Get a tray of applications
695
736
  * @summary Get tray
@@ -1028,6 +1069,23 @@ export const TraysApiAxiosParamCreator = function (configuration) {
1028
1069
  export const TraysApiFp = function (configuration) {
1029
1070
  const localVarAxiosParamCreator = TraysApiAxiosParamCreator(configuration);
1030
1071
  return {
1072
+ /**
1073
+ * Create a tray
1074
+ * @summary Create tray
1075
+ * @param {string} project What project it is
1076
+ * @param {CreateTrayRequest} createTrayRequest Create a tray
1077
+ * @param {*} [options] Override http request option.
1078
+ * @throws {RequiredError}
1079
+ */
1080
+ createTray(project, createTrayRequest, options) {
1081
+ return __awaiter(this, void 0, void 0, function* () {
1082
+ var _a, _b, _c;
1083
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createTray(project, createTrayRequest, options);
1084
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1085
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TraysApi.createTray']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1086
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1087
+ });
1088
+ },
1031
1089
  /**
1032
1090
  * Get a tray of applications
1033
1091
  * @summary Get tray
@@ -1167,6 +1225,16 @@ export const TraysApiFp = function (configuration) {
1167
1225
  export const TraysApiFactory = function (configuration, basePath, axios) {
1168
1226
  const localVarFp = TraysApiFp(configuration);
1169
1227
  return {
1228
+ /**
1229
+ * Create a tray
1230
+ * @summary Create tray
1231
+ * @param {TraysApiCreateTrayRequest} requestParameters Request parameters.
1232
+ * @param {*} [options] Override http request option.
1233
+ * @throws {RequiredError}
1234
+ */
1235
+ createTray(requestParameters, options) {
1236
+ return localVarFp.createTray(requestParameters.project, requestParameters.createTrayRequest, options).then((request) => request(axios, basePath));
1237
+ },
1170
1238
  /**
1171
1239
  * Get a tray of applications
1172
1240
  * @summary Get tray
@@ -1246,6 +1314,17 @@ export const TraysApiFactory = function (configuration, basePath, axios) {
1246
1314
  * @extends {BaseAPI}
1247
1315
  */
1248
1316
  export class TraysApi extends BaseAPI {
1317
+ /**
1318
+ * Create a tray
1319
+ * @summary Create tray
1320
+ * @param {TraysApiCreateTrayRequest} requestParameters Request parameters.
1321
+ * @param {*} [options] Override http request option.
1322
+ * @throws {RequiredError}
1323
+ * @memberof TraysApi
1324
+ */
1325
+ createTray(requestParameters, options) {
1326
+ return TraysApiFp(this.configuration).createTray(requestParameters.project, requestParameters.createTrayRequest, options).then((request) => request(this.axios, this.basePath));
1327
+ }
1249
1328
  /**
1250
1329
  * Get a tray of applications
1251
1330
  * @summary Get tray
@@ -2,7 +2,7 @@
2
2
  * Warehouse Prefab Applications API
3
3
  * 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)
4
4
  *
5
- * The version of the OpenAPI document: 0.5.0
5
+ * The version of the OpenAPI document: 0.6.1
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/base.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Warehouse Prefab Applications API
5
5
  * 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)
6
6
  *
7
- * The version of the OpenAPI document: 0.5.0
7
+ * The version of the OpenAPI document: 0.6.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,7 +2,7 @@
2
2
  * Warehouse Prefab Applications API
3
3
  * 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)
4
4
  *
5
- * The version of the OpenAPI document: 0.5.0
5
+ * The version of the OpenAPI document: 0.6.1
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Warehouse Prefab Applications API
5
5
  * 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)
6
6
  *
7
- * The version of the OpenAPI document: 0.5.0
7
+ * The version of the OpenAPI document: 0.6.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,7 +2,7 @@
2
2
  * Warehouse Prefab Applications API
3
3
  * 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)
4
4
  *
5
- * The version of the OpenAPI document: 0.5.0
5
+ * The version of the OpenAPI document: 0.6.1
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Warehouse Prefab Applications API
5
5
  * 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)
6
6
  *
7
- * The version of the OpenAPI document: 0.5.0
7
+ * The version of the OpenAPI document: 0.6.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,7 +2,7 @@
2
2
  * Warehouse Prefab Applications API
3
3
  * 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)
4
4
  *
5
- * The version of the OpenAPI document: 0.5.0
5
+ * The version of the OpenAPI document: 0.6.1
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Warehouse Prefab Applications API
5
5
  * 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)
6
6
  *
7
- * The version of the OpenAPI document: 0.5.0
7
+ * The version of the OpenAPI document: 0.6.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/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Warehouse Prefab Applications API
3
3
  * 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)
4
4
  *
5
- * The version of the OpenAPI document: 0.5.0
5
+ * The version of the OpenAPI document: 0.6.1
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Warehouse Prefab Applications API
6
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
7
  *
8
- * The version of the OpenAPI document: 0.5.0
8
+ * The version of the OpenAPI document: 0.6.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/index.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Warehouse Prefab Applications API
5
5
  * 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)
6
6
  *
7
- * The version of the OpenAPI document: 0.5.0
7
+ * The version of the OpenAPI document: 0.6.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teemill/warehouse-prefab-applications",
3
- "version": "0.5.0",
3
+ "version": "0.6.1",
4
4
  "description": "OpenAPI client for @teemill/warehouse-prefab-applications",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {