@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
 
@@ -2290,6 +2290,101 @@ export class MachineAlarmsClient extends AuthorizedApiBase implements IMachineAl
2290
2290
  }
2291
2291
  }
2292
2292
 
2293
+ export interface IPulseClient {
2294
+
2295
+ getPulseSettings(): Promise<PulseSettingsDto>;
2296
+
2297
+ updatePulseSettings(request: UpdatePulseSettings): Promise<PulseSettingsDto>;
2298
+ }
2299
+
2300
+ export class PulseClient extends AuthorizedApiBase implements IPulseClient {
2301
+ private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
2302
+ private baseUrl: string;
2303
+ protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
2304
+
2305
+ constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
2306
+ super(configuration);
2307
+ this.http = http ? http : window as any;
2308
+ this.baseUrl = baseUrl ?? "";
2309
+ }
2310
+
2311
+ getPulseSettings(): Promise<PulseSettingsDto> {
2312
+ let url_ = this.baseUrl + "/pulse/settings";
2313
+ url_ = url_.replace(/[?&]$/, "");
2314
+
2315
+ let options_: RequestInit = {
2316
+ method: "GET",
2317
+ headers: {
2318
+ "Accept": "application/json"
2319
+ }
2320
+ };
2321
+
2322
+ return this.transformOptions(options_).then(transformedOptions_ => {
2323
+ return this.http.fetch(url_, transformedOptions_);
2324
+ }).then((_response: Response) => {
2325
+ return this.processGetPulseSettings(_response);
2326
+ });
2327
+ }
2328
+
2329
+ protected processGetPulseSettings(response: Response): Promise<PulseSettingsDto> {
2330
+ const status = response.status;
2331
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
2332
+ if (status === 200) {
2333
+ return response.text().then((_responseText) => {
2334
+ let result200: any = null;
2335
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
2336
+ result200 = PulseSettingsDto.fromJS(resultData200);
2337
+ return result200;
2338
+ });
2339
+ } else if (status !== 200 && status !== 204) {
2340
+ return response.text().then((_responseText) => {
2341
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
2342
+ });
2343
+ }
2344
+ return Promise.resolve<PulseSettingsDto>(null as any);
2345
+ }
2346
+
2347
+ updatePulseSettings(request: UpdatePulseSettings): Promise<PulseSettingsDto> {
2348
+ let url_ = this.baseUrl + "/pulse/settings";
2349
+ url_ = url_.replace(/[?&]$/, "");
2350
+
2351
+ const content_ = JSON.stringify(request);
2352
+
2353
+ let options_: RequestInit = {
2354
+ body: content_,
2355
+ method: "POST",
2356
+ headers: {
2357
+ "Content-Type": "application/json",
2358
+ "Accept": "application/json"
2359
+ }
2360
+ };
2361
+
2362
+ return this.transformOptions(options_).then(transformedOptions_ => {
2363
+ return this.http.fetch(url_, transformedOptions_);
2364
+ }).then((_response: Response) => {
2365
+ return this.processUpdatePulseSettings(_response);
2366
+ });
2367
+ }
2368
+
2369
+ protected processUpdatePulseSettings(response: Response): Promise<PulseSettingsDto> {
2370
+ const status = response.status;
2371
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
2372
+ if (status === 200) {
2373
+ return response.text().then((_responseText) => {
2374
+ let result200: any = null;
2375
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
2376
+ result200 = PulseSettingsDto.fromJS(resultData200);
2377
+ return result200;
2378
+ });
2379
+ } else if (status !== 200 && status !== 204) {
2380
+ return response.text().then((_responseText) => {
2381
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
2382
+ });
2383
+ }
2384
+ return Promise.resolve<PulseSettingsDto>(null as any);
2385
+ }
2386
+ }
2387
+
2293
2388
  export interface IMrbClient {
2294
2389
 
2295
2390
  listMrbInstances(customerOrder: string | undefined, customerOrderLine: number | null | undefined): Promise<MrbInstanceDto[]>;
@@ -5728,6 +5823,8 @@ export interface IDowntimeReasonsClient {
5728
5823
  listDowntimeReasonsForMachine(id: number): Promise<DowntimeReasonDto[]>;
5729
5824
 
5730
5825
  listTopDowntimeReasons(): Promise<TopDowntimeReasonsDto>;
5826
+
5827
+ createReport(request: CreateDowntimeReasonsReportRequest | undefined): Promise<DowntimeReasonsReportDto>;
5731
5828
  }
5732
5829
 
5733
5830
  export class DowntimeReasonsClient extends AuthorizedApiBase implements IDowntimeReasonsClient {
@@ -5937,6 +6034,237 @@ export class DowntimeReasonsClient extends AuthorizedApiBase implements IDowntim
5937
6034
  }
5938
6035
  return Promise.resolve<TopDowntimeReasonsDto>(null as any);
5939
6036
  }
