@ignos/api-client 20241213.0.10861 → 20241217.0.10873
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 +112 -0
- package/lib/ignosportal-api.js +403 -0
- package/package.json +1 -1
- package/src/ignosportal-api.ts +512 -0
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -1471,6 +1471,7 @@ export declare class WorkspaceTemplatesClient extends AuthorizedApiBase implemen
|
|
|
1471
1471
|
}
|
|
1472
1472
|
export interface IMoveBookingClient {
|
|
1473
1473
|
listBookings(request: BookingRequestListDto): Promise<BookingListDto>;
|
|
1474
|
+
filterBookings(request: BookingFilterDto): Promise<BookingFilterResultsDto>;
|
|
1474
1475
|
getBooking(bookingId: string): Promise<BookingDto>;
|
|
1475
1476
|
getParcelBooking(parcelId: string): Promise<BookingDto[]>;
|
|
1476
1477
|
updateBooking(bookingRequest: BookingUpdateDto): Promise<BookingDto>;
|
|
@@ -1487,6 +1488,8 @@ export declare class MoveBookingClient extends AuthorizedApiBase implements IMov
|
|
|
1487
1488
|
});
|
|
1488
1489
|
listBookings(request: BookingRequestListDto): Promise<BookingListDto>;
|
|
1489
1490
|
protected processListBookings(response: Response): Promise<BookingListDto>;
|
|
1491
|
+
filterBookings(request: BookingFilterDto): Promise<BookingFilterResultsDto>;
|
|
1492
|
+
protected processFilterBookings(response: Response): Promise<BookingFilterResultsDto>;
|
|
1490
1493
|
getBooking(bookingId: string): Promise<BookingDto>;
|
|
1491
1494
|
protected processGetBooking(response: Response): Promise<BookingDto>;
|
|
1492
1495
|
getParcelBooking(parcelId: string): Promise<BookingDto[]>;
|
|
@@ -1501,6 +1504,7 @@ export declare class MoveBookingClient extends AuthorizedApiBase implements IMov
|
|
|
1501
1504
|
protected processUpdateBookingStatus(response: Response): Promise<BookingDto>;
|
|
1502
1505
|
}
|
|
1503
1506
|
export interface IMoveLocationsClient {
|
|
1507
|
+
listLocations(): Promise<LocationZoneGroupDto[]>;
|
|
1504
1508
|
searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | null | undefined, locationProfiles: LocationProfileDto[] | null | undefined): Promise<LocationDto[]>;
|
|
1505
1509
|
suggestionsLocations(locationProfiles: LocationProfileDto[] | null | undefined, count: number | undefined): Promise<LocationDto[]>;
|
|
1506
1510
|
suggestionsParcel(parcelId: string[] | undefined): Promise<SuggestionsResponseDto>;
|
|
@@ -1513,6 +1517,8 @@ export declare class MoveLocationsClient extends AuthorizedApiBase implements IM
|
|
|
1513
1517
|
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
|
|
1514
1518
|
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
1515
1519
|
});
|
|
1520
|
+
listLocations(): Promise<LocationZoneGroupDto[]>;
|
|
1521
|
+
protected processListLocations(response: Response): Promise<LocationZoneGroupDto[]>;
|
|
1516
1522
|
searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | null | undefined, locationProfiles: LocationProfileDto[] | null | undefined): Promise<LocationDto[]>;
|
|
1517
1523
|
protected processSearchLocations(response: Response): Promise<LocationDto[]>;
|
|
1518
1524
|
suggestionsLocations(locationProfiles: LocationProfileDto[] | null | undefined, count: number | undefined): Promise<LocationDto[]>;
|
|
@@ -8206,6 +8212,112 @@ export interface IBookingRequestListDto {
|
|
|
8206
8212
|
export type BookingTaskDto = "MyTasks" | "OthersTasks";
|
|
8207
8213
|
export type BookingCreatedByDto = "MyBookings" | "OthersBookings";
|
|
8208
8214
|
export type BookingOrderDto = "Ascending" | "Descending";
|
|
8215
|
+
export declare class BookingFilterResultsDto implements IBookingFilterResultsDto {
|
|
8216
|
+
bookingStatus?: BookingStatusResultsDto[];
|
|
8217
|
+
transportKind?: TransportKindResultsDto[];
|
|
8218
|
+
parcelKind?: ParcelKindResultsDto[];
|
|
8219
|
+
fromLocations?: LocationZoneGroupDto[];
|
|
8220
|
+
toLocations?: LocationZoneGroupDto[];
|
|
8221
|
+
constructor(data?: IBookingFilterResultsDto);
|
|
8222
|
+
init(_data?: any): void;
|
|
8223
|
+
static fromJS(data: any): BookingFilterResultsDto;
|
|
8224
|
+
toJSON(data?: any): any;
|
|
8225
|
+
}
|
|
8226
|
+
export interface IBookingFilterResultsDto {
|
|
8227
|
+
bookingStatus?: BookingStatusResultsDto[];
|
|
8228
|
+
transportKind?: TransportKindResultsDto[];
|
|
8229
|
+
parcelKind?: ParcelKindResultsDto[];
|
|
8230
|
+
fromLocations?: LocationZoneGroupDto[];
|
|
8231
|
+
toLocations?: LocationZoneGroupDto[];
|
|
8232
|
+
}
|
|
8233
|
+
export declare class BookingStatusResultsDto implements IBookingStatusResultsDto {
|
|
8234
|
+
bookingStatus?: BookingStatusDto;
|
|
8235
|
+
count?: number;
|
|
8236
|
+
constructor(data?: IBookingStatusResultsDto);
|
|
8237
|
+
init(_data?: any): void;
|
|
8238
|
+
static fromJS(data: any): BookingStatusResultsDto;
|
|
8239
|
+
toJSON(data?: any): any;
|
|
8240
|
+
}
|
|
8241
|
+
export interface IBookingStatusResultsDto {
|
|
8242
|
+
bookingStatus?: BookingStatusDto;
|
|
8243
|
+
count?: number;
|
|
8244
|
+
}
|
|
8245
|
+
export declare class TransportKindResultsDto implements ITransportKindResultsDto {
|
|
8246
|
+
transportKind?: TransportKindDto;
|
|
8247
|
+
count?: number;
|
|
8248
|
+
constructor(data?: ITransportKindResultsDto);
|
|
8249
|
+
init(_data?: any): void;
|
|
8250
|
+
static fromJS(data: any): TransportKindResultsDto;
|
|
8251
|
+
toJSON(data?: any): any;
|
|
8252
|
+
}
|
|
8253
|
+
export interface ITransportKindResultsDto {
|
|
8254
|
+
transportKind?: TransportKindDto;
|
|
8255
|
+
count?: number;
|
|
8256
|
+
}
|
|
8257
|
+
export declare class ParcelKindResultsDto implements IParcelKindResultsDto {
|
|
8258
|
+
parcelKind?: ParcelKindDto;
|
|
8259
|
+
count?: number;
|
|
8260
|
+
constructor(data?: IParcelKindResultsDto);
|
|
8261
|
+
init(_data?: any): void;
|
|
8262
|
+
static fromJS(data: any): ParcelKindResultsDto;
|
|
8263
|
+
toJSON(data?: any): any;
|
|
8264
|
+
}
|
|
8265
|
+
export interface IParcelKindResultsDto {
|
|
8266
|
+
parcelKind?: ParcelKindDto;
|
|
8267
|
+
count?: number;
|
|
8268
|
+
}
|
|
8269
|
+
export declare class LocationZoneGroupDto implements ILocationZoneGroupDto {
|
|
8270
|
+
zoneId?: string;
|
|
8271
|
+
zoneName?: string | null;
|
|
8272
|
+
count?: number;
|
|
8273
|
+
locations?: LocationGroupDto[];
|
|
8274
|
+
constructor(data?: ILocationZoneGroupDto);
|
|
8275
|
+
init(_data?: any): void;
|
|
8276
|
+
static fromJS(data: any): LocationZoneGroupDto;
|
|
8277
|
+
toJSON(data?: any): any;
|
|
8278
|
+
}
|
|
8279
|
+
export interface ILocationZoneGroupDto {
|
|
8280
|
+
zoneId?: string;
|
|
8281
|
+
zoneName?: string | null;
|
|
8282
|
+
count?: number;
|
|
8283
|
+
locations?: LocationGroupDto[];
|
|
8284
|
+
}
|
|
8285
|
+
export declare class LocationGroupDto implements ILocationGroupDto {
|
|
8286
|
+
locationId?: string;
|
|
8287
|
+
locationName?: string;
|
|
8288
|
+
count?: number;
|
|
8289
|
+
constructor(data?: ILocationGroupDto);
|
|
8290
|
+
init(_data?: any): void;
|
|
8291
|
+
static fromJS(data: any): LocationGroupDto;
|
|
8292
|
+
toJSON(data?: any): any;
|
|
8293
|
+
}
|
|
8294
|
+
export interface ILocationGroupDto {
|
|
8295
|
+
locationId?: string;
|
|
8296
|
+
locationName?: string;
|
|
8297
|
+
count?: number;
|
|
8298
|
+
}
|
|
8299
|
+
export declare class BookingFilterDto implements IBookingFilterDto {
|
|
8300
|
+
locationIdFromFilter?: string[] | null;
|
|
8301
|
+
locationIdToFilter?: string[] | null;
|
|
8302
|
+
zoneIdFromFilter?: string[] | null;
|
|
8303
|
+
zoneIdToFilter?: string[] | null;
|
|
8304
|
+
bookingStatusFilter?: BookingStatusDto[] | null;
|
|
8305
|
+
parcelKindFilter?: ParcelKindDto[] | null;
|
|
8306
|
+
transportKindFilter?: TransportKindDto[] | null;
|
|
8307
|
+
constructor(data?: IBookingFilterDto);
|
|
8308
|
+
init(_data?: any): void;
|
|
8309
|
+
static fromJS(data: any): BookingFilterDto;
|
|
8310
|
+
toJSON(data?: any): any;
|
|
8311
|
+
}
|
|
8312
|
+
export interface IBookingFilterDto {
|
|
8313
|
+
locationIdFromFilter?: string[] | null;
|
|
8314
|
+
locationIdToFilter?: string[] | null;
|
|
8315
|
+
zoneIdFromFilter?: string[] | null;
|
|
8316
|
+
zoneIdToFilter?: string[] | null;
|
|
8317
|
+
bookingStatusFilter?: BookingStatusDto[] | null;
|
|
8318
|
+
parcelKindFilter?: ParcelKindDto[] | null;
|
|
8319
|
+
transportKindFilter?: TransportKindDto[] | null;
|
|
8320
|
+
}
|
|
8209
8321
|
export declare class BookingUpdateDto implements IBookingUpdateDto {
|
|
8210
8322
|
bookingId: string;
|
|
8211
8323
|
parcelKind: ParcelKindDto;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -12043,6 +12043,46 @@ export class MoveBookingClient extends AuthorizedApiBase {
|
|
|
12043
12043
|
}
|
|
12044
12044
|
return Promise.resolve(null);
|
|
12045
12045
|
}
|
|
12046
|
+
filterBookings(request) {
|
|
12047
|
+
let url_ = this.baseUrl + "/move/booking/filter";
|
|
12048
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
12049
|
+
const content_ = JSON.stringify(request);
|
|
12050
|
+
let options_ = {
|
|
12051
|
+
body: content_,
|
|
12052
|
+
method: "POST",
|
|
12053
|
+
headers: {
|
|
12054
|
+
"Content-Type": "application/json",
|
|
12055
|
+
"Accept": "application/json"
|
|
12056
|
+
}
|
|
12057
|
+
};
|
|
12058
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
12059
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
12060
|
+
}).then((_response) => {
|
|
12061
|
+
return this.processFilterBookings(_response);
|
|
12062
|
+
});
|
|
12063
|
+
}
|
|
12064
|
+
processFilterBookings(response) {
|
|
12065
|
+
const status = response.status;
|
|
12066
|
+
let _headers = {};
|
|
12067
|
+
if (response.headers && response.headers.forEach) {
|
|
12068
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
12069
|
+
}
|
|
12070
|
+
;
|
|
12071
|
+
if (status === 200) {
|
|
12072
|
+
return response.text().then((_responseText) => {
|
|
12073
|
+
let result200 = null;
|
|
12074
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
12075
|
+
result200 = BookingFilterResultsDto.fromJS(resultData200);
|
|
12076
|
+
return result200;
|
|
12077
|
+
});
|
|
12078
|
+
}
|
|
12079
|
+
else if (status !== 200 && status !== 204) {
|
|
12080
|
+
return response.text().then((_responseText) => {
|
|
12081
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
12082
|
+
});
|
|
12083
|
+
}
|
|
12084
|
+
return Promise.resolve(null);
|
|
12085
|
+
}
|
|
12046
12086
|
getBooking(bookingId) {
|
|
12047
12087
|
let url_ = this.baseUrl + "/move/booking/{bookingId}";
|
|
12048
12088
|
if (bookingId === undefined || bookingId === null)
|
|
@@ -12303,6 +12343,47 @@ export class MoveLocationsClient extends AuthorizedApiBase {
|
|
|
12303
12343
|
this.http = http ? http : window;
|
|
12304
12344
|
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
12305
12345
|
}
|
|
12346
|
+
listLocations() {
|
|
12347
|
+
let url_ = this.baseUrl + "/move/locations/list";
|
|
12348
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
12349
|
+
let options_ = {
|
|
12350
|
+
method: "GET",
|
|
12351
|
+
headers: {
|
|
12352
|
+
"Accept": "application/json"
|
|
12353
|
+
}
|
|
12354
|
+
};
|
|
12355
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
12356
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
12357
|
+
}).then((_response) => {
|
|
12358
|
+
return this.processListLocations(_response);
|
|
12359
|
+
});
|
|
12360
|
+
}
|
|
12361
|
+
processListLocations(response) {
|
|
12362
|
+
const status = response.status;
|
|
12363
|
+
let _headers = {};
|
|
12364
|
+
if (response.headers && response.headers.forEach) {
|
|
12365
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
12366
|
+
}
|
|
12367
|
+
;
|
|
12368
|
+
if (status === 200) {
|
|
12369
|
+
return response.text().then((_responseText) => {
|
|
12370
|
+
let result200 = null;
|
|
12371
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
12372
|
+
if (Array.isArray(resultData200)) {
|
|
12373
|
+
result200 = [];
|
|
12374
|
+
for (let item of resultData200)
|
|
12375
|
+
result200.push(LocationZoneGroupDto.fromJS(item));
|
|
12376
|
+
}
|
|
12377
|
+
return result200;
|
|
12378
|
+
});
|
|
12379
|
+
}
|
|
12380
|
+
else if (status !== 200 && status !== 204) {
|
|
12381
|
+
return response.text().then((_responseText) => {
|
|
12382
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
12383
|
+
});
|
|
12384
|
+
}
|
|
12385
|
+
return Promise.resolve(null);
|
|
12386
|
+
}
|
|
12306
12387
|
searchLocations(input, locationKinds, locationProfiles) {
|
|
12307
12388
|
let url_ = this.baseUrl + "/move/locations/search?";
|
|
12308
12389
|
if (input !== undefined && input !== null)
|
|
@@ -31598,6 +31679,328 @@ export class BookingRequestListDto {
|
|
|
31598
31679
|
return data;
|
|
31599
31680
|
}
|
|
31600
31681
|
}
|
|
31682
|
+
export class BookingFilterResultsDto {
|
|
31683
|
+
constructor(data) {
|
|
31684
|
+
if (data) {
|
|
31685
|
+
for (var property in data) {
|
|
31686
|
+
if (data.hasOwnProperty(property))
|
|
31687
|
+
this[property] = data[property];
|
|
31688
|
+
}
|
|
31689
|
+
}
|
|
31690
|
+
}
|
|
31691
|
+
init(_data) {
|
|
31692
|
+
if (_data) {
|
|
31693
|
+
if (Array.isArray(_data["bookingStatus"])) {
|
|
31694
|
+
this.bookingStatus = [];
|
|
31695
|
+
for (let item of _data["bookingStatus"])
|
|
31696
|
+
this.bookingStatus.push(BookingStatusResultsDto.fromJS(item));
|
|
31697
|
+
}
|
|
31698
|
+
if (Array.isArray(_data["transportKind"])) {
|
|
31699
|
+
this.transportKind = [];
|
|
31700
|
+
for (let item of _data["transportKind"])
|
|
31701
|
+
this.transportKind.push(TransportKindResultsDto.fromJS(item));
|
|
31702
|
+
}
|
|
31703
|
+
if (Array.isArray(_data["parcelKind"])) {
|
|
31704
|
+
this.parcelKind = [];
|
|
31705
|
+
for (let item of _data["parcelKind"])
|
|
31706
|
+
this.parcelKind.push(ParcelKindResultsDto.fromJS(item));
|
|
31707
|
+
}
|
|
31708
|
+
if (Array.isArray(_data["fromLocations"])) {
|
|
31709
|
+
this.fromLocations = [];
|
|
31710
|
+
for (let item of _data["fromLocations"])
|
|
31711
|
+
this.fromLocations.push(LocationZoneGroupDto.fromJS(item));
|
|
31712
|
+
}
|
|
31713
|
+
if (Array.isArray(_data["toLocations"])) {
|
|
31714
|
+
this.toLocations = [];
|
|
31715
|
+
for (let item of _data["toLocations"])
|
|
31716
|
+
this.toLocations.push(LocationZoneGroupDto.fromJS(item));
|
|
31717
|
+
}
|
|
31718
|
+
}
|
|
31719
|
+
}
|
|
31720
|
+
static fromJS(data) {
|
|
31721
|
+
data = typeof data === 'object' ? data : {};
|
|
31722
|
+
let result = new BookingFilterResultsDto();
|
|
31723
|
+
result.init(data);
|
|
31724
|
+
return result;
|
|
31725
|
+
}
|
|
31726
|
+
toJSON(data) {
|
|
31727
|
+
data = typeof data === 'object' ? data : {};
|
|
31728
|
+
if (Array.isArray(this.bookingStatus)) {
|
|
31729
|
+
data["bookingStatus"] = [];
|
|
31730
|
+
for (let item of this.bookingStatus)
|
|
31731
|
+
data["bookingStatus"].push(item.toJSON());
|
|
31732
|
+
}
|
|
31733
|
+
if (Array.isArray(this.transportKind)) {
|
|
31734
|
+
data["transportKind"] = [];
|
|
31735
|
+
for (let item of this.transportKind)
|
|
31736
|
+
data["transportKind"].push(item.toJSON());
|
|
31737
|
+
}
|
|
31738
|
+
if (Array.isArray(this.parcelKind)) {
|
|
31739
|
+
data["parcelKind"] = [];
|
|
31740
|
+
for (let item of this.parcelKind)
|
|
31741
|
+
data["parcelKind"].push(item.toJSON());
|
|
31742
|
+
}
|
|
31743
|
+
if (Array.isArray(this.fromLocations)) {
|
|
31744
|
+
data["fromLocations"] = [];
|
|
31745
|
+
for (let item of this.fromLocations)
|
|
31746
|
+
data["fromLocations"].push(item.toJSON());
|
|
31747
|
+
}
|
|
31748
|
+
if (Array.isArray(this.toLocations)) {
|
|
31749
|
+
data["toLocations"] = [];
|
|
31750
|
+
for (let item of this.toLocations)
|
|
31751
|
+
data["toLocations"].push(item.toJSON());
|
|
31752
|
+
}
|
|
31753
|
+
return data;
|
|
31754
|
+
}
|
|
31755
|
+
}
|
|
31756
|
+
export class BookingStatusResultsDto {
|
|
31757
|
+
constructor(data) {
|
|
31758
|
+
if (data) {
|
|
31759
|
+
for (var property in data) {
|
|
31760
|
+
if (data.hasOwnProperty(property))
|
|
31761
|
+
this[property] = data[property];
|
|
31762
|
+
}
|
|
31763
|
+
}
|
|
31764
|
+
}
|
|
31765
|
+
init(_data) {
|
|
31766
|
+
if (_data) {
|
|
31767
|
+
this.bookingStatus = _data["bookingStatus"];
|
|
31768
|
+
this.count = _data["count"];
|
|
31769
|
+
}
|
|
31770
|
+
}
|
|
31771
|
+
static fromJS(data) {
|
|
31772
|
+
data = typeof data === 'object' ? data : {};
|
|
31773
|
+
let result = new BookingStatusResultsDto();
|
|
31774
|
+
result.init(data);
|
|
31775
|
+
return result;
|
|
31776
|
+
}
|
|
31777
|
+
toJSON(data) {
|
|
31778
|
+
data = typeof data === 'object' ? data : {};
|
|
31779
|
+
data["bookingStatus"] = this.bookingStatus;
|
|
31780
|
+
data["count"] = this.count;
|
|
31781
|
+
return data;
|
|
31782
|
+
}
|
|
31783
|
+
}
|
|
31784
|
+
export class TransportKindResultsDto {
|
|
31785
|
+
constructor(data) {
|
|
31786
|
+
if (data) {
|
|
31787
|
+
for (var property in data) {
|
|
31788
|
+
if (data.hasOwnProperty(property))
|
|
31789
|
+
this[property] = data[property];
|
|
31790
|
+
}
|
|
31791
|
+
}
|
|
31792
|
+
}
|
|
31793
|
+
init(_data) {
|
|
31794
|
+
if (_data) {
|
|
31795
|
+
this.transportKind = _data["transportKind"];
|
|
31796
|
+
this.count = _data["count"];
|
|
31797
|
+
}
|
|
31798
|
+
}
|
|
31799
|
+
static fromJS(data) {
|
|
31800
|
+
data = typeof data === 'object' ? data : {};
|
|
31801
|
+
let result = new TransportKindResultsDto();
|
|
31802
|
+
result.init(data);
|
|
31803
|
+
return result;
|
|
31804
|
+
}
|
|
31805
|
+
toJSON(data) {
|
|
31806
|
+
data = typeof data === 'object' ? data : {};
|
|
31807
|
+
data["transportKind"] = this.transportKind;
|
|
31808
|
+
data["count"] = this.count;
|
|
31809
|
+
return data;
|
|
31810
|
+
}
|
|
31811
|
+
}
|
|
31812
|
+
export class ParcelKindResultsDto {
|
|
31813
|
+
constructor(data) {
|
|
31814
|
+
if (data) {
|
|
31815
|
+
for (var property in data) {
|
|
31816
|
+
if (data.hasOwnProperty(property))
|
|
31817
|
+
this[property] = data[property];
|
|
31818
|
+
}
|
|
31819
|
+
}
|
|
31820
|
+
}
|
|
31821
|
+
init(_data) {
|
|
31822
|
+
if (_data) {
|
|
31823
|
+
this.parcelKind = _data["parcelKind"];
|
|
31824
|
+
this.count = _data["count"];
|
|
31825
|
+
}
|
|
31826
|
+
}
|
|
31827
|
+
static fromJS(data) {
|
|
31828
|
+
data = typeof data === 'object' ? data : {};
|
|
31829
|
+
let result = new ParcelKindResultsDto();
|
|
31830
|
+
result.init(data);
|
|
31831
|
+
return result;
|
|
31832
|
+
}
|
|
31833
|
+
toJSON(data) {
|
|
31834
|
+
data = typeof data === 'object' ? data : {};
|
|
31835
|
+
data["parcelKind"] = this.parcelKind;
|
|
31836
|
+
data["count"] = this.count;
|
|
31837
|
+
return data;
|
|
31838
|
+
}
|
|
31839
|
+
}
|
|
31840
|
+
export class LocationZoneGroupDto {
|
|
31841
|
+
constructor(data) {
|
|
31842
|
+
if (data) {
|
|
31843
|
+
for (var property in data) {
|
|
31844
|
+
if (data.hasOwnProperty(property))
|
|
31845
|
+
this[property] = data[property];
|
|
31846
|
+
}
|
|
31847
|
+
}
|
|
31848
|
+
}
|
|
31849
|
+
init(_data) {
|
|
31850
|
+
if (_data) {
|
|
31851
|
+
this.zoneId = _data["zoneId"];
|
|
31852
|
+
this.zoneName = _data["zoneName"];
|
|
31853
|
+
this.count = _data["count"];
|
|
31854
|
+
if (Array.isArray(_data["locations"])) {
|
|
31855
|
+
this.locations = [];
|
|
31856
|
+
for (let item of _data["locations"])
|
|
31857
|
+
this.locations.push(LocationGroupDto.fromJS(item));
|
|
31858
|
+
}
|
|
31859
|
+
}
|
|
31860
|
+
}
|
|
31861
|
+
static fromJS(data) {
|
|
31862
|
+
data = typeof data === 'object' ? data : {};
|
|
31863
|
+
let result = new LocationZoneGroupDto();
|
|
31864
|
+
result.init(data);
|
|
31865
|
+
return result;
|
|
31866
|
+
}
|
|
31867
|
+
toJSON(data) {
|
|
31868
|
+
data = typeof data === 'object' ? data : {};
|
|
31869
|
+
data["zoneId"] = this.zoneId;
|
|
31870
|
+
data["zoneName"] = this.zoneName;
|
|
31871
|
+
data["count"] = this.count;
|
|
31872
|
+
if (Array.isArray(this.locations)) {
|
|
31873
|
+
data["locations"] = [];
|
|
31874
|
+
for (let item of this.locations)
|
|
31875
|
+
data["locations"].push(item.toJSON());
|
|
31876
|
+
}
|
|
31877
|
+
return data;
|
|
31878
|
+
}
|
|
31879
|
+
}
|
|
31880
|
+
export class LocationGroupDto {
|
|
31881
|
+
constructor(data) {
|
|
31882
|
+
if (data) {
|
|
31883
|
+
for (var property in data) {
|
|
31884
|
+
if (data.hasOwnProperty(property))
|
|
31885
|
+
this[property] = data[property];
|
|
31886
|
+
}
|
|
31887
|
+
}
|
|
31888
|
+
}
|
|
31889
|
+
init(_data) {
|
|
31890
|
+
if (_data) {
|
|
31891
|
+
this.locationId = _data["locationId"];
|
|
31892
|
+
this.locationName = _data["locationName"];
|
|
31893
|
+
this.count = _data["count"];
|
|
31894
|
+
}
|
|
31895
|
+
}
|
|
31896
|
+
static fromJS(data) {
|
|
31897
|
+
data = typeof data === 'object' ? data : {};
|
|
31898
|
+
let result = new LocationGroupDto();
|
|
31899
|
+
result.init(data);
|
|
31900
|
+
return result;
|
|
31901
|
+
}
|
|
31902
|
+
toJSON(data) {
|
|
31903
|
+
data = typeof data === 'object' ? data : {};
|
|
31904
|
+
data["locationId"] = this.locationId;
|
|
31905
|
+
data["locationName"] = this.locationName;
|
|
31906
|
+
data["count"] = this.count;
|
|
31907
|
+
return data;
|
|
31908
|
+
}
|
|
31909
|
+
}
|
|
31910
|
+
export class BookingFilterDto {
|
|
31911
|
+
constructor(data) {
|
|
31912
|
+
if (data) {
|
|
31913
|
+
for (var property in data) {
|
|
31914
|
+
if (data.hasOwnProperty(property))
|
|
31915
|
+
this[property] = data[property];
|
|
31916
|
+
}
|
|
31917
|
+
}
|
|
31918
|
+
}
|
|
31919
|
+
init(_data) {
|
|
31920
|
+
if (_data) {
|
|
31921
|
+
if (Array.isArray(_data["locationIdFromFilter"])) {
|
|
31922
|
+
this.locationIdFromFilter = [];
|
|
31923
|
+
for (let item of _data["locationIdFromFilter"])
|
|
31924
|
+
this.locationIdFromFilter.push(item);
|
|
31925
|
+
}
|
|
31926
|
+
if (Array.isArray(_data["locationIdToFilter"])) {
|
|
31927
|
+
this.locationIdToFilter = [];
|
|
31928
|
+
for (let item of _data["locationIdToFilter"])
|
|
31929
|
+
this.locationIdToFilter.push(item);
|
|
31930
|
+
}
|
|
31931
|
+
if (Array.isArray(_data["zoneIdFromFilter"])) {
|
|
31932
|
+
this.zoneIdFromFilter = [];
|
|
31933
|
+
for (let item of _data["zoneIdFromFilter"])
|
|
31934
|
+
this.zoneIdFromFilter.push(item);
|
|
31935
|
+
}
|
|
31936
|
+
if (Array.isArray(_data["zoneIdToFilter"])) {
|
|
31937
|
+
this.zoneIdToFilter = [];
|
|
31938
|
+
for (let item of _data["zoneIdToFilter"])
|
|
31939
|
+
this.zoneIdToFilter.push(item);
|
|
31940
|
+
}
|
|
31941
|
+
if (Array.isArray(_data["bookingStatusFilter"])) {
|
|
31942
|
+
this.bookingStatusFilter = [];
|
|
31943
|
+
for (let item of _data["bookingStatusFilter"])
|
|
31944
|
+
this.bookingStatusFilter.push(item);
|
|
31945
|
+
}
|
|
31946
|
+
if (Array.isArray(_data["parcelKindFilter"])) {
|
|
31947
|
+
this.parcelKindFilter = [];
|
|
31948
|
+
for (let item of _data["parcelKindFilter"])
|
|
31949
|
+
this.parcelKindFilter.push(item);
|
|
31950
|
+
}
|
|
31951
|
+
if (Array.isArray(_data["transportKindFilter"])) {
|
|
31952
|
+
this.transportKindFilter = [];
|
|
31953
|
+
for (let item of _data["transportKindFilter"])
|
|
31954
|
+
this.transportKindFilter.push(item);
|
|
31955
|
+
}
|
|
31956
|
+
}
|
|
31957
|
+
}
|
|
31958
|
+
static fromJS(data) {
|
|
31959
|
+
data = typeof data === 'object' ? data : {};
|
|
31960
|
+
let result = new BookingFilterDto();
|
|
31961
|
+
result.init(data);
|
|
31962
|
+
return result;
|
|
31963
|
+
}
|
|
31964
|
+
toJSON(data) {
|
|
31965
|
+
data = typeof data === 'object' ? data : {};
|
|
31966
|
+
if (Array.isArray(this.locationIdFromFilter)) {
|
|
31967
|
+
data["locationIdFromFilter"] = [];
|
|
31968
|
+
for (let item of this.locationIdFromFilter)
|
|
31969
|
+
data["locationIdFromFilter"].push(item);
|
|
31970
|
+
}
|
|
31971
|
+
if (Array.isArray(this.locationIdToFilter)) {
|
|
31972
|
+
data["locationIdToFilter"] = [];
|
|
31973
|
+
for (let item of this.locationIdToFilter)
|
|
31974
|
+
data["locationIdToFilter"].push(item);
|
|
31975
|
+
}
|
|
31976
|
+
if (Array.isArray(this.zoneIdFromFilter)) {
|
|
31977
|
+
data["zoneIdFromFilter"] = [];
|
|
31978
|
+
for (let item of this.zoneIdFromFilter)
|
|
31979
|
+
data["zoneIdFromFilter"].push(item);
|
|
31980
|
+
}
|
|
31981
|
+
if (Array.isArray(this.zoneIdToFilter)) {
|
|
31982
|
+
data["zoneIdToFilter"] = [];
|
|
31983
|
+
for (let item of this.zoneIdToFilter)
|
|
31984
|
+
data["zoneIdToFilter"].push(item);
|
|
31985
|
+
}
|
|
31986
|
+
if (Array.isArray(this.bookingStatusFilter)) {
|
|
31987
|
+
data["bookingStatusFilter"] = [];
|
|
31988
|
+
for (let item of this.bookingStatusFilter)
|
|
31989
|
+
data["bookingStatusFilter"].push(item);
|
|
31990
|
+
}
|
|
31991
|
+
if (Array.isArray(this.parcelKindFilter)) {
|
|
31992
|
+
data["parcelKindFilter"] = [];
|
|
31993
|
+
for (let item of this.parcelKindFilter)
|
|
31994
|
+
data["parcelKindFilter"].push(item);
|
|
31995
|
+
}
|
|
31996
|
+
if (Array.isArray(this.transportKindFilter)) {
|
|
31997
|
+
data["transportKindFilter"] = [];
|
|
31998
|
+
for (let item of this.transportKindFilter)
|
|
31999
|
+
data["transportKindFilter"].push(item);
|
|
32000
|
+
}
|
|
32001
|
+
return data;
|
|
32002
|
+
}
|
|
32003
|
+
}
|
|
31601
32004
|
export class BookingUpdateDto {
|
|
31602
32005
|
constructor(data) {
|
|
31603
32006
|
if (data) {
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -12824,6 +12824,8 @@ export interface IMoveBookingClient {
|
|
|
12824
12824
|
|
|
12825
12825
|
listBookings(request: BookingRequestListDto): Promise<BookingListDto>;
|
|
12826
12826
|
|
|
12827
|
+
filterBookings(request: BookingFilterDto): Promise<BookingFilterResultsDto>;
|
|
12828
|
+
|
|
12827
12829
|
getBooking(bookingId: string): Promise<BookingDto>;
|
|
12828
12830
|
|
|
12829
12831
|
getParcelBooking(parcelId: string): Promise<BookingDto[]>;
|
|
@@ -12888,6 +12890,46 @@ export class MoveBookingClient extends AuthorizedApiBase implements IMoveBooking
|
|
|
12888
12890
|
return Promise.resolve<BookingListDto>(null as any);
|
|
12889
12891
|
}
|
|
12890
12892
|
|
|
12893
|
+
filterBookings(request: BookingFilterDto): Promise<BookingFilterResultsDto> {
|
|
12894
|
+
let url_ = this.baseUrl + "/move/booking/filter";
|
|
12895
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
12896
|
+
|
|
12897
|
+
const content_ = JSON.stringify(request);
|
|
12898
|
+
|
|
12899
|
+
let options_: RequestInit = {
|
|
12900
|
+
body: content_,
|
|
12901
|
+
method: "POST",
|
|
12902
|
+
headers: {
|
|
12903
|
+
"Content-Type": "application/json",
|
|
12904
|
+
"Accept": "application/json"
|
|
12905
|
+
}
|
|
12906
|
+
};
|
|
12907
|
+
|
|
12908
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
12909
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
12910
|
+
}).then((_response: Response) => {
|
|
12911
|
+
return this.processFilterBookings(_response);
|
|
12912
|
+
});
|
|
12913
|
+
}
|
|
12914
|
+
|
|
12915
|
+
protected processFilterBookings(response: Response): Promise<BookingFilterResultsDto> {
|
|
12916
|
+
const status = response.status;
|
|
12917
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
12918
|
+
if (status === 200) {
|
|
12919
|
+
return response.text().then((_responseText) => {
|
|
12920
|
+
let result200: any = null;
|
|
12921
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
12922
|
+
result200 = BookingFilterResultsDto.fromJS(resultData200);
|
|
12923
|
+
return result200;
|
|
12924
|
+
});
|
|
12925
|
+
} else if (status !== 200 && status !== 204) {
|
|
12926
|
+
return response.text().then((_responseText) => {
|
|
12927
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
12928
|
+
});
|
|
12929
|
+
}
|
|
12930
|
+
return Promise.resolve<BookingFilterResultsDto>(null as any);
|
|
12931
|
+
}
|
|
12932
|
+
|
|
12891
12933
|
getBooking(bookingId: string): Promise<BookingDto> {
|
|
12892
12934
|
let url_ = this.baseUrl + "/move/booking/{bookingId}";
|
|
12893
12935
|
if (bookingId === undefined || bookingId === null)
|
|
@@ -13141,6 +13183,8 @@ export class MoveBookingClient extends AuthorizedApiBase implements IMoveBooking
|
|
|
13141
13183
|
|
|
13142
13184
|
export interface IMoveLocationsClient {
|
|
13143
13185
|
|
|
13186
|
+
listLocations(): Promise<LocationZoneGroupDto[]>;
|
|
13187
|
+
|
|
13144
13188
|
searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | null | undefined, locationProfiles: LocationProfileDto[] | null | undefined): Promise<LocationDto[]>;
|
|
13145
13189
|
|
|
13146
13190
|
suggestionsLocations(locationProfiles: LocationProfileDto[] | null | undefined, count: number | undefined): Promise<LocationDto[]>;
|
|
@@ -13161,6 +13205,46 @@ export class MoveLocationsClient extends AuthorizedApiBase implements IMoveLocat
|
|
|
13161
13205
|
this.baseUrl = baseUrl ?? "";
|
|
13162
13206
|
}
|
|
13163
13207
|
|
|
13208
|
+
listLocations(): Promise<LocationZoneGroupDto[]> {
|
|
13209
|
+
let url_ = this.baseUrl + "/move/locations/list";
|
|
13210
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
13211
|
+
|
|
13212
|
+
let options_: RequestInit = {
|
|
13213
|
+
method: "GET",
|
|
13214
|
+
headers: {
|
|
13215
|
+
"Accept": "application/json"
|
|
13216
|
+
}
|
|
13217
|
+
};
|
|
13218
|
+
|
|
13219
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
13220
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
13221
|
+
}).then((_response: Response) => {
|
|
13222
|
+
return this.processListLocations(_response);
|
|
13223
|
+
});
|
|
13224
|
+
}
|
|
13225
|
+
|
|
13226
|
+
protected processListLocations(response: Response): Promise<LocationZoneGroupDto[]> {
|
|
13227
|
+
const status = response.status;
|
|
13228
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
13229
|
+
if (status === 200) {
|
|
13230
|
+
return response.text().then((_responseText) => {
|
|
13231
|
+
let result200: any = null;
|
|
13232
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
13233
|
+
if (Array.isArray(resultData200)) {
|
|
13234
|
+
result200 = [] as any;
|
|
13235
|
+
for (let item of resultData200)
|
|
13236
|
+
result200!.push(LocationZoneGroupDto.fromJS(item));
|
|
13237
|
+
}
|
|
13238
|
+
return result200;
|
|
13239
|
+
});
|
|
13240
|
+
} else if (status !== 200 && status !== 204) {
|
|
13241
|
+
return response.text().then((_responseText) => {
|
|
13242
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
13243
|
+
});
|
|
13244
|
+
}
|
|
13245
|
+
return Promise.resolve<LocationZoneGroupDto[]>(null as any);
|
|
13246
|
+
}
|
|
13247
|
+
|
|
13164
13248
|
searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | null | undefined, locationProfiles: LocationProfileDto[] | null | undefined): Promise<LocationDto[]> {
|
|
13165
13249
|
let url_ = this.baseUrl + "/move/locations/search?";
|
|
13166
13250
|
if (input !== undefined && input !== null)
|
|
@@ -38759,6 +38843,434 @@ export type BookingCreatedByDto = "MyBookings" | "OthersBookings";
|
|
|
38759
38843
|
|
|
38760
38844
|
export type BookingOrderDto = "Ascending" | "Descending";
|
|
38761
38845
|
|
|
38846
|
+
export class BookingFilterResultsDto implements IBookingFilterResultsDto {
|
|
38847
|
+
bookingStatus?: BookingStatusResultsDto[];
|
|
38848
|
+
transportKind?: TransportKindResultsDto[];
|
|
38849
|
+
parcelKind?: ParcelKindResultsDto[];
|
|
38850
|
+
fromLocations?: LocationZoneGroupDto[];
|
|
38851
|
+
toLocations?: LocationZoneGroupDto[];
|
|
38852
|
+
|
|
38853
|
+
constructor(data?: IBookingFilterResultsDto) {
|
|
38854
|
+
if (data) {
|
|
38855
|
+
for (var property in data) {
|
|
38856
|
+
if (data.hasOwnProperty(property))
|
|
38857
|
+
(<any>this)[property] = (<any>data)[property];
|
|
38858
|
+
}
|
|
38859
|
+
}
|
|
38860
|
+
}
|
|
38861
|
+
|
|
38862
|
+
init(_data?: any) {
|
|
38863
|
+
if (_data) {
|
|
38864
|
+
if (Array.isArray(_data["bookingStatus"])) {
|
|
38865
|
+
this.bookingStatus = [] as any;
|
|
38866
|
+
for (let item of _data["bookingStatus"])
|
|
38867
|
+
this.bookingStatus!.push(BookingStatusResultsDto.fromJS(item));
|
|
38868
|
+
}
|
|
38869
|
+
if (Array.isArray(_data["transportKind"])) {
|
|
38870
|
+
this.transportKind = [] as any;
|
|
38871
|
+
for (let item of _data["transportKind"])
|
|
38872
|
+
this.transportKind!.push(TransportKindResultsDto.fromJS(item));
|
|
38873
|
+
}
|
|
38874
|
+
if (Array.isArray(_data["parcelKind"])) {
|
|
38875
|
+
this.parcelKind = [] as any;
|
|
38876
|
+
for (let item of _data["parcelKind"])
|
|
38877
|
+
this.parcelKind!.push(ParcelKindResultsDto.fromJS(item));
|
|
38878
|
+
}
|
|
38879
|
+
if (Array.isArray(_data["fromLocations"])) {
|
|
38880
|
+
this.fromLocations = [] as any;
|
|
38881
|
+
for (let item of _data["fromLocations"])
|
|
38882
|
+
this.fromLocations!.push(LocationZoneGroupDto.fromJS(item));
|
|
38883
|
+
}
|
|
38884
|
+
if (Array.isArray(_data["toLocations"])) {
|
|
38885
|
+
this.toLocations = [] as any;
|
|
38886
|
+
for (let item of _data["toLocations"])
|
|
38887
|
+
this.toLocations!.push(LocationZoneGroupDto.fromJS(item));
|
|
38888
|
+
}
|
|
38889
|
+
}
|
|
38890
|
+
}
|
|
38891
|
+
|
|
38892
|
+
static fromJS(data: any): BookingFilterResultsDto {
|
|
38893
|
+
data = typeof data === 'object' ? data : {};
|
|
38894
|
+
let result = new BookingFilterResultsDto();
|
|
38895
|
+
result.init(data);
|
|
38896
|
+
return result;
|
|
38897
|
+
}
|
|
38898
|
+
|
|
38899
|
+
toJSON(data?: any) {
|
|
38900
|
+
data = typeof data === 'object' ? data : {};
|
|
38901
|
+
if (Array.isArray(this.bookingStatus)) {
|
|
38902
|
+
data["bookingStatus"] = [];
|
|
38903
|
+
for (let item of this.bookingStatus)
|
|
38904
|
+
data["bookingStatus"].push(item.toJSON());
|
|
38905
|
+
}
|
|
38906
|
+
if (Array.isArray(this.transportKind)) {
|
|
38907
|
+
data["transportKind"] = [];
|
|
38908
|
+
for (let item of this.transportKind)
|
|
38909
|
+
data["transportKind"].push(item.toJSON());
|
|
38910
|
+
}
|
|
38911
|
+
if (Array.isArray(this.parcelKind)) {
|
|
38912
|
+
data["parcelKind"] = [];
|
|
38913
|
+
for (let item of this.parcelKind)
|
|
38914
|
+
data["parcelKind"].push(item.toJSON());
|
|
38915
|
+
}
|
|
38916
|
+
if (Array.isArray(this.fromLocations)) {
|
|
38917
|
+
data["fromLocations"] = [];
|
|
38918
|
+
for (let item of this.fromLocations)
|
|
38919
|
+
data["fromLocations"].push(item.toJSON());
|
|
38920
|
+
}
|
|
38921
|
+
if (Array.isArray(this.toLocations)) {
|
|
38922
|
+
data["toLocations"] = [];
|
|
38923
|
+
for (let item of this.toLocations)
|
|
38924
|
+
data["toLocations"].push(item.toJSON());
|
|
38925
|
+
}
|
|
38926
|
+
return data;
|
|
38927
|
+
}
|
|
38928
|
+
}
|
|
38929
|
+
|
|
38930
|
+
export interface IBookingFilterResultsDto {
|
|
38931
|
+
bookingStatus?: BookingStatusResultsDto[];
|
|
38932
|
+
transportKind?: TransportKindResultsDto[];
|
|
38933
|
+
parcelKind?: ParcelKindResultsDto[];
|
|
38934
|
+
fromLocations?: LocationZoneGroupDto[];
|
|
38935
|
+
toLocations?: LocationZoneGroupDto[];
|
|
38936
|
+
}
|
|
38937
|
+
|
|
38938
|
+
export class BookingStatusResultsDto implements IBookingStatusResultsDto {
|
|
38939
|
+
bookingStatus?: BookingStatusDto;
|
|
38940
|
+
count?: number;
|
|
38941
|
+
|
|
38942
|
+
constructor(data?: IBookingStatusResultsDto) {
|
|
38943
|
+
if (data) {
|
|
38944
|
+
for (var property in data) {
|
|
38945
|
+
if (data.hasOwnProperty(property))
|
|
38946
|
+
(<any>this)[property] = (<any>data)[property];
|
|
38947
|
+
}
|
|
38948
|
+
}
|
|
38949
|
+
}
|
|
38950
|
+
|
|
38951
|
+
init(_data?: any) {
|
|
38952
|
+
if (_data) {
|
|
38953
|
+
this.bookingStatus = _data["bookingStatus"];
|
|
38954
|
+
this.count = _data["count"];
|
|
38955
|
+
}
|
|
38956
|
+
}
|
|
38957
|
+
|
|
38958
|
+
static fromJS(data: any): BookingStatusResultsDto {
|
|
38959
|
+
data = typeof data === 'object' ? data : {};
|
|
38960
|
+
let result = new BookingStatusResultsDto();
|
|
38961
|
+
result.init(data);
|
|
38962
|
+
return result;
|
|
38963
|
+
}
|
|
38964
|
+
|
|
38965
|
+
toJSON(data?: any) {
|
|
38966
|
+
data = typeof data === 'object' ? data : {};
|
|
38967
|
+
data["bookingStatus"] = this.bookingStatus;
|
|
38968
|
+
data["count"] = this.count;
|
|
38969
|
+
return data;
|
|
38970
|
+
}
|
|
38971
|
+
}
|
|
38972
|
+
|
|
38973
|
+
export interface IBookingStatusResultsDto {
|
|
38974
|
+
bookingStatus?: BookingStatusDto;
|
|
38975
|
+
count?: number;
|
|
38976
|
+
}
|
|
38977
|
+
|
|
38978
|
+
export class TransportKindResultsDto implements ITransportKindResultsDto {
|
|
38979
|
+
transportKind?: TransportKindDto;
|
|
38980
|
+
count?: number;
|
|
38981
|
+
|
|
38982
|
+
constructor(data?: ITransportKindResultsDto) {
|
|
38983
|
+
if (data) {
|
|
38984
|
+
for (var property in data) {
|
|
38985
|
+
if (data.hasOwnProperty(property))
|
|
38986
|
+
(<any>this)[property] = (<any>data)[property];
|
|
38987
|
+
}
|
|
38988
|
+
}
|
|
38989
|
+
}
|
|
38990
|
+
|
|
38991
|
+
init(_data?: any) {
|
|
38992
|
+
if (_data) {
|
|
38993
|
+
this.transportKind = _data["transportKind"];
|
|
38994
|
+
this.count = _data["count"];
|
|
38995
|
+
}
|
|
38996
|
+
}
|
|
38997
|
+
|
|
38998
|
+
static fromJS(data: any): TransportKindResultsDto {
|
|
38999
|
+
data = typeof data === 'object' ? data : {};
|
|
39000
|
+
let result = new TransportKindResultsDto();
|
|
39001
|
+
result.init(data);
|
|
39002
|
+
return result;
|
|
39003
|
+
}
|
|
39004
|
+
|
|
39005
|
+
toJSON(data?: any) {
|
|
39006
|
+
data = typeof data === 'object' ? data : {};
|
|
39007
|
+
data["transportKind"] = this.transportKind;
|
|
39008
|
+
data["count"] = this.count;
|
|
39009
|
+
return data;
|
|
39010
|
+
}
|
|
39011
|
+
}
|
|
39012
|
+
|
|
39013
|
+
export interface ITransportKindResultsDto {
|
|
39014
|
+
transportKind?: TransportKindDto;
|
|
39015
|
+
count?: number;
|
|
39016
|
+
}
|
|
39017
|
+
|
|
39018
|
+
export class ParcelKindResultsDto implements IParcelKindResultsDto {
|
|
39019
|
+
parcelKind?: ParcelKindDto;
|
|
39020
|
+
count?: number;
|
|
39021
|
+
|
|
39022
|
+
constructor(data?: IParcelKindResultsDto) {
|
|
39023
|
+
if (data) {
|
|
39024
|
+
for (var property in data) {
|
|
39025
|
+
if (data.hasOwnProperty(property))
|
|
39026
|
+
(<any>this)[property] = (<any>data)[property];
|
|
39027
|
+
}
|
|
39028
|
+
}
|
|
39029
|
+
}
|
|
39030
|
+
|
|
39031
|
+
init(_data?: any) {
|
|
39032
|
+
if (_data) {
|
|
39033
|
+
this.parcelKind = _data["parcelKind"];
|
|
39034
|
+
this.count = _data["count"];
|
|
39035
|
+
}
|
|
39036
|
+
}
|
|
39037
|
+
|
|
39038
|
+
static fromJS(data: any): ParcelKindResultsDto {
|
|
39039
|
+
data = typeof data === 'object' ? data : {};
|
|
39040
|
+
let result = new ParcelKindResultsDto();
|
|
39041
|
+
result.init(data);
|
|
39042
|
+
return result;
|
|
39043
|
+
}
|
|
39044
|
+
|
|
39045
|
+
toJSON(data?: any) {
|
|
39046
|
+
data = typeof data === 'object' ? data : {};
|
|
39047
|
+
data["parcelKind"] = this.parcelKind;
|
|
39048
|
+
data["count"] = this.count;
|
|
39049
|
+
return data;
|
|
39050
|
+
}
|
|
39051
|
+
}
|
|
39052
|
+
|
|
39053
|
+
export interface IParcelKindResultsDto {
|
|
39054
|
+
parcelKind?: ParcelKindDto;
|
|
39055
|
+
count?: number;
|
|
39056
|
+
}
|
|
39057
|
+
|
|
39058
|
+
export class LocationZoneGroupDto implements ILocationZoneGroupDto {
|
|
39059
|
+
zoneId?: string;
|
|
39060
|
+
zoneName?: string | null;
|
|
39061
|
+
count?: number;
|
|
39062
|
+
locations?: LocationGroupDto[];
|
|
39063
|
+
|
|
39064
|
+
constructor(data?: ILocationZoneGroupDto) {
|
|
39065
|
+
if (data) {
|
|
39066
|
+
for (var property in data) {
|
|
39067
|
+
if (data.hasOwnProperty(property))
|
|
39068
|
+
(<any>this)[property] = (<any>data)[property];
|
|
39069
|
+
}
|
|
39070
|
+
}
|
|
39071
|
+
}
|
|
39072
|
+
|
|
39073
|
+
init(_data?: any) {
|
|
39074
|
+
if (_data) {
|
|
39075
|
+
this.zoneId = _data["zoneId"];
|
|
39076
|
+
this.zoneName = _data["zoneName"];
|
|
39077
|
+
this.count = _data["count"];
|
|
39078
|
+
if (Array.isArray(_data["locations"])) {
|
|
39079
|
+
this.locations = [] as any;
|
|
39080
|
+
for (let item of _data["locations"])
|
|
39081
|
+
this.locations!.push(LocationGroupDto.fromJS(item));
|
|
39082
|
+
}
|
|
39083
|
+
}
|
|
39084
|
+
}
|
|
39085
|
+
|
|
39086
|
+
static fromJS(data: any): LocationZoneGroupDto {
|
|
39087
|
+
data = typeof data === 'object' ? data : {};
|
|
39088
|
+
let result = new LocationZoneGroupDto();
|
|
39089
|
+
result.init(data);
|
|
39090
|
+
return result;
|
|
39091
|
+
}
|
|
39092
|
+
|
|
39093
|
+
toJSON(data?: any) {
|
|
39094
|
+
data = typeof data === 'object' ? data : {};
|
|
39095
|
+
data["zoneId"] = this.zoneId;
|
|
39096
|
+
data["zoneName"] = this.zoneName;
|
|
39097
|
+
data["count"] = this.count;
|
|
39098
|
+
if (Array.isArray(this.locations)) {
|
|
39099
|
+
data["locations"] = [];
|
|
39100
|
+
for (let item of this.locations)
|
|
39101
|
+
data["locations"].push(item.toJSON());
|
|
39102
|
+
}
|
|
39103
|
+
return data;
|
|
39104
|
+
}
|
|
39105
|
+
}
|
|
39106
|
+
|
|
39107
|
+
export interface ILocationZoneGroupDto {
|
|
39108
|
+
zoneId?: string;
|
|
39109
|
+
zoneName?: string | null;
|
|
39110
|
+
count?: number;
|
|
39111
|
+
locations?: LocationGroupDto[];
|
|
39112
|
+
}
|
|
39113
|
+
|
|
39114
|
+
export class LocationGroupDto implements ILocationGroupDto {
|
|
39115
|
+
locationId?: string;
|
|
39116
|
+
locationName?: string;
|
|
39117
|
+
count?: number;
|
|
39118
|
+
|
|
39119
|
+
constructor(data?: ILocationGroupDto) {
|
|
39120
|
+
if (data) {
|
|
39121
|
+
for (var property in data) {
|
|
39122
|
+
if (data.hasOwnProperty(property))
|
|
39123
|
+
(<any>this)[property] = (<any>data)[property];
|
|
39124
|
+
}
|
|
39125
|
+
}
|
|
39126
|
+
}
|
|
39127
|
+
|
|
39128
|
+
init(_data?: any) {
|
|
39129
|
+
if (_data) {
|
|
39130
|
+
this.locationId = _data["locationId"];
|
|
39131
|
+
this.locationName = _data["locationName"];
|
|
39132
|
+
this.count = _data["count"];
|
|
39133
|
+
}
|
|
39134
|
+
}
|
|
39135
|
+
|
|
39136
|
+
static fromJS(data: any): LocationGroupDto {
|
|
39137
|
+
data = typeof data === 'object' ? data : {};
|
|
39138
|
+
let result = new LocationGroupDto();
|
|
39139
|
+
result.init(data);
|
|
39140
|
+
return result;
|
|
39141
|
+
}
|
|
39142
|
+
|
|
39143
|
+
toJSON(data?: any) {
|
|
39144
|
+
data = typeof data === 'object' ? data : {};
|
|
39145
|
+
data["locationId"] = this.locationId;
|
|
39146
|
+
data["locationName"] = this.locationName;
|
|
39147
|
+
data["count"] = this.count;
|
|
39148
|
+
return data;
|
|
39149
|
+
}
|
|
39150
|
+
}
|
|
39151
|
+
|
|
39152
|
+
export interface ILocationGroupDto {
|
|
39153
|
+
locationId?: string;
|
|
39154
|
+
locationName?: string;
|
|
39155
|
+
count?: number;
|
|
39156
|
+
}
|
|
39157
|
+
|
|
39158
|
+
export class BookingFilterDto implements IBookingFilterDto {
|
|
39159
|
+
locationIdFromFilter?: string[] | null;
|
|
39160
|
+
locationIdToFilter?: string[] | null;
|
|
39161
|
+
zoneIdFromFilter?: string[] | null;
|
|
39162
|
+
zoneIdToFilter?: string[] | null;
|
|
39163
|
+
bookingStatusFilter?: BookingStatusDto[] | null;
|
|
39164
|
+
parcelKindFilter?: ParcelKindDto[] | null;
|
|
39165
|
+
transportKindFilter?: TransportKindDto[] | null;
|
|
39166
|
+
|
|
39167
|
+
constructor(data?: IBookingFilterDto) {
|
|
39168
|
+
if (data) {
|
|
39169
|
+
for (var property in data) {
|
|
39170
|
+
if (data.hasOwnProperty(property))
|
|
39171
|
+
(<any>this)[property] = (<any>data)[property];
|
|
39172
|
+
}
|
|
39173
|
+
}
|
|
39174
|
+
}
|
|
39175
|
+
|
|
39176
|
+
init(_data?: any) {
|
|
39177
|
+
if (_data) {
|
|
39178
|
+
if (Array.isArray(_data["locationIdFromFilter"])) {
|
|
39179
|
+
this.locationIdFromFilter = [] as any;
|
|
39180
|
+
for (let item of _data["locationIdFromFilter"])
|
|
39181
|
+
this.locationIdFromFilter!.push(item);
|
|
39182
|
+
}
|
|
39183
|
+
if (Array.isArray(_data["locationIdToFilter"])) {
|
|
39184
|
+
this.locationIdToFilter = [] as any;
|
|
39185
|
+
for (let item of _data["locationIdToFilter"])
|
|
39186
|
+
this.locationIdToFilter!.push(item);
|
|
39187
|
+
}
|
|
39188
|
+
if (Array.isArray(_data["zoneIdFromFilter"])) {
|
|
39189
|
+
this.zoneIdFromFilter = [] as any;
|
|
39190
|
+
for (let item of _data["zoneIdFromFilter"])
|
|
39191
|
+
this.zoneIdFromFilter!.push(item);
|
|
39192
|
+
}
|
|
39193
|
+
if (Array.isArray(_data["zoneIdToFilter"])) {
|
|
39194
|
+
this.zoneIdToFilter = [] as any;
|
|
39195
|
+
for (let item of _data["zoneIdToFilter"])
|
|
39196
|
+
this.zoneIdToFilter!.push(item);
|
|
39197
|
+
}
|
|
39198
|
+
if (Array.isArray(_data["bookingStatusFilter"])) {
|
|
39199
|
+
this.bookingStatusFilter = [] as any;
|
|
39200
|
+
for (let item of _data["bookingStatusFilter"])
|
|
39201
|
+
this.bookingStatusFilter!.push(item);
|
|
39202
|
+
}
|
|
39203
|
+
if (Array.isArray(_data["parcelKindFilter"])) {
|
|
39204
|
+
this.parcelKindFilter = [] as any;
|
|
39205
|
+
for (let item of _data["parcelKindFilter"])
|
|
39206
|
+
this.parcelKindFilter!.push(item);
|
|
39207
|
+
}
|
|
39208
|
+
if (Array.isArray(_data["transportKindFilter"])) {
|
|
39209
|
+
this.transportKindFilter = [] as any;
|
|
39210
|
+
for (let item of _data["transportKindFilter"])
|
|
39211
|
+
this.transportKindFilter!.push(item);
|
|
39212
|
+
}
|
|
39213
|
+
}
|
|
39214
|
+
}
|
|
39215
|
+
|
|
39216
|
+
static fromJS(data: any): BookingFilterDto {
|
|
39217
|
+
data = typeof data === 'object' ? data : {};
|
|
39218
|
+
let result = new BookingFilterDto();
|
|
39219
|
+
result.init(data);
|
|
39220
|
+
return result;
|
|
39221
|
+
}
|
|
39222
|
+
|
|
39223
|
+
toJSON(data?: any) {
|
|
39224
|
+
data = typeof data === 'object' ? data : {};
|
|
39225
|
+
if (Array.isArray(this.locationIdFromFilter)) {
|
|
39226
|
+
data["locationIdFromFilter"] = [];
|
|
39227
|
+
for (let item of this.locationIdFromFilter)
|
|
39228
|
+
data["locationIdFromFilter"].push(item);
|
|
39229
|
+
}
|
|
39230
|
+
if (Array.isArray(this.locationIdToFilter)) {
|
|
39231
|
+
data["locationIdToFilter"] = [];
|
|
39232
|
+
for (let item of this.locationIdToFilter)
|
|
39233
|
+
data["locationIdToFilter"].push(item);
|
|
39234
|
+
}
|
|
39235
|
+
if (Array.isArray(this.zoneIdFromFilter)) {
|
|
39236
|
+
data["zoneIdFromFilter"] = [];
|
|
39237
|
+
for (let item of this.zoneIdFromFilter)
|
|
39238
|
+
data["zoneIdFromFilter"].push(item);
|
|
39239
|
+
}
|
|
39240
|
+
if (Array.isArray(this.zoneIdToFilter)) {
|
|
39241
|
+
data["zoneIdToFilter"] = [];
|
|
39242
|
+
for (let item of this.zoneIdToFilter)
|
|
39243
|
+
data["zoneIdToFilter"].push(item);
|
|
39244
|
+
}
|
|
39245
|
+
if (Array.isArray(this.bookingStatusFilter)) {
|
|
39246
|
+
data["bookingStatusFilter"] = [];
|
|
39247
|
+
for (let item of this.bookingStatusFilter)
|
|
39248
|
+
data["bookingStatusFilter"].push(item);
|
|
39249
|
+
}
|
|
39250
|
+
if (Array.isArray(this.parcelKindFilter)) {
|
|
39251
|
+
data["parcelKindFilter"] = [];
|
|
39252
|
+
for (let item of this.parcelKindFilter)
|
|
39253
|
+
data["parcelKindFilter"].push(item);
|
|
39254
|
+
}
|
|
39255
|
+
if (Array.isArray(this.transportKindFilter)) {
|
|
39256
|
+
data["transportKindFilter"] = [];
|
|
39257
|
+
for (let item of this.transportKindFilter)
|
|
39258
|
+
data["transportKindFilter"].push(item);
|
|
39259
|
+
}
|
|
39260
|
+
return data;
|
|
39261
|
+
}
|
|
39262
|
+
}
|
|
39263
|
+
|
|
39264
|
+
export interface IBookingFilterDto {
|
|
39265
|
+
locationIdFromFilter?: string[] | null;
|
|
39266
|
+
locationIdToFilter?: string[] | null;
|
|
39267
|
+
zoneIdFromFilter?: string[] | null;
|
|
39268
|
+
zoneIdToFilter?: string[] | null;
|
|
39269
|
+
bookingStatusFilter?: BookingStatusDto[] | null;
|
|
39270
|
+
parcelKindFilter?: ParcelKindDto[] | null;
|
|
39271
|
+
transportKindFilter?: TransportKindDto[] | null;
|
|
39272
|
+
}
|
|
39273
|
+
|
|
38762
39274
|
export class BookingUpdateDto implements IBookingUpdateDto {
|
|
38763
39275
|
bookingId!: string;
|
|
38764
39276
|
parcelKind!: ParcelKindDto;
|