@ignos/api-client 20250822.0.12415-alpha → 20250827.0.12448-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.
@@ -746,6 +746,10 @@ export interface IDowntimeReasonsAdminClient {
746
746
  updateDowntimeReason(id: string, request: UpdateDowntimeReasonRequest): Promise<DowntimeReasonDto>;
747
747
  deleteDowntimeReason(id: string): Promise<void>;
748
748
  listMachineTypes(): Promise<MachineTypeDto[]>;
749
+ listParentTopics(): Promise<ParentTopicDto[]>;
750
+ createParentTopic(request: CreateParentTopicRequest): Promise<ParentTopicDto>;
751
+ updateParentTopic(id: string, request: UpdateParentTopicRequest): Promise<ParentTopicDto>;
752
+ deleteParentTopic(id: string): Promise<void>;
749
753
  }
750
754
  export declare class DowntimeReasonsAdminClient extends AuthorizedApiBase implements IDowntimeReasonsAdminClient {
751
755
  private http;
@@ -764,6 +768,14 @@ export declare class DowntimeReasonsAdminClient extends AuthorizedApiBase implem
764
768
  protected processDeleteDowntimeReason(response: Response): Promise<void>;
765
769
  listMachineTypes(): Promise<MachineTypeDto[]>;
766
770
  protected processListMachineTypes(response: Response): Promise<MachineTypeDto[]>;
771
+ listParentTopics(): Promise<ParentTopicDto[]>;
772
+ protected processListParentTopics(response: Response): Promise<ParentTopicDto[]>;
773
+ createParentTopic(request: CreateParentTopicRequest): Promise<ParentTopicDto>;
774
+ protected processCreateParentTopic(response: Response): Promise<ParentTopicDto>;
775
+ updateParentTopic(id: string, request: UpdateParentTopicRequest): Promise<ParentTopicDto>;
776
+ protected processUpdateParentTopic(response: Response): Promise<ParentTopicDto>;
777
+ deleteParentTopic(id: string): Promise<void>;
778
+ protected processDeleteParentTopic(response: Response): Promise<void>;
767
779
  }
