@monaco-protocol/client-v2 0.0.2-dev.2 → 0.0.2-dev.4
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 +13 -3
- package/dist/apis/APIKeyManagementApi.d.ts +3 -3
- package/dist/apis/APIKeyManagementApi.js +5 -5
- package/dist/apis/AppManagementApi.d.ts +6 -6
- package/dist/apis/AppManagementApi.js +9 -9
- package/dist/apis/CurrenciesApi.d.ts +3 -3
- package/dist/apis/CurrenciesApi.js +5 -5
- package/dist/apis/EventCategoriesApi.d.ts +9 -9
- package/dist/apis/EventCategoriesApi.js +14 -14
- package/dist/apis/EventGroupsApi.d.ts +11 -11
- package/dist/apis/EventGroupsApi.js +16 -16
- package/dist/apis/EventSubcategoriesApi.d.ts +67 -16
- package/dist/apis/EventSubcategoriesApi.js +170 -20
- package/dist/apis/EventsApi.d.ts +42 -2
- package/dist/apis/EventsApi.js +118 -0
- package/dist/apis/MarketPricesApi.d.ts +30 -0
- package/dist/apis/MarketPricesApi.js +70 -0
- package/dist/apis/MarketsApi.d.ts +7 -3
- package/dist/apis/MarketsApi.js +14 -2
- package/dist/apis/OrdersApi.d.ts +15 -10
- package/dist/apis/OrdersApi.js +24 -8
- package/dist/apis/SessionManagementApi.d.ts +10 -10
- package/dist/apis/SessionManagementApi.js +12 -12
- package/dist/apis/TradesApi.d.ts +4 -2
- package/dist/apis/TradesApi.js +6 -0
- package/dist/apis/WalletsApi.d.ts +7 -3
- package/dist/apis/WalletsApi.js +12 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/APIKeyResponse.d.ts +1 -1
- package/dist/models/APIKeyResponse.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/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/ChunkOrderResponse.d.ts +67 -0
- package/dist/models/ChunkOrderResponse.js +63 -0
- package/dist/models/CommissionRateResponse.d.ts +1 -1
- package/dist/models/CommissionRateResponse.js +2 -2
- package/dist/models/CreateEventRequest.d.ts +5 -5
- package/dist/models/CreateEventRequest.js +16 -6
- package/dist/models/CreateOrderRequest.d.ts +9 -0
- package/dist/models/CreateOrderRequest.js +2 -0
- package/dist/models/CreateSessionRequest.d.ts +2 -2
- package/dist/models/CreateSessionRequest.js +6 -2
- package/dist/models/CurrencyResponse.d.ts +1 -1
- package/dist/models/CurrencyResponse.js +2 -2
- package/dist/models/DocumentReference.js +4 -4
- package/dist/models/EventGroupResponse.d.ts +1 -1
- package/dist/models/EventGroupResponse.js +2 -2
- 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 +1 -1
- package/dist/models/EventResponse.js +2 -2
- 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/MarketLiquidityResponse.d.ts +1 -1
- package/dist/models/MarketLiquidityResponse.js +2 -2
- package/dist/models/MarketResponse.d.ts +1 -1
- package/dist/models/MarketResponse.js +2 -2
- package/dist/models/MarketTypeResponse.d.ts +1 -1
- package/dist/models/MarketTypeResponse.js +2 -2
- package/dist/models/Meta.d.ts +34 -1
- package/dist/models/Meta.js +29 -0
- package/dist/models/ModifyParticipantsRequest.d.ts +32 -0
- package/dist/models/ModifyParticipantsRequest.js +48 -0
- package/dist/models/Order.d.ts +16 -0
- package/dist/models/Order.js +12 -1
- package/dist/models/OrderResponse.d.ts +8 -1
- package/dist/models/OrderResponse.js +5 -2
- package/dist/models/PageMeta.d.ts +50 -0
- package/dist/models/PageMeta.js +54 -0
- package/dist/models/PagedEventResponse.d.ts +1 -25
- package/dist/models/PagedEventResponse.js +2 -10
- package/dist/models/PagedMarketPositionResponse.d.ts +1 -25
- package/dist/models/PagedMarketPositionResponse.js +2 -10
- package/dist/models/PagedOrderResponse.d.ts +4 -21
- package/dist/models/PagedOrderResponse.js +5 -10
- package/dist/models/PagedTradeResponse.d.ts +1 -25
- package/dist/models/PagedTradeResponse.js +2 -10
- package/dist/models/PagedTransactionResponse.d.ts +1 -25
- package/dist/models/PagedTransactionResponse.js +2 -10
- 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/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/TradeResponse.d.ts +1 -1
- package/dist/models/TradeResponse.js +2 -2
- package/dist/models/TradeSummary.d.ts +44 -0
- package/dist/models/TradeSummary.js +52 -0
- package/dist/models/Transaction.d.ts +1 -0
- package/dist/models/Transaction.js +2 -1
- package/dist/models/TransferResponse.d.ts +1 -1
- package/dist/models/TransferResponse.js +2 -2
- package/dist/models/WalletResponse.d.ts +1 -1
- package/dist/models/WalletResponse.js +2 -2
- package/dist/models/index.d.ts +12 -1
- package/dist/models/index.js +12 -1
- package/dist/runtime.js +1 -1
- package/package.json +1 -1
|
@@ -34,7 +34,7 @@ function AppStatusResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
34
|
return json;
|
|
35
35
|
}
|
|
36
36
|
return {
|
|
37
|
-
'
|
|
37
|
+
'meta': json['_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['_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
|
+
'_meta': (0, Meta_1.MetaToJSON)(value['meta']),
|
|
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
|
+
'meta': json['_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['_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
|
+
'_meta': (0, Meta_1.MetaToJSON)(value['meta']),
|
|
50
50
|
'categories': value['categories'] == null ? undefined : (value['categories'].map(Category_1.CategoryToJSON)),
|
|
51
51
|
};
|
|
52
52
|
}
|
|
@@ -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
|
+
}
|
|
@@ -34,7 +34,7 @@ function CommissionRateResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
34
|
return json;
|
|
35
35
|
}
|
|
36
36
|
return {
|
|
37
|
-
'
|
|
37
|
+
'meta': json['_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['_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
|
+
'_meta': (0, Meta_1.MetaToJSON)(value['meta']),
|
|
50
50
|
'commissionRates': value['commissionRates'] == null ? undefined : (value['commissionRates'].map(CommissionRate_1.CommissionRateToJSON)),
|
|
51
51
|
};
|
|
52
52
|
}
|
|
@@ -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
|
}
|
|
@@ -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
|
|
@@ -56,6 +56,7 @@ function CreateOrderRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
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) {
|
|
@@ -75,5 +76,6 @@ function CreateOrderRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
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) {
|
|
@@ -34,7 +34,7 @@ function CurrencyResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
34
|
return json;
|
|
35
35
|
}
|
|
36
36
|
return {
|
|
37
|
-
'
|
|
37
|
+
'meta': json['_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['_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
|
+
'_meta': (0, Meta_1.MetaToJSON)(value['meta']),
|
|
50
50
|
'currencies': value['currencies'] == null ? undefined : (value['currencies'].map(Currency_1.CurrencyToJSON)),
|
|
51
51
|
};
|
|
52
52
|
}
|
|
@@ -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
|
}
|
|
@@ -36,7 +36,7 @@ function EventGroupResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
36
|
return json;
|
|
37
37
|
}
|
|
38
38
|
return {
|
|
39
|
-
'
|
|
39
|
+
'meta': json['_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['_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
|
+
'_meta': (0, Meta_1.MetaToJSON)(value['meta']),
|
|
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)),
|
|
@@ -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;
|
|
@@ -0,0 +1,52 @@
|
|
|
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.instanceOfEventParticipantsResponse = instanceOfEventParticipantsResponse;
|
|
17
|
+
exports.EventParticipantsResponseFromJSON = EventParticipantsResponseFromJSON;
|
|
18
|
+
exports.EventParticipantsResponseFromJSONTyped = EventParticipantsResponseFromJSONTyped;
|
|
19
|
+
exports.EventParticipantsResponseToJSON = EventParticipantsResponseToJSON;
|
|
20
|
+
exports.EventParticipantsResponseToJSONTyped = EventParticipantsResponseToJSONTyped;
|
|
21
|
+
const Meta_1 = require("./Meta");
|
|
22
|
+
const EventParticipant_1 = require("./EventParticipant");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the EventParticipantsResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfEventParticipantsResponse(value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function EventParticipantsResponseFromJSON(json) {
|
|
30
|
+
return EventParticipantsResponseFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function EventParticipantsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'meta': json['_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['_meta']),
|
|
38
|
+
'participants': json['participants'] == null ? undefined : (json['participants'].map(EventParticipant_1.EventParticipantFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function EventParticipantsResponseToJSON(json) {
|
|
42
|
+
return EventParticipantsResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function EventParticipantsResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'_meta': (0, Meta_1.MetaToJSON)(value['meta']),
|
|
50
|
+
'participants': value['participants'] == null ? undefined : (value['participants'].map(EventParticipant_1.EventParticipantToJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|