ico-api-client-js
Advanced tools
Comparing version
@@ -19,2 +19,3 @@ /* tslint:disable */ | ||
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; | ||
import { Country } from '../models'; | ||
import { Currency } from '../models'; | ||
@@ -28,2 +29,43 @@ /** | ||
/** | ||
* Get a list of fiat countries available for ICO. | ||
* @summary Countries list | ||
* @param {string} [search] search by country name | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
listCountries: async (search?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { | ||
const localVarPath = `/countries/`; | ||
// use dummy base URL string because the URL constructor only accepts absolute URLs. | ||
const localVarUrlObj = new URL(localVarPath, 'https://example.com'); | ||
let baseOptions; | ||
if (configuration) { | ||
baseOptions = configuration.baseOptions; | ||
} | ||
const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options}; | ||
const localVarHeaderParameter = {} as any; | ||
const localVarQueryParameter = {} as any; | ||
// authentication bearerAuth required | ||
if (search !== undefined) { | ||
localVarQueryParameter['search'] = search; | ||
} | ||
const query = new URLSearchParams(localVarUrlObj.search); | ||
for (const key in localVarQueryParameter) { | ||
query.set(key, localVarQueryParameter[key]); | ||
} | ||
for (const key in options.params) { | ||
query.set(key, options.params[key]); | ||
} | ||
localVarUrlObj.search = (new URLSearchParams(query)).toString(); | ||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; | ||
return { | ||
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, | ||
options: localVarRequestOptions, | ||
}; | ||
}, | ||
/** | ||
* Get a list of fiat currencies available for ICO. Popular currencies go first | ||
@@ -74,2 +116,16 @@ * @summary Currencies list | ||
/** | ||
* Get a list of fiat countries available for ICO. | ||
* @summary Countries list | ||
* @param {string} [search] search by country name | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
async listCountries(search?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<Array<Country>>>> { | ||
const localVarAxiosArgs = await GeoApiAxiosParamCreator(configuration).listCountries(search, options); | ||
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { | ||
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; | ||
return axios.request(axiosRequestArgs); | ||
}; | ||
}, | ||
/** | ||
* Get a list of fiat currencies available for ICO. Popular currencies go first | ||
@@ -97,2 +153,12 @@ * @summary Currencies list | ||
/** | ||
* Get a list of fiat countries available for ICO. | ||
* @summary Countries list | ||
* @param {string} [search] search by country name | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
async listCountries(search?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<Array<Country>>> { | ||
return GeoApiFp(configuration).listCountries(search, options).then((request) => request(axios, basePath)); | ||
}, | ||
/** | ||
* Get a list of fiat currencies available for ICO. Popular currencies go first | ||
@@ -117,2 +183,13 @@ * @summary Currencies list | ||
/** | ||
* Get a list of fiat countries available for ICO. | ||
* @summary Countries list | ||
* @param {string} [search] search by country name | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof GeoApi | ||
*/ | ||
public async listCountries(search?: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<Array<Country>>> { | ||
return GeoApiFp(this.configuration).listCountries(search, options).then((request) => request(this.axios, this.basePath)); | ||
} | ||
/** | ||
* Get a list of fiat currencies available for ICO. Popular currencies go first | ||
@@ -119,0 +196,0 @@ * @summary Currencies list |
@@ -227,2 +227,38 @@ /* tslint:disable */ | ||
}, | ||
/** | ||
* Get a bind token raise start date | ||
* @summary Token raise start | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getTokenRaiseStart: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => { | ||
const localVarPath = `/token_raise_start`; | ||
// use dummy base URL string because the URL constructor only accepts absolute URLs. | ||
const localVarUrlObj = new URL(localVarPath, 'https://example.com'); | ||
let baseOptions; | ||
if (configuration) { | ||
baseOptions = configuration.baseOptions; | ||
} | ||
const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options}; | ||
const localVarHeaderParameter = {} as any; | ||
const localVarQueryParameter = {} as any; | ||
// authentication bearerAuth required | ||
const query = new URLSearchParams(localVarUrlObj.search); | ||
for (const key in localVarQueryParameter) { | ||
query.set(key, localVarQueryParameter[key]); | ||
} | ||
for (const key in options.params) { | ||
query.set(key, options.params[key]); | ||
} | ||
localVarUrlObj.search = (new URLSearchParams(query)).toString(); | ||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; | ||
return { | ||
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, | ||
options: localVarRequestOptions, | ||
}; | ||
}, | ||
} | ||
@@ -306,2 +342,15 @@ }; | ||
}, | ||
/** | ||
* Get a bind token raise start date | ||
* @summary Token raise start | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
async getTokenRaiseStart(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<string>>> { | ||
const localVarAxiosArgs = await TokenApiAxiosParamCreator(configuration).getTokenRaiseStart(options); | ||
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { | ||
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; | ||
return axios.request(axiosRequestArgs); | ||
}; | ||
}, | ||
} | ||
@@ -365,2 +414,11 @@ }; | ||
}, | ||
/** | ||
* Get a bind token raise start date | ||
* @summary Token raise start | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
async getTokenRaiseStart(options?: AxiosRequestConfig): Promise<AxiosResponse<string>> { | ||
return TokenApiFp(configuration).getTokenRaiseStart(options).then((request) => request(axios, basePath)); | ||
}, | ||
}; | ||
@@ -430,2 +488,12 @@ }; | ||
} | ||
/** | ||
* Get a bind token raise start date | ||
* @summary Token raise start | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof TokenApi | ||
*/ | ||
public async getTokenRaiseStart(options?: AxiosRequestConfig) : Promise<AxiosResponse<string>> { | ||
return TokenApiFp(this.configuration).getTokenRaiseStart(options).then((request) => request(this.axios, this.basePath)); | ||
} | ||
} |
@@ -15,2 +15,3 @@ /** | ||
import { RequestArgs, BaseAPI } from '../base'; | ||
import { Country } from '../models'; | ||
import { Currency } from '../models'; | ||
@@ -23,2 +24,10 @@ /** | ||
/** | ||
* Get a list of fiat countries available for ICO. | ||
* @summary Countries list | ||
* @param {string} [search] search by country name | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
listCountries: (search?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
/** | ||
* Get a list of fiat currencies available for ICO. Popular currencies go first | ||
@@ -37,2 +46,10 @@ * @summary Currencies list | ||
/** | ||
* Get a list of fiat countries available for ICO. | ||
* @summary Countries list | ||
* @param {string} [search] search by country name | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
listCountries(search?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<Array<Country>>>>; | ||
/** | ||
* Get a list of fiat currencies available for ICO. Popular currencies go first | ||
@@ -51,2 +68,10 @@ * @summary Currencies list | ||
/** | ||
* Get a list of fiat countries available for ICO. | ||
* @summary Countries list | ||
* @param {string} [search] search by country name | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
listCountries(search?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<Array<Country>>>; | ||
/** | ||
* Get a list of fiat currencies available for ICO. Popular currencies go first | ||
@@ -67,2 +92,11 @@ * @summary Currencies list | ||
/** | ||
* Get a list of fiat countries available for ICO. | ||
* @summary Countries list | ||
* @param {string} [search] search by country name | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof GeoApi | ||
*/ | ||
listCountries(search?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<Array<Country>>>; | ||
/** | ||
* Get a list of fiat currencies available for ICO. Popular currencies go first | ||
@@ -69,0 +103,0 @@ * @summary Currencies list |
@@ -89,2 +89,43 @@ "use strict"; | ||
/** | ||
* Get a list of fiat countries available for ICO. | ||
* @summary Countries list | ||
* @param {string} [search] search by country name | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
listCountries: function (search, options) { | ||
if (options === void 0) { options = {}; } | ||
return __awaiter(_this, void 0, void 0, function () { | ||
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions; | ||
return __generator(this, function (_a) { | ||
localVarPath = "/countries/"; | ||
localVarUrlObj = new URL(localVarPath, 'https://example.com'); | ||
if (configuration) { | ||
baseOptions = configuration.baseOptions; | ||
} | ||
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); | ||
localVarHeaderParameter = {}; | ||
localVarQueryParameter = {}; | ||
// authentication bearerAuth required | ||
if (search !== undefined) { | ||
localVarQueryParameter['search'] = search; | ||
} | ||
query = new URLSearchParams(localVarUrlObj.search); | ||
for (key in localVarQueryParameter) { | ||
query.set(key, localVarQueryParameter[key]); | ||
} | ||
for (key in options.params) { | ||
query.set(key, options.params[key]); | ||
} | ||
localVarUrlObj.search = (new URLSearchParams(query)).toString(); | ||
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); | ||
return [2 /*return*/, { | ||
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, | ||
options: localVarRequestOptions, | ||
}]; | ||
}); | ||
}); | ||
}, | ||
/** | ||
* Get a list of fiat currencies available for ICO. Popular currencies go first | ||
@@ -134,2 +175,27 @@ * @summary Currencies list | ||
/** | ||
* Get a list of fiat countries available for ICO. | ||
* @summary Countries list | ||
* @param {string} [search] search by country name | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
listCountries: function (search, options) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var localVarAxiosArgs; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, exports.GeoApiAxiosParamCreator(configuration).listCountries(search, options)]; | ||
case 1: | ||
localVarAxiosArgs = _a.sent(); | ||
return [2 /*return*/, function (axios, basePath) { | ||
if (axios === void 0) { axios = axios_1.default; } | ||
if (basePath === void 0) { basePath = base_1.BASE_PATH; } | ||
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url }); | ||
return axios.request(axiosRequestArgs); | ||
}]; | ||
} | ||
}); | ||
}); | ||
}, | ||
/** | ||
* Get a list of fiat currencies available for ICO. Popular currencies go first | ||
@@ -167,2 +233,16 @@ * @summary Currencies list | ||
/** | ||
* Get a list of fiat countries available for ICO. | ||
* @summary Countries list | ||
* @param {string} [search] search by country name | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
listCountries: function (search, options) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, exports.GeoApiFp(configuration).listCountries(search, options).then(function (request) { return request(axios, basePath); })]; | ||
}); | ||
}); | ||
}, | ||
/** | ||
* Get a list of fiat currencies available for ICO. Popular currencies go first | ||
@@ -194,2 +274,18 @@ * @summary Currencies list | ||
/** | ||
* Get a list of fiat countries available for ICO. | ||
* @summary Countries list | ||
* @param {string} [search] search by country name | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof GeoApi | ||
*/ | ||
GeoApi.prototype.listCountries = function (search, options) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var _this = this; | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, exports.GeoApiFp(this.configuration).listCountries(search, options).then(function (request) { return request(_this.axios, _this.basePath); })]; | ||
}); | ||
}); | ||
}; | ||
/** | ||
* Get a list of fiat currencies available for ICO. Popular currencies go first | ||
@@ -196,0 +292,0 @@ * @summary Currencies list |
@@ -65,2 +65,9 @@ /** | ||
getPrice: (currency_id?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
/** | ||
* Get a bind token raise start date | ||
* @summary Token raise start | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getTokenRaiseStart: (options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
}; | ||
@@ -111,2 +118,9 @@ /** | ||
getPrice(currency_id?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<Array<Currency>>>>; | ||
/** | ||
* Get a bind token raise start date | ||
* @summary Token raise start | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getTokenRaiseStart(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<string>>>; | ||
}; | ||
@@ -157,2 +171,9 @@ /** | ||
getPrice(currency_id?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<Array<Currency>>>; | ||
/** | ||
* Get a bind token raise start date | ||
* @summary Token raise start | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getTokenRaiseStart(options?: AxiosRequestConfig): Promise<AxiosResponse<string>>; | ||
}; | ||
@@ -210,2 +231,10 @@ /** | ||
getPrice(currency_id?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<Array<Currency>>>; | ||
/** | ||
* Get a bind token raise start date | ||
* @summary Token raise start | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof TokenApi | ||
*/ | ||
getTokenRaiseStart(options?: AxiosRequestConfig): Promise<AxiosResponse<string>>; | ||
} |
@@ -288,2 +288,38 @@ "use strict"; | ||
}, | ||
/** | ||
* Get a bind token raise start date | ||
* @summary Token raise start | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getTokenRaiseStart: function (options) { | ||
if (options === void 0) { options = {}; } | ||
return __awaiter(_this, void 0, void 0, function () { | ||
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions; | ||
return __generator(this, function (_a) { | ||
localVarPath = "/token_raise_start"; | ||
localVarUrlObj = new URL(localVarPath, 'https://example.com'); | ||
if (configuration) { | ||
baseOptions = configuration.baseOptions; | ||
} | ||
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options); | ||
localVarHeaderParameter = {}; | ||
localVarQueryParameter = {}; | ||
query = new URLSearchParams(localVarUrlObj.search); | ||
for (key in localVarQueryParameter) { | ||
query.set(key, localVarQueryParameter[key]); | ||
} | ||
for (key in options.params) { | ||
query.set(key, options.params[key]); | ||
} | ||
localVarUrlObj.search = (new URLSearchParams(query)).toString(); | ||
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); | ||
return [2 /*return*/, { | ||
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, | ||
options: localVarRequestOptions, | ||
}]; | ||
}); | ||
}); | ||
}, | ||
}; | ||
@@ -421,2 +457,26 @@ }; | ||
}, | ||
/** | ||
* Get a bind token raise start date | ||
* @summary Token raise start | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getTokenRaiseStart: function (options) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var localVarAxiosArgs; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, exports.TokenApiAxiosParamCreator(configuration).getTokenRaiseStart(options)]; | ||
case 1: | ||
localVarAxiosArgs = _a.sent(); | ||
return [2 /*return*/, function (axios, basePath) { | ||
if (axios === void 0) { axios = axios_1.default; } | ||
if (basePath === void 0) { basePath = base_1.BASE_PATH; } | ||
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url }); | ||
return axios.request(axiosRequestArgs); | ||
}]; | ||
} | ||
}); | ||
}); | ||
}, | ||
}; | ||
@@ -499,2 +559,15 @@ }; | ||
}, | ||
/** | ||
* Get a bind token raise start date | ||
* @summary Token raise start | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getTokenRaiseStart: function (options) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, exports.TokenApiFp(configuration).getTokenRaiseStart(options).then(function (request) { return request(axios, basePath); })]; | ||
}); | ||
}); | ||
}, | ||
}; | ||
@@ -592,4 +665,19 @@ }; | ||
}; | ||
/** | ||
* Get a bind token raise start date | ||
* @summary Token raise start | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof TokenApi | ||
*/ | ||
TokenApi.prototype.getTokenRaiseStart = function (options) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var _this = this; | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, exports.TokenApiFp(this.configuration).getTokenRaiseStart(options).then(function (request) { return request(_this.axios, _this.basePath); })]; | ||
}); | ||
}); | ||
}; | ||
return TokenApi; | ||
}(base_1.BaseAPI)); | ||
exports.TokenApi = TokenApi; |
@@ -0,1 +1,2 @@ | ||
export * from './country'; | ||
export * from './create-token-login'; | ||
@@ -2,0 +3,0 @@ export * from './currency'; |
@@ -13,2 +13,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("./country"), exports); | ||
__exportStar(require("./create-token-login"), exports); | ||
@@ -15,0 +16,0 @@ __exportStar(require("./currency"), exports); |
@@ -48,2 +48,8 @@ /** | ||
registration_referral_code?: string | null; | ||
/** | ||
* ID of a country | ||
* @type {string} | ||
* @memberof PatchUser | ||
*/ | ||
country?: string; | ||
} |
@@ -12,2 +12,3 @@ /** | ||
*/ | ||
import { Country } from './country'; | ||
import { Currency } from './currency'; | ||
@@ -62,2 +63,8 @@ /** | ||
ico_interface_currency?: Currency; | ||
/** | ||
* | ||
* @type {Country} | ||
* @memberof User | ||
*/ | ||
country?: Country; | ||
} |
@@ -0,1 +1,2 @@ | ||
export * from './country'; | ||
export * from './create-token-login'; | ||
@@ -2,0 +3,0 @@ export * from './currency'; |
@@ -50,2 +50,8 @@ /* tslint:disable */ | ||
registration_referral_code?: string | null; | ||
/** | ||
* ID of a country | ||
* @type {string} | ||
* @memberof PatchUser | ||
*/ | ||
country?: string; | ||
} |
@@ -14,2 +14,3 @@ /* tslint:disable */ | ||
*/ | ||
import { Country } from './country'; | ||
import { Currency } from './currency'; | ||
@@ -64,2 +65,8 @@ /** | ||
ico_interface_currency?: Currency; | ||
/** | ||
* | ||
* @type {Country} | ||
* @memberof User | ||
*/ | ||
country?: Country; | ||
} |
{ | ||
"name": "ico-api-client-js", | ||
"version": "0.0.7", | ||
"version": "0.0.9", | ||
"description": "OpenAPI client for ", | ||
@@ -5,0 +5,0 @@ "author": "OpenAPI-Generator Contributors", |
200974
12.59%78
4%4853
12.78%