@ignos/api-client 20251027.0.13022-alpha → 20251029.0.13058-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 -10
- package/lib/ignosportal-api.js +114 -10
- package/package.json +1 -1
- package/src/ignosportal-api.ts +129 -15
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -408,11 +408,11 @@ export declare class PulseClient extends AuthorizedApiBase implements IPulseClie
|
|
|
408
408
|
protected processUpdatePulseSettings(response: Response): Promise<PulseSettingsDto>;
|
|
409
409
|
}
|
|
410
410
|
export interface IUtilizationClient {
|
|
411
|
-
getCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined,
|
|
412
|
-
getCrossCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined,
|
|
413
|
-
getUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined,
|
|
414
|
-
getCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined,
|
|
415
|
-
getCrossCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined,
|
|
411
|
+
getCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | undefined, endTime: Date | null | undefined, ianaTimeZone: string | null | undefined): Promise<CompanyUtilizationDto>;
|
|
412
|
+
getCrossCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | undefined, endTime: Date | null | undefined, ianaTimeZone: string | null | undefined): Promise<CrossCompanyUtilizationDto>;
|
|
413
|
+
getUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | undefined, endTime: Date | null | undefined, ianaTimeZone: string | null | undefined, assetId: number | null | undefined, assetExternalId: string | null | undefined): Promise<MachineUtilizationDatapointListDto>;
|
|
414
|
+
getCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | undefined, endTime: Date | null | undefined, ianaTimeZone: string | null | undefined): Promise<CompanyUtilizationDatapointListDto>;
|
|
415
|
+
getCrossCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | undefined, endTime: Date | null | undefined, ianaTimeZone: string | null | undefined): Promise<CrossCompanyUtilizationDatapointListDto>;
|
|
416
416
|
}
|
|
417
417
|
export declare class UtilizationClient extends AuthorizedApiBase implements IUtilizationClient {
|
|
418
418
|
private http;
|
|
@@ -421,15 +421,15 @@ export declare class UtilizationClient extends AuthorizedApiBase implements IUti
|
|
|
421
421
|
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
|
|
422
422
|
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
423
423
|
});
|
|
424
|
-
getCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined,
|
|
424
|
+
getCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | undefined, endTime: Date | null | undefined, ianaTimeZone: string | null | undefined): Promise<CompanyUtilizationDto>;
|
|
425
425
|
protected processGetCompanyUtilization(response: Response): Promise<CompanyUtilizationDto>;
|
|
426
|
-
getCrossCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined,
|
|
426
|
+
getCrossCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | undefined, endTime: Date | null | undefined, ianaTimeZone: string | null | undefined): Promise<CrossCompanyUtilizationDto>;
|
|
427
427
|
protected processGetCrossCompanyUtilization(response: Response): Promise<CrossCompanyUtilizationDto>;
|
|
428
|
-
getUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined,
|
|
428
|
+
getUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | undefined, endTime: Date | null | undefined, ianaTimeZone: string | null | undefined, assetId: number | null | undefined, assetExternalId: string | null | undefined): Promise<MachineUtilizationDatapointListDto>;
|
|
429
429
|
protected processGetUtilizationDatapoints(response: Response): Promise<MachineUtilizationDatapointListDto>;
|
|
430
|
-
getCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined,
|
|
430
|
+
getCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | undefined, endTime: Date | null | undefined, ianaTimeZone: string | null | undefined): Promise<CompanyUtilizationDatapointListDto>;
|
|
431
431
|
protected processGetCompanyUtilizationDatapoints(response: Response): Promise<CompanyUtilizationDatapointListDto>;
|
|
432
|
-
getCrossCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined,
|
|
432
|
+
getCrossCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | undefined, endTime: Date | null | undefined, ianaTimeZone: string | null | undefined): Promise<CrossCompanyUtilizationDatapointListDto>;
|
|
433
433
|
protected processGetCrossCompanyUtilizationDatapoints(response: Response): Promise<CrossCompanyUtilizationDatapointListDto>;
|
|
434
434
|
}
|
|
435
435
|
export interface IMrbClient {
|
|
@@ -1251,12 +1251,14 @@ export interface ICncSetupClient {
|
|
|
1251
1251
|
listCncToolByOperation(id: string): Promise<CncToolDto[]>;
|
|
1252
1252
|
updateCncMachineOperationTool(operationId: string, id: number, request: UpdateCncMachineOperationToolRequest): Promise<CncToolDto>;
|
|
1253
1253
|
deleteCncMachineOperationTool(operationId: string, id: number): Promise<void>;
|
|
1254
|
+
deleteCncMachineOperationToolMultiple(operationId: string, idsToDelete: number[]): Promise<void>;
|
|
1254
1255
|
uploadOperationCncToolImage(operationId: string, id: number, request: UploadCncToolImageRequest): Promise<ImageFileDto>;
|
|
1255
1256
|
deleteCncMachineOperationToolImage(operationId: string, id: number, filename: string): Promise<void>;
|
|
1256
1257
|
createCncMachineTool(id: string, request: CreateCncMachineOperationToolRequest): Promise<CncToolDto>;
|
|
1257
1258
|
listCncToolByCncMachine(id: string): Promise<CncToolDto[]>;
|
|
1258
1259
|
updateCncMachineTool(cncMachineId: string, id: number, request: UpdateCncMachineToolRequest): Promise<CncToolDto>;
|
|
1259
1260
|
deleteCncMachineTool(cncMachineId: string, id: number): Promise<void>;
|
|
1261
|
+
deleteCncMachineToolMultiple(cncMachineId: string, idsToDelete: number[]): Promise<void>;
|
|
1260
1262
|
uploadCncMachineToolImage(machineId: string, id: number, request: UploadCncToolImageRequest): Promise<ImageFileDto>;
|
|
1261
1263
|
deleteCncMachineToolImage(machineId: string, id: number, filename: string): Promise<void>;
|
|
1262
1264
|
importOperationWithTools(request: ImportOperationWithTool): Promise<void>;
|
|
@@ -1357,6 +1359,8 @@ export declare class CncSetupClient extends AuthorizedApiBase implements ICncSet
|
|
|
1357
1359
|
protected processUpdateCncMachineOperationTool(response: Response): Promise<CncToolDto>;
|
|
1358
1360
|
deleteCncMachineOperationTool(operationId: string, id: number): Promise<void>;
|
|
1359
1361
|
protected processDeleteCncMachineOperationTool(response: Response): Promise<void>;
|
|
1362
|
+
deleteCncMachineOperationToolMultiple(operationId: string, idsToDelete: number[]): Promise<void>;
|
|
1363
|
+
protected processDeleteCncMachineOperationToolMultiple(response: Response): Promise<void>;
|
|
1360
1364
|
uploadOperationCncToolImage(operationId: string, id: number, request: UploadCncToolImageRequest): Promise<ImageFileDto>;
|
|
1361
1365
|
protected processUploadOperationCncToolImage(response: Response): Promise<ImageFileDto>;
|
|
1362
1366
|
deleteCncMachineOperationToolImage(operationId: string, id: number, filename: string): Promise<void>;
|
|
@@ -1369,6 +1373,8 @@ export declare class CncSetupClient extends AuthorizedApiBase implements ICncSet
|
|
|
1369
1373
|
protected processUpdateCncMachineTool(response: Response): Promise<CncToolDto>;
|
|
1370
1374
|
deleteCncMachineTool(cncMachineId: string, id: number): Promise<void>;
|
|
1371
1375
|
protected processDeleteCncMachineTool(response: Response): Promise<void>;
|
|
1376
|
+
deleteCncMachineToolMultiple(cncMachineId: string, idsToDelete: number[]): Promise<void>;
|
|
1377
|
+
protected processDeleteCncMachineToolMultiple(response: Response): Promise<void>;
|
|
1372
1378
|
uploadCncMachineToolImage(machineId: string, id: number, request: UploadCncToolImageRequest): Promise<ImageFileDto>;
|
|
1373
1379
|
protected processUploadCncMachineToolImage(response: Response): Promise<ImageFileDto>;
|
|
1374
1380
|
deleteCncMachineToolImage(machineId: string, id: number, filename: string): Promise<void>;
|
|
@@ -9708,6 +9714,7 @@ export declare class BookingParcelDto implements IBookingParcelDto {
|
|
|
9708
9714
|
partNumber?: string | null;
|
|
9709
9715
|
projectId?: string | null;
|
|
9710
9716
|
projectName?: string | null;
|
|
9717
|
+
projectBomPosition?: string | null;
|
|
9711
9718
|
quantity?: number | null;
|
|
9712
9719
|
material?: string | null;
|
|
9713
9720
|
materialOperation?: number | null;
|
|
@@ -9730,6 +9737,7 @@ export interface IBookingParcelDto {
|
|
|
9730
9737
|
partNumber?: string | null;
|
|
9731
9738
|
projectId?: string | null;
|
|
9732
9739
|
projectName?: string | null;
|
|
9740
|
+
projectBomPosition?: string | null;
|
|
9733
9741
|
quantity?: number | null;
|
|
9734
9742
|
material?: string | null;
|
|
9735
9743
|
materialOperation?: number | null;
|
|
@@ -10306,6 +10314,7 @@ export declare class TrackingParcelDto implements ITrackingParcelDto {
|
|
|
10306
10314
|
partNumber?: string | null;
|
|
10307
10315
|
projectId?: string | null;
|
|
10308
10316
|
projectName?: string | null;
|
|
10317
|
+
projectBomPosition?: string | null;
|
|
10309
10318
|
quantity?: number | null;
|
|
10310
10319
|
material?: string | null;
|
|
10311
10320
|
covered?: MaterialCoveredDto | null;
|
|
@@ -10323,6 +10332,7 @@ export interface ITrackingParcelDto {
|
|
|
10323
10332
|
partNumber?: string | null;
|
|
10324
10333
|
projectId?: string | null;
|
|
10325
10334
|
projectName?: string | null;
|
|
10335
|
+
projectBomPosition?: string | null;
|
|
10326
10336
|
quantity?: number | null;
|
|
10327
10337
|
material?: string | null;
|
|
10328
10338
|
covered?: MaterialCoveredDto | null;
|
|
@@ -10427,6 +10437,7 @@ export declare class TrackingHistoryFlattenedDto implements ITrackingHistoryFlat
|
|
|
10427
10437
|
partNumber?: string | null;
|
|
10428
10438
|
projectId?: string | null;
|
|
10429
10439
|
projectName?: string | null;
|
|
10440
|
+
projectBomPosition?: string | null;
|
|
10430
10441
|
quantity?: number | null;
|
|
10431
10442
|
material?: string | null;
|
|
10432
10443
|
covered?: MaterialCoveredDto | null;
|
|
@@ -10452,6 +10463,7 @@ export interface ITrackingHistoryFlattenedDto {
|
|
|
10452
10463
|
partNumber?: string | null;
|
|
10453
10464
|
projectId?: string | null;
|
|
10454
10465
|
projectName?: string | null;
|
|
10466
|
+
projectBomPosition?: string | null;
|
|
10455
10467
|
quantity?: number | null;
|
|
10456
10468
|
material?: string | null;
|
|
10457
10469
|
covered?: MaterialCoveredDto | null;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -2416,16 +2416,20 @@ export class UtilizationClient extends AuthorizedApiBase {
|
|
|
2416
2416
|
this.http = http ? http : window;
|
|
2417
2417
|
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
2418
2418
|
}
|
|
2419
|
-
getCompanyUtilization(utilizationType, startTime, endTime) {
|
|
2419
|
+
getCompanyUtilization(utilizationType, startTime, endTime, ianaTimeZone) {
|
|
2420
2420
|
let url_ = this.baseUrl + "/utilization?";
|
|
2421
2421
|
if (utilizationType === null)
|
|
2422
2422
|
throw new globalThis.Error("The parameter 'utilizationType' cannot be null.");
|
|
2423
2423
|
else if (utilizationType !== undefined)
|
|
2424
2424
|
url_ += "utilizationType=" + encodeURIComponent("" + utilizationType) + "&";
|
|
2425
|
-
if (startTime
|
|
2425
|
+
if (startTime === null)
|
|
2426
|
+
throw new globalThis.Error("The parameter 'startTime' cannot be null.");
|
|
2427
|
+
else if (startTime !== undefined)
|
|
2426
2428
|
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
2427
2429
|
if (endTime !== undefined && endTime !== null)
|
|
2428
2430
|
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
2431
|
+
if (ianaTimeZone !== undefined && ianaTimeZone !== null)
|
|
2432
|
+
url_ += "ianaTimeZone=" + encodeURIComponent("" + ianaTimeZone) + "&";
|
|
2429
2433
|
url_ = url_.replace(/[?&]$/, "");
|
|
2430
2434
|
let options_ = {
|
|
2431
2435
|
method: "GET",
|
|
@@ -2461,16 +2465,20 @@ export class UtilizationClient extends AuthorizedApiBase {
|
|
|
2461
2465
|
}
|
|
2462
2466
|
return Promise.resolve(null);
|
|
2463
2467
|
}
|
|
2464
|
-
getCrossCompanyUtilization(utilizationType, startTime, endTime) {
|
|
2468
|
+
getCrossCompanyUtilization(utilizationType, startTime, endTime, ianaTimeZone) {
|
|
2465
2469
|
let url_ = this.baseUrl + "/utilization/cross-company?";
|
|
2466
2470
|
if (utilizationType === null)
|
|
2467
2471
|
throw new globalThis.Error("The parameter 'utilizationType' cannot be null.");
|
|
2468
2472
|
else if (utilizationType !== undefined)
|
|
2469
2473
|
url_ += "utilizationType=" + encodeURIComponent("" + utilizationType) + "&";
|
|
2470
|
-
if (startTime
|
|
2474
|
+
if (startTime === null)
|
|
2475
|
+
throw new globalThis.Error("The parameter 'startTime' cannot be null.");
|
|
2476
|
+
else if (startTime !== undefined)
|
|
2471
2477
|
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
2472
2478
|
if (endTime !== undefined && endTime !== null)
|
|
2473
2479
|
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
2480
|
+
if (ianaTimeZone !== undefined && ianaTimeZone !== null)
|
|
2481
|
+
url_ += "ianaTimeZone=" + encodeURIComponent("" + ianaTimeZone) + "&";
|
|
2474
2482
|
url_ = url_.replace(/[?&]$/, "");
|
|
2475
2483
|
let options_ = {
|
|
2476
2484
|
method: "GET",
|
|
@@ -2506,16 +2514,20 @@ export class UtilizationClient extends AuthorizedApiBase {
|
|
|
2506
2514
|
}
|
|
2507
2515
|
return Promise.resolve(null);
|
|
2508
2516
|
}
|
|
2509
|
-
getUtilizationDatapoints(utilizationType, startTime, endTime, assetId, assetExternalId) {
|
|
2517
|
+
getUtilizationDatapoints(utilizationType, startTime, endTime, ianaTimeZone, assetId, assetExternalId) {
|
|
2510
2518
|
let url_ = this.baseUrl + "/utilization/datapoints?";
|
|
2511
2519
|
if (utilizationType === null)
|
|
2512
2520
|
throw new globalThis.Error("The parameter 'utilizationType' cannot be null.");
|
|
2513
2521
|
else if (utilizationType !== undefined)
|
|
2514
2522
|
url_ += "utilizationType=" + encodeURIComponent("" + utilizationType) + "&";
|
|
2515
|
-
if (startTime
|
|
2523
|
+
if (startTime === null)
|
|
2524
|
+
throw new globalThis.Error("The parameter 'startTime' cannot be null.");
|
|
2525
|
+
else if (startTime !== undefined)
|
|
2516
2526
|
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
2517
2527
|
if (endTime !== undefined && endTime !== null)
|
|
2518
2528
|
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
2529
|
+
if (ianaTimeZone !== undefined && ianaTimeZone !== null)
|
|
2530
|
+
url_ += "ianaTimeZone=" + encodeURIComponent("" + ianaTimeZone) + "&";
|
|
2519
2531
|
if (assetId !== undefined && assetId !== null)
|
|
2520
2532
|
url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
|
|
2521
2533
|
if (assetExternalId !== undefined && assetExternalId !== null)
|
|
@@ -2555,16 +2567,20 @@ export class UtilizationClient extends AuthorizedApiBase {
|
|
|
2555
2567
|
}
|
|
2556
2568
|
return Promise.resolve(null);
|
|
2557
2569
|
}
|
|
2558
|
-
getCompanyUtilizationDatapoints(utilizationType, startTime, endTime) {
|
|
2570
|
+
getCompanyUtilizationDatapoints(utilizationType, startTime, endTime, ianaTimeZone) {
|
|
2559
2571
|
let url_ = this.baseUrl + "/utilization/datapoints/company?";
|
|
2560
2572
|
if (utilizationType === null)
|
|
2561
2573
|
throw new globalThis.Error("The parameter 'utilizationType' cannot be null.");
|
|
2562
2574
|
else if (utilizationType !== undefined)
|
|
2563
2575
|
url_ += "utilizationType=" + encodeURIComponent("" + utilizationType) + "&";
|
|
2564
|
-
if (startTime
|
|
2576
|
+
if (startTime === null)
|
|
2577
|
+
throw new globalThis.Error("The parameter 'startTime' cannot be null.");
|
|
2578
|
+
else if (startTime !== undefined)
|
|
2565
2579
|
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
2566
2580
|
if (endTime !== undefined && endTime !== null)
|
|
2567
2581
|
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
2582
|
+
if (ianaTimeZone !== undefined && ianaTimeZone !== null)
|
|
2583
|
+
url_ += "ianaTimeZone=" + encodeURIComponent("" + ianaTimeZone) + "&";
|
|
2568
2584
|
url_ = url_.replace(/[?&]$/, "");
|
|
2569
2585
|
let options_ = {
|
|
2570
2586
|
method: "GET",
|
|
@@ -2600,16 +2616,20 @@ export class UtilizationClient extends AuthorizedApiBase {
|
|
|
2600
2616
|
}
|
|
2601
2617
|
return Promise.resolve(null);
|
|
2602
2618
|
}
|
|
2603
|
-
getCrossCompanyUtilizationDatapoints(utilizationType, startTime, endTime) {
|
|
2619
|
+
getCrossCompanyUtilizationDatapoints(utilizationType, startTime, endTime, ianaTimeZone) {
|
|
2604
2620
|
let url_ = this.baseUrl + "/utilization/datapoints/cross-company?";
|
|
2605
2621
|
if (utilizationType === null)
|
|
2606
2622
|
throw new globalThis.Error("The parameter 'utilizationType' cannot be null.");
|
|
2607
2623
|
else if (utilizationType !== undefined)
|
|
2608
2624
|
url_ += "utilizationType=" + encodeURIComponent("" + utilizationType) + "&";
|
|
2609
|
-
if (startTime
|
|
2625
|
+
if (startTime === null)
|
|
2626
|
+
throw new globalThis.Error("The parameter 'startTime' cannot be null.");
|
|
2627
|
+
else if (startTime !== undefined)
|
|
2610
2628
|
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
2611
2629
|
if (endTime !== undefined && endTime !== null)
|
|
2612
2630
|
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
2631
|
+
if (ianaTimeZone !== undefined && ianaTimeZone !== null)
|
|
2632
|
+
url_ += "ianaTimeZone=" + encodeURIComponent("" + ianaTimeZone) + "&";
|
|
2613
2633
|
url_ = url_.replace(/[?&]$/, "");
|
|
2614
2634
|
let options_ = {
|
|
2615
2635
|
method: "GET",
|
|
@@ -11396,6 +11416,45 @@ export class CncSetupClient extends AuthorizedApiBase {
|
|
|
11396
11416
|
}
|
|
11397
11417
|
return Promise.resolve(null);
|
|
11398
11418
|
}
|
|
11419
|
+
deleteCncMachineOperationToolMultiple(operationId, idsToDelete) {
|
|
11420
|
+
let url_ = this.baseUrl + "/cncsetup/operations/{operationId}/tools";
|
|
11421
|
+
if (operationId === undefined || operationId === null)
|
|
11422
|
+
throw new globalThis.Error("The parameter 'operationId' must be defined.");
|
|
11423
|
+
url_ = url_.replace("{operationId}", encodeURIComponent("" + operationId));
|
|
11424
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
11425
|
+
const content_ = JSON.stringify(idsToDelete);
|
|
11426
|
+
let options_ = {
|
|
11427
|
+
body: content_,
|
|
11428
|
+
method: "DELETE",
|
|
11429
|
+
headers: {
|
|
11430
|
+
"Content-Type": "application/json",
|
|
11431
|
+
}
|
|
11432
|
+
};
|
|
11433
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
11434
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
11435
|
+
}).then((_response) => {
|
|
11436
|
+
return this.processDeleteCncMachineOperationToolMultiple(_response);
|
|
11437
|
+
});
|
|
11438
|
+
}
|
|
11439
|
+
processDeleteCncMachineOperationToolMultiple(response) {
|
|
11440
|
+
const status = response.status;
|
|
11441
|
+
let _headers = {};
|
|
11442
|
+
if (response.headers && response.headers.forEach) {
|
|
11443
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
11444
|
+
}
|
|
11445
|
+
;
|
|
11446
|
+
if (status === 204) {
|
|
11447
|
+
return response.text().then((_responseText) => {
|
|
11448
|
+
return;
|
|
11449
|
+
});
|
|
11450
|
+
}
|
|
11451
|
+
else if (status !== 200 && status !== 204) {
|
|
11452
|
+
return response.text().then((_responseText) => {
|
|
11453
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
11454
|
+
});
|
|
11455
|
+
}
|
|
11456
|
+
return Promise.resolve(null);
|
|
11457
|
+
}
|
|
11399
11458
|
uploadOperationCncToolImage(operationId, id, request) {
|
|
11400
11459
|
let url_ = this.baseUrl + "/cncsetup/operations/{operationId}/tools/{id}/uploadimage";
|
|
11401
11460
|
if (operationId === undefined || operationId === null)
|
|
@@ -11654,6 +11713,45 @@ export class CncSetupClient extends AuthorizedApiBase {
|
|
|
11654
11713
|
}
|
|
11655
11714
|
return Promise.resolve(null);
|
|
11656
11715
|
}
|
|
11716
|
+
deleteCncMachineToolMultiple(cncMachineId, idsToDelete) {
|
|
11717
|
+
let url_ = this.baseUrl + "/cncsetup/machines/{cncMachineId}/tools";
|
|
11718
|
+
if (cncMachineId === undefined || cncMachineId === null)
|
|
11719
|
+
throw new globalThis.Error("The parameter 'cncMachineId' must be defined.");
|
|
11720
|
+
url_ = url_.replace("{cncMachineId}", encodeURIComponent("" + cncMachineId));
|
|
11721
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
11722
|
+
const content_ = JSON.stringify(idsToDelete);
|
|
11723
|
+
let options_ = {
|
|
11724
|
+
body: content_,
|
|
11725
|
+
method: "DELETE",
|
|
11726
|
+
headers: {
|
|
11727
|
+
"Content-Type": "application/json",
|
|
11728
|
+
}
|
|
11729
|
+
};
|
|
11730
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
11731
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
11732
|
+
}).then((_response) => {
|
|
11733
|
+
return this.processDeleteCncMachineToolMultiple(_response);
|
|
11734
|
+
});
|
|
11735
|
+
}
|
|
11736
|
+
processDeleteCncMachineToolMultiple(response) {
|
|
11737
|
+
const status = response.status;
|
|
11738
|
+
let _headers = {};
|
|
11739
|
+
if (response.headers && response.headers.forEach) {
|
|
11740
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
11741
|
+
}
|
|
11742
|
+
;
|
|
11743
|
+
if (status === 204) {
|
|
11744
|
+
return response.text().then((_responseText) => {
|
|
11745
|
+
return;
|
|
11746
|
+
});
|
|
11747
|
+
}
|
|
11748
|
+
else if (status !== 200 && status !== 204) {
|
|
11749
|
+
return response.text().then((_responseText) => {
|
|
11750
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
11751
|
+
});
|
|
11752
|
+
}
|
|
11753
|
+
return Promise.resolve(null);
|
|
11754
|
+
}
|
|
11657
11755
|
uploadCncMachineToolImage(machineId, id, request) {
|
|
11658
11756
|
let url_ = this.baseUrl + "/cncsetup/machines/{machineId}/tools/{id}/uploadimage";
|
|
11659
11757
|
if (machineId === undefined || machineId === null)
|
|
@@ -37608,6 +37706,7 @@ export class BookingParcelDto {
|
|
|
37608
37706
|
this.partNumber = _data["partNumber"];
|
|
37609
37707
|
this.projectId = _data["projectId"];
|
|
37610
37708
|
this.projectName = _data["projectName"];
|
|
37709
|
+
this.projectBomPosition = _data["projectBomPosition"];
|
|
37611
37710
|
this.quantity = _data["quantity"];
|
|
37612
37711
|
this.material = _data["material"];
|
|
37613
37712
|
this.materialOperation = _data["materialOperation"];
|
|
@@ -37634,6 +37733,7 @@ export class BookingParcelDto {
|
|
|
37634
37733
|
data["partNumber"] = this.partNumber;
|
|
37635
37734
|
data["projectId"] = this.projectId;
|
|
37636
37735
|
data["projectName"] = this.projectName;
|
|
37736
|
+
data["projectBomPosition"] = this.projectBomPosition;
|
|
37637
37737
|
data["quantity"] = this.quantity;
|
|
37638
37738
|
data["material"] = this.material;
|
|
37639
37739
|
data["materialOperation"] = this.materialOperation;
|
|
@@ -39065,6 +39165,7 @@ export class TrackingParcelDto {
|
|
|
39065
39165
|
this.partNumber = _data["partNumber"];
|
|
39066
39166
|
this.projectId = _data["projectId"];
|
|
39067
39167
|
this.projectName = _data["projectName"];
|
|
39168
|
+
this.projectBomPosition = _data["projectBomPosition"];
|
|
39068
39169
|
this.quantity = _data["quantity"];
|
|
39069
39170
|
this.material = _data["material"];
|
|
39070
39171
|
this.covered = _data["covered"];
|
|
@@ -39094,6 +39195,7 @@ export class TrackingParcelDto {
|
|
|
39094
39195
|
data["partNumber"] = this.partNumber;
|
|
39095
39196
|
data["projectId"] = this.projectId;
|
|
39096
39197
|
data["projectName"] = this.projectName;
|
|
39198
|
+
data["projectBomPosition"] = this.projectBomPosition;
|
|
39097
39199
|
data["quantity"] = this.quantity;
|
|
39098
39200
|
data["material"] = this.material;
|
|
39099
39201
|
data["covered"] = this.covered;
|
|
@@ -39346,6 +39448,7 @@ export class TrackingHistoryFlattenedDto {
|
|
|
39346
39448
|
this.partNumber = _data["partNumber"];
|
|
39347
39449
|
this.projectId = _data["projectId"];
|
|
39348
39450
|
this.projectName = _data["projectName"];
|
|
39451
|
+
this.projectBomPosition = _data["projectBomPosition"];
|
|
39349
39452
|
this.quantity = _data["quantity"];
|
|
39350
39453
|
this.material = _data["material"];
|
|
39351
39454
|
this.covered = _data["covered"];
|
|
@@ -39379,6 +39482,7 @@ export class TrackingHistoryFlattenedDto {
|
|
|
39379
39482
|
data["partNumber"] = this.partNumber;
|
|
39380
39483
|
data["projectId"] = this.projectId;
|
|
39381
39484
|
data["projectName"] = this.projectName;
|
|
39485
|
+
data["projectBomPosition"] = this.projectBomPosition;
|
|
39382
39486
|
data["quantity"] = this.quantity;
|
|
39383
39487
|
data["material"] = this.material;
|
|
39384
39488
|
data["covered"] = this.covered;
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -2644,15 +2644,15 @@ export class PulseClient extends AuthorizedApiBase implements IPulseClient {
|
|
|
2644
2644
|
|
|
2645
2645
|
export interface IUtilizationClient {
|
|
2646
2646
|
|
|
2647
|
-
getCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined,
|
|
2647
|
+
getCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | undefined, endTime: Date | null | undefined, ianaTimeZone: string | null | undefined): Promise<CompanyUtilizationDto>;
|
|
2648
2648
|
|
|
2649
|
-
getCrossCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined,
|
|
2649
|
+
getCrossCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | undefined, endTime: Date | null | undefined, ianaTimeZone: string | null | undefined): Promise<CrossCompanyUtilizationDto>;
|
|
2650
2650
|
|
|
2651
|
-
getUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined,
|
|
2651
|
+
getUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | undefined, endTime: Date | null | undefined, ianaTimeZone: string | null | undefined, assetId: number | null | undefined, assetExternalId: string | null | undefined): Promise<MachineUtilizationDatapointListDto>;
|
|
2652
2652
|
|
|
2653
|
-
getCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined,
|
|
2653
|
+
getCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | undefined, endTime: Date | null | undefined, ianaTimeZone: string | null | undefined): Promise<CompanyUtilizationDatapointListDto>;
|
|
2654
2654
|
|
|
2655
|
-
getCrossCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined,
|
|
2655
|
+
getCrossCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | undefined, endTime: Date | null | undefined, ianaTimeZone: string | null | undefined): Promise<CrossCompanyUtilizationDatapointListDto>;
|
|
2656
2656
|
}
|
|
2657
2657
|
|
|
2658
2658
|
export class UtilizationClient extends AuthorizedApiBase implements IUtilizationClient {
|
|
@@ -2666,16 +2666,20 @@ export class UtilizationClient extends AuthorizedApiBase implements IUtilization
|
|
|
2666
2666
|
this.baseUrl = baseUrl ?? "";
|
|
2667
2667
|
}
|
|
2668
2668
|
|
|
2669
|
-
getCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined,
|
|
2669
|
+
getCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | undefined, endTime: Date | null | undefined, ianaTimeZone: string | null | undefined): Promise<CompanyUtilizationDto> {
|
|
2670
2670
|
let url_ = this.baseUrl + "/utilization?";
|
|
2671
2671
|
if (utilizationType === null)
|
|
2672
2672
|
throw new globalThis.Error("The parameter 'utilizationType' cannot be null.");
|
|
2673
2673
|
else if (utilizationType !== undefined)
|
|
2674
2674
|
url_ += "utilizationType=" + encodeURIComponent("" + utilizationType) + "&";
|
|
2675
|
-
if (startTime
|
|
2675
|
+
if (startTime === null)
|
|
2676
|
+
throw new globalThis.Error("The parameter 'startTime' cannot be null.");
|
|
2677
|
+
else if (startTime !== undefined)
|
|
2676
2678
|
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
2677
2679
|
if (endTime !== undefined && endTime !== null)
|
|
2678
2680
|
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
2681
|
+
if (ianaTimeZone !== undefined && ianaTimeZone !== null)
|
|
2682
|
+
url_ += "ianaTimeZone=" + encodeURIComponent("" + ianaTimeZone) + "&";
|
|
2679
2683
|
url_ = url_.replace(/[?&]$/, "");
|
|
2680
2684
|
|
|
2681
2685
|
let options_: RequestInit = {
|
|
@@ -2710,16 +2714,20 @@ export class UtilizationClient extends AuthorizedApiBase implements IUtilization
|
|
|
2710
2714
|
return Promise.resolve<CompanyUtilizationDto>(null as any);
|
|
2711
2715
|
}
|
|
2712
2716
|
|
|
2713
|
-
getCrossCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined,
|
|
2717
|
+
getCrossCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | undefined, endTime: Date | null | undefined, ianaTimeZone: string | null | undefined): Promise<CrossCompanyUtilizationDto> {
|
|
2714
2718
|
let url_ = this.baseUrl + "/utilization/cross-company?";
|
|
2715
2719
|
if (utilizationType === null)
|
|
2716
2720
|
throw new globalThis.Error("The parameter 'utilizationType' cannot be null.");
|
|
2717
2721
|
else if (utilizationType !== undefined)
|
|
2718
2722
|
url_ += "utilizationType=" + encodeURIComponent("" + utilizationType) + "&";
|
|
2719
|
-
if (startTime
|
|
2723
|
+
if (startTime === null)
|
|
2724
|
+
throw new globalThis.Error("The parameter 'startTime' cannot be null.");
|
|
2725
|
+
else if (startTime !== undefined)
|
|
2720
2726
|
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
2721
2727
|
if (endTime !== undefined && endTime !== null)
|
|
2722
2728
|
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
2729
|
+
if (ianaTimeZone !== undefined && ianaTimeZone !== null)
|
|
2730
|
+
url_ += "ianaTimeZone=" + encodeURIComponent("" + ianaTimeZone) + "&";
|
|
2723
2731
|
url_ = url_.replace(/[?&]$/, "");
|
|
2724
2732
|
|
|
2725
2733
|
let options_: RequestInit = {
|
|
@@ -2754,16 +2762,20 @@ export class UtilizationClient extends AuthorizedApiBase implements IUtilization
|
|
|
2754
2762
|
return Promise.resolve<CrossCompanyUtilizationDto>(null as any);
|
|
2755
2763
|
}
|
|
2756
2764
|
|
|
2757
|
-
getUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined,
|
|
2765
|
+
getUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | undefined, endTime: Date | null | undefined, ianaTimeZone: string | null | undefined, assetId: number | null | undefined, assetExternalId: string | null | undefined): Promise<MachineUtilizationDatapointListDto> {
|
|
2758
2766
|
let url_ = this.baseUrl + "/utilization/datapoints?";
|
|
2759
2767
|
if (utilizationType === null)
|
|
2760
2768
|
throw new globalThis.Error("The parameter 'utilizationType' cannot be null.");
|
|
2761
2769
|
else if (utilizationType !== undefined)
|
|
2762
2770
|
url_ += "utilizationType=" + encodeURIComponent("" + utilizationType) + "&";
|
|
2763
|
-
if (startTime
|
|
2771
|
+
if (startTime === null)
|
|
2772
|
+
throw new globalThis.Error("The parameter 'startTime' cannot be null.");
|
|
2773
|
+
else if (startTime !== undefined)
|
|
2764
2774
|
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
2765
2775
|
if (endTime !== undefined && endTime !== null)
|
|
2766
2776
|
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
2777
|
+
if (ianaTimeZone !== undefined && ianaTimeZone !== null)
|
|
2778
|
+
url_ += "ianaTimeZone=" + encodeURIComponent("" + ianaTimeZone) + "&";
|
|
2767
2779
|
if (assetId !== undefined && assetId !== null)
|
|
2768
2780
|
url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
|
|
2769
2781
|
if (assetExternalId !== undefined && assetExternalId !== null)
|
|
@@ -2802,16 +2814,20 @@ export class UtilizationClient extends AuthorizedApiBase implements IUtilization
|
|
|
2802
2814
|
return Promise.resolve<MachineUtilizationDatapointListDto>(null as any);
|
|
2803
2815
|
}
|
|
2804
2816
|
|
|
2805
|
-
getCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined,
|
|
2817
|
+
getCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | undefined, endTime: Date | null | undefined, ianaTimeZone: string | null | undefined): Promise<CompanyUtilizationDatapointListDto> {
|
|
2806
2818
|
let url_ = this.baseUrl + "/utilization/datapoints/company?";
|
|
2807
2819
|
if (utilizationType === null)
|
|
2808
2820
|
throw new globalThis.Error("The parameter 'utilizationType' cannot be null.");
|
|
2809
2821
|
else if (utilizationType !== undefined)
|
|
2810
2822
|
url_ += "utilizationType=" + encodeURIComponent("" + utilizationType) + "&";
|
|
2811
|
-
if (startTime
|
|
2823
|
+
if (startTime === null)
|
|
2824
|
+
throw new globalThis.Error("The parameter 'startTime' cannot be null.");
|
|
2825
|
+
else if (startTime !== undefined)
|
|
2812
2826
|
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
2813
2827
|
if (endTime !== undefined && endTime !== null)
|
|
2814
2828
|
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
2829
|
+
if (ianaTimeZone !== undefined && ianaTimeZone !== null)
|
|
2830
|
+
url_ += "ianaTimeZone=" + encodeURIComponent("" + ianaTimeZone) + "&";
|
|
2815
2831
|
url_ = url_.replace(/[?&]$/, "");
|
|
2816
2832
|
|
|
2817
2833
|
let options_: RequestInit = {
|
|
@@ -2846,16 +2862,20 @@ export class UtilizationClient extends AuthorizedApiBase implements IUtilization
|
|
|
2846
2862
|
return Promise.resolve<CompanyUtilizationDatapointListDto>(null as any);
|
|
2847
2863
|
}
|
|
2848
2864
|
|
|
2849
|
-
getCrossCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined,
|
|
2865
|
+
getCrossCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | undefined, endTime: Date | null | undefined, ianaTimeZone: string | null | undefined): Promise<CrossCompanyUtilizationDatapointListDto> {
|
|
2850
2866
|
let url_ = this.baseUrl + "/utilization/datapoints/cross-company?";
|
|
2851
2867
|
if (utilizationType === null)
|
|
2852
2868
|
throw new globalThis.Error("The parameter 'utilizationType' cannot be null.");
|
|
2853
2869
|
else if (utilizationType !== undefined)
|
|
2854
2870
|
url_ += "utilizationType=" + encodeURIComponent("" + utilizationType) + "&";
|
|
2855
|
-
if (startTime
|
|
2871
|
+
if (startTime === null)
|
|
2872
|
+
throw new globalThis.Error("The parameter 'startTime' cannot be null.");
|
|
2873
|
+
else if (startTime !== undefined)
|
|
2856
2874
|
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
2857
2875
|
if (endTime !== undefined && endTime !== null)
|
|
2858
2876
|
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
2877
|
+
if (ianaTimeZone !== undefined && ianaTimeZone !== null)
|
|
2878
|
+
url_ += "ianaTimeZone=" + encodeURIComponent("" + ianaTimeZone) + "&";
|
|
2859
2879
|
url_ = url_.replace(/[?&]$/, "");
|
|
2860
2880
|
|
|
2861
2881
|
let options_: RequestInit = {
|
|
@@ -10344,6 +10364,8 @@ export interface ICncSetupClient {
|
|
|
10344
10364
|
|
|
10345
10365
|
deleteCncMachineOperationTool(operationId: string, id: number): Promise<void>;
|
|
10346
10366
|
|
|
10367
|
+
deleteCncMachineOperationToolMultiple(operationId: string, idsToDelete: number[]): Promise<void>;
|
|
10368
|
+
|
|
10347
10369
|
uploadOperationCncToolImage(operationId: string, id: number, request: UploadCncToolImageRequest): Promise<ImageFileDto>;
|
|
10348
10370
|
|
|
10349
10371
|
deleteCncMachineOperationToolImage(operationId: string, id: number, filename: string): Promise<void>;
|
|
@@ -10356,6 +10378,8 @@ export interface ICncSetupClient {
|
|
|
10356
10378
|
|
|
10357
10379
|
deleteCncMachineTool(cncMachineId: string, id: number): Promise<void>;
|
|
10358
10380
|
|
|
10381
|
+
deleteCncMachineToolMultiple(cncMachineId: string, idsToDelete: number[]): Promise<void>;
|
|
10382
|
+
|
|
10359
10383
|
uploadCncMachineToolImage(machineId: string, id: number, request: UploadCncToolImageRequest): Promise<ImageFileDto>;
|
|
10360
10384
|
|
|
10361
10385
|
deleteCncMachineToolImage(machineId: string, id: number, filename: string): Promise<void>;
|
|
@@ -12166,6 +12190,45 @@ export class CncSetupClient extends AuthorizedApiBase implements ICncSetupClient
|
|
|
12166
12190
|
return Promise.resolve<void>(null as any);
|
|
12167
12191
|
}
|
|
12168
12192
|
|
|
12193
|
+
deleteCncMachineOperationToolMultiple(operationId: string, idsToDelete: number[]): Promise<void> {
|
|
12194
|
+
let url_ = this.baseUrl + "/cncsetup/operations/{operationId}/tools";
|
|
12195
|
+
if (operationId === undefined || operationId === null)
|
|
12196
|
+
throw new globalThis.Error("The parameter 'operationId' must be defined.");
|
|
12197
|
+
url_ = url_.replace("{operationId}", encodeURIComponent("" + operationId));
|
|
12198
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
12199
|
+
|
|
12200
|
+
const content_ = JSON.stringify(idsToDelete);
|
|
12201
|
+
|
|
12202
|
+
let options_: RequestInit = {
|
|
12203
|
+
body: content_,
|
|
12204
|
+
method: "DELETE",
|
|
12205
|
+
headers: {
|
|
12206
|
+
"Content-Type": "application/json",
|
|
12207
|
+
}
|
|
12208
|
+
};
|
|
12209
|
+
|
|
12210
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
12211
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
12212
|
+
}).then((_response: Response) => {
|
|
12213
|
+
return this.processDeleteCncMachineOperationToolMultiple(_response);
|
|
12214
|
+
});
|
|
12215
|
+
}
|
|
12216
|
+
|
|
12217
|
+
protected processDeleteCncMachineOperationToolMultiple(response: Response): Promise<void> {
|
|
12218
|
+
const status = response.status;
|
|
12219
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
12220
|
+
if (status === 204) {
|
|
12221
|
+
return response.text().then((_responseText) => {
|
|
12222
|
+
return;
|
|
12223
|
+
});
|
|
12224
|
+
} else if (status !== 200 && status !== 204) {
|
|
12225
|
+
return response.text().then((_responseText) => {
|
|
12226
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
12227
|
+
});
|
|
12228
|
+
}
|
|
12229
|
+
return Promise.resolve<void>(null as any);
|
|
12230
|
+
}
|
|
12231
|
+
|
|
12169
12232
|
uploadOperationCncToolImage(operationId: string, id: number, request: UploadCncToolImageRequest): Promise<ImageFileDto> {
|
|
12170
12233
|
let url_ = this.baseUrl + "/cncsetup/operations/{operationId}/tools/{id}/uploadimage";
|
|
12171
12234
|
if (operationId === undefined || operationId === null)
|
|
@@ -12423,6 +12486,45 @@ export class CncSetupClient extends AuthorizedApiBase implements ICncSetupClient
|
|
|
12423
12486
|
return Promise.resolve<void>(null as any);
|
|
12424
12487
|
}
|
|
12425
12488
|
|
|
12489
|
+
deleteCncMachineToolMultiple(cncMachineId: string, idsToDelete: number[]): Promise<void> {
|
|
12490
|
+
let url_ = this.baseUrl + "/cncsetup/machines/{cncMachineId}/tools";
|
|
12491
|
+
if (cncMachineId === undefined || cncMachineId === null)
|
|
12492
|
+
throw new globalThis.Error("The parameter 'cncMachineId' must be defined.");
|
|
12493
|
+
url_ = url_.replace("{cncMachineId}", encodeURIComponent("" + cncMachineId));
|
|
12494
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
12495
|
+
|
|
12496
|
+
const content_ = JSON.stringify(idsToDelete);
|
|
12497
|
+
|
|
12498
|
+
let options_: RequestInit = {
|
|
12499
|
+
body: content_,
|
|
12500
|
+
method: "DELETE",
|
|
12501
|
+
headers: {
|
|
12502
|
+
"Content-Type": "application/json",
|
|
12503
|
+
}
|
|
12504
|
+
};
|
|
12505
|
+
|
|
12506
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
12507
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
12508
|
+
}).then((_response: Response) => {
|
|
12509
|
+
return this.processDeleteCncMachineToolMultiple(_response);
|
|
12510
|
+
});
|
|
12511
|
+
}
|
|
12512
|
+
|
|
12513
|
+
protected processDeleteCncMachineToolMultiple(response: Response): Promise<void> {
|
|
12514
|
+
const status = response.status;
|
|
12515
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
12516
|
+
if (status === 204) {
|
|
12517
|
+
return response.text().then((_responseText) => {
|
|
12518
|
+
return;
|
|
12519
|
+
});
|
|
12520
|
+
} else if (status !== 200 && status !== 204) {
|
|
12521
|
+
return response.text().then((_responseText) => {
|
|
12522
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
12523
|
+
});
|
|
12524
|
+
}
|
|
12525
|
+
return Promise.resolve<void>(null as any);
|
|
12526
|
+
}
|
|
12527
|
+
|
|
12426
12528
|
uploadCncMachineToolImage(machineId: string, id: number, request: UploadCncToolImageRequest): Promise<ImageFileDto> {
|
|
12427
12529
|
let url_ = this.baseUrl + "/cncsetup/machines/{machineId}/tools/{id}/uploadimage";
|
|
12428
12530
|
if (machineId === undefined || machineId === null)
|
|
@@ -46073,6 +46175,7 @@ export class BookingParcelDto implements IBookingParcelDto {
|
|
|
46073
46175
|
partNumber?: string | null;
|
|
46074
46176
|
projectId?: string | null;
|
|
46075
46177
|
projectName?: string | null;
|
|
46178
|
+
projectBomPosition?: string | null;
|
|
46076
46179
|
quantity?: number | null;
|
|
46077
46180
|
material?: string | null;
|
|
46078
46181
|
materialOperation?: number | null;
|
|
@@ -46101,6 +46204,7 @@ export class BookingParcelDto implements IBookingParcelDto {
|
|
|
46101
46204
|
this.partNumber = _data["partNumber"];
|
|
46102
46205
|
this.projectId = _data["projectId"];
|
|
46103
46206
|
this.projectName = _data["projectName"];
|
|
46207
|
+
this.projectBomPosition = _data["projectBomPosition"];
|
|
46104
46208
|
this.quantity = _data["quantity"];
|
|
46105
46209
|
this.material = _data["material"];
|
|
46106
46210
|
this.materialOperation = _data["materialOperation"];
|
|
@@ -46129,6 +46233,7 @@ export class BookingParcelDto implements IBookingParcelDto {
|
|
|
46129
46233
|
data["partNumber"] = this.partNumber;
|
|
46130
46234
|
data["projectId"] = this.projectId;
|
|
46131
46235
|
data["projectName"] = this.projectName;
|
|
46236
|
+
data["projectBomPosition"] = this.projectBomPosition;
|
|
46132
46237
|
data["quantity"] = this.quantity;
|
|
46133
46238
|
data["material"] = this.material;
|
|
46134
46239
|
data["materialOperation"] = this.materialOperation;
|
|
@@ -46150,6 +46255,7 @@ export interface IBookingParcelDto {
|
|
|
46150
46255
|
partNumber?: string | null;
|
|
46151
46256
|
projectId?: string | null;
|
|
46152
46257
|
projectName?: string | null;
|
|
46258
|
+
projectBomPosition?: string | null;
|
|
46153
46259
|
quantity?: number | null;
|
|
46154
46260
|
material?: string | null;
|
|
46155
46261
|
materialOperation?: number | null;
|
|
@@ -48128,6 +48234,7 @@ export class TrackingParcelDto implements ITrackingParcelDto {
|
|
|
48128
48234
|
partNumber?: string | null;
|
|
48129
48235
|
projectId?: string | null;
|
|
48130
48236
|
projectName?: string | null;
|
|
48237
|
+
projectBomPosition?: string | null;
|
|
48131
48238
|
quantity?: number | null;
|
|
48132
48239
|
material?: string | null;
|
|
48133
48240
|
covered?: MaterialCoveredDto | null;
|
|
@@ -48155,6 +48262,7 @@ export class TrackingParcelDto implements ITrackingParcelDto {
|
|
|
48155
48262
|
this.partNumber = _data["partNumber"];
|
|
48156
48263
|
this.projectId = _data["projectId"];
|
|
48157
48264
|
this.projectName = _data["projectName"];
|
|
48265
|
+
this.projectBomPosition = _data["projectBomPosition"];
|
|
48158
48266
|
this.quantity = _data["quantity"];
|
|
48159
48267
|
this.material = _data["material"];
|
|
48160
48268
|
this.covered = _data["covered"];
|
|
@@ -48186,6 +48294,7 @@ export class TrackingParcelDto implements ITrackingParcelDto {
|
|
|
48186
48294
|
data["partNumber"] = this.partNumber;
|
|
48187
48295
|
data["projectId"] = this.projectId;
|
|
48188
48296
|
data["projectName"] = this.projectName;
|
|
48297
|
+
data["projectBomPosition"] = this.projectBomPosition;
|
|
48189
48298
|
data["quantity"] = this.quantity;
|
|
48190
48299
|
data["material"] = this.material;
|
|
48191
48300
|
data["covered"] = this.covered;
|
|
@@ -48210,6 +48319,7 @@ export interface ITrackingParcelDto {
|
|
|
48210
48319
|
partNumber?: string | null;
|
|
48211
48320
|
projectId?: string | null;
|
|
48212
48321
|
projectName?: string | null;
|
|
48322
|
+
projectBomPosition?: string | null;
|
|
48213
48323
|
quantity?: number | null;
|
|
48214
48324
|
material?: string | null;
|
|
48215
48325
|
covered?: MaterialCoveredDto | null;
|
|
@@ -48532,6 +48642,7 @@ export class TrackingHistoryFlattenedDto implements ITrackingHistoryFlattenedDto
|
|
|
48532
48642
|
partNumber?: string | null;
|
|
48533
48643
|
projectId?: string | null;
|
|
48534
48644
|
projectName?: string | null;
|
|
48645
|
+
projectBomPosition?: string | null;
|
|
48535
48646
|
quantity?: number | null;
|
|
48536
48647
|
material?: string | null;
|
|
48537
48648
|
covered?: MaterialCoveredDto | null;
|
|
@@ -48566,6 +48677,7 @@ export class TrackingHistoryFlattenedDto implements ITrackingHistoryFlattenedDto
|
|
|
48566
48677
|
this.partNumber = _data["partNumber"];
|
|
48567
48678
|
this.projectId = _data["projectId"];
|
|
48568
48679
|
this.projectName = _data["projectName"];
|
|
48680
|
+
this.projectBomPosition = _data["projectBomPosition"];
|
|
48569
48681
|
this.quantity = _data["quantity"];
|
|
48570
48682
|
this.material = _data["material"];
|
|
48571
48683
|
this.covered = _data["covered"];
|
|
@@ -48601,6 +48713,7 @@ export class TrackingHistoryFlattenedDto implements ITrackingHistoryFlattenedDto
|
|
|
48601
48713
|
data["partNumber"] = this.partNumber;
|
|
48602
48714
|
data["projectId"] = this.projectId;
|
|
48603
48715
|
data["projectName"] = this.projectName;
|
|
48716
|
+
data["projectBomPosition"] = this.projectBomPosition;
|
|
48604
48717
|
data["quantity"] = this.quantity;
|
|
48605
48718
|
data["material"] = this.material;
|
|
48606
48719
|
data["covered"] = this.covered;
|
|
@@ -48629,6 +48742,7 @@ export interface ITrackingHistoryFlattenedDto {
|
|
|
48629
48742
|
partNumber?: string | null;
|
|
48630
48743
|
projectId?: string | null;
|
|
48631
48744
|
projectName?: string | null;
|
|
48745
|
+
projectBomPosition?: string | null;
|
|
48632
48746
|
quantity?: number | null;
|
|
48633
48747
|
material?: string | null;
|
|
48634
48748
|
covered?: MaterialCoveredDto | null;
|