@ignos/api-client 20250314.0.11374 → 20250318.0.11384

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,6 +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
1912
  uploadMeasurementImage(id: string, request: UploadMeasurementImageRequest): Promise<MeasurementFormSchemaDto>;
1912
1913
  updateSchemaSettings(id: string, request: UpdateSchemaSettingsRequest): Promise<UpdateSchemaSettingsRequest>;
1913
1914
  uploadSchemaDrawing(id: string, request: UploadDrawingRequest): Promise<MeasurementFormSchemaDto>;
@@ -1979,6 +1980,8 @@ export declare class MeasurementFormSchemasClient extends AuthorizedApiBase impl
1979
1980
  protected processUpdateSchemaGroupedElements(response: Response): Promise<MeasurementFormSchemaDto>;
1980
1981
  updateSchemaRow(id: string, request: UpdateSchemaGroupedElementRowDto): Promise<MeasurementFormSchemaDto>;
1981
1982
  protected processUpdateSchemaRow(response: Response): Promise<MeasurementFormSchemaDto>;
1983
+ deleteSchemaRow(id: string, ballonId: string | null | undefined): Promise<MeasurementFormSchemaDto>;
1984
+ protected processDeleteSchemaRow(response: Response): Promise<MeasurementFormSchemaDto>;
1982
1985
  uploadMeasurementImage(id: string, request: UploadMeasurementImageRequest): Promise<MeasurementFormSchemaDto>;
1983
1986
  protected processUploadMeasurementImage(response: Response): Promise<MeasurementFormSchemaDto>;
1984
1987
  updateSchemaSettings(id: string, request: UpdateSchemaSettingsRequest): Promise<UpdateSchemaSettingsRequest>;
@@ -10901,9 +10904,10 @@ export interface IMeasurementFormSchemaAttachmentDto {
10901
10904
  title: string;
10902
10905
  }
10903
10906
  export declare class MeasurementFormGroupedElementDto implements IMeasurementFormGroupedElementDto {
10907
+ id: string;
10908
+ balloonId: string;
10904
10909
  imageUrl?: string | null;
10905
10910
  thumbnailUrl?: string | null;
10906
- balloonId: string;
10907
10911
  section?: string | null;
10908
10912
  pageNumber?: number;
10909
10913
  sheetZone?: string | null;
@@ -10945,9 +10949,10 @@ export declare class MeasurementFormGroupedElementDto implements IMeasurementFor
10945
10949
  toJSON(data?: any): any;
10946
10950
  }
