@ignos/api-client 20260831.251.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>;
@@ -7542,6 +7464,7 @@ export interface PlannerOperationDto {
7542
7464
  drawingNumber?: string | null;
7543
7465
  description?: string | null;
7544
7466
  disableSetupRegistration?: boolean;
7467
+ sequenceNumber: number;
7545
7468
  lockType: PlannerLockType;
7546
7469
  isNewOperation: boolean;
7547
7470
  weekGroup: string;
@@ -8598,7 +8521,8 @@ export interface ImaImpactTestResultDto {
8598
8521
  sampleReference?: string | null;
8599
8522
  orientation?: string | null;
8600
8523
  testLocation?: string | null;
8601
- temperature?: ImaSpecificationResultLineDto | null;
8524
+ temperature?: number | null;
8525
+ temperatureUnit?: string | null;
8602
8526
  roomTemperature?: boolean | null;
8603
8527
  testLabel?: string | null;
8604
8528
  notchType?: string | null;
@@ -8828,7 +8752,7 @@ export interface ImaOverrideImpactTestResultsDto {
8828
8752
  heatNumber?: string | null;
8829
8753
  sampleReference?: string | null;
8830
8754
  orientation?: string | null;
8831
- temperature?: ImaOverrideUpdateMaterialCheckResultLineDto | null;
8755
+ temperature?: number | null;
8832
8756
  reportedAverage?: ImaOverrideUpdateMaterialCheckResultLineDto | null;
8833
8757
  individualValues?: ImaOverrideIndexedResultLineDto[] | null;
8834
8758
  }
@@ -9136,7 +9060,7 @@ export interface ImaChemistryCompositeSpecificationDto {
9136
9060
  export interface ImaMechanicalSpecificationDto {
9137
9061
  tensile?: ImaTensileSpecificationDto | null;
9138
9062
  hardness?: ImaHardnessSpecificationDto | null;
9139
- impact?: ImaImpactSpecificationDto | null;
9063
+ impactTests?: ImaImpactSpecificationDto[] | null;
9140
9064
  }
9141
9065
  export interface ImaTensileSpecificationDto {
9142
9066
  yieldStrength?: ImaSpecificationLineDto | null;
@@ -9149,7 +9073,8 @@ export interface ImaHardnessSpecificationDto {
9149
9073
  hardness?: ImaSpecificationLineDto | null;
9150
9074
  }
9151
9075
  export interface ImaImpactSpecificationDto {
9152
- temperature?: ImaSpecificationLineDto | null;
9076
+ temperature?: number | null;
9077
+ temperatureUnit?: ImaUnitDto | null;
9153
9078
  minimum?: ImaSpecificationLineDto | null;
9154
9079
  average?: ImaSpecificationLineDto | null;
9155
9080
  }
@@ -9229,105 +9154,6 @@ export interface ImaSpecificationLiteDto {
9229
9154
  updated: Date;
9230
9155
  isDeleted: boolean;
9231
9156
  }
9232
- export interface SchemaCreatorStateDto {
9233
- settings: SchemaCreatorSettingsDto;
9234
- elements: SchemaCreatorElementDto[];
9235
- documentParseStatus?: SchemaCreatorDocumentParseStatusDto | null;
9236
- isAutoGenerated?: boolean;
9237
- createdBy?: SchemaCreatorAuditInfoDto | null;
9238
- createdAt?: Date | null;
9239
- updatedBy?: SchemaCreatorAuditInfoDto | null;
9240
- updatedAt?: Date | null;
9241
- }
9242
- export interface SchemaCreatorSettingsDto {
9243
- unit?: SchemaCreatorUnitOfMeasureDto;
9244
- tolerance?: GeneralToleranceDto;
9245
- balloonSize?: number;
9246
- transparentBalloons?: boolean;
9247
- }
9248
- export type SchemaCreatorUnitOfMeasureDto = "Millimeter" | "Inch" | "Mixed";
9249
- export type GeneralToleranceDto = "NotSet" | "Fine" | "Medium" | "Coarse" | "VeryCoarse";
9250
- export interface SchemaCreatorElementDto {
9251
- id: string;
9252
- kind: SchemaCreatorElementKindDto;
9253
- drawings: SchemaCreatorElementDrawingsDto;
9254
- isDirty?: boolean | null;
9255
- values?: SchemaCreatorElementValuesDto | null;
9256
- parseResult?: SchemaCreatorSnipResultDto | null;
9257
- resolveAttempt?: SchemaCreatorParseAttemptDto | null;
9258
- createdBy?: SchemaCreatorAuditInfoDto | null;
9259
- createdAt?: Date | null;
9260
- updatedBy?: SchemaCreatorAuditInfoDto | null;
9261
- updatedAt?: Date | null;
9262
- }
9263
- export type SchemaCreatorElementKindDto = "Pending" | "Auto" | "Manual";
9264
- export interface SchemaCreatorElementDrawingsDto {
9265
- snip: SchemaCreatorSnipDto;
9266
- balloon: SchemaCreatorPointDto;
9267
- pageIndex: number;
9268
- }
9269
- export interface SchemaCreatorSnipDto {
9270
- rect: SchemaCreatorRectDto;
9271
- rotation?: number | null;
9272
- unrotatedRect?: SchemaCreatorRectDto | null;
9273
- }
9274
- export interface SchemaCreatorRectDto {
9275
- origin: SchemaCreatorPointDto;
9276
- size: SchemaCreatorSizeDto;
9277
- }
9278
- export interface SchemaCreatorPointDto {
9279
- x: number;
9280
- y: number;
9281
- }
9282
- export interface SchemaCreatorSizeDto {
9283
- width: number;
9284
- height: number;
9285
- }
9286
- export interface SchemaCreatorElementValuesDto {
9287
- reference: number;
9288
- unit?: UnitOfMeasureDto | null;
9289
- nominal?: number | null;
9290
- nominalText?: string | null;
9291
- plusTolerance?: number | null;
9292
- minusTolerance?: number | null;
9293
- coatingThickness?: number | null;
9294
- measurementFrequency: MeasurementFrequency;
9295
- measurementFrequencyParameter?: number | null;
9296
- type?: string | null;
9297
- count?: number | null;
9298
- comment?: string | null;
9299
- canCopy: boolean;
9300
- visibleToCustomer: boolean;
9301
- isDocumentedExternally: boolean;
9302
- }
9303
- export type UnitOfMeasureDto = "Millimeter" | "Inch";
9304
- export type MeasurementFrequency = "All" | "FirstArticle" | "NFirst" | "NPercent" | "ISO2859" | "Nth" | "FirstAndLast" | "None";
9305
- export interface SchemaCreatorSnipResultDto {
9306
- nominal?: number | null;
9307
- nominalText?: string | null;
9308
- plusTolerance?: number | null;
9309
- minusTolerance?: number | null;
9310
- count?: number | null;
9311
- }
9312
- export interface SchemaCreatorParseAttemptDto {
9313
- startedAt: Date;
9314
- errorType?: SchemaCreatorParseErrorTypeDto | null;
9315
- errorMessage?: string | null;
9316
- }
9317
- export type SchemaCreatorParseErrorTypeDto = "Timeout" | "ParseError";
9318
- export interface SchemaCreatorAuditInfoDto {
9319
- objectId: string;
9320
- userId: string;
9321
- userFullName?: string | null;
9322
- }
9323
- export interface SchemaCreatorDocumentParseStatusDto {
9324
- inProgress: boolean;
9325
- attempt?: SchemaCreatorParseAttemptDto | null;
9326
- }
9327
- export interface RenderSchemaCreatorElementSnipImageRequest {
9328
- pageIndex: number;
9329
- snip: SchemaCreatorSnipDto;
9330
- }
9331
9157
  export interface MeasurementFormSchemaDto {
9332
9158
  id: string;
9333
9159
  versionId: number;
@@ -9359,7 +9185,9 @@ export interface MeasurementFormSchemaDto {
9359
9185
  }
9360
9186
  export type MeasurementFormStatus = "Draft" | "Released" | "Revoked";
9361
9187
  export type MeasurementFormSource = "Unknown" | "InspectionXpert" | "Excel" | "Manual";
9188
+ export type UnitOfMeasureDto = "Millimeter" | "Inch";
9362
9189
  export type DimensionSettingDto = "Tolerance" | "MinMaxDimension";
9190
+ export type GeneralToleranceDto = "NotSet" | "Fine" | "Medium" | "Coarse" | "VeryCoarse";
9363
9191
  export interface MeasurementFormSchemaAttachmentDto {
9364
9192
  url: string;
9365
9193
  title: string;
@@ -9408,6 +9236,7 @@ export interface MeasurementFormGroupedElementDto {
9408
9236
  isValid: boolean;
9409
9237
  validationErrorMessage?: string | null;
9410
9238
  }
9239
+ export type MeasurementFrequency = "All" | "FirstArticle" | "NFirst" | "NPercent" | "ISO2859" | "Nth" | "FirstAndLast" | "None";
9411
9240
  export type MeasurementFormValueType = "None" | "Bool" | "Decimal" | "String";
9412
9241
  export type BonusType = "None" | "Positive" | "PositiveAndNegative";
9413
9242
  export interface MeasurementFormLinkedSchemaDto {
@@ -9513,6 +9342,10 @@ export interface UpdateSchemaSettingsRequest {
9513
9342
  dimensionSetting: DimensionSettingDto;
9514
9343
  generalTolerance: GeneralToleranceDto;
9515
9344
  }
9345
+ export interface UploadDrawingRequest {
9346
+ uploadKey: string;
9347
+ filename: string;
9348
+ }
9516
9349
  export interface UploadRequest {
9517
9350
  uploadKey: string;
9518
9351
  filename: string;
@@ -9691,10 +9524,6 @@ export interface MeasurementFormSchemaNotNeededDto {
9691
9524
  export interface SetMeasurementFormNeedAsNotNeededRequest {
9692
9525
  comment?: string | null;
9693
9526
  }
9694
- export interface UploadDrawingRequest {
9695
- uploadKey: string;
9696
- filename: string;
9697
- }
9698
9527
  export interface PagedResultOfMeasurementFormSchemaNotNeededDto {
9699
9528
  results: MeasurementFormSchemaNotNeededDto[];
9700
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.251.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) {
@@ -36260,6 +35895,7 @@ export interface PlannerOperationDto {
36260
35895
  drawingNumber?: string | null;
36261
35896
  description?: string | null;
36262
35897
  disableSetupRegistration?: boolean;
35898
+ sequenceNumber: number;
36263
35899
  lockType: PlannerLockType;
36264
35900
  isNewOperation: boolean;
36265
35901
  weekGroup: string;
@@ -37439,7 +37075,8 @@ export interface ImaImpactTestResultDto {
37439
37075
  sampleReference?: string | null;
37440
37076
  orientation?: string | null;
37441
37077
  testLocation?: string | null;
37442
- temperature?: ImaSpecificationResultLineDto | null;
37078
+ temperature?: number | null;
37079
+ temperatureUnit?: string | null;
37443
37080
  roomTemperature?: boolean | null;
37444
37081
  testLabel?: string | null;
37445
37082
  notchType?: string | null;
@@ -37699,7 +37336,7 @@ export interface ImaOverrideImpactTestResultsDto {
37699
37336
  heatNumber?: string | null;
37700
37337
  sampleReference?: string | null;
37701
37338
  orientation?: string | null;
37702
- temperature?: ImaOverrideUpdateMaterialCheckResultLineDto | null;
37339
+ temperature?: number | null;
37703
37340
  reportedAverage?: ImaOverrideUpdateMaterialCheckResultLineDto | null;
37704
37341
  individualValues?: ImaOverrideIndexedResultLineDto[] | null;
37705
37342
  }
@@ -38041,7 +37678,7 @@ export interface ImaChemistryCompositeSpecificationDto {
38041
37678
  export interface ImaMechanicalSpecificationDto {
38042
37679
  tensile?: ImaTensileSpecificationDto | null;
38043
37680
  hardness?: ImaHardnessSpecificationDto | null;
38044
- impact?: ImaImpactSpecificationDto | null;
37681
+ impactTests?: ImaImpactSpecificationDto[] | null;
38045
37682
  }
38046
37683
 
38047
37684
  export interface ImaTensileSpecificationDto {
@@ -38057,7 +37694,8 @@ export interface ImaHardnessSpecificationDto {
38057
37694
  }
38058
37695
 
38059
37696
  export interface ImaImpactSpecificationDto {
38060
- temperature?: ImaSpecificationLineDto | null;
37697
+ temperature?: number | null;
37698
+ temperatureUnit?: ImaUnitDto | null;
38061
37699
  minimum?: ImaSpecificationLineDto | null;
38062
37700
  average?: ImaSpecificationLineDto | null;
38063
37701
  }
@@ -38147,125 +37785,6 @@ export interface ImaSpecificationLiteDto {
38147
37785
  isDeleted: boolean;
38148
37786
  }
38149
37787
 
38150
- export interface SchemaCreatorStateDto {
38151
- settings: SchemaCreatorSettingsDto;
38152
- elements: SchemaCreatorElementDto[];
38153
- documentParseStatus?: SchemaCreatorDocumentParseStatusDto | null;
38154
- isAutoGenerated?: boolean;
38155
- createdBy?: SchemaCreatorAuditInfoDto | null;
38156
- createdAt?: Date | null;
38157
- updatedBy?: SchemaCreatorAuditInfoDto | null;
38158
- updatedAt?: Date | null;
38159
- }
38160
-
38161
- export interface SchemaCreatorSettingsDto {
38162
- unit?: SchemaCreatorUnitOfMeasureDto;
38163
- tolerance?: GeneralToleranceDto;
38164
- balloonSize?: number;
38165
- transparentBalloons?: boolean;
38166
- }
38167
-
38168
- export type SchemaCreatorUnitOfMeasureDto = "Millimeter" | "Inch" | "Mixed";
38169
-
38170
- export type GeneralToleranceDto = "NotSet" | "Fine" | "Medium" | "Coarse" | "VeryCoarse";
38171
-
38172
- export interface SchemaCreatorElementDto {
38173
- id: string;
38174
- kind: SchemaCreatorElementKindDto;
38175
- drawings: SchemaCreatorElementDrawingsDto;
38176
- isDirty?: boolean | null;
38177
- values?: SchemaCreatorElementValuesDto | null;
38178
- parseResult?: SchemaCreatorSnipResultDto | null;
38179
- resolveAttempt?: SchemaCreatorParseAttemptDto | null;
38180
- createdBy?: SchemaCreatorAuditInfoDto | null;
38181
- createdAt?: Date | null;
38182
- updatedBy?: SchemaCreatorAuditInfoDto | null;
38183
- updatedAt?: Date | null;
38184
- }
38185
-
38186
- export type SchemaCreatorElementKindDto = "Pending" | "Auto" | "Manual";
38187
-
38188
- export interface SchemaCreatorElementDrawingsDto {
38189
- snip: SchemaCreatorSnipDto;
38190
- balloon: SchemaCreatorPointDto;
38191
- pageIndex: number;
38192
- }
38193
-
38194
- export interface SchemaCreatorSnipDto {
38195
- rect: SchemaCreatorRectDto;
38196
- rotation?: number | null;
38197
- unrotatedRect?: SchemaCreatorRectDto | null;
38198
- }
38199
-
38200
- export interface SchemaCreatorRectDto {
38201
- origin: SchemaCreatorPointDto;
38202
- size: SchemaCreatorSizeDto;
38203
- }
38204
-
38205
- export interface SchemaCreatorPointDto {
38206
- x: number;
38207
- y: number;
38208
- }
38209
-
38210
- export interface SchemaCreatorSizeDto {
38211
- width: number;
38212
- height: number;
38213
- }
38214
-
38215
- export interface SchemaCreatorElementValuesDto {
38216
- reference: number;
38217
- unit?: UnitOfMeasureDto | null;
38218
- nominal?: number | null;
38219
- nominalText?: string | null;
38220
- plusTolerance?: number | null;
38221
- minusTolerance?: number | null;
38222
- coatingThickness?: number | null;
38223
- measurementFrequency: MeasurementFrequency;
38224
- measurementFrequencyParameter?: number | null;
38225
- type?: string | null;
38226
- count?: number | null;
38227
- comment?: string | null;
38228
- canCopy: boolean;
38229
- visibleToCustomer: boolean;
38230
- isDocumentedExternally: boolean;
38231
- }
38232
-
38233
- export type UnitOfMeasureDto = "Millimeter" | "Inch";
38234
-
38235
- export type MeasurementFrequency = "All" | "FirstArticle" | "NFirst" | "NPercent" | "ISO2859" | "Nth" | "FirstAndLast" | "None";
38236
-
38237
- export interface SchemaCreatorSnipResultDto {
38238
- nominal?: number | null;
38239
- nominalText?: string | null;
38240
- plusTolerance?: number | null;
38241
- minusTolerance?: number | null;
38242
- count?: number | null;
38243
- }
38244
-
38245
- export interface SchemaCreatorParseAttemptDto {
38246
- startedAt: Date;
38247
- errorType?: SchemaCreatorParseErrorTypeDto | null;
38248
- errorMessage?: string | null;
38249
- }
38250
-
38251
- export type SchemaCreatorParseErrorTypeDto = "Timeout" | "ParseError";
38252
-
38253
- export interface SchemaCreatorAuditInfoDto {
38254
- objectId: string;
38255
- userId: string;
38256
- userFullName?: string | null;
38257
- }
38258
-
38259
- export interface SchemaCreatorDocumentParseStatusDto {
38260
- inProgress: boolean;
38261
- attempt?: SchemaCreatorParseAttemptDto | null;
38262
- }
38263
-
38264
- export interface RenderSchemaCreatorElementSnipImageRequest {
38265
- pageIndex: number;
38266
- snip: SchemaCreatorSnipDto;
38267
- }
38268
-
38269
37788
  export interface MeasurementFormSchemaDto {
38270
37789
  id: string;
38271
37790
  versionId: number;
@@ -38300,8 +37819,12 @@ export type MeasurementFormStatus = "Draft" | "Released" | "Revoked";
38300
37819
 
38301
37820
  export type MeasurementFormSource = "Unknown" | "InspectionXpert" | "Excel" | "Manual";
38302
37821
 
37822
+ export type UnitOfMeasureDto = "Millimeter" | "Inch";
37823
+
38303
37824
  export type DimensionSettingDto = "Tolerance" | "MinMaxDimension";
38304
37825
 
37826
+ export type GeneralToleranceDto = "NotSet" | "Fine" | "Medium" | "Coarse" | "VeryCoarse";
37827
+
38305
37828
  export interface MeasurementFormSchemaAttachmentDto {
38306
37829
  url: string;
38307
37830
  title: string;
@@ -38352,6 +37875,8 @@ export interface MeasurementFormGroupedElementDto {
38352
37875
  validationErrorMessage?: string | null;
38353
37876
  }
38354
37877
 
37878
+ export type MeasurementFrequency = "All" | "FirstArticle" | "NFirst" | "NPercent" | "ISO2859" | "Nth" | "FirstAndLast" | "None";
37879
+
38355
37880
  export type MeasurementFormValueType = "None" | "Bool" | "Decimal" | "String";
38356
37881
 
38357
37882
  export type BonusType = "None" | "Positive" | "PositiveAndNegative";
@@ -38470,6 +37995,11 @@ export interface UpdateSchemaSettingsRequest {
38470
37995
  generalTolerance: GeneralToleranceDto;
38471
37996
  }
38472
37997
 
37998
+ export interface UploadDrawingRequest {
37999
+ uploadKey: string;
38000
+ filename: string;
38001
+ }
38002
+
38473
38003
  export interface UploadRequest {
38474
38004
  uploadKey: string;
38475
38005
  filename: string;
@@ -38670,11 +38200,6 @@ export interface SetMeasurementFormNeedAsNotNeededRequest {
38670
38200
  comment?: string | null;
38671
38201
  }
38672
38202
 
38673
- export interface UploadDrawingRequest {
38674
- uploadKey: string;
38675
- filename: string;
38676
- }
38677
-
38678
38203
  export interface PagedResultOfMeasurementFormSchemaNotNeededDto {
38679
38204
  results: MeasurementFormSchemaNotNeededDto[];
38680
38205
  continuationToken?: string | null;