@ignos/api-client 20240506.0.9212 → 20240508.0.9233
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 +31 -29
- package/lib/ignosportal-api.js +41 -38
- package/package.json +1 -1
- package/src/ignosportal-api.ts +67 -62
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -722,7 +722,7 @@ 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, workOrderId: string | null | undefined): Promise<LocationDto[]>;
|
|
726
726
|
}
|
|
727
727
|
export declare class LocateLocationsClient extends AuthorizedApiBase implements ILocateLocationsClient {
|
|
728
728
|
private http;
|
|
@@ -731,11 +731,11 @@ export declare class LocateLocationsClient extends AuthorizedApiBase implements
|
|
|
731
731
|
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
|
|
732
732
|
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
733
733
|
});
|
|
734
|
-
searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | undefined,
|
|
734
|
+
searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | undefined, workOrderId: string | null | undefined): Promise<LocationDto[]>;
|
|
735
735
|
protected processSearchLocations(response: Response): Promise<LocationDto[]>;
|
|
736
736
|
}
|
|
737
737
|
export interface ILocateOrdersClient {
|
|
738
|
-
searchOrders(input: string | null | undefined): Promise<
|
|
738
|
+
searchOrders(input: string | null | undefined): Promise<SearchWorkOrderDto[]>;
|
|
739
739
|
}
|
|
740
740
|
export declare class LocateOrdersClient extends AuthorizedApiBase implements ILocateOrdersClient {
|
|
741
741
|
private http;
|
|
@@ -744,14 +744,14 @@ export declare class LocateOrdersClient extends AuthorizedApiBase implements ILo
|
|
|
744
744
|
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
|
|
745
745
|
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
746
746
|
});
|
|
747
|
-
searchOrders(input: string | null | undefined): Promise<
|
|
748
|
-
protected processSearchOrders(response: Response): Promise<
|
|
747
|
+
searchOrders(input: string | null | undefined): Promise<SearchWorkOrderDto[]>;
|
|
748
|
+
protected processSearchOrders(response: Response): Promise<SearchWorkOrderDto[]>;
|
|
749
749
|
}
|
|
750
750
|
export interface ILocateTrackingClient {
|
|
751
|
-
listTrackingHistory(
|
|
752
|
-
createTrackingEvent(
|
|
753
|
-
updateTrackingEvent(
|
|
754
|
-
createLabel(
|
|
751
|
+
listTrackingHistory(workOrderId: string): Promise<TrackingHistoryDto>;
|
|
752
|
+
createTrackingEvent(workOrderId: string, locateTrackingUpdate: TrackingUpdateDto): Promise<TrackingHistoryDto>;
|
|
753
|
+
updateTrackingEvent(workOrderId: string, trackingEventId: number, locateTrackingUpdate: TrackingUpdateDto): Promise<TrackingHistoryDto>;
|
|
754
|
+
createLabel(workOrderId: string, palletCount: number | undefined): Promise<FileResponse>;
|
|
755
755
|
}
|
|
756
756
|
export declare class LocateTrackingClient extends AuthorizedApiBase implements ILocateTrackingClient {
|
|
757
757
|
private http;
|
|
@@ -760,13 +760,13 @@ export declare class LocateTrackingClient extends AuthorizedApiBase implements I
|
|
|
760
760
|
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
|
|
761
761
|
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
762
762
|
});
|
|
763
|
-
listTrackingHistory(
|
|
763
|
+
listTrackingHistory(workOrderId: string): Promise<TrackingHistoryDto>;
|
|
764
764
|
protected processListTrackingHistory(response: Response): Promise<TrackingHistoryDto>;
|
|
765
|
-
createTrackingEvent(
|
|
765
|
+
createTrackingEvent(workOrderId: string, locateTrackingUpdate: TrackingUpdateDto): Promise<TrackingHistoryDto>;
|
|
766
766
|
protected processCreateTrackingEvent(response: Response): Promise<TrackingHistoryDto>;
|
|
767
|
-
updateTrackingEvent(
|
|
767
|
+
updateTrackingEvent(workOrderId: string, trackingEventId: number, locateTrackingUpdate: TrackingUpdateDto): Promise<TrackingHistoryDto>;
|
|
768
768
|
protected processUpdateTrackingEvent(response: Response): Promise<TrackingHistoryDto>;
|
|
769
|
-
createLabel(
|
|
769
|
+
createLabel(workOrderId: string, palletCount: number | undefined): Promise<FileResponse>;
|
|
770
770
|
protected processCreateLabel(response: Response): Promise<FileResponse>;
|
|
771
771
|
}
|
|
772
772
|
export interface ILinksClient {
|
|
@@ -5130,7 +5130,7 @@ export declare class BookingResponseDto implements IBookingResponseDto {
|
|
|
5130
5130
|
requestedBy: string;
|
|
5131
5131
|
bookingType: BookingTypeDto;
|
|
5132
5132
|
bookingStatus: BookingStatusDto;
|
|
5133
|
-
|
|
5133
|
+
workOrderId: string;
|
|
5134
5134
|
palletCount: number;
|
|
5135
5135
|
fromLocation: string;
|
|
5136
5136
|
toLocation: string;
|
|
@@ -5152,7 +5152,7 @@ export interface IBookingResponseDto {
|
|
|
5152
5152
|
requestedBy: string;
|
|
5153
5153
|
bookingType: BookingTypeDto;
|
|
5154
5154
|
bookingStatus: BookingStatusDto;
|
|
5155
|
-
|
|
5155
|
+
workOrderId: string;
|
|
5156
5156
|
palletCount: number;
|
|
5157
5157
|
fromLocation: string;
|
|
5158
5158
|
toLocation: string;
|
|
@@ -5170,7 +5170,7 @@ export declare class BookingRequestDto implements IBookingRequestDto {
|
|
|
5170
5170
|
requestedDate: Date;
|
|
5171
5171
|
requestedBy: string;
|
|
5172
5172
|
bookingType: BookingTypeDto;
|
|
5173
|
-
|
|
5173
|
+
workOrderId: string;
|
|
5174
5174
|
palletCount: number;
|
|
5175
5175
|
fromLocation: string;
|
|
5176
5176
|
toLocation: string;
|
|
@@ -5190,7 +5190,7 @@ export interface IBookingRequestDto {
|
|
|
5190
5190
|
requestedDate: Date;
|
|
5191
5191
|
requestedBy: string;
|
|
5192
5192
|
bookingType: BookingTypeDto;
|
|
5193
|
-
|
|
5193
|
+
workOrderId: string;
|
|
5194
5194
|
palletCount: number;
|
|
5195
5195
|
fromLocation: string;
|
|
5196
5196
|
toLocation: string;
|
|
@@ -5241,31 +5241,33 @@ export interface ILocationDto {
|
|
|
5241
5241
|
profile?: string | null;
|
|
5242
5242
|
}
|
|
5243
5243
|
export type LocationKindDto = "Warehouse" | "Zone" | "Location";
|
|
5244
|
-
export declare class
|
|
5245
|
-
|
|
5244
|
+
export declare class SearchWorkOrderDto implements ISearchWorkOrderDto {
|
|
5245
|
+
workOrderId: string;
|
|
5246
5246
|
partName?: string | null;
|
|
5247
5247
|
partNumber?: string | null;
|
|
5248
|
-
constructor(data?:
|
|
5248
|
+
constructor(data?: ISearchWorkOrderDto);
|
|
5249
5249
|
init(_data?: any): void;
|
|
5250
|
-
static fromJS(data: any):
|
|
5250
|
+
static fromJS(data: any): SearchWorkOrderDto;
|
|
5251
5251
|
toJSON(data?: any): any;
|
|
5252
5252
|
}
|
|
5253
|
-
export interface
|
|
5254
|
-
|
|
5253
|
+
export interface ISearchWorkOrderDto {
|
|
5254
|
+
workOrderId: string;
|
|
5255
5255
|
partName?: string | null;
|
|
5256
5256
|
partNumber?: string | null;
|
|
5257
5257
|
}
|
|
5258
5258
|
export declare class TrackingHistoryDto implements ITrackingHistoryDto {
|
|
5259
|
-
|
|
5259
|
+
workOrderId: string;
|
|
5260
5260
|
trackingEvents: TrackingEventDto[];
|
|
5261
|
+
part: PartDto;
|
|
5261
5262
|
constructor(data?: ITrackingHistoryDto);
|
|
5262
5263
|
init(_data?: any): void;
|
|
5263
5264
|
static fromJS(data: any): TrackingHistoryDto;
|
|
5264
5265
|
toJSON(data?: any): any;
|
|
5265
5266
|
}
|
|
5266
5267
|
export interface ITrackingHistoryDto {
|
|
5267
|
-
|
|
5268
|
+
workOrderId: string;
|
|
5268
5269
|
trackingEvents: TrackingEventDto[];
|
|
5270
|
+
part: PartDto;
|
|
5269
5271
|
}
|
|
5270
5272
|
export declare class TrackingEventDto implements ITrackingEventDto {
|
|
5271
5273
|
id: number;
|
|
@@ -9761,9 +9763,9 @@ export interface IWarehouseLocationDto {
|
|
|
9761
9763
|
site?: string | null;
|
|
9762
9764
|
}
|
|
9763
9765
|
export declare class WorkOrderAttachmentDto implements IWorkOrderAttachmentDto {
|
|
9764
|
-
createdBy?:
|
|
9766
|
+
createdBy?: UserDto | null;
|
|
9765
9767
|
created?: Date | null;
|
|
9766
|
-
modifiedBy?:
|
|
9768
|
+
modifiedBy?: UserDto | null;
|
|
9767
9769
|
modified?: Date | null;
|
|
9768
9770
|
name?: string | null;
|
|
9769
9771
|
notes?: string | null;
|
|
@@ -9774,9 +9776,9 @@ export declare class WorkOrderAttachmentDto implements IWorkOrderAttachmentDto {
|
|
|
9774
9776
|
toJSON(data?: any): any;
|
|
9775
9777
|
}
|
|
9776
9778
|
export interface IWorkOrderAttachmentDto {
|
|
9777
|
-
createdBy?:
|
|
9779
|
+
createdBy?: UserDto | null;
|
|
9778
9780
|
created?: Date | null;
|
|
9779
|
-
modifiedBy?:
|
|
9781
|
+
modifiedBy?: UserDto | null;
|
|
9780
9782
|
modified?: Date | null;
|
|
9781
9783
|
name?: string | null;
|
|
9782
9784
|
notes?: string | null;
|
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, workOrderId) {
|
|
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,8 @@ 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 (
|
|
5708
|
-
url_ += "
|
|
5707
|
+
if (workOrderId !== undefined && workOrderId !== null)
|
|
5708
|
+
url_ += "workOrderId=" + encodeURIComponent("" + workOrderId) + "&";
|
|
5709
5709
|
url_ = url_.replace(/[?&]$/, "");
|
|
5710
5710
|
let options_ = {
|
|
5711
5711
|
method: "GET",
|
|
@@ -5784,7 +5784,7 @@ export class LocateOrdersClient extends AuthorizedApiBase {
|
|
|
5784
5784
|
if (Array.isArray(resultData200)) {
|
|
5785
5785
|
result200 = [];
|
|
5786
5786
|
for (let item of resultData200)
|
|
5787
|
-
result200.push(
|
|
5787
|
+
result200.push(SearchWorkOrderDto.fromJS(item));
|
|
5788
5788
|
}
|
|
5789
5789
|
return result200;
|
|
5790
5790
|
});
|
|
@@ -5804,11 +5804,11 @@ export class LocateTrackingClient extends AuthorizedApiBase {
|
|
|
5804
5804
|
this.http = http ? http : window;
|
|
5805
5805
|
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
5806
5806
|
}
|
|
5807
|
-
listTrackingHistory(
|
|
5808
|
-
let url_ = this.baseUrl + "/locate/tracking/{
|
|
5809
|
-
if (
|
|
5810
|
-
throw new Error("The parameter '
|
|
5811
|
-
url_ = url_.replace("{
|
|
5807
|
+
listTrackingHistory(workOrderId) {
|
|
5808
|
+
let url_ = this.baseUrl + "/locate/tracking/{workOrderId}";
|
|
5809
|
+
if (workOrderId === undefined || workOrderId === null)
|
|
5810
|
+
throw new Error("The parameter 'workOrderId' must be defined.");
|
|
5811
|
+
url_ = url_.replace("{workOrderId}", encodeURIComponent("" + workOrderId));
|
|
5812
5812
|
url_ = url_.replace(/[?&]$/, "");
|
|
5813
5813
|
let options_ = {
|
|
5814
5814
|
method: "GET",
|
|
@@ -5844,11 +5844,11 @@ export class LocateTrackingClient extends AuthorizedApiBase {
|
|
|
5844
5844
|
}
|
|
5845
5845
|
return Promise.resolve(null);
|
|
5846
5846
|
}
|
|
5847
|
-
createTrackingEvent(
|
|
5848
|
-
let url_ = this.baseUrl + "/locate/tracking/{
|
|
5849
|
-
if (
|
|
5850
|
-
throw new Error("The parameter '
|
|
5851
|
-
url_ = url_.replace("{
|
|
5847
|
+
createTrackingEvent(workOrderId, locateTrackingUpdate) {
|
|
5848
|
+
let url_ = this.baseUrl + "/locate/tracking/{workOrderId}";
|
|
5849
|
+
if (workOrderId === undefined || workOrderId === null)
|
|
5850
|
+
throw new Error("The parameter 'workOrderId' must be defined.");
|
|
5851
|
+
url_ = url_.replace("{workOrderId}", encodeURIComponent("" + workOrderId));
|
|
5852
5852
|
url_ = url_.replace(/[?&]$/, "");
|
|
5853
5853
|
const content_ = JSON.stringify(locateTrackingUpdate);
|
|
5854
5854
|
let options_ = {
|
|
@@ -5887,11 +5887,11 @@ export class LocateTrackingClient extends AuthorizedApiBase {
|
|
|
5887
5887
|
}
|
|
5888
5888
|
return Promise.resolve(null);
|
|
5889
5889
|
}
|
|
5890
|
-
updateTrackingEvent(
|
|
5891
|
-
let url_ = this.baseUrl + "/locate/tracking/{
|
|
5892
|
-
if (
|
|
5893
|
-
throw new Error("The parameter '
|
|
5894
|
-
url_ = url_.replace("{
|
|
5890
|
+
updateTrackingEvent(workOrderId, trackingEventId, locateTrackingUpdate) {
|
|
5891
|
+
let url_ = this.baseUrl + "/locate/tracking/{workOrderId}/{trackingEventId}";
|
|
5892
|
+
if (workOrderId === undefined || workOrderId === null)
|
|
5893
|
+
throw new Error("The parameter 'workOrderId' must be defined.");
|
|
5894
|
+
url_ = url_.replace("{workOrderId}", encodeURIComponent("" + workOrderId));
|
|
5895
5895
|
if (trackingEventId === undefined || trackingEventId === null)
|
|
5896
5896
|
throw new Error("The parameter 'trackingEventId' must be defined.");
|
|
5897
5897
|
url_ = url_.replace("{trackingEventId}", encodeURIComponent("" + trackingEventId));
|
|
@@ -5933,11 +5933,11 @@ export class LocateTrackingClient extends AuthorizedApiBase {
|
|
|
5933
5933
|
}
|
|
5934
5934
|
return Promise.resolve(null);
|
|
5935
5935
|
}
|
|
5936
|
-
createLabel(
|
|
5937
|
-
let url_ = this.baseUrl + "/locate/tracking/{
|
|
5938
|
-
if (
|
|
5939
|
-
throw new Error("The parameter '
|
|
5940
|
-
url_ = url_.replace("{
|
|
5936
|
+
createLabel(workOrderId, palletCount) {
|
|
5937
|
+
let url_ = this.baseUrl + "/locate/tracking/{workOrderId}/label?";
|
|
5938
|
+
if (workOrderId === undefined || workOrderId === null)
|
|
5939
|
+
throw new Error("The parameter 'workOrderId' must be defined.");
|
|
5940
|
+
url_ = url_.replace("{workOrderId}", encodeURIComponent("" + workOrderId));
|
|
5941
5941
|
if (palletCount === null)
|
|
5942
5942
|
throw new Error("The parameter 'palletCount' cannot be null.");
|
|
5943
5943
|
else if (palletCount !== undefined)
|
|
@@ -24184,7 +24184,7 @@ export class BookingResponseDto {
|
|
|
24184
24184
|
this.requestedBy = _data["requestedBy"];
|
|
24185
24185
|
this.bookingType = _data["bookingType"];
|
|
24186
24186
|
this.bookingStatus = _data["bookingStatus"];
|
|
24187
|
-
this.
|
|
24187
|
+
this.workOrderId = _data["workOrderId"];
|
|
24188
24188
|
this.palletCount = _data["palletCount"];
|
|
24189
24189
|
this.fromLocation = _data["fromLocation"];
|
|
24190
24190
|
this.toLocation = _data["toLocation"];
|
|
@@ -24210,7 +24210,7 @@ export class BookingResponseDto {
|
|
|
24210
24210
|
data["requestedBy"] = this.requestedBy;
|
|
24211
24211
|
data["bookingType"] = this.bookingType;
|
|
24212
24212
|
data["bookingStatus"] = this.bookingStatus;
|
|
24213
|
-
data["
|
|
24213
|
+
data["workOrderId"] = this.workOrderId;
|
|
24214
24214
|
data["palletCount"] = this.palletCount;
|
|
24215
24215
|
data["fromLocation"] = this.fromLocation;
|
|
24216
24216
|
data["toLocation"] = this.toLocation;
|
|
@@ -24238,7 +24238,7 @@ export class BookingRequestDto {
|
|
|
24238
24238
|
this.requestedDate = _data["requestedDate"] ? new Date(_data["requestedDate"].toString()) : undefined;
|
|
24239
24239
|
this.requestedBy = _data["requestedBy"];
|
|
24240
24240
|
this.bookingType = _data["bookingType"];
|
|
24241
|
-
this.
|
|
24241
|
+
this.workOrderId = _data["workOrderId"];
|
|
24242
24242
|
this.palletCount = _data["palletCount"];
|
|
24243
24243
|
this.fromLocation = _data["fromLocation"];
|
|
24244
24244
|
this.toLocation = _data["toLocation"];
|
|
@@ -24262,7 +24262,7 @@ export class BookingRequestDto {
|
|
|
24262
24262
|
data["requestedDate"] = this.requestedDate ? this.requestedDate.toISOString() : undefined;
|
|
24263
24263
|
data["requestedBy"] = this.requestedBy;
|
|
24264
24264
|
data["bookingType"] = this.bookingType;
|
|
24265
|
-
data["
|
|
24265
|
+
data["workOrderId"] = this.workOrderId;
|
|
24266
24266
|
data["palletCount"] = this.palletCount;
|
|
24267
24267
|
data["fromLocation"] = this.fromLocation;
|
|
24268
24268
|
data["toLocation"] = this.toLocation;
|
|
@@ -24373,7 +24373,7 @@ export class LocationDto {
|
|
|
24373
24373
|
return data;
|
|
24374
24374
|
}
|
|
24375
24375
|
}
|
|
24376
|
-
export class
|
|
24376
|
+
export class SearchWorkOrderDto {
|
|
24377
24377
|
constructor(data) {
|
|
24378
24378
|
if (data) {
|
|
24379
24379
|
for (var property in data) {
|
|
@@ -24384,20 +24384,20 @@ export class OrderDto {
|
|
|
24384
24384
|
}
|
|
24385
24385
|
init(_data) {
|
|
24386
24386
|
if (_data) {
|
|
24387
|
-
this.
|
|
24387
|
+
this.workOrderId = _data["workOrderId"];
|
|
24388
24388
|
this.partName = _data["partName"];
|
|
24389
24389
|
this.partNumber = _data["partNumber"];
|
|
24390
24390
|
}
|
|
24391
24391
|
}
|
|
24392
24392
|
static fromJS(data) {
|
|
24393
24393
|
data = typeof data === 'object' ? data : {};
|
|
24394
|
-
let result = new
|
|
24394
|
+
let result = new SearchWorkOrderDto();
|
|
24395
24395
|
result.init(data);
|
|
24396
24396
|
return result;
|
|
24397
24397
|
}
|
|
24398
24398
|
toJSON(data) {
|
|
24399
24399
|
data = typeof data === 'object' ? data : {};
|
|
24400
|
-
data["
|
|
24400
|
+
data["workOrderId"] = this.workOrderId;
|
|
24401
24401
|
data["partName"] = this.partName;
|
|
24402
24402
|
data["partNumber"] = this.partNumber;
|
|
24403
24403
|
return data;
|
|
@@ -24413,16 +24413,18 @@ export class TrackingHistoryDto {
|
|
|
24413
24413
|
}
|
|
24414
24414
|
if (!data) {
|
|
24415
24415
|
this.trackingEvents = [];
|
|
24416
|
+
this.part = new PartDto();
|
|
24416
24417
|
}
|
|
24417
24418
|
}
|
|
24418
24419
|
init(_data) {
|
|
24419
24420
|
if (_data) {
|
|
24420
|
-
this.
|
|
24421
|
+
this.workOrderId = _data["workOrderId"];
|
|
24421
24422
|
if (Array.isArray(_data["trackingEvents"])) {
|
|
24422
24423
|
this.trackingEvents = [];
|
|
24423
24424
|
for (let item of _data["trackingEvents"])
|
|
24424
24425
|
this.trackingEvents.push(TrackingEventDto.fromJS(item));
|
|
24425
24426
|
}
|
|
24427
|
+
this.part = _data["part"] ? PartDto.fromJS(_data["part"]) : new PartDto();
|
|
24426
24428
|
}
|
|
24427
24429
|
}
|
|
24428
24430
|
static fromJS(data) {
|
|
@@ -24433,12 +24435,13 @@ export class TrackingHistoryDto {
|
|
|
24433
24435
|
}
|
|
24434
24436
|
toJSON(data) {
|
|
24435
24437
|
data = typeof data === 'object' ? data : {};
|
|
24436
|
-
data["
|
|
24438
|
+
data["workOrderId"] = this.workOrderId;
|
|
24437
24439
|
if (Array.isArray(this.trackingEvents)) {
|
|
24438
24440
|
data["trackingEvents"] = [];
|
|
24439
24441
|
for (let item of this.trackingEvents)
|
|
24440
24442
|
data["trackingEvents"].push(item.toJSON());
|
|
24441
24443
|
}
|
|
24444
|
+
data["part"] = this.part ? this.part.toJSON() : undefined;
|
|
24442
24445
|
return data;
|
|
24443
24446
|
}
|
|
24444
24447
|
}
|
|
@@ -32990,9 +32993,9 @@ export class WorkOrderAttachmentDto {
|
|
|
32990
32993
|
}
|
|
32991
32994
|
init(_data) {
|
|
32992
32995
|
if (_data) {
|
|
32993
|
-
this.createdBy = _data["createdBy"];
|
|
32996
|
+
this.createdBy = _data["createdBy"] ? UserDto.fromJS(_data["createdBy"]) : undefined;
|
|
32994
32997
|
this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined;
|
|
32995
|
-
this.modifiedBy = _data["modifiedBy"];
|
|
32998
|
+
this.modifiedBy = _data["modifiedBy"] ? UserDto.fromJS(_data["modifiedBy"]) : undefined;
|
|
32996
32999
|
this.modified = _data["modified"] ? new Date(_data["modified"].toString()) : undefined;
|
|
32997
33000
|
this.name = _data["name"];
|
|
32998
33001
|
this.notes = _data["notes"];
|
|
@@ -33007,9 +33010,9 @@ export class WorkOrderAttachmentDto {
|
|
|
33007
33010
|
}
|
|
33008
33011
|
toJSON(data) {
|
|
33009
33012
|
data = typeof data === 'object' ? data : {};
|
|
33010
|
-
data["createdBy"] = this.createdBy;
|
|
33013
|
+
data["createdBy"] = this.createdBy ? this.createdBy.toJSON() : undefined;
|
|
33011
33014
|
data["created"] = this.created ? this.created.toISOString() : undefined;
|
|
33012
|
-
data["modifiedBy"] = this.modifiedBy;
|
|
33015
|
+
data["modifiedBy"] = this.modifiedBy ? this.modifiedBy.toJSON() : undefined;
|
|
33013
33016
|
data["modified"] = this.modified ? this.modified.toISOString() : undefined;
|
|
33014
33017
|
data["name"] = this.name;
|
|
33015
33018
|
data["notes"] = this.notes;
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -6084,7 +6084,7 @@ 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, workOrderId: string | null | undefined): Promise<LocationDto[]>;
|
|
6088
6088
|
}
|
|
6089
6089
|
|
|
6090
6090
|
export class LocateLocationsClient extends AuthorizedApiBase implements ILocateLocationsClient {
|
|
@@ -6098,7 +6098,7 @@ export class LocateLocationsClient extends AuthorizedApiBase implements ILocateL
|
|
|
6098
6098
|
this.baseUrl = baseUrl ?? "";
|
|
6099
6099
|
}
|
|
6100
6100
|
|
|
6101
|
-
searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | undefined,
|
|
6101
|
+
searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | undefined, workOrderId: string | null | undefined): Promise<LocationDto[]> {
|
|
6102
6102
|
let url_ = this.baseUrl + "/locate/locations/search?";
|
|
6103
6103
|
if (input !== undefined && input !== null)
|
|
6104
6104
|
url_ += "input=" + encodeURIComponent("" + input) + "&";
|
|
@@ -6106,8 +6106,8 @@ export class LocateLocationsClient extends AuthorizedApiBase implements ILocateL
|
|
|
6106
6106
|
throw new Error("The parameter 'locationKinds' cannot be null.");
|
|
6107
6107
|
else if (locationKinds !== undefined)
|
|
6108
6108
|
locationKinds && locationKinds.forEach(item => { url_ += "locationKinds=" + encodeURIComponent("" + item) + "&"; });
|
|
6109
|
-
if (
|
|
6110
|
-
url_ += "
|
|
6109
|
+
if (workOrderId !== undefined && workOrderId !== null)
|
|
6110
|
+
url_ += "workOrderId=" + encodeURIComponent("" + workOrderId) + "&";
|
|
6111
6111
|
url_ = url_.replace(/[?&]$/, "");
|
|
6112
6112
|
|
|
6113
6113
|
let options_: RequestInit = {
|
|
@@ -6149,7 +6149,7 @@ export class LocateLocationsClient extends AuthorizedApiBase implements ILocateL
|
|
|
6149
6149
|
|
|
6150
6150
|
export interface ILocateOrdersClient {
|
|
6151
6151
|
|
|
6152
|
-
searchOrders(input: string | null | undefined): Promise<
|
|
6152
|
+
searchOrders(input: string | null | undefined): Promise<SearchWorkOrderDto[]>;
|
|
6153
6153
|
}
|
|
6154
6154
|
|
|
6155
6155
|
export class LocateOrdersClient extends AuthorizedApiBase implements ILocateOrdersClient {
|
|
@@ -6163,7 +6163,7 @@ export class LocateOrdersClient extends AuthorizedApiBase implements ILocateOrde
|
|
|
6163
6163
|
this.baseUrl = baseUrl ?? "";
|
|
6164
6164
|
}
|
|
6165
6165
|
|
|
6166
|
-
searchOrders(input: string | null | undefined): Promise<
|
|
6166
|
+
searchOrders(input: string | null | undefined): Promise<SearchWorkOrderDto[]> {
|
|
6167
6167
|
let url_ = this.baseUrl + "/locate/orders/search?";
|
|
6168
6168
|
if (input !== undefined && input !== null)
|
|
6169
6169
|
url_ += "input=" + encodeURIComponent("" + input) + "&";
|
|
@@ -6183,7 +6183,7 @@ export class LocateOrdersClient extends AuthorizedApiBase implements ILocateOrde
|
|
|
6183
6183
|
});
|
|
6184
6184
|
}
|
|
6185
6185
|
|
|
6186
|
-
protected processSearchOrders(response: Response): Promise<
|
|
6186
|
+
protected processSearchOrders(response: Response): Promise<SearchWorkOrderDto[]> {
|
|
6187
6187
|
const status = response.status;
|
|
6188
6188
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
6189
6189
|
if (status === 200) {
|
|
@@ -6193,7 +6193,7 @@ export class LocateOrdersClient extends AuthorizedApiBase implements ILocateOrde
|
|
|
6193
6193
|
if (Array.isArray(resultData200)) {
|
|
6194
6194
|
result200 = [] as any;
|
|
6195
6195
|
for (let item of resultData200)
|
|
6196
|
-
result200!.push(
|
|
6196
|
+
result200!.push(SearchWorkOrderDto.fromJS(item));
|
|
6197
6197
|
}
|
|
6198
6198
|
return result200;
|
|
6199
6199
|
});
|
|
@@ -6202,19 +6202,19 @@ export class LocateOrdersClient extends AuthorizedApiBase implements ILocateOrde
|
|
|
6202
6202
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6203
6203
|
});
|
|
6204
6204
|
}
|
|
6205
|
-
return Promise.resolve<
|
|
6205
|
+
return Promise.resolve<SearchWorkOrderDto[]>(null as any);
|
|
6206
6206
|
}
|
|
6207
6207
|
}
|
|
6208
6208
|
|
|
6209
6209
|
export interface ILocateTrackingClient {
|
|
6210
6210
|
|
|
6211
|
-
listTrackingHistory(
|
|
6211
|
+
listTrackingHistory(workOrderId: string): Promise<TrackingHistoryDto>;
|
|
6212
6212
|
|
|
6213
|
-
createTrackingEvent(
|
|
6213
|
+
createTrackingEvent(workOrderId: string, locateTrackingUpdate: TrackingUpdateDto): Promise<TrackingHistoryDto>;
|
|
6214
6214
|
|
|
6215
|
-
updateTrackingEvent(
|
|
6215
|
+
updateTrackingEvent(workOrderId: string, trackingEventId: number, locateTrackingUpdate: TrackingUpdateDto): Promise<TrackingHistoryDto>;
|
|
6216
6216
|
|
|
6217
|
-
createLabel(
|
|
6217
|
+
createLabel(workOrderId: string, palletCount: number | undefined): Promise<FileResponse>;
|
|
6218
6218
|
}
|
|
6219
6219
|
|
|
6220
6220
|
export class LocateTrackingClient extends AuthorizedApiBase implements ILocateTrackingClient {
|
|
@@ -6228,11 +6228,11 @@ export class LocateTrackingClient extends AuthorizedApiBase implements ILocateTr
|
|
|
6228
6228
|
this.baseUrl = baseUrl ?? "";
|
|
6229
6229
|
}
|
|
6230
6230
|
|
|
6231
|
-
listTrackingHistory(
|
|
6232
|
-
let url_ = this.baseUrl + "/locate/tracking/{
|
|
6233
|
-
if (
|
|
6234
|
-
throw new Error("The parameter '
|
|
6235
|
-
url_ = url_.replace("{
|
|
6231
|
+
listTrackingHistory(workOrderId: string): Promise<TrackingHistoryDto> {
|
|
6232
|
+
let url_ = this.baseUrl + "/locate/tracking/{workOrderId}";
|
|
6233
|
+
if (workOrderId === undefined || workOrderId === null)
|
|
6234
|
+
throw new Error("The parameter 'workOrderId' must be defined.");
|
|
6235
|
+
url_ = url_.replace("{workOrderId}", encodeURIComponent("" + workOrderId));
|
|
6236
6236
|
url_ = url_.replace(/[?&]$/, "");
|
|
6237
6237
|
|
|
6238
6238
|
let options_: RequestInit = {
|
|
@@ -6267,11 +6267,11 @@ export class LocateTrackingClient extends AuthorizedApiBase implements ILocateTr
|
|
|
6267
6267
|
return Promise.resolve<TrackingHistoryDto>(null as any);
|
|
6268
6268
|
}
|
|
6269
6269
|
|
|
6270
|
-
createTrackingEvent(
|
|
6271
|
-
let url_ = this.baseUrl + "/locate/tracking/{
|
|
6272
|
-
if (
|
|
6273
|
-
throw new Error("The parameter '
|
|
6274
|
-
url_ = url_.replace("{
|
|
6270
|
+
createTrackingEvent(workOrderId: string, locateTrackingUpdate: TrackingUpdateDto): Promise<TrackingHistoryDto> {
|
|
6271
|
+
let url_ = this.baseUrl + "/locate/tracking/{workOrderId}";
|
|
6272
|
+
if (workOrderId === undefined || workOrderId === null)
|
|
6273
|
+
throw new Error("The parameter 'workOrderId' must be defined.");
|
|
6274
|
+
url_ = url_.replace("{workOrderId}", encodeURIComponent("" + workOrderId));
|
|
6275
6275
|
url_ = url_.replace(/[?&]$/, "");
|
|
6276
6276
|
|
|
6277
6277
|
const content_ = JSON.stringify(locateTrackingUpdate);
|
|
@@ -6310,11 +6310,11 @@ export class LocateTrackingClient extends AuthorizedApiBase implements ILocateTr
|
|
|
6310
6310
|
return Promise.resolve<TrackingHistoryDto>(null as any);
|
|
6311
6311
|
}
|
|
6312
6312
|
|
|
6313
|
-
updateTrackingEvent(
|
|
6314
|
-
let url_ = this.baseUrl + "/locate/tracking/{
|
|
6315
|
-
if (
|
|
6316
|
-
throw new Error("The parameter '
|
|
6317
|
-
url_ = url_.replace("{
|
|
6313
|
+
updateTrackingEvent(workOrderId: string, trackingEventId: number, locateTrackingUpdate: TrackingUpdateDto): Promise<TrackingHistoryDto> {
|
|
6314
|
+
let url_ = this.baseUrl + "/locate/tracking/{workOrderId}/{trackingEventId}";
|
|
6315
|
+
if (workOrderId === undefined || workOrderId === null)
|
|
6316
|
+
throw new Error("The parameter 'workOrderId' must be defined.");
|
|
6317
|
+
url_ = url_.replace("{workOrderId}", encodeURIComponent("" + workOrderId));
|
|
6318
6318
|
if (trackingEventId === undefined || trackingEventId === null)
|
|
6319
6319
|
throw new Error("The parameter 'trackingEventId' must be defined.");
|
|
6320
6320
|
url_ = url_.replace("{trackingEventId}", encodeURIComponent("" + trackingEventId));
|
|
@@ -6356,11 +6356,11 @@ export class LocateTrackingClient extends AuthorizedApiBase implements ILocateTr
|
|
|
6356
6356
|
return Promise.resolve<TrackingHistoryDto>(null as any);
|
|
6357
6357
|
}
|
|
6358
6358
|
|
|
6359
|
-
createLabel(
|
|
6360
|
-
let url_ = this.baseUrl + "/locate/tracking/{
|
|
6361
|
-
if (
|
|
6362
|
-
throw new Error("The parameter '
|
|
6363
|
-
url_ = url_.replace("{
|
|
6359
|
+
createLabel(workOrderId: string, palletCount: number | undefined): Promise<FileResponse> {
|
|
6360
|
+
let url_ = this.baseUrl + "/locate/tracking/{workOrderId}/label?";
|
|
6361
|
+
if (workOrderId === undefined || workOrderId === null)
|
|
6362
|
+
throw new Error("The parameter 'workOrderId' must be defined.");
|
|
6363
|
+
url_ = url_.replace("{workOrderId}", encodeURIComponent("" + workOrderId));
|
|
6364
6364
|
if (palletCount === null)
|
|
6365
6365
|
throw new Error("The parameter 'palletCount' cannot be null.");
|
|
6366
6366
|
else if (palletCount !== undefined)
|
|
@@ -28346,7 +28346,7 @@ export class BookingResponseDto implements IBookingResponseDto {
|
|
|
28346
28346
|
requestedBy!: string;
|
|
28347
28347
|
bookingType!: BookingTypeDto;
|
|
28348
28348
|
bookingStatus!: BookingStatusDto;
|
|
28349
|
-
|
|
28349
|
+
workOrderId!: string;
|
|
28350
28350
|
palletCount!: number;
|
|
28351
28351
|
fromLocation!: string;
|
|
28352
28352
|
toLocation!: string;
|
|
@@ -28374,7 +28374,7 @@ export class BookingResponseDto implements IBookingResponseDto {
|
|
|
28374
28374
|
this.requestedBy = _data["requestedBy"];
|
|
28375
28375
|
this.bookingType = _data["bookingType"];
|
|
28376
28376
|
this.bookingStatus = _data["bookingStatus"];
|
|
28377
|
-
this.
|
|
28377
|
+
this.workOrderId = _data["workOrderId"];
|
|
28378
28378
|
this.palletCount = _data["palletCount"];
|
|
28379
28379
|
this.fromLocation = _data["fromLocation"];
|
|
28380
28380
|
this.toLocation = _data["toLocation"];
|
|
@@ -28402,7 +28402,7 @@ export class BookingResponseDto implements IBookingResponseDto {
|
|
|
28402
28402
|
data["requestedBy"] = this.requestedBy;
|
|
28403
28403
|
data["bookingType"] = this.bookingType;
|
|
28404
28404
|
data["bookingStatus"] = this.bookingStatus;
|
|
28405
|
-
data["
|
|
28405
|
+
data["workOrderId"] = this.workOrderId;
|
|
28406
28406
|
data["palletCount"] = this.palletCount;
|
|
28407
28407
|
data["fromLocation"] = this.fromLocation;
|
|
28408
28408
|
data["toLocation"] = this.toLocation;
|
|
@@ -28423,7 +28423,7 @@ export interface IBookingResponseDto {
|
|
|
28423
28423
|
requestedBy: string;
|
|
28424
28424
|
bookingType: BookingTypeDto;
|
|
28425
28425
|
bookingStatus: BookingStatusDto;
|
|
28426
|
-
|
|
28426
|
+
workOrderId: string;
|
|
28427
28427
|
palletCount: number;
|
|
28428
28428
|
fromLocation: string;
|
|
28429
28429
|
toLocation: string;
|
|
@@ -28444,7 +28444,7 @@ export class BookingRequestDto implements IBookingRequestDto {
|
|
|
28444
28444
|
requestedDate!: Date;
|
|
28445
28445
|
requestedBy!: string;
|
|
28446
28446
|
bookingType!: BookingTypeDto;
|
|
28447
|
-
|
|
28447
|
+
workOrderId!: string;
|
|
28448
28448
|
palletCount!: number;
|
|
28449
28449
|
fromLocation!: string;
|
|
28450
28450
|
toLocation!: string;
|
|
@@ -28470,7 +28470,7 @@ export class BookingRequestDto implements IBookingRequestDto {
|
|
|
28470
28470
|
this.requestedDate = _data["requestedDate"] ? new Date(_data["requestedDate"].toString()) : <any>undefined;
|
|
28471
28471
|
this.requestedBy = _data["requestedBy"];
|
|
28472
28472
|
this.bookingType = _data["bookingType"];
|
|
28473
|
-
this.
|
|
28473
|
+
this.workOrderId = _data["workOrderId"];
|
|
28474
28474
|
this.palletCount = _data["palletCount"];
|
|
28475
28475
|
this.fromLocation = _data["fromLocation"];
|
|
28476
28476
|
this.toLocation = _data["toLocation"];
|
|
@@ -28496,7 +28496,7 @@ export class BookingRequestDto implements IBookingRequestDto {
|
|
|
28496
28496
|
data["requestedDate"] = this.requestedDate ? this.requestedDate.toISOString() : <any>undefined;
|
|
28497
28497
|
data["requestedBy"] = this.requestedBy;
|
|
28498
28498
|
data["bookingType"] = this.bookingType;
|
|
28499
|
-
data["
|
|
28499
|
+
data["workOrderId"] = this.workOrderId;
|
|
28500
28500
|
data["palletCount"] = this.palletCount;
|
|
28501
28501
|
data["fromLocation"] = this.fromLocation;
|
|
28502
28502
|
data["toLocation"] = this.toLocation;
|
|
@@ -28515,7 +28515,7 @@ export interface IBookingRequestDto {
|
|
|
28515
28515
|
requestedDate: Date;
|
|
28516
28516
|
requestedBy: string;
|
|
28517
28517
|
bookingType: BookingTypeDto;
|
|
28518
|
-
|
|
28518
|
+
workOrderId: string;
|
|
28519
28519
|
palletCount: number;
|
|
28520
28520
|
fromLocation: string;
|
|
28521
28521
|
toLocation: string;
|
|
@@ -28665,12 +28665,12 @@ export interface ILocationDto {
|
|
|
28665
28665
|
|
|
28666
28666
|
export type LocationKindDto = "Warehouse" | "Zone" | "Location";
|
|
28667
28667
|
|
|
28668
|
-
export class
|
|
28669
|
-
|
|
28668
|
+
export class SearchWorkOrderDto implements ISearchWorkOrderDto {
|
|
28669
|
+
workOrderId!: string;
|
|
28670
28670
|
partName?: string | null;
|
|
28671
28671
|
partNumber?: string | null;
|
|
28672
28672
|
|
|
28673
|
-
constructor(data?:
|
|
28673
|
+
constructor(data?: ISearchWorkOrderDto) {
|
|
28674
28674
|
if (data) {
|
|
28675
28675
|
for (var property in data) {
|
|
28676
28676
|
if (data.hasOwnProperty(property))
|
|
@@ -28681,37 +28681,38 @@ export class OrderDto implements IOrderDto {
|
|
|
28681
28681
|
|
|
28682
28682
|
init(_data?: any) {
|
|
28683
28683
|
if (_data) {
|
|
28684
|
-
this.
|
|
28684
|
+
this.workOrderId = _data["workOrderId"];
|
|
28685
28685
|
this.partName = _data["partName"];
|
|
28686
28686
|
this.partNumber = _data["partNumber"];
|
|
28687
28687
|
}
|
|
28688
28688
|
}
|
|
28689
28689
|
|
|
28690
|
-
static fromJS(data: any):
|
|
28690
|
+
static fromJS(data: any): SearchWorkOrderDto {
|
|
28691
28691
|
data = typeof data === 'object' ? data : {};
|
|
28692
|
-
let result = new
|
|
28692
|
+
let result = new SearchWorkOrderDto();
|
|
28693
28693
|
result.init(data);
|
|
28694
28694
|
return result;
|
|
28695
28695
|
}
|
|
28696
28696
|
|
|
28697
28697
|
toJSON(data?: any) {
|
|
28698
28698
|
data = typeof data === 'object' ? data : {};
|
|
28699
|
-
data["
|
|
28699
|
+
data["workOrderId"] = this.workOrderId;
|
|
28700
28700
|
data["partName"] = this.partName;
|
|
28701
28701
|
data["partNumber"] = this.partNumber;
|
|
28702
28702
|
return data;
|
|
28703
28703
|
}
|
|
28704
28704
|
}
|
|
28705
28705
|
|
|
28706
|
-
export interface
|
|
28707
|
-
|
|
28706
|
+
export interface ISearchWorkOrderDto {
|
|
28707
|
+
workOrderId: string;
|
|
28708
28708
|
partName?: string | null;
|
|
28709
28709
|
partNumber?: string | null;
|
|
28710
28710
|
}
|
|
28711
28711
|
|
|
28712
28712
|
export class TrackingHistoryDto implements ITrackingHistoryDto {
|
|
28713
|
-
|
|
28713
|
+
workOrderId!: string;
|
|
28714
28714
|
trackingEvents!: TrackingEventDto[];
|
|
28715
|
+
part!: PartDto;
|
|
28715
28716
|
|
|
28716
28717
|
constructor(data?: ITrackingHistoryDto) {
|
|
28717
28718
|
if (data) {
|
|
@@ -28722,17 +28723,19 @@ export class TrackingHistoryDto implements ITrackingHistoryDto {
|
|
|
28722
28723
|
}
|
|
28723
28724
|
if (!data) {
|
|
28724
28725
|
this.trackingEvents = [];
|
|
28726
|
+
this.part = new PartDto();
|
|
28725
28727
|
}
|
|
28726
28728
|
}
|
|
28727
28729
|
|
|
28728
28730
|
init(_data?: any) {
|
|
28729
28731
|
if (_data) {
|
|
28730
|
-
this.
|
|
28732
|
+
this.workOrderId = _data["workOrderId"];
|
|
28731
28733
|
if (Array.isArray(_data["trackingEvents"])) {
|
|
28732
28734
|
this.trackingEvents = [] as any;
|
|
28733
28735
|
for (let item of _data["trackingEvents"])
|
|
28734
28736
|
this.trackingEvents!.push(TrackingEventDto.fromJS(item));
|
|
28735
28737
|
}
|
|
28738
|
+
this.part = _data["part"] ? PartDto.fromJS(_data["part"]) : new PartDto();
|
|
28736
28739
|
}
|
|
28737
28740
|
}
|
|
28738
28741
|
|
|
@@ -28745,19 +28748,21 @@ export class TrackingHistoryDto implements ITrackingHistoryDto {
|
|
|
28745
28748
|
|
|
28746
28749
|
toJSON(data?: any) {
|
|
28747
28750
|
data = typeof data === 'object' ? data : {};
|
|
28748
|
-
data["
|
|
28751
|
+
data["workOrderId"] = this.workOrderId;
|
|
28749
28752
|
if (Array.isArray(this.trackingEvents)) {
|
|
28750
28753
|
data["trackingEvents"] = [];
|
|
28751
28754
|
for (let item of this.trackingEvents)
|
|
28752
28755
|
data["trackingEvents"].push(item.toJSON());
|
|
28753
28756
|
}
|
|
28757
|
+
data["part"] = this.part ? this.part.toJSON() : <any>undefined;
|
|
28754
28758
|
return data;
|
|
28755
28759
|
}
|
|
28756
28760
|
}
|
|
28757
28761
|
|
|
28758
28762
|
export interface ITrackingHistoryDto {
|
|
28759
|
-
|
|
28763
|
+
workOrderId: string;
|
|
28760
28764
|
trackingEvents: TrackingEventDto[];
|
|
28765
|
+
part: PartDto;
|
|
28761
28766
|
}
|
|
28762
28767
|
|
|
28763
28768
|
export class TrackingEventDto implements ITrackingEventDto {
|
|
@@ -41800,9 +41805,9 @@ export interface IWarehouseLocationDto {
|
|
|
41800
41805
|
}
|
|
41801
41806
|
|
|
41802
41807
|
export class WorkOrderAttachmentDto implements IWorkOrderAttachmentDto {
|
|
41803
|
-
createdBy?:
|
|
41808
|
+
createdBy?: UserDto | null;
|
|
41804
41809
|
created?: Date | null;
|
|
41805
|
-
modifiedBy?:
|
|
41810
|
+
modifiedBy?: UserDto | null;
|
|
41806
41811
|
modified?: Date | null;
|
|
41807
41812
|
name?: string | null;
|
|
41808
41813
|
notes?: string | null;
|
|
@@ -41819,9 +41824,9 @@ export class WorkOrderAttachmentDto implements IWorkOrderAttachmentDto {
|
|
|
41819
41824
|
|
|
41820
41825
|
init(_data?: any) {
|
|
41821
41826
|
if (_data) {
|
|
41822
|
-
this.createdBy = _data["createdBy"];
|
|
41827
|
+
this.createdBy = _data["createdBy"] ? UserDto.fromJS(_data["createdBy"]) : <any>undefined;
|
|
41823
41828
|
this.created = _data["created"] ? new Date(_data["created"].toString()) : <any>undefined;
|
|
41824
|
-
this.modifiedBy = _data["modifiedBy"];
|
|
41829
|
+
this.modifiedBy = _data["modifiedBy"] ? UserDto.fromJS(_data["modifiedBy"]) : <any>undefined;
|
|
41825
41830
|
this.modified = _data["modified"] ? new Date(_data["modified"].toString()) : <any>undefined;
|
|
41826
41831
|
this.name = _data["name"];
|
|
41827
41832
|
this.notes = _data["notes"];
|
|
@@ -41838,9 +41843,9 @@ export class WorkOrderAttachmentDto implements IWorkOrderAttachmentDto {
|
|
|
41838
41843
|
|
|
41839
41844
|
toJSON(data?: any) {
|
|
41840
41845
|
data = typeof data === 'object' ? data : {};
|
|
41841
|
-
data["createdBy"] = this.createdBy;
|
|
41846
|
+
data["createdBy"] = this.createdBy ? this.createdBy.toJSON() : <any>undefined;
|
|
41842
41847
|
data["created"] = this.created ? this.created.toISOString() : <any>undefined;
|
|
41843
|
-
data["modifiedBy"] = this.modifiedBy;
|
|
41848
|
+
data["modifiedBy"] = this.modifiedBy ? this.modifiedBy.toJSON() : <any>undefined;
|
|
41844
41849
|
data["modified"] = this.modified ? this.modified.toISOString() : <any>undefined;
|
|
41845
41850
|
data["name"] = this.name;
|
|
41846
41851
|
data["notes"] = this.notes;
|
|
@@ -41850,9 +41855,9 @@ export class WorkOrderAttachmentDto implements IWorkOrderAttachmentDto {
|
|
|
41850
41855
|
}
|
|
41851
41856
|
|
|
41852
41857
|
export interface IWorkOrderAttachmentDto {
|
|
41853
|
-
createdBy?:
|
|
41858
|
+
createdBy?: UserDto | null;
|
|
41854
41859
|
created?: Date | null;
|
|
41855
|
-
modifiedBy?:
|
|
41860
|
+
modifiedBy?: UserDto | null;
|
|
41856
41861
|
modified?: Date | null;
|
|
41857
41862
|
name?: string | null;
|
|
41858
41863
|
notes?: string | null;
|