10947
10951
  export interface IMeasurementFormGroupedElementDto {
10952
+ id: string;
10953
+ balloonId: string;
10948
10954
  imageUrl?: string | null;
10949
10955
  thumbnailUrl?: string | null;
10950
- balloonId: string;
10951
10956
  section?: string | null;
10952
10957
  pageNumber?: number;
10953
10958
  sheetZone?: string | null;
@@ -11108,6 +11113,7 @@ export interface IUpdateSchemaGroupedElementDto {
11108
11113
  isDocumentedExternally: boolean;
11109
11114
  }
11110
11115
  export declare class UpdateSchemaGroupedElementRowDto implements IUpdateSchemaGroupedElementRowDto {
11116
+ id: string;
11111
11117
  balloonId: string;
11112
11118
  section?: string | null;
11113
11119
  pageNumber?: number | null;
@@ -11133,6 +11139,7 @@ export declare class UpdateSchemaGroupedElementRowDto implements IUpdateSchemaGr
11133
11139
  toJSON(data?: any): any;
11134
11140
  }
11135
11141
  export interface IUpdateSchemaGroupedElementRowDto {
11142
+ id: string;
11136
11143
  balloonId: string;
11137
11144
  section?: string | null;
11138
11145
  pageNumber?: number | null;
@@ -15760,6 +15760,48 @@ 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?";
15765
+ if (id === undefined || id === null)
15766
+ throw new Error("The parameter 'id' must be defined.");
15767
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
15768
+ if (ballonId !== undefined && ballonId !== null)
15769
+ url_ += "ballonId=" + encodeURIComponent("" + ballonId) + "&";
15770
+ url_ = url_.replace(/[?&]$/, "");
15771
+ let options_ = {
15772
+ method: "DELETE",
15773
+ headers: {
15774
+ "Accept": "application/json"
15775
+ }
15776
+ };
15777
+ return this.transformOptions(options_).then(transformedOptions_ => {
15778
+ return this.http.fetch(url_, transformedOptions_);
15779
+ }).then((_response) => {
15780
+ return this.processDeleteSchemaRow(_response);
15781
+ });
15782
+ }
15783
+ processDeleteSchemaRow(response) {
15784
+ const status = response.status;
15785
+ let _headers = {};
15786
+ if (response.headers && response.headers.forEach) {
15787
+ response.headers.forEach((v, k) => _headers[k] = v);
15788
+ }
15789
+ ;
15790
+ if (status === 200) {
15791
+ return response.text().then((_responseText) => {
15792
+ let result200 = null;
15793
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
15794
+ result200 = MeasurementFormSchemaDto.fromJS(resultData200);
15795
+ return result200;
15796
+ });
15797
+ }
15798
+ else if (status !== 200 && status !== 204) {
15799
+ return response.text().then((_responseText) => {
15800
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
15801
+ });
15802
+ }
15803
+ return Promise.resolve(null);
15804
+ }
15763
15805
  uploadMeasurementImage(id, request) {
15764
15806
  let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploadmeasurementimage";
15765
15807
  if (id === undefined || id === null)
@@ -38355,9 +38397,10 @@ export class MeasurementFormGroupedElementDto {
38355
38397
  }
38356
38398
  init(_data) {
38357
38399
  if (_data) {
38400
+ this.id = _data["id"];
38401
+ this.balloonId = _data["balloonId"];
38358
38402
  this.imageUrl = _data["imageUrl"];
38359
38403
  this.thumbnailUrl = _data["thumbnailUrl"];
38360
- this.balloonId = _data["balloonId"];
38361
38404
  this.section = _data["section"];
38362
38405
  this.pageNumber = _data["pageNumber"];
38363
38406
  this.sheetZone = _data["sheetZone"];
@@ -38403,9 +38446,10 @@ export class MeasurementFormGroupedElementDto {
38403
38446
  }
38404
38447
  toJSON(data) {
38405
38448
  data = typeof data === 'object' ? data : {};
38449
+ data["id"] = this.id;
38450
+ data["balloonId"] = this.balloonId;
38406
38451
  data["imageUrl"] = this.imageUrl;
38407
38452
  data["thumbnailUrl"] = this.thumbnailUrl;
38408
- data["balloonId"] = this.balloonId;
38409
38453
  data["section"] = this.section;
38410
38454
  data["pageNumber"] = this.pageNumber;
38411
38455
  data["sheetZone"] = this.sheetZone;
@@ -38693,6 +38737,7 @@ export class UpdateSchemaGroupedElementRowDto {
38693
38737
  }
38694
38738
  init(_data) {
38695
38739
  if (_data) {
38740
+ this.id = _data["id"];
38696
38741
  this.balloonId = _data["balloonId"];
38697
38742
  this.section = _data["section"];
38698
38743
  this.pageNumber = _data["pageNumber"];
@@ -38722,6 +38767,7 @@ export class UpdateSchemaGroupedElementRowDto {
38722
38767
  }
38723
38768
  toJSON(data) {
38724
38769
  data = typeof data === 'object' ? data : {};
38770
+ data["id"] = this.id;
38725
38771
  data["balloonId"] = this.balloonId;
38726
38772
  data["section"] = this.section;
38727
38773
  data["pageNumber"] = this.pageNumber;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20250314.0.11374",
3
+ "version": "20250318.0.11384",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -16538,6 +16538,8 @@ 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>;
16542
+
16541
16543
  uploadMeasurementImage(id: string, request: UploadMeasurementImageRequest): Promise<MeasurementFormSchemaDto>;
16542
16544
 
16543
16545
  updateSchemaSettings(id: string, request: UpdateSchemaSettingsRequest): Promise<UpdateSchemaSettingsRequest>;
@@ -16949,6 +16951,47 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
16949
16951
  return Promise.resolve<MeasurementFormSchemaDto>(null as any);
16950
16952
  }
16951
16953
 
16954
+ deleteSchemaRow(id: string, ballonId: string | null | undefined): Promise<MeasurementFormSchemaDto> {
16955
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}/deleterow?";
16956
+ if (id === undefined || id === null)
16957
+ throw new Error("The parameter 'id' must be defined.");
16958
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
16959
+ if (ballonId !== undefined && ballonId !== null)
16960
+ url_ += "ballonId=" + encodeURIComponent("" + ballonId) + "&";
16961
+ url_ = url_.replace(/[?&]$/, "");
16962
+
16963
+ let options_: RequestInit = {
16964
+ method: "DELETE",
16965
+ headers: {
16966
+ "Accept": "application/json"
16967
+ }
16968
+ };
16969
+
16970
+ return this.transformOptions(options_).then(transformedOptions_ => {
16971
+ return this.http.fetch(url_, transformedOptions_);
16972
+ }).then((_response: Response) => {
16973
+ return this.processDeleteSchemaRow(_response);
16974
+ });
16975
+ }
16976
+
16977
+ protected processDeleteSchemaRow(response: Response): Promise<MeasurementFormSchemaDto> {
16978
+ const status = response.status;
16979
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
16980
+ if (status === 200) {
16981
+ return response.text().then((_responseText) => {
16982
+ let result200: any = null;
16983
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
16984
+ result200 = MeasurementFormSchemaDto.fromJS(resultData200);
16985
+ return result200;
16986
+ });
16987
+ } else if (status !== 200 && status !== 204) {
16988
+ return response.text().then((_responseText) => {
16989
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
16990
+ });
16991
+ }
16992
+ return Promise.resolve<MeasurementFormSchemaDto>(null as any);
16993
+ }
16994
+
16952
16995
  uploadMeasurementImage(id: string, request: UploadMeasurementImageRequest): Promise<MeasurementFormSchemaDto> {
16953
16996
  let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploadmeasurementimage";
16954
16997
  if (id === undefined || id === null)
@@ -48168,9 +48211,10 @@ export interface IMeasurementFormSchemaAttachmentDto {
48168
48211
  }
48169
48212
 
48170
48213
  export class MeasurementFormGroupedElementDto implements IMeasurementFormGroupedElementDto {
48214
+ id!: string;
48215
+ balloonId!: string;
48171
48216
  imageUrl?: string | null;
48172
48217
  thumbnailUrl?: string | null;
48173
- balloonId!: string;
48174
48218
  section?: string | null;
48175
48219
  pageNumber?: number;
48176
48220
  sheetZone?: string | null;
@@ -48218,9 +48262,10 @@ export class MeasurementFormGroupedElementDto implements IMeasurementFormGrouped
48218
48262
 
48219
48263
  init(_data?: any) {
48220
48264
  if (_data) {
48265
+ this.id = _data["id"];
48266
+ this.balloonId = _data["balloonId"];
48221
48267
  this.imageUrl = _data["imageUrl"];
48222
48268
  this.thumbnailUrl = _data["thumbnailUrl"];
48223
- this.balloonId = _data["balloonId"];
48224
48269
  this.section = _data["section"];
48225
48270
  this.pageNumber = _data["pageNumber"];
48226
48271
  this.sheetZone = _data["sheetZone"];
@@ -48268,9 +48313,10 @@ export class MeasurementFormGroupedElementDto implements IMeasurementFormGrouped
48268
48313
 
48269
48314
  toJSON(data?: any) {
48270
48315
  data = typeof data === 'object' ? data : {};
48316
+ data["id"] = this.id;
48317
+ data["balloonId"] = this.balloonId;
48271
48318
  data["imageUrl"] = this.imageUrl;
48272
48319
  data["thumbnailUrl"] = this.thumbnailUrl;
48273
- data["balloonId"] = this.balloonId;
48274
48320
  data["section"] = this.section;
48275
48321
  data["pageNumber"] = this.pageNumber;
48276
48322
  data["sheetZone"] = this.sheetZone;
@@ -48311,9 +48357,10 @@ export class MeasurementFormGroupedElementDto implements IMeasurementFormGrouped
48311
48357
  }
48312
48358
 
48313
48359
  export interface IMeasurementFormGroupedElementDto {
48360
+ id: string;
48361
+ balloonId: string;
48314
48362
  imageUrl?: string | null;
48315
48363
  thumbnailUrl?: string | null;
48316
- balloonId: string;
48317
48364
  section?: string | null;
48318
48365
  pageNumber?: number;
48319
48366
  sheetZone?: string | null;
@@ -48716,6 +48763,7 @@ export interface IUpdateSchemaGroupedElementDto {
48716
48763
  }
48717
48764
 
48718
48765
  export class UpdateSchemaGroupedElementRowDto implements IUpdateSchemaGroupedElementRowDto {
48766
+ id!: string;
48719
48767
  balloonId!: string;
48720
48768
  section?: string | null;
48721
48769
  pageNumber?: number | null;
@@ -48747,6 +48795,7 @@ export class UpdateSchemaGroupedElementRowDto implements IUpdateSchemaGroupedEle
48747
48795
 
48748
48796
  init(_data?: any) {
48749
48797
  if (_data) {
48798
+ this.id = _data["id"];
48750
48799
  this.balloonId = _data["balloonId"];
48751
48800
  this.section = _data["section"];
48752
48801
  this.pageNumber = _data["pageNumber"];
@@ -48778,6 +48827,7 @@ export class UpdateSchemaGroupedElementRowDto implements IUpdateSchemaGroupedEle
48778
48827
 
48779
48828
  toJSON(data?: any) {
48780
48829
  data = typeof data === 'object' ? data : {};
48830
+ data["id"] = this.id;
48781
48831
  data["balloonId"] = this.balloonId;
48782
48832
  data["section"] = this.section;
48783
48833
  data["pageNumber"] = this.pageNumber;
@@ -48802,6 +48852,7 @@ export class UpdateSchemaGroupedElementRowDto implements IUpdateSchemaGroupedEle
48802
48852
  }
48803
48853
 
48804
48854
  export interface IUpdateSchemaGroupedElementRowDto {
48855
+ id: string;
48805
48856
  balloonId: string;
48806
48857
  section?: string | null;
48807
48858
  pageNumber?: number | null;