@ignos/api-client 20240515.0.9279 → 20240524.0.9327

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.
@@ -6195,11 +6195,15 @@ export class LocateLocationsClient extends AuthorizedApiBase implements ILocateL
6195
6195
 
6196
6196
  export interface ILocateTrackingClient {
6197
6197
 
6198
- listTrackingHistory(workOrderId: string): Promise<TrackingHistoryDto>;
6198
+ listTrackingHistory(trackingId: string): Promise<TrackingHistoryDto>;
6199
6199
 
6200
- createTrackingEvent(workOrderId: string, locateTrackingUpdate: TrackingUpdateDto): Promise<TrackingHistoryDto>;
6200
+ listWorkOrderTrackingHistory(workOrderId: string): Promise<TrackingWorkOrderDto>;
6201
6201
 
6202
- updateTrackingEvent(workOrderId: string, trackingEventId: number, locateTrackingUpdate: TrackingUpdateDto): Promise<TrackingHistoryDto>;
6202
+ createTrackingEvents(locateTrackingUpdates: TrackingUpdateDto[]): Promise<void>;
6203
+
6204
+ createTrackingHistory(locateTrackingUpdates: TrackingHistoryUpdateDto[]): Promise<void>;
6205
+
6206
+ deleteTrackingHistory(locateTrackingUpdates: TrackingHistoryUpdateDto[]): Promise<void>;
6203
6207
 
6204
6208
  createLabel(workOrderId: string, palletCount: number | undefined): Promise<FileResponse>;
6205
6209
  }
@@ -6215,11 +6219,11 @@ export class LocateTrackingClient extends AuthorizedApiBase implements ILocateTr
6215
6219
  this.baseUrl = baseUrl ?? "";
6216
6220
  }
6217
6221
 
