* added airtable personal access token analyzer * updated airtable oauth and pat analyzers * updated airtable entry in analyzer mapping * updated airtablepat error checking, table shape * added more error checks in analyzer code * updated airtable pat analyzer; incorporated feedback; fixed formating issues; improved code readability * updated analyzer type int of planetscale expected output json * fixed spelling in comment * updated expected output analyzer type numbers
24 lines
443 B
Go
24 lines
443 B
Go
package common
|
|
|
|
type AirtableUserInfo struct {
|
|
ID string `json:"id"`
|
|
Email *string `json:"email,omitempty"`
|
|
Scopes []string `json:"scopes"`
|
|
}
|
|
|
|
type AirtableBases struct {
|
|
Bases []struct {
|
|
ID string `json:"id"`
|
|
Name string `json:"name"`
|
|
Schema *Schema `json:"schema,omitempty"`
|
|
} `json:"bases"`
|
|
}
|
|
|
|
type Schema struct {
|
|
Tables []AirtableEntity `json:"tables"`
|
|
}
|
|
|
|
type AirtableEntity struct {
|
|
ID string `json:"id"`
|
|
}
|