@ignos/api-client 20260827.248.1 → 20260827.249.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 +158 -5
- package/lib/ignosportal-api.js +275 -0
- package/package.json +1 -1
- package/src/ignosportal-api.ts +423 -8
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -2879,6 +2879,69 @@ export declare class InspectMatchSpecificationsClient extends AuthorizedApiBase
|
|
|
2879
2879
|
listSpecifications(): Promise<ImaSpecificationLiteDto[]>;
|
|
2880
2880
|
protected processListSpecifications(response: Response): Promise<ImaSpecificationLiteDto[]>;
|
|
2881
2881
|
}
|
|
2882
|
+
export interface IInspectSchemaCreatorClient {
|
|
2883
|
+
getSchemaCreatorState(id: string): Promise<SchemaCreatorStateDto>;
|
|
2884
|
+
/**
|
|
2885
|
+
* Creates the initial creator state for a schema version. Returns 409 if
|
|
2886
|
+
state already exists; the caller should re-fetch it instead of writing.
|
|
2887
|
+
*/
|
|
2888
|
+
createSchemaCreatorState(id: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto>;
|
|
2889
|
+
updateSchemaCreatorState(id: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto>;
|
|
2890
|
+
/**
|
|
2891
|
+
* Starts a full drawing AI parse: clears every element and locks the
|
|
2892
|
+
schema for every viewer until it completes. If one is already in
|
|
2893
|
+
progress, returns that instead of starting a second one.
|
|
2894
|
+
*/
|
|
2895
|
+
requestSchemaCreatorDocumentParse(id: string): Promise<SchemaCreatorStateDto>;
|
|
2896
|
+
/**
|
|
2897
|
+
* Stamps the creator state's balloons onto the schema's drawing PDF and
|
|
2898
|
+
returns a temporary download link.
|
|
2899
|
+
*/
|
|
2900
|
+
exportSchemaCreatorDrawing(id: string): Promise<DownloadDto>;
|
|
2901
|
+
/**
|
|
2902
|
+
* Starts an async snip resolve; the result is delivered through the
|
|
2903
|
+
SchemaCreatorSnipResolved SignalR notification.
|
|
2904
|
+
* @param image (optional)
|
|
2905
|
+
*/
|
|
2906
|
+
requestSchemaCreatorSnipParse(id: string, elementId: string, image: FileParameter | null | undefined): Promise<void>;
|
|
2907
|
+
}
|
|
2908
|
+
export declare class InspectSchemaCreatorClient extends AuthorizedApiBase implements IInspectSchemaCreatorClient {
|
|
2909
|
+
private http;
|
|
2910
|
+
private baseUrl;
|
|
2911
|
+
constructor(configuration: IApiClientConfig, baseUrl?: string, http?: {
|
|
2912
|
+
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
2913
|
+
});
|
|
2914
|
+
getSchemaCreatorState(id: string): Promise<SchemaCreatorStateDto>;
|
|
2915
|
+
protected processGetSchemaCreatorState(response: Response): Promise<SchemaCreatorStateDto>;
|
|
2916
|
+
/**
|
|
2917
|
+
* Creates the initial creator state for a schema version. Returns 409 if
|
|
2918
|
+
state already exists; the caller should re-fetch it instead of writing.
|
|
2919
|
+
*/
|
|
2920
|
+
createSchemaCreatorState(id: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto>;
|
|
2921
|
+
protected processCreateSchemaCreatorState(response: Response): Promise<SchemaCreatorStateDto>;
|
|
2922
|
+
updateSchemaCreatorState(id: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto>;
|
|
2923
|
+
protected processUpdateSchemaCreatorState(response: Response): Promise<SchemaCreatorStateDto>;
|
|
2924
|
+
/**
|
|
2925
|
+
* Starts a full drawing AI parse: clears every element and locks the
|
|
2926
|
+
schema for every viewer until it completes. If one is already in
|
|
2927
|
+
progress, returns that instead of starting a second one.
|
|
2928
|
+
*/
|
|
2929
|
+
requestSchemaCreatorDocumentParse(id: string): Promise<SchemaCreatorStateDto>;
|
|
2930
|
+
protected processRequestSchemaCreatorDocumentParse(response: Response): Promise<SchemaCreatorStateDto>;
|
|
2931
|
+
/**
|
|
2932
|
+
* Stamps the creator state's balloons onto the schema's drawing PDF and
|
|
2933
|
+
returns a temporary download link.
|
|
2934
|
+
*/
|
|
2935
|
+
exportSchemaCreatorDrawing(id: string): Promise<DownloadDto>;
|
|
2936
|
+
protected processExportSchemaCreatorDrawing(response: Response): Promise<DownloadDto>;
|
|
2937
|
+
/**
|
|
2938
|
+
* Starts an async snip resolve; the result is delivered through the
|
|
2939
|
+
SchemaCreatorSnipResolved SignalR notification.
|
|
2940
|
+
* @param image (optional)
|
|
2941
|
+
*/
|
|
2942
|
+
requestSchemaCreatorSnipParse(id: string, elementId: string, image: FileParameter | null | undefined): Promise<void>;
|
|
2943
|
+
protected processRequestSchemaCreatorSnipParse(response: Response): Promise<void>;
|
|
2944
|
+
}
|
|
2882
2945
|
export interface IMeasurementFormSchemasAdminClient {
|
|
2883
2946
|
getArchivedMeasurementFormSchema(id: string): Promise<MeasurementFormSchemaDto>;
|
|
2884
2947
|
createMeasurementForm(request: CreateMeasurementFormSchema): Promise<MeasurementFormDto>;
|
|
@@ -7464,8 +7527,6 @@ export interface PlannerOperationDto {
|
|
|
7464
7527
|
drawingNumber?: string | null;
|
|
7465
7528
|
description?: string | null;
|
|
7466
7529
|
disableSetupRegistration?: boolean;
|
|
7467
|
-
sequenceNumber: number;
|
|
7468
|
-
isManuallyLocked: boolean;
|
|
7469
7530
|
lockType: PlannerLockType;
|
|
7470
7531
|
isNewOperation: boolean;
|
|
7471
7532
|
weekGroup: string;
|
|
@@ -9153,6 +9214,101 @@ export interface ImaSpecificationLiteDto {
|
|
|
9153
9214
|
updated: Date;
|
|
9154
9215
|
isDeleted: boolean;
|
|
9155
9216
|
}
|
|
9217
|
+
export interface SchemaCreatorStateDto {
|
|
9218
|
+
settings: SchemaCreatorSettingsDto;
|
|
9219
|
+
elements: SchemaCreatorElementDto[];
|
|
9220
|
+
documentParseStatus?: SchemaCreatorDocumentParseStatusDto | null;
|
|
9221
|
+
isAutoGenerated?: boolean;
|
|
9222
|
+
createdBy?: SchemaCreatorAuditInfoDto | null;
|
|
9223
|
+
createdAt?: Date | null;
|
|
9224
|
+
updatedBy?: SchemaCreatorAuditInfoDto | null;
|
|
9225
|
+
updatedAt?: Date | null;
|
|
9226
|
+
}
|
|
9227
|
+
export interface SchemaCreatorSettingsDto {
|
|
9228
|
+
unit?: SchemaCreatorUnitOfMeasureDto;
|
|
9229
|
+
tolerance?: GeneralToleranceDto;
|
|
9230
|
+
balloonSize?: number;
|
|
9231
|
+
transparentBalloons?: boolean;
|
|
9232
|
+
}
|
|
9233
|
+
export type SchemaCreatorUnitOfMeasureDto = "Millimeter" | "Inch" | "Mixed";
|
|
9234
|
+
export type GeneralToleranceDto = "NotSet" | "Fine" | "Medium" | "Coarse" | "VeryCoarse";
|
|
9235
|
+
export interface SchemaCreatorElementDto {
|
|
9236
|
+
id: string;
|
|
9237
|
+
kind: SchemaCreatorElementKindDto;
|
|
9238
|
+
drawings: SchemaCreatorElementDrawingsDto;
|
|
9239
|
+
isDirty?: boolean | null;
|
|
9240
|
+
values?: SchemaCreatorElementValuesDto | null;
|
|
9241
|
+
parseResult?: SchemaCreatorSnipResultDto | null;
|
|
9242
|
+
resolveAttempt?: SchemaCreatorParseAttemptDto | null;
|
|
9243
|
+
createdBy?: SchemaCreatorAuditInfoDto | null;
|
|
9244
|
+
createdAt?: Date | null;
|
|
9245
|
+
updatedBy?: SchemaCreatorAuditInfoDto | null;
|
|
9246
|
+
updatedAt?: Date | null;
|
|
9247
|
+
}
|
|
9248
|
+
export type SchemaCreatorElementKindDto = "Pending" | "Auto" | "Manual";
|
|
9249
|
+
export interface SchemaCreatorElementDrawingsDto {
|
|
9250
|
+
snip: SchemaCreatorSnipDto;
|
|
9251
|
+
balloon: SchemaCreatorPointDto;
|
|
9252
|
+
pageIndex: number;
|
|
9253
|
+
}
|
|
9254
|
+
export interface SchemaCreatorSnipDto {
|
|
9255
|
+
rect: SchemaCreatorRectDto;
|
|
9256
|
+
rotation?: number | null;
|
|
9257
|
+
unrotatedRect?: SchemaCreatorRectDto | null;
|
|
9258
|
+
}
|
|
9259
|
+
export interface SchemaCreatorRectDto {
|
|
9260
|
+
origin: SchemaCreatorPointDto;
|
|
9261
|
+
size: SchemaCreatorSizeDto;
|
|
9262
|
+
}
|
|
9263
|
+
export interface SchemaCreatorPointDto {
|
|
9264
|
+
x: number;
|
|
9265
|
+
y: number;
|
|
9266
|
+
}
|
|
9267
|
+
export interface SchemaCreatorSizeDto {
|
|
9268
|
+
width: number;
|
|
9269
|
+
height: number;
|
|
9270
|
+
}
|
|
9271
|
+
export interface SchemaCreatorElementValuesDto {
|
|
9272
|
+
reference: number;
|
|
9273
|
+
unit?: UnitOfMeasureDto | null;
|
|
9274
|
+
nominal?: number | null;
|
|
9275
|
+
nominalText?: string | null;
|
|
9276
|
+
plusTolerance?: number | null;
|
|
9277
|
+
minusTolerance?: number | null;
|
|
9278
|
+
coatingThickness?: number | null;
|
|
9279
|
+
measurementFrequency: MeasurementFrequency;
|
|
9280
|
+
measurementFrequencyParameter?: number | null;
|
|
9281
|
+
type?: string | null;
|
|
9282
|
+
count?: number | null;
|
|
9283
|
+
comment?: string | null;
|
|
9284
|
+
canCopy: boolean;
|
|
9285
|
+
visibleToCustomer: boolean;
|
|
9286
|
+
isDocumentedExternally: boolean;
|
|
9287
|
+
}
|
|
9288
|
+
export type UnitOfMeasureDto = "Millimeter" | "Inch";
|
|
9289
|
+
export type MeasurementFrequency = "All" | "FirstArticle" | "NFirst" | "NPercent" | "ISO2859" | "Nth" | "FirstAndLast" | "None";
|
|
9290
|
+
export interface SchemaCreatorSnipResultDto {
|
|
9291
|
+
nominal?: number | null;
|
|
9292
|
+
nominalText?: string | null;
|
|
9293
|
+
plusTolerance?: number | null;
|
|
9294
|
+
minusTolerance?: number | null;
|
|
9295
|
+
count?: number | null;
|
|
9296
|
+
}
|
|
9297
|
+
export interface SchemaCreatorParseAttemptDto {
|
|
9298
|
+
startedAt: Date;
|
|
9299
|
+
errorType?: SchemaCreatorParseErrorTypeDto | null;
|
|
9300
|
+
errorMessage?: string | null;
|
|
9301
|
+
}
|
|
9302
|
+
export type SchemaCreatorParseErrorTypeDto = "Timeout" | "ParseError";
|
|
9303
|
+
export interface SchemaCreatorAuditInfoDto {
|
|
9304
|
+
objectId: string;
|
|
9305
|
+
userId: string;
|
|
9306
|
+
userFullName?: string | null;
|
|
9307
|
+
}
|
|
9308
|
+
export interface SchemaCreatorDocumentParseStatusDto {
|
|
9309
|
+
inProgress: boolean;
|
|
9310
|
+
attempt?: SchemaCreatorParseAttemptDto | null;
|
|
9311
|
+
}
|
|
9156
9312
|
export interface MeasurementFormSchemaDto {
|
|
9157
9313
|
id: string;
|
|
9158
9314
|
versionId: number;
|
|
@@ -9184,9 +9340,7 @@ export interface MeasurementFormSchemaDto {
|
|
|
9184
9340
|
}
|
|
9185
9341
|
export type MeasurementFormStatus = "Draft" | "Released" | "Revoked";
|
|
9186
9342
|
export type MeasurementFormSource = "Unknown" | "InspectionXpert" | "Excel" | "Manual";
|
|
9187
|
-
export type UnitOfMeasureDto = "Millimeter" | "Inch";
|
|
9188
9343
|
export type DimensionSettingDto = "Tolerance" | "MinMaxDimension";
|
|
9189
|
-
export type GeneralToleranceDto = "NotSet" | "Fine" | "Medium" | "Coarse" | "VeryCoarse";
|
|
9190
9344
|
export interface MeasurementFormSchemaAttachmentDto {
|
|
9191
9345
|
url: string;
|
|
9192
9346
|
title: string;
|
|
@@ -9235,7 +9389,6 @@ export interface MeasurementFormGroupedElementDto {
|
|
|
9235
9389
|
isValid: boolean;
|
|
9236
9390
|
validationErrorMessage?: string | null;
|
|
9237
9391
|
}
|
|
9238
|
-
export type MeasurementFrequency = "All" | "FirstArticle" | "NFirst" | "NPercent" | "ISO2859" | "Nth" | "FirstAndLast" | "None";
|
|
9239
9392
|
export type MeasurementFormValueType = "None" | "Bool" | "Decimal" | "String";
|
|
9240
9393
|
export type BonusType = "None" | "Positive" | "PositiveAndNegative";
|
|
9241
9394
|
export interface MeasurementFormLinkedSchemaDto {
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -23815,6 +23815,281 @@ export class InspectMatchSpecificationsClient extends AuthorizedApiBase {
|
|
|
23815
23815
|
return Promise.resolve(null);
|
|
23816
23816
|
}
|
|
23817
23817
|
}
|
|
23818
|
+
export class InspectSchemaCreatorClient extends AuthorizedApiBase {
|
|
23819
|
+
constructor(configuration, baseUrl, http) {
|
|
23820
|
+
super(configuration);
|
|
23821
|
+
this.http = http ? http : window;
|
|
23822
|
+
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
23823
|
+
}
|
|
23824
|
+
getSchemaCreatorState(id) {
|
|
23825
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate";
|
|
23826
|
+
if (id === undefined || id === null)
|
|
23827
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
23828
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
23829
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
23830
|
+
let options_ = {
|
|
23831
|
+
method: "GET",
|
|
23832
|
+
headers: {
|
|
23833
|
+
"Accept": "application/json"
|
|
23834
|
+
}
|
|
23835
|
+
};
|
|
23836
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
23837
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
23838
|
+
}).then((_response) => {
|
|
23839
|
+
return this.processGetSchemaCreatorState(_response);
|
|
23840
|
+
});
|
|
23841
|
+
}
|
|
23842
|
+
processGetSchemaCreatorState(response) {
|
|
23843
|
+
const status = response.status;
|
|
23844
|
+
let _headers = {};
|
|
23845
|
+
if (response.headers && response.headers.forEach) {
|
|
23846
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
23847
|
+
}
|
|
23848
|
+
;
|
|
23849
|
+
if (status === 200) {
|
|
23850
|
+
return response.text().then((_responseText) => {
|
|
23851
|
+
let result200 = null;
|
|
23852
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
23853
|
+
return result200;
|
|
23854
|
+
});
|
|
23855
|
+
}
|
|
23856
|
+
else if (status !== 200 && status !== 204) {
|
|
23857
|
+
return response.text().then((_responseText) => {
|
|
23858
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
23859
|
+
});
|
|
23860
|
+
}
|
|
23861
|
+
return Promise.resolve(null);
|
|
23862
|
+
}
|
|
23863
|
+
/**
|
|
23864
|
+
* Creates the initial creator state for a schema version. Returns 409 if
|
|
23865
|
+
state already exists; the caller should re-fetch it instead of writing.
|
|
23866
|
+
*/
|
|
23867
|
+
createSchemaCreatorState(id, state) {
|
|
23868
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate";
|
|
23869
|
+
if (id === undefined || id === null)
|
|
23870
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
23871
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
23872
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
23873
|
+
const content_ = JSON.stringify(state);
|
|
23874
|
+
let options_ = {
|
|
23875
|
+
body: content_,
|
|
23876
|
+
method: "POST",
|
|
23877
|
+
headers: {
|
|
23878
|
+
"Content-Type": "application/json",
|
|
23879
|
+
"Accept": "application/json"
|
|
23880
|
+
}
|
|
23881
|
+
};
|
|
23882
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
23883
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
23884
|
+
}).then((_response) => {
|
|
23885
|
+
return this.processCreateSchemaCreatorState(_response);
|
|
23886
|
+
});
|
|
23887
|
+
}
|
|
23888
|
+
processCreateSchemaCreatorState(response) {
|
|
23889
|
+
const status = response.status;
|
|
23890
|
+
let _headers = {};
|
|
23891
|
+
if (response.headers && response.headers.forEach) {
|
|
23892
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
23893
|
+
}
|
|
23894
|
+
;
|
|
23895
|
+
if (status === 201) {
|
|
23896
|
+
return response.text().then((_responseText) => {
|
|
23897
|
+
let result201 = null;
|
|
23898
|
+
result201 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
23899
|
+
return result201;
|
|
23900
|
+
});
|
|
23901
|
+
}
|
|
23902
|
+
else if (status === 409) {
|
|
23903
|
+
return response.text().then((_responseText) => {
|
|
23904
|
+
let result409 = null;
|
|
23905
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
23906
|
+
return throwException("A server side error occurred.", status, _responseText, _headers, result409);
|
|
23907
|
+
});
|
|
23908
|
+
}
|
|
23909
|
+
else if (status !== 200 && status !== 204) {
|
|
23910
|
+
return response.text().then((_responseText) => {
|
|
23911
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
23912
|
+
});
|
|
23913
|
+
}
|
|
23914
|
+
return Promise.resolve(null);
|
|
23915
|
+
}
|
|
23916
|
+
updateSchemaCreatorState(id, state) {
|
|
23917
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate";
|
|
23918
|
+
if (id === undefined || id === null)
|
|
23919
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
23920
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
23921
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
23922
|
+
const content_ = JSON.stringify(state);
|
|
23923
|
+
let options_ = {
|
|
23924
|
+
body: content_,
|
|
23925
|
+
method: "PUT",
|
|
23926
|
+
headers: {
|
|
23927
|
+
"Content-Type": "application/json",
|
|
23928
|
+
"Accept": "application/json"
|
|
23929
|
+
}
|
|
23930
|
+
};
|
|
23931
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
23932
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
23933
|
+
}).then((_response) => {
|
|
23934
|
+
return this.processUpdateSchemaCreatorState(_response);
|
|
23935
|
+
});
|
|
23936
|
+
}
|
|
23937
|
+
processUpdateSchemaCreatorState(response) {
|
|
23938
|
+
const status = response.status;
|
|
23939
|
+
let _headers = {};
|
|
23940
|
+
if (response.headers && response.headers.forEach) {
|
|
23941
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
23942
|
+
}
|
|
23943
|
+
;
|
|
23944
|
+
if (status === 200) {
|
|
23945
|
+
return response.text().then((_responseText) => {
|
|
23946
|
+
let result200 = null;
|
|
23947
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
23948
|
+
return result200;
|
|
23949
|
+
});
|
|
23950
|
+
}
|
|
23951
|
+
else if (status !== 200 && status !== 204) {
|
|
23952
|
+
return response.text().then((_responseText) => {
|
|
23953
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
23954
|
+
});
|
|
23955
|
+
}
|
|
23956
|
+
return Promise.resolve(null);
|
|
23957
|
+
}
|
|
23958
|
+
/**
|
|
23959
|
+
* Starts a full drawing AI parse: clears every element and locks the
|
|
23960
|
+
schema for every viewer until it completes. If one is already in
|
|
23961
|
+
progress, returns that instead of starting a second one.
|
|
23962
|
+
*/
|
|
23963
|
+
requestSchemaCreatorDocumentParse(id) {
|
|
23964
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate/parse-document";
|
|
23965
|
+
if (id === undefined || id === null)
|
|
23966
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
23967
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
23968
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
23969
|
+
let options_ = {
|
|
23970
|
+
method: "POST",
|
|
23971
|
+
headers: {
|
|
23972
|
+
"Accept": "application/json"
|
|
23973
|
+
}
|
|
23974
|
+
};
|
|
23975
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
23976
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
23977
|
+
}).then((_response) => {
|
|
23978
|
+
return this.processRequestSchemaCreatorDocumentParse(_response);
|
|
23979
|
+
});
|
|
23980
|
+
}
|
|
23981
|
+
processRequestSchemaCreatorDocumentParse(response) {
|
|
23982
|
+
const status = response.status;
|
|
23983
|
+
let _headers = {};
|
|
23984
|
+
if (response.headers && response.headers.forEach) {
|
|
23985
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
23986
|
+
}
|
|
23987
|
+
;
|
|
23988
|
+
if (status === 200) {
|
|
23989
|
+
return response.text().then((_responseText) => {
|
|
23990
|
+
let result200 = null;
|
|
23991
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
23992
|
+
return result200;
|
|
23993
|
+
});
|
|
23994
|
+
}
|
|
23995
|
+
else if (status !== 200 && status !== 204) {
|
|
23996
|
+
return response.text().then((_responseText) => {
|
|
23997
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
23998
|
+
});
|
|
23999
|
+
}
|
|
24000
|
+
return Promise.resolve(null);
|
|
24001
|
+
}
|
|
24002
|
+
/**
|
|
24003
|
+
* Stamps the creator state's balloons onto the schema's drawing PDF and
|
|
24004
|
+
returns a temporary download link.
|
|
24005
|
+
*/
|
|
24006
|
+
exportSchemaCreatorDrawing(id) {
|
|
24007
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate/download";
|
|
24008
|
+
if (id === undefined || id === null)
|
|
24009
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
24010
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
24011
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
24012
|
+
let options_ = {
|
|
24013
|
+
method: "POST",
|
|
24014
|
+
headers: {
|
|
24015
|
+
"Accept": "application/json"
|
|
24016
|
+
}
|
|
24017
|
+
};
|
|
24018
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24019
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
24020
|
+
}).then((_response) => {
|
|
24021
|
+
return this.processExportSchemaCreatorDrawing(_response);
|
|
24022
|
+
});
|
|
24023
|
+
}
|
|
24024
|
+
processExportSchemaCreatorDrawing(response) {
|
|
24025
|
+
const status = response.status;
|
|
24026
|
+
let _headers = {};
|
|
24027
|
+
if (response.headers && response.headers.forEach) {
|
|
24028
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
24029
|
+
}
|
|
24030
|
+
;
|
|
24031
|
+
if (status === 200) {
|
|
24032
|
+
return response.text().then((_responseText) => {
|
|
24033
|
+
let result200 = null;
|
|
24034
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
24035
|
+
return result200;
|
|
24036
|
+
});
|
|
24037
|
+
}
|
|
24038
|
+
else if (status !== 200 && status !== 204) {
|
|
24039
|
+
return response.text().then((_responseText) => {
|
|
24040
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24041
|
+
});
|
|
24042
|
+
}
|
|
24043
|
+
return Promise.resolve(null);
|
|
24044
|
+
}
|
|
24045
|
+
/**
|
|
24046
|
+
* Starts an async snip resolve; the result is delivered through the
|
|
24047
|
+
SchemaCreatorSnipResolved SignalR notification.
|
|
24048
|
+
* @param image (optional)
|
|
24049
|
+
*/
|
|
24050
|
+
requestSchemaCreatorSnipParse(id, elementId, image) {
|
|
24051
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate/elements/{elementId}/parse-snip";
|
|
24052
|
+
if (id === undefined || id === null)
|
|
24053
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
24054
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
24055
|
+
if (elementId === undefined || elementId === null)
|
|
24056
|
+
throw new globalThis.Error("The parameter 'elementId' must be defined.");
|
|
24057
|
+
url_ = url_.replace("{elementId}", encodeURIComponent("" + elementId));
|
|
24058
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
24059
|
+
const content_ = new FormData();
|
|
24060
|
+
if (image !== null && image !== undefined)
|
|
24061
|
+
content_.append("image", image.data, image.fileName ? image.fileName : "image");
|
|
24062
|
+
let options_ = {
|
|
24063
|
+
body: content_,
|
|
24064
|
+
method: "POST",
|
|
24065
|
+
headers: {}
|
|
24066
|
+
};
|
|
24067
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
24068
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
24069
|
+
}).then((_response) => {
|
|
24070
|
+
return this.processRequestSchemaCreatorSnipParse(_response);
|
|
24071
|
+
});
|
|
24072
|
+
}
|
|
24073
|
+
processRequestSchemaCreatorSnipParse(response) {
|
|
24074
|
+
const status = response.status;
|
|
24075
|
+
let _headers = {};
|
|
24076
|
+
if (response.headers && response.headers.forEach) {
|
|
24077
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
24078
|
+
}
|
|
24079
|
+
;
|
|
24080
|
+
if (status === 200) {
|
|
24081
|
+
return response.text().then((_responseText) => {
|
|
24082
|
+
return;
|
|
24083
|
+
});
|
|
24084
|
+
}
|
|
24085
|
+
else if (status !== 200 && status !== 204) {
|
|
24086
|
+
return response.text().then((_responseText) => {
|
|
24087
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
24088
|
+
});
|
|
24089
|
+
}
|
|
24090
|
+
return Promise.resolve(null);
|
|
24091
|
+
}
|
|
24092
|
+
}
|
|
23818
24093
|
export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase {
|
|
23819
24094
|
constructor(configuration, baseUrl, http) {
|
|
23820
24095
|
super(configuration);
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -25474,6 +25474,315 @@ export class InspectMatchSpecificationsClient extends AuthorizedApiBase implemen
|
|
|
25474
25474
|
}
|
|
25475
25475
|
}
|
|
25476
25476
|
|
|
25477
|
+
export interface IInspectSchemaCreatorClient {
|
|
25478
|
+
|
|
25479
|
+
getSchemaCreatorState(id: string): Promise<SchemaCreatorStateDto>;
|
|
25480
|
+
|
|
25481
|
+
/**
|
|
25482
|
+
* Creates the initial creator state for a schema version. Returns 409 if
|
|
25483
|
+
state already exists; the caller should re-fetch it instead of writing.
|
|
25484
|
+
*/
|
|
25485
|
+
createSchemaCreatorState(id: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto>;
|
|
25486
|
+
|
|
25487
|
+
updateSchemaCreatorState(id: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto>;
|
|
25488
|
+
|
|
25489
|
+
/**
|
|
25490
|
+
* Starts a full drawing AI parse: clears every element and locks the
|
|
25491
|
+
schema for every viewer until it completes. If one is already in
|
|
25492
|
+
progress, returns that instead of starting a second one.
|
|
25493
|
+
*/
|
|
25494
|
+
requestSchemaCreatorDocumentParse(id: string): Promise<SchemaCreatorStateDto>;
|
|
25495
|
+
|
|
25496
|
+
/**
|
|
25497
|
+
* Stamps the creator state's balloons onto the schema's drawing PDF and
|
|
25498
|
+
returns a temporary download link.
|
|
25499
|
+
*/
|
|
25500
|
+
exportSchemaCreatorDrawing(id: string): Promise<DownloadDto>;
|
|
25501
|
+
|
|
25502
|
+
/**
|
|
25503
|
+
* Starts an async snip resolve; the result is delivered through the
|
|
25504
|
+
SchemaCreatorSnipResolved SignalR notification.
|
|
25505
|
+
* @param image (optional)
|
|
25506
|
+
*/
|
|
25507
|
+
requestSchemaCreatorSnipParse(id: string, elementId: string, image: FileParameter | null | undefined): Promise<void>;
|
|
25508
|
+
}
|
|
25509
|
+
|
|
25510
|
+
export class InspectSchemaCreatorClient extends AuthorizedApiBase implements IInspectSchemaCreatorClient {
|
|
25511
|
+
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
|
|
25512
|
+
private baseUrl: string;
|
|
25513
|
+
|
|
25514
|
+
constructor(configuration: IApiClientConfig, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
|
|
25515
|
+
super(configuration);
|
|
25516
|
+
this.http = http ? http : window as any;
|
|
25517
|
+
this.baseUrl = baseUrl ?? "";
|
|
25518
|
+
}
|
|
25519
|
+
|
|
25520
|
+
getSchemaCreatorState(id: string): Promise<SchemaCreatorStateDto> {
|
|
25521
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate";
|
|
25522
|
+
if (id === undefined || id === null)
|
|
25523
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
25524
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
25525
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
25526
|
+
|
|
25527
|
+
let options_: RequestInit = {
|
|
25528
|
+
method: "GET",
|
|
25529
|
+
headers: {
|
|
25530
|
+
"Accept": "application/json"
|
|
25531
|
+
}
|
|
25532
|
+
};
|
|
25533
|
+
|
|
25534
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
25535
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
25536
|
+
}).then((_response: Response) => {
|
|
25537
|
+
return this.processGetSchemaCreatorState(_response);
|
|
25538
|
+
});
|
|
25539
|
+
}
|
|
25540
|
+
|
|
25541
|
+
protected processGetSchemaCreatorState(response: Response): Promise<SchemaCreatorStateDto> {
|
|
25542
|
+
const status = response.status;
|
|
25543
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
25544
|
+
if (status === 200) {
|
|
25545
|
+
return response.text().then((_responseText) => {
|
|
25546
|
+
let result200: any = null;
|
|
25547
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as SchemaCreatorStateDto;
|
|
25548
|
+
return result200;
|
|
25549
|
+
});
|
|
25550
|
+
} else if (status !== 200 && status !== 204) {
|
|
25551
|
+
return response.text().then((_responseText) => {
|
|
25552
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
25553
|
+
});
|
|
25554
|
+
}
|
|
25555
|
+
return Promise.resolve<SchemaCreatorStateDto>(null as any);
|
|
25556
|
+
}
|
|
25557
|
+
|
|
25558
|
+
/**
|
|
25559
|
+
* Creates the initial creator state for a schema version. Returns 409 if
|
|
25560
|
+
state already exists; the caller should re-fetch it instead of writing.
|
|
25561
|
+
*/
|
|
25562
|
+
createSchemaCreatorState(id: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto> {
|
|
25563
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate";
|
|
25564
|
+
if (id === undefined || id === null)
|
|
25565
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
25566
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
25567
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
25568
|
+
|
|
25569
|
+
const content_ = JSON.stringify(state);
|
|
25570
|
+
|
|
25571
|
+
let options_: RequestInit = {
|
|
25572
|
+
body: content_,
|
|
25573
|
+
method: "POST",
|
|
25574
|
+
headers: {
|
|
25575
|
+
"Content-Type": "application/json",
|
|
25576
|
+
"Accept": "application/json"
|
|
25577
|
+
}
|
|
25578
|
+
};
|
|
25579
|
+
|
|
25580
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
25581
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
25582
|
+
}).then((_response: Response) => {
|
|
25583
|
+
return this.processCreateSchemaCreatorState(_response);
|
|
25584
|
+
});
|
|
25585
|
+
}
|
|
25586
|
+
|
|
25587
|
+
protected processCreateSchemaCreatorState(response: Response): Promise<SchemaCreatorStateDto> {
|
|
25588
|
+
const status = response.status;
|
|
25589
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
25590
|
+
if (status === 201) {
|
|
25591
|
+
return response.text().then((_responseText) => {
|
|
25592
|
+
let result201: any = null;
|
|
25593
|
+
result201 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as SchemaCreatorStateDto;
|
|
25594
|
+
return result201;
|
|
25595
|
+
});
|
|
25596
|
+
} else if (status === 409) {
|
|
25597
|
+
return response.text().then((_responseText) => {
|
|
25598
|
+
let result409: any = null;
|
|
25599
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ProblemDetails;
|
|
25600
|
+
return throwException("A server side error occurred.", status, _responseText, _headers, result409);
|
|
25601
|
+
});
|
|
25602
|
+
} else if (status !== 200 && status !== 204) {
|
|
25603
|
+
return response.text().then((_responseText) => {
|
|
25604
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
25605
|
+
});
|
|
25606
|
+
}
|
|
25607
|
+
return Promise.resolve<SchemaCreatorStateDto>(null as any);
|
|
25608
|
+
}
|
|
25609
|
+
|
|
25610
|
+
updateSchemaCreatorState(id: string, state: SchemaCreatorStateDto): Promise<SchemaCreatorStateDto> {
|
|
25611
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate";
|
|
25612
|
+
if (id === undefined || id === null)
|
|
25613
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
25614
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
25615
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
25616
|
+
|
|
25617
|
+
const content_ = JSON.stringify(state);
|
|
25618
|
+
|
|
25619
|
+
let options_: RequestInit = {
|
|
25620
|
+
body: content_,
|
|
25621
|
+
method: "PUT",
|
|
25622
|
+
headers: {
|
|
25623
|
+
"Content-Type": "application/json",
|
|
25624
|
+
"Accept": "application/json"
|
|
25625
|
+
}
|
|
25626
|
+
};
|
|
25627
|
+
|
|
25628
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
25629
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
25630
|
+
}).then((_response: Response) => {
|
|
25631
|
+
return this.processUpdateSchemaCreatorState(_response);
|
|
25632
|
+
});
|
|
25633
|
+
}
|
|
25634
|
+
|
|
25635
|
+
protected processUpdateSchemaCreatorState(response: Response): Promise<SchemaCreatorStateDto> {
|
|
25636
|
+
const status = response.status;
|
|
25637
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
25638
|
+
if (status === 200) {
|
|
25639
|
+
return response.text().then((_responseText) => {
|
|
25640
|
+
let result200: any = null;
|
|
25641
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as SchemaCreatorStateDto;
|
|
25642
|
+
return result200;
|
|
25643
|
+
});
|
|
25644
|
+
} else if (status !== 200 && status !== 204) {
|
|
25645
|
+
return response.text().then((_responseText) => {
|
|
25646
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
25647
|
+
});
|
|
25648
|
+
}
|
|
25649
|
+
return Promise.resolve<SchemaCreatorStateDto>(null as any);
|
|
25650
|
+
}
|
|
25651
|
+
|
|
25652
|
+
/**
|
|
25653
|
+
* Starts a full drawing AI parse: clears every element and locks the
|
|
25654
|
+
schema for every viewer until it completes. If one is already in
|
|
25655
|
+
progress, returns that instead of starting a second one.
|
|
25656
|
+
*/
|
|
25657
|
+
requestSchemaCreatorDocumentParse(id: string): Promise<SchemaCreatorStateDto> {
|
|
25658
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate/parse-document";
|
|
25659
|
+
if (id === undefined || id === null)
|
|
25660
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
25661
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
25662
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
25663
|
+
|
|
25664
|
+
let options_: RequestInit = {
|
|
25665
|
+
method: "POST",
|
|
25666
|
+
headers: {
|
|
25667
|
+
"Accept": "application/json"
|
|
25668
|
+
}
|
|
25669
|
+
};
|
|
25670
|
+
|
|
25671
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
25672
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
25673
|
+
}).then((_response: Response) => {
|
|
25674
|
+
return this.processRequestSchemaCreatorDocumentParse(_response);
|
|
25675
|
+
});
|
|
25676
|
+
}
|
|
25677
|
+
|
|
25678
|
+
protected processRequestSchemaCreatorDocumentParse(response: Response): Promise<SchemaCreatorStateDto> {
|
|
25679
|
+
const status = response.status;
|
|
25680
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
25681
|
+
if (status === 200) {
|
|
25682
|
+
return response.text().then((_responseText) => {
|
|
25683
|
+
let result200: any = null;
|
|
25684
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as SchemaCreatorStateDto;
|
|
25685
|
+
return result200;
|
|
25686
|
+
});
|
|
25687
|
+
} else if (status !== 200 && status !== 204) {
|
|
25688
|
+
return response.text().then((_responseText) => {
|
|
25689
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
25690
|
+
});
|
|
25691
|
+
}
|
|
25692
|
+
return Promise.resolve<SchemaCreatorStateDto>(null as any);
|
|
25693
|
+
}
|
|
25694
|
+
|
|
25695
|
+
/**
|
|
25696
|
+
* Stamps the creator state's balloons onto the schema's drawing PDF and
|
|
25697
|
+
returns a temporary download link.
|
|
25698
|
+
*/
|
|
25699
|
+
exportSchemaCreatorDrawing(id: string): Promise<DownloadDto> {
|
|
25700
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate/download";
|
|
25701
|
+
if (id === undefined || id === null)
|
|
25702
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
25703
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
25704
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
25705
|
+
|
|
25706
|
+
let options_: RequestInit = {
|
|
25707
|
+
method: "POST",
|
|
25708
|
+
headers: {
|
|
25709
|
+
"Accept": "application/json"
|
|
25710
|
+
}
|
|
25711
|
+
};
|
|
25712
|
+
|
|
25713
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
25714
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
25715
|
+
}).then((_response: Response) => {
|
|
25716
|
+
return this.processExportSchemaCreatorDrawing(_response);
|
|
25717
|
+
});
|
|
25718
|
+
}
|
|
25719
|
+
|
|
25720
|
+
protected processExportSchemaCreatorDrawing(response: Response): Promise<DownloadDto> {
|
|
25721
|
+
const status = response.status;
|
|
25722
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
25723
|
+
if (status === 200) {
|
|
25724
|
+
return response.text().then((_responseText) => {
|
|
25725
|
+
let result200: any = null;
|
|
25726
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as DownloadDto;
|
|
25727
|
+
return result200;
|
|
25728
|
+
});
|
|
25729
|
+
} else if (status !== 200 && status !== 204) {
|
|
25730
|
+
return response.text().then((_responseText) => {
|
|
25731
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
25732
|
+
});
|
|
25733
|
+
}
|
|
25734
|
+
return Promise.resolve<DownloadDto>(null as any);
|
|
25735
|
+
}
|
|
25736
|
+
|
|
25737
|
+
/**
|
|
25738
|
+
* Starts an async snip resolve; the result is delivered through the
|
|
25739
|
+
SchemaCreatorSnipResolved SignalR notification.
|
|
25740
|
+
* @param image (optional)
|
|
25741
|
+
*/
|
|
25742
|
+
requestSchemaCreatorSnipParse(id: string, elementId: string, image: FileParameter | null | undefined): Promise<void> {
|
|
25743
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/creatorstate/elements/{elementId}/parse-snip";
|
|
25744
|
+
if (id === undefined || id === null)
|
|
25745
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
25746
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
25747
|
+
if (elementId === undefined || elementId === null)
|
|
25748
|
+
throw new globalThis.Error("The parameter 'elementId' must be defined.");
|
|
25749
|
+
url_ = url_.replace("{elementId}", encodeURIComponent("" + elementId));
|
|
25750
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
25751
|
+
|
|
25752
|
+
const content_ = new FormData();
|
|
25753
|
+
if (image !== null && image !== undefined)
|
|
25754
|
+
content_.append("image", image.data, image.fileName ? image.fileName : "image");
|
|
25755
|
+
|
|
25756
|
+
let options_: RequestInit = {
|
|
25757
|
+
body: content_,
|
|
25758
|
+
method: "POST",
|
|
25759
|
+
headers: {
|
|
25760
|
+
}
|
|
25761
|
+
};
|
|
25762
|
+
|
|
25763
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
25764
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
25765
|
+
}).then((_response: Response) => {
|
|
25766
|
+
return this.processRequestSchemaCreatorSnipParse(_response);
|
|
25767
|
+
});
|
|
25768
|
+
}
|
|
25769
|
+
|
|
25770
|
+
protected processRequestSchemaCreatorSnipParse(response: Response): Promise<void> {
|
|
25771
|
+
const status = response.status;
|
|
25772
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
25773
|
+
if (status === 200) {
|
|
25774
|
+
return response.text().then((_responseText) => {
|
|
25775
|
+
return;
|
|
25776
|
+
});
|
|
25777
|
+
} else if (status !== 200 && status !== 204) {
|
|
25778
|
+
return response.text().then((_responseText) => {
|
|
25779
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
25780
|
+
});
|
|
25781
|
+
}
|
|
25782
|
+
return Promise.resolve<void>(null as any);
|
|
25783
|
+
}
|
|
25784
|
+
}
|
|
25785
|
+
|
|
25477
25786
|
export interface IMeasurementFormSchemasAdminClient {
|
|
25478
25787
|
|
|
25479
25788
|
getArchivedMeasurementFormSchema(id: string): Promise<MeasurementFormSchemaDto>;
|
|
@@ -35895,8 +36204,6 @@ export interface PlannerOperationDto {
|
|
|
35895
36204
|
drawingNumber?: string | null;
|
|
35896
36205
|
description?: string | null;
|
|
35897
36206
|
disableSetupRegistration?: boolean;
|
|
35898
|
-
sequenceNumber: number;
|
|
35899
|
-
isManuallyLocked: boolean;
|
|
35900
36207
|
lockType: PlannerLockType;
|
|
35901
36208
|
isNewOperation: boolean;
|
|
35902
36209
|
weekGroup: string;
|
|
@@ -37784,6 +38091,120 @@ export interface ImaSpecificationLiteDto {
|
|
|
37784
38091
|
isDeleted: boolean;
|
|
37785
38092
|
}
|
|
37786
38093
|
|
|
38094
|
+
export interface SchemaCreatorStateDto {
|
|
38095
|
+
settings: SchemaCreatorSettingsDto;
|
|
38096
|
+
elements: SchemaCreatorElementDto[];
|
|
38097
|
+
documentParseStatus?: SchemaCreatorDocumentParseStatusDto | null;
|
|
38098
|
+
isAutoGenerated?: boolean;
|
|
38099
|
+
createdBy?: SchemaCreatorAuditInfoDto | null;
|
|
38100
|
+
createdAt?: Date | null;
|
|
38101
|
+
updatedBy?: SchemaCreatorAuditInfoDto | null;
|
|
38102
|
+
updatedAt?: Date | null;
|
|
38103
|
+
}
|
|
38104
|
+
|
|
38105
|
+
export interface SchemaCreatorSettingsDto {
|
|
38106
|
+
unit?: SchemaCreatorUnitOfMeasureDto;
|
|
38107
|
+
tolerance?: GeneralToleranceDto;
|
|
38108
|
+
balloonSize?: number;
|
|
38109
|
+
transparentBalloons?: boolean;
|
|
38110
|
+
}
|
|
38111
|
+
|
|
38112
|
+
export type SchemaCreatorUnitOfMeasureDto = "Millimeter" | "Inch" | "Mixed";
|
|
38113
|
+
|
|
38114
|
+
export type GeneralToleranceDto = "NotSet" | "Fine" | "Medium" | "Coarse" | "VeryCoarse";
|
|
38115
|
+
|
|
38116
|
+
export interface SchemaCreatorElementDto {
|
|
38117
|
+
id: string;
|
|
38118
|
+
kind: SchemaCreatorElementKindDto;
|
|
38119
|
+
drawings: SchemaCreatorElementDrawingsDto;
|
|
38120
|
+
isDirty?: boolean | null;
|
|
38121
|
+
values?: SchemaCreatorElementValuesDto | null;
|
|
38122
|
+
parseResult?: SchemaCreatorSnipResultDto | null;
|
|
38123
|
+
resolveAttempt?: SchemaCreatorParseAttemptDto | null;
|
|
38124
|
+
createdBy?: SchemaCreatorAuditInfoDto | null;
|
|
38125
|
+
createdAt?: Date | null;
|
|
38126
|
+
updatedBy?: SchemaCreatorAuditInfoDto | null;
|
|
38127
|
+
updatedAt?: Date | null;
|
|
38128
|
+
}
|
|
38129
|
+
|
|
38130
|
+
export type SchemaCreatorElementKindDto = "Pending" | "Auto" | "Manual";
|
|
38131
|
+
|
|
38132
|
+
export interface SchemaCreatorElementDrawingsDto {
|
|
38133
|
+
snip: SchemaCreatorSnipDto;
|
|
38134
|
+
balloon: SchemaCreatorPointDto;
|
|
38135
|
+
pageIndex: number;
|
|
38136
|
+
}
|
|
38137
|
+
|
|
38138
|
+
export interface SchemaCreatorSnipDto {
|
|
38139
|
+
rect: SchemaCreatorRectDto;
|
|
38140
|
+
rotation?: number | null;
|
|
38141
|
+
unrotatedRect?: SchemaCreatorRectDto | null;
|
|
38142
|
+
}
|
|
38143
|
+
|
|
38144
|
+
export interface SchemaCreatorRectDto {
|
|
38145
|
+
origin: SchemaCreatorPointDto;
|
|
38146
|
+
size: SchemaCreatorSizeDto;
|
|
38147
|
+
}
|
|
38148
|
+
|
|
38149
|
+
export interface SchemaCreatorPointDto {
|
|
38150
|
+
x: number;
|
|
38151
|
+
y: number;
|
|
38152
|
+
}
|
|
38153
|
+
|
|
38154
|
+
export interface SchemaCreatorSizeDto {
|
|
38155
|
+
width: number;
|
|
38156
|
+
height: number;
|
|
38157
|
+
}
|
|
38158
|
+
|
|
38159
|
+
export interface SchemaCreatorElementValuesDto {
|
|
38160
|
+
reference: number;
|
|
38161
|
+
unit?: UnitOfMeasureDto | null;
|
|
38162
|
+
nominal?: number | null;
|
|
38163
|
+
nominalText?: string | null;
|
|
38164
|
+
plusTolerance?: number | null;
|
|
38165
|
+
minusTolerance?: number | null;
|
|
38166
|
+
coatingThickness?: number | null;
|
|
38167
|
+
measurementFrequency: MeasurementFrequency;
|
|
38168
|
+
measurementFrequencyParameter?: number | null;
|
|
38169
|
+
type?: string | null;
|
|
38170
|
+
count?: number | null;
|
|
38171
|
+
comment?: string | null;
|
|
38172
|
+
canCopy: boolean;
|
|
38173
|
+
visibleToCustomer: boolean;
|
|
38174
|
+
isDocumentedExternally: boolean;
|
|
38175
|
+
}
|
|
38176
|
+
|
|
38177
|
+
export type UnitOfMeasureDto = "Millimeter" | "Inch";
|
|
38178
|
+
|
|
38179
|
+
export type MeasurementFrequency = "All" | "FirstArticle" | "NFirst" | "NPercent" | "ISO2859" | "Nth" | "FirstAndLast" | "None";
|
|
38180
|
+
|
|
38181
|
+
export interface SchemaCreatorSnipResultDto {
|
|
38182
|
+
nominal?: number | null;
|
|
38183
|
+
nominalText?: string | null;
|
|
38184
|
+
plusTolerance?: number | null;
|
|
38185
|
+
minusTolerance?: number | null;
|
|
38186
|
+
count?: number | null;
|
|
38187
|
+
}
|
|
38188
|
+
|
|
38189
|
+
export interface SchemaCreatorParseAttemptDto {
|
|
38190
|
+
startedAt: Date;
|
|
38191
|
+
errorType?: SchemaCreatorParseErrorTypeDto | null;
|
|
38192
|
+
errorMessage?: string | null;
|
|
38193
|
+
}
|
|
38194
|
+
|
|
38195
|
+
export type SchemaCreatorParseErrorTypeDto = "Timeout" | "ParseError";
|
|
38196
|
+
|
|
38197
|
+
export interface SchemaCreatorAuditInfoDto {
|
|
38198
|
+
objectId: string;
|
|
38199
|
+
userId: string;
|
|
38200
|
+
userFullName?: string | null;
|
|
38201
|
+
}
|
|
38202
|
+
|
|
38203
|
+
export interface SchemaCreatorDocumentParseStatusDto {
|
|
38204
|
+
inProgress: boolean;
|
|
38205
|
+
attempt?: SchemaCreatorParseAttemptDto | null;
|
|
38206
|
+
}
|
|
38207
|
+
|
|
37787
38208
|
export interface MeasurementFormSchemaDto {
|
|
37788
38209
|
id: string;
|
|
37789
38210
|
versionId: number;
|
|
@@ -37818,12 +38239,8 @@ export type MeasurementFormStatus = "Draft" | "Released" | "Revoked";
|
|
|
37818
38239
|
|
|
37819
38240
|
export type MeasurementFormSource = "Unknown" | "InspectionXpert" | "Excel" | "Manual";
|
|
37820
38241
|
|
|
37821
|
-
export type UnitOfMeasureDto = "Millimeter" | "Inch";
|
|
37822
|
-
|
|
37823
38242
|
export type DimensionSettingDto = "Tolerance" | "MinMaxDimension";
|
|
37824
38243
|
|
|
37825
|
-
export type GeneralToleranceDto = "NotSet" | "Fine" | "Medium" | "Coarse" | "VeryCoarse";
|
|
37826
|
-
|
|
37827
38244
|
export interface MeasurementFormSchemaAttachmentDto {
|
|
37828
38245
|
url: string;
|
|
37829
38246
|
title: string;
|
|
@@ -37874,8 +38291,6 @@ export interface MeasurementFormGroupedElementDto {
|
|
|
37874
38291
|
validationErrorMessage?: string | null;
|
|
37875
38292
|
}
|
|
37876
38293
|
|
|
37877
|
-
export type MeasurementFrequency = "All" | "FirstArticle" | "NFirst" | "NPercent" | "ISO2859" | "Nth" | "FirstAndLast" | "None";
|
|
37878
|
-
|
|
37879
38294
|
export type MeasurementFormValueType = "None" | "Bool" | "Decimal" | "String";
|
|
37880
38295
|
|
|
37881
38296
|
export type BonusType = "None" | "Positive" | "PositiveAndNegative";
|