@ignos/api-client 20250307.0.11317 → 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 +22 -0
- package/lib/ignosportal-api.js +75 -0
- package/package.json +1 -1
- package/src/ignosportal-api.ts +99 -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>;
|
|
@@ -11086,6 +11089,7 @@ export declare class UpdateSchemaGroupedElementRowDto implements IUpdateSchemaGr
|
|
|
11086
11089
|
balloonId: string;
|
|
11087
11090
|
section?: string | null;
|
|
11088
11091
|
pageNumber?: number | null;
|
|
11092
|
+
measurements?: number | null;
|
|
11089
11093
|
nominal?: number | null;
|
|
11090
11094
|
type?: string | null;
|
|
11091
11095
|
subType?: string | null;
|
|
@@ -11108,6 +11112,7 @@ export interface IUpdateSchemaGroupedElementRowDto {
|
|
|
11108
11112
|
balloonId: string;
|
|
11109
11113
|
section?: string | null;
|
|
11110
11114
|
pageNumber?: number | null;
|
|
11115
|
+
measurements?: number | null;
|
|
11111
11116
|
nominal?: number | null;
|
|
11112
11117
|
type?: string | null;
|
|
11113
11118
|
subType?: string | null;
|
|
@@ -11136,6 +11141,23 @@ export interface IUploadMeasurementImageRequest {
|
|
|
11136
11141
|
filename: string;
|
|
11137
11142
|
ballonId: string;
|
|
11138
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";
|
|
11139
11161
|
export declare class UploadDrawingRequest implements IUploadDrawingRequest {
|
|
11140
11162
|
uploadKey: string;
|
|
11141
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)
|
|
@@ -38596,6 +38639,7 @@ export class UpdateSchemaGroupedElementRowDto {
|
|
|
38596
38639
|
this.balloonId = _data["balloonId"];
|
|
38597
38640
|
this.section = _data["section"];
|
|
38598
38641
|
this.pageNumber = _data["pageNumber"];
|
|
38642
|
+
this.measurements = _data["measurements"];
|
|
38599
38643
|
this.nominal = _data["nominal"];
|
|
38600
38644
|
this.type = _data["type"];
|
|
38601
38645
|
this.subType = _data["subType"];
|
|
@@ -38622,6 +38666,7 @@ export class UpdateSchemaGroupedElementRowDto {
|
|
|
38622
38666
|
data["balloonId"] = this.balloonId;
|
|
38623
38667
|
data["section"] = this.section;
|
|
38624
38668
|
data["pageNumber"] = this.pageNumber;
|
|
38669
|
+
data["measurements"] = this.measurements;
|
|
38625
38670
|
data["nominal"] = this.nominal;
|
|
38626
38671
|
data["type"] = this.type;
|
|
38627
38672
|
data["subType"] = this.subType;
|
|
@@ -38668,6 +38713,36 @@ export class UploadMeasurementImageRequest {
|
|
|
38668
38713
|
return data;
|
|
38669
38714
|
}
|
|
38670
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
|
+
}
|
|
38671
38746
|
export class UploadDrawingRequest {
|
|
38672
38747
|
constructor(data) {
|
|
38673
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)
|
|
@@ -48593,6 +48638,7 @@ export class UpdateSchemaGroupedElementRowDto implements IUpdateSchemaGroupedEle
|
|
|
48593
48638
|
balloonId!: string;
|
|
48594
48639
|
section?: string | null;
|
|
48595
48640
|
pageNumber?: number | null;
|
|
48641
|
+
measurements?: number | null;
|
|
48596
48642
|
nominal?: number | null;
|
|
48597
48643
|
type?: string | null;
|
|
48598
48644
|
subType?: string | null;
|
|
@@ -48621,6 +48667,7 @@ export class UpdateSchemaGroupedElementRowDto implements IUpdateSchemaGroupedEle
|
|
|
48621
48667
|
this.balloonId = _data["balloonId"];
|
|
48622
48668
|
this.section = _data["section"];
|
|
48623
48669
|
this.pageNumber = _data["pageNumber"];
|
|
48670
|
+
this.measurements = _data["measurements"];
|
|
48624
48671
|
this.nominal = _data["nominal"];
|
|
48625
48672
|
this.type = _data["type"];
|
|
48626
48673
|
this.subType = _data["subType"];
|
|
@@ -48649,6 +48696,7 @@ export class UpdateSchemaGroupedElementRowDto implements IUpdateSchemaGroupedEle
|
|
|
48649
48696
|
data["balloonId"] = this.balloonId;
|
|
48650
48697
|
data["section"] = this.section;
|
|
48651
48698
|
data["pageNumber"] = this.pageNumber;
|
|
48699
|
+
data["measurements"] = this.measurements;
|
|
48652
48700
|
data["nominal"] = this.nominal;
|
|
48653
48701
|
data["type"] = this.type;
|
|
48654
48702
|
data["subType"] = this.subType;
|
|
@@ -48670,6 +48718,7 @@ export interface IUpdateSchemaGroupedElementRowDto {
|
|
|
48670
48718
|
balloonId: string;
|
|
48671
48719
|
section?: string | null;
|
|
48672
48720
|
pageNumber?: number | null;
|
|
48721
|
+
measurements?: number | null;
|
|
48673
48722
|
nominal?: number | null;
|
|
48674
48723
|
type?: string | null;
|
|
48675
48724
|
subType?: string | null;
|
|
@@ -48729,6 +48778,56 @@ export interface IUploadMeasurementImageRequest {
|
|
|
48729
48778
|
ballonId: string;
|
|
48730
48779
|
}
|
|
48731
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
|
+
|
|
48732
48831
|
export class UploadDrawingRequest implements IUploadDrawingRequest {
|
|
48733
48832
|
uploadKey!: string;
|
|
48734
48833
|
filename!: string;
|