@ignos/api-client 20261102.338.1-alpha → 20261102.339.1-alpha
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 +27 -0
- package/lib/ignosportal-api.js +39 -0
- package/package.json +1 -1
- package/src/ignosportal-api.ts +67 -0
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -3472,6 +3472,7 @@ export interface IMeasurementFormsInstancesInstanceAdminClient {
|
|
|
3472
3472
|
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>;
|
|
3473
3473
|
postListMeasurementFormsByStatus(request: ListMeasurementFormsByStatusRequest | undefined): Promise<PagedResultOfMeasurementFormInstanceDto>;
|
|
3474
3474
|
deleteInstancesBulk(request: DeleteMeasurementFormsInstancesBulkRequest): Promise<void>;
|
|
3475
|
+
postCountMeasurementFormsByStatus(request: CountMeasurementFormInstancesRequest | undefined): Promise<MeasurementFormInstanceCountsDto>;
|
|
3475
3476
|
postListMeasurementFormsByStatusV2(request: ListMeasurementFormsByStatusesRequest | undefined): Promise<PagedResultOfMeasurementFormInstanceDto>;
|
|
3476
3477
|
createMeasurementFormInstance2(id: string, request: CreateMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto>;
|
|
3477
3478
|
editMeasurementFormInstance(id: string, request: EditMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto>;
|
|
@@ -3499,6 +3500,8 @@ export declare class MeasurementFormsInstancesInstanceAdminClient extends Author
|
|
|
3499
3500
|
protected processPostListMeasurementFormsByStatus(response: Response): Promise<PagedResultOfMeasurementFormInstanceDto>;
|
|
3500
3501
|
deleteInstancesBulk(request: DeleteMeasurementFormsInstancesBulkRequest): Promise<void>;
|
|
3501
3502
|
protected processDeleteInstancesBulk(response: Response): Promise<void>;
|
|
3503
|
+
postCountMeasurementFormsByStatus(request: CountMeasurementFormInstancesRequest | undefined): Promise<MeasurementFormInstanceCountsDto>;
|
|
3504
|
+
protected processPostCountMeasurementFormsByStatus(response: Response): Promise<MeasurementFormInstanceCountsDto>;
|
|
3502
3505
|
postListMeasurementFormsByStatusV2(request: ListMeasurementFormsByStatusesRequest | undefined): Promise<PagedResultOfMeasurementFormInstanceDto>;
|
|
3503
3506
|
protected processPostListMeasurementFormsByStatusV2(response: Response): Promise<PagedResultOfMeasurementFormInstanceDto>;
|
|
3504
3507
|
createMeasurementFormInstance2(id: string, request: CreateMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto>;
|
|
@@ -10588,6 +10591,26 @@ export interface ListMeasurementFormsByStatusRequest {
|
|
|
10588
10591
|
search?: string | null;
|
|
10589
10592
|
continuationToken?: string | null;
|
|
10590
10593
|
}
|
|
10594
|
+
export interface MeasurementFormInstanceCountsDto {
|
|
10595
|
+
total: number;
|
|
10596
|
+
active: number;
|
|
10597
|
+
completed: number;
|
|
10598
|
+
approved: number;
|
|
10599
|
+
cancelled: number;
|
|
10600
|
+
missingCompletion: number;
|
|
10601
|
+
outsideTolerance: number;
|
|
10602
|
+
comments: number;
|
|
10603
|
+
schemaComment: number;
|
|
10604
|
+
sharedWithSuppliers: number;
|
|
10605
|
+
}
|
|
10606
|
+
export interface CountMeasurementFormInstancesRequest {
|
|
10607
|
+
statuses?: MeasurementFormInstanceStatus[];
|
|
10608
|
+
search?: string | null;
|
|
10609
|
+
outsideTolerance?: boolean | null;
|
|
10610
|
+
comments?: boolean | null;
|
|
10611
|
+
schemaComment?: boolean | null;
|
|
10612
|
+
sharedWithSuppliers?: boolean | null;
|
|
10613
|
+
}
|
|
10591
10614
|
export interface ListMeasurementFormsByStatusesRequest {
|
|
10592
10615
|
statuses?: MeasurementFormInstanceStatus[];
|
|
10593
10616
|
statusChangedSince?: Date | null;
|
|
@@ -10595,6 +10618,10 @@ export interface ListMeasurementFormsByStatusesRequest {
|
|
|
10595
10618
|
pageSize?: number | null;
|
|
10596
10619
|
search?: string | null;
|
|
10597
10620
|
continuationToken?: string | null;
|
|
10621
|
+
outsideTolerance?: boolean | null;
|
|
10622
|
+
comments?: boolean | null;
|
|
10623
|
+
schemaComment?: boolean | null;
|
|
10624
|
+
sharedWithSuppliers?: boolean | null;
|
|
10598
10625
|
}
|
|
10599
10626
|
export interface CreateMeasurementFormInstanceRequest {
|
|
10600
10627
|
schemaId: string;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -29494,6 +29494,45 @@ export class MeasurementFormsInstancesInstanceAdminClient extends AuthorizedApiB
|
|
|
29494
29494
|
}
|
|
29495
29495
|
return Promise.resolve(null);
|
|
29496
29496
|
}
|
|
29497
|
+
postCountMeasurementFormsByStatus(request) {
|
|
29498
|
+
let url_ = this.baseUrl + "/measurementforms/instances/bystatus/v2/counts";
|
|
29499
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
29500
|
+
const content_ = JSON.stringify(request);
|
|
29501
|
+
let options_ = {
|
|
29502
|
+
body: content_,
|
|
29503
|
+
method: "POST",
|
|
29504
|
+
headers: {
|
|
29505
|
+
"Content-Type": "application/json",
|
|
29506
|
+
"Accept": "application/json"
|
|
29507
|
+
}
|
|
29508
|
+
};
|
|
29509
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
29510
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
29511
|
+
}).then((_response) => {
|
|
29512
|
+
return this.processPostCountMeasurementFormsByStatus(_response);
|
|
29513
|
+
});
|
|
29514
|
+
}
|
|
29515
|
+
processPostCountMeasurementFormsByStatus(response) {
|
|
29516
|
+
const status = response.status;
|
|
29517
|
+
let _headers = {};
|
|
29518
|
+
if (response.headers && response.headers.forEach) {
|
|
29519
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
29520
|
+
}
|
|
29521
|
+
;
|
|
29522
|
+
if (status === 200) {
|
|
29523
|
+
return response.text().then((_responseText) => {
|
|
29524
|
+
let result200 = null;
|
|
29525
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
29526
|
+
return result200;
|
|
29527
|
+
});
|
|
29528
|
+
}
|
|
29529
|
+
else if (status !== 200 && status !== 204) {
|
|
29530
|
+
return response.text().then((_responseText) => {
|
|
29531
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
29532
|
+
});
|
|
29533
|
+
}
|
|
29534
|
+
return Promise.resolve(null);
|
|
29535
|
+
}
|
|
29497
29536
|
postListMeasurementFormsByStatusV2(request) {
|
|
29498
29537
|
let url_ = this.baseUrl + "/measurementforms/instances/bystatus/v2";
|
|
29499
29538
|
url_ = url_.replace(/[?&]$/, "");
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -31085,6 +31085,8 @@ export interface IMeasurementFormsInstancesInstanceAdminClient {
|
|
|
31085
31085
|
|
|
31086
31086
|
deleteInstancesBulk(request: DeleteMeasurementFormsInstancesBulkRequest): Promise<void>;
|
|
31087
31087
|
|
|
31088
|
+
postCountMeasurementFormsByStatus(request: CountMeasurementFormInstancesRequest | undefined): Promise<MeasurementFormInstanceCountsDto>;
|
|
31089
|
+
|
|
31088
31090
|
postListMeasurementFormsByStatusV2(request: ListMeasurementFormsByStatusesRequest | undefined): Promise<PagedResultOfMeasurementFormInstanceDto>;
|
|
31089
31091
|
|
|
31090
31092
|
createMeasurementFormInstance2(id: string, request: CreateMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto>;
|
|
@@ -31319,6 +31321,45 @@ export class MeasurementFormsInstancesInstanceAdminClient extends AuthorizedApiB
|
|
|
31319
31321
|
return Promise.resolve<void>(null as any);
|
|
31320
31322
|
}
|
|
31321
31323
|
|
|
31324
|
+
postCountMeasurementFormsByStatus(request: CountMeasurementFormInstancesRequest | undefined): Promise<MeasurementFormInstanceCountsDto> {
|
|
31325
|
+
let url_ = this.baseUrl + "/measurementforms/instances/bystatus/v2/counts";
|
|
31326
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
31327
|
+
|
|
31328
|
+
const content_ = JSON.stringify(request);
|
|
31329
|
+
|
|
31330
|
+
let options_: RequestInit = {
|
|
31331
|
+
body: content_,
|
|
31332
|
+
method: "POST",
|
|
31333
|
+
headers: {
|
|
31334
|
+
"Content-Type": "application/json",
|
|
31335
|
+
"Accept": "application/json"
|
|
31336
|
+
}
|
|
31337
|
+
};
|
|
31338
|
+
|
|
31339
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
31340
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
31341
|
+
}).then((_response: Response) => {
|
|
31342
|
+
return this.processPostCountMeasurementFormsByStatus(_response);
|
|
31343
|
+
});
|
|
31344
|
+
}
|
|
31345
|
+
|
|
31346
|
+
protected processPostCountMeasurementFormsByStatus(response: Response): Promise<MeasurementFormInstanceCountsDto> {
|
|
31347
|
+
const status = response.status;
|
|
31348
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
31349
|
+
if (status === 200) {
|
|
31350
|
+
return response.text().then((_responseText) => {
|
|
31351
|
+
let result200: any = null;
|
|
31352
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as MeasurementFormInstanceCountsDto;
|
|
31353
|
+
return result200;
|
|
31354
|
+
});
|
|
31355
|
+
} else if (status !== 200 && status !== 204) {
|
|
31356
|
+
return response.text().then((_responseText) => {
|
|
31357
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
31358
|
+
});
|
|
31359
|
+
}
|
|
31360
|
+
return Promise.resolve<MeasurementFormInstanceCountsDto>(null as any);
|
|
31361
|
+
}
|
|
31362
|
+
|
|
31322
31363
|
postListMeasurementFormsByStatusV2(request: ListMeasurementFormsByStatusesRequest | undefined): Promise<PagedResultOfMeasurementFormInstanceDto> {
|
|
31323
31364
|
let url_ = this.baseUrl + "/measurementforms/instances/bystatus/v2";
|
|
31324
31365
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -41245,6 +41286,28 @@ export interface ListMeasurementFormsByStatusRequest {
|
|
|
41245
41286
|
continuationToken?: string | null;
|
|
41246
41287
|
}
|
|
41247
41288
|
|
|
41289
|
+
export interface MeasurementFormInstanceCountsDto {
|
|
41290
|
+
total: number;
|
|
41291
|
+
active: number;
|
|
41292
|
+
completed: number;
|
|
41293
|
+
approved: number;
|
|
41294
|
+
cancelled: number;
|
|
41295
|
+
missingCompletion: number;
|
|
41296
|
+
outsideTolerance: number;
|
|
41297
|
+
comments: number;
|
|
41298
|
+
schemaComment: number;
|
|
41299
|
+
sharedWithSuppliers: number;
|
|
41300
|
+
}
|
|
41301
|
+
|
|
41302
|
+
export interface CountMeasurementFormInstancesRequest {
|
|
41303
|
+
statuses?: MeasurementFormInstanceStatus[];
|
|
41304
|
+
search?: string | null;
|
|
41305
|
+
outsideTolerance?: boolean | null;
|
|
41306
|
+
comments?: boolean | null;
|
|
41307
|
+
schemaComment?: boolean | null;
|
|
41308
|
+
sharedWithSuppliers?: boolean | null;
|
|
41309
|
+
}
|
|
41310
|
+
|
|
41248
41311
|
export interface ListMeasurementFormsByStatusesRequest {
|
|
41249
41312
|
statuses?: MeasurementFormInstanceStatus[];
|
|
41250
41313
|
statusChangedSince?: Date | null;
|
|
@@ -41252,6 +41315,10 @@ export interface ListMeasurementFormsByStatusesRequest {
|
|
|
41252
41315
|
pageSize?: number | null;
|
|
41253
41316
|
search?: string | null;
|
|
41254
41317
|
continuationToken?: string | null;
|
|
41318
|
+
outsideTolerance?: boolean | null;
|
|
41319
|
+
comments?: boolean | null;
|
|
41320
|
+
schemaComment?: boolean | null;
|
|
41321
|
+
sharedWithSuppliers?: boolean | null;
|
|
41255
41322
|
}
|
|
41256
41323
|
|
|
41257
41324
|
export interface CreateMeasurementFormInstanceRequest {
|