@ignos/api-client 20240805.0.9909 → 20240809.0.9957

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.
@@ -1470,6 +1470,7 @@ export interface IMesProductionOrderClient {
1470
1470
  getProductionOrderOpenNonConformances(id: string, onlyOpen: boolean | undefined): Promise<NonConformanceDto[]>;
1471
1471
  postMaterialPickList(id: string, operationNumber: number, request: PostMaterialPickListRequest): Promise<MaterialPickListResultDto>;
1472
1472
  listProductionOrderActivities(id: string, operation: number | null | undefined): Promise<ProductionOrderOperationActivityDto[]>;
1473
+ getPrintableProductionOrders(request: GenerateProductionOrderPdf): Promise<DownloadDto>;
1473
1474
  }
1474
1475
  export declare class MesProductionOrderClient extends AuthorizedApiBase implements IMesProductionOrderClient {
1475
1476
  private http;
@@ -1492,6 +1493,8 @@ export declare class MesProductionOrderClient extends AuthorizedApiBase implemen
1492
1493
  protected processPostMaterialPickList(response: Response): Promise<MaterialPickListResultDto>;
1493
1494
  listProductionOrderActivities(id: string, operation: number | null | undefined): Promise<ProductionOrderOperationActivityDto[]>;
1494
1495
  protected processListProductionOrderActivities(response: Response): Promise<ProductionOrderOperationActivityDto[]>;
1496
+ getPrintableProductionOrders(request: GenerateProductionOrderPdf): Promise<DownloadDto>;
1497
+ protected processGetPrintableProductionOrders(response: Response): Promise<DownloadDto>;
1495
1498
  }
