New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

air-labs-service

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

air-labs-service - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

57

dist/airLabs.type.d.ts

@@ -6,1 +6,58 @@ export type AirLabsServiceConfigType = {

};
export interface IAirLabsResponse<T> extends IAirLabsResponseBase {
response: T;
}
export interface IAirLabsResponseBase {
request: IAirLabsRequest;
terms: string;
}
export interface IAirLabsRequest {
lang: string;
currency: string;
time: number;
id: string;
server: string;
host: string;
pid: number;
key: {
id: number;
api_key: string;
type: string;
expired: string;
registered: string;
upgraded: any;
limits_by_hour: number;
limits_by_minute: number;
limits_by_month: number;
limits_total: number;
};
params: any;
version: number;
method: string;
client: {
ip: string;
geo: {
country_code: string;
country: string;
continent: string;
city: string;
lat: number;
lng: number;
timezone: string;
};
connection: {
type: string;
isp_code: number;
isp_name: string;
};
device: any;
agent: any;
karma: {
is_blocked: boolean;
is_crawler: boolean;
is_bot: boolean;
is_friend: boolean;
is_regular: boolean;
};
};
}

4

dist/airLabsAirport.service.d.ts

@@ -1,2 +0,2 @@

import { AirLabsServiceConfigType } from "./airLabs.type";
import { AirLabsServiceConfigType, IAirLabsResponse } from "./airLabs.type";
import { IAirLabsNearByAirport } from "./airLabsAirport.interface";

@@ -16,3 +16,3 @@ import { AirLabsNearbyAirportType } from "./airLabsAirport.type";

*/
getNearbyAirport(params: AirLabsNearbyAirportType): Promise<IAirLabsNearByAirport>;
getNearbyAirport(params: AirLabsNearbyAirportType): Promise<IAirLabsResponse<Array<IAirLabsNearByAirport>>>;
}

@@ -1,2 +0,2 @@

import { AirLabsServiceConfigType } from "./airLabs.type";
import { AirLabsServiceConfigType, IAirLabsResponse } from "./airLabs.type";
import { IAirLabsAirportData, IAirLabsCityData, IAirLabsFleetData, IAirLabsFlightData, IAirLabsRouteData, IAirLabsSuggestResponse } from "./airLabsData.interface";

@@ -16,3 +16,3 @@ import { AirLabsAirportsDataType, AirLabsCitiesDataType, AirLabsCountriesDataType, AirLabsFleetsDataType, AirLabsFlightsDataType, AirLabsRoutesDataType, AirLabsSuggestDataType } from "./airLabsData.type";

*/
suggest(params: AirLabsSuggestDataType): Promise<IAirLabsSuggestResponse>;
suggest(params: AirLabsSuggestDataType): Promise<IAirLabsResponse<IAirLabsSuggestResponse>>;
/**

@@ -28,3 +28,3 @@ * Airlines API is the most essential data for any travel startup and companies related to the airline industry.

*/
getAirlines(params: AirLabsFlightsDataType): Promise<Array<IAirLabsFlightData>>;
getAirlines(params: AirLabsFlightsDataType): Promise<IAirLabsResponse<Array<IAirLabsFlightData>>>;
/**

@@ -40,3 +40,3 @@ * Airlines API is the most essential data for any travel startup and companies related to the airline industry.

*/
getAirports(params: AirLabsAirportsDataType): Promise<Array<IAirLabsAirportData>>;
getAirports(params: AirLabsAirportsDataType): Promise<IAirLabsResponse<Array<IAirLabsAirportData>>>;
/**

@@ -55,3 +55,3 @@ * City data complements and extends airport data, if you need to create functionality that does not depend on airports,

*/
getCities(params: AirLabsCitiesDataType): Promise<Array<IAirLabsCityData>>;
getCities(params: AirLabsCitiesDataType): Promise<IAirLabsResponse<Array<IAirLabsCityData>>>;
/**

@@ -68,3 +68,3 @@ * This page contains basic and minimum required airplanes information for every airline in the world.

*/
getFleets(params: AirLabsFleetsDataType): Promise<Array<IAirLabsFleetData>>;
getFleets(params: AirLabsFleetsDataType): Promise<IAirLabsResponse<Array<IAirLabsFleetData>>>;
/**

@@ -82,3 +82,3 @@ * Airline Routes Database contains up-to-date schedules that are operated by airlines. This data is not real-time data

*/
getRoutes(params: AirLabsRoutesDataType): Promise<Array<IAirLabsRouteData>>;
getRoutes(params: AirLabsRoutesDataType): Promise<IAirLabsResponse<Array<IAirLabsRouteData>>>;
/**

@@ -96,3 +96,3 @@ * Airline Routes Database contains up-to-date schedules that are operated by airlines. This data is not real-time data

*/
getCountries(params: AirLabsRoutesDataType): Promise<Array<AirLabsCountriesDataType>>;
getCountries(params: AirLabsRoutesDataType): Promise<IAirLabsResponse<Array<AirLabsCountriesDataType>>>;
}

