@ignos/api-client 20250924.0.12717 → 20251006.0.12773
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 +3 -0
- package/lib/ignosportal-api.js +40 -0
- package/package.json +1 -1
- package/src/ignosportal-api.ts +41 -0
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -2120,6 +2120,7 @@ export interface IMeasurementFormSchemasClient {
|
|
|
2120
2120
|
getMeasurementFormSchema(id: string): Promise<MeasurementFormSchemaDto>;
|
|
2121
2121
|
updateMeasurementFormSchema(id: string, request: UpdateMeasurementFormSchemaRequest): Promise<MeasurementFormSchemaDto>;
|
|
2122
2122
|
deleteMeasurementForm(id: string): Promise<void>;
|
|
2123
|
+
getArchivedMeasurementFormSchema(id: string): Promise<MeasurementFormSchemaDto>;
|
|
2123
2124
|
copyMeasurementFormSchema(id: string, request: CopyMeasurementFormSchema): Promise<MeasurementFormDto>;
|
|
2124
2125
|
updateSchemaGroupedElements(id: string, request: UpdateSchemaGroupedElementsRequest): Promise<MeasurementFormSchemaDto>;
|
|
2125
2126
|
updateSchemaRow(id: string, request: UpdateSchemaGroupedElementRowDto): Promise<MeasurementFormSchemaDto>;
|
|
@@ -2203,6 +2204,8 @@ export declare class MeasurementFormSchemasClient extends AuthorizedApiBase impl
|
|
|
2203
2204
|
protected processUpdateMeasurementFormSchema(response: Response): Promise<MeasurementFormSchemaDto>;
|
|
2204
2205
|
deleteMeasurementForm(id: string): Promise<void>;
|
|
2205
2206
|
protected processDeleteMeasurementForm(response: Response): Promise<void>;
|
|
2207
|
+
getArchivedMeasurementFormSchema(id: string): Promise<MeasurementFormSchemaDto>;
|
|
2208
|
+
protected processGetArchivedMeasurementFormSchema(response: Response): Promise<MeasurementFormSchemaDto>;
|
|
2206
2209
|
copyMeasurementFormSchema(id: string, request: CopyMeasurementFormSchema): Promise<MeasurementFormDto>;
|
|
2207
2210
|
protected processCopyMeasurementFormSchema(response: Response): Promise<MeasurementFormDto>;
|
|
2208
2211
|
updateSchemaGroupedElements(id: string, request: UpdateSchemaGroupedElementsRequest): Promise<MeasurementFormSchemaDto>;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -17864,6 +17864,46 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
17864
17864
|
}
|
|
17865
17865
|
return Promise.resolve(null);
|
|
17866
17866
|
}
|
|
17867
|
+
getArchivedMeasurementFormSchema(id) {
|
|
17868
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/archived/{id}";
|
|
17869
|
+
if (id === undefined || id === null)
|
|
17870
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
17871
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
17872
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
17873
|
+
let options_ = {
|
|
17874
|
+
method: "GET",
|
|
17875
|
+
headers: {
|
|
17876
|
+
"Accept": "application/json"
|
|
17877
|
+
}
|
|
17878
|
+
};
|
|
17879
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
17880
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
17881
|
+
}).then((_response) => {
|
|
17882
|
+
return this.processGetArchivedMeasurementFormSchema(_response);
|
|
17883
|
+
});
|
|
17884
|
+
}
|
|
17885
|
+
processGetArchivedMeasurementFormSchema(response) {
|
|
17886
|
+
const status = response.status;
|
|
17887
|
+
let _headers = {};
|
|
17888
|
+
if (response.headers && response.headers.forEach) {
|
|
17889
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
17890
|
+
}
|
|
17891
|
+
;
|
|
17892
|
+
if (status === 200) {
|
|
17893
|
+
return response.text().then((_responseText) => {
|
|
17894
|
+
let result200 = null;
|
|
17895
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
17896
|
+
result200 = MeasurementFormSchemaDto.fromJS(resultData200);
|
|
17897
|
+
return result200;
|
|
17898
|
+
});
|
|
17899
|
+
}
|
|
17900
|
+
else if (status !== 200 && status !== 204) {
|
|
17901
|
+
return response.text().then((_responseText) => {
|
|
17902
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
17903
|
+
});
|
|
17904
|
+
}
|
|
17905
|
+
return Promise.resolve(null);
|
|
17906
|
+
}
|
|
17867
17907
|
copyMeasurementFormSchema(id, request) {
|
|
17868
17908
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/copy";
|
|
17869
17909
|
if (id === undefined || id === null)
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -18807,6 +18807,8 @@ export interface IMeasurementFormSchemasClient {
|
|
|
18807
18807
|
|
|
18808
18808
|
deleteMeasurementForm(id: string): Promise<void>;
|
|
18809
18809
|
|
|
18810
|
+
getArchivedMeasurementFormSchema(id: string): Promise<MeasurementFormSchemaDto>;
|
|
18811
|
+
|
|
18810
18812
|
copyMeasurementFormSchema(id: string, request: CopyMeasurementFormSchema): Promise<MeasurementFormDto>;
|
|
18811
18813
|
|
|
18812
18814
|
updateSchemaGroupedElements(id: string, request: UpdateSchemaGroupedElementsRequest): Promise<MeasurementFormSchemaDto>;
|
|
@@ -19185,6 +19187,45 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
19185
19187
|
return Promise.resolve<void>(null as any);
|
|
19186
19188
|
}
|
|
19187
19189
|
|
|
19190
|
+
getArchivedMeasurementFormSchema(id: string): Promise<MeasurementFormSchemaDto> {
|
|
19191
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/archived/{id}";
|
|
19192
|
+
if (id === undefined || id === null)
|
|
19193
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
19194
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
19195
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
19196
|
+
|
|
19197
|
+
let options_: RequestInit = {
|
|
19198
|
+
method: "GET",
|
|
19199
|
+
headers: {
|
|
19200
|
+
"Accept": "application/json"
|
|
19201
|
+
}
|
|
19202
|
+
};
|
|
19203
|
+
|
|
19204
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
19205
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
19206
|
+
}).then((_response: Response) => {
|
|
19207
|
+
return this.processGetArchivedMeasurementFormSchema(_response);
|
|
19208
|
+
});
|
|
19209
|
+
}
|
|
19210
|
+
|
|
19211
|
+
protected processGetArchivedMeasurementFormSchema(response: Response): Promise<MeasurementFormSchemaDto> {
|
|
19212
|
+
const status = response.status;
|
|
19213
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
19214
|
+
if (status === 200) {
|
|
19215
|
+
return response.text().then((_responseText) => {
|
|
19216
|
+
let result200: any = null;
|
|
19217
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
19218
|
+
result200 = MeasurementFormSchemaDto.fromJS(resultData200);
|
|
19219
|
+
return result200;
|
|
19220
|
+
});
|
|
19221
|
+
} else if (status !== 200 && status !== 204) {
|
|
19222
|
+
return response.text().then((_responseText) => {
|
|
19223
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
19224
|
+
});
|
|
19225
|
+
}
|
|
19226
|
+
return Promise.resolve<MeasurementFormSchemaDto>(null as any);
|
|
19227
|
+
}
|
|
19228
|
+
|
|
19188
19229
|
copyMeasurementFormSchema(id: string, request: CopyMeasurementFormSchema): Promise<MeasurementFormDto> {
|
|
19189
19230
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/copy";
|
|
19190
19231
|
if (id === undefined || id === null)
|