@ignos/api-client 20260905.259.1-alpha → 20260907.261.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.
- package/lib/ignosportal-api.d.ts +15 -191
- package/lib/ignosportal-api.js +4 -371
- package/package.json +1 -1
- package/src/ignosportal-api.ts +21 -543
package/src/ignosportal-api.ts
CHANGED
|
@@ -26172,371 +26172,6 @@ export class InspectMatchSpecificationsClient extends AuthorizedApiBase implemen
|
|
|
26172
26172
|
}
|
|
26173
26173
|
}
|
|
26174
26174
|
|
|
26175
|
-
export interface IInspectSchemaCreatorClient {
|
|
26176
|
-
|
|
26177
|
-
getSchemaCreatorState(id: 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(id: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto>;
|
|
26184
|
-
|
|
26185
|
-
updateSchemaCreatorState(id: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto>;
|
|
26186
|
-
|
|
26187
|
-
/**
|
|
26188
|
-
* Starts a full drawing AI parse: clears every element and locks the
|
|
26189
|
-
schema for every viewer until it completes. If one is already in
|
|
26190
|
-
progress, returns that instead of starting a second one.
|
|
26191
|
-
*/
|
|
26192
|
-
requestSchemaCreatorDocumentParse(id: string): Promise<SchemaCreatorStateDto>;
|
|
26193
|
-
|
|
26194
|
-
/**
|
|
26195
|
-
* Stamps the creator state's balloons onto the schema's drawing PDF and
|
|
26196
|
-
returns a temporary download link.
|
|
26197
|
-
*/
|
|
26198
|
-
exportSchemaCreatorDrawing(id: string): Promise<DownloadDto>;
|
|
26199
|
-
|
|
26200
|
-
/**
|
|
26201
|
-
* Starts an async snip resolve; the result is delivered through the
|
|
26202
|
-
SchemaCreatorSnipResolved SignalR notification.
|
|
26203
|
-
* @param image (optional)
|
|
26204
|
-
*/
|
|
26205
|
-
requestSchemaCreatorSnipParse(id: string, elementId: string, image: FileParameter | null | undefined): Promise<void>;
|
|
26206
|
-
|
|
26207
|
-
/**
|
|
26208
|
-
* Renders the legacy-format image for one element's current snip.
|
|
26209
|
-
Fire-and-forget from the client on every snip commit - the resulting
|
|
26210
|
-
image isn't returned here, it's only ever read back once the schema
|
|
26211
|
-
is released (SchemaCreatorLegacyMapper).
|
|
26212
|
-
*/
|
|
26213
|
-
renderSchemaCreatorElementSnipImage(id: string, elementId: string, request: RenderSchemaCreatorElementSnipImageRequest): Promise<void>;
|
|
26214
|
-
}
|
|
26215
|
-
|
|
26216
|
-
export class InspectSchemaCreatorClient extends AuthorizedApiBase implements IInspectSchemaCreatorClient {
|
|
26217
|
-
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
|
|
26218
|
-
private baseUrl: string;
|
|
26219
|
-
|
|
26220
|
-
constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
|
|
26221
|
-
super(configuration);
|
|
26222
|
-
this.http = http ? http : window as any;
|
|
26223
|
-
this.baseUrl = baseUrl ?? "";
|
|
26224
|
-
}
|
|
26225
|
-
|
|
26226
|
-
getSchemaCreatorState(id: string): Promise<SchemaCreatorStateDto> {
|
|
26227
|
-
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate";
|
|
26228
|
-
if (id === undefined || id === null)
|
|
26229
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
26230
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
26231
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
26232
|
-
|
|
26233
|
-
let options_: RequestInit = {
|
|
26234
|
-
method: "GET",
|
|
26235
|
-
headers: {
|
|
26236
|
-
"Accept": "application/json"
|
|
26237
|
-
}
|
|
26238
|
-
};
|
|
26239
|
-
|
|
26240
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
26241
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
26242
|
-
}).then((_response: Response) => {
|
|
26243
|
-
return this.processGetSchemaCreatorState(_response);
|
|
26244
|
-
});
|
|
26245
|
-
}
|
|
26246
|
-
|
|
26247
|
-
protected processGetSchemaCreatorState(response: Response): Promise<SchemaCreatorStateDto> {
|
|
26248
|
-
const status = response.status;
|
|
26249
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
26250
|
-
if (status === 200) {
|
|
26251
|
-
return response.text().then((_responseText) => {
|
|
26252
|
-
let result200: any = null;
|
|
26253
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as SchemaCreatorStateDto;
|
|
26254
|
-
return result200;
|
|
26255
|
-
});
|
|
26256
|
-
} else if (status !== 200 && status !== 204) {
|
|
26257
|
-
return response.text().then((_responseText) => {
|
|
26258
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
26259
|
-
});
|
|
26260
|
-
}
|
|
26261
|
-
return Promise.resolve<SchemaCreatorStateDto>(null as any);
|
|
26262
|
-
}
|
|
26263
|
-
|
|
26264
|
-
/**
|
|
26265
|
-
* Creates the initial creator state for a schema version. Returns 409 if
|
|
26266
|
-
state already exists; the caller should re-fetch it instead of writing.
|
|
26267
|
-
*/
|
|
26268
|
-
createSchemaCreatorState(id: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto> {
|
|
26269
|
-
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate";
|
|
26270
|
-
if (id === undefined || id === null)
|
|
26271
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
26272
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
26273
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
26274
|
-
|
|
26275
|
-
const content_ = JSON.stringify(state);
|
|
26276
|
-
|
|
26277
|
-
let options_: RequestInit = {
|
|
26278
|
-
body: content_,
|
|
26279
|
-
method: "POST",
|
|
26280
|
-
headers: {
|
|
26281
|
-
"Content-Type": "application/json",
|
|
26282
|
-
"Accept": "application/json"
|
|
26283
|
-
}
|
|
26284
|
-
};
|
|
26285
|
-
|
|
26286
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
26287
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
26288
|
-
}).then((_response: Response) => {
|
|
26289
|
-
return this.processCreateSchemaCreatorState(_response);
|
|
26290
|
-
});
|
|
26291
|
-
}
|
|
26292
|
-
|
|
26293
|
-
protected processCreateSchemaCreatorState(response: Response): Promise<SchemaCreatorStateDto> {
|
|
26294
|
-
const status = response.status;
|
|
26295
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
26296
|
-
if (status === 201) {
|
|
26297
|
-
return response.text().then((_responseText) => {
|
|
26298
|
-
let result201: any = null;
|
|
26299
|
-
result201 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as SchemaCreatorStateDto;
|
|
26300
|
-
return result201;
|
|
26301
|
-
});
|
|
26302
|
-
} else if (status === 409) {
|
|
26303
|
-
return response.text().then((_responseText) => {
|
|
26304
|
-
let result409: any = null;
|
|
26305
|
-
result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ProblemDetails;
|
|
26306
|
-
return throwException("A server side error occurred.", status, _responseText, _headers, result409);
|
|
26307
|
-
});
|
|
26308
|
-
} else if (status !== 200 && status !== 204) {
|
|
26309
|
-
return response.text().then((_responseText) => {
|
|
26310
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
26311
|
-
});
|
|
26312
|
-
}
|
|
26313
|
-
return Promise.resolve<SchemaCreatorStateDto>(null as any);
|
|
26314
|
-
}
|
|
26315
|
-
|
|
26316
|
-
updateSchemaCreatorState(id: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto> {
|
|
26317
|
-
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate";
|
|
26318
|
-
if (id === undefined || id === null)
|
|
26319
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
26320
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
26321
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
26322
|
-
|
|
26323
|
-
const content_ = JSON.stringify(state);
|
|
26324
|
-
|
|
26325
|
-
let options_: RequestInit = {
|
|
26326
|
-
body: content_,
|
|
26327
|
-
method: "PUT",
|
|
26328
|
-
headers: {
|
|
26329
|
-
"Content-Type": "application/json",
|
|
26330
|
-
"Accept": "application/json"
|
|
26331
|
-
}
|
|
26332
|
-
};
|
|
26333
|
-
|
|
26334
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
26335
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
26336
|
-
}).then((_response: Response) => {
|
|
26337
|
-
return this.processUpdateSchemaCreatorState(_response);
|
|
26338
|
-
});
|
|
26339
|
-
}
|
|
26340
|
-
|
|
26341
|
-
protected processUpdateSchemaCreatorState(response: Response): Promise<SchemaCreatorStateDto> {
|
|
26342
|
-
const status = response.status;
|
|
26343
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
26344
|
-
if (status === 200) {
|
|
26345
|
-
return response.text().then((_responseText) => {
|
|
26346
|
-
let result200: any = null;
|
|
26347
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as SchemaCreatorStateDto;
|
|
26348
|
-
return result200;
|
|
26349
|
-
});
|
|
26350
|
-
} else if (status !== 200 && status !== 204) {
|
|
26351
|
-
return response.text().then((_responseText) => {
|
|
26352
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
26353
|
-
});
|
|
26354
|
-
}
|
|
26355
|
-
return Promise.resolve<SchemaCreatorStateDto>(null as any);
|
|
26356
|
-
}
|
|
26357
|
-
|
|
26358
|
-
/**
|
|
26359
|
-
* Starts a full drawing AI parse: clears every element and locks the
|
|
26360
|
-
schema for every viewer until it completes. If one is already in
|
|
26361
|
-
progress, returns that instead of starting a second one.
|
|
26362
|
-
*/
|
|
26363
|
-
requestSchemaCreatorDocumentParse(id: string): Promise<SchemaCreatorStateDto> {
|
|
26364
|
-
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate/parse-document";
|
|
26365
|
-
if (id === undefined || id === null)
|
|
26366
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
26367
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
26368
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
26369
|
-
|
|
26370
|
-
let options_: RequestInit = {
|
|
26371
|
-
method: "POST",
|
|
26372
|
-
headers: {
|
|
26373
|
-
"Accept": "application/json"
|
|
26374
|
-
}
|
|
26375
|
-
};
|
|
26376
|
-
|
|
26377
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
26378
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
26379
|
-
}).then((_response: Response) => {
|
|
26380
|
-
return this.processRequestSchemaCreatorDocumentParse(_response);
|
|
26381
|
-
});
|
|
26382
|
-
}
|
|
26383
|
-
|
|
26384
|
-
protected processRequestSchemaCreatorDocumentParse(response: Response): Promise<SchemaCreatorStateDto> {
|
|
26385
|
-
const status = response.status;
|
|
26386
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
26387
|
-
if (status === 200) {
|
|
26388
|
-
return response.text().then((_responseText) => {
|
|
26389
|
-
let result200: any = null;
|
|
26390
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as SchemaCreatorStateDto;
|
|
26391
|
-
return result200;
|
|
26392
|
-
});
|
|
26393
|
-
} else if (status !== 200 && status !== 204) {
|
|
26394
|
-
return response.text().then((_responseText) => {
|
|
26395
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
26396
|
-
});
|
|
26397
|
-
}
|
|
26398
|
-
return Promise.resolve<SchemaCreatorStateDto>(null as any);
|
|
26399
|
-
}
|
|
26400
|
-
|
|
26401
|
-
/**
|
|
26402
|
-
* Stamps the creator state's balloons onto the schema's drawing PDF and
|
|
26403
|
-
returns a temporary download link.
|
|
26404
|
-
*/
|
|
26405
|
-
exportSchemaCreatorDrawing(id: string): Promise<DownloadDto> {
|
|
26406
|
-
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate/download";
|
|
26407
|
-
if (id === undefined || id === null)
|
|
26408
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
26409
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
26410
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
26411
|
-
|
|
26412
|
-
let options_: RequestInit = {
|
|
26413
|
-
method: "POST",
|
|
26414
|
-
headers: {
|
|
26415
|
-
"Accept": "application/json"
|
|
26416
|
-
}
|
|
26417
|
-
};
|
|
26418
|
-
|
|
26419
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
26420
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
26421
|
-
}).then((_response: Response) => {
|
|
26422
|
-
return this.processExportSchemaCreatorDrawing(_response);
|
|
26423
|
-
});
|
|
26424
|
-
}
|
|
26425
|
-
|
|
26426
|
-
protected processExportSchemaCreatorDrawing(response: Response): Promise<DownloadDto> {
|
|
26427
|
-
const status = response.status;
|
|
26428
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
26429
|
-
if (status === 200) {
|
|
26430
|
-
return response.text().then((_responseText) => {
|
|
26431
|
-
let result200: any = null;
|
|
26432
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as DownloadDto;
|
|
26433
|
-
return result200;
|
|
26434
|
-
});
|
|
26435
|
-
} else if (status !== 200 && status !== 204) {
|
|
26436
|
-
return response.text().then((_responseText) => {
|
|
26437
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
26438
|
-
});
|
|
26439
|
-
}
|
|
26440
|
-
return Promise.resolve<DownloadDto>(null as any);
|
|
26441
|
-
}
|
|
26442
|
-
|
|
26443
|
-
/**
|
|
26444
|
-
* Starts an async snip resolve; the result is delivered through the
|
|
26445
|
-
SchemaCreatorSnipResolved SignalR notification.
|
|
26446
|
-
* @param image (optional)
|
|
26447
|
-
*/
|
|
26448
|
-
requestSchemaCreatorSnipParse(id: string, elementId: string, image: FileParameter | null | undefined): Promise<void> {
|
|
26449
|
-
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate/elements/{elementId}/parse-snip";
|
|
26450
|
-
if (id === undefined || id === null)
|
|
26451
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
26452
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
26453
|
-
if (elementId === undefined || elementId === null)
|
|
26454
|
-
throw new globalThis.Error("The parameter 'elementId' must be defined.");
|
|
26455
|
-
url_ = url_.replace("{elementId}", encodeURIComponent("" + elementId));
|
|
26456
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
26457
|
-
|
|
26458
|
-
const content_ = new FormData();
|
|
26459
|
-
if (image !== null && image !== undefined)
|
|
26460
|
-
content_.append("image", image.data, image.fileName ? image.fileName : "image");
|
|
26461
|
-
|
|
26462
|
-
let options_: RequestInit = {
|
|
26463
|
-
body: content_,
|
|
26464
|
-
method: "POST",
|
|
26465
|
-
headers: {
|
|
26466
|
-
}
|
|
26467
|
-
};
|
|
26468
|
-
|
|
26469
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
26470
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
26471
|
-
}).then((_response: Response) => {
|
|
26472
|
-
return this.processRequestSchemaCreatorSnipParse(_response);
|
|
26473
|
-
});
|
|
26474
|
-
}
|
|
26475
|
-
|
|
26476
|
-
protected processRequestSchemaCreatorSnipParse(response: Response): Promise<void> {
|
|
26477
|
-
const status = response.status;
|
|
26478
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
26479
|
-
if (status === 200) {
|
|
26480
|
-
return response.text().then((_responseText) => {
|
|
26481
|
-
return;
|
|
26482
|
-
});
|
|
26483
|
-
} else if (status !== 200 && status !== 204) {
|
|
26484
|
-
return response.text().then((_responseText) => {
|
|
26485
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
26486
|
-
});
|
|
26487
|
-
}
|
|
26488
|
-
return Promise.resolve<void>(null as any);
|
|
26489
|
-
}
|
|
26490
|
-
|
|
26491
|
-
/**
|
|
26492
|
-
* Renders the legacy-format image for one element's current snip.
|
|
26493
|
-
Fire-and-forget from the client on every snip commit - the resulting
|
|
26494
|
-
image isn't returned here, it's only ever read back once the schema
|
|
26495
|
-
is released (SchemaCreatorLegacyMapper).
|
|
26496
|
-
*/
|
|
26497
|
-
renderSchemaCreatorElementSnipImage(id: string, elementId: string, request: RenderSchemaCreatorElementSnipImageRequest): Promise<void> {
|
|
26498
|
-
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate/elements/{elementId}/snip-image";
|
|
26499
|
-
if (id === undefined || id === null)
|
|
26500
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
26501
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
26502
|
-
if (elementId === undefined || elementId === null)
|
|
26503
|
-
throw new globalThis.Error("The parameter 'elementId' must be defined.");
|
|
26504
|
-
url_ = url_.replace("{elementId}", encodeURIComponent("" + elementId));
|
|
26505
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
26506
|
-
|
|
26507
|
-
const content_ = JSON.stringify(request);
|
|
26508
|
-
|
|
26509
|
-
let options_: RequestInit = {
|
|
26510
|
-
body: content_,
|
|
26511
|
-
method: "POST",
|
|
26512
|
-
headers: {
|
|
26513
|
-
"Content-Type": "application/json",
|
|
26514
|
-
}
|
|
26515
|
-
};
|
|
26516
|
-
|
|
26517
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
26518
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
26519
|
-
}).then((_response: Response) => {
|
|
26520
|
-
return this.processRenderSchemaCreatorElementSnipImage(_response);
|
|
26521
|
-
});
|
|
26522
|
-
}
|
|
26523
|
-
|
|
26524
|
-
protected processRenderSchemaCreatorElementSnipImage(response: Response): Promise<void> {
|
|
26525
|
-
const status = response.status;
|
|
26526
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
26527
|
-
if (status === 200) {
|
|
26528
|
-
return response.text().then((_responseText) => {
|
|
26529
|
-
return;
|
|
26530
|
-
});
|
|
26531
|
-
} else if (status !== 200 && status !== 204) {
|
|
26532
|
-
return response.text().then((_responseText) => {
|
|
26533
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
26534
|
-
});
|
|
26535
|
-
}
|
|
26536
|
-
return Promise.resolve<void>(null as any);
|
|
26537
|
-
}
|
|
26538
|
-
}
|
|
26539
|
-
|
|
26540
26175
|
export interface IMeasurementFormSchemasAdminClient {
|
|
26541
26176
|
|
|
26542
26177
|
getArchivedMeasurementFormSchema(id: string): Promise<MeasurementFormSchemaDto>;
|
|
@@ -26559,7 +26194,7 @@ export interface IMeasurementFormSchemasAdminClient {
|
|
|
26559
26194
|
|
|
26560
26195
|
updateSchemaSettings(id: string, request: UpdateSchemaSettingsRequest): Promise<UpdateSchemaSettingsRequest>;
|
|
26561
26196
|
|
|
26562
|
-
|
|
26197
|
+
uploadSchemaDrawing(id: string, request: UploadDrawingRequest): Promise<MeasurementFormSchemaDto>;
|
|
26563
26198
|
|
|
26564
26199
|
uploadSchemaAttachment(id: string, request: UploadRequest): Promise<MeasurementFormSchemaDto>;
|
|
26565
26200
|
|
|
@@ -27073,8 +26708,8 @@ export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase impleme
|
|
|
27073
26708
|
return Promise.resolve<UpdateSchemaSettingsRequest>(null as any);
|
|
27074
26709
|
}
|
|
27075
26710
|
|
|
27076
|
-
|
|
27077
|
-
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/
|
|
26711
|
+
uploadSchemaDrawing(id: string, request: UploadDrawingRequest): Promise<MeasurementFormSchemaDto> {
|
|
26712
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploaddrawing";
|
|
27078
26713
|
if (id === undefined || id === null)
|
|
27079
26714
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
27080
26715
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
@@ -27094,11 +26729,11 @@ export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase impleme
|
|
|
27094
26729
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
27095
26730
|
return this.http.fetch(url_, transformedOptions_);
|
|
27096
26731
|
}).then((_response: Response) => {
|
|
27097
|
-
return this.
|
|
26732
|
+
return this.processUploadSchemaDrawing(_response);
|
|
27098
26733
|
});
|
|
27099
26734
|
}
|
|
27100
26735
|
|
|
27101
|
-
protected
|
|
26736
|
+
protected processUploadSchemaDrawing(response: Response): Promise<MeasurementFormSchemaDto> {
|
|
27102
26737
|
const status = response.status;
|
|
27103
26738
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
27104
26739
|
if (status === 200) {
|
|
@@ -29203,8 +28838,6 @@ export interface IMeasurementFormsInstancesClient {
|
|
|
29203
28838
|
|
|
29204
28839
|
getMeasurementFormInstanceSchema(id: string, schemaId: string, serialNumber: string | null | undefined, tenantId: string | null | undefined): Promise<MeasurementFormInstanceSchemaDto>;
|
|
29205
28840
|
|
|
29206
|
-
getMeasurementFormInstanceSchemaCreatorState(id: string, schemaId: string, tenantId: string | null | undefined): Promise<SchemaCreatorStateDto>;
|
|
29207
|
-
|
|
29208
28841
|
getWorkorderMeasurementFormProgress(id: string, tenantId: string | null | undefined): Promise<MeasurementFormInstanceProgressDto>;
|
|
29209
28842
|
|
|
29210
28843
|
getAuditLog(id: string, tenantId: string | null | undefined, schemaId: string | null | undefined, serialNumber: string | null | undefined, elementId: string | null | undefined): Promise<MeasurementFormElementValueAuditDto[]>;
|
|
@@ -29538,49 +29171,6 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
|
|
|
29538
29171
|
return Promise.resolve<MeasurementFormInstanceSchemaDto>(null as any);
|
|
29539
29172
|
}
|
|
29540
29173
|
|
|
29541
|
-
getMeasurementFormInstanceSchemaCreatorState(id: string, schemaId: string, tenantId: string | null | undefined): Promise<SchemaCreatorStateDto> {
|
|
29542
|
-
let url_ = this.baseUrl + "/measurementforms/instances/{id}/schemas/{schemaId}/creatorstate?";
|
|
29543
|
-
if (id === undefined || id === null)
|
|
29544
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
29545
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
29546
|
-
if (schemaId === undefined || schemaId === null)
|
|
29547
|
-
throw new globalThis.Error("The parameter 'schemaId' must be defined.");
|
|
29548
|
-
url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
|
|
29549
|
-
if (tenantId !== undefined && tenantId !== null)
|
|
29550
|
-
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
29551
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
29552
|
-
|
|
29553
|
-
let options_: RequestInit = {
|
|
29554
|
-
method: "GET",
|
|
29555
|
-
headers: {
|
|
29556
|
-
"Accept": "application/json"
|
|
29557
|
-
}
|
|
29558
|
-
};
|
|
29559
|
-
|
|
29560
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
29561
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
29562
|
-
}).then((_response: Response) => {
|
|
29563
|
-
return this.processGetMeasurementFormInstanceSchemaCreatorState(_response);
|
|
29564
|
-
});
|
|
29565
|
-
}
|
|
29566
|
-
|
|
29567
|
-
protected processGetMeasurementFormInstanceSchemaCreatorState(response: Response): Promise<SchemaCreatorStateDto> {
|
|
29568
|
-
const status = response.status;
|
|
29569
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
29570
|
-
if (status === 200) {
|
|
29571
|
-
return response.text().then((_responseText) => {
|
|
29572
|
-
let result200: any = null;
|
|
29573
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as SchemaCreatorStateDto;
|
|
29574
|
-
return result200;
|
|
29575
|
-
});
|
|
29576
|
-
} else if (status !== 200 && status !== 204) {
|
|
29577
|
-
return response.text().then((_responseText) => {
|
|
29578
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
29579
|
-
});
|
|
29580
|
-
}
|
|
29581
|
-
return Promise.resolve<SchemaCreatorStateDto>(null as any);
|
|
29582
|
-
}
|
|
29583
|
-
|
|
29584
29174
|
getWorkorderMeasurementFormProgress(id: string, tenantId: string | null | undefined): Promise<MeasurementFormInstanceProgressDto> {
|
|
29585
29175
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/progress?";
|
|
29586
29176
|
if (id === undefined || id === null)
|
|
@@ -33897,6 +33487,7 @@ export interface PulseJournalEventDto {
|
|
|
33897
33487
|
eventType: PulseJournalEventTypeDto;
|
|
33898
33488
|
oldValue?: string | null;
|
|
33899
33489
|
newValue?: string | null;
|
|
33490
|
+
lineText?: string | null;
|
|
33900
33491
|
created: Date;
|
|
33901
33492
|
createdBy?: string | null;
|
|
33902
33493
|
}
|
|
@@ -38229,6 +37820,7 @@ export interface ImaChemicalAnalysisCompositeResultDto {
|
|
|
38229
37820
|
prenW?: ImaSpecificationCalculatedResultLineDto | null;
|
|
38230
37821
|
v_Nb_Ti?: ImaSpecificationCalculatedResultLineDto | null;
|
|
38231
37822
|
ce?: ImaSpecificationCalculatedResultLineDto | null;
|
|
37823
|
+
nb_Ta?: ImaSpecificationCalculatedResultLineDto | null;
|
|
38232
37824
|
}
|
|
38233
37825
|
|
|
38234
37826
|
export interface ImaSpecificationCalculatedResultLineDto {
|
|
@@ -38512,6 +38104,7 @@ export interface ImaOverrideChemicalAnalysisCompositeResultsDto {
|
|
|
38512
38104
|
prenW?: ImaOverrideUpdateMaterialCheckResultLineDto | null;
|
|
38513
38105
|
v_Nb_Ti?: ImaOverrideUpdateMaterialCheckResultLineDto | null;
|
|
38514
38106
|
ce?: ImaOverrideUpdateMaterialCheckResultLineDto | null;
|
|
38107
|
+
nb_Ta?: ImaOverrideUpdateMaterialCheckResultLineDto | null;
|
|
38515
38108
|
}
|
|
38516
38109
|
|
|
38517
38110
|
export interface ImaOverrideTensileTestResultsDto {
|
|
@@ -38709,6 +38302,7 @@ export interface ImaMaterialCheckReportDto {
|
|
|
38709
38302
|
includesAllHeats: boolean;
|
|
38710
38303
|
status: ImaMaterialCheckStatusDto;
|
|
38711
38304
|
audit: ImaMaterialCheckReportAuditInfo;
|
|
38305
|
+
isOutdated: boolean;
|
|
38712
38306
|
}
|
|
38713
38307
|
|
|
38714
38308
|
export interface ImaMaterialCheckReportAuditInfo {
|
|
@@ -38888,6 +38482,7 @@ export interface ImaChemistryCompositeSpecificationDto {
|
|
|
38888
38482
|
prenW?: ImaSpecificationLineDto | null;
|
|
38889
38483
|
v_Nb_Ti?: boolean | null;
|
|
38890
38484
|
ce?: boolean | null;
|
|
38485
|
+
nb_Ta?: ImaSpecificationLineDto | null;
|
|
38891
38486
|
}
|
|
38892
38487
|
|
|
38893
38488
|
export interface ImaMechanicalSpecificationDto {
|
|
@@ -39000,129 +38595,6 @@ export interface ImaSpecificationLiteDto {
|
|
|
39000
38595
|
isDeleted: boolean;
|
|
39001
38596
|
}
|
|
39002
38597
|
|
|
39003
|
-
export interface SchemaCreatorStateDto {
|
|
39004
|
-
settings: SchemaCreatorSettingsDto;
|
|
39005
|
-
elements: SchemaCreatorElementDto[];
|
|
39006
|
-
documentParseStatus?: SchemaCreatorDocumentParseStatusDto | null;
|
|
39007
|
-
isAutoGenerated?: boolean;
|
|
39008
|
-
createdBy?: SchemaCreatorAuditInfoDto | null;
|
|
39009
|
-
createdAt?: Date | null;
|
|
39010
|
-
updatedBy?: SchemaCreatorAuditInfoDto | null;
|
|
39011
|
-
updatedAt?: Date | null;
|
|
39012
|
-
}
|
|
39013
|
-
|
|
39014
|
-
export interface SchemaCreatorSettingsDto {
|
|
39015
|
-
unit?: SchemaCreatorUnitOfMeasureDto;
|
|
39016
|
-
tolerance?: GeneralToleranceDto;
|
|
39017
|
-
balloonSize?: number;
|
|
39018
|
-
transparentBalloons?: boolean;
|
|
39019
|
-
}
|
|
39020
|
-
|
|
39021
|
-
export type SchemaCreatorUnitOfMeasureDto = "Millimeter" | "Inch" | "Mixed";
|
|
39022
|
-
|
|
39023
|
-
export type GeneralToleranceDto = "NotSet" | "Fine" | "Medium" | "Coarse" | "VeryCoarse";
|
|
39024
|
-
|
|
39025
|
-
export interface SchemaCreatorElementDto {
|
|
39026
|
-
id: string;
|
|
39027
|
-
kind: SchemaCreatorElementKindDto;
|
|
39028
|
-
drawings: SchemaCreatorElementDrawingsDto;
|
|
39029
|
-
isDirty?: boolean | null;
|
|
39030
|
-
values?: SchemaCreatorElementValuesDto | null;
|
|
39031
|
-
parseResult?: SchemaCreatorSnipResultDto | null;
|
|
39032
|
-
resolveAttempt?: SchemaCreatorParseAttemptDto | null;
|
|
39033
|
-
createdBy?: SchemaCreatorAuditInfoDto | null;
|
|
39034
|
-
createdAt?: Date | null;
|
|
39035
|
-
updatedBy?: SchemaCreatorAuditInfoDto | null;
|
|
39036
|
-
updatedAt?: Date | null;
|
|
39037
|
-
}
|
|
39038
|
-
|
|
39039
|
-
export type SchemaCreatorElementKindDto = "Pending" | "Auto" | "Manual";
|
|
39040
|
-
|
|
39041
|
-
export interface SchemaCreatorElementDrawingsDto {
|
|
39042
|
-
snip: SchemaCreatorSnipDto;
|
|
39043
|
-
balloon: SchemaCreatorPointDto;
|
|
39044
|
-
pageIndex: number;
|
|
39045
|
-
}
|
|
39046
|
-
|
|
39047
|
-
export interface SchemaCreatorSnipDto {
|
|
39048
|
-
rect: SchemaCreatorRectDto;
|
|
39049
|
-
rotation?: number | null;
|
|
39050
|
-
unrotatedRect?: SchemaCreatorRectDto | null;
|
|
39051
|
-
}
|
|
39052
|
-
|
|
39053
|
-
export interface SchemaCreatorRectDto {
|
|
39054
|
-
origin: SchemaCreatorPointDto;
|
|
39055
|
-
size: SchemaCreatorSizeDto;
|
|
39056
|
-
}
|
|
39057
|
-
|
|
39058
|
-
export interface SchemaCreatorPointDto {
|
|
39059
|
-
x: number;
|
|
39060
|
-
y: number;
|
|
39061
|
-
}
|
|
39062
|
-
|
|
39063
|
-
export interface SchemaCreatorSizeDto {
|
|
39064
|
-
width: number;
|
|
39065
|
-
height: number;
|
|
39066
|
-
}
|
|
39067
|
-
|
|
39068
|
-
export interface SchemaCreatorElementValuesDto {
|
|
39069
|
-
reference: number;
|
|
39070
|
-
unit?: UnitOfMeasureDto | null;
|
|
39071
|
-
nominal?: number | null;
|
|
39072
|
-
nominalText?: string | null;
|
|
39073
|
-
upperLimit?: number | null;
|
|
39074
|
-
lowerLimit?: number | null;
|
|
39075
|
-
plusTolerance?: number | null;
|
|
39076
|
-
minusTolerance?: number | null;
|
|
39077
|
-
coatingThickness?: number | null;
|
|
39078
|
-
measurementFrequency: MeasurementFrequency;
|
|
39079
|
-
measurementFrequencyParameter?: number | null;
|
|
39080
|
-
type?: string | null;
|
|
39081
|
-
count?: number | null;
|
|
39082
|
-
comment?: string | null;
|
|
39083
|
-
canCopy: boolean;
|
|
39084
|
-
visibleToCustomer: boolean;
|
|
39085
|
-
isDocumentedExternally: boolean;
|
|
39086
|
-
}
|
|
39087
|
-
|
|
39088
|
-
export type UnitOfMeasureDto = "Millimeter" | "Inch";
|
|
39089
|
-
|
|
39090
|
-
export type MeasurementFrequency = "All" | "FirstArticle" | "NFirst" | "NPercent" | "ISO2859" | "Nth" | "FirstAndLast" | "None";
|
|
39091
|
-
|
|
39092
|
-
export interface SchemaCreatorSnipResultDto {
|
|
39093
|
-
nominal?: number | null;
|
|
39094
|
-
nominalText?: string | null;
|
|
39095
|
-
upperLimit?: number | null;
|
|
39096
|
-
lowerLimit?: number | null;
|
|
39097
|
-
plusTolerance?: number | null;
|
|
39098
|
-
minusTolerance?: number | null;
|
|
39099
|
-
count?: number | null;
|
|
39100
|
-
}
|
|
39101
|
-
|
|
39102
|
-
export interface SchemaCreatorParseAttemptDto {
|
|
39103
|
-
startedAt: Date;
|
|
39104
|
-
errorType?: SchemaCreatorParseErrorTypeDto | null;
|
|
39105
|
-
errorMessage?: string | null;
|
|
39106
|
-
}
|
|
39107
|
-
|
|
39108
|
-
export type SchemaCreatorParseErrorTypeDto = "Timeout" | "ParseError";
|
|
39109
|
-
|
|
39110
|
-
export interface SchemaCreatorAuditInfoDto {
|
|
39111
|
-
objectId: string;
|
|
39112
|
-
userId: string;
|
|
39113
|
-
userFullName?: string | null;
|
|
39114
|
-
}
|
|
39115
|
-
|
|
39116
|
-
export interface SchemaCreatorDocumentParseStatusDto {
|
|
39117
|
-
inProgress: boolean;
|
|
39118
|
-
attempt?: SchemaCreatorParseAttemptDto | null;
|
|
39119
|
-
}
|
|
39120
|
-
|
|
39121
|
-
export interface RenderSchemaCreatorElementSnipImageRequest {
|
|
39122
|
-
pageIndex: number;
|
|
39123
|
-
snip: SchemaCreatorSnipDto;
|
|
39124
|
-
}
|
|
39125
|
-
|
|
39126
38598
|
export interface MeasurementFormSchemaDto {
|
|
39127
38599
|
id: string;
|
|
39128
38600
|
versionId: number;
|
|
@@ -39157,8 +38629,12 @@ export type MeasurementFormStatus = "Draft" | "Released" | "Revoked";
|
|
|
39157
38629
|
|
|
39158
38630
|
export type MeasurementFormSource = "Unknown" | "InspectionXpert" | "Excel" | "Manual";
|
|
39159
38631
|
|
|
38632
|
+
export type UnitOfMeasureDto = "Millimeter" | "Inch";
|
|
38633
|
+
|
|
39160
38634
|
export type DimensionSettingDto = "Tolerance" | "MinMaxDimension";
|
|
39161
38635
|
|
|
38636
|
+
export type GeneralToleranceDto = "NotSet" | "Fine" | "Medium" | "Coarse" | "VeryCoarse";
|
|
38637
|
+
|
|
39162
38638
|
export interface MeasurementFormSchemaAttachmentDto {
|
|
39163
38639
|
url: string;
|
|
39164
38640
|
title: string;
|
|
@@ -39209,6 +38685,8 @@ export interface MeasurementFormGroupedElementDto {
|
|
|
39209
38685
|
validationErrorMessage?: string | null;
|
|
39210
38686
|
}
|
|
39211
38687
|
|
|
38688
|
+
export type MeasurementFrequency = "All" | "FirstArticle" | "NFirst" | "NPercent" | "ISO2859" | "Nth" | "FirstAndLast" | "None";
|
|
38689
|
+
|
|
39212
38690
|
export type MeasurementFormValueType = "None" | "Bool" | "Decimal" | "String";
|
|
39213
38691
|
|
|
39214
38692
|
export type BonusType = "None" | "Positive" | "PositiveAndNegative";
|
|
@@ -39327,6 +38805,11 @@ export interface UpdateSchemaSettingsRequest {
|
|
|
39327
38805
|
generalTolerance: GeneralToleranceDto;
|
|
39328
38806
|
}
|
|
39329
38807
|
|
|
38808
|
+
export interface UploadDrawingRequest {
|
|
38809
|
+
uploadKey: string;
|
|
38810
|
+
filename: string;
|
|
38811
|
+
}
|
|
38812
|
+
|
|
39330
38813
|
export interface UploadRequest {
|
|
39331
38814
|
uploadKey: string;
|
|
39332
38815
|
filename: string;
|
|
@@ -39527,11 +39010,6 @@ export interface SetMeasurementFormNeedAsNotNeededRequest {
|
|
|
39527
39010
|
comment?: string | null;
|
|
39528
39011
|
}
|
|
39529
39012
|
|
|
39530
|
-
export interface UploadDrawingRequest {
|
|
39531
|
-
uploadKey: string;
|
|
39532
|
-
filename: string;
|
|
39533
|
-
}
|
|
39534
|
-
|
|
39535
39013
|
export interface PagedResultOfMeasurementFormSchemaNotNeededDto {
|
|
39536
39014
|
results: MeasurementFormSchemaNotNeededDto[];
|
|
39537
39015
|
continuationToken?: string | null;
|