@ignos/api-client 20250109.0.10927 → 20250116.0.10988

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.
@@ -1,6 +1,6 @@
1
1
  //----------------------
2
2
  // <auto-generated>
3
- // Generated using the NSwag toolchain v14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org)
3
+ // Generated using the NSwag toolchain v14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org)
4
4
  // </auto-generated>
5
5
  //----------------------
6
6
  /* tslint:disable */
@@ -2077,6 +2077,91 @@ export class MachineAlarmsClient extends AuthorizedApiBase {
2077
2077
  return Promise.resolve(null);
2078
2078
  }
2079
2079
  }
2080
+ export class PulseClient extends AuthorizedApiBase {
2081
+ constructor(configuration, baseUrl, http) {
2082
+ super(configuration);
2083
+ this.jsonParseReviver = undefined;
2084
+ this.http = http ? http : window;
2085
+ this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
2086
+ }
2087
+ getPulseSettings() {
2088
+ let url_ = this.baseUrl + "/pulse/settings";
2089
+ url_ = url_.replace(/[?&]$/, "");
2090
+ let options_ = {
2091
+ method: "GET",
2092
+ headers: {
2093
+ "Accept": "application/json"
2094
+ }
2095
+ };
2096
+ return this.transformOptions(options_).then(transformedOptions_ => {
2097
+ return this.http.fetch(url_, transformedOptions_);
2098
+ }).then((_response) => {
2099
+ return this.processGetPulseSettings(_response);
2100
+ });
2101
+ }
2102
+ processGetPulseSettings(response) {
2103
+ const status = response.status;
2104
+ let _headers = {};
2105
+ if (response.headers && response.headers.forEach) {
2106
+ response.headers.forEach((v, k) => _headers[k] = v);
2107
+ }
2108
+ ;
2109
+ if (status === 200) {
2110
+ return response.text().then((_responseText) => {
2111
+ let result200 = null;
2112
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
2113
+ result200 = PulseSettingsDto.fromJS(resultData200);
2114
+ return result200;
2115
+ });
2116
+ }
2117
+ else if (status !== 200 && status !== 204) {
2118
+ return response.text().then((_responseText) => {
2119
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
2120
+ });
2121
+ }
2122
+ return Promise.resolve(null);
2123
+ }
2124
+ updatePulseSettings(request) {
2125
+ let url_ = this.baseUrl + "/pulse/settings";
2126
+ url_ = url_.replace(/[?&]$/, "");
2127
+ const content_ = JSON.stringify(request);
2128
+ let options_ = {
2129
+ body: content_,
2130
+ method: "POST",
2131
+ headers: {
2132
+ "Content-Type": "application/json",
2133
+ "Accept": "application/json"
2134
+ }
2135
+ };
2136
+ return this.transformOptions(options_).then(transformedOptions_ => {
2137
+ return this.http.fetch(url_, transformedOptions_);
2138
+ }).then((_response) => {
2139
+ return this.processUpdatePulseSettings(_response);
2140
+ });
2141
+ }
2142
+ processUpdatePulseSettings(response) {
2143
+ const status = response.status;
2144
+ let _headers = {};
2145
+ if (response.headers && response.headers.forEach) {
2146
+ response.headers.forEach((v, k) => _headers[k] = v);
2147
+ }
2148
+ ;
2149
+ if (status === 200) {
2150
+ return response.text().then((_responseText) => {
2151
+ let result200 = null;
2152
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
2153
+ result200 = PulseSettingsDto.fromJS(resultData200);
2154
+ return result200;
2155
+ });
2156
+ }
2157
+ else if (status !== 200 && status !== 204) {
2158
+ return response.text().then((_responseText) => {
2159
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
2160
+ });
2161
+ }
2162
+ return Promise.resolve(null);
2163
+ }
2164
+ }
2080
2165
  export class MrbClient extends AuthorizedApiBase {
2081
2166
  constructor(configuration, baseUrl, http) {
2082
2167
  super(configuration);
@@ -5529,6 +5614,224 @@ export class DowntimeReasonsClient extends AuthorizedApiBase {
5529
5614
  }
5530
5615
  return Promise.resolve(null);
5531
5616
  }
5617
+ createReport(request) {
5618
+ let url_ = this.baseUrl + "/downtimereasons/report";
5619
+ url_ = url_.replace(/[?&]$/, "");
5620
+ const content_ = JSON.stringify(request);
5621
+ let options_ = {
5622
+ body: content_,
5623
+ method: "POST",
5624
+ headers: {
5625
+ "Content-Type": "application/json",
5626
+ "Accept": "application/json"
5627
+ }
5628
+ };
5629
+ return this.transformOptions(options_).then(transformedOptions_ => {
5630
+ return this.http.fetch(url_, transformedOptions_);
5631
+ }).then((_response) => {
5632
+ return this.processCreateReport(_response);
5633
+ });
5634
+ }
5635
+ processCreateReport(response) {
5636
+ const status = response.status;
5637
+ let _headers = {};
5638
+ if (response.headers && response.headers.forEach) {
5639
+ response.headers.forEach((v, k) => _headers[k] = v);
5640
+ }
5641
+ ;
5642
+ if (status === 200) {
5643
+ return response.text().then((_responseText) => {
5644
+ let result200 = null;
5645
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
5646
+ result200 = DowntimeReasonsReportDto.fromJS(resultData200);
5647
+ return result200;
5648
+ });
5649
+ }
5650
+ else if (status !== 200 && status !== 204) {
5651
+ return response.text().then((_responseText) => {
5652
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
5653
+ });
5654
+ }
5655
+ return Promise.resolve(null);
5656
+ }
5657
+ }
5658
+ export class KpiAdminClient extends AuthorizedApiBase {
5659
+ constructor(configuration, baseUrl, http) {
5660
+ super(configuration);
5661
+ this.jsonParseReviver = undefined;
5662
+ this.http = http ? http : window;
5663
+ this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
5664
+ }
5665
+ getMachineCapacityAdmin() {
5666
+ let url_ = this.baseUrl + "/kpiadmin/capacity";
5667
+ url_ = url_.replace(/[?&]$/, "");
5668
+ let options_ = {
5669
+ method: "GET",
5670
+ headers: {
5671
+ "Accept": "application/json"
5672
+ }
5673
+ };
5674
+ return this.transformOptions(options_).then(transformedOptions_ => {
5675
+ return this.http.fetch(url_, transformedOptions_);
5676
+ }).then((_response) => {
5677
+ return this.processGetMachineCapacityAdmin(_response);
5678
+ });
5679
+ }
5680
+ processGetMachineCapacityAdmin(response) {
5681
+ const status = response.status;
5682
+ let _headers = {};
5683
+ if (response.headers && response.headers.forEach) {
5684
+ response.headers.forEach((v, k) => _headers[k] = v);
5685
+ }
5686
+ ;
5687
+ if (status === 200) {
5688
+ return response.text().then((_responseText) => {
5689
+ let result200 = null;
5690
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
5691
+ if (Array.isArray(resultData200)) {
5692
+ result200 = [];
5693
+ for (let item of resultData200)
5694
+ result200.push(MachineGroupCapacityDto.fromJS(item));
5695
+ }
5696
+ return result200;
5697
+ });
5698
+ }
5699
+ else if (status !== 200 && status !== 204) {
5700
+ return response.text().then((_responseText) => {
5701
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
5702
+ });
5703
+ }
5704
+ return Promise.resolve(null);
5705
+ }
5706
+ updateMachineCapacityAdmin(request) {
5707
+ let url_ = this.baseUrl + "/kpiadmin/capacity";
5708
+ url_ = url_.replace(/[?&]$/, "");
5709
+ const content_ = JSON.stringify(request);
5710
+ let options_ = {
5711
+ body: content_,
5712
+ method: "PUT",
5713
+ headers: {
5714
+ "Content-Type": "application/json",
5715
+ "Accept": "application/json"
5716
+ }
5717
+ };
5718
+ return this.transformOptions(options_).then(transformedOptions_ => {
5719
+ return this.http.fetch(url_, transformedOptions_);
5720
+ }).then((_response) => {
5721
+ return this.processUpdateMachineCapacityAdmin(_response);
5722
+ });
5723
+ }
5724
+ processUpdateMachineCapacityAdmin(response) {
5725
+ const status = response.status;
5726
+ let _headers = {};
5727
+ if (response.headers && response.headers.forEach) {
5728
+ response.headers.forEach((v, k) => _headers[k] = v);
5729
+ }
5730
+ ;
5731
+ if (status === 200) {
5732
+ return response.text().then((_responseText) => {
5733
+ let result200 = null;
5734
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
5735
+ result200 = MachineCapacityDto.fromJS(resultData200);
5736
+ return result200;
5737
+ });
5738
+ }
5739
+ else if (status !== 200 && status !== 204) {
5740
+ return response.text().then((_responseText) => {
5741
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
5742
+ });
5743
+ }
5744
+ return Promise.resolve(null);
5745
+ }
5746
+ getCalenderCapacityAdmin(startDate, endDate) {
5747
+ let url_ = this.baseUrl + "/kpiadmin/calender?";
5748
+ if (startDate === null)
5749
+ throw new Error("The parameter 'startDate' cannot be null.");
5750
+ else if (startDate !== undefined)
5751
+ url_ += "startDate=" + encodeURIComponent(startDate ? "" + startDate.toISOString() : "") + "&";
5752
+ if (endDate === null)
5753
+ throw new Error("The parameter 'endDate' cannot be null.");
5754
+ else if (endDate !== undefined)
5755
+ url_ += "endDate=" + encodeURIComponent(endDate ? "" + endDate.toISOString() : "") + "&";
5756
+ url_ = url_.replace(/[?&]$/, "");
5757
+ let options_ = {
5758
+ method: "GET",
5759
+ headers: {
5760
+ "Accept": "application/json"
5761
+ }
5762
+ };
5763
+ return this.transformOptions(options_).then(transformedOptions_ => {
5764
+ return this.http.fetch(url_, transformedOptions_);
5765
+ }).then((_response) => {
5766
+ return this.processGetCalenderCapacityAdmin(_response);
5767
+ });
5768
+ }
5769
+ processGetCalenderCapacityAdmin(response) {
5770
+ const status = response.status;
5771
+ let _headers = {};
5772
+ if (response.headers && response.headers.forEach) {
5773
+ response.headers.forEach((v, k) => _headers[k] = v);
5774
+ }
5775
+ ;
5776
+ if (status === 200) {
5777
+ return response.text().then((_responseText) => {
5778
+ let result200 = null;
5779
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
5780
+ if (Array.isArray(resultData200)) {
5781
+ result200 = [];
5782
+ for (let item of resultData200)
5783
+ result200.push(CalenderCapacityDto.fromJS(item));
5784
+ }
5785
+ return result200;
5786
+ });
5787
+ }
5788
+ else if (status !== 200 && status !== 204) {
5789
+ return response.text().then((_responseText) => {
5790
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
5791
+ });
5792
+ }
5793
+ return Promise.resolve(null);
5794
+ }
5795
+ updateCalenderCapacityAdmin(request) {
5796
+ let url_ = this.baseUrl + "/kpiadmin/calender";
5797
+ url_ = url_.replace(/[?&]$/, "");
5798
+ const content_ = JSON.stringify(request);
5799
+ let options_ = {
5800
+ body: content_,
5801
+ method: "PUT",
5802
+ headers: {
5803
+ "Content-Type": "application/json",
5804
+ "Accept": "application/json"
5805
+ }
5806
+ };
5807
+ return this.transformOptions(options_).then(transformedOptions_ => {
5808
+ return this.http.fetch(url_, transformedOptions_);
5809
+ }).then((_response) => {
5810
+ return this.processUpdateCalenderCapacityAdmin(_response);
5811
+ });
5812
+ }
5813
+ processUpdateCalenderCapacityAdmin(response) {
5814
+ const status = response.status;
5815
+ let _headers = {};
5816
+ if (response.headers && response.headers.forEach) {
5817
+ response.headers.forEach((v, k) => _headers[k] = v);
5818
+ }
5819
+ ;
5820
+ if (status === 200) {
5821
+ return response.text().then((_responseText) => {
5822
+ let result200 = null;
5823
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
5824
+ result200 = CalenderCapacityDto.fromJS(resultData200);
5825
+ return result200;
5826
+ });
5827
+ }
5828
+ else if (status !== 200 && status !== 204) {
5829
+ return response.text().then((_responseText) => {
5830
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
5831
+ });
5832
+ }
5833
+ return Promise.resolve(null);
5834
+ }
5532
5835
  }
