Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(airline): add airline module #1699

Merged
Merged
Show file tree
Hide file tree
Changes from 74 commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
c11fff7
Add airline module
matthewpetro Dec 24, 2022
48e543f
Added airline module
matthewpetro Dec 28, 2022
0791758
Added airline definitions
matthewpetro Dec 29, 2022
405bfc4
Correctly generated locale index file for airline module
matthewpetro Dec 29, 2022
488f9bf
Added definition file for airport codes
matthewpetro Dec 29, 2022
3a783ee
Code and comment cleanup
matthewpetro Dec 29, 2022
aac2e5f
More code and comment cleanup
matthewpetro Dec 29, 2022
882f03d
Renamed airport definition file
matthewpetro Dec 30, 2022
8a01b08
Use faker's random number generator
matthewpetro Dec 30, 2022
7ca3d3c
Correctly use faker's random number generator
matthewpetro Dec 30, 2022
5f52725
Added tests for airline module
matthewpetro Dec 30, 2022
c6983ae
Added airline test snapshot
matthewpetro Dec 30, 2022
3d3955e
Merge branch 'next' into feat/modules/airline/add-airline-module
matthewpetro Dec 30, 2022
353deda
Improvements based on PR comments
matthewpetro Dec 30, 2022
de8e31d
Reduced to only 1000 entries
matthewpetro Dec 30, 2022
f66b256
Updated airline snapshot tests
matthewpetro Dec 31, 2022
cf75111
Merge branch 'next' into feat/modules/airline/add-airline-module
matthewpetro Dec 31, 2022
82ed7c7
Updated documentation and added aircraftType() function
matthewpetro Dec 31, 2022
0d833ed
Added tests for aircraftType() function
matthewpetro Dec 31, 2022
58daf6e
Updated airline example
matthewpetro Dec 31, 2022
9cc0a54
Cleaned up linter issues
matthewpetro Dec 31, 2022
8efacb0
Fixed JSDoc for aircraftType
matthewpetro Jan 1, 2023
2158ccc
Merge branch 'faker-js:next' into feat/modules/airline/add-airline-mo…
matthewpetro Jan 2, 2023
66c6362
Updated airports to include name and IATA code
matthewpetro Jan 3, 2023
aa438f6
Added airline definition file and function
matthewpetro Jan 3, 2023
0551076
Added airplane definition file and function
matthewpetro Jan 3, 2023
6a0e0dc
Updated type definition to match new data
matthewpetro Jan 3, 2023
376455a
Added flightNumber function
matthewpetro Jan 3, 2023
7703cc5
Fix for airplane definition name
matthewpetro Jan 3, 2023
2b8d613
Updated tests to include airplane and airline
matthewpetro Jan 3, 2023
25bf9a2
Fixed JSDocs
matthewpetro Jan 3, 2023
495ef5e
More JSDoc updates
matthewpetro Jan 3, 2023
1c5120c
Updated airline example in the readme
matthewpetro Jan 3, 2023
81f9d18
Order airports by name to match other definitions
matthewpetro Jan 3, 2023
dd9d578
Correctly formatted airplane defintion file
matthewpetro Jan 3, 2023
bf66c27
Updated airplane definition file
matthewpetro Jan 5, 2023
72b8e2f
Updated airport definition file
matthewpetro Jan 5, 2023
8e2d255
Added some airports in Oceania
matthewpetro Jan 5, 2023
8633d5b
Updated airline defintion file
matthewpetro Jan 5, 2023
a70c48c
Updated airline module test snapshot
matthewpetro Jan 5, 2023
95c8e19
Merge branch 'next' into feat/modules/airline/add-airline-module
matthewpetro Jan 5, 2023
bbc14fa
Couple fixes based on PR review comments
matthewpetro Jan 5, 2023
38d65f1
Merge branch 'next' into feat/modules/airline/add-airline-module
matthewpetro Jan 5, 2023
4608ea1
Made properties of interfaces readonly
matthewpetro Jan 6, 2023
28745ed
Don't freeze the arrays
matthewpetro Jan 6, 2023
88c6004
Merge branch 'next' into feat/modules/airline/add-airline-module
matthewpetro Jan 6, 2023
9400aa4
Removed readonly from locale array definitions
matthewpetro Jan 6, 2023
e38027d
Fixed formatting and linter issues
matthewpetro Jan 6, 2023
886fd15
Merge branch 'next' into feat/modules/airline/add-airline-module
matthewpetro Jan 7, 2023
69450c0
Merge branch 'next' into feat/modules/airline/add-airline-module
matthewpetro Jan 10, 2023
9c67763
Added example on flightNumber function
matthewpetro Jan 10, 2023
4869642
Merge branch 'next' into feat/modules/airline/add-airline-module
ST-DDT Jan 10, 2023
e51384d
Fixed docs for flightNumber function
matthewpetro Jan 11, 2023
c782db9
Merge branch 'next' into feat/modules/airline/add-airline-module
ST-DDT Jan 11, 2023
a8a1c12
Merge branch 'next' into feat/modules/airline/add-airline-module
matthewpetro Jan 13, 2023
bc7850b
Updated JSDocs for airplane() function
matthewpetro Jan 13, 2023
4886fe4
Merge branch 'faker-js:next' into feat/modules/airline/add-airline-mo…
matthewpetro Jan 16, 2023
bff87f4
Merge branch 'next' into feat/modules/airline/add-airline-module
matthewpetro Jan 17, 2023
b58ab6b
Renamed airline locale defintion file
matthewpetro Jan 17, 2023
0090dcc
Regenerated airline locale index file
matthewpetro Jan 17, 2023
032dbb1
Updated to new name for airline definition
matthewpetro Jan 17, 2023
023cd51
Updated field name in LocaleEntry type
matthewpetro Jan 18, 2023
8d5a2f9
Fixed flight number test
matthewpetro Jan 18, 2023
72ca8bd
Merge branch 'faker-js:next' into feat/modules/airline/add-airline-mo…
matthewpetro Jan 18, 2023
b81ea07
Merge branch 'faker-js:next' into feat/modules/airline/add-airline-mo…
matthewpetro Jan 21, 2023
fad2a24
Updated JSDocs for option params
matthewpetro Jan 21, 2023
af1aa91
Merge branch 'next' into feat/modules/airline/add-airline-module
ST-DDT Jan 22, 2023
0e20de6
Added param doc for flightNumber length
matthewpetro Jan 22, 2023
6d5089f
Specify types for lookup objects
matthewpetro Jan 28, 2023
4d9a180
Merge branch 'next' into feat/modules/airline/add-airline-module
ST-DDT Jan 29, 2023
e31f582
Merge branch 'next' into feat/modules/airline/add-airline-module
matthewpetro Jan 29, 2023
b9bb89b
Merge branch 'next' into feat/modules/airline/add-airline-module
ST-DDT Jan 29, 2023
6e50b54
Fixed en locale index file
matthewpetro Jan 30, 2023
ea7d931
Merge branch 'next' into feat/modules/airline/add-airline-module
ST-DDT Jan 30, 2023
b2ebec8
Merge branch 'next' into feat/modules/airline/add-airline-module
ST-DDT Jan 30, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ The API covers the following modules:

