@ignos/api-client 20250318.0.11384 → 20250318.0.11388

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.
@@ -1908,7 +1908,7 @@ export interface IMeasurementFormSchemasClient {
1908
1908
  updateMeasurementFormSchema(id: string, request: UpdateMeasurementFormSchemaRequest): Promise<MeasurementFormSchemaDto>;
1909
1909
  updateSchemaGroupedElements(id: string, request: UpdateSchemaGroupedElementsRequest): Promise<MeasurementFormSchemaDto>;
1910
1910
  updateSchemaRow(id: string, request: UpdateSchemaGroupedElementRowDto): Promise<MeasurementFormSchemaDto>;
1911
- deleteSchemaRow(id: string, ballonId: string | null | undefined): Promise<MeasurementFormSchemaDto>;
1911
+ deleteSchemaRows(id: string, request: DeleteSchemaGroupedElementRowsDto): Promise<MeasurementFormSchemaDto>;
1912
1912
  uploadMeasurementImage(id: string, request: UploadMeasurementImageRequest): Promise<MeasurementFormSchemaDto>;
1913
1913
  updateSchemaSettings(id: string, request: UpdateSchemaSettingsRequest): Promise<UpdateSchemaSettingsRequest>;
1914
1914
  uploadSchemaDrawing(id: string, request: UploadDrawingRequest): Promise<MeasurementFormSchemaDto>;
@@ -1980,8 +1980,8 @@ export declare class MeasurementFormSchemasClient extends AuthorizedApiBase impl
1980
1980
  protected processUpdateSchemaGroupedElements(response: Response): Promise<MeasurementFormSchemaDto>;
1981
1981
  updateSchemaRow(id: string, request: UpdateSchemaGroupedElementRowDto): Promise<MeasurementFormSchemaDto>;
1982
1982
  protected processUpdateSchemaRow(response: Response): Promise<MeasurementFormSchemaDto>;
1983
- deleteSchemaRow(id: string, ballonId: string | null | undefined): Promise<MeasurementFormSchemaDto>;
1984
- protected processDeleteSchemaRow(response: Response): Promise<MeasurementFormSchemaDto>;
1983
+ deleteSchemaRows(id: string, request: DeleteSchemaGroupedElementRowsDto): Promise<MeasurementFormSchemaDto>;
1984
+ protected processDeleteSchemaRows(response: Response): Promise<MeasurementFormSchemaDto>;
1985
1985
  uploadMeasurementImage(id: string, request: UploadMeasurementImageRequest): Promise<MeasurementFormSchemaDto>;
1986
1986
  protected processUploadMeasurementImage(response: Response): Promise<MeasurementFormSchemaDto>;
1987
1987
  updateSchemaSettings(id: string, request: UpdateSchemaSettingsRequest): Promise<UpdateSchemaSettingsRequest>;
@@ -11160,6 +11160,16 @@ export interface IUpdateSchemaGroupedElementRowDto {
11160
11160
  canCopy?: boolean | null;
11161
11161
  isDocumentedExternally: boolean;
11162
11162
  }
11163
+ export declare class DeleteSchemaGroupedElementRowsDto implements IDeleteSchemaGroupedElementRowsDto {
11164
+ balloonIds: string[];
11165
+ constructor(data?: IDeleteSchemaGroupedElementRowsDto);
11166
+ init(_data?: any): void;
11167
+ static fromJS(data: any): DeleteSchemaGroupedElementRowsDto;
11168
+ toJSON(data?: any): any;
11169
+ }
11170
+ export interface IDeleteSchemaGroupedElementRowsDto {
11171
+ balloonIds: string[];
11172
+ }
11163
11173
  export declare class UploadMeasurementImageRequest implements IUploadMeasurementImageRequest {
11164
11174
  uploadKey: string;
11165
11175
  filename: string;
@@ -15760,27 +15760,28 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
15760
15760
  }
15761
15761
  return Promise.resolve(null);
15762
15762
  }
