@ignos/api-client 20261008.299.1 → 20261009.301.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.
@@ -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")
3227
+ typed into a measurement's Nominal Text field. Used by both Schema
3228
+ Creator and the legacy schema builder - it's a stateless, no-op
3229
+ calculation with no data access, not tied to any specific schema
3230
+ version or instance. Always returns 200 - the DTO's
3231
+ IsValidDesignation/IsSupported flags carry invalid-input/
3232
+ unsupported-tolerance-class feedback, since that's expected user
3233
+ input, not a server error.
3234
+ * @param designation (optional)
3235
+ */
3236
+ calculateFitTolerance(designation: string | undefined): Promise<FitToleranceResultDto>;
3225
3237
  }
3226
3238
  export declare class MeasurementFormSchemasClient extends AuthorizedApiBase implements IMeasurementFormSchemasClient {
3227
3239
  private http;
@@ -3235,6 +3247,19 @@ 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")
3252
+ typed into a measurement's Nominal Text field. Used by both Schema
3253
+ Creator and the legacy schema builder - it's a stateless, no-op
3254
+ calculation with no data access, not tied to any specific schema
3255
+ version or instance. Always returns 200 - the DTO's
3256
+ IsValidDesignation/IsSupported flags carry invalid-input/
3257
+ unsupported-tolerance-class feedback, since that's expected user
3258
+ input, not a server error.
3259
+ * @param designation (optional)
3260
+ */
3261
+ calculateFitTolerance(designation: string | undefined): Promise<FitToleranceResultDto>;
3262
+ protected processCalculateFitTolerance(response: Response): Promise<FitToleranceResultDto>;
3238
3263
  }
3239
3264
  export interface IMeasurementFormSettingsClient {
3240
3265
  getMeasurementFormSettings(): Promise<InspectCompanySettingsDto>;
@@ -9996,6 +10021,16 @@ export interface MeasurementFrequencyDto {
9996
10021
  id: number;
9997
10022
  name: string;
9998
10023
  }
10024
+ export interface FitToleranceResultDto {
10025
+ isValidDesignation?: boolean;
10026
+ isSupported?: boolean;
10027
+ nominalSizeMm?: number | null;
10028
+ toleranceClassLetter?: string | null;
10029
+ itGrade?: number | null;
10030
+ tolerancePlusMm?: number | null;
10031
+ toleranceMinusMm?: number | null;
10032
+ message?: string | null;
10033
+ }
9999
10034
  export interface MeasurementFormInstanceDto {
10000
10035
  id: string;
10001
10036
  readonly: boolean;
@@ -27350,6 +27350,57 @@ 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")
27355
+ typed into a measurement's Nominal Text field. Used by both Schema
27356
+ Creator and the legacy schema builder - it's a stateless, no-op
27357
+ calculation with no data access, not tied to any specific schema
27358
+ version or instance. Always returns 200 - the DTO's
27359
+ IsValidDesignation/IsSupported flags carry invalid-input/
27360
+ unsupported-tolerance-class feedback, since that's expected user
27361
+ input, not a server error.
27362
+ * @param designation (optional)
27363
+ */
27364
+ calculateFitTolerance(designation) {
27365
+ let url_ = this.baseUrl + "/measurementforms/schemas/fittolerance?";
27366
+ if (designation === null)
27367
+ throw new globalThis.Error("The parameter 'designation' cannot be null.");
27368
+ else if (designation !== undefined)
27369
+ url_ += "designation=" + encodeURIComponent("" + designation) + "&";
27370
+ url_ = url_.replace(/[?&]$/, "");
27371
+ let options_ = {
27372
+ method: "GET",
27373
+ headers: {
27374
+ "Accept": "application/json"
27375
+ }
27376
+ };
27377
+ return this.transformOptions(options_).then(transformedOptions_ => {
27378
+ return this.http.fetch(url_, transformedOptions_);
27379
+ }).then((_response) => {
27380
+ return this.processCalculateFitTolerance(_response);
27381
+ });
27382
+ }
27383
+ processCalculateFitTolerance(response) {
27384
+ const status = response.status;
27385
+ let _headers = {};
27386
+ if (response.headers && response.headers.forEach) {
27387
+ response.headers.forEach((v, k) => _headers[k] = v);
27388
+ }
27389
+ ;
27390
+ if (status === 200) {
27391
+ return response.text().then((_responseText) => {
27392
+ let result200 = null;
27393
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
27394
+ return result200;
27395
+ });
27396
+ }
27397
+ else if (status !== 200 && status !== 204) {
27398
+ return response.text().then((_responseText) => {
27399
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
27400
+ });
27401
+ }
27402
+ return Promise.resolve(null);
27403
+ }
27353
27404
  }
27354
27405
  export class MeasurementFormSettingsClient extends AuthorizedApiBase {
27355
27406
  http;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20261008.299.1",
3
+ "version": "20261009.301.1-alpha",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -28903,6 +28903,19 @@ 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")
28909
+ typed into a measurement's Nominal Text field. Used by both Schema
28910
+ Creator and the legacy schema builder - it's a stateless, no-op
28911
+ calculation with no data access, not tied to any specific schema
28912
+ version or instance. Always returns 200 - the DTO's
28913
+ IsValidDesignation/IsSupported flags carry invalid-input/
28914
+ unsupported-tolerance-class feedback, since that's expected user
28915
+ input, not a server error.
28916
+ * @param designation (optional)
28917
+ */
28918
+ calculateFitTolerance(designation: string | undefined): Promise<FitToleranceResultDto>;
28906
28919
  }
28907
28920
 
28908
28921
  export class MeasurementFormSchemasClient extends AuthorizedApiBase implements IMeasurementFormSchemasClient {
@@ -29026,6 +29039,56 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
29026
29039
  }
29027
29040
  return Promise.resolve<MeasurementFrequencyDto[]>(null as any);
29028
29041
  }
