@ignos/api-client 20260707.179.1-alpha → 20260708.180.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.
- package/lib/ignosportal-api.d.ts +16 -4
- package/lib/ignosportal-api.js +23 -9
- package/package.json +1 -1
- package/src/ignosportal-api.ts +33 -13
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -2822,7 +2822,12 @@ export declare class InspectMatchSpecificationsClient extends AuthorizedApiBase
|
|
|
2822
2822
|
export interface IInspectSchemaCreatorClient {
|
|
2823
2823
|
getSchemaCreatorState(id: string): Promise<SchemaCreatorStateDto>;
|
|
2824
2824
|
updateSchemaCreatorState(id: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto>;
|
|
2825
|
-
|
|
2825
|
+
/**
|
|
2826
|
+
* Starts an async snip resolve; the result is delivered through the
|
|
2827
|
+
SchemaCreatorSnipResolved SignalR notification.
|
|
2828
|
+
* @param image (optional)
|
|
2829
|
+
*/
|
|
2830
|
+
resolveSchemaCreatorSnip(id: string, elementId: string, image: FileParameter | null | undefined): Promise<FileResponse>;
|
|
2826
2831
|
}
|
|
2827
2832
|
export declare class InspectSchemaCreatorClient extends AuthorizedApiBase implements IInspectSchemaCreatorClient {
|
|
2828
2833
|
private http;
|
|
@@ -2834,8 +2839,13 @@ export declare class InspectSchemaCreatorClient extends AuthorizedApiBase implem
|
|
|
2834
2839
|
protected processGetSchemaCreatorState(response: Response): Promise<SchemaCreatorStateDto>;
|
|
2835
2840
|
updateSchemaCreatorState(id: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto>;
|
|
2836
2841
|
protected processUpdateSchemaCreatorState(response: Response): Promise<SchemaCreatorStateDto>;
|
|
2837
|
-
|
|
2838
|
-
|
|
2842
|
+
/**
|
|
2843
|
+
* Starts an async snip resolve; the result is delivered through the
|
|
2844
|
+
SchemaCreatorSnipResolved SignalR notification.
|
|
2845
|
+
* @param image (optional)
|
|
2846
|
+
*/
|
|
2847
|
+
resolveSchemaCreatorSnip(id: string, elementId: string, image: FileParameter | null | undefined): Promise<FileResponse>;
|
|
2848
|
+
protected processResolveSchemaCreatorSnip(response: Response): Promise<FileResponse>;
|
|
2839
2849
|
}
|
|
2840
2850
|
export interface IMeasurementFormSchemasAdminClient {
|
|
2841
2851
|
getArchivedMeasurementFormSchema(id: string): Promise<MeasurementFormSchemaDto>;
|
|
@@ -8748,6 +8758,7 @@ export interface SchemaCreatorElementDto {
|
|
|
8748
8758
|
drawings: SchemaCreatorElementDrawingsDto;
|
|
8749
8759
|
isDirty?: boolean | null;
|
|
8750
8760
|
values?: SchemaCreatorElementValuesDto | null;
|
|
8761
|
+
parseResult?: SchemaCreatorSnipResultDto | null;
|
|
8751
8762
|
}
|
|
8752
8763
|
export type SchemaCreatorElementKindDto = "Pending" | "Auto" | "Manual";
|
|
8753
8764
|
export interface SchemaCreatorElementDrawingsDto {
|
|
@@ -8794,7 +8805,8 @@ export interface SchemaCreatorSnipResultDto {
|
|
|
8794
8805
|
nominalText?: string | null;
|
|
8795
8806
|
plusTolerance?: number | null;
|
|
8796
8807
|
minusTolerance?: number | null;
|
|
8797
|
-
|
|
8808
|
+
coatingThickness?: number | null;
|
|
8809
|
+
count?: number | null;
|
|
8798
8810
|
}
|
|
8799
8811
|
export interface MeasurementFormSchemaDto {
|
|
8800
8812
|
id: string;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -23298,11 +23298,19 @@ export class InspectSchemaCreatorClient extends AuthorizedApiBase {
|
|
|
23298
23298
|
}
|
|
23299
23299
|
return Promise.resolve(null);
|
|
23300
23300
|
}
|
|
23301
|
-
|
|
23302
|
-
|
|
23301
|
+
/**
|
|
23302
|
+
* Starts an async snip resolve; the result is delivered through the
|
|
23303
|
+
SchemaCreatorSnipResolved SignalR notification.
|
|
23304
|
+
* @param image (optional)
|
|
23305
|
+
*/
|
|
23306
|
+
resolveSchemaCreatorSnip(id, elementId, image) {
|
|
23307
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate/elements/{elementId}/resolvesnip";
|
|
23303
23308
|
if (id === undefined || id === null)
|
|
23304
23309
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
23305
23310
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
23311
|
+
if (elementId === undefined || elementId === null)
|
|
23312
|
+
throw new globalThis.Error("The parameter 'elementId' must be defined.");
|
|
23313
|
+
url_ = url_.replace("{elementId}", encodeURIComponent("" + elementId));
|
|
23306
23314
|
url_ = url_.replace(/[?&]$/, "");
|
|
23307
23315
|
const content_ = new FormData();
|
|
23308
23316
|
if (image !== null && image !== undefined)
|
|
@@ -23311,7 +23319,7 @@ export class InspectSchemaCreatorClient extends AuthorizedApiBase {
|
|
|
23311
23319
|
body: content_,
|
|
23312
23320
|
method: "POST",
|
|
23313
23321
|
headers: {
|
|
23314
|
-
"Accept": "application/
|
|
23322
|
+
"Accept": "application/octet-stream"
|
|
23315
23323
|
}
|
|
23316
23324
|
};
|
|
23317
23325
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
@@ -23327,12 +23335,18 @@ export class InspectSchemaCreatorClient extends AuthorizedApiBase {
|
|
|
23327
23335
|
response.headers.forEach((v, k) => _headers[k] = v);
|
|
23328
23336
|
}
|
|
23329
23337
|
;
|
|
23330
|
-
if (status === 200) {
|
|
23331
|
-
|
|
23332
|
-
|
|
23333
|
-
|
|
23334
|
-
|
|
23335
|
-
|
|
23338
|
+
if (status === 200 || status === 206) {
|
|
23339
|
+
const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
|
|
23340
|
+
let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
|
|
23341
|
+
let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
|
|
23342
|
+
if (fileName) {
|
|
23343
|
+
fileName = decodeURIComponent(fileName);
|
|
23344
|
+
}
|
|
23345
|
+
else {
|
|
23346
|
+
fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
|
|
23347
|
+
fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
|
|
23348
|
+
}
|
|
23349
|
+
return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
|
|
23336
23350
|
}
|
|
23337
23351
|
else if (status !== 200 && status !== 204) {
|
|
23338
23352
|
return response.text().then((_responseText) => {
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -24841,7 +24841,12 @@ export interface IInspectSchemaCreatorClient {
|
|
|
24841
24841
|
|
|
24842
24842
|
updateSchemaCreatorState(id: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto>;
|
|
24843
24843
|
|
|
24844
|
-
|
|
24844
|
+
/**
|
|
24845
|
+
* Starts an async snip resolve; the result is delivered through the
|
|
24846
|
+
SchemaCreatorSnipResolved SignalR notification.
|
|
24847
|
+
* @param image (optional)
|
|
24848
|
+
*/
|
|
24849
|
+
resolveSchemaCreatorSnip(id: string, elementId: string, image: FileParameter | null | undefined): Promise<FileResponse>;
|
|
24845
24850
|
}
|
|
24846
24851
|
|
|
24847
24852
|
export class InspectSchemaCreatorClient extends AuthorizedApiBase implements IInspectSchemaCreatorClient {
|
|
@@ -24934,11 +24939,19 @@ export class InspectSchemaCreatorClient extends AuthorizedApiBase implements IIn
|
|
|
24934
24939
|
return Promise.resolve<SchemaCreatorStateDto>(null as any);
|
|
24935
24940
|
}
|
|
24936
24941
|
|
|
24937
|
-
|
|
24938
|
-
|
|
24942
|
+
/**
|
|
24943
|
+
* Starts an async snip resolve; the result is delivered through the
|
|
24944
|
+
SchemaCreatorSnipResolved SignalR notification.
|
|
24945
|
+
* @param image (optional)
|
|
24946
|
+
*/
|
|
24947
|
+
resolveSchemaCreatorSnip(id: string, elementId: string, image: FileParameter | null | undefined): Promise<FileResponse> {
|
|
24948
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate/elements/{elementId}/resolvesnip";
|
|
24939
24949
|
if (id === undefined || id === null)
|
|
24940
24950
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
24941
24951
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
24952
|
+
if (elementId === undefined || elementId === null)
|
|
24953
|
+
throw new globalThis.Error("The parameter 'elementId' must be defined.");
|
|
24954
|
+
url_ = url_.replace("{elementId}", encodeURIComponent("" + elementId));
|
|
24942
24955
|
url_ = url_.replace(/[?&]$/, "");
|
|
24943
24956
|
|
|
24944
24957
|
const content_ = new FormData();
|
|
@@ -24949,7 +24962,7 @@ export class InspectSchemaCreatorClient extends AuthorizedApiBase implements IIn
|
|
|
24949
24962
|
body: content_,
|
|
24950
24963
|
method: "POST",
|
|
24951
24964
|
headers: {
|
|
24952
|
-
"Accept": "application/
|
|
24965
|
+
"Accept": "application/octet-stream"
|
|
24953
24966
|
}
|
|
24954
24967
|
};
|
|
24955
24968
|
|
|
@@ -24960,21 +24973,26 @@ export class InspectSchemaCreatorClient extends AuthorizedApiBase implements IIn
|
|
|
24960
24973
|
});
|
|
24961
24974
|
}
|
|
24962
24975
|
|
|
24963
|
-
protected processResolveSchemaCreatorSnip(response: Response): Promise<
|
|
24976
|
+
protected processResolveSchemaCreatorSnip(response: Response): Promise<FileResponse> {
|
|
24964
24977
|
const status = response.status;
|
|
24965
24978
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
24966
|
-
if (status === 200) {
|
|
24967
|
-
|
|
24968
|
-
let
|
|
24969
|
-
|
|
24970
|
-
|
|
24971
|
-
|
|
24979
|
+
if (status === 200 || status === 206) {
|
|
24980
|
+
const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
|
|
24981
|
+
let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
|
|
24982
|
+
let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
|
|
24983
|
+
if (fileName) {
|
|
24984
|
+
fileName = decodeURIComponent(fileName);
|
|
24985
|
+
} else {
|
|
24986
|
+
fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
|
|
24987
|
+
fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
|
|
24988
|
+
}
|
|
24989
|
+
return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
|
|
24972
24990
|
} else if (status !== 200 && status !== 204) {
|
|
24973
24991
|
return response.text().then((_responseText) => {
|
|
24974
24992
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24975
24993
|
});
|
|
24976
24994
|
}
|
|
24977
|
-
return Promise.resolve<
|
|
24995
|
+
return Promise.resolve<FileResponse>(null as any);
|
|
24978
24996
|
}
|
|
24979
24997
|
}
|
|
24980
24998
|
|
|
@@ -36891,6 +36909,7 @@ export interface SchemaCreatorElementDto {
|
|
|
36891
36909
|
drawings: SchemaCreatorElementDrawingsDto;
|
|
36892
36910
|
isDirty?: boolean | null;
|
|
36893
36911
|
values?: SchemaCreatorElementValuesDto | null;
|
|
36912
|
+
parseResult?: SchemaCreatorSnipResultDto | null;
|
|
36894
36913
|
}
|
|
36895
36914
|
|
|
36896
36915
|
export type SchemaCreatorElementKindDto = "Pending" | "Auto" | "Manual";
|
|
@@ -36946,7 +36965,8 @@ export interface SchemaCreatorSnipResultDto {
|
|
|
36946
36965
|
nominalText?: string | null;
|
|
36947
36966
|
plusTolerance?: number | null;
|
|
36948
36967
|
minusTolerance?: number | null;
|
|
36949
|
-
|
|
36968
|
+
coatingThickness?: number | null;
|
|
36969
|
+
count?: number | null;
|
|
36950
36970
|
}
|
|
36951
36971
|
|
|
36952
36972
|
export interface MeasurementFormSchemaDto {
|