-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathtypes.d.ts
84 lines (72 loc) · 1.56 KB
/
types.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
import { type EventInput } from '@fullcalendar/core';
import * as FC from '@fullcalendar/core';
interface InstagramApiGetPostsResponse {
business_discovery: { media: { data: InstagramApiPost[] } }
}
export interface ApiOrganizer {
id: number,
name: string
slug: string
eventsUrl: string
city: string
lastScraped: string | Date
}
export interface ApiEvent {
title: string
start: string | Date
end: string | Date
url: string
extendedProps: EventExtendedProps
}
export interface EventExtendedProps {
description?: string
location?: EventLocation
images?: string[]
createdAt: string | Date
originalUrl: string
organizer: string
}
// The fields that come back on an Instagram post from our API call
export interface InstagramApiPost {
caption?: string
permalink: string
timestamp: string
media_type: string
media_url: string
children?: { data: InstagramApiPostChild[] }
id: string
}
export interface InstagramApiPostChild {
media_url: string
media_type: string
id: string
}
export interface CityEventListing {
city: string
organizer: string
events: EventInput[]
}
export interface EventLocation {
geoJSON?: EventGeoJsonLocation
eventVenue?: EventVenue
}
export interface EventGeoJsonLocation {
type: 'Point',
coordinates: [number, number]
}
export interface EventVenue {
name?: string
address?: VenueAddress
geo?: VenueGeo
}
export interface VenueGeo {
latitude?: number
longitude?: number
}
export interface VenueAddress {
streetAddress?: string
addressLocality?: string
addressRegion?: string
postalCode?: string
addressCountry?: string
}