6037
+
6038
+ createReport(request: CreateDowntimeReasonsReportRequest | undefined): Promise<DowntimeReasonsReportDto> {
6039
+ let url_ = this.baseUrl + "/downtimereasons/report";
6040
+ url_ = url_.replace(/[?&]$/, "");
6041
+
6042
+ const content_ = JSON.stringify(request);
6043
+
6044
+ let options_: RequestInit = {
6045
+ body: content_,
6046
+ method: "POST",
6047
+ headers: {
6048
+ "Content-Type": "application/json",
6049
+ "Accept": "application/json"
6050
+ }
6051
+ };
6052
+
6053
+ return this.transformOptions(options_).then(transformedOptions_ => {
6054
+ return this.http.fetch(url_, transformedOptions_);
6055
+ }).then((_response: Response) => {
6056
+ return this.processCreateReport(_response);
6057
+ });
6058
+ }
6059
+
6060
+ protected processCreateReport(response: Response): Promise<DowntimeReasonsReportDto> {
6061
+ const status = response.status;
6062
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
6063
+ if (status === 200) {
6064
+ return response.text().then((_responseText) => {
6065
+ let result200: any = null;
6066
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
6067
+ result200 = DowntimeReasonsReportDto.fromJS(resultData200);
6068
+ return result200;
6069
+ });
6070
+ } else if (status !== 200 && status !== 204) {
6071
+ return response.text().then((_responseText) => {
6072
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
6073
+ });
6074
+ }
6075
+ return Promise.resolve<DowntimeReasonsReportDto>(null as any);
6076
+ }
6077
+ }
6078
+
6079
+ export interface IKpiAdminClient {
6080
+
6081
+ getMachineCapacityAdmin(): Promise<MachineGroupCapacityDto[]>;
6082
+
6083
+ updateMachineCapacityAdmin(request: UpdateMachinesCapacity): Promise<MachineCapacityDto>;
6084
+
6085
+ getCalenderCapacityAdmin(startDate: Date | undefined, endDate: Date | undefined): Promise<CalenderCapacityDto[]>;
6086
+
6087
+ updateCalenderCapacityAdmin(request: UpdateCalenderCapacity): Promise<CalenderCapacityDto>;
6088
+ }
6089
+
6090
+ export class KpiAdminClient extends AuthorizedApiBase implements IKpiAdminClient {
6091
+ private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
6092
+ private baseUrl: string;
6093
+ protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
6094
+
6095
+ constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
6096
+ super(configuration);
6097
+ this.http = http ? http : window as any;
6098
+ this.baseUrl = baseUrl ?? "";
6099
+ }
6100
+
6101
+ getMachineCapacityAdmin(): Promise<MachineGroupCapacityDto[]> {
6102
+ let url_ = this.baseUrl + "/kpiadmin/capacity";
6103
+ url_ = url_.replace(/[?&]$/, "");
6104
+
6105
+ let options_: RequestInit = {
6106
+ method: "GET",
6107
+ headers: {
6108
+ "Accept": "application/json"
6109
+ }
6110
+ };
6111
+
6112
+ return this.transformOptions(options_).then(transformedOptions_ => {
6113
+ return this.http.fetch(url_, transformedOptions_);
6114
+ }).then((_response: Response) => {
6115
+ return this.processGetMachineCapacityAdmin(_response);
6116
+ });
6117
+ }
6118
+
6119
+ protected processGetMachineCapacityAdmin(response: Response): Promise<MachineGroupCapacityDto[]> {
6120
+ const status = response.status;
6121
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
6122
+ if (status === 200) {
6123
+ return response.text().then((_responseText) => {
6124
+ let result200: any = null;
6125
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
6126
+ if (Array.isArray(resultData200)) {
6127
+ result200 = [] as any;
6128
+ for (let item of resultData200)
6129
+ result200!.push(MachineGroupCapacityDto.fromJS(item));
6130
+ }
6131
+ return result200;
6132
+ });
6133
+ } else if (status !== 200 && status !== 204) {
6134
+ return response.text().then((_responseText) => {
6135
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
6136
+ });
6137
+ }
6138
+ return Promise.resolve<MachineGroupCapacityDto[]>(null as any);
6139
+ }
6140
+
6141
+ updateMachineCapacityAdmin(request: UpdateMachinesCapacity): Promise<MachineCapacityDto> {
6142
+ let url_ = this.baseUrl + "/kpiadmin/capacity";
6143
+ url_ = url_.replace(/[?&]$/, "");
6144
+
6145
+ const content_ = JSON.stringify(request);
6146
+
6147
+ let options_: RequestInit = {
6148
+ body: content_,
6149
+ method: "PUT",
6150
+ headers: {
6151
+ "Content-Type": "application/json",
6152
+ "Accept": "application/json"
6153
+ }
6154
+ };
6155
+
6156
+ return this.transformOptions(options_).then(transformedOptions_ => {
6157
+ return this.http.fetch(url_, transformedOptions_);
6158
+ }).then((_response: Response) => {
6159
+ return this.processUpdateMachineCapacityAdmin(_response);
6160
+ });
6161
+ }
6162
+
6163
+ protected processUpdateMachineCapacityAdmin(response: Response): Promise<MachineCapacityDto> {
6164
+ const status = response.status;
6165
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
6166
+ if (status === 200) {
6167
+ return response.text().then((_responseText) => {
6168
+ let result200: any = null;
6169
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
6170
+ result200 = MachineCapacityDto.fromJS(resultData200);
6171
+ return result200;
6172
+ });
6173
+ } else if (status !== 200 && status !== 204) {
6174
+ return response.text().then((_responseText) => {
6175
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
6176
+ });
6177
+ }
6178
+ return Promise.resolve<MachineCapacityDto>(null as any);
6179
+ }
6180
+
6181
+ getCalenderCapacityAdmin(startDate: Date | undefined, endDate: Date | undefined): Promise<CalenderCapacityDto[]> {
6182
+ let url_ = this.baseUrl + "/kpiadmin/calender?";
6183
+ if (startDate === null)
6184
+ throw new Error("The parameter 'startDate' cannot be null.");
6185
+ else if (startDate !== undefined)
6186
+ url_ += "startDate=" + encodeURIComponent(startDate ? "" + startDate.toISOString() : "") + "&";
6187
+ if (endDate === null)
6188
+ throw new Error("The parameter 'endDate' cannot be null.");
6189
+ else if (endDate !== undefined)
6190
+ url_ += "endDate=" + encodeURIComponent(endDate ? "" + endDate.toISOString() : "") + "&";
6191
+ url_ = url_.replace(/[?&]$/, "");
6192
+
6193
+ let options_: RequestInit = {
6194
+ method: "GET",
6195
+ headers: {
6196
+ "Accept": "application/json"
6197
+ }
6198
+ };
6199
+
6200
+ return this.transformOptions(options_).then(transformedOptions_ => {
6201
+ return this.http.fetch(url_, transformedOptions_);
6202
+ }).then((_response: Response) => {
6203
+ return this.processGetCalenderCapacityAdmin(_response);
6204
+ });
6205
+ }
6206
+
6207
+ protected processGetCalenderCapacityAdmin(response: Response): Promise<CalenderCapacityDto[]> {
6208
+ const status = response.status;
6209
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
6210
+ if (status === 200) {
6211
+ return response.text().then((_responseText) => {
6212
+ let result200: any = null;
6213
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
6214
+ if (Array.isArray(resultData200)) {
6215
+ result200 = [] as any;
6216
+ for (let item of resultData200)
6217
+ result200!.push(CalenderCapacityDto.fromJS(item));
6218
+ }
6219
+ return result200;
6220
+ });
6221
+ } else if (status !== 200 && status !== 204) {
6222
+ return response.text().then((_responseText) => {
6223
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
6224
+ });
6225
+ }
6226
+ return Promise.resolve<CalenderCapacityDto[]>(null as any);
6227
+ }
6228
+
6229
+ updateCalenderCapacityAdmin(request: UpdateCalenderCapacity): Promise<CalenderCapacityDto> {
6230
+ let url_ = this.baseUrl + "/kpiadmin/calender";
6231
+ url_ = url_.replace(/[?&]$/, "");
6232
+
6233
+ const content_ = JSON.stringify(request);
6234
+
6235
+ let options_: RequestInit = {
6236
+ body: content_,
6237
+ method: "PUT",
6238
+ headers: {
6239
+ "Content-Type": "application/json",
6240
+ "Accept": "application/json"
6241
+ }
6242
+ };
6243
+
6244
+ return this.transformOptions(options_).then(transformedOptions_ => {
6245
+ return this.http.fetch(url_, transformedOptions_);
6246
+ }).then((_response: Response) => {
6247
+ return this.processUpdateCalenderCapacityAdmin(_response);
6248
+ });
6249
+ }
6250
+
6251
+ protected processUpdateCalenderCapacityAdmin(response: Response): Promise<CalenderCapacityDto> {
6252
+ const status = response.status;
6253
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
6254
+ if (status === 200) {
6255
+ return response.text().then((_responseText) => {
6256
+ let result200: any = null;
6257
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
6258
+ result200 = CalenderCapacityDto.fromJS(resultData200);
6259
+ return result200;
6260
+ });
6261
+ } else if (status !== 200 && status !== 204) {
6262
+ return response.text().then((_responseText) => {
6263
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
6264
+ });
6265
+ }
6266
+ return Promise.resolve<CalenderCapacityDto>(null as any);
6267
+ }
5940
6268
  }
