@ignos/api-client 20251106.0.13145-alpha → 20251107.0.13168-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.
@@ -1582,6 +1582,79 @@ export class UserAppSettingsClient extends AuthorizedApiBase {
1582
1582
  }
1583
1583
  return Promise.resolve(null);
1584
1584
  }
1585
+ getEngageUserSettings() {
1586
+ let url_ = this.baseUrl + "/userappsettings/engage";
1587
+ url_ = url_.replace(/[?&]$/, "");
1588
+ let options_ = {
1589
+ method: "GET",
1590
+ headers: {
1591
+ "Accept": "application/json"
1592
+ }
1593
+ };
1594
+ return this.transformOptions(options_).then(transformedOptions_ => {
1595
+ return this.http.fetch(url_, transformedOptions_);
1596
+ }).then((_response) => {
1597
+ return this.processGetEngageUserSettings(_response);
1598
+ });
1599
+ }
1600
+ processGetEngageUserSettings(response) {
1601
+ const status = response.status;
1602
+ let _headers = {};
1603
+ if (response.headers && response.headers.forEach) {
1604
+ response.headers.forEach((v, k) => _headers[k] = v);
1605
+ }
1606
+ ;
1607
+ if (status === 200) {
1608
+ return response.text().then((_responseText) => {
1609
+ let result200 = null;
1610
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
1611
+ result200 = EngageAppSettings.fromJS(resultData200);
1612
+ return result200;
1613
+ });
1614
+ }
1615
+ else if (status !== 200 && status !== 204) {
1616
+ return response.text().then((_responseText) => {
1617
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
1618
+ });
1619
+ }
1620
+ return Promise.resolve(null);
1621
+ }
1622
+ setEngageUserSettings(settings) {
1623
+ let url_ = this.baseUrl + "/userappsettings/engage";
1624
+ url_ = url_.replace(/[?&]$/, "");
1625
+ const content_ = JSON.stringify(settings);
1626
+ let options_ = {
1627
+ body: content_,
1628
+ method: "PUT",
1629
+ headers: {
1630
+ "Content-Type": "application/json",
1631
+ }
1632
+ };
1633
+ return this.transformOptions(options_).then(transformedOptions_ => {
1634
+ return this.http.fetch(url_, transformedOptions_);
1635
+ }).then((_response) => {
1636
+ return this.processSetEngageUserSettings(_response);
1637
+ });
1638
+ }
1639
+ processSetEngageUserSettings(response) {
1640
+ const status = response.status;
1641
+ let _headers = {};
1642
+ if (response.headers && response.headers.forEach) {
1643
+ response.headers.forEach((v, k) => _headers[k] = v);
1644
+ }
1645
+ ;
1646
+ if (status === 204) {
1647
+ return response.text().then((_responseText) => {
1648
+ return;
1649
+ });
1650
+ }
1651
+ else if (status !== 200 && status !== 204) {
1652
+ return response.text().then((_responseText) => {
1653
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
1654
+ });
1655
+ }
1656
+ return Promise.resolve(null);
1657
+ }
1585
1658
  }