5533
5836
  export class MachinesClient extends AuthorizedApiBase {
5534
5837
  constructor(configuration, baseUrl, http) {
@@ -12560,6 +12863,53 @@ export class MoveLocationsClient extends AuthorizedApiBase {
12560
12863
  }
12561
12864
  return Promise.resolve(null);
12562
12865
  }
12866
+ suggestionsMaterial(parcelId, operation) {
12867
+ let url_ = this.baseUrl + "/move/locations/suggestionsmaterial?";
12868
+ if (parcelId === null)
12869
+ throw new Error("The parameter 'parcelId' cannot be null.");
12870
+ else if (parcelId !== undefined)
12871
+ url_ += "parcelId=" + encodeURIComponent("" + parcelId) + "&";
12872
+ if (operation !== undefined && operation !== null)
12873
+ url_ += "operation=" + encodeURIComponent("" + operation) + "&";
12874
+ url_ = url_.replace(/[?&]$/, "");
12875
+ let options_ = {
12876
+ method: "GET",
12877
+ headers: {
12878
+ "Accept": "application/json"
12879
+ }
12880
+ };
12881
+ return this.transformOptions(options_).then(transformedOptions_ => {
12882
+ return this.http.fetch(url_, transformedOptions_);
12883
+ }).then((_response) => {
12884
+ return this.processSuggestionsMaterial(_response);
12885
+ });
12886
+ }
12887
+ processSuggestionsMaterial(response) {
12888
+ const status = response.status;
12889
+ let _headers = {};
12890
+ if (response.headers && response.headers.forEach) {
12891
+ response.headers.forEach((v, k) => _headers[k] = v);
12892
+ }
12893
+ ;
12894
+ if (status === 200) {
12895
+ return response.text().then((_responseText) => {
12896
+ let result200 = null;
12897
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
12898
+ if (Array.isArray(resultData200)) {
12899
+ result200 = [];
12900
+ for (let item of resultData200)
12901
+ result200.push(SuggestionsMaterialItemDto.fromJS(item));
12902
+ }
12903
+ return result200;
12904
+ });
12905
+ }
12906
+ else if (status !== 200 && status !== 204) {
12907
+ return response.text().then((_responseText) => {
12908
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
12909
+ });
12910
+ }
12911
+ return Promise.resolve(null);
12912
+ }
12563
12913
  }