5941
6269
 
5942
6270
  export interface IMachinesClient {
@@ -13192,6 +13520,8 @@ export interface IMoveLocationsClient {
13192
13520
  suggestionsParcel(parcelId: string[] | undefined): Promise<SuggestionsResponseDto>;
13193
13521
 
13194
13522
  suggestionsGeneral(suggestionType: SuggestionTypeDto | undefined): Promise<SuggestionsItemDto>;
13523
+
13524
+ suggestionsMaterial(parcelId: string | undefined, operation: number | null | undefined): Promise<SuggestionsMaterialItemDto[]>;
13195
13525
  }
13196
13526
 
13197
13527
  export class MoveLocationsClient extends AuthorizedApiBase implements IMoveLocationsClient {
@@ -13416,6 +13746,52 @@ export class MoveLocationsClient extends AuthorizedApiBase implements IMoveLocat
13416
13746
  }
13417
13747
  return Promise.resolve<SuggestionsItemDto>(null as any);
13418
13748
  }
13749
+
13750
+ suggestionsMaterial(parcelId: string | undefined, operation: number | null | undefined): Promise<SuggestionsMaterialItemDto[]> {
13751
+ let url_ = this.baseUrl + "/move/locations/suggestionsmaterial?";
13752
+ if (parcelId === null)
13753
+ throw new Error("The parameter 'parcelId' cannot be null.");
13754
+ else if (parcelId !== undefined)
13755
+ url_ += "parcelId=" + encodeURIComponent("" + parcelId) + "&";
13756
+ if (operation !== undefined && operation !== null)
13757
+ url_ += "operation=" + encodeURIComponent("" + operation) + "&";
13758
+ url_ = url_.replace(/[?&]$/, "");
13759
+
13760
+ let options_: RequestInit = {
13761
+ method: "GET",
13762
+ headers: {
13763
+ "Accept": "application/json"
13764
+ }
13765
+ };
13766
+
13767
+ return this.transformOptions(options_).then(transformedOptions_ => {
13768
+ return this.http.fetch(url_, transformedOptions_);
13769
+ }).then((_response: Response) => {
13770
+ return this.processSuggestionsMaterial(_response);
13771
+ });
13772
+ }
13773
+
13774
+ protected processSuggestionsMaterial(response: Response): Promise<SuggestionsMaterialItemDto[]> {
13775
+ const status = response.status;
13776
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
13777
+ if (status === 200) {
13778
+ return response.text().then((_responseText) => {
13779
+ let result200: any = null;
13780
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
13781
+ if (Array.isArray(resultData200)) {
13782
+ result200 = [] as any;
13783
+ for (let item of resultData200)
13784
+ result200!.push(SuggestionsMaterialItemDto.fromJS(item));
13785
+ }
13786
+ return result200;
13787
+ });
13788
+ } else if (status !== 200 && status !== 204) {
13789
+ return response.text().then((_responseText) => {
13790
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
13791
+ });
13792
+ }
13793
+ return Promise.resolve<SuggestionsMaterialItemDto[]>(null as any);
13794
+ }
13419
13795
  }
13420
13796
 
