@ignos/api-client 20260711.182.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 +11 -0
- package/lib/ignosportal-api.js +43 -0
- package/package.json +1 -1
- package/src/ignosportal-api.ts +48 -0
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -2827,6 +2827,11 @@ export interface IInspectSchemaCreatorClient {
|
|
|
2827
2827
|
*/
|
|
2828
2828
|
createSchemaCreatorState(id: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto>;
|
|
2829
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>;
|
|
2830
2835
|
/**
|
|
2831
2836
|
* Starts an async snip resolve; the result is delivered through the
|
|
2832
2837
|
SchemaCreatorSnipResolved SignalR notification.
|
|
@@ -2850,6 +2855,12 @@ export declare class InspectSchemaCreatorClient extends AuthorizedApiBase implem
|
|
|
2850
2855
|
protected processCreateSchemaCreatorState(response: Response): Promise<SchemaCreatorStateDto>;
|
|
2851
2856
|
updateSchemaCreatorState(id: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto>;
|
|
2852
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>;
|
|
2853
2864
|
/**
|
|
2854
2865
|
* Starts an async snip resolve; the result is delivered through the
|
|
2855
2866
|
SchemaCreatorSnipResolved SignalR notification.
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -23351,6 +23351,49 @@ export class InspectSchemaCreatorClient extends AuthorizedApiBase {
|
|
|
23351
23351
|
}
|
|
23352
23352
|
return Promise.resolve(null);
|
|
23353
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
|
+
}
|
|
23354
23397
|
/**
|
|
23355
23398
|
* Starts an async snip resolve; the result is delivered through the
|
|
23356
23399
|
SchemaCreatorSnipResolved SignalR notification.
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -24847,6 +24847,12 @@ export interface IInspectSchemaCreatorClient {
|
|
|
24847
24847
|
|
|
24848
24848
|
updateSchemaCreatorState(id: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto>;
|
|
24849
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
|
+
|
|
24850
24856
|
/**
|
|
24851
24857
|
* Starts an async snip resolve; the result is delivered through the
|
|
24852
24858
|
SchemaCreatorSnipResolved SignalR notification.
|
|
@@ -24997,6 +25003,48 @@ export class InspectSchemaCreatorClient extends AuthorizedApiBase implements IIn
|
|
|
24997
25003
|
return Promise.resolve<SchemaCreatorStateDto>(null as any);
|
|
24998
25004
|
}
|
|
24999
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
|
+
|
|
25000
25048
|
/**
|
|
25001
25049
|
* Starts an async snip resolve; the result is delivered through the
|
|
25002
25050
|
SchemaCreatorSnipResolved SignalR notification.
|