@ignos/api-client 20250328.0.11444 → 20250402.0.11467
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 +38 -14
- package/lib/ignosportal-api.js +93 -17
- package/package.json +1 -1
- package/src/ignosportal-api.ts +130 -30
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -1205,6 +1205,7 @@ export interface ICncSetupClient {
|
|
|
1205
1205
|
uploadCncMachineToolImage(machineId: string, id: number, request: UploadCncToolImageRequest): Promise<ImageFileDto>;
|
|
1206
1206
|
deleteCncMachineToolImage(machineId: string, id: number, filename: string): Promise<void>;
|
|
1207
1207
|
importOperationWithTools(request: ImportOperationWithTool): Promise<void>;
|
|
1208
|
+
copyTool(command: CopyCncTool): Promise<CncToolDto>;
|
|
1208
1209
|
}
|
|
1209
1210
|
export declare class CncSetupClient extends AuthorizedApiBase implements ICncSetupClient {
|
|
1210
1211
|
private http;
|
|
@@ -1317,6 +1318,8 @@ export declare class CncSetupClient extends AuthorizedApiBase implements ICncSet
|
|
|
1317
1318
|
protected processDeleteCncMachineToolImage(response: Response): Promise<void>;
|
|
1318
1319
|
importOperationWithTools(request: ImportOperationWithTool): Promise<void>;
|
|
1319
1320
|
protected processImportOperationWithTools(response: Response): Promise<void>;
|
|
1321
|
+
copyTool(command: CopyCncTool): Promise<CncToolDto>;
|
|
1322
|
+
protected processCopyTool(response: Response): Promise<CncToolDto>;
|
|
1320
1323
|
}
|
|
1321
1324
|
export interface IOperatorCalculatorsClient {
|
|
1322
1325
|
/**
|
|
@@ -7608,6 +7611,7 @@ export declare class CncToolDto implements ICncToolDto {
|
|
|
7608
7611
|
toolSubTypeName: string;
|
|
7609
7612
|
toolNumber?: string | null;
|
|
7610
7613
|
toolSuffix?: string | null;
|
|
7614
|
+
cncMachineId?: string | null;
|
|
7611
7615
|
description?: string | null;
|
|
7612
7616
|
holderDescription?: string | null;
|
|
7613
7617
|
geometry?: string | null;
|
|
@@ -7639,6 +7643,7 @@ export interface ICncToolDto {
|
|
|
7639
7643
|
toolSubTypeName: string;
|
|
7640
7644
|
toolNumber?: string | null;
|
|
7641
7645
|
toolSuffix?: string | null;
|
|
7646
|
+
cncMachineId?: string | null;
|
|
7642
7647
|
description?: string | null;
|
|
7643
7648
|
holderDescription?: string | null;
|
|
7644
7649
|
geometry?: string | null;
|
|
@@ -8069,6 +8074,27 @@ export interface IImportToolDto {
|
|
|
8069
8074
|
usableLength?: number | null;
|
|
8070
8075
|
auditInfo: CncSetupAuditDto;
|
|
8071
8076
|
}
|
|
8077
|
+
export declare class CopyCncTool implements ICopyCncTool {
|
|
8078
|
+
toolId: number;
|
|
8079
|
+
targetOperationId?: string | null;
|
|
8080
|
+
targetMachineId?: string | null;
|
|
8081
|
+
sourceOperationId?: string | null;
|
|
8082
|
+
sourceMachineId?: string | null;
|
|
8083
|
+
originType: ToolOriginType;
|
|
8084
|
+
constructor(data?: ICopyCncTool);
|
|
8085
|
+
init(_data?: any): void;
|
|
8086
|
+
static fromJS(data: any): CopyCncTool;
|
|
8087
|
+
toJSON(data?: any): any;
|
|
8088
|
+
}
|
|
8089
|
+
export interface ICopyCncTool {
|
|
8090
|
+
toolId: number;
|
|
8091
|
+
targetOperationId?: string | null;
|
|
8092
|
+
targetMachineId?: string | null;
|
|
8093
|
+
sourceOperationId?: string | null;
|
|
8094
|
+
sourceMachineId?: string | null;
|
|
8095
|
+
originType: ToolOriginType;
|
|
8096
|
+
}
|
|
8097
|
+
export type ToolOriginType = "Operation" | "Machine";
|
|
8072
8098
|
export declare class SpindleAndCuttingSpeedDto implements ISpindleAndCuttingSpeedDto {
|
|
8073
8099
|
diameter: number;
|
|
8074
8100
|
cuttingSpeed: number;
|
|
@@ -11104,7 +11130,7 @@ export declare class CopyMeasurementFormSchema implements ICopyMeasurementFormSc
|
|
|
11104
11130
|
partNumber?: string | null;
|
|
11105
11131
|
partRevision?: string | null;
|
|
11106
11132
|
partName?: string | null;
|
|
11107
|
-
drawing
|
|
11133
|
+
drawing: string;
|
|
11108
11134
|
drawingRevision?: string | null;
|
|
11109
11135
|
includeFiles: boolean;
|
|
11110
11136
|
includeLinkedSchemas: boolean;
|
|
@@ -11120,7 +11146,7 @@ export interface ICopyMeasurementFormSchema {
|
|
|
11120
11146
|
partNumber?: string | null;
|
|
11121
11147
|
partRevision?: string | null;
|
|
11122
11148
|
partName?: string | null;
|
|
11123
|
-
drawing
|
|
11149
|
+
drawing: string;
|
|
11124
11150
|
drawingRevision?: string | null;
|
|
11125
11151
|
includeFiles: boolean;
|
|
11126
11152
|
includeLinkedSchemas: boolean;
|
|
@@ -12399,7 +12425,7 @@ export declare class CreateMeasurementFormInstanceRequest implements ICreateMeas
|
|
|
12399
12425
|
customerId?: string | null;
|
|
12400
12426
|
customerName?: string | null;
|
|
12401
12427
|
purchaseOrder?: string | null;
|
|
12402
|
-
|
|
12428
|
+
sequences: CreateMeasurementFormInstanceRequestSequence[];
|
|
12403
12429
|
constructor(data?: ICreateMeasurementFormInstanceRequest);
|
|
12404
12430
|
init(_data?: any): void;
|
|
12405
12431
|
static fromJS(data: any): CreateMeasurementFormInstanceRequest;
|
|
@@ -12410,21 +12436,19 @@ export interface ICreateMeasurementFormInstanceRequest {
|
|
|
12410
12436
|
customerId?: string | null;
|
|
12411
12437
|
customerName?: string | null;
|
|
12412
12438
|
purchaseOrder?: string | null;
|
|
12413
|
-
|
|
12439
|
+
sequences: CreateMeasurementFormInstanceRequestSequence[];
|
|
12414
12440
|
}
|
|
12415
|
-
export declare class
|
|
12416
|
-
|
|
12417
|
-
|
|
12418
|
-
|
|
12419
|
-
constructor(data?: ICreateMeasurementFormInstanceRequestSeries);
|
|
12441
|
+
export declare class CreateMeasurementFormInstanceRequestSequence implements ICreateMeasurementFormInstanceRequestSequence {
|
|
12442
|
+
sequenceNumber: string;
|
|
12443
|
+
serialNumber?: string | null;
|
|
12444
|
+
constructor(data?: ICreateMeasurementFormInstanceRequestSequence);
|
|
12420
12445
|
init(_data?: any): void;
|
|
12421
|
-
static fromJS(data: any):
|
|
12446
|
+
static fromJS(data: any): CreateMeasurementFormInstanceRequestSequence;
|
|
12422
12447
|
toJSON(data?: any): any;
|
|
12423
12448
|
}
|
|
12424
|
-
export interface
|
|
12425
|
-
|
|
12426
|
-
|
|
12427
|
-
qty: number;
|
|
12449
|
+
export interface ICreateMeasurementFormInstanceRequestSequence {
|
|
12450
|
+
sequenceNumber: string;
|
|
12451
|
+
serialNumber?: string | null;
|
|
12428
12452
|
}
|
|
12429
12453
|
export declare class UpdateMeasurementFormInstanceRequest implements IUpdateMeasurementFormInstanceRequest {
|
|
12430
12454
|
sequences: MeasurementFormWorkorderSequenceDto[];
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -11153,6 +11153,46 @@ export class CncSetupClient extends AuthorizedApiBase {
|
|
|
11153
11153
|
}
|
|
11154
11154
|
return Promise.resolve(null);
|
|
11155
11155
|
}
|
|
11156
|
+
copyTool(command) {
|
|
11157
|
+
let url_ = this.baseUrl + "/cncsetup/tools/copy";
|
|
11158
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
11159
|
+
const content_ = JSON.stringify(command);
|
|
11160
|
+
let options_ = {
|
|
11161
|
+
body: content_,
|
|
11162
|
+
method: "POST",
|
|
11163
|
+
headers: {
|
|
11164
|
+
"Content-Type": "application/json",
|
|
11165
|
+
"Accept": "application/json"
|
|
11166
|
+
}
|
|
11167
|
+
};
|
|
11168
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
11169
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
11170
|
+
}).then((_response) => {
|
|
11171
|
+
return this.processCopyTool(_response);
|
|
11172
|
+
});
|
|
11173
|
+
}
|
|
11174
|
+
processCopyTool(response) {
|
|
11175
|
+
const status = response.status;
|
|
11176
|
+
let _headers = {};
|
|
11177
|
+
if (response.headers && response.headers.forEach) {
|
|
11178
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
11179
|
+
}
|
|
11180
|
+
;
|
|
11181
|
+
if (status === 200) {
|
|
11182
|
+
return response.text().then((_responseText) => {
|
|
11183
|
+
let result200 = null;
|
|
11184
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
11185
|
+
result200 = CncToolDto.fromJS(resultData200);
|
|
11186
|
+
return result200;
|
|
11187
|
+
});
|
|
11188
|
+
}
|
|
11189
|
+
else if (status !== 200 && status !== 204) {
|
|
11190
|
+
return response.text().then((_responseText) => {
|
|
11191
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
11192
|
+
});
|
|
11193
|
+
}
|
|
11194
|
+
return Promise.resolve(null);
|
|
11195
|
+
}
|
|
11156
11196
|
}
|
|
11157
11197
|
export class OperatorCalculatorsClient extends AuthorizedApiBase {
|
|
11158
11198
|
constructor(configuration, baseUrl, http) {
|
|
@@ -31742,6 +31782,7 @@ export class CncToolDto {
|
|
|
31742
31782
|
this.toolSubTypeName = _data["toolSubTypeName"];
|
|
31743
31783
|
this.toolNumber = _data["toolNumber"];
|
|
31744
31784
|
this.toolSuffix = _data["toolSuffix"];
|
|
31785
|
+
this.cncMachineId = _data["cncMachineId"];
|
|
31745
31786
|
this.description = _data["description"];
|
|
31746
31787
|
this.holderDescription = _data["holderDescription"];
|
|
31747
31788
|
this.geometry = _data["geometry"];
|
|
@@ -31781,6 +31822,7 @@ export class CncToolDto {
|
|
|
31781
31822
|
data["toolSubTypeName"] = this.toolSubTypeName;
|
|
31782
31823
|
data["toolNumber"] = this.toolNumber;
|
|
31783
31824
|
data["toolSuffix"] = this.toolSuffix;
|
|
31825
|
+
data["cncMachineId"] = this.cncMachineId;
|
|
31784
31826
|
data["description"] = this.description;
|
|
31785
31827
|
data["holderDescription"] = this.holderDescription;
|
|
31786
31828
|
data["geometry"] = this.geometry;
|
|
@@ -32473,6 +32515,42 @@ export class ImportToolDto {
|
|
|
32473
32515
|
return data;
|
|
32474
32516
|
}
|
|
32475
32517
|
}
|
|
32518
|
+
export class CopyCncTool {
|
|
32519
|
+
constructor(data) {
|
|
32520
|
+
if (data) {
|
|
32521
|
+
for (var property in data) {
|
|
32522
|
+
if (data.hasOwnProperty(property))
|
|
32523
|
+
this[property] = data[property];
|
|
32524
|
+
}
|
|
32525
|
+
}
|
|
32526
|
+
}
|
|
32527
|
+
init(_data) {
|
|
32528
|
+
if (_data) {
|
|
32529
|
+
this.toolId = _data["toolId"];
|
|
32530
|
+
this.targetOperationId = _data["targetOperationId"];
|
|
32531
|
+
this.targetMachineId = _data["targetMachineId"];
|
|
32532
|
+
this.sourceOperationId = _data["sourceOperationId"];
|
|
32533
|
+
this.sourceMachineId = _data["sourceMachineId"];
|
|
32534
|
+
this.originType = _data["originType"];
|
|
32535
|
+
}
|
|
32536
|
+
}
|
|
32537
|
+
static fromJS(data) {
|
|
32538
|
+
data = typeof data === 'object' ? data : {};
|
|
32539
|
+
let result = new CopyCncTool();
|
|
32540
|
+
result.init(data);
|
|
32541
|
+
return result;
|
|
32542
|
+
}
|
|
32543
|
+
toJSON(data) {
|
|
32544
|
+
data = typeof data === 'object' ? data : {};
|
|
32545
|
+
data["toolId"] = this.toolId;
|
|
32546
|
+
data["targetOperationId"] = this.targetOperationId;
|
|
32547
|
+
data["targetMachineId"] = this.targetMachineId;
|
|
32548
|
+
data["sourceOperationId"] = this.sourceOperationId;
|
|
32549
|
+
data["sourceMachineId"] = this.sourceMachineId;
|
|
32550
|
+
data["originType"] = this.originType;
|
|
32551
|
+
return data;
|
|
32552
|
+
}
|
|
32553
|
+
}
|
|
32476
32554
|
export class SpindleAndCuttingSpeedDto {
|
|
32477
32555
|
constructor(data) {
|
|
32478
32556
|
if (data) {
|
|
@@ -41182,7 +41260,7 @@ export class CreateMeasurementFormInstanceRequest {
|
|
|
41182
41260
|
}
|
|
41183
41261
|
}
|
|
41184
41262
|
if (!data) {
|
|
41185
|
-
this.
|
|
41263
|
+
this.sequences = [];
|
|
41186
41264
|
}
|
|
41187
41265
|
}
|
|
41188
41266
|
init(_data) {
|
|
@@ -41191,10 +41269,10 @@ export class CreateMeasurementFormInstanceRequest {
|
|
|
41191
41269
|
this.customerId = _data["customerId"];
|
|
41192
41270
|
this.customerName = _data["customerName"];
|
|
41193
41271
|
this.purchaseOrder = _data["purchaseOrder"];
|
|
41194
|
-
if (Array.isArray(_data["
|
|
41195
|
-
this.
|
|
41196
|
-
for (let item of _data["
|
|
41197
|
-
this.
|
|
41272
|
+
if (Array.isArray(_data["sequences"])) {
|
|
41273
|
+
this.sequences = [];
|
|
41274
|
+
for (let item of _data["sequences"])
|
|
41275
|
+
this.sequences.push(CreateMeasurementFormInstanceRequestSequence.fromJS(item));
|
|
41198
41276
|
}
|
|
41199
41277
|
}
|
|
41200
41278
|
}
|
|
@@ -41210,15 +41288,15 @@ export class CreateMeasurementFormInstanceRequest {
|
|
|
41210
41288
|
data["customerId"] = this.customerId;
|
|
41211
41289
|
data["customerName"] = this.customerName;
|
|
41212
41290
|
data["purchaseOrder"] = this.purchaseOrder;
|
|
41213
|
-
if (Array.isArray(this.
|
|
41214
|
-
data["
|
|
41215
|
-
for (let item of this.
|
|
41216
|
-
data["
|
|
41291
|
+
if (Array.isArray(this.sequences)) {
|
|
41292
|
+
data["sequences"] = [];
|
|
41293
|
+
for (let item of this.sequences)
|
|
41294
|
+
data["sequences"].push(item.toJSON());
|
|
41217
41295
|
}
|
|
41218
41296
|
return data;
|
|
41219
41297
|
}
|
|
41220
41298
|
}
|
|
41221
|
-
export class
|
|
41299
|
+
export class CreateMeasurementFormInstanceRequestSequence {
|
|
41222
41300
|
constructor(data) {
|
|
41223
41301
|
if (data) {
|
|
41224
41302
|
for (var property in data) {
|
|
@@ -41229,22 +41307,20 @@ export class CreateMeasurementFormInstanceRequestSeries {
|
|
|
41229
41307
|
}
|
|
41230
41308
|
init(_data) {
|
|
41231
41309
|
if (_data) {
|
|
41232
|
-
this.
|
|
41233
|
-
this.
|
|
41234
|
-
this.qty = _data["qty"];
|
|
41310
|
+
this.sequenceNumber = _data["sequenceNumber"];
|
|
41311
|
+
this.serialNumber = _data["serialNumber"];
|
|
41235
41312
|
}
|
|
41236
41313
|
}
|
|
41237
41314
|
static fromJS(data) {
|
|
41238
41315
|
data = typeof data === 'object' ? data : {};
|
|
41239
|
-
let result = new
|
|
41316
|
+
let result = new CreateMeasurementFormInstanceRequestSequence();
|
|
41240
41317
|
result.init(data);
|
|
41241
41318
|
return result;
|
|
41242
41319
|
}
|
|
41243
41320
|
toJSON(data) {
|
|
41244
41321
|
data = typeof data === 'object' ? data : {};
|
|
41245
|
-
data["
|
|
41246
|
-
data["
|
|
41247
|
-
data["qty"] = this.qty;
|
|
41322
|
+
data["sequenceNumber"] = this.sequenceNumber;
|
|
41323
|
+
data["serialNumber"] = this.serialNumber;
|
|
41248
41324
|
return data;
|
|
41249
41325
|
}
|
|
41250
41326
|
}
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -9709,6 +9709,8 @@ export interface ICncSetupClient {
|
|
|
9709
9709
|
deleteCncMachineToolImage(machineId: string, id: number, filename: string): Promise<void>;
|
|
9710
9710
|
|
|
9711
9711
|
importOperationWithTools(request: ImportOperationWithTool): Promise<void>;
|
|
9712
|
+
|
|
9713
|
+
copyTool(command: CopyCncTool): Promise<CncToolDto>;
|
|
9712
9714
|
}
|
|
9713
9715
|
|
|
9714
9716
|
export class CncSetupClient extends AuthorizedApiBase implements ICncSetupClient {
|
|
@@ -11887,6 +11889,46 @@ export class CncSetupClient extends AuthorizedApiBase implements ICncSetupClient
|
|
|
11887
11889
|
}
|
|
11888
11890
|
return Promise.resolve<void>(null as any);
|
|
11889
11891
|
}
|
|
11892
|
+
|
|
11893
|
+
copyTool(command: CopyCncTool): Promise<CncToolDto> {
|
|
11894
|
+
let url_ = this.baseUrl + "/cncsetup/tools/copy";
|
|
11895
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
11896
|
+
|
|
11897
|
+
const content_ = JSON.stringify(command);
|
|
11898
|
+
|
|
11899
|
+
let options_: RequestInit = {
|
|
11900
|
+
body: content_,
|
|
11901
|
+
method: "POST",
|
|
11902
|
+
headers: {
|
|
11903
|
+
"Content-Type": "application/json",
|
|
11904
|
+
"Accept": "application/json"
|
|
11905
|
+
}
|
|
11906
|
+
};
|
|
11907
|
+
|
|
11908
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
11909
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
11910
|
+
}).then((_response: Response) => {
|
|
11911
|
+
return this.processCopyTool(_response);
|
|
11912
|
+
});
|
|
11913
|
+
}
|
|
11914
|
+
|
|
11915
|
+
protected processCopyTool(response: Response): Promise<CncToolDto> {
|
|
11916
|
+
const status = response.status;
|
|
11917
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
11918
|
+
if (status === 200) {
|
|
11919
|
+
return response.text().then((_responseText) => {
|
|
11920
|
+
let result200: any = null;
|
|
11921
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
11922
|
+
result200 = CncToolDto.fromJS(resultData200);
|
|
11923
|
+
return result200;
|
|
11924
|
+
});
|
|
11925
|
+
} else if (status !== 200 && status !== 204) {
|
|
11926
|
+
return response.text().then((_responseText) => {
|
|
11927
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
11928
|
+
});
|
|
11929
|
+
}
|
|
11930
|
+
return Promise.resolve<CncToolDto>(null as any);
|
|
11931
|
+
}
|
|
11890
11932
|
}
|
|
11891
11933
|
|
|
11892
11934
|
export interface IOperatorCalculatorsClient {
|
|
@@ -38237,6 +38279,7 @@ export class CncToolDto implements ICncToolDto {
|
|
|
38237
38279
|
toolSubTypeName!: string;
|
|
38238
38280
|
toolNumber?: string | null;
|
|
38239
38281
|
toolSuffix?: string | null;
|
|
38282
|
+
cncMachineId?: string | null;
|
|
38240
38283
|
description?: string | null;
|
|
38241
38284
|
holderDescription?: string | null;
|
|
38242
38285
|
geometry?: string | null;
|
|
@@ -38274,6 +38317,7 @@ export class CncToolDto implements ICncToolDto {
|
|
|
38274
38317
|
this.toolSubTypeName = _data["toolSubTypeName"];
|
|
38275
38318
|
this.toolNumber = _data["toolNumber"];
|
|
38276
38319
|
this.toolSuffix = _data["toolSuffix"];
|
|
38320
|
+
this.cncMachineId = _data["cncMachineId"];
|
|
38277
38321
|
this.description = _data["description"];
|
|
38278
38322
|
this.holderDescription = _data["holderDescription"];
|
|
38279
38323
|
this.geometry = _data["geometry"];
|
|
@@ -38315,6 +38359,7 @@ export class CncToolDto implements ICncToolDto {
|
|
|
38315
38359
|
data["toolSubTypeName"] = this.toolSubTypeName;
|
|
38316
38360
|
data["toolNumber"] = this.toolNumber;
|
|
38317
38361
|
data["toolSuffix"] = this.toolSuffix;
|
|
38362
|
+
data["cncMachineId"] = this.cncMachineId;
|
|
38318
38363
|
data["description"] = this.description;
|
|
38319
38364
|
data["holderDescription"] = this.holderDescription;
|
|
38320
38365
|
data["geometry"] = this.geometry;
|
|
@@ -38349,6 +38394,7 @@ export interface ICncToolDto {
|
|
|
38349
38394
|
toolSubTypeName: string;
|
|
38350
38395
|
toolNumber?: string | null;
|
|
38351
38396
|
toolSuffix?: string | null;
|
|
38397
|
+
cncMachineId?: string | null;
|
|
38352
38398
|
description?: string | null;
|
|
38353
38399
|
holderDescription?: string | null;
|
|
38354
38400
|
geometry?: string | null;
|
|
@@ -39448,6 +39494,64 @@ export interface IImportToolDto {
|
|
|
39448
39494
|
auditInfo: CncSetupAuditDto;
|
|
39449
39495
|
}
|
|
39450
39496
|
|
|
39497
|
+
export class CopyCncTool implements ICopyCncTool {
|
|
39498
|
+
toolId!: number;
|
|
39499
|
+
targetOperationId?: string | null;
|
|
39500
|
+
targetMachineId?: string | null;
|
|
39501
|
+
sourceOperationId?: string | null;
|
|
39502
|
+
sourceMachineId?: string | null;
|
|
39503
|
+
originType!: ToolOriginType;
|
|
39504
|
+
|
|
39505
|
+
constructor(data?: ICopyCncTool) {
|
|
39506
|
+
if (data) {
|
|
39507
|
+
for (var property in data) {
|
|
39508
|
+
if (data.hasOwnProperty(property))
|
|
39509
|
+
(<any>this)[property] = (<any>data)[property];
|
|
39510
|
+
}
|
|
39511
|
+
}
|
|
39512
|
+
}
|
|
39513
|
+
|
|
39514
|
+
init(_data?: any) {
|
|
39515
|
+
if (_data) {
|
|
39516
|
+
this.toolId = _data["toolId"];
|
|
39517
|
+
this.targetOperationId = _data["targetOperationId"];
|
|
39518
|
+
this.targetMachineId = _data["targetMachineId"];
|
|
39519
|
+
this.sourceOperationId = _data["sourceOperationId"];
|
|
39520
|
+
this.sourceMachineId = _data["sourceMachineId"];
|
|
39521
|
+
this.originType = _data["originType"];
|
|
39522
|
+
}
|
|
39523
|
+
}
|
|
39524
|
+
|
|
39525
|
+
static fromJS(data: any): CopyCncTool {
|
|
39526
|
+
data = typeof data === 'object' ? data : {};
|
|
39527
|
+
let result = new CopyCncTool();
|
|
39528
|
+
result.init(data);
|
|
39529
|
+
return result;
|
|
39530
|
+
}
|
|
39531
|
+
|
|
39532
|
+
toJSON(data?: any) {
|
|
39533
|
+
data = typeof data === 'object' ? data : {};
|
|
39534
|
+
data["toolId"] = this.toolId;
|
|
39535
|
+
data["targetOperationId"] = this.targetOperationId;
|
|
39536
|
+
data["targetMachineId"] = this.targetMachineId;
|
|
39537
|
+
data["sourceOperationId"] = this.sourceOperationId;
|
|
39538
|
+
data["sourceMachineId"] = this.sourceMachineId;
|
|
39539
|
+
data["originType"] = this.originType;
|
|
39540
|
+
return data;
|
|
39541
|
+
}
|
|
39542
|
+
}
|
|
39543
|
+
|
|
39544
|
+
export interface ICopyCncTool {
|
|
39545
|
+
toolId: number;
|
|
39546
|
+
targetOperationId?: string | null;
|
|
39547
|
+
targetMachineId?: string | null;
|
|
39548
|
+
sourceOperationId?: string | null;
|
|
39549
|
+
sourceMachineId?: string | null;
|
|
39550
|
+
originType: ToolOriginType;
|
|
39551
|
+
}
|
|
39552
|
+
|
|
39553
|
+
export type ToolOriginType = "Operation" | "Machine";
|
|
39554
|
+
|
|
39451
39555
|
export class SpindleAndCuttingSpeedDto implements ISpindleAndCuttingSpeedDto {
|
|
39452
39556
|
diameter!: number;
|
|
39453
39557
|
cuttingSpeed!: number;
|
|
@@ -48769,7 +48873,7 @@ export class CopyMeasurementFormSchema implements ICopyMeasurementFormSchema {
|
|
|
48769
48873
|
partNumber?: string | null;
|
|
48770
48874
|
partRevision?: string | null;
|
|
48771
48875
|
partName?: string | null;
|
|
48772
|
-
drawing
|
|
48876
|
+
drawing!: string;
|
|
48773
48877
|
drawingRevision?: string | null;
|
|
48774
48878
|
includeFiles!: boolean;
|
|
48775
48879
|
includeLinkedSchemas!: boolean;
|
|
@@ -48828,7 +48932,7 @@ export interface ICopyMeasurementFormSchema {
|
|
|
48828
48932
|
partNumber?: string | null;
|
|
48829
48933
|
partRevision?: string | null;
|
|
48830
48934
|
partName?: string | null;
|
|
48831
|
-
drawing
|
|
48935
|
+
drawing: string;
|
|
48832
48936
|
drawingRevision?: string | null;
|
|
48833
48937
|
includeFiles: boolean;
|
|
48834
48938
|
includeLinkedSchemas: boolean;
|
|
@@ -52497,7 +52601,7 @@ export class CreateMeasurementFormInstanceRequest implements ICreateMeasurementF
|
|
|
52497
52601
|
customerId?: string | null;
|
|
52498
52602
|
customerName?: string | null;
|
|
52499
52603
|
purchaseOrder?: string | null;
|
|
52500
|
-
|
|
52604
|
+
sequences!: CreateMeasurementFormInstanceRequestSequence[];
|
|
52501
52605
|
|
|
52502
52606
|
constructor(data?: ICreateMeasurementFormInstanceRequest) {
|
|
52503
52607
|
if (data) {
|
|
@@ -52507,7 +52611,7 @@ export class CreateMeasurementFormInstanceRequest implements ICreateMeasurementF
|
|
|
52507
52611
|
}
|
|
52508
52612
|
}
|
|
52509
52613
|
if (!data) {
|
|
52510
|
-
this.
|
|
52614
|
+
this.sequences = [];
|
|
52511
52615
|
}
|
|
52512
52616
|
}
|
|
52513
52617
|
|
|
@@ -52517,10 +52621,10 @@ export class CreateMeasurementFormInstanceRequest implements ICreateMeasurementF
|
|
|
52517
52621
|
this.customerId = _data["customerId"];
|
|
52518
52622
|
this.customerName = _data["customerName"];
|
|
52519
52623
|
this.purchaseOrder = _data["purchaseOrder"];
|
|
52520
|
-
if (Array.isArray(_data["
|
|
52521
|
-
this.
|
|
52522
|
-
for (let item of _data["
|
|
52523
|
-
this.
|
|
52624
|
+
if (Array.isArray(_data["sequences"])) {
|
|
52625
|
+
this.sequences = [] as any;
|
|
52626
|
+
for (let item of _data["sequences"])
|
|
52627
|
+
this.sequences!.push(CreateMeasurementFormInstanceRequestSequence.fromJS(item));
|
|
52524
52628
|
}
|
|
52525
52629
|
}
|
|
52526
52630
|
}
|
|
@@ -52538,10 +52642,10 @@ export class CreateMeasurementFormInstanceRequest implements ICreateMeasurementF
|
|
|
52538
52642
|
data["customerId"] = this.customerId;
|
|
52539
52643
|
data["customerName"] = this.customerName;
|
|
52540
52644
|
data["purchaseOrder"] = this.purchaseOrder;
|
|
52541
|
-
if (Array.isArray(this.
|
|
52542
|
-
data["
|
|
52543
|
-
for (let item of this.
|
|
52544
|
-
data["
|
|
52645
|
+
if (Array.isArray(this.sequences)) {
|
|
52646
|
+
data["sequences"] = [];
|
|
52647
|
+
for (let item of this.sequences)
|
|
52648
|
+
data["sequences"].push(item.toJSON());
|
|
52545
52649
|
}
|
|
52546
52650
|
return data;
|
|
52547
52651
|
}
|
|
@@ -52552,15 +52656,14 @@ export interface ICreateMeasurementFormInstanceRequest {
|
|
|
52552
52656
|
customerId?: string | null;
|
|
52553
52657
|
customerName?: string | null;
|
|
52554
52658
|
purchaseOrder?: string | null;
|
|
52555
|
-
|
|
52659
|
+
sequences: CreateMeasurementFormInstanceRequestSequence[];
|
|
52556
52660
|
}
|
|
52557
52661
|
|
|
52558
|
-
export class
|
|
52559
|
-
|
|
52560
|
-
|
|
52561
|
-
qty!: number;
|
|
52662
|
+
export class CreateMeasurementFormInstanceRequestSequence implements ICreateMeasurementFormInstanceRequestSequence {
|
|
52663
|
+
sequenceNumber!: string;
|
|
52664
|
+
serialNumber?: string | null;
|
|
52562
52665
|
|
|
52563
|
-
constructor(data?:
|
|
52666
|
+
constructor(data?: ICreateMeasurementFormInstanceRequestSequence) {
|
|
52564
52667
|
if (data) {
|
|
52565
52668
|
for (var property in data) {
|
|
52566
52669
|
if (data.hasOwnProperty(property))
|
|
@@ -52571,32 +52674,29 @@ export class CreateMeasurementFormInstanceRequestSeries implements ICreateMeasur
|
|
|
52571
52674
|
|
|
52572
52675
|
init(_data?: any) {
|
|
52573
52676
|
if (_data) {
|
|
52574
|
-
this.
|
|
52575
|
-
this.
|
|
52576
|
-
this.qty = _data["qty"];
|
|
52677
|
+
this.sequenceNumber = _data["sequenceNumber"];
|
|
52678
|
+
this.serialNumber = _data["serialNumber"];
|
|
52577
52679
|
}
|
|
52578
52680
|
}
|
|
52579
52681
|
|
|
52580
|
-
static fromJS(data: any):
|
|
52682
|
+
static fromJS(data: any): CreateMeasurementFormInstanceRequestSequence {
|
|
52581
52683
|
data = typeof data === 'object' ? data : {};
|
|
52582
|
-
let result = new
|
|
52684
|
+
let result = new CreateMeasurementFormInstanceRequestSequence();
|
|
52583
52685
|
result.init(data);
|
|
52584
52686
|
return result;
|
|
52585
52687
|
}
|
|
52586
52688
|
|
|
52587
52689
|
toJSON(data?: any) {
|
|
52588
52690
|
data = typeof data === 'object' ? data : {};
|
|
52589
|
-
data["
|
|
52590
|
-
data["
|
|
52591
|
-
data["qty"] = this.qty;
|
|
52691
|
+
data["sequenceNumber"] = this.sequenceNumber;
|
|
52692
|
+
data["serialNumber"] = this.serialNumber;
|
|
52592
52693
|
return data;
|
|
52593
52694
|
}
|
|
52594
52695
|
}
|
|
52595
52696
|
|
|
52596
|
-
export interface
|
|
52597
|
-
|
|
52598
|
-
|
|
52599
|
-
qty: number;
|
|
52697
|
+
export interface ICreateMeasurementFormInstanceRequestSequence {
|
|
52698
|
+
sequenceNumber: string;
|
|
52699
|
+
serialNumber?: string | null;
|
|
52600
52700
|
}
|
|
52601
52701
|
|
|
52602
52702
|
export class UpdateMeasurementFormInstanceRequest implements IUpdateMeasurementFormInstanceRequest {
|