@ignos/api-client 20241106.0.10663 → 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.
@@ -1506,7 +1506,8 @@ export declare class MoveBookingClient extends AuthorizedApiBase implements IMov
1506
1506
  export interface IMoveLocationsClient {
1507
1507
  searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | null | undefined, locationProfiles: LocationProfileDto[] | null | undefined): Promise<LocationDto[]>;
1508
1508
  suggestionsLocations(locationProfiles: LocationProfileDto[] | null | undefined, count: number | undefined): Promise<LocationDto[]>;
1509
- suggestionsParcel(parcelId: string | undefined): Promise<SuggestionsResponseDto>;
1509
+ suggestionsParcel(parcelId: string[] | undefined): Promise<SuggestionsResponseDto>;
1510
+ suggestionsGeneral(suggestionType: SuggestionTypeDto | undefined): Promise<SuggestionsItemDto>;
1510
1511
  }
1511
1512
  export declare class MoveLocationsClient extends AuthorizedApiBase implements IMoveLocationsClient {
1512
1513
  private http;
@@ -1519,8 +1520,10 @@ export declare class MoveLocationsClient extends AuthorizedApiBase implements IM
1519
1520
  protected processSearchLocations(response: Response): Promise<LocationDto[]>;
1520
1521
  suggestionsLocations(locationProfiles: LocationProfileDto[] | null | undefined, count: number | undefined): Promise<LocationDto[]>;
1521
1522
  protected processSuggestionsLocations(response: Response): Promise<LocationDto[]>;
1522
- suggestionsParcel(parcelId: string | undefined): Promise<SuggestionsResponseDto>;
1523
+ suggestionsParcel(parcelId: string[] | undefined): Promise<SuggestionsResponseDto>;
1523
1524
  protected processSuggestionsParcel(response: Response): Promise<SuggestionsResponseDto>;
1525
+ suggestionsGeneral(suggestionType: SuggestionTypeDto | undefined): Promise<SuggestionsItemDto>;
1526
+ protected processSuggestionsGeneral(response: Response): Promise<SuggestionsItemDto>;
1524
1527
  }