29042
+
29043
+ /**
29044
+ * Calculates +/- tolerance for an ISO fit designation (e.g. "12H7")
29045
+ typed into a measurement's Nominal Text field. Used by both Schema
29046
+ Creator and the legacy schema builder - it's a stateless, no-op
29047
+ calculation with no data access, not tied to any specific schema
29048
+ version or instance. Always returns 200 - the DTO's
29049
+ IsValidDesignation/IsSupported flags carry invalid-input/
29050
+ unsupported-tolerance-class feedback, since that's expected user
29051
+ input, not a server error.
29052
+ * @param designation (optional)
29053
+ */
29054
+ calculateFitTolerance(designation: string | undefined): Promise<FitToleranceResultDto> {
29055
+ let url_ = this.baseUrl + "/measurementforms/schemas/fittolerance?";
29056
+ if (designation === null)
29057
+ throw new globalThis.Error("The parameter 'designation' cannot be null.");
29058
+ else if (designation !== undefined)
29059
+ url_ += "designation=" + encodeURIComponent("" + designation) + "&";
29060
+ url_ = url_.replace(/[?&]$/, "");
29061
+
29062
+ let options_: RequestInit = {
29063
+ method: "GET",
29064
+ headers: {
29065
+ "Accept": "application/json"
29066
+ }
29067
+ };
29068
+
29069
+ return this.transformOptions(options_).then(transformedOptions_ => {
29070
+ return this.http.fetch(url_, transformedOptions_);
29071
+ }).then((_response: Response) => {
29072
+ return this.processCalculateFitTolerance(_response);
29073
+ });
29074
+ }
29075
+
29076
+ protected processCalculateFitTolerance(response: Response): Promise<FitToleranceResultDto> {
29077
+ const status = response.status;
29078
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
29079
+ if (status === 200) {
29080
+ return response.text().then((_responseText) => {
29081
+ let result200: any = null;
29082
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as FitToleranceResultDto;
29083
+ return result200;
29084
+ });
29085
+ } else if (status !== 200 && status !== 204) {
29086
+ return response.text().then((_responseText) => {
29087
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
29088
+ });
29089
+ }
29090
+ return Promise.resolve<FitToleranceResultDto>(null as any);
29091
+ }
29029
29092
  }
29030
29093
 
29031
29094
  export interface IMeasurementFormSettingsClient {
@@ -39829,6 +39892,17 @@ export interface MeasurementFrequencyDto {
39829
39892
  name: string;
39830
39893
  }
39831
39894
 
39895
+ export interface FitToleranceResultDto {
39896
+ isValidDesignation?: boolean;
39897
+ isSupported?: boolean;
39898
+ nominalSizeMm?: number | null;
39899
+ toleranceClassLetter?: string | null;
39900
+ itGrade?: number | null;
39901
+ tolerancePlusMm?: number | null;
39902
+ toleranceMinusMm?: number | null;
39903
+ message?: string | null;
39904
+ }
39905
+
39832
39906
  export interface MeasurementFormInstanceDto {
39833
39907
  id: string;
39834
39908
  readonly: boolean;