@ignos/api-client 20250109.0.10927 → 20250114.0.10945

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.
@@ -718,6 +718,7 @@ export interface IDowntimeReasonsClient {
718
718
  deleteDowntimeReason(id: number): Promise<void>;
719
719
  listDowntimeReasonsForMachine(id: number): Promise<DowntimeReasonDto[]>;
720
720
  listTopDowntimeReasons(): Promise<TopDowntimeReasonsDto>;
721
+ createReport(request: CreateDowntimeReasonsReportRequest | undefined): Promise<DowntimeReasonsReportDto>;
721
722
  }
722
723
  export declare class DowntimeReasonsClient extends AuthorizedApiBase implements IDowntimeReasonsClient {
723
724
  private http;
@@ -736,6 +737,30 @@ export declare class DowntimeReasonsClient extends AuthorizedApiBase implements
736
737
  protected processListDowntimeReasonsForMachine(response: Response): Promise<DowntimeReasonDto[]>;
737
738
  listTopDowntimeReasons(): Promise<TopDowntimeReasonsDto>;
738
739
  protected processListTopDowntimeReasons(response: Response): Promise<TopDowntimeReasonsDto>;
740
+ createReport(request: CreateDowntimeReasonsReportRequest | undefined): Promise<DowntimeReasonsReportDto>;
741
+ protected processCreateReport(response: Response): Promise<DowntimeReasonsReportDto>;
742
+ }
743
+ export interface IKpiAdminClient {
744
+ getMachineCapacityAdmin(): Promise<MachineGroupCapacityDto[]>;
745
+ updateMachineCapacityAdmin(request: UpdateMachinesCapacity): Promise<MachineCapacityDto>;
746
+ getCalenderCapacityAdmin(startDate: Date | undefined, endDate: Date | undefined): Promise<CalenderCapacityDto[]>;
747
+ updateCalenderCapacityAdmin(request: UpdateCalenderCapacity): Promise<CalenderCapacityDto>;
748
+ }
749
+ export declare class KpiAdminClient extends AuthorizedApiBase implements IKpiAdminClient {
750
+ private http;
751
+ private baseUrl;
752
+ protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
753
+ constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
754
+ fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
755
+ });
756
+ getMachineCapacityAdmin(): Promise<MachineGroupCapacityDto[]>;
757
+ protected processGetMachineCapacityAdmin(response: Response): Promise<MachineGroupCapacityDto[]>;
758
+ updateMachineCapacityAdmin(request: UpdateMachinesCapacity): Promise<MachineCapacityDto>;
759
+ protected processUpdateMachineCapacityAdmin(response: Response): Promise<MachineCapacityDto>;
760
+ getCalenderCapacityAdmin(startDate: Date | undefined, endDate: Date | undefined): Promise<CalenderCapacityDto[]>;
761
+ protected processGetCalenderCapacityAdmin(response: Response): Promise<CalenderCapacityDto[]>;
762
+ updateCalenderCapacityAdmin(request: UpdateCalenderCapacity): Promise<CalenderCapacityDto>;
763
+ protected processUpdateCalenderCapacityAdmin(response: Response): Promise<CalenderCapacityDto>;
739
764
  }
