@ignos/api-client 20260304.70.1 → 20260306.71.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 +23 -23
- package/lib/ignosportal-api.js +39 -35
- package/package.json +1 -1
- package/src/ignosportal-api.ts +59 -55
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -3234,9 +3234,9 @@ export declare class MaterialCertificateChecksClient extends AuthorizedApiBase i
|
|
|
3234
3234
|
export interface IMaterialCertificateSpecificationsClient {
|
|
3235
3235
|
listSpecifications(): Promise<AmcSpecificationLiteDto[]>;
|
|
3236
3236
|
getSpecification(id: string, version: number | null | undefined): Promise<AmcSpecificationDto>;
|
|
3237
|
+
updateSpecifications(id: string, version: number | null | undefined, _: AmcUpdateSpecificationDto): Promise<AmcSpecificationDto>;
|
|
3238
|
+
deleteMaterialCertificateTypes(id: string, version: number | null | undefined): Promise<void>;
|
|
3237
3239
|
createSpecifications(createDto: CreateAmcSpecificationDto): Promise<AmcSpecificationDto>;
|
|
3238
|
-
updateSpecifications(specificationsRequest: UpdateAmcSpecificationDto): Promise<AmcSpecificationDto>;
|
|
3239
|
-
deleteMaterialCertificateTypes(materialCertificateSpecificationId: string, version: string): Promise<void>;
|
|
3240
3240
|
}
|
|
3241
3241
|
export declare class MaterialCertificateSpecificationsClient extends AuthorizedApiBase implements IMaterialCertificateSpecificationsClient {
|
|
3242
3242
|
private http;
|
|
@@ -3248,12 +3248,12 @@ export declare class MaterialCertificateSpecificationsClient extends AuthorizedA
|
|
|
3248
3248
|
protected processListSpecifications(response: Response): Promise<AmcSpecificationLiteDto[]>;
|
|
3249
3249
|
getSpecification(id: string, version: number | null | undefined): Promise<AmcSpecificationDto>;
|
|
3250
3250
|
protected processGetSpecification(response: Response): Promise<AmcSpecificationDto>;
|
|
3251
|
-
|
|
3252
|
-
protected processCreateSpecifications(response: Response): Promise<AmcSpecificationDto>;
|
|
3253
|
-
updateSpecifications(specificationsRequest: UpdateAmcSpecificationDto): Promise<AmcSpecificationDto>;
|
|
3251
|
+
updateSpecifications(id: string, version: number | null | undefined, _: AmcUpdateSpecificationDto): Promise<AmcSpecificationDto>;
|
|
3254
3252
|
protected processUpdateSpecifications(response: Response): Promise<AmcSpecificationDto>;
|
|
3255
|
-
deleteMaterialCertificateTypes(
|
|
3253
|
+
deleteMaterialCertificateTypes(id: string, version: number | null | undefined): Promise<void>;
|
|
3256
3254
|
protected processDeleteMaterialCertificateTypes(response: Response): Promise<void>;
|
|
3255
|
+
createSpecifications(createDto: CreateAmcSpecificationDto): Promise<AmcSpecificationDto>;
|
|
3256
|
+
protected processCreateSpecifications(response: Response): Promise<AmcSpecificationDto>;
|
|
3257
3257
|
}
|
|
3258
3258
|
export interface IMaterialCertificateTypesClient {
|
|
3259
3259
|
listMaterialCertificateTypes(): Promise<AmcCertificateTypeLiteDto[]>;
|
|
@@ -8871,16 +8871,16 @@ export interface AmcSpecificationDto extends AmcCdfEntityReadBase {
|
|
|
8871
8871
|
updatedBy: string;
|
|
8872
8872
|
updatedById: string;
|
|
8873
8873
|
updated: Date;
|
|
8874
|
-
chemistrySpecification
|
|
8875
|
-
mechanicalSpecification
|
|
8876
|
-
ferriteSpecification
|
|
8877
|
-
heatSpecification
|
|
8874
|
+
chemistrySpecification: AmcChemistrySpecificationDto;
|
|
8875
|
+
mechanicalSpecification: AmcMechanicalSpecificationDto;
|
|
8876
|
+
ferriteSpecification: AmcFerriteSpecificationDto;
|
|
8877
|
+
heatSpecification: AmcHeatTreatmentSpecificationDto;
|
|
8878
8878
|
}
|
|
8879
8879
|
export interface AmcSpecificationVersionDto {
|
|
8880
8880
|
version?: number;
|
|
8881
8881
|
status?: AmcSpecificationStatus;
|
|
8882
8882
|
}
|
|
8883
|
-
export interface AmcChemistrySpecificationDto {
|
|
8883
|
+
export interface AmcChemistrySpecificationDto extends AmcCdfEntityReadBase {
|
|
8884
8884
|
carbon?: AmcSpecificationLineDto | null;
|
|
8885
8885
|
manganese?: AmcSpecificationLineDto | null;
|
|
8886
8886
|
silicon?: AmcSpecificationLineDto | null;
|
|
@@ -8896,13 +8896,13 @@ export interface AmcChemistrySpecificationDto {
|
|
|
8896
8896
|
}
|
|
8897
8897
|
export interface AmcSpecificationLineDto extends AmcCdfEntityReadBase {
|
|
8898
8898
|
operator: AmcSpecificationOperator;
|
|
8899
|
-
value1
|
|
8899
|
+
value1: number;
|
|
8900
8900
|
value2?: number | null;
|
|
8901
8901
|
symbol: AmcSpecificationSymbol;
|
|
8902
8902
|
}
|
|
8903
8903
|
export type AmcSpecificationOperator = "Equal" | "GreaterThan" | "LessThan" | "GreaterThanOrEqual" | "LessThanOrEqual" | "Min" | "Max" | "Between" | "NotSet";
|
|
8904
8904
|
export type AmcSpecificationSymbol = "Percentage" | "Joule" | "Celsius" | "Farenheit" | "Mpa" | "Hbw" | "NotSet";
|
|
8905
|
-
export interface AmcMechanicalSpecificationDto {
|
|
8905
|
+
export interface AmcMechanicalSpecificationDto extends AmcCdfEntityReadBase {
|
|
8906
8906
|
yieldStrength?: AmcSpecificationLineDto | null;
|
|
8907
8907
|
tensileStrength?: AmcSpecificationLineDto | null;
|
|
8908
8908
|
elongation?: AmcSpecificationLineDto | null;
|
|
@@ -8910,7 +8910,7 @@ export interface AmcMechanicalSpecificationDto {
|
|
|
8910
8910
|
impactEnergy?: AmcSpecificationLineDto | null;
|
|
8911
8911
|
hardness?: AmcSpecificationLineDto | null;
|
|
8912
8912
|
}
|
|
8913
|
-
export interface AmcFerriteSpecificationDto {
|
|
8913
|
+
export interface AmcFerriteSpecificationDto extends AmcCdfEntityReadBase {
|
|
8914
8914
|
ferriteContent?: AmcSpecificationLineDto | null;
|
|
8915
8915
|
}
|
|
8916
8916
|
export interface AmcHeatTreatmentSpecificationDto {
|
|
@@ -8931,16 +8931,16 @@ export interface CreateAmcSpecificationDto {
|
|
|
8931
8931
|
date: Date;
|
|
8932
8932
|
specificationFile?: UploadFileDto | null;
|
|
8933
8933
|
}
|
|
8934
|
-
export interface
|
|
8935
|
-
|
|
8936
|
-
|
|
8937
|
-
status
|
|
8934
|
+
export interface AmcUpdateSpecificationDto {
|
|
8935
|
+
name?: string | null;
|
|
8936
|
+
number?: string | null;
|
|
8937
|
+
status?: AmcSpecificationStatusUpdate | null;
|
|
8938
8938
|
summary?: string | null;
|
|
8939
|
-
relatedStandards
|
|
8940
|
-
chemistrySpecification
|
|
8941
|
-
mechanicalSpecification
|
|
8942
|
-
ferriteSpecification
|
|
8943
|
-
heatSpecification
|
|
8939
|
+
relatedStandards?: string[] | null;
|
|
8940
|
+
chemistrySpecification?: AmcChemistrySpecificationDto | null;
|
|
8941
|
+
mechanicalSpecification?: AmcMechanicalSpecificationDto | null;
|
|
8942
|
+
ferriteSpecification?: AmcFerriteSpecificationDto | null;
|
|
8943
|
+
heatSpecification?: AmcHeatTreatmentSpecificationDto | null;
|
|
8944
8944
|
}
|
|
8945
8945
|
export type AmcSpecificationStatusUpdate = "NotModified" | "Released" | "Obsolete";
|
|
8946
8946
|
export interface AmcCertificateTypeLiteDto extends AmcCdfEntityReadBase {
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -26140,13 +26140,18 @@ export class MaterialCertificateSpecificationsClient extends AuthorizedApiBase {
|
|
|
26140
26140
|
}
|
|
26141
26141
|
return Promise.resolve(null);
|
|
26142
26142
|
}
|
|
26143
|
-
|
|
26144
|
-
let url_ = this.baseUrl + "/material-certificate/specifications";
|
|
26143
|
+
updateSpecifications(id, version, _) {
|
|
26144
|
+
let url_ = this.baseUrl + "/material-certificate/specifications/{id}?";
|
|
26145
|
+
if (id === undefined || id === null)
|
|
26146
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
26147
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
26148
|
+
if (version !== undefined && version !== null)
|
|
26149
|
+
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
26145
26150
|
url_ = url_.replace(/[?&]$/, "");
|
|
26146
|
-
const content_ = JSON.stringify(
|
|
26151
|
+
const content_ = JSON.stringify(_);
|
|
26147
26152
|
let options_ = {
|
|
26148
26153
|
body: content_,
|
|
26149
|
-
method: "
|
|
26154
|
+
method: "PUT",
|
|
26150
26155
|
headers: {
|
|
26151
26156
|
"Content-Type": "application/json",
|
|
26152
26157
|
"Accept": "application/json"
|
|
@@ -26155,10 +26160,10 @@ export class MaterialCertificateSpecificationsClient extends AuthorizedApiBase {
|
|
|
26155
26160
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
26156
26161
|
return this.http.fetch(url_, transformedOptions_);
|
|
26157
26162
|
}).then((_response) => {
|
|
26158
|
-
return this.
|
|
26163
|
+
return this.processUpdateSpecifications(_response);
|
|
26159
26164
|
});
|
|
26160
26165
|
}
|
|
26161
|
-
|
|
26166
|
+
processUpdateSpecifications(response) {
|
|
26162
26167
|
const status = response.status;
|
|
26163
26168
|
let _headers = {};
|
|
26164
26169
|
if (response.headers && response.headers.forEach) {
|
|
@@ -26179,36 +26184,34 @@ export class MaterialCertificateSpecificationsClient extends AuthorizedApiBase {
|
|
|
26179
26184
|
}
|
|
26180
26185
|
return Promise.resolve(null);
|
|
26181
26186
|
}
|
|
26182
|
-
|
|
26183
|
-
let url_ = this.baseUrl + "/material-certificate/specifications";
|
|
26187
|
+
deleteMaterialCertificateTypes(id, version) {
|
|
26188
|
+
let url_ = this.baseUrl + "/material-certificate/specifications/{id}?";
|
|
26189
|
+
if (id === undefined || id === null)
|
|
26190
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
26191
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
26192
|
+
if (version !== undefined && version !== null)
|
|
26193
|
+
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
26184
26194
|
url_ = url_.replace(/[?&]$/, "");
|
|
26185
|
-
const content_ = JSON.stringify(specificationsRequest);
|
|
26186
26195
|
let options_ = {
|
|
26187
|
-
|
|
26188
|
-
|
|
26189
|
-
headers: {
|
|
26190
|
-
"Content-Type": "application/json",
|
|
26191
|
-
"Accept": "application/json"
|
|
26192
|
-
}
|
|
26196
|
+
method: "DELETE",
|
|
26197
|
+
headers: {}
|
|
26193
26198
|
};
|
|
26194
26199
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
26195
26200
|
return this.http.fetch(url_, transformedOptions_);
|
|
26196
26201
|
}).then((_response) => {
|
|
26197
|
-
return this.
|
|
26202
|
+
return this.processDeleteMaterialCertificateTypes(_response);
|
|
26198
26203
|
});
|
|
26199
26204
|
}
|
|
26200
|
-
|
|
26205
|
+
processDeleteMaterialCertificateTypes(response) {
|
|
26201
26206
|
const status = response.status;
|
|
26202
26207
|
let _headers = {};
|
|
26203
26208
|
if (response.headers && response.headers.forEach) {
|
|
26204
26209
|
response.headers.forEach((v, k) => _headers[k] = v);
|
|
26205
26210
|
}
|
|
26206
26211
|
;
|
|
26207
|
-
if (status ===
|
|
26212
|
+
if (status === 204) {
|
|
26208
26213
|
return response.text().then((_responseText) => {
|
|
26209
|
-
|
|
26210
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
26211
|
-
return result200;
|
|
26214
|
+
return;
|
|
26212
26215
|
});
|
|
26213
26216
|
}
|
|
26214
26217
|
else if (status !== 200 && status !== 204) {
|
|
@@ -26218,35 +26221,36 @@ export class MaterialCertificateSpecificationsClient extends AuthorizedApiBase {
|
|
|
26218
26221
|
}
|
|
26219
26222
|
return Promise.resolve(null);
|
|
26220
26223
|
}
|
|
26221
|
-
|
|
26222
|
-
let url_ = this.baseUrl + "/material-certificate/specifications
|
|
26223
|
-
if (materialCertificateSpecificationId === undefined || materialCertificateSpecificationId === null)
|
|
26224
|
-
throw new globalThis.Error("The parameter 'materialCertificateSpecificationId' must be defined.");
|
|
26225
|
-
url_ = url_.replace("{materialCertificateSpecificationId}", encodeURIComponent("" + materialCertificateSpecificationId));
|
|
26226
|
-
if (version === undefined || version === null)
|
|
26227
|
-
throw new globalThis.Error("The parameter 'version' must be defined.");
|
|
26228
|
-
url_ = url_.replace("{version}", encodeURIComponent("" + version));
|
|
26224
|
+
createSpecifications(createDto) {
|
|
26225
|
+
let url_ = this.baseUrl + "/material-certificate/specifications";
|
|
26229
26226
|
url_ = url_.replace(/[?&]$/, "");
|
|
26227
|
+
const content_ = JSON.stringify(createDto);
|
|
26230
26228
|
let options_ = {
|
|
26231
|
-
|
|
26232
|
-
|
|
26229
|
+
body: content_,
|
|
26230
|
+
method: "POST",
|
|
26231
|
+
headers: {
|
|
26232
|
+
"Content-Type": "application/json",
|
|
26233
|
+
"Accept": "application/json"
|
|
26234
|
+
}
|
|
26233
26235
|
};
|
|
26234
26236
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
26235
26237
|
return this.http.fetch(url_, transformedOptions_);
|
|
26236
26238
|
}).then((_response) => {
|
|
26237
|
-
return this.
|
|
26239
|
+
return this.processCreateSpecifications(_response);
|
|
26238
26240
|
});
|
|
26239
26241
|
}
|
|
26240
|
-
|
|
26242
|
+
processCreateSpecifications(response) {
|
|
26241
26243
|
const status = response.status;
|
|
26242
26244
|
let _headers = {};
|
|
26243
26245
|
if (response.headers && response.headers.forEach) {
|
|
26244
26246
|
response.headers.forEach((v, k) => _headers[k] = v);
|
|
26245
26247
|
}
|
|
26246
26248
|
;
|
|
26247
|
-
if (status ===
|
|
26249
|
+
if (status === 200) {
|
|
26248
26250
|
return response.text().then((_responseText) => {
|
|
26249
|
-
|
|
26251
|
+
let result200 = null;
|
|
26252
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
26253
|
+
return result200;
|
|
26250
26254
|
});
|
|
26251
26255
|
}
|
|
26252
26256
|
else if (status !== 200 && status !== 204) {
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -27898,11 +27898,11 @@ export interface IMaterialCertificateSpecificationsClient {
|
|
|
27898
27898
|
|
|
27899
27899
|
getSpecification(id: string, version: number | null | undefined): Promise<AmcSpecificationDto>;
|
|
27900
27900
|
|
|
27901
|
-
|
|
27901
|
+
updateSpecifications(id: string, version: number | null | undefined, _: AmcUpdateSpecificationDto): Promise<AmcSpecificationDto>;
|
|
27902
27902
|
|
|
27903
|
-
|
|
27903
|
+
deleteMaterialCertificateTypes(id: string, version: number | null | undefined): Promise<void>;
|
|
27904
27904
|
|
|
27905
|
-
|
|
27905
|
+
createSpecifications(createDto: CreateAmcSpecificationDto): Promise<AmcSpecificationDto>;
|
|
27906
27906
|
}
|
|
27907
27907
|
|
|
27908
27908
|
export class MaterialCertificateSpecificationsClient extends AuthorizedApiBase implements IMaterialCertificateSpecificationsClient {
|
|
@@ -27990,15 +27990,20 @@ export class MaterialCertificateSpecificationsClient extends AuthorizedApiBase i
|
|
|
27990
27990
|
return Promise.resolve<AmcSpecificationDto>(null as any);
|
|
27991
27991
|
}
|
|
27992
27992
|
|
|
27993
|
-
|
|
27994
|
-
let url_ = this.baseUrl + "/material-certificate/specifications";
|
|
27993
|
+
updateSpecifications(id: string, version: number | null | undefined, _: AmcUpdateSpecificationDto): Promise<AmcSpecificationDto> {
|
|
27994
|
+
let url_ = this.baseUrl + "/material-certificate/specifications/{id}?";
|
|
27995
|
+
if (id === undefined || id === null)
|
|
27996
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
27997
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
27998
|
+
if (version !== undefined && version !== null)
|
|
27999
|
+
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
27995
28000
|
url_ = url_.replace(/[?&]$/, "");
|
|
27996
28001
|
|
|
27997
|
-
const content_ = JSON.stringify(
|
|
28002
|
+
const content_ = JSON.stringify(_);
|
|
27998
28003
|
|
|
27999
28004
|
let options_: RequestInit = {
|
|
28000
28005
|
body: content_,
|
|
28001
|
-
method: "
|
|
28006
|
+
method: "PUT",
|
|
28002
28007
|
headers: {
|
|
28003
28008
|
"Content-Type": "application/json",
|
|
28004
28009
|
"Accept": "application/json"
|
|
@@ -28008,11 +28013,11 @@ export class MaterialCertificateSpecificationsClient extends AuthorizedApiBase i
|
|
|
28008
28013
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
28009
28014
|
return this.http.fetch(url_, transformedOptions_);
|
|
28010
28015
|
}).then((_response: Response) => {
|
|
28011
|
-
return this.
|
|
28016
|
+
return this.processUpdateSpecifications(_response);
|
|
28012
28017
|
});
|
|
28013
28018
|
}
|
|
28014
28019
|
|
|
28015
|
-
protected
|
|
28020
|
+
protected processUpdateSpecifications(response: Response): Promise<AmcSpecificationDto> {
|
|
28016
28021
|
const status = response.status;
|
|
28017
28022
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
28018
28023
|
if (status === 200) {
|
|
@@ -28029,81 +28034,80 @@ export class MaterialCertificateSpecificationsClient extends AuthorizedApiBase i
|
|
|
28029
28034
|
return Promise.resolve<AmcSpecificationDto>(null as any);
|
|
28030
28035
|
}
|
|
28031
28036
|
|
|
28032
|
-
|
|
28033
|
-
let url_ = this.baseUrl + "/material-certificate/specifications";
|
|
28037
|
+
deleteMaterialCertificateTypes(id: string, version: number | null | undefined): Promise<void> {
|
|
28038
|
+
let url_ = this.baseUrl + "/material-certificate/specifications/{id}?";
|
|
28039
|
+
if (id === undefined || id === null)
|
|
28040
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
28041
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
28042
|
+
if (version !== undefined && version !== null)
|
|
28043
|
+
url_ += "version=" + encodeURIComponent("" + version) + "&";
|
|
28034
28044
|
url_ = url_.replace(/[?&]$/, "");
|
|
28035
28045
|
|
|
28036
|
-
const content_ = JSON.stringify(specificationsRequest);
|
|
28037
|
-
|
|
28038
28046
|
let options_: RequestInit = {
|
|
28039
|
-
|
|
28040
|
-
method: "PUT",
|
|
28047
|
+
method: "DELETE",
|
|
28041
28048
|
headers: {
|
|
28042
|
-
"Content-Type": "application/json",
|
|
28043
|
-
"Accept": "application/json"
|
|
28044
28049
|
}
|
|
28045
28050
|
};
|
|
28046
28051
|
|
|
28047
28052
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
28048
28053
|
return this.http.fetch(url_, transformedOptions_);
|
|
28049
28054
|
}).then((_response: Response) => {
|
|
28050
|
-
return this.
|
|
28055
|
+
return this.processDeleteMaterialCertificateTypes(_response);
|
|
28051
28056
|
});
|
|
28052
28057
|
}
|
|
28053
28058
|
|
|
28054
|
-
protected
|
|
28059
|
+
protected processDeleteMaterialCertificateTypes(response: Response): Promise<void> {
|
|
28055
28060
|
const status = response.status;
|
|
28056
28061
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
28057
|
-
if (status ===
|
|
28062
|
+
if (status === 204) {
|
|
28058
28063
|
return response.text().then((_responseText) => {
|
|
28059
|
-
|
|
28060
|
-
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as AmcSpecificationDto;
|
|
28061
|
-
return result200;
|
|
28064
|
+
return;
|
|
28062
28065
|
});
|
|
28063
28066
|
} else if (status !== 200 && status !== 204) {
|
|
28064
28067
|
return response.text().then((_responseText) => {
|
|
28065
28068
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
28066
28069
|
});
|
|
28067
28070
|
}
|
|
28068
|
-
return Promise.resolve<
|
|
28071
|
+
return Promise.resolve<void>(null as any);
|
|
28069
28072
|
}
|
|
28070
28073
|
|
|
28071
|
-
|
|
28072
|
-
let url_ = this.baseUrl + "/material-certificate/specifications
|
|
28073
|
-
if (materialCertificateSpecificationId === undefined || materialCertificateSpecificationId === null)
|
|
28074
|
-
throw new globalThis.Error("The parameter 'materialCertificateSpecificationId' must be defined.");
|
|
28075
|
-
url_ = url_.replace("{materialCertificateSpecificationId}", encodeURIComponent("" + materialCertificateSpecificationId));
|
|
28076
|
-
if (version === undefined || version === null)
|
|
28077
|
-
throw new globalThis.Error("The parameter 'version' must be defined.");
|
|
28078
|
-
url_ = url_.replace("{version}", encodeURIComponent("" + version));
|
|
28074
|
+
createSpecifications(createDto: CreateAmcSpecificationDto): Promise<AmcSpecificationDto> {
|
|
28075
|
+
let url_ = this.baseUrl + "/material-certificate/specifications";
|
|
28079
28076
|
url_ = url_.replace(/[?&]$/, "");
|
|
28080
28077
|
|
|
28078
|
+
const content_ = JSON.stringify(createDto);
|
|
28079
|
+
|
|
28081
28080
|
let options_: RequestInit = {
|
|
28082
|
-
|
|
28081
|
+
body: content_,
|
|
28082
|
+
method: "POST",
|
|
28083
28083
|
headers: {
|
|
28084
|
+
"Content-Type": "application/json",
|
|
28085
|
+
"Accept": "application/json"
|
|
28084
28086
|
}
|
|
28085
28087
|
};
|
|
28086
28088
|
|
|
28087
28089
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
28088
28090
|
return this.http.fetch(url_, transformedOptions_);
|
|
28089
28091
|
}).then((_response: Response) => {
|
|
28090
|
-
return this.
|
|
28092
|
+
return this.processCreateSpecifications(_response);
|
|
28091
28093
|
});
|
|
28092
28094
|
}
|
|
28093
28095
|
|
|
28094
|
-
protected
|
|
28096
|
+
protected processCreateSpecifications(response: Response): Promise<AmcSpecificationDto> {
|
|
28095
28097
|
const status = response.status;
|
|
28096
28098
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
28097
|
-
if (status ===
|
|
28099
|
+
if (status === 200) {
|
|
28098
28100
|
return response.text().then((_responseText) => {
|
|
28099
|
-
|
|
28101
|
+
let result200: any = null;
|
|
28102
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as AmcSpecificationDto;
|
|
28103
|
+
return result200;
|
|
28100
28104
|
});
|
|
28101
28105
|
} else if (status !== 200 && status !== 204) {
|
|
28102
28106
|
return response.text().then((_responseText) => {
|
|
28103
28107
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
28104
28108
|
});
|
|
28105
28109
|
}
|
|
28106
|
-
return Promise.resolve<
|
|
28110
|
+
return Promise.resolve<AmcSpecificationDto>(null as any);
|
|
28107
28111
|
}
|
|
28108
28112
|
}
|
|
28109
28113
|
|
|
@@ -34689,10 +34693,10 @@ export interface AmcSpecificationDto extends AmcCdfEntityReadBase {
|
|
|
34689
34693
|
updatedBy: string;
|
|
34690
34694
|
updatedById: string;
|
|
34691
34695
|
updated: Date;
|
|
34692
|
-
chemistrySpecification
|
|
34693
|
-
mechanicalSpecification
|
|
34694
|
-
ferriteSpecification
|
|
34695
|
-
heatSpecification
|
|
34696
|
+
chemistrySpecification: AmcChemistrySpecificationDto;
|
|
34697
|
+
mechanicalSpecification: AmcMechanicalSpecificationDto;
|
|
34698
|
+
ferriteSpecification: AmcFerriteSpecificationDto;
|
|
34699
|
+
heatSpecification: AmcHeatTreatmentSpecificationDto;
|
|
34696
34700
|
}
|
|
34697
34701
|
|
|
34698
34702
|
export interface AmcSpecificationVersionDto {
|
|
@@ -34700,7 +34704,7 @@ export interface AmcSpecificationVersionDto {
|
|
|
34700
34704
|
status?: AmcSpecificationStatus;
|
|
34701
34705
|
}
|
|
34702
34706
|
|
|
34703
|
-
export interface AmcChemistrySpecificationDto {
|
|
34707
|
+
export interface AmcChemistrySpecificationDto extends AmcCdfEntityReadBase {
|
|
34704
34708
|
carbon?: AmcSpecificationLineDto | null;
|
|
34705
34709
|
manganese?: AmcSpecificationLineDto | null;
|
|
34706
34710
|
silicon?: AmcSpecificationLineDto | null;
|
|
@@ -34717,7 +34721,7 @@ export interface AmcChemistrySpecificationDto {
|
|
|
34717
34721
|
|
|
34718
34722
|
export interface AmcSpecificationLineDto extends AmcCdfEntityReadBase {
|
|
34719
34723
|
operator: AmcSpecificationOperator;
|
|
34720
|
-
value1
|
|
34724
|
+
value1: number;
|
|
34721
34725
|
value2?: number | null;
|
|
34722
34726
|
symbol: AmcSpecificationSymbol;
|
|
34723
34727
|
}
|
|
@@ -34726,7 +34730,7 @@ export type AmcSpecificationOperator = "Equal" | "GreaterThan" | "LessThan" | "G
|
|
|
34726
34730
|
|
|
34727
34731
|
export type AmcSpecificationSymbol = "Percentage" | "Joule" | "Celsius" | "Farenheit" | "Mpa" | "Hbw" | "NotSet";
|
|
34728
34732
|
|
|
34729
|
-
export interface AmcMechanicalSpecificationDto {
|
|
34733
|
+
export interface AmcMechanicalSpecificationDto extends AmcCdfEntityReadBase {
|
|
34730
34734
|
yieldStrength?: AmcSpecificationLineDto | null;
|
|
34731
34735
|
tensileStrength?: AmcSpecificationLineDto | null;
|
|
34732
34736
|
elongation?: AmcSpecificationLineDto | null;
|
|
@@ -34735,7 +34739,7 @@ export interface AmcMechanicalSpecificationDto {
|
|
|
34735
34739
|
hardness?: AmcSpecificationLineDto | null;
|
|
34736
34740
|
}
|
|
34737
34741
|
|
|
34738
|
-
export interface AmcFerriteSpecificationDto {
|
|
34742
|
+
export interface AmcFerriteSpecificationDto extends AmcCdfEntityReadBase {
|
|
34739
34743
|
ferriteContent?: AmcSpecificationLineDto | null;
|
|
34740
34744
|
}
|
|
34741
34745
|
|
|
@@ -34760,16 +34764,16 @@ export interface CreateAmcSpecificationDto {
|
|
|
34760
34764
|
specificationFile?: UploadFileDto | null;
|
|
34761
34765
|
}
|
|
34762
34766
|
|
|
34763
|
-
export interface
|
|
34764
|
-
|
|
34765
|
-
|
|
34766
|
-
status
|
|
34767
|
+
export interface AmcUpdateSpecificationDto {
|
|
34768
|
+
name?: string | null;
|
|
34769
|
+
number?: string | null;
|
|
34770
|
+
status?: AmcSpecificationStatusUpdate | null;
|
|
34767
34771
|
summary?: string | null;
|
|
34768
|
-
relatedStandards
|
|
34769
|
-
chemistrySpecification
|
|
34770
|
-
mechanicalSpecification
|
|
34771
|
-
ferriteSpecification
|
|
34772
|
-
heatSpecification
|
|
34772
|
+
relatedStandards?: string[] | null;
|
|
34773
|
+
chemistrySpecification?: AmcChemistrySpecificationDto | null;
|
|
34774
|
+
mechanicalSpecification?: AmcMechanicalSpecificationDto | null;
|
|
34775
|
+
ferriteSpecification?: AmcFerriteSpecificationDto | null;
|
|
34776
|
+
heatSpecification?: AmcHeatTreatmentSpecificationDto | null;
|
|
34773
34777
|
}
|
|
34774
34778
|
|
|
34775
34779
|
export type AmcSpecificationStatusUpdate = "NotModified" | "Released" | "Obsolete";
|