@ignos/api-client 20250221.0.11233 → 20250225.0.11254

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.
@@ -1666,7 +1666,6 @@ export interface IMoveTrackingClient {
1666
1666
  createTrackingEvents(trackingUpdates: TrackingUpdateDto[]): Promise<TrackingHistoryDto[]>;
1667
1667
  createTrackingHistory(trackingUpdates: TrackingHistoryUpdateDto[]): Promise<TrackingHistoryDto[]>;
1668
1668
  deleteTrackingHistory(trackingId: string): Promise<void>;
1669
- createLabelAndUpdateParcel(labelUpdate: LabelUpdateListDto): Promise<DownloadDto>;
1670
1669
  }
1671
1670
  export declare class MoveTrackingClient extends AuthorizedApiBase implements IMoveTrackingClient {
1672
1671
  private http;
@@ -1691,8 +1690,6 @@ export declare class MoveTrackingClient extends AuthorizedApiBase implements IMo
1691
1690
  protected processCreateTrackingHistory(response: Response): Promise<TrackingHistoryDto[]>;
1692
1691
  deleteTrackingHistory(trackingId: string): Promise<void>;
1693
1692
  protected processDeleteTrackingHistory(response: Response): Promise<void>;
1694
- createLabelAndUpdateParcel(labelUpdate: LabelUpdateListDto): Promise<DownloadDto>;
1695
- protected processCreateLabelAndUpdateParcel(response: Response): Promise<DownloadDto>;
1696
1693
  }
