@ignos/api-client 20250114.0.10945 → 20250116.0.10991

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.
@@ -373,6 +373,22 @@ export declare class MachineAlarmsClient extends AuthorizedApiBase implements IM
373
373
  getMachineAlarmDetails(id: number): Promise<MachineAlarmDetailsDto>;
374
374
  protected processGetMachineAlarmDetails(response: Response): Promise<MachineAlarmDetailsDto>;
375
375
  }
376
+ export interface IPulseClient {
377
+ getPulseSettings(): Promise<PulseSettingsDto>;
378
+ updatePulseSettings(request: UpdatePulseSettings): Promise<PulseSettingsDto>;
379
+ }
380
+ export declare class PulseClient extends AuthorizedApiBase implements IPulseClient {
381
+ private http;
382
+ private baseUrl;
383
+ protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
384
+ constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
385
+ fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
386
+ });
387
+ getPulseSettings(): Promise<PulseSettingsDto>;
388
+ protected processGetPulseSettings(response: Response): Promise<PulseSettingsDto>;
389
+ updatePulseSettings(request: UpdatePulseSettings): Promise<PulseSettingsDto>;
390
+ protected processUpdatePulseSettings(response: Response): Promise<PulseSettingsDto>;
391
+ }
376
392
  export interface IMrbClient {
377
393
  listMrbInstances(customerOrder: string | undefined, customerOrderLine: number | null | undefined): Promise<MrbInstanceDto[]>;
378
394
  createMrb(createMrb: CreateMrb): Promise<MrbInstanceJobDto>;
@@ -1534,6 +1550,7 @@ export interface IMoveLocationsClient {
1534
1550
  suggestionsLocations(locationProfiles: LocationProfileDto[] | null | undefined, count: number | undefined): Promise<LocationDto[]>;
1535
1551
  suggestionsParcel(parcelId: string[] | undefined): Promise<SuggestionsResponseDto>;
1536
1552
  suggestionsGeneral(suggestionType: SuggestionTypeDto | undefined): Promise<SuggestionsItemDto>;
1553
+ suggestionsMaterial(parcelId: string | undefined, operation: number | null | undefined): Promise<SuggestionsMaterialItemDto[]>;
1537
1554
  }
1538
1555
  export declare class MoveLocationsClient extends AuthorizedApiBase implements IMoveLocationsClient {
1539
1556
  private http;
@@ -1552,6 +1569,8 @@ export declare class MoveLocationsClient extends AuthorizedApiBase implements IM
1552
1569
  protected processSuggestionsParcel(response: Response): Promise<SuggestionsResponseDto>;
1553
1570
  suggestionsGeneral(suggestionType: SuggestionTypeDto | undefined): Promise<SuggestionsItemDto>;
1554
1571
  protected processSuggestionsGeneral(response: Response): Promise<SuggestionsItemDto>;
1572
+ suggestionsMaterial(parcelId: string | undefined, operation: number | null | undefined): Promise<SuggestionsMaterialItemDto[]>;
1573
+ protected processSuggestionsMaterial(response: Response): Promise<SuggestionsMaterialItemDto[]>;
1555
1574
  }
1556
1575
  export interface IMoveMaterialsClient {
1557
1576
  listMaterials(): Promise<MaterialDesciptionDto[]>;
@@ -3442,6 +3461,49 @@ export interface ICncProgramInfoDto {
3442
3461
  sequence?: string | null;
3443
3462
  line?: string | null;
3444
3463
  }
3464
+ export declare class PulseSettingsDto implements IPulseSettingsDto {
3465
+ defaultUtilizationType: UtilizationTypeDto;
3466
+ utilizationTypeEnabling: UtilizationTypeEnablingDto;
3467
+ constructor(data?: IPulseSettingsDto);
3468
+ init(_data?: any): void;
3469
+ static fromJS(data: any): PulseSettingsDto;
3470
+ toJSON(data?: any): any;
3471
+ }
3472
+ export interface IPulseSettingsDto {
3473
+ defaultUtilizationType: UtilizationTypeDto;
3474
+ utilizationTypeEnabling: UtilizationTypeEnablingDto;
3475
+ }
3476
+ export type UtilizationTypeDto = "PowerOn" | "TwentyFourSeven" | "ActiveOrder";
3477
+ export declare class UtilizationTypeEnablingDto implements IUtilizationTypeEnablingDto {
3478
+ powerOnEnabled: boolean;
3479
+ twentyFourSevenEnabled: boolean;
3480
+ activeOrderEnabled: boolean;
3481
+ constructor(data?: IUtilizationTypeEnablingDto);
3482
+ init(_data?: any): void;
3483
+ static fromJS(data: any): UtilizationTypeEnablingDto;
3484
+ toJSON(data?: any): any;
3485
+ }
3486
+ export interface IUtilizationTypeEnablingDto {
3487
+ powerOnEnabled: boolean;
3488
+ twentyFourSevenEnabled: boolean;
3489
+ activeOrderEnabled: boolean;
3490
+ }
3491
+ export declare class UpdatePulseSettings implements IUpdatePulseSettings {
3492
+ defaultUtilizationType: UtilizationTypeDto;
3493
+ powerOnEnabled: boolean;
3494
+ twentyfourSevenEnabled: boolean;
3495
+ activeOrderEnabled: boolean;
3496
+ constructor(data?: IUpdatePulseSettings);
3497
+ init(_data?: any): void;
3498
+ static fromJS(data: any): UpdatePulseSettings;
3499
+ toJSON(data?: any): any;
3500
+ }
3501
+ export interface IUpdatePulseSettings {
3502
+ defaultUtilizationType: UtilizationTypeDto;
3503
+ powerOnEnabled: boolean;
3504
+ twentyfourSevenEnabled: boolean;
3505
+ activeOrderEnabled: boolean;
3506
+ }
3445
3507
  export declare class MrbInstanceDto implements IMrbInstanceDto {
3446
3508
  id: string;
3447
3509
  title?: string | null;
@@ -5284,8 +5346,9 @@ export interface IMachineGroupCapacityDto {
5284
5346
  export declare class MachineCapacityDto implements IMachineCapacityDto {
5285
5347
  machineExternalId: string;
5286
5348
  name: string;
5349
+ utilizationPercent: number;
5287
5350
  comment?: string | null;
5288
- capacity?: MachineCapacitySettingsDto[] | null;
5351
+ capacity: MachineCapacitySettingsDto[];
5289
5352
  created?: Date | null;
5290
5353
  updatedBy?: string | null;
5291
5354
  updatedById?: string | null;
@@ -5297,28 +5360,30 @@ export declare class MachineCapacityDto implements IMachineCapacityDto {
5297
5360
  export interface IMachineCapacityDto {
5298
5361
  machineExternalId: string;
5299
5362
  name: string;
5363
+ utilizationPercent: number;
5300
5364
  comment?: string | null;
5301
- capacity?: MachineCapacitySettingsDto[] | null;
5365
+ capacity: MachineCapacitySettingsDto[];
5302
5366
  created?: Date | null;
5303
5367
  updatedBy?: string | null;
5304
5368
  updatedById?: string | null;
5305
5369
  }
5306
5370
  export declare class MachineCapacitySettingsDto implements IMachineCapacitySettingsDto {
5371
+ dayIndex: number;
5307
5372
  capacityHours: number;
5308
- utilizationPercent: number;
5309
5373
  constructor(data?: IMachineCapacitySettingsDto);
5310
5374
  init(_data?: any): void;
5311
5375
  static fromJS(data: any): MachineCapacitySettingsDto;
5312
5376
  toJSON(data?: any): any;
5313
5377
  }
5314
5378
  export interface IMachineCapacitySettingsDto {
5379
+ dayIndex: number;
5315
5380
  capacityHours: number;
5316
- utilizationPercent: number;
5317
5381
  }
5318
5382
  export declare class UpdateMachinesCapacity implements IUpdateMachinesCapacity {
5319
5383
  machineExternalId: string;
5320
5384
  comment?: string | null;
5321
- capacity: MachineCapacitySettingsDto[];
5385
+ utilizationPercent?: number | null;
5386
+ capacity?: MachineCapacitySettingsDto[] | null;
5322
5387
  constructor(data?: IUpdateMachinesCapacity);
5323
5388
  init(_data?: any): void;
5324
5389
  static fromJS(data: any): UpdateMachinesCapacity;
@@ -5327,7 +5392,8 @@ export declare class UpdateMachinesCapacity implements IUpdateMachinesCapacity {
5327
5392
  export interface IUpdateMachinesCapacity {
5328
5393
  machineExternalId: string;
5329
5394
  comment?: string | null;
5330
- capacity: MachineCapacitySettingsDto[];
5395
+ utilizationPercent?: number | null;
5396
+ capacity?: MachineCapacitySettingsDto[] | null;
5331
5397
  }
5332
5398
  export declare class CalenderCapacityDto implements ICalenderCapacityDto {
5333
5399
  date?: Date;
@@ -8636,6 +8702,46 @@ export interface ISuggestionsItemDto {
8636
8702
  toSuggestions: LocationDto[];
8637
8703
  }
8638
8704
  export type SuggestionTypeDto = "Other" | "ChipDisposal" | "Garbage";
8705
+ export declare class SuggestionsMaterialItemDto implements ISuggestionsMaterialItemDto {
8706
+ lineNumber: number;
8707
+ fromAutoFill?: LocationMaterialDto | null;
8708
+ toAutoFill?: LocationDto | null;
8709
+ fromSuggestions: LocationMaterialDto[];
8710
+ toSuggestions: LocationDto[];
8711
+ constructor(data?: ISuggestionsMaterialItemDto);
8712
+ init(_data?: any): void;
8713
+ static fromJS(data: any): SuggestionsMaterialItemDto;
8714
+ toJSON(data?: any): any;
8715
+ }
8716
+ export interface ISuggestionsMaterialItemDto {
8717
+ lineNumber: number;
8718
+ fromAutoFill?: LocationMaterialDto | null;
8719
+ toAutoFill?: LocationDto | null;
8720
+ fromSuggestions: LocationMaterialDto[];
8721
+ toSuggestions: LocationDto[];
8722
+ }
8723
+ export declare class LocationMaterialDto implements ILocationMaterialDto {
8724
+ locationId: string;
8725
+ locationName: string;
8726
+ zoneId?: string | null;
8727
+ zoneName?: string | null;
8728
+ kind: LocationKindDto;
8729
+ profile?: string | null;
8730
+ materialAvailable: number;
8731
+ constructor(data?: ILocationMaterialDto);
8732
+ init(_data?: any): void;
8733
+ static fromJS(data: any): LocationMaterialDto;
8734
+ toJSON(data?: any): any;
8735
+ }
8736
+ export interface ILocationMaterialDto {
8737
+ locationId: string;
8738
+ locationName: string;
8739
+ zoneId?: string | null;
8740
+ zoneName?: string | null;
8741
+ kind: LocationKindDto;
8742
+ profile?: string | null;
8743
+ materialAvailable: number;
8744
+ }
8639
8745
  export declare class MaterialDesciptionDto implements IMaterialDesciptionDto {
8640
8746
  materialId: string;
8641
8747
  materialName: string;
@@ -9288,6 +9394,7 @@ export declare class ProductionOrderBomDto implements IProductionOrderBomDto {
9288
9394
  status: MaterialStatus;
9289
9395
  availabilityDetails: InventoryDto[];
9290
9396
  traceType: TraceType;
9397
+ resourceGroupId?: string | null;
9291
9398
  constructor(data?: IProductionOrderBomDto);
9292
9399
  init(_data?: any): void;
9293
9400
  static fromJS(data: any): ProductionOrderBomDto;
@@ -9313,6 +9420,7 @@ export interface IProductionOrderBomDto {
9313
9420
  status: MaterialStatus;
9314
9421
  availabilityDetails: InventoryDto[];
9315
9422
  traceType: TraceType;
9423
+ resourceGroupId?: string | null;
9316
9424
  }
9317
9425
  export declare class InventoryDto implements IInventoryDto {
9318
9426
  siteId: string;
@@ -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);
@@ -12778,6 +12863,53 @@ export class MoveLocationsClient extends AuthorizedApiBase {
12778
12863
  }
12779
12864
  return Promise.resolve(null);
12780
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
+ }
12781
12913
  }
12782
12914
  export class MoveMaterialsClient extends AuthorizedApiBase {
12783
12915
  constructor(configuration, baseUrl, http) {
@@ -22290,6 +22422,99 @@ export class CncProgramInfoDto {
22290
22422
  return data;
22291
22423
  }
22292
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
+ }
22293
22518
  export class MrbInstanceDto {
22294
22519
  constructor(data) {
22295
22520
  if (data) {
@@ -26155,11 +26380,15 @@ export class MachineCapacityDto {
26155
26380
  this[property] = data[property];
26156
26381
  }
26157
26382
  }
26383
+ if (!data) {
26384
+ this.capacity = [];
26385
+ }
26158
26386
  }
26159
26387
  init(_data) {
26160
26388
  if (_data) {
26161
26389
  this.machineExternalId = _data["machineExternalId"];
26162
26390
  this.name = _data["name"];
26391
+ this.utilizationPercent = _data["utilizationPercent"];
26163
26392
  this.comment = _data["comment"];
26164
26393
  if (Array.isArray(_data["capacity"])) {
26165
26394
  this.capacity = [];
@@ -26181,6 +26410,7 @@ export class MachineCapacityDto {
26181
26410
  data = typeof data === 'object' ? data : {};
26182
26411
  data["machineExternalId"] = this.machineExternalId;
26183
26412
  data["name"] = this.name;
26413
+ data["utilizationPercent"] = this.utilizationPercent;
26184
26414
  data["comment"] = this.comment;
26185
26415
  if (Array.isArray(this.capacity)) {
26186
26416
  data["capacity"] = [];
@@ -26204,8 +26434,8 @@ export class MachineCapacitySettingsDto {
26204
26434
  }
26205
26435
  init(_data) {
26206
26436
  if (_data) {
26437
+ this.dayIndex = _data["dayIndex"];
26207
26438
  this.capacityHours = _data["capacityHours"];
26208
- this.utilizationPercent = _data["utilizationPercent"];
26209
26439
  }
26210
26440
  }
26211
26441
  static fromJS(data) {
@@ -26216,8 +26446,8 @@ export class MachineCapacitySettingsDto {
26216
26446
  }
26217
26447
  toJSON(data) {
26218
26448
  data = typeof data === 'object' ? data : {};
26449
+ data["dayIndex"] = this.dayIndex;
26219
26450
  data["capacityHours"] = this.capacityHours;
26220
- data["utilizationPercent"] = this.utilizationPercent;
26221
26451
  return data;
26222
26452
  }
26223
26453
  }
@@ -26229,14 +26459,12 @@ export class UpdateMachinesCapacity {
26229
26459
  this[property] = data[property];
26230
26460
  }
26231
26461
  }
26232
- if (!data) {
26233
- this.capacity = [];
26234
- }
26235
26462
  }
26236
26463
  init(_data) {
26237
26464
  if (_data) {
26238
26465
  this.machineExternalId = _data["machineExternalId"];
26239
26466
  this.comment = _data["comment"];
26467
+ this.utilizationPercent = _data["utilizationPercent"];
26240
26468
  if (Array.isArray(_data["capacity"])) {
26241
26469
  this.capacity = [];
26242
26470
  for (let item of _data["capacity"])
@@ -26254,6 +26482,7 @@ export class UpdateMachinesCapacity {
26254
26482
  data = typeof data === 'object' ? data : {};
26255
26483
  data["machineExternalId"] = this.machineExternalId;
26256
26484
  data["comment"] = this.comment;
26485
+ data["utilizationPercent"] = this.utilizationPercent;
26257
26486
  if (Array.isArray(this.capacity)) {
26258
26487
  data["capacity"] = [];
26259
26488
  for (let item of this.capacity)
@@ -32918,6 +33147,98 @@ export class SuggestionsItemDto {
32918
33147
  return data;
32919
33148
  }
32920
33149
  }
33150
+ export class SuggestionsMaterialItemDto {
33151
+ constructor(data) {
33152
+ if (data) {
33153
+ for (var property in data) {
33154
+ if (data.hasOwnProperty(property))
33155
+ this[property] = data[property];
33156
+ }
33157
+ }
33158
+ if (!data) {
33159
+ this.fromSuggestions = [];
33160
+ this.toSuggestions = [];
33161
+ }
33162
+ }
33163
+ init(_data) {
33164
+ if (_data) {
33165
+ this.lineNumber = _data["lineNumber"];
33166
+ this.fromAutoFill = _data["fromAutoFill"] ? LocationMaterialDto.fromJS(_data["fromAutoFill"]) : undefined;
33167
+ this.toAutoFill = _data["toAutoFill"] ? LocationDto.fromJS(_data["toAutoFill"]) : undefined;
33168
+ if (Array.isArray(_data["fromSuggestions"])) {
33169
+ this.fromSuggestions = [];
33170
+ for (let item of _data["fromSuggestions"])
33171
+ this.fromSuggestions.push(LocationMaterialDto.fromJS(item));
33172
+ }
33173
+ if (Array.isArray(_data["toSuggestions"])) {
33174
+ this.toSuggestions = [];
33175
+ for (let item of _data["toSuggestions"])
33176
+ this.toSuggestions.push(LocationDto.fromJS(item));
33177
+ }
33178
+ }
33179
+ }
33180
+ static fromJS(data) {
33181
+ data = typeof data === 'object' ? data : {};
33182
+ let result = new SuggestionsMaterialItemDto();
33183
+ result.init(data);
33184
+ return result;
33185
+ }
33186
+ toJSON(data) {
33187
+ data = typeof data === 'object' ? data : {};
33188
+ data["lineNumber"] = this.lineNumber;
33189
+ data["fromAutoFill"] = this.fromAutoFill ? this.fromAutoFill.toJSON() : undefined;
33190
+ data["toAutoFill"] = this.toAutoFill ? this.toAutoFill.toJSON() : undefined;
33191
+ if (Array.isArray(this.fromSuggestions)) {
33192
+ data["fromSuggestions"] = [];
33193
+ for (let item of this.fromSuggestions)
33194
+ data["fromSuggestions"].push(item.toJSON());
33195
+ }
33196
+ if (Array.isArray(this.toSuggestions)) {
33197
+ data["toSuggestions"] = [];
33198
+ for (let item of this.toSuggestions)
33199
+ data["toSuggestions"].push(item.toJSON());
33200
+ }
33201
+ return data;
33202
+ }
33203
+ }
33204
+ export class LocationMaterialDto {
33205
+ constructor(data) {
33206
+ if (data) {
33207
+ for (var property in data) {
33208
+ if (data.hasOwnProperty(property))
33209
+ this[property] = data[property];
33210
+ }
33211
+ }
33212
+ }
33213
+ init(_data) {
33214
+ if (_data) {
33215
+ this.locationId = _data["locationId"];
33216
+ this.locationName = _data["locationName"];
33217
+ this.zoneId = _data["zoneId"];
33218
+ this.zoneName = _data["zoneName"];
33219
+ this.kind = _data["kind"];
33220
+ this.profile = _data["profile"];
33221
+ this.materialAvailable = _data["materialAvailable"];
33222
+ }
33223
+ }
33224
+ static fromJS(data) {
33225
+ data = typeof data === 'object' ? data : {};
33226
+ let result = new LocationMaterialDto();
33227
+ result.init(data);
33228
+ return result;
33229
+ }
33230
+ toJSON(data) {
33231
+ data = typeof data === 'object' ? data : {};
33232
+ data["locationId"] = this.locationId;
33233
+ data["locationName"] = this.locationName;
33234
+ data["zoneId"] = this.zoneId;
33235
+ data["zoneName"] = this.zoneName;
33236
+ data["kind"] = this.kind;
33237
+ data["profile"] = this.profile;
33238
+ data["materialAvailable"] = this.materialAvailable;
33239
+ return data;
33240
+ }
33241
+ }
32921
33242
  export class MaterialDesciptionDto {
32922
33243
  constructor(data) {
32923
33244
  if (data) {
@@ -34306,6 +34627,7 @@ export class ProductionOrderBomDto {
34306
34627
  this.availabilityDetails.push(InventoryDto.fromJS(item));
34307
34628
  }
34308
34629
  this.traceType = _data["traceType"];
34630
+ this.resourceGroupId = _data["resourceGroupId"];
34309
34631
  }
34310
34632
  }
34311
34633
  static fromJS(data) {
@@ -34343,6 +34665,7 @@ export class ProductionOrderBomDto {
34343
34665
  data["availabilityDetails"].push(item.toJSON());
34344
34666
  }
34345
34667
  data["traceType"] = this.traceType;
34668
+ data["resourceGroupId"] = this.resourceGroupId;
34346
34669
  return data;
34347
34670
  }
34348
34671
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20250114.0.10945",
3
+ "version": "20250116.0.10991",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -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[]>;
@@ -13425,6 +13520,8 @@ export interface IMoveLocationsClient {
13425
13520
  suggestionsParcel(parcelId: string[] | undefined): Promise<SuggestionsResponseDto>;
13426
13521
 
13427
13522
  suggestionsGeneral(suggestionType: SuggestionTypeDto | undefined): Promise<SuggestionsItemDto>;
13523
+
13524
+ suggestionsMaterial(parcelId: string | undefined, operation: number | null | undefined): Promise<SuggestionsMaterialItemDto[]>;
13428
13525
  }
13429
13526
 
13430
13527
  export class MoveLocationsClient extends AuthorizedApiBase implements IMoveLocationsClient {
@@ -13649,6 +13746,52 @@ export class MoveLocationsClient extends AuthorizedApiBase implements IMoveLocat
13649
13746
  }
13650
13747
  return Promise.resolve<SuggestionsItemDto>(null as any);
13651
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
+ }
13652
13795
  }
13653
13796
 
13654
13797
  export interface IMoveMaterialsClient {
@@ -24647,6 +24790,143 @@ export interface ICncProgramInfoDto {
24647
24790
  line?: string | null;
24648
24791
  }
24649
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
+
24650
24930
  export class MrbInstanceDto implements IMrbInstanceDto {
24651
24931
  id!: string;
24652
24932
  title?: string | null;
@@ -30363,8 +30643,9 @@ export interface IMachineGroupCapacityDto {
30363
30643
  export class MachineCapacityDto implements IMachineCapacityDto {
30364
30644
  machineExternalId!: string;
30365
30645
  name!: string;
30646
+ utilizationPercent!: number;
30366
30647
  comment?: string | null;
30367
- capacity?: MachineCapacitySettingsDto[] | null;
30648
+ capacity!: MachineCapacitySettingsDto[];
30368
30649
  created?: Date | null;
30369
30650
  updatedBy?: string | null;
30370
30651
  updatedById?: string | null;
@@ -30376,12 +30657,16 @@ export class MachineCapacityDto implements IMachineCapacityDto {
30376
30657
  (<any>this)[property] = (<any>data)[property];
30377
30658
  }
30378
30659
  }
30660
+ if (!data) {
30661
+ this.capacity = [];
30662
+ }
30379
30663
  }
30380
30664
 
30381
30665
  init(_data?: any) {
30382
30666
  if (_data) {
30383
30667
  this.machineExternalId = _data["machineExternalId"];
30384
30668
  this.name = _data["name"];
30669
+ this.utilizationPercent = _data["utilizationPercent"];
30385
30670
  this.comment = _data["comment"];
30386
30671
  if (Array.isArray(_data["capacity"])) {
30387
30672
  this.capacity = [] as any;
@@ -30405,6 +30690,7 @@ export class MachineCapacityDto implements IMachineCapacityDto {
30405
30690
  data = typeof data === 'object' ? data : {};
30406
30691
  data["machineExternalId"] = this.machineExternalId;
30407
30692
  data["name"] = this.name;
30693
+ data["utilizationPercent"] = this.utilizationPercent;
30408
30694
  data["comment"] = this.comment;
30409
30695
  if (Array.isArray(this.capacity)) {
30410
30696
  data["capacity"] = [];
@@ -30421,16 +30707,17 @@ export class MachineCapacityDto implements IMachineCapacityDto {
30421
30707
  export interface IMachineCapacityDto {
30422
30708
  machineExternalId: string;
30423
30709
  name: string;
30710
+ utilizationPercent: number;
30424
30711
  comment?: string | null;
30425
- capacity?: MachineCapacitySettingsDto[] | null;
30712
+ capacity: MachineCapacitySettingsDto[];
30426
30713
  created?: Date | null;
30427
30714
  updatedBy?: string | null;
30428
30715
  updatedById?: string | null;
30429
30716
  }
30430
30717
 
30431
30718
  export class MachineCapacitySettingsDto implements IMachineCapacitySettingsDto {
30719
+ dayIndex!: number;
30432
30720
  capacityHours!: number;
30433
- utilizationPercent!: number;
30434
30721
 
30435
30722
  constructor(data?: IMachineCapacitySettingsDto) {
30436
30723
  if (data) {
@@ -30443,8 +30730,8 @@ export class MachineCapacitySettingsDto implements IMachineCapacitySettingsDto {
30443
30730
 
30444
30731
  init(_data?: any) {
30445
30732
  if (_data) {
30733
+ this.dayIndex = _data["dayIndex"];
30446
30734
  this.capacityHours = _data["capacityHours"];
30447
- this.utilizationPercent = _data["utilizationPercent"];
30448
30735
  }
30449
30736
  }
30450
30737
 
@@ -30457,21 +30744,22 @@ export class MachineCapacitySettingsDto implements IMachineCapacitySettingsDto {
30457
30744
 
30458
30745
  toJSON(data?: any) {
30459
30746
  data = typeof data === 'object' ? data : {};
30747
+ data["dayIndex"] = this.dayIndex;
30460
30748
  data["capacityHours"] = this.capacityHours;
30461
- data["utilizationPercent"] = this.utilizationPercent;
30462
30749
  return data;
30463
30750
  }
30464
30751
  }
30465
30752
 
30466
30753
  export interface IMachineCapacitySettingsDto {
30754
+ dayIndex: number;
30467
30755
  capacityHours: number;
30468
- utilizationPercent: number;
30469
30756
  }
30470
30757
 
30471
30758
  export class UpdateMachinesCapacity implements IUpdateMachinesCapacity {
30472
30759
  machineExternalId!: string;
30473
30760
  comment?: string | null;
30474
- capacity!: MachineCapacitySettingsDto[];
30761
+ utilizationPercent?: number | null;
30762
+ capacity?: MachineCapacitySettingsDto[] | null;
30475
30763
 
30476
30764
  constructor(data?: IUpdateMachinesCapacity) {
30477
30765
  if (data) {
@@ -30480,15 +30768,13 @@ export class UpdateMachinesCapacity implements IUpdateMachinesCapacity {
30480
30768
  (<any>this)[property] = (<any>data)[property];
30481
30769
  }
30482
30770
  }
30483
- if (!data) {
30484
- this.capacity = [];
30485
- }
30486
30771
  }
30487
30772
 
30488
30773
  init(_data?: any) {
30489
30774
  if (_data) {
30490
30775
  this.machineExternalId = _data["machineExternalId"];
30491
30776
  this.comment = _data["comment"];
30777
+ this.utilizationPercent = _data["utilizationPercent"];
30492
30778
  if (Array.isArray(_data["capacity"])) {
30493
30779
  this.capacity = [] as any;
30494
30780
  for (let item of _data["capacity"])
@@ -30508,6 +30794,7 @@ export class UpdateMachinesCapacity implements IUpdateMachinesCapacity {
30508
30794
  data = typeof data === 'object' ? data : {};
30509
30795
  data["machineExternalId"] = this.machineExternalId;
30510
30796
  data["comment"] = this.comment;
30797
+ data["utilizationPercent"] = this.utilizationPercent;
30511
30798
  if (Array.isArray(this.capacity)) {
30512
30799
  data["capacity"] = [];
30513
30800
  for (let item of this.capacity)
@@ -30520,7 +30807,8 @@ export class UpdateMachinesCapacity implements IUpdateMachinesCapacity {
30520
30807
  export interface IUpdateMachinesCapacity {
30521
30808
  machineExternalId: string;
30522
30809
  comment?: string | null;
30523
- capacity: MachineCapacitySettingsDto[];
30810
+ utilizationPercent?: number | null;
30811
+ capacity?: MachineCapacitySettingsDto[] | null;
30524
30812
  }
30525
30813
 
30526
30814
  export class CalenderCapacityDto implements ICalenderCapacityDto {
@@ -40499,6 +40787,138 @@ export interface ISuggestionsItemDto {
40499
40787
 
40500
40788
  export type SuggestionTypeDto = "Other" | "ChipDisposal" | "Garbage";
40501
40789
 
40790
+ export class SuggestionsMaterialItemDto implements ISuggestionsMaterialItemDto {
40791
+ lineNumber!: number;
40792
+ fromAutoFill?: LocationMaterialDto | null;
40793
+ toAutoFill?: LocationDto | null;
40794
+ fromSuggestions!: LocationMaterialDto[];
40795
+ toSuggestions!: LocationDto[];
40796
+
40797
+ constructor(data?: ISuggestionsMaterialItemDto) {
40798
+ if (data) {
40799
+ for (var property in data) {
40800
+ if (data.hasOwnProperty(property))
40801
+ (<any>this)[property] = (<any>data)[property];
40802
+ }
40803
+ }
40804
+ if (!data) {
40805
+ this.fromSuggestions = [];
40806
+ this.toSuggestions = [];
40807
+ }
40808
+ }
40809
+
40810
+ init(_data?: any) {
40811
+ if (_data) {
40812
+ this.lineNumber = _data["lineNumber"];
40813
+ this.fromAutoFill = _data["fromAutoFill"] ? LocationMaterialDto.fromJS(_data["fromAutoFill"]) : <any>undefined;
40814
+ this.toAutoFill = _data["toAutoFill"] ? LocationDto.fromJS(_data["toAutoFill"]) : <any>undefined;
40815
+ if (Array.isArray(_data["fromSuggestions"])) {
40816
+ this.fromSuggestions = [] as any;
40817
+ for (let item of _data["fromSuggestions"])
40818
+ this.fromSuggestions!.push(LocationMaterialDto.fromJS(item));
40819
+ }
40820
+ if (Array.isArray(_data["toSuggestions"])) {
40821
+ this.toSuggestions = [] as any;
40822
+ for (let item of _data["toSuggestions"])
40823
+ this.toSuggestions!.push(LocationDto.fromJS(item));
40824
+ }
40825
+ }
40826
+ }
40827
+
40828
+ static fromJS(data: any): SuggestionsMaterialItemDto {
40829
+ data = typeof data === 'object' ? data : {};
40830
+ let result = new SuggestionsMaterialItemDto();
40831
+ result.init(data);
40832
+ return result;
40833
+ }
40834
+
40835
+ toJSON(data?: any) {
40836
+ data = typeof data === 'object' ? data : {};
40837
+ data["lineNumber"] = this.lineNumber;
40838
+ data["fromAutoFill"] = this.fromAutoFill ? this.fromAutoFill.toJSON() : <any>undefined;
40839
+ data["toAutoFill"] = this.toAutoFill ? this.toAutoFill.toJSON() : <any>undefined;
40840
+ if (Array.isArray(this.fromSuggestions)) {
40841
+ data["fromSuggestions"] = [];
40842
+ for (let item of this.fromSuggestions)
40843
+ data["fromSuggestions"].push(item.toJSON());
40844
+ }
40845
+ if (Array.isArray(this.toSuggestions)) {
40846
+ data["toSuggestions"] = [];
40847
+ for (let item of this.toSuggestions)
40848
+ data["toSuggestions"].push(item.toJSON());
40849
+ }
40850
+ return data;
40851
+ }
40852
+ }
40853
+
40854
+ export interface ISuggestionsMaterialItemDto {
40855
+ lineNumber: number;
40856
+ fromAutoFill?: LocationMaterialDto | null;
40857
+ toAutoFill?: LocationDto | null;
40858
+ fromSuggestions: LocationMaterialDto[];
40859
+ toSuggestions: LocationDto[];
40860
+ }
40861
+
40862
+ export class LocationMaterialDto implements ILocationMaterialDto {
40863
+ locationId!: string;
40864
+ locationName!: string;
40865
+ zoneId?: string | null;
40866
+ zoneName?: string | null;
40867
+ kind!: LocationKindDto;
40868
+ profile?: string | null;
40869
+ materialAvailable!: number;
40870
+
40871
+ constructor(data?: ILocationMaterialDto) {
40872
+ if (data) {
40873
+ for (var property in data) {
40874
+ if (data.hasOwnProperty(property))
40875
+ (<any>this)[property] = (<any>data)[property];
40876
+ }
40877
+ }
40878
+ }
40879
+
40880
+ init(_data?: any) {
40881
+ if (_data) {
40882
+ this.locationId = _data["locationId"];
40883
+ this.locationName = _data["locationName"];
40884
+ this.zoneId = _data["zoneId"];
40885
+ this.zoneName = _data["zoneName"];
40886
+ this.kind = _data["kind"];
40887
+ this.profile = _data["profile"];
40888
+ this.materialAvailable = _data["materialAvailable"];
40889
+ }
40890
+ }
40891
+
40892
+ static fromJS(data: any): LocationMaterialDto {
40893
+ data = typeof data === 'object' ? data : {};
40894
+ let result = new LocationMaterialDto();
40895
+ result.init(data);
40896
+ return result;
40897
+ }
40898
+
40899
+ toJSON(data?: any) {
40900
+ data = typeof data === 'object' ? data : {};
40901
+ data["locationId"] = this.locationId;
40902
+ data["locationName"] = this.locationName;
40903
+ data["zoneId"] = this.zoneId;
40904
+ data["zoneName"] = this.zoneName;
40905
+ data["kind"] = this.kind;
40906
+ data["profile"] = this.profile;
40907
+ data["materialAvailable"] = this.materialAvailable;
40908
+ return data;
40909
+ }
40910
+ }
40911
+
40912
+ export interface ILocationMaterialDto {
40913
+ locationId: string;
40914
+ locationName: string;
40915
+ zoneId?: string | null;
40916
+ zoneName?: string | null;
40917
+ kind: LocationKindDto;
40918
+ profile?: string | null;
40919
+ materialAvailable: number;
40920
+ }
40921
+
40502
40922
  export class MaterialDesciptionDto implements IMaterialDesciptionDto {
40503
40923
  materialId!: string;
40504
40924
  materialName!: string;
@@ -42501,6 +42921,7 @@ export class ProductionOrderBomDto implements IProductionOrderBomDto {
42501
42921
  status!: MaterialStatus;
42502
42922
  availabilityDetails!: InventoryDto[];
42503
42923
  traceType!: TraceType;
42924
+ resourceGroupId?: string | null;
42504
42925
 
42505
42926
  constructor(data?: IProductionOrderBomDto) {
42506
42927
  if (data) {
@@ -42544,6 +42965,7 @@ export class ProductionOrderBomDto implements IProductionOrderBomDto {
42544
42965
  this.availabilityDetails!.push(InventoryDto.fromJS(item));
42545
42966
  }
42546
42967
  this.traceType = _data["traceType"];
42968
+ this.resourceGroupId = _data["resourceGroupId"];
42547
42969
  }
42548
42970
  }
42549
42971
 
@@ -42583,6 +43005,7 @@ export class ProductionOrderBomDto implements IProductionOrderBomDto {
42583
43005
  data["availabilityDetails"].push(item.toJSON());
42584
43006
  }
42585
43007
  data["traceType"] = this.traceType;
43008
+ data["resourceGroupId"] = this.resourceGroupId;
42586
43009
  return data;
42587
43010
  }
42588
43011
  }
@@ -42607,6 +43030,7 @@ export interface IProductionOrderBomDto {
42607
43030
  status: MaterialStatus;
42608
43031
  availabilityDetails: InventoryDto[];
42609
43032
  traceType: TraceType;
43033
+ resourceGroupId?: string | null;
42610
43034
  }
42611
43035
 
42612
43036
  export class InventoryDto implements IInventoryDto {