@ignos/api-client 20240315.0.8964 → 20240318.0.8990

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.
@@ -644,7 +644,7 @@ export interface IMachinesClient {
644
644
  listMachineErpData(): Promise<MachineErpDataListDto>;
645
645
  getMachineErpData(id: number): Promise<MachineErpDataDto>;
646
646
  getMachineUtilizationSummary(): Promise<UtilizationSummaryDto>;
647
- listCurrentMachineOperators(machineExternalId: string | undefined, operatorNameQuery: string | undefined): Promise<OperatorAndMachineDto[]>;
647
+ listCurrentMachineOperators(machineExternalId: string | null | undefined, operatorNameQuery: string | null | undefined): Promise<OperatorAndMachineDto[]>;
648
648
  }
649
649
  export declare class MachinesClient extends AuthorizedApiBase implements IMachinesClient {
650
650
  private http;
@@ -675,14 +675,14 @@ export declare class MachinesClient extends AuthorizedApiBase implements IMachin
675
675
  protected processGetMachineErpData(response: Response): Promise<MachineErpDataDto>;
676
676
  getMachineUtilizationSummary(): Promise<UtilizationSummaryDto>;
677
677
  protected processGetMachineUtilizationSummary(response: Response): Promise<UtilizationSummaryDto>;
678
- listCurrentMachineOperators(machineExternalId: string | undefined, operatorNameQuery: string | undefined): Promise<OperatorAndMachineDto[]>;
678
+ listCurrentMachineOperators(machineExternalId: string | null | undefined, operatorNameQuery: string | null | undefined): Promise<OperatorAndMachineDto[]>;
679
679
  protected processListCurrentMachineOperators(response: Response): Promise<OperatorAndMachineDto[]>;
680
680
  }
681
681
  export interface ILinksClient {
682
- getAllLinks(scope: string | undefined): Promise<LinkDto[]>;
682
+ getAllLinks(scope: string | null | undefined): Promise<LinkDto[]>;
683
683
  createLink(request: CreateLinkRequest): Promise<LinkDto>;
684
684
  getAllLinkScopes(): Promise<string[]>;
685
- deleteLink(id: string, scope: string | undefined): Promise<void>;
685
+ deleteLink(id: string, scope: string | null | undefined): Promise<void>;
686
686
  }
687
687
  export declare class LinksClient extends AuthorizedApiBase implements ILinksClient {
688
688
  private http;
@@ -691,13 +691,13 @@ export declare class LinksClient extends AuthorizedApiBase implements ILinksClie
691
691
  constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
692
692
  fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
693
693
  });
694
- getAllLinks(scope: string | undefined): Promise<LinkDto[]>;
694
+ getAllLinks(scope: string | null | undefined): Promise<LinkDto[]>;
695
695
  protected processGetAllLinks(response: Response): Promise<LinkDto[]>;
696
696
  createLink(request: CreateLinkRequest): Promise<LinkDto>;
697
697
  protected processCreateLink(response: Response): Promise<LinkDto>;
698
698
  getAllLinkScopes(): Promise<string[]>;
699
699
  protected processGetAllLinkScopes(response: Response): Promise<string[]>;
700
- deleteLink(id: string, scope: string | undefined): Promise<void>;
700
+ deleteLink(id: string, scope: string | null | undefined): Promise<void>;
701
701
  protected processDeleteLink(response: Response): Promise<void>;
702
702
  }
703
703
  export interface IExternalServicesClient {
@@ -1395,8 +1395,8 @@ export interface IMesProductionScheduleClient {
1395
1395
  listProductionScheduleOperations(resourceGroup: string | null | undefined, resourceId: string | null | undefined, pageSize: number | undefined, continuationToken: string | null | undefined, workOrderId: string | null | undefined, projectId: string | null | undefined, partNumber: string | null | undefined, partName: string | null | undefined, material: string | null | undefined): Promise<PagedResultOfProductionScheduleOperationDto>;
1396
1396
  postListProductionScheduleOperations(request: ListProductionScheduleOperationsRequest | undefined): Promise<PagedResultOfProductionScheduleOperationDto>;
1397
1397
  getAvailableProductionScheduleFilters(request: GetAvailableProductionScheduleFiltersRequest | undefined): Promise<ProductionScheduleFiltersDto>;
1398
- listMyCurrentWorkActivities(): Promise<CurrentWorkActivityDto[]>;
1399
- listMyCurrentWorkActivitiesV2(): Promise<CurrentWorkActivityV2Dto>;
1398
+ listMyCurrentWorkActivities(): Promise<CurrentWorkActivityDto>;
1399
+ listMyCurrentWorkActivitiesV2(): Promise<CurrentWorkActivityDto>;
1400
1400
  startOperations(request: StartOperations): Promise<void>;
1401
1401
  reportOperationProgress(request: ReportOperationProgress): Promise<void>;
1402
1402
  getScheduledWorkSummary(resourceGroup: string | null | undefined, resourceId: string | null | undefined): Promise<ScheduledWorkSummaryDto>;
@@ -1414,10 +1414,10 @@ export declare class MesProductionScheduleClient extends AuthorizedApiBase imple
1414
1414
  protected processPostListProductionScheduleOperations(response: Response): Promise<PagedResultOfProductionScheduleOperationDto>;
1415
1415
  getAvailableProductionScheduleFilters(request: GetAvailableProductionScheduleFiltersRequest | undefined): Promise<ProductionScheduleFiltersDto>;
1416
1416
  protected processGetAvailableProductionScheduleFilters(response: Response): Promise<ProductionScheduleFiltersDto>;
1417
- listMyCurrentWorkActivities(): Promise<CurrentWorkActivityDto[]>;
1418
- protected processListMyCurrentWorkActivities(response: Response): Promise<CurrentWorkActivityDto[]>;
1419
- listMyCurrentWorkActivitiesV2(): Promise<CurrentWorkActivityV2Dto>;
1420
- protected processListMyCurrentWorkActivitiesV2(response: Response): Promise<CurrentWorkActivityV2Dto>;
1417
+ listMyCurrentWorkActivities(): Promise<CurrentWorkActivityDto>;
1418
+ protected processListMyCurrentWorkActivities(response: Response): Promise<CurrentWorkActivityDto>;
1419
+ listMyCurrentWorkActivitiesV2(): Promise<CurrentWorkActivityDto>;
1420
+ protected processListMyCurrentWorkActivitiesV2(response: Response): Promise<CurrentWorkActivityDto>;
1421
1421
  startOperations(request: StartOperations): Promise<void>;
1422
1422
  protected processStartOperations(response: Response): Promise<void>;
1423
1423
  reportOperationProgress(request: ReportOperationProgress): Promise<void>;
@@ -7225,7 +7225,6 @@ export declare class ProductionOrderDto implements IProductionOrderDto {
7225
7225
  scrappedQuantity: number;
7226
7226
  planner?: UserDto | null;
7227
7227
  projectLeader?: UserDto | null;
7228
- endLocation?: string | null;
7229
7228
  deliveryLocation?: WarehouseLocationDto | null;
7230
7229
  project?: WorkOrderProjectDto | null;
7231
7230
  startDate?: Date | null;
@@ -7252,7 +7251,6 @@ export interface IProductionOrderDto {
7252
7251
  scrappedQuantity: number;
7253
7252
  planner?: UserDto | null;
7254
7253
  projectLeader?: UserDto | null;
7255
- endLocation?: string | null;
7256
7254
  deliveryLocation?: WarehouseLocationDto | null;
7257
7255
  project?: WorkOrderProjectDto | null;
7258
7256
  startDate?: Date | null;
@@ -7651,7 +7649,6 @@ export declare class ProductionScheduleOperationDto implements IProductionSchedu
7651
7649
  program?: string | null;
7652
7650
  toolNumber?: string | null;
7653
7651
  prerequisites: OperationPrerequisitesDto;
7654
- endLocation?: string | null;
7655
7652
  deliveryLocation?: WarehouseLocationDto | null;
7656
7653
  drawing?: DrawingDto | null;
7657
7654
  drawingNumber?: string | null;
@@ -7702,7 +7699,6 @@ export interface IProductionScheduleOperationDto {
7702
7699
  program?: string | null;
7703
7700
  toolNumber?: string | null;
7704
7701
  prerequisites: OperationPrerequisitesDto;
7705
- endLocation?: string | null;
7706
7702
  deliveryLocation?: WarehouseLocationDto | null;
7707
7703
  drawing?: DrawingDto | null;
7708
7704
  drawingNumber?: string | null;
@@ -7920,49 +7916,14 @@ export interface IGetAvailableProductionScheduleFiltersRequest {
7920
7916
  before?: Date | null;
7921
7917
  }
7922
7918
  export declare class CurrentWorkActivityDto implements ICurrentWorkActivityDto {
7923
- workActivity: WorkActivityDto;
7924
- operation: ProductionScheduleOperationDto;
7919
+ activeWork: ActiveWorkDto[];
7920
+ stoppedWork: StoppedWorkDto[];
7925
7921
  constructor(data?: ICurrentWorkActivityDto);
7926
7922
  init(_data?: any): void;
7927
7923
  static fromJS(data: any): CurrentWorkActivityDto;
7928
7924
  toJSON(data?: any): any;
7929
7925
  }
7930
7926
  export interface ICurrentWorkActivityDto {
7931
- workActivity: WorkActivityDto;
7932
- operation: ProductionScheduleOperationDto;
7933
- }
7934
- export declare class WorkActivityDto implements IWorkActivityDto {
7935
- id: string;
7936
- startTime: Date;
7937
- endTime?: Date | null;
7938
- user?: UserDto | null;
7939
- personnelNumber: string;
7940
- workType: WorkTypeDto;
7941
- startedQuantity?: number | null;
7942
- constructor(data?: IWorkActivityDto);
7943
- init(_data?: any): void;
7944
- static fromJS(data: any): WorkActivityDto;
7945
- toJSON(data?: any): any;
7946
- }
7947
- export interface IWorkActivityDto {
7948
- id: string;
7949
- startTime: Date;
7950
- endTime?: Date | null;
7951
- user?: UserDto | null;
7952
- personnelNumber: string;
7953
- workType: WorkTypeDto;
7954
- startedQuantity?: number | null;
7955
- }
7956
- export type WorkTypeDto = "None" | "Production" | "Setup";
7957
- export declare class CurrentWorkActivityV2Dto implements ICurrentWorkActivityV2Dto {
7958
- activeWork: ActiveWorkDto[];
7959
- stoppedWork: StoppedWorkDto[];
7960
- constructor(data?: ICurrentWorkActivityV2Dto);
7961
- init(_data?: any): void;
7962
- static fromJS(data: any): CurrentWorkActivityV2Dto;
7963
- toJSON(data?: any): any;
7964
- }
7965
- export interface ICurrentWorkActivityV2Dto {
7966
7927
  activeWork: ActiveWorkDto[];
7967
7928
  stoppedWork: StoppedWorkDto[];
7968
7929
  }
@@ -8002,6 +7963,7 @@ export interface ICurrentWorkDto {
8002
7963
  startedQuantity?: number | null;
8003
7964
  workType: WorkTypeDto;
8004
7965
  }
7966
+ export type WorkTypeDto = "None" | "Production" | "Setup";
8005
7967
  export declare class StoppedWorkDto implements IStoppedWorkDto {
8006
7968
  operation: ProductionScheduleOperationDto;
8007
7969
  lastWorkActivity: CurrentWorkDto;
@@ -10586,7 +10548,6 @@ export declare class UpsertWorkorderV2 implements IUpsertWorkorderV2 {
10586
10548
  customerOrderReference?: WorkorderCustomerOrderReferenceDto | null;
10587
10549
  planner?: UserDto | null;
10588
10550
  projectLeader?: UserDto | null;
10589
- endLocation?: string | null;
10590
10551
  deliveryLocation?: WarehouseLocationDto | null;
10591
10552
  project?: WorkOrderProjectDto | null;
10592
10553
  startDate?: Date | null;
@@ -10613,7 +10574,6 @@ export interface IUpsertWorkorderV2 {
10613
10574
  customerOrderReference?: WorkorderCustomerOrderReferenceDto | null;
10614
10575
  planner?: UserDto | null;
10615
10576
  projectLeader?: UserDto | null;
10616
- endLocation?: string | null;
10617
10577
  deliveryLocation?: WarehouseLocationDto | null;
10618
10578
  project?: WorkOrderProjectDto | null;
10619
10579
  startDate?: Date | null;
@@ -5207,13 +5207,9 @@ export class MachinesClient extends AuthorizedApiBase {
5207
5207
  }
5208
5208
  listCurrentMachineOperators(machineExternalId, operatorNameQuery) {
5209
5209
  let url_ = this.baseUrl + "/machines/operators?";
5210
- if (machineExternalId === null)
5211
- throw new Error("The parameter 'machineExternalId' cannot be null.");
5212
- else if (machineExternalId !== undefined)
5210
+ if (machineExternalId !== undefined && machineExternalId !== null)
5213
5211
  url_ += "machineExternalId=" + encodeURIComponent("" + machineExternalId) + "&";
5214
- if (operatorNameQuery === null)
5215
- throw new Error("The parameter 'operatorNameQuery' cannot be null.");
5216
- else if (operatorNameQuery !== undefined)
5212
+ if (operatorNameQuery !== undefined && operatorNameQuery !== null)
5217
5213
  url_ += "operatorNameQuery=" + encodeURIComponent("" + operatorNameQuery) + "&";
5218
5214
  url_ = url_.replace(/[?&]$/, "");
5219
5215
  let options_ = {
@@ -5264,9 +5260,7 @@ export class LinksClient extends AuthorizedApiBase {
5264
5260
  }
5265
5261
  getAllLinks(scope) {
5266
5262
  let url_ = this.baseUrl + "/links?";
5267
- if (scope === null)
5268
- throw new Error("The parameter 'scope' cannot be null.");
5269
- else if (scope !== undefined)
5263
+ if (scope !== undefined && scope !== null)
5270
5264
  url_ += "scope=" + encodeURIComponent("" + scope) + "&";
5271
5265
  url_ = url_.replace(/[?&]$/, "");
5272
5266
  let options_ = {
@@ -5393,9 +5387,7 @@ export class LinksClient extends AuthorizedApiBase {
5393
5387
  if (id === undefined || id === null)
5394
5388
  throw new Error("The parameter 'id' must be defined.");
5395
5389
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
5396
- if (scope === null)
5397
- throw new Error("The parameter 'scope' cannot be null.");
5398
- else if (scope !== undefined)
5390
+ if (scope !== undefined && scope !== null)
5399
5391
  url_ += "scope=" + encodeURIComponent("" + scope) + "&";
5400
5392
  url_ = url_.replace(/[?&]$/, "");
5401
5393
  let options_ = {
@@ -11473,11 +11465,7 @@ export class MesProductionScheduleClient extends AuthorizedApiBase {
11473
11465
  return response.text().then((_responseText) => {
11474
11466
  let result200 = null;
11475
11467
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
11476
- if (Array.isArray(resultData200)) {
11477
- result200 = [];
11478
- for (let item of resultData200)
11479
- result200.push(CurrentWorkActivityDto.fromJS(item));
11480
- }
11468
+ result200 = CurrentWorkActivityDto.fromJS(resultData200);
11481
11469
  return result200;
11482
11470
  });
11483
11471
  }
@@ -11514,7 +11502,7 @@ export class MesProductionScheduleClient extends AuthorizedApiBase {
11514
11502
  return response.text().then((_responseText) => {
11515
11503
  let result200 = null;
11516
11504
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
11517
- result200 = CurrentWorkActivityV2Dto.fromJS(resultData200);
11505
+ result200 = CurrentWorkActivityDto.fromJS(resultData200);
11518
11506
  return result200;
11519
11507
  });
11520
11508
  }
@@ -27477,7 +27465,6 @@ export class ProductionOrderDto {
27477
27465
  this.scrappedQuantity = _data["scrappedQuantity"];
27478
27466
  this.planner = _data["planner"] ? UserDto.fromJS(_data["planner"]) : undefined;
27479
27467
  this.projectLeader = _data["projectLeader"] ? UserDto.fromJS(_data["projectLeader"]) : undefined;
27480
- this.endLocation = _data["endLocation"];
27481
27468
  this.deliveryLocation = _data["deliveryLocation"] ? WarehouseLocationDto.fromJS(_data["deliveryLocation"]) : undefined;
27482
27469
  this.project = _data["project"] ? WorkOrderProjectDto.fromJS(_data["project"]) : undefined;
27483
27470
  this.startDate = _data["startDate"] ? new Date(_data["startDate"].toString()) : undefined;
@@ -27512,7 +27499,6 @@ export class ProductionOrderDto {
27512
27499
  data["scrappedQuantity"] = this.scrappedQuantity;
27513
27500
  data["planner"] = this.planner ? this.planner.toJSON() : undefined;
27514
27501
  data["projectLeader"] = this.projectLeader ? this.projectLeader.toJSON() : undefined;
27515
- data["endLocation"] = this.endLocation;
27516
27502
  data["deliveryLocation"] = this.deliveryLocation ? this.deliveryLocation.toJSON() : undefined;
27517
27503
  data["project"] = this.project ? this.project.toJSON() : undefined;
27518
27504
  data["startDate"] = this.startDate ? this.startDate.toISOString() : undefined;
@@ -28224,7 +28210,6 @@ export class ProductionScheduleOperationDto {
28224
28210
  this.program = _data["program"];
28225
28211
  this.toolNumber = _data["toolNumber"];
28226
28212
  this.prerequisites = _data["prerequisites"] ? OperationPrerequisitesDto.fromJS(_data["prerequisites"]) : new OperationPrerequisitesDto();
28227
- this.endLocation = _data["endLocation"];
28228
28213
  this.deliveryLocation = _data["deliveryLocation"] ? WarehouseLocationDto.fromJS(_data["deliveryLocation"]) : undefined;
28229
28214
  this.drawing = _data["drawing"] ? DrawingDto.fromJS(_data["drawing"]) : undefined;
28230
28215
  this.drawingNumber = _data["drawingNumber"];
@@ -28279,7 +28264,6 @@ export class ProductionScheduleOperationDto {
28279
28264
  data["program"] = this.program;
28280
28265
  data["toolNumber"] = this.toolNumber;
28281
28266
  data["prerequisites"] = this.prerequisites ? this.prerequisites.toJSON() : undefined;
28282
- data["endLocation"] = this.endLocation;
28283
28267
  data["deliveryLocation"] = this.deliveryLocation ? this.deliveryLocation.toJSON() : undefined;
28284
28268
  data["drawing"] = this.drawing ? this.drawing.toJSON() : undefined;
28285
28269
  data["drawingNumber"] = this.drawingNumber;
@@ -28817,76 +28801,6 @@ export class GetAvailableProductionScheduleFiltersRequest {
28817
28801
  }
28818
28802
  }
28819
28803
  export class CurrentWorkActivityDto {
28820
- constructor(data) {
28821
- if (data) {
28822
- for (var property in data) {
28823
- if (data.hasOwnProperty(property))
28824
- this[property] = data[property];
28825
- }
28826
- }
28827
- if (!data) {
28828
- this.workActivity = new WorkActivityDto();
28829
- this.operation = new ProductionScheduleOperationDto();
28830
- }
28831
- }
28832
- init(_data) {
28833
- if (_data) {
28834
- this.workActivity = _data["workActivity"] ? WorkActivityDto.fromJS(_data["workActivity"]) : new WorkActivityDto();
28835
- this.operation = _data["operation"] ? ProductionScheduleOperationDto.fromJS(_data["operation"]) : new ProductionScheduleOperationDto();
28836
- }
28837
- }
28838
- static fromJS(data) {
28839
- data = typeof data === 'object' ? data : {};
28840
- let result = new CurrentWorkActivityDto();
28841
- result.init(data);
28842
- return result;
28843
- }
28844
- toJSON(data) {
28845
- data = typeof data === 'object' ? data : {};
28846
- data["workActivity"] = this.workActivity ? this.workActivity.toJSON() : undefined;
28847
- data["operation"] = this.operation ? this.operation.toJSON() : undefined;
28848
- return data;
28849
- }
28850
- }
28851
- export class WorkActivityDto {
28852
- constructor(data) {
28853
- if (data) {
28854
- for (var property in data) {
28855
- if (data.hasOwnProperty(property))
28856
- this[property] = data[property];
28857
- }
28858
- }
28859
- }
28860
- init(_data) {
28861
- if (_data) {
28862
- this.id = _data["id"];
28863
- this.startTime = _data["startTime"] ? new Date(_data["startTime"].toString()) : undefined;
28864
- this.endTime = _data["endTime"] ? new Date(_data["endTime"].toString()) : undefined;
28865
- this.user = _data["user"] ? UserDto.fromJS(_data["user"]) : undefined;
28866
- this.personnelNumber = _data["personnelNumber"];
28867
- this.workType = _data["workType"];
28868
- this.startedQuantity = _data["startedQuantity"];
28869
- }
28870
- }
28871
- static fromJS(data) {
28872
- data = typeof data === 'object' ? data : {};
28873
- let result = new WorkActivityDto();
28874
- result.init(data);
28875
- return result;
28876
- }
28877
- toJSON(data) {
28878
- data = typeof data === 'object' ? data : {};
28879
- data["id"] = this.id;
28880
- data["startTime"] = this.startTime ? this.startTime.toISOString() : undefined;
28881
- data["endTime"] = this.endTime ? this.endTime.toISOString() : undefined;
28882
- data["user"] = this.user ? this.user.toJSON() : undefined;
28883
- data["personnelNumber"] = this.personnelNumber;
28884
- data["workType"] = this.workType;
28885
- data["startedQuantity"] = this.startedQuantity;
28886
- return data;
28887
- }
28888
- }
28889
- export class CurrentWorkActivityV2Dto {
28890
28804
  constructor(data) {
28891
28805
  if (data) {
28892
28806
  for (var property in data) {
@@ -28915,7 +28829,7 @@ export class CurrentWorkActivityV2Dto {
28915
28829
  }
28916
28830
  static fromJS(data) {
28917
28831
  data = typeof data === 'object' ? data : {};
28918
- let result = new CurrentWorkActivityV2Dto();
28832
+ let result = new CurrentWorkActivityDto();
28919
28833
  result.init(data);
28920
28834
  return result;
28921
28835
  }
@@ -34108,7 +34022,6 @@ export class UpsertWorkorderV2 {
34108
34022
  this.customerOrderReference = _data["customerOrderReference"] ? WorkorderCustomerOrderReferenceDto.fromJS(_data["customerOrderReference"]) : undefined;
34109
34023
  this.planner = _data["planner"] ? UserDto.fromJS(_data["planner"]) : undefined;
34110
34024
  this.projectLeader = _data["projectLeader"] ? UserDto.fromJS(_data["projectLeader"]) : undefined;
34111
- this.endLocation = _data["endLocation"];
34112
34025
  this.deliveryLocation = _data["deliveryLocation"] ? WarehouseLocationDto.fromJS(_data["deliveryLocation"]) : undefined;
34113
34026
  this.project = _data["project"] ? WorkOrderProjectDto.fromJS(_data["project"]) : undefined;
34114
34027
  this.startDate = _data["startDate"] ? new Date(_data["startDate"].toString()) : undefined;
@@ -34143,7 +34056,6 @@ export class UpsertWorkorderV2 {
34143
34056
  data["customerOrderReference"] = this.customerOrderReference ? this.customerOrderReference.toJSON() : undefined;
34144
34057
  data["planner"] = this.planner ? this.planner.toJSON() : undefined;
34145
34058
  data["projectLeader"] = this.projectLeader ? this.projectLeader.toJSON() : undefined;
34146
- data["endLocation"] = this.endLocation;
34147
34059
  data["deliveryLocation"] = this.deliveryLocation ? this.deliveryLocation.toJSON() : undefined;
34148
34060
  data["project"] = this.project ? this.project.toJSON() : undefined;
34149
34061
  data["startDate"] = this.startDate ? this.startDate.toISOString() : undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20240315.0.8964",
3
+ "version": "20240318.0.8990",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -5127,7 +5127,7 @@ export interface IMachinesClient {
5127
5127
 
5128
5128
  getMachineUtilizationSummary(): Promise<UtilizationSummaryDto>;
5129
5129
 
5130
- listCurrentMachineOperators(machineExternalId: string | undefined, operatorNameQuery: string | undefined): Promise<OperatorAndMachineDto[]>;
5130
+ listCurrentMachineOperators(machineExternalId: string | null | undefined, operatorNameQuery: string | null | undefined): Promise<OperatorAndMachineDto[]>;
5131
5131
  }
5132
5132
 
5133
5133
  export class MachinesClient extends AuthorizedApiBase implements IMachinesClient {
@@ -5574,15 +5574,11 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
5574
5574
  return Promise.resolve<UtilizationSummaryDto>(null as any);
5575
5575
  }
5576
5576
 
5577
- listCurrentMachineOperators(machineExternalId: string | undefined, operatorNameQuery: string | undefined): Promise<OperatorAndMachineDto[]> {
5577
+ listCurrentMachineOperators(machineExternalId: string | null | undefined, operatorNameQuery: string | null | undefined): Promise<OperatorAndMachineDto[]> {
5578
5578
  let url_ = this.baseUrl + "/machines/operators?";
5579
- if (machineExternalId === null)
5580
- throw new Error("The parameter 'machineExternalId' cannot be null.");
5581
- else if (machineExternalId !== undefined)
5579
+ if (machineExternalId !== undefined && machineExternalId !== null)
5582
5580
  url_ += "machineExternalId=" + encodeURIComponent("" + machineExternalId) + "&";
5583
- if (operatorNameQuery === null)
5584
- throw new Error("The parameter 'operatorNameQuery' cannot be null.");
5585
- else if (operatorNameQuery !== undefined)
5581
+ if (operatorNameQuery !== undefined && operatorNameQuery !== null)
5586
5582
  url_ += "operatorNameQuery=" + encodeURIComponent("" + operatorNameQuery) + "&";
5587
5583
  url_ = url_.replace(/[?&]$/, "");
5588
5584
 
@@ -5625,13 +5621,13 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
5625
5621
 
5626
5622
  export interface ILinksClient {
5627
5623
 
5628
- getAllLinks(scope: string | undefined): Promise<LinkDto[]>;
5624
+ getAllLinks(scope: string | null | undefined): Promise<LinkDto[]>;
5629
5625
 
5630
5626
  createLink(request: CreateLinkRequest): Promise<LinkDto>;
5631
5627
 
5632
5628
  getAllLinkScopes(): Promise<string[]>;
5633
5629
 
5634
- deleteLink(id: string, scope: string | undefined): Promise<void>;
5630
+ deleteLink(id: string, scope: string | null | undefined): Promise<void>;
5635
5631
  }
5636
5632
 
5637
5633
  export class LinksClient extends AuthorizedApiBase implements ILinksClient {
@@ -5645,11 +5641,9 @@ export class LinksClient extends AuthorizedApiBase implements ILinksClient {
5645
5641
  this.baseUrl = baseUrl ?? "";
5646
5642
  }
5647
5643
 
5648
- getAllLinks(scope: string | undefined): Promise<LinkDto[]> {
5644
+ getAllLinks(scope: string | null | undefined): Promise<LinkDto[]> {
5649
5645
  let url_ = this.baseUrl + "/links?";
5650
- if (scope === null)
5651
- throw new Error("The parameter 'scope' cannot be null.");
5652
- else if (scope !== undefined)
5646
+ if (scope !== undefined && scope !== null)
5653
5647
  url_ += "scope=" + encodeURIComponent("" + scope) + "&";
5654
5648
  url_ = url_.replace(/[?&]$/, "");
5655
5649
 
@@ -5769,14 +5763,12 @@ export class LinksClient extends AuthorizedApiBase implements ILinksClient {
5769
5763
  return Promise.resolve<string[]>(null as any);
5770
5764
  }
5771
5765
 
5772
- deleteLink(id: string, scope: string | undefined): Promise<void> {
5766
+ deleteLink(id: string, scope: string | null | undefined): Promise<void> {
5773
5767
  let url_ = this.baseUrl + "/links/{id}?";
5774
5768
  if (id === undefined || id === null)
5775
5769
  throw new Error("The parameter 'id' must be defined.");
5776
5770
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
5777
- if (scope === null)
5778
- throw new Error("The parameter 'scope' cannot be null.");
5779
- else if (scope !== undefined)
5771
+ if (scope !== undefined && scope !== null)
5780
5772
  url_ += "scope=" + encodeURIComponent("" + scope) + "&";
5781
5773
  url_ = url_.replace(/[?&]$/, "");
5782
5774
 
@@ -12086,9 +12078,9 @@ export interface IMesProductionScheduleClient {
12086
12078
 
12087
12079
  getAvailableProductionScheduleFilters(request: GetAvailableProductionScheduleFiltersRequest | undefined): Promise<ProductionScheduleFiltersDto>;
12088
12080
 
12089
- listMyCurrentWorkActivities(): Promise<CurrentWorkActivityDto[]>;
12081
+ listMyCurrentWorkActivities(): Promise<CurrentWorkActivityDto>;
12090
12082
 
12091
- listMyCurrentWorkActivitiesV2(): Promise<CurrentWorkActivityV2Dto>;
12083
+ listMyCurrentWorkActivitiesV2(): Promise<CurrentWorkActivityDto>;
12092
12084
 
12093
12085
  startOperations(request: StartOperations): Promise<void>;
12094
12086
 
@@ -12244,7 +12236,7 @@ export class MesProductionScheduleClient extends AuthorizedApiBase implements IM
12244
12236
  return Promise.resolve<ProductionScheduleFiltersDto>(null as any);
12245
12237
  }
12246
12238
 
12247
- listMyCurrentWorkActivities(): Promise<CurrentWorkActivityDto[]> {
12239
+ listMyCurrentWorkActivities(): Promise<CurrentWorkActivityDto> {
12248
12240
  let url_ = this.baseUrl + "/mes/myactivework";
12249
12241
  url_ = url_.replace(/[?&]$/, "");
12250
12242
 
@@ -12262,18 +12254,14 @@ export class MesProductionScheduleClient extends AuthorizedApiBase implements IM
12262
12254
  });
12263
12255
  }
12264
12256
 
12265
- protected processListMyCurrentWorkActivities(response: Response): Promise<CurrentWorkActivityDto[]> {
12257
+ protected processListMyCurrentWorkActivities(response: Response): Promise<CurrentWorkActivityDto> {
12266
12258
  const status = response.status;
12267
12259
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
12268
12260
  if (status === 200) {
12269
12261
  return response.text().then((_responseText) => {
12270
12262
  let result200: any = null;
12271
12263
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
12272
- if (Array.isArray(resultData200)) {
12273
- result200 = [] as any;
12274
- for (let item of resultData200)
12275
- result200!.push(CurrentWorkActivityDto.fromJS(item));
12276
- }
12264
+ result200 = CurrentWorkActivityDto.fromJS(resultData200);
12277
12265
  return result200;
12278
12266
  });
12279
12267
  } else if (status !== 200 && status !== 204) {
@@ -12281,10 +12269,10 @@ export class MesProductionScheduleClient extends AuthorizedApiBase implements IM
12281
12269
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
12282
12270
  });
12283
12271
  }
12284
- return Promise.resolve<CurrentWorkActivityDto[]>(null as any);
12272
+ return Promise.resolve<CurrentWorkActivityDto>(null as any);
12285
12273
  }
12286
12274
 
12287
- listMyCurrentWorkActivitiesV2(): Promise<CurrentWorkActivityV2Dto> {
12275
+ listMyCurrentWorkActivitiesV2(): Promise<CurrentWorkActivityDto> {
12288
12276
  let url_ = this.baseUrl + "/mes/myactivework/v2";
12289
12277
  url_ = url_.replace(/[?&]$/, "");
12290
12278
 
@@ -12302,14 +12290,14 @@ export class MesProductionScheduleClient extends AuthorizedApiBase implements IM
12302
12290
  });
12303
12291
  }
12304
12292
 
12305
- protected processListMyCurrentWorkActivitiesV2(response: Response): Promise<CurrentWorkActivityV2Dto> {
12293
+ protected processListMyCurrentWorkActivitiesV2(response: Response): Promise<CurrentWorkActivityDto> {
12306
12294
  const status = response.status;
12307
12295
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
12308
12296
  if (status === 200) {
12309
12297
  return response.text().then((_responseText) => {
12310
12298
  let result200: any = null;
12311
12299
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
12312
- result200 = CurrentWorkActivityV2Dto.fromJS(resultData200);
12300
+ result200 = CurrentWorkActivityDto.fromJS(resultData200);
12313
12301
  return result200;
12314
12302
  });
12315
12303
  } else if (status !== 200 && status !== 204) {
@@ -12317,7 +12305,7 @@ export class MesProductionScheduleClient extends AuthorizedApiBase implements IM
12317
12305
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
12318
12306
  });
12319
12307
  }
12320
- return Promise.resolve<CurrentWorkActivityV2Dto>(null as any);
12308
+ return Promise.resolve<CurrentWorkActivityDto>(null as any);
12321
12309
  }
12322
12310
 
12323
12311
  startOperations(request: StartOperations): Promise<void> {
@@ -33764,7 +33752,6 @@ export class ProductionOrderDto implements IProductionOrderDto {
33764
33752
  scrappedQuantity!: number;
33765
33753
  planner?: UserDto | null;
33766
33754
  projectLeader?: UserDto | null;
33767
- endLocation?: string | null;
33768
33755
  deliveryLocation?: WarehouseLocationDto | null;
33769
33756
  project?: WorkOrderProjectDto | null;
33770
33757
  startDate?: Date | null;
@@ -33805,7 +33792,6 @@ export class ProductionOrderDto implements IProductionOrderDto {
33805
33792
  this.scrappedQuantity = _data["scrappedQuantity"];
33806
33793
  this.planner = _data["planner"] ? UserDto.fromJS(_data["planner"]) : <any>undefined;
33807
33794
  this.projectLeader = _data["projectLeader"] ? UserDto.fromJS(_data["projectLeader"]) : <any>undefined;
33808
- this.endLocation = _data["endLocation"];
33809
33795
  this.deliveryLocation = _data["deliveryLocation"] ? WarehouseLocationDto.fromJS(_data["deliveryLocation"]) : <any>undefined;
33810
33796
  this.project = _data["project"] ? WorkOrderProjectDto.fromJS(_data["project"]) : <any>undefined;
33811
33797
  this.startDate = _data["startDate"] ? new Date(_data["startDate"].toString()) : <any>undefined;
@@ -33842,7 +33828,6 @@ export class ProductionOrderDto implements IProductionOrderDto {
33842
33828
  data["scrappedQuantity"] = this.scrappedQuantity;
33843
33829
  data["planner"] = this.planner ? this.planner.toJSON() : <any>undefined;
33844
33830
  data["projectLeader"] = this.projectLeader ? this.projectLeader.toJSON() : <any>undefined;
33845
- data["endLocation"] = this.endLocation;
33846
33831
  data["deliveryLocation"] = this.deliveryLocation ? this.deliveryLocation.toJSON() : <any>undefined;
33847
33832
  data["project"] = this.project ? this.project.toJSON() : <any>undefined;
33848
33833
  data["startDate"] = this.startDate ? this.startDate.toISOString() : <any>undefined;
@@ -33868,7 +33853,6 @@ export interface IProductionOrderDto {
33868
33853
  scrappedQuantity: number;
33869
33854
  planner?: UserDto | null;
33870
33855
  projectLeader?: UserDto | null;
33871
- endLocation?: string | null;
33872
33856
  deliveryLocation?: WarehouseLocationDto | null;
33873
33857
  project?: WorkOrderProjectDto | null;
33874
33858
  startDate?: Date | null;
@@ -34918,7 +34902,6 @@ export class ProductionScheduleOperationDto implements IProductionScheduleOperat
34918
34902
  program?: string | null;
34919
34903
  toolNumber?: string | null;
34920
34904
  prerequisites!: OperationPrerequisitesDto;
34921
- endLocation?: string | null;
34922
34905
  deliveryLocation?: WarehouseLocationDto | null;
34923
34906
  drawing?: DrawingDto | null;
34924
34907
  drawingNumber?: string | null;
@@ -34978,7 +34961,6 @@ export class ProductionScheduleOperationDto implements IProductionScheduleOperat
34978
34961
  this.program = _data["program"];
34979
34962
  this.toolNumber = _data["toolNumber"];
34980
34963
  this.prerequisites = _data["prerequisites"] ? OperationPrerequisitesDto.fromJS(_data["prerequisites"]) : new OperationPrerequisitesDto();
34981
- this.endLocation = _data["endLocation"];
34982
34964
  this.deliveryLocation = _data["deliveryLocation"] ? WarehouseLocationDto.fromJS(_data["deliveryLocation"]) : <any>undefined;
34983
34965
  this.drawing = _data["drawing"] ? DrawingDto.fromJS(_data["drawing"]) : <any>undefined;
34984
34966
  this.drawingNumber = _data["drawingNumber"];
@@ -35035,7 +35017,6 @@ export class ProductionScheduleOperationDto implements IProductionScheduleOperat
35035
35017
  data["program"] = this.program;
35036
35018
  data["toolNumber"] = this.toolNumber;
35037
35019
  data["prerequisites"] = this.prerequisites ? this.prerequisites.toJSON() : <any>undefined;
35038
- data["endLocation"] = this.endLocation;
35039
35020
  data["deliveryLocation"] = this.deliveryLocation ? this.deliveryLocation.toJSON() : <any>undefined;
35040
35021
  data["drawing"] = this.drawing ? this.drawing.toJSON() : <any>undefined;
35041
35022
  data["drawingNumber"] = this.drawingNumber;
@@ -35085,7 +35066,6 @@ export interface IProductionScheduleOperationDto {
35085
35066
  program?: string | null;
35086
35067
  toolNumber?: string | null;
35087
35068
  prerequisites: OperationPrerequisitesDto;
35088
- endLocation?: string | null;
35089
35069
  deliveryLocation?: WarehouseLocationDto | null;
35090
35070
  drawing?: DrawingDto | null;
35091
35071
  drawingNumber?: string | null;
@@ -35834,116 +35814,10 @@ export interface IGetAvailableProductionScheduleFiltersRequest {
35834
35814
  }
35835
35815
 
35836
35816
  export class CurrentWorkActivityDto implements ICurrentWorkActivityDto {
35837
- workActivity!: WorkActivityDto;
35838
- operation!: ProductionScheduleOperationDto;
35839
-
35840
- constructor(data?: ICurrentWorkActivityDto) {
35841
- if (data) {
35842
- for (var property in data) {
35843
- if (data.hasOwnProperty(property))
35844
- (<any>this)[property] = (<any>data)[property];
35845
- }
35846
- }
35847
- if (!data) {
35848
- this.workActivity = new WorkActivityDto();
35849
- this.operation = new ProductionScheduleOperationDto();
35850
- }
35851
- }
35852
-
35853
- init(_data?: any) {
35854
- if (_data) {
35855
- this.workActivity = _data["workActivity"] ? WorkActivityDto.fromJS(_data["workActivity"]) : new WorkActivityDto();
35856
- this.operation = _data["operation"] ? ProductionScheduleOperationDto.fromJS(_data["operation"]) : new ProductionScheduleOperationDto();
35857
- }
35858
- }
35859
-
35860
- static fromJS(data: any): CurrentWorkActivityDto {
35861
- data = typeof data === 'object' ? data : {};
35862
- let result = new CurrentWorkActivityDto();
35863
- result.init(data);
35864
- return result;
35865
- }
35866
-
35867
- toJSON(data?: any) {
35868
- data = typeof data === 'object' ? data : {};
35869
- data["workActivity"] = this.workActivity ? this.workActivity.toJSON() : <any>undefined;
35870
- data["operation"] = this.operation ? this.operation.toJSON() : <any>undefined;
35871
- return data;
35872
- }
35873
- }
35874
-
35875
- export interface ICurrentWorkActivityDto {
35876
- workActivity: WorkActivityDto;
35877
- operation: ProductionScheduleOperationDto;
35878
- }
35879
-
35880
- export class WorkActivityDto implements IWorkActivityDto {
35881
- id!: string;
35882
- startTime!: Date;
35883
- endTime?: Date | null;
35884
- user?: UserDto | null;
35885
- personnelNumber!: string;
35886
- workType!: WorkTypeDto;
35887
- startedQuantity?: number | null;
35888
-
35889
- constructor(data?: IWorkActivityDto) {
35890
- if (data) {
35891
- for (var property in data) {
35892
- if (data.hasOwnProperty(property))
35893
- (<any>this)[property] = (<any>data)[property];
35894
- }
35895
- }
35896
- }
35897
-
35898
- init(_data?: any) {
35899
- if (_data) {
35900
- this.id = _data["id"];
35901
- this.startTime = _data["startTime"] ? new Date(_data["startTime"].toString()) : <any>undefined;
35902
- this.endTime = _data["endTime"] ? new Date(_data["endTime"].toString()) : <any>undefined;
35903
- this.user = _data["user"] ? UserDto.fromJS(_data["user"]) : <any>undefined;
35904
- this.personnelNumber = _data["personnelNumber"];
35905
- this.workType = _data["workType"];
35906
- this.startedQuantity = _data["startedQuantity"];
35907
- }
35908
- }
35909
-
35910
- static fromJS(data: any): WorkActivityDto {
35911
- data = typeof data === 'object' ? data : {};
35912
- let result = new WorkActivityDto();
35913
- result.init(data);
35914
- return result;
35915
- }
35916
-
35917
- toJSON(data?: any) {
35918
- data = typeof data === 'object' ? data : {};
35919
- data["id"] = this.id;
35920
- data["startTime"] = this.startTime ? this.startTime.toISOString() : <any>undefined;
35921
- data["endTime"] = this.endTime ? this.endTime.toISOString() : <any>undefined;
35922
- data["user"] = this.user ? this.user.toJSON() : <any>undefined;
35923
- data["personnelNumber"] = this.personnelNumber;
35924
- data["workType"] = this.workType;
35925
- data["startedQuantity"] = this.startedQuantity;
35926
- return data;
35927
- }
35928
- }
35929
-
35930
- export interface IWorkActivityDto {
35931
- id: string;
35932
- startTime: Date;
35933
- endTime?: Date | null;
35934
- user?: UserDto | null;
35935
- personnelNumber: string;
35936
- workType: WorkTypeDto;
35937
- startedQuantity?: number | null;
35938
- }
35939
-
35940
- export type WorkTypeDto = "None" | "Production" | "Setup";
35941
-
35942
- export class CurrentWorkActivityV2Dto implements ICurrentWorkActivityV2Dto {
35943
35817
  activeWork!: ActiveWorkDto[];
35944
35818
  stoppedWork!: StoppedWorkDto[];
35945
35819
 
35946
- constructor(data?: ICurrentWorkActivityV2Dto) {
35820
+ constructor(data?: ICurrentWorkActivityDto) {
35947
35821
  if (data) {
35948
35822
  for (var property in data) {
35949
35823
  if (data.hasOwnProperty(property))
@@ -35971,9 +35845,9 @@ export class CurrentWorkActivityV2Dto implements ICurrentWorkActivityV2Dto {
35971
35845
  }
35972
35846
  }
35973
35847
 
35974
- static fromJS(data: any): CurrentWorkActivityV2Dto {
35848
+ static fromJS(data: any): CurrentWorkActivityDto {
35975
35849
  data = typeof data === 'object' ? data : {};
35976
- let result = new CurrentWorkActivityV2Dto();
35850
+ let result = new CurrentWorkActivityDto();
35977
35851
  result.init(data);
35978
35852
  return result;
35979
35853
  }
@@ -35994,7 +35868,7 @@ export class CurrentWorkActivityV2Dto implements ICurrentWorkActivityV2Dto {
35994
35868
  }
35995
35869
  }
35996
35870
 
35997
- export interface ICurrentWorkActivityV2Dto {
35871
+ export interface ICurrentWorkActivityDto {
35998
35872
  activeWork: ActiveWorkDto[];
35999
35873
  stoppedWork: StoppedWorkDto[];
36000
35874
  }
@@ -36107,6 +35981,8 @@ export interface ICurrentWorkDto {
36107
35981
  workType: WorkTypeDto;
36108
35982
  }
36109
35983
 
35984
+ export type WorkTypeDto = "None" | "Production" | "Setup";
35985
+
36110
35986
  export class StoppedWorkDto implements IStoppedWorkDto {
36111
35987
  operation!: ProductionScheduleOperationDto;
36112
35988
  lastWorkActivity!: CurrentWorkDto;
@@ -43771,7 +43647,6 @@ export class UpsertWorkorderV2 implements IUpsertWorkorderV2 {
43771
43647
  customerOrderReference?: WorkorderCustomerOrderReferenceDto | null;
43772
43648
  planner?: UserDto | null;
43773
43649
  projectLeader?: UserDto | null;
43774
- endLocation?: string | null;
43775
43650
  deliveryLocation?: WarehouseLocationDto | null;
43776
43651
  project?: WorkOrderProjectDto | null;
43777
43652
  startDate?: Date | null;
@@ -43812,7 +43687,6 @@ export class UpsertWorkorderV2 implements IUpsertWorkorderV2 {
43812
43687
  this.customerOrderReference = _data["customerOrderReference"] ? WorkorderCustomerOrderReferenceDto.fromJS(_data["customerOrderReference"]) : <any>undefined;
43813
43688
  this.planner = _data["planner"] ? UserDto.fromJS(_data["planner"]) : <any>undefined;
43814
43689
  this.projectLeader = _data["projectLeader"] ? UserDto.fromJS(_data["projectLeader"]) : <any>undefined;
43815
- this.endLocation = _data["endLocation"];
43816
43690
  this.deliveryLocation = _data["deliveryLocation"] ? WarehouseLocationDto.fromJS(_data["deliveryLocation"]) : <any>undefined;
43817
43691
  this.project = _data["project"] ? WorkOrderProjectDto.fromJS(_data["project"]) : <any>undefined;
43818
43692
  this.startDate = _data["startDate"] ? new Date(_data["startDate"].toString()) : <any>undefined;
@@ -43849,7 +43723,6 @@ export class UpsertWorkorderV2 implements IUpsertWorkorderV2 {
43849
43723
  data["customerOrderReference"] = this.customerOrderReference ? this.customerOrderReference.toJSON() : <any>undefined;
43850
43724
  data["planner"] = this.planner ? this.planner.toJSON() : <any>undefined;
43851
43725
  data["projectLeader"] = this.projectLeader ? this.projectLeader.toJSON() : <any>undefined;
43852
- data["endLocation"] = this.endLocation;
43853
43726
  data["deliveryLocation"] = this.deliveryLocation ? this.deliveryLocation.toJSON() : <any>undefined;
43854
43727
  data["project"] = this.project ? this.project.toJSON() : <any>undefined;
43855
43728
  data["startDate"] = this.startDate ? this.startDate.toISOString() : <any>undefined;
@@ -43875,7 +43748,6 @@ export interface IUpsertWorkorderV2 {
43875
43748
  customerOrderReference?: WorkorderCustomerOrderReferenceDto | null;
43876
43749
  planner?: UserDto | null;
43877
43750
  projectLeader?: UserDto | null;
43878
- endLocation?: string | null;
43879
43751
  deliveryLocation?: WarehouseLocationDto | null;
43880
43752
  project?: WorkOrderProjectDto | null;
43881
43753
  startDate?: Date | null;