15763
- deleteSchemaRow(id, ballonId) {
15764
- let url_ = this.baseUrl + "/measurementforms/schemas/{id}/deleterow?";
15763
+ deleteSchemaRows(id, request) {
15764
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}/deleterows";
15765
15765
  if (id === undefined || id === null)
15766
15766
  throw new Error("The parameter 'id' must be defined.");
15767
15767
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
15768
- if (ballonId !== undefined && ballonId !== null)
15769
- url_ += "ballonId=" + encodeURIComponent("" + ballonId) + "&";
15770
15768
  url_ = url_.replace(/[?&]$/, "");
15769
+ const content_ = JSON.stringify(request);
15771
15770
  let options_ = {
15771
+ body: content_,
15772
15772
  method: "DELETE",
15773
15773
  headers: {
15774
+ "Content-Type": "application/json",
15774
15775
  "Accept": "application/json"
15775
15776
  }
15776
15777
  };
15777
15778
  return this.transformOptions(options_).then(transformedOptions_ => {
15778
15779
  return this.http.fetch(url_, transformedOptions_);
15779
15780
  }).then((_response) => {
15780
- return this.processDeleteSchemaRow(_response);
15781
+ return this.processDeleteSchemaRows(_response);
15781
15782
  });
15782
15783
  }
