@ignos/api-client 20240404.0.9072 → 20240412.0.9109

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.
@@ -1361,7 +1361,8 @@ export declare class MesDocumentsClient extends AuthorizedApiBase implements IMe
1361
1361
  }
1362
1362
  export interface IMesLinksClient {
1363
1363
  addMesLink(request: AddMesLink): Promise<void>;
1364
- listMesLinks(companyId: string | null | undefined, type: MesLinkTypeDto | null | undefined, operationId: string | null | undefined): Promise<MesLinkDto[]>;
1364
+ listMesLinks(workOrderId: string | null | undefined, operation: number | null | undefined): Promise<MesLinkDto[]>;
1365
+ listUnmappedMesLinks(): Promise<MesLinkDto[]>;
1365
1366
  updateMesLink(id: string, request: UpdateMesLink): Promise<FileResponse>;
1366
1367
  deleteMesLink(id: string): Promise<void>;
1367
1368
  }
@@ -1374,8 +1375,10 @@ export declare class MesLinksClient extends AuthorizedApiBase implements IMesLin
1374
1375
  });
1375
1376
  addMesLink(request: AddMesLink): Promise<void>;
1376
1377
  protected processAddMesLink(response: Response): Promise<void>;
1377
- listMesLinks(companyId: string | null | undefined, type: MesLinkTypeDto | null | undefined, operationId: string | null | undefined): Promise<MesLinkDto[]>;
1378
+ listMesLinks(workOrderId: string | null | undefined, operation: number | null | undefined): Promise<MesLinkDto[]>;
1378
1379
  protected processListMesLinks(response: Response): Promise<MesLinkDto[]>;
1380
+ listUnmappedMesLinks(): Promise<MesLinkDto[]>;
1381
+ protected processListUnmappedMesLinks(response: Response): Promise<MesLinkDto[]>;
1379
1382
  updateMesLink(id: string, request: UpdateMesLink): Promise<FileResponse>;
1380
1383
  protected processUpdateMesLink(response: Response): Promise<FileResponse>;
1381
1384
  deleteMesLink(id: string): Promise<void>;
