@ignos/api-client 20250910.0.12574-alpha → 20250911.0.12594

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.
@@ -3112,6 +3112,8 @@ export declare class WorkOrderDatapoint implements IWorkOrderDatapoint {
3112
3112
  subType?: string | null;
3113
3113
  startTime: number;
3114
3114
  endTime?: number | null;
3115
+ partName?: string | null;
3116
+ partNumber?: string | null;
3115
3117
  metaData?: {
3116
3118
  [key: string]: string;
3117
3119
  } | null;
@@ -3127,6 +3129,8 @@ export interface IWorkOrderDatapoint {
3127
3129
  subType?: string | null;
3128
3130
  startTime: number;
3129
3131
  endTime?: number | null;
3132
+ partName?: string | null;
3133
+ partNumber?: string | null;
3130
3134
  metaData?: {
3131
3135
  [key: string]: string;
3132
3136
  } | null;
@@ -6379,21 +6383,21 @@ export interface IDowntimeMachineStateDto {
6379
6383
  endTime: Date;
6380
6384
  }
6381
6385
  export declare class MachineErpDataListDto implements IMachineErpDataListDto {
6382
- machines?: SingleMachineErpDataListDto[];
6386
+ machines: SingleMachineErpDataListDto[];
6383
6387
  constructor(data?: IMachineErpDataListDto);
6384
6388
  init(_data?: any): void;
6385
6389
  static fromJS(data: any): MachineErpDataListDto;
6386
6390
  toJSON(data?: any): any;
6387
6391
  }
6388
6392
  export interface IMachineErpDataListDto {
6389
- machines?: SingleMachineErpDataListDto[];
6393
+ machines: SingleMachineErpDataListDto[];
6390
6394
  }
6391
6395
  export declare class SingleMachineErpDataListDto implements ISingleMachineErpDataListDto {
6392
6396
  assetId: number;
6393
6397
  name: string;
6394
6398
  description?: string;
6395
- machineErpData: MachineErpDataDto;
6396
6399
  activeOrders: MachineErpDataDto[];
6400
+ lastActiveEvent?: WorkorderOperationEventDto | null;
6397
6401
  constructor(data?: ISingleMachineErpDataListDto);
6398
6402
  init(_data?: any): void;
6399
6403
  static fromJS(data: any): SingleMachineErpDataListDto;
@@ -6403,8 +6407,8 @@ export interface ISingleMachineErpDataListDto {
6403
6407
  assetId: number;
6404
6408
  name: string;
6405
6409
  description?: string;
6406
- machineErpData: MachineErpDataDto;
6407
6410
  activeOrders: MachineErpDataDto[];
6411
+ lastActiveEvent?: WorkorderOperationEventDto | null;
6408
6412
  }
6409
6413
  export declare class MachineErpDataDto implements IMachineErpDataDto {
6410
6414
  workOrderId: string;
@@ -6456,6 +6460,42 @@ export interface IWorkOrderProjectDto {
6456
6460
  name?: string | null;
6457
6461
  projectManager?: string | null;
6458
6462
  }
6463
+ export declare class WorkorderOperationEventDto implements IWorkorderOperationEventDto {
6464
+ eventId: string;
6465
+ externalId?: string | null;
6466
+ companyId?: string | null;
6467
+ workorder: string;
6468
+ operation: number;
6469
+ startTime: Date;
6470
+ endTime?: Date | null;
6471
+ isSetup: boolean;
6472
+ employee?: EmployeeDto | null;
6473
+ resourceId: string;
6474
+ description?: string;
6475
+ part?: PartDto | null;
6476
+ workorderDescription?: string | null;
6477
+ operationDescription?: string | null;
6478
+ constructor(data?: IWorkorderOperationEventDto);
6479
+ init(_data?: any): void;
6480
+ static fromJS(data: any): WorkorderOperationEventDto;
6481
+ toJSON(data?: any): any;
6482
+ }
6483
+ export interface IWorkorderOperationEventDto {
6484
+ eventId: string;
6485
+ externalId?: string | null;
6486
+ companyId?: string | null;
6487
+ workorder: string;
6488
+ operation: number;
6489
+ startTime: Date;
6490
+ endTime?: Date | null;
6491
+ isSetup: boolean;
6492
+ employee?: EmployeeDto | null;
6493
+ resourceId: string;
6494
+ description?: string;
6495
+ part?: PartDto | null;
6496
+ workorderDescription?: string | null;
6497
+ operationDescription?: string | null;
6498
+ }
6459
6499
  export declare class UtilizationSummaryDto implements IUtilizationSummaryDto {
6460
6500
  factory: FactoryUtilizationDto;
6461
6501
  groups: MachineGroupUtilizationDto[];
@@ -13765,8 +13805,8 @@ export interface IExportDimensionReportRequest {
13765
13805
  comment?: string | null;
13766
13806
  }
13767
13807
  export declare class ExportDimensionReportV2Request implements IExportDimensionReportV2Request {
13768
- tenantId?: string;
13769
- type?: DimensionReportType;
13808
+ tenantId?: string | null;
13809
+ type: DimensionReportType;
13770
13810
  extras?: DimensionReportExtras | null;
13771
13811
  specificSerialNumbers?: string[] | null;
13772
13812
  constructor(data?: IExportDimensionReportV2Request);
@@ -13775,8 +13815,8 @@ export declare class ExportDimensionReportV2Request implements IExportDimensionR
13775
13815
  toJSON(data?: any): any;
13776
13816
  }
13777
13817
  export interface IExportDimensionReportV2Request {
13778
- tenantId?: string;
13779
- type?: DimensionReportType;
13818
+ tenantId?: string | null;
13819
+ type: DimensionReportType;
13780
13820
  extras?: DimensionReportExtras | null;
13781
13821
  specificSerialNumbers?: string[] | null;
13782
13822
  }
@@ -14237,42 +14277,6 @@ export interface IStopWorkOperationRequest {
14237
14277
  resourceId: string;
14238
14278
  companyId?: string | null;
14239
14279
  }
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
14280
  export declare class RegisterWorkorderOperationEventRequest implements IRegisterWorkorderOperationEventRequest {
14277
14281
  workorderDescription?: string | null;
14278
14282
  operationDescription?: string | null;
@@ -23912,6 +23912,8 @@ export class WorkOrderDatapoint {
23912
23912
  this.subType = _data["subType"];
23913
23913
  this.startTime = _data["startTime"];
23914
23914
  this.endTime = _data["endTime"];
23915
+ this.partName = _data["partName"];
23916
+ this.partNumber = _data["partNumber"];
23915
23917
  if (_data["metaData"]) {
23916
23918
  this.metaData = {};
23917
23919
  for (let key in _data["metaData"]) {
@@ -23935,6 +23937,8 @@ export class WorkOrderDatapoint {
23935
23937
  data["subType"] = this.subType;
23936
23938
  data["startTime"] = this.startTime;
23937
23939
  data["endTime"] = this.endTime;
23940
+ data["partName"] = this.partName;
23941
+ data["partNumber"] = this.partNumber;
23938
23942
  if (this.metaData) {
23939
23943
  data["metaData"] = {};
23940
23944
  for (let key in this.metaData) {
@@ -31004,6 +31008,9 @@ export class MachineErpDataListDto {
31004
31008
  this[property] = data[property];
31005
31009
  }
31006
31010
  }
31011
+ if (!data) {
31012
+ this.machines = [];
31013
+ }
31007
31014
  }
31008
31015
  init(_data) {
31009
31016
  if (_data) {
@@ -31039,7 +31046,6 @@ export class SingleMachineErpDataListDto {
31039
31046
  }
31040
31047
  }
31041
31048
  if (!data) {
31042
- this.machineErpData = new MachineErpDataDto();
31043
31049
  this.activeOrders = [];
31044
31050
  }
31045
31051
  }
@@ -31048,12 +31054,12 @@ export class SingleMachineErpDataListDto {
31048
31054
  this.assetId = _data["assetId"];
31049
31055
  this.name = _data["name"];
31050
31056
  this.description = _data["description"];
31051
- this.machineErpData = _data["machineErpData"] ? MachineErpDataDto.fromJS(_data["machineErpData"]) : new MachineErpDataDto();
31052
31057
  if (Array.isArray(_data["activeOrders"])) {
31053
31058
  this.activeOrders = [];
31054
31059
  for (let item of _data["activeOrders"])
31055
31060
  this.activeOrders.push(MachineErpDataDto.fromJS(item));
31056
31061
  }
31062
+ this.lastActiveEvent = _data["lastActiveEvent"] ? WorkorderOperationEventDto.fromJS(_data["lastActiveEvent"]) : undefined;
31057
31063
  }
31058
31064
  }
31059
31065
  static fromJS(data) {
@@ -31067,12 +31073,12 @@ export class SingleMachineErpDataListDto {
31067
31073
  data["assetId"] = this.assetId;
31068
31074
  data["name"] = this.name;
31069
31075
  data["description"] = this.description;
31070
- data["machineErpData"] = this.machineErpData ? this.machineErpData.toJSON() : undefined;
31071
31076
  if (Array.isArray(this.activeOrders)) {
31072
31077
  data["activeOrders"] = [];
31073
31078
  for (let item of this.activeOrders)
31074
31079
  data["activeOrders"].push(item.toJSON());
31075
31080
  }
31081
+ data["lastActiveEvent"] = this.lastActiveEvent ? this.lastActiveEvent.toJSON() : undefined;
31076
31082
  return data;
31077
31083
  }
31078
31084
  }
@@ -31161,6 +31167,58 @@ export class WorkOrderProjectDto {
31161
31167
  return data;
31162
31168
  }
31163
31169
  }
31170
+ export class WorkorderOperationEventDto {
31171
+ constructor(data) {
31172
+ if (data) {
31173
+ for (var property in data) {
31174
+ if (data.hasOwnProperty(property))
31175
+ this[property] = data[property];
31176
+ }
31177
+ }
31178
+ }
31179
+ init(_data) {
31180
+ if (_data) {
31181
+ this.eventId = _data["eventId"];
31182
+ this.externalId = _data["externalId"];
31183
+ this.companyId = _data["companyId"];
31184
+ this.workorder = _data["workorder"];
31185
+ this.operation = _data["operation"];
31186
+ this.startTime = _data["startTime"] ? new Date(_data["startTime"].toString()) : undefined;
31187
+ this.endTime = _data["endTime"] ? new Date(_data["endTime"].toString()) : undefined;
31188
+ this.isSetup = _data["isSetup"];
31189
+ this.employee = _data["employee"] ? EmployeeDto.fromJS(_data["employee"]) : undefined;
31190
+ this.resourceId = _data["resourceId"];
31191
+ this.description = _data["description"];
31192
+ this.part = _data["part"] ? PartDto.fromJS(_data["part"]) : undefined;
31193
+ this.workorderDescription = _data["workorderDescription"];
31194
+ this.operationDescription = _data["operationDescription"];
31195
+ }
31196
+ }
31197
+ static fromJS(data) {
31198
+ data = typeof data === 'object' ? data : {};
31199
+ let result = new WorkorderOperationEventDto();
31200
+ result.init(data);
31201
+ return result;
31202
+ }
31203
+ toJSON(data) {
31204
+ data = typeof data === 'object' ? data : {};
31205
+ data["eventId"] = this.eventId;
31206
+ data["externalId"] = this.externalId;
31207
+ data["companyId"] = this.companyId;
31208
+ data["workorder"] = this.workorder;
31209
+ data["operation"] = this.operation;
31210
+ data["startTime"] = this.startTime ? this.startTime.toISOString() : undefined;
31211
+ data["endTime"] = this.endTime ? this.endTime.toISOString() : undefined;
31212
+ data["isSetup"] = this.isSetup;
31213
+ data["employee"] = this.employee ? this.employee.toJSON() : undefined;
31214
+ data["resourceId"] = this.resourceId;
31215
+ data["description"] = this.description;
31216
+ data["part"] = this.part ? this.part.toJSON() : undefined;
31217
+ data["workorderDescription"] = this.workorderDescription;
31218
+ data["operationDescription"] = this.operationDescription;
31219
+ return data;
31220
+ }
31221
+ }
31164
31222
  export class UtilizationSummaryDto {
31165
31223
  constructor(data) {
31166
31224
  if (data) {
@@ -46850,58 +46908,6 @@ export class StopWorkOperationRequest {
46850
46908
  return data;
46851
46909
  }
46852
46910
  }
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
46911
  export class RegisterWorkorderOperationEventRequest {
46906
46912
  constructor(data) {
46907
46913
  if (data) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20250910.0.12574-alpha",
3
+ "version": "20250911.0.12594",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -25770,6 +25770,8 @@ export class WorkOrderDatapoint implements IWorkOrderDatapoint {
25770
25770
  subType?: string | null;
25771
25771
  startTime!: number;
25772
25772
  endTime?: number | null;
25773
+ partName?: string | null;
25774
+ partNumber?: string | null;
25773
25775
  metaData?: { [key: string]: string; } | null;
25774
25776
 
25775
25777
  constructor(data?: IWorkOrderDatapoint) {
@@ -25789,6 +25791,8 @@ export class WorkOrderDatapoint implements IWorkOrderDatapoint {
25789
25791
  this.subType = _data["subType"];
25790
25792
  this.startTime = _data["startTime"];
25791
25793
  this.endTime = _data["endTime"];
25794
+ this.partName = _data["partName"];
25795
+ this.partNumber = _data["partNumber"];
25792
25796
  if (_data["metaData"]) {
25793
25797
  this.metaData = {} as any;
25794
25798
  for (let key in _data["metaData"]) {
@@ -25814,6 +25818,8 @@ export class WorkOrderDatapoint implements IWorkOrderDatapoint {
25814
25818
  data["subType"] = this.subType;
25815
25819
  data["startTime"] = this.startTime;
25816
25820
  data["endTime"] = this.endTime;
25821
+ data["partName"] = this.partName;
25822
+ data["partNumber"] = this.partNumber;
25817
25823
  if (this.metaData) {
25818
25824
  data["metaData"] = {};
25819
25825
  for (let key in this.metaData) {
@@ -25832,6 +25838,8 @@ export interface IWorkOrderDatapoint {
25832
25838
  subType?: string | null;
25833
25839
  startTime: number;
25834
25840
  endTime?: number | null;
25841
+ partName?: string | null;
25842
+ partNumber?: string | null;
25835
25843
  metaData?: { [key: string]: string; } | null;
25836
25844
  }
25837
25845
 
@@ -36147,7 +36155,7 @@ export interface IDowntimeMachineStateDto {
36147
36155
  }
36148
36156
 
36149
36157
  export class MachineErpDataListDto implements IMachineErpDataListDto {
36150
- machines?: SingleMachineErpDataListDto[];
36158
+ machines!: SingleMachineErpDataListDto[];
36151
36159
 
36152
36160
  constructor(data?: IMachineErpDataListDto) {
36153
36161
  if (data) {
@@ -36156,6 +36164,9 @@ export class MachineErpDataListDto implements IMachineErpDataListDto {
36156
36164
  (<any>this)[property] = (<any>data)[property];
36157
36165
  }
36158
36166
  }
36167
+ if (!data) {
36168
+ this.machines = [];
36169
+ }
36159
36170
  }
36160
36171
 
36161
36172
  init(_data?: any) {
@@ -36187,15 +36198,15 @@ export class MachineErpDataListDto implements IMachineErpDataListDto {
36187
36198
  }
36188
36199
 
36189
36200
  export interface IMachineErpDataListDto {
36190
- machines?: SingleMachineErpDataListDto[];
36201
+ machines: SingleMachineErpDataListDto[];
36191
36202
  }
36192
36203
 
36193
36204
  export class SingleMachineErpDataListDto implements ISingleMachineErpDataListDto {
36194
36205
  assetId!: number;
36195
36206
  name!: string;
36196
36207
  description?: string;
36197
- machineErpData!: MachineErpDataDto;
36198
36208
  activeOrders!: MachineErpDataDto[];
36209
+ lastActiveEvent?: WorkorderOperationEventDto | null;
36199
36210
 
36200
36211
  constructor(data?: ISingleMachineErpDataListDto) {
36201
36212
  if (data) {
@@ -36205,7 +36216,6 @@ export class SingleMachineErpDataListDto implements ISingleMachineErpDataListDto
36205
36216
  }
36206
36217
  }
36207
36218
  if (!data) {
36208
- this.machineErpData = new MachineErpDataDto();
36209
36219
  this.activeOrders = [];
36210
36220
  }
36211
36221
  }
@@ -36215,12 +36225,12 @@ export class SingleMachineErpDataListDto implements ISingleMachineErpDataListDto
36215
36225
  this.assetId = _data["assetId"];
36216
36226
  this.name = _data["name"];
36217
36227
  this.description = _data["description"];
36218
- this.machineErpData = _data["machineErpData"] ? MachineErpDataDto.fromJS(_data["machineErpData"]) : new MachineErpDataDto();
36219
36228
  if (Array.isArray(_data["activeOrders"])) {
36220
36229
  this.activeOrders = [] as any;
36221
36230
  for (let item of _data["activeOrders"])
36222
36231
  this.activeOrders!.push(MachineErpDataDto.fromJS(item));
36223
36232
  }
36233
+ this.lastActiveEvent = _data["lastActiveEvent"] ? WorkorderOperationEventDto.fromJS(_data["lastActiveEvent"]) : <any>undefined;
36224
36234
  }
36225
36235
  }
36226
36236
 
@@ -36236,12 +36246,12 @@ export class SingleMachineErpDataListDto implements ISingleMachineErpDataListDto
36236
36246
  data["assetId"] = this.assetId;
36237
36247
  data["name"] = this.name;
36238
36248
  data["description"] = this.description;
36239
- data["machineErpData"] = this.machineErpData ? this.machineErpData.toJSON() : <any>undefined;
36240
36249
  if (Array.isArray(this.activeOrders)) {
36241
36250
  data["activeOrders"] = [];
36242
36251
  for (let item of this.activeOrders)
36243
36252
  data["activeOrders"].push(item.toJSON());
36244
36253
  }
36254
+ data["lastActiveEvent"] = this.lastActiveEvent ? this.lastActiveEvent.toJSON() : <any>undefined;
36245
36255
  return data;
36246
36256
  }
36247
36257
  }
@@ -36250,8 +36260,8 @@ export interface ISingleMachineErpDataListDto {
36250
36260
  assetId: number;
36251
36261
  name: string;
36252
36262
  description?: string;
36253
- machineErpData: MachineErpDataDto;
36254
36263
  activeOrders: MachineErpDataDto[];
36264
+ lastActiveEvent?: WorkorderOperationEventDto | null;
36255
36265
  }
36256
36266
 
36257
36267
  export class MachineErpDataDto implements IMachineErpDataDto {
@@ -36389,6 +36399,94 @@ export interface IWorkOrderProjectDto {
36389
36399
  projectManager?: string | null;
36390
36400
  }
36391
36401
 
36402
+ export class WorkorderOperationEventDto implements IWorkorderOperationEventDto {
36403
+ eventId!: string;
36404
+ externalId?: string | null;
36405
+ companyId?: string | null;
36406
+ workorder!: string;
36407
+ operation!: number;
36408
+ startTime!: Date;
36409
+ endTime?: Date | null;
36410
+ isSetup!: boolean;
36411
+ employee?: EmployeeDto | null;
36412
+ resourceId!: string;
36413
+ description?: string;
36414
+ part?: PartDto | null;
36415
+ workorderDescription?: string | null;
36416
+ operationDescription?: string | null;
36417
+
36418
+ constructor(data?: IWorkorderOperationEventDto) {
36419
+ if (data) {
36420
+ for (var property in data) {
36421
+ if (data.hasOwnProperty(property))
36422
+ (<any>this)[property] = (<any>data)[property];
36423
+ }
36424
+ }
36425
+ }
36426
+
36427
+ init(_data?: any) {
36428
+ if (_data) {
36429
+ this.eventId = _data["eventId"];
36430
+ this.externalId = _data["externalId"];
36431
+ this.companyId = _data["companyId"];
36432
+ this.workorder = _data["workorder"];
36433
+ this.operation = _data["operation"];
36434
+ this.startTime = _data["startTime"] ? new Date(_data["startTime"].toString()) : <any>undefined;
36435
+ this.endTime = _data["endTime"] ? new Date(_data["endTime"].toString()) : <any>undefined;
36436
+ this.isSetup = _data["isSetup"];
36437
+ this.employee = _data["employee"] ? EmployeeDto.fromJS(_data["employee"]) : <any>undefined;
36438
+ this.resourceId = _data["resourceId"];
36439
+ this.description = _data["description"];
36440
+ this.part = _data["part"] ? PartDto.fromJS(_data["part"]) : <any>undefined;
36441
+ this.workorderDescription = _data["workorderDescription"];
36442
+ this.operationDescription = _data["operationDescription"];
36443
+ }
36444
+ }
36445
+
36446
+ static fromJS(data: any): WorkorderOperationEventDto {
36447
+ data = typeof data === 'object' ? data : {};
36448
+ let result = new WorkorderOperationEventDto();
36449
+ result.init(data);
36450
+ return result;
36451
+ }
36452
+
36453
+ toJSON(data?: any) {
36454
+ data = typeof data === 'object' ? data : {};
36455
+ data["eventId"] = this.eventId;
36456
+ data["externalId"] = this.externalId;
36457
+ data["companyId"] = this.companyId;
36458
+ data["workorder"] = this.workorder;
36459
+ data["operation"] = this.operation;
36460
+ data["startTime"] = this.startTime ? this.startTime.toISOString() : <any>undefined;
36461
+ data["endTime"] = this.endTime ? this.endTime.toISOString() : <any>undefined;
36462
+ data["isSetup"] = this.isSetup;
36463
+ data["employee"] = this.employee ? this.employee.toJSON() : <any>undefined;
36464
+ data["resourceId"] = this.resourceId;
36465
+ data["description"] = this.description;
36466
+ data["part"] = this.part ? this.part.toJSON() : <any>undefined;
36467
+ data["workorderDescription"] = this.workorderDescription;
36468
+ data["operationDescription"] = this.operationDescription;
36469
+ return data;
36470
+ }
36471
+ }
36472
+
36473
+ export interface IWorkorderOperationEventDto {
36474
+ eventId: string;
36475
+ externalId?: string | null;
36476
+ companyId?: string | null;
36477
+ workorder: string;
36478
+ operation: number;
36479
+ startTime: Date;
36480
+ endTime?: Date | null;
36481
+ isSetup: boolean;
36482
+ employee?: EmployeeDto | null;
36483
+ resourceId: string;
36484
+ description?: string;
36485
+ part?: PartDto | null;
36486
+ workorderDescription?: string | null;
36487
+ operationDescription?: string | null;
36488
+ }
36489
+
36392
36490
  export class UtilizationSummaryDto implements IUtilizationSummaryDto {
36393
36491
  factory!: FactoryUtilizationDto;
36394
36492
  groups!: MachineGroupUtilizationDto[];
@@ -58385,8 +58483,8 @@ export interface IExportDimensionReportRequest {
58385
58483
  }
58386
58484
 
58387
58485
  export class ExportDimensionReportV2Request implements IExportDimensionReportV2Request {
58388
- tenantId?: string;
58389
- type?: DimensionReportType;
58486
+ tenantId?: string | null;
58487
+ type!: DimensionReportType;
58390
58488
  extras?: DimensionReportExtras | null;
58391
58489
  specificSerialNumbers?: string[] | null;
58392
58490
 
@@ -58434,8 +58532,8 @@ export class ExportDimensionReportV2Request implements IExportDimensionReportV2R
58434
58532
  }
58435
58533
 
58436
58534
  export interface IExportDimensionReportV2Request {
58437
- tenantId?: string;
58438
- type?: DimensionReportType;
58535
+ tenantId?: string | null;
58536
+ type: DimensionReportType;
58439
58537
  extras?: DimensionReportExtras | null;
58440
58538
  specificSerialNumbers?: string[] | null;
58441
58539
  }
@@ -59896,94 +59994,6 @@ export interface IStopWorkOperationRequest {
59896
59994
  companyId?: string | null;
59897
59995
  }
59898
59996
 
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
59997
  export class RegisterWorkorderOperationEventRequest implements IRegisterWorkorderOperationEventRequest {
59988
59998
  workorderDescription?: string | null;
59989
59999
  operationDescription?: string | null;