@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.
@@ -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,9 @@
1
+ import { SeatingChart } from './SeatingChart';
2
+ export type Configuration = {
3
+ id: number;
4
+ url: string;
5
+ name: string;
6
+ fanvenues_key: string;
7
+ ticket_utils_id: number | null;
8
+ seating_chart: SeatingChart;
9
+ };
@@ -0,0 +1,6 @@
1
+ export type EmailAddress = {
2
+ address: string;
3
+ label: string;
4
+ id?: string;
5
+ primary: boolean;
6
+ };
@@ -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,5 @@
1
+ import { Meta } from './Meta';
2
+ import { Event } from './Event';
3
+ export type EventDetail = Event & {
4
+ meta: Meta;
5
+ };
@@ -0,0 +1,7 @@
1
+ import { Event } from './Event';
2
+ export type EventsResponse = {
3
+ current_page: number;
4
+ per_page: number;
5
+ total_entries: number;
6
+ events: Event[];
7
+ };
@@ -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,8 @@
1
+ export type ParentCategory = {
2
+ id: string;
3
+ name: string;
4
+ slug: string;
5
+ url: string;
6
+ slug_url: string;
7
+ parent: null;
8
+ };
@@ -0,0 +1,5 @@
1
+ import { Performer } from './Performer';
2
+ export type Performance = {
3
+ performer: Performer;
4
+ primary: boolean;
5
+ };
@@ -0,0 +1,7 @@
1
+ export type Performer = {
2
+ id: number;
3
+ slug: string;
4
+ slug_url: string;
5
+ url: string;
6
+ name: string;
7
+ };
@@ -0,0 +1,5 @@
1
+ export type Requirements = {
2
+ face_value_display: boolean;
3
+ inclusive_pricing: boolean;
4
+ seat_number_display: boolean;
5
+ };
@@ -0,0 +1,4 @@
1
+ export type SeatingChart = {
2
+ medium: string;
3
+ large: string;
4
+ };
@@ -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,5 @@
1
+ import { TicketGroup } from './TicketGroup';
2
+ export type TicketResponse = {
3
+ total_entries: number;
4
+ ticket_groups: TicketGroup[];
5
+ };
@@ -0,0 +1,4 @@
1
+ export type UpcomingEvents = {
2
+ first: string;
3
+ last: string;
4
+ };
@@ -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';