@tripian/model 9.1.29 → 9.1.32
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/api/v4/enums/PROVIDER_ID.d.ts +2 -1
- package/api/v4/enums/PROVIDER_NAME.d.ts +2 -1
- package/api/v4/models/TourAndTickets.d.ts +2 -0
- package/helper/index.d.ts +1 -0
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/providers/index.d.ts +2 -1
- package/providers/victory/Address.d.ts +13 -0
- package/providers/victory/CatalogGroup.d.ts +6 -0
- package/providers/victory/Category.d.ts +9 -0
- package/providers/victory/ClientsCreateRequest.d.ts +43 -0
- package/providers/victory/ClientsData.d.ts +69 -0
- package/providers/victory/Configuration.d.ts +9 -0
- package/providers/victory/EmailAddres.d.ts +6 -0
- package/providers/victory/Event.d.ts +36 -0
- package/providers/victory/EventDetail.d.ts +5 -0
- package/providers/victory/EventsResponse.d.ts +7 -0
- package/providers/victory/Meta.d.ts +13 -0
- package/providers/victory/OrderRequest.d.ts +33 -0
- package/providers/victory/OrdersResponse.d.ts +95 -0
- package/providers/victory/ParentCategory.d.ts +8 -0
- package/providers/victory/Performance.d.ts +5 -0
- package/providers/victory/Performer.d.ts +7 -0
- package/providers/victory/Requirements.d.ts +5 -0
- package/providers/victory/SeatingChart.d.ts +4 -0
- package/providers/victory/TicketGroup.d.ts +30 -0
- package/providers/victory/TicketResponse.d.ts +5 -0
- package/providers/victory/UpcomingEvents.d.ts +4 -0
- package/providers/victory/Venue.d.ts +18 -0
- package/providers/victory/index.d.ts +21 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export type ClientRequestAddress = {
|
|
2
|
+
label?: string;
|
|
3
|
+
name?: string;
|
|
4
|
+
company?: string | null;
|
|
5
|
+
street_address?: string;
|
|
6
|
+
extended_address?: string | null;
|
|
7
|
+
locality?: string;
|
|
8
|
+
region?: string;
|
|
9
|
+
postal_code?: string;
|
|
10
|
+
country_code?: string;
|
|
11
|
+
is_primary_shipping?: boolean;
|
|
12
|
+
is_primary_billing?: boolean;
|
|
13
|
+
};
|
|
14
|
+
export type ClientPhoneNumber = {
|
|
15
|
+
label: string;
|
|
16
|
+
country_code: string;
|
|
17
|
+
number: string;
|
|
18
|
+
extension: number | null;
|
|
19
|
+
is_primary: boolean;
|
|
20
|
+
};
|
|
21
|
+
export type ClientEmailAddress = {
|
|
22
|
+
address: string;
|
|
23
|
+
label: string;
|
|
24
|
+
id?: string;
|
|
25
|
+
is_primary: boolean;
|
|
26
|
+
};
|
|
27
|
+
export type ClientCompany = {
|
|
28
|
+
name: string;
|
|
29
|
+
};
|
|
30
|
+
export type ClientRequestModel = {
|
|
31
|
+
office_id?: number;
|
|
32
|
+
name: string;
|
|
33
|
+
tags?: string[];
|
|
34
|
+
company?: ClientCompany;
|
|
35
|
+
company_id?: number;
|
|
36
|
+
notes?: string;
|
|
37
|
+
email_addresses?: ClientEmailAddress[];
|
|
38
|
+
addresses?: ClientRequestAddress[];
|
|
39
|
+
phone_numbers?: ClientPhoneNumber[];
|
|
40
|
+
};
|
|
41
|
+
export type ClientsCreateRequest = {
|
|
42
|
+
clients: ClientRequestModel[];
|
|
43
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
export type ClientAddress = {
|
|
2
|
+
region: string;
|
|
3
|
+
longitude: number | null;
|
|
4
|
+
extended_address: string | null;
|
|
5
|
+
label: string;
|
|
6
|
+
locality: string;
|
|
7
|
+
street_address: string;
|
|
8
|
+
name: string;
|
|
9
|
+
primary: boolean;
|
|
10
|
+
primary_shipping_address: boolean;
|
|
11
|
+
primary_billing_address: boolean;
|
|
12
|
+
country_code: string;
|
|
13
|
+
id: string;
|
|
14
|
+
latitude: number | null;
|
|
15
|
+
postal_code: string;
|
|
16
|
+
po_box: boolean;
|
|
17
|
+
};
|
|
18
|
+
export type PhoneNumber = {
|
|
19
|
+
label: string;
|
|
20
|
+
extension: string | null;
|
|
21
|
+
number: string;
|
|
22
|
+
id: string;
|
|
23
|
+
country_code: string;
|
|
24
|
+
primary: boolean;
|
|
25
|
+
};
|
|
26
|
+
export type EmailAddress = {
|
|
27
|
+
address: string;
|
|
28
|
+
label: string;
|
|
29
|
+
id?: string;
|
|
30
|
+
primary: boolean;
|
|
31
|
+
};
|
|
32
|
+
export type Brokerage = {
|
|
33
|
+
url: string;
|
|
34
|
+
name: string;
|
|
35
|
+
id: string;
|
|
36
|
+
abbreviation: string;
|
|
37
|
+
};
|
|
38
|
+
export type Office = {
|
|
39
|
+
brokerage: Brokerage;
|
|
40
|
+
url: string;
|
|
41
|
+
name: string;
|
|
42
|
+
id: string;
|
|
43
|
+
pcc_code: string | null;
|
|
44
|
+
};
|
|
45
|
+
export type Client = {
|
|
46
|
+
id: string;
|
|
47
|
+
name: string;
|
|
48
|
+
notes: string;
|
|
49
|
+
office: Office;
|
|
50
|
+
affiliate_store: string | null;
|
|
51
|
+
company: string | null;
|
|
52
|
+
email_addresses: EmailAddress[];
|
|
53
|
+
phone_numbers: PhoneNumber[];
|
|
54
|
+
addresses: ClientAddress[];
|
|
55
|
+
primary_credit_card: string | null;
|
|
56
|
+
primary_shipping_address: ClientAddress;
|
|
57
|
+
primary_billing_address: ClientAddress;
|
|
58
|
+
primary_phone_number: PhoneNumber;
|
|
59
|
+
primary_email_address: EmailAddress;
|
|
60
|
+
tags: string[];
|
|
61
|
+
updated_at: string;
|
|
62
|
+
url: string;
|
|
63
|
+
balance: string;
|
|
64
|
+
pnr_id: string | null;
|
|
65
|
+
commission_junction_sid: string | null;
|
|
66
|
+
};
|
|
67
|
+
export type ClientsData = {
|
|
68
|
+
clients: Client[];
|
|
69
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Address } from './Address';
|
|
2
|
+
import { Category } from './Category';
|
|
3
|
+
import { Configuration } from './Configuration';
|
|
4
|
+
import { Requirements } from './Requirements';
|
|
5
|
+
export type Event = {
|
|
6
|
+
available_count: number;
|
|
7
|
+
category: Category;
|
|
8
|
+
configuration: Configuration;
|
|
9
|
+
id: number;
|
|
10
|
+
long_term_popularity_score: number;
|
|
11
|
+
name: string;
|
|
12
|
+
notes: string | null;
|
|
13
|
+
occurs_at_local: string;
|
|
14
|
+
occurs_at: string;
|
|
15
|
+
owned_by_office: boolean;
|
|
16
|
+
performances: Performance[];
|
|
17
|
+
popularity_score: number;
|
|
18
|
+
products_count: number;
|
|
19
|
+
products_eticket_count: number;
|
|
20
|
+
promotion_label: string | null;
|
|
21
|
+
state: string;
|
|
22
|
+
tbd: boolean;
|
|
23
|
+
updated_at: string;
|
|
24
|
+
url: string;
|
|
25
|
+
venue: {
|
|
26
|
+
id: number;
|
|
27
|
+
slug: string;
|
|
28
|
+
url: string;
|
|
29
|
+
slug_url: string;
|
|
30
|
+
name: string;
|
|
31
|
+
location: string;
|
|
32
|
+
time_zone: string | null;
|
|
33
|
+
address: Address;
|
|
34
|
+
};
|
|
35
|
+
requirements: Requirements;
|
|
36
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type Meta = {
|
|
2
|
+
meta_description: string | null;
|
|
3
|
+
meta_keywords: string | null;
|
|
4
|
+
nofollow: boolean;
|
|
5
|
+
noindex: boolean;
|
|
6
|
+
canonical_url: string | null;
|
|
7
|
+
page_title: string | null;
|
|
8
|
+
header_title: string | null;
|
|
9
|
+
paragraph_1: string | null;
|
|
10
|
+
paragraph_2: string | null;
|
|
11
|
+
paragraph_3: string | null;
|
|
12
|
+
image: string;
|
|
13
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export type PaymentRequest = {
|
|
2
|
+
address_id: number;
|
|
3
|
+
amount: number;
|
|
4
|
+
method: string;
|
|
5
|
+
type: 'credit_card';
|
|
6
|
+
token: string;
|
|
7
|
+
};
|
|
8
|
+
export type TicketGroupRequest = {
|
|
9
|
+
id: number;
|
|
10
|
+
price: number;
|
|
11
|
+
quantity: number;
|
|
12
|
+
wholesale_price: number;
|
|
13
|
+
};
|
|
14
|
+
export type OrderRequest = {
|
|
15
|
+
client_id: number;
|
|
16
|
+
created_by_ip_address: string;
|
|
17
|
+
delivery: {
|
|
18
|
+
address_id: string;
|
|
19
|
+
cost: number;
|
|
20
|
+
email_address_id: number;
|
|
21
|
+
phone_number_id: number;
|
|
22
|
+
type: string;
|
|
23
|
+
};
|
|
24
|
+
discount: number;
|
|
25
|
+
promo_code: string;
|
|
26
|
+
payments: PaymentRequest[];
|
|
27
|
+
reference?: string;
|
|
28
|
+
service_fee: number;
|
|
29
|
+
session_id: string;
|
|
30
|
+
tax: number;
|
|
31
|
+
tax_signature: string;
|
|
32
|
+
ticket_group: TicketGroupRequest;
|
|
33
|
+
};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
export type OrdersResponse = {
|
|
2
|
+
orders: Order[];
|
|
3
|
+
current_page: number;
|
|
4
|
+
per_page: number;
|
|
5
|
+
total_entries: number;
|
|
6
|
+
};
|
|
7
|
+
export type Order = {
|
|
8
|
+
refunded: string;
|
|
9
|
+
hold_expires_at: string | null;
|
|
10
|
+
notes: string[];
|
|
11
|
+
reference: string | null;
|
|
12
|
+
invoice_number: string | null;
|
|
13
|
+
total: string;
|
|
14
|
+
fraud_check_status?: string;
|
|
15
|
+
items: OrderItem[];
|
|
16
|
+
placer: string | null;
|
|
17
|
+
buyer: BuyerSeller;
|
|
18
|
+
url: string;
|
|
19
|
+
shipments: string[];
|
|
20
|
+
balance: string;
|
|
21
|
+
shipping: string;
|
|
22
|
+
shipping_address: string | null;
|
|
23
|
+
child_orders: string[];
|
|
24
|
+
additional_expense: string;
|
|
25
|
+
seller: BuyerSeller;
|
|
26
|
+
po_number: string | null;
|
|
27
|
+
state: string;
|
|
28
|
+
instructions: string | null;
|
|
29
|
+
service_fee: string;
|
|
30
|
+
subtotal: string;
|
|
31
|
+
partner: boolean;
|
|
32
|
+
tax: string;
|
|
33
|
+
payments: any[];
|
|
34
|
+
billing_address: string | null;
|
|
35
|
+
id: string;
|
|
36
|
+
updated_at: string;
|
|
37
|
+
created_at: string;
|
|
38
|
+
hold_placed_at: string | null;
|
|
39
|
+
client: ClientItem;
|
|
40
|
+
};
|
|
41
|
+
export type OrderItem = {
|
|
42
|
+
eticket_delivery: string | null;
|
|
43
|
+
eticket_available: boolean;
|
|
44
|
+
price: string;
|
|
45
|
+
ticket_group: TicketGroupItem;
|
|
46
|
+
eticket_downloaded_at: string;
|
|
47
|
+
quantity: number;
|
|
48
|
+
id: string;
|
|
49
|
+
eticket_downloaded_by: string | null;
|
|
50
|
+
};
|
|
51
|
+
export type TicketGroupItem = {
|
|
52
|
+
remote_id: string;
|
|
53
|
+
office_id: number;
|
|
54
|
+
section: string;
|
|
55
|
+
row: string;
|
|
56
|
+
url: string;
|
|
57
|
+
wholesale_price: number;
|
|
58
|
+
external_notes: string;
|
|
59
|
+
seats: string[];
|
|
60
|
+
retail_price: string;
|
|
61
|
+
quantity: number | null;
|
|
62
|
+
event: Event;
|
|
63
|
+
id: string;
|
|
64
|
+
};
|
|
65
|
+
export type EventItem = {
|
|
66
|
+
occurs_at: string;
|
|
67
|
+
url: string;
|
|
68
|
+
name: string;
|
|
69
|
+
id: string;
|
|
70
|
+
venue: VenueItem;
|
|
71
|
+
};
|
|
72
|
+
export type VenueItem = {
|
|
73
|
+
address: string | null;
|
|
74
|
+
name: string;
|
|
75
|
+
id: string;
|
|
76
|
+
};
|
|
77
|
+
export type BuyerSeller = {
|
|
78
|
+
brokerage: BrokerageItem;
|
|
79
|
+
url: string;
|
|
80
|
+
name: string;
|
|
81
|
+
id: string;
|
|
82
|
+
};
|
|
83
|
+
export type BrokerageItem = {
|
|
84
|
+
url: string;
|
|
85
|
+
name: string;
|
|
86
|
+
id: string;
|
|
87
|
+
abbreviation: string;
|
|
88
|
+
};
|
|
89
|
+
export type ClientItem = {
|
|
90
|
+
phone_numbers: string[];
|
|
91
|
+
email_addresses: string[];
|
|
92
|
+
url: string;
|
|
93
|
+
name: string;
|
|
94
|
+
id: string;
|
|
95
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export type TicketGroup = {
|
|
2
|
+
automated: boolean;
|
|
3
|
+
available_quantity: number;
|
|
4
|
+
discounted: boolean;
|
|
5
|
+
eticket: boolean;
|
|
6
|
+
face_value_display?: number;
|
|
7
|
+
featured: boolean;
|
|
8
|
+
format: string;
|
|
9
|
+
id: number;
|
|
10
|
+
in_hand: boolean;
|
|
11
|
+
in_hand_on: string;
|
|
12
|
+
instant_delivery: boolean;
|
|
13
|
+
owned: boolean;
|
|
14
|
+
public_notes: string;
|
|
15
|
+
quantity: number;
|
|
16
|
+
retail_price: number;
|
|
17
|
+
retail_price_inclusive: number;
|
|
18
|
+
row: string;
|
|
19
|
+
section: string;
|
|
20
|
+
service_fee: number;
|
|
21
|
+
signature?: string;
|
|
22
|
+
splits: number[];
|
|
23
|
+
tevo_section_name: string;
|
|
24
|
+
type: string;
|
|
25
|
+
view_type: string | null;
|
|
26
|
+
wheelchair: boolean;
|
|
27
|
+
wholesale_price: number;
|
|
28
|
+
face_value: number | null;
|
|
29
|
+
seller_cost: number | null;
|
|
30
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Address } from './Address';
|
|
2
|
+
import { Meta } from './Meta';
|
|
3
|
+
import { UpcomingEvents } from './UpcomingEvents';
|
|
4
|
+
export type Venue = {
|
|
5
|
+
id: number;
|
|
6
|
+
name: string;
|
|
7
|
+
keywords: string;
|
|
8
|
+
popularity_score: string;
|
|
9
|
+
url: string;
|
|
10
|
+
slug_url: string;
|
|
11
|
+
location: string;
|
|
12
|
+
country_code: string;
|
|
13
|
+
updated_at: string;
|
|
14
|
+
address: Address;
|
|
15
|
+
upcoming_events: UpcomingEvents;
|
|
16
|
+
slug: string;
|
|
17
|
+
meta: Meta;
|
|
18
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export * from './Address';
|
|
2
|
+
export * from './CatalogGroup';
|
|
3
|
+
export * from './Category';
|
|
4
|
+
export * from './ClientsCreateRequest';
|
|
5
|
+
export * from './ClientsData';
|
|
6
|
+
export * from './Configuration';
|
|
7
|
+
export * from './Event';
|
|
8
|
+
export * from './EventDetail';
|
|
9
|
+
export * from './EventsResponse';
|
|
10
|
+
export * from './Meta';
|
|
11
|
+
export * from './OrderRequest';
|
|
12
|
+
export * from './OrdersResponse';
|
|
13
|
+
export * from './ParentCategory';
|
|
14
|
+
export * from './Performance';
|
|
15
|
+
export * from './Performer';
|
|
16
|
+
export * from './Requirements';
|
|
17
|
+
export * from './SeatingChart';
|
|
18
|
+
export * from './TicketGroup';
|
|
19
|
+
export * from './TicketResponse';
|
|
20
|
+
export * from './UpcomingEvents';
|
|
21
|
+
export * from './Venue';
|