@ignos/api-client 20260914.275.1 → 20260914.276.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 +23 -222
- package/lib/ignosportal-api.js +39 -409
- package/package.json +1 -1
- package/src/ignosportal-api.ts +65 -609
package/lib/ignosportal-api.js
CHANGED
|
@@ -22434,6 +22434,45 @@ export class MesProductionScheduleClient extends AuthorizedApiBase {
|
|
|
22434
22434
|
}
|
|
22435
22435
|
return Promise.resolve(null);
|
|
22436
22436
|
}
|
|
22437
|
+
postListProductionScheduleOperationsFromPlanner(request) {
|
|
22438
|
+
let url_ = this.baseUrl + "/mes/listproductionschedulefromplanner";
|
|
22439
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
22440
|
+
const content_ = JSON.stringify(request);
|
|
22441
|
+
let options_ = {
|
|
22442
|
+
body: content_,
|
|
22443
|
+
method: "POST",
|
|
22444
|
+
headers: {
|
|
22445
|
+
"Content-Type": "application/json",
|
|
22446
|
+
"Accept": "application/json"
|
|
22447
|
+
}
|
|
22448
|
+
};
|
|
22449
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22450
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
22451
|
+
}).then((_response) => {
|
|
22452
|
+
return this.processPostListProductionScheduleOperationsFromPlanner(_response);
|
|
22453
|
+
});
|
|
22454
|
+
}
|
|
22455
|
+
processPostListProductionScheduleOperationsFromPlanner(response) {
|
|
22456
|
+
const status = response.status;
|
|
22457
|
+
let _headers = {};
|
|
22458
|
+
if (response.headers && response.headers.forEach) {
|
|
22459
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
22460
|
+
}
|
|
22461
|
+
;
|
|
22462
|
+
if (status === 200) {
|
|
22463
|
+
return response.text().then((_responseText) => {
|
|
22464
|
+
let result200 = null;
|
|
22465
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22466
|
+
return result200;
|
|
22467
|
+
});
|
|
22468
|
+
}
|
|
22469
|
+
else if (status !== 200 && status !== 204) {
|
|
22470
|
+
return response.text().then((_responseText) => {
|
|
22471
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22472
|
+
});
|
|
22473
|
+
}
|
|
22474
|
+
return Promise.resolve(null);
|
|
22475
|
+
}
|
|
22437
22476
|
getAvailableProductionScheduleFilters(request) {
|
|
22438
22477
|
let url_ = this.baseUrl + "/mes/productionschedulefilters";
|
|
22439
22478
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -24482,326 +24521,6 @@ export class InspectMatchSpecificationsClient extends AuthorizedApiBase {
|
|
|
24482
24521
|
return Promise.resolve(null);
|
|
24483
24522
|
}
|
|
24484
24523
|
}
|
|
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
24524
|
export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase {
|
|
24806
24525
|
constructor(configuration, baseUrl, http) {
|
|
24807
24526
|
super(configuration);
|
|
@@ -25215,51 +24934,6 @@ export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase {
|
|
|
25215
24934
|
}
|
|
25216
24935
|
return Promise.resolve(null);
|
|
25217
24936
|
}
|
|
25218
|
-
uploadSchemaMarkedDrawing(id, request) {
|
|
25219
|
-
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploadmarkeddrawing";
|
|
25220
|
-
if (id === undefined || id === null)
|
|
25221
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
25222
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
25223
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
25224
|
-
const content_ = JSON.stringify(request);
|
|
25225
|
-
let options_ = {
|
|
25226
|
-
body: content_,
|
|
25227
|
-
method: "POST",
|
|
25228
|
-
headers: {
|
|
25229
|
-
"Content-Type": "application/json",
|
|
25230
|
-
"Accept": "application/json"
|
|
25231
|
-
}
|
|
25232
|
-
};
|
|
25233
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
25234
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
25235
|
-
}).then((_response) => {
|
|
25236
|
-
return this.processUploadSchemaMarkedDrawing(_response);
|
|
25237
|
-
});
|
|
25238
|
-
}
|
|
25239
|
-
processUploadSchemaMarkedDrawing(response) {
|
|
25240
|
-
const status = response.status;
|
|
25241
|
-
let _headers = {};
|
|
25242
|
-
if (response.headers && response.headers.forEach) {
|
|
25243
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
25244
|
-
}
|
|
25245
|
-
;
|
|
25246
|
-
if (status === 200) {
|
|
25247
|
-
return response.text().then((_responseText) => {
|
|
25248
|
-
let result200 = null;
|
|
25249
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
25250
|
-
return result200;
|
|
25251
|
-
});
|
|
25252
|
-
}
|
|
25253
|
-
else if (status !== 200 && status !== 204) {
|
|
25254
|
-
return response.text().then((_responseText) => {
|
|
25255
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
25256
|
-
});
|
|
25257
|
-
}
|
|
25258
|
-
return Promise.resolve(null);
|
|
25259
|
-
}
|
|
25260
|
-
/**
|
|
25261
|
-
* @deprecated
|
|
25262
|
-
*/
|
|
25263
24937
|
uploadSchemaDrawing(id, request) {
|
|
25264
24938
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploaddrawing";
|
|
25265
24939
|
if (id === undefined || id === null)
|
|
@@ -27663,50 +27337,6 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
27663
27337
|
}
|
|
27664
27338
|
return Promise.resolve(null);
|
|
27665
27339
|
}
|
|
27666
|
-
getMeasurementFormInstanceSchemaCreatorState(id, schemaId, tenantId) {
|
|
27667
|
-
let url_ = this.baseUrl + "/measurementforms/instances/{id}/schemas/{schemaId}/creatorstate?";
|
|
27668
|
-
if (id === undefined || id === null)
|
|
27669
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
27670
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
27671
|
-
if (schemaId === undefined || schemaId === null)
|
|
27672
|
-
throw new globalThis.Error("The parameter 'schemaId' must be defined.");
|
|
27673
|
-
url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
|
|
27674
|
-
if (tenantId !== undefined && tenantId !== null)
|
|
27675
|
-
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
27676
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
27677
|
-
let options_ = {
|
|
27678
|
-
method: "GET",
|
|
27679
|
-
headers: {
|
|
27680
|
-
"Accept": "application/json"
|
|
27681
|
-
}
|
|
27682
|
-
};
|
|
27683
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
27684
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
27685
|
-
}).then((_response) => {
|
|
27686
|
-
return this.processGetMeasurementFormInstanceSchemaCreatorState(_response);
|
|
27687
|
-
});
|
|
27688
|
-
}
|
|
27689
|
-
processGetMeasurementFormInstanceSchemaCreatorState(response) {
|
|
27690
|
-
const status = response.status;
|
|
27691
|
-
let _headers = {};
|
|
27692
|
-
if (response.headers && response.headers.forEach) {
|
|
27693
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
27694
|
-
}
|
|
27695
|
-
;
|
|
27696
|
-
if (status === 200) {
|
|
27697
|
-
return response.text().then((_responseText) => {
|
|
27698
|
-
let result200 = null;
|
|
27699
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
27700
|
-
return result200;
|
|
27701
|
-
});
|
|
27702
|
-
}
|
|
27703
|
-
else if (status !== 200 && status !== 204) {
|
|
27704
|
-
return response.text().then((_responseText) => {
|
|
27705
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
27706
|
-
});
|
|
27707
|
-
}
|
|
27708
|
-
return Promise.resolve(null);
|
|
27709
|
-
}
|
|
27710
27340
|
getWorkorderMeasurementFormProgress(id, tenantId) {
|
|
27711
27341
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/progress?";
|
|
27712
27342
|
if (id === undefined || id === null)
|