@ignos/api-client 20261027.327.1 → 20261028.328.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 +27 -25
- package/lib/ignosportal-api.js +46 -85
- package/package.json +1 -1
- package/src/ignosportal-api.ts +71 -104
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -2500,21 +2500,6 @@ export declare class MesDocumentsClient extends AuthorizedApiBase implements IMe
|
|
|
2500
2500
|
getDocument(drawingNumber: string, id: string): Promise<DocumentLinkDto>;
|
|
2501
2501
|
protected processGetDocument(response: Response): Promise<DocumentLinkDto>;
|
|
2502
2502
|
}
|
|
2503
|
-
export interface IMesEngageSettingsClient {
|
|
2504
|
-
getEngageSettings(): Promise<EngageCompanySettingsDto>;
|
|
2505
|
-
updateEngageSettings(command: UpdateEngageCompanySettings): Promise<EngageCompanySettingsDto>;
|
|
2506
|
-
}
|
|
2507
|
-
export declare class MesEngageSettingsClient extends AuthorizedApiBase implements IMesEngageSettingsClient {
|
|
2508
|
-
private http;
|
|
2509
|
-
private baseUrl;
|
|
2510
|
-
constructor(configuration: IApiClientConfig, baseUrl?: string, http?: {
|
|
2511
|
-
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
2512
|
-
});
|
|
2513
|
-
getEngageSettings(): Promise<EngageCompanySettingsDto>;
|
|
2514
|
-
protected processGetEngageSettings(response: Response): Promise<EngageCompanySettingsDto>;
|
|
2515
|
-
updateEngageSettings(command: UpdateEngageCompanySettings): Promise<EngageCompanySettingsDto>;
|
|
2516
|
-
protected processUpdateEngageSettings(response: Response): Promise<EngageCompanySettingsDto>;
|
|
2517
|
-
}
|
|
2518
2503
|
export interface IMesEngineeringChangeOrdersClient {
|
|
2519
2504
|
getEngineeringChangeOrders(partNumber: string | undefined): Promise<EngineeringChangeOrderDto[]>;
|
|
2520
2505
|
getEngineeringChangeOrderDetails(partNumber: string | undefined): Promise<EngineeringChangeOrdersDto>;
|
|
@@ -3014,6 +2999,10 @@ export interface IInspectSchemaCreatorClient {
|
|
|
3014
2999
|
drawing to derive it from.
|
|
3015
3000
|
*/
|
|
3016
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>;
|
|
3017
3006
|
/**
|
|
3018
3007
|
* Starts a full drawing AI parse: clears every element and locks the
|
|
3019
3008
|
schema for every viewer until it completes. If one is already in
|
|
@@ -3021,7 +3010,7 @@ export interface IInspectSchemaCreatorClient {
|
|
|
3021
3010
|
*/
|
|
3022
3011
|
requestSchemaCreatorDocumentParse(schemaVersionId: string): Promise<SchemaCreatorStateDto>;
|
|
3023
3012
|
/**
|
|
3024
|
-
* 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
|
|
3025
3014
|
returns a temporary download link.
|
|
3026
3015
|
*/
|
|
3027
3016
|
exportSchemaCreatorDrawing(schemaVersionId: string): Promise<DownloadDto>;
|
|
@@ -3060,6 +3049,11 @@ export declare class InspectSchemaCreatorClient extends AuthorizedApiBase implem
|
|
|
3060
3049
|
*/
|
|
3061
3050
|
getSchemaCreatorXmlGeometry(schemaVersionId: string): Promise<SchemaCreatorXmlGeometryDto[]>;
|
|
3062
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>;
|
|
3063
3057
|
/**
|
|
3064
3058
|
* Starts a full drawing AI parse: clears every element and locks the
|
|
3065
3059
|
schema for every viewer until it completes. If one is already in
|
|
@@ -3068,7 +3062,7 @@ export declare class InspectSchemaCreatorClient extends AuthorizedApiBase implem
|
|
|
3068
3062
|
requestSchemaCreatorDocumentParse(schemaVersionId: string): Promise<SchemaCreatorStateDto>;
|
|
3069
3063
|
protected processRequestSchemaCreatorDocumentParse(response: Response): Promise<SchemaCreatorStateDto>;
|
|
3070
3064
|
/**
|
|
3071
|
-
* 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
|
|
3072
3066
|
returns a temporary download link.
|
|
3073
3067
|
*/
|
|
3074
3068
|
exportSchemaCreatorDrawing(schemaVersionId: string): Promise<DownloadDto>;
|
|
@@ -7747,14 +7741,6 @@ export interface WorkerDto {
|
|
|
7747
7741
|
export interface DocumentLinkDto {
|
|
7748
7742
|
url: string;
|
|
7749
7743
|
}
|
|
7750
|
-
export interface EngageCompanySettingsDto {
|
|
7751
|
-
scheduleVisibilityDays?: number | null;
|
|
7752
|
-
startWarningDays?: number | null;
|
|
7753
|
-
}
|
|
7754
|
-
export interface UpdateEngageCompanySettings {
|
|
7755
|
-
scheduleVisibilityDays?: number | null;
|
|
7756
|
-
startWarningDays?: number | null;
|
|
7757
|
-
}
|
|
7758
7744
|
export interface EngineeringChangeOrderDto {
|
|
7759
7745
|
orderNumber: string;
|
|
7760
7746
|
title: string;
|
|
@@ -9600,6 +9586,7 @@ export interface ImaSpecificationLiteDto {
|
|
|
9600
9586
|
export interface SchemaCreatorStateDto {
|
|
9601
9587
|
settings: SchemaCreatorSettingsDto;
|
|
9602
9588
|
elements: SchemaCreatorElementDto[];
|
|
9589
|
+
grids?: SchemaCreatorPageGridDto[];
|
|
9603
9590
|
documentParseStatus?: SchemaCreatorDocumentParseStatusDto | null;
|
|
9604
9591
|
isAutoGenerated?: boolean;
|
|
9605
9592
|
createdBy?: SchemaCreatorAuditInfoDto | null;
|
|
@@ -9654,6 +9641,7 @@ export interface SchemaCreatorSizeDto {
|
|
|
9654
9641
|
}
|
|
9655
9642
|
export interface SchemaCreatorElementValuesDto {
|
|
9656
9643
|
reference: number;
|
|
9644
|
+
sheetZone?: string | null;
|
|
9657
9645
|
group?: string | null;
|
|
9658
9646
|
unit?: UnitOfMeasureDto | null;
|
|
9659
9647
|
nominal?: number | null;
|
|
@@ -9687,6 +9675,20 @@ export interface SchemaCreatorAuditInfoDto {
|
|
|
9687
9675
|
userId: string;
|
|
9688
9676
|
userFullName?: string | null;
|
|
9689
9677
|
}
|
|
9678
|
+
export interface SchemaCreatorPageGridDto {
|
|
9679
|
+
pageIndex: number;
|
|
9680
|
+
rows: number;
|
|
9681
|
+
columns: number;
|
|
9682
|
+
columnStartValue: number;
|
|
9683
|
+
columnOrder: SchemaCreatorGridOrderDto;
|
|
9684
|
+
rowStartValue: number;
|
|
9685
|
+
rowOrder: SchemaCreatorGridOrderDto;
|
|
9686
|
+
fontSize: number;
|
|
9687
|
+
labelPlacement?: SchemaCreatorGridLabelPlacementDto;
|
|
9688
|
+
frame: SchemaCreatorRectDto;
|
|
9689
|
+
}
|
|
9690
|
+
export type SchemaCreatorGridOrderDto = "Ascending" | "Descending";
|
|
9691
|
+
export type SchemaCreatorGridLabelPlacementDto = "Inside" | "Outside";
|
|
9690
9692
|
export interface SchemaCreatorDocumentParseStatusDto {
|
|
9691
9693
|
inProgress: boolean;
|
|
9692
9694
|
attempt?: SchemaCreatorParseAttemptDto | null;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -21295,90 +21295,6 @@ export class MesDocumentsClient extends AuthorizedApiBase {
|
|
|
21295
21295
|
return Promise.resolve(null);
|
|
21296
21296
|
}
|
|
21297
21297
|
}
|
|
21298
|
-
export class MesEngageSettingsClient extends AuthorizedApiBase {
|
|
21299
|
-
http;
|
|
21300
|
-
baseUrl;
|
|
21301
|
-
constructor(configuration, baseUrl, http) {
|
|
21302
|
-
super(configuration);
|
|
21303
|
-
this.http = http ? http : window;
|
|
21304
|
-
this.baseUrl = baseUrl ?? "";
|
|
21305
|
-
}
|
|
21306
|
-
getEngageSettings() {
|
|
21307
|
-
let url_ = this.baseUrl + "/mes/engage-settings";
|
|
21308
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
21309
|
-
let options_ = {
|
|
21310
|
-
method: "GET",
|
|
21311
|
-
headers: {
|
|
21312
|
-
"Accept": "application/json"
|
|
21313
|
-
}
|
|
21314
|
-
};
|
|
21315
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21316
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
21317
|
-
}).then((_response) => {
|
|
21318
|
-
return this.processGetEngageSettings(_response);
|
|
21319
|
-
});
|
|
21320
|
-
}
|
|
21321
|
-
processGetEngageSettings(response) {
|
|
21322
|
-
const status = response.status;
|
|
21323
|
-
let _headers = {};
|
|
21324
|
-
if (response.headers && response.headers.forEach) {
|
|
21325
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
21326
|
-
}
|
|
21327
|
-
;
|
|
21328
|
-
if (status === 200) {
|
|
21329
|
-
return response.text().then((_responseText) => {
|
|
21330
|
-
let result200 = null;
|
|
21331
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
21332
|
-
return result200;
|
|
21333
|
-
});
|
|
21334
|
-
}
|
|
21335
|
-
else if (status !== 200 && status !== 204) {
|
|
21336
|
-
return response.text().then((_responseText) => {
|
|
21337
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
21338
|
-
});
|
|
21339
|
-
}
|
|
21340
|
-
return Promise.resolve(null);
|
|
21341
|
-
}
|
|
21342
|
-
updateEngageSettings(command) {
|
|
21343
|
-
let url_ = this.baseUrl + "/mes/engage-settings";
|
|
21344
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
21345
|
-
const content_ = JSON.stringify(command);
|
|
21346
|
-
let options_ = {
|
|
21347
|
-
body: content_,
|
|
21348
|
-
method: "PUT",
|
|
21349
|
-
headers: {
|
|
21350
|
-
"Content-Type": "application/json",
|
|
21351
|
-
"Accept": "application/json"
|
|
21352
|
-
}
|
|
21353
|
-
};
|
|
21354
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21355
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
21356
|
-
}).then((_response) => {
|
|
21357
|
-
return this.processUpdateEngageSettings(_response);
|
|
21358
|
-
});
|
|
21359
|
-
}
|
|
21360
|
-
processUpdateEngageSettings(response) {
|
|
21361
|
-
const status = response.status;
|
|
21362
|
-
let _headers = {};
|
|
21363
|
-
if (response.headers && response.headers.forEach) {
|
|
21364
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
21365
|
-
}
|
|
21366
|
-
;
|
|
21367
|
-
if (status === 200) {
|
|
21368
|
-
return response.text().then((_responseText) => {
|
|
21369
|
-
let result200 = null;
|
|
21370
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
21371
|
-
return result200;
|
|
21372
|
-
});
|
|
21373
|
-
}
|
|
21374
|
-
else if (status !== 200 && status !== 204) {
|
|
21375
|
-
return response.text().then((_responseText) => {
|
|
21376
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
21377
|
-
});
|
|
21378
|
-
}
|
|
21379
|
-
return Promise.resolve(null);
|
|
21380
|
-
}
|
|
21381
|
-
}
|
|
21382
21298
|
export class MesEngineeringChangeOrdersClient extends AuthorizedApiBase {
|
|
21383
21299
|
http;
|
|
21384
21300
|
baseUrl;
|
|
@@ -25380,6 +25296,51 @@ export class InspectSchemaCreatorClient extends AuthorizedApiBase {
|
|
|
25380
25296
|
}
|
|
25381
25297
|
return Promise.resolve(null);
|
|
25382
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
|
+
}
|
|
25383
25344
|
/**
|
|
25384
25345
|
* Starts a full drawing AI parse: clears every element and locks the
|
|
25385
25346
|
schema for every viewer until it completes. If one is already in
|
|
@@ -25425,7 +25386,7 @@ export class InspectSchemaCreatorClient extends AuthorizedApiBase {
|
|
|
25425
25386
|
return Promise.resolve(null);
|
|
25426
25387
|
}
|
|
25427
25388
|
/**
|
|
25428
|
-
* 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
|
|
25429
25390
|
returns a temporary download link.
|
|
25430
25391
|
*/
|
|
25431
25392
|
exportSchemaCreatorDrawing(schemaVersionId) {
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -22597,98 +22597,6 @@ export class MesDocumentsClient extends AuthorizedApiBase implements IMesDocumen
|
|
|
22597
22597
|
}
|
|
22598
22598
|
}
|
|
22599
22599
|
|
|
22600
|
-
export interface IMesEngageSettingsClient {
|
|
22601
|
-
|
|
22602
|
-
getEngageSettings(): Promise<EngageCompanySettingsDto>;
|
|
22603
|
-
|
|
22604
|
-
updateEngageSettings(command: UpdateEngageCompanySettings): Promise<EngageCompanySettingsDto>;
|
|
22605
|
-
}
|
|
22606
|
-
|
|
22607
|
-
export class MesEngageSettingsClient extends AuthorizedApiBase implements IMesEngageSettingsClient {
|
|
22608
|
-
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
|
|
22609
|
-
private baseUrl: string;
|
|
22610
|
-
|
|
22611
|
-
constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
|
|
22612
|
-
super(configuration);
|
|
22613
|
-
this.http = http ? http : window as any;
|
|
22614
|
-
this.baseUrl = baseUrl ?? "";
|
|
22615
|
-
}
|
|
22616
|
-
|
|
22617
|
-
getEngageSettings(): Promise<EngageCompanySettingsDto> {
|
|
22618
|
-
let url_ = this.baseUrl + "/mes/engage-settings";
|
|
22619
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
22620
|
-
|
|
22621
|
-
let options_: RequestInit = {
|
|
22622
|
-
method: "GET",
|
|
22623
|
-
headers: {
|
|
22624
|
-
"Accept": "application/json"
|
|
22625
|
-
}
|
|
22626
|
-
};
|
|
22627
|
-
|
|
22628
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22629
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
22630
|
-
}).then((_response: Response) => {
|
|
22631
|
-
return this.processGetEngageSettings(_response);
|
|
22632
|
-
});
|
|
22633
|
-
}
|
|
22634
|
-
|
|
22635
|
-
protected processGetEngageSettings(response: Response): Promise<EngageCompanySettingsDto> {
|
|
22636
|
-
const status = response.status;
|
|
22637
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22638
|
-
if (status === 200) {
|
|
22639
|
-
return response.text().then((_responseText) => {
|
|
22640
|
-
let result200: any = null;
|
|
22641
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as EngageCompanySettingsDto;
|
|
22642
|
-
return result200;
|
|
22643
|
-
});
|
|
22644
|
-
} else if (status !== 200 && status !== 204) {
|
|
22645
|
-
return response.text().then((_responseText) => {
|
|
22646
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22647
|
-
});
|
|
22648
|
-
}
|
|
22649
|
-
return Promise.resolve<EngageCompanySettingsDto>(null as any);
|
|
22650
|
-
}
|
|
22651
|
-
|
|
22652
|
-
updateEngageSettings(command: UpdateEngageCompanySettings): Promise<EngageCompanySettingsDto> {
|
|
22653
|
-
let url_ = this.baseUrl + "/mes/engage-settings";
|
|
22654
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
22655
|
-
|
|
22656
|
-
const content_ = JSON.stringify(command);
|
|
22657
|
-
|
|
22658
|
-
let options_: RequestInit = {
|
|
22659
|
-
body: content_,
|
|
22660
|
-
method: "PUT",
|
|
22661
|
-
headers: {
|
|
22662
|
-
"Content-Type": "application/json",
|
|
22663
|
-
"Accept": "application/json"
|
|
22664
|
-
}
|
|
22665
|
-
};
|
|
22666
|
-
|
|
22667
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22668
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
22669
|
-
}).then((_response: Response) => {
|
|
22670
|
-
return this.processUpdateEngageSettings(_response);
|
|
22671
|
-
});
|
|
22672
|
-
}
|
|
22673
|
-
|
|
22674
|
-
protected processUpdateEngageSettings(response: Response): Promise<EngageCompanySettingsDto> {
|
|
22675
|
-
const status = response.status;
|
|
22676
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22677
|
-
if (status === 200) {
|
|
22678
|
-
return response.text().then((_responseText) => {
|
|
22679
|
-
let result200: any = null;
|
|
22680
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as EngageCompanySettingsDto;
|
|
22681
|
-
return result200;
|
|
22682
|
-
});
|
|
22683
|
-
} else if (status !== 200 && status !== 204) {
|
|
22684
|
-
return response.text().then((_responseText) => {
|
|
22685
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22686
|
-
});
|
|
22687
|
-
}
|
|
22688
|
-
return Promise.resolve<EngageCompanySettingsDto>(null as any);
|
|
22689
|
-
}
|
|
22690
|
-
}
|
|
22691
|
-
|
|
22692
22600
|
export interface IMesEngineeringChangeOrdersClient {
|
|
22693
22601
|
|
|
22694
22602
|
getEngineeringChangeOrders(partNumber: string | undefined): Promise<EngineeringChangeOrderDto[]>;
|
|
@@ -26768,6 +26676,11 @@ export interface IInspectSchemaCreatorClient {
|
|
|
26768
26676
|
*/
|
|
26769
26677
|
getSchemaCreatorXmlGeometry(schemaVersionId: string): Promise<SchemaCreatorXmlGeometryDto[]>;
|
|
26770
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
|
+
|
|
26771
26684
|
/**
|
|
26772
26685
|
* Starts a full drawing AI parse: clears every element and locks the
|
|
26773
26686
|
schema for every viewer until it completes. If one is already in
|
|
@@ -26776,7 +26689,7 @@ export interface IInspectSchemaCreatorClient {
|
|
|
26776
26689
|
requestSchemaCreatorDocumentParse(schemaVersionId: string): Promise<SchemaCreatorStateDto>;
|
|
26777
26690
|
|
|
26778
26691
|
/**
|
|
26779
|
-
* 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
|
|
26780
26693
|
returns a temporary download link.
|
|
26781
26694
|
*/
|
|
26782
26695
|
exportSchemaCreatorDrawing(schemaVersionId: string): Promise<DownloadDto>;
|
|
@@ -26979,6 +26892,51 @@ export class InspectSchemaCreatorClient extends AuthorizedApiBase implements IIn
|
|
|
26979
26892
|
return Promise.resolve<SchemaCreatorXmlGeometryDto[]>(null as any);
|
|
26980
26893
|
}
|
|
26981
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
|
+
|
|
26982
26940
|
/**
|
|
26983
26941
|
* Starts a full drawing AI parse: clears every element and locks the
|
|
26984
26942
|
schema for every viewer until it completes. If one is already in
|
|
@@ -27023,7 +26981,7 @@ export class InspectSchemaCreatorClient extends AuthorizedApiBase implements IIn
|
|
|
27023
26981
|
}
|
|
27024
26982
|
|
|
27025
26983
|
/**
|
|
27026
|
-
* 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
|
|
27027
26985
|
returns a temporary download link.
|
|
27028
26986
|
*/
|
|
27029
26987
|
exportSchemaCreatorDrawing(schemaVersionId: string): Promise<DownloadDto> {
|
|
@@ -37829,16 +37787,6 @@ export interface DocumentLinkDto {
|
|
|
37829
37787
|
url: string;
|
|
37830
37788
|
}
|
|
37831
37789
|
|
|
37832
|
-
export interface EngageCompanySettingsDto {
|
|
37833
|
-
scheduleVisibilityDays?: number | null;
|
|
37834
|
-
startWarningDays?: number | null;
|
|
37835
|
-
}
|
|
37836
|
-
|
|
37837
|
-
export interface UpdateEngageCompanySettings {
|
|
37838
|
-
scheduleVisibilityDays?: number | null;
|
|
37839
|
-
startWarningDays?: number | null;
|
|
37840
|
-
}
|
|
37841
|
-
|
|
37842
37790
|
export interface EngineeringChangeOrderDto {
|
|
37843
37791
|
orderNumber: string;
|
|
37844
37792
|
title: string;
|
|
@@ -39900,6 +39848,7 @@ export interface ImaSpecificationLiteDto {
|
|
|
39900
39848
|
export interface SchemaCreatorStateDto {
|
|
39901
39849
|
settings: SchemaCreatorSettingsDto;
|
|
39902
39850
|
elements: SchemaCreatorElementDto[];
|
|
39851
|
+
grids?: SchemaCreatorPageGridDto[];
|
|
39903
39852
|
documentParseStatus?: SchemaCreatorDocumentParseStatusDto | null;
|
|
39904
39853
|
isAutoGenerated?: boolean;
|
|
39905
39854
|
createdBy?: SchemaCreatorAuditInfoDto | null;
|
|
@@ -39965,6 +39914,7 @@ export interface SchemaCreatorSizeDto {
|
|
|
39965
39914
|
|
|
39966
39915
|
export interface SchemaCreatorElementValuesDto {
|
|
39967
39916
|
reference: number;
|
|
39917
|
+
sheetZone?: string | null;
|
|
39968
39918
|
group?: string | null;
|
|
39969
39919
|
unit?: UnitOfMeasureDto | null;
|
|
39970
39920
|
nominal?: number | null;
|
|
@@ -40005,6 +39955,23 @@ export interface SchemaCreatorAuditInfoDto {
|
|
|
40005
39955
|
userFullName?: string | null;
|
|
40006
39956
|
}
|
|
40007
39957
|
|
|
39958
|
+
export interface SchemaCreatorPageGridDto {
|
|
39959
|
+
pageIndex: number;
|
|
39960
|
+
rows: number;
|
|
39961
|
+
columns: number;
|
|
39962
|
+
columnStartValue: number;
|
|
39963
|
+
columnOrder: SchemaCreatorGridOrderDto;
|
|
39964
|
+
rowStartValue: number;
|
|
39965
|
+
rowOrder: SchemaCreatorGridOrderDto;
|
|
39966
|
+
fontSize: number;
|
|
39967
|
+
labelPlacement?: SchemaCreatorGridLabelPlacementDto;
|
|
39968
|
+
frame: SchemaCreatorRectDto;
|
|
39969
|
+
}
|
|
39970
|
+
|
|
39971
|
+
export type SchemaCreatorGridOrderDto = "Ascending" | "Descending";
|
|
39972
|
+
|
|
39973
|
+
export type SchemaCreatorGridLabelPlacementDto = "Inside" | "Outside";
|
|
39974
|
+
|
|
40008
39975
|
export interface SchemaCreatorDocumentParseStatusDto {
|
|
40009
39976
|
inProgress: boolean;
|
|
40010
39977
|
attempt?: SchemaCreatorParseAttemptDto | null;
|