@ignos/api-client 20240614.0.9570 → 20240620.0.9604
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 +46 -18
- package/lib/ignosportal-api.js +90 -10
- package/package.json +1 -1
- package/src/ignosportal-api.ts +133 -25
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -532,9 +532,10 @@ export declare class TraceClient extends AuthorizedApiBase implements ITraceClie
|
|
|
532
532
|
export interface IMoveBookingClient {
|
|
533
533
|
listBookings(request: BookingRequestListDto): Promise<BookingListDto>;
|
|
534
534
|
getBooking(bookingId: string): Promise<BookingDto>;
|
|
535
|
-
updateBooking(bookingId: string, bookingRequest:
|
|
535
|
+
updateBooking(bookingId: string, bookingRequest: BookingTransportRequestDto): Promise<BookingDto>;
|
|
536
536
|
getWorkOrderBooking(workOrderId: string): Promise<BookingDto[]>;
|
|
537
|
-
|
|
537
|
+
createBookingTransport(bookingRequest: BookingTransportRequestDto): Promise<BookingDto>;
|
|
538
|
+
createBookingGeneral(bookingRequest: BookingGeneralRequestDto): Promise<BookingDto>;
|
|
538
539
|
cancelBooking(bookingUpdate: BookingUpdateDto): Promise<BookingDto>;
|
|
539
540
|
revertBooking(bookingUpdate: BookingUpdateDto): Promise<BookingDto>;
|
|
540
541
|
startDelivery(bookingUpdate: BookingUpdateDto): Promise<BookingDto>;
|
|
@@ -551,12 +552,14 @@ export declare class MoveBookingClient extends AuthorizedApiBase implements IMov
|
|
|
551
552
|
protected processListBookings(response: Response): Promise<BookingListDto>;
|
|
552
553
|
getBooking(bookingId: string): Promise<BookingDto>;
|
|
553
554
|
protected processGetBooking(response: Response): Promise<BookingDto>;
|
|
554
|
-
updateBooking(bookingId: string, bookingRequest:
|
|
555
|
+
updateBooking(bookingId: string, bookingRequest: BookingTransportRequestDto): Promise<BookingDto>;
|
|
555
556
|
protected processUpdateBooking(response: Response): Promise<BookingDto>;
|
|
556
557
|
getWorkOrderBooking(workOrderId: string): Promise<BookingDto[]>;
|
|
557
558
|
protected processGetWorkOrderBooking(response: Response): Promise<BookingDto[]>;
|
|
558
|
-
|
|
559
|
-
protected
|
|
559
|
+
createBookingTransport(bookingRequest: BookingTransportRequestDto): Promise<BookingDto>;
|
|
560
|
+
protected processCreateBookingTransport(response: Response): Promise<BookingDto>;
|
|
561
|
+
createBookingGeneral(bookingRequest: BookingGeneralRequestDto): Promise<BookingDto>;
|
|
562
|
+
protected processCreateBookingGeneral(response: Response): Promise<BookingDto>;
|
|
560
563
|
cancelBooking(bookingUpdate: BookingUpdateDto): Promise<BookingDto>;
|
|
561
564
|
protected processCancelBooking(response: Response): Promise<BookingDto>;
|
|
562
565
|
revertBooking(bookingUpdate: BookingUpdateDto): Promise<BookingDto>;
|
|
@@ -4098,7 +4101,8 @@ export interface IBookingListDto {
|
|
|
4098
4101
|
}
|
|
4099
4102
|
export declare class BookingDto implements IBookingDto {
|
|
4100
4103
|
bookingId: string;
|
|
4101
|
-
|
|
4104
|
+
bookingKind: BookingKindDto;
|
|
4105
|
+
transportKind: TransportKindDto;
|
|
4102
4106
|
status: BookingStatusDto;
|
|
4103
4107
|
items: BookingItemDto[];
|
|
4104
4108
|
fromLocation: LocationDto;
|
|
@@ -4115,7 +4119,8 @@ export declare class BookingDto implements IBookingDto {
|
|
|
4115
4119
|
}
|
|
4116
4120
|
export interface IBookingDto {
|
|
4117
4121
|
bookingId: string;
|
|
4118
|
-
|
|
4122
|
+
bookingKind: BookingKindDto;
|
|
4123
|
+
transportKind: TransportKindDto;
|
|
4119
4124
|
status: BookingStatusDto;
|
|
4120
4125
|
items: BookingItemDto[];
|
|
4121
4126
|
fromLocation: LocationDto;
|
|
@@ -4126,11 +4131,12 @@ export interface IBookingDto {
|
|
|
4126
4131
|
updatedBy?: string | null;
|
|
4127
4132
|
updatedById?: string | null;
|
|
4128
4133
|
}
|
|
4129
|
-
export type
|
|
4134
|
+
export type BookingKindDto = "Forklift" | "General" | "ChipDisposal" | "Garbage";
|
|
4135
|
+
export type TransportKindDto = "NormalForklift" | "LargeForklift" | "SideLoadingForklift";
|
|
4130
4136
|
export type BookingStatusDto = "Pending" | "Cancelled" | "InProgress" | "Delivered";
|
|
4131
4137
|
export declare class BookingItemDto implements IBookingItemDto {
|
|
4132
4138
|
trackingId: string;
|
|
4133
|
-
workOrderId
|
|
4139
|
+
workOrderId?: string | null;
|
|
4134
4140
|
material?: string | null;
|
|
4135
4141
|
comment?: string | null;
|
|
4136
4142
|
constructor(data?: IBookingItemDto);
|
|
@@ -4140,7 +4146,7 @@ export declare class BookingItemDto implements IBookingItemDto {
|
|
|
4140
4146
|
}
|
|
4141
4147
|
export interface IBookingItemDto {
|
|
4142
4148
|
trackingId: string;
|
|
4143
|
-
workOrderId
|
|
4149
|
+
workOrderId?: string | null;
|
|
4144
4150
|
material?: string | null;
|
|
4145
4151
|
comment?: string | null;
|
|
4146
4152
|
}
|
|
@@ -4178,18 +4184,18 @@ export interface IBookingRequestListDto {
|
|
|
4178
4184
|
continuationToken?: string | null;
|
|
4179
4185
|
}
|
|
4180
4186
|
export type BookingOrderDto = "Ascending" | "Descending";
|
|
4181
|
-
export declare class
|
|
4182
|
-
|
|
4187
|
+
export declare class BookingTransportRequestDto implements IBookingTransportRequestDto {
|
|
4188
|
+
transportKind: TransportKindDto;
|
|
4183
4189
|
items: BookingItemRequestDto[];
|
|
4184
4190
|
fromLocationId: string;
|
|
4185
4191
|
toLocationId: string;
|
|
4186
|
-
constructor(data?:
|
|
4192
|
+
constructor(data?: IBookingTransportRequestDto);
|
|
4187
4193
|
init(_data?: any): void;
|
|
4188
|
-
static fromJS(data: any):
|
|
4194
|
+
static fromJS(data: any): BookingTransportRequestDto;
|
|
4189
4195
|
toJSON(data?: any): any;
|
|
4190
4196
|
}
|
|
4191
|
-
export interface
|
|
4192
|
-
|
|
4197
|
+
export interface IBookingTransportRequestDto {
|
|
4198
|
+
transportKind: TransportKindDto;
|
|
4193
4199
|
items: BookingItemRequestDto[];
|
|
4194
4200
|
fromLocationId: string;
|
|
4195
4201
|
toLocationId: string;
|
|
@@ -4206,6 +4212,28 @@ export interface IBookingItemRequestDto {
|
|
|
4206
4212
|
trackingId: string;
|
|
4207
4213
|
comment?: string | null;
|
|
4208
4214
|
}
|
|
4215
|
+
export declare class BookingGeneralRequestDto implements IBookingGeneralRequestDto {
|
|
4216
|
+
bookingKind: BookingKindDto;
|
|
4217
|
+
transportKind: TransportKindDto;
|
|
4218
|
+
fromLocationId: string;
|
|
4219
|
+
toLocationId: string;
|
|
4220
|
+
material?: string | null;
|
|
4221
|
+
comment?: string | null;
|
|
4222
|
+
itemCount: number;
|
|
4223
|
+
constructor(data?: IBookingGeneralRequestDto);
|
|
4224
|
+
init(_data?: any): void;
|
|
4225
|
+
static fromJS(data: any): BookingGeneralRequestDto;
|
|
4226
|
+
toJSON(data?: any): any;
|
|
4227
|
+
}
|
|
4228
|
+
export interface IBookingGeneralRequestDto {
|
|
4229
|
+
bookingKind: BookingKindDto;
|
|
4230
|
+
transportKind: TransportKindDto;
|
|
4231
|
+
fromLocationId: string;
|
|
4232
|
+
toLocationId: string;
|
|
4233
|
+
material?: string | null;
|
|
4234
|
+
comment?: string | null;
|
|
4235
|
+
itemCount: number;
|
|
4236
|
+
}
|
|
4209
4237
|
export declare class BookingUpdateDto implements IBookingUpdateDto {
|
|
4210
4238
|
bookingId: string;
|
|
4211
4239
|
constructor(data?: IBookingUpdateDto);
|
|
@@ -4245,7 +4273,7 @@ export interface IBookingDeliveryExceptionDto {
|
|
|
4245
4273
|
export declare class TrackingHistoryDto implements ITrackingHistoryDto {
|
|
4246
4274
|
trackingId: string;
|
|
4247
4275
|
palletNumber: number;
|
|
4248
|
-
workOrderId
|
|
4276
|
+
workOrderId?: string | null;
|
|
4249
4277
|
trackingEvents: TrackingEventDto[];
|
|
4250
4278
|
constructor(data?: ITrackingHistoryDto);
|
|
4251
4279
|
init(_data?: any): void;
|
|
@@ -4255,7 +4283,7 @@ export declare class TrackingHistoryDto implements ITrackingHistoryDto {
|
|
|
4255
4283
|
export interface ITrackingHistoryDto {
|
|
4256
4284
|
trackingId: string;
|
|
4257
4285
|
palletNumber: number;
|
|
4258
|
-
workOrderId
|
|
4286
|
+
workOrderId?: string | null;
|
|
4259
4287
|
trackingEvents: TrackingEventDto[];
|
|
4260
4288
|
}
|
|
4261
4289
|
export declare class TrackingEventDto implements ITrackingEventDto {
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -3630,8 +3630,8 @@ export class MoveBookingClient extends AuthorizedApiBase {
|
|
|
3630
3630
|
}
|
|
3631
3631
|
return Promise.resolve(null);
|
|
3632
3632
|
}
|
|
3633
|
-
|
|
3634
|
-
let url_ = this.baseUrl + "/move/booking/book";
|
|
3633
|
+
createBookingTransport(bookingRequest) {
|
|
3634
|
+
let url_ = this.baseUrl + "/move/booking/book/transport";
|
|
3635
3635
|
url_ = url_.replace(/[?&]$/, "");
|
|
3636
3636
|
const content_ = JSON.stringify(bookingRequest);
|
|
3637
3637
|
let options_ = {
|
|
@@ -3645,10 +3645,50 @@ export class MoveBookingClient extends AuthorizedApiBase {
|
|
|
3645
3645
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
3646
3646
|
return this.http.fetch(url_, transformedOptions_);
|
|
3647
3647
|
}).then((_response) => {
|
|
3648
|
-
return this.
|
|
3648
|
+
return this.processCreateBookingTransport(_response);
|
|
3649
3649
|
});
|
|
3650
3650
|
}
|
|
3651
|
-
|
|
3651
|
+
processCreateBookingTransport(response) {
|
|
3652
|
+
const status = response.status;
|
|
3653
|
+
let _headers = {};
|
|
3654
|
+
if (response.headers && response.headers.forEach) {
|
|
3655
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
3656
|
+
}
|
|
3657
|
+
;
|
|
3658
|
+
if (status === 200) {
|
|
3659
|
+
return response.text().then((_responseText) => {
|
|
3660
|
+
let result200 = null;
|
|
3661
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3662
|
+
result200 = BookingDto.fromJS(resultData200);
|
|
3663
|
+
return result200;
|
|
3664
|
+
});
|
|
3665
|
+
}
|
|
3666
|
+
else if (status !== 200 && status !== 204) {
|
|
3667
|
+
return response.text().then((_responseText) => {
|
|
3668
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
3669
|
+
});
|
|
3670
|
+
}
|
|
3671
|
+
return Promise.resolve(null);
|
|
3672
|
+
}
|
|
3673
|
+
createBookingGeneral(bookingRequest) {
|
|
3674
|
+
let url_ = this.baseUrl + "/move/booking/book/general";
|
|
3675
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
3676
|
+
const content_ = JSON.stringify(bookingRequest);
|
|
3677
|
+
let options_ = {
|
|
3678
|
+
body: content_,
|
|
3679
|
+
method: "POST",
|
|
3680
|
+
headers: {
|
|
3681
|
+
"Content-Type": "application/json",
|
|
3682
|
+
"Accept": "application/json"
|
|
3683
|
+
}
|
|
3684
|
+
};
|
|
3685
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
3686
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
3687
|
+
}).then((_response) => {
|
|
3688
|
+
return this.processCreateBookingGeneral(_response);
|
|
3689
|
+
});
|
|
3690
|
+
}
|
|
3691
|
+
processCreateBookingGeneral(response) {
|
|
3652
3692
|
const status = response.status;
|
|
3653
3693
|
let _headers = {};
|
|
3654
3694
|
if (response.headers && response.headers.forEach) {
|
|
@@ -22384,7 +22424,8 @@ export class BookingDto {
|
|
|
22384
22424
|
init(_data) {
|
|
22385
22425
|
if (_data) {
|
|
22386
22426
|
this.bookingId = _data["bookingId"];
|
|
22387
|
-
this.
|
|
22427
|
+
this.bookingKind = _data["bookingKind"];
|
|
22428
|
+
this.transportKind = _data["transportKind"];
|
|
22388
22429
|
this.status = _data["status"];
|
|
22389
22430
|
if (Array.isArray(_data["items"])) {
|
|
22390
22431
|
this.items = [];
|
|
@@ -22409,7 +22450,8 @@ export class BookingDto {
|
|
|
22409
22450
|
toJSON(data) {
|
|
22410
22451
|
data = typeof data === 'object' ? data : {};
|
|
22411
22452
|
data["bookingId"] = this.bookingId;
|
|
22412
|
-
data["
|
|
22453
|
+
data["bookingKind"] = this.bookingKind;
|
|
22454
|
+
data["transportKind"] = this.transportKind;
|
|
22413
22455
|
data["status"] = this.status;
|
|
22414
22456
|
if (Array.isArray(this.items)) {
|
|
22415
22457
|
data["items"] = [];
|
|
@@ -22530,7 +22572,7 @@ export class BookingRequestListDto {
|
|
|
22530
22572
|
return data;
|
|
22531
22573
|
}
|
|
22532
22574
|
}
|
|
22533
|
-
export class
|
|
22575
|
+
export class BookingTransportRequestDto {
|
|
22534
22576
|
constructor(data) {
|
|
22535
22577
|
if (data) {
|
|
22536
22578
|
for (var property in data) {
|
|
@@ -22544,7 +22586,7 @@ export class BookingRequestDto {
|
|
|
22544
22586
|
}
|
|
22545
22587
|
init(_data) {
|
|
22546
22588
|
if (_data) {
|
|
22547
|
-
this.
|
|
22589
|
+
this.transportKind = _data["transportKind"];
|
|
22548
22590
|
if (Array.isArray(_data["items"])) {
|
|
22549
22591
|
this.items = [];
|
|
22550
22592
|
for (let item of _data["items"])
|
|
@@ -22556,13 +22598,13 @@ export class BookingRequestDto {
|
|
|
22556
22598
|
}
|
|
22557
22599
|
static fromJS(data) {
|
|
22558
22600
|
data = typeof data === 'object' ? data : {};
|
|
22559
|
-
let result = new
|
|
22601
|
+
let result = new BookingTransportRequestDto();
|
|
22560
22602
|
result.init(data);
|
|
22561
22603
|
return result;
|
|
22562
22604
|
}
|
|
22563
22605
|
toJSON(data) {
|
|
22564
22606
|
data = typeof data === 'object' ? data : {};
|
|
22565
|
-
data["
|
|
22607
|
+
data["transportKind"] = this.transportKind;
|
|
22566
22608
|
if (Array.isArray(this.items)) {
|
|
22567
22609
|
data["items"] = [];
|
|
22568
22610
|
for (let item of this.items)
|
|
@@ -22601,6 +22643,44 @@ export class BookingItemRequestDto {
|
|
|
22601
22643
|
return data;
|
|
22602
22644
|
}
|
|
22603
22645
|
}
|
|
22646
|
+
export class BookingGeneralRequestDto {
|
|
22647
|
+
constructor(data) {
|
|
22648
|
+
if (data) {
|
|
22649
|
+
for (var property in data) {
|
|
22650
|
+
if (data.hasOwnProperty(property))
|
|
22651
|
+
this[property] = data[property];
|
|
22652
|
+
}
|
|
22653
|
+
}
|
|
22654
|
+
}
|
|
22655
|
+
init(_data) {
|
|
22656
|
+
if (_data) {
|
|
22657
|
+
this.bookingKind = _data["bookingKind"];
|
|
22658
|
+
this.transportKind = _data["transportKind"];
|
|
22659
|
+
this.fromLocationId = _data["fromLocationId"];
|
|
22660
|
+
this.toLocationId = _data["toLocationId"];
|
|
22661
|
+
this.material = _data["material"];
|
|
22662
|
+
this.comment = _data["comment"];
|
|
22663
|
+
this.itemCount = _data["itemCount"];
|
|
22664
|
+
}
|
|
22665
|
+
}
|
|
22666
|
+
static fromJS(data) {
|
|
22667
|
+
data = typeof data === 'object' ? data : {};
|
|
22668
|
+
let result = new BookingGeneralRequestDto();
|
|
22669
|
+
result.init(data);
|
|
22670
|
+
return result;
|
|
22671
|
+
}
|
|
22672
|
+
toJSON(data) {
|
|
22673
|
+
data = typeof data === 'object' ? data : {};
|
|
22674
|
+
data["bookingKind"] = this.bookingKind;
|
|
22675
|
+
data["transportKind"] = this.transportKind;
|
|
22676
|
+
data["fromLocationId"] = this.fromLocationId;
|
|
22677
|
+
data["toLocationId"] = this.toLocationId;
|
|
22678
|
+
data["material"] = this.material;
|
|
22679
|
+
data["comment"] = this.comment;
|
|
22680
|
+
data["itemCount"] = this.itemCount;
|
|
22681
|
+
return data;
|
|
22682
|
+
}
|
|
22683
|
+
}
|
|
22604
22684
|
export class BookingUpdateDto {
|
|
22605
22685
|
constructor(data) {
|
|
22606
22686
|
if (data) {
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -3751,11 +3751,13 @@ export interface IMoveBookingClient {
|
|
|
3751
3751
|
|
|
3752
3752
|
getBooking(bookingId: string): Promise<BookingDto>;
|
|
3753
3753
|
|
|
3754
|
-
updateBooking(bookingId: string, bookingRequest:
|
|
3754
|
+
updateBooking(bookingId: string, bookingRequest: BookingTransportRequestDto): Promise<BookingDto>;
|
|
3755
3755
|
|
|
3756
3756
|
getWorkOrderBooking(workOrderId: string): Promise<BookingDto[]>;
|
|
3757
3757
|
|
|
3758
|
-
|
|
3758
|
+
createBookingTransport(bookingRequest: BookingTransportRequestDto): Promise<BookingDto>;
|
|
3759
|
+
|
|
3760
|
+
createBookingGeneral(bookingRequest: BookingGeneralRequestDto): Promise<BookingDto>;
|
|
3759
3761
|
|
|
3760
3762
|
cancelBooking(bookingUpdate: BookingUpdateDto): Promise<BookingDto>;
|
|
3761
3763
|
|
|
@@ -3856,7 +3858,7 @@ export class MoveBookingClient extends AuthorizedApiBase implements IMoveBooking
|
|
|
3856
3858
|
return Promise.resolve<BookingDto>(null as any);
|
|
3857
3859
|
}
|
|
3858
3860
|
|
|
3859
|
-
updateBooking(bookingId: string, bookingRequest:
|
|
3861
|
+
updateBooking(bookingId: string, bookingRequest: BookingTransportRequestDto): Promise<BookingDto> {
|
|
3860
3862
|
let url_ = this.baseUrl + "/move/booking/{bookingId}";
|
|
3861
3863
|
if (bookingId === undefined || bookingId === null)
|
|
3862
3864
|
throw new Error("The parameter 'bookingId' must be defined.");
|
|
@@ -3942,8 +3944,8 @@ export class MoveBookingClient extends AuthorizedApiBase implements IMoveBooking
|
|
|
3942
3944
|
return Promise.resolve<BookingDto[]>(null as any);
|
|
3943
3945
|
}
|
|
3944
3946
|
|
|
3945
|
-
|
|
3946
|
-
let url_ = this.baseUrl + "/move/booking/book";
|
|
3947
|
+
createBookingTransport(bookingRequest: BookingTransportRequestDto): Promise<BookingDto> {
|
|
3948
|
+
let url_ = this.baseUrl + "/move/booking/book/transport";
|
|
3947
3949
|
url_ = url_.replace(/[?&]$/, "");
|
|
3948
3950
|
|
|
3949
3951
|
const content_ = JSON.stringify(bookingRequest);
|
|
@@ -3960,11 +3962,51 @@ export class MoveBookingClient extends AuthorizedApiBase implements IMoveBooking
|
|
|
3960
3962
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
3961
3963
|
return this.http.fetch(url_, transformedOptions_);
|
|
3962
3964
|
}).then((_response: Response) => {
|
|
3963
|
-
return this.
|
|
3965
|
+
return this.processCreateBookingTransport(_response);
|
|
3964
3966
|
});
|
|
3965
3967
|
}
|
|
3966
3968
|
|
|
3967
|
-
protected
|
|
3969
|
+
protected processCreateBookingTransport(response: Response): Promise<BookingDto> {
|
|
3970
|
+
const status = response.status;
|
|
3971
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
3972
|
+
if (status === 200) {
|
|
3973
|
+
return response.text().then((_responseText) => {
|
|
3974
|
+
let result200: any = null;
|
|
3975
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3976
|
+
result200 = BookingDto.fromJS(resultData200);
|
|
3977
|
+
return result200;
|
|
3978
|
+
});
|
|
3979
|
+
} else if (status !== 200 && status !== 204) {
|
|
3980
|
+
return response.text().then((_responseText) => {
|
|
3981
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
3982
|
+
});
|
|
3983
|
+
}
|
|
3984
|
+
return Promise.resolve<BookingDto>(null as any);
|
|
3985
|
+
}
|
|
3986
|
+
|
|
3987
|
+
createBookingGeneral(bookingRequest: BookingGeneralRequestDto): Promise<BookingDto> {
|
|
3988
|
+
let url_ = this.baseUrl + "/move/booking/book/general";
|
|
3989
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
3990
|
+
|
|
3991
|
+
const content_ = JSON.stringify(bookingRequest);
|
|
3992
|
+
|
|
3993
|
+
let options_: RequestInit = {
|
|
3994
|
+
body: content_,
|
|
3995
|
+
method: "POST",
|
|
3996
|
+
headers: {
|
|
3997
|
+
"Content-Type": "application/json",
|
|
3998
|
+
"Accept": "application/json"
|
|
3999
|
+
}
|
|
4000
|
+
};
|
|
4001
|
+
|
|
4002
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
4003
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
4004
|
+
}).then((_response: Response) => {
|
|
4005
|
+
return this.processCreateBookingGeneral(_response);
|
|
4006
|
+
});
|
|
4007
|
+
}
|
|
4008
|
+
|
|
4009
|
+
protected processCreateBookingGeneral(response: Response): Promise<BookingDto> {
|
|
3968
4010
|
const status = response.status;
|
|
3969
4011
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
3970
4012
|
if (status === 200) {
|
|
@@ -25501,7 +25543,8 @@ export interface IBookingListDto {
|
|
|
25501
25543
|
|
|
25502
25544
|
export class BookingDto implements IBookingDto {
|
|
25503
25545
|
bookingId!: string;
|
|
25504
|
-
|
|
25546
|
+
bookingKind!: BookingKindDto;
|
|
25547
|
+
transportKind!: TransportKindDto;
|
|
25505
25548
|
status!: BookingStatusDto;
|
|
25506
25549
|
items!: BookingItemDto[];
|
|
25507
25550
|
fromLocation!: LocationDto;
|
|
@@ -25529,7 +25572,8 @@ export class BookingDto implements IBookingDto {
|
|
|
25529
25572
|
init(_data?: any) {
|
|
25530
25573
|
if (_data) {
|
|
25531
25574
|
this.bookingId = _data["bookingId"];
|
|
25532
|
-
this.
|
|
25575
|
+
this.bookingKind = _data["bookingKind"];
|
|
25576
|
+
this.transportKind = _data["transportKind"];
|
|
25533
25577
|
this.status = _data["status"];
|
|
25534
25578
|
if (Array.isArray(_data["items"])) {
|
|
25535
25579
|
this.items = [] as any;
|
|
@@ -25556,7 +25600,8 @@ export class BookingDto implements IBookingDto {
|
|
|
25556
25600
|
toJSON(data?: any) {
|
|
25557
25601
|
data = typeof data === 'object' ? data : {};
|
|
25558
25602
|
data["bookingId"] = this.bookingId;
|
|
25559
|
-
data["
|
|
25603
|
+
data["bookingKind"] = this.bookingKind;
|
|
25604
|
+
data["transportKind"] = this.transportKind;
|
|
25560
25605
|
data["status"] = this.status;
|
|
25561
25606
|
if (Array.isArray(this.items)) {
|
|
25562
25607
|
data["items"] = [];
|
|
@@ -25576,7 +25621,8 @@ export class BookingDto implements IBookingDto {
|
|
|
25576
25621
|
|
|
25577
25622
|
export interface IBookingDto {
|
|
25578
25623
|
bookingId: string;
|
|
25579
|
-
|
|
25624
|
+
bookingKind: BookingKindDto;
|
|
25625
|
+
transportKind: TransportKindDto;
|
|
25580
25626
|
status: BookingStatusDto;
|
|
25581
25627
|
items: BookingItemDto[];
|
|
25582
25628
|
fromLocation: LocationDto;
|
|
@@ -25588,13 +25634,15 @@ export interface IBookingDto {
|
|
|
25588
25634
|
updatedById?: string | null;
|
|
25589
25635
|
}
|
|
25590
25636
|
|
|
25591
|
-
export type
|
|
25637
|
+
export type BookingKindDto = "Forklift" | "General" | "ChipDisposal" | "Garbage";
|
|
25638
|
+
|
|
25639
|
+
export type TransportKindDto = "NormalForklift" | "LargeForklift" | "SideLoadingForklift";
|
|
25592
25640
|
|
|
25593
25641
|
export type BookingStatusDto = "Pending" | "Cancelled" | "InProgress" | "Delivered";
|
|
25594
25642
|
|
|
25595
25643
|
export class BookingItemDto implements IBookingItemDto {
|
|
25596
25644
|
trackingId!: string;
|
|
25597
|
-
workOrderId
|
|
25645
|
+
workOrderId?: string | null;
|
|
25598
25646
|
material?: string | null;
|
|
25599
25647
|
comment?: string | null;
|
|
25600
25648
|
|
|
@@ -25635,7 +25683,7 @@ export class BookingItemDto implements IBookingItemDto {
|
|
|
25635
25683
|
|
|
25636
25684
|
export interface IBookingItemDto {
|
|
25637
25685
|
trackingId: string;
|
|
25638
|
-
workOrderId
|
|
25686
|
+
workOrderId?: string | null;
|
|
25639
25687
|
material?: string | null;
|
|
25640
25688
|
comment?: string | null;
|
|
25641
25689
|
}
|
|
@@ -25748,13 +25796,13 @@ export interface IBookingRequestListDto {
|
|
|
25748
25796
|
|
|
25749
25797
|
export type BookingOrderDto = "Ascending" | "Descending";
|
|
25750
25798
|
|
|
25751
|
-
export class
|
|
25752
|
-
|
|
25799
|
+
export class BookingTransportRequestDto implements IBookingTransportRequestDto {
|
|
25800
|
+
transportKind!: TransportKindDto;
|
|
25753
25801
|
items!: BookingItemRequestDto[];
|
|
25754
25802
|
fromLocationId!: string;
|
|
25755
25803
|
toLocationId!: string;
|
|
25756
25804
|
|
|
25757
|
-
constructor(data?:
|
|
25805
|
+
constructor(data?: IBookingTransportRequestDto) {
|
|
25758
25806
|
if (data) {
|
|
25759
25807
|
for (var property in data) {
|
|
25760
25808
|
if (data.hasOwnProperty(property))
|
|
@@ -25768,7 +25816,7 @@ export class BookingRequestDto implements IBookingRequestDto {
|
|
|
25768
25816
|
|
|
25769
25817
|
init(_data?: any) {
|
|
25770
25818
|
if (_data) {
|
|
25771
|
-
this.
|
|
25819
|
+
this.transportKind = _data["transportKind"];
|
|
25772
25820
|
if (Array.isArray(_data["items"])) {
|
|
25773
25821
|
this.items = [] as any;
|
|
25774
25822
|
for (let item of _data["items"])
|
|
@@ -25779,16 +25827,16 @@ export class BookingRequestDto implements IBookingRequestDto {
|
|
|
25779
25827
|
}
|
|
25780
25828
|
}
|
|
25781
25829
|
|
|
25782
|
-
static fromJS(data: any):
|
|
25830
|
+
static fromJS(data: any): BookingTransportRequestDto {
|
|
25783
25831
|
data = typeof data === 'object' ? data : {};
|
|
25784
|
-
let result = new
|
|
25832
|
+
let result = new BookingTransportRequestDto();
|
|
25785
25833
|
result.init(data);
|
|
25786
25834
|
return result;
|
|
25787
25835
|
}
|
|
25788
25836
|
|
|
25789
25837
|
toJSON(data?: any) {
|
|
25790
25838
|
data = typeof data === 'object' ? data : {};
|
|
25791
|
-
data["
|
|
25839
|
+
data["transportKind"] = this.transportKind;
|
|
25792
25840
|
if (Array.isArray(this.items)) {
|
|
25793
25841
|
data["items"] = [];
|
|
25794
25842
|
for (let item of this.items)
|
|
@@ -25800,8 +25848,8 @@ export class BookingRequestDto implements IBookingRequestDto {
|
|
|
25800
25848
|
}
|
|
25801
25849
|
}
|
|
25802
25850
|
|
|
25803
|
-
export interface
|
|
25804
|
-
|
|
25851
|
+
export interface IBookingTransportRequestDto {
|
|
25852
|
+
transportKind: TransportKindDto;
|
|
25805
25853
|
items: BookingItemRequestDto[];
|
|
25806
25854
|
fromLocationId: string;
|
|
25807
25855
|
toLocationId: string;
|
|
@@ -25847,6 +25895,66 @@ export interface IBookingItemRequestDto {
|
|
|
25847
25895
|
comment?: string | null;
|
|
25848
25896
|
}
|
|
25849
25897
|
|
|
25898
|
+
export class BookingGeneralRequestDto implements IBookingGeneralRequestDto {
|
|
25899
|
+
bookingKind!: BookingKindDto;
|
|
25900
|
+
transportKind!: TransportKindDto;
|
|
25901
|
+
fromLocationId!: string;
|
|
25902
|
+
toLocationId!: string;
|
|
25903
|
+
material?: string | null;
|
|
25904
|
+
comment?: string | null;
|
|
25905
|
+
itemCount!: number;
|
|
25906
|
+
|
|
25907
|
+
constructor(data?: IBookingGeneralRequestDto) {
|
|
25908
|
+
if (data) {
|
|
25909
|
+
for (var property in data) {
|
|
25910
|
+
if (data.hasOwnProperty(property))
|
|
25911
|
+
(<any>this)[property] = (<any>data)[property];
|
|
25912
|
+
}
|
|
25913
|
+
}
|
|
25914
|
+
}
|
|
25915
|
+
|
|
25916
|
+
init(_data?: any) {
|
|
25917
|
+
if (_data) {
|
|
25918
|
+
this.bookingKind = _data["bookingKind"];
|
|
25919
|
+
this.transportKind = _data["transportKind"];
|
|
25920
|
+
this.fromLocationId = _data["fromLocationId"];
|
|
25921
|
+
this.toLocationId = _data["toLocationId"];
|
|
25922
|
+
this.material = _data["material"];
|
|
25923
|
+
this.comment = _data["comment"];
|
|
25924
|
+
this.itemCount = _data["itemCount"];
|
|
25925
|
+
}
|
|
25926
|
+
}
|
|
25927
|
+
|
|
25928
|
+
static fromJS(data: any): BookingGeneralRequestDto {
|
|
25929
|
+
data = typeof data === 'object' ? data : {};
|
|
25930
|
+
let result = new BookingGeneralRequestDto();
|
|
25931
|
+
result.init(data);
|
|
25932
|
+
return result;
|
|
25933
|
+
}
|
|
25934
|
+
|
|
25935
|
+
toJSON(data?: any) {
|
|
25936
|
+
data = typeof data === 'object' ? data : {};
|
|
25937
|
+
data["bookingKind"] = this.bookingKind;
|
|
25938
|
+
data["transportKind"] = this.transportKind;
|
|
25939
|
+
data["fromLocationId"] = this.fromLocationId;
|
|
25940
|
+
data["toLocationId"] = this.toLocationId;
|
|
25941
|
+
data["material"] = this.material;
|
|
25942
|
+
data["comment"] = this.comment;
|
|
25943
|
+
data["itemCount"] = this.itemCount;
|
|
25944
|
+
return data;
|
|
25945
|
+
}
|
|
25946
|
+
}
|
|
25947
|
+
|
|
25948
|
+
export interface IBookingGeneralRequestDto {
|
|
25949
|
+
bookingKind: BookingKindDto;
|
|
25950
|
+
transportKind: TransportKindDto;
|
|
25951
|
+
fromLocationId: string;
|
|
25952
|
+
toLocationId: string;
|
|
25953
|
+
material?: string | null;
|
|
25954
|
+
comment?: string | null;
|
|
25955
|
+
itemCount: number;
|
|
25956
|
+
}
|
|
25957
|
+
|
|
25850
25958
|
export class BookingUpdateDto implements IBookingUpdateDto {
|
|
25851
25959
|
bookingId!: string;
|
|
25852
25960
|
|
|
@@ -25978,7 +26086,7 @@ export interface IBookingDeliveryExceptionDto {
|
|
|
25978
26086
|
export class TrackingHistoryDto implements ITrackingHistoryDto {
|
|
25979
26087
|
trackingId!: string;
|
|
25980
26088
|
palletNumber!: number;
|
|
25981
|
-
workOrderId
|
|
26089
|
+
workOrderId?: string | null;
|
|
25982
26090
|
trackingEvents!: TrackingEventDto[];
|
|
25983
26091
|
|
|
25984
26092
|
constructor(data?: ITrackingHistoryDto) {
|
|
@@ -26030,7 +26138,7 @@ export class TrackingHistoryDto implements ITrackingHistoryDto {
|
|
|
26030
26138
|
export interface ITrackingHistoryDto {
|
|
26031
26139
|
trackingId: string;
|
|
26032
26140
|
palletNumber: number;
|
|
26033
|
-
workOrderId
|
|
26141
|
+
workOrderId?: string | null;
|
|
26034
26142
|
trackingEvents: TrackingEventDto[];
|
|
26035
26143
|
}
|
|
26036
26144
|
|