@ignos/api-client 20240529.0.9369 → 20240531.0.9386
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 +34 -12
- package/lib/ignosportal-api.js +131 -13
- package/package.json +1 -1
- package/src/ignosportal-api.ts +159 -22
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,8 +580,9 @@ 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
588
|
deleteTrackingHistory(trackingUpdates: TrackingHistoryUpdateDto[]): Promise<void>;
|
|
@@ -591,10 +595,12 @@ 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>;
|
|
@@ -4248,7 +4254,7 @@ export declare class TrackingEventDto implements ITrackingEventDto {
|
|
|
4248
4254
|
created: Date;
|
|
4249
4255
|
createdBy: string;
|
|
4250
4256
|
createdById: string;
|
|
4251
|
-
location
|
|
4257
|
+
location?: LocationDto | null;
|
|
4252
4258
|
status: TrackingStatusDto;
|
|
4253
4259
|
bookingId?: string | null;
|
|
4254
4260
|
comment?: string | null;
|
|
@@ -4262,7 +4268,7 @@ export interface ITrackingEventDto {
|
|
|
4262
4268
|
created: Date;
|
|
4263
4269
|
createdBy: string;
|
|
4264
4270
|
createdById: string;
|
|
4265
|
-
location
|
|
4271
|
+
location?: LocationDto | null;
|
|
4266
4272
|
status: TrackingStatusDto;
|
|
4267
4273
|
bookingId?: string | null;
|
|
4268
4274
|
comment?: string | null;
|
|
@@ -4298,8 +4304,6 @@ export interface ITrackingUpdateDto {
|
|
|
4298
4304
|
}
|
|
4299
4305
|
export declare class TrackingHistoryUpdateDto implements ITrackingHistoryUpdateDto {
|
|
4300
4306
|
workOrderId: string;
|
|
4301
|
-
locationId: string;
|
|
4302
|
-
comment?: string | null;
|
|
4303
4307
|
constructor(data?: ITrackingHistoryUpdateDto);
|
|
4304
4308
|
init(_data?: any): void;
|
|
4305
4309
|
static fromJS(data: any): TrackingHistoryUpdateDto;
|
|
@@ -4307,8 +4311,6 @@ export declare class TrackingHistoryUpdateDto implements ITrackingHistoryUpdateD
|
|
|
4307
4311
|
}
|
|
4308
4312
|
export interface ITrackingHistoryUpdateDto {
|
|
4309
4313
|
workOrderId: string;
|
|
4310
|
-
locationId: string;
|
|
4311
|
-
comment?: string | null;
|
|
4312
4314
|
}
|
|
4313
4315
|
export declare class SearchWorkOrderDto implements ISearchWorkOrderDto {
|
|
4314
4316
|
workOrderId: string;
|
|
@@ -5193,6 +5195,7 @@ export interface IFactoryUtilizationDto {
|
|
|
5193
5195
|
export declare class UtilizationDto implements IUtilizationDto {
|
|
5194
5196
|
powerOn: PowerOnUtilizationV2Dto;
|
|
5195
5197
|
uptimeDowntimes: UptimeDowntimesDto;
|
|
5198
|
+
twentyFourSeven: TwentyFourSevenUtilizationDto;
|
|
5196
5199
|
constructor(data?: IUtilizationDto);
|
|
5197
5200
|
init(_data?: any): void;
|
|
5198
5201
|
static fromJS(data: any): UtilizationDto;
|
|
@@ -5201,6 +5204,7 @@ export declare class UtilizationDto implements IUtilizationDto {
|
|
|
5201
5204
|
export interface IUtilizationDto {
|
|
5202
5205
|
powerOn: PowerOnUtilizationV2Dto;
|
|
5203
5206
|
uptimeDowntimes: UptimeDowntimesDto;
|
|
5207
|
+
twentyFourSeven: TwentyFourSevenUtilizationDto;
|
|
5204
5208
|
}
|
|
5205
5209
|
export declare class PowerOnUtilizationV2Dto implements IPowerOnUtilizationV2Dto {
|
|
5206
5210
|
today?: number | null;
|
|
@@ -5244,6 +5248,7 @@ export declare class UptimeDowntimeDto implements IUptimeDowntimeDto {
|
|
|
5244
5248
|
uptimeInSeconds?: number | null;
|
|
5245
5249
|
downtimeInSeconds?: number | null;
|
|
5246
5250
|
powerOnTimeInSeconds?: number | null;
|
|
5251
|
+
twentyFourSevenTimeInSeconds?: number | null;
|
|
5247
5252
|
constructor(data?: IUptimeDowntimeDto);
|
|
5248
5253
|
init(_data?: any): void;
|
|
5249
5254
|
static fromJS(data: any): UptimeDowntimeDto;
|
|
@@ -5253,6 +5258,23 @@ export interface IUptimeDowntimeDto {
|
|
|
5253
5258
|
uptimeInSeconds?: number | null;
|
|
5254
5259
|
downtimeInSeconds?: number | null;
|
|
5255
5260
|
powerOnTimeInSeconds?: number | null;
|
|
5261
|
+
twentyFourSevenTimeInSeconds?: number | null;
|
|
5262
|
+
}
|
|
5263
|
+
export declare class TwentyFourSevenUtilizationDto implements ITwentyFourSevenUtilizationDto {
|
|
5264
|
+
sevenDays?: number | null;
|
|
5265
|
+
thirtyDays?: number | null;
|
|
5266
|
+
ninetyDays?: number | null;
|
|
5267
|
+
yearToDate?: number | null;
|
|
5268
|
+
constructor(data?: ITwentyFourSevenUtilizationDto);
|
|
5269
|
+
init(_data?: any): void;
|
|
5270
|
+
static fromJS(data: any): TwentyFourSevenUtilizationDto;
|
|
5271
|
+
toJSON(data?: any): any;
|
|
5272
|
+
}
|
|
5273
|
+
export interface ITwentyFourSevenUtilizationDto {
|
|
5274
|
+
sevenDays?: number | null;
|
|
5275
|
+
thirtyDays?: number | null;
|
|
5276
|
+
ninetyDays?: number | null;
|
|
5277
|
+
yearToDate?: number | null;
|
|
5256
5278
|
}
|
|
5257
5279
|
export declare class MachineGroupUtilizationDto implements IMachineGroupUtilizationDto {
|
|
5258
5280
|
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
|
}
|
|
@@ -22555,9 +22643,6 @@ export class TrackingEventDto {
|
|
|
22555
22643
|
this[property] = data[property];
|
|
22556
22644
|
}
|
|
22557
22645
|
}
|
|
22558
|
-
if (!data) {
|
|
22559
|
-
this.location = new LocationDto();
|
|
22560
|
-
}
|
|
22561
22646
|
}
|
|
22562
22647
|
init(_data) {
|
|
22563
22648
|
if (_data) {
|
|
@@ -22565,7 +22650,7 @@ export class TrackingEventDto {
|
|
|
22565
22650
|
this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined;
|
|
22566
22651
|
this.createdBy = _data["createdBy"];
|
|
22567
22652
|
this.createdById = _data["createdById"];
|
|
22568
|
-
this.location = _data["location"] ? LocationDto.fromJS(_data["location"]) :
|
|
22653
|
+
this.location = _data["location"] ? LocationDto.fromJS(_data["location"]) : undefined;
|
|
22569
22654
|
this.status = _data["status"];
|
|
22570
22655
|
this.bookingId = _data["bookingId"];
|
|
22571
22656
|
this.comment = _data["comment"];
|
|
@@ -22674,8 +22759,6 @@ export class TrackingHistoryUpdateDto {
|
|
|
22674
22759
|
init(_data) {
|
|
22675
22760
|
if (_data) {
|
|
22676
22761
|
this.workOrderId = _data["workOrderId"];
|
|
22677
|
-
this.locationId = _data["locationId"];
|
|
22678
|
-
this.comment = _data["comment"];
|
|
22679
22762
|
}
|
|
22680
22763
|
}
|
|
22681
22764
|
static fromJS(data) {
|
|
@@ -22687,8 +22770,6 @@ export class TrackingHistoryUpdateDto {
|
|
|
22687
22770
|
toJSON(data) {
|
|
22688
22771
|
data = typeof data === 'object' ? data : {};
|
|
22689
22772
|
data["workOrderId"] = this.workOrderId;
|
|
22690
|
-
data["locationId"] = this.locationId;
|
|
22691
|
-
data["comment"] = this.comment;
|
|
22692
22773
|
return data;
|
|
22693
22774
|
}
|
|
22694
22775
|
}
|
|
@@ -24514,12 +24595,14 @@ export class UtilizationDto {
|
|
|
24514
24595
|
if (!data) {
|
|
24515
24596
|
this.powerOn = new PowerOnUtilizationV2Dto();
|
|
24516
24597
|
this.uptimeDowntimes = new UptimeDowntimesDto();
|
|
24598
|
+
this.twentyFourSeven = new TwentyFourSevenUtilizationDto();
|
|
24517
24599
|
}
|
|
24518
24600
|
}
|
|
24519
24601
|
init(_data) {
|
|
24520
24602
|
if (_data) {
|
|
24521
24603
|
this.powerOn = _data["powerOn"] ? PowerOnUtilizationV2Dto.fromJS(_data["powerOn"]) : new PowerOnUtilizationV2Dto();
|
|
24522
24604
|
this.uptimeDowntimes = _data["uptimeDowntimes"] ? UptimeDowntimesDto.fromJS(_data["uptimeDowntimes"]) : new UptimeDowntimesDto();
|
|
24605
|
+
this.twentyFourSeven = _data["twentyFourSeven"] ? TwentyFourSevenUtilizationDto.fromJS(_data["twentyFourSeven"]) : new TwentyFourSevenUtilizationDto();
|
|
24523
24606
|
}
|
|
24524
24607
|
}
|
|
24525
24608
|
static fromJS(data) {
|
|
@@ -24532,6 +24615,7 @@ export class UtilizationDto {
|
|
|
24532
24615
|
data = typeof data === 'object' ? data : {};
|
|
24533
24616
|
data["powerOn"] = this.powerOn ? this.powerOn.toJSON() : undefined;
|
|
24534
24617
|
data["uptimeDowntimes"] = this.uptimeDowntimes ? this.uptimeDowntimes.toJSON() : undefined;
|
|
24618
|
+
data["twentyFourSeven"] = this.twentyFourSeven ? this.twentyFourSeven.toJSON() : undefined;
|
|
24535
24619
|
return data;
|
|
24536
24620
|
}
|
|
24537
24621
|
}
|
|
@@ -24619,6 +24703,7 @@ export class UptimeDowntimeDto {
|
|
|
24619
24703
|
this.uptimeInSeconds = _data["uptimeInSeconds"];
|
|
24620
24704
|
this.downtimeInSeconds = _data["downtimeInSeconds"];
|
|
24621
24705
|
this.powerOnTimeInSeconds = _data["powerOnTimeInSeconds"];
|
|
24706
|
+
this.twentyFourSevenTimeInSeconds = _data["twentyFourSevenTimeInSeconds"];
|
|
24622
24707
|
}
|
|
24623
24708
|
}
|
|
24624
24709
|
static fromJS(data) {
|
|
@@ -24632,6 +24717,39 @@ export class UptimeDowntimeDto {
|
|
|
24632
24717
|
data["uptimeInSeconds"] = this.uptimeInSeconds;
|
|
24633
24718
|
data["downtimeInSeconds"] = this.downtimeInSeconds;
|
|
24634
24719
|
data["powerOnTimeInSeconds"] = this.powerOnTimeInSeconds;
|
|
24720
|
+
data["twentyFourSevenTimeInSeconds"] = this.twentyFourSevenTimeInSeconds;
|
|
24721
|
+
return data;
|
|
24722
|
+
}
|
|
24723
|
+
}
|
|
24724
|
+
export class TwentyFourSevenUtilizationDto {
|
|
24725
|
+
constructor(data) {
|
|
24726
|
+
if (data) {
|
|
24727
|
+
for (var property in data) {
|
|
24728
|
+
if (data.hasOwnProperty(property))
|
|
24729
|
+
this[property] = data[property];
|
|
24730
|
+
}
|
|
24731
|
+
}
|
|
24732
|
+
}
|
|
24733
|
+
init(_data) {
|
|
24734
|
+
if (_data) {
|
|
24735
|
+
this.sevenDays = _data["sevenDays"];
|
|
24736
|
+
this.thirtyDays = _data["thirtyDays"];
|
|
24737
|
+
this.ninetyDays = _data["ninetyDays"];
|
|
24738
|
+
this.yearToDate = _data["yearToDate"];
|
|
24739
|
+
}
|
|
24740
|
+
}
|
|
24741
|
+
static fromJS(data) {
|
|
24742
|
+
data = typeof data === 'object' ? data : {};
|
|
24743
|
+
let result = new TwentyFourSevenUtilizationDto();
|
|
24744
|
+
result.init(data);
|
|
24745
|
+
return result;
|
|
24746
|
+
}
|
|
24747
|
+
toJSON(data) {
|
|
24748
|
+
data = typeof data === 'object' ? data : {};
|
|
24749
|
+
data["sevenDays"] = this.sevenDays;
|
|
24750
|
+
data["thirtyDays"] = this.thirtyDays;
|
|
24751
|
+
data["ninetyDays"] = this.ninetyDays;
|
|
24752
|
+
data["yearToDate"] = this.yearToDate;
|
|
24635
24753
|
return data;
|
|
24636
24754
|
}
|
|
24637
24755
|
}
|
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,9 +4214,11 @@ export class MoveLocationsClient extends AuthorizedApiBase implements IMoveLocat
|
|
|
4169
4214
|
|
|
4170
4215
|
export interface IMoveTrackingClient {
|
|
4171
4216
|
|
|
4172
|
-
|
|
4217
|
+
getTrackingHistory(trackingId: string): Promise<TrackingHistoryDto>;
|
|
4173
4218
|
|
|
4174
|
-
|
|
4219
|
+
getWorkOrderTrackingHistory(workOrderId: string): Promise<TrackingWorkOrderDto>;
|
|
4220
|
+
|
|
4221
|
+
listWorkOrderTrackingHistory(workOrderIds: string[]): Promise<TrackingWorkOrderDto[]>;
|
|
4175
4222
|
|
|
4176
4223
|
createTrackingEvents(trackingUpdates: TrackingUpdateDto[]): Promise<void>;
|
|
4177
4224
|
|
|
@@ -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(/[?&]$/, "");
|
|
@@ -25839,7 +25930,7 @@ export class TrackingEventDto implements ITrackingEventDto {
|
|
|
25839
25930
|
created!: Date;
|
|
25840
25931
|
createdBy!: string;
|
|
25841
25932
|
createdById!: string;
|
|
25842
|
-
location
|
|
25933
|
+
location?: LocationDto | null;
|
|
25843
25934
|
status!: TrackingStatusDto;
|
|
25844
25935
|
bookingId?: string | null;
|
|
25845
25936
|
comment?: string | null;
|
|
@@ -25851,9 +25942,6 @@ export class TrackingEventDto implements ITrackingEventDto {
|
|
|
25851
25942
|
(<any>this)[property] = (<any>data)[property];
|
|
25852
25943
|
}
|
|
25853
25944
|
}
|
|
25854
|
-
if (!data) {
|
|
25855
|
-
this.location = new LocationDto();
|
|
25856
|
-
}
|
|
25857
25945
|
}
|
|
25858
25946
|
|
|
25859
25947
|
init(_data?: any) {
|
|
@@ -25862,7 +25950,7 @@ export class TrackingEventDto implements ITrackingEventDto {
|
|
|
25862
25950
|
this.created = _data["created"] ? new Date(_data["created"].toString()) : <any>undefined;
|
|
25863
25951
|
this.createdBy = _data["createdBy"];
|
|
25864
25952
|
this.createdById = _data["createdById"];
|
|
25865
|
-
this.location = _data["location"] ? LocationDto.fromJS(_data["location"]) :
|
|
25953
|
+
this.location = _data["location"] ? LocationDto.fromJS(_data["location"]) : <any>undefined;
|
|
25866
25954
|
this.status = _data["status"];
|
|
25867
25955
|
this.bookingId = _data["bookingId"];
|
|
25868
25956
|
this.comment = _data["comment"];
|
|
@@ -25895,7 +25983,7 @@ export interface ITrackingEventDto {
|
|
|
25895
25983
|
created: Date;
|
|
25896
25984
|
createdBy: string;
|
|
25897
25985
|
createdById: string;
|
|
25898
|
-
location
|
|
25986
|
+
location?: LocationDto | null;
|
|
25899
25987
|
status: TrackingStatusDto;
|
|
25900
25988
|
bookingId?: string | null;
|
|
25901
25989
|
comment?: string | null;
|
|
@@ -26005,8 +26093,6 @@ export interface ITrackingUpdateDto {
|
|
|
26005
26093
|
|
|
26006
26094
|
export class TrackingHistoryUpdateDto implements ITrackingHistoryUpdateDto {
|
|
26007
26095
|
workOrderId!: string;
|
|
26008
|
-
locationId!: string;
|
|
26009
|
-
comment?: string | null;
|
|
26010
26096
|
|
|
26011
26097
|
constructor(data?: ITrackingHistoryUpdateDto) {
|
|
26012
26098
|
if (data) {
|
|
@@ -26020,8 +26106,6 @@ export class TrackingHistoryUpdateDto implements ITrackingHistoryUpdateDto {
|
|
|
26020
26106
|
init(_data?: any) {
|
|
26021
26107
|
if (_data) {
|
|
26022
26108
|
this.workOrderId = _data["workOrderId"];
|
|
26023
|
-
this.locationId = _data["locationId"];
|
|
26024
|
-
this.comment = _data["comment"];
|
|
26025
26109
|
}
|
|
26026
26110
|
}
|
|
26027
26111
|
|
|
@@ -26035,16 +26119,12 @@ export class TrackingHistoryUpdateDto implements ITrackingHistoryUpdateDto {
|
|
|
26035
26119
|
toJSON(data?: any) {
|
|
26036
26120
|
data = typeof data === 'object' ? data : {};
|
|
26037
26121
|
data["workOrderId"] = this.workOrderId;
|
|
26038
|
-
data["locationId"] = this.locationId;
|
|
26039
|
-
data["comment"] = this.comment;
|
|
26040
26122
|
return data;
|
|
26041
26123
|
}
|
|
26042
26124
|
}
|
|
26043
26125
|
|
|
26044
26126
|
export interface ITrackingHistoryUpdateDto {
|
|
26045
26127
|
workOrderId: string;
|
|
26046
|
-
locationId: string;
|
|
26047
|
-
comment?: string | null;
|
|
26048
26128
|
}
|
|
26049
26129
|
|
|
26050
26130
|
export class SearchWorkOrderDto implements ISearchWorkOrderDto {
|
|
@@ -28745,6 +28825,7 @@ export interface IFactoryUtilizationDto {
|
|
|
28745
28825
|
export class UtilizationDto implements IUtilizationDto {
|
|
28746
28826
|
powerOn!: PowerOnUtilizationV2Dto;
|
|
28747
28827
|
uptimeDowntimes!: UptimeDowntimesDto;
|
|
28828
|
+
twentyFourSeven!: TwentyFourSevenUtilizationDto;
|
|
28748
28829
|
|
|
28749
28830
|
constructor(data?: IUtilizationDto) {
|
|
28750
28831
|
if (data) {
|
|
@@ -28756,6 +28837,7 @@ export class UtilizationDto implements IUtilizationDto {
|
|
|
28756
28837
|
if (!data) {
|
|
28757
28838
|
this.powerOn = new PowerOnUtilizationV2Dto();
|
|
28758
28839
|
this.uptimeDowntimes = new UptimeDowntimesDto();
|
|
28840
|
+
this.twentyFourSeven = new TwentyFourSevenUtilizationDto();
|
|
28759
28841
|
}
|
|
28760
28842
|
}
|
|
28761
28843
|
|
|
@@ -28763,6 +28845,7 @@ export class UtilizationDto implements IUtilizationDto {
|
|
|
28763
28845
|
if (_data) {
|
|
28764
28846
|
this.powerOn = _data["powerOn"] ? PowerOnUtilizationV2Dto.fromJS(_data["powerOn"]) : new PowerOnUtilizationV2Dto();
|
|
28765
28847
|
this.uptimeDowntimes = _data["uptimeDowntimes"] ? UptimeDowntimesDto.fromJS(_data["uptimeDowntimes"]) : new UptimeDowntimesDto();
|
|
28848
|
+
this.twentyFourSeven = _data["twentyFourSeven"] ? TwentyFourSevenUtilizationDto.fromJS(_data["twentyFourSeven"]) : new TwentyFourSevenUtilizationDto();
|
|
28766
28849
|
}
|
|
28767
28850
|
}
|
|
28768
28851
|
|
|
@@ -28777,6 +28860,7 @@ export class UtilizationDto implements IUtilizationDto {
|
|
|
28777
28860
|
data = typeof data === 'object' ? data : {};
|
|
28778
28861
|
data["powerOn"] = this.powerOn ? this.powerOn.toJSON() : <any>undefined;
|
|
28779
28862
|
data["uptimeDowntimes"] = this.uptimeDowntimes ? this.uptimeDowntimes.toJSON() : <any>undefined;
|
|
28863
|
+
data["twentyFourSeven"] = this.twentyFourSeven ? this.twentyFourSeven.toJSON() : <any>undefined;
|
|
28780
28864
|
return data;
|
|
28781
28865
|
}
|
|
28782
28866
|
}
|
|
@@ -28784,6 +28868,7 @@ export class UtilizationDto implements IUtilizationDto {
|
|
|
28784
28868
|
export interface IUtilizationDto {
|
|
28785
28869
|
powerOn: PowerOnUtilizationV2Dto;
|
|
28786
28870
|
uptimeDowntimes: UptimeDowntimesDto;
|
|
28871
|
+
twentyFourSeven: TwentyFourSevenUtilizationDto;
|
|
28787
28872
|
}
|
|
28788
28873
|
|
|
28789
28874
|
export class PowerOnUtilizationV2Dto implements IPowerOnUtilizationV2Dto {
|
|
@@ -28898,6 +28983,7 @@ export class UptimeDowntimeDto implements IUptimeDowntimeDto {
|
|
|
28898
28983
|
uptimeInSeconds?: number | null;
|
|
28899
28984
|
downtimeInSeconds?: number | null;
|
|
28900
28985
|
powerOnTimeInSeconds?: number | null;
|
|
28986
|
+
twentyFourSevenTimeInSeconds?: number | null;
|
|
28901
28987
|
|
|
28902
28988
|
constructor(data?: IUptimeDowntimeDto) {
|
|
28903
28989
|
if (data) {
|
|
@@ -28913,6 +28999,7 @@ export class UptimeDowntimeDto implements IUptimeDowntimeDto {
|
|
|
28913
28999
|
this.uptimeInSeconds = _data["uptimeInSeconds"];
|
|
28914
29000
|
this.downtimeInSeconds = _data["downtimeInSeconds"];
|
|
28915
29001
|
this.powerOnTimeInSeconds = _data["powerOnTimeInSeconds"];
|
|
29002
|
+
this.twentyFourSevenTimeInSeconds = _data["twentyFourSevenTimeInSeconds"];
|
|
28916
29003
|
}
|
|
28917
29004
|
}
|
|
28918
29005
|
|
|
@@ -28928,6 +29015,7 @@ export class UptimeDowntimeDto implements IUptimeDowntimeDto {
|
|
|
28928
29015
|
data["uptimeInSeconds"] = this.uptimeInSeconds;
|
|
28929
29016
|
data["downtimeInSeconds"] = this.downtimeInSeconds;
|
|
28930
29017
|
data["powerOnTimeInSeconds"] = this.powerOnTimeInSeconds;
|
|
29018
|
+
data["twentyFourSevenTimeInSeconds"] = this.twentyFourSevenTimeInSeconds;
|
|
28931
29019
|
return data;
|
|
28932
29020
|
}
|
|
28933
29021
|
}
|
|
@@ -28936,6 +29024,55 @@ export interface IUptimeDowntimeDto {
|
|
|
28936
29024
|
uptimeInSeconds?: number | null;
|
|
28937
29025
|
downtimeInSeconds?: number | null;
|
|
28938
29026
|
powerOnTimeInSeconds?: number | null;
|
|
29027
|
+
twentyFourSevenTimeInSeconds?: number | null;
|
|
29028
|
+
}
|
|
29029
|
+
|
|
29030
|
+
export class TwentyFourSevenUtilizationDto implements ITwentyFourSevenUtilizationDto {
|
|
29031
|
+
sevenDays?: number | null;
|
|
29032
|
+
thirtyDays?: number | null;
|
|
29033
|
+
ninetyDays?: number | null;
|
|
29034
|
+
yearToDate?: number | null;
|
|
29035
|
+
|
|
29036
|
+
constructor(data?: ITwentyFourSevenUtilizationDto) {
|
|
29037
|
+
if (data) {
|
|
29038
|
+
for (var property in data) {
|
|
29039
|
+
if (data.hasOwnProperty(property))
|
|
29040
|
+
(<any>this)[property] = (<any>data)[property];
|
|
29041
|
+
}
|
|
29042
|
+
}
|
|
29043
|
+
}
|
|
29044
|
+
|
|
29045
|
+
init(_data?: any) {
|
|
29046
|
+
if (_data) {
|
|
29047
|
+
this.sevenDays = _data["sevenDays"];
|
|
29048
|
+
this.thirtyDays = _data["thirtyDays"];
|
|
29049
|
+
this.ninetyDays = _data["ninetyDays"];
|
|
29050
|
+
this.yearToDate = _data["yearToDate"];
|
|
29051
|
+
}
|
|
29052
|
+
}
|
|
29053
|
+
|
|
29054
|
+
static fromJS(data: any): TwentyFourSevenUtilizationDto {
|
|
29055
|
+
data = typeof data === 'object' ? data : {};
|
|
29056
|
+
let result = new TwentyFourSevenUtilizationDto();
|
|
29057
|
+
result.init(data);
|
|
29058
|
+
return result;
|
|
29059
|
+
}
|
|
29060
|
+
|
|
29061
|
+
toJSON(data?: any) {
|
|
29062
|
+
data = typeof data === 'object' ? data : {};
|
|
29063
|
+
data["sevenDays"] = this.sevenDays;
|
|
29064
|
+
data["thirtyDays"] = this.thirtyDays;
|
|
29065
|
+
data["ninetyDays"] = this.ninetyDays;
|
|
29066
|
+
data["yearToDate"] = this.yearToDate;
|
|
29067
|
+
return data;
|
|
29068
|
+
}
|
|
29069
|
+
}
|
|
29070
|
+
|
|
29071
|
+
export interface ITwentyFourSevenUtilizationDto {
|
|
29072
|
+
sevenDays?: number | null;
|
|
29073
|
+
thirtyDays?: number | null;
|
|
29074
|
+
ninetyDays?: number | null;
|
|
29075
|
+
yearToDate?: number | null;
|
|
28939
29076
|
}
|
|
28940
29077
|
|
|
28941
29078
|
export class MachineGroupUtilizationDto implements IMachineGroupUtilizationDto {
|