@ignos/api-client 20240829.0.10164-alpha → 20240829.0.10171

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.
@@ -1422,8 +1422,8 @@ export interface IMoveBookingClient {
1422
1422
  getBooking(bookingId: string): Promise<BookingDto>;
1423
1423
  getParcelBooking(parcelId: string): Promise<BookingDto[]>;
1424
1424
  updateBooking(bookingRequest: BookingUpdateDto): Promise<BookingDto>;
1425
- createBookingTransport(bookingRequest: BookingTransportRequestDto): Promise<BookingDto>;
1426
- createBookingGeneral(bookingRequest: BookingGeneralRequestDto): Promise<BookingDto>;
1425
+ createBookingTransport(bookingRequest: BookingTransportRequestDto): Promise<BookingDto[]>;
1426
+ createBookingGeneral(bookingRequest: BookingGeneralRequestDto): Promise<BookingDto[]>;
1427
1427
  updateBookingStatus(bookingUpdate: BookingStatusUpdateDto): Promise<BookingDto>;
1428
1428
  }
1429
1429
  export declare class MoveBookingClient extends AuthorizedApiBase implements IMoveBookingClient {
@@ -1441,15 +1441,15 @@ export declare class MoveBookingClient extends AuthorizedApiBase implements IMov
1441
1441
  protected processGetParcelBooking(response: Response): Promise<BookingDto[]>;
1442
1442
  updateBooking(bookingRequest: BookingUpdateDto): Promise<BookingDto>;
1443
1443
  protected processUpdateBooking(response: Response): Promise<BookingDto>;
1444
- createBookingTransport(bookingRequest: BookingTransportRequestDto): Promise<BookingDto>;
1445
- protected processCreateBookingTransport(response: Response): Promise<BookingDto>;
1446
- createBookingGeneral(bookingRequest: BookingGeneralRequestDto): Promise<BookingDto>;
1447
- protected processCreateBookingGeneral(response: Response): Promise<BookingDto>;
1444
+ createBookingTransport(bookingRequest: BookingTransportRequestDto): Promise<BookingDto[]>;
1445
+ protected processCreateBookingTransport(response: Response): Promise<BookingDto[]>;
1446
+ createBookingGeneral(bookingRequest: BookingGeneralRequestDto): Promise<BookingDto[]>;
1447
+ protected processCreateBookingGeneral(response: Response): Promise<BookingDto[]>;
1448
1448
  updateBookingStatus(bookingUpdate: BookingStatusUpdateDto): Promise<BookingDto>;
1449
1449
  protected processUpdateBookingStatus(response: Response): Promise<BookingDto>;
1450
1450
  }
1451
1451
  export interface IMoveLocationsClient {
1452
- searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | null | undefined): Promise<LocationDto[]>;
1452
+ searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | null | undefined, locationProfiles: LocationProfileDto[] | null | undefined): Promise<LocationDto[]>;
1453
1453
  suggestionsLocations(locationSuggestions: LocationSuggestionsDto): Promise<LocationDto[]>;
1454
1454
  }
1455
1455
  export declare class MoveLocationsClient extends AuthorizedApiBase implements IMoveLocationsClient {
@@ -1459,7 +1459,7 @@ export declare class MoveLocationsClient extends AuthorizedApiBase implements IM
1459
1459
  constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
1460
1460
  fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
1461
1461
  });
1462
- searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | null | undefined): Promise<LocationDto[]>;
1462
+ searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | null | undefined, locationProfiles: LocationProfileDto[] | null | undefined): Promise<LocationDto[]>;
1463
1463
  protected processSearchLocations(response: Response): Promise<LocationDto[]>;
1464
1464
  suggestionsLocations(locationSuggestions: LocationSuggestionsDto): Promise<LocationDto[]>;
1465
1465
  protected processSuggestionsLocations(response: Response): Promise<LocationDto[]>;
@@ -8136,9 +8136,11 @@ export interface IBookingDeliveryExceptionDto {
8136
8136
  toLocationId?: string | null;
8137
8137
  comment?: string | null;
8138
8138
  }
