@monaco-protocol/client-v2 0.0.73 → 0.0.75
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/dist/apis/MarketsApi.d.ts +15 -1
- package/dist/apis/MarketsApi.js +41 -0
- package/dist/apis/OrdersApi.d.ts +29 -1
- package/dist/apis/OrdersApi.js +74 -0
- package/dist/models/AddMarketOutcomeRequest.d.ts +6 -0
- package/dist/models/AddMarketOutcomeRequest.js +2 -0
- package/dist/models/App.d.ts +6 -0
- package/dist/models/App.js +2 -0
- package/dist/models/BatchOrderResponseOrdersInner.d.ts +2 -2
- package/dist/models/BatchOrderResponseOrdersInner.js +7 -7
- package/dist/models/CreateMarketRequest.d.ts +7 -0
- package/dist/models/CreateMarketRequest.js +3 -0
- package/dist/models/IDResponse.d.ts +39 -0
- package/dist/models/IDResponse.js +51 -0
- package/dist/models/MarketOutcomeSummary.d.ts +7 -0
- package/dist/models/MarketOutcomeSummary.js +3 -0
- package/dist/models/MarketResponse.d.ts +7 -0
- package/dist/models/MarketResponse.js +3 -0
- package/dist/models/Meta.d.ts +1 -0
- package/dist/models/Meta.js +1 -0
- package/dist/models/OrderFailure.d.ts +51 -0
- package/dist/models/OrderFailure.js +50 -0
- package/dist/models/PagedMarketResponse.d.ts +7 -0
- package/dist/models/PagedMarketResponse.js +3 -0
- package/dist/models/UpdateMarketOutcomeRequest.d.ts +32 -0
- package/dist/models/UpdateMarketOutcomeRequest.js +48 -0
- package/dist/models/index.d.ts +3 -1
- package/dist/models/index.js +3 -1
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AddMarketOutcomeRequest, CreateMarketRequest, MarketLiquiditiesResponse, MarketLiquidityResponse, MarketResponse, MarketResultRequest, MarketUpdateResponse, PagedMarketPositionResponse, PagedMarketResponse, PagedOrderResponse, ToggleActionRequest, UpdateDateRequest, UpdateNameRequest, UpdateReferencesRequest } from '../models/index';
|
|
13
|
+
import type { AddMarketOutcomeRequest, CreateMarketRequest, MarketLiquiditiesResponse, MarketLiquidityResponse, MarketResponse, MarketResultRequest, MarketUpdateResponse, PagedMarketPositionResponse, PagedMarketResponse, PagedOrderResponse, ToggleActionRequest, UpdateDateRequest, UpdateMarketOutcomeRequest, UpdateNameRequest, UpdateReferencesRequest } from '../models/index';
|
|
14
14
|
export interface MarketsApiAddMarketOutcomeOperationRequest {
|
|
15
15
|
authorization: string;
|
|
16
16
|
id: string;
|
|
@@ -120,6 +120,12 @@ export interface MarketsApiUpdateMarketNameRequest {
|
|
|
120
120
|
id: string;
|
|
121
121
|
updateNameRequest: UpdateNameRequest;
|
|
122
122
|
}
|
|
123
|
+
export interface MarketsApiUpdateMarketOutcomeOperationRequest {
|
|
124
|
+
authorization: string;
|
|
125
|
+
marketId: string;
|
|
126
|
+
outcomeId: string;
|
|
127
|
+
updateMarketOutcomeRequest: UpdateMarketOutcomeRequest;
|
|
128
|
+
}
|
|
123
129
|
export interface MarketsApiUpdateReferenceRequest {
|
|
124
130
|
authorization: string;
|
|
125
131
|
id: string;
|
|
@@ -285,6 +291,14 @@ export declare class MarketsApi extends runtime.BaseAPI {
|
|
|
285
291
|
* Update the name of a market
|
|
286
292
|
*/
|
|
287
293
|
updateMarketName(requestParameters: MarketsApiUpdateMarketNameRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MarketUpdateResponse>;
|
|
294
|
+
/**
|
|
295
|
+
* Update an existing market outcome
|
|
296
|
+
*/
|
|
297
|
+
updateMarketOutcomeRaw(requestParameters: MarketsApiUpdateMarketOutcomeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
298
|
+
/**
|
|
299
|
+
* Update an existing market outcome
|
|
300
|
+
*/
|
|
301
|
+
updateMarketOutcome(requestParameters: MarketsApiUpdateMarketOutcomeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
288
302
|
/**
|
|
289
303
|
* Update market external reference
|
|
290
304
|
*/
|
package/dist/apis/MarketsApi.js
CHANGED
|
@@ -784,6 +784,47 @@ class MarketsApi extends runtime.BaseAPI {
|
|
|
784
784
|
return yield response.value();
|
|
785
785
|
});
|
|
786
786
|
}
|
|
787
|
+
/**
|
|
788
|
+
* Update an existing market outcome
|
|
789
|
+
*/
|
|
790
|
+
updateMarketOutcomeRaw(requestParameters, initOverrides) {
|
|
791
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
792
|
+
if (requestParameters['authorization'] == null) {
|
|
793
|
+
throw new runtime.RequiredError('authorization', 'Required parameter "authorization" was null or undefined when calling updateMarketOutcome().');
|
|
794
|
+
}
|
|
795
|
+
if (requestParameters['marketId'] == null) {
|
|
796
|
+
throw new runtime.RequiredError('marketId', 'Required parameter "marketId" was null or undefined when calling updateMarketOutcome().');
|
|
797
|
+
}
|
|
798
|
+
if (requestParameters['outcomeId'] == null) {
|
|
799
|
+
throw new runtime.RequiredError('outcomeId', 'Required parameter "outcomeId" was null or undefined when calling updateMarketOutcome().');
|
|
800
|
+
}
|
|
801
|
+
if (requestParameters['updateMarketOutcomeRequest'] == null) {
|
|
802
|
+
throw new runtime.RequiredError('updateMarketOutcomeRequest', 'Required parameter "updateMarketOutcomeRequest" was null or undefined when calling updateMarketOutcome().');
|
|
803
|
+
}
|
|
804
|
+
const queryParameters = {};
|
|
805
|
+
const headerParameters = {};
|
|
806
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
807
|
+
if (requestParameters['authorization'] != null) {
|
|
808
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
809
|
+
}
|
|
810
|
+
const response = yield this.request({
|
|
811
|
+
path: `/markets/{marketId}/market-outcomes/{outcomeId}`.replace(`{${"marketId"}}`, encodeURIComponent(String(requestParameters['marketId']))).replace(`{${"outcomeId"}}`, encodeURIComponent(String(requestParameters['outcomeId']))),
|
|
812
|
+
method: 'POST',
|
|
813
|
+
headers: headerParameters,
|
|
814
|
+
query: queryParameters,
|
|
815
|
+
body: (0, index_1.UpdateMarketOutcomeRequestToJSON)(requestParameters['updateMarketOutcomeRequest']),
|
|
816
|
+
}, initOverrides);
|
|
817
|
+
return new runtime.VoidApiResponse(response);
|
|
818
|
+
});
|
|
819
|
+
}
|
|
820
|
+
/**
|
|
821
|
+
* Update an existing market outcome
|
|
822
|
+
*/
|
|
823
|
+
updateMarketOutcome(requestParameters, initOverrides) {
|
|
824
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
825
|
+
yield this.updateMarketOutcomeRaw(requestParameters, initOverrides);
|
|
826
|
+
});
|
|
827
|
+
}
|
|
787
828
|
/**
|
|
788
829
|
* Update market external reference
|
|
789
830
|
*/
|
package/dist/apis/OrdersApi.d.ts
CHANGED
|
@@ -10,11 +10,15 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { BatchCancelOrdersRequest, BatchCreateOrderRequest, BatchOrderResponse, ChunkOrderResponse, CreateOrderRequest, OrderResponse, PagedOrderResponse, TradeResponse } from '../models/index';
|
|
13
|
+
import type { BatchCancelOrdersRequest, BatchCreateOrderRequest, BatchOrderResponse, ChunkOrderResponse, CreateOrderRequest, IDResponse, OrderResponse, PagedOrderResponse, TradeResponse } from '../models/index';
|
|
14
14
|
export interface OrdersApiCancelOrderRequest {
|
|
15
15
|
authorization: string;
|
|
16
16
|
id: string;
|
|
17
17
|
}
|
|
18
|
+
export interface OrdersApiCancelOrderV2Request {
|
|
19
|
+
authorization: string;
|
|
20
|
+
id: string;
|
|
21
|
+
}
|
|
18
22
|
export interface OrdersApiCancelOrdersRequest {
|
|
19
23
|
authorization: string;
|
|
20
24
|
walletIds?: Array<string>;
|
|
@@ -23,6 +27,10 @@ export interface OrdersApiCancelOrdersRequest {
|
|
|
23
27
|
orderIds?: Array<string>;
|
|
24
28
|
batchCancelOrdersRequest?: BatchCancelOrdersRequest;
|
|
25
29
|
}
|
|
30
|
+
export interface OrdersApiCancelOrdersV2Request {
|
|
31
|
+
authorization: string;
|
|
32
|
+
batchCancelOrdersRequest: BatchCancelOrdersRequest;
|
|
33
|
+
}
|
|
26
34
|
export interface OrdersApiCreateOrderOperationRequest {
|
|
27
35
|
authorization: string;
|
|
28
36
|
createOrderRequest: CreateOrderRequest;
|
|
@@ -79,20 +87,40 @@ export interface OrdersApiGetTradesByOrderIdRequest {
|
|
|
79
87
|
export declare class OrdersApi extends runtime.BaseAPI {
|
|
80
88
|
/**
|
|
81
89
|
* Cancel order by id
|
|
90
|
+
* @deprecated
|
|
82
91
|
*/
|
|
83
92
|
cancelOrderRaw(requestParameters: OrdersApiCancelOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrderResponse>>;
|
|
84
93
|
/**
|
|
85
94
|
* Cancel order by id
|
|
95
|
+
* @deprecated
|
|
86
96
|
*/
|
|
87
97
|
cancelOrder(requestParameters: OrdersApiCancelOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrderResponse>;
|
|
98
|
+
/**
|
|
99
|
+
* Cancel order by id
|
|
100
|
+
*/
|
|
101
|
+
cancelOrderV2Raw(requestParameters: OrdersApiCancelOrderV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IDResponse>>;
|
|
102
|
+
/**
|
|
103
|
+
* Cancel order by id
|
|
104
|
+
*/
|
|
105
|
+
cancelOrderV2(requestParameters: OrdersApiCancelOrderV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IDResponse>;
|
|
88
106
|
/**
|
|
89
107
|
* Cancel orders owned by the caller by event and/or market; skips invalid markets/orders
|
|
108
|
+
* @deprecated
|
|
90
109
|
*/
|
|
91
110
|
cancelOrdersRaw(requestParameters: OrdersApiCancelOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChunkOrderResponse>>;
|
|
92
111
|
/**
|
|
93
112
|
* Cancel orders owned by the caller by event and/or market; skips invalid markets/orders
|
|
113
|
+
* @deprecated
|
|
94
114
|
*/
|
|
95
115
|
cancelOrders(requestParameters: OrdersApiCancelOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChunkOrderResponse>;
|
|
116
|
+
/**
|
|
117
|
+
* Cancel orders owned by the caller by event and/or market; skips invalid markets/orders
|
|
118
|
+
*/
|
|
119
|
+
cancelOrdersV2Raw(requestParameters: OrdersApiCancelOrdersV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IDResponse>>;
|
|
120
|
+
/**
|
|
121
|
+
* Cancel orders owned by the caller by event and/or market; skips invalid markets/orders
|
|
122
|
+
*/
|
|
123
|
+
cancelOrdersV2(requestParameters: OrdersApiCancelOrdersV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IDResponse>;
|
|
96
124
|
/**
|
|
97
125
|
* Create order
|
|
98
126
|
*/
|
package/dist/apis/OrdersApi.js
CHANGED
|
@@ -31,6 +31,7 @@ const index_1 = require("../models/index");
|
|
|
31
31
|
class OrdersApi extends runtime.BaseAPI {
|
|
32
32
|
/**
|
|
33
33
|
* Cancel order by id
|
|
34
|
+
* @deprecated
|
|
34
35
|
*/
|
|
35
36
|
cancelOrderRaw(requestParameters, initOverrides) {
|
|
36
37
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -56,6 +57,7 @@ class OrdersApi extends runtime.BaseAPI {
|
|
|
56
57
|
}
|
|
57
58
|
/**
|
|
58
59
|
* Cancel order by id
|
|
60
|
+
* @deprecated
|
|
59
61
|
*/
|
|
60
62
|
cancelOrder(requestParameters, initOverrides) {
|
|
61
63
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -63,8 +65,43 @@ class OrdersApi extends runtime.BaseAPI {
|
|
|
63
65
|
return yield response.value();
|
|
64
66
|
});
|
|
65
67
|
}
|
|
68
|
+
/**
|
|
69
|
+
* Cancel order by id
|
|
70
|
+
*/
|
|
71
|
+
cancelOrderV2Raw(requestParameters, initOverrides) {
|
|
72
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
73
|
+
if (requestParameters['authorization'] == null) {
|
|
74
|
+
throw new runtime.RequiredError('authorization', 'Required parameter "authorization" was null or undefined when calling cancelOrderV2().');
|
|
75
|
+
}
|
|
76
|
+
if (requestParameters['id'] == null) {
|
|
77
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling cancelOrderV2().');
|
|
78
|
+
}
|
|
79
|
+
const queryParameters = {};
|
|
80
|
+
const headerParameters = {};
|
|
81
|
+
if (requestParameters['authorization'] != null) {
|
|
82
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
83
|
+
}
|
|
84
|
+
const response = yield this.request({
|
|
85
|
+
path: `/orders/{id}/cancel-v2`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
86
|
+
method: 'POST',
|
|
87
|
+
headers: headerParameters,
|
|
88
|
+
query: queryParameters,
|
|
89
|
+
}, initOverrides);
|
|
90
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.IDResponseFromJSON)(jsonValue));
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Cancel order by id
|
|
95
|
+
*/
|
|
96
|
+
cancelOrderV2(requestParameters, initOverrides) {
|
|
97
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
98
|
+
const response = yield this.cancelOrderV2Raw(requestParameters, initOverrides);
|
|
99
|
+
return yield response.value();
|
|
100
|
+
});
|
|
101
|
+
}
|
|
66
102
|
/**
|
|
67
103
|
* Cancel orders owned by the caller by event and/or market; skips invalid markets/orders
|
|
104
|
+
* @deprecated
|
|
68
105
|
*/
|
|
69
106
|
cancelOrdersRaw(requestParameters, initOverrides) {
|
|
70
107
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -101,6 +138,7 @@ class OrdersApi extends runtime.BaseAPI {
|
|
|
101
138
|
}
|
|
102
139
|
/**
|
|
103
140
|
* Cancel orders owned by the caller by event and/or market; skips invalid markets/orders
|
|
141
|
+
* @deprecated
|
|
104
142
|
*/
|
|
105
143
|
cancelOrders(requestParameters, initOverrides) {
|
|
106
144
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -108,6 +146,42 @@ class OrdersApi extends runtime.BaseAPI {
|
|
|
108
146
|
return yield response.value();
|
|
109
147
|
});
|
|
110
148
|
}
|
|
149
|
+
/**
|
|
150
|
+
* Cancel orders owned by the caller by event and/or market; skips invalid markets/orders
|
|
151
|
+
*/
|
|
152
|
+
cancelOrdersV2Raw(requestParameters, initOverrides) {
|
|
153
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
154
|
+
if (requestParameters['authorization'] == null) {
|
|
155
|
+
throw new runtime.RequiredError('authorization', 'Required parameter "authorization" was null or undefined when calling cancelOrdersV2().');
|
|
156
|
+
}
|
|
157
|
+
if (requestParameters['batchCancelOrdersRequest'] == null) {
|
|
158
|
+
throw new runtime.RequiredError('batchCancelOrdersRequest', 'Required parameter "batchCancelOrdersRequest" was null or undefined when calling cancelOrdersV2().');
|
|
159
|
+
}
|
|
160
|
+
const queryParameters = {};
|
|
161
|
+
const headerParameters = {};
|
|
162
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
163
|
+
if (requestParameters['authorization'] != null) {
|
|
164
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
165
|
+
}
|
|
166
|
+
const response = yield this.request({
|
|
167
|
+
path: `/orders/cancel-v2`,
|
|
168
|
+
method: 'POST',
|
|
169
|
+
headers: headerParameters,
|
|
170
|
+
query: queryParameters,
|
|
171
|
+
body: (0, index_1.BatchCancelOrdersRequestToJSON)(requestParameters['batchCancelOrdersRequest']),
|
|
172
|
+
}, initOverrides);
|
|
173
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.IDResponseFromJSON)(jsonValue));
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Cancel orders owned by the caller by event and/or market; skips invalid markets/orders
|
|
178
|
+
*/
|
|
179
|
+
cancelOrdersV2(requestParameters, initOverrides) {
|
|
180
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
181
|
+
const response = yield this.cancelOrdersV2Raw(requestParameters, initOverrides);
|
|
182
|
+
return yield response.value();
|
|
183
|
+
});
|
|
184
|
+
}
|
|
111
185
|
/**
|
|
112
186
|
* Create order
|
|
113
187
|
*/
|
|
@@ -21,6 +21,12 @@ export interface AddMarketOutcomeRequest {
|
|
|
21
21
|
* @memberof AddMarketOutcomeRequest
|
|
22
22
|
*/
|
|
23
23
|
title?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AddMarketOutcomeRequest
|
|
28
|
+
*/
|
|
29
|
+
participantId?: string;
|
|
24
30
|
}
|
|
25
31
|
/**
|
|
26
32
|
* Check if a given object implements the AddMarketOutcomeRequest interface.
|
|
@@ -33,6 +33,7 @@ function AddMarketOutcomeRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
33
|
}
|
|
34
34
|
return {
|
|
35
35
|
'title': json['title'] == null ? undefined : json['title'],
|
|
36
|
+
'participantId': json['participantId'] == null ? undefined : json['participantId'],
|
|
36
37
|
};
|
|
37
38
|
}
|
|
38
39
|
function AddMarketOutcomeRequestToJSON(json) {
|
|
@@ -44,5 +45,6 @@ function AddMarketOutcomeRequestToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
44
45
|
}
|
|
45
46
|
return {
|
|
46
47
|
'title': value['title'],
|
|
48
|
+
'participantId': value['participantId'],
|
|
47
49
|
};
|
|
48
50
|
}
|
package/dist/models/App.d.ts
CHANGED
package/dist/models/App.js
CHANGED
|
@@ -38,6 +38,7 @@ function AppFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
'description': json['description'] == null ? undefined : json['description'],
|
|
39
39
|
'apiKey': json['apiKey'] == null ? undefined : (0, APIKey_1.APIKeyFromJSON)(json['apiKey']),
|
|
40
40
|
'commissionRate': json['commissionRate'] == null ? undefined : json['commissionRate'],
|
|
41
|
+
'protocolFeeRate': json['protocolFeeRate'] == null ? undefined : json['protocolFeeRate'],
|
|
41
42
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
42
43
|
'modifiedAt': json['modifiedAt'] == null ? undefined : (new Date(json['modifiedAt'])),
|
|
43
44
|
};
|
|
@@ -55,6 +56,7 @@ function AppToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
55
56
|
'description': value['description'],
|
|
56
57
|
'apiKey': (0, APIKey_1.APIKeyToJSON)(value['apiKey']),
|
|
57
58
|
'commissionRate': value['commissionRate'],
|
|
59
|
+
'protocolFeeRate': value['protocolFeeRate'],
|
|
58
60
|
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
|
59
61
|
'modifiedAt': value['modifiedAt'] == null ? undefined : ((value['modifiedAt']).toISOString()),
|
|
60
62
|
};
|
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { ModelError } from './ModelError';
|
|
13
12
|
import type { Order } from './Order';
|
|
13
|
+
import type { OrderFailure } from './OrderFailure';
|
|
14
14
|
/**
|
|
15
15
|
* @type BatchOrderResponseOrdersInner
|
|
16
16
|
*
|
|
17
17
|
* @export
|
|
18
18
|
*/
|
|
19
|
-
export type BatchOrderResponseOrdersInner =
|
|
19
|
+
export type BatchOrderResponseOrdersInner = Order | OrderFailure;
|
|
20
20
|
export declare function BatchOrderResponseOrdersInnerFromJSON(json: any): BatchOrderResponseOrdersInner;
|
|
21
21
|
export declare function BatchOrderResponseOrdersInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): BatchOrderResponseOrdersInner;
|
|
22
22
|
export declare function BatchOrderResponseOrdersInnerToJSON(json: any): any;
|
|
@@ -17,8 +17,8 @@ exports.BatchOrderResponseOrdersInnerFromJSON = BatchOrderResponseOrdersInnerFro
|
|
|
17
17
|
exports.BatchOrderResponseOrdersInnerFromJSONTyped = BatchOrderResponseOrdersInnerFromJSONTyped;
|
|
18
18
|
exports.BatchOrderResponseOrdersInnerToJSON = BatchOrderResponseOrdersInnerToJSON;
|
|
19
19
|
exports.BatchOrderResponseOrdersInnerToJSONTyped = BatchOrderResponseOrdersInnerToJSONTyped;
|
|
20
|
-
const ModelError_1 = require("./ModelError");
|
|
21
20
|
const Order_1 = require("./Order");
|
|
21
|
+
const OrderFailure_1 = require("./OrderFailure");
|
|
22
22
|
function BatchOrderResponseOrdersInnerFromJSON(json) {
|
|
23
23
|
return BatchOrderResponseOrdersInnerFromJSONTyped(json, false);
|
|
24
24
|
}
|
|
@@ -26,12 +26,12 @@ function BatchOrderResponseOrdersInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
26
26
|
if (json == null) {
|
|
27
27
|
return json;
|
|
28
28
|
}
|
|
29
|
-
if ((0, ModelError_1.instanceOfModelError)(json)) {
|
|
30
|
-
return (0, ModelError_1.ModelErrorFromJSONTyped)(json, true);
|
|
31
|
-
}
|
|
32
29
|
if ((0, Order_1.instanceOfOrder)(json)) {
|
|
33
30
|
return (0, Order_1.OrderFromJSONTyped)(json, true);
|
|
34
31
|
}
|
|
32
|
+
if ((0, OrderFailure_1.instanceOfOrderFailure)(json)) {
|
|
33
|
+
return (0, OrderFailure_1.OrderFailureFromJSONTyped)(json, true);
|
|
34
|
+
}
|
|
35
35
|
return {};
|
|
36
36
|
}
|
|
37
37
|
function BatchOrderResponseOrdersInnerToJSON(json) {
|
|
@@ -41,11 +41,11 @@ function BatchOrderResponseOrdersInnerToJSONTyped(value, ignoreDiscriminator = f
|
|
|
41
41
|
if (value == null) {
|
|
42
42
|
return value;
|
|
43
43
|
}
|
|
44
|
-
if ((0, ModelError_1.instanceOfModelError)(value)) {
|
|
45
|
-
return (0, ModelError_1.ModelErrorToJSON)(value);
|
|
46
|
-
}
|
|
47
44
|
if ((0, Order_1.instanceOfOrder)(value)) {
|
|
48
45
|
return (0, Order_1.OrderToJSON)(value);
|
|
49
46
|
}
|
|
47
|
+
if ((0, OrderFailure_1.instanceOfOrderFailure)(value)) {
|
|
48
|
+
return (0, OrderFailure_1.OrderFailureToJSON)(value);
|
|
49
|
+
}
|
|
50
50
|
return {};
|
|
51
51
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { AddMarketOutcomeRequest } from './AddMarketOutcomeRequest';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -93,6 +94,12 @@ export interface CreateMarketRequest {
|
|
|
93
94
|
* @memberof CreateMarketRequest
|
|
94
95
|
*/
|
|
95
96
|
marketOutcomes?: Array<string>;
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @type {Array<AddMarketOutcomeRequest>}
|
|
100
|
+
* @memberof CreateMarketRequest
|
|
101
|
+
*/
|
|
102
|
+
addMarketOutcomeRequests?: Array<AddMarketOutcomeRequest>;
|
|
96
103
|
}
|
|
97
104
|
/**
|
|
98
105
|
* @export
|
|
@@ -19,6 +19,7 @@ exports.CreateMarketRequestFromJSON = CreateMarketRequestFromJSON;
|
|
|
19
19
|
exports.CreateMarketRequestFromJSONTyped = CreateMarketRequestFromJSONTyped;
|
|
20
20
|
exports.CreateMarketRequestToJSON = CreateMarketRequestToJSON;
|
|
21
21
|
exports.CreateMarketRequestToJSONTyped = CreateMarketRequestToJSONTyped;
|
|
22
|
+
const AddMarketOutcomeRequest_1 = require("./AddMarketOutcomeRequest");
|
|
22
23
|
/**
|
|
23
24
|
* @export
|
|
24
25
|
*/
|
|
@@ -60,6 +61,7 @@ function CreateMarketRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
60
61
|
'marketLockAction': json['marketLockAction'] == null ? undefined : json['marketLockAction'],
|
|
61
62
|
'eventStartAction': json['eventStartAction'] == null ? undefined : json['eventStartAction'],
|
|
62
63
|
'marketOutcomes': json['marketOutcomes'] == null ? undefined : json['marketOutcomes'],
|
|
64
|
+
'addMarketOutcomeRequests': json['addMarketOutcomeRequests'] == null ? undefined : (json['addMarketOutcomeRequests'].map(AddMarketOutcomeRequest_1.AddMarketOutcomeRequestFromJSON)),
|
|
63
65
|
};
|
|
64
66
|
}
|
|
65
67
|
function CreateMarketRequestToJSON(json) {
|
|
@@ -83,5 +85,6 @@ function CreateMarketRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
83
85
|
'marketLockAction': value['marketLockAction'],
|
|
84
86
|
'eventStartAction': value['eventStartAction'],
|
|
85
87
|
'marketOutcomes': value['marketOutcomes'],
|
|
88
|
+
'addMarketOutcomeRequests': value['addMarketOutcomeRequests'] == null ? undefined : (value['addMarketOutcomeRequests'].map(AddMarketOutcomeRequest_1.AddMarketOutcomeRequestToJSON)),
|
|
86
89
|
};
|
|
87
90
|
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface IDResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface IDResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Meta}
|
|
22
|
+
* @memberof IDResponse
|
|
23
|
+
*/
|
|
24
|
+
meta?: Meta;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Set<string>}
|
|
28
|
+
* @memberof IDResponse
|
|
29
|
+
*/
|
|
30
|
+
ids?: Set<string>;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the IDResponse interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfIDResponse(value: object): value is IDResponse;
|
|
36
|
+
export declare function IDResponseFromJSON(json: any): IDResponse;
|
|
37
|
+
export declare function IDResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IDResponse;
|
|
38
|
+
export declare function IDResponseToJSON(json: any): IDResponse;
|
|
39
|
+
export declare function IDResponseToJSONTyped(value?: IDResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.instanceOfIDResponse = instanceOfIDResponse;
|
|
17
|
+
exports.IDResponseFromJSON = IDResponseFromJSON;
|
|
18
|
+
exports.IDResponseFromJSONTyped = IDResponseFromJSONTyped;
|
|
19
|
+
exports.IDResponseToJSON = IDResponseToJSON;
|
|
20
|
+
exports.IDResponseToJSONTyped = IDResponseToJSONTyped;
|
|
21
|
+
const Meta_1 = require("./Meta");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the IDResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfIDResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function IDResponseFromJSON(json) {
|
|
29
|
+
return IDResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function IDResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'meta': json['_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['_meta']),
|
|
37
|
+
'ids': json['ids'] == null ? undefined : new Set(json['ids']),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function IDResponseToJSON(json) {
|
|
41
|
+
return IDResponseToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function IDResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'_meta': (0, Meta_1.MetaToJSON)(value['meta']),
|
|
49
|
+
'ids': value['ids'] == null ? undefined : Array.from(value['ids']),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { DocumentReference } from './DocumentReference';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -39,6 +40,12 @@ export interface MarketOutcomeSummary {
|
|
|
39
40
|
* @memberof MarketOutcomeSummary
|
|
40
41
|
*/
|
|
41
42
|
winner?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {DocumentReference}
|
|
46
|
+
* @memberof MarketOutcomeSummary
|
|
47
|
+
*/
|
|
48
|
+
participant?: DocumentReference;
|
|
42
49
|
}
|
|
43
50
|
/**
|
|
44
51
|
* Check if a given object implements the MarketOutcomeSummary interface.
|
|
@@ -18,6 +18,7 @@ exports.MarketOutcomeSummaryFromJSON = MarketOutcomeSummaryFromJSON;
|
|
|
18
18
|
exports.MarketOutcomeSummaryFromJSONTyped = MarketOutcomeSummaryFromJSONTyped;
|
|
19
19
|
exports.MarketOutcomeSummaryToJSON = MarketOutcomeSummaryToJSON;
|
|
20
20
|
exports.MarketOutcomeSummaryToJSONTyped = MarketOutcomeSummaryToJSONTyped;
|
|
21
|
+
const DocumentReference_1 = require("./DocumentReference");
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the MarketOutcomeSummary interface.
|
|
23
24
|
*/
|
|
@@ -36,6 +37,7 @@ function MarketOutcomeSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
37
|
'title': json['title'] == null ? undefined : json['title'],
|
|
37
38
|
'ordering': json['ordering'] == null ? undefined : json['ordering'],
|
|
38
39
|
'winner': json['winner'] == null ? undefined : json['winner'],
|
|
40
|
+
'participant': json['participant'] == null ? undefined : (0, DocumentReference_1.DocumentReferenceFromJSON)(json['participant']),
|
|
39
41
|
};
|
|
40
42
|
}
|
|
41
43
|
function MarketOutcomeSummaryToJSON(json) {
|
|
@@ -50,5 +52,6 @@ function MarketOutcomeSummaryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
50
52
|
'title': value['title'],
|
|
51
53
|
'ordering': value['ordering'],
|
|
52
54
|
'winner': value['winner'],
|
|
55
|
+
'participant': (0, DocumentReference_1.DocumentReferenceToJSON)(value['participant']),
|
|
53
56
|
};
|
|
54
57
|
}
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import type { MarketOutcomeSummary } from './MarketOutcomeSummary';
|
|
13
13
|
import type { Meta } from './Meta';
|
|
14
14
|
import type { ExternalReference } from './ExternalReference';
|
|
15
|
+
import type { Participant } from './Participant';
|
|
15
16
|
import type { CategorySummary } from './CategorySummary';
|
|
16
17
|
import type { EventSummary } from './EventSummary';
|
|
17
18
|
import type { SubcategorySummary } from './SubcategorySummary';
|
|
@@ -78,6 +79,12 @@ export interface MarketResponse {
|
|
|
78
79
|
* @memberof MarketResponse
|
|
79
80
|
*/
|
|
80
81
|
externalReferences?: Array<ExternalReference>;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {Array<Participant>}
|
|
85
|
+
* @memberof MarketResponse
|
|
86
|
+
*/
|
|
87
|
+
participants?: Array<Participant>;
|
|
81
88
|
}
|
|
82
89
|
/**
|
|
83
90
|
* Check if a given object implements the MarketResponse interface.
|
|
@@ -21,6 +21,7 @@ exports.MarketResponseToJSONTyped = MarketResponseToJSONTyped;
|
|
|
21
21
|
const MarketOutcomeSummary_1 = require("./MarketOutcomeSummary");
|
|
22
22
|
const Meta_1 = require("./Meta");
|
|
23
23
|
const ExternalReference_1 = require("./ExternalReference");
|
|
24
|
+
const Participant_1 = require("./Participant");
|
|
24
25
|
const CategorySummary_1 = require("./CategorySummary");
|
|
25
26
|
const EventSummary_1 = require("./EventSummary");
|
|
26
27
|
const SubcategorySummary_1 = require("./SubcategorySummary");
|
|
@@ -50,6 +51,7 @@ function MarketResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
51
|
'subcategories': json['subcategories'] == null ? undefined : (json['subcategories'].map(SubcategorySummary_1.SubcategorySummaryFromJSON)),
|
|
51
52
|
'categories': json['categories'] == null ? undefined : (json['categories'].map(CategorySummary_1.CategorySummaryFromJSON)),
|
|
52
53
|
'externalReferences': json['externalReferences'] == null ? undefined : (json['externalReferences'].map(ExternalReference_1.ExternalReferenceFromJSON)),
|
|
54
|
+
'participants': json['participants'] == null ? undefined : (json['participants'].map(Participant_1.ParticipantFromJSON)),
|
|
53
55
|
};
|
|
54
56
|
}
|
|
55
57
|
function MarketResponseToJSON(json) {
|
|
@@ -69,5 +71,6 @@ function MarketResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
69
71
|
'subcategories': value['subcategories'] == null ? undefined : (value['subcategories'].map(SubcategorySummary_1.SubcategorySummaryToJSON)),
|
|
70
72
|
'categories': value['categories'] == null ? undefined : (value['categories'].map(CategorySummary_1.CategorySummaryToJSON)),
|
|
71
73
|
'externalReferences': value['externalReferences'] == null ? undefined : (value['externalReferences'].map(ExternalReference_1.ExternalReferenceToJSON)),
|
|
74
|
+
'participants': value['participants'] == null ? undefined : (value['participants'].map(Participant_1.ParticipantToJSON)),
|
|
72
75
|
};
|
|
73
76
|
}
|
package/dist/models/Meta.d.ts
CHANGED
|
@@ -51,6 +51,7 @@ export declare const MetaPrimaryDocumentEnum: {
|
|
|
51
51
|
readonly ExternalReferences: "externalReferences";
|
|
52
52
|
readonly ExternalReferenceSources: "externalReferenceSources";
|
|
53
53
|
readonly Heartbeats: "heartbeats";
|
|
54
|
+
readonly Ids: "ids";
|
|
54
55
|
readonly Markets: "markets";
|
|
55
56
|
readonly MarketOutcomes: "marketOutcomes";
|
|
56
57
|
readonly MarketPositions: "marketPositions";
|
package/dist/models/Meta.js
CHANGED
|
@@ -36,6 +36,7 @@ exports.MetaPrimaryDocumentEnum = {
|
|
|
36
36
|
ExternalReferences: 'externalReferences',
|
|
37
37
|
ExternalReferenceSources: 'externalReferenceSources',
|
|
38
38
|
Heartbeats: 'heartbeats',
|
|
39
|
+
Ids: 'ids',
|
|
39
40
|
Markets: 'markets',
|
|
40
41
|
MarketOutcomes: 'marketOutcomes',
|
|
41
42
|
MarketPositions: 'marketPositions',
|
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
* Order operation error
|
|
14
|
+
* @export
|
|
15
|
+
* @interface OrderFailure
|
|
16
|
+
*/
|
|
17
|
+
export interface OrderFailure {
|
|
18
|
+
/**
|
|
19
|
+
* Order operation error code describing type of an error. Possible values:
|
|
20
|
+
* MARKET_NOT_FOUND,
|
|
21
|
+
* INVALID_MARKET_STATUS,
|
|
22
|
+
* SUSPENDED_MARKET,
|
|
23
|
+
* MARKET_OUTCOME_NOT_FOUND,
|
|
24
|
+
* COMMISSION_RATE_NOT_FOUND,
|
|
25
|
+
* WALLET_NOT_FOUND,
|
|
26
|
+
* WALLET_INSUFFICIENT_CREDIT,
|
|
27
|
+
* WALLET_ACCOUNT_NOT_FOUND,
|
|
28
|
+
* WALLET_ACCOUNT_INSUFFICIENT_CREDIT,
|
|
29
|
+
* MARKET_POSITION_NOT_FOUND,
|
|
30
|
+
* ORDER_ALREADY_EXISTS,
|
|
31
|
+
* INTERRUPTED
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof OrderFailure
|
|
35
|
+
*/
|
|
36
|
+
errorCode?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Order operation error detailed message
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof OrderFailure
|
|
41
|
+
*/
|
|
42
|
+
errorMessage?: string;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the OrderFailure interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfOrderFailure(value: object): value is OrderFailure;
|
|
48
|
+
export declare function OrderFailureFromJSON(json: any): OrderFailure;
|
|
49
|
+
export declare function OrderFailureFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderFailure;
|
|
50
|
+
export declare function OrderFailureToJSON(json: any): OrderFailure;
|
|
51
|
+
export declare function OrderFailureToJSONTyped(value?: OrderFailure | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfOrderFailure = instanceOfOrderFailure;
|
|
17
|
+
exports.OrderFailureFromJSON = OrderFailureFromJSON;
|
|
18
|
+
exports.OrderFailureFromJSONTyped = OrderFailureFromJSONTyped;
|
|
19
|
+
exports.OrderFailureToJSON = OrderFailureToJSON;
|
|
20
|
+
exports.OrderFailureToJSONTyped = OrderFailureToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the OrderFailure interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfOrderFailure(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function OrderFailureFromJSON(json) {
|
|
28
|
+
return OrderFailureFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function OrderFailureFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'errorCode': json['errorCode'] == null ? undefined : json['errorCode'],
|
|
36
|
+
'errorMessage': json['errorMessage'] == null ? undefined : json['errorMessage'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function OrderFailureToJSON(json) {
|
|
40
|
+
return OrderFailureToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function OrderFailureToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'errorCode': value['errorCode'],
|
|
48
|
+
'errorMessage': value['errorMessage'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import type { MarketOutcomeSummary } from './MarketOutcomeSummary';
|
|
13
13
|
import type { Meta } from './Meta';
|
|
14
14
|
import type { ExternalReference } from './ExternalReference';
|
|
15
|
+
import type { Participant } from './Participant';
|
|
15
16
|
import type { CategorySummary } from './CategorySummary';
|
|
16
17
|
import type { EventSummary } from './EventSummary';
|
|
17
18
|
import type { SubcategorySummary } from './SubcategorySummary';
|
|
@@ -78,6 +79,12 @@ export interface PagedMarketResponse {
|
|
|
78
79
|
* @memberof PagedMarketResponse
|
|
79
80
|
*/
|
|
80
81
|
externalReferences?: Array<ExternalReference>;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {Array<Participant>}
|
|
85
|
+
* @memberof PagedMarketResponse
|
|
86
|
+
*/
|
|
87
|
+
participants?: Array<Participant>;
|
|
81
88
|
}
|
|
82
89
|
/**
|
|
83
90
|
* Check if a given object implements the PagedMarketResponse interface.
|
|
@@ -21,6 +21,7 @@ exports.PagedMarketResponseToJSONTyped = PagedMarketResponseToJSONTyped;
|
|
|
21
21
|
const MarketOutcomeSummary_1 = require("./MarketOutcomeSummary");
|
|
22
22
|
const Meta_1 = require("./Meta");
|
|
23
23
|
const ExternalReference_1 = require("./ExternalReference");
|
|
24
|
+
const Participant_1 = require("./Participant");
|
|
24
25
|
const CategorySummary_1 = require("./CategorySummary");
|
|
25
26
|
const EventSummary_1 = require("./EventSummary");
|
|
26
27
|
const SubcategorySummary_1 = require("./SubcategorySummary");
|
|
@@ -50,6 +51,7 @@ function PagedMarketResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
51
|
'subcategories': json['subcategories'] == null ? undefined : (json['subcategories'].map(SubcategorySummary_1.SubcategorySummaryFromJSON)),
|
|
51
52
|
'categories': json['categories'] == null ? undefined : (json['categories'].map(CategorySummary_1.CategorySummaryFromJSON)),
|
|
52
53
|
'externalReferences': json['externalReferences'] == null ? undefined : (json['externalReferences'].map(ExternalReference_1.ExternalReferenceFromJSON)),
|
|
54
|
+
'participants': json['participants'] == null ? undefined : (json['participants'].map(Participant_1.ParticipantFromJSON)),
|
|
53
55
|
};
|
|
54
56
|
}
|
|
55
57
|
function PagedMarketResponseToJSON(json) {
|
|
@@ -69,5 +71,6 @@ function PagedMarketResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
69
71
|
'subcategories': value['subcategories'] == null ? undefined : (value['subcategories'].map(SubcategorySummary_1.SubcategorySummaryToJSON)),
|
|
70
72
|
'categories': value['categories'] == null ? undefined : (value['categories'].map(CategorySummary_1.CategorySummaryToJSON)),
|
|
71
73
|
'externalReferences': value['externalReferences'] == null ? undefined : (value['externalReferences'].map(ExternalReference_1.ExternalReferenceToJSON)),
|
|
74
|
+
'participants': value['participants'] == null ? undefined : (value['participants'].map(Participant_1.ParticipantToJSON)),
|
|
72
75
|
};
|
|
73
76
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 UpdateMarketOutcomeRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateMarketOutcomeRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UpdateMarketOutcomeRequest
|
|
22
|
+
*/
|
|
23
|
+
participantId?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the UpdateMarketOutcomeRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfUpdateMarketOutcomeRequest(value: object): value is UpdateMarketOutcomeRequest;
|
|
29
|
+
export declare function UpdateMarketOutcomeRequestFromJSON(json: any): UpdateMarketOutcomeRequest;
|
|
30
|
+
export declare function UpdateMarketOutcomeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateMarketOutcomeRequest;
|
|
31
|
+
export declare function UpdateMarketOutcomeRequestToJSON(json: any): UpdateMarketOutcomeRequest;
|
|
32
|
+
export declare function UpdateMarketOutcomeRequestToJSONTyped(value?: UpdateMarketOutcomeRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
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.instanceOfUpdateMarketOutcomeRequest = instanceOfUpdateMarketOutcomeRequest;
|
|
17
|
+
exports.UpdateMarketOutcomeRequestFromJSON = UpdateMarketOutcomeRequestFromJSON;
|
|
18
|
+
exports.UpdateMarketOutcomeRequestFromJSONTyped = UpdateMarketOutcomeRequestFromJSONTyped;
|
|
19
|
+
exports.UpdateMarketOutcomeRequestToJSON = UpdateMarketOutcomeRequestToJSON;
|
|
20
|
+
exports.UpdateMarketOutcomeRequestToJSONTyped = UpdateMarketOutcomeRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the UpdateMarketOutcomeRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfUpdateMarketOutcomeRequest(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function UpdateMarketOutcomeRequestFromJSON(json) {
|
|
28
|
+
return UpdateMarketOutcomeRequestFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function UpdateMarketOutcomeRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'participantId': json['participantId'] == null ? undefined : json['participantId'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function UpdateMarketOutcomeRequestToJSON(json) {
|
|
39
|
+
return UpdateMarketOutcomeRequestToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function UpdateMarketOutcomeRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'participantId': value['participantId'],
|
|
47
|
+
};
|
|
48
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -50,6 +50,7 @@ export * from './ExternalReferenceSource';
|
|
|
50
50
|
export * from './ExternalReferenceSourcesResponse';
|
|
51
51
|
export * from './Heartbeat';
|
|
52
52
|
export * from './HeartbeatResponse';
|
|
53
|
+
export * from './IDResponse';
|
|
53
54
|
export * from './Market';
|
|
54
55
|
export * from './MarketLiquidities';
|
|
55
56
|
export * from './MarketLiquiditiesResponse';
|
|
@@ -68,9 +69,9 @@ export * from './MarketTypeResponse';
|
|
|
68
69
|
export * from './MarketTypeSummary';
|
|
69
70
|
export * from './MarketUpdateResponse';
|
|
70
71
|
export * from './Meta';
|
|
71
|
-
export * from './ModelError';
|
|
72
72
|
export * from './ModifyParticipantsRequest';
|
|
73
73
|
export * from './Order';
|
|
74
|
+
export * from './OrderFailure';
|
|
74
75
|
export * from './OrderResponse';
|
|
75
76
|
export * from './OrderSummary';
|
|
76
77
|
export * from './PageMeta';
|
|
@@ -100,6 +101,7 @@ export * from './TransferResponse';
|
|
|
100
101
|
export * from './UpdateAppCommissionRateRequest';
|
|
101
102
|
export * from './UpdateDateRequest';
|
|
102
103
|
export * from './UpdateHeartbeatRequest';
|
|
104
|
+
export * from './UpdateMarketOutcomeRequest';
|
|
103
105
|
export * from './UpdateNameRequest';
|
|
104
106
|
export * from './UpdateReferenceRequest';
|
|
105
107
|
export * from './UpdateReferencesRequest';
|
package/dist/models/index.js
CHANGED
|
@@ -68,6 +68,7 @@ __exportStar(require("./ExternalReferenceSource"), exports);
|
|
|
68
68
|
__exportStar(require("./ExternalReferenceSourcesResponse"), exports);
|
|
69
69
|
__exportStar(require("./Heartbeat"), exports);
|
|
70
70
|
__exportStar(require("./HeartbeatResponse"), exports);
|
|
71
|
+
__exportStar(require("./IDResponse"), exports);
|
|
71
72
|
__exportStar(require("./Market"), exports);
|
|
72
73
|
__exportStar(require("./MarketLiquidities"), exports);
|
|
73
74
|
__exportStar(require("./MarketLiquiditiesResponse"), exports);
|
|
@@ -86,9 +87,9 @@ __exportStar(require("./MarketTypeResponse"), exports);
|
|
|
86
87
|
__exportStar(require("./MarketTypeSummary"), exports);
|
|
87
88
|
__exportStar(require("./MarketUpdateResponse"), exports);
|
|
88
89
|
__exportStar(require("./Meta"), exports);
|
|
89
|
-
__exportStar(require("./ModelError"), exports);
|
|
90
90
|
__exportStar(require("./ModifyParticipantsRequest"), exports);
|
|
91
91
|
__exportStar(require("./Order"), exports);
|
|
92
|
+
__exportStar(require("./OrderFailure"), exports);
|
|
92
93
|
__exportStar(require("./OrderResponse"), exports);
|
|
93
94
|
__exportStar(require("./OrderSummary"), exports);
|
|
94
95
|
__exportStar(require("./PageMeta"), exports);
|
|
@@ -118,6 +119,7 @@ __exportStar(require("./TransferResponse"), exports);
|
|
|
118
119
|
__exportStar(require("./UpdateAppCommissionRateRequest"), exports);
|
|
119
120
|
__exportStar(require("./UpdateDateRequest"), exports);
|
|
120
121
|
__exportStar(require("./UpdateHeartbeatRequest"), exports);
|
|
122
|
+
__exportStar(require("./UpdateMarketOutcomeRequest"), exports);
|
|
121
123
|
__exportStar(require("./UpdateNameRequest"), exports);
|
|
122
124
|
__exportStar(require("./UpdateReferenceRequest"), exports);
|
|
123
125
|
__exportStar(require("./UpdateReferencesRequest"), exports);
|