@monaco-protocol/client-v2 0.0.84-dev.0 → 0.0.88
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/AppManagementApi.d.ts +39 -1
- package/dist/apis/AppManagementApi.js +110 -0
- package/dist/apis/ExternalReferenceSourcesControllerApi.d.ts +2 -0
- package/dist/apis/ExternalReferenceSourcesControllerApi.js +2 -0
- package/dist/apis/MarketsApi.d.ts +1 -0
- package/dist/apis/MarketsApi.js +1 -0
- package/dist/apis/WalletsApi.d.ts +16 -1
- package/dist/apis/WalletsApi.js +41 -0
- package/dist/models/AppPermission.d.ts +50 -0
- package/dist/models/AppPermission.js +54 -0
- package/dist/models/AppPermissionRequest.d.ts +50 -0
- package/dist/models/AppPermissionRequest.js +66 -0
- package/dist/models/AppPermissionResponse.d.ts +40 -0
- package/dist/models/AppPermissionResponse.js +52 -0
- package/dist/models/BatchCreateOrderRequest.d.ts +1 -1
- package/dist/models/BatchCreateOrderRequest.js +4 -2
- package/dist/models/CreateSubcategoryRequest.d.ts +3 -3
- package/dist/models/CreateSubcategoryRequest.js +9 -3
- package/dist/models/Market.d.ts +1 -0
- package/dist/models/Market.js +1 -0
- package/dist/models/MarketSummary.d.ts +1 -0
- package/dist/models/MarketSummary.js +1 -0
- package/dist/models/ModifyParticipantsRequest.d.ts +1 -1
- package/dist/models/ModifyParticipantsRequest.js +3 -1
- package/dist/models/UpdateWalletOverdraftRequest.d.ts +38 -0
- package/dist/models/UpdateWalletOverdraftRequest.js +54 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/package.json +1 -1
|
@@ -10,7 +10,12 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AppResponse, CommissionRateResponse, CreateAppRequest, UpdateAppCommissionRateRequest } from '../models/index';
|
|
13
|
+
import type { AppPermissionRequest, AppPermissionResponse, AppResponse, CommissionRateResponse, CreateAppRequest, UpdateAppCommissionRateRequest } from '../models/index';
|
|
14
|
+
export interface AppManagementApiAddPermissionRequest {
|
|
15
|
+
authorization: string;
|
|
16
|
+
id: string;
|
|
17
|
+
appPermissionRequest: AppPermissionRequest;
|
|
18
|
+
}
|
|
14
19
|
export interface AppManagementApiCreateAppOperationRequest {
|
|
15
20
|
authorization: string;
|
|
16
21
|
createAppRequest: CreateAppRequest;
|
|
@@ -23,6 +28,15 @@ export interface AppManagementApiGetCommissionRatesRequest {
|
|
|
23
28
|
authorization: string;
|
|
24
29
|
id: string;
|
|
25
30
|
}
|
|
31
|
+
export interface AppManagementApiGetPermissionsRequest {
|
|
32
|
+
authorization: string;
|
|
33
|
+
id: string;
|
|
34
|
+
}
|
|
35
|
+
export interface AppManagementApiRemovePermissionRequest {
|
|
36
|
+
authorization: string;
|
|
37
|
+
id: string;
|
|
38
|
+
appPermissionRequest: AppPermissionRequest;
|
|
39
|
+
}
|
|
26
40
|
export interface AppManagementApiUpdateCommissionRateRequest {
|
|
27
41
|
authorization: string;
|
|
28
42
|
id: string;
|
|
@@ -32,6 +46,14 @@ export interface AppManagementApiUpdateCommissionRateRequest {
|
|
|
32
46
|
*
|
|
33
47
|
*/
|
|
34
48
|
export declare class AppManagementApi extends runtime.BaseAPI {
|
|
49
|
+
/**
|
|
50
|
+
* Add permission to app
|
|
51
|
+
*/
|
|
52
|
+
addPermissionRaw(requestParameters: AppManagementApiAddPermissionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
53
|
+
/**
|
|
54
|
+
* Add permission to app
|
|
55
|
+
*/
|
|
56
|
+
addPermission(requestParameters: AppManagementApiAddPermissionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
35
57
|
/**
|
|
36
58
|
* Create app
|
|
37
59
|
*/
|
|
@@ -56,6 +78,22 @@ export declare class AppManagementApi extends runtime.BaseAPI {
|
|
|
56
78
|
* Fetch commission rates
|
|
57
79
|
*/
|
|
58
80
|
getCommissionRates(requestParameters: AppManagementApiGetCommissionRatesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CommissionRateResponse>;
|
|
81
|
+
/**
|
|
82
|
+
* Fetch app permissions
|
|
83
|
+
*/
|
|
84
|
+
getPermissionsRaw(requestParameters: AppManagementApiGetPermissionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AppPermissionResponse>>;
|
|
85
|
+
/**
|
|
86
|
+
* Fetch app permissions
|
|
87
|
+
*/
|
|
88
|
+
getPermissions(requestParameters: AppManagementApiGetPermissionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AppPermissionResponse>;
|
|
89
|
+
/**
|
|
90
|
+
* Remove permission from app
|
|
91
|
+
*/
|
|
92
|
+
removePermissionRaw(requestParameters: AppManagementApiRemovePermissionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
93
|
+
/**
|
|
94
|
+
* Remove permission from app
|
|
95
|
+
*/
|
|
96
|
+
removePermission(requestParameters: AppManagementApiRemovePermissionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
59
97
|
/**
|
|
60
98
|
* Create a new commission rate to be applied to profit on risk created via the given app. Commission rates can have a value between 0.0 and 1.0, where e.g., 0.01 would be 1% of the profit.<br /><br />The most recently created rate will be used as the default rate. The default rate is used when no commission rate ID is passed during order creation.<br /><br />NOTE maximum effective commission rate for an app will be <br /><code>1.0 - protocol commission(fee) rate</code>
|
|
61
99
|
* Create a new app commission rate
|
|
@@ -29,6 +29,44 @@ const index_1 = require("../models/index");
|
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
31
31
|
class AppManagementApi extends runtime.BaseAPI {
|
|
32
|
+
/**
|
|
33
|
+
* Add permission to app
|
|
34
|
+
*/
|
|
35
|
+
addPermissionRaw(requestParameters, initOverrides) {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
if (requestParameters['authorization'] == null) {
|
|
38
|
+
throw new runtime.RequiredError('authorization', 'Required parameter "authorization" was null or undefined when calling addPermission().');
|
|
39
|
+
}
|
|
40
|
+
if (requestParameters['id'] == null) {
|
|
41
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling addPermission().');
|
|
42
|
+
}
|
|
43
|
+
if (requestParameters['appPermissionRequest'] == null) {
|
|
44
|
+
throw new runtime.RequiredError('appPermissionRequest', 'Required parameter "appPermissionRequest" was null or undefined when calling addPermission().');
|
|
45
|
+
}
|
|
46
|
+
const queryParameters = {};
|
|
47
|
+
const headerParameters = {};
|
|
48
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
49
|
+
if (requestParameters['authorization'] != null) {
|
|
50
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
51
|
+
}
|
|
52
|
+
const response = yield this.request({
|
|
53
|
+
path: `/apps/{id}/permissions/add`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
54
|
+
method: 'POST',
|
|
55
|
+
headers: headerParameters,
|
|
56
|
+
query: queryParameters,
|
|
57
|
+
body: (0, index_1.AppPermissionRequestToJSON)(requestParameters['appPermissionRequest']),
|
|
58
|
+
}, initOverrides);
|
|
59
|
+
return new runtime.VoidApiResponse(response);
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Add permission to app
|
|
64
|
+
*/
|
|
65
|
+
addPermission(requestParameters, initOverrides) {
|
|
66
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
67
|
+
yield this.addPermissionRaw(requestParameters, initOverrides);
|
|
68
|
+
});
|
|
69
|
+
}
|
|
32
70
|
/**
|
|
33
71
|
* Create app
|
|
34
72
|
*/
|
|
@@ -133,6 +171,78 @@ class AppManagementApi extends runtime.BaseAPI {
|
|
|
133
171
|
return yield response.value();
|
|
134
172
|
});
|
|
135
173
|
}
|
|
174
|
+
/**
|
|
175
|
+
* Fetch app permissions
|
|
176
|
+
*/
|
|
177
|
+
getPermissionsRaw(requestParameters, initOverrides) {
|
|
178
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
179
|
+
if (requestParameters['authorization'] == null) {
|
|
180
|
+
throw new runtime.RequiredError('authorization', 'Required parameter "authorization" was null or undefined when calling getPermissions().');
|
|
181
|
+
}
|
|
182
|
+
if (requestParameters['id'] == null) {
|
|
183
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getPermissions().');
|
|
184
|
+
}
|
|
185
|
+
const queryParameters = {};
|
|
186
|
+
const headerParameters = {};
|
|
187
|
+
if (requestParameters['authorization'] != null) {
|
|
188
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
189
|
+
}
|
|
190
|
+
const response = yield this.request({
|
|
191
|
+
path: `/apps/{id}/permissions`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
192
|
+
method: 'GET',
|
|
193
|
+
headers: headerParameters,
|
|
194
|
+
query: queryParameters,
|
|
195
|
+
}, initOverrides);
|
|
196
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AppPermissionResponseFromJSON)(jsonValue));
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* Fetch app permissions
|
|
201
|
+
*/
|
|
202
|
+
getPermissions(requestParameters, initOverrides) {
|
|
203
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
204
|
+
const response = yield this.getPermissionsRaw(requestParameters, initOverrides);
|
|
205
|
+
return yield response.value();
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* Remove permission from app
|
|
210
|
+
*/
|
|
211
|
+
removePermissionRaw(requestParameters, initOverrides) {
|
|
212
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
213
|
+
if (requestParameters['authorization'] == null) {
|
|
214
|
+
throw new runtime.RequiredError('authorization', 'Required parameter "authorization" was null or undefined when calling removePermission().');
|
|
215
|
+
}
|
|
216
|
+
if (requestParameters['id'] == null) {
|
|
217
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling removePermission().');
|
|
218
|
+
}
|
|
219
|
+
if (requestParameters['appPermissionRequest'] == null) {
|
|
220
|
+
throw new runtime.RequiredError('appPermissionRequest', 'Required parameter "appPermissionRequest" was null or undefined when calling removePermission().');
|
|
221
|
+
}
|
|
222
|
+
const queryParameters = {};
|
|
223
|
+
const headerParameters = {};
|
|
224
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
225
|
+
if (requestParameters['authorization'] != null) {
|
|
226
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
227
|
+
}
|
|
228
|
+
const response = yield this.request({
|
|
229
|
+
path: `/apps/{id}/permissions/remove`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
230
|
+
method: 'POST',
|
|
231
|
+
headers: headerParameters,
|
|
232
|
+
query: queryParameters,
|
|
233
|
+
body: (0, index_1.AppPermissionRequestToJSON)(requestParameters['appPermissionRequest']),
|
|
234
|
+
}, initOverrides);
|
|
235
|
+
return new runtime.VoidApiResponse(response);
|
|
236
|
+
});
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* Remove permission from app
|
|
240
|
+
*/
|
|
241
|
+
removePermission(requestParameters, initOverrides) {
|
|
242
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
243
|
+
yield this.removePermissionRaw(requestParameters, initOverrides);
|
|
244
|
+
});
|
|
245
|
+
}
|
|
136
246
|
/**
|
|
137
247
|
* Create a new commission rate to be applied to profit on risk created via the given app. Commission rates can have a value between 0.0 and 1.0, where e.g., 0.01 would be 1% of the profit.<br /><br />The most recently created rate will be used as the default rate. The default rate is used when no commission rate ID is passed during order creation.<br /><br />NOTE maximum effective commission rate for an app will be <br /><code>1.0 - protocol commission(fee) rate</code>
|
|
138
248
|
* Create a new app commission rate
|
|
@@ -19,9 +19,11 @@ export interface ExternalReferenceSourcesControllerApiGetExternalSourcesRequest
|
|
|
19
19
|
*/
|
|
20
20
|
export declare class ExternalReferenceSourcesControllerApi extends runtime.BaseAPI {
|
|
21
21
|
/**
|
|
22
|
+
* Fetch external reference sources
|
|
22
23
|
*/
|
|
23
24
|
getExternalSourcesRaw(requestParameters: ExternalReferenceSourcesControllerApiGetExternalSourcesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ExternalReferenceSourcesResponse>>;
|
|
24
25
|
/**
|
|
26
|
+
* Fetch external reference sources
|
|
25
27
|
*/
|
|
26
28
|
getExternalSources(requestParameters: ExternalReferenceSourcesControllerApiGetExternalSourcesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ExternalReferenceSourcesResponse>;
|
|
27
29
|
}
|
|
@@ -30,6 +30,7 @@ const index_1 = require("../models/index");
|
|
|
30
30
|
*/
|
|
31
31
|
class ExternalReferenceSourcesControllerApi extends runtime.BaseAPI {
|
|
32
32
|
/**
|
|
33
|
+
* Fetch external reference sources
|
|
33
34
|
*/
|
|
34
35
|
getExternalSourcesRaw(requestParameters, initOverrides) {
|
|
35
36
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -51,6 +52,7 @@ class ExternalReferenceSourcesControllerApi extends runtime.BaseAPI {
|
|
|
51
52
|
});
|
|
52
53
|
}
|
|
53
54
|
/**
|
|
55
|
+
* Fetch external reference sources
|
|
54
56
|
*/
|
|
55
57
|
getExternalSources(requestParameters, initOverrides) {
|
|
56
58
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -322,6 +322,7 @@ export declare class MarketsApi extends runtime.BaseAPI {
|
|
|
322
322
|
export declare const GetMarketsStatusesEnum: {
|
|
323
323
|
readonly Initializing: "Initializing";
|
|
324
324
|
readonly Open: "Open";
|
|
325
|
+
readonly Locking: "Locking";
|
|
325
326
|
readonly Locked: "Locked";
|
|
326
327
|
readonly Settling: "Settling";
|
|
327
328
|
readonly Settled: "Settled";
|
package/dist/apis/MarketsApi.js
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { CreateWalletRequest, DepositAddressResponse, DepositRequestResponse, PagedMarketPositionResponse, PagedTransactionResponse, PagedWalletResponse, TransferResponse, WalletMetricsResponse, WalletResponse, WithdrawalRequestRequest, WithdrawalRequestResponse } from '../models/index';
|
|
13
|
+
import type { CreateWalletRequest, DepositAddressResponse, DepositRequestResponse, PagedMarketPositionResponse, PagedTransactionResponse, PagedWalletResponse, TransferResponse, UpdateWalletOverdraftRequest, WalletMetricsResponse, WalletResponse, WithdrawalRequestRequest, WithdrawalRequestResponse } from '../models/index';
|
|
14
14
|
export interface WalletsApiCreateWalletOperationRequest {
|
|
15
15
|
authorization: string;
|
|
16
16
|
createWalletRequest: CreateWalletRequest;
|
|
@@ -68,6 +68,11 @@ export interface WalletsApiRequestWithdrawalRequest {
|
|
|
68
68
|
id: string;
|
|
69
69
|
withdrawalRequestRequest: WithdrawalRequestRequest;
|
|
70
70
|
}
|
|
71
|
+
export interface WalletsApiUpdateWalletOverdraftOperationRequest {
|
|
72
|
+
authorization: string;
|
|
73
|
+
id: string;
|
|
74
|
+
updateWalletOverdraftRequest: UpdateWalletOverdraftRequest;
|
|
75
|
+
}
|
|
71
76
|
/**
|
|
72
77
|
*
|
|
73
78
|
*/
|
|
@@ -170,6 +175,16 @@ export declare class WalletsApi extends runtime.BaseAPI {
|
|
|
170
175
|
* Request to withdraw Funds
|
|
171
176
|
*/
|
|
172
177
|
requestWithdrawal(requestParameters: WalletsApiRequestWithdrawalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WithdrawalRequestResponse>;
|
|
178
|
+
/**
|
|
179
|
+
* Update the overdraft limit for a given wallet and currency
|
|
180
|
+
* Update wallet overdraft limit
|
|
181
|
+
*/
|
|
182
|
+
updateWalletOverdraftRaw(requestParameters: WalletsApiUpdateWalletOverdraftOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WalletResponse>>;
|
|
183
|
+
/**
|
|
184
|
+
* Update the overdraft limit for a given wallet and currency
|
|
185
|
+
* Update wallet overdraft limit
|
|
186
|
+
*/
|
|
187
|
+
updateWalletOverdraft(requestParameters: WalletsApiUpdateWalletOverdraftOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WalletResponse>;
|
|
173
188
|
}
|
|
174
189
|
/**
|
|
175
190
|
* @export
|
package/dist/apis/WalletsApi.js
CHANGED
|
@@ -463,6 +463,47 @@ class WalletsApi extends runtime.BaseAPI {
|
|
|
463
463
|
return yield response.value();
|
|
464
464
|
});
|
|
465
465
|
}
|
|
466
|
+
/**
|
|
467
|
+
* Update the overdraft limit for a given wallet and currency
|
|
468
|
+
* Update wallet overdraft limit
|
|
469
|
+
*/
|
|
470
|
+
updateWalletOverdraftRaw(requestParameters, initOverrides) {
|
|
471
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
472
|
+
if (requestParameters['authorization'] == null) {
|
|
473
|
+
throw new runtime.RequiredError('authorization', 'Required parameter "authorization" was null or undefined when calling updateWalletOverdraft().');
|
|
474
|
+
}
|
|
475
|
+
if (requestParameters['id'] == null) {
|
|
476
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateWalletOverdraft().');
|
|
477
|
+
}
|
|
478
|
+
if (requestParameters['updateWalletOverdraftRequest'] == null) {
|
|
479
|
+
throw new runtime.RequiredError('updateWalletOverdraftRequest', 'Required parameter "updateWalletOverdraftRequest" was null or undefined when calling updateWalletOverdraft().');
|
|
480
|
+
}
|
|
481
|
+
const queryParameters = {};
|
|
482
|
+
const headerParameters = {};
|
|
483
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
484
|
+
if (requestParameters['authorization'] != null) {
|
|
485
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
486
|
+
}
|
|
487
|
+
const response = yield this.request({
|
|
488
|
+
path: `/wallets/{id}/overdraft`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
489
|
+
method: 'POST',
|
|
490
|
+
headers: headerParameters,
|
|
491
|
+
query: queryParameters,
|
|
492
|
+
body: (0, index_1.UpdateWalletOverdraftRequestToJSON)(requestParameters['updateWalletOverdraftRequest']),
|
|
493
|
+
}, initOverrides);
|
|
494
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.WalletResponseFromJSON)(jsonValue));
|
|
495
|
+
});
|
|
496
|
+
}
|
|
497
|
+
/**
|
|
498
|
+
* Update the overdraft limit for a given wallet and currency
|
|
499
|
+
* Update wallet overdraft limit
|
|
500
|
+
*/
|
|
501
|
+
updateWalletOverdraft(requestParameters, initOverrides) {
|
|
502
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
503
|
+
const response = yield this.updateWalletOverdraftRaw(requestParameters, initOverrides);
|
|
504
|
+
return yield response.value();
|
|
505
|
+
});
|
|
506
|
+
}
|
|
466
507
|
}
|
|
467
508
|
exports.WalletsApi = WalletsApi;
|
|
468
509
|
/**
|
|
@@ -0,0 +1,50 @@
|
|
|
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 AppPermission
|
|
16
|
+
*/
|
|
17
|
+
export interface AppPermission {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AppPermission
|
|
22
|
+
*/
|
|
23
|
+
appId?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AppPermission
|
|
28
|
+
*/
|
|
29
|
+
permission?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Date}
|
|
33
|
+
* @memberof AppPermission
|
|
34
|
+
*/
|
|
35
|
+
createdAt?: Date;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Date}
|
|
39
|
+
* @memberof AppPermission
|
|
40
|
+
*/
|
|
41
|
+
modifiedAt?: Date;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the AppPermission interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfAppPermission(value: object): value is AppPermission;
|
|
47
|
+
export declare function AppPermissionFromJSON(json: any): AppPermission;
|
|
48
|
+
export declare function AppPermissionFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppPermission;
|
|
49
|
+
export declare function AppPermissionToJSON(json: any): AppPermission;
|
|
50
|
+
export declare function AppPermissionToJSONTyped(value?: AppPermission | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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.instanceOfAppPermission = instanceOfAppPermission;
|
|
17
|
+
exports.AppPermissionFromJSON = AppPermissionFromJSON;
|
|
18
|
+
exports.AppPermissionFromJSONTyped = AppPermissionFromJSONTyped;
|
|
19
|
+
exports.AppPermissionToJSON = AppPermissionToJSON;
|
|
20
|
+
exports.AppPermissionToJSONTyped = AppPermissionToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AppPermission interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAppPermission(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function AppPermissionFromJSON(json) {
|
|
28
|
+
return AppPermissionFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function AppPermissionFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'appId': json['appId'] == null ? undefined : json['appId'],
|
|
36
|
+
'permission': json['permission'] == null ? undefined : json['permission'],
|
|
37
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
38
|
+
'modifiedAt': json['modifiedAt'] == null ? undefined : (new Date(json['modifiedAt'])),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function AppPermissionToJSON(json) {
|
|
42
|
+
return AppPermissionToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function AppPermissionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'appId': value['appId'],
|
|
50
|
+
'permission': value['permission'],
|
|
51
|
+
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
|
52
|
+
'modifiedAt': value['modifiedAt'] == null ? undefined : ((value['modifiedAt']).toISOString()),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 AppPermissionRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface AppPermissionRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AppPermissionRequest
|
|
22
|
+
*/
|
|
23
|
+
permission?: AppPermissionRequestPermissionEnum;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @export
|
|
27
|
+
*/
|
|
28
|
+
export declare const AppPermissionRequestPermissionEnum: {
|
|
29
|
+
readonly AppsCanAdmin: "AppsCanAdmin";
|
|
30
|
+
readonly ApiKeyCanAdmin: "APIKeyCanAdmin";
|
|
31
|
+
readonly CategoryCanAdmin: "CategoryCanAdmin";
|
|
32
|
+
readonly ExternalTransfersEnabled: "ExternalTransfersEnabled";
|
|
33
|
+
readonly SubCategoryCanAdmin: "SubCategoryCanAdmin";
|
|
34
|
+
readonly MarketTypeCanAdmin: "MarketTypeCanAdmin";
|
|
35
|
+
readonly EventGroupCanAdmin: "EventGroupCanAdmin";
|
|
36
|
+
readonly EventCanAdmin: "EventCanAdmin";
|
|
37
|
+
readonly MarketCanAdmin: "MarketCanAdmin";
|
|
38
|
+
readonly OrderCanViewAll: "OrderCanViewAll";
|
|
39
|
+
readonly TradeCanViewAll: "TradeCanViewAll";
|
|
40
|
+
readonly WalletCanUpdateOverdraft: "WalletCanUpdateOverdraft";
|
|
41
|
+
};
|
|
42
|
+
export type AppPermissionRequestPermissionEnum = typeof AppPermissionRequestPermissionEnum[keyof typeof AppPermissionRequestPermissionEnum];
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the AppPermissionRequest interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfAppPermissionRequest(value: object): value is AppPermissionRequest;
|
|
47
|
+
export declare function AppPermissionRequestFromJSON(json: any): AppPermissionRequest;
|
|
48
|
+
export declare function AppPermissionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppPermissionRequest;
|
|
49
|
+
export declare function AppPermissionRequestToJSON(json: any): AppPermissionRequest;
|
|
50
|
+
export declare function AppPermissionRequestToJSONTyped(value?: AppPermissionRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,66 @@
|
|
|
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.AppPermissionRequestPermissionEnum = void 0;
|
|
17
|
+
exports.instanceOfAppPermissionRequest = instanceOfAppPermissionRequest;
|
|
18
|
+
exports.AppPermissionRequestFromJSON = AppPermissionRequestFromJSON;
|
|
19
|
+
exports.AppPermissionRequestFromJSONTyped = AppPermissionRequestFromJSONTyped;
|
|
20
|
+
exports.AppPermissionRequestToJSON = AppPermissionRequestToJSON;
|
|
21
|
+
exports.AppPermissionRequestToJSONTyped = AppPermissionRequestToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.AppPermissionRequestPermissionEnum = {
|
|
26
|
+
AppsCanAdmin: 'AppsCanAdmin',
|
|
27
|
+
ApiKeyCanAdmin: 'APIKeyCanAdmin',
|
|
28
|
+
CategoryCanAdmin: 'CategoryCanAdmin',
|
|
29
|
+
ExternalTransfersEnabled: 'ExternalTransfersEnabled',
|
|
30
|
+
SubCategoryCanAdmin: 'SubCategoryCanAdmin',
|
|
31
|
+
MarketTypeCanAdmin: 'MarketTypeCanAdmin',
|
|
32
|
+
EventGroupCanAdmin: 'EventGroupCanAdmin',
|
|
33
|
+
EventCanAdmin: 'EventCanAdmin',
|
|
34
|
+
MarketCanAdmin: 'MarketCanAdmin',
|
|
35
|
+
OrderCanViewAll: 'OrderCanViewAll',
|
|
36
|
+
TradeCanViewAll: 'TradeCanViewAll',
|
|
37
|
+
WalletCanUpdateOverdraft: 'WalletCanUpdateOverdraft'
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the AppPermissionRequest interface.
|
|
41
|
+
*/
|
|
42
|
+
function instanceOfAppPermissionRequest(value) {
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
function AppPermissionRequestFromJSON(json) {
|
|
46
|
+
return AppPermissionRequestFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function AppPermissionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'permission': json['permission'] == null ? undefined : json['permission'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function AppPermissionRequestToJSON(json) {
|
|
57
|
+
return AppPermissionRequestToJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
function AppPermissionRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'permission': value['permission'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
@@ -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 { AppPermission } from './AppPermission';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface AppPermissionResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface AppPermissionResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Meta}
|
|
23
|
+
* @memberof AppPermissionResponse
|
|
24
|
+
*/
|
|
25
|
+
meta?: Meta;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<AppPermission>}
|
|
29
|
+
* @memberof AppPermissionResponse
|
|
30
|
+
*/
|
|
31
|
+
appPermissions?: Array<AppPermission>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the AppPermissionResponse interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfAppPermissionResponse(value: object): value is AppPermissionResponse;
|
|
37
|
+
export declare function AppPermissionResponseFromJSON(json: any): AppPermissionResponse;
|
|
38
|
+
export declare function AppPermissionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppPermissionResponse;
|
|
39
|
+
export declare function AppPermissionResponseToJSON(json: any): AppPermissionResponse;
|
|
40
|
+
export declare function AppPermissionResponseToJSONTyped(value?: AppPermissionResponse | 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.instanceOfAppPermissionResponse = instanceOfAppPermissionResponse;
|
|
17
|
+
exports.AppPermissionResponseFromJSON = AppPermissionResponseFromJSON;
|
|
18
|
+
exports.AppPermissionResponseFromJSONTyped = AppPermissionResponseFromJSONTyped;
|
|
19
|
+
exports.AppPermissionResponseToJSON = AppPermissionResponseToJSON;
|
|
20
|
+
exports.AppPermissionResponseToJSONTyped = AppPermissionResponseToJSONTyped;
|
|
21
|
+
const Meta_1 = require("./Meta");
|
|
22
|
+
const AppPermission_1 = require("./AppPermission");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the AppPermissionResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfAppPermissionResponse(value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function AppPermissionResponseFromJSON(json) {
|
|
30
|
+
return AppPermissionResponseFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function AppPermissionResponseFromJSONTyped(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
|
+
'appPermissions': json['appPermissions'] == null ? undefined : (json['appPermissions'].map(AppPermission_1.AppPermissionFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function AppPermissionResponseToJSON(json) {
|
|
42
|
+
return AppPermissionResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function AppPermissionResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'_meta': (0, Meta_1.MetaToJSON)(value['meta']),
|
|
50
|
+
'appPermissions': value['appPermissions'] == null ? undefined : (value['appPermissions'].map(AppPermission_1.AppPermissionToJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -21,7 +21,7 @@ export interface BatchCreateOrderRequest {
|
|
|
21
21
|
* @type {Array<CreateOrderRequest>}
|
|
22
22
|
* @memberof BatchCreateOrderRequest
|
|
23
23
|
*/
|
|
24
|
-
requests
|
|
24
|
+
requests: Array<CreateOrderRequest>;
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
27
|
* Check if a given object implements the BatchCreateOrderRequest interface.
|
|
@@ -23,6 +23,8 @@ const CreateOrderRequest_1 = require("./CreateOrderRequest");
|
|
|
23
23
|
* Check if a given object implements the BatchCreateOrderRequest interface.
|
|
24
24
|
*/
|
|
25
25
|
function instanceOfBatchCreateOrderRequest(value) {
|
|
26
|
+
if (!('requests' in value) || value['requests'] === undefined)
|
|
27
|
+
return false;
|
|
26
28
|
return true;
|
|
27
29
|
}
|
|
28
30
|
function BatchCreateOrderRequestFromJSON(json) {
|
|
@@ -33,7 +35,7 @@ function BatchCreateOrderRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
35
|
return json;
|
|
34
36
|
}
|
|
35
37
|
return {
|
|
36
|
-
'requests':
|
|
38
|
+
'requests': (json['requests'].map(CreateOrderRequest_1.CreateOrderRequestFromJSON)),
|
|
37
39
|
};
|
|
38
40
|
}
|
|
39
41
|
function BatchCreateOrderRequestToJSON(json) {
|
|
@@ -44,6 +46,6 @@ function BatchCreateOrderRequestToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
44
46
|
return value;
|
|
45
47
|
}
|
|
46
48
|
return {
|
|
47
|
-
'requests':
|
|
49
|
+
'requests': (value['requests'].map(CreateOrderRequest_1.CreateOrderRequestToJSON)),
|
|
48
50
|
};
|
|
49
51
|
}
|
|
@@ -20,19 +20,19 @@ export interface CreateSubcategoryRequest {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof CreateSubcategoryRequest
|
|
22
22
|
*/
|
|
23
|
-
id
|
|
23
|
+
id: string;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof CreateSubcategoryRequest
|
|
28
28
|
*/
|
|
29
|
-
name
|
|
29
|
+
name: string;
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof CreateSubcategoryRequest
|
|
34
34
|
*/
|
|
35
|
-
categoryId
|
|
35
|
+
categoryId: string;
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
38
|
* Check if a given object implements the CreateSubcategoryRequest interface.
|
|
@@ -22,6 +22,12 @@ exports.CreateSubcategoryRequestToJSONTyped = CreateSubcategoryRequestToJSONType
|
|
|
22
22
|
* Check if a given object implements the CreateSubcategoryRequest interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfCreateSubcategoryRequest(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('categoryId' in value) || value['categoryId'] === undefined)
|
|
30
|
+
return false;
|
|
25
31
|
return true;
|
|
26
32
|
}
|
|
27
33
|
function CreateSubcategoryRequestFromJSON(json) {
|
|
@@ -32,9 +38,9 @@ function CreateSubcategoryRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
38
|
return json;
|
|
33
39
|
}
|
|
34
40
|
return {
|
|
35
|
-
'id': json['id']
|
|
36
|
-
'name': json['name']
|
|
37
|
-
'categoryId': json['categoryId']
|
|
41
|
+
'id': json['id'],
|
|
42
|
+
'name': json['name'],
|
|
43
|
+
'categoryId': json['categoryId'],
|
|
38
44
|
};
|
|
39
45
|
}
|
|
40
46
|
function CreateSubcategoryRequestToJSON(json) {
|
package/dist/models/Market.d.ts
CHANGED
|
@@ -180,6 +180,7 @@ export type MarketEventStartActionEnum = typeof MarketEventStartActionEnum[keyof
|
|
|
180
180
|
export declare const MarketStatusEnum: {
|
|
181
181
|
readonly Initializing: "Initializing";
|
|
182
182
|
readonly Open: "Open";
|
|
183
|
+
readonly Locking: "Locking";
|
|
183
184
|
readonly Locked: "Locked";
|
|
184
185
|
readonly Settling: "Settling";
|
|
185
186
|
readonly Settled: "Settled";
|
package/dist/models/Market.js
CHANGED
|
@@ -86,6 +86,7 @@ export type MarketSummaryInPlayStatusEnum = typeof MarketSummaryInPlayStatusEnum
|
|
|
86
86
|
export declare const MarketSummaryStatusEnum: {
|
|
87
87
|
readonly Initializing: "Initializing";
|
|
88
88
|
readonly Open: "Open";
|
|
89
|
+
readonly Locking: "Locking";
|
|
89
90
|
readonly Locked: "Locked";
|
|
90
91
|
readonly Settling: "Settling";
|
|
91
92
|
readonly Settled: "Settled";
|
|
@@ -20,7 +20,7 @@ export interface ModifyParticipantsRequest {
|
|
|
20
20
|
* @type {Array<string>}
|
|
21
21
|
* @memberof ModifyParticipantsRequest
|
|
22
22
|
*/
|
|
23
|
-
participantCodes
|
|
23
|
+
participantCodes: Array<string>;
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
26
|
* Check if a given object implements the ModifyParticipantsRequest interface.
|
|
@@ -22,6 +22,8 @@ exports.ModifyParticipantsRequestToJSONTyped = ModifyParticipantsRequestToJSONTy
|
|
|
22
22
|
* Check if a given object implements the ModifyParticipantsRequest interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfModifyParticipantsRequest(value) {
|
|
25
|
+
if (!('participantCodes' in value) || value['participantCodes'] === undefined)
|
|
26
|
+
return false;
|
|
25
27
|
return true;
|
|
26
28
|
}
|
|
27
29
|
function ModifyParticipantsRequestFromJSON(json) {
|
|
@@ -32,7 +34,7 @@ function ModifyParticipantsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
34
|
return json;
|
|
33
35
|
}
|
|
34
36
|
return {
|
|
35
|
-
'participantCodes': json['participantCodes']
|
|
37
|
+
'participantCodes': json['participantCodes'],
|
|
36
38
|
};
|
|
37
39
|
}
|
|
38
40
|
function ModifyParticipantsRequestToJSON(json) {
|
|
@@ -0,0 +1,38 @@
|
|
|
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 UpdateWalletOverdraftRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateWalletOverdraftRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UpdateWalletOverdraftRequest
|
|
22
|
+
*/
|
|
23
|
+
currencyId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof UpdateWalletOverdraftRequest
|
|
28
|
+
*/
|
|
29
|
+
newOverdraftLimit: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the UpdateWalletOverdraftRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfUpdateWalletOverdraftRequest(value: object): value is UpdateWalletOverdraftRequest;
|
|
35
|
+
export declare function UpdateWalletOverdraftRequestFromJSON(json: any): UpdateWalletOverdraftRequest;
|
|
36
|
+
export declare function UpdateWalletOverdraftRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateWalletOverdraftRequest;
|
|
37
|
+
export declare function UpdateWalletOverdraftRequestToJSON(json: any): UpdateWalletOverdraftRequest;
|
|
38
|
+
export declare function UpdateWalletOverdraftRequestToJSONTyped(value?: UpdateWalletOverdraftRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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.instanceOfUpdateWalletOverdraftRequest = instanceOfUpdateWalletOverdraftRequest;
|
|
17
|
+
exports.UpdateWalletOverdraftRequestFromJSON = UpdateWalletOverdraftRequestFromJSON;
|
|
18
|
+
exports.UpdateWalletOverdraftRequestFromJSONTyped = UpdateWalletOverdraftRequestFromJSONTyped;
|
|
19
|
+
exports.UpdateWalletOverdraftRequestToJSON = UpdateWalletOverdraftRequestToJSON;
|
|
20
|
+
exports.UpdateWalletOverdraftRequestToJSONTyped = UpdateWalletOverdraftRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the UpdateWalletOverdraftRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfUpdateWalletOverdraftRequest(value) {
|
|
25
|
+
if (!('currencyId' in value) || value['currencyId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('newOverdraftLimit' in value) || value['newOverdraftLimit'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function UpdateWalletOverdraftRequestFromJSON(json) {
|
|
32
|
+
return UpdateWalletOverdraftRequestFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function UpdateWalletOverdraftRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'currencyId': json['currencyId'],
|
|
40
|
+
'newOverdraftLimit': json['newOverdraftLimit'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function UpdateWalletOverdraftRequestToJSON(json) {
|
|
44
|
+
return UpdateWalletOverdraftRequestToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function UpdateWalletOverdraftRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'currencyId': value['currencyId'],
|
|
52
|
+
'newOverdraftLimit': value['newOverdraftLimit'],
|
|
53
|
+
};
|
|
54
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -4,6 +4,9 @@ export * from './AddMarketOutcomeRequest';
|
|
|
4
4
|
export * from './AddParticipantRequest';
|
|
5
5
|
export * from './AddParticipantsRequest';
|
|
6
6
|
export * from './App';
|
|
7
|
+
export * from './AppPermission';
|
|
8
|
+
export * from './AppPermissionRequest';
|
|
9
|
+
export * from './AppPermissionResponse';
|
|
7
10
|
export * from './AppResponse';
|
|
8
11
|
export * from './AppStatus';
|
|
9
12
|
export * from './AppStatusResponse';
|
|
@@ -108,6 +111,7 @@ export * from './UpdateMarketOutcomeRequest';
|
|
|
108
111
|
export * from './UpdateNameRequest';
|
|
109
112
|
export * from './UpdateReferenceRequest';
|
|
110
113
|
export * from './UpdateReferencesRequest';
|
|
114
|
+
export * from './UpdateWalletOverdraftRequest';
|
|
111
115
|
export * from './Wallet';
|
|
112
116
|
export * from './WalletBalance';
|
|
113
117
|
export * from './WalletMetric';
|
package/dist/models/index.js
CHANGED
|
@@ -22,6 +22,9 @@ __exportStar(require("./AddMarketOutcomeRequest"), exports);
|
|
|
22
22
|
__exportStar(require("./AddParticipantRequest"), exports);
|
|
23
23
|
__exportStar(require("./AddParticipantsRequest"), exports);
|
|
24
24
|
__exportStar(require("./App"), exports);
|
|
25
|
+
__exportStar(require("./AppPermission"), exports);
|
|
26
|
+
__exportStar(require("./AppPermissionRequest"), exports);
|
|
27
|
+
__exportStar(require("./AppPermissionResponse"), exports);
|
|
25
28
|
__exportStar(require("./AppResponse"), exports);
|
|
26
29
|
__exportStar(require("./AppStatus"), exports);
|
|
27
30
|
__exportStar(require("./AppStatusResponse"), exports);
|
|
@@ -126,6 +129,7 @@ __exportStar(require("./UpdateMarketOutcomeRequest"), exports);
|
|
|
126
129
|
__exportStar(require("./UpdateNameRequest"), exports);
|
|
127
130
|
__exportStar(require("./UpdateReferenceRequest"), exports);
|
|
128
131
|
__exportStar(require("./UpdateReferencesRequest"), exports);
|
|
132
|
+
__exportStar(require("./UpdateWalletOverdraftRequest"), exports);
|
|
129
133
|
__exportStar(require("./Wallet"), exports);
|
|
130
134
|
__exportStar(require("./WalletBalance"), exports);
|
|
131
135
|
__exportStar(require("./WalletMetric"), exports);
|