@ignos/api-client 20250228.0.11282 → 20250307.0.11317

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.
@@ -1904,6 +1904,8 @@ export interface IMeasurementFormSchemasClient {
1904
1904
  getMeasurementFormSchema(id: string): Promise<MeasurementFormSchemaDto>;
1905
1905
  updateMeasurementFormSchema(id: string, request: UpdateMeasurementFormSchemaRequest): Promise<MeasurementFormSchemaDto>;
1906
1906
  updateSchemaGroupedElements(id: string, request: UpdateSchemaGroupedElementsRequest): Promise<MeasurementFormSchemaDto>;
1907
+ updateSchemaRow(id: string, request: UpdateSchemaGroupedElementRowDto): Promise<MeasurementFormSchemaDto>;
1908
+ uploadMeasurementImage(id: string, request: UploadMeasurementImageRequest): Promise<MeasurementFormSchemaDto>;
1907
1909
  uploadSchemaDrawing(id: string, request: UploadDrawingRequest): Promise<MeasurementFormSchemaDto>;
1908
1910
  uploadSchemaAttachment(id: string, request: UploadRequest): Promise<MeasurementFormSchemaDto>;
1909
1911
  getMeasurementFormImportStatus(id: string): Promise<MeasurementFormImportStatusDto>;
@@ -1971,6 +1973,10 @@ export declare class MeasurementFormSchemasClient extends AuthorizedApiBase impl
1971
1973
  protected processUpdateMeasurementFormSchema(response: Response): Promise<MeasurementFormSchemaDto>;
1972
1974
  updateSchemaGroupedElements(id: string, request: UpdateSchemaGroupedElementsRequest): Promise<MeasurementFormSchemaDto>;
1973
1975
  protected processUpdateSchemaGroupedElements(response: Response): Promise<MeasurementFormSchemaDto>;
1976
+ updateSchemaRow(id: string, request: UpdateSchemaGroupedElementRowDto): Promise<MeasurementFormSchemaDto>;
1977
+ protected processUpdateSchemaRow(response: Response): Promise<MeasurementFormSchemaDto>;
1978
+ uploadMeasurementImage(id: string, request: UploadMeasurementImageRequest): Promise<MeasurementFormSchemaDto>;
1979
+ protected processUploadMeasurementImage(response: Response): Promise<MeasurementFormSchemaDto>;
1974
1980
  uploadSchemaDrawing(id: string, request: UploadDrawingRequest): Promise<MeasurementFormSchemaDto>;
1975
1981
  protected processUploadSchemaDrawing(response: Response): Promise<MeasurementFormSchemaDto>;
1976
1982
  uploadSchemaAttachment(id: string, request: UploadRequest): Promise<MeasurementFormSchemaDto>;
@@ -2072,6 +2078,7 @@ export interface IMeasurementFormsInstancesClient {
2072
2078
  createMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto>;
2073
2079
  updateMeasurementFormInstance(id: string, request: UpdateMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto>;
2074
2080
  listMeasurementFormInstanceFeedback(id: string): Promise<MeasurementFormInstanceFeedbackDto[]>;
2081
+ createMeasurementFormInstance2(id: string, schemaId: string | null | undefined, sequenceCount: number | undefined): Promise<MeasurementFormInstanceDto>;
2075
2082
  completeMeasurementFormInstance(id: string, tenantId: string | null | undefined): Promise<MeasurementFormInstanceDto>;
2076
2083
  reactivateMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto>;
2077
2084
  approveMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto>;
@@ -2119,6 +2126,8 @@ export declare class MeasurementFormsInstancesClient extends AuthorizedApiBase i
2119
2126
  protected processUpdateMeasurementFormInstance(response: Response): Promise<MeasurementFormInstanceDto>;
2120
2127
  listMeasurementFormInstanceFeedback(id: string): Promise<MeasurementFormInstanceFeedbackDto[]>;
2121
2128
  protected processListMeasurementFormInstanceFeedback(response: Response): Promise<MeasurementFormInstanceFeedbackDto[]>;
2129
+ createMeasurementFormInstance2(id: string, schemaId: string | null | undefined, sequenceCount: number | undefined): Promise<MeasurementFormInstanceDto>;
2130
+ protected processCreateMeasurementFormInstance2(response: Response): Promise<MeasurementFormInstanceDto>;
2122
2131
  completeMeasurementFormInstance(id: string, tenantId: string | null | undefined): Promise<MeasurementFormInstanceDto>;
2123
2132
  protected processCompleteMeasurementFormInstance(response: Response): Promise<MeasurementFormInstanceDto>;
2124
2133
  reactivateMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto>;
@@ -3653,6 +3662,7 @@ export interface INamedCompanyUtilizationDto extends ICompanyUtilizationDto {
3653
3662
  export declare class UtilizationDatapointListDto implements IUtilizationDatapointListDto {
3654
3663
  datapoints?: NumericNullableValueWithTimestamp[];
3655
3664
  trendDatapoints?: NumericNullableValueWithTimestamp[];
3665
+ linearTrendDatapoints?: NumericNullableValueWithTimestamp[];
3656
3666
  constructor(data?: IUtilizationDatapointListDto);
3657
3667
  init(_data?: any): void;
3658
3668
  static fromJS(data: any): UtilizationDatapointListDto;
@@ -3661,6 +3671,7 @@ export declare class UtilizationDatapointListDto implements IUtilizationDatapoin
3661
3671
  export interface IUtilizationDatapointListDto {
3662
3672
  datapoints?: NumericNullableValueWithTimestamp[];
3663
3673
  trendDatapoints?: NumericNullableValueWithTimestamp[];
3674
+ linearTrendDatapoints?: NumericNullableValueWithTimestamp[];
3664
3675
  }
3665
3676
  export declare class MachineUtilizationDatapointListDto extends UtilizationDatapointListDto implements IMachineUtilizationDatapointListDto {
3666
3677
  externalId: string;
@@ -11071,6 +11082,60 @@ export interface IUpdateSchemaGroupedElementDto {
11071
11082
  canCopy?: boolean | null;
11072
11083
  isDocumentedExternally: boolean;
11073
11084
  }
11085
+ export declare class UpdateSchemaGroupedElementRowDto implements IUpdateSchemaGroupedElementRowDto {
11086
+ balloonId: string;
11087
+ section?: string | null;
11088
+ pageNumber?: number | null;
11089
+ nominal?: number | null;
11090
+ type?: string | null;
11091
+ subType?: string | null;
11092
+ unitOfMeasure?: string | null;
11093
+ plusTolerance?: number | null;
11094
+ minusTolerance?: number | null;
11095
+ coatingThickness?: number | null;
11096
+ comments?: string | null;
11097
+ frequency: MeasurementFrequency;
11098
+ frequencyParameter?: number | null;
11099
+ includeInCustomerDocumentation: boolean;
11100
+ canCopy?: boolean | null;
11101
+ isDocumentedExternally: boolean;
11102
+ constructor(data?: IUpdateSchemaGroupedElementRowDto);
11103
+ init(_data?: any): void;
11104
+ static fromJS(data: any): UpdateSchemaGroupedElementRowDto;
11105
+ toJSON(data?: any): any;
11106
+ }
11107
+ export interface IUpdateSchemaGroupedElementRowDto {
11108
+ balloonId: string;
11109
+ section?: string | null;
11110
+ pageNumber?: number | null;
11111
+ nominal?: number | null;
11112
+ type?: string | null;
11113
+ subType?: string | null;
11114
+ unitOfMeasure?: string | null;
11115
+ plusTolerance?: number | null;
11116
+ minusTolerance?: number | null;
11117
+ coatingThickness?: number | null;
11118
+ comments?: string | null;
11119
+ frequency: MeasurementFrequency;
11120
+ frequencyParameter?: number | null;
11121
+ includeInCustomerDocumentation: boolean;
11122
+ canCopy?: boolean | null;
11123
+ isDocumentedExternally: boolean;
11124
+ }
11125
+ export declare class UploadMeasurementImageRequest implements IUploadMeasurementImageRequest {
11126
+ uploadKey: string;
11127
+ filename: string;
11128
+ ballonId: string;
11129
+ constructor(data?: IUploadMeasurementImageRequest);
11130
+ init(_data?: any): void;
11131
+ static fromJS(data: any): UploadMeasurementImageRequest;
11132
+ toJSON(data?: any): any;
11133
+ }
11134
+ export interface IUploadMeasurementImageRequest {
11135
+ uploadKey: string;
11136
+ filename: string;
11137
+ ballonId: string;
11138
+ }
11074
11139
  export declare class UploadDrawingRequest implements IUploadDrawingRequest {
11075
11140
  uploadKey: string;
11076
11141
  filename: string;
@@ -15673,6 +15673,92 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
15673
15673
  }
15674
15674
  return Promise.resolve(null);
15675
15675
  }
15676
+ updateSchemaRow(id, request) {
15677
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}/updaterow";
15678
+ if (id === undefined || id === null)
15679
+ throw new Error("The parameter 'id' must be defined.");
15680
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
15681
+ url_ = url_.replace(/[?&]$/, "");
15682
+ const content_ = JSON.stringify(request);
15683
+ let options_ = {
15684
+ body: content_,
15685
+ method: "PUT",
15686
+ headers: {
15687
+ "Content-Type": "application/json",
15688
+ "Accept": "application/json"
15689
+ }
15690
+ };
15691
+ return this.transformOptions(options_).then(transformedOptions_ => {
15692
+ return this.http.fetch(url_, transformedOptions_);
15693
+ }).then((_response) => {
15694
+ return this.processUpdateSchemaRow(_response);
15695
+ });
15696
+ }
15697
+ processUpdateSchemaRow(response) {
15698
+ const status = response.status;
15699
+ let _headers = {};
15700
+ if (response.headers && response.headers.forEach) {
15701
+ response.headers.forEach((v, k) => _headers[k] = v);
15702
+ }
15703
+ ;
15704
+ if (status === 200) {
15705
+ return response.text().then((_responseText) => {
15706
+ let result200 = null;
15707
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
15708
+ result200 = MeasurementFormSchemaDto.fromJS(resultData200);
15709
+ return result200;
15710
+ });
15711
+ }
15712
+ else if (status !== 200 && status !== 204) {
15713
+ return response.text().then((_responseText) => {
15714
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
15715
+ });
15716
+ }
15717
+ return Promise.resolve(null);
15718
+ }
15719
+ uploadMeasurementImage(id, request) {
15720
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploadmeasurementimage";
15721
+ if (id === undefined || id === null)
15722
+ throw new Error("The parameter 'id' must be defined.");
15723
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
15724
+ url_ = url_.replace(/[?&]$/, "");
15725
+ const content_ = JSON.stringify(request);
15726
+ let options_ = {
15727
+ body: content_,
15728
+ method: "PUT",
15729
+ headers: {
15730
+ "Content-Type": "application/json",
15731
+ "Accept": "application/json"
15732
+ }
15733
+ };
15734
+ return this.transformOptions(options_).then(transformedOptions_ => {
15735
+ return this.http.fetch(url_, transformedOptions_);
15736
+ }).then((_response) => {
15737
+ return this.processUploadMeasurementImage(_response);
15738
+ });
15739
+ }
15740
+ processUploadMeasurementImage(response) {
15741
+ const status = response.status;
15742
+ let _headers = {};
15743
+ if (response.headers && response.headers.forEach) {
15744
+ response.headers.forEach((v, k) => _headers[k] = v);
15745
+ }
15746
+ ;
15747
+ if (status === 200) {
15748
+ return response.text().then((_responseText) => {
15749
+ let result200 = null;
15750
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
15751
+ result200 = MeasurementFormSchemaDto.fromJS(resultData200);
15752
+ return result200;
15753
+ });
15754
+ }
15755
+ else if (status !== 200 && status !== 204) {
15756
+ return response.text().then((_responseText) => {
15757
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
15758
+ });
15759
+ }
15760
+ return Promise.resolve(null);
15761
+ }
15676
15762
  uploadSchemaDrawing(id, request) {
15677
15763
  let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploaddrawing";
15678
15764
  if (id === undefined || id === null)
@@ -17880,6 +17966,52 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
17880
17966
  }
17881
17967
  return Promise.resolve(null);
17882
17968
  }
17969
+ createMeasurementFormInstance2(id, schemaId, sequenceCount) {
17970
+ let url_ = this.baseUrl + "/measurementforms/instances/{id}/createinstance?";
17971
+ if (id === undefined || id === null)
17972
+ throw new Error("The parameter 'id' must be defined.");
17973
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
17974
+ if (schemaId !== undefined && schemaId !== null)
17975
+ url_ += "schemaId=" + encodeURIComponent("" + schemaId) + "&";
17976
+ if (sequenceCount === null)
17977
+ throw new Error("The parameter 'sequenceCount' cannot be null.");
17978
+ else if (sequenceCount !== undefined)
17979
+ url_ += "sequenceCount=" + encodeURIComponent("" + sequenceCount) + "&";
17980
+ url_ = url_.replace(/[?&]$/, "");
17981
+ let options_ = {
17982
+ method: "POST",
17983
+ headers: {
17984
+ "Accept": "application/json"
17985
+ }
17986
+ };
17987
+ return this.transformOptions(options_).then(transformedOptions_ => {
17988
+ return this.http.fetch(url_, transformedOptions_);
17989
+ }).then((_response) => {
17990
+ return this.processCreateMeasurementFormInstance2(_response);
17991
+ });
17992
+ }
17993
+ processCreateMeasurementFormInstance2(response) {
17994
+ const status = response.status;
17995
+ let _headers = {};
17996
+ if (response.headers && response.headers.forEach) {
17997
+ response.headers.forEach((v, k) => _headers[k] = v);
17998
+ }
17999
+ ;
18000
+ if (status === 200) {
18001
+ return response.text().then((_responseText) => {
18002
+ let result200 = null;
18003
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
18004
+ result200 = MeasurementFormInstanceDto.fromJS(resultData200);
18005
+ return result200;
18006
+ });
18007
+ }
18008
+ else if (status !== 200 && status !== 204) {
18009
+ return response.text().then((_responseText) => {
18010
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
18011
+ });
18012
+ }
18013
+ return Promise.resolve(null);
18014
+ }
17883
18015
  completeMeasurementFormInstance(id, tenantId) {
17884
18016
  let url_ = this.baseUrl + "/measurementforms/instances/{id}/complete?";
17885
18017
  if (id === undefined || id === null)
@@ -23264,6 +23396,11 @@ export class UtilizationDatapointListDto {
23264
23396
  for (let item of _data["trendDatapoints"])
23265
23397
  this.trendDatapoints.push(NumericNullableValueWithTimestamp.fromJS(item));
23266
23398
  }
23399
+ if (Array.isArray(_data["linearTrendDatapoints"])) {
23400
+ this.linearTrendDatapoints = [];
23401
+ for (let item of _data["linearTrendDatapoints"])
23402
+ this.linearTrendDatapoints.push(NumericNullableValueWithTimestamp.fromJS(item));
23403
+ }
23267
23404
  }
23268
23405
  }
23269
23406
  static fromJS(data) {
@@ -23284,6 +23421,11 @@ export class UtilizationDatapointListDto {
23284
23421
  for (let item of this.trendDatapoints)
23285
23422
  data["trendDatapoints"].push(item.toJSON());
23286
23423
  }
23424
+ if (Array.isArray(this.linearTrendDatapoints)) {
23425
+ data["linearTrendDatapoints"] = [];
23426
+ for (let item of this.linearTrendDatapoints)
23427
+ data["linearTrendDatapoints"].push(item.toJSON());
23428
+ }
23287
23429
  return data;
23288
23430
  }
23289
23431
  }
@@ -38440,6 +38582,92 @@ export class UpdateSchemaGroupedElementDto {
38440
38582
  return data;
38441
38583
  }
38442
38584
  }
