@ignos/api-client 20260407.102.1 → 20260410.103.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 +95 -64
- package/lib/ignosportal-api.js +178 -125
- package/package.json +1 -1
- package/src/ignosportal-api.ts +275 -193
package/src/ignosportal-api.ts
CHANGED
|
@@ -2992,6 +2992,8 @@ export class UserAppSettingsClient extends AuthorizedApiBase implements IUserApp
|
|
|
2992
2992
|
export interface IUploadClient {
|
|
2993
2993
|
|
|
2994
2994
|
createUploadInfo(): Promise<UploadInfoDto>;
|
|
2995
|
+
|
|
2996
|
+
createUploadInfoCdf(request: CreateUploadInfoCdf): Promise<UploadInfoCdfDto>;
|
|
2995
2997
|
}
|
|
2996
2998
|
|
|
2997
2999
|
export class UploadClient extends AuthorizedApiBase implements IUploadClient {
|
|
@@ -3038,6 +3040,45 @@ export class UploadClient extends AuthorizedApiBase implements IUploadClient {
|
|
|
3038
3040
|
}
|
|
3039
3041
|
return Promise.resolve<UploadInfoDto>(null as any);
|
|
3040
3042
|
}
|
|
3043
|
+
|
|
3044
|
+
createUploadInfoCdf(request: CreateUploadInfoCdf): Promise<UploadInfoCdfDto> {
|
|
3045
|
+
let url_ = this.baseUrl + "/upload/cdf";
|
|
3046
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
3047
|
+
|
|
3048
|
+
const content_ = JSON.stringify(request);
|
|
3049
|
+
|
|
3050
|
+
let options_: RequestInit = {
|
|
3051
|
+
body: content_,
|
|
3052
|
+
method: "POST",
|
|
3053
|
+
headers: {
|
|
3054
|
+
"Content-Type": "application/json",
|
|
3055
|
+
"Accept": "application/json"
|
|
3056
|
+
}
|
|
3057
|
+
};
|
|
3058
|
+
|
|
3059
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
3060
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
3061
|
+
}).then((_response: Response) => {
|
|
3062
|
+
return this.processCreateUploadInfoCdf(_response);
|
|
3063
|
+
});
|
|
3064
|
+
}
|
|
3065
|
+
|
|
3066
|
+
protected processCreateUploadInfoCdf(response: Response): Promise<UploadInfoCdfDto> {
|
|
3067
|
+
const status = response.status;
|
|
3068
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
3069
|
+
if (status === 200) {
|
|
3070
|
+
return response.text().then((_responseText) => {
|
|
3071
|
+
let result200: any = null;
|
|
3072
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as UploadInfoCdfDto;
|
|
3073
|
+
return result200;
|
|
3074
|
+
});
|
|
3075
|
+
} else if (status !== 200 && status !== 204) {
|
|
3076
|
+
return response.text().then((_responseText) => {
|
|
3077
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
3078
|
+
});
|
|
3079
|
+
}
|
|
3080
|
+
return Promise.resolve<UploadInfoCdfDto>(null as any);
|
|
3081
|
+
}
|
|
3041
3082
|
}
|
|
3042
3083
|
|
|
3043
3084
|
export interface ISystemHealthDashboardClient {
|
|
@@ -22736,15 +22777,7 @@ export class InspectMatchCertificateChecksClient extends AuthorizedApiBase imple
|
|
|
22736
22777
|
}
|
|
22737
22778
|
}
|
|
22738
22779
|
|
|
22739
|
-
export interface
|
|
22740
|
-
|
|
22741
|
-
listMaterialCertificateTypes(): Promise<ImaCertificateTypeLiteDto[]>;
|
|
22742
|
-
|
|
22743
|
-
getMaterialCertificateTypes(id: string, version: number | null | undefined): Promise<ImaCertificateTypeDto>;
|
|
22744
|
-
|
|
22745
|
-
updateMaterialCertificateType(id: string, version: number | null | undefined, payload: ImaUpdateImaCertificateTypeRequestDto): Promise<ImaCertificateTypeDto>;
|
|
22746
|
-
|
|
22747
|
-
deleteMaterialCertificateType(id: string, version: number | null | undefined): Promise<void>;
|
|
22780
|
+
export interface IInspectMatchCertificateTypesAdminClient {
|
|
22748
22781
|
|
|
22749
22782
|
createMaterialCertificateTypes(payload: ImaCreateOrCopyCertificateTypeRequestDto): Promise<ImaCertificateTypeDto>;
|
|
22750
22783
|
|
|
@@ -22753,9 +22786,13 @@ export interface IInspectMatchCertificateTypesClient {
|
|
|
22753
22786
|
createNewVersionForCertificateType(id: string, version: number | null | undefined): Promise<ImaCertificateTypeDto>;
|
|
22754
22787
|
|
|
22755
22788
|
releaseMaterialCertificateType(id: string, version: number | null | undefined): Promise<ImaCertificateTypeDto>;
|
|
22789
|
+
|
|
22790
|
+
updateMaterialCertificateType(id: string, version: number | null | undefined, payload: ImaUpdateImaCertificateTypeRequestDto): Promise<ImaCertificateTypeDto>;
|
|
22791
|
+
|
|
22792
|
+
deleteMaterialCertificateType(id: string, version: number | null | undefined): Promise<void>;
|
|
22756
22793
|
}
|
|
22757
22794
|
|
|
22758
|
-
export class
|
|
22795
|
+
export class InspectMatchCertificateTypesAdminClient extends AuthorizedApiBase implements IInspectMatchCertificateTypesAdminClient {
|
|
22759
22796
|
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
|
|
22760
22797
|
private baseUrl: string;
|
|
22761
22798
|
|
|
@@ -22765,13 +22802,17 @@ export class InspectMatchCertificateTypesClient extends AuthorizedApiBase implem
|
|
|
22765
22802
|
this.baseUrl = baseUrl ?? "";
|
|
22766
22803
|
}
|
|
22767
22804
|
|
|
22768
|
-
|
|
22769
|
-
let url_ = this.baseUrl + "/inspect/match/certificate-types
|
|
22805
|
+
createMaterialCertificateTypes(payload: ImaCreateOrCopyCertificateTypeRequestDto): Promise<ImaCertificateTypeDto> {
|
|
22806
|
+
let url_ = this.baseUrl + "/inspect/match/certificate-types";
|
|
22770
22807
|
url_ = url_.replace(/[?&]$/, "");
|
|
22771
22808
|
|
|
22809
|
+
const content_ = JSON.stringify(payload);
|
|
22810
|
+
|
|
22772
22811
|
let options_: RequestInit = {
|
|
22773
|
-
|
|
22812
|
+
body: content_,
|
|
22813
|
+
method: "POST",
|
|
22774
22814
|
headers: {
|
|
22815
|
+
"Content-Type": "application/json",
|
|
22775
22816
|
"Accept": "application/json"
|
|
22776
22817
|
}
|
|
22777
22818
|
};
|
|
@@ -22779,17 +22820,17 @@ export class InspectMatchCertificateTypesClient extends AuthorizedApiBase implem
|
|
|
22779
22820
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22780
22821
|
return this.http.fetch(url_, transformedOptions_);
|
|
22781
22822
|
}).then((_response: Response) => {
|
|
22782
|
-
return this.
|
|
22823
|
+
return this.processCreateMaterialCertificateTypes(_response);
|
|
22783
22824
|
});
|
|
22784
22825
|
}
|
|
22785
22826
|
|
|
22786
|
-
protected
|
|
22827
|
+
protected processCreateMaterialCertificateTypes(response: Response): Promise<ImaCertificateTypeDto> {
|
|
22787
22828
|
const status = response.status;
|
|
22788
22829
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22789
22830
|
if (status === 200) {
|
|
22790
22831
|
return response.text().then((_responseText) => {
|
|
22791
22832
|
let result200: any = null;
|
|
22792
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as
|
|
22833
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ImaCertificateTypeDto;
|
|
22793
22834
|
return result200;
|
|
22794
22835
|
});
|
|
22795
22836
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -22797,11 +22838,11 @@ export class InspectMatchCertificateTypesClient extends AuthorizedApiBase implem
|
|
|
22797
22838
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22798
22839
|
});
|
|
22799
22840
|
}
|
|
22800
|
-
return Promise.resolve<
|
|
22841
|
+
return Promise.resolve<ImaCertificateTypeDto>(null as any);
|
|
22801
22842
|
}
|
|
22802
22843
|
|
|
22803
|
-
|
|
22804
|
-
let url_ = this.baseUrl + "/inspect/match/certificate-types/{id}?";
|
|
22844
|
+
copyMaterialCertificateType(id: string, version: number | null | undefined, payload: ImaCreateOrCopyCertificateTypeRequestDto): Promise<ImaCertificateTypeDto> {
|
|
22845
|
+
let url_ = this.baseUrl + "/inspect/match/certificate-types/{id}/copy?";
|
|
22805
22846
|
if (id === undefined || id === null)
|
|
22806
22847
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
22807
22848
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
@@ -22809,9 +22850,13 @@ export class InspectMatchCertificateTypesClient extends AuthorizedApiBase implem
|
|
|
22809
22850
|
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
22810
22851
|
url_ = url_.replace(/[?&]$/, "");
|
|
22811
22852
|
|
|
22853
|
+
const content_ = JSON.stringify(payload);
|
|
22854
|
+
|
|
22812
22855
|
let options_: RequestInit = {
|
|
22813
|
-
|
|
22856
|
+
body: content_,
|
|
22857
|
+
method: "POST",
|
|
22814
22858
|
headers: {
|
|
22859
|
+
"Content-Type": "application/json",
|
|
22815
22860
|
"Accept": "application/json"
|
|
22816
22861
|
}
|
|
22817
22862
|
};
|
|
@@ -22819,11 +22864,11 @@ export class InspectMatchCertificateTypesClient extends AuthorizedApiBase implem
|
|
|
22819
22864
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22820
22865
|
return this.http.fetch(url_, transformedOptions_);
|
|
22821
22866
|
}).then((_response: Response) => {
|
|
22822
|
-
return this.
|
|
22867
|
+
return this.processCopyMaterialCertificateType(_response);
|
|
22823
22868
|
});
|
|
22824
22869
|
}
|
|
22825
22870
|
|
|
22826
|
-
protected
|
|
22871
|
+
protected processCopyMaterialCertificateType(response: Response): Promise<ImaCertificateTypeDto> {
|
|
22827
22872
|
const status = response.status;
|
|
22828
22873
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22829
22874
|
if (status === 200) {
|
|
@@ -22840,8 +22885,8 @@ export class InspectMatchCertificateTypesClient extends AuthorizedApiBase implem
|
|
|
22840
22885
|
return Promise.resolve<ImaCertificateTypeDto>(null as any);
|
|
22841
22886
|
}
|
|
22842
22887
|
|
|
22843
|
-
|
|
22844
|
-
let url_ = this.baseUrl + "/inspect/match/certificate-types/{id}?";
|
|
22888
|
+
createNewVersionForCertificateType(id: string, version: number | null | undefined): Promise<ImaCertificateTypeDto> {
|
|
22889
|
+
let url_ = this.baseUrl + "/inspect/match/certificate-types/{id}/new-version?";
|
|
22845
22890
|
if (id === undefined || id === null)
|
|
22846
22891
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
22847
22892
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
@@ -22849,13 +22894,9 @@ export class InspectMatchCertificateTypesClient extends AuthorizedApiBase implem
|
|
|
22849
22894
|
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
22850
22895
|
url_ = url_.replace(/[?&]$/, "");
|
|
22851
22896
|
|
|
22852
|
-
const content_ = JSON.stringify(payload);
|
|
22853
|
-
|
|
22854
22897
|
let options_: RequestInit = {
|
|
22855
|
-
|
|
22856
|
-
method: "PUT",
|
|
22898
|
+
method: "POST",
|
|
22857
22899
|
headers: {
|
|
22858
|
-
"Content-Type": "application/json",
|
|
22859
22900
|
"Accept": "application/json"
|
|
22860
22901
|
}
|
|
22861
22902
|
};
|
|
@@ -22863,11 +22904,11 @@ export class InspectMatchCertificateTypesClient extends AuthorizedApiBase implem
|
|
|
22863
22904
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22864
22905
|
return this.http.fetch(url_, transformedOptions_);
|
|
22865
22906
|
}).then((_response: Response) => {
|
|
22866
|
-
return this.
|
|
22907
|
+
return this.processCreateNewVersionForCertificateType(_response);
|
|
22867
22908
|
});
|
|
22868
22909
|
}
|
|
22869
22910
|
|
|
22870
|
-
protected
|
|
22911
|
+
protected processCreateNewVersionForCertificateType(response: Response): Promise<ImaCertificateTypeDto> {
|
|
22871
22912
|
const status = response.status;
|
|
22872
22913
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22873
22914
|
if (status === 200) {
|
|
@@ -22884,8 +22925,8 @@ export class InspectMatchCertificateTypesClient extends AuthorizedApiBase implem
|
|
|
22884
22925
|
return Promise.resolve<ImaCertificateTypeDto>(null as any);
|
|
22885
22926
|
}
|
|
22886
22927
|
|
|
22887
|
-
|
|
22888
|
-
let url_ = this.baseUrl + "/inspect/match/certificate-types/{id}?";
|
|
22928
|
+
releaseMaterialCertificateType(id: string, version: number | null | undefined): Promise<ImaCertificateTypeDto> {
|
|
22929
|
+
let url_ = this.baseUrl + "/inspect/match/certificate-types/{id}/release?";
|
|
22889
22930
|
if (id === undefined || id === null)
|
|
22890
22931
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
22891
22932
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
@@ -22894,42 +22935,50 @@ export class InspectMatchCertificateTypesClient extends AuthorizedApiBase implem
|
|
|
22894
22935
|
url_ = url_.replace(/[?&]$/, "");
|
|
22895
22936
|
|
|
22896
22937
|
let options_: RequestInit = {
|
|
22897
|
-
method: "
|
|
22938
|
+
method: "POST",
|
|
22898
22939
|
headers: {
|
|
22940
|
+
"Accept": "application/json"
|
|
22899
22941
|
}
|
|
22900
22942
|
};
|
|
22901
22943
|
|
|
22902
22944
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22903
22945
|
return this.http.fetch(url_, transformedOptions_);
|
|
22904
22946
|
}).then((_response: Response) => {
|
|
22905
|
-
return this.
|
|
22947
|
+
return this.processReleaseMaterialCertificateType(_response);
|
|
22906
22948
|
});
|
|
22907
22949
|
}
|
|
22908
22950
|
|
|
22909
|
-
protected
|
|
22951
|
+
protected processReleaseMaterialCertificateType(response: Response): Promise<ImaCertificateTypeDto> {
|
|
22910
22952
|
const status = response.status;
|
|
22911
22953
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22912
|
-
if (status ===
|
|
22954
|
+
if (status === 200) {
|
|
22913
22955
|
return response.text().then((_responseText) => {
|
|
22914
|
-
|
|
22956
|
+
let result200: any = null;
|
|
22957
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ImaCertificateTypeDto;
|
|
22958
|
+
return result200;
|
|
22915
22959
|
});
|
|
22916
22960
|
} else if (status !== 200 && status !== 204) {
|
|
22917
22961
|
return response.text().then((_responseText) => {
|
|
22918
22962
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22919
22963
|
});
|
|
22920
22964
|
}
|
|
22921
|
-
return Promise.resolve<
|
|
22965
|
+
return Promise.resolve<ImaCertificateTypeDto>(null as any);
|
|
22922
22966
|
}
|
|
22923
22967
|
|
|
22924
|
-
|
|
22925
|
-
let url_ = this.baseUrl + "/inspect/match/certificate-types";
|
|
22968
|
+
updateMaterialCertificateType(id: string, version: number | null | undefined, payload: ImaUpdateImaCertificateTypeRequestDto): Promise<ImaCertificateTypeDto> {
|
|
22969
|
+
let url_ = this.baseUrl + "/inspect/match/certificate-types/{id}?";
|
|
22970
|
+
if (id === undefined || id === null)
|
|
22971
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
22972
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
22973
|
+
if (version !== undefined && version !== null)
|
|
22974
|
+
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
22926
22975
|
url_ = url_.replace(/[?&]$/, "");
|
|
22927
22976
|
|
|
22928
22977
|
const content_ = JSON.stringify(payload);
|
|
22929
22978
|
|
|
22930
22979
|
let options_: RequestInit = {
|
|
22931
22980
|
body: content_,
|
|
22932
|
-
method: "
|
|
22981
|
+
method: "PUT",
|
|
22933
22982
|
headers: {
|
|
22934
22983
|
"Content-Type": "application/json",
|
|
22935
22984
|
"Accept": "application/json"
|
|
@@ -22939,11 +22988,11 @@ export class InspectMatchCertificateTypesClient extends AuthorizedApiBase implem
|
|
|
22939
22988
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22940
22989
|
return this.http.fetch(url_, transformedOptions_);
|
|
22941
22990
|
}).then((_response: Response) => {
|
|
22942
|
-
return this.
|
|
22991
|
+
return this.processUpdateMaterialCertificateType(_response);
|
|
22943
22992
|
});
|
|
22944
22993
|
}
|
|
22945
22994
|
|
|
22946
|
-
protected
|
|
22995
|
+
protected processUpdateMaterialCertificateType(response: Response): Promise<ImaCertificateTypeDto> {
|
|
22947
22996
|
const status = response.status;
|
|
22948
22997
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22949
22998
|
if (status === 200) {
|
|
@@ -22960,8 +23009,8 @@ export class InspectMatchCertificateTypesClient extends AuthorizedApiBase implem
|
|
|
22960
23009
|
return Promise.resolve<ImaCertificateTypeDto>(null as any);
|
|
22961
23010
|
}
|
|
22962
23011
|
|
|
22963
|
-
|
|
22964
|
-
let url_ = this.baseUrl + "/inspect/match/certificate-types/{id}
|
|
23012
|
+
deleteMaterialCertificateType(id: string, version: number | null | undefined): Promise<void> {
|
|
23013
|
+
let url_ = this.baseUrl + "/inspect/match/certificate-types/{id}?";
|
|
22965
23014
|
if (id === undefined || id === null)
|
|
22966
23015
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
22967
23016
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
@@ -22969,43 +23018,54 @@ export class InspectMatchCertificateTypesClient extends AuthorizedApiBase implem
|
|
|
22969
23018
|
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
22970
23019
|
url_ = url_.replace(/[?&]$/, "");
|
|
22971
23020
|
|
|
22972
|
-
const content_ = JSON.stringify(payload);
|
|
22973
|
-
|
|
22974
23021
|
let options_: RequestInit = {
|
|
22975
|
-
|
|
22976
|
-
method: "POST",
|
|
23022
|
+
method: "DELETE",
|
|
22977
23023
|
headers: {
|
|
22978
|
-
"Content-Type": "application/json",
|
|
22979
|
-
"Accept": "application/json"
|
|
22980
23024
|
}
|
|
22981
23025
|
};
|
|
22982
23026
|
|
|
22983
23027
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22984
23028
|
return this.http.fetch(url_, transformedOptions_);
|
|
22985
23029
|
}).then((_response: Response) => {
|
|
22986
|
-
return this.
|
|
23030
|
+
return this.processDeleteMaterialCertificateType(_response);
|
|
22987
23031
|
});
|
|
22988
23032
|
}
|
|
22989
23033
|
|
|
22990
|
-
protected
|
|
23034
|
+
protected processDeleteMaterialCertificateType(response: Response): Promise<void> {
|
|
22991
23035
|
const status = response.status;
|
|
22992
23036
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22993
|
-
if (status ===
|
|
23037
|
+
if (status === 204) {
|
|
22994
23038
|
return response.text().then((_responseText) => {
|
|
22995
|
-
|
|
22996
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ImaCertificateTypeDto;
|
|
22997
|
-
return result200;
|
|
23039
|
+
return;
|
|
22998
23040
|
});
|
|
22999
23041
|
} else if (status !== 200 && status !== 204) {
|
|
23000
23042
|
return response.text().then((_responseText) => {
|
|
23001
23043
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
23002
23044
|
});
|
|
23003
23045
|
}
|
|
23004
|
-
return Promise.resolve<
|
|
23046
|
+
return Promise.resolve<void>(null as any);
|
|
23005
23047
|
}
|
|
23048
|
+
}
|
|
23006
23049
|
|
|
23007
|
-
|
|
23008
|
-
|
|
23050
|
+
export interface IInspectMatchCertificateTypesClient {
|
|
23051
|
+
|
|
23052
|
+
getMaterialCertificateTypes(id: string, version: number | null | undefined): Promise<ImaCertificateTypeDto>;
|
|
23053
|
+
|
|
23054
|
+
listMaterialCertificateTypes(): Promise<ImaCertificateTypeLiteDto[]>;
|
|
23055
|
+
}
|
|
23056
|
+
|
|
23057
|
+
export class InspectMatchCertificateTypesClient extends AuthorizedApiBase implements IInspectMatchCertificateTypesClient {
|
|
23058
|
+
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
|
|
23059
|
+
private baseUrl: string;
|
|
23060
|
+
|
|
23061
|
+
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
|
|
23062
|
+
super(configuration);
|
|
23063
|
+
this.http = http ? http : window as any;
|
|
23064
|
+
this.baseUrl = baseUrl ?? "";
|
|
23065
|
+
}
|
|
23066
|
+
|
|
23067
|
+
getMaterialCertificateTypes(id: string, version: number | null | undefined): Promise<ImaCertificateTypeDto> {
|
|
23068
|
+
let url_ = this.baseUrl + "/inspect/match/certificate-types/{id}?";
|
|
23009
23069
|
if (id === undefined || id === null)
|
|
23010
23070
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
23011
23071
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
@@ -23014,7 +23074,7 @@ export class InspectMatchCertificateTypesClient extends AuthorizedApiBase implem
|
|
|
23014
23074
|
url_ = url_.replace(/[?&]$/, "");
|
|
23015
23075
|
|
|
23016
23076
|
let options_: RequestInit = {
|
|
23017
|
-
method: "
|
|
23077
|
+
method: "GET",
|
|
23018
23078
|
headers: {
|
|
23019
23079
|
"Accept": "application/json"
|
|
23020
23080
|
}
|
|
@@ -23023,11 +23083,11 @@ export class InspectMatchCertificateTypesClient extends AuthorizedApiBase implem
|
|
|
23023
23083
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
23024
23084
|
return this.http.fetch(url_, transformedOptions_);
|
|
23025
23085
|
}).then((_response: Response) => {
|
|
23026
|
-
return this.
|
|
23086
|
+
return this.processGetMaterialCertificateTypes(_response);
|
|
23027
23087
|
});
|
|
23028
23088
|
}
|
|
23029
23089
|
|
|
23030
|
-
protected
|
|
23090
|
+
protected processGetMaterialCertificateTypes(response: Response): Promise<ImaCertificateTypeDto> {
|
|
23031
23091
|
const status = response.status;
|
|
23032
23092
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
23033
23093
|
if (status === 200) {
|
|
@@ -23044,17 +23104,12 @@ export class InspectMatchCertificateTypesClient extends AuthorizedApiBase implem
|
|
|
23044
23104
|
return Promise.resolve<ImaCertificateTypeDto>(null as any);
|
|
23045
23105
|
}
|
|
23046
23106
|
|
|
23047
|
-
|
|
23048
|
-
let url_ = this.baseUrl + "/inspect/match/certificate-types/
|
|
23049
|
-
if (id === undefined || id === null)
|
|
23050
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
23051
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
23052
|
-
if (version !== undefined && version !== null)
|
|
23053
|
-
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
23107
|
+
listMaterialCertificateTypes(): Promise<ImaCertificateTypeLiteDto[]> {
|
|
23108
|
+
let url_ = this.baseUrl + "/inspect/match/certificate-types/list";
|
|
23054
23109
|
url_ = url_.replace(/[?&]$/, "");
|
|
23055
23110
|
|
|
23056
23111
|
let options_: RequestInit = {
|
|
23057
|
-
method: "
|
|
23112
|
+
method: "GET",
|
|
23058
23113
|
headers: {
|
|
23059
23114
|
"Accept": "application/json"
|
|
23060
23115
|
}
|
|
@@ -23063,17 +23118,17 @@ export class InspectMatchCertificateTypesClient extends AuthorizedApiBase implem
|
|
|
23063
23118
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
23064
23119
|
return this.http.fetch(url_, transformedOptions_);
|
|
23065
23120
|
}).then((_response: Response) => {
|
|
23066
|
-
return this.
|
|
23121
|
+
return this.processListMaterialCertificateTypes(_response);
|
|
23067
23122
|
});
|
|
23068
23123
|
}
|
|
23069
23124
|
|
|
23070
|
-
protected
|
|
23125
|
+
protected processListMaterialCertificateTypes(response: Response): Promise<ImaCertificateTypeLiteDto[]> {
|
|
23071
23126
|
const status = response.status;
|
|
23072
23127
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
23073
23128
|
if (status === 200) {
|
|
23074
23129
|
return response.text().then((_responseText) => {
|
|
23075
23130
|
let result200: any = null;
|
|
23076
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as
|
|
23131
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ImaCertificateTypeLiteDto[];
|
|
23077
23132
|
return result200;
|
|
23078
23133
|
});
|
|
23079
23134
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -23081,7 +23136,7 @@ export class InspectMatchCertificateTypesClient extends AuthorizedApiBase implem
|
|
|
23081
23136
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
23082
23137
|
});
|
|
23083
23138
|
}
|
|
23084
|
-
return Promise.resolve<
|
|
23139
|
+
return Promise.resolve<ImaCertificateTypeLiteDto[]>(null as any);
|
|
23085
23140
|
}
|
|
23086
23141
|
}
|
|
23087
23142
|
|
|
@@ -23223,15 +23278,7 @@ export class InspectMatchPurchaseOrderClient extends AuthorizedApiBase implement
|
|
|
23223
23278
|
}
|
|
23224
23279
|
}
|
|
23225
23280
|
|
|
23226
|
-
export interface
|
|
23227
|
-
|
|
23228
|
-
listSpecifications(): Promise<ImaSpecificationLiteDto[]>;
|
|
23229
|
-
|
|
23230
|
-
getSpecification(id: string, version: number | null | undefined): Promise<ImaSpecificationDto>;
|
|
23231
|
-
|
|
23232
|
-
updateSpecification(id: string, version: number | null | undefined, dto: ImaUpdateSpecificationDto): Promise<ImaSpecificationDto>;
|
|
23233
|
-
|
|
23234
|
-
deleteSpecification(id: string, version: number | null | undefined): Promise<void>;
|
|
23281
|
+
export interface IInspectMatchSpecificationsAdminClient {
|
|
23235
23282
|
|
|
23236
23283
|
createSpecification(createRequestDto: ImaCreateSpecificationRequestDto): Promise<ImaSpecificationDto>;
|
|
23237
23284
|
|
|
@@ -23240,9 +23287,13 @@ export interface IInspectMatchSpecificationsClient {
|
|
|
23240
23287
|
createNewVersionForSpecification(id: string, version: number | null | undefined): Promise<ImaSpecificationDto>;
|
|
23241
23288
|
|
|
23242
23289
|
releaseSpecification(id: string, version: number | null | undefined): Promise<ImaSpecificationDto>;
|
|
23290
|
+
|
|
23291
|
+
updateSpecification(id: string, version: number | null | undefined, dto: ImaUpdateSpecificationDto): Promise<ImaSpecificationDto>;
|
|
23292
|
+
|
|
23293
|
+
deleteSpecification(id: string, version: number | null | undefined): Promise<void>;
|
|
23243
23294
|
}
|
|
23244
23295
|
|
|
23245
|
-
export class
|
|
23296
|
+
export class InspectMatchSpecificationsAdminClient extends AuthorizedApiBase implements IInspectMatchSpecificationsAdminClient {
|
|
23246
23297
|
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
|
|
23247
23298
|
private baseUrl: string;
|
|
23248
23299
|
|
|
@@ -23252,13 +23303,17 @@ export class InspectMatchSpecificationsClient extends AuthorizedApiBase implemen
|
|
|
23252
23303
|
this.baseUrl = baseUrl ?? "";
|
|
23253
23304
|
}
|
|
23254
23305
|
|
|
23255
|
-
|
|
23256
|
-
let url_ = this.baseUrl + "/inspect/match/specifications
|
|
23306
|
+
createSpecification(createRequestDto: ImaCreateSpecificationRequestDto): Promise<ImaSpecificationDto> {
|
|
23307
|
+
let url_ = this.baseUrl + "/inspect/match/specifications";
|
|
23257
23308
|
url_ = url_.replace(/[?&]$/, "");
|
|
23258
23309
|
|
|
23310
|
+
const content_ = JSON.stringify(createRequestDto);
|
|
23311
|
+
|
|
23259
23312
|
let options_: RequestInit = {
|
|
23260
|
-
|
|
23313
|
+
body: content_,
|
|
23314
|
+
method: "POST",
|
|
23261
23315
|
headers: {
|
|
23316
|
+
"Content-Type": "application/json",
|
|
23262
23317
|
"Accept": "application/json"
|
|
23263
23318
|
}
|
|
23264
23319
|
};
|
|
@@ -23266,17 +23321,17 @@ export class InspectMatchSpecificationsClient extends AuthorizedApiBase implemen
|
|
|
23266
23321
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
23267
23322
|
return this.http.fetch(url_, transformedOptions_);
|
|
23268
23323
|
}).then((_response: Response) => {
|
|
23269
|
-
return this.
|
|
23324
|
+
return this.processCreateSpecification(_response);
|
|
23270
23325
|
});
|
|
23271
23326
|
}
|
|
23272
23327
|
|
|
23273
|
-
protected
|
|
23328
|
+
protected processCreateSpecification(response: Response): Promise<ImaSpecificationDto> {
|
|
23274
23329
|
const status = response.status;
|
|
23275
23330
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
23276
23331
|
if (status === 200) {
|
|
23277
23332
|
return response.text().then((_responseText) => {
|
|
23278
23333
|
let result200: any = null;
|
|
23279
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as
|
|
23334
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ImaSpecificationDto;
|
|
23280
23335
|
return result200;
|
|
23281
23336
|
});
|
|
23282
23337
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -23284,11 +23339,11 @@ export class InspectMatchSpecificationsClient extends AuthorizedApiBase implemen
|
|
|
23284
23339
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
23285
23340
|
});
|
|
23286
23341
|
}
|
|
23287
|
-
return Promise.resolve<
|
|
23342
|
+
return Promise.resolve<ImaSpecificationDto>(null as any);
|
|
23288
23343
|
}
|
|
23289
23344
|
|
|
23290
|
-
|
|
23291
|
-
let url_ = this.baseUrl + "/inspect/match/specifications/{id}?";
|
|
23345
|
+
copySpecification(id: string, version: number | null | undefined, copyDto: ImaCopySpecificationRequestDto): Promise<ImaSpecificationDto> {
|
|
23346
|
+
let url_ = this.baseUrl + "/inspect/match/specifications/{id}/copy?";
|
|
23292
23347
|
if (id === undefined || id === null)
|
|
23293
23348
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
23294
23349
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
@@ -23296,9 +23351,13 @@ export class InspectMatchSpecificationsClient extends AuthorizedApiBase implemen
|
|
|
23296
23351
|
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
23297
23352
|
url_ = url_.replace(/[?&]$/, "");
|
|
23298
23353
|
|
|
23354
|
+
const content_ = JSON.stringify(copyDto);
|
|
23355
|
+
|
|
23299
23356
|
let options_: RequestInit = {
|
|
23300
|
-
|
|
23357
|
+
body: content_,
|
|
23358
|
+
method: "POST",
|
|
23301
23359
|
headers: {
|
|
23360
|
+
"Content-Type": "application/json",
|
|
23302
23361
|
"Accept": "application/json"
|
|
23303
23362
|
}
|
|
23304
23363
|
};
|
|
@@ -23306,11 +23365,11 @@ export class InspectMatchSpecificationsClient extends AuthorizedApiBase implemen
|
|
|
23306
23365
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
23307
23366
|
return this.http.fetch(url_, transformedOptions_);
|
|
23308
23367
|
}).then((_response: Response) => {
|
|
23309
|
-
return this.
|
|
23368
|
+
return this.processCopySpecification(_response);
|
|
23310
23369
|
});
|
|
23311
23370
|
}
|
|
23312
23371
|
|
|
23313
|
-
protected
|
|
23372
|
+
protected processCopySpecification(response: Response): Promise<ImaSpecificationDto> {
|
|
23314
23373
|
const status = response.status;
|
|
23315
23374
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
23316
23375
|
if (status === 200) {
|
|
@@ -23327,8 +23386,8 @@ export class InspectMatchSpecificationsClient extends AuthorizedApiBase implemen
|
|
|
23327
23386
|
return Promise.resolve<ImaSpecificationDto>(null as any);
|
|
23328
23387
|
}
|
|
23329
23388
|
|
|
23330
|
-
|
|
23331
|
-
let url_ = this.baseUrl + "/inspect/match/specifications/{id}?";
|
|
23389
|
+
createNewVersionForSpecification(id: string, version: number | null | undefined): Promise<ImaSpecificationDto> {
|
|
23390
|
+
let url_ = this.baseUrl + "/inspect/match/specifications/{id}/new-version?";
|
|
23332
23391
|
if (id === undefined || id === null)
|
|
23333
23392
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
23334
23393
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
@@ -23336,13 +23395,9 @@ export class InspectMatchSpecificationsClient extends AuthorizedApiBase implemen
|
|
|
23336
23395
|
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
23337
23396
|
url_ = url_.replace(/[?&]$/, "");
|
|
23338
23397
|
|
|
23339
|
-
const content_ = JSON.stringify(dto);
|
|
23340
|
-
|
|
23341
23398
|
let options_: RequestInit = {
|
|
23342
|
-
|
|
23343
|
-
method: "PUT",
|
|
23399
|
+
method: "POST",
|
|
23344
23400
|
headers: {
|
|
23345
|
-
"Content-Type": "application/json",
|
|
23346
23401
|
"Accept": "application/json"
|
|
23347
23402
|
}
|
|
23348
23403
|
};
|
|
@@ -23350,11 +23405,11 @@ export class InspectMatchSpecificationsClient extends AuthorizedApiBase implemen
|
|
|
23350
23405
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
23351
23406
|
return this.http.fetch(url_, transformedOptions_);
|
|
23352
23407
|
}).then((_response: Response) => {
|
|
23353
|
-
return this.
|
|
23408
|
+
return this.processCreateNewVersionForSpecification(_response);
|
|
23354
23409
|
});
|
|
23355
23410
|
}
|
|
23356
23411
|
|
|
23357
|
-
protected
|
|
23412
|
+
protected processCreateNewVersionForSpecification(response: Response): Promise<ImaSpecificationDto> {
|
|
23358
23413
|
const status = response.status;
|
|
23359
23414
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
23360
23415
|
if (status === 200) {
|
|
@@ -23371,8 +23426,8 @@ export class InspectMatchSpecificationsClient extends AuthorizedApiBase implemen
|
|
|
23371
23426
|
return Promise.resolve<ImaSpecificationDto>(null as any);
|
|
23372
23427
|
}
|
|
23373
23428
|
|
|
23374
|
-
|
|
23375
|
-
let url_ = this.baseUrl + "/inspect/match/specifications/{id}?";
|
|
23429
|
+
releaseSpecification(id: string, version: number | null | undefined): Promise<ImaSpecificationDto> {
|
|
23430
|
+
let url_ = this.baseUrl + "/inspect/match/specifications/{id}/release?";
|
|
23376
23431
|
if (id === undefined || id === null)
|
|
23377
23432
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
23378
23433
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
@@ -23381,42 +23436,50 @@ export class InspectMatchSpecificationsClient extends AuthorizedApiBase implemen
|
|
|
23381
23436
|
url_ = url_.replace(/[?&]$/, "");
|
|
23382
23437
|
|
|
23383
23438
|
let options_: RequestInit = {
|
|
23384
|
-
method: "
|
|
23439
|
+
method: "POST",
|
|
23385
23440
|
headers: {
|
|
23441
|
+
"Accept": "application/json"
|
|
23386
23442
|
}
|
|
23387
23443
|
};
|
|
23388
23444
|
|
|
23389
23445
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
23390
23446
|
return this.http.fetch(url_, transformedOptions_);
|
|
23391
23447
|
}).then((_response: Response) => {
|
|
23392
|
-
return this.
|
|
23448
|
+
return this.processReleaseSpecification(_response);
|
|
23393
23449
|
});
|
|
23394
23450
|
}
|
|
23395
23451
|
|
|
23396
|
-
protected
|
|
23452
|
+
protected processReleaseSpecification(response: Response): Promise<ImaSpecificationDto> {
|
|
23397
23453
|
const status = response.status;
|
|
23398
23454
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
23399
|
-
if (status ===
|
|
23455
|
+
if (status === 200) {
|
|
23400
23456
|
return response.text().then((_responseText) => {
|
|
23401
|
-
|
|
23457
|
+
let result200: any = null;
|
|
23458
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ImaSpecificationDto;
|
|
23459
|
+
return result200;
|
|
23402
23460
|
});
|
|
23403
23461
|
} else if (status !== 200 && status !== 204) {
|
|
23404
23462
|
return response.text().then((_responseText) => {
|
|
23405
23463
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
23406
23464
|
});
|
|
23407
23465
|
}
|
|
23408
|
-
return Promise.resolve<
|
|
23466
|
+
return Promise.resolve<ImaSpecificationDto>(null as any);
|
|
23409
23467
|
}
|
|
23410
23468
|
|
|
23411
|
-
|
|
23412
|
-
let url_ = this.baseUrl + "/inspect/match/specifications";
|
|
23469
|
+
updateSpecification(id: string, version: number | null | undefined, dto: ImaUpdateSpecificationDto): Promise<ImaSpecificationDto> {
|
|
23470
|
+
let url_ = this.baseUrl + "/inspect/match/specifications/{id}?";
|
|
23471
|
+
if (id === undefined || id === null)
|
|
23472
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
23473
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
23474
|
+
if (version !== undefined && version !== null)
|
|
23475
|
+
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
23413
23476
|
url_ = url_.replace(/[?&]$/, "");
|
|
23414
23477
|
|
|
23415
|
-
const content_ = JSON.stringify(
|
|
23478
|
+
const content_ = JSON.stringify(dto);
|
|
23416
23479
|
|
|
23417
23480
|
let options_: RequestInit = {
|
|
23418
23481
|
body: content_,
|
|
23419
|
-
method: "
|
|
23482
|
+
method: "PUT",
|
|
23420
23483
|
headers: {
|
|
23421
23484
|
"Content-Type": "application/json",
|
|
23422
23485
|
"Accept": "application/json"
|
|
@@ -23426,11 +23489,11 @@ export class InspectMatchSpecificationsClient extends AuthorizedApiBase implemen
|
|
|
23426
23489
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
23427
23490
|
return this.http.fetch(url_, transformedOptions_);
|
|
23428
23491
|
}).then((_response: Response) => {
|
|
23429
|
-
return this.
|
|
23492
|
+
return this.processUpdateSpecification(_response);
|
|
23430
23493
|
});
|
|
23431
23494
|
}
|
|
23432
23495
|
|
|
23433
|
-
protected
|
|
23496
|
+
protected processUpdateSpecification(response: Response): Promise<ImaSpecificationDto> {
|
|
23434
23497
|
const status = response.status;
|
|
23435
23498
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
23436
23499
|
if (status === 200) {
|
|
@@ -23447,8 +23510,8 @@ export class InspectMatchSpecificationsClient extends AuthorizedApiBase implemen
|
|
|
23447
23510
|
return Promise.resolve<ImaSpecificationDto>(null as any);
|
|
23448
23511
|
}
|
|
23449
23512
|
|
|
23450
|
-
|
|
23451
|
-
let url_ = this.baseUrl + "/inspect/match/specifications/{id}
|
|
23513
|
+
deleteSpecification(id: string, version: number | null | undefined): Promise<void> {
|
|
23514
|
+
let url_ = this.baseUrl + "/inspect/match/specifications/{id}?";
|
|
23452
23515
|
if (id === undefined || id === null)
|
|
23453
23516
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
23454
23517
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
@@ -23456,43 +23519,54 @@ export class InspectMatchSpecificationsClient extends AuthorizedApiBase implemen
|
|
|
23456
23519
|
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
23457
23520
|
url_ = url_.replace(/[?&]$/, "");
|
|
23458
23521
|
|
|
23459
|
-
const content_ = JSON.stringify(copyDto);
|
|
23460
|
-
|
|
23461
23522
|
let options_: RequestInit = {
|
|
23462
|
-
|
|
23463
|
-
method: "POST",
|
|
23523
|
+
method: "DELETE",
|
|
23464
23524
|
headers: {
|
|
23465
|
-
"Content-Type": "application/json",
|
|
23466
|
-
"Accept": "application/json"
|
|
23467
23525
|
}
|
|
23468
23526
|
};
|
|
23469
23527
|
|
|
23470
23528
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
23471
23529
|
return this.http.fetch(url_, transformedOptions_);
|
|
23472
23530
|
}).then((_response: Response) => {
|
|
23473
|
-
return this.
|
|
23531
|
+
return this.processDeleteSpecification(_response);
|
|
23474
23532
|
});
|
|
23475
23533
|
}
|
|
23476
23534
|
|
|
23477
|
-
protected
|
|
23535
|
+
protected processDeleteSpecification(response: Response): Promise<void> {
|
|
23478
23536
|
const status = response.status;
|
|
23479
23537
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
23480
|
-
if (status ===
|
|
23538
|
+
if (status === 204) {
|
|
23481
23539
|
return response.text().then((_responseText) => {
|
|
23482
|
-
|
|
23483
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ImaSpecificationDto;
|
|
23484
|
-
return result200;
|
|
23540
|
+
return;
|
|
23485
23541
|
});
|
|
23486
23542
|
} else if (status !== 200 && status !== 204) {
|
|
23487
23543
|
return response.text().then((_responseText) => {
|
|
23488
23544
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
23489
23545
|
});
|
|
23490
23546
|
}
|
|
23491
|
-
return Promise.resolve<
|
|
23547
|
+
return Promise.resolve<void>(null as any);
|
|
23492
23548
|
}
|
|
23549
|
+
}
|
|
23493
23550
|
|
|
23494
|
-
|
|
23495
|
-
|
|
23551
|
+
export interface IInspectMatchSpecificationsClient {
|
|
23552
|
+
|
|
23553
|
+
getSpecification(id: string, version: number | null | undefined): Promise<ImaSpecificationDto>;
|
|
23554
|
+
|
|
23555
|
+
listSpecifications(): Promise<ImaSpecificationLiteDto[]>;
|
|
23556
|
+
}
|
|
23557
|
+
|
|
23558
|
+
export class InspectMatchSpecificationsClient extends AuthorizedApiBase implements IInspectMatchSpecificationsClient {
|
|
23559
|
+
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
|
|
23560
|
+
private baseUrl: string;
|
|
23561
|
+
|
|
23562
|
+
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
|
|
23563
|
+
super(configuration);
|
|
23564
|
+
this.http = http ? http : window as any;
|
|
23565
|
+
this.baseUrl = baseUrl ?? "";
|
|
23566
|
+
}
|
|
23567
|
+
|
|
23568
|
+
getSpecification(id: string, version: number | null | undefined): Promise<ImaSpecificationDto> {
|
|
23569
|
+
let url_ = this.baseUrl + "/inspect/match/specifications/{id}?";
|
|
23496
23570
|
if (id === undefined || id === null)
|
|
23497
23571
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
23498
23572
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
@@ -23501,7 +23575,7 @@ export class InspectMatchSpecificationsClient extends AuthorizedApiBase implemen
|
|
|
23501
23575
|
url_ = url_.replace(/[?&]$/, "");
|
|
23502
23576
|
|
|
23503
23577
|
let options_: RequestInit = {
|
|
23504
|
-
method: "
|
|
23578
|
+
method: "GET",
|
|
23505
23579
|
headers: {
|
|
23506
23580
|
"Accept": "application/json"
|
|
23507
23581
|
}
|
|
@@ -23510,11 +23584,11 @@ export class InspectMatchSpecificationsClient extends AuthorizedApiBase implemen
|
|
|
23510
23584
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
23511
23585
|
return this.http.fetch(url_, transformedOptions_);
|
|
23512
23586
|
}).then((_response: Response) => {
|
|
23513
|
-
return this.
|
|
23587
|
+
return this.processGetSpecification(_response);
|
|
23514
23588
|
});
|
|
23515
23589
|
}
|
|
23516
23590
|
|
|
23517
|
-
protected
|
|
23591
|
+
protected processGetSpecification(response: Response): Promise<ImaSpecificationDto> {
|
|
23518
23592
|
const status = response.status;
|
|
23519
23593
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
23520
23594
|
if (status === 200) {
|
|
@@ -23531,17 +23605,12 @@ export class InspectMatchSpecificationsClient extends AuthorizedApiBase implemen
|
|
|
23531
23605
|
return Promise.resolve<ImaSpecificationDto>(null as any);
|
|
23532
23606
|
}
|
|
23533
23607
|
|
|
23534
|
-
|
|
23535
|
-
let url_ = this.baseUrl + "/inspect/match/specifications/
|
|
23536
|
-
if (id === undefined || id === null)
|
|
23537
|
-
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
23538
|
-
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
23539
|
-
if (version !== undefined && version !== null)
|
|
23540
|
-
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
23608
|
+
listSpecifications(): Promise<ImaSpecificationLiteDto[]> {
|
|
23609
|
+
let url_ = this.baseUrl + "/inspect/match/specifications/list";
|
|
23541
23610
|
url_ = url_.replace(/[?&]$/, "");
|
|
23542
23611
|
|
|
23543
23612
|
let options_: RequestInit = {
|
|
23544
|
-
method: "
|
|
23613
|
+
method: "GET",
|
|
23545
23614
|
headers: {
|
|
23546
23615
|
"Accept": "application/json"
|
|
23547
23616
|
}
|
|
@@ -23550,17 +23619,17 @@ export class InspectMatchSpecificationsClient extends AuthorizedApiBase implemen
|
|
|
23550
23619
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
23551
23620
|
return this.http.fetch(url_, transformedOptions_);
|
|
23552
23621
|
}).then((_response: Response) => {
|
|
23553
|
-
return this.
|
|
23622
|
+
return this.processListSpecifications(_response);
|
|
23554
23623
|
});
|
|
23555
23624
|
}
|
|
23556
23625
|
|
|
23557
|
-
protected
|
|
23626
|
+
protected processListSpecifications(response: Response): Promise<ImaSpecificationLiteDto[]> {
|
|
23558
23627
|
const status = response.status;
|
|
23559
23628
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
23560
23629
|
if (status === 200) {
|
|
23561
23630
|
return response.text().then((_responseText) => {
|
|
23562
23631
|
let result200: any = null;
|
|
23563
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as
|
|
23632
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as ImaSpecificationLiteDto[];
|
|
23564
23633
|
return result200;
|
|
23565
23634
|
});
|
|
23566
23635
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -23568,7 +23637,7 @@ export class InspectMatchSpecificationsClient extends AuthorizedApiBase implemen
|
|
|
23568
23637
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
23569
23638
|
});
|
|
23570
23639
|
}
|
|
23571
|
-
return Promise.resolve<
|
|
23640
|
+
return Promise.resolve<ImaSpecificationLiteDto[]>(null as any);
|
|
23572
23641
|
}
|
|
23573
23642
|
}
|
|
23574
23643
|
|
|
@@ -29948,6 +30017,15 @@ export interface UploadInfoDto {
|
|
|
29948
30017
|
accessKey?: string | null;
|
|
29949
30018
|
}
|
|
29950
30019
|
|
|
30020
|
+
export interface UploadInfoCdfDto {
|
|
30021
|
+
id: number;
|
|
30022
|
+
url: string;
|
|
30023
|
+
}
|
|
30024
|
+
|
|
30025
|
+
export interface CreateUploadInfoCdf {
|
|
30026
|
+
name: string;
|
|
30027
|
+
}
|
|
30028
|
+
|
|
29951
30029
|
export interface DataHealthDto {
|
|
29952
30030
|
machines?: MachineDataHealthDto[] | null;
|
|
29953
30031
|
}
|
|
@@ -34619,7 +34697,7 @@ export interface ImaSpecificationHeatTreatmentHeatingResult {
|
|
|
34619
34697
|
}
|
|
34620
34698
|
|
|
34621
34699
|
export interface ProcessImaCheckRequestDto {
|
|
34622
|
-
files:
|
|
34700
|
+
files: UploadFileCdfDto[];
|
|
34623
34701
|
specificationId: string;
|
|
34624
34702
|
specificationVersion: string;
|
|
34625
34703
|
certificateTypeId?: string | null;
|
|
@@ -34627,6 +34705,10 @@ export interface ProcessImaCheckRequestDto {
|
|
|
34627
34705
|
purchaseOrder?: string | null;
|
|
34628
34706
|
}
|
|
34629
34707
|
|
|
34708
|
+
export interface UploadFileCdfDto {
|
|
34709
|
+
id: number;
|
|
34710
|
+
}
|
|
34711
|
+
|
|
34630
34712
|
export interface ImaUpdateResultRequestDto {
|
|
34631
34713
|
certificateId: string;
|
|
34632
34714
|
project?: string | null;
|
|
@@ -34762,25 +34844,6 @@ export interface ImaUpdateSpecificationHeatTreatmentResultsDto {
|
|
|
34762
34844
|
export interface ImaCdfEntityReadBase {
|
|
34763
34845
|
}
|
|
34764
34846
|
|
|
34765
|
-
export interface ImaCertificateTypeLiteDto extends ImaCdfEntityReadBase {
|
|
34766
|
-
certificateTypeId: string;
|
|
34767
|
-
version: number;
|
|
34768
|
-
name: string;
|
|
34769
|
-
revision: string;
|
|
34770
|
-
status: ImaCertificateTypeStatus;
|
|
34771
|
-
description?: string | null;
|
|
34772
|
-
isStandardCertificateType: boolean;
|
|
34773
|
-
created: Date;
|
|
34774
|
-
createdBy: string;
|
|
34775
|
-
createdById: string;
|
|
34776
|
-
updatedBy?: string | null;
|
|
34777
|
-
updatedById?: string | null;
|
|
34778
|
-
updated: Date;
|
|
34779
|
-
isDeleted: boolean;
|
|
34780
|
-
}
|
|
34781
|
-
|
|
34782
|
-
export type ImaCertificateTypeStatus = "Draft" | "Released" | "Expired" | "Rejected" | "NotSet";
|
|
34783
|
-
|
|
34784
34847
|
export interface ImaCertificateTypeDto extends ImaCdfEntityReadBase {
|
|
34785
34848
|
certificateTypeId: string;
|
|
34786
34849
|
version: number;
|
|
@@ -34805,6 +34868,8 @@ export interface ImaCertificateTypeVersionDto {
|
|
|
34805
34868
|
status?: ImaCertificateTypeStatus;
|
|
34806
34869
|
}
|
|
34807
34870
|
|
|
34871
|
+
export type ImaCertificateTypeStatus = "Draft" | "Released" | "Expired" | "Rejected" | "NotSet";
|
|
34872
|
+
|
|
34808
34873
|
export interface ImaCertificateTypeRequirementsDto {
|
|
34809
34874
|
manufacturer: ImaCertificateTypeManufacturerRequirementsDto;
|
|
34810
34875
|
signature: ImaCertificateTypeSignatureRequirementsDto;
|
|
@@ -34975,6 +35040,23 @@ export interface ImaCertificateTypeDocumentTypesRequirementsUpdateDto {
|
|
|
34975
35040
|
radiologicalReport?: boolean | null;
|
|
34976
35041
|
}
|
|
34977
35042
|
|
|
35043
|
+
export interface ImaCertificateTypeLiteDto extends ImaCdfEntityReadBase {
|
|
35044
|
+
certificateTypeId: string;
|
|
35045
|
+
version: number;
|
|
35046
|
+
name: string;
|
|
35047
|
+
revision: string;
|
|
35048
|
+
status: ImaCertificateTypeStatus;
|
|
35049
|
+
description?: string | null;
|
|
35050
|
+
isStandardCertificateType: boolean;
|
|
35051
|
+
created: Date;
|
|
35052
|
+
createdBy: string;
|
|
35053
|
+
createdById: string;
|
|
35054
|
+
updatedBy?: string | null;
|
|
35055
|
+
updatedById?: string | null;
|
|
35056
|
+
updated: Date;
|
|
35057
|
+
isDeleted: boolean;
|
|
35058
|
+
}
|
|
35059
|
+
|
|
34978
35060
|
export interface PurchaseOrderMaterialSearchResultsDto {
|
|
34979
35061
|
purchaseOrders: string[];
|
|
34980
35062
|
}
|
|
@@ -35018,26 +35100,6 @@ export interface User {
|
|
|
35018
35100
|
email?: string | null;
|
|
35019
35101
|
}
|
|
35020
35102
|
|
|
35021
|
-
export interface ImaSpecificationLiteDto extends ImaCdfEntityReadBase {
|
|
35022
|
-
specificationId: string;
|
|
35023
|
-
version: number;
|
|
35024
|
-
name: string;
|
|
35025
|
-
number: string;
|
|
35026
|
-
revision: string;
|
|
35027
|
-
date: Date;
|
|
35028
|
-
status: ImaSpecificationStatus;
|
|
35029
|
-
summary?: string | null;
|
|
35030
|
-
relatedStandards: string[];
|
|
35031
|
-
created: Date;
|
|
35032
|
-
createdBy: string;
|
|
35033
|
-
createdById: string;
|
|
35034
|
-
updatedBy: string;
|
|
35035
|
-
updatedById: string;
|
|
35036
|
-
isDeleted: boolean;
|
|
35037
|
-
}
|
|
35038
|
-
|
|
35039
|
-
export type ImaSpecificationStatus = "Draft" | "Released" | "Expired" | "Rejected" | "NotSet";
|
|
35040
|
-
|
|
35041
35103
|
export interface ImaSpecificationDto extends ImaCdfEntityReadBase {
|
|
35042
35104
|
specificationId: string;
|
|
35043
35105
|
version: number;
|
|
@@ -35067,6 +35129,8 @@ export interface ImaSpecificationVersionDto {
|
|
|
35067
35129
|
status?: ImaSpecificationStatus;
|
|
35068
35130
|
}
|
|
35069
35131
|
|
|
35132
|
+
export type ImaSpecificationStatus = "Draft" | "Released" | "Expired" | "Rejected" | "NotSet";
|
|
35133
|
+
|
|
35070
35134
|
export interface ImaChemistrySpecificationDto extends ImaCdfEntityReadBase {
|
|
35071
35135
|
carbon?: ImaSpecificationLineDto | null;
|
|
35072
35136
|
manganese?: ImaSpecificationLineDto | null;
|
|
@@ -35155,6 +35219,24 @@ export interface ImaUpdateSpecificationDto {
|
|
|
35155
35219
|
|
|
35156
35220
|
export type ImaSpecificationStatusUpdate = "NotModified" | "Released" | "Obsolete";
|
|
35157
35221
|
|
|
35222
|
+
export interface ImaSpecificationLiteDto extends ImaCdfEntityReadBase {
|
|
35223
|
+
specificationId: string;
|
|
35224
|
+
version: number;
|
|
35225
|
+
name: string;
|
|
35226
|
+
number: string;
|
|
35227
|
+
revision: string;
|
|
35228
|
+
date: Date;
|
|
35229
|
+
status: ImaSpecificationStatus;
|
|
35230
|
+
summary?: string | null;
|
|
35231
|
+
relatedStandards: string[];
|
|
35232
|
+
created: Date;
|
|
35233
|
+
createdBy: string;
|
|
35234
|
+
createdById: string;
|
|
35235
|
+
updatedBy: string;
|
|
35236
|
+
updatedById: string;
|
|
35237
|
+
isDeleted: boolean;
|
|
35238
|
+
}
|
|
35239
|
+
|
|
35158
35240
|
export interface MeasurementFormSchemaDto {
|
|
35159
35241
|
id: string;
|
|
35160
35242
|
versionId: number;
|