1586
1659
  export class UploadClient extends AuthorizedApiBase {
1587
1660
  constructor(configuration, baseUrl, http) {
@@ -11416,6 +11489,45 @@ export class CncSetupClient extends AuthorizedApiBase {
11416
11489
  }
11417
11490
  return Promise.resolve(null);
11418
11491
  }
11492
+ deleteCncMachineOperationToolMultiple(operationId, idsToDelete) {
11493
+ let url_ = this.baseUrl + "/cncsetup/operations/{operationId}/tools";
11494
+ if (operationId === undefined || operationId === null)
11495
+ throw new globalThis.Error("The parameter 'operationId' must be defined.");
11496
+ url_ = url_.replace("{operationId}", encodeURIComponent("" + operationId));
11497
+ url_ = url_.replace(/[?&]$/, "");
11498
+ const content_ = JSON.stringify(idsToDelete);
11499
+ let options_ = {
11500
+ body: content_,
11501
+ method: "DELETE",
11502
+ headers: {
11503
+ "Content-Type": "application/json",
11504
+ }
11505
+ };
11506
+ return this.transformOptions(options_).then(transformedOptions_ => {
11507
+ return this.http.fetch(url_, transformedOptions_);
11508
+ }).then((_response) => {
11509
+ return this.processDeleteCncMachineOperationToolMultiple(_response);
11510
+ });
11511
+ }
11512
+ processDeleteCncMachineOperationToolMultiple(response) {
11513
+ const status = response.status;
11514
+ let _headers = {};
11515
+ if (response.headers && response.headers.forEach) {
11516
+ response.headers.forEach((v, k) => _headers[k] = v);
11517
+ }
11518
+ ;
11519
+ if (status === 204) {
11520
+ return response.text().then((_responseText) => {
11521
+ return;
11522
+ });
11523
+ }
11524
+ else if (status !== 200 && status !== 204) {
11525
+ return response.text().then((_responseText) => {
11526
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
11527
+ });
11528
+ }
11529
+ return Promise.resolve(null);
11530
+ }
11419
11531
  uploadOperationCncToolImage(operationId, id, request) {
11420
11532
  let url_ = this.baseUrl + "/cncsetup/operations/{operationId}/tools/{id}/uploadimage";
11421
11533
  if (operationId === undefined || operationId === null)
@@ -11674,6 +11786,45 @@ export class CncSetupClient extends AuthorizedApiBase {
11674
11786
  }
11675
11787
  return Promise.resolve(null);
11676
11788
  }
11789
+ deleteCncMachineToolMultiple(cncMachineId, idsToDelete) {
11790
+ let url_ = this.baseUrl + "/cncsetup/machines/{cncMachineId}/tools";
11791
+ if (cncMachineId === undefined || cncMachineId === null)
11792
+ throw new globalThis.Error("The parameter 'cncMachineId' must be defined.");
11793
+ url_ = url_.replace("{cncMachineId}", encodeURIComponent("" + cncMachineId));
11794
+ url_ = url_.replace(/[?&]$/, "");
11795
+ const content_ = JSON.stringify(idsToDelete);
11796
+ let options_ = {
11797
+ body: content_,
11798
+ method: "DELETE",
11799
+ headers: {
11800
+ "Content-Type": "application/json",
11801
+ }
11802
+ };
11803
+ return this.transformOptions(options_).then(transformedOptions_ => {
11804
+ return this.http.fetch(url_, transformedOptions_);
11805
+ }).then((_response) => {
11806
+ return this.processDeleteCncMachineToolMultiple(_response);
11807
+ });
11808
+ }
11809
+ processDeleteCncMachineToolMultiple(response) {
11810
+ const status = response.status;
11811
+ let _headers = {};
11812
+ if (response.headers && response.headers.forEach) {
11813
+ response.headers.forEach((v, k) => _headers[k] = v);
11814
+ }
11815
+ ;
11816
+ if (status === 204) {
11817
+ return response.text().then((_responseText) => {
11818
+ return;
11819
+ });
11820
+ }
11821
+ else if (status !== 200 && status !== 204) {
11822
+ return response.text().then((_responseText) => {
11823
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
11824
+ });
11825
+ }
11826
+ return Promise.resolve(null);
11827
+ }
11677
11828
  uploadCncMachineToolImage(machineId, id, request) {
11678
11829
  let url_ = this.baseUrl + "/cncsetup/machines/{machineId}/tools/{id}/uploadimage";
11679
11830
  if (machineId === undefined || machineId === null)
@@ -17737,37 +17888,18 @@ export class WeldingClient extends AuthorizedApiBase {
17737
17888
  return Promise.resolve(null);
17738
17889
  }
17739
17890
  }
17740
- export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17891
+ export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase {
17741
17892
  constructor(configuration, baseUrl, http) {
17742
17893
  super(configuration);
17743
17894
  this.jsonParseReviver = undefined;
17744
17895
  this.http = http ? http : window;
17745
17896
  this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
17746
17897
  }
17747
- listMeasurmentFormSchemas(pageSize, customerId, customerName, partNumber, partName, partRevision, drawing, drawingRevision, filter, continuationToken) {
17748
- let url_ = this.baseUrl + "/measurementforms/schemas?";
17749
- if (pageSize === null)
17750
- throw new globalThis.Error("The parameter 'pageSize' cannot be null.");
17751
- else if (pageSize !== undefined)
17752
- url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
17753
- if (customerId !== undefined && customerId !== null)
17754
- url_ += "customerId=" + encodeURIComponent("" + customerId) + "&";
17755
- if (customerName !== undefined && customerName !== null)
17756
- url_ += "customerName=" + encodeURIComponent("" + customerName) + "&";
17757
- if (partNumber !== undefined && partNumber !== null)
17758
- url_ += "partNumber=" + encodeURIComponent("" + partNumber) + "&";
17759
- if (partName !== undefined && partName !== null)
17760
- url_ += "partName=" + encodeURIComponent("" + partName) + "&";
17761
- if (partRevision !== undefined && partRevision !== null)
17762
- url_ += "partRevision=" + encodeURIComponent("" + partRevision) + "&";
17763
- if (drawing !== undefined && drawing !== null)
17764
- url_ += "drawing=" + encodeURIComponent("" + drawing) + "&";
17765
- if (drawingRevision !== undefined && drawingRevision !== null)
17766
- url_ += "drawingRevision=" + encodeURIComponent("" + drawingRevision) + "&";
17767
- if (filter !== undefined && filter !== null)
17768
- url_ += "filter=" + encodeURIComponent("" + filter) + "&";
17769
- if (continuationToken !== undefined && continuationToken !== null)
17770
- url_ += "continuationToken=" + encodeURIComponent("" + continuationToken) + "&";
17898
+ getArchivedMeasurementFormSchema(id) {
17899
+ let url_ = this.baseUrl + "/measurementforms/schemas/archived/{id}";
17900
+ if (id === undefined || id === null)
17901
+ throw new globalThis.Error("The parameter 'id' must be defined.");
17902
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
17771
17903
  url_ = url_.replace(/[?&]$/, "");
17772
17904
  let options_ = {
17773
17905
  method: "GET",
@@ -17778,10 +17910,10 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17778
17910
  return this.transformOptions(options_).then(transformedOptions_ => {
17779
17911
  return this.http.fetch(url_, transformedOptions_);
17780
17912
  }).then((_response) => {
17781
- return this.processListMeasurmentFormSchemas(_response);
17913
+ return this.processGetArchivedMeasurementFormSchema(_response);
17782
17914
  });
17783
17915
  }
17784
- processListMeasurmentFormSchemas(response) {
17916
+ processGetArchivedMeasurementFormSchema(response) {
17785
17917
  const status = response.status;
17786
17918
  let _headers = {};
17787
17919
  if (response.headers && response.headers.forEach) {
@@ -17792,7 +17924,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17792
17924
  return response.text().then((_responseText) => {
17793
17925
  let result200 = null;
17794
17926
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
17795
- result200 = PagedResultOfMeasurementFormListDto.fromJS(resultData200);
17927
+ result200 = MeasurementFormSchemaDto.fromJS(resultData200);
17796
17928
  return result200;
17797
17929
  });
17798
17930
  }
@@ -17843,13 +17975,16 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17843
17975
  }
17844
17976
  return Promise.resolve(null);
17845
17977
  }
17846
- postListMeasurementFormSchemas(request) {
17847
- let url_ = this.baseUrl + "/measurementforms/schemas/list";
17978
+ updateMeasurementFormSchema(id, request) {
17979
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}";
17980
+ if (id === undefined || id === null)
17981
+ throw new globalThis.Error("The parameter 'id' must be defined.");
17982
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
17848
17983
  url_ = url_.replace(/[?&]$/, "");
17849
17984
  const content_ = JSON.stringify(request);
17850
17985
  let options_ = {
17851
17986
  body: content_,
17852
- method: "POST",
17987
+ method: "PUT",
17853
17988
  headers: {
17854
17989
  "Content-Type": "application/json",
17855
17990
  "Accept": "application/json"
@@ -17858,10 +17993,10 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17858
17993
  return this.transformOptions(options_).then(transformedOptions_ => {
17859
17994
  return this.http.fetch(url_, transformedOptions_);
17860
17995
  }).then((_response) => {
17861
- return this.processPostListMeasurementFormSchemas(_response);
17996
+ return this.processUpdateMeasurementFormSchema(_response);
17862
17997
  });
17863
17998
  }
17864
- processPostListMeasurementFormSchemas(response) {
17999
+ processUpdateMeasurementFormSchema(response) {
17865
18000
  const status = response.status;
17866
18001
  let _headers = {};
17867
18002
  if (response.headers && response.headers.forEach) {
@@ -17872,7 +18007,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17872
18007
  return response.text().then((_responseText) => {
17873
18008
  let result200 = null;
17874
18009
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
17875
- result200 = PagedResultOfMeasurementFormListDto.fromJS(resultData200);
18010
+ result200 = MeasurementFormSchemaDto.fromJS(resultData200);
17876
18011
  return result200;
17877
18012
  });
17878
18013
  }
@@ -17883,37 +18018,32 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17883
18018
  }
17884
18019
  return Promise.resolve(null);
17885
18020
  }
17886
- getMeasurementFormSchema(id) {
18021
+ deleteMeasurementForm(id) {
17887
18022
  let url_ = this.baseUrl + "/measurementforms/schemas/{id}";
17888
18023
  if (id === undefined || id === null)
17889
18024
  throw new globalThis.Error("The parameter 'id' must be defined.");
17890
18025
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
17891
18026
  url_ = url_.replace(/[?&]$/, "");
17892
18027
  let options_ = {
17893
- method: "GET",
17894
- headers: {
17895
- "Accept": "application/json"
17896
- }
18028
+ method: "DELETE",
18029
+ headers: {}
17897
18030
  };
17898
18031
  return this.transformOptions(options_).then(transformedOptions_ => {
17899
18032
  return this.http.fetch(url_, transformedOptions_);
17900
18033
  }).then((_response) => {
17901
- return this.processGetMeasurementFormSchema(_response);
18034
+ return this.processDeleteMeasurementForm(_response);
17902
18035
  });
17903
18036
  }
17904
- processGetMeasurementFormSchema(response) {
18037
+ processDeleteMeasurementForm(response) {
17905
18038
  const status = response.status;
17906
18039
  let _headers = {};
17907
18040
  if (response.headers && response.headers.forEach) {
17908
18041
  response.headers.forEach((v, k) => _headers[k] = v);
17909
18042
  }
17910
18043
  ;
17911
- if (status === 200) {
18044
+ if (status === 204) {
17912
18045
  return response.text().then((_responseText) => {
17913
- let result200 = null;
17914
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
17915
- result200 = MeasurementFormSchemaDto.fromJS(resultData200);
17916
- return result200;
18046
+ return;
17917
18047
  });
17918
18048
  }
17919
18049
  else if (status !== 200 && status !== 204) {
@@ -17923,8 +18053,8 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17923
18053
  }
17924
18054
  return Promise.resolve(null);
17925
18055
  }
17926
- updateMeasurementFormSchema(id, request) {
17927
- let url_ = this.baseUrl + "/measurementforms/schemas/{id}";
18056
+ copyMeasurementFormSchema(id, request) {
18057
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}/copy";
17928
18058
  if (id === undefined || id === null)
17929
18059
  throw new globalThis.Error("The parameter 'id' must be defined.");
17930
18060
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
@@ -17932,7 +18062,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17932
18062
  const content_ = JSON.stringify(request);
17933
18063
  let options_ = {
17934
18064
  body: content_,
17935
- method: "PUT",
18065
+ method: "POST",
17936
18066
  headers: {
17937
18067
  "Content-Type": "application/json",
17938
18068
  "Accept": "application/json"
@@ -17941,10 +18071,10 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17941
18071
  return this.transformOptions(options_).then(transformedOptions_ => {
17942
18072
  return this.http.fetch(url_, transformedOptions_);
17943
18073
  }).then((_response) => {
17944
- return this.processUpdateMeasurementFormSchema(_response);
18074
+ return this.processCopyMeasurementFormSchema(_response);
17945
18075
  });
17946
18076
  }
17947
- processUpdateMeasurementFormSchema(response) {
18077
+ processCopyMeasurementFormSchema(response) {
17948
18078
  const status = response.status;
17949
18079
  let _headers = {};
17950
18080
  if (response.headers && response.headers.forEach) {
@@ -17955,7 +18085,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17955
18085
  return response.text().then((_responseText) => {
17956
18086
  let result200 = null;
17957
18087
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
17958
- result200 = MeasurementFormSchemaDto.fromJS(resultData200);
18088
+ result200 = MeasurementFormDto.fromJS(resultData200);
17959
18089
  return result200;
17960
18090
  });
17961
18091
  }
@@ -17966,146 +18096,28 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17966
18096
  }
17967
18097
  return Promise.resolve(null);
17968
18098
  }
17969
- deleteMeasurementForm(id) {
17970
- let url_ = this.baseUrl + "/measurementforms/schemas/{id}";
17971
- if (id === undefined || id === null)
17972
- throw new globalThis.Error("The parameter 'id' must be defined.");
17973
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
17974
- url_ = url_.replace(/[?&]$/, "");
17975
- let options_ = {
17976
- method: "DELETE",
17977
- headers: {}
17978
- };
17979
- return this.transformOptions(options_).then(transformedOptions_ => {
17980
- return this.http.fetch(url_, transformedOptions_);
17981
- }).then((_response) => {
17982
- return this.processDeleteMeasurementForm(_response);
17983
- });
17984
- }
17985
- processDeleteMeasurementForm(response) {
17986
- const status = response.status;
17987
- let _headers = {};
17988
- if (response.headers && response.headers.forEach) {
17989
- response.headers.forEach((v, k) => _headers[k] = v);
17990
- }
17991
- ;
17992
- if (status === 204) {
17993
- return response.text().then((_responseText) => {
17994
- return;
17995
- });
17996
- }
17997
- else if (status !== 200 && status !== 204) {
17998
- return response.text().then((_responseText) => {
17999
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
18000
- });
18001
- }
18002
- return Promise.resolve(null);
18003
- }
18004
- getArchivedMeasurementFormSchema(id) {
18005
- let url_ = this.baseUrl + "/measurementforms/schemas/archived/{id}";
18099
+ updateSchemaGroupedElements(id, request) {
18100
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}/groupedelements";
18006
18101
  if (id === undefined || id === null)
18007
18102
  throw new globalThis.Error("The parameter 'id' must be defined.");
18008
18103
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
18009
18104
  url_ = url_.replace(/[?&]$/, "");
18105
+ const content_ = JSON.stringify(request);
18010
18106
  let options_ = {
18011
- method: "GET",
18107
+ body: content_,
18108
+ method: "PUT",
18012
18109
  headers: {
18110
+ "Content-Type": "application/json",
18013
18111
  "Accept": "application/json"
18014
18112
  }
18015
18113
  };
18016
18114
  return this.transformOptions(options_).then(transformedOptions_ => {
18017
18115
  return this.http.fetch(url_, transformedOptions_);
18018
18116
  }).then((_response) => {
18019
- return this.processGetArchivedMeasurementFormSchema(_response);
18117
+ return this.processUpdateSchemaGroupedElements(_response);
18020
18118
  });
18021
18119
  }
18022
- processGetArchivedMeasurementFormSchema(response) {
18023
- const status = response.status;
18024
- let _headers = {};
18025
- if (response.headers && response.headers.forEach) {
18026
- response.headers.forEach((v, k) => _headers[k] = v);
18027
- }
18028
- ;
18029
- if (status === 200) {
18030
- return response.text().then((_responseText) => {
18031
- let result200 = null;
18032
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
18033
- result200 = MeasurementFormSchemaDto.fromJS(resultData200);
18034
- return result200;
18035
- });
18036
- }
18037
- else if (status !== 200 && status !== 204) {
18038
- return response.text().then((_responseText) => {
18039
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
18040
- });
18041
- }
18042
- return Promise.resolve(null);
18043
- }
18044
- copyMeasurementFormSchema(id, request) {
18045
- let url_ = this.baseUrl + "/measurementforms/schemas/{id}/copy";
18046
- if (id === undefined || id === null)
18047
- throw new globalThis.Error("The parameter 'id' must be defined.");
18048
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
18049
- url_ = url_.replace(/[?&]$/, "");
18050
- const content_ = JSON.stringify(request);
18051
- let options_ = {
18052
- body: content_,
18053
- method: "POST",
18054
- headers: {
18055
- "Content-Type": "application/json",
18056
- "Accept": "application/json"
18057
- }
18058
- };
18059
- return this.transformOptions(options_).then(transformedOptions_ => {
18060
- return this.http.fetch(url_, transformedOptions_);
18061
- }).then((_response) => {
18062
- return this.processCopyMeasurementFormSchema(_response);
18063
- });
18064
- }
18065
- processCopyMeasurementFormSchema(response) {
18066
- const status = response.status;
18067
- let _headers = {};
18068
- if (response.headers && response.headers.forEach) {
18069
- response.headers.forEach((v, k) => _headers[k] = v);
18070
- }
18071
- ;
18072
- if (status === 200) {
18073
- return response.text().then((_responseText) => {
18074
- let result200 = null;
18075
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
18076
- result200 = MeasurementFormDto.fromJS(resultData200);
18077
- return result200;
18078
- });
18079
- }
18080
- else if (status !== 200 && status !== 204) {
18081
- return response.text().then((_responseText) => {
18082
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
18083
- });
18084
- }
18085
- return Promise.resolve(null);
18086
- }
18087
- updateSchemaGroupedElements(id, request) {
18088
- let url_ = this.baseUrl + "/measurementforms/schemas/{id}/groupedelements";
18089
- if (id === undefined || id === null)
18090
- throw new globalThis.Error("The parameter 'id' must be defined.");
18091
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
18092
- url_ = url_.replace(/[?&]$/, "");
18093
- const content_ = JSON.stringify(request);
18094
- let options_ = {
18095
- body: content_,
18096
- method: "PUT",
18097
- headers: {
18098
- "Content-Type": "application/json",
18099
- "Accept": "application/json"
18100
- }
18101
- };
18102
- return this.transformOptions(options_).then(transformedOptions_ => {
18103
- return this.http.fetch(url_, transformedOptions_);
18104
- }).then((_response) => {
18105
- return this.processUpdateSchemaGroupedElements(_response);
18106
- });
18107
- }
18108
- processUpdateSchemaGroupedElements(response) {
18120
+ processUpdateSchemaGroupedElements(response) {
18109
18121
  const status = response.status;
18110
18122
  let _headers = {};
18111
18123
  if (response.headers && response.headers.forEach) {
@@ -20079,6 +20091,94 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
20079
20091
  return Promise.resolve(null);
20080
20092
  }
20081
20093
  }
20094
+ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
20095
+ constructor(configuration, baseUrl, http) {
20096
+ super(configuration);
20097
+ this.jsonParseReviver = undefined;
20098
+ this.http = http ? http : window;
20099
+ this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
20100
+ }
20101
+ getMeasurementFormSchema(id) {
20102
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}";
20103
+ if (id === undefined || id === null)
20104
+ throw new globalThis.Error("The parameter 'id' must be defined.");
20105
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
20106
+ url_ = url_.replace(/[?&]$/, "");
20107
+ let options_ = {
20108
+ method: "GET",
20109
+ headers: {
20110
+ "Accept": "application/json"
20111
+ }
20112
+ };
20113
+ return this.transformOptions(options_).then(transformedOptions_ => {
20114
+ return this.http.fetch(url_, transformedOptions_);
20115
+ }).then((_response) => {
20116
+ return this.processGetMeasurementFormSchema(_response);
20117
+ });
20118
+ }
20119
+ processGetMeasurementFormSchema(response) {
20120
+ const status = response.status;
20121
+ let _headers = {};
20122
+ if (response.headers && response.headers.forEach) {
20123
+ response.headers.forEach((v, k) => _headers[k] = v);
20124
+ }
20125
+ ;
20126
+ if (status === 200) {
20127
+ return response.text().then((_responseText) => {
20128
+ let result200 = null;
20129
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
20130
+ result200 = MeasurementFormSchemaDto.fromJS(resultData200);
20131
+ return result200;
20132
+ });
20133
+ }
20134
+ else if (status !== 200 && status !== 204) {
20135
+ return response.text().then((_responseText) => {
20136
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
20137
+ });
20138
+ }
20139
+ return Promise.resolve(null);
20140
+ }
20141
+ postListMeasurementFormSchemas(request) {
20142
+ let url_ = this.baseUrl + "/measurementforms/schemas/list";
20143
+ url_ = url_.replace(/[?&]$/, "");
20144
+ const content_ = JSON.stringify(request);
20145
+ let options_ = {
20146
+ body: content_,
20147
+ method: "POST",
20148
+ headers: {
20149
+ "Content-Type": "application/json",
20150
+ "Accept": "application/json"
20151
+ }
20152
+ };
20153
+ return this.transformOptions(options_).then(transformedOptions_ => {
20154
+ return this.http.fetch(url_, transformedOptions_);
20155
+ }).then((_response) => {
20156
+ return this.processPostListMeasurementFormSchemas(_response);
20157
+ });
20158
+ }
20159
+ processPostListMeasurementFormSchemas(response) {
20160
+ const status = response.status;
20161
+ let _headers = {};
20162
+ if (response.headers && response.headers.forEach) {
20163
+ response.headers.forEach((v, k) => _headers[k] = v);
20164
+ }
20165
+ ;
20166
+ if (status === 200) {
20167
+ return response.text().then((_responseText) => {
20168
+ let result200 = null;
20169
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
20170
+ result200 = PagedResultOfMeasurementFormListDto.fromJS(resultData200);
20171
+ return result200;
20172
+ });
20173
+ }
20174
+ else if (status !== 200 && status !== 204) {
20175
+ return response.text().then((_responseText) => {
20176
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
20177
+ });
20178
+ }
20179
+ return Promise.resolve(null);
20180
+ }
20181
+ }
20082
20182
  export class MeasurementFormSettingsClient extends AuthorizedApiBase {
20083
20183
  constructor(configuration, baseUrl, http) {
20084
20184
  super(configuration);
@@ -23536,6 +23636,47 @@ export class WorkordersClient extends AuthorizedApiBase {
23536
23636
  }
23537
23637
  return Promise.resolve(null);
23538
23638
  }
23639
+ generateContentPartsForDiscussions() {
23640
+ let url_ = this.baseUrl + "/erp/workorders/generatecontentpartsfordiscussions";
23641
+ url_ = url_.replace(/[?&]$/, "");
23642
+ let options_ = {
23643
+ method: "POST",
23644
+ headers: {
23645
+ "Accept": "application/json"
23646
+ }
23647
+ };
23648
+ return this.transformOptions(options_).then(transformedOptions_ => {
23649
+ return this.http.fetch(url_, transformedOptions_);
23650
+ }).then((_response) => {
23651
+ return this.processGenerateContentPartsForDiscussions(_response);
23652
+ });
23653
+ }
23654
+ processGenerateContentPartsForDiscussions(response) {
23655
+ const status = response.status;
23656
+ let _headers = {};
23657
+ if (response.headers && response.headers.forEach) {
23658
+ response.headers.forEach((v, k) => _headers[k] = v);
23659
+ }
23660
+ ;
23661
+ if (status === 200) {
23662
+ return response.text().then((_responseText) => {
23663
+ let result200 = null;
23664
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
23665
+ if (Array.isArray(resultData200)) {
23666
+ result200 = [];
23667
+ for (let item of resultData200)
23668
+ result200.push(WorkorderDiscussionMessageDto.fromJS(item));
23669
+ }
23670
+ return result200;
23671
+ });
23672
+ }
23673
+ else if (status !== 200 && status !== 204) {
23674
+ return response.text().then((_responseText) => {
23675
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
23676
+ });
23677
+ }
23678
+ return Promise.resolve(null);
23679
+ }
23539
23680
  }
23540
23681
  export class AzureRegionDto {
23541
23682
  constructor(data) {
@@ -24827,6 +24968,32 @@ export class MoveAppSettings {
24827
24968
  return data;
24828
24969
  }
24829
24970
  }
24971
+ export class EngageAppSettings {
24972
+ constructor(data) {
24973
+ if (data) {
24974
+ for (var property in data) {
24975
+ if (data.hasOwnProperty(property))
24976
+ this[property] = data[property];
24977
+ }
24978
+ }
24979
+ }
24980
+ init(_data) {
24981
+ if (_data) {
24982
+ this.myResourceGroup = _data["myResourceGroup"];
24983
+ }
24984
+ }
24985
+ static fromJS(data) {
24986
+ data = typeof data === 'object' ? data : {};
24987
+ let result = new EngageAppSettings();
24988
+ result.init(data);
24989
+ return result;
24990
+ }
24991
+ toJSON(data) {
24992
+ data = typeof data === 'object' ? data : {};
24993
+ data["myResourceGroup"] = this.myResourceGroup;
24994
+ return data;
24995
+ }
24996
+ }
24830
24997
  export class UploadInfoDto {
24831
24998
  constructor(data) {
24832
24999
  if (data) {
@@ -28830,6 +28997,7 @@ export class MeasuringToolDetailDto {
28830
28997
  this.min = _data["min"];
28831
28998
  this.max = _data["max"];
28832
28999
  this.calibrationInterval = _data["calibrationInterval"];
29000
+ this.overriddenCalibrationInterval = _data["overriddenCalibrationInterval"];
28833
29001
  this.serialNumber = _data["serialNumber"];
28834
29002
  this.precision = _data["precision"];
28835
29003
  this.lastCalibrationDate = _data["lastCalibrationDate"] ? new Date(_data["lastCalibrationDate"].toString()) : undefined;
@@ -28860,6 +29028,7 @@ export class MeasuringToolDetailDto {
28860
29028
  data["min"] = this.min;
28861
29029
  data["max"] = this.max;
28862
29030
  data["calibrationInterval"] = this.calibrationInterval;
29031
+ data["overriddenCalibrationInterval"] = this.overriddenCalibrationInterval;
28863
29032
  data["serialNumber"] = this.serialNumber;
28864
29033
  data["precision"] = this.precision;
28865
29034
  data["lastCalibrationDate"] = this.lastCalibrationDate ? this.lastCalibrationDate.toISOString() : undefined;
@@ -42653,141 +42822,6 @@ export class CreateWeldingIotConfig {
42653
42822
  return data;
42654
42823
  }
42655
42824
  }
42656
- export class PagedResultOfMeasurementFormListDto {
42657
- constructor(data) {
42658
- if (data) {
42659
- for (var property in data) {
42660
- if (data.hasOwnProperty(property))
42661
- this[property] = data[property];
42662
- }
42663
- }
42664
- if (!data) {
42665
- this.results = [];
42666
- }
42667
- }
42668
- init(_data) {
42669
- if (_data) {
42670
- if (Array.isArray(_data["results"])) {
42671
- this.results = [];
42672
- for (let item of _data["results"])
42673
- this.results.push(MeasurementFormListDto.fromJS(item));
42674
- }
42675
- this.continuationToken = _data["continuationToken"];
42676
- }
42677
- }
42678
- static fromJS(data) {
42679
- data = typeof data === 'object' ? data : {};
42680
- let result = new PagedResultOfMeasurementFormListDto();
42681
- result.init(data);
42682
- return result;
42683
- }
42684
- toJSON(data) {
42685
- data = typeof data === 'object' ? data : {};
42686
- if (Array.isArray(this.results)) {
42687
- data["results"] = [];
42688
- for (let item of this.results)
42689
- data["results"].push(item ? item.toJSON() : undefined);
42690
- }
42691
- data["continuationToken"] = this.continuationToken;
42692
- return data;
42693
- }
42694
- }
42695
- export class MeasurementFormListDto {
42696
- constructor(data) {
42697
- if (data) {
42698
- for (var property in data) {
42699
- if (data.hasOwnProperty(property))
42700
- this[property] = data[property];
42701
- }
42702
- }
42703
- }
42704
- init(_data) {
42705
- if (_data) {
42706
- this.id = _data["id"];
42707
- this.schemaId = _data["schemaId"];
42708
- this.versionId = _data["versionId"];
42709
- this.customerId = _data["customerId"];
42710
- this.customerName = _data["customerName"];
42711
- this.partNumber = _data["partNumber"];
42712
- this.partRevision = _data["partRevision"];
42713
- this.partName = _data["partName"];
42714
- this.drawing = _data["drawing"];
42715
- this.drawingRevision = _data["drawingRevision"];
42716
- this.createdBy = _data["createdBy"];
42717
- this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined;
42718
- this.status = _data["status"];
42719
- this.source = _data["source"];
42720
- }
42721
- }
42722
- static fromJS(data) {
42723
- data = typeof data === 'object' ? data : {};
42724
- let result = new MeasurementFormListDto();
42725
- result.init(data);
42726
- return result;
42727
- }
42728
- toJSON(data) {
42729
- data = typeof data === 'object' ? data : {};
42730
- data["id"] = this.id;
42731
- data["schemaId"] = this.schemaId;
42732
- data["versionId"] = this.versionId;
42733
- data["customerId"] = this.customerId;
42734
- data["customerName"] = this.customerName;
42735
- data["partNumber"] = this.partNumber;
42736
- data["partRevision"] = this.partRevision;
42737
- data["partName"] = this.partName;
42738
- data["drawing"] = this.drawing;
42739
- data["drawingRevision"] = this.drawingRevision;
42740
- data["createdBy"] = this.createdBy;
42741
- data["created"] = this.created ? this.created.toISOString() : undefined;
42742
- data["status"] = this.status;
42743
- data["source"] = this.source;
42744
- return data;
42745
- }
42746
- }
42747
- export class ListMeasurementFormSchemasRequest {
42748
- constructor(data) {
42749
- if (data) {
42750
- for (var property in data) {
42751
- if (data.hasOwnProperty(property))
42752
- this[property] = data[property];
42753
- }
42754
- }
42755
- }
42756
- init(_data) {
42757
- if (_data) {
42758
- this.pageSize = _data["pageSize"];
42759
- this.customerId = _data["customerId"];
42760
- this.customerName = _data["customerName"];
42761
- this.partName = _data["partName"];
42762
- this.partNumber = _data["partNumber"];
42763
- this.partRevision = _data["partRevision"];
42764
- this.drawing = _data["drawing"];
42765
- this.drawingRevision = _data["drawingRevision"];
42766
- this.filter = _data["filter"];
42767
- this.continuationToken = _data["continuationToken"];
42768
- }
42769
- }
42770
- static fromJS(data) {
42771
- data = typeof data === 'object' ? data : {};
42772
- let result = new ListMeasurementFormSchemasRequest();
42773
- result.init(data);
42774
- return result;
42775
- }
42776
- toJSON(data) {
42777
- data = typeof data === 'object' ? data : {};
42778
- data["pageSize"] = this.pageSize;
42779
- data["customerId"] = this.customerId;
42780
- data["customerName"] = this.customerName;
42781
- data["partName"] = this.partName;
42782
- data["partNumber"] = this.partNumber;
42783
- data["partRevision"] = this.partRevision;
42784
- data["drawing"] = this.drawing;
42785
- data["drawingRevision"] = this.drawingRevision;
42786
- data["filter"] = this.filter;
42787
- data["continuationToken"] = this.continuationToken;
42788
- return data;
42789
- }
42790
- }
42791
42825
  export class MeasurementFormSchemaDto {
42792
42826
  constructor(data) {
42793
42827
  if (data) {
@@ -43579,6 +43613,97 @@ export class MeasurementFormImportStatusDto {
43579
43613
  return data;
43580
43614
  }
43581
43615
  }
43616
+ export class PagedResultOfMeasurementFormListDto {
43617
+ constructor(data) {
43618
+ if (data) {
43619
+ for (var property in data) {
43620
+ if (data.hasOwnProperty(property))
43621
+ this[property] = data[property];
43622
+ }
43623
+ }
43624
+ if (!data) {
43625
+ this.results = [];
43626
+ }
43627
+ }
43628
+ init(_data) {
43629
+ if (_data) {
43630
+ if (Array.isArray(_data["results"])) {
43631
+ this.results = [];
43632
+ for (let item of _data["results"])
43633
+ this.results.push(MeasurementFormListDto.fromJS(item));
43634
+ }
43635
+ this.continuationToken = _data["continuationToken"];
43636
+ }
43637
+ }
43638
+ static fromJS(data) {
43639
+ data = typeof data === 'object' ? data : {};
43640
+ let result = new PagedResultOfMeasurementFormListDto();
43641
+ result.init(data);
43642
+ return result;
43643
+ }
43644
+ toJSON(data) {
43645
+ data = typeof data === 'object' ? data : {};
43646
+ if (Array.isArray(this.results)) {
43647
+ data["results"] = [];
43648
+ for (let item of this.results)
43649
+ data["results"].push(item ? item.toJSON() : undefined);
43650
+ }
43651
+ data["continuationToken"] = this.continuationToken;
43652
+ return data;
43653
+ }
43654
+ }
43655
+ export class MeasurementFormListDto {
43656
+ constructor(data) {
43657
+ if (data) {
43658
+ for (var property in data) {
43659
+ if (data.hasOwnProperty(property))
43660
+ this[property] = data[property];
43661
+ }
43662
+ }
43663
+ }
43664
+ init(_data) {
43665
+ if (_data) {
43666
+ this.id = _data["id"];
43667
+ this.schemaId = _data["schemaId"];
43668
+ this.versionId = _data["versionId"];
43669
+ this.customerId = _data["customerId"];
43670
+ this.customerName = _data["customerName"];
43671
+ this.partNumber = _data["partNumber"];
43672
+ this.partRevision = _data["partRevision"];
43673
+ this.partName = _data["partName"];
43674
+ this.drawing = _data["drawing"];
43675
+ this.drawingRevision = _data["drawingRevision"];
43676
+ this.createdBy = _data["createdBy"];
43677
+ this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined;
43678
+ this.status = _data["status"];
43679
+ this.source = _data["source"];
43680
+ }
43681
+ }
43682
+ static fromJS(data) {
43683
+ data = typeof data === 'object' ? data : {};
43684
+ let result = new MeasurementFormListDto();
43685
+ result.init(data);
43686
+ return result;
43687
+ }
43688
+ toJSON(data) {
43689
+ data = typeof data === 'object' ? data : {};
43690
+ data["id"] = this.id;
43691
+ data["schemaId"] = this.schemaId;
43692
+ data["versionId"] = this.versionId;
43693
+ data["customerId"] = this.customerId;
43694
+ data["customerName"] = this.customerName;
43695
+ data["partNumber"] = this.partNumber;
43696
+ data["partRevision"] = this.partRevision;
43697
+ data["partName"] = this.partName;
43698
+ data["drawing"] = this.drawing;
43699
+ data["drawingRevision"] = this.drawingRevision;
43700
+ data["createdBy"] = this.createdBy;
43701
+ data["created"] = this.created ? this.created.toISOString() : undefined;
43702
+ data["status"] = this.status;
43703
+ data["source"] = this.source;
43704
+ return data;
43705
+ }
43706
+ }
43582
43707
  export class ListLinkableMeasurementFormSchemasRequest {
43583
43708
  constructor(data) {
43584
43709
  if (data) {
@@ -44705,6 +44830,50 @@ export class ListMeasurementFormSchemasWithHistoryRequest {
44705
44830
  return data;
44706
44831
  }
44707
44832
  }
44833
+ export class ListMeasurementFormSchemasRequest {
44834
+ constructor(data) {
44835
+ if (data) {
44836
+ for (var property in data) {
44837
+ if (data.hasOwnProperty(property))
44838
+ this[property] = data[property];
44839
+ }
44840
+ }
44841
+ }
44842
+ init(_data) {
44843
+ if (_data) {
44844
+ this.pageSize = _data["pageSize"];
44845
+ this.customerId = _data["customerId"];
44846
+ this.customerName = _data["customerName"];
44847
+ this.partName = _data["partName"];
44848
+ this.partNumber = _data["partNumber"];
44849
+ this.partRevision = _data["partRevision"];
44850
+ this.drawing = _data["drawing"];
44851
+ this.drawingRevision = _data["drawingRevision"];
44852
+ this.filter = _data["filter"];
44853
+ this.continuationToken = _data["continuationToken"];
44854
+ }
44855
+ }
44856
+ static fromJS(data) {
44857
+ data = typeof data === 'object' ? data : {};
44858
+ let result = new ListMeasurementFormSchemasRequest();
44859
+ result.init(data);
44860
+ return result;
44861
+ }
44862
+ toJSON(data) {
44863
+ data = typeof data === 'object' ? data : {};
44864
+ data["pageSize"] = this.pageSize;
44865
+ data["customerId"] = this.customerId;
44866
+ data["customerName"] = this.customerName;
44867
+ data["partName"] = this.partName;
44868
+ data["partNumber"] = this.partNumber;
44869
+ data["partRevision"] = this.partRevision;
44870
+ data["drawing"] = this.drawing;
44871
+ data["drawingRevision"] = this.drawingRevision;
44872
+ data["filter"] = this.filter;
44873
+ data["continuationToken"] = this.continuationToken;
44874
+ return data;
44875
+ }
44876
+ }
44708
44877
  export class PagedResultOfMeasurementFormInstanceOverviewDto {
44709
44878
  constructor(data) {
44710
44879
  if (data) {
@@ -47656,6 +47825,11 @@ export class WorkorderDiscussionMessageDto {
47656
47825
  this.workorderId = _data["workorderId"];
47657
47826
  this.companyId = _data["companyId"];
47658
47827
  this.content = _data["content"];
47828
+ if (Array.isArray(_data["contentParts"])) {
47829
+ this.contentParts = [];
47830
+ for (let item of _data["contentParts"])
47831
+ this.contentParts.push(WorkOrderDiscussionContent.fromJS(item));
47832
+ }
47659
47833
  this.senderUpn = _data["senderUpn"];
47660
47834
  this.senderName = _data["senderName"];
47661
47835
  this.operationId = _data["operationId"];
@@ -47676,6 +47850,11 @@ export class WorkorderDiscussionMessageDto {
47676
47850
  data["workorderId"] = this.workorderId;
47677
47851
  data["companyId"] = this.companyId;
47678
47852
  data["content"] = this.content;
47853
+ if (Array.isArray(this.contentParts)) {
47854
+ data["contentParts"] = [];
47855
+ for (let item of this.contentParts)
47856
+ data["contentParts"].push(item ? item.toJSON() : undefined);
47857
+ }
47679
47858
  data["senderUpn"] = this.senderUpn;
47680
47859
  data["senderName"] = this.senderName;
47681
47860
  data["operationId"] = this.operationId;
@@ -47685,6 +47864,34 @@ export class WorkorderDiscussionMessageDto {
47685
47864
  return data;
47686
47865
  }
47687
47866
  }
47867
+ export class WorkOrderDiscussionContent {
47868
+ constructor(data) {
47869
+ if (data) {
47870
+ for (var property in data) {
47871
+ if (data.hasOwnProperty(property))
47872
+ this[property] = data[property];
47873
+ }
47874
+ }
47875
+ }
47876
+ init(_data) {
47877
+ if (_data) {
47878
+ this.type = _data["type"];
47879
+ this.value = _data["value"];
47880
+ }
47881
+ }
47882
+ static fromJS(data) {
47883
+ data = typeof data === 'object' ? data : {};
47884
+ let result = new WorkOrderDiscussionContent();
47885
+ result.init(data);
47886
+ return result;
47887
+ }
47888
+ toJSON(data) {
47889
+ data = typeof data === 'object' ? data : {};
47890
+ data["type"] = this.type;
47891
+ data["value"] = this.value;
47892
+ return data;
47893
+ }
47894
+ }
47688
47895
  export class AddDiscussionMessageRequest {
47689
47896
  constructor(data) {
47690
47897
  if (data) {