@ignos/api-client 20240906.0.10275 → 20240909.0.10286-alpha

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.
@@ -1444,6 +1444,10 @@ export interface IMoveBookingClient {
1444
1444
  getBooking(bookingId: string): Promise<BookingDto>;
1445
1445
  getParcelBooking(parcelId: string): Promise<BookingDto[]>;
1446
1446
  updateBooking(bookingRequest: BookingUpdateDto): Promise<BookingDto>;
1447
+ /**
1448
+ * @deprecated
1449
+ */
1450
+ createBookingTransportOld(bookingRequest: BookingTransportRequestOldDto): Promise<BookingDto[]>;
1447
1451
  createBookingTransport(bookingRequest: BookingTransportRequestDto): Promise<BookingDto[]>;
1448
1452
  createBookingGeneral(bookingRequest: BookingGeneralRequestDto): Promise<BookingDto[]>;
1449
1453
  updateBookingStatus(bookingUpdate: BookingStatusUpdateDto): Promise<BookingDto>;
@@ -1463,6 +1467,11 @@ export declare class MoveBookingClient extends AuthorizedApiBase implements IMov
1463
1467
  protected processGetParcelBooking(response: Response): Promise<BookingDto[]>;
1464
1468
  updateBooking(bookingRequest: BookingUpdateDto): Promise<BookingDto>;
1465
1469
  protected processUpdateBooking(response: Response): Promise<BookingDto>;
1470
+ /**
1471
+ * @deprecated
1472
+ */
1473
+ createBookingTransportOld(bookingRequest: BookingTransportRequestOldDto): Promise<BookingDto[]>;
1474
+ protected processCreateBookingTransportOld(response: Response): Promise<BookingDto[]>;
1466
1475
  createBookingTransport(bookingRequest: BookingTransportRequestDto): Promise<BookingDto[]>;
1467
1476
  protected processCreateBookingTransport(response: Response): Promise<BookingDto[]>;
1468
1477
  createBookingGeneral(bookingRequest: BookingGeneralRequestDto): Promise<BookingDto[]>;
@@ -8104,17 +8113,17 @@ export interface IBookingUpdateDto {
8104
8113
  fromLocationId: string;
8105
8114
  toLocationId: string;
8106
8115
  }
8107
- export declare class BookingTransportRequestDto implements IBookingTransportRequestDto {
8116
+ export declare class BookingTransportRequestOldDto implements IBookingTransportRequestOldDto {
8108
8117
  transportKind: TransportKindDto;
8109
8118
  items: BookingItemRequestDto[];
8110
8119
  fromLocationId: string;
8111
8120
  toLocationId: string;
8112
- constructor(data?: IBookingTransportRequestDto);
8121
+ constructor(data?: IBookingTransportRequestOldDto);
8113
8122
  init(_data?: any): void;
8114
- static fromJS(data: any): BookingTransportRequestDto;
8123
+ static fromJS(data: any): BookingTransportRequestOldDto;
8115
8124
  toJSON(data?: any): any;
8116
8125
  }
8117
- export interface IBookingTransportRequestDto {
8126
+ export interface IBookingTransportRequestOldDto {
8118
8127
  transportKind: TransportKindDto;
8119
8128
  items: BookingItemRequestDto[];
8120
8129
  fromLocationId: string;
@@ -8123,6 +8132,8 @@ export interface IBookingTransportRequestDto {
8123
8132
  export declare class BookingItemRequestDto implements IBookingItemRequestDto {
8124
8133
  parcelId: string;
8125
8134
  trackingId: string;
8135
+ fromLocationId: string;
8136
+ toLocationId: string;
8126
8137
  comment?: string | null;
8127
8138
  constructor(data?: IBookingItemRequestDto);
8128
8139
  init(_data?: any): void;
@@ -8132,8 +8143,22 @@ export declare class BookingItemRequestDto implements IBookingItemRequestDto {
8132
8143
  export interface IBookingItemRequestDto {
8133
8144
  parcelId: string;
8134
8145
  trackingId: string;
8146
+ fromLocationId: string;
8147
+ toLocationId: string;
8135
8148
  comment?: string | null;
8136
8149
  }
8150
+ export declare class BookingTransportRequestDto implements IBookingTransportRequestDto {
8151
+ transportKind: TransportKindDto;
8152
+ items: BookingItemRequestDto[];
8153
+ constructor(data?: IBookingTransportRequestDto);
8154
+ init(_data?: any): void;
8155
+ static fromJS(data: any): BookingTransportRequestDto;
8156
+ toJSON(data?: any): any;
8157
+ }
8158
+ export interface IBookingTransportRequestDto {
8159
+ transportKind: TransportKindDto;
8160
+ items: BookingItemRequestDto[];
8161
+ }
8137
8162
  export declare class BookingGeneralRequestDto implements IBookingGeneralRequestDto {
8138
8163
  parcelKind: ParcelKindDto;
8139
8164
  transportKind: TransportKindDto;
@@ -9237,6 +9262,7 @@ export declare class ListProductionScheduleOperationsRequest implements IListPro
9237
9262
  material?: string | null;
9238
9263
  bomPartNumber?: string | null;
9239
9264
  bomPartName?: string | null;
9265
+ bomPartSearchText?: string | null;
9240
9266
  workOrderIds?: string[] | null;
9241
9267
  partNumbers?: string[] | null;
9242
9268
  partNames?: string[] | null;
@@ -9246,6 +9272,7 @@ export declare class ListProductionScheduleOperationsRequest implements IListPro
9246
9272
  descriptions?: string[] | null;
9247
9273
  bomPartNumbers?: string[] | null;
9248
9274
  bomPartNames?: string[] | null;
9275
+ bomPartSearchTexts?: string[] | null;
9249
9276
  availableWork?: boolean | null;
9250
9277
  operationStatuses?: OperationStatusDto[] | null;
9251
9278
  after?: Date | null;
@@ -9267,6 +9294,7 @@ export interface IListProductionScheduleOperationsRequest {
9267
9294
  material?: string | null;
9268
9295
  bomPartNumber?: string | null;
9269
9296
  bomPartName?: string | null;
9297
+ bomPartSearchText?: string | null;
9270
9298
  workOrderIds?: string[] | null;
9271
9299
  partNumbers?: string[] | null;
9272
9300
  partNames?: string[] | null;
@@ -9276,6 +9304,7 @@ export interface IListProductionScheduleOperationsRequest {
9276
9304
  descriptions?: string[] | null;
9277
9305
  bomPartNumbers?: string[] | null;
9278
9306
  bomPartNames?: string[] | null;
9307
+ bomPartSearchTexts?: string[] | null;
9279
9308
  availableWork?: boolean | null;
9280
9309
  operationStatuses?: OperationStatusDto[] | null;
9281
9310
  after?: Date | null;
@@ -9291,6 +9320,7 @@ export declare class ProductionScheduleFiltersDto implements IProductionSchedule
9291
9320
  descriptions?: FilterValueWithQuantity[];
9292
9321
  bomPartNumbers?: FilterValueWithQuantity[];
9293
9322
  bomPartNames?: FilterValueWithQuantity[];
9323
+ bomPartSearchTexts?: FilterValueWithQuantity[];
9294
9324
  operationsWithAvailableWork?: number;
9295
9325
  operationStatuses?: OperationStatusFilterWithQuantity[];
9296
9326
  lastOperation?: Date | null;
@@ -9310,6 +9340,7 @@ export interface IProductionScheduleFiltersDto {
9310
9340
  descriptions?: FilterValueWithQuantity[];
9311
9341
  bomPartNumbers?: FilterValueWithQuantity[];
9312
9342
  bomPartNames?: FilterValueWithQuantity[];
9343
+ bomPartSearchTexts?: FilterValueWithQuantity[];
9313
9344
  operationsWithAvailableWork?: number;
9314
9345
  operationStatuses?: OperationStatusFilterWithQuantity[];
9315
9346
  lastOperation?: Date | null;
@@ -9349,6 +9380,7 @@ export declare class GetAvailableProductionScheduleFiltersRequest implements IGe
9349
9380
  material?: string | null;
9350
9381
  bomPartNumber?: string | null;
9351
9382
  bomPartName?: string | null;
9383
+ bomPartSearchText?: string | null;
9352
9384
  workOrderIds?: string[] | null;
9353
9385
  partNumbers?: string[] | null;
9354
9386
  partNames?: string[] | null;
@@ -9358,6 +9390,7 @@ export declare class GetAvailableProductionScheduleFiltersRequest implements IGe
9358
9390
  descriptions?: string[] | null;
9359
9391
  bomPartNumbers?: string[] | null;
9360
9392
  bomPartNames?: string[] | null;
9393
+ bomPartSearchTexts?: string[] | null;
9361
9394
  availableWork?: boolean | null;
9362
9395
  operationStatuses?: OperationStatusDto[] | null;
9363
9396
  after?: Date | null;
@@ -9377,6 +9410,7 @@ export interface IGetAvailableProductionScheduleFiltersRequest {
9377
9410
  material?: string | null;
9378
9411
  bomPartNumber?: string | null;
9379
9412
  bomPartName?: string | null;
9413
+ bomPartSearchText?: string | null;
9380
9414
  workOrderIds?: string[] | null;
9381
9415
  partNumbers?: string[] | null;
9382
9416
  partNames?: string[] | null;
@@ -9386,6 +9420,7 @@ export interface IGetAvailableProductionScheduleFiltersRequest {
9386
9420
  descriptions?: string[] | null;
9387
9421
  bomPartNumbers?: string[] | null;
9388
9422
  bomPartNames?: string[] | null;
9423
+ bomPartSearchTexts?: string[] | null;
9389
9424
  availableWork?: boolean | null;
9390
9425
  operationStatuses?: OperationStatusDto[] | null;
9391
9426
  after?: Date | null;
@@ -12001,7 +12001,10 @@ export class MoveBookingClient extends AuthorizedApiBase {
12001
12001
  }
12002
12002
  return Promise.resolve(null);
12003
12003
  }
12004
- createBookingTransport(bookingRequest) {
12004
+ /**
12005
+ * @deprecated
12006
+ */
12007
+ createBookingTransportOld(bookingRequest) {
12005
12008
  let url_ = this.baseUrl + "/move/booking/transport";
12006
12009
  url_ = url_.replace(/[?&]$/, "");
12007
12010
  const content_ = JSON.stringify(bookingRequest);
@@ -12013,6 +12016,50 @@ export class MoveBookingClient extends AuthorizedApiBase {
12013
12016
  "Accept": "application/json"
12014
12017
  }
12015
12018
  };
12019
+ return this.transformOptions(options_).then(transformedOptions_ => {
12020
+ return this.http.fetch(url_, transformedOptions_);
12021
+ }).then((_response) => {
12022
+ return this.processCreateBookingTransportOld(_response);
12023
+ });
12024
+ }
12025
+ processCreateBookingTransportOld(response) {
12026
+ const status = response.status;
12027
+ let _headers = {};
12028
+ if (response.headers && response.headers.forEach) {
12029
+ response.headers.forEach((v, k) => _headers[k] = v);
12030
+ }
12031
+ ;
12032
+ if (status === 200) {
12033
+ return response.text().then((_responseText) => {
12034
+ let result200 = null;
12035
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
12036
+ if (Array.isArray(resultData200)) {
12037
+ result200 = [];
12038
+ for (let item of resultData200)
12039
+ result200.push(BookingDto.fromJS(item));
12040
+ }
12041
+ return result200;
12042
+ });
12043
+ }
12044
+ else if (status !== 200 && status !== 204) {
12045
+ return response.text().then((_responseText) => {
12046
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
12047
+ });
12048
+ }
12049
+ return Promise.resolve(null);
12050
+ }
12051
+ createBookingTransport(bookingRequest) {
12052
+ let url_ = this.baseUrl + "/move/booking/transport2";
12053
+ url_ = url_.replace(/[?&]$/, "");
12054
+ const content_ = JSON.stringify(bookingRequest);
12055
+ let options_ = {
12056
+ body: content_,
12057
+ method: "POST",
12058
+ headers: {
12059
+ "Content-Type": "application/json",
12060
+ "Accept": "application/json"
12061
+ }
12062
+ };
12016
12063
  return this.transformOptions(options_).then(transformedOptions_ => {
12017
12064
  return this.http.fetch(url_, transformedOptions_);
12018
12065
  }).then((_response) => {
@@ -31166,7 +31213,7 @@ export class BookingUpdateDto {
31166
31213
  return data;
31167
31214
  }
31168
31215
  }
31169
- export class BookingTransportRequestDto {
31216
+ export class BookingTransportRequestOldDto {
31170
31217
  constructor(data) {
31171
31218
  if (data) {
31172
31219
  for (var property in data) {
@@ -31192,7 +31239,7 @@ export class BookingTransportRequestDto {
31192
31239
  }
31193
31240
  static fromJS(data) {
31194
31241
  data = typeof data === 'object' ? data : {};
31195
- let result = new BookingTransportRequestDto();
31242
+ let result = new BookingTransportRequestOldDto();
31196
31243
  result.init(data);
31197
31244
  return result;
31198
31245
  }
@@ -31222,6 +31269,8 @@ export class BookingItemRequestDto {
31222
31269
  if (_data) {
31223
31270
  this.parcelId = _data["parcelId"];
31224
31271
  this.trackingId = _data["trackingId"];
31272
+ this.fromLocationId = _data["fromLocationId"];
31273
+ this.toLocationId = _data["toLocationId"];
31225
31274
  this.comment = _data["comment"];
31226
31275
  }
31227
31276
  }
@@ -31235,10 +31284,51 @@ export class BookingItemRequestDto {
31235
31284
  data = typeof data === 'object' ? data : {};
31236
31285
  data["parcelId"] = this.parcelId;
31237
31286
  data["trackingId"] = this.trackingId;
31287
+ data["fromLocationId"] = this.fromLocationId;
31288
+ data["toLocationId"] = this.toLocationId;
31238
31289
  data["comment"] = this.comment;
31239
31290
  return data;
31240
31291
  }
31241
31292
  }
31293
+ export class BookingTransportRequestDto {
31294
+ constructor(data) {
31295
+ if (data) {
31296
+ for (var property in data) {
31297
+ if (data.hasOwnProperty(property))
31298
+ this[property] = data[property];
31299
+ }
31300
+ }
31301
+ if (!data) {
31302
+ this.items = [];
31303
+ }
31304
+ }
31305
+ init(_data) {
31306
+ if (_data) {
31307
+ this.transportKind = _data["transportKind"];
31308
+ if (Array.isArray(_data["items"])) {
31309
+ this.items = [];
31310
+ for (let item of _data["items"])
31311
+ this.items.push(BookingItemRequestDto.fromJS(item));
31312
+ }
31313
+ }
31314
+ }
31315
+ static fromJS(data) {
31316
+ data = typeof data === 'object' ? data : {};
31317
+ let result = new BookingTransportRequestDto();
31318
+ result.init(data);
31319
+ return result;
31320
+ }
31321
+ toJSON(data) {
31322
+ data = typeof data === 'object' ? data : {};
31323
+ data["transportKind"] = this.transportKind;
31324
+ if (Array.isArray(this.items)) {
31325
+ data["items"] = [];
31326
+ for (let item of this.items)
31327
+ data["items"].push(item.toJSON());
31328
+ }
31329
+ return data;
31330
+ }
31331
+ }
31242
31332
  export class BookingGeneralRequestDto {
31243
31333
  constructor(data) {
31244
31334
  if (data) {
@@ -33401,6 +33491,7 @@ export class ListProductionScheduleOperationsRequest {
33401
33491
  this.material = _data["material"];
33402
33492
  this.bomPartNumber = _data["bomPartNumber"];
33403
33493
  this.bomPartName = _data["bomPartName"];
33494
+ this.bomPartSearchText = _data["bomPartSearchText"];
33404
33495
  if (Array.isArray(_data["workOrderIds"])) {
33405
33496
  this.workOrderIds = [];
33406
33497
  for (let item of _data["workOrderIds"])
@@ -33446,6 +33537,11 @@ export class ListProductionScheduleOperationsRequest {
33446
33537
  for (let item of _data["bomPartNames"])
33447
33538
  this.bomPartNames.push(item);
33448
33539
  }
33540
+ if (Array.isArray(_data["bomPartSearchTexts"])) {
33541
+ this.bomPartSearchTexts = [];
33542
+ for (let item of _data["bomPartSearchTexts"])
33543
+ this.bomPartSearchTexts.push(item);
33544
+ }
33449
33545
  this.availableWork = _data["availableWork"];
33450
33546
  if (Array.isArray(_data["operationStatuses"])) {
33451
33547
  this.operationStatuses = [];
@@ -33475,6 +33571,7 @@ export class ListProductionScheduleOperationsRequest {
33475
33571
  data["material"] = this.material;
33476
33572
  data["bomPartNumber"] = this.bomPartNumber;
33477
33573
  data["bomPartName"] = this.bomPartName;
33574
+ data["bomPartSearchText"] = this.bomPartSearchText;
33478
33575
  if (Array.isArray(this.workOrderIds)) {
33479
33576
  data["workOrderIds"] = [];
33480
33577
  for (let item of this.workOrderIds)
@@ -33520,6 +33617,11 @@ export class ListProductionScheduleOperationsRequest {
33520
33617
  for (let item of this.bomPartNames)
33521
33618
  data["bomPartNames"].push(item);
33522
33619
  }
33620
+ if (Array.isArray(this.bomPartSearchTexts)) {
33621
+ data["bomPartSearchTexts"] = [];
33622
+ for (let item of this.bomPartSearchTexts)
33623
+ data["bomPartSearchTexts"].push(item);
33624
+ }
33523
33625
  data["availableWork"] = this.availableWork;
33524
33626
  if (Array.isArray(this.operationStatuses)) {
33525
33627
  data["operationStatuses"] = [];
@@ -33587,6 +33689,11 @@ export class ProductionScheduleFiltersDto {
33587
33689
  for (let item of _data["bomPartNames"])
33588
33690
  this.bomPartNames.push(FilterValueWithQuantity.fromJS(item));
33589
33691
  }
33692
+ if (Array.isArray(_data["bomPartSearchTexts"])) {
33693
+ this.bomPartSearchTexts = [];
33694
+ for (let item of _data["bomPartSearchTexts"])
33695
+ this.bomPartSearchTexts.push(FilterValueWithQuantity.fromJS(item));
33696
+ }
33590
33697
  this.operationsWithAvailableWork = _data["operationsWithAvailableWork"];
33591
33698
  if (Array.isArray(_data["operationStatuses"])) {
33592
33699
  this.operationStatuses = [];
@@ -33650,6 +33757,11 @@ export class ProductionScheduleFiltersDto {
33650
33757
  for (let item of this.bomPartNames)
33651
33758
  data["bomPartNames"].push(item.toJSON());
33652
33759
  }
33760
+ if (Array.isArray(this.bomPartSearchTexts)) {
33761
+ data["bomPartSearchTexts"] = [];
33762
+ for (let item of this.bomPartSearchTexts)
33763
+ data["bomPartSearchTexts"].push(item.toJSON());
33764
+ }
33653
33765
  data["operationsWithAvailableWork"] = this.operationsWithAvailableWork;
33654
33766
  if (Array.isArray(this.operationStatuses)) {
33655
33767
  data["operationStatuses"] = [];
@@ -33737,6 +33849,7 @@ export class GetAvailableProductionScheduleFiltersRequest {
33737
33849
  this.material = _data["material"];
33738
33850
  this.bomPartNumber = _data["bomPartNumber"];
33739
33851
  this.bomPartName = _data["bomPartName"];
33852
+ this.bomPartSearchText = _data["bomPartSearchText"];
33740
33853
  if (Array.isArray(_data["workOrderIds"])) {
33741
33854
  this.workOrderIds = [];
33742
33855
  for (let item of _data["workOrderIds"])
@@ -33782,6 +33895,11 @@ export class GetAvailableProductionScheduleFiltersRequest {
33782
33895
  for (let item of _data["bomPartNames"])
33783
33896
  this.bomPartNames.push(item);
33784
33897
  }
33898
+ if (Array.isArray(_data["bomPartSearchTexts"])) {
33899
+ this.bomPartSearchTexts = [];
33900
+ for (let item of _data["bomPartSearchTexts"])
33901
+ this.bomPartSearchTexts.push(item);
33902
+ }
33785
33903
  this.availableWork = _data["availableWork"];
33786
33904
  if (Array.isArray(_data["operationStatuses"])) {
33787
33905
  this.operationStatuses = [];
@@ -33809,6 +33927,7 @@ export class GetAvailableProductionScheduleFiltersRequest {
33809
33927
  data["material"] = this.material;
33810
33928
  data["bomPartNumber"] = this.bomPartNumber;
33811
33929
  data["bomPartName"] = this.bomPartName;
33930
+ data["bomPartSearchText"] = this.bomPartSearchText;
33812
33931
  if (Array.isArray(this.workOrderIds)) {
33813
33932
  data["workOrderIds"] = [];
33814
33933
  for (let item of this.workOrderIds)
@@ -33854,6 +33973,11 @@ export class GetAvailableProductionScheduleFiltersRequest {
33854
33973
  for (let item of this.bomPartNames)
33855
33974
  data["bomPartNames"].push(item);
33856
33975
  }
33976
+ if (Array.isArray(this.bomPartSearchTexts)) {
33977
+ data["bomPartSearchTexts"] = [];
33978
+ for (let item of this.bomPartSearchTexts)
33979
+ data["bomPartSearchTexts"].push(item);
33980
+ }
33857
33981
  data["availableWork"] = this.availableWork;
33858
33982
  if (Array.isArray(this.operationStatuses)) {
33859
33983
  data["operationStatuses"] = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20240906.0.10275",
3
+ "version": "20240909.0.10286-alpha",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -12646,6 +12646,11 @@ export interface IMoveBookingClient {
12646
12646
 
12647
12647
  updateBooking(bookingRequest: BookingUpdateDto): Promise<BookingDto>;
12648
12648
 
12649
+ /**
12650
+ * @deprecated
12651
+ */
12652
+ createBookingTransportOld(bookingRequest: BookingTransportRequestOldDto): Promise<BookingDto[]>;
12653
+
12649
12654
  createBookingTransport(bookingRequest: BookingTransportRequestDto): Promise<BookingDto[]>;
12650
12655
 
12651
12656
  createBookingGeneral(bookingRequest: BookingGeneralRequestDto): Promise<BookingDto[]>;
@@ -12826,7 +12831,10 @@ export class MoveBookingClient extends AuthorizedApiBase implements IMoveBooking
12826
12831
  return Promise.resolve<BookingDto>(null as any);
12827
12832
  }
12828
12833
 
12829
- createBookingTransport(bookingRequest: BookingTransportRequestDto): Promise<BookingDto[]> {
12834
+ /**
12835
+ * @deprecated
12836
+ */
12837
+ createBookingTransportOld(bookingRequest: BookingTransportRequestOldDto): Promise<BookingDto[]> {
12830
12838
  let url_ = this.baseUrl + "/move/booking/transport";
12831
12839
  url_ = url_.replace(/[?&]$/, "");
12832
12840
 
@@ -12841,6 +12849,50 @@ export class MoveBookingClient extends AuthorizedApiBase implements IMoveBooking
12841
12849
  }
12842
12850
  };
12843
12851
 
12852
+ return this.transformOptions(options_).then(transformedOptions_ => {
12853
+ return this.http.fetch(url_, transformedOptions_);
12854
+ }).then((_response: Response) => {
12855
+ return this.processCreateBookingTransportOld(_response);
12856
+ });
12857
+ }
12858
+
12859
+ protected processCreateBookingTransportOld(response: Response): Promise<BookingDto[]> {
12860
+ const status = response.status;
12861
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
12862
+ if (status === 200) {
12863
+ return response.text().then((_responseText) => {
12864
+ let result200: any = null;
12865
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
12866
+ if (Array.isArray(resultData200)) {
12867
+ result200 = [] as any;
12868
+ for (let item of resultData200)
12869
+ result200!.push(BookingDto.fromJS(item));
12870
+ }
12871
+ return result200;
12872
+ });
12873
+ } else if (status !== 200 && status !== 204) {
12874
+ return response.text().then((_responseText) => {
12875
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
12876
+ });
12877
+ }
12878
+ return Promise.resolve<BookingDto[]>(null as any);
12879
+ }
12880
+
12881
+ createBookingTransport(bookingRequest: BookingTransportRequestDto): Promise<BookingDto[]> {
12882
+ let url_ = this.baseUrl + "/move/booking/transport2";
12883
+ url_ = url_.replace(/[?&]$/, "");
12884
+
12885
+ const content_ = JSON.stringify(bookingRequest);
12886
+
12887
+ let options_: RequestInit = {
12888
+ body: content_,
12889
+ method: "POST",
12890
+ headers: {
12891
+ "Content-Type": "application/json",
12892
+ "Accept": "application/json"
12893
+ }
12894
+ };
12895
+
12844
12896
  return this.transformOptions(options_).then(transformedOptions_ => {
12845
12897
  return this.http.fetch(url_, transformedOptions_);
12846
12898
  }).then((_response: Response) => {
@@ -38257,13 +38309,13 @@ export interface IBookingUpdateDto {
38257
38309
  toLocationId: string;
38258
38310
  }
38259
38311
 
38260
- export class BookingTransportRequestDto implements IBookingTransportRequestDto {
38312
+ export class BookingTransportRequestOldDto implements IBookingTransportRequestOldDto {
38261
38313
  transportKind!: TransportKindDto;
38262
38314
  items!: BookingItemRequestDto[];
38263
38315
  fromLocationId!: string;
38264
38316
  toLocationId!: string;
38265
38317
 
38266
- constructor(data?: IBookingTransportRequestDto) {
38318
+ constructor(data?: IBookingTransportRequestOldDto) {
38267
38319
  if (data) {
38268
38320
  for (var property in data) {
38269
38321
  if (data.hasOwnProperty(property))
@@ -38288,9 +38340,9 @@ export class BookingTransportRequestDto implements IBookingTransportRequestDto {
38288
38340
  }
38289
38341
  }
38290
38342
 
38291
- static fromJS(data: any): BookingTransportRequestDto {
38343
+ static fromJS(data: any): BookingTransportRequestOldDto {
38292
38344
  data = typeof data === 'object' ? data : {};
38293
- let result = new BookingTransportRequestDto();
38345
+ let result = new BookingTransportRequestOldDto();
38294
38346
  result.init(data);
38295
38347
  return result;
38296
38348
  }
@@ -38309,7 +38361,7 @@ export class BookingTransportRequestDto implements IBookingTransportRequestDto {
38309
38361
  }
38310
38362
  }
38311
38363
 
38312
- export interface IBookingTransportRequestDto {
38364
+ export interface IBookingTransportRequestOldDto {
38313
38365
  transportKind: TransportKindDto;
38314
38366
  items: BookingItemRequestDto[];
38315
38367
  fromLocationId: string;
@@ -38319,6 +38371,8 @@ export interface IBookingTransportRequestDto {
38319
38371
  export class BookingItemRequestDto implements IBookingItemRequestDto {
38320
38372
  parcelId!: string;
38321
38373
  trackingId!: string;
38374
+ fromLocationId!: string;
38375
+ toLocationId!: string;
38322
38376
  comment?: string | null;
38323
38377
 
38324
38378
  constructor(data?: IBookingItemRequestDto) {
@@ -38334,6 +38388,8 @@ export class BookingItemRequestDto implements IBookingItemRequestDto {
38334
38388
  if (_data) {
38335
38389
  this.parcelId = _data["parcelId"];
38336
38390
  this.trackingId = _data["trackingId"];
38391
+ this.fromLocationId = _data["fromLocationId"];
38392
+ this.toLocationId = _data["toLocationId"];
38337
38393
  this.comment = _data["comment"];
38338
38394
  }
38339
38395
  }
@@ -38349,6 +38405,8 @@ export class BookingItemRequestDto implements IBookingItemRequestDto {
38349
38405
  data = typeof data === 'object' ? data : {};
38350
38406
  data["parcelId"] = this.parcelId;
38351
38407
  data["trackingId"] = this.trackingId;
38408
+ data["fromLocationId"] = this.fromLocationId;
38409
+ data["toLocationId"] = this.toLocationId;
38352
38410
  data["comment"] = this.comment;
38353
38411
  return data;
38354
38412
  }
@@ -38357,9 +38415,62 @@ export class BookingItemRequestDto implements IBookingItemRequestDto {
38357
38415
  export interface IBookingItemRequestDto {
38358
38416
  parcelId: string;
38359
38417
  trackingId: string;
38418
+ fromLocationId: string;
38419
+ toLocationId: string;
38360
38420
  comment?: string | null;
38361
38421
  }
38362
38422
 
38423
+ export class BookingTransportRequestDto implements IBookingTransportRequestDto {
38424
+ transportKind!: TransportKindDto;
38425
+ items!: BookingItemRequestDto[];
38426
+
38427
+ constructor(data?: IBookingTransportRequestDto) {
38428
+ if (data) {
38429
+ for (var property in data) {
38430
+ if (data.hasOwnProperty(property))
38431
+ (<any>this)[property] = (<any>data)[property];
38432
+ }
38433
+ }
38434
+ if (!data) {
38435
+ this.items = [];
38436
+ }
38437
+ }
38438
+
38439
+ init(_data?: any) {
38440
+ if (_data) {
38441
+ this.transportKind = _data["transportKind"];
38442
+ if (Array.isArray(_data["items"])) {
38443
+ this.items = [] as any;
38444
+ for (let item of _data["items"])
38445
+ this.items!.push(BookingItemRequestDto.fromJS(item));
38446
+ }
38447
+ }
38448
+ }
38449
+
38450
+ static fromJS(data: any): BookingTransportRequestDto {
38451
+ data = typeof data === 'object' ? data : {};
38452
+ let result = new BookingTransportRequestDto();
38453
+ result.init(data);
38454
+ return result;
38455
+ }
38456
+
38457
+ toJSON(data?: any) {
38458
+ data = typeof data === 'object' ? data : {};
38459
+ data["transportKind"] = this.transportKind;
38460
+ if (Array.isArray(this.items)) {
38461
+ data["items"] = [];
38462
+ for (let item of this.items)
38463
+ data["items"].push(item.toJSON());
38464
+ }
38465
+ return data;
38466
+ }
38467
+ }
38468
+
38469
+ export interface IBookingTransportRequestDto {
38470
+ transportKind: TransportKindDto;
38471
+ items: BookingItemRequestDto[];
38472
+ }
38473
+
38363
38474
  export class BookingGeneralRequestDto implements IBookingGeneralRequestDto {
38364
38475
  parcelKind!: ParcelKindDto;
38365
38476
  transportKind!: TransportKindDto;
@@ -41612,6 +41723,7 @@ export class ListProductionScheduleOperationsRequest implements IListProductionS
41612
41723
  material?: string | null;
41613
41724
  bomPartNumber?: string | null;
41614
41725
  bomPartName?: string | null;
41726
+ bomPartSearchText?: string | null;
41615
41727
  workOrderIds?: string[] | null;
41616
41728
  partNumbers?: string[] | null;
41617
41729
  partNames?: string[] | null;
@@ -41621,6 +41733,7 @@ export class ListProductionScheduleOperationsRequest implements IListProductionS
41621
41733
  descriptions?: string[] | null;
41622
41734
  bomPartNumbers?: string[] | null;
41623
41735
  bomPartNames?: string[] | null;
41736
+ bomPartSearchTexts?: string[] | null;
41624
41737
  availableWork?: boolean | null;
41625
41738
  operationStatuses?: OperationStatusDto[] | null;
41626
41739
  after?: Date | null;
@@ -41648,6 +41761,7 @@ export class ListProductionScheduleOperationsRequest implements IListProductionS
41648
41761
  this.material = _data["material"];
41649
41762
  this.bomPartNumber = _data["bomPartNumber"];
41650
41763
  this.bomPartName = _data["bomPartName"];
41764
+ this.bomPartSearchText = _data["bomPartSearchText"];
41651
41765
  if (Array.isArray(_data["workOrderIds"])) {
41652
41766
  this.workOrderIds = [] as any;
41653
41767
  for (let item of _data["workOrderIds"])
@@ -41693,6 +41807,11 @@ export class ListProductionScheduleOperationsRequest implements IListProductionS
41693
41807
  for (let item of _data["bomPartNames"])
41694
41808
  this.bomPartNames!.push(item);
41695
41809
  }
41810
+ if (Array.isArray(_data["bomPartSearchTexts"])) {
41811
+ this.bomPartSearchTexts = [] as any;
41812
+ for (let item of _data["bomPartSearchTexts"])
41813
+ this.bomPartSearchTexts!.push(item);
41814
+ }
41696
41815
  this.availableWork = _data["availableWork"];
41697
41816
  if (Array.isArray(_data["operationStatuses"])) {
41698
41817
  this.operationStatuses = [] as any;
@@ -41724,6 +41843,7 @@ export class ListProductionScheduleOperationsRequest implements IListProductionS
41724
41843
  data["material"] = this.material;
41725
41844
  data["bomPartNumber"] = this.bomPartNumber;
41726
41845
  data["bomPartName"] = this.bomPartName;
41846
+ data["bomPartSearchText"] = this.bomPartSearchText;
41727
41847
  if (Array.isArray(this.workOrderIds)) {
41728
41848
  data["workOrderIds"] = [];
41729
41849
  for (let item of this.workOrderIds)
@@ -41769,6 +41889,11 @@ export class ListProductionScheduleOperationsRequest implements IListProductionS
41769
41889
  for (let item of this.bomPartNames)
41770
41890
  data["bomPartNames"].push(item);
41771
41891
  }
41892
+ if (Array.isArray(this.bomPartSearchTexts)) {
41893
+ data["bomPartSearchTexts"] = [];
41894
+ for (let item of this.bomPartSearchTexts)
41895
+ data["bomPartSearchTexts"].push(item);
41896
+ }
41772
41897
  data["availableWork"] = this.availableWork;
41773
41898
  if (Array.isArray(this.operationStatuses)) {
41774
41899
  data["operationStatuses"] = [];
@@ -41793,6 +41918,7 @@ export interface IListProductionScheduleOperationsRequest {
41793
41918
  material?: string | null;
41794
41919
  bomPartNumber?: string | null;
41795
41920
  bomPartName?: string | null;
41921
+ bomPartSearchText?: string | null;
41796
41922
  workOrderIds?: string[] | null;
41797
41923
  partNumbers?: string[] | null;
41798
41924
  partNames?: string[] | null;
@@ -41802,6 +41928,7 @@ export interface IListProductionScheduleOperationsRequest {
41802
41928
  descriptions?: string[] | null;
41803
41929
  bomPartNumbers?: string[] | null;
41804
41930
  bomPartNames?: string[] | null;
41931
+ bomPartSearchTexts?: string[] | null;
41805
41932
  availableWork?: boolean | null;
41806
41933
  operationStatuses?: OperationStatusDto[] | null;
41807
41934
  after?: Date | null;
@@ -41818,6 +41945,7 @@ export class ProductionScheduleFiltersDto implements IProductionScheduleFiltersD
41818
41945
  descriptions?: FilterValueWithQuantity[];
41819
41946
  bomPartNumbers?: FilterValueWithQuantity[];
41820
41947
  bomPartNames?: FilterValueWithQuantity[];
41948
+ bomPartSearchTexts?: FilterValueWithQuantity[];
41821
41949
  operationsWithAvailableWork?: number;
41822
41950
  operationStatuses?: OperationStatusFilterWithQuantity[];
41823
41951
  lastOperation?: Date | null;
@@ -41879,6 +42007,11 @@ export class ProductionScheduleFiltersDto implements IProductionScheduleFiltersD
41879
42007
  for (let item of _data["bomPartNames"])
41880
42008
  this.bomPartNames!.push(FilterValueWithQuantity.fromJS(item));
41881
42009
  }
42010
+ if (Array.isArray(_data["bomPartSearchTexts"])) {
42011
+ this.bomPartSearchTexts = [] as any;
42012
+ for (let item of _data["bomPartSearchTexts"])
42013
+ this.bomPartSearchTexts!.push(FilterValueWithQuantity.fromJS(item));
42014
+ }
41882
42015
  this.operationsWithAvailableWork = _data["operationsWithAvailableWork"];
41883
42016
  if (Array.isArray(_data["operationStatuses"])) {
41884
42017
  this.operationStatuses = [] as any;
@@ -41944,6 +42077,11 @@ export class ProductionScheduleFiltersDto implements IProductionScheduleFiltersD
41944
42077
  for (let item of this.bomPartNames)
41945
42078
  data["bomPartNames"].push(item.toJSON());
41946
42079
  }
42080
+ if (Array.isArray(this.bomPartSearchTexts)) {
42081
+ data["bomPartSearchTexts"] = [];
42082
+ for (let item of this.bomPartSearchTexts)
42083
+ data["bomPartSearchTexts"].push(item.toJSON());
42084
+ }
41947
42085
  data["operationsWithAvailableWork"] = this.operationsWithAvailableWork;
41948
42086
  if (Array.isArray(this.operationStatuses)) {
41949
42087
  data["operationStatuses"] = [];
@@ -41966,6 +42104,7 @@ export interface IProductionScheduleFiltersDto {
41966
42104
  descriptions?: FilterValueWithQuantity[];
41967
42105
  bomPartNumbers?: FilterValueWithQuantity[];
41968
42106
  bomPartNames?: FilterValueWithQuantity[];
42107
+ bomPartSearchTexts?: FilterValueWithQuantity[];
41969
42108
  operationsWithAvailableWork?: number;
41970
42109
  operationStatuses?: OperationStatusFilterWithQuantity[];
41971
42110
  lastOperation?: Date | null;
@@ -42062,6 +42201,7 @@ export class GetAvailableProductionScheduleFiltersRequest implements IGetAvailab
42062
42201
  material?: string | null;
42063
42202
  bomPartNumber?: string | null;
42064
42203
  bomPartName?: string | null;
42204
+ bomPartSearchText?: string | null;
42065
42205
  workOrderIds?: string[] | null;
42066
42206
  partNumbers?: string[] | null;
42067
42207
  partNames?: string[] | null;
@@ -42071,6 +42211,7 @@ export class GetAvailableProductionScheduleFiltersRequest implements IGetAvailab
42071
42211
  descriptions?: string[] | null;
42072
42212
  bomPartNumbers?: string[] | null;
42073
42213
  bomPartNames?: string[] | null;
42214
+ bomPartSearchTexts?: string[] | null;
42074
42215
  availableWork?: boolean | null;
42075
42216
  operationStatuses?: OperationStatusDto[] | null;
42076
42217
  after?: Date | null;
@@ -42096,6 +42237,7 @@ export class GetAvailableProductionScheduleFiltersRequest implements IGetAvailab
42096
42237
  this.material = _data["material"];
42097
42238
  this.bomPartNumber = _data["bomPartNumber"];
42098
42239
  this.bomPartName = _data["bomPartName"];
42240
+ this.bomPartSearchText = _data["bomPartSearchText"];
42099
42241
  if (Array.isArray(_data["workOrderIds"])) {
42100
42242
  this.workOrderIds = [] as any;
42101
42243
  for (let item of _data["workOrderIds"])
@@ -42141,6 +42283,11 @@ export class GetAvailableProductionScheduleFiltersRequest implements IGetAvailab
42141
42283
  for (let item of _data["bomPartNames"])
42142
42284
  this.bomPartNames!.push(item);
42143
42285
  }
42286
+ if (Array.isArray(_data["bomPartSearchTexts"])) {
42287
+ this.bomPartSearchTexts = [] as any;
42288
+ for (let item of _data["bomPartSearchTexts"])
42289
+ this.bomPartSearchTexts!.push(item);
42290
+ }
42144
42291
  this.availableWork = _data["availableWork"];
42145
42292
  if (Array.isArray(_data["operationStatuses"])) {
42146
42293
  this.operationStatuses = [] as any;
@@ -42170,6 +42317,7 @@ export class GetAvailableProductionScheduleFiltersRequest implements IGetAvailab
42170
42317
  data["material"] = this.material;
42171
42318
  data["bomPartNumber"] = this.bomPartNumber;
42172
42319
  data["bomPartName"] = this.bomPartName;
42320
+ data["bomPartSearchText"] = this.bomPartSearchText;
42173
42321
  if (Array.isArray(this.workOrderIds)) {
42174
42322
  data["workOrderIds"] = [];
42175
42323
  for (let item of this.workOrderIds)
@@ -42215,6 +42363,11 @@ export class GetAvailableProductionScheduleFiltersRequest implements IGetAvailab
42215
42363
  for (let item of this.bomPartNames)
42216
42364
  data["bomPartNames"].push(item);
42217
42365
  }
42366
+ if (Array.isArray(this.bomPartSearchTexts)) {
42367
+ data["bomPartSearchTexts"] = [];
42368
+ for (let item of this.bomPartSearchTexts)
42369
+ data["bomPartSearchTexts"].push(item);
42370
+ }
42218
42371
  data["availableWork"] = this.availableWork;
42219
42372
  if (Array.isArray(this.operationStatuses)) {
42220
42373
  data["operationStatuses"] = [];
@@ -42237,6 +42390,7 @@ export interface IGetAvailableProductionScheduleFiltersRequest {
42237
42390
  material?: string | null;
42238
42391
  bomPartNumber?: string | null;
42239
42392
  bomPartName?: string | null;
42393
+ bomPartSearchText?: string | null;
42240
42394
  workOrderIds?: string[] | null;
42241
42395
  partNumbers?: string[] | null;
42242
42396
  partNames?: string[] | null;
@@ -42246,6 +42400,7 @@ export interface IGetAvailableProductionScheduleFiltersRequest {
42246
42400
  descriptions?: string[] | null;
42247
42401
  bomPartNumbers?: string[] | null;
42248
42402
  bomPartNames?: string[] | null;
42403
+ bomPartSearchTexts?: string[] | null;
42249
42404
  availableWork?: boolean | null;
42250
42405
  operationStatuses?: OperationStatusDto[] | null;
42251
42406
  after?: Date | null;