@ignos/api-client 20240701.0.9706 → 20240703.0.9731

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.
@@ -1579,7 +1579,7 @@ export interface IMoveTrackingClient {
1579
1579
  createTrackingEvents(trackingUpdates: TrackingUpdateDto[]): Promise<TrackingHistoryDto[]>;
1580
1580
  createTrackingHistory(trackingUpdates: TrackingHistoryUpdateDto[]): Promise<TrackingHistoryDto[]>;
1581
1581
  deleteTrackingHistory(trackingId: string): Promise<void>;
1582
- createLabel(trackingIds: string[]): Promise<FileResponse>;
1582
+ createLabel(trackingIds: string[]): Promise<DownloadDto>;
1583
1583
  }
1584
1584
  export declare class MoveTrackingClient extends AuthorizedApiBase implements IMoveTrackingClient {
1585
1585
  private http;
@@ -1602,8 +1602,8 @@ export declare class MoveTrackingClient extends AuthorizedApiBase implements IMo
1602
1602
  protected processCreateTrackingHistory(response: Response): Promise<TrackingHistoryDto[]>;
1603
1603
  deleteTrackingHistory(trackingId: string): Promise<void>;
1604
1604
  protected processDeleteTrackingHistory(response: Response): Promise<void>;
1605
- createLabel(trackingIds: string[]): Promise<FileResponse>;
1606
- protected processCreateLabel(response: Response): Promise<FileResponse>;
1605
+ createLabel(trackingIds: string[]): Promise<DownloadDto>;
1606
+ protected processCreateLabel(response: Response): Promise<DownloadDto>;
1607
1607
  }
