Skip to content

Commit 1eed6f8

Browse files
committed
added the Aviato Company Enrich type for responses from the company enrich endpoint
1 parent 2a0b345 commit 1eed6f8

File tree

1 file changed

+165
-34
lines changed

1 file changed

+165
-34
lines changed

engine/plugins/api/aviato/types.go

Lines changed: 165 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -42,24 +42,13 @@ type companySearchResult struct {
4242
IsEstimate bool `json:"isEstimate"`
4343
} `json:"count"`
4444
Items []struct {
45-
ID string `json:"id"`
46-
Name string `json:"name"`
47-
Country string `json:"country"`
48-
Region string `json:"region"`
49-
Locality string `json:"locality"`
50-
URLs struct {
51-
Golden string `json:"golden"`
52-
Contact string `json:"contact"`
53-
Twitter string `json:"twitter"`
54-
Website string `json:"website"`
55-
Facebook string `json:"facebook"`
56-
Linkedin string `json:"linkedin"`
57-
Pitchbook string `json:"pitchbook"`
58-
AngelList string `json:"angelList"`
59-
SignalNFX string `json:"signalNFX"`
60-
Crunchbase string `json:"crunchbase"`
61-
} `json:"URLs"`
62-
IndustryList []string `json:"industryList"`
45+
ID string `json:"id"`
46+
Name string `json:"name"`
47+
Country string `json:"country"`
48+
Region string `json:"region"`
49+
Locality string `json:"locality"`
50+
URLs URLResult `json:"URLs"`
51+
IndustryList []string `json:"industryList"`
6352
} `json:"items"`
6453
}
6554

