@ignos/api-client 20240731.0.9891 → 20240801.0.9898
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 +16 -9
- package/lib/ignosportal-api.js +79 -133
- package/package.json +1 -1
- package/src/ignosportal-api.ts +94 -139
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -961,7 +961,7 @@ export interface ICncFileTransferClient {
|
|
|
961
961
|
startCncMachineOperationTransferToMachine(id: string): Promise<CncMachineTransferDto>;
|
|
962
962
|
getTransferStatus(id: string): Promise<CncMachineTransferDto>;
|
|
963
963
|
createUploadCamTransferInfo(request: UploadCamFileRequest): Promise<UploadCamFileDto>;
|
|
964
|
-
getCamTransfer(path: string |
|
|
964
|
+
getCamTransfer(path: string | undefined): Promise<CamTransferDto>;
|
|
965
965
|
startCamTransferToMachine(request: StartCamTransferToMachine): Promise<CncMachineTransferDto>;
|
|
966
966
|
startCamTransferToMachineFromTempUpload(request: StartCamTransferToMachineFromTempUpload): Promise<CncMachineTransferDto>;
|
|
967
967
|
}
|
|
@@ -980,7 +980,7 @@ export declare class CncFileTransferClient extends AuthorizedApiBase implements
|
|
|
980
980
|
protected processGetTransferStatus(response: Response): Promise<CncMachineTransferDto>;
|
|
981
981
|
createUploadCamTransferInfo(request: UploadCamFileRequest): Promise<UploadCamFileDto>;
|
|
982
982
|
protected processCreateUploadCamTransferInfo(response: Response): Promise<UploadCamFileDto>;
|
|
983
|
-
getCamTransfer(path: string |
|
|
983
|
+
getCamTransfer(path: string | undefined): Promise<CamTransferDto>;
|
|
984
984
|
protected processGetCamTransfer(response: Response): Promise<CamTransferDto>;
|
|
985
985
|
startCamTransferToMachine(request: StartCamTransferToMachine): Promise<CncMachineTransferDto>;
|
|
986
986
|
protected processStartCamTransferToMachine(response: Response): Promise<CncMachineTransferDto>;
|
|
@@ -1016,17 +1016,16 @@ export interface ICncSetupClient {
|
|
|
1016
1016
|
updateCncMachineCommunicationSettings(id: string, request: UpdateCncMachineCommunicationSettingsRequest): Promise<CncMachineCommunicationSettingsDto>;
|
|
1017
1017
|
deleteCncMachineCommunicationSettings(id: string): Promise<void>;
|
|
1018
1018
|
createCncPart(request: CreateCncPart): Promise<CncPartDto>;
|
|
1019
|
-
listCncParts(pageSize: number | undefined, customerId: string | null | undefined, customerName: string | null | undefined, partNumber: string | null | undefined, partRevision: string | null | undefined, partName: string | null | undefined, drawing: string | null | undefined, drawingRevision: string | null | undefined, material: string | null | undefined, filterDeleted: CncFilterDeletedDto | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfCncPartListDto>;
|
|
1020
1019
|
updateCncPart(id: string, request: UpdateCncPartRequest): Promise<CncPartDto>;
|
|
1021
1020
|
deleteCncPart(id: string): Promise<FileResponse>;
|
|
1022
1021
|
getCncPart(id: string): Promise<CncPartDto>;
|
|
1023
1022
|
postListCncParts(request: ListCncPartsRequest | undefined): Promise<PagedResultOfCncPartListDto>;
|
|
1023
|
+
listCncPartMaterials(filter: string | null | undefined): Promise<CncPartMaterialListDto>;
|
|
1024
1024
|
copyCncPart(request: CopyCncPart): Promise<CncPartDto>;
|
|
1025
1025
|
createUploadPartDrawingInfo(id: string, request: UploadPartDrawingRequest): Promise<UploadFileDto>;
|
|
1026
1026
|
getCncPartDrawing(id: string): Promise<FileDto>;
|
|
1027
1027
|
deleteCncPartDrawing(id: string, request: DeletePartDrawingRequest): Promise<void>;
|
|
1028
1028
|
createCncMachineOperation(request: CreateCncMachineOperation): Promise<CncMachineOperationDto>;
|
|
1029
|
-
listCncMachineOperations(pageSize: number | undefined, cncMachineId: string | null | undefined, customerId: string | null | undefined, customerName: string | null | undefined, partNumber: string | null | undefined, partRevision: string | null | undefined, partName: string | null | undefined, drawing: string | null | undefined, drawingRevision: string | null | undefined, material: string | null | undefined, filterDeleted: CncFilterDeletedDto | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfCncMachineOperationSearchResultDto>;
|
|
1030
1029
|
postListCncMachineOperations(request: ListCncMachineOperationsRequest | undefined): Promise<PagedResultOfCncMachineOperationSearchResultDto>;
|
|
1031
1030
|
updateCncMachineOperation(id: string, request: UpdateCncMachineOperationRequest): Promise<CncMachineOperationDto>;
|
|
1032
1031
|
getCncMachineOperation(id: string): Promise<CncMachineOperationDto>;
|
|
@@ -1084,8 +1083,6 @@ export declare class CncSetupClient extends AuthorizedApiBase implements ICncSet
|
|
|
1084
1083
|
protected processDeleteCncMachineCommunicationSettings(response: Response): Promise<void>;
|
|
1085
1084
|
createCncPart(request: CreateCncPart): Promise<CncPartDto>;
|
|
1086
1085
|
protected processCreateCncPart(response: Response): Promise<CncPartDto>;
|
|
1087
|
-
listCncParts(pageSize: number | undefined, customerId: string | null | undefined, customerName: string | null | undefined, partNumber: string | null | undefined, partRevision: string | null | undefined, partName: string | null | undefined, drawing: string | null | undefined, drawingRevision: string | null | undefined, material: string | null | undefined, filterDeleted: CncFilterDeletedDto | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfCncPartListDto>;
|
|
1088
|
-
protected processListCncParts(response: Response): Promise<PagedResultOfCncPartListDto>;
|
|
1089
1086
|
updateCncPart(id: string, request: UpdateCncPartRequest): Promise<CncPartDto>;
|
|
1090
1087
|
protected processUpdateCncPart(response: Response): Promise<CncPartDto>;
|
|
1091
1088
|
deleteCncPart(id: string): Promise<FileResponse>;
|
|
@@ -1094,6 +1091,8 @@ export declare class CncSetupClient extends AuthorizedApiBase implements ICncSet
|
|
|
1094
1091
|
protected processGetCncPart(response: Response): Promise<CncPartDto>;
|
|
1095
1092
|
postListCncParts(request: ListCncPartsRequest | undefined): Promise<PagedResultOfCncPartListDto>;
|
|
1096
1093
|
protected processPostListCncParts(response: Response): Promise<PagedResultOfCncPartListDto>;
|
|
1094
|
+
listCncPartMaterials(filter: string | null | undefined): Promise<CncPartMaterialListDto>;
|
|
1095
|
+
protected processListCncPartMaterials(response: Response): Promise<CncPartMaterialListDto>;
|
|
1097
1096
|
copyCncPart(request: CopyCncPart): Promise<CncPartDto>;
|
|
1098
1097
|
protected processCopyCncPart(response: Response): Promise<CncPartDto>;
|
|
1099
1098
|
createUploadPartDrawingInfo(id: string, request: UploadPartDrawingRequest): Promise<UploadFileDto>;
|
|
@@ -1104,8 +1103,6 @@ export declare class CncSetupClient extends AuthorizedApiBase implements ICncSet
|
|
|
1104
1103
|
protected processDeleteCncPartDrawing(response: Response): Promise<void>;
|
|
1105
1104
|
createCncMachineOperation(request: CreateCncMachineOperation): Promise<CncMachineOperationDto>;
|
|
1106
1105
|
protected processCreateCncMachineOperation(response: Response): Promise<CncMachineOperationDto>;
|
|
1107
|
-
listCncMachineOperations(pageSize: number | undefined, cncMachineId: string | null | undefined, customerId: string | null | undefined, customerName: string | null | undefined, partNumber: string | null | undefined, partRevision: string | null | undefined, partName: string | null | undefined, drawing: string | null | undefined, drawingRevision: string | null | undefined, material: string | null | undefined, filterDeleted: CncFilterDeletedDto | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfCncMachineOperationSearchResultDto>;
|
|
1108
|
-
protected processListCncMachineOperations(response: Response): Promise<PagedResultOfCncMachineOperationSearchResultDto>;
|
|
1109
1106
|
postListCncMachineOperations(request: ListCncMachineOperationsRequest | undefined): Promise<PagedResultOfCncMachineOperationSearchResultDto>;
|
|
1110
1107
|
protected processPostListCncMachineOperations(response: Response): Promise<PagedResultOfCncMachineOperationSearchResultDto>;
|
|
1111
1108
|
updateCncMachineOperation(id: string, request: UpdateCncMachineOperationRequest): Promise<CncMachineOperationDto>;
|
|
@@ -6433,7 +6430,6 @@ export interface ICncPartListDto {
|
|
|
6433
6430
|
deleted: boolean;
|
|
6434
6431
|
description?: string | null;
|
|
6435
6432
|
}
|
|
6436
|
-
export type CncFilterDeletedDto = "NoneDeleted" | "OnlyDeleted" | "All";
|
|
6437
6433
|
export declare class ListCncPartsRequest implements IListCncPartsRequest {
|
|
6438
6434
|
pageSize?: number | null;
|
|
6439
6435
|
customerId?: string | null;
|
|
@@ -6478,6 +6474,17 @@ export interface IListCncPartsRequest {
|
|
|
6478
6474
|
operationMinUpdatedDate?: Date | null;
|
|
6479
6475
|
operationMaxUpdatedDate?: Date | null;
|
|
6480
6476
|
}
|
|
6477
|
+
export type CncFilterDeletedDto = "NoneDeleted" | "OnlyDeleted" | "All";
|
|
6478
|
+
export declare class CncPartMaterialListDto implements ICncPartMaterialListDto {
|
|
6479
|
+
materials: string[];
|
|
6480
|
+
constructor(data?: ICncPartMaterialListDto);
|
|
6481
|
+
init(_data?: any): void;
|
|
6482
|
+
static fromJS(data: any): CncPartMaterialListDto;
|
|
6483
|
+
toJSON(data?: any): any;
|
|
6484
|
+
}
|
|
6485
|
+
export interface ICncPartMaterialListDto {
|
|
6486
|
+
materials: string[];
|
|
6487
|
+
}
|
|
6481
6488
|
export declare class CopyCncPart implements ICopyCncPart {
|
|
6482
6489
|
sourcePartId: string;
|
|
6483
6490
|
customerId?: string | null;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -7552,7 +7552,9 @@ export class CncFileTransferClient extends AuthorizedApiBase {
|
|
|
7552
7552
|
}
|
|
7553
7553
|
getCamTransfer(path) {
|
|
7554
7554
|
let url_ = this.baseUrl + "/cncfiletransfer/transfers/cam?";
|
|
7555
|
-
if (path
|
|
7555
|
+
if (path === null)
|
|
7556
|
+
throw new Error("The parameter 'path' cannot be null.");
|
|
7557
|
+
else if (path !== undefined)
|
|
7556
7558
|
url_ += "path=" + encodeURIComponent("" + path) + "&";
|
|
7557
7559
|
url_ = url_.replace(/[?&]$/, "");
|
|
7558
7560
|
let options_ = {
|
|
@@ -8171,71 +8173,6 @@ export class CncSetupClient extends AuthorizedApiBase {
|
|
|
8171
8173
|
}
|
|
8172
8174
|
return Promise.resolve(null);
|
|
8173
8175
|
}
|
|
8174
|
-
listCncParts(pageSize, customerId, customerName, partNumber, partRevision, partName, drawing, drawingRevision, material, filterDeleted, filter, continuationToken) {
|
|
8175
|
-
let url_ = this.baseUrl + "/cncsetup/parts?";
|
|
8176
|
-
if (pageSize === null)
|
|
8177
|
-
throw new Error("The parameter 'pageSize' cannot be null.");
|
|
8178
|
-
else if (pageSize !== undefined)
|
|
8179
|
-
url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
|
|
8180
|
-
if (customerId !== undefined && customerId !== null)
|
|
8181
|
-
url_ += "customerId=" + encodeURIComponent("" + customerId) + "&";
|
|
8182
|
-
if (customerName !== undefined && customerName !== null)
|
|
8183
|
-
url_ += "customerName=" + encodeURIComponent("" + customerName) + "&";
|
|
8184
|
-
if (partNumber !== undefined && partNumber !== null)
|
|
8185
|
-
url_ += "partNumber=" + encodeURIComponent("" + partNumber) + "&";
|
|
8186
|
-
if (partRevision !== undefined && partRevision !== null)
|
|
8187
|
-
url_ += "partRevision=" + encodeURIComponent("" + partRevision) + "&";
|
|
8188
|
-
if (partName !== undefined && partName !== null)
|
|
8189
|
-
url_ += "partName=" + encodeURIComponent("" + partName) + "&";
|
|
8190
|
-
if (drawing !== undefined && drawing !== null)
|
|
8191
|
-
url_ += "drawing=" + encodeURIComponent("" + drawing) + "&";
|
|
8192
|
-
if (drawingRevision !== undefined && drawingRevision !== null)
|
|
8193
|
-
url_ += "drawingRevision=" + encodeURIComponent("" + drawingRevision) + "&";
|
|
8194
|
-
if (material !== undefined && material !== null)
|
|
8195
|
-
url_ += "material=" + encodeURIComponent("" + material) + "&";
|
|
8196
|
-
if (filterDeleted === null)
|
|
8197
|
-
throw new Error("The parameter 'filterDeleted' cannot be null.");
|
|
8198
|
-
else if (filterDeleted !== undefined)
|
|
8199
|
-
url_ += "filterDeleted=" + encodeURIComponent("" + filterDeleted) + "&";
|
|
8200
|
-
if (filter !== undefined && filter !== null)
|
|
8201
|
-
url_ += "filter=" + encodeURIComponent("" + filter) + "&";
|
|
8202
|
-
if (continuationToken !== undefined && continuationToken !== null)
|
|
8203
|
-
url_ += "continuationToken=" + encodeURIComponent("" + continuationToken) + "&";
|
|
8204
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
8205
|
-
let options_ = {
|
|
8206
|
-
method: "GET",
|
|
8207
|
-
headers: {
|
|
8208
|
-
"Accept": "application/json"
|
|
8209
|
-
}
|
|
8210
|
-
};
|
|
8211
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
8212
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
8213
|
-
}).then((_response) => {
|
|
8214
|
-
return this.processListCncParts(_response);
|
|
8215
|
-
});
|
|
8216
|
-
}
|
|
8217
|
-
processListCncParts(response) {
|
|
8218
|
-
const status = response.status;
|
|
8219
|
-
let _headers = {};
|
|
8220
|
-
if (response.headers && response.headers.forEach) {
|
|
8221
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
8222
|
-
}
|
|
8223
|
-
;
|
|
8224
|
-
if (status === 200) {
|
|
8225
|
-
return response.text().then((_responseText) => {
|
|
8226
|
-
let result200 = null;
|
|
8227
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
8228
|
-
result200 = PagedResultOfCncPartListDto.fromJS(resultData200);
|
|
8229
|
-
return result200;
|
|
8230
|
-
});
|
|
8231
|
-
}
|
|
8232
|
-
else if (status !== 200 && status !== 204) {
|
|
8233
|
-
return response.text().then((_responseText) => {
|
|
8234
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
8235
|
-
});
|
|
8236
|
-
}
|
|
8237
|
-
return Promise.resolve(null);
|
|
8238
|
-
}
|
|
8239
8176
|
updateCncPart(id, request) {
|
|
8240
8177
|
let url_ = this.baseUrl + "/cncsetup/parts/{id}";
|
|
8241
8178
|
if (id === undefined || id === null)
|
|
@@ -8404,6 +8341,45 @@ export class CncSetupClient extends AuthorizedApiBase {
|
|
|
8404
8341
|
}
|
|
8405
8342
|
return Promise.resolve(null);
|
|
8406
8343
|
}
|
|
8344
|
+
listCncPartMaterials(filter) {
|
|
8345
|
+
let url_ = this.baseUrl + "/cncsetup/parts/materials/list?";
|
|
8346
|
+
if (filter !== undefined && filter !== null)
|
|
8347
|
+
url_ += "filter=" + encodeURIComponent("" + filter) + "&";
|
|
8348
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
8349
|
+
let options_ = {
|
|
8350
|
+
method: "POST",
|
|
8351
|
+
headers: {
|
|
8352
|
+
"Accept": "application/json"
|
|
8353
|
+
}
|
|
8354
|
+
};
|
|
8355
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
8356
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
8357
|
+
}).then((_response) => {
|
|
8358
|
+
return this.processListCncPartMaterials(_response);
|
|
8359
|
+
});
|
|
8360
|
+
}
|
|
8361
|
+
processListCncPartMaterials(response) {
|
|
8362
|
+
const status = response.status;
|
|
8363
|
+
let _headers = {};
|
|
8364
|
+
if (response.headers && response.headers.forEach) {
|
|
8365
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
8366
|
+
}
|
|
8367
|
+
;
|
|
8368
|
+
if (status === 200) {
|
|
8369
|
+
return response.text().then((_responseText) => {
|
|
8370
|
+
let result200 = null;
|
|
8371
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
8372
|
+
result200 = CncPartMaterialListDto.fromJS(resultData200);
|
|
8373
|
+
return result200;
|
|
8374
|
+
});
|
|
8375
|
+
}
|
|
8376
|
+
else if (status !== 200 && status !== 204) {
|
|
8377
|
+
return response.text().then((_responseText) => {
|
|
8378
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
8379
|
+
});
|
|
8380
|
+
}
|
|
8381
|
+
return Promise.resolve(null);
|
|
8382
|
+
}
|
|
8407
8383
|
copyCncPart(request) {
|
|
8408
8384
|
let url_ = this.baseUrl + "/cncsetup/parts/copy";
|
|
8409
8385
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -8606,73 +8582,6 @@ export class CncSetupClient extends AuthorizedApiBase {
|
|
|
8606
8582
|
}
|
|
8607
8583
|
return Promise.resolve(null);
|
|
8608
8584
|
}
|
|
8609
|
-
listCncMachineOperations(pageSize, cncMachineId, customerId, customerName, partNumber, partRevision, partName, drawing, drawingRevision, material, filterDeleted, filter, continuationToken) {
|
|
8610
|
-
let url_ = this.baseUrl + "/cncsetup/operations?";
|
|
8611
|
-
if (pageSize === null)
|
|
8612
|
-
throw new Error("The parameter 'pageSize' cannot be null.");
|
|
8613
|
-
else if (pageSize !== undefined)
|
|
8614
|
-
url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
|
|
8615
|
-
if (cncMachineId !== undefined && cncMachineId !== null)
|
|
8616
|
-
url_ += "cncMachineId=" + encodeURIComponent("" + cncMachineId) + "&";
|
|
8617
|
-
if (customerId !== undefined && customerId !== null)
|
|
8618
|
-
url_ += "customerId=" + encodeURIComponent("" + customerId) + "&";
|
|
8619
|
-
if (customerName !== undefined && customerName !== null)
|
|
8620
|
-
url_ += "customerName=" + encodeURIComponent("" + customerName) + "&";
|
|
8621
|
-
if (partNumber !== undefined && partNumber !== null)
|
|
8622
|
-
url_ += "partNumber=" + encodeURIComponent("" + partNumber) + "&";
|
|
8623
|
-
if (partRevision !== undefined && partRevision !== null)
|
|
8624
|
-
url_ += "partRevision=" + encodeURIComponent("" + partRevision) + "&";
|
|
8625
|
-
if (partName !== undefined && partName !== null)
|
|
8626
|
-
url_ += "partName=" + encodeURIComponent("" + partName) + "&";
|
|
8627
|
-
if (drawing !== undefined && drawing !== null)
|
|
8628
|
-
url_ += "drawing=" + encodeURIComponent("" + drawing) + "&";
|
|
8629
|
-
if (drawingRevision !== undefined && drawingRevision !== null)
|
|
8630
|
-
url_ += "drawingRevision=" + encodeURIComponent("" + drawingRevision) + "&";
|
|
8631
|
-
if (material !== undefined && material !== null)
|
|
8632
|
-
url_ += "material=" + encodeURIComponent("" + material) + "&";
|
|
8633
|
-
if (filterDeleted === null)
|
|
8634
|
-
throw new Error("The parameter 'filterDeleted' cannot be null.");
|
|
8635
|
-
else if (filterDeleted !== undefined)
|
|
8636
|
-
url_ += "filterDeleted=" + encodeURIComponent("" + filterDeleted) + "&";
|
|
8637
|
-
if (filter !== undefined && filter !== null)
|
|
8638
|
-
url_ += "filter=" + encodeURIComponent("" + filter) + "&";
|
|
8639
|
-
if (continuationToken !== undefined && continuationToken !== null)
|
|
8640
|
-
url_ += "continuationToken=" + encodeURIComponent("" + continuationToken) + "&";
|
|
8641
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
8642
|
-
let options_ = {
|
|
8643
|
-
method: "GET",
|
|
8644
|
-
headers: {
|
|
8645
|
-
"Accept": "application/json"
|
|
8646
|
-
}
|
|
8647
|
-
};
|
|
8648
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
8649
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
8650
|
-
}).then((_response) => {
|
|
8651
|
-
return this.processListCncMachineOperations(_response);
|
|
8652
|
-
});
|
|
8653
|
-
}
|
|
8654
|
-
processListCncMachineOperations(response) {
|
|
8655
|
-
const status = response.status;
|
|
8656
|
-
let _headers = {};
|
|
8657
|
-
if (response.headers && response.headers.forEach) {
|
|
8658
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
8659
|
-
}
|
|
8660
|
-
;
|
|
8661
|
-
if (status === 200) {
|
|
8662
|
-
return response.text().then((_responseText) => {
|
|
8663
|
-
let result200 = null;
|
|
8664
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
8665
|
-
result200 = PagedResultOfCncMachineOperationSearchResultDto.fromJS(resultData200);
|
|
8666
|
-
return result200;
|
|
8667
|
-
});
|
|
8668
|
-
}
|
|
8669
|
-
else if (status !== 200 && status !== 204) {
|
|
8670
|
-
return response.text().then((_responseText) => {
|
|
8671
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
8672
|
-
});
|
|
8673
|
-
}
|
|
8674
|
-
return Promise.resolve(null);
|
|
8675
|
-
}
|
|
8676
8585
|
postListCncMachineOperations(request) {
|
|
8677
8586
|
let url_ = this.baseUrl + "/cncsetup/operations/list";
|
|
8678
8587
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -27863,6 +27772,43 @@ export class ListCncPartsRequest {
|
|
|
27863
27772
|
return data;
|
|
27864
27773
|
}
|
|
27865
27774
|
}
|
|
27775
|
+
export class CncPartMaterialListDto {
|
|
27776
|
+
constructor(data) {
|
|
27777
|
+
if (data) {
|
|
27778
|
+
for (var property in data) {
|
|
27779
|
+
if (data.hasOwnProperty(property))
|
|
27780
|
+
this[property] = data[property];
|
|
27781
|
+
}
|
|
27782
|
+
}
|
|
27783
|
+
if (!data) {
|
|
27784
|
+
this.materials = [];
|
|
27785
|
+
}
|
|
27786
|
+
}
|
|
27787
|
+
init(_data) {
|
|
27788
|
+
if (_data) {
|
|
27789
|
+
if (Array.isArray(_data["materials"])) {
|
|
27790
|
+
this.materials = [];
|
|
27791
|
+
for (let item of _data["materials"])
|
|
27792
|
+
this.materials.push(item);
|
|
27793
|
+
}
|
|
27794
|
+
}
|
|
27795
|
+
}
|
|
27796
|
+
static fromJS(data) {
|
|
27797
|
+
data = typeof data === 'object' ? data : {};
|
|
27798
|
+
let result = new CncPartMaterialListDto();
|
|
27799
|
+
result.init(data);
|
|
27800
|
+
return result;
|
|
27801
|
+
}
|
|
27802
|
+
toJSON(data) {
|
|
27803
|
+
data = typeof data === 'object' ? data : {};
|
|
27804
|
+
if (Array.isArray(this.materials)) {
|
|
27805
|
+
data["materials"] = [];
|
|
27806
|
+
for (let item of this.materials)
|
|
27807
|
+
data["materials"].push(item);
|
|
27808
|
+
}
|
|
27809
|
+
return data;
|
|
27810
|
+
}
|
|
27811
|
+
}
|
|
27866
27812
|
export class CopyCncPart {
|
|
27867
27813
|
constructor(data) {
|
|
27868
27814
|
if (data) {
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -7924,7 +7924,7 @@ export interface ICncFileTransferClient {
|
|
|
7924
7924
|
|
|
7925
7925
|
createUploadCamTransferInfo(request: UploadCamFileRequest): Promise<UploadCamFileDto>;
|
|
7926
7926
|
|
|
7927
|
-
getCamTransfer(path: string |
|
|
7927
|
+
getCamTransfer(path: string | undefined): Promise<CamTransferDto>;
|
|
7928
7928
|
|
|
7929
7929
|
startCamTransferToMachine(request: StartCamTransferToMachine): Promise<CncMachineTransferDto>;
|
|
7930
7930
|
|
|
@@ -8099,9 +8099,11 @@ export class CncFileTransferClient extends AuthorizedApiBase implements ICncFile
|
|
|
8099
8099
|
return Promise.resolve<UploadCamFileDto>(null as any);
|
|
8100
8100
|
}
|
|
8101
8101
|
|
|
8102
|
-
getCamTransfer(path: string |
|
|
8102
|
+
getCamTransfer(path: string | undefined): Promise<CamTransferDto> {
|
|
8103
8103
|
let url_ = this.baseUrl + "/cncfiletransfer/transfers/cam?";
|
|
8104
|
-
if (path
|
|
8104
|
+
if (path === null)
|
|
8105
|
+
throw new Error("The parameter 'path' cannot be null.");
|
|
8106
|
+
else if (path !== undefined)
|
|
8105
8107
|
url_ += "path=" + encodeURIComponent("" + path) + "&";
|
|
8106
8108
|
url_ = url_.replace(/[?&]$/, "");
|
|
8107
8109
|
|
|
@@ -8385,8 +8387,6 @@ export interface ICncSetupClient {
|
|
|
8385
8387
|
|
|
8386
8388
|
createCncPart(request: CreateCncPart): Promise<CncPartDto>;
|
|
8387
8389
|
|
|
8388
|
-
listCncParts(pageSize: number | undefined, customerId: string | null | undefined, customerName: string | null | undefined, partNumber: string | null | undefined, partRevision: string | null | undefined, partName: string | null | undefined, drawing: string | null | undefined, drawingRevision: string | null | undefined, material: string | null | undefined, filterDeleted: CncFilterDeletedDto | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfCncPartListDto>;
|
|
8389
|
-
|
|
8390
8390
|
updateCncPart(id: string, request: UpdateCncPartRequest): Promise<CncPartDto>;
|
|
8391
8391
|
|
|
8392
8392
|
deleteCncPart(id: string): Promise<FileResponse>;
|
|
@@ -8395,6 +8395,8 @@ export interface ICncSetupClient {
|
|
|
8395
8395
|
|
|
8396
8396
|
postListCncParts(request: ListCncPartsRequest | undefined): Promise<PagedResultOfCncPartListDto>;
|
|
8397
8397
|
|
|
8398
|
+
listCncPartMaterials(filter: string | null | undefined): Promise<CncPartMaterialListDto>;
|
|
8399
|
+
|
|
8398
8400
|
copyCncPart(request: CopyCncPart): Promise<CncPartDto>;
|
|
8399
8401
|
|
|
8400
8402
|
createUploadPartDrawingInfo(id: string, request: UploadPartDrawingRequest): Promise<UploadFileDto>;
|
|
@@ -8405,8 +8407,6 @@ export interface ICncSetupClient {
|
|
|
8405
8407
|
|
|
8406
8408
|
createCncMachineOperation(request: CreateCncMachineOperation): Promise<CncMachineOperationDto>;
|
|
8407
8409
|
|
|
8408
|
-
listCncMachineOperations(pageSize: number | undefined, cncMachineId: string | null | undefined, customerId: string | null | undefined, customerName: string | null | undefined, partNumber: string | null | undefined, partRevision: string | null | undefined, partName: string | null | undefined, drawing: string | null | undefined, drawingRevision: string | null | undefined, material: string | null | undefined, filterDeleted: CncFilterDeletedDto | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfCncMachineOperationSearchResultDto>;
|
|
8409
|
-
|
|
8410
8410
|
postListCncMachineOperations(request: ListCncMachineOperationsRequest | undefined): Promise<PagedResultOfCncMachineOperationSearchResultDto>;
|
|
8411
8411
|
|
|
8412
8412
|
updateCncMachineOperation(id: string, request: UpdateCncMachineOperationRequest): Promise<CncMachineOperationDto>;
|
|
@@ -8837,70 +8837,6 @@ export class CncSetupClient extends AuthorizedApiBase implements ICncSetupClient
|
|
|
8837
8837
|
return Promise.resolve<CncPartDto>(null as any);
|
|
8838
8838
|
}
|
|
8839
8839
|
|
|
8840
|
-
listCncParts(pageSize: number | undefined, customerId: string | null | undefined, customerName: string | null | undefined, partNumber: string | null | undefined, partRevision: string | null | undefined, partName: string | null | undefined, drawing: string | null | undefined, drawingRevision: string | null | undefined, material: string | null | undefined, filterDeleted: CncFilterDeletedDto | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfCncPartListDto> {
|
|
8841
|
-
let url_ = this.baseUrl + "/cncsetup/parts?";
|
|
8842
|
-
if (pageSize === null)
|
|
8843
|
-
throw new Error("The parameter 'pageSize' cannot be null.");
|
|
8844
|
-
else if (pageSize !== undefined)
|
|
8845
|
-
url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
|
|
8846
|
-
if (customerId !== undefined && customerId !== null)
|
|
8847
|
-
url_ += "customerId=" + encodeURIComponent("" + customerId) + "&";
|
|
8848
|
-
if (customerName !== undefined && customerName !== null)
|
|
8849
|
-
url_ += "customerName=" + encodeURIComponent("" + customerName) + "&";
|
|
8850
|
-
if (partNumber !== undefined && partNumber !== null)
|
|
8851
|
-
url_ += "partNumber=" + encodeURIComponent("" + partNumber) + "&";
|
|
8852
|
-
if (partRevision !== undefined && partRevision !== null)
|
|
8853
|
-
url_ += "partRevision=" + encodeURIComponent("" + partRevision) + "&";
|
|
8854
|
-
if (partName !== undefined && partName !== null)
|
|
8855
|
-
url_ += "partName=" + encodeURIComponent("" + partName) + "&";
|
|
8856
|
-
if (drawing !== undefined && drawing !== null)
|
|
8857
|
-
url_ += "drawing=" + encodeURIComponent("" + drawing) + "&";
|
|
8858
|
-
if (drawingRevision !== undefined && drawingRevision !== null)
|
|
8859
|
-
url_ += "drawingRevision=" + encodeURIComponent("" + drawingRevision) + "&";
|
|
8860
|
-
if (material !== undefined && material !== null)
|
|
8861
|
-
url_ += "material=" + encodeURIComponent("" + material) + "&";
|
|
8862
|
-
if (filterDeleted === null)
|
|
8863
|
-
throw new Error("The parameter 'filterDeleted' cannot be null.");
|
|
8864
|
-
else if (filterDeleted !== undefined)
|
|
8865
|
-
url_ += "filterDeleted=" + encodeURIComponent("" + filterDeleted) + "&";
|
|
8866
|
-
if (filter !== undefined && filter !== null)
|
|
8867
|
-
url_ += "filter=" + encodeURIComponent("" + filter) + "&";
|
|
8868
|
-
if (continuationToken !== undefined && continuationToken !== null)
|
|
8869
|
-
url_ += "continuationToken=" + encodeURIComponent("" + continuationToken) + "&";
|
|
8870
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
8871
|
-
|
|
8872
|
-
let options_: RequestInit = {
|
|
8873
|
-
method: "GET",
|
|
8874
|
-
headers: {
|
|
8875
|
-
"Accept": "application/json"
|
|
8876
|
-
}
|
|
8877
|
-
};
|
|
8878
|
-
|
|
8879
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
8880
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
8881
|
-
}).then((_response: Response) => {
|
|
8882
|
-
return this.processListCncParts(_response);
|
|
8883
|
-
});
|
|
8884
|
-
}
|
|
8885
|
-
|
|
8886
|
-
protected processListCncParts(response: Response): Promise<PagedResultOfCncPartListDto> {
|
|
8887
|
-
const status = response.status;
|
|
8888
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
8889
|
-
if (status === 200) {
|
|
8890
|
-
return response.text().then((_responseText) => {
|
|
8891
|
-
let result200: any = null;
|
|
8892
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
8893
|
-
result200 = PagedResultOfCncPartListDto.fromJS(resultData200);
|
|
8894
|
-
return result200;
|
|
8895
|
-
});
|
|
8896
|
-
} else if (status !== 200 && status !== 204) {
|
|
8897
|
-
return response.text().then((_responseText) => {
|
|
8898
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
8899
|
-
});
|
|
8900
|
-
}
|
|
8901
|
-
return Promise.resolve<PagedResultOfCncPartListDto>(null as any);
|
|
8902
|
-
}
|
|
8903
|
-
|
|
8904
8840
|
updateCncPart(id: string, request: UpdateCncPartRequest): Promise<CncPartDto> {
|
|
8905
8841
|
let url_ = this.baseUrl + "/cncsetup/parts/{id}";
|
|
8906
8842
|
if (id === undefined || id === null)
|
|
@@ -9066,6 +9002,44 @@ export class CncSetupClient extends AuthorizedApiBase implements ICncSetupClient
|
|
|
9066
9002
|
return Promise.resolve<PagedResultOfCncPartListDto>(null as any);
|
|
9067
9003
|
}
|
|
9068
9004
|
|
|
9005
|
+
listCncPartMaterials(filter: string | null | undefined): Promise<CncPartMaterialListDto> {
|
|
9006
|
+
let url_ = this.baseUrl + "/cncsetup/parts/materials/list?";
|
|
9007
|
+
if (filter !== undefined && filter !== null)
|
|
9008
|
+
url_ += "filter=" + encodeURIComponent("" + filter) + "&";
|
|
9009
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
9010
|
+
|
|
9011
|
+
let options_: RequestInit = {
|
|
9012
|
+
method: "POST",
|
|
9013
|
+
headers: {
|
|
9014
|
+
"Accept": "application/json"
|
|
9015
|
+
}
|
|
9016
|
+
};
|
|
9017
|
+
|
|
9018
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
9019
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
9020
|
+
}).then((_response: Response) => {
|
|
9021
|
+
return this.processListCncPartMaterials(_response);
|
|
9022
|
+
});
|
|
9023
|
+
}
|
|
9024
|
+
|
|
9025
|
+
protected processListCncPartMaterials(response: Response): Promise<CncPartMaterialListDto> {
|
|
9026
|
+
const status = response.status;
|
|
9027
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
9028
|
+
if (status === 200) {
|
|
9029
|
+
return response.text().then((_responseText) => {
|
|
9030
|
+
let result200: any = null;
|
|
9031
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
9032
|
+
result200 = CncPartMaterialListDto.fromJS(resultData200);
|
|
9033
|
+
return result200;
|
|
9034
|
+
});
|
|
9035
|
+
} else if (status !== 200 && status !== 204) {
|
|
9036
|
+
return response.text().then((_responseText) => {
|
|
9037
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
9038
|
+
});
|
|
9039
|
+
}
|
|
9040
|
+
return Promise.resolve<CncPartMaterialListDto>(null as any);
|
|
9041
|
+
}
|
|
9042
|
+
|
|
9069
9043
|
copyCncPart(request: CopyCncPart): Promise<CncPartDto> {
|
|
9070
9044
|
let url_ = this.baseUrl + "/cncsetup/parts/copy";
|
|
9071
9045
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -9267,72 +9241,6 @@ export class CncSetupClient extends AuthorizedApiBase implements ICncSetupClient
|
|
|
9267
9241
|
return Promise.resolve<CncMachineOperationDto>(null as any);
|
|
9268
9242
|
}
|
|
9269
9243
|
|
|
9270
|
-
listCncMachineOperations(pageSize: number | undefined, cncMachineId: string | null | undefined, customerId: string | null | undefined, customerName: string | null | undefined, partNumber: string | null | undefined, partRevision: string | null | undefined, partName: string | null | undefined, drawing: string | null | undefined, drawingRevision: string | null | undefined, material: string | null | undefined, filterDeleted: CncFilterDeletedDto | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfCncMachineOperationSearchResultDto> {
|
|
9271
|
-
let url_ = this.baseUrl + "/cncsetup/operations?";
|
|
9272
|
-
if (pageSize === null)
|
|
9273
|
-
throw new Error("The parameter 'pageSize' cannot be null.");
|
|
9274
|
-
else if (pageSize !== undefined)
|
|
9275
|
-
url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
|
|
9276
|
-
if (cncMachineId !== undefined && cncMachineId !== null)
|
|
9277
|
-
url_ += "cncMachineId=" + encodeURIComponent("" + cncMachineId) + "&";
|
|
9278
|
-
if (customerId !== undefined && customerId !== null)
|
|
9279
|
-
url_ += "customerId=" + encodeURIComponent("" + customerId) + "&";
|
|
9280
|
-
if (customerName !== undefined && customerName !== null)
|
|
9281
|
-
url_ += "customerName=" + encodeURIComponent("" + customerName) + "&";
|
|
9282
|
-
if (partNumber !== undefined && partNumber !== null)
|
|
9283
|
-
url_ += "partNumber=" + encodeURIComponent("" + partNumber) + "&";
|
|
9284
|
-
if (partRevision !== undefined && partRevision !== null)
|
|
9285
|
-
url_ += "partRevision=" + encodeURIComponent("" + partRevision) + "&";
|
|
9286
|
-
if (partName !== undefined && partName !== null)
|
|
9287
|
-
url_ += "partName=" + encodeURIComponent("" + partName) + "&";
|
|
9288
|
-
if (drawing !== undefined && drawing !== null)
|
|
9289
|
-
url_ += "drawing=" + encodeURIComponent("" + drawing) + "&";
|
|
9290
|
-
if (drawingRevision !== undefined && drawingRevision !== null)
|
|
9291
|
-
url_ += "drawingRevision=" + encodeURIComponent("" + drawingRevision) + "&";
|
|
9292
|
-
if (material !== undefined && material !== null)
|
|
9293
|
-
url_ += "material=" + encodeURIComponent("" + material) + "&";
|
|
9294
|
-
if (filterDeleted === null)
|
|
9295
|
-
throw new Error("The parameter 'filterDeleted' cannot be null.");
|
|
9296
|
-
else if (filterDeleted !== undefined)
|
|
9297
|
-
url_ += "filterDeleted=" + encodeURIComponent("" + filterDeleted) + "&";
|
|
9298
|
-
if (filter !== undefined && filter !== null)
|
|
9299
|
-
url_ += "filter=" + encodeURIComponent("" + filter) + "&";
|
|
9300
|
-
if (continuationToken !== undefined && continuationToken !== null)
|
|
9301
|
-
url_ += "continuationToken=" + encodeURIComponent("" + continuationToken) + "&";
|
|
9302
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
9303
|
-
|
|
9304
|
-
let options_: RequestInit = {
|
|
9305
|
-
method: "GET",
|
|
9306
|
-
headers: {
|
|
9307
|
-
"Accept": "application/json"
|
|
9308
|
-
}
|
|
9309
|
-
};
|
|
9310
|
-
|
|
9311
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
9312
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
9313
|
-
}).then((_response: Response) => {
|
|
9314
|
-
return this.processListCncMachineOperations(_response);
|
|
9315
|
-
});
|
|
9316
|
-
}
|
|
9317
|
-
|
|
9318
|
-
protected processListCncMachineOperations(response: Response): Promise<PagedResultOfCncMachineOperationSearchResultDto> {
|
|
9319
|
-
const status = response.status;
|
|
9320
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
9321
|
-
if (status === 200) {
|
|
9322
|
-
return response.text().then((_responseText) => {
|
|
9323
|
-
let result200: any = null;
|
|
9324
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
9325
|
-
result200 = PagedResultOfCncMachineOperationSearchResultDto.fromJS(resultData200);
|
|
9326
|
-
return result200;
|
|
9327
|
-
});
|
|
9328
|
-
} else if (status !== 200 && status !== 204) {
|
|
9329
|
-
return response.text().then((_responseText) => {
|
|
9330
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
9331
|
-
});
|
|
9332
|
-
}
|
|
9333
|
-
return Promise.resolve<PagedResultOfCncMachineOperationSearchResultDto>(null as any);
|
|
9334
|
-
}
|
|
9335
|
-
|
|
9336
9244
|
postListCncMachineOperations(request: ListCncMachineOperationsRequest | undefined): Promise<PagedResultOfCncMachineOperationSearchResultDto> {
|
|
9337
9245
|
let url_ = this.baseUrl + "/cncsetup/operations/list";
|
|
9338
9246
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -33250,8 +33158,6 @@ export interface ICncPartListDto {
|
|
|
33250
33158
|
description?: string | null;
|
|
33251
33159
|
}
|
|
33252
33160
|
|
|
33253
|
-
export type CncFilterDeletedDto = "NoneDeleted" | "OnlyDeleted" | "All";
|
|
33254
|
-
|
|
33255
33161
|
export class ListCncPartsRequest implements IListCncPartsRequest {
|
|
33256
33162
|
pageSize?: number | null;
|
|
33257
33163
|
customerId?: string | null;
|
|
@@ -33356,6 +33262,55 @@ export interface IListCncPartsRequest {
|
|
|
33356
33262
|
operationMaxUpdatedDate?: Date | null;
|
|
33357
33263
|
}
|
|
33358
33264
|
|
|
33265
|
+
export type CncFilterDeletedDto = "NoneDeleted" | "OnlyDeleted" | "All";
|
|
33266
|
+
|
|
33267
|
+
export class CncPartMaterialListDto implements ICncPartMaterialListDto {
|
|
33268
|
+
materials!: string[];
|
|
33269
|
+
|
|
33270
|
+
constructor(data?: ICncPartMaterialListDto) {
|
|
33271
|
+
if (data) {
|
|
33272
|
+
for (var property in data) {
|
|
33273
|
+
if (data.hasOwnProperty(property))
|
|
33274
|
+
(<any>this)[property] = (<any>data)[property];
|
|
33275
|
+
}
|
|
33276
|
+
}
|
|
33277
|
+
if (!data) {
|
|
33278
|
+
this.materials = [];
|
|
33279
|
+
}
|
|
33280
|
+
}
|
|
33281
|
+
|
|
33282
|
+
init(_data?: any) {
|
|
33283
|
+
if (_data) {
|
|
33284
|
+
if (Array.isArray(_data["materials"])) {
|
|
33285
|
+
this.materials = [] as any;
|
|
33286
|
+
for (let item of _data["materials"])
|
|
33287
|
+
this.materials!.push(item);
|
|
33288
|
+
}
|
|
33289
|
+
}
|
|
33290
|
+
}
|
|
33291
|
+
|
|
33292
|
+
static fromJS(data: any): CncPartMaterialListDto {
|
|
33293
|
+
data = typeof data === 'object' ? data : {};
|
|
33294
|
+
let result = new CncPartMaterialListDto();
|
|
33295
|
+
result.init(data);
|
|
33296
|
+
return result;
|
|
33297
|
+
}
|
|
33298
|
+
|
|
33299
|
+
toJSON(data?: any) {
|
|
33300
|
+
data = typeof data === 'object' ? data : {};
|
|
33301
|
+
if (Array.isArray(this.materials)) {
|
|
33302
|
+
data["materials"] = [];
|
|
33303
|
+
for (let item of this.materials)
|
|
33304
|
+
data["materials"].push(item);
|
|
33305
|
+
}
|
|
33306
|
+
return data;
|
|
33307
|
+
}
|
|
33308
|
+
}
|
|
33309
|
+
|
|
33310
|
+
export interface ICncPartMaterialListDto {
|
|
33311
|
+
materials: string[];
|
|
33312
|
+
}
|
|
33313
|
+
|
|
33359
33314
|
export class CopyCncPart implements ICopyCncPart {
|
|
33360
33315
|
sourcePartId!: string;
|
|
33361
33316
|
customerId?: string | null;
|