15783
- processDeleteSchemaRow(response) {
15784
+ processDeleteSchemaRows(response) {
15784
15785
  const status = response.status;
15785
15786
  let _headers = {};
15786
15787
  if (response.headers && response.headers.forEach) {
@@ -38790,6 +38791,43 @@ export class UpdateSchemaGroupedElementRowDto {
38790
38791
  return data;
38791
38792
  }
38792
38793
  }
38794
+ export class DeleteSchemaGroupedElementRowsDto {
38795
+ constructor(data) {
38796
+ if (data) {
38797
+ for (var property in data) {
38798
+ if (data.hasOwnProperty(property))
38799
+ this[property] = data[property];
38800
+ }
38801
+ }
38802
+ if (!data) {
38803
+ this.balloonIds = [];
38804
+ }
38805
+ }
38806
+ init(_data) {
38807
+ if (_data) {
38808
+ if (Array.isArray(_data["balloonIds"])) {
38809
+ this.balloonIds = [];
38810
+ for (let item of _data["balloonIds"])
38811
+ this.balloonIds.push(item);
38812
+ }
38813
+ }
38814
+ }
38815
+ static fromJS(data) {
38816
+ data = typeof data === 'object' ? data : {};
38817
+ let result = new DeleteSchemaGroupedElementRowsDto();
38818
+ result.init(data);
38819
+ return result;
38820
+ }
38821
+ toJSON(data) {
38822
+ data = typeof data === 'object' ? data : {};
38823
+ if (Array.isArray(this.balloonIds)) {
38824
+ data["balloonIds"] = [];
38825
+ for (let item of this.balloonIds)
38826
+ data["balloonIds"].push(item);
38827
+ }
38828
+ return data;
38829
+ }
38830
+ }
38793
38831
  export class UploadMeasurementImageRequest {
38794
38832
  constructor(data) {
38795
38833
  if (data) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20250318.0.11384",
3
+ "version": "20250318.0.11388",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -16538,7 +16538,7 @@ export interface IMeasurementFormSchemasClient {
16538
16538
 
16539
16539
  updateSchemaRow(id: string, request: UpdateSchemaGroupedElementRowDto): Promise<MeasurementFormSchemaDto>;
16540
16540
 
16541
- deleteSchemaRow(id: string, ballonId: string | null | undefined): Promise<MeasurementFormSchemaDto>;
16541
+ deleteSchemaRows(id: string, request: DeleteSchemaGroupedElementRowsDto): Promise<MeasurementFormSchemaDto>;
16542
16542
 
16543
16543
  uploadMeasurementImage(id: string, request: UploadMeasurementImageRequest): Promise<MeasurementFormSchemaDto>;
16544
16544
 
@@ -16951,18 +16951,20 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
16951
16951
  return Promise.resolve<MeasurementFormSchemaDto>(null as any);
16952
16952
  }
16953
16953
 
16954
- deleteSchemaRow(id: string, ballonId: string | null | undefined): Promise<MeasurementFormSchemaDto> {
16955
- let url_ = this.baseUrl + "/measurementforms/schemas/{id}/deleterow?";
16954
+ deleteSchemaRows(id: string, request: DeleteSchemaGroupedElementRowsDto): Promise<MeasurementFormSchemaDto> {
16955
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}/deleterows";
16956
16956
  if (id === undefined || id === null)
16957
16957
  throw new Error("The parameter 'id' must be defined.");
16958
16958
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
16959
- if (ballonId !== undefined && ballonId !== null)
16960
- url_ += "ballonId=" + encodeURIComponent("" + ballonId) + "&";
16961
16959
  url_ = url_.replace(/[?&]$/, "");
16962
16960
 
16961
+ const content_ = JSON.stringify(request);
16962
+
16963
16963
  let options_: RequestInit = {
16964
+ body: content_,
16964
16965
  method: "DELETE",
16965
16966
  headers: {
16967
+ "Content-Type": "application/json",
16966
16968
  "Accept": "application/json"
16967
16969
  }
16968
16970
  };
@@ -16970,11 +16972,11 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
16970
16972
  return this.transformOptions(options_).then(transformedOptions_ => {
16971
16973
  return this.http.fetch(url_, transformedOptions_);
16972
16974
  }).then((_response: Response) => {
16973
- return this.processDeleteSchemaRow(_response);
16975
+ return this.processDeleteSchemaRows(_response);
16974
16976
  });
16975
16977
  }
16976
16978
 
16977
- protected processDeleteSchemaRow(response: Response): Promise<MeasurementFormSchemaDto> {
16979
+ protected processDeleteSchemaRows(response: Response): Promise<MeasurementFormSchemaDto> {
16978
16980
  const status = response.status;
16979
16981
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
16980
16982
  if (status === 200) {
@@ -48874,6 +48876,53 @@ export interface IUpdateSchemaGroupedElementRowDto {
48874
48876
  isDocumentedExternally: boolean;
48875
48877
  }
48876
48878
 
48879
+ export class DeleteSchemaGroupedElementRowsDto implements IDeleteSchemaGroupedElementRowsDto {
48880
+ balloonIds!: string[];
48881
+
48882
+ constructor(data?: IDeleteSchemaGroupedElementRowsDto) {
48883
+ if (data) {
48884
+ for (var property in data) {
48885
+ if (data.hasOwnProperty(property))
48886
+ (<any>this)[property] = (<any>data)[property];
48887
+ }
48888
+ }
48889
+ if (!data) {
48890
+ this.balloonIds = [];
48891
+ }
48892
+ }
48893
+
48894
+ init(_data?: any) {
48895
+ if (_data) {
48896
+ if (Array.isArray(_data["balloonIds"])) {
48897
+ this.balloonIds = [] as any;
48898
+ for (let item of _data["balloonIds"])
48899
+ this.balloonIds!.push(item);
48900
+ }
48901
+ }
48902
+ }
48903
+
48904
+ static fromJS(data: any): DeleteSchemaGroupedElementRowsDto {
48905
+ data = typeof data === 'object' ? data : {};
48906
+ let result = new DeleteSchemaGroupedElementRowsDto();
48907
+ result.init(data);
48908
+ return result;
48909
+ }
48910
+
48911
+ toJSON(data?: any) {
48912
+ data = typeof data === 'object' ? data : {};
48913
+ if (Array.isArray(this.balloonIds)) {
48914
+ data["balloonIds"] = [];
48915
+ for (let item of this.balloonIds)
48916
+ data["balloonIds"].push(item);
48917
+ }
48918
+ return data;
48919
+ }
48920
+ }
48921
+
48922
+ export interface IDeleteSchemaGroupedElementRowsDto {
48923
+ balloonIds: string[];
48924
+ }
48925
+
48877
48926
  export class UploadMeasurementImageRequest implements IUploadMeasurementImageRequest {
48878
48927
  uploadKey!: string;
48879
48928
  filename!: string;