@sentio/api 1.0.2-rc.1 → 1.0.2-rc.10
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/README.md +48 -1
- package/dist/src/apis/DataApi.d.ts +3 -29
- package/dist/src/apis/DataApi.js +14 -76
- package/dist/src/apis/DataApi.js.map +1 -1
- package/dist/src/apis/DebugAndSimulationApi.d.ts +2 -1
- package/dist/src/apis/DebugAndSimulationApi.js +10 -10
- package/dist/src/apis/DebugAndSimulationApi.js.map +1 -1
- package/dist/src/apis/PriceApi.d.ts +60 -0
- package/dist/src/apis/PriceApi.js +141 -0
- package/dist/src/apis/PriceApi.js.map +1 -0
- package/dist/src/apis/WebApi.js +9 -9
- package/dist/src/apis/index.d.ts +1 -0
- package/dist/src/apis/index.js +1 -0
- package/dist/src/apis/index.js.map +1 -1
- package/dist/src/models/CommonTimeRangeLite.d.ts +1 -1
- package/dist/src/models/GoogleProtobufAny.d.ts +2 -1
- package/dist/src/models/GoogleProtobufAny.js.map +1 -1
- package/dist/src/models/PriceServiceBatchGetPricesResponse.d.ts +32 -0
- package/dist/src/models/PriceServiceBatchGetPricesResponse.js +40 -0
- package/dist/src/models/PriceServiceBatchGetPricesResponse.js.map +1 -0
- package/dist/src/models/PriceServiceBatchGetPricesResponseCoinPrice.d.ts +45 -0
- package/dist/src/models/PriceServiceBatchGetPricesResponseCoinPrice.js +45 -0
- package/dist/src/models/PriceServiceBatchGetPricesResponseCoinPrice.js.map +1 -0
- package/dist/src/models/PriceServiceBatchGetPricesResponseCoinPricePrice.d.ts +32 -0
- package/dist/src/models/PriceServiceBatchGetPricesResponseCoinPricePrice.js +40 -0
- package/dist/src/models/PriceServiceBatchGetPricesResponseCoinPricePrice.js.map +1 -0
- package/dist/src/models/PriceServiceCheckLatestPriceResponse.d.ts +38 -0
- package/dist/src/models/PriceServiceCheckLatestPriceResponse.js +42 -0
- package/dist/src/models/PriceServiceCheckLatestPriceResponse.js.map +1 -0
- package/dist/src/models/PriceServiceCheckLatestPriceResponseCoinPrice.d.ts +44 -0
- package/dist/src/models/PriceServiceCheckLatestPriceResponseCoinPrice.js +44 -0
- package/dist/src/models/PriceServiceCheckLatestPriceResponseCoinPrice.js.map +1 -0
- package/dist/src/models/PriceServiceCoinID.d.ts +38 -0
- package/dist/src/models/PriceServiceCoinID.js +42 -0
- package/dist/src/models/PriceServiceCoinID.js.map +1 -0
- package/dist/src/models/PriceServiceCoinIDAddressIdentifier.d.ts +38 -0
- package/dist/src/models/PriceServiceCoinIDAddressIdentifier.js +41 -0
- package/dist/src/models/PriceServiceCoinIDAddressIdentifier.js.map +1 -0
- package/dist/src/models/PriceServiceGetPriceResponse.d.ts +37 -0
- package/dist/src/models/PriceServiceGetPriceResponse.js +41 -0
- package/dist/src/models/PriceServiceGetPriceResponse.js.map +1 -0
- package/dist/src/models/PriceServiceListCoinsResponse.d.ts +40 -0
- package/dist/src/models/PriceServiceListCoinsResponse.js +43 -0
- package/dist/src/models/PriceServiceListCoinsResponse.js.map +1 -0
- package/dist/src/models/SolidityServiceSimulation.d.ts +16 -10
- package/dist/src/models/SolidityServiceSimulation.js +29 -9
- package/dist/src/models/SolidityServiceSimulation.js.map +1 -1
- package/dist/src/models/SolidityServiceTxIdentifier.d.ts +2 -2
- package/dist/src/models/SolidityServiceTxIdentifier.js +1 -3
- package/dist/src/models/SolidityServiceTxIdentifier.js.map +1 -1
- package/dist/src/models/WebServiceChartConfig.d.ts +7 -0
- package/dist/src/models/WebServiceChartConfig.js +3 -0
- package/dist/src/models/WebServiceChartConfig.js.map +1 -1
- package/dist/src/models/WebServiceChartConfigLineConfig.d.ts +32 -0
- package/dist/src/models/WebServiceChartConfigLineConfig.js +40 -0
- package/dist/src/models/WebServiceChartConfigLineConfig.js.map +1 -0
- package/dist/src/models/WebServiceChartConfigLineConfigStyle.d.ts +24 -0
- package/dist/src/models/WebServiceChartConfigLineConfigStyle.js +34 -0
- package/dist/src/models/WebServiceChartConfigLineConfigStyle.js.map +1 -0
- package/dist/src/models/index.d.ts +11 -2
- package/dist/src/models/index.js +11 -2
- package/dist/src/models/index.js.map +1 -1
- package/dist/src/runtime.js +1 -1
- package/dist/src/runtime.js.map +1 -1
- package/package.json +1 -1
- package/src/apis/DataApi.ts +13 -111
- package/src/apis/DebugAndSimulationApi.ts +13 -15
- package/src/apis/PriceApi.ts +212 -0
- package/src/apis/WebApi.ts +9 -9
- package/src/apis/index.ts +1 -0
- package/src/models/CommonTimeRangeLite.ts +1 -1
- package/src/models/GoogleProtobufAny.ts +2 -1
- package/src/models/PriceServiceBatchGetPricesResponse.ts +67 -0
- package/src/models/PriceServiceBatchGetPricesResponseCoinPrice.ts +89 -0
- package/src/models/PriceServiceBatchGetPricesResponseCoinPricePrice.ts +67 -0
- package/src/models/PriceServiceCheckLatestPriceResponse.ts +75 -0
- package/src/models/PriceServiceCheckLatestPriceResponseCoinPrice.ts +83 -0
- package/src/models/PriceServiceCoinID.ts +75 -0
- package/src/models/PriceServiceCoinIDAddressIdentifier.ts +69 -0
- package/src/models/PriceServiceGetPriceResponse.ts +68 -0
- package/src/models/PriceServiceListCoinsResponse.ts +75 -0
- package/src/models/SolidityServiceSimulation.ts +36 -19
- package/src/models/SolidityServiceTxIdentifier.ts +3 -4
- package/src/models/WebServiceChartConfig.ts +14 -0
- package/src/models/WebServiceChartConfigLineConfig.ts +67 -0
- package/src/models/WebServiceChartConfigLineConfigStyle.ts +42 -0
- package/src/models/index.ts +11 -2
- package/src/runtime.ts +1 -1
- package/dist/src/models/AnalyticServiceSyncExecuteSQLRequest.d.ts +0 -75
- package/dist/src/models/AnalyticServiceSyncExecuteSQLRequest.js +0 -55
- package/dist/src/models/AnalyticServiceSyncExecuteSQLRequest.js.map +0 -1
- package/dist/src/models/InsightsServiceQueryRequest.d.ts +0 -95
- package/dist/src/models/InsightsServiceQueryRequest.js +0 -63
- package/dist/src/models/InsightsServiceQueryRequest.js.map +0 -1
- package/src/models/AnalyticServiceSyncExecuteSQLRequest.ts +0 -129
- package/src/models/InsightsServiceQueryRequest.ts +0 -165
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sentio API
|
|
3
|
+
* Sentio Open API for query data
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: version not set
|
|
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 * as runtime from '../runtime.js';
|
|
13
|
+
import type { PriceServiceBatchGetPricesResponse, PriceServiceCheckLatestPriceResponse, PriceServiceGetPriceResponse, PriceServiceListCoinsResponse } from '../models/index.js';
|
|
14
|
+
export interface BatchGetPricesRequest {
|
|
15
|
+
timestamps?: Array<Date>;
|
|
16
|
+
}
|
|
17
|
+
export interface GetPriceRequest {
|
|
18
|
+
timestamp?: Date;
|
|
19
|
+
coinIdSymbol?: string;
|
|
20
|
+
coinIdAddressAddress?: string;
|
|
21
|
+
coinIdAddressChain?: string;
|
|
22
|
+
source?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface PriceListCoinsRequest {
|
|
25
|
+
limit?: number;
|
|
26
|
+
offset?: number;
|
|
27
|
+
searchQuery?: string;
|
|
28
|
+
chain?: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
export declare class PriceApi extends runtime.BaseAPI {
|
|
34
|
+
/**
|
|
35
|
+
*/
|
|
36
|
+
batchGetPricesRaw(requestParameters: BatchGetPricesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PriceServiceBatchGetPricesResponse>>;
|
|
37
|
+
/**
|
|
38
|
+
*/
|
|
39
|
+
batchGetPrices(requestParameters?: BatchGetPricesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PriceServiceBatchGetPricesResponse>;
|
|
40
|
+
/**
|
|
41
|
+
*/
|
|
42
|
+
checkLatestPriceRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PriceServiceCheckLatestPriceResponse>>;
|
|
43
|
+
/**
|
|
44
|
+
*/
|
|
45
|
+
checkLatestPrice(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PriceServiceCheckLatestPriceResponse>;
|
|
46
|
+
/**
|
|
47
|
+
* GetPrice returns the price of a given coin identifier, in a best effort way. If we do not have any price data for the given coin, we will return NOT_FOUND error. If we have at least one price data for the given coin, we will return it with the actual timestamp. Client is responsible for checking the timestamp and decide whether to use the price or not.
|
|
48
|
+
*/
|
|
49
|
+
getPriceRaw(requestParameters: GetPriceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PriceServiceGetPriceResponse>>;
|
|
50
|
+
/**
|
|
51
|
+
* GetPrice returns the price of a given coin identifier, in a best effort way. If we do not have any price data for the given coin, we will return NOT_FOUND error. If we have at least one price data for the given coin, we will return it with the actual timestamp. Client is responsible for checking the timestamp and decide whether to use the price or not.
|
|
52
|
+
*/
|
|
53
|
+
getPrice(requestParameters?: GetPriceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PriceServiceGetPriceResponse>;
|
|
54
|
+
/**
|
|
55
|
+
*/
|
|
56
|
+
priceListCoinsRaw(requestParameters: PriceListCoinsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PriceServiceListCoinsResponse>>;
|
|
57
|
+
/**
|
|
58
|
+
*/
|
|
59
|
+
priceListCoins(requestParameters?: PriceListCoinsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PriceServiceListCoinsResponse>;
|
|
60
|
+
}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sentio API
|
|
5
|
+
* Sentio Open API for query data
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: version not set
|
|
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 * as runtime from '../runtime.js';
|
|
15
|
+
import { PriceServiceBatchGetPricesResponseFromJSON, PriceServiceCheckLatestPriceResponseFromJSON, PriceServiceGetPriceResponseFromJSON, PriceServiceListCoinsResponseFromJSON, } from '../models/index.js';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export class PriceApi extends runtime.BaseAPI {
|
|
20
|
+
/**
|
|
21
|
+
*/
|
|
22
|
+
async batchGetPricesRaw(requestParameters, initOverrides) {
|
|
23
|
+
const queryParameters = {};
|
|
24
|
+
if (requestParameters['timestamps'] != null) {
|
|
25
|
+
queryParameters['timestamps'] = requestParameters['timestamps'];
|
|
26
|
+
}
|
|
27
|
+
const headerParameters = {};
|
|
28
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
29
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
30
|
+
}
|
|
31
|
+
const response = await this.request({
|
|
32
|
+
path: `/api/v1/prices/batch`,
|
|
33
|
+
method: 'GET',
|
|
34
|
+
headers: headerParameters,
|
|
35
|
+
query: queryParameters,
|
|
36
|
+
}, initOverrides);
|
|
37
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PriceServiceBatchGetPricesResponseFromJSON(jsonValue));
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
*/
|
|
41
|
+
async batchGetPrices(requestParameters = {}, initOverrides) {
|
|
42
|
+
const response = await this.batchGetPricesRaw(requestParameters, initOverrides);
|
|
43
|
+
return await response.value();
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
*/
|
|
47
|
+
async checkLatestPriceRaw(initOverrides) {
|
|
48
|
+
const queryParameters = {};
|
|
49
|
+
const headerParameters = {};
|
|
50
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
51
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
52
|
+
}
|
|
53
|
+
const response = await this.request({
|
|
54
|
+
path: `/api/v1/prices/check_latest`,
|
|
55
|
+
method: 'GET',
|
|
56
|
+
headers: headerParameters,
|
|
57
|
+
query: queryParameters,
|
|
58
|
+
}, initOverrides);
|
|
59
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PriceServiceCheckLatestPriceResponseFromJSON(jsonValue));
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
*/
|
|
63
|
+
async checkLatestPrice(initOverrides) {
|
|
64
|
+
const response = await this.checkLatestPriceRaw(initOverrides);
|
|
65
|
+
return await response.value();
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* GetPrice returns the price of a given coin identifier, in a best effort way. If we do not have any price data for the given coin, we will return NOT_FOUND error. If we have at least one price data for the given coin, we will return it with the actual timestamp. Client is responsible for checking the timestamp and decide whether to use the price or not.
|
|
69
|
+
*/
|
|
70
|
+
async getPriceRaw(requestParameters, initOverrides) {
|
|
71
|
+
const queryParameters = {};
|
|
72
|
+
if (requestParameters['timestamp'] != null) {
|
|
73
|
+
queryParameters['timestamp'] = requestParameters['timestamp'].toISOString();
|
|
74
|
+
}
|
|
75
|
+
if (requestParameters['coinIdSymbol'] != null) {
|
|
76
|
+
queryParameters['coinId.symbol'] = requestParameters['coinIdSymbol'];
|
|
77
|
+
}
|
|
78
|
+
if (requestParameters['coinIdAddressAddress'] != null) {
|
|
79
|
+
queryParameters['coinId.address.address'] = requestParameters['coinIdAddressAddress'];
|
|
80
|
+
}
|
|
81
|
+
if (requestParameters['coinIdAddressChain'] != null) {
|
|
82
|
+
queryParameters['coinId.address.chain'] = requestParameters['coinIdAddressChain'];
|
|
83
|
+
}
|
|
84
|
+
if (requestParameters['source'] != null) {
|
|
85
|
+
queryParameters['source'] = requestParameters['source'];
|
|
86
|
+
}
|
|
87
|
+
const headerParameters = {};
|
|
88
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
89
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
90
|
+
}
|
|
91
|
+
const response = await this.request({
|
|
92
|
+
path: `/api/v1/prices`,
|
|
93
|
+
method: 'GET',
|
|
94
|
+
headers: headerParameters,
|
|
95
|
+
query: queryParameters,
|
|
96
|
+
}, initOverrides);
|
|
97
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PriceServiceGetPriceResponseFromJSON(jsonValue));
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* GetPrice returns the price of a given coin identifier, in a best effort way. If we do not have any price data for the given coin, we will return NOT_FOUND error. If we have at least one price data for the given coin, we will return it with the actual timestamp. Client is responsible for checking the timestamp and decide whether to use the price or not.
|
|
101
|
+
*/
|
|
102
|
+
async getPrice(requestParameters = {}, initOverrides) {
|
|
103
|
+
const response = await this.getPriceRaw(requestParameters, initOverrides);
|
|
104
|
+
return await response.value();
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
*/
|
|
108
|
+
async priceListCoinsRaw(requestParameters, initOverrides) {
|
|
109
|
+
const queryParameters = {};
|
|
110
|
+
if (requestParameters['limit'] != null) {
|
|
111
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
112
|
+
}
|
|
113
|
+
if (requestParameters['offset'] != null) {
|
|
114
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
115
|
+
}
|
|
116
|
+
if (requestParameters['searchQuery'] != null) {
|
|
117
|
+
queryParameters['searchQuery'] = requestParameters['searchQuery'];
|
|
118
|
+
}
|
|
119
|
+
if (requestParameters['chain'] != null) {
|
|
120
|
+
queryParameters['chain'] = requestParameters['chain'];
|
|
121
|
+
}
|
|
122
|
+
const headerParameters = {};
|
|
123
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
124
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
125
|
+
}
|
|
126
|
+
const response = await this.request({
|
|
127
|
+
path: `/api/v1/prices/coins`,
|
|
128
|
+
method: 'GET',
|
|
129
|
+
headers: headerParameters,
|
|
130
|
+
query: queryParameters,
|
|
131
|
+
}, initOverrides);
|
|
132
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PriceServiceListCoinsResponseFromJSON(jsonValue));
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
*/
|
|
136
|
+
async priceListCoins(requestParameters = {}, initOverrides) {
|
|
137
|
+
const response = await this.priceListCoinsRaw(requestParameters, initOverrides);
|
|
138
|
+
return await response.value();
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
//# sourceMappingURL=PriceApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PriceApi.js","sourceRoot":"","sources":["../../../src/apis/PriceApi.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,eAAe,CAAC;AAOzC,OAAO,EACH,0CAA0C,EAE1C,4CAA4C,EAE5C,oCAAoC,EAEpC,qCAAqC,GAExC,MAAM,oBAAoB,CAAC;AAqB5B;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,OAAO,CAAC,OAAO;IAEzC;OACG;IACH,KAAK,CAAC,iBAAiB,CAAC,iBAAwC,EAAE,aAA0D;QACxH,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,IAAI,iBAAiB,CAAC,YAAY,CAAC,IAAI,IAAI,EAAE,CAAC;YAC1C,eAAe,CAAC,YAAY,CAAC,GAAG,iBAAiB,CAAC,YAAY,CAAC,CAAC;QACpE,CAAC;QAED,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,IAAI,IAAI,CAAC,aAAa,IAAI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Aa,CAAC,CAAC;QACtE,CAAC;QAED,IAAI,iBAAiB,CAAC,OAAO,CAAC,IAAI,IAAI,EAAE,CAAC;YACrC,eAAe,CAAC,OAAO,CAAC,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC1D,CAAC;QAED,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,aAAa,CAAC,MAAM,EAAE,CAAC;YAClD,gBAAgB,CAAC,SAAS,CAAC,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,4BAA4B;QAC1G,CAAC;QAED,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,sBAAsB;YAC5B,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;SACzB,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,qCAAqC,CAAC,SAAS,CAAC,CAAC,CAAC;IAClH,CAAC;IAED;OACG;IACH,KAAK,CAAC,cAAc,CAAC,oBAA2C,EAAE,EAAE,aAA0D;QAC1H,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QAChF,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ"}
|
package/dist/src/apis/WebApi.js
CHANGED
|
@@ -36,7 +36,7 @@ export class WebApi extends runtime.BaseAPI {
|
|
|
36
36
|
}
|
|
37
37
|
const headerParameters = {};
|
|
38
38
|
if (this.configuration && this.configuration.apiKey) {
|
|
39
|
-
headerParameters["
|
|
39
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
40
40
|
}
|
|
41
41
|
const response = await this.request({
|
|
42
42
|
path: `/api/v1/dashboards/{dashboardId}`.replace(`{${"dashboardId"}}`, encodeURIComponent(String(requestParameters['dashboardId']))),
|
|
@@ -63,7 +63,7 @@ export class WebApi extends runtime.BaseAPI {
|
|
|
63
63
|
const queryParameters = {};
|
|
64
64
|
const headerParameters = {};
|
|
65
65
|
if (this.configuration && this.configuration.apiKey) {
|
|
66
|
-
headerParameters["
|
|
66
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
67
67
|
}
|
|
68
68
|
const response = await this.request({
|
|
69
69
|
path: `/api/v1/dashboards/{dashboardId}/json`.replace(`{${"dashboardId"}}`, encodeURIComponent(String(requestParameters['dashboardId']))),
|
|
@@ -99,7 +99,7 @@ export class WebApi extends runtime.BaseAPI {
|
|
|
99
99
|
}
|
|
100
100
|
const headerParameters = {};
|
|
101
101
|
if (this.configuration && this.configuration.apiKey) {
|
|
102
|
-
headerParameters["
|
|
102
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
103
103
|
}
|
|
104
104
|
const response = await this.request({
|
|
105
105
|
path: `/api/v1/dashboards/{dashboardId}`.replace(`{${"dashboardId"}}`, encodeURIComponent(String(requestParameters['dashboardId']))),
|
|
@@ -135,7 +135,7 @@ export class WebApi extends runtime.BaseAPI {
|
|
|
135
135
|
}
|
|
136
136
|
const headerParameters = {};
|
|
137
137
|
if (this.configuration && this.configuration.apiKey) {
|
|
138
|
-
headerParameters["
|
|
138
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
139
139
|
}
|
|
140
140
|
const response = await this.request({
|
|
141
141
|
path: `/api/v1/projects/{owner}/{slug}/dashboards/{dashboardId}`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"dashboardId"}}`, encodeURIComponent(String(requestParameters['dashboardId']))),
|
|
@@ -165,7 +165,7 @@ export class WebApi extends runtime.BaseAPI {
|
|
|
165
165
|
const queryParameters = {};
|
|
166
166
|
const headerParameters = {};
|
|
167
167
|
if (this.configuration && this.configuration.apiKey) {
|
|
168
|
-
headerParameters["
|
|
168
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
169
169
|
}
|
|
170
170
|
const response = await this.request({
|
|
171
171
|
path: `/api/v1/project/{owner}/{slug}`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
|
|
@@ -195,7 +195,7 @@ export class WebApi extends runtime.BaseAPI {
|
|
|
195
195
|
}
|
|
196
196
|
const headerParameters = {};
|
|
197
197
|
if (this.configuration && this.configuration.apiKey) {
|
|
198
|
-
headerParameters["
|
|
198
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
199
199
|
}
|
|
200
200
|
const response = await this.request({
|
|
201
201
|
path: `/api/v1/projects`,
|
|
@@ -223,7 +223,7 @@ export class WebApi extends runtime.BaseAPI {
|
|
|
223
223
|
const headerParameters = {};
|
|
224
224
|
headerParameters['Content-Type'] = 'application/json';
|
|
225
225
|
if (this.configuration && this.configuration.apiKey) {
|
|
226
|
-
headerParameters["
|
|
226
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
227
227
|
}
|
|
228
228
|
const response = await this.request({
|
|
229
229
|
path: `/api/v1/dashboards/json`,
|
|
@@ -260,7 +260,7 @@ export class WebApi extends runtime.BaseAPI {
|
|
|
260
260
|
}
|
|
261
261
|
const headerParameters = {};
|
|
262
262
|
if (this.configuration && this.configuration.apiKey) {
|
|
263
|
-
headerParameters["
|
|
263
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
264
264
|
}
|
|
265
265
|
const response = await this.request({
|
|
266
266
|
path: `/api/v1/dashboards`,
|
|
@@ -296,7 +296,7 @@ export class WebApi extends runtime.BaseAPI {
|
|
|
296
296
|
}
|
|
297
297
|
const headerParameters = {};
|
|
298
298
|
if (this.configuration && this.configuration.apiKey) {
|
|
299
|
-
headerParameters["
|
|
299
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
300
300
|
}
|
|
301
301
|
const response = await this.request({
|
|
302
302
|
path: `/api/v1/projects/{owner}/{slug}/dashboards`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
|
package/dist/src/apis/index.d.ts
CHANGED
package/dist/src/apis/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/apis/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,cAAc,cAAc,CAAC;AAC7B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/apis/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,cAAc,cAAc,CAAC;AAC7B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC"}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
* start and end time of the time range, Find more: https://docs.sentio.xyz/
|
|
13
|
+
* start and end time of the time range, Find more: https://docs.sentio.xyz/reference/data#time-range-configuration-guide
|
|
14
14
|
* @export
|
|
15
15
|
* @interface CommonTimeRangeLite
|
|
16
16
|
*/
|
|
@@ -124,7 +124,8 @@ export interface GoogleProtobufAny {
|
|
|
124
124
|
*
|
|
125
125
|
* Note: this functionality is not currently available in the official
|
|
126
126
|
* protobuf release, and it is not used for type URLs beginning with
|
|
127
|
-
* type.googleapis.com.
|
|
127
|
+
* type.googleapis.com. As of May 2023, there are no widely used type server
|
|
128
|
+
* implementations and no plans to implement one.
|
|
128
129
|
*
|
|
129
130
|
* Schemes other than `http`, `https` (or the empty scheme) might be
|
|
130
131
|
* used with implementation specific semantics.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GoogleProtobufAny.js","sourceRoot":"","sources":["../../../src/models/GoogleProtobufAny.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;
|
|
1
|
+
{"version":3,"file":"GoogleProtobufAny.js","sourceRoot":"","sources":["../../../src/models/GoogleProtobufAny.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAiIH;;GAEG;AACH,MAAM,UAAU,2BAA2B,CAAC,KAAa;IACrD,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAC,IAAS;IAC/C,OAAO,8BAA8B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACvD,CAAC;AAED,MAAM,UAAU,8BAA8B,CAAC,IAAS,EAAE,mBAA4B;IAClF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEC,GAAG,IAAI;QACX,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC;KAC5D,CAAC;AACN,CAAC;AAED,MAAM,UAAU,uBAAuB,CAAC,KAAgC;IACpE,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IACD,OAAO;QAEC,GAAG,KAAK;QACZ,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC;KACzB,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sentio API
|
|
3
|
+
* Sentio Open API for query data
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: version not set
|
|
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 { PriceServiceBatchGetPricesResponseCoinPrice } from './PriceServiceBatchGetPricesResponseCoinPrice.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PriceServiceBatchGetPricesResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface PriceServiceBatchGetPricesResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<PriceServiceBatchGetPricesResponseCoinPrice>}
|
|
22
|
+
* @memberof PriceServiceBatchGetPricesResponse
|
|
23
|
+
*/
|
|
24
|
+
prices?: Array<PriceServiceBatchGetPricesResponseCoinPrice>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the PriceServiceBatchGetPricesResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfPriceServiceBatchGetPricesResponse(value: object): boolean;
|
|
30
|
+
export declare function PriceServiceBatchGetPricesResponseFromJSON(json: any): PriceServiceBatchGetPricesResponse;
|
|
31
|
+
export declare function PriceServiceBatchGetPricesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PriceServiceBatchGetPricesResponse;
|
|
32
|
+
export declare function PriceServiceBatchGetPricesResponseToJSON(value?: PriceServiceBatchGetPricesResponse | null): any;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sentio API
|
|
5
|
+
* Sentio Open API for query data
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: version not set
|
|
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 { PriceServiceBatchGetPricesResponseCoinPriceFromJSON, PriceServiceBatchGetPricesResponseCoinPriceToJSON, } from './PriceServiceBatchGetPricesResponseCoinPrice.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the PriceServiceBatchGetPricesResponse interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfPriceServiceBatchGetPricesResponse(value) {
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
export function PriceServiceBatchGetPricesResponseFromJSON(json) {
|
|
22
|
+
return PriceServiceBatchGetPricesResponseFromJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
export function PriceServiceBatchGetPricesResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
if (json == null) {
|
|
26
|
+
return json;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'prices': json['prices'] == null ? undefined : (json['prices'].map(PriceServiceBatchGetPricesResponseCoinPriceFromJSON)),
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export function PriceServiceBatchGetPricesResponseToJSON(value) {
|
|
33
|
+
if (value == null) {
|
|
34
|
+
return value;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'prices': value['prices'] == null ? undefined : (value['prices'].map(PriceServiceBatchGetPricesResponseCoinPriceToJSON)),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=PriceServiceBatchGetPricesResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PriceServiceBatchGetPricesResponse.js","sourceRoot":"","sources":["../../../src/models/PriceServiceBatchGetPricesResponse.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAIH,OAAO,EACH,mDAAmD,EAEnD,iDAAiD,GACpD,MAAM,kDAAkD,CAAC;AAgB1D;;GAEG;AACH,MAAM,UAAU,4CAA4C,CAAC,KAAa;IACtE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,MAAM,UAAU,0CAA0C,CAAC,IAAS;IAChE,OAAO,+CAA+C,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACxE,CAAC;AAED,MAAM,UAAU,+CAA+C,CAAC,IAAS,EAAE,mBAA4B;IACnG,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAE,IAAI,CAAC,QAAQ,CAAgB,CAAC,GAAG,CAAC,mDAAmD,CAAC,CAAC;KAC3I,CAAC;AACN,CAAC;AAED,MAAM,UAAU,wCAAwC,CAAC,KAAiD;IACtG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IACD,OAAO;QAEH,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAE,KAAK,CAAC,QAAQ,CAAgB,CAAC,GAAG,CAAC,iDAAiD,CAAC,CAAC;KAC3I,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sentio API
|
|
3
|
+
* Sentio Open API for query data
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: version not set
|
|
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 { PriceServiceBatchGetPricesResponseCoinPricePrice } from './PriceServiceBatchGetPricesResponseCoinPricePrice.js';
|
|
13
|
+
import type { PriceServiceCoinID } from './PriceServiceCoinID.js';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PriceServiceBatchGetPricesResponseCoinPrice
|
|
18
|
+
*/
|
|
19
|
+
export interface PriceServiceBatchGetPricesResponseCoinPrice {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {PriceServiceCoinID}
|
|
23
|
+
* @memberof PriceServiceBatchGetPricesResponseCoinPrice
|
|
24
|
+
*/
|
|
25
|
+
coinId?: PriceServiceCoinID;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {PriceServiceBatchGetPricesResponseCoinPricePrice}
|
|
29
|
+
* @memberof PriceServiceBatchGetPricesResponseCoinPrice
|
|
30
|
+
*/
|
|
31
|
+
price?: PriceServiceBatchGetPricesResponseCoinPricePrice;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof PriceServiceBatchGetPricesResponseCoinPrice
|
|
36
|
+
*/
|
|
37
|
+
error?: string;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the PriceServiceBatchGetPricesResponseCoinPrice interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfPriceServiceBatchGetPricesResponseCoinPrice(value: object): boolean;
|
|
43
|
+
export declare function PriceServiceBatchGetPricesResponseCoinPriceFromJSON(json: any): PriceServiceBatchGetPricesResponseCoinPrice;
|
|
44
|
+
export declare function PriceServiceBatchGetPricesResponseCoinPriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): PriceServiceBatchGetPricesResponseCoinPrice;
|
|
45
|
+
export declare function PriceServiceBatchGetPricesResponseCoinPriceToJSON(value?: PriceServiceBatchGetPricesResponseCoinPrice | null): any;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sentio API
|
|
5
|
+
* Sentio Open API for query data
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: version not set
|
|
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 { PriceServiceBatchGetPricesResponseCoinPricePriceFromJSON, PriceServiceBatchGetPricesResponseCoinPricePriceToJSON, } from './PriceServiceBatchGetPricesResponseCoinPricePrice.js';
|
|
15
|
+
import { PriceServiceCoinIDFromJSON, PriceServiceCoinIDToJSON, } from './PriceServiceCoinID.js';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the PriceServiceBatchGetPricesResponseCoinPrice interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfPriceServiceBatchGetPricesResponseCoinPrice(value) {
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function PriceServiceBatchGetPricesResponseCoinPriceFromJSON(json) {
|
|
23
|
+
return PriceServiceBatchGetPricesResponseCoinPriceFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function PriceServiceBatchGetPricesResponseCoinPriceFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'coinId': json['coinId'] == null ? undefined : PriceServiceCoinIDFromJSON(json['coinId']),
|
|
31
|
+
'price': json['price'] == null ? undefined : PriceServiceBatchGetPricesResponseCoinPricePriceFromJSON(json['price']),
|
|
32
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export function PriceServiceBatchGetPricesResponseCoinPriceToJSON(value) {
|
|
36
|
+
if (value == null) {
|
|
37
|
+
return value;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'coinId': PriceServiceCoinIDToJSON(value['coinId']),
|
|
41
|
+
'price': PriceServiceBatchGetPricesResponseCoinPricePriceToJSON(value['price']),
|
|
42
|
+
'error': value['error'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=PriceServiceBatchGetPricesResponseCoinPrice.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PriceServiceBatchGetPricesResponseCoinPrice.js","sourceRoot":"","sources":["../../../src/models/PriceServiceBatchGetPricesResponseCoinPrice.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAIH,OAAO,EACH,wDAAwD,EAExD,sDAAsD,GACzD,MAAM,uDAAuD,CAAC;AAE/D,OAAO,EACH,0BAA0B,EAE1B,wBAAwB,GAC3B,MAAM,yBAAyB,CAAC;AA4BjC;;GAEG;AACH,MAAM,UAAU,qDAAqD,CAAC,KAAa;IAC/E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,MAAM,UAAU,mDAAmD,CAAC,IAAS;IACzE,OAAO,wDAAwD,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACjF,CAAC;AAED,MAAM,UAAU,wDAAwD,CAAC,IAAS,EAAE,mBAA4B;IAC5G,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,0BAA0B,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACzF,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,wDAAwD,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpH,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC;KAC7D,CAAC;AACN,CAAC;AAED,MAAM,UAAU,iDAAiD,CAAC,KAA0D;IACxH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IACD,OAAO;QAEH,QAAQ,EAAE,wBAAwB,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QACnD,OAAO,EAAE,sDAAsD,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAC/E,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC;KAC1B,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sentio API
|
|
3
|
+
* Sentio Open API for query data
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: version not set
|
|
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 { PriceServiceGetPriceResponse } from './PriceServiceGetPriceResponse.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PriceServiceBatchGetPricesResponseCoinPricePrice
|
|
17
|
+
*/
|
|
18
|
+
export interface PriceServiceBatchGetPricesResponseCoinPricePrice {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<PriceServiceGetPriceResponse>}
|
|
22
|
+
* @memberof PriceServiceBatchGetPricesResponseCoinPricePrice
|
|
23
|
+
*/
|
|
24
|
+
results?: Array<PriceServiceGetPriceResponse>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the PriceServiceBatchGetPricesResponseCoinPricePrice interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfPriceServiceBatchGetPricesResponseCoinPricePrice(value: object): boolean;
|
|
30
|
+
export declare function PriceServiceBatchGetPricesResponseCoinPricePriceFromJSON(json: any): PriceServiceBatchGetPricesResponseCoinPricePrice;
|
|
31
|
+
export declare function PriceServiceBatchGetPricesResponseCoinPricePriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): PriceServiceBatchGetPricesResponseCoinPricePrice;
|
|
32
|
+
export declare function PriceServiceBatchGetPricesResponseCoinPricePriceToJSON(value?: PriceServiceBatchGetPricesResponseCoinPricePrice | null): any;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sentio API
|
|
5
|
+
* Sentio Open API for query data
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: version not set
|
|
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 { PriceServiceGetPriceResponseFromJSON, PriceServiceGetPriceResponseToJSON, } from './PriceServiceGetPriceResponse.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the PriceServiceBatchGetPricesResponseCoinPricePrice interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfPriceServiceBatchGetPricesResponseCoinPricePrice(value) {
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
export function PriceServiceBatchGetPricesResponseCoinPricePriceFromJSON(json) {
|
|
22
|
+
return PriceServiceBatchGetPricesResponseCoinPricePriceFromJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
export function PriceServiceBatchGetPricesResponseCoinPricePriceFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
if (json == null) {
|
|
26
|
+
return json;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'results': json['results'] == null ? undefined : (json['results'].map(PriceServiceGetPriceResponseFromJSON)),
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export function PriceServiceBatchGetPricesResponseCoinPricePriceToJSON(value) {
|
|
33
|
+
if (value == null) {
|
|
34
|
+
return value;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'results': value['results'] == null ? undefined : (value['results'].map(PriceServiceGetPriceResponseToJSON)),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=PriceServiceBatchGetPricesResponseCoinPricePrice.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PriceServiceBatchGetPricesResponseCoinPricePrice.js","sourceRoot":"","sources":["../../../src/models/PriceServiceBatchGetPricesResponseCoinPricePrice.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAIH,OAAO,EACH,oCAAoC,EAEpC,kCAAkC,GACrC,MAAM,mCAAmC,CAAC;AAgB3C;;GAEG;AACH,MAAM,UAAU,0DAA0D,CAAC,KAAa;IACpF,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,MAAM,UAAU,wDAAwD,CAAC,IAAS;IAC9E,OAAO,6DAA6D,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACtF,CAAC;AAED,MAAM,UAAU,6DAA6D,CAAC,IAAS,EAAE,mBAA4B;IACjH,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAE,IAAI,CAAC,SAAS,CAAgB,CAAC,GAAG,CAAC,oCAAoC,CAAC,CAAC;KAC/H,CAAC;AACN,CAAC;AAED,MAAM,UAAU,sDAAsD,CAAC,KAA+D;IAClI,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IACD,OAAO;QAEH,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAE,KAAK,CAAC,SAAS,CAAgB,CAAC,GAAG,CAAC,kCAAkC,CAAC,CAAC;KAC/H,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sentio API
|
|
3
|
+
* Sentio Open API for query data
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: version not set
|
|
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 { PriceServiceCheckLatestPriceResponseCoinPrice } from './PriceServiceCheckLatestPriceResponseCoinPrice.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PriceServiceCheckLatestPriceResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface PriceServiceCheckLatestPriceResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<PriceServiceCheckLatestPriceResponseCoinPrice>}
|
|
22
|
+
* @memberof PriceServiceCheckLatestPriceResponse
|
|
23
|
+
*/
|
|
24
|
+
prices?: Array<PriceServiceCheckLatestPriceResponseCoinPrice>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {PriceServiceCheckLatestPriceResponseCoinPrice}
|
|
28
|
+
* @memberof PriceServiceCheckLatestPriceResponse
|
|
29
|
+
*/
|
|
30
|
+
latestPrice?: PriceServiceCheckLatestPriceResponseCoinPrice;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the PriceServiceCheckLatestPriceResponse interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfPriceServiceCheckLatestPriceResponse(value: object): boolean;
|
|
36
|
+
export declare function PriceServiceCheckLatestPriceResponseFromJSON(json: any): PriceServiceCheckLatestPriceResponse;
|
|
37
|
+
export declare function PriceServiceCheckLatestPriceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PriceServiceCheckLatestPriceResponse;
|
|
38
|
+
export declare function PriceServiceCheckLatestPriceResponseToJSON(value?: PriceServiceCheckLatestPriceResponse | null): any;
|