1496
1499
  export interface IMesProductionScheduleClient {
1497
1500
  listProductionScheduleOperations(resourceGroup: string | null | undefined, resourceId: string | null | undefined, pageSize: number | undefined, continuationToken: string | null | undefined, workOrderId: string | null | undefined, projectId: string | null | undefined, partNumber: string | null | undefined, partName: string | null | undefined, material: string | null | undefined): Promise<PagedResultOfProductionScheduleOperationDto>;
@@ -1566,6 +1569,7 @@ export interface IMoveBookingClient {
1566
1569
  updateBooking(bookingRequest: BookingUpdateDto): Promise<BookingDto>;
1567
1570
  createBookingTransport(bookingRequest: BookingTransportRequestDto): Promise<BookingDto>;
1568
1571
  createBookingGeneral(bookingRequest: BookingGeneralRequestDto): Promise<BookingDto>;
1572
+ updateBookingStatus(bookingUpdate: BookingStatusUpdateDto): Promise<BookingDto>;
1569
1573
  cancelBooking(bookingUpdate: BookingUpdateStatusDto): Promise<BookingDto>;
1570
1574
  revertBooking(bookingUpdate: BookingUpdateStatusDto): Promise<BookingDto>;
1571
1575
  startDelivery(bookingUpdate: BookingUpdateStatusDto): Promise<BookingDto>;
@@ -1590,6 +1594,8 @@ export declare class MoveBookingClient extends AuthorizedApiBase implements IMov
1590
1594
  protected processCreateBookingTransport(response: Response): Promise<BookingDto>;
1591
1595
  createBookingGeneral(bookingRequest: BookingGeneralRequestDto): Promise<BookingDto>;
1592
1596
  protected processCreateBookingGeneral(response: Response): Promise<BookingDto>;
1597
+ updateBookingStatus(bookingUpdate: BookingStatusUpdateDto): Promise<BookingDto>;
1598
+ protected processUpdateBookingStatus(response: Response): Promise<BookingDto>;
1593
1599
  cancelBooking(bookingUpdate: BookingUpdateStatusDto): Promise<BookingDto>;
1594
1600
  protected processCancelBooking(response: Response): Promise<BookingDto>;
1595
1601
  revertBooking(bookingUpdate: BookingUpdateStatusDto): Promise<BookingDto>;
@@ -8343,6 +8349,25 @@ export interface IProductionOrderOperationActivityDto {
8343
8349
  producedQuantity?: number | null;
8344
8350
  scrappedQuantity?: number | null;
8345
8351
  }
8352
+ export declare class GenerateProductionOrderPdf implements IGenerateProductionOrderPdf {
8353
+ productionOrderNumbers: string[];
8354
+ type: ProductionOrderPdfType;
8355
+ includeOperations: boolean;
8356
+ includeDrawing: boolean;
8357
+ includeOperationText: boolean;
8358
+ constructor(data?: IGenerateProductionOrderPdf);
8359
+ init(_data?: any): void;
8360
+ static fromJS(data: any): GenerateProductionOrderPdf;
8361
+ toJSON(data?: any): any;
8362
+ }
8363
+ export interface IGenerateProductionOrderPdf {
8364
+ productionOrderNumbers: string[];
8365
+ type: ProductionOrderPdfType;
8366
+ includeOperations: boolean;
8367
+ includeDrawing: boolean;
8368
+ includeOperationText: boolean;
8369
+ }
8370
+ export type ProductionOrderPdfType = "Rich" | "Compact";
8346
8371
  export declare class PagedResultOfProductionScheduleOperationDto implements IPagedResultOfProductionScheduleOperationDto {
8347
8372
  results: ProductionScheduleOperationDto[];
8348
8373
  continuationToken?: string | null;
@@ -9046,6 +9071,7 @@ export type BookingStatusDto = "Pending" | "Cancelled" | "InProgress" | "Complet
9046
9071
  export declare class BookingItemDto implements IBookingItemDto {
9047
9072
  trackingId: string;
9048
9073
  workOrderId: string;
9074
+ parcelKind: BookingKindDto;
9049
9075
  material?: string | null;
9050
9076
  comment?: string | null;
9051
9077
  covered: MaterialCoveredDto;
@@ -9058,6 +9084,7 @@ export declare class BookingItemDto implements IBookingItemDto {
9058
9084
  export interface IBookingItemDto {
9059
9085
  trackingId: string;
9060
9086
  workOrderId: string;
9087
+ parcelKind: BookingKindDto;
9061
9088
  material?: string | null;
9062
9089
  comment?: string | null;
9063
9090
  covered: MaterialCoveredDto;
@@ -9188,26 +9215,18 @@ export interface IBookingGeneralRequestDto {
9188
9215
  comment?: string | null;
9189
9216
  itemCount: number;
9190
9217
  }
9191
- export declare class BookingUpdateStatusDto implements IBookingUpdateStatusDto {
9192
- bookingId: string;
9193
- constructor(data?: IBookingUpdateStatusDto);
9194
- init(_data?: any): void;
9195
- static fromJS(data: any): BookingUpdateStatusDto;
9196
- toJSON(data?: any): any;
9197
- }
9198
- export interface IBookingUpdateStatusDto {
9199
- bookingId: string;
9200
- }
9201
- export declare class BookingDeliveryUpdateDto implements IBookingDeliveryUpdateDto {
9218
+ export declare class BookingStatusUpdateDto implements IBookingStatusUpdateDto {
9202
9219
  bookingId: string;
9220
+ status: BookingStatusDto;
9203
9221
  deliveryExceptions?: BookingDeliveryExceptionDto[] | null;
9204
- constructor(data?: IBookingDeliveryUpdateDto);
9222
+ constructor(data?: IBookingStatusUpdateDto);
9205
9223
  init(_data?: any): void;
9206
- static fromJS(data: any): BookingDeliveryUpdateDto;
9224
+ static fromJS(data: any): BookingStatusUpdateDto;
9207
9225
  toJSON(data?: any): any;
9208
9226
  }
9209
- export interface IBookingDeliveryUpdateDto {
9227
+ export interface IBookingStatusUpdateDto {
9210
9228
  bookingId: string;
9229
+ status: BookingStatusDto;
9211
9230
  deliveryExceptions?: BookingDeliveryExceptionDto[] | null;
9212
9231
  }
9213
9232
  export declare class BookingDeliveryExceptionDto implements IBookingDeliveryExceptionDto {
@@ -9224,6 +9243,28 @@ export interface IBookingDeliveryExceptionDto {
9224
9243
  toLocationId?: string | null;
9225
9244
  comment?: string | null;
9226
9245
  }
9246
+ export declare class BookingUpdateStatusDto implements IBookingUpdateStatusDto {
9247
+ bookingId: string;
9248
+ constructor(data?: IBookingUpdateStatusDto);
9249
+ init(_data?: any): void;
9250
+ static fromJS(data: any): BookingUpdateStatusDto;
9251
+ toJSON(data?: any): any;
9252
+ }
9253
+ export interface IBookingUpdateStatusDto {
9254
+ bookingId: string;
9255
+ }
9256
+ export declare class BookingDeliveryUpdateDto implements IBookingDeliveryUpdateDto {
9257
+ bookingId: string;
9258
+ deliveryExceptions?: BookingDeliveryExceptionDto[] | null;
9259
+ constructor(data?: IBookingDeliveryUpdateDto);
9260
+ init(_data?: any): void;
9261
+ static fromJS(data: any): BookingDeliveryUpdateDto;
9262
+ toJSON(data?: any): any;
9263
+ }
9264
+ export interface IBookingDeliveryUpdateDto {
9265
+ bookingId: string;
9266
+ deliveryExceptions?: BookingDeliveryExceptionDto[] | null;
9267
+ }
9227
9268
  export declare class LocationSuggestionsDto implements ILocationSuggestionsDto {
9228
9269
  items: LocationSuggestionsItemDto[];
9229
9270
  locationKindFilter?: LocationKindDto[] | null;
@@ -9287,6 +9328,7 @@ export interface ITrackingHistoryListDto {
9287
9328
  export declare class TrackingHistoryDto implements ITrackingHistoryDto {
9288
9329
  trackingId: string;
9289
9330
  palletNumber: number;
9331
+ parcelKind: BookingKindDto;
9290
9332
  workOrderId: string;
9291
9333
  trackingEvents: TrackingEventDto[];
9292
9334
  material?: string | null;
@@ -9298,6 +9340,7 @@ export declare class TrackingHistoryDto implements ITrackingHistoryDto {
9298
9340
  export interface ITrackingHistoryDto {
9299
9341
  trackingId: string;
9300
9342
  palletNumber: number;
9343
+ parcelKind: BookingKindDto;
9301
9344
  workOrderId: string;
9302
9345
  trackingEvents: TrackingEventDto[];
9303
9346
  material?: string | null;
@@ -9389,6 +9432,7 @@ export interface ITrackingHistoryUpdateDto {
9389
9432
  }
9390
9433
  export declare class SearchWorkOrderDto implements ISearchWorkOrderDto {
9391
9434
  workOrderId: string;
9435
+ matchCriteria: SearchMatchCriteriaDto;
9392
9436
  items: SearchWorkOrderItemDto[];
9393
9437
  partName?: string | null;
9394
9438
  partNumber?: string | null;
@@ -9399,10 +9443,12 @@ export declare class SearchWorkOrderDto implements ISearchWorkOrderDto {
9399
9443
  }
9400
9444
  export interface ISearchWorkOrderDto {
9401
9445
  workOrderId: string;
9446
+ matchCriteria: SearchMatchCriteriaDto;
9402
9447
  items: SearchWorkOrderItemDto[];
9403
9448
  partName?: string | null;
9404
9449
  partNumber?: string | null;
9405
9450
  }
9451
+ export type SearchMatchCriteriaDto = "Tracking" | "WorkOrder" | "Parcel";
9406
9452
  export declare class SearchWorkOrderItemDto implements ISearchWorkOrderItemDto {
9407
9453
  trackingId: string;
9408
9454
  selected: boolean;
@@ -1,6 +1,6 @@
1
1
  //----------------------
2
2
  // <auto-generated>
3
- // Generated using the NSwag toolchain v14.0.8.0 (NJsonSchema v11.0.1.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org)
3
+ // Generated using the NSwag toolchain v14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org)
4
4
  // </auto-generated>
5
5
  //----------------------
6
6
  /* tslint:disable */
@@ -12225,6 +12225,46 @@ export class MesProductionOrderClient extends AuthorizedApiBase {
12225
12225
  }
12226
12226
  return Promise.resolve(null);
12227
12227
  }
12228
+ getPrintableProductionOrders(request) {
12229
+ let url_ = this.baseUrl + "/mes/productionorders/printable";
12230
+ url_ = url_.replace(/[?&]$/, "");
12231
+ const content_ = JSON.stringify(request);
12232
+ let options_ = {
12233
+ body: content_,
12234
+ method: "POST",
12235
+ headers: {
12236
+ "Content-Type": "application/json",
12237
+ "Accept": "application/json"
12238
+ }
12239
+ };
12240
+ return this.transformOptions(options_).then(transformedOptions_ => {
12241
+ return this.http.fetch(url_, transformedOptions_);
12242
+ }).then((_response) => {
12243
+ return this.processGetPrintableProductionOrders(_response);
12244
+ });
12245
+ }
12246
+ processGetPrintableProductionOrders(response) {
12247
+ const status = response.status;
12248
+ let _headers = {};
12249
+ if (response.headers && response.headers.forEach) {
12250
+ response.headers.forEach((v, k) => _headers[k] = v);
12251
+ }
12252
+ ;
12253
+ if (status === 200) {
12254
+ return response.text().then((_responseText) => {
12255
+ let result200 = null;
12256
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
12257
+ result200 = DownloadDto.fromJS(resultData200);
12258
+ return result200;
12259
+ });
12260
+ }
12261
+ else if (status !== 200 && status !== 204) {
12262
+ return response.text().then((_responseText) => {
12263
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
12264
+ });
12265
+ }
12266
+ return Promise.resolve(null);
12267
+ }
12228
12268
  }
12229
12269
  export class MesProductionScheduleClient extends AuthorizedApiBase {
12230
12270
  constructor(configuration, baseUrl, http) {
@@ -12994,6 +13034,46 @@ export class MoveBookingClient extends AuthorizedApiBase {
12994
13034
  }
12995
13035
  return Promise.resolve(null);
12996
13036
  }
13037
+ updateBookingStatus(bookingUpdate) {
13038
+ let url_ = this.baseUrl + "/move/booking/updatestatus";
13039
+ url_ = url_.replace(/[?&]$/, "");
13040
+ const content_ = JSON.stringify(bookingUpdate);
13041
+ let options_ = {
13042
+ body: content_,
13043
+ method: "PUT",
13044
+ headers: {
13045
+ "Content-Type": "application/json",
13046
+ "Accept": "application/json"
13047
+ }
13048
+ };
13049
+ return this.transformOptions(options_).then(transformedOptions_ => {
13050
+ return this.http.fetch(url_, transformedOptions_);
13051
+ }).then((_response) => {
13052
+ return this.processUpdateBookingStatus(_response);
13053
+ });
13054
+ }
13055
+ processUpdateBookingStatus(response) {
13056
+ const status = response.status;
13057
+ let _headers = {};
13058
+ if (response.headers && response.headers.forEach) {
13059
+ response.headers.forEach((v, k) => _headers[k] = v);
13060
+ }
13061
+ ;
13062
+ if (status === 200) {
13063
+ return response.text().then((_responseText) => {
13064
+ let result200 = null;
13065
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
13066
+ result200 = BookingDto.fromJS(resultData200);
13067
+ return result200;
13068
+ });
13069
+ }
13070
+ else if (status !== 200 && status !== 204) {
13071
+ return response.text().then((_responseText) => {
13072
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
13073
+ });
13074
+ }
13075
+ return Promise.resolve(null);
13076
+ }
12997
13077
  cancelBooking(bookingUpdate) {
12998
13078
  let url_ = this.baseUrl + "/move/booking/cancel";
12999
13079
  url_ = url_.replace(/[?&]$/, "");
@@ -31205,6 +31285,51 @@ export class ProductionOrderOperationActivityDto {
31205
31285
  return data;
31206
31286
  }
31207
31287
  }
31288
+ export class GenerateProductionOrderPdf {
31289
+ constructor(data) {
31290
+ if (data) {
31291
+ for (var property in data) {
31292
+ if (data.hasOwnProperty(property))
31293
+ this[property] = data[property];
31294
+ }
31295
+ }
31296
+ if (!data) {
31297
+ this.productionOrderNumbers = [];
31298
+ }
31299
+ }
31300
+ init(_data) {
31301
+ if (_data) {
31302
+ if (Array.isArray(_data["productionOrderNumbers"])) {
31303
+ this.productionOrderNumbers = [];
31304
+ for (let item of _data["productionOrderNumbers"])
31305
+ this.productionOrderNumbers.push(item);
31306
+ }
31307
+ this.type = _data["type"];
31308
+ this.includeOperations = _data["includeOperations"];
31309
+ this.includeDrawing = _data["includeDrawing"];
31310
+ this.includeOperationText = _data["includeOperationText"];
31311
+ }
31312
+ }
31313
+ static fromJS(data) {
31314
+ data = typeof data === 'object' ? data : {};
31315
+ let result = new GenerateProductionOrderPdf();
31316
+ result.init(data);
31317
+ return result;
31318
+ }
31319
+ toJSON(data) {
31320
+ data = typeof data === 'object' ? data : {};
31321
+ if (Array.isArray(this.productionOrderNumbers)) {
31322
+ data["productionOrderNumbers"] = [];
31323
+ for (let item of this.productionOrderNumbers)
31324
+ data["productionOrderNumbers"].push(item);
31325
+ }
31326
+ data["type"] = this.type;
31327
+ data["includeOperations"] = this.includeOperations;
31328
+ data["includeDrawing"] = this.includeDrawing;
31329
+ data["includeOperationText"] = this.includeOperationText;
31330
+ return data;
31331
+ }
31332
+ }
31208
31333
  export class PagedResultOfProductionScheduleOperationDto {
31209
31334
  constructor(data) {
31210
31335
  if (data) {
@@ -32730,6 +32855,7 @@ export class BookingItemDto {
32730
32855
  if (_data) {
32731
32856
  this.trackingId = _data["trackingId"];
32732
32857
  this.workOrderId = _data["workOrderId"];
32858
+ this.parcelKind = _data["parcelKind"];
32733
32859
  this.material = _data["material"];
32734
32860
  this.comment = _data["comment"];
32735
32861
  this.covered = _data["covered"];
@@ -32746,6 +32872,7 @@ export class BookingItemDto {
32746
32872
  data = typeof data === 'object' ? data : {};
32747
32873
  data["trackingId"] = this.trackingId;
32748
32874
  data["workOrderId"] = this.workOrderId;
32875
+ data["parcelKind"] = this.parcelKind;
32749
32876
  data["material"] = this.material;
32750
32877
  data["comment"] = this.comment;
32751
32878
  data["covered"] = this.covered;
@@ -33054,7 +33181,7 @@ export class BookingGeneralRequestDto {
33054
33181
  return data;
33055
33182
  }
33056
33183
  }
33057
- export class BookingUpdateStatusDto {
33184
+ export class BookingStatusUpdateDto {
33058
33185
  constructor(data) {
33059
33186
  if (data) {
33060
33187
  for (var property in data) {
@@ -33066,21 +33193,33 @@ export class BookingUpdateStatusDto {
33066
33193
  init(_data) {
33067
33194
  if (_data) {
33068
33195
  this.bookingId = _data["bookingId"];
33196
+ this.status = _data["status"];
33197
+ if (Array.isArray(_data["deliveryExceptions"])) {
33198
+ this.deliveryExceptions = [];
33199
+ for (let item of _data["deliveryExceptions"])
33200
+ this.deliveryExceptions.push(BookingDeliveryExceptionDto.fromJS(item));
33201
+ }
33069
33202
  }
33070
33203
  }
33071
33204
  static fromJS(data) {
33072
33205
  data = typeof data === 'object' ? data : {};
33073
- let result = new BookingUpdateStatusDto();
33206
+ let result = new BookingStatusUpdateDto();
33074
33207
  result.init(data);
33075
33208
  return result;
33076
33209
  }
33077
33210
  toJSON(data) {
33078
33211
  data = typeof data === 'object' ? data : {};
33079
33212
  data["bookingId"] = this.bookingId;
33213
+ data["status"] = this.status;
33214
+ if (Array.isArray(this.deliveryExceptions)) {
33215
+ data["deliveryExceptions"] = [];
33216
+ for (let item of this.deliveryExceptions)
33217
+ data["deliveryExceptions"].push(item.toJSON());
33218
+ }
33080
33219
  return data;
33081
33220
  }
33082
33221
  }
33083
- export class BookingDeliveryUpdateDto {
33222
+ export class BookingDeliveryExceptionDto {
33084
33223
  constructor(data) {
33085
33224
  if (data) {
33086
33225
  for (var property in data) {
@@ -33091,32 +33230,52 @@ export class BookingDeliveryUpdateDto {
33091
33230
  }
33092
33231
  init(_data) {
33093
33232
  if (_data) {
33094
- this.bookingId = _data["bookingId"];
33095
- if (Array.isArray(_data["deliveryExceptions"])) {
33096
- this.deliveryExceptions = [];
33097
- for (let item of _data["deliveryExceptions"])
33098
- this.deliveryExceptions.push(BookingDeliveryExceptionDto.fromJS(item));
33233
+ this.trackingId = _data["trackingId"];
33234
+ this.toLocationId = _data["toLocationId"];
33235
+ this.comment = _data["comment"];
33236
+ }
33237
+ }
33238
+ static fromJS(data) {
33239
+ data = typeof data === 'object' ? data : {};
33240
+ let result = new BookingDeliveryExceptionDto();
33241
+ result.init(data);
33242
+ return result;
33243
+ }
33244
+ toJSON(data) {
33245
+ data = typeof data === 'object' ? data : {};
33246
+ data["trackingId"] = this.trackingId;
33247
+ data["toLocationId"] = this.toLocationId;
33248
+ data["comment"] = this.comment;
33249
+ return data;
33250
+ }
33251
+ }
33252
+ export class BookingUpdateStatusDto {
33253
+ constructor(data) {
33254
+ if (data) {
33255
+ for (var property in data) {
33256
+ if (data.hasOwnProperty(property))
33257
+ this[property] = data[property];
33099
33258
  }
33100
33259
  }
33101
33260
  }
33261
+ init(_data) {
33262
+ if (_data) {
33263
+ this.bookingId = _data["bookingId"];
33264
+ }
33265
+ }
33102
33266
  static fromJS(data) {
33103
33267
  data = typeof data === 'object' ? data : {};
33104
- let result = new BookingDeliveryUpdateDto();
33268
+ let result = new BookingUpdateStatusDto();
33105
33269
  result.init(data);
33106
33270
  return result;
33107
33271
  }
33108
33272
  toJSON(data) {
33109
33273
  data = typeof data === 'object' ? data : {};
33110
33274
  data["bookingId"] = this.bookingId;
33111
- if (Array.isArray(this.deliveryExceptions)) {
33112
- data["deliveryExceptions"] = [];
33113
- for (let item of this.deliveryExceptions)
33114
- data["deliveryExceptions"].push(item.toJSON());
33115
- }
33116
33275
  return data;
33117
33276
  }
33118
33277
  }
33119
- export class BookingDeliveryExceptionDto {
33278
+ export class BookingDeliveryUpdateDto {
33120
33279
  constructor(data) {
33121
33280
  if (data) {
33122
33281
  for (var property in data) {
@@ -33127,22 +33286,28 @@ export class BookingDeliveryExceptionDto {
33127
33286
  }
33128
33287
  init(_data) {
33129
33288
  if (_data) {
33130
- this.trackingId = _data["trackingId"];
33131
- this.toLocationId = _data["toLocationId"];
33132
- this.comment = _data["comment"];
33289
+ this.bookingId = _data["bookingId"];
33290
+ if (Array.isArray(_data["deliveryExceptions"])) {
33291
+ this.deliveryExceptions = [];
33292
+ for (let item of _data["deliveryExceptions"])
33293
+ this.deliveryExceptions.push(BookingDeliveryExceptionDto.fromJS(item));
33294
+ }
33133
33295
  }
33134
33296
  }
33135
33297
  static fromJS(data) {
33136
33298
  data = typeof data === 'object' ? data : {};
33137
- let result = new BookingDeliveryExceptionDto();
33299
+ let result = new BookingDeliveryUpdateDto();
33138
33300
  result.init(data);
33139
33301
  return result;
33140
33302
  }
33141
33303
  toJSON(data) {
33142
33304
  data = typeof data === 'object' ? data : {};
33143
- data["trackingId"] = this.trackingId;
33144
- data["toLocationId"] = this.toLocationId;
33145
- data["comment"] = this.comment;
33305
+ data["bookingId"] = this.bookingId;
33306
+ if (Array.isArray(this.deliveryExceptions)) {
33307
+ data["deliveryExceptions"] = [];
33308
+ for (let item of this.deliveryExceptions)
33309
+ data["deliveryExceptions"].push(item.toJSON());
33310
+ }
33146
33311
  return data;
33147
33312
  }
33148
33313
  }
@@ -33332,6 +33497,7 @@ export class TrackingHistoryDto {
33332
33497
  if (_data) {
33333
33498
  this.trackingId = _data["trackingId"];
33334
33499
  this.palletNumber = _data["palletNumber"];
33500
+ this.parcelKind = _data["parcelKind"];
33335
33501
  this.workOrderId = _data["workOrderId"];
33336
33502
  if (Array.isArray(_data["trackingEvents"])) {
33337
33503
  this.trackingEvents = [];
@@ -33351,6 +33517,7 @@ export class TrackingHistoryDto {
33351
33517
  data = typeof data === 'object' ? data : {};
33352
33518
  data["trackingId"] = this.trackingId;
33353
33519
  data["palletNumber"] = this.palletNumber;
33520
+ data["parcelKind"] = this.parcelKind;
33354
33521
  data["workOrderId"] = this.workOrderId;
33355
33522
  if (Array.isArray(this.trackingEvents)) {
33356
33523
  data["trackingEvents"] = [];
@@ -33583,6 +33750,7 @@ export class SearchWorkOrderDto {
33583
33750
  init(_data) {
33584
33751
  if (_data) {
33585
33752
  this.workOrderId = _data["workOrderId"];
33753
+ this.matchCriteria = _data["matchCriteria"];
33586
33754
  if (Array.isArray(_data["items"])) {
33587
33755
  this.items = [];
33588
33756
  for (let item of _data["items"])
@@ -33601,6 +33769,7 @@ export class SearchWorkOrderDto {
33601
33769
  toJSON(data) {
33602
33770
  data = typeof data === 'object' ? data : {};
33603
33771
  data["workOrderId"] = this.workOrderId;
33772
+ data["matchCriteria"] = this.matchCriteria;
33604
33773
  if (Array.isArray(this.items)) {
33605
33774
  data["items"] = [];
33606
33775
  for (let item of this.items)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20240805.0.9909",
3
+ "version": "20240809.0.9957",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -1,6 +1,6 @@
1
1
  //----------------------
2
2
  // <auto-generated>
3
- // Generated using the NSwag toolchain v14.0.8.0 (NJsonSchema v11.0.1.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org)
3
+ // Generated using the NSwag toolchain v14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org)
4
4
  // </auto-generated>
5
5
  //----------------------
6
6
 
@@ -12739,6 +12739,8 @@ export interface IMesProductionOrderClient {
12739
12739
  postMaterialPickList(id: string, operationNumber: number, request: PostMaterialPickListRequest): Promise<MaterialPickListResultDto>;
12740
12740
 
12741
12741
  listProductionOrderActivities(id: string, operation: number | null | undefined): Promise<ProductionOrderOperationActivityDto[]>;
12742
+
12743
+ getPrintableProductionOrders(request: GenerateProductionOrderPdf): Promise<DownloadDto>;
12742
12744
  }
12743
12745
 
12744
12746
  export class MesProductionOrderClient extends AuthorizedApiBase implements IMesProductionOrderClient {
@@ -13060,6 +13062,46 @@ export class MesProductionOrderClient extends AuthorizedApiBase implements IMesP
13060
13062
  }
13061
13063
  return Promise.resolve<ProductionOrderOperationActivityDto[]>(null as any);
13062
13064
  }
13065
+
13066
+ getPrintableProductionOrders(request: GenerateProductionOrderPdf): Promise<DownloadDto> {
13067
+ let url_ = this.baseUrl + "/mes/productionorders/printable";
13068
+ url_ = url_.replace(/[?&]$/, "");
13069
+
13070
+ const content_ = JSON.stringify(request);
13071
+
13072
+ let options_: RequestInit = {
13073
+ body: content_,
13074
+ method: "POST",
13075
+ headers: {
13076
+ "Content-Type": "application/json",
13077
+ "Accept": "application/json"
13078
+ }
13079
+ };
13080
+
13081
+ return this.transformOptions(options_).then(transformedOptions_ => {
13082
+ return this.http.fetch(url_, transformedOptions_);
13083
+ }).then((_response: Response) => {
13084
+ return this.processGetPrintableProductionOrders(_response);
13085
+ });
13086
+ }
13087
+
13088
+ protected processGetPrintableProductionOrders(response: Response): Promise<DownloadDto> {
13089
+ const status = response.status;
13090
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
13091
+ if (status === 200) {
13092
+ return response.text().then((_responseText) => {
13093
+ let result200: any = null;
13094
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
13095
+ result200 = DownloadDto.fromJS(resultData200);
13096
+ return result200;
13097
+ });
13098
+ } else if (status !== 200 && status !== 204) {
13099
+ return response.text().then((_responseText) => {
13100
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
13101
+ });
13102
+ }
13103
+ return Promise.resolve<DownloadDto>(null as any);
13104
+ }
13063
13105
  }
13064
13106
 
13065
13107
  export interface IMesProductionScheduleClient {
@@ -13632,6 +13674,8 @@ export interface IMoveBookingClient {
13632
13674
 
13633
13675
  createBookingGeneral(bookingRequest: BookingGeneralRequestDto): Promise<BookingDto>;
13634
13676
 
13677
+ updateBookingStatus(bookingUpdate: BookingStatusUpdateDto): Promise<BookingDto>;
13678
+
13635
13679
  cancelBooking(bookingUpdate: BookingUpdateStatusDto): Promise<BookingDto>;
13636
13680
 
13637
13681
  revertBooking(bookingUpdate: BookingUpdateStatusDto): Promise<BookingDto>;
@@ -13894,6 +13938,46 @@ export class MoveBookingClient extends AuthorizedApiBase implements IMoveBooking
13894
13938
  return Promise.resolve<BookingDto>(null as any);
13895
13939
  }
13896
13940
 
13941
+ updateBookingStatus(bookingUpdate: BookingStatusUpdateDto): Promise<BookingDto> {
13942
+ let url_ = this.baseUrl + "/move/booking/updatestatus";
13943
+ url_ = url_.replace(/[?&]$/, "");
13944
+
13945
+ const content_ = JSON.stringify(bookingUpdate);
13946
+
13947
+ let options_: RequestInit = {
13948
+ body: content_,
13949
+ method: "PUT",
13950
+ headers: {
13951
+ "Content-Type": "application/json",
13952
+ "Accept": "application/json"
13953
+ }
13954
+ };
13955
+
13956
+ return this.transformOptions(options_).then(transformedOptions_ => {
13957
+ return this.http.fetch(url_, transformedOptions_);
13958
+ }).then((_response: Response) => {
13959
+ return this.processUpdateBookingStatus(_response);
13960
+ });
13961
+ }
13962
+
13963
+ protected processUpdateBookingStatus(response: Response): Promise<BookingDto> {
13964
+ const status = response.status;
13965
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
13966
+ if (status === 200) {
13967
+ return response.text().then((_responseText) => {
13968
+ let result200: any = null;
13969
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
13970
+ result200 = BookingDto.fromJS(resultData200);
13971
+ return result200;
13972
+ });
13973
+ } else if (status !== 200 && status !== 204) {
13974
+ return response.text().then((_responseText) => {
13975
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
13976
+ });
13977
+ }
13978
+ return Promise.resolve<BookingDto>(null as any);
13979
+ }
13980
+
13897
13981
  cancelBooking(bookingUpdate: BookingUpdateStatusDto): Promise<BookingDto> {
13898
13982
  let url_ = this.baseUrl + "/move/booking/cancel";
13899
13983
  url_ = url_.replace(/[?&]$/, "");
@@ -38557,6 +38641,71 @@ export interface IProductionOrderOperationActivityDto {
38557
38641
  scrappedQuantity?: number | null;
38558
38642
  }
38559
38643
 
38644
+ export class GenerateProductionOrderPdf implements IGenerateProductionOrderPdf {
38645
+ productionOrderNumbers!: string[];
38646
+ type!: ProductionOrderPdfType;
38647
+ includeOperations!: boolean;
38648
+ includeDrawing!: boolean;
38649
+ includeOperationText!: boolean;
38650
+
38651
+ constructor(data?: IGenerateProductionOrderPdf) {
38652
+ if (data) {
38653
+ for (var property in data) {
38654
+ if (data.hasOwnProperty(property))
38655
+ (<any>this)[property] = (<any>data)[property];
38656
+ }
38657
+ }
38658
+ if (!data) {
38659
+ this.productionOrderNumbers = [];
38660
+ }
38661
+ }
38662
+
38663
+ init(_data?: any) {
38664
+ if (_data) {
38665
+ if (Array.isArray(_data["productionOrderNumbers"])) {
38666
+ this.productionOrderNumbers = [] as any;
38667
+ for (let item of _data["productionOrderNumbers"])
38668
+ this.productionOrderNumbers!.push(item);
38669
+ }
38670
+ this.type = _data["type"];
38671
+ this.includeOperations = _data["includeOperations"];
38672
+ this.includeDrawing = _data["includeDrawing"];
38673
+ this.includeOperationText = _data["includeOperationText"];
38674
+ }
38675
+ }
38676
+
38677
+ static fromJS(data: any): GenerateProductionOrderPdf {
38678
+ data = typeof data === 'object' ? data : {};
38679
+ let result = new GenerateProductionOrderPdf();
38680
+ result.init(data);
38681
+ return result;
38682
+ }
38683
+
38684
+ toJSON(data?: any) {
38685
+ data = typeof data === 'object' ? data : {};
38686
+ if (Array.isArray(this.productionOrderNumbers)) {
38687
+ data["productionOrderNumbers"] = [];
38688
+ for (let item of this.productionOrderNumbers)
38689
+ data["productionOrderNumbers"].push(item);
38690
+ }
38691
+ data["type"] = this.type;
38692
+ data["includeOperations"] = this.includeOperations;
38693
+ data["includeDrawing"] = this.includeDrawing;
38694
+ data["includeOperationText"] = this.includeOperationText;
38695
+ return data;
38696
+ }
38697
+ }
38698
+
38699
+ export interface IGenerateProductionOrderPdf {
38700
+ productionOrderNumbers: string[];
38701
+ type: ProductionOrderPdfType;
38702
+ includeOperations: boolean;
38703
+ includeDrawing: boolean;
38704
+ includeOperationText: boolean;
38705
+ }
38706
+
38707
+ export type ProductionOrderPdfType = "Rich" | "Compact";
38708
+
38560
38709
  export class PagedResultOfProductionScheduleOperationDto implements IPagedResultOfProductionScheduleOperationDto {
38561
38710
  results!: ProductionScheduleOperationDto[];
38562
38711
  continuationToken?: string | null;
@@ -40780,6 +40929,7 @@ export type BookingStatusDto = "Pending" | "Cancelled" | "InProgress" | "Complet
40780
40929
  export class BookingItemDto implements IBookingItemDto {
40781
40930
  trackingId!: string;
40782
40931
  workOrderId!: string;
40932
+ parcelKind!: BookingKindDto;
40783
40933
  material?: string | null;
40784
40934
  comment?: string | null;
40785
40935
  covered!: MaterialCoveredDto;
@@ -40798,6 +40948,7 @@ export class BookingItemDto implements IBookingItemDto {
40798
40948
  if (_data) {
40799
40949
  this.trackingId = _data["trackingId"];
40800
40950
  this.workOrderId = _data["workOrderId"];
40951
+ this.parcelKind = _data["parcelKind"];
40801
40952
  this.material = _data["material"];
40802
40953
  this.comment = _data["comment"];
40803
40954
  this.covered = _data["covered"];
@@ -40816,6 +40967,7 @@ export class BookingItemDto implements IBookingItemDto {
40816
40967
  data = typeof data === 'object' ? data : {};
40817
40968
  data["trackingId"] = this.trackingId;
40818
40969
  data["workOrderId"] = this.workOrderId;
40970
+ data["parcelKind"] = this.parcelKind;
40819
40971
  data["material"] = this.material;
40820
40972
  data["comment"] = this.comment;
40821
40973
  data["covered"] = this.covered;
@@ -40827,6 +40979,7 @@ export class BookingItemDto implements IBookingItemDto {
40827
40979
  export interface IBookingItemDto {
40828
40980
  trackingId: string;
40829
40981
  workOrderId: string;
40982
+ parcelKind: BookingKindDto;
40830
40983
  material?: string | null;
40831
40984
  comment?: string | null;
40832
40985
  covered: MaterialCoveredDto;
@@ -41262,10 +41415,12 @@ export interface IBookingGeneralRequestDto {
41262
41415
  itemCount: number;
41263
41416
  }
41264
41417
 
41265
- export class BookingUpdateStatusDto implements IBookingUpdateStatusDto {
41418
+ export class BookingStatusUpdateDto implements IBookingStatusUpdateDto {
41266
41419
  bookingId!: string;
41420
+ status!: BookingStatusDto;
41421
+ deliveryExceptions?: BookingDeliveryExceptionDto[] | null;
41267
41422
 
41268
- constructor(data?: IBookingUpdateStatusDto) {
41423
+ constructor(data?: IBookingStatusUpdateDto) {
41269
41424
  if (data) {
41270
41425
  for (var property in data) {
41271
41426
  if (data.hasOwnProperty(property))
@@ -41277,12 +41432,18 @@ export class BookingUpdateStatusDto implements IBookingUpdateStatusDto {
41277
41432
  init(_data?: any) {
41278
41433
  if (_data) {
41279
41434
  this.bookingId = _data["bookingId"];
41435
+ this.status = _data["status"];
41436
+ if (Array.isArray(_data["deliveryExceptions"])) {
41437
+ this.deliveryExceptions = [] as any;
41438
+ for (let item of _data["deliveryExceptions"])
41439
+ this.deliveryExceptions!.push(BookingDeliveryExceptionDto.fromJS(item));
41440
+ }
41280
41441
  }
41281
41442
  }
41282
41443
 
41283
- static fromJS(data: any): BookingUpdateStatusDto {
41444
+ static fromJS(data: any): BookingStatusUpdateDto {
41284
41445
  data = typeof data === 'object' ? data : {};
41285
- let result = new BookingUpdateStatusDto();
41446
+ let result = new BookingStatusUpdateDto();
41286
41447
  result.init(data);
41287
41448
  return result;
41288
41449
  }
@@ -41290,19 +41451,70 @@ export class BookingUpdateStatusDto implements IBookingUpdateStatusDto {
41290
41451
  toJSON(data?: any) {
41291
41452
  data = typeof data === 'object' ? data : {};
41292
41453
  data["bookingId"] = this.bookingId;
41454
+ data["status"] = this.status;
41455
+ if (Array.isArray(this.deliveryExceptions)) {
41456
+ data["deliveryExceptions"] = [];
41457
+ for (let item of this.deliveryExceptions)
41458
+ data["deliveryExceptions"].push(item.toJSON());
41459
+ }
41293
41460
  return data;
41294
41461
  }
41295
41462
  }
41296
41463
 
41297
- export interface IBookingUpdateStatusDto {
41464
+ export interface IBookingStatusUpdateDto {
41298
41465
  bookingId: string;
41466
+ status: BookingStatusDto;
41467
+ deliveryExceptions?: BookingDeliveryExceptionDto[] | null;
41299
41468
  }
41300
41469
 
41301
- export class BookingDeliveryUpdateDto implements IBookingDeliveryUpdateDto {
41470
+ export class BookingDeliveryExceptionDto implements IBookingDeliveryExceptionDto {
41471
+ trackingId!: string;
41472
+ toLocationId?: string | null;
41473
+ comment?: string | null;
41474
+
41475
+ constructor(data?: IBookingDeliveryExceptionDto) {
41476
+ if (data) {
41477
+ for (var property in data) {
41478
+ if (data.hasOwnProperty(property))
41479
+ (<any>this)[property] = (<any>data)[property];
41480
+ }
41481
+ }
41482
+ }
41483
+
41484
+ init(_data?: any) {
41485
+ if (_data) {
41486
+ this.trackingId = _data["trackingId"];
41487
+ this.toLocationId = _data["toLocationId"];
41488
+ this.comment = _data["comment"];
41489
+ }
41490
+ }
41491
+
41492
+ static fromJS(data: any): BookingDeliveryExceptionDto {
41493
+ data = typeof data === 'object' ? data : {};
41494
+ let result = new BookingDeliveryExceptionDto();
41495
+ result.init(data);
41496
+ return result;
41497
+ }
41498
+
41499
+ toJSON(data?: any) {
41500
+ data = typeof data === 'object' ? data : {};
41501
+ data["trackingId"] = this.trackingId;
41502
+ data["toLocationId"] = this.toLocationId;
41503
+ data["comment"] = this.comment;
41504
+ return data;
41505
+ }
41506
+ }
41507
+
41508
+ export interface IBookingDeliveryExceptionDto {
41509
+ trackingId: string;
41510
+ toLocationId?: string | null;
41511
+ comment?: string | null;
41512
+ }
41513
+
41514
+ export class BookingUpdateStatusDto implements IBookingUpdateStatusDto {
41302
41515
  bookingId!: string;
41303
- deliveryExceptions?: BookingDeliveryExceptionDto[] | null;
41304
41516
 
41305
- constructor(data?: IBookingDeliveryUpdateDto) {
41517
+ constructor(data?: IBookingUpdateStatusDto) {
41306
41518
  if (data) {
41307
41519
  for (var property in data) {
41308
41520
  if (data.hasOwnProperty(property))
@@ -41314,17 +41526,12 @@ export class BookingDeliveryUpdateDto implements IBookingDeliveryUpdateDto {
41314
41526
  init(_data?: any) {
41315
41527
  if (_data) {
41316
41528
  this.bookingId = _data["bookingId"];
41317
- if (Array.isArray(_data["deliveryExceptions"])) {
41318
- this.deliveryExceptions = [] as any;
41319
- for (let item of _data["deliveryExceptions"])
41320
- this.deliveryExceptions!.push(BookingDeliveryExceptionDto.fromJS(item));
41321
- }
41322
41529
  }
41323
41530
  }
41324
41531
 
41325
- static fromJS(data: any): BookingDeliveryUpdateDto {
41532
+ static fromJS(data: any): BookingUpdateStatusDto {
41326
41533
  data = typeof data === 'object' ? data : {};
41327
- let result = new BookingDeliveryUpdateDto();
41534
+ let result = new BookingUpdateStatusDto();
41328
41535
  result.init(data);
41329
41536
  return result;
41330
41537
  }
@@ -41332,26 +41539,19 @@ export class BookingDeliveryUpdateDto implements IBookingDeliveryUpdateDto {
41332
41539
  toJSON(data?: any) {
41333
41540
  data = typeof data === 'object' ? data : {};
41334
41541
  data["bookingId"] = this.bookingId;
41335
- if (Array.isArray(this.deliveryExceptions)) {
41336
- data["deliveryExceptions"] = [];
41337
- for (let item of this.deliveryExceptions)
41338
- data["deliveryExceptions"].push(item.toJSON());
41339
- }
41340
41542
  return data;
41341
41543
  }
41342
41544
  }
41343
41545
 
41344
- export interface IBookingDeliveryUpdateDto {
41546
+ export interface IBookingUpdateStatusDto {
41345
41547
  bookingId: string;
41346
- deliveryExceptions?: BookingDeliveryExceptionDto[] | null;
41347
41548
  }
41348
41549
 
41349
- export class BookingDeliveryExceptionDto implements IBookingDeliveryExceptionDto {
41350
- trackingId!: string;
41351
- toLocationId?: string | null;
41352
- comment?: string | null;
41550
+ export class BookingDeliveryUpdateDto implements IBookingDeliveryUpdateDto {
41551
+ bookingId!: string;
41552
+ deliveryExceptions?: BookingDeliveryExceptionDto[] | null;
41353
41553
 
41354
- constructor(data?: IBookingDeliveryExceptionDto) {
41554
+ constructor(data?: IBookingDeliveryUpdateDto) {
41355
41555
  if (data) {
41356
41556
  for (var property in data) {
41357
41557
  if (data.hasOwnProperty(property))
@@ -41362,32 +41562,37 @@ export class BookingDeliveryExceptionDto implements IBookingDeliveryExceptionDto
41362
41562
 
41363
41563
  init(_data?: any) {
41364
41564
  if (_data) {
41365
- this.trackingId = _data["trackingId"];
41366
- this.toLocationId = _data["toLocationId"];
41367
- this.comment = _data["comment"];
41565
+ this.bookingId = _data["bookingId"];
41566
+ if (Array.isArray(_data["deliveryExceptions"])) {
41567
+ this.deliveryExceptions = [] as any;
41568
+ for (let item of _data["deliveryExceptions"])
41569
+ this.deliveryExceptions!.push(BookingDeliveryExceptionDto.fromJS(item));
41570
+ }
41368
41571
  }
41369
41572
  }
41370
41573
 
41371
- static fromJS(data: any): BookingDeliveryExceptionDto {
41574
+ static fromJS(data: any): BookingDeliveryUpdateDto {
41372
41575
  data = typeof data === 'object' ? data : {};
41373
- let result = new BookingDeliveryExceptionDto();
41576
+ let result = new BookingDeliveryUpdateDto();
41374
41577
  result.init(data);
41375
41578
  return result;
41376
41579
  }
41377
41580
 
41378
41581
  toJSON(data?: any) {
41379
41582
  data = typeof data === 'object' ? data : {};
41380
- data["trackingId"] = this.trackingId;
41381
- data["toLocationId"] = this.toLocationId;
41382
- data["comment"] = this.comment;
41583
+ data["bookingId"] = this.bookingId;
41584
+ if (Array.isArray(this.deliveryExceptions)) {
41585
+ data["deliveryExceptions"] = [];
41586
+ for (let item of this.deliveryExceptions)
41587
+ data["deliveryExceptions"].push(item.toJSON());
41588
+ }
41383
41589
  return data;
41384
41590
  }
41385
41591
  }
41386
41592
 
41387
- export interface IBookingDeliveryExceptionDto {
41388
- trackingId: string;
41389
- toLocationId?: string | null;
41390
- comment?: string | null;
41593
+ export interface IBookingDeliveryUpdateDto {
41594
+ bookingId: string;
41595
+ deliveryExceptions?: BookingDeliveryExceptionDto[] | null;
41391
41596
  }
41392
41597
 
41393
41598
  export class LocationSuggestionsDto implements ILocationSuggestionsDto {
@@ -41623,6 +41828,7 @@ export interface ITrackingHistoryListDto {
41623
41828
  export class TrackingHistoryDto implements ITrackingHistoryDto {
41624
41829
  trackingId!: string;
41625
41830
  palletNumber!: number;
41831
+ parcelKind!: BookingKindDto;
41626
41832
  workOrderId!: string;
41627
41833
  trackingEvents!: TrackingEventDto[];
41628
41834
  material?: string | null;
@@ -41643,6 +41849,7 @@ export class TrackingHistoryDto implements ITrackingHistoryDto {
41643
41849
  if (_data) {
41644
41850
  this.trackingId = _data["trackingId"];
41645
41851
  this.palletNumber = _data["palletNumber"];
41852
+ this.parcelKind = _data["parcelKind"];
41646
41853
  this.workOrderId = _data["workOrderId"];
41647
41854
  if (Array.isArray(_data["trackingEvents"])) {
41648
41855
  this.trackingEvents = [] as any;
@@ -41664,6 +41871,7 @@ export class TrackingHistoryDto implements ITrackingHistoryDto {
41664
41871
  data = typeof data === 'object' ? data : {};
41665
41872
  data["trackingId"] = this.trackingId;
41666
41873
  data["palletNumber"] = this.palletNumber;
41874
+ data["parcelKind"] = this.parcelKind;
41667
41875
  data["workOrderId"] = this.workOrderId;
41668
41876
  if (Array.isArray(this.trackingEvents)) {
41669
41877
  data["trackingEvents"] = [];
@@ -41678,6 +41886,7 @@ export class TrackingHistoryDto implements ITrackingHistoryDto {
41678
41886
  export interface ITrackingHistoryDto {
41679
41887
  trackingId: string;
41680
41888
  palletNumber: number;
41889
+ parcelKind: BookingKindDto;
41681
41890
  workOrderId: string;
41682
41891
  trackingEvents: TrackingEventDto[];
41683
41892
  material?: string | null;
@@ -41978,6 +42187,7 @@ export interface ITrackingHistoryUpdateDto {
41978
42187
 
41979
42188
  export class SearchWorkOrderDto implements ISearchWorkOrderDto {
41980
42189
  workOrderId!: string;
42190
+ matchCriteria!: SearchMatchCriteriaDto;
41981
42191
  items!: SearchWorkOrderItemDto[];
41982
42192
  partName?: string | null;
41983
42193
  partNumber?: string | null;
@@ -41997,6 +42207,7 @@ export class SearchWorkOrderDto implements ISearchWorkOrderDto {
41997
42207
  init(_data?: any) {
41998
42208
  if (_data) {
41999
42209
  this.workOrderId = _data["workOrderId"];
42210
+ this.matchCriteria = _data["matchCriteria"];
42000
42211
  if (Array.isArray(_data["items"])) {
42001
42212
  this.items = [] as any;
42002
42213
  for (let item of _data["items"])
@@ -42017,6 +42228,7 @@ export class SearchWorkOrderDto implements ISearchWorkOrderDto {
42017
42228
  toJSON(data?: any) {
42018
42229
  data = typeof data === 'object' ? data : {};
42019
42230
  data["workOrderId"] = this.workOrderId;
42231
+ data["matchCriteria"] = this.matchCriteria;
42020
42232
  if (Array.isArray(this.items)) {
42021
42233
  data["items"] = [];
42022
42234
  for (let item of this.items)
@@ -42030,11 +42242,14 @@ export class SearchWorkOrderDto implements ISearchWorkOrderDto {
42030
42242
 
42031
42243
  export interface ISearchWorkOrderDto {
42032
42244
  workOrderId: string;
42245
+ matchCriteria: SearchMatchCriteriaDto;
42033
42246
  items: SearchWorkOrderItemDto[];
42034
42247
  partName?: string | null;
42035
42248
  partNumber?: string | null;
42036
42249
  }
42037
42250
 
42251
+ export type SearchMatchCriteriaDto = "Tracking" | "WorkOrder" | "Parcel";
42252
+
42038
42253
  export class SearchWorkOrderItemDto implements ISearchWorkOrderItemDto {
42039
42254
  trackingId!: string;
42040
42255
  selected!: boolean;