@ignos/api-client 20240620.0.9609 → 20240621.0.9619

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.
@@ -570,8 +570,8 @@ export declare class MoveBookingClient extends AuthorizedApiBase implements IMov
570
570
  protected processFinishDelivery(response: Response): Promise<BookingDto>;
571
571
  }
572
572
  export interface IMoveLocationsClient {
573
- searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | undefined): Promise<LocationDto[]>;
574
- suggestionsLocations(workOrderId: string | null | undefined, locationKinds: LocationKindDto[] | undefined): Promise<LocationDto[]>;
573
+ searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | null | undefined): Promise<LocationDto[]>;
574
+ suggestionsLocations(locationSuggestions: LocationSuggestionsDto): Promise<LocationDto[]>;
575
575
  }
576
576
  export declare class MoveLocationsClient extends AuthorizedApiBase implements IMoveLocationsClient {
577
577
  private http;
@@ -580,9 +580,9 @@ export declare class MoveLocationsClient extends AuthorizedApiBase implements IM
580
580
  constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
581
581
  fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
582
582
  });
583
- searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | undefined): Promise<LocationDto[]>;
583
+ searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | null | undefined): Promise<LocationDto[]>;
584
584
  protected processSearchLocations(response: Response): Promise<LocationDto[]>;
585
- suggestionsLocations(workOrderId: string | null | undefined, locationKinds: LocationKindDto[] | undefined): Promise<LocationDto[]>;
585
+ suggestionsLocations(locationSuggestions: LocationSuggestionsDto): Promise<LocationDto[]>;
586
586
  protected processSuggestionsLocations(response: Response): Promise<LocationDto[]>;
587
587
  }
