@ignos/api-client 20250225.0.11258-alpha → 20250225.0.11259-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 +2 -3
- package/lib/ignosportal-api.js +10 -45
- package/package.json +1 -1
- package/src/ignosportal-api.ts +12 -46
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -395,7 +395,6 @@ export interface IUtilizationClient {
|
|
|
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>;
|
|
398
|
-
getLowessCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CompanyUtilizationDatapointListDto>;
|
|
399
398
|
}
|
|
400
399
|
export declare class UtilizationClient extends AuthorizedApiBase implements IUtilizationClient {
|
|
401
400
|
private http;
|
|
@@ -414,8 +413,6 @@ export declare class UtilizationClient extends AuthorizedApiBase implements IUti
|
|
|
414
413
|
protected processGetCompanyUtilizationDatapoints(response: Response): Promise<CompanyUtilizationDatapointListDto>;
|
|
415
414
|
getCrossCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CrossCompanyUtilizationDatapointListDto>;
|
|
416
415
|
protected processGetCrossCompanyUtilizationDatapoints(response: Response): Promise<CrossCompanyUtilizationDatapointListDto>;
|
|
417
|
-
getLowessCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CompanyUtilizationDatapointListDto>;
|
|
418
|
-
protected processGetLowessCompanyUtilizationDatapoints(response: Response): Promise<CompanyUtilizationDatapointListDto>;
|
|
419
416
|
}
|
|
420
417
|
export interface IMrbClient {
|
|
421
418
|
listMrbInstances(customerOrder: string | undefined, customerOrderLine: number | null | undefined): Promise<MrbInstanceDto[]>;
|
|
@@ -3652,6 +3649,7 @@ export interface INamedCompanyUtilizationDto extends ICompanyUtilizationDto {
|
|
|
3652
3649
|
}
|
|
3653
3650
|
export declare class UtilizationDatapointListDto implements IUtilizationDatapointListDto {
|
|
3654
3651
|
datapoints?: NumericNullableValueWithTimestamp[];
|
|
3652
|
+
trendDatapoints?: NumericNullableValueWithTimestamp[];
|
|
3655
3653
|
constructor(data?: IUtilizationDatapointListDto);
|
|
3656
3654
|
init(_data?: any): void;
|
|
3657
3655
|
static fromJS(data: any): UtilizationDatapointListDto;
|
|
@@ -3659,6 +3657,7 @@ export declare class UtilizationDatapointListDto implements IUtilizationDatapoin
|
|
|
3659
3657
|
}
|
|
3660
3658
|
export interface IUtilizationDatapointListDto {
|
|
3661
3659
|
datapoints?: NumericNullableValueWithTimestamp[];
|
|
3660
|
+
trendDatapoints?: NumericNullableValueWithTimestamp[];
|
|
3662
3661
|
}
|
|
3663
3662
|
export declare class MachineUtilizationDatapointListDto extends UtilizationDatapointListDto implements IMachineUtilizationDatapointListDto {
|
|
3664
3663
|
externalId: string;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -2398,51 +2398,6 @@ export class UtilizationClient extends AuthorizedApiBase {
|
|
|
2398
2398
|
}
|
|
2399
2399
|
return Promise.resolve(null);
|
|
2400
2400
|
}
|
|
2401
|
-
getLowessCompanyUtilizationDatapoints(utilizationType, startTime, endTime) {
|
|
2402
|
-
let url_ = this.baseUrl + "/utilization/datapoints/company/lowess?";
|
|
2403
|
-
if (utilizationType === null)
|
|
2404
|
-
throw new Error("The parameter 'utilizationType' cannot be null.");
|
|
2405
|
-
else if (utilizationType !== undefined)
|
|
2406
|
-
url_ += "utilizationType=" + encodeURIComponent("" + utilizationType) + "&";
|
|
2407
|
-
if (startTime !== undefined && startTime !== null)
|
|
2408
|
-
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
2409
|
-
if (endTime !== undefined && endTime !== null)
|
|
2410
|
-
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
2411
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
2412
|
-
let options_ = {
|
|
2413
|
-
method: "GET",
|
|
2414
|
-
headers: {
|
|
2415
|
-
"Accept": "application/json"
|
|
2416
|
-
}
|
|
2417
|
-
};
|
|
2418
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
2419
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
2420
|
-
}).then((_response) => {
|
|
2421
|
-
return this.processGetLowessCompanyUtilizationDatapoints(_response);
|
|
2422
|
-
});
|
|
2423
|
-
}
|
|
2424
|
-
processGetLowessCompanyUtilizationDatapoints(response) {
|
|
2425
|
-
const status = response.status;
|
|
2426
|
-
let _headers = {};
|
|
2427
|
-
if (response.headers && response.headers.forEach) {
|
|
2428
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
2429
|
-
}
|
|
2430
|
-
;
|
|
2431
|
-
if (status === 200) {
|
|
2432
|
-
return response.text().then((_responseText) => {
|
|
2433
|
-
let result200 = null;
|
|
2434
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2435
|
-
result200 = CompanyUtilizationDatapointListDto.fromJS(resultData200);
|
|
2436
|
-
return result200;
|
|
2437
|
-
});
|
|
2438
|
-
}
|
|
2439
|
-
else if (status !== 200 && status !== 204) {
|
|
2440
|
-
return response.text().then((_responseText) => {
|
|
2441
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
2442
|
-
});
|
|
2443
|
-
}
|
|
2444
|
-
return Promise.resolve(null);
|
|
2445
|
-
}
|
|
2446
2401
|
}
|
|
2447
2402
|
export class MrbClient extends AuthorizedApiBase {
|
|
2448
2403
|
constructor(configuration, baseUrl, http) {
|
|
@@ -23255,6 +23210,11 @@ export class UtilizationDatapointListDto {
|
|
|
23255
23210
|
for (let item of _data["datapoints"])
|
|
23256
23211
|
this.datapoints.push(NumericNullableValueWithTimestamp.fromJS(item));
|
|
23257
23212
|
}
|
|
23213
|
+
if (Array.isArray(_data["trendDatapoints"])) {
|
|
23214
|
+
this.trendDatapoints = [];
|
|
23215
|
+
for (let item of _data["trendDatapoints"])
|
|
23216
|
+
this.trendDatapoints.push(NumericNullableValueWithTimestamp.fromJS(item));
|
|
23217
|
+
}
|
|
23258
23218
|
}
|
|
23259
23219
|
}
|
|
23260
23220
|
static fromJS(data) {
|
|
@@ -23270,6 +23230,11 @@ export class UtilizationDatapointListDto {
|
|
|
23270
23230
|
for (let item of this.datapoints)
|
|
23271
23231
|
data["datapoints"].push(item.toJSON());
|
|
23272
23232
|
}
|
|
23233
|
+
if (Array.isArray(this.trendDatapoints)) {
|
|
23234
|
+
data["trendDatapoints"] = [];
|
|
23235
|
+
for (let item of this.trendDatapoints)
|
|
23236
|
+
data["trendDatapoints"].push(item.toJSON());
|
|
23237
|
+
}
|
|
23273
23238
|
return data;
|
|
23274
23239
|
}
|
|
23275
23240
|
}
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -2396,8 +2396,6 @@ export interface IUtilizationClient {
|
|
|
2396
2396
|
getCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CompanyUtilizationDatapointListDto>;
|
|
2397
2397
|
|
|
2398
2398
|
getCrossCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CrossCompanyUtilizationDatapointListDto>;
|
|
2399
|
-
|
|
2400
|
-
getLowessCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CompanyUtilizationDatapointListDto>;
|
|
2401
2399
|
}
|
|
2402
2400
|
|
|
2403
2401
|
export class UtilizationClient extends AuthorizedApiBase implements IUtilizationClient {
|
|
@@ -2634,50 +2632,6 @@ export class UtilizationClient extends AuthorizedApiBase implements IUtilization
|
|
|
2634
2632
|
}
|
|
2635
2633
|
return Promise.resolve<CrossCompanyUtilizationDatapointListDto>(null as any);
|
|
2636
2634
|
}
|
|
2637
|
-
|
|
2638
|
-
getLowessCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CompanyUtilizationDatapointListDto> {
|
|
2639
|
-
let url_ = this.baseUrl + "/utilization/datapoints/company/lowess?";
|
|
2640
|
-
if (utilizationType === null)
|
|
2641
|
-
throw new Error("The parameter 'utilizationType' cannot be null.");
|
|
2642
|
-
else if (utilizationType !== undefined)
|
|
2643
|
-
url_ += "utilizationType=" + encodeURIComponent("" + utilizationType) + "&";
|
|
2644
|
-
if (startTime !== undefined && startTime !== null)
|
|
2645
|
-
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
2646
|
-
if (endTime !== undefined && endTime !== null)
|
|
2647
|
-
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
2648
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
2649
|
-
|
|
2650
|
-
let options_: RequestInit = {
|
|
2651
|
-
method: "GET",
|
|
2652
|
-
headers: {
|
|
2653
|
-
"Accept": "application/json"
|
|
2654
|
-
}
|
|
2655
|
-
};
|
|
2656
|
-
|
|
2657
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
2658
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
2659
|
-
}).then((_response: Response) => {
|
|
2660
|
-
return this.processGetLowessCompanyUtilizationDatapoints(_response);
|
|
2661
|
-
});
|
|
2662
|
-
}
|
|
2663
|
-
|
|
2664
|
-
protected processGetLowessCompanyUtilizationDatapoints(response: Response): Promise<CompanyUtilizationDatapointListDto> {
|
|
2665
|
-
const status = response.status;
|
|
2666
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
2667
|
-
if (status === 200) {
|
|
2668
|
-
return response.text().then((_responseText) => {
|
|
2669
|
-
let result200: any = null;
|
|
2670
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2671
|
-
result200 = CompanyUtilizationDatapointListDto.fromJS(resultData200);
|
|
2672
|
-
return result200;
|
|
2673
|
-
});
|
|
2674
|
-
} else if (status !== 200 && status !== 204) {
|
|
2675
|
-
return response.text().then((_responseText) => {
|
|
2676
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
2677
|
-
});
|
|
2678
|
-
}
|
|
2679
|
-
return Promise.resolve<CompanyUtilizationDatapointListDto>(null as any);
|
|
2680
|
-
}
|
|
2681
2635
|
}
|
|
2682
2636
|
|
|
2683
2637
|
export interface IMrbClient {
|
|
@@ -25773,6 +25727,7 @@ export interface INamedCompanyUtilizationDto extends ICompanyUtilizationDto {
|
|
|
25773
25727
|
|
|
25774
25728
|
export class UtilizationDatapointListDto implements IUtilizationDatapointListDto {
|
|
25775
25729
|
datapoints?: NumericNullableValueWithTimestamp[];
|
|
25730
|
+
trendDatapoints?: NumericNullableValueWithTimestamp[];
|
|
25776
25731
|
|
|
25777
25732
|
constructor(data?: IUtilizationDatapointListDto) {
|
|
25778
25733
|
if (data) {
|
|
@@ -25790,6 +25745,11 @@ export class UtilizationDatapointListDto implements IUtilizationDatapointListDto
|
|
|
25790
25745
|
for (let item of _data["datapoints"])
|
|
25791
25746
|
this.datapoints!.push(NumericNullableValueWithTimestamp.fromJS(item));
|
|
25792
25747
|
}
|
|
25748
|
+
if (Array.isArray(_data["trendDatapoints"])) {
|
|
25749
|
+
this.trendDatapoints = [] as any;
|
|
25750
|
+
for (let item of _data["trendDatapoints"])
|
|
25751
|
+
this.trendDatapoints!.push(NumericNullableValueWithTimestamp.fromJS(item));
|
|
25752
|
+
}
|
|
25793
25753
|
}
|
|
25794
25754
|
}
|
|
25795
25755
|
|
|
@@ -25807,12 +25767,18 @@ export class UtilizationDatapointListDto implements IUtilizationDatapointListDto
|
|
|
25807
25767
|
for (let item of this.datapoints)
|
|
25808
25768
|
data["datapoints"].push(item.toJSON());
|
|
25809
25769
|
}
|
|
25770
|
+
if (Array.isArray(this.trendDatapoints)) {
|
|
25771
|
+
data["trendDatapoints"] = [];
|
|
25772
|
+
for (let item of this.trendDatapoints)
|
|
25773
|
+
data["trendDatapoints"].push(item.toJSON());
|
|
25774
|
+
}
|
|
25810
25775
|
return data;
|
|
25811
25776
|
}
|
|
25812
25777
|
}
|
|
25813
25778
|
|
|
25814
25779
|
export interface IUtilizationDatapointListDto {
|
|
25815
25780
|
datapoints?: NumericNullableValueWithTimestamp[];
|
|
25781
|
+
trendDatapoints?: NumericNullableValueWithTimestamp[];
|
|
25816
25782
|
}
|
|
25817
25783
|
|
|
25818
25784
|
export class MachineUtilizationDatapointListDto extends UtilizationDatapointListDto implements IMachineUtilizationDatapointListDto {
|