@ignos/api-client 20240422.0.9140 → 20240422.0.9143

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.
@@ -747,7 +747,7 @@ export declare class LocatePartsClient extends AuthorizedApiBase implements ILoc
747
747
  export interface ILocateTrackingClient {
748
748
  listTrackingHistory(orderId: string): Promise<LocateTrackingHistoryDto>;
749
749
  createTrackingEvent(orderId: string, locateTrackingUpdate: LocateTrackingUpdateDto): Promise<LocateTrackingEventsDto>;
750
- updateTrackingEvent(orderId: string, trackingEventId: number | undefined, updateId: string, locateTrackingUpdate: LocateTrackingUpdateDto): Promise<LocateTrackingEventsDto>;
750
+ updateTrackingEvent(orderId: string, trackingEventId: number, locateTrackingUpdate: LocateTrackingUpdateDto): Promise<LocateTrackingEventsDto>;
751
751
  createLabel(orderId: string, palletCount: number | undefined): Promise<FileResponse>;
752
752
  }
753
753
  export declare class LocateTrackingClient extends AuthorizedApiBase implements ILocateTrackingClient {
@@ -761,7 +761,7 @@ export declare class LocateTrackingClient extends AuthorizedApiBase implements I
761
761
  protected processListTrackingHistory(response: Response): Promise<LocateTrackingHistoryDto>;
762
762
  createTrackingEvent(orderId: string, locateTrackingUpdate: LocateTrackingUpdateDto): Promise<LocateTrackingEventsDto>;
763
763
  protected processCreateTrackingEvent(response: Response): Promise<LocateTrackingEventsDto>;
764
- updateTrackingEvent(orderId: string, trackingEventId: number | undefined, updateId: string, locateTrackingUpdate: LocateTrackingUpdateDto): Promise<LocateTrackingEventsDto>;
764
+ updateTrackingEvent(orderId: string, trackingEventId: number, locateTrackingUpdate: LocateTrackingUpdateDto): Promise<LocateTrackingEventsDto>;
765
765
  protected processUpdateTrackingEvent(response: Response): Promise<LocateTrackingEventsDto>;
766
766
  createLabel(orderId: string, palletCount: number | undefined): Promise<FileResponse>;
767
767
  protected processCreateLabel(response: Response): Promise<FileResponse>;
@@ -5205,6 +5205,7 @@ export interface ILocateBookingRequestListDto {
5205
5205
  continuationToken?: string | null;
5206
5206
  }
5207
5207
  export declare class LocateLocationDto implements ILocateLocationDto {
5208
+ locationId: string;
5208
5209
  location: string;
5209
5210
  constructor(data?: ILocateLocationDto);
5210
5211
  init(_data?: any): void;
@@ -5212,6 +5213,7 @@ export declare class LocateLocationDto implements ILocateLocationDto {
5212
5213
  toJSON(data?: any): any;
5213
5214
  }
5214
5215
  export interface ILocateLocationDto {
5216
+ locationId: string;
5215
5217
  location: string;
5216
5218
  }
5217
5219
  export declare class LocatePartsDto implements ILocatePartsDto {
@@ -5846,18 +5846,14 @@ export class LocateTrackingClient extends AuthorizedApiBase {
5846
5846
  }
5847
5847
  return Promise.resolve(null);
5848
5848
  }
5849
- updateTrackingEvent(orderId, trackingEventId, updateId, locateTrackingUpdate) {
5850
- let url_ = this.baseUrl + "/locate/tracking/{orderId}/{updateId}?";
5849
+ updateTrackingEvent(orderId, trackingEventId, locateTrackingUpdate) {
5850
+ let url_ = this.baseUrl + "/locate/tracking/{orderId}/{trackingEventId}";
5851
5851
  if (orderId === undefined || orderId === null)
5852
5852
  throw new Error("The parameter 'orderId' must be defined.");
5853
5853
  url_ = url_.replace("{orderId}", encodeURIComponent("" + orderId));
5854
- if (updateId === undefined || updateId === null)
5855
- throw new Error("The parameter 'updateId' must be defined.");
5856
- url_ = url_.replace("{updateId}", encodeURIComponent("" + updateId));
5857
- if (trackingEventId === null)
5858
- throw new Error("The parameter 'trackingEventId' cannot be null.");
5859
- else if (trackingEventId !== undefined)
5860
- url_ += "trackingEventId=" + encodeURIComponent("" + trackingEventId) + "&";
5854
+ if (trackingEventId === undefined || trackingEventId === null)
5855
+ throw new Error("The parameter 'trackingEventId' must be defined.");
5856
+ url_ = url_.replace("{trackingEventId}", encodeURIComponent("" + trackingEventId));
5861
5857
  url_ = url_.replace(/[?&]$/, "");
5862
5858
  const content_ = JSON.stringify(locateTrackingUpdate);
5863
5859
  let options_ = {
@@ -24281,6 +24277,7 @@ export class LocateLocationDto {
24281
24277
  }
24282
24278
  init(_data) {
24283
24279
  if (_data) {
24280
+ this.locationId = _data["locationId"];
24284
24281
  this.location = _data["location"];
24285
24282
  }
24286
24283
  }
@@ -24292,6 +24289,7 @@ export class LocateLocationDto {
24292
24289
  }
24293
24290
  toJSON(data) {
24294
24291
  data = typeof data === 'object' ? data : {};
24292
+ data["locationId"] = this.locationId;
24295
24293
  data["location"] = this.location;
24296
24294
  return data;
24297
24295
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20240422.0.9140",
3
+ "version": "20240422.0.9143",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -6169,7 +6169,7 @@ export interface ILocateTrackingClient {
6169
6169
 
6170
6170
  createTrackingEvent(orderId: string, locateTrackingUpdate: LocateTrackingUpdateDto): Promise<LocateTrackingEventsDto>;
6171
6171
 
6172
- updateTrackingEvent(orderId: string, trackingEventId: number | undefined, updateId: string, locateTrackingUpdate: LocateTrackingUpdateDto): Promise<LocateTrackingEventsDto>;
6172
+ updateTrackingEvent(orderId: string, trackingEventId: number, locateTrackingUpdate: LocateTrackingUpdateDto): Promise<LocateTrackingEventsDto>;
6173
6173
 
6174
6174
  createLabel(orderId: string, palletCount: number | undefined): Promise<FileResponse>;
6175
6175
  }
@@ -6267,18 +6267,14 @@ export class LocateTrackingClient extends AuthorizedApiBase implements ILocateTr
6267
6267
  return Promise.resolve<LocateTrackingEventsDto>(null as any);
6268
6268
  }
6269
6269
 
6270
- updateTrackingEvent(orderId: string, trackingEventId: number | undefined, updateId: string, locateTrackingUpdate: LocateTrackingUpdateDto): Promise<LocateTrackingEventsDto> {
6271
- let url_ = this.baseUrl + "/locate/tracking/{orderId}/{updateId}?";
6270
+ updateTrackingEvent(orderId: string, trackingEventId: number, locateTrackingUpdate: LocateTrackingUpdateDto): Promise<LocateTrackingEventsDto> {
6271
+ let url_ = this.baseUrl + "/locate/tracking/{orderId}/{trackingEventId}";
6272
6272
  if (orderId === undefined || orderId === null)
6273
6273
  throw new Error("The parameter 'orderId' must be defined.");
6274
6274
  url_ = url_.replace("{orderId}", encodeURIComponent("" + orderId));
6275
- if (updateId === undefined || updateId === null)
6276
- throw new Error("The parameter 'updateId' must be defined.");
6277
- url_ = url_.replace("{updateId}", encodeURIComponent("" + updateId));
6278
- if (trackingEventId === null)
6279
- throw new Error("The parameter 'trackingEventId' cannot be null.");
6280
- else if (trackingEventId !== undefined)
6281
- url_ += "trackingEventId=" + encodeURIComponent("" + trackingEventId) + "&";
6275
+ if (trackingEventId === undefined || trackingEventId === null)
6276
+ throw new Error("The parameter 'trackingEventId' must be defined.");
6277
+ url_ = url_.replace("{trackingEventId}", encodeURIComponent("" + trackingEventId));
6282
6278
  url_ = url_.replace(/[?&]$/, "");
6283
6279
 
6284
6280
  const content_ = JSON.stringify(locateTrackingUpdate);
@@ -28525,6 +28521,7 @@ export interface ILocateBookingRequestListDto {
28525
28521
  }
28526
28522
 
28527
28523
  export class LocateLocationDto implements ILocateLocationDto {
28524
+ locationId!: string;
28528
28525
  location!: string;
28529
28526
 
28530
28527
  constructor(data?: ILocateLocationDto) {
@@ -28538,6 +28535,7 @@ export class LocateLocationDto implements ILocateLocationDto {
28538
28535
 
28539
28536
  init(_data?: any) {
28540
28537
  if (_data) {
28538
+ this.locationId = _data["locationId"];
28541
28539
  this.location = _data["location"];
28542
28540
  }
28543
28541
  }
@@ -28551,12 +28549,14 @@ export class LocateLocationDto implements ILocateLocationDto {
28551
28549
 
28552
28550
  toJSON(data?: any) {
28553
28551
  data = typeof data === 'object' ? data : {};
28552
+ data["locationId"] = this.locationId;
28554
28553
  data["location"] = this.location;
28555
28554
  return data;
28556
28555
  }
28557
28556
  }
28558
28557
 
28559
28558
  export interface ILocateLocationDto {
28559
+ locationId: string;
28560
28560
  location: string;
28561
28561
  }
28562
28562