@ignos/api-client 20240430.0.9176 → 20240503.0.9201
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.
- package/lib/ignosportal-api.d.ts +97 -90
- package/lib/ignosportal-api.js +52 -44
- package/package.json +1 -1
- package/src/ignosportal-api.ts +149 -133
package/src/ignosportal-api.ts
CHANGED
|
@@ -5735,19 +5735,19 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
5735
5735
|
|
|
5736
5736
|
export interface ILocateBookingClient {
|
|
5737
5737
|
|
|
5738
|
-
createBooking(locateBookingDto:
|
|
5738
|
+
createBooking(locateBookingDto: BookingRequestDto): Promise<BookingResponseDto>;
|
|
5739
5739
|
|
|
5740
|
-
listBookings(request:
|
|
5740
|
+
listBookings(request: BookingRequestListDto): Promise<BookingResponseListDto>;
|
|
5741
5741
|
|
|
5742
|
-
getBooking(bookingId: string): Promise<
|
|
5742
|
+
getBooking(bookingId: string): Promise<BookingResponseDto>;
|
|
5743
5743
|
|
|
5744
|
-
updateBooking(bookingId: string, locateBookingDto:
|
|
5744
|
+
updateBooking(bookingId: string, locateBookingDto: BookingRequestDto): Promise<BookingResponseDto>;
|
|
5745
5745
|
|
|
5746
|
-
cancelBooking(bookingId: string): Promise<
|
|
5746
|
+
cancelBooking(bookingId: string): Promise<BookingResponseDto>;
|
|
5747
5747
|
|
|
5748
|
-
startDelivery(bookingId: string): Promise<
|
|
5748
|
+
startDelivery(bookingId: string): Promise<BookingResponseDto>;
|
|
5749
5749
|
|
|
5750
|
-
finishDelivery(bookingId: string): Promise<
|
|
5750
|
+
finishDelivery(bookingId: string): Promise<BookingResponseDto>;
|
|
5751
5751
|
}
|
|
5752
5752
|
|
|
5753
5753
|
export class LocateBookingClient extends AuthorizedApiBase implements ILocateBookingClient {
|
|
@@ -5761,7 +5761,7 @@ export class LocateBookingClient extends AuthorizedApiBase implements ILocateBoo
|
|
|
5761
5761
|
this.baseUrl = baseUrl ?? "";
|
|
5762
5762
|
}
|
|
5763
5763
|
|
|
5764
|
-
createBooking(locateBookingDto:
|
|
5764
|
+
createBooking(locateBookingDto: BookingRequestDto): Promise<BookingResponseDto> {
|
|
5765
5765
|
let url_ = this.baseUrl + "/locate/booking";
|
|
5766
5766
|
url_ = url_.replace(/[?&]$/, "");
|
|
5767
5767
|
|
|
@@ -5783,14 +5783,14 @@ export class LocateBookingClient extends AuthorizedApiBase implements ILocateBoo
|
|
|
5783
5783
|
});
|
|
5784
5784
|
}
|
|
5785
5785
|
|
|
5786
|
-
protected processCreateBooking(response: Response): Promise<
|
|
5786
|
+
protected processCreateBooking(response: Response): Promise<BookingResponseDto> {
|
|
5787
5787
|
const status = response.status;
|
|
5788
5788
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
5789
5789
|
if (status === 200) {
|
|
5790
5790
|
return response.text().then((_responseText) => {
|
|
5791
5791
|
let result200: any = null;
|
|
5792
5792
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5793
|
-
result200 =
|
|
5793
|
+
result200 = BookingResponseDto.fromJS(resultData200);
|
|
5794
5794
|
return result200;
|
|
5795
5795
|
});
|
|
5796
5796
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -5798,10 +5798,10 @@ export class LocateBookingClient extends AuthorizedApiBase implements ILocateBoo
|
|
|
5798
5798
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5799
5799
|
});
|
|
5800
5800
|
}
|
|
5801
|
-
return Promise.resolve<
|
|
5801
|
+
return Promise.resolve<BookingResponseDto>(null as any);
|
|
5802
5802
|
}
|
|
5803
5803
|
|
|
5804
|
-
listBookings(request:
|
|
5804
|
+
listBookings(request: BookingRequestListDto): Promise<BookingResponseListDto> {
|
|
5805
5805
|
let url_ = this.baseUrl + "/locate/booking/list";
|
|
5806
5806
|
url_ = url_.replace(/[?&]$/, "");
|
|
5807
5807
|
|
|
@@ -5823,14 +5823,14 @@ export class LocateBookingClient extends AuthorizedApiBase implements ILocateBoo
|
|
|
5823
5823
|
});
|
|
5824
5824
|
}
|
|
5825
5825
|
|
|
5826
|
-
protected processListBookings(response: Response): Promise<
|
|
5826
|
+
protected processListBookings(response: Response): Promise<BookingResponseListDto> {
|
|
5827
5827
|
const status = response.status;
|
|
5828
5828
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
5829
5829
|
if (status === 200) {
|
|
5830
5830
|
return response.text().then((_responseText) => {
|
|
5831
5831
|
let result200: any = null;
|
|
5832
5832
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5833
|
-
result200 =
|
|
5833
|
+
result200 = BookingResponseListDto.fromJS(resultData200);
|
|
5834
5834
|
return result200;
|
|
5835
5835
|
});
|
|
5836
5836
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -5838,10 +5838,10 @@ export class LocateBookingClient extends AuthorizedApiBase implements ILocateBoo
|
|
|
5838
5838
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5839
5839
|
});
|
|
5840
5840
|
}
|
|
5841
|
-
return Promise.resolve<
|
|
5841
|
+
return Promise.resolve<BookingResponseListDto>(null as any);
|
|
5842
5842
|
}
|
|
5843
5843
|
|
|
5844
|
-
getBooking(bookingId: string): Promise<
|
|
5844
|
+
getBooking(bookingId: string): Promise<BookingResponseDto> {
|
|
5845
5845
|
let url_ = this.baseUrl + "/locate/booking/{bookingId}";
|
|
5846
5846
|
if (bookingId === undefined || bookingId === null)
|
|
5847
5847
|
throw new Error("The parameter 'bookingId' must be defined.");
|
|
@@ -5862,14 +5862,14 @@ export class LocateBookingClient extends AuthorizedApiBase implements ILocateBoo
|
|
|
5862
5862
|
});
|
|
5863
5863
|
}
|
|
5864
5864
|
|
|
5865
|
-
protected processGetBooking(response: Response): Promise<
|
|
5865
|
+
protected processGetBooking(response: Response): Promise<BookingResponseDto> {
|
|
5866
5866
|
const status = response.status;
|
|
5867
5867
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
5868
5868
|
if (status === 200) {
|
|
5869
5869
|
return response.text().then((_responseText) => {
|
|
5870
5870
|
let result200: any = null;
|
|
5871
5871
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5872
|
-
result200 =
|
|
5872
|
+
result200 = BookingResponseDto.fromJS(resultData200);
|
|
5873
5873
|
return result200;
|
|
5874
5874
|
});
|
|
5875
5875
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -5877,10 +5877,10 @@ export class LocateBookingClient extends AuthorizedApiBase implements ILocateBoo
|
|
|
5877
5877
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5878
5878
|
});
|
|
5879
5879
|
}
|
|
5880
|
-
return Promise.resolve<
|
|
5880
|
+
return Promise.resolve<BookingResponseDto>(null as any);
|
|
5881
5881
|
}
|
|
5882
5882
|
|
|
5883
|
-
updateBooking(bookingId: string, locateBookingDto:
|
|
5883
|
+
updateBooking(bookingId: string, locateBookingDto: BookingRequestDto): Promise<BookingResponseDto> {
|
|
5884
5884
|
let url_ = this.baseUrl + "/locate/booking/{bookingId}";
|
|
5885
5885
|
if (bookingId === undefined || bookingId === null)
|
|
5886
5886
|
throw new Error("The parameter 'bookingId' must be defined.");
|
|
@@ -5905,14 +5905,14 @@ export class LocateBookingClient extends AuthorizedApiBase implements ILocateBoo
|
|
|
5905
5905
|
});
|
|
5906
5906
|
}
|
|
5907
5907
|
|
|
5908
|
-
protected processUpdateBooking(response: Response): Promise<
|
|
5908
|
+
protected processUpdateBooking(response: Response): Promise<BookingResponseDto> {
|
|
5909
5909
|
const status = response.status;
|
|
5910
5910
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
5911
5911
|
if (status === 200) {
|
|
5912
5912
|
return response.text().then((_responseText) => {
|
|
5913
5913
|
let result200: any = null;
|
|
5914
5914
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5915
|
-
result200 =
|
|
5915
|
+
result200 = BookingResponseDto.fromJS(resultData200);
|
|
5916
5916
|
return result200;
|
|
5917
5917
|
});
|
|
5918
5918
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -5920,10 +5920,10 @@ export class LocateBookingClient extends AuthorizedApiBase implements ILocateBoo
|
|
|
5920
5920
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5921
5921
|
});
|
|
5922
5922
|
}
|
|
5923
|
-
return Promise.resolve<
|
|
5923
|
+
return Promise.resolve<BookingResponseDto>(null as any);
|
|
5924
5924
|
}
|
|
5925
5925
|
|
|
5926
|
-
cancelBooking(bookingId: string): Promise<
|
|
5926
|
+
cancelBooking(bookingId: string): Promise<BookingResponseDto> {
|
|
5927
5927
|
let url_ = this.baseUrl + "/locate/booking/{bookingId}/cancel";
|
|
5928
5928
|
if (bookingId === undefined || bookingId === null)
|
|
5929
5929
|
throw new Error("The parameter 'bookingId' must be defined.");
|
|
@@ -5944,14 +5944,14 @@ export class LocateBookingClient extends AuthorizedApiBase implements ILocateBoo
|
|
|
5944
5944
|
});
|
|
5945
5945
|
}
|
|
5946
5946
|
|
|
5947
|
-
protected processCancelBooking(response: Response): Promise<
|
|
5947
|
+
protected processCancelBooking(response: Response): Promise<BookingResponseDto> {
|
|
5948
5948
|
const status = response.status;
|
|
5949
5949
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
5950
5950
|
if (status === 200) {
|
|
5951
5951
|
return response.text().then((_responseText) => {
|
|
5952
5952
|
let result200: any = null;
|
|
5953
5953
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5954
|
-
result200 =
|
|
5954
|
+
result200 = BookingResponseDto.fromJS(resultData200);
|
|
5955
5955
|
return result200;
|
|
5956
5956
|
});
|
|
5957
5957
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -5959,10 +5959,10 @@ export class LocateBookingClient extends AuthorizedApiBase implements ILocateBoo
|
|
|
5959
5959
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5960
5960
|
});
|
|
5961
5961
|
}
|
|
5962
|
-
return Promise.resolve<
|
|
5962
|
+
return Promise.resolve<BookingResponseDto>(null as any);
|
|
5963
5963
|
}
|
|
5964
5964
|
|
|
5965
|
-
startDelivery(bookingId: string): Promise<
|
|
5965
|
+
startDelivery(bookingId: string): Promise<BookingResponseDto> {
|
|
5966
5966
|
let url_ = this.baseUrl + "/locate/booking/{bookingId}/startdelivery";
|
|
5967
5967
|
if (bookingId === undefined || bookingId === null)
|
|
5968
5968
|
throw new Error("The parameter 'bookingId' must be defined.");
|
|
@@ -5983,14 +5983,14 @@ export class LocateBookingClient extends AuthorizedApiBase implements ILocateBoo
|
|
|
5983
5983
|
});
|
|
5984
5984
|
}
|
|
5985
5985
|
|
|
5986
|
-
protected processStartDelivery(response: Response): Promise<
|
|
5986
|
+
protected processStartDelivery(response: Response): Promise<BookingResponseDto> {
|
|
5987
5987
|
const status = response.status;
|
|
5988
5988
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
5989
5989
|
if (status === 200) {
|
|
5990
5990
|
return response.text().then((_responseText) => {
|
|
5991
5991
|
let result200: any = null;
|
|
5992
5992
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5993
|
-
result200 =
|
|
5993
|
+
result200 = BookingResponseDto.fromJS(resultData200);
|
|
5994
5994
|
return result200;
|
|
5995
5995
|
});
|
|
5996
5996
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -5998,10 +5998,10 @@ export class LocateBookingClient extends AuthorizedApiBase implements ILocateBoo
|
|
|
5998
5998
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5999
5999
|
});
|
|
6000
6000
|
}
|
|
6001
|
-
return Promise.resolve<
|
|
6001
|
+
return Promise.resolve<BookingResponseDto>(null as any);
|
|
6002
6002
|
}
|
|
6003
6003
|
|
|
6004
|
-
finishDelivery(bookingId: string): Promise<
|
|
6004
|
+
finishDelivery(bookingId: string): Promise<BookingResponseDto> {
|
|
6005
6005
|
let url_ = this.baseUrl + "/locate/booking/{bookingId}/finishdelivery";
|
|
6006
6006
|
if (bookingId === undefined || bookingId === null)
|
|
6007
6007
|
throw new Error("The parameter 'bookingId' must be defined.");
|
|
@@ -6022,14 +6022,14 @@ export class LocateBookingClient extends AuthorizedApiBase implements ILocateBoo
|
|
|
6022
6022
|
});
|
|
6023
6023
|
}
|
|
6024
6024
|
|
|
6025
|
-
protected processFinishDelivery(response: Response): Promise<
|
|
6025
|
+
protected processFinishDelivery(response: Response): Promise<BookingResponseDto> {
|
|
6026
6026
|
const status = response.status;
|
|
6027
6027
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
6028
6028
|
if (status === 200) {
|
|
6029
6029
|
return response.text().then((_responseText) => {
|
|
6030
6030
|
let result200: any = null;
|
|
6031
6031
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6032
|
-
result200 =
|
|
6032
|
+
result200 = BookingResponseDto.fromJS(resultData200);
|
|
6033
6033
|
return result200;
|
|
6034
6034
|
});
|
|
6035
6035
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -6037,13 +6037,13 @@ export class LocateBookingClient extends AuthorizedApiBase implements ILocateBoo
|
|
|
6037
6037
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6038
6038
|
});
|
|
6039
6039
|
}
|
|
6040
|
-
return Promise.resolve<
|
|
6040
|
+
return Promise.resolve<BookingResponseDto>(null as any);
|
|
6041
6041
|
}
|
|
6042
6042
|
}
|
|
6043
6043
|
|
|
6044
6044
|
export interface ILocateLocationsClient {
|
|
6045
6045
|
|
|
6046
|
-
searchLocations(input: string | null | undefined, orderId: string | null | undefined): Promise<
|
|
6046
|
+
searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | undefined, orderId: string | null | undefined): Promise<LocationDto[]>;
|
|
6047
6047
|
}
|
|
6048
6048
|
|
|
6049
6049
|
export class LocateLocationsClient extends AuthorizedApiBase implements ILocateLocationsClient {
|
|
@@ -6057,10 +6057,14 @@ export class LocateLocationsClient extends AuthorizedApiBase implements ILocateL
|
|
|
6057
6057
|
this.baseUrl = baseUrl ?? "";
|
|
6058
6058
|
}
|
|
6059
6059
|
|
|
6060
|
-
searchLocations(input: string | null | undefined, orderId: string | null | undefined): Promise<
|
|
6060
|
+
searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | undefined, orderId: string | null | undefined): Promise<LocationDto[]> {
|
|
6061
6061
|
let url_ = this.baseUrl + "/locate/locations/search?";
|
|
6062
6062
|
if (input !== undefined && input !== null)
|
|
6063
6063
|
url_ += "input=" + encodeURIComponent("" + input) + "&";
|
|
6064
|
+
if (locationKinds === null)
|
|
6065
|
+
throw new Error("The parameter 'locationKinds' cannot be null.");
|
|
6066
|
+
else if (locationKinds !== undefined)
|
|
6067
|
+
locationKinds && locationKinds.forEach(item => { url_ += "locationKinds=" + encodeURIComponent("" + item) + "&"; });
|
|
6064
6068
|
if (orderId !== undefined && orderId !== null)
|
|
6065
6069
|
url_ += "orderId=" + encodeURIComponent("" + orderId) + "&";
|
|
6066
6070
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -6079,7 +6083,7 @@ export class LocateLocationsClient extends AuthorizedApiBase implements ILocateL
|
|
|
6079
6083
|
});
|
|
6080
6084
|
}
|
|
6081
6085
|
|
|
6082
|
-
protected processSearchLocations(response: Response): Promise<
|
|
6086
|
+
protected processSearchLocations(response: Response): Promise<LocationDto[]> {
|
|
6083
6087
|
const status = response.status;
|
|
6084
6088
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
6085
6089
|
if (status === 200) {
|
|
@@ -6089,7 +6093,7 @@ export class LocateLocationsClient extends AuthorizedApiBase implements ILocateL
|
|
|
6089
6093
|
if (Array.isArray(resultData200)) {
|
|
6090
6094
|
result200 = [] as any;
|
|
6091
6095
|
for (let item of resultData200)
|
|
6092
|
-
result200!.push(
|
|
6096
|
+
result200!.push(LocationDto.fromJS(item));
|
|
6093
6097
|
}
|
|
6094
6098
|
return result200;
|
|
6095
6099
|
});
|
|
@@ -6098,16 +6102,16 @@ export class LocateLocationsClient extends AuthorizedApiBase implements ILocateL
|
|
|
6098
6102
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6099
6103
|
});
|
|
6100
6104
|
}
|
|
6101
|
-
return Promise.resolve<
|
|
6105
|
+
return Promise.resolve<LocationDto[]>(null as any);
|
|
6102
6106
|
}
|
|
6103
6107
|
}
|
|
6104
6108
|
|
|
6105
|
-
export interface
|
|
6109
|
+
export interface ILocateOrdersClient {
|
|
6106
6110
|
|
|
6107
|
-
|
|
6111
|
+
searchOrders(input: string | null | undefined): Promise<OrderDto[]>;
|
|
6108
6112
|
}
|
|
6109
6113
|
|
|
6110
|
-
export class
|
|
6114
|
+
export class LocateOrdersClient extends AuthorizedApiBase implements ILocateOrdersClient {
|
|
6111
6115
|
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
|
|
6112
6116
|
private baseUrl: string;
|
|
6113
6117
|
protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
|
|
@@ -6118,12 +6122,10 @@ export class LocatePartsClient extends AuthorizedApiBase implements ILocateParts
|
|
|
6118
6122
|
this.baseUrl = baseUrl ?? "";
|
|
6119
6123
|
}
|
|
6120
6124
|
|
|
6121
|
-
|
|
6122
|
-
let url_ = this.baseUrl + "/locate/
|
|
6125
|
+
searchOrders(input: string | null | undefined): Promise<OrderDto[]> {
|
|
6126
|
+
let url_ = this.baseUrl + "/locate/orders/search?";
|
|
6123
6127
|
if (input !== undefined && input !== null)
|
|
6124
6128
|
url_ += "input=" + encodeURIComponent("" + input) + "&";
|
|
6125
|
-
if (orderId !== undefined && orderId !== null)
|
|
6126
|
-
url_ += "orderId=" + encodeURIComponent("" + orderId) + "&";
|
|
6127
6129
|
url_ = url_.replace(/[?&]$/, "");
|
|
6128
6130
|
|
|
6129
6131
|
let options_: RequestInit = {
|
|
@@ -6136,11 +6138,11 @@ export class LocatePartsClient extends AuthorizedApiBase implements ILocateParts
|
|
|
6136
6138
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
6137
6139
|
return this.http.fetch(url_, transformedOptions_);
|
|
6138
6140
|
}).then((_response: Response) => {
|
|
6139
|
-
return this.
|
|
6141
|
+
return this.processSearchOrders(_response);
|
|
6140
6142
|
});
|
|
6141
6143
|
}
|
|
6142
6144
|
|
|
6143
|
-
protected
|
|
6145
|
+
protected processSearchOrders(response: Response): Promise<OrderDto[]> {
|
|
6144
6146
|
const status = response.status;
|
|
6145
6147
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
6146
6148
|
if (status === 200) {
|
|
@@ -6150,7 +6152,7 @@ export class LocatePartsClient extends AuthorizedApiBase implements ILocateParts
|
|
|
6150
6152
|
if (Array.isArray(resultData200)) {
|
|
6151
6153
|
result200 = [] as any;
|
|
6152
6154
|
for (let item of resultData200)
|
|
6153
|
-
result200!.push(
|
|
6155
|
+
result200!.push(OrderDto.fromJS(item));
|
|
6154
6156
|
}
|
|
6155
6157
|
return result200;
|
|
6156
6158
|
});
|
|
@@ -6159,17 +6161,17 @@ export class LocatePartsClient extends AuthorizedApiBase implements ILocateParts
|
|
|
6159
6161
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6160
6162
|
});
|
|
6161
6163
|
}
|
|
6162
|
-
return Promise.resolve<
|
|
6164
|
+
return Promise.resolve<OrderDto[]>(null as any);
|
|
6163
6165
|
}
|
|
6164
6166
|
}
|
|
6165
6167
|
|
|
6166
6168
|
export interface ILocateTrackingClient {
|
|
6167
6169
|
|
|
6168
|
-
listTrackingHistory(orderId: string): Promise<
|
|
6170
|
+
listTrackingHistory(orderId: string): Promise<TrackingHistoryDto>;
|
|
6169
6171
|
|
|
6170
|
-
createTrackingEvent(orderId: string, locateTrackingUpdate:
|
|
6172
|
+
createTrackingEvent(orderId: string, locateTrackingUpdate: TrackingUpdateDto): Promise<TrackingEventsDto>;
|
|
6171
6173
|
|
|
6172
|
-
updateTrackingEvent(orderId: string, trackingEventId: number, locateTrackingUpdate:
|
|
6174
|
+
updateTrackingEvent(orderId: string, trackingEventId: number, locateTrackingUpdate: TrackingUpdateDto): Promise<TrackingEventsDto>;
|
|
6173
6175
|
|
|
6174
6176
|
createLabel(orderId: string, palletCount: number | undefined): Promise<FileResponse>;
|
|
6175
6177
|
}
|
|
@@ -6185,7 +6187,7 @@ export class LocateTrackingClient extends AuthorizedApiBase implements ILocateTr
|
|
|
6185
6187
|
this.baseUrl = baseUrl ?? "";
|
|
6186
6188
|
}
|
|
6187
6189
|
|
|
6188
|
-
listTrackingHistory(orderId: string): Promise<
|
|
6190
|
+
listTrackingHistory(orderId: string): Promise<TrackingHistoryDto> {
|
|
6189
6191
|
let url_ = this.baseUrl + "/locate/tracking/{orderId}";
|
|
6190
6192
|
if (orderId === undefined || orderId === null)
|
|
6191
6193
|
throw new Error("The parameter 'orderId' must be defined.");
|
|
@@ -6206,14 +6208,14 @@ export class LocateTrackingClient extends AuthorizedApiBase implements ILocateTr
|
|
|
6206
6208
|
});
|
|
6207
6209
|
}
|
|
6208
6210
|
|
|
6209
|
-
protected processListTrackingHistory(response: Response): Promise<
|
|
6211
|
+
protected processListTrackingHistory(response: Response): Promise<TrackingHistoryDto> {
|
|
6210
6212
|
const status = response.status;
|
|
6211
6213
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
6212
6214
|
if (status === 200) {
|
|
6213
6215
|
return response.text().then((_responseText) => {
|
|
6214
6216
|
let result200: any = null;
|
|
6215
6217
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6216
|
-
result200 =
|
|
6218
|
+
result200 = TrackingHistoryDto.fromJS(resultData200);
|
|
6217
6219
|
return result200;
|
|
6218
6220
|
});
|
|
6219
6221
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -6221,10 +6223,10 @@ export class LocateTrackingClient extends AuthorizedApiBase implements ILocateTr
|
|
|
6221
6223
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6222
6224
|
});
|
|
6223
6225
|
}
|
|
6224
|
-
return Promise.resolve<
|
|
6226
|
+
return Promise.resolve<TrackingHistoryDto>(null as any);
|
|
6225
6227
|
}
|
|
6226
6228
|
|
|
6227
|
-
createTrackingEvent(orderId: string, locateTrackingUpdate:
|
|
6229
|
+
createTrackingEvent(orderId: string, locateTrackingUpdate: TrackingUpdateDto): Promise<TrackingEventsDto> {
|
|
6228
6230
|
let url_ = this.baseUrl + "/locate/tracking/{orderId}";
|
|
6229
6231
|
if (orderId === undefined || orderId === null)
|
|
6230
6232
|
throw new Error("The parameter 'orderId' must be defined.");
|
|
@@ -6249,14 +6251,14 @@ export class LocateTrackingClient extends AuthorizedApiBase implements ILocateTr
|
|
|
6249
6251
|
});
|
|
6250
6252
|
}
|
|
6251
6253
|
|
|
6252
|
-
protected processCreateTrackingEvent(response: Response): Promise<
|
|
6254
|
+
protected processCreateTrackingEvent(response: Response): Promise<TrackingEventsDto> {
|
|
6253
6255
|
const status = response.status;
|
|
6254
6256
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
6255
6257
|
if (status === 200) {
|
|
6256
6258
|
return response.text().then((_responseText) => {
|
|
6257
6259
|
let result200: any = null;
|
|
6258
6260
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6259
|
-
result200 =
|
|
6261
|
+
result200 = TrackingEventsDto.fromJS(resultData200);
|
|
6260
6262
|
return result200;
|
|
6261
6263
|
});
|
|
6262
6264
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -6264,10 +6266,10 @@ export class LocateTrackingClient extends AuthorizedApiBase implements ILocateTr
|
|
|
6264
6266
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6265
6267
|
});
|
|
6266
6268
|
}
|
|
6267
|
-
return Promise.resolve<
|
|
6269
|
+
return Promise.resolve<TrackingEventsDto>(null as any);
|
|
6268
6270
|
}
|
|
6269
6271
|
|
|
6270
|
-
updateTrackingEvent(orderId: string, trackingEventId: number, locateTrackingUpdate:
|
|
6272
|
+
updateTrackingEvent(orderId: string, trackingEventId: number, locateTrackingUpdate: TrackingUpdateDto): Promise<TrackingEventsDto> {
|
|
6271
6273
|
let url_ = this.baseUrl + "/locate/tracking/{orderId}/{trackingEventId}";
|
|
6272
6274
|
if (orderId === undefined || orderId === null)
|
|
6273
6275
|
throw new Error("The parameter 'orderId' must be defined.");
|
|
@@ -6295,14 +6297,14 @@ export class LocateTrackingClient extends AuthorizedApiBase implements ILocateTr
|
|
|
6295
6297
|
});
|
|
6296
6298
|
}
|
|
6297
6299
|
|
|
6298
|
-
protected processUpdateTrackingEvent(response: Response): Promise<
|
|
6300
|
+
protected processUpdateTrackingEvent(response: Response): Promise<TrackingEventsDto> {
|
|
6299
6301
|
const status = response.status;
|
|
6300
6302
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
6301
6303
|
if (status === 200) {
|
|
6302
6304
|
return response.text().then((_responseText) => {
|
|
6303
6305
|
let result200: any = null;
|
|
6304
6306
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6305
|
-
result200 =
|
|
6307
|
+
result200 = TrackingEventsDto.fromJS(resultData200);
|
|
6306
6308
|
return result200;
|
|
6307
6309
|
});
|
|
6308
6310
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -6310,7 +6312,7 @@ export class LocateTrackingClient extends AuthorizedApiBase implements ILocateTr
|
|
|
6310
6312
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6311
6313
|
});
|
|
6312
6314
|
}
|
|
6313
|
-
return Promise.resolve<
|
|
6315
|
+
return Promise.resolve<TrackingEventsDto>(null as any);
|
|
6314
6316
|
}
|
|
6315
6317
|
|
|
6316
6318
|
createLabel(orderId: string, palletCount: number | undefined): Promise<FileResponse> {
|
|
@@ -20275,6 +20277,7 @@ export class UserDto implements IUserDto {
|
|
|
20275
20277
|
id?: string | null;
|
|
20276
20278
|
fullName?: string | null;
|
|
20277
20279
|
upn?: string | null;
|
|
20280
|
+
email?: string | null;
|
|
20278
20281
|
isBetaTester?: boolean | null;
|
|
20279
20282
|
|
|
20280
20283
|
constructor(data?: IUserDto) {
|
|
@@ -20291,6 +20294,7 @@ export class UserDto implements IUserDto {
|
|
|
20291
20294
|
this.id = _data["id"];
|
|
20292
20295
|
this.fullName = _data["fullName"];
|
|
20293
20296
|
this.upn = _data["upn"];
|
|
20297
|
+
this.email = _data["email"];
|
|
20294
20298
|
this.isBetaTester = _data["isBetaTester"];
|
|
20295
20299
|
}
|
|
20296
20300
|
}
|
|
@@ -20307,6 +20311,7 @@ export class UserDto implements IUserDto {
|
|
|
20307
20311
|
data["id"] = this.id;
|
|
20308
20312
|
data["fullName"] = this.fullName;
|
|
20309
20313
|
data["upn"] = this.upn;
|
|
20314
|
+
data["email"] = this.email;
|
|
20310
20315
|
data["isBetaTester"] = this.isBetaTester;
|
|
20311
20316
|
return data;
|
|
20312
20317
|
}
|
|
@@ -20316,6 +20321,7 @@ export interface IUserDto {
|
|
|
20316
20321
|
id?: string | null;
|
|
20317
20322
|
fullName?: string | null;
|
|
20318
20323
|
upn?: string | null;
|
|
20324
|
+
email?: string | null;
|
|
20319
20325
|
isBetaTester?: boolean | null;
|
|
20320
20326
|
}
|
|
20321
20327
|
|
|
@@ -28253,12 +28259,12 @@ export interface ICreateResourceWithMachine {
|
|
|
28253
28259
|
model?: string | null;
|
|
28254
28260
|
}
|
|
28255
28261
|
|
|
28256
|
-
export class
|
|
28262
|
+
export class BookingResponseDto implements IBookingResponseDto {
|
|
28257
28263
|
bookingId!: string;
|
|
28258
28264
|
requestedDate!: Date;
|
|
28259
28265
|
requestedBy!: string;
|
|
28260
|
-
bookingType!:
|
|
28261
|
-
bookingStatus!:
|
|
28266
|
+
bookingType!: BookingTypeDto;
|
|
28267
|
+
bookingStatus!: BookingStatusDto;
|
|
28262
28268
|
orderId!: string;
|
|
28263
28269
|
palletCount!: number;
|
|
28264
28270
|
fromLocation!: string;
|
|
@@ -28271,7 +28277,7 @@ export class LocateBookingResponseDto implements ILocateBookingResponseDto {
|
|
|
28271
28277
|
weight?: number | null;
|
|
28272
28278
|
material?: string | null;
|
|
28273
28279
|
|
|
28274
|
-
constructor(data?:
|
|
28280
|
+
constructor(data?: IBookingResponseDto) {
|
|
28275
28281
|
if (data) {
|
|
28276
28282
|
for (var property in data) {
|
|
28277
28283
|
if (data.hasOwnProperty(property))
|
|
@@ -28301,9 +28307,9 @@ export class LocateBookingResponseDto implements ILocateBookingResponseDto {
|
|
|
28301
28307
|
}
|
|
28302
28308
|
}
|
|
28303
28309
|
|
|
28304
|
-
static fromJS(data: any):
|
|
28310
|
+
static fromJS(data: any): BookingResponseDto {
|
|
28305
28311
|
data = typeof data === 'object' ? data : {};
|
|
28306
|
-
let result = new
|
|
28312
|
+
let result = new BookingResponseDto();
|
|
28307
28313
|
result.init(data);
|
|
28308
28314
|
return result;
|
|
28309
28315
|
}
|
|
@@ -28330,12 +28336,12 @@ export class LocateBookingResponseDto implements ILocateBookingResponseDto {
|
|
|
28330
28336
|
}
|
|
28331
28337
|
}
|
|
28332
28338
|
|
|
28333
|
-
export interface
|
|
28339
|
+
export interface IBookingResponseDto {
|
|
28334
28340
|
bookingId: string;
|
|
28335
28341
|
requestedDate: Date;
|
|
28336
28342
|
requestedBy: string;
|
|
28337
|
-
bookingType:
|
|
28338
|
-
bookingStatus:
|
|
28343
|
+
bookingType: BookingTypeDto;
|
|
28344
|
+
bookingStatus: BookingStatusDto;
|
|
28339
28345
|
orderId: string;
|
|
28340
28346
|
palletCount: number;
|
|
28341
28347
|
fromLocation: string;
|
|
@@ -28349,14 +28355,14 @@ export interface ILocateBookingResponseDto {
|
|
|
28349
28355
|
material?: string | null;
|
|
28350
28356
|
}
|
|
28351
28357
|
|
|
28352
|
-
export type
|
|
28358
|
+
export type BookingTypeDto = "NormalTruck" | "LargeTruck" | "SideLoadingTruck";
|
|
28353
28359
|
|
|
28354
|
-
export type
|
|
28360
|
+
export type BookingStatusDto = "Pending" | "Cancelled" | "InProgress" | "Delivered";
|
|
28355
28361
|
|
|
28356
|
-
export class
|
|
28362
|
+
export class BookingRequestDto implements IBookingRequestDto {
|
|
28357
28363
|
requestedDate!: Date;
|
|
28358
28364
|
requestedBy!: string;
|
|
28359
|
-
bookingType!:
|
|
28365
|
+
bookingType!: BookingTypeDto;
|
|
28360
28366
|
orderId!: string;
|
|
28361
28367
|
palletCount!: number;
|
|
28362
28368
|
fromLocation!: string;
|
|
@@ -28369,7 +28375,7 @@ export class LocateBookingRequestDto implements ILocateBookingRequestDto {
|
|
|
28369
28375
|
weight?: number | null;
|
|
28370
28376
|
material?: string | null;
|
|
28371
28377
|
|
|
28372
|
-
constructor(data?:
|
|
28378
|
+
constructor(data?: IBookingRequestDto) {
|
|
28373
28379
|
if (data) {
|
|
28374
28380
|
for (var property in data) {
|
|
28375
28381
|
if (data.hasOwnProperty(property))
|
|
@@ -28397,9 +28403,9 @@ export class LocateBookingRequestDto implements ILocateBookingRequestDto {
|
|
|
28397
28403
|
}
|
|
28398
28404
|
}
|
|
28399
28405
|
|
|
28400
|
-
static fromJS(data: any):
|
|
28406
|
+
static fromJS(data: any): BookingRequestDto {
|
|
28401
28407
|
data = typeof data === 'object' ? data : {};
|
|
28402
|
-
let result = new
|
|
28408
|
+
let result = new BookingRequestDto();
|
|
28403
28409
|
result.init(data);
|
|
28404
28410
|
return result;
|
|
28405
28411
|
}
|
|
@@ -28424,10 +28430,10 @@ export class LocateBookingRequestDto implements ILocateBookingRequestDto {
|
|
|
28424
28430
|
}
|
|
28425
28431
|
}
|
|
28426
28432
|
|
|
28427
|
-
export interface
|
|
28433
|
+
export interface IBookingRequestDto {
|
|
28428
28434
|
requestedDate: Date;
|
|
28429
28435
|
requestedBy: string;
|
|
28430
|
-
bookingType:
|
|
28436
|
+
bookingType: BookingTypeDto;
|
|
28431
28437
|
orderId: string;
|
|
28432
28438
|
palletCount: number;
|
|
28433
28439
|
fromLocation: string;
|
|
@@ -28441,11 +28447,11 @@ export interface ILocateBookingRequestDto {
|
|
|
28441
28447
|
material?: string | null;
|
|
28442
28448
|
}
|
|
28443
28449
|
|
|
28444
|
-
export class
|
|
28445
|
-
results!:
|
|
28450
|
+
export class BookingResponseListDto implements IBookingResponseListDto {
|
|
28451
|
+
results!: BookingResponseDto[];
|
|
28446
28452
|
continuationToken?: string | null;
|
|
28447
28453
|
|
|
28448
|
-
constructor(data?:
|
|
28454
|
+
constructor(data?: IBookingResponseListDto) {
|
|
28449
28455
|
if (data) {
|
|
28450
28456
|
for (var property in data) {
|
|
28451
28457
|
if (data.hasOwnProperty(property))
|
|
@@ -28462,15 +28468,15 @@ export class LocateBookingResponseListDto implements ILocateBookingResponseListD
|
|
|
28462
28468
|
if (Array.isArray(_data["results"])) {
|
|
28463
28469
|
this.results = [] as any;
|
|
28464
28470
|
for (let item of _data["results"])
|
|
28465
|
-
this.results!.push(
|
|
28471
|
+
this.results!.push(BookingResponseDto.fromJS(item));
|
|
28466
28472
|
}
|
|
28467
28473
|
this.continuationToken = _data["continuationToken"];
|
|
28468
28474
|
}
|
|
28469
28475
|
}
|
|
28470
28476
|
|
|
28471
|
-
static fromJS(data: any):
|
|
28477
|
+
static fromJS(data: any): BookingResponseListDto {
|
|
28472
28478
|
data = typeof data === 'object' ? data : {};
|
|
28473
|
-
let result = new
|
|
28479
|
+
let result = new BookingResponseListDto();
|
|
28474
28480
|
result.init(data);
|
|
28475
28481
|
return result;
|
|
28476
28482
|
}
|
|
@@ -28487,15 +28493,15 @@ export class LocateBookingResponseListDto implements ILocateBookingResponseListD
|
|
|
28487
28493
|
}
|
|
28488
28494
|
}
|
|
28489
28495
|
|
|
28490
|
-
export interface
|
|
28491
|
-
results:
|
|
28496
|
+
export interface IBookingResponseListDto {
|
|
28497
|
+
results: BookingResponseDto[];
|
|
28492
28498
|
continuationToken?: string | null;
|
|
28493
28499
|
}
|
|
28494
28500
|
|
|
28495
|
-
export class
|
|
28501
|
+
export class BookingRequestListDto implements IBookingRequestListDto {
|
|
28496
28502
|
continuationToken?: string | null;
|
|
28497
28503
|
|
|
28498
|
-
constructor(data?:
|
|
28504
|
+
constructor(data?: IBookingRequestListDto) {
|
|
28499
28505
|
if (data) {
|
|
28500
28506
|
for (var property in data) {
|
|
28501
28507
|
if (data.hasOwnProperty(property))
|
|
@@ -28510,9 +28516,9 @@ export class LocateBookingRequestListDto implements ILocateBookingRequestListDto
|
|
|
28510
28516
|
}
|
|
28511
28517
|
}
|
|
28512
28518
|
|
|
28513
|
-
static fromJS(data: any):
|
|
28519
|
+
static fromJS(data: any): BookingRequestListDto {
|
|
28514
28520
|
data = typeof data === 'object' ? data : {};
|
|
28515
|
-
let result = new
|
|
28521
|
+
let result = new BookingRequestListDto();
|
|
28516
28522
|
result.init(data);
|
|
28517
28523
|
return result;
|
|
28518
28524
|
}
|
|
@@ -28524,15 +28530,17 @@ export class LocateBookingRequestListDto implements ILocateBookingRequestListDto
|
|
|
28524
28530
|
}
|
|
28525
28531
|
}
|
|
28526
28532
|
|
|
28527
|
-
export interface
|
|
28533
|
+
export interface IBookingRequestListDto {
|
|
28528
28534
|
continuationToken?: string | null;
|
|
28529
28535
|
}
|
|
28530
28536
|
|
|
28531
|
-
export class
|
|
28537
|
+
export class LocationDto implements ILocationDto {
|
|
28532
28538
|
locationId!: string;
|
|
28533
|
-
|
|
28539
|
+
locationName!: string;
|
|
28540
|
+
kind!: LocationKindDto;
|
|
28541
|
+
profile?: string | null;
|
|
28534
28542
|
|
|
28535
|
-
constructor(data?:
|
|
28543
|
+
constructor(data?: ILocationDto) {
|
|
28536
28544
|
if (data) {
|
|
28537
28545
|
for (var property in data) {
|
|
28538
28546
|
if (data.hasOwnProperty(property))
|
|
@@ -28544,13 +28552,15 @@ export class LocateLocationDto implements ILocateLocationDto {
|
|
|
28544
28552
|
init(_data?: any) {
|
|
28545
28553
|
if (_data) {
|
|
28546
28554
|
this.locationId = _data["locationId"];
|
|
28547
|
-
this.
|
|
28555
|
+
this.locationName = _data["locationName"];
|
|
28556
|
+
this.kind = _data["kind"];
|
|
28557
|
+
this.profile = _data["profile"];
|
|
28548
28558
|
}
|
|
28549
28559
|
}
|
|
28550
28560
|
|
|
28551
|
-
static fromJS(data: any):
|
|
28561
|
+
static fromJS(data: any): LocationDto {
|
|
28552
28562
|
data = typeof data === 'object' ? data : {};
|
|
28553
|
-
let result = new
|
|
28563
|
+
let result = new LocationDto();
|
|
28554
28564
|
result.init(data);
|
|
28555
28565
|
return result;
|
|
28556
28566
|
}
|
|
@@ -28558,22 +28568,28 @@ export class LocateLocationDto implements ILocateLocationDto {
|
|
|
28558
28568
|
toJSON(data?: any) {
|
|
28559
28569
|
data = typeof data === 'object' ? data : {};
|
|
28560
28570
|
data["locationId"] = this.locationId;
|
|
28561
|
-
data["
|
|
28571
|
+
data["locationName"] = this.locationName;
|
|
28572
|
+
data["kind"] = this.kind;
|
|
28573
|
+
data["profile"] = this.profile;
|
|
28562
28574
|
return data;
|
|
28563
28575
|
}
|
|
28564
28576
|
}
|
|
28565
28577
|
|
|
28566
|
-
export interface
|
|
28578
|
+
export interface ILocationDto {
|
|
28567
28579
|
locationId: string;
|
|
28568
|
-
|
|
28580
|
+
locationName: string;
|
|
28581
|
+
kind: LocationKindDto;
|
|
28582
|
+
profile?: string | null;
|
|
28569
28583
|
}
|
|
28570
28584
|
|
|
28571
|
-
export
|
|
28585
|
+
export type LocationKindDto = "Warehouse" | "Zone" | "Location";
|
|
28586
|
+
|
|
28587
|
+
export class OrderDto implements IOrderDto {
|
|
28572
28588
|
orderId!: string;
|
|
28573
28589
|
partName?: string | null;
|
|
28574
28590
|
partNumber?: string | null;
|
|
28575
28591
|
|
|
28576
|
-
constructor(data?:
|
|
28592
|
+
constructor(data?: IOrderDto) {
|
|
28577
28593
|
if (data) {
|
|
28578
28594
|
for (var property in data) {
|
|
28579
28595
|
if (data.hasOwnProperty(property))
|
|
@@ -28590,9 +28606,9 @@ export class LocatePartsDto implements ILocatePartsDto {
|
|
|
28590
28606
|
}
|
|
28591
28607
|
}
|
|
28592
28608
|
|
|
28593
|
-
static fromJS(data: any):
|
|
28609
|
+
static fromJS(data: any): OrderDto {
|
|
28594
28610
|
data = typeof data === 'object' ? data : {};
|
|
28595
|
-
let result = new
|
|
28611
|
+
let result = new OrderDto();
|
|
28596
28612
|
result.init(data);
|
|
28597
28613
|
return result;
|
|
28598
28614
|
}
|
|
@@ -28606,18 +28622,18 @@ export class LocatePartsDto implements ILocatePartsDto {
|
|
|
28606
28622
|
}
|
|
28607
28623
|
}
|
|
28608
28624
|
|
|
28609
|
-
export interface
|
|
28625
|
+
export interface IOrderDto {
|
|
28610
28626
|
orderId: string;
|
|
28611
28627
|
partName?: string | null;
|
|
28612
28628
|
partNumber?: string | null;
|
|
28613
28629
|
}
|
|
28614
28630
|
|
|
28615
|
-
export class
|
|
28631
|
+
export class TrackingHistoryDto implements ITrackingHistoryDto {
|
|
28616
28632
|
orderId!: string;
|
|
28617
28633
|
lastSetPallets?: number | null;
|
|
28618
|
-
trackingEvents!:
|
|
28634
|
+
trackingEvents!: TrackingEventsDto[];
|
|
28619
28635
|
|
|
28620
|
-
constructor(data?:
|
|
28636
|
+
constructor(data?: ITrackingHistoryDto) {
|
|
28621
28637
|
if (data) {
|
|
28622
28638
|
for (var property in data) {
|
|
28623
28639
|
if (data.hasOwnProperty(property))
|
|
@@ -28636,14 +28652,14 @@ export class LocateTrackingHistoryDto implements ILocateTrackingHistoryDto {
|
|
|
28636
28652
|
if (Array.isArray(_data["trackingEvents"])) {
|
|
28637
28653
|
this.trackingEvents = [] as any;
|
|
28638
28654
|
for (let item of _data["trackingEvents"])
|
|
28639
|
-
this.trackingEvents!.push(
|
|
28655
|
+
this.trackingEvents!.push(TrackingEventsDto.fromJS(item));
|
|
28640
28656
|
}
|
|
28641
28657
|
}
|
|
28642
28658
|
}
|
|
28643
28659
|
|
|
28644
|
-
static fromJS(data: any):
|
|
28660
|
+
static fromJS(data: any): TrackingHistoryDto {
|
|
28645
28661
|
data = typeof data === 'object' ? data : {};
|
|
28646
|
-
let result = new
|
|
28662
|
+
let result = new TrackingHistoryDto();
|
|
28647
28663
|
result.init(data);
|
|
28648
28664
|
return result;
|
|
28649
28665
|
}
|
|
@@ -28661,24 +28677,24 @@ export class LocateTrackingHistoryDto implements ILocateTrackingHistoryDto {
|
|
|
28661
28677
|
}
|
|
28662
28678
|
}
|
|
28663
28679
|
|
|
28664
|
-
export interface
|
|
28680
|
+
export interface ITrackingHistoryDto {
|
|
28665
28681
|
orderId: string;
|
|
28666
28682
|
lastSetPallets?: number | null;
|
|
28667
|
-
trackingEvents:
|
|
28683
|
+
trackingEvents: TrackingEventsDto[];
|
|
28668
28684
|
}
|
|
28669
28685
|
|
|
28670
|
-
export class
|
|
28686
|
+
export class TrackingEventsDto implements ITrackingEventsDto {
|
|
28671
28687
|
id!: number;
|
|
28672
28688
|
created!: Date;
|
|
28673
28689
|
createdBy!: string;
|
|
28674
28690
|
updated!: Date;
|
|
28675
28691
|
updatedBy!: string;
|
|
28676
|
-
|
|
28692
|
+
locationId!: string;
|
|
28677
28693
|
active!: boolean;
|
|
28678
28694
|
trackingInfo?: string | null;
|
|
28679
28695
|
pallets?: number | null;
|
|
28680
28696
|
|
|
28681
|
-
constructor(data?:
|
|
28697
|
+
constructor(data?: ITrackingEventsDto) {
|
|
28682
28698
|
if (data) {
|
|
28683
28699
|
for (var property in data) {
|
|
28684
28700
|
if (data.hasOwnProperty(property))
|
|
@@ -28694,16 +28710,16 @@ export class LocateTrackingEventsDto implements ILocateTrackingEventsDto {
|
|
|
28694
28710
|
this.createdBy = _data["createdBy"];
|
|
28695
28711
|
this.updated = _data["updated"] ? new Date(_data["updated"].toString()) : <any>undefined;
|
|
28696
28712
|
this.updatedBy = _data["updatedBy"];
|
|
28697
|
-
this.
|
|
28713
|
+
this.locationId = _data["locationId"];
|
|
28698
28714
|
this.active = _data["active"];
|
|
28699
28715
|
this.trackingInfo = _data["trackingInfo"];
|
|
28700
28716
|
this.pallets = _data["pallets"];
|
|
28701
28717
|
}
|
|
28702
28718
|
}
|
|
28703
28719
|
|
|
28704
|
-
static fromJS(data: any):
|
|
28720
|
+
static fromJS(data: any): TrackingEventsDto {
|
|
28705
28721
|
data = typeof data === 'object' ? data : {};
|
|
28706
|
-
let result = new
|
|
28722
|
+
let result = new TrackingEventsDto();
|
|
28707
28723
|
result.init(data);
|
|
28708
28724
|
return result;
|
|
28709
28725
|
}
|
|
@@ -28715,7 +28731,7 @@ export class LocateTrackingEventsDto implements ILocateTrackingEventsDto {
|
|
|
28715
28731
|
data["createdBy"] = this.createdBy;
|
|
28716
28732
|
data["updated"] = this.updated ? this.updated.toISOString() : <any>undefined;
|
|
28717
28733
|
data["updatedBy"] = this.updatedBy;
|
|
28718
|
-
data["
|
|
28734
|
+
data["locationId"] = this.locationId;
|
|
28719
28735
|
data["active"] = this.active;
|
|
28720
28736
|
data["trackingInfo"] = this.trackingInfo;
|
|
28721
28737
|
data["pallets"] = this.pallets;
|
|
@@ -28723,25 +28739,25 @@ export class LocateTrackingEventsDto implements ILocateTrackingEventsDto {
|
|
|
28723
28739
|
}
|
|
28724
28740
|
}
|
|
28725
28741
|
|
|
28726
|
-
export interface
|
|
28742
|
+
export interface ITrackingEventsDto {
|
|
28727
28743
|
id: number;
|
|
28728
28744
|
created: Date;
|
|
28729
28745
|
createdBy: string;
|
|
28730
28746
|
updated: Date;
|
|
28731
28747
|
updatedBy: string;
|
|
28732
|
-
|
|
28748
|
+
locationId: string;
|
|
28733
28749
|
active: boolean;
|
|
28734
28750
|
trackingInfo?: string | null;
|
|
28735
28751
|
pallets?: number | null;
|
|
28736
28752
|
}
|
|
28737
28753
|
|
|
28738
|
-
export class
|
|
28754
|
+
export class TrackingUpdateDto implements ITrackingUpdateDto {
|
|
28739
28755
|
location!: string;
|
|
28740
28756
|
trackingInfo?: string | null;
|
|
28741
28757
|
active?: boolean | null;
|
|
28742
28758
|
pallets?: number | null;
|
|
28743
28759
|
|
|
28744
|
-
constructor(data?:
|
|
28760
|
+
constructor(data?: ITrackingUpdateDto) {
|
|
28745
28761
|
if (data) {
|
|
28746
28762
|
for (var property in data) {
|
|
28747
28763
|
if (data.hasOwnProperty(property))
|
|
@@ -28759,9 +28775,9 @@ export class LocateTrackingUpdateDto implements ILocateTrackingUpdateDto {
|
|
|
28759
28775
|
}
|
|
28760
28776
|
}
|
|
28761
28777
|
|
|
28762
|
-
static fromJS(data: any):
|
|
28778
|
+
static fromJS(data: any): TrackingUpdateDto {
|
|
28763
28779
|
data = typeof data === 'object' ? data : {};
|
|
28764
|
-
let result = new
|
|
28780
|
+
let result = new TrackingUpdateDto();
|
|
28765
28781
|
result.init(data);
|
|
28766
28782
|
return result;
|
|
28767
28783
|
}
|
|
@@ -28776,7 +28792,7 @@ export class LocateTrackingUpdateDto implements ILocateTrackingUpdateDto {
|
|
|
28776
28792
|
}
|
|
28777
28793
|
}
|
|
28778
28794
|
|
|
28779
|
-
export interface
|
|
28795
|
+
export interface ITrackingUpdateDto {
|
|
28780
28796
|
location: string;
|
|
28781
28797
|
trackingInfo?: string | null;
|
|
28782
28798
|
active?: boolean | null;
|