@@ -93,21 +82,163 @@ type employeeResult struct {
9382
CompanyID string `json:"companyID"`
9483
CompanyName string `json:"companyName"`
9584
Person struct {
96-
ID string `json:"id"`
97-
FullName string `json:"fullName"`
98-
EntityType string `json:"entityType"`
99-
Location string `json:"location"`
100-
URLs struct {
101-
Golden string `json:"golden"`
102-
Contact string `json:"contact"`
103-
Twitter string `json:"twitter"`
104-
Website string `json:"website"`
105-
Facebook string `json:"facebook"`
106-
Linkedin string `json:"linkedin"`
107-
Pitchbook string `json:"pitchbook"`
108-
AngelList string `json:"angelList"`
109-
SignalNFX string `json:"signalNFX"`
110-
Crunchbase string `json:"crunchbase"`
111-
} `json:"URLs"`
85+
ID string `json:"id"`
86+
FullName string `json:"fullName"`
87+
EntityType string `json:"entityType"`
88+
Location string `json:"location"`
89+
URLs URLResult `json:"URLs"`
11290
} `json:"person"`
11391
}
92+
93+
type companyEnrichResult struct {
94+
ID string `json:"id"`
95+
Name string `json:"name"`
96+
LegalName string `json:"legalName"`
97+
AlternateNames []string `json:"alternateNames"`
98+
Status string `json:"status"`
99+
Tagline string `json:"tagline"`
100+
Founded string `json:"founded"`
101+
OwnershipStatus string `json:"ownershipStatus"`
102+
Headcount int `json:"headcount"`
103+
Description string `json:"description"`
104+
IsAcquired bool `json:"isAcquired"`
105+
IsExited bool `json:"isExited"`
106+
IsGovernment bool `json:"isGovernment"`
107+
IsNonProfit bool `json:"isNonProfit"`
108+
IsShutDown bool `json:"isShutDown"`
109+
Locality string `json:"locality"`
110+
Region string `json:"region"`
111+
Country string `json:"country"`
112+
LocationDetails struct {
113+
Continent LocationDetails `json:"continent"`
114+
Country LocationDetails `json:"country"`
115+
County LocationDetails `json:"county"`
116+
LocalAdmin LocationDetails `json:"localadmin"`
117+
Locality LocationDetails `json:"locality"`
118+
Borough LocationDetails `json:"borough"`
119+
Macroregion LocationDetails `json:"macroregion"`
120+
Region LocationDetails `json:"region"`
121+
Macrohood LocationDetails `json:"macrohood"`
122+
Neighbourhood LocationDetails `json:"neighbourhood"`
123+
} `json:"locationDetails"`
124+
LocationIDList []int `json:"locationIDList"`
125+
IndustryList []string `json:"industryList"`
126+
BusinessModelList []string `json:"businessModelList"`
127+
ProductList []struct {
128+
ProductName string `json:"productName"`
129+
Tagline string `json:"tagline"`
130+
CreatedAt string `json:"createdAt"`
131+
ImageID string `json:"imageID"`
132+
ProductURL string `json:"productURL"`
133+
ProductHuntURL string `json:"producthuntURL"`
134+
} `json:"productList"`
135+
CustomerTypes []string `json:"customerTypes"`
136+
JobFamilyList []string `json:"jobFamilyList"`
137+
JobListingList []struct {
138+
Category string `json:"category"`
139+
SubCategory string `json:"subCategory"`
140+
Title string `json:"title"`
141+
IsFullTime bool `json:"isFullTime"`
142+
IsRemote bool `json:"isRemote"`
143+
Locations []string `json:"locations"`
144+
Description string `json:"mdDescription"`
145+
Slug string `json:"slug"`
146+
URL string `json:"url"`
147+
} `json:"jobListingList"`
148+
ScreenshotList []string `json:"screenshotList"`
149+
TargetMarketList []string `json:"targetMarketList"`
150+
TechStackList []struct {
151+
ProductName string `json:"productName"`
152+
ProductCategories []string `json:"productCategories"`
153+
} `json:"techStackList"`
154+
CIKNumber string `json:"CIKNumber"`
155+
NAICSCode string `json:"NAICSCode"`
156+
LinkedinFollowers int `json:"linkedinFollowers"`
157+
LinkedinID string `json:"linkedinID"`
158+
URLs URLResult `json:"URLs"`
159+
WebTrafficSources struct {
160+
Mail float64 `json:"mail"`
161+
Direct float64 `json:"direct"`
162+
Search float64 `json:"search"`
163+
Social float64 `json:"social"`
164+
Referrals float64 `json:"referrals"`
165+
PaidReferrals float64 `json:"paidReferrals"`
166+
} `json:"webTrafficSources"`
167+
AcquiredBy struct {
168+
ID int `json:"id"`
169+
AnnouncedOn string `json:"announcedOn"`
170+
AcquirerName string `json:"acquirerName"`
171+
AcquireeName string `json:"acquireeName"`
172+
Price float64 `json:"price"`
173+
} `json:"acquiredBy"`
174+
CageCode string `json:"cageCode"`
175+
DunsNumber string `json:"dunsNumber"`
176+
EmbeddedNews []struct {
177+
Date string `json:"date"`
178+
Title string `json:"title"`
179+
Author string `json:"author"`
180+
Source string `json:"source"`
181+
URL string `json:"linkUrl"`
182+
ImageURL string `json:"imageUrl"`
183+
} `json:"embeddedNews"`
184+
PatentCount int `json:"patentCount"`
185+
OwnedPatents []struct {
186+
InventionTitle string `json:"inventionTitle"`
187+
DatePublished string `json:"datePublished"`
188+
DocumentID string `json:"documentId"`
189+
DocumentURL string `json:"documentUrl"`
190+
LatestFilingDate string `json:"latestFilingDate"`
191+
} `json:"ownedPatents"`
192+
GovernmentAwards struct {
193+
AwardID string `json:"awardId"`
194+
AwardType string `json:"awardType"`
195+
AwardAmount float64 `json:"awardAmount"`
196+
StartDate string `json:"startDate"`
197+
EndDate string `json:"endDate"`
198+
ActionDate string `json:"actionDate"`
199+
DateSigned string `json:"dateSigned"`
200+
TopTierAgency string `json:"awardingTopTierAgency"`
201+
SubTierAgency string `json:"awardingSubTierAgency"`
202+
Description string `json:"productOrServiceDescription"`
203+
CFDAProgram string `json:"cfdaProgram"`
204+
} `json:"governmentAwards"`
205+
FinancingStatus string `json:"financingStatus"`
206+
TotalFunding float64 `json:"totalFunding"`
207+
InvestorCount int `json:"investorCount"`
208+
FundingRoundCount int `json:"fundingRoundCount"`
209+
LastRoundValuation float64 `json:"lastRoundValuation"`
210+
LatestDealDate string `json:"latestDealDate"`
211+
LatestDealType string `json:"latestDealType"`
212+
LatestDealAmount int `json:"latestDealAmount"`
213+
StockExchange string `json:"stockExchange"`
214+
StockSymbol string `json:"stockSymbol"`
215+
IPODate string `json:"ipoDate"`
216+
SharePrice float64 `json:"sharePrice"`
217+
OutstandingShares float64 `json:"outstandingShares"`
218+
MarketCap float64 `json:"marketCap"`
219+
}
220+
221+
type URLResult struct {
222+
Golden string `json:"golden"`
223+
Contact string `json:"contact"`
224+
Twitter string `json:"twitter"`
225+
Website string `json:"website"`
226+
Facebook string `json:"facebook"`
227+
Linkedin string `json:"linkedin"`
228+
Pitchbook string `json:"pitchbook"`
229+
AngelList string `json:"angelList"`
230+
SignalNFX string `json:"signalNFX"`
231+
Crunchbase string `json:"crunchbase"`
232+
}
233+
234+
type LocationDetails struct {
235+
ID int `json:"id"`
236+
Name string `json:"name"`
237+
PlaceType string `json:"placeType"`
238+
Geometry struct {
239+
AreaSquareDegrees float64 `json:"area_square_degrees"`
240+
BoundingBox string `json:"bbox"`
241+
Latitude float64 `json:"lat"`
242+
Longitude float64 `json:"lon"`
243+
} `json:"geometry"`
244+
}

0 commit comments

Comments
 (0)