588
588
  export interface IMoveTrackingClient {
@@ -4136,7 +4136,7 @@ export type TransportKindDto = "NormalForklift" | "LargeForklift" | "SideLoading
4136
4136
  export type BookingStatusDto = "Pending" | "Cancelled" | "InProgress" | "Delivered";
4137
4137
  export declare class BookingItemDto implements IBookingItemDto {
4138
4138
  trackingId: string;
4139
- workOrderId?: string | null;
4139
+ workOrderId: string;
4140
4140
  material?: string | null;
4141
4141
  comment?: string | null;
4142
4142
  toLocationOverride?: LocationDto | null;
@@ -4147,7 +4147,7 @@ export declare class BookingItemDto implements IBookingItemDto {
4147
4147
  }
4148
4148
  export interface IBookingItemDto {
4149
4149
  trackingId: string;
4150
- workOrderId?: string | null;
4150
+ workOrderId: string;
4151
4151
  material?: string | null;
4152
4152
  comment?: string | null;
4153
4153
  toLocationOverride?: LocationDto | null;
@@ -4272,10 +4272,32 @@ export interface IBookingDeliveryExceptionDto {
4272
4272
  toLocationId?: string | null;
4273
4273
  comment?: string | null;
4274
4274
  }
4275
+ export declare class LocationSuggestionsDto implements ILocationSuggestionsDto {
4276
+ items: LocationSuggestionsItemDto[];
4277
+ locationKindFilter?: LocationKindDto[] | null;
4278
+ constructor(data?: ILocationSuggestionsDto);
4279
+ init(_data?: any): void;
4280
+ static fromJS(data: any): LocationSuggestionsDto;
4281
+ toJSON(data?: any): any;
4282
+ }
4283
+ export interface ILocationSuggestionsDto {
4284
+ items: LocationSuggestionsItemDto[];
4285
+ locationKindFilter?: LocationKindDto[] | null;
4286
+ }
4287
+ export declare class LocationSuggestionsItemDto implements ILocationSuggestionsItemDto {
4288
+ workOrderId: string;
4289
+ constructor(data?: ILocationSuggestionsItemDto);
4290
+ init(_data?: any): void;
4291
+ static fromJS(data: any): LocationSuggestionsItemDto;
4292
+ toJSON(data?: any): any;
4293
+ }
4294
+ export interface ILocationSuggestionsItemDto {
4295
+ workOrderId: string;
4296
+ }
4275
4297
  export declare class TrackingHistoryDto implements ITrackingHistoryDto {
4276
4298
  trackingId: string;
4277
4299
  palletNumber: number;
4278
- workOrderId?: string | null;
4300
+ workOrderId: string;
4279
4301
  trackingEvents: TrackingEventDto[];
4280
4302
  constructor(data?: ITrackingHistoryDto);
4281
4303
  init(_data?: any): void;
@@ -4285,7 +4307,7 @@ export declare class TrackingHistoryDto implements ITrackingHistoryDto {
4285
4307
  export interface ITrackingHistoryDto {
4286
4308
  trackingId: string;
4287
4309
  palletNumber: number;
4288
- workOrderId?: string | null;
4310
+ workOrderId: string;
4289
4311
  trackingEvents: TrackingEventDto[];
4290
4312
  }
4291
4313
  export declare class TrackingEventDto implements ITrackingEventDto {
@@ -4315,7 +4337,7 @@ export interface ITrackingEventDto {
4315
4337
  export type TrackingStatusDto = "Manual" | "BookingPending" | "BookingCancelled" | "BookingInProgress" | "BookingComplete";
4316
4338
  export declare class TrackingWorkOrderDto implements ITrackingWorkOrderDto {
4317
4339
  workOrderId: string;
4318
- part: PartDto;
4340
+ part?: PartDto | null;
4319
4341
  trackingHistory: TrackingHistoryDto[];
4320
4342
  constructor(data?: ITrackingWorkOrderDto);
4321
4343
  init(_data?: any): void;
@@ -4324,7 +4346,7 @@ export declare class TrackingWorkOrderDto implements ITrackingWorkOrderDto {
4324
4346
  }
4325
4347
  export interface ITrackingWorkOrderDto {
4326
4348
  workOrderId: string;
4327
- part: PartDto;
4349
+ part?: PartDto | null;
4328
4350
  trackingHistory: TrackingHistoryDto[];
4329
4351
  }
4330
4352
  export declare class TrackingUpdateDto implements ITrackingUpdateDto {
@@ -3882,9 +3882,7 @@ export class MoveLocationsClient extends AuthorizedApiBase {
3882
3882
  let url_ = this.baseUrl + "/move/locations/search?";
3883
3883
  if (input !== undefined && input !== null)
3884
3884
  url_ += "input=" + encodeURIComponent("" + input) + "&";
3885
- if (locationKinds === null)
3886
- throw new Error("The parameter 'locationKinds' cannot be null.");
3887
- else if (locationKinds !== undefined)
3885
+ if (locationKinds !== undefined && locationKinds !== null)
3888
3886
  locationKinds && locationKinds.forEach(item => { url_ += "locationKinds=" + encodeURIComponent("" + item) + "&"; });
3889
3887
  url_ = url_.replace(/[?&]$/, "");
3890
3888
  let options_ = {
@@ -3925,18 +3923,15 @@ export class MoveLocationsClient extends AuthorizedApiBase {
3925
3923
  }
3926
3924
  return Promise.resolve(null);
3927
3925
  }
3928
- suggestionsLocations(workOrderId, locationKinds) {
3929
- let url_ = this.baseUrl + "/move/locations/suggestions?";
3930
- if (workOrderId !== undefined && workOrderId !== null)
3931
- url_ += "workOrderId=" + encodeURIComponent("" + workOrderId) + "&";
3932
- if (locationKinds === null)
3933
- throw new Error("The parameter 'locationKinds' cannot be null.");
3934
- else if (locationKinds !== undefined)
3935
- locationKinds && locationKinds.forEach(item => { url_ += "locationKinds=" + encodeURIComponent("" + item) + "&"; });
3926
+ suggestionsLocations(locationSuggestions) {
3927
+ let url_ = this.baseUrl + "/move/locations/suggestions";
3936
3928
  url_ = url_.replace(/[?&]$/, "");
3929
+ const content_ = JSON.stringify(locationSuggestions);
3937
3930
  let options_ = {
3938
- method: "GET",
3931
+ body: content_,
3932
+ method: "POST",
3939
3933
  headers: {
3934
+ "Content-Type": "application/json",
3940
3935
  "Accept": "application/json"
3941
3936
  }
3942
3937
  };
@@ -22775,6 +22770,79 @@ export class BookingDeliveryExceptionDto {
22775
22770
  return data;
22776
22771
  }
22777
22772
  }
22773
+ export class LocationSuggestionsDto {
22774
+ constructor(data) {
22775
+ if (data) {
22776
+ for (var property in data) {
22777
+ if (data.hasOwnProperty(property))
22778
+ this[property] = data[property];
22779
+ }
22780
+ }
22781
+ if (!data) {
22782
+ this.items = [];
22783
+ }
22784
+ }
22785
+ init(_data) {
22786
+ if (_data) {
22787
+ if (Array.isArray(_data["items"])) {
22788
+ this.items = [];
22789
+ for (let item of _data["items"])
22790
+ this.items.push(LocationSuggestionsItemDto.fromJS(item));
22791
+ }
22792
+ if (Array.isArray(_data["locationKindFilter"])) {
22793
+ this.locationKindFilter = [];
22794
+ for (let item of _data["locationKindFilter"])
22795
+ this.locationKindFilter.push(item);
22796
+ }
22797
+ }
22798
+ }
22799
+ static fromJS(data) {
22800
+ data = typeof data === 'object' ? data : {};
22801
+ let result = new LocationSuggestionsDto();
22802
+ result.init(data);
22803
+ return result;
22804
+ }
22805
+ toJSON(data) {
22806
+ data = typeof data === 'object' ? data : {};
22807
+ if (Array.isArray(this.items)) {
22808
+ data["items"] = [];
22809
+ for (let item of this.items)
22810
+ data["items"].push(item.toJSON());
22811
+ }
22812
+ if (Array.isArray(this.locationKindFilter)) {
22813
+ data["locationKindFilter"] = [];
22814
+ for (let item of this.locationKindFilter)
22815
+ data["locationKindFilter"].push(item);
22816
+ }
22817
+ return data;
22818
+ }
22819
+ }
22820
+ export class LocationSuggestionsItemDto {
22821
+ constructor(data) {
22822
+ if (data) {
22823
+ for (var property in data) {
22824
+ if (data.hasOwnProperty(property))
22825
+ this[property] = data[property];
22826
+ }
22827
+ }
22828
+ }
22829
+ init(_data) {
22830
+ if (_data) {
22831
+ this.workOrderId = _data["workOrderId"];
22832
+ }
22833
+ }
22834
+ static fromJS(data) {
22835
+ data = typeof data === 'object' ? data : {};
22836
+ let result = new LocationSuggestionsItemDto();
22837
+ result.init(data);
22838
+ return result;
22839
+ }
22840
+ toJSON(data) {
22841
+ data = typeof data === 'object' ? data : {};
22842
+ data["workOrderId"] = this.workOrderId;
22843
+ return data;
22844
+ }
22845
+ }
22778
22846
  export class TrackingHistoryDto {
22779
22847
  constructor(data) {
22780
22848
  if (data) {
@@ -22867,14 +22935,13 @@ export class TrackingWorkOrderDto {
22867
22935
  }
22868
22936
  }
22869
22937
  if (!data) {
22870
- this.part = new PartDto();
22871
22938
  this.trackingHistory = [];
22872
22939
  }
22873
22940
  }
22874
22941
  init(_data) {
22875
22942
  if (_data) {
22876
22943
  this.workOrderId = _data["workOrderId"];
22877
- this.part = _data["part"] ? PartDto.fromJS(_data["part"]) : new PartDto();
22944
+ this.part = _data["part"] ? PartDto.fromJS(_data["part"]) : undefined;
22878
22945
  if (Array.isArray(_data["trackingHistory"])) {
22879
22946
  this.trackingHistory = [];
22880
22947
  for (let item of _data["trackingHistory"])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20240620.0.9609",
3
+ "version": "20240621.0.9619",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -4187,9 +4187,9 @@ export class MoveBookingClient extends AuthorizedApiBase implements IMoveBooking
4187
4187
 
4188
4188
  export interface IMoveLocationsClient {
4189
4189
 
4190
- searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | undefined): Promise<LocationDto[]>;
4190
+ searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | null | undefined): Promise<LocationDto[]>;
4191
4191
 
4192
- suggestionsLocations(workOrderId: string | null | undefined, locationKinds: LocationKindDto[] | undefined): Promise<LocationDto[]>;
4192
+ suggestionsLocations(locationSuggestions: LocationSuggestionsDto): Promise<LocationDto[]>;
4193
4193
  }
4194
4194
 
4195
4195
  export class MoveLocationsClient extends AuthorizedApiBase implements IMoveLocationsClient {
@@ -4203,13 +4203,11 @@ export class MoveLocationsClient extends AuthorizedApiBase implements IMoveLocat
4203
4203
  this.baseUrl = baseUrl ?? "";
4204
4204
  }
4205
4205
 
4206
- searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | undefined): Promise<LocationDto[]> {
4206
+ searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | null | undefined): Promise<LocationDto[]> {
4207
4207
  let url_ = this.baseUrl + "/move/locations/search?";
4208
4208
  if (input !== undefined && input !== null)
4209
4209
  url_ += "input=" + encodeURIComponent("" + input) + "&";
4210
- if (locationKinds === null)
4211
- throw new Error("The parameter 'locationKinds' cannot be null.");
4212
- else if (locationKinds !== undefined)
4210
+ if (locationKinds !== undefined && locationKinds !== null)
4213
4211
  locationKinds && locationKinds.forEach(item => { url_ += "locationKinds=" + encodeURIComponent("" + item) + "&"; });
4214
4212
  url_ = url_.replace(/[?&]$/, "");
4215
4213
 
@@ -4249,19 +4247,17 @@ export class MoveLocationsClient extends AuthorizedApiBase implements IMoveLocat
4249
4247
  return Promise.resolve<LocationDto[]>(null as any);
4250
4248
  }
4251
4249
 
4252
- suggestionsLocations(workOrderId: string | null | undefined, locationKinds: LocationKindDto[] | undefined): Promise<LocationDto[]> {
4253
- let url_ = this.baseUrl + "/move/locations/suggestions?";
4254
- if (workOrderId !== undefined && workOrderId !== null)
4255
- url_ += "workOrderId=" + encodeURIComponent("" + workOrderId) + "&";
4256
- if (locationKinds === null)
4257
- throw new Error("The parameter 'locationKinds' cannot be null.");
4258
- else if (locationKinds !== undefined)
4259
- locationKinds && locationKinds.forEach(item => { url_ += "locationKinds=" + encodeURIComponent("" + item) + "&"; });
4250
+ suggestionsLocations(locationSuggestions: LocationSuggestionsDto): Promise<LocationDto[]> {
4251
+ let url_ = this.baseUrl + "/move/locations/suggestions";
4260
4252
  url_ = url_.replace(/[?&]$/, "");
4261
4253
 
4254
+ const content_ = JSON.stringify(locationSuggestions);
4255
+
4262
4256
  let options_: RequestInit = {
4263
- method: "GET",
4257
+ body: content_,
4258
+ method: "POST",
4264
4259
  headers: {
4260
+ "Content-Type": "application/json",
4265
4261
  "Accept": "application/json"
4266
4262
  }
4267
4263
  };
@@ -25642,7 +25638,7 @@ export type BookingStatusDto = "Pending" | "Cancelled" | "InProgress" | "Deliver
25642
25638
 
25643
25639
  export class BookingItemDto implements IBookingItemDto {
25644
25640
  trackingId!: string;
25645
- workOrderId?: string | null;
25641
+ workOrderId!: string;
25646
25642
  material?: string | null;
25647
25643
  comment?: string | null;
25648
25644
  toLocationOverride?: LocationDto | null;
@@ -25686,7 +25682,7 @@ export class BookingItemDto implements IBookingItemDto {
25686
25682
 
25687
25683
  export interface IBookingItemDto {
25688
25684
  trackingId: string;
25689
- workOrderId?: string | null;
25685
+ workOrderId: string;
25690
25686
  material?: string | null;
25691
25687
  comment?: string | null;
25692
25688
  toLocationOverride?: LocationDto | null;
@@ -26087,10 +26083,105 @@ export interface IBookingDeliveryExceptionDto {
26087
26083
  comment?: string | null;
26088
26084
  }
26089
26085
 
26086
+ export class LocationSuggestionsDto implements ILocationSuggestionsDto {
26087
+ items!: LocationSuggestionsItemDto[];
26088
+ locationKindFilter?: LocationKindDto[] | null;
26089
+
26090
+ constructor(data?: ILocationSuggestionsDto) {
26091
+ if (data) {
26092
+ for (var property in data) {
26093
+ if (data.hasOwnProperty(property))
26094
+ (<any>this)[property] = (<any>data)[property];
26095
+ }
26096
+ }
26097
+ if (!data) {
26098
+ this.items = [];
26099
+ }
26100
+ }
26101
+
26102
+ init(_data?: any) {
26103
+ if (_data) {
26104
+ if (Array.isArray(_data["items"])) {
26105
+ this.items = [] as any;
26106
+ for (let item of _data["items"])
26107
+ this.items!.push(LocationSuggestionsItemDto.fromJS(item));
26108
+ }
26109
+ if (Array.isArray(_data["locationKindFilter"])) {
26110
+ this.locationKindFilter = [] as any;
26111
+ for (let item of _data["locationKindFilter"])
26112
+ this.locationKindFilter!.push(item);
26113
+ }
26114
+ }
26115
+ }
26116
+
26117
+ static fromJS(data: any): LocationSuggestionsDto {
26118
+ data = typeof data === 'object' ? data : {};
26119
+ let result = new LocationSuggestionsDto();
26120
+ result.init(data);
26121
+ return result;
26122
+ }
26123
+
26124
+ toJSON(data?: any) {
26125
+ data = typeof data === 'object' ? data : {};
26126
+ if (Array.isArray(this.items)) {
26127
+ data["items"] = [];
26128
+ for (let item of this.items)
26129
+ data["items"].push(item.toJSON());
26130
+ }
26131
+ if (Array.isArray(this.locationKindFilter)) {
26132
+ data["locationKindFilter"] = [];
26133
+ for (let item of this.locationKindFilter)
26134
+ data["locationKindFilter"].push(item);
26135
+ }
26136
+ return data;
26137
+ }
26138
+ }
26139
+
26140
+ export interface ILocationSuggestionsDto {
26141
+ items: LocationSuggestionsItemDto[];
26142
+ locationKindFilter?: LocationKindDto[] | null;
26143
+ }
26144
+
26145
+ export class LocationSuggestionsItemDto implements ILocationSuggestionsItemDto {
26146
+ workOrderId!: string;
26147
+
26148
+ constructor(data?: ILocationSuggestionsItemDto) {
26149
+ if (data) {
26150
+ for (var property in data) {
26151
+ if (data.hasOwnProperty(property))
26152
+ (<any>this)[property] = (<any>data)[property];
26153
+ }
26154
+ }
26155
+ }
26156
+
26157
+ init(_data?: any) {
26158
+ if (_data) {
26159
+ this.workOrderId = _data["workOrderId"];
26160
+ }
26161
+ }
26162
+
26163
+ static fromJS(data: any): LocationSuggestionsItemDto {
26164
+ data = typeof data === 'object' ? data : {};
26165
+ let result = new LocationSuggestionsItemDto();
26166
+ result.init(data);
26167
+ return result;
26168
+ }
26169
+
26170
+ toJSON(data?: any) {
26171
+ data = typeof data === 'object' ? data : {};
26172
+ data["workOrderId"] = this.workOrderId;
26173
+ return data;
26174
+ }
26175
+ }
26176
+
26177
+ export interface ILocationSuggestionsItemDto {
26178
+ workOrderId: string;
26179
+ }
26180
+
26090
26181
  export class TrackingHistoryDto implements ITrackingHistoryDto {
26091
26182
  trackingId!: string;
26092
26183
  palletNumber!: number;
26093
- workOrderId?: string | null;
26184
+ workOrderId!: string;
26094
26185
  trackingEvents!: TrackingEventDto[];
26095
26186
 
26096
26187
  constructor(data?: ITrackingHistoryDto) {
@@ -26142,7 +26233,7 @@ export class TrackingHistoryDto implements ITrackingHistoryDto {
26142
26233
  export interface ITrackingHistoryDto {
26143
26234
  trackingId: string;
26144
26235
  palletNumber: number;
26145
- workOrderId?: string | null;
26236
+ workOrderId: string;
26146
26237
  trackingEvents: TrackingEventDto[];
26147
26238
  }
26148
26239
 
@@ -26214,7 +26305,7 @@ export type TrackingStatusDto = "Manual" | "BookingPending" | "BookingCancelled"
26214
26305
 
26215
26306
  export class TrackingWorkOrderDto implements ITrackingWorkOrderDto {
26216
26307
  workOrderId!: string;
26217
- part!: PartDto;
26308
+ part?: PartDto | null;
26218
26309
  trackingHistory!: TrackingHistoryDto[];
26219
26310
 
26220
26311
  constructor(data?: ITrackingWorkOrderDto) {
@@ -26225,7 +26316,6 @@ export class TrackingWorkOrderDto implements ITrackingWorkOrderDto {
26225
26316
  }
26226
26317
  }
26227
26318
  if (!data) {
26228
- this.part = new PartDto();
26229
26319
  this.trackingHistory = [];
26230
26320
  }
26231
26321
  }
@@ -26233,7 +26323,7 @@ export class TrackingWorkOrderDto implements ITrackingWorkOrderDto {
26233
26323
  init(_data?: any) {
26234
26324
  if (_data) {
26235
26325
  this.workOrderId = _data["workOrderId"];
26236
- this.part = _data["part"] ? PartDto.fromJS(_data["part"]) : new PartDto();
26326
+ this.part = _data["part"] ? PartDto.fromJS(_data["part"]) : <any>undefined;
26237
26327
  if (Array.isArray(_data["trackingHistory"])) {
26238
26328
  this.trackingHistory = [] as any;
26239
26329
  for (let item of _data["trackingHistory"])
@@ -26264,7 +26354,7 @@ export class TrackingWorkOrderDto implements ITrackingWorkOrderDto {
26264
26354
 
26265
26355
  export interface ITrackingWorkOrderDto {
26266
26356
  workOrderId: string;
26267
- part: PartDto;
26357
+ part?: PartDto | null;
26268
26358
  trackingHistory: TrackingHistoryDto[];
26269
26359
  }
26270
26360