@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/lib/ignosportal-api.js
CHANGED
|
@@ -8305,6 +8305,50 @@ export class CncSetupClient extends AuthorizedApiBase {
|
|
|
8305
8305
|
}
|
|
8306
8306
|
return Promise.resolve(null);
|
|
8307
8307
|
}
|
|
8308
|
+
copyToolsCncMachine(request) {
|
|
8309
|
+
let url_ = this.baseUrl + "/cncsetup/operations/copytoolscncmachine";
|
|
8310
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
8311
|
+
const content_ = JSON.stringify(request);
|
|
8312
|
+
let options_ = {
|
|
8313
|
+
body: content_,
|
|
8314
|
+
method: "POST",
|
|
8315
|
+
headers: {
|
|
8316
|
+
"Content-Type": "application/json",
|
|
8317
|
+
"Accept": "application/json"
|
|
8318
|
+
}
|
|
8319
|
+
};
|
|
8320
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
8321
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
8322
|
+
}).then((_response) => {
|
|
8323
|
+
return this.processCopyToolsCncMachine(_response);
|
|
8324
|
+
});
|
|
8325
|
+
}
|
|
8326
|
+
processCopyToolsCncMachine(response) {
|
|
8327
|
+
const status = response.status;
|
|
8328
|
+
let _headers = {};
|
|
8329
|
+
if (response.headers && response.headers.forEach) {
|
|
8330
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
8331
|
+
}
|
|
8332
|
+
;
|
|
8333
|
+
if (status === 200) {
|
|
8334
|
+
return response.text().then((_responseText) => {
|
|
8335
|
+
let result200 = null;
|
|
8336
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
8337
|
+
if (Array.isArray(resultData200)) {
|
|
8338
|
+
result200 = [];
|
|
8339
|
+
for (let item of resultData200)
|
|
8340
|
+
result200.push(CncToolDto.fromJS(item));
|
|
8341
|
+
}
|
|
8342
|
+
return result200;
|
|
8343
|
+
});
|
|
8344
|
+
}
|
|
8345
|
+
else if (status !== 200 && status !== 204) {
|
|
8346
|
+
return response.text().then((_responseText) => {
|
|
8347
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
8348
|
+
});
|
|
8349
|
+
}
|
|
8350
|
+
return Promise.resolve(null);
|
|
8351
|
+
}
|
|
8308
8352
|
createUploadProgramsInfo(id, request) {
|
|
8309
8353
|
let url_ = this.baseUrl + "/cncsetup/operations/{id}/programs";
|
|
8310
8354
|
if (id === undefined || id === null)
|
|
@@ -9269,6 +9313,93 @@ export class CncSetupClient extends AuthorizedApiBase {
|
|
|
9269
9313
|
}
|
|
9270
9314
|
return Promise.resolve(null);
|
|
9271
9315
|
}
|
|
9316
|
+
uploadCncMachineToolImage(machineId, id, request) {
|
|
9317
|
+
let url_ = this.baseUrl + "/cncsetup/machines/{machineId}/tools/{id}/uploadimage";
|
|
9318
|
+
if (machineId === undefined || machineId === null)
|
|
9319
|
+
throw new Error("The parameter 'machineId' must be defined.");
|
|
9320
|
+
url_ = url_.replace("{machineId}", encodeURIComponent("" + machineId));
|
|
9321
|
+
if (id === undefined || id === null)
|
|
9322
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
9323
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
9324
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
9325
|
+
const content_ = JSON.stringify(request);
|
|
9326
|
+
let options_ = {
|
|
9327
|
+
body: content_,
|
|
9328
|
+
method: "POST",
|
|
9329
|
+
headers: {
|
|
9330
|
+
"Content-Type": "application/json",
|
|
9331
|
+
"Accept": "application/json"
|
|
9332
|
+
}
|
|
9333
|
+
};
|
|
9334
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
9335
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
9336
|
+
}).then((_response) => {
|
|
9337
|
+
return this.processUploadCncMachineToolImage(_response);
|
|
9338
|
+
});
|
|
9339
|
+
}
|
|
9340
|
+
processUploadCncMachineToolImage(response) {
|
|
9341
|
+
const status = response.status;
|
|
9342
|
+
let _headers = {};
|
|
9343
|
+
if (response.headers && response.headers.forEach) {
|
|
9344
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
9345
|
+
}
|
|
9346
|
+
;
|
|
9347
|
+
if (status === 200) {
|
|
9348
|
+
return response.text().then((_responseText) => {
|
|
9349
|
+
let result200 = null;
|
|
9350
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
9351
|
+
result200 = ImageFileDto.fromJS(resultData200);
|
|
9352
|
+
return result200;
|
|
9353
|
+
});
|
|
9354
|
+
}
|
|
9355
|
+
else if (status !== 200 && status !== 204) {
|
|
9356
|
+
return response.text().then((_responseText) => {
|
|
9357
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
9358
|
+
});
|
|
9359
|
+
}
|
|
9360
|
+
return Promise.resolve(null);
|
|
9361
|
+
}
|
|
9362
|
+
deleteCncMachineToolImage(machineId, id, filename) {
|
|
9363
|
+
let url_ = this.baseUrl + "/cncsetup/machines/{machineId}/tools/{id}/{filename}";
|
|
9364
|
+
if (machineId === undefined || machineId === null)
|
|
9365
|
+
throw new Error("The parameter 'machineId' must be defined.");
|
|
9366
|
+
url_ = url_.replace("{machineId}", encodeURIComponent("" + machineId));
|
|
9367
|
+
if (id === undefined || id === null)
|
|
9368
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
9369
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
9370
|
+
if (filename === undefined || filename === null)
|
|
9371
|
+
throw new Error("The parameter 'filename' must be defined.");
|
|
9372
|
+
url_ = url_.replace("{filename}", encodeURIComponent("" + filename));
|
|
9373
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
9374
|
+
let options_ = {
|
|
9375
|
+
method: "DELETE",
|
|
9376
|
+
headers: {}
|
|
9377
|
+
};
|
|
9378
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
9379
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
9380
|
+
}).then((_response) => {
|
|
9381
|
+
return this.processDeleteCncMachineToolImage(_response);
|
|
9382
|
+
});
|
|
9383
|
+
}
|
|
9384
|
+
processDeleteCncMachineToolImage(response) {
|
|
9385
|
+
const status = response.status;
|
|
9386
|
+
let _headers = {};
|
|
9387
|
+
if (response.headers && response.headers.forEach) {
|
|
9388
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
9389
|
+
}
|
|
9390
|
+
;
|
|
9391
|
+
if (status === 204) {
|
|
9392
|
+
return response.text().then((_responseText) => {
|
|
9393
|
+
return;
|
|
9394
|
+
});
|
|
9395
|
+
}
|
|
9396
|
+
else if (status !== 200 && status !== 204) {
|
|
9397
|
+
return response.text().then((_responseText) => {
|
|
9398
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
9399
|
+
});
|
|
9400
|
+
}
|
|
9401
|
+
return Promise.resolve(null);
|
|
9402
|
+
}
|
|
9272
9403
|
importOperationWithTools(request) {
|
|
9273
9404
|
let url_ = this.baseUrl + "/cncsetup/import";
|
|
9274
9405
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -11402,6 +11533,52 @@ export class MesProductionOrderClient extends AuthorizedApiBase {
|
|
|
11402
11533
|
}
|
|
11403
11534
|
return Promise.resolve(null);
|
|
11404
11535
|
}
|
|
11536
|
+
listProductionOrderActivities(id, operation) {
|
|
11537
|
+
let url_ = this.baseUrl + "/mes/productionorders/{id}/activities?";
|
|
11538
|
+
if (id === undefined || id === null)
|
|
11539
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
11540
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
11541
|
+
if (operation !== undefined && operation !== null)
|
|
11542
|
+
url_ += "operation=" + encodeURIComponent("" + operation) + "&";
|
|
11543
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
11544
|
+
let options_ = {
|
|
11545
|
+
method: "GET",
|
|
11546
|
+
headers: {
|
|
11547
|
+
"Accept": "application/json"
|
|
11548
|
+
}
|
|
11549
|
+
};
|
|
11550
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
11551
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
11552
|
+
}).then((_response) => {
|
|
11553
|
+
return this.processListProductionOrderActivities(_response);
|
|
11554
|
+
});
|
|
11555
|
+
}
|
|
11556
|
+
processListProductionOrderActivities(response) {
|
|
11557
|
+
const status = response.status;
|
|
11558
|
+
let _headers = {};
|
|
11559
|
+
if (response.headers && response.headers.forEach) {
|
|
11560
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
11561
|
+
}
|
|
11562
|
+
;
|
|
11563
|
+
if (status === 200) {
|
|
11564
|
+
return response.text().then((_responseText) => {
|
|
11565
|
+
let result200 = null;
|
|
11566
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
11567
|
+
if (Array.isArray(resultData200)) {
|
|
11568
|
+
result200 = [];
|
|
11569
|
+
for (let item of resultData200)
|
|
11570
|
+
result200.push(ProductionOrderOperationActivityDto.fromJS(item));
|
|
11571
|
+
}
|
|
11572
|
+
return result200;
|
|
11573
|
+
});
|
|
11574
|
+
}
|
|
11575
|
+
else if (status !== 200 && status !== 204) {
|
|
11576
|
+
return response.text().then((_responseText) => {
|
|
11577
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
11578
|
+
});
|
|
11579
|
+
}
|
|
11580
|
+
return Promise.resolve(null);
|
|
11581
|
+
}
|
|
11405
11582
|
}
|
|
11406
11583
|
export class MesProductionScheduleClient extends AuthorizedApiBase {
|
|
11407
11584
|
constructor(configuration, baseUrl, http) {
|
|
@@ -25718,7 +25895,7 @@ export class CopyCncMachineOperationDto {
|
|
|
25718
25895
|
return data;
|
|
25719
25896
|
}
|
|
25720
25897
|
}
|
|
25721
|
-
export class
|
|
25898
|
+
export class CncToolDto {
|
|
25722
25899
|
constructor(data) {
|
|
25723
25900
|
if (data) {
|
|
25724
25901
|
for (var property in data) {
|
|
@@ -25729,32 +25906,76 @@ export class ProgramFileDto {
|
|
|
25729
25906
|
}
|
|
25730
25907
|
init(_data) {
|
|
25731
25908
|
if (_data) {
|
|
25732
|
-
this.
|
|
25733
|
-
this.
|
|
25734
|
-
this.
|
|
25735
|
-
this.
|
|
25736
|
-
this.
|
|
25737
|
-
this.
|
|
25909
|
+
this.id = _data["id"];
|
|
25910
|
+
this.toolTypeId = _data["toolTypeId"];
|
|
25911
|
+
this.toolType = _data["toolType"];
|
|
25912
|
+
this.toolSubTypeId = _data["toolSubTypeId"];
|
|
25913
|
+
this.toolSubTypeName = _data["toolSubTypeName"];
|
|
25914
|
+
this.toolNumber = _data["toolNumber"];
|
|
25915
|
+
this.toolSuffix = _data["toolSuffix"];
|
|
25916
|
+
this.description = _data["description"];
|
|
25917
|
+
this.holderDescription = _data["holderDescription"];
|
|
25918
|
+
this.geometry = _data["geometry"];
|
|
25919
|
+
this.size = _data["size"];
|
|
25920
|
+
this.diameter = _data["diameter"];
|
|
25921
|
+
this.grade = _data["grade"];
|
|
25922
|
+
this.radius = _data["radius"];
|
|
25923
|
+
this.width = _data["width"];
|
|
25924
|
+
this.pitch = _data["pitch"];
|
|
25925
|
+
this.length = _data["length"];
|
|
25926
|
+
this.kapr = _data["kapr"];
|
|
25927
|
+
this.teeth = _data["teeth"];
|
|
25928
|
+
this.stickOut = _data["stickOut"];
|
|
25929
|
+
this.apmx = _data["apmx"];
|
|
25930
|
+
this.usableLength = _data["usableLength"];
|
|
25931
|
+
if (Array.isArray(_data["images"])) {
|
|
25932
|
+
this.images = [];
|
|
25933
|
+
for (let item of _data["images"])
|
|
25934
|
+
this.images.push(ImageFileDto.fromJS(item));
|
|
25935
|
+
}
|
|
25936
|
+
this.auditInfo = _data["auditInfo"] ? CncSetupAuditDto.fromJS(_data["auditInfo"]) : undefined;
|
|
25738
25937
|
}
|
|
25739
25938
|
}
|
|
25740
25939
|
static fromJS(data) {
|
|
25741
25940
|
data = typeof data === 'object' ? data : {};
|
|
25742
|
-
let result = new
|
|
25941
|
+
let result = new CncToolDto();
|
|
25743
25942
|
result.init(data);
|
|
25744
25943
|
return result;
|
|
25745
25944
|
}
|
|
25746
25945
|
toJSON(data) {
|
|
25747
25946
|
data = typeof data === 'object' ? data : {};
|
|
25748
|
-
data["
|
|
25749
|
-
data["
|
|
25750
|
-
data["
|
|
25751
|
-
data["
|
|
25752
|
-
data["
|
|
25753
|
-
data["
|
|
25947
|
+
data["id"] = this.id;
|
|
25948
|
+
data["toolTypeId"] = this.toolTypeId;
|
|
25949
|
+
data["toolType"] = this.toolType;
|
|
25950
|
+
data["toolSubTypeId"] = this.toolSubTypeId;
|
|
25951
|
+
data["toolSubTypeName"] = this.toolSubTypeName;
|
|
25952
|
+
data["toolNumber"] = this.toolNumber;
|
|
25953
|
+
data["toolSuffix"] = this.toolSuffix;
|
|
25954
|
+
data["description"] = this.description;
|
|
25955
|
+
data["holderDescription"] = this.holderDescription;
|
|
25956
|
+
data["geometry"] = this.geometry;
|
|
25957
|
+
data["size"] = this.size;
|
|
25958
|
+
data["diameter"] = this.diameter;
|
|
25959
|
+
data["grade"] = this.grade;
|
|
25960
|
+
data["radius"] = this.radius;
|
|
25961
|
+
data["width"] = this.width;
|
|
25962
|
+
data["pitch"] = this.pitch;
|
|
25963
|
+
data["length"] = this.length;
|
|
25964
|
+
data["kapr"] = this.kapr;
|
|
25965
|
+
data["teeth"] = this.teeth;
|
|
25966
|
+
data["stickOut"] = this.stickOut;
|
|
25967
|
+
data["apmx"] = this.apmx;
|
|
25968
|
+
data["usableLength"] = this.usableLength;
|
|
25969
|
+
if (Array.isArray(this.images)) {
|
|
25970
|
+
data["images"] = [];
|
|
25971
|
+
for (let item of this.images)
|
|
25972
|
+
data["images"].push(item.toJSON());
|
|
25973
|
+
}
|
|
25974
|
+
data["auditInfo"] = this.auditInfo ? this.auditInfo.toJSON() : undefined;
|
|
25754
25975
|
return data;
|
|
25755
25976
|
}
|
|
25756
25977
|
}
|
|
25757
|
-
export class
|
|
25978
|
+
export class ImageFileDto {
|
|
25758
25979
|
constructor(data) {
|
|
25759
25980
|
if (data) {
|
|
25760
25981
|
for (var property in data) {
|
|
@@ -25765,22 +25986,26 @@ export class UpdateProgramFileRequest {
|
|
|
25765
25986
|
}
|
|
25766
25987
|
init(_data) {
|
|
25767
25988
|
if (_data) {
|
|
25768
|
-
this.
|
|
25989
|
+
this.url = _data["url"];
|
|
25990
|
+
this.name = _data["name"];
|
|
25991
|
+
this.thumbnailUrl = _data["thumbnailUrl"];
|
|
25769
25992
|
}
|
|
25770
25993
|
}
|
|
25771
25994
|
static fromJS(data) {
|
|
25772
25995
|
data = typeof data === 'object' ? data : {};
|
|
25773
|
-
let result = new
|
|
25996
|
+
let result = new ImageFileDto();
|
|
25774
25997
|
result.init(data);
|
|
25775
25998
|
return result;
|
|
25776
25999
|
}
|
|
25777
26000
|
toJSON(data) {
|
|
25778
26001
|
data = typeof data === 'object' ? data : {};
|
|
25779
|
-
data["
|
|
26002
|
+
data["url"] = this.url;
|
|
26003
|
+
data["name"] = this.name;
|
|
26004
|
+
data["thumbnailUrl"] = this.thumbnailUrl;
|
|
25780
26005
|
return data;
|
|
25781
26006
|
}
|
|
25782
26007
|
}
|
|
25783
|
-
export class
|
|
26008
|
+
export class CncSetupAuditDto {
|
|
25784
26009
|
constructor(data) {
|
|
25785
26010
|
if (data) {
|
|
25786
26011
|
for (var property in data) {
|
|
@@ -25788,25 +26013,168 @@ export class CncToolTypeDto {
|
|
|
25788
26013
|
this[property] = data[property];
|
|
25789
26014
|
}
|
|
25790
26015
|
}
|
|
25791
|
-
if (!data) {
|
|
25792
|
-
this.subTypes = [];
|
|
25793
|
-
}
|
|
25794
26016
|
}
|
|
25795
26017
|
init(_data) {
|
|
25796
26018
|
if (_data) {
|
|
25797
|
-
this.
|
|
25798
|
-
this.
|
|
25799
|
-
this.
|
|
25800
|
-
|
|
25801
|
-
|
|
25802
|
-
|
|
25803
|
-
|
|
25804
|
-
|
|
25805
|
-
}
|
|
25806
|
-
}
|
|
25807
|
-
static fromJS(data) {
|
|
25808
|
-
data = typeof data === 'object' ? data : {};
|
|
25809
|
-
let result = new
|
|
26019
|
+
this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined;
|
|
26020
|
+
this.createdBy = _data["createdBy"];
|
|
26021
|
+
this.createdById = _data["createdById"];
|
|
26022
|
+
this.createdByName = _data["createdByName"];
|
|
26023
|
+
this.updated = _data["updated"] ? new Date(_data["updated"].toString()) : undefined;
|
|
26024
|
+
this.updatedBy = _data["updatedBy"];
|
|
26025
|
+
this.updatedById = _data["updatedById"];
|
|
26026
|
+
this.updatedByName = _data["updatedByName"];
|
|
26027
|
+
}
|
|
26028
|
+
}
|
|
26029
|
+
static fromJS(data) {
|
|
26030
|
+
data = typeof data === 'object' ? data : {};
|
|
26031
|
+
let result = new CncSetupAuditDto();
|
|
26032
|
+
result.init(data);
|
|
26033
|
+
return result;
|
|
26034
|
+
}
|
|
26035
|
+
toJSON(data) {
|
|
26036
|
+
data = typeof data === 'object' ? data : {};
|
|
26037
|
+
data["created"] = this.created ? this.created.toISOString() : undefined;
|
|
26038
|
+
data["createdBy"] = this.createdBy;
|
|
26039
|
+
data["createdById"] = this.createdById;
|
|
26040
|
+
data["createdByName"] = this.createdByName;
|
|
26041
|
+
data["updated"] = this.updated ? this.updated.toISOString() : undefined;
|
|
26042
|
+
data["updatedBy"] = this.updatedBy;
|
|
26043
|
+
data["updatedById"] = this.updatedById;
|
|
26044
|
+
data["updatedByName"] = this.updatedByName;
|
|
26045
|
+
return data;
|
|
26046
|
+
}
|
|
26047
|
+
}
|
|
26048
|
+
export class CopyToolsCncMachine {
|
|
26049
|
+
constructor(data) {
|
|
26050
|
+
if (data) {
|
|
26051
|
+
for (var property in data) {
|
|
26052
|
+
if (data.hasOwnProperty(property))
|
|
26053
|
+
this[property] = data[property];
|
|
26054
|
+
}
|
|
26055
|
+
}
|
|
26056
|
+
if (!data) {
|
|
26057
|
+
this.toolsIds = [];
|
|
26058
|
+
}
|
|
26059
|
+
}
|
|
26060
|
+
init(_data) {
|
|
26061
|
+
if (_data) {
|
|
26062
|
+
this.sourceMachineId = _data["sourceMachineId"];
|
|
26063
|
+
this.targetOperationId = _data["targetOperationId"];
|
|
26064
|
+
if (Array.isArray(_data["toolsIds"])) {
|
|
26065
|
+
this.toolsIds = [];
|
|
26066
|
+
for (let item of _data["toolsIds"])
|
|
26067
|
+
this.toolsIds.push(item);
|
|
26068
|
+
}
|
|
26069
|
+
}
|
|
26070
|
+
}
|
|
26071
|
+
static fromJS(data) {
|
|
26072
|
+
data = typeof data === 'object' ? data : {};
|
|
26073
|
+
let result = new CopyToolsCncMachine();
|
|
26074
|
+
result.init(data);
|
|
26075
|
+
return result;
|
|
26076
|
+
}
|
|
26077
|
+
toJSON(data) {
|
|
26078
|
+
data = typeof data === 'object' ? data : {};
|
|
26079
|
+
data["sourceMachineId"] = this.sourceMachineId;
|
|
26080
|
+
data["targetOperationId"] = this.targetOperationId;
|
|
26081
|
+
if (Array.isArray(this.toolsIds)) {
|
|
26082
|
+
data["toolsIds"] = [];
|
|
26083
|
+
for (let item of this.toolsIds)
|
|
26084
|
+
data["toolsIds"].push(item);
|
|
26085
|
+
}
|
|
26086
|
+
return data;
|
|
26087
|
+
}
|
|
26088
|
+
}
|
|
26089
|
+
export class ProgramFileDto {
|
|
26090
|
+
constructor(data) {
|
|
26091
|
+
if (data) {
|
|
26092
|
+
for (var property in data) {
|
|
26093
|
+
if (data.hasOwnProperty(property))
|
|
26094
|
+
this[property] = data[property];
|
|
26095
|
+
}
|
|
26096
|
+
}
|
|
26097
|
+
}
|
|
26098
|
+
init(_data) {
|
|
26099
|
+
if (_data) {
|
|
26100
|
+
this.name = _data["name"];
|
|
26101
|
+
this.version = _data["version"];
|
|
26102
|
+
this.uploadStatus = _data["uploadStatus"];
|
|
26103
|
+
this.url = _data["url"];
|
|
26104
|
+
this.timestamp = _data["timestamp"] ? new Date(_data["timestamp"].toString()) : undefined;
|
|
26105
|
+
this.fileSize = _data["fileSize"];
|
|
26106
|
+
}
|
|
26107
|
+
}
|
|
26108
|
+
static fromJS(data) {
|
|
26109
|
+
data = typeof data === 'object' ? data : {};
|
|
26110
|
+
let result = new ProgramFileDto();
|
|
26111
|
+
result.init(data);
|
|
26112
|
+
return result;
|
|
26113
|
+
}
|
|
26114
|
+
toJSON(data) {
|
|
26115
|
+
data = typeof data === 'object' ? data : {};
|
|
26116
|
+
data["name"] = this.name;
|
|
26117
|
+
data["version"] = this.version;
|
|
26118
|
+
data["uploadStatus"] = this.uploadStatus;
|
|
26119
|
+
data["url"] = this.url;
|
|
26120
|
+
data["timestamp"] = this.timestamp ? this.timestamp.toISOString() : undefined;
|
|
26121
|
+
data["fileSize"] = this.fileSize;
|
|
26122
|
+
return data;
|
|
26123
|
+
}
|
|
26124
|
+
}
|
|
26125
|
+
export class UpdateProgramFileRequest {
|
|
26126
|
+
constructor(data) {
|
|
26127
|
+
if (data) {
|
|
26128
|
+
for (var property in data) {
|
|
26129
|
+
if (data.hasOwnProperty(property))
|
|
26130
|
+
this[property] = data[property];
|
|
26131
|
+
}
|
|
26132
|
+
}
|
|
26133
|
+
}
|
|
26134
|
+
init(_data) {
|
|
26135
|
+
if (_data) {
|
|
26136
|
+
this.deleted = _data["deleted"];
|
|
26137
|
+
}
|
|
26138
|
+
}
|
|
26139
|
+
static fromJS(data) {
|
|
26140
|
+
data = typeof data === 'object' ? data : {};
|
|
26141
|
+
let result = new UpdateProgramFileRequest();
|
|
26142
|
+
result.init(data);
|
|
26143
|
+
return result;
|
|
26144
|
+
}
|
|
26145
|
+
toJSON(data) {
|
|
26146
|
+
data = typeof data === 'object' ? data : {};
|
|
26147
|
+
data["deleted"] = this.deleted;
|
|
26148
|
+
return data;
|
|
26149
|
+
}
|
|
26150
|
+
}
|
|
26151
|
+
export class CncToolTypeDto {
|
|
26152
|
+
constructor(data) {
|
|
26153
|
+
if (data) {
|
|
26154
|
+
for (var property in data) {
|
|
26155
|
+
if (data.hasOwnProperty(property))
|
|
26156
|
+
this[property] = data[property];
|
|
26157
|
+
}
|
|
26158
|
+
}
|
|
26159
|
+
if (!data) {
|
|
26160
|
+
this.subTypes = [];
|
|
26161
|
+
}
|
|
26162
|
+
}
|
|
26163
|
+
init(_data) {
|
|
26164
|
+
if (_data) {
|
|
26165
|
+
this.id = _data["id"];
|
|
26166
|
+
this.name = _data["name"];
|
|
26167
|
+
this.imageUrl = _data["imageUrl"];
|
|
26168
|
+
if (Array.isArray(_data["subTypes"])) {
|
|
26169
|
+
this.subTypes = [];
|
|
26170
|
+
for (let item of _data["subTypes"])
|
|
26171
|
+
this.subTypes.push(CncToolSubTypeDto.fromJS(item));
|
|
26172
|
+
}
|
|
26173
|
+
}
|
|
26174
|
+
}
|
|
26175
|
+
static fromJS(data) {
|
|
26176
|
+
data = typeof data === 'object' ? data : {};
|
|
26177
|
+
let result = new CncToolTypeDto();
|
|
25810
26178
|
result.init(data);
|
|
25811
26179
|
return result;
|
|
25812
26180
|
}
|
|
@@ -25913,156 +26281,6 @@ export class CncToolSubTypeDto {
|
|
|
25913
26281
|
return data;
|
|
25914
26282
|
}
|
|
25915
26283
|
}
|
|
25916
|
-
export class CncToolDto {
|
|
25917
|
-
constructor(data) {
|
|
25918
|
-
if (data) {
|
|
25919
|
-
for (var property in data) {
|
|
25920
|
-
if (data.hasOwnProperty(property))
|
|
25921
|
-
this[property] = data[property];
|
|
25922
|
-
}
|
|
25923
|
-
}
|
|
25924
|
-
}
|
|
25925
|
-
init(_data) {
|
|
25926
|
-
if (_data) {
|
|
25927
|
-
this.id = _data["id"];
|
|
25928
|
-
this.toolTypeId = _data["toolTypeId"];
|
|
25929
|
-
this.toolType = _data["toolType"];
|
|
25930
|
-
this.toolSubTypeId = _data["toolSubTypeId"];
|
|
25931
|
-
this.toolSubTypeName = _data["toolSubTypeName"];
|
|
25932
|
-
this.toolNumber = _data["toolNumber"];
|
|
25933
|
-
this.toolSuffix = _data["toolSuffix"];
|
|
25934
|
-
this.description = _data["description"];
|
|
25935
|
-
this.holderDescription = _data["holderDescription"];
|
|
25936
|
-
this.geometry = _data["geometry"];
|
|
25937
|
-
this.size = _data["size"];
|
|
25938
|
-
this.diameter = _data["diameter"];
|
|
25939
|
-
this.grade = _data["grade"];
|
|
25940
|
-
this.radius = _data["radius"];
|
|
25941
|
-
this.width = _data["width"];
|
|
25942
|
-
this.pitch = _data["pitch"];
|
|
25943
|
-
this.length = _data["length"];
|
|
25944
|
-
this.kapr = _data["kapr"];
|
|
25945
|
-
this.teeth = _data["teeth"];
|
|
25946
|
-
this.stickOut = _data["stickOut"];
|
|
25947
|
-
this.apmx = _data["apmx"];
|
|
25948
|
-
this.usableLength = _data["usableLength"];
|
|
25949
|
-
if (Array.isArray(_data["images"])) {
|
|
25950
|
-
this.images = [];
|
|
25951
|
-
for (let item of _data["images"])
|
|
25952
|
-
this.images.push(ImageFileDto.fromJS(item));
|
|
25953
|
-
}
|
|
25954
|
-
this.auditInfo = _data["auditInfo"] ? CncSetupAuditDto.fromJS(_data["auditInfo"]) : undefined;
|
|
25955
|
-
}
|
|
25956
|
-
}
|
|
25957
|
-
static fromJS(data) {
|
|
25958
|
-
data = typeof data === 'object' ? data : {};
|
|
25959
|
-
let result = new CncToolDto();
|
|
25960
|
-
result.init(data);
|
|
25961
|
-
return result;
|
|
25962
|
-
}
|
|
25963
|
-
toJSON(data) {
|
|
25964
|
-
data = typeof data === 'object' ? data : {};
|
|
25965
|
-
data["id"] = this.id;
|
|
25966
|
-
data["toolTypeId"] = this.toolTypeId;
|
|
25967
|
-
data["toolType"] = this.toolType;
|
|
25968
|
-
data["toolSubTypeId"] = this.toolSubTypeId;
|
|
25969
|
-
data["toolSubTypeName"] = this.toolSubTypeName;
|
|
25970
|
-
data["toolNumber"] = this.toolNumber;
|
|
25971
|
-
data["toolSuffix"] = this.toolSuffix;
|
|
25972
|
-
data["description"] = this.description;
|
|
25973
|
-
data["holderDescription"] = this.holderDescription;
|
|
25974
|
-
data["geometry"] = this.geometry;
|
|
25975
|
-
data["size"] = this.size;
|
|
25976
|
-
data["diameter"] = this.diameter;
|
|
25977
|
-
data["grade"] = this.grade;
|
|
25978
|
-
data["radius"] = this.radius;
|
|
25979
|
-
data["width"] = this.width;
|
|
25980
|
-
data["pitch"] = this.pitch;
|
|
25981
|
-
data["length"] = this.length;
|
|
25982
|
-
data["kapr"] = this.kapr;
|
|
25983
|
-
data["teeth"] = this.teeth;
|
|
25984
|
-
data["stickOut"] = this.stickOut;
|
|
25985
|
-
data["apmx"] = this.apmx;
|
|
25986
|
-
data["usableLength"] = this.usableLength;
|
|
25987
|
-
if (Array.isArray(this.images)) {
|
|
25988
|
-
data["images"] = [];
|
|
25989
|
-
for (let item of this.images)
|
|
25990
|
-
data["images"].push(item.toJSON());
|
|
25991
|
-
}
|
|
25992
|
-
data["auditInfo"] = this.auditInfo ? this.auditInfo.toJSON() : undefined;
|
|
25993
|
-
return data;
|
|
25994
|
-
}
|
|
25995
|
-
}
|
|
25996
|
-
export class ImageFileDto {
|
|
25997
|
-
constructor(data) {
|
|
25998
|
-
if (data) {
|
|
25999
|
-
for (var property in data) {
|
|
26000
|
-
if (data.hasOwnProperty(property))
|
|
26001
|
-
this[property] = data[property];
|
|
26002
|
-
}
|
|
26003
|
-
}
|
|
26004
|
-
}
|
|
26005
|
-
init(_data) {
|
|
26006
|
-
if (_data) {
|
|
26007
|
-
this.url = _data["url"];
|
|
26008
|
-
this.name = _data["name"];
|
|
26009
|
-
this.thumbnailUrl = _data["thumbnailUrl"];
|
|
26010
|
-
}
|
|
26011
|
-
}
|
|
26012
|
-
static fromJS(data) {
|
|
26013
|
-
data = typeof data === 'object' ? data : {};
|
|
26014
|
-
let result = new ImageFileDto();
|
|
26015
|
-
result.init(data);
|
|
26016
|
-
return result;
|
|
26017
|
-
}
|
|
26018
|
-
toJSON(data) {
|
|
26019
|
-
data = typeof data === 'object' ? data : {};
|
|
26020
|
-
data["url"] = this.url;
|
|
26021
|
-
data["name"] = this.name;
|
|
26022
|
-
data["thumbnailUrl"] = this.thumbnailUrl;
|
|
26023
|
-
return data;
|
|
26024
|
-
}
|
|
26025
|
-
}
|
|
26026
|
-
export class CncSetupAuditDto {
|
|
26027
|
-
constructor(data) {
|
|
26028
|
-
if (data) {
|
|
26029
|
-
for (var property in data) {
|
|
26030
|
-
if (data.hasOwnProperty(property))
|
|
26031
|
-
this[property] = data[property];
|
|
26032
|
-
}
|
|
26033
|
-
}
|
|
26034
|
-
}
|
|
26035
|
-
init(_data) {
|
|
26036
|
-
if (_data) {
|
|
26037
|
-
this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined;
|
|
26038
|
-
this.createdBy = _data["createdBy"];
|
|
26039
|
-
this.createdById = _data["createdById"];
|
|
26040
|
-
this.createdByName = _data["createdByName"];
|
|
26041
|
-
this.updated = _data["updated"] ? new Date(_data["updated"].toString()) : undefined;
|
|
26042
|
-
this.updatedBy = _data["updatedBy"];
|
|
26043
|
-
this.updatedById = _data["updatedById"];
|
|
26044
|
-
this.updatedByName = _data["updatedByName"];
|
|
26045
|
-
}
|
|
26046
|
-
}
|
|
26047
|
-
static fromJS(data) {
|
|
26048
|
-
data = typeof data === 'object' ? data : {};
|
|
26049
|
-
let result = new CncSetupAuditDto();
|
|
26050
|
-
result.init(data);
|
|
26051
|
-
return result;
|
|
26052
|
-
}
|
|
26053
|
-
toJSON(data) {
|
|
26054
|
-
data = typeof data === 'object' ? data : {};
|
|
26055
|
-
data["created"] = this.created ? this.created.toISOString() : undefined;
|
|
26056
|
-
data["createdBy"] = this.createdBy;
|
|
26057
|
-
data["createdById"] = this.createdById;
|
|
26058
|
-
data["createdByName"] = this.createdByName;
|
|
26059
|
-
data["updated"] = this.updated ? this.updated.toISOString() : undefined;
|
|
26060
|
-
data["updatedBy"] = this.updatedBy;
|
|
26061
|
-
data["updatedById"] = this.updatedById;
|
|
26062
|
-
data["updatedByName"] = this.updatedByName;
|
|
26063
|
-
return data;
|
|
26064
|
-
}
|
|
26065
|
-
}
|
|
26066
26284
|
export class CreateCncMachineOperationToolRequest {
|
|
26067
26285
|
constructor(data) {
|
|
26068
26286
|
if (data) {
|
|
@@ -28356,6 +28574,54 @@ export class PickListMaterialLineDto {
|
|
|
28356
28574
|
return data;
|
|
28357
28575
|
}
|
|
28358
28576
|
}
|
|
28577
|
+
export class ProductionOrderOperationActivityDto {
|
|
28578
|
+
constructor(data) {
|
|
28579
|
+
if (data) {
|
|
28580
|
+
for (var property in data) {
|
|
28581
|
+
if (data.hasOwnProperty(property))
|
|
28582
|
+
this[property] = data[property];
|
|
28583
|
+
}
|
|
28584
|
+
}
|
|
28585
|
+
}
|
|
28586
|
+
init(_data) {
|
|
28587
|
+
if (_data) {
|
|
28588
|
+
this.operation = _data["operation"];
|
|
28589
|
+
this.operationId = _data["operationId"];
|
|
28590
|
+
this.description = _data["description"];
|
|
28591
|
+
this.resource = _data["resource"] ? ResourceDto.fromJS(_data["resource"]) : undefined;
|
|
28592
|
+
this.user = _data["user"] ? UserDto.fromJS(_data["user"]) : undefined;
|
|
28593
|
+
this.startTime = _data["startTime"] ? new Date(_data["startTime"].toString()) : undefined;
|
|
28594
|
+
this.endTime = _data["endTime"] ? new Date(_data["endTime"].toString()) : undefined;
|
|
28595
|
+
this.status = _data["status"];
|
|
28596
|
+
this.active = _data["active"];
|
|
28597
|
+
this.startedQuantity = _data["startedQuantity"];
|
|
28598
|
+
this.producedQuantity = _data["producedQuantity"];
|
|
28599
|
+
this.scrappedQuantity = _data["scrappedQuantity"];
|
|
28600
|
+
}
|
|
28601
|
+
}
|
|
28602
|
+
static fromJS(data) {
|
|
28603
|
+
data = typeof data === 'object' ? data : {};
|
|
28604
|
+
let result = new ProductionOrderOperationActivityDto();
|
|
28605
|
+
result.init(data);
|
|
28606
|
+
return result;
|
|
28607
|
+
}
|
|
28608
|
+
toJSON(data) {
|
|
28609
|
+
data = typeof data === 'object' ? data : {};
|
|
28610
|
+
data["operation"] = this.operation;
|
|
28611
|
+
data["operationId"] = this.operationId;
|
|
28612
|
+
data["description"] = this.description;
|
|
28613
|
+
data["resource"] = this.resource ? this.resource.toJSON() : undefined;
|
|
28614
|
+
data["user"] = this.user ? this.user.toJSON() : undefined;
|
|
28615
|
+
data["startTime"] = this.startTime ? this.startTime.toISOString() : undefined;
|
|
28616
|
+
data["endTime"] = this.endTime ? this.endTime.toISOString() : undefined;
|
|
28617
|
+
data["status"] = this.status;
|
|
28618
|
+
data["active"] = this.active;
|
|
28619
|
+
data["startedQuantity"] = this.startedQuantity;
|
|
28620
|
+
data["producedQuantity"] = this.producedQuantity;
|
|
28621
|
+
data["scrappedQuantity"] = this.scrappedQuantity;
|
|
28622
|
+
return data;
|
|
28623
|
+
}
|
|
28624
|
+
}
|
|
28359
28625
|
export class PagedResultOfProductionScheduleOperationDto {
|
|
28360
28626
|
constructor(data) {
|
|
28361
28627
|
if (data) {
|