@ignos/api-client 20260910.270.1 → 20260911.272.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 -239
- package/lib/ignosportal-api.js +39 -457
- package/package.json +1 -1
- package/src/ignosportal-api.ts +65 -668
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,374 +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
|
-
* 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
24524
|
export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase {
|
|
24854
24525
|
constructor(configuration, baseUrl, http) {
|
|
24855
24526
|
super(configuration);
|
|
@@ -25263,51 +24934,6 @@ export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase {
|
|
|
25263
24934
|
}
|
|
25264
24935
|
return Promise.resolve(null);
|
|
25265
24936
|
}
|
|
25266
|
-
uploadSchemaMarkedDrawing(id, request) {
|
|
25267
|
-
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploadmarkeddrawing";
|
|
25268
|
-
if (id === undefined || id === null)
|
|
25269
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
25270
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
25271
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
25272
|
-
const content_ = JSON.stringify(request);
|
|
25273
|
-
let options_ = {
|
|
25274
|
-
body: content_,
|
|
25275
|
-
method: "POST",
|
|
25276
|
-
headers: {
|
|
25277
|
-
"Content-Type": "application/json",
|
|
25278
|
-
"Accept": "application/json"
|
|
25279
|
-
}
|
|
25280
|
-
};
|
|
25281
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
25282
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
25283
|
-
}).then((_response) => {
|
|
25284
|
-
return this.processUploadSchemaMarkedDrawing(_response);
|
|
25285
|
-
});
|
|
25286
|
-
}
|
|
25287
|
-
processUploadSchemaMarkedDrawing(response) {
|
|
25288
|
-
const status = response.status;
|
|
25289
|
-
let _headers = {};
|
|
25290
|
-
if (response.headers && response.headers.forEach) {
|
|
25291
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
25292
|
-
}
|
|
25293
|
-
;
|
|
25294
|
-
if (status === 200) {
|
|
25295
|
-
return response.text().then((_responseText) => {
|
|
25296
|
-
let result200 = null;
|
|
25297
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
25298
|
-
return result200;
|
|
25299
|
-
});
|
|
25300
|
-
}
|
|
25301
|
-
else if (status !== 200 && status !== 204) {
|
|
25302
|
-
return response.text().then((_responseText) => {
|
|
25303
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
25304
|
-
});
|
|
25305
|
-
}
|
|
25306
|
-
return Promise.resolve(null);
|
|
25307
|
-
}
|
|
25308
|
-
/**
|
|
25309
|
-
* @deprecated
|
|
25310
|
-
*/
|
|
25311
24937
|
uploadSchemaDrawing(id, request) {
|
|
25312
24938
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploaddrawing";
|
|
25313
24939
|
if (id === undefined || id === null)
|
|
@@ -27711,50 +27337,6 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
27711
27337
|
}
|
|
27712
27338
|
return Promise.resolve(null);
|
|
27713
27339
|
}
|
|
27714
|
-
getMeasurementFormInstanceSchemaCreatorState(id, schemaId, tenantId) {
|
|
27715
|
-
let url_ = this.baseUrl + "/measurementforms/instances/{id}/schemas/{schemaId}/creatorstate?";
|
|
27716
|
-
if (id === undefined || id === null)
|
|
27717
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
27718
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
27719
|
-
if (schemaId === undefined || schemaId === null)
|
|
27720
|
-
throw new globalThis.Error("The parameter 'schemaId' must be defined.");
|
|
27721
|
-
url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
|
|
27722
|
-
if (tenantId !== undefined && tenantId !== null)
|
|
27723
|
-
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
27724
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
27725
|
-
let options_ = {
|
|
27726
|
-
method: "GET",
|
|
27727
|
-
headers: {
|
|
27728
|
-
"Accept": "application/json"
|
|
27729
|
-
}
|
|
27730
|
-
};
|
|
27731
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
27732
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
27733
|
-
}).then((_response) => {
|
|
27734
|
-
return this.processGetMeasurementFormInstanceSchemaCreatorState(_response);
|
|
27735
|
-
});
|
|
27736
|
-
}
|
|
27737
|
-
processGetMeasurementFormInstanceSchemaCreatorState(response) {
|
|
27738
|
-
const status = response.status;
|
|
27739
|
-
let _headers = {};
|
|
27740
|
-
if (response.headers && response.headers.forEach) {
|
|
27741
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
27742
|
-
}
|
|
27743
|
-
;
|
|
27744
|
-
if (status === 200) {
|
|
27745
|
-
return response.text().then((_responseText) => {
|
|
27746
|
-
let result200 = null;
|
|
27747
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
27748
|
-
return result200;
|
|
27749
|
-
});
|
|
27750
|
-
}
|
|
27751
|
-
else if (status !== 200 && status !== 204) {
|
|
27752
|
-
return response.text().then((_responseText) => {
|
|
27753
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
27754
|
-
});
|
|
27755
|
-
}
|
|
27756
|
-
return Promise.resolve(null);
|
|
27757
|
-
}
|
|
27758
27340
|
getWorkorderMeasurementFormProgress(id, tenantId) {
|
|
27759
27341
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/progress?";
|
|
27760
27342
|
if (id === undefined || id === null)
|