@ignos/api-client 20241106.0.10666 → 20241106.0.10670

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.
@@ -1683,6 +1683,7 @@ export interface IMesProductionOrderClient {
1683
1683
  getProductionOrderPickListSuggestion(id: string, operation: number | undefined): Promise<PickListSuggestionDto[]>;
1684
1684
  checkProductionOrderForOpenNonConformances(id: string): Promise<boolean>;
1685
1685
  getProductionOrderOpenNonConformances(id: string, onlyOpen: boolean | undefined): Promise<NonConformanceDto[]>;
1686
+ getProductionOrderBomNonConformances(id: string): Promise<NonConformanceDto[]>;
1686
1687
  postMaterialPickList(id: string, operationNumber: number, request: PostMaterialPickListRequest): Promise<MaterialPickListResultDto>;
1687
1688
  listProductionOrderActivities(id: string, operation: number | null | undefined): Promise<ProductionOrderOperationActivityDto[]>;
1688
1689
  getPrintableLabels(request: GeneratePrintableLabel): Promise<DownloadDto>;
@@ -1704,6 +1705,8 @@ export declare class MesProductionOrderClient extends AuthorizedApiBase implemen
1704
1705
  protected processCheckProductionOrderForOpenNonConformances(response: Response): Promise<boolean>;
1705
1706
  getProductionOrderOpenNonConformances(id: string, onlyOpen: boolean | undefined): Promise<NonConformanceDto[]>;
1706
1707
  protected processGetProductionOrderOpenNonConformances(response: Response): Promise<NonConformanceDto[]>;
1708
+ getProductionOrderBomNonConformances(id: string): Promise<NonConformanceDto[]>;
1709
+ protected processGetProductionOrderBomNonConformances(response: Response): Promise<NonConformanceDto[]>;
1707
1710
  postMaterialPickList(id: string, operationNumber: number, request: PostMaterialPickListRequest): Promise<MaterialPickListResultDto>;
1708
1711
  protected processPostMaterialPickList(response: Response): Promise<MaterialPickListResultDto>;
1709
1712
  listProductionOrderActivities(id: string, operation: number | null | undefined): Promise<ProductionOrderOperationActivityDto[]>;
@@ -9044,6 +9047,7 @@ export declare class NonConformanceDto implements INonConformanceDto {
9044
9047
  rootCause?: NonConformanceAttachmentDto | null;
9045
9048
  decision?: NonConformanceAttachmentDto | null;
9046
9049
  correctiveAction?: NonConformanceAttachmentDto | null;
9050
+ workCenter?: WorkCenterDto | null;
9047
9051
  constructor(data?: INonConformanceDto);
9048
9052
  init(_data?: any): void;
9049
9053
  static fromJS(data: any): NonConformanceDto;
@@ -9068,8 +9072,9 @@ export interface INonConformanceDto {
9068
9072
  rootCause?: NonConformanceAttachmentDto | null;
9069
9073
  decision?: NonConformanceAttachmentDto | null;
9070
9074
  correctiveAction?: NonConformanceAttachmentDto | null;
9075
+ workCenter?: WorkCenterDto | null;
9071
9076
  }
9072
- export type NonConformanceType = 1;
9077
+ export type NonConformanceType = 1 | 2;
9073
9078
  export declare class NonConformanceAttachmentDto implements INonConformanceAttachmentDto {
9074
9079
  title?: string | null;
9075
9080
  description?: string | null;
@@ -9086,6 +9091,22 @@ export interface INonConformanceAttachmentDto {
9086
9091
  created?: Date;
9087
9092
  modified?: Date | null;
9088
9093
  }
9094
+ export declare class WorkCenterDto implements IWorkCenterDto {
9095
+ id: string;
9096
+ name: string;
9097
+ workCenterType?: string;
9098
+ department?: DepartmentDto | null;
9099
+ constructor(data?: IWorkCenterDto);
9100
+ init(_data?: any): void;
9101
+ static fromJS(data: any): WorkCenterDto;
9102
+ toJSON(data?: any): any;
9103
+ }
9104
+ export interface IWorkCenterDto {
9105
+ id: string;
9106
+ name: string;
9107
+ workCenterType?: string;
9108
+ department?: DepartmentDto | null;
9109
+ }
9089
9110
  export declare class MaterialPickListResultDto implements IMaterialPickListResultDto {
9090
9111
  results: MaterialPickListResultEntryDto[];
9091
9112
  constructor(data?: IMaterialPickListResultDto);
@@ -13741,6 +13741,50 @@ export class MesProductionOrderClient extends AuthorizedApiBase {
13741
13741
  }
13742
13742
  return Promise.resolve(null);
13743
13743
  }
13744
+ getProductionOrderBomNonConformances(id) {
13745
+ let url_ = this.baseUrl + "/mes/productionorders/{id}/bom/nonconformances";
13746
+ if (id === undefined || id === null)
13747
+ throw new Error("The parameter 'id' must be defined.");
13748
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
13749
+ url_ = url_.replace(/[?&]$/, "");
13750
+ let options_ = {
13751
+ method: "GET",
13752
+ headers: {
13753
+ "Accept": "application/json"
13754
+ }
13755
+ };
13756
+ return this.transformOptions(options_).then(transformedOptions_ => {
13757
+ return this.http.fetch(url_, transformedOptions_);
13758
+ }).then((_response) => {
13759
+ return this.processGetProductionOrderBomNonConformances(_response);
13760
+ });
13761
+ }
13762
+ processGetProductionOrderBomNonConformances(response) {
13763
+ const status = response.status;
13764
+ let _headers = {};
13765
+ if (response.headers && response.headers.forEach) {
13766
+ response.headers.forEach((v, k) => _headers[k] = v);
13767
+ }
13768
+ ;
13769
+ if (status === 200) {
13770
+ return response.text().then((_responseText) => {
13771
+ let result200 = null;
13772
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
13773
+ if (Array.isArray(resultData200)) {
13774
+ result200 = [];
13775
+ for (let item of resultData200)
13776
+ result200.push(NonConformanceDto.fromJS(item));
13777
+ }
13778
+ return result200;
13779
+ });
13780
+ }
13781
+ else if (status !== 200 && status !== 204) {
13782
+ return response.text().then((_responseText) => {
13783
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
13784
+ });
13785
+ }
13786
+ return Promise.resolve(null);
13787
+ }
13744
13788
  postMaterialPickList(id, operationNumber, request) {
13745
13789
  let url_ = this.baseUrl + "/mes/productionorders/{id}/operations/{operationNumber}/picklist";
13746
13790
  if (id === undefined || id === null)
@@ -33285,6 +33329,7 @@ export class NonConformanceDto {
33285
33329
  this.rootCause = _data["rootCause"] ? NonConformanceAttachmentDto.fromJS(_data["rootCause"]) : undefined;
33286
33330
  this.decision = _data["decision"] ? NonConformanceAttachmentDto.fromJS(_data["decision"]) : undefined;
33287
33331
  this.correctiveAction = _data["correctiveAction"] ? NonConformanceAttachmentDto.fromJS(_data["correctiveAction"]) : undefined;
33332
+ this.workCenter = _data["workCenter"] ? WorkCenterDto.fromJS(_data["workCenter"]) : undefined;
33288
33333
  }
33289
33334
  }
33290
33335
  static fromJS(data) {
@@ -33313,6 +33358,7 @@ export class NonConformanceDto {
33313
33358
  data["rootCause"] = this.rootCause ? this.rootCause.toJSON() : undefined;
33314
33359
  data["decision"] = this.decision ? this.decision.toJSON() : undefined;
33315
33360
  data["correctiveAction"] = this.correctiveAction ? this.correctiveAction.toJSON() : undefined;
33361
+ data["workCenter"] = this.workCenter ? this.workCenter.toJSON() : undefined;
33316
33362
  return data;
33317
33363
  }
33318
33364
  }
@@ -33348,6 +33394,38 @@ export class NonConformanceAttachmentDto {
33348
33394
  return data;
33349
33395
  }
33350
33396
  }
33397
+ export class WorkCenterDto {
33398
+ constructor(data) {
33399
+ if (data) {
33400
+ for (var property in data) {
33401
+ if (data.hasOwnProperty(property))
33402
+ this[property] = data[property];
33403
+ }
33404
+ }
33405
+ }
33406
+ init(_data) {
33407
+ if (_data) {
33408
+ this.id = _data["id"];
33409
+ this.name = _data["name"];
33410
+ this.workCenterType = _data["workCenterType"];
33411
+ this.department = _data["department"] ? DepartmentDto.fromJS(_data["department"]) : undefined;
33412
+ }
33413
+ }
33414
+ static fromJS(data) {
33415
+ data = typeof data === 'object' ? data : {};
33416
+ let result = new WorkCenterDto();
33417
+ result.init(data);
33418
+ return result;
33419
+ }
33420
+ toJSON(data) {
33421
+ data = typeof data === 'object' ? data : {};
33422
+ data["id"] = this.id;
33423
+ data["name"] = this.name;
33424
+ data["workCenterType"] = this.workCenterType;
33425
+ data["department"] = this.department ? this.department.toJSON() : undefined;
33426
+ return data;
33427
+ }
33428
+ }
33351
33429
  export class MaterialPickListResultDto {
33352
33430
  constructor(data) {
33353
33431
  if (data) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20241106.0.10666",
3
+ "version": "20241106.0.10670",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -14474,6 +14474,8 @@ export interface IMesProductionOrderClient {
14474
14474
 
14475
14475
  getProductionOrderOpenNonConformances(id: string, onlyOpen: boolean | undefined): Promise<NonConformanceDto[]>;
14476
14476
 
14477
+ getProductionOrderBomNonConformances(id: string): Promise<NonConformanceDto[]>;
14478
+
14477
14479
  postMaterialPickList(id: string, operationNumber: number, request: PostMaterialPickListRequest): Promise<MaterialPickListResultDto>;
14478
14480
 
14479
14481
  listProductionOrderActivities(id: string, operation: number | null | undefined): Promise<ProductionOrderOperationActivityDto[]>;
@@ -14710,6 +14712,49 @@ export class MesProductionOrderClient extends AuthorizedApiBase implements IMesP
14710
14712
  return Promise.resolve<NonConformanceDto[]>(null as any);
14711
14713
  }
14712
14714
 
14715
+ getProductionOrderBomNonConformances(id: string): Promise<NonConformanceDto[]> {
14716
+ let url_ = this.baseUrl + "/mes/productionorders/{id}/bom/nonconformances";
14717
+ if (id === undefined || id === null)
14718
+ throw new Error("The parameter 'id' must be defined.");
14719
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
14720
+ url_ = url_.replace(/[?&]$/, "");
14721
+
14722
+ let options_: RequestInit = {
14723
+ method: "GET",
14724
+ headers: {
14725
+ "Accept": "application/json"
14726
+ }
14727
+ };
14728
+
14729
+ return this.transformOptions(options_).then(transformedOptions_ => {
14730
+ return this.http.fetch(url_, transformedOptions_);
14731
+ }).then((_response: Response) => {
14732
+ return this.processGetProductionOrderBomNonConformances(_response);
14733
+ });
14734
+ }
14735
+
14736
+ protected processGetProductionOrderBomNonConformances(response: Response): Promise<NonConformanceDto[]> {
14737
+ const status = response.status;
14738
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
14739
+ if (status === 200) {
14740
+ return response.text().then((_responseText) => {
14741
+ let result200: any = null;
14742
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
14743
+ if (Array.isArray(resultData200)) {
14744
+ result200 = [] as any;
14745
+ for (let item of resultData200)
14746
+ result200!.push(NonConformanceDto.fromJS(item));
14747
+ }
14748
+ return result200;
14749
+ });
14750
+ } else if (status !== 200 && status !== 204) {
14751
+ return response.text().then((_responseText) => {
14752
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
14753
+ });
14754
+ }
14755
+ return Promise.resolve<NonConformanceDto[]>(null as any);
14756
+ }
14757
+
14713
14758
  postMaterialPickList(id: string, operationNumber: number, request: PostMaterialPickListRequest): Promise<MaterialPickListResultDto> {
14714
14759
  let url_ = this.baseUrl + "/mes/productionorders/{id}/operations/{operationNumber}/picklist";
14715
14760
  if (id === undefined || id === null)
@@ -41268,6 +41313,7 @@ export class NonConformanceDto implements INonConformanceDto {
41268
41313
  rootCause?: NonConformanceAttachmentDto | null;
41269
41314
  decision?: NonConformanceAttachmentDto | null;
41270
41315
  correctiveAction?: NonConformanceAttachmentDto | null;
41316
+ workCenter?: WorkCenterDto | null;
41271
41317
 
41272
41318
  constructor(data?: INonConformanceDto) {
41273
41319
  if (data) {
@@ -41298,6 +41344,7 @@ export class NonConformanceDto implements INonConformanceDto {
41298
41344
  this.rootCause = _data["rootCause"] ? NonConformanceAttachmentDto.fromJS(_data["rootCause"]) : <any>undefined;
41299
41345
  this.decision = _data["decision"] ? NonConformanceAttachmentDto.fromJS(_data["decision"]) : <any>undefined;
41300
41346
  this.correctiveAction = _data["correctiveAction"] ? NonConformanceAttachmentDto.fromJS(_data["correctiveAction"]) : <any>undefined;
41347
+ this.workCenter = _data["workCenter"] ? WorkCenterDto.fromJS(_data["workCenter"]) : <any>undefined;
41301
41348
  }
41302
41349
  }
41303
41350
 
@@ -41328,6 +41375,7 @@ export class NonConformanceDto implements INonConformanceDto {
41328
41375
  data["rootCause"] = this.rootCause ? this.rootCause.toJSON() : <any>undefined;
41329
41376
  data["decision"] = this.decision ? this.decision.toJSON() : <any>undefined;
41330
41377
  data["correctiveAction"] = this.correctiveAction ? this.correctiveAction.toJSON() : <any>undefined;
41378
+ data["workCenter"] = this.workCenter ? this.workCenter.toJSON() : <any>undefined;
41331
41379
  return data;
41332
41380
  }
41333
41381
  }
@@ -41351,9 +41399,10 @@ export interface INonConformanceDto {
41351
41399
  rootCause?: NonConformanceAttachmentDto | null;
41352
41400
  decision?: NonConformanceAttachmentDto | null;
41353
41401
  correctiveAction?: NonConformanceAttachmentDto | null;
41402
+ workCenter?: WorkCenterDto | null;
41354
41403
  }
41355
41404
 
41356
- export type NonConformanceType = 1;
41405
+ export type NonConformanceType = 1 | 2;
41357
41406
 
41358
41407
  export class NonConformanceAttachmentDto implements INonConformanceAttachmentDto {
41359
41408
  title?: string | null;
@@ -41403,6 +41452,54 @@ export interface INonConformanceAttachmentDto {
41403
41452
  modified?: Date | null;
41404
41453
  }
41405
41454
 
41455
+ export class WorkCenterDto implements IWorkCenterDto {
41456
+ id!: string;
41457
+ name!: string;
41458
+ workCenterType?: string;
41459
+ department?: DepartmentDto | null;
41460
+
41461
+ constructor(data?: IWorkCenterDto) {
41462
+ if (data) {
41463
+ for (var property in data) {
41464
+ if (data.hasOwnProperty(property))
41465
+ (<any>this)[property] = (<any>data)[property];
41466
+ }
41467
+ }
41468
+ }
41469
+
41470
+ init(_data?: any) {
41471
+ if (_data) {
41472
+ this.id = _data["id"];
41473
+ this.name = _data["name"];
41474
+ this.workCenterType = _data["workCenterType"];
41475
+ this.department = _data["department"] ? DepartmentDto.fromJS(_data["department"]) : <any>undefined;
41476
+ }
41477
+ }
41478
+
41479
+ static fromJS(data: any): WorkCenterDto {
41480
+ data = typeof data === 'object' ? data : {};
41481
+ let result = new WorkCenterDto();
41482
+ result.init(data);
41483
+ return result;
41484
+ }
41485
+
41486
+ toJSON(data?: any) {
41487
+ data = typeof data === 'object' ? data : {};
41488
+ data["id"] = this.id;
41489
+ data["name"] = this.name;
41490
+ data["workCenterType"] = this.workCenterType;
41491
+ data["department"] = this.department ? this.department.toJSON() : <any>undefined;
41492
+ return data;
41493
+ }
41494
+ }
41495
+
41496
+ export interface IWorkCenterDto {
41497
+ id: string;
41498
+ name: string;
41499
+ workCenterType?: string;
41500
+ department?: DepartmentDto | null;
41501
+ }
41502
+
41406
41503
  export class MaterialPickListResultDto implements IMaterialPickListResultDto {
41407
41504
  results!: MaterialPickListResultEntryDto[];
41408
41505