@ignos/api-client 20240529.0.9369 → 20240603.0.9392
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 +40 -14
- package/lib/ignosportal-api.js +149 -20
- package/package.json +1 -1
- package/src/ignosportal-api.ts +181 -29
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -533,6 +533,7 @@ export interface IMoveBookingClient {
|
|
|
533
533
|
listBookings(request: BookingRequestListDto): Promise<BookingListDto>;
|
|
534
534
|
getBooking(bookingId: string): Promise<BookingDto>;
|
|
535
535
|
updateBooking(bookingId: string, bookingRequest: BookingRequestDto): Promise<BookingDto>;
|
|
536
|
+
getWorkOrderBooking(workOrderId: string): Promise<BookingDto[]>;
|
|
536
537
|
createBooking(bookingRequest: BookingRequestDto): Promise<BookingDto>;
|
|
537
538
|
cancelBooking(bookingUpdate: BookingUpdateDto): Promise<BookingDto>;
|
|
538
539
|
startDelivery(bookingUpdate: BookingUpdateDto): Promise<BookingDto>;
|
|
@@ -551,6 +552,8 @@ export declare class MoveBookingClient extends AuthorizedApiBase implements IMov
|
|
|
551
552
|
protected processGetBooking(response: Response): Promise<BookingDto>;
|
|
552
553
|
updateBooking(bookingId: string, bookingRequest: BookingRequestDto): Promise<BookingDto>;
|
|
553
554
|
protected processUpdateBooking(response: Response): Promise<BookingDto>;
|
|
555
|
+
getWorkOrderBooking(workOrderId: string): Promise<BookingDto[]>;
|
|
556
|
+
protected processGetWorkOrderBooking(response: Response): Promise<BookingDto[]>;
|
|
554
557
|
createBooking(bookingRequest: BookingRequestDto): Promise<BookingDto>;
|
|
555
558
|
protected processCreateBooking(response: Response): Promise<BookingDto>;
|
|
556
559
|
cancelBooking(bookingUpdate: BookingUpdateDto): Promise<BookingDto>;
|
|
@@ -577,11 +580,12 @@ export declare class MoveLocationsClient extends AuthorizedApiBase implements IM
|
|
|
577
580
|
protected processSuggestionsLocations(response: Response): Promise<LocationDto[]>;
|
|
578
581
|
}
|
|
579
582
|
export interface IMoveTrackingClient {
|
|
580
|
-
|
|
581
|
-
|
|
583
|
+
getTrackingHistory(trackingId: string): Promise<TrackingHistoryDto>;
|
|
584
|
+
getWorkOrderTrackingHistory(workOrderId: string): Promise<TrackingWorkOrderDto>;
|
|
585
|
+
listWorkOrderTrackingHistory(workOrderIds: string[]): Promise<TrackingWorkOrderDto[]>;
|
|
582
586
|
createTrackingEvents(trackingUpdates: TrackingUpdateDto[]): Promise<void>;
|
|
583
587
|
createTrackingHistory(trackingUpdates: TrackingHistoryUpdateDto[]): Promise<void>;
|
|
584
|
-
deleteTrackingHistory(
|
|
588
|
+
deleteTrackingHistory(trackingId: string): Promise<void>;
|
|
585
589
|
createLabel(workOrderId: string, palletCount: number | undefined): Promise<FileResponse>;
|
|
586
590
|
}
|
|
587
591
|
export declare class MoveTrackingClient extends AuthorizedApiBase implements IMoveTrackingClient {
|
|
@@ -591,15 +595,17 @@ export declare class MoveTrackingClient extends AuthorizedApiBase implements IMo
|
|
|
591
595
|
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
|
|
592
596
|
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
593
597
|
});
|
|
594
|
-
|
|
595
|
-
protected
|
|
596
|
-
|
|
597
|
-
protected
|
|
598
|
+
getTrackingHistory(trackingId: string): Promise<TrackingHistoryDto>;
|
|
599
|
+
protected processGetTrackingHistory(response: Response): Promise<TrackingHistoryDto>;
|
|
600
|
+
getWorkOrderTrackingHistory(workOrderId: string): Promise<TrackingWorkOrderDto>;
|
|
601
|
+
protected processGetWorkOrderTrackingHistory(response: Response): Promise<TrackingWorkOrderDto>;
|
|
602
|
+
listWorkOrderTrackingHistory(workOrderIds: string[]): Promise<TrackingWorkOrderDto[]>;
|
|
603
|
+
protected processListWorkOrderTrackingHistory(response: Response): Promise<TrackingWorkOrderDto[]>;
|
|
598
604
|
createTrackingEvents(trackingUpdates: TrackingUpdateDto[]): Promise<void>;
|
|
599
605
|
protected processCreateTrackingEvents(response: Response): Promise<void>;
|
|
600
606
|
createTrackingHistory(trackingUpdates: TrackingHistoryUpdateDto[]): Promise<void>;
|
|
601
607
|
protected processCreateTrackingHistory(response: Response): Promise<void>;
|
|
602
|
-
deleteTrackingHistory(
|
|
608
|
+
deleteTrackingHistory(trackingId: string): Promise<void>;
|
|
603
609
|
protected processDeleteTrackingHistory(response: Response): Promise<void>;
|
|
604
610
|
createLabel(workOrderId: string, palletCount: number | undefined): Promise<FileResponse>;
|
|
605
611
|
protected processCreateLabel(response: Response): Promise<FileResponse>;
|
|
@@ -4152,6 +4158,7 @@ export interface ILocationDto {
|
|
|
4152
4158
|
}
|
|
4153
4159
|
export type LocationKindDto = "Warehouse" | "Zone" | "Location";
|
|
4154
4160
|
export declare class BookingRequestListDto implements IBookingRequestListDto {
|
|
4161
|
+
bookingStatusFilter?: BookingStatusDto[] | null;
|
|
4155
4162
|
continuationToken?: string | null;
|
|
4156
4163
|
constructor(data?: IBookingRequestListDto);
|
|
4157
4164
|
init(_data?: any): void;
|
|
@@ -4159,6 +4166,7 @@ export declare class BookingRequestListDto implements IBookingRequestListDto {
|
|
|
4159
4166
|
toJSON(data?: any): any;
|
|
4160
4167
|
}
|
|
4161
4168
|
export interface IBookingRequestListDto {
|
|
4169
|
+
bookingStatusFilter?: BookingStatusDto[] | null;
|
|
4162
4170
|
continuationToken?: string | null;
|
|
4163
4171
|
}
|
|
4164
4172
|
export declare class BookingRequestDto implements IBookingRequestDto {
|
|
@@ -4179,6 +4187,7 @@ export interface IBookingRequestDto {
|
|
|
4179
4187
|
}
|
|
4180
4188
|
export declare class BookingItemRequestDto implements IBookingItemRequestDto {
|
|
4181
4189
|
trackingId: string;
|
|
4190
|
+
comment?: string | null;
|
|
4182
4191
|
constructor(data?: IBookingItemRequestDto);
|
|
4183
4192
|
init(_data?: any): void;
|
|
4184
4193
|
static fromJS(data: any): BookingItemRequestDto;
|
|
@@ -4186,6 +4195,7 @@ export declare class BookingItemRequestDto implements IBookingItemRequestDto {
|
|
|
4186
4195
|
}
|
|
4187
4196
|
export interface IBookingItemRequestDto {
|
|
4188
4197
|
trackingId: string;
|
|
4198
|
+
comment?: string | null;
|
|
4189
4199
|
}
|
|
4190
4200
|
export declare class BookingUpdateDto implements IBookingUpdateDto {
|
|
4191
4201
|
bookingId: string;
|
|
@@ -4248,7 +4258,7 @@ export declare class TrackingEventDto implements ITrackingEventDto {
|
|
|
4248
4258
|
created: Date;
|
|
4249
4259
|
createdBy: string;
|
|
4250
4260
|
createdById: string;
|
|
4251
|
-
location
|
|
4261
|
+
location?: LocationDto | null;
|
|
4252
4262
|
status: TrackingStatusDto;
|
|
4253
4263
|
bookingId?: string | null;
|
|
4254
4264
|
comment?: string | null;
|
|
@@ -4262,7 +4272,7 @@ export interface ITrackingEventDto {
|
|
|
4262
4272
|
created: Date;
|
|
4263
4273
|
createdBy: string;
|
|
4264
4274
|
createdById: string;
|
|
4265
|
-
location
|
|
4275
|
+
location?: LocationDto | null;
|
|
4266
4276
|
status: TrackingStatusDto;
|
|
4267
4277
|
bookingId?: string | null;
|
|
4268
4278
|
comment?: string | null;
|
|
@@ -4298,8 +4308,6 @@ export interface ITrackingUpdateDto {
|
|
|
4298
4308
|
}
|
|
4299
4309
|
export declare class TrackingHistoryUpdateDto implements ITrackingHistoryUpdateDto {
|
|
4300
4310
|
workOrderId: string;
|
|
4301
|
-
locationId: string;
|
|
4302
|
-
comment?: string | null;
|
|
4303
4311
|
constructor(data?: ITrackingHistoryUpdateDto);
|
|
4304
4312
|
init(_data?: any): void;
|
|
4305
4313
|
static fromJS(data: any): TrackingHistoryUpdateDto;
|
|
@@ -4307,8 +4315,6 @@ export declare class TrackingHistoryUpdateDto implements ITrackingHistoryUpdateD
|
|
|
4307
4315
|
}
|
|
4308
4316
|
export interface ITrackingHistoryUpdateDto {
|
|
4309
4317
|
workOrderId: string;
|
|
4310
|
-
locationId: string;
|
|
4311
|
-
comment?: string | null;
|
|
4312
4318
|
}
|
|
4313
4319
|
export declare class SearchWorkOrderDto implements ISearchWorkOrderDto {
|
|
4314
4320
|
workOrderId: string;
|
|
@@ -5193,6 +5199,7 @@ export interface IFactoryUtilizationDto {
|
|
|
5193
5199
|
export declare class UtilizationDto implements IUtilizationDto {
|
|
5194
5200
|
powerOn: PowerOnUtilizationV2Dto;
|
|
5195
5201
|
uptimeDowntimes: UptimeDowntimesDto;
|
|
5202
|
+
twentyFourSeven: TwentyFourSevenUtilizationDto;
|
|
5196
5203
|
constructor(data?: IUtilizationDto);
|
|
5197
5204
|
init(_data?: any): void;
|
|
5198
5205
|
static fromJS(data: any): UtilizationDto;
|
|
@@ -5201,6 +5208,7 @@ export declare class UtilizationDto implements IUtilizationDto {
|
|
|
5201
5208
|
export interface IUtilizationDto {
|
|
5202
5209
|
powerOn: PowerOnUtilizationV2Dto;
|
|
5203
5210
|
uptimeDowntimes: UptimeDowntimesDto;
|
|
5211
|
+
twentyFourSeven: TwentyFourSevenUtilizationDto;
|
|
5204
5212
|
}
|
|
5205
5213
|
export declare class PowerOnUtilizationV2Dto implements IPowerOnUtilizationV2Dto {
|
|
5206
5214
|
today?: number | null;
|
|
@@ -5244,6 +5252,7 @@ export declare class UptimeDowntimeDto implements IUptimeDowntimeDto {
|
|
|
5244
5252
|
uptimeInSeconds?: number | null;
|
|
5245
5253
|
downtimeInSeconds?: number | null;
|
|
5246
5254
|
powerOnTimeInSeconds?: number | null;
|
|
5255
|
+
twentyFourSevenTimeInSeconds?: number | null;
|
|
5247
5256
|
constructor(data?: IUptimeDowntimeDto);
|
|
5248
5257
|
init(_data?: any): void;
|
|
5249
5258
|
static fromJS(data: any): UptimeDowntimeDto;
|
|
@@ -5253,6 +5262,23 @@ export interface IUptimeDowntimeDto {
|
|
|
5253
5262
|
uptimeInSeconds?: number | null;
|
|
5254
5263
|
downtimeInSeconds?: number | null;
|
|
5255
5264
|
powerOnTimeInSeconds?: number | null;
|
|
5265
|
+
twentyFourSevenTimeInSeconds?: number | null;
|
|
5266
|
+
}
|
|
5267
|
+
export declare class TwentyFourSevenUtilizationDto implements ITwentyFourSevenUtilizationDto {
|
|
5268
|
+
sevenDays?: number | null;
|
|
5269
|
+
thirtyDays?: number | null;
|
|
5270
|
+
ninetyDays?: number | null;
|
|
5271
|
+
yearToDate?: number | null;
|
|
5272
|
+
constructor(data?: ITwentyFourSevenUtilizationDto);
|
|
5273
|
+
init(_data?: any): void;
|
|
5274
|
+
static fromJS(data: any): TwentyFourSevenUtilizationDto;
|
|
5275
|
+
toJSON(data?: any): any;
|
|
5276
|
+
}
|
|
5277
|
+
export interface ITwentyFourSevenUtilizationDto {
|
|
5278
|
+
sevenDays?: number | null;
|
|
5279
|
+
thirtyDays?: number | null;
|
|
5280
|
+
ninetyDays?: number | null;
|
|
5281
|
+
yearToDate?: number | null;
|
|
5256
5282
|
}
|
|
5257
5283
|
export declare class MachineGroupUtilizationDto implements IMachineGroupUtilizationDto {
|
|
5258
5284
|
name: string;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -3586,6 +3586,50 @@ export class MoveBookingClient extends AuthorizedApiBase {
|
|
|
3586
3586
|
}
|
|
3587
3587
|
return Promise.resolve(null);
|
|
3588
3588
|
}
|
|
3589
|
+
getWorkOrderBooking(workOrderId) {
|
|
3590
|
+
let url_ = this.baseUrl + "/move/booking/workorder/{workOrderId}";
|
|
3591
|
+
if (workOrderId === undefined || workOrderId === null)
|
|
3592
|
+
throw new Error("The parameter 'workOrderId' must be defined.");
|
|
3593
|
+
url_ = url_.replace("{workOrderId}", encodeURIComponent("" + workOrderId));
|
|
3594
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
3595
|
+
let options_ = {
|
|
3596
|
+
method: "GET",
|
|
3597
|
+
headers: {
|
|
3598
|
+
"Accept": "application/json"
|
|
3599
|
+
}
|
|
3600
|
+
};
|
|
3601
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
3602
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
3603
|
+
}).then((_response) => {
|
|
3604
|
+
return this.processGetWorkOrderBooking(_response);
|
|
3605
|
+
});
|
|
3606
|
+
}
|
|
3607
|
+
processGetWorkOrderBooking(response) {
|
|
3608
|
+
const status = response.status;
|
|
3609
|
+
let _headers = {};
|
|
3610
|
+
if (response.headers && response.headers.forEach) {
|
|
3611
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
3612
|
+
}
|
|
3613
|
+
;
|
|
3614
|
+
if (status === 200) {
|
|
3615
|
+
return response.text().then((_responseText) => {
|
|
3616
|
+
let result200 = null;
|
|
3617
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3618
|
+
if (Array.isArray(resultData200)) {
|
|
3619
|
+
result200 = [];
|
|
3620
|
+
for (let item of resultData200)
|
|
3621
|
+
result200.push(BookingDto.fromJS(item));
|
|
3622
|
+
}
|
|
3623
|
+
return result200;
|
|
3624
|
+
});
|
|
3625
|
+
}
|
|
3626
|
+
else if (status !== 200 && status !== 204) {
|
|
3627
|
+
return response.text().then((_responseText) => {
|
|
3628
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
3629
|
+
});
|
|
3630
|
+
}
|
|
3631
|
+
return Promise.resolve(null);
|
|
3632
|
+
}
|
|
3589
3633
|
createBooking(bookingRequest) {
|
|
3590
3634
|
let url_ = this.baseUrl + "/move/booking/book";
|
|
3591
3635
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -3856,7 +3900,7 @@ export class MoveTrackingClient extends AuthorizedApiBase {
|
|
|
3856
3900
|
this.http = http ? http : window;
|
|
3857
3901
|
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
3858
3902
|
}
|
|
3859
|
-
|
|
3903
|
+
getTrackingHistory(trackingId) {
|
|
3860
3904
|
let url_ = this.baseUrl + "/move/tracking/{trackingId}";
|
|
3861
3905
|
if (trackingId === undefined || trackingId === null)
|
|
3862
3906
|
throw new Error("The parameter 'trackingId' must be defined.");
|
|
@@ -3871,10 +3915,10 @@ export class MoveTrackingClient extends AuthorizedApiBase {
|
|
|
3871
3915
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
3872
3916
|
return this.http.fetch(url_, transformedOptions_);
|
|
3873
3917
|
}).then((_response) => {
|
|
3874
|
-
return this.
|
|
3918
|
+
return this.processGetTrackingHistory(_response);
|
|
3875
3919
|
});
|
|
3876
3920
|
}
|
|
3877
|
-
|
|
3921
|
+
processGetTrackingHistory(response) {
|
|
3878
3922
|
const status = response.status;
|
|
3879
3923
|
let _headers = {};
|
|
3880
3924
|
if (response.headers && response.headers.forEach) {
|
|
@@ -3896,7 +3940,7 @@ export class MoveTrackingClient extends AuthorizedApiBase {
|
|
|
3896
3940
|
}
|
|
3897
3941
|
return Promise.resolve(null);
|
|
3898
3942
|
}
|
|
3899
|
-
|
|
3943
|
+
getWorkOrderTrackingHistory(workOrderId) {
|
|
3900
3944
|
let url_ = this.baseUrl + "/move/tracking/workorder/{workOrderId}";
|
|
3901
3945
|
if (workOrderId === undefined || workOrderId === null)
|
|
3902
3946
|
throw new Error("The parameter 'workOrderId' must be defined.");
|
|
@@ -3908,6 +3952,46 @@ export class MoveTrackingClient extends AuthorizedApiBase {
|
|
|
3908
3952
|
"Accept": "application/json"
|
|
3909
3953
|
}
|
|
3910
3954
|
};
|
|
3955
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
3956
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
3957
|
+
}).then((_response) => {
|
|
3958
|
+
return this.processGetWorkOrderTrackingHistory(_response);
|
|
3959
|
+
});
|
|
3960
|
+
}
|
|
3961
|
+
processGetWorkOrderTrackingHistory(response) {
|
|
3962
|
+
const status = response.status;
|
|
3963
|
+
let _headers = {};
|
|
3964
|
+
if (response.headers && response.headers.forEach) {
|
|
3965
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
3966
|
+
}
|
|
3967
|
+
;
|
|
3968
|
+
if (status === 200) {
|
|
3969
|
+
return response.text().then((_responseText) => {
|
|
3970
|
+
let result200 = null;
|
|
3971
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3972
|
+
result200 = TrackingWorkOrderDto.fromJS(resultData200);
|
|
3973
|
+
return result200;
|
|
3974
|
+
});
|
|
3975
|
+
}
|
|
3976
|
+
else if (status !== 200 && status !== 204) {
|
|
3977
|
+
return response.text().then((_responseText) => {
|
|
3978
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
3979
|
+
});
|
|
3980
|
+
}
|
|
3981
|
+
return Promise.resolve(null);
|
|
3982
|
+
}
|
|
3983
|
+
listWorkOrderTrackingHistory(workOrderIds) {
|
|
3984
|
+
let url_ = this.baseUrl + "/move/tracking/workorder/list";
|
|
3985
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
3986
|
+
const content_ = JSON.stringify(workOrderIds);
|
|
3987
|
+
let options_ = {
|
|
3988
|
+
body: content_,
|
|
3989
|
+
method: "POST",
|
|
3990
|
+
headers: {
|
|
3991
|
+
"Content-Type": "application/json",
|
|
3992
|
+
"Accept": "application/json"
|
|
3993
|
+
}
|
|
3994
|
+
};
|
|
3911
3995
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
3912
3996
|
return this.http.fetch(url_, transformedOptions_);
|
|
3913
3997
|
}).then((_response) => {
|
|
@@ -3925,7 +4009,11 @@ export class MoveTrackingClient extends AuthorizedApiBase {
|
|
|
3925
4009
|
return response.text().then((_responseText) => {
|
|
3926
4010
|
let result200 = null;
|
|
3927
4011
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3928
|
-
|
|
4012
|
+
if (Array.isArray(resultData200)) {
|
|
4013
|
+
result200 = [];
|
|
4014
|
+
for (let item of resultData200)
|
|
4015
|
+
result200.push(TrackingWorkOrderDto.fromJS(item));
|
|
4016
|
+
}
|
|
3929
4017
|
return result200;
|
|
3930
4018
|
});
|
|
3931
4019
|
}
|
|
@@ -4008,16 +4096,15 @@ export class MoveTrackingClient extends AuthorizedApiBase {
|
|
|
4008
4096
|
}
|
|
4009
4097
|
return Promise.resolve(null);
|
|
4010
4098
|
}
|
|
4011
|
-
deleteTrackingHistory(
|
|
4012
|
-
let url_ = this.baseUrl + "/move/tracking/history";
|
|
4099
|
+
deleteTrackingHistory(trackingId) {
|
|
4100
|
+
let url_ = this.baseUrl + "/move/tracking/history/{trackingId}";
|
|
4101
|
+
if (trackingId === undefined || trackingId === null)
|
|
4102
|
+
throw new Error("The parameter 'trackingId' must be defined.");
|
|
4103
|
+
url_ = url_.replace("{trackingId}", encodeURIComponent("" + trackingId));
|
|
4013
4104
|
url_ = url_.replace(/[?&]$/, "");
|
|
4014
|
-
const content_ = JSON.stringify(trackingUpdates);
|
|
4015
4105
|
let options_ = {
|
|
4016
|
-
body: content_,
|
|
4017
4106
|
method: "DELETE",
|
|
4018
|
-
headers: {
|
|
4019
|
-
"Content-Type": "application/json",
|
|
4020
|
-
}
|
|
4107
|
+
headers: {}
|
|
4021
4108
|
};
|
|
4022
4109
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
4023
4110
|
return this.http.fetch(url_, transformedOptions_);
|
|
@@ -22324,6 +22411,11 @@ export class BookingRequestListDto {
|
|
|
22324
22411
|
}
|
|
22325
22412
|
init(_data) {
|
|
22326
22413
|
if (_data) {
|
|
22414
|
+
if (Array.isArray(_data["bookingStatusFilter"])) {
|
|
22415
|
+
this.bookingStatusFilter = [];
|
|
22416
|
+
for (let item of _data["bookingStatusFilter"])
|
|
22417
|
+
this.bookingStatusFilter.push(item);
|
|
22418
|
+
}
|
|
22327
22419
|
this.continuationToken = _data["continuationToken"];
|
|
22328
22420
|
}
|
|
22329
22421
|
}
|
|
@@ -22335,6 +22427,11 @@ export class BookingRequestListDto {
|
|
|
22335
22427
|
}
|
|
22336
22428
|
toJSON(data) {
|
|
22337
22429
|
data = typeof data === 'object' ? data : {};
|
|
22430
|
+
if (Array.isArray(this.bookingStatusFilter)) {
|
|
22431
|
+
data["bookingStatusFilter"] = [];
|
|
22432
|
+
for (let item of this.bookingStatusFilter)
|
|
22433
|
+
data["bookingStatusFilter"].push(item);
|
|
22434
|
+
}
|
|
22338
22435
|
data["continuationToken"] = this.continuationToken;
|
|
22339
22436
|
return data;
|
|
22340
22437
|
}
|
|
@@ -22394,6 +22491,7 @@ export class BookingItemRequestDto {
|
|
|
22394
22491
|
init(_data) {
|
|
22395
22492
|
if (_data) {
|
|
22396
22493
|
this.trackingId = _data["trackingId"];
|
|
22494
|
+
this.comment = _data["comment"];
|
|
22397
22495
|
}
|
|
22398
22496
|
}
|
|
22399
22497
|
static fromJS(data) {
|
|
@@ -22405,6 +22503,7 @@ export class BookingItemRequestDto {
|
|
|
22405
22503
|
toJSON(data) {
|
|
22406
22504
|
data = typeof data === 'object' ? data : {};
|
|
22407
22505
|
data["trackingId"] = this.trackingId;
|
|
22506
|
+
data["comment"] = this.comment;
|
|
22408
22507
|
return data;
|
|
22409
22508
|
}
|
|
22410
22509
|
}
|
|
@@ -22555,9 +22654,6 @@ export class TrackingEventDto {
|
|
|
22555
22654
|
this[property] = data[property];
|
|
22556
22655
|
}
|
|
22557
22656
|
}
|
|
22558
|
-
if (!data) {
|
|
22559
|
-
this.location = new LocationDto();
|
|
22560
|
-
}
|
|
22561
22657
|
}
|
|
22562
22658
|
init(_data) {
|
|
22563
22659
|
if (_data) {
|
|
@@ -22565,7 +22661,7 @@ export class TrackingEventDto {
|
|
|
22565
22661
|
this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined;
|
|
22566
22662
|
this.createdBy = _data["createdBy"];
|
|
22567
22663
|
this.createdById = _data["createdById"];
|
|
22568
|
-
this.location = _data["location"] ? LocationDto.fromJS(_data["location"]) :
|
|
22664
|
+
this.location = _data["location"] ? LocationDto.fromJS(_data["location"]) : undefined;
|
|
22569
22665
|
this.status = _data["status"];
|
|
22570
22666
|
this.bookingId = _data["bookingId"];
|
|
22571
22667
|
this.comment = _data["comment"];
|
|
@@ -22674,8 +22770,6 @@ export class TrackingHistoryUpdateDto {
|
|
|
22674
22770
|
init(_data) {
|
|
22675
22771
|
if (_data) {
|
|
22676
22772
|
this.workOrderId = _data["workOrderId"];
|
|
22677
|
-
this.locationId = _data["locationId"];
|
|
22678
|
-
this.comment = _data["comment"];
|
|
22679
22773
|
}
|
|
22680
22774
|
}
|
|
22681
22775
|
static fromJS(data) {
|
|
@@ -22687,8 +22781,6 @@ export class TrackingHistoryUpdateDto {
|
|
|
22687
22781
|
toJSON(data) {
|
|
22688
22782
|
data = typeof data === 'object' ? data : {};
|
|
22689
22783
|
data["workOrderId"] = this.workOrderId;
|
|
22690
|
-
data["locationId"] = this.locationId;
|
|
22691
|
-
data["comment"] = this.comment;
|
|
22692
22784
|
return data;
|
|
22693
22785
|
}
|
|
22694
22786
|
}
|
|
@@ -24514,12 +24606,14 @@ export class UtilizationDto {
|
|
|
24514
24606
|
if (!data) {
|
|
24515
24607
|
this.powerOn = new PowerOnUtilizationV2Dto();
|
|
24516
24608
|
this.uptimeDowntimes = new UptimeDowntimesDto();
|
|
24609
|
+
this.twentyFourSeven = new TwentyFourSevenUtilizationDto();
|
|
24517
24610
|
}
|
|
24518
24611
|
}
|
|
24519
24612
|
init(_data) {
|
|
24520
24613
|
if (_data) {
|
|
24521
24614
|
this.powerOn = _data["powerOn"] ? PowerOnUtilizationV2Dto.fromJS(_data["powerOn"]) : new PowerOnUtilizationV2Dto();
|
|
24522
24615
|
this.uptimeDowntimes = _data["uptimeDowntimes"] ? UptimeDowntimesDto.fromJS(_data["uptimeDowntimes"]) : new UptimeDowntimesDto();
|
|
24616
|
+
this.twentyFourSeven = _data["twentyFourSeven"] ? TwentyFourSevenUtilizationDto.fromJS(_data["twentyFourSeven"]) : new TwentyFourSevenUtilizationDto();
|
|
24523
24617
|
}
|
|
24524
24618
|
}
|
|
24525
24619
|
static fromJS(data) {
|
|
@@ -24532,6 +24626,7 @@ export class UtilizationDto {
|
|
|
24532
24626
|
data = typeof data === 'object' ? data : {};
|
|
24533
24627
|
data["powerOn"] = this.powerOn ? this.powerOn.toJSON() : undefined;
|
|
24534
24628
|
data["uptimeDowntimes"] = this.uptimeDowntimes ? this.uptimeDowntimes.toJSON() : undefined;
|
|
24629
|
+
data["twentyFourSeven"] = this.twentyFourSeven ? this.twentyFourSeven.toJSON() : undefined;
|
|
24535
24630
|
return data;
|
|
24536
24631
|
}
|
|
24537
24632
|
}
|
|
@@ -24619,6 +24714,7 @@ export class UptimeDowntimeDto {
|
|
|
24619
24714
|
this.uptimeInSeconds = _data["uptimeInSeconds"];
|
|
24620
24715
|
this.downtimeInSeconds = _data["downtimeInSeconds"];
|
|
24621
24716
|
this.powerOnTimeInSeconds = _data["powerOnTimeInSeconds"];
|
|
24717
|
+
this.twentyFourSevenTimeInSeconds = _data["twentyFourSevenTimeInSeconds"];
|
|
24622
24718
|
}
|
|
24623
24719
|
}
|
|
24624
24720
|
static fromJS(data) {
|
|
@@ -24632,6 +24728,39 @@ export class UptimeDowntimeDto {
|
|
|
24632
24728
|
data["uptimeInSeconds"] = this.uptimeInSeconds;
|
|
24633
24729
|
data["downtimeInSeconds"] = this.downtimeInSeconds;
|
|
24634
24730
|
data["powerOnTimeInSeconds"] = this.powerOnTimeInSeconds;
|
|
24731
|
+
data["twentyFourSevenTimeInSeconds"] = this.twentyFourSevenTimeInSeconds;
|
|
24732
|
+
return data;
|
|
24733
|
+
}
|
|
24734
|
+
}
|
|
24735
|
+
export class TwentyFourSevenUtilizationDto {
|
|
24736
|
+
constructor(data) {
|
|
24737
|
+
if (data) {
|
|
24738
|
+
for (var property in data) {
|
|
24739
|
+
if (data.hasOwnProperty(property))
|
|
24740
|
+
this[property] = data[property];
|
|
24741
|
+
}
|
|
24742
|
+
}
|
|
24743
|
+
}
|
|
24744
|
+
init(_data) {
|
|
24745
|
+
if (_data) {
|
|
24746
|
+
this.sevenDays = _data["sevenDays"];
|
|
24747
|
+
this.thirtyDays = _data["thirtyDays"];
|
|
24748
|
+
this.ninetyDays = _data["ninetyDays"];
|
|
24749
|
+
this.yearToDate = _data["yearToDate"];
|
|
24750
|
+
}
|
|
24751
|
+
}
|
|
24752
|
+
static fromJS(data) {
|
|
24753
|
+
data = typeof data === 'object' ? data : {};
|
|
24754
|
+
let result = new TwentyFourSevenUtilizationDto();
|
|
24755
|
+
result.init(data);
|
|
24756
|
+
return result;
|
|
24757
|
+
}
|
|
24758
|
+
toJSON(data) {
|
|
24759
|
+
data = typeof data === 'object' ? data : {};
|
|
24760
|
+
data["sevenDays"] = this.sevenDays;
|
|
24761
|
+
data["thirtyDays"] = this.thirtyDays;
|
|
24762
|
+
data["ninetyDays"] = this.ninetyDays;
|
|
24763
|
+
data["yearToDate"] = this.yearToDate;
|
|
24635
24764
|
return data;
|
|
24636
24765
|
}
|
|
24637
24766
|
}
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -3753,6 +3753,8 @@ export interface IMoveBookingClient {
|
|
|
3753
3753
|
|
|
3754
3754
|
updateBooking(bookingId: string, bookingRequest: BookingRequestDto): Promise<BookingDto>;
|
|
3755
3755
|
|
|
3756
|
+
getWorkOrderBooking(workOrderId: string): Promise<BookingDto[]>;
|
|
3757
|
+
|
|
3756
3758
|
createBooking(bookingRequest: BookingRequestDto): Promise<BookingDto>;
|
|
3757
3759
|
|
|
3758
3760
|
cancelBooking(bookingUpdate: BookingUpdateDto): Promise<BookingDto>;
|
|
@@ -3895,6 +3897,49 @@ export class MoveBookingClient extends AuthorizedApiBase implements IMoveBooking
|
|
|
3895
3897
|
return Promise.resolve<BookingDto>(null as any);
|
|
3896
3898
|
}
|
|
3897
3899
|
|
|
3900
|
+
getWorkOrderBooking(workOrderId: string): Promise<BookingDto[]> {
|
|
3901
|
+
let url_ = this.baseUrl + "/move/booking/workorder/{workOrderId}";
|
|
3902
|
+
if (workOrderId === undefined || workOrderId === null)
|
|
3903
|
+
throw new Error("The parameter 'workOrderId' must be defined.");
|
|
3904
|
+
url_ = url_.replace("{workOrderId}", encodeURIComponent("" + workOrderId));
|
|
3905
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
3906
|
+
|
|
3907
|
+
let options_: RequestInit = {
|
|
3908
|
+
method: "GET",
|
|
3909
|
+
headers: {
|
|
3910
|
+
"Accept": "application/json"
|
|
3911
|
+
}
|
|
3912
|
+
};
|
|
3913
|
+
|
|
3914
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
3915
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
3916
|
+
}).then((_response: Response) => {
|
|
3917
|
+
return this.processGetWorkOrderBooking(_response);
|
|
3918
|
+
});
|
|
3919
|
+
}
|
|
3920
|
+
|
|
3921
|
+
protected processGetWorkOrderBooking(response: Response): Promise<BookingDto[]> {
|
|
3922
|
+
const status = response.status;
|
|
3923
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
3924
|
+
if (status === 200) {
|
|
3925
|
+
return response.text().then((_responseText) => {
|
|
3926
|
+
let result200: any = null;
|
|
3927
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3928
|
+
if (Array.isArray(resultData200)) {
|
|
3929
|
+
result200 = [] as any;
|
|
3930
|
+
for (let item of resultData200)
|
|
3931
|
+
result200!.push(BookingDto.fromJS(item));
|
|
3932
|
+
}
|
|
3933
|
+
return result200;
|
|
3934
|
+
});
|
|
3935
|
+
} else if (status !== 200 && status !== 204) {
|
|
3936
|
+
return response.text().then((_responseText) => {
|
|
3937
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
3938
|
+
});
|
|
3939
|
+
}
|
|
3940
|
+
return Promise.resolve<BookingDto[]>(null as any);
|
|
3941
|
+
}
|
|
3942
|
+
|
|
3898
3943
|
createBooking(bookingRequest: BookingRequestDto): Promise<BookingDto> {
|
|
3899
3944
|
let url_ = this.baseUrl + "/move/booking/book";
|
|
3900
3945
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -4169,15 +4214,17 @@ export class MoveLocationsClient extends AuthorizedApiBase implements IMoveLocat
|
|
|
4169
4214
|
|
|
4170
4215
|
export interface IMoveTrackingClient {
|
|
4171
4216
|
|
|
4172
|
-
|
|
4217
|
+
getTrackingHistory(trackingId: string): Promise<TrackingHistoryDto>;
|
|
4218
|
+
|
|
4219
|
+
getWorkOrderTrackingHistory(workOrderId: string): Promise<TrackingWorkOrderDto>;
|
|
4173
4220
|
|
|
4174
|
-
listWorkOrderTrackingHistory(
|
|
4221
|
+
listWorkOrderTrackingHistory(workOrderIds: string[]): Promise<TrackingWorkOrderDto[]>;
|
|
4175
4222
|
|
|
4176
4223
|
createTrackingEvents(trackingUpdates: TrackingUpdateDto[]): Promise<void>;
|
|
4177
4224
|
|
|
4178
4225
|
createTrackingHistory(trackingUpdates: TrackingHistoryUpdateDto[]): Promise<void>;
|
|
4179
4226
|
|
|
4180
|
-
deleteTrackingHistory(
|
|
4227
|
+
deleteTrackingHistory(trackingId: string): Promise<void>;
|
|
4181
4228
|
|
|
4182
4229
|
createLabel(workOrderId: string, palletCount: number | undefined): Promise<FileResponse>;
|
|
4183
4230
|
}
|
|
@@ -4193,7 +4240,7 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
|
|
|
4193
4240
|
this.baseUrl = baseUrl ?? "";
|
|
4194
4241
|
}
|
|
4195
4242
|
|
|
4196
|
-
|
|
4243
|
+
getTrackingHistory(trackingId: string): Promise<TrackingHistoryDto> {
|
|
4197
4244
|
let url_ = this.baseUrl + "/move/tracking/{trackingId}";
|
|
4198
4245
|
if (trackingId === undefined || trackingId === null)
|
|
4199
4246
|
throw new Error("The parameter 'trackingId' must be defined.");
|
|
@@ -4210,11 +4257,11 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
|
|
|
4210
4257
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
4211
4258
|
return this.http.fetch(url_, transformedOptions_);
|
|
4212
4259
|
}).then((_response: Response) => {
|
|
4213
|
-
return this.
|
|
4260
|
+
return this.processGetTrackingHistory(_response);
|
|
4214
4261
|
});
|
|
4215
4262
|
}
|
|
4216
4263
|
|
|
4217
|
-
protected
|
|
4264
|
+
protected processGetTrackingHistory(response: Response): Promise<TrackingHistoryDto> {
|
|
4218
4265
|
const status = response.status;
|
|
4219
4266
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
4220
4267
|
if (status === 200) {
|
|
@@ -4232,7 +4279,7 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
|
|
|
4232
4279
|
return Promise.resolve<TrackingHistoryDto>(null as any);
|
|
4233
4280
|
}
|
|
4234
4281
|
|
|
4235
|
-
|
|
4282
|
+
getWorkOrderTrackingHistory(workOrderId: string): Promise<TrackingWorkOrderDto> {
|
|
4236
4283
|
let url_ = this.baseUrl + "/move/tracking/workorder/{workOrderId}";
|
|
4237
4284
|
if (workOrderId === undefined || workOrderId === null)
|
|
4238
4285
|
throw new Error("The parameter 'workOrderId' must be defined.");
|
|
@@ -4249,11 +4296,11 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
|
|
|
4249
4296
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
4250
4297
|
return this.http.fetch(url_, transformedOptions_);
|
|
4251
4298
|
}).then((_response: Response) => {
|
|
4252
|
-
return this.
|
|
4299
|
+
return this.processGetWorkOrderTrackingHistory(_response);
|
|
4253
4300
|
});
|
|
4254
4301
|
}
|
|
4255
4302
|
|
|
4256
|
-
protected
|
|
4303
|
+
protected processGetWorkOrderTrackingHistory(response: Response): Promise<TrackingWorkOrderDto> {
|
|
4257
4304
|
const status = response.status;
|
|
4258
4305
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
4259
4306
|
if (status === 200) {
|
|
@@ -4271,6 +4318,50 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
|
|
|
4271
4318
|
return Promise.resolve<TrackingWorkOrderDto>(null as any);
|
|
4272
4319
|
}
|
|
4273
4320
|
|
|
4321
|
+
listWorkOrderTrackingHistory(workOrderIds: string[]): Promise<TrackingWorkOrderDto[]> {
|
|
4322
|
+
let url_ = this.baseUrl + "/move/tracking/workorder/list";
|
|
4323
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
4324
|
+
|
|
4325
|
+
const content_ = JSON.stringify(workOrderIds);
|
|
4326
|
+
|
|
4327
|
+
let options_: RequestInit = {
|
|
4328
|
+
body: content_,
|
|
4329
|
+
method: "POST",
|
|
4330
|
+
headers: {
|
|
4331
|
+
"Content-Type": "application/json",
|
|
4332
|
+
"Accept": "application/json"
|
|
4333
|
+
}
|
|
4334
|
+
};
|
|
4335
|
+
|
|
4336
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
4337
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
4338
|
+
}).then((_response: Response) => {
|
|
4339
|
+
return this.processListWorkOrderTrackingHistory(_response);
|
|
4340
|
+
});
|
|
4341
|
+
}
|
|
4342
|
+
|
|
4343
|
+
protected processListWorkOrderTrackingHistory(response: Response): Promise<TrackingWorkOrderDto[]> {
|
|
4344
|
+
const status = response.status;
|
|
4345
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
4346
|
+
if (status === 200) {
|
|
4347
|
+
return response.text().then((_responseText) => {
|
|
4348
|
+
let result200: any = null;
|
|
4349
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4350
|
+
if (Array.isArray(resultData200)) {
|
|
4351
|
+
result200 = [] as any;
|
|
4352
|
+
for (let item of resultData200)
|
|
4353
|
+
result200!.push(TrackingWorkOrderDto.fromJS(item));
|
|
4354
|
+
}
|
|
4355
|
+
return result200;
|
|
4356
|
+
});
|
|
4357
|
+
} else if (status !== 200 && status !== 204) {
|
|
4358
|
+
return response.text().then((_responseText) => {
|
|
4359
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
4360
|
+
});
|
|
4361
|
+
}
|
|
4362
|
+
return Promise.resolve<TrackingWorkOrderDto[]>(null as any);
|
|
4363
|
+
}
|
|
4364
|
+
|
|
4274
4365
|
createTrackingEvents(trackingUpdates: TrackingUpdateDto[]): Promise<void> {
|
|
4275
4366
|
let url_ = this.baseUrl + "/move/tracking/event";
|
|
4276
4367
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -4343,17 +4434,16 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
|
|
|
4343
4434
|
return Promise.resolve<void>(null as any);
|
|
4344
4435
|
}
|
|
4345
4436
|
|
|
4346
|
-
deleteTrackingHistory(
|
|
4347
|
-
let url_ = this.baseUrl + "/move/tracking/history";
|
|
4437
|
+
deleteTrackingHistory(trackingId: string): Promise<void> {
|
|
4438
|
+
let url_ = this.baseUrl + "/move/tracking/history/{trackingId}";
|
|
4439
|
+
if (trackingId === undefined || trackingId === null)
|
|
4440
|
+
throw new Error("The parameter 'trackingId' must be defined.");
|
|
4441
|
+
url_ = url_.replace("{trackingId}", encodeURIComponent("" + trackingId));
|
|
4348
4442
|
url_ = url_.replace(/[?&]$/, "");
|
|
4349
4443
|
|
|
4350
|
-
const content_ = JSON.stringify(trackingUpdates);
|
|
4351
|
-
|
|
4352
4444
|
let options_: RequestInit = {
|
|
4353
|
-
body: content_,
|
|
4354
4445
|
method: "DELETE",
|
|
4355
4446
|
headers: {
|
|
4356
|
-
"Content-Type": "application/json",
|
|
4357
4447
|
}
|
|
4358
4448
|
};
|
|
4359
4449
|
|
|
@@ -25509,6 +25599,7 @@ export interface ILocationDto {
|
|
|
25509
25599
|
export type LocationKindDto = "Warehouse" | "Zone" | "Location";
|
|
25510
25600
|
|
|
25511
25601
|
export class BookingRequestListDto implements IBookingRequestListDto {
|
|
25602
|
+
bookingStatusFilter?: BookingStatusDto[] | null;
|
|
25512
25603
|
continuationToken?: string | null;
|
|
25513
25604
|
|
|
25514
25605
|
constructor(data?: IBookingRequestListDto) {
|
|
@@ -25522,6 +25613,11 @@ export class BookingRequestListDto implements IBookingRequestListDto {
|
|
|
25522
25613
|
|
|
25523
25614
|
init(_data?: any) {
|
|
25524
25615
|
if (_data) {
|
|
25616
|
+
if (Array.isArray(_data["bookingStatusFilter"])) {
|
|
25617
|
+
this.bookingStatusFilter = [] as any;
|
|
25618
|
+
for (let item of _data["bookingStatusFilter"])
|
|
25619
|
+
this.bookingStatusFilter!.push(item);
|
|
25620
|
+
}
|
|
25525
25621
|
this.continuationToken = _data["continuationToken"];
|
|
25526
25622
|
}
|
|
25527
25623
|
}
|
|
@@ -25535,12 +25631,18 @@ export class BookingRequestListDto implements IBookingRequestListDto {
|
|
|
25535
25631
|
|
|
25536
25632
|
toJSON(data?: any) {
|
|
25537
25633
|
data = typeof data === 'object' ? data : {};
|
|
25634
|
+
if (Array.isArray(this.bookingStatusFilter)) {
|
|
25635
|
+
data["bookingStatusFilter"] = [];
|
|
25636
|
+
for (let item of this.bookingStatusFilter)
|
|
25637
|
+
data["bookingStatusFilter"].push(item);
|
|
25638
|
+
}
|
|
25538
25639
|
data["continuationToken"] = this.continuationToken;
|
|
25539
25640
|
return data;
|
|
25540
25641
|
}
|
|
25541
25642
|
}
|
|
25542
25643
|
|
|
25543
25644
|
export interface IBookingRequestListDto {
|
|
25645
|
+
bookingStatusFilter?: BookingStatusDto[] | null;
|
|
25544
25646
|
continuationToken?: string | null;
|
|
25545
25647
|
}
|
|
25546
25648
|
|
|
@@ -25605,6 +25707,7 @@ export interface IBookingRequestDto {
|
|
|
25605
25707
|
|
|
25606
25708
|
export class BookingItemRequestDto implements IBookingItemRequestDto {
|
|
25607
25709
|
trackingId!: string;
|
|
25710
|
+
comment?: string | null;
|
|
25608
25711
|
|
|
25609
25712
|
constructor(data?: IBookingItemRequestDto) {
|
|
25610
25713
|
if (data) {
|
|
@@ -25618,6 +25721,7 @@ export class BookingItemRequestDto implements IBookingItemRequestDto {
|
|
|
25618
25721
|
init(_data?: any) {
|
|
25619
25722
|
if (_data) {
|
|
25620
25723
|
this.trackingId = _data["trackingId"];
|
|
25724
|
+
this.comment = _data["comment"];
|
|
25621
25725
|
}
|
|
25622
25726
|
}
|
|
25623
25727
|
|
|
@@ -25631,12 +25735,14 @@ export class BookingItemRequestDto implements IBookingItemRequestDto {
|
|
|
25631
25735
|
toJSON(data?: any) {
|
|
25632
25736
|
data = typeof data === 'object' ? data : {};
|
|
25633
25737
|
data["trackingId"] = this.trackingId;
|
|
25738
|
+
data["comment"] = this.comment;
|
|
25634
25739
|
return data;
|
|
25635
25740
|
}
|
|
25636
25741
|
}
|
|
25637
25742
|
|
|
25638
25743
|
export interface IBookingItemRequestDto {
|
|
25639
25744
|
trackingId: string;
|
|
25745
|
+
comment?: string | null;
|
|
25640
25746
|
}
|
|
25641
25747
|
|
|
25642
25748
|
export class BookingUpdateDto implements IBookingUpdateDto {
|
|
@@ -25839,7 +25945,7 @@ export class TrackingEventDto implements ITrackingEventDto {
|
|
|
25839
25945
|
created!: Date;
|
|
25840
25946
|
createdBy!: string;
|
|
25841
25947
|
createdById!: string;
|
|
25842
|
-
location
|
|
25948
|
+
location?: LocationDto | null;
|
|
25843
25949
|
status!: TrackingStatusDto;
|
|
25844
25950
|
bookingId?: string | null;
|
|
25845
25951
|
comment?: string | null;
|
|
@@ -25851,9 +25957,6 @@ export class TrackingEventDto implements ITrackingEventDto {
|
|
|
25851
25957
|
(<any>this)[property] = (<any>data)[property];
|
|
25852
25958
|
}
|
|
25853
25959
|
}
|
|
25854
|
-
if (!data) {
|
|
25855
|
-
this.location = new LocationDto();
|
|
25856
|
-
}
|
|
25857
25960
|
}
|
|
25858
25961
|
|
|
25859
25962
|
init(_data?: any) {
|
|
@@ -25862,7 +25965,7 @@ export class TrackingEventDto implements ITrackingEventDto {
|
|
|
25862
25965
|
this.created = _data["created"] ? new Date(_data["created"].toString()) : <any>undefined;
|
|
25863
25966
|
this.createdBy = _data["createdBy"];
|
|
25864
25967
|
this.createdById = _data["createdById"];
|
|
25865
|
-
this.location = _data["location"] ? LocationDto.fromJS(_data["location"]) :
|
|
25968
|
+
this.location = _data["location"] ? LocationDto.fromJS(_data["location"]) : <any>undefined;
|
|
25866
25969
|
this.status = _data["status"];
|
|
25867
25970
|
this.bookingId = _data["bookingId"];
|
|
25868
25971
|
this.comment = _data["comment"];
|
|
@@ -25895,7 +25998,7 @@ export interface ITrackingEventDto {
|
|
|
25895
25998
|
created: Date;
|
|
25896
25999
|
createdBy: string;
|
|
25897
26000
|
createdById: string;
|
|
25898
|
-
location
|
|
26001
|
+
location?: LocationDto | null;
|
|
25899
26002
|
status: TrackingStatusDto;
|
|
25900
26003
|
bookingId?: string | null;
|
|
25901
26004
|
comment?: string | null;
|
|
@@ -26005,8 +26108,6 @@ export interface ITrackingUpdateDto {
|
|
|
26005
26108
|
|
|
26006
26109
|
export class TrackingHistoryUpdateDto implements ITrackingHistoryUpdateDto {
|
|
26007
26110
|
workOrderId!: string;
|
|
26008
|
-
locationId!: string;
|
|
26009
|
-
comment?: string | null;
|
|
26010
26111
|
|
|
26011
26112
|
constructor(data?: ITrackingHistoryUpdateDto) {
|
|
26012
26113
|
if (data) {
|
|
@@ -26020,8 +26121,6 @@ export class TrackingHistoryUpdateDto implements ITrackingHistoryUpdateDto {
|
|
|
26020
26121
|
init(_data?: any) {
|
|
26021
26122
|
if (_data) {
|
|
26022
26123
|
this.workOrderId = _data["workOrderId"];
|
|
26023
|
-
this.locationId = _data["locationId"];
|
|
26024
|
-
this.comment = _data["comment"];
|
|
26025
26124
|
}
|
|
26026
26125
|
}
|
|
26027
26126
|
|
|
@@ -26035,16 +26134,12 @@ export class TrackingHistoryUpdateDto implements ITrackingHistoryUpdateDto {
|
|
|
26035
26134
|
toJSON(data?: any) {
|
|
26036
26135
|
data = typeof data === 'object' ? data : {};
|
|
26037
26136
|
data["workOrderId"] = this.workOrderId;
|
|
26038
|
-
data["locationId"] = this.locationId;
|
|
26039
|
-
data["comment"] = this.comment;
|
|
26040
26137
|
return data;
|
|
26041
26138
|
}
|
|
26042
26139
|
}
|
|
26043
26140
|
|
|
26044
26141
|
export interface ITrackingHistoryUpdateDto {
|
|
26045
26142
|
workOrderId: string;
|
|
26046
|
-
locationId: string;
|
|
26047
|
-
comment?: string | null;
|
|
26048
26143
|
}
|
|
26049
26144
|
|
|
26050
26145
|
export class SearchWorkOrderDto implements ISearchWorkOrderDto {
|
|
@@ -28745,6 +28840,7 @@ export interface IFactoryUtilizationDto {
|
|
|
28745
28840
|
export class UtilizationDto implements IUtilizationDto {
|
|
28746
28841
|
powerOn!: PowerOnUtilizationV2Dto;
|
|
28747
28842
|
uptimeDowntimes!: UptimeDowntimesDto;
|
|
28843
|
+
twentyFourSeven!: TwentyFourSevenUtilizationDto;
|
|
28748
28844
|
|
|
28749
28845
|
constructor(data?: IUtilizationDto) {
|
|
28750
28846
|
if (data) {
|
|
@@ -28756,6 +28852,7 @@ export class UtilizationDto implements IUtilizationDto {
|
|
|
28756
28852
|
if (!data) {
|
|
28757
28853
|
this.powerOn = new PowerOnUtilizationV2Dto();
|
|
28758
28854
|
this.uptimeDowntimes = new UptimeDowntimesDto();
|
|
28855
|
+
this.twentyFourSeven = new TwentyFourSevenUtilizationDto();
|
|
28759
28856
|
}
|
|
28760
28857
|
}
|
|
28761
28858
|
|
|
@@ -28763,6 +28860,7 @@ export class UtilizationDto implements IUtilizationDto {
|
|
|
28763
28860
|
if (_data) {
|
|
28764
28861
|
this.powerOn = _data["powerOn"] ? PowerOnUtilizationV2Dto.fromJS(_data["powerOn"]) : new PowerOnUtilizationV2Dto();
|
|
28765
28862
|
this.uptimeDowntimes = _data["uptimeDowntimes"] ? UptimeDowntimesDto.fromJS(_data["uptimeDowntimes"]) : new UptimeDowntimesDto();
|
|
28863
|
+
this.twentyFourSeven = _data["twentyFourSeven"] ? TwentyFourSevenUtilizationDto.fromJS(_data["twentyFourSeven"]) : new TwentyFourSevenUtilizationDto();
|
|
28766
28864
|
}
|
|
28767
28865
|
}
|
|
28768
28866
|
|
|
@@ -28777,6 +28875,7 @@ export class UtilizationDto implements IUtilizationDto {
|
|
|
28777
28875
|
data = typeof data === 'object' ? data : {};
|
|
28778
28876
|
data["powerOn"] = this.powerOn ? this.powerOn.toJSON() : <any>undefined;
|
|
28779
28877
|
data["uptimeDowntimes"] = this.uptimeDowntimes ? this.uptimeDowntimes.toJSON() : <any>undefined;
|
|
28878
|
+
data["twentyFourSeven"] = this.twentyFourSeven ? this.twentyFourSeven.toJSON() : <any>undefined;
|
|
28780
28879
|
return data;
|
|
28781
28880
|
}
|
|
28782
28881
|
}
|
|
@@ -28784,6 +28883,7 @@ export class UtilizationDto implements IUtilizationDto {
|
|
|
28784
28883
|
export interface IUtilizationDto {
|
|
28785
28884
|
powerOn: PowerOnUtilizationV2Dto;
|
|
28786
28885
|
uptimeDowntimes: UptimeDowntimesDto;
|
|
28886
|
+
twentyFourSeven: TwentyFourSevenUtilizationDto;
|
|
28787
28887
|
}
|
|
28788
28888
|
|
|
28789
28889
|
export class PowerOnUtilizationV2Dto implements IPowerOnUtilizationV2Dto {
|
|
@@ -28898,6 +28998,7 @@ export class UptimeDowntimeDto implements IUptimeDowntimeDto {
|
|
|
28898
28998
|
uptimeInSeconds?: number | null;
|
|
28899
28999
|
downtimeInSeconds?: number | null;
|
|
28900
29000
|
powerOnTimeInSeconds?: number | null;
|
|
29001
|
+
twentyFourSevenTimeInSeconds?: number | null;
|
|
28901
29002
|
|
|
28902
29003
|
constructor(data?: IUptimeDowntimeDto) {
|
|
28903
29004
|
if (data) {
|
|
@@ -28913,6 +29014,7 @@ export class UptimeDowntimeDto implements IUptimeDowntimeDto {
|
|
|
28913
29014
|
this.uptimeInSeconds = _data["uptimeInSeconds"];
|
|
28914
29015
|
this.downtimeInSeconds = _data["downtimeInSeconds"];
|
|
28915
29016
|
this.powerOnTimeInSeconds = _data["powerOnTimeInSeconds"];
|
|
29017
|
+
this.twentyFourSevenTimeInSeconds = _data["twentyFourSevenTimeInSeconds"];
|
|
28916
29018
|
}
|
|
28917
29019
|
}
|
|
28918
29020
|
|
|
@@ -28928,6 +29030,7 @@ export class UptimeDowntimeDto implements IUptimeDowntimeDto {
|
|
|
28928
29030
|
data["uptimeInSeconds"] = this.uptimeInSeconds;
|
|
28929
29031
|
data["downtimeInSeconds"] = this.downtimeInSeconds;
|
|
28930
29032
|
data["powerOnTimeInSeconds"] = this.powerOnTimeInSeconds;
|
|
29033
|
+
data["twentyFourSevenTimeInSeconds"] = this.twentyFourSevenTimeInSeconds;
|
|
28931
29034
|
return data;
|
|
28932
29035
|
}
|
|
28933
29036
|
}
|
|
@@ -28936,6 +29039,55 @@ export interface IUptimeDowntimeDto {
|
|
|
28936
29039
|
uptimeInSeconds?: number | null;
|
|
28937
29040
|
downtimeInSeconds?: number | null;
|
|
28938
29041
|
powerOnTimeInSeconds?: number | null;
|
|
29042
|
+
twentyFourSevenTimeInSeconds?: number | null;
|
|
29043
|
+
}
|
|
29044
|
+
|
|
29045
|
+
export class TwentyFourSevenUtilizationDto implements ITwentyFourSevenUtilizationDto {
|
|
29046
|
+
sevenDays?: number | null;
|
|
29047
|
+
thirtyDays?: number | null;
|
|
29048
|
+
ninetyDays?: number | null;
|
|
29049
|
+
yearToDate?: number | null;
|
|
29050
|
+
|
|
29051
|
+
constructor(data?: ITwentyFourSevenUtilizationDto) {
|
|
29052
|
+
if (data) {
|
|
29053
|
+
for (var property in data) {
|
|
29054
|
+
if (data.hasOwnProperty(property))
|
|
29055
|
+
(<any>this)[property] = (<any>data)[property];
|
|
29056
|
+
}
|
|
29057
|
+
}
|
|
29058
|
+
}
|
|
29059
|
+
|
|
29060
|
+
init(_data?: any) {
|
|
29061
|
+
if (_data) {
|
|
29062
|
+
this.sevenDays = _data["sevenDays"];
|
|
29063
|
+
this.thirtyDays = _data["thirtyDays"];
|
|
29064
|
+
this.ninetyDays = _data["ninetyDays"];
|
|
29065
|
+
this.yearToDate = _data["yearToDate"];
|
|
29066
|
+
}
|
|
29067
|
+
}
|
|
29068
|
+
|
|
29069
|
+
static fromJS(data: any): TwentyFourSevenUtilizationDto {
|
|
29070
|
+
data = typeof data === 'object' ? data : {};
|
|
29071
|
+
let result = new TwentyFourSevenUtilizationDto();
|
|
29072
|
+
result.init(data);
|
|
29073
|
+
return result;
|
|
29074
|
+
}
|
|
29075
|
+
|
|
29076
|
+
toJSON(data?: any) {
|
|
29077
|
+
data = typeof data === 'object' ? data : {};
|
|
29078
|
+
data["sevenDays"] = this.sevenDays;
|
|
29079
|
+
data["thirtyDays"] = this.thirtyDays;
|
|
29080
|
+
data["ninetyDays"] = this.ninetyDays;
|
|
29081
|
+
data["yearToDate"] = this.yearToDate;
|
|
29082
|
+
return data;
|
|
29083
|
+
}
|
|
29084
|
+
}
|
|
29085
|
+
|
|
29086
|
+
export interface ITwentyFourSevenUtilizationDto {
|
|
29087
|
+
sevenDays?: number | null;
|
|
29088
|
+
thirtyDays?: number | null;
|
|
29089
|
+
ninetyDays?: number | null;
|
|
29090
|
+
yearToDate?: number | null;
|
|
28939
29091
|
}
|
|
28940
29092
|
|
|
28941
29093
|
export class MachineGroupUtilizationDto implements IMachineGroupUtilizationDto {
|