740
765
  export interface IMachinesClient {
741
766
  listMachines(onlyConnectedMachines: boolean | undefined): Promise<MachineDto[]>;
@@ -5182,6 +5207,153 @@ export interface IDowntimeReasonCountDto {
5182
5207
  count: number;
5183
5208
  reason: string;
5184
5209
  }
5210
+ export declare class DowntimeReasonsReportDto implements IDowntimeReasonsReportDto {
5211
+ companyId?: string | null;
5212
+ totalDowntimeDurationMilliseconds?: number;
5213
+ downtimeReasons?: DowntimeReasonReport[];
5214
+ constructor(data?: IDowntimeReasonsReportDto);
5215
+ init(_data?: any): void;
5216
+ static fromJS(data: any): DowntimeReasonsReportDto;
5217
+ toJSON(data?: any): any;
5218
+ }
5219
+ export interface IDowntimeReasonsReportDto {
5220
+ companyId?: string | null;
5221
+ totalDowntimeDurationMilliseconds?: number;
5222
+ downtimeReasons?: DowntimeReasonReport[];
5223
+ }
5224
+ export declare class DowntimeReasonReport implements IDowntimeReasonReport {
5225
+ reasonId: string;
5226
+ reasonType: DowntimeReasonTypeDto;
5227
+ reason: string;
5228
+ totalDurationMilliseconds: number;
5229
+ count: number;
5230
+ details: DowntimeReasonInformation[];
5231
+ constructor(data?: IDowntimeReasonReport);
5232
+ init(_data?: any): void;
5233
+ static fromJS(data: any): DowntimeReasonReport;
5234
+ toJSON(data?: any): any;
5235
+ }
5236
+ export interface IDowntimeReasonReport {
5237
+ reasonId: string;
5238
+ reasonType: DowntimeReasonTypeDto;
5239
+ reason: string;
5240
+ totalDurationMilliseconds: number;
5241
+ count: number;
5242
+ details: DowntimeReasonInformation[];
5243
+ }
5244
+ export declare class DowntimeReasonInformation implements IDowntimeReasonInformation {
5245
+ downtimeReason: DowntimePeriodReasonDto;
5246
+ machine: string;
5247
+ constructor(data?: IDowntimeReasonInformation);
5248
+ init(_data?: any): void;
5249
+ static fromJS(data: any): DowntimeReasonInformation;
5250
+ toJSON(data?: any): any;
5251
+ }
5252
+ export interface IDowntimeReasonInformation {
5253
+ downtimeReason: DowntimePeriodReasonDto;
5254
+ machine: string;
5255
+ }
5256
+ export declare class CreateDowntimeReasonsReportRequest implements ICreateDowntimeReasonsReportRequest {
5257
+ machineExternalIds?: string[] | null;
5258
+ machineGroupNames?: string[] | null;
5259
+ startTime?: Date | null;
5260
+ endTime?: Date | null;
5261
+ constructor(data?: ICreateDowntimeReasonsReportRequest);
5262
+ init(_data?: any): void;
5263
+ static fromJS(data: any): CreateDowntimeReasonsReportRequest;
5264
+ toJSON(data?: any): any;
5265
+ }
5266
+ export interface ICreateDowntimeReasonsReportRequest {
5267
+ machineExternalIds?: string[] | null;
5268
+ machineGroupNames?: string[] | null;
5269
+ startTime?: Date | null;
5270
+ endTime?: Date | null;
5271
+ }
5272
+ export declare class MachineGroupCapacityDto implements IMachineGroupCapacityDto {
5273
+ machineGroupName: string;
5274
+ machine: MachineCapacityDto[];
5275
+ constructor(data?: IMachineGroupCapacityDto);
5276
+ init(_data?: any): void;
5277
+ static fromJS(data: any): MachineGroupCapacityDto;
5278
+ toJSON(data?: any): any;
5279
+ }
5280
+ export interface IMachineGroupCapacityDto {
5281
+ machineGroupName: string;
5282
+ machine: MachineCapacityDto[];
5283
+ }
5284
+ export declare class MachineCapacityDto implements IMachineCapacityDto {
5285
+ machineExternalId: string;
5286
+ name: string;
5287
+ comment?: string | null;
5288
+ capacity?: MachineCapacitySettingsDto[] | null;
5289
+ created?: Date | null;
5290
+ updatedBy?: string | null;
5291
+ updatedById?: string | null;
5292
+ constructor(data?: IMachineCapacityDto);
5293
+ init(_data?: any): void;
5294
+ static fromJS(data: any): MachineCapacityDto;
5295
+ toJSON(data?: any): any;
5296
+ }
5297
+ export interface IMachineCapacityDto {
5298
+ machineExternalId: string;
5299
+ name: string;
5300
+ comment?: string | null;
5301
+ capacity?: MachineCapacitySettingsDto[] | null;
5302
+ created?: Date | null;
5303
+ updatedBy?: string | null;
5304
+ updatedById?: string | null;
5305
+ }
5306
+ export declare class MachineCapacitySettingsDto implements IMachineCapacitySettingsDto {
5307
+ capacityHours: number;
5308
+ utilizationPercent: number;
5309
+ constructor(data?: IMachineCapacitySettingsDto);
5310
+ init(_data?: any): void;
5311
+ static fromJS(data: any): MachineCapacitySettingsDto;
5312
+ toJSON(data?: any): any;
5313
+ }
5314
+ export interface IMachineCapacitySettingsDto {
5315
+ capacityHours: number;
5316
+ utilizationPercent: number;
5317
+ }
5318
+ export declare class UpdateMachinesCapacity implements IUpdateMachinesCapacity {
5319
+ machineExternalId: string;
5320
+ comment?: string | null;
5321
+ capacity: MachineCapacitySettingsDto[];
5322
+ constructor(data?: IUpdateMachinesCapacity);
5323
+ init(_data?: any): void;
5324
+ static fromJS(data: any): UpdateMachinesCapacity;
5325
+ toJSON(data?: any): any;
5326
+ }
5327
+ export interface IUpdateMachinesCapacity {
5328
+ machineExternalId: string;
5329
+ comment?: string | null;
5330
+ capacity: MachineCapacitySettingsDto[];
5331
+ }
5332
+ export declare class CalenderCapacityDto implements ICalenderCapacityDto {
5333
+ date?: Date;
5334
+ dayCapacity?: CalenderDayCapacityDto;
5335
+ constructor(data?: ICalenderCapacityDto);
5336
+ init(_data?: any): void;
5337
+ static fromJS(data: any): CalenderCapacityDto;
5338
+ toJSON(data?: any): any;
5339
+ }
5340
+ export interface ICalenderCapacityDto {
5341
+ date?: Date;
5342
+ dayCapacity?: CalenderDayCapacityDto;
5343
+ }
5344
+ export type CalenderDayCapacityDto = "WorkingDay" | "HalfDay" | "Holiday";
5345
+ export declare class UpdateCalenderCapacity implements IUpdateCalenderCapacity {
5346
+ date: Date;
5347
+ dayCapacity: CalenderDayCapacityDto;
5348
+ constructor(data?: IUpdateCalenderCapacity);
5349
+ init(_data?: any): void;
5350
+ static fromJS(data: any): UpdateCalenderCapacity;
5351
+ toJSON(data?: any): any;
5352
+ }
5353
+ export interface IUpdateCalenderCapacity {
5354
+ date: Date;
5355
+ dayCapacity: CalenderDayCapacityDto;
5356
+ }
5185
5357
  export declare class MachineDto implements IMachineDto {
5186
5358
  id: number;
5187
5359
  externalId: string;