@ignos/api-client 20251028.0.13024 → 20251031.0.13080-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/ignosportal-api.d.ts +22 -0
- package/lib/ignosportal-api.js +177 -0
- package/package.json +1 -1
- package/src/ignosportal-api.ts +194 -0
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -276,6 +276,8 @@ export interface IUserAppSettingsClient {
|
|
|
276
276
|
setRouteCardUserSettings(settings: RouteCardAppSettings): Promise<void>;
|
|
277
277
|
getMoveUserSettings(): Promise<MoveAppSettings>;
|
|
278
278
|
setMoveUserSettings(settings: MoveAppSettings): Promise<void>;
|
|
279
|
+
getEngageUserSettings(): Promise<EngageAppSettings>;
|
|
280
|
+
setEngageUserSettings(settings: EngageAppSettings): Promise<void>;
|
|
279
281
|
}
|
|
280
282
|
export declare class UserAppSettingsClient extends AuthorizedApiBase implements IUserAppSettingsClient {
|
|
281
283
|
private http;
|
|
@@ -292,6 +294,10 @@ export declare class UserAppSettingsClient extends AuthorizedApiBase implements
|
|
|
292
294
|
protected processGetMoveUserSettings(response: Response): Promise<MoveAppSettings>;
|
|
293
295
|
setMoveUserSettings(settings: MoveAppSettings): Promise<void>;
|
|
294
296
|
protected processSetMoveUserSettings(response: Response): Promise<void>;
|
|
297
|
+
getEngageUserSettings(): Promise<EngageAppSettings>;
|
|
298
|
+
protected processGetEngageUserSettings(response: Response): Promise<EngageAppSettings>;
|
|
299
|
+
setEngageUserSettings(settings: EngageAppSettings): Promise<void>;
|
|
300
|
+
protected processSetEngageUserSettings(response: Response): Promise<void>;
|
|
295
301
|
}
|
|
296
302
|
export interface IUploadClient {
|
|
297
303
|
createUploadInfo(): Promise<UploadInfoDto>;
|
|
@@ -1251,12 +1257,14 @@ export interface ICncSetupClient {
|
|
|
1251
1257
|
listCncToolByOperation(id: string): Promise<CncToolDto[]>;
|
|
1252
1258
|
updateCncMachineOperationTool(operationId: string, id: number, request: UpdateCncMachineOperationToolRequest): Promise<CncToolDto>;
|
|
1253
1259
|
deleteCncMachineOperationTool(operationId: string, id: number): Promise<void>;
|
|
1260
|
+
deleteCncMachineOperationToolMultiple(operationId: string, idsToDelete: number[]): Promise<void>;
|
|
1254
1261
|
uploadOperationCncToolImage(operationId: string, id: number, request: UploadCncToolImageRequest): Promise<ImageFileDto>;
|
|
1255
1262
|
deleteCncMachineOperationToolImage(operationId: string, id: number, filename: string): Promise<void>;
|
|
1256
1263
|
createCncMachineTool(id: string, request: CreateCncMachineOperationToolRequest): Promise<CncToolDto>;
|
|
1257
1264
|
listCncToolByCncMachine(id: string): Promise<CncToolDto[]>;
|
|
1258
1265
|
updateCncMachineTool(cncMachineId: string, id: number, request: UpdateCncMachineToolRequest): Promise<CncToolDto>;
|
|
1259
1266
|
deleteCncMachineTool(cncMachineId: string, id: number): Promise<void>;
|
|
1267
|
+
deleteCncMachineToolMultiple(cncMachineId: string, idsToDelete: number[]): Promise<void>;
|
|
1260
1268
|
uploadCncMachineToolImage(machineId: string, id: number, request: UploadCncToolImageRequest): Promise<ImageFileDto>;
|
|
1261
1269
|
deleteCncMachineToolImage(machineId: string, id: number, filename: string): Promise<void>;
|
|
1262
1270
|
importOperationWithTools(request: ImportOperationWithTool): Promise<void>;
|
|
@@ -1357,6 +1365,8 @@ export declare class CncSetupClient extends AuthorizedApiBase implements ICncSet
|
|
|
1357
1365
|
protected processUpdateCncMachineOperationTool(response: Response): Promise<CncToolDto>;
|
|
1358
1366
|
deleteCncMachineOperationTool(operationId: string, id: number): Promise<void>;
|
|
1359
1367
|
protected processDeleteCncMachineOperationTool(response: Response): Promise<void>;
|
|
1368
|
+
deleteCncMachineOperationToolMultiple(operationId: string, idsToDelete: number[]): Promise<void>;
|
|
1369
|
+
protected processDeleteCncMachineOperationToolMultiple(response: Response): Promise<void>;
|
|
1360
1370
|
uploadOperationCncToolImage(operationId: string, id: number, request: UploadCncToolImageRequest): Promise<ImageFileDto>;
|
|
1361
1371
|
protected processUploadOperationCncToolImage(response: Response): Promise<ImageFileDto>;
|
|
1362
1372
|
deleteCncMachineOperationToolImage(operationId: string, id: number, filename: string): Promise<void>;
|
|
@@ -1369,6 +1379,8 @@ export declare class CncSetupClient extends AuthorizedApiBase implements ICncSet
|
|
|
1369
1379
|
protected processUpdateCncMachineTool(response: Response): Promise<CncToolDto>;
|
|
1370
1380
|
deleteCncMachineTool(cncMachineId: string, id: number): Promise<void>;
|
|
1371
1381
|
protected processDeleteCncMachineTool(response: Response): Promise<void>;
|
|
1382
|
+
deleteCncMachineToolMultiple(cncMachineId: string, idsToDelete: number[]): Promise<void>;
|
|
1383
|
+
protected processDeleteCncMachineToolMultiple(response: Response): Promise<void>;
|
|
1372
1384
|
uploadCncMachineToolImage(machineId: string, id: number, request: UploadCncToolImageRequest): Promise<ImageFileDto>;
|
|
1373
1385
|
protected processUploadCncMachineToolImage(response: Response): Promise<ImageFileDto>;
|
|
1374
1386
|
deleteCncMachineToolImage(machineId: string, id: number, filename: string): Promise<void>;
|
|
@@ -3406,6 +3418,16 @@ export interface IMoveAppSettings {
|
|
|
3406
3418
|
engageMoveAutoPrompt?: boolean;
|
|
3407
3419
|
defaultFromSuggestionAutoFillLocationId?: string | null;
|
|
3408
3420
|
}
|
|
3421
|
+
export declare class EngageAppSettings implements IEngageAppSettings {
|
|
3422
|
+
engageMyResource?: string;
|
|
3423
|
+
constructor(data?: IEngageAppSettings);
|
|
3424
|
+
init(_data?: any): void;
|
|
3425
|
+
static fromJS(data: any): EngageAppSettings;
|
|
3426
|
+
toJSON(data?: any): any;
|
|
3427
|
+
}
|
|
3428
|
+
export interface IEngageAppSettings {
|
|
3429
|
+
engageMyResource?: string;
|
|
3430
|
+
}
|
|
3409
3431
|
export declare class UploadInfoDto implements IUploadInfoDto {
|
|
3410
3432
|
baseUrl?: string | null;
|
|
3411
3433
|
key?: string | null;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -1582,6 +1582,79 @@ export class UserAppSettingsClient extends AuthorizedApiBase {
|
|
|
1582
1582
|
}
|
|
1583
1583
|
return Promise.resolve(null);
|
|
1584
1584
|
}
|
|
1585
|
+
getEngageUserSettings() {
|
|
1586
|
+
let url_ = this.baseUrl + "/userappsettings/engage";
|
|
1587
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
1588
|
+
let options_ = {
|
|
1589
|
+
method: "GET",
|
|
1590
|
+
headers: {
|
|
1591
|
+
"Accept": "application/json"
|
|
1592
|
+
}
|
|
1593
|
+
};
|
|
1594
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
1595
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
1596
|
+
}).then((_response) => {
|
|
1597
|
+
return this.processGetEngageUserSettings(_response);
|
|
1598
|
+
});
|
|
1599
|
+
}
|
|
1600
|
+
processGetEngageUserSettings(response) {
|
|
1601
|
+
const status = response.status;
|
|
1602
|
+
let _headers = {};
|
|
1603
|
+
if (response.headers && response.headers.forEach) {
|
|
1604
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
1605
|
+
}
|
|
1606
|
+
;
|
|
1607
|
+
if (status === 200) {
|
|
1608
|
+
return response.text().then((_responseText) => {
|
|
1609
|
+
let result200 = null;
|
|
1610
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1611
|
+
result200 = EngageAppSettings.fromJS(resultData200);
|
|
1612
|
+
return result200;
|
|
1613
|
+
});
|
|
1614
|
+
}
|
|
1615
|
+
else if (status !== 200 && status !== 204) {
|
|
1616
|
+
return response.text().then((_responseText) => {
|
|
1617
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1618
|
+
});
|
|
1619
|
+
}
|
|
1620
|
+
return Promise.resolve(null);
|
|
1621
|
+
}
|
|
1622
|
+
setEngageUserSettings(settings) {
|
|
1623
|
+
let url_ = this.baseUrl + "/userappsettings/engage";
|
|
1624
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
1625
|
+
const content_ = JSON.stringify(settings);
|
|
1626
|
+
let options_ = {
|
|
1627
|
+
body: content_,
|
|
1628
|
+
method: "PUT",
|
|
1629
|
+
headers: {
|
|
1630
|
+
"Content-Type": "application/json",
|
|
1631
|
+
}
|
|
1632
|
+
};
|
|
1633
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
1634
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
1635
|
+
}).then((_response) => {
|
|
1636
|
+
return this.processSetEngageUserSettings(_response);
|
|
1637
|
+
});
|
|
1638
|
+
}
|
|
1639
|
+
processSetEngageUserSettings(response) {
|
|
1640
|
+
const status = response.status;
|
|
1641
|
+
let _headers = {};
|
|
1642
|
+
if (response.headers && response.headers.forEach) {
|
|
1643
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
1644
|
+
}
|
|
1645
|
+
;
|
|
1646
|
+
if (status === 204) {
|
|
1647
|
+
return response.text().then((_responseText) => {
|
|
1648
|
+
return;
|
|
1649
|
+
});
|
|
1650
|
+
}
|
|
1651
|
+
else if (status !== 200 && status !== 204) {
|
|
1652
|
+
return response.text().then((_responseText) => {
|
|
1653
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1654
|
+
});
|
|
1655
|
+
}
|
|
1656
|
+
return Promise.resolve(null);
|
|
1657
|
+
}
|
|
1585
1658
|
}
|
|
1586
1659
|
export class UploadClient extends AuthorizedApiBase {
|
|
1587
1660
|
constructor(configuration, baseUrl, http) {
|
|
@@ -11416,6 +11489,45 @@ export class CncSetupClient extends AuthorizedApiBase {
|
|
|
11416
11489
|
}
|
|
11417
11490
|
return Promise.resolve(null);
|
|
11418
11491
|
}
|
|
11492
|
+
deleteCncMachineOperationToolMultiple(operationId, idsToDelete) {
|
|
11493
|
+
let url_ = this.baseUrl + "/cncsetup/operations/{operationId}/tools";
|
|
11494
|
+
if (operationId === undefined || operationId === null)
|
|
11495
|
+
throw new globalThis.Error("The parameter 'operationId' must be defined.");
|
|
11496
|
+
url_ = url_.replace("{operationId}", encodeURIComponent("" + operationId));
|
|
11497
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
11498
|
+
const content_ = JSON.stringify(idsToDelete);
|
|
11499
|
+
let options_ = {
|
|
11500
|
+
body: content_,
|
|
11501
|
+
method: "DELETE",
|
|
11502
|
+
headers: {
|
|
11503
|
+
"Content-Type": "application/json",
|
|
11504
|
+
}
|
|
11505
|
+
};
|
|
11506
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
11507
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
11508
|
+
}).then((_response) => {
|
|
11509
|
+
return this.processDeleteCncMachineOperationToolMultiple(_response);
|
|
11510
|
+
});
|
|
11511
|
+
}
|
|
11512
|
+
processDeleteCncMachineOperationToolMultiple(response) {
|
|
11513
|
+
const status = response.status;
|
|
11514
|
+
let _headers = {};
|
|
11515
|
+
if (response.headers && response.headers.forEach) {
|
|
11516
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
11517
|
+
}
|
|
11518
|
+
;
|
|
11519
|
+
if (status === 204) {
|
|
11520
|
+
return response.text().then((_responseText) => {
|
|
11521
|
+
return;
|
|
11522
|
+
});
|
|
11523
|
+
}
|
|
11524
|
+
else if (status !== 200 && status !== 204) {
|
|
11525
|
+
return response.text().then((_responseText) => {
|
|
11526
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
11527
|
+
});
|
|
11528
|
+
}
|
|
11529
|
+
return Promise.resolve(null);
|
|
11530
|
+
}
|
|
11419
11531
|
uploadOperationCncToolImage(operationId, id, request) {
|
|
11420
11532
|
let url_ = this.baseUrl + "/cncsetup/operations/{operationId}/tools/{id}/uploadimage";
|
|
11421
11533
|
if (operationId === undefined || operationId === null)
|
|
@@ -11674,6 +11786,45 @@ export class CncSetupClient extends AuthorizedApiBase {
|
|
|
11674
11786
|
}
|
|
11675
11787
|
return Promise.resolve(null);
|
|
11676
11788
|
}
|
|
11789
|
+
deleteCncMachineToolMultiple(cncMachineId, idsToDelete) {
|
|
11790
|
+
let url_ = this.baseUrl + "/cncsetup/machines/{cncMachineId}/tools";
|
|
11791
|
+
if (cncMachineId === undefined || cncMachineId === null)
|
|
11792
|
+
throw new globalThis.Error("The parameter 'cncMachineId' must be defined.");
|
|
11793
|
+
url_ = url_.replace("{cncMachineId}", encodeURIComponent("" + cncMachineId));
|
|
11794
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
11795
|
+
const content_ = JSON.stringify(idsToDelete);
|
|
11796
|
+
let options_ = {
|
|
11797
|
+
body: content_,
|
|
11798
|
+
method: "DELETE",
|
|
11799
|
+
headers: {
|
|
11800
|
+
"Content-Type": "application/json",
|
|
11801
|
+
}
|
|
11802
|
+
};
|
|
11803
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
11804
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
11805
|
+
}).then((_response) => {
|
|
11806
|
+
return this.processDeleteCncMachineToolMultiple(_response);
|
|
11807
|
+
});
|
|
11808
|
+
}
|
|
11809
|
+
processDeleteCncMachineToolMultiple(response) {
|
|
11810
|
+
const status = response.status;
|
|
11811
|
+
let _headers = {};
|
|
11812
|
+
if (response.headers && response.headers.forEach) {
|
|
11813
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
11814
|
+
}
|
|
11815
|
+
;
|
|
11816
|
+
if (status === 204) {
|
|
11817
|
+
return response.text().then((_responseText) => {
|
|
11818
|
+
return;
|
|
11819
|
+
});
|
|
11820
|
+
}
|
|
11821
|
+
else if (status !== 200 && status !== 204) {
|
|
11822
|
+
return response.text().then((_responseText) => {
|
|
11823
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
11824
|
+
});
|
|
11825
|
+
}
|
|
11826
|
+
return Promise.resolve(null);
|
|
11827
|
+
}
|
|
11677
11828
|
uploadCncMachineToolImage(machineId, id, request) {
|
|
11678
11829
|
let url_ = this.baseUrl + "/cncsetup/machines/{machineId}/tools/{id}/uploadimage";
|
|
11679
11830
|
if (machineId === undefined || machineId === null)
|
|
@@ -24827,6 +24978,32 @@ export class MoveAppSettings {
|
|
|
24827
24978
|
return data;
|
|
24828
24979
|
}
|
|
24829
24980
|
}
|
|
24981
|
+
export class EngageAppSettings {
|
|
24982
|
+
constructor(data) {
|
|
24983
|
+
if (data) {
|
|
24984
|
+
for (var property in data) {
|
|
24985
|
+
if (data.hasOwnProperty(property))
|
|
24986
|
+
this[property] = data[property];
|
|
24987
|
+
}
|
|
24988
|
+
}
|
|
24989
|
+
}
|
|
24990
|
+
init(_data) {
|
|
24991
|
+
if (_data) {
|
|
24992
|
+
this.engageMyResource = _data["engageMyResource"];
|
|
24993
|
+
}
|
|
24994
|
+
}
|
|
24995
|
+
static fromJS(data) {
|
|
24996
|
+
data = typeof data === 'object' ? data : {};
|
|
24997
|
+
let result = new EngageAppSettings();
|
|
24998
|
+
result.init(data);
|
|
24999
|
+
return result;
|
|
25000
|
+
}
|
|
25001
|
+
toJSON(data) {
|
|
25002
|
+
data = typeof data === 'object' ? data : {};
|
|
25003
|
+
data["engageMyResource"] = this.engageMyResource;
|
|
25004
|
+
return data;
|
|
25005
|
+
}
|
|
25006
|
+
}
|
|
24830
25007
|
export class UploadInfoDto {
|
|
24831
25008
|
constructor(data) {
|
|
24832
25009
|
if (data) {
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -1591,6 +1591,10 @@ export interface IUserAppSettingsClient {
|
|
|
1591
1591
|
getMoveUserSettings(): Promise<MoveAppSettings>;
|
|
1592
1592
|
|
|
1593
1593
|
setMoveUserSettings(settings: MoveAppSettings): Promise<void>;
|
|
1594
|
+
|
|
1595
|
+
getEngageUserSettings(): Promise<EngageAppSettings>;
|
|
1596
|
+
|
|
1597
|
+
setEngageUserSettings(settings: EngageAppSettings): Promise<void>;
|
|
1594
1598
|
}
|
|
1595
1599
|
|
|
1596
1600
|
export class UserAppSettingsClient extends AuthorizedApiBase implements IUserAppSettingsClient {
|
|
@@ -1747,6 +1751,78 @@ export class UserAppSettingsClient extends AuthorizedApiBase implements IUserApp
|
|
|
1747
1751
|
}
|
|
1748
1752
|
return Promise.resolve<void>(null as any);
|
|
1749
1753
|
}
|
|
1754
|
+
|
|
1755
|
+
getEngageUserSettings(): Promise<EngageAppSettings> {
|
|
1756
|
+
let url_ = this.baseUrl + "/userappsettings/engage";
|
|
1757
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
1758
|
+
|
|
1759
|
+
let options_: RequestInit = {
|
|
1760
|
+
method: "GET",
|
|
1761
|
+
headers: {
|
|
1762
|
+
"Accept": "application/json"
|
|
1763
|
+
}
|
|
1764
|
+
};
|
|
1765
|
+
|
|
1766
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
1767
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
1768
|
+
}).then((_response: Response) => {
|
|
1769
|
+
return this.processGetEngageUserSettings(_response);
|
|
1770
|
+
});
|
|
1771
|
+
}
|
|
1772
|
+
|
|
1773
|
+
protected processGetEngageUserSettings(response: Response): Promise<EngageAppSettings> {
|
|
1774
|
+
const status = response.status;
|
|
1775
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
1776
|
+
if (status === 200) {
|
|
1777
|
+
return response.text().then((_responseText) => {
|
|
1778
|
+
let result200: any = null;
|
|
1779
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1780
|
+
result200 = EngageAppSettings.fromJS(resultData200);
|
|
1781
|
+
return result200;
|
|
1782
|
+
});
|
|
1783
|
+
} else if (status !== 200 && status !== 204) {
|
|
1784
|
+
return response.text().then((_responseText) => {
|
|
1785
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1786
|
+
});
|
|
1787
|
+
}
|
|
1788
|
+
return Promise.resolve<EngageAppSettings>(null as any);
|
|
1789
|
+
}
|
|
1790
|
+
|
|
1791
|
+
setEngageUserSettings(settings: EngageAppSettings): Promise<void> {
|
|
1792
|
+
let url_ = this.baseUrl + "/userappsettings/engage";
|
|
1793
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
1794
|
+
|
|
1795
|
+
const content_ = JSON.stringify(settings);
|
|
1796
|
+
|
|
1797
|
+
let options_: RequestInit = {
|
|
1798
|
+
body: content_,
|
|
1799
|
+
method: "PUT",
|
|
1800
|
+
headers: {
|
|
1801
|
+
"Content-Type": "application/json",
|
|
1802
|
+
}
|
|
1803
|
+
};
|
|
1804
|
+
|
|
1805
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
1806
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
1807
|
+
}).then((_response: Response) => {
|
|
1808
|
+
return this.processSetEngageUserSettings(_response);
|
|
1809
|
+
});
|
|
1810
|
+
}
|
|
1811
|
+
|
|
1812
|
+
protected processSetEngageUserSettings(response: Response): Promise<void> {
|
|
1813
|
+
const status = response.status;
|
|
1814
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
1815
|
+
if (status === 204) {
|
|
1816
|
+
return response.text().then((_responseText) => {
|
|
1817
|
+
return;
|
|
1818
|
+
});
|
|
1819
|
+
} else if (status !== 200 && status !== 204) {
|
|
1820
|
+
return response.text().then((_responseText) => {
|
|
1821
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1822
|
+
});
|
|
1823
|
+
}
|
|
1824
|
+
return Promise.resolve<void>(null as any);
|
|
1825
|
+
}
|
|
1750
1826
|
}
|
|
1751
1827
|
|
|
1752
1828
|
export interface IUploadClient {
|
|
@@ -10364,6 +10440,8 @@ export interface ICncSetupClient {
|
|
|
10364
10440
|
|
|
10365
10441
|
deleteCncMachineOperationTool(operationId: string, id: number): Promise<void>;
|
|
10366
10442
|
|
|
10443
|
+
deleteCncMachineOperationToolMultiple(operationId: string, idsToDelete: number[]): Promise<void>;
|
|
10444
|
+
|
|
10367
10445
|
uploadOperationCncToolImage(operationId: string, id: number, request: UploadCncToolImageRequest): Promise<ImageFileDto>;
|
|
10368
10446
|
|
|
10369
10447
|
deleteCncMachineOperationToolImage(operationId: string, id: number, filename: string): Promise<void>;
|
|
@@ -10376,6 +10454,8 @@ export interface ICncSetupClient {
|
|
|
10376
10454
|
|
|
10377
10455
|
deleteCncMachineTool(cncMachineId: string, id: number): Promise<void>;
|
|
10378
10456
|
|
|
10457
|
+
deleteCncMachineToolMultiple(cncMachineId: string, idsToDelete: number[]): Promise<void>;
|
|
10458
|
+
|
|
10379
10459
|
uploadCncMachineToolImage(machineId: string, id: number, request: UploadCncToolImageRequest): Promise<ImageFileDto>;
|
|
10380
10460
|
|
|
10381
10461
|
deleteCncMachineToolImage(machineId: string, id: number, filename: string): Promise<void>;
|
|
@@ -12186,6 +12266,45 @@ export class CncSetupClient extends AuthorizedApiBase implements ICncSetupClient
|
|
|
12186
12266
|
return Promise.resolve<void>(null as any);
|
|
12187
12267
|
}
|
|
12188
12268
|
|
|
12269
|
+
deleteCncMachineOperationToolMultiple(operationId: string, idsToDelete: number[]): Promise<void> {
|
|
12270
|
+
let url_ = this.baseUrl + "/cncsetup/operations/{operationId}/tools";
|
|
12271
|
+
if (operationId === undefined || operationId === null)
|
|
12272
|
+
throw new globalThis.Error("The parameter 'operationId' must be defined.");
|
|
12273
|
+
url_ = url_.replace("{operationId}", encodeURIComponent("" + operationId));
|
|
12274
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
12275
|
+
|
|
12276
|
+
const content_ = JSON.stringify(idsToDelete);
|
|
12277
|
+
|
|
12278
|
+
let options_: RequestInit = {
|
|
12279
|
+
body: content_,
|
|
12280
|
+
method: "DELETE",
|
|
12281
|
+
headers: {
|
|
12282
|
+
"Content-Type": "application/json",
|
|
12283
|
+
}
|
|
12284
|
+
};
|
|
12285
|
+
|
|
12286
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
12287
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
12288
|
+
}).then((_response: Response) => {
|
|
12289
|
+
return this.processDeleteCncMachineOperationToolMultiple(_response);
|
|
12290
|
+
});
|
|
12291
|
+
}
|
|
12292
|
+
|
|
12293
|
+
protected processDeleteCncMachineOperationToolMultiple(response: Response): Promise<void> {
|
|
12294
|
+
const status = response.status;
|
|
12295
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
12296
|
+
if (status === 204) {
|
|
12297
|
+
return response.text().then((_responseText) => {
|
|
12298
|
+
return;
|
|
12299
|
+
});
|
|
12300
|
+
} else if (status !== 200 && status !== 204) {
|
|
12301
|
+
return response.text().then((_responseText) => {
|
|
12302
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
12303
|
+
});
|
|
12304
|
+
}
|
|
12305
|
+
return Promise.resolve<void>(null as any);
|
|
12306
|
+
}
|
|
12307
|
+
|
|
12189
12308
|
uploadOperationCncToolImage(operationId: string, id: number, request: UploadCncToolImageRequest): Promise<ImageFileDto> {
|
|
12190
12309
|
let url_ = this.baseUrl + "/cncsetup/operations/{operationId}/tools/{id}/uploadimage";
|
|
12191
12310
|
if (operationId === undefined || operationId === null)
|
|
@@ -12443,6 +12562,45 @@ export class CncSetupClient extends AuthorizedApiBase implements ICncSetupClient
|
|
|
12443
12562
|
return Promise.resolve<void>(null as any);
|
|
12444
12563
|
}
|
|
12445
12564
|
|
|
12565
|
+
deleteCncMachineToolMultiple(cncMachineId: string, idsToDelete: number[]): Promise<void> {
|
|
12566
|
+
let url_ = this.baseUrl + "/cncsetup/machines/{cncMachineId}/tools";
|
|
12567
|
+
if (cncMachineId === undefined || cncMachineId === null)
|
|
12568
|
+
throw new globalThis.Error("The parameter 'cncMachineId' must be defined.");
|
|
12569
|
+
url_ = url_.replace("{cncMachineId}", encodeURIComponent("" + cncMachineId));
|
|
12570
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
12571
|
+
|
|
12572
|
+
const content_ = JSON.stringify(idsToDelete);
|
|
12573
|
+
|
|
12574
|
+
let options_: RequestInit = {
|
|
12575
|
+
body: content_,
|
|
12576
|
+
method: "DELETE",
|
|
12577
|
+
headers: {
|
|
12578
|
+
"Content-Type": "application/json",
|
|
12579
|
+
}
|
|
12580
|
+
};
|
|
12581
|
+
|
|
12582
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
12583
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
12584
|
+
}).then((_response: Response) => {
|
|
12585
|
+
return this.processDeleteCncMachineToolMultiple(_response);
|
|
12586
|
+
});
|
|
12587
|
+
}
|
|
12588
|
+
|
|
12589
|
+
protected processDeleteCncMachineToolMultiple(response: Response): Promise<void> {
|
|
12590
|
+
const status = response.status;
|
|
12591
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
12592
|
+
if (status === 204) {
|
|
12593
|
+
return response.text().then((_responseText) => {
|
|
12594
|
+
return;
|
|
12595
|
+
});
|
|
12596
|
+
} else if (status !== 200 && status !== 204) {
|
|
12597
|
+
return response.text().then((_responseText) => {
|
|
12598
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
12599
|
+
});
|
|
12600
|
+
}
|
|
12601
|
+
return Promise.resolve<void>(null as any);
|
|
12602
|
+
}
|
|
12603
|
+
|
|
12446
12604
|
uploadCncMachineToolImage(machineId: string, id: number, request: UploadCncToolImageRequest): Promise<ImageFileDto> {
|
|
12447
12605
|
let url_ = this.baseUrl + "/cncsetup/machines/{machineId}/tools/{id}/uploadimage";
|
|
12448
12606
|
if (machineId === undefined || machineId === null)
|
|
@@ -26980,6 +27138,42 @@ export interface IMoveAppSettings {
|
|
|
26980
27138
|
defaultFromSuggestionAutoFillLocationId?: string | null;
|
|
26981
27139
|
}
|
|
26982
27140
|
|
|
27141
|
+
export class EngageAppSettings implements IEngageAppSettings {
|
|
27142
|
+
engageMyResource?: string;
|
|
27143
|
+
|
|
27144
|
+
constructor(data?: IEngageAppSettings) {
|
|
27145
|
+
if (data) {
|
|
27146
|
+
for (var property in data) {
|
|
27147
|
+
if (data.hasOwnProperty(property))
|
|
27148
|
+
(this as any)[property] = (data as any)[property];
|
|
27149
|
+
}
|
|
27150
|
+
}
|
|
27151
|
+
}
|
|
27152
|
+
|
|
27153
|
+
init(_data?: any) {
|
|
27154
|
+
if (_data) {
|
|
27155
|
+
this.engageMyResource = _data["engageMyResource"];
|
|
27156
|
+
}
|
|
27157
|
+
}
|
|
27158
|
+
|
|
27159
|
+
static fromJS(data: any): EngageAppSettings {
|
|
27160
|
+
data = typeof data === 'object' ? data : {};
|
|
27161
|
+
let result = new EngageAppSettings();
|
|
27162
|
+
result.init(data);
|
|
27163
|
+
return result;
|
|
27164
|
+
}
|
|
27165
|
+
|
|
27166
|
+
toJSON(data?: any) {
|
|
27167
|
+
data = typeof data === 'object' ? data : {};
|
|
27168
|
+
data["engageMyResource"] = this.engageMyResource;
|
|
27169
|
+
return data;
|
|
27170
|
+
}
|
|
27171
|
+
}
|
|
27172
|
+
|
|
27173
|
+
export interface IEngageAppSettings {
|
|
27174
|
+
engageMyResource?: string;
|
|
27175
|
+
}
|
|
27176
|
+
|
|
26983
27177
|
export class UploadInfoDto implements IUploadInfoDto {
|
|
26984
27178
|
baseUrl?: string | null;
|
|
26985
27179
|
key?: string | null;
|