@ignos/api-client 20250114.0.10945 → 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.
@@ -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;
@@ -8636,6 +8698,46 @@ export interface ISuggestionsItemDto {
8636
8698
  toSuggestions: LocationDto[];
8637
8699
  }
8638
8700
  export type SuggestionTypeDto = "Other" | "ChipDisposal" | "Garbage";
8701
+ export declare class SuggestionsMaterialItemDto implements ISuggestionsMaterialItemDto {
8702
+ lineNumber: number;
8703
+ fromAutoFill?: LocationMaterialDto | null;
8704
+ toAutoFill?: LocationDto | null;
8705
+ fromSuggestions: LocationMaterialDto[];
8706
+ toSuggestions: LocationDto[];
8707
+ constructor(data?: ISuggestionsMaterialItemDto);
8708
+ init(_data?: any): void;
8709
+ static fromJS(data: any): SuggestionsMaterialItemDto;
8710
+ toJSON(data?: any): any;
8711
+ }
8712
+ export interface ISuggestionsMaterialItemDto {
8713
+ lineNumber: number;
8714
+ fromAutoFill?: LocationMaterialDto | null;
8715
+ toAutoFill?: LocationDto | null;
8716
+ fromSuggestions: LocationMaterialDto[];
8717
+ toSuggestions: LocationDto[];
8718
+ }
8719
+ export declare class LocationMaterialDto implements ILocationMaterialDto {
8720
+ locationId: string;
8721
+ locationName: string;
8722
+ zoneId?: string | null;
8723
+ zoneName?: string | null;
8724
+ kind: LocationKindDto;
8725
+ profile?: string | null;
8726
+ materialAvailable: number;
8727
+ constructor(data?: ILocationMaterialDto);
8728
+ init(_data?: any): void;
8729
+ static fromJS(data: any): LocationMaterialDto;
8730
+ toJSON(data?: any): any;
8731
+ }
8732
+ export interface ILocationMaterialDto {
8733
+ locationId: string;
8734
+ locationName: string;
8735
+ zoneId?: string | null;
8736
+ zoneName?: string | null;
8737
+ kind: LocationKindDto;
8738
+ profile?: string | null;
8739
+ materialAvailable: number;
8740
+ }
8639
8741
  export declare class MaterialDesciptionDto implements IMaterialDesciptionDto {
8640
8742
  materialId: string;
8641
8743
  materialName: string;
@@ -9288,6 +9390,7 @@ export declare class ProductionOrderBomDto implements IProductionOrderBomDto {
9288
9390
  status: MaterialStatus;
9289
9391
  availabilityDetails: InventoryDto[];
9290
9392
  traceType: TraceType;
9393
+ resourceGroupId?: string | null;
9291
9394
  constructor(data?: IProductionOrderBomDto);
9292
9395
  init(_data?: any): void;
9293
9396
  static fromJS(data: any): ProductionOrderBomDto;
@@ -9313,6 +9416,7 @@ export interface IProductionOrderBomDto {
9313
9416
  status: MaterialStatus;
9314
9417
  availabilityDetails: InventoryDto[];
9315
9418
  traceType: TraceType;
9419
+ resourceGroupId?: string | null;
9316
9420
  }
9317
9421
  export declare class InventoryDto implements IInventoryDto {
9318
9422
  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) {
@@ -32918,6 +33143,98 @@ export class SuggestionsItemDto {
32918
33143
  return data;
32919
33144
  }
32920
33145
  }
33146
+ export class SuggestionsMaterialItemDto {
33147
+ constructor(data) {
33148
+ if (data) {
33149
+ for (var property in data) {
33150
+ if (data.hasOwnProperty(property))
33151
+ this[property] = data[property];
33152
+ }
33153
+ }
33154
+ if (!data) {
33155
+ this.fromSuggestions = [];
33156
+ this.toSuggestions = [];
33157
+ }
33158
+ }
33159
+ init(_data) {
33160
+ if (_data) {
33161
+ this.lineNumber = _data["lineNumber"];
33162
+ this.fromAutoFill = _data["fromAutoFill"] ? LocationMaterialDto.fromJS(_data["fromAutoFill"]) : undefined;
33163
+ this.toAutoFill = _data["toAutoFill"] ? LocationDto.fromJS(_data["toAutoFill"]) : undefined;
33164
+ if (Array.isArray(_data["fromSuggestions"])) {
33165
+ this.fromSuggestions = [];
33166
+ for (let item of _data["fromSuggestions"])
33167
+ this.fromSuggestions.push(LocationMaterialDto.fromJS(item));
33168
+ }
33169
+ if (Array.isArray(_data["toSuggestions"])) {
33170
+ this.toSuggestions = [];
33171
+ for (let item of _data["toSuggestions"])
33172
+ this.toSuggestions.push(LocationDto.fromJS(item));
33173
+ }
33174
+ }
33175
+ }
33176
+ static fromJS(data) {
33177
+ data = typeof data === 'object' ? data : {};
33178
+ let result = new SuggestionsMaterialItemDto();
33179
+ result.init(data);
33180
+ return result;
33181
+ }
33182
+ toJSON(data) {
33183
+ data = typeof data === 'object' ? data : {};
33184
+ data["lineNumber"] = this.lineNumber;
33185
+ data["fromAutoFill"] = this.fromAutoFill ? this.fromAutoFill.toJSON() : undefined;
33186
+ data["toAutoFill"] = this.toAutoFill ? this.toAutoFill.toJSON() : undefined;
33187
+ if (Array.isArray(this.fromSuggestions)) {
33188
+ data["fromSuggestions"] = [];
33189
+ for (let item of this.fromSuggestions)
33190
+ data["fromSuggestions"].push(item.toJSON());
33191
+ }
33192
+ if (Array.isArray(this.toSuggestions)) {
33193
+ data["toSuggestions"] = [];
33194
+ for (let item of this.toSuggestions)
33195
+ data["toSuggestions"].push(item.toJSON());
33196
+ }
33197
+ return data;
33198
+ }
33199
+ }
33200
+ export class LocationMaterialDto {
33201
+ constructor(data) {
33202
+ if (data) {
33203
+ for (var property in data) {
33204
+ if (data.hasOwnProperty(property))
33205
+ this[property] = data[property];
33206
+ }
33207
+ }
33208
+ }
33209
+ init(_data) {
33210
+ if (_data) {
33211
+ this.locationId = _data["locationId"];
33212
+ this.locationName = _data["locationName"];
33213
+ this.zoneId = _data["zoneId"];
33214
+ this.zoneName = _data["zoneName"];
33215
+ this.kind = _data["kind"];
33216
+ this.profile = _data["profile"];
33217
+ this.materialAvailable = _data["materialAvailable"];
33218
+ }
33219
+ }
33220
+ static fromJS(data) {
33221
+ data = typeof data === 'object' ? data : {};
33222
+ let result = new LocationMaterialDto();
33223
+ result.init(data);
33224
+ return result;
33225
+ }
33226
+ toJSON(data) {
33227
+ data = typeof data === 'object' ? data : {};
33228
+ data["locationId"] = this.locationId;
33229
+ data["locationName"] = this.locationName;
33230
+ data["zoneId"] = this.zoneId;
33231
+ data["zoneName"] = this.zoneName;
33232
+ data["kind"] = this.kind;
33233
+ data["profile"] = this.profile;
33234
+ data["materialAvailable"] = this.materialAvailable;
33235
+ return data;
33236
+ }
33237
+ }
32921
33238
  export class MaterialDesciptionDto {
32922
33239
  constructor(data) {
32923
33240
  if (data) {
@@ -34306,6 +34623,7 @@ export class ProductionOrderBomDto {
34306
34623
  this.availabilityDetails.push(InventoryDto.fromJS(item));
34307
34624
  }
34308
34625
  this.traceType = _data["traceType"];
34626
+ this.resourceGroupId = _data["resourceGroupId"];
34309
34627
  }
34310
34628
  }
34311
34629
  static fromJS(data) {
@@ -34343,6 +34661,7 @@ export class ProductionOrderBomDto {
34343
34661
  data["availabilityDetails"].push(item.toJSON());
34344
34662
  }
34345
34663
  data["traceType"] = this.traceType;
34664
+ data["resourceGroupId"] = this.resourceGroupId;
34346
34665
  return data;
34347
34666
  }
34348
34667
  }
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.10988",
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;
@@ -40499,6 +40779,138 @@ export interface ISuggestionsItemDto {
40499
40779
 
40500
40780
  export type SuggestionTypeDto = "Other" | "ChipDisposal" | "Garbage";
40501
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
+
40502
40914
  export class MaterialDesciptionDto implements IMaterialDesciptionDto {
40503
40915
  materialId!: string;
40504
40916
  materialName!: string;
@@ -42501,6 +42913,7 @@ export class ProductionOrderBomDto implements IProductionOrderBomDto {
42501
42913
  status!: MaterialStatus;
42502
42914
  availabilityDetails!: InventoryDto[];
42503
42915
  traceType!: TraceType;
42916
+ resourceGroupId?: string | null;
42504
42917
 
42505
42918
  constructor(data?: IProductionOrderBomDto) {
42506
42919
  if (data) {
@@ -42544,6 +42957,7 @@ export class ProductionOrderBomDto implements IProductionOrderBomDto {
42544
42957
  this.availabilityDetails!.push(InventoryDto.fromJS(item));
42545
42958
  }
42546
42959
  this.traceType = _data["traceType"];
42960
+ this.resourceGroupId = _data["resourceGroupId"];
42547
42961
  }
42548
42962
  }
42549
42963
 
@@ -42583,6 +42997,7 @@ export class ProductionOrderBomDto implements IProductionOrderBomDto {
42583
42997
  data["availabilityDetails"].push(item.toJSON());
42584
42998
  }
42585
42999
  data["traceType"] = this.traceType;
43000
+ data["resourceGroupId"] = this.resourceGroupId;
42586
43001
  return data;
42587
43002
  }
42588
43003
  }
@@ -42607,6 +43022,7 @@ export interface IProductionOrderBomDto {
42607
43022
  status: MaterialStatus;
42608
43023
  availabilityDetails: InventoryDto[];
42609
43024
  traceType: TraceType;
43025
+ resourceGroupId?: string | null;
42610
43026
  }
42611
43027
 
42612
43028
  export class InventoryDto implements IInventoryDto {