@ignos/api-client 20240430.0.9189 → 20240503.0.9201

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.
@@ -732,7 +732,7 @@ export declare class LocateLocationsClient extends AuthorizedApiBase implements
732
732
  protected processSearchLocations(response: Response): Promise<LocationDto[]>;
733
733
  }
734
734
  export interface ILocateOrdersClient {
735
- searchOrders(input: string | null | undefined, orderId: string | null | undefined): Promise<LocateOrderDto[]>;
735
+ searchOrders(input: string | null | undefined): Promise<OrderDto[]>;
736
736
  }
737
737
  export declare class LocateOrdersClient extends AuthorizedApiBase implements ILocateOrdersClient {
738
738
  private http;
@@ -741,8 +741,8 @@ export declare class LocateOrdersClient extends AuthorizedApiBase implements ILo
741
741
  constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
742
742
  fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
743
743
  });
744
- searchOrders(input: string | null | undefined, orderId: string | null | undefined): Promise<LocateOrderDto[]>;
745
- protected processSearchOrders(response: Response): Promise<LocateOrderDto[]>;
744
+ searchOrders(input: string | null | undefined): Promise<OrderDto[]>;
745
+ protected processSearchOrders(response: Response): Promise<OrderDto[]>;
746
746
  }
747
747
  export interface ILocateTrackingClient {
748
748
  listTrackingHistory(orderId: string): Promise<TrackingHistoryDto>;
@@ -2535,6 +2535,7 @@ export declare class UserDto implements IUserDto {
2535
2535
  id?: string | null;
2536
2536
  fullName?: string | null;
2537
2537
  upn?: string | null;
2538
+ email?: string | null;
2538
2539
  isBetaTester?: boolean | null;
2539
2540
  constructor(data?: IUserDto);
2540
2541
  init(_data?: any): void;
@@ -2545,6 +2546,7 @@ export interface IUserDto {
2545
2546
  id?: string | null;
2546
2547
  fullName?: string | null;
2547
2548
  upn?: string | null;
2549
+ email?: string | null;
2548
2550
  isBetaTester?: boolean | null;
2549
2551
  }
2550
2552
  export declare class SetIsBetaTesterRequest implements ISetIsBetaTesterRequest {
@@ -5224,16 +5226,16 @@ export interface ILocationDto {
5224
5226
  profile?: string | null;
5225
5227
  }
5226
5228
  export type LocationKindDto = "Warehouse" | "Zone" | "Location";
5227
- export declare class LocateOrderDto implements ILocateOrderDto {
5229
+ export declare class OrderDto implements IOrderDto {
5228
5230
  orderId: string;
5229
5231
  partName?: string | null;
5230
5232
  partNumber?: string | null;
5231
- constructor(data?: ILocateOrderDto);
5233
+ constructor(data?: IOrderDto);
5232
5234
  init(_data?: any): void;
5233
- static fromJS(data: any): LocateOrderDto;
5235
+ static fromJS(data: any): OrderDto;
5234
5236
  toJSON(data?: any): any;
5235
5237
  }
5236
- export interface ILocateOrderDto {
5238
+ export interface IOrderDto {
5237
5239
  orderId: string;
5238
5240
  partName?: string | null;
5239
5241
  partNumber?: string | null;
@@ -5714,12 +5714,10 @@ export class LocateOrdersClient extends AuthorizedApiBase {
5714
5714
  this.http = http ? http : window;
5715
5715
  this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
5716
5716
  }
5717
- searchOrders(input, orderId) {
5717
+ searchOrders(input) {
5718
5718
  let url_ = this.baseUrl + "/locate/orders/search?";
5719
5719
  if (input !== undefined && input !== null)
5720
5720
  url_ += "input=" + encodeURIComponent("" + input) + "&";
5721
- if (orderId !== undefined && orderId !== null)
5722
- url_ += "orderId=" + encodeURIComponent("" + orderId) + "&";
5723
5721
  url_ = url_.replace(/[?&]$/, "");
5724
5722
  let options_ = {
5725
5723
  method: "GET",
@@ -5747,7 +5745,7 @@ export class LocateOrdersClient extends AuthorizedApiBase {
5747
5745
  if (Array.isArray(resultData200)) {
5748
5746
  result200 = [];
5749
5747
  for (let item of resultData200)
5750
- result200.push(LocateOrderDto.fromJS(item));
5748
+ result200.push(OrderDto.fromJS(item));
5751
5749
  }
5752
5750
  return result200;
5753
5751
  });
@@ -18727,6 +18725,7 @@ export class UserDto {
18727
18725
  this.id = _data["id"];
18728
18726
  this.fullName = _data["fullName"];
18729
18727
  this.upn = _data["upn"];
18728
+ this.email = _data["email"];
18730
18729
  this.isBetaTester = _data["isBetaTester"];
18731
18730
  }
18732
18731
  }
@@ -18741,6 +18740,7 @@ export class UserDto {
18741
18740
  data["id"] = this.id;
18742
18741
  data["fullName"] = this.fullName;
18743
18742
  data["upn"] = this.upn;
18743
+ data["email"] = this.email;
18744
18744
  data["isBetaTester"] = this.isBetaTester;
18745
18745
  return data;
18746
18746
  }
@@ -24306,7 +24306,7 @@ export class LocationDto {
24306
24306
  return data;
24307
24307
  }
24308
24308
  }
24309
- export class LocateOrderDto {
24309
+ export class OrderDto {
24310
24310
  constructor(data) {
24311
24311
  if (data) {
24312
24312
  for (var property in data) {
@@ -24324,7 +24324,7 @@ export class LocateOrderDto {
24324
24324
  }
24325
24325
  static fromJS(data) {
24326
24326
  data = typeof data === 'object' ? data : {};
24327
- let result = new LocateOrderDto();
24327
+ let result = new OrderDto();
24328
24328
  result.init(data);
24329
24329
  return result;
24330
24330
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20240430.0.9189",
3
+ "version": "20240503.0.9201",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -6108,7 +6108,7 @@ export class LocateLocationsClient extends AuthorizedApiBase implements ILocateL
6108
6108
 
6109
6109
  export interface ILocateOrdersClient {
6110
6110
 
6111
- searchOrders(input: string | null | undefined, orderId: string | null | undefined): Promise<LocateOrderDto[]>;
6111
+ searchOrders(input: string | null | undefined): Promise<OrderDto[]>;
6112
6112
  }
6113
6113
 
6114
6114
  export class LocateOrdersClient extends AuthorizedApiBase implements ILocateOrdersClient {
@@ -6122,12 +6122,10 @@ export class LocateOrdersClient extends AuthorizedApiBase implements ILocateOrde
6122
6122
  this.baseUrl = baseUrl ?? "";
6123
6123
  }
6124
6124
 
6125
- searchOrders(input: string | null | undefined, orderId: string | null | undefined): Promise<LocateOrderDto[]> {
6125
+ searchOrders(input: string | null | undefined): Promise<OrderDto[]> {
6126
6126
  let url_ = this.baseUrl + "/locate/orders/search?";
6127
6127
  if (input !== undefined && input !== null)
6128
6128
  url_ += "input=" + encodeURIComponent("" + input) + "&";
6129
- if (orderId !== undefined && orderId !== null)
6130
- url_ += "orderId=" + encodeURIComponent("" + orderId) + "&";
6131
6129
  url_ = url_.replace(/[?&]$/, "");
6132
6130
 
6133
6131
  let options_: RequestInit = {
@@ -6144,7 +6142,7 @@ export class LocateOrdersClient extends AuthorizedApiBase implements ILocateOrde
6144
6142
  });
6145
6143
  }
6146
6144
 
6147
- protected processSearchOrders(response: Response): Promise<LocateOrderDto[]> {
6145
+ protected processSearchOrders(response: Response): Promise<OrderDto[]> {
6148
6146
  const status = response.status;
6149
6147
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
6150
6148
  if (status === 200) {
@@ -6154,7 +6152,7 @@ export class LocateOrdersClient extends AuthorizedApiBase implements ILocateOrde
6154
6152
  if (Array.isArray(resultData200)) {
6155
6153
  result200 = [] as any;
6156
6154
  for (let item of resultData200)
6157
- result200!.push(LocateOrderDto.fromJS(item));
6155
+ result200!.push(OrderDto.fromJS(item));
6158
6156
  }
6159
6157
  return result200;
6160
6158
  });
@@ -6163,7 +6161,7 @@ export class LocateOrdersClient extends AuthorizedApiBase implements ILocateOrde
6163
6161
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
6164
6162
  });
6165
6163
  }
6166
- return Promise.resolve<LocateOrderDto[]>(null as any);
6164
+ return Promise.resolve<OrderDto[]>(null as any);
6167
6165
  }
6168
6166
  }
6169
6167
 
@@ -20279,6 +20277,7 @@ export class UserDto implements IUserDto {
20279
20277
  id?: string | null;
20280
20278
  fullName?: string | null;
20281
20279
  upn?: string | null;
20280
+ email?: string | null;
20282
20281
  isBetaTester?: boolean | null;
20283
20282
 
20284
20283
  constructor(data?: IUserDto) {
@@ -20295,6 +20294,7 @@ export class UserDto implements IUserDto {
20295
20294
  this.id = _data["id"];
20296
20295
  this.fullName = _data["fullName"];
20297
20296
  this.upn = _data["upn"];
20297
+ this.email = _data["email"];
20298
20298
  this.isBetaTester = _data["isBetaTester"];
20299
20299
  }
20300
20300
  }
@@ -20311,6 +20311,7 @@ export class UserDto implements IUserDto {
20311
20311
  data["id"] = this.id;
20312
20312
  data["fullName"] = this.fullName;
20313
20313
  data["upn"] = this.upn;
20314
+ data["email"] = this.email;
20314
20315
  data["isBetaTester"] = this.isBetaTester;
20315
20316
  return data;
20316
20317
  }
@@ -20320,6 +20321,7 @@ export interface IUserDto {
20320
20321
  id?: string | null;
20321
20322
  fullName?: string | null;
20322
20323
  upn?: string | null;
20324
+ email?: string | null;
20323
20325
  isBetaTester?: boolean | null;
20324
20326
  }
20325
20327
 
@@ -28582,12 +28584,12 @@ export interface ILocationDto {
28582
28584
 
28583
28585
  export type LocationKindDto = "Warehouse" | "Zone" | "Location";
28584
28586
 
28585
- export class LocateOrderDto implements ILocateOrderDto {
28587
+ export class OrderDto implements IOrderDto {
28586
28588
  orderId!: string;
28587
28589
  partName?: string | null;
28588
28590
  partNumber?: string | null;
28589
28591
 
28590
- constructor(data?: ILocateOrderDto) {
28592
+ constructor(data?: IOrderDto) {
28591
28593
  if (data) {
28592
28594
  for (var property in data) {
28593
28595
  if (data.hasOwnProperty(property))
@@ -28604,9 +28606,9 @@ export class LocateOrderDto implements ILocateOrderDto {
28604
28606
  }
28605
28607
  }
28606
28608
 
28607
- static fromJS(data: any): LocateOrderDto {
28609
+ static fromJS(data: any): OrderDto {
28608
28610
  data = typeof data === 'object' ? data : {};
28609
- let result = new LocateOrderDto();
28611
+ let result = new OrderDto();
28610
28612
  result.init(data);
28611
28613
  return result;
28612
28614
  }
@@ -28620,7 +28622,7 @@ export class LocateOrderDto implements ILocateOrderDto {
28620
28622
  }
28621
28623
  }
28622
28624
 
28623
- export interface ILocateOrderDto {
28625
+ export interface IOrderDto {
28624
28626
  orderId: string;
28625
28627
  partName?: string | null;
28626
28628
  partNumber?: string | null;