@ignos/api-client 20250331.0.11453 → 20250404.0.11471
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 +28 -2
- package/lib/ignosportal-api.js +78 -0
- package/package.json +1 -1
- package/src/ignosportal-api.ts +106 -2
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;
|
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) {
|
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;
|