@ignos/api-client 20260831.252.1-alpha → 20260831.253.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.
@@ -2879,84 +2879,6 @@ export declare class InspectMatchSpecificationsClient extends AuthorizedApiBase
2879
2879
  listSpecifications(): Promise<ImaSpecificationLiteDto[]>;
2880
2880
  protected processListSpecifications(response: Response): Promise<ImaSpecificationLiteDto[]>;
2881
2881
  }
2882
- export interface IInspectSchemaCreatorClient {
2883
- getSchemaCreatorState(id: string): Promise<SchemaCreatorStateDto>;
2884
- /**
2885
- * Creates the initial creator state for a schema version. Returns 409 if
2886
- state already exists; the caller should re-fetch it instead of writing.
2887
- */
2888
- createSchemaCreatorState(id: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto>;
2889
- updateSchemaCreatorState(id: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto>;
2890
- /**
2891
- * Starts a full drawing AI parse: clears every element and locks the
2892
- schema for every viewer until it completes. If one is already in
2893
- progress, returns that instead of starting a second one.
2894
- */
2895
- requestSchemaCreatorDocumentParse(id: string): Promise<SchemaCreatorStateDto>;
2896
- /**
2897
- * Stamps the creator state's balloons onto the schema's drawing PDF and
2898
- returns a temporary download link.
2899
- */
2900
- exportSchemaCreatorDrawing(id: string): Promise<DownloadDto>;
2901
- /**
2902
- * Starts an async snip resolve; the result is delivered through the
2903
- SchemaCreatorSnipResolved SignalR notification.
2904
- * @param image (optional)
2905
- */
2906
- requestSchemaCreatorSnipParse(id: string, elementId: string, image: FileParameter | null | undefined): Promise<void>;
2907
- /**
2908
- * Renders the legacy-format image for one element's current snip.
2909
- Fire-and-forget from the client on every snip commit - the resulting
2910
- image isn't returned here, it's only ever read back once the schema
2911
- is released (SchemaCreatorLegacyMapper).
2912
- */
2913
- renderSchemaCreatorElementSnipImage(id: string, elementId: string, request: RenderSchemaCreatorElementSnipImageRequest): Promise<void>;
2914
- }
2915
- export declare class InspectSchemaCreatorClient extends AuthorizedApiBase implements IInspectSchemaCreatorClient {
2916
- private http;
2917
- private baseUrl;
2918
- constructor(configuration: IApiClientConfig, baseUrl?: string, http?: {
2919
- fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
2920
- });
2921
- getSchemaCreatorState(id: string): Promise<SchemaCreatorStateDto>;
2922
- protected processGetSchemaCreatorState(response: Response): Promise<SchemaCreatorStateDto>;
2923
- /**
2924
- * Creates the initial creator state for a schema version. Returns 409 if
2925
- state already exists; the caller should re-fetch it instead of writing.
2926
- */
2927
- createSchemaCreatorState(id: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto>;
2928
- protected processCreateSchemaCreatorState(response: Response): Promise<SchemaCreatorStateDto>;
2929
- updateSchemaCreatorState(id: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto>;
2930
- protected processUpdateSchemaCreatorState(response: Response): Promise<SchemaCreatorStateDto>;
2931
- /**
2932
- * Starts a full drawing AI parse: clears every element and locks the
2933
- schema for every viewer until it completes. If one is already in
2934
- progress, returns that instead of starting a second one.
2935
- */
2936
- requestSchemaCreatorDocumentParse(id: string): Promise<SchemaCreatorStateDto>;
2937
- protected processRequestSchemaCreatorDocumentParse(response: Response): Promise<SchemaCreatorStateDto>;
2938
- /**
2939
- * Stamps the creator state's balloons onto the schema's drawing PDF and
2940
- returns a temporary download link.
2941
- */
2942
- exportSchemaCreatorDrawing(id: string): Promise<DownloadDto>;
2943
- protected processExportSchemaCreatorDrawing(response: Response): Promise<DownloadDto>;
2944
- /**
2945
- * Starts an async snip resolve; the result is delivered through the
2946
- SchemaCreatorSnipResolved SignalR notification.
2947
- * @param image (optional)
2948
- */
2949
- requestSchemaCreatorSnipParse(id: string, elementId: string, image: FileParameter | null | undefined): Promise<void>;
2950
- protected processRequestSchemaCreatorSnipParse(response: Response): Promise<void>;
2951
- /**
2952
- * Renders the legacy-format image for one element's current snip.
2953
- Fire-and-forget from the client on every snip commit - the resulting
2954
- image isn't returned here, it's only ever read back once the schema
2955
- is released (SchemaCreatorLegacyMapper).
2956
- */
2957
- renderSchemaCreatorElementSnipImage(id: string, elementId: string, request: RenderSchemaCreatorElementSnipImageRequest): Promise<void>;
2958
- protected processRenderSchemaCreatorElementSnipImage(response: Response): Promise<void>;
2959
- }
2960
2882
  export interface IMeasurementFormSchemasAdminClient {
2961
2883
  getArchivedMeasurementFormSchema(id: string): Promise<MeasurementFormSchemaDto>;
2962
2884
  createMeasurementForm(request: CreateMeasurementFormSchema): Promise<MeasurementFormDto>;
@@ -2968,7 +2890,7 @@ export interface IMeasurementFormSchemasAdminClient {
2968
2890
  deleteSchemaRows(id: string, request: DeleteSchemaGroupedElementRowsDto): Promise<MeasurementFormSchemaDto>;
2969
2891
  uploadMeasurementImage(id: string, request: UploadMeasurementImageRequest): Promise<MeasurementFormSchemaDto>;
2970
2892
  updateSchemaSettings(id: string, request: UpdateSchemaSettingsRequest): Promise<UpdateSchemaSettingsRequest>;
2971
- uploadSchemaMarkedDrawing(id: string, request: UploadRequest): Promise<MeasurementFormSchemaDto>;
2893
+ uploadSchemaDrawing(id: string, request: UploadDrawingRequest): Promise<MeasurementFormSchemaDto>;
2972
2894
  uploadSchemaAttachment(id: string, request: UploadRequest): Promise<MeasurementFormSchemaDto>;
2973
2895
  getMeasurementFormImportStatus(id: string): Promise<MeasurementFormImportStatusDto>;
2974
2896
  listLinkableMeasurementFormSchemas(schemaId: string, pageSize: number | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormListDto>;
@@ -3051,8 +2973,8 @@ export declare class MeasurementFormSchemasAdminClient extends AuthorizedApiBase
3051
2973
  protected processUploadMeasurementImage(response: Response): Promise<MeasurementFormSchemaDto>;
3052
2974
  updateSchemaSettings(id: string, request: UpdateSchemaSettingsRequest): Promise<UpdateSchemaSettingsRequest>;
3053
2975
  protected processUpdateSchemaSettings(response: Response): Promise<UpdateSchemaSettingsRequest>;
3054
- uploadSchemaMarkedDrawing(id: string, request: UploadRequest): Promise<MeasurementFormSchemaDto>;
3055
- protected processUploadSchemaMarkedDrawing(response: Response): Promise<MeasurementFormSchemaDto>;
2976
+ uploadSchemaDrawing(id: string, request: UploadDrawingRequest): Promise<MeasurementFormSchemaDto>;
2977
+ protected processUploadSchemaDrawing(response: Response): Promise<MeasurementFormSchemaDto>;
3056
2978
  uploadSchemaAttachment(id: string, request: UploadRequest): Promise<MeasurementFormSchemaDto>;
3057
2979
  protected processUploadSchemaAttachment(response: Response): Promise<MeasurementFormSchemaDto>;
3058
2980
  getMeasurementFormImportStatus(id: string): Promise<MeasurementFormImportStatusDto>;
@@ -8599,7 +8521,8 @@ export interface ImaImpactTestResultDto {
8599
8521
  sampleReference?: string | null;
8600
8522
  orientation?: string | null;
8601
8523
  testLocation?: string | null;
8602
- temperature?: ImaSpecificationResultLineDto | null;
8524
+ temperature?: number | null;
8525
+ temperatureUnit?: string | null;
8603
8526
  roomTemperature?: boolean | null;
8604
8527
  testLabel?: string | null;
8605
8528
  notchType?: string | null;
@@ -8829,7 +8752,7 @@ export interface ImaOverrideImpactTestResultsDto {
8829
8752
  heatNumber?: string | null;
8830
8753
  sampleReference?: string | null;
8831
8754
  orientation?: string | null;
8832
- temperature?: ImaOverrideUpdateMaterialCheckResultLineDto | null;
8755
+ temperature?: number | null;
8833
8756
  reportedAverage?: ImaOverrideUpdateMaterialCheckResultLineDto | null;
8834
8757
  individualValues?: ImaOverrideIndexedResultLineDto[] | null;
8835
8758
  }
@@ -9137,7 +9060,7 @@ export interface ImaChemistryCompositeSpecificationDto {
9137
9060
  export interface ImaMechanicalSpecificationDto {
9138
9061
  tensile?: ImaTensileSpecificationDto | null;
9139
9062
  hardness?: ImaHardnessSpecificationDto | null;
9140
- impact?: ImaImpactSpecificationDto | null;
9063
+ impactTests?: ImaImpactSpecificationDto[] | null;
9141
9064
  }
9142
9065
  export interface ImaTensileSpecificationDto {
9143
9066
  yieldStrength?: ImaSpecificationLineDto | null;
@@ -9150,7 +9073,8 @@ export interface ImaHardnessSpecificationDto {
9150
9073
  hardness?: ImaSpecificationLineDto | null;
9151
9074
  }
9152
9075
  export interface ImaImpactSpecificationDto {
9153
- temperature?: ImaSpecificationLineDto | null;
9076
+ temperature?: number | null;
9077
+ temperatureUnit?: ImaUnitDto | null;
9154
9078
  minimum?: ImaSpecificationLineDto | null;
9155
9079
  average?: ImaSpecificationLineDto | null;
9156
9080
  }
@@ -9230,105 +9154,6 @@ export interface ImaSpecificationLiteDto {
9230
9154
  updated: Date;
9231
9155
  isDeleted: boolean;
9232
9156
  }
9233
- export interface SchemaCreatorStateDto {
9234
- settings: SchemaCreatorSettingsDto;
9235
- elements: SchemaCreatorElementDto[];
9236
- documentParseStatus?: SchemaCreatorDocumentParseStatusDto | null;
9237
- isAutoGenerated?: boolean;
9238
- createdBy?: SchemaCreatorAuditInfoDto | null;
9239
- createdAt?: Date | null;
9240
- updatedBy?: SchemaCreatorAuditInfoDto | null;
9241
- updatedAt?: Date | null;
9242
- }
9243
- export interface SchemaCreatorSettingsDto {
9244
- unit?: SchemaCreatorUnitOfMeasureDto;
9245
- tolerance?: GeneralToleranceDto;
9246
- balloonSize?: number;
9247
- transparentBalloons?: boolean;
9248
- }
9249
- export type SchemaCreatorUnitOfMeasureDto = "Millimeter" | "Inch" | "Mixed";
9250
- export type GeneralToleranceDto = "NotSet" | "Fine" | "Medium" | "Coarse" | "VeryCoarse";
9251
- export interface SchemaCreatorElementDto {
9252
- id: string;
9253
- kind: SchemaCreatorElementKindDto;
9254
- drawings: SchemaCreatorElementDrawingsDto;
9255
- isDirty?: boolean | null;
9256
- values?: SchemaCreatorElementValuesDto | null;
9257
- parseResult?: SchemaCreatorSnipResultDto | null;
9258
- resolveAttempt?: SchemaCreatorParseAttemptDto | null;
9259
- createdBy?: SchemaCreatorAuditInfoDto | null;
9260
- createdAt?: Date | null;
9261
- updatedBy?: SchemaCreatorAuditInfoDto | null;
9262
- updatedAt?: Date | null;
9263
- }
9264
- export type SchemaCreatorElementKindDto = "Pending" | "Auto" | "Manual";
9265
- export interface SchemaCreatorElementDrawingsDto {
9266
- snip: SchemaCreatorSnipDto;
9267
- balloon: SchemaCreatorPointDto;
9268
- pageIndex: number;
9269
- }
9270
- export interface SchemaCreatorSnipDto {
9271
- rect: SchemaCreatorRectDto;
9272
- rotation?: number | null;
9273
- unrotatedRect?: SchemaCreatorRectDto | null;
9274
- }
9275
- export interface SchemaCreatorRectDto {
9276
- origin: SchemaCreatorPointDto;
9277
- size: SchemaCreatorSizeDto;
9278
- }
9279
- export interface SchemaCreatorPointDto {
9280
- x: number;
9281
- y: number;
9282
- }
9283
- export interface SchemaCreatorSizeDto {
9284
- width: number;
9285
- height: number;
9286
- }
9287
- export interface SchemaCreatorElementValuesDto {
9288
- reference: number;
9289
- unit?: UnitOfMeasureDto | null;
9290
- nominal?: number | null;
9291
- nominalText?: string | null;
9292
- plusTolerance?: number | null;
9293
- minusTolerance?: number | null;
9294
- coatingThickness?: number | null;
9295
- measurementFrequency: MeasurementFrequency;
9296
- measurementFrequencyParameter?: number | null;
9297
- type?: string | null;
9298
- count?: number | null;
9299
- comment?: string | null;
9300
- canCopy: boolean;
9301
- visibleToCustomer: boolean;
9302
- isDocumentedExternally: boolean;
9303
- }
9304
- export type UnitOfMeasureDto = "Millimeter" | "Inch";
9305
- export type MeasurementFrequency = "All" | "FirstArticle" | "NFirst" | "NPercent" | "ISO2859" | "Nth" | "FirstAndLast" | "None";
9306
- export interface SchemaCreatorSnipResultDto {
9307
- nominal?: number | null;
9308
- nominalText?: string | null;
9309
- plusTolerance?: number | null;
9310
- minusTolerance?: number | null;
9311
- count?: number | null;
9312
- }
9313
- export interface SchemaCreatorParseAttemptDto {
9314
- startedAt: Date;
9315
- errorType?: SchemaCreatorParseErrorTypeDto | null;
9316
- errorMessage?: string | null;
9317
- }
9318
- export type SchemaCreatorParseErrorTypeDto = "Timeout" | "ParseError";
9319
- export interface SchemaCreatorAuditInfoDto {
9320
- objectId: string;
9321
- userId: string;
9322
- userFullName?: string | null;
9323
- }
9324
- export interface SchemaCreatorDocumentParseStatusDto {
9325
- inProgress: boolean;
9326
- attempt?: SchemaCreatorParseAttemptDto | null;
9327
- }
9328
- export interface RenderSchemaCreatorElementSnipImageRequest {
9329
- pageIndex: number;
9330
- snip: SchemaCreatorSnipDto;
9331
- }
9332
9157
  export interface MeasurementFormSchemaDto {
9333
9158
  id: string;
9334
9159
  versionId: number;
@@ -9360,7 +9185,9 @@ export interface MeasurementFormSchemaDto {
9360
9185
  }
9361
9186
  export type MeasurementFormStatus = "Draft" | "Released" | "Revoked";
9362
9187
  export type MeasurementFormSource = "Unknown" | "InspectionXpert" | "Excel" | "Manual";
9188
+ export type UnitOfMeasureDto = "Millimeter" | "Inch";
9363
9189
  export type DimensionSettingDto = "Tolerance" | "MinMaxDimension";
9190
+ export type GeneralToleranceDto = "NotSet" | "Fine" | "Medium" | "Coarse" | "VeryCoarse";
9364
9191
  export interface MeasurementFormSchemaAttachmentDto {
9365
9192
  url: string;
9366
9193
  title: string;
@@ -9409,6 +9236,7 @@ export interface MeasurementFormGroupedElementDto {
9409
9236
  isValid: boolean;
9410
9237
  validationErrorMessage?: string | null;
9411
9238
  }
9239
+ export type MeasurementFrequency = "All" | "FirstArticle" | "NFirst" | "NPercent" | "ISO2859" | "Nth" | "FirstAndLast" | "None";
9412
9240
  export type MeasurementFormValueType = "None" | "Bool" | "Decimal" | "String";
9413
9241
  export type BonusType = "None" | "Positive" | "PositiveAndNegative";
9414
9242
  export interface MeasurementFormLinkedSchemaDto {
@@ -9514,6 +9342,10 @@ export interface UpdateSchemaSettingsRequest {
9514
9342
  dimensionSetting: DimensionSettingDto;
9515
9343
  generalTolerance: GeneralToleranceDto;
9516
9344
  }
9345
+ export interface UploadDrawingRequest {
9346
+ uploadKey: string;
9347
+ filename: string;
9348
+ }
9517
9349
  export interface UploadRequest {
9518
9350
  uploadKey: string;
9519
9351
  filename: string;
@@ -9692,10 +9524,6 @@ export interface MeasurementFormSchemaNotNeededDto {
9692
9524
  export interface SetMeasurementFormNeedAsNotNeededRequest {
9693
9525
  comment?: string | null;
9694
9526
  }
9695
- export interface UploadDrawingRequest {
9696
- uploadKey: string;
9697
- filename: string;
9698
- }
9699
9527
  export interface PagedResultOfMeasurementFormSchemaNotNeededDto {
9700
9528
  results: MeasurementFormSchemaNotNeededDto[];
9701
9529
  continuationToken?: string | null;
@@ -23815,329 +23815,6 @@ export class InspectMatchSpecificationsClient extends AuthorizedApiBase {
23815
23815
  return Promise.resolve(null);
23816
23816
  }
23817
23817
  }
23818
- export class InspectSchemaCreatorClient extends AuthorizedApiBase {
23819
- constructor(configuration, baseUrl, http) {
23820
- super(configuration);
23821
- this.http = http ? http : window;
23822
- this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
23823
- }
23824
- getSchemaCreatorState(id) {
23825
- let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate";
23826
- if (id === undefined || id === null)
23827
- throw new globalThis.Error("The parameter 'id' must be defined.");
23828
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
23829
- url_ = url_.replace(/[?&]$/, "");
23830
- let options_ = {
23831
- method: "GET",
23832
- headers: {
23833
- "Accept": "application/json"
23834
- }
23835
- };
23836
- return this.transformOptions(options_).then(transformedOptions_ => {
23837
- return this.http.fetch(url_, transformedOptions_);
23838
- }).then((_response) => {
23839
- return this.processGetSchemaCreatorState(_response);
23840
- });
23841
- }
23842
- processGetSchemaCreatorState(response) {
23843
- const status = response.status;
23844
- let _headers = {};
23845
- if (response.headers && response.headers.forEach) {
23846
- response.headers.forEach((v, k) => _headers[k] = v);
23847
- }
23848
- ;
23849
- if (status === 200) {
23850
- return response.text().then((_responseText) => {
23851
- let result200 = null;
23852
- result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
23853
- return result200;
23854
- });
23855
- }
23856
- else if (status !== 200 && status !== 204) {
23857
- return response.text().then((_responseText) => {
23858
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
23859
- });
23860
- }
23861
- return Promise.resolve(null);
23862
- }
23863
- /**
23864
- * Creates the initial creator state for a schema version. Returns 409 if
23865
- state already exists; the caller should re-fetch it instead of writing.
23866
- */
23867
- createSchemaCreatorState(id, state) {
23868
- let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate";
23869
- if (id === undefined || id === null)
23870
- throw new globalThis.Error("The parameter 'id' must be defined.");
23871
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
23872
- url_ = url_.replace(/[?&]$/, "");
23873
- const content_ = JSON.stringify(state);
23874
- let options_ = {
23875
- body: content_,
23876
- method: "POST",
23877
- headers: {
23878
- "Content-Type": "application/json",
23879
- "Accept": "application/json"
23880
- }
23881
- };
23882
- return this.transformOptions(options_).then(transformedOptions_ => {
23883
- return this.http.fetch(url_, transformedOptions_);
23884
- }).then((_response) => {
23885
- return this.processCreateSchemaCreatorState(_response);
23886
- });
23887
- }
23888
- processCreateSchemaCreatorState(response) {
23889
- const status = response.status;
23890
- let _headers = {};
23891
- if (response.headers && response.headers.forEach) {
23892
- response.headers.forEach((v, k) => _headers[k] = v);
23893
- }
23894
- ;
23895
- if (status === 201) {
23896
- return response.text().then((_responseText) => {
23897
- let result201 = null;
23898
- result201 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
23899
- return result201;
23900
- });
23901
- }
23902
- else if (status === 409) {
23903
- return response.text().then((_responseText) => {
23904
- let result409 = null;
23905
- result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
23906
- return throwException("A server side error occurred.", status, _responseText, _headers, result409);
23907
- });
23908
- }
23909
- else if (status !== 200 && status !== 204) {
23910
- return response.text().then((_responseText) => {
23911
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
23912
- });
23913
- }
23914
- return Promise.resolve(null);
23915
- }
23916
- updateSchemaCreatorState(id, state) {
23917
- let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate";
23918
- if (id === undefined || id === null)
23919
- throw new globalThis.Error("The parameter 'id' must be defined.");
23920
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
23921
- url_ = url_.replace(/[?&]$/, "");
23922
- const content_ = JSON.stringify(state);
23923
- let options_ = {
23924
- body: content_,
23925
- method: "PUT",
23926
- headers: {
23927
- "Content-Type": "application/json",
23928
- "Accept": "application/json"
23929
- }
23930
- };
23931
- return this.transformOptions(options_).then(transformedOptions_ => {
23932
- return this.http.fetch(url_, transformedOptions_);
23933
- }).then((_response) => {
23934
- return this.processUpdateSchemaCreatorState(_response);
23935
- });
23936
- }
23937
- processUpdateSchemaCreatorState(response) {
23938
- const status = response.status;
23939
- let _headers = {};
23940
- if (response.headers && response.headers.forEach) {
23941
- response.headers.forEach((v, k) => _headers[k] = v);
23942
- }
23943
- ;
23944
- if (status === 200) {
23945
- return response.text().then((_responseText) => {
23946
- let result200 = null;
23947
- result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
23948
- return result200;
23949
- });
23950
- }
23951
- else if (status !== 200 && status !== 204) {
23952
- return response.text().then((_responseText) => {
23953
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
23954
- });
23955
- }
23956
- return Promise.resolve(null);
23957
- }
23958
- /**
23959
- * Starts a full drawing AI parse: clears every element and locks the
23960
- schema for every viewer until it completes. If one is already in
23961
- progress, returns that instead of starting a second one.
23962
- */
23963
- requestSchemaCreatorDocumentParse(id) {
23964
- let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate/parse-document";
23965
- if (id === undefined || id === null)
23966
- throw new globalThis.Error("The parameter 'id' must be defined.");
23967
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
23968
- url_ = url_.replace(/[?&]$/, "");
23969
- let options_ = {
23970
- method: "POST",
23971
- headers: {
23972
- "Accept": "application/json"
23973
- }
23974
- };
23975
- return this.transformOptions(options_).then(transformedOptions_ => {
23976
- return this.http.fetch(url_, transformedOptions_);
23977
- }).then((_response) => {
23978
- return this.processRequestSchemaCreatorDocumentParse(_response);
23979
- });
23980
- }
23981
- processRequestSchemaCreatorDocumentParse(response) {
23982
- const status = response.status;
23983
- let _headers = {};
23984
- if (response.headers && response.headers.forEach) {
23985
- response.headers.forEach((v, k) => _headers[k] = v);
23986
- }
23987
- ;
23988
- if (status === 200) {
23989
- return response.text().then((_responseText) => {
23990
- let result200 = null;
23991
- result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
23992
- return result200;
23993
- });
23994
- }
23995
- else if (status !== 200 && status !== 204) {
23996
- return response.text().then((_responseText) => {
23997
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
23998
- });
23999
- }
24000
- return Promise.resolve(null);
24001
- }
24002
- /**
24003
- * Stamps the creator state's balloons onto the schema's drawing PDF and
24004
- returns a temporary download link.
24005
- */
24006
- exportSchemaCreatorDrawing(id) {
24007
- let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate/download";
24008
- if (id === undefined || id === null)
24009
- throw new globalThis.Error("The parameter 'id' must be defined.");
24010
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
24011
- url_ = url_.replace(/[?&]$/, "");
24012
- let options_ = {
24013
- method: "POST",
24014
- headers: {
24015
- "Accept": "application/json"
24016
- }
24017
- };
24018
- return this.transformOptions(options_).then(transformedOptions_ => {
24019
- return this.http.fetch(url_, transformedOptions_);
24020
- }).then((_response) => {
24021
- return this.processExportSchemaCreatorDrawing(_response);
24022
- });
24023
- }
24024
- processExportSchemaCreatorDrawing(response) {
24025
- const status = response.status;
24026
- let _headers = {};
24027
- if (response.headers && response.headers.forEach) {
24028
- response.headers.forEach((v, k) => _headers[k] = v);
24029
- }
24030
- ;
24031
- if (status === 200) {
24032
- return response.text().then((_responseText) => {
24033
- let result200 = null;
24034
- result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
24035
- return result200;
24036
- });
24037
- }
24038
- else if (status !== 200 && status !== 204) {
24039
- return response.text().then((_responseText) => {
24040
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
24041
- });
24042
- }
24043
- return Promise.resolve(null);
24044
- }
24045
- /**
24046
- * Starts an async snip resolve; the result is delivered through the
24047
- SchemaCreatorSnipResolved SignalR notification.
24048
- * @param image (optional)
24049
- */
24050
- requestSchemaCreatorSnipParse(id, elementId, image) {
24051
- let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate/elements/{elementId}/parse-snip";
24052
- if (id === undefined || id === null)
24053
- throw new globalThis.Error("The parameter 'id' must be defined.");
24054
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
24055
- if (elementId === undefined || elementId === null)
24056
- throw new globalThis.Error("The parameter 'elementId' must be defined.");
24057
- url_ = url_.replace("{elementId}", encodeURIComponent("" + elementId));
24058
- url_ = url_.replace(/[?&]$/, "");
24059
- const content_ = new FormData();
24060
- if (image !== null && image !== undefined)
24061
- content_.append("image", image.data, image.fileName ? image.fileName : "image");
24062
- let options_ = {
24063
- body: content_,
24064
- method: "POST",
24065
- headers: {}
24066
- };
24067
- return this.transformOptions(options_).then(transformedOptions_ => {
24068
- return this.http.fetch(url_, transformedOptions_);
24069
- }).then((_response) => {
24070
- return this.processRequestSchemaCreatorSnipParse(_response);
24071
- });
24072
- }
24073
- processRequestSchemaCreatorSnipParse(response) {
24074
- const status = response.status;
24075
- let _headers = {};
24076
- if (response.headers && response.headers.forEach) {
24077
- response.headers.forEach((v, k) => _headers[k] = v);
24078
- }
24079
- ;
24080
- if (status === 200) {
24081
- return response.text().then((_responseText) => {
24082
- return;
24083
- });
24084
- }
24085
- else if (status !== 200 && status !== 204) {
24086
- return response.text().then((_responseText) => {
24087
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
24088
- });
24089
- }
24090
- return Promise.resolve(null);
24091
- }
24092
- /**
24093
- * Renders the legacy-format image for one element's current snip.
24094
- Fire-and-forget from the client on every snip commit - the resulting
24095
- image isn't returned here, it's only ever read back once the schema
24096
- is released (SchemaCreatorLegacyMapper).
24097
- */
24098
- renderSchemaCreatorElementSnipImage(id, elementId, request) {
24099
- let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate/elements/{elementId}/snip-image";
24100
- if (id === undefined || id === null)
24101
- throw new globalThis.Error("The parameter 'id' must be defined.");
24102
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
24103
- if (elementId === undefined || elementId === null)
24104
- throw new globalThis.Error("The parameter 'elementId' must be defined.");
24105
- url_ = url_.replace("{elementId}", encodeURIComponent("" + elementId));
24106
- url_ = url_.replace(/[?&]$/, "");
24107
- const content_ = JSON.stringify(request);
24108
- let options_ = {
24109
- body: content_,
24110
- method: "POST",
24111
- headers: {
24112
- "Content-Type": "application/json",
24113
- }
24114
- };
24115
- return this.transformOptions(options_).then(transformedOptions_ => {
24116
- return this.http.fetch(url_, transformedOptions_);
24117
- }).then((_response) => {
24118
- return this.processRenderSchemaCreatorElementSnipImage(_response);
24119
- });
24120
- }
24121
- processRenderSchemaCreatorElementSnipImage(response) {
24122
- const status = response.status;
24123
- let _headers = {};
24124
- if (response.headers && response.headers.forEach) {
24125
- response.headers.forEach((v, k) => _headers[k] = v);
24126
- }
24127
- ;
24128
- if (status === 200) {
24129
- return response.text().then((_responseText) => {
24130
- return;
24131
- });
24132
- }
24133
- else if (status !== 200 && status !== 204) {
24134
- return response.text().then((_responseText) => {
24135
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
24136
- });
24137
- }
24138
- return Promise.resolve(null);
24139
- }
24140
- }
24141
23818
  export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase {
24142
23819
  constructor(configuration, baseUrl, http) {
24143
23820
  super(configuration);
@@ -24551,8 +24228,8 @@ export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase {
24551
24228
  }
24552
24229
  return Promise.resolve(null);
24553
24230
  }
24554
- uploadSchemaMarkedDrawing(id, request) {
24555
- let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploadmarkeddrawing";
24231
+ uploadSchemaDrawing(id, request) {
24232
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploaddrawing";
24556
24233
  if (id === undefined || id === null)
24557
24234
  throw new globalThis.Error("The parameter 'id' must be defined.");
24558
24235
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
@@ -24569,10 +24246,10 @@ export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase {
24569
24246
  return this.transformOptions(options_).then(transformedOptions_ => {
24570
24247
  return this.http.fetch(url_, transformedOptions_);
24571
24248
  }).then((_response) => {
24572
- return this.processUploadSchemaMarkedDrawing(_response);
24249
+ return this.processUploadSchemaDrawing(_response);
24573
24250
  });
24574
24251
  }
24575
- processUploadSchemaMarkedDrawing(response) {
24252
+ processUploadSchemaDrawing(response) {
24576
24253
  const status = response.status;
24577
24254
  let _headers = {};
24578
24255
  if (response.headers && response.headers.forEach) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20260831.252.1-alpha",
3
+ "version": "20260831.253.1",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -25474,371 +25474,6 @@ export class InspectMatchSpecificationsClient extends AuthorizedApiBase implemen
25474
25474
  }
25475
25475
  }
25476
25476
 
25477
- export interface IInspectSchemaCreatorClient {
25478
-
25479
- getSchemaCreatorState(id: string): Promise<SchemaCreatorStateDto>;
25480
-
25481
- /**
25482
- * Creates the initial creator state for a schema version. Returns 409 if
25483
- state already exists; the caller should re-fetch it instead of writing.
25484
- */
25485
- createSchemaCreatorState(id: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto>;
25486
-
25487
- updateSchemaCreatorState(id: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto>;
25488
-
25489
- /**
25490
- * Starts a full drawing AI parse: clears every element and locks the
25491
- schema for every viewer until it completes. If one is already in
25492
- progress, returns that instead of starting a second one.
25493
- */
25494
- requestSchemaCreatorDocumentParse(id: string): Promise<SchemaCreatorStateDto>;
25495
-
25496
- /**
25497
- * Stamps the creator state's balloons onto the schema's drawing PDF and
25498
- returns a temporary download link.
25499
- */
25500
- exportSchemaCreatorDrawing(id: string): Promise<DownloadDto>;
25501
-
25502
- /**
25503
- * Starts an async snip resolve; the result is delivered through the
25504
- SchemaCreatorSnipResolved SignalR notification.
25505
- * @param image (optional)
25506
- */
25507
- requestSchemaCreatorSnipParse(id: string, elementId: string, image: FileParameter | null | undefined): Promise<void>;
25508
-
25509
- /**
25510
- * Renders the legacy-format image for one element's current snip.
25511
- Fire-and-forget from the client on every snip commit - the resulting
25512
- image isn't returned here, it's only ever read back once the schema
25513
- is released (SchemaCreatorLegacyMapper).
25514
- */
25515
- renderSchemaCreatorElementSnipImage(id: string, elementId: string, request: RenderSchemaCreatorElementSnipImageRequest): Promise<void>;
25516
- }
25517
-
25518
- export class InspectSchemaCreatorClient extends AuthorizedApiBase implements IInspectSchemaCreatorClient {
25519
- private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
25520
- private baseUrl: string;
25521
-
25522
- constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
25523
- super(configuration);
25524
- this.http = http ? http : window as any;
25525
- this.baseUrl = baseUrl ?? "";
25526
- }
25527
-
25528
- getSchemaCreatorState(id: string): Promise<SchemaCreatorStateDto> {
25529
- let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate";
25530
- if (id === undefined || id === null)
25531
- throw new globalThis.Error("The parameter 'id' must be defined.");
25532
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
25533
- url_ = url_.replace(/[?&]$/, "");
25534
-
25535
- let options_: RequestInit = {
25536
- method: "GET",
25537
- headers: {
25538
- "Accept": "application/json"
25539
- }
25540
- };
25541
-
25542
- return this.transformOptions(options_).then(transformedOptions_ => {
25543
- return this.http.fetch(url_, transformedOptions_);
25544
- }).then((_response: Response) => {
25545
- return this.processGetSchemaCreatorState(_response);
25546
- });
25547
- }
25548
-
25549
- protected processGetSchemaCreatorState(response: Response): Promise<SchemaCreatorStateDto> {
25550
- const status = response.status;
25551
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
25552
- if (status === 200) {
25553
- return response.text().then((_responseText) => {
25554
- let result200: any = null;
25555
- result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as SchemaCreatorStateDto;
25556
- return result200;
25557
- });
25558
- } else if (status !== 200 && status !== 204) {
25559
- return response.text().then((_responseText) => {
25560
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
25561
- });
25562
- }
25563
- return Promise.resolve<SchemaCreatorStateDto>(null as any);
25564
- }
25565
-
25566
- /**
25567
- * Creates the initial creator state for a schema version. Returns 409 if
25568
- state already exists; the caller should re-fetch it instead of writing.
25569
- */
25570
- createSchemaCreatorState(id: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto> {
25571
- let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate";
25572
- if (id === undefined || id === null)
25573
- throw new globalThis.Error("The parameter 'id' must be defined.");
25574
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
25575
- url_ = url_.replace(/[?&]$/, "");
25576
-
25577
- const content_ = JSON.stringify(state);
25578
-
25579
- let options_: RequestInit = {
25580
- body: content_,
25581
- method: "POST",
25582
- headers: {
25583
- "Content-Type": "application/json",
25584
- "Accept": "application/json"
25585
- }
25586
- };
25587
-
25588
- return this.transformOptions(options_).then(transformedOptions_ => {
25589
- return this.http.fetch(url_, transformedOptions_);
25590
- }).then((_response: Response) => {
25591
- return this.processCreateSchemaCreatorState(_response);
25592
- });
25593
- }
25594
-
25595
- protected processCreateSchemaCreatorState(response: Response): Promise<SchemaCreatorStateDto> {
25596
- const status = response.status;
25597
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
25598
- if (status === 201) {
25599
- return response.text().then((_responseText) => {
25600
- let result201: any = null;
25601
- result201 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as SchemaCreatorStateDto;
25602
- return result201;
25603
- });
25604
- } else if (status === 409) {
25605
- return response.text().then((_responseText) => {
25606
- let result409: any = null;
25607
- result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ProblemDetails;
25608
- return throwException("A server side error occurred.", status, _responseText, _headers, result409);
25609
- });
25610
- } else if (status !== 200 && status !== 204) {
25611
- return response.text().then((_responseText) => {
25612
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
25613
- });
25614
- }
25615
- return Promise.resolve<SchemaCreatorStateDto>(null as any);
25616
- }
25617
-
25618
- updateSchemaCreatorState(id: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto> {
25619
- let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate";
25620
- if (id === undefined || id === null)
25621
- throw new globalThis.Error("The parameter 'id' must be defined.");
25622
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
25623
- url_ = url_.replace(/[?&]$/, "");
25624
-
25625
- const content_ = JSON.stringify(state);
25626
-
25627
- let options_: RequestInit = {
25628
- body: content_,
25629
- method: "PUT",
25630
- headers: {
25631
- "Content-Type": "application/json",
25632
- "Accept": "application/json"
25633
- }
25634
- };
25635
-
25636
- return this.transformOptions(options_).then(transformedOptions_ => {
25637
- return this.http.fetch(url_, transformedOptions_);
25638
- }).then((_response: Response) => {
25639
- return this.processUpdateSchemaCreatorState(_response);
25640
- });
25641
- }
25642
-
25643
- protected processUpdateSchemaCreatorState(response: Response): Promise<SchemaCreatorStateDto> {
25644
- const status = response.status;
25645
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
25646
- if (status === 200) {
25647
- return response.text().then((_responseText) => {
25648
- let result200: any = null;
25649
- result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as SchemaCreatorStateDto;
25650
- return result200;
25651
- });
25652
- } else if (status !== 200 && status !== 204) {
25653
- return response.text().then((_responseText) => {
25654
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
25655
- });
25656
- }
25657
- return Promise.resolve<SchemaCreatorStateDto>(null as any);
25658
- }
25659
-
25660
- /**
25661
- * Starts a full drawing AI parse: clears every element and locks the
25662
- schema for every viewer until it completes. If one is already in
25663
- progress, returns that instead of starting a second one.
25664
- */
25665
- requestSchemaCreatorDocumentParse(id: string): Promise<SchemaCreatorStateDto> {
25666
- let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate/parse-document";
25667
- if (id === undefined || id === null)
25668
- throw new globalThis.Error("The parameter 'id' must be defined.");
25669
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
25670
- url_ = url_.replace(/[?&]$/, "");
25671
-
25672
- let options_: RequestInit = {
25673
- method: "POST",
25674
- headers: {
25675
- "Accept": "application/json"
25676
- }
25677
- };
25678
-
25679
- return this.transformOptions(options_).then(transformedOptions_ => {
25680
- return this.http.fetch(url_, transformedOptions_);
25681
- }).then((_response: Response) => {
25682
- return this.processRequestSchemaCreatorDocumentParse(_response);
25683
- });
25684
- }
25685
-
25686
- protected processRequestSchemaCreatorDocumentParse(response: Response): Promise<SchemaCreatorStateDto> {
25687
- const status = response.status;
25688
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
25689
- if (status === 200) {
25690
- return response.text().then((_responseText) => {
25691
- let result200: any = null;
25692
- result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as SchemaCreatorStateDto;
25693
- return result200;
25694
- });
25695
- } else if (status !== 200 && status !== 204) {
25696
- return response.text().then((_responseText) => {
25697
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
25698
- });
25699
- }
25700
- return Promise.resolve<SchemaCreatorStateDto>(null as any);
25701
- }
25702
-
25703
- /**
25704
- * Stamps the creator state's balloons onto the schema's drawing PDF and
25705
- returns a temporary download link.
25706
- */
25707
- exportSchemaCreatorDrawing(id: string): Promise<DownloadDto> {
25708
- let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate/download";
25709
- if (id === undefined || id === null)
25710
- throw new globalThis.Error("The parameter 'id' must be defined.");
25711
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
25712
- url_ = url_.replace(/[?&]$/, "");
25713
-
25714
- let options_: RequestInit = {
25715
- method: "POST",
25716
- headers: {
25717
- "Accept": "application/json"
25718
- }
25719
- };
25720
-
25721
- return this.transformOptions(options_).then(transformedOptions_ => {
25722
- return this.http.fetch(url_, transformedOptions_);
25723
- }).then((_response: Response) => {
25724
- return this.processExportSchemaCreatorDrawing(_response);
25725
- });
25726
- }
25727
-
25728
- protected processExportSchemaCreatorDrawing(response: Response): Promise<DownloadDto> {
25729
- const status = response.status;
25730
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
25731
- if (status === 200) {
25732
- return response.text().then((_responseText) => {
25733
- let result200: any = null;
25734
- result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as DownloadDto;
25735
- return result200;
25736
- });
25737
- } else if (status !== 200 && status !== 204) {
25738
- return response.text().then((_responseText) => {
25739
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
25740
- });
25741
- }
25742
- return Promise.resolve<DownloadDto>(null as any);
25743
- }
25744
-
25745
- /**
25746
- * Starts an async snip resolve; the result is delivered through the
25747
- SchemaCreatorSnipResolved SignalR notification.
25748
- * @param image (optional)
25749
- */
25750
- requestSchemaCreatorSnipParse(id: string, elementId: string, image: FileParameter | null | undefined): Promise<void> {
25751
- let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate/elements/{elementId}/parse-snip";
25752
- if (id === undefined || id === null)
25753
- throw new globalThis.Error("The parameter 'id' must be defined.");
25754
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
25755
- if (elementId === undefined || elementId === null)
25756
- throw new globalThis.Error("The parameter 'elementId' must be defined.");
25757
- url_ = url_.replace("{elementId}", encodeURIComponent("" + elementId));
25758
- url_ = url_.replace(/[?&]$/, "");
25759
-
25760
- const content_ = new FormData();
25761
- if (image !== null && image !== undefined)
25762
- content_.append("image", image.data, image.fileName ? image.fileName : "image");
25763
-
25764
- let options_: RequestInit = {
25765
- body: content_,
25766
- method: "POST",
25767
- headers: {
25768
- }
25769
- };
25770
-
25771
- return this.transformOptions(options_).then(transformedOptions_ => {
25772
- return this.http.fetch(url_, transformedOptions_);
25773
- }).then((_response: Response) => {
25774
- return this.processRequestSchemaCreatorSnipParse(_response);
25775
- });
25776
- }
25777
-
25778
- protected processRequestSchemaCreatorSnipParse(response: Response): Promise<void> {
25779
- const status = response.status;
25780
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
25781
- if (status === 200) {
25782
- return response.text().then((_responseText) => {
25783
- return;
25784
- });
25785
- } else if (status !== 200 && status !== 204) {
25786
- return response.text().then((_responseText) => {
25787
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
25788
- });
25789
- }
25790
- return Promise.resolve<void>(null as any);
25791
- }
25792
-
25793
- /**
25794
- * Renders the legacy-format image for one element's current snip.
25795
- Fire-and-forget from the client on every snip commit - the resulting
25796
- image isn't returned here, it's only ever read back once the schema
25797
- is released (SchemaCreatorLegacyMapper).
25798
- */
25799
- renderSchemaCreatorElementSnipImage(id: string, elementId: string, request: RenderSchemaCreatorElementSnipImageRequest): Promise<void> {
25800
- let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate/elements/{elementId}/snip-image";
25801
- if (id === undefined || id === null)
25802
- throw new globalThis.Error("The parameter 'id' must be defined.");
25803
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
25804
- if (elementId === undefined || elementId === null)
25805
- throw new globalThis.Error("The parameter 'elementId' must be defined.");
25806
- url_ = url_.replace("{elementId}", encodeURIComponent("" + elementId));
25807
- url_ = url_.replace(/[?&]$/, "");
25808
-
25809
- const content_ = JSON.stringify(request);
25810
-
25811
- let options_: RequestInit = {
25812
- body: content_,
25813
- method: "POST",
25814
- headers: {
25815
- "Content-Type": "application/json",
25816
- }
25817
- };
25818
-
25819
- return this.transformOptions(options_).then(transformedOptions_ => {
25820
- return this.http.fetch(url_, transformedOptions_);
25821
- }).then((_response: Response) => {
25822
- return this.processRenderSchemaCreatorElementSnipImage(_response);
25823
- });
25824
- }
25825
-
25826
- protected processRenderSchemaCreatorElementSnipImage(response: Response): Promise<void> {
25827
- const status = response.status;
25828
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
25829
- if (status === 200) {
25830
- return response.text().then((_responseText) => {
25831
- return;
25832
- });
25833
- } else if (status !== 200 && status !== 204) {
25834
- return response.text().then((_responseText) => {
25835
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
25836
- });
25837
- }
25838
- return Promise.resolve<void>(null as any);
25839
- }
25840
- }
25841
-
25842
25477
  export interface IMeasurementFormSchemasAdminClient {
25843
25478
 
25844
25479
  getArchivedMeasurementFormSchema(id: string): Promise<MeasurementFormSchemaDto>;
@@ -25861,7 +25496,7 @@ export interface IMeasurementFormSchemasAdminClient {
25861
25496
 
25862
25497
  updateSchemaSettings(id: string, request: UpdateSchemaSettingsRequest): Promise<UpdateSchemaSettingsRequest>;
25863
25498
 
25864
- uploadSchemaMarkedDrawing(id: string, request: UploadRequest): Promise<MeasurementFormSchemaDto>;
25499
+ uploadSchemaDrawing(id: string, request: UploadDrawingRequest): Promise<MeasurementFormSchemaDto>;
25865
25500
 
25866
25501
  uploadSchemaAttachment(id: string, request: UploadRequest): Promise<MeasurementFormSchemaDto>;
25867
25502
 
@@ -26375,8 +26010,8 @@ export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase impleme
26375
26010
  return Promise.resolve<UpdateSchemaSettingsRequest>(null as any);
26376
26011
  }
26377
26012
 
26378
- uploadSchemaMarkedDrawing(id: string, request: UploadRequest): Promise<MeasurementFormSchemaDto> {
26379
- let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploadmarkeddrawing";
26013
+ uploadSchemaDrawing(id: string, request: UploadDrawingRequest): Promise<MeasurementFormSchemaDto> {
26014
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploaddrawing";
26380
26015
  if (id === undefined || id === null)
26381
26016
  throw new globalThis.Error("The parameter 'id' must be defined.");
26382
26017
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
@@ -26396,11 +26031,11 @@ export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase impleme
26396
26031
  return this.transformOptions(options_).then(transformedOptions_ => {
26397
26032
  return this.http.fetch(url_, transformedOptions_);
26398
26033
  }).then((_response: Response) => {
26399
- return this.processUploadSchemaMarkedDrawing(_response);
26034
+ return this.processUploadSchemaDrawing(_response);
26400
26035
  });
26401
26036
  }
26402
26037
 
26403
- protected processUploadSchemaMarkedDrawing(response: Response): Promise<MeasurementFormSchemaDto> {
26038
+ protected processUploadSchemaDrawing(response: Response): Promise<MeasurementFormSchemaDto> {
26404
26039
  const status = response.status;
26405
26040
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
26406
26041
  if (status === 200) {
@@ -37440,7 +37075,8 @@ export interface ImaImpactTestResultDto {
37440
37075
  sampleReference?: string | null;
37441
37076
  orientation?: string | null;
37442
37077
  testLocation?: string | null;
37443
- temperature?: ImaSpecificationResultLineDto | null;
37078
+ temperature?: number | null;
37079
+ temperatureUnit?: string | null;
37444
37080
  roomTemperature?: boolean | null;
37445
37081
  testLabel?: string | null;
37446
37082
  notchType?: string | null;
@@ -37700,7 +37336,7 @@ export interface ImaOverrideImpactTestResultsDto {
37700
37336
  heatNumber?: string | null;
37701
37337
  sampleReference?: string | null;
37702
37338
  orientation?: string | null;
37703
- temperature?: ImaOverrideUpdateMaterialCheckResultLineDto | null;
37339
+ temperature?: number | null;
37704
37340
  reportedAverage?: ImaOverrideUpdateMaterialCheckResultLineDto | null;
37705
37341
  individualValues?: ImaOverrideIndexedResultLineDto[] | null;
37706
37342
  }
@@ -38042,7 +37678,7 @@ export interface ImaChemistryCompositeSpecificationDto {
38042
37678
  export interface ImaMechanicalSpecificationDto {
38043
37679
  tensile?: ImaTensileSpecificationDto | null;
38044
37680
  hardness?: ImaHardnessSpecificationDto | null;
38045
- impact?: ImaImpactSpecificationDto | null;
37681
+ impactTests?: ImaImpactSpecificationDto[] | null;
38046
37682
  }
38047
37683
 
38048
37684
  export interface ImaTensileSpecificationDto {
@@ -38058,7 +37694,8 @@ export interface ImaHardnessSpecificationDto {
38058
37694
  }
38059
37695
 
38060
37696
  export interface ImaImpactSpecificationDto {
38061
- temperature?: ImaSpecificationLineDto | null;
37697
+ temperature?: number | null;
37698
+ temperatureUnit?: ImaUnitDto | null;
38062
37699
  minimum?: ImaSpecificationLineDto | null;
38063
37700
  average?: ImaSpecificationLineDto | null;
38064
37701
  }
@@ -38148,125 +37785,6 @@ export interface ImaSpecificationLiteDto {
38148
37785
  isDeleted: boolean;
38149
37786
  }
38150
37787
 
38151
- export interface SchemaCreatorStateDto {
38152
- settings: SchemaCreatorSettingsDto;
38153
- elements: SchemaCreatorElementDto[];
38154
- documentParseStatus?: SchemaCreatorDocumentParseStatusDto | null;
38155
- isAutoGenerated?: boolean;
38156
- createdBy?: SchemaCreatorAuditInfoDto | null;
38157
- createdAt?: Date | null;
38158
- updatedBy?: SchemaCreatorAuditInfoDto | null;
38159
- updatedAt?: Date | null;
38160
- }
38161
-
38162
- export interface SchemaCreatorSettingsDto {
38163
- unit?: SchemaCreatorUnitOfMeasureDto;
38164
- tolerance?: GeneralToleranceDto;
38165
- balloonSize?: number;
38166
- transparentBalloons?: boolean;
38167
- }
38168
-
38169
- export type SchemaCreatorUnitOfMeasureDto = "Millimeter" | "Inch" | "Mixed";
38170
-
38171
- export type GeneralToleranceDto = "NotSet" | "Fine" | "Medium" | "Coarse" | "VeryCoarse";
38172
-
38173
- export interface SchemaCreatorElementDto {
38174
- id: string;
38175
- kind: SchemaCreatorElementKindDto;
38176
- drawings: SchemaCreatorElementDrawingsDto;
38177
- isDirty?: boolean | null;
38178
- values?: SchemaCreatorElementValuesDto | null;
38179
- parseResult?: SchemaCreatorSnipResultDto | null;
38180
- resolveAttempt?: SchemaCreatorParseAttemptDto | null;
38181
- createdBy?: SchemaCreatorAuditInfoDto | null;
38182
- createdAt?: Date | null;
38183
- updatedBy?: SchemaCreatorAuditInfoDto | null;
38184
- updatedAt?: Date | null;
38185
- }
38186
-
38187
- export type SchemaCreatorElementKindDto = "Pending" | "Auto" | "Manual";
38188
-
38189
- export interface SchemaCreatorElementDrawingsDto {
38190
- snip: SchemaCreatorSnipDto;
38191
- balloon: SchemaCreatorPointDto;
38192
- pageIndex: number;
38193
- }
38194
-
38195
- export interface SchemaCreatorSnipDto {
38196
- rect: SchemaCreatorRectDto;
38197
- rotation?: number | null;
38198
- unrotatedRect?: SchemaCreatorRectDto | null;
38199
- }
38200
-
38201
- export interface SchemaCreatorRectDto {
38202
- origin: SchemaCreatorPointDto;
38203
- size: SchemaCreatorSizeDto;
38204
- }
38205
-
38206
- export interface SchemaCreatorPointDto {
38207
- x: number;
38208
- y: number;
38209
- }
38210
-
38211
- export interface SchemaCreatorSizeDto {
38212
- width: number;
38213
- height: number;
38214
- }
38215
-
38216
- export interface SchemaCreatorElementValuesDto {
38217
- reference: number;
38218
- unit?: UnitOfMeasureDto | null;
38219
- nominal?: number | null;
38220
- nominalText?: string | null;
38221
- plusTolerance?: number | null;
38222
- minusTolerance?: number | null;
38223
- coatingThickness?: number | null;
38224
- measurementFrequency: MeasurementFrequency;
38225
- measurementFrequencyParameter?: number | null;
38226
- type?: string | null;
38227
- count?: number | null;
38228
- comment?: string | null;
38229
- canCopy: boolean;
38230
- visibleToCustomer: boolean;
38231
- isDocumentedExternally: boolean;
38232
- }
38233
-
38234
- export type UnitOfMeasureDto = "Millimeter" | "Inch";
38235
-
38236
- export type MeasurementFrequency = "All" | "FirstArticle" | "NFirst" | "NPercent" | "ISO2859" | "Nth" | "FirstAndLast" | "None";
38237
-
38238
- export interface SchemaCreatorSnipResultDto {
38239
- nominal?: number | null;
38240
- nominalText?: string | null;
38241
- plusTolerance?: number | null;
38242
- minusTolerance?: number | null;
38243
- count?: number | null;
38244
- }
38245
-
38246
- export interface SchemaCreatorParseAttemptDto {
38247
- startedAt: Date;
38248
- errorType?: SchemaCreatorParseErrorTypeDto | null;
38249
- errorMessage?: string | null;
38250
- }
38251
-
38252
- export type SchemaCreatorParseErrorTypeDto = "Timeout" | "ParseError";
38253
-
38254
- export interface SchemaCreatorAuditInfoDto {
38255
- objectId: string;
38256
- userId: string;
38257
- userFullName?: string | null;
38258
- }
38259
-
38260
- export interface SchemaCreatorDocumentParseStatusDto {
38261
- inProgress: boolean;
38262
- attempt?: SchemaCreatorParseAttemptDto | null;
38263
- }
38264
-
38265
- export interface RenderSchemaCreatorElementSnipImageRequest {
38266
- pageIndex: number;
38267
- snip: SchemaCreatorSnipDto;
38268
- }
38269
-
38270
37788
  export interface MeasurementFormSchemaDto {
38271
37789
  id: string;
38272
37790
  versionId: number;
@@ -38301,8 +37819,12 @@ export type MeasurementFormStatus = "Draft" | "Released" | "Revoked";
38301
37819
 
38302
37820
  export type MeasurementFormSource = "Unknown" | "InspectionXpert" | "Excel" | "Manual";
38303
37821
 
37822
+ export type UnitOfMeasureDto = "Millimeter" | "Inch";
37823
+
38304
37824
  export type DimensionSettingDto = "Tolerance" | "MinMaxDimension";
38305
37825
 
37826
+ export type GeneralToleranceDto = "NotSet" | "Fine" | "Medium" | "Coarse" | "VeryCoarse";
37827
+
38306
37828
  export interface MeasurementFormSchemaAttachmentDto {
38307
37829
  url: string;
38308
37830
  title: string;
@@ -38353,6 +37875,8 @@ export interface MeasurementFormGroupedElementDto {
38353
37875
  validationErrorMessage?: string | null;
38354
37876
  }
38355
37877
 
37878
+ export type MeasurementFrequency = "All" | "FirstArticle" | "NFirst" | "NPercent" | "ISO2859" | "Nth" | "FirstAndLast" | "None";
37879
+
38356
37880
  export type MeasurementFormValueType = "None" | "Bool" | "Decimal" | "String";
38357
37881
 
38358
37882
  export type BonusType = "None" | "Positive" | "PositiveAndNegative";
@@ -38471,6 +37995,11 @@ export interface UpdateSchemaSettingsRequest {
38471
37995
  generalTolerance: GeneralToleranceDto;
38472
37996
  }
38473
37997
 
37998
+ export interface UploadDrawingRequest {
37999
+ uploadKey: string;
38000
+ filename: string;
38001
+ }
38002
+
38474
38003
  export interface UploadRequest {
38475
38004
  uploadKey: string;
38476
38005
  filename: string;
@@ -38671,11 +38200,6 @@ export interface SetMeasurementFormNeedAsNotNeededRequest {
38671
38200
  comment?: string | null;
38672
38201
  }
38673
38202
 
38674
- export interface UploadDrawingRequest {
38675
- uploadKey: string;
38676
- filename: string;
38677
- }
38678
-
38679
38203
  export interface PagedResultOfMeasurementFormSchemaNotNeededDto {
38680
38204
  results: MeasurementFormSchemaNotNeededDto[];
38681
38205
  continuationToken?: string | null;