@ignos/api-client 20260908.263.1 → 20260909.265.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,6 +26611,11 @@ export interface IMeasurementFormSchemasAdminClient {
26194
26611
 
26195
26612
  updateSchemaSettings(id: string, request: UpdateSchemaSettingsRequest): Promise<UpdateSchemaSettingsRequest>;
26196
26613
 
26614
+ uploadSchemaMarkedDrawing(id: string, request: UploadDrawingRequest): Promise<MeasurementFormSchemaDto>;
26615
+
26616
+ /**
26617
+ * @deprecated
26618
+ */
26197
26619
  uploadSchemaDrawing(id: string, request: UploadDrawingRequest): Promise<MeasurementFormSchemaDto>;
26198
26620
 
26199
26621
  uploadSchemaAttachment(id: string, request: UploadRequest): Promise<MeasurementFormSchemaDto>;
@@ -26708,6 +27130,51 @@ export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase impleme
26708
27130
  return Promise.resolve<UpdateSchemaSettingsRequest>(null as any);
26709
27131
  }
26710
27132
 
27133
+ uploadSchemaMarkedDrawing(id: string, request: UploadDrawingRequest): Promise<MeasurementFormSchemaDto> {
27134
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploadmarkeddrawing";
27135
+ if (id === undefined || id === null)
27136
+ throw new globalThis.Error("The parameter 'id' must be defined.");
27137
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
27138
+ url_ = url_.replace(/[?&]$/, "");
27139
+
27140
+ const content_ = JSON.stringify(request);
27141
+
27142
+ let options_: RequestInit = {
27143
+ body: content_,
27144
+ method: "POST",
27145
+ headers: {
27146
+ "Content-Type": "application/json",
27147
+ "Accept": "application/json"
27148
+ }
27149
+ };
27150
+
27151
+ return this.transformOptions(options_).then(transformedOptions_ => {
27152
+ return this.http.fetch(url_, transformedOptions_);
27153
+ }).then((_response: Response) => {
27154
+ return this.processUploadSchemaMarkedDrawing(_response);
27155
+ });
27156
+ }
27157
+
27158
+ protected processUploadSchemaMarkedDrawing(response: Response): Promise<MeasurementFormSchemaDto> {
27159
+ const status = response.status;
27160
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
27161
+ if (status === 200) {
27162
+ return response.text().then((_responseText) => {
27163
+ let result200: any = null;
27164
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as MeasurementFormSchemaDto;
27165
+ return result200;
27166
+ });
27167
+ } else if (status !== 200 && status !== 204) {
27168
+ return response.text().then((_responseText) => {
27169
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
27170
+ });
27171
+ }
27172
+ return Promise.resolve<MeasurementFormSchemaDto>(null as any);
27173
+ }
27174
+
27175
+ /**
27176
+ * @deprecated
27177
+ */
26711
27178
  uploadSchemaDrawing(id: string, request: UploadDrawingRequest): Promise<MeasurementFormSchemaDto> {
26712
27179
  let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploaddrawing";
26713
27180
  if (id === undefined || id === null)
@@ -28838,6 +29305,8 @@ export interface IMeasurementFormsInstancesClient {
28838
29305
 
28839
29306
  getMeasurementFormInstanceSchema(id: string, schemaId: string, serialNumber: string | null | undefined, tenantId: string | null | undefined): Promise<MeasurementFormInstanceSchemaDto>;
28840
29307
 
29308
+ getMeasurementFormInstanceSchemaCreatorState(id: string, schemaId: string, tenantId: string | null | undefined): Promise<SchemaCreatorStateDto>;
29309
+
28841
29310
  getWorkorderMeasurementFormProgress(id: string, tenantId: string | null | undefined): Promise<MeasurementFormInstanceProgressDto>;
28842
29311
 
28843
29312
  getAuditLog(id: string, tenantId: string | null | undefined, schemaId: string | null | undefined, serialNumber: string | null | undefined, elementId: string | null | undefined): Promise<MeasurementFormElementValueAuditDto[]>;
@@ -29171,6 +29640,49 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
29171
29640
  return Promise.resolve<MeasurementFormInstanceSchemaDto>(null as any);
29172
29641
  }
29173
29642
 
29643
+ getMeasurementFormInstanceSchemaCreatorState(id: string, schemaId: string, tenantId: string | null | undefined): Promise<SchemaCreatorStateDto> {
29644
+ let url_ = this.baseUrl + "/measurementforms/instances/{id}/schemas/{schemaId}/creatorstate?";
29645
+ if (id === undefined || id === null)
29646
+ throw new globalThis.Error("The parameter 'id' must be defined.");
29647
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
29648
+ if (schemaId === undefined || schemaId === null)
29649
+ throw new globalThis.Error("The parameter 'schemaId' must be defined.");
29650
+ url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
29651
+ if (tenantId !== undefined && tenantId !== null)
29652
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
29653
+ url_ = url_.replace(/[?&]$/, "");
29654
+
29655
+ let options_: RequestInit = {
29656
+ method: "GET",
29657
+ headers: {
29658
+ "Accept": "application/json"
29659
+ }
29660
+ };
29661
+
29662
+ return this.transformOptions(options_).then(transformedOptions_ => {
29663
+ return this.http.fetch(url_, transformedOptions_);
29664
+ }).then((_response: Response) => {
29665
+ return this.processGetMeasurementFormInstanceSchemaCreatorState(_response);
29666
+ });
29667
+ }
29668
+
29669
+ protected processGetMeasurementFormInstanceSchemaCreatorState(response: Response): Promise<SchemaCreatorStateDto> {
29670
+ const status = response.status;
29671
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
29672
+ if (status === 200) {
29673
+ return response.text().then((_responseText) => {
29674
+ let result200: any = null;
29675
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as SchemaCreatorStateDto;
29676
+ return result200;
29677
+ });
29678
+ } else if (status !== 200 && status !== 204) {
29679
+ return response.text().then((_responseText) => {
29680
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
29681
+ });
29682
+ }
29683
+ return Promise.resolve<SchemaCreatorStateDto>(null as any);
29684
+ }
29685
+
29174
29686
  getWorkorderMeasurementFormProgress(id: string, tenantId: string | null | undefined): Promise<MeasurementFormInstanceProgressDto> {
29175
29687
  let url_ = this.baseUrl + "/measurementforms/instances/{id}/progress?";
29176
29688
  if (id === undefined || id === null)
@@ -38601,6 +39113,136 @@ export interface ImaSpecificationLiteDto {
38601
39113
  isDeleted: boolean;
38602
39114
  }
38603
39115
 
39116
+ export interface SchemaCreatorStateDto {
39117
+ settings: SchemaCreatorSettingsDto;
39118
+ elements: SchemaCreatorElementDto[];
39119
+ documentParseStatus?: SchemaCreatorDocumentParseStatusDto | null;
39120
+ isAutoGenerated?: boolean;
39121
+ createdBy?: SchemaCreatorAuditInfoDto | null;
39122
+ createdAt?: Date | null;
39123
+ updatedBy?: SchemaCreatorAuditInfoDto | null;
39124
+ updatedAt?: Date | null;
39125
+ }
39126
+
39127
+ export interface SchemaCreatorSettingsDto {
39128
+ unit?: SchemaCreatorUnitOfMeasureDto;
39129
+ tolerance?: GeneralToleranceDto;
39130
+ balloonSize?: number;
39131
+ transparentBalloons?: boolean;
39132
+ }
39133
+
39134
+ export type SchemaCreatorUnitOfMeasureDto = "Millimeter" | "Inch" | "Mixed";
39135
+
39136
+ export type GeneralToleranceDto = "NotSet" | "Fine" | "Medium" | "Coarse" | "VeryCoarse";
39137
+
39138
+ export interface SchemaCreatorElementDto {
39139
+ id: string;
39140
+ kind: SchemaCreatorElementKindDto;
39141
+ drawings: SchemaCreatorElementDrawingsDto;
39142
+ isDirty?: boolean | null;
39143
+ values?: SchemaCreatorElementValuesDto | null;
39144
+ parseResult?: SchemaCreatorSnipResultDto | null;
39145
+ resolveAttempt?: SchemaCreatorParseAttemptDto | null;
39146
+ createdBy?: SchemaCreatorAuditInfoDto | null;
39147
+ createdAt?: Date | null;
39148
+ updatedBy?: SchemaCreatorAuditInfoDto | null;
39149
+ updatedAt?: Date | null;
39150
+ }
39151
+
39152
+ export type SchemaCreatorElementKindDto = "Pending" | "Auto" | "Manual";
39153
+
39154
+ export interface SchemaCreatorElementDrawingsDto {
39155
+ snip: SchemaCreatorSnipDto;
39156
+ balloon: SchemaCreatorPointDto;
39157
+ pageIndex: number;
39158
+ }
39159
+
39160
+ export interface SchemaCreatorSnipDto {
39161
+ rect: SchemaCreatorRectDto;
39162
+ rotation?: number | null;
39163
+ unrotatedRect?: SchemaCreatorRectDto | null;
39164
+ }
39165
+
39166
+ export interface SchemaCreatorRectDto {
39167
+ origin: SchemaCreatorPointDto;
39168
+ size: SchemaCreatorSizeDto;
39169
+ }
39170
+
39171
+ export interface SchemaCreatorPointDto {
39172
+ x: number;
39173
+ y: number;
39174
+ }
39175
+
39176
+ export interface SchemaCreatorSizeDto {
39177
+ width: number;
39178
+ height: number;
39179
+ }
39180
+
39181
+ export interface SchemaCreatorElementValuesDto {
39182
+ reference: number;
39183
+ unit?: UnitOfMeasureDto | null;
39184
+ nominal?: number | null;
39185
+ nominalText?: string | null;
39186
+ upperLimit?: number | null;
39187
+ lowerLimit?: number | null;
39188
+ plusTolerance?: number | null;
39189
+ minusTolerance?: number | null;
39190
+ coatingThickness?: number | null;
39191
+ measurementFrequency: MeasurementFrequency;
39192
+ measurementFrequencyParameter?: number | null;
39193
+ type?: string | null;
39194
+ count?: number | null;
39195
+ comment?: string | null;
39196
+ canCopy: boolean;
39197
+ visibleToCustomer: boolean;
39198
+ isDocumentedExternally: boolean;
39199
+ }
39200
+
39201
+ export type UnitOfMeasureDto = "Millimeter" | "Inch";
39202
+
39203
+ export type MeasurementFrequency = "All" | "FirstArticle" | "NFirst" | "NPercent" | "ISO2859" | "Nth" | "FirstAndLast" | "None";
39204
+
39205
+ export interface SchemaCreatorSnipResultDto {
39206
+ nominal?: number | null;
39207
+ nominalText?: string | null;
39208
+ upperLimit?: number | null;
39209
+ lowerLimit?: number | null;
39210
+ plusTolerance?: number | null;
39211
+ minusTolerance?: number | null;
39212
+ count?: number | null;
39213
+ }
39214
+
39215
+ export interface SchemaCreatorParseAttemptDto {
39216
+ startedAt: Date;
39217
+ errorType?: SchemaCreatorParseErrorTypeDto | null;
39218
+ errorMessage?: string | null;
39219
+ }
39220
+
39221
+ export type SchemaCreatorParseErrorTypeDto = "Timeout" | "ParseError";
39222
+
39223
+ export interface SchemaCreatorAuditInfoDto {
39224
+ objectId: string;
39225
+ userId: string;
39226
+ userFullName?: string | null;
39227
+ }
39228
+
39229
+ export interface SchemaCreatorDocumentParseStatusDto {
39230
+ inProgress: boolean;
39231
+ attempt?: SchemaCreatorParseAttemptDto | null;
39232
+ }
39233
+
39234
+ export interface SchemaCreatorXmlGeometryDto {
39235
+ xmlAttributeId: number;
39236
+ snipRect: SchemaCreatorRectDto;
39237
+ balloon: SchemaCreatorPointDto;
39238
+ pageIndex: number;
39239
+ }
39240
+
39241
+ export interface RenderSchemaCreatorElementSnipImageRequest {
39242
+ pageIndex: number;
39243
+ snip: SchemaCreatorSnipDto;
39244
+ }
39245
+
38604
39246
  export interface MeasurementFormSchemaDto {
38605
39247
  id: string;
38606
39248
  versionId: number;
@@ -38635,12 +39277,8 @@ export type MeasurementFormStatus = "Draft" | "Released" | "Revoked";
38635
39277
 
38636
39278
  export type MeasurementFormSource = "Unknown" | "InspectionXpert" | "Excel" | "Manual";
38637
39279
 
38638
- export type UnitOfMeasureDto = "Millimeter" | "Inch";
38639
-
38640
39280
  export type DimensionSettingDto = "Tolerance" | "MinMaxDimension";
38641
39281
 
38642
- export type GeneralToleranceDto = "NotSet" | "Fine" | "Medium" | "Coarse" | "VeryCoarse";
38643
-
38644
39282
  export interface MeasurementFormSchemaAttachmentDto {
38645
39283
  url: string;
38646
39284
  title: string;
@@ -38650,6 +39288,7 @@ export interface MeasurementFormGroupedElementDto {
38650
39288
  id: string;
38651
39289
  balloonId?: string | null;
38652
39290
  reference: number;
39291
+ originalXmlId?: number | null;
38653
39292
  imageUrl?: string | null;
38654
39293
  thumbnailUrl?: string | null;
38655
39294
  section?: string | null;
@@ -38691,8 +39330,6 @@ export interface MeasurementFormGroupedElementDto {
38691
39330
  validationErrorMessage?: string | null;
38692
39331
  }
38693
39332
 
38694
- export type MeasurementFrequency = "All" | "FirstArticle" | "NFirst" | "NPercent" | "ISO2859" | "Nth" | "FirstAndLast" | "None";
38695
-
38696
39333
  export type MeasurementFormValueType = "None" | "Bool" | "Decimal" | "String";
38697
39334
 
38698
39335
  export type BonusType = "None" | "Positive" | "PositiveAndNegative";
@@ -38819,6 +39456,7 @@ export interface UploadDrawingRequest {
38819
39456
  export interface UploadRequest {
38820
39457
  uploadKey: string;
38821
39458
  filename: string;
39459
+ isMarkedDrawing?: boolean | null;
38822
39460
  }
38823
39461
 
38824
39462
  export interface MeasurementFormImportStatusDto {
@@ -38902,6 +39540,8 @@ export interface MeasurementFormCustomerSettingsDto {
38902
39540
  validationRuleId?: string | null;
38903
39541
  requireCalibratedTools: boolean;
38904
39542
  allowEmptyToolListInValue: boolean;
39543
+ disableAiParseDocument: boolean;
39544
+ disableAiParseSnip: boolean;
38905
39545
  }
38906
39546
 
38907
39547
  export interface UpdateMeasurementFormCustomerSettings {
@@ -38911,6 +39551,8 @@ export interface UpdateMeasurementFormCustomerSettings {
38911
39551
  validationRuleId?: string | null;
38912
39552
  requireCalibratedTools: boolean;
38913
39553
  allowEmptyToolListInValue: boolean;
39554
+ disableAiParseDocument: boolean;
39555
+ disableAiParseSnip: boolean;
38914
39556
  }
38915
39557
 
38916
39558
  export interface MeasurementFormMappingDto {