@ignos/api-client 20251027.0.13010 → 20251027.0.13022-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 +12 -16
- package/lib/ignosportal-api.js +12 -36
- package/package.json +1 -1
- package/src/ignosportal-api.ts +19 -47
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 {
|
|
@@ -6123,6 +6123,7 @@ export declare class MachineCapacityDto implements IMachineCapacityDto {
|
|
|
6123
6123
|
utilizationPercent: number;
|
|
6124
6124
|
capacity: MachineCapacitySettingsDto[];
|
|
6125
6125
|
created?: Date | null;
|
|
6126
|
+
updated?: Date | null;
|
|
6126
6127
|
updatedBy?: string | null;
|
|
6127
6128
|
updatedById?: string | null;
|
|
6128
6129
|
constructor(data?: IMachineCapacityDto);
|
|
@@ -6138,6 +6139,7 @@ export interface IMachineCapacityDto {
|
|
|
6138
6139
|
utilizationPercent: number;
|
|
6139
6140
|
capacity: MachineCapacitySettingsDto[];
|
|
6140
6141
|
created?: Date | null;
|
|
6142
|
+
updated?: Date | null;
|
|
6141
6143
|
updatedBy?: string | null;
|
|
6142
6144
|
updatedById?: string | null;
|
|
6143
6145
|
}
|
|
@@ -9706,7 +9708,6 @@ export declare class BookingParcelDto implements IBookingParcelDto {
|
|
|
9706
9708
|
partNumber?: string | null;
|
|
9707
9709
|
projectId?: string | null;
|
|
9708
9710
|
projectName?: string | null;
|
|
9709
|
-
projectBomPosition?: string | null;
|
|
9710
9711
|
quantity?: number | null;
|
|
9711
9712
|
material?: string | null;
|
|
9712
9713
|
materialOperation?: number | null;
|
|
@@ -9729,7 +9730,6 @@ export interface IBookingParcelDto {
|
|
|
9729
9730
|
partNumber?: string | null;
|
|
9730
9731
|
projectId?: string | null;
|
|
9731
9732
|
projectName?: string | null;
|
|
9732
|
-
projectBomPosition?: string | null;
|
|
9733
9733
|
quantity?: number | null;
|
|
9734
9734
|
material?: string | null;
|
|
9735
9735
|
materialOperation?: number | null;
|
|
@@ -10306,7 +10306,6 @@ export declare class TrackingParcelDto implements ITrackingParcelDto {
|
|
|
10306
10306
|
partNumber?: string | null;
|
|
10307
10307
|
projectId?: string | null;
|
|
10308
10308
|
projectName?: string | null;
|
|
10309
|
-
projectBomPosition?: string | null;
|
|
10310
10309
|
quantity?: number | null;
|
|
10311
10310
|
material?: string | null;
|
|
10312
10311
|
covered?: MaterialCoveredDto | null;
|
|
@@ -10324,7 +10323,6 @@ export interface ITrackingParcelDto {
|
|
|
10324
10323
|
partNumber?: string | null;
|
|
10325
10324
|
projectId?: string | null;
|
|
10326
10325
|
projectName?: string | null;
|
|
10327
|
-
projectBomPosition?: string | null;
|
|
10328
10326
|
quantity?: number | null;
|
|
10329
10327
|
material?: string | null;
|
|
10330
10328
|
covered?: MaterialCoveredDto | null;
|
|
@@ -10429,7 +10427,6 @@ export declare class TrackingHistoryFlattenedDto implements ITrackingHistoryFlat
|
|
|
10429
10427
|
partNumber?: string | null;
|
|
10430
10428
|
projectId?: string | null;
|
|
10431
10429
|
projectName?: string | null;
|
|
10432
|
-
projectBomPosition?: string | null;
|
|
10433
10430
|
quantity?: number | null;
|
|
10434
10431
|
material?: string | null;
|
|
10435
10432
|
covered?: MaterialCoveredDto | null;
|
|
@@ -10455,7 +10452,6 @@ export interface ITrackingHistoryFlattenedDto {
|
|
|
10455
10452
|
partNumber?: string | null;
|
|
10456
10453
|
projectId?: string | null;
|
|
10457
10454
|
projectName?: string | null;
|
|
10458
|
-
projectBomPosition?: string | null;
|
|
10459
10455
|
quantity?: number | null;
|
|
10460
10456
|
material?: string | null;
|
|
10461
10457
|
covered?: MaterialCoveredDto | null;
|
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",
|
|
@@ -30647,6 +30627,7 @@ export class MachineCapacityDto {
|
|
|
30647
30627
|
this.capacity.push(MachineCapacitySettingsDto.fromJS(item));
|
|
30648
30628
|
}
|
|
30649
30629
|
this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined;
|
|
30630
|
+
this.updated = _data["updated"] ? new Date(_data["updated"].toString()) : undefined;
|
|
30650
30631
|
this.updatedBy = _data["updatedBy"];
|
|
30651
30632
|
this.updatedById = _data["updatedById"];
|
|
30652
30633
|
}
|
|
@@ -30670,6 +30651,7 @@ export class MachineCapacityDto {
|
|
|
30670
30651
|
data["capacity"].push(item ? item.toJSON() : undefined);
|
|
30671
30652
|
}
|
|
30672
30653
|
data["created"] = this.created ? this.created.toISOString() : undefined;
|
|
30654
|
+
data["updated"] = this.updated ? this.updated.toISOString() : undefined;
|
|
30673
30655
|
data["updatedBy"] = this.updatedBy;
|
|
30674
30656
|
data["updatedById"] = this.updatedById;
|
|
30675
30657
|
return data;
|
|
@@ -37626,7 +37608,6 @@ export class BookingParcelDto {
|
|
|
37626
37608
|
this.partNumber = _data["partNumber"];
|
|
37627
37609
|
this.projectId = _data["projectId"];
|
|
37628
37610
|
this.projectName = _data["projectName"];
|
|
37629
|
-
this.projectBomPosition = _data["projectBomPosition"];
|
|
37630
37611
|
this.quantity = _data["quantity"];
|
|
37631
37612
|
this.material = _data["material"];
|
|
37632
37613
|
this.materialOperation = _data["materialOperation"];
|
|
@@ -37653,7 +37634,6 @@ export class BookingParcelDto {
|
|
|
37653
37634
|
data["partNumber"] = this.partNumber;
|
|
37654
37635
|
data["projectId"] = this.projectId;
|
|
37655
37636
|
data["projectName"] = this.projectName;
|
|
37656
|
-
data["projectBomPosition"] = this.projectBomPosition;
|
|
37657
37637
|
data["quantity"] = this.quantity;
|
|
37658
37638
|
data["material"] = this.material;
|
|
37659
37639
|
data["materialOperation"] = this.materialOperation;
|
|
@@ -39085,7 +39065,6 @@ export class TrackingParcelDto {
|
|
|
39085
39065
|
this.partNumber = _data["partNumber"];
|
|
39086
39066
|
this.projectId = _data["projectId"];
|
|
39087
39067
|
this.projectName = _data["projectName"];
|
|
39088
|
-
this.projectBomPosition = _data["projectBomPosition"];
|
|
39089
39068
|
this.quantity = _data["quantity"];
|
|
39090
39069
|
this.material = _data["material"];
|
|
39091
39070
|
this.covered = _data["covered"];
|
|
@@ -39115,7 +39094,6 @@ export class TrackingParcelDto {
|
|
|
39115
39094
|
data["partNumber"] = this.partNumber;
|
|
39116
39095
|
data["projectId"] = this.projectId;
|
|
39117
39096
|
data["projectName"] = this.projectName;
|
|
39118
|
-
data["projectBomPosition"] = this.projectBomPosition;
|
|
39119
39097
|
data["quantity"] = this.quantity;
|
|
39120
39098
|
data["material"] = this.material;
|
|
39121
39099
|
data["covered"] = this.covered;
|
|
@@ -39368,7 +39346,6 @@ export class TrackingHistoryFlattenedDto {
|
|
|
39368
39346
|
this.partNumber = _data["partNumber"];
|
|
39369
39347
|
this.projectId = _data["projectId"];
|
|
39370
39348
|
this.projectName = _data["projectName"];
|
|
39371
|
-
this.projectBomPosition = _data["projectBomPosition"];
|
|
39372
39349
|
this.quantity = _data["quantity"];
|
|
39373
39350
|
this.material = _data["material"];
|
|
39374
39351
|
this.covered = _data["covered"];
|
|
@@ -39402,7 +39379,6 @@ export class TrackingHistoryFlattenedDto {
|
|
|
39402
39379
|
data["partNumber"] = this.partNumber;
|
|
39403
39380
|
data["projectId"] = this.projectId;
|
|
39404
39381
|
data["projectName"] = this.projectName;
|
|
39405
|
-
data["projectBomPosition"] = this.projectBomPosition;
|
|
39406
39382
|
data["quantity"] = this.quantity;
|
|
39407
39383
|
data["material"] = this.material;
|
|
39408
39384
|
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 |
|
|
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 = {
|
|
@@ -35511,6 +35491,7 @@ export class MachineCapacityDto implements IMachineCapacityDto {
|
|
|
35511
35491
|
utilizationPercent!: number;
|
|
35512
35492
|
capacity!: MachineCapacitySettingsDto[];
|
|
35513
35493
|
created?: Date | null;
|
|
35494
|
+
updated?: Date | null;
|
|
35514
35495
|
updatedBy?: string | null;
|
|
35515
35496
|
updatedById?: string | null;
|
|
35516
35497
|
|
|
@@ -35539,6 +35520,7 @@ export class MachineCapacityDto implements IMachineCapacityDto {
|
|
|
35539
35520
|
this.capacity!.push(MachineCapacitySettingsDto.fromJS(item));
|
|
35540
35521
|
}
|
|
35541
35522
|
this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined as any;
|
|
35523
|
+
this.updated = _data["updated"] ? new Date(_data["updated"].toString()) : undefined as any;
|
|
35542
35524
|
this.updatedBy = _data["updatedBy"];
|
|
35543
35525
|
this.updatedById = _data["updatedById"];
|
|
35544
35526
|
}
|
|
@@ -35564,6 +35546,7 @@ export class MachineCapacityDto implements IMachineCapacityDto {
|
|
|
35564
35546
|
data["capacity"].push(item ? item.toJSON() : undefined as any);
|
|
35565
35547
|
}
|
|
35566
35548
|
data["created"] = this.created ? this.created.toISOString() : undefined as any;
|
|
35549
|
+
data["updated"] = this.updated ? this.updated.toISOString() : undefined as any;
|
|
35567
35550
|
data["updatedBy"] = this.updatedBy;
|
|
35568
35551
|
data["updatedById"] = this.updatedById;
|
|
35569
35552
|
return data;
|
|
@@ -35578,6 +35561,7 @@ export interface IMachineCapacityDto {
|
|
|
35578
35561
|
utilizationPercent: number;
|
|
35579
35562
|
capacity: MachineCapacitySettingsDto[];
|
|
35580
35563
|
created?: Date | null;
|
|
35564
|
+
updated?: Date | null;
|
|
35581
35565
|
updatedBy?: string | null;
|
|
35582
35566
|
updatedById?: string | null;
|
|
35583
35567
|
}
|
|
@@ -46089,7 +46073,6 @@ export class BookingParcelDto implements IBookingParcelDto {
|
|
|
46089
46073
|
partNumber?: string | null;
|
|
46090
46074
|
projectId?: string | null;
|
|
46091
46075
|
projectName?: string | null;
|
|
46092
|
-
projectBomPosition?: string | null;
|
|
46093
46076
|
quantity?: number | null;
|
|
46094
46077
|
material?: string | null;
|
|
46095
46078
|
materialOperation?: number | null;
|
|
@@ -46118,7 +46101,6 @@ export class BookingParcelDto implements IBookingParcelDto {
|
|
|
46118
46101
|
this.partNumber = _data["partNumber"];
|
|
46119
46102
|
this.projectId = _data["projectId"];
|
|
46120
46103
|
this.projectName = _data["projectName"];
|
|
46121
|
-
this.projectBomPosition = _data["projectBomPosition"];
|
|
46122
46104
|
this.quantity = _data["quantity"];
|
|
46123
46105
|
this.material = _data["material"];
|
|
46124
46106
|
this.materialOperation = _data["materialOperation"];
|
|
@@ -46147,7 +46129,6 @@ export class BookingParcelDto implements IBookingParcelDto {
|
|
|
46147
46129
|
data["partNumber"] = this.partNumber;
|
|
46148
46130
|
data["projectId"] = this.projectId;
|
|
46149
46131
|
data["projectName"] = this.projectName;
|
|
46150
|
-
data["projectBomPosition"] = this.projectBomPosition;
|
|
46151
46132
|
data["quantity"] = this.quantity;
|
|
46152
46133
|
data["material"] = this.material;
|
|
46153
46134
|
data["materialOperation"] = this.materialOperation;
|
|
@@ -46169,7 +46150,6 @@ export interface IBookingParcelDto {
|
|
|
46169
46150
|
partNumber?: string | null;
|
|
46170
46151
|
projectId?: string | null;
|
|
46171
46152
|
projectName?: string | null;
|
|
46172
|
-
projectBomPosition?: string | null;
|
|
46173
46153
|
quantity?: number | null;
|
|
46174
46154
|
material?: string | null;
|
|
46175
46155
|
materialOperation?: number | null;
|
|
@@ -48148,7 +48128,6 @@ export class TrackingParcelDto implements ITrackingParcelDto {
|
|
|
48148
48128
|
partNumber?: string | null;
|
|
48149
48129
|
projectId?: string | null;
|
|
48150
48130
|
projectName?: string | null;
|
|
48151
|
-
projectBomPosition?: string | null;
|
|
48152
48131
|
quantity?: number | null;
|
|
48153
48132
|
material?: string | null;
|
|
48154
48133
|
covered?: MaterialCoveredDto | null;
|
|
@@ -48176,7 +48155,6 @@ export class TrackingParcelDto implements ITrackingParcelDto {
|
|
|
48176
48155
|
this.partNumber = _data["partNumber"];
|
|
48177
48156
|
this.projectId = _data["projectId"];
|
|
48178
48157
|
this.projectName = _data["projectName"];
|
|
48179
|
-
this.projectBomPosition = _data["projectBomPosition"];
|
|
48180
48158
|
this.quantity = _data["quantity"];
|
|
48181
48159
|
this.material = _data["material"];
|
|
48182
48160
|
this.covered = _data["covered"];
|
|
@@ -48208,7 +48186,6 @@ export class TrackingParcelDto implements ITrackingParcelDto {
|
|
|
48208
48186
|
data["partNumber"] = this.partNumber;
|
|
48209
48187
|
data["projectId"] = this.projectId;
|
|
48210
48188
|
data["projectName"] = this.projectName;
|
|
48211
|
-
data["projectBomPosition"] = this.projectBomPosition;
|
|
48212
48189
|
data["quantity"] = this.quantity;
|
|
48213
48190
|
data["material"] = this.material;
|
|
48214
48191
|
data["covered"] = this.covered;
|
|
@@ -48233,7 +48210,6 @@ export interface ITrackingParcelDto {
|
|
|
48233
48210
|
partNumber?: string | null;
|
|
48234
48211
|
projectId?: string | null;
|
|
48235
48212
|
projectName?: string | null;
|
|
48236
|
-
projectBomPosition?: string | null;
|
|
48237
48213
|
quantity?: number | null;
|
|
48238
48214
|
material?: string | null;
|
|
48239
48215
|
covered?: MaterialCoveredDto | null;
|
|
@@ -48556,7 +48532,6 @@ export class TrackingHistoryFlattenedDto implements ITrackingHistoryFlattenedDto
|
|
|
48556
48532
|
partNumber?: string | null;
|
|
48557
48533
|
projectId?: string | null;
|
|
48558
48534
|
projectName?: string | null;
|
|
48559
|
-
projectBomPosition?: string | null;
|
|
48560
48535
|
quantity?: number | null;
|
|
48561
48536
|
material?: string | null;
|
|
48562
48537
|
covered?: MaterialCoveredDto | null;
|
|
@@ -48591,7 +48566,6 @@ export class TrackingHistoryFlattenedDto implements ITrackingHistoryFlattenedDto
|
|
|
48591
48566
|
this.partNumber = _data["partNumber"];
|
|
48592
48567
|
this.projectId = _data["projectId"];
|
|
48593
48568
|
this.projectName = _data["projectName"];
|
|
48594
|
-
this.projectBomPosition = _data["projectBomPosition"];
|
|
48595
48569
|
this.quantity = _data["quantity"];
|
|
48596
48570
|
this.material = _data["material"];
|
|
48597
48571
|
this.covered = _data["covered"];
|
|
@@ -48627,7 +48601,6 @@ export class TrackingHistoryFlattenedDto implements ITrackingHistoryFlattenedDto
|
|
|
48627
48601
|
data["partNumber"] = this.partNumber;
|
|
48628
48602
|
data["projectId"] = this.projectId;
|
|
48629
48603
|
data["projectName"] = this.projectName;
|
|
48630
|
-
data["projectBomPosition"] = this.projectBomPosition;
|
|
48631
48604
|
data["quantity"] = this.quantity;
|
|
48632
48605
|
data["material"] = this.material;
|
|
48633
48606
|
data["covered"] = this.covered;
|
|
@@ -48656,7 +48629,6 @@ export interface ITrackingHistoryFlattenedDto {
|
|
|
48656
48629
|
partNumber?: string | null;
|
|
48657
48630
|
projectId?: string | null;
|
|
48658
48631
|
projectName?: string | null;
|
|
48659
|
-
projectBomPosition?: string | null;
|
|
48660
48632
|
quantity?: number | null;
|
|
48661
48633
|
material?: string | null;
|
|
48662
48634
|
covered?: MaterialCoveredDto | null;
|