@monaco-protocol/client-v2 0.0.2-dev.0 → 0.0.2-dev.2
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 +23 -27
- package/dist/apis/{MonacoAPIAPIKeyManagementApi.d.ts → APIKeyManagementApi.d.ts} +1 -1
- package/dist/apis/{MonacoAPIAPIKeyManagementApi.js → APIKeyManagementApi.js} +3 -3
- package/dist/apis/{MonacoAPIAppManagementApi.d.ts → AppManagementApi.d.ts} +1 -1
- package/dist/apis/{MonacoAPIAppManagementApi.js → AppManagementApi.js} +3 -3
- package/dist/apis/{MonacoAPICurrenciesApi.d.ts → CurrenciesApi.d.ts} +2 -2
- package/dist/apis/{MonacoAPICurrenciesApi.js → CurrenciesApi.js} +3 -3
- package/dist/apis/{MonacoAPIEventCategoriesApi.d.ts → EventCategoriesApi.d.ts} +1 -1
- package/dist/apis/{MonacoAPIEventCategoriesApi.js → EventCategoriesApi.js} +3 -3
- package/dist/apis/{MonacoAPIEventGroupsApi.d.ts → EventGroupsApi.d.ts} +1 -1
- package/dist/apis/{MonacoAPIEventGroupsApi.js → EventGroupsApi.js} +3 -3
- package/dist/apis/{MonacoAPIEventSubcategoriesApi.d.ts → EventSubcategoriesApi.d.ts} +1 -1
- package/dist/apis/{MonacoAPIEventSubcategoriesApi.js → EventSubcategoriesApi.js} +3 -3
- package/dist/apis/{MonacoAPIEventsApi.d.ts → EventsApi.d.ts} +5 -3
- package/dist/apis/{MonacoAPIEventsApi.js → EventsApi.js} +9 -3
- package/dist/apis/{MonacoAPIMarketTypesApi.d.ts → MarketTypesApi.d.ts} +1 -1
- package/dist/apis/{MonacoAPIMarketTypesApi.js → MarketTypesApi.js} +3 -3
- package/dist/apis/{MonacoAPIMarketsApi.d.ts → MarketsApi.d.ts} +31 -16
- package/dist/apis/{MonacoAPIMarketsApi.js → MarketsApi.js} +49 -5
- package/dist/apis/{MonacoAPIOrdersApi.d.ts → OrdersApi.d.ts} +9 -9
- package/dist/apis/{MonacoAPIOrdersApi.js → OrdersApi.js} +3 -3
- package/dist/apis/{MonacoAPISessionManagementApi.d.ts → SessionManagementApi.d.ts} +1 -1
- package/dist/apis/{MonacoAPISessionManagementApi.js → SessionManagementApi.js} +3 -3
- package/dist/apis/{MonacoAPIAPIStatusApi.d.ts → StatusApi.d.ts} +1 -1
- package/dist/apis/{MonacoAPIAPIStatusApi.js → StatusApi.js} +3 -3
- package/dist/apis/{MonacoAPITradesApi.d.ts → TradesApi.d.ts} +5 -4
- package/dist/apis/{MonacoAPITradesApi.js → TradesApi.js} +9 -3
- package/dist/apis/{MonacoAPIWalletsApi.d.ts → WalletsApi.d.ts} +2 -2
- package/dist/apis/{MonacoAPIWalletsApi.js → WalletsApi.js} +3 -3
- package/dist/apis/index.d.ts +14 -14
- package/dist/apis/index.js +14 -14
- package/dist/models/APIKeyResponse.d.ts +1 -1
- package/dist/models/APIKeyResponse.js +2 -2
- package/dist/models/AppResponse.d.ts +1 -1
- package/dist/models/AppResponse.js +2 -2
- package/dist/models/AppStatusResponse.d.ts +1 -1
- package/dist/models/AppStatusResponse.js +2 -2
- package/dist/models/CategoryResponse.d.ts +1 -1
- package/dist/models/CategoryResponse.js +2 -2
- package/dist/models/CommissionRate.d.ts +2 -2
- package/dist/models/CommissionRateResponse.d.ts +1 -1
- package/dist/models/CommissionRateResponse.js +2 -2
- package/dist/models/CreateMarketRequest.d.ts +2 -2
- package/dist/models/CreateOrderRequest.d.ts +2 -2
- package/dist/models/Currency.d.ts +2 -2
- package/dist/models/CurrencyResponse.d.ts +1 -1
- package/dist/models/CurrencyResponse.js +2 -2
- package/dist/models/Event.d.ts +2 -2
- package/dist/models/EventGroupResponse.d.ts +1 -1
- package/dist/models/EventGroupResponse.js +2 -2
- package/dist/models/EventResponse.d.ts +1 -1
- package/dist/models/EventResponse.js +2 -2
- package/dist/models/EventSummary.d.ts +2 -2
- package/dist/models/Market.d.ts +4 -4
- package/dist/models/MarketLiquidityResponse.d.ts +1 -1
- package/dist/models/MarketLiquidityResponse.js +2 -2
- package/dist/models/MarketOutcomeSummary.d.ts +2 -2
- package/dist/models/MarketResponse.d.ts +1 -1
- package/dist/models/MarketResponse.js +2 -2
- package/dist/models/MarketSummary.d.ts +2 -2
- package/dist/models/MarketTypeResponse.d.ts +1 -1
- package/dist/models/MarketTypeResponse.js +2 -2
- package/dist/models/Order.d.ts +4 -4
- package/dist/models/OrderResponse.d.ts +1 -1
- package/dist/models/OrderResponse.js +2 -2
- package/dist/models/OrderSummary.d.ts +2 -2
- package/dist/models/OutcomeResult.d.ts +2 -2
- package/dist/models/PagedEventResponse.d.ts +1 -1
- package/dist/models/PagedEventResponse.js +2 -2
- package/dist/models/PagedMarketPositionResponse.d.ts +1 -1
- package/dist/models/PagedMarketPositionResponse.js +2 -2
- package/dist/models/PagedOrderResponse.d.ts +1 -1
- package/dist/models/PagedOrderResponse.js +2 -2
- package/dist/models/PagedTradeResponse.d.ts +1 -1
- package/dist/models/PagedTradeResponse.js +2 -2
- package/dist/models/PagedTransactionResponse.d.ts +1 -1
- package/dist/models/PagedTransactionResponse.js +2 -2
- package/dist/models/SessionResponse.d.ts +1 -1
- package/dist/models/SessionResponse.js +2 -2
- package/dist/models/SubcategoryResponse.d.ts +1 -1
- package/dist/models/SubcategoryResponse.js +2 -2
- package/dist/models/ToggleActionRequest.d.ts +1 -1
- package/dist/models/Trade.d.ts +2 -2
- package/dist/models/TradeResponse.d.ts +1 -1
- package/dist/models/TradeResponse.js +2 -2
- package/dist/models/Transaction.d.ts +2 -2
- package/dist/models/TransferResponse.d.ts +1 -1
- package/dist/models/TransferResponse.js +2 -2
- package/dist/models/WalletBalance.d.ts +2 -2
- package/dist/models/WalletResponse.d.ts +1 -1
- package/dist/models/WalletResponse.js +2 -2
- package/dist/runtime.js +1 -1
- package/package.json +6 -2
|
@@ -20,7 +20,7 @@ export interface RefreshRequest {
|
|
|
20
20
|
/**
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export declare class
|
|
23
|
+
export declare class SessionManagementApi extends runtime.BaseAPI {
|
|
24
24
|
/**
|
|
25
25
|
* Create session for a given crededntials
|
|
26
26
|
*/
|
|
@@ -22,13 +22,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
25
|
+
exports.SessionManagementApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
27
|
const index_1 = require("../models/index");
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
31
|
-
class
|
|
31
|
+
class SessionManagementApi extends runtime.BaseAPI {
|
|
32
32
|
/**
|
|
33
33
|
* Create session for a given crededntials
|
|
34
34
|
*/
|
|
@@ -90,4 +90,4 @@ class MonacoAPISessionManagementApi extends runtime.BaseAPI {
|
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
exports.
|
|
93
|
+
exports.SessionManagementApi = SessionManagementApi;
|
|
@@ -22,13 +22,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
25
|
+
exports.StatusApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
27
|
const index_1 = require("../models/index");
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
31
|
-
class
|
|
31
|
+
class StatusApi extends runtime.BaseAPI {
|
|
32
32
|
/**
|
|
33
33
|
* Exchange status
|
|
34
34
|
*/
|
|
@@ -55,4 +55,4 @@ class MonacoAPIAPIStatusApi extends runtime.BaseAPI {
|
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
exports.
|
|
58
|
+
exports.StatusApi = StatusApi;
|
|
@@ -12,19 +12,20 @@
|
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import type { PageRequest, PagedTradeResponse, TradeResponse } from '../models/index';
|
|
14
14
|
export interface GetTradeRequest {
|
|
15
|
-
|
|
15
|
+
authorization: string;
|
|
16
|
+
id: string;
|
|
16
17
|
}
|
|
17
18
|
export interface GetTradesRequest {
|
|
18
19
|
authorization: string;
|
|
19
|
-
marketIds?: Array<
|
|
20
|
+
marketIds?: Array<string>;
|
|
20
21
|
walletIds?: Array<string>;
|
|
21
|
-
orderIds?: Array<
|
|
22
|
+
orderIds?: Array<string>;
|
|
22
23
|
page?: PageRequest;
|
|
23
24
|
}
|
|
24
25
|
/**
|
|
25
26
|
*
|
|
26
27
|
*/
|
|
27
|
-
export declare class
|
|
28
|
+
export declare class TradesApi extends runtime.BaseAPI {
|
|
28
29
|
/**
|
|
29
30
|
* Fetch a trade by ID
|
|
30
31
|
*/
|
|
@@ -22,23 +22,29 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
25
|
+
exports.TradesApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
27
|
const index_1 = require("../models/index");
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
31
|
-
class
|
|
31
|
+
class TradesApi extends runtime.BaseAPI {
|
|
32
32
|
/**
|
|
33
33
|
* Fetch a trade by ID
|
|
34
34
|
*/
|
|
35
35
|
getTradeRaw(requestParameters, initOverrides) {
|
|
36
36
|
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
if (requestParameters['authorization'] == null) {
|
|
38
|
+
throw new runtime.RequiredError('authorization', 'Required parameter "authorization" was null or undefined when calling getTrade().');
|
|
39
|
+
}
|
|
37
40
|
if (requestParameters['id'] == null) {
|
|
38
41
|
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getTrade().');
|
|
39
42
|
}
|
|
40
43
|
const queryParameters = {};
|
|
41
44
|
const headerParameters = {};
|
|
45
|
+
if (requestParameters['authorization'] != null) {
|
|
46
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
47
|
+
}
|
|
42
48
|
const response = yield this.request({
|
|
43
49
|
path: `/trades/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
44
50
|
method: 'GET',
|
|
@@ -101,4 +107,4 @@ class MonacoAPITradesApi extends runtime.BaseAPI {
|
|
|
101
107
|
});
|
|
102
108
|
}
|
|
103
109
|
}
|
|
104
|
-
exports.
|
|
110
|
+
exports.TradesApi = TradesApi;
|
|
@@ -18,7 +18,7 @@ export interface CreateWalletOperationRequest {
|
|
|
18
18
|
export interface CreditWalletRequest {
|
|
19
19
|
authorization: string;
|
|
20
20
|
walletId: string;
|
|
21
|
-
currencyId:
|
|
21
|
+
currencyId: string;
|
|
22
22
|
}
|
|
23
23
|
export interface FetchWalletsRequest {
|
|
24
24
|
authorization: string;
|
|
@@ -41,7 +41,7 @@ export interface WalletWithdrawRequest {
|
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
43
|
*/
|
|
44
|
-
export declare class
|
|
44
|
+
export declare class WalletsApi extends runtime.BaseAPI {
|
|
45
45
|
/**
|
|
46
46
|
* Creates a wallet that can be used to create orders and receive winnings
|
|
47
47
|
* Create a wallet
|
|
@@ -22,13 +22,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
25
|
+
exports.WalletsApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
27
|
const index_1 = require("../models/index");
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
31
|
-
class
|
|
31
|
+
class WalletsApi extends runtime.BaseAPI {
|
|
32
32
|
/**
|
|
33
33
|
* Creates a wallet that can be used to create orders and receive winnings
|
|
34
34
|
* Create a wallet
|
|
@@ -259,4 +259,4 @@ class MonacoAPIWalletsApi extends runtime.BaseAPI {
|
|
|
259
259
|
});
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
|
-
exports.
|
|
262
|
+
exports.WalletsApi = WalletsApi;
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './
|
|
10
|
-
export * from './
|
|
11
|
-
export * from './
|
|
12
|
-
export * from './
|
|
13
|
-
export * from './
|
|
14
|
-
export * from './
|
|
1
|
+
export * from './APIKeyManagementApi';
|
|
2
|
+
export * from './AppManagementApi';
|
|
3
|
+
export * from './CurrenciesApi';
|
|
4
|
+
export * from './EventCategoriesApi';
|
|
5
|
+
export * from './EventGroupsApi';
|
|
6
|
+
export * from './EventSubcategoriesApi';
|
|
7
|
+
export * from './EventsApi';
|
|
8
|
+
export * from './MarketTypesApi';
|
|
9
|
+
export * from './MarketsApi';
|
|
10
|
+
export * from './OrdersApi';
|
|
11
|
+
export * from './SessionManagementApi';
|
|
12
|
+
export * from './StatusApi';
|
|
13
|
+
export * from './TradesApi';
|
|
14
|
+
export * from './WalletsApi';
|
package/dist/apis/index.js
CHANGED
|
@@ -16,17 +16,17 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
/* tslint:disable */
|
|
18
18
|
/* eslint-disable */
|
|
19
|
-
__exportStar(require("./
|
|
20
|
-
__exportStar(require("./
|
|
21
|
-
__exportStar(require("./
|
|
22
|
-
__exportStar(require("./
|
|
23
|
-
__exportStar(require("./
|
|
24
|
-
__exportStar(require("./
|
|
25
|
-
__exportStar(require("./
|
|
26
|
-
__exportStar(require("./
|
|
27
|
-
__exportStar(require("./
|
|
28
|
-
__exportStar(require("./
|
|
29
|
-
__exportStar(require("./
|
|
30
|
-
__exportStar(require("./
|
|
31
|
-
__exportStar(require("./
|
|
32
|
-
__exportStar(require("./
|
|
19
|
+
__exportStar(require("./APIKeyManagementApi"), exports);
|
|
20
|
+
__exportStar(require("./AppManagementApi"), exports);
|
|
21
|
+
__exportStar(require("./CurrenciesApi"), exports);
|
|
22
|
+
__exportStar(require("./EventCategoriesApi"), exports);
|
|
23
|
+
__exportStar(require("./EventGroupsApi"), exports);
|
|
24
|
+
__exportStar(require("./EventSubcategoriesApi"), exports);
|
|
25
|
+
__exportStar(require("./EventsApi"), exports);
|
|
26
|
+
__exportStar(require("./MarketTypesApi"), exports);
|
|
27
|
+
__exportStar(require("./MarketsApi"), exports);
|
|
28
|
+
__exportStar(require("./OrdersApi"), exports);
|
|
29
|
+
__exportStar(require("./SessionManagementApi"), exports);
|
|
30
|
+
__exportStar(require("./StatusApi"), exports);
|
|
31
|
+
__exportStar(require("./TradesApi"), exports);
|
|
32
|
+
__exportStar(require("./WalletsApi"), exports);
|
|
@@ -34,7 +34,7 @@ function APIKeyResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
34
|
return json;
|
|
35
35
|
}
|
|
36
36
|
return {
|
|
37
|
-
'
|
|
37
|
+
'getMeta': json['get_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['get_meta']),
|
|
38
38
|
'apiKeys': json['apiKeys'] == null ? undefined : (json['apiKeys'].map(APIKey_1.APIKeyFromJSON)),
|
|
39
39
|
};
|
|
40
40
|
}
|
|
@@ -46,7 +46,7 @@ function APIKeyResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
46
46
|
return value;
|
|
47
47
|
}
|
|
48
48
|
return {
|
|
49
|
-
'
|
|
49
|
+
'get_meta': (0, Meta_1.MetaToJSON)(value['getMeta']),
|
|
50
50
|
'apiKeys': value['apiKeys'] == null ? undefined : (value['apiKeys'].map(APIKey_1.APIKeyToJSON)),
|
|
51
51
|
};
|
|
52
52
|
}
|
|
@@ -35,7 +35,7 @@ function AppResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
35
|
return json;
|
|
36
36
|
}
|
|
37
37
|
return {
|
|
38
|
-
'
|
|
38
|
+
'getMeta': json['get_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['get_meta']),
|
|
39
39
|
'apps': json['apps'] == null ? undefined : (json['apps'].map(App_1.AppFromJSON)),
|
|
40
40
|
'commissionRates': json['commissionRates'] == null ? undefined : (json['commissionRates'].map(CommissionRate_1.CommissionRateFromJSON)),
|
|
41
41
|
};
|
|
@@ -48,7 +48,7 @@ function AppResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
48
48
|
return value;
|
|
49
49
|
}
|
|
50
50
|
return {
|
|
51
|
-
'
|
|
51
|
+
'get_meta': (0, Meta_1.MetaToJSON)(value['getMeta']),
|
|
52
52
|
'apps': value['apps'] == null ? undefined : (value['apps'].map(App_1.AppToJSON)),
|
|
53
53
|
'commissionRates': value['commissionRates'] == null ? undefined : (value['commissionRates'].map(CommissionRate_1.CommissionRateToJSON)),
|
|
54
54
|
};
|
|
@@ -34,7 +34,7 @@ function AppStatusResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
34
|
return json;
|
|
35
35
|
}
|
|
36
36
|
return {
|
|
37
|
-
'
|
|
37
|
+
'getMeta': json['get_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['get_meta']),
|
|
38
38
|
'statuses': json['statuses'] == null ? undefined : (json['statuses'].map(AppStatus_1.AppStatusFromJSON)),
|
|
39
39
|
};
|
|
40
40
|
}
|
|
@@ -46,7 +46,7 @@ function AppStatusResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
46
46
|
return value;
|
|
47
47
|
}
|
|
48
48
|
return {
|
|
49
|
-
'
|
|
49
|
+
'get_meta': (0, Meta_1.MetaToJSON)(value['getMeta']),
|
|
50
50
|
'statuses': value['statuses'] == null ? undefined : (value['statuses'].map(AppStatus_1.AppStatusToJSON)),
|
|
51
51
|
};
|
|
52
52
|
}
|
|
@@ -34,7 +34,7 @@ function CategoryResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
34
|
return json;
|
|
35
35
|
}
|
|
36
36
|
return {
|
|
37
|
-
'
|
|
37
|
+
'getMeta': json['get_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['get_meta']),
|
|
38
38
|
'categories': json['categories'] == null ? undefined : (json['categories'].map(Category_1.CategoryFromJSON)),
|
|
39
39
|
};
|
|
40
40
|
}
|
|
@@ -46,7 +46,7 @@ function CategoryResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
46
46
|
return value;
|
|
47
47
|
}
|
|
48
48
|
return {
|
|
49
|
-
'
|
|
49
|
+
'get_meta': (0, Meta_1.MetaToJSON)(value['getMeta']),
|
|
50
50
|
'categories': value['categories'] == null ? undefined : (value['categories'].map(Category_1.CategoryToJSON)),
|
|
51
51
|
};
|
|
52
52
|
}
|
|
@@ -34,7 +34,7 @@ function CommissionRateResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
34
|
return json;
|
|
35
35
|
}
|
|
36
36
|
return {
|
|
37
|
-
'
|
|
37
|
+
'getMeta': json['get_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['get_meta']),
|
|
38
38
|
'commissionRates': json['commissionRates'] == null ? undefined : (json['commissionRates'].map(CommissionRate_1.CommissionRateFromJSON)),
|
|
39
39
|
};
|
|
40
40
|
}
|
|
@@ -46,7 +46,7 @@ function CommissionRateResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
46
46
|
return value;
|
|
47
47
|
}
|
|
48
48
|
return {
|
|
49
|
-
'
|
|
49
|
+
'get_meta': (0, Meta_1.MetaToJSON)(value['getMeta']),
|
|
50
50
|
'commissionRates': value['commissionRates'] == null ? undefined : (value['commissionRates'].map(CommissionRate_1.CommissionRateToJSON)),
|
|
51
51
|
};
|
|
52
52
|
}
|
|
@@ -34,7 +34,7 @@ function CurrencyResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
34
|
return json;
|
|
35
35
|
}
|
|
36
36
|
return {
|
|
37
|
-
'
|
|
37
|
+
'getMeta': json['get_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['get_meta']),
|
|
38
38
|
'currencies': json['currencies'] == null ? undefined : (json['currencies'].map(Currency_1.CurrencyFromJSON)),
|
|
39
39
|
};
|
|
40
40
|
}
|
|
@@ -46,7 +46,7 @@ function CurrencyResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
46
46
|
return value;
|
|
47
47
|
}
|
|
48
48
|
return {
|
|
49
|
-
'
|
|
49
|
+
'get_meta': (0, Meta_1.MetaToJSON)(value['getMeta']),
|
|
50
50
|
'currencies': value['currencies'] == null ? undefined : (value['currencies'].map(Currency_1.CurrencyToJSON)),
|
|
51
51
|
};
|
|
52
52
|
}
|
package/dist/models/Event.d.ts
CHANGED
|
@@ -36,7 +36,7 @@ function EventGroupResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
36
|
return json;
|
|
37
37
|
}
|
|
38
38
|
return {
|
|
39
|
-
'
|
|
39
|
+
'getMeta': json['get_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['get_meta']),
|
|
40
40
|
'eventGroups': json['eventGroups'] == null ? undefined : (json['eventGroups'].map(EventGroup_1.EventGroupFromJSON)),
|
|
41
41
|
'subcategories': json['subcategories'] == null ? undefined : (json['subcategories'].map(SubcategorySummary_1.SubcategorySummaryFromJSON)),
|
|
42
42
|
'categories': json['categories'] == null ? undefined : (json['categories'].map(CategorySummary_1.CategorySummaryFromJSON)),
|
|
@@ -50,7 +50,7 @@ function EventGroupResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
50
50
|
return value;
|
|
51
51
|
}
|
|
52
52
|
return {
|
|
53
|
-
'
|
|
53
|
+
'get_meta': (0, Meta_1.MetaToJSON)(value['getMeta']),
|
|
54
54
|
'eventGroups': value['eventGroups'] == null ? undefined : (value['eventGroups'].map(EventGroup_1.EventGroupToJSON)),
|
|
55
55
|
'subcategories': value['subcategories'] == null ? undefined : (value['subcategories'].map(SubcategorySummary_1.SubcategorySummaryToJSON)),
|
|
56
56
|
'categories': value['categories'] == null ? undefined : (value['categories'].map(CategorySummary_1.CategorySummaryToJSON)),
|
|
@@ -37,7 +37,7 @@ function EventResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
37
|
return json;
|
|
38
38
|
}
|
|
39
39
|
return {
|
|
40
|
-
'
|
|
40
|
+
'getMeta': json['get_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['get_meta']),
|
|
41
41
|
'events': json['events'] == null ? undefined : (json['events'].map(Event_1.EventFromJSON)),
|
|
42
42
|
'eventGroups': json['eventGroups'] == null ? undefined : (json['eventGroups'].map(EventGroup_1.EventGroupFromJSON)),
|
|
43
43
|
'subcategories': json['subcategories'] == null ? undefined : (json['subcategories'].map(Subcategory_1.SubcategoryFromJSON)),
|
|
@@ -52,7 +52,7 @@ function EventResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
52
52
|
return value;
|
|
53
53
|
}
|
|
54
54
|
return {
|
|
55
|
-
'
|
|
55
|
+
'get_meta': (0, Meta_1.MetaToJSON)(value['getMeta']),
|
|
56
56
|
'events': value['events'] == null ? undefined : (value['events'].map(Event_1.EventToJSON)),
|
|
57
57
|
'eventGroups': value['eventGroups'] == null ? undefined : (value['eventGroups'].map(EventGroup_1.EventGroupToJSON)),
|
|
58
58
|
'subcategories': value['subcategories'] == null ? undefined : (value['subcategories'].map(Subcategory_1.SubcategoryToJSON)),
|
|
@@ -18,10 +18,10 @@ import type { DocumentReference } from './DocumentReference';
|
|
|
18
18
|
export interface EventSummary {
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
21
|
-
* @type {
|
|
21
|
+
* @type {string}
|
|
22
22
|
* @memberof EventSummary
|
|
23
23
|
*/
|
|
24
|
-
id?:
|
|
24
|
+
id?: string;
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
* @type {DocumentReference}
|
package/dist/models/Market.d.ts
CHANGED
|
@@ -18,10 +18,10 @@ import type { DocumentReference } from './DocumentReference';
|
|
|
18
18
|
export interface Market {
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
21
|
-
* @type {
|
|
21
|
+
* @type {string}
|
|
22
22
|
* @memberof Market
|
|
23
23
|
*/
|
|
24
|
-
id?:
|
|
24
|
+
id?: string;
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
* @type {string}
|
|
@@ -60,10 +60,10 @@ export interface Market {
|
|
|
60
60
|
marketDiscriminator?: string;
|
|
61
61
|
/**
|
|
62
62
|
*
|
|
63
|
-
* @type {
|
|
63
|
+
* @type {string}
|
|
64
64
|
* @memberof Market
|
|
65
65
|
*/
|
|
66
|
-
currencyId?:
|
|
66
|
+
currencyId?: string;
|
|
67
67
|
/**
|
|
68
68
|
*
|
|
69
69
|
* @type {boolean}
|
|
@@ -34,7 +34,7 @@ function MarketLiquidityResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
34
|
return json;
|
|
35
35
|
}
|
|
36
36
|
return {
|
|
37
|
-
'
|
|
37
|
+
'getMeta': json['get_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['get_meta']),
|
|
38
38
|
'prices': json['prices'] == null ? undefined : (json['prices'].map(MarketLiquidity_1.MarketLiquidityFromJSON)),
|
|
39
39
|
};
|
|
40
40
|
}
|
|
@@ -46,7 +46,7 @@ function MarketLiquidityResponseToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
46
46
|
return value;
|
|
47
47
|
}
|
|
48
48
|
return {
|
|
49
|
-
'
|
|
49
|
+
'get_meta': (0, Meta_1.MetaToJSON)(value['getMeta']),
|
|
50
50
|
'prices': value['prices'] == null ? undefined : (value['prices'].map(MarketLiquidity_1.MarketLiquidityToJSON)),
|
|
51
51
|
};
|
|
52
52
|
}
|