@ignos/api-client 20260106.0.13658 → 20260107.0.13673-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 +17 -3
- package/lib/ignosportal-api.js +31 -1
- package/package.json +1 -1
- package/src/ignosportal-api.ts +49 -5
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -2468,7 +2468,7 @@ export interface IMeasurementFormsInstancesClient {
|
|
|
2468
2468
|
postListMeasurementForms(request: ListMeasurementFormsRequest | undefined): Promise<PagedResultOfMeasurementFormInstanceOverviewDto>;
|
|
2469
2469
|
getMeasurementFormInstance(id: string, tenantId: string | null | undefined): Promise<MeasurementFormInstanceDto>;
|
|
2470
2470
|
listMeasurementFormInstanceFeedback(id: string): Promise<MeasurementFormInstanceFeedbackDto[]>;
|
|
2471
|
-
completeMeasurementFormInstance(id: string, tenantId: string | null | undefined): Promise<
|
|
2471
|
+
completeMeasurementFormInstance(id: string, tenantId: string | null | undefined): Promise<CompleteMeasurementFormInstanceResult>;
|
|
2472
2472
|
getMeasurementFormInstanceSchema(id: string, schemaId: string, serialNumber: string | null | undefined, tenantId: string | null | undefined): Promise<MeasurementFormInstanceSchemaDto>;
|
|
2473
2473
|
getWorkorderMeasurementFormProgress(id: string, tenantId: string | null | undefined): Promise<MeasurementFormInstanceProgressDto>;
|
|
2474
2474
|
getAuditLog(id: string, tenantId: string | null | undefined, schemaId: string | null | undefined, serialNumber: string | null | undefined, elementId: string | null | undefined): Promise<MeasurementFormElementValueAuditDto[]>;
|
|
@@ -2503,8 +2503,8 @@ export declare class MeasurementFormsInstancesClient extends AuthorizedApiBase i
|
|
|
2503
2503
|
protected processGetMeasurementFormInstance(response: Response): Promise<MeasurementFormInstanceDto>;
|
|
2504
2504
|
listMeasurementFormInstanceFeedback(id: string): Promise<MeasurementFormInstanceFeedbackDto[]>;
|
|
2505
2505
|
protected processListMeasurementFormInstanceFeedback(response: Response): Promise<MeasurementFormInstanceFeedbackDto[]>;
|
|
2506
|
-
completeMeasurementFormInstance(id: string, tenantId: string | null | undefined): Promise<
|
|
2507
|
-
protected processCompleteMeasurementFormInstance(response: Response): Promise<
|
|
2506
|
+
completeMeasurementFormInstance(id: string, tenantId: string | null | undefined): Promise<CompleteMeasurementFormInstanceResult>;
|
|
2507
|
+
protected processCompleteMeasurementFormInstance(response: Response): Promise<CompleteMeasurementFormInstanceResult>;
|
|
2508
2508
|
getMeasurementFormInstanceSchema(id: string, schemaId: string, serialNumber: string | null | undefined, tenantId: string | null | undefined): Promise<MeasurementFormInstanceSchemaDto>;
|
|
2509
2509
|
protected processGetMeasurementFormInstanceSchema(response: Response): Promise<MeasurementFormInstanceSchemaDto>;
|
|
2510
2510
|
getWorkorderMeasurementFormProgress(id: string, tenantId: string | null | undefined): Promise<MeasurementFormInstanceProgressDto>;
|
|
@@ -13790,6 +13790,20 @@ export interface IMeasurementFormInstanceFeedbackDto {
|
|
|
13790
13790
|
from: string;
|
|
13791
13791
|
created: Date;
|
|
13792
13792
|
}
|
|
13793
|
+
export declare class CompleteMeasurementFormInstanceResult implements ICompleteMeasurementFormInstanceResult {
|
|
13794
|
+
hasWarning?: boolean;
|
|
13795
|
+
warningMessage?: string | null;
|
|
13796
|
+
result?: MeasurementFormInstanceDto | null;
|
|
13797
|
+
constructor(data?: ICompleteMeasurementFormInstanceResult);
|
|
13798
|
+
init(_data?: any): void;
|
|
13799
|
+
static fromJS(data: any): CompleteMeasurementFormInstanceResult;
|
|
13800
|
+
toJSON(data?: any): any;
|
|
13801
|
+
}
|
|
13802
|
+
export interface ICompleteMeasurementFormInstanceResult {
|
|
13803
|
+
hasWarning?: boolean;
|
|
13804
|
+
warningMessage?: string | null;
|
|
13805
|
+
result?: MeasurementFormInstanceDto | null;
|
|
13806
|
+
}
|
|
13793
13807
|
export declare class MeasurementFormInstanceSchemaDto implements IMeasurementFormInstanceSchemaDto {
|
|
13794
13808
|
elements: MeasurementFormInstanceElementDto[];
|
|
13795
13809
|
isCompleted: boolean;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -21573,7 +21573,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
21573
21573
|
return response.text().then((_responseText) => {
|
|
21574
21574
|
let result200 = null;
|
|
21575
21575
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
21576
|
-
result200 =
|
|
21576
|
+
result200 = CompleteMeasurementFormInstanceResult.fromJS(resultData200);
|
|
21577
21577
|
return result200;
|
|
21578
21578
|
});
|
|
21579
21579
|
}
|
|
@@ -46859,6 +46859,36 @@ export class MeasurementFormInstanceFeedbackDto {
|
|
|
46859
46859
|
return data;
|
|
46860
46860
|
}
|
|
46861
46861
|
}
|
|
46862
|
+
export class CompleteMeasurementFormInstanceResult {
|
|
46863
|
+
constructor(data) {
|
|
46864
|
+
if (data) {
|
|
46865
|
+
for (var property in data) {
|
|
46866
|
+
if (data.hasOwnProperty(property))
|
|
46867
|
+
this[property] = data[property];
|
|
46868
|
+
}
|
|
46869
|
+
}
|
|
46870
|
+
}
|
|
46871
|
+
init(_data) {
|
|
46872
|
+
if (_data) {
|
|
46873
|
+
this.hasWarning = _data["hasWarning"];
|
|
46874
|
+
this.warningMessage = _data["warningMessage"];
|
|
46875
|
+
this.result = _data["result"] ? MeasurementFormInstanceDto.fromJS(_data["result"]) : undefined;
|
|
46876
|
+
}
|
|
46877
|
+
}
|
|
46878
|
+
static fromJS(data) {
|
|
46879
|
+
data = typeof data === 'object' ? data : {};
|
|
46880
|
+
let result = new CompleteMeasurementFormInstanceResult();
|
|
46881
|
+
result.init(data);
|
|
46882
|
+
return result;
|
|
46883
|
+
}
|
|
46884
|
+
toJSON(data) {
|
|
46885
|
+
data = typeof data === 'object' ? data : {};
|
|
46886
|
+
data["hasWarning"] = this.hasWarning;
|
|
46887
|
+
data["warningMessage"] = this.warningMessage;
|
|
46888
|
+
data["result"] = this.result ? this.result.toJSON() : undefined;
|
|
46889
|
+
return data;
|
|
46890
|
+
}
|
|
46891
|
+
}
|
|
46862
46892
|
export class MeasurementFormInstanceSchemaDto {
|
|
46863
46893
|
constructor(data) {
|
|
46864
46894
|
if (data) {
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -22748,7 +22748,7 @@ export interface IMeasurementFormsInstancesClient {
|
|
|
22748
22748
|
|
|
22749
22749
|
listMeasurementFormInstanceFeedback(id: string): Promise<MeasurementFormInstanceFeedbackDto[]>;
|
|
22750
22750
|
|
|
22751
|
-
completeMeasurementFormInstance(id: string, tenantId: string | null | undefined): Promise<
|
|
22751
|
+
completeMeasurementFormInstance(id: string, tenantId: string | null | undefined): Promise<CompleteMeasurementFormInstanceResult>;
|
|
22752
22752
|
|
|
22753
22753
|
getMeasurementFormInstanceSchema(id: string, schemaId: string, serialNumber: string | null | undefined, tenantId: string | null | undefined): Promise<MeasurementFormInstanceSchemaDto>;
|
|
22754
22754
|
|
|
@@ -22969,7 +22969,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
|
|
|
22969
22969
|
return Promise.resolve<MeasurementFormInstanceFeedbackDto[]>(null as any);
|
|
22970
22970
|
}
|
|
22971
22971
|
|
|
22972
|
-
completeMeasurementFormInstance(id: string, tenantId: string | null | undefined): Promise<
|
|
22972
|
+
completeMeasurementFormInstance(id: string, tenantId: string | null | undefined): Promise<CompleteMeasurementFormInstanceResult> {
|
|
22973
22973
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/complete?";
|
|
22974
22974
|
if (id === undefined || id === null)
|
|
22975
22975
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -22992,14 +22992,14 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
|
|
|
22992
22992
|
});
|
|
22993
22993
|
}
|
|
22994
22994
|
|
|
22995
|
-
protected processCompleteMeasurementFormInstance(response: Response): Promise<
|
|
22995
|
+
protected processCompleteMeasurementFormInstance(response: Response): Promise<CompleteMeasurementFormInstanceResult> {
|
|
22996
22996
|
const status = response.status;
|
|
22997
22997
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22998
22998
|
if (status === 200) {
|
|
22999
22999
|
return response.text().then((_responseText) => {
|
|
23000
23000
|
let result200: any = null;
|
|
23001
23001
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
23002
|
-
result200 =
|
|
23002
|
+
result200 = CompleteMeasurementFormInstanceResult.fromJS(resultData200);
|
|
23003
23003
|
return result200;
|
|
23004
23004
|
});
|
|
23005
23005
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -23007,7 +23007,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
|
|
|
23007
23007
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
23008
23008
|
});
|
|
23009
23009
|
}
|
|
23010
|
-
return Promise.resolve<
|
|
23010
|
+
return Promise.resolve<CompleteMeasurementFormInstanceResult>(null as any);
|
|
23011
23011
|
}
|
|
23012
23012
|
|
|
23013
23013
|
getMeasurementFormInstanceSchema(id: string, schemaId: string, serialNumber: string | null | undefined, tenantId: string | null | undefined): Promise<MeasurementFormInstanceSchemaDto> {
|
|
@@ -59405,6 +59405,50 @@ export interface IMeasurementFormInstanceFeedbackDto {
|
|
|
59405
59405
|
created: Date;
|
|
59406
59406
|
}
|
|
59407
59407
|
|
|
59408
|
+
export class CompleteMeasurementFormInstanceResult implements ICompleteMeasurementFormInstanceResult {
|
|
59409
|
+
hasWarning?: boolean;
|
|
59410
|
+
warningMessage?: string | null;
|
|
59411
|
+
result?: MeasurementFormInstanceDto | null;
|
|
59412
|
+
|
|
59413
|
+
constructor(data?: ICompleteMeasurementFormInstanceResult) {
|
|
59414
|
+
if (data) {
|
|
59415
|
+
for (var property in data) {
|
|
59416
|
+
if (data.hasOwnProperty(property))
|
|
59417
|
+
(this as any)[property] = (data as any)[property];
|
|
59418
|
+
}
|
|
59419
|
+
}
|
|
59420
|
+
}
|
|
59421
|
+
|
|
59422
|
+
init(_data?: any) {
|
|
59423
|
+
if (_data) {
|
|
59424
|
+
this.hasWarning = _data["hasWarning"];
|
|
59425
|
+
this.warningMessage = _data["warningMessage"];
|
|
59426
|
+
this.result = _data["result"] ? MeasurementFormInstanceDto.fromJS(_data["result"]) : undefined as any;
|
|
59427
|
+
}
|
|
59428
|
+
}
|
|
59429
|
+
|
|
59430
|
+
static fromJS(data: any): CompleteMeasurementFormInstanceResult {
|
|
59431
|
+
data = typeof data === 'object' ? data : {};
|
|
59432
|
+
let result = new CompleteMeasurementFormInstanceResult();
|
|
59433
|
+
result.init(data);
|
|
59434
|
+
return result;
|
|
59435
|
+
}
|
|
59436
|
+
|
|
59437
|
+
toJSON(data?: any) {
|
|
59438
|
+
data = typeof data === 'object' ? data : {};
|
|
59439
|
+
data["hasWarning"] = this.hasWarning;
|
|
59440
|
+
data["warningMessage"] = this.warningMessage;
|
|
59441
|
+
data["result"] = this.result ? this.result.toJSON() : undefined as any;
|
|
59442
|
+
return data;
|
|
59443
|
+
}
|
|
59444
|
+
}
|
|
59445
|
+
|
|
59446
|
+
export interface ICompleteMeasurementFormInstanceResult {
|
|
59447
|
+
hasWarning?: boolean;
|
|
59448
|
+
warningMessage?: string | null;
|
|
59449
|
+
result?: MeasurementFormInstanceDto | null;
|
|
59450
|
+
}
|
|
59451
|
+
|
|
59408
59452
|
export class MeasurementFormInstanceSchemaDto implements IMeasurementFormInstanceSchemaDto {
|
|
59409
59453
|
elements!: MeasurementFormInstanceElementDto[];
|
|
59410
59454
|
isCompleted!: boolean;
|