12564
12914
  export class MoveMaterialsClient extends AuthorizedApiBase {
12565
12915
  constructor(configuration, baseUrl, http) {
@@ -22072,6 +22422,99 @@ export class CncProgramInfoDto {
22072
22422
  return data;
22073
22423
  }
22074
22424
  }
22425
+ export class PulseSettingsDto {
22426
+ constructor(data) {
22427
+ if (data) {
22428
+ for (var property in data) {
22429
+ if (data.hasOwnProperty(property))
22430
+ this[property] = data[property];
22431
+ }
22432
+ }
22433
+ if (!data) {
22434
+ this.utilizationTypeEnabling = new UtilizationTypeEnablingDto();
22435
+ }
22436
+ }
22437
+ init(_data) {
22438
+ if (_data) {
22439
+ this.defaultUtilizationType = _data["defaultUtilizationType"];
22440
+ this.utilizationTypeEnabling = _data["utilizationTypeEnabling"] ? UtilizationTypeEnablingDto.fromJS(_data["utilizationTypeEnabling"]) : new UtilizationTypeEnablingDto();
22441
+ }
22442
+ }
22443
+ static fromJS(data) {
22444
+ data = typeof data === 'object' ? data : {};
22445
+ let result = new PulseSettingsDto();
22446
+ result.init(data);
22447
+ return result;
22448
+ }
22449
+ toJSON(data) {
22450
+ data = typeof data === 'object' ? data : {};
22451
+ data["defaultUtilizationType"] = this.defaultUtilizationType;
22452
+ data["utilizationTypeEnabling"] = this.utilizationTypeEnabling ? this.utilizationTypeEnabling.toJSON() : undefined;
22453
+ return data;
22454
+ }
22455
+ }
22456
+ export class UtilizationTypeEnablingDto {
22457
+ constructor(data) {
22458
+ if (data) {
22459
+ for (var property in data) {
22460
+ if (data.hasOwnProperty(property))
22461
+ this[property] = data[property];
22462
+ }
22463
+ }
22464
+ }
22465
+ init(_data) {
22466
+ if (_data) {
22467
+ this.powerOnEnabled = _data["powerOnEnabled"];
22468
+ this.twentyFourSevenEnabled = _data["twentyFourSevenEnabled"];
22469
+ this.activeOrderEnabled = _data["activeOrderEnabled"];
22470
+ }
22471
+ }
22472
+ static fromJS(data) {
22473
+ data = typeof data === 'object' ? data : {};
22474
+ let result = new UtilizationTypeEnablingDto();
22475
+ result.init(data);
22476
+ return result;
22477
+ }
22478
+ toJSON(data) {
22479
+ data = typeof data === 'object' ? data : {};
22480
+ data["powerOnEnabled"] = this.powerOnEnabled;
22481
+ data["twentyFourSevenEnabled"] = this.twentyFourSevenEnabled;
22482
+ data["activeOrderEnabled"] = this.activeOrderEnabled;
22483
+ return data;
22484
+ }
22485
+ }
22486
+ export class UpdatePulseSettings {
22487
+ constructor(data) {
22488
+ if (data) {
22489
+ for (var property in data) {
22490
+ if (data.hasOwnProperty(property))
22491
+ this[property] = data[property];
22492
+ }
22493
+ }
22494
+ }
22495
+ init(_data) {
22496
+ if (_data) {
22497
+ this.defaultUtilizationType = _data["defaultUtilizationType"];
22498
+ this.powerOnEnabled = _data["powerOnEnabled"];
22499
+ this.twentyfourSevenEnabled = _data["twentyfourSevenEnabled"];
22500
+ this.activeOrderEnabled = _data["activeOrderEnabled"];
22501
+ }
22502
+ }
22503
+ static fromJS(data) {
22504
+ data = typeof data === 'object' ? data : {};
22505
+ let result = new UpdatePulseSettings();
22506
+ result.init(data);
22507
+ return result;
22508
+ }
22509
+ toJSON(data) {
22510
+ data = typeof data === 'object' ? data : {};
22511
+ data["defaultUtilizationType"] = this.defaultUtilizationType;
22512
+ data["powerOnEnabled"] = this.powerOnEnabled;
22513
+ data["twentyfourSevenEnabled"] = this.twentyfourSevenEnabled;
22514
+ data["activeOrderEnabled"] = this.activeOrderEnabled;
22515
+ return data;
22516
+ }
22517
+ }
22075
22518
  export class MrbInstanceDto {
22076
22519
  constructor(data) {
22077
22520
  if (data) {
@@ -25726,6 +26169,380 @@ export class DowntimeReasonCountDto {
25726
26169
  return data;
25727
26170
  }
25728
26171
  }
26172
+ export class DowntimeReasonsReportDto {
26173
+ constructor(data) {
26174
+ if (data) {
26175
+ for (var property in data) {
26176
+ if (data.hasOwnProperty(property))
26177
+ this[property] = data[property];
26178
+ }
26179
+ }
26180
+ }
26181
+ init(_data) {
26182
+ if (_data) {
26183
+ this.companyId = _data["companyId"];
26184
+ this.totalDowntimeDurationMilliseconds = _data["totalDowntimeDurationMilliseconds"];
26185
+ if (Array.isArray(_data["downtimeReasons"])) {
26186
+ this.downtimeReasons = [];
26187
+ for (let item of _data["downtimeReasons"])
26188
+ this.downtimeReasons.push(DowntimeReasonReport.fromJS(item));
26189
+ }
26190
+ }
26191
+ }
26192
+ static fromJS(data) {
26193
+ data = typeof data === 'object' ? data : {};
26194
+ let result = new DowntimeReasonsReportDto();
26195
+ result.init(data);
26196
+ return result;
26197
+ }
26198
+ toJSON(data) {
26199
+ data = typeof data === 'object' ? data : {};
26200
+ data["companyId"] = this.companyId;
26201
+ data["totalDowntimeDurationMilliseconds"] = this.totalDowntimeDurationMilliseconds;
26202
+ if (Array.isArray(this.downtimeReasons)) {
26203
+ data["downtimeReasons"] = [];
26204
+ for (let item of this.downtimeReasons)
26205
+ data["downtimeReasons"].push(item.toJSON());
26206
+ }
26207
+ return data;
26208
+ }
26209
+ }
26210
+ export class DowntimeReasonReport {
26211
+ constructor(data) {
26212
+ if (data) {
26213
+ for (var property in data) {
26214
+ if (data.hasOwnProperty(property))
26215
+ this[property] = data[property];
26216
+ }
26217
+ }
26218
+ if (!data) {
26219
+ this.details = [];
26220
+ }
26221
+ }
26222
+ init(_data) {
26223
+ if (_data) {
26224
+ this.reasonId = _data["reasonId"];
26225
+ this.reasonType = _data["reasonType"];
26226
+ this.reason = _data["reason"];
26227
+ this.totalDurationMilliseconds = _data["totalDurationMilliseconds"];
26228
+ this.count = _data["count"];
26229
+ if (Array.isArray(_data["details"])) {
26230
+ this.details = [];
26231
+ for (let item of _data["details"])
26232
+ this.details.push(DowntimeReasonInformation.fromJS(item));
26233
+ }
26234
+ }
26235
+ }
26236
+ static fromJS(data) {
26237
+ data = typeof data === 'object' ? data : {};
26238
+ let result = new DowntimeReasonReport();
26239
+ result.init(data);
26240
+ return result;
26241
+ }
26242
+ toJSON(data) {
26243
+ data = typeof data === 'object' ? data : {};
26244
+ data["reasonId"] = this.reasonId;
26245
+ data["reasonType"] = this.reasonType;
26246
+ data["reason"] = this.reason;
26247
+ data["totalDurationMilliseconds"] = this.totalDurationMilliseconds;
26248
+ data["count"] = this.count;
26249
+ if (Array.isArray(this.details)) {
26250
+ data["details"] = [];
26251
+ for (let item of this.details)
26252
+ data["details"].push(item.toJSON());
26253
+ }
26254
+ return data;
26255
+ }
26256
+ }
26257
+ export class DowntimeReasonInformation {
26258
+ constructor(data) {
26259
+ if (data) {
26260
+ for (var property in data) {
26261
+ if (data.hasOwnProperty(property))
26262
+ this[property] = data[property];
26263
+ }
26264
+ }
26265
+ if (!data) {
26266
+ this.downtimeReason = new DowntimePeriodReasonDto();
26267
+ }
26268
+ }
26269
+ init(_data) {
26270
+ if (_data) {
26271
+ this.downtimeReason = _data["downtimeReason"] ? DowntimePeriodReasonDto.fromJS(_data["downtimeReason"]) : new DowntimePeriodReasonDto();
26272
+ this.machine = _data["machine"];
26273
+ }
26274
+ }
26275
+ static fromJS(data) {
26276
+ data = typeof data === 'object' ? data : {};
26277
+ let result = new DowntimeReasonInformation();
26278
+ result.init(data);
26279
+ return result;
26280
+ }
26281
+ toJSON(data) {
26282
+ data = typeof data === 'object' ? data : {};
26283
+ data["downtimeReason"] = this.downtimeReason ? this.downtimeReason.toJSON() : undefined;
26284
+ data["machine"] = this.machine;
26285
+ return data;
26286
+ }
26287
+ }
26288
+ export class CreateDowntimeReasonsReportRequest {
26289
+ constructor(data) {
26290
+ if (data) {
26291
+ for (var property in data) {
26292
+ if (data.hasOwnProperty(property))
26293
+ this[property] = data[property];
26294
+ }
26295
+ }
26296
+ }
26297
+ init(_data) {
26298
+ if (_data) {
26299
+ if (Array.isArray(_data["machineExternalIds"])) {
26300
+ this.machineExternalIds = [];
26301
+ for (let item of _data["machineExternalIds"])
26302
+ this.machineExternalIds.push(item);
26303
+ }
26304
+ if (Array.isArray(_data["machineGroupNames"])) {
26305
+ this.machineGroupNames = [];
26306
+ for (let item of _data["machineGroupNames"])
26307
+ this.machineGroupNames.push(item);
26308
+ }
26309
+ this.startTime = _data["startTime"] ? new Date(_data["startTime"].toString()) : undefined;
26310
+ this.endTime = _data["endTime"] ? new Date(_data["endTime"].toString()) : undefined;
26311
+ }
26312
+ }
26313
+ static fromJS(data) {
26314
+ data = typeof data === 'object' ? data : {};
26315
+ let result = new CreateDowntimeReasonsReportRequest();
26316
+ result.init(data);
26317
+ return result;
26318
+ }
26319
+ toJSON(data) {
26320
+ data = typeof data === 'object' ? data : {};
26321
+ if (Array.isArray(this.machineExternalIds)) {
26322
+ data["machineExternalIds"] = [];
26323
+ for (let item of this.machineExternalIds)
26324
+ data["machineExternalIds"].push(item);
26325
+ }
26326
+ if (Array.isArray(this.machineGroupNames)) {
26327
+ data["machineGroupNames"] = [];
26328
+ for (let item of this.machineGroupNames)
26329
+ data["machineGroupNames"].push(item);
26330
+ }
26331
+ data["startTime"] = this.startTime ? this.startTime.toISOString() : undefined;
26332
+ data["endTime"] = this.endTime ? this.endTime.toISOString() : undefined;
26333
+ return data;
26334
+ }
26335
+ }
26336
+ export class MachineGroupCapacityDto {
26337
+ constructor(data) {
26338
+ if (data) {
26339
+ for (var property in data) {
26340
+ if (data.hasOwnProperty(property))
26341
+ this[property] = data[property];
26342
+ }
26343
+ }
26344
+ if (!data) {
26345
+ this.machine = [];
26346
+ }
26347
+ }
26348
+ init(_data) {
26349
+ if (_data) {
26350
+ this.machineGroupName = _data["machineGroupName"];
26351
+ if (Array.isArray(_data["machine"])) {
26352
+ this.machine = [];
26353
+ for (let item of _data["machine"])
26354
+ this.machine.push(MachineCapacityDto.fromJS(item));
26355
+ }
26356
+ }
26357
+ }
26358
+ static fromJS(data) {
26359
+ data = typeof data === 'object' ? data : {};
26360
+ let result = new MachineGroupCapacityDto();
26361
+ result.init(data);
26362
+ return result;
26363
+ }
26364
+ toJSON(data) {
26365
+ data = typeof data === 'object' ? data : {};
26366
+ data["machineGroupName"] = this.machineGroupName;
26367
+ if (Array.isArray(this.machine)) {
26368
+ data["machine"] = [];
26369
+ for (let item of this.machine)
26370
+ data["machine"].push(item.toJSON());
26371
+ }
26372
+ return data;
26373
+ }
26374
+ }
26375
+ export class MachineCapacityDto {
26376
+ constructor(data) {
26377
+ if (data) {
26378
+ for (var property in data) {
26379
+ if (data.hasOwnProperty(property))
26380
+ this[property] = data[property];
26381
+ }
26382
+ }
26383
+ }
26384
+ init(_data) {
26385
+ if (_data) {
26386
+ this.machineExternalId = _data["machineExternalId"];
26387
+ this.name = _data["name"];
26388
+ this.comment = _data["comment"];
26389
+ if (Array.isArray(_data["capacity"])) {
26390
+ this.capacity = [];
26391
+ for (let item of _data["capacity"])
26392
+ this.capacity.push(MachineCapacitySettingsDto.fromJS(item));
26393
+ }
26394
+ this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined;
26395
+ this.updatedBy = _data["updatedBy"];
26396
+ this.updatedById = _data["updatedById"];
26397
+ }
26398
+ }
26399
+ static fromJS(data) {
26400
+ data = typeof data === 'object' ? data : {};
26401
+ let result = new MachineCapacityDto();
26402
+ result.init(data);
26403
+ return result;
26404
+ }
26405
+ toJSON(data) {
26406
+ data = typeof data === 'object' ? data : {};
26407
+ data["machineExternalId"] = this.machineExternalId;
26408
+ data["name"] = this.name;
26409
+ data["comment"] = this.comment;
26410
+ if (Array.isArray(this.capacity)) {
26411
+ data["capacity"] = [];
26412
+ for (let item of this.capacity)
26413
+ data["capacity"].push(item.toJSON());
26414
+ }
26415
+ data["created"] = this.created ? this.created.toISOString() : undefined;
26416
+ data["updatedBy"] = this.updatedBy;
26417
+ data["updatedById"] = this.updatedById;
26418
+ return data;
26419
+ }
26420
+ }
26421
+ export class MachineCapacitySettingsDto {
26422
+ constructor(data) {
26423
+ if (data) {
26424
+ for (var property in data) {
26425
+ if (data.hasOwnProperty(property))
26426
+ this[property] = data[property];
26427
+ }
26428
+ }
26429
+ }
26430
+ init(_data) {
26431
+ if (_data) {
26432
+ this.capacityHours = _data["capacityHours"];
26433
+ this.utilizationPercent = _data["utilizationPercent"];
26434
+ }
26435
+ }
26436
+ static fromJS(data) {
26437
+ data = typeof data === 'object' ? data : {};
26438
+ let result = new MachineCapacitySettingsDto();
26439
+ result.init(data);
26440
+ return result;
26441
+ }
26442
+ toJSON(data) {
26443
+ data = typeof data === 'object' ? data : {};
26444
+ data["capacityHours"] = this.capacityHours;
26445
+ data["utilizationPercent"] = this.utilizationPercent;
26446
+ return data;
26447
+ }
26448
+ }
26449
+ export class UpdateMachinesCapacity {
26450
+ constructor(data) {
26451
+ if (data) {
26452
+ for (var property in data) {
26453
+ if (data.hasOwnProperty(property))
26454
+ this[property] = data[property];
26455
+ }
26456
+ }
26457
+ if (!data) {
26458
+ this.capacity = [];
26459
+ }
26460
+ }
26461
+ init(_data) {
26462
+ if (_data) {
26463
+ this.machineExternalId = _data["machineExternalId"];
26464
+ this.comment = _data["comment"];
26465
+ if (Array.isArray(_data["capacity"])) {
26466
+ this.capacity = [];
26467
+ for (let item of _data["capacity"])
26468
+ this.capacity.push(MachineCapacitySettingsDto.fromJS(item));
26469
+ }
26470
+ }
26471
+ }
26472
+ static fromJS(data) {
26473
+ data = typeof data === 'object' ? data : {};
26474
+ let result = new UpdateMachinesCapacity();
26475
+ result.init(data);
26476
+ return result;
26477
+ }
26478
+ toJSON(data) {
26479
+ data = typeof data === 'object' ? data : {};
26480
+ data["machineExternalId"] = this.machineExternalId;
26481
+ data["comment"] = this.comment;
26482
+ if (Array.isArray(this.capacity)) {
26483
+ data["capacity"] = [];
26484
+ for (let item of this.capacity)
26485
+ data["capacity"].push(item.toJSON());
26486
+ }
26487
+ return data;
26488
+ }
26489
+ }
26490
+ export class CalenderCapacityDto {
26491
+ constructor(data) {
26492
+ if (data) {
26493
+ for (var property in data) {
26494
+ if (data.hasOwnProperty(property))
26495
+ this[property] = data[property];
26496
+ }
26497
+ }
26498
+ }
26499
+ init(_data) {
26500
+ if (_data) {
26501
+ this.date = _data["date"] ? new Date(_data["date"].toString()) : undefined;
26502
+ this.dayCapacity = _data["dayCapacity"];
26503
+ }
26504
+ }
26505
+ static fromJS(data) {
26506
+ data = typeof data === 'object' ? data : {};
26507
+ let result = new CalenderCapacityDto();
26508
+ result.init(data);
26509
+ return result;
26510
+ }
26511
+ toJSON(data) {
26512
+ data = typeof data === 'object' ? data : {};
26513
+ data["date"] = this.date ? formatDate(this.date) : undefined;
26514
+ data["dayCapacity"] = this.dayCapacity;
26515
+ return data;
26516
+ }
26517
+ }
26518
+ export class UpdateCalenderCapacity {
26519
+ constructor(data) {
26520
+ if (data) {
26521
+ for (var property in data) {
26522
+ if (data.hasOwnProperty(property))
26523
+ this[property] = data[property];
26524
+ }
26525
+ }
26526
+ }
26527
+ init(_data) {
26528
+ if (_data) {
26529
+ this.date = _data["date"] ? new Date(_data["date"].toString()) : undefined;
26530
+ this.dayCapacity = _data["dayCapacity"];
26531
+ }
26532
+ }
26533
+ static fromJS(data) {
26534
+ data = typeof data === 'object' ? data : {};
26535
+ let result = new UpdateCalenderCapacity();
26536
+ result.init(data);
26537
+ return result;
26538
+ }
26539
+ toJSON(data) {
26540
+ data = typeof data === 'object' ? data : {};
26541
+ data["date"] = this.date ? formatDate(this.date) : undefined;
26542
+ data["dayCapacity"] = this.dayCapacity;
26543
+ return data;
26544
+ }
26545
+ }
25729
26546
  export class MachineDto {
25730
26547
  constructor(data) {
25731
26548
  if (data) {
@@ -32326,6 +33143,98 @@ export class SuggestionsItemDto {
32326
33143
  return data;
32327
33144
  }
32328
33145
  }
33146
+ export class SuggestionsMaterialItemDto {
33147
+ constructor(data) {
33148
+ if (data) {
33149
+ for (var property in data) {
33150
+ if (data.hasOwnProperty(property))
33151
+ this[property] = data[property];
33152
+ }
33153
+ }
33154
+ if (!data) {
33155
+ this.fromSuggestions = [];
33156
+ this.toSuggestions = [];
33157
+ }
33158
+ }
33159
+ init(_data) {
33160
+ if (_data) {
33161
+ this.lineNumber = _data["lineNumber"];
33162
+ this.fromAutoFill = _data["fromAutoFill"] ? LocationMaterialDto.fromJS(_data["fromAutoFill"]) : undefined;
33163
+ this.toAutoFill = _data["toAutoFill"] ? LocationDto.fromJS(_data["toAutoFill"]) : undefined;
33164
+ if (Array.isArray(_data["fromSuggestions"])) {
33165
+ this.fromSuggestions = [];
33166
+ for (let item of _data["fromSuggestions"])
33167
+ this.fromSuggestions.push(LocationMaterialDto.fromJS(item));
33168
+ }
33169
+ if (Array.isArray(_data["toSuggestions"])) {
33170
+ this.toSuggestions = [];
33171
+ for (let item of _data["toSuggestions"])
33172
+ this.toSuggestions.push(LocationDto.fromJS(item));
33173
+ }
33174
+ }
33175
+ }
33176
+ static fromJS(data) {
33177
+ data = typeof data === 'object' ? data : {};
33178
+ let result = new SuggestionsMaterialItemDto();
33179
+ result.init(data);
33180
+ return result;
33181
+ }
33182
+ toJSON(data) {
33183
+ data = typeof data === 'object' ? data : {};
33184
+ data["lineNumber"] = this.lineNumber;
33185
+ data["fromAutoFill"] = this.fromAutoFill ? this.fromAutoFill.toJSON() : undefined;
33186
+ data["toAutoFill"] = this.toAutoFill ? this.toAutoFill.toJSON() : undefined;
33187
+ if (Array.isArray(this.fromSuggestions)) {
33188
+ data["fromSuggestions"] = [];
33189
+ for (let item of this.fromSuggestions)
33190
+ data["fromSuggestions"].push(item.toJSON());
33191
+ }
33192
+ if (Array.isArray(this.toSuggestions)) {
33193
+ data["toSuggestions"] = [];
33194
+ for (let item of this.toSuggestions)
33195
+ data["toSuggestions"].push(item.toJSON());
33196
+ }
33197
+ return data;
33198
+ }
33199
+ }
33200
+ export class LocationMaterialDto {
33201
+ constructor(data) {
33202
+ if (data) {
33203
+ for (var property in data) {
33204
+ if (data.hasOwnProperty(property))
33205
+ this[property] = data[property];
33206
+ }
33207
+ }
33208
+ }
33209
+ init(_data) {
33210
+ if (_data) {
33211
+ this.locationId = _data["locationId"];
33212
+ this.locationName = _data["locationName"];
33213
+ this.zoneId = _data["zoneId"];
33214
+ this.zoneName = _data["zoneName"];
33215
+ this.kind = _data["kind"];
33216
+ this.profile = _data["profile"];
33217
+ this.materialAvailable = _data["materialAvailable"];
33218
+ }
33219
+ }
33220
+ static fromJS(data) {
33221
+ data = typeof data === 'object' ? data : {};
33222
+ let result = new LocationMaterialDto();
33223
+ result.init(data);
33224
+ return result;
33225
+ }
33226
+ toJSON(data) {
33227
+ data = typeof data === 'object' ? data : {};
33228
+ data["locationId"] = this.locationId;
33229
+ data["locationName"] = this.locationName;
33230
+ data["zoneId"] = this.zoneId;
33231
+ data["zoneName"] = this.zoneName;
33232
+ data["kind"] = this.kind;
33233
+ data["profile"] = this.profile;
33234
+ data["materialAvailable"] = this.materialAvailable;
33235
+ return data;
33236
+ }
33237
+ }
32329
33238
  export class MaterialDesciptionDto {
32330
33239
  constructor(data) {
32331
33240
  if (data) {
@@ -33714,6 +34623,7 @@ export class ProductionOrderBomDto {
33714
34623
  this.availabilityDetails.push(InventoryDto.fromJS(item));
33715
34624
  }
33716
34625
  this.traceType = _data["traceType"];
34626
+ this.resourceGroupId = _data["resourceGroupId"];
33717
34627
  }
33718
34628
  }
33719
34629
  static fromJS(data) {
@@ -33751,6 +34661,7 @@ export class ProductionOrderBomDto {
33751
34661
  data["availabilityDetails"].push(item.toJSON());
33752
34662
  }
33753
34663
  data["traceType"] = this.traceType;
34664
+ data["resourceGroupId"] = this.resourceGroupId;
33754
34665
  return data;
33755
34666
  }
33756
34667
  }