@currencycore/sdk 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +73 -0
- package/dist/apis/CurrencyCoreApi.d.ts +297 -0
- package/dist/apis/CurrencyCoreApi.js +827 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +19 -0
- package/dist/client.d.ts +21 -0
- package/dist/client.js +23 -0
- package/dist/esm/apis/CurrencyCoreApi.d.ts +297 -0
- package/dist/esm/apis/CurrencyCoreApi.js +823 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +3 -0
- package/dist/esm/client.d.ts +21 -0
- package/dist/esm/client.js +20 -0
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.js +8 -0
- package/dist/esm/models/AiResponse.d.ts +50 -0
- package/dist/esm/models/AiResponse.js +53 -0
- package/dist/esm/models/ApiError.d.ts +33 -0
- package/dist/esm/models/ApiError.js +44 -0
- package/dist/esm/models/ApiErrorError.d.ts +44 -0
- package/dist/esm/models/ApiErrorError.js +49 -0
- package/dist/esm/models/ConvertResponse.d.ts +77 -0
- package/dist/esm/models/ConvertResponse.js +64 -0
- package/dist/esm/models/ConvertResponseResultsInner.d.ts +57 -0
- package/dist/esm/models/ConvertResponseResultsInner.js +56 -0
- package/dist/esm/models/ConvertResponseResultsInnerPpp.d.ts +62 -0
- package/dist/esm/models/ConvertResponseResultsInnerPpp.js +63 -0
- package/dist/esm/models/ConvertResponseResultsInnerPppAnyOf.d.ts +56 -0
- package/dist/esm/models/ConvertResponseResultsInnerPppAnyOf.js +59 -0
- package/dist/esm/models/ConvertResponseResultsInnerPppAnyOf1.d.ts +32 -0
- package/dist/esm/models/ConvertResponseResultsInnerPppAnyOf1.js +43 -0
- package/dist/esm/models/CorrelationResponse.d.ts +51 -0
- package/dist/esm/models/CorrelationResponse.js +56 -0
- package/dist/esm/models/CorrelationResponseResultsInner.d.ts +50 -0
- package/dist/esm/models/CorrelationResponseResultsInner.js +53 -0
- package/dist/esm/models/CountriesResponseInner.d.ts +44 -0
- package/dist/esm/models/CountriesResponseInner.js +49 -0
- package/dist/esm/models/CurrenciesResponseInner.d.ts +50 -0
- package/dist/esm/models/CurrenciesResponseInner.js +55 -0
- package/dist/esm/models/DrawdownResponse.d.ts +93 -0
- package/dist/esm/models/DrawdownResponse.js +85 -0
- package/dist/esm/models/DrawdownResponseResultsInner.d.ts +68 -0
- package/dist/esm/models/DrawdownResponseResultsInner.js +57 -0
- package/dist/esm/models/HistoryAnalysisResponse.d.ts +117 -0
- package/dist/esm/models/HistoryAnalysisResponse.js +102 -0
- package/dist/esm/models/HistoryAnalysisResponseResultsInner.d.ts +95 -0
- package/dist/esm/models/HistoryAnalysisResponseResultsInner.js +76 -0
- package/dist/esm/models/HistoryAnalysisResponseResultsInnerStats.d.ts +44 -0
- package/dist/esm/models/HistoryAnalysisResponseResultsInnerStats.js +51 -0
- package/dist/esm/models/HistoryResponse.d.ts +74 -0
- package/dist/esm/models/HistoryResponse.js +72 -0
- package/dist/esm/models/MeanReversionResponse.d.ts +65 -0
- package/dist/esm/models/MeanReversionResponse.js +65 -0
- package/dist/esm/models/MeanReversionResponseResultsInner.d.ts +62 -0
- package/dist/esm/models/MeanReversionResponseResultsInner.js +61 -0
- package/dist/esm/models/PppAnalysisResponse.d.ts +79 -0
- package/dist/esm/models/PppAnalysisResponse.js +76 -0
- package/dist/esm/models/PppAnalysisResponseResultsInner.d.ts +89 -0
- package/dist/esm/models/PppAnalysisResponseResultsInner.js +74 -0
- package/dist/esm/models/RatesByBaseResponse.d.ts +67 -0
- package/dist/esm/models/RatesByBaseResponse.js +58 -0
- package/dist/esm/models/RatesByBaseResponsePpp.d.ts +46 -0
- package/dist/esm/models/RatesByBaseResponsePpp.js +51 -0
- package/dist/esm/models/RatesResponse.d.ts +67 -0
- package/dist/esm/models/RatesResponse.js +63 -0
- package/dist/esm/models/SafeHavenResponse.d.ts +72 -0
- package/dist/esm/models/SafeHavenResponse.js +70 -0
- package/dist/esm/models/SafeHavenResponseCrisis.d.ts +44 -0
- package/dist/esm/models/SafeHavenResponseCrisis.js +51 -0
- package/dist/esm/models/SafeHavenResponseResultsInner.d.ts +62 -0
- package/dist/esm/models/SafeHavenResponseResultsInner.js +61 -0
- package/dist/esm/models/VolatilityResponse.d.ts +106 -0
- package/dist/esm/models/VolatilityResponse.js +97 -0
- package/dist/esm/models/VolatilityResponseResultsInner.d.ts +50 -0
- package/dist/esm/models/VolatilityResponseResultsInner.js +53 -0
- package/dist/esm/models/index.d.ts +1322 -0
- package/dist/esm/models/index.js +123 -0
- package/dist/esm/runtime.d.ts +184 -0
- package/dist/esm/runtime.js +345 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +24 -0
- package/dist/models/AiResponse.d.ts +50 -0
- package/dist/models/AiResponse.js +60 -0
- package/dist/models/ApiError.d.ts +33 -0
- package/dist/models/ApiError.js +51 -0
- package/dist/models/ApiErrorError.d.ts +44 -0
- package/dist/models/ApiErrorError.js +56 -0
- package/dist/models/ConvertResponse.d.ts +77 -0
- package/dist/models/ConvertResponse.js +71 -0
- package/dist/models/ConvertResponseResultsInner.d.ts +57 -0
- package/dist/models/ConvertResponseResultsInner.js +63 -0
- package/dist/models/ConvertResponseResultsInnerPpp.d.ts +62 -0
- package/dist/models/ConvertResponseResultsInnerPpp.js +70 -0
- package/dist/models/ConvertResponseResultsInnerPppAnyOf.d.ts +56 -0
- package/dist/models/ConvertResponseResultsInnerPppAnyOf.js +66 -0
- package/dist/models/ConvertResponseResultsInnerPppAnyOf1.d.ts +32 -0
- package/dist/models/ConvertResponseResultsInnerPppAnyOf1.js +50 -0
- package/dist/models/CorrelationResponse.d.ts +51 -0
- package/dist/models/CorrelationResponse.js +63 -0
- package/dist/models/CorrelationResponseResultsInner.d.ts +50 -0
- package/dist/models/CorrelationResponseResultsInner.js +60 -0
- package/dist/models/CountriesResponseInner.d.ts +44 -0
- package/dist/models/CountriesResponseInner.js +56 -0
- package/dist/models/CurrenciesResponseInner.d.ts +50 -0
- package/dist/models/CurrenciesResponseInner.js +62 -0
- package/dist/models/DrawdownResponse.d.ts +93 -0
- package/dist/models/DrawdownResponse.js +93 -0
- package/dist/models/DrawdownResponseResultsInner.d.ts +68 -0
- package/dist/models/DrawdownResponseResultsInner.js +64 -0
- package/dist/models/HistoryAnalysisResponse.d.ts +117 -0
- package/dist/models/HistoryAnalysisResponse.js +110 -0
- package/dist/models/HistoryAnalysisResponseResultsInner.d.ts +95 -0
- package/dist/models/HistoryAnalysisResponseResultsInner.js +83 -0
- package/dist/models/HistoryAnalysisResponseResultsInnerStats.d.ts +44 -0
- package/dist/models/HistoryAnalysisResponseResultsInnerStats.js +58 -0
- package/dist/models/HistoryResponse.d.ts +74 -0
- package/dist/models/HistoryResponse.js +80 -0
- package/dist/models/MeanReversionResponse.d.ts +65 -0
- package/dist/models/MeanReversionResponse.js +73 -0
- package/dist/models/MeanReversionResponseResultsInner.d.ts +62 -0
- package/dist/models/MeanReversionResponseResultsInner.js +68 -0
- package/dist/models/PppAnalysisResponse.d.ts +79 -0
- package/dist/models/PppAnalysisResponse.js +84 -0
- package/dist/models/PppAnalysisResponseResultsInner.d.ts +89 -0
- package/dist/models/PppAnalysisResponseResultsInner.js +81 -0
- package/dist/models/RatesByBaseResponse.d.ts +67 -0
- package/dist/models/RatesByBaseResponse.js +65 -0
- package/dist/models/RatesByBaseResponsePpp.d.ts +46 -0
- package/dist/models/RatesByBaseResponsePpp.js +58 -0
- package/dist/models/RatesResponse.d.ts +67 -0
- package/dist/models/RatesResponse.js +71 -0
- package/dist/models/SafeHavenResponse.d.ts +72 -0
- package/dist/models/SafeHavenResponse.js +78 -0
- package/dist/models/SafeHavenResponseCrisis.d.ts +44 -0
- package/dist/models/SafeHavenResponseCrisis.js +58 -0
- package/dist/models/SafeHavenResponseResultsInner.d.ts +62 -0
- package/dist/models/SafeHavenResponseResultsInner.js +68 -0
- package/dist/models/VolatilityResponse.d.ts +106 -0
- package/dist/models/VolatilityResponse.js +105 -0
- package/dist/models/VolatilityResponseResultsInner.d.ts +50 -0
- package/dist/models/VolatilityResponseResultsInner.js +60 -0
- package/dist/models/index.d.ts +1322 -0
- package/dist/models/index.js +126 -0
- package/dist/runtime.d.ts +184 -0
- package/dist/runtime.js +361 -0
- package/package.json +42 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './CurrencyCoreApi';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { CurrencyCoreApi } from './apis';
|
|
2
|
+
export interface CreateClientOptions {
|
|
3
|
+
/**
|
|
4
|
+
* API key (e.g. `cc_live_...`). Falls back to the `CURRENCYCORE_API_KEY`
|
|
5
|
+
* environment variable on Node. Omit it for the public reference endpoints
|
|
6
|
+
* (`countries`, `currencies`).
|
|
7
|
+
*/
|
|
8
|
+
apiKey?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Full base URL override. Falls back to `CURRENCYCORE_BASE_URL`, otherwise
|
|
11
|
+
* the public host with the chosen `version`.
|
|
12
|
+
*/
|
|
13
|
+
baseUrl?: string;
|
|
14
|
+
/** API version segment of the default base URL. Defaults to `v1`. */
|
|
15
|
+
version?: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Build a configured {@link CurrencyCoreApi}. Resolves the API key and base URL
|
|
19
|
+
* from explicit options first, then the environment.
|
|
20
|
+
*/
|
|
21
|
+
export declare function createClient(options?: CreateClientOptions): CurrencyCoreApi;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { Configuration } from './runtime';
|
|
4
|
+
import { CurrencyCoreApi } from './apis';
|
|
5
|
+
const DEFAULT_HOST = 'https://api.currency-core.com';
|
|
6
|
+
function fromEnv(name) {
|
|
7
|
+
// Guarded: `process` does not exist in the browser / React Native.
|
|
8
|
+
return typeof process !== 'undefined' && process.env ? process.env[name] : undefined;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Build a configured {@link CurrencyCoreApi}. Resolves the API key and base URL
|
|
12
|
+
* from explicit options first, then the environment.
|
|
13
|
+
*/
|
|
14
|
+
export function createClient(options = {}) {
|
|
15
|
+
var _a, _b, _c, _d;
|
|
16
|
+
const apiKey = (_a = options.apiKey) !== null && _a !== void 0 ? _a : fromEnv('CURRENCYCORE_API_KEY');
|
|
17
|
+
const version = (_b = options.version) !== null && _b !== void 0 ? _b : 'v1';
|
|
18
|
+
const basePath = (_d = (_c = options.baseUrl) !== null && _c !== void 0 ? _c : fromEnv('CURRENCYCORE_BASE_URL')) !== null && _d !== void 0 ? _d : `${DEFAULT_HOST}/${version}`;
|
|
19
|
+
return new CurrencyCoreApi(new Configuration({ basePath, accessToken: apiKey }));
|
|
20
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
export * from './runtime';
|
|
4
|
+
export * from './apis';
|
|
5
|
+
export * from './models';
|
|
6
|
+
// Hand-written convenience layer (env + version aware). Protected from
|
|
7
|
+
// regeneration by .openapi-generator-ignore.
|
|
8
|
+
export * from './client';
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CurrencyCore API
|
|
3
|
+
* Edge-native currency exchange, PPP, and FX analytics API. Authenticate with your API key as `Authorization: Bearer <key>`.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AiResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface AiResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AiResponse
|
|
22
|
+
*/
|
|
23
|
+
query: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AiResponse
|
|
28
|
+
*/
|
|
29
|
+
answer: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<any>}
|
|
33
|
+
* @memberof AiResponse
|
|
34
|
+
*/
|
|
35
|
+
data: Array<any>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof AiResponse
|
|
40
|
+
*/
|
|
41
|
+
toolCalls?: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the AiResponse interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfAiResponse(value: object): value is AiResponse;
|
|
47
|
+
export declare function AiResponseFromJSON(json: any): AiResponse;
|
|
48
|
+
export declare function AiResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiResponse;
|
|
49
|
+
export declare function AiResponseToJSON(json: any): AiResponse;
|
|
50
|
+
export declare function AiResponseToJSONTyped(value?: AiResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* CurrencyCore API
|
|
5
|
+
* Edge-native currency exchange, PPP, and FX analytics API. Authenticate with your API key as `Authorization: Bearer <key>`.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the AiResponse interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfAiResponse(value) {
|
|
18
|
+
if (!('query' in value) || value['query'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('answer' in value) || value['answer'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function AiResponseFromJSON(json) {
|
|
27
|
+
return AiResponseFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function AiResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'query': json['query'],
|
|
35
|
+
'answer': json['answer'],
|
|
36
|
+
'data': json['data'],
|
|
37
|
+
'toolCalls': json['toolCalls'] == null ? undefined : json['toolCalls'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export function AiResponseToJSON(json) {
|
|
41
|
+
return AiResponseToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
export function AiResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'query': value['query'],
|
|
49
|
+
'answer': value['answer'],
|
|
50
|
+
'data': value['data'],
|
|
51
|
+
'toolCalls': value['toolCalls'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CurrencyCore API
|
|
3
|
+
* Edge-native currency exchange, PPP, and FX analytics API. Authenticate with your API key as `Authorization: Bearer <key>`.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ApiErrorError } from './ApiErrorError';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiError
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiError {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {ApiErrorError}
|
|
22
|
+
* @memberof ApiError
|
|
23
|
+
*/
|
|
24
|
+
error: ApiErrorError;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ApiError interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfApiError(value: object): value is ApiError;
|
|
30
|
+
export declare function ApiErrorFromJSON(json: any): ApiError;
|
|
31
|
+
export declare function ApiErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiError;
|
|
32
|
+
export declare function ApiErrorToJSON(json: any): ApiError;
|
|
33
|
+
export declare function ApiErrorToJSONTyped(value?: ApiError | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* CurrencyCore API
|
|
5
|
+
* Edge-native currency exchange, PPP, and FX analytics API. Authenticate with your API key as `Authorization: Bearer <key>`.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { ApiErrorErrorFromJSON, ApiErrorErrorToJSON, } from './ApiErrorError';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ApiError interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfApiError(value) {
|
|
19
|
+
if (!('error' in value) || value['error'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
export function ApiErrorFromJSON(json) {
|
|
24
|
+
return ApiErrorFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function ApiErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'error': ApiErrorErrorFromJSON(json['error']),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function ApiErrorToJSON(json) {
|
|
35
|
+
return ApiErrorToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function ApiErrorToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'error': ApiErrorErrorToJSON(value['error']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CurrencyCore API
|
|
3
|
+
* Edge-native currency exchange, PPP, and FX analytics API. Authenticate with your API key as `Authorization: Bearer <key>`.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ApiErrorError
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiErrorError {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ApiErrorError
|
|
22
|
+
*/
|
|
23
|
+
code: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ApiErrorError
|
|
28
|
+
*/
|
|
29
|
+
message: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {any}
|
|
33
|
+
* @memberof ApiErrorError
|
|
34
|
+
*/
|
|
35
|
+
details?: any | null;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the ApiErrorError interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfApiErrorError(value: object): value is ApiErrorError;
|
|
41
|
+
export declare function ApiErrorErrorFromJSON(json: any): ApiErrorError;
|
|
42
|
+
export declare function ApiErrorErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiErrorError;
|
|
43
|
+
export declare function ApiErrorErrorToJSON(json: any): ApiErrorError;
|
|
44
|
+
export declare function ApiErrorErrorToJSONTyped(value?: ApiErrorError | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* CurrencyCore API
|
|
5
|
+
* Edge-native currency exchange, PPP, and FX analytics API. Authenticate with your API key as `Authorization: Bearer <key>`.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the ApiErrorError interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfApiErrorError(value) {
|
|
18
|
+
if (!('code' in value) || value['code'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function ApiErrorErrorFromJSON(json) {
|
|
25
|
+
return ApiErrorErrorFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function ApiErrorErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'code': json['code'],
|
|
33
|
+
'message': json['message'],
|
|
34
|
+
'details': json['details'] == null ? undefined : json['details'],
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function ApiErrorErrorToJSON(json) {
|
|
38
|
+
return ApiErrorErrorToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function ApiErrorErrorToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'code': value['code'],
|
|
46
|
+
'message': value['message'],
|
|
47
|
+
'details': value['details'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CurrencyCore API
|
|
3
|
+
* Edge-native currency exchange, PPP, and FX analytics API. Authenticate with your API key as `Authorization: Bearer <key>`.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ConvertResponseResultsInner } from './ConvertResponseResultsInner';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ConvertResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface ConvertResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ConvertResponse
|
|
23
|
+
*/
|
|
24
|
+
from: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ConvertResponse
|
|
29
|
+
*/
|
|
30
|
+
fromCountry?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof ConvertResponse
|
|
35
|
+
*/
|
|
36
|
+
amount: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof ConvertResponse
|
|
41
|
+
*/
|
|
42
|
+
date: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof ConvertResponse
|
|
47
|
+
*/
|
|
48
|
+
requestedDate?: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {{ [key: string]: string; }}
|
|
52
|
+
* @memberof ConvertResponse
|
|
53
|
+
*/
|
|
54
|
+
asOf?: {
|
|
55
|
+
[key: string]: string;
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {Array<ConvertResponseResultsInner>}
|
|
60
|
+
* @memberof ConvertResponse
|
|
61
|
+
*/
|
|
62
|
+
results: Array<ConvertResponseResultsInner>;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {string}
|
|
66
|
+
* @memberof ConvertResponse
|
|
67
|
+
*/
|
|
68
|
+
message?: string;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Check if a given object implements the ConvertResponse interface.
|
|
72
|
+
*/
|
|
73
|
+
export declare function instanceOfConvertResponse(value: object): value is ConvertResponse;
|
|
74
|
+
export declare function ConvertResponseFromJSON(json: any): ConvertResponse;
|
|
75
|
+
export declare function ConvertResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConvertResponse;
|
|
76
|
+
export declare function ConvertResponseToJSON(json: any): ConvertResponse;
|
|
77
|
+
export declare function ConvertResponseToJSONTyped(value?: ConvertResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* CurrencyCore API
|
|
5
|
+
* Edge-native currency exchange, PPP, and FX analytics API. Authenticate with your API key as `Authorization: Bearer <key>`.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { ConvertResponseResultsInnerFromJSON, ConvertResponseResultsInnerToJSON, } from './ConvertResponseResultsInner';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ConvertResponse interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfConvertResponse(value) {
|
|
19
|
+
if (!('from' in value) || value['from'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('amount' in value) || value['amount'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('date' in value) || value['date'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('results' in value) || value['results'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
export function ConvertResponseFromJSON(json) {
|
|
30
|
+
return ConvertResponseFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
export function ConvertResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'from': json['from'],
|
|
38
|
+
'fromCountry': json['fromCountry'] == null ? undefined : json['fromCountry'],
|
|
39
|
+
'amount': json['amount'],
|
|
40
|
+
'date': json['date'],
|
|
41
|
+
'requestedDate': json['requestedDate'] == null ? undefined : json['requestedDate'],
|
|
42
|
+
'asOf': json['asOf'] == null ? undefined : json['asOf'],
|
|
43
|
+
'results': (json['results'].map(ConvertResponseResultsInnerFromJSON)),
|
|
44
|
+
'message': json['message'] == null ? undefined : json['message'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
export function ConvertResponseToJSON(json) {
|
|
48
|
+
return ConvertResponseToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
export function ConvertResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'from': value['from'],
|
|
56
|
+
'fromCountry': value['fromCountry'],
|
|
57
|
+
'amount': value['amount'],
|
|
58
|
+
'date': value['date'],
|
|
59
|
+
'requestedDate': value['requestedDate'],
|
|
60
|
+
'asOf': value['asOf'],
|
|
61
|
+
'results': (value['results'].map(ConvertResponseResultsInnerToJSON)),
|
|
62
|
+
'message': value['message'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CurrencyCore API
|
|
3
|
+
* Edge-native currency exchange, PPP, and FX analytics API. Authenticate with your API key as `Authorization: Bearer <key>`.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ConvertResponseResultsInnerPpp } from './ConvertResponseResultsInnerPpp';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ConvertResponseResultsInner
|
|
17
|
+
*/
|
|
18
|
+
export interface ConvertResponseResultsInner {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ConvertResponseResultsInner
|
|
23
|
+
*/
|
|
24
|
+
to: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ConvertResponseResultsInner
|
|
29
|
+
*/
|
|
30
|
+
toCountry?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof ConvertResponseResultsInner
|
|
35
|
+
*/
|
|
36
|
+
result: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ConvertResponseResultsInner
|
|
41
|
+
*/
|
|
42
|
+
rate: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {ConvertResponseResultsInnerPpp}
|
|
46
|
+
* @memberof ConvertResponseResultsInner
|
|
47
|
+
*/
|
|
48
|
+
ppp?: ConvertResponseResultsInnerPpp;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the ConvertResponseResultsInner interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfConvertResponseResultsInner(value: object): value is ConvertResponseResultsInner;
|
|
54
|
+
export declare function ConvertResponseResultsInnerFromJSON(json: any): ConvertResponseResultsInner;
|
|
55
|
+
export declare function ConvertResponseResultsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConvertResponseResultsInner;
|
|
56
|
+
export declare function ConvertResponseResultsInnerToJSON(json: any): ConvertResponseResultsInner;
|
|
57
|
+
export declare function ConvertResponseResultsInnerToJSONTyped(value?: ConvertResponseResultsInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* CurrencyCore API
|
|
5
|
+
* Edge-native currency exchange, PPP, and FX analytics API. Authenticate with your API key as `Authorization: Bearer <key>`.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { ConvertResponseResultsInnerPppFromJSON, ConvertResponseResultsInnerPppToJSON, } from './ConvertResponseResultsInnerPpp';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ConvertResponseResultsInner interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfConvertResponseResultsInner(value) {
|
|
19
|
+
if (!('to' in value) || value['to'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('result' in value) || value['result'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('rate' in value) || value['rate'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
export function ConvertResponseResultsInnerFromJSON(json) {
|
|
28
|
+
return ConvertResponseResultsInnerFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function ConvertResponseResultsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'to': json['to'],
|
|
36
|
+
'toCountry': json['toCountry'] == null ? undefined : json['toCountry'],
|
|
37
|
+
'result': json['result'],
|
|
38
|
+
'rate': json['rate'],
|
|
39
|
+
'ppp': json['ppp'] == null ? undefined : ConvertResponseResultsInnerPppFromJSON(json['ppp']),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export function ConvertResponseResultsInnerToJSON(json) {
|
|
43
|
+
return ConvertResponseResultsInnerToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function ConvertResponseResultsInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'to': value['to'],
|
|
51
|
+
'toCountry': value['toCountry'],
|
|
52
|
+
'result': value['result'],
|
|
53
|
+
'rate': value['rate'],
|
|
54
|
+
'ppp': ConvertResponseResultsInnerPppToJSON(value['ppp']),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CurrencyCore API
|
|
3
|
+
* Edge-native currency exchange, PPP, and FX analytics API. Authenticate with your API key as `Authorization: Bearer <key>`.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ConvertResponseResultsInnerPpp
|
|
16
|
+
*/
|
|
17
|
+
export interface ConvertResponseResultsInnerPpp {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof ConvertResponseResultsInnerPpp
|
|
22
|
+
*/
|
|
23
|
+
fromFactor: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof ConvertResponseResultsInnerPpp
|
|
28
|
+
*/
|
|
29
|
+
toFactor: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof ConvertResponseResultsInnerPpp
|
|
34
|
+
*/
|
|
35
|
+
result: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof ConvertResponseResultsInnerPpp
|
|
40
|
+
*/
|
|
41
|
+
year: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ConvertResponseResultsInnerPpp
|
|
46
|
+
*/
|
|
47
|
+
source: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof ConvertResponseResultsInnerPpp
|
|
52
|
+
*/
|
|
53
|
+
error: string;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the ConvertResponseResultsInnerPpp interface.
|
|
57
|
+
*/
|
|
58
|
+
export declare function instanceOfConvertResponseResultsInnerPpp(value: object): value is ConvertResponseResultsInnerPpp;
|
|
59
|
+
export declare function ConvertResponseResultsInnerPppFromJSON(json: any): ConvertResponseResultsInnerPpp;
|
|
60
|
+
export declare function ConvertResponseResultsInnerPppFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConvertResponseResultsInnerPpp;
|
|
61
|
+
export declare function ConvertResponseResultsInnerPppToJSON(json: any): ConvertResponseResultsInnerPpp;
|
|
62
|
+
export declare function ConvertResponseResultsInnerPppToJSONTyped(value?: ConvertResponseResultsInnerPpp | null, ignoreDiscriminator?: boolean): any;
|