@@ -3730,6 +3733,7 @@ export declare class ResourceDto implements IResourceDto {
3730
3733
  description?: string | null;
3731
3734
  resourceType?: string | null;
3732
3735
  resourceGroupId?: string | null;
3736
+ department?: DepartmentDto | null;
3733
3737
  constructor(data?: IResourceDto);
3734
3738
  init(_data?: any): void;
3735
3739
  static fromJS(data: any): ResourceDto;
@@ -3742,6 +3746,19 @@ export interface IResourceDto {
3742
3746
  description?: string | null;
3743
3747
  resourceType?: string | null;
3744
3748
  resourceGroupId?: string | null;
3749
+ department?: DepartmentDto | null;
3750
+ }
3751
+ export declare class DepartmentDto implements IDepartmentDto {
3752
+ number: string;
3753
+ name: string;
3754
+ constructor(data?: IDepartmentDto);
3755
+ init(_data?: any): void;
3756
+ static fromJS(data: any): DepartmentDto;
3757
+ toJSON(data?: any): any;
3758
+ }
3759
+ export interface IDepartmentDto {
3760
+ number: string;
3761
+ name: string;
3745
3762
  }
3746
3763
  export type OperationStatusDto = "NotReady" | "Ready" | "Ongoing" | "Completed" | "Stopped";
3747
3764
  export declare class WorkOrderTraceMaterialDto implements IWorkOrderTraceMaterialDto {
@@ -7787,6 +7804,8 @@ export declare class ProductionScheduleOperationDto implements IProductionSchedu
7787
7804
  partMaterial?: string | null;
7788
7805
  resourceId: string;
7789
7806
  resourceName: string;
7807
+ resourceDepartmentNumber?: string | null;
7808
+ resourceDepartmentName?: string | null;
7790
7809
  bomPosition?: string | null;
7791
7810
  customerName?: string | null;
7792
7811
  previousOperation?: SurroundingOperationDto | null;
@@ -7837,6 +7856,8 @@ export interface IProductionScheduleOperationDto {
7837
7856
  partMaterial?: string | null;
7838
7857
  resourceId: string;
7839
7858
  resourceName: string;
7859
+ resourceDepartmentNumber?: string | null;
7860
+ resourceDepartmentName?: string | null;
7840
7861
  bomPosition?: string | null;
7841
7862
  customerName?: string | null;
7842
7863
  previousOperation?: SurroundingOperationDto | null;
@@ -7866,6 +7887,8 @@ export declare class SurroundingOperationDto implements ISurroundingOperationDto
7866
7887
  resourceGroupId?: string | null;
7867
7888
  resourceId?: string | null;
7868
7889
  resourceName?: string | null;
7890
+ resourceDepartmentNumber?: string | null;
7891
+ resourceDepartmentName?: string | null;
7869
7892
  producedQuantity: number;
7870
7893
  scrappedQuantity: number;
7871
7894
  startedQuantity?: number | null;
@@ -7886,6 +7909,8 @@ export interface ISurroundingOperationDto {
7886
7909
  resourceGroupId?: string | null;
7887
7910
  resourceId?: string | null;
7888
7911
  resourceName?: string | null;
7912
+ resourceDepartmentNumber?: string | null;
7913
+ resourceDepartmentName?: string | null;
7889
7914
  producedQuantity: number;
7890
7915
  scrappedQuantity: number;
7891
7916
  startedQuantity?: number | null;
@@ -8363,6 +8388,7 @@ export declare class ResourceGroupDto implements IResourceGroupDto {
8363
8388
  id?: string;
8364
8389
  name?: string;
8365
8390
  resources: ProductionResourceDto[];
8391
+ department?: DepartmentDto | null;
8366
8392
  constructor(data?: IResourceGroupDto);
8367
8393
  init(_data?: any): void;
8368
8394
  static fromJS(data: any): ResourceGroupDto;
@@ -8372,10 +8398,12 @@ export interface IResourceGroupDto {
8372
8398
  id?: string;
8373
8399
  name?: string;
8374
8400
  resources: ProductionResourceDto[];
8401
+ department?: DepartmentDto | null;
8375
8402
  }
8376
8403
  export declare class ProductionResourceDto implements IProductionResourceDto {
8377
8404
  id?: string;
8378
8405
  name?: string;
8406
+ department?: DepartmentDto | null;
8379
8407
  constructor(data?: IProductionResourceDto);
8380
8408
  init(_data?: any): void;
8381
8409
  static fromJS(data: any): ProductionResourceDto;
@@ -8384,6 +8412,7 @@ export declare class ProductionResourceDto implements IProductionResourceDto {
8384
8412
  export interface IProductionResourceDto {
8385
8413
  id?: string;
8386
8414
  name?: string;
8415
+ department?: DepartmentDto | null;
8387
8416
  }
8388
8417
  export declare class PagedResultOfMeasurementFormListDto implements IPagedResultOfMeasurementFormListDto {
8389
8418
  results: MeasurementFormListDto[];
@@ -11127,14 +11127,12 @@ export class MesLinksClient extends AuthorizedApiBase {
11127
11127
  }
11128
11128
  return Promise.resolve(null);
11129
11129
  }
11130
- listMesLinks(companyId, type, operationId) {
11130
+ listMesLinks(workOrderId, operation) {
11131
11131
  let url_ = this.baseUrl + "/mes/links?";
11132
- if (companyId !== undefined && companyId !== null)
11133
- url_ += "companyId=" + encodeURIComponent("" + companyId) + "&";
11134
- if (type !== undefined && type !== null)
11135
- url_ += "type=" + encodeURIComponent("" + type) + "&";
11136
- if (operationId !== undefined && operationId !== null)
11137
- url_ += "operationId=" + encodeURIComponent("" + operationId) + "&";
11132
+ if (workOrderId !== undefined && workOrderId !== null)
11133
+ url_ += "workOrderId=" + encodeURIComponent("" + workOrderId) + "&";
11134
+ if (operation !== undefined && operation !== null)
11135
+ url_ += "operation=" + encodeURIComponent("" + operation) + "&";
11138
11136
  url_ = url_.replace(/[?&]$/, "");
11139
11137
  let options_ = {
11140
11138
  method: "GET",
@@ -11174,6 +11172,47 @@ export class MesLinksClient extends AuthorizedApiBase {
11174
11172
  }
11175
11173
  return Promise.resolve(null);
11176
11174
  }
11175
+ listUnmappedMesLinks() {
11176
+ let url_ = this.baseUrl + "/mes/links/unmapped";
11177
+ url_ = url_.replace(/[?&]$/, "");
11178
+ let options_ = {
11179
+ method: "GET",
11180
+ headers: {
11181
+ "Accept": "application/json"
11182
+ }
11183
+ };
11184
+ return this.transformOptions(options_).then(transformedOptions_ => {
11185
+ return this.http.fetch(url_, transformedOptions_);
11186
+ }).then((_response) => {
11187
+ return this.processListUnmappedMesLinks(_response);
11188
+ });
11189
+ }
11190
+ processListUnmappedMesLinks(response) {
11191
+ const status = response.status;
11192
+ let _headers = {};
11193
+ if (response.headers && response.headers.forEach) {
11194
+ response.headers.forEach((v, k) => _headers[k] = v);
11195
+ }
11196
+ ;
11197
+ if (status === 200) {
11198
+ return response.text().then((_responseText) => {
11199
+ let result200 = null;
11200
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
11201
+ if (Array.isArray(resultData200)) {
11202
+ result200 = [];
11203
+ for (let item of resultData200)
11204
+ result200.push(MesLinkDto.fromJS(item));
11205
+ }
11206
+ return result200;
11207
+ });
11208
+ }
11209
+ else if (status !== 200 && status !== 204) {
11210
+ return response.text().then((_responseText) => {
11211
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
11212
+ });
11213
+ }
11214
+ return Promise.resolve(null);
11215
+ }
11177
11216
  updateMesLink(id, request) {
11178
11217
  let url_ = this.baseUrl + "/mes/links/{id}";
11179
11218
  if (id === undefined || id === null)
@@ -20829,6 +20868,7 @@ export class ResourceDto {
20829
20868
  this.description = _data["description"];
20830
20869
  this.resourceType = _data["resourceType"];
20831
20870
  this.resourceGroupId = _data["resourceGroupId"];
20871
+ this.department = _data["department"] ? DepartmentDto.fromJS(_data["department"]) : undefined;
20832
20872
  }
20833
20873
  }
20834
20874
  static fromJS(data) {
@@ -20845,6 +20885,35 @@ export class ResourceDto {
20845
20885
  data["description"] = this.description;
20846
20886
  data["resourceType"] = this.resourceType;
20847
20887
  data["resourceGroupId"] = this.resourceGroupId;
20888
+ data["department"] = this.department ? this.department.toJSON() : undefined;
20889
+ return data;
20890
+ }
20891
+ }
20892
+ export class DepartmentDto {
20893
+ constructor(data) {
20894
+ if (data) {
20895
+ for (var property in data) {
20896
+ if (data.hasOwnProperty(property))
20897
+ this[property] = data[property];
20898
+ }
20899
+ }
20900
+ }
20901
+ init(_data) {
20902
+ if (_data) {
20903
+ this.number = _data["number"];
20904
+ this.name = _data["name"];
20905
+ }
20906
+ }
20907
+ static fromJS(data) {
20908
+ data = typeof data === 'object' ? data : {};
20909
+ let result = new DepartmentDto();
20910
+ result.init(data);
20911
+ return result;
20912
+ }
20913
+ toJSON(data) {
20914
+ data = typeof data === 'object' ? data : {};
20915
+ data["number"] = this.number;
20916
+ data["name"] = this.name;
20848
20917
  return data;
20849
20918
  }
20850
20919
  }
@@ -28703,6 +28772,8 @@ export class ProductionScheduleOperationDto {
28703
28772
  this.partMaterial = _data["partMaterial"];
28704
28773
  this.resourceId = _data["resourceId"];
28705
28774
  this.resourceName = _data["resourceName"];
28775
+ this.resourceDepartmentNumber = _data["resourceDepartmentNumber"];
28776
+ this.resourceDepartmentName = _data["resourceDepartmentName"];
28706
28777
  this.bomPosition = _data["bomPosition"];
28707
28778
  this.customerName = _data["customerName"];
28708
28779
  this.previousOperation = _data["previousOperation"] ? SurroundingOperationDto.fromJS(_data["previousOperation"]) : undefined;
@@ -28757,6 +28828,8 @@ export class ProductionScheduleOperationDto {
28757
28828
  data["partMaterial"] = this.partMaterial;
28758
28829
  data["resourceId"] = this.resourceId;
28759
28830
  data["resourceName"] = this.resourceName;
28831
+ data["resourceDepartmentNumber"] = this.resourceDepartmentNumber;
28832
+ data["resourceDepartmentName"] = this.resourceDepartmentName;
28760
28833
  data["bomPosition"] = this.bomPosition;
28761
28834
  data["customerName"] = this.customerName;
28762
28835
  data["previousOperation"] = this.previousOperation ? this.previousOperation.toJSON() : undefined;
@@ -28798,6 +28871,8 @@ export class SurroundingOperationDto {
28798
28871
  this.resourceGroupId = _data["resourceGroupId"];
28799
28872
  this.resourceId = _data["resourceId"];
28800
28873
  this.resourceName = _data["resourceName"];
28874
+ this.resourceDepartmentNumber = _data["resourceDepartmentNumber"];
28875
+ this.resourceDepartmentName = _data["resourceDepartmentName"];
28801
28876
  this.producedQuantity = _data["producedQuantity"];
28802
28877
  this.scrappedQuantity = _data["scrappedQuantity"];
28803
28878
  this.startedQuantity = _data["startedQuantity"];
@@ -28822,6 +28897,8 @@ export class SurroundingOperationDto {
28822
28897
  data["resourceGroupId"] = this.resourceGroupId;
28823
28898
  data["resourceId"] = this.resourceId;
28824
28899
  data["resourceName"] = this.resourceName;
28900
+ data["resourceDepartmentNumber"] = this.resourceDepartmentNumber;
28901
+ data["resourceDepartmentName"] = this.resourceDepartmentName;
28825
28902
  data["producedQuantity"] = this.producedQuantity;
28826
28903
  data["scrappedQuantity"] = this.scrappedQuantity;
28827
28904
  data["startedQuantity"] = this.startedQuantity;
@@ -29972,6 +30049,7 @@ export class ResourceGroupDto {
29972
30049
  for (let item of _data["resources"])
29973
30050
  this.resources.push(ProductionResourceDto.fromJS(item));
29974
30051
  }
30052
+ this.department = _data["department"] ? DepartmentDto.fromJS(_data["department"]) : undefined;
29975
30053
  }
29976
30054
  }
29977
30055
  static fromJS(data) {
@@ -29989,6 +30067,7 @@ export class ResourceGroupDto {
29989
30067
  for (let item of this.resources)
29990
30068
  data["resources"].push(item.toJSON());
29991
30069
  }
30070
+ data["department"] = this.department ? this.department.toJSON() : undefined;
29992
30071
  return data;
29993
30072
  }
29994
30073
  }
@@ -30005,6 +30084,7 @@ export class ProductionResourceDto {
30005
30084
  if (_data) {
30006
30085
  this.id = _data["id"];
30007
30086
  this.name = _data["name"];
30087
+ this.department = _data["department"] ? DepartmentDto.fromJS(_data["department"]) : undefined;
30008
30088
  }
30009
30089
  }
30010
30090
  static fromJS(data) {
@@ -30017,6 +30097,7 @@ export class ProductionResourceDto {
30017
30097
  data = typeof data === 'object' ? data : {};
30018
30098
  data["id"] = this.id;
30019
30099
  data["name"] = this.name;
30100
+ data["department"] = this.department ? this.department.toJSON() : undefined;
30020
30101
  return data;
30021
30102
  }
30022
30103
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20240404.0.9072",
3
+ "version": "20240412.0.9109",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -11847,7 +11847,9 @@ export interface IMesLinksClient {
11847
11847
 
11848
11848
  addMesLink(request: AddMesLink): Promise<void>;
11849
11849
 
11850
- listMesLinks(companyId: string | null | undefined, type: MesLinkTypeDto | null | undefined, operationId: string | null | undefined): Promise<MesLinkDto[]>;
11850
+ listMesLinks(workOrderId: string | null | undefined, operation: number | null | undefined): Promise<MesLinkDto[]>;
11851
+
11852
+ listUnmappedMesLinks(): Promise<MesLinkDto[]>;
11851
11853
 
11852
11854
  updateMesLink(id: string, request: UpdateMesLink): Promise<FileResponse>;
11853
11855
 
@@ -11901,14 +11903,12 @@ export class MesLinksClient extends AuthorizedApiBase implements IMesLinksClient
11901
11903
  return Promise.resolve<void>(null as any);
11902
11904
  }
11903
11905
 
11904
- listMesLinks(companyId: string | null | undefined, type: MesLinkTypeDto | null | undefined, operationId: string | null | undefined): Promise<MesLinkDto[]> {
11906
+ listMesLinks(workOrderId: string | null | undefined, operation: number | null | undefined): Promise<MesLinkDto[]> {
11905
11907
  let url_ = this.baseUrl + "/mes/links?";
11906
- if (companyId !== undefined && companyId !== null)
11907
- url_ += "companyId=" + encodeURIComponent("" + companyId) + "&";
11908
- if (type !== undefined && type !== null)
11909
- url_ += "type=" + encodeURIComponent("" + type) + "&";
11910
- if (operationId !== undefined && operationId !== null)
11911
- url_ += "operationId=" + encodeURIComponent("" + operationId) + "&";
11908
+ if (workOrderId !== undefined && workOrderId !== null)
11909
+ url_ += "workOrderId=" + encodeURIComponent("" + workOrderId) + "&";
11910
+ if (operation !== undefined && operation !== null)
11911
+ url_ += "operation=" + encodeURIComponent("" + operation) + "&";
11912
11912
  url_ = url_.replace(/[?&]$/, "");
11913
11913
 
11914
11914
  let options_: RequestInit = {
@@ -11947,6 +11947,46 @@ export class MesLinksClient extends AuthorizedApiBase implements IMesLinksClient
11947
11947
  return Promise.resolve<MesLinkDto[]>(null as any);
11948
11948
  }
11949
11949
 
11950
+ listUnmappedMesLinks(): Promise<MesLinkDto[]> {
11951
+ let url_ = this.baseUrl + "/mes/links/unmapped";
11952
+ url_ = url_.replace(/[?&]$/, "");
11953
+
11954
+ let options_: RequestInit = {
11955
+ method: "GET",
11956
+ headers: {
11957
+ "Accept": "application/json"
11958
+ }
11959
+ };
11960
+
11961
+ return this.transformOptions(options_).then(transformedOptions_ => {
11962
+ return this.http.fetch(url_, transformedOptions_);
11963
+ }).then((_response: Response) => {
11964
+ return this.processListUnmappedMesLinks(_response);
11965
+ });
11966
+ }
11967
+
11968
+ protected processListUnmappedMesLinks(response: Response): Promise<MesLinkDto[]> {
11969
+ const status = response.status;
11970
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
11971
+ if (status === 200) {
11972
+ return response.text().then((_responseText) => {
11973
+ let result200: any = null;
11974
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
11975
+ if (Array.isArray(resultData200)) {
11976
+ result200 = [] as any;
11977
+ for (let item of resultData200)
11978
+ result200!.push(MesLinkDto.fromJS(item));
11979
+ }
11980
+ return result200;
11981
+ });
11982
+ } else if (status !== 200 && status !== 204) {
11983
+ return response.text().then((_responseText) => {
11984
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
11985
+ });
11986
+ }
11987
+ return Promise.resolve<MesLinkDto[]>(null as any);
11988
+ }
11989
+
11950
11990
  updateMesLink(id: string, request: UpdateMesLink): Promise<FileResponse> {
11951
11991
  let url_ = this.baseUrl + "/mes/links/{id}";
11952
11992
  if (id === undefined || id === null)
@@ -23617,6 +23657,7 @@ export class ResourceDto implements IResourceDto {
23617
23657
  description?: string | null;
23618
23658
  resourceType?: string | null;
23619
23659
  resourceGroupId?: string | null;
23660
+ department?: DepartmentDto | null;
23620
23661
 
23621
23662
  constructor(data?: IResourceDto) {
23622
23663
  if (data) {
@@ -23635,6 +23676,7 @@ export class ResourceDto implements IResourceDto {
23635
23676
  this.description = _data["description"];
23636
23677
  this.resourceType = _data["resourceType"];
23637
23678
  this.resourceGroupId = _data["resourceGroupId"];
23679
+ this.department = _data["department"] ? DepartmentDto.fromJS(_data["department"]) : <any>undefined;
23638
23680
  }
23639
23681
  }
23640
23682
 
@@ -23653,6 +23695,7 @@ export class ResourceDto implements IResourceDto {
23653
23695
  data["description"] = this.description;
23654
23696
  data["resourceType"] = this.resourceType;
23655
23697
  data["resourceGroupId"] = this.resourceGroupId;
23698
+ data["department"] = this.department ? this.department.toJSON() : <any>undefined;
23656
23699
  return data;
23657
23700
  }
23658
23701
  }
@@ -23664,6 +23707,47 @@ export interface IResourceDto {
23664
23707
  description?: string | null;
23665
23708
  resourceType?: string | null;
23666
23709
  resourceGroupId?: string | null;
23710
+ department?: DepartmentDto | null;
23711
+ }
23712
+
23713
+ export class DepartmentDto implements IDepartmentDto {
23714
+ number!: string;
23715
+ name!: string;
23716
+
23717
+ constructor(data?: IDepartmentDto) {
23718
+ if (data) {
23719
+ for (var property in data) {
23720
+ if (data.hasOwnProperty(property))
23721
+ (<any>this)[property] = (<any>data)[property];
23722
+ }
23723
+ }
23724
+ }
23725
+
23726
+ init(_data?: any) {
23727
+ if (_data) {
23728
+ this.number = _data["number"];
23729
+ this.name = _data["name"];
23730
+ }
23731
+ }
23732
+
23733
+ static fromJS(data: any): DepartmentDto {
23734
+ data = typeof data === 'object' ? data : {};
23735
+ let result = new DepartmentDto();
23736
+ result.init(data);
23737
+ return result;
23738
+ }
23739
+
23740
+ toJSON(data?: any) {
23741
+ data = typeof data === 'object' ? data : {};
23742
+ data["number"] = this.number;
23743
+ data["name"] = this.name;
23744
+ return data;
23745
+ }
23746
+ }
23747
+
23748
+ export interface IDepartmentDto {
23749
+ number: string;
23750
+ name: string;
23667
23751
  }
23668
23752
 
23669
23753
  export type OperationStatusDto = "NotReady" | "Ready" | "Ongoing" | "Completed" | "Stopped";
@@ -35536,6 +35620,8 @@ export class ProductionScheduleOperationDto implements IProductionScheduleOperat
35536
35620
  partMaterial?: string | null;
35537
35621
  resourceId!: string;
35538
35622
  resourceName!: string;
35623
+ resourceDepartmentNumber?: string | null;
35624
+ resourceDepartmentName?: string | null;
35539
35625
  bomPosition?: string | null;
35540
35626
  customerName?: string | null;
35541
35627
  previousOperation?: SurroundingOperationDto | null;
@@ -35595,6 +35681,8 @@ export class ProductionScheduleOperationDto implements IProductionScheduleOperat
35595
35681
  this.partMaterial = _data["partMaterial"];
35596
35682
  this.resourceId = _data["resourceId"];
35597
35683
  this.resourceName = _data["resourceName"];
35684
+ this.resourceDepartmentNumber = _data["resourceDepartmentNumber"];
35685
+ this.resourceDepartmentName = _data["resourceDepartmentName"];
35598
35686
  this.bomPosition = _data["bomPosition"];
35599
35687
  this.customerName = _data["customerName"];
35600
35688
  this.previousOperation = _data["previousOperation"] ? SurroundingOperationDto.fromJS(_data["previousOperation"]) : <any>undefined;
@@ -35651,6 +35739,8 @@ export class ProductionScheduleOperationDto implements IProductionScheduleOperat
35651
35739
  data["partMaterial"] = this.partMaterial;
35652
35740
  data["resourceId"] = this.resourceId;
35653
35741
  data["resourceName"] = this.resourceName;
35742
+ data["resourceDepartmentNumber"] = this.resourceDepartmentNumber;
35743
+ data["resourceDepartmentName"] = this.resourceDepartmentName;
35654
35744
  data["bomPosition"] = this.bomPosition;
35655
35745
  data["customerName"] = this.customerName;
35656
35746
  data["previousOperation"] = this.previousOperation ? this.previousOperation.toJSON() : <any>undefined;
@@ -35700,6 +35790,8 @@ export interface IProductionScheduleOperationDto {
35700
35790
  partMaterial?: string | null;
35701
35791
  resourceId: string;
35702
35792
  resourceName: string;
35793
+ resourceDepartmentNumber?: string | null;
35794
+ resourceDepartmentName?: string | null;
35703
35795
  bomPosition?: string | null;
35704
35796
  customerName?: string | null;
35705
35797
  previousOperation?: SurroundingOperationDto | null;
@@ -35730,6 +35822,8 @@ export class SurroundingOperationDto implements ISurroundingOperationDto {
35730
35822
  resourceGroupId?: string | null;
35731
35823
  resourceId?: string | null;
35732
35824
  resourceName?: string | null;
35825
+ resourceDepartmentNumber?: string | null;
35826
+ resourceDepartmentName?: string | null;
35733
35827
  producedQuantity!: number;
35734
35828
  scrappedQuantity!: number;
35735
35829
  startedQuantity?: number | null;
@@ -35756,6 +35850,8 @@ export class SurroundingOperationDto implements ISurroundingOperationDto {
35756
35850
  this.resourceGroupId = _data["resourceGroupId"];
35757
35851
  this.resourceId = _data["resourceId"];
35758
35852
  this.resourceName = _data["resourceName"];
35853
+ this.resourceDepartmentNumber = _data["resourceDepartmentNumber"];
35854
+ this.resourceDepartmentName = _data["resourceDepartmentName"];
35759
35855
  this.producedQuantity = _data["producedQuantity"];
35760
35856
  this.scrappedQuantity = _data["scrappedQuantity"];
35761
35857
  this.startedQuantity = _data["startedQuantity"];
@@ -35782,6 +35878,8 @@ export class SurroundingOperationDto implements ISurroundingOperationDto {
35782
35878
  data["resourceGroupId"] = this.resourceGroupId;
35783
35879
  data["resourceId"] = this.resourceId;
35784
35880
  data["resourceName"] = this.resourceName;
35881
+ data["resourceDepartmentNumber"] = this.resourceDepartmentNumber;
35882
+ data["resourceDepartmentName"] = this.resourceDepartmentName;
35785
35883
  data["producedQuantity"] = this.producedQuantity;
35786
35884
  data["scrappedQuantity"] = this.scrappedQuantity;
35787
35885
  data["startedQuantity"] = this.startedQuantity;
@@ -35801,6 +35899,8 @@ export interface ISurroundingOperationDto {
35801
35899
  resourceGroupId?: string | null;
35802
35900
  resourceId?: string | null;
35803
35901
  resourceName?: string | null;
35902
+ resourceDepartmentNumber?: string | null;
35903
+ resourceDepartmentName?: string | null;
35804
35904
  producedQuantity: number;
35805
35905
  scrappedQuantity: number;
35806
35906
  startedQuantity?: number | null;
@@ -37407,6 +37507,7 @@ export class ResourceGroupDto implements IResourceGroupDto {
37407
37507
  id?: string;
37408
37508
  name?: string;
37409
37509
  resources!: ProductionResourceDto[];
37510
+ department?: DepartmentDto | null;
37410
37511
 
37411
37512
  constructor(data?: IResourceGroupDto) {
37412
37513
  if (data) {
@@ -37429,6 +37530,7 @@ export class ResourceGroupDto implements IResourceGroupDto {
37429
37530
  for (let item of _data["resources"])
37430
37531
  this.resources!.push(ProductionResourceDto.fromJS(item));
37431
37532
  }
37533
+ this.department = _data["department"] ? DepartmentDto.fromJS(_data["department"]) : <any>undefined;
37432
37534
  }
37433
37535
  }
37434
37536
 
@@ -37448,6 +37550,7 @@ export class ResourceGroupDto implements IResourceGroupDto {
37448
37550
  for (let item of this.resources)
37449
37551
  data["resources"].push(item.toJSON());
37450
37552
  }
37553
+ data["department"] = this.department ? this.department.toJSON() : <any>undefined;
37451
37554
  return data;
37452
37555
  }
37453
37556
  }
@@ -37456,11 +37559,13 @@ export interface IResourceGroupDto {
37456
37559
  id?: string;
37457
37560
  name?: string;
37458
37561
  resources: ProductionResourceDto[];
37562
+ department?: DepartmentDto | null;
37459
37563
  }
37460
37564
 
37461
37565
  export class ProductionResourceDto implements IProductionResourceDto {
37462
37566
  id?: string;
37463
37567
  name?: string;
37568
+ department?: DepartmentDto | null;
37464
37569
 
37465
37570
  constructor(data?: IProductionResourceDto) {
37466
37571
  if (data) {
@@ -37475,6 +37580,7 @@ export class ProductionResourceDto implements IProductionResourceDto {
37475
37580
  if (_data) {
37476
37581
  this.id = _data["id"];
37477
37582
  this.name = _data["name"];
37583
+ this.department = _data["department"] ? DepartmentDto.fromJS(_data["department"]) : <any>undefined;
37478
37584
  }
37479
37585
  }
37480
37586
 
@@ -37489,6 +37595,7 @@ export class ProductionResourceDto implements IProductionResourceDto {
37489
37595
  data = typeof data === 'object' ? data : {};
37490
37596
  data["id"] = this.id;
37491
37597
  data["name"] = this.name;
37598
+ data["department"] = this.department ? this.department.toJSON() : <any>undefined;
37492
37599
  return data;
37493
37600
  }
37494
37601
  }
@@ -37496,6 +37603,7 @@ export class ProductionResourceDto implements IProductionResourceDto {
37496
37603
  export interface IProductionResourceDto {
37497
37604
  id?: string;
37498
37605
  name?: string;
37606
+ department?: DepartmentDto | null;
37499
37607
  }
37500
37608
 
37501
37609
  export class PagedResultOfMeasurementFormListDto implements IPagedResultOfMeasurementFormListDto {