@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.
@@ -26172,6 +26172,423 @@ export class InspectMatchSpecificationsClient extends AuthorizedApiBase implemen
26172
26172
  }
26173
26173
  }
26174
26174
 
26175
+ export interface IInspectSchemaCreatorClient {
26176
+
26177
+ getSchemaCreatorState(schemaVersionId: string): Promise<SchemaCreatorStateDto>;
26178
+
26179
+ /**
26180
+ * Creates the initial creator state for a schema version. Returns 409 if
26181
+ state already exists; the caller should re-fetch it instead of writing.
26182
+ */
26183
+ createSchemaCreatorState(schemaVersionId: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto>;
26184
+
26185
+ updateSchemaCreatorState(schemaVersionId: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto>;
26186
+
26187
+ /**
26188
+ * Geometry only (no values), derived from the schema's retained
26189
+ InspectionXpert XML - used to seed a not-yet-created state with real
26190
+ drawing positions. Throws BadRequest if the schema has no such XML +
26191
+ drawing to derive it from.
26192
+ */
26193
+ getSchemaCreatorXmlGeometry(schemaVersionId: string): Promise<SchemaCreatorXmlGeometryDto[]>;
26194
+
26195
+ /**
26196
+ * Starts a full drawing AI parse: clears every element and locks the
26197
+ schema for every viewer until it completes. If one is already in
26198
+ progress, returns that instead of starting a second one.
26199
+ */
26200
+ requestSchemaCreatorDocumentParse(schemaVersionId: string): Promise<SchemaCreatorStateDto>;
26201
+
26202
+ /**
26203
+ * Stamps the creator state's balloons onto the schema's drawing PDF and
26204
+ returns a temporary download link.
26205
+ */
26206
+ exportSchemaCreatorDrawing(schemaVersionId: string): Promise<DownloadDto>;
26207
+
26208
+ /**
26209
+ * Starts an async snip resolve; the result is delivered through the
26210
+ SchemaCreatorSnipResolved SignalR notification.
26211
+ * @param image (optional)
26212
+ */
26213
+ requestSchemaCreatorSnipParse(schemaVersionId: string, elementId: string, image: FileParameter | null | undefined): Promise<void>;
26214
+
26215
+ /**
26216
+ * Renders the legacy-format image for one element's current snip.
26217
+ Fire-and-forget from the client on every snip commit - the resulting
26218
+ image isn't returned here, it's only ever read back once the schema
26219
+ is released (SchemaCreatorLegacyMapper).
26220
+ */
26221
+ renderSchemaCreatorElementSnipImage(schemaVersionId: string, elementId: string, request: RenderSchemaCreatorElementSnipImageRequest): Promise<void>;
26222
+ }
26223
+
26224
+ export class InspectSchemaCreatorClient extends AuthorizedApiBase implements IInspectSchemaCreatorClient {
26225
+ private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
26226
+ private baseUrl: string;
26227
+
26228
+ constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
26229
+ super(configuration);
26230
+ this.http = http ? http : window as any;
26231
+ this.baseUrl = baseUrl ?? "";
26232
+ }
26233
+
26234
+ getSchemaCreatorState(schemaVersionId: string): Promise<SchemaCreatorStateDto> {
26235
+ let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate";
26236
+ if (schemaVersionId === undefined || schemaVersionId === null)
26237
+ throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
26238
+ url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
26239
+ url_ = url_.replace(/[?&]$/, "");
26240
+
26241
+ let options_: RequestInit = {
26242
+ method: "GET",
26243
+ headers: {
26244
+ "Accept": "application/json"
26245
+ }
26246
+ };
26247
+
26248
+ return this.transformOptions(options_).then(transformedOptions_ => {
26249
+ return this.http.fetch(url_, transformedOptions_);
26250
+ }).then((_response: Response) => {
26251
+ return this.processGetSchemaCreatorState(_response);
26252
+ });
26253
+ }
26254
+
26255
+ protected processGetSchemaCreatorState(response: Response): Promise<SchemaCreatorStateDto> {
26256
+ const status = response.status;
26257
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
26258
+ if (status === 200) {
26259
+ return response.text().then((_responseText) => {
26260
+ let result200: any = null;
26261
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as SchemaCreatorStateDto;
26262
+ return result200;
26263
+ });
26264
+ } else if (status !== 200 && status !== 204) {
26265
+ return response.text().then((_responseText) => {
26266
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
26267
+ });
26268
+ }
26269
+ return Promise.resolve<SchemaCreatorStateDto>(null as any);
26270
+ }
26271
+
26272
+ /**
26273
+ * Creates the initial creator state for a schema version. Returns 409 if
26274
+ state already exists; the caller should re-fetch it instead of writing.
26275
+ */
26276
+ createSchemaCreatorState(schemaVersionId: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto> {
26277
+ let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate";
26278
+ if (schemaVersionId === undefined || schemaVersionId === null)
26279
+ throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
26280
+ url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
26281
+ url_ = url_.replace(/[?&]$/, "");
26282
+
26283
+ const content_ = JSON.stringify(state);
26284
+
26285
+ let options_: RequestInit = {
26286
+ body: content_,
26287
+ method: "POST",
26288
+ headers: {
26289
+ "Content-Type": "application/json",
26290
+ "Accept": "application/json"
26291
+ }
26292
+ };
26293
+
26294
+ return this.transformOptions(options_).then(transformedOptions_ => {
26295
+ return this.http.fetch(url_, transformedOptions_);
26296
+ }).then((_response: Response) => {
26297
+ return this.processCreateSchemaCreatorState(_response);
26298
+ });
26299
+ }
26300
+
26301
+ protected processCreateSchemaCreatorState(response: Response): Promise<SchemaCreatorStateDto> {
26302
+ const status = response.status;
26303
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
26304
+ if (status === 201) {
26305
+ return response.text().then((_responseText) => {
26306
+ let result201: any = null;
26307
+ result201 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as SchemaCreatorStateDto;
26308
+ return result201;
26309
+ });
26310
+ } else if (status === 409) {
26311
+ return response.text().then((_responseText) => {
26312
+ let result409: any = null;
26313
+ result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ProblemDetails;
26314
+ return throwException("A server side error occurred.", status, _responseText, _headers, result409);
26315
+ });
26316
+ } else if (status !== 200 && status !== 204) {
26317
+ return response.text().then((_responseText) => {
26318
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
26319
+ });
26320
+ }
26321
+ return Promise.resolve<SchemaCreatorStateDto>(null as any);
26322
+ }
26323
+
26324
+ updateSchemaCreatorState(schemaVersionId: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto> {
26325
+ let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate";
26326
+ if (schemaVersionId === undefined || schemaVersionId === null)
26327
+ throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
26328
+ url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
26329
+ url_ = url_.replace(/[?&]$/, "");
26330
+
26331
+ const content_ = JSON.stringify(state);
26332
+
26333
+ let options_: RequestInit = {
26334
+ body: content_,
26335
+ method: "PUT",
26336
+ headers: {
26337
+ "Content-Type": "application/json",
26338
+ "Accept": "application/json"
26339
+ }
26340
+ };
26341
+
26342
+ return this.transformOptions(options_).then(transformedOptions_ => {
26343
+ return this.http.fetch(url_, transformedOptions_);
26344
+ }).then((_response: Response) => {
26345
+ return this.processUpdateSchemaCreatorState(_response);
26346
+ });
26347
+ }
26348
+
26349
+ protected processUpdateSchemaCreatorState(response: Response): Promise<SchemaCreatorStateDto> {
26350
+ const status = response.status;
26351
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
26352
+ if (status === 200) {
26353
+ return response.text().then((_responseText) => {
26354
+ let result200: any = null;
26355
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as SchemaCreatorStateDto;
26356
+ return result200;
26357
+ });
26358
+ } else if (status !== 200 && status !== 204) {
26359
+ return response.text().then((_responseText) => {
26360
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
26361
+ });
26362
+ }
26363
+ return Promise.resolve<SchemaCreatorStateDto>(null as any);
26364
+ }
26365
+
26366
+ /**
26367
+ * Geometry only (no values), derived from the schema's retained
26368
+ InspectionXpert XML - used to seed a not-yet-created state with real
26369
+ drawing positions. Throws BadRequest if the schema has no such XML +
26370
+ drawing to derive it from.
26371
+ */
26372
+ getSchemaCreatorXmlGeometry(schemaVersionId: string): Promise<SchemaCreatorXmlGeometryDto[]> {
26373
+ let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate/xml-geometry";
26374
+ if (schemaVersionId === undefined || schemaVersionId === null)
26375
+ throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
26376
+ url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
26377
+ url_ = url_.replace(/[?&]$/, "");
26378
+
26379
+ let options_: RequestInit = {
26380
+ method: "GET",
26381
+ headers: {
26382
+ "Accept": "application/json"
26383
+ }
26384
+ };
26385
+
26386
+ return this.transformOptions(options_).then(transformedOptions_ => {
26387
+ return this.http.fetch(url_, transformedOptions_);
26388
+ }).then((_response: Response) => {
26389
+ return this.processGetSchemaCreatorXmlGeometry(_response);
26390
+ });
26391
+ }
26392
+
26393
+ protected processGetSchemaCreatorXmlGeometry(response: Response): Promise<SchemaCreatorXmlGeometryDto[]> {
26394
+ const status = response.status;
26395
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
26396
+ if (status === 200) {
26397
+ return response.text().then((_responseText) => {
26398
+ let result200: any = null;
26399
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as SchemaCreatorXmlGeometryDto[];
26400
+ return result200;
26401
+ });
26402
+ } else if (status !== 200 && status !== 204) {
26403
+ return response.text().then((_responseText) => {
26404
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
26405
+ });
26406
+ }
26407
+ return Promise.resolve<SchemaCreatorXmlGeometryDto[]>(null as any);
26408
+ }
26409
+
26410
+ /**
26411
+ * Starts a full drawing AI parse: clears every element and locks the
26412
+ schema for every viewer until it completes. If one is already in
26413
+ progress, returns that instead of starting a second one.
26414
+ */
26415
+ requestSchemaCreatorDocumentParse(schemaVersionId: string): Promise<SchemaCreatorStateDto> {
26416
+ let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate/parse-document";
26417
+ if (schemaVersionId === undefined || schemaVersionId === null)
26418
+ throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
26419
+ url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
26420
+ url_ = url_.replace(/[?&]$/, "");
26421
+
26422
+ let options_: RequestInit = {
26423
+ method: "POST",
26424
+ headers: {
26425
+ "Accept": "application/json"
26426
+ }
26427
+ };
26428
+
26429
+ return this.transformOptions(options_).then(transformedOptions_ => {
26430
+ return this.http.fetch(url_, transformedOptions_);
26431
+ }).then((_response: Response) => {
26432
+ return this.processRequestSchemaCreatorDocumentParse(_response);
26433
+ });
26434
+ }
26435
+
26436
+ protected processRequestSchemaCreatorDocumentParse(response: Response): Promise<SchemaCreatorStateDto> {
26437
+ const status = response.status;
26438
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
26439
+ if (status === 200) {
26440
+ return response.text().then((_responseText) => {
26441
+ let result200: any = null;
26442
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as SchemaCreatorStateDto;
26443
+ return result200;
26444
+ });
26445
+ } else if (status !== 200 && status !== 204) {
26446
+ return response.text().then((_responseText) => {
26447
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
26448
+ });
26449
+ }
26450
+ return Promise.resolve<SchemaCreatorStateDto>(null as any);
26451
+ }
26452
+
26453
+ /**
26454
+ * Stamps the creator state's balloons onto the schema's drawing PDF and
26455
+ returns a temporary download link.
26456
+ */
26457
+ exportSchemaCreatorDrawing(schemaVersionId: string): Promise<DownloadDto> {
26458
+ let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate/download";
26459
+ if (schemaVersionId === undefined || schemaVersionId === null)
26460
+ throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
26461
+ url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
26462
+ url_ = url_.replace(/[?&]$/, "");
26463
+
26464
+ let options_: RequestInit = {
26465
+ method: "POST",
26466
+ headers: {
26467
+ "Accept": "application/json"
26468
+ }
26469
+ };
26470
+
26471
+ return this.transformOptions(options_).then(transformedOptions_ => {
26472
+ return this.http.fetch(url_, transformedOptions_);
26473
+ }).then((_response: Response) => {
26474
+ return this.processExportSchemaCreatorDrawing(_response);
26475
+ });
26476
+ }
26477
+
26478
+ protected processExportSchemaCreatorDrawing(response: Response): Promise<DownloadDto> {
26479
+ const status = response.status;
26480
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
26481
+ if (status === 200) {
26482
+ return response.text().then((_responseText) => {
26483
+ let result200: any = null;
26484
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as DownloadDto;
26485
+ return result200;
26486
+ });
26487
+ } else if (status !== 200 && status !== 204) {
26488
+ return response.text().then((_responseText) => {
26489
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
26490
+ });
26491
+ }
26492
+ return Promise.resolve<DownloadDto>(null as any);
26493
+ }
26494
+
26495
+ /**
26496
+ * Starts an async snip resolve; the result is delivered through the
26497
+ SchemaCreatorSnipResolved SignalR notification.
26498
+ * @param image (optional)
26499
+ */
26500
+ requestSchemaCreatorSnipParse(schemaVersionId: string, elementId: string, image: FileParameter | null | undefined): Promise<void> {
26501
+ let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate/elements/{elementId}/parse-snip";
26502
+ if (schemaVersionId === undefined || schemaVersionId === null)
26503
+ throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
26504
+ url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
26505
+ if (elementId === undefined || elementId === null)
26506
+ throw new globalThis.Error("The parameter 'elementId' must be defined.");
26507
+ url_ = url_.replace("{elementId}", encodeURIComponent("" + elementId));
26508
+ url_ = url_.replace(/[?&]$/, "");
26509
+
26510
+ const content_ = new FormData();
26511
+ if (image !== null && image !== undefined)
26512
+ content_.append("image", image.data, image.fileName ? image.fileName : "image");
26513
+
26514
+ let options_: RequestInit = {
26515
+ body: content_,
26516
+ method: "POST",
26517
+ headers: {
26518
+ }
26519
+ };
26520
+
26521
+ return this.transformOptions(options_).then(transformedOptions_ => {
26522
+ return this.http.fetch(url_, transformedOptions_);
26523
+ }).then((_response: Response) => {
26524
+ return this.processRequestSchemaCreatorSnipParse(_response);
26525
+ });
26526
+ }
26527
+
26528
+ protected processRequestSchemaCreatorSnipParse(response: Response): Promise<void> {
26529
+ const status = response.status;
26530
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
26531
+ if (status === 200) {
26532
+ return response.text().then((_responseText) => {
26533
+ return;
26534
+ });
26535
+ } else if (status !== 200 && status !== 204) {
26536
+ return response.text().then((_responseText) => {
26537
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
26538
+ });
26539
+ }
26540
+ return Promise.resolve<void>(null as any);
26541
+ }
26542
+
26543
+ /**
26544
+ * Renders the legacy-format image for one element's current snip.
26545
+ Fire-and-forget from the client on every snip commit - the resulting
26546
+ image isn't returned here, it's only ever read back once the schema
26547
+ is released (SchemaCreatorLegacyMapper).
26548
+ */
26549
+ renderSchemaCreatorElementSnipImage(schemaVersionId: string, elementId: string, request: RenderSchemaCreatorElementSnipImageRequest): Promise<void> {
26550
+ let url_ = this.baseUrl + "/measurementforms/schemas/{schemaVersionId}/creatorstate/elements/{elementId}/snip-image";
26551
+ if (schemaVersionId === undefined || schemaVersionId === null)
26552
+ throw new globalThis.Error("The parameter 'schemaVersionId' must be defined.");
26553
+ url_ = url_.replace("{schemaVersionId}", encodeURIComponent("" + schemaVersionId));
26554
+ if (elementId === undefined || elementId === null)
26555
+ throw new globalThis.Error("The parameter 'elementId' must be defined.");
26556
+ url_ = url_.replace("{elementId}", encodeURIComponent("" + elementId));
26557
+ url_ = url_.replace(/[?&]$/, "");
26558
+
26559
+ const content_ = JSON.stringify(request);
26560
+
26561
+ let options_: RequestInit = {
26562
+ body: content_,
26563
+ method: "POST",
26564
+ headers: {
26565
+ "Content-Type": "application/json",
26566
+ }
26567
+ };
26568
+
26569
+ return this.transformOptions(options_).then(transformedOptions_ => {
26570
+ return this.http.fetch(url_, transformedOptions_);
26571
+ }).then((_response: Response) => {
26572
+ return this.processRenderSchemaCreatorElementSnipImage(_response);
26573
+ });
26574
+ }
26575
+
26576
+ protected processRenderSchemaCreatorElementSnipImage(response: Response): Promise<void> {
26577
+ const status = response.status;
26578
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
26579
+ if (status === 200) {
26580
+ return response.text().then((_responseText) => {
26581
+ return;
26582
+ });
26583
+ } else if (status !== 200 && status !== 204) {
26584
+ return response.text().then((_responseText) => {
26585
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
26586
+ });
26587
+ }
26588
+ return Promise.resolve<void>(null as any);
26589
+ }
26590
+ }
26591
+
26175
26592
  export interface IMeasurementFormSchemasAdminClient {
26176
26593
 
26177
26594
  getArchivedMeasurementFormSchema(id: string): Promise<MeasurementFormSchemaDto>;
@@ -26194,7 +26611,7 @@ export interface IMeasurementFormSchemasAdminClient {
26194
26611
 
26195
26612
  updateSchemaSettings(id: string, request: UpdateSchemaSettingsRequest): Promise<UpdateSchemaSettingsRequest>;
26196
26613
 
26197
- uploadSchemaDrawing(id: string, request: UploadDrawingRequest): Promise<MeasurementFormSchemaDto>;
26614
+ uploadSchemaMarkedDrawing(id: string, request: UploadRequest): Promise<MeasurementFormSchemaDto>;
26198
26615
 
26199
26616
  uploadSchemaAttachment(id: string, request: UploadRequest): Promise<MeasurementFormSchemaDto>;
26200
26617
 
@@ -26708,8 +27125,8 @@ export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase impleme
26708
27125
  return Promise.resolve<UpdateSchemaSettingsRequest>(null as any);
26709
27126
  }
26710
27127
 
26711
- uploadSchemaDrawing(id: string, request: UploadDrawingRequest): Promise<MeasurementFormSchemaDto> {
26712
- let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploaddrawing";
27128
+ uploadSchemaMarkedDrawing(id: string, request: UploadRequest): Promise<MeasurementFormSchemaDto> {
27129
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploadmarkeddrawing";
26713
27130
  if (id === undefined || id === null)
26714
27131
  throw new globalThis.Error("The parameter 'id' must be defined.");
26715
27132
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
@@ -26729,11 +27146,11 @@ export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase impleme
26729
27146
  return this.transformOptions(options_).then(transformedOptions_ => {
26730
27147
  return this.http.fetch(url_, transformedOptions_);
26731
27148
  }).then((_response: Response) => {
26732
- return this.processUploadSchemaDrawing(_response);
27149
+ return this.processUploadSchemaMarkedDrawing(_response);
26733
27150
  });
26734
27151
  }
26735
27152
 
26736
- protected processUploadSchemaDrawing(response: Response): Promise<MeasurementFormSchemaDto> {
27153
+ protected processUploadSchemaMarkedDrawing(response: Response): Promise<MeasurementFormSchemaDto> {
26737
27154
  const status = response.status;
26738
27155
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
26739
27156
  if (status === 200) {
@@ -28838,6 +29255,8 @@ export interface IMeasurementFormsInstancesClient {
28838
29255
 
28839
29256
  getMeasurementFormInstanceSchema(id: string, schemaId: string, serialNumber: string | null | undefined, tenantId: string | null | undefined): Promise<MeasurementFormInstanceSchemaDto>;
28840
29257
 
29258
+ getMeasurementFormInstanceSchemaCreatorState(id: string, schemaId: string, tenantId: string | null | undefined): Promise<SchemaCreatorStateDto>;
29259
+
28841
29260
  getWorkorderMeasurementFormProgress(id: string, tenantId: string | null | undefined): Promise<MeasurementFormInstanceProgressDto>;
28842
29261
 
28843
29262
  getAuditLog(id: string, tenantId: string | null | undefined, schemaId: string | null | undefined, serialNumber: string | null | undefined, elementId: string | null | undefined): Promise<MeasurementFormElementValueAuditDto[]>;
@@ -29171,6 +29590,49 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
29171
29590
  return Promise.resolve<MeasurementFormInstanceSchemaDto>(null as any);
29172
29591
  }
29173
29592
 
29593
+ getMeasurementFormInstanceSchemaCreatorState(id: string, schemaId: string, tenantId: string | null | undefined): Promise<SchemaCreatorStateDto> {
29594
+ let url_ = this.baseUrl + "/measurementforms/instances/{id}/schemas/{schemaId}/creatorstate?";
29595
+ if (id === undefined || id === null)
29596
+ throw new globalThis.Error("The parameter 'id' must be defined.");
29597
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
29598
+ if (schemaId === undefined || schemaId === null)
29599
+ throw new globalThis.Error("The parameter 'schemaId' must be defined.");
29600
+ url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
29601
+ if (tenantId !== undefined && tenantId !== null)
29602
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
29603
+ url_ = url_.replace(/[?&]$/, "");
29604
+
29605
+ let options_: RequestInit = {
29606
+ method: "GET",
29607
+ headers: {
29608
+ "Accept": "application/json"
29609
+ }
29610
+ };
29611
+
29612
+ return this.transformOptions(options_).then(transformedOptions_ => {
29613
+ return this.http.fetch(url_, transformedOptions_);
29614
+ }).then((_response: Response) => {
29615
+ return this.processGetMeasurementFormInstanceSchemaCreatorState(_response);
29616
+ });
29617
+ }
29618
+
29619
+ protected processGetMeasurementFormInstanceSchemaCreatorState(response: Response): Promise<SchemaCreatorStateDto> {
29620
+ const status = response.status;
29621
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
29622
+ if (status === 200) {
29623
+ return response.text().then((_responseText) => {
29624
+ let result200: any = null;
29625
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as SchemaCreatorStateDto;
29626
+ return result200;
29627
+ });
29628
+ } else if (status !== 200 && status !== 204) {
29629
+ return response.text().then((_responseText) => {
29630
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
29631
+ });
29632
+ }
29633
+ return Promise.resolve<SchemaCreatorStateDto>(null as any);
29634
+ }
29635
+
29174
29636
  getWorkorderMeasurementFormProgress(id: string, tenantId: string | null | undefined): Promise<MeasurementFormInstanceProgressDto> {
29175
29637
  let url_ = this.baseUrl + "/measurementforms/instances/{id}/progress?";
29176
29638
  if (id === undefined || id === null)
@@ -38601,6 +39063,136 @@ export interface ImaSpecificationLiteDto {
38601
39063
  isDeleted: boolean;
38602
39064
  }
38603
39065
 
39066
+ export interface SchemaCreatorStateDto {
39067
+ settings: SchemaCreatorSettingsDto;
39068
+ elements: SchemaCreatorElementDto[];
39069
+ documentParseStatus?: SchemaCreatorDocumentParseStatusDto | null;
39070
+ isAutoGenerated?: boolean;
39071
+ createdBy?: SchemaCreatorAuditInfoDto | null;
39072
+ createdAt?: Date | null;
39073
+ updatedBy?: SchemaCreatorAuditInfoDto | null;
39074
+ updatedAt?: Date | null;
39075
+ }
39076
+
39077
+ export interface SchemaCreatorSettingsDto {
39078
+ unit?: SchemaCreatorUnitOfMeasureDto;
39079
+ tolerance?: GeneralToleranceDto;
39080
+ balloonSize?: number;
39081
+ transparentBalloons?: boolean;
39082
+ }
39083
+
39084
+ export type SchemaCreatorUnitOfMeasureDto = "Millimeter" | "Inch" | "Mixed";
39085
+
39086
+ export type GeneralToleranceDto = "NotSet" | "Fine" | "Medium" | "Coarse" | "VeryCoarse";
39087
+
39088
+ export interface SchemaCreatorElementDto {
39089
+ id: string;
39090
+ kind: SchemaCreatorElementKindDto;
39091
+ drawings: SchemaCreatorElementDrawingsDto;
39092
+ isDirty?: boolean | null;
39093
+ values?: SchemaCreatorElementValuesDto | null;
39094
+ parseResult?: SchemaCreatorSnipResultDto | null;
39095
+ resolveAttempt?: SchemaCreatorParseAttemptDto | null;
39096
+ createdBy?: SchemaCreatorAuditInfoDto | null;
39097
+ createdAt?: Date | null;
39098
+ updatedBy?: SchemaCreatorAuditInfoDto | null;
39099
+ updatedAt?: Date | null;
39100
+ }
39101
+
39102
+ export type SchemaCreatorElementKindDto = "Pending" | "Auto" | "Manual";
39103
+
39104
+ export interface SchemaCreatorElementDrawingsDto {
39105
+ snip: SchemaCreatorSnipDto;
39106
+ balloon: SchemaCreatorPointDto;
39107
+ pageIndex: number;
39108
+ }
39109
+
39110
+ export interface SchemaCreatorSnipDto {
39111
+ rect: SchemaCreatorRectDto;
39112
+ rotation?: number | null;
39113
+ unrotatedRect?: SchemaCreatorRectDto | null;
39114
+ }
39115
+
39116
+ export interface SchemaCreatorRectDto {
39117
+ origin: SchemaCreatorPointDto;
39118
+ size: SchemaCreatorSizeDto;
39119
+ }
39120
+
39121
+ export interface SchemaCreatorPointDto {
39122
+ x: number;
39123
+ y: number;
39124
+ }
39125
+
39126
+ export interface SchemaCreatorSizeDto {
39127
+ width: number;
39128
+ height: number;
39129
+ }
39130
+
39131
+ export interface SchemaCreatorElementValuesDto {
39132
+ reference: number;
39133
+ unit?: UnitOfMeasureDto | null;
39134
+ nominal?: number | null;
39135
+ nominalText?: string | null;
39136
+ upperLimit?: number | null;
39137
+ lowerLimit?: number | null;
39138
+ plusTolerance?: number | null;
39139
+ minusTolerance?: number | null;
39140
+ coatingThickness?: number | null;
39141
+ measurementFrequency: MeasurementFrequency;
39142
+ measurementFrequencyParameter?: number | null;
39143
+ type?: string | null;
39144
+ count?: number | null;
39145
+ comment?: string | null;
39146
+ canCopy: boolean;
39147
+ visibleToCustomer: boolean;
39148
+ isDocumentedExternally: boolean;
39149
+ }
39150
+
39151
+ export type UnitOfMeasureDto = "Millimeter" | "Inch";
39152
+
39153
+ export type MeasurementFrequency = "All" | "FirstArticle" | "NFirst" | "NPercent" | "ISO2859" | "Nth" | "FirstAndLast" | "None";
39154
+
39155
+ export interface SchemaCreatorSnipResultDto {
39156
+ nominal?: number | null;
39157
+ nominalText?: string | null;
39158
+ upperLimit?: number | null;
39159
+ lowerLimit?: number | null;
39160
+ plusTolerance?: number | null;
39161
+ minusTolerance?: number | null;
39162
+ count?: number | null;
39163
+ }
39164
+
39165
+ export interface SchemaCreatorParseAttemptDto {
39166
+ startedAt: Date;
39167
+ errorType?: SchemaCreatorParseErrorTypeDto | null;
39168
+ errorMessage?: string | null;
39169
+ }
39170
+
39171
+ export type SchemaCreatorParseErrorTypeDto = "Timeout" | "ParseError";
39172
+
39173
+ export interface SchemaCreatorAuditInfoDto {
39174
+ objectId: string;
39175
+ userId: string;
39176
+ userFullName?: string | null;
39177
+ }
39178
+
39179
+ export interface SchemaCreatorDocumentParseStatusDto {
39180
+ inProgress: boolean;
39181
+ attempt?: SchemaCreatorParseAttemptDto | null;
39182
+ }
39183
+
39184
+ export interface SchemaCreatorXmlGeometryDto {
39185
+ xmlAttributeId: number;
39186
+ snipRect: SchemaCreatorRectDto;
39187
+ balloon: SchemaCreatorPointDto;
39188
+ pageIndex: number;
39189
+ }
39190
+
39191
+ export interface RenderSchemaCreatorElementSnipImageRequest {
39192
+ pageIndex: number;
39193
+ snip: SchemaCreatorSnipDto;
39194
+ }
39195
+
38604
39196
  export interface MeasurementFormSchemaDto {
38605
39197
  id: string;
38606
39198
  versionId: number;
@@ -38635,12 +39227,8 @@ export type MeasurementFormStatus = "Draft" | "Released" | "Revoked";
38635
39227
 
38636
39228
  export type MeasurementFormSource = "Unknown" | "InspectionXpert" | "Excel" | "Manual";
38637
39229
 
38638
- export type UnitOfMeasureDto = "Millimeter" | "Inch";
38639
-
38640
39230
  export type DimensionSettingDto = "Tolerance" | "MinMaxDimension";
38641
39231
 
38642
- export type GeneralToleranceDto = "NotSet" | "Fine" | "Medium" | "Coarse" | "VeryCoarse";
38643
-
38644
39232
  export interface MeasurementFormSchemaAttachmentDto {
38645
39233
  url: string;
38646
39234
  title: string;
@@ -38650,6 +39238,7 @@ export interface MeasurementFormGroupedElementDto {
38650
39238
  id: string;
38651
39239
  balloonId?: string | null;
38652
39240
  reference: number;
39241
+ originalXmlId?: number | null;
38653
39242
  imageUrl?: string | null;
38654
39243
  thumbnailUrl?: string | null;
38655
39244
  section?: string | null;
@@ -38691,8 +39280,6 @@ export interface MeasurementFormGroupedElementDto {
38691
39280
  validationErrorMessage?: string | null;
38692
39281
  }
38693
39282
 
38694
- export type MeasurementFrequency = "All" | "FirstArticle" | "NFirst" | "NPercent" | "ISO2859" | "Nth" | "FirstAndLast" | "None";
38695
-
38696
39283
  export type MeasurementFormValueType = "None" | "Bool" | "Decimal" | "String";
38697
39284
 
38698
39285
  export type BonusType = "None" | "Positive" | "PositiveAndNegative";
@@ -38811,11 +39398,6 @@ export interface UpdateSchemaSettingsRequest {
38811
39398
  generalTolerance: GeneralToleranceDto;
38812
39399
  }
38813
39400
 
38814
- export interface UploadDrawingRequest {
38815
- uploadKey: string;
38816
- filename: string;
38817
- }
38818
-
38819
39401
  export interface UploadRequest {
38820
39402
  uploadKey: string;
38821
39403
  filename: string;
@@ -38902,6 +39484,8 @@ export interface MeasurementFormCustomerSettingsDto {
38902
39484
  validationRuleId?: string | null;
38903
39485
  requireCalibratedTools: boolean;
38904
39486
  allowEmptyToolListInValue: boolean;
39487
+ disableAiParseDocument: boolean;
39488
+ disableAiParseSnip: boolean;
38905
39489
  }
38906
39490
 
38907
39491
  export interface UpdateMeasurementFormCustomerSettings {
@@ -38911,6 +39495,8 @@ export interface UpdateMeasurementFormCustomerSettings {
38911
39495
  validationRuleId?: string | null;
38912
39496
  requireCalibratedTools: boolean;
38913
39497
  allowEmptyToolListInValue: boolean;
39498
+ disableAiParseDocument: boolean;
39499
+ disableAiParseSnip: boolean;
38914
39500
  }
38915
39501
 
38916
39502
  export interface MeasurementFormMappingDto {
@@ -39016,6 +39602,11 @@ export interface SetMeasurementFormNeedAsNotNeededRequest {
39016
39602
  comment?: string | null;
39017
39603
  }
39018
39604
 
39605
+ export interface UploadDrawingRequest {
39606
+ uploadKey: string;
39607
+ filename: string;
39608
+ }
39609
+
39019
39610
  export interface PagedResultOfMeasurementFormSchemaNotNeededDto {
39020
39611
  results: MeasurementFormSchemaNotNeededDto[];
39021
39612
  continuationToken?: string | null;