@ignos/api-client 20260908.263.1 → 20260908.264.1-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2933,6 +2933,99 @@ export declare class InspectMatchSpecificationsClient extends AuthorizedApiBase
2933
2933
  listSpecifications(): Promise<ImaSpecificationLiteDto[]>;
2934
2934
  protected processListSpecifications(response: Response): Promise<ImaSpecificationLiteDto[]>;
2935
2935
  }
2936
+ export interface IInspectSchemaCreatorClient {
2937
+ getSchemaCreatorState(schemaVersionId: string): Promise<SchemaCreatorStateDto>;
2938
+ /**
2939
+ * Creates the initial creator state for a schema version. Returns 409 if
2940
+ state already exists; the caller should re-fetch it instead of writing.
2941
+ */
2942
+ createSchemaCreatorState(schemaVersionId: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto>;
2943
+ updateSchemaCreatorState(schemaVersionId: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto>;
2944
+ /**
2945
+ * Geometry only (no values), derived from the schema's retained
2946
+ InspectionXpert XML - used to seed a not-yet-created state with real
2947
+ drawing positions. Throws BadRequest if the schema has no such XML +
2948
+ drawing to derive it from.
2949
+ */
2950
+ getSchemaCreatorXmlGeometry(schemaVersionId: string): Promise<SchemaCreatorXmlGeometryDto[]>;
2951
+ /**
2952
+ * Starts a full drawing AI parse: clears every element and locks the
2953
+ schema for every viewer until it completes. If one is already in
2954
+ progress, returns that instead of starting a second one.
2955
+ */
2956
+ requestSchemaCreatorDocumentParse(schemaVersionId: string): Promise<SchemaCreatorStateDto>;
2957
+ /**
2958
+ * Stamps the creator state's balloons onto the schema's drawing PDF and
2959
+ returns a temporary download link.
2960
+ */
2961
+ exportSchemaCreatorDrawing(schemaVersionId: string): Promise<DownloadDto>;
2962
+ /**
2963
+ * Starts an async snip resolve; the result is delivered through the
2964
+ SchemaCreatorSnipResolved SignalR notification.
2965
+ * @param image (optional)
2966
+ */
2967
+ requestSchemaCreatorSnipParse(schemaVersionId: string, elementId: string, image: FileParameter | null | undefined): Promise<void>;
2968
+ /**
2969
+ * Renders the legacy-format image for one element's current snip.
2970
+ Fire-and-forget from the client on every snip commit - the resulting
2971
+ image isn't returned here, it's only ever read back once the schema
2972
+ is released (SchemaCreatorLegacyMapper).
2973
+ */
2974
+ renderSchemaCreatorElementSnipImage(schemaVersionId: string, elementId: string, request: RenderSchemaCreatorElementSnipImageRequest): Promise<void>;
2975
+ }
2976
+ export declare class InspectSchemaCreatorClient extends AuthorizedApiBase implements IInspectSchemaCreatorClient {
2977
+ private http;
2978
+ private baseUrl;
2979
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: {
2980
+ fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
2981
+ });
2982
+ getSchemaCreatorState(schemaVersionId: string): Promise<SchemaCreatorStateDto>;
2983
+ protected processGetSchemaCreatorState(response: Response): Promise<SchemaCreatorStateDto>;
2984
+ /**
2985
+ * Creates the initial creator state for a schema version. Returns 409 if
2986
+ state already exists; the caller should re-fetch it instead of writing.
2987
+ */
2988
+ createSchemaCreatorState(schemaVersionId: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto>;
2989
+ protected processCreateSchemaCreatorState(response: Response): Promise<SchemaCreatorStateDto>;
2990
+ updateSchemaCreatorState(schemaVersionId: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto>;
2991
+ protected processUpdateSchemaCreatorState(response: Response): Promise<SchemaCreatorStateDto>;
2992
+ /**
2993
+ * Geometry only (no values), derived from the schema's retained
2994
+ InspectionXpert XML - used to seed a not-yet-created state with real
2995
+ drawing positions. Throws BadRequest if the schema has no such XML +
2996
+ drawing to derive it from.
2997
+ */
2998
+ getSchemaCreatorXmlGeometry(schemaVersionId: string): Promise<SchemaCreatorXmlGeometryDto[]>;
2999
+ protected processGetSchemaCreatorXmlGeometry(response: Response): Promise<SchemaCreatorXmlGeometryDto[]>;
3000
+ /**
3001
+ * Starts a full drawing AI parse: clears every element and locks the
3002
+ schema for every viewer until it completes. If one is already in
3003
+ progress, returns that instead of starting a second one.
3004
+ */
3005
+ requestSchemaCreatorDocumentParse(schemaVersionId: string): Promise<SchemaCreatorStateDto>;
3006
+ protected processRequestSchemaCreatorDocumentParse(response: Response): Promise<SchemaCreatorStateDto>;
3007
+ /**
3008
+ * Stamps the creator state's balloons onto the schema's drawing PDF and
3009
+ returns a temporary download link.
3010
+ */
3011
+ exportSchemaCreatorDrawing(schemaVersionId: string): Promise<DownloadDto>;
3012
+ protected processExportSchemaCreatorDrawing(response: Response): Promise<DownloadDto>;
3013
+ /**
3014
+ * Starts an async snip resolve; the result is delivered through the
3015
+ SchemaCreatorSnipResolved SignalR notification.
3016
+ * @param image (optional)
3017
+ */
3018
+ requestSchemaCreatorSnipParse(schemaVersionId: string, elementId: string, image: FileParameter | null | undefined): Promise<void>;
3019
+ protected processRequestSchemaCreatorSnipParse(response: Response): Promise<void>;
3020
+ /**
3021
+ * Renders the legacy-format image for one element's current snip.
3022
+ Fire-and-forget from the client on every snip commit - the resulting
3023
+ image isn't returned here, it's only ever read back once the schema
3024
+ is released (SchemaCreatorLegacyMapper).
3025
+ */
3026
+ renderSchemaCreatorElementSnipImage(schemaVersionId: string, elementId: string, request: RenderSchemaCreatorElementSnipImageRequest): Promise<void>;
3027
+ protected processRenderSchemaCreatorElementSnipImage(response: Response): Promise<void>;
3028
+ }
2936
3029
  export interface IMeasurementFormSchemasAdminClient {
2937
3030
  getArchivedMeasurementFormSchema(id: string): Promise<MeasurementFormSchemaDto>;
2938
3031
  createMeasurementForm(request: CreateMeasurementFormSchema): Promise<MeasurementFormDto>;
@@ -2944,7 +3037,7 @@ export interface IMeasurementFormSchemasAdminClient {
2944
3037
  deleteSchemaRows(id: string, request: DeleteSchemaGroupedElementRowsDto): Promise<MeasurementFormSchemaDto>;
2945
3038
  uploadMeasurementImage(id: string, request: UploadMeasurementImageRequest): Promise<MeasurementFormSchemaDto>;
2946
3039
  updateSchemaSettings(id: string, request: UpdateSchemaSettingsRequest): Promise<UpdateSchemaSettingsRequest>;
2947
- uploadSchemaDrawing(id: string, request: UploadDrawingRequest): Promise<MeasurementFormSchemaDto>;
3040
+ uploadSchemaMarkedDrawing(id: string, request: UploadRequest): Promise<MeasurementFormSchemaDto>;
2948
3041
  uploadSchemaAttachment(id: string, request: UploadRequest): Promise<MeasurementFormSchemaDto>;
2949
3042
  getMeasurementFormImportStatus(id: string): Promise<MeasurementFormImportStatusDto>;
2950
3043
  listLinkableMeasurementFormSchemas(schemaId: string, pageSize: number | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormListDto>;
@@ -3027,8 +3120,8 @@ export declare class MeasurementFormSchemasAdminClient extends AuthorizedApiBase
3027
3120
  protected processUploadMeasurementImage(response: Response): Promise<MeasurementFormSchemaDto>;
3028
3121
  updateSchemaSettings(id: string, request: UpdateSchemaSettingsRequest): Promise<UpdateSchemaSettingsRequest>;
3029
3122
  protected processUpdateSchemaSettings(response: Response): Promise<UpdateSchemaSettingsRequest>;
3030
- uploadSchemaDrawing(id: string, request: UploadDrawingRequest): Promise<MeasurementFormSchemaDto>;
3031
- protected processUploadSchemaDrawing(response: Response): Promise<MeasurementFormSchemaDto>;
3123
+ uploadSchemaMarkedDrawing(id: string, request: UploadRequest): Promise<MeasurementFormSchemaDto>;
3124
+ protected processUploadSchemaMarkedDrawing(response: Response): Promise<MeasurementFormSchemaDto>;
3032
3125
  uploadSchemaAttachment(id: string, request: UploadRequest): Promise<MeasurementFormSchemaDto>;
3033
3126
  protected processUploadSchemaAttachment(response: Response): Promise<MeasurementFormSchemaDto>;
3034
3127
  getMeasurementFormImportStatus(id: string): Promise<MeasurementFormImportStatusDto>;
@@ -3190,6 +3283,7 @@ export interface IMeasurementFormsInstancesClient {
3190
3283
  completeMeasurementFormInstance(id: string, tenantId: string | null | undefined): Promise<MeasurementFormInstanceDto>;
3191
3284
  completeMeasurementFormInstanceV2(id: string, tenantId: string | null | undefined): Promise<CompleteMeasurementFormInstanceResult>;
3192
3285
  getMeasurementFormInstanceSchema(id: string, schemaId: string, serialNumber: string | null | undefined, tenantId: string | null | undefined): Promise<MeasurementFormInstanceSchemaDto>;
3286
+ getMeasurementFormInstanceSchemaCreatorState(id: string, schemaId: string, tenantId: string | null | undefined): Promise<SchemaCreatorStateDto>;
3193
3287
  getWorkorderMeasurementFormProgress(id: string, tenantId: string | null | undefined): Promise<MeasurementFormInstanceProgressDto>;
3194
3288
  getAuditLog(id: string, tenantId: string | null | undefined, schemaId: string | null | undefined, serialNumber: string | null | undefined, elementId: string | null | undefined): Promise<MeasurementFormElementValueAuditDto[]>;
3195
3289
  getValidationRules(): Promise<ValidationRuleDto[]>;
@@ -3228,6 +3322,8 @@ export declare class MeasurementFormsInstancesClient extends AuthorizedApiBase i
3228
3322
  protected processCompleteMeasurementFormInstanceV2(response: Response): Promise<CompleteMeasurementFormInstanceResult>;
3229
3323
  getMeasurementFormInstanceSchema(id: string, schemaId: string, serialNumber: string | null | undefined, tenantId: string | null | undefined): Promise<MeasurementFormInstanceSchemaDto>;
3230
3324
  protected processGetMeasurementFormInstanceSchema(response: Response): Promise<MeasurementFormInstanceSchemaDto>;
3325
+ getMeasurementFormInstanceSchemaCreatorState(id: string, schemaId: string, tenantId: string | null | undefined): Promise<SchemaCreatorStateDto>;
3326
+ protected processGetMeasurementFormInstanceSchemaCreatorState(response: Response): Promise<SchemaCreatorStateDto>;
3231
3327
  getWorkorderMeasurementFormProgress(id: string, tenantId: string | null | undefined): Promise<MeasurementFormInstanceProgressDto>;
3232
3328
  protected processGetWorkorderMeasurementFormProgress(response: Response): Promise<MeasurementFormInstanceProgressDto>;
3233
3329
  getAuditLog(id: string, tenantId: string | null | undefined, schemaId: string | null | undefined, serialNumber: string | null | undefined, elementId: string | null | undefined): Promise<MeasurementFormElementValueAuditDto[]>;
@@ -9306,6 +9402,115 @@ export interface ImaSpecificationLiteDto {
9306
9402
  updated: Date;
9307
9403
  isDeleted: boolean;
9308
9404
  }
9405
+ export interface SchemaCreatorStateDto {
9406
+ settings: SchemaCreatorSettingsDto;
9407
+ elements: SchemaCreatorElementDto[];
9408
+ documentParseStatus?: SchemaCreatorDocumentParseStatusDto | null;
9409
+ isAutoGenerated?: boolean;
9410
+ createdBy?: SchemaCreatorAuditInfoDto | null;
9411
+ createdAt?: Date | null;
9412
+ updatedBy?: SchemaCreatorAuditInfoDto | null;
9413
+ updatedAt?: Date | null;
9414
+ }
9415
+ export interface SchemaCreatorSettingsDto {
9416
+ unit?: SchemaCreatorUnitOfMeasureDto;
9417
+ tolerance?: GeneralToleranceDto;
9418
+ balloonSize?: number;
9419
+ transparentBalloons?: boolean;
9420
+ }
9421
+ export type SchemaCreatorUnitOfMeasureDto = "Millimeter" | "Inch" | "Mixed";
9422
+ export type GeneralToleranceDto = "NotSet" | "Fine" | "Medium" | "Coarse" | "VeryCoarse";
9423
+ export interface SchemaCreatorElementDto {
9424
+ id: string;
9425
+ kind: SchemaCreatorElementKindDto;
9426
+ drawings: SchemaCreatorElementDrawingsDto;
9427
+ isDirty?: boolean | null;
9428
+ values?: SchemaCreatorElementValuesDto | null;
9429
+ parseResult?: SchemaCreatorSnipResultDto | null;
9430
+ resolveAttempt?: SchemaCreatorParseAttemptDto | null;
9431
+ createdBy?: SchemaCreatorAuditInfoDto | null;
9432
+ createdAt?: Date | null;
9433
+ updatedBy?: SchemaCreatorAuditInfoDto | null;
9434
+ updatedAt?: Date | null;
9435
+ }
9436
+ export type SchemaCreatorElementKindDto = "Pending" | "Auto" | "Manual";
9437
+ export interface SchemaCreatorElementDrawingsDto {
9438
+ snip: SchemaCreatorSnipDto;
9439
+ balloon: SchemaCreatorPointDto;
9440
+ pageIndex: number;
9441
+ }
9442
+ export interface SchemaCreatorSnipDto {
9443
+ rect: SchemaCreatorRectDto;
9444
+ rotation?: number | null;
9445
+ unrotatedRect?: SchemaCreatorRectDto | null;
9446
+ }
9447
+ export interface SchemaCreatorRectDto {
9448
+ origin: SchemaCreatorPointDto;
9449
+ size: SchemaCreatorSizeDto;
9450
+ }
9451
+ export interface SchemaCreatorPointDto {
9452
+ x: number;
9453
+ y: number;
9454
+ }
9455
+ export interface SchemaCreatorSizeDto {
9456
+ width: number;
9457
+ height: number;
9458
+ }
9459
+ export interface SchemaCreatorElementValuesDto {
9460
+ reference: number;
9461
+ unit?: UnitOfMeasureDto | null;
9462
+ nominal?: number | null;
9463
+ nominalText?: string | null;
9464
+ upperLimit?: number | null;
9465
+ lowerLimit?: number | null;
9466
+ plusTolerance?: number | null;
9467
+ minusTolerance?: number | null;
9468
+ coatingThickness?: number | null;
9469
+ measurementFrequency: MeasurementFrequency;
9470
+ measurementFrequencyParameter?: number | null;
9471
+ type?: string | null;
9472
+ count?: number | null;
9473
+ comment?: string | null;
9474
+ canCopy: boolean;
9475
+ visibleToCustomer: boolean;
9476
+ isDocumentedExternally: boolean;
9477
+ }
9478
+ export type UnitOfMeasureDto = "Millimeter" | "Inch";
9479
+ export type MeasurementFrequency = "All" | "FirstArticle" | "NFirst" | "NPercent" | "ISO2859" | "Nth" | "FirstAndLast" | "None";
9480
+ export interface SchemaCreatorSnipResultDto {
9481
+ nominal?: number | null;
9482
+ nominalText?: string | null;
9483
+ upperLimit?: number | null;
9484
+ lowerLimit?: number | null;
9485
+ plusTolerance?: number | null;
9486
+ minusTolerance?: number | null;
9487
+ count?: number | null;
9488
+ }
9489
+ export interface SchemaCreatorParseAttemptDto {
9490
+ startedAt: Date;
9491
+ errorType?: SchemaCreatorParseErrorTypeDto | null;
9492
+ errorMessage?: string | null;
9493
+ }
9494
+ export type SchemaCreatorParseErrorTypeDto = "Timeout" | "ParseError";
9495
+ export interface SchemaCreatorAuditInfoDto {
9496
+ objectId: string;
9497
+ userId: string;
9498
+ userFullName?: string | null;
9499
+ }
9500
+ export interface SchemaCreatorDocumentParseStatusDto {
9501
+ inProgress: boolean;
9502
+ attempt?: SchemaCreatorParseAttemptDto | null;
9503
+ }
9504
+ export interface SchemaCreatorXmlGeometryDto {
9505
+ xmlAttributeId: number;
9506
+ snipRect: SchemaCreatorRectDto;
9507
+ balloon: SchemaCreatorPointDto;
9508
+ pageIndex: number;
9509
+ }
9510
+ export interface RenderSchemaCreatorElementSnipImageRequest {
9511
+ pageIndex: number;
9512
+ snip: SchemaCreatorSnipDto;
9513
+ }
9309
9514
  export interface MeasurementFormSchemaDto {
9310
9515
  id: string;
9311
9516
  versionId: number;
@@ -9337,9 +9542,7 @@ export interface MeasurementFormSchemaDto {
9337
9542
  }
9338
9543
  export type MeasurementFormStatus = "Draft" | "Released" | "Revoked";
9339
9544
  export type MeasurementFormSource = "Unknown" | "InspectionXpert" | "Excel" | "Manual";
9340
- export type UnitOfMeasureDto = "Millimeter" | "Inch";
9341
9545
  export type DimensionSettingDto = "Tolerance" | "MinMaxDimension";
9342
- export type GeneralToleranceDto = "NotSet" | "Fine" | "Medium" | "Coarse" | "VeryCoarse";
9343
9546
  export interface MeasurementFormSchemaAttachmentDto {
9344
9547
  url: string;
9345
9548
  title: string;
@@ -9348,6 +9551,7 @@ export interface MeasurementFormGroupedElementDto {
9348
9551
  id: string;
9349
9552
  balloonId?: string | null;
9350
9553
  reference: number;
9554
+ originalXmlId?: number | null;
9351
9555
  imageUrl?: string | null;
9352
9556
  thumbnailUrl?: string | null;
9353
9557
  section?: string | null;
@@ -9388,7 +9592,6 @@ export interface MeasurementFormGroupedElementDto {
9388
9592
  isValid: boolean;
9389
9593
  validationErrorMessage?: string | null;
9390
9594
  }
9391
- export type MeasurementFrequency = "All" | "FirstArticle" | "NFirst" | "NPercent" | "ISO2859" | "Nth" | "FirstAndLast" | "None";
9392
9595
  export type MeasurementFormValueType = "None" | "Bool" | "Decimal" | "String";
9393
9596
  export type BonusType = "None" | "Positive" | "PositiveAndNegative";
9394
9597
  export interface MeasurementFormLinkedSchemaDto {
@@ -9494,10 +9697,6 @@ export interface UpdateSchemaSettingsRequest {
9494
9697
  dimensionSetting: DimensionSettingDto;
9495
9698
  generalTolerance: GeneralToleranceDto;
9496
9699
  }
9497
- export interface UploadDrawingRequest {
9498
- uploadKey: string;
9499
- filename: string;
9500
- }
9501
9700
  export interface UploadRequest {
9502
9701
  uploadKey: string;
9503
9702
  filename: string;
@@ -9576,6 +9775,8 @@ export interface MeasurementFormCustomerSettingsDto {
9576
9775
  validationRuleId?: string | null;
9577
9776
  requireCalibratedTools: boolean;
9578
9777
  allowEmptyToolListInValue: boolean;
9778
+ disableAiParseDocument: boolean;
9779
+ disableAiParseSnip: boolean;
9579
9780
  }
9580
9781
  export interface UpdateMeasurementFormCustomerSettings {
9581
9782
  customerId: string;
@@ -9584,6 +9785,8 @@ export interface UpdateMeasurementFormCustomerSettings {
9584
9785
  validationRuleId?: string | null;
9585
9786
  requireCalibratedTools: boolean;
9586
9787
  allowEmptyToolListInValue: boolean;
9788
+ disableAiParseDocument: boolean;
9789
+ disableAiParseSnip: boolean;
9587
9790
  }
9588
9791
  export interface MeasurementFormMappingDto {
9589
9792
  id: string;
@@ -9676,6 +9879,10 @@ export interface MeasurementFormSchemaNotNeededDto {
9676
9879
  export interface SetMeasurementFormNeedAsNotNeededRequest {
9677
9880
  comment?: string | null;
9678
9881
  }
9882
+ export interface UploadDrawingRequest {
9883
+ uploadKey: string;
9884
+ filename: string;
9885
+ }
9679
9886
  export interface PagedResultOfMeasurementFormSchemaNotNeededDto {
9680
9887
  results: MeasurementFormSchemaNotNeededDto[];
9681
9888
  continuationToken?: string | null;