@ignos/api-client 20250328.0.11442 → 20250328.0.11444
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 +35 -0
- package/package.json +1 -1
- package/src/ignosportal-api.ts +37 -0
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -1906,6 +1906,7 @@ export interface IMeasurementFormSchemasClient {
|
|
|
1906
1906
|
postListMeasurementFormSchemas(request: ListMeasurementFormSchemasRequest | undefined): Promise<PagedResultOfMeasurementFormListDto>;
|
|
1907
1907
|
getMeasurementFormSchema(id: string): Promise<MeasurementFormSchemaDto>;
|
|
1908
1908
|
updateMeasurementFormSchema(id: string, request: UpdateMeasurementFormSchemaRequest): Promise<MeasurementFormSchemaDto>;
|
|
1909
|
+
deleteMeasurementForm(id: string): Promise<void>;
|
|
1909
1910
|
copyMeasurementFormSchema(id: string, request: CopyMeasurementFormSchema): Promise<MeasurementFormDto>;
|
|
1910
1911
|
updateSchemaGroupedElements(id: string, request: UpdateSchemaGroupedElementsRequest): Promise<MeasurementFormSchemaDto>;
|
|
1911
1912
|
updateSchemaRow(id: string, request: UpdateSchemaGroupedElementRowDto): Promise<MeasurementFormSchemaDto>;
|
|
@@ -1977,6 +1978,8 @@ export declare class MeasurementFormSchemasClient extends AuthorizedApiBase impl
|
|
|
1977
1978
|
protected processGetMeasurementFormSchema(response: Response): Promise<MeasurementFormSchemaDto>;
|
|
1978
1979
|
updateMeasurementFormSchema(id: string, request: UpdateMeasurementFormSchemaRequest): Promise<MeasurementFormSchemaDto>;
|
|
1979
1980
|
protected processUpdateMeasurementFormSchema(response: Response): Promise<MeasurementFormSchemaDto>;
|
|
1981
|
+
deleteMeasurementForm(id: string): Promise<void>;
|
|
1982
|
+
protected processDeleteMeasurementForm(response: Response): Promise<void>;
|
|
1980
1983
|
copyMeasurementFormSchema(id: string, request: CopyMeasurementFormSchema): Promise<MeasurementFormDto>;
|
|
1981
1984
|
protected processCopyMeasurementFormSchema(response: Response): Promise<MeasurementFormDto>;
|
|
1982
1985
|
updateSchemaGroupedElements(id: string, request: UpdateSchemaGroupedElementsRequest): Promise<MeasurementFormSchemaDto>;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -15674,6 +15674,41 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
15674
15674
|
}
|
|
15675
15675
|
return Promise.resolve(null);
|
|
15676
15676
|
}
|
|
15677
|
+
deleteMeasurementForm(id) {
|
|
15678
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{id}";
|
|
15679
|
+
if (id === undefined || id === null)
|
|
15680
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
15681
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
15682
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
15683
|
+
let options_ = {
|
|
15684
|
+
method: "DELETE",
|
|
15685
|
+
headers: {}
|
|
15686
|
+
};
|
|
15687
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
15688
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
15689
|
+
}).then((_response) => {
|
|
15690
|
+
return this.processDeleteMeasurementForm(_response);
|
|
15691
|
+
});
|
|
15692
|
+
}
|
|
15693
|
+
processDeleteMeasurementForm(response) {
|
|
15694
|
+
const status = response.status;
|
|
15695
|
+
let _headers = {};
|
|
15696
|
+
if (response.headers && response.headers.forEach) {
|
|
15697
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
15698
|
+
}
|
|
15699
|
+
;
|
|
15700
|
+
if (status === 204) {
|
|
15701
|
+
return response.text().then((_responseText) => {
|
|
15702
|
+
return;
|
|
15703
|
+
});
|
|
15704
|
+
}
|
|
15705
|
+
else if (status !== 200 && status !== 204) {
|
|
15706
|
+
return response.text().then((_responseText) => {
|
|
15707
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
15708
|
+
});
|
|
15709
|
+
}
|
|
15710
|
+
return Promise.resolve(null);
|
|
15711
|
+
}
|
|
15677
15712
|
copyMeasurementFormSchema(id, request) {
|
|
15678
15713
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/copy";
|
|
15679
15714
|
if (id === undefined || id === null)
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -16534,6 +16534,8 @@ export interface IMeasurementFormSchemasClient {
|
|
|
16534
16534
|
|
|
16535
16535
|
updateMeasurementFormSchema(id: string, request: UpdateMeasurementFormSchemaRequest): Promise<MeasurementFormSchemaDto>;
|
|
16536
16536
|
|
|
16537
|
+
deleteMeasurementForm(id: string): Promise<void>;
|
|
16538
|
+
|
|
16537
16539
|
copyMeasurementFormSchema(id: string, request: CopyMeasurementFormSchema): Promise<MeasurementFormDto>;
|
|
16538
16540
|
|
|
16539
16541
|
updateSchemaGroupedElements(id: string, request: UpdateSchemaGroupedElementsRequest): Promise<MeasurementFormSchemaDto>;
|
|
@@ -16867,6 +16869,41 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
16867
16869
|
return Promise.resolve<MeasurementFormSchemaDto>(null as any);
|
|
16868
16870
|
}
|
|
16869
16871
|
|
|
16872
|
+
deleteMeasurementForm(id: string): Promise<void> {
|
|
16873
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{id}";
|
|
16874
|
+
if (id === undefined || id === null)
|
|
16875
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
16876
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
16877
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
16878
|
+
|
|
16879
|
+
let options_: RequestInit = {
|
|
16880
|
+
method: "DELETE",
|
|
16881
|
+
headers: {
|
|
16882
|
+
}
|
|
16883
|
+
};
|
|
16884
|
+
|
|
16885
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
16886
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
16887
|
+
}).then((_response: Response) => {
|
|
16888
|
+
return this.processDeleteMeasurementForm(_response);
|
|
16889
|
+
});
|
|
16890
|
+
}
|
|
16891
|
+
|
|
16892
|
+
protected processDeleteMeasurementForm(response: Response): Promise<void> {
|
|
16893
|
+
const status = response.status;
|
|
16894
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
16895
|
+
if (status === 204) {
|
|
16896
|
+
return response.text().then((_responseText) => {
|
|
16897
|
+
return;
|
|
16898
|
+
});
|
|
16899
|
+
} else if (status !== 200 && status !== 204) {
|
|
16900
|
+
return response.text().then((_responseText) => {
|
|
16901
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
16902
|
+
});
|
|
16903
|
+
}
|
|
16904
|
+
return Promise.resolve<void>(null as any);
|
|
16905
|
+
}
|
|
16906
|
+
|
|
16870
16907
|
copyMeasurementFormSchema(id: string, request: CopyMeasurementFormSchema): Promise<MeasurementFormDto> {
|
|
16871
16908
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/copy";
|
|
16872
16909
|
if (id === undefined || id === null)
|