@ignos/api-client 20261026.324.1 → 20261027.326.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 +25 -2
- package/lib/ignosportal-api.js +46 -1
- package/package.json +1 -1
- package/src/ignosportal-api.ts +69 -2
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -2999,6 +2999,10 @@ export interface IInspectSchemaCreatorClient {
|
|
|
2999
2999
|
drawing to derive it from.
|
|
3000
3000
|
*/
|
|
3001
3001
|
getSchemaCreatorXmlGeometry(schemaVersionId: string): Promise<SchemaCreatorXmlGeometryDto[]>;
|
|
3002
|
+
/**
|
|
3003
|
+
* Replaces the page grids; the response is the whole state with recomputed sheet zones.
|
|
3004
|
+
*/
|
|
3005
|
+
saveSchemaCreatorGrids(schemaVersionId: string, grids: SchemaCreatorPageGridDto[]): Promise<SchemaCreatorStateDto>;
|
|
3002
3006
|
/**
|
|
3003
3007
|
* Starts a full drawing AI parse: clears every element and locks the
|
|
3004
3008
|
schema for every viewer until it completes. If one is already in
|
|
@@ -3006,7 +3010,7 @@ export interface IInspectSchemaCreatorClient {
|
|
|
3006
3010
|
*/
|
|
3007
3011
|
requestSchemaCreatorDocumentParse(schemaVersionId: string): Promise<SchemaCreatorStateDto>;
|
|
3008
3012
|
/**
|
|
3009
|
-
* Stamps the creator state's balloons onto the schema's drawing PDF and
|
|
3013
|
+
* Stamps the creator state's grids and balloons onto the schema's drawing PDF and
|
|
3010
3014
|
returns a temporary download link.
|
|
3011
3015
|
*/
|
|
3012
3016
|
exportSchemaCreatorDrawing(schemaVersionId: string): Promise<DownloadDto>;
|
|
@@ -3045,6 +3049,11 @@ export declare class InspectSchemaCreatorClient extends AuthorizedApiBase implem
|
|
|
3045
3049
|
*/
|
|
3046
3050
|
getSchemaCreatorXmlGeometry(schemaVersionId: string): Promise<SchemaCreatorXmlGeometryDto[]>;
|
|
3047
3051
|
protected processGetSchemaCreatorXmlGeometry(response: Response): Promise<SchemaCreatorXmlGeometryDto[]>;
|
|
3052
|
+
/**
|
|
3053
|
+
* Replaces the page grids; the response is the whole state with recomputed sheet zones.
|
|
3054
|
+
*/
|
|
3055
|
+
saveSchemaCreatorGrids(schemaVersionId: string, grids: SchemaCreatorPageGridDto[]): Promise<SchemaCreatorStateDto>;
|
|
3056
|
+
protected processSaveSchemaCreatorGrids(response: Response): Promise<SchemaCreatorStateDto>;
|
|
3048
3057
|
/**
|
|
3049
3058
|
* Starts a full drawing AI parse: clears every element and locks the
|
|
3050
3059
|
schema for every viewer until it completes. If one is already in
|
|
@@ -3053,7 +3062,7 @@ export declare class InspectSchemaCreatorClient extends AuthorizedApiBase implem
|
|
|
3053
3062
|
requestSchemaCreatorDocumentParse(schemaVersionId: string): Promise<SchemaCreatorStateDto>;
|
|
3054
3063
|
protected processRequestSchemaCreatorDocumentParse(response: Response): Promise<SchemaCreatorStateDto>;
|
|
3055
3064
|
/**
|
|
3056
|
-
* Stamps the creator state's balloons onto the schema's drawing PDF and
|
|
3065
|
+
* Stamps the creator state's grids and balloons onto the schema's drawing PDF and
|
|
3057
3066
|
returns a temporary download link.
|
|
3058
3067
|
*/
|
|
3059
3068
|
exportSchemaCreatorDrawing(schemaVersionId: string): Promise<DownloadDto>;
|
|
@@ -9577,6 +9586,7 @@ export interface ImaSpecificationLiteDto {
|
|
|
9577
9586
|
export interface SchemaCreatorStateDto {
|
|
9578
9587
|
settings: SchemaCreatorSettingsDto;
|
|
9579
9588
|
elements: SchemaCreatorElementDto[];
|
|
9589
|
+
grids?: SchemaCreatorPageGridDto[];
|
|
9580
9590
|
documentParseStatus?: SchemaCreatorDocumentParseStatusDto | null;
|
|
9581
9591
|
isAutoGenerated?: boolean;
|
|
9582
9592
|
createdBy?: SchemaCreatorAuditInfoDto | null;
|
|
@@ -9631,6 +9641,7 @@ export interface SchemaCreatorSizeDto {
|
|
|
9631
9641
|
}
|
|
9632
9642
|
export interface SchemaCreatorElementValuesDto {
|
|
9633
9643
|
reference: number;
|
|
9644
|
+
sheetZone?: string | null;
|
|
9634
9645
|
group?: string | null;
|
|
9635
9646
|
unit?: UnitOfMeasureDto | null;
|
|
9636
9647
|
nominal?: number | null;
|
|
@@ -9664,6 +9675,18 @@ export interface SchemaCreatorAuditInfoDto {
|
|
|
9664
9675
|
userId: string;
|
|
9665
9676
|
userFullName?: string | null;
|
|
9666
9677
|
}
|
|
9678
|
+
export interface SchemaCreatorPageGridDto {
|
|
9679
|
+
pageIndex: number;
|
|
9680
|
+
rows: number;
|
|
9681
|
+
columns: number;
|
|
9682
|
+
startValue: number;
|
|
9683
|
+
order: SchemaCreatorGridOrderDto;
|
|
9684
|
+
fontSize: number;
|
|
9685
|
+
labelPlacement?: SchemaCreatorGridLabelPlacementDto;
|
|
9686
|
+
frame: SchemaCreatorRectDto;
|
|
9687
|
+
}
|
|
9688
|
+
export type SchemaCreatorGridOrderDto = "Ascending" | "Descending";
|
|
9689
|
+
export type SchemaCreatorGridLabelPlacementDto = "Inside" | "Outside";
|
|
9667
9690
|
export interface SchemaCreatorDocumentParseStatusDto {
|
|
9668
9691
|
inProgress: boolean;
|
|
9669
9692
|
attempt?: SchemaCreatorParseAttemptDto | null;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -25296,6 +25296,51 @@ export class InspectSchemaCreatorClient extends AuthorizedApiBase {
|
|
|
25296
25296
|
}
|
|
25297
25297
|
return Promise.resolve(null);
|
|
25298
25298
|
}
|
|
25299
|
+
/**
|
|
25300
|
+
* Replaces the page grids; the response is the whole state with recomputed sheet zones.
|
|
25301
|
+
*/
|
|
25302
|
+
saveSchemaCreatorGrids(schemaVersionId, grids) {
|
|
25303
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate/grids";
|
|
25304
|
+
if (schemaVersionId === undefined || schemaVersionId === null)
|
|
25305
|
+
throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
|
|
25306
|
+
url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
|
|
25307
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
25308
|
+
const content_ = JSON.stringify(grids);
|
|
25309
|
+
let options_ = {
|
|
25310
|
+
body: content_,
|
|
25311
|
+
method: "PUT",
|
|
25312
|
+
headers: {
|
|
25313
|
+
"Content-Type": "application/json",
|
|
25314
|
+
"Accept": "application/json"
|
|
25315
|
+
}
|
|
25316
|
+
};
|
|
25317
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
25318
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
25319
|
+
}).then((_response) => {
|
|
25320
|
+
return this.processSaveSchemaCreatorGrids(_response);
|
|
25321
|
+
});
|
|
25322
|
+
}
|
|
25323
|
+
processSaveSchemaCreatorGrids(response) {
|
|
25324
|
+
const status = response.status;
|
|
25325
|
+
let _headers = {};
|
|
25326
|
+
if (response.headers && response.headers.forEach) {
|
|
25327
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
25328
|
+
}
|
|
25329
|
+
;
|
|
25330
|
+
if (status === 200) {
|
|
25331
|
+
return response.text().then((_responseText) => {
|
|
25332
|
+
let result200 = null;
|
|
25333
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
25334
|
+
return result200;
|
|
25335
|
+
});
|
|
25336
|
+
}
|
|
25337
|
+
else if (status !== 200 && status !== 204) {
|
|
25338
|
+
return response.text().then((_responseText) => {
|
|
25339
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
25340
|
+
});
|
|
25341
|
+
}
|
|
25342
|
+
return Promise.resolve(null);
|
|
25343
|
+
}
|
|
25299
25344
|
/**
|
|
25300
25345
|
* Starts a full drawing AI parse: clears every element and locks the
|
|
25301
25346
|
schema for every viewer until it completes. If one is already in
|
|
@@ -25341,7 +25386,7 @@ export class InspectSchemaCreatorClient extends AuthorizedApiBase {
|
|
|
25341
25386
|
return Promise.resolve(null);
|
|
25342
25387
|
}
|
|
25343
25388
|
/**
|
|
25344
|
-
* Stamps the creator state's balloons onto the schema's drawing PDF and
|
|
25389
|
+
* Stamps the creator state's grids and balloons onto the schema's drawing PDF and
|
|
25345
25390
|
returns a temporary download link.
|
|
25346
25391
|
*/
|
|
25347
25392
|
exportSchemaCreatorDrawing(schemaVersionId) {
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -26676,6 +26676,11 @@ export interface IInspectSchemaCreatorClient {
|
|
|
26676
26676
|
*/
|
|
26677
26677
|
getSchemaCreatorXmlGeometry(schemaVersionId: string): Promise<SchemaCreatorXmlGeometryDto[]>;
|
|
26678
26678
|
|
|
26679
|
+
/**
|
|
26680
|
+
* Replaces the page grids; the response is the whole state with recomputed sheet zones.
|
|
26681
|
+
*/
|
|
26682
|
+
saveSchemaCreatorGrids(schemaVersionId: string, grids: SchemaCreatorPageGridDto[]): Promise<SchemaCreatorStateDto>;
|
|
26683
|
+
|
|
26679
26684
|
/**
|
|
26680
26685
|
* Starts a full drawing AI parse: clears every element and locks the
|
|
26681
26686
|
schema for every viewer until it completes. If one is already in
|
|
@@ -26684,7 +26689,7 @@ export interface IInspectSchemaCreatorClient {
|
|
|
26684
26689
|
requestSchemaCreatorDocumentParse(schemaVersionId: string): Promise<SchemaCreatorStateDto>;
|
|
26685
26690
|
|
|
26686
26691
|
/**
|
|
26687
|
-
* Stamps the creator state's balloons onto the schema's drawing PDF and
|
|
26692
|
+
* Stamps the creator state's grids and balloons onto the schema's drawing PDF and
|
|
26688
26693
|
returns a temporary download link.
|
|
26689
26694
|
*/
|
|
26690
26695
|
exportSchemaCreatorDrawing(schemaVersionId: string): Promise<DownloadDto>;
|
|
@@ -26887,6 +26892,51 @@ export class InspectSchemaCreatorClient extends AuthorizedApiBase implements IIn
|
|
|
26887
26892
|
return Promise.resolve<SchemaCreatorXmlGeometryDto[]>(null as any);
|
|
26888
26893
|
}
|
|
26889
26894
|
|
|
26895
|
+
/**
|
|
26896
|
+
* Replaces the page grids; the response is the whole state with recomputed sheet zones.
|
|
26897
|
+
*/
|
|
26898
|
+
saveSchemaCreatorGrids(schemaVersionId: string, grids: SchemaCreatorPageGridDto[]): Promise<SchemaCreatorStateDto> {
|
|
26899
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate/grids";
|
|
26900
|
+
if (schemaVersionId === undefined || schemaVersionId === null)
|
|
26901
|
+
throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
|
|
26902
|
+
url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
|
|
26903
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
26904
|
+
|
|
26905
|
+
const content_ = JSON.stringify(grids);
|
|
26906
|
+
|
|
26907
|
+
let options_: RequestInit = {
|
|
26908
|
+
body: content_,
|
|
26909
|
+
method: "PUT",
|
|
26910
|
+
headers: {
|
|
26911
|
+
"Content-Type": "application/json",
|
|
26912
|
+
"Accept": "application/json"
|
|
26913
|
+
}
|
|
26914
|
+
};
|
|
26915
|
+
|
|
26916
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
26917
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
26918
|
+
}).then((_response: Response) => {
|
|
26919
|
+
return this.processSaveSchemaCreatorGrids(_response);
|
|
26920
|
+
});
|
|
26921
|
+
}
|
|
26922
|
+
|
|
26923
|
+
protected processSaveSchemaCreatorGrids(response: Response): Promise<SchemaCreatorStateDto> {
|
|
26924
|
+
const status = response.status;
|
|
26925
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
26926
|
+
if (status === 200) {
|
|
26927
|
+
return response.text().then((_responseText) => {
|
|
26928
|
+
let result200: any = null;
|
|
26929
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as SchemaCreatorStateDto;
|
|
26930
|
+
return result200;
|
|
26931
|
+
});
|
|
26932
|
+
} else if (status !== 200 && status !== 204) {
|
|
26933
|
+
return response.text().then((_responseText) => {
|
|
26934
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
26935
|
+
});
|
|
26936
|
+
}
|
|
26937
|
+
return Promise.resolve<SchemaCreatorStateDto>(null as any);
|
|
26938
|
+
}
|
|
26939
|
+
|
|
26890
26940
|
/**
|
|
26891
26941
|
* Starts a full drawing AI parse: clears every element and locks the
|
|
26892
26942
|
schema for every viewer until it completes. If one is already in
|
|
@@ -26931,7 +26981,7 @@ export class InspectSchemaCreatorClient extends AuthorizedApiBase implements IIn
|
|
|
26931
26981
|
}
|
|
26932
26982
|
|
|
26933
26983
|
/**
|
|
26934
|
-
* Stamps the creator state's balloons onto the schema's drawing PDF and
|
|
26984
|
+
* Stamps the creator state's grids and balloons onto the schema's drawing PDF and
|
|
26935
26985
|
returns a temporary download link.
|
|
26936
26986
|
*/
|
|
26937
26987
|
exportSchemaCreatorDrawing(schemaVersionId: string): Promise<DownloadDto> {
|
|
@@ -39798,6 +39848,7 @@ export interface ImaSpecificationLiteDto {
|
|
|
39798
39848
|
export interface SchemaCreatorStateDto {
|
|
39799
39849
|
settings: SchemaCreatorSettingsDto;
|
|
39800
39850
|
elements: SchemaCreatorElementDto[];
|
|
39851
|
+
grids?: SchemaCreatorPageGridDto[];
|
|
39801
39852
|
documentParseStatus?: SchemaCreatorDocumentParseStatusDto | null;
|
|
39802
39853
|
isAutoGenerated?: boolean;
|
|
39803
39854
|
createdBy?: SchemaCreatorAuditInfoDto | null;
|
|
@@ -39863,6 +39914,7 @@ export interface SchemaCreatorSizeDto {
|
|
|
39863
39914
|
|
|
39864
39915
|
export interface SchemaCreatorElementValuesDto {
|
|
39865
39916
|
reference: number;
|
|
39917
|
+
sheetZone?: string | null;
|
|
39866
39918
|
group?: string | null;
|
|
39867
39919
|
unit?: UnitOfMeasureDto | null;
|
|
39868
39920
|
nominal?: number | null;
|
|
@@ -39903,6 +39955,21 @@ export interface SchemaCreatorAuditInfoDto {
|
|
|
39903
39955
|
userFullName?: string | null;
|
|
39904
39956
|
}
|
|
39905
39957
|
|
|
39958
|
+
export interface SchemaCreatorPageGridDto {
|
|
39959
|
+
pageIndex: number;
|
|
39960
|
+
rows: number;
|
|
39961
|
+
columns: number;
|
|
39962
|
+
startValue: number;
|
|
39963
|
+
order: SchemaCreatorGridOrderDto;
|
|
39964
|
+
fontSize: number;
|
|
39965
|
+
labelPlacement?: SchemaCreatorGridLabelPlacementDto;
|
|
39966
|
+
frame: SchemaCreatorRectDto;
|
|
39967
|
+
}
|
|
39968
|
+
|
|
39969
|
+
export type SchemaCreatorGridOrderDto = "Ascending" | "Descending";
|
|
39970
|
+
|
|
39971
|
+
export type SchemaCreatorGridLabelPlacementDto = "Inside" | "Outside";
|
|
39972
|
+
|
|
39906
39973
|
export interface SchemaCreatorDocumentParseStatusDto {
|
|
39907
39974
|
inProgress: boolean;
|
|
39908
39975
|
attempt?: SchemaCreatorParseAttemptDto | null;
|