1697
1694
  export interface IInventoryClient {
1698
1695
  listVendorBatches(request: ListVendorBatches): Promise<VendorBatchLookupDto[]>;
@@ -3577,6 +3574,9 @@ export declare class UtilizationDetailsV2Dto implements IUtilizationDetailsV2Dto
3577
3574
  uptimeInSeconds?: number | null;
3578
3575
  downtimeInSeconds?: number | null;
3579
3576
  totalTimeInSeconds?: number | null;
3577
+ uptimeInMilliseconds?: number | null;
3578
+ downtimeInMilliseconds?: number | null;
3579
+ totalTimeInMilliseconds?: number | null;
3580
3580
  constructor(data?: IUtilizationDetailsV2Dto);
3581
3581
  init(_data?: any): void;
3582
3582
  static fromJS(data: any): UtilizationDetailsV2Dto;
@@ -3587,6 +3587,9 @@ export interface IUtilizationDetailsV2Dto {
3587
3587
  uptimeInSeconds?: number | null;
3588
3588
  downtimeInSeconds?: number | null;
3589
3589
  totalTimeInSeconds?: number | null;
3590
+ uptimeInMilliseconds?: number | null;
3591
+ downtimeInMilliseconds?: number | null;
3592
+ totalTimeInMilliseconds?: number | null;
3590
3593
  }
3591
3594
  export declare class MachineGroupUtilizationV2Dto implements IMachineGroupUtilizationV2Dto {
3592
3595
  name: string;
@@ -9318,30 +9321,6 @@ export declare class TrackingHistoryUpdateDto implements ITrackingHistoryUpdateD
9318
9321
  export interface ITrackingHistoryUpdateDto {
9319
9322
  parcelId: string;
9320
9323
  }
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
9324
  export declare class VendorBatchLookupDto implements IVendorBatchLookupDto {
9346
9325
  batchNumber?: string;
9347
9326
  vendorBatchNumber?: string | null;
@@ -13948,46 +13948,6 @@ export class MoveTrackingClient extends AuthorizedApiBase {
13948
13948
  }
13949
13949
  return Promise.resolve(null);
13950
13950
  }
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
13951
  }
13992
13952
  export class InventoryClient extends AuthorizedApiBase {
13993
13953
  constructor(configuration, baseUrl, http) {
@@ -23067,6 +23027,9 @@ export class UtilizationDetailsV2Dto {
23067
23027
  this.uptimeInSeconds = _data["uptimeInSeconds"];
23068
23028
  this.downtimeInSeconds = _data["downtimeInSeconds"];
23069
23029
  this.totalTimeInSeconds = _data["totalTimeInSeconds"];
23030
+ this.uptimeInMilliseconds = _data["uptimeInMilliseconds"];
23031
+ this.downtimeInMilliseconds = _data["downtimeInMilliseconds"];
23032
+ this.totalTimeInMilliseconds = _data["totalTimeInMilliseconds"];
23070
23033
  }
23071
23034
  }
23072
23035
  static fromJS(data) {
@@ -23081,6 +23044,9 @@ export class UtilizationDetailsV2Dto {
23081
23044
  data["uptimeInSeconds"] = this.uptimeInSeconds;
23082
23045
  data["downtimeInSeconds"] = this.downtimeInSeconds;
23083
23046
  data["totalTimeInSeconds"] = this.totalTimeInSeconds;
23047
+ data["uptimeInMilliseconds"] = this.uptimeInMilliseconds;
23048
+ data["downtimeInMilliseconds"] = this.downtimeInMilliseconds;
23049
+ data["totalTimeInMilliseconds"] = this.totalTimeInMilliseconds;
23084
23050
  return data;
23085
23051
  }
23086
23052
  }
@@ -34983,73 +34949,6 @@ export class TrackingHistoryUpdateDto {
34983
34949
  return data;
34984
34950
  }
34985
34951
  }
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
34952
  export class VendorBatchLookupDto {
35054
34953
  constructor(data) {
35055
34954
  if (data) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20250221.0.11233",
3
+ "version": "20250225.0.11254",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -14555,8 +14555,6 @@ export interface IMoveTrackingClient {
14555
14555
  createTrackingHistory(trackingUpdates: TrackingHistoryUpdateDto[]): Promise<TrackingHistoryDto[]>;
14556
14556
 
14557
14557
  deleteTrackingHistory(trackingId: string): Promise<void>;
14558
-
14559
- createLabelAndUpdateParcel(labelUpdate: LabelUpdateListDto): Promise<DownloadDto>;
14560
14558
  }
14561
14559
 
14562
14560
  export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTrackingClient {
@@ -14902,46 +14900,6 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
14902
14900
  }
14903
14901
  return Promise.resolve<void>(null as any);
14904
14902
  }
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
14903
  }
14946
14904
 
14947
14905
  export interface IInventoryClient {
@@ -25512,6 +25470,9 @@ export class UtilizationDetailsV2Dto implements IUtilizationDetailsV2Dto {
25512
25470
  uptimeInSeconds?: number | null;
25513
25471
  downtimeInSeconds?: number | null;
25514
25472
  totalTimeInSeconds?: number | null;
25473
+ uptimeInMilliseconds?: number | null;
25474
+ downtimeInMilliseconds?: number | null;
25475
+ totalTimeInMilliseconds?: number | null;
25515
25476
 
25516
25477
  constructor(data?: IUtilizationDetailsV2Dto) {
25517
25478
  if (data) {
@@ -25528,6 +25489,9 @@ export class UtilizationDetailsV2Dto implements IUtilizationDetailsV2Dto {
25528
25489
  this.uptimeInSeconds = _data["uptimeInSeconds"];
25529
25490
  this.downtimeInSeconds = _data["downtimeInSeconds"];
25530
25491
  this.totalTimeInSeconds = _data["totalTimeInSeconds"];
25492
+ this.uptimeInMilliseconds = _data["uptimeInMilliseconds"];
25493
+ this.downtimeInMilliseconds = _data["downtimeInMilliseconds"];
25494
+ this.totalTimeInMilliseconds = _data["totalTimeInMilliseconds"];
25531
25495
  }
25532
25496
  }
25533
25497
 
@@ -25544,6 +25508,9 @@ export class UtilizationDetailsV2Dto implements IUtilizationDetailsV2Dto {
25544
25508
  data["uptimeInSeconds"] = this.uptimeInSeconds;
25545
25509
  data["downtimeInSeconds"] = this.downtimeInSeconds;
25546
25510
  data["totalTimeInSeconds"] = this.totalTimeInSeconds;
25511
+ data["uptimeInMilliseconds"] = this.uptimeInMilliseconds;
25512
+ data["downtimeInMilliseconds"] = this.downtimeInMilliseconds;
25513
+ data["totalTimeInMilliseconds"] = this.totalTimeInMilliseconds;
25547
25514
  return data;
25548
25515
  }
25549
25516
  }
@@ -25553,6 +25520,9 @@ export interface IUtilizationDetailsV2Dto {
25553
25520
  uptimeInSeconds?: number | null;
25554
25521
  downtimeInSeconds?: number | null;
25555
25522
  totalTimeInSeconds?: number | null;
25523
+ uptimeInMilliseconds?: number | null;
25524
+ downtimeInMilliseconds?: number | null;
25525
+ totalTimeInMilliseconds?: number | null;
25556
25526
  }
25557
25527
 
25558
25528
  export class MachineGroupUtilizationV2Dto implements IMachineGroupUtilizationV2Dto {
@@ -43216,97 +43186,6 @@ export interface ITrackingHistoryUpdateDto {
43216
43186
  parcelId: string;
43217
43187
  }
43218
43188
 
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
43189
  export class VendorBatchLookupDto implements IVendorBatchLookupDto {
43311
43190
  batchNumber?: string;
43312
43191
  vendorBatchNumber?: string | null;