| Module | Example | Output |
| -------- | --------------------------------------------- | -------------------------------------------------------------------------------------------------- |
| Airline | `faker.airline.airport()` | `{ name: 'Dallas Fort Worth International Airport', iataCode: 'DFW' }` |
| Animal | `faker.animal.cat()` | Norwegian Forest Cat |
| Color | `faker.color.rgb()` | #cdfcdc |
| Commerce | `faker.commerce.product()` | Polo t-shirt |
Expand Down
1 change: 1 addition & 0 deletions docs/.vitepress/api-pages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Run 'pnpm run generate:api-docs' to update
export const apiPages = [
{ text: 'Overview', link: '/api/' },
{ text: 'Airline', link: '/api/airline.html' },
{ text: 'Animal', link: '/api/animal.html' },
{ text: 'Color', link: '/api/color.html' },
{ text: 'Commerce', link: '/api/commerce.html' },
Expand Down
1 change: 1 addition & 0 deletions scripts/generateLocales.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ type DefinitionsType = {
* The types of the definitions.
*/
const definitionsTypes: DefinitionsType = {
airline: 'AirlineDefinitions',
animal: 'AnimalDefinitions',
color: 'ColorDefinitions',
commerce: 'CommerceDefinitions',
Expand Down
19 changes: 19 additions & 0 deletions src/definitions/airline.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import type { Airline, Airplane, Airport } from '../modules/airline';
import type { LocaleEntry } from './definitions';

export type AirlineDefinitions = LocaleEntry<{
/**
* Some airline information
*/
airline: Airline[];

/**
* Some airplane information
*/
airplane: Airplane[];

/**
* Some airport information
*/
airport: Airport[];
}>;
2 changes: 2 additions & 0 deletions src/definitions/definitions.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import type { AirlineDefinitions } from './airline';
import type { AnimalDefinitions } from './animal';
import type { ColorDefinitions } from './color';
import type { CommerceDefinitions } from './commerce';
Expand Down Expand Up @@ -26,6 +27,7 @@ export type LocaleEntry<T> = Partial<T> &
* The definitions as used by the Faker modules.
*/
export interface Definitions {
airline: AirlineDefinitions;
animal: AnimalDefinitions;
color: ColorDefinitions;
commerce: CommerceDefinitions;
Expand Down
1 change: 1 addition & 0 deletions src/definitions/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export type { AirlineDefinitions } from './airline';
export type { AnimalDefinitions } from './animal';
export type { ColorDefinitions } from './color';
export type {
Expand Down
2 changes: 2 additions & 0 deletions src/faker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { deprecated } from './internal/deprecated';
import type { Mersenne } from './internal/mersenne/mersenne';
import mersenne from './internal/mersenne/mersenne';
import type { KnownLocale } from './locales';
import { AirlineModule } from './modules/airline';
import { AnimalModule } from './modules/animal';
import { ColorModule } from './modules/color';
import { CommerceModule } from './modules/commerce';
Expand Down Expand Up @@ -113,6 +114,7 @@ export class Faker {

readonly datatype: DatatypeModule = new DatatypeModule(this);

readonly airline: AirlineModule = new AirlineModule(this);
readonly animal: AnimalModule = new AnimalModule(this);
readonly color: ColorModule = new ColorModule(this);
readonly commerce: CommerceModule = new CommerceModule(this);
Expand Down
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Faker } from './faker';
import allLocales from './locales';

export type {
AirlineDefinitions,
AnimalDefinitions,
ColorDefinitions,
CommerceDefinitions,
Expand Down Expand Up @@ -35,6 +36,8 @@ export type {
} from './definitions';
export { FakerError } from './errors/faker-error';
export type { FakerOptions, UsableLocale, UsedLocales } from './faker';
export { Aircraft, AircraftType } from './modules/airline';
export type { AirlineModule } from './modules/airline';
export type { AnimalModule } from './modules/animal';
export type {
Casing,
Expand Down
127 changes: 127 additions & 0 deletions src/locales/en/airline/airline.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
export default [
{ name: 'Aegean Airlines', iataCode: 'A3' },
{ name: 'Aeroflot', iataCode: 'SU' },
{ name: 'Aerolineas Argentinas', iataCode: 'AR' },
{ name: 'Aeromexico', iataCode: 'AM' },
{ name: 'Air Algerie', iataCode: 'AH' },
{ name: 'Air Arabia', iataCode: 'G9' },
{ name: 'Air Canada', iataCode: 'AC' },
{ name: 'Air China', iataCode: 'CA' },
{ name: 'Air Europa', iataCode: 'UX' },
{ name: 'Air France-KLM', iataCode: 'AF' },
{ name: 'Air India', iataCode: 'AI' },
{ name: 'Air Mauritius', iataCode: 'MK' },
{ name: 'Air New Zealand', iataCode: 'NZ' },
{ name: 'Air Niugini', iataCode: 'PX' },
{ name: 'Air Tahiti', iataCode: 'VT' },
{ name: 'Air Tahiti Nui', iataCode: 'TN' },
{ name: 'Air Transat', iataCode: 'TS' },
{ name: 'AirAsia X', iataCode: 'D7' },
{ name: 'AirAsia', iataCode: 'AK' },
{ name: 'Aircalin', iataCode: 'SB' },
{ name: 'Alaska Airlines', iataCode: 'AS' },
{ name: 'Alitalia', iataCode: 'AZ' },
{ name: 'All Nippon Airways', iataCode: 'NH' },
{ name: 'Allegiant Air', iataCode: 'G4' },
{ name: 'American Airlines', iataCode: 'AA' },
{ name: 'Asiana Airlines', iataCode: 'OZ' },
{ name: 'Avianca', iataCode: 'AV' },
{ name: 'Azul Linhas Aereas Brasileiras', iataCode: 'AD' },
{ name: 'Azur Air', iataCode: 'ZF' },
{ name: 'Beijing Capital Airlines', iataCode: 'JD' },
{ name: 'Boliviana de Aviacion', iataCode: 'OB' },
{ name: 'British Airways', iataCode: 'BA' },
{ name: 'Cathay Pacific', iataCode: 'CX' },
{ name: 'Cebu Pacific Air', iataCode: '5J' },
{ name: 'China Airlines', iataCode: 'CI' },
{ name: 'China Eastern Airlines', iataCode: 'MU' },
{ name: 'China Southern Airlines', iataCode: 'CZ' },
{ name: 'Condor', iataCode: 'DE' },
{ name: 'Copa Airlines', iataCode: 'CM' },
{ name: 'Delta Air Lines', iataCode: 'DL' },
{ name: 'Easyfly', iataCode: 'VE' },
{ name: 'EasyJet', iataCode: 'U2' },
{ name: 'EcoJet', iataCode: '8J' },
{ name: 'Egyptair', iataCode: 'MS' },
{ name: 'El Al', iataCode: 'LY' },
{ name: 'Emirates Airlines', iataCode: 'EK' },
{ name: 'Ethiopian Airlines', iataCode: 'ET' },
{ name: 'Etihad Airways', iataCode: 'EY' },
{ name: 'EVA Air', iataCode: 'BR' },
{ name: 'Fiji Airways', iataCode: 'FJ' },
{ name: 'Finnair', iataCode: 'AY' },
{ name: 'Flybondi', iataCode: 'FO' },
{ name: 'Flydubai', iataCode: 'FZ' },
{ name: 'FlySafair', iataCode: 'FA' },
{ name: 'Frontier Airlines', iataCode: 'F9' },
{ name: 'Garuda Indonesia', iataCode: 'GA' },
{ name: 'Go First', iataCode: 'G8' },
{ name: 'Gol Linhas Aereas Inteligentes', iataCode: 'G3' },
{ name: 'Hainan Airlines', iataCode: 'HU' },
{ name: 'Hawaiian Airlines', iataCode: 'HA' },
{ name: 'IndiGo Airlines', iataCode: '6E' },
{ name: 'Japan Airlines', iataCode: 'JL' },
{ name: 'Jeju Air', iataCode: '7C' },
{ name: 'Jet2', iataCode: 'LS' },
{ name: 'JetBlue Airways', iataCode: 'B6' },
{ name: 'JetSMART', iataCode: 'JA' },
{ name: 'Juneyao Airlines', iataCode: 'HO' },
{ name: 'Kenya Airways', iataCode: 'KQ' },
{ name: 'Korean Air', iataCode: 'KE' },
{ name: 'Kulula.com', iataCode: 'MN' },
{ name: 'LATAM Airlines', iataCode: 'LA' },
{ name: 'Lion Air', iataCode: 'JT' },
{ name: 'LOT Polish Airlines', iataCode: 'LO' },
{ name: 'Lufthansa', iataCode: 'LH' },
{ name: 'Libyan Airlines', iataCode: 'LN' },
{ name: 'Linea Aerea Amaszonas', iataCode: 'Z8' },
{ name: 'Malaysia Airlines', iataCode: 'MH' },
{ name: 'Nordwind Airlines', iataCode: 'N4' },
{ name: 'Norwegian Air Shuttle', iataCode: 'DY' },
{ name: 'Oman Air', iataCode: 'WY' },
{ name: 'Pakistan International Airlines', iataCode: 'PK' },
{ name: 'Pegasus Airlines', iataCode: 'PC' },
{ name: 'Philippine Airlines', iataCode: 'PR' },
{ name: 'Qantas Group', iataCode: 'QF' },
{ name: 'Qatar Airways', iataCode: 'QR' },
{ name: 'Republic Airways', iataCode: 'YX' },
{ name: 'Royal Air Maroc', iataCode: 'AT' },
{ name: 'Ryanair', iataCode: 'FR' },
{ name: 'S7 Airlines', iataCode: 'S7' },
{ name: 'SAS', iataCode: 'SK' },
{ name: 'Satena', iataCode: '9R' },
{ name: 'Saudia', iataCode: 'SV' },
{ name: 'Shandong Airlines', iataCode: 'SC' },
{ name: 'Sichuan Airlines', iataCode: '3U' },
{ name: 'Singapore Airlines', iataCode: 'SQ' },
{ name: 'Sky Airline', iataCode: 'H2' },
{ name: 'SkyWest Airlines', iataCode: 'OO' },
{ name: 'South African Airways', iataCode: 'SA' },
{ name: 'Southwest Airlines', iataCode: 'WN' },
{ name: 'SpiceJet', iataCode: 'SG' },
{ name: 'Spirit Airlines', iataCode: 'NK' },
{ name: 'Spring Airlines', iataCode: '9S' },
{ name: 'SriLankan Airlines', iataCode: 'UL' },
{ name: 'Star Peru', iataCode: '2I' },
{ name: 'Sun Country Airlines', iataCode: 'SY' },
{ name: 'SunExpress', iataCode: 'XQ' },
{ name: 'TAP Air Portugal', iataCode: 'TP' },
{ name: 'Thai AirAsia', iataCode: 'FD' },
{ name: 'Thai Airways', iataCode: 'TG' },
{ name: 'TUI Airways', iataCode: 'BY' },
{ name: 'Tunisair', iataCode: 'TU' },
{ name: 'Turkish Airlines', iataCode: 'TK' },
{ name: 'Ukraine International', iataCode: 'PS' },
{ name: 'United Airlines', iataCode: 'UA' },
{ name: 'Ural Airlines', iataCode: 'U6' },
{ name: 'VietJet Air', iataCode: 'VJ' },
{ name: 'Vietnam Airlines', iataCode: 'VN' },
{ name: 'Virgin Atlantic Airways', iataCode: 'VS' },
{ name: 'Virgin Australia', iataCode: 'VA' },
{ name: 'VivaAerobus', iataCode: 'VB' },
{ name: 'VOEPASS Linhas Aereas', iataCode: '2Z' },
{ name: 'Volaris', iataCode: 'Y4' },
{ name: 'WestJet', iataCode: 'WS' },
{ name: 'Wingo', iataCode: 'P5' },
{ name: 'Wizz Air', iataCode: 'W6' },
];
157 changes: 157 additions & 0 deletions src/locales/en/airline/airplane.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
export default [
{ name: 'Aerospatiale/BAC Concorde', iataTypeCode: 'SSC' },
{ name: 'Airbus A300', iataTypeCode: 'AB3' },
{ name: 'Airbus A310', iataTypeCode: '310' },
{ name: 'Airbus A310-200', iataTypeCode: '312' },
{ name: 'Airbus A310-300', iataTypeCode: '313' },
{ name: 'Airbus A318', iataTypeCode: '318' },
{ name: 'Airbus A319', iataTypeCode: '319' },
{ name: 'Airbus A319neo', iataTypeCode: '31N' },
{ name: 'Airbus A320', iataTypeCode: '320' },
{ name: 'Airbus A320neo', iataTypeCode: '32N' },
{ name: 'Airbus A321', iataTypeCode: '321' },
{ name: 'Airbus A321neo', iataTypeCode: '32Q' },
{ name: 'Airbus A330', iataTypeCode: '330' },
{ name: 'Airbus A330-200', iataTypeCode: '332' },
{ name: 'Airbus A330-300', iataTypeCode: '333' },
{ name: 'Airbus A330-800neo', iataTypeCode: '338' },
{ name: 'Airbus A330-900neo', iataTypeCode: '339' },
{ name: 'Airbus A340', iataTypeCode: '340' },
{ name: 'Airbus A340-200', iataTypeCode: '342' },
{ name: 'Airbus A340-300', iataTypeCode: '343' },
{ name: 'Airbus A340-500', iataTypeCode: '345' },
{ name: 'Airbus A340-600', iataTypeCode: '346' },
{ name: 'Airbus A350', iataTypeCode: '350' },
{ name: 'Airbus A350-900', iataTypeCode: '359' },
{ name: 'Airbus A350-1000', iataTypeCode: '351' },
{ name: 'Airbus A380', iataTypeCode: '380' },
{ name: 'Airbus A380-800', iataTypeCode: '388' },
{ name: 'Antonov An-12', iataTypeCode: 'ANF' },
{ name: 'Antonov An-24', iataTypeCode: 'AN4' },
{ name: 'Antonov An-26', iataTypeCode: 'A26' },
{ name: 'Antonov An-28', iataTypeCode: 'A28' },
{ name: 'Antonov An-30', iataTypeCode: 'A30' },
{ name: 'Antonov An-32', iataTypeCode: 'A32' },
{ name: 'Antonov An-72', iataTypeCode: 'AN7' },
{ name: 'Antonov An-124 Ruslan', iataTypeCode: 'A4F' },
{ name: 'Antonov An-140', iataTypeCode: 'A40' },
{ name: 'Antonov An-148', iataTypeCode: 'A81' },
{ name: 'Antonov An-158', iataTypeCode: 'A58' },
{ name: 'Antonov An-225 Mriya', iataTypeCode: 'A5F' },
{ name: 'Boeing 707', iataTypeCode: '703' },
{ name: 'Boeing 717', iataTypeCode: '717' },
{ name: 'Boeing 720B', iataTypeCode: 'B72' },
{ name: 'Boeing 727', iataTypeCode: '727' },
{ name: 'Boeing 727-100', iataTypeCode: '721' },
{ name: 'Boeing 727-200', iataTypeCode: '722' },
{ name: 'Boeing 737 MAX 7', iataTypeCode: '7M7' },
{ name: 'Boeing 737 MAX 8', iataTypeCode: '7M8' },
{ name: 'Boeing 737 MAX 9', iataTypeCode: '7M9' },
{ name: 'Boeing 737 MAX 10', iataTypeCode: '7MJ' },
{ name: 'Boeing 737', iataTypeCode: '737' },
{ name: 'Boeing 737-100', iataTypeCode: '731' },
{ name: 'Boeing 737-200', iataTypeCode: '732' },
{ name: 'Boeing 737-300', iataTypeCode: '733' },
{ name: 'Boeing 737-400', iataTypeCode: '734' },
{ name: 'Boeing 737-500', iataTypeCode: '735' },
{ name: 'Boeing 737-600', iataTypeCode: '736' },
{ name: 'Boeing 737-700', iataTypeCode: '73G' },
{ name: 'Boeing 737-800', iataTypeCode: '738' },
{ name: 'Boeing 737-900', iataTypeCode: '739' },
{ name: 'Boeing 747', iataTypeCode: '747' },
{ name: 'Boeing 747-100', iataTypeCode: '741' },
{ name: 'Boeing 747-200', iataTypeCode: '742' },
{ name: 'Boeing 747-300', iataTypeCode: '743' },
{ name: 'Boeing 747-400', iataTypeCode: '744' },
{ name: 'Boeing 747-400D', iataTypeCode: '74J' },
{ name: 'Boeing 747-8', iataTypeCode: '748' },
{ name: 'Boeing 747SP', iataTypeCode: '74L' },
{ name: 'Boeing 747SR', iataTypeCode: '74R' },
{ name: 'Boeing 757', iataTypeCode: '757' },
{ name: 'Boeing 757-200', iataTypeCode: '752' },
{ name: 'Boeing 757-300', iataTypeCode: '753' },
{ name: 'Boeing 767', iataTypeCode: '767' },
{ name: 'Boeing 767-200', iataTypeCode: '762' },
{ name: 'Boeing 767-300', iataTypeCode: '763' },
{ name: 'Boeing 767-400', iataTypeCode: '764' },
{ name: 'Boeing 777', iataTypeCode: '777' },
{ name: 'Boeing 777-200', iataTypeCode: '772' },
{ name: 'Boeing 777-200LR', iataTypeCode: '77L' },
{ name: 'Boeing 777-300', iataTypeCode: '773' },
{ name: 'Boeing 777-300ER', iataTypeCode: '77W' },
{ name: 'Boeing 787', iataTypeCode: '787' },
{ name: 'Boeing 787-8', iataTypeCode: '788' },
{ name: 'Boeing 787-9', iataTypeCode: '789' },
{ name: 'Boeing 787-10', iataTypeCode: '781' },
{ name: 'Canadair Challenger', iataTypeCode: 'CCJ' },
{ name: 'Canadair CL-44', iataTypeCode: 'CL4' },
{ name: 'Canadair Regional Jet 100', iataTypeCode: 'CR1' },
{ name: 'Canadair Regional Jet 200', iataTypeCode: 'CR2' },
{ name: 'Canadair Regional Jet 700', iataTypeCode: 'CR7' },
{ name: 'Canadair Regional Jet 705', iataTypeCode: 'CRA' },
{ name: 'Canadair Regional Jet 900', iataTypeCode: 'CR9' },
{ name: 'Canadair Regional Jet 1000', iataTypeCode: 'CRK' },
{ name: 'De Havilland Canada DHC-2 Beaver', iataTypeCode: 'DHP' },
{ name: 'De Havilland Canada DHC-2 Turbo-Beaver', iataTypeCode: 'DHR' },
{ name: 'De Havilland Canada DHC-3 Otter', iataTypeCode: 'DHL' },
{ name: 'De Havilland Canada DHC-4 Caribou', iataTypeCode: 'DHC' },
{ name: 'De Havilland Canada DHC-6 Twin Otter', iataTypeCode: 'DHT' },
{ name: 'De Havilland Canada DHC-7 Dash 7', iataTypeCode: 'DH7' },
{ name: 'De Havilland Canada DHC-8-100 Dash 8 / 8Q', iataTypeCode: 'DH1' },
{ name: 'De Havilland Canada DHC-8-200 Dash 8 / 8Q', iataTypeCode: 'DH2' },
{ name: 'De Havilland Canada DHC-8-300 Dash 8 / 8Q', iataTypeCode: 'DH3' },
{ name: 'De Havilland Canada DHC-8-400 Dash 8Q', iataTypeCode: 'DH4' },
{ name: 'De Havilland DH.104 Dove', iataTypeCode: 'DHD' },
{ name: 'De Havilland DH.114 Heron', iataTypeCode: 'DHH' },
{ name: 'Douglas DC-3', iataTypeCode: 'D3F' },
{ name: 'Douglas DC-6', iataTypeCode: 'D6F' },
{ name: 'Douglas DC-8-50', iataTypeCode: 'D8T' },
{ name: 'Douglas DC-8-62', iataTypeCode: 'D8L' },
{ name: 'Douglas DC-8-72', iataTypeCode: 'D8Q' },
{ name: 'Douglas DC-9-10', iataTypeCode: 'D91' },
{ name: 'Douglas DC-9-20', iataTypeCode: 'D92' },
{ name: 'Douglas DC-9-30', iataTypeCode: 'D93' },
{ name: 'Douglas DC-9-40', iataTypeCode: 'D94' },
{ name: 'Douglas DC-9-50', iataTypeCode: 'D95' },
{ name: 'Douglas DC-10', iataTypeCode: 'D10' },
{ name: 'Douglas DC-10-10', iataTypeCode: 'D1X' },
{ name: 'Douglas DC-10-30', iataTypeCode: 'D1Y' },
{ name: 'Embraer 170', iataTypeCode: 'E70' },
{ name: 'Embraer 175', iataTypeCode: 'E75' },
{ name: 'Embraer 190', iataTypeCode: 'E90' },
{ name: 'Embraer 195', iataTypeCode: 'E95' },
{ name: 'Embraer E190-E2', iataTypeCode: '290' },
{ name: 'Embraer E195-E2', iataTypeCode: '295' },
{ name: 'Embraer EMB.110 Bandeirante', iataTypeCode: 'EMB' },
{ name: 'Embraer EMB.120 Brasilia', iataTypeCode: 'EM2' },
{ name: 'Embraer Legacy 600', iataTypeCode: 'ER3' },
{ name: 'Embraer Phenom 100', iataTypeCode: 'EP1' },
{ name: 'Embraer Phenom 300', iataTypeCode: 'EP3' },
{ name: 'Embraer RJ135', iataTypeCode: 'ER3' },
{ name: 'Embraer RJ140', iataTypeCode: 'ERD' },
{ name: 'Embraer RJ145 Amazon', iataTypeCode: 'ER4' },
{ name: 'Ilyushin IL18', iataTypeCode: 'IL8' },
{ name: 'Ilyushin IL62', iataTypeCode: 'IL6' },
{ name: 'Ilyushin IL76', iataTypeCode: 'IL7' },
{ name: 'Ilyushin IL86', iataTypeCode: 'ILW' },
{ name: 'Ilyushin IL96-300', iataTypeCode: 'I93' },
{ name: 'Ilyushin IL114', iataTypeCode: 'I14' },
{ name: 'Lockheed L-182 / 282 / 382 (L-100) Hercules', iataTypeCode: 'LOH' },
{ name: 'Lockheed L-188 Electra', iataTypeCode: 'LOE' },
{ name: 'Lockheed L-1011 Tristar', iataTypeCode: 'L10' },
{ name: 'Lockheed L-1049 Super Constellation', iataTypeCode: 'L49' },
{ name: 'McDonnell Douglas MD11', iataTypeCode: 'M11' },
{ name: 'McDonnell Douglas MD80', iataTypeCode: 'M80' },
{ name: 'McDonnell Douglas MD81', iataTypeCode: 'M81' },
{ name: 'McDonnell Douglas MD82', iataTypeCode: 'M82' },
{ name: 'McDonnell Douglas MD83', iataTypeCode: 'M83' },
{ name: 'McDonnell Douglas MD87', iataTypeCode: 'M87' },
{ name: 'McDonnell Douglas MD88', iataTypeCode: 'M88' },
{ name: 'McDonnell Douglas MD90', iataTypeCode: 'M90' },
{ name: 'Sukhoi Superjet 100-95', iataTypeCode: 'SU9' },
{ name: 'Tupolev Tu-134', iataTypeCode: 'TU3' },
{ name: 'Tupolev Tu-154', iataTypeCode: 'TU5' },
{ name: 'Tupolev Tu-204', iataTypeCode: 'T20' },
{ name: 'Yakovlev Yak-40', iataTypeCode: 'YK4' },
{ name: 'Yakovlev Yak-42', iataTypeCode: 'YK2' },
];
Loading