@ignos/api-client 20240508.0.9227 → 20240513.0.9268
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 +46 -41
- package/lib/ignosportal-api.js +122 -74
- package/package.json +1 -1
- package/src/ignosportal-api.ts +160 -109
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -722,7 +722,8 @@ export declare class LocateBookingClient extends AuthorizedApiBase implements IL
|
|
|
722
722
|
protected processFinishDelivery(response: Response): Promise<BookingResponseDto>;
|
|
723
723
|
}
|
|
724
724
|
export interface ILocateLocationsClient {
|
|
725
|
-
searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | undefined
|
|
725
|
+
searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | undefined): Promise<LocationDto[]>;
|
|
726
|
+
suggestionsLocations(workOrderId: string | null | undefined, locationKinds: LocationKindDto[] | undefined): Promise<LocationDto[]>;
|
|
726
727
|
}
|
|
727
728
|
export declare class LocateLocationsClient extends AuthorizedApiBase implements ILocateLocationsClient {
|
|
728
729
|
private http;
|
|
@@ -731,43 +732,45 @@ export declare class LocateLocationsClient extends AuthorizedApiBase implements
|
|
|
731
732
|
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
|
|
732
733
|
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
733
734
|
});
|
|
734
|
-
searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | undefined
|
|
735
|
+
searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | undefined): Promise<LocationDto[]>;
|
|
735
736
|
protected processSearchLocations(response: Response): Promise<LocationDto[]>;
|
|
737
|
+
suggestionsLocations(workOrderId: string | null | undefined, locationKinds: LocationKindDto[] | undefined): Promise<LocationDto[]>;
|
|
738
|
+
protected processSuggestionsLocations(response: Response): Promise<LocationDto[]>;
|
|
736
739
|
}
|
|
737
|
-
export interface
|
|
738
|
-
|
|
740
|
+
export interface ILocateTrackingClient {
|
|
741
|
+
listTrackingHistory(workOrderId: string): Promise<TrackingHistoryDto>;
|
|
742
|
+
createTrackingEvent(workOrderId: string, locateTrackingUpdate: TrackingUpdateDto): Promise<TrackingHistoryDto>;
|
|
743
|
+
updateTrackingEvent(workOrderId: string, trackingEventId: number, locateTrackingUpdate: TrackingUpdateDto): Promise<TrackingHistoryDto>;
|
|
744
|
+
createLabel(workOrderId: string, palletCount: number | undefined): Promise<FileResponse>;
|
|
739
745
|
}
|
|
740
|
-
export declare class
|
|
746
|
+
export declare class LocateTrackingClient extends AuthorizedApiBase implements ILocateTrackingClient {
|
|
741
747
|
private http;
|
|
742
748
|
private baseUrl;
|
|
743
749
|
protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
|
|
744
750
|
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
|
|
745
751
|
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
746
752
|
});
|
|
747
|
-
|
|
748
|
-
protected
|
|
753
|
+
listTrackingHistory(workOrderId: string): Promise<TrackingHistoryDto>;
|
|
754
|
+
protected processListTrackingHistory(response: Response): Promise<TrackingHistoryDto>;
|
|
755
|
+
createTrackingEvent(workOrderId: string, locateTrackingUpdate: TrackingUpdateDto): Promise<TrackingHistoryDto>;
|
|
756
|
+
protected processCreateTrackingEvent(response: Response): Promise<TrackingHistoryDto>;
|
|
757
|
+
updateTrackingEvent(workOrderId: string, trackingEventId: number, locateTrackingUpdate: TrackingUpdateDto): Promise<TrackingHistoryDto>;
|
|
758
|
+
protected processUpdateTrackingEvent(response: Response): Promise<TrackingHistoryDto>;
|
|
759
|
+
createLabel(workOrderId: string, palletCount: number | undefined): Promise<FileResponse>;
|
|
760
|
+
protected processCreateLabel(response: Response): Promise<FileResponse>;
|
|
749
761
|
}
|
|
750
|
-
export interface
|
|
751
|
-
|
|
752
|
-
createTrackingEvent(orderId: string, locateTrackingUpdate: TrackingUpdateDto): Promise<TrackingHistoryDto>;
|
|
753
|
-
updateTrackingEvent(orderId: string, trackingEventId: number, locateTrackingUpdate: TrackingUpdateDto): Promise<TrackingHistoryDto>;
|
|
754
|
-
createLabel(orderId: string, palletCount: number | undefined): Promise<FileResponse>;
|
|
762
|
+
export interface ILocateWorkOrdersClient {
|
|
763
|
+
searchWorkOrders(input: string | null | undefined): Promise<SearchWorkOrderDto[]>;
|
|
755
764
|
}
|
|
756
|
-
export declare class
|
|
765
|
+
export declare class LocateWorkOrdersClient extends AuthorizedApiBase implements ILocateWorkOrdersClient {
|
|
757
766
|
private http;
|
|
758
767
|
private baseUrl;
|
|
759
768
|
protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
|
|
760
769
|
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
|
|
761
770
|
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
762
771
|
});
|
|
763
|
-
|
|
764
|
-
protected
|
|
765
|
-
createTrackingEvent(orderId: string, locateTrackingUpdate: TrackingUpdateDto): Promise<TrackingHistoryDto>;
|
|
766
|
-
protected processCreateTrackingEvent(response: Response): Promise<TrackingHistoryDto>;
|
|
767
|
-
updateTrackingEvent(orderId: string, trackingEventId: number, locateTrackingUpdate: TrackingUpdateDto): Promise<TrackingHistoryDto>;
|
|
768
|
-
protected processUpdateTrackingEvent(response: Response): Promise<TrackingHistoryDto>;
|
|
769
|
-
createLabel(orderId: string, palletCount: number | undefined): Promise<FileResponse>;
|
|
770
|
-
protected processCreateLabel(response: Response): Promise<FileResponse>;
|
|
772
|
+
searchWorkOrders(input: string | null | undefined): Promise<SearchWorkOrderDto[]>;
|
|
773
|
+
protected processSearchWorkOrders(response: Response): Promise<SearchWorkOrderDto[]>;
|
|
771
774
|
}
|
|
772
775
|
export interface ILinksClient {
|
|
773
776
|
getAllLinks(scope: string | null | undefined): Promise<LinkDto[]>;
|
|
@@ -5130,7 +5133,7 @@ export declare class BookingResponseDto implements IBookingResponseDto {
|
|
|
5130
5133
|
requestedBy: string;
|
|
5131
5134
|
bookingType: BookingTypeDto;
|
|
5132
5135
|
bookingStatus: BookingStatusDto;
|
|
5133
|
-
|
|
5136
|
+
workOrderId: string;
|
|
5134
5137
|
palletCount: number;
|
|
5135
5138
|
fromLocation: string;
|
|
5136
5139
|
toLocation: string;
|
|
@@ -5152,7 +5155,7 @@ export interface IBookingResponseDto {
|
|
|
5152
5155
|
requestedBy: string;
|
|
5153
5156
|
bookingType: BookingTypeDto;
|
|
5154
5157
|
bookingStatus: BookingStatusDto;
|
|
5155
|
-
|
|
5158
|
+
workOrderId: string;
|
|
5156
5159
|
palletCount: number;
|
|
5157
5160
|
fromLocation: string;
|
|
5158
5161
|
toLocation: string;
|
|
@@ -5170,7 +5173,7 @@ export declare class BookingRequestDto implements IBookingRequestDto {
|
|
|
5170
5173
|
requestedDate: Date;
|
|
5171
5174
|
requestedBy: string;
|
|
5172
5175
|
bookingType: BookingTypeDto;
|
|
5173
|
-
|
|
5176
|
+
workOrderId: string;
|
|
5174
5177
|
palletCount: number;
|
|
5175
5178
|
fromLocation: string;
|
|
5176
5179
|
toLocation: string;
|
|
@@ -5190,7 +5193,7 @@ export interface IBookingRequestDto {
|
|
|
5190
5193
|
requestedDate: Date;
|
|
5191
5194
|
requestedBy: string;
|
|
5192
5195
|
bookingType: BookingTypeDto;
|
|
5193
|
-
|
|
5196
|
+
workOrderId: string;
|
|
5194
5197
|
palletCount: number;
|
|
5195
5198
|
fromLocation: string;
|
|
5196
5199
|
toLocation: string;
|
|
@@ -5241,31 +5244,19 @@ export interface ILocationDto {
|
|
|
5241
5244
|
profile?: string | null;
|
|
5242
5245
|
}
|
|
5243
5246
|
export type LocationKindDto = "Warehouse" | "Zone" | "Location";
|
|
5244
|
-
export declare class OrderDto implements IOrderDto {
|
|
5245
|
-
orderId: string;
|
|
5246
|
-
partName?: string | null;
|
|
5247
|
-
partNumber?: string | null;
|
|
5248
|
-
constructor(data?: IOrderDto);
|
|
5249
|
-
init(_data?: any): void;
|
|
5250
|
-
static fromJS(data: any): OrderDto;
|
|
5251
|
-
toJSON(data?: any): any;
|
|
5252
|
-
}
|
|
5253
|
-
export interface IOrderDto {
|
|
5254
|
-
orderId: string;
|
|
5255
|
-
partName?: string | null;
|
|
5256
|
-
partNumber?: string | null;
|
|
5257
|
-
}
|
|
5258
5247
|
export declare class TrackingHistoryDto implements ITrackingHistoryDto {
|
|
5259
|
-
|
|
5248
|
+
workOrderId: string;
|
|
5260
5249
|
trackingEvents: TrackingEventDto[];
|
|
5250
|
+
part: PartDto;
|
|
5261
5251
|
constructor(data?: ITrackingHistoryDto);
|
|
5262
5252
|
init(_data?: any): void;
|
|
5263
5253
|
static fromJS(data: any): TrackingHistoryDto;
|
|
5264
5254
|
toJSON(data?: any): any;
|
|
5265
5255
|
}
|
|
5266
5256
|
export interface ITrackingHistoryDto {
|
|
5267
|
-
|
|
5257
|
+
workOrderId: string;
|
|
5268
5258
|
trackingEvents: TrackingEventDto[];
|
|
5259
|
+
part: PartDto;
|
|
5269
5260
|
}
|
|
5270
5261
|
export declare class TrackingEventDto implements ITrackingEventDto {
|
|
5271
5262
|
id: number;
|
|
@@ -5307,6 +5298,20 @@ export interface ITrackingUpdateDto {
|
|
|
5307
5298
|
comments?: string | null;
|
|
5308
5299
|
pallets?: number | null;
|
|
5309
5300
|
}
|
|
5301
|
+
export declare class SearchWorkOrderDto implements ISearchWorkOrderDto {
|
|
5302
|
+
workOrderId: string;
|
|
5303
|
+
partName?: string | null;
|
|
5304
|
+
partNumber?: string | null;
|
|
5305
|
+
constructor(data?: ISearchWorkOrderDto);
|
|
5306
|
+
init(_data?: any): void;
|
|
5307
|
+
static fromJS(data: any): SearchWorkOrderDto;
|
|
5308
|
+
toJSON(data?: any): any;
|
|
5309
|
+
}
|
|
5310
|
+
export interface ISearchWorkOrderDto {
|
|
5311
|
+
workOrderId: string;
|
|
5312
|
+
partName?: string | null;
|
|
5313
|
+
partNumber?: string | null;
|
|
5314
|
+
}
|
|
5310
5315
|
export declare class LinkDto implements ILinkDto {
|
|
5311
5316
|
id: string;
|
|
5312
5317
|
uri: string;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -5696,7 +5696,7 @@ export class LocateLocationsClient extends AuthorizedApiBase {
|
|
|
5696
5696
|
this.http = http ? http : window;
|
|
5697
5697
|
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
5698
5698
|
}
|
|
5699
|
-
searchLocations(input, locationKinds
|
|
5699
|
+
searchLocations(input, locationKinds) {
|
|
5700
5700
|
let url_ = this.baseUrl + "/locate/locations/search?";
|
|
5701
5701
|
if (input !== undefined && input !== null)
|
|
5702
5702
|
url_ += "input=" + encodeURIComponent("" + input) + "&";
|
|
@@ -5704,8 +5704,6 @@ export class LocateLocationsClient extends AuthorizedApiBase {
|
|
|
5704
5704
|
throw new Error("The parameter 'locationKinds' cannot be null.");
|
|
5705
5705
|
else if (locationKinds !== undefined)
|
|
5706
5706
|
locationKinds && locationKinds.forEach(item => { url_ += "locationKinds=" + encodeURIComponent("" + item) + "&"; });
|
|
5707
|
-
if (orderId !== undefined && orderId !== null)
|
|
5708
|
-
url_ += "orderId=" + encodeURIComponent("" + orderId) + "&";
|
|
5709
5707
|
url_ = url_.replace(/[?&]$/, "");
|
|
5710
5708
|
let options_ = {
|
|
5711
5709
|
method: "GET",
|
|
@@ -5745,18 +5743,14 @@ export class LocateLocationsClient extends AuthorizedApiBase {
|
|
|
5745
5743
|
}
|
|
5746
5744
|
return Promise.resolve(null);
|
|
5747
5745
|
}
|
|
5748
|
-
|
|
5749
|
-
|
|
5750
|
-
|
|
5751
|
-
|
|
5752
|
-
|
|
5753
|
-
|
|
5754
|
-
|
|
5755
|
-
|
|
5756
|
-
searchOrders(input) {
|
|
5757
|
-
let url_ = this.baseUrl + "/locate/orders/search?";
|
|
5758
|
-
if (input !== undefined && input !== null)
|
|
5759
|
-
url_ += "input=" + encodeURIComponent("" + input) + "&";
|
|
5746
|
+
suggestionsLocations(workOrderId, locationKinds) {
|
|
5747
|
+
let url_ = this.baseUrl + "/locate/locations/suggestions?";
|
|
5748
|
+
if (workOrderId !== undefined && workOrderId !== null)
|
|
5749
|
+
url_ += "workOrderId=" + encodeURIComponent("" + workOrderId) + "&";
|
|
5750
|
+
if (locationKinds === null)
|
|
5751
|
+
throw new Error("The parameter 'locationKinds' cannot be null.");
|
|
5752
|
+
else if (locationKinds !== undefined)
|
|
5753
|
+
locationKinds && locationKinds.forEach(item => { url_ += "locationKinds=" + encodeURIComponent("" + item) + "&"; });
|
|
5760
5754
|
url_ = url_.replace(/[?&]$/, "");
|
|
5761
5755
|
let options_ = {
|
|
5762
5756
|
method: "GET",
|
|
@@ -5767,10 +5761,10 @@ export class LocateOrdersClient extends AuthorizedApiBase {
|
|
|
5767
5761
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
5768
5762
|
return this.http.fetch(url_, transformedOptions_);
|
|
5769
5763
|
}).then((_response) => {
|
|
5770
|
-
return this.
|
|
5764
|
+
return this.processSuggestionsLocations(_response);
|
|
5771
5765
|
});
|
|
5772
5766
|
}
|
|
5773
|
-
|
|
5767
|
+
processSuggestionsLocations(response) {
|
|
5774
5768
|
const status = response.status;
|
|
5775
5769
|
let _headers = {};
|
|
5776
5770
|
if (response.headers && response.headers.forEach) {
|
|
@@ -5784,7 +5778,7 @@ export class LocateOrdersClient extends AuthorizedApiBase {
|
|
|
5784
5778
|
if (Array.isArray(resultData200)) {
|
|
5785
5779
|
result200 = [];
|
|
5786
5780
|
for (let item of resultData200)
|
|
5787
|
-
result200.push(
|
|
5781
|
+
result200.push(LocationDto.fromJS(item));
|
|
5788
5782
|
}
|
|
5789
5783
|
return result200;
|
|
5790
5784
|
});
|
|
@@ -5804,11 +5798,11 @@ export class LocateTrackingClient extends AuthorizedApiBase {
|
|
|
5804
5798
|
this.http = http ? http : window;
|
|
5805
5799
|
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
5806
5800
|
}
|
|
5807
|
-
listTrackingHistory(
|
|
5808
|
-
let url_ = this.baseUrl + "/locate/tracking/{
|
|
5809
|
-
if (
|
|
5810
|
-
throw new Error("The parameter '
|
|
5811
|
-
url_ = url_.replace("{
|
|
5801
|
+
listTrackingHistory(workOrderId) {
|
|
5802
|
+
let url_ = this.baseUrl + "/locate/tracking/{workOrderId}";
|
|
5803
|
+
if (workOrderId === undefined || workOrderId === null)
|
|
5804
|
+
throw new Error("The parameter 'workOrderId' must be defined.");
|
|
5805
|
+
url_ = url_.replace("{workOrderId}", encodeURIComponent("" + workOrderId));
|
|
5812
5806
|
url_ = url_.replace(/[?&]$/, "");
|
|
5813
5807
|
let options_ = {
|
|
5814
5808
|
method: "GET",
|
|
@@ -5844,11 +5838,11 @@ export class LocateTrackingClient extends AuthorizedApiBase {
|
|
|
5844
5838
|
}
|
|
5845
5839
|
return Promise.resolve(null);
|
|
5846
5840
|
}
|
|
5847
|
-
createTrackingEvent(
|
|
5848
|
-
let url_ = this.baseUrl + "/locate/tracking/{
|
|
5849
|
-
if (
|
|
5850
|
-
throw new Error("The parameter '
|
|
5851
|
-
url_ = url_.replace("{
|
|
5841
|
+
createTrackingEvent(workOrderId, locateTrackingUpdate) {
|
|
5842
|
+
let url_ = this.baseUrl + "/locate/tracking/{workOrderId}";
|
|
5843
|
+
if (workOrderId === undefined || workOrderId === null)
|
|
5844
|
+
throw new Error("The parameter 'workOrderId' must be defined.");
|
|
5845
|
+
url_ = url_.replace("{workOrderId}", encodeURIComponent("" + workOrderId));
|
|
5852
5846
|
url_ = url_.replace(/[?&]$/, "");
|
|
5853
5847
|
const content_ = JSON.stringify(locateTrackingUpdate);
|
|
5854
5848
|
let options_ = {
|
|
@@ -5887,11 +5881,11 @@ export class LocateTrackingClient extends AuthorizedApiBase {
|
|
|
5887
5881
|
}
|
|
5888
5882
|
return Promise.resolve(null);
|
|
5889
5883
|
}
|
|
5890
|
-
updateTrackingEvent(
|
|
5891
|
-
let url_ = this.baseUrl + "/locate/tracking/{
|
|
5892
|
-
if (
|
|
5893
|
-
throw new Error("The parameter '
|
|
5894
|
-
url_ = url_.replace("{
|
|
5884
|
+
updateTrackingEvent(workOrderId, trackingEventId, locateTrackingUpdate) {
|
|
5885
|
+
let url_ = this.baseUrl + "/locate/tracking/{workOrderId}/{trackingEventId}";
|
|
5886
|
+
if (workOrderId === undefined || workOrderId === null)
|
|
5887
|
+
throw new Error("The parameter 'workOrderId' must be defined.");
|
|
5888
|
+
url_ = url_.replace("{workOrderId}", encodeURIComponent("" + workOrderId));
|
|
5895
5889
|
if (trackingEventId === undefined || trackingEventId === null)
|
|
5896
5890
|
throw new Error("The parameter 'trackingEventId' must be defined.");
|
|
5897
5891
|
url_ = url_.replace("{trackingEventId}", encodeURIComponent("" + trackingEventId));
|
|
@@ -5933,11 +5927,11 @@ export class LocateTrackingClient extends AuthorizedApiBase {
|
|
|
5933
5927
|
}
|
|
5934
5928
|
return Promise.resolve(null);
|
|
5935
5929
|
}
|
|
5936
|
-
createLabel(
|
|
5937
|
-
let url_ = this.baseUrl + "/locate/tracking/{
|
|
5938
|
-
if (
|
|
5939
|
-
throw new Error("The parameter '
|
|
5940
|
-
url_ = url_.replace("{
|
|
5930
|
+
createLabel(workOrderId, palletCount) {
|
|
5931
|
+
let url_ = this.baseUrl + "/locate/tracking/{workOrderId}/label?";
|
|
5932
|
+
if (workOrderId === undefined || workOrderId === null)
|
|
5933
|
+
throw new Error("The parameter 'workOrderId' must be defined.");
|
|
5934
|
+
url_ = url_.replace("{workOrderId}", encodeURIComponent("" + workOrderId));
|
|
5941
5935
|
if (palletCount === null)
|
|
5942
5936
|
throw new Error("The parameter 'palletCount' cannot be null.");
|
|
5943
5937
|
else if (palletCount !== undefined)
|
|
@@ -5983,6 +5977,57 @@ export class LocateTrackingClient extends AuthorizedApiBase {
|
|
|
5983
5977
|
return Promise.resolve(null);
|
|
5984
5978
|
}
|
|
5985
5979
|
}
|
|
5980
|
+
export class LocateWorkOrdersClient extends AuthorizedApiBase {
|
|
5981
|
+
constructor(configuration, baseUrl, http) {
|
|
5982
|
+
super(configuration);
|
|
5983
|
+
this.jsonParseReviver = undefined;
|
|
5984
|
+
this.http = http ? http : window;
|
|
5985
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
5986
|
+
}
|
|
5987
|
+
searchWorkOrders(input) {
|
|
5988
|
+
let url_ = this.baseUrl + "/locate/workorders/search?";
|
|
5989
|
+
if (input !== undefined && input !== null)
|
|
5990
|
+
url_ += "input=" + encodeURIComponent("" + input) + "&";
|
|
5991
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
5992
|
+
let options_ = {
|
|
5993
|
+
method: "GET",
|
|
5994
|
+
headers: {
|
|
5995
|
+
"Accept": "application/json"
|
|
5996
|
+
}
|
|
5997
|
+
};
|
|
5998
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
5999
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
6000
|
+
}).then((_response) => {
|
|
6001
|
+
return this.processSearchWorkOrders(_response);
|
|
6002
|
+
});
|
|
6003
|
+
}
|
|
6004
|
+
processSearchWorkOrders(response) {
|
|
6005
|
+
const status = response.status;
|
|
6006
|
+
let _headers = {};
|
|
6007
|
+
if (response.headers && response.headers.forEach) {
|
|
6008
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
6009
|
+
}
|
|
6010
|
+
;
|
|
6011
|
+
if (status === 200) {
|
|
6012
|
+
return response.text().then((_responseText) => {
|
|
6013
|
+
let result200 = null;
|
|
6014
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6015
|
+
if (Array.isArray(resultData200)) {
|
|
6016
|
+
result200 = [];
|
|
6017
|
+
for (let item of resultData200)
|
|
6018
|
+
result200.push(SearchWorkOrderDto.fromJS(item));
|
|
6019
|
+
}
|
|
6020
|
+
return result200;
|
|
6021
|
+
});
|
|
6022
|
+
}
|
|
6023
|
+
else if (status !== 200 && status !== 204) {
|
|
6024
|
+
return response.text().then((_responseText) => {
|
|
6025
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6026
|
+
});
|
|
6027
|
+
}
|
|
6028
|
+
return Promise.resolve(null);
|
|
6029
|
+
}
|
|
6030
|
+
}
|
|
5986
6031
|
export class LinksClient extends AuthorizedApiBase {
|
|
5987
6032
|
constructor(configuration, baseUrl, http) {
|
|
5988
6033
|
super(configuration);
|
|
@@ -24184,7 +24229,7 @@ export class BookingResponseDto {
|
|
|
24184
24229
|
this.requestedBy = _data["requestedBy"];
|
|
24185
24230
|
this.bookingType = _data["bookingType"];
|
|
24186
24231
|
this.bookingStatus = _data["bookingStatus"];
|
|
24187
|
-
this.
|
|
24232
|
+
this.workOrderId = _data["workOrderId"];
|
|
24188
24233
|
this.palletCount = _data["palletCount"];
|
|
24189
24234
|
this.fromLocation = _data["fromLocation"];
|
|
24190
24235
|
this.toLocation = _data["toLocation"];
|
|
@@ -24210,7 +24255,7 @@ export class BookingResponseDto {
|
|
|
24210
24255
|
data["requestedBy"] = this.requestedBy;
|
|
24211
24256
|
data["bookingType"] = this.bookingType;
|
|
24212
24257
|
data["bookingStatus"] = this.bookingStatus;
|
|
24213
|
-
data["
|
|
24258
|
+
data["workOrderId"] = this.workOrderId;
|
|
24214
24259
|
data["palletCount"] = this.palletCount;
|
|
24215
24260
|
data["fromLocation"] = this.fromLocation;
|
|
24216
24261
|
data["toLocation"] = this.toLocation;
|
|
@@ -24238,7 +24283,7 @@ export class BookingRequestDto {
|
|
|
24238
24283
|
this.requestedDate = _data["requestedDate"] ? new Date(_data["requestedDate"].toString()) : undefined;
|
|
24239
24284
|
this.requestedBy = _data["requestedBy"];
|
|
24240
24285
|
this.bookingType = _data["bookingType"];
|
|
24241
|
-
this.
|
|
24286
|
+
this.workOrderId = _data["workOrderId"];
|
|
24242
24287
|
this.palletCount = _data["palletCount"];
|
|
24243
24288
|
this.fromLocation = _data["fromLocation"];
|
|
24244
24289
|
this.toLocation = _data["toLocation"];
|
|
@@ -24262,7 +24307,7 @@ export class BookingRequestDto {
|
|
|
24262
24307
|
data["requestedDate"] = this.requestedDate ? this.requestedDate.toISOString() : undefined;
|
|
24263
24308
|
data["requestedBy"] = this.requestedBy;
|
|
24264
24309
|
data["bookingType"] = this.bookingType;
|
|
24265
|
-
data["
|
|
24310
|
+
data["workOrderId"] = this.workOrderId;
|
|
24266
24311
|
data["palletCount"] = this.palletCount;
|
|
24267
24312
|
data["fromLocation"] = this.fromLocation;
|
|
24268
24313
|
data["toLocation"] = this.toLocation;
|
|
@@ -24373,36 +24418,6 @@ export class LocationDto {
|
|
|
24373
24418
|
return data;
|
|
24374
24419
|
}
|
|
24375
24420
|
}
|
|
24376
|
-
export class OrderDto {
|
|
24377
|
-
constructor(data) {
|
|
24378
|
-
if (data) {
|
|
24379
|
-
for (var property in data) {
|
|
24380
|
-
if (data.hasOwnProperty(property))
|
|
24381
|
-
this[property] = data[property];
|
|
24382
|
-
}
|
|
24383
|
-
}
|
|
24384
|
-
}
|
|
24385
|
-
init(_data) {
|
|
24386
|
-
if (_data) {
|
|
24387
|
-
this.orderId = _data["orderId"];
|
|
24388
|
-
this.partName = _data["partName"];
|
|
24389
|
-
this.partNumber = _data["partNumber"];
|
|
24390
|
-
}
|
|
24391
|
-
}
|
|
24392
|
-
static fromJS(data) {
|
|
24393
|
-
data = typeof data === 'object' ? data : {};
|
|
24394
|
-
let result = new OrderDto();
|
|
24395
|
-
result.init(data);
|
|
24396
|
-
return result;
|
|
24397
|
-
}
|
|
24398
|
-
toJSON(data) {
|
|
24399
|
-
data = typeof data === 'object' ? data : {};
|
|
24400
|
-
data["orderId"] = this.orderId;
|
|
24401
|
-
data["partName"] = this.partName;
|
|
24402
|
-
data["partNumber"] = this.partNumber;
|
|
24403
|
-
return data;
|
|
24404
|
-
}
|
|
24405
|
-
}
|
|
24406
24421
|
export class TrackingHistoryDto {
|
|
24407
24422
|
constructor(data) {
|
|
24408
24423
|
if (data) {
|
|
@@ -24413,16 +24428,18 @@ export class TrackingHistoryDto {
|
|
|
24413
24428
|
}
|
|
24414
24429
|
if (!data) {
|
|
24415
24430
|
this.trackingEvents = [];
|
|
24431
|
+
this.part = new PartDto();
|
|
24416
24432
|
}
|
|
24417
24433
|
}
|
|
24418
24434
|
init(_data) {
|
|
24419
24435
|
if (_data) {
|
|
24420
|
-
this.
|
|
24436
|
+
this.workOrderId = _data["workOrderId"];
|
|
24421
24437
|
if (Array.isArray(_data["trackingEvents"])) {
|
|
24422
24438
|
this.trackingEvents = [];
|
|
24423
24439
|
for (let item of _data["trackingEvents"])
|
|
24424
24440
|
this.trackingEvents.push(TrackingEventDto.fromJS(item));
|
|
24425
24441
|
}
|
|
24442
|
+
this.part = _data["part"] ? PartDto.fromJS(_data["part"]) : new PartDto();
|
|
24426
24443
|
}
|
|
24427
24444
|
}
|
|
24428
24445
|
static fromJS(data) {
|
|
@@ -24433,12 +24450,13 @@ export class TrackingHistoryDto {
|
|
|
24433
24450
|
}
|
|
24434
24451
|
toJSON(data) {
|
|
24435
24452
|
data = typeof data === 'object' ? data : {};
|
|
24436
|
-
data["
|
|
24453
|
+
data["workOrderId"] = this.workOrderId;
|
|
24437
24454
|
if (Array.isArray(this.trackingEvents)) {
|
|
24438
24455
|
data["trackingEvents"] = [];
|
|
24439
24456
|
for (let item of this.trackingEvents)
|
|
24440
24457
|
data["trackingEvents"].push(item.toJSON());
|
|
24441
24458
|
}
|
|
24459
|
+
data["part"] = this.part ? this.part.toJSON() : undefined;
|
|
24442
24460
|
return data;
|
|
24443
24461
|
}
|
|
24444
24462
|
}
|
|
@@ -24517,6 +24535,36 @@ export class TrackingUpdateDto {
|
|
|
24517
24535
|
return data;
|
|
24518
24536
|
}
|
|
24519
24537
|
}
|
|
24538
|
+
export class SearchWorkOrderDto {
|
|
24539
|
+
constructor(data) {
|
|
24540
|
+
if (data) {
|
|
24541
|
+
for (var property in data) {
|
|
24542
|
+
if (data.hasOwnProperty(property))
|
|
24543
|
+
this[property] = data[property];
|
|
24544
|
+
}
|
|
24545
|
+
}
|
|
24546
|
+
}
|
|
24547
|
+
init(_data) {
|
|
24548
|
+
if (_data) {
|
|
24549
|
+
this.workOrderId = _data["workOrderId"];
|
|
24550
|
+
this.partName = _data["partName"];
|
|
24551
|
+
this.partNumber = _data["partNumber"];
|
|
24552
|
+
}
|
|
24553
|
+
}
|
|
24554
|
+
static fromJS(data) {
|
|
24555
|
+
data = typeof data === 'object' ? data : {};
|
|
24556
|
+
let result = new SearchWorkOrderDto();
|
|
24557
|
+
result.init(data);
|
|
24558
|
+
return result;
|
|
24559
|
+
}
|
|
24560
|
+
toJSON(data) {
|
|
24561
|
+
data = typeof data === 'object' ? data : {};
|
|
24562
|
+
data["workOrderId"] = this.workOrderId;
|
|
24563
|
+
data["partName"] = this.partName;
|
|
24564
|
+
data["partNumber"] = this.partNumber;
|
|
24565
|
+
return data;
|
|
24566
|
+
}
|
|
24567
|
+
}
|
|
24520
24568
|
export class LinkDto {
|
|
24521
24569
|
constructor(data) {
|
|
24522
24570
|
if (data) {
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -6084,7 +6084,9 @@ export class LocateBookingClient extends AuthorizedApiBase implements ILocateBoo
|
|
|
6084
6084
|
|
|
6085
6085
|
export interface ILocateLocationsClient {
|
|
6086
6086
|
|
|
6087
|
-
searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | undefined
|
|
6087
|
+
searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | undefined): Promise<LocationDto[]>;
|
|
6088
|
+
|
|
6089
|
+
suggestionsLocations(workOrderId: string | null | undefined, locationKinds: LocationKindDto[] | undefined): Promise<LocationDto[]>;
|
|
6088
6090
|
}
|
|
6089
6091
|
|
|
6090
6092
|
export class LocateLocationsClient extends AuthorizedApiBase implements ILocateLocationsClient {
|
|
@@ -6098,7 +6100,7 @@ export class LocateLocationsClient extends AuthorizedApiBase implements ILocateL
|
|
|
6098
6100
|
this.baseUrl = baseUrl ?? "";
|
|
6099
6101
|
}
|
|
6100
6102
|
|
|
6101
|
-
searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | undefined
|
|
6103
|
+
searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | undefined): Promise<LocationDto[]> {
|
|
6102
6104
|
let url_ = this.baseUrl + "/locate/locations/search?";
|
|
6103
6105
|
if (input !== undefined && input !== null)
|
|
6104
6106
|
url_ += "input=" + encodeURIComponent("" + input) + "&";
|
|
@@ -6106,8 +6108,6 @@ export class LocateLocationsClient extends AuthorizedApiBase implements ILocateL
|
|
|
6106
6108
|
throw new Error("The parameter 'locationKinds' cannot be null.");
|
|
6107
6109
|
else if (locationKinds !== undefined)
|
|
6108
6110
|
locationKinds && locationKinds.forEach(item => { url_ += "locationKinds=" + encodeURIComponent("" + item) + "&"; });
|
|
6109
|
-
if (orderId !== undefined && orderId !== null)
|
|
6110
|
-
url_ += "orderId=" + encodeURIComponent("" + orderId) + "&";
|
|
6111
6111
|
url_ = url_.replace(/[?&]$/, "");
|
|
6112
6112
|
|
|
6113
6113
|
let options_: RequestInit = {
|
|
@@ -6145,28 +6145,15 @@ export class LocateLocationsClient extends AuthorizedApiBase implements ILocateL
|
|
|
6145
6145
|
}
|
|
6146
6146
|
return Promise.resolve<LocationDto[]>(null as any);
|
|
6147
6147
|
}
|
|
6148
|
-
}
|
|
6149
|
-
|
|
6150
|
-
export interface ILocateOrdersClient {
|
|
6151
6148
|
|
|
6152
|
-
|
|
6153
|
-
|
|
6154
|
-
|
|
6155
|
-
|
|
6156
|
-
|
|
6157
|
-
|
|
6158
|
-
|
|
6159
|
-
|
|
6160
|
-
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
|
|
6161
|
-
super(configuration);
|
|
6162
|
-
this.http = http ? http : window as any;
|
|
6163
|
-
this.baseUrl = baseUrl ?? "";
|
|
6164
|
-
}
|
|
6165
|
-
|
|
6166
|
-
searchOrders(input: string | null | undefined): Promise<OrderDto[]> {
|
|
6167
|
-
let url_ = this.baseUrl + "/locate/orders/search?";
|
|
6168
|
-
if (input !== undefined && input !== null)
|
|
6169
|
-
url_ += "input=" + encodeURIComponent("" + input) + "&";
|
|
6149
|
+
suggestionsLocations(workOrderId: string | null | undefined, locationKinds: LocationKindDto[] | undefined): Promise<LocationDto[]> {
|
|
6150
|
+
let url_ = this.baseUrl + "/locate/locations/suggestions?";
|
|
6151
|
+
if (workOrderId !== undefined && workOrderId !== null)
|
|
6152
|
+
url_ += "workOrderId=" + encodeURIComponent("" + workOrderId) + "&";
|
|
6153
|
+
if (locationKinds === null)
|
|
6154
|
+
throw new Error("The parameter 'locationKinds' cannot be null.");
|
|
6155
|
+
else if (locationKinds !== undefined)
|
|
6156
|
+
locationKinds && locationKinds.forEach(item => { url_ += "locationKinds=" + encodeURIComponent("" + item) + "&"; });
|
|
6170
6157
|
url_ = url_.replace(/[?&]$/, "");
|
|
6171
6158
|
|
|
6172
6159
|
let options_: RequestInit = {
|
|
@@ -6179,11 +6166,11 @@ export class LocateOrdersClient extends AuthorizedApiBase implements ILocateOrde
|
|
|
6179
6166
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
6180
6167
|
return this.http.fetch(url_, transformedOptions_);
|
|
6181
6168
|
}).then((_response: Response) => {
|
|
6182
|
-
return this.
|
|
6169
|
+
return this.processSuggestionsLocations(_response);
|
|
6183
6170
|
});
|
|
6184
6171
|
}
|
|
6185
6172
|
|
|
6186
|
-
protected
|
|
6173
|
+
protected processSuggestionsLocations(response: Response): Promise<LocationDto[]> {
|
|
6187
6174
|
const status = response.status;
|
|
6188
6175
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
6189
6176
|
if (status === 200) {
|
|
@@ -6193,7 +6180,7 @@ export class LocateOrdersClient extends AuthorizedApiBase implements ILocateOrde
|
|
|
6193
6180
|
if (Array.isArray(resultData200)) {
|
|
6194
6181
|
result200 = [] as any;
|
|
6195
6182
|
for (let item of resultData200)
|
|
6196
|
-
result200!.push(
|
|
6183
|
+
result200!.push(LocationDto.fromJS(item));
|
|
6197
6184
|
}
|
|
6198
6185
|
return result200;
|
|
6199
6186
|
});
|
|
@@ -6202,19 +6189,19 @@ export class LocateOrdersClient extends AuthorizedApiBase implements ILocateOrde
|
|
|
6202
6189
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6203
6190
|
});
|
|
6204
6191
|
}
|
|
6205
|
-
return Promise.resolve<
|
|
6192
|
+
return Promise.resolve<LocationDto[]>(null as any);
|
|
6206
6193
|
}
|
|
6207
6194
|
}
|
|
6208
6195
|
|
|
6209
6196
|
export interface ILocateTrackingClient {
|
|
6210
6197
|
|
|
6211
|
-
listTrackingHistory(
|
|
6198
|
+
listTrackingHistory(workOrderId: string): Promise<TrackingHistoryDto>;
|
|
6212
6199
|
|
|
6213
|
-
createTrackingEvent(
|
|
6200
|
+
createTrackingEvent(workOrderId: string, locateTrackingUpdate: TrackingUpdateDto): Promise<TrackingHistoryDto>;
|
|
6214
6201
|
|
|
6215
|
-
updateTrackingEvent(
|
|
6202
|
+
updateTrackingEvent(workOrderId: string, trackingEventId: number, locateTrackingUpdate: TrackingUpdateDto): Promise<TrackingHistoryDto>;
|
|
6216
6203
|
|
|
6217
|
-
createLabel(
|
|
6204
|
+
createLabel(workOrderId: string, palletCount: number | undefined): Promise<FileResponse>;
|
|
6218
6205
|
}
|
|
6219
6206
|
|
|
6220
6207
|
export class LocateTrackingClient extends AuthorizedApiBase implements ILocateTrackingClient {
|
|
@@ -6228,11 +6215,11 @@ export class LocateTrackingClient extends AuthorizedApiBase implements ILocateTr
|
|
|
6228
6215
|
this.baseUrl = baseUrl ?? "";
|
|
6229
6216
|
}
|
|
6230
6217
|
|
|
6231
|
-
listTrackingHistory(
|
|
6232
|
-
let url_ = this.baseUrl + "/locate/tracking/{
|
|
6233
|
-
if (
|
|
6234
|
-
throw new Error("The parameter '
|
|
6235
|
-
url_ = url_.replace("{
|
|
6218
|
+
listTrackingHistory(workOrderId: string): Promise<TrackingHistoryDto> {
|
|
6219
|
+
let url_ = this.baseUrl + "/locate/tracking/{workOrderId}";
|
|
6220
|
+
if (workOrderId === undefined || workOrderId === null)
|
|
6221
|
+
throw new Error("The parameter 'workOrderId' must be defined.");
|
|
6222
|
+
url_ = url_.replace("{workOrderId}", encodeURIComponent("" + workOrderId));
|
|
6236
6223
|
url_ = url_.replace(/[?&]$/, "");
|
|
6237
6224
|
|
|
6238
6225
|
let options_: RequestInit = {
|
|
@@ -6267,11 +6254,11 @@ export class LocateTrackingClient extends AuthorizedApiBase implements ILocateTr
|
|
|
6267
6254
|
return Promise.resolve<TrackingHistoryDto>(null as any);
|
|
6268
6255
|
}
|
|
6269
6256
|
|
|
6270
|
-
createTrackingEvent(
|
|
6271
|
-
let url_ = this.baseUrl + "/locate/tracking/{
|
|
6272
|
-
if (
|
|
6273
|
-
throw new Error("The parameter '
|
|
6274
|
-
url_ = url_.replace("{
|
|
6257
|
+
createTrackingEvent(workOrderId: string, locateTrackingUpdate: TrackingUpdateDto): Promise<TrackingHistoryDto> {
|
|
6258
|
+
let url_ = this.baseUrl + "/locate/tracking/{workOrderId}";
|
|
6259
|
+
if (workOrderId === undefined || workOrderId === null)
|
|
6260
|
+
throw new Error("The parameter 'workOrderId' must be defined.");
|
|
6261
|
+
url_ = url_.replace("{workOrderId}", encodeURIComponent("" + workOrderId));
|
|
6275
6262
|
url_ = url_.replace(/[?&]$/, "");
|
|
6276
6263
|
|
|
6277
6264
|
const content_ = JSON.stringify(locateTrackingUpdate);
|
|
@@ -6310,11 +6297,11 @@ export class LocateTrackingClient extends AuthorizedApiBase implements ILocateTr
|
|
|
6310
6297
|
return Promise.resolve<TrackingHistoryDto>(null as any);
|
|
6311
6298
|
}
|
|
6312
6299
|
|
|
6313
|
-
updateTrackingEvent(
|
|
6314
|
-
let url_ = this.baseUrl + "/locate/tracking/{
|
|
6315
|
-
if (
|
|
6316
|
-
throw new Error("The parameter '
|
|
6317
|
-
url_ = url_.replace("{
|
|
6300
|
+
updateTrackingEvent(workOrderId: string, trackingEventId: number, locateTrackingUpdate: TrackingUpdateDto): Promise<TrackingHistoryDto> {
|
|
6301
|
+
let url_ = this.baseUrl + "/locate/tracking/{workOrderId}/{trackingEventId}";
|
|
6302
|
+
if (workOrderId === undefined || workOrderId === null)
|
|
6303
|
+
throw new Error("The parameter 'workOrderId' must be defined.");
|
|
6304
|
+
url_ = url_.replace("{workOrderId}", encodeURIComponent("" + workOrderId));
|
|
6318
6305
|
if (trackingEventId === undefined || trackingEventId === null)
|
|
6319
6306
|
throw new Error("The parameter 'trackingEventId' must be defined.");
|
|
6320
6307
|
url_ = url_.replace("{trackingEventId}", encodeURIComponent("" + trackingEventId));
|
|
@@ -6356,11 +6343,11 @@ export class LocateTrackingClient extends AuthorizedApiBase implements ILocateTr
|
|
|
6356
6343
|
return Promise.resolve<TrackingHistoryDto>(null as any);
|
|
6357
6344
|
}
|
|
6358
6345
|
|
|
6359
|
-
createLabel(
|
|
6360
|
-
let url_ = this.baseUrl + "/locate/tracking/{
|
|
6361
|
-
if (
|
|
6362
|
-
throw new Error("The parameter '
|
|
6363
|
-
url_ = url_.replace("{
|
|
6346
|
+
createLabel(workOrderId: string, palletCount: number | undefined): Promise<FileResponse> {
|
|
6347
|
+
let url_ = this.baseUrl + "/locate/tracking/{workOrderId}/label?";
|
|
6348
|
+
if (workOrderId === undefined || workOrderId === null)
|
|
6349
|
+
throw new Error("The parameter 'workOrderId' must be defined.");
|
|
6350
|
+
url_ = url_.replace("{workOrderId}", encodeURIComponent("" + workOrderId));
|
|
6364
6351
|
if (palletCount === null)
|
|
6365
6352
|
throw new Error("The parameter 'palletCount' cannot be null.");
|
|
6366
6353
|
else if (palletCount !== undefined)
|
|
@@ -6404,6 +6391,65 @@ export class LocateTrackingClient extends AuthorizedApiBase implements ILocateTr
|
|
|
6404
6391
|
}
|
|
6405
6392
|
}
|
|
6406
6393
|
|
|
6394
|
+
export interface ILocateWorkOrdersClient {
|
|
6395
|
+
|
|
6396
|
+
searchWorkOrders(input: string | null | undefined): Promise<SearchWorkOrderDto[]>;
|
|
6397
|
+
}
|
|
6398
|
+
|
|
6399
|
+
export class LocateWorkOrdersClient extends AuthorizedApiBase implements ILocateWorkOrdersClient {
|
|
6400
|
+
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
|
|
6401
|
+
private baseUrl: string;
|
|
6402
|
+
protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
|
|
6403
|
+
|
|
6404
|
+
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
|
|
6405
|
+
super(configuration);
|
|
6406
|
+
this.http = http ? http : window as any;
|
|
6407
|
+
this.baseUrl = baseUrl ?? "";
|
|
6408
|
+
}
|
|
6409
|
+
|
|
6410
|
+
searchWorkOrders(input: string | null | undefined): Promise<SearchWorkOrderDto[]> {
|
|
6411
|
+
let url_ = this.baseUrl + "/locate/workorders/search?";
|
|
6412
|
+
if (input !== undefined && input !== null)
|
|
6413
|
+
url_ += "input=" + encodeURIComponent("" + input) + "&";
|
|
6414
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
6415
|
+
|
|
6416
|
+
let options_: RequestInit = {
|
|
6417
|
+
method: "GET",
|
|
6418
|
+
headers: {
|
|
6419
|
+
"Accept": "application/json"
|
|
6420
|
+
}
|
|
6421
|
+
};
|
|
6422
|
+
|
|
6423
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
6424
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
6425
|
+
}).then((_response: Response) => {
|
|
6426
|
+
return this.processSearchWorkOrders(_response);
|
|
6427
|
+
});
|
|
6428
|
+
}
|
|
6429
|
+
|
|
6430
|
+
protected processSearchWorkOrders(response: Response): Promise<SearchWorkOrderDto[]> {
|
|
6431
|
+
const status = response.status;
|
|
6432
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
6433
|
+
if (status === 200) {
|
|
6434
|
+
return response.text().then((_responseText) => {
|
|
6435
|
+
let result200: any = null;
|
|
6436
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6437
|
+
if (Array.isArray(resultData200)) {
|
|
6438
|
+
result200 = [] as any;
|
|
6439
|
+
for (let item of resultData200)
|
|
6440
|
+
result200!.push(SearchWorkOrderDto.fromJS(item));
|
|
6441
|
+
}
|
|
6442
|
+
return result200;
|
|
6443
|
+
});
|
|
6444
|
+
} else if (status !== 200 && status !== 204) {
|
|
6445
|
+
return response.text().then((_responseText) => {
|
|
6446
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6447
|
+
});
|
|
6448
|
+
}
|
|
6449
|
+
return Promise.resolve<SearchWorkOrderDto[]>(null as any);
|
|
6450
|
+
}
|
|
6451
|
+
}
|
|
6452
|
+
|
|
6407
6453
|
export interface ILinksClient {
|
|
6408
6454
|
|
|
6409
6455
|
getAllLinks(scope: string | null | undefined): Promise<LinkDto[]>;
|
|
@@ -28346,7 +28392,7 @@ export class BookingResponseDto implements IBookingResponseDto {
|
|
|
28346
28392
|
requestedBy!: string;
|
|
28347
28393
|
bookingType!: BookingTypeDto;
|
|
28348
28394
|
bookingStatus!: BookingStatusDto;
|
|
28349
|
-
|
|
28395
|
+
workOrderId!: string;
|
|
28350
28396
|
palletCount!: number;
|
|
28351
28397
|
fromLocation!: string;
|
|
28352
28398
|
toLocation!: string;
|
|
@@ -28374,7 +28420,7 @@ export class BookingResponseDto implements IBookingResponseDto {
|
|
|
28374
28420
|
this.requestedBy = _data["requestedBy"];
|
|
28375
28421
|
this.bookingType = _data["bookingType"];
|
|
28376
28422
|
this.bookingStatus = _data["bookingStatus"];
|
|
28377
|
-
this.
|
|
28423
|
+
this.workOrderId = _data["workOrderId"];
|
|
28378
28424
|
this.palletCount = _data["palletCount"];
|
|
28379
28425
|
this.fromLocation = _data["fromLocation"];
|
|
28380
28426
|
this.toLocation = _data["toLocation"];
|
|
@@ -28402,7 +28448,7 @@ export class BookingResponseDto implements IBookingResponseDto {
|
|
|
28402
28448
|
data["requestedBy"] = this.requestedBy;
|
|
28403
28449
|
data["bookingType"] = this.bookingType;
|
|
28404
28450
|
data["bookingStatus"] = this.bookingStatus;
|
|
28405
|
-
data["
|
|
28451
|
+
data["workOrderId"] = this.workOrderId;
|
|
28406
28452
|
data["palletCount"] = this.palletCount;
|
|
28407
28453
|
data["fromLocation"] = this.fromLocation;
|
|
28408
28454
|
data["toLocation"] = this.toLocation;
|
|
@@ -28423,7 +28469,7 @@ export interface IBookingResponseDto {
|
|
|
28423
28469
|
requestedBy: string;
|
|
28424
28470
|
bookingType: BookingTypeDto;
|
|
28425
28471
|
bookingStatus: BookingStatusDto;
|
|
28426
|
-
|
|
28472
|
+
workOrderId: string;
|
|
28427
28473
|
palletCount: number;
|
|
28428
28474
|
fromLocation: string;
|
|
28429
28475
|
toLocation: string;
|
|
@@ -28444,7 +28490,7 @@ export class BookingRequestDto implements IBookingRequestDto {
|
|
|
28444
28490
|
requestedDate!: Date;
|
|
28445
28491
|
requestedBy!: string;
|
|
28446
28492
|
bookingType!: BookingTypeDto;
|
|
28447
|
-
|
|
28493
|
+
workOrderId!: string;
|
|
28448
28494
|
palletCount!: number;
|
|
28449
28495
|
fromLocation!: string;
|
|
28450
28496
|
toLocation!: string;
|
|
@@ -28470,7 +28516,7 @@ export class BookingRequestDto implements IBookingRequestDto {
|
|
|
28470
28516
|
this.requestedDate = _data["requestedDate"] ? new Date(_data["requestedDate"].toString()) : <any>undefined;
|
|
28471
28517
|
this.requestedBy = _data["requestedBy"];
|
|
28472
28518
|
this.bookingType = _data["bookingType"];
|
|
28473
|
-
this.
|
|
28519
|
+
this.workOrderId = _data["workOrderId"];
|
|
28474
28520
|
this.palletCount = _data["palletCount"];
|
|
28475
28521
|
this.fromLocation = _data["fromLocation"];
|
|
28476
28522
|
this.toLocation = _data["toLocation"];
|
|
@@ -28496,7 +28542,7 @@ export class BookingRequestDto implements IBookingRequestDto {
|
|
|
28496
28542
|
data["requestedDate"] = this.requestedDate ? this.requestedDate.toISOString() : <any>undefined;
|
|
28497
28543
|
data["requestedBy"] = this.requestedBy;
|
|
28498
28544
|
data["bookingType"] = this.bookingType;
|
|
28499
|
-
data["
|
|
28545
|
+
data["workOrderId"] = this.workOrderId;
|
|
28500
28546
|
data["palletCount"] = this.palletCount;
|
|
28501
28547
|
data["fromLocation"] = this.fromLocation;
|
|
28502
28548
|
data["toLocation"] = this.toLocation;
|
|
@@ -28515,7 +28561,7 @@ export interface IBookingRequestDto {
|
|
|
28515
28561
|
requestedDate: Date;
|
|
28516
28562
|
requestedBy: string;
|
|
28517
28563
|
bookingType: BookingTypeDto;
|
|
28518
|
-
|
|
28564
|
+
workOrderId: string;
|
|
28519
28565
|
palletCount: number;
|
|
28520
28566
|
fromLocation: string;
|
|
28521
28567
|
toLocation: string;
|
|
@@ -28665,53 +28711,10 @@ export interface ILocationDto {
|
|
|
28665
28711
|
|
|
28666
28712
|
export type LocationKindDto = "Warehouse" | "Zone" | "Location";
|
|
28667
28713
|
|
|
28668
|
-
export class OrderDto implements IOrderDto {
|
|
28669
|
-
orderId!: string;
|
|
28670
|
-
partName?: string | null;
|
|
28671
|
-
partNumber?: string | null;
|
|
28672
|
-
|
|
28673
|
-
constructor(data?: IOrderDto) {
|
|
28674
|
-
if (data) {
|
|
28675
|
-
for (var property in data) {
|
|
28676
|
-
if (data.hasOwnProperty(property))
|
|
28677
|
-
(<any>this)[property] = (<any>data)[property];
|
|
28678
|
-
}
|
|
28679
|
-
}
|
|
28680
|
-
}
|
|
28681
|
-
|
|
28682
|
-
init(_data?: any) {
|
|
28683
|
-
if (_data) {
|
|
28684
|
-
this.orderId = _data["orderId"];
|
|
28685
|
-
this.partName = _data["partName"];
|
|
28686
|
-
this.partNumber = _data["partNumber"];
|
|
28687
|
-
}
|
|
28688
|
-
}
|
|
28689
|
-
|
|
28690
|
-
static fromJS(data: any): OrderDto {
|
|
28691
|
-
data = typeof data === 'object' ? data : {};
|
|
28692
|
-
let result = new OrderDto();
|
|
28693
|
-
result.init(data);
|
|
28694
|
-
return result;
|
|
28695
|
-
}
|
|
28696
|
-
|
|
28697
|
-
toJSON(data?: any) {
|
|
28698
|
-
data = typeof data === 'object' ? data : {};
|
|
28699
|
-
data["orderId"] = this.orderId;
|
|
28700
|
-
data["partName"] = this.partName;
|
|
28701
|
-
data["partNumber"] = this.partNumber;
|
|
28702
|
-
return data;
|
|
28703
|
-
}
|
|
28704
|
-
}
|
|
28705
|
-
|
|
28706
|
-
export interface IOrderDto {
|
|
28707
|
-
orderId: string;
|
|
28708
|
-
partName?: string | null;
|
|
28709
|
-
partNumber?: string | null;
|
|
28710
|
-
}
|
|
28711
|
-
|
|
28712
28714
|
export class TrackingHistoryDto implements ITrackingHistoryDto {
|
|
28713
|
-
|
|
28715
|
+
workOrderId!: string;
|
|
28714
28716
|
trackingEvents!: TrackingEventDto[];
|
|
28717
|
+
part!: PartDto;
|
|
28715
28718
|
|
|
28716
28719
|
constructor(data?: ITrackingHistoryDto) {
|
|
28717
28720
|
if (data) {
|
|
@@ -28722,17 +28725,19 @@ export class TrackingHistoryDto implements ITrackingHistoryDto {
|
|
|
28722
28725
|
}
|
|
28723
28726
|
if (!data) {
|
|
28724
28727
|
this.trackingEvents = [];
|
|
28728
|
+
this.part = new PartDto();
|
|
28725
28729
|
}
|
|
28726
28730
|
}
|
|
28727
28731
|
|
|
28728
28732
|
init(_data?: any) {
|
|
28729
28733
|
if (_data) {
|
|
28730
|
-
this.
|
|
28734
|
+
this.workOrderId = _data["workOrderId"];
|
|
28731
28735
|
if (Array.isArray(_data["trackingEvents"])) {
|
|
28732
28736
|
this.trackingEvents = [] as any;
|
|
28733
28737
|
for (let item of _data["trackingEvents"])
|
|
28734
28738
|
this.trackingEvents!.push(TrackingEventDto.fromJS(item));
|
|
28735
28739
|
}
|
|
28740
|
+
this.part = _data["part"] ? PartDto.fromJS(_data["part"]) : new PartDto();
|
|
28736
28741
|
}
|
|
28737
28742
|
}
|
|
28738
28743
|
|
|
@@ -28745,19 +28750,21 @@ export class TrackingHistoryDto implements ITrackingHistoryDto {
|
|
|
28745
28750
|
|
|
28746
28751
|
toJSON(data?: any) {
|
|
28747
28752
|
data = typeof data === 'object' ? data : {};
|
|
28748
|
-
data["
|
|
28753
|
+
data["workOrderId"] = this.workOrderId;
|
|
28749
28754
|
if (Array.isArray(this.trackingEvents)) {
|
|
28750
28755
|
data["trackingEvents"] = [];
|
|
28751
28756
|
for (let item of this.trackingEvents)
|
|
28752
28757
|
data["trackingEvents"].push(item.toJSON());
|
|
28753
28758
|
}
|
|
28759
|
+
data["part"] = this.part ? this.part.toJSON() : <any>undefined;
|
|
28754
28760
|
return data;
|
|
28755
28761
|
}
|
|
28756
28762
|
}
|
|
28757
28763
|
|
|
28758
28764
|
export interface ITrackingHistoryDto {
|
|
28759
|
-
|
|
28765
|
+
workOrderId: string;
|
|
28760
28766
|
trackingEvents: TrackingEventDto[];
|
|
28767
|
+
part: PartDto;
|
|
28761
28768
|
}
|
|
28762
28769
|
|
|
28763
28770
|
export class TrackingEventDto implements ITrackingEventDto {
|
|
@@ -28875,6 +28882,50 @@ export interface ITrackingUpdateDto {
|
|
|
28875
28882
|
pallets?: number | null;
|
|
28876
28883
|
}
|
|
28877
28884
|
|
|
28885
|
+
export class SearchWorkOrderDto implements ISearchWorkOrderDto {
|
|
28886
|
+
workOrderId!: string;
|
|
28887
|
+
partName?: string | null;
|
|
28888
|
+
partNumber?: string | null;
|
|
28889
|
+
|
|
28890
|
+
constructor(data?: ISearchWorkOrderDto) {
|
|
28891
|
+
if (data) {
|
|
28892
|
+
for (var property in data) {
|
|
28893
|
+
if (data.hasOwnProperty(property))
|
|
28894
|
+
(<any>this)[property] = (<any>data)[property];
|
|
28895
|
+
}
|
|
28896
|
+
}
|
|
28897
|
+
}
|
|
28898
|
+
|
|
28899
|
+
init(_data?: any) {
|
|
28900
|
+
if (_data) {
|
|
28901
|
+
this.workOrderId = _data["workOrderId"];
|
|
28902
|
+
this.partName = _data["partName"];
|
|
28903
|
+
this.partNumber = _data["partNumber"];
|
|
28904
|
+
}
|
|
28905
|
+
}
|
|
28906
|
+
|
|
28907
|
+
static fromJS(data: any): SearchWorkOrderDto {
|
|
28908
|
+
data = typeof data === 'object' ? data : {};
|
|
28909
|
+
let result = new SearchWorkOrderDto();
|
|
28910
|
+
result.init(data);
|
|
28911
|
+
return result;
|
|
28912
|
+
}
|
|
28913
|
+
|
|
28914
|
+
toJSON(data?: any) {
|
|
28915
|
+
data = typeof data === 'object' ? data : {};
|
|
28916
|
+
data["workOrderId"] = this.workOrderId;
|
|
28917
|
+
data["partName"] = this.partName;
|
|
28918
|
+
data["partNumber"] = this.partNumber;
|
|
28919
|
+
return data;
|
|
28920
|
+
}
|
|
28921
|
+
}
|
|
28922
|
+
|
|
28923
|
+
export interface ISearchWorkOrderDto {
|
|
28924
|
+
workOrderId: string;
|
|
28925
|
+
partName?: string | null;
|
|
28926
|
+
partNumber?: string | null;
|
|
28927
|
+
}
|
|
28928
|
+
|
|
28878
28929
|
export class LinkDto implements ILinkDto {
|
|
28879
28930
|
id!: string;
|
|
28880
28931
|
uri!: string;
|