8139
+ export type LocationProfileDto = "Cage" | "CantileverRack" | "Deviation" | "Gate" | "Ground" | "Inbound" | "Logia" | "LogiaTransit" | "Outbound" | "Pack" | "PalletRack" | "Pick" | "Quality" | "Quarantine" | "Resource" | "ShelvingRack" | "User";
8139
8140
  export declare class LocationSuggestionsDto implements ILocationSuggestionsDto {
8140
8141
  items: LocationSuggestionsItemDto[];
8141
8142
  locationKindFilter?: LocationKindDto[] | null;
8143
+ locationProfiles?: LocationProfileDto[] | null;
8142
8144
  constructor(data?: ILocationSuggestionsDto);
8143
8145
  init(_data?: any): void;
8144
8146
  static fromJS(data: any): LocationSuggestionsDto;
@@ -8147,6 +8149,7 @@ export declare class LocationSuggestionsDto implements ILocationSuggestionsDto {
8147
8149
  export interface ILocationSuggestionsDto {
8148
8150
  items: LocationSuggestionsItemDto[];
8149
8151
  locationKindFilter?: LocationKindDto[] | null;
8152
+ locationProfiles?: LocationProfileDto[] | null;
8150
8153
  }
8151
8154
  export declare class LocationSuggestionsItemDto implements ILocationSuggestionsItemDto {
8152
8155
  parcelId: string;
@@ -9130,8 +9133,6 @@ export declare class ListProductionScheduleOperationsRequest implements IListPro
9130
9133
  partNumber?: string | null;
9131
9134
  partName?: string | null;
9132
9135
  material?: string | null;
9133
- bomPartNumber?: string | null;
9134
- bomPartName?: string | null;
9135
9136
  workOrderIds?: string[] | null;
9136
9137
  partNumbers?: string[] | null;
9137
9138
  partNames?: string[] | null;
@@ -9139,8 +9140,6 @@ export declare class ListProductionScheduleOperationsRequest implements IListPro
9139
9140
  bomPositions?: string[] | null;
9140
9141
  materials?: string[] | null;
9141
9142
  descriptions?: string[] | null;
9142
- bomPartNumbers?: string[] | null;
9143
- bomPartNames?: string[] | null;
9144
9143
  availableWork?: boolean | null;
9145
9144
  operationStatuses?: OperationStatusDto[] | null;
9146
9145
  after?: Date | null;
@@ -9160,8 +9159,6 @@ export interface IListProductionScheduleOperationsRequest {
9160
9159
  partNumber?: string | null;
9161
9160
  partName?: string | null;
9162
9161
  material?: string | null;
9163
- bomPartNumber?: string | null;
9164
- bomPartName?: string | null;
9165
9162
  workOrderIds?: string[] | null;
9166
9163
  partNumbers?: string[] | null;
9167
9164
  partNames?: string[] | null;
@@ -9169,8 +9166,6 @@ export interface IListProductionScheduleOperationsRequest {
9169
9166
  bomPositions?: string[] | null;
9170
9167
  materials?: string[] | null;
9171
9168
  descriptions?: string[] | null;
9172
- bomPartNumbers?: string[] | null;
9173
- bomPartNames?: string[] | null;
9174
9169
  availableWork?: boolean | null;
9175
9170
  operationStatuses?: OperationStatusDto[] | null;
9176
9171
  after?: Date | null;
@@ -9184,8 +9179,6 @@ export declare class ProductionScheduleFiltersDto implements IProductionSchedule
9184
9179
  workOrderIds?: FilterValueWithQuantity[];
9185
9180
  materials?: FilterValueWithQuantity[];
9186
9181
  descriptions?: FilterValueWithQuantity[];
9187
- bomPartNumbers?: FilterValueWithQuantity[];
9188
- bomPartNames?: FilterValueWithQuantity[];
9189
9182
  operationsWithAvailableWork?: number;
9190
9183
  operationStatuses?: OperationStatusFilterWithQuantity[];
9191
9184
  lastOperation?: Date | null;
@@ -9203,8 +9196,6 @@ export interface IProductionScheduleFiltersDto {
9203
9196
  workOrderIds?: FilterValueWithQuantity[];
9204
9197
  materials?: FilterValueWithQuantity[];
9205
9198
  descriptions?: FilterValueWithQuantity[];
9206
- bomPartNumbers?: FilterValueWithQuantity[];
9207
- bomPartNames?: FilterValueWithQuantity[];
9208
9199
  operationsWithAvailableWork?: number;
9209
9200
  operationStatuses?: OperationStatusFilterWithQuantity[];
9210
9201
  lastOperation?: Date | null;
@@ -9242,8 +9233,6 @@ export declare class GetAvailableProductionScheduleFiltersRequest implements IGe
9242
9233
  partNumber?: string | null;
9243
9234
  partName?: string | null;
9244
9235
  material?: string | null;
9245
- bomPartNumber?: string | null;
9246
- bomPartName?: string | null;
9247
9236
  workOrderIds?: string[] | null;
9248
9237
  partNumbers?: string[] | null;
9249
9238
  partNames?: string[] | null;
@@ -9251,8 +9240,6 @@ export declare class GetAvailableProductionScheduleFiltersRequest implements IGe
9251
9240
  bomPositions?: string[] | null;
9252
9241
  materials?: string[] | null;
9253
9242
  descriptions?: string[] | null;
9254
- bomPartNumbers?: string[] | null;
9255
- bomPartNames?: string[] | null;
9256
9243
  availableWork?: boolean | null;
9257
9244
  operationStatuses?: OperationStatusDto[] | null;
9258
9245
  after?: Date | null;
@@ -9270,8 +9257,6 @@ export interface IGetAvailableProductionScheduleFiltersRequest {
9270
9257
  partNumber?: string | null;
9271
9258
  partName?: string | null;
9272
9259
  material?: string | null;
9273
- bomPartNumber?: string | null;
9274
- bomPartName?: string | null;
9275
9260
  workOrderIds?: string[] | null;
9276
9261
  partNumbers?: string[] | null;
9277
9262
  partNames?: string[] | null;
@@ -9279,8 +9264,6 @@ export interface IGetAvailableProductionScheduleFiltersRequest {
9279
9264
  bomPositions?: string[] | null;
9280
9265
  materials?: string[] | null;
9281
9266
  descriptions?: string[] | null;
9282
- bomPartNumbers?: string[] | null;
9283
- bomPartNames?: string[] | null;
9284
9267
  availableWork?: boolean | null;
9285
9268
  operationStatuses?: OperationStatusDto[] | null;
9286
9269
  after?: Date | null;
@@ -11876,7 +11876,11 @@ export class MoveBookingClient extends AuthorizedApiBase {
11876
11876
  return response.text().then((_responseText) => {
11877
11877
  let result200 = null;
11878
11878
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
11879
- result200 = BookingDto.fromJS(resultData200);
11879
+ if (Array.isArray(resultData200)) {
11880
+ result200 = [];
11881
+ for (let item of resultData200)
11882
+ result200.push(BookingDto.fromJS(item));
11883
+ }
11880
11884
  return result200;
11881
11885
  });
11882
11886
  }
@@ -11916,7 +11920,11 @@ export class MoveBookingClient extends AuthorizedApiBase {
11916
11920
  return response.text().then((_responseText) => {
11917
11921
  let result200 = null;
11918
11922
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
11919
- result200 = BookingDto.fromJS(resultData200);
11923
+ if (Array.isArray(resultData200)) {
11924
+ result200 = [];
11925
+ for (let item of resultData200)
11926
+ result200.push(BookingDto.fromJS(item));
11927
+ }
11920
11928
  return result200;
11921
11929
  });
11922
11930
  }
@@ -11975,12 +11983,14 @@ export class MoveLocationsClient extends AuthorizedApiBase {
11975
11983
  this.http = http ? http : window;
11976
11984
  this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
11977
11985
  }
11978
- searchLocations(input, locationKinds) {
11986
+ searchLocations(input, locationKinds, locationProfiles) {
11979
11987
  let url_ = this.baseUrl + "/move/locations/search?";
11980
11988
  if (input !== undefined && input !== null)
11981
11989
  url_ += "input=" + encodeURIComponent("" + input) + "&";
11982
11990
  if (locationKinds !== undefined && locationKinds !== null)
11983
11991
  locationKinds && locationKinds.forEach(item => { url_ += "locationKinds=" + encodeURIComponent("" + item) + "&"; });
11992
+ if (locationProfiles !== undefined && locationProfiles !== null)
11993
+ locationProfiles && locationProfiles.forEach(item => { url_ += "locationProfiles=" + encodeURIComponent("" + item) + "&"; });
11984
11994
  url_ = url_.replace(/[?&]$/, "");
11985
11995
  let options_ = {
11986
11996
  method: "GET",
@@ -31089,6 +31099,11 @@ export class LocationSuggestionsDto {
31089
31099
  for (let item of _data["locationKindFilter"])
31090
31100
  this.locationKindFilter.push(item);
31091
31101
  }
31102
+ if (Array.isArray(_data["locationProfiles"])) {
31103
+ this.locationProfiles = [];
31104
+ for (let item of _data["locationProfiles"])
31105
+ this.locationProfiles.push(item);
31106
+ }
31092
31107
  }
31093
31108
  }
31094
31109
  static fromJS(data) {
@@ -31109,6 +31124,11 @@ export class LocationSuggestionsDto {
31109
31124
  for (let item of this.locationKindFilter)
31110
31125
  data["locationKindFilter"].push(item);
31111
31126
  }
31127
+ if (Array.isArray(this.locationProfiles)) {
31128
+ data["locationProfiles"] = [];
31129
+ for (let item of this.locationProfiles)
31130
+ data["locationProfiles"].push(item);
31131
+ }
31112
31132
  return data;
31113
31133
  }
31114
31134
  }
@@ -32982,8 +33002,6 @@ export class ListProductionScheduleOperationsRequest {
32982
33002
  this.partNumber = _data["partNumber"];
32983
33003
  this.partName = _data["partName"];
32984
33004
  this.material = _data["material"];
32985
- this.bomPartNumber = _data["bomPartNumber"];
32986
- this.bomPartName = _data["bomPartName"];
32987
33005
  if (Array.isArray(_data["workOrderIds"])) {
32988
33006
  this.workOrderIds = [];
32989
33007
  for (let item of _data["workOrderIds"])
@@ -33019,16 +33037,6 @@ export class ListProductionScheduleOperationsRequest {
33019
33037
  for (let item of _data["descriptions"])
33020
33038
  this.descriptions.push(item);
33021
33039
  }
33022
- if (Array.isArray(_data["bomPartNumbers"])) {
33023
- this.bomPartNumbers = [];
33024
- for (let item of _data["bomPartNumbers"])
33025
- this.bomPartNumbers.push(item);
33026
- }
33027
- if (Array.isArray(_data["bomPartNames"])) {
33028
- this.bomPartNames = [];
33029
- for (let item of _data["bomPartNames"])
33030
- this.bomPartNames.push(item);
33031
- }
33032
33040
  this.availableWork = _data["availableWork"];
33033
33041
  if (Array.isArray(_data["operationStatuses"])) {
33034
33042
  this.operationStatuses = [];
@@ -33056,8 +33064,6 @@ export class ListProductionScheduleOperationsRequest {
33056
33064
  data["partNumber"] = this.partNumber;
33057
33065
  data["partName"] = this.partName;
33058
33066
  data["material"] = this.material;
33059
- data["bomPartNumber"] = this.bomPartNumber;
33060
- data["bomPartName"] = this.bomPartName;
33061
33067
  if (Array.isArray(this.workOrderIds)) {
33062
33068
  data["workOrderIds"] = [];
33063
33069
  for (let item of this.workOrderIds)
@@ -33093,16 +33099,6 @@ export class ListProductionScheduleOperationsRequest {
33093
33099
  for (let item of this.descriptions)
33094
33100
  data["descriptions"].push(item);
33095
33101
  }
33096
- if (Array.isArray(this.bomPartNumbers)) {
33097
- data["bomPartNumbers"] = [];
33098
- for (let item of this.bomPartNumbers)
33099
- data["bomPartNumbers"].push(item);
33100
- }
33101
- if (Array.isArray(this.bomPartNames)) {
33102
- data["bomPartNames"] = [];
33103
- for (let item of this.bomPartNames)
33104
- data["bomPartNames"].push(item);
33105
- }
33106
33102
  data["availableWork"] = this.availableWork;
33107
33103
  if (Array.isArray(this.operationStatuses)) {
33108
33104
  data["operationStatuses"] = [];
@@ -33160,16 +33156,6 @@ export class ProductionScheduleFiltersDto {
33160
33156
  for (let item of _data["descriptions"])
33161
33157
  this.descriptions.push(FilterValueWithQuantity.fromJS(item));
33162
33158
  }
33163
- if (Array.isArray(_data["bomPartNumbers"])) {
33164
- this.bomPartNumbers = [];
33165
- for (let item of _data["bomPartNumbers"])
33166
- this.bomPartNumbers.push(FilterValueWithQuantity.fromJS(item));
33167
- }
33168
- if (Array.isArray(_data["bomPartNames"])) {
33169
- this.bomPartNames = [];
33170
- for (let item of _data["bomPartNames"])
33171
- this.bomPartNames.push(FilterValueWithQuantity.fromJS(item));
33172
- }
33173
33159
  this.operationsWithAvailableWork = _data["operationsWithAvailableWork"];
33174
33160
  if (Array.isArray(_data["operationStatuses"])) {
33175
33161
  this.operationStatuses = [];
@@ -33223,16 +33209,6 @@ export class ProductionScheduleFiltersDto {
33223
33209
  for (let item of this.descriptions)
33224
33210
  data["descriptions"].push(item.toJSON());
33225
33211
  }
33226
- if (Array.isArray(this.bomPartNumbers)) {
33227
- data["bomPartNumbers"] = [];
33228
- for (let item of this.bomPartNumbers)
33229
- data["bomPartNumbers"].push(item.toJSON());
33230
- }
33231
- if (Array.isArray(this.bomPartNames)) {
33232
- data["bomPartNames"] = [];
33233
- for (let item of this.bomPartNames)
33234
- data["bomPartNames"].push(item.toJSON());
33235
- }
33236
33212
  data["operationsWithAvailableWork"] = this.operationsWithAvailableWork;
33237
33213
  if (Array.isArray(this.operationStatuses)) {
33238
33214
  data["operationStatuses"] = [];
@@ -33318,8 +33294,6 @@ export class GetAvailableProductionScheduleFiltersRequest {
33318
33294
  this.partNumber = _data["partNumber"];
33319
33295
  this.partName = _data["partName"];
33320
33296
  this.material = _data["material"];
33321
- this.bomPartNumber = _data["bomPartNumber"];
33322
- this.bomPartName = _data["bomPartName"];
33323
33297
  if (Array.isArray(_data["workOrderIds"])) {
33324
33298
  this.workOrderIds = [];
33325
33299
  for (let item of _data["workOrderIds"])
@@ -33355,16 +33329,6 @@ export class GetAvailableProductionScheduleFiltersRequest {
33355
33329
  for (let item of _data["descriptions"])
33356
33330
  this.descriptions.push(item);
33357
33331
  }
33358
- if (Array.isArray(_data["bomPartNumbers"])) {
33359
- this.bomPartNumbers = [];
33360
- for (let item of _data["bomPartNumbers"])
33361
- this.bomPartNumbers.push(item);
33362
- }
33363
- if (Array.isArray(_data["bomPartNames"])) {
33364
- this.bomPartNames = [];
33365
- for (let item of _data["bomPartNames"])
33366
- this.bomPartNames.push(item);
33367
- }
33368
33332
  this.availableWork = _data["availableWork"];
33369
33333
  if (Array.isArray(_data["operationStatuses"])) {
33370
33334
  this.operationStatuses = [];
@@ -33390,8 +33354,6 @@ export class GetAvailableProductionScheduleFiltersRequest {
33390
33354
  data["partNumber"] = this.partNumber;
33391
33355
  data["partName"] = this.partName;
33392
33356
  data["material"] = this.material;
33393
- data["bomPartNumber"] = this.bomPartNumber;
33394
- data["bomPartName"] = this.bomPartName;
33395
33357
  if (Array.isArray(this.workOrderIds)) {
33396
33358
  data["workOrderIds"] = [];
33397
33359
  for (let item of this.workOrderIds)
@@ -33427,16 +33389,6 @@ export class GetAvailableProductionScheduleFiltersRequest {
33427
33389
  for (let item of this.descriptions)
33428
33390
  data["descriptions"].push(item);
33429
33391
  }
33430
- if (Array.isArray(this.bomPartNumbers)) {
33431
- data["bomPartNumbers"] = [];
33432
- for (let item of this.bomPartNumbers)
33433
- data["bomPartNumbers"].push(item);
33434
- }
33435
- if (Array.isArray(this.bomPartNames)) {
33436
- data["bomPartNames"] = [];
33437
- for (let item of this.bomPartNames)
33438
- data["bomPartNames"].push(item);
33439
- }
33440
33392
  data["availableWork"] = this.availableWork;
33441
33393
  if (Array.isArray(this.operationStatuses)) {
33442
33394
  data["operationStatuses"] = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20240829.0.10164-alpha",
3
+ "version": "20240829.0.10171",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -12479,9 +12479,9 @@ export interface IMoveBookingClient {
12479
12479
 
12480
12480
  updateBooking(bookingRequest: BookingUpdateDto): Promise<BookingDto>;
12481
12481
 
12482
- createBookingTransport(bookingRequest: BookingTransportRequestDto): Promise<BookingDto>;
12482
+ createBookingTransport(bookingRequest: BookingTransportRequestDto): Promise<BookingDto[]>;
12483
12483
 
12484
- createBookingGeneral(bookingRequest: BookingGeneralRequestDto): Promise<BookingDto>;
12484
+ createBookingGeneral(bookingRequest: BookingGeneralRequestDto): Promise<BookingDto[]>;
12485
12485
 
12486
12486
  updateBookingStatus(bookingUpdate: BookingStatusUpdateDto): Promise<BookingDto>;
12487
12487
  }
@@ -12659,7 +12659,7 @@ export class MoveBookingClient extends AuthorizedApiBase implements IMoveBooking
12659
12659
  return Promise.resolve<BookingDto>(null as any);
12660
12660
  }
12661
12661
 
12662
- createBookingTransport(bookingRequest: BookingTransportRequestDto): Promise<BookingDto> {
12662
+ createBookingTransport(bookingRequest: BookingTransportRequestDto): Promise<BookingDto[]> {
12663
12663
  let url_ = this.baseUrl + "/move/booking/transport";
12664
12664
  url_ = url_.replace(/[?&]$/, "");
12665
12665
 
@@ -12681,14 +12681,18 @@ export class MoveBookingClient extends AuthorizedApiBase implements IMoveBooking
12681
12681
  });
12682
12682
  }
12683
12683
 
12684
- protected processCreateBookingTransport(response: Response): Promise<BookingDto> {
12684
+ protected processCreateBookingTransport(response: Response): Promise<BookingDto[]> {
12685
12685
  const status = response.status;
12686
12686
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
12687
12687
  if (status === 200) {
12688
12688
  return response.text().then((_responseText) => {
12689
12689
  let result200: any = null;
12690
12690
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
12691
- result200 = BookingDto.fromJS(resultData200);
12691
+ if (Array.isArray(resultData200)) {
12692
+ result200 = [] as any;
12693
+ for (let item of resultData200)
12694
+ result200!.push(BookingDto.fromJS(item));
12695
+ }
12692
12696
  return result200;
12693
12697
  });
12694
12698
  } else if (status !== 200 && status !== 204) {
@@ -12696,10 +12700,10 @@ export class MoveBookingClient extends AuthorizedApiBase implements IMoveBooking
12696
12700
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
12697
12701
  });
12698
12702
  }
12699
- return Promise.resolve<BookingDto>(null as any);
12703
+ return Promise.resolve<BookingDto[]>(null as any);
12700
12704
  }
12701
12705
 
12702
- createBookingGeneral(bookingRequest: BookingGeneralRequestDto): Promise<BookingDto> {
12706
+ createBookingGeneral(bookingRequest: BookingGeneralRequestDto): Promise<BookingDto[]> {
12703
12707
  let url_ = this.baseUrl + "/move/booking/general";
12704
12708
  url_ = url_.replace(/[?&]$/, "");
12705
12709
 
@@ -12721,14 +12725,18 @@ export class MoveBookingClient extends AuthorizedApiBase implements IMoveBooking
12721
12725
  });
12722
12726
  }
12723
12727
 
12724
- protected processCreateBookingGeneral(response: Response): Promise<BookingDto> {
12728
+ protected processCreateBookingGeneral(response: Response): Promise<BookingDto[]> {
12725
12729
  const status = response.status;
12726
12730
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
12727
12731
  if (status === 200) {
12728
12732
  return response.text().then((_responseText) => {
12729
12733
  let result200: any = null;
12730
12734
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
12731
- result200 = BookingDto.fromJS(resultData200);
12735
+ if (Array.isArray(resultData200)) {
12736
+ result200 = [] as any;
12737
+ for (let item of resultData200)
12738
+ result200!.push(BookingDto.fromJS(item));
12739
+ }
12732
12740
  return result200;
12733
12741
  });
12734
12742
  } else if (status !== 200 && status !== 204) {
@@ -12736,7 +12744,7 @@ export class MoveBookingClient extends AuthorizedApiBase implements IMoveBooking
12736
12744
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
12737
12745
  });
12738
12746
  }
12739
- return Promise.resolve<BookingDto>(null as any);
12747
+ return Promise.resolve<BookingDto[]>(null as any);
12740
12748
  }
12741
12749
 
12742
12750
  updateBookingStatus(bookingUpdate: BookingStatusUpdateDto): Promise<BookingDto> {
@@ -12782,7 +12790,7 @@ export class MoveBookingClient extends AuthorizedApiBase implements IMoveBooking
12782
12790
 
12783
12791
  export interface IMoveLocationsClient {
12784
12792
 
12785
- searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | null | undefined): Promise<LocationDto[]>;
12793
+ searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | null | undefined, locationProfiles: LocationProfileDto[] | null | undefined): Promise<LocationDto[]>;
12786
12794
 
12787
12795
  suggestionsLocations(locationSuggestions: LocationSuggestionsDto): Promise<LocationDto[]>;
12788
12796
  }
@@ -12798,12 +12806,14 @@ export class MoveLocationsClient extends AuthorizedApiBase implements IMoveLocat
12798
12806
  this.baseUrl = baseUrl ?? "";
12799
12807
  }
12800
12808
 
12801
- searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | null | undefined): Promise<LocationDto[]> {
12809
+ searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | null | undefined, locationProfiles: LocationProfileDto[] | null | undefined): Promise<LocationDto[]> {
12802
12810
  let url_ = this.baseUrl + "/move/locations/search?";
12803
12811
  if (input !== undefined && input !== null)
12804
12812
  url_ += "input=" + encodeURIComponent("" + input) + "&";
12805
12813
  if (locationKinds !== undefined && locationKinds !== null)
12806
12814
  locationKinds && locationKinds.forEach(item => { url_ += "locationKinds=" + encodeURIComponent("" + item) + "&"; });
12815
+ if (locationProfiles !== undefined && locationProfiles !== null)
12816
+ locationProfiles && locationProfiles.forEach(item => { url_ += "locationProfiles=" + encodeURIComponent("" + item) + "&"; });
12807
12817
  url_ = url_.replace(/[?&]$/, "");
12808
12818
 
12809
12819
  let options_: RequestInit = {
@@ -38199,9 +38209,12 @@ export interface IBookingDeliveryExceptionDto {
38199
38209
  comment?: string | null;
38200
38210
  }
38201
38211
 
38212
+ export type LocationProfileDto = "Cage" | "CantileverRack" | "Deviation" | "Gate" | "Ground" | "Inbound" | "Logia" | "LogiaTransit" | "Outbound" | "Pack" | "PalletRack" | "Pick" | "Quality" | "Quarantine" | "Resource" | "ShelvingRack" | "User";
38213
+
38202
38214
  export class LocationSuggestionsDto implements ILocationSuggestionsDto {
38203
38215
  items!: LocationSuggestionsItemDto[];
38204
38216
  locationKindFilter?: LocationKindDto[] | null;
38217
+ locationProfiles?: LocationProfileDto[] | null;
38205
38218
 
38206
38219
  constructor(data?: ILocationSuggestionsDto) {
38207
38220
  if (data) {
@@ -38227,6 +38240,11 @@ export class LocationSuggestionsDto implements ILocationSuggestionsDto {
38227
38240
  for (let item of _data["locationKindFilter"])
38228
38241
  this.locationKindFilter!.push(item);
38229
38242
  }
38243
+ if (Array.isArray(_data["locationProfiles"])) {
38244
+ this.locationProfiles = [] as any;
38245
+ for (let item of _data["locationProfiles"])
38246
+ this.locationProfiles!.push(item);
38247
+ }
38230
38248
  }
38231
38249
  }
38232
38250
 
@@ -38249,6 +38267,11 @@ export class LocationSuggestionsDto implements ILocationSuggestionsDto {
38249
38267
  for (let item of this.locationKindFilter)
38250
38268
  data["locationKindFilter"].push(item);
38251
38269
  }
38270
+ if (Array.isArray(this.locationProfiles)) {
38271
+ data["locationProfiles"] = [];
38272
+ for (let item of this.locationProfiles)
38273
+ data["locationProfiles"].push(item);
38274
+ }
38252
38275
  return data;
38253
38276
  }
38254
38277
  }
@@ -38256,6 +38279,7 @@ export class LocationSuggestionsDto implements ILocationSuggestionsDto {
38256
38279
  export interface ILocationSuggestionsDto {
38257
38280
  items: LocationSuggestionsItemDto[];
38258
38281
  locationKindFilter?: LocationKindDto[] | null;
38282
+ locationProfiles?: LocationProfileDto[] | null;
38259
38283
  }
38260
38284
 
38261
38285
  export class LocationSuggestionsItemDto implements ILocationSuggestionsItemDto {
@@ -41098,8 +41122,6 @@ export class ListProductionScheduleOperationsRequest implements IListProductionS
41098
41122
  partNumber?: string | null;
41099
41123
  partName?: string | null;
41100
41124
  material?: string | null;
41101
- bomPartNumber?: string | null;
41102
- bomPartName?: string | null;
41103
41125
  workOrderIds?: string[] | null;
41104
41126
  partNumbers?: string[] | null;
41105
41127
  partNames?: string[] | null;
@@ -41107,8 +41129,6 @@ export class ListProductionScheduleOperationsRequest implements IListProductionS
41107
41129
  bomPositions?: string[] | null;
41108
41130
  materials?: string[] | null;
41109
41131
  descriptions?: string[] | null;
41110
- bomPartNumbers?: string[] | null;
41111
- bomPartNames?: string[] | null;
41112
41132
  availableWork?: boolean | null;
41113
41133
  operationStatuses?: OperationStatusDto[] | null;
41114
41134
  after?: Date | null;
@@ -41134,8 +41154,6 @@ export class ListProductionScheduleOperationsRequest implements IListProductionS
41134
41154
  this.partNumber = _data["partNumber"];
41135
41155
  this.partName = _data["partName"];
41136
41156
  this.material = _data["material"];
41137
- this.bomPartNumber = _data["bomPartNumber"];
41138
- this.bomPartName = _data["bomPartName"];
41139
41157
  if (Array.isArray(_data["workOrderIds"])) {
41140
41158
  this.workOrderIds = [] as any;
41141
41159
  for (let item of _data["workOrderIds"])
@@ -41171,16 +41189,6 @@ export class ListProductionScheduleOperationsRequest implements IListProductionS
41171
41189
  for (let item of _data["descriptions"])
41172
41190
  this.descriptions!.push(item);
41173
41191
  }
41174
- if (Array.isArray(_data["bomPartNumbers"])) {
41175
- this.bomPartNumbers = [] as any;
41176
- for (let item of _data["bomPartNumbers"])
41177
- this.bomPartNumbers!.push(item);
41178
- }
41179
- if (Array.isArray(_data["bomPartNames"])) {
41180
- this.bomPartNames = [] as any;
41181
- for (let item of _data["bomPartNames"])
41182
- this.bomPartNames!.push(item);
41183
- }
41184
41192
  this.availableWork = _data["availableWork"];
41185
41193
  if (Array.isArray(_data["operationStatuses"])) {
41186
41194
  this.operationStatuses = [] as any;
@@ -41210,8 +41218,6 @@ export class ListProductionScheduleOperationsRequest implements IListProductionS
41210
41218
  data["partNumber"] = this.partNumber;
41211
41219
  data["partName"] = this.partName;
41212
41220
  data["material"] = this.material;
41213
- data["bomPartNumber"] = this.bomPartNumber;
41214
- data["bomPartName"] = this.bomPartName;
41215
41221
  if (Array.isArray(this.workOrderIds)) {
41216
41222
  data["workOrderIds"] = [];
41217
41223
  for (let item of this.workOrderIds)
@@ -41247,16 +41253,6 @@ export class ListProductionScheduleOperationsRequest implements IListProductionS
41247
41253
  for (let item of this.descriptions)
41248
41254
  data["descriptions"].push(item);
41249
41255
  }
41250
- if (Array.isArray(this.bomPartNumbers)) {
41251
- data["bomPartNumbers"] = [];
41252
- for (let item of this.bomPartNumbers)
41253
- data["bomPartNumbers"].push(item);
41254
- }
41255
- if (Array.isArray(this.bomPartNames)) {
41256
- data["bomPartNames"] = [];
41257
- for (let item of this.bomPartNames)
41258
- data["bomPartNames"].push(item);
41259
- }
41260
41256
  data["availableWork"] = this.availableWork;
41261
41257
  if (Array.isArray(this.operationStatuses)) {
41262
41258
  data["operationStatuses"] = [];
@@ -41279,8 +41275,6 @@ export interface IListProductionScheduleOperationsRequest {
41279
41275
  partNumber?: string | null;
41280
41276
  partName?: string | null;
41281
41277
  material?: string | null;
41282
- bomPartNumber?: string | null;
41283
- bomPartName?: string | null;
41284
41278
  workOrderIds?: string[] | null;
41285
41279
  partNumbers?: string[] | null;
41286
41280
  partNames?: string[] | null;
@@ -41288,8 +41282,6 @@ export interface IListProductionScheduleOperationsRequest {
41288
41282
  bomPositions?: string[] | null;
41289
41283
  materials?: string[] | null;
41290
41284
  descriptions?: string[] | null;
41291
- bomPartNumbers?: string[] | null;
41292
- bomPartNames?: string[] | null;
41293
41285
  availableWork?: boolean | null;
41294
41286
  operationStatuses?: OperationStatusDto[] | null;
41295
41287
  after?: Date | null;
@@ -41304,8 +41296,6 @@ export class ProductionScheduleFiltersDto implements IProductionScheduleFiltersD
41304
41296
  workOrderIds?: FilterValueWithQuantity[];
41305
41297
  materials?: FilterValueWithQuantity[];
41306
41298
  descriptions?: FilterValueWithQuantity[];
41307
- bomPartNumbers?: FilterValueWithQuantity[];
41308
- bomPartNames?: FilterValueWithQuantity[];
41309
41299
  operationsWithAvailableWork?: number;
41310
41300
  operationStatuses?: OperationStatusFilterWithQuantity[];
41311
41301
  lastOperation?: Date | null;
@@ -41357,16 +41347,6 @@ export class ProductionScheduleFiltersDto implements IProductionScheduleFiltersD
41357
41347
  for (let item of _data["descriptions"])
41358
41348
  this.descriptions!.push(FilterValueWithQuantity.fromJS(item));
41359
41349
  }
41360
- if (Array.isArray(_data["bomPartNumbers"])) {
41361
- this.bomPartNumbers = [] as any;
41362
- for (let item of _data["bomPartNumbers"])
41363
- this.bomPartNumbers!.push(FilterValueWithQuantity.fromJS(item));
41364
- }
41365
- if (Array.isArray(_data["bomPartNames"])) {
41366
- this.bomPartNames = [] as any;
41367
- for (let item of _data["bomPartNames"])
41368
- this.bomPartNames!.push(FilterValueWithQuantity.fromJS(item));
41369
- }
41370
41350
  this.operationsWithAvailableWork = _data["operationsWithAvailableWork"];
41371
41351
  if (Array.isArray(_data["operationStatuses"])) {
41372
41352
  this.operationStatuses = [] as any;
@@ -41422,16 +41402,6 @@ export class ProductionScheduleFiltersDto implements IProductionScheduleFiltersD
41422
41402
  for (let item of this.descriptions)
41423
41403
  data["descriptions"].push(item.toJSON());
41424
41404
  }
41425
- if (Array.isArray(this.bomPartNumbers)) {
41426
- data["bomPartNumbers"] = [];
41427
- for (let item of this.bomPartNumbers)
41428
- data["bomPartNumbers"].push(item.toJSON());
41429
- }
41430
- if (Array.isArray(this.bomPartNames)) {
41431
- data["bomPartNames"] = [];
41432
- for (let item of this.bomPartNames)
41433
- data["bomPartNames"].push(item.toJSON());
41434
- }
41435
41405
  data["operationsWithAvailableWork"] = this.operationsWithAvailableWork;
41436
41406
  if (Array.isArray(this.operationStatuses)) {
41437
41407
  data["operationStatuses"] = [];
@@ -41452,8 +41422,6 @@ export interface IProductionScheduleFiltersDto {
41452
41422
  workOrderIds?: FilterValueWithQuantity[];
41453
41423
  materials?: FilterValueWithQuantity[];
41454
41424
  descriptions?: FilterValueWithQuantity[];
41455
- bomPartNumbers?: FilterValueWithQuantity[];
41456
- bomPartNames?: FilterValueWithQuantity[];
41457
41425
  operationsWithAvailableWork?: number;
41458
41426
  operationStatuses?: OperationStatusFilterWithQuantity[];
41459
41427
  lastOperation?: Date | null;
@@ -41548,8 +41516,6 @@ export class GetAvailableProductionScheduleFiltersRequest implements IGetAvailab
41548
41516
  partNumber?: string | null;
41549
41517
  partName?: string | null;
41550
41518
  material?: string | null;
41551
- bomPartNumber?: string | null;
41552
- bomPartName?: string | null;
41553
41519
  workOrderIds?: string[] | null;
41554
41520
  partNumbers?: string[] | null;
41555
41521
  partNames?: string[] | null;
@@ -41557,8 +41523,6 @@ export class GetAvailableProductionScheduleFiltersRequest implements IGetAvailab
41557
41523
  bomPositions?: string[] | null;
41558
41524
  materials?: string[] | null;
41559
41525
  descriptions?: string[] | null;
41560
- bomPartNumbers?: string[] | null;
41561
- bomPartNames?: string[] | null;
41562
41526
  availableWork?: boolean | null;
41563
41527
  operationStatuses?: OperationStatusDto[] | null;
41564
41528
  after?: Date | null;
@@ -41582,8 +41546,6 @@ export class GetAvailableProductionScheduleFiltersRequest implements IGetAvailab
41582
41546
  this.partNumber = _data["partNumber"];
41583
41547
  this.partName = _data["partName"];
41584
41548
  this.material = _data["material"];
41585
- this.bomPartNumber = _data["bomPartNumber"];
41586
- this.bomPartName = _data["bomPartName"];
41587
41549
  if (Array.isArray(_data["workOrderIds"])) {
41588
41550
  this.workOrderIds = [] as any;
41589
41551
  for (let item of _data["workOrderIds"])
@@ -41619,16 +41581,6 @@ export class GetAvailableProductionScheduleFiltersRequest implements IGetAvailab
41619
41581
  for (let item of _data["descriptions"])
41620
41582
  this.descriptions!.push(item);
41621
41583
  }
41622
- if (Array.isArray(_data["bomPartNumbers"])) {
41623
- this.bomPartNumbers = [] as any;
41624
- for (let item of _data["bomPartNumbers"])
41625
- this.bomPartNumbers!.push(item);
41626
- }
41627
- if (Array.isArray(_data["bomPartNames"])) {
41628
- this.bomPartNames = [] as any;
41629
- for (let item of _data["bomPartNames"])
41630
- this.bomPartNames!.push(item);
41631
- }
41632
41584
  this.availableWork = _data["availableWork"];
41633
41585
  if (Array.isArray(_data["operationStatuses"])) {
41634
41586
  this.operationStatuses = [] as any;
@@ -41656,8 +41608,6 @@ export class GetAvailableProductionScheduleFiltersRequest implements IGetAvailab
41656
41608
  data["partNumber"] = this.partNumber;
41657
41609
  data["partName"] = this.partName;
41658
41610
  data["material"] = this.material;
41659
- data["bomPartNumber"] = this.bomPartNumber;
41660
- data["bomPartName"] = this.bomPartName;
41661
41611
  if (Array.isArray(this.workOrderIds)) {
41662
41612
  data["workOrderIds"] = [];
41663
41613
  for (let item of this.workOrderIds)
@@ -41693,16 +41643,6 @@ export class GetAvailableProductionScheduleFiltersRequest implements IGetAvailab
41693
41643
  for (let item of this.descriptions)
41694
41644
  data["descriptions"].push(item);
41695
41645
  }
41696
- if (Array.isArray(this.bomPartNumbers)) {
41697
- data["bomPartNumbers"] = [];
41698
- for (let item of this.bomPartNumbers)
41699
- data["bomPartNumbers"].push(item);
41700
- }
41701
- if (Array.isArray(this.bomPartNames)) {
41702
- data["bomPartNames"] = [];
41703
- for (let item of this.bomPartNames)
41704
- data["bomPartNames"].push(item);
41705
- }
41706
41646
  data["availableWork"] = this.availableWork;
41707
41647
  if (Array.isArray(this.operationStatuses)) {
41708
41648
  data["operationStatuses"] = [];
@@ -41723,8 +41663,6 @@ export interface IGetAvailableProductionScheduleFiltersRequest {
41723
41663
  partNumber?: string | null;
41724
41664
  partName?: string | null;
41725
41665
  material?: string | null;
41726
- bomPartNumber?: string | null;
41727
- bomPartName?: string | null;
41728
41666
  workOrderIds?: string[] | null;
41729
41667
  partNumbers?: string[] | null;
41730
41668
  partNames?: string[] | null;
@@ -41732,8 +41670,6 @@ export interface IGetAvailableProductionScheduleFiltersRequest {
41732
41670
  bomPositions?: string[] | null;
41733
41671
  materials?: string[] | null;
41734
41672
  descriptions?: string[] | null;
41735
- bomPartNumbers?: string[] | null;
41736
- bomPartNames?: string[] | null;
41737
41673
  availableWork?: boolean | null;
41738
41674
  operationStatuses?: OperationStatusDto[] | null;
41739
41675
  after?: Date | null;