@ignos/api-client 20240503.0.9201 → 20240508.0.9227
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 +39 -28
- package/lib/ignosportal-api.js +87 -21
- package/package.json +1 -1
- package/src/ignosportal-api.ts +126 -50
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>;
|
|
@@ -746,8 +749,8 @@ export declare class LocateOrdersClient extends AuthorizedApiBase implements ILo
|
|
|
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
|
}
|
|
@@ -3667,6 +3670,7 @@ export declare class TraceDto implements ITraceDto {
|
|
|
3667
3670
|
overrideMaterialDetails: TraceMaterialDetailDto[];
|
|
3668
3671
|
operations: WorkOrderTraceOperationDto[];
|
|
3669
3672
|
traceType: TraceType;
|
|
3673
|
+
manualCompleted: boolean;
|
|
3670
3674
|
materialLinesMissingTraceInformation: number[];
|
|
3671
3675
|
constructor(data?: ITraceDto);
|
|
3672
3676
|
init(_data?: any): void;
|
|
@@ -3683,6 +3687,7 @@ export interface ITraceDto {
|
|
|
3683
3687
|
overrideMaterialDetails: TraceMaterialDetailDto[];
|
|
3684
3688
|
operations: WorkOrderTraceOperationDto[];
|
|
3685
3689
|
traceType: TraceType;
|
|
3690
|
+
manualCompleted: boolean;
|
|
3686
3691
|
materialLinesMissingTraceInformation: number[];
|
|
3687
3692
|
}
|
|
3688
3693
|
export declare class PartDto implements IPartDto {
|
|
@@ -3920,6 +3925,16 @@ export declare class UpdateTraceRequest implements IUpdateTraceRequest {
|
|
|
3920
3925
|
export interface IUpdateTraceRequest {
|
|
3921
3926
|
items: TraceItemDto[];
|
|
3922
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
|
+
}
|
|
3923
3938
|
export declare class CustomerOrderTraceStatusDto implements ICustomerOrderTraceStatusDto {
|
|
3924
3939
|
lines: CustomerOrderLineTraceStatusDto[];
|
|
3925
3940
|
constructor(data?: ICustomerOrderTraceStatusDto);
|
|
@@ -5242,8 +5257,7 @@ export interface IOrderDto {
|
|
|
5242
5257
|
}
|
|
5243
5258
|
export declare class TrackingHistoryDto implements ITrackingHistoryDto {
|
|
5244
5259
|
orderId: string;
|
|
5245
|
-
|
|
5246
|
-
trackingEvents: TrackingEventsDto[];
|
|
5260
|
+
trackingEvents: TrackingEventDto[];
|
|
5247
5261
|
constructor(data?: ITrackingHistoryDto);
|
|
5248
5262
|
init(_data?: any): void;
|
|
5249
5263
|
static fromJS(data: any): TrackingHistoryDto;
|
|
@@ -5251,39 +5265,37 @@ export declare class TrackingHistoryDto implements ITrackingHistoryDto {
|
|
|
5251
5265
|
}
|
|
5252
5266
|
export interface ITrackingHistoryDto {
|
|
5253
5267
|
orderId: string;
|
|
5254
|
-
|
|
5255
|
-
trackingEvents: TrackingEventsDto[];
|
|
5268
|
+
trackingEvents: TrackingEventDto[];
|
|
5256
5269
|
}
|
|
5257
|
-
export declare class
|
|
5270
|
+
export declare class TrackingEventDto implements ITrackingEventDto {
|
|
5258
5271
|
id: number;
|
|
5259
5272
|
created: Date;
|
|
5260
5273
|
createdBy: string;
|
|
5261
5274
|
updated: Date;
|
|
5262
5275
|
updatedBy: string;
|
|
5263
|
-
|
|
5276
|
+
location: LocationDto;
|
|
5264
5277
|
active: boolean;
|
|
5265
|
-
|
|
5278
|
+
comments?: string | null;
|
|
5266
5279
|
pallets?: number | null;
|
|
5267
|
-
constructor(data?:
|
|
5280
|
+
constructor(data?: ITrackingEventDto);
|
|
5268
5281
|
init(_data?: any): void;
|
|
5269
|
-
static fromJS(data: any):
|
|
5282
|
+
static fromJS(data: any): TrackingEventDto;
|
|
5270
5283
|
toJSON(data?: any): any;
|
|
5271
5284
|
}
|
|
5272
|
-
export interface
|
|
5285
|
+
export interface ITrackingEventDto {
|
|
5273
5286
|
id: number;
|
|
5274
5287
|
created: Date;
|
|
5275
5288
|
createdBy: string;
|
|
5276
5289
|
updated: Date;
|
|
5277
5290
|
updatedBy: string;
|
|
5278
|
-
|
|
5291
|
+
location: LocationDto;
|
|
5279
5292
|
active: boolean;
|
|
5280
|
-
|
|
5293
|
+
comments?: string | null;
|
|
5281
5294
|
pallets?: number | null;
|
|
5282
5295
|
}
|
|
5283
5296
|
export declare class TrackingUpdateDto implements ITrackingUpdateDto {
|
|
5284
|
-
|
|
5285
|
-
|
|
5286
|
-
active?: boolean | null;
|
|
5297
|
+
locationId: string;
|
|
5298
|
+
comments?: string | null;
|
|
5287
5299
|
pallets?: number | null;
|
|
5288
5300
|
constructor(data?: ITrackingUpdateDto);
|
|
5289
5301
|
init(_data?: any): void;
|
|
@@ -5291,9 +5303,8 @@ export declare class TrackingUpdateDto implements ITrackingUpdateDto {
|
|
|
5291
5303
|
toJSON(data?: any): any;
|
|
5292
5304
|
}
|
|
5293
5305
|
export interface ITrackingUpdateDto {
|
|
5294
|
-
|
|
5295
|
-
|
|
5296
|
-
active?: boolean | null;
|
|
5306
|
+
locationId: string;
|
|
5307
|
+
comments?: string | null;
|
|
5297
5308
|
pallets?: number | null;
|
|
5298
5309
|
}
|
|
5299
5310
|
export declare class LinkDto implements ILinkDto {
|
|
@@ -9750,9 +9761,9 @@ export interface IWarehouseLocationDto {
|
|
|
9750
9761
|
site?: string | null;
|
|
9751
9762
|
}
|
|
9752
9763
|
export declare class WorkOrderAttachmentDto implements IWorkOrderAttachmentDto {
|
|
9753
|
-
createdBy?:
|
|
9764
|
+
createdBy?: UserDto | null;
|
|
9754
9765
|
created?: Date | null;
|
|
9755
|
-
modifiedBy?:
|
|
9766
|
+
modifiedBy?: UserDto | null;
|
|
9756
9767
|
modified?: Date | null;
|
|
9757
9768
|
name?: string | null;
|
|
9758
9769
|
notes?: string | null;
|
|
@@ -9763,9 +9774,9 @@ export declare class WorkOrderAttachmentDto implements IWorkOrderAttachmentDto {
|
|
|
9763
9774
|
toJSON(data?: any): any;
|
|
9764
9775
|
}
|
|
9765
9776
|
export interface IWorkOrderAttachmentDto {
|
|
9766
|
-
createdBy?:
|
|
9777
|
+
createdBy?: UserDto | null;
|
|
9767
9778
|
created?: Date | null;
|
|
9768
|
-
modifiedBy?:
|
|
9779
|
+
modifiedBy?: UserDto | null;
|
|
9769
9780
|
modified?: Date | null;
|
|
9770
9781
|
name?: string | null;
|
|
9771
9782
|
notes?: string | null;
|
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)
|
|
@@ -5837,7 +5876,7 @@ export class LocateTrackingClient extends AuthorizedApiBase {
|
|
|
5837
5876
|
return response.text().then((_responseText) => {
|
|
5838
5877
|
let result200 = null;
|
|
5839
5878
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5840
|
-
result200 =
|
|
5879
|
+
result200 = TrackingHistoryDto.fromJS(resultData200);
|
|
5841
5880
|
return result200;
|
|
5842
5881
|
});
|
|
5843
5882
|
}
|
|
@@ -5883,7 +5922,7 @@ export class LocateTrackingClient extends AuthorizedApiBase {
|
|
|
5883
5922
|
return response.text().then((_responseText) => {
|
|
5884
5923
|
let result200 = null;
|
|
5885
5924
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
5886
|
-
result200 =
|
|
5925
|
+
result200 = TrackingHistoryDto.fromJS(resultData200);
|
|
5887
5926
|
return result200;
|
|
5888
5927
|
});
|
|
5889
5928
|
}
|
|
@@ -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) {
|
|
@@ -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
|
}
|
|
@@ -32924,9 +32990,9 @@ export class WorkOrderAttachmentDto {
|
|
|
32924
32990
|
}
|
|
32925
32991
|
init(_data) {
|
|
32926
32992
|
if (_data) {
|
|
32927
|
-
this.createdBy = _data["createdBy"];
|
|
32993
|
+
this.createdBy = _data["createdBy"] ? UserDto.fromJS(_data["createdBy"]) : undefined;
|
|
32928
32994
|
this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined;
|
|
32929
|
-
this.modifiedBy = _data["modifiedBy"];
|
|
32995
|
+
this.modifiedBy = _data["modifiedBy"] ? UserDto.fromJS(_data["modifiedBy"]) : undefined;
|
|
32930
32996
|
this.modified = _data["modified"] ? new Date(_data["modified"].toString()) : undefined;
|
|
32931
32997
|
this.name = _data["name"];
|
|
32932
32998
|
this.notes = _data["notes"];
|
|
@@ -32941,9 +33007,9 @@ export class WorkOrderAttachmentDto {
|
|
|
32941
33007
|
}
|
|
32942
33008
|
toJSON(data) {
|
|
32943
33009
|
data = typeof data === 'object' ? data : {};
|
|
32944
|
-
data["createdBy"] = this.createdBy;
|
|
33010
|
+
data["createdBy"] = this.createdBy ? this.createdBy.toJSON() : undefined;
|
|
32945
33011
|
data["created"] = this.created ? this.created.toISOString() : undefined;
|
|
32946
|
-
data["modifiedBy"] = this.modifiedBy;
|
|
33012
|
+
data["modifiedBy"] = this.modifiedBy ? this.modifiedBy.toJSON() : undefined;
|
|
32947
33013
|
data["modified"] = this.modified ? this.modified.toISOString() : undefined;
|
|
32948
33014
|
data["name"] = this.name;
|
|
32949
33015
|
data["notes"] = this.notes;
|
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)
|
|
@@ -6169,9 +6210,9 @@ export interface ILocateTrackingClient {
|
|
|
6169
6210
|
|
|
6170
6211
|
listTrackingHistory(orderId: string): Promise<TrackingHistoryDto>;
|
|
6171
6212
|
|
|
6172
|
-
createTrackingEvent(orderId: string, locateTrackingUpdate: TrackingUpdateDto): Promise<
|
|
6213
|
+
createTrackingEvent(orderId: string, locateTrackingUpdate: TrackingUpdateDto): Promise<TrackingHistoryDto>;
|
|
6173
6214
|
|
|
6174
|
-
updateTrackingEvent(orderId: string, trackingEventId: number, locateTrackingUpdate: TrackingUpdateDto): Promise<
|
|
6215
|
+
updateTrackingEvent(orderId: string, trackingEventId: number, locateTrackingUpdate: TrackingUpdateDto): Promise<TrackingHistoryDto>;
|
|
6175
6216
|
|
|
6176
6217
|
createLabel(orderId: string, palletCount: number | undefined): Promise<FileResponse>;
|
|
6177
6218
|
}
|
|
@@ -6226,7 +6267,7 @@ export class LocateTrackingClient extends AuthorizedApiBase implements ILocateTr
|
|
|
6226
6267
|
return Promise.resolve<TrackingHistoryDto>(null as any);
|
|
6227
6268
|
}
|
|
6228
6269
|
|
|
6229
|
-
createTrackingEvent(orderId: string, locateTrackingUpdate: TrackingUpdateDto): Promise<
|
|
6270
|
+
createTrackingEvent(orderId: string, locateTrackingUpdate: TrackingUpdateDto): Promise<TrackingHistoryDto> {
|
|
6230
6271
|
let url_ = this.baseUrl + "/locate/tracking/{orderId}";
|
|
6231
6272
|
if (orderId === undefined || orderId === null)
|
|
6232
6273
|
throw new Error("The parameter 'orderId' must be defined.");
|
|
@@ -6251,14 +6292,14 @@ export class LocateTrackingClient extends AuthorizedApiBase implements ILocateTr
|
|
|
6251
6292
|
});
|
|
6252
6293
|
}
|
|
6253
6294
|
|
|
6254
|
-
protected processCreateTrackingEvent(response: Response): Promise<
|
|
6295
|
+
protected processCreateTrackingEvent(response: Response): Promise<TrackingHistoryDto> {
|
|
6255
6296
|
const status = response.status;
|
|
6256
6297
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
6257
6298
|
if (status === 200) {
|
|
6258
6299
|
return response.text().then((_responseText) => {
|
|
6259
6300
|
let result200: any = null;
|
|
6260
6301
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6261
|
-
result200 =
|
|
6302
|
+
result200 = TrackingHistoryDto.fromJS(resultData200);
|
|
6262
6303
|
return result200;
|
|
6263
6304
|
});
|
|
6264
6305
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -6266,10 +6307,10 @@ export class LocateTrackingClient extends AuthorizedApiBase implements ILocateTr
|
|
|
6266
6307
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6267
6308
|
});
|
|
6268
6309
|
}
|
|
6269
|
-
return Promise.resolve<
|
|
6310
|
+
return Promise.resolve<TrackingHistoryDto>(null as any);
|
|
6270
6311
|
}
|
|
6271
6312
|
|
|
6272
|
-
updateTrackingEvent(orderId: string, trackingEventId: number, locateTrackingUpdate: TrackingUpdateDto): Promise<
|
|
6313
|
+
updateTrackingEvent(orderId: string, trackingEventId: number, locateTrackingUpdate: TrackingUpdateDto): Promise<TrackingHistoryDto> {
|
|
6273
6314
|
let url_ = this.baseUrl + "/locate/tracking/{orderId}/{trackingEventId}";
|
|
6274
6315
|
if (orderId === undefined || orderId === null)
|
|
6275
6316
|
throw new Error("The parameter 'orderId' must be defined.");
|
|
@@ -6297,14 +6338,14 @@ export class LocateTrackingClient extends AuthorizedApiBase implements ILocateTr
|
|
|
6297
6338
|
});
|
|
6298
6339
|
}
|
|
6299
6340
|
|
|
6300
|
-
protected processUpdateTrackingEvent(response: Response): Promise<
|
|
6341
|
+
protected processUpdateTrackingEvent(response: Response): Promise<TrackingHistoryDto> {
|
|
6301
6342
|
const status = response.status;
|
|
6302
6343
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
6303
6344
|
if (status === 200) {
|
|
6304
6345
|
return response.text().then((_responseText) => {
|
|
6305
6346
|
let result200: any = null;
|
|
6306
6347
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6307
|
-
result200 =
|
|
6348
|
+
result200 = TrackingHistoryDto.fromJS(resultData200);
|
|
6308
6349
|
return result200;
|
|
6309
6350
|
});
|
|
6310
6351
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -6312,7 +6353,7 @@ export class LocateTrackingClient extends AuthorizedApiBase implements ILocateTr
|
|
|
6312
6353
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6313
6354
|
});
|
|
6314
6355
|
}
|
|
6315
|
-
return Promise.resolve<
|
|
6356
|
+
return Promise.resolve<TrackingHistoryDto>(null as any);
|
|
6316
6357
|
}
|
|
6317
6358
|
|
|
6318
6359
|
createLabel(orderId: string, palletCount: number | undefined): Promise<FileResponse> {
|
|
@@ -23810,6 +23851,7 @@ export class TraceDto implements ITraceDto {
|
|
|
23810
23851
|
overrideMaterialDetails!: TraceMaterialDetailDto[];
|
|
23811
23852
|
operations!: WorkOrderTraceOperationDto[];
|
|
23812
23853
|
traceType!: TraceType;
|
|
23854
|
+
manualCompleted!: boolean;
|
|
23813
23855
|
materialLinesMissingTraceInformation!: number[];
|
|
23814
23856
|
|
|
23815
23857
|
constructor(data?: ITraceDto) {
|
|
@@ -23852,6 +23894,7 @@ export class TraceDto implements ITraceDto {
|
|
|
23852
23894
|
this.operations!.push(WorkOrderTraceOperationDto.fromJS(item));
|
|
23853
23895
|
}
|
|
23854
23896
|
this.traceType = _data["traceType"];
|
|
23897
|
+
this.manualCompleted = _data["manualCompleted"];
|
|
23855
23898
|
if (Array.isArray(_data["materialLinesMissingTraceInformation"])) {
|
|
23856
23899
|
this.materialLinesMissingTraceInformation = [] as any;
|
|
23857
23900
|
for (let item of _data["materialLinesMissingTraceInformation"])
|
|
@@ -23890,6 +23933,7 @@ export class TraceDto implements ITraceDto {
|
|
|
23890
23933
|
data["operations"].push(item.toJSON());
|
|
23891
23934
|
}
|
|
23892
23935
|
data["traceType"] = this.traceType;
|
|
23936
|
+
data["manualCompleted"] = this.manualCompleted;
|
|
23893
23937
|
if (Array.isArray(this.materialLinesMissingTraceInformation)) {
|
|
23894
23938
|
data["materialLinesMissingTraceInformation"] = [];
|
|
23895
23939
|
for (let item of this.materialLinesMissingTraceInformation)
|
|
@@ -23909,6 +23953,7 @@ export interface ITraceDto {
|
|
|
23909
23953
|
overrideMaterialDetails: TraceMaterialDetailDto[];
|
|
23910
23954
|
operations: WorkOrderTraceOperationDto[];
|
|
23911
23955
|
traceType: TraceType;
|
|
23956
|
+
manualCompleted: boolean;
|
|
23912
23957
|
materialLinesMissingTraceInformation: number[];
|
|
23913
23958
|
}
|
|
23914
23959
|
|
|
@@ -24618,6 +24663,42 @@ export interface IUpdateTraceRequest {
|
|
|
24618
24663
|
items: TraceItemDto[];
|
|
24619
24664
|
}
|
|
24620
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
|
+
|
|
24621
24702
|
export class CustomerOrderTraceStatusDto implements ICustomerOrderTraceStatusDto {
|
|
24622
24703
|
lines!: CustomerOrderLineTraceStatusDto[];
|
|
24623
24704
|
|
|
@@ -28630,8 +28711,7 @@ export interface IOrderDto {
|
|
|
28630
28711
|
|
|
28631
28712
|
export class TrackingHistoryDto implements ITrackingHistoryDto {
|
|
28632
28713
|
orderId!: string;
|
|
28633
|
-
|
|
28634
|
-
trackingEvents!: TrackingEventsDto[];
|
|
28714
|
+
trackingEvents!: TrackingEventDto[];
|
|
28635
28715
|
|
|
28636
28716
|
constructor(data?: ITrackingHistoryDto) {
|
|
28637
28717
|
if (data) {
|
|
@@ -28648,11 +28728,10 @@ export class TrackingHistoryDto implements ITrackingHistoryDto {
|
|
|
28648
28728
|
init(_data?: any) {
|
|
28649
28729
|
if (_data) {
|
|
28650
28730
|
this.orderId = _data["orderId"];
|
|
28651
|
-
this.lastSetPallets = _data["lastSetPallets"];
|
|
28652
28731
|
if (Array.isArray(_data["trackingEvents"])) {
|
|
28653
28732
|
this.trackingEvents = [] as any;
|
|
28654
28733
|
for (let item of _data["trackingEvents"])
|
|
28655
|
-
this.trackingEvents!.push(
|
|
28734
|
+
this.trackingEvents!.push(TrackingEventDto.fromJS(item));
|
|
28656
28735
|
}
|
|
28657
28736
|
}
|
|
28658
28737
|
}
|
|
@@ -28667,7 +28746,6 @@ export class TrackingHistoryDto implements ITrackingHistoryDto {
|
|
|
28667
28746
|
toJSON(data?: any) {
|
|
28668
28747
|
data = typeof data === 'object' ? data : {};
|
|
28669
28748
|
data["orderId"] = this.orderId;
|
|
28670
|
-
data["lastSetPallets"] = this.lastSetPallets;
|
|
28671
28749
|
if (Array.isArray(this.trackingEvents)) {
|
|
28672
28750
|
data["trackingEvents"] = [];
|
|
28673
28751
|
for (let item of this.trackingEvents)
|
|
@@ -28679,28 +28757,30 @@ export class TrackingHistoryDto implements ITrackingHistoryDto {
|
|
|
28679
28757
|
|
|
28680
28758
|
export interface ITrackingHistoryDto {
|
|
28681
28759
|
orderId: string;
|
|
28682
|
-
|
|
28683
|
-
trackingEvents: TrackingEventsDto[];
|
|
28760
|
+
trackingEvents: TrackingEventDto[];
|
|
28684
28761
|
}
|
|
28685
28762
|
|
|
28686
|
-
export class
|
|
28763
|
+
export class TrackingEventDto implements ITrackingEventDto {
|
|
28687
28764
|
id!: number;
|
|
28688
28765
|
created!: Date;
|
|
28689
28766
|
createdBy!: string;
|
|
28690
28767
|
updated!: Date;
|
|
28691
28768
|
updatedBy!: string;
|
|
28692
|
-
|
|
28769
|
+
location!: LocationDto;
|
|
28693
28770
|
active!: boolean;
|
|
28694
|
-
|
|
28771
|
+
comments?: string | null;
|
|
28695
28772
|
pallets?: number | null;
|
|
28696
28773
|
|
|
28697
|
-
constructor(data?:
|
|
28774
|
+
constructor(data?: ITrackingEventDto) {
|
|
28698
28775
|
if (data) {
|
|
28699
28776
|
for (var property in data) {
|
|
28700
28777
|
if (data.hasOwnProperty(property))
|
|
28701
28778
|
(<any>this)[property] = (<any>data)[property];
|
|
28702
28779
|
}
|
|
28703
28780
|
}
|
|
28781
|
+
if (!data) {
|
|
28782
|
+
this.location = new LocationDto();
|
|
28783
|
+
}
|
|
28704
28784
|
}
|
|
28705
28785
|
|
|
28706
28786
|
init(_data?: any) {
|
|
@@ -28710,16 +28790,16 @@ export class TrackingEventsDto implements ITrackingEventsDto {
|
|
|
28710
28790
|
this.createdBy = _data["createdBy"];
|
|
28711
28791
|
this.updated = _data["updated"] ? new Date(_data["updated"].toString()) : <any>undefined;
|
|
28712
28792
|
this.updatedBy = _data["updatedBy"];
|
|
28713
|
-
this.
|
|
28793
|
+
this.location = _data["location"] ? LocationDto.fromJS(_data["location"]) : new LocationDto();
|
|
28714
28794
|
this.active = _data["active"];
|
|
28715
|
-
this.
|
|
28795
|
+
this.comments = _data["comments"];
|
|
28716
28796
|
this.pallets = _data["pallets"];
|
|
28717
28797
|
}
|
|
28718
28798
|
}
|
|
28719
28799
|
|
|
28720
|
-
static fromJS(data: any):
|
|
28800
|
+
static fromJS(data: any): TrackingEventDto {
|
|
28721
28801
|
data = typeof data === 'object' ? data : {};
|
|
28722
|
-
let result = new
|
|
28802
|
+
let result = new TrackingEventDto();
|
|
28723
28803
|
result.init(data);
|
|
28724
28804
|
return result;
|
|
28725
28805
|
}
|
|
@@ -28731,30 +28811,29 @@ export class TrackingEventsDto implements ITrackingEventsDto {
|
|
|
28731
28811
|
data["createdBy"] = this.createdBy;
|
|
28732
28812
|
data["updated"] = this.updated ? this.updated.toISOString() : <any>undefined;
|
|
28733
28813
|
data["updatedBy"] = this.updatedBy;
|
|
28734
|
-
data["
|
|
28814
|
+
data["location"] = this.location ? this.location.toJSON() : <any>undefined;
|
|
28735
28815
|
data["active"] = this.active;
|
|
28736
|
-
data["
|
|
28816
|
+
data["comments"] = this.comments;
|
|
28737
28817
|
data["pallets"] = this.pallets;
|
|
28738
28818
|
return data;
|
|
28739
28819
|
}
|
|
28740
28820
|
}
|
|
28741
28821
|
|
|
28742
|
-
export interface
|
|
28822
|
+
export interface ITrackingEventDto {
|
|
28743
28823
|
id: number;
|
|
28744
28824
|
created: Date;
|
|
28745
28825
|
createdBy: string;
|
|
28746
28826
|
updated: Date;
|
|
28747
28827
|
updatedBy: string;
|
|
28748
|
-
|
|
28828
|
+
location: LocationDto;
|
|
28749
28829
|
active: boolean;
|
|
28750
|
-
|
|
28830
|
+
comments?: string | null;
|
|
28751
28831
|
pallets?: number | null;
|
|
28752
28832
|
}
|
|
28753
28833
|
|
|
28754
28834
|
export class TrackingUpdateDto implements ITrackingUpdateDto {
|
|
28755
|
-
|
|
28756
|
-
|
|
28757
|
-
active?: boolean | null;
|
|
28835
|
+
locationId!: string;
|
|
28836
|
+
comments?: string | null;
|
|
28758
28837
|
pallets?: number | null;
|
|
28759
28838
|
|
|
28760
28839
|
constructor(data?: ITrackingUpdateDto) {
|
|
@@ -28768,9 +28847,8 @@ export class TrackingUpdateDto implements ITrackingUpdateDto {
|
|
|
28768
28847
|
|
|
28769
28848
|
init(_data?: any) {
|
|
28770
28849
|
if (_data) {
|
|
28771
|
-
this.
|
|
28772
|
-
this.
|
|
28773
|
-
this.active = _data["active"];
|
|
28850
|
+
this.locationId = _data["locationId"];
|
|
28851
|
+
this.comments = _data["comments"];
|
|
28774
28852
|
this.pallets = _data["pallets"];
|
|
28775
28853
|
}
|
|
28776
28854
|
}
|
|
@@ -28784,18 +28862,16 @@ export class TrackingUpdateDto implements ITrackingUpdateDto {
|
|
|
28784
28862
|
|
|
28785
28863
|
toJSON(data?: any) {
|
|
28786
28864
|
data = typeof data === 'object' ? data : {};
|
|
28787
|
-
data["
|
|
28788
|
-
data["
|
|
28789
|
-
data["active"] = this.active;
|
|
28865
|
+
data["locationId"] = this.locationId;
|
|
28866
|
+
data["comments"] = this.comments;
|
|
28790
28867
|
data["pallets"] = this.pallets;
|
|
28791
28868
|
return data;
|
|
28792
28869
|
}
|
|
28793
28870
|
}
|
|
28794
28871
|
|
|
28795
28872
|
export interface ITrackingUpdateDto {
|
|
28796
|
-
|
|
28797
|
-
|
|
28798
|
-
active?: boolean | null;
|
|
28873
|
+
locationId: string;
|
|
28874
|
+
comments?: string | null;
|
|
28799
28875
|
pallets?: number | null;
|
|
28800
28876
|
}
|
|
28801
28877
|
|
|
@@ -41724,9 +41800,9 @@ export interface IWarehouseLocationDto {
|
|
|
41724
41800
|
}
|
|
41725
41801
|
|
|
41726
41802
|
export class WorkOrderAttachmentDto implements IWorkOrderAttachmentDto {
|
|
41727
|
-
createdBy?:
|
|
41803
|
+
createdBy?: UserDto | null;
|
|
41728
41804
|
created?: Date | null;
|
|
41729
|
-
modifiedBy?:
|
|
41805
|
+
modifiedBy?: UserDto | null;
|
|
41730
41806
|
modified?: Date | null;
|
|
41731
41807
|
name?: string | null;
|
|
41732
41808
|
notes?: string | null;
|
|
@@ -41743,9 +41819,9 @@ export class WorkOrderAttachmentDto implements IWorkOrderAttachmentDto {
|
|
|
41743
41819
|
|
|
41744
41820
|
init(_data?: any) {
|
|
41745
41821
|
if (_data) {
|
|
41746
|
-
this.createdBy = _data["createdBy"];
|
|
41822
|
+
this.createdBy = _data["createdBy"] ? UserDto.fromJS(_data["createdBy"]) : <any>undefined;
|
|
41747
41823
|
this.created = _data["created"] ? new Date(_data["created"].toString()) : <any>undefined;
|
|
41748
|
-
this.modifiedBy = _data["modifiedBy"];
|
|
41824
|
+
this.modifiedBy = _data["modifiedBy"] ? UserDto.fromJS(_data["modifiedBy"]) : <any>undefined;
|
|
41749
41825
|
this.modified = _data["modified"] ? new Date(_data["modified"].toString()) : <any>undefined;
|
|
41750
41826
|
this.name = _data["name"];
|
|
41751
41827
|
this.notes = _data["notes"];
|
|
@@ -41762,9 +41838,9 @@ export class WorkOrderAttachmentDto implements IWorkOrderAttachmentDto {
|
|
|
41762
41838
|
|
|
41763
41839
|
toJSON(data?: any) {
|
|
41764
41840
|
data = typeof data === 'object' ? data : {};
|
|
41765
|
-
data["createdBy"] = this.createdBy;
|
|
41841
|
+
data["createdBy"] = this.createdBy ? this.createdBy.toJSON() : <any>undefined;
|
|
41766
41842
|
data["created"] = this.created ? this.created.toISOString() : <any>undefined;
|
|
41767
|
-
data["modifiedBy"] = this.modifiedBy;
|
|
41843
|
+
data["modifiedBy"] = this.modifiedBy ? this.modifiedBy.toJSON() : <any>undefined;
|
|
41768
41844
|
data["modified"] = this.modified ? this.modified.toISOString() : <any>undefined;
|
|
41769
41845
|
data["name"] = this.name;
|
|
41770
41846
|
data["notes"] = this.notes;
|
|
@@ -41774,9 +41850,9 @@ export class WorkOrderAttachmentDto implements IWorkOrderAttachmentDto {
|
|
|
41774
41850
|
}
|
|
41775
41851
|
|
|
41776
41852
|
export interface IWorkOrderAttachmentDto {
|
|
41777
|
-
createdBy?:
|
|
41853
|
+
createdBy?: UserDto | null;
|
|
41778
41854
|
created?: Date | null;
|
|
41779
|
-
modifiedBy?:
|
|
41855
|
+
modifiedBy?: UserDto | null;
|
|
41780
41856
|
modified?: Date | null;
|
|
41781
41857
|
name?: string | null;
|
|
41782
41858
|
notes?: string | null;
|