6218
- listTrackingHistory(workOrderId: string): Promise<TrackingHistoryDto> {
6219
- let url_ = this.baseUrl + "/locate/tracking/{workOrderId}";
6220
- if (workOrderId === undefined || workOrderId === null)
6221
- throw new Error("The parameter 'workOrderId' must be defined.");
6222
- url_ = url_.replace("{workOrderId}", encodeURIComponent("" + workOrderId));
6222
+ listTrackingHistory(trackingId: string): Promise<TrackingHistoryDto> {
6223
+ let url_ = this.baseUrl + "/locate/tracking/{trackingId}";
6224
+ if (trackingId === undefined || trackingId === null)
6225
+ throw new Error("The parameter 'trackingId' must be defined.");
6226
+ url_ = url_.replace("{trackingId}", encodeURIComponent("" + trackingId));
6223
6227
  url_ = url_.replace(/[?&]$/, "");
6224
6228
 
6225
6229
  let options_: RequestInit = {
@@ -6254,20 +6258,16 @@ export class LocateTrackingClient extends AuthorizedApiBase implements ILocateTr
6254
6258
  return Promise.resolve<TrackingHistoryDto>(null as any);
6255
6259
  }
6256
6260
 
6257
- createTrackingEvent(workOrderId: string, locateTrackingUpdate: TrackingUpdateDto): Promise<TrackingHistoryDto> {
6258
- let url_ = this.baseUrl + "/locate/tracking/{workOrderId}";
6261
+ listWorkOrderTrackingHistory(workOrderId: string): Promise<TrackingWorkOrderDto> {
6262
+ let url_ = this.baseUrl + "/locate/tracking/workorder/{workOrderId}";
6259
6263
  if (workOrderId === undefined || workOrderId === null)
6260
6264
  throw new Error("The parameter 'workOrderId' must be defined.");
6261
6265
  url_ = url_.replace("{workOrderId}", encodeURIComponent("" + workOrderId));
6262
6266
  url_ = url_.replace(/[?&]$/, "");
6263
6267
 
6264
- const content_ = JSON.stringify(locateTrackingUpdate);
6265
-
6266
6268
  let options_: RequestInit = {
6267
- body: content_,
6268
- method: "POST",
6269
+ method: "GET",
6269
6270
  headers: {
6270
- "Content-Type": "application/json",
6271
6271
  "Accept": "application/json"
6272
6272
  }
6273
6273
  };
@@ -6275,18 +6275,18 @@ export class LocateTrackingClient extends AuthorizedApiBase implements ILocateTr
6275
6275
  return this.transformOptions(options_).then(transformedOptions_ => {
6276
6276
  return this.http.fetch(url_, transformedOptions_);
6277
6277
  }).then((_response: Response) => {
6278
- return this.processCreateTrackingEvent(_response);
6278
+ return this.processListWorkOrderTrackingHistory(_response);
6279
6279
  });
6280
6280
  }
6281
6281
 
6282
- protected processCreateTrackingEvent(response: Response): Promise<TrackingHistoryDto> {
6282
+ protected processListWorkOrderTrackingHistory(response: Response): Promise<TrackingWorkOrderDto> {
6283
6283
  const status = response.status;
6284
6284
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
6285
6285
  if (status === 200) {
6286
6286
  return response.text().then((_responseText) => {
6287
6287
  let result200: any = null;
6288
6288
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
6289
- result200 = TrackingHistoryDto.fromJS(resultData200);
6289
+ result200 = TrackingWorkOrderDto.fromJS(resultData200);
6290
6290
  return result200;
6291
6291
  });
6292
6292
  } else if (status !== 200 && status !== 204) {
@@ -6294,53 +6294,115 @@ export class LocateTrackingClient extends AuthorizedApiBase implements ILocateTr
6294
6294
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
6295
6295
  });
6296
6296
  }
6297
- return Promise.resolve<TrackingHistoryDto>(null as any);
6297
+ return Promise.resolve<TrackingWorkOrderDto>(null as any);
6298
6298
  }
6299
6299
 
6300
- updateTrackingEvent(workOrderId: string, trackingEventId: number, locateTrackingUpdate: TrackingUpdateDto): Promise<TrackingHistoryDto> {
6301
- let url_ = this.baseUrl + "/locate/tracking/{workOrderId}/{trackingEventId}";
6302
- if (workOrderId === undefined || workOrderId === null)
6303
- throw new Error("The parameter 'workOrderId' must be defined.");
6304
- url_ = url_.replace("{workOrderId}", encodeURIComponent("" + workOrderId));
6305
- if (trackingEventId === undefined || trackingEventId === null)
6306
- throw new Error("The parameter 'trackingEventId' must be defined.");
6307
- url_ = url_.replace("{trackingEventId}", encodeURIComponent("" + trackingEventId));
6300
+ createTrackingEvents(locateTrackingUpdates: TrackingUpdateDto[]): Promise<void> {
6301
+ let url_ = this.baseUrl + "/locate/tracking/event";
6308
6302
  url_ = url_.replace(/[?&]$/, "");
6309
6303
 
6310
- const content_ = JSON.stringify(locateTrackingUpdate);
6304
+ const content_ = JSON.stringify(locateTrackingUpdates);
6311
6305
 
6312
6306
  let options_: RequestInit = {
6313
6307
  body: content_,
6314
- method: "PUT",
6308
+ method: "POST",
6315
6309
  headers: {
6316
6310
  "Content-Type": "application/json",
6317
- "Accept": "application/json"
6318
6311
  }
6319
6312
  };
6320
6313
 
6321
6314
  return this.transformOptions(options_).then(transformedOptions_ => {
6322
6315
  return this.http.fetch(url_, transformedOptions_);
6323
6316
  }).then((_response: Response) => {
6324
- return this.processUpdateTrackingEvent(_response);
6317
+ return this.processCreateTrackingEvents(_response);
6325
6318
  });
6326
6319
  }
6327
6320
 
6328
- protected processUpdateTrackingEvent(response: Response): Promise<TrackingHistoryDto> {
6321
+ protected processCreateTrackingEvents(response: Response): Promise<void> {
6329
6322
  const status = response.status;
6330
6323
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
6331
- if (status === 200) {
6324
+ if (status === 204) {
6332
6325
  return response.text().then((_responseText) => {
6333
- let result200: any = null;
6334
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
6335
- result200 = TrackingHistoryDto.fromJS(resultData200);
6336
- return result200;
6326
+ return;
6337
6327
  });
6338
6328
  } else if (status !== 200 && status !== 204) {
6339
6329
  return response.text().then((_responseText) => {
6340
6330
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
6341
6331
  });
6342
6332
  }
6343
- return Promise.resolve<TrackingHistoryDto>(null as any);
6333
+ return Promise.resolve<void>(null as any);
6334
+ }
6335
+
6336
+ createTrackingHistory(locateTrackingUpdates: TrackingHistoryUpdateDto[]): Promise<void> {
6337
+ let url_ = this.baseUrl + "/locate/tracking/history";
6338
+ url_ = url_.replace(/[?&]$/, "");
6339
+
6340
+ const content_ = JSON.stringify(locateTrackingUpdates);
6341
+
6342
+ let options_: RequestInit = {
6343
+ body: content_,
6344
+ method: "POST",
6345
+ headers: {
6346
+ "Content-Type": "application/json",
6347
+ }
6348
+ };
6349
+
6350
+ return this.transformOptions(options_).then(transformedOptions_ => {
6351
+ return this.http.fetch(url_, transformedOptions_);
6352
+ }).then((_response: Response) => {
6353
+ return this.processCreateTrackingHistory(_response);
6354
+ });
6355
+ }
6356
+
6357
+ protected processCreateTrackingHistory(response: Response): Promise<void> {
6358
+ const status = response.status;
6359
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
6360
+ if (status === 204) {
6361
+ return response.text().then((_responseText) => {
6362
+ return;
6363
+ });
6364
+ } else if (status !== 200 && status !== 204) {
6365
+ return response.text().then((_responseText) => {
6366
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
6367
+ });
6368
+ }
6369
+ return Promise.resolve<void>(null as any);
6370
+ }
6371
+
6372
+ deleteTrackingHistory(locateTrackingUpdates: TrackingHistoryUpdateDto[]): Promise<void> {
6373
+ let url_ = this.baseUrl + "/locate/tracking/history";
6374
+ url_ = url_.replace(/[?&]$/, "");
6375
+
6376
+ const content_ = JSON.stringify(locateTrackingUpdates);
6377
+
6378
+ let options_: RequestInit = {
6379
+ body: content_,
6380
+ method: "DELETE",
6381
+ headers: {
6382
+ "Content-Type": "application/json",
6383
+ }
6384
+ };
6385
+
6386
+ return this.transformOptions(options_).then(transformedOptions_ => {
6387
+ return this.http.fetch(url_, transformedOptions_);
6388
+ }).then((_response: Response) => {
6389
+ return this.processDeleteTrackingHistory(_response);
6390
+ });
6391
+ }
6392
+
6393
+ protected processDeleteTrackingHistory(response: Response): Promise<void> {
6394
+ const status = response.status;
6395
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
6396
+ if (status === 204) {
6397
+ return response.text().then((_responseText) => {
6398
+ return;
6399
+ });
6400
+ } else if (status !== 200 && status !== 204) {
6401
+ return response.text().then((_responseText) => {
6402
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
6403
+ });
6404
+ }
6405
+ return Promise.resolve<void>(null as any);
6344
6406
  }
6345
6407
 
6346
6408
  createLabel(workOrderId: string, palletCount: number | undefined): Promise<FileResponse> {
@@ -18124,7 +18186,7 @@ export interface IWorkordersClient {
18124
18186
  */
18125
18187
  upsertWorkorderTraces(id: string, request: UpsertWorkOrderTracesRequest): Promise<void>;
18126
18188
 
18127
- setWorkorderCustomerOrderReference(id: string, request: WorkorderCustomerOrderReferenceDto): Promise<void>;
18189
+ setWorkorderCustomerOrderReference(id: string, request: WorkorderCustomerOrderReferenceDto | undefined): Promise<void>;
18128
18190
 
18129
18191
  checkResourceStatus(id: string): Promise<ResourceExistDto>;
18130
18192
 
@@ -18476,7 +18538,7 @@ export class WorkordersClient extends AuthorizedApiBase implements IWorkordersCl
18476
18538
  return Promise.resolve<void>(null as any);
18477
18539
  }
18478
18540
 
18479
- setWorkorderCustomerOrderReference(id: string, request: WorkorderCustomerOrderReferenceDto): Promise<void> {
18541
+ setWorkorderCustomerOrderReference(id: string, request: WorkorderCustomerOrderReferenceDto | undefined): Promise<void> {
18480
18542
  let url_ = this.baseUrl + "/erp/workorders/{id}/customerorderreference";
18481
18543
  if (id === undefined || id === null)
18482
18544
  throw new Error("The parameter 'id' must be defined.");
@@ -25640,6 +25702,7 @@ export class CreateMeasuringToolRequest implements ICreateMeasuringToolRequest {
25640
25702
  precision?: string | null;
25641
25703
  uploadKey?: string | null;
25642
25704
  filename?: string | null;
25705
+ initialCalibrationDate?: Date | null;
25643
25706
 
25644
25707
  constructor(data?: ICreateMeasuringToolRequest) {
25645
25708
  if (data) {
@@ -25667,6 +25730,7 @@ export class CreateMeasuringToolRequest implements ICreateMeasuringToolRequest {
25667
25730
  this.precision = _data["precision"];
25668
25731
  this.uploadKey = _data["uploadKey"];
25669
25732
  this.filename = _data["filename"];
25733
+ this.initialCalibrationDate = _data["initialCalibrationDate"] ? new Date(_data["initialCalibrationDate"].toString()) : <any>undefined;
25670
25734
  }
25671
25735
  }
25672
25736
 
@@ -25694,6 +25758,7 @@ export class CreateMeasuringToolRequest implements ICreateMeasuringToolRequest {
25694
25758
  data["precision"] = this.precision;
25695
25759
  data["uploadKey"] = this.uploadKey;
25696
25760
  data["filename"] = this.filename;
25761
+ data["initialCalibrationDate"] = this.initialCalibrationDate ? this.initialCalibrationDate.toISOString() : <any>undefined;
25697
25762
  return data;
25698
25763
  }
25699
25764
  }
@@ -25714,6 +25779,7 @@ export interface ICreateMeasuringToolRequest {
25714
25779
  precision?: string | null;
25715
25780
  uploadKey?: string | null;
25716
25781
  filename?: string | null;
25782
+ initialCalibrationDate?: Date | null;
25717
25783
  }
25718
25784
 
25719
25785
  export class UpdateMeasuringToolRequest implements IUpdateMeasuringToolRequest {
@@ -28048,6 +28114,7 @@ export interface IMachineGroupUtilizationDto {
28048
28114
  }
28049
28115
 
28050
28116
  export class MachineUtilizationV2Dto implements IMachineUtilizationV2Dto {
28117
+ id?: number;
28051
28118
  name!: string;
28052
28119
  description?: string | null;
28053
28120
  utilization!: UtilizationDto;
@@ -28066,6 +28133,7 @@ export class MachineUtilizationV2Dto implements IMachineUtilizationV2Dto {
28066
28133
 
28067
28134
  init(_data?: any) {
28068
28135
  if (_data) {
28136
+ this.id = _data["id"];
28069
28137
  this.name = _data["name"];
28070
28138
  this.description = _data["description"];
28071
28139
  this.utilization = _data["utilization"] ? UtilizationDto.fromJS(_data["utilization"]) : new UtilizationDto();
@@ -28081,6 +28149,7 @@ export class MachineUtilizationV2Dto implements IMachineUtilizationV2Dto {
28081
28149
 
28082
28150
  toJSON(data?: any) {
28083
28151
  data = typeof data === 'object' ? data : {};
28152
+ data["id"] = this.id;
28084
28153
  data["name"] = this.name;
28085
28154
  data["description"] = this.description;
28086
28155
  data["utilization"] = this.utilization ? this.utilization.toJSON() : <any>undefined;
@@ -28089,6 +28158,7 @@ export class MachineUtilizationV2Dto implements IMachineUtilizationV2Dto {
28089
28158
  }
28090
28159
 
28091
28160
  export interface IMachineUtilizationV2Dto {
28161
+ id?: number;
28092
28162
  name: string;
28093
28163
  description?: string | null;
28094
28164
  utilization: UtilizationDto;
@@ -28720,9 +28790,10 @@ export interface ILocationDto {
28720
28790
  export type LocationKindDto = "Warehouse" | "Zone" | "Location";
28721
28791
 
28722
28792
  export class TrackingHistoryDto implements ITrackingHistoryDto {
28793
+ trackingId!: string;
28794
+ palletNumber!: number;
28723
28795
  workOrderId!: string;
28724
28796
  trackingEvents!: TrackingEventDto[];
28725
- part!: PartDto;
28726
28797
 
28727
28798
  constructor(data?: ITrackingHistoryDto) {
28728
28799
  if (data) {
@@ -28733,19 +28804,19 @@ export class TrackingHistoryDto implements ITrackingHistoryDto {
28733
28804
  }
28734
28805
  if (!data) {
28735
28806
  this.trackingEvents = [];
28736
- this.part = new PartDto();
28737
28807
  }
28738
28808
  }
28739
28809
 
28740
28810
  init(_data?: any) {
28741
28811
  if (_data) {
28812
+ this.trackingId = _data["trackingId"];
28813
+ this.palletNumber = _data["palletNumber"];
28742
28814
  this.workOrderId = _data["workOrderId"];
28743
28815
  if (Array.isArray(_data["trackingEvents"])) {
28744
28816
  this.trackingEvents = [] as any;
28745
28817
  for (let item of _data["trackingEvents"])
28746
28818
  this.trackingEvents!.push(TrackingEventDto.fromJS(item));
28747
28819
  }
28748
- this.part = _data["part"] ? PartDto.fromJS(_data["part"]) : new PartDto();
28749
28820
  }
28750
28821
  }
28751
28822
 
@@ -28758,33 +28829,33 @@ export class TrackingHistoryDto implements ITrackingHistoryDto {
28758
28829
 
28759
28830
  toJSON(data?: any) {
28760
28831
  data = typeof data === 'object' ? data : {};
28832
+ data["trackingId"] = this.trackingId;
28833
+ data["palletNumber"] = this.palletNumber;
28761
28834
  data["workOrderId"] = this.workOrderId;
28762
28835
  if (Array.isArray(this.trackingEvents)) {
28763
28836
  data["trackingEvents"] = [];
28764
28837
  for (let item of this.trackingEvents)
28765
28838
  data["trackingEvents"].push(item.toJSON());
28766
28839
  }
28767
- data["part"] = this.part ? this.part.toJSON() : <any>undefined;
28768
28840
  return data;
28769
28841
  }
28770
28842
  }
28771
28843
 
28772
28844
  export interface ITrackingHistoryDto {
28845
+ trackingId: string;
28846
+ palletNumber: number;
28773
28847
  workOrderId: string;
28774
28848
  trackingEvents: TrackingEventDto[];
28775
- part: PartDto;
28776
28849
  }
28777
28850
 
28778
28851
  export class TrackingEventDto implements ITrackingEventDto {
28779
28852
  id!: number;
28780
28853
  created!: Date;
28781
28854
  createdBy!: string;
28782
- updated!: Date;
28783
- updatedBy!: string;
28784
28855
  location!: LocationDto;
28785
- active!: boolean;
28786
- comments?: string | null;
28787
- pallets?: number | null;
28856
+ status!: TrackingStatusDto;
28857
+ bookingId?: string | null;
28858
+ comment?: string | null;
28788
28859
 
28789
28860
  constructor(data?: ITrackingEventDto) {
28790
28861
  if (data) {
@@ -28803,12 +28874,10 @@ export class TrackingEventDto implements ITrackingEventDto {
28803
28874
  this.id = _data["id"];
28804
28875
  this.created = _data["created"] ? new Date(_data["created"].toString()) : <any>undefined;
28805
28876
  this.createdBy = _data["createdBy"];
28806
- this.updated = _data["updated"] ? new Date(_data["updated"].toString()) : <any>undefined;
28807
- this.updatedBy = _data["updatedBy"];
28808
28877
  this.location = _data["location"] ? LocationDto.fromJS(_data["location"]) : new LocationDto();
28809
- this.active = _data["active"];
28810
- this.comments = _data["comments"];
28811
- this.pallets = _data["pallets"];
28878
+ this.status = _data["status"];
28879
+ this.bookingId = _data["bookingId"];
28880
+ this.comment = _data["comment"];
28812
28881
  }
28813
28882
  }
28814
28883
 
@@ -28824,12 +28893,10 @@ export class TrackingEventDto implements ITrackingEventDto {
28824
28893
  data["id"] = this.id;
28825
28894
  data["created"] = this.created ? this.created.toISOString() : <any>undefined;
28826
28895
  data["createdBy"] = this.createdBy;
28827
- data["updated"] = this.updated ? this.updated.toISOString() : <any>undefined;
28828
- data["updatedBy"] = this.updatedBy;
28829
28896
  data["location"] = this.location ? this.location.toJSON() : <any>undefined;
28830
- data["active"] = this.active;
28831
- data["comments"] = this.comments;
28832
- data["pallets"] = this.pallets;
28897
+ data["status"] = this.status;
28898
+ data["bookingId"] = this.bookingId;
28899
+ data["comment"] = this.comment;
28833
28900
  return data;
28834
28901
  }
28835
28902
  }
@@ -28838,18 +28905,74 @@ export interface ITrackingEventDto {
28838
28905
  id: number;
28839
28906
  created: Date;
28840
28907
  createdBy: string;
28841
- updated: Date;
28842
- updatedBy: string;
28843
28908
  location: LocationDto;
28844
- active: boolean;
28845
- comments?: string | null;
28846
- pallets?: number | null;
28909
+ status: TrackingStatusDto;
28910
+ bookingId?: string | null;
28911
+ comment?: string | null;
28912
+ }
28913
+
28914
+ export type TrackingStatusDto = "Manual" | "BookingPending" | "BookingCancelled" | "BookingInProgress" | "BookingComplete";
28915
+
28916
+ export class TrackingWorkOrderDto implements ITrackingWorkOrderDto {
28917
+ workOrderId!: string;
28918
+ part!: PartDto;
28919
+ trackingHistory!: TrackingHistoryDto[];
28920
+
28921
+ constructor(data?: ITrackingWorkOrderDto) {
28922
+ if (data) {
28923
+ for (var property in data) {
28924
+ if (data.hasOwnProperty(property))
28925
+ (<any>this)[property] = (<any>data)[property];
28926
+ }
28927
+ }
28928
+ if (!data) {
28929
+ this.part = new PartDto();
28930
+ this.trackingHistory = [];
28931
+ }
28932
+ }
28933
+
28934
+ init(_data?: any) {
28935
+ if (_data) {
28936
+ this.workOrderId = _data["workOrderId"];
28937
+ this.part = _data["part"] ? PartDto.fromJS(_data["part"]) : new PartDto();
28938
+ if (Array.isArray(_data["trackingHistory"])) {
28939
+ this.trackingHistory = [] as any;
28940
+ for (let item of _data["trackingHistory"])
28941
+ this.trackingHistory!.push(TrackingHistoryDto.fromJS(item));
28942
+ }
28943
+ }
28944
+ }
28945
+
28946
+ static fromJS(data: any): TrackingWorkOrderDto {
28947
+ data = typeof data === 'object' ? data : {};
28948
+ let result = new TrackingWorkOrderDto();
28949
+ result.init(data);
28950
+ return result;
28951
+ }
28952
+
28953
+ toJSON(data?: any) {
28954
+ data = typeof data === 'object' ? data : {};
28955
+ data["workOrderId"] = this.workOrderId;
28956
+ data["part"] = this.part ? this.part.toJSON() : <any>undefined;
28957
+ if (Array.isArray(this.trackingHistory)) {
28958
+ data["trackingHistory"] = [];
28959
+ for (let item of this.trackingHistory)
28960
+ data["trackingHistory"].push(item.toJSON());
28961
+ }
28962
+ return data;
28963
+ }
28964
+ }
28965
+
28966
+ export interface ITrackingWorkOrderDto {
28967
+ workOrderId: string;
28968
+ part: PartDto;
28969
+ trackingHistory: TrackingHistoryDto[];
28847
28970
  }
28848
28971
 
28849
28972
  export class TrackingUpdateDto implements ITrackingUpdateDto {
28973
+ trackingId!: string;
28850
28974
  locationId!: string;
28851
- comments?: string | null;
28852
- pallets?: number | null;
28975
+ comment?: string | null;
28853
28976
 
28854
28977
  constructor(data?: ITrackingUpdateDto) {
28855
28978
  if (data) {
@@ -28862,9 +28985,9 @@ export class TrackingUpdateDto implements ITrackingUpdateDto {
28862
28985
 
28863
28986
  init(_data?: any) {
28864
28987
  if (_data) {
28988
+ this.trackingId = _data["trackingId"];
28865
28989
  this.locationId = _data["locationId"];
28866
- this.comments = _data["comments"];
28867
- this.pallets = _data["pallets"];
28990
+ this.comment = _data["comment"];
28868
28991
  }
28869
28992
  }
28870
28993
 
@@ -28877,17 +29000,61 @@ export class TrackingUpdateDto implements ITrackingUpdateDto {
28877
29000
 
28878
29001
  toJSON(data?: any) {
28879
29002
  data = typeof data === 'object' ? data : {};
29003
+ data["trackingId"] = this.trackingId;
28880
29004
  data["locationId"] = this.locationId;
28881
- data["comments"] = this.comments;
28882
- data["pallets"] = this.pallets;
29005
+ data["comment"] = this.comment;
28883
29006
  return data;
28884
29007
  }
28885
29008
  }
28886
29009
 
28887
29010
  export interface ITrackingUpdateDto {
29011
+ trackingId: string;
28888
29012
  locationId: string;
28889
- comments?: string | null;
28890
- pallets?: number | null;
29013
+ comment?: string | null;
29014
+ }
29015
+
29016
+ export class TrackingHistoryUpdateDto implements ITrackingHistoryUpdateDto {
29017
+ workOrderId!: string;
29018
+ locationId!: string;
29019
+ comment?: string | null;
29020
+
29021
+ constructor(data?: ITrackingHistoryUpdateDto) {
29022
+ if (data) {
29023
+ for (var property in data) {
29024
+ if (data.hasOwnProperty(property))
29025
+ (<any>this)[property] = (<any>data)[property];
29026
+ }
29027
+ }
29028
+ }
29029
+
29030
+ init(_data?: any) {
29031
+ if (_data) {
29032
+ this.workOrderId = _data["workOrderId"];
29033
+ this.locationId = _data["locationId"];
29034
+ this.comment = _data["comment"];
29035
+ }
29036
+ }
29037
+
29038
+ static fromJS(data: any): TrackingHistoryUpdateDto {
29039
+ data = typeof data === 'object' ? data : {};
29040
+ let result = new TrackingHistoryUpdateDto();
29041
+ result.init(data);
29042
+ return result;
29043
+ }
29044
+
29045
+ toJSON(data?: any) {
29046
+ data = typeof data === 'object' ? data : {};
29047
+ data["workOrderId"] = this.workOrderId;
29048
+ data["locationId"] = this.locationId;
29049
+ data["comment"] = this.comment;
29050
+ return data;
29051
+ }
29052
+ }
29053
+
29054
+ export interface ITrackingHistoryUpdateDto {
29055
+ workOrderId: string;
29056
+ locationId: string;
29057
+ comment?: string | null;
28891
29058
  }
28892
29059
 
28893
29060
  export class SearchWorkOrderDto implements ISearchWorkOrderDto {
@@ -32683,6 +32850,7 @@ export class CncToolDto implements ICncToolDto {
32683
32850
  diameter?: number | null;
32684
32851
  grade?: string | null;
32685
32852
  radius?: number | null;
32853
+ chamfer?: number | null;
32686
32854
  width?: number | null;
32687
32855
  pitch?: string | null;
32688
32856
  length?: number | null;
@@ -32719,6 +32887,7 @@ export class CncToolDto implements ICncToolDto {
32719
32887
  this.diameter = _data["diameter"];
32720
32888
  this.grade = _data["grade"];
32721
32889
  this.radius = _data["radius"];
32890
+ this.chamfer = _data["chamfer"];
32722
32891
  this.width = _data["width"];
32723
32892
  this.pitch = _data["pitch"];
32724
32893
  this.length = _data["length"];
@@ -32759,6 +32928,7 @@ export class CncToolDto implements ICncToolDto {
32759
32928
  data["diameter"] = this.diameter;
32760
32929
  data["grade"] = this.grade;
32761
32930
  data["radius"] = this.radius;
32931
+ data["chamfer"] = this.chamfer;
32762
32932
  data["width"] = this.width;
32763
32933
  data["pitch"] = this.pitch;
32764
32934
  data["length"] = this.length;
@@ -32792,6 +32962,7 @@ export interface ICncToolDto {
32792
32962
  diameter?: number | null;
32793
32963
  grade?: string | null;
32794
32964
  radius?: number | null;
32965
+ chamfer?: number | null;
32795
32966
  width?: number | null;
32796
32967
  pitch?: string | null;
32797
32968
  length?: number | null;
@@ -33136,6 +33307,8 @@ export class CncToolSubTypeDto implements ICncToolSubTypeDto {
33136
33307
  gradeHelperText!: string;
33137
33308
  radius!: boolean;
33138
33309
  radiusHelperText!: string;
33310
+ chamfer!: boolean;
33311
+ chamferHelperText!: string;
33139
33312
  width!: boolean;
33140
33313
  widthHelperText!: string;
33141
33314
  pitch!: boolean;
@@ -33181,6 +33354,8 @@ export class CncToolSubTypeDto implements ICncToolSubTypeDto {
33181
33354
  this.gradeHelperText = _data["gradeHelperText"];
33182
33355
  this.radius = _data["radius"];
33183
33356
  this.radiusHelperText = _data["radiusHelperText"];
33357
+ this.chamfer = _data["chamfer"];
33358
+ this.chamferHelperText = _data["chamferHelperText"];
33184
33359
  this.width = _data["width"];
33185
33360
  this.widthHelperText = _data["widthHelperText"];
33186
33361
  this.pitch = _data["pitch"];
@@ -33226,6 +33401,8 @@ export class CncToolSubTypeDto implements ICncToolSubTypeDto {
33226
33401
  data["gradeHelperText"] = this.gradeHelperText;
33227
33402
  data["radius"] = this.radius;
33228
33403
  data["radiusHelperText"] = this.radiusHelperText;
33404
+ data["chamfer"] = this.chamfer;
33405
+ data["chamferHelperText"] = this.chamferHelperText;
33229
33406
  data["width"] = this.width;
33230
33407
  data["widthHelperText"] = this.widthHelperText;
33231
33408
  data["pitch"] = this.pitch;
@@ -33264,6 +33441,8 @@ export interface ICncToolSubTypeDto {
33264
33441
  gradeHelperText: string;
33265
33442
  radius: boolean;
33266
33443
  radiusHelperText: string;
33444
+ chamfer: boolean;
33445
+ chamferHelperText: string;
33267
33446
  width: boolean;
33268
33447
  widthHelperText: string;
33269
33448
  pitch: boolean;
@@ -33296,6 +33475,7 @@ export class CreateCncMachineOperationToolRequest implements ICreateCncMachineOp
33296
33475
  diameter?: number | null;
33297
33476
  grade?: string | null;
33298
33477
  radius?: number | null;
33478
+ chamfer?: number | null;
33299
33479
  width?: number | null;
33300
33480
  pitch?: string | null;
33301
33481
  length?: number | null;
@@ -33327,6 +33507,7 @@ export class CreateCncMachineOperationToolRequest implements ICreateCncMachineOp
33327
33507
  this.diameter = _data["diameter"];
33328
33508
  this.grade = _data["grade"];
33329
33509
  this.radius = _data["radius"];
33510
+ this.chamfer = _data["chamfer"];
33330
33511
  this.width = _data["width"];
33331
33512
  this.pitch = _data["pitch"];
33332
33513
  this.length = _data["length"];
@@ -33358,6 +33539,7 @@ export class CreateCncMachineOperationToolRequest implements ICreateCncMachineOp
33358
33539
  data["diameter"] = this.diameter;
33359
33540
  data["grade"] = this.grade;
33360
33541
  data["radius"] = this.radius;
33542
+ data["chamfer"] = this.chamfer;
33361
33543
  data["width"] = this.width;
33362
33544
  data["pitch"] = this.pitch;
33363
33545
  data["length"] = this.length;
@@ -33382,6 +33564,7 @@ export interface ICreateCncMachineOperationToolRequest {
33382
33564
  diameter?: number | null;
33383
33565
  grade?: string | null;
33384
33566
  radius?: number | null;
33567
+ chamfer?: number | null;
33385
33568
  width?: number | null;
33386
33569
  pitch?: string | null;
33387
33570
  length?: number | null;
@@ -33404,6 +33587,7 @@ export class UpdateCncMachineOperationToolRequest implements IUpdateCncMachineOp
33404
33587
  diameter?: number | null;
33405
33588
  grade?: string | null;
33406
33589
  radius?: number | null;
33590
+ chamfer?: number | null;
33407
33591
  width?: number | null;
33408
33592
  pitch?: string | null;
33409
33593
  length?: number | null;
@@ -33435,6 +33619,7 @@ export class UpdateCncMachineOperationToolRequest implements IUpdateCncMachineOp
33435
33619
  this.diameter = _data["diameter"];
33436
33620
  this.grade = _data["grade"];
33437
33621
  this.radius = _data["radius"];
33622
+ this.chamfer = _data["chamfer"];
33438
33623
  this.width = _data["width"];
33439
33624
  this.pitch = _data["pitch"];
33440
33625
  this.length = _data["length"];
@@ -33466,6 +33651,7 @@ export class UpdateCncMachineOperationToolRequest implements IUpdateCncMachineOp
33466
33651
  data["diameter"] = this.diameter;
33467
33652
  data["grade"] = this.grade;
33468
33653
  data["radius"] = this.radius;
33654
+ data["chamfer"] = this.chamfer;
33469
33655
  data["width"] = this.width;
33470
33656
  data["pitch"] = this.pitch;
33471
33657
  data["length"] = this.length;
@@ -33490,6 +33676,7 @@ export interface IUpdateCncMachineOperationToolRequest {
33490
33676
  diameter?: number | null;
33491
33677
  grade?: string | null;
33492
33678
  radius?: number | null;
33679
+ chamfer?: number | null;
33493
33680
  width?: number | null;
33494
33681
  pitch?: string | null;
33495
33682
  length?: number | null;
@@ -33552,6 +33739,7 @@ export class UpdateCncMachineToolRequest implements IUpdateCncMachineToolRequest
33552
33739
  diameter?: number | null;
33553
33740
  grade?: string | null;
33554
33741
  radius?: number | null;
33742
+ chamfer?: number | null;
33555
33743
  width?: number | null;
33556
33744
  pitch?: string | null;
33557
33745
  length?: number | null;
@@ -33583,6 +33771,7 @@ export class UpdateCncMachineToolRequest implements IUpdateCncMachineToolRequest
33583
33771
  this.diameter = _data["diameter"];
33584
33772
  this.grade = _data["grade"];
33585
33773
  this.radius = _data["radius"];
33774
+ this.chamfer = _data["chamfer"];
33586
33775
  this.width = _data["width"];
33587
33776
  this.pitch = _data["pitch"];
33588
33777
  this.length = _data["length"];
@@ -33614,6 +33803,7 @@ export class UpdateCncMachineToolRequest implements IUpdateCncMachineToolRequest
33614
33803
  data["diameter"] = this.diameter;
33615
33804
  data["grade"] = this.grade;
33616
33805
  data["radius"] = this.radius;
33806
+ data["chamfer"] = this.chamfer;
33617
33807
  data["width"] = this.width;
33618
33808
  data["pitch"] = this.pitch;
33619
33809
  data["length"] = this.length;
@@ -33638,6 +33828,7 @@ export interface IUpdateCncMachineToolRequest {
33638
33828
  diameter?: number | null;
33639
33829
  grade?: string | null;
33640
33830
  radius?: number | null;
33831
+ chamfer?: number | null;
33641
33832
  width?: number | null;
33642
33833
  pitch?: string | null;
33643
33834
  length?: number | null;