@ignos/api-client 20260907.262.1-alpha → 20260908.263.1
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 +24 -221
- package/lib/ignosportal-api.js +4 -416
- package/package.json +1 -1
- package/src/ignosportal-api.ts +31 -611
package/lib/ignosportal-api.js
CHANGED
|
@@ -24482,374 +24482,6 @@ export class InspectMatchSpecificationsClient extends AuthorizedApiBase {
|
|
|
24482
24482
|
return Promise.resolve(null);
|
|
24483
24483
|
}
|
|
24484
24484
|
}
|
|
24485
|
-
export class InspectSchemaCreatorClient extends AuthorizedApiBase {
|
|
24486
|
-
constructor(configuration, baseUrl, http) {
|
|
24487
|
-
super(configuration);
|
|
24488
|
-
this.http = http ? http : window;
|
|
24489
|
-
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
24490
|
-
}
|
|
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
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
24497
|
-
let options_ = {
|
|
24498
|
-
method: "GET",
|
|
24499
|
-
headers: {
|
|
24500
|
-
"Accept": "application/json"
|
|
24501
|
-
}
|
|
24502
|
-
};
|
|
24503
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24504
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
24505
|
-
}).then((_response) => {
|
|
24506
|
-
return this.processGetSchemaCreatorState(_response);
|
|
24507
|
-
});
|
|
24508
|
-
}
|
|
24509
|
-
processGetSchemaCreatorState(response) {
|
|
24510
|
-
const status = response.status;
|
|
24511
|
-
let _headers = {};
|
|
24512
|
-
if (response.headers && response.headers.forEach) {
|
|
24513
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
24514
|
-
}
|
|
24515
|
-
;
|
|
24516
|
-
if (status === 200) {
|
|
24517
|
-
return response.text().then((_responseText) => {
|
|
24518
|
-
let result200 = null;
|
|
24519
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
24520
|
-
return result200;
|
|
24521
|
-
});
|
|
24522
|
-
}
|
|
24523
|
-
else if (status !== 200 && status !== 204) {
|
|
24524
|
-
return response.text().then((_responseText) => {
|
|
24525
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24526
|
-
});
|
|
24527
|
-
}
|
|
24528
|
-
return Promise.resolve(null);
|
|
24529
|
-
}
|
|
24530
|
-
/**
|
|
24531
|
-
* Creates the initial creator state for a schema version. Returns 409 if
|
|
24532
|
-
state already exists; the caller should re-fetch it instead of writing.
|
|
24533
|
-
*/
|
|
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
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
24540
|
-
const content_ = JSON.stringify(state);
|
|
24541
|
-
let options_ = {
|
|
24542
|
-
body: content_,
|
|
24543
|
-
method: "POST",
|
|
24544
|
-
headers: {
|
|
24545
|
-
"Content-Type": "application/json",
|
|
24546
|
-
"Accept": "application/json"
|
|
24547
|
-
}
|
|
24548
|
-
};
|
|
24549
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24550
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
24551
|
-
}).then((_response) => {
|
|
24552
|
-
return this.processCreateSchemaCreatorState(_response);
|
|
24553
|
-
});
|
|
24554
|
-
}
|
|
24555
|
-
processCreateSchemaCreatorState(response) {
|
|
24556
|
-
const status = response.status;
|
|
24557
|
-
let _headers = {};
|
|
24558
|
-
if (response.headers && response.headers.forEach) {
|
|
24559
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
24560
|
-
}
|
|
24561
|
-
;
|
|
24562
|
-
if (status === 201) {
|
|
24563
|
-
return response.text().then((_responseText) => {
|
|
24564
|
-
let result201 = null;
|
|
24565
|
-
result201 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
24566
|
-
return result201;
|
|
24567
|
-
});
|
|
24568
|
-
}
|
|
24569
|
-
else if (status === 409) {
|
|
24570
|
-
return response.text().then((_responseText) => {
|
|
24571
|
-
let result409 = null;
|
|
24572
|
-
result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
24573
|
-
return throwException("A server side error occurred.", status, _responseText, _headers, result409);
|
|
24574
|
-
});
|
|
24575
|
-
}
|
|
24576
|
-
else if (status !== 200 && status !== 204) {
|
|
24577
|
-
return response.text().then((_responseText) => {
|
|
24578
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24579
|
-
});
|
|
24580
|
-
}
|
|
24581
|
-
return Promise.resolve(null);
|
|
24582
|
-
}
|
|
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
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
24589
|
-
const content_ = JSON.stringify(state);
|
|
24590
|
-
let options_ = {
|
|
24591
|
-
body: content_,
|
|
24592
|
-
method: "PUT",
|
|
24593
|
-
headers: {
|
|
24594
|
-
"Content-Type": "application/json",
|
|
24595
|
-
"Accept": "application/json"
|
|
24596
|
-
}
|
|
24597
|
-
};
|
|
24598
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24599
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
24600
|
-
}).then((_response) => {
|
|
24601
|
-
return this.processUpdateSchemaCreatorState(_response);
|
|
24602
|
-
});
|
|
24603
|
-
}
|
|
24604
|
-
processUpdateSchemaCreatorState(response) {
|
|
24605
|
-
const status = response.status;
|
|
24606
|
-
let _headers = {};
|
|
24607
|
-
if (response.headers && response.headers.forEach) {
|
|
24608
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
24609
|
-
}
|
|
24610
|
-
;
|
|
24611
|
-
if (status === 200) {
|
|
24612
|
-
return response.text().then((_responseText) => {
|
|
24613
|
-
let result200 = null;
|
|
24614
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
24615
|
-
return result200;
|
|
24616
|
-
});
|
|
24617
|
-
}
|
|
24618
|
-
else if (status !== 200 && status !== 204) {
|
|
24619
|
-
return response.text().then((_responseText) => {
|
|
24620
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24621
|
-
});
|
|
24622
|
-
}
|
|
24623
|
-
return Promise.resolve(null);
|
|
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
|
-
}
|
|
24670
|
-
/**
|
|
24671
|
-
* Starts a full drawing AI parse: clears every element and locks the
|
|
24672
|
-
schema for every viewer until it completes. If one is already in
|
|
24673
|
-
progress, returns that instead of starting a second one.
|
|
24674
|
-
*/
|
|
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));
|
|
24680
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
24681
|
-
let options_ = {
|
|
24682
|
-
method: "POST",
|
|
24683
|
-
headers: {
|
|
24684
|
-
"Accept": "application/json"
|
|
24685
|
-
}
|
|
24686
|
-
};
|
|
24687
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24688
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
24689
|
-
}).then((_response) => {
|
|
24690
|
-
return this.processRequestSchemaCreatorDocumentParse(_response);
|
|
24691
|
-
});
|
|
24692
|
-
}
|
|
24693
|
-
processRequestSchemaCreatorDocumentParse(response) {
|
|
24694
|
-
const status = response.status;
|
|
24695
|
-
let _headers = {};
|
|
24696
|
-
if (response.headers && response.headers.forEach) {
|
|
24697
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
24698
|
-
}
|
|
24699
|
-
;
|
|
24700
|
-
if (status === 200) {
|
|
24701
|
-
return response.text().then((_responseText) => {
|
|
24702
|
-
let result200 = null;
|
|
24703
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
24704
|
-
return result200;
|
|
24705
|
-
});
|
|
24706
|
-
}
|
|
24707
|
-
else if (status !== 200 && status !== 204) {
|
|
24708
|
-
return response.text().then((_responseText) => {
|
|
24709
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24710
|
-
});
|
|
24711
|
-
}
|
|
24712
|
-
return Promise.resolve(null);
|
|
24713
|
-
}
|
|
24714
|
-
/**
|
|
24715
|
-
* Stamps the creator state's balloons onto the schema's drawing PDF and
|
|
24716
|
-
returns a temporary download link.
|
|
24717
|
-
*/
|
|
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));
|
|
24723
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
24724
|
-
let options_ = {
|
|
24725
|
-
method: "POST",
|
|
24726
|
-
headers: {
|
|
24727
|
-
"Accept": "application/json"
|
|
24728
|
-
}
|
|
24729
|
-
};
|
|
24730
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24731
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
24732
|
-
}).then((_response) => {
|
|
24733
|
-
return this.processExportSchemaCreatorDrawing(_response);
|
|
24734
|
-
});
|
|
24735
|
-
}
|
|
24736
|
-
processExportSchemaCreatorDrawing(response) {
|
|
24737
|
-
const status = response.status;
|
|
24738
|
-
let _headers = {};
|
|
24739
|
-
if (response.headers && response.headers.forEach) {
|
|
24740
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
24741
|
-
}
|
|
24742
|
-
;
|
|
24743
|
-
if (status === 200) {
|
|
24744
|
-
return response.text().then((_responseText) => {
|
|
24745
|
-
let result200 = null;
|
|
24746
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
24747
|
-
return result200;
|
|
24748
|
-
});
|
|
24749
|
-
}
|
|
24750
|
-
else if (status !== 200 && status !== 204) {
|
|
24751
|
-
return response.text().then((_responseText) => {
|
|
24752
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24753
|
-
});
|
|
24754
|
-
}
|
|
24755
|
-
return Promise.resolve(null);
|
|
24756
|
-
}
|
|
24757
|
-
/**
|
|
24758
|
-
* Starts an async snip resolve; the result is delivered through the
|
|
24759
|
-
SchemaCreatorSnipResolved SignalR notification.
|
|
24760
|
-
* @param image (optional)
|
|
24761
|
-
*/
|
|
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));
|
|
24767
|
-
if (elementId === undefined || elementId === null)
|
|
24768
|
-
throw new globalThis.Error("The parameter 'elementId' must be defined.");
|
|
24769
|
-
url_ = url_.replace("{elementId}", encodeURIComponent("" + elementId));
|
|
24770
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
24771
|
-
const content_ = new FormData();
|
|
24772
|
-
if (image !== null && image !== undefined)
|
|
24773
|
-
content_.append("image", image.data, image.fileName ? image.fileName : "image");
|
|
24774
|
-
let options_ = {
|
|
24775
|
-
body: content_,
|
|
24776
|
-
method: "POST",
|
|
24777
|
-
headers: {}
|
|
24778
|
-
};
|
|
24779
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24780
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
24781
|
-
}).then((_response) => {
|
|
24782
|
-
return this.processRequestSchemaCreatorSnipParse(_response);
|
|
24783
|
-
});
|
|
24784
|
-
}
|
|
24785
|
-
processRequestSchemaCreatorSnipParse(response) {
|
|
24786
|
-
const status = response.status;
|
|
24787
|
-
let _headers = {};
|
|
24788
|
-
if (response.headers && response.headers.forEach) {
|
|
24789
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
24790
|
-
}
|
|
24791
|
-
;
|
|
24792
|
-
if (status === 200) {
|
|
24793
|
-
return response.text().then((_responseText) => {
|
|
24794
|
-
return;
|
|
24795
|
-
});
|
|
24796
|
-
}
|
|
24797
|
-
else if (status !== 200 && status !== 204) {
|
|
24798
|
-
return response.text().then((_responseText) => {
|
|
24799
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24800
|
-
});
|
|
24801
|
-
}
|
|
24802
|
-
return Promise.resolve(null);
|
|
24803
|
-
}
|
|
24804
|
-
/**
|
|
24805
|
-
* Renders the legacy-format image for one element's current snip.
|
|
24806
|
-
Fire-and-forget from the client on every snip commit - the resulting
|
|
24807
|
-
image isn't returned here, it's only ever read back once the schema
|
|
24808
|
-
is released (SchemaCreatorLegacyMapper).
|
|
24809
|
-
*/
|
|
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));
|
|
24815
|
-
if (elementId === undefined || elementId === null)
|
|
24816
|
-
throw new globalThis.Error("The parameter 'elementId' must be defined.");
|
|
24817
|
-
url_ = url_.replace("{elementId}", encodeURIComponent("" + elementId));
|
|
24818
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
24819
|
-
const content_ = JSON.stringify(request);
|
|
24820
|
-
let options_ = {
|
|
24821
|
-
body: content_,
|
|
24822
|
-
method: "POST",
|
|
24823
|
-
headers: {
|
|
24824
|
-
"Content-Type": "application/json",
|
|
24825
|
-
}
|
|
24826
|
-
};
|
|
24827
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24828
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
24829
|
-
}).then((_response) => {
|
|
24830
|
-
return this.processRenderSchemaCreatorElementSnipImage(_response);
|
|
24831
|
-
});
|
|
24832
|
-
}
|
|
24833
|
-
processRenderSchemaCreatorElementSnipImage(response) {
|
|
24834
|
-
const status = response.status;
|
|
24835
|
-
let _headers = {};
|
|
24836
|
-
if (response.headers && response.headers.forEach) {
|
|
24837
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
24838
|
-
}
|
|
24839
|
-
;
|
|
24840
|
-
if (status === 200) {
|
|
24841
|
-
return response.text().then((_responseText) => {
|
|
24842
|
-
return;
|
|
24843
|
-
});
|
|
24844
|
-
}
|
|
24845
|
-
else if (status !== 200 && status !== 204) {
|
|
24846
|
-
return response.text().then((_responseText) => {
|
|
24847
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24848
|
-
});
|
|
24849
|
-
}
|
|
24850
|
-
return Promise.resolve(null);
|
|
24851
|
-
}
|
|
24852
|
-
}
|
|
24853
24485
|
export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase {
|
|
24854
24486
|
constructor(configuration, baseUrl, http) {
|
|
24855
24487
|
super(configuration);
|
|
@@ -25263,8 +24895,8 @@ export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase {
|
|
|
25263
24895
|
}
|
|
25264
24896
|
return Promise.resolve(null);
|
|
25265
24897
|
}
|
|
25266
|
-
|
|
25267
|
-
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/
|
|
24898
|
+
uploadSchemaDrawing(id, request) {
|
|
24899
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploaddrawing";
|
|
25268
24900
|
if (id === undefined || id === null)
|
|
25269
24901
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
25270
24902
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
@@ -25281,10 +24913,10 @@ export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase {
|
|
|
25281
24913
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
25282
24914
|
return this.http.fetch(url_, transformedOptions_);
|
|
25283
24915
|
}).then((_response) => {
|
|
25284
|
-
return this.
|
|
24916
|
+
return this.processUploadSchemaDrawing(_response);
|
|
25285
24917
|
});
|
|
25286
24918
|
}
|
|
25287
|
-
|
|
24919
|
+
processUploadSchemaDrawing(response) {
|
|
25288
24920
|
const status = response.status;
|
|
25289
24921
|
let _headers = {};
|
|
25290
24922
|
if (response.headers && response.headers.forEach) {
|
|
@@ -27666,50 +27298,6 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
27666
27298
|
}
|
|
27667
27299
|
return Promise.resolve(null);
|
|
27668
27300
|
}
|
|
27669
|
-
getMeasurementFormInstanceSchemaCreatorState(id, schemaId, tenantId) {
|
|
27670
|
-
let url_ = this.baseUrl + "/measurementforms/instances/{id}/schemas/{schemaId}/creatorstate?";
|
|
27671
|
-
if (id === undefined || id === null)
|
|
27672
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
27673
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
27674
|
-
if (schemaId === undefined || schemaId === null)
|
|
27675
|
-
throw new globalThis.Error("The parameter 'schemaId' must be defined.");
|
|
27676
|
-
url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
|
|
27677
|
-
if (tenantId !== undefined && tenantId !== null)
|
|
27678
|
-
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
27679
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
27680
|
-
let options_ = {
|
|
27681
|
-
method: "GET",
|
|
27682
|
-
headers: {
|
|
27683
|
-
"Accept": "application/json"
|
|
27684
|
-
}
|
|
27685
|
-
};
|
|
27686
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
27687
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
27688
|
-
}).then((_response) => {
|
|
27689
|
-
return this.processGetMeasurementFormInstanceSchemaCreatorState(_response);
|
|
27690
|
-
});
|
|
27691
|
-
}
|
|
27692
|
-
processGetMeasurementFormInstanceSchemaCreatorState(response) {
|
|
27693
|
-
const status = response.status;
|
|
27694
|
-
let _headers = {};
|
|
27695
|
-
if (response.headers && response.headers.forEach) {
|
|
27696
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
27697
|
-
}
|
|
27698
|
-
;
|
|
27699
|
-
if (status === 200) {
|
|
27700
|
-
return response.text().then((_responseText) => {
|
|
27701
|
-
let result200 = null;
|
|
27702
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
27703
|
-
return result200;
|
|
27704
|
-
});
|
|
27705
|
-
}
|
|
27706
|
-
else if (status !== 200 && status !== 204) {
|
|
27707
|
-
return response.text().then((_responseText) => {
|
|
27708
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
27709
|
-
});
|
|
27710
|
-
}
|
|
27711
|
-
return Promise.resolve(null);
|
|
27712
|
-
}
|
|
27713
27301
|
getWorkorderMeasurementFormProgress(id, tenantId) {
|
|
27714
27302
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/progress?";
|
|
27715
27303
|
if (id === undefined || id === null)
|