@ignos/api-client 20260708.180.1-alpha → 20260711.182.1-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 +13 -0
- package/lib/ignosportal-api.js +53 -0
- package/package.json +1 -1
- package/src/ignosportal-api.ts +60 -0
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -2821,6 +2821,11 @@ export declare class InspectMatchSpecificationsClient extends AuthorizedApiBase
|
|
|
2821
2821
|
}
|
|
2822
2822
|
export interface IInspectSchemaCreatorClient {
|
|
2823
2823
|
getSchemaCreatorState(id: string): Promise<SchemaCreatorStateDto>;
|
|
2824
|
+
/**
|
|
2825
|
+
* Creates the initial creator state for a schema version. Returns 409 if
|
|
2826
|
+
state already exists; the caller should re-fetch it instead of writing.
|
|
2827
|
+
*/
|
|
2828
|
+
createSchemaCreatorState(id: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto>;
|
|
2824
2829
|
updateSchemaCreatorState(id: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto>;
|
|
2825
2830
|
/**
|
|
2826
2831
|
* Starts an async snip resolve; the result is delivered through the
|
|
@@ -2837,6 +2842,12 @@ export declare class InspectSchemaCreatorClient extends AuthorizedApiBase implem
|
|
|
2837
2842
|
});
|
|
2838
2843
|
getSchemaCreatorState(id: string): Promise<SchemaCreatorStateDto>;
|
|
2839
2844
|
protected processGetSchemaCreatorState(response: Response): Promise<SchemaCreatorStateDto>;
|
|
2845
|
+
/**
|
|
2846
|
+
* Creates the initial creator state for a schema version. Returns 409 if
|
|
2847
|
+
state already exists; the caller should re-fetch it instead of writing.
|
|
2848
|
+
*/
|
|
2849
|
+
createSchemaCreatorState(id: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto>;
|
|
2850
|
+
protected processCreateSchemaCreatorState(response: Response): Promise<SchemaCreatorStateDto>;
|
|
2840
2851
|
updateSchemaCreatorState(id: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto>;
|
|
2841
2852
|
protected processUpdateSchemaCreatorState(response: Response): Promise<SchemaCreatorStateDto>;
|
|
2842
2853
|
/**
|
|
@@ -8770,6 +8781,8 @@ export interface SchemaCreatorDrawingDto {
|
|
|
8770
8781
|
rect: SchemaCreatorRectDto;
|
|
8771
8782
|
pageIndex: number;
|
|
8772
8783
|
annotationId: string;
|
|
8784
|
+
rotation?: number | null;
|
|
8785
|
+
unrotatedRect?: SchemaCreatorRectDto | null;
|
|
8773
8786
|
}
|
|
8774
8787
|
export interface SchemaCreatorRectDto {
|
|
8775
8788
|
origin: SchemaCreatorPointDto;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -23256,6 +23256,59 @@ export class InspectSchemaCreatorClient extends AuthorizedApiBase {
|
|
|
23256
23256
|
}
|
|
23257
23257
|
return Promise.resolve(null);
|
|
23258
23258
|
}
|
|
23259
|
+
/**
|
|
23260
|
+
* Creates the initial creator state for a schema version. Returns 409 if
|
|
23261
|
+
state already exists; the caller should re-fetch it instead of writing.
|
|
23262
|
+
*/
|
|
23263
|
+
createSchemaCreatorState(id, state) {
|
|
23264
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate";
|
|
23265
|
+
if (id === undefined || id === null)
|
|
23266
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
23267
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
23268
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
23269
|
+
const content_ = JSON.stringify(state);
|
|
23270
|
+
let options_ = {
|
|
23271
|
+
body: content_,
|
|
23272
|
+
method: "POST",
|
|
23273
|
+
headers: {
|
|
23274
|
+
"Content-Type": "application/json",
|
|
23275
|
+
"Accept": "application/json"
|
|
23276
|
+
}
|
|
23277
|
+
};
|
|
23278
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
23279
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
23280
|
+
}).then((_response) => {
|
|
23281
|
+
return this.processCreateSchemaCreatorState(_response);
|
|
23282
|
+
});
|
|
23283
|
+
}
|
|
23284
|
+
processCreateSchemaCreatorState(response) {
|
|
23285
|
+
const status = response.status;
|
|
23286
|
+
let _headers = {};
|
|
23287
|
+
if (response.headers && response.headers.forEach) {
|
|
23288
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
23289
|
+
}
|
|
23290
|
+
;
|
|
23291
|
+
if (status === 201) {
|
|
23292
|
+
return response.text().then((_responseText) => {
|
|
23293
|
+
let result201 = null;
|
|
23294
|
+
result201 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
23295
|
+
return result201;
|
|
23296
|
+
});
|
|
23297
|
+
}
|
|
23298
|
+
else if (status === 409) {
|
|
23299
|
+
return response.text().then((_responseText) => {
|
|
23300
|
+
let result409 = null;
|
|
23301
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
23302
|
+
return throwException("A server side error occurred.", status, _responseText, _headers, result409);
|
|
23303
|
+
});
|
|
23304
|
+
}
|
|
23305
|
+
else if (status !== 200 && status !== 204) {
|
|
23306
|
+
return response.text().then((_responseText) => {
|
|
23307
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
23308
|
+
});
|
|
23309
|
+
}
|
|
23310
|
+
return Promise.resolve(null);
|
|
23311
|
+
}
|
|
23259
23312
|
updateSchemaCreatorState(id, state) {
|
|
23260
23313
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate";
|
|
23261
23314
|
if (id === undefined || id === null)
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -24839,6 +24839,12 @@ export interface IInspectSchemaCreatorClient {
|
|
|
24839
24839
|
|
|
24840
24840
|
getSchemaCreatorState(id: string): Promise<SchemaCreatorStateDto>;
|
|
24841
24841
|
|
|
24842
|
+
/**
|
|
24843
|
+
* Creates the initial creator state for a schema version. Returns 409 if
|
|
24844
|
+
state already exists; the caller should re-fetch it instead of writing.
|
|
24845
|
+
*/
|
|
24846
|
+
createSchemaCreatorState(id: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto>;
|
|
24847
|
+
|
|
24842
24848
|
updateSchemaCreatorState(id: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto>;
|
|
24843
24849
|
|
|
24844
24850
|
/**
|
|
@@ -24897,6 +24903,58 @@ export class InspectSchemaCreatorClient extends AuthorizedApiBase implements IIn
|
|
|
24897
24903
|
return Promise.resolve<SchemaCreatorStateDto>(null as any);
|
|
24898
24904
|
}
|
|
24899
24905
|
|
|
24906
|
+
/**
|
|
24907
|
+
* Creates the initial creator state for a schema version. Returns 409 if
|
|
24908
|
+
state already exists; the caller should re-fetch it instead of writing.
|
|
24909
|
+
*/
|
|
24910
|
+
createSchemaCreatorState(id: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto> {
|
|
24911
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate";
|
|
24912
|
+
if (id === undefined || id === null)
|
|
24913
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
24914
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
24915
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
24916
|
+
|
|
24917
|
+
const content_ = JSON.stringify(state);
|
|
24918
|
+
|
|
24919
|
+
let options_: RequestInit = {
|
|
24920
|
+
body: content_,
|
|
24921
|
+
method: "POST",
|
|
24922
|
+
headers: {
|
|
24923
|
+
"Content-Type": "application/json",
|
|
24924
|
+
"Accept": "application/json"
|
|
24925
|
+
}
|
|
24926
|
+
};
|
|
24927
|
+
|
|
24928
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24929
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
24930
|
+
}).then((_response: Response) => {
|
|
24931
|
+
return this.processCreateSchemaCreatorState(_response);
|
|
24932
|
+
});
|
|
24933
|
+
}
|
|
24934
|
+
|
|
24935
|
+
protected processCreateSchemaCreatorState(response: Response): Promise<SchemaCreatorStateDto> {
|
|
24936
|
+
const status = response.status;
|
|
24937
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
24938
|
+
if (status === 201) {
|
|
24939
|
+
return response.text().then((_responseText) => {
|
|
24940
|
+
let result201: any = null;
|
|
24941
|
+
result201 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as SchemaCreatorStateDto;
|
|
24942
|
+
return result201;
|
|
24943
|
+
});
|
|
24944
|
+
} else if (status === 409) {
|
|
24945
|
+
return response.text().then((_responseText) => {
|
|
24946
|
+
let result409: any = null;
|
|
24947
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ProblemDetails;
|
|
24948
|
+
return throwException("A server side error occurred.", status, _responseText, _headers, result409);
|
|
24949
|
+
});
|
|
24950
|
+
} else if (status !== 200 && status !== 204) {
|
|
24951
|
+
return response.text().then((_responseText) => {
|
|
24952
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24953
|
+
});
|
|
24954
|
+
}
|
|
24955
|
+
return Promise.resolve<SchemaCreatorStateDto>(null as any);
|
|
24956
|
+
}
|
|
24957
|
+
|
|
24900
24958
|
updateSchemaCreatorState(id: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto> {
|
|
24901
24959
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate";
|
|
24902
24960
|
if (id === undefined || id === null)
|
|
@@ -36924,6 +36982,8 @@ export interface SchemaCreatorDrawingDto {
|
|
|
36924
36982
|
rect: SchemaCreatorRectDto;
|
|
36925
36983
|
pageIndex: number;
|
|
36926
36984
|
annotationId: string;
|
|
36985
|
+
rotation?: number | null;
|
|
36986
|
+
unrotatedRect?: SchemaCreatorRectDto | null;
|
|
36927
36987
|
}
|
|
36928
36988
|
|
|
36929
36989
|
export interface SchemaCreatorRectDto {
|