@ignos/api-client 20241106.0.10666 → 20241108.0.10682

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.
@@ -380,6 +380,7 @@ export interface IMrbClient {
380
380
  getMrbInstance(id: string): Promise<MrbInstanceDto>;
381
381
  listMrbInstanceRevisions(id: string): Promise<MrbInstanceRevisionDto[]>;
382
382
  createMrbRevision(id: string, request: CreateMrbRevisionRequest): Promise<MrbInstanceJobDto>;
383
+ deleteMrbRevision(id: string, revisionId: number): Promise<void>;
383
384
  getMrbRevisionContent(id: string, revisionId: number): Promise<MrbContentDto>;
384
385
  approveMrbRevision(id: string, revisionId: number): Promise<void>;
385
386
  rejectMrbRevision(id: string, revisionId: number): Promise<void>;
@@ -449,6 +450,8 @@ export declare class MrbClient extends AuthorizedApiBase implements IMrbClient {
449
450
  protected processListMrbInstanceRevisions(response: Response): Promise<MrbInstanceRevisionDto[]>;
450
451
  createMrbRevision(id: string, request: CreateMrbRevisionRequest): Promise<MrbInstanceJobDto>;
451
452
  protected processCreateMrbRevision(response: Response): Promise<MrbInstanceJobDto>;
453
+ deleteMrbRevision(id: string, revisionId: number): Promise<void>;
454
+ protected processDeleteMrbRevision(response: Response): Promise<void>;
452
455
  getMrbRevisionContent(id: string, revisionId: number): Promise<MrbContentDto>;
453
456
  protected processGetMrbRevisionContent(response: Response): Promise<MrbContentDto>;
454
457
  approveMrbRevision(id: string, revisionId: number): Promise<void>;
@@ -1683,6 +1686,7 @@ export interface IMesProductionOrderClient {
1683
1686
  getProductionOrderPickListSuggestion(id: string, operation: number | undefined): Promise<PickListSuggestionDto[]>;
1684
1687
  checkProductionOrderForOpenNonConformances(id: string): Promise<boolean>;
1685
1688
  getProductionOrderOpenNonConformances(id: string, onlyOpen: boolean | undefined): Promise<NonConformanceDto[]>;
1689
+ getProductionOrderBomNonConformances(id: string): Promise<NonConformanceDto[]>;
1686
1690
  postMaterialPickList(id: string, operationNumber: number, request: PostMaterialPickListRequest): Promise<MaterialPickListResultDto>;
1687
1691
  listProductionOrderActivities(id: string, operation: number | null | undefined): Promise<ProductionOrderOperationActivityDto[]>;
1688
1692
  getPrintableLabels(request: GeneratePrintableLabel): Promise<DownloadDto>;
@@ -1704,6 +1708,8 @@ export declare class MesProductionOrderClient extends AuthorizedApiBase implemen
1704
1708
  protected processCheckProductionOrderForOpenNonConformances(response: Response): Promise<boolean>;
1705
1709
  getProductionOrderOpenNonConformances(id: string, onlyOpen: boolean | undefined): Promise<NonConformanceDto[]>;
1706
1710
  protected processGetProductionOrderOpenNonConformances(response: Response): Promise<NonConformanceDto[]>;
1711
+ getProductionOrderBomNonConformances(id: string): Promise<NonConformanceDto[]>;
1712
+ protected processGetProductionOrderBomNonConformances(response: Response): Promise<NonConformanceDto[]>;
1707
1713
  postMaterialPickList(id: string, operationNumber: number, request: PostMaterialPickListRequest): Promise<MaterialPickListResultDto>;
1708
1714
  protected processPostMaterialPickList(response: Response): Promise<MaterialPickListResultDto>;
1709
1715
  listProductionOrderActivities(id: string, operation: number | null | undefined): Promise<ProductionOrderOperationActivityDto[]>;
@@ -9044,6 +9050,7 @@ export declare class NonConformanceDto implements INonConformanceDto {
9044
9050
  rootCause?: NonConformanceAttachmentDto | null;
9045
9051
  decision?: NonConformanceAttachmentDto | null;
9046
9052
  correctiveAction?: NonConformanceAttachmentDto | null;
9053
+ workCenter?: WorkCenterDto | null;
9047
9054
  constructor(data?: INonConformanceDto);
9048
9055
  init(_data?: any): void;
9049
9056
  static fromJS(data: any): NonConformanceDto;
@@ -9068,8 +9075,9 @@ export interface INonConformanceDto {
9068
9075
  rootCause?: NonConformanceAttachmentDto | null;
9069
9076
  decision?: NonConformanceAttachmentDto | null;
9070
9077
  correctiveAction?: NonConformanceAttachmentDto | null;
9078
+ workCenter?: WorkCenterDto | null;
9071
9079
  }
9072
- export type NonConformanceType = 1;
9080
+ export type NonConformanceType = 1 | 2;
9073
9081
  export declare class NonConformanceAttachmentDto implements INonConformanceAttachmentDto {
9074
9082
  title?: string | null;
9075
9083
  description?: string | null;
@@ -9086,6 +9094,22 @@ export interface INonConformanceAttachmentDto {
9086
9094
  created?: Date;
9087
9095
  modified?: Date | null;
9088
9096
  }
9097
+ export declare class WorkCenterDto implements IWorkCenterDto {
9098
+ id: string;
9099
+ name: string;
9100
+ workCenterType?: string;
9101
+ department?: DepartmentDto | null;
9102
+ constructor(data?: IWorkCenterDto);
9103
+ init(_data?: any): void;
9104
+ static fromJS(data: any): WorkCenterDto;
9105
+ toJSON(data?: any): any;
9106
+ }
9107
+ export interface IWorkCenterDto {
9108
+ id: string;
9109
+ name: string;
9110
+ workCenterType?: string;
9111
+ department?: DepartmentDto | null;
9112
+ }
9089
9113
  export declare class MaterialPickListResultDto implements IMaterialPickListResultDto {
9090
9114
  results: MaterialPickListResultEntryDto[];
9091
9115
  constructor(data?: IMaterialPickListResultDto);
@@ -2343,6 +2343,44 @@ export class MrbClient extends AuthorizedApiBase {
2343
2343
  }
2344
2344
  return Promise.resolve(null);
2345
2345
  }
2346
+ deleteMrbRevision(id, revisionId) {
2347
+ let url_ = this.baseUrl + "/mrb/{id}/revisions/{revisionId}";
2348
+ if (id === undefined || id === null)
2349
+ throw new Error("The parameter 'id' must be defined.");
2350
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
2351
+ if (revisionId === undefined || revisionId === null)
2352
+ throw new Error("The parameter 'revisionId' must be defined.");
2353
+ url_ = url_.replace("{revisionId}", encodeURIComponent("" + revisionId));
2354
+ url_ = url_.replace(/[?&]$/, "");
2355
+ let options_ = {
2356
+ method: "DELETE",
2357
+ headers: {}
2358
+ };
2359
+ return this.transformOptions(options_).then(transformedOptions_ => {
2360
+ return this.http.fetch(url_, transformedOptions_);
2361
+ }).then((_response) => {
2362
+ return this.processDeleteMrbRevision(_response);
2363
+ });
2364
+ }
2365
+ processDeleteMrbRevision(response) {
2366
+ const status = response.status;
2367
+ let _headers = {};
2368
+ if (response.headers && response.headers.forEach) {
2369
+ response.headers.forEach((v, k) => _headers[k] = v);
2370
+ }
2371
+ ;
2372
+ if (status === 204) {
2373
+ return response.text().then((_responseText) => {
2374
+ return;
2375
+ });
2376
+ }
2377
+ else if (status !== 200 && status !== 204) {
2378
+ return response.text().then((_responseText) => {
2379
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
2380
+ });
2381
+ }
2382
+ return Promise.resolve(null);
2383
+ }
2346
2384
  getMrbRevisionContent(id, revisionId) {
2347
2385
  let url_ = this.baseUrl + "/mrb/{id}/revisions/{revisionId}/content";
2348
2386
  if (id === undefined || id === null)
@@ -13741,6 +13779,50 @@ export class MesProductionOrderClient extends AuthorizedApiBase {
13741
13779
  }
13742
13780
  return Promise.resolve(null);
13743
13781
  }
13782
+ getProductionOrderBomNonConformances(id) {
13783
+ let url_ = this.baseUrl + "/mes/productionorders/{id}/bom/nonconformances";
13784
+ if (id === undefined || id === null)
13785
+ throw new Error("The parameter 'id' must be defined.");
13786
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
13787
+ url_ = url_.replace(/[?&]$/, "");
13788
+ let options_ = {
13789
+ method: "GET",
13790
+ headers: {
13791
+ "Accept": "application/json"
13792
+ }
13793
+ };
13794
+ return this.transformOptions(options_).then(transformedOptions_ => {
13795
+ return this.http.fetch(url_, transformedOptions_);
13796
+ }).then((_response) => {
13797
+ return this.processGetProductionOrderBomNonConformances(_response);
13798
+ });
13799
+ }
13800
+ processGetProductionOrderBomNonConformances(response) {
13801
+ const status = response.status;
13802
+ let _headers = {};
13803
+ if (response.headers && response.headers.forEach) {
13804
+ response.headers.forEach((v, k) => _headers[k] = v);
13805
+ }
13806
+ ;
13807
+ if (status === 200) {
13808
+ return response.text().then((_responseText) => {
13809
+ let result200 = null;
13810
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
13811
+ if (Array.isArray(resultData200)) {
13812
+ result200 = [];
13813
+ for (let item of resultData200)
13814
+ result200.push(NonConformanceDto.fromJS(item));
13815
+ }
13816
+ return result200;
13817
+ });
13818
+ }
13819
+ else if (status !== 200 && status !== 204) {
13820
+ return response.text().then((_responseText) => {
13821
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
13822
+ });
13823
+ }
13824
+ return Promise.resolve(null);
13825
+ }
13744
13826
  postMaterialPickList(id, operationNumber, request) {
13745
13827
  let url_ = this.baseUrl + "/mes/productionorders/{id}/operations/{operationNumber}/picklist";
13746
13828
  if (id === undefined || id === null)
@@ -33285,6 +33367,7 @@ export class NonConformanceDto {
33285
33367
  this.rootCause = _data["rootCause"] ? NonConformanceAttachmentDto.fromJS(_data["rootCause"]) : undefined;
33286
33368
  this.decision = _data["decision"] ? NonConformanceAttachmentDto.fromJS(_data["decision"]) : undefined;
33287
33369
  this.correctiveAction = _data["correctiveAction"] ? NonConformanceAttachmentDto.fromJS(_data["correctiveAction"]) : undefined;
33370
+ this.workCenter = _data["workCenter"] ? WorkCenterDto.fromJS(_data["workCenter"]) : undefined;
33288
33371
  }
33289
33372
  }
33290
33373
  static fromJS(data) {
@@ -33313,6 +33396,7 @@ export class NonConformanceDto {
33313
33396
  data["rootCause"] = this.rootCause ? this.rootCause.toJSON() : undefined;
33314
33397
  data["decision"] = this.decision ? this.decision.toJSON() : undefined;
33315
33398
  data["correctiveAction"] = this.correctiveAction ? this.correctiveAction.toJSON() : undefined;
33399
+ data["workCenter"] = this.workCenter ? this.workCenter.toJSON() : undefined;
33316
33400
  return data;
33317
33401
  }
33318
33402
  }
@@ -33348,6 +33432,38 @@ export class NonConformanceAttachmentDto {
33348
33432
  return data;
33349
33433
  }
33350
33434
  }
33435
+ export class WorkCenterDto {
33436
+ constructor(data) {
33437
+ if (data) {
33438
+ for (var property in data) {
33439
+ if (data.hasOwnProperty(property))
33440
+ this[property] = data[property];
33441
+ }
33442
+ }
33443
+ }
33444
+ init(_data) {
33445
+ if (_data) {
33446
+ this.id = _data["id"];
33447
+ this.name = _data["name"];
33448
+ this.workCenterType = _data["workCenterType"];
33449
+ this.department = _data["department"] ? DepartmentDto.fromJS(_data["department"]) : undefined;
33450
+ }
33451
+ }
33452
+ static fromJS(data) {
33453
+ data = typeof data === 'object' ? data : {};
33454
+ let result = new WorkCenterDto();
33455
+ result.init(data);
33456
+ return result;
33457
+ }
33458
+ toJSON(data) {
33459
+ data = typeof data === 'object' ? data : {};
33460
+ data["id"] = this.id;
33461
+ data["name"] = this.name;
33462
+ data["workCenterType"] = this.workCenterType;
33463
+ data["department"] = this.department ? this.department.toJSON() : undefined;
33464
+ return data;
33465
+ }
33466
+ }
33351
33467
  export class MaterialPickListResultDto {
33352
33468
  constructor(data) {
33353
33469
  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": "20241108.0.10682",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -2308,6 +2308,8 @@ export interface IMrbClient {
2308
2308
 
2309
2309
  createMrbRevision(id: string, request: CreateMrbRevisionRequest): Promise<MrbInstanceJobDto>;
2310
2310
 
2311
+ deleteMrbRevision(id: string, revisionId: number): Promise<void>;
2312
+
2311
2313
  getMrbRevisionContent(id: string, revisionId: number): Promise<MrbContentDto>;
2312
2314
 
2313
2315
  approveMrbRevision(id: string, revisionId: number): Promise<void>;
@@ -2643,6 +2645,44 @@ export class MrbClient extends AuthorizedApiBase implements IMrbClient {
2643
2645
  return Promise.resolve<MrbInstanceJobDto>(null as any);
2644
2646
  }
2645
2647
 
2648
+ deleteMrbRevision(id: string, revisionId: number): Promise<void> {
2649
+ let url_ = this.baseUrl + "/mrb/{id}/revisions/{revisionId}";
2650
+ if (id === undefined || id === null)
2651
+ throw new Error("The parameter 'id' must be defined.");
2652
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
2653
+ if (revisionId === undefined || revisionId === null)
2654
+ throw new Error("The parameter 'revisionId' must be defined.");
2655
+ url_ = url_.replace("{revisionId}", encodeURIComponent("" + revisionId));
2656
+ url_ = url_.replace(/[?&]$/, "");
2657
+
2658
+ let options_: RequestInit = {
2659
+ method: "DELETE",
2660
+ headers: {
2661
+ }
2662
+ };
2663
+
2664
+ return this.transformOptions(options_).then(transformedOptions_ => {
2665
+ return this.http.fetch(url_, transformedOptions_);
2666
+ }).then((_response: Response) => {
2667
+ return this.processDeleteMrbRevision(_response);
2668
+ });
2669
+ }
2670
+
2671
+ protected processDeleteMrbRevision(response: Response): Promise<void> {
2672
+ const status = response.status;
2673
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
2674
+ if (status === 204) {
2675
+ return response.text().then((_responseText) => {
2676
+ return;
2677
+ });
2678
+ } else if (status !== 200 && status !== 204) {
2679
+ return response.text().then((_responseText) => {
2680
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
2681
+ });
2682
+ }
2683
+ return Promise.resolve<void>(null as any);
2684
+ }
2685
+
2646
2686
  getMrbRevisionContent(id: string, revisionId: number): Promise<MrbContentDto> {
2647
2687
  let url_ = this.baseUrl + "/mrb/{id}/revisions/{revisionId}/content";
2648
2688
  if (id === undefined || id === null)
@@ -14474,6 +14514,8 @@ export interface IMesProductionOrderClient {
14474
14514
 
14475
14515
  getProductionOrderOpenNonConformances(id: string, onlyOpen: boolean | undefined): Promise<NonConformanceDto[]>;
14476
14516
 
14517
+ getProductionOrderBomNonConformances(id: string): Promise<NonConformanceDto[]>;
14518
+
14477
14519
  postMaterialPickList(id: string, operationNumber: number, request: PostMaterialPickListRequest): Promise<MaterialPickListResultDto>;
14478
14520
 
14479
14521
  listProductionOrderActivities(id: string, operation: number | null | undefined): Promise<ProductionOrderOperationActivityDto[]>;
@@ -14710,6 +14752,49 @@ export class MesProductionOrderClient extends AuthorizedApiBase implements IMesP
14710
14752
  return Promise.resolve<NonConformanceDto[]>(null as any);
14711
14753
  }
14712
14754
 
14755
+ getProductionOrderBomNonConformances(id: string): Promise<NonConformanceDto[]> {
14756
+ let url_ = this.baseUrl + "/mes/productionorders/{id}/bom/nonconformances";
14757
+ if (id === undefined || id === null)
14758
+ throw new Error("The parameter 'id' must be defined.");
14759
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
14760
+ url_ = url_.replace(/[?&]$/, "");
14761
+
14762
+ let options_: RequestInit = {
14763
+ method: "GET",
14764
+ headers: {
14765
+ "Accept": "application/json"
14766
+ }
14767
+ };
14768
+
14769
+ return this.transformOptions(options_).then(transformedOptions_ => {
14770
+ return this.http.fetch(url_, transformedOptions_);
14771
+ }).then((_response: Response) => {
14772
+ return this.processGetProductionOrderBomNonConformances(_response);
14773
+ });
14774
+ }
14775
+
14776
+ protected processGetProductionOrderBomNonConformances(response: Response): Promise<NonConformanceDto[]> {
14777
+ const status = response.status;
14778
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
14779
+ if (status === 200) {
14780
+ return response.text().then((_responseText) => {
14781
+ let result200: any = null;
14782
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
14783
+ if (Array.isArray(resultData200)) {
14784
+ result200 = [] as any;
14785
+ for (let item of resultData200)
14786
+ result200!.push(NonConformanceDto.fromJS(item));
14787
+ }
14788
+ return result200;
14789
+ });
14790
+ } else if (status !== 200 && status !== 204) {
14791
+ return response.text().then((_responseText) => {
14792
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
14793
+ });
14794
+ }
14795
+ return Promise.resolve<NonConformanceDto[]>(null as any);
14796
+ }
14797
+
14713
14798
  postMaterialPickList(id: string, operationNumber: number, request: PostMaterialPickListRequest): Promise<MaterialPickListResultDto> {
14714
14799
  let url_ = this.baseUrl + "/mes/productionorders/{id}/operations/{operationNumber}/picklist";
14715
14800
  if (id === undefined || id === null)
@@ -41268,6 +41353,7 @@ export class NonConformanceDto implements INonConformanceDto {
41268
41353
  rootCause?: NonConformanceAttachmentDto | null;
41269
41354
  decision?: NonConformanceAttachmentDto | null;
41270
41355
  correctiveAction?: NonConformanceAttachmentDto | null;
41356
+ workCenter?: WorkCenterDto | null;
41271
41357
 
41272
41358
  constructor(data?: INonConformanceDto) {
41273
41359
  if (data) {
@@ -41298,6 +41384,7 @@ export class NonConformanceDto implements INonConformanceDto {
41298
41384
  this.rootCause = _data["rootCause"] ? NonConformanceAttachmentDto.fromJS(_data["rootCause"]) : <any>undefined;
41299
41385
  this.decision = _data["decision"] ? NonConformanceAttachmentDto.fromJS(_data["decision"]) : <any>undefined;
41300
41386
  this.correctiveAction = _data["correctiveAction"] ? NonConformanceAttachmentDto.fromJS(_data["correctiveAction"]) : <any>undefined;
41387
+ this.workCenter = _data["workCenter"] ? WorkCenterDto.fromJS(_data["workCenter"]) : <any>undefined;
41301
41388
  }
41302
41389
  }
41303
41390
 
@@ -41328,6 +41415,7 @@ export class NonConformanceDto implements INonConformanceDto {
41328
41415
  data["rootCause"] = this.rootCause ? this.rootCause.toJSON() : <any>undefined;
41329
41416
  data["decision"] = this.decision ? this.decision.toJSON() : <any>undefined;
41330
41417
  data["correctiveAction"] = this.correctiveAction ? this.correctiveAction.toJSON() : <any>undefined;
41418
+ data["workCenter"] = this.workCenter ? this.workCenter.toJSON() : <any>undefined;
41331
41419
  return data;
41332
41420
  }
41333
41421
  }
@@ -41351,9 +41439,10 @@ export interface INonConformanceDto {
41351
41439
  rootCause?: NonConformanceAttachmentDto | null;
41352
41440
  decision?: NonConformanceAttachmentDto | null;
41353
41441
  correctiveAction?: NonConformanceAttachmentDto | null;
41442
+ workCenter?: WorkCenterDto | null;
41354
41443
  }
41355
41444
 
41356
- export type NonConformanceType = 1;
41445
+ export type NonConformanceType = 1 | 2;
41357
41446
 
41358
41447
  export class NonConformanceAttachmentDto implements INonConformanceAttachmentDto {
41359
41448
  title?: string | null;
@@ -41403,6 +41492,54 @@ export interface INonConformanceAttachmentDto {
41403
41492
  modified?: Date | null;
41404
41493
  }
41405
41494
 
41495
+ export class WorkCenterDto implements IWorkCenterDto {
41496
+ id!: string;
41497
+ name!: string;
41498
+ workCenterType?: string;
41499
+ department?: DepartmentDto | null;
41500
+
41501
+ constructor(data?: IWorkCenterDto) {
41502
+ if (data) {
41503
+ for (var property in data) {
41504
+ if (data.hasOwnProperty(property))
41505
+ (<any>this)[property] = (<any>data)[property];
41506
+ }
41507
+ }
41508
+ }
41509
+
41510
+ init(_data?: any) {
41511
+ if (_data) {
41512
+ this.id = _data["id"];
41513
+ this.name = _data["name"];
41514
+ this.workCenterType = _data["workCenterType"];
41515
+ this.department = _data["department"] ? DepartmentDto.fromJS(_data["department"]) : <any>undefined;
41516
+ }
41517
+ }
41518
+
41519
+ static fromJS(data: any): WorkCenterDto {
41520
+ data = typeof data === 'object' ? data : {};
41521
+ let result = new WorkCenterDto();
41522
+ result.init(data);
41523
+ return result;
41524
+ }
41525
+
41526
+ toJSON(data?: any) {
41527
+ data = typeof data === 'object' ? data : {};
41528
+ data["id"] = this.id;
41529
+ data["name"] = this.name;
41530
+ data["workCenterType"] = this.workCenterType;
41531
+ data["department"] = this.department ? this.department.toJSON() : <any>undefined;
41532
+ return data;
41533
+ }
41534
+ }
41535
+
41536
+ export interface IWorkCenterDto {
41537
+ id: string;
41538
+ name: string;
41539
+ workCenterType?: string;
41540
+ department?: DepartmentDto | null;
41541
+ }
41542
+
41406
41543
  export class MaterialPickListResultDto implements IMaterialPickListResultDto {
41407
41544
  results!: MaterialPickListResultEntryDto[];
41408
41545