@ignos/api-client 20240626.0.9651 → 20240701.0.9700

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.
@@ -1546,7 +1546,33 @@ export declare class MoveLocationsClient extends AuthorizedApiBase implements IM
1546
1546
  suggestionsLocations(locationSuggestions: LocationSuggestionsDto): Promise<LocationDto[]>;
1547
1547
  protected processSuggestionsLocations(response: Response): Promise<LocationDto[]>;
1548
1548
  }
1549
+ export interface IMoveMaterialsClient {
1550
+ listMaterials(): Promise<MaterialDesciptionDto[]>;
1551
+ addMaterial(update: MaterialUpdateDto): Promise<MaterialDesciptionDto>;
1552
+ removeMaterial(materialId: string): Promise<void>;
1553
+ updateMaterial(materialId: string, update: MaterialUpdateDto): Promise<MaterialDesciptionDto>;
1554
+ importMaterials(request: FileParameter | null | undefined): Promise<void>;
1555
+ }
1556
+ export declare class MoveMaterialsClient extends AuthorizedApiBase implements IMoveMaterialsClient {
1557
+ private http;
1558
+ private baseUrl;
1559
+ protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
1560
+ constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
1561
+ fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
1562
+ });
1563
+ listMaterials(): Promise<MaterialDesciptionDto[]>;
1564
+ protected processListMaterials(response: Response): Promise<MaterialDesciptionDto[]>;
1565
+ addMaterial(update: MaterialUpdateDto): Promise<MaterialDesciptionDto>;
1566
+ protected processAddMaterial(response: Response): Promise<MaterialDesciptionDto>;
1567
+ removeMaterial(materialId: string): Promise<void>;
1568
+ protected processRemoveMaterial(response: Response): Promise<void>;
1569
+ updateMaterial(materialId: string, update: MaterialUpdateDto): Promise<MaterialDesciptionDto>;
1570
+ protected processUpdateMaterial(response: Response): Promise<MaterialDesciptionDto>;
1571
+ importMaterials(request: FileParameter | null | undefined): Promise<void>;
1572
+ protected processImportMaterials(response: Response): Promise<void>;
1573
+ }
1549
1574
  export interface IMoveTrackingClient {
1575
+ listTrackingHistory(request: TrackingRequestListDto): Promise<TrackingHistoryListDto>;
1550
1576
  getTrackingHistory(trackingId: string): Promise<TrackingHistoryDto>;
1551
1577
  getWorkOrderTrackingHistory(workOrderId: string): Promise<TrackingWorkOrderDto>;
1552
1578
  listWorkOrderTrackingHistory(workOrderIds: string[]): Promise<TrackingWorkOrderDto[]>;
@@ -1562,6 +1588,8 @@ export declare class MoveTrackingClient extends AuthorizedApiBase implements IMo
1562
1588
  constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
1563
1589
  fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
1564
1590
  });
1591
+ listTrackingHistory(request: TrackingRequestListDto): Promise<TrackingHistoryListDto>;
1592
+ protected processListTrackingHistory(response: Response): Promise<TrackingHistoryListDto>;
1565
1593
  getTrackingHistory(trackingId: string): Promise<TrackingHistoryDto>;
1566
1594
  protected processGetTrackingHistory(response: Response): Promise<TrackingHistoryDto>;
1567
1595
  getWorkOrderTrackingHistory(workOrderId: string): Promise<TrackingWorkOrderDto>;