13421
13797
  export interface IMoveMaterialsClient {
@@ -24414,6 +24790,143 @@ export interface ICncProgramInfoDto {
24414
24790
  line?: string | null;
24415
24791
  }
24416
24792
 
24793
+ export class PulseSettingsDto implements IPulseSettingsDto {
24794
+ defaultUtilizationType!: UtilizationTypeDto;
24795
+ utilizationTypeEnabling!: UtilizationTypeEnablingDto;
24796
+
24797
+ constructor(data?: IPulseSettingsDto) {
24798
+ if (data) {
24799
+ for (var property in data) {
24800
+ if (data.hasOwnProperty(property))
24801
+ (<any>this)[property] = (<any>data)[property];
24802
+ }
24803
+ }
24804
+ if (!data) {
24805
+ this.utilizationTypeEnabling = new UtilizationTypeEnablingDto();
24806
+ }
24807
+ }
24808
+
24809
+ init(_data?: any) {
24810
+ if (_data) {
24811
+ this.defaultUtilizationType = _data["defaultUtilizationType"];
24812
+ this.utilizationTypeEnabling = _data["utilizationTypeEnabling"] ? UtilizationTypeEnablingDto.fromJS(_data["utilizationTypeEnabling"]) : new UtilizationTypeEnablingDto();
24813
+ }
24814
+ }
24815
+
24816
+ static fromJS(data: any): PulseSettingsDto {
24817
+ data = typeof data === 'object' ? data : {};
24818
+ let result = new PulseSettingsDto();
24819
+ result.init(data);
24820
+ return result;
24821
+ }
24822
+
24823
+ toJSON(data?: any) {
24824
+ data = typeof data === 'object' ? data : {};
24825
+ data["defaultUtilizationType"] = this.defaultUtilizationType;
24826
+ data["utilizationTypeEnabling"] = this.utilizationTypeEnabling ? this.utilizationTypeEnabling.toJSON() : <any>undefined;
24827
+ return data;
24828
+ }
24829
+ }
24830
+
24831
+ export interface IPulseSettingsDto {
24832
+ defaultUtilizationType: UtilizationTypeDto;
24833
+ utilizationTypeEnabling: UtilizationTypeEnablingDto;
24834
+ }
24835
+
24836
+ export type UtilizationTypeDto = "PowerOn" | "TwentyFourSeven" | "ActiveOrder";
24837
+
24838
+ export class UtilizationTypeEnablingDto implements IUtilizationTypeEnablingDto {
24839
+ powerOnEnabled!: boolean;
24840
+ twentyFourSevenEnabled!: boolean;
24841
+ activeOrderEnabled!: boolean;
24842
+
24843
+ constructor(data?: IUtilizationTypeEnablingDto) {
24844
+ if (data) {
24845
+ for (var property in data) {
24846
+ if (data.hasOwnProperty(property))
24847
+ (<any>this)[property] = (<any>data)[property];
24848
+ }
24849
+ }
24850
+ }
24851
+
24852
+ init(_data?: any) {
24853
+ if (_data) {
24854
+ this.powerOnEnabled = _data["powerOnEnabled"];
24855
+ this.twentyFourSevenEnabled = _data["twentyFourSevenEnabled"];
24856
+ this.activeOrderEnabled = _data["activeOrderEnabled"];
24857
+ }
24858
+ }
24859
+
24860
+ static fromJS(data: any): UtilizationTypeEnablingDto {
24861
+ data = typeof data === 'object' ? data : {};
24862
+ let result = new UtilizationTypeEnablingDto();
24863
+ result.init(data);
24864
+ return result;
24865
+ }
24866
+
24867
+ toJSON(data?: any) {
24868
+ data = typeof data === 'object' ? data : {};
24869
+ data["powerOnEnabled"] = this.powerOnEnabled;
24870
+ data["twentyFourSevenEnabled"] = this.twentyFourSevenEnabled;
24871
+ data["activeOrderEnabled"] = this.activeOrderEnabled;
24872
+ return data;
24873
+ }
24874
+ }
24875
+
24876
+ export interface IUtilizationTypeEnablingDto {
24877
+ powerOnEnabled: boolean;
24878
+ twentyFourSevenEnabled: boolean;
24879
+ activeOrderEnabled: boolean;
24880
+ }
24881
+
24882
+ export class UpdatePulseSettings implements IUpdatePulseSettings {
24883
+ defaultUtilizationType!: UtilizationTypeDto;
24884
+ powerOnEnabled!: boolean;
24885
+ twentyfourSevenEnabled!: boolean;
24886
+ activeOrderEnabled!: boolean;
24887
+
24888
+ constructor(data?: IUpdatePulseSettings) {
24889
+ if (data) {
24890
+ for (var property in data) {
24891
+ if (data.hasOwnProperty(property))
24892
+ (<any>this)[property] = (<any>data)[property];
24893
+ }
24894
+ }
24895
+ }
24896
+
24897
+ init(_data?: any) {
24898
+ if (_data) {
24899
+ this.defaultUtilizationType = _data["defaultUtilizationType"];
24900
+ this.powerOnEnabled = _data["powerOnEnabled"];
24901
+ this.twentyfourSevenEnabled = _data["twentyfourSevenEnabled"];
24902
+ this.activeOrderEnabled = _data["activeOrderEnabled"];
24903
+ }
24904
+ }
24905
+
24906
+ static fromJS(data: any): UpdatePulseSettings {
24907
+ data = typeof data === 'object' ? data : {};
24908
+ let result = new UpdatePulseSettings();
24909
+ result.init(data);
24910
+ return result;
24911
+ }
24912
+
24913
+ toJSON(data?: any) {
24914
+ data = typeof data === 'object' ? data : {};
24915
+ data["defaultUtilizationType"] = this.defaultUtilizationType;
24916
+ data["powerOnEnabled"] = this.powerOnEnabled;
24917
+ data["twentyfourSevenEnabled"] = this.twentyfourSevenEnabled;
24918
+ data["activeOrderEnabled"] = this.activeOrderEnabled;
24919
+ return data;
24920
+ }
24921
+ }
24922
+
24923
+ export interface IUpdatePulseSettings {
24924
+ defaultUtilizationType: UtilizationTypeDto;
24925
+ powerOnEnabled: boolean;
24926
+ twentyfourSevenEnabled: boolean;
24927
+ activeOrderEnabled: boolean;
24928
+ }
24929
+
24417
24930
  export class MrbInstanceDto implements IMrbInstanceDto {
24418
24931
  id!: string;
24419
24932
  title?: string | null;
@@ -29850,6 +30363,528 @@ export interface IDowntimeReasonCountDto {
29850
30363
  reason: string;
29851
30364
  }
29852
30365
 
30366
+ export class DowntimeReasonsReportDto implements IDowntimeReasonsReportDto {
30367
+ companyId?: string | null;
30368
+ totalDowntimeDurationMilliseconds?: number;
30369
+ downtimeReasons?: DowntimeReasonReport[];
30370
+
30371
+ constructor(data?: IDowntimeReasonsReportDto) {
30372
+ if (data) {
30373
+ for (var property in data) {
30374
+ if (data.hasOwnProperty(property))
30375
+ (<any>this)[property] = (<any>data)[property];
30376
+ }
30377
+ }
30378
+ }
30379
+
30380
+ init(_data?: any) {
30381
+ if (_data) {
30382
+ this.companyId = _data["companyId"];
30383
+ this.totalDowntimeDurationMilliseconds = _data["totalDowntimeDurationMilliseconds"];
30384
+ if (Array.isArray(_data["downtimeReasons"])) {
30385
+ this.downtimeReasons = [] as any;
30386
+ for (let item of _data["downtimeReasons"])
30387
+ this.downtimeReasons!.push(DowntimeReasonReport.fromJS(item));
30388
+ }
30389
+ }
30390
+ }
30391
+
30392
+ static fromJS(data: any): DowntimeReasonsReportDto {
30393
+ data = typeof data === 'object' ? data : {};
30394
+ let result = new DowntimeReasonsReportDto();
30395
+ result.init(data);
30396
+ return result;
30397
+ }
30398
+
30399
+ toJSON(data?: any) {
30400
+ data = typeof data === 'object' ? data : {};
30401
+ data["companyId"] = this.companyId;
30402
+ data["totalDowntimeDurationMilliseconds"] = this.totalDowntimeDurationMilliseconds;
30403
+ if (Array.isArray(this.downtimeReasons)) {
30404
+ data["downtimeReasons"] = [];
30405
+ for (let item of this.downtimeReasons)
30406
+ data["downtimeReasons"].push(item.toJSON());
30407
+ }
30408
+ return data;
30409
+ }
30410
+ }
30411
+
30412
+ export interface IDowntimeReasonsReportDto {
30413
+ companyId?: string | null;
30414
+ totalDowntimeDurationMilliseconds?: number;
30415
+ downtimeReasons?: DowntimeReasonReport[];
30416
+ }
30417
+
30418
+ export class DowntimeReasonReport implements IDowntimeReasonReport {
30419
+ reasonId!: string;
30420
+ reasonType!: DowntimeReasonTypeDto;
30421
+ reason!: string;
30422
+ totalDurationMilliseconds!: number;
30423
+ count!: number;
30424
+ details!: DowntimeReasonInformation[];
30425
+
30426
+ constructor(data?: IDowntimeReasonReport) {
30427
+ if (data) {
30428
+ for (var property in data) {
30429
+ if (data.hasOwnProperty(property))
30430
+ (<any>this)[property] = (<any>data)[property];
30431
+ }
30432
+ }
30433
+ if (!data) {
30434
+ this.details = [];
30435
+ }
30436
+ }
30437
+
30438
+ init(_data?: any) {
30439
+ if (_data) {
30440
+ this.reasonId = _data["reasonId"];
30441
+ this.reasonType = _data["reasonType"];
30442
+ this.reason = _data["reason"];
30443
+ this.totalDurationMilliseconds = _data["totalDurationMilliseconds"];
30444
+ this.count = _data["count"];
30445
+ if (Array.isArray(_data["details"])) {
30446
+ this.details = [] as any;
30447
+ for (let item of _data["details"])
30448
+ this.details!.push(DowntimeReasonInformation.fromJS(item));
30449
+ }
30450
+ }
30451
+ }
30452
+
30453
+ static fromJS(data: any): DowntimeReasonReport {
30454
+ data = typeof data === 'object' ? data : {};
30455
+ let result = new DowntimeReasonReport();
30456
+ result.init(data);
30457
+ return result;
30458
+ }
30459
+
30460
+ toJSON(data?: any) {
30461
+ data = typeof data === 'object' ? data : {};
30462
+ data["reasonId"] = this.reasonId;
30463
+ data["reasonType"] = this.reasonType;
30464
+ data["reason"] = this.reason;
30465
+ data["totalDurationMilliseconds"] = this.totalDurationMilliseconds;
30466
+ data["count"] = this.count;
30467
+ if (Array.isArray(this.details)) {
30468
+ data["details"] = [];
30469
+ for (let item of this.details)
30470
+ data["details"].push(item.toJSON());
30471
+ }
30472
+ return data;
30473
+ }
30474
+ }
30475
+
30476
+ export interface IDowntimeReasonReport {
30477
+ reasonId: string;
30478
+ reasonType: DowntimeReasonTypeDto;
30479
+ reason: string;
30480
+ totalDurationMilliseconds: number;
30481
+ count: number;
30482
+ details: DowntimeReasonInformation[];
30483
+ }
30484
+
30485
+ export class DowntimeReasonInformation implements IDowntimeReasonInformation {
30486
+ downtimeReason!: DowntimePeriodReasonDto;
30487
+ machine!: string;
30488
+
30489
+ constructor(data?: IDowntimeReasonInformation) {
30490
+ if (data) {
30491
+ for (var property in data) {
30492
+ if (data.hasOwnProperty(property))
30493
+ (<any>this)[property] = (<any>data)[property];
30494
+ }
30495
+ }
30496
+ if (!data) {
30497
+ this.downtimeReason = new DowntimePeriodReasonDto();
30498
+ }
30499
+ }
30500
+
30501
+ init(_data?: any) {
30502
+ if (_data) {
30503
+ this.downtimeReason = _data["downtimeReason"] ? DowntimePeriodReasonDto.fromJS(_data["downtimeReason"]) : new DowntimePeriodReasonDto();
30504
+ this.machine = _data["machine"];
30505
+ }
30506
+ }
30507
+
30508
+ static fromJS(data: any): DowntimeReasonInformation {
30509
+ data = typeof data === 'object' ? data : {};
30510
+ let result = new DowntimeReasonInformation();
30511
+ result.init(data);
30512
+ return result;
30513
+ }
30514
+
30515
+ toJSON(data?: any) {
30516
+ data = typeof data === 'object' ? data : {};
30517
+ data["downtimeReason"] = this.downtimeReason ? this.downtimeReason.toJSON() : <any>undefined;
30518
+ data["machine"] = this.machine;
30519
+ return data;
30520
+ }
30521
+ }
30522
+
30523
+ export interface IDowntimeReasonInformation {
30524
+ downtimeReason: DowntimePeriodReasonDto;
30525
+ machine: string;
30526
+ }
30527
+
30528
+ export class CreateDowntimeReasonsReportRequest implements ICreateDowntimeReasonsReportRequest {
30529
+ machineExternalIds?: string[] | null;
30530
+ machineGroupNames?: string[] | null;
30531
+ startTime?: Date | null;
30532
+ endTime?: Date | null;
30533
+
30534
+ constructor(data?: ICreateDowntimeReasonsReportRequest) {
30535
+ if (data) {
30536
+ for (var property in data) {
30537
+ if (data.hasOwnProperty(property))
30538
+ (<any>this)[property] = (<any>data)[property];
30539
+ }
30540
+ }
30541
+ }
30542
+
30543
+ init(_data?: any) {
30544
+ if (_data) {
30545
+ if (Array.isArray(_data["machineExternalIds"])) {
30546
+ this.machineExternalIds = [] as any;
30547
+ for (let item of _data["machineExternalIds"])
30548
+ this.machineExternalIds!.push(item);
30549
+ }
30550
+ if (Array.isArray(_data["machineGroupNames"])) {
30551
+ this.machineGroupNames = [] as any;
30552
+ for (let item of _data["machineGroupNames"])
30553
+ this.machineGroupNames!.push(item);
30554
+ }
30555
+ this.startTime = _data["startTime"] ? new Date(_data["startTime"].toString()) : <any>undefined;
30556
+ this.endTime = _data["endTime"] ? new Date(_data["endTime"].toString()) : <any>undefined;
30557
+ }
30558
+ }
30559
+
30560
+ static fromJS(data: any): CreateDowntimeReasonsReportRequest {
30561
+ data = typeof data === 'object' ? data : {};
30562
+ let result = new CreateDowntimeReasonsReportRequest();
30563
+ result.init(data);
30564
+ return result;
30565
+ }
30566
+
30567
+ toJSON(data?: any) {
30568
+ data = typeof data === 'object' ? data : {};
30569
+ if (Array.isArray(this.machineExternalIds)) {
30570
+ data["machineExternalIds"] = [];
30571
+ for (let item of this.machineExternalIds)
30572
+ data["machineExternalIds"].push(item);
30573
+ }
30574
+ if (Array.isArray(this.machineGroupNames)) {
30575
+ data["machineGroupNames"] = [];
30576
+ for (let item of this.machineGroupNames)
30577
+ data["machineGroupNames"].push(item);
30578
+ }
30579
+ data["startTime"] = this.startTime ? this.startTime.toISOString() : <any>undefined;
30580
+ data["endTime"] = this.endTime ? this.endTime.toISOString() : <any>undefined;
30581
+ return data;
30582
+ }
30583
+ }
30584
+
30585
+ export interface ICreateDowntimeReasonsReportRequest {
30586
+ machineExternalIds?: string[] | null;
30587
+ machineGroupNames?: string[] | null;
30588
+ startTime?: Date | null;
30589
+ endTime?: Date | null;
30590
+ }
30591
+
30592
+ export class MachineGroupCapacityDto implements IMachineGroupCapacityDto {
30593
+ machineGroupName!: string;
30594
+ machine!: MachineCapacityDto[];
30595
+
30596
+ constructor(data?: IMachineGroupCapacityDto) {
30597
+ if (data) {
30598
+ for (var property in data) {
30599
+ if (data.hasOwnProperty(property))
30600
+ (<any>this)[property] = (<any>data)[property];
30601
+ }
30602
+ }
30603
+ if (!data) {
30604
+ this.machine = [];
30605
+ }
30606
+ }
30607
+
30608
+ init(_data?: any) {
30609
+ if (_data) {
30610
+ this.machineGroupName = _data["machineGroupName"];
30611
+ if (Array.isArray(_data["machine"])) {
30612
+ this.machine = [] as any;
30613
+ for (let item of _data["machine"])
30614
+ this.machine!.push(MachineCapacityDto.fromJS(item));
30615
+ }
30616
+ }
30617
+ }
30618
+
30619
+ static fromJS(data: any): MachineGroupCapacityDto {
30620
+ data = typeof data === 'object' ? data : {};
30621
+ let result = new MachineGroupCapacityDto();
30622
+ result.init(data);
30623
+ return result;
30624
+ }
30625
+
30626
+ toJSON(data?: any) {
30627
+ data = typeof data === 'object' ? data : {};
30628
+ data["machineGroupName"] = this.machineGroupName;
30629
+ if (Array.isArray(this.machine)) {
30630
+ data["machine"] = [];
30631
+ for (let item of this.machine)
30632
+ data["machine"].push(item.toJSON());
30633
+ }
30634
+ return data;
30635
+ }
30636
+ }
30637
+
30638
+ export interface IMachineGroupCapacityDto {
30639
+ machineGroupName: string;
30640
+ machine: MachineCapacityDto[];
30641
+ }
30642
+
30643
+ export class MachineCapacityDto implements IMachineCapacityDto {
30644
+ machineExternalId!: string;
30645
+ name!: string;
30646
+ comment?: string | null;
30647
+ capacity?: MachineCapacitySettingsDto[] | null;
30648
+ created?: Date | null;
30649
+ updatedBy?: string | null;
30650
+ updatedById?: string | null;
30651
+
30652
+ constructor(data?: IMachineCapacityDto) {
30653
+ if (data) {
30654
+ for (var property in data) {
30655
+ if (data.hasOwnProperty(property))
30656
+ (<any>this)[property] = (<any>data)[property];
30657
+ }
30658
+ }
30659
+ }
30660
+
30661
+ init(_data?: any) {
30662
+ if (_data) {
30663
+ this.machineExternalId = _data["machineExternalId"];
30664
+ this.name = _data["name"];
30665
+ this.comment = _data["comment"];
30666
+ if (Array.isArray(_data["capacity"])) {
30667
+ this.capacity = [] as any;
30668
+ for (let item of _data["capacity"])
30669
+ this.capacity!.push(MachineCapacitySettingsDto.fromJS(item));
30670
+ }
30671
+ this.created = _data["created"] ? new Date(_data["created"].toString()) : <any>undefined;
30672
+ this.updatedBy = _data["updatedBy"];
30673
+ this.updatedById = _data["updatedById"];
30674
+ }
30675
+ }
30676
+
30677
+ static fromJS(data: any): MachineCapacityDto {
30678
+ data = typeof data === 'object' ? data : {};
30679
+ let result = new MachineCapacityDto();
30680
+ result.init(data);
30681
+ return result;
30682
+ }
30683
+
30684
+ toJSON(data?: any) {
30685
+ data = typeof data === 'object' ? data : {};
30686
+ data["machineExternalId"] = this.machineExternalId;
30687
+ data["name"] = this.name;
30688
+ data["comment"] = this.comment;
30689
+ if (Array.isArray(this.capacity)) {
30690
+ data["capacity"] = [];
30691
+ for (let item of this.capacity)
30692
+ data["capacity"].push(item.toJSON());
30693
+ }
30694
+ data["created"] = this.created ? this.created.toISOString() : <any>undefined;
30695
+ data["updatedBy"] = this.updatedBy;
30696
+ data["updatedById"] = this.updatedById;
30697
+ return data;
30698
+ }
30699
+ }
30700
+
30701
+ export interface IMachineCapacityDto {
30702
+ machineExternalId: string;
30703
+ name: string;
30704
+ comment?: string | null;
30705
+ capacity?: MachineCapacitySettingsDto[] | null;
30706
+ created?: Date | null;
30707
+ updatedBy?: string | null;
30708
+ updatedById?: string | null;
30709
+ }
30710
+
30711
+ export class MachineCapacitySettingsDto implements IMachineCapacitySettingsDto {
30712
+ capacityHours!: number;
30713
+ utilizationPercent!: number;
30714
+
30715
+ constructor(data?: IMachineCapacitySettingsDto) {
30716
+ if (data) {
30717
+ for (var property in data) {
30718
+ if (data.hasOwnProperty(property))
30719
+ (<any>this)[property] = (<any>data)[property];
30720
+ }
30721
+ }
30722
+ }
30723
+
30724
+ init(_data?: any) {
30725
+ if (_data) {
30726
+ this.capacityHours = _data["capacityHours"];
30727
+ this.utilizationPercent = _data["utilizationPercent"];
30728
+ }
30729
+ }
30730
+
30731
+ static fromJS(data: any): MachineCapacitySettingsDto {
30732
+ data = typeof data === 'object' ? data : {};
30733
+ let result = new MachineCapacitySettingsDto();
30734
+ result.init(data);
30735
+ return result;
30736
+ }
30737
+
30738
+ toJSON(data?: any) {
30739
+ data = typeof data === 'object' ? data : {};
30740
+ data["capacityHours"] = this.capacityHours;
30741
+ data["utilizationPercent"] = this.utilizationPercent;
30742
+ return data;
30743
+ }
30744
+ }
30745
+
30746
+ export interface IMachineCapacitySettingsDto {
30747
+ capacityHours: number;
30748
+ utilizationPercent: number;
30749
+ }
30750
+
30751
+ export class UpdateMachinesCapacity implements IUpdateMachinesCapacity {
30752
+ machineExternalId!: string;
30753
+ comment?: string | null;
30754
+ capacity!: MachineCapacitySettingsDto[];
30755
+
30756
+ constructor(data?: IUpdateMachinesCapacity) {
30757
+ if (data) {
30758
+ for (var property in data) {
30759
+ if (data.hasOwnProperty(property))
30760
+ (<any>this)[property] = (<any>data)[property];
30761
+ }
30762
+ }
30763
+ if (!data) {
30764
+ this.capacity = [];
30765
+ }
30766
+ }
30767
+
30768
+ init(_data?: any) {
30769
+ if (_data) {
30770
+ this.machineExternalId = _data["machineExternalId"];
30771
+ this.comment = _data["comment"];
30772
+ if (Array.isArray(_data["capacity"])) {
30773
+ this.capacity = [] as any;
30774
+ for (let item of _data["capacity"])
30775
+ this.capacity!.push(MachineCapacitySettingsDto.fromJS(item));
30776
+ }
30777
+ }
30778
+ }
30779
+
30780
+ static fromJS(data: any): UpdateMachinesCapacity {
30781
+ data = typeof data === 'object' ? data : {};
30782
+ let result = new UpdateMachinesCapacity();
30783
+ result.init(data);
30784
+ return result;
30785
+ }
30786
+
30787
+ toJSON(data?: any) {
30788
+ data = typeof data === 'object' ? data : {};
30789
+ data["machineExternalId"] = this.machineExternalId;
30790
+ data["comment"] = this.comment;
30791
+ if (Array.isArray(this.capacity)) {
30792
+ data["capacity"] = [];
30793
+ for (let item of this.capacity)
30794
+ data["capacity"].push(item.toJSON());
30795
+ }
30796
+ return data;
30797
+ }
30798
+ }
30799
+
30800
+ export interface IUpdateMachinesCapacity {
30801
+ machineExternalId: string;
30802
+ comment?: string | null;
30803
+ capacity: MachineCapacitySettingsDto[];
30804
+ }
30805
+
30806
+ export class CalenderCapacityDto implements ICalenderCapacityDto {
30807
+ date?: Date;
30808
+ dayCapacity?: CalenderDayCapacityDto;
30809
+
30810
+ constructor(data?: ICalenderCapacityDto) {
30811
+ if (data) {
30812
+ for (var property in data) {
30813
+ if (data.hasOwnProperty(property))
30814
+ (<any>this)[property] = (<any>data)[property];
30815
+ }
30816
+ }
30817
+ }
30818
+
30819
+ init(_data?: any) {
30820
+ if (_data) {
30821
+ this.date = _data["date"] ? new Date(_data["date"].toString()) : <any>undefined;
30822
+ this.dayCapacity = _data["dayCapacity"];
30823
+ }
30824
+ }
30825
+
30826
+ static fromJS(data: any): CalenderCapacityDto {
30827
+ data = typeof data === 'object' ? data : {};
30828
+ let result = new CalenderCapacityDto();
30829
+ result.init(data);
30830
+ return result;
30831
+ }
30832
+
30833
+ toJSON(data?: any) {
30834
+ data = typeof data === 'object' ? data : {};
30835
+ data["date"] = this.date ? formatDate(this.date) : <any>undefined;
30836
+ data["dayCapacity"] = this.dayCapacity;
30837
+ return data;
30838
+ }
30839
+ }
30840
+
30841
+ export interface ICalenderCapacityDto {
30842
+ date?: Date;
30843
+ dayCapacity?: CalenderDayCapacityDto;
30844
+ }
30845
+
30846
+ export type CalenderDayCapacityDto = "WorkingDay" | "HalfDay" | "Holiday";
30847
+
30848
+ export class UpdateCalenderCapacity implements IUpdateCalenderCapacity {
30849
+ date!: Date;
30850
+ dayCapacity!: CalenderDayCapacityDto;
30851
+
30852
+ constructor(data?: IUpdateCalenderCapacity) {
30853
+ if (data) {
30854
+ for (var property in data) {
30855
+ if (data.hasOwnProperty(property))
30856
+ (<any>this)[property] = (<any>data)[property];
30857
+ }
30858
+ }
30859
+ }
30860
+
30861
+ init(_data?: any) {
30862
+ if (_data) {
30863
+ this.date = _data["date"] ? new Date(_data["date"].toString()) : <any>undefined;
30864
+ this.dayCapacity = _data["dayCapacity"];
30865
+ }
30866
+ }
30867
+
30868
+ static fromJS(data: any): UpdateCalenderCapacity {
30869
+ data = typeof data === 'object' ? data : {};
30870
+ let result = new UpdateCalenderCapacity();
30871
+ result.init(data);
30872
+ return result;
30873
+ }
30874
+
30875
+ toJSON(data?: any) {
30876
+ data = typeof data === 'object' ? data : {};
30877
+ data["date"] = this.date ? formatDate(this.date) : <any>undefined;
30878
+ data["dayCapacity"] = this.dayCapacity;
30879
+ return data;
30880
+ }
30881
+ }
30882
+
30883
+ export interface IUpdateCalenderCapacity {
30884
+ date: Date;
30885
+ dayCapacity: CalenderDayCapacityDto;
30886
+ }
30887
+
29853
30888
  export class MachineDto implements IMachineDto {
29854
30889
  id!: number;
29855
30890
  externalId!: string;
@@ -39744,6 +40779,138 @@ export interface ISuggestionsItemDto {
39744
40779
 
39745
40780
  export type SuggestionTypeDto = "Other" | "ChipDisposal" | "Garbage";
39746
40781
 
40782
+ export class SuggestionsMaterialItemDto implements ISuggestionsMaterialItemDto {
40783
+ lineNumber!: number;
40784
+ fromAutoFill?: LocationMaterialDto | null;
40785
+ toAutoFill?: LocationDto | null;
40786
+ fromSuggestions!: LocationMaterialDto[];
40787
+ toSuggestions!: LocationDto[];
40788
+
40789
+ constructor(data?: ISuggestionsMaterialItemDto) {
40790
+ if (data) {
40791
+ for (var property in data) {
40792
+ if (data.hasOwnProperty(property))
40793
+ (<any>this)[property] = (<any>data)[property];
40794
+ }
40795
+ }
40796
+ if (!data) {
40797
+ this.fromSuggestions = [];
40798
+ this.toSuggestions = [];
40799
+ }
40800
+ }
40801
+
40802
+ init(_data?: any) {
40803
+ if (_data) {
40804
+ this.lineNumber = _data["lineNumber"];
40805
+ this.fromAutoFill = _data["fromAutoFill"] ? LocationMaterialDto.fromJS(_data["fromAutoFill"]) : <any>undefined;
40806
+ this.toAutoFill = _data["toAutoFill"] ? LocationDto.fromJS(_data["toAutoFill"]) : <any>undefined;
40807
+ if (Array.isArray(_data["fromSuggestions"])) {
40808
+ this.fromSuggestions = [] as any;
40809
+ for (let item of _data["fromSuggestions"])
40810
+ this.fromSuggestions!.push(LocationMaterialDto.fromJS(item));
40811
+ }
40812
+ if (Array.isArray(_data["toSuggestions"])) {
40813
+ this.toSuggestions = [] as any;
40814
+ for (let item of _data["toSuggestions"])
40815
+ this.toSuggestions!.push(LocationDto.fromJS(item));
40816
+ }
40817
+ }
40818
+ }
40819
+
40820
+ static fromJS(data: any): SuggestionsMaterialItemDto {
40821
+ data = typeof data === 'object' ? data : {};
40822
+ let result = new SuggestionsMaterialItemDto();
40823
+ result.init(data);
40824
+ return result;
40825
+ }
40826
+
40827
+ toJSON(data?: any) {
40828
+ data = typeof data === 'object' ? data : {};
40829
+ data["lineNumber"] = this.lineNumber;
40830
+ data["fromAutoFill"] = this.fromAutoFill ? this.fromAutoFill.toJSON() : <any>undefined;
40831
+ data["toAutoFill"] = this.toAutoFill ? this.toAutoFill.toJSON() : <any>undefined;
40832
+ if (Array.isArray(this.fromSuggestions)) {
40833
+ data["fromSuggestions"] = [];
40834
+ for (let item of this.fromSuggestions)
40835
+ data["fromSuggestions"].push(item.toJSON());
40836
+ }
40837
+ if (Array.isArray(this.toSuggestions)) {
40838
+ data["toSuggestions"] = [];
40839
+ for (let item of this.toSuggestions)
40840
+ data["toSuggestions"].push(item.toJSON());
40841
+ }
40842
+ return data;
40843
+ }
40844
+ }
40845
+
40846
+ export interface ISuggestionsMaterialItemDto {
40847
+ lineNumber: number;
40848
+ fromAutoFill?: LocationMaterialDto | null;
40849
+ toAutoFill?: LocationDto | null;
40850
+ fromSuggestions: LocationMaterialDto[];
40851
+ toSuggestions: LocationDto[];
40852
+ }
40853
+
40854
+ export class LocationMaterialDto implements ILocationMaterialDto {
40855
+ locationId!: string;
40856
+ locationName!: string;
40857
+ zoneId?: string | null;
40858
+ zoneName?: string | null;
40859
+ kind!: LocationKindDto;
40860
+ profile?: string | null;
40861
+ materialAvailable!: number;
40862
+
40863
+ constructor(data?: ILocationMaterialDto) {
40864
+ if (data) {
40865
+ for (var property in data) {
40866
+ if (data.hasOwnProperty(property))
40867
+ (<any>this)[property] = (<any>data)[property];
40868
+ }
40869
+ }
40870
+ }
40871
+
40872
+ init(_data?: any) {
40873
+ if (_data) {
40874
+ this.locationId = _data["locationId"];
40875
+ this.locationName = _data["locationName"];
40876
+ this.zoneId = _data["zoneId"];
40877
+ this.zoneName = _data["zoneName"];
40878
+ this.kind = _data["kind"];
40879
+ this.profile = _data["profile"];
40880
+ this.materialAvailable = _data["materialAvailable"];
40881
+ }
40882
+ }
40883
+
40884
+ static fromJS(data: any): LocationMaterialDto {
40885
+ data = typeof data === 'object' ? data : {};
40886
+ let result = new LocationMaterialDto();
40887
+ result.init(data);
40888
+ return result;
40889
+ }
40890
+
40891
+ toJSON(data?: any) {
40892
+ data = typeof data === 'object' ? data : {};
40893
+ data["locationId"] = this.locationId;
40894
+ data["locationName"] = this.locationName;
40895
+ data["zoneId"] = this.zoneId;
40896
+ data["zoneName"] = this.zoneName;
40897
+ data["kind"] = this.kind;
40898
+ data["profile"] = this.profile;
40899
+ data["materialAvailable"] = this.materialAvailable;
40900
+ return data;
40901
+ }
40902
+ }
40903
+
40904
+ export interface ILocationMaterialDto {
40905
+ locationId: string;
40906
+ locationName: string;
40907
+ zoneId?: string | null;
40908
+ zoneName?: string | null;
40909
+ kind: LocationKindDto;
40910
+ profile?: string | null;
40911
+ materialAvailable: number;
40912
+ }
40913
+
39747
40914
  export class MaterialDesciptionDto implements IMaterialDesciptionDto {
39748
40915
  materialId!: string;
39749
40916
  materialName!: string;
@@ -41746,6 +42913,7 @@ export class ProductionOrderBomDto implements IProductionOrderBomDto {
41746
42913
  status!: MaterialStatus;
41747
42914
  availabilityDetails!: InventoryDto[];
41748
42915
  traceType!: TraceType;
42916
+ resourceGroupId?: string | null;
41749
42917
 
41750
42918
  constructor(data?: IProductionOrderBomDto) {
41751
42919
  if (data) {
@@ -41789,6 +42957,7 @@ export class ProductionOrderBomDto implements IProductionOrderBomDto {
41789
42957
  this.availabilityDetails!.push(InventoryDto.fromJS(item));
41790
42958
  }
41791
42959
  this.traceType = _data["traceType"];
42960
+ this.resourceGroupId = _data["resourceGroupId"];
41792
42961
  }
41793
42962
  }
41794
42963
 
@@ -41828,6 +42997,7 @@ export class ProductionOrderBomDto implements IProductionOrderBomDto {
41828
42997
  data["availabilityDetails"].push(item.toJSON());
41829
42998
  }
41830
42999
  data["traceType"] = this.traceType;
43000
+ data["resourceGroupId"] = this.resourceGroupId;
41831
43001
  return data;
41832
43002
  }
41833
43003
  }
@@ -41852,6 +43022,7 @@ export interface IProductionOrderBomDto {
41852
43022
  status: MaterialStatus;
41853
43023
  availabilityDetails: InventoryDto[];
41854
43024
  traceType: TraceType;
43025
+ resourceGroupId?: string | null;
41855
43026
  }
41856
43027
 
41857
43028
  export class InventoryDto implements IInventoryDto {