@ignos/api-client 20250704.0.12087-alpha → 20250704.0.12089-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 +23 -22
- package/lib/ignosportal-api.js +85 -25
- package/package.json +1 -1
- package/src/ignosportal-api.ts +103 -44
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -176,6 +176,7 @@ export interface IMachineUtilizationClient {
|
|
|
176
176
|
listMachineUptimesToday(request: ListMachineUptimesTodayRequest): Promise<MachineUptimesAggregateDto>;
|
|
177
177
|
listPowerOnUtilizationDatapoints(id: number | null | undefined, externalId: string | null | undefined, nDays: number | null | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<PowerOnUtilizationList>;
|
|
178
178
|
getFactoryUtilization(): Promise<PowerOnUtilizationDto>;
|
|
179
|
+
getProgramTimeline(id: string, startTime: Date | undefined, endTime: Date | undefined): Promise<ProgramDatapoint[]>;
|
|
179
180
|
}
|
|
180
181
|
export declare class MachineUtilizationClient extends AuthorizedApiBase implements IMachineUtilizationClient {
|
|
181
182
|
private http;
|
|
@@ -217,6 +218,8 @@ export declare class MachineUtilizationClient extends AuthorizedApiBase implemen
|
|
|
217
218
|
protected processListPowerOnUtilizationDatapoints(response: Response): Promise<PowerOnUtilizationList>;
|
|
218
219
|
getFactoryUtilization(): Promise<PowerOnUtilizationDto>;
|
|
219
220
|
protected processGetFactoryUtilization(response: Response): Promise<PowerOnUtilizationDto>;
|
|
221
|
+
getProgramTimeline(id: string, startTime: Date | undefined, endTime: Date | undefined): Promise<ProgramDatapoint[]>;
|
|
222
|
+
protected processGetProgramTimeline(response: Response): Promise<ProgramDatapoint[]>;
|
|
220
223
|
}
|
|
221
224
|
export interface IMeClient {
|
|
222
225
|
getMyApps(): Promise<UserAppDto[]>;
|
|
@@ -390,9 +393,9 @@ export declare class PulseClient extends AuthorizedApiBase implements IPulseClie
|
|
|
390
393
|
protected processUpdatePulseSettings(response: Response): Promise<PulseSettingsDto>;
|
|
391
394
|
}
|
|
392
395
|
export interface IUtilizationClient {
|
|
393
|
-
getCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined
|
|
394
|
-
getCrossCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined
|
|
395
|
-
getUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined, assetExternalId: string | null | undefined): Promise<MachineUtilizationDatapointListDto>;
|
|
396
|
+
getCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CompanyUtilizationDto>;
|
|
397
|
+
getCrossCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CrossCompanyUtilizationDto>;
|
|
398
|
+
getUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined, assetId: number | null | undefined, assetExternalId: string | null | undefined): Promise<MachineUtilizationDatapointListDto>;
|
|
396
399
|
getCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CompanyUtilizationDatapointListDto>;
|
|
397
400
|
getCrossCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CrossCompanyUtilizationDatapointListDto>;
|
|
398
401
|
}
|
|
@@ -403,11 +406,11 @@ export declare class UtilizationClient extends AuthorizedApiBase implements IUti
|
|
|
403
406
|
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
|
|
404
407
|
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
405
408
|
});
|
|
406
|
-
getCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined
|
|
409
|
+
getCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CompanyUtilizationDto>;
|
|
407
410
|
protected processGetCompanyUtilization(response: Response): Promise<CompanyUtilizationDto>;
|
|
408
|
-
getCrossCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined
|
|
411
|
+
getCrossCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CrossCompanyUtilizationDto>;
|
|
409
412
|
protected processGetCrossCompanyUtilization(response: Response): Promise<CrossCompanyUtilizationDto>;
|
|
410
|
-
getUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined, assetExternalId: string | null | undefined): Promise<MachineUtilizationDatapointListDto>;
|
|
413
|
+
getUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined, assetId: number | null | undefined, assetExternalId: string | null | undefined): Promise<MachineUtilizationDatapointListDto>;
|
|
411
414
|
protected processGetUtilizationDatapoints(response: Response): Promise<MachineUtilizationDatapointListDto>;
|
|
412
415
|
getCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CompanyUtilizationDatapointListDto>;
|
|
413
416
|
protected processGetCompanyUtilizationDatapoints(response: Response): Promise<CompanyUtilizationDatapointListDto>;
|
|
@@ -3106,6 +3109,18 @@ export interface INumericNullableValueWithTimestamp {
|
|
|
3106
3109
|
timestamp?: number;
|
|
3107
3110
|
value?: number | null;
|
|
3108
3111
|
}
|
|
3112
|
+
export declare class ProgramDatapoint implements IProgramDatapoint {
|
|
3113
|
+
timestamp?: number;
|
|
3114
|
+
programValue?: string;
|
|
3115
|
+
constructor(data?: IProgramDatapoint);
|
|
3116
|
+
init(_data?: any): void;
|
|
3117
|
+
static fromJS(data: any): ProgramDatapoint;
|
|
3118
|
+
toJSON(data?: any): any;
|
|
3119
|
+
}
|
|
3120
|
+
export interface IProgramDatapoint {
|
|
3121
|
+
timestamp?: number;
|
|
3122
|
+
programValue?: string;
|
|
3123
|
+
}
|
|
3109
3124
|
export declare class UserAppDto implements IUserAppDto {
|
|
3110
3125
|
key: string;
|
|
3111
3126
|
name: string;
|
|
@@ -3729,13 +3744,11 @@ export interface IPulseSettingsDto {
|
|
|
3729
3744
|
defaultUtilizationType: UtilizationTypeDto;
|
|
3730
3745
|
utilizationTypeEnabling: UtilizationTypeEnablingDto;
|
|
3731
3746
|
}
|
|
3732
|
-
export type UtilizationTypeDto = "PowerOn" | "TwentyFourSeven" | "ActiveOrder"
|
|
3747
|
+
export type UtilizationTypeDto = "PowerOn" | "TwentyFourSeven" | "ActiveOrder";
|
|
3733
3748
|
export declare class UtilizationTypeEnablingDto implements IUtilizationTypeEnablingDto {
|
|
3734
3749
|
powerOnEnabled: boolean;
|
|
3735
3750
|
twentyFourSevenEnabled: boolean;
|
|
3736
3751
|
activeOrderEnabled: boolean;
|
|
3737
|
-
machineCalendarEnabled: boolean;
|
|
3738
|
-
factoryCalendarEnabled: boolean;
|
|
3739
3752
|
constructor(data?: IUtilizationTypeEnablingDto);
|
|
3740
3753
|
init(_data?: any): void;
|
|
3741
3754
|
static fromJS(data: any): UtilizationTypeEnablingDto;
|
|
@@ -3745,16 +3758,12 @@ export interface IUtilizationTypeEnablingDto {
|
|
|
3745
3758
|
powerOnEnabled: boolean;
|
|
3746
3759
|
twentyFourSevenEnabled: boolean;
|
|
3747
3760
|
activeOrderEnabled: boolean;
|
|
3748
|
-
machineCalendarEnabled: boolean;
|
|
3749
|
-
factoryCalendarEnabled: boolean;
|
|
3750
3761
|
}
|
|
3751
3762
|
export declare class UpdatePulseSettings implements IUpdatePulseSettings {
|
|
3752
3763
|
defaultUtilizationType: UtilizationTypeDto;
|
|
3753
3764
|
powerOnEnabled: boolean;
|
|
3754
3765
|
twentyfourSevenEnabled: boolean;
|
|
3755
3766
|
activeOrderEnabled: boolean;
|
|
3756
|
-
machineCalendarEnabled: boolean;
|
|
3757
|
-
factoryCalendarEnabled: boolean;
|
|
3758
3767
|
constructor(data?: IUpdatePulseSettings);
|
|
3759
3768
|
init(_data?: any): void;
|
|
3760
3769
|
static fromJS(data: any): UpdatePulseSettings;
|
|
@@ -3765,8 +3774,6 @@ export interface IUpdatePulseSettings {
|
|
|
3765
3774
|
powerOnEnabled: boolean;
|
|
3766
3775
|
twentyfourSevenEnabled: boolean;
|
|
3767
3776
|
activeOrderEnabled: boolean;
|
|
3768
|
-
machineCalendarEnabled: boolean;
|
|
3769
|
-
factoryCalendarEnabled: boolean;
|
|
3770
3777
|
}
|
|
3771
3778
|
export declare class CompanyUtilizationDto implements ICompanyUtilizationDto {
|
|
3772
3779
|
utilizationType: UtilizationTypeDto;
|
|
@@ -3786,7 +3793,6 @@ export interface ICompanyUtilizationDto {
|
|
|
3786
3793
|
}
|
|
3787
3794
|
export declare class UtilizationDetailsV2Dto implements IUtilizationDetailsV2Dto {
|
|
3788
3795
|
utilizationPercent?: number | null;
|
|
3789
|
-
capacityInMilliseconds?: number;
|
|
3790
3796
|
uptimeInSeconds?: number | null;
|
|
3791
3797
|
downtimeInSeconds?: number | null;
|
|
3792
3798
|
totalTimeInSeconds?: number | null;
|
|
@@ -3800,7 +3806,6 @@ export declare class UtilizationDetailsV2Dto implements IUtilizationDetailsV2Dto
|
|
|
3800
3806
|
}
|
|
3801
3807
|
export interface IUtilizationDetailsV2Dto {
|
|
3802
3808
|
utilizationPercent?: number | null;
|
|
3803
|
-
capacityInMilliseconds?: number;
|
|
3804
3809
|
uptimeInSeconds?: number | null;
|
|
3805
3810
|
downtimeInSeconds?: number | null;
|
|
3806
3811
|
totalTimeInSeconds?: number | null;
|
|
@@ -11717,7 +11722,6 @@ export declare class MeasurementFormGroupedElementDto implements IMeasurementFor
|
|
|
11717
11722
|
machiningDimension?: number | null;
|
|
11718
11723
|
nominalInch?: number | null;
|
|
11719
11724
|
isValid: boolean;
|
|
11720
|
-
validationErrorMessage?: string | null;
|
|
11721
11725
|
constructor(data?: IMeasurementFormGroupedElementDto);
|
|
11722
11726
|
init(_data?: any): void;
|
|
11723
11727
|
static fromJS(data: any): MeasurementFormGroupedElementDto;
|
|
@@ -11763,9 +11767,8 @@ export interface IMeasurementFormGroupedElementDto {
|
|
|
11763
11767
|
machiningDimension?: number | null;
|
|
11764
11768
|
nominalInch?: number | null;
|
|
11765
11769
|
isValid: boolean;
|
|
11766
|
-
validationErrorMessage?: string | null;
|
|
11767
11770
|
}
|
|
11768
|
-
export type MeasurementFrequency = "All" | "FirstArticle" | "NFirst" | "NPercent" | "ISO2859" | "Nth" | "
|
|
11771
|
+
export type MeasurementFrequency = "All" | "FirstArticle" | "NFirst" | "NPercent" | "ISO2859" | "Nth" | "None";
|
|
11769
11772
|
export type MeasurementFormValueType = "None" | "Bool" | "Decimal" | "String";
|
|
11770
11773
|
export type BonusType = "None" | "Positive" | "PositiveAndNegative";
|
|
11771
11774
|
export declare class MeasurementFormLinkedSchemaDto implements IMeasurementFormLinkedSchemaDto {
|
|
@@ -11907,7 +11910,6 @@ export declare class UpdateSchemaGroupedElementDto implements IUpdateSchemaGroup
|
|
|
11907
11910
|
includeInCustomerDocumentation: boolean;
|
|
11908
11911
|
canCopy?: boolean | null;
|
|
11909
11912
|
isDocumentedExternally: boolean;
|
|
11910
|
-
coatingThickness?: number | null;
|
|
11911
11913
|
constructor(data?: IUpdateSchemaGroupedElementDto);
|
|
11912
11914
|
init(_data?: any): void;
|
|
11913
11915
|
static fromJS(data: any): UpdateSchemaGroupedElementDto;
|
|
@@ -11920,7 +11922,6 @@ export interface IUpdateSchemaGroupedElementDto {
|
|
|
11920
11922
|
includeInCustomerDocumentation: boolean;
|
|
11921
11923
|
canCopy?: boolean | null;
|
|
11922
11924
|
isDocumentedExternally: boolean;
|
|
11923
|
-
coatingThickness?: number | null;
|
|
11924
11925
|
}
|
|
11925
11926
|
export declare class UpdateSchemaGroupedElementRowDto implements IUpdateSchemaGroupedElementRowDto {
|
|
11926
11927
|
id: string;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -970,6 +970,58 @@ export class MachineUtilizationClient extends AuthorizedApiBase {
|
|
|
970
970
|
}
|
|
971
971
|
return Promise.resolve(null);
|
|
972
972
|
}
|
|
973
|
+
getProgramTimeline(id, startTime, endTime) {
|
|
974
|
+
let url_ = this.baseUrl + "/machineutilization/{id}/program-timeline?";
|
|
975
|
+
if (id === undefined || id === null)
|
|
976
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
977
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
978
|
+
if (startTime === null)
|
|
979
|
+
throw new Error("The parameter 'startTime' cannot be null.");
|
|
980
|
+
else if (startTime !== undefined)
|
|
981
|
+
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
982
|
+
if (endTime === null)
|
|
983
|
+
throw new Error("The parameter 'endTime' cannot be null.");
|
|
984
|
+
else if (endTime !== undefined)
|
|
985
|
+
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
986
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
987
|
+
let options_ = {
|
|
988
|
+
method: "GET",
|
|
989
|
+
headers: {
|
|
990
|
+
"Accept": "application/json"
|
|
991
|
+
}
|
|
992
|
+
};
|
|
993
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
994
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
995
|
+
}).then((_response) => {
|
|
996
|
+
return this.processGetProgramTimeline(_response);
|
|
997
|
+
});
|
|
998
|
+
}
|
|
999
|
+
processGetProgramTimeline(response) {
|
|
1000
|
+
const status = response.status;
|
|
1001
|
+
let _headers = {};
|
|
1002
|
+
if (response.headers && response.headers.forEach) {
|
|
1003
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
1004
|
+
}
|
|
1005
|
+
;
|
|
1006
|
+
if (status === 200) {
|
|
1007
|
+
return response.text().then((_responseText) => {
|
|
1008
|
+
let result200 = null;
|
|
1009
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1010
|
+
if (Array.isArray(resultData200)) {
|
|
1011
|
+
result200 = [];
|
|
1012
|
+
for (let item of resultData200)
|
|
1013
|
+
result200.push(ProgramDatapoint.fromJS(item));
|
|
1014
|
+
}
|
|
1015
|
+
return result200;
|
|
1016
|
+
});
|
|
1017
|
+
}
|
|
1018
|
+
else if (status !== 200 && status !== 204) {
|
|
1019
|
+
return response.text().then((_responseText) => {
|
|
1020
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1021
|
+
});
|
|
1022
|
+
}
|
|
1023
|
+
return Promise.resolve(null);
|
|
1024
|
+
}
|
|
973
1025
|
}
|
|
974
1026
|
export class MeClient extends AuthorizedApiBase {
|
|
975
1027
|
constructor(configuration, baseUrl, http) {
|
|
@@ -2169,7 +2221,7 @@ export class UtilizationClient extends AuthorizedApiBase {
|
|
|
2169
2221
|
this.http = http ? http : window;
|
|
2170
2222
|
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
2171
2223
|
}
|
|
2172
|
-
getCompanyUtilization(utilizationType, startTime, endTime
|
|
2224
|
+
getCompanyUtilization(utilizationType, startTime, endTime) {
|
|
2173
2225
|
let url_ = this.baseUrl + "/utilization?";
|
|
2174
2226
|
if (utilizationType === null)
|
|
2175
2227
|
throw new Error("The parameter 'utilizationType' cannot be null.");
|
|
@@ -2179,10 +2231,6 @@ export class UtilizationClient extends AuthorizedApiBase {
|
|
|
2179
2231
|
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
2180
2232
|
if (endTime !== undefined && endTime !== null)
|
|
2181
2233
|
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) + "&";
|
|
2186
2234
|
url_ = url_.replace(/[?&]$/, "");
|
|
2187
2235
|
let options_ = {
|
|
2188
2236
|
method: "GET",
|
|
@@ -2218,7 +2266,7 @@ export class UtilizationClient extends AuthorizedApiBase {
|
|
|
2218
2266
|
}
|
|
2219
2267
|
return Promise.resolve(null);
|
|
2220
2268
|
}
|
|
2221
|
-
getCrossCompanyUtilization(utilizationType, startTime, endTime
|
|
2269
|
+
getCrossCompanyUtilization(utilizationType, startTime, endTime) {
|
|
2222
2270
|
let url_ = this.baseUrl + "/utilization/cross-company?";
|
|
2223
2271
|
if (utilizationType === null)
|
|
2224
2272
|
throw new Error("The parameter 'utilizationType' cannot be null.");
|
|
@@ -2228,10 +2276,6 @@ export class UtilizationClient extends AuthorizedApiBase {
|
|
|
2228
2276
|
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
2229
2277
|
if (endTime !== undefined && endTime !== null)
|
|
2230
2278
|
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) + "&";
|
|
2235
2279
|
url_ = url_.replace(/[?&]$/, "");
|
|
2236
2280
|
let options_ = {
|
|
2237
2281
|
method: "GET",
|
|
@@ -2267,7 +2311,7 @@ export class UtilizationClient extends AuthorizedApiBase {
|
|
|
2267
2311
|
}
|
|
2268
2312
|
return Promise.resolve(null);
|
|
2269
2313
|
}
|
|
2270
|
-
getUtilizationDatapoints(utilizationType, startTime, endTime, assetExternalId) {
|
|
2314
|
+
getUtilizationDatapoints(utilizationType, startTime, endTime, assetId, assetExternalId) {
|
|
2271
2315
|
let url_ = this.baseUrl + "/utilization/datapoints?";
|
|
2272
2316
|
if (utilizationType === null)
|
|
2273
2317
|
throw new Error("The parameter 'utilizationType' cannot be null.");
|
|
@@ -2277,6 +2321,8 @@ export class UtilizationClient extends AuthorizedApiBase {
|
|
|
2277
2321
|
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
2278
2322
|
if (endTime !== undefined && endTime !== null)
|
|
2279
2323
|
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
2324
|
+
if (assetId !== undefined && assetId !== null)
|
|
2325
|
+
url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
|
|
2280
2326
|
if (assetExternalId !== undefined && assetExternalId !== null)
|
|
2281
2327
|
url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
|
|
2282
2328
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -23349,6 +23395,34 @@ export class NumericNullableValueWithTimestamp {
|
|
|
23349
23395
|
return data;
|
|
23350
23396
|
}
|
|
23351
23397
|
}
|
|
23398
|
+
export class ProgramDatapoint {
|
|
23399
|
+
constructor(data) {
|
|
23400
|
+
if (data) {
|
|
23401
|
+
for (var property in data) {
|
|
23402
|
+
if (data.hasOwnProperty(property))
|
|
23403
|
+
this[property] = data[property];
|
|
23404
|
+
}
|
|
23405
|
+
}
|
|
23406
|
+
}
|
|
23407
|
+
init(_data) {
|
|
23408
|
+
if (_data) {
|
|
23409
|
+
this.timestamp = _data["timestamp"];
|
|
23410
|
+
this.programValue = _data["programValue"];
|
|
23411
|
+
}
|
|
23412
|
+
}
|
|
23413
|
+
static fromJS(data) {
|
|
23414
|
+
data = typeof data === 'object' ? data : {};
|
|
23415
|
+
let result = new ProgramDatapoint();
|
|
23416
|
+
result.init(data);
|
|
23417
|
+
return result;
|
|
23418
|
+
}
|
|
23419
|
+
toJSON(data) {
|
|
23420
|
+
data = typeof data === 'object' ? data : {};
|
|
23421
|
+
data["timestamp"] = this.timestamp;
|
|
23422
|
+
data["programValue"] = this.programValue;
|
|
23423
|
+
return data;
|
|
23424
|
+
}
|
|
23425
|
+
}
|
|
23352
23426
|
export class UserAppDto {
|
|
23353
23427
|
constructor(data) {
|
|
23354
23428
|
if (data) {
|
|
@@ -24712,8 +24786,6 @@ export class UtilizationTypeEnablingDto {
|
|
|
24712
24786
|
this.powerOnEnabled = _data["powerOnEnabled"];
|
|
24713
24787
|
this.twentyFourSevenEnabled = _data["twentyFourSevenEnabled"];
|
|
24714
24788
|
this.activeOrderEnabled = _data["activeOrderEnabled"];
|
|
24715
|
-
this.machineCalendarEnabled = _data["machineCalendarEnabled"];
|
|
24716
|
-
this.factoryCalendarEnabled = _data["factoryCalendarEnabled"];
|
|
24717
24789
|
}
|
|
24718
24790
|
}
|
|
24719
24791
|
static fromJS(data) {
|
|
@@ -24727,8 +24799,6 @@ export class UtilizationTypeEnablingDto {
|
|
|
24727
24799
|
data["powerOnEnabled"] = this.powerOnEnabled;
|
|
24728
24800
|
data["twentyFourSevenEnabled"] = this.twentyFourSevenEnabled;
|
|
24729
24801
|
data["activeOrderEnabled"] = this.activeOrderEnabled;
|
|
24730
|
-
data["machineCalendarEnabled"] = this.machineCalendarEnabled;
|
|
24731
|
-
data["factoryCalendarEnabled"] = this.factoryCalendarEnabled;
|
|
24732
24802
|
return data;
|
|
24733
24803
|
}
|
|
24734
24804
|
}
|
|
@@ -24747,8 +24817,6 @@ export class UpdatePulseSettings {
|
|
|
24747
24817
|
this.powerOnEnabled = _data["powerOnEnabled"];
|
|
24748
24818
|
this.twentyfourSevenEnabled = _data["twentyfourSevenEnabled"];
|
|
24749
24819
|
this.activeOrderEnabled = _data["activeOrderEnabled"];
|
|
24750
|
-
this.machineCalendarEnabled = _data["machineCalendarEnabled"];
|
|
24751
|
-
this.factoryCalendarEnabled = _data["factoryCalendarEnabled"];
|
|
24752
24820
|
}
|
|
24753
24821
|
}
|
|
24754
24822
|
static fromJS(data) {
|
|
@@ -24763,8 +24831,6 @@ export class UpdatePulseSettings {
|
|
|
24763
24831
|
data["powerOnEnabled"] = this.powerOnEnabled;
|
|
24764
24832
|
data["twentyfourSevenEnabled"] = this.twentyfourSevenEnabled;
|
|
24765
24833
|
data["activeOrderEnabled"] = this.activeOrderEnabled;
|
|
24766
|
-
data["machineCalendarEnabled"] = this.machineCalendarEnabled;
|
|
24767
|
-
data["factoryCalendarEnabled"] = this.factoryCalendarEnabled;
|
|
24768
24834
|
return data;
|
|
24769
24835
|
}
|
|
24770
24836
|
}
|
|
@@ -24833,7 +24899,6 @@ export class UtilizationDetailsV2Dto {
|
|
|
24833
24899
|
init(_data) {
|
|
24834
24900
|
if (_data) {
|
|
24835
24901
|
this.utilizationPercent = _data["utilizationPercent"];
|
|
24836
|
-
this.capacityInMilliseconds = _data["capacityInMilliseconds"];
|
|
24837
24902
|
this.uptimeInSeconds = _data["uptimeInSeconds"];
|
|
24838
24903
|
this.downtimeInSeconds = _data["downtimeInSeconds"];
|
|
24839
24904
|
this.totalTimeInSeconds = _data["totalTimeInSeconds"];
|
|
@@ -24851,7 +24916,6 @@ export class UtilizationDetailsV2Dto {
|
|
|
24851
24916
|
toJSON(data) {
|
|
24852
24917
|
data = typeof data === 'object' ? data : {};
|
|
24853
24918
|
data["utilizationPercent"] = this.utilizationPercent;
|
|
24854
|
-
data["capacityInMilliseconds"] = this.capacityInMilliseconds;
|
|
24855
24919
|
data["uptimeInSeconds"] = this.uptimeInSeconds;
|
|
24856
24920
|
data["downtimeInSeconds"] = this.downtimeInSeconds;
|
|
24857
24921
|
data["totalTimeInSeconds"] = this.totalTimeInSeconds;
|
|
@@ -41086,7 +41150,6 @@ export class MeasurementFormGroupedElementDto {
|
|
|
41086
41150
|
this.machiningDimension = _data["machiningDimension"];
|
|
41087
41151
|
this.nominalInch = _data["nominalInch"];
|
|
41088
41152
|
this.isValid = _data["isValid"];
|
|
41089
|
-
this.validationErrorMessage = _data["validationErrorMessage"];
|
|
41090
41153
|
}
|
|
41091
41154
|
}
|
|
41092
41155
|
static fromJS(data) {
|
|
@@ -41136,7 +41199,6 @@ export class MeasurementFormGroupedElementDto {
|
|
|
41136
41199
|
data["machiningDimension"] = this.machiningDimension;
|
|
41137
41200
|
data["nominalInch"] = this.nominalInch;
|
|
41138
41201
|
data["isValid"] = this.isValid;
|
|
41139
|
-
data["validationErrorMessage"] = this.validationErrorMessage;
|
|
41140
41202
|
return data;
|
|
41141
41203
|
}
|
|
41142
41204
|
}
|
|
@@ -41407,7 +41469,6 @@ export class UpdateSchemaGroupedElementDto {
|
|
|
41407
41469
|
this.includeInCustomerDocumentation = _data["includeInCustomerDocumentation"];
|
|
41408
41470
|
this.canCopy = _data["canCopy"];
|
|
41409
41471
|
this.isDocumentedExternally = _data["isDocumentedExternally"];
|
|
41410
|
-
this.coatingThickness = _data["coatingThickness"];
|
|
41411
41472
|
}
|
|
41412
41473
|
}
|
|
41413
41474
|
static fromJS(data) {
|
|
@@ -41424,7 +41485,6 @@ export class UpdateSchemaGroupedElementDto {
|
|
|
41424
41485
|
data["includeInCustomerDocumentation"] = this.includeInCustomerDocumentation;
|
|
41425
41486
|
data["canCopy"] = this.canCopy;
|
|
41426
41487
|
data["isDocumentedExternally"] = this.isDocumentedExternally;
|
|
41427
|
-
data["coatingThickness"] = this.coatingThickness;
|
|
41428
41488
|
return data;
|
|
41429
41489
|
}
|
|
41430
41490
|
}
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -716,6 +716,8 @@ export interface IMachineUtilizationClient {
|
|
|
716
716
|
listPowerOnUtilizationDatapoints(id: number | null | undefined, externalId: string | null | undefined, nDays: number | null | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<PowerOnUtilizationList>;
|
|
717
717
|
|
|
718
718
|
getFactoryUtilization(): Promise<PowerOnUtilizationDto>;
|
|
719
|
+
|
|
720
|
+
getProgramTimeline(id: string, startTime: Date | undefined, endTime: Date | undefined): Promise<ProgramDatapoint[]>;
|
|
719
721
|
}
|
|
720
722
|
|
|
721
723
|
export class MachineUtilizationClient extends AuthorizedApiBase implements IMachineUtilizationClient {
|
|
@@ -1091,6 +1093,57 @@ export class MachineUtilizationClient extends AuthorizedApiBase implements IMach
|
|
|
1091
1093
|
}
|
|
1092
1094
|
return Promise.resolve<PowerOnUtilizationDto>(null as any);
|
|
1093
1095
|
}
|
|
1096
|
+
|
|
1097
|
+
getProgramTimeline(id: string, startTime: Date | undefined, endTime: Date | undefined): Promise<ProgramDatapoint[]> {
|
|
1098
|
+
let url_ = this.baseUrl + "/machineutilization/{id}/program-timeline?";
|
|
1099
|
+
if (id === undefined || id === null)
|
|
1100
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
1101
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
1102
|
+
if (startTime === null)
|
|
1103
|
+
throw new Error("The parameter 'startTime' cannot be null.");
|
|
1104
|
+
else if (startTime !== undefined)
|
|
1105
|
+
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
1106
|
+
if (endTime === null)
|
|
1107
|
+
throw new Error("The parameter 'endTime' cannot be null.");
|
|
1108
|
+
else if (endTime !== undefined)
|
|
1109
|
+
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
1110
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
1111
|
+
|
|
1112
|
+
let options_: RequestInit = {
|
|
1113
|
+
method: "GET",
|
|
1114
|
+
headers: {
|
|
1115
|
+
"Accept": "application/json"
|
|
1116
|
+
}
|
|
1117
|
+
};
|
|
1118
|
+
|
|
1119
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
1120
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
1121
|
+
}).then((_response: Response) => {
|
|
1122
|
+
return this.processGetProgramTimeline(_response);
|
|
1123
|
+
});
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1126
|
+
protected processGetProgramTimeline(response: Response): Promise<ProgramDatapoint[]> {
|
|
1127
|
+
const status = response.status;
|
|
1128
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
1129
|
+
if (status === 200) {
|
|
1130
|
+
return response.text().then((_responseText) => {
|
|
1131
|
+
let result200: any = null;
|
|
1132
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1133
|
+
if (Array.isArray(resultData200)) {
|
|
1134
|
+
result200 = [] as any;
|
|
1135
|
+
for (let item of resultData200)
|
|
1136
|
+
result200!.push(ProgramDatapoint.fromJS(item));
|
|
1137
|
+
}
|
|
1138
|
+
return result200;
|
|
1139
|
+
});
|
|
1140
|
+
} else if (status !== 200 && status !== 204) {
|
|
1141
|
+
return response.text().then((_responseText) => {
|
|
1142
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1143
|
+
});
|
|
1144
|
+
}
|
|
1145
|
+
return Promise.resolve<ProgramDatapoint[]>(null as any);
|
|
1146
|
+
}
|
|
1094
1147
|
}
|
|
1095
1148
|
|
|
1096
1149
|
export interface IMeClient {
|
|
@@ -2387,11 +2440,11 @@ export class PulseClient extends AuthorizedApiBase implements IPulseClient {
|
|
|
2387
2440
|
|
|
2388
2441
|
export interface IUtilizationClient {
|
|
2389
2442
|
|
|
2390
|
-
getCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined
|
|
2443
|
+
getCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CompanyUtilizationDto>;
|
|
2391
2444
|
|
|
2392
|
-
getCrossCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined
|
|
2445
|
+
getCrossCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CrossCompanyUtilizationDto>;
|
|
2393
2446
|
|
|
2394
|
-
getUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined, assetExternalId: string | null | undefined): Promise<MachineUtilizationDatapointListDto>;
|
|
2447
|
+
getUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined, assetId: number | null | undefined, assetExternalId: string | null | undefined): Promise<MachineUtilizationDatapointListDto>;
|
|
2395
2448
|
|
|
2396
2449
|
getCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CompanyUtilizationDatapointListDto>;
|
|
2397
2450
|
|
|
@@ -2409,7 +2462,7 @@ export class UtilizationClient extends AuthorizedApiBase implements IUtilization
|
|
|
2409
2462
|
this.baseUrl = baseUrl ?? "";
|
|
2410
2463
|
}
|
|
2411
2464
|
|
|
2412
|
-
getCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined
|
|
2465
|
+
getCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CompanyUtilizationDto> {
|
|
2413
2466
|
let url_ = this.baseUrl + "/utilization?";
|
|
2414
2467
|
if (utilizationType === null)
|
|
2415
2468
|
throw new Error("The parameter 'utilizationType' cannot be null.");
|
|
@@ -2419,10 +2472,6 @@ export class UtilizationClient extends AuthorizedApiBase implements IUtilization
|
|
|
2419
2472
|
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
2420
2473
|
if (endTime !== undefined && endTime !== null)
|
|
2421
2474
|
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) + "&";
|
|
2426
2475
|
url_ = url_.replace(/[?&]$/, "");
|
|
2427
2476
|
|
|
2428
2477
|
let options_: RequestInit = {
|
|
@@ -2457,7 +2506,7 @@ export class UtilizationClient extends AuthorizedApiBase implements IUtilization
|
|
|
2457
2506
|
return Promise.resolve<CompanyUtilizationDto>(null as any);
|
|
2458
2507
|
}
|
|
2459
2508
|
|
|
2460
|
-
getCrossCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined
|
|
2509
|
+
getCrossCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CrossCompanyUtilizationDto> {
|
|
2461
2510
|
let url_ = this.baseUrl + "/utilization/cross-company?";
|
|
2462
2511
|
if (utilizationType === null)
|
|
2463
2512
|
throw new Error("The parameter 'utilizationType' cannot be null.");
|
|
@@ -2467,10 +2516,6 @@ export class UtilizationClient extends AuthorizedApiBase implements IUtilization
|
|
|
2467
2516
|
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
2468
2517
|
if (endTime !== undefined && endTime !== null)
|
|
2469
2518
|
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) + "&";
|
|
2474
2519
|
url_ = url_.replace(/[?&]$/, "");
|
|
2475
2520
|
|
|
2476
2521
|
let options_: RequestInit = {
|
|
@@ -2505,7 +2550,7 @@ export class UtilizationClient extends AuthorizedApiBase implements IUtilization
|
|
|
2505
2550
|
return Promise.resolve<CrossCompanyUtilizationDto>(null as any);
|
|
2506
2551
|
}
|
|
2507
2552
|
|
|
2508
|
-
getUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined, assetExternalId: string | null | undefined): Promise<MachineUtilizationDatapointListDto> {
|
|
2553
|
+
getUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined, assetId: number | null | undefined, assetExternalId: string | null | undefined): Promise<MachineUtilizationDatapointListDto> {
|
|
2509
2554
|
let url_ = this.baseUrl + "/utilization/datapoints?";
|
|
2510
2555
|
if (utilizationType === null)
|
|
2511
2556
|
throw new Error("The parameter 'utilizationType' cannot be null.");
|
|
@@ -2515,6 +2560,8 @@ export class UtilizationClient extends AuthorizedApiBase implements IUtilization
|
|
|
2515
2560
|
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
2516
2561
|
if (endTime !== undefined && endTime !== null)
|
|
2517
2562
|
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
2563
|
+
if (assetId !== undefined && assetId !== null)
|
|
2564
|
+
url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
|
|
2518
2565
|
if (assetExternalId !== undefined && assetExternalId !== null)
|
|
2519
2566
|
url_ += "assetExternalId=" + encodeURIComponent("" + assetExternalId) + "&";
|
|
2520
2567
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -25256,6 +25303,46 @@ export interface INumericNullableValueWithTimestamp {
|
|
|
25256
25303
|
value?: number | null;
|
|
25257
25304
|
}
|
|
25258
25305
|
|
|
25306
|
+
export class ProgramDatapoint implements IProgramDatapoint {
|
|
25307
|
+
timestamp?: number;
|
|
25308
|
+
programValue?: string;
|
|
25309
|
+
|
|
25310
|
+
constructor(data?: IProgramDatapoint) {
|
|
25311
|
+
if (data) {
|
|
25312
|
+
for (var property in data) {
|
|
25313
|
+
if (data.hasOwnProperty(property))
|
|
25314
|
+
(<any>this)[property] = (<any>data)[property];
|
|
25315
|
+
}
|
|
25316
|
+
}
|
|
25317
|
+
}
|
|
25318
|
+
|
|
25319
|
+
init(_data?: any) {
|
|
25320
|
+
if (_data) {
|
|
25321
|
+
this.timestamp = _data["timestamp"];
|
|
25322
|
+
this.programValue = _data["programValue"];
|
|
25323
|
+
}
|
|
25324
|
+
}
|
|
25325
|
+
|
|
25326
|
+
static fromJS(data: any): ProgramDatapoint {
|
|
25327
|
+
data = typeof data === 'object' ? data : {};
|
|
25328
|
+
let result = new ProgramDatapoint();
|
|
25329
|
+
result.init(data);
|
|
25330
|
+
return result;
|
|
25331
|
+
}
|
|
25332
|
+
|
|
25333
|
+
toJSON(data?: any) {
|
|
25334
|
+
data = typeof data === 'object' ? data : {};
|
|
25335
|
+
data["timestamp"] = this.timestamp;
|
|
25336
|
+
data["programValue"] = this.programValue;
|
|
25337
|
+
return data;
|
|
25338
|
+
}
|
|
25339
|
+
}
|
|
25340
|
+
|
|
25341
|
+
export interface IProgramDatapoint {
|
|
25342
|
+
timestamp?: number;
|
|
25343
|
+
programValue?: string;
|
|
25344
|
+
}
|
|
25345
|
+
|
|
25259
25346
|
export class UserAppDto implements IUserAppDto {
|
|
25260
25347
|
key!: string;
|
|
25261
25348
|
name!: string;
|
|
@@ -27229,14 +27316,12 @@ export interface IPulseSettingsDto {
|
|
|
27229
27316
|
utilizationTypeEnabling: UtilizationTypeEnablingDto;
|
|
27230
27317
|
}
|
|
27231
27318
|
|
|
27232
|
-
export type UtilizationTypeDto = "PowerOn" | "TwentyFourSeven" | "ActiveOrder"
|
|
27319
|
+
export type UtilizationTypeDto = "PowerOn" | "TwentyFourSeven" | "ActiveOrder";
|
|
27233
27320
|
|
|
27234
27321
|
export class UtilizationTypeEnablingDto implements IUtilizationTypeEnablingDto {
|
|
27235
27322
|
powerOnEnabled!: boolean;
|
|
27236
27323
|
twentyFourSevenEnabled!: boolean;
|
|
27237
27324
|
activeOrderEnabled!: boolean;
|
|
27238
|
-
machineCalendarEnabled!: boolean;
|
|
27239
|
-
factoryCalendarEnabled!: boolean;
|
|
27240
27325
|
|
|
27241
27326
|
constructor(data?: IUtilizationTypeEnablingDto) {
|
|
27242
27327
|
if (data) {
|
|
@@ -27252,8 +27337,6 @@ export class UtilizationTypeEnablingDto implements IUtilizationTypeEnablingDto {
|
|
|
27252
27337
|
this.powerOnEnabled = _data["powerOnEnabled"];
|
|
27253
27338
|
this.twentyFourSevenEnabled = _data["twentyFourSevenEnabled"];
|
|
27254
27339
|
this.activeOrderEnabled = _data["activeOrderEnabled"];
|
|
27255
|
-
this.machineCalendarEnabled = _data["machineCalendarEnabled"];
|
|
27256
|
-
this.factoryCalendarEnabled = _data["factoryCalendarEnabled"];
|
|
27257
27340
|
}
|
|
27258
27341
|
}
|
|
27259
27342
|
|
|
@@ -27269,8 +27352,6 @@ export class UtilizationTypeEnablingDto implements IUtilizationTypeEnablingDto {
|
|
|
27269
27352
|
data["powerOnEnabled"] = this.powerOnEnabled;
|
|
27270
27353
|
data["twentyFourSevenEnabled"] = this.twentyFourSevenEnabled;
|
|
27271
27354
|
data["activeOrderEnabled"] = this.activeOrderEnabled;
|
|
27272
|
-
data["machineCalendarEnabled"] = this.machineCalendarEnabled;
|
|
27273
|
-
data["factoryCalendarEnabled"] = this.factoryCalendarEnabled;
|
|
27274
27355
|
return data;
|
|
27275
27356
|
}
|
|
27276
27357
|
}
|
|
@@ -27279,8 +27360,6 @@ export interface IUtilizationTypeEnablingDto {
|
|
|
27279
27360
|
powerOnEnabled: boolean;
|
|
27280
27361
|
twentyFourSevenEnabled: boolean;
|
|
27281
27362
|
activeOrderEnabled: boolean;
|
|
27282
|
-
machineCalendarEnabled: boolean;
|
|
27283
|
-
factoryCalendarEnabled: boolean;
|
|
27284
27363
|
}
|
|
27285
27364
|
|
|
27286
27365
|
export class UpdatePulseSettings implements IUpdatePulseSettings {
|
|
@@ -27288,8 +27367,6 @@ export class UpdatePulseSettings implements IUpdatePulseSettings {
|
|
|
27288
27367
|
powerOnEnabled!: boolean;
|
|
27289
27368
|
twentyfourSevenEnabled!: boolean;
|
|
27290
27369
|
activeOrderEnabled!: boolean;
|
|
27291
|
-
machineCalendarEnabled!: boolean;
|
|
27292
|
-
factoryCalendarEnabled!: boolean;
|
|
27293
27370
|
|
|
27294
27371
|
constructor(data?: IUpdatePulseSettings) {
|
|
27295
27372
|
if (data) {
|
|
@@ -27306,8 +27383,6 @@ export class UpdatePulseSettings implements IUpdatePulseSettings {
|
|
|
27306
27383
|
this.powerOnEnabled = _data["powerOnEnabled"];
|
|
27307
27384
|
this.twentyfourSevenEnabled = _data["twentyfourSevenEnabled"];
|
|
27308
27385
|
this.activeOrderEnabled = _data["activeOrderEnabled"];
|
|
27309
|
-
this.machineCalendarEnabled = _data["machineCalendarEnabled"];
|
|
27310
|
-
this.factoryCalendarEnabled = _data["factoryCalendarEnabled"];
|
|
27311
27386
|
}
|
|
27312
27387
|
}
|
|
27313
27388
|
|
|
@@ -27324,8 +27399,6 @@ export class UpdatePulseSettings implements IUpdatePulseSettings {
|
|
|
27324
27399
|
data["powerOnEnabled"] = this.powerOnEnabled;
|
|
27325
27400
|
data["twentyfourSevenEnabled"] = this.twentyfourSevenEnabled;
|
|
27326
27401
|
data["activeOrderEnabled"] = this.activeOrderEnabled;
|
|
27327
|
-
data["machineCalendarEnabled"] = this.machineCalendarEnabled;
|
|
27328
|
-
data["factoryCalendarEnabled"] = this.factoryCalendarEnabled;
|
|
27329
27402
|
return data;
|
|
27330
27403
|
}
|
|
27331
27404
|
}
|
|
@@ -27335,8 +27408,6 @@ export interface IUpdatePulseSettings {
|
|
|
27335
27408
|
powerOnEnabled: boolean;
|
|
27336
27409
|
twentyfourSevenEnabled: boolean;
|
|
27337
27410
|
activeOrderEnabled: boolean;
|
|
27338
|
-
machineCalendarEnabled: boolean;
|
|
27339
|
-
factoryCalendarEnabled: boolean;
|
|
27340
27411
|
}
|
|
27341
27412
|
|
|
27342
27413
|
export class CompanyUtilizationDto implements ICompanyUtilizationDto {
|
|
@@ -27410,7 +27481,6 @@ export interface ICompanyUtilizationDto {
|
|
|
27410
27481
|
|
|
27411
27482
|
export class UtilizationDetailsV2Dto implements IUtilizationDetailsV2Dto {
|
|
27412
27483
|
utilizationPercent?: number | null;
|
|
27413
|
-
capacityInMilliseconds?: number;
|
|
27414
27484
|
uptimeInSeconds?: number | null;
|
|
27415
27485
|
downtimeInSeconds?: number | null;
|
|
27416
27486
|
totalTimeInSeconds?: number | null;
|
|
@@ -27430,7 +27500,6 @@ export class UtilizationDetailsV2Dto implements IUtilizationDetailsV2Dto {
|
|
|
27430
27500
|
init(_data?: any) {
|
|
27431
27501
|
if (_data) {
|
|
27432
27502
|
this.utilizationPercent = _data["utilizationPercent"];
|
|
27433
|
-
this.capacityInMilliseconds = _data["capacityInMilliseconds"];
|
|
27434
27503
|
this.uptimeInSeconds = _data["uptimeInSeconds"];
|
|
27435
27504
|
this.downtimeInSeconds = _data["downtimeInSeconds"];
|
|
27436
27505
|
this.totalTimeInSeconds = _data["totalTimeInSeconds"];
|
|
@@ -27450,7 +27519,6 @@ export class UtilizationDetailsV2Dto implements IUtilizationDetailsV2Dto {
|
|
|
27450
27519
|
toJSON(data?: any) {
|
|
27451
27520
|
data = typeof data === 'object' ? data : {};
|
|
27452
27521
|
data["utilizationPercent"] = this.utilizationPercent;
|
|
27453
|
-
data["capacityInMilliseconds"] = this.capacityInMilliseconds;
|
|
27454
27522
|
data["uptimeInSeconds"] = this.uptimeInSeconds;
|
|
27455
27523
|
data["downtimeInSeconds"] = this.downtimeInSeconds;
|
|
27456
27524
|
data["totalTimeInSeconds"] = this.totalTimeInSeconds;
|
|
@@ -27463,7 +27531,6 @@ export class UtilizationDetailsV2Dto implements IUtilizationDetailsV2Dto {
|
|
|
27463
27531
|
|
|
27464
27532
|
export interface IUtilizationDetailsV2Dto {
|
|
27465
27533
|
utilizationPercent?: number | null;
|
|
27466
|
-
capacityInMilliseconds?: number;
|
|
27467
27534
|
uptimeInSeconds?: number | null;
|
|
27468
27535
|
downtimeInSeconds?: number | null;
|
|
27469
27536
|
totalTimeInSeconds?: number | null;
|
|
@@ -51603,7 +51670,6 @@ export class MeasurementFormGroupedElementDto implements IMeasurementFormGrouped
|
|
|
51603
51670
|
machiningDimension?: number | null;
|
|
51604
51671
|
nominalInch?: number | null;
|
|
51605
51672
|
isValid!: boolean;
|
|
51606
|
-
validationErrorMessage?: string | null;
|
|
51607
51673
|
|
|
51608
51674
|
constructor(data?: IMeasurementFormGroupedElementDto) {
|
|
51609
51675
|
if (data) {
|
|
@@ -51655,7 +51721,6 @@ export class MeasurementFormGroupedElementDto implements IMeasurementFormGrouped
|
|
|
51655
51721
|
this.machiningDimension = _data["machiningDimension"];
|
|
51656
51722
|
this.nominalInch = _data["nominalInch"];
|
|
51657
51723
|
this.isValid = _data["isValid"];
|
|
51658
|
-
this.validationErrorMessage = _data["validationErrorMessage"];
|
|
51659
51724
|
}
|
|
51660
51725
|
}
|
|
51661
51726
|
|
|
@@ -51707,7 +51772,6 @@ export class MeasurementFormGroupedElementDto implements IMeasurementFormGrouped
|
|
|
51707
51772
|
data["machiningDimension"] = this.machiningDimension;
|
|
51708
51773
|
data["nominalInch"] = this.nominalInch;
|
|
51709
51774
|
data["isValid"] = this.isValid;
|
|
51710
|
-
data["validationErrorMessage"] = this.validationErrorMessage;
|
|
51711
51775
|
return data;
|
|
51712
51776
|
}
|
|
51713
51777
|
}
|
|
@@ -51752,10 +51816,9 @@ export interface IMeasurementFormGroupedElementDto {
|
|
|
51752
51816
|
machiningDimension?: number | null;
|
|
51753
51817
|
nominalInch?: number | null;
|
|
51754
51818
|
isValid: boolean;
|
|
51755
|
-
validationErrorMessage?: string | null;
|
|
51756
51819
|
}
|
|
51757
51820
|
|
|
51758
|
-
export type MeasurementFrequency = "All" | "FirstArticle" | "NFirst" | "NPercent" | "ISO2859" | "Nth" | "
|
|
51821
|
+
export type MeasurementFrequency = "All" | "FirstArticle" | "NFirst" | "NPercent" | "ISO2859" | "Nth" | "None";
|
|
51759
51822
|
|
|
51760
51823
|
export type MeasurementFormValueType = "None" | "Bool" | "Decimal" | "String";
|
|
51761
51824
|
|
|
@@ -52150,7 +52213,6 @@ export class UpdateSchemaGroupedElementDto implements IUpdateSchemaGroupedElemen
|
|
|
52150
52213
|
includeInCustomerDocumentation!: boolean;
|
|
52151
52214
|
canCopy?: boolean | null;
|
|
52152
52215
|
isDocumentedExternally!: boolean;
|
|
52153
|
-
coatingThickness?: number | null;
|
|
52154
52216
|
|
|
52155
52217
|
constructor(data?: IUpdateSchemaGroupedElementDto) {
|
|
52156
52218
|
if (data) {
|
|
@@ -52169,7 +52231,6 @@ export class UpdateSchemaGroupedElementDto implements IUpdateSchemaGroupedElemen
|
|
|
52169
52231
|
this.includeInCustomerDocumentation = _data["includeInCustomerDocumentation"];
|
|
52170
52232
|
this.canCopy = _data["canCopy"];
|
|
52171
52233
|
this.isDocumentedExternally = _data["isDocumentedExternally"];
|
|
52172
|
-
this.coatingThickness = _data["coatingThickness"];
|
|
52173
52234
|
}
|
|
52174
52235
|
}
|
|
52175
52236
|
|
|
@@ -52188,7 +52249,6 @@ export class UpdateSchemaGroupedElementDto implements IUpdateSchemaGroupedElemen
|
|
|
52188
52249
|
data["includeInCustomerDocumentation"] = this.includeInCustomerDocumentation;
|
|
52189
52250
|
data["canCopy"] = this.canCopy;
|
|
52190
52251
|
data["isDocumentedExternally"] = this.isDocumentedExternally;
|
|
52191
|
-
data["coatingThickness"] = this.coatingThickness;
|
|
52192
52252
|
return data;
|
|
52193
52253
|
}
|
|
52194
52254
|
}
|
|
@@ -52200,7 +52260,6 @@ export interface IUpdateSchemaGroupedElementDto {
|
|
|
52200
52260
|
includeInCustomerDocumentation: boolean;
|
|
52201
52261
|
canCopy?: boolean | null;
|
|
52202
52262
|
isDocumentedExternally: boolean;
|
|
52203
|
-
coatingThickness?: number | null;
|
|
52204
52263
|
}
|
|
52205
52264
|
|
|
52206
52265
|
export class UpdateSchemaGroupedElementRowDto implements IUpdateSchemaGroupedElementRowDto {
|