@ignos/api-client 20251023.0.12976 → 20251027.0.13010
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 +36 -10
- package/package.json +1 -1
- package/src/ignosportal-api.ts +47 -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 {
|
|
@@ -9706,6 +9706,7 @@ export declare class BookingParcelDto implements IBookingParcelDto {
|
|
|
9706
9706
|
partNumber?: string | null;
|
|
9707
9707
|
projectId?: string | null;
|
|
9708
9708
|
projectName?: string | null;
|
|
9709
|
+
projectBomPosition?: string | null;
|
|
9709
9710
|
quantity?: number | null;
|
|
9710
9711
|
material?: string | null;
|
|
9711
9712
|
materialOperation?: number | null;
|
|
@@ -9728,6 +9729,7 @@ export interface IBookingParcelDto {
|
|
|
9728
9729
|
partNumber?: string | null;
|
|
9729
9730
|
projectId?: string | null;
|
|
9730
9731
|
projectName?: string | null;
|
|
9732
|
+
projectBomPosition?: string | null;
|
|
9731
9733
|
quantity?: number | null;
|
|
9732
9734
|
material?: string | null;
|
|
9733
9735
|
materialOperation?: number | null;
|
|
@@ -10304,6 +10306,7 @@ export declare class TrackingParcelDto implements ITrackingParcelDto {
|
|
|
10304
10306
|
partNumber?: string | null;
|
|
10305
10307
|
projectId?: string | null;
|
|
10306
10308
|
projectName?: string | null;
|
|
10309
|
+
projectBomPosition?: string | null;
|
|
10307
10310
|
quantity?: number | null;
|
|
10308
10311
|
material?: string | null;
|
|
10309
10312
|
covered?: MaterialCoveredDto | null;
|
|
@@ -10321,6 +10324,7 @@ export interface ITrackingParcelDto {
|
|
|
10321
10324
|
partNumber?: string | null;
|
|
10322
10325
|
projectId?: string | null;
|
|
10323
10326
|
projectName?: string | null;
|
|
10327
|
+
projectBomPosition?: string | null;
|
|
10324
10328
|
quantity?: number | null;
|
|
10325
10329
|
material?: string | null;
|
|
10326
10330
|
covered?: MaterialCoveredDto | null;
|
|
@@ -10425,6 +10429,7 @@ export declare class TrackingHistoryFlattenedDto implements ITrackingHistoryFlat
|
|
|
10425
10429
|
partNumber?: string | null;
|
|
10426
10430
|
projectId?: string | null;
|
|
10427
10431
|
projectName?: string | null;
|
|
10432
|
+
projectBomPosition?: string | null;
|
|
10428
10433
|
quantity?: number | null;
|
|
10429
10434
|
material?: string | null;
|
|
10430
10435
|
covered?: MaterialCoveredDto | null;
|
|
@@ -10450,6 +10455,7 @@ export interface ITrackingHistoryFlattenedDto {
|
|
|
10450
10455
|
partNumber?: string | null;
|
|
10451
10456
|
projectId?: string | null;
|
|
10452
10457
|
projectName?: string | null;
|
|
10458
|
+
projectBomPosition?: string | null;
|
|
10453
10459
|
quantity?: number | null;
|
|
10454
10460
|
material?: string | null;
|
|
10455
10461
|
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",
|
|
@@ -37606,6 +37626,7 @@ export class BookingParcelDto {
|
|
|
37606
37626
|
this.partNumber = _data["partNumber"];
|
|
37607
37627
|
this.projectId = _data["projectId"];
|
|
37608
37628
|
this.projectName = _data["projectName"];
|
|
37629
|
+
this.projectBomPosition = _data["projectBomPosition"];
|
|
37609
37630
|
this.quantity = _data["quantity"];
|
|
37610
37631
|
this.material = _data["material"];
|
|
37611
37632
|
this.materialOperation = _data["materialOperation"];
|
|
@@ -37632,6 +37653,7 @@ export class BookingParcelDto {
|
|
|
37632
37653
|
data["partNumber"] = this.partNumber;
|
|
37633
37654
|
data["projectId"] = this.projectId;
|
|
37634
37655
|
data["projectName"] = this.projectName;
|
|
37656
|
+
data["projectBomPosition"] = this.projectBomPosition;
|
|
37635
37657
|
data["quantity"] = this.quantity;
|
|
37636
37658
|
data["material"] = this.material;
|
|
37637
37659
|
data["materialOperation"] = this.materialOperation;
|
|
@@ -39063,6 +39085,7 @@ export class TrackingParcelDto {
|
|
|
39063
39085
|
this.partNumber = _data["partNumber"];
|
|
39064
39086
|
this.projectId = _data["projectId"];
|
|
39065
39087
|
this.projectName = _data["projectName"];
|
|
39088
|
+
this.projectBomPosition = _data["projectBomPosition"];
|
|
39066
39089
|
this.quantity = _data["quantity"];
|
|
39067
39090
|
this.material = _data["material"];
|
|
39068
39091
|
this.covered = _data["covered"];
|
|
@@ -39092,6 +39115,7 @@ export class TrackingParcelDto {
|
|
|
39092
39115
|
data["partNumber"] = this.partNumber;
|
|
39093
39116
|
data["projectId"] = this.projectId;
|
|
39094
39117
|
data["projectName"] = this.projectName;
|
|
39118
|
+
data["projectBomPosition"] = this.projectBomPosition;
|
|
39095
39119
|
data["quantity"] = this.quantity;
|
|
39096
39120
|
data["material"] = this.material;
|
|
39097
39121
|
data["covered"] = this.covered;
|
|
@@ -39344,6 +39368,7 @@ export class TrackingHistoryFlattenedDto {
|
|
|
39344
39368
|
this.partNumber = _data["partNumber"];
|
|
39345
39369
|
this.projectId = _data["projectId"];
|
|
39346
39370
|
this.projectName = _data["projectName"];
|
|
39371
|
+
this.projectBomPosition = _data["projectBomPosition"];
|
|
39347
39372
|
this.quantity = _data["quantity"];
|
|
39348
39373
|
this.material = _data["material"];
|
|
39349
39374
|
this.covered = _data["covered"];
|
|
@@ -39377,6 +39402,7 @@ export class TrackingHistoryFlattenedDto {
|
|
|
39377
39402
|
data["partNumber"] = this.partNumber;
|
|
39378
39403
|
data["projectId"] = this.projectId;
|
|
39379
39404
|
data["projectName"] = this.projectName;
|
|
39405
|
+
data["projectBomPosition"] = this.projectBomPosition;
|
|
39380
39406
|
data["quantity"] = this.quantity;
|
|
39381
39407
|
data["material"] = this.material;
|
|
39382
39408
|
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 = {
|
|
@@ -46069,6 +46089,7 @@ export class BookingParcelDto implements IBookingParcelDto {
|
|
|
46069
46089
|
partNumber?: string | null;
|
|
46070
46090
|
projectId?: string | null;
|
|
46071
46091
|
projectName?: string | null;
|
|
46092
|
+
projectBomPosition?: string | null;
|
|
46072
46093
|
quantity?: number | null;
|
|
46073
46094
|
material?: string | null;
|
|
46074
46095
|
materialOperation?: number | null;
|
|
@@ -46097,6 +46118,7 @@ export class BookingParcelDto implements IBookingParcelDto {
|
|
|
46097
46118
|
this.partNumber = _data["partNumber"];
|
|
46098
46119
|
this.projectId = _data["projectId"];
|
|
46099
46120
|
this.projectName = _data["projectName"];
|
|
46121
|
+
this.projectBomPosition = _data["projectBomPosition"];
|
|
46100
46122
|
this.quantity = _data["quantity"];
|
|
46101
46123
|
this.material = _data["material"];
|
|
46102
46124
|
this.materialOperation = _data["materialOperation"];
|
|
@@ -46125,6 +46147,7 @@ export class BookingParcelDto implements IBookingParcelDto {
|
|
|
46125
46147
|
data["partNumber"] = this.partNumber;
|
|
46126
46148
|
data["projectId"] = this.projectId;
|
|
46127
46149
|
data["projectName"] = this.projectName;
|
|
46150
|
+
data["projectBomPosition"] = this.projectBomPosition;
|
|
46128
46151
|
data["quantity"] = this.quantity;
|
|
46129
46152
|
data["material"] = this.material;
|
|
46130
46153
|
data["materialOperation"] = this.materialOperation;
|
|
@@ -46146,6 +46169,7 @@ export interface IBookingParcelDto {
|
|
|
46146
46169
|
partNumber?: string | null;
|
|
46147
46170
|
projectId?: string | null;
|
|
46148
46171
|
projectName?: string | null;
|
|
46172
|
+
projectBomPosition?: string | null;
|
|
46149
46173
|
quantity?: number | null;
|
|
46150
46174
|
material?: string | null;
|
|
46151
46175
|
materialOperation?: number | null;
|
|
@@ -48124,6 +48148,7 @@ export class TrackingParcelDto implements ITrackingParcelDto {
|
|
|
48124
48148
|
partNumber?: string | null;
|
|
48125
48149
|
projectId?: string | null;
|
|
48126
48150
|
projectName?: string | null;
|
|
48151
|
+
projectBomPosition?: string | null;
|
|
48127
48152
|
quantity?: number | null;
|
|
48128
48153
|
material?: string | null;
|
|
48129
48154
|
covered?: MaterialCoveredDto | null;
|
|
@@ -48151,6 +48176,7 @@ export class TrackingParcelDto implements ITrackingParcelDto {
|
|
|
48151
48176
|
this.partNumber = _data["partNumber"];
|
|
48152
48177
|
this.projectId = _data["projectId"];
|
|
48153
48178
|
this.projectName = _data["projectName"];
|
|
48179
|
+
this.projectBomPosition = _data["projectBomPosition"];
|
|
48154
48180
|
this.quantity = _data["quantity"];
|
|
48155
48181
|
this.material = _data["material"];
|
|
48156
48182
|
this.covered = _data["covered"];
|
|
@@ -48182,6 +48208,7 @@ export class TrackingParcelDto implements ITrackingParcelDto {
|
|
|
48182
48208
|
data["partNumber"] = this.partNumber;
|
|
48183
48209
|
data["projectId"] = this.projectId;
|
|
48184
48210
|
data["projectName"] = this.projectName;
|
|
48211
|
+
data["projectBomPosition"] = this.projectBomPosition;
|
|
48185
48212
|
data["quantity"] = this.quantity;
|
|
48186
48213
|
data["material"] = this.material;
|
|
48187
48214
|
data["covered"] = this.covered;
|
|
@@ -48206,6 +48233,7 @@ export interface ITrackingParcelDto {
|
|
|
48206
48233
|
partNumber?: string | null;
|
|
48207
48234
|
projectId?: string | null;
|
|
48208
48235
|
projectName?: string | null;
|
|
48236
|
+
projectBomPosition?: string | null;
|
|
48209
48237
|
quantity?: number | null;
|
|
48210
48238
|
material?: string | null;
|
|
48211
48239
|
covered?: MaterialCoveredDto | null;
|
|
@@ -48528,6 +48556,7 @@ export class TrackingHistoryFlattenedDto implements ITrackingHistoryFlattenedDto
|
|
|
48528
48556
|
partNumber?: string | null;
|
|
48529
48557
|
projectId?: string | null;
|
|
48530
48558
|
projectName?: string | null;
|
|
48559
|
+
projectBomPosition?: string | null;
|
|
48531
48560
|
quantity?: number | null;
|
|
48532
48561
|
material?: string | null;
|
|
48533
48562
|
covered?: MaterialCoveredDto | null;
|
|
@@ -48562,6 +48591,7 @@ export class TrackingHistoryFlattenedDto implements ITrackingHistoryFlattenedDto
|
|
|
48562
48591
|
this.partNumber = _data["partNumber"];
|
|
48563
48592
|
this.projectId = _data["projectId"];
|
|
48564
48593
|
this.projectName = _data["projectName"];
|
|
48594
|
+
this.projectBomPosition = _data["projectBomPosition"];
|
|
48565
48595
|
this.quantity = _data["quantity"];
|
|
48566
48596
|
this.material = _data["material"];
|
|
48567
48597
|
this.covered = _data["covered"];
|
|
@@ -48597,6 +48627,7 @@ export class TrackingHistoryFlattenedDto implements ITrackingHistoryFlattenedDto
|
|
|
48597
48627
|
data["partNumber"] = this.partNumber;
|
|
48598
48628
|
data["projectId"] = this.projectId;
|
|
48599
48629
|
data["projectName"] = this.projectName;
|
|
48630
|
+
data["projectBomPosition"] = this.projectBomPosition;
|
|
48600
48631
|
data["quantity"] = this.quantity;
|
|
48601
48632
|
data["material"] = this.material;
|
|
48602
48633
|
data["covered"] = this.covered;
|
|
@@ -48625,6 +48656,7 @@ export interface ITrackingHistoryFlattenedDto {
|
|
|
48625
48656
|
partNumber?: string | null;
|
|
48626
48657
|
projectId?: string | null;
|
|
48627
48658
|
projectName?: string | null;
|
|
48659
|
+
projectBomPosition?: string | null;
|
|
48628
48660
|
quantity?: number | null;
|
|
48629
48661
|
material?: string | null;
|
|
48630
48662
|
covered?: MaterialCoveredDto | null;
|