38585
+ export class UpdateSchemaGroupedElementRowDto {
38586
+ constructor(data) {
38587
+ if (data) {
38588
+ for (var property in data) {
38589
+ if (data.hasOwnProperty(property))
38590
+ this[property] = data[property];
38591
+ }
38592
+ }
38593
+ }
38594
+ init(_data) {
38595
+ if (_data) {
38596
+ this.balloonId = _data["balloonId"];
38597
+ this.section = _data["section"];
38598
+ this.pageNumber = _data["pageNumber"];
38599
+ this.nominal = _data["nominal"];
38600
+ this.type = _data["type"];
38601
+ this.subType = _data["subType"];
38602
+ this.unitOfMeasure = _data["unitOfMeasure"];
38603
+ this.plusTolerance = _data["plusTolerance"];
38604
+ this.minusTolerance = _data["minusTolerance"];
38605
+ this.coatingThickness = _data["coatingThickness"];
38606
+ this.comments = _data["comments"];
38607
+ this.frequency = _data["frequency"];
38608
+ this.frequencyParameter = _data["frequencyParameter"];
38609
+ this.includeInCustomerDocumentation = _data["includeInCustomerDocumentation"];
38610
+ this.canCopy = _data["canCopy"];
38611
+ this.isDocumentedExternally = _data["isDocumentedExternally"];
38612
+ }
38613
+ }
38614
+ static fromJS(data) {
38615
+ data = typeof data === 'object' ? data : {};
38616
+ let result = new UpdateSchemaGroupedElementRowDto();
38617
+ result.init(data);
38618
+ return result;
38619
+ }
38620
+ toJSON(data) {
38621
+ data = typeof data === 'object' ? data : {};
38622
+ data["balloonId"] = this.balloonId;
38623
+ data["section"] = this.section;
38624
+ data["pageNumber"] = this.pageNumber;
38625
+ data["nominal"] = this.nominal;
38626
+ data["type"] = this.type;
38627
+ data["subType"] = this.subType;
38628
+ data["unitOfMeasure"] = this.unitOfMeasure;
38629
+ data["plusTolerance"] = this.plusTolerance;
38630
+ data["minusTolerance"] = this.minusTolerance;
38631
+ data["coatingThickness"] = this.coatingThickness;
38632
+ data["comments"] = this.comments;
38633
+ data["frequency"] = this.frequency;
38634
+ data["frequencyParameter"] = this.frequencyParameter;
38635
+ data["includeInCustomerDocumentation"] = this.includeInCustomerDocumentation;
38636
+ data["canCopy"] = this.canCopy;
38637
+ data["isDocumentedExternally"] = this.isDocumentedExternally;
38638
+ return data;
38639
+ }
38640
+ }
38641
+ export class UploadMeasurementImageRequest {
38642
+ constructor(data) {
38643
+ if (data) {
38644
+ for (var property in data) {
38645
+ if (data.hasOwnProperty(property))
38646
+ this[property] = data[property];
38647
+ }
38648
+ }
38649
+ }
38650
+ init(_data) {
38651
+ if (_data) {
38652
+ this.uploadKey = _data["uploadKey"];
38653
+ this.filename = _data["filename"];
38654
+ this.ballonId = _data["ballonId"];
38655
+ }
38656
+ }
38657
+ static fromJS(data) {
38658
+ data = typeof data === 'object' ? data : {};
38659
+ let result = new UploadMeasurementImageRequest();
38660
+ result.init(data);
38661
+ return result;
38662
+ }
38663
+ toJSON(data) {
38664
+ data = typeof data === 'object' ? data : {};
38665
+ data["uploadKey"] = this.uploadKey;
38666
+ data["filename"] = this.filename;
38667
+ data["ballonId"] = this.ballonId;
38668
+ return data;
38669
+ }
38670
+ }
38443
38671
  export class UploadDrawingRequest {
38444
38672
  constructor(data) {
38445
38673
  if (data) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20250228.0.11282",
3
+ "version": "20250307.0.11317",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -16491,6 +16491,10 @@ export interface IMeasurementFormSchemasClient {
16491
16491
 
16492
16492
  updateSchemaGroupedElements(id: string, request: UpdateSchemaGroupedElementsRequest): Promise<MeasurementFormSchemaDto>;
16493
16493
 
16494
+ updateSchemaRow(id: string, request: UpdateSchemaGroupedElementRowDto): Promise<MeasurementFormSchemaDto>;
16495
+
16496
+ uploadMeasurementImage(id: string, request: UploadMeasurementImageRequest): Promise<MeasurementFormSchemaDto>;
16497
+
16494
16498
  uploadSchemaDrawing(id: string, request: UploadDrawingRequest): Promise<MeasurementFormSchemaDto>;
16495
16499
 
16496
16500
  uploadSchemaAttachment(id: string, request: UploadRequest): Promise<MeasurementFormSchemaDto>;
@@ -16855,6 +16859,92 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
16855
16859
  return Promise.resolve<MeasurementFormSchemaDto>(null as any);
16856
16860
  }
16857
16861
 
16862
+ updateSchemaRow(id: string, request: UpdateSchemaGroupedElementRowDto): Promise<MeasurementFormSchemaDto> {
16863
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}/updaterow";
16864
+ if (id === undefined || id === null)
16865
+ throw new Error("The parameter 'id' must be defined.");
16866
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
16867
+ url_ = url_.replace(/[?&]$/, "");
16868
+
16869
+ const content_ = JSON.stringify(request);
16870
+
16871
+ let options_: RequestInit = {
16872
+ body: content_,
16873
+ method: "PUT",
16874
+ headers: {
16875
+ "Content-Type": "application/json",
16876
+ "Accept": "application/json"
16877
+ }
16878
+ };
16879
+
16880
+ return this.transformOptions(options_).then(transformedOptions_ => {
16881
+ return this.http.fetch(url_, transformedOptions_);
16882
+ }).then((_response: Response) => {
16883
+ return this.processUpdateSchemaRow(_response);
16884
+ });
16885
+ }
16886
+
16887
+ protected processUpdateSchemaRow(response: Response): Promise<MeasurementFormSchemaDto> {
16888
+ const status = response.status;
16889
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
16890
+ if (status === 200) {
16891
+ return response.text().then((_responseText) => {
16892
+ let result200: any = null;
16893
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
16894
+ result200 = MeasurementFormSchemaDto.fromJS(resultData200);
16895
+ return result200;
16896
+ });
16897
+ } else if (status !== 200 && status !== 204) {
16898
+ return response.text().then((_responseText) => {
16899
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
16900
+ });
16901
+ }
16902
+ return Promise.resolve<MeasurementFormSchemaDto>(null as any);
16903
+ }
16904
+
16905
+ uploadMeasurementImage(id: string, request: UploadMeasurementImageRequest): Promise<MeasurementFormSchemaDto> {
16906
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploadmeasurementimage";
16907
+ if (id === undefined || id === null)
16908
+ throw new Error("The parameter 'id' must be defined.");
16909
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
16910
+ url_ = url_.replace(/[?&]$/, "");
16911
+
16912
+ const content_ = JSON.stringify(request);
16913
+
16914
+ let options_: RequestInit = {
16915
+ body: content_,
16916
+ method: "PUT",
16917
+ headers: {
16918
+ "Content-Type": "application/json",
16919
+ "Accept": "application/json"
16920
+ }
16921
+ };
16922
+
16923
+ return this.transformOptions(options_).then(transformedOptions_ => {
16924
+ return this.http.fetch(url_, transformedOptions_);
16925
+ }).then((_response: Response) => {
16926
+ return this.processUploadMeasurementImage(_response);
16927
+ });
16928
+ }
16929
+
16930
+ protected processUploadMeasurementImage(response: Response): Promise<MeasurementFormSchemaDto> {
16931
+ const status = response.status;
16932
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
16933
+ if (status === 200) {
16934
+ return response.text().then((_responseText) => {
16935
+ let result200: any = null;
16936
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
16937
+ result200 = MeasurementFormSchemaDto.fromJS(resultData200);
16938
+ return result200;
16939
+ });
16940
+ } else if (status !== 200 && status !== 204) {
16941
+ return response.text().then((_responseText) => {
16942
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
16943
+ });
16944
+ }
16945
+ return Promise.resolve<MeasurementFormSchemaDto>(null as any);
16946
+ }
16947
+
16858
16948
  uploadSchemaDrawing(id: string, request: UploadDrawingRequest): Promise<MeasurementFormSchemaDto> {
16859
16949
  let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploaddrawing";
16860
16950
  if (id === undefined || id === null)
@@ -18700,6 +18790,8 @@ export interface IMeasurementFormsInstancesClient {
18700
18790
 
18701
18791
  listMeasurementFormInstanceFeedback(id: string): Promise<MeasurementFormInstanceFeedbackDto[]>;
18702
18792
 
18793
+ createMeasurementFormInstance2(id: string, schemaId: string | null | undefined, sequenceCount: number | undefined): Promise<MeasurementFormInstanceDto>;
18794
+
18703
18795
  completeMeasurementFormInstance(id: string, tenantId: string | null | undefined): Promise<MeasurementFormInstanceDto>;
18704
18796
 
18705
18797
  reactivateMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto>;
@@ -19106,6 +19198,51 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
19106
19198
  return Promise.resolve<MeasurementFormInstanceFeedbackDto[]>(null as any);
19107
19199
  }
19108
19200
 
19201
+ createMeasurementFormInstance2(id: string, schemaId: string | null | undefined, sequenceCount: number | undefined): Promise<MeasurementFormInstanceDto> {
19202
+ let url_ = this.baseUrl + "/measurementforms/instances/{id}/createinstance?";
19203
+ if (id === undefined || id === null)
19204
+ throw new Error("The parameter 'id' must be defined.");
19205
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
19206
+ if (schemaId !== undefined && schemaId !== null)
19207
+ url_ += "schemaId=" + encodeURIComponent("" + schemaId) + "&";
19208
+ if (sequenceCount === null)
19209
+ throw new Error("The parameter 'sequenceCount' cannot be null.");
19210
+ else if (sequenceCount !== undefined)
19211
+ url_ += "sequenceCount=" + encodeURIComponent("" + sequenceCount) + "&";
19212
+ url_ = url_.replace(/[?&]$/, "");
19213
+
19214
+ let options_: RequestInit = {
19215
+ method: "POST",
19216
+ headers: {
19217
+ "Accept": "application/json"
19218
+ }
19219
+ };
19220
+
19221
+ return this.transformOptions(options_).then(transformedOptions_ => {
19222
+ return this.http.fetch(url_, transformedOptions_);
19223
+ }).then((_response: Response) => {
19224
+ return this.processCreateMeasurementFormInstance2(_response);
19225
+ });
19226
+ }
19227
+
19228
+ protected processCreateMeasurementFormInstance2(response: Response): Promise<MeasurementFormInstanceDto> {
19229
+ const status = response.status;
19230
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
19231
+ if (status === 200) {
19232
+ return response.text().then((_responseText) => {
19233
+ let result200: any = null;
19234
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
19235
+ result200 = MeasurementFormInstanceDto.fromJS(resultData200);
19236
+ return result200;
19237
+ });
19238
+ } else if (status !== 200 && status !== 204) {
19239
+ return response.text().then((_responseText) => {
19240
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
19241
+ });
19242
+ }
19243
+ return Promise.resolve<MeasurementFormInstanceDto>(null as any);
19244
+ }
19245
+
19109
19246
  completeMeasurementFormInstance(id: string, tenantId: string | null | undefined): Promise<MeasurementFormInstanceDto> {
19110
19247
  let url_ = this.baseUrl + "/measurementforms/instances/{id}/complete?";
19111
19248
  if (id === undefined || id === null)
@@ -25778,6 +25915,7 @@ export interface INamedCompanyUtilizationDto extends ICompanyUtilizationDto {
25778
25915
  export class UtilizationDatapointListDto implements IUtilizationDatapointListDto {
25779
25916
  datapoints?: NumericNullableValueWithTimestamp[];
25780
25917
  trendDatapoints?: NumericNullableValueWithTimestamp[];
25918
+ linearTrendDatapoints?: NumericNullableValueWithTimestamp[];
25781
25919
 
25782
25920
  constructor(data?: IUtilizationDatapointListDto) {
25783
25921
  if (data) {
@@ -25800,6 +25938,11 @@ export class UtilizationDatapointListDto implements IUtilizationDatapointListDto
25800
25938
  for (let item of _data["trendDatapoints"])
25801
25939
  this.trendDatapoints!.push(NumericNullableValueWithTimestamp.fromJS(item));
25802
25940
  }
25941
+ if (Array.isArray(_data["linearTrendDatapoints"])) {
25942
+ this.linearTrendDatapoints = [] as any;
25943
+ for (let item of _data["linearTrendDatapoints"])
25944
+ this.linearTrendDatapoints!.push(NumericNullableValueWithTimestamp.fromJS(item));
25945
+ }
25803
25946
  }
25804
25947
  }
25805
25948
 
@@ -25822,6 +25965,11 @@ export class UtilizationDatapointListDto implements IUtilizationDatapointListDto
25822
25965
  for (let item of this.trendDatapoints)
25823
25966
  data["trendDatapoints"].push(item.toJSON());
25824
25967
  }
25968
+ if (Array.isArray(this.linearTrendDatapoints)) {
25969
+ data["linearTrendDatapoints"] = [];
25970
+ for (let item of this.linearTrendDatapoints)
25971
+ data["linearTrendDatapoints"].push(item.toJSON());
25972
+ }
25825
25973
  return data;
25826
25974
  }
25827
25975
  }
@@ -25829,6 +25977,7 @@ export class UtilizationDatapointListDto implements IUtilizationDatapointListDto
25829
25977
  export interface IUtilizationDatapointListDto {
25830
25978
  datapoints?: NumericNullableValueWithTimestamp[];
25831
25979
  trendDatapoints?: NumericNullableValueWithTimestamp[];
25980
+ linearTrendDatapoints?: NumericNullableValueWithTimestamp[];
25832
25981
  }
25833
25982
 
25834
25983
  export class MachineUtilizationDatapointListDto extends UtilizationDatapointListDto implements IMachineUtilizationDatapointListDto {
@@ -48440,6 +48589,146 @@ export interface IUpdateSchemaGroupedElementDto {
48440
48589
  isDocumentedExternally: boolean;
48441
48590
  }
48442
48591
 
48592
+ export class UpdateSchemaGroupedElementRowDto implements IUpdateSchemaGroupedElementRowDto {
48593
+ balloonId!: string;
48594
+ section?: string | null;
48595
+ pageNumber?: number | null;
48596
+ nominal?: number | null;
48597
+ type?: string | null;
48598
+ subType?: string | null;
48599
+ unitOfMeasure?: string | null;
48600
+ plusTolerance?: number | null;
48601
+ minusTolerance?: number | null;
48602
+ coatingThickness?: number | null;
48603
+ comments?: string | null;
48604
+ frequency!: MeasurementFrequency;
48605
+ frequencyParameter?: number | null;
48606
+ includeInCustomerDocumentation!: boolean;
48607
+ canCopy?: boolean | null;
48608
+ isDocumentedExternally!: boolean;
48609
+
48610
+ constructor(data?: IUpdateSchemaGroupedElementRowDto) {
48611
+ if (data) {
48612
+ for (var property in data) {
48613
+ if (data.hasOwnProperty(property))
48614
+ (<any>this)[property] = (<any>data)[property];
48615
+ }
48616
+ }
48617
+ }
48618
+
48619
+ init(_data?: any) {
48620
+ if (_data) {
48621
+ this.balloonId = _data["balloonId"];
48622
+ this.section = _data["section"];
48623
+ this.pageNumber = _data["pageNumber"];
48624
+ this.nominal = _data["nominal"];
48625
+ this.type = _data["type"];
48626
+ this.subType = _data["subType"];
48627
+ this.unitOfMeasure = _data["unitOfMeasure"];
48628
+ this.plusTolerance = _data["plusTolerance"];
48629
+ this.minusTolerance = _data["minusTolerance"];
48630
+ this.coatingThickness = _data["coatingThickness"];
48631
+ this.comments = _data["comments"];
48632
+ this.frequency = _data["frequency"];
48633
+ this.frequencyParameter = _data["frequencyParameter"];
48634
+ this.includeInCustomerDocumentation = _data["includeInCustomerDocumentation"];
48635
+ this.canCopy = _data["canCopy"];
48636
+ this.isDocumentedExternally = _data["isDocumentedExternally"];
48637
+ }
48638
+ }
48639
+
48640
+ static fromJS(data: any): UpdateSchemaGroupedElementRowDto {
48641
+ data = typeof data === 'object' ? data : {};
48642
+ let result = new UpdateSchemaGroupedElementRowDto();
48643
+ result.init(data);
48644
+ return result;
48645
+ }
48646
+
48647
+ toJSON(data?: any) {
48648
+ data = typeof data === 'object' ? data : {};
48649
+ data["balloonId"] = this.balloonId;
48650
+ data["section"] = this.section;
48651
+ data["pageNumber"] = this.pageNumber;
48652
+ data["nominal"] = this.nominal;
48653
+ data["type"] = this.type;
48654
+ data["subType"] = this.subType;
48655
+ data["unitOfMeasure"] = this.unitOfMeasure;
48656
+ data["plusTolerance"] = this.plusTolerance;
48657
+ data["minusTolerance"] = this.minusTolerance;
48658
+ data["coatingThickness"] = this.coatingThickness;
48659
+ data["comments"] = this.comments;
48660
+ data["frequency"] = this.frequency;
48661
+ data["frequencyParameter"] = this.frequencyParameter;
48662
+ data["includeInCustomerDocumentation"] = this.includeInCustomerDocumentation;
48663
+ data["canCopy"] = this.canCopy;
48664
+ data["isDocumentedExternally"] = this.isDocumentedExternally;
48665
+ return data;
48666
+ }
48667
+ }
48668
+
48669
+ export interface IUpdateSchemaGroupedElementRowDto {
48670
+ balloonId: string;
48671
+ section?: string | null;
48672
+ pageNumber?: number | null;
48673
+ nominal?: number | null;
48674
+ type?: string | null;
48675
+ subType?: string | null;
48676
+ unitOfMeasure?: string | null;
48677
+ plusTolerance?: number | null;
48678
+ minusTolerance?: number | null;
48679
+ coatingThickness?: number | null;
48680
+ comments?: string | null;
48681
+ frequency: MeasurementFrequency;
48682
+ frequencyParameter?: number | null;
48683
+ includeInCustomerDocumentation: boolean;
48684
+ canCopy?: boolean | null;
48685
+ isDocumentedExternally: boolean;
48686
+ }
48687
+
48688
+ export class UploadMeasurementImageRequest implements IUploadMeasurementImageRequest {
48689
+ uploadKey!: string;
48690
+ filename!: string;
48691
+ ballonId!: string;
48692
+
48693
+ constructor(data?: IUploadMeasurementImageRequest) {
48694
+ if (data) {
48695
+ for (var property in data) {
48696
+ if (data.hasOwnProperty(property))
48697
+ (<any>this)[property] = (<any>data)[property];
48698
+ }
48699
+ }
48700
+ }
48701
+
48702
+ init(_data?: any) {
48703
+ if (_data) {
48704
+ this.uploadKey = _data["uploadKey"];
48705
+ this.filename = _data["filename"];
48706
+ this.ballonId = _data["ballonId"];
48707
+ }
48708
+ }
48709
+
48710
+ static fromJS(data: any): UploadMeasurementImageRequest {
48711
+ data = typeof data === 'object' ? data : {};
48712
+ let result = new UploadMeasurementImageRequest();
48713
+ result.init(data);
48714
+ return result;
48715
+ }
48716
+
48717
+ toJSON(data?: any) {
48718
+ data = typeof data === 'object' ? data : {};
48719
+ data["uploadKey"] = this.uploadKey;
48720
+ data["filename"] = this.filename;
48721
+ data["ballonId"] = this.ballonId;
48722
+ return data;
48723
+ }
48724
+ }
48725
+
48726
+ export interface IUploadMeasurementImageRequest {
48727
+ uploadKey: string;
48728
+ filename: string;
48729
+ ballonId: string;
48730
+ }
48731
+
48443
48732
  export class UploadDrawingRequest implements IUploadDrawingRequest {
48444
48733
  uploadKey!: string;
48445
48734
  filename!: string;