@ignos/api-client 20240528.0.9355 → 20240529.0.9369
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 +68 -47
- package/lib/ignosportal-api.js +75 -24
- package/package.json +1 -1
- package/src/ignosportal-api.ts +142 -69
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -529,42 +529,42 @@ export declare class TraceClient extends AuthorizedApiBase implements ITraceClie
|
|
|
529
529
|
postListTraceWorkorders(request: ListTraceWorkordersRequest | undefined): Promise<PagedResultOfTraceWorkOrderListDto>;
|
|
530
530
|
protected processPostListTraceWorkorders(response: Response): Promise<PagedResultOfTraceWorkOrderListDto>;
|
|
531
531
|
}
|
|
532
|
-
export interface
|
|
533
|
-
listBookings(request: BookingRequestListDto): Promise<
|
|
534
|
-
getBooking(bookingId: string): Promise<
|
|
535
|
-
updateBooking(bookingId: string, bookingRequest: BookingRequestDto): Promise<
|
|
536
|
-
createBooking(bookingRequest: BookingRequestDto): Promise<
|
|
537
|
-
cancelBooking(bookingUpdate: BookingUpdateDto): Promise<
|
|
538
|
-
startDelivery(bookingUpdate: BookingUpdateDto): Promise<
|
|
539
|
-
finishDelivery(bookingUpdate: BookingDeliveryUpdateDto): Promise<
|
|
540
|
-
}
|
|
541
|
-
export declare class
|
|
532
|
+
export interface IMoveBookingClient {
|
|
533
|
+
listBookings(request: BookingRequestListDto): Promise<BookingListDto>;
|
|
534
|
+
getBooking(bookingId: string): Promise<BookingDto>;
|
|
535
|
+
updateBooking(bookingId: string, bookingRequest: BookingRequestDto): Promise<BookingDto>;
|
|
536
|
+
createBooking(bookingRequest: BookingRequestDto): Promise<BookingDto>;
|
|
537
|
+
cancelBooking(bookingUpdate: BookingUpdateDto): Promise<BookingDto>;
|
|
538
|
+
startDelivery(bookingUpdate: BookingUpdateDto): Promise<BookingDto>;
|
|
539
|
+
finishDelivery(bookingUpdate: BookingDeliveryUpdateDto): Promise<BookingDto>;
|
|
540
|
+
}
|
|
541
|
+
export declare class MoveBookingClient extends AuthorizedApiBase implements IMoveBookingClient {
|
|
542
542
|
private http;
|
|
543
543
|
private baseUrl;
|
|
544
544
|
protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
|
|
545
545
|
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
|
|
546
546
|
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
547
547
|
});
|
|
548
|
-
listBookings(request: BookingRequestListDto): Promise<
|
|
549
|
-
protected processListBookings(response: Response): Promise<
|
|
550
|
-
getBooking(bookingId: string): Promise<
|
|
551
|
-
protected processGetBooking(response: Response): Promise<
|
|
552
|
-
updateBooking(bookingId: string, bookingRequest: BookingRequestDto): Promise<
|
|
553
|
-
protected processUpdateBooking(response: Response): Promise<
|
|
554
|
-
createBooking(bookingRequest: BookingRequestDto): Promise<
|
|
555
|
-
protected processCreateBooking(response: Response): Promise<
|
|
556
|
-
cancelBooking(bookingUpdate: BookingUpdateDto): Promise<
|
|
557
|
-
protected processCancelBooking(response: Response): Promise<
|
|
558
|
-
startDelivery(bookingUpdate: BookingUpdateDto): Promise<
|
|
559
|
-
protected processStartDelivery(response: Response): Promise<
|
|
560
|
-
finishDelivery(bookingUpdate: BookingDeliveryUpdateDto): Promise<
|
|
561
|
-
protected processFinishDelivery(response: Response): Promise<
|
|
562
|
-
}
|
|
563
|
-
export interface
|
|
548
|
+
listBookings(request: BookingRequestListDto): Promise<BookingListDto>;
|
|
549
|
+
protected processListBookings(response: Response): Promise<BookingListDto>;
|
|
550
|
+
getBooking(bookingId: string): Promise<BookingDto>;
|
|
551
|
+
protected processGetBooking(response: Response): Promise<BookingDto>;
|
|
552
|
+
updateBooking(bookingId: string, bookingRequest: BookingRequestDto): Promise<BookingDto>;
|
|
553
|
+
protected processUpdateBooking(response: Response): Promise<BookingDto>;
|
|
554
|
+
createBooking(bookingRequest: BookingRequestDto): Promise<BookingDto>;
|
|
555
|
+
protected processCreateBooking(response: Response): Promise<BookingDto>;
|
|
556
|
+
cancelBooking(bookingUpdate: BookingUpdateDto): Promise<BookingDto>;
|
|
557
|
+
protected processCancelBooking(response: Response): Promise<BookingDto>;
|
|
558
|
+
startDelivery(bookingUpdate: BookingUpdateDto): Promise<BookingDto>;
|
|
559
|
+
protected processStartDelivery(response: Response): Promise<BookingDto>;
|
|
560
|
+
finishDelivery(bookingUpdate: BookingDeliveryUpdateDto): Promise<BookingDto>;
|
|
561
|
+
protected processFinishDelivery(response: Response): Promise<BookingDto>;
|
|
562
|
+
}
|
|
563
|
+
export interface IMoveLocationsClient {
|
|
564
564
|
searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | undefined): Promise<LocationDto[]>;
|
|
565
565
|
suggestionsLocations(workOrderId: string | null | undefined, locationKinds: LocationKindDto[] | undefined): Promise<LocationDto[]>;
|
|
566
566
|
}
|
|
567
|
-
export declare class
|
|
567
|
+
export declare class MoveLocationsClient extends AuthorizedApiBase implements IMoveLocationsClient {
|
|
568
568
|
private http;
|
|
569
569
|
private baseUrl;
|
|
570
570
|
protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
|
|
@@ -576,7 +576,7 @@ export declare class LocationsClient extends AuthorizedApiBase implements ILocat
|
|
|
576
576
|
suggestionsLocations(workOrderId: string | null | undefined, locationKinds: LocationKindDto[] | undefined): Promise<LocationDto[]>;
|
|
577
577
|
protected processSuggestionsLocations(response: Response): Promise<LocationDto[]>;
|
|
578
578
|
}
|
|
579
|
-
export interface
|
|
579
|
+
export interface IMoveTrackingClient {
|
|
580
580
|
listTrackingHistory(trackingId: string): Promise<TrackingHistoryDto>;
|
|
581
581
|
listWorkOrderTrackingHistory(workOrderId: string): Promise<TrackingWorkOrderDto>;
|
|
582
582
|
createTrackingEvents(trackingUpdates: TrackingUpdateDto[]): Promise<void>;
|
|
@@ -584,7 +584,7 @@ export interface ITrackingClient {
|
|
|
584
584
|
deleteTrackingHistory(trackingUpdates: TrackingHistoryUpdateDto[]): Promise<void>;
|
|
585
585
|
createLabel(workOrderId: string, palletCount: number | undefined): Promise<FileResponse>;
|
|
586
586
|
}
|
|
587
|
-
export declare class
|
|
587
|
+
export declare class MoveTrackingClient extends AuthorizedApiBase implements IMoveTrackingClient {
|
|
588
588
|
private http;
|
|
589
589
|
private baseUrl;
|
|
590
590
|
protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
|
|
@@ -604,10 +604,10 @@ export declare class TrackingClient extends AuthorizedApiBase implements ITracki
|
|
|
604
604
|
createLabel(workOrderId: string, palletCount: number | undefined): Promise<FileResponse>;
|
|
605
605
|
protected processCreateLabel(response: Response): Promise<FileResponse>;
|
|
606
606
|
}
|
|
607
|
-
export interface
|
|
607
|
+
export interface IMoveWorkOrdersClient {
|
|
608
608
|
searchWorkOrders(input: string | null | undefined): Promise<SearchWorkOrderDto[]>;
|
|
609
609
|
}
|
|
610
|
-
export declare class
|
|
610
|
+
export declare class MoveWorkOrdersClient extends AuthorizedApiBase implements IMoveWorkOrdersClient {
|
|
611
611
|
private http;
|
|
612
612
|
private baseUrl;
|
|
613
613
|
protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
|
|
@@ -4076,46 +4076,63 @@ export interface IListTraceWorkordersRequest {
|
|
|
4076
4076
|
searchType?: SearchTypeDto | null;
|
|
4077
4077
|
continuationToken?: string | null;
|
|
4078
4078
|
}
|
|
4079
|
-
export declare class
|
|
4080
|
-
results:
|
|
4079
|
+
export declare class BookingListDto implements IBookingListDto {
|
|
4080
|
+
results: BookingDto[];
|
|
4081
4081
|
continuationToken?: string | null;
|
|
4082
|
-
constructor(data?:
|
|
4082
|
+
constructor(data?: IBookingListDto);
|
|
4083
4083
|
init(_data?: any): void;
|
|
4084
|
-
static fromJS(data: any):
|
|
4084
|
+
static fromJS(data: any): BookingListDto;
|
|
4085
4085
|
toJSON(data?: any): any;
|
|
4086
4086
|
}
|
|
4087
|
-
export interface
|
|
4088
|
-
results:
|
|
4087
|
+
export interface IBookingListDto {
|
|
4088
|
+
results: BookingDto[];
|
|
4089
4089
|
continuationToken?: string | null;
|
|
4090
4090
|
}
|
|
4091
|
-
export declare class
|
|
4091
|
+
export declare class BookingDto implements IBookingDto {
|
|
4092
4092
|
bookingId: string;
|
|
4093
4093
|
bookingType: BookingTypeDto;
|
|
4094
|
-
|
|
4094
|
+
status: BookingStatusDto;
|
|
4095
|
+
items: BookingItemDto[];
|
|
4095
4096
|
fromLocation: LocationDto;
|
|
4096
4097
|
toLocation: LocationDto;
|
|
4097
|
-
|
|
4098
|
+
created: Date;
|
|
4099
|
+
createdBy: string;
|
|
4100
|
+
createdById: string;
|
|
4101
|
+
updatedBy?: string | null;
|
|
4102
|
+
updatedById?: string | null;
|
|
4103
|
+
constructor(data?: IBookingDto);
|
|
4098
4104
|
init(_data?: any): void;
|
|
4099
|
-
static fromJS(data: any):
|
|
4105
|
+
static fromJS(data: any): BookingDto;
|
|
4100
4106
|
toJSON(data?: any): any;
|
|
4101
4107
|
}
|
|
4102
|
-
export interface
|
|
4108
|
+
export interface IBookingDto {
|
|
4103
4109
|
bookingId: string;
|
|
4104
4110
|
bookingType: BookingTypeDto;
|
|
4105
|
-
|
|
4111
|
+
status: BookingStatusDto;
|
|
4112
|
+
items: BookingItemDto[];
|
|
4106
4113
|
fromLocation: LocationDto;
|
|
4107
4114
|
toLocation: LocationDto;
|
|
4115
|
+
created: Date;
|
|
4116
|
+
createdBy: string;
|
|
4117
|
+
createdById: string;
|
|
4118
|
+
updatedBy?: string | null;
|
|
4119
|
+
updatedById?: string | null;
|
|
4108
4120
|
}
|
|
4109
4121
|
export type BookingTypeDto = "NormalTruck" | "LargeTruck" | "SideLoadingTruck";
|
|
4110
|
-
export
|
|
4122
|
+
export type BookingStatusDto = "Pending" | "Cancelled" | "InProgress" | "Delivered";
|
|
4123
|
+
export declare class BookingItemDto implements IBookingItemDto {
|
|
4111
4124
|
trackingId: string;
|
|
4112
|
-
|
|
4125
|
+
workOrderId: string;
|
|
4126
|
+
material?: string | null;
|
|
4127
|
+
constructor(data?: IBookingItemDto);
|
|
4113
4128
|
init(_data?: any): void;
|
|
4114
|
-
static fromJS(data: any):
|
|
4129
|
+
static fromJS(data: any): BookingItemDto;
|
|
4115
4130
|
toJSON(data?: any): any;
|
|
4116
4131
|
}
|
|
4117
|
-
export interface
|
|
4132
|
+
export interface IBookingItemDto {
|
|
4118
4133
|
trackingId: string;
|
|
4134
|
+
workOrderId: string;
|
|
4135
|
+
material?: string | null;
|
|
4119
4136
|
}
|
|
4120
4137
|
export declare class LocationDto implements ILocationDto {
|
|
4121
4138
|
locationId: string;
|
|
@@ -4230,6 +4247,7 @@ export declare class TrackingEventDto implements ITrackingEventDto {
|
|
|
4230
4247
|
id: number;
|
|
4231
4248
|
created: Date;
|
|
4232
4249
|
createdBy: string;
|
|
4250
|
+
createdById: string;
|
|
4233
4251
|
location: LocationDto;
|
|
4234
4252
|
status: TrackingStatusDto;
|
|
4235
4253
|
bookingId?: string | null;
|
|
@@ -4243,6 +4261,7 @@ export interface ITrackingEventDto {
|
|
|
4243
4261
|
id: number;
|
|
4244
4262
|
created: Date;
|
|
4245
4263
|
createdBy: string;
|
|
4264
|
+
createdById: string;
|
|
4246
4265
|
location: LocationDto;
|
|
4247
4266
|
status: TrackingStatusDto;
|
|
4248
4267
|
bookingId?: string | null;
|
|
@@ -4293,6 +4312,7 @@ export interface ITrackingHistoryUpdateDto {
|
|
|
4293
4312
|
}
|
|
4294
4313
|
export declare class SearchWorkOrderDto implements ISearchWorkOrderDto {
|
|
4295
4314
|
workOrderId: string;
|
|
4315
|
+
trackingIds: string[];
|
|
4296
4316
|
partName?: string | null;
|
|
4297
4317
|
partNumber?: string | null;
|
|
4298
4318
|
constructor(data?: ISearchWorkOrderDto);
|
|
@@ -4302,6 +4322,7 @@ export declare class SearchWorkOrderDto implements ISearchWorkOrderDto {
|
|
|
4302
4322
|
}
|
|
4303
4323
|
export interface ISearchWorkOrderDto {
|
|
4304
4324
|
workOrderId: string;
|
|
4325
|
+
trackingIds: string[];
|
|
4305
4326
|
partName?: string | null;
|
|
4306
4327
|
partNumber?: string | null;
|
|
4307
4328
|
}
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -3456,7 +3456,7 @@ export class TraceClient extends AuthorizedApiBase {
|
|
|
3456
3456
|
return Promise.resolve(null);
|
|
3457
3457
|
}
|
|
3458
3458
|
}
|
|
3459
|
-
export class
|
|
3459
|
+
export class MoveBookingClient extends AuthorizedApiBase {
|
|
3460
3460
|
constructor(configuration, baseUrl, http) {
|
|
3461
3461
|
super(configuration);
|
|
3462
3462
|
this.jsonParseReviver = undefined;
|
|
@@ -3492,7 +3492,7 @@ export class BookingClient extends AuthorizedApiBase {
|
|
|
3492
3492
|
return response.text().then((_responseText) => {
|
|
3493
3493
|
let result200 = null;
|
|
3494
3494
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3495
|
-
result200 =
|
|
3495
|
+
result200 = BookingListDto.fromJS(resultData200);
|
|
3496
3496
|
return result200;
|
|
3497
3497
|
});
|
|
3498
3498
|
}
|
|
@@ -3532,7 +3532,7 @@ export class BookingClient extends AuthorizedApiBase {
|
|
|
3532
3532
|
return response.text().then((_responseText) => {
|
|
3533
3533
|
let result200 = null;
|
|
3534
3534
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3535
|
-
result200 =
|
|
3535
|
+
result200 = BookingDto.fromJS(resultData200);
|
|
3536
3536
|
return result200;
|
|
3537
3537
|
});
|
|
3538
3538
|
}
|
|
@@ -3555,6 +3555,7 @@ export class BookingClient extends AuthorizedApiBase {
|
|
|
3555
3555
|
method: "PUT",
|
|
3556
3556
|
headers: {
|
|
3557
3557
|
"Content-Type": "application/json",
|
|
3558
|
+
"Accept": "application/json"
|
|
3558
3559
|
}
|
|
3559
3560
|
};
|
|
3560
3561
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
@@ -3570,9 +3571,12 @@ export class BookingClient extends AuthorizedApiBase {
|
|
|
3570
3571
|
response.headers.forEach((v, k) => _headers[k] = v);
|
|
3571
3572
|
}
|
|
3572
3573
|
;
|
|
3573
|
-
if (status ===
|
|
3574
|
+
if (status === 200) {
|
|
3574
3575
|
return response.text().then((_responseText) => {
|
|
3575
|
-
|
|
3576
|
+
let result200 = null;
|
|
3577
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3578
|
+
result200 = BookingDto.fromJS(resultData200);
|
|
3579
|
+
return result200;
|
|
3576
3580
|
});
|
|
3577
3581
|
}
|
|
3578
3582
|
else if (status !== 200 && status !== 204) {
|
|
@@ -3591,6 +3595,7 @@ export class BookingClient extends AuthorizedApiBase {
|
|
|
3591
3595
|
method: "POST",
|
|
3592
3596
|
headers: {
|
|
3593
3597
|
"Content-Type": "application/json",
|
|
3598
|
+
"Accept": "application/json"
|
|
3594
3599
|
}
|
|
3595
3600
|
};
|
|
3596
3601
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
@@ -3606,9 +3611,12 @@ export class BookingClient extends AuthorizedApiBase {
|
|
|
3606
3611
|
response.headers.forEach((v, k) => _headers[k] = v);
|
|
3607
3612
|
}
|
|
3608
3613
|
;
|
|
3609
|
-
if (status ===
|
|
3614
|
+
if (status === 200) {
|
|
3610
3615
|
return response.text().then((_responseText) => {
|
|
3611
|
-
|
|
3616
|
+
let result200 = null;
|
|
3617
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3618
|
+
result200 = BookingDto.fromJS(resultData200);
|
|
3619
|
+
return result200;
|
|
3612
3620
|
});
|
|
3613
3621
|
}
|
|
3614
3622
|
else if (status !== 200 && status !== 204) {
|
|
@@ -3627,6 +3635,7 @@ export class BookingClient extends AuthorizedApiBase {
|
|
|
3627
3635
|
method: "POST",
|
|
3628
3636
|
headers: {
|
|
3629
3637
|
"Content-Type": "application/json",
|
|
3638
|
+
"Accept": "application/json"
|
|
3630
3639
|
}
|
|
3631
3640
|
};
|
|
3632
3641
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
@@ -3642,9 +3651,12 @@ export class BookingClient extends AuthorizedApiBase {
|
|
|
3642
3651
|
response.headers.forEach((v, k) => _headers[k] = v);
|
|
3643
3652
|
}
|
|
3644
3653
|
;
|
|
3645
|
-
if (status ===
|
|
3654
|
+
if (status === 200) {
|
|
3646
3655
|
return response.text().then((_responseText) => {
|
|
3647
|
-
|
|
3656
|
+
let result200 = null;
|
|
3657
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3658
|
+
result200 = BookingDto.fromJS(resultData200);
|
|
3659
|
+
return result200;
|
|
3648
3660
|
});
|
|
3649
3661
|
}
|
|
3650
3662
|
else if (status !== 200 && status !== 204) {
|
|
@@ -3663,6 +3675,7 @@ export class BookingClient extends AuthorizedApiBase {
|
|
|
3663
3675
|
method: "POST",
|
|
3664
3676
|
headers: {
|
|
3665
3677
|
"Content-Type": "application/json",
|
|
3678
|
+
"Accept": "application/json"
|
|
3666
3679
|
}
|
|
3667
3680
|
};
|
|
3668
3681
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
@@ -3678,9 +3691,12 @@ export class BookingClient extends AuthorizedApiBase {
|
|
|
3678
3691
|
response.headers.forEach((v, k) => _headers[k] = v);
|
|
3679
3692
|
}
|
|
3680
3693
|
;
|
|
3681
|
-
if (status ===
|
|
3694
|
+
if (status === 200) {
|
|
3682
3695
|
return response.text().then((_responseText) => {
|
|
3683
|
-
|
|
3696
|
+
let result200 = null;
|
|
3697
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3698
|
+
result200 = BookingDto.fromJS(resultData200);
|
|
3699
|
+
return result200;
|
|
3684
3700
|
});
|
|
3685
3701
|
}
|
|
3686
3702
|
else if (status !== 200 && status !== 204) {
|
|
@@ -3699,6 +3715,7 @@ export class BookingClient extends AuthorizedApiBase {
|
|
|
3699
3715
|
method: "POST",
|
|
3700
3716
|
headers: {
|
|
3701
3717
|
"Content-Type": "application/json",
|
|
3718
|
+
"Accept": "application/json"
|
|
3702
3719
|
}
|
|
3703
3720
|
};
|
|
3704
3721
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
@@ -3714,9 +3731,12 @@ export class BookingClient extends AuthorizedApiBase {
|
|
|
3714
3731
|
response.headers.forEach((v, k) => _headers[k] = v);
|
|
3715
3732
|
}
|
|
3716
3733
|
;
|
|
3717
|
-
if (status ===
|
|
3734
|
+
if (status === 200) {
|
|
3718
3735
|
return response.text().then((_responseText) => {
|
|
3719
|
-
|
|
3736
|
+
let result200 = null;
|
|
3737
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3738
|
+
result200 = BookingDto.fromJS(resultData200);
|
|
3739
|
+
return result200;
|
|
3720
3740
|
});
|
|
3721
3741
|
}
|
|
3722
3742
|
else if (status !== 200 && status !== 204) {
|
|
@@ -3727,7 +3747,7 @@ export class BookingClient extends AuthorizedApiBase {
|
|
|
3727
3747
|
return Promise.resolve(null);
|
|
3728
3748
|
}
|
|
3729
3749
|
}
|
|
3730
|
-
export class
|
|
3750
|
+
export class MoveLocationsClient extends AuthorizedApiBase {
|
|
3731
3751
|
constructor(configuration, baseUrl, http) {
|
|
3732
3752
|
super(configuration);
|
|
3733
3753
|
this.jsonParseReviver = undefined;
|
|
@@ -3829,7 +3849,7 @@ export class LocationsClient extends AuthorizedApiBase {
|
|
|
3829
3849
|
return Promise.resolve(null);
|
|
3830
3850
|
}
|
|
3831
3851
|
}
|
|
3832
|
-
export class
|
|
3852
|
+
export class MoveTrackingClient extends AuthorizedApiBase {
|
|
3833
3853
|
constructor(configuration, baseUrl, http) {
|
|
3834
3854
|
super(configuration);
|
|
3835
3855
|
this.jsonParseReviver = undefined;
|
|
@@ -4074,7 +4094,7 @@ export class TrackingClient extends AuthorizedApiBase {
|
|
|
4074
4094
|
return Promise.resolve(null);
|
|
4075
4095
|
}
|
|
4076
4096
|
}
|
|
4077
|
-
export class
|
|
4097
|
+
export class MoveWorkOrdersClient extends AuthorizedApiBase {
|
|
4078
4098
|
constructor(configuration, baseUrl, http) {
|
|
4079
4099
|
super(configuration);
|
|
4080
4100
|
this.jsonParseReviver = undefined;
|
|
@@ -22133,7 +22153,7 @@ export class ListTraceWorkordersRequest {
|
|
|
22133
22153
|
return data;
|
|
22134
22154
|
}
|
|
22135
22155
|
}
|
|
22136
|
-
export class
|
|
22156
|
+
export class BookingListDto {
|
|
22137
22157
|
constructor(data) {
|
|
22138
22158
|
if (data) {
|
|
22139
22159
|
for (var property in data) {
|
|
@@ -22150,14 +22170,14 @@ export class BookingResponseListDto {
|
|
|
22150
22170
|
if (Array.isArray(_data["results"])) {
|
|
22151
22171
|
this.results = [];
|
|
22152
22172
|
for (let item of _data["results"])
|
|
22153
|
-
this.results.push(
|
|
22173
|
+
this.results.push(BookingDto.fromJS(item));
|
|
22154
22174
|
}
|
|
22155
22175
|
this.continuationToken = _data["continuationToken"];
|
|
22156
22176
|
}
|
|
22157
22177
|
}
|
|
22158
22178
|
static fromJS(data) {
|
|
22159
22179
|
data = typeof data === 'object' ? data : {};
|
|
22160
|
-
let result = new
|
|
22180
|
+
let result = new BookingListDto();
|
|
22161
22181
|
result.init(data);
|
|
22162
22182
|
return result;
|
|
22163
22183
|
}
|
|
@@ -22172,7 +22192,7 @@ export class BookingResponseListDto {
|
|
|
22172
22192
|
return data;
|
|
22173
22193
|
}
|
|
22174
22194
|
}
|
|
22175
|
-
export class
|
|
22195
|
+
export class BookingDto {
|
|
22176
22196
|
constructor(data) {
|
|
22177
22197
|
if (data) {
|
|
22178
22198
|
for (var property in data) {
|
|
@@ -22190,18 +22210,24 @@ export class BookingResponseDto {
|
|
|
22190
22210
|
if (_data) {
|
|
22191
22211
|
this.bookingId = _data["bookingId"];
|
|
22192
22212
|
this.bookingType = _data["bookingType"];
|
|
22213
|
+
this.status = _data["status"];
|
|
22193
22214
|
if (Array.isArray(_data["items"])) {
|
|
22194
22215
|
this.items = [];
|
|
22195
22216
|
for (let item of _data["items"])
|
|
22196
|
-
this.items.push(
|
|
22217
|
+
this.items.push(BookingItemDto.fromJS(item));
|
|
22197
22218
|
}
|
|
22198
22219
|
this.fromLocation = _data["fromLocation"] ? LocationDto.fromJS(_data["fromLocation"]) : new LocationDto();
|
|
22199
22220
|
this.toLocation = _data["toLocation"] ? LocationDto.fromJS(_data["toLocation"]) : new LocationDto();
|
|
22221
|
+
this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined;
|
|
22222
|
+
this.createdBy = _data["createdBy"];
|
|
22223
|
+
this.createdById = _data["createdById"];
|
|
22224
|
+
this.updatedBy = _data["updatedBy"];
|
|
22225
|
+
this.updatedById = _data["updatedById"];
|
|
22200
22226
|
}
|
|
22201
22227
|
}
|
|
22202
22228
|
static fromJS(data) {
|
|
22203
22229
|
data = typeof data === 'object' ? data : {};
|
|
22204
|
-
let result = new
|
|
22230
|
+
let result = new BookingDto();
|
|
22205
22231
|
result.init(data);
|
|
22206
22232
|
return result;
|
|
22207
22233
|
}
|
|
@@ -22209,6 +22235,7 @@ export class BookingResponseDto {
|
|
|
22209
22235
|
data = typeof data === 'object' ? data : {};
|
|
22210
22236
|
data["bookingId"] = this.bookingId;
|
|
22211
22237
|
data["bookingType"] = this.bookingType;
|
|
22238
|
+
data["status"] = this.status;
|
|
22212
22239
|
if (Array.isArray(this.items)) {
|
|
22213
22240
|
data["items"] = [];
|
|
22214
22241
|
for (let item of this.items)
|
|
@@ -22216,10 +22243,15 @@ export class BookingResponseDto {
|
|
|
22216
22243
|
}
|
|
22217
22244
|
data["fromLocation"] = this.fromLocation ? this.fromLocation.toJSON() : undefined;
|
|
22218
22245
|
data["toLocation"] = this.toLocation ? this.toLocation.toJSON() : undefined;
|
|
22246
|
+
data["created"] = this.created ? this.created.toISOString() : undefined;
|
|
22247
|
+
data["createdBy"] = this.createdBy;
|
|
22248
|
+
data["createdById"] = this.createdById;
|
|
22249
|
+
data["updatedBy"] = this.updatedBy;
|
|
22250
|
+
data["updatedById"] = this.updatedById;
|
|
22219
22251
|
return data;
|
|
22220
22252
|
}
|
|
22221
22253
|
}
|
|
22222
|
-
export class
|
|
22254
|
+
export class BookingItemDto {
|
|
22223
22255
|
constructor(data) {
|
|
22224
22256
|
if (data) {
|
|
22225
22257
|
for (var property in data) {
|
|
@@ -22231,17 +22263,21 @@ export class BookingItemResponseDto {
|
|
|
22231
22263
|
init(_data) {
|
|
22232
22264
|
if (_data) {
|
|
22233
22265
|
this.trackingId = _data["trackingId"];
|
|
22266
|
+
this.workOrderId = _data["workOrderId"];
|
|
22267
|
+
this.material = _data["material"];
|
|
22234
22268
|
}
|
|
22235
22269
|
}
|
|
22236
22270
|
static fromJS(data) {
|
|
22237
22271
|
data = typeof data === 'object' ? data : {};
|
|
22238
|
-
let result = new
|
|
22272
|
+
let result = new BookingItemDto();
|
|
22239
22273
|
result.init(data);
|
|
22240
22274
|
return result;
|
|
22241
22275
|
}
|
|
22242
22276
|
toJSON(data) {
|
|
22243
22277
|
data = typeof data === 'object' ? data : {};
|
|
22244
22278
|
data["trackingId"] = this.trackingId;
|
|
22279
|
+
data["workOrderId"] = this.workOrderId;
|
|
22280
|
+
data["material"] = this.material;
|
|
22245
22281
|
return data;
|
|
22246
22282
|
}
|
|
22247
22283
|
}
|
|
@@ -22528,6 +22564,7 @@ export class TrackingEventDto {
|
|
|
22528
22564
|
this.id = _data["id"];
|
|
22529
22565
|
this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined;
|
|
22530
22566
|
this.createdBy = _data["createdBy"];
|
|
22567
|
+
this.createdById = _data["createdById"];
|
|
22531
22568
|
this.location = _data["location"] ? LocationDto.fromJS(_data["location"]) : new LocationDto();
|
|
22532
22569
|
this.status = _data["status"];
|
|
22533
22570
|
this.bookingId = _data["bookingId"];
|
|
@@ -22545,6 +22582,7 @@ export class TrackingEventDto {
|
|
|
22545
22582
|
data["id"] = this.id;
|
|
22546
22583
|
data["created"] = this.created ? this.created.toISOString() : undefined;
|
|
22547
22584
|
data["createdBy"] = this.createdBy;
|
|
22585
|
+
data["createdById"] = this.createdById;
|
|
22548
22586
|
data["location"] = this.location ? this.location.toJSON() : undefined;
|
|
22549
22587
|
data["status"] = this.status;
|
|
22550
22588
|
data["bookingId"] = this.bookingId;
|
|
@@ -22662,10 +22700,18 @@ export class SearchWorkOrderDto {
|
|
|
22662
22700
|
this[property] = data[property];
|
|
22663
22701
|
}
|
|
22664
22702
|
}
|
|
22703
|
+
if (!data) {
|
|
22704
|
+
this.trackingIds = [];
|
|
22705
|
+
}
|
|
22665
22706
|
}
|
|
22666
22707
|
init(_data) {
|
|
22667
22708
|
if (_data) {
|
|
22668
22709
|
this.workOrderId = _data["workOrderId"];
|
|
22710
|
+
if (Array.isArray(_data["trackingIds"])) {
|
|
22711
|
+
this.trackingIds = [];
|
|
22712
|
+
for (let item of _data["trackingIds"])
|
|
22713
|
+
this.trackingIds.push(item);
|
|
22714
|
+
}
|
|
22669
22715
|
this.partName = _data["partName"];
|
|
22670
22716
|
this.partNumber = _data["partNumber"];
|
|
22671
22717
|
}
|
|
@@ -22679,6 +22725,11 @@ export class SearchWorkOrderDto {
|
|
|
22679
22725
|
toJSON(data) {
|
|
22680
22726
|
data = typeof data === 'object' ? data : {};
|
|
22681
22727
|
data["workOrderId"] = this.workOrderId;
|
|
22728
|
+
if (Array.isArray(this.trackingIds)) {
|
|
22729
|
+
data["trackingIds"] = [];
|
|
22730
|
+
for (let item of this.trackingIds)
|
|
22731
|
+
data["trackingIds"].push(item);
|
|
22732
|
+
}
|
|
22682
22733
|
data["partName"] = this.partName;
|
|
22683
22734
|
data["partNumber"] = this.partNumber;
|
|
22684
22735
|
return data;
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -3745,24 +3745,24 @@ export class TraceClient extends AuthorizedApiBase implements ITraceClient {
|
|
|
3745
3745
|
}
|
|
3746
3746
|
}
|
|
3747
3747
|
|
|
3748
|
-
export interface
|
|
3748
|
+
export interface IMoveBookingClient {
|
|
3749
3749
|
|
|
3750
|
-
listBookings(request: BookingRequestListDto): Promise<
|
|
3750
|
+
listBookings(request: BookingRequestListDto): Promise<BookingListDto>;
|
|
3751
3751
|
|
|
3752
|
-
getBooking(bookingId: string): Promise<
|
|
3752
|
+
getBooking(bookingId: string): Promise<BookingDto>;
|
|
3753
3753
|
|
|
3754
|
-
updateBooking(bookingId: string, bookingRequest: BookingRequestDto): Promise<
|
|
3754
|
+
updateBooking(bookingId: string, bookingRequest: BookingRequestDto): Promise<BookingDto>;
|
|
3755
3755
|
|
|
3756
|
-
createBooking(bookingRequest: BookingRequestDto): Promise<
|
|
3756
|
+
createBooking(bookingRequest: BookingRequestDto): Promise<BookingDto>;
|
|
3757
3757
|
|
|
3758
|
-
cancelBooking(bookingUpdate: BookingUpdateDto): Promise<
|
|
3758
|
+
cancelBooking(bookingUpdate: BookingUpdateDto): Promise<BookingDto>;
|
|
3759
3759
|
|
|
3760
|
-
startDelivery(bookingUpdate: BookingUpdateDto): Promise<
|
|
3760
|
+
startDelivery(bookingUpdate: BookingUpdateDto): Promise<BookingDto>;
|
|
3761
3761
|
|
|
3762
|
-
finishDelivery(bookingUpdate: BookingDeliveryUpdateDto): Promise<
|
|
3762
|
+
finishDelivery(bookingUpdate: BookingDeliveryUpdateDto): Promise<BookingDto>;
|
|
3763
3763
|
}
|
|
3764
3764
|
|
|
3765
|
-
export class
|
|
3765
|
+
export class MoveBookingClient extends AuthorizedApiBase implements IMoveBookingClient {
|
|
3766
3766
|
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
|
|
3767
3767
|
private baseUrl: string;
|
|
3768
3768
|
protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
|
|
@@ -3773,7 +3773,7 @@ export class BookingClient extends AuthorizedApiBase implements IBookingClient {
|
|
|
3773
3773
|
this.baseUrl = baseUrl ?? "";
|
|
3774
3774
|
}
|
|
3775
3775
|
|
|
3776
|
-
listBookings(request: BookingRequestListDto): Promise<
|
|
3776
|
+
listBookings(request: BookingRequestListDto): Promise<BookingListDto> {
|
|
3777
3777
|
let url_ = this.baseUrl + "/move/booking/list";
|
|
3778
3778
|
url_ = url_.replace(/[?&]$/, "");
|
|
3779
3779
|
|
|
@@ -3795,14 +3795,14 @@ export class BookingClient extends AuthorizedApiBase implements IBookingClient {
|
|
|
3795
3795
|
});
|
|
3796
3796
|
}
|
|
3797
3797
|
|
|
3798
|
-
protected processListBookings(response: Response): Promise<
|
|
3798
|
+
protected processListBookings(response: Response): Promise<BookingListDto> {
|
|
3799
3799
|
const status = response.status;
|
|
3800
3800
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
3801
3801
|
if (status === 200) {
|
|
3802
3802
|
return response.text().then((_responseText) => {
|
|
3803
3803
|
let result200: any = null;
|
|
3804
3804
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3805
|
-
result200 =
|
|
3805
|
+
result200 = BookingListDto.fromJS(resultData200);
|
|
3806
3806
|
return result200;
|
|
3807
3807
|
});
|
|
3808
3808
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -3810,10 +3810,10 @@ export class BookingClient extends AuthorizedApiBase implements IBookingClient {
|
|
|
3810
3810
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
3811
3811
|
});
|
|
3812
3812
|
}
|
|
3813
|
-
return Promise.resolve<
|
|
3813
|
+
return Promise.resolve<BookingListDto>(null as any);
|
|
3814
3814
|
}
|
|
3815
3815
|
|
|
3816
|
-
getBooking(bookingId: string): Promise<
|
|
3816
|
+
getBooking(bookingId: string): Promise<BookingDto> {
|
|
3817
3817
|
let url_ = this.baseUrl + "/move/booking/{bookingId}";
|
|
3818
3818
|
if (bookingId === undefined || bookingId === null)
|
|
3819
3819
|
throw new Error("The parameter 'bookingId' must be defined.");
|
|
@@ -3834,14 +3834,14 @@ export class BookingClient extends AuthorizedApiBase implements IBookingClient {
|
|
|
3834
3834
|
});
|
|
3835
3835
|
}
|
|
3836
3836
|
|
|
3837
|
-
protected processGetBooking(response: Response): Promise<
|
|
3837
|
+
protected processGetBooking(response: Response): Promise<BookingDto> {
|
|
3838
3838
|
const status = response.status;
|
|
3839
3839
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
3840
3840
|
if (status === 200) {
|
|
3841
3841
|
return response.text().then((_responseText) => {
|
|
3842
3842
|
let result200: any = null;
|
|
3843
3843
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3844
|
-
result200 =
|
|
3844
|
+
result200 = BookingDto.fromJS(resultData200);
|
|
3845
3845
|
return result200;
|
|
3846
3846
|
});
|
|
3847
3847
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -3849,10 +3849,10 @@ export class BookingClient extends AuthorizedApiBase implements IBookingClient {
|
|
|
3849
3849
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
3850
3850
|
});
|
|
3851
3851
|
}
|
|
3852
|
-
return Promise.resolve<
|
|
3852
|
+
return Promise.resolve<BookingDto>(null as any);
|
|
3853
3853
|
}
|
|
3854
3854
|
|
|
3855
|
-
updateBooking(bookingId: string, bookingRequest: BookingRequestDto): Promise<
|
|
3855
|
+
updateBooking(bookingId: string, bookingRequest: BookingRequestDto): Promise<BookingDto> {
|
|
3856
3856
|
let url_ = this.baseUrl + "/move/booking/{bookingId}";
|
|
3857
3857
|
if (bookingId === undefined || bookingId === null)
|
|
3858
3858
|
throw new Error("The parameter 'bookingId' must be defined.");
|
|
@@ -3866,6 +3866,7 @@ export class BookingClient extends AuthorizedApiBase implements IBookingClient {
|
|
|
3866
3866
|
method: "PUT",
|
|
3867
3867
|
headers: {
|
|
3868
3868
|
"Content-Type": "application/json",
|
|
3869
|
+
"Accept": "application/json"
|
|
3869
3870
|
}
|
|
3870
3871
|
};
|
|
3871
3872
|
|
|
@@ -3876,22 +3877,25 @@ export class BookingClient extends AuthorizedApiBase implements IBookingClient {
|
|
|
3876
3877
|
});
|
|
3877
3878
|
}
|
|
3878
3879
|
|
|
3879
|
-
protected processUpdateBooking(response: Response): Promise<
|
|
3880
|
+
protected processUpdateBooking(response: Response): Promise<BookingDto> {
|
|
3880
3881
|
const status = response.status;
|
|
3881
3882
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
3882
|
-
if (status ===
|
|
3883
|
+
if (status === 200) {
|
|
3883
3884
|
return response.text().then((_responseText) => {
|
|
3884
|
-
|
|
3885
|
+
let result200: any = null;
|
|
3886
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3887
|
+
result200 = BookingDto.fromJS(resultData200);
|
|
3888
|
+
return result200;
|
|
3885
3889
|
});
|
|
3886
3890
|
} else if (status !== 200 && status !== 204) {
|
|
3887
3891
|
return response.text().then((_responseText) => {
|
|
3888
3892
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
3889
3893
|
});
|
|
3890
3894
|
}
|
|
3891
|
-
return Promise.resolve<
|
|
3895
|
+
return Promise.resolve<BookingDto>(null as any);
|
|
3892
3896
|
}
|
|
3893
3897
|
|
|
3894
|
-
createBooking(bookingRequest: BookingRequestDto): Promise<
|
|
3898
|
+
createBooking(bookingRequest: BookingRequestDto): Promise<BookingDto> {
|
|
3895
3899
|
let url_ = this.baseUrl + "/move/booking/book";
|
|
3896
3900
|
url_ = url_.replace(/[?&]$/, "");
|
|
3897
3901
|
|
|
@@ -3902,6 +3906,7 @@ export class BookingClient extends AuthorizedApiBase implements IBookingClient {
|
|
|
3902
3906
|
method: "POST",
|
|
3903
3907
|
headers: {
|
|
3904
3908
|
"Content-Type": "application/json",
|
|
3909
|
+
"Accept": "application/json"
|
|
3905
3910
|
}
|
|
3906
3911
|
};
|
|
3907
3912
|
|
|
@@ -3912,22 +3917,25 @@ export class BookingClient extends AuthorizedApiBase implements IBookingClient {
|
|
|
3912
3917
|
});
|
|
3913
3918
|
}
|
|
3914
3919
|
|
|
3915
|
-
protected processCreateBooking(response: Response): Promise<
|
|
3920
|
+
protected processCreateBooking(response: Response): Promise<BookingDto> {
|
|
3916
3921
|
const status = response.status;
|
|
3917
3922
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
3918
|
-
if (status ===
|
|
3923
|
+
if (status === 200) {
|
|
3919
3924
|
return response.text().then((_responseText) => {
|
|
3920
|
-
|
|
3925
|
+
let result200: any = null;
|
|
3926
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3927
|
+
result200 = BookingDto.fromJS(resultData200);
|
|
3928
|
+
return result200;
|
|
3921
3929
|
});
|
|
3922
3930
|
} else if (status !== 200 && status !== 204) {
|
|
3923
3931
|
return response.text().then((_responseText) => {
|
|
3924
3932
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
3925
3933
|
});
|
|
3926
3934
|
}
|
|
3927
|
-
return Promise.resolve<
|
|
3935
|
+
return Promise.resolve<BookingDto>(null as any);
|
|
3928
3936
|
}
|
|
3929
3937
|
|
|
3930
|
-
cancelBooking(bookingUpdate: BookingUpdateDto): Promise<
|
|
3938
|
+
cancelBooking(bookingUpdate: BookingUpdateDto): Promise<BookingDto> {
|
|
3931
3939
|
let url_ = this.baseUrl + "/move/booking/cancel";
|
|
3932
3940
|
url_ = url_.replace(/[?&]$/, "");
|
|
3933
3941
|
|
|
@@ -3938,6 +3946,7 @@ export class BookingClient extends AuthorizedApiBase implements IBookingClient {
|
|
|
3938
3946
|
method: "POST",
|
|
3939
3947
|
headers: {
|
|
3940
3948
|
"Content-Type": "application/json",
|
|
3949
|
+
"Accept": "application/json"
|
|
3941
3950
|
}
|
|
3942
3951
|
};
|
|
3943
3952
|
|
|
@@ -3948,22 +3957,25 @@ export class BookingClient extends AuthorizedApiBase implements IBookingClient {
|
|
|
3948
3957
|
});
|
|
3949
3958
|
}
|
|
3950
3959
|
|
|
3951
|
-
protected processCancelBooking(response: Response): Promise<
|
|
3960
|
+
protected processCancelBooking(response: Response): Promise<BookingDto> {
|
|
3952
3961
|
const status = response.status;
|
|
3953
3962
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
3954
|
-
if (status ===
|
|
3963
|
+
if (status === 200) {
|
|
3955
3964
|
return response.text().then((_responseText) => {
|
|
3956
|
-
|
|
3965
|
+
let result200: any = null;
|
|
3966
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3967
|
+
result200 = BookingDto.fromJS(resultData200);
|
|
3968
|
+
return result200;
|
|
3957
3969
|
});
|
|
3958
3970
|
} else if (status !== 200 && status !== 204) {
|
|
3959
3971
|
return response.text().then((_responseText) => {
|
|
3960
3972
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
3961
3973
|
});
|
|
3962
3974
|
}
|
|
3963
|
-
return Promise.resolve<
|
|
3975
|
+
return Promise.resolve<BookingDto>(null as any);
|
|
3964
3976
|
}
|
|
3965
3977
|
|
|
3966
|
-
startDelivery(bookingUpdate: BookingUpdateDto): Promise<
|
|
3978
|
+
startDelivery(bookingUpdate: BookingUpdateDto): Promise<BookingDto> {
|
|
3967
3979
|
let url_ = this.baseUrl + "/move/booking/startdelivery";
|
|
3968
3980
|
url_ = url_.replace(/[?&]$/, "");
|
|
3969
3981
|
|
|
@@ -3974,6 +3986,7 @@ export class BookingClient extends AuthorizedApiBase implements IBookingClient {
|
|
|
3974
3986
|
method: "POST",
|
|
3975
3987
|
headers: {
|
|
3976
3988
|
"Content-Type": "application/json",
|
|
3989
|
+
"Accept": "application/json"
|
|
3977
3990
|
}
|
|
3978
3991
|
};
|
|
3979
3992
|
|
|
@@ -3984,22 +3997,25 @@ export class BookingClient extends AuthorizedApiBase implements IBookingClient {
|
|
|
3984
3997
|
});
|
|
3985
3998
|
}
|
|
3986
3999
|
|
|
3987
|
-
protected processStartDelivery(response: Response): Promise<
|
|
4000
|
+
protected processStartDelivery(response: Response): Promise<BookingDto> {
|
|
3988
4001
|
const status = response.status;
|
|
3989
4002
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
3990
|
-
if (status ===
|
|
4003
|
+
if (status === 200) {
|
|
3991
4004
|
return response.text().then((_responseText) => {
|
|
3992
|
-
|
|
4005
|
+
let result200: any = null;
|
|
4006
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4007
|
+
result200 = BookingDto.fromJS(resultData200);
|
|
4008
|
+
return result200;
|
|
3993
4009
|
});
|
|
3994
4010
|
} else if (status !== 200 && status !== 204) {
|
|
3995
4011
|
return response.text().then((_responseText) => {
|
|
3996
4012
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
3997
4013
|
});
|
|
3998
4014
|
}
|
|
3999
|
-
return Promise.resolve<
|
|
4015
|
+
return Promise.resolve<BookingDto>(null as any);
|
|
4000
4016
|
}
|
|
4001
4017
|
|
|
4002
|
-
finishDelivery(bookingUpdate: BookingDeliveryUpdateDto): Promise<
|
|
4018
|
+
finishDelivery(bookingUpdate: BookingDeliveryUpdateDto): Promise<BookingDto> {
|
|
4003
4019
|
let url_ = this.baseUrl + "/move/booking/finishdelivery";
|
|
4004
4020
|
url_ = url_.replace(/[?&]$/, "");
|
|
4005
4021
|
|
|
@@ -4010,6 +4026,7 @@ export class BookingClient extends AuthorizedApiBase implements IBookingClient {
|
|
|
4010
4026
|
method: "POST",
|
|
4011
4027
|
headers: {
|
|
4012
4028
|
"Content-Type": "application/json",
|
|
4029
|
+
"Accept": "application/json"
|
|
4013
4030
|
}
|
|
4014
4031
|
};
|
|
4015
4032
|
|
|
@@ -4020,30 +4037,33 @@ export class BookingClient extends AuthorizedApiBase implements IBookingClient {
|
|
|
4020
4037
|
});
|
|
4021
4038
|
}
|
|
4022
4039
|
|
|
4023
|
-
protected processFinishDelivery(response: Response): Promise<
|
|
4040
|
+
protected processFinishDelivery(response: Response): Promise<BookingDto> {
|
|
4024
4041
|
const status = response.status;
|
|
4025
4042
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
4026
|
-
if (status ===
|
|
4043
|
+
if (status === 200) {
|
|
4027
4044
|
return response.text().then((_responseText) => {
|
|
4028
|
-
|
|
4045
|
+
let result200: any = null;
|
|
4046
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4047
|
+
result200 = BookingDto.fromJS(resultData200);
|
|
4048
|
+
return result200;
|
|
4029
4049
|
});
|
|
4030
4050
|
} else if (status !== 200 && status !== 204) {
|
|
4031
4051
|
return response.text().then((_responseText) => {
|
|
4032
4052
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
4033
4053
|
});
|
|
4034
4054
|
}
|
|
4035
|
-
return Promise.resolve<
|
|
4055
|
+
return Promise.resolve<BookingDto>(null as any);
|
|
4036
4056
|
}
|
|
4037
4057
|
}
|
|
4038
4058
|
|
|
4039
|
-
export interface
|
|
4059
|
+
export interface IMoveLocationsClient {
|
|
4040
4060
|
|
|
4041
4061
|
searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | undefined): Promise<LocationDto[]>;
|
|
4042
4062
|
|
|
4043
4063
|
suggestionsLocations(workOrderId: string | null | undefined, locationKinds: LocationKindDto[] | undefined): Promise<LocationDto[]>;
|
|
4044
4064
|
}
|
|
4045
4065
|
|
|
4046
|
-
export class
|
|
4066
|
+
export class MoveLocationsClient extends AuthorizedApiBase implements IMoveLocationsClient {
|
|
4047
4067
|
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
|
|
4048
4068
|
private baseUrl: string;
|
|
4049
4069
|
protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
|
|
@@ -4147,7 +4167,7 @@ export class LocationsClient extends AuthorizedApiBase implements ILocationsClie
|
|
|
4147
4167
|
}
|
|
4148
4168
|
}
|
|
4149
4169
|
|
|
4150
|
-
export interface
|
|
4170
|
+
export interface IMoveTrackingClient {
|
|
4151
4171
|
|
|
4152
4172
|
listTrackingHistory(trackingId: string): Promise<TrackingHistoryDto>;
|
|
4153
4173
|
|
|
@@ -4162,7 +4182,7 @@ export interface ITrackingClient {
|
|
|
4162
4182
|
createLabel(workOrderId: string, palletCount: number | undefined): Promise<FileResponse>;
|
|
4163
4183
|
}
|
|
4164
4184
|
|
|
4165
|
-
export class
|
|
4185
|
+
export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTrackingClient {
|
|
4166
4186
|
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
|
|
4167
4187
|
private baseUrl: string;
|
|
4168
4188
|
protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
|
|
@@ -4407,12 +4427,12 @@ export class TrackingClient extends AuthorizedApiBase implements ITrackingClient
|
|
|
4407
4427
|
}
|
|
4408
4428
|
}
|
|
4409
4429
|
|
|
4410
|
-
export interface
|
|
4430
|
+
export interface IMoveWorkOrdersClient {
|
|
4411
4431
|
|
|
4412
4432
|
searchWorkOrders(input: string | null | undefined): Promise<SearchWorkOrderDto[]>;
|
|
4413
4433
|
}
|
|
4414
4434
|
|
|
4415
|
-
export class
|
|
4435
|
+
export class MoveWorkOrdersClient extends AuthorizedApiBase implements IMoveWorkOrdersClient {
|
|
4416
4436
|
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
|
|
4417
4437
|
private baseUrl: string;
|
|
4418
4438
|
protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
|
|
@@ -25250,11 +25270,11 @@ export interface IListTraceWorkordersRequest {
|
|
|
25250
25270
|
continuationToken?: string | null;
|
|
25251
25271
|
}
|
|
25252
25272
|
|
|
25253
|
-
export class
|
|
25254
|
-
results!:
|
|
25273
|
+
export class BookingListDto implements IBookingListDto {
|
|
25274
|
+
results!: BookingDto[];
|
|
25255
25275
|
continuationToken?: string | null;
|
|
25256
25276
|
|
|
25257
|
-
constructor(data?:
|
|
25277
|
+
constructor(data?: IBookingListDto) {
|
|
25258
25278
|
if (data) {
|
|
25259
25279
|
for (var property in data) {
|
|
25260
25280
|
if (data.hasOwnProperty(property))
|
|
@@ -25271,15 +25291,15 @@ export class BookingResponseListDto implements IBookingResponseListDto {
|
|
|
25271
25291
|
if (Array.isArray(_data["results"])) {
|
|
25272
25292
|
this.results = [] as any;
|
|
25273
25293
|
for (let item of _data["results"])
|
|
25274
|
-
this.results!.push(
|
|
25294
|
+
this.results!.push(BookingDto.fromJS(item));
|
|
25275
25295
|
}
|
|
25276
25296
|
this.continuationToken = _data["continuationToken"];
|
|
25277
25297
|
}
|
|
25278
25298
|
}
|
|
25279
25299
|
|
|
25280
|
-
static fromJS(data: any):
|
|
25300
|
+
static fromJS(data: any): BookingListDto {
|
|
25281
25301
|
data = typeof data === 'object' ? data : {};
|
|
25282
|
-
let result = new
|
|
25302
|
+
let result = new BookingListDto();
|
|
25283
25303
|
result.init(data);
|
|
25284
25304
|
return result;
|
|
25285
25305
|
}
|
|
@@ -25296,19 +25316,25 @@ export class BookingResponseListDto implements IBookingResponseListDto {
|
|
|
25296
25316
|
}
|
|
25297
25317
|
}
|
|
25298
25318
|
|
|
25299
|
-
export interface
|
|
25300
|
-
results:
|
|
25319
|
+
export interface IBookingListDto {
|
|
25320
|
+
results: BookingDto[];
|
|
25301
25321
|
continuationToken?: string | null;
|
|
25302
25322
|
}
|
|
25303
25323
|
|
|
25304
|
-
export class
|
|
25324
|
+
export class BookingDto implements IBookingDto {
|
|
25305
25325
|
bookingId!: string;
|
|
25306
25326
|
bookingType!: BookingTypeDto;
|
|
25307
|
-
|
|
25327
|
+
status!: BookingStatusDto;
|
|
25328
|
+
items!: BookingItemDto[];
|
|
25308
25329
|
fromLocation!: LocationDto;
|
|
25309
25330
|
toLocation!: LocationDto;
|
|
25331
|
+
created!: Date;
|
|
25332
|
+
createdBy!: string;
|
|
25333
|
+
createdById!: string;
|
|
25334
|
+
updatedBy?: string | null;
|
|
25335
|
+
updatedById?: string | null;
|
|
25310
25336
|
|
|
25311
|
-
constructor(data?:
|
|
25337
|
+
constructor(data?: IBookingDto) {
|
|
25312
25338
|
if (data) {
|
|
25313
25339
|
for (var property in data) {
|
|
25314
25340
|
if (data.hasOwnProperty(property))
|
|
@@ -25326,19 +25352,25 @@ export class BookingResponseDto implements IBookingResponseDto {
|
|
|
25326
25352
|
if (_data) {
|
|
25327
25353
|
this.bookingId = _data["bookingId"];
|
|
25328
25354
|
this.bookingType = _data["bookingType"];
|
|
25355
|
+
this.status = _data["status"];
|
|
25329
25356
|
if (Array.isArray(_data["items"])) {
|
|
25330
25357
|
this.items = [] as any;
|
|
25331
25358
|
for (let item of _data["items"])
|
|
25332
|
-
this.items!.push(
|
|
25359
|
+
this.items!.push(BookingItemDto.fromJS(item));
|
|
25333
25360
|
}
|
|
25334
25361
|
this.fromLocation = _data["fromLocation"] ? LocationDto.fromJS(_data["fromLocation"]) : new LocationDto();
|
|
25335
25362
|
this.toLocation = _data["toLocation"] ? LocationDto.fromJS(_data["toLocation"]) : new LocationDto();
|
|
25363
|
+
this.created = _data["created"] ? new Date(_data["created"].toString()) : <any>undefined;
|
|
25364
|
+
this.createdBy = _data["createdBy"];
|
|
25365
|
+
this.createdById = _data["createdById"];
|
|
25366
|
+
this.updatedBy = _data["updatedBy"];
|
|
25367
|
+
this.updatedById = _data["updatedById"];
|
|
25336
25368
|
}
|
|
25337
25369
|
}
|
|
25338
25370
|
|
|
25339
|
-
static fromJS(data: any):
|
|
25371
|
+
static fromJS(data: any): BookingDto {
|
|
25340
25372
|
data = typeof data === 'object' ? data : {};
|
|
25341
|
-
let result = new
|
|
25373
|
+
let result = new BookingDto();
|
|
25342
25374
|
result.init(data);
|
|
25343
25375
|
return result;
|
|
25344
25376
|
}
|
|
@@ -25347,6 +25379,7 @@ export class BookingResponseDto implements IBookingResponseDto {
|
|
|
25347
25379
|
data = typeof data === 'object' ? data : {};
|
|
25348
25380
|
data["bookingId"] = this.bookingId;
|
|
25349
25381
|
data["bookingType"] = this.bookingType;
|
|
25382
|
+
data["status"] = this.status;
|
|
25350
25383
|
if (Array.isArray(this.items)) {
|
|
25351
25384
|
data["items"] = [];
|
|
25352
25385
|
for (let item of this.items)
|
|
@@ -25354,24 +25387,39 @@ export class BookingResponseDto implements IBookingResponseDto {
|
|
|
25354
25387
|
}
|
|
25355
25388
|
data["fromLocation"] = this.fromLocation ? this.fromLocation.toJSON() : <any>undefined;
|
|
25356
25389
|
data["toLocation"] = this.toLocation ? this.toLocation.toJSON() : <any>undefined;
|
|
25390
|
+
data["created"] = this.created ? this.created.toISOString() : <any>undefined;
|
|
25391
|
+
data["createdBy"] = this.createdBy;
|
|
25392
|
+
data["createdById"] = this.createdById;
|
|
25393
|
+
data["updatedBy"] = this.updatedBy;
|
|
25394
|
+
data["updatedById"] = this.updatedById;
|
|
25357
25395
|
return data;
|
|
25358
25396
|
}
|
|
25359
25397
|
}
|
|
25360
25398
|
|
|
25361
|
-
export interface
|
|
25399
|
+
export interface IBookingDto {
|
|
25362
25400
|
bookingId: string;
|
|
25363
25401
|
bookingType: BookingTypeDto;
|
|
25364
|
-
|
|
25402
|
+
status: BookingStatusDto;
|
|
25403
|
+
items: BookingItemDto[];
|
|
25365
25404
|
fromLocation: LocationDto;
|
|
25366
25405
|
toLocation: LocationDto;
|
|
25406
|
+
created: Date;
|
|
25407
|
+
createdBy: string;
|
|
25408
|
+
createdById: string;
|
|
25409
|
+
updatedBy?: string | null;
|
|
25410
|
+
updatedById?: string | null;
|
|
25367
25411
|
}
|
|
25368
25412
|
|
|
25369
25413
|
export type BookingTypeDto = "NormalTruck" | "LargeTruck" | "SideLoadingTruck";
|
|
25370
25414
|
|
|
25371
|
-
export
|
|
25415
|
+
export type BookingStatusDto = "Pending" | "Cancelled" | "InProgress" | "Delivered";
|
|
25416
|
+
|
|
25417
|
+
export class BookingItemDto implements IBookingItemDto {
|
|
25372
25418
|
trackingId!: string;
|
|
25419
|
+
workOrderId!: string;
|
|
25420
|
+
material?: string | null;
|
|
25373
25421
|
|
|
25374
|
-
constructor(data?:
|
|
25422
|
+
constructor(data?: IBookingItemDto) {
|
|
25375
25423
|
if (data) {
|
|
25376
25424
|
for (var property in data) {
|
|
25377
25425
|
if (data.hasOwnProperty(property))
|
|
@@ -25383,12 +25431,14 @@ export class BookingItemResponseDto implements IBookingItemResponseDto {
|
|
|
25383
25431
|
init(_data?: any) {
|
|
25384
25432
|
if (_data) {
|
|
25385
25433
|
this.trackingId = _data["trackingId"];
|
|
25434
|
+
this.workOrderId = _data["workOrderId"];
|
|
25435
|
+
this.material = _data["material"];
|
|
25386
25436
|
}
|
|
25387
25437
|
}
|
|
25388
25438
|
|
|
25389
|
-
static fromJS(data: any):
|
|
25439
|
+
static fromJS(data: any): BookingItemDto {
|
|
25390
25440
|
data = typeof data === 'object' ? data : {};
|
|
25391
|
-
let result = new
|
|
25441
|
+
let result = new BookingItemDto();
|
|
25392
25442
|
result.init(data);
|
|
25393
25443
|
return result;
|
|
25394
25444
|
}
|
|
@@ -25396,12 +25446,16 @@ export class BookingItemResponseDto implements IBookingItemResponseDto {
|
|
|
25396
25446
|
toJSON(data?: any) {
|
|
25397
25447
|
data = typeof data === 'object' ? data : {};
|
|
25398
25448
|
data["trackingId"] = this.trackingId;
|
|
25449
|
+
data["workOrderId"] = this.workOrderId;
|
|
25450
|
+
data["material"] = this.material;
|
|
25399
25451
|
return data;
|
|
25400
25452
|
}
|
|
25401
25453
|
}
|
|
25402
25454
|
|
|
25403
|
-
export interface
|
|
25455
|
+
export interface IBookingItemDto {
|
|
25404
25456
|
trackingId: string;
|
|
25457
|
+
workOrderId: string;
|
|
25458
|
+
material?: string | null;
|
|
25405
25459
|
}
|
|
25406
25460
|
|
|
25407
25461
|
export class LocationDto implements ILocationDto {
|
|
@@ -25784,6 +25838,7 @@ export class TrackingEventDto implements ITrackingEventDto {
|
|
|
25784
25838
|
id!: number;
|
|
25785
25839
|
created!: Date;
|
|
25786
25840
|
createdBy!: string;
|
|
25841
|
+
createdById!: string;
|
|
25787
25842
|
location!: LocationDto;
|
|
25788
25843
|
status!: TrackingStatusDto;
|
|
25789
25844
|
bookingId?: string | null;
|
|
@@ -25806,6 +25861,7 @@ export class TrackingEventDto implements ITrackingEventDto {
|
|
|
25806
25861
|
this.id = _data["id"];
|
|
25807
25862
|
this.created = _data["created"] ? new Date(_data["created"].toString()) : <any>undefined;
|
|
25808
25863
|
this.createdBy = _data["createdBy"];
|
|
25864
|
+
this.createdById = _data["createdById"];
|
|
25809
25865
|
this.location = _data["location"] ? LocationDto.fromJS(_data["location"]) : new LocationDto();
|
|
25810
25866
|
this.status = _data["status"];
|
|
25811
25867
|
this.bookingId = _data["bookingId"];
|
|
@@ -25825,6 +25881,7 @@ export class TrackingEventDto implements ITrackingEventDto {
|
|
|
25825
25881
|
data["id"] = this.id;
|
|
25826
25882
|
data["created"] = this.created ? this.created.toISOString() : <any>undefined;
|
|
25827
25883
|
data["createdBy"] = this.createdBy;
|
|
25884
|
+
data["createdById"] = this.createdById;
|
|
25828
25885
|
data["location"] = this.location ? this.location.toJSON() : <any>undefined;
|
|
25829
25886
|
data["status"] = this.status;
|
|
25830
25887
|
data["bookingId"] = this.bookingId;
|
|
@@ -25837,6 +25894,7 @@ export interface ITrackingEventDto {
|
|
|
25837
25894
|
id: number;
|
|
25838
25895
|
created: Date;
|
|
25839
25896
|
createdBy: string;
|
|
25897
|
+
createdById: string;
|
|
25840
25898
|
location: LocationDto;
|
|
25841
25899
|
status: TrackingStatusDto;
|
|
25842
25900
|
bookingId?: string | null;
|
|
@@ -25991,6 +26049,7 @@ export interface ITrackingHistoryUpdateDto {
|
|
|
25991
26049
|
|
|
25992
26050
|
export class SearchWorkOrderDto implements ISearchWorkOrderDto {
|
|
25993
26051
|
workOrderId!: string;
|
|
26052
|
+
trackingIds!: string[];
|
|
25994
26053
|
partName?: string | null;
|
|
25995
26054
|
partNumber?: string | null;
|
|
25996
26055
|
|
|
@@ -26001,11 +26060,19 @@ export class SearchWorkOrderDto implements ISearchWorkOrderDto {
|
|
|
26001
26060
|
(<any>this)[property] = (<any>data)[property];
|
|
26002
26061
|
}
|
|
26003
26062
|
}
|
|
26063
|
+
if (!data) {
|
|
26064
|
+
this.trackingIds = [];
|
|
26065
|
+
}
|
|
26004
26066
|
}
|
|
26005
26067
|
|
|
26006
26068
|
init(_data?: any) {
|
|
26007
26069
|
if (_data) {
|
|
26008
26070
|
this.workOrderId = _data["workOrderId"];
|
|
26071
|
+
if (Array.isArray(_data["trackingIds"])) {
|
|
26072
|
+
this.trackingIds = [] as any;
|
|
26073
|
+
for (let item of _data["trackingIds"])
|
|
26074
|
+
this.trackingIds!.push(item);
|
|
26075
|
+
}
|
|
26009
26076
|
this.partName = _data["partName"];
|
|
26010
26077
|
this.partNumber = _data["partNumber"];
|
|
26011
26078
|
}
|
|
@@ -26021,6 +26088,11 @@ export class SearchWorkOrderDto implements ISearchWorkOrderDto {
|
|
|
26021
26088
|
toJSON(data?: any) {
|
|
26022
26089
|
data = typeof data === 'object' ? data : {};
|
|
26023
26090
|
data["workOrderId"] = this.workOrderId;
|
|
26091
|
+
if (Array.isArray(this.trackingIds)) {
|
|
26092
|
+
data["trackingIds"] = [];
|
|
26093
|
+
for (let item of this.trackingIds)
|
|
26094
|
+
data["trackingIds"].push(item);
|
|
26095
|
+
}
|
|
26024
26096
|
data["partName"] = this.partName;
|
|
26025
26097
|
data["partNumber"] = this.partNumber;
|
|
26026
26098
|
return data;
|
|
@@ -26029,6 +26101,7 @@ export class SearchWorkOrderDto implements ISearchWorkOrderDto {
|
|
|
26029
26101
|
|
|
26030
26102
|
export interface ISearchWorkOrderDto {
|
|
26031
26103
|
workOrderId: string;
|
|
26104
|
+
trackingIds: string[];
|
|
26032
26105
|
partName?: string | null;
|
|
26033
26106
|
partNumber?: string | null;
|
|
26034
26107
|
}
|