@ignos/api-client 20240621.0.9612 → 20240621.0.9621
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.
- package/lib/ignosportal-api.d.ts +8 -8
- package/lib/ignosportal-api.js +4 -3
- package/package.json +1 -1
- package/src/ignosportal-api.ts +11 -10
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -617,7 +617,7 @@ export declare class MoveTrackingClient extends AuthorizedApiBase implements IMo
|
|
|
617
617
|
protected processCreateLabel(response: Response): Promise<FileResponse>;
|
|
618
618
|
}
|
|
619
619
|
export interface IMoveWorkOrdersClient {
|
|
620
|
-
searchWorkOrders(input: string | null | undefined): Promise<SearchWorkOrderDto[]>;
|
|
620
|
+
searchWorkOrders(input: string | null | undefined, pageSize: number | null | undefined): Promise<SearchWorkOrderDto[]>;
|
|
621
621
|
}
|
|
622
622
|
export declare class MoveWorkOrdersClient extends AuthorizedApiBase implements IMoveWorkOrdersClient {
|
|
623
623
|
private http;
|
|
@@ -626,7 +626,7 @@ export declare class MoveWorkOrdersClient extends AuthorizedApiBase implements I
|
|
|
626
626
|
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
|
|
627
627
|
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
628
628
|
});
|
|
629
|
-
searchWorkOrders(input: string | null | undefined): Promise<SearchWorkOrderDto[]>;
|
|
629
|
+
searchWorkOrders(input: string | null | undefined, pageSize: number | null | undefined): Promise<SearchWorkOrderDto[]>;
|
|
630
630
|
protected processSearchWorkOrders(response: Response): Promise<SearchWorkOrderDto[]>;
|
|
631
631
|
}
|
|
632
632
|
export interface IMeasuringToolsClient {
|
|
@@ -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
|
|
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
|
|
4150
|
+
workOrderId: string;
|
|
4151
4151
|
material?: string | null;
|
|
4152
4152
|
comment?: string | null;
|
|
4153
4153
|
toLocationOverride?: LocationDto | null;
|
|
@@ -4297,7 +4297,7 @@ export interface ILocationSuggestionsItemDto {
|
|
|
4297
4297
|
export declare class TrackingHistoryDto implements ITrackingHistoryDto {
|
|
4298
4298
|
trackingId: string;
|
|
4299
4299
|
palletNumber: number;
|
|
4300
|
-
workOrderId
|
|
4300
|
+
workOrderId: string;
|
|
4301
4301
|
trackingEvents: TrackingEventDto[];
|
|
4302
4302
|
constructor(data?: ITrackingHistoryDto);
|
|
4303
4303
|
init(_data?: any): void;
|
|
@@ -4307,7 +4307,7 @@ export declare class TrackingHistoryDto implements ITrackingHistoryDto {
|
|
|
4307
4307
|
export interface ITrackingHistoryDto {
|
|
4308
4308
|
trackingId: string;
|
|
4309
4309
|
palletNumber: number;
|
|
4310
|
-
workOrderId
|
|
4310
|
+
workOrderId: string;
|
|
4311
4311
|
trackingEvents: TrackingEventDto[];
|
|
4312
4312
|
}
|
|
4313
4313
|
export declare class TrackingEventDto implements ITrackingEventDto {
|
|
@@ -4337,7 +4337,7 @@ export interface ITrackingEventDto {
|
|
|
4337
4337
|
export type TrackingStatusDto = "Manual" | "BookingPending" | "BookingCancelled" | "BookingInProgress" | "BookingComplete";
|
|
4338
4338
|
export declare class TrackingWorkOrderDto implements ITrackingWorkOrderDto {
|
|
4339
4339
|
workOrderId: string;
|
|
4340
|
-
part
|
|
4340
|
+
part?: PartDto | null;
|
|
4341
4341
|
trackingHistory: TrackingHistoryDto[];
|
|
4342
4342
|
constructor(data?: ITrackingWorkOrderDto);
|
|
4343
4343
|
init(_data?: any): void;
|
|
@@ -4346,7 +4346,7 @@ export declare class TrackingWorkOrderDto implements ITrackingWorkOrderDto {
|
|
|
4346
4346
|
}
|
|
4347
4347
|
export interface ITrackingWorkOrderDto {
|
|
4348
4348
|
workOrderId: string;
|
|
4349
|
-
part
|
|
4349
|
+
part?: PartDto | null;
|
|
4350
4350
|
trackingHistory: TrackingHistoryDto[];
|
|
4351
4351
|
}
|
|
4352
4352
|
export declare class TrackingUpdateDto implements ITrackingUpdateDto {
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -4275,10 +4275,12 @@ export class MoveWorkOrdersClient extends AuthorizedApiBase {
|
|
|
4275
4275
|
this.http = http ? http : window;
|
|
4276
4276
|
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
4277
4277
|
}
|
|
4278
|
-
searchWorkOrders(input) {
|
|
4278
|
+
searchWorkOrders(input, pageSize) {
|
|
4279
4279
|
let url_ = this.baseUrl + "/move/workorders/search?";
|
|
4280
4280
|
if (input !== undefined && input !== null)
|
|
4281
4281
|
url_ += "input=" + encodeURIComponent("" + input) + "&";
|
|
4282
|
+
if (pageSize !== undefined && pageSize !== null)
|
|
4283
|
+
url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
|
|
4282
4284
|
url_ = url_.replace(/[?&]$/, "");
|
|
4283
4285
|
let options_ = {
|
|
4284
4286
|
method: "GET",
|
|
@@ -22935,14 +22937,13 @@ export class TrackingWorkOrderDto {
|
|
|
22935
22937
|
}
|
|
22936
22938
|
}
|
|
22937
22939
|
if (!data) {
|
|
22938
|
-
this.part = new PartDto();
|
|
22939
22940
|
this.trackingHistory = [];
|
|
22940
22941
|
}
|
|
22941
22942
|
}
|
|
22942
22943
|
init(_data) {
|
|
22943
22944
|
if (_data) {
|
|
22944
22945
|
this.workOrderId = _data["workOrderId"];
|
|
22945
|
-
this.part = _data["part"] ? PartDto.fromJS(_data["part"]) :
|
|
22946
|
+
this.part = _data["part"] ? PartDto.fromJS(_data["part"]) : undefined;
|
|
22946
22947
|
if (Array.isArray(_data["trackingHistory"])) {
|
|
22947
22948
|
this.trackingHistory = [];
|
|
22948
22949
|
for (let item of _data["trackingHistory"])
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -4612,7 +4612,7 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
|
|
|
4612
4612
|
|
|
4613
4613
|
export interface IMoveWorkOrdersClient {
|
|
4614
4614
|
|
|
4615
|
-
searchWorkOrders(input: string | null | undefined): Promise<SearchWorkOrderDto[]>;
|
|
4615
|
+
searchWorkOrders(input: string | null | undefined, pageSize: number | null | undefined): Promise<SearchWorkOrderDto[]>;
|
|
4616
4616
|
}
|
|
4617
4617
|
|
|
4618
4618
|
export class MoveWorkOrdersClient extends AuthorizedApiBase implements IMoveWorkOrdersClient {
|
|
@@ -4626,10 +4626,12 @@ export class MoveWorkOrdersClient extends AuthorizedApiBase implements IMoveWork
|
|
|
4626
4626
|
this.baseUrl = baseUrl ?? "";
|
|
4627
4627
|
}
|
|
4628
4628
|
|
|
4629
|
-
searchWorkOrders(input: string | null | undefined): Promise<SearchWorkOrderDto[]> {
|
|
4629
|
+
searchWorkOrders(input: string | null | undefined, pageSize: number | null | undefined): Promise<SearchWorkOrderDto[]> {
|
|
4630
4630
|
let url_ = this.baseUrl + "/move/workorders/search?";
|
|
4631
4631
|
if (input !== undefined && input !== null)
|
|
4632
4632
|
url_ += "input=" + encodeURIComponent("" + input) + "&";
|
|
4633
|
+
if (pageSize !== undefined && pageSize !== null)
|
|
4634
|
+
url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
|
|
4633
4635
|
url_ = url_.replace(/[?&]$/, "");
|
|
4634
4636
|
|
|
4635
4637
|
let options_: RequestInit = {
|
|
@@ -25638,7 +25640,7 @@ export type BookingStatusDto = "Pending" | "Cancelled" | "InProgress" | "Deliver
|
|
|
25638
25640
|
|
|
25639
25641
|
export class BookingItemDto implements IBookingItemDto {
|
|
25640
25642
|
trackingId!: string;
|
|
25641
|
-
workOrderId
|
|
25643
|
+
workOrderId!: string;
|
|
25642
25644
|
material?: string | null;
|
|
25643
25645
|
comment?: string | null;
|
|
25644
25646
|
toLocationOverride?: LocationDto | null;
|
|
@@ -25682,7 +25684,7 @@ export class BookingItemDto implements IBookingItemDto {
|
|
|
25682
25684
|
|
|
25683
25685
|
export interface IBookingItemDto {
|
|
25684
25686
|
trackingId: string;
|
|
25685
|
-
workOrderId
|
|
25687
|
+
workOrderId: string;
|
|
25686
25688
|
material?: string | null;
|
|
25687
25689
|
comment?: string | null;
|
|
25688
25690
|
toLocationOverride?: LocationDto | null;
|
|
@@ -26181,7 +26183,7 @@ export interface ILocationSuggestionsItemDto {
|
|
|
26181
26183
|
export class TrackingHistoryDto implements ITrackingHistoryDto {
|
|
26182
26184
|
trackingId!: string;
|
|
26183
26185
|
palletNumber!: number;
|
|
26184
|
-
workOrderId
|
|
26186
|
+
workOrderId!: string;
|
|
26185
26187
|
trackingEvents!: TrackingEventDto[];
|
|
26186
26188
|
|
|
26187
26189
|
constructor(data?: ITrackingHistoryDto) {
|
|
@@ -26233,7 +26235,7 @@ export class TrackingHistoryDto implements ITrackingHistoryDto {
|
|
|
26233
26235
|
export interface ITrackingHistoryDto {
|
|
26234
26236
|
trackingId: string;
|
|
26235
26237
|
palletNumber: number;
|
|
26236
|
-
workOrderId
|
|
26238
|
+
workOrderId: string;
|
|
26237
26239
|
trackingEvents: TrackingEventDto[];
|
|
26238
26240
|
}
|
|
26239
26241
|
|
|
@@ -26305,7 +26307,7 @@ export type TrackingStatusDto = "Manual" | "BookingPending" | "BookingCancelled"
|
|
|
26305
26307
|
|
|
26306
26308
|
export class TrackingWorkOrderDto implements ITrackingWorkOrderDto {
|
|
26307
26309
|
workOrderId!: string;
|
|
26308
|
-
part
|
|
26310
|
+
part?: PartDto | null;
|
|
26309
26311
|
trackingHistory!: TrackingHistoryDto[];
|
|
26310
26312
|
|
|
26311
26313
|
constructor(data?: ITrackingWorkOrderDto) {
|
|
@@ -26316,7 +26318,6 @@ export class TrackingWorkOrderDto implements ITrackingWorkOrderDto {
|
|
|
26316
26318
|
}
|
|
26317
26319
|
}
|
|
26318
26320
|
if (!data) {
|
|
26319
|
-
this.part = new PartDto();
|
|
26320
26321
|
this.trackingHistory = [];
|
|
26321
26322
|
}
|
|
26322
26323
|
}
|
|
@@ -26324,7 +26325,7 @@ export class TrackingWorkOrderDto implements ITrackingWorkOrderDto {
|
|
|
26324
26325
|
init(_data?: any) {
|
|
26325
26326
|
if (_data) {
|
|
26326
26327
|
this.workOrderId = _data["workOrderId"];
|
|
26327
|
-
this.part = _data["part"] ? PartDto.fromJS(_data["part"]) :
|
|
26328
|
+
this.part = _data["part"] ? PartDto.fromJS(_data["part"]) : <any>undefined;
|
|
26328
26329
|
if (Array.isArray(_data["trackingHistory"])) {
|
|
26329
26330
|
this.trackingHistory = [] as any;
|
|
26330
26331
|
for (let item of _data["trackingHistory"])
|
|
@@ -26355,7 +26356,7 @@ export class TrackingWorkOrderDto implements ITrackingWorkOrderDto {
|
|
|
26355
26356
|
|
|
26356
26357
|
export interface ITrackingWorkOrderDto {
|
|
26357
26358
|
workOrderId: string;
|
|
26358
|
-
part
|
|
26359
|
+
part?: PartDto | null;
|
|
26359
26360
|
trackingHistory: TrackingHistoryDto[];
|
|
26360
26361
|
}
|
|
26361
26362
|
|