@ignos/api-client 20251022.0.12954-alpha → 20251023.0.12956-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 +16 -10
- package/lib/ignosportal-api.js +16 -30
- package/package.json +1 -1
- package/src/ignosportal-api.ts +27 -35
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 |
|
|
412
|
-
getCrossCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date |
|
|
413
|
-
getUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date |
|
|
414
|
-
getCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date |
|
|
415
|
-
getCrossCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date |
|
|
411
|
+
getCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CompanyUtilizationDto>;
|
|
412
|
+
getCrossCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CrossCompanyUtilizationDto>;
|
|
413
|
+
getUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined, assetId: number | null | undefined, assetExternalId: string | null | undefined): Promise<MachineUtilizationDatapointListDto>;
|
|
414
|
+
getCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CompanyUtilizationDatapointListDto>;
|
|
415
|
+
getCrossCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | 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 |
|
|
424
|
+
getCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CompanyUtilizationDto>;
|
|
425
425
|
protected processGetCompanyUtilization(response: Response): Promise<CompanyUtilizationDto>;
|
|
426
|
-
getCrossCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date |
|
|
426
|
+
getCrossCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CrossCompanyUtilizationDto>;
|
|
427
427
|
protected processGetCrossCompanyUtilization(response: Response): Promise<CrossCompanyUtilizationDto>;
|
|
428
|
-
getUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date |
|
|
428
|
+
getUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | 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 |
|
|
430
|
+
getCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CompanyUtilizationDatapointListDto>;
|
|
431
431
|
protected processGetCompanyUtilizationDatapoints(response: Response): Promise<CompanyUtilizationDatapointListDto>;
|
|
432
|
-
getCrossCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date |
|
|
432
|
+
getCrossCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CrossCompanyUtilizationDatapointListDto>;
|
|
433
433
|
protected processGetCrossCompanyUtilizationDatapoints(response: Response): Promise<CrossCompanyUtilizationDatapointListDto>;
|
|
434
434
|
}
|
|
435
435
|
export interface IMrbClient {
|
|
@@ -10759,6 +10759,7 @@ export declare class ProductionOrderOperationDto implements IProductionOrderOper
|
|
|
10759
10759
|
quantity: number;
|
|
10760
10760
|
startedQuantity?: number | null;
|
|
10761
10761
|
ongoingQuantity?: number | null;
|
|
10762
|
+
earlierOperationsScrappedQuantity: number;
|
|
10762
10763
|
availableToStartQuantity: number;
|
|
10763
10764
|
workInstructions?: string | null;
|
|
10764
10765
|
note?: string | null;
|
|
@@ -10796,6 +10797,7 @@ export interface IProductionOrderOperationDto {
|
|
|
10796
10797
|
quantity: number;
|
|
10797
10798
|
startedQuantity?: number | null;
|
|
10798
10799
|
ongoingQuantity?: number | null;
|
|
10800
|
+
earlierOperationsScrappedQuantity: number;
|
|
10799
10801
|
availableToStartQuantity: number;
|
|
10800
10802
|
workInstructions?: string | null;
|
|
10801
10803
|
note?: string | null;
|
|
@@ -11219,6 +11221,7 @@ export declare class ProductionScheduleOperationDto implements IProductionSchedu
|
|
|
11219
11221
|
producedQuantity: number;
|
|
11220
11222
|
scrappedQuantity: number;
|
|
11221
11223
|
availableToStartQuantity: number;
|
|
11224
|
+
earlierOperationsScrappedQuantity: number;
|
|
11222
11225
|
startedQuantity?: number | null;
|
|
11223
11226
|
ongoingQuantity?: number | null;
|
|
11224
11227
|
project?: WorkOrderProjectDto | null;
|
|
@@ -11273,6 +11276,7 @@ export interface IProductionScheduleOperationDto {
|
|
|
11273
11276
|
producedQuantity: number;
|
|
11274
11277
|
scrappedQuantity: number;
|
|
11275
11278
|
availableToStartQuantity: number;
|
|
11279
|
+
earlierOperationsScrappedQuantity: number;
|
|
11276
11280
|
startedQuantity?: number | null;
|
|
11277
11281
|
ongoingQuantity?: number | null;
|
|
11278
11282
|
project?: WorkOrderProjectDto | null;
|
|
@@ -11319,6 +11323,7 @@ export declare class SurroundingOperationDto implements ISurroundingOperationDto
|
|
|
11319
11323
|
resourceDepartmentName?: string | null;
|
|
11320
11324
|
producedQuantity: number;
|
|
11321
11325
|
scrappedQuantity: number;
|
|
11326
|
+
earlierOperationsScrappedQuantity: number;
|
|
11322
11327
|
startedQuantity?: number | null;
|
|
11323
11328
|
constructor(data?: ISurroundingOperationDto);
|
|
11324
11329
|
init(_data?: any): void;
|
|
@@ -11341,6 +11346,7 @@ export interface ISurroundingOperationDto {
|
|
|
11341
11346
|
resourceDepartmentName?: string | null;
|
|
11342
11347
|
producedQuantity: number;
|
|
11343
11348
|
scrappedQuantity: number;
|
|
11349
|
+
earlierOperationsScrappedQuantity: number;
|
|
11344
11350
|
startedQuantity?: number | null;
|
|
11345
11351
|
}
|
|
11346
11352
|
export declare class OperationPrerequisitesDto implements IOperationPrerequisitesDto {
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -2416,20 +2416,16 @@ 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) {
|
|
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
|
|
2426
|
-
throw new globalThis.Error("The parameter 'startTime' cannot be null.");
|
|
2427
|
-
else if (startTime !== undefined)
|
|
2425
|
+
if (startTime !== undefined && startTime !== null)
|
|
2428
2426
|
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
2429
2427
|
if (endTime !== undefined && endTime !== null)
|
|
2430
2428
|
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
2431
|
-
if (ianaTimeZone !== undefined && ianaTimeZone !== null)
|
|
2432
|
-
url_ += "ianaTimeZone=" + encodeURIComponent("" + ianaTimeZone) + "&";
|
|
2433
2429
|
url_ = url_.replace(/[?&]$/, "");
|
|
2434
2430
|
let options_ = {
|
|
2435
2431
|
method: "GET",
|
|
@@ -2465,20 +2461,16 @@ export class UtilizationClient extends AuthorizedApiBase {
|
|
|
2465
2461
|
}
|
|
2466
2462
|
return Promise.resolve(null);
|
|
2467
2463
|
}
|
|
2468
|
-
getCrossCompanyUtilization(utilizationType, startTime, endTime
|
|
2464
|
+
getCrossCompanyUtilization(utilizationType, startTime, endTime) {
|
|
2469
2465
|
let url_ = this.baseUrl + "/utilization/cross-company?";
|
|
2470
2466
|
if (utilizationType === null)
|
|
2471
2467
|
throw new globalThis.Error("The parameter 'utilizationType' cannot be null.");
|
|
2472
2468
|
else if (utilizationType !== undefined)
|
|
2473
2469
|
url_ += "utilizationType=" + encodeURIComponent("" + utilizationType) + "&";
|
|
2474
|
-
if (startTime
|
|
2475
|
-
throw new globalThis.Error("The parameter 'startTime' cannot be null.");
|
|
2476
|
-
else if (startTime !== undefined)
|
|
2470
|
+
if (startTime !== undefined && startTime !== null)
|
|
2477
2471
|
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
2478
2472
|
if (endTime !== undefined && endTime !== null)
|
|
2479
2473
|
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
2480
|
-
if (ianaTimeZone !== undefined && ianaTimeZone !== null)
|
|
2481
|
-
url_ += "ianaTimeZone=" + encodeURIComponent("" + ianaTimeZone) + "&";
|
|
2482
2474
|
url_ = url_.replace(/[?&]$/, "");
|
|
2483
2475
|
let options_ = {
|
|
2484
2476
|
method: "GET",
|
|
@@ -2514,20 +2506,16 @@ export class UtilizationClient extends AuthorizedApiBase {
|
|
|
2514
2506
|
}
|
|
2515
2507
|
return Promise.resolve(null);
|
|
2516
2508
|
}
|
|
2517
|
-
getUtilizationDatapoints(utilizationType, startTime, endTime,
|
|
2509
|
+
getUtilizationDatapoints(utilizationType, startTime, endTime, assetId, assetExternalId) {
|
|
2518
2510
|
let url_ = this.baseUrl + "/utilization/datapoints?";
|
|
2519
2511
|
if (utilizationType === null)
|
|
2520
2512
|
throw new globalThis.Error("The parameter 'utilizationType' cannot be null.");
|
|
2521
2513
|
else if (utilizationType !== undefined)
|
|
2522
2514
|
url_ += "utilizationType=" + encodeURIComponent("" + utilizationType) + "&";
|
|
2523
|
-
if (startTime
|
|
2524
|
-
throw new globalThis.Error("The parameter 'startTime' cannot be null.");
|
|
2525
|
-
else if (startTime !== undefined)
|
|
2515
|
+
if (startTime !== undefined && startTime !== null)
|
|
2526
2516
|
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
2527
2517
|
if (endTime !== undefined && endTime !== null)
|
|
2528
2518
|
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
2529
|
-
if (ianaTimeZone !== undefined && ianaTimeZone !== null)
|
|
2530
|
-
url_ += "ianaTimeZone=" + encodeURIComponent("" + ianaTimeZone) + "&";
|
|
2531
2519
|
if (assetId !== undefined && assetId !== null)
|
|
2532
2520
|
url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
|
|
2533
2521
|
if (assetExternalId !== undefined && assetExternalId !== null)
|
|
@@ -2567,20 +2555,16 @@ export class UtilizationClient extends AuthorizedApiBase {
|
|
|
2567
2555
|
}
|
|
2568
2556
|
return Promise.resolve(null);
|
|
2569
2557
|
}
|
|
2570
|
-
getCompanyUtilizationDatapoints(utilizationType, startTime, endTime
|
|
2558
|
+
getCompanyUtilizationDatapoints(utilizationType, startTime, endTime) {
|
|
2571
2559
|
let url_ = this.baseUrl + "/utilization/datapoints/company?";
|
|
2572
2560
|
if (utilizationType === null)
|
|
2573
2561
|
throw new globalThis.Error("The parameter 'utilizationType' cannot be null.");
|
|
2574
2562
|
else if (utilizationType !== undefined)
|
|
2575
2563
|
url_ += "utilizationType=" + encodeURIComponent("" + utilizationType) + "&";
|
|
2576
|
-
if (startTime
|
|
2577
|
-
throw new globalThis.Error("The parameter 'startTime' cannot be null.");
|
|
2578
|
-
else if (startTime !== undefined)
|
|
2564
|
+
if (startTime !== undefined && startTime !== null)
|
|
2579
2565
|
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
2580
2566
|
if (endTime !== undefined && endTime !== null)
|
|
2581
2567
|
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
2582
|
-
if (ianaTimeZone !== undefined && ianaTimeZone !== null)
|
|
2583
|
-
url_ += "ianaTimeZone=" + encodeURIComponent("" + ianaTimeZone) + "&";
|
|
2584
2568
|
url_ = url_.replace(/[?&]$/, "");
|
|
2585
2569
|
let options_ = {
|
|
2586
2570
|
method: "GET",
|
|
@@ -2616,20 +2600,16 @@ export class UtilizationClient extends AuthorizedApiBase {
|
|
|
2616
2600
|
}
|
|
2617
2601
|
return Promise.resolve(null);
|
|
2618
2602
|
}
|
|
2619
|
-
getCrossCompanyUtilizationDatapoints(utilizationType, startTime, endTime
|
|
2603
|
+
getCrossCompanyUtilizationDatapoints(utilizationType, startTime, endTime) {
|
|
2620
2604
|
let url_ = this.baseUrl + "/utilization/datapoints/cross-company?";
|
|
2621
2605
|
if (utilizationType === null)
|
|
2622
2606
|
throw new globalThis.Error("The parameter 'utilizationType' cannot be null.");
|
|
2623
2607
|
else if (utilizationType !== undefined)
|
|
2624
2608
|
url_ += "utilizationType=" + encodeURIComponent("" + utilizationType) + "&";
|
|
2625
|
-
if (startTime
|
|
2626
|
-
throw new globalThis.Error("The parameter 'startTime' cannot be null.");
|
|
2627
|
-
else if (startTime !== undefined)
|
|
2609
|
+
if (startTime !== undefined && startTime !== null)
|
|
2628
2610
|
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
2629
2611
|
if (endTime !== undefined && endTime !== null)
|
|
2630
2612
|
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
2631
|
-
if (ianaTimeZone !== undefined && ianaTimeZone !== null)
|
|
2632
|
-
url_ += "ianaTimeZone=" + encodeURIComponent("" + ianaTimeZone) + "&";
|
|
2633
2613
|
url_ = url_.replace(/[?&]$/, "");
|
|
2634
2614
|
let options_ = {
|
|
2635
2615
|
method: "GET",
|
|
@@ -40071,6 +40051,7 @@ export class ProductionOrderOperationDto {
|
|
|
40071
40051
|
this.quantity = _data["quantity"];
|
|
40072
40052
|
this.startedQuantity = _data["startedQuantity"];
|
|
40073
40053
|
this.ongoingQuantity = _data["ongoingQuantity"];
|
|
40054
|
+
this.earlierOperationsScrappedQuantity = _data["earlierOperationsScrappedQuantity"];
|
|
40074
40055
|
this.availableToStartQuantity = _data["availableToStartQuantity"];
|
|
40075
40056
|
this.workInstructions = _data["workInstructions"];
|
|
40076
40057
|
this.note = _data["note"];
|
|
@@ -40112,6 +40093,7 @@ export class ProductionOrderOperationDto {
|
|
|
40112
40093
|
data["quantity"] = this.quantity;
|
|
40113
40094
|
data["startedQuantity"] = this.startedQuantity;
|
|
40114
40095
|
data["ongoingQuantity"] = this.ongoingQuantity;
|
|
40096
|
+
data["earlierOperationsScrappedQuantity"] = this.earlierOperationsScrappedQuantity;
|
|
40115
40097
|
data["availableToStartQuantity"] = this.availableToStartQuantity;
|
|
40116
40098
|
data["workInstructions"] = this.workInstructions;
|
|
40117
40099
|
data["note"] = this.note;
|
|
@@ -40915,6 +40897,7 @@ export class ProductionScheduleOperationDto {
|
|
|
40915
40897
|
this.producedQuantity = _data["producedQuantity"];
|
|
40916
40898
|
this.scrappedQuantity = _data["scrappedQuantity"];
|
|
40917
40899
|
this.availableToStartQuantity = _data["availableToStartQuantity"];
|
|
40900
|
+
this.earlierOperationsScrappedQuantity = _data["earlierOperationsScrappedQuantity"];
|
|
40918
40901
|
this.startedQuantity = _data["startedQuantity"];
|
|
40919
40902
|
this.ongoingQuantity = _data["ongoingQuantity"];
|
|
40920
40903
|
this.project = _data["project"] ? WorkOrderProjectDto.fromJS(_data["project"]) : undefined;
|
|
@@ -40973,6 +40956,7 @@ export class ProductionScheduleOperationDto {
|
|
|
40973
40956
|
data["producedQuantity"] = this.producedQuantity;
|
|
40974
40957
|
data["scrappedQuantity"] = this.scrappedQuantity;
|
|
40975
40958
|
data["availableToStartQuantity"] = this.availableToStartQuantity;
|
|
40959
|
+
data["earlierOperationsScrappedQuantity"] = this.earlierOperationsScrappedQuantity;
|
|
40976
40960
|
data["startedQuantity"] = this.startedQuantity;
|
|
40977
40961
|
data["ongoingQuantity"] = this.ongoingQuantity;
|
|
40978
40962
|
data["project"] = this.project ? this.project.toJSON() : undefined;
|
|
@@ -41031,6 +41015,7 @@ export class SurroundingOperationDto {
|
|
|
41031
41015
|
this.resourceDepartmentName = _data["resourceDepartmentName"];
|
|
41032
41016
|
this.producedQuantity = _data["producedQuantity"];
|
|
41033
41017
|
this.scrappedQuantity = _data["scrappedQuantity"];
|
|
41018
|
+
this.earlierOperationsScrappedQuantity = _data["earlierOperationsScrappedQuantity"];
|
|
41034
41019
|
this.startedQuantity = _data["startedQuantity"];
|
|
41035
41020
|
}
|
|
41036
41021
|
}
|
|
@@ -41057,6 +41042,7 @@ export class SurroundingOperationDto {
|
|
|
41057
41042
|
data["resourceDepartmentName"] = this.resourceDepartmentName;
|
|
41058
41043
|
data["producedQuantity"] = this.producedQuantity;
|
|
41059
41044
|
data["scrappedQuantity"] = this.scrappedQuantity;
|
|
41045
|
+
data["earlierOperationsScrappedQuantity"] = this.earlierOperationsScrappedQuantity;
|
|
41060
41046
|
data["startedQuantity"] = this.startedQuantity;
|
|
41061
41047
|
return data;
|
|
41062
41048
|
}
|
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 |
|
|
2647
|
+
getCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CompanyUtilizationDto>;
|
|
2648
2648
|
|
|
2649
|
-
getCrossCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date |
|
|
2649
|
+
getCrossCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CrossCompanyUtilizationDto>;
|
|
2650
2650
|
|
|
2651
|
-
getUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date |
|
|
2651
|
+
getUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined, assetId: number | null | undefined, assetExternalId: string | null | undefined): Promise<MachineUtilizationDatapointListDto>;
|
|
2652
2652
|
|
|
2653
|
-
getCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date |
|
|
2653
|
+
getCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CompanyUtilizationDatapointListDto>;
|
|
2654
2654
|
|
|
2655
|
-
getCrossCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date |
|
|
2655
|
+
getCrossCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CrossCompanyUtilizationDatapointListDto>;
|
|
2656
2656
|
}
|
|
2657
2657
|
|
|
2658
2658
|
export class UtilizationClient extends AuthorizedApiBase implements IUtilizationClient {
|
|
@@ -2666,20 +2666,16 @@ export class UtilizationClient extends AuthorizedApiBase implements IUtilization
|
|
|
2666
2666
|
this.baseUrl = baseUrl ?? "";
|
|
2667
2667
|
}
|
|
2668
2668
|
|
|
2669
|
-
getCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date |
|
|
2669
|
+
getCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | 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
|
|
2676
|
-
throw new globalThis.Error("The parameter 'startTime' cannot be null.");
|
|
2677
|
-
else if (startTime !== undefined)
|
|
2675
|
+
if (startTime !== undefined && startTime !== null)
|
|
2678
2676
|
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
2679
2677
|
if (endTime !== undefined && endTime !== null)
|
|
2680
2678
|
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
2681
|
-
if (ianaTimeZone !== undefined && ianaTimeZone !== null)
|
|
2682
|
-
url_ += "ianaTimeZone=" + encodeURIComponent("" + ianaTimeZone) + "&";
|
|
2683
2679
|
url_ = url_.replace(/[?&]$/, "");
|
|
2684
2680
|
|
|
2685
2681
|
let options_: RequestInit = {
|
|
@@ -2714,20 +2710,16 @@ export class UtilizationClient extends AuthorizedApiBase implements IUtilization
|
|
|
2714
2710
|
return Promise.resolve<CompanyUtilizationDto>(null as any);
|
|
2715
2711
|
}
|
|
2716
2712
|
|
|
2717
|
-
getCrossCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date |
|
|
2713
|
+
getCrossCompanyUtilization(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CrossCompanyUtilizationDto> {
|
|
2718
2714
|
let url_ = this.baseUrl + "/utilization/cross-company?";
|
|
2719
2715
|
if (utilizationType === null)
|
|
2720
2716
|
throw new globalThis.Error("The parameter 'utilizationType' cannot be null.");
|
|
2721
2717
|
else if (utilizationType !== undefined)
|
|
2722
2718
|
url_ += "utilizationType=" + encodeURIComponent("" + utilizationType) + "&";
|
|
2723
|
-
if (startTime
|
|
2724
|
-
throw new globalThis.Error("The parameter 'startTime' cannot be null.");
|
|
2725
|
-
else if (startTime !== undefined)
|
|
2719
|
+
if (startTime !== undefined && startTime !== null)
|
|
2726
2720
|
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
2727
2721
|
if (endTime !== undefined && endTime !== null)
|
|
2728
2722
|
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
2729
|
-
if (ianaTimeZone !== undefined && ianaTimeZone !== null)
|
|
2730
|
-
url_ += "ianaTimeZone=" + encodeURIComponent("" + ianaTimeZone) + "&";
|
|
2731
2723
|
url_ = url_.replace(/[?&]$/, "");
|
|
2732
2724
|
|
|
2733
2725
|
let options_: RequestInit = {
|
|
@@ -2762,20 +2754,16 @@ export class UtilizationClient extends AuthorizedApiBase implements IUtilization
|
|
|
2762
2754
|
return Promise.resolve<CrossCompanyUtilizationDto>(null as any);
|
|
2763
2755
|
}
|
|
2764
2756
|
|
|
2765
|
-
getUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date |
|
|
2757
|
+
getUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined, assetId: number | null | undefined, assetExternalId: string | null | undefined): Promise<MachineUtilizationDatapointListDto> {
|
|
2766
2758
|
let url_ = this.baseUrl + "/utilization/datapoints?";
|
|
2767
2759
|
if (utilizationType === null)
|
|
2768
2760
|
throw new globalThis.Error("The parameter 'utilizationType' cannot be null.");
|
|
2769
2761
|
else if (utilizationType !== undefined)
|
|
2770
2762
|
url_ += "utilizationType=" + encodeURIComponent("" + utilizationType) + "&";
|
|
2771
|
-
if (startTime
|
|
2772
|
-
throw new globalThis.Error("The parameter 'startTime' cannot be null.");
|
|
2773
|
-
else if (startTime !== undefined)
|
|
2763
|
+
if (startTime !== undefined && startTime !== null)
|
|
2774
2764
|
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
2775
2765
|
if (endTime !== undefined && endTime !== null)
|
|
2776
2766
|
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
2777
|
-
if (ianaTimeZone !== undefined && ianaTimeZone !== null)
|
|
2778
|
-
url_ += "ianaTimeZone=" + encodeURIComponent("" + ianaTimeZone) + "&";
|
|
2779
2767
|
if (assetId !== undefined && assetId !== null)
|
|
2780
2768
|
url_ += "assetId=" + encodeURIComponent("" + assetId) + "&";
|
|
2781
2769
|
if (assetExternalId !== undefined && assetExternalId !== null)
|
|
@@ -2814,20 +2802,16 @@ export class UtilizationClient extends AuthorizedApiBase implements IUtilization
|
|
|
2814
2802
|
return Promise.resolve<MachineUtilizationDatapointListDto>(null as any);
|
|
2815
2803
|
}
|
|
2816
2804
|
|
|
2817
|
-
getCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date |
|
|
2805
|
+
getCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CompanyUtilizationDatapointListDto> {
|
|
2818
2806
|
let url_ = this.baseUrl + "/utilization/datapoints/company?";
|
|
2819
2807
|
if (utilizationType === null)
|
|
2820
2808
|
throw new globalThis.Error("The parameter 'utilizationType' cannot be null.");
|
|
2821
2809
|
else if (utilizationType !== undefined)
|
|
2822
2810
|
url_ += "utilizationType=" + encodeURIComponent("" + utilizationType) + "&";
|
|
2823
|
-
if (startTime
|
|
2824
|
-
throw new globalThis.Error("The parameter 'startTime' cannot be null.");
|
|
2825
|
-
else if (startTime !== undefined)
|
|
2811
|
+
if (startTime !== undefined && startTime !== null)
|
|
2826
2812
|
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
2827
2813
|
if (endTime !== undefined && endTime !== null)
|
|
2828
2814
|
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
2829
|
-
if (ianaTimeZone !== undefined && ianaTimeZone !== null)
|
|
2830
|
-
url_ += "ianaTimeZone=" + encodeURIComponent("" + ianaTimeZone) + "&";
|
|
2831
2815
|
url_ = url_.replace(/[?&]$/, "");
|
|
2832
2816
|
|
|
2833
2817
|
let options_: RequestInit = {
|
|
@@ -2862,20 +2846,16 @@ export class UtilizationClient extends AuthorizedApiBase implements IUtilization
|
|
|
2862
2846
|
return Promise.resolve<CompanyUtilizationDatapointListDto>(null as any);
|
|
2863
2847
|
}
|
|
2864
2848
|
|
|
2865
|
-
getCrossCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date |
|
|
2849
|
+
getCrossCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CrossCompanyUtilizationDatapointListDto> {
|
|
2866
2850
|
let url_ = this.baseUrl + "/utilization/datapoints/cross-company?";
|
|
2867
2851
|
if (utilizationType === null)
|
|
2868
2852
|
throw new globalThis.Error("The parameter 'utilizationType' cannot be null.");
|
|
2869
2853
|
else if (utilizationType !== undefined)
|
|
2870
2854
|
url_ += "utilizationType=" + encodeURIComponent("" + utilizationType) + "&";
|
|
2871
|
-
if (startTime
|
|
2872
|
-
throw new globalThis.Error("The parameter 'startTime' cannot be null.");
|
|
2873
|
-
else if (startTime !== undefined)
|
|
2855
|
+
if (startTime !== undefined && startTime !== null)
|
|
2874
2856
|
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
2875
2857
|
if (endTime !== undefined && endTime !== null)
|
|
2876
2858
|
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
2877
|
-
if (ianaTimeZone !== undefined && ianaTimeZone !== null)
|
|
2878
|
-
url_ += "ianaTimeZone=" + encodeURIComponent("" + ianaTimeZone) + "&";
|
|
2879
2859
|
url_ = url_.replace(/[?&]$/, "");
|
|
2880
2860
|
|
|
2881
2861
|
let options_: RequestInit = {
|
|
@@ -49572,6 +49552,7 @@ export class ProductionOrderOperationDto implements IProductionOrderOperationDto
|
|
|
49572
49552
|
quantity!: number;
|
|
49573
49553
|
startedQuantity?: number | null;
|
|
49574
49554
|
ongoingQuantity?: number | null;
|
|
49555
|
+
earlierOperationsScrappedQuantity!: number;
|
|
49575
49556
|
availableToStartQuantity!: number;
|
|
49576
49557
|
workInstructions?: string | null;
|
|
49577
49558
|
note?: string | null;
|
|
@@ -49615,6 +49596,7 @@ export class ProductionOrderOperationDto implements IProductionOrderOperationDto
|
|
|
49615
49596
|
this.quantity = _data["quantity"];
|
|
49616
49597
|
this.startedQuantity = _data["startedQuantity"];
|
|
49617
49598
|
this.ongoingQuantity = _data["ongoingQuantity"];
|
|
49599
|
+
this.earlierOperationsScrappedQuantity = _data["earlierOperationsScrappedQuantity"];
|
|
49618
49600
|
this.availableToStartQuantity = _data["availableToStartQuantity"];
|
|
49619
49601
|
this.workInstructions = _data["workInstructions"];
|
|
49620
49602
|
this.note = _data["note"];
|
|
@@ -49658,6 +49640,7 @@ export class ProductionOrderOperationDto implements IProductionOrderOperationDto
|
|
|
49658
49640
|
data["quantity"] = this.quantity;
|
|
49659
49641
|
data["startedQuantity"] = this.startedQuantity;
|
|
49660
49642
|
data["ongoingQuantity"] = this.ongoingQuantity;
|
|
49643
|
+
data["earlierOperationsScrappedQuantity"] = this.earlierOperationsScrappedQuantity;
|
|
49661
49644
|
data["availableToStartQuantity"] = this.availableToStartQuantity;
|
|
49662
49645
|
data["workInstructions"] = this.workInstructions;
|
|
49663
49646
|
data["note"] = this.note;
|
|
@@ -49694,6 +49677,7 @@ export interface IProductionOrderOperationDto {
|
|
|
49694
49677
|
quantity: number;
|
|
49695
49678
|
startedQuantity?: number | null;
|
|
49696
49679
|
ongoingQuantity?: number | null;
|
|
49680
|
+
earlierOperationsScrappedQuantity: number;
|
|
49697
49681
|
availableToStartQuantity: number;
|
|
49698
49682
|
workInstructions?: string | null;
|
|
49699
49683
|
note?: string | null;
|
|
@@ -50879,6 +50863,7 @@ export class ProductionScheduleOperationDto implements IProductionScheduleOperat
|
|
|
50879
50863
|
producedQuantity!: number;
|
|
50880
50864
|
scrappedQuantity!: number;
|
|
50881
50865
|
availableToStartQuantity!: number;
|
|
50866
|
+
earlierOperationsScrappedQuantity!: number;
|
|
50882
50867
|
startedQuantity?: number | null;
|
|
50883
50868
|
ongoingQuantity?: number | null;
|
|
50884
50869
|
project?: WorkOrderProjectDto | null;
|
|
@@ -50942,6 +50927,7 @@ export class ProductionScheduleOperationDto implements IProductionScheduleOperat
|
|
|
50942
50927
|
this.producedQuantity = _data["producedQuantity"];
|
|
50943
50928
|
this.scrappedQuantity = _data["scrappedQuantity"];
|
|
50944
50929
|
this.availableToStartQuantity = _data["availableToStartQuantity"];
|
|
50930
|
+
this.earlierOperationsScrappedQuantity = _data["earlierOperationsScrappedQuantity"];
|
|
50945
50931
|
this.startedQuantity = _data["startedQuantity"];
|
|
50946
50932
|
this.ongoingQuantity = _data["ongoingQuantity"];
|
|
50947
50933
|
this.project = _data["project"] ? WorkOrderProjectDto.fromJS(_data["project"]) : undefined as any;
|
|
@@ -51002,6 +50988,7 @@ export class ProductionScheduleOperationDto implements IProductionScheduleOperat
|
|
|
51002
50988
|
data["producedQuantity"] = this.producedQuantity;
|
|
51003
50989
|
data["scrappedQuantity"] = this.scrappedQuantity;
|
|
51004
50990
|
data["availableToStartQuantity"] = this.availableToStartQuantity;
|
|
50991
|
+
data["earlierOperationsScrappedQuantity"] = this.earlierOperationsScrappedQuantity;
|
|
51005
50992
|
data["startedQuantity"] = this.startedQuantity;
|
|
51006
50993
|
data["ongoingQuantity"] = this.ongoingQuantity;
|
|
51007
50994
|
data["project"] = this.project ? this.project.toJSON() : undefined as any;
|
|
@@ -51055,6 +51042,7 @@ export interface IProductionScheduleOperationDto {
|
|
|
51055
51042
|
producedQuantity: number;
|
|
51056
51043
|
scrappedQuantity: number;
|
|
51057
51044
|
availableToStartQuantity: number;
|
|
51045
|
+
earlierOperationsScrappedQuantity: number;
|
|
51058
51046
|
startedQuantity?: number | null;
|
|
51059
51047
|
ongoingQuantity?: number | null;
|
|
51060
51048
|
project?: WorkOrderProjectDto | null;
|
|
@@ -51102,6 +51090,7 @@ export class SurroundingOperationDto implements ISurroundingOperationDto {
|
|
|
51102
51090
|
resourceDepartmentName?: string | null;
|
|
51103
51091
|
producedQuantity!: number;
|
|
51104
51092
|
scrappedQuantity!: number;
|
|
51093
|
+
earlierOperationsScrappedQuantity!: number;
|
|
51105
51094
|
startedQuantity?: number | null;
|
|
51106
51095
|
|
|
51107
51096
|
constructor(data?: ISurroundingOperationDto) {
|
|
@@ -51130,6 +51119,7 @@ export class SurroundingOperationDto implements ISurroundingOperationDto {
|
|
|
51130
51119
|
this.resourceDepartmentName = _data["resourceDepartmentName"];
|
|
51131
51120
|
this.producedQuantity = _data["producedQuantity"];
|
|
51132
51121
|
this.scrappedQuantity = _data["scrappedQuantity"];
|
|
51122
|
+
this.earlierOperationsScrappedQuantity = _data["earlierOperationsScrappedQuantity"];
|
|
51133
51123
|
this.startedQuantity = _data["startedQuantity"];
|
|
51134
51124
|
}
|
|
51135
51125
|
}
|
|
@@ -51158,6 +51148,7 @@ export class SurroundingOperationDto implements ISurroundingOperationDto {
|
|
|
51158
51148
|
data["resourceDepartmentName"] = this.resourceDepartmentName;
|
|
51159
51149
|
data["producedQuantity"] = this.producedQuantity;
|
|
51160
51150
|
data["scrappedQuantity"] = this.scrappedQuantity;
|
|
51151
|
+
data["earlierOperationsScrappedQuantity"] = this.earlierOperationsScrappedQuantity;
|
|
51161
51152
|
data["startedQuantity"] = this.startedQuantity;
|
|
51162
51153
|
return data;
|
|
51163
51154
|
}
|
|
@@ -51179,6 +51170,7 @@ export interface ISurroundingOperationDto {
|
|
|
51179
51170
|
resourceDepartmentName?: string | null;
|
|
51180
51171
|
producedQuantity: number;
|
|
51181
51172
|
scrappedQuantity: number;
|
|
51173
|
+
earlierOperationsScrappedQuantity: number;
|
|
51182
51174
|
startedQuantity?: number | null;
|
|
51183
51175
|
}
|
|
51184
51176
|
|