@ignos/api-client 20250814.0.12365 → 20250825.0.12417

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.
@@ -2053,6 +2053,7 @@ export interface IMeasurementFormSchemasClient {
2053
2053
  updateSchemaSettings(id: string, request: UpdateSchemaSettingsRequest): Promise<UpdateSchemaSettingsRequest>;
2054
2054
  uploadSchemaDrawing(id: string, request: UploadDrawingRequest): Promise<MeasurementFormSchemaDto>;
2055
2055
  uploadSchemaAttachment(id: string, request: UploadRequest): Promise<MeasurementFormSchemaDto>;
2056
+ getMeasurementFormImportStatus(id: string): Promise<MeasurementFormImportStatusDto>;
2056
2057
  listLinkableMeasurementFormSchemas(schemaId: string, pageSize: number | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormListDto>;
2057
2058
  postListLinkableMeasurementFormSchemas(request: ListLinkableMeasurementFormSchemasRequest): Promise<PagedResultOfMeasurementFormListDto>;
2058
2059
  createMeasurementFormSchemaLink(schemaId: string, request: CreateMeasurementFormSchemaLinkRequest): Promise<MeasurementFormDto>;
@@ -2140,6 +2141,8 @@ export declare class MeasurementFormSchemasClient extends AuthorizedApiBase impl
2140
2141
  protected processUploadSchemaDrawing(response: Response): Promise<MeasurementFormSchemaDto>;
2141
2142
  uploadSchemaAttachment(id: string, request: UploadRequest): Promise<MeasurementFormSchemaDto>;
2142
2143
  protected processUploadSchemaAttachment(response: Response): Promise<MeasurementFormSchemaDto>;
2144
+ getMeasurementFormImportStatus(id: string): Promise<MeasurementFormImportStatusDto>;
2145
+ protected processGetMeasurementFormImportStatus(response: Response): Promise<MeasurementFormImportStatusDto>;
2143
2146
  listLinkableMeasurementFormSchemas(schemaId: string, pageSize: number | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormListDto>;
2144
2147
  protected processListLinkableMeasurementFormSchemas(response: Response): Promise<PagedResultOfMeasurementFormListDto>;
2145
2148
  postListLinkableMeasurementFormSchemas(request: ListLinkableMeasurementFormSchemasRequest): Promise<PagedResultOfMeasurementFormListDto>;
@@ -5935,6 +5938,7 @@ export declare class CalendarDayDto implements ICalendarDayDto {
5935
5938
  date?: Date;
5936
5939
  dayCapacity?: CalendarDayCapacityDto;
5937
5940
  capacityHours?: number;
5941
+ companyId?: string | null;
5938
5942
  constructor(data?: ICalendarDayDto);
5939
5943
  init(_data?: any): void;
5940
5944
  static fromJS(data: any): CalendarDayDto;
@@ -5944,6 +5948,7 @@ export interface ICalendarDayDto {
5944
5948
  date?: Date;
5945
5949
  dayCapacity?: CalendarDayCapacityDto;
5946
5950
  capacityHours?: number;
5951
+ companyId?: string | null;
5947
5952
  }
5948
5953
  export type CalendarDayCapacityDto = "WorkingDay" | "HalfDay" | "Holiday";
5949
5954
  export declare class CalendarCapacityDto implements ICalendarCapacityDto {
@@ -12179,6 +12184,22 @@ export interface IUploadRequest {
12179
12184
  uploadKey: string;
12180
12185
  filename: string;
12181
12186
  }
12187
+ export declare class MeasurementFormImportStatusDto implements IMeasurementFormImportStatusDto {
12188
+ progress: number;
12189
+ totalElements: number;
12190
+ errorMessage: string;
12191
+ timestamp: Date;
12192
+ constructor(data?: IMeasurementFormImportStatusDto);
12193
+ init(_data?: any): void;
12194
+ static fromJS(data: any): MeasurementFormImportStatusDto;
12195
+ toJSON(data?: any): any;
12196
+ }
12197
+ export interface IMeasurementFormImportStatusDto {
12198
+ progress: number;
12199
+ totalElements: number;
12200
+ errorMessage: string;
12201
+ timestamp: Date;
12202
+ }
12182
12203
  export declare class ListLinkableMeasurementFormSchemasRequest implements IListLinkableMeasurementFormSchemasRequest {
12183
12204
  schemaId: string;
12184
12205
  pageSize?: number | null;
@@ -17577,6 +17577,46 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
17577
17577
  }
17578
17578
  return Promise.resolve(null);
17579
17579
  }
17580
+ getMeasurementFormImportStatus(id) {
17581
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}/importstatus";
17582
+ if (id === undefined || id === null)
17583
+ throw new Error("The parameter 'id' must be defined.");
17584
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
17585
+ url_ = url_.replace(/[?&]$/, "");
17586
+ let options_ = {
17587
+ method: "GET",
17588
+ headers: {
17589
+ "Accept": "application/json"
17590
+ }
17591
+ };
17592
+ return this.transformOptions(options_).then(transformedOptions_ => {
17593
+ return this.http.fetch(url_, transformedOptions_);
17594
+ }).then((_response) => {
17595
+ return this.processGetMeasurementFormImportStatus(_response);
17596
+ });
17597
+ }
17598
+ processGetMeasurementFormImportStatus(response) {
17599
+ const status = response.status;
17600
+ let _headers = {};
17601
+ if (response.headers && response.headers.forEach) {
17602
+ response.headers.forEach((v, k) => _headers[k] = v);
17603
+ }
17604
+ ;
17605
+ if (status === 200) {
17606
+ return response.text().then((_responseText) => {
17607
+ let result200 = null;
17608
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
17609
+ result200 = MeasurementFormImportStatusDto.fromJS(resultData200);
17610
+ return result200;
17611
+ });
17612
+ }
17613
+ else if (status !== 200 && status !== 204) {
17614
+ return response.text().then((_responseText) => {
17615
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
17616
+ });
17617
+ }
17618
+ return Promise.resolve(null);
17619
+ }
17580
17620
  listLinkableMeasurementFormSchemas(schemaId, pageSize, filter, continuationToken) {
17581
17621
  let url_ = this.baseUrl + "/measurementforms/schemas/{schemaId}/listlinkableschemas?";
17582
17622
  if (schemaId === undefined || schemaId === null)
@@ -29827,6 +29867,7 @@ export class CalendarDayDto {
29827
29867
  this.date = _data["date"] ? new Date(_data["date"].toString()) : undefined;
29828
29868
  this.dayCapacity = _data["dayCapacity"];
29829
29869
  this.capacityHours = _data["capacityHours"];
29870
+ this.companyId = _data["companyId"];
29830
29871
  }
29831
29872
  }
29832
29873
  static fromJS(data) {
@@ -29840,6 +29881,7 @@ export class CalendarDayDto {
29840
29881
  data["date"] = this.date ? this.date.toISOString() : undefined;
29841
29882
  data["dayCapacity"] = this.dayCapacity;
29842
29883
  data["capacityHours"] = this.capacityHours;
29884
+ data["companyId"] = this.companyId;
29843
29885
  return data;
29844
29886
  }
29845
29887
  }
@@ -42393,6 +42435,38 @@ export class UploadRequest {
42393
42435
  return data;
42394
42436
  }
42395
42437
  }
42438
+ export class MeasurementFormImportStatusDto {
42439
+ constructor(data) {
42440
+ if (data) {
42441
+ for (var property in data) {
42442
+ if (data.hasOwnProperty(property))
42443
+ this[property] = data[property];
42444
+ }
42445
+ }
42446
+ }
42447
+ init(_data) {
42448
+ if (_data) {
42449
+ this.progress = _data["progress"];
42450
+ this.totalElements = _data["totalElements"];
42451
+ this.errorMessage = _data["errorMessage"];
42452
+ this.timestamp = _data["timestamp"] ? new Date(_data["timestamp"].toString()) : undefined;
42453
+ }
42454
+ }
42455
+ static fromJS(data) {
42456
+ data = typeof data === 'object' ? data : {};
42457
+ let result = new MeasurementFormImportStatusDto();
42458
+ result.init(data);
42459
+ return result;
42460
+ }
42461
+ toJSON(data) {
42462
+ data = typeof data === 'object' ? data : {};
42463
+ data["progress"] = this.progress;
42464
+ data["totalElements"] = this.totalElements;
42465
+ data["errorMessage"] = this.errorMessage;
42466
+ data["timestamp"] = this.timestamp ? this.timestamp.toISOString() : undefined;
42467
+ return data;
42468
+ }
42469
+ }
42396
42470
  export class ListLinkableMeasurementFormSchemasRequest {
42397
42471
  constructor(data) {
42398
42472
  if (data) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20250814.0.12365",
3
+ "version": "20250825.0.12417",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -18150,6 +18150,8 @@ export interface IMeasurementFormSchemasClient {
18150
18150
 
18151
18151
  uploadSchemaAttachment(id: string, request: UploadRequest): Promise<MeasurementFormSchemaDto>;
18152
18152
 
18153
+ getMeasurementFormImportStatus(id: string): Promise<MeasurementFormImportStatusDto>;
18154
+
18153
18155
  listLinkableMeasurementFormSchemas(schemaId: string, pageSize: number | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormListDto>;
18154
18156
 
18155
18157
  postListLinkableMeasurementFormSchemas(request: ListLinkableMeasurementFormSchemasRequest): Promise<PagedResultOfMeasurementFormListDto>;
@@ -18851,6 +18853,45 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
18851
18853
  return Promise.resolve<MeasurementFormSchemaDto>(null as any);
18852
18854
  }
18853
18855
 
18856
+ getMeasurementFormImportStatus(id: string): Promise<MeasurementFormImportStatusDto> {
18857
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}/importstatus";
18858
+ if (id === undefined || id === null)
18859
+ throw new Error("The parameter 'id' must be defined.");
18860
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
18861
+ url_ = url_.replace(/[?&]$/, "");
18862
+
18863
+ let options_: RequestInit = {
18864
+ method: "GET",
18865
+ headers: {
18866
+ "Accept": "application/json"
18867
+ }
18868
+ };
18869
+
18870
+ return this.transformOptions(options_).then(transformedOptions_ => {
18871
+ return this.http.fetch(url_, transformedOptions_);
18872
+ }).then((_response: Response) => {
18873
+ return this.processGetMeasurementFormImportStatus(_response);
18874
+ });
18875
+ }
18876
+
18877
+ protected processGetMeasurementFormImportStatus(response: Response): Promise<MeasurementFormImportStatusDto> {
18878
+ const status = response.status;
18879
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
18880
+ if (status === 200) {
18881
+ return response.text().then((_responseText) => {
18882
+ let result200: any = null;
18883
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
18884
+ result200 = MeasurementFormImportStatusDto.fromJS(resultData200);
18885
+ return result200;
18886
+ });
18887
+ } else if (status !== 200 && status !== 204) {
18888
+ return response.text().then((_responseText) => {
18889
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
18890
+ });
18891
+ }
18892
+ return Promise.resolve<MeasurementFormImportStatusDto>(null as any);
18893
+ }
18894
+
18854
18895
  listLinkableMeasurementFormSchemas(schemaId: string, pageSize: number | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormListDto> {
18855
18896
  let url_ = this.baseUrl + "/measurementforms/schemas/{schemaId}/listlinkableschemas?";
18856
18897
  if (schemaId === undefined || schemaId === null)
@@ -34547,6 +34588,7 @@ export class CalendarDayDto implements ICalendarDayDto {
34547
34588
  date?: Date;
34548
34589
  dayCapacity?: CalendarDayCapacityDto;
34549
34590
  capacityHours?: number;
34591
+ companyId?: string | null;
34550
34592
 
34551
34593
  constructor(data?: ICalendarDayDto) {
34552
34594
  if (data) {
@@ -34562,6 +34604,7 @@ export class CalendarDayDto implements ICalendarDayDto {
34562
34604
  this.date = _data["date"] ? new Date(_data["date"].toString()) : <any>undefined;
34563
34605
  this.dayCapacity = _data["dayCapacity"];
34564
34606
  this.capacityHours = _data["capacityHours"];
34607
+ this.companyId = _data["companyId"];
34565
34608
  }
34566
34609
  }
34567
34610
 
@@ -34577,6 +34620,7 @@ export class CalendarDayDto implements ICalendarDayDto {
34577
34620
  data["date"] = this.date ? this.date.toISOString() : <any>undefined;
34578
34621
  data["dayCapacity"] = this.dayCapacity;
34579
34622
  data["capacityHours"] = this.capacityHours;
34623
+ data["companyId"] = this.companyId;
34580
34624
  return data;
34581
34625
  }
34582
34626
  }
@@ -34585,6 +34629,7 @@ export interface ICalendarDayDto {
34585
34629
  date?: Date;
34586
34630
  dayCapacity?: CalendarDayCapacityDto;
34587
34631
  capacityHours?: number;
34632
+ companyId?: string | null;
34588
34633
  }
34589
34634
 
34590
34635
  export type CalendarDayCapacityDto = "WorkingDay" | "HalfDay" | "Holiday";
@@ -53393,6 +53438,54 @@ export interface IUploadRequest {
53393
53438
  filename: string;
53394
53439
  }
53395
53440
 
53441
+ export class MeasurementFormImportStatusDto implements IMeasurementFormImportStatusDto {
53442
+ progress!: number;
53443
+ totalElements!: number;
53444
+ errorMessage!: string;
53445
+ timestamp!: Date;
53446
+
53447
+ constructor(data?: IMeasurementFormImportStatusDto) {
53448
+ if (data) {
53449
+ for (var property in data) {
53450
+ if (data.hasOwnProperty(property))
53451
+ (<any>this)[property] = (<any>data)[property];
53452
+ }
53453
+ }
53454
+ }
53455
+
53456
+ init(_data?: any) {
53457
+ if (_data) {
53458
+ this.progress = _data["progress"];
53459
+ this.totalElements = _data["totalElements"];
53460
+ this.errorMessage = _data["errorMessage"];
53461
+ this.timestamp = _data["timestamp"] ? new Date(_data["timestamp"].toString()) : <any>undefined;
53462
+ }
53463
+ }
53464
+
53465
+ static fromJS(data: any): MeasurementFormImportStatusDto {
53466
+ data = typeof data === 'object' ? data : {};
53467
+ let result = new MeasurementFormImportStatusDto();
53468
+ result.init(data);
53469
+ return result;
53470
+ }
53471
+
53472
+ toJSON(data?: any) {
53473
+ data = typeof data === 'object' ? data : {};
53474
+ data["progress"] = this.progress;
53475
+ data["totalElements"] = this.totalElements;
53476
+ data["errorMessage"] = this.errorMessage;
53477
+ data["timestamp"] = this.timestamp ? this.timestamp.toISOString() : <any>undefined;
53478
+ return data;
53479
+ }
53480
+ }
53481
+
53482
+ export interface IMeasurementFormImportStatusDto {
53483
+ progress: number;
53484
+ totalElements: number;
53485
+ errorMessage: string;
53486
+ timestamp: Date;
53487
+ }
53488
+
53396
53489
  export class ListLinkableMeasurementFormSchemasRequest implements IListLinkableMeasurementFormSchemasRequest {
53397
53490
  schemaId!: string;
53398
53491
  pageSize?: number | null;