@ignos/api-client 20250221.0.11233 → 20250225.0.11258-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 +9 -27
- package/lib/ignosportal-api.js +51 -107
- package/package.json +1 -1
- package/src/ignosportal-api.ts +58 -133
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -395,6 +395,7 @@ export interface IUtilizationClient {
|
|
|
395
395
|
getUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined, assetId: number | null | undefined, assetExternalId: string | null | undefined): Promise<MachineUtilizationDatapointListDto>;
|
|
396
396
|
getCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CompanyUtilizationDatapointListDto>;
|
|
397
397
|
getCrossCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CrossCompanyUtilizationDatapointListDto>;
|
|
398
|
+
getLowessCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CompanyUtilizationDatapointListDto>;
|
|
398
399
|
}
|
|
399
400
|
export declare class UtilizationClient extends AuthorizedApiBase implements IUtilizationClient {
|
|
400
401
|
private http;
|
|
@@ -413,6 +414,8 @@ export declare class UtilizationClient extends AuthorizedApiBase implements IUti
|
|
|
413
414
|
protected processGetCompanyUtilizationDatapoints(response: Response): Promise<CompanyUtilizationDatapointListDto>;
|
|
414
415
|
getCrossCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CrossCompanyUtilizationDatapointListDto>;
|
|
415
416
|
protected processGetCrossCompanyUtilizationDatapoints(response: Response): Promise<CrossCompanyUtilizationDatapointListDto>;
|
|
417
|
+
getLowessCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CompanyUtilizationDatapointListDto>;
|
|
418
|
+
protected processGetLowessCompanyUtilizationDatapoints(response: Response): Promise<CompanyUtilizationDatapointListDto>;
|
|
416
419
|
}
|
|
417
420
|
export interface IMrbClient {
|
|
418
421
|
listMrbInstances(customerOrder: string | undefined, customerOrderLine: number | null | undefined): Promise<MrbInstanceDto[]>;
|
|
@@ -1666,7 +1669,6 @@ export interface IMoveTrackingClient {
|
|
|
1666
1669
|
createTrackingEvents(trackingUpdates: TrackingUpdateDto[]): Promise<TrackingHistoryDto[]>;
|
|
1667
1670
|
createTrackingHistory(trackingUpdates: TrackingHistoryUpdateDto[]): Promise<TrackingHistoryDto[]>;
|
|
1668
1671
|
deleteTrackingHistory(trackingId: string): Promise<void>;
|
|
1669
|
-
createLabelAndUpdateParcel(labelUpdate: LabelUpdateListDto): Promise<DownloadDto>;
|
|
1670
1672
|
}
|
|
1671
1673
|
export declare class MoveTrackingClient extends AuthorizedApiBase implements IMoveTrackingClient {
|
|
1672
1674
|
private http;
|
|
@@ -1691,8 +1693,6 @@ export declare class MoveTrackingClient extends AuthorizedApiBase implements IMo
|
|
|
1691
1693
|
protected processCreateTrackingHistory(response: Response): Promise<TrackingHistoryDto[]>;
|
|
1692
1694
|
deleteTrackingHistory(trackingId: string): Promise<void>;
|
|
1693
1695
|
protected processDeleteTrackingHistory(response: Response): Promise<void>;
|
|
1694
|
-
createLabelAndUpdateParcel(labelUpdate: LabelUpdateListDto): Promise<DownloadDto>;
|
|
1695
|
-
protected processCreateLabelAndUpdateParcel(response: Response): Promise<DownloadDto>;
|
|
1696
1696
|
}
|
|
1697
1697
|
export interface IInventoryClient {
|
|
1698
1698
|
listVendorBatches(request: ListVendorBatches): Promise<VendorBatchLookupDto[]>;
|
|
@@ -3577,6 +3577,9 @@ export declare class UtilizationDetailsV2Dto implements IUtilizationDetailsV2Dto
|
|
|
3577
3577
|
uptimeInSeconds?: number | null;
|
|
3578
3578
|
downtimeInSeconds?: number | null;
|
|
3579
3579
|
totalTimeInSeconds?: number | null;
|
|
3580
|
+
uptimeInMilliseconds?: number | null;
|
|
3581
|
+
downtimeInMilliseconds?: number | null;
|
|
3582
|
+
totalTimeInMilliseconds?: number | null;
|
|
3580
3583
|
constructor(data?: IUtilizationDetailsV2Dto);
|
|
3581
3584
|
init(_data?: any): void;
|
|
3582
3585
|
static fromJS(data: any): UtilizationDetailsV2Dto;
|
|
@@ -3587,6 +3590,9 @@ export interface IUtilizationDetailsV2Dto {
|
|
|
3587
3590
|
uptimeInSeconds?: number | null;
|
|
3588
3591
|
downtimeInSeconds?: number | null;
|
|
3589
3592
|
totalTimeInSeconds?: number | null;
|
|
3593
|
+
uptimeInMilliseconds?: number | null;
|
|
3594
|
+
downtimeInMilliseconds?: number | null;
|
|
3595
|
+
totalTimeInMilliseconds?: number | null;
|
|
3590
3596
|
}
|
|
3591
3597
|
export declare class MachineGroupUtilizationV2Dto implements IMachineGroupUtilizationV2Dto {
|
|
3592
3598
|
name: string;
|
|
@@ -9318,30 +9324,6 @@ export declare class TrackingHistoryUpdateDto implements ITrackingHistoryUpdateD
|
|
|
9318
9324
|
export interface ITrackingHistoryUpdateDto {
|
|
9319
9325
|
parcelId: string;
|
|
9320
9326
|
}
|
|
9321
|
-
export declare class LabelUpdateListDto implements ILabelUpdateListDto {
|
|
9322
|
-
labelUpdates: LabelUpdateDto[];
|
|
9323
|
-
constructor(data?: ILabelUpdateListDto);
|
|
9324
|
-
init(_data?: any): void;
|
|
9325
|
-
static fromJS(data: any): LabelUpdateListDto;
|
|
9326
|
-
toJSON(data?: any): any;
|
|
9327
|
-
}
|
|
9328
|
-
export interface ILabelUpdateListDto {
|
|
9329
|
-
labelUpdates: LabelUpdateDto[];
|
|
9330
|
-
}
|
|
9331
|
-
export declare class LabelUpdateDto implements ILabelUpdateDto {
|
|
9332
|
-
parcelId: string;
|
|
9333
|
-
trackingId?: string | null;
|
|
9334
|
-
comment?: string | null;
|
|
9335
|
-
constructor(data?: ILabelUpdateDto);
|
|
9336
|
-
init(_data?: any): void;
|
|
9337
|
-
static fromJS(data: any): LabelUpdateDto;
|
|
9338
|
-
toJSON(data?: any): any;
|
|
9339
|
-
}
|
|
9340
|
-
export interface ILabelUpdateDto {
|
|
9341
|
-
parcelId: string;
|
|
9342
|
-
trackingId?: string | null;
|
|
9343
|
-
comment?: string | null;
|
|
9344
|
-
}
|
|
9345
9327
|
export declare class VendorBatchLookupDto implements IVendorBatchLookupDto {
|
|
9346
9328
|
batchNumber?: string;
|
|
9347
9329
|
vendorBatchNumber?: string | null;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -2398,6 +2398,51 @@ export class UtilizationClient extends AuthorizedApiBase {
|
|
|
2398
2398
|
}
|
|
2399
2399
|
return Promise.resolve(null);
|
|
2400
2400
|
}
|
|
2401
|
+
getLowessCompanyUtilizationDatapoints(utilizationType, startTime, endTime) {
|
|
2402
|
+
let url_ = this.baseUrl + "/utilization/datapoints/company/lowess?";
|
|
2403
|
+
if (utilizationType === null)
|
|
2404
|
+
throw new Error("The parameter 'utilizationType' cannot be null.");
|
|
2405
|
+
else if (utilizationType !== undefined)
|
|
2406
|
+
url_ += "utilizationType=" + encodeURIComponent("" + utilizationType) + "&";
|
|
2407
|
+
if (startTime !== undefined && startTime !== null)
|
|
2408
|
+
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
2409
|
+
if (endTime !== undefined && endTime !== null)
|
|
2410
|
+
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
2411
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
2412
|
+
let options_ = {
|
|
2413
|
+
method: "GET",
|
|
2414
|
+
headers: {
|
|
2415
|
+
"Accept": "application/json"
|
|
2416
|
+
}
|
|
2417
|
+
};
|
|
2418
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
2419
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
2420
|
+
}).then((_response) => {
|
|
2421
|
+
return this.processGetLowessCompanyUtilizationDatapoints(_response);
|
|
2422
|
+
});
|
|
2423
|
+
}
|
|
2424
|
+
processGetLowessCompanyUtilizationDatapoints(response) {
|
|
2425
|
+
const status = response.status;
|
|
2426
|
+
let _headers = {};
|
|
2427
|
+
if (response.headers && response.headers.forEach) {
|
|
2428
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
2429
|
+
}
|
|
2430
|
+
;
|
|
2431
|
+
if (status === 200) {
|
|
2432
|
+
return response.text().then((_responseText) => {
|
|
2433
|
+
let result200 = null;
|
|
2434
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2435
|
+
result200 = CompanyUtilizationDatapointListDto.fromJS(resultData200);
|
|
2436
|
+
return result200;
|
|
2437
|
+
});
|
|
2438
|
+
}
|
|
2439
|
+
else if (status !== 200 && status !== 204) {
|
|
2440
|
+
return response.text().then((_responseText) => {
|
|
2441
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
2442
|
+
});
|
|
2443
|
+
}
|
|
2444
|
+
return Promise.resolve(null);
|
|
2445
|
+
}
|
|
2401
2446
|
}
|
|
2402
2447
|
export class MrbClient extends AuthorizedApiBase {
|
|
2403
2448
|
constructor(configuration, baseUrl, http) {
|
|
@@ -13948,46 +13993,6 @@ export class MoveTrackingClient extends AuthorizedApiBase {
|
|
|
13948
13993
|
}
|
|
13949
13994
|
return Promise.resolve(null);
|
|
13950
13995
|
}
|
|
13951
|
-
createLabelAndUpdateParcel(labelUpdate) {
|
|
13952
|
-
let url_ = this.baseUrl + "/move/tracking/labelupdate";
|
|
13953
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
13954
|
-
const content_ = JSON.stringify(labelUpdate);
|
|
13955
|
-
let options_ = {
|
|
13956
|
-
body: content_,
|
|
13957
|
-
method: "POST",
|
|
13958
|
-
headers: {
|
|
13959
|
-
"Content-Type": "application/json",
|
|
13960
|
-
"Accept": "application/json"
|
|
13961
|
-
}
|
|
13962
|
-
};
|
|
13963
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
13964
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
13965
|
-
}).then((_response) => {
|
|
13966
|
-
return this.processCreateLabelAndUpdateParcel(_response);
|
|
13967
|
-
});
|
|
13968
|
-
}
|
|
13969
|
-
processCreateLabelAndUpdateParcel(response) {
|
|
13970
|
-
const status = response.status;
|
|
13971
|
-
let _headers = {};
|
|
13972
|
-
if (response.headers && response.headers.forEach) {
|
|
13973
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
13974
|
-
}
|
|
13975
|
-
;
|
|
13976
|
-
if (status === 200) {
|
|
13977
|
-
return response.text().then((_responseText) => {
|
|
13978
|
-
let result200 = null;
|
|
13979
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
13980
|
-
result200 = DownloadDto.fromJS(resultData200);
|
|
13981
|
-
return result200;
|
|
13982
|
-
});
|
|
13983
|
-
}
|
|
13984
|
-
else if (status !== 200 && status !== 204) {
|
|
13985
|
-
return response.text().then((_responseText) => {
|
|
13986
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
13987
|
-
});
|
|
13988
|
-
}
|
|
13989
|
-
return Promise.resolve(null);
|
|
13990
|
-
}
|
|
13991
13996
|
}
|
|
13992
13997
|
export class InventoryClient extends AuthorizedApiBase {
|
|
13993
13998
|
constructor(configuration, baseUrl, http) {
|
|
@@ -23067,6 +23072,9 @@ export class UtilizationDetailsV2Dto {
|
|
|
23067
23072
|
this.uptimeInSeconds = _data["uptimeInSeconds"];
|
|
23068
23073
|
this.downtimeInSeconds = _data["downtimeInSeconds"];
|
|
23069
23074
|
this.totalTimeInSeconds = _data["totalTimeInSeconds"];
|
|
23075
|
+
this.uptimeInMilliseconds = _data["uptimeInMilliseconds"];
|
|
23076
|
+
this.downtimeInMilliseconds = _data["downtimeInMilliseconds"];
|
|
23077
|
+
this.totalTimeInMilliseconds = _data["totalTimeInMilliseconds"];
|
|
23070
23078
|
}
|
|
23071
23079
|
}
|
|
23072
23080
|
static fromJS(data) {
|
|
@@ -23081,6 +23089,9 @@ export class UtilizationDetailsV2Dto {
|
|
|
23081
23089
|
data["uptimeInSeconds"] = this.uptimeInSeconds;
|
|
23082
23090
|
data["downtimeInSeconds"] = this.downtimeInSeconds;
|
|
23083
23091
|
data["totalTimeInSeconds"] = this.totalTimeInSeconds;
|
|
23092
|
+
data["uptimeInMilliseconds"] = this.uptimeInMilliseconds;
|
|
23093
|
+
data["downtimeInMilliseconds"] = this.downtimeInMilliseconds;
|
|
23094
|
+
data["totalTimeInMilliseconds"] = this.totalTimeInMilliseconds;
|
|
23084
23095
|
return data;
|
|
23085
23096
|
}
|
|
23086
23097
|
}
|
|
@@ -34983,73 +34994,6 @@ export class TrackingHistoryUpdateDto {
|
|
|
34983
34994
|
return data;
|
|
34984
34995
|
}
|
|
34985
34996
|
}
|
|
34986
|
-
export class LabelUpdateListDto {
|
|
34987
|
-
constructor(data) {
|
|
34988
|
-
if (data) {
|
|
34989
|
-
for (var property in data) {
|
|
34990
|
-
if (data.hasOwnProperty(property))
|
|
34991
|
-
this[property] = data[property];
|
|
34992
|
-
}
|
|
34993
|
-
}
|
|
34994
|
-
if (!data) {
|
|
34995
|
-
this.labelUpdates = [];
|
|
34996
|
-
}
|
|
34997
|
-
}
|
|
34998
|
-
init(_data) {
|
|
34999
|
-
if (_data) {
|
|
35000
|
-
if (Array.isArray(_data["labelUpdates"])) {
|
|
35001
|
-
this.labelUpdates = [];
|
|
35002
|
-
for (let item of _data["labelUpdates"])
|
|
35003
|
-
this.labelUpdates.push(LabelUpdateDto.fromJS(item));
|
|
35004
|
-
}
|
|
35005
|
-
}
|
|
35006
|
-
}
|
|
35007
|
-
static fromJS(data) {
|
|
35008
|
-
data = typeof data === 'object' ? data : {};
|
|
35009
|
-
let result = new LabelUpdateListDto();
|
|
35010
|
-
result.init(data);
|
|
35011
|
-
return result;
|
|
35012
|
-
}
|
|
35013
|
-
toJSON(data) {
|
|
35014
|
-
data = typeof data === 'object' ? data : {};
|
|
35015
|
-
if (Array.isArray(this.labelUpdates)) {
|
|
35016
|
-
data["labelUpdates"] = [];
|
|
35017
|
-
for (let item of this.labelUpdates)
|
|
35018
|
-
data["labelUpdates"].push(item.toJSON());
|
|
35019
|
-
}
|
|
35020
|
-
return data;
|
|
35021
|
-
}
|
|
35022
|
-
}
|
|
35023
|
-
export class LabelUpdateDto {
|
|
35024
|
-
constructor(data) {
|
|
35025
|
-
if (data) {
|
|
35026
|
-
for (var property in data) {
|
|
35027
|
-
if (data.hasOwnProperty(property))
|
|
35028
|
-
this[property] = data[property];
|
|
35029
|
-
}
|
|
35030
|
-
}
|
|
35031
|
-
}
|
|
35032
|
-
init(_data) {
|
|
35033
|
-
if (_data) {
|
|
35034
|
-
this.parcelId = _data["parcelId"];
|
|
35035
|
-
this.trackingId = _data["trackingId"];
|
|
35036
|
-
this.comment = _data["comment"];
|
|
35037
|
-
}
|
|
35038
|
-
}
|
|
35039
|
-
static fromJS(data) {
|
|
35040
|
-
data = typeof data === 'object' ? data : {};
|
|
35041
|
-
let result = new LabelUpdateDto();
|
|
35042
|
-
result.init(data);
|
|
35043
|
-
return result;
|
|
35044
|
-
}
|
|
35045
|
-
toJSON(data) {
|
|
35046
|
-
data = typeof data === 'object' ? data : {};
|
|
35047
|
-
data["parcelId"] = this.parcelId;
|
|
35048
|
-
data["trackingId"] = this.trackingId;
|
|
35049
|
-
data["comment"] = this.comment;
|
|
35050
|
-
return data;
|
|
35051
|
-
}
|
|
35052
|
-
}
|
|
35053
34997
|
export class VendorBatchLookupDto {
|
|
35054
34998
|
constructor(data) {
|
|
35055
34999
|
if (data) {
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -2396,6 +2396,8 @@ export interface IUtilizationClient {
|
|
|
2396
2396
|
getCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CompanyUtilizationDatapointListDto>;
|
|
2397
2397
|
|
|
2398
2398
|
getCrossCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CrossCompanyUtilizationDatapointListDto>;
|
|
2399
|
+
|
|
2400
|
+
getLowessCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CompanyUtilizationDatapointListDto>;
|
|
2399
2401
|
}
|
|
2400
2402
|
|
|
2401
2403
|
export class UtilizationClient extends AuthorizedApiBase implements IUtilizationClient {
|
|
@@ -2632,6 +2634,50 @@ export class UtilizationClient extends AuthorizedApiBase implements IUtilization
|
|
|
2632
2634
|
}
|
|
2633
2635
|
return Promise.resolve<CrossCompanyUtilizationDatapointListDto>(null as any);
|
|
2634
2636
|
}
|
|
2637
|
+
|
|
2638
|
+
getLowessCompanyUtilizationDatapoints(utilizationType: UtilizationTypeDto | undefined, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<CompanyUtilizationDatapointListDto> {
|
|
2639
|
+
let url_ = this.baseUrl + "/utilization/datapoints/company/lowess?";
|
|
2640
|
+
if (utilizationType === null)
|
|
2641
|
+
throw new Error("The parameter 'utilizationType' cannot be null.");
|
|
2642
|
+
else if (utilizationType !== undefined)
|
|
2643
|
+
url_ += "utilizationType=" + encodeURIComponent("" + utilizationType) + "&";
|
|
2644
|
+
if (startTime !== undefined && startTime !== null)
|
|
2645
|
+
url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
|
|
2646
|
+
if (endTime !== undefined && endTime !== null)
|
|
2647
|
+
url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
|
|
2648
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
2649
|
+
|
|
2650
|
+
let options_: RequestInit = {
|
|
2651
|
+
method: "GET",
|
|
2652
|
+
headers: {
|
|
2653
|
+
"Accept": "application/json"
|
|
2654
|
+
}
|
|
2655
|
+
};
|
|
2656
|
+
|
|
2657
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
2658
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
2659
|
+
}).then((_response: Response) => {
|
|
2660
|
+
return this.processGetLowessCompanyUtilizationDatapoints(_response);
|
|
2661
|
+
});
|
|
2662
|
+
}
|
|
2663
|
+
|
|
2664
|
+
protected processGetLowessCompanyUtilizationDatapoints(response: Response): Promise<CompanyUtilizationDatapointListDto> {
|
|
2665
|
+
const status = response.status;
|
|
2666
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
2667
|
+
if (status === 200) {
|
|
2668
|
+
return response.text().then((_responseText) => {
|
|
2669
|
+
let result200: any = null;
|
|
2670
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2671
|
+
result200 = CompanyUtilizationDatapointListDto.fromJS(resultData200);
|
|
2672
|
+
return result200;
|
|
2673
|
+
});
|
|
2674
|
+
} else if (status !== 200 && status !== 204) {
|
|
2675
|
+
return response.text().then((_responseText) => {
|
|
2676
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
2677
|
+
});
|
|
2678
|
+
}
|
|
2679
|
+
return Promise.resolve<CompanyUtilizationDatapointListDto>(null as any);
|
|
2680
|
+
}
|
|
2635
2681
|
}
|
|
2636
2682
|
|
|
2637
2683
|
export interface IMrbClient {
|
|
@@ -14555,8 +14601,6 @@ export interface IMoveTrackingClient {
|
|
|
14555
14601
|
createTrackingHistory(trackingUpdates: TrackingHistoryUpdateDto[]): Promise<TrackingHistoryDto[]>;
|
|
14556
14602
|
|
|
14557
14603
|
deleteTrackingHistory(trackingId: string): Promise<void>;
|
|
14558
|
-
|
|
14559
|
-
createLabelAndUpdateParcel(labelUpdate: LabelUpdateListDto): Promise<DownloadDto>;
|
|
14560
14604
|
}
|
|
14561
14605
|
|
|
14562
14606
|
export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTrackingClient {
|
|
@@ -14902,46 +14946,6 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
|
|
|
14902
14946
|
}
|
|
14903
14947
|
return Promise.resolve<void>(null as any);
|
|
14904
14948
|
}
|
|
14905
|
-
|
|
14906
|
-
createLabelAndUpdateParcel(labelUpdate: LabelUpdateListDto): Promise<DownloadDto> {
|
|
14907
|
-
let url_ = this.baseUrl + "/move/tracking/labelupdate";
|
|
14908
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
14909
|
-
|
|
14910
|
-
const content_ = JSON.stringify(labelUpdate);
|
|
14911
|
-
|
|
14912
|
-
let options_: RequestInit = {
|
|
14913
|
-
body: content_,
|
|
14914
|
-
method: "POST",
|
|
14915
|
-
headers: {
|
|
14916
|
-
"Content-Type": "application/json",
|
|
14917
|
-
"Accept": "application/json"
|
|
14918
|
-
}
|
|
14919
|
-
};
|
|
14920
|
-
|
|
14921
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
14922
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
14923
|
-
}).then((_response: Response) => {
|
|
14924
|
-
return this.processCreateLabelAndUpdateParcel(_response);
|
|
14925
|
-
});
|
|
14926
|
-
}
|
|
14927
|
-
|
|
14928
|
-
protected processCreateLabelAndUpdateParcel(response: Response): Promise<DownloadDto> {
|
|
14929
|
-
const status = response.status;
|
|
14930
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
14931
|
-
if (status === 200) {
|
|
14932
|
-
return response.text().then((_responseText) => {
|
|
14933
|
-
let result200: any = null;
|
|
14934
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
14935
|
-
result200 = DownloadDto.fromJS(resultData200);
|
|
14936
|
-
return result200;
|
|
14937
|
-
});
|
|
14938
|
-
} else if (status !== 200 && status !== 204) {
|
|
14939
|
-
return response.text().then((_responseText) => {
|
|
14940
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
14941
|
-
});
|
|
14942
|
-
}
|
|
14943
|
-
return Promise.resolve<DownloadDto>(null as any);
|
|
14944
|
-
}
|
|
14945
14949
|
}
|
|
14946
14950
|
|
|
14947
14951
|
export interface IInventoryClient {
|
|
@@ -25512,6 +25516,9 @@ export class UtilizationDetailsV2Dto implements IUtilizationDetailsV2Dto {
|
|
|
25512
25516
|
uptimeInSeconds?: number | null;
|
|
25513
25517
|
downtimeInSeconds?: number | null;
|
|
25514
25518
|
totalTimeInSeconds?: number | null;
|
|
25519
|
+
uptimeInMilliseconds?: number | null;
|
|
25520
|
+
downtimeInMilliseconds?: number | null;
|
|
25521
|
+
totalTimeInMilliseconds?: number | null;
|
|
25515
25522
|
|
|
25516
25523
|
constructor(data?: IUtilizationDetailsV2Dto) {
|
|
25517
25524
|
if (data) {
|
|
@@ -25528,6 +25535,9 @@ export class UtilizationDetailsV2Dto implements IUtilizationDetailsV2Dto {
|
|
|
25528
25535
|
this.uptimeInSeconds = _data["uptimeInSeconds"];
|
|
25529
25536
|
this.downtimeInSeconds = _data["downtimeInSeconds"];
|
|
25530
25537
|
this.totalTimeInSeconds = _data["totalTimeInSeconds"];
|
|
25538
|
+
this.uptimeInMilliseconds = _data["uptimeInMilliseconds"];
|
|
25539
|
+
this.downtimeInMilliseconds = _data["downtimeInMilliseconds"];
|
|
25540
|
+
this.totalTimeInMilliseconds = _data["totalTimeInMilliseconds"];
|
|
25531
25541
|
}
|
|
25532
25542
|
}
|
|
25533
25543
|
|
|
@@ -25544,6 +25554,9 @@ export class UtilizationDetailsV2Dto implements IUtilizationDetailsV2Dto {
|
|
|
25544
25554
|
data["uptimeInSeconds"] = this.uptimeInSeconds;
|
|
25545
25555
|
data["downtimeInSeconds"] = this.downtimeInSeconds;
|
|
25546
25556
|
data["totalTimeInSeconds"] = this.totalTimeInSeconds;
|
|
25557
|
+
data["uptimeInMilliseconds"] = this.uptimeInMilliseconds;
|
|
25558
|
+
data["downtimeInMilliseconds"] = this.downtimeInMilliseconds;
|
|
25559
|
+
data["totalTimeInMilliseconds"] = this.totalTimeInMilliseconds;
|
|
25547
25560
|
return data;
|
|
25548
25561
|
}
|
|
25549
25562
|
}
|
|
@@ -25553,6 +25566,9 @@ export interface IUtilizationDetailsV2Dto {
|
|
|
25553
25566
|
uptimeInSeconds?: number | null;
|
|
25554
25567
|
downtimeInSeconds?: number | null;
|
|
25555
25568
|
totalTimeInSeconds?: number | null;
|
|
25569
|
+
uptimeInMilliseconds?: number | null;
|
|
25570
|
+
downtimeInMilliseconds?: number | null;
|
|
25571
|
+
totalTimeInMilliseconds?: number | null;
|
|
25556
25572
|
}
|
|
25557
25573
|
|
|
25558
25574
|
export class MachineGroupUtilizationV2Dto implements IMachineGroupUtilizationV2Dto {
|
|
@@ -43216,97 +43232,6 @@ export interface ITrackingHistoryUpdateDto {
|
|
|
43216
43232
|
parcelId: string;
|
|
43217
43233
|
}
|
|
43218
43234
|
|
|
43219
|
-
export class LabelUpdateListDto implements ILabelUpdateListDto {
|
|
43220
|
-
labelUpdates!: LabelUpdateDto[];
|
|
43221
|
-
|
|
43222
|
-
constructor(data?: ILabelUpdateListDto) {
|
|
43223
|
-
if (data) {
|
|
43224
|
-
for (var property in data) {
|
|
43225
|
-
if (data.hasOwnProperty(property))
|
|
43226
|
-
(<any>this)[property] = (<any>data)[property];
|
|
43227
|
-
}
|
|
43228
|
-
}
|
|
43229
|
-
if (!data) {
|
|
43230
|
-
this.labelUpdates = [];
|
|
43231
|
-
}
|
|
43232
|
-
}
|
|
43233
|
-
|
|
43234
|
-
init(_data?: any) {
|
|
43235
|
-
if (_data) {
|
|
43236
|
-
if (Array.isArray(_data["labelUpdates"])) {
|
|
43237
|
-
this.labelUpdates = [] as any;
|
|
43238
|
-
for (let item of _data["labelUpdates"])
|
|
43239
|
-
this.labelUpdates!.push(LabelUpdateDto.fromJS(item));
|
|
43240
|
-
}
|
|
43241
|
-
}
|
|
43242
|
-
}
|
|
43243
|
-
|
|
43244
|
-
static fromJS(data: any): LabelUpdateListDto {
|
|
43245
|
-
data = typeof data === 'object' ? data : {};
|
|
43246
|
-
let result = new LabelUpdateListDto();
|
|
43247
|
-
result.init(data);
|
|
43248
|
-
return result;
|
|
43249
|
-
}
|
|
43250
|
-
|
|
43251
|
-
toJSON(data?: any) {
|
|
43252
|
-
data = typeof data === 'object' ? data : {};
|
|
43253
|
-
if (Array.isArray(this.labelUpdates)) {
|
|
43254
|
-
data["labelUpdates"] = [];
|
|
43255
|
-
for (let item of this.labelUpdates)
|
|
43256
|
-
data["labelUpdates"].push(item.toJSON());
|
|
43257
|
-
}
|
|
43258
|
-
return data;
|
|
43259
|
-
}
|
|
43260
|
-
}
|
|
43261
|
-
|
|
43262
|
-
export interface ILabelUpdateListDto {
|
|
43263
|
-
labelUpdates: LabelUpdateDto[];
|
|
43264
|
-
}
|
|
43265
|
-
|
|
43266
|
-
export class LabelUpdateDto implements ILabelUpdateDto {
|
|
43267
|
-
parcelId!: string;
|
|
43268
|
-
trackingId?: string | null;
|
|
43269
|
-
comment?: string | null;
|
|
43270
|
-
|
|
43271
|
-
constructor(data?: ILabelUpdateDto) {
|
|
43272
|
-
if (data) {
|
|
43273
|
-
for (var property in data) {
|
|
43274
|
-
if (data.hasOwnProperty(property))
|
|
43275
|
-
(<any>this)[property] = (<any>data)[property];
|
|
43276
|
-
}
|
|
43277
|
-
}
|
|
43278
|
-
}
|
|
43279
|
-
|
|
43280
|
-
init(_data?: any) {
|
|
43281
|
-
if (_data) {
|
|
43282
|
-
this.parcelId = _data["parcelId"];
|
|
43283
|
-
this.trackingId = _data["trackingId"];
|
|
43284
|
-
this.comment = _data["comment"];
|
|
43285
|
-
}
|
|
43286
|
-
}
|
|
43287
|
-
|
|
43288
|
-
static fromJS(data: any): LabelUpdateDto {
|
|
43289
|
-
data = typeof data === 'object' ? data : {};
|
|
43290
|
-
let result = new LabelUpdateDto();
|
|
43291
|
-
result.init(data);
|
|
43292
|
-
return result;
|
|
43293
|
-
}
|
|
43294
|
-
|
|
43295
|
-
toJSON(data?: any) {
|
|
43296
|
-
data = typeof data === 'object' ? data : {};
|
|
43297
|
-
data["parcelId"] = this.parcelId;
|
|
43298
|
-
data["trackingId"] = this.trackingId;
|
|
43299
|
-
data["comment"] = this.comment;
|
|
43300
|
-
return data;
|
|
43301
|
-
}
|
|
43302
|
-
}
|
|
43303
|
-
|
|
43304
|
-
export interface ILabelUpdateDto {
|
|
43305
|
-
parcelId: string;
|
|
43306
|
-
trackingId?: string | null;
|
|
43307
|
-
comment?: string | null;
|
|
43308
|
-
}
|
|
43309
|
-
|
|
43310
43235
|
export class VendorBatchLookupDto implements IVendorBatchLookupDto {
|
|
43311
43236
|
batchNumber?: string;
|
|
43312
43237
|
vendorBatchNumber?: string | null;
|