@ignos/api-client 20261112.366.1-alpha → 20261113.368.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 +17 -2
- package/lib/ignosportal-api.js +87 -1
- package/package.json +1 -1
- package/src/ignosportal-api.ts +101 -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, 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, 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, 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[]>;
|
|
@@ -1204,6 +1205,7 @@ export interface IMeasuringToolsClient {
|
|
|
1204
1205
|
createMeasuringToolType(request: CreateMeasuringToolType): Promise<MeasuringToolTypeDto>;
|
|
1205
1206
|
updateMeasuringToolType(id: string, request: UpdateMeasuringToolTypeRequest): Promise<MeasuringToolTypeDto>;
|
|
1206
1207
|
deleteMeasuringToolType(id: string): Promise<void>;
|
|
1208
|
+
listAllMeasuringToolSubTypes(): Promise<MeasuringToolSubTypeDto[]>;
|
|
1207
1209
|
listMeasuringToolSubTypes(typeId: string): Promise<MeasuringToolSubTypeDto[]>;
|
|
1208
1210
|
createMeasuringToolSubType(typeId: string, request: CreateMeasuringToolSubTypeRequest): Promise<MeasuringToolSubTypeDto>;
|
|
1209
1211
|
updateMeasuringToolSubType(typeId: string, id: string, request: UpdateMeasuringToolSubTypeRequest): Promise<MeasuringToolSubTypeDto>;
|
|
@@ -1235,10 +1237,12 @@ export declare class MeasuringToolsClient extends AuthorizedApiBase implements I
|
|
|
1235
1237
|
constructor(configuration: IApiClientConfig, baseUrl?: string, http?: {
|
|
1236
1238
|
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
1237
1239
|
});
|
|
1238
|
-
listMeasuringTools(page: number | undefined, pageSize: number | undefined, toolId: string | null | undefined, toolName: 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, typeId: string | null | undefined, subTypeId: string | null | undefined, orderBy: string | null | undefined, sortDirection: string | null | undefined, includeDeprecated: boolean | null | undefined): Promise<PagedDataOfMeasuringToolDto>;
|
|
1239
1241
|
protected processListMeasuringTools(response: Response): Promise<PagedDataOfMeasuringToolDto>;
|
|
1240
1242
|
createMeasuringTool(request: CreateMeasuringToolRequest): Promise<MeasuringToolDetailDto>;
|
|
1241
1243
|
protected processCreateMeasuringTool(response: Response): Promise<MeasuringToolDetailDto>;
|
|
1244
|
+
listMeasuringToolCounts(search: string | null | undefined, typeIds: string[] | null | undefined, subTypeIds: string[] | null | undefined, includeDeprecated: boolean | undefined): Promise<MeasuringToolCountsDto>;
|
|
1245
|
+
protected processListMeasuringToolCounts(response: Response): Promise<MeasuringToolCountsDto>;
|
|
1242
1246
|
updateMeasuringTool(id: string, request: UpdateMeasuringToolRequest): Promise<MeasuringToolDetailDto>;
|
|
1243
1247
|
protected processUpdateMeasuringTool(response: Response): Promise<MeasuringToolDetailDto>;
|
|
1244
1248
|
getMeasuringTool(id: string): Promise<MeasuringToolDetailDto>;
|
|
@@ -1263,6 +1267,8 @@ export declare class MeasuringToolsClient extends AuthorizedApiBase implements I
|
|
|
1263
1267
|
protected processUpdateMeasuringToolType(response: Response): Promise<MeasuringToolTypeDto>;
|
|
1264
1268
|
deleteMeasuringToolType(id: string): Promise<void>;
|
|
1265
1269
|
protected processDeleteMeasuringToolType(response: Response): Promise<void>;
|
|
1270
|
+
listAllMeasuringToolSubTypes(): Promise<MeasuringToolSubTypeDto[]>;
|
|
1271
|
+
protected processListAllMeasuringToolSubTypes(response: Response): Promise<MeasuringToolSubTypeDto[]>;
|
|
1266
1272
|
listMeasuringToolSubTypes(typeId: string): Promise<MeasuringToolSubTypeDto[]>;
|
|
1267
1273
|
protected processListMeasuringToolSubTypes(response: Response): Promise<MeasuringToolSubTypeDto[]>;
|
|
1268
1274
|
createMeasuringToolSubType(typeId: string, request: CreateMeasuringToolSubTypeRequest): Promise<MeasuringToolSubTypeDto>;
|
|
@@ -5803,6 +5809,14 @@ export interface MeasuringToolLastUsedByDto {
|
|
|
5803
5809
|
displayName?: string | null;
|
|
5804
5810
|
}
|
|
5805
5811
|
export type CalibrationStatusDto = "Uncalibrated" | "Deprecated" | "Expired" | "SoonDue" | "Valid";
|
|
5812
|
+
export interface MeasuringToolCountsDto {
|
|
5813
|
+
types: MeasuringToolFacetCountDto[];
|
|
5814
|
+
subTypes: MeasuringToolFacetCountDto[];
|
|
5815
|
+
}
|
|
5816
|
+
export interface MeasuringToolFacetCountDto {
|
|
5817
|
+
id: string;
|
|
5818
|
+
count: number;
|
|
5819
|
+
}
|
|
5806
5820
|
export interface MeasuringToolDetailDto {
|
|
5807
5821
|
id: string;
|
|
5808
5822
|
toolId: string;
|
|
@@ -5843,6 +5857,7 @@ export interface MeasuringToolTypeDto {
|
|
|
5843
5857
|
}
|
|
5844
5858
|
export interface MeasuringToolSubTypeDto {
|
|
5845
5859
|
id: string;
|
|
5860
|
+
typeId: string;
|
|
5846
5861
|
name: string;
|
|
5847
5862
|
calibrationInterval?: number | null;
|
|
5848
5863
|
maxNumberOfUsagesBetweenCalibration?: number | null;
|
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, typeId, subTypeId, orderBy, sortDirection, includeDeprecated) {
|
|
9590
|
+
listMeasuringTools(page, pageSize, toolId, toolName, typeIds, subTypeIds, 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.");
|
|
@@ -9601,6 +9601,10 @@ export class MeasuringToolsClient extends AuthorizedApiBase {
|
|
|
9601
9601
|
url_ += "toolId=" + encodeURIComponent("" + toolId) + "&";
|
|
9602
9602
|
if (toolName !== undefined && toolName !== null)
|
|
9603
9603
|
url_ += "toolName=" + encodeURIComponent("" + toolName) + "&";
|
|
9604
|
+
if (typeIds !== undefined && typeIds !== null)
|
|
9605
|
+
typeIds && typeIds.forEach(item => { url_ += "typeIds=" + encodeURIComponent("" + item) + "&"; });
|
|
9606
|
+
if (subTypeIds !== undefined && subTypeIds !== null)
|
|
9607
|
+
subTypeIds && subTypeIds.forEach(item => { url_ += "subTypeIds=" + encodeURIComponent("" + item) + "&"; });
|
|
9604
9608
|
if (typeId !== undefined && typeId !== null)
|
|
9605
9609
|
url_ += "typeId=" + encodeURIComponent("" + typeId) + "&";
|
|
9606
9610
|
if (subTypeId !== undefined && subTypeId !== null)
|
|
@@ -9684,6 +9688,52 @@ export class MeasuringToolsClient extends AuthorizedApiBase {
|
|
|
9684
9688
|
}
|
|
9685
9689
|
return Promise.resolve(null);
|
|
9686
9690
|
}
|
|
9691
|
+
listMeasuringToolCounts(search, typeIds, subTypeIds, includeDeprecated) {
|
|
9692
|
+
let url_ = this.baseUrl + "/measuringtools/counts?";
|
|
9693
|
+
if (search !== undefined && search !== null)
|
|
9694
|
+
url_ += "search=" + encodeURIComponent("" + search) + "&";
|
|
9695
|
+
if (typeIds !== undefined && typeIds !== null)
|
|
9696
|
+
typeIds && typeIds.forEach(item => { url_ += "typeIds=" + encodeURIComponent("" + item) + "&"; });
|
|
9697
|
+
if (subTypeIds !== undefined && subTypeIds !== null)
|
|
9698
|
+
subTypeIds && subTypeIds.forEach(item => { url_ += "subTypeIds=" + encodeURIComponent("" + item) + "&"; });
|
|
9699
|
+
if (includeDeprecated === null)
|
|
9700
|
+
throw new globalThis.Error("The parameter 'includeDeprecated' cannot be null.");
|
|
9701
|
+
else if (includeDeprecated !== undefined)
|
|
9702
|
+
url_ += "includeDeprecated=" + encodeURIComponent("" + includeDeprecated) + "&";
|
|
9703
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
9704
|
+
let options_ = {
|
|
9705
|
+
method: "GET",
|
|
9706
|
+
headers: {
|
|
9707
|
+
"Accept": "application/json"
|
|
9708
|
+
}
|
|
9709
|
+
};
|
|
9710
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
9711
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
9712
|
+
}).then((_response) => {
|
|
9713
|
+
return this.processListMeasuringToolCounts(_response);
|
|
9714
|
+
});
|
|
9715
|
+
}
|
|
9716
|
+
processListMeasuringToolCounts(response) {
|
|
9717
|
+
const status = response.status;
|
|
9718
|
+
let _headers = {};
|
|
9719
|
+
if (response.headers && response.headers.forEach) {
|
|
9720
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
9721
|
+
}
|
|
9722
|
+
;
|
|
9723
|
+
if (status === 200) {
|
|
9724
|
+
return response.text().then((_responseText) => {
|
|
9725
|
+
let result200 = null;
|
|
9726
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
9727
|
+
return result200;
|
|
9728
|
+
});
|
|
9729
|
+
}
|
|
9730
|
+
else if (status !== 200 && status !== 204) {
|
|
9731
|
+
return response.text().then((_responseText) => {
|
|
9732
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
9733
|
+
});
|
|
9734
|
+
}
|
|
9735
|
+
return Promise.resolve(null);
|
|
9736
|
+
}
|
|
9687
9737
|
updateMeasuringTool(id, request) {
|
|
9688
9738
|
let url_ = this.baseUrl + "/measuringtools/{id}";
|
|
9689
9739
|
if (id === undefined || id === null)
|
|
@@ -10156,6 +10206,42 @@ export class MeasuringToolsClient extends AuthorizedApiBase {
|
|
|
10156
10206
|
}
|
|
10157
10207
|
return Promise.resolve(null);
|
|
10158
10208
|
}
|
|
10209
|
+
listAllMeasuringToolSubTypes() {
|
|
10210
|
+
let url_ = this.baseUrl + "/measuringtools/subtypes";
|
|
10211
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
10212
|
+
let options_ = {
|
|
10213
|
+
method: "GET",
|
|
10214
|
+
headers: {
|
|
10215
|
+
"Accept": "application/json"
|
|
10216
|
+
}
|
|
10217
|
+
};
|
|
10218
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
10219
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
10220
|
+
}).then((_response) => {
|
|
10221
|
+
return this.processListAllMeasuringToolSubTypes(_response);
|
|
10222
|
+
});
|
|
10223
|
+
}
|
|
10224
|
+
processListAllMeasuringToolSubTypes(response) {
|
|
10225
|
+
const status = response.status;
|
|
10226
|
+
let _headers = {};
|
|
10227
|
+
if (response.headers && response.headers.forEach) {
|
|
10228
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
10229
|
+
}
|
|
10230
|
+
;
|
|
10231
|
+
if (status === 200) {
|
|
10232
|
+
return response.text().then((_responseText) => {
|
|
10233
|
+
let result200 = null;
|
|
10234
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
10235
|
+
return result200;
|
|
10236
|
+
});
|
|
10237
|
+
}
|
|
10238
|
+
else if (status !== 200 && status !== 204) {
|
|
10239
|
+
return response.text().then((_responseText) => {
|
|
10240
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
10241
|
+
});
|
|
10242
|
+
}
|
|
10243
|
+
return Promise.resolve(null);
|
|
10244
|
+
}
|
|
10159
10245
|
listMeasuringToolSubTypes(typeId) {
|
|
10160
10246
|
let url_ = this.baseUrl + "/measuringtools/types/{typeId}/subtypes";
|
|
10161
10247
|
if (typeId === undefined || typeId === 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, 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, 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, includeDeprecated: boolean | undefined): Promise<MeasuringToolCountsDto>;
|
|
10198
|
+
|
|
10197
10199
|
updateMeasuringTool(id: string, request: UpdateMeasuringToolRequest): Promise<MeasuringToolDetailDto>;
|
|
10198
10200
|
|
|
10199
10201
|
getMeasuringTool(id: string): Promise<MeasuringToolDetailDto>;
|
|
@@ -10218,6 +10220,8 @@ export interface IMeasuringToolsClient {
|
|
|
10218
10220
|
|
|
10219
10221
|
deleteMeasuringToolType(id: string): Promise<void>;
|
|
10220
10222
|
|
|
10223
|
+
listAllMeasuringToolSubTypes(): Promise<MeasuringToolSubTypeDto[]>;
|
|
10224
|
+
|
|
10221
10225
|
listMeasuringToolSubTypes(typeId: string): Promise<MeasuringToolSubTypeDto[]>;
|
|
10222
10226
|
|
|
10223
10227
|
createMeasuringToolSubType(typeId: string, request: CreateMeasuringToolSubTypeRequest): Promise<MeasuringToolSubTypeDto>;
|
|
@@ -10273,7 +10277,7 @@ export class MeasuringToolsClient extends AuthorizedApiBase implements IMeasurin
|
|
|
10273
10277
|
this.baseUrl = baseUrl ?? "";
|
|
10274
10278
|
}
|
|
10275
10279
|
|
|
10276
|
-
listMeasuringTools(page: number | undefined, pageSize: number | undefined, toolId: string | null | undefined, toolName: 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, typeId: string | null | undefined, subTypeId: string | null | undefined, orderBy: string | null | undefined, sortDirection: string | null | undefined, includeDeprecated: boolean | null | undefined): Promise<PagedDataOfMeasuringToolDto> {
|
|
10277
10281
|
let url_ = this.baseUrl + "/measuringtools?";
|
|
10278
10282
|
if (page === null)
|
|
10279
10283
|
throw new globalThis.Error("The parameter 'page' cannot be null.");
|
|
@@ -10287,6 +10291,10 @@ export class MeasuringToolsClient extends AuthorizedApiBase implements IMeasurin
|
|
|
10287
10291
|
url_ += "toolId=" + encodeURIComponent("" + toolId) + "&";
|
|
10288
10292
|
if (toolName !== undefined && toolName !== null)
|
|
10289
10293
|
url_ += "toolName=" + encodeURIComponent("" + toolName) + "&";
|
|
10294
|
+
if (typeIds !== undefined && typeIds !== null)
|
|
10295
|
+
typeIds && typeIds.forEach(item => { url_ += "typeIds=" + encodeURIComponent("" + item) + "&"; });
|
|
10296
|
+
if (subTypeIds !== undefined && subTypeIds !== null)
|
|
10297
|
+
subTypeIds && subTypeIds.forEach(item => { url_ += "subTypeIds=" + encodeURIComponent("" + item) + "&"; });
|
|
10290
10298
|
if (typeId !== undefined && typeId !== null)
|
|
10291
10299
|
url_ += "typeId=" + encodeURIComponent("" + typeId) + "&";
|
|
10292
10300
|
if (subTypeId !== undefined && subTypeId !== null)
|
|
@@ -10369,6 +10377,51 @@ export class MeasuringToolsClient extends AuthorizedApiBase implements IMeasurin
|
|
|
10369
10377
|
return Promise.resolve<MeasuringToolDetailDto>(null as any);
|
|
10370
10378
|
}
|
|
10371
10379
|
|
|
10380
|
+
listMeasuringToolCounts(search: string | null | undefined, typeIds: string[] | null | undefined, subTypeIds: string[] | null | undefined, includeDeprecated: boolean | undefined): Promise<MeasuringToolCountsDto> {
|
|
10381
|
+
let url_ = this.baseUrl + "/measuringtools/counts?";
|
|
10382
|
+
if (search !== undefined && search !== null)
|
|
10383
|
+
url_ += "search=" + encodeURIComponent("" + search) + "&";
|
|
10384
|
+
if (typeIds !== undefined && typeIds !== null)
|
|
10385
|
+
typeIds && typeIds.forEach(item => { url_ += "typeIds=" + encodeURIComponent("" + item) + "&"; });
|
|
10386
|
+
if (subTypeIds !== undefined && subTypeIds !== null)
|
|
10387
|
+
subTypeIds && subTypeIds.forEach(item => { url_ += "subTypeIds=" + encodeURIComponent("" + item) + "&"; });
|
|
10388
|
+
if (includeDeprecated === null)
|
|
10389
|
+
throw new globalThis.Error("The parameter 'includeDeprecated' cannot be null.");
|
|
10390
|
+
else if (includeDeprecated !== undefined)
|
|
10391
|
+
url_ += "includeDeprecated=" + encodeURIComponent("" + includeDeprecated) + "&";
|
|
10392
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
10393
|
+
|
|
10394
|
+
let options_: RequestInit = {
|
|
10395
|
+
method: "GET",
|
|
10396
|
+
headers: {
|
|
10397
|
+
"Accept": "application/json"
|
|
10398
|
+
}
|
|
10399
|
+
};
|
|
10400
|
+
|
|
10401
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
10402
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
10403
|
+
}).then((_response: Response) => {
|
|
10404
|
+
return this.processListMeasuringToolCounts(_response);
|
|
10405
|
+
});
|
|
10406
|
+
}
|
|
10407
|
+
|
|
10408
|
+
protected processListMeasuringToolCounts(response: Response): Promise<MeasuringToolCountsDto> {
|
|
10409
|
+
const status = response.status;
|
|
10410
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
10411
|
+
if (status === 200) {
|
|
10412
|
+
return response.text().then((_responseText) => {
|
|
10413
|
+
let result200: any = null;
|
|
10414
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as MeasuringToolCountsDto;
|
|
10415
|
+
return result200;
|
|
10416
|
+
});
|
|
10417
|
+
} else if (status !== 200 && status !== 204) {
|
|
10418
|
+
return response.text().then((_responseText) => {
|
|
10419
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
10420
|
+
});
|
|
10421
|
+
}
|
|
10422
|
+
return Promise.resolve<MeasuringToolCountsDto>(null as any);
|
|
10423
|
+
}
|
|
10424
|
+
|
|
10372
10425
|
updateMeasuringTool(id: string, request: UpdateMeasuringToolRequest): Promise<MeasuringToolDetailDto> {
|
|
10373
10426
|
let url_ = this.baseUrl + "/measuringtools/{id}";
|
|
10374
10427
|
if (id === undefined || id === null)
|
|
@@ -10837,6 +10890,41 @@ export class MeasuringToolsClient extends AuthorizedApiBase implements IMeasurin
|
|
|
10837
10890
|
return Promise.resolve<void>(null as any);
|
|
10838
10891
|
}
|
|
10839
10892
|
|
|
10893
|
+
listAllMeasuringToolSubTypes(): Promise<MeasuringToolSubTypeDto[]> {
|
|
10894
|
+
let url_ = this.baseUrl + "/measuringtools/subtypes";
|
|
10895
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
10896
|
+
|
|
10897
|
+
let options_: RequestInit = {
|
|
10898
|
+
method: "GET",
|
|
10899
|
+
headers: {
|
|
10900
|
+
"Accept": "application/json"
|
|
10901
|
+
}
|
|
10902
|
+
};
|
|
10903
|
+
|
|
10904
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
10905
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
10906
|
+
}).then((_response: Response) => {
|
|
10907
|
+
return this.processListAllMeasuringToolSubTypes(_response);
|
|
10908
|
+
});
|
|
10909
|
+
}
|
|
10910
|
+
|
|
10911
|
+
protected processListAllMeasuringToolSubTypes(response: Response): Promise<MeasuringToolSubTypeDto[]> {
|
|
10912
|
+
const status = response.status;
|
|
10913
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
10914
|
+
if (status === 200) {
|
|
10915
|
+
return response.text().then((_responseText) => {
|
|
10916
|
+
let result200: any = null;
|
|
10917
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as MeasuringToolSubTypeDto[];
|
|
10918
|
+
return result200;
|
|
10919
|
+
});
|
|
10920
|
+
} else if (status !== 200 && status !== 204) {
|
|
10921
|
+
return response.text().then((_responseText) => {
|
|
10922
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
10923
|
+
});
|
|
10924
|
+
}
|
|
10925
|
+
return Promise.resolve<MeasuringToolSubTypeDto[]>(null as any);
|
|
10926
|
+
}
|
|
10927
|
+
|
|
10840
10928
|
listMeasuringToolSubTypes(typeId: string): Promise<MeasuringToolSubTypeDto[]> {
|
|
10841
10929
|
let url_ = this.baseUrl + "/measuringtools/types/{typeId}/subtypes";
|
|
10842
10930
|
if (typeId === undefined || typeId === null)
|
|
@@ -36356,6 +36444,16 @@ export interface MeasuringToolLastUsedByDto {
|
|
|
36356
36444
|
|
|
36357
36445
|
export type CalibrationStatusDto = "Uncalibrated" | "Deprecated" | "Expired" | "SoonDue" | "Valid";
|
|
36358
36446
|
|
|
36447
|
+
export interface MeasuringToolCountsDto {
|
|
36448
|
+
types: MeasuringToolFacetCountDto[];
|
|
36449
|
+
subTypes: MeasuringToolFacetCountDto[];
|
|
36450
|
+
}
|
|
36451
|
+
|
|
36452
|
+
export interface MeasuringToolFacetCountDto {
|
|
36453
|
+
id: string;
|
|
36454
|
+
count: number;
|
|
36455
|
+
}
|
|
36456
|
+
|
|
36359
36457
|
export interface MeasuringToolDetailDto {
|
|
36360
36458
|
id: string;
|
|
36361
36459
|
toolId: string;
|
|
@@ -36399,6 +36497,7 @@ export interface MeasuringToolTypeDto {
|
|
|
36399
36497
|
|
|
36400
36498
|
export interface MeasuringToolSubTypeDto {
|
|
36401
36499
|
id: string;
|
|
36500
|
+
typeId: string;
|
|
36402
36501
|
name: string;
|
|
36403
36502
|
calibrationInterval?: number | null;
|
|
36404
36503
|
maxNumberOfUsagesBetweenCalibration?: number | null;
|