@qite/tide-client 1.1.29 → 1.1.31
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/build/index.js +15 -1
- package/build/index.js.map +1 -1
- package/build/types/company/agent/agent-invoice-item.d.ts +9 -0
- package/build/types/company/agent/entry-totals.d.ts +7 -0
- package/build/types/company/agent/index.d.ts +2 -0
- package/build/types/company/index.d.ts +1 -0
- package/build/types/offer/booking-v2/request/booking-package-book-request.d.ts +4 -0
- package/build/types/offer/booking-v2/request/booking-package-customer-request.d.ts +4 -0
- package/build/types/offer/booking-v2/request/index.d.ts +2 -1
- package/build/types/offer/booking-v2/response/booking-price-details.d.ts +4 -0
- package/build/types/offer/booking-v2/response/booking-room-status-option.d.ts +5 -0
- package/build/types/offer/booking-v2/response/booking-room-status.d.ts +5 -0
- package/build/types/offer/booking-v2/response/booking-validity-line.d.ts +4 -0
- package/build/types/offer/booking-v2/response/index.d.ts +1 -0
- package/build/types/offer/booking-v2/shared/airline-booking-package-option.d.ts +2 -0
- package/build/types/offer/booking-v2/shared/airport-booking-package-option.d.ts +2 -0
- package/build/types/offer/booking-v2/shared/booking-airline-group.d.ts +6 -0
- package/build/types/offer/booking-v2/shared/booking-airport-group.d.ts +6 -0
- package/build/types/offer/booking-v2/shared/booking-option-pax.d.ts +6 -0
- package/build/types/offer/booking-v2/shared/booking-option-unit.d.ts +6 -0
- package/build/types/offer/booking-v2/shared/booking-package-availability.d.ts +1 -0
- package/build/types/offer/booking-v2/shared/booking-package-option.d.ts +7 -0
- package/build/types/offer/booking-v2/shared/index.d.ts +8 -4
- package/build/utils/web-agent-client.d.ts +15 -1
- package/package.json +6 -2
- package/src/types/company/agent/agent-invoice-item.ts +9 -0
- package/src/types/company/agent/entry-totals.ts +7 -0
- package/src/types/company/agent/index.ts +2 -0
- package/src/types/company/index.ts +1 -0
- package/src/types/offer/booking-v2/request/booking-package-book-request.ts +4 -0
- package/src/types/offer/booking-v2/request/booking-package-customer-request.ts +4 -0
- package/src/types/offer/booking-v2/request/index.ts +2 -1
- package/src/types/offer/booking-v2/response/booking-price-details.ts +4 -0
- package/src/types/offer/booking-v2/response/booking-room-status-option.ts +5 -0
- package/src/types/offer/booking-v2/response/booking-room-status.ts +6 -0
- package/src/types/offer/booking-v2/response/booking-validity-line.ts +4 -0
- package/src/types/offer/booking-v2/response/index.ts +1 -0
- package/src/types/offer/booking-v2/shared/airline-booking-package-option.ts +3 -0
- package/src/types/offer/booking-v2/shared/airport-booking-package-option.ts +3 -0
- package/src/types/offer/booking-v2/shared/booking-airline-group.ts +7 -0
- package/src/types/offer/booking-v2/shared/booking-airport-group.ts +7 -0
- package/src/types/offer/booking-v2/shared/booking-option-pax.ts +6 -0
- package/src/types/offer/booking-v2/shared/booking-option-unit.ts +6 -0
- package/src/types/offer/booking-v2/shared/booking-package-availability.ts +1 -0
- package/src/types/offer/booking-v2/shared/booking-package-option.ts +7 -0
- package/src/types/offer/booking-v2/shared/index.ts +8 -4
- package/src/utils/web-agent-client.ts +32 -4
|
@@ -2,6 +2,7 @@ import { BookingProductNotification } from "../response";
|
|
|
2
2
|
import { BookingPackage } from "../shared";
|
|
3
3
|
import { BookingPackagePax } from "../shared/booking-package-pax";
|
|
4
4
|
import { BookingPackageAddress } from "./booking-package-address";
|
|
5
|
+
import { BookingPackageCustomerRequest } from "./booking-package-customer-request";
|
|
5
6
|
export interface BookingPackageBookRequest {
|
|
6
7
|
saleType?: number;
|
|
7
8
|
status: number;
|
|
@@ -13,6 +14,9 @@ export interface BookingPackageBookRequest {
|
|
|
13
14
|
tagIds?: number[];
|
|
14
15
|
voucherCodes?: string[];
|
|
15
16
|
remarks?: string;
|
|
17
|
+
customerRequests: BookingPackageCustomerRequest[];
|
|
18
|
+
travellerAddressName?: string;
|
|
19
|
+
agencyAddressName?: string;
|
|
16
20
|
address?: BookingPackageAddress;
|
|
17
21
|
pax: BookingPackagePax[];
|
|
18
22
|
nonTravelPax: BookingPackagePax[];
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
export * from "./bookable-dates-request";
|
|
2
2
|
export * from "./booking-package-address";
|
|
3
3
|
export * from "./booking-package-book-request";
|
|
4
|
+
export * from "./booking-package-customer-request";
|
|
4
5
|
export * from "./booking-package-destination";
|
|
5
6
|
export * from "./booking-package-details-request";
|
|
6
7
|
export * from "./booking-package-flight-pool-request";
|
|
7
8
|
export * from "./booking-package-request";
|
|
8
9
|
export * from "./booking-package-search-request";
|
|
10
|
+
export * from "./booking-package-update-request";
|
|
9
11
|
export * from "./booking-package-voucher-request";
|
|
10
12
|
export * from "./selected-flight";
|
|
11
13
|
export * from "./selected-hotel";
|
|
12
14
|
export * from "./tour-codes.request";
|
|
13
|
-
export * from "./booking-package-update-request";
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { BookingPriceDetail } from "./booking-price-detail";
|
|
2
2
|
import { BookingProductNotification } from "./booking-product-notification";
|
|
3
|
+
import { BookingRoomStatus } from "./booking-room-status";
|
|
4
|
+
import { BookingValidityLine } from "./booking-validity-line";
|
|
3
5
|
import { ChangedLine } from "./changed-line";
|
|
4
6
|
export interface BookingPriceDetails {
|
|
5
7
|
details: BookingPriceDetail[];
|
|
6
8
|
changedLines: ChangedLine[];
|
|
9
|
+
validityLines: BookingValidityLine[];
|
|
7
10
|
notifications: BookingProductNotification[];
|
|
11
|
+
roomStatusses: BookingRoomStatus[];
|
|
8
12
|
deposit?: number;
|
|
9
13
|
}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
+
import { AirlineBookingPackageOption } from "./airline-booking-package-option";
|
|
2
|
+
import { AirportBookingPackageOption } from "./airport-booking-package-option";
|
|
3
|
+
import { BookingAirlineGroup } from "./booking-airline-group";
|
|
4
|
+
import { BookingAirportGroup } from "./booking-airport-group";
|
|
1
5
|
import { BookingOptionGroup } from "./booking-option-group";
|
|
2
6
|
import { PerPaxPackageOption } from "./per-pax-package-option";
|
|
3
7
|
export interface BookingOptionPax {
|
|
4
8
|
id: number;
|
|
5
9
|
paxName: string;
|
|
6
10
|
groups: BookingOptionGroup<PerPaxPackageOption>[];
|
|
11
|
+
airlineGroups: BookingAirlineGroup<AirlineBookingPackageOption>[];
|
|
12
|
+
airportGroups: BookingAirportGroup<AirportBookingPackageOption>[];
|
|
7
13
|
}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
+
import { AirlineBookingPackageOption } from "./airline-booking-package-option";
|
|
2
|
+
import { AirportBookingPackageOption } from "./airport-booking-package-option";
|
|
3
|
+
import { BookingAirlineGroup } from "./booking-airline-group";
|
|
4
|
+
import { BookingAirportGroup } from "./booking-airport-group";
|
|
1
5
|
import { BookingOptionGroup } from "./booking-option-group";
|
|
2
6
|
import { PerUnitPackageOption } from "./per-unit-package-option";
|
|
3
7
|
export interface BookingOptionUnit {
|
|
4
8
|
index: number;
|
|
5
9
|
groups: BookingOptionGroup<PerUnitPackageOption>[];
|
|
10
|
+
airlineGroups: BookingAirlineGroup<AirlineBookingPackageOption>[];
|
|
11
|
+
airportGroups: BookingAirportGroup<AirportBookingPackageOption>[];
|
|
6
12
|
}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import { AirlineBookingPackageOption } from "./airline-booking-package-option";
|
|
2
|
+
import { AirportBookingPackageOption } from "./airport-booking-package-option";
|
|
3
|
+
import { BookingAirlineGroup } from "./booking-airline-group";
|
|
4
|
+
import { BookingAirportGroup } from "./booking-airport-group";
|
|
1
5
|
import { BookingOptionGroup } from "./booking-option-group";
|
|
2
6
|
import { BookingOptionPax } from "./booking-option-pax";
|
|
3
7
|
import { BookingOptionUnit } from "./booking-option-unit";
|
|
@@ -17,6 +21,7 @@ export interface BookingPackageOption {
|
|
|
17
21
|
tagIds: number[];
|
|
18
22
|
includedServiceTypes: number[];
|
|
19
23
|
isOnRequest: boolean;
|
|
24
|
+
provider: string;
|
|
20
25
|
countryName: string;
|
|
21
26
|
regionName: string;
|
|
22
27
|
oordName: string;
|
|
@@ -34,6 +39,8 @@ export interface BookingPackageOption {
|
|
|
34
39
|
allotmentTagIds: number[];
|
|
35
40
|
availabilities: BookingPackageAvailability[];
|
|
36
41
|
rooms: BookingPackageRoom[];
|
|
42
|
+
airlineGroups: BookingAirlineGroup<AirlineBookingPackageOption>[];
|
|
43
|
+
airportGroups: BookingAirportGroup<AirportBookingPackageOption>[];
|
|
37
44
|
groups: BookingOptionGroup<PerBookingPackageOption>[];
|
|
38
45
|
optionUnits: BookingOptionUnit[];
|
|
39
46
|
optionPax: BookingOptionPax[];
|
|
@@ -1,18 +1,22 @@
|
|
|
1
|
+
export * from "./airline-booking-package-option";
|
|
2
|
+
export * from "./airport-booking-package-option";
|
|
3
|
+
export * from "./booking-airline-group";
|
|
4
|
+
export * from "./booking-airport-group";
|
|
1
5
|
export * from "./booking-option-group";
|
|
2
6
|
export * from "./booking-option-pax";
|
|
3
7
|
export * from "./booking-option-unit";
|
|
8
|
+
export * from "./booking-package";
|
|
9
|
+
export * from "./booking-package-flight";
|
|
4
10
|
export * from "./booking-package-flight-meta-data";
|
|
5
11
|
export * from "./booking-package-flight-meta-data-line";
|
|
6
|
-
export * from "./booking-package-
|
|
12
|
+
export * from "./booking-package-hotel";
|
|
7
13
|
export * from "./booking-package-hotel-option";
|
|
8
14
|
export * from "./booking-package-hotel-room";
|
|
9
|
-
export * from "./booking-package-hotel";
|
|
10
15
|
export * from "./booking-package-line";
|
|
11
16
|
export * from "./booking-package-pax";
|
|
12
17
|
export * from "./booking-package-request-room";
|
|
13
|
-
export * from "./booking-package-room-option";
|
|
14
18
|
export * from "./booking-package-room";
|
|
15
|
-
export * from "./booking-package";
|
|
19
|
+
export * from "./booking-package-room-option";
|
|
16
20
|
export * from "./per-booking-package-option";
|
|
17
21
|
export * from "./per-package-option";
|
|
18
22
|
export * from "./per-pax-package-option";
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
+
AgentInvoiceItem,
|
|
2
3
|
AgentPrintAction,
|
|
3
4
|
AgentPrintActionRequest,
|
|
4
5
|
CustomEntryStatusItem,
|
|
5
6
|
DossierViewResult,
|
|
7
|
+
EntryTotals,
|
|
6
8
|
FilterItem,
|
|
7
9
|
NumberStringPair,
|
|
8
10
|
PageResult,
|
|
@@ -37,9 +39,21 @@ export declare const print: (
|
|
|
37
39
|
export declare const getEntryList: (
|
|
38
40
|
config: TideClientConfig,
|
|
39
41
|
filterItem: FilterItem,
|
|
40
|
-
token
|
|
42
|
+
token: string,
|
|
41
43
|
signal?: AbortSignal | undefined
|
|
42
44
|
) => Promise<PageResult<DossierViewResult>>;
|
|
45
|
+
export declare const getEntryTotals: (
|
|
46
|
+
config: TideClientConfig,
|
|
47
|
+
filterItem: FilterItem,
|
|
48
|
+
token: string,
|
|
49
|
+
signal?: AbortSignal | undefined
|
|
50
|
+
) => Promise<EntryTotals>;
|
|
51
|
+
export declare const getInvoiceList: (
|
|
52
|
+
config: TideClientConfig,
|
|
53
|
+
filterItem: FilterItem,
|
|
54
|
+
token: string,
|
|
55
|
+
signal?: AbortSignal | undefined
|
|
56
|
+
) => Promise<PageResult<AgentInvoiceItem>>;
|
|
43
57
|
export declare const getCustomEntryStatus: (
|
|
44
58
|
config: TideClientConfig,
|
|
45
59
|
signal?: AbortSignal | undefined
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qite/tide-client",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.31",
|
|
4
4
|
"description": "Frontend client for Tide",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -18,7 +18,11 @@
|
|
|
18
18
|
"tide",
|
|
19
19
|
"client"
|
|
20
20
|
],
|
|
21
|
-
"
|
|
21
|
+
"maintainers": [
|
|
22
|
+
"Loris Decoster <loris@qite.be>",
|
|
23
|
+
"Bram De Cuyper <bram.de.cuyper@qite.be>",
|
|
24
|
+
"Maarten Brysbaert <maarten.brysbaert@qite.be>"
|
|
25
|
+
],
|
|
22
26
|
"license": "OBSD",
|
|
23
27
|
"homepage": "https://bitbucket.org/qitegeneral/tide-client#readme",
|
|
24
28
|
"devDependencies": {
|
|
@@ -2,6 +2,7 @@ import { BookingProductNotification } from "../response";
|
|
|
2
2
|
import { BookingPackage } from "../shared";
|
|
3
3
|
import { BookingPackagePax } from "../shared/booking-package-pax";
|
|
4
4
|
import { BookingPackageAddress } from "./booking-package-address";
|
|
5
|
+
import { BookingPackageCustomerRequest } from "./booking-package-customer-request";
|
|
5
6
|
|
|
6
7
|
export interface BookingPackageBookRequest {
|
|
7
8
|
saleType?: number;
|
|
@@ -14,7 +15,10 @@ export interface BookingPackageBookRequest {
|
|
|
14
15
|
tagIds?: number[];
|
|
15
16
|
voucherCodes?: string[];
|
|
16
17
|
remarks?: string;
|
|
18
|
+
customerRequests: BookingPackageCustomerRequest[];
|
|
17
19
|
|
|
20
|
+
travellerAddressName?: string;
|
|
21
|
+
agencyAddressName?: string;
|
|
18
22
|
address?: BookingPackageAddress;
|
|
19
23
|
pax: BookingPackagePax[];
|
|
20
24
|
nonTravelPax: BookingPackagePax[];
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
export * from "./bookable-dates-request";
|
|
2
2
|
export * from "./booking-package-address";
|
|
3
3
|
export * from "./booking-package-book-request";
|
|
4
|
+
export * from "./booking-package-customer-request";
|
|
4
5
|
export * from "./booking-package-destination";
|
|
5
6
|
export * from "./booking-package-details-request";
|
|
6
7
|
export * from "./booking-package-flight-pool-request";
|
|
7
8
|
export * from "./booking-package-request";
|
|
8
9
|
export * from "./booking-package-search-request";
|
|
10
|
+
export * from "./booking-package-update-request";
|
|
9
11
|
export * from "./booking-package-voucher-request";
|
|
10
12
|
export * from "./selected-flight";
|
|
11
13
|
export * from "./selected-hotel";
|
|
12
14
|
export * from "./tour-codes.request";
|
|
13
|
-
export * from "./booking-package-update-request";
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { BookingPriceDetail } from "./booking-price-detail";
|
|
2
2
|
import { BookingProductNotification } from "./booking-product-notification";
|
|
3
|
+
import { BookingRoomStatus } from "./booking-room-status";
|
|
4
|
+
import { BookingValidityLine } from "./booking-validity-line";
|
|
3
5
|
import { ChangedLine } from "./changed-line";
|
|
4
6
|
|
|
5
7
|
export interface BookingPriceDetails {
|
|
6
8
|
details: BookingPriceDetail[];
|
|
7
9
|
changedLines: ChangedLine[];
|
|
10
|
+
validityLines: BookingValidityLine[];
|
|
8
11
|
notifications: BookingProductNotification[];
|
|
12
|
+
roomStatusses: BookingRoomStatus[];
|
|
9
13
|
deposit?: number;
|
|
10
14
|
}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import { AirlineBookingPackageOption } from "./airline-booking-package-option";
|
|
2
|
+
import { AirportBookingPackageOption } from "./airport-booking-package-option";
|
|
3
|
+
import { BookingAirlineGroup } from "./booking-airline-group";
|
|
4
|
+
import { BookingAirportGroup } from "./booking-airport-group";
|
|
1
5
|
import { BookingOptionGroup } from "./booking-option-group";
|
|
2
6
|
import { PerPaxPackageOption } from "./per-pax-package-option";
|
|
3
7
|
|
|
@@ -5,4 +9,6 @@ export interface BookingOptionPax {
|
|
|
5
9
|
id: number;
|
|
6
10
|
paxName: string;
|
|
7
11
|
groups: BookingOptionGroup<PerPaxPackageOption>[];
|
|
12
|
+
airlineGroups: BookingAirlineGroup<AirlineBookingPackageOption>[];
|
|
13
|
+
airportGroups: BookingAirportGroup<AirportBookingPackageOption>[];
|
|
8
14
|
}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
+
import { AirlineBookingPackageOption } from "./airline-booking-package-option";
|
|
2
|
+
import { AirportBookingPackageOption } from "./airport-booking-package-option";
|
|
3
|
+
import { BookingAirlineGroup } from "./booking-airline-group";
|
|
4
|
+
import { BookingAirportGroup } from "./booking-airport-group";
|
|
1
5
|
import { BookingOptionGroup } from "./booking-option-group";
|
|
2
6
|
import { PerUnitPackageOption } from "./per-unit-package-option";
|
|
3
7
|
|
|
4
8
|
export interface BookingOptionUnit {
|
|
5
9
|
index: number;
|
|
6
10
|
groups: BookingOptionGroup<PerUnitPackageOption>[];
|
|
11
|
+
airlineGroups: BookingAirlineGroup<AirlineBookingPackageOption>[];
|
|
12
|
+
airportGroups: BookingAirportGroup<AirportBookingPackageOption>[];
|
|
7
13
|
}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import { AirlineBookingPackageOption } from "./airline-booking-package-option";
|
|
2
|
+
import { AirportBookingPackageOption } from "./airport-booking-package-option";
|
|
3
|
+
import { BookingAirlineGroup } from "./booking-airline-group";
|
|
4
|
+
import { BookingAirportGroup } from "./booking-airport-group";
|
|
1
5
|
import { BookingOptionGroup } from "./booking-option-group";
|
|
2
6
|
import { BookingOptionPax } from "./booking-option-pax";
|
|
3
7
|
import { BookingOptionUnit } from "./booking-option-unit";
|
|
@@ -19,6 +23,7 @@ export interface BookingPackageOption {
|
|
|
19
23
|
tagIds: number[];
|
|
20
24
|
includedServiceTypes: number[];
|
|
21
25
|
isOnRequest: boolean;
|
|
26
|
+
provider: string;
|
|
22
27
|
|
|
23
28
|
countryName: string;
|
|
24
29
|
regionName: string;
|
|
@@ -42,6 +47,8 @@ export interface BookingPackageOption {
|
|
|
42
47
|
|
|
43
48
|
availabilities: BookingPackageAvailability[];
|
|
44
49
|
rooms: BookingPackageRoom[];
|
|
50
|
+
airlineGroups: BookingAirlineGroup<AirlineBookingPackageOption>[];
|
|
51
|
+
airportGroups: BookingAirportGroup<AirportBookingPackageOption>[];
|
|
45
52
|
groups: BookingOptionGroup<PerBookingPackageOption>[];
|
|
46
53
|
optionUnits: BookingOptionUnit[];
|
|
47
54
|
optionPax: BookingOptionPax[];
|
|
@@ -1,18 +1,22 @@
|
|
|
1
|
+
export * from "./airline-booking-package-option";
|
|
2
|
+
export * from "./airport-booking-package-option";
|
|
3
|
+
export * from "./booking-airline-group";
|
|
4
|
+
export * from "./booking-airport-group";
|
|
1
5
|
export * from "./booking-option-group";
|
|
2
6
|
export * from "./booking-option-pax";
|
|
3
7
|
export * from "./booking-option-unit";
|
|
8
|
+
export * from "./booking-package";
|
|
9
|
+
export * from "./booking-package-flight";
|
|
4
10
|
export * from "./booking-package-flight-meta-data";
|
|
5
11
|
export * from "./booking-package-flight-meta-data-line";
|
|
6
|
-
export * from "./booking-package-
|
|
12
|
+
export * from "./booking-package-hotel";
|
|
7
13
|
export * from "./booking-package-hotel-option";
|
|
8
14
|
export * from "./booking-package-hotel-room";
|
|
9
|
-
export * from "./booking-package-hotel";
|
|
10
15
|
export * from "./booking-package-line";
|
|
11
16
|
export * from "./booking-package-pax";
|
|
12
17
|
export * from "./booking-package-request-room";
|
|
13
|
-
export * from "./booking-package-room-option";
|
|
14
18
|
export * from "./booking-package-room";
|
|
15
|
-
export * from "./booking-package";
|
|
19
|
+
export * from "./booking-package-room-option";
|
|
16
20
|
export * from "./per-booking-package-option";
|
|
17
21
|
export * from "./per-package-option";
|
|
18
22
|
export * from "./per-pax-package-option";
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
+
import { createParams } from "../services/odata.service";
|
|
1
2
|
import {
|
|
3
|
+
AgentInvoiceItem,
|
|
2
4
|
AgentPrintAction,
|
|
3
5
|
AgentPrintActionRequest,
|
|
4
6
|
CustomEntryStatusItem,
|
|
5
7
|
DossierViewResult,
|
|
8
|
+
EntryTotals,
|
|
6
9
|
FilterItem,
|
|
7
10
|
NumberStringPair,
|
|
8
11
|
PageResult,
|
|
9
12
|
PrintActionGroup,
|
|
10
13
|
TideClientConfig,
|
|
11
14
|
} from "../types";
|
|
12
|
-
import { get } from "./common-client";
|
|
13
15
|
import { post } from "./api";
|
|
14
|
-
import {
|
|
16
|
+
import { get } from "./common-client";
|
|
15
17
|
|
|
16
18
|
const ENDPOINT = "/api/web/agent";
|
|
17
19
|
const ENDPOINT_GET_PRINT_ACTIONS = `${ENDPOINT}/print-action`;
|
|
@@ -60,16 +62,42 @@ export const print = (
|
|
|
60
62
|
export const getEntryList = (
|
|
61
63
|
config: TideClientConfig,
|
|
62
64
|
filterItem: FilterItem,
|
|
63
|
-
token
|
|
65
|
+
token: string,
|
|
64
66
|
signal?: AbortSignal
|
|
65
67
|
): Promise<PageResult<DossierViewResult>> => {
|
|
66
68
|
const params = createParams(filterItem, false);
|
|
67
|
-
const url = `${config.host}${ENDPOINT}/entry
|
|
69
|
+
const url = `${config.host}${ENDPOINT}/entry/list?${params}`;
|
|
68
70
|
const apiKey = config.apiKey;
|
|
69
71
|
|
|
70
72
|
return get<PageResult<DossierViewResult>>(url, apiKey, signal, true, token);
|
|
71
73
|
};
|
|
72
74
|
|
|
75
|
+
export const getEntryTotals = (
|
|
76
|
+
config: TideClientConfig,
|
|
77
|
+
filterItem: FilterItem,
|
|
78
|
+
token: string,
|
|
79
|
+
signal?: AbortSignal
|
|
80
|
+
): Promise<EntryTotals> => {
|
|
81
|
+
const params = createParams(filterItem, false);
|
|
82
|
+
const url = `${config.host}${ENDPOINT}/entry/total?${params}`;
|
|
83
|
+
const apiKey = config.apiKey;
|
|
84
|
+
|
|
85
|
+
return get<EntryTotals>(url, apiKey, signal, true, token);
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
export const getInvoiceList = (
|
|
89
|
+
config: TideClientConfig,
|
|
90
|
+
filterItem: FilterItem,
|
|
91
|
+
token: string,
|
|
92
|
+
signal?: AbortSignal
|
|
93
|
+
): Promise<PageResult<AgentInvoiceItem>> => {
|
|
94
|
+
const params = createParams(filterItem, false);
|
|
95
|
+
const url = `${config.host}${ENDPOINT}/invoice/list?${params}`;
|
|
96
|
+
const apiKey = config.apiKey;
|
|
97
|
+
|
|
98
|
+
return get<PageResult<AgentInvoiceItem>>(url, apiKey, signal, true, token);
|
|
99
|
+
};
|
|
100
|
+
|
|
73
101
|
export const getCustomEntryStatus = (
|
|
74
102
|
config: TideClientConfig,
|
|
75
103
|
signal?: AbortSignal
|