@monaco-protocol/client-v2 0.0.2-dev.0 → 0.0.2-dev.11
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 +32 -26
- package/dist/apis/{MonacoAPIAPIKeyManagementApi.d.ts → APIKeyManagementApi.d.ts} +4 -4
- package/dist/apis/{MonacoAPIAPIKeyManagementApi.js → APIKeyManagementApi.js} +8 -8
- package/dist/apis/{MonacoAPIAppManagementApi.d.ts → AppManagementApi.d.ts} +7 -7
- package/dist/apis/{MonacoAPIAppManagementApi.js → AppManagementApi.js} +12 -12
- package/dist/apis/{MonacoAPICurrenciesApi.d.ts → CurrenciesApi.d.ts} +5 -5
- package/dist/apis/{MonacoAPICurrenciesApi.js → CurrenciesApi.js} +8 -8
- package/dist/apis/EventCategoriesApi.d.ts +53 -0
- package/dist/apis/{MonacoAPIEventCategoriesApi.js → EventCategoriesApi.js} +17 -17
- package/dist/apis/EventGroupsApi.d.ts +54 -0
- package/dist/apis/{MonacoAPIEventGroupsApi.js → EventGroupsApi.js} +19 -19
- package/dist/apis/EventSubcategoriesApi.d.ts +105 -0
- package/dist/apis/EventSubcategoriesApi.js +287 -0
- package/dist/apis/EventsApi.d.ts +175 -0
- package/dist/apis/EventsApi.js +477 -0
- package/dist/apis/HeartbeatManagementApi.d.ts +52 -0
- package/dist/apis/{MonacoAPIEventSubcategoriesApi.js → HeartbeatManagementApi.js} +35 -41
- package/dist/apis/MarketPricesApi.d.ts +41 -0
- package/dist/apis/MarketPricesApi.js +101 -0
- 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} +79 -25
- package/dist/apis/{MonacoAPIMarketsApi.js → MarketsApi.js} +158 -16
- package/dist/apis/{MonacoAPIOrdersApi.d.ts → OrdersApi.d.ts} +56 -19
- package/dist/apis/{MonacoAPIOrdersApi.js → OrdersApi.js} +119 -11
- package/dist/apis/SessionManagementApi.d.ts +40 -0
- package/dist/apis/{MonacoAPISessionManagementApi.js → SessionManagementApi.js} +15 -15
- 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} +9 -6
- package/dist/apis/{MonacoAPITradesApi.js → TradesApi.js} +15 -3
- package/dist/apis/{MonacoAPIWalletsApi.d.ts → WalletsApi.d.ts} +24 -5
- package/dist/apis/{MonacoAPIWalletsApi.js → WalletsApi.js} +57 -3
- package/dist/apis/index.d.ts +16 -14
- package/dist/apis/index.js +16 -14
- package/dist/models/AddMarketOutcomeRequest.d.ts +1 -1
- package/dist/models/AddMarketOutcomeRequest.js +2 -2
- package/dist/models/AddParticipantRequest.d.ts +52 -0
- package/dist/models/AddParticipantRequest.js +60 -0
- package/dist/models/AddParticipantsRequest.d.ts +33 -0
- package/dist/models/AddParticipantsRequest.js +49 -0
- package/dist/models/ChunkOrderResponse.d.ts +67 -0
- package/dist/models/ChunkOrderResponse.js +63 -0
- package/dist/models/CommissionRate.d.ts +2 -2
- package/dist/models/CreateEventRequest.d.ts +5 -5
- package/dist/models/CreateEventRequest.js +16 -6
- package/dist/models/CreateMarketRequest.d.ts +2 -2
- package/dist/models/CreateOrderRequest.d.ts +13 -4
- package/dist/models/CreateOrderRequest.js +4 -2
- package/dist/models/CreateSessionRequest.d.ts +2 -2
- package/dist/models/CreateSessionRequest.js +6 -2
- package/dist/models/CreateWalletRequest.d.ts +0 -16
- package/dist/models/CreateWalletRequest.js +0 -12
- package/dist/models/Currency.d.ts +2 -2
- package/dist/models/DocumentReference.js +4 -4
- package/dist/models/Event.d.ts +8 -2
- package/dist/models/Event.js +2 -0
- package/dist/models/EventParticipant.d.ts +52 -0
- package/dist/models/EventParticipant.js +60 -0
- package/dist/models/EventParticipantsResponse.d.ts +40 -0
- package/dist/models/EventParticipantsResponse.js +52 -0
- package/dist/models/EventResponse.d.ts +7 -0
- package/dist/models/EventResponse.js +3 -0
- package/dist/models/EventSummary.d.ts +2 -2
- package/dist/models/EventUpdateResponse.d.ts +40 -0
- package/dist/models/EventUpdateResponse.js +52 -0
- package/dist/models/Heartbeat.d.ts +50 -0
- package/dist/models/Heartbeat.js +54 -0
- package/dist/models/HeartbeatResponse.d.ts +40 -0
- package/dist/models/HeartbeatResponse.js +52 -0
- package/dist/models/Market.d.ts +21 -12
- package/dist/models/Market.js +13 -5
- package/dist/models/MarketLiquidities.d.ts +39 -0
- package/dist/models/MarketLiquidities.js +51 -0
- package/dist/models/MarketLiquiditiesResponse.d.ts +40 -0
- package/dist/models/MarketLiquiditiesResponse.js +52 -0
- package/dist/models/MarketLiquidity.d.ts +2 -2
- package/dist/models/MarketLiquidity.js +2 -2
- package/dist/models/MarketOutcomeResult.d.ts +38 -0
- package/dist/models/MarketOutcomeResult.js +50 -0
- package/dist/models/MarketOutcomeSummary.d.ts +9 -3
- package/dist/models/MarketOutcomeSummary.js +4 -2
- package/dist/models/MarketPosition.d.ts +4 -2
- package/dist/models/MarketPriceLadder.d.ts +32 -0
- package/dist/models/MarketPriceLadder.js +48 -0
- package/dist/models/MarketPriceLadderResponse.d.ts +40 -0
- package/dist/models/MarketPriceLadderResponse.js +52 -0
- package/dist/models/MarketResultRequest.d.ts +3 -3
- package/dist/models/MarketResultRequest.js +3 -3
- package/dist/models/MarketSummary.d.ts +32 -4
- package/dist/models/MarketSummary.js +18 -3
- package/dist/models/MarketUpdateResponse.d.ts +40 -0
- package/dist/models/MarketUpdateResponse.js +52 -0
- package/dist/models/Meta.d.ts +36 -1
- package/dist/models/Meta.js +31 -0
- package/dist/models/ModifyParticipantsRequest.d.ts +32 -0
- package/dist/models/ModifyParticipantsRequest.js +48 -0
- package/dist/models/Order.d.ts +35 -6
- package/dist/models/Order.js +17 -3
- package/dist/models/OrderResponse.d.ts +7 -0
- package/dist/models/OrderResponse.js +3 -0
- package/dist/models/OrderSummary.d.ts +33 -4
- package/dist/models/OrderSummary.js +17 -3
- package/dist/models/OutcomeResult.d.ts +2 -2
- package/dist/models/PageMeta.d.ts +50 -0
- package/dist/models/PageMeta.js +54 -0
- package/dist/models/Pageable.d.ts +44 -0
- package/dist/models/Pageable.js +52 -0
- package/dist/models/PagedEventResponse.d.ts +3 -20
- package/dist/models/PagedEventResponse.js +3 -8
- package/dist/models/PagedMarketPositionResponse.d.ts +0 -24
- package/dist/models/PagedMarketPositionResponse.js +0 -8
- package/dist/models/PagedOrderResponse.d.ts +3 -20
- package/dist/models/PagedOrderResponse.js +3 -8
- package/dist/models/PagedTradeResponse.d.ts +0 -24
- package/dist/models/PagedTradeResponse.js +0 -8
- package/dist/models/PagedTransactionResponse.d.ts +0 -24
- package/dist/models/PagedTransactionResponse.js +0 -8
- package/dist/models/Participant.d.ts +58 -0
- package/dist/models/Participant.js +62 -0
- package/dist/models/ParticipantsResponse.d.ts +40 -0
- package/dist/models/ParticipantsResponse.js +52 -0
- package/dist/models/ToggleActionRequest.d.ts +1 -1
- package/dist/models/Trade.d.ts +4 -4
- package/dist/models/Trade.js +2 -2
- package/dist/models/TradeSummary.d.ts +44 -0
- package/dist/models/TradeSummary.js +52 -0
- package/dist/models/Transaction.d.ts +3 -2
- package/dist/models/Transaction.js +2 -1
- package/dist/models/UpdateDateRequest.d.ts +32 -0
- package/dist/models/UpdateDateRequest.js +50 -0
- package/dist/models/UpdateHeartbeatRequest.d.ts +38 -0
- package/dist/models/UpdateHeartbeatRequest.js +52 -0
- package/dist/models/UpdateNameRequest.d.ts +32 -0
- package/dist/models/UpdateNameRequest.js +50 -0
- package/dist/models/WalletBalance.d.ts +2 -2
- package/dist/models/index.d.ts +22 -2
- package/dist/models/index.js +22 -2
- package/package.json +6 -2
- package/dist/apis/MonacoAPIEventCategoriesApi.d.ts +0 -53
- package/dist/apis/MonacoAPIEventGroupsApi.d.ts +0 -54
- package/dist/apis/MonacoAPIEventSubcategoriesApi.d.ts +0 -54
- package/dist/apis/MonacoAPIEventsApi.d.ts +0 -68
- package/dist/apis/MonacoAPIEventsApi.js +0 -158
- package/dist/apis/MonacoAPISessionManagementApi.d.ts +0 -40
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Monaco API
|
|
3
|
+
* A RESTful API that allows you to interact with the Monaco Exchange. Provides endpoints for managing Events, Markets, Sessions, Wallets and Orders. To interact with the API, a client must have an App Id and an API Key to authenticate and create a session.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1
|
|
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 { Order } from './Order';
|
|
13
|
+
import type { Meta } from './Meta';
|
|
14
|
+
import type { MarketSummary } from './MarketSummary';
|
|
15
|
+
import type { TradeSummary } from './TradeSummary';
|
|
16
|
+
import type { EventSummary } from './EventSummary';
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface ChunkOrderResponse
|
|
21
|
+
*/
|
|
22
|
+
export interface ChunkOrderResponse {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {Meta}
|
|
26
|
+
* @memberof ChunkOrderResponse
|
|
27
|
+
*/
|
|
28
|
+
meta?: Meta;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {Array<Order>}
|
|
32
|
+
* @memberof ChunkOrderResponse
|
|
33
|
+
*/
|
|
34
|
+
orders?: Array<Order>;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {Array<MarketSummary>}
|
|
38
|
+
* @memberof ChunkOrderResponse
|
|
39
|
+
*/
|
|
40
|
+
markets?: Array<MarketSummary>;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {Array<EventSummary>}
|
|
44
|
+
* @memberof ChunkOrderResponse
|
|
45
|
+
*/
|
|
46
|
+
events?: Array<EventSummary>;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {Array<TradeSummary>}
|
|
50
|
+
* @memberof ChunkOrderResponse
|
|
51
|
+
*/
|
|
52
|
+
trades?: Array<TradeSummary>;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {number}
|
|
56
|
+
* @memberof ChunkOrderResponse
|
|
57
|
+
*/
|
|
58
|
+
totalElements?: number;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the ChunkOrderResponse interface.
|
|
62
|
+
*/
|
|
63
|
+
export declare function instanceOfChunkOrderResponse(value: object): value is ChunkOrderResponse;
|
|
64
|
+
export declare function ChunkOrderResponseFromJSON(json: any): ChunkOrderResponse;
|
|
65
|
+
export declare function ChunkOrderResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChunkOrderResponse;
|
|
66
|
+
export declare function ChunkOrderResponseToJSON(json: any): ChunkOrderResponse;
|
|
67
|
+
export declare function ChunkOrderResponseToJSONTyped(value?: ChunkOrderResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Monaco API
|
|
6
|
+
* A RESTful API that allows you to interact with the Monaco Exchange. Provides endpoints for managing Events, Markets, Sessions, Wallets and Orders. To interact with the API, a client must have an App Id and an API Key to authenticate and create a session.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfChunkOrderResponse = instanceOfChunkOrderResponse;
|
|
17
|
+
exports.ChunkOrderResponseFromJSON = ChunkOrderResponseFromJSON;
|
|
18
|
+
exports.ChunkOrderResponseFromJSONTyped = ChunkOrderResponseFromJSONTyped;
|
|
19
|
+
exports.ChunkOrderResponseToJSON = ChunkOrderResponseToJSON;
|
|
20
|
+
exports.ChunkOrderResponseToJSONTyped = ChunkOrderResponseToJSONTyped;
|
|
21
|
+
const Order_1 = require("./Order");
|
|
22
|
+
const Meta_1 = require("./Meta");
|
|
23
|
+
const MarketSummary_1 = require("./MarketSummary");
|
|
24
|
+
const TradeSummary_1 = require("./TradeSummary");
|
|
25
|
+
const EventSummary_1 = require("./EventSummary");
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ChunkOrderResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
function instanceOfChunkOrderResponse(value) {
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function ChunkOrderResponseFromJSON(json) {
|
|
33
|
+
return ChunkOrderResponseFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function ChunkOrderResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'meta': json['_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['_meta']),
|
|
41
|
+
'orders': json['orders'] == null ? undefined : (json['orders'].map(Order_1.OrderFromJSON)),
|
|
42
|
+
'markets': json['markets'] == null ? undefined : (json['markets'].map(MarketSummary_1.MarketSummaryFromJSON)),
|
|
43
|
+
'events': json['events'] == null ? undefined : (json['events'].map(EventSummary_1.EventSummaryFromJSON)),
|
|
44
|
+
'trades': json['trades'] == null ? undefined : (json['trades'].map(TradeSummary_1.TradeSummaryFromJSON)),
|
|
45
|
+
'totalElements': json['totalElements'] == null ? undefined : json['totalElements'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
function ChunkOrderResponseToJSON(json) {
|
|
49
|
+
return ChunkOrderResponseToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
function ChunkOrderResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'_meta': (0, Meta_1.MetaToJSON)(value['meta']),
|
|
57
|
+
'orders': value['orders'] == null ? undefined : (value['orders'].map(Order_1.OrderToJSON)),
|
|
58
|
+
'markets': value['markets'] == null ? undefined : (value['markets'].map(MarketSummary_1.MarketSummaryToJSON)),
|
|
59
|
+
'events': value['events'] == null ? undefined : (value['events'].map(EventSummary_1.EventSummaryToJSON)),
|
|
60
|
+
'trades': value['trades'] == null ? undefined : (value['trades'].map(TradeSummary_1.TradeSummaryToJSON)),
|
|
61
|
+
'totalElements': value['totalElements'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -20,31 +20,31 @@ export interface CreateEventRequest {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof CreateEventRequest
|
|
22
22
|
*/
|
|
23
|
-
eventGroupId
|
|
23
|
+
eventGroupId: string;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof CreateEventRequest
|
|
28
28
|
*/
|
|
29
|
-
name
|
|
29
|
+
name: string;
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof CreateEventRequest
|
|
34
34
|
*/
|
|
35
|
-
code
|
|
35
|
+
code: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @type {boolean}
|
|
39
39
|
* @memberof CreateEventRequest
|
|
40
40
|
*/
|
|
41
|
-
active
|
|
41
|
+
active: boolean;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {Date}
|
|
45
45
|
* @memberof CreateEventRequest
|
|
46
46
|
*/
|
|
47
|
-
expectedStartTime
|
|
47
|
+
expectedStartTime: Date;
|
|
48
48
|
}
|
|
49
49
|
/**
|
|
50
50
|
* Check if a given object implements the CreateEventRequest interface.
|
|
@@ -22,6 +22,16 @@ exports.CreateEventRequestToJSONTyped = CreateEventRequestToJSONTyped;
|
|
|
22
22
|
* Check if a given object implements the CreateEventRequest interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfCreateEventRequest(value) {
|
|
25
|
+
if (!('eventGroupId' in value) || value['eventGroupId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('code' in value) || value['code'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('active' in value) || value['active'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('expectedStartTime' in value) || value['expectedStartTime'] === undefined)
|
|
34
|
+
return false;
|
|
25
35
|
return true;
|
|
26
36
|
}
|
|
27
37
|
function CreateEventRequestFromJSON(json) {
|
|
@@ -32,11 +42,11 @@ function CreateEventRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
42
|
return json;
|
|
33
43
|
}
|
|
34
44
|
return {
|
|
35
|
-
'eventGroupId': json['eventGroupId']
|
|
36
|
-
'name': json['name']
|
|
37
|
-
'code': json['code']
|
|
38
|
-
'active': json['active']
|
|
39
|
-
'expectedStartTime':
|
|
45
|
+
'eventGroupId': json['eventGroupId'],
|
|
46
|
+
'name': json['name'],
|
|
47
|
+
'code': json['code'],
|
|
48
|
+
'active': json['active'],
|
|
49
|
+
'expectedStartTime': (new Date(json['expectedStartTime'])),
|
|
40
50
|
};
|
|
41
51
|
}
|
|
42
52
|
function CreateEventRequestToJSON(json) {
|
|
@@ -51,6 +61,6 @@ function CreateEventRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
51
61
|
'name': value['name'],
|
|
52
62
|
'code': value['code'],
|
|
53
63
|
'active': value['active'],
|
|
54
|
-
'expectedStartTime':
|
|
64
|
+
'expectedStartTime': ((value['expectedStartTime']).toISOString()),
|
|
55
65
|
};
|
|
56
66
|
}
|
|
@@ -23,10 +23,10 @@ export interface CreateOrderRequest {
|
|
|
23
23
|
walletId?: string;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
|
-
* @type {
|
|
26
|
+
* @type {string}
|
|
27
27
|
* @memberof CreateOrderRequest
|
|
28
28
|
*/
|
|
29
|
-
marketId?:
|
|
29
|
+
marketId?: string;
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
32
|
* @type {string}
|
|
@@ -35,10 +35,10 @@ export interface CreateOrderRequest {
|
|
|
35
35
|
side?: CreateOrderRequestSideEnum;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
|
-
* @type {
|
|
38
|
+
* @type {string}
|
|
39
39
|
* @memberof CreateOrderRequest
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
outcomeId?: string;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {number}
|
|
@@ -69,6 +69,15 @@ export interface CreateOrderRequest {
|
|
|
69
69
|
* @memberof CreateOrderRequest
|
|
70
70
|
*/
|
|
71
71
|
reference?: string;
|
|
72
|
+
/**
|
|
73
|
+
* Optional - to use a different commission rate for this order than your app's
|
|
74
|
+
* default commission rate. If omitted or set to null, the app's default
|
|
75
|
+
* commission rate will be used (if it has one).
|
|
76
|
+
*
|
|
77
|
+
* @type {string}
|
|
78
|
+
* @memberof CreateOrderRequest
|
|
79
|
+
*/
|
|
80
|
+
commissionRateId?: string;
|
|
72
81
|
}
|
|
73
82
|
/**
|
|
74
83
|
* @export
|
|
@@ -50,12 +50,13 @@ function CreateOrderRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
50
|
'walletId': json['walletId'] == null ? undefined : json['walletId'],
|
|
51
51
|
'marketId': json['marketId'] == null ? undefined : json['marketId'],
|
|
52
52
|
'side': json['side'] == null ? undefined : json['side'],
|
|
53
|
-
'
|
|
53
|
+
'outcomeId': json['outcomeId'] == null ? undefined : json['outcomeId'],
|
|
54
54
|
'price': json['price'] == null ? undefined : json['price'],
|
|
55
55
|
'stake': json['stake'] == null ? undefined : json['stake'],
|
|
56
56
|
'keepWhenInPlay': json['keepWhenInPlay'] == null ? undefined : json['keepWhenInPlay'],
|
|
57
57
|
'matchBehavior': json['matchBehavior'] == null ? undefined : json['matchBehavior'],
|
|
58
58
|
'reference': json['reference'] == null ? undefined : json['reference'],
|
|
59
|
+
'commissionRateId': json['commissionRateId'] == null ? undefined : json['commissionRateId'],
|
|
59
60
|
};
|
|
60
61
|
}
|
|
61
62
|
function CreateOrderRequestToJSON(json) {
|
|
@@ -69,11 +70,12 @@ function CreateOrderRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
69
70
|
'walletId': value['walletId'],
|
|
70
71
|
'marketId': value['marketId'],
|
|
71
72
|
'side': value['side'],
|
|
72
|
-
'
|
|
73
|
+
'outcomeId': value['outcomeId'],
|
|
73
74
|
'price': value['price'],
|
|
74
75
|
'stake': value['stake'],
|
|
75
76
|
'keepWhenInPlay': value['keepWhenInPlay'],
|
|
76
77
|
'matchBehavior': value['matchBehavior'],
|
|
77
78
|
'reference': value['reference'],
|
|
79
|
+
'commissionRateId': value['commissionRateId'],
|
|
78
80
|
};
|
|
79
81
|
}
|
|
@@ -20,13 +20,13 @@ export interface CreateSessionRequest {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof CreateSessionRequest
|
|
22
22
|
*/
|
|
23
|
-
appId
|
|
23
|
+
appId: string;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof CreateSessionRequest
|
|
28
28
|
*/
|
|
29
|
-
apiKey
|
|
29
|
+
apiKey: string;
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* Check if a given object implements the CreateSessionRequest interface.
|
|
@@ -22,6 +22,10 @@ exports.CreateSessionRequestToJSONTyped = CreateSessionRequestToJSONTyped;
|
|
|
22
22
|
* Check if a given object implements the CreateSessionRequest interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfCreateSessionRequest(value) {
|
|
25
|
+
if (!('appId' in value) || value['appId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('apiKey' in value) || value['apiKey'] === undefined)
|
|
28
|
+
return false;
|
|
25
29
|
return true;
|
|
26
30
|
}
|
|
27
31
|
function CreateSessionRequestFromJSON(json) {
|
|
@@ -32,8 +36,8 @@ function CreateSessionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
36
|
return json;
|
|
33
37
|
}
|
|
34
38
|
return {
|
|
35
|
-
'appId': json['appId']
|
|
36
|
-
'apiKey': json['apiKey']
|
|
39
|
+
'appId': json['appId'],
|
|
40
|
+
'apiKey': json['apiKey'],
|
|
37
41
|
};
|
|
38
42
|
}
|
|
39
43
|
function CreateSessionRequestToJSON(json) {
|
|
@@ -15,12 +15,6 @@
|
|
|
15
15
|
* @interface CreateWalletRequest
|
|
16
16
|
*/
|
|
17
17
|
export interface CreateWalletRequest {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof CreateWalletRequest
|
|
22
|
-
*/
|
|
23
|
-
type?: CreateWalletRequestTypeEnum;
|
|
24
18
|
/**
|
|
25
19
|
*
|
|
26
20
|
* @type {string}
|
|
@@ -34,16 +28,6 @@ export interface CreateWalletRequest {
|
|
|
34
28
|
*/
|
|
35
29
|
description?: string;
|
|
36
30
|
}
|
|
37
|
-
/**
|
|
38
|
-
* @export
|
|
39
|
-
*/
|
|
40
|
-
export declare const CreateWalletRequestTypeEnum: {
|
|
41
|
-
readonly Commission: "Commission";
|
|
42
|
-
readonly MarketEscrow: "MarketEscrow";
|
|
43
|
-
readonly System: "System";
|
|
44
|
-
readonly User: "User";
|
|
45
|
-
};
|
|
46
|
-
export type CreateWalletRequestTypeEnum = typeof CreateWalletRequestTypeEnum[keyof typeof CreateWalletRequestTypeEnum];
|
|
47
31
|
/**
|
|
48
32
|
* Check if a given object implements the CreateWalletRequest interface.
|
|
49
33
|
*/
|
|
@@ -13,21 +13,11 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.CreateWalletRequestTypeEnum = void 0;
|
|
17
16
|
exports.instanceOfCreateWalletRequest = instanceOfCreateWalletRequest;
|
|
18
17
|
exports.CreateWalletRequestFromJSON = CreateWalletRequestFromJSON;
|
|
19
18
|
exports.CreateWalletRequestFromJSONTyped = CreateWalletRequestFromJSONTyped;
|
|
20
19
|
exports.CreateWalletRequestToJSON = CreateWalletRequestToJSON;
|
|
21
20
|
exports.CreateWalletRequestToJSONTyped = CreateWalletRequestToJSONTyped;
|
|
22
|
-
/**
|
|
23
|
-
* @export
|
|
24
|
-
*/
|
|
25
|
-
exports.CreateWalletRequestTypeEnum = {
|
|
26
|
-
Commission: 'Commission',
|
|
27
|
-
MarketEscrow: 'MarketEscrow',
|
|
28
|
-
System: 'System',
|
|
29
|
-
User: 'User'
|
|
30
|
-
};
|
|
31
21
|
/**
|
|
32
22
|
* Check if a given object implements the CreateWalletRequest interface.
|
|
33
23
|
*/
|
|
@@ -42,7 +32,6 @@ function CreateWalletRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
32
|
return json;
|
|
43
33
|
}
|
|
44
34
|
return {
|
|
45
|
-
'type': json['type'] == null ? undefined : json['type'],
|
|
46
35
|
'reference': json['reference'] == null ? undefined : json['reference'],
|
|
47
36
|
'description': json['description'] == null ? undefined : json['description'],
|
|
48
37
|
};
|
|
@@ -55,7 +44,6 @@ function CreateWalletRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
55
44
|
return value;
|
|
56
45
|
}
|
|
57
46
|
return {
|
|
58
|
-
'type': value['type'],
|
|
59
47
|
'reference': value['reference'],
|
|
60
48
|
'description': value['description'],
|
|
61
49
|
};
|
|
@@ -32,8 +32,8 @@ function DocumentReferenceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
32
|
return json;
|
|
33
33
|
}
|
|
34
34
|
return {
|
|
35
|
-
'ref': json['
|
|
36
|
-
'ids': json['
|
|
35
|
+
'ref': json['_ref'] == null ? undefined : json['_ref'],
|
|
36
|
+
'ids': json['_ids'] == null ? undefined : json['_ids'],
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
function DocumentReferenceToJSON(json) {
|
|
@@ -44,7 +44,7 @@ function DocumentReferenceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
44
44
|
return value;
|
|
45
45
|
}
|
|
46
46
|
return {
|
|
47
|
-
'
|
|
48
|
-
'
|
|
47
|
+
'_ref': value['ref'],
|
|
48
|
+
'_ids': value['ids'],
|
|
49
49
|
};
|
|
50
50
|
}
|
package/dist/models/Event.d.ts
CHANGED
|
@@ -18,10 +18,10 @@ import type { DocumentReference } from './DocumentReference';
|
|
|
18
18
|
export interface Event {
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
21
|
-
* @type {
|
|
21
|
+
* @type {string}
|
|
22
22
|
* @memberof Event
|
|
23
23
|
*/
|
|
24
|
-
id?:
|
|
24
|
+
id?: string;
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
* @type {string}
|
|
@@ -82,6 +82,12 @@ export interface Event {
|
|
|
82
82
|
* @memberof Event
|
|
83
83
|
*/
|
|
84
84
|
modifiedAt?: Date;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {DocumentReference}
|
|
88
|
+
* @memberof Event
|
|
89
|
+
*/
|
|
90
|
+
participants?: DocumentReference;
|
|
85
91
|
}
|
|
86
92
|
/**
|
|
87
93
|
* Check if a given object implements the Event interface.
|
package/dist/models/Event.js
CHANGED
|
@@ -44,6 +44,7 @@ function EventFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
44
|
'actualEndTime': json['actualEndTime'] == null ? undefined : (new Date(json['actualEndTime'])),
|
|
45
45
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
46
46
|
'modifiedAt': json['modifiedAt'] == null ? undefined : (new Date(json['modifiedAt'])),
|
|
47
|
+
'participants': json['participants'] == null ? undefined : (0, DocumentReference_1.DocumentReferenceFromJSON)(json['participants']),
|
|
47
48
|
};
|
|
48
49
|
}
|
|
49
50
|
function EventToJSON(json) {
|
|
@@ -65,5 +66,6 @@ function EventToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
65
66
|
'actualEndTime': value['actualEndTime'] == null ? undefined : ((value['actualEndTime']).toISOString()),
|
|
66
67
|
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
|
67
68
|
'modifiedAt': value['modifiedAt'] == null ? undefined : ((value['modifiedAt']).toISOString()),
|
|
69
|
+
'participants': (0, DocumentReference_1.DocumentReferenceToJSON)(value['participants']),
|
|
68
70
|
};
|
|
69
71
|
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Monaco API
|
|
3
|
+
* A RESTful API that allows you to interact with the Monaco Exchange. Provides endpoints for managing Events, Markets, Sessions, Wallets and Orders. To interact with the API, a client must have an App Id and an API Key to authenticate and create a session.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1
|
|
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 EventParticipant
|
|
16
|
+
*/
|
|
17
|
+
export interface EventParticipant {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof EventParticipant
|
|
22
|
+
*/
|
|
23
|
+
code?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof EventParticipant
|
|
28
|
+
*/
|
|
29
|
+
name?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof EventParticipant
|
|
34
|
+
*/
|
|
35
|
+
type?: EventParticipantTypeEnum;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const EventParticipantTypeEnum: {
|
|
41
|
+
readonly Individual: "Individual";
|
|
42
|
+
readonly Team: "Team";
|
|
43
|
+
};
|
|
44
|
+
export type EventParticipantTypeEnum = typeof EventParticipantTypeEnum[keyof typeof EventParticipantTypeEnum];
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the EventParticipant interface.
|
|
47
|
+
*/
|
|
48
|
+
export declare function instanceOfEventParticipant(value: object): value is EventParticipant;
|
|
49
|
+
export declare function EventParticipantFromJSON(json: any): EventParticipant;
|
|
50
|
+
export declare function EventParticipantFromJSONTyped(json: any, ignoreDiscriminator: boolean): EventParticipant;
|
|
51
|
+
export declare function EventParticipantToJSON(json: any): EventParticipant;
|
|
52
|
+
export declare function EventParticipantToJSONTyped(value?: EventParticipant | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Monaco API
|
|
6
|
+
* A RESTful API that allows you to interact with the Monaco Exchange. Provides endpoints for managing Events, Markets, Sessions, Wallets and Orders. To interact with the API, a client must have an App Id and an API Key to authenticate and create a session.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.EventParticipantTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfEventParticipant = instanceOfEventParticipant;
|
|
18
|
+
exports.EventParticipantFromJSON = EventParticipantFromJSON;
|
|
19
|
+
exports.EventParticipantFromJSONTyped = EventParticipantFromJSONTyped;
|
|
20
|
+
exports.EventParticipantToJSON = EventParticipantToJSON;
|
|
21
|
+
exports.EventParticipantToJSONTyped = EventParticipantToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.EventParticipantTypeEnum = {
|
|
26
|
+
Individual: 'Individual',
|
|
27
|
+
Team: 'Team'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the EventParticipant interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfEventParticipant(value) {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function EventParticipantFromJSON(json) {
|
|
36
|
+
return EventParticipantFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function EventParticipantFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'code': json['code'] == null ? undefined : json['code'],
|
|
44
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
45
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
function EventParticipantToJSON(json) {
|
|
49
|
+
return EventParticipantToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
function EventParticipantToJSONTyped(value, ignoreDiscriminator = false) {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'code': value['code'],
|
|
57
|
+
'name': value['name'],
|
|
58
|
+
'type': value['type'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Monaco API
|
|
3
|
+
* A RESTful API that allows you to interact with the Monaco Exchange. Provides endpoints for managing Events, Markets, Sessions, Wallets and Orders. To interact with the API, a client must have an App Id and an API Key to authenticate and create a session.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1
|
|
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 { Meta } from './Meta';
|
|
13
|
+
import type { EventParticipant } from './EventParticipant';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface EventParticipantsResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface EventParticipantsResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Meta}
|
|
23
|
+
* @memberof EventParticipantsResponse
|
|
24
|
+
*/
|
|
25
|
+
meta?: Meta;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<EventParticipant>}
|
|
29
|
+
* @memberof EventParticipantsResponse
|
|
30
|
+
*/
|
|
31
|
+
participants?: Array<EventParticipant>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the EventParticipantsResponse interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfEventParticipantsResponse(value: object): value is EventParticipantsResponse;
|
|
37
|
+
export declare function EventParticipantsResponseFromJSON(json: any): EventParticipantsResponse;
|
|
38
|
+
export declare function EventParticipantsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): EventParticipantsResponse;
|
|
39
|
+
export declare function EventParticipantsResponseToJSON(json: any): EventParticipantsResponse;
|
|
40
|
+
export declare function EventParticipantsResponseToJSONTyped(value?: EventParticipantsResponse | null, ignoreDiscriminator?: boolean): any;
|