@ignos/api-client 20240430.0.9189 → 20240506.0.9212
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 +44 -31
- package/lib/ignosportal-api.js +89 -23
- package/package.json +1 -1
- package/src/ignosportal-api.ts +132 -54
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -481,6 +481,7 @@ export interface ITraceClient {
|
|
|
481
481
|
updateTrace(id: string, request: UpdateTraceRequest): Promise<void>;
|
|
482
482
|
generateTrace(id: string): Promise<TraceDto>;
|
|
483
483
|
addSequenceToTraceList(id: string): Promise<FileResponse>;
|
|
484
|
+
setTraceManualCompleted(id: string, request: UpdateTraceManualCompletionRequest): Promise<void>;
|
|
484
485
|
listCustomerOrderLineTraces(customerOrder: string | undefined, customerOrderLine: number | undefined): Promise<CustomerOrderLineTraceItemDto[]>;
|
|
485
486
|
getCustomerOrderTraceStatus(id: string, line: number | null | undefined): Promise<CustomerOrderTraceStatusDto>;
|
|
486
487
|
/**
|
|
@@ -509,6 +510,8 @@ export declare class TraceClient extends AuthorizedApiBase implements ITraceClie
|
|
|
509
510
|
protected processGenerateTrace(response: Response): Promise<TraceDto>;
|
|
510
511
|
addSequenceToTraceList(id: string): Promise<FileResponse>;
|
|
511
512
|
protected processAddSequenceToTraceList(response: Response): Promise<FileResponse>;
|
|
513
|
+
setTraceManualCompleted(id: string, request: UpdateTraceManualCompletionRequest): Promise<void>;
|
|
514
|
+
protected processSetTraceManualCompleted(response: Response): Promise<void>;
|
|
512
515
|
listCustomerOrderLineTraces(customerOrder: string | undefined, customerOrderLine: number | undefined): Promise<CustomerOrderLineTraceItemDto[]>;
|
|
513
516
|
protected processListCustomerOrderLineTraces(response: Response): Promise<CustomerOrderLineTraceItemDto[]>;
|
|
514
517
|
getCustomerOrderTraceStatus(id: string, line: number | null | undefined): Promise<CustomerOrderTraceStatusDto>;
|
|
@@ -732,7 +735,7 @@ export declare class LocateLocationsClient extends AuthorizedApiBase implements
|
|
|
732
735
|
protected processSearchLocations(response: Response): Promise<LocationDto[]>;
|
|
733
736
|
}
|
|
734
737
|
export interface ILocateOrdersClient {
|
|
735
|
-
searchOrders(input: string | null | undefined
|
|
738
|
+
searchOrders(input: string | null | undefined): Promise<OrderDto[]>;
|
|
736
739
|
}
|
|
737
740
|
export declare class LocateOrdersClient extends AuthorizedApiBase implements ILocateOrdersClient {
|
|
738
741
|
private http;
|
|
@@ -741,13 +744,13 @@ export declare class LocateOrdersClient extends AuthorizedApiBase implements ILo
|
|
|
741
744
|
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
|
|
742
745
|
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
743
746
|
});
|
|
744
|
-
searchOrders(input: string | null | undefined
|
|
745
|
-
protected processSearchOrders(response: Response): Promise<
|
|
747
|
+
searchOrders(input: string | null | undefined): Promise<OrderDto[]>;
|
|
748
|
+
protected processSearchOrders(response: Response): Promise<OrderDto[]>;
|
|
746
749
|
}
|
|
747
750
|
export interface ILocateTrackingClient {
|
|
748
751
|
listTrackingHistory(orderId: string): Promise<TrackingHistoryDto>;
|
|
749
|
-
createTrackingEvent(orderId: string, locateTrackingUpdate: TrackingUpdateDto): Promise<
|
|
750
|
-
updateTrackingEvent(orderId: string, trackingEventId: number, locateTrackingUpdate: TrackingUpdateDto): Promise<
|
|
752
|
+
createTrackingEvent(orderId: string, locateTrackingUpdate: TrackingUpdateDto): Promise<TrackingHistoryDto>;
|
|
753
|
+
updateTrackingEvent(orderId: string, trackingEventId: number, locateTrackingUpdate: TrackingUpdateDto): Promise<TrackingHistoryDto>;
|
|
751
754
|
createLabel(orderId: string, palletCount: number | undefined): Promise<FileResponse>;
|
|
752
755
|
}
|
|
753
756
|
export declare class LocateTrackingClient extends AuthorizedApiBase implements ILocateTrackingClient {
|
|
@@ -759,10 +762,10 @@ export declare class LocateTrackingClient extends AuthorizedApiBase implements I
|
|
|
759
762
|
});
|
|
760
763
|
listTrackingHistory(orderId: string): Promise<TrackingHistoryDto>;
|
|
761
764
|
protected processListTrackingHistory(response: Response): Promise<TrackingHistoryDto>;
|
|
762
|
-
createTrackingEvent(orderId: string, locateTrackingUpdate: TrackingUpdateDto): Promise<
|
|
763
|
-
protected processCreateTrackingEvent(response: Response): Promise<
|
|
764
|
-
updateTrackingEvent(orderId: string, trackingEventId: number, locateTrackingUpdate: TrackingUpdateDto): Promise<
|
|
765
|
-
protected processUpdateTrackingEvent(response: Response): Promise<
|
|
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>;
|
|
766
769
|
createLabel(orderId: string, palletCount: number | undefined): Promise<FileResponse>;
|
|
767
770
|
protected processCreateLabel(response: Response): Promise<FileResponse>;
|
|
768
771
|
}
|
|
@@ -2535,6 +2538,7 @@ export declare class UserDto implements IUserDto {
|
|
|
2535
2538
|
id?: string | null;
|
|
2536
2539
|
fullName?: string | null;
|
|
2537
2540
|
upn?: string | null;
|
|
2541
|
+
email?: string | null;
|
|
2538
2542
|
isBetaTester?: boolean | null;
|
|
2539
2543
|
constructor(data?: IUserDto);
|
|
2540
2544
|
init(_data?: any): void;
|
|
@@ -2545,6 +2549,7 @@ export interface IUserDto {
|
|
|
2545
2549
|
id?: string | null;
|
|
2546
2550
|
fullName?: string | null;
|
|
2547
2551
|
upn?: string | null;
|
|
2552
|
+
email?: string | null;
|
|
2548
2553
|
isBetaTester?: boolean | null;
|
|
2549
2554
|
}
|
|
2550
2555
|
export declare class SetIsBetaTesterRequest implements ISetIsBetaTesterRequest {
|
|
@@ -3665,6 +3670,7 @@ export declare class TraceDto implements ITraceDto {
|
|
|
3665
3670
|
overrideMaterialDetails: TraceMaterialDetailDto[];
|
|
3666
3671
|
operations: WorkOrderTraceOperationDto[];
|
|
3667
3672
|
traceType: TraceType;
|
|
3673
|
+
manualCompleted: boolean;
|
|
3668
3674
|
materialLinesMissingTraceInformation: number[];
|
|
3669
3675
|
constructor(data?: ITraceDto);
|
|
3670
3676
|
init(_data?: any): void;
|
|
@@ -3681,6 +3687,7 @@ export interface ITraceDto {
|
|
|
3681
3687
|
overrideMaterialDetails: TraceMaterialDetailDto[];
|
|
3682
3688
|
operations: WorkOrderTraceOperationDto[];
|
|
3683
3689
|
traceType: TraceType;
|
|
3690
|
+
manualCompleted: boolean;
|
|
3684
3691
|
materialLinesMissingTraceInformation: number[];
|
|
3685
3692
|
}
|
|
3686
3693
|
export declare class PartDto implements IPartDto {
|
|
@@ -3918,6 +3925,16 @@ export declare class UpdateTraceRequest implements IUpdateTraceRequest {
|
|
|
3918
3925
|
export interface IUpdateTraceRequest {
|
|
3919
3926
|
items: TraceItemDto[];
|
|
3920
3927
|
}
|
|
3928
|
+
export declare class UpdateTraceManualCompletionRequest implements IUpdateTraceManualCompletionRequest {
|
|
3929
|
+
completed: boolean;
|
|
3930
|
+
constructor(data?: IUpdateTraceManualCompletionRequest);
|
|
3931
|
+
init(_data?: any): void;
|
|
3932
|
+
static fromJS(data: any): UpdateTraceManualCompletionRequest;
|
|
3933
|
+
toJSON(data?: any): any;
|
|
3934
|
+
}
|
|
3935
|
+
export interface IUpdateTraceManualCompletionRequest {
|
|
3936
|
+
completed: boolean;
|
|
3937
|
+
}
|
|
3921
3938
|
export declare class CustomerOrderTraceStatusDto implements ICustomerOrderTraceStatusDto {
|
|
3922
3939
|
lines: CustomerOrderLineTraceStatusDto[];
|
|
3923
3940
|
constructor(data?: ICustomerOrderTraceStatusDto);
|
|
@@ -5224,24 +5241,23 @@ export interface ILocationDto {
|
|
|
5224
5241
|
profile?: string | null;
|
|
5225
5242
|
}
|
|
5226
5243
|
export type LocationKindDto = "Warehouse" | "Zone" | "Location";
|
|
5227
|
-
export declare class
|
|
5244
|
+
export declare class OrderDto implements IOrderDto {
|
|
5228
5245
|
orderId: string;
|
|
5229
5246
|
partName?: string | null;
|
|
5230
5247
|
partNumber?: string | null;
|
|
5231
|
-
constructor(data?:
|
|
5248
|
+
constructor(data?: IOrderDto);
|
|
5232
5249
|
init(_data?: any): void;
|
|
5233
|
-
static fromJS(data: any):
|
|
5250
|
+
static fromJS(data: any): OrderDto;
|
|
5234
5251
|
toJSON(data?: any): any;
|
|
5235
5252
|
}
|
|
5236
|
-
export interface
|
|
5253
|
+
export interface IOrderDto {
|
|
5237
5254
|
orderId: string;
|
|
5238
5255
|
partName?: string | null;
|
|
5239
5256
|
partNumber?: string | null;
|
|
5240
5257
|
}
|
|
5241
5258
|
export declare class TrackingHistoryDto implements ITrackingHistoryDto {
|
|
5242
5259
|
orderId: string;
|
|
5243
|
-
|
|
5244
|
-
trackingEvents: TrackingEventsDto[];
|
|
5260
|
+
trackingEvents: TrackingEventDto[];
|
|
5245
5261
|
constructor(data?: ITrackingHistoryDto);
|
|
5246
5262
|
init(_data?: any): void;
|
|
5247
5263
|
static fromJS(data: any): TrackingHistoryDto;
|
|
@@ -5249,39 +5265,37 @@ export declare class TrackingHistoryDto implements ITrackingHistoryDto {
|
|
|
5249
5265
|
}
|
|
5250
5266
|
export interface ITrackingHistoryDto {
|
|
5251
5267
|
orderId: string;
|
|
5252
|
-
|
|
5253
|
-
trackingEvents: TrackingEventsDto[];
|
|
5268
|
+
trackingEvents: TrackingEventDto[];
|
|
5254
5269
|
}
|
|
5255
|
-
export declare class
|
|
5270
|
+
export declare class TrackingEventDto implements ITrackingEventDto {
|
|
5256
5271
|
id: number;
|
|
5257
5272
|
created: Date;
|
|
5258
5273
|
createdBy: string;
|
|
5259
5274
|
updated: Date;
|
|
5260
5275
|
updatedBy: string;
|
|
5261
|
-
|
|
5276
|
+
location: LocationDto;
|
|
5262
5277
|
active: boolean;
|
|
5263
|
-
|
|
5278
|
+
comments?: string | null;
|
|
5264
5279
|
pallets?: number | null;
|
|
5265
|
-
constructor(data?:
|
|
5280
|
+
constructor(data?: ITrackingEventDto);
|
|
5266
5281
|
init(_data?: any): void;
|
|
5267
|
-
static fromJS(data: any):
|
|
5282
|
+
static fromJS(data: any): TrackingEventDto;
|
|
5268
5283
|
toJSON(data?: any): any;
|
|
5269
5284
|
}
|
|
5270
|
-
export interface
|
|
5285
|
+
export interface ITrackingEventDto {
|
|
5271
5286
|
id: number;
|
|
5272
5287
|
created: Date;
|
|
5273
5288
|
createdBy: string;
|
|
5274
5289
|
updated: Date;
|
|
5275
5290
|
updatedBy: string;
|
|
5276
|
-
|
|
5291
|
+
location: LocationDto;
|
|
5277
5292
|
active: boolean;
|
|
5278
|
-
|
|
5293
|
+
comments?: string | null;
|
|
5279
5294
|
pallets?: number | null;
|
|
5280
5295
|
}
|
|
5281
5296
|
export declare class TrackingUpdateDto implements ITrackingUpdateDto {
|
|
5282
|
-
|
|
5283
|
-
|
|
5284
|
-
active?: boolean | null;
|
|
5297
|
+
locationId: string;
|
|
5298
|
+
comments?: string | null;
|
|
5285
5299
|
pallets?: number | null;
|
|
5286
5300
|
constructor(data?: ITrackingUpdateDto);
|
|
5287
5301
|
init(_data?: any): void;
|
|
@@ -5289,9 +5303,8 @@ export declare class TrackingUpdateDto implements ITrackingUpdateDto {
|
|
|
5289
5303
|
toJSON(data?: any): any;
|
|
5290
5304
|
}
|
|
5291
5305
|
export interface ITrackingUpdateDto {
|
|
5292
|
-
|
|
5293
|
-
|
|
5294
|
-
active?: boolean | null;
|
|
5306
|
+
locationId: string;
|
|
5307
|
+
comments?: string | null;
|
|
5295
5308
|
pallets?: number | null;
|
|
5296
5309
|
}
|
|
5297
5310
|
export declare class LinkDto implements ILinkDto {
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -3226,6 +3226,45 @@ export class TraceClient extends AuthorizedApiBase {
|
|
|
3226
3226
|
}
|
|
3227
3227
|
return Promise.resolve(null);
|
|
3228
3228
|
}
|
|
3229
|
+
setTraceManualCompleted(id, request) {
|
|
3230
|
+
let url_ = this.baseUrl + "/trace/{id}/manualcompleted";
|
|
3231
|
+
if (id === undefined || id === null)
|
|
3232
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
3233
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3234
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
3235
|
+
const content_ = JSON.stringify(request);
|
|
3236
|
+
let options_ = {
|
|
3237
|
+
body: content_,
|
|
3238
|
+
method: "PUT",
|
|
3239
|
+
headers: {
|
|
3240
|
+
"Content-Type": "application/json",
|
|
3241
|
+
}
|
|
3242
|
+
};
|
|
3243
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
3244
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
3245
|
+
}).then((_response) => {
|
|
3246
|
+
return this.processSetTraceManualCompleted(_response);
|
|
3247
|
+
});
|
|
3248
|
+
}
|
|
3249
|
+
processSetTraceManualCompleted(response) {
|
|
3250
|
+
const status = response.status;
|
|
3251
|
+
let _headers = {};
|
|
3252
|
+
if (response.headers && response.headers.forEach) {
|
|
3253
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
3254
|
+
}
|
|
3255
|
+
;
|
|
3256
|
+
if (status === 204) {
|
|
3257
|
+
return response.text().then((_responseText) => {
|
|
3258
|
+
return;
|
|
3259
|
+
});
|
|
3260
|
+
}
|
|
3261
|
+
else if (status !== 200 && status !== 204) {
|
|
3262
|
+
return response.text().then((_responseText) => {
|
|
3263
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
3264
|
+
});
|
|
3265
|
+
}
|
|
3266
|
+
return Promise.resolve(null);
|
|
3267
|
+
}
|
|
3229
3268
|
listCustomerOrderLineTraces(customerOrder, customerOrderLine) {
|
|
3230
3269
|
let url_ = this.baseUrl + "/trace/customerorderlineitems?";
|
|
3231
3270
|
if (customerOrder === null)
|
|
@@ -5714,12 +5753,10 @@ export class LocateOrdersClient extends AuthorizedApiBase {
|
|
|
5714
5753
|
this.http = http ? http : window;
|
|
5715
5754
|
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
5716
5755
|
}
|
|
5717
|
-
searchOrders(input
|
|
5756
|
+
searchOrders(input) {
|
|
5718
5757
|
let url_ = this.baseUrl + "/locate/orders/search?";
|
|
5719
5758
|
if (input !== undefined && input !== null)
|
|
5720
5759
|
url_ += "input=" + encodeURIComponent("" + input) + "&";
|
|
5721
|
-
if (orderId !== undefined && orderId !== null)
|
|
5722
|
-
url_ += "orderId=" + encodeURIComponent("" + orderId) + "&";
|
|
5723
5760
|
url_ = url_.replace(/[?&]$/, "");
|
|
5724
5761
|
let options_ = {
|
|
5725
5762
|
method: "GET",
|
|
@@ -5747,7 +5784,7 @@ export class LocateOrdersClient extends AuthorizedApiBase {
|
|
|
5747
5784
|
if (Array.isArray(resultData200)) {
|
|
5748
5785
|
result200 = [];
|
|
5749
5786
|
for (let item of resultData200)
|
|
5750
|
-
result200.push(
|
|
5787
|
+
result200.push(OrderDto.fromJS(item));
|
|
5751
5788
|
}
|
|
5752
5789
|
return result200;
|
|
5753
5790
|
});
|
|
@@ -5839,7 +5876,7 @@ export class LocateTrackingClient extends AuthorizedApiBase {
|
|
|
5839
5876
|
return response.text().then((_responseText) => {
|
|
5840
5877
|
let result200 = null;
|
|
5841
5878
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5842
|
-
result200 =
|
|
5879
|
+
result200 = TrackingHistoryDto.fromJS(resultData200);
|
|
5843
5880
|
return result200;
|
|
5844
5881
|
});
|
|
5845
5882
|
}
|
|
@@ -5885,7 +5922,7 @@ export class LocateTrackingClient extends AuthorizedApiBase {
|
|
|
5885
5922
|
return response.text().then((_responseText) => {
|
|
5886
5923
|
let result200 = null;
|
|
5887
5924
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5888
|
-
result200 =
|
|
5925
|
+
result200 = TrackingHistoryDto.fromJS(resultData200);
|
|
5889
5926
|
return result200;
|
|
5890
5927
|
});
|
|
5891
5928
|
}
|
|
@@ -18727,6 +18764,7 @@ export class UserDto {
|
|
|
18727
18764
|
this.id = _data["id"];
|
|
18728
18765
|
this.fullName = _data["fullName"];
|
|
18729
18766
|
this.upn = _data["upn"];
|
|
18767
|
+
this.email = _data["email"];
|
|
18730
18768
|
this.isBetaTester = _data["isBetaTester"];
|
|
18731
18769
|
}
|
|
18732
18770
|
}
|
|
@@ -18741,6 +18779,7 @@ export class UserDto {
|
|
|
18741
18779
|
data["id"] = this.id;
|
|
18742
18780
|
data["fullName"] = this.fullName;
|
|
18743
18781
|
data["upn"] = this.upn;
|
|
18782
|
+
data["email"] = this.email;
|
|
18744
18783
|
data["isBetaTester"] = this.isBetaTester;
|
|
18745
18784
|
return data;
|
|
18746
18785
|
}
|
|
@@ -21146,6 +21185,7 @@ export class TraceDto {
|
|
|
21146
21185
|
this.operations.push(WorkOrderTraceOperationDto.fromJS(item));
|
|
21147
21186
|
}
|
|
21148
21187
|
this.traceType = _data["traceType"];
|
|
21188
|
+
this.manualCompleted = _data["manualCompleted"];
|
|
21149
21189
|
if (Array.isArray(_data["materialLinesMissingTraceInformation"])) {
|
|
21150
21190
|
this.materialLinesMissingTraceInformation = [];
|
|
21151
21191
|
for (let item of _data["materialLinesMissingTraceInformation"])
|
|
@@ -21182,6 +21222,7 @@ export class TraceDto {
|
|
|
21182
21222
|
data["operations"].push(item.toJSON());
|
|
21183
21223
|
}
|
|
21184
21224
|
data["traceType"] = this.traceType;
|
|
21225
|
+
data["manualCompleted"] = this.manualCompleted;
|
|
21185
21226
|
if (Array.isArray(this.materialLinesMissingTraceInformation)) {
|
|
21186
21227
|
data["materialLinesMissingTraceInformation"] = [];
|
|
21187
21228
|
for (let item of this.materialLinesMissingTraceInformation)
|
|
@@ -21656,6 +21697,32 @@ export class UpdateTraceRequest {
|
|
|
21656
21697
|
return data;
|
|
21657
21698
|
}
|
|
21658
21699
|
}
|
|
21700
|
+
export class UpdateTraceManualCompletionRequest {
|
|
21701
|
+
constructor(data) {
|
|
21702
|
+
if (data) {
|
|
21703
|
+
for (var property in data) {
|
|
21704
|
+
if (data.hasOwnProperty(property))
|
|
21705
|
+
this[property] = data[property];
|
|
21706
|
+
}
|
|
21707
|
+
}
|
|
21708
|
+
}
|
|
21709
|
+
init(_data) {
|
|
21710
|
+
if (_data) {
|
|
21711
|
+
this.completed = _data["completed"];
|
|
21712
|
+
}
|
|
21713
|
+
}
|
|
21714
|
+
static fromJS(data) {
|
|
21715
|
+
data = typeof data === 'object' ? data : {};
|
|
21716
|
+
let result = new UpdateTraceManualCompletionRequest();
|
|
21717
|
+
result.init(data);
|
|
21718
|
+
return result;
|
|
21719
|
+
}
|
|
21720
|
+
toJSON(data) {
|
|
21721
|
+
data = typeof data === 'object' ? data : {};
|
|
21722
|
+
data["completed"] = this.completed;
|
|
21723
|
+
return data;
|
|
21724
|
+
}
|
|
21725
|
+
}
|
|
21659
21726
|
export class CustomerOrderTraceStatusDto {
|
|
21660
21727
|
constructor(data) {
|
|
21661
21728
|
if (data) {
|
|
@@ -24306,7 +24373,7 @@ export class LocationDto {
|
|
|
24306
24373
|
return data;
|
|
24307
24374
|
}
|
|
24308
24375
|
}
|
|
24309
|
-
export class
|
|
24376
|
+
export class OrderDto {
|
|
24310
24377
|
constructor(data) {
|
|
24311
24378
|
if (data) {
|
|
24312
24379
|
for (var property in data) {
|
|
@@ -24324,7 +24391,7 @@ export class LocateOrderDto {
|
|
|
24324
24391
|
}
|
|
24325
24392
|
static fromJS(data) {
|
|
24326
24393
|
data = typeof data === 'object' ? data : {};
|
|
24327
|
-
let result = new
|
|
24394
|
+
let result = new OrderDto();
|
|
24328
24395
|
result.init(data);
|
|
24329
24396
|
return result;
|
|
24330
24397
|
}
|
|
@@ -24351,11 +24418,10 @@ export class TrackingHistoryDto {
|
|
|
24351
24418
|
init(_data) {
|
|
24352
24419
|
if (_data) {
|
|
24353
24420
|
this.orderId = _data["orderId"];
|
|
24354
|
-
this.lastSetPallets = _data["lastSetPallets"];
|
|
24355
24421
|
if (Array.isArray(_data["trackingEvents"])) {
|
|
24356
24422
|
this.trackingEvents = [];
|
|
24357
24423
|
for (let item of _data["trackingEvents"])
|
|
24358
|
-
this.trackingEvents.push(
|
|
24424
|
+
this.trackingEvents.push(TrackingEventDto.fromJS(item));
|
|
24359
24425
|
}
|
|
24360
24426
|
}
|
|
24361
24427
|
}
|
|
@@ -24368,7 +24434,6 @@ export class TrackingHistoryDto {
|
|
|
24368
24434
|
toJSON(data) {
|
|
24369
24435
|
data = typeof data === 'object' ? data : {};
|
|
24370
24436
|
data["orderId"] = this.orderId;
|
|
24371
|
-
data["lastSetPallets"] = this.lastSetPallets;
|
|
24372
24437
|
if (Array.isArray(this.trackingEvents)) {
|
|
24373
24438
|
data["trackingEvents"] = [];
|
|
24374
24439
|
for (let item of this.trackingEvents)
|
|
@@ -24377,7 +24442,7 @@ export class TrackingHistoryDto {
|
|
|
24377
24442
|
return data;
|
|
24378
24443
|
}
|
|
24379
24444
|
}
|
|
24380
|
-
export class
|
|
24445
|
+
export class TrackingEventDto {
|
|
24381
24446
|
constructor(data) {
|
|
24382
24447
|
if (data) {
|
|
24383
24448
|
for (var property in data) {
|
|
@@ -24385,6 +24450,9 @@ export class TrackingEventsDto {
|
|
|
24385
24450
|
this[property] = data[property];
|
|
24386
24451
|
}
|
|
24387
24452
|
}
|
|
24453
|
+
if (!data) {
|
|
24454
|
+
this.location = new LocationDto();
|
|
24455
|
+
}
|
|
24388
24456
|
}
|
|
24389
24457
|
init(_data) {
|
|
24390
24458
|
if (_data) {
|
|
@@ -24393,15 +24461,15 @@ export class TrackingEventsDto {
|
|
|
24393
24461
|
this.createdBy = _data["createdBy"];
|
|
24394
24462
|
this.updated = _data["updated"] ? new Date(_data["updated"].toString()) : undefined;
|
|
24395
24463
|
this.updatedBy = _data["updatedBy"];
|
|
24396
|
-
this.
|
|
24464
|
+
this.location = _data["location"] ? LocationDto.fromJS(_data["location"]) : new LocationDto();
|
|
24397
24465
|
this.active = _data["active"];
|
|
24398
|
-
this.
|
|
24466
|
+
this.comments = _data["comments"];
|
|
24399
24467
|
this.pallets = _data["pallets"];
|
|
24400
24468
|
}
|
|
24401
24469
|
}
|
|
24402
24470
|
static fromJS(data) {
|
|
24403
24471
|
data = typeof data === 'object' ? data : {};
|
|
24404
|
-
let result = new
|
|
24472
|
+
let result = new TrackingEventDto();
|
|
24405
24473
|
result.init(data);
|
|
24406
24474
|
return result;
|
|
24407
24475
|
}
|
|
@@ -24412,9 +24480,9 @@ export class TrackingEventsDto {
|
|
|
24412
24480
|
data["createdBy"] = this.createdBy;
|
|
24413
24481
|
data["updated"] = this.updated ? this.updated.toISOString() : undefined;
|
|
24414
24482
|
data["updatedBy"] = this.updatedBy;
|
|
24415
|
-
data["
|
|
24483
|
+
data["location"] = this.location ? this.location.toJSON() : undefined;
|
|
24416
24484
|
data["active"] = this.active;
|
|
24417
|
-
data["
|
|
24485
|
+
data["comments"] = this.comments;
|
|
24418
24486
|
data["pallets"] = this.pallets;
|
|
24419
24487
|
return data;
|
|
24420
24488
|
}
|
|
@@ -24430,9 +24498,8 @@ export class TrackingUpdateDto {
|
|
|
24430
24498
|
}
|
|
24431
24499
|
init(_data) {
|
|
24432
24500
|
if (_data) {
|
|
24433
|
-
this.
|
|
24434
|
-
this.
|
|
24435
|
-
this.active = _data["active"];
|
|
24501
|
+
this.locationId = _data["locationId"];
|
|
24502
|
+
this.comments = _data["comments"];
|
|
24436
24503
|
this.pallets = _data["pallets"];
|
|
24437
24504
|
}
|
|
24438
24505
|
}
|
|
@@ -24444,9 +24511,8 @@ export class TrackingUpdateDto {
|
|
|
24444
24511
|
}
|
|
24445
24512
|
toJSON(data) {
|
|
24446
24513
|
data = typeof data === 'object' ? data : {};
|
|
24447
|
-
data["
|
|
24448
|
-
data["
|
|
24449
|
-
data["active"] = this.active;
|
|
24514
|
+
data["locationId"] = this.locationId;
|
|
24515
|
+
data["comments"] = this.comments;
|
|
24450
24516
|
data["pallets"] = this.pallets;
|
|
24451
24517
|
return data;
|
|
24452
24518
|
}
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -3328,6 +3328,8 @@ export interface ITraceClient {
|
|
|
3328
3328
|
|
|
3329
3329
|
addSequenceToTraceList(id: string): Promise<FileResponse>;
|
|
3330
3330
|
|
|
3331
|
+
setTraceManualCompleted(id: string, request: UpdateTraceManualCompletionRequest): Promise<void>;
|
|
3332
|
+
|
|
3331
3333
|
listCustomerOrderLineTraces(customerOrder: string | undefined, customerOrderLine: number | undefined): Promise<CustomerOrderLineTraceItemDto[]>;
|
|
3332
3334
|
|
|
3333
3335
|
getCustomerOrderTraceStatus(id: string, line: number | null | undefined): Promise<CustomerOrderTraceStatusDto>;
|
|
@@ -3516,6 +3518,45 @@ export class TraceClient extends AuthorizedApiBase implements ITraceClient {
|
|
|
3516
3518
|
return Promise.resolve<FileResponse>(null as any);
|
|
3517
3519
|
}
|
|
3518
3520
|
|
|
3521
|
+
setTraceManualCompleted(id: string, request: UpdateTraceManualCompletionRequest): Promise<void> {
|
|
3522
|
+
let url_ = this.baseUrl + "/trace/{id}/manualcompleted";
|
|
3523
|
+
if (id === undefined || id === null)
|
|
3524
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
3525
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3526
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
3527
|
+
|
|
3528
|
+
const content_ = JSON.stringify(request);
|
|
3529
|
+
|
|
3530
|
+
let options_: RequestInit = {
|
|
3531
|
+
body: content_,
|
|
3532
|
+
method: "PUT",
|
|
3533
|
+
headers: {
|
|
3534
|
+
"Content-Type": "application/json",
|
|
3535
|
+
}
|
|
3536
|
+
};
|
|
3537
|
+
|
|
3538
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
3539
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
3540
|
+
}).then((_response: Response) => {
|
|
3541
|
+
return this.processSetTraceManualCompleted(_response);
|
|
3542
|
+
});
|
|
3543
|
+
}
|
|
3544
|
+
|
|
3545
|
+
protected processSetTraceManualCompleted(response: Response): Promise<void> {
|
|
3546
|
+
const status = response.status;
|
|
3547
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
3548
|
+
if (status === 204) {
|
|
3549
|
+
return response.text().then((_responseText) => {
|
|
3550
|
+
return;
|
|
3551
|
+
});
|
|
3552
|
+
} else if (status !== 200 && status !== 204) {
|
|
3553
|
+
return response.text().then((_responseText) => {
|
|
3554
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
3555
|
+
});
|
|
3556
|
+
}
|
|
3557
|
+
return Promise.resolve<void>(null as any);
|
|
3558
|
+
}
|
|
3559
|
+
|
|
3519
3560
|
listCustomerOrderLineTraces(customerOrder: string | undefined, customerOrderLine: number | undefined): Promise<CustomerOrderLineTraceItemDto[]> {
|
|
3520
3561
|
let url_ = this.baseUrl + "/trace/customerorderlineitems?";
|
|
3521
3562
|
if (customerOrder === null)
|
|
@@ -6108,7 +6149,7 @@ export class LocateLocationsClient extends AuthorizedApiBase implements ILocateL
|
|
|
6108
6149
|
|
|
6109
6150
|
export interface ILocateOrdersClient {
|
|
6110
6151
|
|
|
6111
|
-
searchOrders(input: string | null | undefined
|
|
6152
|
+
searchOrders(input: string | null | undefined): Promise<OrderDto[]>;
|
|
6112
6153
|
}
|
|
6113
6154
|
|
|
6114
6155
|
export class LocateOrdersClient extends AuthorizedApiBase implements ILocateOrdersClient {
|
|
@@ -6122,12 +6163,10 @@ export class LocateOrdersClient extends AuthorizedApiBase implements ILocateOrde
|
|
|
6122
6163
|
this.baseUrl = baseUrl ?? "";
|
|
6123
6164
|
}
|
|
6124
6165
|
|
|
6125
|
-
searchOrders(input: string | null | undefined
|
|
6166
|
+
searchOrders(input: string | null | undefined): Promise<OrderDto[]> {
|
|
6126
6167
|
let url_ = this.baseUrl + "/locate/orders/search?";
|
|
6127
6168
|
if (input !== undefined && input !== null)
|
|
6128
6169
|
url_ += "input=" + encodeURIComponent("" + input) + "&";
|
|
6129
|
-
if (orderId !== undefined && orderId !== null)
|
|
6130
|
-
url_ += "orderId=" + encodeURIComponent("" + orderId) + "&";
|
|
6131
6170
|
url_ = url_.replace(/[?&]$/, "");
|
|
6132
6171
|
|
|
6133
6172
|
let options_: RequestInit = {
|
|
@@ -6144,7 +6183,7 @@ export class LocateOrdersClient extends AuthorizedApiBase implements ILocateOrde
|
|
|
6144
6183
|
});
|
|
6145
6184
|
}
|
|
6146
6185
|
|
|
6147
|
-
protected processSearchOrders(response: Response): Promise<
|
|
6186
|
+
protected processSearchOrders(response: Response): Promise<OrderDto[]> {
|
|
6148
6187
|
const status = response.status;
|
|
6149
6188
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
6150
6189
|
if (status === 200) {
|
|
@@ -6154,7 +6193,7 @@ export class LocateOrdersClient extends AuthorizedApiBase implements ILocateOrde
|
|
|
6154
6193
|
if (Array.isArray(resultData200)) {
|
|
6155
6194
|
result200 = [] as any;
|
|
6156
6195
|
for (let item of resultData200)
|
|
6157
|
-
result200!.push(
|
|
6196
|
+
result200!.push(OrderDto.fromJS(item));
|
|
6158
6197
|
}
|
|
6159
6198
|
return result200;
|
|
6160
6199
|
});
|
|
@@ -6163,7 +6202,7 @@ export class LocateOrdersClient extends AuthorizedApiBase implements ILocateOrde
|
|
|
6163
6202
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6164
6203
|
});
|
|
6165
6204
|
}
|
|
6166
|
-
return Promise.resolve<
|
|
6205
|
+
return Promise.resolve<OrderDto[]>(null as any);
|
|
6167
6206
|
}
|
|
6168
6207
|
}
|
|
6169
6208
|
|
|
@@ -6171,9 +6210,9 @@ export interface ILocateTrackingClient {
|
|
|
6171
6210
|
|
|
6172
6211
|
listTrackingHistory(orderId: string): Promise<TrackingHistoryDto>;
|
|
6173
6212
|
|
|
6174
|
-
createTrackingEvent(orderId: string, locateTrackingUpdate: TrackingUpdateDto): Promise<
|
|
6213
|
+
createTrackingEvent(orderId: string, locateTrackingUpdate: TrackingUpdateDto): Promise<TrackingHistoryDto>;
|
|
6175
6214
|
|
|
6176
|
-
updateTrackingEvent(orderId: string, trackingEventId: number, locateTrackingUpdate: TrackingUpdateDto): Promise<
|
|
6215
|
+
updateTrackingEvent(orderId: string, trackingEventId: number, locateTrackingUpdate: TrackingUpdateDto): Promise<TrackingHistoryDto>;
|
|
6177
6216
|
|
|
6178
6217
|
createLabel(orderId: string, palletCount: number | undefined): Promise<FileResponse>;
|
|
6179
6218
|
}
|
|
@@ -6228,7 +6267,7 @@ export class LocateTrackingClient extends AuthorizedApiBase implements ILocateTr
|
|
|
6228
6267
|
return Promise.resolve<TrackingHistoryDto>(null as any);
|
|
6229
6268
|
}
|
|
6230
6269
|
|
|
6231
|
-
createTrackingEvent(orderId: string, locateTrackingUpdate: TrackingUpdateDto): Promise<
|
|
6270
|
+
createTrackingEvent(orderId: string, locateTrackingUpdate: TrackingUpdateDto): Promise<TrackingHistoryDto> {
|
|
6232
6271
|
let url_ = this.baseUrl + "/locate/tracking/{orderId}";
|
|
6233
6272
|
if (orderId === undefined || orderId === null)
|
|
6234
6273
|
throw new Error("The parameter 'orderId' must be defined.");
|
|
@@ -6253,14 +6292,14 @@ export class LocateTrackingClient extends AuthorizedApiBase implements ILocateTr
|
|
|
6253
6292
|
});
|
|
6254
6293
|
}
|
|
6255
6294
|
|
|
6256
|
-
protected processCreateTrackingEvent(response: Response): Promise<
|
|
6295
|
+
protected processCreateTrackingEvent(response: Response): Promise<TrackingHistoryDto> {
|
|
6257
6296
|
const status = response.status;
|
|
6258
6297
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
6259
6298
|
if (status === 200) {
|
|
6260
6299
|
return response.text().then((_responseText) => {
|
|
6261
6300
|
let result200: any = null;
|
|
6262
6301
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6263
|
-
result200 =
|
|
6302
|
+
result200 = TrackingHistoryDto.fromJS(resultData200);
|
|
6264
6303
|
return result200;
|
|
6265
6304
|
});
|
|
6266
6305
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -6268,10 +6307,10 @@ export class LocateTrackingClient extends AuthorizedApiBase implements ILocateTr
|
|
|
6268
6307
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6269
6308
|
});
|
|
6270
6309
|
}
|
|
6271
|
-
return Promise.resolve<
|
|
6310
|
+
return Promise.resolve<TrackingHistoryDto>(null as any);
|
|
6272
6311
|
}
|
|
6273
6312
|
|
|
6274
|
-
updateTrackingEvent(orderId: string, trackingEventId: number, locateTrackingUpdate: TrackingUpdateDto): Promise<
|
|
6313
|
+
updateTrackingEvent(orderId: string, trackingEventId: number, locateTrackingUpdate: TrackingUpdateDto): Promise<TrackingHistoryDto> {
|
|
6275
6314
|
let url_ = this.baseUrl + "/locate/tracking/{orderId}/{trackingEventId}";
|
|
6276
6315
|
if (orderId === undefined || orderId === null)
|
|
6277
6316
|
throw new Error("The parameter 'orderId' must be defined.");
|
|
@@ -6299,14 +6338,14 @@ export class LocateTrackingClient extends AuthorizedApiBase implements ILocateTr
|
|
|
6299
6338
|
});
|
|
6300
6339
|
}
|
|
6301
6340
|
|
|
6302
|
-
protected processUpdateTrackingEvent(response: Response): Promise<
|
|
6341
|
+
protected processUpdateTrackingEvent(response: Response): Promise<TrackingHistoryDto> {
|
|
6303
6342
|
const status = response.status;
|
|
6304
6343
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
6305
6344
|
if (status === 200) {
|
|
6306
6345
|
return response.text().then((_responseText) => {
|
|
6307
6346
|
let result200: any = null;
|
|
6308
6347
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6309
|
-
result200 =
|
|
6348
|
+
result200 = TrackingHistoryDto.fromJS(resultData200);
|
|
6310
6349
|
return result200;
|
|
6311
6350
|
});
|
|
6312
6351
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -6314,7 +6353,7 @@ export class LocateTrackingClient extends AuthorizedApiBase implements ILocateTr
|
|
|
6314
6353
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6315
6354
|
});
|
|
6316
6355
|
}
|
|
6317
|
-
return Promise.resolve<
|
|
6356
|
+
return Promise.resolve<TrackingHistoryDto>(null as any);
|
|
6318
6357
|
}
|
|
6319
6358
|
|
|
6320
6359
|
createLabel(orderId: string, palletCount: number | undefined): Promise<FileResponse> {
|
|
@@ -20279,6 +20318,7 @@ export class UserDto implements IUserDto {
|
|
|
20279
20318
|
id?: string | null;
|
|
20280
20319
|
fullName?: string | null;
|
|
20281
20320
|
upn?: string | null;
|
|
20321
|
+
email?: string | null;
|
|
20282
20322
|
isBetaTester?: boolean | null;
|
|
20283
20323
|
|
|
20284
20324
|
constructor(data?: IUserDto) {
|
|
@@ -20295,6 +20335,7 @@ export class UserDto implements IUserDto {
|
|
|
20295
20335
|
this.id = _data["id"];
|
|
20296
20336
|
this.fullName = _data["fullName"];
|
|
20297
20337
|
this.upn = _data["upn"];
|
|
20338
|
+
this.email = _data["email"];
|
|
20298
20339
|
this.isBetaTester = _data["isBetaTester"];
|
|
20299
20340
|
}
|
|
20300
20341
|
}
|
|
@@ -20311,6 +20352,7 @@ export class UserDto implements IUserDto {
|
|
|
20311
20352
|
data["id"] = this.id;
|
|
20312
20353
|
data["fullName"] = this.fullName;
|
|
20313
20354
|
data["upn"] = this.upn;
|
|
20355
|
+
data["email"] = this.email;
|
|
20314
20356
|
data["isBetaTester"] = this.isBetaTester;
|
|
20315
20357
|
return data;
|
|
20316
20358
|
}
|
|
@@ -20320,6 +20362,7 @@ export interface IUserDto {
|
|
|
20320
20362
|
id?: string | null;
|
|
20321
20363
|
fullName?: string | null;
|
|
20322
20364
|
upn?: string | null;
|
|
20365
|
+
email?: string | null;
|
|
20323
20366
|
isBetaTester?: boolean | null;
|
|
20324
20367
|
}
|
|
20325
20368
|
|
|
@@ -23808,6 +23851,7 @@ export class TraceDto implements ITraceDto {
|
|
|
23808
23851
|
overrideMaterialDetails!: TraceMaterialDetailDto[];
|
|
23809
23852
|
operations!: WorkOrderTraceOperationDto[];
|
|
23810
23853
|
traceType!: TraceType;
|
|
23854
|
+
manualCompleted!: boolean;
|
|
23811
23855
|
materialLinesMissingTraceInformation!: number[];
|
|
23812
23856
|
|
|
23813
23857
|
constructor(data?: ITraceDto) {
|
|
@@ -23850,6 +23894,7 @@ export class TraceDto implements ITraceDto {
|
|
|
23850
23894
|
this.operations!.push(WorkOrderTraceOperationDto.fromJS(item));
|
|
23851
23895
|
}
|
|
23852
23896
|
this.traceType = _data["traceType"];
|
|
23897
|
+
this.manualCompleted = _data["manualCompleted"];
|
|
23853
23898
|
if (Array.isArray(_data["materialLinesMissingTraceInformation"])) {
|
|
23854
23899
|
this.materialLinesMissingTraceInformation = [] as any;
|
|
23855
23900
|
for (let item of _data["materialLinesMissingTraceInformation"])
|
|
@@ -23888,6 +23933,7 @@ export class TraceDto implements ITraceDto {
|
|
|
23888
23933
|
data["operations"].push(item.toJSON());
|
|
23889
23934
|
}
|
|
23890
23935
|
data["traceType"] = this.traceType;
|
|
23936
|
+
data["manualCompleted"] = this.manualCompleted;
|
|
23891
23937
|
if (Array.isArray(this.materialLinesMissingTraceInformation)) {
|
|
23892
23938
|
data["materialLinesMissingTraceInformation"] = [];
|
|
23893
23939
|
for (let item of this.materialLinesMissingTraceInformation)
|
|
@@ -23907,6 +23953,7 @@ export interface ITraceDto {
|
|
|
23907
23953
|
overrideMaterialDetails: TraceMaterialDetailDto[];
|
|
23908
23954
|
operations: WorkOrderTraceOperationDto[];
|
|
23909
23955
|
traceType: TraceType;
|
|
23956
|
+
manualCompleted: boolean;
|
|
23910
23957
|
materialLinesMissingTraceInformation: number[];
|
|
23911
23958
|
}
|
|
23912
23959
|
|
|
@@ -24616,6 +24663,42 @@ export interface IUpdateTraceRequest {
|
|
|
24616
24663
|
items: TraceItemDto[];
|
|
24617
24664
|
}
|
|
24618
24665
|
|
|
24666
|
+
export class UpdateTraceManualCompletionRequest implements IUpdateTraceManualCompletionRequest {
|
|
24667
|
+
completed!: boolean;
|
|
24668
|
+
|
|
24669
|
+
constructor(data?: IUpdateTraceManualCompletionRequest) {
|
|
24670
|
+
if (data) {
|
|
24671
|
+
for (var property in data) {
|
|
24672
|
+
if (data.hasOwnProperty(property))
|
|
24673
|
+
(<any>this)[property] = (<any>data)[property];
|
|
24674
|
+
}
|
|
24675
|
+
}
|
|
24676
|
+
}
|
|
24677
|
+
|
|
24678
|
+
init(_data?: any) {
|
|
24679
|
+
if (_data) {
|
|
24680
|
+
this.completed = _data["completed"];
|
|
24681
|
+
}
|
|
24682
|
+
}
|
|
24683
|
+
|
|
24684
|
+
static fromJS(data: any): UpdateTraceManualCompletionRequest {
|
|
24685
|
+
data = typeof data === 'object' ? data : {};
|
|
24686
|
+
let result = new UpdateTraceManualCompletionRequest();
|
|
24687
|
+
result.init(data);
|
|
24688
|
+
return result;
|
|
24689
|
+
}
|
|
24690
|
+
|
|
24691
|
+
toJSON(data?: any) {
|
|
24692
|
+
data = typeof data === 'object' ? data : {};
|
|
24693
|
+
data["completed"] = this.completed;
|
|
24694
|
+
return data;
|
|
24695
|
+
}
|
|
24696
|
+
}
|
|
24697
|
+
|
|
24698
|
+
export interface IUpdateTraceManualCompletionRequest {
|
|
24699
|
+
completed: boolean;
|
|
24700
|
+
}
|
|
24701
|
+
|
|
24619
24702
|
export class CustomerOrderTraceStatusDto implements ICustomerOrderTraceStatusDto {
|
|
24620
24703
|
lines!: CustomerOrderLineTraceStatusDto[];
|
|
24621
24704
|
|
|
@@ -28582,12 +28665,12 @@ export interface ILocationDto {
|
|
|
28582
28665
|
|
|
28583
28666
|
export type LocationKindDto = "Warehouse" | "Zone" | "Location";
|
|
28584
28667
|
|
|
28585
|
-
export class
|
|
28668
|
+
export class OrderDto implements IOrderDto {
|
|
28586
28669
|
orderId!: string;
|
|
28587
28670
|
partName?: string | null;
|
|
28588
28671
|
partNumber?: string | null;
|
|
28589
28672
|
|
|
28590
|
-
constructor(data?:
|
|
28673
|
+
constructor(data?: IOrderDto) {
|
|
28591
28674
|
if (data) {
|
|
28592
28675
|
for (var property in data) {
|
|
28593
28676
|
if (data.hasOwnProperty(property))
|
|
@@ -28604,9 +28687,9 @@ export class LocateOrderDto implements ILocateOrderDto {
|
|
|
28604
28687
|
}
|
|
28605
28688
|
}
|
|
28606
28689
|
|
|
28607
|
-
static fromJS(data: any):
|
|
28690
|
+
static fromJS(data: any): OrderDto {
|
|
28608
28691
|
data = typeof data === 'object' ? data : {};
|
|
28609
|
-
let result = new
|
|
28692
|
+
let result = new OrderDto();
|
|
28610
28693
|
result.init(data);
|
|
28611
28694
|
return result;
|
|
28612
28695
|
}
|
|
@@ -28620,7 +28703,7 @@ export class LocateOrderDto implements ILocateOrderDto {
|
|
|
28620
28703
|
}
|
|
28621
28704
|
}
|
|
28622
28705
|
|
|
28623
|
-
export interface
|
|
28706
|
+
export interface IOrderDto {
|
|
28624
28707
|
orderId: string;
|
|
28625
28708
|
partName?: string | null;
|
|
28626
28709
|
partNumber?: string | null;
|
|
@@ -28628,8 +28711,7 @@ export interface ILocateOrderDto {
|
|
|
28628
28711
|
|
|
28629
28712
|
export class TrackingHistoryDto implements ITrackingHistoryDto {
|
|
28630
28713
|
orderId!: string;
|
|
28631
|
-
|
|
28632
|
-
trackingEvents!: TrackingEventsDto[];
|
|
28714
|
+
trackingEvents!: TrackingEventDto[];
|
|
28633
28715
|
|
|
28634
28716
|
constructor(data?: ITrackingHistoryDto) {
|
|
28635
28717
|
if (data) {
|
|
@@ -28646,11 +28728,10 @@ export class TrackingHistoryDto implements ITrackingHistoryDto {
|
|
|
28646
28728
|
init(_data?: any) {
|
|
28647
28729
|
if (_data) {
|
|
28648
28730
|
this.orderId = _data["orderId"];
|
|
28649
|
-
this.lastSetPallets = _data["lastSetPallets"];
|
|
28650
28731
|
if (Array.isArray(_data["trackingEvents"])) {
|
|
28651
28732
|
this.trackingEvents = [] as any;
|
|
28652
28733
|
for (let item of _data["trackingEvents"])
|
|
28653
|
-
this.trackingEvents!.push(
|
|
28734
|
+
this.trackingEvents!.push(TrackingEventDto.fromJS(item));
|
|
28654
28735
|
}
|
|
28655
28736
|
}
|
|
28656
28737
|
}
|
|
@@ -28665,7 +28746,6 @@ export class TrackingHistoryDto implements ITrackingHistoryDto {
|
|
|
28665
28746
|
toJSON(data?: any) {
|
|
28666
28747
|
data = typeof data === 'object' ? data : {};
|
|
28667
28748
|
data["orderId"] = this.orderId;
|
|
28668
|
-
data["lastSetPallets"] = this.lastSetPallets;
|
|
28669
28749
|
if (Array.isArray(this.trackingEvents)) {
|
|
28670
28750
|
data["trackingEvents"] = [];
|
|
28671
28751
|
for (let item of this.trackingEvents)
|
|
@@ -28677,28 +28757,30 @@ export class TrackingHistoryDto implements ITrackingHistoryDto {
|
|
|
28677
28757
|
|
|
28678
28758
|
export interface ITrackingHistoryDto {
|
|
28679
28759
|
orderId: string;
|
|
28680
|
-
|
|
28681
|
-
trackingEvents: TrackingEventsDto[];
|
|
28760
|
+
trackingEvents: TrackingEventDto[];
|
|
28682
28761
|
}
|
|
28683
28762
|
|
|
28684
|
-
export class
|
|
28763
|
+
export class TrackingEventDto implements ITrackingEventDto {
|
|
28685
28764
|
id!: number;
|
|
28686
28765
|
created!: Date;
|
|
28687
28766
|
createdBy!: string;
|
|
28688
28767
|
updated!: Date;
|
|
28689
28768
|
updatedBy!: string;
|
|
28690
|
-
|
|
28769
|
+
location!: LocationDto;
|
|
28691
28770
|
active!: boolean;
|
|
28692
|
-
|
|
28771
|
+
comments?: string | null;
|
|
28693
28772
|
pallets?: number | null;
|
|
28694
28773
|
|
|
28695
|
-
constructor(data?:
|
|
28774
|
+
constructor(data?: ITrackingEventDto) {
|
|
28696
28775
|
if (data) {
|
|
28697
28776
|
for (var property in data) {
|
|
28698
28777
|
if (data.hasOwnProperty(property))
|
|
28699
28778
|
(<any>this)[property] = (<any>data)[property];
|
|
28700
28779
|
}
|
|
28701
28780
|
}
|
|
28781
|
+
if (!data) {
|
|
28782
|
+
this.location = new LocationDto();
|
|
28783
|
+
}
|
|
28702
28784
|
}
|
|
28703
28785
|
|
|
28704
28786
|
init(_data?: any) {
|
|
@@ -28708,16 +28790,16 @@ export class TrackingEventsDto implements ITrackingEventsDto {
|
|
|
28708
28790
|
this.createdBy = _data["createdBy"];
|
|
28709
28791
|
this.updated = _data["updated"] ? new Date(_data["updated"].toString()) : <any>undefined;
|
|
28710
28792
|
this.updatedBy = _data["updatedBy"];
|
|
28711
|
-
this.
|
|
28793
|
+
this.location = _data["location"] ? LocationDto.fromJS(_data["location"]) : new LocationDto();
|
|
28712
28794
|
this.active = _data["active"];
|
|
28713
|
-
this.
|
|
28795
|
+
this.comments = _data["comments"];
|
|
28714
28796
|
this.pallets = _data["pallets"];
|
|
28715
28797
|
}
|
|
28716
28798
|
}
|
|
28717
28799
|
|
|
28718
|
-
static fromJS(data: any):
|
|
28800
|
+
static fromJS(data: any): TrackingEventDto {
|
|
28719
28801
|
data = typeof data === 'object' ? data : {};
|
|
28720
|
-
let result = new
|
|
28802
|
+
let result = new TrackingEventDto();
|
|
28721
28803
|
result.init(data);
|
|
28722
28804
|
return result;
|
|
28723
28805
|
}
|
|
@@ -28729,30 +28811,29 @@ export class TrackingEventsDto implements ITrackingEventsDto {
|
|
|
28729
28811
|
data["createdBy"] = this.createdBy;
|
|
28730
28812
|
data["updated"] = this.updated ? this.updated.toISOString() : <any>undefined;
|
|
28731
28813
|
data["updatedBy"] = this.updatedBy;
|
|
28732
|
-
data["
|
|
28814
|
+
data["location"] = this.location ? this.location.toJSON() : <any>undefined;
|
|
28733
28815
|
data["active"] = this.active;
|
|
28734
|
-
data["
|
|
28816
|
+
data["comments"] = this.comments;
|
|
28735
28817
|
data["pallets"] = this.pallets;
|
|
28736
28818
|
return data;
|
|
28737
28819
|
}
|
|
28738
28820
|
}
|
|
28739
28821
|
|
|
28740
|
-
export interface
|
|
28822
|
+
export interface ITrackingEventDto {
|
|
28741
28823
|
id: number;
|
|
28742
28824
|
created: Date;
|
|
28743
28825
|
createdBy: string;
|
|
28744
28826
|
updated: Date;
|
|
28745
28827
|
updatedBy: string;
|
|
28746
|
-
|
|
28828
|
+
location: LocationDto;
|
|
28747
28829
|
active: boolean;
|
|
28748
|
-
|
|
28830
|
+
comments?: string | null;
|
|
28749
28831
|
pallets?: number | null;
|
|
28750
28832
|
}
|
|
28751
28833
|
|
|
28752
28834
|
export class TrackingUpdateDto implements ITrackingUpdateDto {
|
|
28753
|
-
|
|
28754
|
-
|
|
28755
|
-
active?: boolean | null;
|
|
28835
|
+
locationId!: string;
|
|
28836
|
+
comments?: string | null;
|
|
28756
28837
|
pallets?: number | null;
|
|
28757
28838
|
|
|
28758
28839
|
constructor(data?: ITrackingUpdateDto) {
|
|
@@ -28766,9 +28847,8 @@ export class TrackingUpdateDto implements ITrackingUpdateDto {
|
|
|
28766
28847
|
|
|
28767
28848
|
init(_data?: any) {
|
|
28768
28849
|
if (_data) {
|
|
28769
|
-
this.
|
|
28770
|
-
this.
|
|
28771
|
-
this.active = _data["active"];
|
|
28850
|
+
this.locationId = _data["locationId"];
|
|
28851
|
+
this.comments = _data["comments"];
|
|
28772
28852
|
this.pallets = _data["pallets"];
|
|
28773
28853
|
}
|
|
28774
28854
|
}
|
|
@@ -28782,18 +28862,16 @@ export class TrackingUpdateDto implements ITrackingUpdateDto {
|
|
|
28782
28862
|
|
|
28783
28863
|
toJSON(data?: any) {
|
|
28784
28864
|
data = typeof data === 'object' ? data : {};
|
|
28785
|
-
data["
|
|
28786
|
-
data["
|
|
28787
|
-
data["active"] = this.active;
|
|
28865
|
+
data["locationId"] = this.locationId;
|
|
28866
|
+
data["comments"] = this.comments;
|
|
28788
28867
|
data["pallets"] = this.pallets;
|
|
28789
28868
|
return data;
|
|
28790
28869
|
}
|
|
28791
28870
|
}
|
|
28792
28871
|
|
|
28793
28872
|
export interface ITrackingUpdateDto {
|
|
28794
|
-
|
|
28795
|
-
|
|
28796
|
-
active?: boolean | null;
|
|
28873
|
+
locationId: string;
|
|
28874
|
+
comments?: string | null;
|
|
28797
28875
|
pallets?: number | null;
|
|
28798
28876
|
}
|
|
28799
28877
|
|