1525
1528
  export interface IMoveMaterialsClient {
1526
1529
  listMaterials(): Promise<MaterialDesciptionDto[]>;
@@ -1680,6 +1683,7 @@ export interface IMesProductionOrderClient {
1680
1683
  getProductionOrderPickListSuggestion(id: string, operation: number | undefined): Promise<PickListSuggestionDto[]>;
1681
1684
  checkProductionOrderForOpenNonConformances(id: string): Promise<boolean>;
1682
1685
  getProductionOrderOpenNonConformances(id: string, onlyOpen: boolean | undefined): Promise<NonConformanceDto[]>;
1686
+ getProductionOrderBomNonConformances(id: string): Promise<NonConformanceDto[]>;
1683
1687
  postMaterialPickList(id: string, operationNumber: number, request: PostMaterialPickListRequest): Promise<MaterialPickListResultDto>;
1684
1688
  listProductionOrderActivities(id: string, operation: number | null | undefined): Promise<ProductionOrderOperationActivityDto[]>;
1685
1689
  getPrintableLabels(request: GeneratePrintableLabel): Promise<DownloadDto>;
@@ -1701,6 +1705,8 @@ export declare class MesProductionOrderClient extends AuthorizedApiBase implemen
1701
1705
  protected processCheckProductionOrderForOpenNonConformances(response: Response): Promise<boolean>;
1702
1706
  getProductionOrderOpenNonConformances(id: string, onlyOpen: boolean | undefined): Promise<NonConformanceDto[]>;
1703
1707
  protected processGetProductionOrderOpenNonConformances(response: Response): Promise<NonConformanceDto[]>;
1708
+ getProductionOrderBomNonConformances(id: string): Promise<NonConformanceDto[]>;
1709
+ protected processGetProductionOrderBomNonConformances(response: Response): Promise<NonConformanceDto[]>;
1704
1710
  postMaterialPickList(id: string, operationNumber: number, request: PostMaterialPickListRequest): Promise<MaterialPickListResultDto>;
1705
1711
  protected processPostMaterialPickList(response: Response): Promise<MaterialPickListResultDto>;
1706
1712
  listProductionOrderActivities(id: string, operation: number | null | undefined): Promise<ProductionOrderOperationActivityDto[]>;
@@ -8292,7 +8298,7 @@ export interface ISuggestionsParcelDto {
8292
8298
  items: SuggestionsItemDto[];
8293
8299
  }
8294
8300
  export declare class SuggestionsItemDto implements ISuggestionsItemDto {
8295
- trackingId: string;
8301
+ trackingId?: string | null;
8296
8302
  fromAutoFill?: LocationDto | null;
8297
8303
  toAutoFill?: LocationDto | null;
8298
8304
  fromSuggestions: LocationDto[];
@@ -8303,12 +8309,13 @@ export declare class SuggestionsItemDto implements ISuggestionsItemDto {
8303
8309
  toJSON(data?: any): any;
8304
8310
  }
8305
8311
  export interface ISuggestionsItemDto {
8306
- trackingId: string;
8312
+ trackingId?: string | null;
8307
8313
  fromAutoFill?: LocationDto | null;
8308
8314
  toAutoFill?: LocationDto | null;
8309
8315
  fromSuggestions: LocationDto[];
8310
8316
  toSuggestions: LocationDto[];
8311
8317
  }
8318
+ export type SuggestionTypeDto = "Other" | "ChipDisposal" | "Garbage";
8312
8319
  export declare class MaterialDesciptionDto implements IMaterialDesciptionDto {
8313
8320
  materialId: string;
8314
8321
  materialName: string;
@@ -9040,6 +9047,7 @@ export declare class NonConformanceDto implements INonConformanceDto {
9040
9047
  rootCause?: NonConformanceAttachmentDto | null;
9041
9048
  decision?: NonConformanceAttachmentDto | null;
9042
9049
  correctiveAction?: NonConformanceAttachmentDto | null;
9050
+ workCenter?: WorkCenterDto | null;
9043
9051
  constructor(data?: INonConformanceDto);
9044
9052
  init(_data?: any): void;
9045
9053
  static fromJS(data: any): NonConformanceDto;
@@ -9064,8 +9072,9 @@ export interface INonConformanceDto {
9064
9072
  rootCause?: NonConformanceAttachmentDto | null;
9065
9073
  decision?: NonConformanceAttachmentDto | null;
9066
9074
  correctiveAction?: NonConformanceAttachmentDto | null;
9075
+ workCenter?: WorkCenterDto | null;
9067
9076
  }
9068
- export type NonConformanceType = 1;
9077
+ export type NonConformanceType = 1 | 2;
9069
9078
  export declare class NonConformanceAttachmentDto implements INonConformanceAttachmentDto {
9070
9079
  title?: string | null;
9071
9080
  description?: string | null;
@@ -9082,6 +9091,22 @@ export interface INonConformanceAttachmentDto {
9082
9091
  created?: Date;
9083
9092
  modified?: Date | null;
9084
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
+ }
9085
9110
  export declare class MaterialPickListResultDto implements IMaterialPickListResultDto {
9086
9111
  results: MaterialPickListResultEntryDto[];
9087
9112
  constructor(data?: IMaterialPickListResultDto);
@@ -12379,7 +12379,7 @@ export class MoveLocationsClient extends AuthorizedApiBase {
12379
12379
  if (parcelId === null)
12380
12380
  throw new Error("The parameter 'parcelId' cannot be null.");
12381
12381
  else if (parcelId !== undefined)
12382
- url_ += "parcelId=" + encodeURIComponent("" + parcelId) + "&";
12382
+ parcelId && parcelId.forEach(item => { url_ += "parcelId=" + encodeURIComponent("" + item) + "&"; });
12383
12383
  url_ = url_.replace(/[?&]$/, "");
12384
12384
  let options_ = {
12385
12385
  method: "GET",
@@ -12415,6 +12415,47 @@ export class MoveLocationsClient extends AuthorizedApiBase {
12415
12415
  }
12416
12416
  return Promise.resolve(null);
12417
12417
  }
12418
+ suggestionsGeneral(suggestionType) {
12419
+ let url_ = this.baseUrl + "/move/locations/suggestionsgeneral?";
12420
+ if (suggestionType === null)
12421
+ throw new Error("The parameter 'suggestionType' cannot be null.");
12422
+ else if (suggestionType !== undefined)
12423
+ url_ += "suggestionType=" + encodeURIComponent("" + suggestionType) + "&";
12424
+ url_ = url_.replace(/[?&]$/, "");
12425
+ let options_ = {
12426
+ method: "GET",
12427
+ headers: {
12428
+ "Accept": "application/json"
12429
+ }
12430
+ };
12431
+ return this.transformOptions(options_).then(transformedOptions_ => {
12432
+ return this.http.fetch(url_, transformedOptions_);
12433
+ }).then((_response) => {
12434
+ return this.processSuggestionsGeneral(_response);
12435
+ });
12436
+ }
12437
+ processSuggestionsGeneral(response) {
12438
+ const status = response.status;
12439
+ let _headers = {};
12440
+ if (response.headers && response.headers.forEach) {
12441
+ response.headers.forEach((v, k) => _headers[k] = v);
12442
+ }
12443
+ ;
12444
+ if (status === 200) {
12445
+ return response.text().then((_responseText) => {
12446
+ let result200 = null;
12447
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
12448
+ result200 = SuggestionsItemDto.fromJS(resultData200);
12449
+ return result200;
12450
+ });
12451
+ }
12452
+ else if (status !== 200 && status !== 204) {
12453
+ return response.text().then((_responseText) => {
12454
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
12455
+ });
12456
+ }
12457
+ return Promise.resolve(null);
12458
+ }
12418
12459
  }
12419
12460
  export class MoveMaterialsClient extends AuthorizedApiBase {
12420
12461
  constructor(configuration, baseUrl, http) {
@@ -13700,6 +13741,50 @@ export class MesProductionOrderClient extends AuthorizedApiBase {
13700
13741
  }
13701
13742
  return Promise.resolve(null);
13702
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
+ }
13703
13788
  postMaterialPickList(id, operationNumber, request) {
13704
13789
  let url_ = this.baseUrl + "/mes/productionorders/{id}/operations/{operationNumber}/picklist";
13705
13790
  if (id === undefined || id === null)
@@ -33244,6 +33329,7 @@ export class NonConformanceDto {
33244
33329
  this.rootCause = _data["rootCause"] ? NonConformanceAttachmentDto.fromJS(_data["rootCause"]) : undefined;
33245
33330
  this.decision = _data["decision"] ? NonConformanceAttachmentDto.fromJS(_data["decision"]) : undefined;
33246
33331
  this.correctiveAction = _data["correctiveAction"] ? NonConformanceAttachmentDto.fromJS(_data["correctiveAction"]) : undefined;
33332
+ this.workCenter = _data["workCenter"] ? WorkCenterDto.fromJS(_data["workCenter"]) : undefined;
33247
33333
  }
33248
33334
  }
33249
33335
  static fromJS(data) {
@@ -33272,6 +33358,7 @@ export class NonConformanceDto {
33272
33358
  data["rootCause"] = this.rootCause ? this.rootCause.toJSON() : undefined;
33273
33359
  data["decision"] = this.decision ? this.decision.toJSON() : undefined;
33274
33360
  data["correctiveAction"] = this.correctiveAction ? this.correctiveAction.toJSON() : undefined;
33361
+ data["workCenter"] = this.workCenter ? this.workCenter.toJSON() : undefined;
33275
33362
  return data;
33276
33363
  }
33277
33364
  }
@@ -33307,6 +33394,38 @@ export class NonConformanceAttachmentDto {
33307
33394
  return data;
33308
33395
  }
33309
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
+ }
33310
33429
  export class MaterialPickListResultDto {
33311
33430
  constructor(data) {
33312
33431
  if (data) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20241106.0.10663",
3
+ "version": "20241106.0.10670",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -13123,7 +13123,9 @@ export interface IMoveLocationsClient {
13123
13123
 
13124
13124
  suggestionsLocations(locationProfiles: LocationProfileDto[] | null | undefined, count: number | undefined): Promise<LocationDto[]>;
13125
13125
 
13126
- suggestionsParcel(parcelId: string | undefined): Promise<SuggestionsResponseDto>;
13126
+ suggestionsParcel(parcelId: string[] | undefined): Promise<SuggestionsResponseDto>;
13127
+
13128
+ suggestionsGeneral(suggestionType: SuggestionTypeDto | undefined): Promise<SuggestionsItemDto>;
13127
13129
  }
13128
13130
 
13129
13131
  export class MoveLocationsClient extends AuthorizedApiBase implements IMoveLocationsClient {
@@ -13229,12 +13231,12 @@ export class MoveLocationsClient extends AuthorizedApiBase implements IMoveLocat
13229
13231
  return Promise.resolve<LocationDto[]>(null as any);
13230
13232
  }
13231
13233
 
13232
- suggestionsParcel(parcelId: string | undefined): Promise<SuggestionsResponseDto> {
13234
+ suggestionsParcel(parcelId: string[] | undefined): Promise<SuggestionsResponseDto> {
13233
13235
  let url_ = this.baseUrl + "/move/locations/suggestionsparcel?";
13234
13236
  if (parcelId === null)
13235
13237
  throw new Error("The parameter 'parcelId' cannot be null.");
13236
13238
  else if (parcelId !== undefined)
13237
- url_ += "parcelId=" + encodeURIComponent("" + parcelId) + "&";
13239
+ parcelId && parcelId.forEach(item => { url_ += "parcelId=" + encodeURIComponent("" + item) + "&"; });
13238
13240
  url_ = url_.replace(/[?&]$/, "");
13239
13241
 
13240
13242
  let options_: RequestInit = {
@@ -13268,6 +13270,46 @@ export class MoveLocationsClient extends AuthorizedApiBase implements IMoveLocat
13268
13270
  }
13269
13271
  return Promise.resolve<SuggestionsResponseDto>(null as any);
13270
13272
  }
13273
+
13274
+ suggestionsGeneral(suggestionType: SuggestionTypeDto | undefined): Promise<SuggestionsItemDto> {
13275
+ let url_ = this.baseUrl + "/move/locations/suggestionsgeneral?";
13276
+ if (suggestionType === null)
13277
+ throw new Error("The parameter 'suggestionType' cannot be null.");
13278
+ else if (suggestionType !== undefined)
13279
+ url_ += "suggestionType=" + encodeURIComponent("" + suggestionType) + "&";
13280
+ url_ = url_.replace(/[?&]$/, "");
13281
+
13282
+ let options_: RequestInit = {
13283
+ method: "GET",
13284
+ headers: {
13285
+ "Accept": "application/json"
13286
+ }
13287
+ };
13288
+
13289
+ return this.transformOptions(options_).then(transformedOptions_ => {
13290
+ return this.http.fetch(url_, transformedOptions_);
13291
+ }).then((_response: Response) => {
13292
+ return this.processSuggestionsGeneral(_response);
13293
+ });
13294
+ }
13295
+
13296
+ protected processSuggestionsGeneral(response: Response): Promise<SuggestionsItemDto> {
13297
+ const status = response.status;
13298
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
13299
+ if (status === 200) {
13300
+ return response.text().then((_responseText) => {
13301
+ let result200: any = null;
13302
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
13303
+ result200 = SuggestionsItemDto.fromJS(resultData200);
13304
+ return result200;
13305
+ });
13306
+ } else if (status !== 200 && status !== 204) {
13307
+ return response.text().then((_responseText) => {
13308
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
13309
+ });
13310
+ }
13311
+ return Promise.resolve<SuggestionsItemDto>(null as any);
13312
+ }
13271
13313
  }
13272
13314
 
13273
13315
  export interface IMoveMaterialsClient {
@@ -14432,6 +14474,8 @@ export interface IMesProductionOrderClient {
14432
14474
 
14433
14475
  getProductionOrderOpenNonConformances(id: string, onlyOpen: boolean | undefined): Promise<NonConformanceDto[]>;
14434
14476
 
14477
+ getProductionOrderBomNonConformances(id: string): Promise<NonConformanceDto[]>;
14478
+
14435
14479
  postMaterialPickList(id: string, operationNumber: number, request: PostMaterialPickListRequest): Promise<MaterialPickListResultDto>;
14436
14480
 
14437
14481
  listProductionOrderActivities(id: string, operation: number | null | undefined): Promise<ProductionOrderOperationActivityDto[]>;
@@ -14668,6 +14712,49 @@ export class MesProductionOrderClient extends AuthorizedApiBase implements IMesP
14668
14712
  return Promise.resolve<NonConformanceDto[]>(null as any);
14669
14713
  }
14670
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
+
14671
14758
  postMaterialPickList(id: string, operationNumber: number, request: PostMaterialPickListRequest): Promise<MaterialPickListResultDto> {
14672
14759
  let url_ = this.baseUrl + "/mes/productionorders/{id}/operations/{operationNumber}/picklist";
14673
14760
  if (id === undefined || id === null)
@@ -38955,7 +39042,7 @@ export interface ISuggestionsParcelDto {
38955
39042
  }
38956
39043
 
38957
39044
  export class SuggestionsItemDto implements ISuggestionsItemDto {
38958
- trackingId!: string;
39045
+ trackingId?: string | null;
38959
39046
  fromAutoFill?: LocationDto | null;
38960
39047
  toAutoFill?: LocationDto | null;
38961
39048
  fromSuggestions!: LocationDto[];
@@ -39019,13 +39106,15 @@ export class SuggestionsItemDto implements ISuggestionsItemDto {
39019
39106
  }
39020
39107
 
39021
39108
  export interface ISuggestionsItemDto {
39022
- trackingId: string;
39109
+ trackingId?: string | null;
39023
39110
  fromAutoFill?: LocationDto | null;
39024
39111
  toAutoFill?: LocationDto | null;
39025
39112
  fromSuggestions: LocationDto[];
39026
39113
  toSuggestions: LocationDto[];
39027
39114
  }
39028
39115
 
39116
+ export type SuggestionTypeDto = "Other" | "ChipDisposal" | "Garbage";
39117
+
39029
39118
  export class MaterialDesciptionDto implements IMaterialDesciptionDto {
39030
39119
  materialId!: string;
39031
39120
  materialName!: string;
@@ -41224,6 +41313,7 @@ export class NonConformanceDto implements INonConformanceDto {
41224
41313
  rootCause?: NonConformanceAttachmentDto | null;
41225
41314
  decision?: NonConformanceAttachmentDto | null;
41226
41315
  correctiveAction?: NonConformanceAttachmentDto | null;
41316
+ workCenter?: WorkCenterDto | null;
41227
41317
 
41228
41318
  constructor(data?: INonConformanceDto) {
41229
41319
  if (data) {
@@ -41254,6 +41344,7 @@ export class NonConformanceDto implements INonConformanceDto {
41254
41344
  this.rootCause = _data["rootCause"] ? NonConformanceAttachmentDto.fromJS(_data["rootCause"]) : <any>undefined;
41255
41345
  this.decision = _data["decision"] ? NonConformanceAttachmentDto.fromJS(_data["decision"]) : <any>undefined;
41256
41346
  this.correctiveAction = _data["correctiveAction"] ? NonConformanceAttachmentDto.fromJS(_data["correctiveAction"]) : <any>undefined;
41347
+ this.workCenter = _data["workCenter"] ? WorkCenterDto.fromJS(_data["workCenter"]) : <any>undefined;
41257
41348
  }
41258
41349
  }
41259
41350
 
@@ -41284,6 +41375,7 @@ export class NonConformanceDto implements INonConformanceDto {
41284
41375
  data["rootCause"] = this.rootCause ? this.rootCause.toJSON() : <any>undefined;
41285
41376
  data["decision"] = this.decision ? this.decision.toJSON() : <any>undefined;
41286
41377
  data["correctiveAction"] = this.correctiveAction ? this.correctiveAction.toJSON() : <any>undefined;
41378
+ data["workCenter"] = this.workCenter ? this.workCenter.toJSON() : <any>undefined;
41287
41379
  return data;
41288
41380
  }
41289
41381
  }
@@ -41307,9 +41399,10 @@ export interface INonConformanceDto {
41307
41399
  rootCause?: NonConformanceAttachmentDto | null;
41308
41400
  decision?: NonConformanceAttachmentDto | null;
41309
41401
  correctiveAction?: NonConformanceAttachmentDto | null;
41402
+ workCenter?: WorkCenterDto | null;
41310
41403
  }
41311
41404
 
41312
- export type NonConformanceType = 1;
41405
+ export type NonConformanceType = 1 | 2;
41313
41406
 
41314
41407
  export class NonConformanceAttachmentDto implements INonConformanceAttachmentDto {
41315
41408
  title?: string | null;
@@ -41359,6 +41452,54 @@ export interface INonConformanceAttachmentDto {
41359
41452
  modified?: Date | null;
41360
41453
  }
41361
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
+
41362
41503
  export class MaterialPickListResultDto implements IMaterialPickListResultDto {
41363
41504
  results!: MaterialPickListResultEntryDto[];
41364
41505