@ignos/api-client 20240429.0.9174 → 20240430.0.9189
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 +99 -94
- package/lib/ignosportal-api.js +54 -46
- package/package.json +1 -1
- package/src/ignosportal-api.ts +153 -139
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, orderId: string | null | undefined): Promise<LocateOrderDto[]>;
|
|
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,8 +6122,8 @@ 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, orderId: string | null | undefined): Promise<LocateOrderDto[]> {
|
|
6126
|
+
let url_ = this.baseUrl + "/locate/orders/search?";
|
|
6123
6127
|
if (input !== undefined && input !== null)
|
|
6124
6128
|
url_ += "input=" + encodeURIComponent("" + input) + "&";
|
|
6125
6129
|
if (orderId !== undefined && orderId !== null)
|
|
@@ -6136,11 +6140,11 @@ export class LocatePartsClient extends AuthorizedApiBase implements ILocateParts
|
|
|
6136
6140
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
6137
6141
|
return this.http.fetch(url_, transformedOptions_);
|
|
6138
6142
|
}).then((_response: Response) => {
|
|
6139
|
-
return this.
|
|
6143
|
+
return this.processSearchOrders(_response);
|
|
6140
6144
|
});
|
|
6141
6145
|
}
|
|
6142
6146
|
|
|
6143
|
-
protected
|
|
6147
|
+
protected processSearchOrders(response: Response): Promise<LocateOrderDto[]> {
|
|
6144
6148
|
const status = response.status;
|
|
6145
6149
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
6146
6150
|
if (status === 200) {
|
|
@@ -6150,7 +6154,7 @@ export class LocatePartsClient extends AuthorizedApiBase implements ILocateParts
|
|
|
6150
6154
|
if (Array.isArray(resultData200)) {
|
|
6151
6155
|
result200 = [] as any;
|
|
6152
6156
|
for (let item of resultData200)
|
|
6153
|
-
result200!.push(
|
|
6157
|
+
result200!.push(LocateOrderDto.fromJS(item));
|
|
6154
6158
|
}
|
|
6155
6159
|
return result200;
|
|
6156
6160
|
});
|
|
@@ -6159,17 +6163,17 @@ export class LocatePartsClient extends AuthorizedApiBase implements ILocateParts
|
|
|
6159
6163
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6160
6164
|
});
|
|
6161
6165
|
}
|
|
6162
|
-
return Promise.resolve<
|
|
6166
|
+
return Promise.resolve<LocateOrderDto[]>(null as any);
|
|
6163
6167
|
}
|
|
6164
6168
|
}
|
|
6165
6169
|
|
|
6166
6170
|
export interface ILocateTrackingClient {
|
|
6167
6171
|
|
|
6168
|
-
listTrackingHistory(orderId: string): Promise<
|
|
6172
|
+
listTrackingHistory(orderId: string): Promise<TrackingHistoryDto>;
|
|
6169
6173
|
|
|
6170
|
-
createTrackingEvent(orderId: string, locateTrackingUpdate:
|
|
6174
|
+
createTrackingEvent(orderId: string, locateTrackingUpdate: TrackingUpdateDto): Promise<TrackingEventsDto>;
|
|
6171
6175
|
|
|
6172
|
-
updateTrackingEvent(orderId: string, trackingEventId: number, locateTrackingUpdate:
|
|
6176
|
+
updateTrackingEvent(orderId: string, trackingEventId: number, locateTrackingUpdate: TrackingUpdateDto): Promise<TrackingEventsDto>;
|
|
6173
6177
|
|
|
6174
6178
|
createLabel(orderId: string, palletCount: number | undefined): Promise<FileResponse>;
|
|
6175
6179
|
}
|
|
@@ -6185,7 +6189,7 @@ export class LocateTrackingClient extends AuthorizedApiBase implements ILocateTr
|
|
|
6185
6189
|
this.baseUrl = baseUrl ?? "";
|
|
6186
6190
|
}
|
|
6187
6191
|
|
|
6188
|
-
listTrackingHistory(orderId: string): Promise<
|
|
6192
|
+
listTrackingHistory(orderId: string): Promise<TrackingHistoryDto> {
|
|
6189
6193
|
let url_ = this.baseUrl + "/locate/tracking/{orderId}";
|
|
6190
6194
|
if (orderId === undefined || orderId === null)
|
|
6191
6195
|
throw new Error("The parameter 'orderId' must be defined.");
|
|
@@ -6206,14 +6210,14 @@ export class LocateTrackingClient extends AuthorizedApiBase implements ILocateTr
|
|
|
6206
6210
|
});
|
|
6207
6211
|
}
|
|
6208
6212
|
|
|
6209
|
-
protected processListTrackingHistory(response: Response): Promise<
|
|
6213
|
+
protected processListTrackingHistory(response: Response): Promise<TrackingHistoryDto> {
|
|
6210
6214
|
const status = response.status;
|
|
6211
6215
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
6212
6216
|
if (status === 200) {
|
|
6213
6217
|
return response.text().then((_responseText) => {
|
|
6214
6218
|
let result200: any = null;
|
|
6215
6219
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6216
|
-
result200 =
|
|
6220
|
+
result200 = TrackingHistoryDto.fromJS(resultData200);
|
|
6217
6221
|
return result200;
|
|
6218
6222
|
});
|
|
6219
6223
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -6221,10 +6225,10 @@ export class LocateTrackingClient extends AuthorizedApiBase implements ILocateTr
|
|
|
6221
6225
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6222
6226
|
});
|
|
6223
6227
|
}
|
|
6224
|
-
return Promise.resolve<
|
|
6228
|
+
return Promise.resolve<TrackingHistoryDto>(null as any);
|
|
6225
6229
|
}
|
|
6226
6230
|
|
|
6227
|
-
createTrackingEvent(orderId: string, locateTrackingUpdate:
|
|
6231
|
+
createTrackingEvent(orderId: string, locateTrackingUpdate: TrackingUpdateDto): Promise<TrackingEventsDto> {
|
|
6228
6232
|
let url_ = this.baseUrl + "/locate/tracking/{orderId}";
|
|
6229
6233
|
if (orderId === undefined || orderId === null)
|
|
6230
6234
|
throw new Error("The parameter 'orderId' must be defined.");
|
|
@@ -6249,14 +6253,14 @@ export class LocateTrackingClient extends AuthorizedApiBase implements ILocateTr
|
|
|
6249
6253
|
});
|
|
6250
6254
|
}
|
|
6251
6255
|
|
|
6252
|
-
protected processCreateTrackingEvent(response: Response): Promise<
|
|
6256
|
+
protected processCreateTrackingEvent(response: Response): Promise<TrackingEventsDto> {
|
|
6253
6257
|
const status = response.status;
|
|
6254
6258
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
6255
6259
|
if (status === 200) {
|
|
6256
6260
|
return response.text().then((_responseText) => {
|
|
6257
6261
|
let result200: any = null;
|
|
6258
6262
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6259
|
-
result200 =
|
|
6263
|
+
result200 = TrackingEventsDto.fromJS(resultData200);
|
|
6260
6264
|
return result200;
|
|
6261
6265
|
});
|
|
6262
6266
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -6264,10 +6268,10 @@ export class LocateTrackingClient extends AuthorizedApiBase implements ILocateTr
|
|
|
6264
6268
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6265
6269
|
});
|
|
6266
6270
|
}
|
|
6267
|
-
return Promise.resolve<
|
|
6271
|
+
return Promise.resolve<TrackingEventsDto>(null as any);
|
|
6268
6272
|
}
|
|
6269
6273
|
|
|
6270
|
-
updateTrackingEvent(orderId: string, trackingEventId: number, locateTrackingUpdate:
|
|
6274
|
+
updateTrackingEvent(orderId: string, trackingEventId: number, locateTrackingUpdate: TrackingUpdateDto): Promise<TrackingEventsDto> {
|
|
6271
6275
|
let url_ = this.baseUrl + "/locate/tracking/{orderId}/{trackingEventId}";
|
|
6272
6276
|
if (orderId === undefined || orderId === null)
|
|
6273
6277
|
throw new Error("The parameter 'orderId' must be defined.");
|
|
@@ -6295,14 +6299,14 @@ export class LocateTrackingClient extends AuthorizedApiBase implements ILocateTr
|
|
|
6295
6299
|
});
|
|
6296
6300
|
}
|
|
6297
6301
|
|
|
6298
|
-
protected processUpdateTrackingEvent(response: Response): Promise<
|
|
6302
|
+
protected processUpdateTrackingEvent(response: Response): Promise<TrackingEventsDto> {
|
|
6299
6303
|
const status = response.status;
|
|
6300
6304
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
6301
6305
|
if (status === 200) {
|
|
6302
6306
|
return response.text().then((_responseText) => {
|
|
6303
6307
|
let result200: any = null;
|
|
6304
6308
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6305
|
-
result200 =
|
|
6309
|
+
result200 = TrackingEventsDto.fromJS(resultData200);
|
|
6306
6310
|
return result200;
|
|
6307
6311
|
});
|
|
6308
6312
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -6310,7 +6314,7 @@ export class LocateTrackingClient extends AuthorizedApiBase implements ILocateTr
|
|
|
6310
6314
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6311
6315
|
});
|
|
6312
6316
|
}
|
|
6313
|
-
return Promise.resolve<
|
|
6317
|
+
return Promise.resolve<TrackingEventsDto>(null as any);
|
|
6314
6318
|
}
|
|
6315
6319
|
|
|
6316
6320
|
createLabel(orderId: string, palletCount: number | undefined): Promise<FileResponse> {
|
|
@@ -28253,12 +28257,12 @@ export interface ICreateResourceWithMachine {
|
|
|
28253
28257
|
model?: string | null;
|
|
28254
28258
|
}
|
|
28255
28259
|
|
|
28256
|
-
export class
|
|
28260
|
+
export class BookingResponseDto implements IBookingResponseDto {
|
|
28257
28261
|
bookingId!: string;
|
|
28258
28262
|
requestedDate!: Date;
|
|
28259
28263
|
requestedBy!: string;
|
|
28260
|
-
bookingType!:
|
|
28261
|
-
bookingStatus!:
|
|
28264
|
+
bookingType!: BookingTypeDto;
|
|
28265
|
+
bookingStatus!: BookingStatusDto;
|
|
28262
28266
|
orderId!: string;
|
|
28263
28267
|
palletCount!: number;
|
|
28264
28268
|
fromLocation!: string;
|
|
@@ -28271,7 +28275,7 @@ export class LocateBookingResponseDto implements ILocateBookingResponseDto {
|
|
|
28271
28275
|
weight?: number | null;
|
|
28272
28276
|
material?: string | null;
|
|
28273
28277
|
|
|
28274
|
-
constructor(data?:
|
|
28278
|
+
constructor(data?: IBookingResponseDto) {
|
|
28275
28279
|
if (data) {
|
|
28276
28280
|
for (var property in data) {
|
|
28277
28281
|
if (data.hasOwnProperty(property))
|
|
@@ -28301,9 +28305,9 @@ export class LocateBookingResponseDto implements ILocateBookingResponseDto {
|
|
|
28301
28305
|
}
|
|
28302
28306
|
}
|
|
28303
28307
|
|
|
28304
|
-
static fromJS(data: any):
|
|
28308
|
+
static fromJS(data: any): BookingResponseDto {
|
|
28305
28309
|
data = typeof data === 'object' ? data : {};
|
|
28306
|
-
let result = new
|
|
28310
|
+
let result = new BookingResponseDto();
|
|
28307
28311
|
result.init(data);
|
|
28308
28312
|
return result;
|
|
28309
28313
|
}
|
|
@@ -28330,12 +28334,12 @@ export class LocateBookingResponseDto implements ILocateBookingResponseDto {
|
|
|
28330
28334
|
}
|
|
28331
28335
|
}
|
|
28332
28336
|
|
|
28333
|
-
export interface
|
|
28337
|
+
export interface IBookingResponseDto {
|
|
28334
28338
|
bookingId: string;
|
|
28335
28339
|
requestedDate: Date;
|
|
28336
28340
|
requestedBy: string;
|
|
28337
|
-
bookingType:
|
|
28338
|
-
bookingStatus:
|
|
28341
|
+
bookingType: BookingTypeDto;
|
|
28342
|
+
bookingStatus: BookingStatusDto;
|
|
28339
28343
|
orderId: string;
|
|
28340
28344
|
palletCount: number;
|
|
28341
28345
|
fromLocation: string;
|
|
@@ -28349,14 +28353,14 @@ export interface ILocateBookingResponseDto {
|
|
|
28349
28353
|
material?: string | null;
|
|
28350
28354
|
}
|
|
28351
28355
|
|
|
28352
|
-
export type
|
|
28356
|
+
export type BookingTypeDto = "NormalTruck" | "LargeTruck" | "SideLoadingTruck";
|
|
28353
28357
|
|
|
28354
|
-
export type
|
|
28358
|
+
export type BookingStatusDto = "Pending" | "Cancelled" | "InProgress" | "Delivered";
|
|
28355
28359
|
|
|
28356
|
-
export class
|
|
28360
|
+
export class BookingRequestDto implements IBookingRequestDto {
|
|
28357
28361
|
requestedDate!: Date;
|
|
28358
28362
|
requestedBy!: string;
|
|
28359
|
-
bookingType!:
|
|
28363
|
+
bookingType!: BookingTypeDto;
|
|
28360
28364
|
orderId!: string;
|
|
28361
28365
|
palletCount!: number;
|
|
28362
28366
|
fromLocation!: string;
|
|
@@ -28369,7 +28373,7 @@ export class LocateBookingRequestDto implements ILocateBookingRequestDto {
|
|
|
28369
28373
|
weight?: number | null;
|
|
28370
28374
|
material?: string | null;
|
|
28371
28375
|
|
|
28372
|
-
constructor(data?:
|
|
28376
|
+
constructor(data?: IBookingRequestDto) {
|
|
28373
28377
|
if (data) {
|
|
28374
28378
|
for (var property in data) {
|
|
28375
28379
|
if (data.hasOwnProperty(property))
|
|
@@ -28397,9 +28401,9 @@ export class LocateBookingRequestDto implements ILocateBookingRequestDto {
|
|
|
28397
28401
|
}
|
|
28398
28402
|
}
|
|
28399
28403
|
|
|
28400
|
-
static fromJS(data: any):
|
|
28404
|
+
static fromJS(data: any): BookingRequestDto {
|
|
28401
28405
|
data = typeof data === 'object' ? data : {};
|
|
28402
|
-
let result = new
|
|
28406
|
+
let result = new BookingRequestDto();
|
|
28403
28407
|
result.init(data);
|
|
28404
28408
|
return result;
|
|
28405
28409
|
}
|
|
@@ -28424,10 +28428,10 @@ export class LocateBookingRequestDto implements ILocateBookingRequestDto {
|
|
|
28424
28428
|
}
|
|
28425
28429
|
}
|
|
28426
28430
|
|
|
28427
|
-
export interface
|
|
28431
|
+
export interface IBookingRequestDto {
|
|
28428
28432
|
requestedDate: Date;
|
|
28429
28433
|
requestedBy: string;
|
|
28430
|
-
bookingType:
|
|
28434
|
+
bookingType: BookingTypeDto;
|
|
28431
28435
|
orderId: string;
|
|
28432
28436
|
palletCount: number;
|
|
28433
28437
|
fromLocation: string;
|
|
@@ -28441,11 +28445,11 @@ export interface ILocateBookingRequestDto {
|
|
|
28441
28445
|
material?: string | null;
|
|
28442
28446
|
}
|
|
28443
28447
|
|
|
28444
|
-
export class
|
|
28445
|
-
results!:
|
|
28448
|
+
export class BookingResponseListDto implements IBookingResponseListDto {
|
|
28449
|
+
results!: BookingResponseDto[];
|
|
28446
28450
|
continuationToken?: string | null;
|
|
28447
28451
|
|
|
28448
|
-
constructor(data?:
|
|
28452
|
+
constructor(data?: IBookingResponseListDto) {
|
|
28449
28453
|
if (data) {
|
|
28450
28454
|
for (var property in data) {
|
|
28451
28455
|
if (data.hasOwnProperty(property))
|
|
@@ -28462,15 +28466,15 @@ export class LocateBookingResponseListDto implements ILocateBookingResponseListD
|
|
|
28462
28466
|
if (Array.isArray(_data["results"])) {
|
|
28463
28467
|
this.results = [] as any;
|
|
28464
28468
|
for (let item of _data["results"])
|
|
28465
|
-
this.results!.push(
|
|
28469
|
+
this.results!.push(BookingResponseDto.fromJS(item));
|
|
28466
28470
|
}
|
|
28467
28471
|
this.continuationToken = _data["continuationToken"];
|
|
28468
28472
|
}
|
|
28469
28473
|
}
|
|
28470
28474
|
|
|
28471
|
-
static fromJS(data: any):
|
|
28475
|
+
static fromJS(data: any): BookingResponseListDto {
|
|
28472
28476
|
data = typeof data === 'object' ? data : {};
|
|
28473
|
-
let result = new
|
|
28477
|
+
let result = new BookingResponseListDto();
|
|
28474
28478
|
result.init(data);
|
|
28475
28479
|
return result;
|
|
28476
28480
|
}
|
|
@@ -28487,15 +28491,15 @@ export class LocateBookingResponseListDto implements ILocateBookingResponseListD
|
|
|
28487
28491
|
}
|
|
28488
28492
|
}
|
|
28489
28493
|
|
|
28490
|
-
export interface
|
|
28491
|
-
results:
|
|
28494
|
+
export interface IBookingResponseListDto {
|
|
28495
|
+
results: BookingResponseDto[];
|
|
28492
28496
|
continuationToken?: string | null;
|
|
28493
28497
|
}
|
|
28494
28498
|
|
|
28495
|
-
export class
|
|
28499
|
+
export class BookingRequestListDto implements IBookingRequestListDto {
|
|
28496
28500
|
continuationToken?: string | null;
|
|
28497
28501
|
|
|
28498
|
-
constructor(data?:
|
|
28502
|
+
constructor(data?: IBookingRequestListDto) {
|
|
28499
28503
|
if (data) {
|
|
28500
28504
|
for (var property in data) {
|
|
28501
28505
|
if (data.hasOwnProperty(property))
|
|
@@ -28510,9 +28514,9 @@ export class LocateBookingRequestListDto implements ILocateBookingRequestListDto
|
|
|
28510
28514
|
}
|
|
28511
28515
|
}
|
|
28512
28516
|
|
|
28513
|
-
static fromJS(data: any):
|
|
28517
|
+
static fromJS(data: any): BookingRequestListDto {
|
|
28514
28518
|
data = typeof data === 'object' ? data : {};
|
|
28515
|
-
let result = new
|
|
28519
|
+
let result = new BookingRequestListDto();
|
|
28516
28520
|
result.init(data);
|
|
28517
28521
|
return result;
|
|
28518
28522
|
}
|
|
@@ -28524,15 +28528,17 @@ export class LocateBookingRequestListDto implements ILocateBookingRequestListDto
|
|
|
28524
28528
|
}
|
|
28525
28529
|
}
|
|
28526
28530
|
|
|
28527
|
-
export interface
|
|
28531
|
+
export interface IBookingRequestListDto {
|
|
28528
28532
|
continuationToken?: string | null;
|
|
28529
28533
|
}
|
|
28530
28534
|
|
|
28531
|
-
export class
|
|
28535
|
+
export class LocationDto implements ILocationDto {
|
|
28532
28536
|
locationId!: string;
|
|
28533
|
-
|
|
28537
|
+
locationName!: string;
|
|
28538
|
+
kind!: LocationKindDto;
|
|
28539
|
+
profile?: string | null;
|
|
28534
28540
|
|
|
28535
|
-
constructor(data?:
|
|
28541
|
+
constructor(data?: ILocationDto) {
|
|
28536
28542
|
if (data) {
|
|
28537
28543
|
for (var property in data) {
|
|
28538
28544
|
if (data.hasOwnProperty(property))
|
|
@@ -28544,13 +28550,15 @@ export class LocateLocationDto implements ILocateLocationDto {
|
|
|
28544
28550
|
init(_data?: any) {
|
|
28545
28551
|
if (_data) {
|
|
28546
28552
|
this.locationId = _data["locationId"];
|
|
28547
|
-
this.
|
|
28553
|
+
this.locationName = _data["locationName"];
|
|
28554
|
+
this.kind = _data["kind"];
|
|
28555
|
+
this.profile = _data["profile"];
|
|
28548
28556
|
}
|
|
28549
28557
|
}
|
|
28550
28558
|
|
|
28551
|
-
static fromJS(data: any):
|
|
28559
|
+
static fromJS(data: any): LocationDto {
|
|
28552
28560
|
data = typeof data === 'object' ? data : {};
|
|
28553
|
-
let result = new
|
|
28561
|
+
let result = new LocationDto();
|
|
28554
28562
|
result.init(data);
|
|
28555
28563
|
return result;
|
|
28556
28564
|
}
|
|
@@ -28558,22 +28566,28 @@ export class LocateLocationDto implements ILocateLocationDto {
|
|
|
28558
28566
|
toJSON(data?: any) {
|
|
28559
28567
|
data = typeof data === 'object' ? data : {};
|
|
28560
28568
|
data["locationId"] = this.locationId;
|
|
28561
|
-
data["
|
|
28569
|
+
data["locationName"] = this.locationName;
|
|
28570
|
+
data["kind"] = this.kind;
|
|
28571
|
+
data["profile"] = this.profile;
|
|
28562
28572
|
return data;
|
|
28563
28573
|
}
|
|
28564
28574
|
}
|
|
28565
28575
|
|
|
28566
|
-
export interface
|
|
28576
|
+
export interface ILocationDto {
|
|
28567
28577
|
locationId: string;
|
|
28568
|
-
|
|
28578
|
+
locationName: string;
|
|
28579
|
+
kind: LocationKindDto;
|
|
28580
|
+
profile?: string | null;
|
|
28569
28581
|
}
|
|
28570
28582
|
|
|
28571
|
-
export
|
|
28583
|
+
export type LocationKindDto = "Warehouse" | "Zone" | "Location";
|
|
28584
|
+
|
|
28585
|
+
export class LocateOrderDto implements ILocateOrderDto {
|
|
28572
28586
|
orderId!: string;
|
|
28573
28587
|
partName?: string | null;
|
|
28574
28588
|
partNumber?: string | null;
|
|
28575
28589
|
|
|
28576
|
-
constructor(data?:
|
|
28590
|
+
constructor(data?: ILocateOrderDto) {
|
|
28577
28591
|
if (data) {
|
|
28578
28592
|
for (var property in data) {
|
|
28579
28593
|
if (data.hasOwnProperty(property))
|
|
@@ -28590,9 +28604,9 @@ export class LocatePartsDto implements ILocatePartsDto {
|
|
|
28590
28604
|
}
|
|
28591
28605
|
}
|
|
28592
28606
|
|
|
28593
|
-
static fromJS(data: any):
|
|
28607
|
+
static fromJS(data: any): LocateOrderDto {
|
|
28594
28608
|
data = typeof data === 'object' ? data : {};
|
|
28595
|
-
let result = new
|
|
28609
|
+
let result = new LocateOrderDto();
|
|
28596
28610
|
result.init(data);
|
|
28597
28611
|
return result;
|
|
28598
28612
|
}
|
|
@@ -28606,18 +28620,18 @@ export class LocatePartsDto implements ILocatePartsDto {
|
|
|
28606
28620
|
}
|
|
28607
28621
|
}
|
|
28608
28622
|
|
|
28609
|
-
export interface
|
|
28623
|
+
export interface ILocateOrderDto {
|
|
28610
28624
|
orderId: string;
|
|
28611
28625
|
partName?: string | null;
|
|
28612
28626
|
partNumber?: string | null;
|
|
28613
28627
|
}
|
|
28614
28628
|
|
|
28615
|
-
export class
|
|
28629
|
+
export class TrackingHistoryDto implements ITrackingHistoryDto {
|
|
28616
28630
|
orderId!: string;
|
|
28617
28631
|
lastSetPallets?: number | null;
|
|
28618
|
-
trackingEvents!:
|
|
28632
|
+
trackingEvents!: TrackingEventsDto[];
|
|
28619
28633
|
|
|
28620
|
-
constructor(data?:
|
|
28634
|
+
constructor(data?: ITrackingHistoryDto) {
|
|
28621
28635
|
if (data) {
|
|
28622
28636
|
for (var property in data) {
|
|
28623
28637
|
if (data.hasOwnProperty(property))
|
|
@@ -28636,14 +28650,14 @@ export class LocateTrackingHistoryDto implements ILocateTrackingHistoryDto {
|
|
|
28636
28650
|
if (Array.isArray(_data["trackingEvents"])) {
|
|
28637
28651
|
this.trackingEvents = [] as any;
|
|
28638
28652
|
for (let item of _data["trackingEvents"])
|
|
28639
|
-
this.trackingEvents!.push(
|
|
28653
|
+
this.trackingEvents!.push(TrackingEventsDto.fromJS(item));
|
|
28640
28654
|
}
|
|
28641
28655
|
}
|
|
28642
28656
|
}
|
|
28643
28657
|
|
|
28644
|
-
static fromJS(data: any):
|
|
28658
|
+
static fromJS(data: any): TrackingHistoryDto {
|
|
28645
28659
|
data = typeof data === 'object' ? data : {};
|
|
28646
|
-
let result = new
|
|
28660
|
+
let result = new TrackingHistoryDto();
|
|
28647
28661
|
result.init(data);
|
|
28648
28662
|
return result;
|
|
28649
28663
|
}
|
|
@@ -28661,24 +28675,24 @@ export class LocateTrackingHistoryDto implements ILocateTrackingHistoryDto {
|
|
|
28661
28675
|
}
|
|
28662
28676
|
}
|
|
28663
28677
|
|
|
28664
|
-
export interface
|
|
28678
|
+
export interface ITrackingHistoryDto {
|
|
28665
28679
|
orderId: string;
|
|
28666
28680
|
lastSetPallets?: number | null;
|
|
28667
|
-
trackingEvents:
|
|
28681
|
+
trackingEvents: TrackingEventsDto[];
|
|
28668
28682
|
}
|
|
28669
28683
|
|
|
28670
|
-
export class
|
|
28684
|
+
export class TrackingEventsDto implements ITrackingEventsDto {
|
|
28671
28685
|
id!: number;
|
|
28672
28686
|
created!: Date;
|
|
28673
28687
|
createdBy!: string;
|
|
28674
28688
|
updated!: Date;
|
|
28675
28689
|
updatedBy!: string;
|
|
28676
|
-
|
|
28690
|
+
locationId!: string;
|
|
28677
28691
|
active!: boolean;
|
|
28678
28692
|
trackingInfo?: string | null;
|
|
28679
28693
|
pallets?: number | null;
|
|
28680
28694
|
|
|
28681
|
-
constructor(data?:
|
|
28695
|
+
constructor(data?: ITrackingEventsDto) {
|
|
28682
28696
|
if (data) {
|
|
28683
28697
|
for (var property in data) {
|
|
28684
28698
|
if (data.hasOwnProperty(property))
|
|
@@ -28694,16 +28708,16 @@ export class LocateTrackingEventsDto implements ILocateTrackingEventsDto {
|
|
|
28694
28708
|
this.createdBy = _data["createdBy"];
|
|
28695
28709
|
this.updated = _data["updated"] ? new Date(_data["updated"].toString()) : <any>undefined;
|
|
28696
28710
|
this.updatedBy = _data["updatedBy"];
|
|
28697
|
-
this.
|
|
28711
|
+
this.locationId = _data["locationId"];
|
|
28698
28712
|
this.active = _data["active"];
|
|
28699
28713
|
this.trackingInfo = _data["trackingInfo"];
|
|
28700
28714
|
this.pallets = _data["pallets"];
|
|
28701
28715
|
}
|
|
28702
28716
|
}
|
|
28703
28717
|
|
|
28704
|
-
static fromJS(data: any):
|
|
28718
|
+
static fromJS(data: any): TrackingEventsDto {
|
|
28705
28719
|
data = typeof data === 'object' ? data : {};
|
|
28706
|
-
let result = new
|
|
28720
|
+
let result = new TrackingEventsDto();
|
|
28707
28721
|
result.init(data);
|
|
28708
28722
|
return result;
|
|
28709
28723
|
}
|
|
@@ -28715,7 +28729,7 @@ export class LocateTrackingEventsDto implements ILocateTrackingEventsDto {
|
|
|
28715
28729
|
data["createdBy"] = this.createdBy;
|
|
28716
28730
|
data["updated"] = this.updated ? this.updated.toISOString() : <any>undefined;
|
|
28717
28731
|
data["updatedBy"] = this.updatedBy;
|
|
28718
|
-
data["
|
|
28732
|
+
data["locationId"] = this.locationId;
|
|
28719
28733
|
data["active"] = this.active;
|
|
28720
28734
|
data["trackingInfo"] = this.trackingInfo;
|
|
28721
28735
|
data["pallets"] = this.pallets;
|
|
@@ -28723,25 +28737,25 @@ export class LocateTrackingEventsDto implements ILocateTrackingEventsDto {
|
|
|
28723
28737
|
}
|
|
28724
28738
|
}
|
|
28725
28739
|
|
|
28726
|
-
export interface
|
|
28740
|
+
export interface ITrackingEventsDto {
|
|
28727
28741
|
id: number;
|
|
28728
28742
|
created: Date;
|
|
28729
28743
|
createdBy: string;
|
|
28730
28744
|
updated: Date;
|
|
28731
28745
|
updatedBy: string;
|
|
28732
|
-
|
|
28746
|
+
locationId: string;
|
|
28733
28747
|
active: boolean;
|
|
28734
28748
|
trackingInfo?: string | null;
|
|
28735
28749
|
pallets?: number | null;
|
|
28736
28750
|
}
|
|
28737
28751
|
|
|
28738
|
-
export class
|
|
28752
|
+
export class TrackingUpdateDto implements ITrackingUpdateDto {
|
|
28739
28753
|
location!: string;
|
|
28740
28754
|
trackingInfo?: string | null;
|
|
28741
28755
|
active?: boolean | null;
|
|
28742
28756
|
pallets?: number | null;
|
|
28743
28757
|
|
|
28744
|
-
constructor(data?:
|
|
28758
|
+
constructor(data?: ITrackingUpdateDto) {
|
|
28745
28759
|
if (data) {
|
|
28746
28760
|
for (var property in data) {
|
|
28747
28761
|
if (data.hasOwnProperty(property))
|
|
@@ -28759,9 +28773,9 @@ export class LocateTrackingUpdateDto implements ILocateTrackingUpdateDto {
|
|
|
28759
28773
|
}
|
|
28760
28774
|
}
|
|
28761
28775
|
|
|
28762
|
-
static fromJS(data: any):
|
|
28776
|
+
static fromJS(data: any): TrackingUpdateDto {
|
|
28763
28777
|
data = typeof data === 'object' ? data : {};
|
|
28764
|
-
let result = new
|
|
28778
|
+
let result = new TrackingUpdateDto();
|
|
28765
28779
|
result.init(data);
|
|
28766
28780
|
return result;
|
|
28767
28781
|
}
|
|
@@ -28776,7 +28790,7 @@ export class LocateTrackingUpdateDto implements ILocateTrackingUpdateDto {
|
|
|
28776
28790
|
}
|
|
28777
28791
|
}
|
|
28778
28792
|
|
|
28779
|
-
export interface
|
|
28793
|
+
export interface ITrackingUpdateDto {
|
|
28780
28794
|
location: string;
|
|
28781
28795
|
trackingInfo?: string | null;
|
|
28782
28796
|
active?: boolean | null;
|
|
@@ -41712,9 +41726,9 @@ export class WorkOrderAttachmentDto implements IWorkOrderAttachmentDto {
|
|
|
41712
41726
|
created?: Date | null;
|
|
41713
41727
|
modifiedBy?: string | null;
|
|
41714
41728
|
modified?: Date | null;
|
|
41715
|
-
notes?: string | null;
|
|
41716
41729
|
name?: string | null;
|
|
41717
|
-
|
|
41730
|
+
notes?: string | null;
|
|
41731
|
+
attachmentType?: string | null;
|
|
41718
41732
|
|
|
41719
41733
|
constructor(data?: IWorkOrderAttachmentDto) {
|
|
41720
41734
|
if (data) {
|
|
@@ -41731,9 +41745,9 @@ export class WorkOrderAttachmentDto implements IWorkOrderAttachmentDto {
|
|
|
41731
41745
|
this.created = _data["created"] ? new Date(_data["created"].toString()) : <any>undefined;
|
|
41732
41746
|
this.modifiedBy = _data["modifiedBy"];
|
|
41733
41747
|
this.modified = _data["modified"] ? new Date(_data["modified"].toString()) : <any>undefined;
|
|
41734
|
-
this.notes = _data["notes"];
|
|
41735
41748
|
this.name = _data["name"];
|
|
41736
|
-
this.
|
|
41749
|
+
this.notes = _data["notes"];
|
|
41750
|
+
this.attachmentType = _data["attachmentType"];
|
|
41737
41751
|
}
|
|
41738
41752
|
}
|
|
41739
41753
|
|
|
@@ -41750,9 +41764,9 @@ export class WorkOrderAttachmentDto implements IWorkOrderAttachmentDto {
|
|
|
41750
41764
|
data["created"] = this.created ? this.created.toISOString() : <any>undefined;
|
|
41751
41765
|
data["modifiedBy"] = this.modifiedBy;
|
|
41752
41766
|
data["modified"] = this.modified ? this.modified.toISOString() : <any>undefined;
|
|
41753
|
-
data["notes"] = this.notes;
|
|
41754
41767
|
data["name"] = this.name;
|
|
41755
|
-
data["
|
|
41768
|
+
data["notes"] = this.notes;
|
|
41769
|
+
data["attachmentType"] = this.attachmentType;
|
|
41756
41770
|
return data;
|
|
41757
41771
|
}
|
|
41758
41772
|
}
|
|
@@ -41762,9 +41776,9 @@ export interface IWorkOrderAttachmentDto {
|
|
|
41762
41776
|
created?: Date | null;
|
|
41763
41777
|
modifiedBy?: string | null;
|
|
41764
41778
|
modified?: Date | null;
|
|
41765
|
-
notes?: string | null;
|
|
41766
41779
|
name?: string | null;
|
|
41767
|
-
|
|
41780
|
+
notes?: string | null;
|
|
41781
|
+
attachmentType?: string | null;
|
|
41768
41782
|
}
|
|
41769
41783
|
|
|
41770
41784
|
export class DrawingDto implements IDrawingDto {
|