@ignos/api-client 20260304.70.1 → 20260309.72.1-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/ignosportal-api.d.ts +25 -23
- package/lib/ignosportal-api.js +39 -35
- package/package.json +1 -1
- package/src/ignosportal-api.ts +61 -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[]>;
|
|
@@ -5637,6 +5637,7 @@ export interface ListCncPartsRequest {
|
|
|
5637
5637
|
operationMaxCreatedDate?: Date | null;
|
|
5638
5638
|
operationMinUpdatedDate?: Date | null;
|
|
5639
5639
|
operationMaxUpdatedDate?: Date | null;
|
|
5640
|
+
utcOffset?: number | null;
|
|
5640
5641
|
}
|
|
5641
5642
|
export type CncFilterDeletedDto = "NoneDeleted" | "OnlyDeleted" | "All";
|
|
5642
5643
|
export interface CncPartMaterialListDto {
|
|
@@ -5746,6 +5747,7 @@ export interface ListCncMachineOperationsRequest {
|
|
|
5746
5747
|
maxCreatedDate?: Date | null;
|
|
5747
5748
|
minUpdatedDate?: Date | null;
|
|
5748
5749
|
maxUpdatedDate?: Date | null;
|
|
5750
|
+
utcOffset?: number | null;
|
|
5749
5751
|
}
|
|
5750
5752
|
export interface UpdateCncMachineOperationRequest {
|
|
5751
5753
|
operation?: number | null;
|
|
@@ -8871,16 +8873,16 @@ export interface AmcSpecificationDto extends AmcCdfEntityReadBase {
|
|
|
8871
8873
|
updatedBy: string;
|
|
8872
8874
|
updatedById: string;
|
|
8873
8875
|
updated: Date;
|
|
8874
|
-
chemistrySpecification
|
|
8875
|
-
mechanicalSpecification
|
|
8876
|
-
ferriteSpecification
|
|
8877
|
-
heatSpecification
|
|
8876
|
+
chemistrySpecification: AmcChemistrySpecificationDto;
|
|
8877
|
+
mechanicalSpecification: AmcMechanicalSpecificationDto;
|
|
8878
|
+
ferriteSpecification: AmcFerriteSpecificationDto;
|
|
8879
|
+
heatSpecification: AmcHeatTreatmentSpecificationDto;
|
|
8878
8880
|
}
|
|
8879
8881
|
export interface AmcSpecificationVersionDto {
|
|
8880
8882
|
version?: number;
|
|
8881
8883
|
status?: AmcSpecificationStatus;
|
|
8882
8884
|
}
|
|
8883
|
-
export interface AmcChemistrySpecificationDto {
|
|
8885
|
+
export interface AmcChemistrySpecificationDto extends AmcCdfEntityReadBase {
|
|
8884
8886
|
carbon?: AmcSpecificationLineDto | null;
|
|
8885
8887
|
manganese?: AmcSpecificationLineDto | null;
|
|
8886
8888
|
silicon?: AmcSpecificationLineDto | null;
|
|
@@ -8896,13 +8898,13 @@ export interface AmcChemistrySpecificationDto {
|
|
|
8896
8898
|
}
|
|
8897
8899
|
export interface AmcSpecificationLineDto extends AmcCdfEntityReadBase {
|
|
8898
8900
|
operator: AmcSpecificationOperator;
|
|
8899
|
-
value1
|
|
8901
|
+
value1: number;
|
|
8900
8902
|
value2?: number | null;
|
|
8901
8903
|
symbol: AmcSpecificationSymbol;
|
|
8902
8904
|
}
|
|
8903
8905
|
export type AmcSpecificationOperator = "Equal" | "GreaterThan" | "LessThan" | "GreaterThanOrEqual" | "LessThanOrEqual" | "Min" | "Max" | "Between" | "NotSet";
|
|
8904
8906
|
export type AmcSpecificationSymbol = "Percentage" | "Joule" | "Celsius" | "Farenheit" | "Mpa" | "Hbw" | "NotSet";
|
|
8905
|
-
export interface AmcMechanicalSpecificationDto {
|
|
8907
|
+
export interface AmcMechanicalSpecificationDto extends AmcCdfEntityReadBase {
|
|
8906
8908
|
yieldStrength?: AmcSpecificationLineDto | null;
|
|
8907
8909
|
tensileStrength?: AmcSpecificationLineDto | null;
|
|
8908
8910
|
elongation?: AmcSpecificationLineDto | null;
|
|
@@ -8910,7 +8912,7 @@ export interface AmcMechanicalSpecificationDto {
|
|
|
8910
8912
|
impactEnergy?: AmcSpecificationLineDto | null;
|
|
8911
8913
|
hardness?: AmcSpecificationLineDto | null;
|
|
8912
8914
|
}
|
|
8913
|
-
export interface AmcFerriteSpecificationDto {
|
|
8915
|
+
export interface AmcFerriteSpecificationDto extends AmcCdfEntityReadBase {
|
|
8914
8916
|
ferriteContent?: AmcSpecificationLineDto | null;
|
|
8915
8917
|
}
|
|
8916
8918
|
export interface AmcHeatTreatmentSpecificationDto {
|
|
@@ -8931,16 +8933,16 @@ export interface CreateAmcSpecificationDto {
|
|
|
8931
8933
|
date: Date;
|
|
8932
8934
|
specificationFile?: UploadFileDto | null;
|
|
8933
8935
|
}
|
|
8934
|
-
export interface
|
|
8935
|
-
|
|
8936
|
-
|
|
8937
|
-
status
|
|
8936
|
+
export interface AmcUpdateSpecificationDto {
|
|
8937
|
+
name?: string | null;
|
|
8938
|
+
number?: string | null;
|
|
8939
|
+
status?: AmcSpecificationStatusUpdate | null;
|
|
8938
8940
|
summary?: string | null;
|
|
8939
|
-
relatedStandards
|
|
8940
|
-
chemistrySpecification
|
|
8941
|
-
mechanicalSpecification
|
|
8942
|
-
ferriteSpecification
|
|
8943
|
-
heatSpecification
|
|
8941
|
+
relatedStandards?: string[] | null;
|
|
8942
|
+
chemistrySpecification?: AmcChemistrySpecificationDto | null;
|
|
8943
|
+
mechanicalSpecification?: AmcMechanicalSpecificationDto | null;
|
|
8944
|
+
ferriteSpecification?: AmcFerriteSpecificationDto | null;
|
|
8945
|
+
heatSpecification?: AmcHeatTreatmentSpecificationDto | null;
|
|
8944
8946
|
}
|
|
8945
8947
|
export type AmcSpecificationStatusUpdate = "NotModified" | "Released" | "Obsolete";
|
|
8946
8948
|
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
|
|
|
@@ -31046,6 +31050,7 @@ export interface ListCncPartsRequest {
|
|
|
31046
31050
|
operationMaxCreatedDate?: Date | null;
|
|
31047
31051
|
operationMinUpdatedDate?: Date | null;
|
|
31048
31052
|
operationMaxUpdatedDate?: Date | null;
|
|
31053
|
+
utcOffset?: number | null;
|
|
31049
31054
|
}
|
|
31050
31055
|
|
|
31051
31056
|
export type CncFilterDeletedDto = "NoneDeleted" | "OnlyDeleted" | "All";
|
|
@@ -31167,6 +31172,7 @@ export interface ListCncMachineOperationsRequest {
|
|
|
31167
31172
|
maxCreatedDate?: Date | null;
|
|
31168
31173
|
minUpdatedDate?: Date | null;
|
|
31169
31174
|
maxUpdatedDate?: Date | null;
|
|
31175
|
+
utcOffset?: number | null;
|
|
31170
31176
|
}
|
|
31171
31177
|
|
|
31172
31178
|
export interface UpdateCncMachineOperationRequest {
|
|
@@ -34689,10 +34695,10 @@ export interface AmcSpecificationDto extends AmcCdfEntityReadBase {
|
|
|
34689
34695
|
updatedBy: string;
|
|
34690
34696
|
updatedById: string;
|
|
34691
34697
|
updated: Date;
|
|
34692
|
-
chemistrySpecification
|
|
34693
|
-
mechanicalSpecification
|
|
34694
|
-
ferriteSpecification
|
|
34695
|
-
heatSpecification
|
|
34698
|
+
chemistrySpecification: AmcChemistrySpecificationDto;
|
|
34699
|
+
mechanicalSpecification: AmcMechanicalSpecificationDto;
|
|
34700
|
+
ferriteSpecification: AmcFerriteSpecificationDto;
|
|
34701
|
+
heatSpecification: AmcHeatTreatmentSpecificationDto;
|
|
34696
34702
|
}
|
|
34697
34703
|
|
|
34698
34704
|
export interface AmcSpecificationVersionDto {
|
|
@@ -34700,7 +34706,7 @@ export interface AmcSpecificationVersionDto {
|
|
|
34700
34706
|
status?: AmcSpecificationStatus;
|
|
34701
34707
|
}
|
|
34702
34708
|
|
|
34703
|
-
export interface AmcChemistrySpecificationDto {
|
|
34709
|
+
export interface AmcChemistrySpecificationDto extends AmcCdfEntityReadBase {
|
|
34704
34710
|
carbon?: AmcSpecificationLineDto | null;
|
|
34705
34711
|
manganese?: AmcSpecificationLineDto | null;
|
|
34706
34712
|
silicon?: AmcSpecificationLineDto | null;
|
|
@@ -34717,7 +34723,7 @@ export interface AmcChemistrySpecificationDto {
|
|
|
34717
34723
|
|
|
34718
34724
|
export interface AmcSpecificationLineDto extends AmcCdfEntityReadBase {
|
|
34719
34725
|
operator: AmcSpecificationOperator;
|
|
34720
|
-
value1
|
|
34726
|
+
value1: number;
|
|
34721
34727
|
value2?: number | null;
|
|
34722
34728
|
symbol: AmcSpecificationSymbol;
|
|
34723
34729
|
}
|
|
@@ -34726,7 +34732,7 @@ export type AmcSpecificationOperator = "Equal" | "GreaterThan" | "LessThan" | "G
|
|
|
34726
34732
|
|
|
34727
34733
|
export type AmcSpecificationSymbol = "Percentage" | "Joule" | "Celsius" | "Farenheit" | "Mpa" | "Hbw" | "NotSet";
|
|
34728
34734
|
|
|
34729
|
-
export interface AmcMechanicalSpecificationDto {
|
|
34735
|
+
export interface AmcMechanicalSpecificationDto extends AmcCdfEntityReadBase {
|
|
34730
34736
|
yieldStrength?: AmcSpecificationLineDto | null;
|
|
34731
34737
|
tensileStrength?: AmcSpecificationLineDto | null;
|
|
34732
34738
|
elongation?: AmcSpecificationLineDto | null;
|
|
@@ -34735,7 +34741,7 @@ export interface AmcMechanicalSpecificationDto {
|
|
|
34735
34741
|
hardness?: AmcSpecificationLineDto | null;
|
|
34736
34742
|
}
|
|
34737
34743
|
|
|
34738
|
-
export interface AmcFerriteSpecificationDto {
|
|
34744
|
+
export interface AmcFerriteSpecificationDto extends AmcCdfEntityReadBase {
|
|
34739
34745
|
ferriteContent?: AmcSpecificationLineDto | null;
|
|
34740
34746
|
}
|
|
34741
34747
|
|
|
@@ -34760,16 +34766,16 @@ export interface CreateAmcSpecificationDto {
|
|
|
34760
34766
|
specificationFile?: UploadFileDto | null;
|
|
34761
34767
|
}
|
|
34762
34768
|
|
|
34763
|
-
export interface
|
|
34764
|
-
|
|
34765
|
-
|
|
34766
|
-
status
|
|
34769
|
+
export interface AmcUpdateSpecificationDto {
|
|
34770
|
+
name?: string | null;
|
|
34771
|
+
number?: string | null;
|
|
34772
|
+
status?: AmcSpecificationStatusUpdate | null;
|
|
34767
34773
|
summary?: string | null;
|
|
34768
|
-
relatedStandards
|
|
34769
|
-
chemistrySpecification
|
|
34770
|
-
mechanicalSpecification
|
|
34771
|
-
ferriteSpecification
|
|
34772
|
-
heatSpecification
|
|
34774
|
+
relatedStandards?: string[] | null;
|
|
34775
|
+
chemistrySpecification?: AmcChemistrySpecificationDto | null;
|
|
34776
|
+
mechanicalSpecification?: AmcMechanicalSpecificationDto | null;
|
|
34777
|
+
ferriteSpecification?: AmcFerriteSpecificationDto | null;
|
|
34778
|
+
heatSpecification?: AmcHeatTreatmentSpecificationDto | null;
|
|
34773
34779
|
}
|
|
34774
34780
|
|
|
34775
34781
|
export type AmcSpecificationStatusUpdate = "NotModified" | "Released" | "Obsolete";
|