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

satellite-api-react-flight-tracker-axios

Package Overview
Dependencies
Maintainers
0
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

satellite-api-react-flight-tracker-axios - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

127

api.ts

@@ -69,2 +69,33 @@ /* tslint:disable */

* @export
* @interface V1GeoPoint
*/
export interface V1GeoPoint {
/**
*
* @type {number}
* @memberof V1GeoPoint
*/
'lat'?: number;
/**
*
* @type {number}
* @memberof V1GeoPoint
*/
'lon'?: number;
/**
*
* @type {number}
* @memberof V1GeoPoint
*/
'altitude'?: number;
/**
*
* @type {number}
* @memberof V1GeoPoint
*/
'velocity'?: number;
}
/**
*
* @export
* @interface V1GetMinimalSatellitesResponse

@@ -96,2 +127,15 @@ */

* @export
* @interface V1GetSatellitePathResponse
*/
export interface V1GetSatellitePathResponse {
/**
*
* @type {Array<V1GeoPoint>}
* @memberof V1GetSatellitePathResponse
*/
'path'?: Array<V1GeoPoint>;
}
/**
*
* @export
* @interface V1GetSatellitePositionsResponse

@@ -534,3 +578,48 @@ */

*
* @param {string} id
* @param {string} [time]
* @param {number} [resolution]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
satelliteServiceGetSatellitePath: async (id: string, time?: string, resolution?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
// verify required parameter 'id' is not null or undefined
assertParamExists('satelliteServiceGetSatellitePath', 'id', id)
const localVarPath = `/v1/satellite/path/{id}`
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
let baseOptions;
if (configuration) {
baseOptions = configuration.baseOptions;
}
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;
if (time !== undefined) {
localVarQueryParameter['time'] = (time as any instanceof Date) ?
(time as any).toISOString() :
time;
}
if (resolution !== undefined) {
localVarQueryParameter['resolution'] = resolution;
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
},
/**
*
* @param {string} [time]
* @param {Array<string>} [groups]

@@ -622,3 +711,17 @@ * @param {*} [options] Override http request option.

*
* @param {string} id
* @param {string} [time]
* @param {number} [resolution]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async satelliteServiceGetSatellitePath(id: string, time?: string, resolution?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V1GetSatellitePathResponse>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.satelliteServiceGetSatellitePath(id, time, resolution, options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath = operationServerMap['SatelliteServiceApi.satelliteServiceGetSatellitePath']?.[localVarOperationServerIndex]?.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},
/**
*
* @param {string} [time]
* @param {Array<string>} [groups]

@@ -673,3 +776,14 @@ * @param {*} [options] Override http request option.

*
* @param {string} id
* @param {string} [time]
* @param {number} [resolution]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
satelliteServiceGetSatellitePath(id: string, time?: string, resolution?: number, options?: any): AxiosPromise<V1GetSatellitePathResponse> {
return localVarFp.satelliteServiceGetSatellitePath(id, time, resolution, options).then((request) => request(axios, basePath));
},
/**
*
* @param {string} [time]
* @param {Array<string>} [groups]

@@ -727,3 +841,16 @@ * @param {*} [options] Override http request option.

*
* @param {string} id
* @param {string} [time]
* @param {number} [resolution]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof SatelliteServiceApi
*/
public satelliteServiceGetSatellitePath(id: string, time?: string, resolution?: number, options?: RawAxiosRequestConfig) {
return SatelliteServiceApiFp(this.configuration).satelliteServiceGetSatellitePath(id, time, resolution, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @param {string} [time]
* @param {Array<string>} [groups]

@@ -730,0 +857,0 @@ * @param {*} [options] Override http request option.

@@ -58,2 +58,33 @@ /**

* @export
* @interface V1GeoPoint
*/
export interface V1GeoPoint {
/**
*
* @type {number}
* @memberof V1GeoPoint
*/
'lat'?: number;
/**
*
* @type {number}
* @memberof V1GeoPoint
*/
'lon'?: number;
/**
*
* @type {number}
* @memberof V1GeoPoint
*/
'altitude'?: number;
/**
*
* @type {number}
* @memberof V1GeoPoint
*/
'velocity'?: number;
}
/**
*
* @export
* @interface V1GetMinimalSatellitesResponse

@@ -85,2 +116,15 @@ */

* @export
* @interface V1GetSatellitePathResponse
*/
export interface V1GetSatellitePathResponse {
/**
*
* @type {Array<V1GeoPoint>}
* @memberof V1GetSatellitePathResponse
*/
'path'?: Array<V1GeoPoint>;
}
/**
*
* @export
* @interface V1GetSatellitePositionsResponse

@@ -439,3 +483,12 @@ */

*
* @param {string} id
* @param {string} [time]
* @param {number} [resolution]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
satelliteServiceGetSatellitePath: (id: string, time?: string, resolution?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
/**
*
* @param {string} [time]
* @param {Array<string>} [groups]

@@ -475,3 +528,12 @@ * @param {*} [options] Override http request option.

*
* @param {string} id
* @param {string} [time]
* @param {number} [resolution]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
satelliteServiceGetSatellitePath(id: string, time?: string, resolution?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V1GetSatellitePathResponse>>;
/**
*
* @param {string} [time]
* @param {Array<string>} [groups]

@@ -511,3 +573,12 @@ * @param {*} [options] Override http request option.

*
* @param {string} id
* @param {string} [time]
* @param {number} [resolution]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
satelliteServiceGetSatellitePath(id: string, time?: string, resolution?: number, options?: any): AxiosPromise<V1GetSatellitePathResponse>;
/**
*
* @param {string} [time]
* @param {Array<string>} [groups]

@@ -552,3 +623,13 @@ * @param {*} [options] Override http request option.

*
* @param {string} id
* @param {string} [time]
* @param {number} [resolution]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof SatelliteServiceApi
*/
satelliteServiceGetSatellitePath(id: string, time?: string, resolution?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1GetSatellitePathResponse, any>>;
/**
*
* @param {string} [time]
* @param {Array<string>} [groups]

@@ -555,0 +636,0 @@ * @param {*} [options] Override http request option.

@@ -213,3 +213,49 @@ "use strict";

*
* @param {string} id
* @param {string} [time]
* @param {number} [resolution]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
satelliteServiceGetSatellitePath: function (id_1, time_1, resolution_1) {
var args_1 = [];
for (var _i = 3; _i < arguments.length; _i++) {
args_1[_i - 3] = arguments[_i];
}
return __awaiter(_this, __spreadArray([id_1, time_1, resolution_1], args_1, true), void 0, function (id, time, resolution, options) {
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
if (options === void 0) { options = {}; }
return __generator(this, function (_a) {
// verify required parameter 'id' is not null or undefined
(0, common_1.assertParamExists)('satelliteServiceGetSatellitePath', 'id', id);
localVarPath = "/v1/satellite/path/{id}"
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
if (configuration) {
baseOptions = configuration.baseOptions;
}
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
localVarHeaderParameter = {};
localVarQueryParameter = {};
if (time !== undefined) {
localVarQueryParameter['time'] = (time instanceof Date) ?
time.toISOString() :
time;
}
if (resolution !== undefined) {
localVarQueryParameter['resolution'] = resolution;
}
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
return [2 /*return*/, {
url: (0, common_1.toPathString)(localVarUrlObj),
options: localVarRequestOptions,
}];
});
});
},
/**
*
* @param {string} [time]
* @param {Array<string>} [groups]

@@ -332,3 +378,27 @@ * @param {*} [options] Override http request option.

*
* @param {string} id
* @param {string} [time]
* @param {number} [resolution]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
satelliteServiceGetSatellitePath: function (id, time, resolution, options) {
return __awaiter(this, void 0, void 0, function () {
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
var _a, _b, _c;
return __generator(this, function (_d) {
switch (_d.label) {
case 0: return [4 /*yield*/, localVarAxiosParamCreator.satelliteServiceGetSatellitePath(id, time, resolution, options)];
case 1:
localVarAxiosArgs = _d.sent();
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SatelliteServiceApi.satelliteServiceGetSatellitePath']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
}
});
});
},
/**
*
* @param {string} [time]
* @param {Array<string>} [groups]

@@ -393,3 +463,14 @@ * @param {*} [options] Override http request option.

*
* @param {string} id
* @param {string} [time]
* @param {number} [resolution]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
satelliteServiceGetSatellitePath: function (id, time, resolution, options) {
return localVarFp.satelliteServiceGetSatellitePath(id, time, resolution, options).then(function (request) { return request(axios, basePath); });
},
/**
*
* @param {string} [time]
* @param {Array<string>} [groups]

@@ -451,3 +532,16 @@ * @param {*} [options] Override http request option.

*
* @param {string} id
* @param {string} [time]
* @param {number} [resolution]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof SatelliteServiceApi
*/
SatelliteServiceApi.prototype.satelliteServiceGetSatellitePath = function (id, time, resolution, options) {
var _this = this;
return (0, exports.SatelliteServiceApiFp)(this.configuration).satelliteServiceGetSatellitePath(id, time, resolution, options).then(function (request) { return request(_this.axios, _this.basePath); });
};
/**
*
* @param {string} [time]
* @param {Array<string>} [groups]

@@ -454,0 +548,0 @@ * @param {*} [options] Override http request option.

2

package.json
{
"name": "satellite-api-react-flight-tracker-axios",
"version": "1.1.0",
"version": "1.2.0",
"description": "OpenAPI Axios client for satellite-api-react-flight-tracker",

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

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

## satellite-api-react-flight-tracker@1.1.0
## satellite-api-react-flight-tracker@1.2.0

@@ -39,3 +39,3 @@ This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:

```
npm install satellite-api-react-flight-tracker@1.1.0 --save
npm install satellite-api-react-flight-tracker@1.2.0 --save
```

@@ -42,0 +42,0 @@

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