@ignos/api-client 20240508.0.9233 → 20240514.0.9274
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 +35 -30
- package/lib/ignosportal-api.js +95 -48
- package/package.json +1 -1
- package/src/ignosportal-api.ts +125 -75
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,21 +732,10 @@ 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[]>;
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
searchOrders(input: string | null | undefined): Promise<SearchWorkOrderDto[]>;
|
|
739
|
-
}
|
|
740
|
-
export declare class LocateOrdersClient extends AuthorizedApiBase implements ILocateOrdersClient {
|
|
741
|
-
private http;
|
|
742
|
-
private baseUrl;
|
|
743
|
-
protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
|
|
744
|
-
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
|
|
745
|
-
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
746
|
-
});
|
|
747
|
-
searchOrders(input: string | null | undefined): Promise<SearchWorkOrderDto[]>;
|
|
748
|
-
protected processSearchOrders(response: Response): Promise<SearchWorkOrderDto[]>;
|
|
737
|
+
suggestionsLocations(workOrderId: string | null | undefined, locationKinds: LocationKindDto[] | undefined): Promise<LocationDto[]>;
|
|
738
|
+
protected processSuggestionsLocations(response: Response): Promise<LocationDto[]>;
|
|
749
739
|
}
|
|
750
740
|
export interface ILocateTrackingClient {
|
|
751
741
|
listTrackingHistory(workOrderId: string): Promise<TrackingHistoryDto>;
|
|
@@ -769,6 +759,19 @@ export declare class LocateTrackingClient extends AuthorizedApiBase implements I
|
|
|
769
759
|
createLabel(workOrderId: string, palletCount: number | undefined): Promise<FileResponse>;
|
|
770
760
|
protected processCreateLabel(response: Response): Promise<FileResponse>;
|
|
771
761
|
}
|
|
762
|
+
export interface ILocateWorkOrdersClient {
|
|
763
|
+
searchWorkOrders(input: string | null | undefined): Promise<SearchWorkOrderDto[]>;
|
|
764
|
+
}
|
|
765
|
+
export declare class LocateWorkOrdersClient extends AuthorizedApiBase implements ILocateWorkOrdersClient {
|
|
766
|
+
private http;
|
|
767
|
+
private baseUrl;
|
|
768
|
+
protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
|
|
769
|
+
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
|
|
770
|
+
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
771
|
+
});
|
|
772
|
+
searchWorkOrders(input: string | null | undefined): Promise<SearchWorkOrderDto[]>;
|
|
773
|
+
protected processSearchWorkOrders(response: Response): Promise<SearchWorkOrderDto[]>;
|
|
774
|
+
}
|
|
772
775
|
export interface ILinksClient {
|
|
773
776
|
getAllLinks(scope: string | null | undefined): Promise<LinkDto[]>;
|
|
774
777
|
createLink(request: CreateLinkRequest): Promise<LinkDto>;
|
|
@@ -3670,6 +3673,7 @@ export declare class TraceDto implements ITraceDto {
|
|
|
3670
3673
|
overrideMaterialDetails: TraceMaterialDetailDto[];
|
|
3671
3674
|
operations: WorkOrderTraceOperationDto[];
|
|
3672
3675
|
traceType: TraceType;
|
|
3676
|
+
traceStatus: TraceStatus;
|
|
3673
3677
|
manualCompleted: boolean;
|
|
3674
3678
|
materialLinesMissingTraceInformation: number[];
|
|
3675
3679
|
constructor(data?: ITraceDto);
|
|
@@ -3687,6 +3691,7 @@ export interface ITraceDto {
|
|
|
3687
3691
|
overrideMaterialDetails: TraceMaterialDetailDto[];
|
|
3688
3692
|
operations: WorkOrderTraceOperationDto[];
|
|
3689
3693
|
traceType: TraceType;
|
|
3694
|
+
traceStatus: TraceStatus;
|
|
3690
3695
|
manualCompleted: boolean;
|
|
3691
3696
|
materialLinesMissingTraceInformation: number[];
|
|
3692
3697
|
}
|
|
@@ -3915,6 +3920,7 @@ export interface IMaterialConsumptionDto {
|
|
|
3915
3920
|
label: string;
|
|
3916
3921
|
reference?: string | null;
|
|
3917
3922
|
}
|
|
3923
|
+
export type TraceStatus = "None" | "Unavailable" | "NotNeeded" | "Partial" | "Completed";
|
|
3918
3924
|
export declare class UpdateTraceRequest implements IUpdateTraceRequest {
|
|
3919
3925
|
items: TraceItemDto[];
|
|
3920
3926
|
constructor(data?: IUpdateTraceRequest);
|
|
@@ -3983,7 +3989,6 @@ export interface ICustomerOrderLineWorkOrderTraceStatusNodeDto {
|
|
|
3983
3989
|
traceStatus: TraceStatus;
|
|
3984
3990
|
workOrders?: CustomerOrderLineWorkOrderTraceStatusNodeDto[];
|
|
3985
3991
|
}
|
|
3986
|
-
export type TraceStatus = "None" | "Unavailable" | "NotNeeded" | "Partial" | "Completed";
|
|
3987
3992
|
export declare class PagedResultOfTraceWorkOrderListDto implements IPagedResultOfTraceWorkOrderListDto {
|
|
3988
3993
|
results: TraceWorkOrderListDto[];
|
|
3989
3994
|
continuationToken?: string | null;
|
|
@@ -5241,20 +5246,6 @@ export interface ILocationDto {
|
|
|
5241
5246
|
profile?: string | null;
|
|
5242
5247
|
}
|
|
5243
5248
|
export type LocationKindDto = "Warehouse" | "Zone" | "Location";
|
|
5244
|
-
export declare class SearchWorkOrderDto implements ISearchWorkOrderDto {
|
|
5245
|
-
workOrderId: string;
|
|
5246
|
-
partName?: string | null;
|
|
5247
|
-
partNumber?: string | null;
|
|
5248
|
-
constructor(data?: ISearchWorkOrderDto);
|
|
5249
|
-
init(_data?: any): void;
|
|
5250
|
-
static fromJS(data: any): SearchWorkOrderDto;
|
|
5251
|
-
toJSON(data?: any): any;
|
|
5252
|
-
}
|
|
5253
|
-
export interface ISearchWorkOrderDto {
|
|
5254
|
-
workOrderId: string;
|
|
5255
|
-
partName?: string | null;
|
|
5256
|
-
partNumber?: string | null;
|
|
5257
|
-
}
|
|
5258
5249
|
export declare class TrackingHistoryDto implements ITrackingHistoryDto {
|
|
5259
5250
|
workOrderId: string;
|
|
5260
5251
|
trackingEvents: TrackingEventDto[];
|
|
@@ -5309,6 +5300,20 @@ export interface ITrackingUpdateDto {
|
|
|
5309
5300
|
comments?: string | null;
|
|
5310
5301
|
pallets?: number | null;
|
|
5311
5302
|
}
|
|
5303
|
+
export declare class SearchWorkOrderDto implements ISearchWorkOrderDto {
|
|
5304
|
+
workOrderId: string;
|
|
5305
|
+
partName?: string | null;
|
|
5306
|
+
partNumber?: string | null;
|
|
5307
|
+
constructor(data?: ISearchWorkOrderDto);
|
|
5308
|
+
init(_data?: any): void;
|
|
5309
|
+
static fromJS(data: any): SearchWorkOrderDto;
|
|
5310
|
+
toJSON(data?: any): any;
|
|
5311
|
+
}
|
|
5312
|
+
export interface ISearchWorkOrderDto {
|
|
5313
|
+
workOrderId: string;
|
|
5314
|
+
partName?: string | null;
|
|
5315
|
+
partNumber?: string | null;
|
|
5316
|
+
}
|
|
5312
5317
|
export declare class LinkDto implements ILinkDto {
|
|
5313
5318
|
id: string;
|
|
5314
5319
|
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 (workOrderId !== undefined && workOrderId !== null)
|
|
5708
|
-
url_ += "workOrderId=" + encodeURIComponent("" + workOrderId) + "&";
|
|
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
|
});
|
|
@@ -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);
|
|
@@ -21185,6 +21230,7 @@ export class TraceDto {
|
|
|
21185
21230
|
this.operations.push(WorkOrderTraceOperationDto.fromJS(item));
|
|
21186
21231
|
}
|
|
21187
21232
|
this.traceType = _data["traceType"];
|
|
21233
|
+
this.traceStatus = _data["traceStatus"];
|
|
21188
21234
|
this.manualCompleted = _data["manualCompleted"];
|
|
21189
21235
|
if (Array.isArray(_data["materialLinesMissingTraceInformation"])) {
|
|
21190
21236
|
this.materialLinesMissingTraceInformation = [];
|
|
@@ -21222,6 +21268,7 @@ export class TraceDto {
|
|
|
21222
21268
|
data["operations"].push(item.toJSON());
|
|
21223
21269
|
}
|
|
21224
21270
|
data["traceType"] = this.traceType;
|
|
21271
|
+
data["traceStatus"] = this.traceStatus;
|
|
21225
21272
|
data["manualCompleted"] = this.manualCompleted;
|
|
21226
21273
|
if (Array.isArray(this.materialLinesMissingTraceInformation)) {
|
|
21227
21274
|
data["materialLinesMissingTraceInformation"] = [];
|
|
@@ -24373,36 +24420,6 @@ export class LocationDto {
|
|
|
24373
24420
|
return data;
|
|
24374
24421
|
}
|
|
24375
24422
|
}
|
|
24376
|
-
export class SearchWorkOrderDto {
|
|
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.workOrderId = _data["workOrderId"];
|
|
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 SearchWorkOrderDto();
|
|
24395
|
-
result.init(data);
|
|
24396
|
-
return result;
|
|
24397
|
-
}
|
|
24398
|
-
toJSON(data) {
|
|
24399
|
-
data = typeof data === 'object' ? data : {};
|
|
24400
|
-
data["workOrderId"] = this.workOrderId;
|
|
24401
|
-
data["partName"] = this.partName;
|
|
24402
|
-
data["partNumber"] = this.partNumber;
|
|
24403
|
-
return data;
|
|
24404
|
-
}
|
|
24405
|
-
}
|
|
24406
24423
|
export class TrackingHistoryDto {
|
|
24407
24424
|
constructor(data) {
|
|
24408
24425
|
if (data) {
|
|
@@ -24520,6 +24537,36 @@ export class TrackingUpdateDto {
|
|
|
24520
24537
|
return data;
|
|
24521
24538
|
}
|
|
24522
24539
|
}
|
|
24540
|
+
export class SearchWorkOrderDto {
|
|
24541
|
+
constructor(data) {
|
|
24542
|
+
if (data) {
|
|
24543
|
+
for (var property in data) {
|
|
24544
|
+
if (data.hasOwnProperty(property))
|
|
24545
|
+
this[property] = data[property];
|
|
24546
|
+
}
|
|
24547
|
+
}
|
|
24548
|
+
}
|
|
24549
|
+
init(_data) {
|
|
24550
|
+
if (_data) {
|
|
24551
|
+
this.workOrderId = _data["workOrderId"];
|
|
24552
|
+
this.partName = _data["partName"];
|
|
24553
|
+
this.partNumber = _data["partNumber"];
|
|
24554
|
+
}
|
|
24555
|
+
}
|
|
24556
|
+
static fromJS(data) {
|
|
24557
|
+
data = typeof data === 'object' ? data : {};
|
|
24558
|
+
let result = new SearchWorkOrderDto();
|
|
24559
|
+
result.init(data);
|
|
24560
|
+
return result;
|
|
24561
|
+
}
|
|
24562
|
+
toJSON(data) {
|
|
24563
|
+
data = typeof data === 'object' ? data : {};
|
|
24564
|
+
data["workOrderId"] = this.workOrderId;
|
|
24565
|
+
data["partName"] = this.partName;
|
|
24566
|
+
data["partNumber"] = this.partNumber;
|
|
24567
|
+
return data;
|
|
24568
|
+
}
|
|
24569
|
+
}
|
|
24523
24570
|
export class LinkDto {
|
|
24524
24571
|
constructor(data) {
|
|
24525
24572
|
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 (workOrderId !== undefined && workOrderId !== null)
|
|
6110
|
-
url_ += "workOrderId=" + encodeURIComponent("" + workOrderId) + "&";
|
|
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
|
-
|
|
6152
|
-
searchOrders(input: string | null | undefined): Promise<SearchWorkOrderDto[]>;
|
|
6153
|
-
}
|
|
6154
|
-
|
|
6155
|
-
export class LocateOrdersClient extends AuthorizedApiBase implements ILocateOrdersClient {
|
|
6156
|
-
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
|
|
6157
|
-
private baseUrl: string;
|
|
6158
|
-
protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
|
|
6159
6148
|
|
|
6160
|
-
|
|
6161
|
-
|
|
6162
|
-
|
|
6163
|
-
|
|
6164
|
-
|
|
6165
|
-
|
|
6166
|
-
|
|
6167
|
-
|
|
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,7 +6189,7 @@ 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
|
|
|
@@ -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[]>;
|
|
@@ -23851,6 +23897,7 @@ export class TraceDto implements ITraceDto {
|
|
|
23851
23897
|
overrideMaterialDetails!: TraceMaterialDetailDto[];
|
|
23852
23898
|
operations!: WorkOrderTraceOperationDto[];
|
|
23853
23899
|
traceType!: TraceType;
|
|
23900
|
+
traceStatus!: TraceStatus;
|
|
23854
23901
|
manualCompleted!: boolean;
|
|
23855
23902
|
materialLinesMissingTraceInformation!: number[];
|
|
23856
23903
|
|
|
@@ -23894,6 +23941,7 @@ export class TraceDto implements ITraceDto {
|
|
|
23894
23941
|
this.operations!.push(WorkOrderTraceOperationDto.fromJS(item));
|
|
23895
23942
|
}
|
|
23896
23943
|
this.traceType = _data["traceType"];
|
|
23944
|
+
this.traceStatus = _data["traceStatus"];
|
|
23897
23945
|
this.manualCompleted = _data["manualCompleted"];
|
|
23898
23946
|
if (Array.isArray(_data["materialLinesMissingTraceInformation"])) {
|
|
23899
23947
|
this.materialLinesMissingTraceInformation = [] as any;
|
|
@@ -23933,6 +23981,7 @@ export class TraceDto implements ITraceDto {
|
|
|
23933
23981
|
data["operations"].push(item.toJSON());
|
|
23934
23982
|
}
|
|
23935
23983
|
data["traceType"] = this.traceType;
|
|
23984
|
+
data["traceStatus"] = this.traceStatus;
|
|
23936
23985
|
data["manualCompleted"] = this.manualCompleted;
|
|
23937
23986
|
if (Array.isArray(this.materialLinesMissingTraceInformation)) {
|
|
23938
23987
|
data["materialLinesMissingTraceInformation"] = [];
|
|
@@ -23953,6 +24002,7 @@ export interface ITraceDto {
|
|
|
23953
24002
|
overrideMaterialDetails: TraceMaterialDetailDto[];
|
|
23954
24003
|
operations: WorkOrderTraceOperationDto[];
|
|
23955
24004
|
traceType: TraceType;
|
|
24005
|
+
traceStatus: TraceStatus;
|
|
23956
24006
|
manualCompleted: boolean;
|
|
23957
24007
|
materialLinesMissingTraceInformation: number[];
|
|
23958
24008
|
}
|
|
@@ -24616,6 +24666,8 @@ export interface IMaterialConsumptionDto {
|
|
|
24616
24666
|
reference?: string | null;
|
|
24617
24667
|
}
|
|
24618
24668
|
|
|
24669
|
+
export type TraceStatus = "None" | "Unavailable" | "NotNeeded" | "Partial" | "Completed";
|
|
24670
|
+
|
|
24619
24671
|
export class UpdateTraceRequest implements IUpdateTraceRequest {
|
|
24620
24672
|
items!: TraceItemDto[];
|
|
24621
24673
|
|
|
@@ -24877,8 +24929,6 @@ export interface ICustomerOrderLineWorkOrderTraceStatusNodeDto {
|
|
|
24877
24929
|
workOrders?: CustomerOrderLineWorkOrderTraceStatusNodeDto[];
|
|
24878
24930
|
}
|
|
24879
24931
|
|
|
24880
|
-
export type TraceStatus = "None" | "Unavailable" | "NotNeeded" | "Partial" | "Completed";
|
|
24881
|
-
|
|
24882
24932
|
export class PagedResultOfTraceWorkOrderListDto implements IPagedResultOfTraceWorkOrderListDto {
|
|
24883
24933
|
results!: TraceWorkOrderListDto[];
|
|
24884
24934
|
continuationToken?: string | null;
|
|
@@ -28665,50 +28715,6 @@ export interface ILocationDto {
|
|
|
28665
28715
|
|
|
28666
28716
|
export type LocationKindDto = "Warehouse" | "Zone" | "Location";
|
|
28667
28717
|
|
|
28668
|
-
export class SearchWorkOrderDto implements ISearchWorkOrderDto {
|
|
28669
|
-
workOrderId!: string;
|
|
28670
|
-
partName?: string | null;
|
|
28671
|
-
partNumber?: string | null;
|
|
28672
|
-
|
|
28673
|
-
constructor(data?: ISearchWorkOrderDto) {
|
|
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.workOrderId = _data["workOrderId"];
|
|
28685
|
-
this.partName = _data["partName"];
|
|
28686
|
-
this.partNumber = _data["partNumber"];
|
|
28687
|
-
}
|
|
28688
|
-
}
|
|
28689
|
-
|
|
28690
|
-
static fromJS(data: any): SearchWorkOrderDto {
|
|
28691
|
-
data = typeof data === 'object' ? data : {};
|
|
28692
|
-
let result = new SearchWorkOrderDto();
|
|
28693
|
-
result.init(data);
|
|
28694
|
-
return result;
|
|
28695
|
-
}
|
|
28696
|
-
|
|
28697
|
-
toJSON(data?: any) {
|
|
28698
|
-
data = typeof data === 'object' ? data : {};
|
|
28699
|
-
data["workOrderId"] = this.workOrderId;
|
|
28700
|
-
data["partName"] = this.partName;
|
|
28701
|
-
data["partNumber"] = this.partNumber;
|
|
28702
|
-
return data;
|
|
28703
|
-
}
|
|
28704
|
-
}
|
|
28705
|
-
|
|
28706
|
-
export interface ISearchWorkOrderDto {
|
|
28707
|
-
workOrderId: string;
|
|
28708
|
-
partName?: string | null;
|
|
28709
|
-
partNumber?: string | null;
|
|
28710
|
-
}
|
|
28711
|
-
|
|
28712
28718
|
export class TrackingHistoryDto implements ITrackingHistoryDto {
|
|
28713
28719
|
workOrderId!: string;
|
|
28714
28720
|
trackingEvents!: TrackingEventDto[];
|
|
@@ -28880,6 +28886,50 @@ export interface ITrackingUpdateDto {
|
|
|
28880
28886
|
pallets?: number | null;
|
|
28881
28887
|
}
|
|
28882
28888
|
|
|
28889
|
+
export class SearchWorkOrderDto implements ISearchWorkOrderDto {
|
|
28890
|
+
workOrderId!: string;
|
|
28891
|
+
partName?: string | null;
|
|
28892
|
+
partNumber?: string | null;
|
|
28893
|
+
|
|
28894
|
+
constructor(data?: ISearchWorkOrderDto) {
|
|
28895
|
+
if (data) {
|
|
28896
|
+
for (var property in data) {
|
|
28897
|
+
if (data.hasOwnProperty(property))
|
|
28898
|
+
(<any>this)[property] = (<any>data)[property];
|
|
28899
|
+
}
|
|
28900
|
+
}
|
|
28901
|
+
}
|
|
28902
|
+
|
|
28903
|
+
init(_data?: any) {
|
|
28904
|
+
if (_data) {
|
|
28905
|
+
this.workOrderId = _data["workOrderId"];
|
|
28906
|
+
this.partName = _data["partName"];
|
|
28907
|
+
this.partNumber = _data["partNumber"];
|
|
28908
|
+
}
|
|
28909
|
+
}
|
|
28910
|
+
|
|
28911
|
+
static fromJS(data: any): SearchWorkOrderDto {
|
|
28912
|
+
data = typeof data === 'object' ? data : {};
|
|
28913
|
+
let result = new SearchWorkOrderDto();
|
|
28914
|
+
result.init(data);
|
|
28915
|
+
return result;
|
|
28916
|
+
}
|
|
28917
|
+
|
|
28918
|
+
toJSON(data?: any) {
|
|
28919
|
+
data = typeof data === 'object' ? data : {};
|
|
28920
|
+
data["workOrderId"] = this.workOrderId;
|
|
28921
|
+
data["partName"] = this.partName;
|
|
28922
|
+
data["partNumber"] = this.partNumber;
|
|
28923
|
+
return data;
|
|
28924
|
+
}
|
|
28925
|
+
}
|
|
28926
|
+
|
|
28927
|
+
export interface ISearchWorkOrderDto {
|
|
28928
|
+
workOrderId: string;
|
|
28929
|
+
partName?: string | null;
|
|
28930
|
+
partNumber?: string | null;
|
|
28931
|
+
}
|
|
28932
|
+
|
|
28883
28933
|
export class LinkDto implements ILinkDto {
|
|
28884
28934
|
id!: string;
|
|
28885
28935
|
uri!: string;
|