@ignos/api-client 20260905.259.1-alpha → 20260905.260.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 +36 -14
- package/lib/ignosportal-api.js +80 -35
- package/package.json +1 -1
- package/src/ignosportal-api.ts +102 -42
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -2934,37 +2934,44 @@ export declare class InspectMatchSpecificationsClient extends AuthorizedApiBase
|
|
|
2934
2934
|
protected processListSpecifications(response: Response): Promise<ImaSpecificationLiteDto[]>;
|
|
2935
2935
|
}
|
|
2936
2936
|
export interface IInspectSchemaCreatorClient {
|
|
2937
|
-
getSchemaCreatorState(
|
|
2937
|
+
getSchemaCreatorState(schemaVersionId: string): Promise<SchemaCreatorStateDto>;
|
|
2938
2938
|
/**
|
|
2939
2939
|
* Creates the initial creator state for a schema version. Returns 409 if
|
|
2940
2940
|
state already exists; the caller should re-fetch it instead of writing.
|
|
2941
2941
|
*/
|
|
2942
|
-
createSchemaCreatorState(
|
|
2943
|
-
updateSchemaCreatorState(
|
|
2942
|
+
createSchemaCreatorState(schemaVersionId: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto>;
|
|
2943
|
+
updateSchemaCreatorState(schemaVersionId: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto>;
|
|
2944
|
+
/**
|
|
2945
|
+
* Geometry only (no values), derived from the schema's retained
|
|
2946
|
+
InspectionXpert XML - used to seed a not-yet-created state with real
|
|
2947
|
+
drawing positions. Throws BadRequest if the schema has no such XML +
|
|
2948
|
+
drawing to derive it from.
|
|
2949
|
+
*/
|
|
2950
|
+
getSchemaCreatorXmlGeometry(schemaVersionId: string): Promise<SchemaCreatorXmlGeometryDto[]>;
|
|
2944
2951
|
/**
|
|
2945
2952
|
* Starts a full drawing AI parse: clears every element and locks the
|
|
2946
2953
|
schema for every viewer until it completes. If one is already in
|
|
2947
2954
|
progress, returns that instead of starting a second one.
|
|
2948
2955
|
*/
|
|
2949
|
-
requestSchemaCreatorDocumentParse(
|
|
2956
|
+
requestSchemaCreatorDocumentParse(schemaVersionId: string): Promise<SchemaCreatorStateDto>;
|
|
2950
2957
|
/**
|
|
2951
2958
|
* Stamps the creator state's balloons onto the schema's drawing PDF and
|
|
2952
2959
|
returns a temporary download link.
|
|
2953
2960
|
*/
|
|
2954
|
-
exportSchemaCreatorDrawing(
|
|
2961
|
+
exportSchemaCreatorDrawing(schemaVersionId: string): Promise<DownloadDto>;
|
|
2955
2962
|
/**
|
|
2956
2963
|
* Starts an async snip resolve; the result is delivered through the
|
|
2957
2964
|
SchemaCreatorSnipResolved SignalR notification.
|
|
2958
2965
|
* @param image (optional)
|
|
2959
2966
|
*/
|
|
2960
|
-
requestSchemaCreatorSnipParse(
|
|
2967
|
+
requestSchemaCreatorSnipParse(schemaVersionId: string, elementId: string, image: FileParameter | null | undefined): Promise<void>;
|
|
2961
2968
|
/**
|
|
2962
2969
|
* Renders the legacy-format image for one element's current snip.
|
|
2963
2970
|
Fire-and-forget from the client on every snip commit - the resulting
|
|
2964
2971
|
image isn't returned here, it's only ever read back once the schema
|
|
2965
2972
|
is released (SchemaCreatorLegacyMapper).
|
|
2966
2973
|
*/
|
|
2967
|
-
renderSchemaCreatorElementSnipImage(
|
|
2974
|
+
renderSchemaCreatorElementSnipImage(schemaVersionId: string, elementId: string, request: RenderSchemaCreatorElementSnipImageRequest): Promise<void>;
|
|
2968
2975
|
}
|
|
2969
2976
|
export declare class InspectSchemaCreatorClient extends AuthorizedApiBase implements IInspectSchemaCreatorClient {
|
|
2970
2977
|
private http;
|
|
@@ -2972,35 +2979,43 @@ export declare class InspectSchemaCreatorClient extends AuthorizedApiBase implem
|
|
|
2972
2979
|
constructor(configuration: IApiClientConfig, baseUrl?: string, http?: {
|
|
2973
2980
|
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
2974
2981
|
});
|
|
2975
|
-
getSchemaCreatorState(
|
|
2982
|
+
getSchemaCreatorState(schemaVersionId: string): Promise<SchemaCreatorStateDto>;
|
|
2976
2983
|
protected processGetSchemaCreatorState(response: Response): Promise<SchemaCreatorStateDto>;
|
|
2977
2984
|
/**
|
|
2978
2985
|
* Creates the initial creator state for a schema version. Returns 409 if
|
|
2979
2986
|
state already exists; the caller should re-fetch it instead of writing.
|
|
2980
2987
|
*/
|
|
2981
|
-
createSchemaCreatorState(
|
|
2988
|
+
createSchemaCreatorState(schemaVersionId: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto>;
|
|
2982
2989
|
protected processCreateSchemaCreatorState(response: Response): Promise<SchemaCreatorStateDto>;
|
|
2983
|
-
updateSchemaCreatorState(
|
|
2990
|
+
updateSchemaCreatorState(schemaVersionId: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto>;
|
|
2984
2991
|
protected processUpdateSchemaCreatorState(response: Response): Promise<SchemaCreatorStateDto>;
|
|
2992
|
+
/**
|
|
2993
|
+
* Geometry only (no values), derived from the schema's retained
|
|
2994
|
+
InspectionXpert XML - used to seed a not-yet-created state with real
|
|
2995
|
+
drawing positions. Throws BadRequest if the schema has no such XML +
|
|
2996
|
+
drawing to derive it from.
|
|
2997
|
+
*/
|
|
2998
|
+
getSchemaCreatorXmlGeometry(schemaVersionId: string): Promise<SchemaCreatorXmlGeometryDto[]>;
|
|
2999
|
+
protected processGetSchemaCreatorXmlGeometry(response: Response): Promise<SchemaCreatorXmlGeometryDto[]>;
|
|
2985
3000
|
/**
|
|
2986
3001
|
* Starts a full drawing AI parse: clears every element and locks the
|
|
2987
3002
|
schema for every viewer until it completes. If one is already in
|
|
2988
3003
|
progress, returns that instead of starting a second one.
|
|
2989
3004
|
*/
|
|
2990
|
-
requestSchemaCreatorDocumentParse(
|
|
3005
|
+
requestSchemaCreatorDocumentParse(schemaVersionId: string): Promise<SchemaCreatorStateDto>;
|
|
2991
3006
|
protected processRequestSchemaCreatorDocumentParse(response: Response): Promise<SchemaCreatorStateDto>;
|
|
2992
3007
|
/**
|
|
2993
3008
|
* Stamps the creator state's balloons onto the schema's drawing PDF and
|
|
2994
3009
|
returns a temporary download link.
|
|
2995
3010
|
*/
|
|
2996
|
-
exportSchemaCreatorDrawing(
|
|
3011
|
+
exportSchemaCreatorDrawing(schemaVersionId: string): Promise<DownloadDto>;
|
|
2997
3012
|
protected processExportSchemaCreatorDrawing(response: Response): Promise<DownloadDto>;
|
|
2998
3013
|
/**
|
|
2999
3014
|
* Starts an async snip resolve; the result is delivered through the
|
|
3000
3015
|
SchemaCreatorSnipResolved SignalR notification.
|
|
3001
3016
|
* @param image (optional)
|
|
3002
3017
|
*/
|
|
3003
|
-
requestSchemaCreatorSnipParse(
|
|
3018
|
+
requestSchemaCreatorSnipParse(schemaVersionId: string, elementId: string, image: FileParameter | null | undefined): Promise<void>;
|
|
3004
3019
|
protected processRequestSchemaCreatorSnipParse(response: Response): Promise<void>;
|
|
3005
3020
|
/**
|
|
3006
3021
|
* Renders the legacy-format image for one element's current snip.
|
|
@@ -3008,7 +3023,7 @@ export declare class InspectSchemaCreatorClient extends AuthorizedApiBase implem
|
|
|
3008
3023
|
image isn't returned here, it's only ever read back once the schema
|
|
3009
3024
|
is released (SchemaCreatorLegacyMapper).
|
|
3010
3025
|
*/
|
|
3011
|
-
renderSchemaCreatorElementSnipImage(
|
|
3026
|
+
renderSchemaCreatorElementSnipImage(schemaVersionId: string, elementId: string, request: RenderSchemaCreatorElementSnipImageRequest): Promise<void>;
|
|
3012
3027
|
protected processRenderSchemaCreatorElementSnipImage(response: Response): Promise<void>;
|
|
3013
3028
|
}
|
|
3014
3029
|
export interface IMeasurementFormSchemasAdminClient {
|
|
@@ -9476,6 +9491,12 @@ export interface SchemaCreatorDocumentParseStatusDto {
|
|
|
9476
9491
|
inProgress: boolean;
|
|
9477
9492
|
attempt?: SchemaCreatorParseAttemptDto | null;
|
|
9478
9493
|
}
|
|
9494
|
+
export interface SchemaCreatorXmlGeometryDto {
|
|
9495
|
+
xmlAttributeId: number;
|
|
9496
|
+
snipRect: SchemaCreatorRectDto;
|
|
9497
|
+
balloon: SchemaCreatorPointDto;
|
|
9498
|
+
pageIndex: number;
|
|
9499
|
+
}
|
|
9479
9500
|
export interface RenderSchemaCreatorElementSnipImageRequest {
|
|
9480
9501
|
pageIndex: number;
|
|
9481
9502
|
snip: SchemaCreatorSnipDto;
|
|
@@ -9520,6 +9541,7 @@ export interface MeasurementFormGroupedElementDto {
|
|
|
9520
9541
|
id: string;
|
|
9521
9542
|
balloonId?: string | null;
|
|
9522
9543
|
reference: number;
|
|
9544
|
+
originalXmlId?: number | null;
|
|
9523
9545
|
imageUrl?: string | null;
|
|
9524
9546
|
thumbnailUrl?: string | null;
|
|
9525
9547
|
section?: string | null;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -24488,11 +24488,11 @@ export class InspectSchemaCreatorClient extends AuthorizedApiBase {
|
|
|
24488
24488
|
this.http = http ? http : window;
|
|
24489
24489
|
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
24490
24490
|
}
|
|
24491
|
-
getSchemaCreatorState(
|
|
24492
|
-
let url_ = this.baseUrl + "/measurementforms/schemas/{
|
|
24493
|
-
if (
|
|
24494
|
-
throw new globalThis.Error("The parameter '
|
|
24495
|
-
url_ = url_.replace("{
|
|
24491
|
+
getSchemaCreatorState(schemaVersionId) {
|
|
24492
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate";
|
|
24493
|
+
if (schemaVersionId === undefined || schemaVersionId === null)
|
|
24494
|
+
throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
|
|
24495
|
+
url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
|
|
24496
24496
|
url_ = url_.replace(/[?&]$/, "");
|
|
24497
24497
|
let options_ = {
|
|
24498
24498
|
method: "GET",
|
|
@@ -24531,11 +24531,11 @@ export class InspectSchemaCreatorClient extends AuthorizedApiBase {
|
|
|
24531
24531
|
* Creates the initial creator state for a schema version. Returns 409 if
|
|
24532
24532
|
state already exists; the caller should re-fetch it instead of writing.
|
|
24533
24533
|
*/
|
|
24534
|
-
createSchemaCreatorState(
|
|
24535
|
-
let url_ = this.baseUrl + "/measurementforms/schemas/{
|
|
24536
|
-
if (
|
|
24537
|
-
throw new globalThis.Error("The parameter '
|
|
24538
|
-
url_ = url_.replace("{
|
|
24534
|
+
createSchemaCreatorState(schemaVersionId, state) {
|
|
24535
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate";
|
|
24536
|
+
if (schemaVersionId === undefined || schemaVersionId === null)
|
|
24537
|
+
throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
|
|
24538
|
+
url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
|
|
24539
24539
|
url_ = url_.replace(/[?&]$/, "");
|
|
24540
24540
|
const content_ = JSON.stringify(state);
|
|
24541
24541
|
let options_ = {
|
|
@@ -24580,11 +24580,11 @@ export class InspectSchemaCreatorClient extends AuthorizedApiBase {
|
|
|
24580
24580
|
}
|
|
24581
24581
|
return Promise.resolve(null);
|
|
24582
24582
|
}
|
|
24583
|
-
updateSchemaCreatorState(
|
|
24584
|
-
let url_ = this.baseUrl + "/measurementforms/schemas/{
|
|
24585
|
-
if (
|
|
24586
|
-
throw new globalThis.Error("The parameter '
|
|
24587
|
-
url_ = url_.replace("{
|
|
24583
|
+
updateSchemaCreatorState(schemaVersionId, state) {
|
|
24584
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate";
|
|
24585
|
+
if (schemaVersionId === undefined || schemaVersionId === null)
|
|
24586
|
+
throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
|
|
24587
|
+
url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
|
|
24588
24588
|
url_ = url_.replace(/[?&]$/, "");
|
|
24589
24589
|
const content_ = JSON.stringify(state);
|
|
24590
24590
|
let options_ = {
|
|
@@ -24622,16 +24622,61 @@ export class InspectSchemaCreatorClient extends AuthorizedApiBase {
|
|
|
24622
24622
|
}
|
|
24623
24623
|
return Promise.resolve(null);
|
|
24624
24624
|
}
|
|
24625
|
+
/**
|
|
24626
|
+
* Geometry only (no values), derived from the schema's retained
|
|
24627
|
+
InspectionXpert XML - used to seed a not-yet-created state with real
|
|
24628
|
+
drawing positions. Throws BadRequest if the schema has no such XML +
|
|
24629
|
+
drawing to derive it from.
|
|
24630
|
+
*/
|
|
24631
|
+
getSchemaCreatorXmlGeometry(schemaVersionId) {
|
|
24632
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate/xml-geometry";
|
|
24633
|
+
if (schemaVersionId === undefined || schemaVersionId === null)
|
|
24634
|
+
throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
|
|
24635
|
+
url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
|
|
24636
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
24637
|
+
let options_ = {
|
|
24638
|
+
method: "GET",
|
|
24639
|
+
headers: {
|
|
24640
|
+
"Accept": "application/json"
|
|
24641
|
+
}
|
|
24642
|
+
};
|
|
24643
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24644
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
24645
|
+
}).then((_response) => {
|
|
24646
|
+
return this.processGetSchemaCreatorXmlGeometry(_response);
|
|
24647
|
+
});
|
|
24648
|
+
}
|
|
24649
|
+
processGetSchemaCreatorXmlGeometry(response) {
|
|
24650
|
+
const status = response.status;
|
|
24651
|
+
let _headers = {};
|
|
24652
|
+
if (response.headers && response.headers.forEach) {
|
|
24653
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
24654
|
+
}
|
|
24655
|
+
;
|
|
24656
|
+
if (status === 200) {
|
|
24657
|
+
return response.text().then((_responseText) => {
|
|
24658
|
+
let result200 = null;
|
|
24659
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
24660
|
+
return result200;
|
|
24661
|
+
});
|
|
24662
|
+
}
|
|
24663
|
+
else if (status !== 200 && status !== 204) {
|
|
24664
|
+
return response.text().then((_responseText) => {
|
|
24665
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24666
|
+
});
|
|
24667
|
+
}
|
|
24668
|
+
return Promise.resolve(null);
|
|
24669
|
+
}
|
|
24625
24670
|
/**
|
|
24626
24671
|
* Starts a full drawing AI parse: clears every element and locks the
|
|
24627
24672
|
schema for every viewer until it completes. If one is already in
|
|
24628
24673
|
progress, returns that instead of starting a second one.
|
|
24629
24674
|
*/
|
|
24630
|
-
requestSchemaCreatorDocumentParse(
|
|
24631
|
-
let url_ = this.baseUrl + "/measurementforms/schemas/{
|
|
24632
|
-
if (
|
|
24633
|
-
throw new globalThis.Error("The parameter '
|
|
24634
|
-
url_ = url_.replace("{
|
|
24675
|
+
requestSchemaCreatorDocumentParse(schemaVersionId) {
|
|
24676
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate/parse-document";
|
|
24677
|
+
if (schemaVersionId === undefined || schemaVersionId === null)
|
|
24678
|
+
throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
|
|
24679
|
+
url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
|
|
24635
24680
|
url_ = url_.replace(/[?&]$/, "");
|
|
24636
24681
|
let options_ = {
|
|
24637
24682
|
method: "POST",
|
|
@@ -24670,11 +24715,11 @@ export class InspectSchemaCreatorClient extends AuthorizedApiBase {
|
|
|
24670
24715
|
* Stamps the creator state's balloons onto the schema's drawing PDF and
|
|
24671
24716
|
returns a temporary download link.
|
|
24672
24717
|
*/
|
|
24673
|
-
exportSchemaCreatorDrawing(
|
|
24674
|
-
let url_ = this.baseUrl + "/measurementforms/schemas/{
|
|
24675
|
-
if (
|
|
24676
|
-
throw new globalThis.Error("The parameter '
|
|
24677
|
-
url_ = url_.replace("{
|
|
24718
|
+
exportSchemaCreatorDrawing(schemaVersionId) {
|
|
24719
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate/download";
|
|
24720
|
+
if (schemaVersionId === undefined || schemaVersionId === null)
|
|
24721
|
+
throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
|
|
24722
|
+
url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
|
|
24678
24723
|
url_ = url_.replace(/[?&]$/, "");
|
|
24679
24724
|
let options_ = {
|
|
24680
24725
|
method: "POST",
|
|
@@ -24714,11 +24759,11 @@ export class InspectSchemaCreatorClient extends AuthorizedApiBase {
|
|
|
24714
24759
|
SchemaCreatorSnipResolved SignalR notification.
|
|
24715
24760
|
* @param image (optional)
|
|
24716
24761
|
*/
|
|
24717
|
-
requestSchemaCreatorSnipParse(
|
|
24718
|
-
let url_ = this.baseUrl + "/measurementforms/schemas/{
|
|
24719
|
-
if (
|
|
24720
|
-
throw new globalThis.Error("The parameter '
|
|
24721
|
-
url_ = url_.replace("{
|
|
24762
|
+
requestSchemaCreatorSnipParse(schemaVersionId, elementId, image) {
|
|
24763
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate/elements/{elementId}/parse-snip";
|
|
24764
|
+
if (schemaVersionId === undefined || schemaVersionId === null)
|
|
24765
|
+
throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
|
|
24766
|
+
url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
|
|
24722
24767
|
if (elementId === undefined || elementId === null)
|
|
24723
24768
|
throw new globalThis.Error("The parameter 'elementId' must be defined.");
|
|
24724
24769
|
url_ = url_.replace("{elementId}", encodeURIComponent("" + elementId));
|
|
@@ -24762,11 +24807,11 @@ export class InspectSchemaCreatorClient extends AuthorizedApiBase {
|
|
|
24762
24807
|
image isn't returned here, it's only ever read back once the schema
|
|
24763
24808
|
is released (SchemaCreatorLegacyMapper).
|
|
24764
24809
|
*/
|
|
24765
|
-
renderSchemaCreatorElementSnipImage(
|
|
24766
|
-
let url_ = this.baseUrl + "/measurementforms/schemas/{
|
|
24767
|
-
if (
|
|
24768
|
-
throw new globalThis.Error("The parameter '
|
|
24769
|
-
url_ = url_.replace("{
|
|
24810
|
+
renderSchemaCreatorElementSnipImage(schemaVersionId, elementId, request) {
|
|
24811
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate/elements/{elementId}/snip-image";
|
|
24812
|
+
if (schemaVersionId === undefined || schemaVersionId === null)
|
|
24813
|
+
throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
|
|
24814
|
+
url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
|
|
24770
24815
|
if (elementId === undefined || elementId === null)
|
|
24771
24816
|
throw new globalThis.Error("The parameter 'elementId' must be defined.");
|
|
24772
24817
|
url_ = url_.replace("{elementId}", encodeURIComponent("" + elementId));
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -26174,35 +26174,43 @@ export class InspectMatchSpecificationsClient extends AuthorizedApiBase implemen
|
|
|
26174
26174
|
|
|
26175
26175
|
export interface IInspectSchemaCreatorClient {
|
|
26176
26176
|
|
|
26177
|
-
getSchemaCreatorState(
|
|
26177
|
+
getSchemaCreatorState(schemaVersionId: string): Promise<SchemaCreatorStateDto>;
|
|
26178
26178
|
|
|
26179
26179
|
/**
|
|
26180
26180
|
* Creates the initial creator state for a schema version. Returns 409 if
|
|
26181
26181
|
state already exists; the caller should re-fetch it instead of writing.
|
|
26182
26182
|
*/
|
|
26183
|
-
createSchemaCreatorState(
|
|
26183
|
+
createSchemaCreatorState(schemaVersionId: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto>;
|
|
26184
26184
|
|
|
26185
|
-
updateSchemaCreatorState(
|
|
26185
|
+
updateSchemaCreatorState(schemaVersionId: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto>;
|
|
26186
|
+
|
|
26187
|
+
/**
|
|
26188
|
+
* Geometry only (no values), derived from the schema's retained
|
|
26189
|
+
InspectionXpert XML - used to seed a not-yet-created state with real
|
|
26190
|
+
drawing positions. Throws BadRequest if the schema has no such XML +
|
|
26191
|
+
drawing to derive it from.
|
|
26192
|
+
*/
|
|
26193
|
+
getSchemaCreatorXmlGeometry(schemaVersionId: string): Promise<SchemaCreatorXmlGeometryDto[]>;
|
|
26186
26194
|
|
|
26187
26195
|
/**
|
|
26188
26196
|
* Starts a full drawing AI parse: clears every element and locks the
|
|
26189
26197
|
schema for every viewer until it completes. If one is already in
|
|
26190
26198
|
progress, returns that instead of starting a second one.
|
|
26191
26199
|
*/
|
|
26192
|
-
requestSchemaCreatorDocumentParse(
|
|
26200
|
+
requestSchemaCreatorDocumentParse(schemaVersionId: string): Promise<SchemaCreatorStateDto>;
|
|
26193
26201
|
|
|
26194
26202
|
/**
|
|
26195
26203
|
* Stamps the creator state's balloons onto the schema's drawing PDF and
|
|
26196
26204
|
returns a temporary download link.
|
|
26197
26205
|
*/
|
|
26198
|
-
exportSchemaCreatorDrawing(
|
|
26206
|
+
exportSchemaCreatorDrawing(schemaVersionId: string): Promise<DownloadDto>;
|
|
26199
26207
|
|
|
26200
26208
|
/**
|
|
26201
26209
|
* Starts an async snip resolve; the result is delivered through the
|
|
26202
26210
|
SchemaCreatorSnipResolved SignalR notification.
|
|
26203
26211
|
* @param image (optional)
|
|
26204
26212
|
*/
|
|
26205
|
-
requestSchemaCreatorSnipParse(
|
|
26213
|
+
requestSchemaCreatorSnipParse(schemaVersionId: string, elementId: string, image: FileParameter | null | undefined): Promise<void>;
|
|
26206
26214
|
|
|
26207
26215
|
/**
|
|
26208
26216
|
* Renders the legacy-format image for one element's current snip.
|
|
@@ -26210,7 +26218,7 @@ export interface IInspectSchemaCreatorClient {
|
|
|
26210
26218
|
image isn't returned here, it's only ever read back once the schema
|
|
26211
26219
|
is released (SchemaCreatorLegacyMapper).
|
|
26212
26220
|
*/
|
|
26213
|
-
renderSchemaCreatorElementSnipImage(
|
|
26221
|
+
renderSchemaCreatorElementSnipImage(schemaVersionId: string, elementId: string, request: RenderSchemaCreatorElementSnipImageRequest): Promise<void>;
|
|
26214
26222
|
}
|
|
26215
26223
|
|
|
26216
26224
|
export class InspectSchemaCreatorClient extends AuthorizedApiBase implements IInspectSchemaCreatorClient {
|
|
@@ -26223,11 +26231,11 @@ export class InspectSchemaCreatorClient extends AuthorizedApiBase implements IIn
|
|
|
26223
26231
|
this.baseUrl = baseUrl ?? "";
|
|
26224
26232
|
}
|
|
26225
26233
|
|
|
26226
|
-
getSchemaCreatorState(
|
|
26227
|
-
let url_ = this.baseUrl + "/measurementforms/schemas/{
|
|
26228
|
-
if (
|
|
26229
|
-
throw new globalThis.Error("The parameter '
|
|
26230
|
-
url_ = url_.replace("{
|
|
26234
|
+
getSchemaCreatorState(schemaVersionId: string): Promise<SchemaCreatorStateDto> {
|
|
26235
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate";
|
|
26236
|
+
if (schemaVersionId === undefined || schemaVersionId === null)
|
|
26237
|
+
throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
|
|
26238
|
+
url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
|
|
26231
26239
|
url_ = url_.replace(/[?&]$/, "");
|
|
26232
26240
|
|
|
26233
26241
|
let options_: RequestInit = {
|
|
@@ -26265,11 +26273,11 @@ export class InspectSchemaCreatorClient extends AuthorizedApiBase implements IIn
|
|
|
26265
26273
|
* Creates the initial creator state for a schema version. Returns 409 if
|
|
26266
26274
|
state already exists; the caller should re-fetch it instead of writing.
|
|
26267
26275
|
*/
|
|
26268
|
-
createSchemaCreatorState(
|
|
26269
|
-
let url_ = this.baseUrl + "/measurementforms/schemas/{
|
|
26270
|
-
if (
|
|
26271
|
-
throw new globalThis.Error("The parameter '
|
|
26272
|
-
url_ = url_.replace("{
|
|
26276
|
+
createSchemaCreatorState(schemaVersionId: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto> {
|
|
26277
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate";
|
|
26278
|
+
if (schemaVersionId === undefined || schemaVersionId === null)
|
|
26279
|
+
throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
|
|
26280
|
+
url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
|
|
26273
26281
|
url_ = url_.replace(/[?&]$/, "");
|
|
26274
26282
|
|
|
26275
26283
|
const content_ = JSON.stringify(state);
|
|
@@ -26313,11 +26321,11 @@ export class InspectSchemaCreatorClient extends AuthorizedApiBase implements IIn
|
|
|
26313
26321
|
return Promise.resolve<SchemaCreatorStateDto>(null as any);
|
|
26314
26322
|
}
|
|
26315
26323
|
|
|
26316
|
-
updateSchemaCreatorState(
|
|
26317
|
-
let url_ = this.baseUrl + "/measurementforms/schemas/{
|
|
26318
|
-
if (
|
|
26319
|
-
throw new globalThis.Error("The parameter '
|
|
26320
|
-
url_ = url_.replace("{
|
|
26324
|
+
updateSchemaCreatorState(schemaVersionId: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto> {
|
|
26325
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate";
|
|
26326
|
+
if (schemaVersionId === undefined || schemaVersionId === null)
|
|
26327
|
+
throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
|
|
26328
|
+
url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
|
|
26321
26329
|
url_ = url_.replace(/[?&]$/, "");
|
|
26322
26330
|
|
|
26323
26331
|
const content_ = JSON.stringify(state);
|
|
@@ -26355,16 +26363,60 @@ export class InspectSchemaCreatorClient extends AuthorizedApiBase implements IIn
|
|
|
26355
26363
|
return Promise.resolve<SchemaCreatorStateDto>(null as any);
|
|
26356
26364
|
}
|
|
26357
26365
|
|
|
26366
|
+
/**
|
|
26367
|
+
* Geometry only (no values), derived from the schema's retained
|
|
26368
|
+
InspectionXpert XML - used to seed a not-yet-created state with real
|
|
26369
|
+
drawing positions. Throws BadRequest if the schema has no such XML +
|
|
26370
|
+
drawing to derive it from.
|
|
26371
|
+
*/
|
|
26372
|
+
getSchemaCreatorXmlGeometry(schemaVersionId: string): Promise<SchemaCreatorXmlGeometryDto[]> {
|
|
26373
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate/xml-geometry";
|
|
26374
|
+
if (schemaVersionId === undefined || schemaVersionId === null)
|
|
26375
|
+
throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
|
|
26376
|
+
url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
|
|
26377
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
26378
|
+
|
|
26379
|
+
let options_: RequestInit = {
|
|
26380
|
+
method: "GET",
|
|
26381
|
+
headers: {
|
|
26382
|
+
"Accept": "application/json"
|
|
26383
|
+
}
|
|
26384
|
+
};
|
|
26385
|
+
|
|
26386
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
26387
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
26388
|
+
}).then((_response: Response) => {
|
|
26389
|
+
return this.processGetSchemaCreatorXmlGeometry(_response);
|
|
26390
|
+
});
|
|
26391
|
+
}
|
|
26392
|
+
|
|
26393
|
+
protected processGetSchemaCreatorXmlGeometry(response: Response): Promise<SchemaCreatorXmlGeometryDto[]> {
|
|
26394
|
+
const status = response.status;
|
|
26395
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
26396
|
+
if (status === 200) {
|
|
26397
|
+
return response.text().then((_responseText) => {
|
|
26398
|
+
let result200: any = null;
|
|
26399
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as SchemaCreatorXmlGeometryDto[];
|
|
26400
|
+
return result200;
|
|
26401
|
+
});
|
|
26402
|
+
} else if (status !== 200 && status !== 204) {
|
|
26403
|
+
return response.text().then((_responseText) => {
|
|
26404
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
26405
|
+
});
|
|
26406
|
+
}
|
|
26407
|
+
return Promise.resolve<SchemaCreatorXmlGeometryDto[]>(null as any);
|
|
26408
|
+
}
|
|
26409
|
+
|
|
26358
26410
|
/**
|
|
26359
26411
|
* Starts a full drawing AI parse: clears every element and locks the
|
|
26360
26412
|
schema for every viewer until it completes. If one is already in
|
|
26361
26413
|
progress, returns that instead of starting a second one.
|
|
26362
26414
|
*/
|
|
26363
|
-
requestSchemaCreatorDocumentParse(
|
|
26364
|
-
let url_ = this.baseUrl + "/measurementforms/schemas/{
|
|
26365
|
-
if (
|
|
26366
|
-
throw new globalThis.Error("The parameter '
|
|
26367
|
-
url_ = url_.replace("{
|
|
26415
|
+
requestSchemaCreatorDocumentParse(schemaVersionId: string): Promise<SchemaCreatorStateDto> {
|
|
26416
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate/parse-document";
|
|
26417
|
+
if (schemaVersionId === undefined || schemaVersionId === null)
|
|
26418
|
+
throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
|
|
26419
|
+
url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
|
|
26368
26420
|
url_ = url_.replace(/[?&]$/, "");
|
|
26369
26421
|
|
|
26370
26422
|
let options_: RequestInit = {
|
|
@@ -26402,11 +26454,11 @@ export class InspectSchemaCreatorClient extends AuthorizedApiBase implements IIn
|
|
|
26402
26454
|
* Stamps the creator state's balloons onto the schema's drawing PDF and
|
|
26403
26455
|
returns a temporary download link.
|
|
26404
26456
|
*/
|
|
26405
|
-
exportSchemaCreatorDrawing(
|
|
26406
|
-
let url_ = this.baseUrl + "/measurementforms/schemas/{
|
|
26407
|
-
if (
|
|
26408
|
-
throw new globalThis.Error("The parameter '
|
|
26409
|
-
url_ = url_.replace("{
|
|
26457
|
+
exportSchemaCreatorDrawing(schemaVersionId: string): Promise<DownloadDto> {
|
|
26458
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate/download";
|
|
26459
|
+
if (schemaVersionId === undefined || schemaVersionId === null)
|
|
26460
|
+
throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
|
|
26461
|
+
url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
|
|
26410
26462
|
url_ = url_.replace(/[?&]$/, "");
|
|
26411
26463
|
|
|
26412
26464
|
let options_: RequestInit = {
|
|
@@ -26445,11 +26497,11 @@ export class InspectSchemaCreatorClient extends AuthorizedApiBase implements IIn
|
|
|
26445
26497
|
SchemaCreatorSnipResolved SignalR notification.
|
|
26446
26498
|
* @param image (optional)
|
|
26447
26499
|
*/
|
|
26448
|
-
requestSchemaCreatorSnipParse(
|
|
26449
|
-
let url_ = this.baseUrl + "/measurementforms/schemas/{
|
|
26450
|
-
if (
|
|
26451
|
-
throw new globalThis.Error("The parameter '
|
|
26452
|
-
url_ = url_.replace("{
|
|
26500
|
+
requestSchemaCreatorSnipParse(schemaVersionId: string, elementId: string, image: FileParameter | null | undefined): Promise<void> {
|
|
26501
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate/elements/{elementId}/parse-snip";
|
|
26502
|
+
if (schemaVersionId === undefined || schemaVersionId === null)
|
|
26503
|
+
throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
|
|
26504
|
+
url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
|
|
26453
26505
|
if (elementId === undefined || elementId === null)
|
|
26454
26506
|
throw new globalThis.Error("The parameter 'elementId' must be defined.");
|
|
26455
26507
|
url_ = url_.replace("{elementId}", encodeURIComponent("" + elementId));
|
|
@@ -26494,11 +26546,11 @@ export class InspectSchemaCreatorClient extends AuthorizedApiBase implements IIn
|
|
|
26494
26546
|
image isn't returned here, it's only ever read back once the schema
|
|
26495
26547
|
is released (SchemaCreatorLegacyMapper).
|
|
26496
26548
|
*/
|
|
26497
|
-
renderSchemaCreatorElementSnipImage(
|
|
26498
|
-
let url_ = this.baseUrl + "/measurementforms/schemas/{
|
|
26499
|
-
if (
|
|
26500
|
-
throw new globalThis.Error("The parameter '
|
|
26501
|
-
url_ = url_.replace("{
|
|
26549
|
+
renderSchemaCreatorElementSnipImage(schemaVersionId: string, elementId: string, request: RenderSchemaCreatorElementSnipImageRequest): Promise<void> {
|
|
26550
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate/elements/{elementId}/snip-image";
|
|
26551
|
+
if (schemaVersionId === undefined || schemaVersionId === null)
|
|
26552
|
+
throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
|
|
26553
|
+
url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
|
|
26502
26554
|
if (elementId === undefined || elementId === null)
|
|
26503
26555
|
throw new globalThis.Error("The parameter 'elementId' must be defined.");
|
|
26504
26556
|
url_ = url_.replace("{elementId}", encodeURIComponent("" + elementId));
|
|
@@ -39118,6 +39170,13 @@ export interface SchemaCreatorDocumentParseStatusDto {
|
|
|
39118
39170
|
attempt?: SchemaCreatorParseAttemptDto | null;
|
|
39119
39171
|
}
|
|
39120
39172
|
|
|
39173
|
+
export interface SchemaCreatorXmlGeometryDto {
|
|
39174
|
+
xmlAttributeId: number;
|
|
39175
|
+
snipRect: SchemaCreatorRectDto;
|
|
39176
|
+
balloon: SchemaCreatorPointDto;
|
|
39177
|
+
pageIndex: number;
|
|
39178
|
+
}
|
|
39179
|
+
|
|
39121
39180
|
export interface RenderSchemaCreatorElementSnipImageRequest {
|
|
39122
39181
|
pageIndex: number;
|
|
39123
39182
|
snip: SchemaCreatorSnipDto;
|
|
@@ -39168,6 +39227,7 @@ export interface MeasurementFormGroupedElementDto {
|
|
|
39168
39227
|
id: string;
|
|
39169
39228
|
balloonId?: string | null;
|
|
39170
39229
|
reference: number;
|
|
39230
|
+
originalXmlId?: number | null;
|
|
39171
39231
|
imageUrl?: string | null;
|
|
39172
39232
|
thumbnailUrl?: string | null;
|
|
39173
39233
|
section?: string | null;
|