@ignos/api-client 20261112.367.1-alpha → 20261113.369.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 +20 -2
- package/lib/ignosportal-api.js +51 -1
- package/package.json +1 -1
- package/src/ignosportal-api.ts +71 -2
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -1190,8 +1190,9 @@ export declare class TraceClient extends AuthorizedApiBase implements ITraceClie
|
|
|
1190
1190
|
protected processPostListTraceWorkorders(response: Response): Promise<PagedResultOfTraceWorkOrderListDto>;
|
|
1191
1191
|
}
|
|
1192
1192
|
export interface IMeasuringToolsClient {
|
|
1193
|
-
listMeasuringTools(page: number | undefined, pageSize: number | undefined, toolId: string | null | undefined, toolName: string | null | undefined, typeIds: string[] | null | undefined, subTypeIds: string[] | null | undefined, typeId: string | null | undefined, subTypeId: string | null | undefined, orderBy: string | null | undefined, sortDirection: string | null | undefined, includeDeprecated: boolean | null | undefined): Promise<PagedDataOfMeasuringToolDto>;
|
|
1193
|
+
listMeasuringTools(page: number | undefined, pageSize: number | undefined, toolId: string | null | undefined, toolName: string | null | undefined, typeIds: string[] | null | undefined, subTypeIds: string[] | null | undefined, statuses: CalibrationStatusDto[] | null | undefined, typeId: string | null | undefined, subTypeId: string | null | undefined, orderBy: string | null | undefined, sortDirection: string | null | undefined, includeDeprecated: boolean | null | undefined): Promise<PagedDataOfMeasuringToolDto>;
|
|
1194
1194
|
createMeasuringTool(request: CreateMeasuringToolRequest): Promise<MeasuringToolDetailDto>;
|
|
1195
|
+
listMeasuringToolCounts(search: string | null | undefined, typeIds: string[] | null | undefined, subTypeIds: string[] | null | undefined, statuses: CalibrationStatusDto[] | null | undefined, includeDeprecated: boolean | undefined): Promise<MeasuringToolCountsDto>;
|
|
1195
1196
|
updateMeasuringTool(id: string, request: UpdateMeasuringToolRequest): Promise<MeasuringToolDetailDto>;
|
|
1196
1197
|
getMeasuringTool(id: string): Promise<MeasuringToolDetailDto>;
|
|
1197
1198
|
listCalibrations(id: string): Promise<MeasuringToolCalibrationDto[]>;
|
|
@@ -1236,10 +1237,12 @@ export declare class MeasuringToolsClient extends AuthorizedApiBase implements I
|
|
|
1236
1237
|
constructor(configuration: IApiClientConfig, baseUrl?: string, http?: {
|
|
1237
1238
|
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
1238
1239
|
});
|
|
1239
|
-
listMeasuringTools(page: number | undefined, pageSize: number | undefined, toolId: string | null | undefined, toolName: string | null | undefined, typeIds: string[] | null | undefined, subTypeIds: string[] | null | undefined, typeId: string | null | undefined, subTypeId: string | null | undefined, orderBy: string | null | undefined, sortDirection: string | null | undefined, includeDeprecated: boolean | null | undefined): Promise<PagedDataOfMeasuringToolDto>;
|
|
1240
|
+
listMeasuringTools(page: number | undefined, pageSize: number | undefined, toolId: string | null | undefined, toolName: string | null | undefined, typeIds: string[] | null | undefined, subTypeIds: string[] | null | undefined, statuses: CalibrationStatusDto[] | null | undefined, typeId: string | null | undefined, subTypeId: string | null | undefined, orderBy: string | null | undefined, sortDirection: string | null | undefined, includeDeprecated: boolean | null | undefined): Promise<PagedDataOfMeasuringToolDto>;
|
|
1240
1241
|
protected processListMeasuringTools(response: Response): Promise<PagedDataOfMeasuringToolDto>;
|
|
1241
1242
|
createMeasuringTool(request: CreateMeasuringToolRequest): Promise<MeasuringToolDetailDto>;
|
|
1242
1243
|
protected processCreateMeasuringTool(response: Response): Promise<MeasuringToolDetailDto>;
|
|
1244
|
+
listMeasuringToolCounts(search: string | null | undefined, typeIds: string[] | null | undefined, subTypeIds: string[] | null | undefined, statuses: CalibrationStatusDto[] | null | undefined, includeDeprecated: boolean | undefined): Promise<MeasuringToolCountsDto>;
|
|
1245
|
+
protected processListMeasuringToolCounts(response: Response): Promise<MeasuringToolCountsDto>;
|
|
1243
1246
|
updateMeasuringTool(id: string, request: UpdateMeasuringToolRequest): Promise<MeasuringToolDetailDto>;
|
|
1244
1247
|
protected processUpdateMeasuringTool(response: Response): Promise<MeasuringToolDetailDto>;
|
|
1245
1248
|
getMeasuringTool(id: string): Promise<MeasuringToolDetailDto>;
|
|
@@ -5798,6 +5801,8 @@ export interface MeasuringToolDto {
|
|
|
5798
5801
|
usageLastYear?: number | null;
|
|
5799
5802
|
usageSinceLastCalibration?: number | null;
|
|
5800
5803
|
maxNumberOfUsagesBetweenCalibration?: number | null;
|
|
5804
|
+
created: Date;
|
|
5805
|
+
updated?: Date | null;
|
|
5801
5806
|
calibrationStatus: CalibrationStatusDto;
|
|
5802
5807
|
}
|
|
5803
5808
|
export interface MeasuringToolLastUsedByDto {
|
|
@@ -5806,6 +5811,19 @@ export interface MeasuringToolLastUsedByDto {
|
|
|
5806
5811
|
displayName?: string | null;
|
|
5807
5812
|
}
|
|
5808
5813
|
export type CalibrationStatusDto = "Uncalibrated" | "Deprecated" | "Expired" | "SoonDue" | "Valid";
|
|
5814
|
+
export interface MeasuringToolCountsDto {
|
|
5815
|
+
types: MeasuringToolFacetCountDto[];
|
|
5816
|
+
subTypes: MeasuringToolFacetCountDto[];
|
|
5817
|
+
statuses: MeasuringToolStatusCountDto[];
|
|
5818
|
+
}
|
|
5819
|
+
export interface MeasuringToolFacetCountDto {
|
|
5820
|
+
id: string;
|
|
5821
|
+
count: number;
|
|
5822
|
+
}
|
|
5823
|
+
export interface MeasuringToolStatusCountDto {
|
|
5824
|
+
status: CalibrationStatusDto;
|
|
5825
|
+
count: number;
|
|
5826
|
+
}
|
|
5809
5827
|
export interface MeasuringToolDetailDto {
|
|
5810
5828
|
id: string;
|
|
5811
5829
|
toolId: string;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -9587,7 +9587,7 @@ export class MeasuringToolsClient extends AuthorizedApiBase {
|
|
|
9587
9587
|
this.http = http ? http : window;
|
|
9588
9588
|
this.baseUrl = baseUrl ?? "";
|
|
9589
9589
|
}
|
|
9590
|
-
listMeasuringTools(page, pageSize, toolId, toolName, typeIds, subTypeIds, typeId, subTypeId, orderBy, sortDirection, includeDeprecated) {
|
|
9590
|
+
listMeasuringTools(page, pageSize, toolId, toolName, typeIds, subTypeIds, statuses, typeId, subTypeId, orderBy, sortDirection, includeDeprecated) {
|
|
9591
9591
|
let url_ = this.baseUrl + "/measuringtools?";
|
|
9592
9592
|
if (page === null)
|
|
9593
9593
|
throw new globalThis.Error("The parameter 'page' cannot be null.");
|
|
@@ -9605,6 +9605,8 @@ export class MeasuringToolsClient extends AuthorizedApiBase {
|
|
|
9605
9605
|
typeIds && typeIds.forEach(item => { url_ += "typeIds=" + encodeURIComponent("" + item) + "&"; });
|
|
9606
9606
|
if (subTypeIds !== undefined && subTypeIds !== null)
|
|
9607
9607
|
subTypeIds && subTypeIds.forEach(item => { url_ += "subTypeIds=" + encodeURIComponent("" + item) + "&"; });
|
|
9608
|
+
if (statuses !== undefined && statuses !== null)
|
|
9609
|
+
statuses && statuses.forEach(item => { url_ += "statuses=" + encodeURIComponent("" + item) + "&"; });
|
|
9608
9610
|
if (typeId !== undefined && typeId !== null)
|
|
9609
9611
|
url_ += "typeId=" + encodeURIComponent("" + typeId) + "&";
|
|
9610
9612
|
if (subTypeId !== undefined && subTypeId !== null)
|
|
@@ -9688,6 +9690,54 @@ export class MeasuringToolsClient extends AuthorizedApiBase {
|
|
|
9688
9690
|
}
|
|
9689
9691
|
return Promise.resolve(null);
|
|
9690
9692
|
}
|
|
9693
|
+
listMeasuringToolCounts(search, typeIds, subTypeIds, statuses, includeDeprecated) {
|
|
9694
|
+
let url_ = this.baseUrl + "/measuringtools/counts?";
|
|
9695
|
+
if (search !== undefined && search !== null)
|
|
9696
|
+
url_ += "search=" + encodeURIComponent("" + search) + "&";
|
|
9697
|
+
if (typeIds !== undefined && typeIds !== null)
|
|
9698
|
+
typeIds && typeIds.forEach(item => { url_ += "typeIds=" + encodeURIComponent("" + item) + "&"; });
|
|
9699
|
+
if (subTypeIds !== undefined && subTypeIds !== null)
|
|
9700
|
+
subTypeIds && subTypeIds.forEach(item => { url_ += "subTypeIds=" + encodeURIComponent("" + item) + "&"; });
|
|
9701
|
+
if (statuses !== undefined && statuses !== null)
|
|
9702
|
+
statuses && statuses.forEach(item => { url_ += "statuses=" + encodeURIComponent("" + item) + "&"; });
|
|
9703
|
+
if (includeDeprecated === null)
|
|
9704
|
+
throw new globalThis.Error("The parameter 'includeDeprecated' cannot be null.");
|
|
9705
|
+
else if (includeDeprecated !== undefined)
|
|
9706
|
+
url_ += "includeDeprecated=" + encodeURIComponent("" + includeDeprecated) + "&";
|
|
9707
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
9708
|
+
let options_ = {
|
|
9709
|
+
method: "GET",
|
|
9710
|
+
headers: {
|
|
9711
|
+
"Accept": "application/json"
|
|
9712
|
+
}
|
|
9713
|
+
};
|
|
9714
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
9715
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
9716
|
+
}).then((_response) => {
|
|
9717
|
+
return this.processListMeasuringToolCounts(_response);
|
|
9718
|
+
});
|
|
9719
|
+
}
|
|
9720
|
+
processListMeasuringToolCounts(response) {
|
|
9721
|
+
const status = response.status;
|
|
9722
|
+
let _headers = {};
|
|
9723
|
+
if (response.headers && response.headers.forEach) {
|
|
9724
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
9725
|
+
}
|
|
9726
|
+
;
|
|
9727
|
+
if (status === 200) {
|
|
9728
|
+
return response.text().then((_responseText) => {
|
|
9729
|
+
let result200 = null;
|
|
9730
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
9731
|
+
return result200;
|
|
9732
|
+
});
|
|
9733
|
+
}
|
|
9734
|
+
else if (status !== 200 && status !== 204) {
|
|
9735
|
+
return response.text().then((_responseText) => {
|
|
9736
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
9737
|
+
});
|
|
9738
|
+
}
|
|
9739
|
+
return Promise.resolve(null);
|
|
9740
|
+
}
|
|
9691
9741
|
updateMeasuringTool(id, request) {
|
|
9692
9742
|
let url_ = this.baseUrl + "/measuringtools/{id}";
|
|
9693
9743
|
if (id === undefined || id === null)
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -10190,10 +10190,12 @@ export class TraceClient extends AuthorizedApiBase implements ITraceClient {
|
|
|
10190
10190
|
|
|
10191
10191
|
export interface IMeasuringToolsClient {
|
|
10192
10192
|
|
|
10193
|
-
listMeasuringTools(page: number | undefined, pageSize: number | undefined, toolId: string | null | undefined, toolName: string | null | undefined, typeIds: string[] | null | undefined, subTypeIds: string[] | null | undefined, typeId: string | null | undefined, subTypeId: string | null | undefined, orderBy: string | null | undefined, sortDirection: string | null | undefined, includeDeprecated: boolean | null | undefined): Promise<PagedDataOfMeasuringToolDto>;
|
|
10193
|
+
listMeasuringTools(page: number | undefined, pageSize: number | undefined, toolId: string | null | undefined, toolName: string | null | undefined, typeIds: string[] | null | undefined, subTypeIds: string[] | null | undefined, statuses: CalibrationStatusDto[] | null | undefined, typeId: string | null | undefined, subTypeId: string | null | undefined, orderBy: string | null | undefined, sortDirection: string | null | undefined, includeDeprecated: boolean | null | undefined): Promise<PagedDataOfMeasuringToolDto>;
|
|
10194
10194
|
|
|
10195
10195
|
createMeasuringTool(request: CreateMeasuringToolRequest): Promise<MeasuringToolDetailDto>;
|
|
10196
10196
|
|
|
10197
|
+
listMeasuringToolCounts(search: string | null | undefined, typeIds: string[] | null | undefined, subTypeIds: string[] | null | undefined, statuses: CalibrationStatusDto[] | null | undefined, includeDeprecated: boolean | undefined): Promise<MeasuringToolCountsDto>;
|
|
10198
|
+
|
|
10197
10199
|
updateMeasuringTool(id: string, request: UpdateMeasuringToolRequest): Promise<MeasuringToolDetailDto>;
|
|
10198
10200
|
|
|
10199
10201
|
getMeasuringTool(id: string): Promise<MeasuringToolDetailDto>;
|
|
@@ -10275,7 +10277,7 @@ export class MeasuringToolsClient extends AuthorizedApiBase implements IMeasurin
|
|
|
10275
10277
|
this.baseUrl = baseUrl ?? "";
|
|
10276
10278
|
}
|
|
10277
10279
|
|
|
10278
|
-
listMeasuringTools(page: number | undefined, pageSize: number | undefined, toolId: string | null | undefined, toolName: string | null | undefined, typeIds: string[] | null | undefined, subTypeIds: string[] | null | undefined, typeId: string | null | undefined, subTypeId: string | null | undefined, orderBy: string | null | undefined, sortDirection: string | null | undefined, includeDeprecated: boolean | null | undefined): Promise<PagedDataOfMeasuringToolDto> {
|
|
10280
|
+
listMeasuringTools(page: number | undefined, pageSize: number | undefined, toolId: string | null | undefined, toolName: string | null | undefined, typeIds: string[] | null | undefined, subTypeIds: string[] | null | undefined, statuses: CalibrationStatusDto[] | null | undefined, typeId: string | null | undefined, subTypeId: string | null | undefined, orderBy: string | null | undefined, sortDirection: string | null | undefined, includeDeprecated: boolean | null | undefined): Promise<PagedDataOfMeasuringToolDto> {
|
|
10279
10281
|
let url_ = this.baseUrl + "/measuringtools?";
|
|
10280
10282
|
if (page === null)
|
|
10281
10283
|
throw new globalThis.Error("The parameter 'page' cannot be null.");
|
|
@@ -10293,6 +10295,8 @@ export class MeasuringToolsClient extends AuthorizedApiBase implements IMeasurin
|
|
|
10293
10295
|
typeIds && typeIds.forEach(item => { url_ += "typeIds=" + encodeURIComponent("" + item) + "&"; });
|
|
10294
10296
|
if (subTypeIds !== undefined && subTypeIds !== null)
|
|
10295
10297
|
subTypeIds && subTypeIds.forEach(item => { url_ += "subTypeIds=" + encodeURIComponent("" + item) + "&"; });
|
|
10298
|
+
if (statuses !== undefined && statuses !== null)
|
|
10299
|
+
statuses && statuses.forEach(item => { url_ += "statuses=" + encodeURIComponent("" + item) + "&"; });
|
|
10296
10300
|
if (typeId !== undefined && typeId !== null)
|
|
10297
10301
|
url_ += "typeId=" + encodeURIComponent("" + typeId) + "&";
|
|
10298
10302
|
if (subTypeId !== undefined && subTypeId !== null)
|
|
@@ -10375,6 +10379,53 @@ export class MeasuringToolsClient extends AuthorizedApiBase implements IMeasurin
|
|
|
10375
10379
|
return Promise.resolve<MeasuringToolDetailDto>(null as any);
|
|
10376
10380
|
}
|
|
10377
10381
|
|
|
10382
|
+
listMeasuringToolCounts(search: string | null | undefined, typeIds: string[] | null | undefined, subTypeIds: string[] | null | undefined, statuses: CalibrationStatusDto[] | null | undefined, includeDeprecated: boolean | undefined): Promise<MeasuringToolCountsDto> {
|
|
10383
|
+
let url_ = this.baseUrl + "/measuringtools/counts?";
|
|
10384
|
+
if (search !== undefined && search !== null)
|
|
10385
|
+
url_ += "search=" + encodeURIComponent("" + search) + "&";
|
|
10386
|
+
if (typeIds !== undefined && typeIds !== null)
|
|
10387
|
+
typeIds && typeIds.forEach(item => { url_ += "typeIds=" + encodeURIComponent("" + item) + "&"; });
|
|
10388
|
+
if (subTypeIds !== undefined && subTypeIds !== null)
|
|
10389
|
+
subTypeIds && subTypeIds.forEach(item => { url_ += "subTypeIds=" + encodeURIComponent("" + item) + "&"; });
|
|
10390
|
+
if (statuses !== undefined && statuses !== null)
|
|
10391
|
+
statuses && statuses.forEach(item => { url_ += "statuses=" + encodeURIComponent("" + item) + "&"; });
|
|
10392
|
+
if (includeDeprecated === null)
|
|
10393
|
+
throw new globalThis.Error("The parameter 'includeDeprecated' cannot be null.");
|
|
10394
|
+
else if (includeDeprecated !== undefined)
|
|
10395
|
+
url_ += "includeDeprecated=" + encodeURIComponent("" + includeDeprecated) + "&";
|
|
10396
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
10397
|
+
|
|
10398
|
+
let options_: RequestInit = {
|
|
10399
|
+
method: "GET",
|
|
10400
|
+
headers: {
|
|
10401
|
+
"Accept": "application/json"
|
|
10402
|
+
}
|
|
10403
|
+
};
|
|
10404
|
+
|
|
10405
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
10406
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
10407
|
+
}).then((_response: Response) => {
|
|
10408
|
+
return this.processListMeasuringToolCounts(_response);
|
|
10409
|
+
});
|
|
10410
|
+
}
|
|
10411
|
+
|
|
10412
|
+
protected processListMeasuringToolCounts(response: Response): Promise<MeasuringToolCountsDto> {
|
|
10413
|
+
const status = response.status;
|
|
10414
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
10415
|
+
if (status === 200) {
|
|
10416
|
+
return response.text().then((_responseText) => {
|
|
10417
|
+
let result200: any = null;
|
|
10418
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as MeasuringToolCountsDto;
|
|
10419
|
+
return result200;
|
|
10420
|
+
});
|
|
10421
|
+
} else if (status !== 200 && status !== 204) {
|
|
10422
|
+
return response.text().then((_responseText) => {
|
|
10423
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
10424
|
+
});
|
|
10425
|
+
}
|
|
10426
|
+
return Promise.resolve<MeasuringToolCountsDto>(null as any);
|
|
10427
|
+
}
|
|
10428
|
+
|
|
10378
10429
|
updateMeasuringTool(id: string, request: UpdateMeasuringToolRequest): Promise<MeasuringToolDetailDto> {
|
|
10379
10430
|
let url_ = this.baseUrl + "/measuringtools/{id}";
|
|
10380
10431
|
if (id === undefined || id === null)
|
|
@@ -36386,6 +36437,8 @@ export interface MeasuringToolDto {
|
|
|
36386
36437
|
usageLastYear?: number | null;
|
|
36387
36438
|
usageSinceLastCalibration?: number | null;
|
|
36388
36439
|
maxNumberOfUsagesBetweenCalibration?: number | null;
|
|
36440
|
+
created: Date;
|
|
36441
|
+
updated?: Date | null;
|
|
36389
36442
|
calibrationStatus: CalibrationStatusDto;
|
|
36390
36443
|
}
|
|
36391
36444
|
|
|
@@ -36397,6 +36450,22 @@ export interface MeasuringToolLastUsedByDto {
|
|
|
36397
36450
|
|
|
36398
36451
|
export type CalibrationStatusDto = "Uncalibrated" | "Deprecated" | "Expired" | "SoonDue" | "Valid";
|
|
36399
36452
|
|
|
36453
|
+
export interface MeasuringToolCountsDto {
|
|
36454
|
+
types: MeasuringToolFacetCountDto[];
|
|
36455
|
+
subTypes: MeasuringToolFacetCountDto[];
|
|
36456
|
+
statuses: MeasuringToolStatusCountDto[];
|
|
36457
|
+
}
|
|
36458
|
+
|
|
36459
|
+
export interface MeasuringToolFacetCountDto {
|
|
36460
|
+
id: string;
|
|
36461
|
+
count: number;
|
|
36462
|
+
}
|
|
36463
|
+
|
|
36464
|
+
export interface MeasuringToolStatusCountDto {
|
|
36465
|
+
status: CalibrationStatusDto;
|
|
36466
|
+
count: number;
|
|
36467
|
+
}
|
|
36468
|
+
|
|
36400
36469
|
export interface MeasuringToolDetailDto {
|
|
36401
36470
|
id: string;
|
|
36402
36471
|
toolId: string;
|