@ignos/api-client 20251009.0.12798-alpha → 20251010.0.12808

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.
@@ -2348,6 +2348,7 @@ export interface IMeasurementFormsInstancesClient {
2348
2348
  postListMeasurementForms(request: ListMeasurementFormsRequest | undefined): Promise<PagedResultOfMeasurementFormInstanceOverviewDto>;
2349
2349
  listMeasurementFormsByStatus(status: MeasurementFormInstanceStatus | undefined, statusChangedSince: Date | null | undefined, onlyWithReports: boolean | null | undefined, pageSize: number | undefined, search: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormInstanceDto>;
2350
2350
  postListMeasurementFormsByStatus(request: ListMeasurementFormsByStatusRequest | undefined): Promise<PagedResultOfMeasurementFormInstanceDto>;
2351
+ deleteInstancesBulk(request: DeleteMeasurementFormsInstancesBulkRequest): Promise<void>;
2351
2352
  getMeasurementFormInstance(id: string, tenantId: string | null | undefined): Promise<MeasurementFormInstanceDto>;
2352
2353
  createMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto>;
2353
2354
  updateMeasurementFormInstance(id: string, request: UpdateMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto>;
@@ -2394,6 +2395,8 @@ export declare class MeasurementFormsInstancesClient extends AuthorizedApiBase i
2394
2395
  protected processListMeasurementFormsByStatus(response: Response): Promise<PagedResultOfMeasurementFormInstanceDto>;
2395
2396
  postListMeasurementFormsByStatus(request: ListMeasurementFormsByStatusRequest | undefined): Promise<PagedResultOfMeasurementFormInstanceDto>;
2396
2397
  protected processPostListMeasurementFormsByStatus(response: Response): Promise<PagedResultOfMeasurementFormInstanceDto>;
2398
+ deleteInstancesBulk(request: DeleteMeasurementFormsInstancesBulkRequest): Promise<void>;
2399
+ protected processDeleteInstancesBulk(response: Response): Promise<void>;
2397
2400
  getMeasurementFormInstance(id: string, tenantId: string | null | undefined): Promise<MeasurementFormInstanceDto>;
2398
2401
  protected processGetMeasurementFormInstance(response: Response): Promise<MeasurementFormInstanceDto>;
2399
2402
  createMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto>;
@@ -3073,6 +3076,8 @@ export interface IMachineStateDatapoint {
3073
3076
  export declare class DowntimePeriodReasonDto implements IDowntimePeriodReasonDto {
3074
3077
  id: number;
3075
3078
  reason: string;
3079
+ parentReasonId?: string | null;
3080
+ parentReason?: string | null;
3076
3081
  reasonType: DowntimeReasonTypeDto;
3077
3082
  startTime: Date;
3078
3083
  endTime?: Date | null;
@@ -3091,6 +3096,8 @@ export declare class DowntimePeriodReasonDto implements IDowntimePeriodReasonDto
3091
3096
  export interface IDowntimePeriodReasonDto {
3092
3097
  id: number;
3093
3098
  reason: string;
3099
+ parentReasonId?: string | null;
3100
+ parentReason?: string | null;
3094
3101
  reasonType: DowntimeReasonTypeDto;
3095
3102
  startTime: Date;
3096
3103
  endTime?: Date | null;
@@ -13324,6 +13331,16 @@ export interface IMeasurementFormWorkorderSupplierDto {
13324
13331
  procurementLine?: number | null;
13325
13332
  externalOrderNumber?: string | null;
13326
13333
  }
13334
+ export declare class DeleteMeasurementFormsInstancesBulkRequest implements IDeleteMeasurementFormsInstancesBulkRequest {
13335
+ ids: string[];
13336
+ constructor(data?: IDeleteMeasurementFormsInstancesBulkRequest);
13337
+ init(_data?: any): void;
13338
+ static fromJS(data: any): DeleteMeasurementFormsInstancesBulkRequest;
13339
+ toJSON(data?: any): any;
13340
+ }
13341
+ export interface IDeleteMeasurementFormsInstancesBulkRequest {
13342
+ ids: string[];
13343
+ }
13327
13344
  export declare class ListMeasurementFormsByStatusRequest implements IListMeasurementFormsByStatusRequest {
13328
13345
  status?: MeasurementFormInstanceStatus | null;
13329
13346
  statusChangedSince?: Date | null;
@@ -20338,6 +20338,42 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
20338
20338
  }
20339
20339
  return Promise.resolve(null);
20340
20340
  }
20341
+ deleteInstancesBulk(request) {
20342
+ let url_ = this.baseUrl + "/measurementforms/instances/bulkdelete";
20343
+ url_ = url_.replace(/[?&]$/, "");
20344
+ const content_ = JSON.stringify(request);
20345
+ let options_ = {
20346
+ body: content_,
20347
+ method: "DELETE",
20348
+ headers: {
20349
+ "Content-Type": "application/json",
20350
+ }
20351
+ };
20352
+ return this.transformOptions(options_).then(transformedOptions_ => {
20353
+ return this.http.fetch(url_, transformedOptions_);
20354
+ }).then((_response) => {
20355
+ return this.processDeleteInstancesBulk(_response);
20356
+ });
20357
+ }
20358
+ processDeleteInstancesBulk(response) {
20359
+ const status = response.status;
20360
+ let _headers = {};
20361
+ if (response.headers && response.headers.forEach) {
20362
+ response.headers.forEach((v, k) => _headers[k] = v);
20363
+ }
20364
+ ;
20365
+ if (status === 204) {
20366
+ return response.text().then((_responseText) => {
20367
+ return;
20368
+ });
20369
+ }
20370
+ else if (status !== 200 && status !== 204) {
20371
+ return response.text().then((_responseText) => {
20372
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
20373
+ });
20374
+ }
20375
+ return Promise.resolve(null);
20376
+ }
20341
20377
  getMeasurementFormInstance(id, tenantId) {
20342
20378
  let url_ = this.baseUrl + "/measurementforms/instances/{id}?";
20343
20379
  if (id === undefined || id === null)
@@ -23998,6 +24034,8 @@ export class DowntimePeriodReasonDto {
23998
24034
  if (_data) {
23999
24035
  this.id = _data["id"];
24000
24036
  this.reason = _data["reason"];
24037
+ this.parentReasonId = _data["parentReasonId"];
24038
+ this.parentReason = _data["parentReason"];
24001
24039
  this.reasonType = _data["reasonType"];
24002
24040
  this.startTime = _data["startTime"] ? new Date(_data["startTime"].toString()) : undefined;
24003
24041
  this.endTime = _data["endTime"] ? new Date(_data["endTime"].toString()) : undefined;
@@ -24020,6 +24058,8 @@ export class DowntimePeriodReasonDto {
24020
24058
  data = typeof data === 'object' ? data : {};
24021
24059
  data["id"] = this.id;
24022
24060
  data["reason"] = this.reason;
24061
+ data["parentReasonId"] = this.parentReasonId;
24062
+ data["parentReason"] = this.parentReason;
24023
24063
  data["reasonType"] = this.reasonType;
24024
24064
  data["startTime"] = this.startTime ? this.startTime.toISOString() : undefined;
24025
24065
  data["endTime"] = this.endTime ? this.endTime.toISOString() : undefined;
@@ -45059,6 +45099,43 @@ export class MeasurementFormWorkorderSupplierDto {
45059
45099
  return data;
45060
45100
  }
45061
45101
  }
45102
+ export class DeleteMeasurementFormsInstancesBulkRequest {
45103
+ constructor(data) {
45104
+ if (data) {
45105
+ for (var property in data) {
45106
+ if (data.hasOwnProperty(property))
45107
+ this[property] = data[property];
45108
+ }
45109
+ }
45110
+ if (!data) {
45111
+ this.ids = [];
45112
+ }
45113
+ }
45114
+ init(_data) {
45115
+ if (_data) {
45116
+ if (Array.isArray(_data["ids"])) {
45117
+ this.ids = [];
45118
+ for (let item of _data["ids"])
45119
+ this.ids.push(item);
45120
+ }
45121
+ }
45122
+ }
45123
+ static fromJS(data) {
45124
+ data = typeof data === 'object' ? data : {};
45125
+ let result = new DeleteMeasurementFormsInstancesBulkRequest();
45126
+ result.init(data);
45127
+ return result;
45128
+ }
45129
+ toJSON(data) {
45130
+ data = typeof data === 'object' ? data : {};
45131
+ if (Array.isArray(this.ids)) {
45132
+ data["ids"] = [];
45133
+ for (let item of this.ids)
45134
+ data["ids"].push(item);
45135
+ }
45136
+ return data;
45137
+ }
45138
+ }
45062
45139
  export class ListMeasurementFormsByStatusRequest {
45063
45140
  constructor(data) {
45064
45141
  if (data) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20251009.0.12798-alpha",
3
+ "version": "20251010.0.12808",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -21474,6 +21474,8 @@ export interface IMeasurementFormsInstancesClient {
21474
21474
 
21475
21475
  postListMeasurementFormsByStatus(request: ListMeasurementFormsByStatusRequest | undefined): Promise<PagedResultOfMeasurementFormInstanceDto>;
21476
21476
 
21477
+ deleteInstancesBulk(request: DeleteMeasurementFormsInstancesBulkRequest): Promise<void>;
21478
+
21477
21479
  getMeasurementFormInstance(id: string, tenantId: string | null | undefined): Promise<MeasurementFormInstanceDto>;
21478
21480
 
21479
21481
  createMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto>;
@@ -21725,6 +21727,42 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
21725
21727
  return Promise.resolve<PagedResultOfMeasurementFormInstanceDto>(null as any);
21726
21728
  }
21727
21729
 
21730
+ deleteInstancesBulk(request: DeleteMeasurementFormsInstancesBulkRequest): Promise<void> {
21731
+ let url_ = this.baseUrl + "/measurementforms/instances/bulkdelete";
21732
+ url_ = url_.replace(/[?&]$/, "");
21733
+
21734
+ const content_ = JSON.stringify(request);
21735
+
21736
+ let options_: RequestInit = {
21737
+ body: content_,
21738
+ method: "DELETE",
21739
+ headers: {
21740
+ "Content-Type": "application/json",
21741
+ }
21742
+ };
21743
+
21744
+ return this.transformOptions(options_).then(transformedOptions_ => {
21745
+ return this.http.fetch(url_, transformedOptions_);
21746
+ }).then((_response: Response) => {
21747
+ return this.processDeleteInstancesBulk(_response);
21748
+ });
21749
+ }
21750
+
21751
+ protected processDeleteInstancesBulk(response: Response): Promise<void> {
21752
+ const status = response.status;
21753
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
21754
+ if (status === 204) {
21755
+ return response.text().then((_responseText) => {
21756
+ return;
21757
+ });
21758
+ } else if (status !== 200 && status !== 204) {
21759
+ return response.text().then((_responseText) => {
21760
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
21761
+ });
21762
+ }
21763
+ return Promise.resolve<void>(null as any);
21764
+ }
21765
+
21728
21766
  getMeasurementFormInstance(id: string, tenantId: string | null | undefined): Promise<MeasurementFormInstanceDto> {
21729
21767
  let url_ = this.baseUrl + "/measurementforms/instances/{id}?";
21730
21768
  if (id === undefined || id === null)
@@ -25813,6 +25851,8 @@ export interface IMachineStateDatapoint {
25813
25851
  export class DowntimePeriodReasonDto implements IDowntimePeriodReasonDto {
25814
25852
  id!: number;
25815
25853
  reason!: string;
25854
+ parentReasonId?: string | null;
25855
+ parentReason?: string | null;
25816
25856
  reasonType!: DowntimeReasonTypeDto;
25817
25857
  startTime!: Date;
25818
25858
  endTime?: Date | null;
@@ -25837,6 +25877,8 @@ export class DowntimePeriodReasonDto implements IDowntimePeriodReasonDto {
25837
25877
  if (_data) {
25838
25878
  this.id = _data["id"];
25839
25879
  this.reason = _data["reason"];
25880
+ this.parentReasonId = _data["parentReasonId"];
25881
+ this.parentReason = _data["parentReason"];
25840
25882
  this.reasonType = _data["reasonType"];
25841
25883
  this.startTime = _data["startTime"] ? new Date(_data["startTime"].toString()) : <any>undefined;
25842
25884
  this.endTime = _data["endTime"] ? new Date(_data["endTime"].toString()) : <any>undefined;
@@ -25861,6 +25903,8 @@ export class DowntimePeriodReasonDto implements IDowntimePeriodReasonDto {
25861
25903
  data = typeof data === 'object' ? data : {};
25862
25904
  data["id"] = this.id;
25863
25905
  data["reason"] = this.reason;
25906
+ data["parentReasonId"] = this.parentReasonId;
25907
+ data["parentReason"] = this.parentReason;
25864
25908
  data["reasonType"] = this.reasonType;
25865
25909
  data["startTime"] = this.startTime ? this.startTime.toISOString() : <any>undefined;
25866
25910
  data["endTime"] = this.endTime ? this.endTime.toISOString() : <any>undefined;
@@ -25878,6 +25922,8 @@ export class DowntimePeriodReasonDto implements IDowntimePeriodReasonDto {
25878
25922
  export interface IDowntimePeriodReasonDto {
25879
25923
  id: number;
25880
25924
  reason: string;
25925
+ parentReasonId?: string | null;
25926
+ parentReason?: string | null;
25881
25927
  reasonType: DowntimeReasonTypeDto;
25882
25928
  startTime: Date;
25883
25929
  endTime?: Date | null;
@@ -57182,6 +57228,53 @@ export interface IMeasurementFormWorkorderSupplierDto {
57182
57228
  externalOrderNumber?: string | null;
57183
57229
  }
57184
57230
 
57231
+ export class DeleteMeasurementFormsInstancesBulkRequest implements IDeleteMeasurementFormsInstancesBulkRequest {
57232
+ ids!: string[];
57233
+
57234
+ constructor(data?: IDeleteMeasurementFormsInstancesBulkRequest) {
57235
+ if (data) {
57236
+ for (var property in data) {
57237
+ if (data.hasOwnProperty(property))
57238
+ (<any>this)[property] = (<any>data)[property];
57239
+ }
57240
+ }
57241
+ if (!data) {
57242
+ this.ids = [];
57243
+ }
57244
+ }
57245
+
57246
+ init(_data?: any) {
57247
+ if (_data) {
57248
+ if (Array.isArray(_data["ids"])) {
57249
+ this.ids = [] as any;
57250
+ for (let item of _data["ids"])
57251
+ this.ids!.push(item);
57252
+ }
57253
+ }
57254
+ }
57255
+
57256
+ static fromJS(data: any): DeleteMeasurementFormsInstancesBulkRequest {
57257
+ data = typeof data === 'object' ? data : {};
57258
+ let result = new DeleteMeasurementFormsInstancesBulkRequest();
57259
+ result.init(data);
57260
+ return result;
57261
+ }
57262
+
57263
+ toJSON(data?: any) {
57264
+ data = typeof data === 'object' ? data : {};
57265
+ if (Array.isArray(this.ids)) {
57266
+ data["ids"] = [];
57267
+ for (let item of this.ids)
57268
+ data["ids"].push(item);
57269
+ }
57270
+ return data;
57271
+ }
57272
+ }
57273
+
57274
+ export interface IDeleteMeasurementFormsInstancesBulkRequest {
57275
+ ids: string[];
57276
+ }
57277
+
57185
57278
  export class ListMeasurementFormsByStatusRequest implements IListMeasurementFormsByStatusRequest {
57186
57279
  status?: MeasurementFormInstanceStatus | null;
57187
57280
  statusChangedSince?: Date | null;