@@ -8703,7 +8731,13 @@ export interface ILocationDto {
8703
8731
  export type LocationKindDto = "Warehouse" | "Zone" | "Location";
8704
8732
  export declare class BookingRequestListDto implements IBookingRequestListDto {
8705
8733
  pageSize?: number | null;
8734
+ workOrderIdFilter?: string[] | null;
8735
+ materialFilter?: string[] | null;
8736
+ locationIdFromFilter?: string[] | null;
8737
+ locationIdToFilter?: string[] | null;
8706
8738
  bookingStatusFilter?: BookingStatusDto[] | null;
8739
+ bookingKindFilter?: BookingKindDto[] | null;
8740
+ transportKindFilter?: TransportKindDto[] | null;
8707
8741
  bookingOrder?: BookingOrderDto;
8708
8742
  continuationToken?: string | null;
8709
8743
  constructor(data?: IBookingRequestListDto);
@@ -8713,7 +8747,13 @@ export declare class BookingRequestListDto implements IBookingRequestListDto {
8713
8747
  }
8714
8748
  export interface IBookingRequestListDto {
8715
8749
  pageSize?: number | null;
8750
+ workOrderIdFilter?: string[] | null;
8751
+ materialFilter?: string[] | null;
8752
+ locationIdFromFilter?: string[] | null;
8753
+ locationIdToFilter?: string[] | null;
8716
8754
  bookingStatusFilter?: BookingStatusDto[] | null;
8755
+ bookingKindFilter?: BookingKindDto[] | null;
8756
+ transportKindFilter?: TransportKindDto[] | null;
8717
8757
  bookingOrder?: BookingOrderDto;
8718
8758
  continuationToken?: string | null;
8719
8759
  }
@@ -8846,6 +8886,45 @@ export declare class LocationSuggestionsItemDto implements ILocationSuggestionsI
8846
8886
  export interface ILocationSuggestionsItemDto {
8847
8887
  workOrderId: string;
8848
8888
  }
8889
+ export declare class MaterialDesciptionDto implements IMaterialDesciptionDto {
8890
+ materialId: string;
8891
+ materialName: string;
8892
+ covered: MaterialCoveredDto;
8893
+ constructor(data?: IMaterialDesciptionDto);
8894
+ init(_data?: any): void;
8895
+ static fromJS(data: any): MaterialDesciptionDto;
8896
+ toJSON(data?: any): any;
8897
+ }
8898
+ export interface IMaterialDesciptionDto {
8899
+ materialId: string;
8900
+ materialName: string;
8901
+ covered: MaterialCoveredDto;
8902
+ }
8903
+ export type MaterialCoveredDto = "NotDefined" | "NotCovered" | "Covered";
8904
+ export declare class MaterialUpdateDto implements IMaterialUpdateDto {
8905
+ materialName: string;
8906
+ covered: MaterialCoveredDto;
8907
+ constructor(data?: IMaterialUpdateDto);
8908
+ init(_data?: any): void;
8909
+ static fromJS(data: any): MaterialUpdateDto;
8910
+ toJSON(data?: any): any;
8911
+ }
8912
+ export interface IMaterialUpdateDto {
8913
+ materialName: string;
8914
+ covered: MaterialCoveredDto;
8915
+ }
8916
+ export declare class TrackingHistoryListDto implements ITrackingHistoryListDto {
8917
+ results: TrackingHistoryDto[];
8918
+ continuationToken?: string | null;
8919
+ constructor(data?: ITrackingHistoryListDto);
8920
+ init(_data?: any): void;
8921
+ static fromJS(data: any): TrackingHistoryListDto;
8922
+ toJSON(data?: any): any;
8923
+ }
8924
+ export interface ITrackingHistoryListDto {
8925
+ results: TrackingHistoryDto[];
8926
+ continuationToken?: string | null;
8927
+ }
8849
8928
  export declare class TrackingHistoryDto implements ITrackingHistoryDto {
8850
8929
  trackingId: string;
8851
8930
  palletNumber: number;
@@ -8887,6 +8966,24 @@ export interface ITrackingEventDto {
8887
8966
  comment?: string | null;
8888
8967
  }
8889
8968
  export type TrackingStatusDto = "Manual" | "Pending" | "Cancelled" | "InProgress" | "Completed";
8969
+ export declare class TrackingRequestListDto implements ITrackingRequestListDto {
8970
+ pageSize?: number | null;
8971
+ workOrderIdFilter?: string[] | null;
8972
+ locationIdFilter?: string[] | null;
8973
+ materialFilter?: string[] | null;
8974
+ continuationToken?: string | null;
8975
+ constructor(data?: ITrackingRequestListDto);
8976
+ init(_data?: any): void;
8977
+ static fromJS(data: any): TrackingRequestListDto;
8978
+ toJSON(data?: any): any;
8979
+ }
8980
+ export interface ITrackingRequestListDto {
8981
+ pageSize?: number | null;
8982
+ workOrderIdFilter?: string[] | null;
8983
+ locationIdFilter?: string[] | null;
8984
+ materialFilter?: string[] | null;
8985
+ continuationToken?: string | null;
8986
+ }
8890
8987
  export declare class TrackingWorkOrderDto implements ITrackingWorkOrderDto {
8891
8988
  workOrderId: string;
8892
8989
  part?: PartDto | null;
@@ -12761,6 +12761,209 @@ export class MoveLocationsClient extends AuthorizedApiBase {
12761
12761
  return Promise.resolve(null);
12762
12762
  }
12763
12763
  }
12764
+ export class MoveMaterialsClient extends AuthorizedApiBase {
12765
+ constructor(configuration, baseUrl, http) {
12766
+ super(configuration);
12767
+ this.jsonParseReviver = undefined;
12768
+ this.http = http ? http : window;
12769
+ this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
12770
+ }
12771
+ listMaterials() {
12772
+ let url_ = this.baseUrl + "/move/materials/list";
12773
+ url_ = url_.replace(/[?&]$/, "");
12774
+ let options_ = {
12775
+ method: "POST",
12776
+ headers: {
12777
+ "Accept": "application/json"
12778
+ }
12779
+ };
12780
+ return this.transformOptions(options_).then(transformedOptions_ => {
12781
+ return this.http.fetch(url_, transformedOptions_);
12782
+ }).then((_response) => {
12783
+ return this.processListMaterials(_response);
12784
+ });
12785
+ }
12786
+ processListMaterials(response) {
12787
+ const status = response.status;
12788
+ let _headers = {};
12789
+ if (response.headers && response.headers.forEach) {
12790
+ response.headers.forEach((v, k) => _headers[k] = v);
12791
+ }
12792
+ ;
12793
+ if (status === 200) {
12794
+ return response.text().then((_responseText) => {
12795
+ let result200 = null;
12796
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
12797
+ if (Array.isArray(resultData200)) {
12798
+ result200 = [];
12799
+ for (let item of resultData200)
12800
+ result200.push(MaterialDesciptionDto.fromJS(item));
12801
+ }
12802
+ return result200;
12803
+ });
12804
+ }
12805
+ else if (status !== 200 && status !== 204) {
12806
+ return response.text().then((_responseText) => {
12807
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
12808
+ });
12809
+ }
12810
+ return Promise.resolve(null);
12811
+ }
12812
+ addMaterial(update) {
12813
+ let url_ = this.baseUrl + "/move/materials";
12814
+ url_ = url_.replace(/[?&]$/, "");
12815
+ const content_ = JSON.stringify(update);
12816
+ let options_ = {
12817
+ body: content_,
12818
+ method: "POST",
12819
+ headers: {
12820
+ "Content-Type": "application/json",
12821
+ "Accept": "application/json"
12822
+ }
12823
+ };
12824
+ return this.transformOptions(options_).then(transformedOptions_ => {
12825
+ return this.http.fetch(url_, transformedOptions_);
12826
+ }).then((_response) => {
12827
+ return this.processAddMaterial(_response);
12828
+ });
12829
+ }
12830
+ processAddMaterial(response) {
12831
+ const status = response.status;
12832
+ let _headers = {};
12833
+ if (response.headers && response.headers.forEach) {
12834
+ response.headers.forEach((v, k) => _headers[k] = v);
12835
+ }
12836
+ ;
12837
+ if (status === 200) {
12838
+ return response.text().then((_responseText) => {
12839
+ let result200 = null;
12840
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
12841
+ result200 = MaterialDesciptionDto.fromJS(resultData200);
12842
+ return result200;
12843
+ });
12844
+ }
12845
+ else if (status !== 200 && status !== 204) {
12846
+ return response.text().then((_responseText) => {
12847
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
12848
+ });
12849
+ }
12850
+ return Promise.resolve(null);
12851
+ }
12852
+ removeMaterial(materialId) {
12853
+ let url_ = this.baseUrl + "/move/materials/{materialId}";
12854
+ if (materialId === undefined || materialId === null)
12855
+ throw new Error("The parameter 'materialId' must be defined.");
12856
+ url_ = url_.replace("{materialId}", encodeURIComponent("" + materialId));
12857
+ url_ = url_.replace(/[?&]$/, "");
12858
+ let options_ = {
12859
+ method: "DELETE",
12860
+ headers: {}
12861
+ };
12862
+ return this.transformOptions(options_).then(transformedOptions_ => {
12863
+ return this.http.fetch(url_, transformedOptions_);
12864
+ }).then((_response) => {
12865
+ return this.processRemoveMaterial(_response);
12866
+ });
12867
+ }
12868
+ processRemoveMaterial(response) {
12869
+ const status = response.status;
12870
+ let _headers = {};
12871
+ if (response.headers && response.headers.forEach) {
12872
+ response.headers.forEach((v, k) => _headers[k] = v);
12873
+ }
12874
+ ;
12875
+ if (status === 204) {
12876
+ return response.text().then((_responseText) => {
12877
+ return;
12878
+ });
12879
+ }
12880
+ else if (status !== 200 && status !== 204) {
12881
+ return response.text().then((_responseText) => {
12882
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
12883
+ });
12884
+ }
12885
+ return Promise.resolve(null);
12886
+ }
12887
+ updateMaterial(materialId, update) {
12888
+ let url_ = this.baseUrl + "/move/materials/{materialId}";
12889
+ if (materialId === undefined || materialId === null)
12890
+ throw new Error("The parameter 'materialId' must be defined.");
12891
+ url_ = url_.replace("{materialId}", encodeURIComponent("" + materialId));
12892
+ url_ = url_.replace(/[?&]$/, "");
12893
+ const content_ = JSON.stringify(update);
12894
+ let options_ = {
12895
+ body: content_,
12896
+ method: "PUT",
12897
+ headers: {
12898
+ "Content-Type": "application/json",
12899
+ "Accept": "application/json"
12900
+ }
12901
+ };
12902
+ return this.transformOptions(options_).then(transformedOptions_ => {
12903
+ return this.http.fetch(url_, transformedOptions_);
12904
+ }).then((_response) => {
12905
+ return this.processUpdateMaterial(_response);
12906
+ });
12907
+ }
12908
+ processUpdateMaterial(response) {
12909
+ const status = response.status;
12910
+ let _headers = {};
12911
+ if (response.headers && response.headers.forEach) {
12912
+ response.headers.forEach((v, k) => _headers[k] = v);
12913
+ }
12914
+ ;
12915
+ if (status === 200) {
12916
+ return response.text().then((_responseText) => {
12917
+ let result200 = null;
12918
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
12919
+ result200 = MaterialDesciptionDto.fromJS(resultData200);
12920
+ return result200;
12921
+ });
12922
+ }
12923
+ else if (status !== 200 && status !== 204) {
12924
+ return response.text().then((_responseText) => {
12925
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
12926
+ });
12927
+ }
12928
+ return Promise.resolve(null);
12929
+ }
12930
+ importMaterials(request) {
12931
+ let url_ = this.baseUrl + "/move/materials/csv";
12932
+ url_ = url_.replace(/[?&]$/, "");
12933
+ const content_ = new FormData();
12934
+ if (request !== null && request !== undefined)
12935
+ content_.append("request", request.data, request.fileName ? request.fileName : "request");
12936
+ let options_ = {
12937
+ body: content_,
12938
+ method: "POST",
12939
+ headers: {}
12940
+ };
12941
+ return this.transformOptions(options_).then(transformedOptions_ => {
12942
+ return this.http.fetch(url_, transformedOptions_);
12943
+ }).then((_response) => {
12944
+ return this.processImportMaterials(_response);
12945
+ });
12946
+ }
12947
+ processImportMaterials(response) {
12948
+ const status = response.status;
12949
+ let _headers = {};
12950
+ if (response.headers && response.headers.forEach) {
12951
+ response.headers.forEach((v, k) => _headers[k] = v);
12952
+ }
12953
+ ;
12954
+ if (status === 204) {
12955
+ return response.text().then((_responseText) => {
12956
+ return;
12957
+ });
12958
+ }
12959
+ else if (status !== 200 && status !== 204) {
12960
+ return response.text().then((_responseText) => {
12961
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
12962
+ });
12963
+ }
12964
+ return Promise.resolve(null);
12965
+ }
12966
+ }
12764
12967
  export class MoveTrackingClient extends AuthorizedApiBase {
12765
12968
  constructor(configuration, baseUrl, http) {
12766
12969
  super(configuration);
@@ -12768,6 +12971,46 @@ export class MoveTrackingClient extends AuthorizedApiBase {
12768
12971
  this.http = http ? http : window;
12769
12972
  this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
12770
12973
  }
12974
+ listTrackingHistory(request) {
12975
+ let url_ = this.baseUrl + "/move/tracking/list";
12976
+ url_ = url_.replace(/[?&]$/, "");
12977
+ const content_ = JSON.stringify(request);
12978
+ let options_ = {
12979
+ body: content_,
12980
+ method: "POST",
12981
+ headers: {
12982
+ "Content-Type": "application/json",
12983
+ "Accept": "application/json"
12984
+ }
12985
+ };
12986
+ return this.transformOptions(options_).then(transformedOptions_ => {
12987
+ return this.http.fetch(url_, transformedOptions_);
12988
+ }).then((_response) => {
12989
+ return this.processListTrackingHistory(_response);
12990
+ });
12991
+ }
12992
+ processListTrackingHistory(response) {
12993
+ const status = response.status;
12994
+ let _headers = {};
12995
+ if (response.headers && response.headers.forEach) {
12996
+ response.headers.forEach((v, k) => _headers[k] = v);
12997
+ }
12998
+ ;
12999
+ if (status === 200) {
13000
+ return response.text().then((_responseText) => {
13001
+ let result200 = null;
13002
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
13003
+ result200 = TrackingHistoryListDto.fromJS(resultData200);
13004
+ return result200;
13005
+ });
13006
+ }
13007
+ else if (status !== 200 && status !== 204) {
13008
+ return response.text().then((_responseText) => {
13009
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
13010
+ });
13011
+ }
13012
+ return Promise.resolve(null);
13013
+ }
12771
13014
  getTrackingHistory(trackingId) {
12772
13015
  let url_ = this.baseUrl + "/move/tracking/{trackingId}";
12773
13016
  if (trackingId === undefined || trackingId === null)
@@ -31471,11 +31714,41 @@ export class BookingRequestListDto {
31471
31714
  init(_data) {
31472
31715
  if (_data) {
31473
31716
  this.pageSize = _data["pageSize"];
31717
+ if (Array.isArray(_data["workOrderIdFilter"])) {
31718
+ this.workOrderIdFilter = [];
31719
+ for (let item of _data["workOrderIdFilter"])
31720
+ this.workOrderIdFilter.push(item);
31721
+ }
31722
+ if (Array.isArray(_data["materialFilter"])) {
31723
+ this.materialFilter = [];
31724
+ for (let item of _data["materialFilter"])
31725
+ this.materialFilter.push(item);
31726
+ }
31727
+ if (Array.isArray(_data["locationIdFromFilter"])) {
31728
+ this.locationIdFromFilter = [];
31729
+ for (let item of _data["locationIdFromFilter"])
31730
+ this.locationIdFromFilter.push(item);
31731
+ }
31732
+ if (Array.isArray(_data["locationIdToFilter"])) {
31733
+ this.locationIdToFilter = [];
31734
+ for (let item of _data["locationIdToFilter"])
31735
+ this.locationIdToFilter.push(item);
31736
+ }
31474
31737
  if (Array.isArray(_data["bookingStatusFilter"])) {
31475
31738
  this.bookingStatusFilter = [];
31476
31739
  for (let item of _data["bookingStatusFilter"])
31477
31740
  this.bookingStatusFilter.push(item);
31478
31741
  }
31742
+ if (Array.isArray(_data["bookingKindFilter"])) {
31743
+ this.bookingKindFilter = [];
31744
+ for (let item of _data["bookingKindFilter"])
31745
+ this.bookingKindFilter.push(item);
31746
+ }
31747
+ if (Array.isArray(_data["transportKindFilter"])) {
31748
+ this.transportKindFilter = [];
31749
+ for (let item of _data["transportKindFilter"])
31750
+ this.transportKindFilter.push(item);
31751
+ }
31479
31752
  this.bookingOrder = _data["bookingOrder"];
31480
31753
  this.continuationToken = _data["continuationToken"];
31481
31754
  }
@@ -31489,11 +31762,41 @@ export class BookingRequestListDto {
31489
31762
  toJSON(data) {
31490
31763
  data = typeof data === 'object' ? data : {};
31491
31764
  data["pageSize"] = this.pageSize;
31765
+ if (Array.isArray(this.workOrderIdFilter)) {
31766
+ data["workOrderIdFilter"] = [];
31767
+ for (let item of this.workOrderIdFilter)
31768
+ data["workOrderIdFilter"].push(item);
31769
+ }
31770
+ if (Array.isArray(this.materialFilter)) {
31771
+ data["materialFilter"] = [];
31772
+ for (let item of this.materialFilter)
31773
+ data["materialFilter"].push(item);
31774
+ }
31775
+ if (Array.isArray(this.locationIdFromFilter)) {
31776
+ data["locationIdFromFilter"] = [];
31777
+ for (let item of this.locationIdFromFilter)
31778
+ data["locationIdFromFilter"].push(item);
31779
+ }
31780
+ if (Array.isArray(this.locationIdToFilter)) {
31781
+ data["locationIdToFilter"] = [];
31782
+ for (let item of this.locationIdToFilter)
31783
+ data["locationIdToFilter"].push(item);
31784
+ }
31492
31785
  if (Array.isArray(this.bookingStatusFilter)) {
31493
31786
  data["bookingStatusFilter"] = [];
31494
31787
  for (let item of this.bookingStatusFilter)
31495
31788
  data["bookingStatusFilter"].push(item);
31496
31789
  }
31790
+ if (Array.isArray(this.bookingKindFilter)) {
31791
+ data["bookingKindFilter"] = [];
31792
+ for (let item of this.bookingKindFilter)
31793
+ data["bookingKindFilter"].push(item);
31794
+ }
31795
+ if (Array.isArray(this.transportKindFilter)) {
31796
+ data["transportKindFilter"] = [];
31797
+ for (let item of this.transportKindFilter)
31798
+ data["transportKindFilter"].push(item);
31799
+ }
31497
31800
  data["bookingOrder"] = this.bookingOrder;
31498
31801
  data["continuationToken"] = this.continuationToken;
31499
31802
  return data;
@@ -31809,6 +32112,103 @@ export class LocationSuggestionsItemDto {
31809
32112
  return data;
31810
32113
  }
31811
32114
  }
32115
+ export class MaterialDesciptionDto {
32116
+ constructor(data) {
32117
+ if (data) {
32118
+ for (var property in data) {
32119
+ if (data.hasOwnProperty(property))
32120
+ this[property] = data[property];
32121
+ }
32122
+ }
32123
+ }
32124
+ init(_data) {
32125
+ if (_data) {
32126
+ this.materialId = _data["materialId"];
32127
+ this.materialName = _data["materialName"];
32128
+ this.covered = _data["covered"];
32129
+ }
32130
+ }
32131
+ static fromJS(data) {
32132
+ data = typeof data === 'object' ? data : {};
32133
+ let result = new MaterialDesciptionDto();
32134
+ result.init(data);
32135
+ return result;
32136
+ }
32137
+ toJSON(data) {
32138
+ data = typeof data === 'object' ? data : {};
32139
+ data["materialId"] = this.materialId;
32140
+ data["materialName"] = this.materialName;
32141
+ data["covered"] = this.covered;
32142
+ return data;
32143
+ }
32144
+ }
32145
+ export class MaterialUpdateDto {
32146
+ constructor(data) {
32147
+ if (data) {
32148
+ for (var property in data) {
32149
+ if (data.hasOwnProperty(property))
32150
+ this[property] = data[property];
32151
+ }
32152
+ }
32153
+ }
32154
+ init(_data) {
32155
+ if (_data) {
32156
+ this.materialName = _data["materialName"];
32157
+ this.covered = _data["covered"];
32158
+ }
32159
+ }
32160
+ static fromJS(data) {
32161
+ data = typeof data === 'object' ? data : {};
32162
+ let result = new MaterialUpdateDto();
32163
+ result.init(data);
32164
+ return result;
32165
+ }
32166
+ toJSON(data) {
32167
+ data = typeof data === 'object' ? data : {};
32168
+ data["materialName"] = this.materialName;
32169
+ data["covered"] = this.covered;
32170
+ return data;
32171
+ }
32172
+ }
32173
+ export class TrackingHistoryListDto {
32174
+ constructor(data) {
32175
+ if (data) {
32176
+ for (var property in data) {
32177
+ if (data.hasOwnProperty(property))
32178
+ this[property] = data[property];
32179
+ }
32180
+ }
32181
+ if (!data) {
32182
+ this.results = [];
32183
+ }
32184
+ }
32185
+ init(_data) {
32186
+ if (_data) {
32187
+ if (Array.isArray(_data["results"])) {
32188
+ this.results = [];
32189
+ for (let item of _data["results"])
32190
+ this.results.push(TrackingHistoryDto.fromJS(item));
32191
+ }
32192
+ this.continuationToken = _data["continuationToken"];
32193
+ }
32194
+ }
32195
+ static fromJS(data) {
32196
+ data = typeof data === 'object' ? data : {};
32197
+ let result = new TrackingHistoryListDto();
32198
+ result.init(data);
32199
+ return result;
32200
+ }
32201
+ toJSON(data) {
32202
+ data = typeof data === 'object' ? data : {};
32203
+ if (Array.isArray(this.results)) {
32204
+ data["results"] = [];
32205
+ for (let item of this.results)
32206
+ data["results"].push(item.toJSON());
32207
+ }
32208
+ data["continuationToken"] = this.continuationToken;
32209
+ return data;
32210
+ }
32211
+ }
31812
32212
  export class TrackingHistoryDto {
31813
32213
  constructor(data) {
31814
32214
  if (data) {
@@ -31892,6 +32292,64 @@ export class TrackingEventDto {
31892
32292
  return data;
31893
32293
  }
31894
32294
  }
32295
+ export class TrackingRequestListDto {
32296
+ constructor(data) {
32297
+ if (data) {
32298
+ for (var property in data) {
32299
+ if (data.hasOwnProperty(property))
32300
+ this[property] = data[property];
32301
+ }
32302
+ }
32303
+ }
32304
+ init(_data) {
32305
+ if (_data) {
32306
+ this.pageSize = _data["pageSize"];
32307
+ if (Array.isArray(_data["workOrderIdFilter"])) {
32308
+ this.workOrderIdFilter = [];
32309
+ for (let item of _data["workOrderIdFilter"])
32310
+ this.workOrderIdFilter.push(item);
32311
+ }
32312
+ if (Array.isArray(_data["locationIdFilter"])) {
32313
+ this.locationIdFilter = [];
32314
+ for (let item of _data["locationIdFilter"])
32315
+ this.locationIdFilter.push(item);
32316
+ }
32317
+ if (Array.isArray(_data["materialFilter"])) {
32318
+ this.materialFilter = [];
32319
+ for (let item of _data["materialFilter"])
32320
+ this.materialFilter.push(item);
32321
+ }
32322
+ this.continuationToken = _data["continuationToken"];
32323
+ }
32324
+ }
32325
+ static fromJS(data) {
32326
+ data = typeof data === 'object' ? data : {};
32327
+ let result = new TrackingRequestListDto();
32328
+ result.init(data);
32329
+ return result;
32330
+ }
32331
+ toJSON(data) {
32332
+ data = typeof data === 'object' ? data : {};
32333
+ data["pageSize"] = this.pageSize;
32334
+ if (Array.isArray(this.workOrderIdFilter)) {
32335
+ data["workOrderIdFilter"] = [];
32336
+ for (let item of this.workOrderIdFilter)
32337
+ data["workOrderIdFilter"].push(item);
32338
+ }
32339
+ if (Array.isArray(this.locationIdFilter)) {
32340
+ data["locationIdFilter"] = [];
32341
+ for (let item of this.locationIdFilter)
32342
+ data["locationIdFilter"].push(item);
32343
+ }
32344
+ if (Array.isArray(this.materialFilter)) {
32345
+ data["materialFilter"] = [];
32346
+ for (let item of this.materialFilter)
32347
+ data["materialFilter"].push(item);
32348
+ }
32349
+ data["continuationToken"] = this.continuationToken;
32350
+ return data;
32351
+ }
32352
+ }
31895
32353
  export class TrackingWorkOrderDto {
31896
32354
  constructor(data) {
31897
32355
  if (data) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20240626.0.9651",
3
+ "version": "20240701.0.9700",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -13630,8 +13630,230 @@ export class MoveLocationsClient extends AuthorizedApiBase implements IMoveLocat
13630
13630
  }
13631
13631
  }
13632
13632
 
13633
+ export interface IMoveMaterialsClient {
13634
+
13635
+ listMaterials(): Promise<MaterialDesciptionDto[]>;
13636
+
13637
+ addMaterial(update: MaterialUpdateDto): Promise<MaterialDesciptionDto>;
13638
+
13639
+ removeMaterial(materialId: string): Promise<void>;
13640
+
13641
+ updateMaterial(materialId: string, update: MaterialUpdateDto): Promise<MaterialDesciptionDto>;
13642
+
13643
+ importMaterials(request: FileParameter | null | undefined): Promise<void>;
13644
+ }
13645
+
13646
+ export class MoveMaterialsClient extends AuthorizedApiBase implements IMoveMaterialsClient {
13647
+ private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
13648
+ private baseUrl: string;
13649
+ protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
13650
+
13651
+ constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
13652
+ super(configuration);
13653
+ this.http = http ? http : window as any;
13654
+ this.baseUrl = baseUrl ?? "";
13655
+ }
13656
+
13657
+ listMaterials(): Promise<MaterialDesciptionDto[]> {
13658
+ let url_ = this.baseUrl + "/move/materials/list";
13659
+ url_ = url_.replace(/[?&]$/, "");
13660
+
13661
+ let options_: RequestInit = {
13662
+ method: "POST",
13663
+ headers: {
13664
+ "Accept": "application/json"
13665
+ }
13666
+ };
13667
+
13668
+ return this.transformOptions(options_).then(transformedOptions_ => {
13669
+ return this.http.fetch(url_, transformedOptions_);
13670
+ }).then((_response: Response) => {
13671
+ return this.processListMaterials(_response);
13672
+ });
13673
+ }
13674
+
13675
+ protected processListMaterials(response: Response): Promise<MaterialDesciptionDto[]> {
13676
+ const status = response.status;
13677
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
13678
+ if (status === 200) {
13679
+ return response.text().then((_responseText) => {
13680
+ let result200: any = null;
13681
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
13682
+ if (Array.isArray(resultData200)) {
13683
+ result200 = [] as any;
13684
+ for (let item of resultData200)
13685
+ result200!.push(MaterialDesciptionDto.fromJS(item));
13686
+ }
13687
+ return result200;
13688
+ });
13689
+ } else if (status !== 200 && status !== 204) {
13690
+ return response.text().then((_responseText) => {
13691
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
13692
+ });
13693
+ }
13694
+ return Promise.resolve<MaterialDesciptionDto[]>(null as any);
13695
+ }
13696
+
13697
+ addMaterial(update: MaterialUpdateDto): Promise<MaterialDesciptionDto> {
13698
+ let url_ = this.baseUrl + "/move/materials";
13699
+ url_ = url_.replace(/[?&]$/, "");
13700
+
13701
+ const content_ = JSON.stringify(update);
13702
+
13703
+ let options_: RequestInit = {
13704
+ body: content_,
13705
+ method: "POST",
13706
+ headers: {
13707
+ "Content-Type": "application/json",
13708
+ "Accept": "application/json"
13709
+ }
13710
+ };
13711
+
13712
+ return this.transformOptions(options_).then(transformedOptions_ => {
13713
+ return this.http.fetch(url_, transformedOptions_);
13714
+ }).then((_response: Response) => {
13715
+ return this.processAddMaterial(_response);
13716
+ });
13717
+ }
13718
+
13719
+ protected processAddMaterial(response: Response): Promise<MaterialDesciptionDto> {
13720
+ const status = response.status;
13721
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
13722
+ if (status === 200) {
13723
+ return response.text().then((_responseText) => {
13724
+ let result200: any = null;
13725
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
13726
+ result200 = MaterialDesciptionDto.fromJS(resultData200);
13727
+ return result200;
13728
+ });
13729
+ } else if (status !== 200 && status !== 204) {
13730
+ return response.text().then((_responseText) => {
13731
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
13732
+ });
13733
+ }
13734
+ return Promise.resolve<MaterialDesciptionDto>(null as any);
13735
+ }
13736
+
13737
+ removeMaterial(materialId: string): Promise<void> {
13738
+ let url_ = this.baseUrl + "/move/materials/{materialId}";
13739
+ if (materialId === undefined || materialId === null)
13740
+ throw new Error("The parameter 'materialId' must be defined.");
13741
+ url_ = url_.replace("{materialId}", encodeURIComponent("" + materialId));
13742
+ url_ = url_.replace(/[?&]$/, "");
13743
+
13744
+ let options_: RequestInit = {
13745
+ method: "DELETE",
13746
+ headers: {
13747
+ }
13748
+ };
13749
+
13750
+ return this.transformOptions(options_).then(transformedOptions_ => {
13751
+ return this.http.fetch(url_, transformedOptions_);
13752
+ }).then((_response: Response) => {
13753
+ return this.processRemoveMaterial(_response);
13754
+ });
13755
+ }
13756
+
13757
+ protected processRemoveMaterial(response: Response): Promise<void> {
13758
+ const status = response.status;
13759
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
13760
+ if (status === 204) {
13761
+ return response.text().then((_responseText) => {
13762
+ return;
13763
+ });
13764
+ } else if (status !== 200 && status !== 204) {
13765
+ return response.text().then((_responseText) => {
13766
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
13767
+ });
13768
+ }
13769
+ return Promise.resolve<void>(null as any);
13770
+ }
13771
+
13772
+ updateMaterial(materialId: string, update: MaterialUpdateDto): Promise<MaterialDesciptionDto> {
13773
+ let url_ = this.baseUrl + "/move/materials/{materialId}";
13774
+ if (materialId === undefined || materialId === null)
13775
+ throw new Error("The parameter 'materialId' must be defined.");
13776
+ url_ = url_.replace("{materialId}", encodeURIComponent("" + materialId));
13777
+ url_ = url_.replace(/[?&]$/, "");
13778
+
13779
+ const content_ = JSON.stringify(update);
13780
+
13781
+ let options_: RequestInit = {
13782
+ body: content_,
13783
+ method: "PUT",
13784
+ headers: {
13785
+ "Content-Type": "application/json",
13786
+ "Accept": "application/json"
13787
+ }
13788
+ };
13789
+
13790
+ return this.transformOptions(options_).then(transformedOptions_ => {
13791
+ return this.http.fetch(url_, transformedOptions_);
13792
+ }).then((_response: Response) => {
13793
+ return this.processUpdateMaterial(_response);
13794
+ });
13795
+ }
13796
+
13797
+ protected processUpdateMaterial(response: Response): Promise<MaterialDesciptionDto> {
13798
+ const status = response.status;
13799
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
13800
+ if (status === 200) {
13801
+ return response.text().then((_responseText) => {
13802
+ let result200: any = null;
13803
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
13804
+ result200 = MaterialDesciptionDto.fromJS(resultData200);
13805
+ return result200;
13806
+ });
13807
+ } else if (status !== 200 && status !== 204) {
13808
+ return response.text().then((_responseText) => {
13809
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
13810
+ });
13811
+ }
13812
+ return Promise.resolve<MaterialDesciptionDto>(null as any);
13813
+ }
13814
+
13815
+ importMaterials(request: FileParameter | null | undefined): Promise<void> {
13816
+ let url_ = this.baseUrl + "/move/materials/csv";
13817
+ url_ = url_.replace(/[?&]$/, "");
13818
+
13819
+ const content_ = new FormData();
13820
+ if (request !== null && request !== undefined)
13821
+ content_.append("request", request.data, request.fileName ? request.fileName : "request");
13822
+
13823
+ let options_: RequestInit = {
13824
+ body: content_,
13825
+ method: "POST",
13826
+ headers: {
13827
+ }
13828
+ };
13829
+
13830
+ return this.transformOptions(options_).then(transformedOptions_ => {
13831
+ return this.http.fetch(url_, transformedOptions_);
13832
+ }).then((_response: Response) => {
13833
+ return this.processImportMaterials(_response);
13834
+ });
13835
+ }
13836
+
13837
+ protected processImportMaterials(response: Response): Promise<void> {
13838
+ const status = response.status;
13839
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
13840
+ if (status === 204) {
13841
+ return response.text().then((_responseText) => {
13842
+ return;
13843
+ });
13844
+ } else if (status !== 200 && status !== 204) {
13845
+ return response.text().then((_responseText) => {
13846
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
13847
+ });
13848
+ }
13849
+ return Promise.resolve<void>(null as any);
13850
+ }
13851
+ }
13852
+
13633
13853
  export interface IMoveTrackingClient {
13634
13854
 
13855
+ listTrackingHistory(request: TrackingRequestListDto): Promise<TrackingHistoryListDto>;
13856
+
13635
13857
  getTrackingHistory(trackingId: string): Promise<TrackingHistoryDto>;
13636
13858
 
13637
13859
  getWorkOrderTrackingHistory(workOrderId: string): Promise<TrackingWorkOrderDto>;
@@ -13658,6 +13880,46 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
13658
13880
  this.baseUrl = baseUrl ?? "";
13659
13881
  }
13660
13882
 
13883
+ listTrackingHistory(request: TrackingRequestListDto): Promise<TrackingHistoryListDto> {
13884
+ let url_ = this.baseUrl + "/move/tracking/list";
13885
+ url_ = url_.replace(/[?&]$/, "");
13886
+
13887
+ const content_ = JSON.stringify(request);
13888
+
13889
+ let options_: RequestInit = {
13890
+ body: content_,
13891
+ method: "POST",
13892
+ headers: {
13893
+ "Content-Type": "application/json",
13894
+ "Accept": "application/json"
13895
+ }
13896
+ };
13897
+
13898
+ return this.transformOptions(options_).then(transformedOptions_ => {
13899
+ return this.http.fetch(url_, transformedOptions_);
13900
+ }).then((_response: Response) => {
13901
+ return this.processListTrackingHistory(_response);
13902
+ });
13903
+ }
13904
+
13905
+ protected processListTrackingHistory(response: Response): Promise<TrackingHistoryListDto> {
13906
+ const status = response.status;
13907
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
13908
+ if (status === 200) {
13909
+ return response.text().then((_responseText) => {
13910
+ let result200: any = null;
13911
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
13912
+ result200 = TrackingHistoryListDto.fromJS(resultData200);
13913
+ return result200;
13914
+ });
13915
+ } else if (status !== 200 && status !== 204) {
13916
+ return response.text().then((_responseText) => {
13917
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
13918
+ });
13919
+ }
13920
+ return Promise.resolve<TrackingHistoryListDto>(null as any);
13921
+ }
13922
+
13661
13923
  getTrackingHistory(trackingId: string): Promise<TrackingHistoryDto> {
13662
13924
  let url_ = this.baseUrl + "/move/tracking/{trackingId}";
13663
13925
  if (trackingId === undefined || trackingId === null)
@@ -39214,7 +39476,13 @@ export type LocationKindDto = "Warehouse" | "Zone" | "Location";
39214
39476
 
39215
39477
  export class BookingRequestListDto implements IBookingRequestListDto {
39216
39478
  pageSize?: number | null;
39479
+ workOrderIdFilter?: string[] | null;
39480
+ materialFilter?: string[] | null;
39481
+ locationIdFromFilter?: string[] | null;
39482
+ locationIdToFilter?: string[] | null;
39217
39483
  bookingStatusFilter?: BookingStatusDto[] | null;
39484
+ bookingKindFilter?: BookingKindDto[] | null;
39485
+ transportKindFilter?: TransportKindDto[] | null;
39218
39486
  bookingOrder?: BookingOrderDto;
39219
39487
  continuationToken?: string | null;
39220
39488
 
@@ -39230,11 +39498,41 @@ export class BookingRequestListDto implements IBookingRequestListDto {
39230
39498
  init(_data?: any) {
39231
39499
  if (_data) {
39232
39500
  this.pageSize = _data["pageSize"];
39501
+ if (Array.isArray(_data["workOrderIdFilter"])) {
39502
+ this.workOrderIdFilter = [] as any;
39503
+ for (let item of _data["workOrderIdFilter"])
39504
+ this.workOrderIdFilter!.push(item);
39505
+ }
39506
+ if (Array.isArray(_data["materialFilter"])) {
39507
+ this.materialFilter = [] as any;
39508
+ for (let item of _data["materialFilter"])
39509
+ this.materialFilter!.push(item);
39510
+ }
39511
+ if (Array.isArray(_data["locationIdFromFilter"])) {
39512
+ this.locationIdFromFilter = [] as any;
39513
+ for (let item of _data["locationIdFromFilter"])
39514
+ this.locationIdFromFilter!.push(item);
39515
+ }
39516
+ if (Array.isArray(_data["locationIdToFilter"])) {
39517
+ this.locationIdToFilter = [] as any;
39518
+ for (let item of _data["locationIdToFilter"])
39519
+ this.locationIdToFilter!.push(item);
39520
+ }
39233
39521
  if (Array.isArray(_data["bookingStatusFilter"])) {
39234
39522
  this.bookingStatusFilter = [] as any;
39235
39523
  for (let item of _data["bookingStatusFilter"])
39236
39524
  this.bookingStatusFilter!.push(item);
39237
39525
  }
39526
+ if (Array.isArray(_data["bookingKindFilter"])) {
39527
+ this.bookingKindFilter = [] as any;
39528
+ for (let item of _data["bookingKindFilter"])
39529
+ this.bookingKindFilter!.push(item);
39530
+ }
39531
+ if (Array.isArray(_data["transportKindFilter"])) {
39532
+ this.transportKindFilter = [] as any;
39533
+ for (let item of _data["transportKindFilter"])
39534
+ this.transportKindFilter!.push(item);
39535
+ }
39238
39536
  this.bookingOrder = _data["bookingOrder"];
39239
39537
  this.continuationToken = _data["continuationToken"];
39240
39538
  }
@@ -39250,11 +39548,41 @@ export class BookingRequestListDto implements IBookingRequestListDto {
39250
39548
  toJSON(data?: any) {
39251
39549
  data = typeof data === 'object' ? data : {};
39252
39550
  data["pageSize"] = this.pageSize;
39551
+ if (Array.isArray(this.workOrderIdFilter)) {
39552
+ data["workOrderIdFilter"] = [];
39553
+ for (let item of this.workOrderIdFilter)
39554
+ data["workOrderIdFilter"].push(item);
39555
+ }
39556
+ if (Array.isArray(this.materialFilter)) {
39557
+ data["materialFilter"] = [];
39558
+ for (let item of this.materialFilter)
39559
+ data["materialFilter"].push(item);
39560
+ }
39561
+ if (Array.isArray(this.locationIdFromFilter)) {
39562
+ data["locationIdFromFilter"] = [];
39563
+ for (let item of this.locationIdFromFilter)
39564
+ data["locationIdFromFilter"].push(item);
39565
+ }
39566
+ if (Array.isArray(this.locationIdToFilter)) {
39567
+ data["locationIdToFilter"] = [];
39568
+ for (let item of this.locationIdToFilter)
39569
+ data["locationIdToFilter"].push(item);
39570
+ }
39253
39571
  if (Array.isArray(this.bookingStatusFilter)) {
39254
39572
  data["bookingStatusFilter"] = [];
39255
39573
  for (let item of this.bookingStatusFilter)
39256
39574
  data["bookingStatusFilter"].push(item);
39257
39575
  }
39576
+ if (Array.isArray(this.bookingKindFilter)) {
39577
+ data["bookingKindFilter"] = [];
39578
+ for (let item of this.bookingKindFilter)
39579
+ data["bookingKindFilter"].push(item);
39580
+ }
39581
+ if (Array.isArray(this.transportKindFilter)) {
39582
+ data["transportKindFilter"] = [];
39583
+ for (let item of this.transportKindFilter)
39584
+ data["transportKindFilter"].push(item);
39585
+ }
39258
39586
  data["bookingOrder"] = this.bookingOrder;
39259
39587
  data["continuationToken"] = this.continuationToken;
39260
39588
  return data;
@@ -39263,7 +39591,13 @@ export class BookingRequestListDto implements IBookingRequestListDto {
39263
39591
 
39264
39592
  export interface IBookingRequestListDto {
39265
39593
  pageSize?: number | null;
39594
+ workOrderIdFilter?: string[] | null;
39595
+ materialFilter?: string[] | null;
39596
+ locationIdFromFilter?: string[] | null;
39597
+ locationIdToFilter?: string[] | null;
39266
39598
  bookingStatusFilter?: BookingStatusDto[] | null;
39599
+ bookingKindFilter?: BookingKindDto[] | null;
39600
+ transportKindFilter?: TransportKindDto[] | null;
39267
39601
  bookingOrder?: BookingOrderDto;
39268
39602
  continuationToken?: string | null;
39269
39603
  }
@@ -39708,6 +40042,143 @@ export interface ILocationSuggestionsItemDto {
39708
40042
  workOrderId: string;
39709
40043
  }
39710
40044
 
40045
+ export class MaterialDesciptionDto implements IMaterialDesciptionDto {
40046
+ materialId!: string;
40047
+ materialName!: string;
40048
+ covered!: MaterialCoveredDto;
40049
+
40050
+ constructor(data?: IMaterialDesciptionDto) {
40051
+ if (data) {
40052
+ for (var property in data) {
40053
+ if (data.hasOwnProperty(property))
40054
+ (<any>this)[property] = (<any>data)[property];
40055
+ }
40056
+ }
40057
+ }
40058
+
40059
+ init(_data?: any) {
40060
+ if (_data) {
40061
+ this.materialId = _data["materialId"];
40062
+ this.materialName = _data["materialName"];
40063
+ this.covered = _data["covered"];
40064
+ }
40065
+ }
40066
+
40067
+ static fromJS(data: any): MaterialDesciptionDto {
40068
+ data = typeof data === 'object' ? data : {};
40069
+ let result = new MaterialDesciptionDto();
40070
+ result.init(data);
40071
+ return result;
40072
+ }
40073
+
40074
+ toJSON(data?: any) {
40075
+ data = typeof data === 'object' ? data : {};
40076
+ data["materialId"] = this.materialId;
40077
+ data["materialName"] = this.materialName;
40078
+ data["covered"] = this.covered;
40079
+ return data;
40080
+ }
40081
+ }
40082
+
40083
+ export interface IMaterialDesciptionDto {
40084
+ materialId: string;
40085
+ materialName: string;
40086
+ covered: MaterialCoveredDto;
40087
+ }
40088
+
40089
+ export type MaterialCoveredDto = "NotDefined" | "NotCovered" | "Covered";
40090
+
40091
+ export class MaterialUpdateDto implements IMaterialUpdateDto {
40092
+ materialName!: string;
40093
+ covered!: MaterialCoveredDto;
40094
+
40095
+ constructor(data?: IMaterialUpdateDto) {
40096
+ if (data) {
40097
+ for (var property in data) {
40098
+ if (data.hasOwnProperty(property))
40099
+ (<any>this)[property] = (<any>data)[property];
40100
+ }
40101
+ }
40102
+ }
40103
+
40104
+ init(_data?: any) {
40105
+ if (_data) {
40106
+ this.materialName = _data["materialName"];
40107
+ this.covered = _data["covered"];
40108
+ }
40109
+ }
40110
+
40111
+ static fromJS(data: any): MaterialUpdateDto {
40112
+ data = typeof data === 'object' ? data : {};
40113
+ let result = new MaterialUpdateDto();
40114
+ result.init(data);
40115
+ return result;
40116
+ }
40117
+
40118
+ toJSON(data?: any) {
40119
+ data = typeof data === 'object' ? data : {};
40120
+ data["materialName"] = this.materialName;
40121
+ data["covered"] = this.covered;
40122
+ return data;
40123
+ }
40124
+ }
40125
+
40126
+ export interface IMaterialUpdateDto {
40127
+ materialName: string;
40128
+ covered: MaterialCoveredDto;
40129
+ }
40130
+
40131
+ export class TrackingHistoryListDto implements ITrackingHistoryListDto {
40132
+ results!: TrackingHistoryDto[];
40133
+ continuationToken?: string | null;
40134
+
40135
+ constructor(data?: ITrackingHistoryListDto) {
40136
+ if (data) {
40137
+ for (var property in data) {
40138
+ if (data.hasOwnProperty(property))
40139
+ (<any>this)[property] = (<any>data)[property];
40140
+ }
40141
+ }
40142
+ if (!data) {
40143
+ this.results = [];
40144
+ }
40145
+ }
40146
+
40147
+ init(_data?: any) {
40148
+ if (_data) {
40149
+ if (Array.isArray(_data["results"])) {
40150
+ this.results = [] as any;
40151
+ for (let item of _data["results"])
40152
+ this.results!.push(TrackingHistoryDto.fromJS(item));
40153
+ }
40154
+ this.continuationToken = _data["continuationToken"];
40155
+ }
40156
+ }
40157
+
40158
+ static fromJS(data: any): TrackingHistoryListDto {
40159
+ data = typeof data === 'object' ? data : {};
40160
+ let result = new TrackingHistoryListDto();
40161
+ result.init(data);
40162
+ return result;
40163
+ }
40164
+
40165
+ toJSON(data?: any) {
40166
+ data = typeof data === 'object' ? data : {};
40167
+ if (Array.isArray(this.results)) {
40168
+ data["results"] = [];
40169
+ for (let item of this.results)
40170
+ data["results"].push(item.toJSON());
40171
+ }
40172
+ data["continuationToken"] = this.continuationToken;
40173
+ return data;
40174
+ }
40175
+ }
40176
+
40177
+ export interface ITrackingHistoryListDto {
40178
+ results: TrackingHistoryDto[];
40179
+ continuationToken?: string | null;
40180
+ }
40181
+
39711
40182
  export class TrackingHistoryDto implements ITrackingHistoryDto {
39712
40183
  trackingId!: string;
39713
40184
  palletNumber!: number;
@@ -39833,6 +40304,82 @@ export interface ITrackingEventDto {
39833
40304
 
39834
40305
  export type TrackingStatusDto = "Manual" | "Pending" | "Cancelled" | "InProgress" | "Completed";
39835
40306
 
40307
+ export class TrackingRequestListDto implements ITrackingRequestListDto {
40308
+ pageSize?: number | null;
40309
+ workOrderIdFilter?: string[] | null;
40310
+ locationIdFilter?: string[] | null;
40311
+ materialFilter?: string[] | null;
40312
+ continuationToken?: string | null;
40313
+
40314
+ constructor(data?: ITrackingRequestListDto) {
40315
+ if (data) {
40316
+ for (var property in data) {
40317
+ if (data.hasOwnProperty(property))
40318
+ (<any>this)[property] = (<any>data)[property];
40319
+ }
40320
+ }
40321
+ }
40322
+
40323
+ init(_data?: any) {
40324
+ if (_data) {
40325
+ this.pageSize = _data["pageSize"];
40326
+ if (Array.isArray(_data["workOrderIdFilter"])) {
40327
+ this.workOrderIdFilter = [] as any;
40328
+ for (let item of _data["workOrderIdFilter"])
40329
+ this.workOrderIdFilter!.push(item);
40330
+ }
40331
+ if (Array.isArray(_data["locationIdFilter"])) {
40332
+ this.locationIdFilter = [] as any;
40333
+ for (let item of _data["locationIdFilter"])
40334
+ this.locationIdFilter!.push(item);
40335
+ }
40336
+ if (Array.isArray(_data["materialFilter"])) {
40337
+ this.materialFilter = [] as any;
40338
+ for (let item of _data["materialFilter"])
40339
+ this.materialFilter!.push(item);
40340
+ }
40341
+ this.continuationToken = _data["continuationToken"];
40342
+ }
40343
+ }
40344
+
40345
+ static fromJS(data: any): TrackingRequestListDto {
40346
+ data = typeof data === 'object' ? data : {};
40347
+ let result = new TrackingRequestListDto();
40348
+ result.init(data);
40349
+ return result;
40350
+ }
40351
+
40352
+ toJSON(data?: any) {
40353
+ data = typeof data === 'object' ? data : {};
40354
+ data["pageSize"] = this.pageSize;
40355
+ if (Array.isArray(this.workOrderIdFilter)) {
40356
+ data["workOrderIdFilter"] = [];
40357
+ for (let item of this.workOrderIdFilter)
40358
+ data["workOrderIdFilter"].push(item);
40359
+ }
40360
+ if (Array.isArray(this.locationIdFilter)) {
40361
+ data["locationIdFilter"] = [];
40362
+ for (let item of this.locationIdFilter)
40363
+ data["locationIdFilter"].push(item);
40364
+ }
40365
+ if (Array.isArray(this.materialFilter)) {
40366
+ data["materialFilter"] = [];
40367
+ for (let item of this.materialFilter)
40368
+ data["materialFilter"].push(item);
40369
+ }
40370
+ data["continuationToken"] = this.continuationToken;
40371
+ return data;
40372
+ }
40373
+ }
40374
+
40375
+ export interface ITrackingRequestListDto {
40376
+ pageSize?: number | null;
40377
+ workOrderIdFilter?: string[] | null;
40378
+ locationIdFilter?: string[] | null;
40379
+ materialFilter?: string[] | null;
40380
+ continuationToken?: string | null;
40381
+ }
40382
+
39836
40383
  export class TrackingWorkOrderDto implements ITrackingWorkOrderDto {
39837
40384
  workOrderId!: string;
39838
40385
  part?: PartDto | null;