@ignos/api-client 20250911.0.12585 → 20250915.0.12628
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 +53 -4
- package/lib/ignosportal-api.js +166 -0
- package/package.json +1 -1
- package/src/ignosportal-api.ts +214 -4
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -785,6 +785,7 @@ export interface IDowntimeReasonsClient {
|
|
|
785
785
|
updateDowntimePeriodReason(id: number, request: UpdateDowntimePeriodReasonRequest): Promise<DowntimePeriodReasonDto>;
|
|
786
786
|
deleteDowntimeReason(id: number): Promise<void>;
|
|
787
787
|
listDowntimeReasonsForMachine(id: number): Promise<DowntimeReasonDto[]>;
|
|
788
|
+
listActiveDowntimeReasonsForMachine(id: number): Promise<DowntimePeriodReasonDto[]>;
|
|
788
789
|
listTopDowntimeReasons(): Promise<TopDowntimeReasonsDto>;
|
|
789
790
|
createReport(request: CreateDowntimeReasonsReportRequest | undefined): Promise<DowntimeReasonsReportDto>;
|
|
790
791
|
exportReportToCsv(request: CreateDowntimeReasonsReportRequest | undefined): Promise<DowntimeReasonsReportCsvDto>;
|
|
@@ -804,6 +805,8 @@ export declare class DowntimeReasonsClient extends AuthorizedApiBase implements
|
|
|
804
805
|
protected processDeleteDowntimeReason(response: Response): Promise<void>;
|
|
805
806
|
listDowntimeReasonsForMachine(id: number): Promise<DowntimeReasonDto[]>;
|
|
806
807
|
protected processListDowntimeReasonsForMachine(response: Response): Promise<DowntimeReasonDto[]>;
|
|
808
|
+
listActiveDowntimeReasonsForMachine(id: number): Promise<DowntimePeriodReasonDto[]>;
|
|
809
|
+
protected processListActiveDowntimeReasonsForMachine(response: Response): Promise<DowntimePeriodReasonDto[]>;
|
|
807
810
|
listTopDowntimeReasons(): Promise<TopDowntimeReasonsDto>;
|
|
808
811
|
protected processListTopDowntimeReasons(response: Response): Promise<TopDowntimeReasonsDto>;
|
|
809
812
|
createReport(request: CreateDowntimeReasonsReportRequest | undefined): Promise<DowntimeReasonsReportDto>;
|
|
@@ -2359,7 +2362,11 @@ export interface IMeasurementFormsInstancesClient {
|
|
|
2359
2362
|
listSupplierMeasurementFormInstances(supplierId: string): Promise<MeasurementFormSupplierAccessInstanceDto[]>;
|
|
2360
2363
|
upsertSupplierToMeasurmentFormInstance(id: string, supplierId: string, request: UpsertSupplierToMeasurementFormInstanceRequest): Promise<void>;
|
|
2361
2364
|
removeSupplierFromMeasurmentFormInstance(id: string, supplierId: string): Promise<void>;
|
|
2365
|
+
/**
|
|
2366
|
+
* @deprecated
|
|
2367
|
+
*/
|
|
2362
2368
|
exportDimensionReport(id: string, request: ExportDimensionReportRequest): Promise<DownloadDto>;
|
|
2369
|
+
exportDimensionReportV2(id: string, request: ExportDimensionReportV2Request): Promise<DownloadDto>;
|
|
2363
2370
|
exportDimensionReportValues(id: string): Promise<DownloadDto>;
|
|
2364
2371
|
toggleSchemaInstanceElementDocumentedExternallyOverride(id: string, schemaId: string, elementId: string, tenantId: string | null | undefined): Promise<void>;
|
|
2365
2372
|
}
|
|
@@ -2424,8 +2431,13 @@ export declare class MeasurementFormsInstancesClient extends AuthorizedApiBase i
|
|
|
2424
2431
|
protected processUpsertSupplierToMeasurmentFormInstance(response: Response): Promise<void>;
|
|
2425
2432
|
removeSupplierFromMeasurmentFormInstance(id: string, supplierId: string): Promise<void>;
|
|
2426
2433
|
protected processRemoveSupplierFromMeasurmentFormInstance(response: Response): Promise<void>;
|
|
2434
|
+
/**
|
|
2435
|
+
* @deprecated
|
|
2436
|
+
*/
|
|
2427
2437
|
exportDimensionReport(id: string, request: ExportDimensionReportRequest): Promise<DownloadDto>;
|
|
2428
2438
|
protected processExportDimensionReport(response: Response): Promise<DownloadDto>;
|
|
2439
|
+
exportDimensionReportV2(id: string, request: ExportDimensionReportV2Request): Promise<DownloadDto>;
|
|
2440
|
+
protected processExportDimensionReportV2(response: Response): Promise<DownloadDto>;
|
|
2429
2441
|
exportDimensionReportValues(id: string): Promise<DownloadDto>;
|
|
2430
2442
|
protected processExportDimensionReportValues(response: Response): Promise<DownloadDto>;
|
|
2431
2443
|
toggleSchemaInstanceElementDocumentedExternallyOverride(id: string, schemaId: string, elementId: string, tenantId: string | null | undefined): Promise<void>;
|
|
@@ -3054,11 +3066,12 @@ export declare class DowntimePeriodReasonDto implements IDowntimePeriodReasonDto
|
|
|
3054
3066
|
reason: string;
|
|
3055
3067
|
reasonType: DowntimeReasonTypeDto;
|
|
3056
3068
|
startTime: Date;
|
|
3057
|
-
endTime
|
|
3069
|
+
endTime?: Date | null;
|
|
3058
3070
|
assetId: number;
|
|
3059
3071
|
comment?: string | null;
|
|
3060
3072
|
companyId?: string | null;
|
|
3061
3073
|
reasonId: string;
|
|
3074
|
+
autoCompleteDowntime?: boolean | null;
|
|
3062
3075
|
createdBy?: EmployeeDto | null;
|
|
3063
3076
|
updatedBy?: EmployeeDto | null;
|
|
3064
3077
|
constructor(data?: IDowntimePeriodReasonDto);
|
|
@@ -3071,11 +3084,12 @@ export interface IDowntimePeriodReasonDto {
|
|
|
3071
3084
|
reason: string;
|
|
3072
3085
|
reasonType: DowntimeReasonTypeDto;
|
|
3073
3086
|
startTime: Date;
|
|
3074
|
-
endTime
|
|
3087
|
+
endTime?: Date | null;
|
|
3075
3088
|
assetId: number;
|
|
3076
3089
|
comment?: string | null;
|
|
3077
3090
|
companyId?: string | null;
|
|
3078
3091
|
reasonId: string;
|
|
3092
|
+
autoCompleteDowntime?: boolean | null;
|
|
3079
3093
|
createdBy?: EmployeeDto | null;
|
|
3080
3094
|
updatedBy?: EmployeeDto | null;
|
|
3081
3095
|
}
|
|
@@ -5887,7 +5901,8 @@ export declare class CreateDowntimePeriodReason implements ICreateDowntimePeriod
|
|
|
5887
5901
|
reasonId: string;
|
|
5888
5902
|
assetId: number;
|
|
5889
5903
|
startTime: Date;
|
|
5890
|
-
endTime
|
|
5904
|
+
endTime?: Date | null;
|
|
5905
|
+
autoCompleteDowntime?: boolean | null;
|
|
5891
5906
|
comment?: string | null;
|
|
5892
5907
|
constructor(data?: ICreateDowntimePeriodReason);
|
|
5893
5908
|
init(_data?: any): void;
|
|
@@ -5898,7 +5913,8 @@ export interface ICreateDowntimePeriodReason {
|
|
|
5898
5913
|
reasonId: string;
|
|
5899
5914
|
assetId: number;
|
|
5900
5915
|
startTime: Date;
|
|
5901
|
-
endTime
|
|
5916
|
+
endTime?: Date | null;
|
|
5917
|
+
autoCompleteDowntime?: boolean | null;
|
|
5902
5918
|
comment?: string | null;
|
|
5903
5919
|
}
|
|
5904
5920
|
export declare class UpdateDowntimePeriodReasonRequest implements IUpdateDowntimePeriodReasonRequest {
|
|
@@ -5906,6 +5922,7 @@ export declare class UpdateDowntimePeriodReasonRequest implements IUpdateDowntim
|
|
|
5906
5922
|
assetId?: number | null;
|
|
5907
5923
|
startTime?: Date | null;
|
|
5908
5924
|
endTime?: Date | null;
|
|
5925
|
+
autoCompleteDowntime?: boolean | null;
|
|
5909
5926
|
comment?: string | null;
|
|
5910
5927
|
constructor(data?: IUpdateDowntimePeriodReasonRequest);
|
|
5911
5928
|
init(_data?: any): void;
|
|
@@ -5917,6 +5934,7 @@ export interface IUpdateDowntimePeriodReasonRequest {
|
|
|
5917
5934
|
assetId?: number | null;
|
|
5918
5935
|
startTime?: Date | null;
|
|
5919
5936
|
endTime?: Date | null;
|
|
5937
|
+
autoCompleteDowntime?: boolean | null;
|
|
5920
5938
|
comment?: string | null;
|
|
5921
5939
|
}
|
|
5922
5940
|
export declare class TopDowntimeReasonsDto implements ITopDowntimeReasonsDto {
|
|
@@ -13795,6 +13813,37 @@ export interface IExportDimensionReportRequest {
|
|
|
13795
13813
|
workOrder?: string | null;
|
|
13796
13814
|
comment?: string | null;
|
|
13797
13815
|
}
|
|
13816
|
+
export declare class ExportDimensionReportV2Request implements IExportDimensionReportV2Request {
|
|
13817
|
+
tenantId?: string | null;
|
|
13818
|
+
type: DimensionReportType;
|
|
13819
|
+
extras?: DimensionReportExtras | null;
|
|
13820
|
+
specificSerialNumbers?: string[] | null;
|
|
13821
|
+
constructor(data?: IExportDimensionReportV2Request);
|
|
13822
|
+
init(_data?: any): void;
|
|
13823
|
+
static fromJS(data: any): ExportDimensionReportV2Request;
|
|
13824
|
+
toJSON(data?: any): any;
|
|
13825
|
+
}
|
|
13826
|
+
export interface IExportDimensionReportV2Request {
|
|
13827
|
+
tenantId?: string | null;
|
|
13828
|
+
type: DimensionReportType;
|
|
13829
|
+
extras?: DimensionReportExtras | null;
|
|
13830
|
+
specificSerialNumbers?: string[] | null;
|
|
13831
|
+
}
|
|
13832
|
+
export type DimensionReportType = "Customer" | "Blank" | "Fair" | "Full";
|
|
13833
|
+
export declare class DimensionReportExtras implements IDimensionReportExtras {
|
|
13834
|
+
customerPO?: string | null;
|
|
13835
|
+
workOrderNumber?: string | null;
|
|
13836
|
+
comment?: string | null;
|
|
13837
|
+
constructor(data?: IDimensionReportExtras);
|
|
13838
|
+
init(_data?: any): void;
|
|
13839
|
+
static fromJS(data: any): DimensionReportExtras;
|
|
13840
|
+
toJSON(data?: any): any;
|
|
13841
|
+
}
|
|
13842
|
+
export interface IDimensionReportExtras {
|
|
13843
|
+
customerPO?: string | null;
|
|
13844
|
+
workOrderNumber?: string | null;
|
|
13845
|
+
comment?: string | null;
|
|
13846
|
+
}
|
|
13798
13847
|
export declare class ProductionCompanyDto implements IProductionCompanyDto {
|
|
13799
13848
|
id: string;
|
|
13800
13849
|
name: string;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -6181,6 +6181,50 @@ export class DowntimeReasonsClient extends AuthorizedApiBase {
|
|
|
6181
6181
|
}
|
|
6182
6182
|
return Promise.resolve(null);
|
|
6183
6183
|
}
|
|
6184
|
+
listActiveDowntimeReasonsForMachine(id) {
|
|
6185
|
+
let url_ = this.baseUrl + "/downtimereasons/machine/{id}/active";
|
|
6186
|
+
if (id === undefined || id === null)
|
|
6187
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
6188
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
6189
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
6190
|
+
let options_ = {
|
|
6191
|
+
method: "GET",
|
|
6192
|
+
headers: {
|
|
6193
|
+
"Accept": "application/json"
|
|
6194
|
+
}
|
|
6195
|
+
};
|
|
6196
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
6197
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
6198
|
+
}).then((_response) => {
|
|
6199
|
+
return this.processListActiveDowntimeReasonsForMachine(_response);
|
|
6200
|
+
});
|
|
6201
|
+
}
|
|
6202
|
+
processListActiveDowntimeReasonsForMachine(response) {
|
|
6203
|
+
const status = response.status;
|
|
6204
|
+
let _headers = {};
|
|
6205
|
+
if (response.headers && response.headers.forEach) {
|
|
6206
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
6207
|
+
}
|
|
6208
|
+
;
|
|
6209
|
+
if (status === 200) {
|
|
6210
|
+
return response.text().then((_responseText) => {
|
|
6211
|
+
let result200 = null;
|
|
6212
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6213
|
+
if (Array.isArray(resultData200)) {
|
|
6214
|
+
result200 = [];
|
|
6215
|
+
for (let item of resultData200)
|
|
6216
|
+
result200.push(DowntimePeriodReasonDto.fromJS(item));
|
|
6217
|
+
}
|
|
6218
|
+
return result200;
|
|
6219
|
+
});
|
|
6220
|
+
}
|
|
6221
|
+
else if (status !== 200 && status !== 204) {
|
|
6222
|
+
return response.text().then((_responseText) => {
|
|
6223
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6224
|
+
});
|
|
6225
|
+
}
|
|
6226
|
+
return Promise.resolve(null);
|
|
6227
|
+
}
|
|
6184
6228
|
listTopDowntimeReasons() {
|
|
6185
6229
|
let url_ = this.baseUrl + "/downtimereasons/topreasons";
|
|
6186
6230
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -21158,6 +21202,9 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
21158
21202
|
}
|
|
21159
21203
|
return Promise.resolve(null);
|
|
21160
21204
|
}
|
|
21205
|
+
/**
|
|
21206
|
+
* @deprecated
|
|
21207
|
+
*/
|
|
21161
21208
|
exportDimensionReport(id, request) {
|
|
21162
21209
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/report";
|
|
21163
21210
|
if (id === undefined || id === null)
|
|
@@ -21201,6 +21248,49 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
21201
21248
|
}
|
|
21202
21249
|
return Promise.resolve(null);
|
|
21203
21250
|
}
|
|
21251
|
+
exportDimensionReportV2(id, request) {
|
|
21252
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}/reportv2";
|
|
21253
|
+
if (id === undefined || id === null)
|
|
21254
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
21255
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21256
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
21257
|
+
const content_ = JSON.stringify(request);
|
|
21258
|
+
let options_ = {
|
|
21259
|
+
body: content_,
|
|
21260
|
+
method: "POST",
|
|
21261
|
+
headers: {
|
|
21262
|
+
"Content-Type": "application/json",
|
|
21263
|
+
"Accept": "application/json"
|
|
21264
|
+
}
|
|
21265
|
+
};
|
|
21266
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21267
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
21268
|
+
}).then((_response) => {
|
|
21269
|
+
return this.processExportDimensionReportV2(_response);
|
|
21270
|
+
});
|
|
21271
|
+
}
|
|
21272
|
+
processExportDimensionReportV2(response) {
|
|
21273
|
+
const status = response.status;
|
|
21274
|
+
let _headers = {};
|
|
21275
|
+
if (response.headers && response.headers.forEach) {
|
|
21276
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
21277
|
+
}
|
|
21278
|
+
;
|
|
21279
|
+
if (status === 200) {
|
|
21280
|
+
return response.text().then((_responseText) => {
|
|
21281
|
+
let result200 = null;
|
|
21282
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
21283
|
+
result200 = DownloadDto.fromJS(resultData200);
|
|
21284
|
+
return result200;
|
|
21285
|
+
});
|
|
21286
|
+
}
|
|
21287
|
+
else if (status !== 200 && status !== 204) {
|
|
21288
|
+
return response.text().then((_responseText) => {
|
|
21289
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
21290
|
+
});
|
|
21291
|
+
}
|
|
21292
|
+
return Promise.resolve(null);
|
|
21293
|
+
}
|
|
21204
21294
|
exportDimensionReportValues(id) {
|
|
21205
21295
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/exportvalues";
|
|
21206
21296
|
if (id === undefined || id === null)
|
|
@@ -23791,6 +23881,7 @@ export class DowntimePeriodReasonDto {
|
|
|
23791
23881
|
this.comment = _data["comment"];
|
|
23792
23882
|
this.companyId = _data["companyId"];
|
|
23793
23883
|
this.reasonId = _data["reasonId"];
|
|
23884
|
+
this.autoCompleteDowntime = _data["autoCompleteDowntime"];
|
|
23794
23885
|
this.createdBy = _data["createdBy"] ? EmployeeDto.fromJS(_data["createdBy"]) : undefined;
|
|
23795
23886
|
this.updatedBy = _data["updatedBy"] ? EmployeeDto.fromJS(_data["updatedBy"]) : undefined;
|
|
23796
23887
|
}
|
|
@@ -23812,6 +23903,7 @@ export class DowntimePeriodReasonDto {
|
|
|
23812
23903
|
data["comment"] = this.comment;
|
|
23813
23904
|
data["companyId"] = this.companyId;
|
|
23814
23905
|
data["reasonId"] = this.reasonId;
|
|
23906
|
+
data["autoCompleteDowntime"] = this.autoCompleteDowntime;
|
|
23815
23907
|
data["createdBy"] = this.createdBy ? this.createdBy.toJSON() : undefined;
|
|
23816
23908
|
data["updatedBy"] = this.updatedBy ? this.updatedBy.toJSON() : undefined;
|
|
23817
23909
|
return data;
|
|
@@ -29792,6 +29884,7 @@ export class CreateDowntimePeriodReason {
|
|
|
29792
29884
|
this.assetId = _data["assetId"];
|
|
29793
29885
|
this.startTime = _data["startTime"] ? new Date(_data["startTime"].toString()) : undefined;
|
|
29794
29886
|
this.endTime = _data["endTime"] ? new Date(_data["endTime"].toString()) : undefined;
|
|
29887
|
+
this.autoCompleteDowntime = _data["autoCompleteDowntime"];
|
|
29795
29888
|
this.comment = _data["comment"];
|
|
29796
29889
|
}
|
|
29797
29890
|
}
|
|
@@ -29807,6 +29900,7 @@ export class CreateDowntimePeriodReason {
|
|
|
29807
29900
|
data["assetId"] = this.assetId;
|
|
29808
29901
|
data["startTime"] = this.startTime ? this.startTime.toISOString() : undefined;
|
|
29809
29902
|
data["endTime"] = this.endTime ? this.endTime.toISOString() : undefined;
|
|
29903
|
+
data["autoCompleteDowntime"] = this.autoCompleteDowntime;
|
|
29810
29904
|
data["comment"] = this.comment;
|
|
29811
29905
|
return data;
|
|
29812
29906
|
}
|
|
@@ -29826,6 +29920,7 @@ export class UpdateDowntimePeriodReasonRequest {
|
|
|
29826
29920
|
this.assetId = _data["assetId"];
|
|
29827
29921
|
this.startTime = _data["startTime"] ? new Date(_data["startTime"].toString()) : undefined;
|
|
29828
29922
|
this.endTime = _data["endTime"] ? new Date(_data["endTime"].toString()) : undefined;
|
|
29923
|
+
this.autoCompleteDowntime = _data["autoCompleteDowntime"];
|
|
29829
29924
|
this.comment = _data["comment"];
|
|
29830
29925
|
}
|
|
29831
29926
|
}
|
|
@@ -29841,6 +29936,7 @@ export class UpdateDowntimePeriodReasonRequest {
|
|
|
29841
29936
|
data["assetId"] = this.assetId;
|
|
29842
29937
|
data["startTime"] = this.startTime ? this.startTime.toISOString() : undefined;
|
|
29843
29938
|
data["endTime"] = this.endTime ? this.endTime.toISOString() : undefined;
|
|
29939
|
+
data["autoCompleteDowntime"] = this.autoCompleteDowntime;
|
|
29844
29940
|
data["comment"] = this.comment;
|
|
29845
29941
|
return data;
|
|
29846
29942
|
}
|
|
@@ -45826,6 +45922,76 @@ export class ExportDimensionReportRequest {
|
|
|
45826
45922
|
return data;
|
|
45827
45923
|
}
|
|
45828
45924
|
}
|
|
45925
|
+
export class ExportDimensionReportV2Request {
|
|
45926
|
+
constructor(data) {
|
|
45927
|
+
if (data) {
|
|
45928
|
+
for (var property in data) {
|
|
45929
|
+
if (data.hasOwnProperty(property))
|
|
45930
|
+
this[property] = data[property];
|
|
45931
|
+
}
|
|
45932
|
+
}
|
|
45933
|
+
}
|
|
45934
|
+
init(_data) {
|
|
45935
|
+
if (_data) {
|
|
45936
|
+
this.tenantId = _data["tenantId"];
|
|
45937
|
+
this.type = _data["type"];
|
|
45938
|
+
this.extras = _data["extras"] ? DimensionReportExtras.fromJS(_data["extras"]) : undefined;
|
|
45939
|
+
if (Array.isArray(_data["specificSerialNumbers"])) {
|
|
45940
|
+
this.specificSerialNumbers = [];
|
|
45941
|
+
for (let item of _data["specificSerialNumbers"])
|
|
45942
|
+
this.specificSerialNumbers.push(item);
|
|
45943
|
+
}
|
|
45944
|
+
}
|
|
45945
|
+
}
|
|
45946
|
+
static fromJS(data) {
|
|
45947
|
+
data = typeof data === 'object' ? data : {};
|
|
45948
|
+
let result = new ExportDimensionReportV2Request();
|
|
45949
|
+
result.init(data);
|
|
45950
|
+
return result;
|
|
45951
|
+
}
|
|
45952
|
+
toJSON(data) {
|
|
45953
|
+
data = typeof data === 'object' ? data : {};
|
|
45954
|
+
data["tenantId"] = this.tenantId;
|
|
45955
|
+
data["type"] = this.type;
|
|
45956
|
+
data["extras"] = this.extras ? this.extras.toJSON() : undefined;
|
|
45957
|
+
if (Array.isArray(this.specificSerialNumbers)) {
|
|
45958
|
+
data["specificSerialNumbers"] = [];
|
|
45959
|
+
for (let item of this.specificSerialNumbers)
|
|
45960
|
+
data["specificSerialNumbers"].push(item);
|
|
45961
|
+
}
|
|
45962
|
+
return data;
|
|
45963
|
+
}
|
|
45964
|
+
}
|
|
45965
|
+
export class DimensionReportExtras {
|
|
45966
|
+
constructor(data) {
|
|
45967
|
+
if (data) {
|
|
45968
|
+
for (var property in data) {
|
|
45969
|
+
if (data.hasOwnProperty(property))
|
|
45970
|
+
this[property] = data[property];
|
|
45971
|
+
}
|
|
45972
|
+
}
|
|
45973
|
+
}
|
|
45974
|
+
init(_data) {
|
|
45975
|
+
if (_data) {
|
|
45976
|
+
this.customerPO = _data["customerPO"];
|
|
45977
|
+
this.workOrderNumber = _data["workOrderNumber"];
|
|
45978
|
+
this.comment = _data["comment"];
|
|
45979
|
+
}
|
|
45980
|
+
}
|
|
45981
|
+
static fromJS(data) {
|
|
45982
|
+
data = typeof data === 'object' ? data : {};
|
|
45983
|
+
let result = new DimensionReportExtras();
|
|
45984
|
+
result.init(data);
|
|
45985
|
+
return result;
|
|
45986
|
+
}
|
|
45987
|
+
toJSON(data) {
|
|
45988
|
+
data = typeof data === 'object' ? data : {};
|
|
45989
|
+
data["customerPO"] = this.customerPO;
|
|
45990
|
+
data["workOrderNumber"] = this.workOrderNumber;
|
|
45991
|
+
data["comment"] = this.comment;
|
|
45992
|
+
return data;
|
|
45993
|
+
}
|
|
45994
|
+
}
|
|
45829
45995
|
export class ProductionCompanyDto {
|
|
45830
45996
|
constructor(data) {
|
|
45831
45997
|
if (data) {
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -6453,6 +6453,8 @@ export interface IDowntimeReasonsClient {
|
|
|
6453
6453
|
|
|
6454
6454
|
listDowntimeReasonsForMachine(id: number): Promise<DowntimeReasonDto[]>;
|
|
6455
6455
|
|
|
6456
|
+
listActiveDowntimeReasonsForMachine(id: number): Promise<DowntimePeriodReasonDto[]>;
|
|
6457
|
+
|
|
6456
6458
|
listTopDowntimeReasons(): Promise<TopDowntimeReasonsDto>;
|
|
6457
6459
|
|
|
6458
6460
|
createReport(request: CreateDowntimeReasonsReportRequest | undefined): Promise<DowntimeReasonsReportDto>;
|
|
@@ -6632,6 +6634,49 @@ export class DowntimeReasonsClient extends AuthorizedApiBase implements IDowntim
|
|
|
6632
6634
|
return Promise.resolve<DowntimeReasonDto[]>(null as any);
|
|
6633
6635
|
}
|
|
6634
6636
|
|
|
6637
|
+
listActiveDowntimeReasonsForMachine(id: number): Promise<DowntimePeriodReasonDto[]> {
|
|
6638
|
+
let url_ = this.baseUrl + "/downtimereasons/machine/{id}/active";
|
|
6639
|
+
if (id === undefined || id === null)
|
|
6640
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
6641
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
6642
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
6643
|
+
|
|
6644
|
+
let options_: RequestInit = {
|
|
6645
|
+
method: "GET",
|
|
6646
|
+
headers: {
|
|
6647
|
+
"Accept": "application/json"
|
|
6648
|
+
}
|
|
6649
|
+
};
|
|
6650
|
+
|
|
6651
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
6652
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
6653
|
+
}).then((_response: Response) => {
|
|
6654
|
+
return this.processListActiveDowntimeReasonsForMachine(_response);
|
|
6655
|
+
});
|
|
6656
|
+
}
|
|
6657
|
+
|
|
6658
|
+
protected processListActiveDowntimeReasonsForMachine(response: Response): Promise<DowntimePeriodReasonDto[]> {
|
|
6659
|
+
const status = response.status;
|
|
6660
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
6661
|
+
if (status === 200) {
|
|
6662
|
+
return response.text().then((_responseText) => {
|
|
6663
|
+
let result200: any = null;
|
|
6664
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
6665
|
+
if (Array.isArray(resultData200)) {
|
|
6666
|
+
result200 = [] as any;
|
|
6667
|
+
for (let item of resultData200)
|
|
6668
|
+
result200!.push(DowntimePeriodReasonDto.fromJS(item));
|
|
6669
|
+
}
|
|
6670
|
+
return result200;
|
|
6671
|
+
});
|
|
6672
|
+
} else if (status !== 200 && status !== 204) {
|
|
6673
|
+
return response.text().then((_responseText) => {
|
|
6674
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6675
|
+
});
|
|
6676
|
+
}
|
|
6677
|
+
return Promise.resolve<DowntimePeriodReasonDto[]>(null as any);
|
|
6678
|
+
}
|
|
6679
|
+
|
|
6635
6680
|
listTopDowntimeReasons(): Promise<TopDowntimeReasonsDto> {
|
|
6636
6681
|
let url_ = this.baseUrl + "/downtimereasons/topreasons";
|
|
6637
6682
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -21347,8 +21392,13 @@ export interface IMeasurementFormsInstancesClient {
|
|
|
21347
21392
|
|
|
21348
21393
|
removeSupplierFromMeasurmentFormInstance(id: string, supplierId: string): Promise<void>;
|
|
21349
21394
|
|
|
21395
|
+
/**
|
|
21396
|
+
* @deprecated
|
|
21397
|
+
*/
|
|
21350
21398
|
exportDimensionReport(id: string, request: ExportDimensionReportRequest): Promise<DownloadDto>;
|
|
21351
21399
|
|
|
21400
|
+
exportDimensionReportV2(id: string, request: ExportDimensionReportV2Request): Promise<DownloadDto>;
|
|
21401
|
+
|
|
21352
21402
|
exportDimensionReportValues(id: string): Promise<DownloadDto>;
|
|
21353
21403
|
|
|
21354
21404
|
toggleSchemaInstanceElementDocumentedExternallyOverride(id: string, schemaId: string, elementId: string, tenantId: string | null | undefined): Promise<void>;
|
|
@@ -22522,6 +22572,9 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
|
|
|
22522
22572
|
return Promise.resolve<void>(null as any);
|
|
22523
22573
|
}
|
|
22524
22574
|
|
|
22575
|
+
/**
|
|
22576
|
+
* @deprecated
|
|
22577
|
+
*/
|
|
22525
22578
|
exportDimensionReport(id: string, request: ExportDimensionReportRequest): Promise<DownloadDto> {
|
|
22526
22579
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/report";
|
|
22527
22580
|
if (id === undefined || id === null)
|
|
@@ -22565,6 +22618,49 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
|
|
|
22565
22618
|
return Promise.resolve<DownloadDto>(null as any);
|
|
22566
22619
|
}
|
|
22567
22620
|
|
|
22621
|
+
exportDimensionReportV2(id: string, request: ExportDimensionReportV2Request): Promise<DownloadDto> {
|
|
22622
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}/reportv2";
|
|
22623
|
+
if (id === undefined || id === null)
|
|
22624
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
22625
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
22626
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
22627
|
+
|
|
22628
|
+
const content_ = JSON.stringify(request);
|
|
22629
|
+
|
|
22630
|
+
let options_: RequestInit = {
|
|
22631
|
+
body: content_,
|
|
22632
|
+
method: "POST",
|
|
22633
|
+
headers: {
|
|
22634
|
+
"Content-Type": "application/json",
|
|
22635
|
+
"Accept": "application/json"
|
|
22636
|
+
}
|
|
22637
|
+
};
|
|
22638
|
+
|
|
22639
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22640
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
22641
|
+
}).then((_response: Response) => {
|
|
22642
|
+
return this.processExportDimensionReportV2(_response);
|
|
22643
|
+
});
|
|
22644
|
+
}
|
|
22645
|
+
|
|
22646
|
+
protected processExportDimensionReportV2(response: Response): Promise<DownloadDto> {
|
|
22647
|
+
const status = response.status;
|
|
22648
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22649
|
+
if (status === 200) {
|
|
22650
|
+
return response.text().then((_responseText) => {
|
|
22651
|
+
let result200: any = null;
|
|
22652
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22653
|
+
result200 = DownloadDto.fromJS(resultData200);
|
|
22654
|
+
return result200;
|
|
22655
|
+
});
|
|
22656
|
+
} else if (status !== 200 && status !== 204) {
|
|
22657
|
+
return response.text().then((_responseText) => {
|
|
22658
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22659
|
+
});
|
|
22660
|
+
}
|
|
22661
|
+
return Promise.resolve<DownloadDto>(null as any);
|
|
22662
|
+
}
|
|
22663
|
+
|
|
22568
22664
|
exportDimensionReportValues(id: string): Promise<DownloadDto> {
|
|
22569
22665
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/exportvalues";
|
|
22570
22666
|
if (id === undefined || id === null)
|
|
@@ -25591,11 +25687,12 @@ export class DowntimePeriodReasonDto implements IDowntimePeriodReasonDto {
|
|
|
25591
25687
|
reason!: string;
|
|
25592
25688
|
reasonType!: DowntimeReasonTypeDto;
|
|
25593
25689
|
startTime!: Date;
|
|
25594
|
-
endTime
|
|
25690
|
+
endTime?: Date | null;
|
|
25595
25691
|
assetId!: number;
|
|
25596
25692
|
comment?: string | null;
|
|
25597
25693
|
companyId?: string | null;
|
|
25598
25694
|
reasonId!: string;
|
|
25695
|
+
autoCompleteDowntime?: boolean | null;
|
|
25599
25696
|
createdBy?: EmployeeDto | null;
|
|
25600
25697
|
updatedBy?: EmployeeDto | null;
|
|
25601
25698
|
|
|
@@ -25619,6 +25716,7 @@ export class DowntimePeriodReasonDto implements IDowntimePeriodReasonDto {
|
|
|
25619
25716
|
this.comment = _data["comment"];
|
|
25620
25717
|
this.companyId = _data["companyId"];
|
|
25621
25718
|
this.reasonId = _data["reasonId"];
|
|
25719
|
+
this.autoCompleteDowntime = _data["autoCompleteDowntime"];
|
|
25622
25720
|
this.createdBy = _data["createdBy"] ? EmployeeDto.fromJS(_data["createdBy"]) : <any>undefined;
|
|
25623
25721
|
this.updatedBy = _data["updatedBy"] ? EmployeeDto.fromJS(_data["updatedBy"]) : <any>undefined;
|
|
25624
25722
|
}
|
|
@@ -25642,6 +25740,7 @@ export class DowntimePeriodReasonDto implements IDowntimePeriodReasonDto {
|
|
|
25642
25740
|
data["comment"] = this.comment;
|
|
25643
25741
|
data["companyId"] = this.companyId;
|
|
25644
25742
|
data["reasonId"] = this.reasonId;
|
|
25743
|
+
data["autoCompleteDowntime"] = this.autoCompleteDowntime;
|
|
25645
25744
|
data["createdBy"] = this.createdBy ? this.createdBy.toJSON() : <any>undefined;
|
|
25646
25745
|
data["updatedBy"] = this.updatedBy ? this.updatedBy.toJSON() : <any>undefined;
|
|
25647
25746
|
return data;
|
|
@@ -25653,11 +25752,12 @@ export interface IDowntimePeriodReasonDto {
|
|
|
25653
25752
|
reason: string;
|
|
25654
25753
|
reasonType: DowntimeReasonTypeDto;
|
|
25655
25754
|
startTime: Date;
|
|
25656
|
-
endTime
|
|
25755
|
+
endTime?: Date | null;
|
|
25657
25756
|
assetId: number;
|
|
25658
25757
|
comment?: string | null;
|
|
25659
25758
|
companyId?: string | null;
|
|
25660
25759
|
reasonId: string;
|
|
25760
|
+
autoCompleteDowntime?: boolean | null;
|
|
25661
25761
|
createdBy?: EmployeeDto | null;
|
|
25662
25762
|
updatedBy?: EmployeeDto | null;
|
|
25663
25763
|
}
|
|
@@ -34446,7 +34546,8 @@ export class CreateDowntimePeriodReason implements ICreateDowntimePeriodReason {
|
|
|
34446
34546
|
reasonId!: string;
|
|
34447
34547
|
assetId!: number;
|
|
34448
34548
|
startTime!: Date;
|
|
34449
|
-
endTime
|
|
34549
|
+
endTime?: Date | null;
|
|
34550
|
+
autoCompleteDowntime?: boolean | null;
|
|
34450
34551
|
comment?: string | null;
|
|
34451
34552
|
|
|
34452
34553
|
constructor(data?: ICreateDowntimePeriodReason) {
|
|
@@ -34464,6 +34565,7 @@ export class CreateDowntimePeriodReason implements ICreateDowntimePeriodReason {
|
|
|
34464
34565
|
this.assetId = _data["assetId"];
|
|
34465
34566
|
this.startTime = _data["startTime"] ? new Date(_data["startTime"].toString()) : <any>undefined;
|
|
34466
34567
|
this.endTime = _data["endTime"] ? new Date(_data["endTime"].toString()) : <any>undefined;
|
|
34568
|
+
this.autoCompleteDowntime = _data["autoCompleteDowntime"];
|
|
34467
34569
|
this.comment = _data["comment"];
|
|
34468
34570
|
}
|
|
34469
34571
|
}
|
|
@@ -34481,6 +34583,7 @@ export class CreateDowntimePeriodReason implements ICreateDowntimePeriodReason {
|
|
|
34481
34583
|
data["assetId"] = this.assetId;
|
|
34482
34584
|
data["startTime"] = this.startTime ? this.startTime.toISOString() : <any>undefined;
|
|
34483
34585
|
data["endTime"] = this.endTime ? this.endTime.toISOString() : <any>undefined;
|
|
34586
|
+
data["autoCompleteDowntime"] = this.autoCompleteDowntime;
|
|
34484
34587
|
data["comment"] = this.comment;
|
|
34485
34588
|
return data;
|
|
34486
34589
|
}
|
|
@@ -34490,7 +34593,8 @@ export interface ICreateDowntimePeriodReason {
|
|
|
34490
34593
|
reasonId: string;
|
|
34491
34594
|
assetId: number;
|
|
34492
34595
|
startTime: Date;
|
|
34493
|
-
endTime
|
|
34596
|
+
endTime?: Date | null;
|
|
34597
|
+
autoCompleteDowntime?: boolean | null;
|
|
34494
34598
|
comment?: string | null;
|
|
34495
34599
|
}
|
|
34496
34600
|
|
|
@@ -34499,6 +34603,7 @@ export class UpdateDowntimePeriodReasonRequest implements IUpdateDowntimePeriodR
|
|
|
34499
34603
|
assetId?: number | null;
|
|
34500
34604
|
startTime?: Date | null;
|
|
34501
34605
|
endTime?: Date | null;
|
|
34606
|
+
autoCompleteDowntime?: boolean | null;
|
|
34502
34607
|
comment?: string | null;
|
|
34503
34608
|
|
|
34504
34609
|
constructor(data?: IUpdateDowntimePeriodReasonRequest) {
|
|
@@ -34516,6 +34621,7 @@ export class UpdateDowntimePeriodReasonRequest implements IUpdateDowntimePeriodR
|
|
|
34516
34621
|
this.assetId = _data["assetId"];
|
|
34517
34622
|
this.startTime = _data["startTime"] ? new Date(_data["startTime"].toString()) : <any>undefined;
|
|
34518
34623
|
this.endTime = _data["endTime"] ? new Date(_data["endTime"].toString()) : <any>undefined;
|
|
34624
|
+
this.autoCompleteDowntime = _data["autoCompleteDowntime"];
|
|
34519
34625
|
this.comment = _data["comment"];
|
|
34520
34626
|
}
|
|
34521
34627
|
}
|
|
@@ -34533,6 +34639,7 @@ export class UpdateDowntimePeriodReasonRequest implements IUpdateDowntimePeriodR
|
|
|
34533
34639
|
data["assetId"] = this.assetId;
|
|
34534
34640
|
data["startTime"] = this.startTime ? this.startTime.toISOString() : <any>undefined;
|
|
34535
34641
|
data["endTime"] = this.endTime ? this.endTime.toISOString() : <any>undefined;
|
|
34642
|
+
data["autoCompleteDowntime"] = this.autoCompleteDowntime;
|
|
34536
34643
|
data["comment"] = this.comment;
|
|
34537
34644
|
return data;
|
|
34538
34645
|
}
|
|
@@ -34543,6 +34650,7 @@ export interface IUpdateDowntimePeriodReasonRequest {
|
|
|
34543
34650
|
assetId?: number | null;
|
|
34544
34651
|
startTime?: Date | null;
|
|
34545
34652
|
endTime?: Date | null;
|
|
34653
|
+
autoCompleteDowntime?: boolean | null;
|
|
34546
34654
|
comment?: string | null;
|
|
34547
34655
|
}
|
|
34548
34656
|
|
|
@@ -58431,6 +58539,108 @@ export interface IExportDimensionReportRequest {
|
|
|
58431
58539
|
comment?: string | null;
|
|
58432
58540
|
}
|
|
58433
58541
|
|
|
58542
|
+
export class ExportDimensionReportV2Request implements IExportDimensionReportV2Request {
|
|
58543
|
+
tenantId?: string | null;
|
|
58544
|
+
type!: DimensionReportType;
|
|
58545
|
+
extras?: DimensionReportExtras | null;
|
|
58546
|
+
specificSerialNumbers?: string[] | null;
|
|
58547
|
+
|
|
58548
|
+
constructor(data?: IExportDimensionReportV2Request) {
|
|
58549
|
+
if (data) {
|
|
58550
|
+
for (var property in data) {
|
|
58551
|
+
if (data.hasOwnProperty(property))
|
|
58552
|
+
(<any>this)[property] = (<any>data)[property];
|
|
58553
|
+
}
|
|
58554
|
+
}
|
|
58555
|
+
}
|
|
58556
|
+
|
|
58557
|
+
init(_data?: any) {
|
|
58558
|
+
if (_data) {
|
|
58559
|
+
this.tenantId = _data["tenantId"];
|
|
58560
|
+
this.type = _data["type"];
|
|
58561
|
+
this.extras = _data["extras"] ? DimensionReportExtras.fromJS(_data["extras"]) : <any>undefined;
|
|
58562
|
+
if (Array.isArray(_data["specificSerialNumbers"])) {
|
|
58563
|
+
this.specificSerialNumbers = [] as any;
|
|
58564
|
+
for (let item of _data["specificSerialNumbers"])
|
|
58565
|
+
this.specificSerialNumbers!.push(item);
|
|
58566
|
+
}
|
|
58567
|
+
}
|
|
58568
|
+
}
|
|
58569
|
+
|
|
58570
|
+
static fromJS(data: any): ExportDimensionReportV2Request {
|
|
58571
|
+
data = typeof data === 'object' ? data : {};
|
|
58572
|
+
let result = new ExportDimensionReportV2Request();
|
|
58573
|
+
result.init(data);
|
|
58574
|
+
return result;
|
|
58575
|
+
}
|
|
58576
|
+
|
|
58577
|
+
toJSON(data?: any) {
|
|
58578
|
+
data = typeof data === 'object' ? data : {};
|
|
58579
|
+
data["tenantId"] = this.tenantId;
|
|
58580
|
+
data["type"] = this.type;
|
|
58581
|
+
data["extras"] = this.extras ? this.extras.toJSON() : <any>undefined;
|
|
58582
|
+
if (Array.isArray(this.specificSerialNumbers)) {
|
|
58583
|
+
data["specificSerialNumbers"] = [];
|
|
58584
|
+
for (let item of this.specificSerialNumbers)
|
|
58585
|
+
data["specificSerialNumbers"].push(item);
|
|
58586
|
+
}
|
|
58587
|
+
return data;
|
|
58588
|
+
}
|
|
58589
|
+
}
|
|
58590
|
+
|
|
58591
|
+
export interface IExportDimensionReportV2Request {
|
|
58592
|
+
tenantId?: string | null;
|
|
58593
|
+
type: DimensionReportType;
|
|
58594
|
+
extras?: DimensionReportExtras | null;
|
|
58595
|
+
specificSerialNumbers?: string[] | null;
|
|
58596
|
+
}
|
|
58597
|
+
|
|
58598
|
+
export type DimensionReportType = "Customer" | "Blank" | "Fair" | "Full";
|
|
58599
|
+
|
|
58600
|
+
export class DimensionReportExtras implements IDimensionReportExtras {
|
|
58601
|
+
customerPO?: string | null;
|
|
58602
|
+
workOrderNumber?: string | null;
|
|
58603
|
+
comment?: string | null;
|
|
58604
|
+
|
|
58605
|
+
constructor(data?: IDimensionReportExtras) {
|
|
58606
|
+
if (data) {
|
|
58607
|
+
for (var property in data) {
|
|
58608
|
+
if (data.hasOwnProperty(property))
|
|
58609
|
+
(<any>this)[property] = (<any>data)[property];
|
|
58610
|
+
}
|
|
58611
|
+
}
|
|
58612
|
+
}
|
|
58613
|
+
|
|
58614
|
+
init(_data?: any) {
|
|
58615
|
+
if (_data) {
|
|
58616
|
+
this.customerPO = _data["customerPO"];
|
|
58617
|
+
this.workOrderNumber = _data["workOrderNumber"];
|
|
58618
|
+
this.comment = _data["comment"];
|
|
58619
|
+
}
|
|
58620
|
+
}
|
|
58621
|
+
|
|
58622
|
+
static fromJS(data: any): DimensionReportExtras {
|
|
58623
|
+
data = typeof data === 'object' ? data : {};
|
|
58624
|
+
let result = new DimensionReportExtras();
|
|
58625
|
+
result.init(data);
|
|
58626
|
+
return result;
|
|
58627
|
+
}
|
|
58628
|
+
|
|
58629
|
+
toJSON(data?: any) {
|
|
58630
|
+
data = typeof data === 'object' ? data : {};
|
|
58631
|
+
data["customerPO"] = this.customerPO;
|
|
58632
|
+
data["workOrderNumber"] = this.workOrderNumber;
|
|
58633
|
+
data["comment"] = this.comment;
|
|
58634
|
+
return data;
|
|
58635
|
+
}
|
|
58636
|
+
}
|
|
58637
|
+
|
|
58638
|
+
export interface IDimensionReportExtras {
|
|
58639
|
+
customerPO?: string | null;
|
|
58640
|
+
workOrderNumber?: string | null;
|
|
58641
|
+
comment?: string | null;
|
|
58642
|
+
}
|
|
58643
|
+
|
|
58434
58644
|
export class ProductionCompanyDto implements IProductionCompanyDto {
|
|
58435
58645
|
id!: string;
|
|
58436
58646
|
name!: string;
|