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.0.4 to 1.1.0

108

api.ts

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

* @export
* @interface V1GetMinimalSatellitesResponse
*/
export interface V1GetMinimalSatellitesResponse {
/**
*
* @type {Array<V1MinimalSatellite>}
* @memberof V1GetMinimalSatellitesResponse
*/
'satellites'?: Array<V1MinimalSatellite>;
}
/**
*
* @export
* @interface V1GetSatelliteGroupsResponse

@@ -96,2 +109,21 @@ */

* @export
* @interface V1MinimalSatellite
*/
export interface V1MinimalSatellite {
/**
*
* @type {string}
* @memberof V1MinimalSatellite
*/
'noradCatId'?: string;
/**
*
* @type {string}
* @memberof V1MinimalSatellite
*/
'objectName'?: string;
}
/**
*
* @export
* @interface V1Satellite

@@ -399,2 +431,43 @@ */

*
* @param {string} [time]
* @param {Array<string>} [groups]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
satelliteServiceGetMinimalSatellites: async (time?: string, groups?: Array<string>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
const localVarPath = `/v1/satellite/minimal`;
// 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 (groups) {
localVarQueryParameter['groups'] = groups;
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
},
/**
*
* @param {string} id

@@ -513,2 +586,15 @@ * @param {*} [options] Override http request option.

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

@@ -560,2 +646,12 @@ * @param {*} [options] Override http request option.

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

@@ -598,2 +694,14 @@ * @param {*} [options] Override http request option.

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

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

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

* @export
* @interface V1GetMinimalSatellitesResponse
*/
export interface V1GetMinimalSatellitesResponse {
/**
*
* @type {Array<V1MinimalSatellite>}
* @memberof V1GetMinimalSatellitesResponse
*/
'satellites'?: Array<V1MinimalSatellite>;
}
/**
*
* @export
* @interface V1GetSatelliteGroupsResponse

@@ -85,2 +98,21 @@ */

* @export
* @interface V1MinimalSatellite
*/
export interface V1MinimalSatellite {
/**
*
* @type {string}
* @memberof V1MinimalSatellite
*/
'noradCatId'?: string;
/**
*
* @type {string}
* @memberof V1MinimalSatellite
*/
'objectName'?: string;
}
/**
*
* @export
* @interface V1Satellite

@@ -386,2 +418,10 @@ */

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

@@ -414,2 +454,10 @@ * @param {*} [options] Override http request option.

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

@@ -442,2 +490,10 @@ * @param {*} [options] Override http request option.

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

@@ -472,2 +528,11 @@ * @param {*} [options] Override http request option.

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

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

@@ -103,2 +103,44 @@ "use strict";

*
* @param {string} [time]
* @param {Array<string>} [groups]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
satelliteServiceGetMinimalSatellites: function (time_1, groups_1) {
var args_1 = [];
for (var _i = 2; _i < arguments.length; _i++) {
args_1[_i - 2] = arguments[_i];
}
return __awaiter(_this, __spreadArray([time_1, groups_1], args_1, true), void 0, function (time, groups, options) {
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
if (options === void 0) { options = {}; }
return __generator(this, function (_a) {
localVarPath = "/v1/satellite/minimal";
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 (groups) {
localVarQueryParameter['groups'] = groups;
}
(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} id

@@ -224,2 +266,25 @@ * @param {*} [options] Override http request option.

*
* @param {string} [time]
* @param {Array<string>} [groups]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
satelliteServiceGetMinimalSatellites: function (time, groups, 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.satelliteServiceGetMinimalSatellites(time, groups, 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.satelliteServiceGetMinimalSatellites']) === 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} id

@@ -301,2 +366,12 @@ * @param {*} [options] Override http request option.

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

@@ -343,2 +418,14 @@ * @param {*} [options] Override http request option.

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

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

5

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

@@ -25,3 +25,4 @@ "repository": {

"prepare": "npm run build",
"gen": "npx openapi-generator-cli generate -i https://raw.githubusercontent.com/StartUpNationLabs/react-flight-tracker-satellite/develop/gen/openapiv2/proto/satellite/v1/satellite.swagger.json -g typescript-axios --additional-properties=npmName=satellite-api-react-flight-tracker,npmVersion=1.0.4 -o ."
"gen": "npx openapi-generator-cli generate -i https://raw.githubusercontent.com/StartUpNationLabs/react-flight-tracker-satellite/develop/gen/openapiv2/proto/satellite/v1/satellite.swagger.json -g typescript-axios --additional-properties=npmName=satellite-api-react-flight-tracker,npmVersion=%npm_package_version% -o .",
"patch-version": "npm version minor && npm run gen"
},

@@ -28,0 +29,0 @@ "dependencies": {

4

README.md

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

## satellite-api-react-flight-tracker@1.0.4
## satellite-api-react-flight-tracker@1.1.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.0.4 --save
npm install satellite-api-react-flight-tracker@1.1.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