@@ -1,59 +0,1 @@

import { AirLabsFlightTrackerType } from "./airLabsFlight.type";
export interface IAirLabsFlightResponse<T> extends IAirLabsFlight {
response: T;
}
export interface IAirLabsFlight {
request: IAirLabsFlightRequest;
terms: string;
}
export interface IAirLabsFlightRequest {
lang: string;
currency: string;
time: number;
id: string;
server: string;
host: string;
pid: number;
key: {
id: number;
api_key: string;
type: string;
expired: string;
registered: string;
upgraded: any;
limits_by_hour: number;
limits_by_minute: number;
limits_by_month: number;
limits_total: number;
};
params: AirLabsFlightTrackerType;
version: number;
method: string;
client: {
ip: string;
geo: {
country_code: string;
country: string;
continent: string;
city: string;
lat: number;
lng: number;
timezone: string;
};
connection: {
type: string;
isp_code: number;
isp_name: string;
};
device: any;
agent: any;
karma: {
is_blocked: boolean;
is_crawler: boolean;
is_bot: boolean;
is_friend: boolean;
is_regular: boolean;
};
};
}
export interface IAirLabsFlightTrackerResponse {

@@ -60,0 +2,0 @@ /**

@@ -1,3 +0,3 @@

import { AirLabsServiceConfigType } from "./airLabs.type";
import { IAirLabsCreateListenerResponse, IAirLabsFlightDelayResponse, IAirLabsFlightInformationResponse, IAirLabsFlightResponse, IAirLabsFlightScheduleResponse, IAirLabsFlightTrackerResponse, IAirLabsWebhookResponse } from "./airLabsFlight.interface";
import { AirLabsServiceConfigType, IAirLabsResponse } from "./airLabs.type";
import { IAirLabsCreateListenerResponse, IAirLabsFlightDelayResponse, IAirLabsFlightInformationResponse, IAirLabsFlightScheduleResponse, IAirLabsFlightTrackerResponse, IAirLabsWebhookResponse } from "./airLabsFlight.interface";
import { AirLabsFlightDelayType, AirLabsFlightInformationType, AirLabsFlightScheduleType, AirLabsFlightTrackerType, AirLabsCreateListenerType, AirLabsUnListenerType } from "./airLabsFlight.type";

@@ -23,5 +23,5 @@ export declare class AirLabsFlightService {

* @param params
* @returns {IAirLabsFlightResponse<Array<IAirLabsFlightTrackerResponse>> | Array<Array<any>>}
* @returns {IAirLabsResponse<Array<IAirLabsFlightTrackerResponse>> | Array<Array<any>>}
*/
getRealTimeFlightTracker(params: AirLabsFlightTrackerType): Promise<IAirLabsFlightResponse<Array<IAirLabsFlightTrackerResponse>> | Array<Array<any>>>;
getRealTimeFlightTracker(params: AirLabsFlightTrackerType): Promise<IAirLabsResponse<Array<IAirLabsFlightTrackerResponse>> | Array<Array<any>>>;
/**

@@ -42,5 +42,5 @@ *

* @param params
* @returns {IAirLabsFlightResponse<Array<IAirLabsFlightScheduleResponse>>}
* @returns {IAirLabsResponse<Array<IAirLabsFlightScheduleResponse>>}
*/
getFlightSchedules(params: AirLabsFlightScheduleType): Promise<IAirLabsFlightResponse<Array<IAirLabsFlightScheduleResponse>>>;
getFlightSchedules(params: AirLabsFlightScheduleType): Promise<IAirLabsResponse<Array<IAirLabsFlightScheduleResponse>>>;
/**

@@ -55,5 +55,5 @@ *

* @param params
* @returns {IAirLabsFlightResponse<Array<IAirLabsFlightDelayResponse>>}
* @returns {IAirLabsResponse<Array<IAirLabsFlightDelayResponse>>}
*/
getFlightDelays(params: AirLabsFlightDelayType): Promise<IAirLabsFlightResponse<Array<IAirLabsFlightDelayResponse>>>;
getFlightDelays(params: AirLabsFlightDelayType): Promise<IAirLabsResponse<Array<IAirLabsFlightDelayResponse>>>;
/**

@@ -73,5 +73,5 @@ * Alerts API provides access to webhook-based notifications about changes in flight details.

* @param params
* @returns {IAirLabsFlightResponse<IAirLabsCreateListenerResponse>}
* @returns {IAirLabsResponse<IAirLabsCreateListenerResponse>}
*/
registerListener(params: AirLabsCreateListenerType): Promise<IAirLabsFlightResponse<IAirLabsCreateListenerResponse>>;
registerListener(params: AirLabsCreateListenerType): Promise<IAirLabsResponse<IAirLabsCreateListenerResponse>>;
/**

@@ -91,5 +91,5 @@ * Alerts API provides access to webhook-based notifications about changes in flight details.

* @param params
* @returns {IAirLabsFlightResponse<{unlistened:true}>}
* @returns {IAirLabsResponse<{unlistened:true}>}
*/
unRegisterListener(params: AirLabsUnListenerType): Promise<IAirLabsFlightResponse<{
unRegisterListener(params: AirLabsUnListenerType): Promise<IAirLabsResponse<{
unlistened: true;

@@ -111,5 +111,5 @@ }>>;

* @param params
* @returns {IAirLabsFlightResponse<{unlistened:true}>}
* @returns {IAirLabsResponse<{unlistened:true}>}
*/
getAllListeners(): Promise<IAirLabsFlightResponse<{
getAllListeners(): Promise<IAirLabsResponse<{
unlistened: true;

@@ -123,5 +123,5 @@ }>>;

* @param params
* @returns {IAirLabsFlightResponse<Array<IAirLabsWebhookResponse>>}
* @returns {IAirLabsResponse<Array<IAirLabsWebhookResponse>>}
*/
getHistoryWebhooks(days?: number): Promise<IAirLabsFlightResponse<Array<IAirLabsWebhookResponse>>>;
getHistoryWebhooks(days?: number): Promise<IAirLabsResponse<Array<IAirLabsWebhookResponse>>>;
/**

@@ -137,5 +137,5 @@ * The detailed Flight Data API is a perfect combination of schedule data, real-time flight data, and aircraft information for a specific scheduled & live flight.

* @param params
* @returns {IAirLabsFlightResponse<Array<IAirLabsFlightInformationResponse>>}
* @returns {IAirLabsResponse<Array<IAirLabsFlightInformationResponse>>}
*/
getInformationFlight(params: AirLabsFlightInformationType): Promise<IAirLabsFlightResponse<Array<IAirLabsFlightInformationResponse>>>;
getInformationFlight(params: AirLabsFlightInformationType): Promise<IAirLabsResponse<Array<IAirLabsFlightInformationResponse>>>;
}

@@ -42,3 +42,3 @@ "use strict";

* @param params
* @returns {IAirLabsFlightResponse<Array<IAirLabsFlightTrackerResponse>> | Array<Array<any>>}
* @returns {IAirLabsResponse<Array<IAirLabsFlightTrackerResponse>> | Array<Array<any>>}
*/

@@ -68,3 +68,3 @@ async getRealTimeFlightTracker(params) {

* @param params
* @returns {IAirLabsFlightResponse<Array<IAirLabsFlightScheduleResponse>>}
* @returns {IAirLabsResponse<Array<IAirLabsFlightScheduleResponse>>}
*/

@@ -88,3 +88,3 @@ async getFlightSchedules(params) {

* @param params
* @returns {IAirLabsFlightResponse<Array<IAirLabsFlightDelayResponse>>}
* @returns {IAirLabsResponse<Array<IAirLabsFlightDelayResponse>>}
*/

@@ -113,3 +113,3 @@ async getFlightDelays(params) {

* @param params
* @returns {IAirLabsFlightResponse<IAirLabsCreateListenerResponse>}
* @returns {IAirLabsResponse<IAirLabsCreateListenerResponse>}
*/

@@ -138,3 +138,3 @@ async registerListener(params) {

* @param params
* @returns {IAirLabsFlightResponse<{unlistened:true}>}
* @returns {IAirLabsResponse<{unlistened:true}>}
*/

@@ -163,3 +163,3 @@ async unRegisterListener(params) {

* @param params
* @returns {IAirLabsFlightResponse<{unlistened:true}>}
* @returns {IAirLabsResponse<{unlistened:true}>}
*/

@@ -180,3 +180,3 @@ async getAllListeners() {

* @param params
* @returns {IAirLabsFlightResponse<Array<IAirLabsWebhookResponse>>}
* @returns {IAirLabsResponse<Array<IAirLabsWebhookResponse>>}
*/

@@ -202,3 +202,3 @@ async getHistoryWebhooks(days) {

* @param params
* @returns {IAirLabsFlightResponse<Array<IAirLabsFlightInformationResponse>>}
* @returns {IAirLabsResponse<Array<IAirLabsFlightInformationResponse>>}
*/

@@ -205,0 +205,0 @@ async getInformationFlight(params) {

{
"name": "air-labs-service",
"version": "1.0.1",
"version": "1.0.2",
"description": "",

@@ -5,0 +5,0 @@ "scripts": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc