@ignos/api-client 20250624.0.11970-alpha → 20250625.0.11987-alpha
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.
- package/lib/ignosportal-api.d.ts +8 -4
- package/lib/ignosportal-api.js +14 -2
- package/package.json +1 -1
- package/src/ignosportal-api.ts +20 -4
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -390,8 +390,8 @@ export declare class PulseClient extends AuthorizedApiBase implements IPulseClie
|
|
|
390
390
|
protected processUpdatePulseSettings(response: Response): Promise<PulseSettingsDto>;
|
|
391
391
|
}
|
|
392
392
|
export interface IUtilizationClient {
|
|
393
|
-
getCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CompanyUtilizationDto>;
|
|
394
|
-
getCrossCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CrossCompanyUtilizationDto>;
|
|
393
|
+
getCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined, dataPointCount: number | undefined): Promise<CompanyUtilizationDto>;
|
|
394
|
+
getCrossCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined, dataPointCount: number | undefined): Promise<CrossCompanyUtilizationDto>;
|
|
395
395
|
getUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined, assetId: number | null | undefined, assetExternalId: string | null | undefined): Promise<MachineUtilizationDatapointListDto>;
|
|
396
396
|
getCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CompanyUtilizationDatapointListDto>;
|
|
397
397
|
getCrossCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CrossCompanyUtilizationDatapointListDto>;
|
|
@@ -403,9 +403,9 @@ export declare class UtilizationClient extends AuthorizedApiBase implements IUti
|
|
|
403
403
|
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
|
|
404
404
|
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
405
405
|
});
|
|
406
|
-
getCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CompanyUtilizationDto>;
|
|
406
|
+
getCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined, dataPointCount: number | undefined): Promise<CompanyUtilizationDto>;
|
|
407
407
|
protected processGetCompanyUtilization(response: Response): Promise<CompanyUtilizationDto>;
|
|
408
|
-
getCrossCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CrossCompanyUtilizationDto>;
|
|
408
|
+
getCrossCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined, dataPointCount: number | undefined): Promise<CrossCompanyUtilizationDto>;
|
|
409
409
|
protected processGetCrossCompanyUtilization(response: Response): Promise<CrossCompanyUtilizationDto>;
|
|
410
410
|
getUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined, assetId: number | null | undefined, assetExternalId: string | null | undefined): Promise<MachineUtilizationDatapointListDto>;
|
|
411
411
|
protected processGetUtilizationDatapoints(response: Response): Promise<MachineUtilizationDatapointListDto>;
|
|
@@ -3718,6 +3718,8 @@ export declare class UtilizationTypeEnablingDto implements IUtilizationTypeEnabl
|
|
|
3718
3718
|
powerOnEnabled: boolean;
|
|
3719
3719
|
twentyFourSevenEnabled: boolean;
|
|
3720
3720
|
activeOrderEnabled: boolean;
|
|
3721
|
+
machineCalendarEnabled: boolean;
|
|
3722
|
+
factoryCalendarEnabled: boolean;
|
|
3721
3723
|
constructor(data?: IUtilizationTypeEnablingDto);
|
|
3722
3724
|
init(_data?: any): void;
|
|
3723
3725
|
static fromJS(data: any): UtilizationTypeEnablingDto;
|
|
@@ -3727,6 +3729,8 @@ export interface IUtilizationTypeEnablingDto {
|
|
|
3727
3729
|
powerOnEnabled: boolean;
|
|
3728
3730
|
twentyFourSevenEnabled: boolean;
|
|
3729
3731
|
activeOrderEnabled: boolean;
|
|
3732
|
+
machineCalendarEnabled: boolean;
|
|
3733
|
+
factoryCalendarEnabled: boolean;
|
|
3730
3734
|
}
|
|
3731
3735
|
export declare class UpdatePulseSettings implements IUpdatePulseSettings {
|
|
3732
3736
|
defaultUtilizationType: UtilizationTypeDto;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -2169,7 +2169,7 @@ export class UtilizationClient extends AuthorizedApiBase {
|
|
|
2169
2169
|
this.http = http ? http : window;
|
|
2170
2170
|
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
2171
2171
|
}
|
|
2172
|
-
getCompanyUtilization(utilizationType, startTime, endTime) {
|
|
2172
|
+
getCompanyUtilization(utilizationType, startTime, endTime, dataPointCount) {
|
|
2173
2173
|
let url_ = this.baseUrl + "/utilization?";
|
|
2174
2174
|
if (utilizationType === null)
|
|
2175
2175
|
throw new Error("The parameter 'utilizationType' cannot be null.");
|
|
@@ -2179,6 +2179,10 @@ export class UtilizationClient extends AuthorizedApiBase {
|
|
|
2179
2179
|
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
2180
2180
|
if (endTime !== undefined && endTime !== null)
|
|
2181
2181
|
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
2182
|
+
if (dataPointCount === null)
|
|
2183
|
+
throw new Error("The parameter 'dataPointCount' cannot be null.");
|
|
2184
|
+
else if (dataPointCount !== undefined)
|
|
2185
|
+
url_ += "dataPointCount=" + encodeURIComponent("" + dataPointCount) + "&";
|
|
2182
2186
|
url_ = url_.replace(/[?&]$/, "");
|
|
2183
2187
|
let options_ = {
|
|
2184
2188
|
method: "GET",
|
|
@@ -2214,7 +2218,7 @@ export class UtilizationClient extends AuthorizedApiBase {
|
|
|
2214
2218
|
}
|
|
2215
2219
|
return Promise.resolve(null);
|
|
2216
2220
|
}
|
|
2217
|
-
getCrossCompanyUtilization(utilizationType, startTime, endTime) {
|
|
2221
|
+
getCrossCompanyUtilization(utilizationType, startTime, endTime, dataPointCount) {
|
|
2218
2222
|
let url_ = this.baseUrl + "/utilization/cross-company?";
|
|
2219
2223
|
if (utilizationType === null)
|
|
2220
2224
|
throw new Error("The parameter 'utilizationType' cannot be null.");
|
|
@@ -2224,6 +2228,10 @@ export class UtilizationClient extends AuthorizedApiBase {
|
|
|
2224
2228
|
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
2225
2229
|
if (endTime !== undefined && endTime !== null)
|
|
2226
2230
|
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
2231
|
+
if (dataPointCount === null)
|
|
2232
|
+
throw new Error("The parameter 'dataPointCount' cannot be null.");
|
|
2233
|
+
else if (dataPointCount !== undefined)
|
|
2234
|
+
url_ += "dataPointCount=" + encodeURIComponent("" + dataPointCount) + "&";
|
|
2227
2235
|
url_ = url_.replace(/[?&]$/, "");
|
|
2228
2236
|
let options_ = {
|
|
2229
2237
|
method: "GET",
|
|
@@ -24621,6 +24629,8 @@ export class UtilizationTypeEnablingDto {
|
|
|
24621
24629
|
this.powerOnEnabled = _data["powerOnEnabled"];
|
|
24622
24630
|
this.twentyFourSevenEnabled = _data["twentyFourSevenEnabled"];
|
|
24623
24631
|
this.activeOrderEnabled = _data["activeOrderEnabled"];
|
|
24632
|
+
this.machineCalendarEnabled = _data["machineCalendarEnabled"];
|
|
24633
|
+
this.factoryCalendarEnabled = _data["factoryCalendarEnabled"];
|
|
24624
24634
|
}
|
|
24625
24635
|
}
|
|
24626
24636
|
static fromJS(data) {
|
|
@@ -24634,6 +24644,8 @@ export class UtilizationTypeEnablingDto {
|
|
|
24634
24644
|
data["powerOnEnabled"] = this.powerOnEnabled;
|
|
24635
24645
|
data["twentyFourSevenEnabled"] = this.twentyFourSevenEnabled;
|
|
24636
24646
|
data["activeOrderEnabled"] = this.activeOrderEnabled;
|
|
24647
|
+
data["machineCalendarEnabled"] = this.machineCalendarEnabled;
|
|
24648
|
+
data["factoryCalendarEnabled"] = this.factoryCalendarEnabled;
|
|
24637
24649
|
return data;
|
|
24638
24650
|
}
|
|
24639
24651
|
}
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -2387,9 +2387,9 @@ export class PulseClient extends AuthorizedApiBase implements IPulseClient {
|
|
|
2387
2387
|
|
|
2388
2388
|
export interface IUtilizationClient {
|
|
2389
2389
|
|
|
2390
|
-
getCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CompanyUtilizationDto>;
|
|
2390
|
+
getCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined, dataPointCount: number | undefined): Promise<CompanyUtilizationDto>;
|
|
2391
2391
|
|
|
2392
|
-
getCrossCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CrossCompanyUtilizationDto>;
|
|
2392
|
+
getCrossCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined, dataPointCount: number | undefined): Promise<CrossCompanyUtilizationDto>;
|
|
2393
2393
|
|
|
2394
2394
|
getUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined, assetId: number | null | undefined, assetExternalId: string | null | undefined): Promise<MachineUtilizationDatapointListDto>;
|
|
2395
2395
|
|
|
@@ -2409,7 +2409,7 @@ export class UtilizationClient extends AuthorizedApiBase implements IUtilization
|
|
|
2409
2409
|
this.baseUrl = baseUrl ?? "";
|
|
2410
2410
|
}
|
|
2411
2411
|
|
|
2412
|
-
getCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CompanyUtilizationDto> {
|
|
2412
|
+
getCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined, dataPointCount: number | undefined): Promise<CompanyUtilizationDto> {
|
|
2413
2413
|
let url_ = this.baseUrl + "/utilization?";
|
|
2414
2414
|
if (utilizationType === null)
|
|
2415
2415
|
throw new Error("The parameter 'utilizationType' cannot be null.");
|
|
@@ -2419,6 +2419,10 @@ export class UtilizationClient extends AuthorizedApiBase implements IUtilization
|
|
|
2419
2419
|
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
2420
2420
|
if (endTime !== undefined && endTime !== null)
|
|
2421
2421
|
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
2422
|
+
if (dataPointCount === null)
|
|
2423
|
+
throw new Error("The parameter 'dataPointCount' cannot be null.");
|
|
2424
|
+
else if (dataPointCount !== undefined)
|
|
2425
|
+
url_ += "dataPointCount=" + encodeURIComponent("" + dataPointCount) + "&";
|
|
2422
2426
|
url_ = url_.replace(/[?&]$/, "");
|
|
2423
2427
|
|
|
2424
2428
|
let options_: RequestInit = {
|
|
@@ -2453,7 +2457,7 @@ export class UtilizationClient extends AuthorizedApiBase implements IUtilization
|
|
|
2453
2457
|
return Promise.resolve<CompanyUtilizationDto>(null as any);
|
|
2454
2458
|
}
|
|
2455
2459
|
|
|
2456
|
-
getCrossCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CrossCompanyUtilizationDto> {
|
|
2460
|
+
getCrossCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined, dataPointCount: number | undefined): Promise<CrossCompanyUtilizationDto> {
|
|
2457
2461
|
let url_ = this.baseUrl + "/utilization/cross-company?";
|
|
2458
2462
|
if (utilizationType === null)
|
|
2459
2463
|
throw new Error("The parameter 'utilizationType' cannot be null.");
|
|
@@ -2463,6 +2467,10 @@ export class UtilizationClient extends AuthorizedApiBase implements IUtilization
|
|
|
2463
2467
|
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
2464
2468
|
if (endTime !== undefined && endTime !== null)
|
|
2465
2469
|
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
2470
|
+
if (dataPointCount === null)
|
|
2471
|
+
throw new Error("The parameter 'dataPointCount' cannot be null.");
|
|
2472
|
+
else if (dataPointCount !== undefined)
|
|
2473
|
+
url_ += "dataPointCount=" + encodeURIComponent("" + dataPointCount) + "&";
|
|
2466
2474
|
url_ = url_.replace(/[?&]$/, "");
|
|
2467
2475
|
|
|
2468
2476
|
let options_: RequestInit = {
|
|
@@ -27134,6 +27142,8 @@ export class UtilizationTypeEnablingDto implements IUtilizationTypeEnablingDto {
|
|
|
27134
27142
|
powerOnEnabled!: boolean;
|
|
27135
27143
|
twentyFourSevenEnabled!: boolean;
|
|
27136
27144
|
activeOrderEnabled!: boolean;
|
|
27145
|
+
machineCalendarEnabled!: boolean;
|
|
27146
|
+
factoryCalendarEnabled!: boolean;
|
|
27137
27147
|
|
|
27138
27148
|
constructor(data?: IUtilizationTypeEnablingDto) {
|
|
27139
27149
|
if (data) {
|
|
@@ -27149,6 +27159,8 @@ export class UtilizationTypeEnablingDto implements IUtilizationTypeEnablingDto {
|
|
|
27149
27159
|
this.powerOnEnabled = _data["powerOnEnabled"];
|
|
27150
27160
|
this.twentyFourSevenEnabled = _data["twentyFourSevenEnabled"];
|
|
27151
27161
|
this.activeOrderEnabled = _data["activeOrderEnabled"];
|
|
27162
|
+
this.machineCalendarEnabled = _data["machineCalendarEnabled"];
|
|
27163
|
+
this.factoryCalendarEnabled = _data["factoryCalendarEnabled"];
|
|
27152
27164
|
}
|
|
27153
27165
|
}
|
|
27154
27166
|
|
|
@@ -27164,6 +27176,8 @@ export class UtilizationTypeEnablingDto implements IUtilizationTypeEnablingDto {
|
|
|
27164
27176
|
data["powerOnEnabled"] = this.powerOnEnabled;
|
|
27165
27177
|
data["twentyFourSevenEnabled"] = this.twentyFourSevenEnabled;
|
|
27166
27178
|
data["activeOrderEnabled"] = this.activeOrderEnabled;
|
|
27179
|
+
data["machineCalendarEnabled"] = this.machineCalendarEnabled;
|
|
27180
|
+
data["factoryCalendarEnabled"] = this.factoryCalendarEnabled;
|
|
27167
27181
|
return data;
|
|
27168
27182
|
}
|
|
27169
27183
|
}
|
|
@@ -27172,6 +27186,8 @@ export interface IUtilizationTypeEnablingDto {
|
|
|
27172
27186
|
powerOnEnabled: boolean;
|
|
27173
27187
|
twentyFourSevenEnabled: boolean;
|
|
27174
27188
|
activeOrderEnabled: boolean;
|
|
27189
|
+
machineCalendarEnabled: boolean;
|
|
27190
|
+
factoryCalendarEnabled: boolean;
|
|
27175
27191
|
}
|
|
27176
27192
|
|
|
27177
27193
|
export class UpdatePulseSettings implements IUpdatePulseSettings {
|