1608
1608
  export interface IMoveWorkOrdersClient {
1609
1609
  searchWorkOrders(input: string | null | undefined, pageSize: number | null | undefined): Promise<SearchWorkOrderDto[]>;
@@ -8801,7 +8801,8 @@ export interface IBookingTransportRequestDto {
8801
8801
  toLocationId: string;
8802
8802
  }
8803
8803
  export declare class BookingItemRequestDto implements IBookingItemRequestDto {
8804
- trackingId: string;
8804
+ workOrderId?: string | null;
8805
+ trackingId?: string | null;
8805
8806
  comment?: string | null;
8806
8807
  constructor(data?: IBookingItemRequestDto);
8807
8808
  init(_data?: any): void;
@@ -8809,7 +8810,8 @@ export declare class BookingItemRequestDto implements IBookingItemRequestDto {
8809
8810
  toJSON(data?: any): any;
8810
8811
  }
8811
8812
  export interface IBookingItemRequestDto {
8812
- trackingId: string;
8813
+ workOrderId?: string | null;
8814
+ trackingId?: string | null;
8813
8815
  comment?: string | null;
8814
8816
  }
8815
8817
  export declare class BookingGeneralRequestDto implements IBookingGeneralRequestDto {
@@ -13267,7 +13267,7 @@ export class MoveTrackingClient extends AuthorizedApiBase {
13267
13267
  method: "POST",
13268
13268
  headers: {
13269
13269
  "Content-Type": "application/json",
13270
- "Accept": "application/octet-stream"
13270
+ "Accept": "application/json"
13271
13271
  }
13272
13272
  };
13273
13273
  return this.transformOptions(options_).then(transformedOptions_ => {
@@ -13283,18 +13283,13 @@ export class MoveTrackingClient extends AuthorizedApiBase {
13283
13283
  response.headers.forEach((v, k) => _headers[k] = v);
13284
13284
  }
13285
13285
  ;
13286
- if (status === 200 || status === 206) {
13287
- const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
13288
- let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
13289
- let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
13290
- if (fileName) {
13291
- fileName = decodeURIComponent(fileName);
13292
- }
13293
- else {
13294
- fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
13295
- fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
13296
- }
13297
- return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
13286
+ if (status === 200) {
13287
+ return response.text().then((_responseText) => {
13288
+ let result200 = null;
13289
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
13290
+ result200 = DownloadDto.fromJS(resultData200);
13291
+ return result200;
13292
+ });
13298
13293
  }
13299
13294
  else if (status !== 200 && status !== 204) {
13300
13295
  return response.text().then((_responseText) => {
@@ -31898,6 +31893,7 @@ export class BookingItemRequestDto {
31898
31893
  }
31899
31894
  init(_data) {
31900
31895
  if (_data) {
31896
+ this.workOrderId = _data["workOrderId"];
31901
31897
  this.trackingId = _data["trackingId"];
31902
31898
  this.comment = _data["comment"];
31903
31899
  }
@@ -31910,6 +31906,7 @@ export class BookingItemRequestDto {
31910
31906
  }
31911
31907
  toJSON(data) {
31912
31908
  data = typeof data === 'object' ? data : {};
31909
+ data["workOrderId"] = this.workOrderId;
31913
31910
  data["trackingId"] = this.trackingId;
31914
31911
  data["comment"] = this.comment;
31915
31912
  return data;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20240701.0.9706",
3
+ "version": "20240703.0.9731",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -13866,7 +13866,7 @@ export interface IMoveTrackingClient {
13866
13866
 
13867
13867
  deleteTrackingHistory(trackingId: string): Promise<void>;
13868
13868
 
13869
- createLabel(trackingIds: string[]): Promise<FileResponse>;
13869
+ createLabel(trackingIds: string[]): Promise<DownloadDto>;
13870
13870
  }
13871
13871
 
13872
13872
  export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTrackingClient {
@@ -14165,7 +14165,7 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
14165
14165
  return Promise.resolve<void>(null as any);
14166
14166
  }
14167
14167
 
14168
- createLabel(trackingIds: string[]): Promise<FileResponse> {
14168
+ createLabel(trackingIds: string[]): Promise<DownloadDto> {
14169
14169
  let url_ = this.baseUrl + "/move/tracking/label";
14170
14170
  url_ = url_.replace(/[?&]$/, "");
14171
14171
 
@@ -14176,7 +14176,7 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
14176
14176
  method: "POST",
14177
14177
  headers: {
14178
14178
  "Content-Type": "application/json",
14179
- "Accept": "application/octet-stream"
14179
+ "Accept": "application/json"
14180
14180
  }
14181
14181
  };
14182
14182
 
@@ -14187,26 +14187,22 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
14187
14187
  });
14188
14188
  }
14189
14189
 
14190
- protected processCreateLabel(response: Response): Promise<FileResponse> {
14190
+ protected processCreateLabel(response: Response): Promise<DownloadDto> {
14191
14191
  const status = response.status;
14192
14192
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
14193
- if (status === 200 || status === 206) {
14194
- const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
14195
- let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
14196
- let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
14197
- if (fileName) {
14198
- fileName = decodeURIComponent(fileName);
14199
- } else {
14200
- fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
14201
- fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
14202
- }
14203
- return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
14193
+ if (status === 200) {
14194
+ return response.text().then((_responseText) => {
14195
+ let result200: any = null;
14196
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
14197
+ result200 = DownloadDto.fromJS(resultData200);
14198
+ return result200;
14199
+ });
14204
14200
  } else if (status !== 200 && status !== 204) {
14205
14201
  return response.text().then((_responseText) => {
14206
14202
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
14207
14203
  });
14208
14204
  }
14209
- return Promise.resolve<FileResponse>(null as any);
14205
+ return Promise.resolve<DownloadDto>(null as any);
14210
14206
  }
14211
14207
  }
14212
14208
 
@@ -39732,7 +39728,8 @@ export interface IBookingTransportRequestDto {
39732
39728
  }
39733
39729
 
39734
39730
  export class BookingItemRequestDto implements IBookingItemRequestDto {
39735
- trackingId!: string;
39731
+ workOrderId?: string | null;
39732
+ trackingId?: string | null;
39736
39733
  comment?: string | null;
39737
39734
 
39738
39735
  constructor(data?: IBookingItemRequestDto) {
@@ -39746,6 +39743,7 @@ export class BookingItemRequestDto implements IBookingItemRequestDto {
39746
39743
 
39747
39744
  init(_data?: any) {
39748
39745
  if (_data) {
39746
+ this.workOrderId = _data["workOrderId"];
39749
39747
  this.trackingId = _data["trackingId"];
39750
39748
  this.comment = _data["comment"];
39751
39749
  }
@@ -39760,6 +39758,7 @@ export class BookingItemRequestDto implements IBookingItemRequestDto {
39760
39758
 
39761
39759
  toJSON(data?: any) {
39762
39760
  data = typeof data === 'object' ? data : {};
39761
+ data["workOrderId"] = this.workOrderId;
39763
39762
  data["trackingId"] = this.trackingId;
39764
39763
  data["comment"] = this.comment;
39765
39764
  return data;
@@ -39767,7 +39766,8 @@ export class BookingItemRequestDto implements IBookingItemRequestDto {
39767
39766
  }
39768
39767
 
39769
39768
  export interface IBookingItemRequestDto {
39770
- trackingId: string;
39769
+ workOrderId?: string | null;
39770
+ trackingId?: string | null;
39771
39771
  comment?: string | null;
39772
39772
  }
39773
39773