@ignos/api-client 20250307.0.11324 → 20250307.0.11327
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 +20 -0
- package/lib/ignosportal-api.js +73 -0
- package/package.json +1 -1
- package/src/ignosportal-api.ts +95 -0
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -1906,6 +1906,7 @@ export interface IMeasurementFormSchemasClient {
|
|
|
1906
1906
|
updateSchemaGroupedElements(id: string, request: UpdateSchemaGroupedElementsRequest): Promise<MeasurementFormSchemaDto>;
|
|
1907
1907
|
updateSchemaRow(id: string, request: UpdateSchemaGroupedElementRowDto): Promise<MeasurementFormSchemaDto>;
|
|
1908
1908
|
uploadMeasurementImage(id: string, request: UploadMeasurementImageRequest): Promise<MeasurementFormSchemaDto>;
|
|
1909
|
+
updateSchemaSettings(id: string, request: UpdateSchemaSettingsRequest): Promise<UpdateSchemaSettingsRequest>;
|
|
1909
1910
|
uploadSchemaDrawing(id: string, request: UploadDrawingRequest): Promise<MeasurementFormSchemaDto>;
|
|
1910
1911
|
uploadSchemaAttachment(id: string, request: UploadRequest): Promise<MeasurementFormSchemaDto>;
|
|
1911
1912
|
getMeasurementFormImportStatus(id: string): Promise<MeasurementFormImportStatusDto>;
|
|
@@ -1977,6 +1978,8 @@ export declare class MeasurementFormSchemasClient extends AuthorizedApiBase impl
|
|
|
1977
1978
|
protected processUpdateSchemaRow(response: Response): Promise<MeasurementFormSchemaDto>;
|
|
1978
1979
|
uploadMeasurementImage(id: string, request: UploadMeasurementImageRequest): Promise<MeasurementFormSchemaDto>;
|
|
1979
1980
|
protected processUploadMeasurementImage(response: Response): Promise<MeasurementFormSchemaDto>;
|
|
1981
|
+
updateSchemaSettings(id: string, request: UpdateSchemaSettingsRequest): Promise<UpdateSchemaSettingsRequest>;
|
|
1982
|
+
protected processUpdateSchemaSettings(response: Response): Promise<UpdateSchemaSettingsRequest>;
|
|
1980
1983
|
uploadSchemaDrawing(id: string, request: UploadDrawingRequest): Promise<MeasurementFormSchemaDto>;
|
|
1981
1984
|
protected processUploadSchemaDrawing(response: Response): Promise<MeasurementFormSchemaDto>;
|
|
1982
1985
|
uploadSchemaAttachment(id: string, request: UploadRequest): Promise<MeasurementFormSchemaDto>;
|
|
@@ -11138,6 +11141,23 @@ export interface IUploadMeasurementImageRequest {
|
|
|
11138
11141
|
filename: string;
|
|
11139
11142
|
ballonId: string;
|
|
11140
11143
|
}
|
|
11144
|
+
export declare class UpdateSchemaSettingsRequest implements IUpdateSchemaSettingsRequest {
|
|
11145
|
+
unitOfMeasure: UnitOfMeasureDto;
|
|
11146
|
+
dimensionSetting: DimensionSettingDto;
|
|
11147
|
+
generalTolerance: GeneralToleranceDto;
|
|
11148
|
+
constructor(data?: IUpdateSchemaSettingsRequest);
|
|
11149
|
+
init(_data?: any): void;
|
|
11150
|
+
static fromJS(data: any): UpdateSchemaSettingsRequest;
|
|
11151
|
+
toJSON(data?: any): any;
|
|
11152
|
+
}
|
|
11153
|
+
export interface IUpdateSchemaSettingsRequest {
|
|
11154
|
+
unitOfMeasure: UnitOfMeasureDto;
|
|
11155
|
+
dimensionSetting: DimensionSettingDto;
|
|
11156
|
+
generalTolerance: GeneralToleranceDto;
|
|
11157
|
+
}
|
|
11158
|
+
export type UnitOfMeasureDto = "Millimeter" | "Inch";
|
|
11159
|
+
export type DimensionSettingDto = "Tolerance" | "MinMaxDimension";
|
|
11160
|
+
export type GeneralToleranceDto = "NotSet" | "Fine" | "Medium" | "Coarse" | "VeryCoarse";
|
|
11141
11161
|
export declare class UploadDrawingRequest implements IUploadDrawingRequest {
|
|
11142
11162
|
uploadKey: string;
|
|
11143
11163
|
filename: string;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -15759,6 +15759,49 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
15759
15759
|
}
|
|
15760
15760
|
return Promise.resolve(null);
|
|
15761
15761
|
}
|
|
15762
|
+
updateSchemaSettings(id, request) {
|
|
15763
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/schemasettings";
|
|
15764
|
+
if (id === undefined || id === null)
|
|
15765
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
15766
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
15767
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
15768
|
+
const content_ = JSON.stringify(request);
|
|
15769
|
+
let options_ = {
|
|
15770
|
+
body: content_,
|
|
15771
|
+
method: "PUT",
|
|
15772
|
+
headers: {
|
|
15773
|
+
"Content-Type": "application/json",
|
|
15774
|
+
"Accept": "application/json"
|
|
15775
|
+
}
|
|
15776
|
+
};
|
|
15777
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
15778
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
15779
|
+
}).then((_response) => {
|
|
15780
|
+
return this.processUpdateSchemaSettings(_response);
|
|
15781
|
+
});
|
|
15782
|
+
}
|
|
15783
|
+
processUpdateSchemaSettings(response) {
|
|
15784
|
+
const status = response.status;
|
|
15785
|
+
let _headers = {};
|
|
15786
|
+
if (response.headers && response.headers.forEach) {
|
|
15787
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
15788
|
+
}
|
|
15789
|
+
;
|
|
15790
|
+
if (status === 200) {
|
|
15791
|
+
return response.text().then((_responseText) => {
|
|
15792
|
+
let result200 = null;
|
|
15793
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
15794
|
+
result200 = UpdateSchemaSettingsRequest.fromJS(resultData200);
|
|
15795
|
+
return result200;
|
|
15796
|
+
});
|
|
15797
|
+
}
|
|
15798
|
+
else if (status !== 200 && status !== 204) {
|
|
15799
|
+
return response.text().then((_responseText) => {
|
|
15800
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
15801
|
+
});
|
|
15802
|
+
}
|
|
15803
|
+
return Promise.resolve(null);
|
|
15804
|
+
}
|
|
15762
15805
|
uploadSchemaDrawing(id, request) {
|
|
15763
15806
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploaddrawing";
|
|
15764
15807
|
if (id === undefined || id === null)
|
|
@@ -38670,6 +38713,36 @@ export class UploadMeasurementImageRequest {
|
|
|
38670
38713
|
return data;
|
|
38671
38714
|
}
|
|
38672
38715
|
}
|
|
38716
|
+
export class UpdateSchemaSettingsRequest {
|
|
38717
|
+
constructor(data) {
|
|
38718
|
+
if (data) {
|
|
38719
|
+
for (var property in data) {
|
|
38720
|
+
if (data.hasOwnProperty(property))
|
|
38721
|
+
this[property] = data[property];
|
|
38722
|
+
}
|
|
38723
|
+
}
|
|
38724
|
+
}
|
|
38725
|
+
init(_data) {
|
|
38726
|
+
if (_data) {
|
|
38727
|
+
this.unitOfMeasure = _data["unitOfMeasure"];
|
|
38728
|
+
this.dimensionSetting = _data["dimensionSetting"];
|
|
38729
|
+
this.generalTolerance = _data["generalTolerance"];
|
|
38730
|
+
}
|
|
38731
|
+
}
|
|
38732
|
+
static fromJS(data) {
|
|
38733
|
+
data = typeof data === 'object' ? data : {};
|
|
38734
|
+
let result = new UpdateSchemaSettingsRequest();
|
|
38735
|
+
result.init(data);
|
|
38736
|
+
return result;
|
|
38737
|
+
}
|
|
38738
|
+
toJSON(data) {
|
|
38739
|
+
data = typeof data === 'object' ? data : {};
|
|
38740
|
+
data["unitOfMeasure"] = this.unitOfMeasure;
|
|
38741
|
+
data["dimensionSetting"] = this.dimensionSetting;
|
|
38742
|
+
data["generalTolerance"] = this.generalTolerance;
|
|
38743
|
+
return data;
|
|
38744
|
+
}
|
|
38745
|
+
}
|
|
38673
38746
|
export class UploadDrawingRequest {
|
|
38674
38747
|
constructor(data) {
|
|
38675
38748
|
if (data) {
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -16495,6 +16495,8 @@ export interface IMeasurementFormSchemasClient {
|
|
|
16495
16495
|
|
|
16496
16496
|
uploadMeasurementImage(id: string, request: UploadMeasurementImageRequest): Promise<MeasurementFormSchemaDto>;
|
|
16497
16497
|
|
|
16498
|
+
updateSchemaSettings(id: string, request: UpdateSchemaSettingsRequest): Promise<UpdateSchemaSettingsRequest>;
|
|
16499
|
+
|
|
16498
16500
|
uploadSchemaDrawing(id: string, request: UploadDrawingRequest): Promise<MeasurementFormSchemaDto>;
|
|
16499
16501
|
|
|
16500
16502
|
uploadSchemaAttachment(id: string, request: UploadRequest): Promise<MeasurementFormSchemaDto>;
|
|
@@ -16945,6 +16947,49 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
16945
16947
|
return Promise.resolve<MeasurementFormSchemaDto>(null as any);
|
|
16946
16948
|
}
|
|
16947
16949
|
|
|
16950
|
+
updateSchemaSettings(id: string, request: UpdateSchemaSettingsRequest): Promise<UpdateSchemaSettingsRequest> {
|
|
16951
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/schemasettings";
|
|
16952
|
+
if (id === undefined || id === null)
|
|
16953
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
16954
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
16955
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
16956
|
+
|
|
16957
|
+
const content_ = JSON.stringify(request);
|
|
16958
|
+
|
|
16959
|
+
let options_: RequestInit = {
|
|
16960
|
+
body: content_,
|
|
16961
|
+
method: "PUT",
|
|
16962
|
+
headers: {
|
|
16963
|
+
"Content-Type": "application/json",
|
|
16964
|
+
"Accept": "application/json"
|
|
16965
|
+
}
|
|
16966
|
+
};
|
|
16967
|
+
|
|
16968
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
16969
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
16970
|
+
}).then((_response: Response) => {
|
|
16971
|
+
return this.processUpdateSchemaSettings(_response);
|
|
16972
|
+
});
|
|
16973
|
+
}
|
|
16974
|
+
|
|
16975
|
+
protected processUpdateSchemaSettings(response: Response): Promise<UpdateSchemaSettingsRequest> {
|
|
16976
|
+
const status = response.status;
|
|
16977
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
16978
|
+
if (status === 200) {
|
|
16979
|
+
return response.text().then((_responseText) => {
|
|
16980
|
+
let result200: any = null;
|
|
16981
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
16982
|
+
result200 = UpdateSchemaSettingsRequest.fromJS(resultData200);
|
|
16983
|
+
return result200;
|
|
16984
|
+
});
|
|
16985
|
+
} else if (status !== 200 && status !== 204) {
|
|
16986
|
+
return response.text().then((_responseText) => {
|
|
16987
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
16988
|
+
});
|
|
16989
|
+
}
|
|
16990
|
+
return Promise.resolve<UpdateSchemaSettingsRequest>(null as any);
|
|
16991
|
+
}
|
|
16992
|
+
|
|
16948
16993
|
uploadSchemaDrawing(id: string, request: UploadDrawingRequest): Promise<MeasurementFormSchemaDto> {
|
|
16949
16994
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/uploaddrawing";
|
|
16950
16995
|
if (id === undefined || id === null)
|
|
@@ -48733,6 +48778,56 @@ export interface IUploadMeasurementImageRequest {
|
|
|
48733
48778
|
ballonId: string;
|
|
48734
48779
|
}
|
|
48735
48780
|
|
|
48781
|
+
export class UpdateSchemaSettingsRequest implements IUpdateSchemaSettingsRequest {
|
|
48782
|
+
unitOfMeasure!: UnitOfMeasureDto;
|
|
48783
|
+
dimensionSetting!: DimensionSettingDto;
|
|
48784
|
+
generalTolerance!: GeneralToleranceDto;
|
|
48785
|
+
|
|
48786
|
+
constructor(data?: IUpdateSchemaSettingsRequest) {
|
|
48787
|
+
if (data) {
|
|
48788
|
+
for (var property in data) {
|
|
48789
|
+
if (data.hasOwnProperty(property))
|
|
48790
|
+
(<any>this)[property] = (<any>data)[property];
|
|
48791
|
+
}
|
|
48792
|
+
}
|
|
48793
|
+
}
|
|
48794
|
+
|
|
48795
|
+
init(_data?: any) {
|
|
48796
|
+
if (_data) {
|
|
48797
|
+
this.unitOfMeasure = _data["unitOfMeasure"];
|
|
48798
|
+
this.dimensionSetting = _data["dimensionSetting"];
|
|
48799
|
+
this.generalTolerance = _data["generalTolerance"];
|
|
48800
|
+
}
|
|
48801
|
+
}
|
|
48802
|
+
|
|
48803
|
+
static fromJS(data: any): UpdateSchemaSettingsRequest {
|
|
48804
|
+
data = typeof data === 'object' ? data : {};
|
|
48805
|
+
let result = new UpdateSchemaSettingsRequest();
|
|
48806
|
+
result.init(data);
|
|
48807
|
+
return result;
|
|
48808
|
+
}
|
|
48809
|
+
|
|
48810
|
+
toJSON(data?: any) {
|
|
48811
|
+
data = typeof data === 'object' ? data : {};
|
|
48812
|
+
data["unitOfMeasure"] = this.unitOfMeasure;
|
|
48813
|
+
data["dimensionSetting"] = this.dimensionSetting;
|
|
48814
|
+
data["generalTolerance"] = this.generalTolerance;
|
|
48815
|
+
return data;
|
|
48816
|
+
}
|
|
48817
|
+
}
|
|
48818
|
+
|
|
48819
|
+
export interface IUpdateSchemaSettingsRequest {
|
|
48820
|
+
unitOfMeasure: UnitOfMeasureDto;
|
|
48821
|
+
dimensionSetting: DimensionSettingDto;
|
|
48822
|
+
generalTolerance: GeneralToleranceDto;
|
|
48823
|
+
}
|
|
48824
|
+
|
|
48825
|
+
export type UnitOfMeasureDto = "Millimeter" | "Inch";
|
|
48826
|
+
|
|
48827
|
+
export type DimensionSettingDto = "Tolerance" | "MinMaxDimension";
|
|
48828
|
+
|
|
48829
|
+
export type GeneralToleranceDto = "NotSet" | "Fine" | "Medium" | "Coarse" | "VeryCoarse";
|
|
48830
|
+
|
|
48736
48831
|
export class UploadDrawingRequest implements IUploadDrawingRequest {
|
|
48737
48832
|
uploadKey!: string;
|
|
48738
48833
|
filename!: string;
|