@ignos/api-client 20251027.0.13022-alpha → 20251028.0.13024
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 {
|
|
@@ -9708,6 +9708,7 @@ export declare class BookingParcelDto implements IBookingParcelDto {
|
|
|
9708
9708
|
partNumber?: string | null;
|
|
9709
9709
|
projectId?: string | null;
|
|
9710
9710
|
projectName?: string | null;
|
|
9711
|
+
projectBomPosition?: string | null;
|
|
9711
9712
|
quantity?: number | null;
|
|
9712
9713
|
material?: string | null;
|
|
9713
9714
|
materialOperation?: number | null;
|
|
@@ -9730,6 +9731,7 @@ export interface IBookingParcelDto {
|
|
|
9730
9731
|
partNumber?: string | null;
|
|
9731
9732
|
projectId?: string | null;
|
|
9732
9733
|
projectName?: string | null;
|
|
9734
|
+
projectBomPosition?: string | null;
|
|
9733
9735
|
quantity?: number | null;
|
|
9734
9736
|
material?: string | null;
|
|
9735
9737
|
materialOperation?: number | null;
|
|
@@ -10306,6 +10308,7 @@ export declare class TrackingParcelDto implements ITrackingParcelDto {
|
|
|
10306
10308
|
partNumber?: string | null;
|
|
10307
10309
|
projectId?: string | null;
|
|
10308
10310
|
projectName?: string | null;
|
|
10311
|
+
projectBomPosition?: string | null;
|
|
10309
10312
|
quantity?: number | null;
|
|
10310
10313
|
material?: string | null;
|
|
10311
10314
|
covered?: MaterialCoveredDto | null;
|
|
@@ -10323,6 +10326,7 @@ export interface ITrackingParcelDto {
|
|
|
10323
10326
|
partNumber?: string | null;
|
|
10324
10327
|
projectId?: string | null;
|
|
10325
10328
|
projectName?: string | null;
|
|
10329
|
+
projectBomPosition?: string | null;
|
|
10326
10330
|
quantity?: number | null;
|
|
10327
10331
|
material?: string | null;
|
|
10328
10332
|
covered?: MaterialCoveredDto | null;
|
|
@@ -10427,6 +10431,7 @@ export declare class TrackingHistoryFlattenedDto implements ITrackingHistoryFlat
|
|
|
10427
10431
|
partNumber?: string | null;
|
|
10428
10432
|
projectId?: string | null;
|
|
10429
10433
|
projectName?: string | null;
|
|
10434
|
+
projectBomPosition?: string | null;
|
|
10430
10435
|
quantity?: number | null;
|
|
10431
10436
|
material?: string | null;
|
|
10432
10437
|
covered?: MaterialCoveredDto | null;
|
|
@@ -10452,6 +10457,7 @@ export interface ITrackingHistoryFlattenedDto {
|
|
|
10452
10457
|
partNumber?: string | null;
|
|
10453
10458
|
projectId?: string | null;
|
|
10454
10459
|
projectName?: string | null;
|
|
10460
|
+
projectBomPosition?: string | null;
|
|
10455
10461
|
quantity?: number | null;
|
|
10456
10462
|
material?: string | null;
|
|
10457
10463
|
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",
|
|
@@ -37608,6 +37628,7 @@ export class BookingParcelDto {
|
|
|
37608
37628
|
this.partNumber = _data["partNumber"];
|
|
37609
37629
|
this.projectId = _data["projectId"];
|
|
37610
37630
|
this.projectName = _data["projectName"];
|
|
37631
|
+
this.projectBomPosition = _data["projectBomPosition"];
|
|
37611
37632
|
this.quantity = _data["quantity"];
|
|
37612
37633
|
this.material = _data["material"];
|
|
37613
37634
|
this.materialOperation = _data["materialOperation"];
|
|
@@ -37634,6 +37655,7 @@ export class BookingParcelDto {
|
|
|
37634
37655
|
data["partNumber"] = this.partNumber;
|
|
37635
37656
|
data["projectId"] = this.projectId;
|
|
37636
37657
|
data["projectName"] = this.projectName;
|
|
37658
|
+
data["projectBomPosition"] = this.projectBomPosition;
|
|
37637
37659
|
data["quantity"] = this.quantity;
|
|
37638
37660
|
data["material"] = this.material;
|
|
37639
37661
|
data["materialOperation"] = this.materialOperation;
|
|
@@ -39065,6 +39087,7 @@ export class TrackingParcelDto {
|
|
|
39065
39087
|
this.partNumber = _data["partNumber"];
|
|
39066
39088
|
this.projectId = _data["projectId"];
|
|
39067
39089
|
this.projectName = _data["projectName"];
|
|
39090
|
+
this.projectBomPosition = _data["projectBomPosition"];
|
|
39068
39091
|
this.quantity = _data["quantity"];
|
|
39069
39092
|
this.material = _data["material"];
|
|
39070
39093
|
this.covered = _data["covered"];
|
|
@@ -39094,6 +39117,7 @@ export class TrackingParcelDto {
|
|
|
39094
39117
|
data["partNumber"] = this.partNumber;
|
|
39095
39118
|
data["projectId"] = this.projectId;
|
|
39096
39119
|
data["projectName"] = this.projectName;
|
|
39120
|
+
data["projectBomPosition"] = this.projectBomPosition;
|
|
39097
39121
|
data["quantity"] = this.quantity;
|
|
39098
39122
|
data["material"] = this.material;
|
|
39099
39123
|
data["covered"] = this.covered;
|
|
@@ -39346,6 +39370,7 @@ export class TrackingHistoryFlattenedDto {
|
|
|
39346
39370
|
this.partNumber = _data["partNumber"];
|
|
39347
39371
|
this.projectId = _data["projectId"];
|
|
39348
39372
|
this.projectName = _data["projectName"];
|
|
39373
|
+
this.projectBomPosition = _data["projectBomPosition"];
|
|
39349
39374
|
this.quantity = _data["quantity"];
|
|
39350
39375
|
this.material = _data["material"];
|
|
39351
39376
|
this.covered = _data["covered"];
|
|
@@ -39379,6 +39404,7 @@ export class TrackingHistoryFlattenedDto {
|
|
|
39379
39404
|
data["partNumber"] = this.partNumber;
|
|
39380
39405
|
data["projectId"] = this.projectId;
|
|
39381
39406
|
data["projectName"] = this.projectName;
|
|
39407
|
+
data["projectBomPosition"] = this.projectBomPosition;
|
|
39382
39408
|
data["quantity"] = this.quantity;
|
|
39383
39409
|
data["material"] = this.material;
|
|
39384
39410
|
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 = {
|
|
@@ -46073,6 +46093,7 @@ export class BookingParcelDto implements IBookingParcelDto {
|
|
|
46073
46093
|
partNumber?: string | null;
|
|
46074
46094
|
projectId?: string | null;
|
|
46075
46095
|
projectName?: string | null;
|
|
46096
|
+
projectBomPosition?: string | null;
|
|
46076
46097
|
quantity?: number | null;
|
|
46077
46098
|
material?: string | null;
|
|
46078
46099
|
materialOperation?: number | null;
|
|
@@ -46101,6 +46122,7 @@ export class BookingParcelDto implements IBookingParcelDto {
|
|
|
46101
46122
|
this.partNumber = _data["partNumber"];
|
|
46102
46123
|
this.projectId = _data["projectId"];
|
|
46103
46124
|
this.projectName = _data["projectName"];
|
|
46125
|
+
this.projectBomPosition = _data["projectBomPosition"];
|
|
46104
46126
|
this.quantity = _data["quantity"];
|
|
46105
46127
|
this.material = _data["material"];
|
|
46106
46128
|
this.materialOperation = _data["materialOperation"];
|
|
@@ -46129,6 +46151,7 @@ export class BookingParcelDto implements IBookingParcelDto {
|
|
|
46129
46151
|
data["partNumber"] = this.partNumber;
|
|
46130
46152
|
data["projectId"] = this.projectId;
|
|
46131
46153
|
data["projectName"] = this.projectName;
|
|
46154
|
+
data["projectBomPosition"] = this.projectBomPosition;
|
|
46132
46155
|
data["quantity"] = this.quantity;
|
|
46133
46156
|
data["material"] = this.material;
|
|
46134
46157
|
data["materialOperation"] = this.materialOperation;
|
|
@@ -46150,6 +46173,7 @@ export interface IBookingParcelDto {
|
|
|
46150
46173
|
partNumber?: string | null;
|
|
46151
46174
|
projectId?: string | null;
|
|
46152
46175
|
projectName?: string | null;
|
|
46176
|
+
projectBomPosition?: string | null;
|
|
46153
46177
|
quantity?: number | null;
|
|
46154
46178
|
material?: string | null;
|
|
46155
46179
|
materialOperation?: number | null;
|
|
@@ -48128,6 +48152,7 @@ export class TrackingParcelDto implements ITrackingParcelDto {
|
|
|
48128
48152
|
partNumber?: string | null;
|
|
48129
48153
|
projectId?: string | null;
|
|
48130
48154
|
projectName?: string | null;
|
|
48155
|
+
projectBomPosition?: string | null;
|
|
48131
48156
|
quantity?: number | null;
|
|
48132
48157
|
material?: string | null;
|
|
48133
48158
|
covered?: MaterialCoveredDto | null;
|
|
@@ -48155,6 +48180,7 @@ export class TrackingParcelDto implements ITrackingParcelDto {
|
|
|
48155
48180
|
this.partNumber = _data["partNumber"];
|
|
48156
48181
|
this.projectId = _data["projectId"];
|
|
48157
48182
|
this.projectName = _data["projectName"];
|
|
48183
|
+
this.projectBomPosition = _data["projectBomPosition"];
|
|
48158
48184
|
this.quantity = _data["quantity"];
|
|
48159
48185
|
this.material = _data["material"];
|
|
48160
48186
|
this.covered = _data["covered"];
|
|
@@ -48186,6 +48212,7 @@ export class TrackingParcelDto implements ITrackingParcelDto {
|
|
|
48186
48212
|
data["partNumber"] = this.partNumber;
|
|
48187
48213
|
data["projectId"] = this.projectId;
|
|
48188
48214
|
data["projectName"] = this.projectName;
|
|
48215
|
+
data["projectBomPosition"] = this.projectBomPosition;
|
|
48189
48216
|
data["quantity"] = this.quantity;
|
|
48190
48217
|
data["material"] = this.material;
|
|
48191
48218
|
data["covered"] = this.covered;
|
|
@@ -48210,6 +48237,7 @@ export interface ITrackingParcelDto {
|
|
|
48210
48237
|
partNumber?: string | null;
|
|
48211
48238
|
projectId?: string | null;
|
|
48212
48239
|
projectName?: string | null;
|
|
48240
|
+
projectBomPosition?: string | null;
|
|
48213
48241
|
quantity?: number | null;
|
|
48214
48242
|
material?: string | null;
|
|
48215
48243
|
covered?: MaterialCoveredDto | null;
|
|
@@ -48532,6 +48560,7 @@ export class TrackingHistoryFlattenedDto implements ITrackingHistoryFlattenedDto
|
|
|
48532
48560
|
partNumber?: string | null;
|
|
48533
48561
|
projectId?: string | null;
|
|
48534
48562
|
projectName?: string | null;
|
|
48563
|
+
projectBomPosition?: string | null;
|
|
48535
48564
|
quantity?: number | null;
|
|
48536
48565
|
material?: string | null;
|
|
48537
48566
|
covered?: MaterialCoveredDto | null;
|
|
@@ -48566,6 +48595,7 @@ export class TrackingHistoryFlattenedDto implements ITrackingHistoryFlattenedDto
|
|
|
48566
48595
|
this.partNumber = _data["partNumber"];
|
|
48567
48596
|
this.projectId = _data["projectId"];
|
|
48568
48597
|
this.projectName = _data["projectName"];
|
|
48598
|
+
this.projectBomPosition = _data["projectBomPosition"];
|
|
48569
48599
|
this.quantity = _data["quantity"];
|
|
48570
48600
|
this.material = _data["material"];
|
|
48571
48601
|
this.covered = _data["covered"];
|
|
@@ -48601,6 +48631,7 @@ export class TrackingHistoryFlattenedDto implements ITrackingHistoryFlattenedDto
|
|
|
48601
48631
|
data["partNumber"] = this.partNumber;
|
|
48602
48632
|
data["projectId"] = this.projectId;
|
|
48603
48633
|
data["projectName"] = this.projectName;
|
|
48634
|
+
data["projectBomPosition"] = this.projectBomPosition;
|
|
48604
48635
|
data["quantity"] = this.quantity;
|
|
48605
48636
|
data["material"] = this.material;
|
|
48606
48637
|
data["covered"] = this.covered;
|
|
@@ -48629,6 +48660,7 @@ export interface ITrackingHistoryFlattenedDto {
|
|
|
48629
48660
|
partNumber?: string | null;
|
|
48630
48661
|
projectId?: string | null;
|
|
48631
48662
|
projectName?: string | null;
|
|
48663
|
+
projectBomPosition?: string | null;
|
|
48632
48664
|
quantity?: number | null;
|
|
48633
48665
|
material?: string | null;
|
|
48634
48666
|
covered?: MaterialCoveredDto | null;
|