@ignos/api-client 20240528.0.9355 → 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 +102 -59
- package/lib/ignosportal-api.js +206 -37
- package/package.json +1 -1
- package/src/ignosportal-api.ts +301 -91
package/lib/ignosportal-api.js
CHANGED
|
@@ -3456,7 +3456,7 @@ export class TraceClient extends AuthorizedApiBase {
|
|
|
3456
3456
|
return Promise.resolve(null);
|
|
3457
3457
|
}
|
|
3458
3458
|
}
|
|
3459
|
-
export class
|
|
3459
|
+
export class MoveBookingClient extends AuthorizedApiBase {
|
|
3460
3460
|
constructor(configuration, baseUrl, http) {
|
|
3461
3461
|
super(configuration);
|
|
3462
3462
|
this.jsonParseReviver = undefined;
|
|
@@ -3492,7 +3492,7 @@ export class BookingClient extends AuthorizedApiBase {
|
|
|
3492
3492
|
return response.text().then((_responseText) => {
|
|
3493
3493
|
let result200 = null;
|
|
3494
3494
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3495
|
-
result200 =
|
|
3495
|
+
result200 = BookingListDto.fromJS(resultData200);
|
|
3496
3496
|
return result200;
|
|
3497
3497
|
});
|
|
3498
3498
|
}
|
|
@@ -3532,7 +3532,7 @@ export class BookingClient extends AuthorizedApiBase {
|
|
|
3532
3532
|
return response.text().then((_responseText) => {
|
|
3533
3533
|
let result200 = null;
|
|
3534
3534
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3535
|
-
result200 =
|
|
3535
|
+
result200 = BookingDto.fromJS(resultData200);
|
|
3536
3536
|
return result200;
|
|
3537
3537
|
});
|
|
3538
3538
|
}
|
|
@@ -3555,6 +3555,7 @@ export class BookingClient extends AuthorizedApiBase {
|
|
|
3555
3555
|
method: "PUT",
|
|
3556
3556
|
headers: {
|
|
3557
3557
|
"Content-Type": "application/json",
|
|
3558
|
+
"Accept": "application/json"
|
|
3558
3559
|
}
|
|
3559
3560
|
};
|
|
3560
3561
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
@@ -3570,9 +3571,56 @@ export class BookingClient extends AuthorizedApiBase {
|
|
|
3570
3571
|
response.headers.forEach((v, k) => _headers[k] = v);
|
|
3571
3572
|
}
|
|
3572
3573
|
;
|
|
3573
|
-
if (status ===
|
|
3574
|
+
if (status === 200) {
|
|
3574
3575
|
return response.text().then((_responseText) => {
|
|
3575
|
-
|
|
3576
|
+
let result200 = null;
|
|
3577
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3578
|
+
result200 = BookingDto.fromJS(resultData200);
|
|
3579
|
+
return result200;
|
|
3580
|
+
});
|
|
3581
|
+
}
|
|
3582
|
+
else if (status !== 200 && status !== 204) {
|
|
3583
|
+
return response.text().then((_responseText) => {
|
|
3584
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
3585
|
+
});
|
|
3586
|
+
}
|
|
3587
|
+
return Promise.resolve(null);
|
|
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;
|
|
3576
3624
|
});
|
|
3577
3625
|
}
|
|
3578
3626
|
else if (status !== 200 && status !== 204) {
|
|
@@ -3591,6 +3639,7 @@ export class BookingClient extends AuthorizedApiBase {
|
|
|
3591
3639
|
method: "POST",
|
|
3592
3640
|
headers: {
|
|
3593
3641
|
"Content-Type": "application/json",
|
|
3642
|
+
"Accept": "application/json"
|
|
3594
3643
|
}
|
|
3595
3644
|
};
|
|
3596
3645
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
@@ -3606,9 +3655,12 @@ export class BookingClient extends AuthorizedApiBase {
|
|
|
3606
3655
|
response.headers.forEach((v, k) => _headers[k] = v);
|
|
3607
3656
|
}
|
|
3608
3657
|
;
|
|
3609
|
-
if (status ===
|
|
3658
|
+
if (status === 200) {
|
|
3610
3659
|
return response.text().then((_responseText) => {
|
|
3611
|
-
|
|
3660
|
+
let result200 = null;
|
|
3661
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3662
|
+
result200 = BookingDto.fromJS(resultData200);
|
|
3663
|
+
return result200;
|
|
3612
3664
|
});
|
|
3613
3665
|
}
|
|
3614
3666
|
else if (status !== 200 && status !== 204) {
|
|
@@ -3627,6 +3679,7 @@ export class BookingClient extends AuthorizedApiBase {
|
|
|
3627
3679
|
method: "POST",
|
|
3628
3680
|
headers: {
|
|
3629
3681
|
"Content-Type": "application/json",
|
|
3682
|
+
"Accept": "application/json"
|
|
3630
3683
|
}
|
|
3631
3684
|
};
|
|
3632
3685
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
@@ -3642,9 +3695,12 @@ export class BookingClient extends AuthorizedApiBase {
|
|
|
3642
3695
|
response.headers.forEach((v, k) => _headers[k] = v);
|
|
3643
3696
|
}
|
|
3644
3697
|
;
|
|
3645
|
-
if (status ===
|
|
3698
|
+
if (status === 200) {
|
|
3646
3699
|
return response.text().then((_responseText) => {
|
|
3647
|
-
|
|
3700
|
+
let result200 = null;
|
|
3701
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3702
|
+
result200 = BookingDto.fromJS(resultData200);
|
|
3703
|
+
return result200;
|
|
3648
3704
|
});
|
|
3649
3705
|
}
|
|
3650
3706
|
else if (status !== 200 && status !== 204) {
|
|
@@ -3663,6 +3719,7 @@ export class BookingClient extends AuthorizedApiBase {
|
|
|
3663
3719
|
method: "POST",
|
|
3664
3720
|
headers: {
|
|
3665
3721
|
"Content-Type": "application/json",
|
|
3722
|
+
"Accept": "application/json"
|
|
3666
3723
|
}
|
|
3667
3724
|
};
|
|
3668
3725
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
@@ -3678,9 +3735,12 @@ export class BookingClient extends AuthorizedApiBase {
|
|
|
3678
3735
|
response.headers.forEach((v, k) => _headers[k] = v);
|
|
3679
3736
|
}
|
|
3680
3737
|
;
|
|
3681
|
-
if (status ===
|
|
3738
|
+
if (status === 200) {
|
|
3682
3739
|
return response.text().then((_responseText) => {
|
|
3683
|
-
|
|
3740
|
+
let result200 = null;
|
|
3741
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3742
|
+
result200 = BookingDto.fromJS(resultData200);
|
|
3743
|
+
return result200;
|
|
3684
3744
|
});
|
|
3685
3745
|
}
|
|
3686
3746
|
else if (status !== 200 && status !== 204) {
|
|
@@ -3699,6 +3759,7 @@ export class BookingClient extends AuthorizedApiBase {
|
|
|
3699
3759
|
method: "POST",
|
|
3700
3760
|
headers: {
|
|
3701
3761
|
"Content-Type": "application/json",
|
|
3762
|
+
"Accept": "application/json"
|
|
3702
3763
|
}
|
|
3703
3764
|
};
|
|
3704
3765
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
@@ -3714,9 +3775,12 @@ export class BookingClient extends AuthorizedApiBase {
|
|
|
3714
3775
|
response.headers.forEach((v, k) => _headers[k] = v);
|
|
3715
3776
|
}
|
|
3716
3777
|
;
|
|
3717
|
-
if (status ===
|
|
3778
|
+
if (status === 200) {
|
|
3718
3779
|
return response.text().then((_responseText) => {
|
|
3719
|
-
|
|
3780
|
+
let result200 = null;
|
|
3781
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3782
|
+
result200 = BookingDto.fromJS(resultData200);
|
|
3783
|
+
return result200;
|
|
3720
3784
|
});
|
|
3721
3785
|
}
|
|
3722
3786
|
else if (status !== 200 && status !== 204) {
|
|
@@ -3727,7 +3791,7 @@ export class BookingClient extends AuthorizedApiBase {
|
|
|
3727
3791
|
return Promise.resolve(null);
|
|
3728
3792
|
}
|
|
3729
3793
|
}
|
|
3730
|
-
export class
|
|
3794
|
+
export class MoveLocationsClient extends AuthorizedApiBase {
|
|
3731
3795
|
constructor(configuration, baseUrl, http) {
|
|
3732
3796
|
super(configuration);
|
|
3733
3797
|
this.jsonParseReviver = undefined;
|
|
@@ -3829,14 +3893,14 @@ export class LocationsClient extends AuthorizedApiBase {
|
|
|
3829
3893
|
return Promise.resolve(null);
|
|
3830
3894
|
}
|
|
3831
3895
|
}
|
|
3832
|
-
export class
|
|
3896
|
+
export class MoveTrackingClient extends AuthorizedApiBase {
|
|
3833
3897
|
constructor(configuration, baseUrl, http) {
|
|
3834
3898
|
super(configuration);
|
|
3835
3899
|
this.jsonParseReviver = undefined;
|
|
3836
3900
|
this.http = http ? http : window;
|
|
3837
3901
|
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
3838
3902
|
}
|
|
3839
|
-
|
|
3903
|
+
getTrackingHistory(trackingId) {
|
|
3840
3904
|
let url_ = this.baseUrl + "/move/tracking/{trackingId}";
|
|
3841
3905
|
if (trackingId === undefined || trackingId === null)
|
|
3842
3906
|
throw new Error("The parameter 'trackingId' must be defined.");
|
|
@@ -3851,10 +3915,10 @@ export class TrackingClient extends AuthorizedApiBase {
|
|
|
3851
3915
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
3852
3916
|
return this.http.fetch(url_, transformedOptions_);
|
|
3853
3917
|
}).then((_response) => {
|
|
3854
|
-
return this.
|
|
3918
|
+
return this.processGetTrackingHistory(_response);
|
|
3855
3919
|
});
|
|
3856
3920
|
}
|
|
3857
|
-
|
|
3921
|
+
processGetTrackingHistory(response) {
|
|
3858
3922
|
const status = response.status;
|
|
3859
3923
|
let _headers = {};
|
|
3860
3924
|
if (response.headers && response.headers.forEach) {
|
|
@@ -3876,7 +3940,7 @@ export class TrackingClient extends AuthorizedApiBase {
|
|
|
3876
3940
|
}
|
|
3877
3941
|
return Promise.resolve(null);
|
|
3878
3942
|
}
|
|
3879
|
-
|
|
3943
|
+
getWorkOrderTrackingHistory(workOrderId) {
|
|
3880
3944
|
let url_ = this.baseUrl + "/move/tracking/workorder/{workOrderId}";
|
|
3881
3945
|
if (workOrderId === undefined || workOrderId === null)
|
|
3882
3946
|
throw new Error("The parameter 'workOrderId' must be defined.");
|
|
@@ -3888,6 +3952,46 @@ export class TrackingClient extends AuthorizedApiBase {
|
|
|
3888
3952
|
"Accept": "application/json"
|
|
3889
3953
|
}
|
|
3890
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
|
+
};
|
|
3891
3995
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
3892
3996
|
return this.http.fetch(url_, transformedOptions_);
|
|
3893
3997
|
}).then((_response) => {
|
|
@@ -3905,7 +4009,11 @@ export class TrackingClient extends AuthorizedApiBase {
|
|
|
3905
4009
|
return response.text().then((_responseText) => {
|
|
3906
4010
|
let result200 = null;
|
|
3907
4011
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3908
|
-
|
|
4012
|
+
if (Array.isArray(resultData200)) {
|
|
4013
|
+
result200 = [];
|
|
4014
|
+
for (let item of resultData200)
|
|
4015
|
+
result200.push(TrackingWorkOrderDto.fromJS(item));
|
|
4016
|
+
}
|
|
3909
4017
|
return result200;
|
|
3910
4018
|
});
|
|
3911
4019
|
}
|
|
@@ -4074,7 +4182,7 @@ export class TrackingClient extends AuthorizedApiBase {
|
|
|
4074
4182
|
return Promise.resolve(null);
|
|
4075
4183
|
}
|
|
4076
4184
|
}
|
|
4077
|
-
export class
|
|
4185
|
+
export class MoveWorkOrdersClient extends AuthorizedApiBase {
|
|
4078
4186
|
constructor(configuration, baseUrl, http) {
|
|
4079
4187
|
super(configuration);
|
|
4080
4188
|
this.jsonParseReviver = undefined;
|
|
@@ -22133,7 +22241,7 @@ export class ListTraceWorkordersRequest {
|
|
|
22133
22241
|
return data;
|
|
22134
22242
|
}
|
|
22135
22243
|
}
|
|
22136
|
-
export class
|
|
22244
|
+
export class BookingListDto {
|
|
22137
22245
|
constructor(data) {
|
|
22138
22246
|
if (data) {
|
|
22139
22247
|
for (var property in data) {
|
|
@@ -22150,14 +22258,14 @@ export class BookingResponseListDto {
|
|
|
22150
22258
|
if (Array.isArray(_data["results"])) {
|
|
22151
22259
|
this.results = [];
|
|
22152
22260
|
for (let item of _data["results"])
|
|
22153
|
-
this.results.push(
|
|
22261
|
+
this.results.push(BookingDto.fromJS(item));
|
|
22154
22262
|
}
|
|
22155
22263
|
this.continuationToken = _data["continuationToken"];
|
|
22156
22264
|
}
|
|
22157
22265
|
}
|
|
22158
22266
|
static fromJS(data) {
|
|
22159
22267
|
data = typeof data === 'object' ? data : {};
|
|
22160
|
-
let result = new
|
|
22268
|
+
let result = new BookingListDto();
|
|
22161
22269
|
result.init(data);
|
|
22162
22270
|
return result;
|
|
22163
22271
|
}
|
|
@@ -22172,7 +22280,7 @@ export class BookingResponseListDto {
|
|
|
22172
22280
|
return data;
|
|
22173
22281
|
}
|
|
22174
22282
|
}
|
|
22175
|
-
export class
|
|
22283
|
+
export class BookingDto {
|
|
22176
22284
|
constructor(data) {
|
|
22177
22285
|
if (data) {
|
|
22178
22286
|
for (var property in data) {
|
|
@@ -22190,18 +22298,24 @@ export class BookingResponseDto {
|
|
|
22190
22298
|
if (_data) {
|
|
22191
22299
|
this.bookingId = _data["bookingId"];
|
|
22192
22300
|
this.bookingType = _data["bookingType"];
|
|
22301
|
+
this.status = _data["status"];
|
|
22193
22302
|
if (Array.isArray(_data["items"])) {
|
|
22194
22303
|
this.items = [];
|
|
22195
22304
|
for (let item of _data["items"])
|
|
22196
|
-
this.items.push(
|
|
22305
|
+
this.items.push(BookingItemDto.fromJS(item));
|
|
22197
22306
|
}
|
|
22198
22307
|
this.fromLocation = _data["fromLocation"] ? LocationDto.fromJS(_data["fromLocation"]) : new LocationDto();
|
|
22199
22308
|
this.toLocation = _data["toLocation"] ? LocationDto.fromJS(_data["toLocation"]) : new LocationDto();
|
|
22309
|
+
this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined;
|
|
22310
|
+
this.createdBy = _data["createdBy"];
|
|
22311
|
+
this.createdById = _data["createdById"];
|
|
22312
|
+
this.updatedBy = _data["updatedBy"];
|
|
22313
|
+
this.updatedById = _data["updatedById"];
|
|
22200
22314
|
}
|
|
22201
22315
|
}
|
|
22202
22316
|
static fromJS(data) {
|
|
22203
22317
|
data = typeof data === 'object' ? data : {};
|
|
22204
|
-
let result = new
|
|
22318
|
+
let result = new BookingDto();
|
|
22205
22319
|
result.init(data);
|
|
22206
22320
|
return result;
|
|
22207
22321
|
}
|
|
@@ -22209,6 +22323,7 @@ export class BookingResponseDto {
|
|
|
22209
22323
|
data = typeof data === 'object' ? data : {};
|
|
22210
22324
|
data["bookingId"] = this.bookingId;
|
|
22211
22325
|
data["bookingType"] = this.bookingType;
|
|
22326
|
+
data["status"] = this.status;
|
|
22212
22327
|
if (Array.isArray(this.items)) {
|
|
22213
22328
|
data["items"] = [];
|
|
22214
22329
|
for (let item of this.items)
|
|
@@ -22216,10 +22331,15 @@ export class BookingResponseDto {
|
|
|
22216
22331
|
}
|
|
22217
22332
|
data["fromLocation"] = this.fromLocation ? this.fromLocation.toJSON() : undefined;
|
|
22218
22333
|
data["toLocation"] = this.toLocation ? this.toLocation.toJSON() : undefined;
|
|
22334
|
+
data["created"] = this.created ? this.created.toISOString() : undefined;
|
|
22335
|
+
data["createdBy"] = this.createdBy;
|
|
22336
|
+
data["createdById"] = this.createdById;
|
|
22337
|
+
data["updatedBy"] = this.updatedBy;
|
|
22338
|
+
data["updatedById"] = this.updatedById;
|
|
22219
22339
|
return data;
|
|
22220
22340
|
}
|
|
22221
22341
|
}
|
|
22222
|
-
export class
|
|
22342
|
+
export class BookingItemDto {
|
|
22223
22343
|
constructor(data) {
|
|
22224
22344
|
if (data) {
|
|
22225
22345
|
for (var property in data) {
|
|
@@ -22231,17 +22351,21 @@ export class BookingItemResponseDto {
|
|
|
22231
22351
|
init(_data) {
|
|
22232
22352
|
if (_data) {
|
|
22233
22353
|
this.trackingId = _data["trackingId"];
|
|
22354
|
+
this.workOrderId = _data["workOrderId"];
|
|
22355
|
+
this.material = _data["material"];
|
|
22234
22356
|
}
|
|
22235
22357
|
}
|
|
22236
22358
|
static fromJS(data) {
|
|
22237
22359
|
data = typeof data === 'object' ? data : {};
|
|
22238
|
-
let result = new
|
|
22360
|
+
let result = new BookingItemDto();
|
|
22239
22361
|
result.init(data);
|
|
22240
22362
|
return result;
|
|
22241
22363
|
}
|
|
22242
22364
|
toJSON(data) {
|
|
22243
22365
|
data = typeof data === 'object' ? data : {};
|
|
22244
22366
|
data["trackingId"] = this.trackingId;
|
|
22367
|
+
data["workOrderId"] = this.workOrderId;
|
|
22368
|
+
data["material"] = this.material;
|
|
22245
22369
|
return data;
|
|
22246
22370
|
}
|
|
22247
22371
|
}
|
|
@@ -22519,16 +22643,14 @@ export class TrackingEventDto {
|
|
|
22519
22643
|
this[property] = data[property];
|
|
22520
22644
|
}
|
|
22521
22645
|
}
|
|
22522
|
-
if (!data) {
|
|
22523
|
-
this.location = new LocationDto();
|
|
22524
|
-
}
|
|
22525
22646
|
}
|
|
22526
22647
|
init(_data) {
|
|
22527
22648
|
if (_data) {
|
|
22528
22649
|
this.id = _data["id"];
|
|
22529
22650
|
this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined;
|
|
22530
22651
|
this.createdBy = _data["createdBy"];
|
|
22531
|
-
this.
|
|
22652
|
+
this.createdById = _data["createdById"];
|
|
22653
|
+
this.location = _data["location"] ? LocationDto.fromJS(_data["location"]) : undefined;
|
|
22532
22654
|
this.status = _data["status"];
|
|
22533
22655
|
this.bookingId = _data["bookingId"];
|
|
22534
22656
|
this.comment = _data["comment"];
|
|
@@ -22545,6 +22667,7 @@ export class TrackingEventDto {
|
|
|
22545
22667
|
data["id"] = this.id;
|
|
22546
22668
|
data["created"] = this.created ? this.created.toISOString() : undefined;
|
|
22547
22669
|
data["createdBy"] = this.createdBy;
|
|
22670
|
+
data["createdById"] = this.createdById;
|
|
22548
22671
|
data["location"] = this.location ? this.location.toJSON() : undefined;
|
|
22549
22672
|
data["status"] = this.status;
|
|
22550
22673
|
data["bookingId"] = this.bookingId;
|
|
@@ -22636,8 +22759,6 @@ export class TrackingHistoryUpdateDto {
|
|
|
22636
22759
|
init(_data) {
|
|
22637
22760
|
if (_data) {
|
|
22638
22761
|
this.workOrderId = _data["workOrderId"];
|
|
22639
|
-
this.locationId = _data["locationId"];
|
|
22640
|
-
this.comment = _data["comment"];
|
|
22641
22762
|
}
|
|
22642
22763
|
}
|
|
22643
22764
|
static fromJS(data) {
|
|
@@ -22649,8 +22770,6 @@ export class TrackingHistoryUpdateDto {
|
|
|
22649
22770
|
toJSON(data) {
|
|
22650
22771
|
data = typeof data === 'object' ? data : {};
|
|
22651
22772
|
data["workOrderId"] = this.workOrderId;
|
|
22652
|
-
data["locationId"] = this.locationId;
|
|
22653
|
-
data["comment"] = this.comment;
|
|
22654
22773
|
return data;
|
|
22655
22774
|
}
|
|
22656
22775
|
}
|
|
@@ -22662,10 +22781,18 @@ export class SearchWorkOrderDto {
|
|
|
22662
22781
|
this[property] = data[property];
|
|
22663
22782
|
}
|
|
22664
22783
|
}
|
|
22784
|
+
if (!data) {
|
|
22785
|
+
this.trackingIds = [];
|
|
22786
|
+
}
|
|
22665
22787
|
}
|
|
22666
22788
|
init(_data) {
|
|
22667
22789
|
if (_data) {
|
|
22668
22790
|
this.workOrderId = _data["workOrderId"];
|
|
22791
|
+
if (Array.isArray(_data["trackingIds"])) {
|
|
22792
|
+
this.trackingIds = [];
|
|
22793
|
+
for (let item of _data["trackingIds"])
|
|
22794
|
+
this.trackingIds.push(item);
|
|
22795
|
+
}
|
|
22669
22796
|
this.partName = _data["partName"];
|
|
22670
22797
|
this.partNumber = _data["partNumber"];
|
|
22671
22798
|
}
|
|
@@ -22679,6 +22806,11 @@ export class SearchWorkOrderDto {
|
|
|
22679
22806
|
toJSON(data) {
|
|
22680
22807
|
data = typeof data === 'object' ? data : {};
|
|
22681
22808
|
data["workOrderId"] = this.workOrderId;
|
|
22809
|
+
if (Array.isArray(this.trackingIds)) {
|
|
22810
|
+
data["trackingIds"] = [];
|
|
22811
|
+
for (let item of this.trackingIds)
|
|
22812
|
+
data["trackingIds"].push(item);
|
|
22813
|
+
}
|
|
22682
22814
|
data["partName"] = this.partName;
|
|
22683
22815
|
data["partNumber"] = this.partNumber;
|
|
22684
22816
|
return data;
|
|
@@ -24463,12 +24595,14 @@ export class UtilizationDto {
|
|
|
24463
24595
|
if (!data) {
|
|
24464
24596
|
this.powerOn = new PowerOnUtilizationV2Dto();
|
|
24465
24597
|
this.uptimeDowntimes = new UptimeDowntimesDto();
|
|
24598
|
+
this.twentyFourSeven = new TwentyFourSevenUtilizationDto();
|
|
24466
24599
|
}
|
|
24467
24600
|
}
|
|
24468
24601
|
init(_data) {
|
|
24469
24602
|
if (_data) {
|
|
24470
24603
|
this.powerOn = _data["powerOn"] ? PowerOnUtilizationV2Dto.fromJS(_data["powerOn"]) : new PowerOnUtilizationV2Dto();
|
|
24471
24604
|
this.uptimeDowntimes = _data["uptimeDowntimes"] ? UptimeDowntimesDto.fromJS(_data["uptimeDowntimes"]) : new UptimeDowntimesDto();
|
|
24605
|
+
this.twentyFourSeven = _data["twentyFourSeven"] ? TwentyFourSevenUtilizationDto.fromJS(_data["twentyFourSeven"]) : new TwentyFourSevenUtilizationDto();
|
|
24472
24606
|
}
|
|
24473
24607
|
}
|
|
24474
24608
|
static fromJS(data) {
|
|
@@ -24481,6 +24615,7 @@ export class UtilizationDto {
|
|
|
24481
24615
|
data = typeof data === 'object' ? data : {};
|
|
24482
24616
|
data["powerOn"] = this.powerOn ? this.powerOn.toJSON() : undefined;
|
|
24483
24617
|
data["uptimeDowntimes"] = this.uptimeDowntimes ? this.uptimeDowntimes.toJSON() : undefined;
|
|
24618
|
+
data["twentyFourSeven"] = this.twentyFourSeven ? this.twentyFourSeven.toJSON() : undefined;
|
|
24484
24619
|
return data;
|
|
24485
24620
|
}
|
|
24486
24621
|
}
|
|
@@ -24568,6 +24703,7 @@ export class UptimeDowntimeDto {
|
|
|
24568
24703
|
this.uptimeInSeconds = _data["uptimeInSeconds"];
|
|
24569
24704
|
this.downtimeInSeconds = _data["downtimeInSeconds"];
|
|
24570
24705
|
this.powerOnTimeInSeconds = _data["powerOnTimeInSeconds"];
|
|
24706
|
+
this.twentyFourSevenTimeInSeconds = _data["twentyFourSevenTimeInSeconds"];
|
|
24571
24707
|
}
|
|
24572
24708
|
}
|
|
24573
24709
|
static fromJS(data) {
|
|
@@ -24581,6 +24717,39 @@ export class UptimeDowntimeDto {
|
|
|
24581
24717
|
data["uptimeInSeconds"] = this.uptimeInSeconds;
|
|
24582
24718
|
data["downtimeInSeconds"] = this.downtimeInSeconds;
|
|
24583
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;
|
|
24584
24753
|
return data;
|
|
24585
24754
|
}
|
|
24586
24755
|
}
|