@ignos/api-client 20260905.259.1-alpha → 20260907.261.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.
@@ -24482,329 +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(id) {
24492
- let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate";
24493
- if (id === undefined || id === null)
24494
- throw new globalThis.Error("The parameter 'id' must be defined.");
24495
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
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(id, state) {
24535
- let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate";
24536
- if (id === undefined || id === null)
24537
- throw new globalThis.Error("The parameter 'id' must be defined.");
24538
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
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(id, state) {
24584
- let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate";
24585
- if (id === undefined || id === null)
24586
- throw new globalThis.Error("The parameter 'id' must be defined.");
24587
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
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
- * Starts a full drawing AI parse: clears every element and locks the
24627
- schema for every viewer until it completes. If one is already in
24628
- progress, returns that instead of starting a second one.
24629
- */
24630
- requestSchemaCreatorDocumentParse(id) {
24631
- let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate/parse-document";
24632
- if (id === undefined || id === null)
24633
- throw new globalThis.Error("The parameter 'id' must be defined.");
24634
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
24635
- url_ = url_.replace(/[?&]$/, "");
24636
- let options_ = {
24637
- method: "POST",
24638
- headers: {
24639
- "Accept": "application/json"
24640
- }
24641
- };
24642
- return this.transformOptions(options_).then(transformedOptions_ => {
24643
- return this.http.fetch(url_, transformedOptions_);
24644
- }).then((_response) => {
24645
- return this.processRequestSchemaCreatorDocumentParse(_response);
24646
- });
24647
- }
24648
- processRequestSchemaCreatorDocumentParse(response) {
24649
- const status = response.status;
24650
- let _headers = {};
24651
- if (response.headers && response.headers.forEach) {
24652
- response.headers.forEach((v, k) => _headers[k] = v);
24653
- }
24654
- ;
24655
- if (status === 200) {
24656
- return response.text().then((_responseText) => {
24657
- let result200 = null;
24658
- result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
24659
- return result200;
24660
- });
24661
- }
24662
- else if (status !== 200 && status !== 204) {
24663
- return response.text().then((_responseText) => {
24664
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
24665
- });
24666
- }
24667
- return Promise.resolve(null);
24668
- }
24669
- /**
24670
- * Stamps the creator state's balloons onto the schema's drawing PDF and
24671
- returns a temporary download link.
24672
- */
24673
- exportSchemaCreatorDrawing(id) {
24674
- let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate/download";
24675
- if (id === undefined || id === null)
24676
- throw new globalThis.Error("The parameter 'id' must be defined.");
24677
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
24678
- url_ = url_.replace(/[?&]$/, "");
24679
- let options_ = {
24680
- method: "POST",
24681
- headers: {
24682
- "Accept": "application/json"
24683
- }
24684
- };
24685
- return this.transformOptions(options_).then(transformedOptions_ => {
24686
- return this.http.fetch(url_, transformedOptions_);
24687
- }).then((_response) => {
24688
- return this.processExportSchemaCreatorDrawing(_response);
24689
- });
24690
- }
24691
- processExportSchemaCreatorDrawing(response) {
24692
- const status = response.status;
24693
- let _headers = {};
24694
- if (response.headers && response.headers.forEach) {
24695
- response.headers.forEach((v, k) => _headers[k] = v);
24696
- }
24697
- ;
24698
- if (status === 200) {
24699
- return response.text().then((_responseText) => {
24700
- let result200 = null;
24701
- result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
24702
- return result200;
24703
- });
24704
- }
24705
- else if (status !== 200 && status !== 204) {
24706
- return response.text().then((_responseText) => {
24707
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
24708
- });
24709
- }
24710
- return Promise.resolve(null);
24711
- }
24712
- /**
24713
- * Starts an async snip resolve; the result is delivered through the
24714
- SchemaCreatorSnipResolved SignalR notification.
24715
- * @param image (optional)
24716
- */
24717
- requestSchemaCreatorSnipParse(id, elementId, image) {
24718
- let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate/elements/{elementId}/parse-snip";
24719
- if (id === undefined || id === null)
24720
- throw new globalThis.Error("The parameter 'id' must be defined.");
24721
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
24722
- if (elementId === undefined || elementId === null)
24723
- throw new globalThis.Error("The parameter 'elementId' must be defined.");
24724
- url_ = url_.replace("{elementId}", encodeURIComponent("" + elementId));
24725
- url_ = url_.replace(/[?&]$/, "");
24726
- const content_ = new FormData();
24727
- if (image !== null && image !== undefined)
24728
- content_.append("image", image.data, image.fileName ? image.fileName : "image");
24729
- let options_ = {
24730
- body: content_,
24731
- method: "POST",
24732
- headers: {}
24733
- };
24734
- return this.transformOptions(options_).then(transformedOptions_ => {
24735
- return this.http.fetch(url_, transformedOptions_);
24736
- }).then((_response) => {
24737
- return this.processRequestSchemaCreatorSnipParse(_response);
24738
- });
24739
- }
24740
- processRequestSchemaCreatorSnipParse(response) {
24741
- const status = response.status;
24742
- let _headers = {};
24743
- if (response.headers && response.headers.forEach) {
24744
- response.headers.forEach((v, k) => _headers[k] = v);
24745
- }
24746
- ;
24747
- if (status === 200) {
24748
- return response.text().then((_responseText) => {
24749
- return;
24750
- });
24751
- }
24752
- else if (status !== 200 && status !== 204) {
24753
- return response.text().then((_responseText) => {
24754
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
24755
- });
24756
- }
24757
- return Promise.resolve(null);
24758
- }
24759
- /**
24760
- * Renders the legacy-format image for one element's current snip.
24761
- Fire-and-forget from the client on every snip commit - the resulting
24762
- image isn't returned here, it's only ever read back once the schema
24763
- is released (SchemaCreatorLegacyMapper).
24764
- */
24765
- renderSchemaCreatorElementSnipImage(id, elementId, request) {
24766
- let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate/elements/{elementId}/snip-image";
24767
- if (id === undefined || id === null)
24768
- throw new globalThis.Error("The parameter 'id' must be defined.");
24769
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
24770
- if (elementId === undefined || elementId === null)
24771
- throw new globalThis.Error("The parameter 'elementId' must be defined.");
24772
- url_ = url_.replace("{elementId}", encodeURIComponent("" + elementId));
24773
- url_ = url_.replace(/[?&]$/, "");
24774
- const content_ = JSON.stringify(request);
24775
- let options_ = {
24776
- body: content_,
24777
- method: "POST",
24778
- headers: {
24779
- "Content-Type": "application/json",
24780
- }
24781
- };
24782
- return this.transformOptions(options_).then(transformedOptions_ => {
24783
- return this.http.fetch(url_, transformedOptions_);
24784
- }).then((_response) => {
24785
- return this.processRenderSchemaCreatorElementSnipImage(_response);
24786
- });
24787
- }
24788
- processRenderSchemaCreatorElementSnipImage(response) {
24789
- const status = response.status;
24790
- let _headers = {};
24791
- if (response.headers && response.headers.forEach) {
24792
- response.headers.forEach((v, k) => _headers[k] = v);
24793
- }
24794
- ;
24795
- if (status === 200) {
24796
- return response.text().then((_responseText) => {
24797
- return;
24798
- });
24799
- }
24800
- else if (status !== 200 && status !== 204) {
24801
- return response.text().then((_responseText) => {
24802
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
24803
- });
24804
- }
24805
- return Promise.resolve(null);
24806
- }
24807
- }
24808
24485
  export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase {
24809
24486
  constructor(configuration, baseUrl, http) {
24810
24487
  super(configuration);
@@ -25218,8 +24895,8 @@ export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase {
25218
24895
  }
25219
24896
  return Promise.resolve(null);
25220
24897
  }
25221
- uploadSchemaMarkedDrawing(id, request) {
25222
- let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploadmarkeddrawing";
24898
+ uploadSchemaDrawing(id, request) {
24899
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploaddrawing";
25223
24900
  if (id === undefined || id === null)
25224
24901
  throw new globalThis.Error("The parameter 'id' must be defined.");
25225
24902
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
@@ -25236,10 +24913,10 @@ export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase {
25236
24913
  return this.transformOptions(options_).then(transformedOptions_ => {
25237
24914
  return this.http.fetch(url_, transformedOptions_);
25238
24915
  }).then((_response) => {
25239
- return this.processUploadSchemaMarkedDrawing(_response);
24916
+ return this.processUploadSchemaDrawing(_response);
25240
24917
  });
25241
24918
  }
25242
- processUploadSchemaMarkedDrawing(response) {
24919
+ processUploadSchemaDrawing(response) {
25243
24920
  const status = response.status;
25244
24921
  let _headers = {};
25245
24922
  if (response.headers && response.headers.forEach) {
@@ -27621,50 +27298,6 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
27621
27298
  }
27622
27299
  return Promise.resolve(null);
27623
27300
  }
27624
- getMeasurementFormInstanceSchemaCreatorState(id, schemaId, tenantId) {
27625
- let url_ = this.baseUrl + "/measurementforms/instances/{id}/schemas/{schemaId}/creatorstate?";
27626
- if (id === undefined || id === null)
27627
- throw new globalThis.Error("The parameter 'id' must be defined.");
27628
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
27629
- if (schemaId === undefined || schemaId === null)
27630
- throw new globalThis.Error("The parameter 'schemaId' must be defined.");
27631
- url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
27632
- if (tenantId !== undefined && tenantId !== null)
27633
- url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
27634
- url_ = url_.replace(/[?&]$/, "");
27635
- let options_ = {
27636
- method: "GET",
27637
- headers: {
27638
- "Accept": "application/json"
27639
- }
27640
- };
27641
- return this.transformOptions(options_).then(transformedOptions_ => {
27642
- return this.http.fetch(url_, transformedOptions_);
27643
- }).then((_response) => {
27644
- return this.processGetMeasurementFormInstanceSchemaCreatorState(_response);
27645
- });
27646
- }
27647
- processGetMeasurementFormInstanceSchemaCreatorState(response) {
27648
- const status = response.status;
27649
- let _headers = {};
27650
- if (response.headers && response.headers.forEach) {
27651
- response.headers.forEach((v, k) => _headers[k] = v);
27652
- }
27653
- ;
27654
- if (status === 200) {
27655
- return response.text().then((_responseText) => {
27656
- let result200 = null;
27657
- result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
27658
- return result200;
27659
- });
27660
- }
27661
- else if (status !== 200 && status !== 204) {
27662
- return response.text().then((_responseText) => {
27663
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
27664
- });
27665
- }
27666
- return Promise.resolve(null);
27667
- }
27668
27301
  getWorkorderMeasurementFormProgress(id, tenantId) {
27669
27302
  let url_ = this.baseUrl + "/measurementforms/instances/{id}/progress?";
27670
27303
  if (id === undefined || id === null)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20260905.259.1-alpha",
3
+ "version": "20260907.261.1",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",