@ignos/api-client 20251009.0.12800 → 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.
- package/lib/ignosportal-api.d.ts +13 -0
- package/lib/ignosportal-api.js +73 -0
- package/package.json +1 -1
- package/src/ignosportal-api.ts +85 -0
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -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>;
|
|
@@ -13328,6 +13331,16 @@ export interface IMeasurementFormWorkorderSupplierDto {
|
|
|
13328
13331
|
procurementLine?: number | null;
|
|
13329
13332
|
externalOrderNumber?: string | null;
|
|
13330
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
|
+
}
|
|
13331
13344
|
export declare class ListMeasurementFormsByStatusRequest implements IListMeasurementFormsByStatusRequest {
|
|
13332
13345
|
status?: MeasurementFormInstanceStatus | null;
|
|
13333
13346
|
statusChangedSince?: Date | null;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -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)
|
|
@@ -45063,6 +45099,43 @@ export class MeasurementFormWorkorderSupplierDto {
|
|
|
45063
45099
|
return data;
|
|
45064
45100
|
}
|
|
45065
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
|
+
}
|
|
45066
45139
|
export class ListMeasurementFormsByStatusRequest {
|
|
45067
45140
|
constructor(data) {
|
|
45068
45141
|
if (data) {
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -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)
|
|
@@ -57190,6 +57228,53 @@ export interface IMeasurementFormWorkorderSupplierDto {
|
|
|
57190
57228
|
externalOrderNumber?: string | null;
|
|
57191
57229
|
}
|
|
57192
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
|
+
|
|
57193
57278
|
export class ListMeasurementFormsByStatusRequest implements IListMeasurementFormsByStatusRequest {
|
|
57194
57279
|
status?: MeasurementFormInstanceStatus | null;
|
|
57195
57280
|
statusChangedSince?: Date | null;
|