@ignos/api-client 20260710.181.1-alpha → 20260711.183.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 +22 -0
- package/lib/ignosportal-api.js +96 -0
- package/package.json +1 -1
- package/src/ignosportal-api.ts +106 -0
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -2821,7 +2821,17 @@ 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>;
|
|
2830
|
+
/**
|
|
2831
|
+
* Stamps the creator state's balloons onto the schema's drawing PDF and
|
|
2832
|
+
returns a temporary download link.
|
|
2833
|
+
*/
|
|
2834
|
+
exportSchemaCreatorDrawing(id: string): Promise<DownloadDto>;
|
|
2825
2835
|
/**
|
|
2826
2836
|
* Starts an async snip resolve; the result is delivered through the
|
|
2827
2837
|
SchemaCreatorSnipResolved SignalR notification.
|
|
@@ -2837,8 +2847,20 @@ export declare class InspectSchemaCreatorClient extends AuthorizedApiBase implem
|
|
|
2837
2847
|
});
|
|
2838
2848
|
getSchemaCreatorState(id: string): Promise<SchemaCreatorStateDto>;
|
|
2839
2849
|
protected processGetSchemaCreatorState(response: Response): Promise<SchemaCreatorStateDto>;
|
|
2850
|
+
/**
|
|
2851
|
+
* Creates the initial creator state for a schema version. Returns 409 if
|
|
2852
|
+
state already exists; the caller should re-fetch it instead of writing.
|
|
2853
|
+
*/
|
|
2854
|
+
createSchemaCreatorState(id: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto>;
|
|
2855
|
+
protected processCreateSchemaCreatorState(response: Response): Promise<SchemaCreatorStateDto>;
|
|
2840
2856
|
updateSchemaCreatorState(id: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto>;
|
|
2841
2857
|
protected processUpdateSchemaCreatorState(response: Response): Promise<SchemaCreatorStateDto>;
|
|
2858
|
+
/**
|
|
2859
|
+
* Stamps the creator state's balloons onto the schema's drawing PDF and
|
|
2860
|
+
returns a temporary download link.
|
|
2861
|
+
*/
|
|
2862
|
+
exportSchemaCreatorDrawing(id: string): Promise<DownloadDto>;
|
|
2863
|
+
protected processExportSchemaCreatorDrawing(response: Response): Promise<DownloadDto>;
|
|
2842
2864
|
/**
|
|
2843
2865
|
* Starts an async snip resolve; the result is delivered through the
|
|
2844
2866
|
SchemaCreatorSnipResolved SignalR notification.
|
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)
|
|
@@ -23298,6 +23351,49 @@ export class InspectSchemaCreatorClient extends AuthorizedApiBase {
|
|
|
23298
23351
|
}
|
|
23299
23352
|
return Promise.resolve(null);
|
|
23300
23353
|
}
|
|
23354
|
+
/**
|
|
23355
|
+
* Stamps the creator state's balloons onto the schema's drawing PDF and
|
|
23356
|
+
returns a temporary download link.
|
|
23357
|
+
*/
|
|
23358
|
+
exportSchemaCreatorDrawing(id) {
|
|
23359
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate/download";
|
|
23360
|
+
if (id === undefined || id === null)
|
|
23361
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
23362
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
23363
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
23364
|
+
let options_ = {
|
|
23365
|
+
method: "POST",
|
|
23366
|
+
headers: {
|
|
23367
|
+
"Accept": "application/json"
|
|
23368
|
+
}
|
|
23369
|
+
};
|
|
23370
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
23371
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
23372
|
+
}).then((_response) => {
|
|
23373
|
+
return this.processExportSchemaCreatorDrawing(_response);
|
|
23374
|
+
});
|
|
23375
|
+
}
|
|
23376
|
+
processExportSchemaCreatorDrawing(response) {
|
|
23377
|
+
const status = response.status;
|
|
23378
|
+
let _headers = {};
|
|
23379
|
+
if (response.headers && response.headers.forEach) {
|
|
23380
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
23381
|
+
}
|
|
23382
|
+
;
|
|
23383
|
+
if (status === 200) {
|
|
23384
|
+
return response.text().then((_responseText) => {
|
|
23385
|
+
let result200 = null;
|
|
23386
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
23387
|
+
return result200;
|
|
23388
|
+
});
|
|
23389
|
+
}
|
|
23390
|
+
else if (status !== 200 && status !== 204) {
|
|
23391
|
+
return response.text().then((_responseText) => {
|
|
23392
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
23393
|
+
});
|
|
23394
|
+
}
|
|
23395
|
+
return Promise.resolve(null);
|
|
23396
|
+
}
|
|
23301
23397
|
/**
|
|
23302
23398
|
* Starts an async snip resolve; the result is delivered through the
|
|
23303
23399
|
SchemaCreatorSnipResolved SignalR notification.
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -24839,8 +24839,20 @@ 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
|
|
|
24850
|
+
/**
|
|
24851
|
+
* Stamps the creator state's balloons onto the schema's drawing PDF and
|
|
24852
|
+
returns a temporary download link.
|
|
24853
|
+
*/
|
|
24854
|
+
exportSchemaCreatorDrawing(id: string): Promise<DownloadDto>;
|
|
24855
|
+
|
|
24844
24856
|
/**
|
|
24845
24857
|
* Starts an async snip resolve; the result is delivered through the
|
|
24846
24858
|
SchemaCreatorSnipResolved SignalR notification.
|
|
@@ -24897,6 +24909,58 @@ export class InspectSchemaCreatorClient extends AuthorizedApiBase implements IIn
|
|
|
24897
24909
|
return Promise.resolve<SchemaCreatorStateDto>(null as any);
|
|
24898
24910
|
}
|
|
24899
24911
|
|
|
24912
|
+
/**
|
|
24913
|
+
* Creates the initial creator state for a schema version. Returns 409 if
|
|
24914
|
+
state already exists; the caller should re-fetch it instead of writing.
|
|
24915
|
+
*/
|
|
24916
|
+
createSchemaCreatorState(id: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto> {
|
|
24917
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate";
|
|
24918
|
+
if (id === undefined || id === null)
|
|
24919
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
24920
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
24921
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
24922
|
+
|
|
24923
|
+
const content_ = JSON.stringify(state);
|
|
24924
|
+
|
|
24925
|
+
let options_: RequestInit = {
|
|
24926
|
+
body: content_,
|
|
24927
|
+
method: "POST",
|
|
24928
|
+
headers: {
|
|
24929
|
+
"Content-Type": "application/json",
|
|
24930
|
+
"Accept": "application/json"
|
|
24931
|
+
}
|
|
24932
|
+
};
|
|
24933
|
+
|
|
24934
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24935
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
24936
|
+
}).then((_response: Response) => {
|
|
24937
|
+
return this.processCreateSchemaCreatorState(_response);
|
|
24938
|
+
});
|
|
24939
|
+
}
|
|
24940
|
+
|
|
24941
|
+
protected processCreateSchemaCreatorState(response: Response): Promise<SchemaCreatorStateDto> {
|
|
24942
|
+
const status = response.status;
|
|
24943
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
24944
|
+
if (status === 201) {
|
|
24945
|
+
return response.text().then((_responseText) => {
|
|
24946
|
+
let result201: any = null;
|
|
24947
|
+
result201 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as SchemaCreatorStateDto;
|
|
24948
|
+
return result201;
|
|
24949
|
+
});
|
|
24950
|
+
} else if (status === 409) {
|
|
24951
|
+
return response.text().then((_responseText) => {
|
|
24952
|
+
let result409: any = null;
|
|
24953
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ProblemDetails;
|
|
24954
|
+
return throwException("A server side error occurred.", status, _responseText, _headers, result409);
|
|
24955
|
+
});
|
|
24956
|
+
} else if (status !== 200 && status !== 204) {
|
|
24957
|
+
return response.text().then((_responseText) => {
|
|
24958
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24959
|
+
});
|
|
24960
|
+
}
|
|
24961
|
+
return Promise.resolve<SchemaCreatorStateDto>(null as any);
|
|
24962
|
+
}
|
|
24963
|
+
|
|
24900
24964
|
updateSchemaCreatorState(id: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto> {
|
|
24901
24965
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate";
|
|
24902
24966
|
if (id === undefined || id === null)
|
|
@@ -24939,6 +25003,48 @@ export class InspectSchemaCreatorClient extends AuthorizedApiBase implements IIn
|
|
|
24939
25003
|
return Promise.resolve<SchemaCreatorStateDto>(null as any);
|
|
24940
25004
|
}
|
|
24941
25005
|
|
|
25006
|
+
/**
|
|
25007
|
+
* Stamps the creator state's balloons onto the schema's drawing PDF and
|
|
25008
|
+
returns a temporary download link.
|
|
25009
|
+
*/
|
|
25010
|
+
exportSchemaCreatorDrawing(id: string): Promise<DownloadDto> {
|
|
25011
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate/download";
|
|
25012
|
+
if (id === undefined || id === null)
|
|
25013
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
25014
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
25015
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
25016
|
+
|
|
25017
|
+
let options_: RequestInit = {
|
|
25018
|
+
method: "POST",
|
|
25019
|
+
headers: {
|
|
25020
|
+
"Accept": "application/json"
|
|
25021
|
+
}
|
|
25022
|
+
};
|
|
25023
|
+
|
|
25024
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
25025
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
25026
|
+
}).then((_response: Response) => {
|
|
25027
|
+
return this.processExportSchemaCreatorDrawing(_response);
|
|
25028
|
+
});
|
|
25029
|
+
}
|
|
25030
|
+
|
|
25031
|
+
protected processExportSchemaCreatorDrawing(response: Response): Promise<DownloadDto> {
|
|
25032
|
+
const status = response.status;
|
|
25033
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
25034
|
+
if (status === 200) {
|
|
25035
|
+
return response.text().then((_responseText) => {
|
|
25036
|
+
let result200: any = null;
|
|
25037
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as DownloadDto;
|
|
25038
|
+
return result200;
|
|
25039
|
+
});
|
|
25040
|
+
} else if (status !== 200 && status !== 204) {
|
|
25041
|
+
return response.text().then((_responseText) => {
|
|
25042
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
25043
|
+
});
|
|
25044
|
+
}
|
|
25045
|
+
return Promise.resolve<DownloadDto>(null as any);
|
|
25046
|
+
}
|
|
25047
|
+
|
|
24942
25048
|
/**
|
|
24943
25049
|
* Starts an async snip resolve; the result is delivered through the
|
|
24944
25050
|
SchemaCreatorSnipResolved SignalR notification.
|