@teemill/warehouse-prefab-applications 0.11.3 → 0.12.0

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.11.3
1
+ ## @teemill/warehouse-prefab-applications@0.12.0
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.11.3 --save
39
+ npm install @teemill/warehouse-prefab-applications@0.12.0 --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 PodOS Warehouse Prefab Applications
6
6
  *
7
- * The version of the OpenAPI document: 0.11.3
7
+ * The version of the OpenAPI document: 0.12.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -190,6 +190,10 @@ export interface Tray {
190
190
  * Tray label
191
191
  */
192
192
  'label': string;
193
+ /**
194
+ * The status of the tray
195
+ */
196
+ 'status': TrayStatusEnum;
193
197
  /**
194
198
  * Total number of prefab applications in the tray
195
199
  */
@@ -208,6 +212,14 @@ export interface Tray {
208
212
  */
209
213
  'updatedAt': string | null;
210
214
  }
215
+
216
+ export const TrayStatusEnum = {
217
+ Ok: 'ok',
218
+ Issue: 'issue'
219
+ } as const;
220
+
221
+ export type TrayStatusEnum = typeof TrayStatusEnum[keyof typeof TrayStatusEnum];
222
+
211
223
  export interface TrayContents {
212
224
  'catalogApplication'?: PrefabApplicationCatalogApplication;
213
225
  }
@@ -1001,10 +1013,11 @@ export const PrefabApplicationsApiAxiosParamCreator = function (configuration?:
1001
1013
  * @param {string} project What project it is
1002
1014
  * @param {string} prefabApplicationId Unique identifier of a prefab application
1003
1015
  * @param {UpdatePrefabApplicationRequest} updatePrefabApplicationRequest Prefab application schema
1016
+ * @param {string} [xOnBehalfOf] A reference to the user updating the prefab application
1004
1017
  * @param {*} [options] Override http request option.
1005
1018
  * @throws {RequiredError}
1006
1019
  */
1007
- updatePrefabApplication: async (project: string, prefabApplicationId: string, updatePrefabApplicationRequest: UpdatePrefabApplicationRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1020
+ updatePrefabApplication: async (project: string, prefabApplicationId: string, updatePrefabApplicationRequest: UpdatePrefabApplicationRequest, xOnBehalfOf?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1008
1021
  // verify required parameter 'project' is not null or undefined
1009
1022
  assertParamExists('updatePrefabApplication', 'project', project)
1010
1023
  // verify required parameter 'prefabApplicationId' is not null or undefined
@@ -1039,6 +1052,9 @@ export const PrefabApplicationsApiAxiosParamCreator = function (configuration?:
1039
1052
 
1040
1053
  localVarHeaderParameter['Content-Type'] = 'application/json';
1041
1054
 
1055
+ if (xOnBehalfOf != null) {
1056
+ localVarHeaderParameter['X-On-Behalf-Of'] = String(xOnBehalfOf);
1057
+ }
1042
1058
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1043
1059
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1044
1060
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -1110,11 +1126,12 @@ export const PrefabApplicationsApiFp = function(configuration?: Configuration) {
1110
1126
  * @param {string} project What project it is
1111
1127
  * @param {string} prefabApplicationId Unique identifier of a prefab application
1112
1128
  * @param {UpdatePrefabApplicationRequest} updatePrefabApplicationRequest Prefab application schema
1129
+ * @param {string} [xOnBehalfOf] A reference to the user updating the prefab application
1113
1130
  * @param {*} [options] Override http request option.
1114
1131
  * @throws {RequiredError}
1115
1132
  */
1116
- async updatePrefabApplication(project: string, prefabApplicationId: string, updatePrefabApplicationRequest: UpdatePrefabApplicationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PrefabApplication>> {
1117
- const localVarAxiosArgs = await localVarAxiosParamCreator.updatePrefabApplication(project, prefabApplicationId, updatePrefabApplicationRequest, options);
1133
+ async updatePrefabApplication(project: string, prefabApplicationId: string, updatePrefabApplicationRequest: UpdatePrefabApplicationRequest, xOnBehalfOf?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PrefabApplication>> {
1134
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updatePrefabApplication(project, prefabApplicationId, updatePrefabApplicationRequest, xOnBehalfOf, options);
1118
1135
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1119
1136
  const localVarOperationServerBasePath = operationServerMap['PrefabApplicationsApi.updatePrefabApplication']?.[localVarOperationServerIndex]?.url;
1120
1137
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1166,7 +1183,7 @@ export const PrefabApplicationsApiFactory = function (configuration?: Configurat
1166
1183
  * @throws {RequiredError}
1167
1184
  */
1168
1185
  updatePrefabApplication(requestParameters: PrefabApplicationsApiUpdatePrefabApplicationRequest, options?: RawAxiosRequestConfig): AxiosPromise<PrefabApplication> {
1169
- return localVarFp.updatePrefabApplication(requestParameters.project, requestParameters.prefabApplicationId, requestParameters.updatePrefabApplicationRequest, options).then((request) => request(axios, basePath));
1186
+ return localVarFp.updatePrefabApplication(requestParameters.project, requestParameters.prefabApplicationId, requestParameters.updatePrefabApplicationRequest, requestParameters.xOnBehalfOf, options).then((request) => request(axios, basePath));
1170
1187
  },
1171
1188
  };
1172
1189
  };
@@ -1254,6 +1271,11 @@ export interface PrefabApplicationsApiUpdatePrefabApplicationRequest {
1254
1271
  * Prefab application schema
1255
1272
  */
1256
1273
  readonly updatePrefabApplicationRequest: UpdatePrefabApplicationRequest
1274
+
1275
+ /**
1276
+ * A reference to the user updating the prefab application
1277
+ */
1278
+ readonly xOnBehalfOf?: string
1257
1279
  }
1258
1280
 
1259
1281
  /**
@@ -1301,7 +1323,7 @@ export class PrefabApplicationsApi extends BaseAPI {
1301
1323
  * @throws {RequiredError}
1302
1324
  */
1303
1325
  public updatePrefabApplication(requestParameters: PrefabApplicationsApiUpdatePrefabApplicationRequest, options?: RawAxiosRequestConfig) {
1304
- return PrefabApplicationsApiFp(this.configuration).updatePrefabApplication(requestParameters.project, requestParameters.prefabApplicationId, requestParameters.updatePrefabApplicationRequest, options).then((request) => request(this.axios, this.basePath));
1326
+ return PrefabApplicationsApiFp(this.configuration).updatePrefabApplication(requestParameters.project, requestParameters.prefabApplicationId, requestParameters.updatePrefabApplicationRequest, requestParameters.xOnBehalfOf, options).then((request) => request(this.axios, this.basePath));
1305
1327
  }
1306
1328
  }
1307
1329
 
package/base.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Warehouse Prefab Applications API
5
5
  * Manage PodOS Warehouse Prefab Applications
6
6
  *
7
- * The version of the OpenAPI document: 0.11.3
7
+ * The version of the OpenAPI document: 0.12.0
8
8
  *
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 PodOS Warehouse Prefab Applications
6
6
  *
7
- * The version of the OpenAPI document: 0.11.3
7
+ * The version of the OpenAPI document: 0.12.0
8
8
  *
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 PodOS Warehouse Prefab Applications
6
6
  *
7
- * The version of the OpenAPI document: 0.11.3
7
+ * The version of the OpenAPI document: 0.12.0
8
8
  *
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 PodOS Warehouse Prefab Applications
4
4
  *
5
- * The version of the OpenAPI document: 0.11.3
5
+ * The version of the OpenAPI document: 0.12.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -174,6 +174,10 @@ export interface Tray {
174
174
  * Tray label
175
175
  */
176
176
  'label': string;
177
+ /**
178
+ * The status of the tray
179
+ */
180
+ 'status': TrayStatusEnum;
177
181
  /**
178
182
  * Total number of prefab applications in the tray
179
183
  */
@@ -192,6 +196,11 @@ export interface Tray {
192
196
  */
193
197
  'updatedAt': string | null;
194
198
  }
199
+ export declare const TrayStatusEnum: {
200
+ readonly Ok: "ok";
201
+ readonly Issue: "issue";
202
+ };
203
+ export type TrayStatusEnum = typeof TrayStatusEnum[keyof typeof TrayStatusEnum];
195
204
  export interface TrayContents {
196
205
  'catalogApplication'?: PrefabApplicationCatalogApplication;
197
206
  }
@@ -551,10 +560,11 @@ export declare const PrefabApplicationsApiAxiosParamCreator: (configuration?: Co
551
560
  * @param {string} project What project it is
552
561
  * @param {string} prefabApplicationId Unique identifier of a prefab application
553
562
  * @param {UpdatePrefabApplicationRequest} updatePrefabApplicationRequest Prefab application schema
563
+ * @param {string} [xOnBehalfOf] A reference to the user updating the prefab application
554
564
  * @param {*} [options] Override http request option.
555
565
  * @throws {RequiredError}
556
566
  */
557
- updatePrefabApplication: (project: string, prefabApplicationId: string, updatePrefabApplicationRequest: UpdatePrefabApplicationRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
567
+ updatePrefabApplication: (project: string, prefabApplicationId: string, updatePrefabApplicationRequest: UpdatePrefabApplicationRequest, xOnBehalfOf?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
558
568
  };
559
569
  /**
560
570
  * PrefabApplicationsApi - functional programming interface
@@ -597,10 +607,11 @@ export declare const PrefabApplicationsApiFp: (configuration?: Configuration) =>
597
607
  * @param {string} project What project it is
598
608
  * @param {string} prefabApplicationId Unique identifier of a prefab application
599
609
  * @param {UpdatePrefabApplicationRequest} updatePrefabApplicationRequest Prefab application schema
610
+ * @param {string} [xOnBehalfOf] A reference to the user updating the prefab application
600
611
  * @param {*} [options] Override http request option.
601
612
  * @throws {RequiredError}
602
613
  */
603
- updatePrefabApplication(project: string, prefabApplicationId: string, updatePrefabApplicationRequest: UpdatePrefabApplicationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PrefabApplication>>;
614
+ updatePrefabApplication(project: string, prefabApplicationId: string, updatePrefabApplicationRequest: UpdatePrefabApplicationRequest, xOnBehalfOf?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PrefabApplication>>;
604
615
  };
605
616
  /**
606
617
  * PrefabApplicationsApi - factory interface
@@ -710,6 +721,10 @@ export interface PrefabApplicationsApiUpdatePrefabApplicationRequest {
710
721
  * Prefab application schema
711
722
  */
712
723
  readonly updatePrefabApplicationRequest: UpdatePrefabApplicationRequest;
724
+ /**
725
+ * A reference to the user updating the prefab application
726
+ */
727
+ readonly xOnBehalfOf?: string;
713
728
  }
714
729
  /**
715
730
  * PrefabApplicationsApi - object-oriented interface
package/dist/api.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Warehouse Prefab Applications API
6
6
  * Manage PodOS Warehouse Prefab Applications
7
7
  *
8
- * The version of the OpenAPI document: 0.11.3
8
+ * The version of the OpenAPI document: 0.12.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
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 = exports.BatchStatusEnum = void 0;
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.TrayStatusEnum = exports.PrefabApplicationStatusEnum = exports.BatchStatusEnum = void 0;
26
26
  const axios_1 = require("axios");
27
27
  // Some imports not used depending on template conditions
28
28
  // @ts-ignore
@@ -41,6 +41,10 @@ exports.PrefabApplicationStatusEnum = {
41
41
  Processing: 'processing',
42
42
  Complete: 'complete'
43
43
  };
44
+ exports.TrayStatusEnum = {
45
+ Ok: 'ok',
46
+ Issue: 'issue'
47
+ };
44
48
  /**
45
49
  * BatchesApi - axios parameter creator
46
50
  */
@@ -635,10 +639,11 @@ const PrefabApplicationsApiAxiosParamCreator = function (configuration) {
635
639
  * @param {string} project What project it is
636
640
  * @param {string} prefabApplicationId Unique identifier of a prefab application
637
641
  * @param {UpdatePrefabApplicationRequest} updatePrefabApplicationRequest Prefab application schema
642
+ * @param {string} [xOnBehalfOf] A reference to the user updating the prefab application
638
643
  * @param {*} [options] Override http request option.
639
644
  * @throws {RequiredError}
640
645
  */
641
- updatePrefabApplication: (project_1, prefabApplicationId_1, updatePrefabApplicationRequest_1, ...args_1) => __awaiter(this, [project_1, prefabApplicationId_1, updatePrefabApplicationRequest_1, ...args_1], void 0, function* (project, prefabApplicationId, updatePrefabApplicationRequest, options = {}) {
646
+ updatePrefabApplication: (project_1, prefabApplicationId_1, updatePrefabApplicationRequest_1, xOnBehalfOf_1, ...args_1) => __awaiter(this, [project_1, prefabApplicationId_1, updatePrefabApplicationRequest_1, xOnBehalfOf_1, ...args_1], void 0, function* (project, prefabApplicationId, updatePrefabApplicationRequest, xOnBehalfOf, options = {}) {
642
647
  // verify required parameter 'project' is not null or undefined
643
648
  (0, common_1.assertParamExists)('updatePrefabApplication', 'project', project);
644
649
  // verify required parameter 'prefabApplicationId' is not null or undefined
@@ -665,6 +670,9 @@ const PrefabApplicationsApiAxiosParamCreator = function (configuration) {
665
670
  localVarQueryParameter['project'] = project;
666
671
  }
667
672
  localVarHeaderParameter['Content-Type'] = 'application/json';
673
+ if (xOnBehalfOf != null) {
674
+ localVarHeaderParameter['X-On-Behalf-Of'] = String(xOnBehalfOf);
675
+ }
668
676
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
669
677
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
670
678
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -744,13 +752,14 @@ const PrefabApplicationsApiFp = function (configuration) {
744
752
  * @param {string} project What project it is
745
753
  * @param {string} prefabApplicationId Unique identifier of a prefab application
746
754
  * @param {UpdatePrefabApplicationRequest} updatePrefabApplicationRequest Prefab application schema
755
+ * @param {string} [xOnBehalfOf] A reference to the user updating the prefab application
747
756
  * @param {*} [options] Override http request option.
748
757
  * @throws {RequiredError}
749
758
  */
750
- updatePrefabApplication(project, prefabApplicationId, updatePrefabApplicationRequest, options) {
759
+ updatePrefabApplication(project, prefabApplicationId, updatePrefabApplicationRequest, xOnBehalfOf, options) {
751
760
  return __awaiter(this, void 0, void 0, function* () {
752
761
  var _a, _b, _c;
753
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePrefabApplication(project, prefabApplicationId, updatePrefabApplicationRequest, options);
762
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePrefabApplication(project, prefabApplicationId, updatePrefabApplicationRequest, xOnBehalfOf, options);
754
763
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
755
764
  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;
756
765
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -803,7 +812,7 @@ const PrefabApplicationsApiFactory = function (configuration, basePath, axios) {
803
812
  * @throws {RequiredError}
804
813
  */
805
814
  updatePrefabApplication(requestParameters, options) {
806
- return localVarFp.updatePrefabApplication(requestParameters.project, requestParameters.prefabApplicationId, requestParameters.updatePrefabApplicationRequest, options).then((request) => request(axios, basePath));
815
+ return localVarFp.updatePrefabApplication(requestParameters.project, requestParameters.prefabApplicationId, requestParameters.updatePrefabApplicationRequest, requestParameters.xOnBehalfOf, options).then((request) => request(axios, basePath));
807
816
  },
808
817
  };
809
818
  };
@@ -850,7 +859,7 @@ class PrefabApplicationsApi extends base_1.BaseAPI {
850
859
  * @throws {RequiredError}
851
860
  */
852
861
  updatePrefabApplication(requestParameters, options) {
853
- return (0, exports.PrefabApplicationsApiFp)(this.configuration).updatePrefabApplication(requestParameters.project, requestParameters.prefabApplicationId, requestParameters.updatePrefabApplicationRequest, options).then((request) => request(this.axios, this.basePath));
862
+ return (0, exports.PrefabApplicationsApiFp)(this.configuration).updatePrefabApplication(requestParameters.project, requestParameters.prefabApplicationId, requestParameters.updatePrefabApplicationRequest, requestParameters.xOnBehalfOf, options).then((request) => request(this.axios, this.basePath));
854
863
  }
855
864
  }
856
865
  exports.PrefabApplicationsApi = PrefabApplicationsApi;
package/dist/base.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Warehouse Prefab Applications API
3
3
  * Manage PodOS Warehouse Prefab Applications
4
4
  *
5
- * The version of the OpenAPI document: 0.11.3
5
+ * The version of the OpenAPI document: 0.12.0
6
6
  *
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 PodOS Warehouse Prefab Applications
7
7
  *
8
- * The version of the OpenAPI document: 0.11.3
8
+ * The version of the OpenAPI document: 0.12.0
9
9
  *
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 PodOS Warehouse Prefab Applications
4
4
  *
5
- * The version of the OpenAPI document: 0.11.3
5
+ * The version of the OpenAPI document: 0.12.0
6
6
  *
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 PodOS Warehouse Prefab Applications
7
7
  *
8
- * The version of the OpenAPI document: 0.11.3
8
+ * The version of the OpenAPI document: 0.12.0
9
9
  *
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 PodOS Warehouse Prefab Applications
4
4
  *
5
- * The version of the OpenAPI document: 0.11.3
5
+ * The version of the OpenAPI document: 0.12.0
6
6
  *
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 PodOS Warehouse Prefab Applications
7
7
  *
8
- * The version of the OpenAPI document: 0.11.3
8
+ * The version of the OpenAPI document: 0.12.0
9
9
  *
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 PodOS Warehouse Prefab Applications
4
4
  *
5
- * The version of the OpenAPI document: 0.11.3
5
+ * The version of the OpenAPI document: 0.12.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -174,6 +174,10 @@ export interface Tray {
174
174
  * Tray label
175
175
  */
176
176
  'label': string;
177
+ /**
178
+ * The status of the tray
179
+ */
180
+ 'status': TrayStatusEnum;
177
181
  /**
178
182
  * Total number of prefab applications in the tray
179
183
  */
@@ -192,6 +196,11 @@ export interface Tray {
192
196
  */
193
197
  'updatedAt': string | null;
194
198
  }
199
+ export declare const TrayStatusEnum: {
200
+ readonly Ok: "ok";
201
+ readonly Issue: "issue";
202
+ };
203
+ export type TrayStatusEnum = typeof TrayStatusEnum[keyof typeof TrayStatusEnum];
195
204
  export interface TrayContents {
196
205
  'catalogApplication'?: PrefabApplicationCatalogApplication;
197
206
  }
@@ -551,10 +560,11 @@ export declare const PrefabApplicationsApiAxiosParamCreator: (configuration?: Co
551
560
  * @param {string} project What project it is
552
561
  * @param {string} prefabApplicationId Unique identifier of a prefab application
553
562
  * @param {UpdatePrefabApplicationRequest} updatePrefabApplicationRequest Prefab application schema
563
+ * @param {string} [xOnBehalfOf] A reference to the user updating the prefab application
554
564
  * @param {*} [options] Override http request option.
555
565
  * @throws {RequiredError}
556
566
  */
557
- updatePrefabApplication: (project: string, prefabApplicationId: string, updatePrefabApplicationRequest: UpdatePrefabApplicationRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
567
+ updatePrefabApplication: (project: string, prefabApplicationId: string, updatePrefabApplicationRequest: UpdatePrefabApplicationRequest, xOnBehalfOf?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
558
568
  };
559
569
  /**
560
570
  * PrefabApplicationsApi - functional programming interface
@@ -597,10 +607,11 @@ export declare const PrefabApplicationsApiFp: (configuration?: Configuration) =>
597
607
  * @param {string} project What project it is
598
608
  * @param {string} prefabApplicationId Unique identifier of a prefab application
599
609
  * @param {UpdatePrefabApplicationRequest} updatePrefabApplicationRequest Prefab application schema
610
+ * @param {string} [xOnBehalfOf] A reference to the user updating the prefab application
600
611
  * @param {*} [options] Override http request option.
601
612
  * @throws {RequiredError}
602
613
  */
603
- updatePrefabApplication(project: string, prefabApplicationId: string, updatePrefabApplicationRequest: UpdatePrefabApplicationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PrefabApplication>>;
614
+ updatePrefabApplication(project: string, prefabApplicationId: string, updatePrefabApplicationRequest: UpdatePrefabApplicationRequest, xOnBehalfOf?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PrefabApplication>>;
604
615
  };
605
616
  /**
606
617
  * PrefabApplicationsApi - factory interface
@@ -710,6 +721,10 @@ export interface PrefabApplicationsApiUpdatePrefabApplicationRequest {
710
721
  * Prefab application schema
711
722
  */
712
723
  readonly updatePrefabApplicationRequest: UpdatePrefabApplicationRequest;
724
+ /**
725
+ * A reference to the user updating the prefab application
726
+ */
727
+ readonly xOnBehalfOf?: string;
713
728
  }
714
729
  /**
715
730
  * PrefabApplicationsApi - object-oriented interface
package/dist/esm/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Warehouse Prefab Applications API
5
5
  * Manage PodOS Warehouse Prefab Applications
6
6
  *
7
- * The version of the OpenAPI document: 0.11.3
7
+ * The version of the OpenAPI document: 0.12.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -38,6 +38,10 @@ export const PrefabApplicationStatusEnum = {
38
38
  Processing: 'processing',
39
39
  Complete: 'complete'
40
40
  };
41
+ export const TrayStatusEnum = {
42
+ Ok: 'ok',
43
+ Issue: 'issue'
44
+ };
41
45
  /**
42
46
  * BatchesApi - axios parameter creator
43
47
  */
@@ -628,10 +632,11 @@ export const PrefabApplicationsApiAxiosParamCreator = function (configuration) {
628
632
  * @param {string} project What project it is
629
633
  * @param {string} prefabApplicationId Unique identifier of a prefab application
630
634
  * @param {UpdatePrefabApplicationRequest} updatePrefabApplicationRequest Prefab application schema
635
+ * @param {string} [xOnBehalfOf] A reference to the user updating the prefab application
631
636
  * @param {*} [options] Override http request option.
632
637
  * @throws {RequiredError}
633
638
  */
634
- updatePrefabApplication: (project_1, prefabApplicationId_1, updatePrefabApplicationRequest_1, ...args_1) => __awaiter(this, [project_1, prefabApplicationId_1, updatePrefabApplicationRequest_1, ...args_1], void 0, function* (project, prefabApplicationId, updatePrefabApplicationRequest, options = {}) {
639
+ updatePrefabApplication: (project_1, prefabApplicationId_1, updatePrefabApplicationRequest_1, xOnBehalfOf_1, ...args_1) => __awaiter(this, [project_1, prefabApplicationId_1, updatePrefabApplicationRequest_1, xOnBehalfOf_1, ...args_1], void 0, function* (project, prefabApplicationId, updatePrefabApplicationRequest, xOnBehalfOf, options = {}) {
635
640
  // verify required parameter 'project' is not null or undefined
636
641
  assertParamExists('updatePrefabApplication', 'project', project);
637
642
  // verify required parameter 'prefabApplicationId' is not null or undefined
@@ -658,6 +663,9 @@ export const PrefabApplicationsApiAxiosParamCreator = function (configuration) {
658
663
  localVarQueryParameter['project'] = project;
659
664
  }
660
665
  localVarHeaderParameter['Content-Type'] = 'application/json';
666
+ if (xOnBehalfOf != null) {
667
+ localVarHeaderParameter['X-On-Behalf-Of'] = String(xOnBehalfOf);
668
+ }
661
669
  setSearchParams(localVarUrlObj, localVarQueryParameter);
662
670
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
663
671
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -736,13 +744,14 @@ export const PrefabApplicationsApiFp = function (configuration) {
736
744
  * @param {string} project What project it is
737
745
  * @param {string} prefabApplicationId Unique identifier of a prefab application
738
746
  * @param {UpdatePrefabApplicationRequest} updatePrefabApplicationRequest Prefab application schema
747
+ * @param {string} [xOnBehalfOf] A reference to the user updating the prefab application
739
748
  * @param {*} [options] Override http request option.
740
749
  * @throws {RequiredError}
741
750
  */
742
- updatePrefabApplication(project, prefabApplicationId, updatePrefabApplicationRequest, options) {
751
+ updatePrefabApplication(project, prefabApplicationId, updatePrefabApplicationRequest, xOnBehalfOf, options) {
743
752
  return __awaiter(this, void 0, void 0, function* () {
744
753
  var _a, _b, _c;
745
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePrefabApplication(project, prefabApplicationId, updatePrefabApplicationRequest, options);
754
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePrefabApplication(project, prefabApplicationId, updatePrefabApplicationRequest, xOnBehalfOf, options);
746
755
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
747
756
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PrefabApplicationsApi.updatePrefabApplication']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
748
757
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -794,7 +803,7 @@ export const PrefabApplicationsApiFactory = function (configuration, basePath, a
794
803
  * @throws {RequiredError}
795
804
  */
796
805
  updatePrefabApplication(requestParameters, options) {
797
- return localVarFp.updatePrefabApplication(requestParameters.project, requestParameters.prefabApplicationId, requestParameters.updatePrefabApplicationRequest, options).then((request) => request(axios, basePath));
806
+ return localVarFp.updatePrefabApplication(requestParameters.project, requestParameters.prefabApplicationId, requestParameters.updatePrefabApplicationRequest, requestParameters.xOnBehalfOf, options).then((request) => request(axios, basePath));
798
807
  },
799
808
  };
800
809
  };
@@ -840,7 +849,7 @@ export class PrefabApplicationsApi extends BaseAPI {
840
849
  * @throws {RequiredError}
841
850
  */
842
851
  updatePrefabApplication(requestParameters, options) {
843
- return PrefabApplicationsApiFp(this.configuration).updatePrefabApplication(requestParameters.project, requestParameters.prefabApplicationId, requestParameters.updatePrefabApplicationRequest, options).then((request) => request(this.axios, this.basePath));
852
+ return PrefabApplicationsApiFp(this.configuration).updatePrefabApplication(requestParameters.project, requestParameters.prefabApplicationId, requestParameters.updatePrefabApplicationRequest, requestParameters.xOnBehalfOf, options).then((request) => request(this.axios, this.basePath));
844
853
  }
845
854
  }
846
855
  /**
@@ -2,7 +2,7 @@
2
2
  * Warehouse Prefab Applications API
3
3
  * Manage PodOS Warehouse Prefab Applications
4
4
  *
5
- * The version of the OpenAPI document: 0.11.3
5
+ * The version of the OpenAPI document: 0.12.0
6
6
  *
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 PodOS Warehouse Prefab Applications
6
6
  *
7
- * The version of the OpenAPI document: 0.11.3
7
+ * The version of the OpenAPI document: 0.12.0
8
8
  *
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 PodOS Warehouse Prefab Applications
4
4
  *
5
- * The version of the OpenAPI document: 0.11.3
5
+ * The version of the OpenAPI document: 0.12.0
6
6
  *
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 PodOS Warehouse Prefab Applications
6
6
  *
7
- * The version of the OpenAPI document: 0.11.3
7
+ * The version of the OpenAPI document: 0.12.0
8
8
  *
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 PodOS Warehouse Prefab Applications
4
4
  *
5
- * The version of the OpenAPI document: 0.11.3
5
+ * The version of the OpenAPI document: 0.12.0
6
6
  *
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 PodOS Warehouse Prefab Applications
6
6
  *
7
- * The version of the OpenAPI document: 0.11.3
7
+ * The version of the OpenAPI document: 0.12.0
8
8
  *
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 PodOS Warehouse Prefab Applications
4
4
  *
5
- * The version of the OpenAPI document: 0.11.3
5
+ * The version of the OpenAPI document: 0.12.0
6
6
  *
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 PodOS Warehouse Prefab Applications
6
6
  *
7
- * The version of the OpenAPI document: 0.11.3
7
+ * The version of the OpenAPI document: 0.12.0
8
8
  *
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 PodOS Warehouse Prefab Applications
4
4
  *
5
- * The version of the OpenAPI document: 0.11.3
5
+ * The version of the OpenAPI document: 0.12.0
6
6
  *
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 PodOS Warehouse Prefab Applications
7
7
  *
8
- * The version of the OpenAPI document: 0.11.3
8
+ * The version of the OpenAPI document: 0.12.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -217,11 +217,13 @@ const apiInstance = new PrefabApplicationsApi(configuration);
217
217
  let project: string; //What project it is (default to undefined)
218
218
  let prefabApplicationId: string; //Unique identifier of a prefab application (default to undefined)
219
219
  let updatePrefabApplicationRequest: UpdatePrefabApplicationRequest; //Prefab application schema
220
+ let xOnBehalfOf: string; //A reference to the user updating the prefab application (optional) (default to undefined)
220
221
 
221
222
  const { status, data } = await apiInstance.updatePrefabApplication(
222
223
  project,
223
224
  prefabApplicationId,
224
- updatePrefabApplicationRequest
225
+ updatePrefabApplicationRequest,
226
+ xOnBehalfOf
225
227
  );
226
228
  ```
227
229
 
@@ -232,6 +234,7 @@ const { status, data } = await apiInstance.updatePrefabApplication(
232
234
  | **updatePrefabApplicationRequest** | **UpdatePrefabApplicationRequest**| Prefab application schema | |
233
235
  | **project** | [**string**] | What project it is | defaults to undefined|
234
236
  | **prefabApplicationId** | [**string**] | Unique identifier of a prefab application | defaults to undefined|
237
+ | **xOnBehalfOf** | [**string**] | A reference to the user updating the prefab application | (optional) defaults to undefined|
235
238
 
236
239
 
237
240
  ### Return type
package/docs/Tray.md CHANGED
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
8
8
  **id** | **string** | Unique object identifier | [default to undefined]
9
9
  **ref** | **string** | A reference to the resource location | [readonly] [default to undefined]
10
10
  **label** | **string** | Tray label | [default to undefined]
11
+ **status** | **string** | The status of the tray | [default to undefined]
11
12
  **fillLevel** | **number** | Total number of prefab applications in the tray | [readonly] [default to undefined]
12
13
  **unassignedCount** | **number** | Number of prefab applications in the tray that are not assigned to a warehouse application | [readonly] [default to undefined]
13
14
  **contents** | [**TrayContents**](TrayContents.md) | | [default to undefined]
@@ -23,6 +24,7 @@ const instance: Tray = {
23
24
  id,
24
25
  ref,
25
26
  label,
27
+ status,
26
28
  fillLevel,
27
29
  unassignedCount,
28
30
  contents,
package/index.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Warehouse Prefab Applications API
5
5
  * Manage PodOS Warehouse Prefab Applications
6
6
  *
7
- * The version of the OpenAPI document: 0.11.3
7
+ * The version of the OpenAPI document: 0.12.0
8
8
  *
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.11.3",
3
+ "version": "0.12.0",
4
4
  "description": "OpenAPI client for @teemill/warehouse-prefab-applications",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {