@ignos/api-client 20240320.0.9041 → 20240404.0.9072
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 +152 -94
- package/lib/ignosportal-api.js +451 -185
- package/package.json +1 -1
- package/src/ignosportal-api.ts +689 -370
package/src/ignosportal-api.ts
CHANGED
|
@@ -7810,6 +7810,8 @@ export interface ICncSetupClient {
|
|
|
7810
7810
|
|
|
7811
7811
|
copyCncMachineOperations(request: CopyCncMachineOperations): Promise<CncMachineOperationDto[]>;
|
|
7812
7812
|
|
|
7813
|
+
copyToolsCncMachine(request: CopyToolsCncMachine): Promise<CncToolDto[]>;
|
|
7814
|
+
|
|
7813
7815
|
createUploadProgramsInfo(id: string, request: UploadFileRequest): Promise<UploadFileDto[]>;
|
|
7814
7816
|
|
|
7815
7817
|
listCncMachineOperationsPrograms(id: string, filterDeleted: CncFilterDeletedDto | undefined): Promise<ProgramFileDto[]>;
|
|
@@ -7854,6 +7856,10 @@ export interface ICncSetupClient {
|
|
|
7854
7856
|
|
|
7855
7857
|
deleteCncMachineTool(cncMachineId: string, id: number): Promise<void>;
|
|
7856
7858
|
|
|
7859
|
+
uploadCncMachineToolImage(machineId: string, id: number, request: UploadCncToolImageRequest): Promise<ImageFileDto>;
|
|
7860
|
+
|
|
7861
|
+
deleteCncMachineToolImage(machineId: string, id: number, filename: string): Promise<void>;
|
|
7862
|
+
|
|
7857
7863
|
importOperationWithTools(request: ImportOperationWithTool): Promise<void>;
|
|
7858
7864
|
}
|
|
7859
7865
|
|
|
@@ -8921,6 +8927,50 @@ export class CncSetupClient extends AuthorizedApiBase implements ICncSetupClient
|
|
|
8921
8927
|
return Promise.resolve<CncMachineOperationDto[]>(null as any);
|
|
8922
8928
|
}
|
|
8923
8929
|
|
|
8930
|
+
copyToolsCncMachine(request: CopyToolsCncMachine): Promise<CncToolDto[]> {
|
|
8931
|
+
let url_ = this.baseUrl + "/cncsetup/operations/copytoolscncmachine";
|
|
8932
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
8933
|
+
|
|
8934
|
+
const content_ = JSON.stringify(request);
|
|
8935
|
+
|
|
8936
|
+
let options_: RequestInit = {
|
|
8937
|
+
body: content_,
|
|
8938
|
+
method: "POST",
|
|
8939
|
+
headers: {
|
|
8940
|
+
"Content-Type": "application/json",
|
|
8941
|
+
"Accept": "application/json"
|
|
8942
|
+
}
|
|
8943
|
+
};
|
|
8944
|
+
|
|
8945
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
8946
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
8947
|
+
}).then((_response: Response) => {
|
|
8948
|
+
return this.processCopyToolsCncMachine(_response);
|
|
8949
|
+
});
|
|
8950
|
+
}
|
|
8951
|
+
|
|
8952
|
+
protected processCopyToolsCncMachine(response: Response): Promise<CncToolDto[]> {
|
|
8953
|
+
const status = response.status;
|
|
8954
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
8955
|
+
if (status === 200) {
|
|
8956
|
+
return response.text().then((_responseText) => {
|
|
8957
|
+
let result200: any = null;
|
|
8958
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
8959
|
+
if (Array.isArray(resultData200)) {
|
|
8960
|
+
result200 = [] as any;
|
|
8961
|
+
for (let item of resultData200)
|
|
8962
|
+
result200!.push(CncToolDto.fromJS(item));
|
|
8963
|
+
}
|
|
8964
|
+
return result200;
|
|
8965
|
+
});
|
|
8966
|
+
} else if (status !== 200 && status !== 204) {
|
|
8967
|
+
return response.text().then((_responseText) => {
|
|
8968
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
8969
|
+
});
|
|
8970
|
+
}
|
|
8971
|
+
return Promise.resolve<CncToolDto[]>(null as any);
|
|
8972
|
+
}
|
|
8973
|
+
|
|
8924
8974
|
createUploadProgramsInfo(id: string, request: UploadFileRequest): Promise<UploadFileDto[]> {
|
|
8925
8975
|
let url_ = this.baseUrl + "/cncsetup/operations/{id}/programs";
|
|
8926
8976
|
if (id === undefined || id === null)
|
|
@@ -9877,6 +9927,93 @@ export class CncSetupClient extends AuthorizedApiBase implements ICncSetupClient
|
|
|
9877
9927
|
return Promise.resolve<void>(null as any);
|
|
9878
9928
|
}
|
|
9879
9929
|
|
|
9930
|
+
uploadCncMachineToolImage(machineId: string, id: number, request: UploadCncToolImageRequest): Promise<ImageFileDto> {
|
|
9931
|
+
let url_ = this.baseUrl + "/cncsetup/machines/{machineId}/tools/{id}/uploadimage";
|
|
9932
|
+
if (machineId === undefined || machineId === null)
|
|
9933
|
+
throw new Error("The parameter 'machineId' must be defined.");
|
|
9934
|
+
url_ = url_.replace("{machineId}", encodeURIComponent("" + machineId));
|
|
9935
|
+
if (id === undefined || id === null)
|
|
9936
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
9937
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
9938
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
9939
|
+
|
|
9940
|
+
const content_ = JSON.stringify(request);
|
|
9941
|
+
|
|
9942
|
+
let options_: RequestInit = {
|
|
9943
|
+
body: content_,
|
|
9944
|
+
method: "POST",
|
|
9945
|
+
headers: {
|
|
9946
|
+
"Content-Type": "application/json",
|
|
9947
|
+
"Accept": "application/json"
|
|
9948
|
+
}
|
|
9949
|
+
};
|
|
9950
|
+
|
|
9951
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
9952
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
9953
|
+
}).then((_response: Response) => {
|
|
9954
|
+
return this.processUploadCncMachineToolImage(_response);
|
|
9955
|
+
});
|
|
9956
|
+
}
|
|
9957
|
+
|
|
9958
|
+
protected processUploadCncMachineToolImage(response: Response): Promise<ImageFileDto> {
|
|
9959
|
+
const status = response.status;
|
|
9960
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
9961
|
+
if (status === 200) {
|
|
9962
|
+
return response.text().then((_responseText) => {
|
|
9963
|
+
let result200: any = null;
|
|
9964
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
9965
|
+
result200 = ImageFileDto.fromJS(resultData200);
|
|
9966
|
+
return result200;
|
|
9967
|
+
});
|
|
9968
|
+
} else if (status !== 200 && status !== 204) {
|
|
9969
|
+
return response.text().then((_responseText) => {
|
|
9970
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
9971
|
+
});
|
|
9972
|
+
}
|
|
9973
|
+
return Promise.resolve<ImageFileDto>(null as any);
|
|
9974
|
+
}
|
|
9975
|
+
|
|
9976
|
+
deleteCncMachineToolImage(machineId: string, id: number, filename: string): Promise<void> {
|
|
9977
|
+
let url_ = this.baseUrl + "/cncsetup/machines/{machineId}/tools/{id}/{filename}";
|
|
9978
|
+
if (machineId === undefined || machineId === null)
|
|
9979
|
+
throw new Error("The parameter 'machineId' must be defined.");
|
|
9980
|
+
url_ = url_.replace("{machineId}", encodeURIComponent("" + machineId));
|
|
9981
|
+
if (id === undefined || id === null)
|
|
9982
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
9983
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
9984
|
+
if (filename === undefined || filename === null)
|
|
9985
|
+
throw new Error("The parameter 'filename' must be defined.");
|
|
9986
|
+
url_ = url_.replace("{filename}", encodeURIComponent("" + filename));
|
|
9987
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
9988
|
+
|
|
9989
|
+
let options_: RequestInit = {
|
|
9990
|
+
method: "DELETE",
|
|
9991
|
+
headers: {
|
|
9992
|
+
}
|
|
9993
|
+
};
|
|
9994
|
+
|
|
9995
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
9996
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
9997
|
+
}).then((_response: Response) => {
|
|
9998
|
+
return this.processDeleteCncMachineToolImage(_response);
|
|
9999
|
+
});
|
|
10000
|
+
}
|
|
10001
|
+
|
|
10002
|
+
protected processDeleteCncMachineToolImage(response: Response): Promise<void> {
|
|
10003
|
+
const status = response.status;
|
|
10004
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
10005
|
+
if (status === 204) {
|
|
10006
|
+
return response.text().then((_responseText) => {
|
|
10007
|
+
return;
|
|
10008
|
+
});
|
|
10009
|
+
} else if (status !== 200 && status !== 204) {
|
|
10010
|
+
return response.text().then((_responseText) => {
|
|
10011
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
10012
|
+
});
|
|
10013
|
+
}
|
|
10014
|
+
return Promise.resolve<void>(null as any);
|
|
10015
|
+
}
|
|
10016
|
+
|
|
9880
10017
|
importOperationWithTools(request: ImportOperationWithTool): Promise<void> {
|
|
9881
10018
|
let url_ = this.baseUrl + "/cncsetup/import";
|
|
9882
10019
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -11906,6 +12043,8 @@ export interface IMesProductionOrderClient {
|
|
|
11906
12043
|
getProductionOrderOpenNonConformances(id: string, onlyOpen: boolean | undefined): Promise<NonConformanceDto[]>;
|
|
11907
12044
|
|
|
11908
12045
|
postMaterialPickList(id: string, operationNumber: number, request: PostMaterialPickListRequest): Promise<MaterialPickListResultDto>;
|
|
12046
|
+
|
|
12047
|
+
listProductionOrderActivities(id: string, operation: number | null | undefined): Promise<ProductionOrderOperationActivityDto[]>;
|
|
11909
12048
|
}
|
|
11910
12049
|
|
|
11911
12050
|
export class MesProductionOrderClient extends AuthorizedApiBase implements IMesProductionOrderClient {
|
|
@@ -12182,6 +12321,51 @@ export class MesProductionOrderClient extends AuthorizedApiBase implements IMesP
|
|
|
12182
12321
|
}
|
|
12183
12322
|
return Promise.resolve<MaterialPickListResultDto>(null as any);
|
|
12184
12323
|
}
|
|
12324
|
+
|
|
12325
|
+
listProductionOrderActivities(id: string, operation: number | null | undefined): Promise<ProductionOrderOperationActivityDto[]> {
|
|
12326
|
+
let url_ = this.baseUrl + "/mes/productionorders/{id}/activities?";
|
|
12327
|
+
if (id === undefined || id === null)
|
|
12328
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
12329
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
12330
|
+
if (operation !== undefined && operation !== null)
|
|
12331
|
+
url_ += "operation=" + encodeURIComponent("" + operation) + "&";
|
|
12332
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
12333
|
+
|
|
12334
|
+
let options_: RequestInit = {
|
|
12335
|
+
method: "GET",
|
|
12336
|
+
headers: {
|
|
12337
|
+
"Accept": "application/json"
|
|
12338
|
+
}
|
|
12339
|
+
};
|
|
12340
|
+
|
|
12341
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
12342
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
12343
|
+
}).then((_response: Response) => {
|
|
12344
|
+
return this.processListProductionOrderActivities(_response);
|
|
12345
|
+
});
|
|
12346
|
+
}
|
|
12347
|
+
|
|
12348
|
+
protected processListProductionOrderActivities(response: Response): Promise<ProductionOrderOperationActivityDto[]> {
|
|
12349
|
+
const status = response.status;
|
|
12350
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
12351
|
+
if (status === 200) {
|
|
12352
|
+
return response.text().then((_responseText) => {
|
|
12353
|
+
let result200: any = null;
|
|
12354
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
12355
|
+
if (Array.isArray(resultData200)) {
|
|
12356
|
+
result200 = [] as any;
|
|
12357
|
+
for (let item of resultData200)
|
|
12358
|
+
result200!.push(ProductionOrderOperationActivityDto.fromJS(item));
|
|
12359
|
+
}
|
|
12360
|
+
return result200;
|
|
12361
|
+
});
|
|
12362
|
+
} else if (status !== 200 && status !== 204) {
|
|
12363
|
+
return response.text().then((_responseText) => {
|
|
12364
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
12365
|
+
});
|
|
12366
|
+
}
|
|
12367
|
+
return Promise.resolve<ProductionOrderOperationActivityDto[]>(null as any);
|
|
12368
|
+
}
|
|
12185
12369
|
}
|
|
12186
12370
|
|
|
12187
12371
|
export interface IMesProductionScheduleClient {
|
|
@@ -31083,15 +31267,33 @@ export interface ICopyCncMachineOperationDto {
|
|
|
31083
31267
|
copyFiles: boolean;
|
|
31084
31268
|
}
|
|
31085
31269
|
|
|
31086
|
-
export class
|
|
31087
|
-
|
|
31088
|
-
|
|
31089
|
-
|
|
31090
|
-
|
|
31091
|
-
|
|
31092
|
-
|
|
31270
|
+
export class CncToolDto implements ICncToolDto {
|
|
31271
|
+
id!: number;
|
|
31272
|
+
toolTypeId!: string;
|
|
31273
|
+
toolType!: string;
|
|
31274
|
+
toolSubTypeId!: string;
|
|
31275
|
+
toolSubTypeName!: string;
|
|
31276
|
+
toolNumber?: string | null;
|
|
31277
|
+
toolSuffix?: string | null;
|
|
31278
|
+
description?: string | null;
|
|
31279
|
+
holderDescription?: string | null;
|
|
31280
|
+
geometry?: string | null;
|
|
31281
|
+
size?: string | null;
|
|
31282
|
+
diameter?: number | null;
|
|
31283
|
+
grade?: string | null;
|
|
31284
|
+
radius?: number | null;
|
|
31285
|
+
width?: number | null;
|
|
31286
|
+
pitch?: string | null;
|
|
31287
|
+
length?: number | null;
|
|
31288
|
+
kapr?: number | null;
|
|
31289
|
+
teeth?: number | null;
|
|
31290
|
+
stickOut?: number | null;
|
|
31291
|
+
apmx?: number | null;
|
|
31292
|
+
usableLength?: number | null;
|
|
31293
|
+
images?: ImageFileDto[];
|
|
31294
|
+
auditInfo?: CncSetupAuditDto;
|
|
31093
31295
|
|
|
31094
|
-
constructor(data?:
|
|
31296
|
+
constructor(data?: ICncToolDto) {
|
|
31095
31297
|
if (data) {
|
|
31096
31298
|
for (var property in data) {
|
|
31097
31299
|
if (data.hasOwnProperty(property))
|
|
@@ -31102,52 +31304,114 @@ export class ProgramFileDto implements IProgramFileDto {
|
|
|
31102
31304
|
|
|
31103
31305
|
init(_data?: any) {
|
|
31104
31306
|
if (_data) {
|
|
31105
|
-
this.
|
|
31106
|
-
this.
|
|
31107
|
-
this.
|
|
31108
|
-
this.
|
|
31109
|
-
this.
|
|
31110
|
-
this.
|
|
31307
|
+
this.id = _data["id"];
|
|
31308
|
+
this.toolTypeId = _data["toolTypeId"];
|
|
31309
|
+
this.toolType = _data["toolType"];
|
|
31310
|
+
this.toolSubTypeId = _data["toolSubTypeId"];
|
|
31311
|
+
this.toolSubTypeName = _data["toolSubTypeName"];
|
|
31312
|
+
this.toolNumber = _data["toolNumber"];
|
|
31313
|
+
this.toolSuffix = _data["toolSuffix"];
|
|
31314
|
+
this.description = _data["description"];
|
|
31315
|
+
this.holderDescription = _data["holderDescription"];
|
|
31316
|
+
this.geometry = _data["geometry"];
|
|
31317
|
+
this.size = _data["size"];
|
|
31318
|
+
this.diameter = _data["diameter"];
|
|
31319
|
+
this.grade = _data["grade"];
|
|
31320
|
+
this.radius = _data["radius"];
|
|
31321
|
+
this.width = _data["width"];
|
|
31322
|
+
this.pitch = _data["pitch"];
|
|
31323
|
+
this.length = _data["length"];
|
|
31324
|
+
this.kapr = _data["kapr"];
|
|
31325
|
+
this.teeth = _data["teeth"];
|
|
31326
|
+
this.stickOut = _data["stickOut"];
|
|
31327
|
+
this.apmx = _data["apmx"];
|
|
31328
|
+
this.usableLength = _data["usableLength"];
|
|
31329
|
+
if (Array.isArray(_data["images"])) {
|
|
31330
|
+
this.images = [] as any;
|
|
31331
|
+
for (let item of _data["images"])
|
|
31332
|
+
this.images!.push(ImageFileDto.fromJS(item));
|
|
31333
|
+
}
|
|
31334
|
+
this.auditInfo = _data["auditInfo"] ? CncSetupAuditDto.fromJS(_data["auditInfo"]) : <any>undefined;
|
|
31111
31335
|
}
|
|
31112
31336
|
}
|
|
31113
31337
|
|
|
31114
|
-
static fromJS(data: any):
|
|
31338
|
+
static fromJS(data: any): CncToolDto {
|
|
31115
31339
|
data = typeof data === 'object' ? data : {};
|
|
31116
|
-
let result = new
|
|
31340
|
+
let result = new CncToolDto();
|
|
31117
31341
|
result.init(data);
|
|
31118
31342
|
return result;
|
|
31119
31343
|
}
|
|
31120
31344
|
|
|
31121
31345
|
toJSON(data?: any) {
|
|
31122
31346
|
data = typeof data === 'object' ? data : {};
|
|
31123
|
-
data["
|
|
31124
|
-
data["
|
|
31125
|
-
data["
|
|
31126
|
-
data["
|
|
31127
|
-
data["
|
|
31128
|
-
data["
|
|
31129
|
-
|
|
31130
|
-
|
|
31131
|
-
|
|
31132
|
-
|
|
31133
|
-
|
|
31134
|
-
|
|
31135
|
-
|
|
31136
|
-
|
|
31137
|
-
|
|
31138
|
-
|
|
31139
|
-
|
|
31140
|
-
|
|
31141
|
-
|
|
31142
|
-
|
|
31143
|
-
|
|
31144
|
-
|
|
31145
|
-
|
|
31146
|
-
|
|
31147
|
-
|
|
31148
|
-
|
|
31149
|
-
|
|
31150
|
-
|
|
31347
|
+
data["id"] = this.id;
|
|
31348
|
+
data["toolTypeId"] = this.toolTypeId;
|
|
31349
|
+
data["toolType"] = this.toolType;
|
|
31350
|
+
data["toolSubTypeId"] = this.toolSubTypeId;
|
|
31351
|
+
data["toolSubTypeName"] = this.toolSubTypeName;
|
|
31352
|
+
data["toolNumber"] = this.toolNumber;
|
|
31353
|
+
data["toolSuffix"] = this.toolSuffix;
|
|
31354
|
+
data["description"] = this.description;
|
|
31355
|
+
data["holderDescription"] = this.holderDescription;
|
|
31356
|
+
data["geometry"] = this.geometry;
|
|
31357
|
+
data["size"] = this.size;
|
|
31358
|
+
data["diameter"] = this.diameter;
|
|
31359
|
+
data["grade"] = this.grade;
|
|
31360
|
+
data["radius"] = this.radius;
|
|
31361
|
+
data["width"] = this.width;
|
|
31362
|
+
data["pitch"] = this.pitch;
|
|
31363
|
+
data["length"] = this.length;
|
|
31364
|
+
data["kapr"] = this.kapr;
|
|
31365
|
+
data["teeth"] = this.teeth;
|
|
31366
|
+
data["stickOut"] = this.stickOut;
|
|
31367
|
+
data["apmx"] = this.apmx;
|
|
31368
|
+
data["usableLength"] = this.usableLength;
|
|
31369
|
+
if (Array.isArray(this.images)) {
|
|
31370
|
+
data["images"] = [];
|
|
31371
|
+
for (let item of this.images)
|
|
31372
|
+
data["images"].push(item.toJSON());
|
|
31373
|
+
}
|
|
31374
|
+
data["auditInfo"] = this.auditInfo ? this.auditInfo.toJSON() : <any>undefined;
|
|
31375
|
+
return data;
|
|
31376
|
+
}
|
|
31377
|
+
}
|
|
31378
|
+
|
|
31379
|
+
export interface ICncToolDto {
|
|
31380
|
+
id: number;
|
|
31381
|
+
toolTypeId: string;
|
|
31382
|
+
toolType: string;
|
|
31383
|
+
toolSubTypeId: string;
|
|
31384
|
+
toolSubTypeName: string;
|
|
31385
|
+
toolNumber?: string | null;
|
|
31386
|
+
toolSuffix?: string | null;
|
|
31387
|
+
description?: string | null;
|
|
31388
|
+
holderDescription?: string | null;
|
|
31389
|
+
geometry?: string | null;
|
|
31390
|
+
size?: string | null;
|
|
31391
|
+
diameter?: number | null;
|
|
31392
|
+
grade?: string | null;
|
|
31393
|
+
radius?: number | null;
|
|
31394
|
+
width?: number | null;
|
|
31395
|
+
pitch?: string | null;
|
|
31396
|
+
length?: number | null;
|
|
31397
|
+
kapr?: number | null;
|
|
31398
|
+
teeth?: number | null;
|
|
31399
|
+
stickOut?: number | null;
|
|
31400
|
+
apmx?: number | null;
|
|
31401
|
+
usableLength?: number | null;
|
|
31402
|
+
images?: ImageFileDto[];
|
|
31403
|
+
auditInfo?: CncSetupAuditDto;
|
|
31404
|
+
}
|
|
31405
|
+
|
|
31406
|
+
export class ImageFileDto implements IImageFileDto {
|
|
31407
|
+
url!: string;
|
|
31408
|
+
name!: string;
|
|
31409
|
+
thumbnailUrl?: string | null;
|
|
31410
|
+
|
|
31411
|
+
constructor(data?: IImageFileDto) {
|
|
31412
|
+
if (data) {
|
|
31413
|
+
for (var property in data) {
|
|
31414
|
+
if (data.hasOwnProperty(property))
|
|
31151
31415
|
(<any>this)[property] = (<any>data)[property];
|
|
31152
31416
|
}
|
|
31153
31417
|
}
|
|
@@ -31155,35 +31419,104 @@ export class UpdateProgramFileRequest implements IUpdateProgramFileRequest {
|
|
|
31155
31419
|
|
|
31156
31420
|
init(_data?: any) {
|
|
31157
31421
|
if (_data) {
|
|
31158
|
-
this.
|
|
31422
|
+
this.url = _data["url"];
|
|
31423
|
+
this.name = _data["name"];
|
|
31424
|
+
this.thumbnailUrl = _data["thumbnailUrl"];
|
|
31159
31425
|
}
|
|
31160
31426
|
}
|
|
31161
31427
|
|
|
31162
|
-
static fromJS(data: any):
|
|
31428
|
+
static fromJS(data: any): ImageFileDto {
|
|
31163
31429
|
data = typeof data === 'object' ? data : {};
|
|
31164
|
-
let result = new
|
|
31430
|
+
let result = new ImageFileDto();
|
|
31165
31431
|
result.init(data);
|
|
31166
31432
|
return result;
|
|
31167
31433
|
}
|
|
31168
31434
|
|
|
31169
31435
|
toJSON(data?: any) {
|
|
31170
31436
|
data = typeof data === 'object' ? data : {};
|
|
31171
|
-
data["
|
|
31437
|
+
data["url"] = this.url;
|
|
31438
|
+
data["name"] = this.name;
|
|
31439
|
+
data["thumbnailUrl"] = this.thumbnailUrl;
|
|
31172
31440
|
return data;
|
|
31173
31441
|
}
|
|
31174
31442
|
}
|
|
31175
31443
|
|
|
31176
|
-
export interface
|
|
31177
|
-
|
|
31444
|
+
export interface IImageFileDto {
|
|
31445
|
+
url: string;
|
|
31446
|
+
name: string;
|
|
31447
|
+
thumbnailUrl?: string | null;
|
|
31178
31448
|
}
|
|
31179
31449
|
|
|
31180
|
-
export class
|
|
31181
|
-
|
|
31182
|
-
|
|
31183
|
-
|
|
31184
|
-
|
|
31450
|
+
export class CncSetupAuditDto implements ICncSetupAuditDto {
|
|
31451
|
+
created!: Date;
|
|
31452
|
+
createdBy!: string;
|
|
31453
|
+
createdById!: string;
|
|
31454
|
+
createdByName?: string | null;
|
|
31455
|
+
updated?: Date | null;
|
|
31456
|
+
updatedBy?: string | null;
|
|
31457
|
+
updatedById?: string | null;
|
|
31458
|
+
updatedByName?: string | null;
|
|
31185
31459
|
|
|
31186
|
-
constructor(data?:
|
|
31460
|
+
constructor(data?: ICncSetupAuditDto) {
|
|
31461
|
+
if (data) {
|
|
31462
|
+
for (var property in data) {
|
|
31463
|
+
if (data.hasOwnProperty(property))
|
|
31464
|
+
(<any>this)[property] = (<any>data)[property];
|
|
31465
|
+
}
|
|
31466
|
+
}
|
|
31467
|
+
}
|
|
31468
|
+
|
|
31469
|
+
init(_data?: any) {
|
|
31470
|
+
if (_data) {
|
|
31471
|
+
this.created = _data["created"] ? new Date(_data["created"].toString()) : <any>undefined;
|
|
31472
|
+
this.createdBy = _data["createdBy"];
|
|
31473
|
+
this.createdById = _data["createdById"];
|
|
31474
|
+
this.createdByName = _data["createdByName"];
|
|
31475
|
+
this.updated = _data["updated"] ? new Date(_data["updated"].toString()) : <any>undefined;
|
|
31476
|
+
this.updatedBy = _data["updatedBy"];
|
|
31477
|
+
this.updatedById = _data["updatedById"];
|
|
31478
|
+
this.updatedByName = _data["updatedByName"];
|
|
31479
|
+
}
|
|
31480
|
+
}
|
|
31481
|
+
|
|
31482
|
+
static fromJS(data: any): CncSetupAuditDto {
|
|
31483
|
+
data = typeof data === 'object' ? data : {};
|
|
31484
|
+
let result = new CncSetupAuditDto();
|
|
31485
|
+
result.init(data);
|
|
31486
|
+
return result;
|
|
31487
|
+
}
|
|
31488
|
+
|
|
31489
|
+
toJSON(data?: any) {
|
|
31490
|
+
data = typeof data === 'object' ? data : {};
|
|
31491
|
+
data["created"] = this.created ? this.created.toISOString() : <any>undefined;
|
|
31492
|
+
data["createdBy"] = this.createdBy;
|
|
31493
|
+
data["createdById"] = this.createdById;
|
|
31494
|
+
data["createdByName"] = this.createdByName;
|
|
31495
|
+
data["updated"] = this.updated ? this.updated.toISOString() : <any>undefined;
|
|
31496
|
+
data["updatedBy"] = this.updatedBy;
|
|
31497
|
+
data["updatedById"] = this.updatedById;
|
|
31498
|
+
data["updatedByName"] = this.updatedByName;
|
|
31499
|
+
return data;
|
|
31500
|
+
}
|
|
31501
|
+
}
|
|
31502
|
+
|
|
31503
|
+
export interface ICncSetupAuditDto {
|
|
31504
|
+
created: Date;
|
|
31505
|
+
createdBy: string;
|
|
31506
|
+
createdById: string;
|
|
31507
|
+
createdByName?: string | null;
|
|
31508
|
+
updated?: Date | null;
|
|
31509
|
+
updatedBy?: string | null;
|
|
31510
|
+
updatedById?: string | null;
|
|
31511
|
+
updatedByName?: string | null;
|
|
31512
|
+
}
|
|
31513
|
+
|
|
31514
|
+
export class CopyToolsCncMachine implements ICopyToolsCncMachine {
|
|
31515
|
+
sourceMachineId!: string;
|
|
31516
|
+
targetOperationId!: string;
|
|
31517
|
+
toolsIds!: number[];
|
|
31518
|
+
|
|
31519
|
+
constructor(data?: ICopyToolsCncMachine) {
|
|
31187
31520
|
if (data) {
|
|
31188
31521
|
for (var property in data) {
|
|
31189
31522
|
if (data.hasOwnProperty(property))
|
|
@@ -31191,87 +31524,57 @@ export class CncToolTypeDto implements ICncToolTypeDto {
|
|
|
31191
31524
|
}
|
|
31192
31525
|
}
|
|
31193
31526
|
if (!data) {
|
|
31194
|
-
this.
|
|
31527
|
+
this.toolsIds = [];
|
|
31195
31528
|
}
|
|
31196
31529
|
}
|
|
31197
31530
|
|
|
31198
31531
|
init(_data?: any) {
|
|
31199
31532
|
if (_data) {
|
|
31200
|
-
this.
|
|
31201
|
-
this.
|
|
31202
|
-
|
|
31203
|
-
|
|
31204
|
-
|
|
31205
|
-
|
|
31206
|
-
this.subTypes!.push(CncToolSubTypeDto.fromJS(item));
|
|
31533
|
+
this.sourceMachineId = _data["sourceMachineId"];
|
|
31534
|
+
this.targetOperationId = _data["targetOperationId"];
|
|
31535
|
+
if (Array.isArray(_data["toolsIds"])) {
|
|
31536
|
+
this.toolsIds = [] as any;
|
|
31537
|
+
for (let item of _data["toolsIds"])
|
|
31538
|
+
this.toolsIds!.push(item);
|
|
31207
31539
|
}
|
|
31208
31540
|
}
|
|
31209
31541
|
}
|
|
31210
31542
|
|
|
31211
|
-
static fromJS(data: any):
|
|
31543
|
+
static fromJS(data: any): CopyToolsCncMachine {
|
|
31212
31544
|
data = typeof data === 'object' ? data : {};
|
|
31213
|
-
let result = new
|
|
31545
|
+
let result = new CopyToolsCncMachine();
|
|
31214
31546
|
result.init(data);
|
|
31215
31547
|
return result;
|
|
31216
31548
|
}
|
|
31217
31549
|
|
|
31218
31550
|
toJSON(data?: any) {
|
|
31219
31551
|
data = typeof data === 'object' ? data : {};
|
|
31220
|
-
data["
|
|
31221
|
-
data["
|
|
31222
|
-
|
|
31223
|
-
|
|
31224
|
-
|
|
31225
|
-
|
|
31226
|
-
data["subTypes"].push(item.toJSON());
|
|
31552
|
+
data["sourceMachineId"] = this.sourceMachineId;
|
|
31553
|
+
data["targetOperationId"] = this.targetOperationId;
|
|
31554
|
+
if (Array.isArray(this.toolsIds)) {
|
|
31555
|
+
data["toolsIds"] = [];
|
|
31556
|
+
for (let item of this.toolsIds)
|
|
31557
|
+
data["toolsIds"].push(item);
|
|
31227
31558
|
}
|
|
31228
31559
|
return data;
|
|
31229
31560
|
}
|
|
31230
31561
|
}
|
|
31231
31562
|
|
|
31232
|
-
export interface
|
|
31233
|
-
|
|
31234
|
-
|
|
31235
|
-
|
|
31236
|
-
subTypes: CncToolSubTypeDto[];
|
|
31563
|
+
export interface ICopyToolsCncMachine {
|
|
31564
|
+
sourceMachineId: string;
|
|
31565
|
+
targetOperationId: string;
|
|
31566
|
+
toolsIds: number[];
|
|
31237
31567
|
}
|
|
31238
31568
|
|
|
31239
|
-
export class
|
|
31240
|
-
id!: string;
|
|
31569
|
+
export class ProgramFileDto implements IProgramFileDto {
|
|
31241
31570
|
name!: string;
|
|
31242
|
-
|
|
31243
|
-
|
|
31244
|
-
|
|
31245
|
-
|
|
31246
|
-
|
|
31247
|
-
size!: boolean;
|
|
31248
|
-
sizeHelperText!: string;
|
|
31249
|
-
diameter!: boolean;
|
|
31250
|
-
diameterHelperText!: string;
|
|
31251
|
-
grade!: boolean;
|
|
31252
|
-
gradeHelperText!: string;
|
|
31253
|
-
radius!: boolean;
|
|
31254
|
-
radiusHelperText!: string;
|
|
31255
|
-
width!: boolean;
|
|
31256
|
-
widthHelperText!: string;
|
|
31257
|
-
pitch!: boolean;
|
|
31258
|
-
pitchHelperText!: string;
|
|
31259
|
-
length!: boolean;
|
|
31260
|
-
lengthHelperText!: string;
|
|
31261
|
-
kapr!: boolean;
|
|
31262
|
-
kaprHelperText!: string;
|
|
31263
|
-
teeth!: boolean;
|
|
31264
|
-
teethHelperText!: string;
|
|
31265
|
-
stickOut!: boolean;
|
|
31266
|
-
stickOutHelperText!: string;
|
|
31267
|
-
apmx!: boolean;
|
|
31268
|
-
apmxHelperText!: string;
|
|
31269
|
-
usableLength!: boolean;
|
|
31270
|
-
usableLengthHelperText!: string;
|
|
31271
|
-
descriptionHelperText!: string;
|
|
31272
|
-
holderDescriptionHelperText!: string;
|
|
31571
|
+
version!: number;
|
|
31572
|
+
uploadStatus!: UploadStatusDto;
|
|
31573
|
+
url?: string | null;
|
|
31574
|
+
timestamp?: Date | null;
|
|
31575
|
+
fileSize?: number | null;
|
|
31273
31576
|
|
|
31274
|
-
constructor(data?:
|
|
31577
|
+
constructor(data?: IProgramFileDto) {
|
|
31275
31578
|
if (data) {
|
|
31276
31579
|
for (var property in data) {
|
|
31277
31580
|
if (data.hasOwnProperty(property))
|
|
@@ -31282,151 +31585,49 @@ export class CncToolSubTypeDto implements ICncToolSubTypeDto {
|
|
|
31282
31585
|
|
|
31283
31586
|
init(_data?: any) {
|
|
31284
31587
|
if (_data) {
|
|
31285
|
-
this.id = _data["id"];
|
|
31286
31588
|
this.name = _data["name"];
|
|
31287
|
-
this.
|
|
31288
|
-
this.
|
|
31289
|
-
this.
|
|
31290
|
-
this.
|
|
31291
|
-
this.
|
|
31292
|
-
this.size = _data["size"];
|
|
31293
|
-
this.sizeHelperText = _data["sizeHelperText"];
|
|
31294
|
-
this.diameter = _data["diameter"];
|
|
31295
|
-
this.diameterHelperText = _data["diameterHelperText"];
|
|
31296
|
-
this.grade = _data["grade"];
|
|
31297
|
-
this.gradeHelperText = _data["gradeHelperText"];
|
|
31298
|
-
this.radius = _data["radius"];
|
|
31299
|
-
this.radiusHelperText = _data["radiusHelperText"];
|
|
31300
|
-
this.width = _data["width"];
|
|
31301
|
-
this.widthHelperText = _data["widthHelperText"];
|
|
31302
|
-
this.pitch = _data["pitch"];
|
|
31303
|
-
this.pitchHelperText = _data["pitchHelperText"];
|
|
31304
|
-
this.length = _data["length"];
|
|
31305
|
-
this.lengthHelperText = _data["lengthHelperText"];
|
|
31306
|
-
this.kapr = _data["kapr"];
|
|
31307
|
-
this.kaprHelperText = _data["kaprHelperText"];
|
|
31308
|
-
this.teeth = _data["teeth"];
|
|
31309
|
-
this.teethHelperText = _data["teethHelperText"];
|
|
31310
|
-
this.stickOut = _data["stickOut"];
|
|
31311
|
-
this.stickOutHelperText = _data["stickOutHelperText"];
|
|
31312
|
-
this.apmx = _data["apmx"];
|
|
31313
|
-
this.apmxHelperText = _data["apmxHelperText"];
|
|
31314
|
-
this.usableLength = _data["usableLength"];
|
|
31315
|
-
this.usableLengthHelperText = _data["usableLengthHelperText"];
|
|
31316
|
-
this.descriptionHelperText = _data["descriptionHelperText"];
|
|
31317
|
-
this.holderDescriptionHelperText = _data["holderDescriptionHelperText"];
|
|
31589
|
+
this.version = _data["version"];
|
|
31590
|
+
this.uploadStatus = _data["uploadStatus"];
|
|
31591
|
+
this.url = _data["url"];
|
|
31592
|
+
this.timestamp = _data["timestamp"] ? new Date(_data["timestamp"].toString()) : <any>undefined;
|
|
31593
|
+
this.fileSize = _data["fileSize"];
|
|
31318
31594
|
}
|
|
31319
31595
|
}
|
|
31320
31596
|
|
|
31321
|
-
static fromJS(data: any):
|
|
31597
|
+
static fromJS(data: any): ProgramFileDto {
|
|
31322
31598
|
data = typeof data === 'object' ? data : {};
|
|
31323
|
-
let result = new
|
|
31599
|
+
let result = new ProgramFileDto();
|
|
31324
31600
|
result.init(data);
|
|
31325
31601
|
return result;
|
|
31326
31602
|
}
|
|
31327
31603
|
|
|
31328
31604
|
toJSON(data?: any) {
|
|
31329
31605
|
data = typeof data === 'object' ? data : {};
|
|
31330
|
-
data["id"] = this.id;
|
|
31331
31606
|
data["name"] = this.name;
|
|
31332
|
-
data["
|
|
31333
|
-
data["
|
|
31334
|
-
data["
|
|
31335
|
-
data["
|
|
31336
|
-
data["
|
|
31337
|
-
data["size"] = this.size;
|
|
31338
|
-
data["sizeHelperText"] = this.sizeHelperText;
|
|
31339
|
-
data["diameter"] = this.diameter;
|
|
31340
|
-
data["diameterHelperText"] = this.diameterHelperText;
|
|
31341
|
-
data["grade"] = this.grade;
|
|
31342
|
-
data["gradeHelperText"] = this.gradeHelperText;
|
|
31343
|
-
data["radius"] = this.radius;
|
|
31344
|
-
data["radiusHelperText"] = this.radiusHelperText;
|
|
31345
|
-
data["width"] = this.width;
|
|
31346
|
-
data["widthHelperText"] = this.widthHelperText;
|
|
31347
|
-
data["pitch"] = this.pitch;
|
|
31348
|
-
data["pitchHelperText"] = this.pitchHelperText;
|
|
31349
|
-
data["length"] = this.length;
|
|
31350
|
-
data["lengthHelperText"] = this.lengthHelperText;
|
|
31351
|
-
data["kapr"] = this.kapr;
|
|
31352
|
-
data["kaprHelperText"] = this.kaprHelperText;
|
|
31353
|
-
data["teeth"] = this.teeth;
|
|
31354
|
-
data["teethHelperText"] = this.teethHelperText;
|
|
31355
|
-
data["stickOut"] = this.stickOut;
|
|
31356
|
-
data["stickOutHelperText"] = this.stickOutHelperText;
|
|
31357
|
-
data["apmx"] = this.apmx;
|
|
31358
|
-
data["apmxHelperText"] = this.apmxHelperText;
|
|
31359
|
-
data["usableLength"] = this.usableLength;
|
|
31360
|
-
data["usableLengthHelperText"] = this.usableLengthHelperText;
|
|
31361
|
-
data["descriptionHelperText"] = this.descriptionHelperText;
|
|
31362
|
-
data["holderDescriptionHelperText"] = this.holderDescriptionHelperText;
|
|
31607
|
+
data["version"] = this.version;
|
|
31608
|
+
data["uploadStatus"] = this.uploadStatus;
|
|
31609
|
+
data["url"] = this.url;
|
|
31610
|
+
data["timestamp"] = this.timestamp ? this.timestamp.toISOString() : <any>undefined;
|
|
31611
|
+
data["fileSize"] = this.fileSize;
|
|
31363
31612
|
return data;
|
|
31364
31613
|
}
|
|
31365
31614
|
}
|
|
31366
31615
|
|
|
31367
|
-
export interface
|
|
31368
|
-
id: string;
|
|
31616
|
+
export interface IProgramFileDto {
|
|
31369
31617
|
name: string;
|
|
31370
|
-
|
|
31371
|
-
|
|
31372
|
-
|
|
31373
|
-
|
|
31374
|
-
|
|
31375
|
-
size: boolean;
|
|
31376
|
-
sizeHelperText: string;
|
|
31377
|
-
diameter: boolean;
|
|
31378
|
-
diameterHelperText: string;
|
|
31379
|
-
grade: boolean;
|
|
31380
|
-
gradeHelperText: string;
|
|
31381
|
-
radius: boolean;
|
|
31382
|
-
radiusHelperText: string;
|
|
31383
|
-
width: boolean;
|
|
31384
|
-
widthHelperText: string;
|
|
31385
|
-
pitch: boolean;
|
|
31386
|
-
pitchHelperText: string;
|
|
31387
|
-
length: boolean;
|
|
31388
|
-
lengthHelperText: string;
|
|
31389
|
-
kapr: boolean;
|
|
31390
|
-
kaprHelperText: string;
|
|
31391
|
-
teeth: boolean;
|
|
31392
|
-
teethHelperText: string;
|
|
31393
|
-
stickOut: boolean;
|
|
31394
|
-
stickOutHelperText: string;
|
|
31395
|
-
apmx: boolean;
|
|
31396
|
-
apmxHelperText: string;
|
|
31397
|
-
usableLength: boolean;
|
|
31398
|
-
usableLengthHelperText: string;
|
|
31399
|
-
descriptionHelperText: string;
|
|
31400
|
-
holderDescriptionHelperText: string;
|
|
31618
|
+
version: number;
|
|
31619
|
+
uploadStatus: UploadStatusDto;
|
|
31620
|
+
url?: string | null;
|
|
31621
|
+
timestamp?: Date | null;
|
|
31622
|
+
fileSize?: number | null;
|
|
31401
31623
|
}
|
|
31402
31624
|
|
|
31403
|
-
export
|
|
31404
|
-
id!: number;
|
|
31405
|
-
toolTypeId!: string;
|
|
31406
|
-
toolType!: string;
|
|
31407
|
-
toolSubTypeId!: string;
|
|
31408
|
-
toolSubTypeName!: string;
|
|
31409
|
-
toolNumber?: string | null;
|
|
31410
|
-
toolSuffix?: string | null;
|
|
31411
|
-
description?: string | null;
|
|
31412
|
-
holderDescription?: string | null;
|
|
31413
|
-
geometry?: string | null;
|
|
31414
|
-
size?: string | null;
|
|
31415
|
-
diameter?: number | null;
|
|
31416
|
-
grade?: string | null;
|
|
31417
|
-
radius?: number | null;
|
|
31418
|
-
width?: number | null;
|
|
31419
|
-
pitch?: string | null;
|
|
31420
|
-
length?: number | null;
|
|
31421
|
-
kapr?: number | null;
|
|
31422
|
-
teeth?: number | null;
|
|
31423
|
-
stickOut?: number | null;
|
|
31424
|
-
apmx?: number | null;
|
|
31425
|
-
usableLength?: number | null;
|
|
31426
|
-
images?: ImageFileDto[];
|
|
31427
|
-
auditInfo?: CncSetupAuditDto;
|
|
31625
|
+
export type UploadStatusDto = "NotUploaded" | "Available" | "Deleted";
|
|
31428
31626
|
|
|
31429
|
-
|
|
31627
|
+
export class UpdateProgramFileRequest implements IUpdateProgramFileRequest {
|
|
31628
|
+
deleted!: boolean;
|
|
31629
|
+
|
|
31630
|
+
constructor(data?: IUpdateProgramFileRequest) {
|
|
31430
31631
|
if (data) {
|
|
31431
31632
|
for (var property in data) {
|
|
31432
31633
|
if (data.hasOwnProperty(property))
|
|
@@ -31437,160 +31638,123 @@ export class CncToolDto implements ICncToolDto {
|
|
|
31437
31638
|
|
|
31438
31639
|
init(_data?: any) {
|
|
31439
31640
|
if (_data) {
|
|
31440
|
-
this.
|
|
31441
|
-
this.toolTypeId = _data["toolTypeId"];
|
|
31442
|
-
this.toolType = _data["toolType"];
|
|
31443
|
-
this.toolSubTypeId = _data["toolSubTypeId"];
|
|
31444
|
-
this.toolSubTypeName = _data["toolSubTypeName"];
|
|
31445
|
-
this.toolNumber = _data["toolNumber"];
|
|
31446
|
-
this.toolSuffix = _data["toolSuffix"];
|
|
31447
|
-
this.description = _data["description"];
|
|
31448
|
-
this.holderDescription = _data["holderDescription"];
|
|
31449
|
-
this.geometry = _data["geometry"];
|
|
31450
|
-
this.size = _data["size"];
|
|
31451
|
-
this.diameter = _data["diameter"];
|
|
31452
|
-
this.grade = _data["grade"];
|
|
31453
|
-
this.radius = _data["radius"];
|
|
31454
|
-
this.width = _data["width"];
|
|
31455
|
-
this.pitch = _data["pitch"];
|
|
31456
|
-
this.length = _data["length"];
|
|
31457
|
-
this.kapr = _data["kapr"];
|
|
31458
|
-
this.teeth = _data["teeth"];
|
|
31459
|
-
this.stickOut = _data["stickOut"];
|
|
31460
|
-
this.apmx = _data["apmx"];
|
|
31461
|
-
this.usableLength = _data["usableLength"];
|
|
31462
|
-
if (Array.isArray(_data["images"])) {
|
|
31463
|
-
this.images = [] as any;
|
|
31464
|
-
for (let item of _data["images"])
|
|
31465
|
-
this.images!.push(ImageFileDto.fromJS(item));
|
|
31466
|
-
}
|
|
31467
|
-
this.auditInfo = _data["auditInfo"] ? CncSetupAuditDto.fromJS(_data["auditInfo"]) : <any>undefined;
|
|
31641
|
+
this.deleted = _data["deleted"];
|
|
31468
31642
|
}
|
|
31469
31643
|
}
|
|
31470
31644
|
|
|
31471
|
-
static fromJS(data: any):
|
|
31645
|
+
static fromJS(data: any): UpdateProgramFileRequest {
|
|
31472
31646
|
data = typeof data === 'object' ? data : {};
|
|
31473
|
-
let result = new
|
|
31647
|
+
let result = new UpdateProgramFileRequest();
|
|
31474
31648
|
result.init(data);
|
|
31475
31649
|
return result;
|
|
31476
31650
|
}
|
|
31477
31651
|
|
|
31478
31652
|
toJSON(data?: any) {
|
|
31479
31653
|
data = typeof data === 'object' ? data : {};
|
|
31480
|
-
data["
|
|
31481
|
-
data["toolTypeId"] = this.toolTypeId;
|
|
31482
|
-
data["toolType"] = this.toolType;
|
|
31483
|
-
data["toolSubTypeId"] = this.toolSubTypeId;
|
|
31484
|
-
data["toolSubTypeName"] = this.toolSubTypeName;
|
|
31485
|
-
data["toolNumber"] = this.toolNumber;
|
|
31486
|
-
data["toolSuffix"] = this.toolSuffix;
|
|
31487
|
-
data["description"] = this.description;
|
|
31488
|
-
data["holderDescription"] = this.holderDescription;
|
|
31489
|
-
data["geometry"] = this.geometry;
|
|
31490
|
-
data["size"] = this.size;
|
|
31491
|
-
data["diameter"] = this.diameter;
|
|
31492
|
-
data["grade"] = this.grade;
|
|
31493
|
-
data["radius"] = this.radius;
|
|
31494
|
-
data["width"] = this.width;
|
|
31495
|
-
data["pitch"] = this.pitch;
|
|
31496
|
-
data["length"] = this.length;
|
|
31497
|
-
data["kapr"] = this.kapr;
|
|
31498
|
-
data["teeth"] = this.teeth;
|
|
31499
|
-
data["stickOut"] = this.stickOut;
|
|
31500
|
-
data["apmx"] = this.apmx;
|
|
31501
|
-
data["usableLength"] = this.usableLength;
|
|
31502
|
-
if (Array.isArray(this.images)) {
|
|
31503
|
-
data["images"] = [];
|
|
31504
|
-
for (let item of this.images)
|
|
31505
|
-
data["images"].push(item.toJSON());
|
|
31506
|
-
}
|
|
31507
|
-
data["auditInfo"] = this.auditInfo ? this.auditInfo.toJSON() : <any>undefined;
|
|
31654
|
+
data["deleted"] = this.deleted;
|
|
31508
31655
|
return data;
|
|
31509
31656
|
}
|
|
31510
31657
|
}
|
|
31511
31658
|
|
|
31512
|
-
export interface
|
|
31513
|
-
|
|
31514
|
-
toolTypeId: string;
|
|
31515
|
-
toolType: string;
|
|
31516
|
-
toolSubTypeId: string;
|
|
31517
|
-
toolSubTypeName: string;
|
|
31518
|
-
toolNumber?: string | null;
|
|
31519
|
-
toolSuffix?: string | null;
|
|
31520
|
-
description?: string | null;
|
|
31521
|
-
holderDescription?: string | null;
|
|
31522
|
-
geometry?: string | null;
|
|
31523
|
-
size?: string | null;
|
|
31524
|
-
diameter?: number | null;
|
|
31525
|
-
grade?: string | null;
|
|
31526
|
-
radius?: number | null;
|
|
31527
|
-
width?: number | null;
|
|
31528
|
-
pitch?: string | null;
|
|
31529
|
-
length?: number | null;
|
|
31530
|
-
kapr?: number | null;
|
|
31531
|
-
teeth?: number | null;
|
|
31532
|
-
stickOut?: number | null;
|
|
31533
|
-
apmx?: number | null;
|
|
31534
|
-
usableLength?: number | null;
|
|
31535
|
-
images?: ImageFileDto[];
|
|
31536
|
-
auditInfo?: CncSetupAuditDto;
|
|
31659
|
+
export interface IUpdateProgramFileRequest {
|
|
31660
|
+
deleted: boolean;
|
|
31537
31661
|
}
|
|
31538
31662
|
|
|
31539
|
-
export class
|
|
31540
|
-
|
|
31663
|
+
export class CncToolTypeDto implements ICncToolTypeDto {
|
|
31664
|
+
id!: string;
|
|
31541
31665
|
name!: string;
|
|
31542
|
-
|
|
31666
|
+
imageUrl?: string | null;
|
|
31667
|
+
subTypes!: CncToolSubTypeDto[];
|
|
31543
31668
|
|
|
31544
|
-
constructor(data?:
|
|
31669
|
+
constructor(data?: ICncToolTypeDto) {
|
|
31545
31670
|
if (data) {
|
|
31546
31671
|
for (var property in data) {
|
|
31547
31672
|
if (data.hasOwnProperty(property))
|
|
31548
31673
|
(<any>this)[property] = (<any>data)[property];
|
|
31549
31674
|
}
|
|
31550
31675
|
}
|
|
31676
|
+
if (!data) {
|
|
31677
|
+
this.subTypes = [];
|
|
31678
|
+
}
|
|
31551
31679
|
}
|
|
31552
31680
|
|
|
31553
31681
|
init(_data?: any) {
|
|
31554
31682
|
if (_data) {
|
|
31555
|
-
this.
|
|
31683
|
+
this.id = _data["id"];
|
|
31556
31684
|
this.name = _data["name"];
|
|
31557
|
-
this.
|
|
31685
|
+
this.imageUrl = _data["imageUrl"];
|
|
31686
|
+
if (Array.isArray(_data["subTypes"])) {
|
|
31687
|
+
this.subTypes = [] as any;
|
|
31688
|
+
for (let item of _data["subTypes"])
|
|
31689
|
+
this.subTypes!.push(CncToolSubTypeDto.fromJS(item));
|
|
31690
|
+
}
|
|
31558
31691
|
}
|
|
31559
31692
|
}
|
|
31560
31693
|
|
|
31561
|
-
static fromJS(data: any):
|
|
31694
|
+
static fromJS(data: any): CncToolTypeDto {
|
|
31562
31695
|
data = typeof data === 'object' ? data : {};
|
|
31563
|
-
let result = new
|
|
31696
|
+
let result = new CncToolTypeDto();
|
|
31564
31697
|
result.init(data);
|
|
31565
31698
|
return result;
|
|
31566
31699
|
}
|
|
31567
31700
|
|
|
31568
31701
|
toJSON(data?: any) {
|
|
31569
31702
|
data = typeof data === 'object' ? data : {};
|
|
31570
|
-
data["
|
|
31703
|
+
data["id"] = this.id;
|
|
31571
31704
|
data["name"] = this.name;
|
|
31572
|
-
data["
|
|
31705
|
+
data["imageUrl"] = this.imageUrl;
|
|
31706
|
+
if (Array.isArray(this.subTypes)) {
|
|
31707
|
+
data["subTypes"] = [];
|
|
31708
|
+
for (let item of this.subTypes)
|
|
31709
|
+
data["subTypes"].push(item.toJSON());
|
|
31710
|
+
}
|
|
31573
31711
|
return data;
|
|
31574
31712
|
}
|
|
31575
31713
|
}
|
|
31576
31714
|
|
|
31577
|
-
export interface
|
|
31578
|
-
|
|
31715
|
+
export interface ICncToolTypeDto {
|
|
31716
|
+
id: string;
|
|
31579
31717
|
name: string;
|
|
31580
|
-
|
|
31718
|
+
imageUrl?: string | null;
|
|
31719
|
+
subTypes: CncToolSubTypeDto[];
|
|
31581
31720
|
}
|
|
31582
31721
|
|
|
31583
|
-
export class
|
|
31584
|
-
|
|
31585
|
-
|
|
31586
|
-
|
|
31587
|
-
|
|
31588
|
-
|
|
31589
|
-
|
|
31590
|
-
|
|
31591
|
-
|
|
31722
|
+
export class CncToolSubTypeDto implements ICncToolSubTypeDto {
|
|
31723
|
+
id!: string;
|
|
31724
|
+
name!: string;
|
|
31725
|
+
imageUrl?: string | null;
|
|
31726
|
+
toolNumberHelperText!: string;
|
|
31727
|
+
suffixHelperText!: string;
|
|
31728
|
+
geometry!: boolean;
|
|
31729
|
+
geometryHelperText!: string;
|
|
31730
|
+
size!: boolean;
|
|
31731
|
+
sizeHelperText!: string;
|
|
31732
|
+
diameter!: boolean;
|
|
31733
|
+
diameterHelperText!: string;
|
|
31734
|
+
grade!: boolean;
|
|
31735
|
+
gradeHelperText!: string;
|
|
31736
|
+
radius!: boolean;
|
|
31737
|
+
radiusHelperText!: string;
|
|
31738
|
+
width!: boolean;
|
|
31739
|
+
widthHelperText!: string;
|
|
31740
|
+
pitch!: boolean;
|
|
31741
|
+
pitchHelperText!: string;
|
|
31742
|
+
length!: boolean;
|
|
31743
|
+
lengthHelperText!: string;
|
|
31744
|
+
kapr!: boolean;
|
|
31745
|
+
kaprHelperText!: string;
|
|
31746
|
+
teeth!: boolean;
|
|
31747
|
+
teethHelperText!: string;
|
|
31748
|
+
stickOut!: boolean;
|
|
31749
|
+
stickOutHelperText!: string;
|
|
31750
|
+
apmx!: boolean;
|
|
31751
|
+
apmxHelperText!: string;
|
|
31752
|
+
usableLength!: boolean;
|
|
31753
|
+
usableLengthHelperText!: string;
|
|
31754
|
+
descriptionHelperText!: string;
|
|
31755
|
+
holderDescriptionHelperText!: string;
|
|
31592
31756
|
|
|
31593
|
-
constructor(data?:
|
|
31757
|
+
constructor(data?: ICncToolSubTypeDto) {
|
|
31594
31758
|
if (data) {
|
|
31595
31759
|
for (var property in data) {
|
|
31596
31760
|
if (data.hasOwnProperty(property))
|
|
@@ -31601,47 +31765,122 @@ export class CncSetupAuditDto implements ICncSetupAuditDto {
|
|
|
31601
31765
|
|
|
31602
31766
|
init(_data?: any) {
|
|
31603
31767
|
if (_data) {
|
|
31604
|
-
this.
|
|
31605
|
-
this.
|
|
31606
|
-
this.
|
|
31607
|
-
this.
|
|
31608
|
-
this.
|
|
31609
|
-
this.
|
|
31610
|
-
this.
|
|
31611
|
-
this.
|
|
31768
|
+
this.id = _data["id"];
|
|
31769
|
+
this.name = _data["name"];
|
|
31770
|
+
this.imageUrl = _data["imageUrl"];
|
|
31771
|
+
this.toolNumberHelperText = _data["toolNumberHelperText"];
|
|
31772
|
+
this.suffixHelperText = _data["suffixHelperText"];
|
|
31773
|
+
this.geometry = _data["geometry"];
|
|
31774
|
+
this.geometryHelperText = _data["geometryHelperText"];
|
|
31775
|
+
this.size = _data["size"];
|
|
31776
|
+
this.sizeHelperText = _data["sizeHelperText"];
|
|
31777
|
+
this.diameter = _data["diameter"];
|
|
31778
|
+
this.diameterHelperText = _data["diameterHelperText"];
|
|
31779
|
+
this.grade = _data["grade"];
|
|
31780
|
+
this.gradeHelperText = _data["gradeHelperText"];
|
|
31781
|
+
this.radius = _data["radius"];
|
|
31782
|
+
this.radiusHelperText = _data["radiusHelperText"];
|
|
31783
|
+
this.width = _data["width"];
|
|
31784
|
+
this.widthHelperText = _data["widthHelperText"];
|
|
31785
|
+
this.pitch = _data["pitch"];
|
|
31786
|
+
this.pitchHelperText = _data["pitchHelperText"];
|
|
31787
|
+
this.length = _data["length"];
|
|
31788
|
+
this.lengthHelperText = _data["lengthHelperText"];
|
|
31789
|
+
this.kapr = _data["kapr"];
|
|
31790
|
+
this.kaprHelperText = _data["kaprHelperText"];
|
|
31791
|
+
this.teeth = _data["teeth"];
|
|
31792
|
+
this.teethHelperText = _data["teethHelperText"];
|
|
31793
|
+
this.stickOut = _data["stickOut"];
|
|
31794
|
+
this.stickOutHelperText = _data["stickOutHelperText"];
|
|
31795
|
+
this.apmx = _data["apmx"];
|
|
31796
|
+
this.apmxHelperText = _data["apmxHelperText"];
|
|
31797
|
+
this.usableLength = _data["usableLength"];
|
|
31798
|
+
this.usableLengthHelperText = _data["usableLengthHelperText"];
|
|
31799
|
+
this.descriptionHelperText = _data["descriptionHelperText"];
|
|
31800
|
+
this.holderDescriptionHelperText = _data["holderDescriptionHelperText"];
|
|
31612
31801
|
}
|
|
31613
31802
|
}
|
|
31614
31803
|
|
|
31615
|
-
static fromJS(data: any):
|
|
31804
|
+
static fromJS(data: any): CncToolSubTypeDto {
|
|
31616
31805
|
data = typeof data === 'object' ? data : {};
|
|
31617
|
-
let result = new
|
|
31806
|
+
let result = new CncToolSubTypeDto();
|
|
31618
31807
|
result.init(data);
|
|
31619
31808
|
return result;
|
|
31620
31809
|
}
|
|
31621
31810
|
|
|
31622
31811
|
toJSON(data?: any) {
|
|
31623
31812
|
data = typeof data === 'object' ? data : {};
|
|
31624
|
-
data["
|
|
31625
|
-
data["
|
|
31626
|
-
data["
|
|
31627
|
-
data["
|
|
31628
|
-
data["
|
|
31629
|
-
data["
|
|
31630
|
-
data["
|
|
31631
|
-
data["
|
|
31813
|
+
data["id"] = this.id;
|
|
31814
|
+
data["name"] = this.name;
|
|
31815
|
+
data["imageUrl"] = this.imageUrl;
|
|
31816
|
+
data["toolNumberHelperText"] = this.toolNumberHelperText;
|
|
31817
|
+
data["suffixHelperText"] = this.suffixHelperText;
|
|
31818
|
+
data["geometry"] = this.geometry;
|
|
31819
|
+
data["geometryHelperText"] = this.geometryHelperText;
|
|
31820
|
+
data["size"] = this.size;
|
|
31821
|
+
data["sizeHelperText"] = this.sizeHelperText;
|
|
31822
|
+
data["diameter"] = this.diameter;
|
|
31823
|
+
data["diameterHelperText"] = this.diameterHelperText;
|
|
31824
|
+
data["grade"] = this.grade;
|
|
31825
|
+
data["gradeHelperText"] = this.gradeHelperText;
|
|
31826
|
+
data["radius"] = this.radius;
|
|
31827
|
+
data["radiusHelperText"] = this.radiusHelperText;
|
|
31828
|
+
data["width"] = this.width;
|
|
31829
|
+
data["widthHelperText"] = this.widthHelperText;
|
|
31830
|
+
data["pitch"] = this.pitch;
|
|
31831
|
+
data["pitchHelperText"] = this.pitchHelperText;
|
|
31832
|
+
data["length"] = this.length;
|
|
31833
|
+
data["lengthHelperText"] = this.lengthHelperText;
|
|
31834
|
+
data["kapr"] = this.kapr;
|
|
31835
|
+
data["kaprHelperText"] = this.kaprHelperText;
|
|
31836
|
+
data["teeth"] = this.teeth;
|
|
31837
|
+
data["teethHelperText"] = this.teethHelperText;
|
|
31838
|
+
data["stickOut"] = this.stickOut;
|
|
31839
|
+
data["stickOutHelperText"] = this.stickOutHelperText;
|
|
31840
|
+
data["apmx"] = this.apmx;
|
|
31841
|
+
data["apmxHelperText"] = this.apmxHelperText;
|
|
31842
|
+
data["usableLength"] = this.usableLength;
|
|
31843
|
+
data["usableLengthHelperText"] = this.usableLengthHelperText;
|
|
31844
|
+
data["descriptionHelperText"] = this.descriptionHelperText;
|
|
31845
|
+
data["holderDescriptionHelperText"] = this.holderDescriptionHelperText;
|
|
31632
31846
|
return data;
|
|
31633
31847
|
}
|
|
31634
31848
|
}
|
|
31635
31849
|
|
|
31636
|
-
export interface
|
|
31637
|
-
|
|
31638
|
-
|
|
31639
|
-
|
|
31640
|
-
|
|
31641
|
-
|
|
31642
|
-
|
|
31643
|
-
|
|
31644
|
-
|
|
31850
|
+
export interface ICncToolSubTypeDto {
|
|
31851
|
+
id: string;
|
|
31852
|
+
name: string;
|
|
31853
|
+
imageUrl?: string | null;
|
|
31854
|
+
toolNumberHelperText: string;
|
|
31855
|
+
suffixHelperText: string;
|
|
31856
|
+
geometry: boolean;
|
|
31857
|
+
geometryHelperText: string;
|
|
31858
|
+
size: boolean;
|
|
31859
|
+
sizeHelperText: string;
|
|
31860
|
+
diameter: boolean;
|
|
31861
|
+
diameterHelperText: string;
|
|
31862
|
+
grade: boolean;
|
|
31863
|
+
gradeHelperText: string;
|
|
31864
|
+
radius: boolean;
|
|
31865
|
+
radiusHelperText: string;
|
|
31866
|
+
width: boolean;
|
|
31867
|
+
widthHelperText: string;
|
|
31868
|
+
pitch: boolean;
|
|
31869
|
+
pitchHelperText: string;
|
|
31870
|
+
length: boolean;
|
|
31871
|
+
lengthHelperText: string;
|
|
31872
|
+
kapr: boolean;
|
|
31873
|
+
kaprHelperText: string;
|
|
31874
|
+
teeth: boolean;
|
|
31875
|
+
teethHelperText: string;
|
|
31876
|
+
stickOut: boolean;
|
|
31877
|
+
stickOutHelperText: string;
|
|
31878
|
+
apmx: boolean;
|
|
31879
|
+
apmxHelperText: string;
|
|
31880
|
+
usableLength: boolean;
|
|
31881
|
+
usableLengthHelperText: string;
|
|
31882
|
+
descriptionHelperText: string;
|
|
31883
|
+
holderDescriptionHelperText: string;
|
|
31645
31884
|
}
|
|
31646
31885
|
|
|
31647
31886
|
export class CreateCncMachineOperationToolRequest implements ICreateCncMachineOperationToolRequest {
|
|
@@ -35137,6 +35376,86 @@ export interface IPickListMaterialLineDto {
|
|
|
35137
35376
|
batch?: string | null;
|
|
35138
35377
|
}
|
|
35139
35378
|
|
|
35379
|
+
export class ProductionOrderOperationActivityDto implements IProductionOrderOperationActivityDto {
|
|
35380
|
+
operation!: number;
|
|
35381
|
+
operationId!: string;
|
|
35382
|
+
description?: string | null;
|
|
35383
|
+
resource?: ResourceDto | null;
|
|
35384
|
+
user?: UserDto | null;
|
|
35385
|
+
startTime!: Date;
|
|
35386
|
+
endTime?: Date | null;
|
|
35387
|
+
status!: OperationStatusDto;
|
|
35388
|
+
active!: boolean;
|
|
35389
|
+
startedQuantity?: number | null;
|
|
35390
|
+
producedQuantity?: number | null;
|
|
35391
|
+
scrappedQuantity?: number | null;
|
|
35392
|
+
|
|
35393
|
+
constructor(data?: IProductionOrderOperationActivityDto) {
|
|
35394
|
+
if (data) {
|
|
35395
|
+
for (var property in data) {
|
|
35396
|
+
if (data.hasOwnProperty(property))
|
|
35397
|
+
(<any>this)[property] = (<any>data)[property];
|
|
35398
|
+
}
|
|
35399
|
+
}
|
|
35400
|
+
}
|
|
35401
|
+
|
|
35402
|
+
init(_data?: any) {
|
|
35403
|
+
if (_data) {
|
|
35404
|
+
this.operation = _data["operation"];
|
|
35405
|
+
this.operationId = _data["operationId"];
|
|
35406
|
+
this.description = _data["description"];
|
|
35407
|
+
this.resource = _data["resource"] ? ResourceDto.fromJS(_data["resource"]) : <any>undefined;
|
|
35408
|
+
this.user = _data["user"] ? UserDto.fromJS(_data["user"]) : <any>undefined;
|
|
35409
|
+
this.startTime = _data["startTime"] ? new Date(_data["startTime"].toString()) : <any>undefined;
|
|
35410
|
+
this.endTime = _data["endTime"] ? new Date(_data["endTime"].toString()) : <any>undefined;
|
|
35411
|
+
this.status = _data["status"];
|
|
35412
|
+
this.active = _data["active"];
|
|
35413
|
+
this.startedQuantity = _data["startedQuantity"];
|
|
35414
|
+
this.producedQuantity = _data["producedQuantity"];
|
|
35415
|
+
this.scrappedQuantity = _data["scrappedQuantity"];
|
|
35416
|
+
}
|
|
35417
|
+
}
|
|
35418
|
+
|
|
35419
|
+
static fromJS(data: any): ProductionOrderOperationActivityDto {
|
|
35420
|
+
data = typeof data === 'object' ? data : {};
|
|
35421
|
+
let result = new ProductionOrderOperationActivityDto();
|
|
35422
|
+
result.init(data);
|
|
35423
|
+
return result;
|
|
35424
|
+
}
|
|
35425
|
+
|
|
35426
|
+
toJSON(data?: any) {
|
|
35427
|
+
data = typeof data === 'object' ? data : {};
|
|
35428
|
+
data["operation"] = this.operation;
|
|
35429
|
+
data["operationId"] = this.operationId;
|
|
35430
|
+
data["description"] = this.description;
|
|
35431
|
+
data["resource"] = this.resource ? this.resource.toJSON() : <any>undefined;
|
|
35432
|
+
data["user"] = this.user ? this.user.toJSON() : <any>undefined;
|
|
35433
|
+
data["startTime"] = this.startTime ? this.startTime.toISOString() : <any>undefined;
|
|
35434
|
+
data["endTime"] = this.endTime ? this.endTime.toISOString() : <any>undefined;
|
|
35435
|
+
data["status"] = this.status;
|
|
35436
|
+
data["active"] = this.active;
|
|
35437
|
+
data["startedQuantity"] = this.startedQuantity;
|
|
35438
|
+
data["producedQuantity"] = this.producedQuantity;
|
|
35439
|
+
data["scrappedQuantity"] = this.scrappedQuantity;
|
|
35440
|
+
return data;
|
|
35441
|
+
}
|
|
35442
|
+
}
|
|
35443
|
+
|
|
35444
|
+
export interface IProductionOrderOperationActivityDto {
|
|
35445
|
+
operation: number;
|
|
35446
|
+
operationId: string;
|
|
35447
|
+
description?: string | null;
|
|
35448
|
+
resource?: ResourceDto | null;
|
|
35449
|
+
user?: UserDto | null;
|
|
35450
|
+
startTime: Date;
|
|
35451
|
+
endTime?: Date | null;
|
|
35452
|
+
status: OperationStatusDto;
|
|
35453
|
+
active: boolean;
|
|
35454
|
+
startedQuantity?: number | null;
|
|
35455
|
+
producedQuantity?: number | null;
|
|
35456
|
+
scrappedQuantity?: number | null;
|
|
35457
|
+
}
|
|
35458
|
+
|
|
35140
35459
|
export class PagedResultOfProductionScheduleOperationDto implements IPagedResultOfProductionScheduleOperationDto {
|
|
35141
35460
|
results!: ProductionScheduleOperationDto[];
|
|
35142
35461
|
continuationToken?: string | null;
|