768
780
  export interface IDowntimeReasonsClient {
769
781
  createDowntimePeriodReason(request: CreateDowntimePeriodReason): Promise<DowntimePeriodReasonDto>;
@@ -2097,6 +2109,7 @@ export interface IMeasurementFormSchemasClient {
2097
2109
  updateSchemaSettings(id: string, request: UpdateSchemaSettingsRequest): Promise<UpdateSchemaSettingsRequest>;
2098
2110
  uploadSchemaDrawing(id: string, request: UploadDrawingRequest): Promise<MeasurementFormSchemaDto>;
2099
2111
  uploadSchemaAttachment(id: string, request: UploadRequest): Promise<MeasurementFormSchemaDto>;
2112
+ getMeasurementFormImportStatus(id: string): Promise<MeasurementFormImportStatusDto>;
2100
2113
  listLinkableMeasurementFormSchemas(schemaId: string, pageSize: number | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormListDto>;
2101
2114
  postListLinkableMeasurementFormSchemas(request: ListLinkableMeasurementFormSchemasRequest): Promise<PagedResultOfMeasurementFormListDto>;
2102
2115
  createMeasurementFormSchemaLink(schemaId: string, request: CreateMeasurementFormSchemaLinkRequest): Promise<MeasurementFormDto>;
@@ -2187,6 +2200,8 @@ export declare class MeasurementFormSchemasClient extends AuthorizedApiBase impl
2187
2200
  protected processUploadSchemaDrawing(response: Response): Promise<MeasurementFormSchemaDto>;
2188
2201
  uploadSchemaAttachment(id: string, request: UploadRequest): Promise<MeasurementFormSchemaDto>;
2189
2202
  protected processUploadSchemaAttachment(response: Response): Promise<MeasurementFormSchemaDto>;
2203
+ getMeasurementFormImportStatus(id: string): Promise<MeasurementFormImportStatusDto>;
2204
+ protected processGetMeasurementFormImportStatus(response: Response): Promise<MeasurementFormImportStatusDto>;
2190
2205
  listLinkableMeasurementFormSchemas(schemaId: string, pageSize: number | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormListDto>;
2191
2206
  protected processListLinkableMeasurementFormSchemas(response: Response): Promise<PagedResultOfMeasurementFormListDto>;
2192
2207
  postListLinkableMeasurementFormSchemas(request: ListLinkableMeasurementFormSchemasRequest): Promise<PagedResultOfMeasurementFormListDto>;
@@ -5681,6 +5696,8 @@ export declare class DowntimeReasonDto implements IDowntimeReasonDto {
5681
5696
  machineTypes: string[];
5682
5697
  reasonType: DowntimeReasonTypeDto;
5683
5698
  description?: string | null;
5699
+ parentId?: string | null;
5700
+ displayOrder?: number | null;
5684
5701
  constructor(data?: IDowntimeReasonDto);
5685
5702
  init(_data?: any): void;
5686
5703
  static fromJS(data: any): DowntimeReasonDto;
@@ -5692,6 +5709,8 @@ export interface IDowntimeReasonDto {
5692
5709
  machineTypes: string[];
5693
5710
  reasonType: DowntimeReasonTypeDto;
5694
5711
  description?: string | null;
5712
+ parentId?: string | null;
5713
+ displayOrder?: number | null;
5695
5714
  }
5696
5715
  export declare class CreateDowntimeReason implements ICreateDowntimeReason {
5697
5716
  reason: string;
@@ -5714,6 +5733,8 @@ export declare class UpdateDowntimeReasonRequest implements IUpdateDowntimeReaso
5714
5733
  machineTypes: string[];
5715
5734
  reasonType: DowntimeReasonTypeDto;
5716
5735
  description?: string | null;
5736
+ parentId?: string | null;
5737
+ displayOrder?: number | null;
5717
5738
  constructor(data?: IUpdateDowntimeReasonRequest);
5718
5739
  init(_data?: any): void;
5719
5740
  static fromJS(data: any): UpdateDowntimeReasonRequest;
@@ -5724,6 +5745,8 @@ export interface IUpdateDowntimeReasonRequest {
5724
5745
  machineTypes: string[];
5725
5746
  reasonType: DowntimeReasonTypeDto;
5726
5747
  description?: string | null;
5748
+ parentId?: string | null;
5749
+ displayOrder?: number | null;
5727
5750
  }
5728
5751
  export declare class MachineTypeDto implements IMachineTypeDto {
5729
5752
  machineType: string;
@@ -5735,6 +5758,56 @@ export declare class MachineTypeDto implements IMachineTypeDto {
5735
5758
  export interface IMachineTypeDto {
5736
5759
  machineType: string;
5737
5760
  }
5761
+ export declare class ParentTopicDto implements IParentTopicDto {
5762
+ id: string;
5763
+ name: string;
5764
+ reasonType: DowntimeReasonTypeDto;
5765
+ description?: string | null;
5766
+ displayOrder?: number;
5767
+ constructor(data?: IParentTopicDto);
5768
+ init(_data?: any): void;
5769
+ static fromJS(data: any): ParentTopicDto;
5770
+ toJSON(data?: any): any;
5771
+ }
5772
+ export interface IParentTopicDto {
5773
+ id: string;
5774
+ name: string;
5775
+ reasonType: DowntimeReasonTypeDto;
5776
+ description?: string | null;
5777
+ displayOrder?: number;
5778
+ }
5779
+ export declare class CreateParentTopicRequest implements ICreateParentTopicRequest {
5780
+ name: string;
5781
+ reasonType: DowntimeReasonTypeDto;
5782
+ description?: string | null;
5783
+ displayOrder?: number | null;
5784
+ constructor(data?: ICreateParentTopicRequest);
5785
+ init(_data?: any): void;
5786
+ static fromJS(data: any): CreateParentTopicRequest;
5787
+ toJSON(data?: any): any;
5788
+ }
5789
+ export interface ICreateParentTopicRequest {
5790
+ name: string;
5791
+ reasonType: DowntimeReasonTypeDto;
5792
+ description?: string | null;
5793
+ displayOrder?: number | null;
5794
+ }
5795
+ export declare class UpdateParentTopicRequest implements IUpdateParentTopicRequest {
5796
+ name: string;
5797
+ reasonType: DowntimeReasonTypeDto;
5798
+ description?: string | null;
5799
+ displayOrder?: number | null;
5800
+ constructor(data?: IUpdateParentTopicRequest);
5801
+ init(_data?: any): void;
5802
+ static fromJS(data: any): UpdateParentTopicRequest;
5803
+ toJSON(data?: any): any;
5804
+ }
5805
+ export interface IUpdateParentTopicRequest {
5806
+ name: string;
5807
+ reasonType: DowntimeReasonTypeDto;
5808
+ description?: string | null;
5809
+ displayOrder?: number | null;
5810
+ }
5738
5811
  export declare class CreateDowntimePeriodReason implements ICreateDowntimePeriodReason {
5739
5812
  reasonId: string;
5740
5813
  assetId: number;
@@ -12273,6 +12346,22 @@ export interface IUploadRequest {
12273
12346
  uploadKey: string;
12274
12347
  filename: string;
12275
12348
  }
12349
+ export declare class MeasurementFormImportStatusDto implements IMeasurementFormImportStatusDto {
12350
+ progress: number;
12351
+ totalElements: number;
12352
+ errorMessage: string;
12353
+ timestamp: Date;
12354
+ constructor(data?: IMeasurementFormImportStatusDto);
12355
+ init(_data?: any): void;
12356
+ static fromJS(data: any): MeasurementFormImportStatusDto;
12357
+ toJSON(data?: any): any;
12358
+ }
12359
+ export interface IMeasurementFormImportStatusDto {
12360
+ progress: number;
12361
+ totalElements: number;
12362
+ errorMessage: string;
12363
+ timestamp: Date;
12364
+ }
12276
12365
  export declare class ListLinkableMeasurementFormSchemasRequest implements IListLinkableMeasurementFormSchemasRequest {
12277
12366
  schemaId: string;
12278
12367
  pageSize?: number | null;
@@ -12430,6 +12519,8 @@ export interface IMeasurementFormMappingDto {
12430
12519
  targetReferences: MeasurementFormReferenceMappingDto[];
12431
12520
  }
12432
12521
  export declare class MeasurementFormReferenceMappingDto implements IMeasurementFormReferenceMappingDto {
12522
+ balloon?: MeasurementFormGroupedElementDto | null;
12523
+ mappedBalloonId?: string | null;
12433
12524
  reference: MeasurementFormGroupedElementDto;
12434
12525
  mappedReference?: number;
12435
12526
  mappingScorePercent?: number | null;
@@ -12439,6 +12530,8 @@ export declare class MeasurementFormReferenceMappingDto implements IMeasurementF
12439
12530
  toJSON(data?: any): any;
12440
12531
  }
12441
12532
  export interface IMeasurementFormReferenceMappingDto {
12533
+ balloon?: MeasurementFormGroupedElementDto | null;
12534
+ mappedBalloonId?: string | null;
12442
12535
  reference: MeasurementFormGroupedElementDto;
12443
12536
  mappedReference?: number;
12444
12537
  mappingScorePercent?: number | null;
@@ -13214,7 +13307,7 @@ export declare class MeasurementFormInstanceElementDto implements IMeasurementFo
13214
13307
  isDocumentedExternally: boolean;
13215
13308
  canOverrideIsDocumentedExternally: boolean;
13216
13309
  balloonSequence?: number | null;
13217
- referenceSerialNumber?: number | null;
13310
+ referenceIndex?: number | null;
13218
13311
  balloonQuantity?: number | null;
13219
13312
  referenceQuantity?: number | null;
13220
13313
  plusTolerance?: string | null;
@@ -13264,7 +13357,7 @@ export interface IMeasurementFormInstanceElementDto {
13264
13357
  isDocumentedExternally: boolean;
13265
13358
  canOverrideIsDocumentedExternally: boolean;
13266
13359
  balloonSequence?: number | null;
13267
- referenceSerialNumber?: number | null;
13360
+ referenceIndex?: number | null;
13268
13361
  balloonQuantity?: number | null;
13269
13362
  referenceQuantity?: number | null;
13270
13363
  plusTolerance?: string | null;
@@ -5805,6 +5805,165 @@ export class DowntimeReasonsAdminClient extends AuthorizedApiBase {
5805
5805
  }
5806
5806
  return Promise.resolve(null);
5807
5807
  }
5808
+ listParentTopics() {
5809
+ let url_ = this.baseUrl + "/downtimereasonsadmin/downtimereasons/parents";
5810
+ url_ = url_.replace(/[?&]$/, "");
5811
+ let options_ = {
5812
+ method: "GET",
5813
+ headers: {
5814
+ "Accept": "application/json"
5815
+ }
5816
+ };
5817
+ return this.transformOptions(options_).then(transformedOptions_ => {
5818
+ return this.http.fetch(url_, transformedOptions_);
5819
+ }).then((_response) => {
5820
+ return this.processListParentTopics(_response);
5821
+ });
5822
+ }
5823
+ processListParentTopics(response) {
5824
+ const status = response.status;
5825
+ let _headers = {};
5826
+ if (response.headers && response.headers.forEach) {
5827
+ response.headers.forEach((v, k) => _headers[k] = v);
5828
+ }
5829
+ ;
5830
+ if (status === 200) {
5831
+ return response.text().then((_responseText) => {
5832
+ let result200 = null;
5833
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
5834
+ if (Array.isArray(resultData200)) {
5835
+ result200 = [];
5836
+ for (let item of resultData200)
5837
+ result200.push(ParentTopicDto.fromJS(item));
5838
+ }
5839
+ return result200;
5840
+ });
5841
+ }
5842
+ else if (status !== 200 && status !== 204) {
5843
+ return response.text().then((_responseText) => {
5844
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
5845
+ });
5846
+ }
5847
+ return Promise.resolve(null);
5848
+ }
5849
+ createParentTopic(request) {
5850
+ let url_ = this.baseUrl + "/downtimereasonsadmin/downtimereasons/parents";
5851
+ url_ = url_.replace(/[?&]$/, "");
5852
+ const content_ = JSON.stringify(request);
5853
+ let options_ = {
5854
+ body: content_,
5855
+ method: "POST",
5856
+ headers: {
5857
+ "Content-Type": "application/json",
5858
+ "Accept": "application/json"
5859
+ }
5860
+ };
5861
+ return this.transformOptions(options_).then(transformedOptions_ => {
5862
+ return this.http.fetch(url_, transformedOptions_);
5863
+ }).then((_response) => {
5864
+ return this.processCreateParentTopic(_response);
5865
+ });
5866
+ }
5867
+ processCreateParentTopic(response) {
5868
+ const status = response.status;
5869
+ let _headers = {};
5870
+ if (response.headers && response.headers.forEach) {
5871
+ response.headers.forEach((v, k) => _headers[k] = v);
5872
+ }
5873
+ ;
5874
+ if (status === 200) {
5875
+ return response.text().then((_responseText) => {
5876
+ let result200 = null;
5877
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
5878
+ result200 = ParentTopicDto.fromJS(resultData200);
5879
+ return result200;
5880
+ });
5881
+ }
5882
+ else if (status !== 200 && status !== 204) {
5883
+ return response.text().then((_responseText) => {
5884
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
5885
+ });
5886
+ }
5887
+ return Promise.resolve(null);
5888
+ }
5889
+ updateParentTopic(id, request) {
5890
+ let url_ = this.baseUrl + "/downtimereasonsadmin/downtimereasons/parents/{id}";
5891
+ if (id === undefined || id === null)
5892
+ throw new Error("The parameter 'id' must be defined.");
5893
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
5894
+ url_ = url_.replace(/[?&]$/, "");
5895
+ const content_ = JSON.stringify(request);
5896
+ let options_ = {
5897
+ body: content_,
5898
+ method: "PUT",
5899
+ headers: {
5900
+ "Content-Type": "application/json",
5901
+ "Accept": "application/json"
5902
+ }
5903
+ };
5904
+ return this.transformOptions(options_).then(transformedOptions_ => {
5905
+ return this.http.fetch(url_, transformedOptions_);
5906
+ }).then((_response) => {
5907
+ return this.processUpdateParentTopic(_response);
5908
+ });
5909
+ }
5910
+ processUpdateParentTopic(response) {
5911
+ const status = response.status;
5912
+ let _headers = {};
5913
+ if (response.headers && response.headers.forEach) {
5914
+ response.headers.forEach((v, k) => _headers[k] = v);
5915
+ }
5916
+ ;
5917
+ if (status === 200) {
5918
+ return response.text().then((_responseText) => {
5919
+ let result200 = null;
5920
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
5921
+ result200 = ParentTopicDto.fromJS(resultData200);
5922
+ return result200;
5923
+ });
5924
+ }
5925
+ else if (status !== 200 && status !== 204) {
5926
+ return response.text().then((_responseText) => {
5927
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
5928
+ });
5929
+ }
5930
+ return Promise.resolve(null);
5931
+ }
5932
+ deleteParentTopic(id) {
5933
+ let url_ = this.baseUrl + "/downtimereasonsadmin/downtimereasons/parents/{id}";
5934
+ if (id === undefined || id === null)
5935
+ throw new Error("The parameter 'id' must be defined.");
5936
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
5937
+ url_ = url_.replace(/[?&]$/, "");
5938
+ let options_ = {
5939
+ method: "DELETE",
5940
+ headers: {}
5941
+ };
5942
+ return this.transformOptions(options_).then(transformedOptions_ => {
5943
+ return this.http.fetch(url_, transformedOptions_);
5944
+ }).then((_response) => {
5945
+ return this.processDeleteParentTopic(_response);
5946
+ });
5947
+ }
5948
+ processDeleteParentTopic(response) {
5949
+ const status = response.status;
5950
+ let _headers = {};
5951
+ if (response.headers && response.headers.forEach) {
5952
+ response.headers.forEach((v, k) => _headers[k] = v);
5953
+ }
5954
+ ;
5955
+ if (status === 204) {
5956
+ return response.text().then((_responseText) => {
5957
+ return;
5958
+ });
5959
+ }
5960
+ else if (status !== 200 && status !== 204) {
5961
+ return response.text().then((_responseText) => {
5962
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
5963
+ });
5964
+ }
5965
+ return Promise.resolve(null);
5966
+ }
5808
5967
  }
5809
5968
  export class DowntimeReasonsClient extends AuthorizedApiBase {
5810
5969
  constructor(configuration, baseUrl, http) {
@@ -17913,6 +18072,46 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17913
18072
  }
17914
18073
  return Promise.resolve(null);
17915
18074
  }
18075
+ getMeasurementFormImportStatus(id) {
18076
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}/importstatus";
18077
+ if (id === undefined || id === null)
18078
+ throw new Error("The parameter 'id' must be defined.");
18079
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
18080
+ url_ = url_.replace(/[?&]$/, "");
18081
+ let options_ = {
18082
+ method: "GET",
18083
+ headers: {
18084
+ "Accept": "application/json"
18085
+ }
18086
+ };
18087
+ return this.transformOptions(options_).then(transformedOptions_ => {
18088
+ return this.http.fetch(url_, transformedOptions_);
18089
+ }).then((_response) => {
18090
+ return this.processGetMeasurementFormImportStatus(_response);
18091
+ });
18092
+ }
18093
+ processGetMeasurementFormImportStatus(response) {
18094
+ const status = response.status;
18095
+ let _headers = {};
18096
+ if (response.headers && response.headers.forEach) {
18097
+ response.headers.forEach((v, k) => _headers[k] = v);
18098
+ }
18099
+ ;
18100
+ if (status === 200) {
18101
+ return response.text().then((_responseText) => {
18102
+ let result200 = null;
18103
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
18104
+ result200 = MeasurementFormImportStatusDto.fromJS(resultData200);
18105
+ return result200;
18106
+ });
18107
+ }
18108
+ else if (status !== 200 && status !== 204) {
18109
+ return response.text().then((_responseText) => {
18110
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
18111
+ });
18112
+ }
18113
+ return Promise.resolve(null);
18114
+ }
17916
18115
  listLinkableMeasurementFormSchemas(schemaId, pageSize, filter, continuationToken) {
17917
18116
  let url_ = this.baseUrl + "/measurementforms/schemas/{schemaId}/listlinkableschemas?";
17918
18117
  if (schemaId === undefined || schemaId === null)
@@ -29184,6 +29383,8 @@ export class DowntimeReasonDto {
29184
29383
  }
29185
29384
  this.reasonType = _data["reasonType"];
29186
29385
  this.description = _data["description"];
29386
+ this.parentId = _data["parentId"];
29387
+ this.displayOrder = _data["displayOrder"];
29187
29388
  }
29188
29389
  }
29189
29390
  static fromJS(data) {
@@ -29203,6 +29404,8 @@ export class DowntimeReasonDto {
29203
29404
  }
29204
29405
  data["reasonType"] = this.reasonType;
29205
29406
  data["description"] = this.description;
29407
+ data["parentId"] = this.parentId;
29408
+ data["displayOrder"] = this.displayOrder;
29206
29409
  return data;
29207
29410
  }
29208
29411
  }
@@ -29271,6 +29474,8 @@ export class UpdateDowntimeReasonRequest {
29271
29474
  }
29272
29475
  this.reasonType = _data["reasonType"];
29273
29476
  this.description = _data["description"];
29477
+ this.parentId = _data["parentId"];
29478
+ this.displayOrder = _data["displayOrder"];
29274
29479
  }
29275
29480
  }
29276
29481
  static fromJS(data) {
@@ -29289,6 +29494,8 @@ export class UpdateDowntimeReasonRequest {
29289
29494
  }
29290
29495
  data["reasonType"] = this.reasonType;
29291
29496
  data["description"] = this.description;
29497
+ data["parentId"] = this.parentId;
29498
+ data["displayOrder"] = this.displayOrder;
29292
29499
  return data;
29293
29500
  }
29294
29501
  }
@@ -29318,6 +29525,104 @@ export class MachineTypeDto {
29318
29525
  return data;
29319
29526
  }
29320
29527
  }
29528
+ export class ParentTopicDto {
29529
+ constructor(data) {
29530
+ if (data) {
29531
+ for (var property in data) {
29532
+ if (data.hasOwnProperty(property))
29533
+ this[property] = data[property];
29534
+ }
29535
+ }
29536
+ }
29537
+ init(_data) {
29538
+ if (_data) {
29539
+ this.id = _data["id"];
29540
+ this.name = _data["name"];
29541
+ this.reasonType = _data["reasonType"];
29542
+ this.description = _data["description"];
29543
+ this.displayOrder = _data["displayOrder"];
29544
+ }
29545
+ }
29546
+ static fromJS(data) {
29547
+ data = typeof data === 'object' ? data : {};
29548
+ let result = new ParentTopicDto();
29549
+ result.init(data);
29550
+ return result;
29551
+ }
29552
+ toJSON(data) {
29553
+ data = typeof data === 'object' ? data : {};
29554
+ data["id"] = this.id;
29555
+ data["name"] = this.name;
29556
+ data["reasonType"] = this.reasonType;
29557
+ data["description"] = this.description;
29558
+ data["displayOrder"] = this.displayOrder;
29559
+ return data;
29560
+ }
29561
+ }
29562
+ export class CreateParentTopicRequest {
29563
+ constructor(data) {
29564
+ if (data) {
29565
+ for (var property in data) {
29566
+ if (data.hasOwnProperty(property))
29567
+ this[property] = data[property];
29568
+ }
29569
+ }
29570
+ }
29571
+ init(_data) {
29572
+ if (_data) {
29573
+ this.name = _data["name"];
29574
+ this.reasonType = _data["reasonType"];
29575
+ this.description = _data["description"];
29576
+ this.displayOrder = _data["displayOrder"];
29577
+ }
29578
+ }
29579
+ static fromJS(data) {
29580
+ data = typeof data === 'object' ? data : {};
29581
+ let result = new CreateParentTopicRequest();
29582
+ result.init(data);
29583
+ return result;
29584
+ }
29585
+ toJSON(data) {
29586
+ data = typeof data === 'object' ? data : {};
29587
+ data["name"] = this.name;
29588
+ data["reasonType"] = this.reasonType;
29589
+ data["description"] = this.description;
29590
+ data["displayOrder"] = this.displayOrder;
29591
+ return data;
29592
+ }
29593
+ }
29594
+ export class UpdateParentTopicRequest {
29595
+ constructor(data) {
29596
+ if (data) {
29597
+ for (var property in data) {
29598
+ if (data.hasOwnProperty(property))
29599
+ this[property] = data[property];
29600
+ }
29601
+ }
29602
+ }
29603
+ init(_data) {
29604
+ if (_data) {
29605
+ this.name = _data["name"];
29606
+ this.reasonType = _data["reasonType"];
29607
+ this.description = _data["description"];
29608
+ this.displayOrder = _data["displayOrder"];
29609
+ }
29610
+ }
29611
+ static fromJS(data) {
29612
+ data = typeof data === 'object' ? data : {};
29613
+ let result = new UpdateParentTopicRequest();
29614
+ result.init(data);
29615
+ return result;
29616
+ }
29617
+ toJSON(data) {
29618
+ data = typeof data === 'object' ? data : {};
29619
+ data["name"] = this.name;
29620
+ data["reasonType"] = this.reasonType;
29621
+ data["description"] = this.description;
29622
+ data["displayOrder"] = this.displayOrder;
29623
+ return data;
29624
+ }
29625
+ }
29321
29626
  export class CreateDowntimePeriodReason {
29322
29627
  constructor(data) {
29323
29628
  if (data) {
@@ -42565,6 +42870,38 @@ export class UploadRequest {
42565
42870
  return data;
42566
42871
  }
42567
42872
  }
42873
+ export class MeasurementFormImportStatusDto {
42874
+ constructor(data) {
42875
+ if (data) {
42876
+ for (var property in data) {
42877
+ if (data.hasOwnProperty(property))
42878
+ this[property] = data[property];
42879
+ }
42880
+ }
42881
+ }
42882
+ init(_data) {
42883
+ if (_data) {
42884
+ this.progress = _data["progress"];
42885
+ this.totalElements = _data["totalElements"];
42886
+ this.errorMessage = _data["errorMessage"];
42887
+ this.timestamp = _data["timestamp"] ? new Date(_data["timestamp"].toString()) : undefined;
42888
+ }
42889
+ }
42890
+ static fromJS(data) {
42891
+ data = typeof data === 'object' ? data : {};
42892
+ let result = new MeasurementFormImportStatusDto();
42893
+ result.init(data);
42894
+ return result;
42895
+ }
42896
+ toJSON(data) {
42897
+ data = typeof data === 'object' ? data : {};
42898
+ data["progress"] = this.progress;
42899
+ data["totalElements"] = this.totalElements;
42900
+ data["errorMessage"] = this.errorMessage;
42901
+ data["timestamp"] = this.timestamp ? this.timestamp.toISOString() : undefined;
42902
+ return data;
42903
+ }
42904
+ }
42568
42905
  export class ListLinkableMeasurementFormSchemasRequest {
42569
42906
  constructor(data) {
42570
42907
  if (data) {
@@ -42902,6 +43239,8 @@ export class MeasurementFormReferenceMappingDto {
42902
43239
  }
42903
43240
  init(_data) {
42904
43241
  if (_data) {
43242
+ this.balloon = _data["balloon"] ? MeasurementFormGroupedElementDto.fromJS(_data["balloon"]) : undefined;
43243
+ this.mappedBalloonId = _data["mappedBalloonId"];
42905
43244
  this.reference = _data["reference"] ? MeasurementFormGroupedElementDto.fromJS(_data["reference"]) : new MeasurementFormGroupedElementDto();
42906
43245
  this.mappedReference = _data["mappedReference"];
42907
43246
  this.mappingScorePercent = _data["mappingScorePercent"];
@@ -42915,6 +43254,8 @@ export class MeasurementFormReferenceMappingDto {
42915
43254
  }
42916
43255
  toJSON(data) {
42917
43256
  data = typeof data === 'object' ? data : {};
43257
+ data["balloon"] = this.balloon ? this.balloon.toJSON() : undefined;
43258
+ data["mappedBalloonId"] = this.mappedBalloonId;
42918
43259
  data["reference"] = this.reference ? this.reference.toJSON() : undefined;
42919
43260
  data["mappedReference"] = this.mappedReference;
42920
43261
  data["mappingScorePercent"] = this.mappingScorePercent;
@@ -44541,7 +44882,7 @@ export class MeasurementFormInstanceElementDto {
44541
44882
  this.isDocumentedExternally = _data["isDocumentedExternally"];
44542
44883
  this.canOverrideIsDocumentedExternally = _data["canOverrideIsDocumentedExternally"];
44543
44884
  this.balloonSequence = _data["balloonSequence"];
44544
- this.referenceSerialNumber = _data["referenceSerialNumber"];
44885
+ this.referenceIndex = _data["referenceIndex"];
44545
44886
  this.balloonQuantity = _data["balloonQuantity"];
44546
44887
  this.referenceQuantity = _data["referenceQuantity"];
44547
44888
  this.plusTolerance = _data["plusTolerance"];
@@ -44599,7 +44940,7 @@ export class MeasurementFormInstanceElementDto {
44599
44940
  data["isDocumentedExternally"] = this.isDocumentedExternally;
44600
44941
  data["canOverrideIsDocumentedExternally"] = this.canOverrideIsDocumentedExternally;
44601
44942
  data["balloonSequence"] = this.balloonSequence;
44602
- data["referenceSerialNumber"] = this.referenceSerialNumber;
44943
+ data["referenceIndex"] = this.referenceIndex;
44603
44944
  data["balloonQuantity"] = this.balloonQuantity;
44604
44945
  data["referenceQuantity"] = this.referenceQuantity;
44605
44946
  data["plusTolerance"] = this.plusTolerance;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20250822.0.12415-alpha",
3
+ "version": "20250827.0.12448-alpha",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -6016,6 +6016,14 @@ export interface IDowntimeReasonsAdminClient {
6016
6016
  deleteDowntimeReason(id: string): Promise<void>;
6017
6017
 
6018
6018
  listMachineTypes(): Promise<MachineTypeDto[]>;
6019
+
6020
+ listParentTopics(): Promise<ParentTopicDto[]>;
6021
+
6022
+ createParentTopic(request: CreateParentTopicRequest): Promise<ParentTopicDto>;
6023
+
6024
+ updateParentTopic(id: string, request: UpdateParentTopicRequest): Promise<ParentTopicDto>;
6025
+
6026
+ deleteParentTopic(id: string): Promise<void>;
6019
6027
  }
6020
6028
 
6021
6029
  export class DowntimeReasonsAdminClient extends AuthorizedApiBase implements IDowntimeReasonsAdminClient {
@@ -6226,6 +6234,164 @@ export class DowntimeReasonsAdminClient extends AuthorizedApiBase implements IDo
6226
6234
  }
6227
6235
  return Promise.resolve<MachineTypeDto[]>(null as any);
6228
6236
  }
6237
+
6238
+ listParentTopics(): Promise<ParentTopicDto[]> {
6239
+ let url_ = this.baseUrl + "/downtimereasonsadmin/downtimereasons/parents";
6240
+ url_ = url_.replace(/[?&]$/, "");
6241
+
6242
+ let options_: RequestInit = {
6243
+ method: "GET",
6244
+ headers: {
6245
+ "Accept": "application/json"
6246
+ }
6247
+ };
6248
+
6249
+ return this.transformOptions(options_).then(transformedOptions_ => {
6250
+ return this.http.fetch(url_, transformedOptions_);
6251
+ }).then((_response: Response) => {
6252
+ return this.processListParentTopics(_response);
6253
+ });
6254
+ }
6255
+
6256
+ protected processListParentTopics(response: Response): Promise<ParentTopicDto[]> {
6257
+ const status = response.status;
6258
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
6259
+ if (status === 200) {
6260
+ return response.text().then((_responseText) => {
6261
+ let result200: any = null;
6262
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
6263
+ if (Array.isArray(resultData200)) {
6264
+ result200 = [] as any;
6265
+ for (let item of resultData200)
6266
+ result200!.push(ParentTopicDto.fromJS(item));
6267
+ }
6268
+ return result200;
6269
+ });
6270
+ } else if (status !== 200 && status !== 204) {
6271
+ return response.text().then((_responseText) => {
6272
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
6273
+ });
6274
+ }
6275
+ return Promise.resolve<ParentTopicDto[]>(null as any);
6276
+ }
6277
+
6278
+ createParentTopic(request: CreateParentTopicRequest): Promise<ParentTopicDto> {
6279
+ let url_ = this.baseUrl + "/downtimereasonsadmin/downtimereasons/parents";
6280
+ url_ = url_.replace(/[?&]$/, "");
6281
+
6282
+ const content_ = JSON.stringify(request);
6283
+
6284
+ let options_: RequestInit = {
6285
+ body: content_,
6286
+ method: "POST",
6287
+ headers: {
6288
+ "Content-Type": "application/json",
6289
+ "Accept": "application/json"
6290
+ }
6291
+ };
6292
+
6293
+ return this.transformOptions(options_).then(transformedOptions_ => {
6294
+ return this.http.fetch(url_, transformedOptions_);
6295
+ }).then((_response: Response) => {
6296
+ return this.processCreateParentTopic(_response);
6297
+ });
6298
+ }
6299
+
6300
+ protected processCreateParentTopic(response: Response): Promise<ParentTopicDto> {
6301
+ const status = response.status;
6302
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
6303
+ if (status === 200) {
6304
+ return response.text().then((_responseText) => {
6305
+ let result200: any = null;
6306
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
6307
+ result200 = ParentTopicDto.fromJS(resultData200);
6308
+ return result200;
6309
+ });
6310
+ } else if (status !== 200 && status !== 204) {
6311
+ return response.text().then((_responseText) => {
6312
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
6313
+ });
6314
+ }
6315
+ return Promise.resolve<ParentTopicDto>(null as any);
6316
+ }
6317
+
6318
+ updateParentTopic(id: string, request: UpdateParentTopicRequest): Promise<ParentTopicDto> {
6319
+ let url_ = this.baseUrl + "/downtimereasonsadmin/downtimereasons/parents/{id}";
6320
+ if (id === undefined || id === null)
6321
+ throw new Error("The parameter 'id' must be defined.");
6322
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
6323
+ url_ = url_.replace(/[?&]$/, "");
6324
+
6325
+ const content_ = JSON.stringify(request);
6326
+
6327
+ let options_: RequestInit = {
6328
+ body: content_,
6329
+ method: "PUT",
6330
+ headers: {
6331
+ "Content-Type": "application/json",
6332
+ "Accept": "application/json"
6333
+ }
6334
+ };
6335
+
6336
+ return this.transformOptions(options_).then(transformedOptions_ => {
6337
+ return this.http.fetch(url_, transformedOptions_);
6338
+ }).then((_response: Response) => {
6339
+ return this.processUpdateParentTopic(_response);
6340
+ });
6341
+ }
6342
+
6343
+ protected processUpdateParentTopic(response: Response): Promise<ParentTopicDto> {
6344
+ const status = response.status;
6345
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
6346
+ if (status === 200) {
6347
+ return response.text().then((_responseText) => {
6348
+ let result200: any = null;
6349
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
6350
+ result200 = ParentTopicDto.fromJS(resultData200);
6351
+ return result200;
6352
+ });
6353
+ } else if (status !== 200 && status !== 204) {
6354
+ return response.text().then((_responseText) => {
6355
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
6356
+ });
6357
+ }
6358
+ return Promise.resolve<ParentTopicDto>(null as any);
6359
+ }
6360
+
6361
+ deleteParentTopic(id: string): Promise<void> {
6362
+ let url_ = this.baseUrl + "/downtimereasonsadmin/downtimereasons/parents/{id}";
6363
+ if (id === undefined || id === null)
6364
+ throw new Error("The parameter 'id' must be defined.");
6365
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
6366
+ url_ = url_.replace(/[?&]$/, "");
6367
+
6368
+ let options_: RequestInit = {
6369
+ method: "DELETE",
6370
+ headers: {
6371
+ }
6372
+ };
6373
+
6374
+ return this.transformOptions(options_).then(transformedOptions_ => {
6375
+ return this.http.fetch(url_, transformedOptions_);
6376
+ }).then((_response: Response) => {
6377
+ return this.processDeleteParentTopic(_response);
6378
+ });
6379
+ }
6380
+
6381
+ protected processDeleteParentTopic(response: Response): Promise<void> {
6382
+ const status = response.status;
6383
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
6384
+ if (status === 204) {
6385
+ return response.text().then((_responseText) => {
6386
+ return;
6387
+ });
6388
+ } else if (status !== 200 && status !== 204) {
6389
+ return response.text().then((_responseText) => {
6390
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
6391
+ });
6392
+ }
6393
+ return Promise.resolve<void>(null as any);
6394
+ }
6229
6395
  }
6230
6396
 
6231
6397
  export interface IDowntimeReasonsClient {
@@ -18512,6 +18678,8 @@ export interface IMeasurementFormSchemasClient {
18512
18678
 
18513
18679
  uploadSchemaAttachment(id: string, request: UploadRequest): Promise<MeasurementFormSchemaDto>;
18514
18680
 
18681
+ getMeasurementFormImportStatus(id: string): Promise<MeasurementFormImportStatusDto>;
18682
+
18515
18683
  listLinkableMeasurementFormSchemas(schemaId: string, pageSize: number | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormListDto>;
18516
18684
 
18517
18685
  postListLinkableMeasurementFormSchemas(request: ListLinkableMeasurementFormSchemasRequest): Promise<PagedResultOfMeasurementFormListDto>;
@@ -19216,6 +19384,45 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
19216
19384
  return Promise.resolve<MeasurementFormSchemaDto>(null as any);
19217
19385
  }
19218
19386
 
19387
+ getMeasurementFormImportStatus(id: string): Promise<MeasurementFormImportStatusDto> {
19388
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}/importstatus";
19389
+ if (id === undefined || id === null)
19390
+ throw new Error("The parameter 'id' must be defined.");
19391
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
19392
+ url_ = url_.replace(/[?&]$/, "");
19393
+
19394
+ let options_: RequestInit = {
19395
+ method: "GET",
19396
+ headers: {
19397
+ "Accept": "application/json"
19398
+ }
19399
+ };
19400
+
19401
+ return this.transformOptions(options_).then(transformedOptions_ => {
19402
+ return this.http.fetch(url_, transformedOptions_);
19403
+ }).then((_response: Response) => {
19404
+ return this.processGetMeasurementFormImportStatus(_response);
19405
+ });
19406
+ }
19407
+
19408
+ protected processGetMeasurementFormImportStatus(response: Response): Promise<MeasurementFormImportStatusDto> {
19409
+ const status = response.status;
19410
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
19411
+ if (status === 200) {
19412
+ return response.text().then((_responseText) => {
19413
+ let result200: any = null;
19414
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
19415
+ result200 = MeasurementFormImportStatusDto.fromJS(resultData200);
19416
+ return result200;
19417
+ });
19418
+ } else if (status !== 200 && status !== 204) {
19419
+ return response.text().then((_responseText) => {
19420
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
19421
+ });
19422
+ }
19423
+ return Promise.resolve<MeasurementFormImportStatusDto>(null as any);
19424
+ }
19425
+
19219
19426
  listLinkableMeasurementFormSchemas(schemaId: string, pageSize: number | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormListDto> {
19220
19427
  let url_ = this.baseUrl + "/measurementforms/schemas/{schemaId}/listlinkableschemas?";
19221
19428
  if (schemaId === undefined || schemaId === null)
@@ -33638,6 +33845,8 @@ export class DowntimeReasonDto implements IDowntimeReasonDto {
33638
33845
  machineTypes!: string[];
33639
33846
  reasonType!: DowntimeReasonTypeDto;
33640
33847
  description?: string | null;
33848
+ parentId?: string | null;
33849
+ displayOrder?: number | null;
33641
33850
 
33642
33851
  constructor(data?: IDowntimeReasonDto) {
33643
33852
  if (data) {
@@ -33662,6 +33871,8 @@ export class DowntimeReasonDto implements IDowntimeReasonDto {
33662
33871
  }
33663
33872
  this.reasonType = _data["reasonType"];
33664
33873
  this.description = _data["description"];
33874
+ this.parentId = _data["parentId"];
33875
+ this.displayOrder = _data["displayOrder"];
33665
33876
  }
33666
33877
  }
33667
33878
 
@@ -33683,6 +33894,8 @@ export class DowntimeReasonDto implements IDowntimeReasonDto {
33683
33894
  }
33684
33895
  data["reasonType"] = this.reasonType;
33685
33896
  data["description"] = this.description;
33897
+ data["parentId"] = this.parentId;
33898
+ data["displayOrder"] = this.displayOrder;
33686
33899
  return data;
33687
33900
  }
33688
33901
  }
@@ -33693,6 +33906,8 @@ export interface IDowntimeReasonDto {
33693
33906
  machineTypes: string[];
33694
33907
  reasonType: DowntimeReasonTypeDto;
33695
33908
  description?: string | null;
33909
+ parentId?: string | null;
33910
+ displayOrder?: number | null;
33696
33911
  }
33697
33912
 
33698
33913
  export class CreateDowntimeReason implements ICreateDowntimeReason {
@@ -33759,6 +33974,8 @@ export class UpdateDowntimeReasonRequest implements IUpdateDowntimeReasonRequest
33759
33974
  machineTypes!: string[];
33760
33975
  reasonType!: DowntimeReasonTypeDto;
33761
33976
  description?: string | null;
33977
+ parentId?: string | null;
33978
+ displayOrder?: number | null;
33762
33979
 
33763
33980
  constructor(data?: IUpdateDowntimeReasonRequest) {
33764
33981
  if (data) {
@@ -33782,6 +33999,8 @@ export class UpdateDowntimeReasonRequest implements IUpdateDowntimeReasonRequest
33782
33999
  }
33783
34000
  this.reasonType = _data["reasonType"];
33784
34001
  this.description = _data["description"];
34002
+ this.parentId = _data["parentId"];
34003
+ this.displayOrder = _data["displayOrder"];
33785
34004
  }
33786
34005
  }
33787
34006
 
@@ -33802,6 +34021,8 @@ export class UpdateDowntimeReasonRequest implements IUpdateDowntimeReasonRequest
33802
34021
  }
33803
34022
  data["reasonType"] = this.reasonType;
33804
34023
  data["description"] = this.description;
34024
+ data["parentId"] = this.parentId;
34025
+ data["displayOrder"] = this.displayOrder;
33805
34026
  return data;
33806
34027
  }
33807
34028
  }
@@ -33811,6 +34032,8 @@ export interface IUpdateDowntimeReasonRequest {
33811
34032
  machineTypes: string[];
33812
34033
  reasonType: DowntimeReasonTypeDto;
33813
34034
  description?: string | null;
34035
+ parentId?: string | null;
34036
+ displayOrder?: number | null;
33814
34037
  }
33815
34038
 
33816
34039
  export class MachineTypeDto implements IMachineTypeDto {
@@ -33849,6 +34072,154 @@ export interface IMachineTypeDto {
33849
34072
  machineType: string;
33850
34073
  }
33851
34074
 
34075
+ export class ParentTopicDto implements IParentTopicDto {
34076
+ id!: string;
34077
+ name!: string;
34078
+ reasonType!: DowntimeReasonTypeDto;
34079
+ description?: string | null;
34080
+ displayOrder?: number;
34081
+
34082
+ constructor(data?: IParentTopicDto) {
34083
+ if (data) {
34084
+ for (var property in data) {
34085
+ if (data.hasOwnProperty(property))
34086
+ (<any>this)[property] = (<any>data)[property];
34087
+ }
34088
+ }
34089
+ }
34090
+
34091
+ init(_data?: any) {
34092
+ if (_data) {
34093
+ this.id = _data["id"];
34094
+ this.name = _data["name"];
34095
+ this.reasonType = _data["reasonType"];
34096
+ this.description = _data["description"];
34097
+ this.displayOrder = _data["displayOrder"];
34098
+ }
34099
+ }
34100
+
34101
+ static fromJS(data: any): ParentTopicDto {
34102
+ data = typeof data === 'object' ? data : {};
34103
+ let result = new ParentTopicDto();
34104
+ result.init(data);
34105
+ return result;
34106
+ }
34107
+
34108
+ toJSON(data?: any) {
34109
+ data = typeof data === 'object' ? data : {};
34110
+ data["id"] = this.id;
34111
+ data["name"] = this.name;
34112
+ data["reasonType"] = this.reasonType;
34113
+ data["description"] = this.description;
34114
+ data["displayOrder"] = this.displayOrder;
34115
+ return data;
34116
+ }
34117
+ }
34118
+
34119
+ export interface IParentTopicDto {
34120
+ id: string;
34121
+ name: string;
34122
+ reasonType: DowntimeReasonTypeDto;
34123
+ description?: string | null;
34124
+ displayOrder?: number;
34125
+ }
34126
+
34127
+ export class CreateParentTopicRequest implements ICreateParentTopicRequest {
34128
+ name!: string;
34129
+ reasonType!: DowntimeReasonTypeDto;
34130
+ description?: string | null;
34131
+ displayOrder?: number | null;
34132
+
34133
+ constructor(data?: ICreateParentTopicRequest) {
34134
+ if (data) {
34135
+ for (var property in data) {
34136
+ if (data.hasOwnProperty(property))
34137
+ (<any>this)[property] = (<any>data)[property];
34138
+ }
34139
+ }
34140
+ }
34141
+
34142
+ init(_data?: any) {
34143
+ if (_data) {
34144
+ this.name = _data["name"];
34145
+ this.reasonType = _data["reasonType"];
34146
+ this.description = _data["description"];
34147
+ this.displayOrder = _data["displayOrder"];
34148
+ }
34149
+ }
34150
+
34151
+ static fromJS(data: any): CreateParentTopicRequest {
34152
+ data = typeof data === 'object' ? data : {};
34153
+ let result = new CreateParentTopicRequest();
34154
+ result.init(data);
34155
+ return result;
34156
+ }
34157
+
34158
+ toJSON(data?: any) {
34159
+ data = typeof data === 'object' ? data : {};
34160
+ data["name"] = this.name;
34161
+ data["reasonType"] = this.reasonType;
34162
+ data["description"] = this.description;
34163
+ data["displayOrder"] = this.displayOrder;
34164
+ return data;
34165
+ }
34166
+ }
34167
+
34168
+ export interface ICreateParentTopicRequest {
34169
+ name: string;
34170
+ reasonType: DowntimeReasonTypeDto;
34171
+ description?: string | null;
34172
+ displayOrder?: number | null;
34173
+ }
34174
+
34175
+ export class UpdateParentTopicRequest implements IUpdateParentTopicRequest {
34176
+ name!: string;
34177
+ reasonType!: DowntimeReasonTypeDto;
34178
+ description?: string | null;
34179
+ displayOrder?: number | null;
34180
+
34181
+ constructor(data?: IUpdateParentTopicRequest) {
34182
+ if (data) {
34183
+ for (var property in data) {
34184
+ if (data.hasOwnProperty(property))
34185
+ (<any>this)[property] = (<any>data)[property];
34186
+ }
34187
+ }
34188
+ }
34189
+
34190
+ init(_data?: any) {
34191
+ if (_data) {
34192
+ this.name = _data["name"];
34193
+ this.reasonType = _data["reasonType"];
34194
+ this.description = _data["description"];
34195
+ this.displayOrder = _data["displayOrder"];
34196
+ }
34197
+ }
34198
+
34199
+ static fromJS(data: any): UpdateParentTopicRequest {
34200
+ data = typeof data === 'object' ? data : {};
34201
+ let result = new UpdateParentTopicRequest();
34202
+ result.init(data);
34203
+ return result;
34204
+ }
34205
+
34206
+ toJSON(data?: any) {
34207
+ data = typeof data === 'object' ? data : {};
34208
+ data["name"] = this.name;
34209
+ data["reasonType"] = this.reasonType;
34210
+ data["description"] = this.description;
34211
+ data["displayOrder"] = this.displayOrder;
34212
+ return data;
34213
+ }
34214
+ }
34215
+
34216
+ export interface IUpdateParentTopicRequest {
34217
+ name: string;
34218
+ reasonType: DowntimeReasonTypeDto;
34219
+ description?: string | null;
34220
+ displayOrder?: number | null;
34221
+ }
34222
+
33852
34223
  export class CreateDowntimePeriodReason implements ICreateDowntimePeriodReason {
33853
34224
  reasonId!: string;
33854
34225
  assetId!: number;
@@ -53656,6 +54027,54 @@ export interface IUploadRequest {
53656
54027
  filename: string;
53657
54028
  }
53658
54029
 
54030
+ export class MeasurementFormImportStatusDto implements IMeasurementFormImportStatusDto {
54031
+ progress!: number;
54032
+ totalElements!: number;
54033
+ errorMessage!: string;
54034
+ timestamp!: Date;
54035
+
54036
+ constructor(data?: IMeasurementFormImportStatusDto) {
54037
+ if (data) {
54038
+ for (var property in data) {
54039
+ if (data.hasOwnProperty(property))
54040
+ (<any>this)[property] = (<any>data)[property];
54041
+ }
54042
+ }
54043
+ }
54044
+
54045
+ init(_data?: any) {
54046
+ if (_data) {
54047
+ this.progress = _data["progress"];
54048
+ this.totalElements = _data["totalElements"];
54049
+ this.errorMessage = _data["errorMessage"];
54050
+ this.timestamp = _data["timestamp"] ? new Date(_data["timestamp"].toString()) : <any>undefined;
54051
+ }
54052
+ }
54053
+
54054
+ static fromJS(data: any): MeasurementFormImportStatusDto {
54055
+ data = typeof data === 'object' ? data : {};
54056
+ let result = new MeasurementFormImportStatusDto();
54057
+ result.init(data);
54058
+ return result;
54059
+ }
54060
+
54061
+ toJSON(data?: any) {
54062
+ data = typeof data === 'object' ? data : {};
54063
+ data["progress"] = this.progress;
54064
+ data["totalElements"] = this.totalElements;
54065
+ data["errorMessage"] = this.errorMessage;
54066
+ data["timestamp"] = this.timestamp ? this.timestamp.toISOString() : <any>undefined;
54067
+ return data;
54068
+ }
54069
+ }
54070
+
54071
+ export interface IMeasurementFormImportStatusDto {
54072
+ progress: number;
54073
+ totalElements: number;
54074
+ errorMessage: string;
54075
+ timestamp: Date;
54076
+ }
54077
+
53659
54078
  export class ListLinkableMeasurementFormSchemasRequest implements IListLinkableMeasurementFormSchemasRequest {
53660
54079
  schemaId!: string;
53661
54080
  pageSize?: number | null;
@@ -54136,6 +54555,8 @@ export interface IMeasurementFormMappingDto {
54136
54555
  }
54137
54556
 
54138
54557
  export class MeasurementFormReferenceMappingDto implements IMeasurementFormReferenceMappingDto {
54558
+ balloon?: MeasurementFormGroupedElementDto | null;
54559
+ mappedBalloonId?: string | null;
54139
54560
  reference!: MeasurementFormGroupedElementDto;
54140
54561
  mappedReference?: number;
54141
54562
  mappingScorePercent?: number | null;
@@ -54154,6 +54575,8 @@ export class MeasurementFormReferenceMappingDto implements IMeasurementFormRefer
54154
54575
 
54155
54576
  init(_data?: any) {
54156
54577
  if (_data) {
54578
+ this.balloon = _data["balloon"] ? MeasurementFormGroupedElementDto.fromJS(_data["balloon"]) : <any>undefined;
54579
+ this.mappedBalloonId = _data["mappedBalloonId"];
54157
54580
  this.reference = _data["reference"] ? MeasurementFormGroupedElementDto.fromJS(_data["reference"]) : new MeasurementFormGroupedElementDto();
54158
54581
  this.mappedReference = _data["mappedReference"];
54159
54582
  this.mappingScorePercent = _data["mappingScorePercent"];
@@ -54169,6 +54592,8 @@ export class MeasurementFormReferenceMappingDto implements IMeasurementFormRefer
54169
54592
 
54170
54593
  toJSON(data?: any) {
54171
54594
  data = typeof data === 'object' ? data : {};
54595
+ data["balloon"] = this.balloon ? this.balloon.toJSON() : <any>undefined;
54596
+ data["mappedBalloonId"] = this.mappedBalloonId;
54172
54597
  data["reference"] = this.reference ? this.reference.toJSON() : <any>undefined;
54173
54598
  data["mappedReference"] = this.mappedReference;
54174
54599
  data["mappingScorePercent"] = this.mappingScorePercent;
@@ -54177,6 +54602,8 @@ export class MeasurementFormReferenceMappingDto implements IMeasurementFormRefer
54177
54602
  }
54178
54603
 
54179
54604
  export interface IMeasurementFormReferenceMappingDto {
54605
+ balloon?: MeasurementFormGroupedElementDto | null;
54606
+ mappedBalloonId?: string | null;
54180
54607
  reference: MeasurementFormGroupedElementDto;
54181
54608
  mappedReference?: number;
54182
54609
  mappingScorePercent?: number | null;
@@ -56533,7 +56960,7 @@ export class MeasurementFormInstanceElementDto implements IMeasurementFormInstan
56533
56960
  isDocumentedExternally!: boolean;
56534
56961
  canOverrideIsDocumentedExternally!: boolean;
56535
56962
  balloonSequence?: number | null;
56536
- referenceSerialNumber?: number | null;
56963
+ referenceIndex?: number | null;
56537
56964
  balloonQuantity?: number | null;
56538
56965
  referenceQuantity?: number | null;
56539
56966
  plusTolerance?: string | null;
@@ -56592,7 +57019,7 @@ export class MeasurementFormInstanceElementDto implements IMeasurementFormInstan
56592
57019
  this.isDocumentedExternally = _data["isDocumentedExternally"];
56593
57020
  this.canOverrideIsDocumentedExternally = _data["canOverrideIsDocumentedExternally"];
56594
57021
  this.balloonSequence = _data["balloonSequence"];
56595
- this.referenceSerialNumber = _data["referenceSerialNumber"];
57022
+ this.referenceIndex = _data["referenceIndex"];
56596
57023
  this.balloonQuantity = _data["balloonQuantity"];
56597
57024
  this.referenceQuantity = _data["referenceQuantity"];
56598
57025
  this.plusTolerance = _data["plusTolerance"];
@@ -56652,7 +57079,7 @@ export class MeasurementFormInstanceElementDto implements IMeasurementFormInstan
56652
57079
  data["isDocumentedExternally"] = this.isDocumentedExternally;
56653
57080
  data["canOverrideIsDocumentedExternally"] = this.canOverrideIsDocumentedExternally;
56654
57081
  data["balloonSequence"] = this.balloonSequence;
56655
- data["referenceSerialNumber"] = this.referenceSerialNumber;
57082
+ data["referenceIndex"] = this.referenceIndex;
56656
57083
  data["balloonQuantity"] = this.balloonQuantity;
56657
57084
  data["referenceQuantity"] = this.referenceQuantity;
56658
57085
  data["plusTolerance"] = this.plusTolerance;
@@ -56705,7 +57132,7 @@ export interface IMeasurementFormInstanceElementDto {
56705
57132
  isDocumentedExternally: boolean;
56706
57133
  canOverrideIsDocumentedExternally: boolean;
56707
57134
  balloonSequence?: number | null;
56708
- referenceSerialNumber?: number | null;
57135
+ referenceIndex?: number | null;
56709
57136
  balloonQuantity?: number | null;
56710
57137
  referenceQuantity?: number | null;
56711
57138
  plusTolerance?: string | null;