@ignos/api-client 20261015.306.1 → 20261015.308.1
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 +71 -0
- package/lib/ignosportal-api.js +126 -0
- package/package.json +1 -1
- package/src/ignosportal-api.ts +194 -0
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -3222,6 +3222,18 @@ export interface IMeasurementFormSchemasClient {
|
|
|
3222
3222
|
getMeasurementFormSchema(id: string): Promise<MeasurementFormSchemaDto>;
|
|
3223
3223
|
postListMeasurementFormSchemas(request: ListMeasurementFormSchemasRequest | undefined): Promise<PagedResultOfMeasurementFormListDto>;
|
|
3224
3224
|
listFrequencies(): Promise<MeasurementFrequencyDto[]>;
|
|
3225
|
+
/**
|
|
3226
|
+
* Calculates +/- tolerance for an ISO fit designation (e.g. "12H7") typed into a Nominal Text field.
|
|
3227
|
+
*/
|
|
3228
|
+
calculateFitTolerance(request: CalculateFitToleranceRequest): Promise<FitToleranceResultDto>;
|
|
3229
|
+
/**
|
|
3230
|
+
* Calculates +/- tolerance from the schema's ISO 2768 general tolerance setting.
|
|
3231
|
+
*/
|
|
3232
|
+
calculateGeneralTolerance(request: CalculateGeneralToleranceRequest): Promise<ToleranceResultDto>;
|
|
3233
|
+
/**
|
|
3234
|
+
* Batch form of generaltolerance above - calculates tolerances for many elements in one request.
|
|
3235
|
+
*/
|
|
3236
|
+
calculateGeneralToleranceBatch(request: CalculateGeneralToleranceBatchRequest): Promise<GeneralToleranceBatchResultDto>;
|
|
3225
3237
|
}
|
|
3226
3238
|
export declare class MeasurementFormSchemasClient extends AuthorizedApiBase implements IMeasurementFormSchemasClient {
|
|
3227
3239
|
private http;
|
|
@@ -3235,6 +3247,21 @@ export declare class MeasurementFormSchemasClient extends AuthorizedApiBase impl
|
|
|
3235
3247
|
protected processPostListMeasurementFormSchemas(response: Response): Promise<PagedResultOfMeasurementFormListDto>;
|
|
3236
3248
|
listFrequencies(): Promise<MeasurementFrequencyDto[]>;
|
|
3237
3249
|
protected processListFrequencies(response: Response): Promise<MeasurementFrequencyDto[]>;
|
|
3250
|
+
/**
|
|
3251
|
+
* Calculates +/- tolerance for an ISO fit designation (e.g. "12H7") typed into a Nominal Text field.
|
|
3252
|
+
*/
|
|
3253
|
+
calculateFitTolerance(request: CalculateFitToleranceRequest): Promise<FitToleranceResultDto>;
|
|
3254
|
+
protected processCalculateFitTolerance(response: Response): Promise<FitToleranceResultDto>;
|
|
3255
|
+
/**
|
|
3256
|
+
* Calculates +/- tolerance from the schema's ISO 2768 general tolerance setting.
|
|
3257
|
+
*/
|
|
3258
|
+
calculateGeneralTolerance(request: CalculateGeneralToleranceRequest): Promise<ToleranceResultDto>;
|
|
3259
|
+
protected processCalculateGeneralTolerance(response: Response): Promise<ToleranceResultDto>;
|
|
3260
|
+
/**
|
|
3261
|
+
* Batch form of generaltolerance above - calculates tolerances for many elements in one request.
|
|
3262
|
+
*/
|
|
3263
|
+
calculateGeneralToleranceBatch(request: CalculateGeneralToleranceBatchRequest): Promise<GeneralToleranceBatchResultDto>;
|
|
3264
|
+
protected processCalculateGeneralToleranceBatch(response: Response): Promise<GeneralToleranceBatchResultDto>;
|
|
3238
3265
|
}
|
|
3239
3266
|
export interface IMeasurementFormSettingsClient {
|
|
3240
3267
|
getMeasurementFormSettings(): Promise<InspectCompanySettingsDto>;
|
|
@@ -9508,6 +9535,7 @@ export interface SchemaCreatorElementValuesDto {
|
|
|
9508
9535
|
designation?: string | null;
|
|
9509
9536
|
plusTolerance?: number | null;
|
|
9510
9537
|
minusTolerance?: number | null;
|
|
9538
|
+
toleranceSource?: ToleranceSourceDto | null;
|
|
9511
9539
|
coatingThickness?: number | null;
|
|
9512
9540
|
measurementFrequency: MeasurementFrequency;
|
|
9513
9541
|
measurementFrequencyParameter?: number | null;
|
|
@@ -9519,6 +9547,7 @@ export interface SchemaCreatorElementValuesDto {
|
|
|
9519
9547
|
isDocumentedExternally: boolean;
|
|
9520
9548
|
}
|
|
9521
9549
|
export type UnitOfMeasureDto = "Millimeter" | "Inch";
|
|
9550
|
+
export type ToleranceSourceDto = "FitDesignation" | "GeneralTolerance";
|
|
9522
9551
|
export type MeasurementFrequency = "All" | "FirstArticle" | "NFirst" | "NPercent" | "ISO2859" | "Nth" | "FirstAndLast" | "None";
|
|
9523
9552
|
export interface SchemaCreatorSnipResultDto {
|
|
9524
9553
|
nominal?: number | null;
|
|
@@ -9526,6 +9555,7 @@ export interface SchemaCreatorSnipResultDto {
|
|
|
9526
9555
|
type?: string | null;
|
|
9527
9556
|
plusTolerance?: number | null;
|
|
9528
9557
|
minusTolerance?: number | null;
|
|
9558
|
+
toleranceSource?: ToleranceSourceDto | null;
|
|
9529
9559
|
count?: number | null;
|
|
9530
9560
|
designation?: string | null;
|
|
9531
9561
|
}
|
|
@@ -9620,6 +9650,7 @@ export interface MeasurementFormGroupedElementDto {
|
|
|
9620
9650
|
referenceQuantity?: number | null;
|
|
9621
9651
|
plusToleranceText?: string | null;
|
|
9622
9652
|
minusToleranceText?: string | null;
|
|
9653
|
+
toleranceSource?: ToleranceSourceDto | null;
|
|
9623
9654
|
coatingThickness?: number | null;
|
|
9624
9655
|
canCopy: boolean;
|
|
9625
9656
|
valueType?: MeasurementFormValueType;
|
|
@@ -9735,6 +9766,7 @@ export interface UpdateSchemaSettingsRequest {
|
|
|
9735
9766
|
unitOfMeasure: UnitOfMeasureDto;
|
|
9736
9767
|
dimensionSetting: DimensionSettingDto;
|
|
9737
9768
|
generalTolerance: GeneralToleranceDto;
|
|
9769
|
+
recalculateGeneralTolerances?: boolean;
|
|
9738
9770
|
}
|
|
9739
9771
|
export interface UploadDrawingRequest {
|
|
9740
9772
|
uploadKey: string;
|
|
@@ -10005,6 +10037,45 @@ export interface MeasurementFrequencyDto {
|
|
|
10005
10037
|
id: number;
|
|
10006
10038
|
name: string;
|
|
10007
10039
|
}
|
|
10040
|
+
export interface ToleranceResultDto {
|
|
10041
|
+
isSupported?: boolean;
|
|
10042
|
+
tolerancePlus?: number | null;
|
|
10043
|
+
toleranceMinus?: number | null;
|
|
10044
|
+
message?: string | null;
|
|
10045
|
+
}
|
|
10046
|
+
export interface FitToleranceResultDto extends ToleranceResultDto {
|
|
10047
|
+
isValidDesignation?: boolean;
|
|
10048
|
+
nominalSize?: number | null;
|
|
10049
|
+
toleranceClassLetter?: string | null;
|
|
10050
|
+
itGrade?: string | null;
|
|
10051
|
+
}
|
|
10052
|
+
export interface CalculateFitToleranceRequest {
|
|
10053
|
+
designation: string;
|
|
10054
|
+
elementType: string;
|
|
10055
|
+
unit: UnitOfMeasureDto;
|
|
10056
|
+
}
|
|
10057
|
+
export interface CalculateGeneralToleranceRequest {
|
|
10058
|
+
elementType: string;
|
|
10059
|
+
nominal: number;
|
|
10060
|
+
unit: UnitOfMeasureDto;
|
|
10061
|
+
generalTolerance: GeneralToleranceDto;
|
|
10062
|
+
}
|
|
10063
|
+
export interface GeneralToleranceBatchResultDto {
|
|
10064
|
+
results: GeneralToleranceBatchItemResultDto[];
|
|
10065
|
+
}
|
|
10066
|
+
export interface GeneralToleranceBatchItemResultDto extends ToleranceResultDto {
|
|
10067
|
+
id: string;
|
|
10068
|
+
}
|
|
10069
|
+
export interface CalculateGeneralToleranceBatchRequest {
|
|
10070
|
+
items: GeneralToleranceBatchItemDto[];
|
|
10071
|
+
generalTolerance: GeneralToleranceDto;
|
|
10072
|
+
}
|
|
10073
|
+
export interface GeneralToleranceBatchItemDto {
|
|
10074
|
+
id: string;
|
|
10075
|
+
elementType: string;
|
|
10076
|
+
nominal: number;
|
|
10077
|
+
unit: UnitOfMeasureDto;
|
|
10078
|
+
}
|
|
10008
10079
|
export interface MeasurementFormInstanceDto {
|
|
10009
10080
|
id: string;
|
|
10010
10081
|
readonly: boolean;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -27350,6 +27350,132 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
27350
27350
|
}
|
|
27351
27351
|
return Promise.resolve(null);
|
|
27352
27352
|
}
|
|
27353
|
+
/**
|
|
27354
|
+
* Calculates +/- tolerance for an ISO fit designation (e.g. "12H7") typed into a Nominal Text field.
|
|
27355
|
+
*/
|
|
27356
|
+
calculateFitTolerance(request) {
|
|
27357
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/fittolerance";
|
|
27358
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
27359
|
+
const content_ = JSON.stringify(request);
|
|
27360
|
+
let options_ = {
|
|
27361
|
+
body: content_,
|
|
27362
|
+
method: "POST",
|
|
27363
|
+
headers: {
|
|
27364
|
+
"Content-Type": "application/json",
|
|
27365
|
+
"Accept": "application/json"
|
|
27366
|
+
}
|
|
27367
|
+
};
|
|
27368
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
27369
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
27370
|
+
}).then((_response) => {
|
|
27371
|
+
return this.processCalculateFitTolerance(_response);
|
|
27372
|
+
});
|
|
27373
|
+
}
|
|
27374
|
+
processCalculateFitTolerance(response) {
|
|
27375
|
+
const status = response.status;
|
|
27376
|
+
let _headers = {};
|
|
27377
|
+
if (response.headers && response.headers.forEach) {
|
|
27378
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
27379
|
+
}
|
|
27380
|
+
;
|
|
27381
|
+
if (status === 200) {
|
|
27382
|
+
return response.text().then((_responseText) => {
|
|
27383
|
+
let result200 = null;
|
|
27384
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
27385
|
+
return result200;
|
|
27386
|
+
});
|
|
27387
|
+
}
|
|
27388
|
+
else if (status !== 200 && status !== 204) {
|
|
27389
|
+
return response.text().then((_responseText) => {
|
|
27390
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
27391
|
+
});
|
|
27392
|
+
}
|
|
27393
|
+
return Promise.resolve(null);
|
|
27394
|
+
}
|
|
27395
|
+
/**
|
|
27396
|
+
* Calculates +/- tolerance from the schema's ISO 2768 general tolerance setting.
|
|
27397
|
+
*/
|
|
27398
|
+
calculateGeneralTolerance(request) {
|
|
27399
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/generaltolerance";
|
|
27400
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
27401
|
+
const content_ = JSON.stringify(request);
|
|
27402
|
+
let options_ = {
|
|
27403
|
+
body: content_,
|
|
27404
|
+
method: "POST",
|
|
27405
|
+
headers: {
|
|
27406
|
+
"Content-Type": "application/json",
|
|
27407
|
+
"Accept": "application/json"
|
|
27408
|
+
}
|
|
27409
|
+
};
|
|
27410
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
27411
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
27412
|
+
}).then((_response) => {
|
|
27413
|
+
return this.processCalculateGeneralTolerance(_response);
|
|
27414
|
+
});
|
|
27415
|
+
}
|
|
27416
|
+
processCalculateGeneralTolerance(response) {
|
|
27417
|
+
const status = response.status;
|
|
27418
|
+
let _headers = {};
|
|
27419
|
+
if (response.headers && response.headers.forEach) {
|
|
27420
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
27421
|
+
}
|
|
27422
|
+
;
|
|
27423
|
+
if (status === 200) {
|
|
27424
|
+
return response.text().then((_responseText) => {
|
|
27425
|
+
let result200 = null;
|
|
27426
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
27427
|
+
return result200;
|
|
27428
|
+
});
|
|
27429
|
+
}
|
|
27430
|
+
else if (status !== 200 && status !== 204) {
|
|
27431
|
+
return response.text().then((_responseText) => {
|
|
27432
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
27433
|
+
});
|
|
27434
|
+
}
|
|
27435
|
+
return Promise.resolve(null);
|
|
27436
|
+
}
|
|
27437
|
+
/**
|
|
27438
|
+
* Batch form of generaltolerance above - calculates tolerances for many elements in one request.
|
|
27439
|
+
*/
|
|
27440
|
+
calculateGeneralToleranceBatch(request) {
|
|
27441
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/generaltolerance/batch";
|
|
27442
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
27443
|
+
const content_ = JSON.stringify(request);
|
|
27444
|
+
let options_ = {
|
|
27445
|
+
body: content_,
|
|
27446
|
+
method: "POST",
|
|
27447
|
+
headers: {
|
|
27448
|
+
"Content-Type": "application/json",
|
|
27449
|
+
"Accept": "application/json"
|
|
27450
|
+
}
|
|
27451
|
+
};
|
|
27452
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
27453
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
27454
|
+
}).then((_response) => {
|
|
27455
|
+
return this.processCalculateGeneralToleranceBatch(_response);
|
|
27456
|
+
});
|
|
27457
|
+
}
|
|
27458
|
+
processCalculateGeneralToleranceBatch(response) {
|
|
27459
|
+
const status = response.status;
|
|
27460
|
+
let _headers = {};
|
|
27461
|
+
if (response.headers && response.headers.forEach) {
|
|
27462
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
27463
|
+
}
|
|
27464
|
+
;
|
|
27465
|
+
if (status === 200) {
|
|
27466
|
+
return response.text().then((_responseText) => {
|
|
27467
|
+
let result200 = null;
|
|
27468
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
27469
|
+
return result200;
|
|
27470
|
+
});
|
|
27471
|
+
}
|
|
27472
|
+
else if (status !== 200 && status !== 204) {
|
|
27473
|
+
return response.text().then((_responseText) => {
|
|
27474
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
27475
|
+
});
|
|
27476
|
+
}
|
|
27477
|
+
return Promise.resolve(null);
|
|
27478
|
+
}
|
|
27353
27479
|
}
|
|
27354
27480
|
export class MeasurementFormSettingsClient extends AuthorizedApiBase {
|
|
27355
27481
|
http;
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -28903,6 +28903,21 @@ export interface IMeasurementFormSchemasClient {
|
|
|
28903
28903
|
postListMeasurementFormSchemas(request: ListMeasurementFormSchemasRequest | undefined): Promise<PagedResultOfMeasurementFormListDto>;
|
|
28904
28904
|
|
|
28905
28905
|
listFrequencies(): Promise<MeasurementFrequencyDto[]>;
|
|
28906
|
+
|
|
28907
|
+
/**
|
|
28908
|
+
* Calculates +/- tolerance for an ISO fit designation (e.g. "12H7") typed into a Nominal Text field.
|
|
28909
|
+
*/
|
|
28910
|
+
calculateFitTolerance(request: CalculateFitToleranceRequest): Promise<FitToleranceResultDto>;
|
|
28911
|
+
|
|
28912
|
+
/**
|
|
28913
|
+
* Calculates +/- tolerance from the schema's ISO 2768 general tolerance setting.
|
|
28914
|
+
*/
|
|
28915
|
+
calculateGeneralTolerance(request: CalculateGeneralToleranceRequest): Promise<ToleranceResultDto>;
|
|
28916
|
+
|
|
28917
|
+
/**
|
|
28918
|
+
* Batch form of generaltolerance above - calculates tolerances for many elements in one request.
|
|
28919
|
+
*/
|
|
28920
|
+
calculateGeneralToleranceBatch(request: CalculateGeneralToleranceBatchRequest): Promise<GeneralToleranceBatchResultDto>;
|
|
28906
28921
|
}
|
|
28907
28922
|
|
|
28908
28923
|
export class MeasurementFormSchemasClient extends AuthorizedApiBase implements IMeasurementFormSchemasClient {
|
|
@@ -29026,6 +29041,132 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
29026
29041
|
}
|
|
29027
29042
|
return Promise.resolve<MeasurementFrequencyDto[]>(null as any);
|
|
29028
29043
|
}
|
|
29044
|
+
|
|
29045
|
+
/**
|
|
29046
|
+
* Calculates +/- tolerance for an ISO fit designation (e.g. "12H7") typed into a Nominal Text field.
|
|
29047
|
+
*/
|
|
29048
|
+
calculateFitTolerance(request: CalculateFitToleranceRequest): Promise<FitToleranceResultDto> {
|
|
29049
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/fittolerance";
|
|
29050
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
29051
|
+
|
|
29052
|
+
const content_ = JSON.stringify(request);
|
|
29053
|
+
|
|
29054
|
+
let options_: RequestInit = {
|
|
29055
|
+
body: content_,
|
|
29056
|
+
method: "POST",
|
|
29057
|
+
headers: {
|
|
29058
|
+
"Content-Type": "application/json",
|
|
29059
|
+
"Accept": "application/json"
|
|
29060
|
+
}
|
|
29061
|
+
};
|
|
29062
|
+
|
|
29063
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
29064
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
29065
|
+
}).then((_response: Response) => {
|
|
29066
|
+
return this.processCalculateFitTolerance(_response);
|
|
29067
|
+
});
|
|
29068
|
+
}
|
|
29069
|
+
|
|
29070
|
+
protected processCalculateFitTolerance(response: Response): Promise<FitToleranceResultDto> {
|
|
29071
|
+
const status = response.status;
|
|
29072
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
29073
|
+
if (status === 200) {
|
|
29074
|
+
return response.text().then((_responseText) => {
|
|
29075
|
+
let result200: any = null;
|
|
29076
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as FitToleranceResultDto;
|
|
29077
|
+
return result200;
|
|
29078
|
+
});
|
|
29079
|
+
} else if (status !== 200 && status !== 204) {
|
|
29080
|
+
return response.text().then((_responseText) => {
|
|
29081
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
29082
|
+
});
|
|
29083
|
+
}
|
|
29084
|
+
return Promise.resolve<FitToleranceResultDto>(null as any);
|
|
29085
|
+
}
|
|
29086
|
+
|
|
29087
|
+
/**
|
|
29088
|
+
* Calculates +/- tolerance from the schema's ISO 2768 general tolerance setting.
|
|
29089
|
+
*/
|
|
29090
|
+
calculateGeneralTolerance(request: CalculateGeneralToleranceRequest): Promise<ToleranceResultDto> {
|
|
29091
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/generaltolerance";
|
|
29092
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
29093
|
+
|
|
29094
|
+
const content_ = JSON.stringify(request);
|
|
29095
|
+
|
|
29096
|
+
let options_: RequestInit = {
|
|
29097
|
+
body: content_,
|
|
29098
|
+
method: "POST",
|
|
29099
|
+
headers: {
|
|
29100
|
+
"Content-Type": "application/json",
|
|
29101
|
+
"Accept": "application/json"
|
|
29102
|
+
}
|
|
29103
|
+
};
|
|
29104
|
+
|
|
29105
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
29106
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
29107
|
+
}).then((_response: Response) => {
|
|
29108
|
+
return this.processCalculateGeneralTolerance(_response);
|
|
29109
|
+
});
|
|
29110
|
+
}
|
|
29111
|
+
|
|
29112
|
+
protected processCalculateGeneralTolerance(response: Response): Promise<ToleranceResultDto> {
|
|
29113
|
+
const status = response.status;
|
|
29114
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
29115
|
+
if (status === 200) {
|
|
29116
|
+
return response.text().then((_responseText) => {
|
|
29117
|
+
let result200: any = null;
|
|
29118
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ToleranceResultDto;
|
|
29119
|
+
return result200;
|
|
29120
|
+
});
|
|
29121
|
+
} else if (status !== 200 && status !== 204) {
|
|
29122
|
+
return response.text().then((_responseText) => {
|
|
29123
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
29124
|
+
});
|
|
29125
|
+
}
|
|
29126
|
+
return Promise.resolve<ToleranceResultDto>(null as any);
|
|
29127
|
+
}
|
|
29128
|
+
|
|
29129
|
+
/**
|
|
29130
|
+
* Batch form of generaltolerance above - calculates tolerances for many elements in one request.
|
|
29131
|
+
*/
|
|
29132
|
+
calculateGeneralToleranceBatch(request: CalculateGeneralToleranceBatchRequest): Promise<GeneralToleranceBatchResultDto> {
|
|
29133
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/generaltolerance/batch";
|
|
29134
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
29135
|
+
|
|
29136
|
+
const content_ = JSON.stringify(request);
|
|
29137
|
+
|
|
29138
|
+
let options_: RequestInit = {
|
|
29139
|
+
body: content_,
|
|
29140
|
+
method: "POST",
|
|
29141
|
+
headers: {
|
|
29142
|
+
"Content-Type": "application/json",
|
|
29143
|
+
"Accept": "application/json"
|
|
29144
|
+
}
|
|
29145
|
+
};
|
|
29146
|
+
|
|
29147
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
29148
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
29149
|
+
}).then((_response: Response) => {
|
|
29150
|
+
return this.processCalculateGeneralToleranceBatch(_response);
|
|
29151
|
+
});
|
|
29152
|
+
}
|
|
29153
|
+
|
|
29154
|
+
protected processCalculateGeneralToleranceBatch(response: Response): Promise<GeneralToleranceBatchResultDto> {
|
|
29155
|
+
const status = response.status;
|
|
29156
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
29157
|
+
if (status === 200) {
|
|
29158
|
+
return response.text().then((_responseText) => {
|
|
29159
|
+
let result200: any = null;
|
|
29160
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as GeneralToleranceBatchResultDto;
|
|
29161
|
+
return result200;
|
|
29162
|
+
});
|
|
29163
|
+
} else if (status !== 200 && status !== 204) {
|
|
29164
|
+
return response.text().then((_responseText) => {
|
|
29165
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
29166
|
+
});
|
|
29167
|
+
}
|
|
29168
|
+
return Promise.resolve<GeneralToleranceBatchResultDto>(null as any);
|
|
29169
|
+
}
|
|
29029
29170
|
}
|
|
29030
29171
|
|
|
29031
29172
|
export interface IMeasurementFormSettingsClient {
|
|
@@ -39280,6 +39421,7 @@ export interface SchemaCreatorElementValuesDto {
|
|
|
39280
39421
|
designation?: string | null;
|
|
39281
39422
|
plusTolerance?: number | null;
|
|
39282
39423
|
minusTolerance?: number | null;
|
|
39424
|
+
toleranceSource?: ToleranceSourceDto | null;
|
|
39283
39425
|
coatingThickness?: number | null;
|
|
39284
39426
|
measurementFrequency: MeasurementFrequency;
|
|
39285
39427
|
measurementFrequencyParameter?: number | null;
|
|
@@ -39293,6 +39435,8 @@ export interface SchemaCreatorElementValuesDto {
|
|
|
39293
39435
|
|
|
39294
39436
|
export type UnitOfMeasureDto = "Millimeter" | "Inch";
|
|
39295
39437
|
|
|
39438
|
+
export type ToleranceSourceDto = "FitDesignation" | "GeneralTolerance";
|
|
39439
|
+
|
|
39296
39440
|
export type MeasurementFrequency = "All" | "FirstArticle" | "NFirst" | "NPercent" | "ISO2859" | "Nth" | "FirstAndLast" | "None";
|
|
39297
39441
|
|
|
39298
39442
|
export interface SchemaCreatorSnipResultDto {
|
|
@@ -39301,6 +39445,7 @@ export interface SchemaCreatorSnipResultDto {
|
|
|
39301
39445
|
type?: string | null;
|
|
39302
39446
|
plusTolerance?: number | null;
|
|
39303
39447
|
minusTolerance?: number | null;
|
|
39448
|
+
toleranceSource?: ToleranceSourceDto | null;
|
|
39304
39449
|
count?: number | null;
|
|
39305
39450
|
designation?: string | null;
|
|
39306
39451
|
}
|
|
@@ -39406,6 +39551,7 @@ export interface MeasurementFormGroupedElementDto {
|
|
|
39406
39551
|
referenceQuantity?: number | null;
|
|
39407
39552
|
plusToleranceText?: string | null;
|
|
39408
39553
|
minusToleranceText?: string | null;
|
|
39554
|
+
toleranceSource?: ToleranceSourceDto | null;
|
|
39409
39555
|
coatingThickness?: number | null;
|
|
39410
39556
|
canCopy: boolean;
|
|
39411
39557
|
valueType?: MeasurementFormValueType;
|
|
@@ -39534,6 +39680,7 @@ export interface UpdateSchemaSettingsRequest {
|
|
|
39534
39680
|
unitOfMeasure: UnitOfMeasureDto;
|
|
39535
39681
|
dimensionSetting: DimensionSettingDto;
|
|
39536
39682
|
generalTolerance: GeneralToleranceDto;
|
|
39683
|
+
recalculateGeneralTolerances?: boolean;
|
|
39537
39684
|
}
|
|
39538
39685
|
|
|
39539
39686
|
export interface UploadDrawingRequest {
|
|
@@ -39840,6 +39987,53 @@ export interface MeasurementFrequencyDto {
|
|
|
39840
39987
|
name: string;
|
|
39841
39988
|
}
|
|
39842
39989
|
|
|
39990
|
+
export interface ToleranceResultDto {
|
|
39991
|
+
isSupported?: boolean;
|
|
39992
|
+
tolerancePlus?: number | null;
|
|
39993
|
+
toleranceMinus?: number | null;
|
|
39994
|
+
message?: string | null;
|
|
39995
|
+
}
|
|
39996
|
+
|
|
39997
|
+
export interface FitToleranceResultDto extends ToleranceResultDto {
|
|
39998
|
+
isValidDesignation?: boolean;
|
|
39999
|
+
nominalSize?: number | null;
|
|
40000
|
+
toleranceClassLetter?: string | null;
|
|
40001
|
+
itGrade?: string | null;
|
|
40002
|
+
}
|
|
40003
|
+
|
|
40004
|
+
export interface CalculateFitToleranceRequest {
|
|
40005
|
+
designation: string;
|
|
40006
|
+
elementType: string;
|
|
40007
|
+
unit: UnitOfMeasureDto;
|
|
40008
|
+
}
|
|
40009
|
+
|
|
40010
|
+
export interface CalculateGeneralToleranceRequest {
|
|
40011
|
+
elementType: string;
|
|
40012
|
+
nominal: number;
|
|
40013
|
+
unit: UnitOfMeasureDto;
|
|
40014
|
+
generalTolerance: GeneralToleranceDto;
|
|
40015
|
+
}
|
|
40016
|
+
|
|
40017
|
+
export interface GeneralToleranceBatchResultDto {
|
|
40018
|
+
results: GeneralToleranceBatchItemResultDto[];
|
|
40019
|
+
}
|
|
40020
|
+
|
|
40021
|
+
export interface GeneralToleranceBatchItemResultDto extends ToleranceResultDto {
|
|
40022
|
+
id: string;
|
|
40023
|
+
}
|
|
40024
|
+
|
|
40025
|
+
export interface CalculateGeneralToleranceBatchRequest {
|
|
40026
|
+
items: GeneralToleranceBatchItemDto[];
|
|
40027
|
+
generalTolerance: GeneralToleranceDto;
|
|
40028
|
+
}
|
|
40029
|
+
|
|
40030
|
+
export interface GeneralToleranceBatchItemDto {
|
|
40031
|
+
id: string;
|
|
40032
|
+
elementType: string;
|
|
40033
|
+
nominal: number;
|
|
40034
|
+
unit: UnitOfMeasureDto;
|
|
40035
|
+
}
|
|
40036
|
+
|
|
39843
40037
|
export interface MeasurementFormInstanceDto {
|
|
39844
40038
|
id: string;
|
|
39845
40039
|
readonly: boolean;
|