Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@maxim_mazurok/gapi.client.travelimpactmodel-v1

Package Overview
Dependencies
Maintainers
1
Versions
408
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@maxim_mazurok/gapi.client.travelimpactmodel-v1 - npm Package Compare versions

Comparing version 0.0.20230425 to 0.0.20230427

134

index.d.ts

@@ -12,3 +12,3 @@ /* Type definitions for non-npm package Travel Impact Model API v1 0.0 */

// Generated from: https://travelimpactmodel.googleapis.com/$discovery/rest?version=v1
// Revision: 20230425
// Revision: 20230427

@@ -28,25 +28,34 @@ /// <reference types="gapi.client" />

/** Required. Direct flights to return emission estimates for. */
flights?: Flight[];
flights?:
Flight[];
}
interface ComputeFlightEmissionsResponse {
/** List of flight legs with emission estimates. */
flightEmissions?: FlightWithEmissions[];
flightEmissions?:
FlightWithEmissions[];
/** The model version under which emission estimates for all flights in this response were computed. */
modelVersion?: ModelVersion;
modelVersion?:
ModelVersion;
}
interface Date {
/** Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant. */
day?: number;
day?:
number;
/** Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. */
month?: number;
month?:
number;
/** Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. */
year?: number;
year?:
number;
}
interface EmissionsGramsPerPax {
/** Emissions for one passenger in business class in grams. This field is always computed and populated, regardless of whether the aircraft has business class seats or not. */
business?: number;
business?:
number;
/** Emissions for one passenger in economy class in grams. This field is always computed and populated, regardless of whether the aircraft has economy class seats or not. */
economy?: number;
economy?:
number;
/** Emissions for one passenger in first class in grams. This field is always computed and populated, regardless of whether the aircraft has first class seats or not. */
first?: number;
first?:
number;
/**

@@ -56,15 +65,21 @@ * Emissions for one passenger in premium economy class in grams. This field is always computed and populated, regardless of whether the aircraft has premium economy class seats or

*/
premiumEconomy?: number;
premiumEconomy?:
number;
}
interface Flight {
/** Required. Date of the flight in the time zone of the origin airport. Must be a date in the present or future. */
departureDate?: Date;
departureDate?:
Date;
/** Required. IATA airport code for flight destination, e.g. "JFK". */
destination?: string;
destination?:
string;
/** Required. Flight number, e.g. 324. */
flightNumber?: number;
flightNumber?:
number;
/** Required. IATA carrier code, e.g. "AA". */
operatingCarrierCode?: string;
operatingCarrierCode?:
string;
/** Required. IATA airport code for flight origin, e.g. "LHR". */
origin?: string;
origin?:
string;
}

@@ -76,9 +91,12 @@ interface FlightWithEmissions {

*/
emissionsGramsPerPax?: EmissionsGramsPerPax;
emissionsGramsPerPax?:
EmissionsGramsPerPax;
/** Required. Matches the flight identifiers in the request. Note: all IATA codes are capitalized. */
flight?: Flight;
flight?:
Flight;
}
interface ModelVersion {
/** Dated versions: Model datasets are recreated with refreshed input data but no change to the algorithms regularly. */
dated?: string;
dated?:
string;
/**

@@ -88,7 +106,10 @@ * Major versions: Major changes to methodology (e.g. adding new data sources to the model that lead to major output changes). Such changes will be infrequent and announced well in

*/
major?: number;
major?:
number;
/** Minor versions: Changes to the model that, while being consistent across schema versions, change the model parameters or implementation. */
minor?: number;
minor?:
number;
/** Patch versions: Implementation changes meant to address bugs or inaccuracies in the model implementation. */
patch?: number;
patch?:
number;
}

@@ -105,49 +126,72 @@ interface FlightsResource {

/** V1 error format. */
"$.xgafv"?: string;
"$.xgafv"?:
string;
/** OAuth access token. */
access_token?: string;
access_token?:
string;
/** Data format for response. */
alt?: string;
alt?:
string;
/** JSONP */
callback?: string;
callback?:
string;
/** Selector specifying which fields to include in a partial response. */
fields?: string;
fields?:
string;
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
key?: string;
key?:
string;
/** OAuth 2.0 token for the current user. */
oauth_token?: string;
oauth_token?:
string;
/** Returns response with indentations and line breaks. */
prettyPrint?: boolean;
prettyPrint?:
boolean;
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
quotaUser?: string;
quotaUser?:
string;
/** Upload protocol for media (e.g. "raw", "multipart"). */
upload_protocol?: string;
upload_protocol?:
string;
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
uploadType?: string;
uploadType?:
string;
/** Request body */
resource: ComputeFlightEmissionsRequest;
resource:
ComputeFlightEmissionsRequest;
}): Request<ComputeFlightEmissionsResponse>;
computeFlightEmissions(request: {
/** V1 error format. */
"$.xgafv"?: string;
"$.xgafv"?:
string;
/** OAuth access token. */
access_token?: string;
access_token?:
string;
/** Data format for response. */
alt?: string;
alt?:
string;
/** JSONP */
callback?: string;
callback?:
string;
/** Selector specifying which fields to include in a partial response. */
fields?: string;
fields?:
string;
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
key?: string;
key?:
string;
/** OAuth 2.0 token for the current user. */
oauth_token?: string;
oauth_token?:
string;
/** Returns response with indentations and line breaks. */
prettyPrint?: boolean;
prettyPrint?:
boolean;
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
quotaUser?: string;
quotaUser?:
string;
/** Upload protocol for media (e.g. "raw", "multipart"). */
upload_protocol?: string;
upload_protocol?:
string;
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
uploadType?: string;
uploadType?:
string;
},

@@ -154,0 +198,0 @@ body: ComputeFlightEmissionsRequest): Request<ComputeFlightEmissionsResponse>;

{
"name": "@maxim_mazurok/gapi.client.travelimpactmodel-v1",
"version": "0.0.20230425",
"version": "0.0.20230427",
"description": "TypeScript typings for Travel Impact Model API v1",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -6,3 +6,3 @@ /* This is stub file for gapi.client.travelimpactmodel-v1 definition tests */

// Revision: 20230425
// Revision: 20230427

@@ -9,0 +9,0 @@ gapi.load('client', async () => {

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