@ignos/api-client 20250910.0.12573-alpha → 20250911.0.12585

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.
@@ -2359,11 +2359,7 @@ export interface IMeasurementFormsInstancesClient {
2359
2359
  listSupplierMeasurementFormInstances(supplierId: string): Promise<MeasurementFormSupplierAccessInstanceDto[]>;
2360
2360
  upsertSupplierToMeasurmentFormInstance(id: string, supplierId: string, request: UpsertSupplierToMeasurementFormInstanceRequest): Promise<void>;
2361
2361
  removeSupplierFromMeasurmentFormInstance(id: string, supplierId: string): Promise<void>;
2362
- /**
2363
- * @deprecated
2364
- */
2365
2362
  exportDimensionReport(id: string, request: ExportDimensionReportRequest): Promise<DownloadDto>;
2366
- exportDimensionReportV2(id: string, request: ExportDimensionReportV2Request): Promise<DownloadDto>;
2367
2363
  exportDimensionReportValues(id: string): Promise<DownloadDto>;
2368
2364
  toggleSchemaInstanceElementDocumentedExternallyOverride(id: string, schemaId: string, elementId: string, tenantId: string | null | undefined): Promise<void>;
2369
2365
  }
@@ -2428,13 +2424,8 @@ export declare class MeasurementFormsInstancesClient extends AuthorizedApiBase i
2428
2424
  protected processUpsertSupplierToMeasurmentFormInstance(response: Response): Promise<void>;
2429
2425
  removeSupplierFromMeasurmentFormInstance(id: string, supplierId: string): Promise<void>;
2430
2426
  protected processRemoveSupplierFromMeasurmentFormInstance(response: Response): Promise<void>;
2431
- /**
2432
- * @deprecated
2433
- */
2434
2427
  exportDimensionReport(id: string, request: ExportDimensionReportRequest): Promise<DownloadDto>;
2435
2428
  protected processExportDimensionReport(response: Response): Promise<DownloadDto>;
2436
- exportDimensionReportV2(id: string, request: ExportDimensionReportV2Request): Promise<DownloadDto>;
2437
- protected processExportDimensionReportV2(response: Response): Promise<DownloadDto>;
2438
2429
  exportDimensionReportValues(id: string): Promise<DownloadDto>;
2439
2430
  protected processExportDimensionReportValues(response: Response): Promise<DownloadDto>;
2440
2431
  toggleSchemaInstanceElementDocumentedExternallyOverride(id: string, schemaId: string, elementId: string, tenantId: string | null | undefined): Promise<void>;
@@ -3112,6 +3103,8 @@ export declare class WorkOrderDatapoint implements IWorkOrderDatapoint {
3112
3103
  subType?: string | null;
3113
3104
  startTime: number;
3114
3105
  endTime?: number | null;
3106
+ partName?: string | null;
3107
+ partNumber?: string | null;
3115
3108
  metaData?: {
3116
3109
  [key: string]: string;
3117
3110
  } | null;
@@ -3127,6 +3120,8 @@ export interface IWorkOrderDatapoint {
3127
3120
  subType?: string | null;
3128
3121
  startTime: number;
3129
3122
  endTime?: number | null;
3123
+ partName?: string | null;
3124
+ partNumber?: string | null;
3130
3125
  metaData?: {
3131
3126
  [key: string]: string;
3132
3127
  } | null;
@@ -6379,21 +6374,21 @@ export interface IDowntimeMachineStateDto {
6379
6374
  endTime: Date;
6380
6375
  }
6381
6376
  export declare class MachineErpDataListDto implements IMachineErpDataListDto {
6382
- machines?: SingleMachineErpDataListDto[];
6377
+ machines: SingleMachineErpDataListDto[];
6383
6378
  constructor(data?: IMachineErpDataListDto);
6384
6379
  init(_data?: any): void;
6385
6380
  static fromJS(data: any): MachineErpDataListDto;
6386
6381
  toJSON(data?: any): any;
6387
6382
  }
6388
6383
  export interface IMachineErpDataListDto {
6389
- machines?: SingleMachineErpDataListDto[];
6384
+ machines: SingleMachineErpDataListDto[];
6390
6385
  }
6391
6386
  export declare class SingleMachineErpDataListDto implements ISingleMachineErpDataListDto {
6392
6387
  assetId: number;
6393
6388
  name: string;
6394
6389
  description?: string;
6395
- machineErpData: MachineErpDataDto;
6396
6390
  activeOrders: MachineErpDataDto[];
6391
+ lastActiveEvent?: WorkorderOperationEventDto | null;
6397
6392
  constructor(data?: ISingleMachineErpDataListDto);
6398
6393
  init(_data?: any): void;
6399
6394
  static fromJS(data: any): SingleMachineErpDataListDto;
@@ -6403,8 +6398,8 @@ export interface ISingleMachineErpDataListDto {
6403
6398
  assetId: number;
6404
6399
  name: string;
6405
6400
  description?: string;
6406
- machineErpData: MachineErpDataDto;
6407
6401
  activeOrders: MachineErpDataDto[];
6402
+ lastActiveEvent?: WorkorderOperationEventDto | null;
6408
6403
  }
6409
6404
  export declare class MachineErpDataDto implements IMachineErpDataDto {
6410
6405
  workOrderId: string;
@@ -6456,6 +6451,42 @@ export interface IWorkOrderProjectDto {
6456
6451
  name?: string | null;
6457
6452
  projectManager?: string | null;
6458
6453
  }
6454
+ export declare class WorkorderOperationEventDto implements IWorkorderOperationEventDto {
6455
+ eventId: string;
6456
+ externalId?: string | null;
6457
+ companyId?: string | null;
6458
+ workorder: string;
6459
+ operation: number;
6460
+ startTime: Date;
6461
+ endTime?: Date | null;
6462
+ isSetup: boolean;
6463
+ employee?: EmployeeDto | null;
6464
+ resourceId: string;
6465
+ description?: string;
6466
+ part?: PartDto | null;
6467
+ workorderDescription?: string | null;
6468
+ operationDescription?: string | null;
6469
+ constructor(data?: IWorkorderOperationEventDto);
6470
+ init(_data?: any): void;
6471
+ static fromJS(data: any): WorkorderOperationEventDto;
6472
+ toJSON(data?: any): any;
6473
+ }
6474
+ export interface IWorkorderOperationEventDto {
6475
+ eventId: string;
6476
+ externalId?: string | null;
6477
+ companyId?: string | null;
6478
+ workorder: string;
6479
+ operation: number;
6480
+ startTime: Date;
6481
+ endTime?: Date | null;
6482
+ isSetup: boolean;
6483
+ employee?: EmployeeDto | null;
6484
+ resourceId: string;
6485
+ description?: string;
6486
+ part?: PartDto | null;
6487
+ workorderDescription?: string | null;
6488
+ operationDescription?: string | null;
6489
+ }
6459
6490
  export declare class UtilizationSummaryDto implements IUtilizationSummaryDto {
6460
6491
  factory: FactoryUtilizationDto;
6461
6492
  groups: MachineGroupUtilizationDto[];
@@ -13764,37 +13795,6 @@ export interface IExportDimensionReportRequest {
13764
13795
  workOrder?: string | null;
13765
13796
  comment?: string | null;
13766
13797
  }
13767
- export declare class ExportDimensionReportV2Request implements IExportDimensionReportV2Request {
13768
- tenantId?: string;
13769
- type?: DimensionReportType;
13770
- extras?: DimensionReportExtras | null;
13771
- specificSerialNumbers?: string[] | null;
13772
- constructor(data?: IExportDimensionReportV2Request);
13773
- init(_data?: any): void;
13774
- static fromJS(data: any): ExportDimensionReportV2Request;
13775
- toJSON(data?: any): any;
13776
- }
13777
- export interface IExportDimensionReportV2Request {
13778
- tenantId?: string;
13779
- type?: DimensionReportType;
13780
- extras?: DimensionReportExtras | null;
13781
- specificSerialNumbers?: string[] | null;
13782
- }
13783
- export type DimensionReportType = 0 | 1 | 2 | 3;
13784
- export declare class DimensionReportExtras implements IDimensionReportExtras {
13785
- customerPO?: string | null;
13786
- workOrderNumber?: string | null;
13787
- comment?: string | null;
13788
- constructor(data?: IDimensionReportExtras);
13789
- init(_data?: any): void;
13790
- static fromJS(data: any): DimensionReportExtras;
13791
- toJSON(data?: any): any;
13792
- }
13793
- export interface IDimensionReportExtras {
13794
- customerPO?: string | null;
13795
- workOrderNumber?: string | null;
13796
- comment?: string | null;
13797
- }
13798
13798
  export declare class ProductionCompanyDto implements IProductionCompanyDto {
13799
13799
  id: string;
13800
13800
  name: string;
@@ -14237,42 +14237,6 @@ export interface IStopWorkOperationRequest {
14237
14237
  resourceId: string;
14238
14238
  companyId?: string | null;
14239
14239
  }
14240
- export declare class WorkorderOperationEventDto implements IWorkorderOperationEventDto {
14241
- eventId: string;
14242
- externalId?: string | null;
14243
- companyId?: string | null;
14244
- workorder: string;
14245
- operation: number;
14246
- startTime: Date;
14247
- endTime?: Date | null;
14248
- isSetup: boolean;
14249
- employee?: EmployeeDto | null;
14250
- resourceId: string;
14251
- description?: string;
14252
- part?: PartDto | null;
14253
- workorderDescription?: string | null;
14254
- operationDescription?: string | null;
14255
- constructor(data?: IWorkorderOperationEventDto);
14256
- init(_data?: any): void;
14257
- static fromJS(data: any): WorkorderOperationEventDto;
14258
- toJSON(data?: any): any;
14259
- }
14260
- export interface IWorkorderOperationEventDto {
14261
- eventId: string;
14262
- externalId?: string | null;
14263
- companyId?: string | null;
14264
- workorder: string;
14265
- operation: number;
14266
- startTime: Date;
14267
- endTime?: Date | null;
14268
- isSetup: boolean;
14269
- employee?: EmployeeDto | null;
14270
- resourceId: string;
14271
- description?: string;
14272
- part?: PartDto | null;
14273
- workorderDescription?: string | null;
14274
- operationDescription?: string | null;
14275
- }
14276
14240
  export declare class RegisterWorkorderOperationEventRequest implements IRegisterWorkorderOperationEventRequest {
14277
14241
  workorderDescription?: string | null;
14278
14242
  operationDescription?: string | null;
@@ -21158,9 +21158,6 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
21158
21158
  }
21159
21159
  return Promise.resolve(null);
21160
21160
  }
21161
- /**
21162
- * @deprecated
21163
- */
21164
21161
  exportDimensionReport(id, request) {
21165
21162
  let url_ = this.baseUrl + "/measurementforms/instances/{id}/report";
21166
21163
  if (id === undefined || id === null)
@@ -21204,49 +21201,6 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
21204
21201
  }
21205
21202
  return Promise.resolve(null);
21206
21203
  }
21207
- exportDimensionReportV2(id, request) {
21208
- let url_ = this.baseUrl + "/measurementforms/instances/{id}/reportv2";
21209
- if (id === undefined || id === null)
21210
- throw new Error("The parameter 'id' must be defined.");
21211
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
21212
- url_ = url_.replace(/[?&]$/, "");
21213
- const content_ = JSON.stringify(request);
21214
- let options_ = {
21215
- body: content_,
21216
- method: "POST",
21217
- headers: {
21218
- "Content-Type": "application/json",
21219
- "Accept": "application/json"
21220
- }
21221
- };
21222
- return this.transformOptions(options_).then(transformedOptions_ => {
21223
- return this.http.fetch(url_, transformedOptions_);
21224
- }).then((_response) => {
21225
- return this.processExportDimensionReportV2(_response);
21226
- });
21227
- }
21228
- processExportDimensionReportV2(response) {
21229
- const status = response.status;
21230
- let _headers = {};
21231
- if (response.headers && response.headers.forEach) {
21232
- response.headers.forEach((v, k) => _headers[k] = v);
21233
- }
21234
- ;
21235
- if (status === 200) {
21236
- return response.text().then((_responseText) => {
21237
- let result200 = null;
21238
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
21239
- result200 = DownloadDto.fromJS(resultData200);
21240
- return result200;
21241
- });
21242
- }
21243
- else if (status !== 200 && status !== 204) {
21244
- return response.text().then((_responseText) => {
21245
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
21246
- });
21247
- }
21248
- return Promise.resolve(null);
21249
- }
21250
21204
  exportDimensionReportValues(id) {
21251
21205
  let url_ = this.baseUrl + "/measurementforms/instances/{id}/exportvalues";
21252
21206
  if (id === undefined || id === null)
@@ -23912,6 +23866,8 @@ export class WorkOrderDatapoint {
23912
23866
  this.subType = _data["subType"];
23913
23867
  this.startTime = _data["startTime"];
23914
23868
  this.endTime = _data["endTime"];
23869
+ this.partName = _data["partName"];
23870
+ this.partNumber = _data["partNumber"];
23915
23871
  if (_data["metaData"]) {
23916
23872
  this.metaData = {};
23917
23873
  for (let key in _data["metaData"]) {
@@ -23935,6 +23891,8 @@ export class WorkOrderDatapoint {
23935
23891
  data["subType"] = this.subType;
23936
23892
  data["startTime"] = this.startTime;
23937
23893
  data["endTime"] = this.endTime;
23894
+ data["partName"] = this.partName;
23895
+ data["partNumber"] = this.partNumber;
23938
23896
  if (this.metaData) {
23939
23897
  data["metaData"] = {};
23940
23898
  for (let key in this.metaData) {
@@ -31004,6 +30962,9 @@ export class MachineErpDataListDto {
31004
30962
  this[property] = data[property];
31005
30963
  }
31006
30964
  }
30965
+ if (!data) {
30966
+ this.machines = [];
30967
+ }
31007
30968
  }
31008
30969
  init(_data) {
31009
30970
  if (_data) {
@@ -31039,7 +31000,6 @@ export class SingleMachineErpDataListDto {
31039
31000
  }
31040
31001
  }
31041
31002
  if (!data) {
31042
- this.machineErpData = new MachineErpDataDto();
31043
31003
  this.activeOrders = [];
31044
31004
  }
31045
31005
  }
@@ -31048,12 +31008,12 @@ export class SingleMachineErpDataListDto {
31048
31008
  this.assetId = _data["assetId"];
31049
31009
  this.name = _data["name"];
31050
31010
  this.description = _data["description"];
31051
- this.machineErpData = _data["machineErpData"] ? MachineErpDataDto.fromJS(_data["machineErpData"]) : new MachineErpDataDto();
31052
31011
  if (Array.isArray(_data["activeOrders"])) {
31053
31012
  this.activeOrders = [];
31054
31013
  for (let item of _data["activeOrders"])
31055
31014
  this.activeOrders.push(MachineErpDataDto.fromJS(item));
31056
31015
  }
31016
+ this.lastActiveEvent = _data["lastActiveEvent"] ? WorkorderOperationEventDto.fromJS(_data["lastActiveEvent"]) : undefined;
31057
31017
  }
31058
31018
  }
31059
31019
  static fromJS(data) {
@@ -31067,12 +31027,12 @@ export class SingleMachineErpDataListDto {
31067
31027
  data["assetId"] = this.assetId;
31068
31028
  data["name"] = this.name;
31069
31029
  data["description"] = this.description;
31070
- data["machineErpData"] = this.machineErpData ? this.machineErpData.toJSON() : undefined;
31071
31030
  if (Array.isArray(this.activeOrders)) {
31072
31031
  data["activeOrders"] = [];
31073
31032
  for (let item of this.activeOrders)
31074
31033
  data["activeOrders"].push(item.toJSON());
31075
31034
  }
31035
+ data["lastActiveEvent"] = this.lastActiveEvent ? this.lastActiveEvent.toJSON() : undefined;
31076
31036
  return data;
31077
31037
  }
31078
31038
  }
@@ -31161,6 +31121,58 @@ export class WorkOrderProjectDto {
31161
31121
  return data;
31162
31122
  }
31163
31123
  }
31124
+ export class WorkorderOperationEventDto {
31125
+ constructor(data) {
31126
+ if (data) {
31127
+ for (var property in data) {
31128
+ if (data.hasOwnProperty(property))
31129
+ this[property] = data[property];
31130
+ }
31131
+ }
31132
+ }
31133
+ init(_data) {
31134
+ if (_data) {
31135
+ this.eventId = _data["eventId"];
31136
+ this.externalId = _data["externalId"];
31137
+ this.companyId = _data["companyId"];
31138
+ this.workorder = _data["workorder"];
31139
+ this.operation = _data["operation"];
31140
+ this.startTime = _data["startTime"] ? new Date(_data["startTime"].toString()) : undefined;
31141
+ this.endTime = _data["endTime"] ? new Date(_data["endTime"].toString()) : undefined;
31142
+ this.isSetup = _data["isSetup"];
31143
+ this.employee = _data["employee"] ? EmployeeDto.fromJS(_data["employee"]) : undefined;
31144
+ this.resourceId = _data["resourceId"];
31145
+ this.description = _data["description"];
31146
+ this.part = _data["part"] ? PartDto.fromJS(_data["part"]) : undefined;
31147
+ this.workorderDescription = _data["workorderDescription"];
31148
+ this.operationDescription = _data["operationDescription"];
31149
+ }
31150
+ }
31151
+ static fromJS(data) {
31152
+ data = typeof data === 'object' ? data : {};
31153
+ let result = new WorkorderOperationEventDto();
31154
+ result.init(data);
31155
+ return result;
31156
+ }
31157
+ toJSON(data) {
31158
+ data = typeof data === 'object' ? data : {};
31159
+ data["eventId"] = this.eventId;
31160
+ data["externalId"] = this.externalId;
31161
+ data["companyId"] = this.companyId;
31162
+ data["workorder"] = this.workorder;
31163
+ data["operation"] = this.operation;
31164
+ data["startTime"] = this.startTime ? this.startTime.toISOString() : undefined;
31165
+ data["endTime"] = this.endTime ? this.endTime.toISOString() : undefined;
31166
+ data["isSetup"] = this.isSetup;
31167
+ data["employee"] = this.employee ? this.employee.toJSON() : undefined;
31168
+ data["resourceId"] = this.resourceId;
31169
+ data["description"] = this.description;
31170
+ data["part"] = this.part ? this.part.toJSON() : undefined;
31171
+ data["workorderDescription"] = this.workorderDescription;
31172
+ data["operationDescription"] = this.operationDescription;
31173
+ return data;
31174
+ }
31175
+ }
31164
31176
  export class UtilizationSummaryDto {
31165
31177
  constructor(data) {
31166
31178
  if (data) {
@@ -45814,76 +45826,6 @@ export class ExportDimensionReportRequest {
45814
45826
  return data;
45815
45827
  }
45816
45828
  }
45817
- export class ExportDimensionReportV2Request {
45818
- constructor(data) {
45819
- if (data) {
45820
- for (var property in data) {
45821
- if (data.hasOwnProperty(property))
45822
- this[property] = data[property];
45823
- }
45824
- }
45825
- }
45826
- init(_data) {
45827
- if (_data) {
45828
- this.tenantId = _data["tenantId"];
45829
- this.type = _data["type"];
45830
- this.extras = _data["extras"] ? DimensionReportExtras.fromJS(_data["extras"]) : undefined;
45831
- if (Array.isArray(_data["specificSerialNumbers"])) {
45832
- this.specificSerialNumbers = [];
45833
- for (let item of _data["specificSerialNumbers"])
45834
- this.specificSerialNumbers.push(item);
45835
- }
45836
- }
45837
- }
45838
- static fromJS(data) {
45839
- data = typeof data === 'object' ? data : {};
45840
- let result = new ExportDimensionReportV2Request();
45841
- result.init(data);
45842
- return result;
45843
- }
45844
- toJSON(data) {
45845
- data = typeof data === 'object' ? data : {};
45846
- data["tenantId"] = this.tenantId;
45847
- data["type"] = this.type;
45848
- data["extras"] = this.extras ? this.extras.toJSON() : undefined;
45849
- if (Array.isArray(this.specificSerialNumbers)) {
45850
- data["specificSerialNumbers"] = [];
45851
- for (let item of this.specificSerialNumbers)
45852
- data["specificSerialNumbers"].push(item);
45853
- }
45854
- return data;
45855
- }
45856
- }
45857
- export class DimensionReportExtras {
45858
- constructor(data) {
45859
- if (data) {
45860
- for (var property in data) {
45861
- if (data.hasOwnProperty(property))
45862
- this[property] = data[property];
45863
- }
45864
- }
45865
- }
45866
- init(_data) {
45867
- if (_data) {
45868
- this.customerPO = _data["customerPO"];
45869
- this.workOrderNumber = _data["workOrderNumber"];
45870
- this.comment = _data["comment"];
45871
- }
45872
- }
45873
- static fromJS(data) {
45874
- data = typeof data === 'object' ? data : {};
45875
- let result = new DimensionReportExtras();
45876
- result.init(data);
45877
- return result;
45878
- }
45879
- toJSON(data) {
45880
- data = typeof data === 'object' ? data : {};
45881
- data["customerPO"] = this.customerPO;
45882
- data["workOrderNumber"] = this.workOrderNumber;
45883
- data["comment"] = this.comment;
45884
- return data;
45885
- }
45886
- }
45887
45829
  export class ProductionCompanyDto {
45888
45830
  constructor(data) {
45889
45831
  if (data) {
@@ -46850,58 +46792,6 @@ export class StopWorkOperationRequest {
46850
46792
  return data;
46851
46793
  }
46852
46794
  }
46853
- export class WorkorderOperationEventDto {
46854
- constructor(data) {
46855
- if (data) {
46856
- for (var property in data) {
46857
- if (data.hasOwnProperty(property))
46858
- this[property] = data[property];
46859
- }
46860
- }
46861
- }
46862
- init(_data) {
46863
- if (_data) {
46864
- this.eventId = _data["eventId"];
46865
- this.externalId = _data["externalId"];
46866
- this.companyId = _data["companyId"];
46867
- this.workorder = _data["workorder"];
46868
- this.operation = _data["operation"];
46869
- this.startTime = _data["startTime"] ? new Date(_data["startTime"].toString()) : undefined;
46870
- this.endTime = _data["endTime"] ? new Date(_data["endTime"].toString()) : undefined;
46871
- this.isSetup = _data["isSetup"];
46872
- this.employee = _data["employee"] ? EmployeeDto.fromJS(_data["employee"]) : undefined;
46873
- this.resourceId = _data["resourceId"];
46874
- this.description = _data["description"];
46875
- this.part = _data["part"] ? PartDto.fromJS(_data["part"]) : undefined;
46876
- this.workorderDescription = _data["workorderDescription"];
46877
- this.operationDescription = _data["operationDescription"];
46878
- }
46879
- }
46880
- static fromJS(data) {
46881
- data = typeof data === 'object' ? data : {};
46882
- let result = new WorkorderOperationEventDto();
46883
- result.init(data);
46884
- return result;
46885
- }
46886
- toJSON(data) {
46887
- data = typeof data === 'object' ? data : {};
46888
- data["eventId"] = this.eventId;
46889
- data["externalId"] = this.externalId;
46890
- data["companyId"] = this.companyId;
46891
- data["workorder"] = this.workorder;
46892
- data["operation"] = this.operation;
46893
- data["startTime"] = this.startTime ? this.startTime.toISOString() : undefined;
46894
- data["endTime"] = this.endTime ? this.endTime.toISOString() : undefined;
46895
- data["isSetup"] = this.isSetup;
46896
- data["employee"] = this.employee ? this.employee.toJSON() : undefined;
46897
- data["resourceId"] = this.resourceId;
46898
- data["description"] = this.description;
46899
- data["part"] = this.part ? this.part.toJSON() : undefined;
46900
- data["workorderDescription"] = this.workorderDescription;
46901
- data["operationDescription"] = this.operationDescription;
46902
- return data;
46903
- }
46904
- }
46905
46795
  export class RegisterWorkorderOperationEventRequest {
46906
46796
  constructor(data) {
46907
46797
  if (data) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20250910.0.12573-alpha",
3
+ "version": "20250911.0.12585",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -21347,13 +21347,8 @@ export interface IMeasurementFormsInstancesClient {
21347
21347
 
21348
21348
  removeSupplierFromMeasurmentFormInstance(id: string, supplierId: string): Promise<void>;
21349
21349
 
21350
- /**
21351
- * @deprecated
21352
- */
21353
21350
  exportDimensionReport(id: string, request: ExportDimensionReportRequest): Promise<DownloadDto>;
21354
21351
 
21355
- exportDimensionReportV2(id: string, request: ExportDimensionReportV2Request): Promise<DownloadDto>;
21356
-
21357
21352
  exportDimensionReportValues(id: string): Promise<DownloadDto>;
21358
21353
 
21359
21354
  toggleSchemaInstanceElementDocumentedExternallyOverride(id: string, schemaId: string, elementId: string, tenantId: string | null | undefined): Promise<void>;
@@ -22527,9 +22522,6 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
22527
22522
  return Promise.resolve<void>(null as any);
22528
22523
  }
22529
22524
 
22530
- /**
22531
- * @deprecated
22532
- */
22533
22525
  exportDimensionReport(id: string, request: ExportDimensionReportRequest): Promise<DownloadDto> {
22534
22526
  let url_ = this.baseUrl + "/measurementforms/instances/{id}/report";
22535
22527
  if (id === undefined || id === null)
@@ -22573,49 +22565,6 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
22573
22565
  return Promise.resolve<DownloadDto>(null as any);
22574
22566
  }
22575
22567
 
22576
- exportDimensionReportV2(id: string, request: ExportDimensionReportV2Request): Promise<DownloadDto> {
22577
- let url_ = this.baseUrl + "/measurementforms/instances/{id}/reportv2";
22578
- if (id === undefined || id === null)
22579
- throw new Error("The parameter 'id' must be defined.");
22580
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
22581
- url_ = url_.replace(/[?&]$/, "");
22582
-
22583
- const content_ = JSON.stringify(request);
22584
-
22585
- let options_: RequestInit = {
22586
- body: content_,
22587
- method: "POST",
22588
- headers: {
22589
- "Content-Type": "application/json",
22590
- "Accept": "application/json"
22591
- }
22592
- };
22593
-
22594
- return this.transformOptions(options_).then(transformedOptions_ => {
22595
- return this.http.fetch(url_, transformedOptions_);
22596
- }).then((_response: Response) => {
22597
- return this.processExportDimensionReportV2(_response);
22598
- });
22599
- }
22600
-
22601
- protected processExportDimensionReportV2(response: Response): Promise<DownloadDto> {
22602
- const status = response.status;
22603
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
22604
- if (status === 200) {
22605
- return response.text().then((_responseText) => {
22606
- let result200: any = null;
22607
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
22608
- result200 = DownloadDto.fromJS(resultData200);
22609
- return result200;
22610
- });
22611
- } else if (status !== 200 && status !== 204) {
22612
- return response.text().then((_responseText) => {
22613
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
22614
- });
22615
- }
22616
- return Promise.resolve<DownloadDto>(null as any);
22617
- }
22618
-
22619
22568
  exportDimensionReportValues(id: string): Promise<DownloadDto> {
22620
22569
  let url_ = this.baseUrl + "/measurementforms/instances/{id}/exportvalues";
22621
22570
  if (id === undefined || id === null)
@@ -25770,6 +25719,8 @@ export class WorkOrderDatapoint implements IWorkOrderDatapoint {
25770
25719
  subType?: string | null;
25771
25720
  startTime!: number;
25772
25721
  endTime?: number | null;
25722
+ partName?: string | null;
25723
+ partNumber?: string | null;
25773
25724
  metaData?: { [key: string]: string; } | null;
25774
25725
 
25775
25726
  constructor(data?: IWorkOrderDatapoint) {
@@ -25789,6 +25740,8 @@ export class WorkOrderDatapoint implements IWorkOrderDatapoint {
25789
25740
  this.subType = _data["subType"];
25790
25741
  this.startTime = _data["startTime"];
25791
25742
  this.endTime = _data["endTime"];
25743
+ this.partName = _data["partName"];
25744
+ this.partNumber = _data["partNumber"];
25792
25745
  if (_data["metaData"]) {
25793
25746
  this.metaData = {} as any;
25794
25747
  for (let key in _data["metaData"]) {
@@ -25814,6 +25767,8 @@ export class WorkOrderDatapoint implements IWorkOrderDatapoint {
25814
25767
  data["subType"] = this.subType;
25815
25768
  data["startTime"] = this.startTime;
25816
25769
  data["endTime"] = this.endTime;
25770
+ data["partName"] = this.partName;
25771
+ data["partNumber"] = this.partNumber;
25817
25772
  if (this.metaData) {
25818
25773
  data["metaData"] = {};
25819
25774
  for (let key in this.metaData) {
@@ -25832,6 +25787,8 @@ export interface IWorkOrderDatapoint {
25832
25787
  subType?: string | null;
25833
25788
  startTime: number;
25834
25789
  endTime?: number | null;
25790
+ partName?: string | null;
25791
+ partNumber?: string | null;
25835
25792
  metaData?: { [key: string]: string; } | null;
25836
25793
  }
25837
25794
 
@@ -36147,7 +36104,7 @@ export interface IDowntimeMachineStateDto {
36147
36104
  }
36148
36105
 
36149
36106
  export class MachineErpDataListDto implements IMachineErpDataListDto {
36150
- machines?: SingleMachineErpDataListDto[];
36107
+ machines!: SingleMachineErpDataListDto[];
36151
36108
 
36152
36109
  constructor(data?: IMachineErpDataListDto) {
36153
36110
  if (data) {
@@ -36156,6 +36113,9 @@ export class MachineErpDataListDto implements IMachineErpDataListDto {
36156
36113
  (<any>this)[property] = (<any>data)[property];
36157
36114
  }
36158
36115
  }
36116
+ if (!data) {
36117
+ this.machines = [];
36118
+ }
36159
36119
  }
36160
36120
 
36161
36121
  init(_data?: any) {
@@ -36187,15 +36147,15 @@ export class MachineErpDataListDto implements IMachineErpDataListDto {
36187
36147
  }
36188
36148
 
36189
36149
  export interface IMachineErpDataListDto {
36190
- machines?: SingleMachineErpDataListDto[];
36150
+ machines: SingleMachineErpDataListDto[];
36191
36151
  }
36192
36152
 
36193
36153
  export class SingleMachineErpDataListDto implements ISingleMachineErpDataListDto {
36194
36154
  assetId!: number;
36195
36155
  name!: string;
36196
36156
  description?: string;
36197
- machineErpData!: MachineErpDataDto;
36198
36157
  activeOrders!: MachineErpDataDto[];
36158
+ lastActiveEvent?: WorkorderOperationEventDto | null;
36199
36159
 
36200
36160
  constructor(data?: ISingleMachineErpDataListDto) {
36201
36161
  if (data) {
@@ -36205,7 +36165,6 @@ export class SingleMachineErpDataListDto implements ISingleMachineErpDataListDto
36205
36165
  }
36206
36166
  }
36207
36167
  if (!data) {
36208
- this.machineErpData = new MachineErpDataDto();
36209
36168
  this.activeOrders = [];
36210
36169
  }
36211
36170
  }
@@ -36215,12 +36174,12 @@ export class SingleMachineErpDataListDto implements ISingleMachineErpDataListDto
36215
36174
  this.assetId = _data["assetId"];
36216
36175
  this.name = _data["name"];
36217
36176
  this.description = _data["description"];
36218
- this.machineErpData = _data["machineErpData"] ? MachineErpDataDto.fromJS(_data["machineErpData"]) : new MachineErpDataDto();
36219
36177
  if (Array.isArray(_data["activeOrders"])) {
36220
36178
  this.activeOrders = [] as any;
36221
36179
  for (let item of _data["activeOrders"])
36222
36180
  this.activeOrders!.push(MachineErpDataDto.fromJS(item));
36223
36181
  }
36182
+ this.lastActiveEvent = _data["lastActiveEvent"] ? WorkorderOperationEventDto.fromJS(_data["lastActiveEvent"]) : <any>undefined;
36224
36183
  }
36225
36184
  }
36226
36185
 
@@ -36236,12 +36195,12 @@ export class SingleMachineErpDataListDto implements ISingleMachineErpDataListDto
36236
36195
  data["assetId"] = this.assetId;
36237
36196
  data["name"] = this.name;
36238
36197
  data["description"] = this.description;
36239
- data["machineErpData"] = this.machineErpData ? this.machineErpData.toJSON() : <any>undefined;
36240
36198
  if (Array.isArray(this.activeOrders)) {
36241
36199
  data["activeOrders"] = [];
36242
36200
  for (let item of this.activeOrders)
36243
36201
  data["activeOrders"].push(item.toJSON());
36244
36202
  }
36203
+ data["lastActiveEvent"] = this.lastActiveEvent ? this.lastActiveEvent.toJSON() : <any>undefined;
36245
36204
  return data;
36246
36205
  }
36247
36206
  }
@@ -36250,8 +36209,8 @@ export interface ISingleMachineErpDataListDto {
36250
36209
  assetId: number;
36251
36210
  name: string;
36252
36211
  description?: string;
36253
- machineErpData: MachineErpDataDto;
36254
36212
  activeOrders: MachineErpDataDto[];
36213
+ lastActiveEvent?: WorkorderOperationEventDto | null;
36255
36214
  }
36256
36215
 
36257
36216
  export class MachineErpDataDto implements IMachineErpDataDto {
@@ -36389,6 +36348,94 @@ export interface IWorkOrderProjectDto {
36389
36348
  projectManager?: string | null;
36390
36349
  }
36391
36350
 
36351
+ export class WorkorderOperationEventDto implements IWorkorderOperationEventDto {
36352
+ eventId!: string;
36353
+ externalId?: string | null;
36354
+ companyId?: string | null;
36355
+ workorder!: string;
36356
+ operation!: number;
36357
+ startTime!: Date;
36358
+ endTime?: Date | null;
36359
+ isSetup!: boolean;
36360
+ employee?: EmployeeDto | null;
36361
+ resourceId!: string;
36362
+ description?: string;
36363
+ part?: PartDto | null;
36364
+ workorderDescription?: string | null;
36365
+ operationDescription?: string | null;
36366
+
36367
+ constructor(data?: IWorkorderOperationEventDto) {
36368
+ if (data) {
36369
+ for (var property in data) {
36370
+ if (data.hasOwnProperty(property))
36371
+ (<any>this)[property] = (<any>data)[property];
36372
+ }
36373
+ }
36374
+ }
36375
+
36376
+ init(_data?: any) {
36377
+ if (_data) {
36378
+ this.eventId = _data["eventId"];
36379
+ this.externalId = _data["externalId"];
36380
+ this.companyId = _data["companyId"];
36381
+ this.workorder = _data["workorder"];
36382
+ this.operation = _data["operation"];
36383
+ this.startTime = _data["startTime"] ? new Date(_data["startTime"].toString()) : <any>undefined;
36384
+ this.endTime = _data["endTime"] ? new Date(_data["endTime"].toString()) : <any>undefined;
36385
+ this.isSetup = _data["isSetup"];
36386
+ this.employee = _data["employee"] ? EmployeeDto.fromJS(_data["employee"]) : <any>undefined;
36387
+ this.resourceId = _data["resourceId"];
36388
+ this.description = _data["description"];
36389
+ this.part = _data["part"] ? PartDto.fromJS(_data["part"]) : <any>undefined;
36390
+ this.workorderDescription = _data["workorderDescription"];
36391
+ this.operationDescription = _data["operationDescription"];
36392
+ }
36393
+ }
36394
+
36395
+ static fromJS(data: any): WorkorderOperationEventDto {
36396
+ data = typeof data === 'object' ? data : {};
36397
+ let result = new WorkorderOperationEventDto();
36398
+ result.init(data);
36399
+ return result;
36400
+ }
36401
+
36402
+ toJSON(data?: any) {
36403
+ data = typeof data === 'object' ? data : {};
36404
+ data["eventId"] = this.eventId;
36405
+ data["externalId"] = this.externalId;
36406
+ data["companyId"] = this.companyId;
36407
+ data["workorder"] = this.workorder;
36408
+ data["operation"] = this.operation;
36409
+ data["startTime"] = this.startTime ? this.startTime.toISOString() : <any>undefined;
36410
+ data["endTime"] = this.endTime ? this.endTime.toISOString() : <any>undefined;
36411
+ data["isSetup"] = this.isSetup;
36412
+ data["employee"] = this.employee ? this.employee.toJSON() : <any>undefined;
36413
+ data["resourceId"] = this.resourceId;
36414
+ data["description"] = this.description;
36415
+ data["part"] = this.part ? this.part.toJSON() : <any>undefined;
36416
+ data["workorderDescription"] = this.workorderDescription;
36417
+ data["operationDescription"] = this.operationDescription;
36418
+ return data;
36419
+ }
36420
+ }
36421
+
36422
+ export interface IWorkorderOperationEventDto {
36423
+ eventId: string;
36424
+ externalId?: string | null;
36425
+ companyId?: string | null;
36426
+ workorder: string;
36427
+ operation: number;
36428
+ startTime: Date;
36429
+ endTime?: Date | null;
36430
+ isSetup: boolean;
36431
+ employee?: EmployeeDto | null;
36432
+ resourceId: string;
36433
+ description?: string;
36434
+ part?: PartDto | null;
36435
+ workorderDescription?: string | null;
36436
+ operationDescription?: string | null;
36437
+ }
36438
+
36392
36439
  export class UtilizationSummaryDto implements IUtilizationSummaryDto {
36393
36440
  factory!: FactoryUtilizationDto;
36394
36441
  groups!: MachineGroupUtilizationDto[];
@@ -58384,108 +58431,6 @@ export interface IExportDimensionReportRequest {
58384
58431
  comment?: string | null;
58385
58432
  }
58386
58433
 
58387
- export class ExportDimensionReportV2Request implements IExportDimensionReportV2Request {
58388
- tenantId?: string;
58389
- type?: DimensionReportType;
58390
- extras?: DimensionReportExtras | null;
58391
- specificSerialNumbers?: string[] | null;
58392
-
58393
- constructor(data?: IExportDimensionReportV2Request) {
58394
- if (data) {
58395
- for (var property in data) {
58396
- if (data.hasOwnProperty(property))
58397
- (<any>this)[property] = (<any>data)[property];
58398
- }
58399
- }
58400
- }
58401
-
58402
- init(_data?: any) {
58403
- if (_data) {
58404
- this.tenantId = _data["tenantId"];
58405
- this.type = _data["type"];
58406
- this.extras = _data["extras"] ? DimensionReportExtras.fromJS(_data["extras"]) : <any>undefined;
58407
- if (Array.isArray(_data["specificSerialNumbers"])) {
58408
- this.specificSerialNumbers = [] as any;
58409
- for (let item of _data["specificSerialNumbers"])
58410
- this.specificSerialNumbers!.push(item);
58411
- }
58412
- }
58413
- }
58414
-
58415
- static fromJS(data: any): ExportDimensionReportV2Request {
58416
- data = typeof data === 'object' ? data : {};
58417
- let result = new ExportDimensionReportV2Request();
58418
- result.init(data);
58419
- return result;
58420
- }
58421
-
58422
- toJSON(data?: any) {
58423
- data = typeof data === 'object' ? data : {};
58424
- data["tenantId"] = this.tenantId;
58425
- data["type"] = this.type;
58426
- data["extras"] = this.extras ? this.extras.toJSON() : <any>undefined;
58427
- if (Array.isArray(this.specificSerialNumbers)) {
58428
- data["specificSerialNumbers"] = [];
58429
- for (let item of this.specificSerialNumbers)
58430
- data["specificSerialNumbers"].push(item);
58431
- }
58432
- return data;
58433
- }
58434
- }
58435
-
58436
- export interface IExportDimensionReportV2Request {
58437
- tenantId?: string;
58438
- type?: DimensionReportType;
58439
- extras?: DimensionReportExtras | null;
58440
- specificSerialNumbers?: string[] | null;
58441
- }
58442
-
58443
- export type DimensionReportType = 0 | 1 | 2 | 3;
58444
-
58445
- export class DimensionReportExtras implements IDimensionReportExtras {
58446
- customerPO?: string | null;
58447
- workOrderNumber?: string | null;
58448
- comment?: string | null;
58449
-
58450
- constructor(data?: IDimensionReportExtras) {
58451
- if (data) {
58452
- for (var property in data) {
58453
- if (data.hasOwnProperty(property))
58454
- (<any>this)[property] = (<any>data)[property];
58455
- }
58456
- }
58457
- }
58458
-
58459
- init(_data?: any) {
58460
- if (_data) {
58461
- this.customerPO = _data["customerPO"];
58462
- this.workOrderNumber = _data["workOrderNumber"];
58463
- this.comment = _data["comment"];
58464
- }
58465
- }
58466
-
58467
- static fromJS(data: any): DimensionReportExtras {
58468
- data = typeof data === 'object' ? data : {};
58469
- let result = new DimensionReportExtras();
58470
- result.init(data);
58471
- return result;
58472
- }
58473
-
58474
- toJSON(data?: any) {
58475
- data = typeof data === 'object' ? data : {};
58476
- data["customerPO"] = this.customerPO;
58477
- data["workOrderNumber"] = this.workOrderNumber;
58478
- data["comment"] = this.comment;
58479
- return data;
58480
- }
58481
- }
58482
-
58483
- export interface IDimensionReportExtras {
58484
- customerPO?: string | null;
58485
- workOrderNumber?: string | null;
58486
- comment?: string | null;
58487
- }
58488
-
58489
58434
  export class ProductionCompanyDto implements IProductionCompanyDto {
58490
58435
  id!: string;
58491
58436
  name!: string;
@@ -59896,94 +59841,6 @@ export interface IStopWorkOperationRequest {
59896
59841
  companyId?: string | null;
59897
59842
  }
59898
59843
 
59899
- export class WorkorderOperationEventDto implements IWorkorderOperationEventDto {
59900
- eventId!: string;
59901
- externalId?: string | null;
59902
- companyId?: string | null;
59903
- workorder!: string;
59904
- operation!: number;
59905
- startTime!: Date;
59906
- endTime?: Date | null;
59907
- isSetup!: boolean;
59908
- employee?: EmployeeDto | null;
59909
- resourceId!: string;
59910
- description?: string;
59911
- part?: PartDto | null;
59912
- workorderDescription?: string | null;
59913
- operationDescription?: string | null;
59914
-
59915
- constructor(data?: IWorkorderOperationEventDto) {
59916
- if (data) {
59917
- for (var property in data) {
59918
- if (data.hasOwnProperty(property))
59919
- (<any>this)[property] = (<any>data)[property];
59920
- }
59921
- }
59922
- }
59923
-
59924
- init(_data?: any) {
59925
- if (_data) {
59926
- this.eventId = _data["eventId"];
59927
- this.externalId = _data["externalId"];
59928
- this.companyId = _data["companyId"];
59929
- this.workorder = _data["workorder"];
59930
- this.operation = _data["operation"];
59931
- this.startTime = _data["startTime"] ? new Date(_data["startTime"].toString()) : <any>undefined;
59932
- this.endTime = _data["endTime"] ? new Date(_data["endTime"].toString()) : <any>undefined;
59933
- this.isSetup = _data["isSetup"];
59934
- this.employee = _data["employee"] ? EmployeeDto.fromJS(_data["employee"]) : <any>undefined;
59935
- this.resourceId = _data["resourceId"];
59936
- this.description = _data["description"];
59937
- this.part = _data["part"] ? PartDto.fromJS(_data["part"]) : <any>undefined;
59938
- this.workorderDescription = _data["workorderDescription"];
59939
- this.operationDescription = _data["operationDescription"];
59940
- }
59941
- }
59942
-
59943
- static fromJS(data: any): WorkorderOperationEventDto {
59944
- data = typeof data === 'object' ? data : {};
59945
- let result = new WorkorderOperationEventDto();
59946
- result.init(data);
59947
- return result;
59948
- }
59949
-
59950
- toJSON(data?: any) {
59951
- data = typeof data === 'object' ? data : {};
59952
- data["eventId"] = this.eventId;
59953
- data["externalId"] = this.externalId;
59954
- data["companyId"] = this.companyId;
59955
- data["workorder"] = this.workorder;
59956
- data["operation"] = this.operation;
59957
- data["startTime"] = this.startTime ? this.startTime.toISOString() : <any>undefined;
59958
- data["endTime"] = this.endTime ? this.endTime.toISOString() : <any>undefined;
59959
- data["isSetup"] = this.isSetup;
59960
- data["employee"] = this.employee ? this.employee.toJSON() : <any>undefined;
59961
- data["resourceId"] = this.resourceId;
59962
- data["description"] = this.description;
59963
- data["part"] = this.part ? this.part.toJSON() : <any>undefined;
59964
- data["workorderDescription"] = this.workorderDescription;
59965
- data["operationDescription"] = this.operationDescription;
59966
- return data;
59967
- }
59968
- }
59969
-
59970
- export interface IWorkorderOperationEventDto {
59971
- eventId: string;
59972
- externalId?: string | null;
59973
- companyId?: string | null;
59974
- workorder: string;
59975
- operation: number;
59976
- startTime: Date;
59977
- endTime?: Date | null;
59978
- isSetup: boolean;
59979
- employee?: EmployeeDto | null;
59980
- resourceId: string;
59981
- description?: string;
59982
- part?: PartDto | null;
59983
- workorderDescription?: string | null;
59984
- operationDescription?: string | null;
59985
- }
59986
-
59987
59844
  export class RegisterWorkorderOperationEventRequest implements IRegisterWorkorderOperationEventRequest {
59988
59845
  workorderDescription?: string | null;
59989
59846
  operationDescription?: string | null;