@monaco-protocol/client-v2 0.0.2-dev.2 → 0.0.2-dev.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/README.md +13 -3
  2. package/dist/apis/APIKeyManagementApi.d.ts +3 -3
  3. package/dist/apis/APIKeyManagementApi.js +5 -5
  4. package/dist/apis/AppManagementApi.d.ts +6 -6
  5. package/dist/apis/AppManagementApi.js +9 -9
  6. package/dist/apis/CurrenciesApi.d.ts +3 -3
  7. package/dist/apis/CurrenciesApi.js +5 -5
  8. package/dist/apis/EventCategoriesApi.d.ts +9 -9
  9. package/dist/apis/EventCategoriesApi.js +14 -14
  10. package/dist/apis/EventGroupsApi.d.ts +11 -11
  11. package/dist/apis/EventGroupsApi.js +16 -16
  12. package/dist/apis/EventSubcategoriesApi.d.ts +67 -16
  13. package/dist/apis/EventSubcategoriesApi.js +170 -20
  14. package/dist/apis/EventsApi.d.ts +42 -2
  15. package/dist/apis/EventsApi.js +118 -0
  16. package/dist/apis/MarketPricesApi.d.ts +30 -0
  17. package/dist/apis/MarketPricesApi.js +70 -0
  18. package/dist/apis/MarketsApi.d.ts +7 -3
  19. package/dist/apis/MarketsApi.js +14 -2
  20. package/dist/apis/OrdersApi.d.ts +15 -10
  21. package/dist/apis/OrdersApi.js +24 -8
  22. package/dist/apis/SessionManagementApi.d.ts +10 -10
  23. package/dist/apis/SessionManagementApi.js +12 -12
  24. package/dist/apis/TradesApi.d.ts +4 -2
  25. package/dist/apis/TradesApi.js +6 -0
  26. package/dist/apis/WalletsApi.d.ts +7 -3
  27. package/dist/apis/WalletsApi.js +12 -0
  28. package/dist/apis/index.d.ts +1 -0
  29. package/dist/apis/index.js +1 -0
  30. package/dist/models/APIKeyResponse.d.ts +1 -1
  31. package/dist/models/APIKeyResponse.js +2 -2
  32. package/dist/models/AddParticipantRequest.d.ts +52 -0
  33. package/dist/models/AddParticipantRequest.js +60 -0
  34. package/dist/models/AddParticipantsRequest.d.ts +33 -0
  35. package/dist/models/AddParticipantsRequest.js +49 -0
  36. package/dist/models/AppResponse.d.ts +1 -1
  37. package/dist/models/AppResponse.js +2 -2
  38. package/dist/models/AppStatusResponse.d.ts +1 -1
  39. package/dist/models/AppStatusResponse.js +2 -2
  40. package/dist/models/CategoryResponse.d.ts +1 -1
  41. package/dist/models/CategoryResponse.js +2 -2
  42. package/dist/models/ChunkOrderResponse.d.ts +67 -0
  43. package/dist/models/ChunkOrderResponse.js +63 -0
  44. package/dist/models/CommissionRateResponse.d.ts +1 -1
  45. package/dist/models/CommissionRateResponse.js +2 -2
  46. package/dist/models/CreateEventRequest.d.ts +5 -5
  47. package/dist/models/CreateEventRequest.js +16 -6
  48. package/dist/models/CreateOrderRequest.d.ts +9 -0
  49. package/dist/models/CreateOrderRequest.js +2 -0
  50. package/dist/models/CreateSessionRequest.d.ts +2 -2
  51. package/dist/models/CreateSessionRequest.js +6 -2
  52. package/dist/models/CurrencyResponse.d.ts +1 -1
  53. package/dist/models/CurrencyResponse.js +2 -2
  54. package/dist/models/DocumentReference.js +4 -4
  55. package/dist/models/EventGroupResponse.d.ts +1 -1
  56. package/dist/models/EventGroupResponse.js +2 -2
  57. package/dist/models/EventParticipant.d.ts +52 -0
  58. package/dist/models/EventParticipant.js +60 -0
  59. package/dist/models/EventParticipantsResponse.d.ts +40 -0
  60. package/dist/models/EventParticipantsResponse.js +52 -0
  61. package/dist/models/EventResponse.d.ts +1 -1
  62. package/dist/models/EventResponse.js +2 -2
  63. package/dist/models/MarketLiquidities.d.ts +39 -0
  64. package/dist/models/MarketLiquidities.js +51 -0
  65. package/dist/models/MarketLiquiditiesResponse.d.ts +40 -0
  66. package/dist/models/MarketLiquiditiesResponse.js +52 -0
  67. package/dist/models/MarketLiquidityResponse.d.ts +1 -1
  68. package/dist/models/MarketLiquidityResponse.js +2 -2
  69. package/dist/models/MarketResponse.d.ts +1 -1
  70. package/dist/models/MarketResponse.js +2 -2
  71. package/dist/models/MarketTypeResponse.d.ts +1 -1
  72. package/dist/models/MarketTypeResponse.js +2 -2
  73. package/dist/models/Meta.d.ts +34 -1
  74. package/dist/models/Meta.js +29 -0
  75. package/dist/models/ModifyParticipantsRequest.d.ts +32 -0
  76. package/dist/models/ModifyParticipantsRequest.js +48 -0
  77. package/dist/models/Order.d.ts +16 -0
  78. package/dist/models/Order.js +12 -1
  79. package/dist/models/OrderResponse.d.ts +8 -1
  80. package/dist/models/OrderResponse.js +5 -2
  81. package/dist/models/PageMeta.d.ts +50 -0
  82. package/dist/models/PageMeta.js +54 -0
  83. package/dist/models/PagedEventResponse.d.ts +1 -25
  84. package/dist/models/PagedEventResponse.js +2 -10
  85. package/dist/models/PagedMarketPositionResponse.d.ts +1 -25
  86. package/dist/models/PagedMarketPositionResponse.js +2 -10
  87. package/dist/models/PagedOrderResponse.d.ts +4 -21
  88. package/dist/models/PagedOrderResponse.js +5 -10
  89. package/dist/models/PagedTradeResponse.d.ts +1 -25
  90. package/dist/models/PagedTradeResponse.js +2 -10
  91. package/dist/models/PagedTransactionResponse.d.ts +1 -25
  92. package/dist/models/PagedTransactionResponse.js +2 -10
  93. package/dist/models/Participant.d.ts +58 -0
  94. package/dist/models/Participant.js +62 -0
  95. package/dist/models/ParticipantsResponse.d.ts +40 -0
  96. package/dist/models/ParticipantsResponse.js +52 -0
  97. package/dist/models/SessionResponse.d.ts +1 -1
  98. package/dist/models/SessionResponse.js +2 -2
  99. package/dist/models/SubcategoryResponse.d.ts +1 -1
  100. package/dist/models/SubcategoryResponse.js +2 -2
  101. package/dist/models/TradeResponse.d.ts +1 -1
  102. package/dist/models/TradeResponse.js +2 -2
  103. package/dist/models/TradeSummary.d.ts +44 -0
  104. package/dist/models/TradeSummary.js +52 -0
  105. package/dist/models/Transaction.d.ts +1 -0
  106. package/dist/models/Transaction.js +2 -1
  107. package/dist/models/TransferResponse.d.ts +1 -1
  108. package/dist/models/TransferResponse.js +2 -2
  109. package/dist/models/WalletResponse.d.ts +1 -1
  110. package/dist/models/WalletResponse.js +2 -2
  111. package/dist/models/index.d.ts +12 -1
  112. package/dist/models/index.js +12 -1
  113. package/dist/runtime.js +1 -1
  114. 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 { CreateOrderRequest, OrderResponse, PageRequest, PagedOrderResponse, TradeResponse } from '../models/index';
13
+ import type { ChunkOrderResponse, CreateOrderRequest, OrderResponse, PagedOrderResponse, TradeResponse } from '../models/index';
14
14
  export interface CancelOrderRequest {
15
15
  authorization: string;
16
16
  id: string;
@@ -19,6 +19,7 @@ export interface CancelOrdersRequest {
19
19
  authorization: string;
20
20
  eventIds?: Array<string>;
21
21
  marketIds?: Array<string>;
22
+ orderIds?: Array<string>;
22
23
  }
23
24
  export interface CreateOrderOperationRequest {
24
25
  authorization: string;
@@ -35,17 +36,21 @@ export interface GetOrdersRequest {
35
36
  marketIds?: Array<string>;
36
37
  walletIds?: Array<string>;
37
38
  references?: Array<string>;
38
- status?: GetOrdersStatusEnum;
39
+ statuses?: Array<GetOrdersStatusesEnum>;
39
40
  fromStake?: number;
40
41
  toStake?: number;
41
42
  fromCreatedAt?: Date;
42
43
  toCreatedAt?: Date;
43
- page?: PageRequest;
44
+ page?: number;
45
+ size?: number;
46
+ sort?: Array<string>;
44
47
  }
45
48
  export interface GetTradesByOrderIdRequest {
46
49
  authorization: string;
47
50
  id: string;
48
- page?: PageRequest;
51
+ page?: number;
52
+ size?: number;
53
+ sort?: Array<string>;
49
54
  }
50
55
  /**
51
56
  *
@@ -60,13 +65,13 @@ export declare class OrdersApi extends runtime.BaseAPI {
60
65
  */
61
66
  cancelOrder(requestParameters: CancelOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrderResponse>;
62
67
  /**
63
- * Cancel orders by event and/or market
68
+ * Cancel orders owned by the caller by event and/or market; skips invalid markets/orders
64
69
  */
65
- cancelOrdersRaw(requestParameters: CancelOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
70
+ cancelOrdersRaw(requestParameters: CancelOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChunkOrderResponse>>;
66
71
  /**
67
- * Cancel orders by event and/or market
72
+ * Cancel orders owned by the caller by event and/or market; skips invalid markets/orders
68
73
  */
69
- cancelOrders(requestParameters: CancelOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
74
+ cancelOrders(requestParameters: CancelOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChunkOrderResponse>;
70
75
  /**
71
76
  * Create order
72
77
  */
@@ -103,10 +108,10 @@ export declare class OrdersApi extends runtime.BaseAPI {
103
108
  /**
104
109
  * @export
105
110
  */
106
- export declare const GetOrdersStatusEnum: {
111
+ export declare const GetOrdersStatusesEnum: {
107
112
  readonly Cancelled: "Cancelled";
108
113
  readonly Matched: "Matched";
109
114
  readonly PartiallyMatched: "PartiallyMatched";
110
115
  readonly Unmatched: "Unmatched";
111
116
  };
112
- export type GetOrdersStatusEnum = typeof GetOrdersStatusEnum[keyof typeof GetOrdersStatusEnum];
117
+ export type GetOrdersStatusesEnum = typeof GetOrdersStatusesEnum[keyof typeof GetOrdersStatusesEnum];
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.GetOrdersStatusEnum = exports.OrdersApi = void 0;
25
+ exports.GetOrdersStatusesEnum = exports.OrdersApi = void 0;
26
26
  const runtime = require("../runtime");
27
27
  const index_1 = require("../models/index");
28
28
  /**
@@ -64,7 +64,7 @@ class OrdersApi extends runtime.BaseAPI {
64
64
  });
65
65
  }
66
66
  /**
67
- * Cancel orders by event and/or market
67
+ * Cancel orders owned by the caller by event and/or market; skips invalid markets/orders
68
68
  */
69
69
  cancelOrdersRaw(requestParameters, initOverrides) {
70
70
  return __awaiter(this, void 0, void 0, function* () {
@@ -78,6 +78,9 @@ class OrdersApi extends runtime.BaseAPI {
78
78
  if (requestParameters['marketIds'] != null) {
79
79
  queryParameters['marketIds'] = requestParameters['marketIds'];
80
80
  }
81
+ if (requestParameters['orderIds'] != null) {
82
+ queryParameters['orderIds'] = requestParameters['orderIds'];
83
+ }
81
84
  const headerParameters = {};
82
85
  if (requestParameters['authorization'] != null) {
83
86
  headerParameters['authorization'] = String(requestParameters['authorization']);
@@ -88,15 +91,16 @@ class OrdersApi extends runtime.BaseAPI {
88
91
  headers: headerParameters,
89
92
  query: queryParameters,
90
93
  }, initOverrides);
91
- return new runtime.VoidApiResponse(response);
94
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ChunkOrderResponseFromJSON)(jsonValue));
92
95
  });
93
96
  }
94
97
  /**
95
- * Cancel orders by event and/or market
98
+ * Cancel orders owned by the caller by event and/or market; skips invalid markets/orders
96
99
  */
97
100
  cancelOrders(requestParameters, initOverrides) {
98
101
  return __awaiter(this, void 0, void 0, function* () {
99
- yield this.cancelOrdersRaw(requestParameters, initOverrides);
102
+ const response = yield this.cancelOrdersRaw(requestParameters, initOverrides);
103
+ return yield response.value();
100
104
  });
101
105
  }
102
106
  /**
@@ -193,8 +197,8 @@ class OrdersApi extends runtime.BaseAPI {
193
197
  if (requestParameters['references'] != null) {
194
198
  queryParameters['references'] = requestParameters['references'];
195
199
  }
196
- if (requestParameters['status'] != null) {
197
- queryParameters['status'] = requestParameters['status'];
200
+ if (requestParameters['statuses'] != null) {
201
+ queryParameters['statuses'] = requestParameters['statuses'];
198
202
  }
199
203
  if (requestParameters['fromStake'] != null) {
200
204
  queryParameters['fromStake'] = requestParameters['fromStake'];
@@ -211,6 +215,12 @@ class OrdersApi extends runtime.BaseAPI {
211
215
  if (requestParameters['page'] != null) {
212
216
  queryParameters['page'] = requestParameters['page'];
213
217
  }
218
+ if (requestParameters['size'] != null) {
219
+ queryParameters['size'] = requestParameters['size'];
220
+ }
221
+ if (requestParameters['sort'] != null) {
222
+ queryParameters['sort'] = requestParameters['sort'];
223
+ }
214
224
  const headerParameters = {};
215
225
  if (requestParameters['authorization'] != null) {
216
226
  headerParameters['authorization'] = String(requestParameters['authorization']);
@@ -248,6 +258,12 @@ class OrdersApi extends runtime.BaseAPI {
248
258
  if (requestParameters['page'] != null) {
249
259
  queryParameters['page'] = requestParameters['page'];
250
260
  }
261
+ if (requestParameters['size'] != null) {
262
+ queryParameters['size'] = requestParameters['size'];
263
+ }
264
+ if (requestParameters['sort'] != null) {
265
+ queryParameters['sort'] = requestParameters['sort'];
266
+ }
251
267
  const headerParameters = {};
252
268
  if (requestParameters['authorization'] != null) {
253
269
  headerParameters['authorization'] = String(requestParameters['authorization']);
@@ -275,7 +291,7 @@ exports.OrdersApi = OrdersApi;
275
291
  /**
276
292
  * @export
277
293
  */
278
- exports.GetOrdersStatusEnum = {
294
+ exports.GetOrdersStatusesEnum = {
279
295
  Cancelled: 'Cancelled',
280
296
  Matched: 'Matched',
281
297
  PartiallyMatched: 'PartiallyMatched',
@@ -11,10 +11,10 @@
11
11
  */
12
12
  import * as runtime from '../runtime';
13
13
  import type { CreateSessionRequest, RefreshSessionRequest, SessionResponse } from '../models/index';
14
- export interface Create1Request {
14
+ export interface CreateSessionOperationRequest {
15
15
  createSessionRequest: CreateSessionRequest;
16
16
  }
17
- export interface RefreshRequest {
17
+ export interface RefreshSessionOperationRequest {
18
18
  refreshSessionRequest: RefreshSessionRequest;
19
19
  }
20
20
  /**
@@ -22,19 +22,19 @@ export interface RefreshRequest {
22
22
  */
23
23
  export declare class SessionManagementApi extends runtime.BaseAPI {
24
24
  /**
25
- * Create session for a given crededntials
25
+ * Create session for a given credentials
26
26
  */
27
- create1Raw(requestParameters: Create1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SessionResponse>>;
27
+ createSessionRaw(requestParameters: CreateSessionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SessionResponse>>;
28
28
  /**
29
- * Create session for a given crededntials
29
+ * Create session for a given credentials
30
30
  */
31
- create1(requestParameters: Create1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SessionResponse>;
31
+ createSession(requestParameters: CreateSessionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SessionResponse>;
32
32
  /**
33
- * Refresh session for a given tokend
33
+ * Refresh session for a given token
34
34
  */
35
- refreshRaw(requestParameters: RefreshRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SessionResponse>>;
35
+ refreshSessionRaw(requestParameters: RefreshSessionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SessionResponse>>;
36
36
  /**
37
- * Refresh session for a given tokend
37
+ * Refresh session for a given token
38
38
  */
39
- refresh(requestParameters: RefreshRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SessionResponse>;
39
+ refreshSession(requestParameters: RefreshSessionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SessionResponse>;
40
40
  }
@@ -30,12 +30,12 @@ const index_1 = require("../models/index");
30
30
  */
31
31
  class SessionManagementApi extends runtime.BaseAPI {
32
32
  /**
33
- * Create session for a given crededntials
33
+ * Create session for a given credentials
34
34
  */
35
- create1Raw(requestParameters, initOverrides) {
35
+ createSessionRaw(requestParameters, initOverrides) {
36
36
  return __awaiter(this, void 0, void 0, function* () {
37
37
  if (requestParameters['createSessionRequest'] == null) {
38
- throw new runtime.RequiredError('createSessionRequest', 'Required parameter "createSessionRequest" was null or undefined when calling create1().');
38
+ throw new runtime.RequiredError('createSessionRequest', 'Required parameter "createSessionRequest" was null or undefined when calling createSession().');
39
39
  }
40
40
  const queryParameters = {};
41
41
  const headerParameters = {};
@@ -51,21 +51,21 @@ class SessionManagementApi extends runtime.BaseAPI {
51
51
  });
52
52
  }
53
53
  /**
54
- * Create session for a given crededntials
54
+ * Create session for a given credentials
55
55
  */
56
- create1(requestParameters, initOverrides) {
56
+ createSession(requestParameters, initOverrides) {
57
57
  return __awaiter(this, void 0, void 0, function* () {
58
- const response = yield this.create1Raw(requestParameters, initOverrides);
58
+ const response = yield this.createSessionRaw(requestParameters, initOverrides);
59
59
  return yield response.value();
60
60
  });
61
61
  }
62
62
  /**
63
- * Refresh session for a given tokend
63
+ * Refresh session for a given token
64
64
  */
65
- refreshRaw(requestParameters, initOverrides) {
65
+ refreshSessionRaw(requestParameters, initOverrides) {
66
66
  return __awaiter(this, void 0, void 0, function* () {
67
67
  if (requestParameters['refreshSessionRequest'] == null) {
68
- throw new runtime.RequiredError('refreshSessionRequest', 'Required parameter "refreshSessionRequest" was null or undefined when calling refresh().');
68
+ throw new runtime.RequiredError('refreshSessionRequest', 'Required parameter "refreshSessionRequest" was null or undefined when calling refreshSession().');
69
69
  }
70
70
  const queryParameters = {};
71
71
  const headerParameters = {};
@@ -81,11 +81,11 @@ class SessionManagementApi extends runtime.BaseAPI {
81
81
  });
82
82
  }
83
83
  /**
84
- * Refresh session for a given tokend
84
+ * Refresh session for a given token
85
85
  */
86
- refresh(requestParameters, initOverrides) {
86
+ refreshSession(requestParameters, initOverrides) {
87
87
  return __awaiter(this, void 0, void 0, function* () {
88
- const response = yield this.refreshRaw(requestParameters, initOverrides);
88
+ const response = yield this.refreshSessionRaw(requestParameters, initOverrides);
89
89
  return yield response.value();
90
90
  });
91
91
  }
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { PageRequest, PagedTradeResponse, TradeResponse } from '../models/index';
13
+ import type { PagedTradeResponse, TradeResponse } from '../models/index';
14
14
  export interface GetTradeRequest {
15
15
  authorization: string;
16
16
  id: string;
@@ -20,7 +20,9 @@ export interface GetTradesRequest {
20
20
  marketIds?: Array<string>;
21
21
  walletIds?: Array<string>;
22
22
  orderIds?: Array<string>;
23
- page?: PageRequest;
23
+ page?: number;
24
+ size?: number;
25
+ sort?: Array<string>;
24
26
  }
25
27
  /**
26
28
  *
@@ -84,6 +84,12 @@ class TradesApi extends runtime.BaseAPI {
84
84
  if (requestParameters['page'] != null) {
85
85
  queryParameters['page'] = requestParameters['page'];
86
86
  }
87
+ if (requestParameters['size'] != null) {
88
+ queryParameters['size'] = requestParameters['size'];
89
+ }
90
+ if (requestParameters['sort'] != null) {
91
+ queryParameters['sort'] = requestParameters['sort'];
92
+ }
87
93
  const headerParameters = {};
88
94
  if (requestParameters['authorization'] != null) {
89
95
  headerParameters['authorization'] = String(requestParameters['authorization']);
@@ -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, PageRequest, PagedTransactionResponse, TransferResponse, WalletResponse } from '../models/index';
13
+ import type { CreateWalletRequest, PagedTransactionResponse, TransferResponse, WalletResponse } from '../models/index';
14
14
  export interface CreateWalletOperationRequest {
15
15
  authorization: string;
16
16
  createWalletRequest: CreateWalletRequest;
@@ -23,7 +23,9 @@ export interface CreditWalletRequest {
23
23
  export interface FetchWalletsRequest {
24
24
  authorization: string;
25
25
  walletFilter?: Array<string>;
26
- page?: PageRequest;
26
+ page?: number;
27
+ size?: number;
28
+ sort?: Array<string>;
27
29
  }
28
30
  export interface GetWalletRequest {
29
31
  authorization: string;
@@ -32,7 +34,9 @@ export interface GetWalletRequest {
32
34
  export interface GetWalletTransactionsRequest {
33
35
  authorization: string;
34
36
  id: string;
35
- page?: PageRequest;
37
+ page?: number;
38
+ size?: number;
39
+ sort?: Array<string>;
36
40
  }
37
41
  export interface WalletWithdrawRequest {
38
42
  authorization: string;
@@ -126,6 +126,12 @@ class WalletsApi extends runtime.BaseAPI {
126
126
  if (requestParameters['page'] != null) {
127
127
  queryParameters['page'] = requestParameters['page'];
128
128
  }
129
+ if (requestParameters['size'] != null) {
130
+ queryParameters['size'] = requestParameters['size'];
131
+ }
132
+ if (requestParameters['sort'] != null) {
133
+ queryParameters['sort'] = requestParameters['sort'];
134
+ }
129
135
  const headerParameters = {};
130
136
  if (requestParameters['authorization'] != null) {
131
137
  headerParameters['authorization'] = String(requestParameters['authorization']);
@@ -200,6 +206,12 @@ class WalletsApi extends runtime.BaseAPI {
200
206
  if (requestParameters['page'] != null) {
201
207
  queryParameters['page'] = requestParameters['page'];
202
208
  }
209
+ if (requestParameters['size'] != null) {
210
+ queryParameters['size'] = requestParameters['size'];
211
+ }
212
+ if (requestParameters['sort'] != null) {
213
+ queryParameters['sort'] = requestParameters['sort'];
214
+ }
203
215
  const headerParameters = {};
204
216
  if (requestParameters['authorization'] != null) {
205
217
  headerParameters['authorization'] = String(requestParameters['authorization']);
@@ -5,6 +5,7 @@ export * from './EventCategoriesApi';
5
5
  export * from './EventGroupsApi';
6
6
  export * from './EventSubcategoriesApi';
7
7
  export * from './EventsApi';
8
+ export * from './MarketPricesApi';
8
9
  export * from './MarketTypesApi';
9
10
  export * from './MarketsApi';
10
11
  export * from './OrdersApi';
@@ -23,6 +23,7 @@ __exportStar(require("./EventCategoriesApi"), exports);
23
23
  __exportStar(require("./EventGroupsApi"), exports);
24
24
  __exportStar(require("./EventSubcategoriesApi"), exports);
25
25
  __exportStar(require("./EventsApi"), exports);
26
+ __exportStar(require("./MarketPricesApi"), exports);
26
27
  __exportStar(require("./MarketTypesApi"), exports);
27
28
  __exportStar(require("./MarketsApi"), exports);
28
29
  __exportStar(require("./OrdersApi"), exports);
@@ -22,7 +22,7 @@ export interface APIKeyResponse {
22
22
  * @type {Meta}
23
23
  * @memberof APIKeyResponse
24
24
  */
25
- getMeta?: Meta;
25
+ meta?: Meta;
26
26
  /**
27
27
  *
28
28
  * @type {Array<APIKey>}
@@ -34,7 +34,7 @@ function APIKeyResponseFromJSONTyped(json, ignoreDiscriminator) {
34
34
  return json;
35
35
  }
36
36
  return {
37
- 'getMeta': json['get_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['get_meta']),
37
+ 'meta': json['_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['_meta']),
38
38
  'apiKeys': json['apiKeys'] == null ? undefined : (json['apiKeys'].map(APIKey_1.APIKeyFromJSON)),
39
39
  };
40
40
  }
@@ -46,7 +46,7 @@ function APIKeyResponseToJSONTyped(value, ignoreDiscriminator = false) {
46
46
  return value;
47
47
  }
48
48
  return {
49
- 'get_meta': (0, Meta_1.MetaToJSON)(value['getMeta']),
49
+ '_meta': (0, Meta_1.MetaToJSON)(value['meta']),
50
50
  'apiKeys': value['apiKeys'] == null ? undefined : (value['apiKeys'].map(APIKey_1.APIKeyToJSON)),
51
51
  };
52
52
  }
@@ -0,0 +1,52 @@
1
+ /**
2
+ * Monaco API
3
+ * A RESTful API that allows you to interact with the Monaco Exchange. Provides endpoints for managing Events, Markets, Sessions, Wallets and Orders. To interact with the API, a client must have an App Id and an API Key to authenticate and create a session.
4
+ *
5
+ * The version of the OpenAPI document: 0.1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface AddParticipantRequest
16
+ */
17
+ export interface AddParticipantRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AddParticipantRequest
22
+ */
23
+ code?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof AddParticipantRequest
28
+ */
29
+ name?: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof AddParticipantRequest
34
+ */
35
+ type?: AddParticipantRequestTypeEnum;
36
+ }
37
+ /**
38
+ * @export
39
+ */
40
+ export declare const AddParticipantRequestTypeEnum: {
41
+ readonly Individual: "Individual";
42
+ readonly Team: "Team";
43
+ };
44
+ export type AddParticipantRequestTypeEnum = typeof AddParticipantRequestTypeEnum[keyof typeof AddParticipantRequestTypeEnum];
45
+ /**
46
+ * Check if a given object implements the AddParticipantRequest interface.
47
+ */
48
+ export declare function instanceOfAddParticipantRequest(value: object): value is AddParticipantRequest;
49
+ export declare function AddParticipantRequestFromJSON(json: any): AddParticipantRequest;
50
+ export declare function AddParticipantRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddParticipantRequest;
51
+ export declare function AddParticipantRequestToJSON(json: any): AddParticipantRequest;
52
+ export declare function AddParticipantRequestToJSONTyped(value?: AddParticipantRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Monaco API
6
+ * A RESTful API that allows you to interact with the Monaco Exchange. Provides endpoints for managing Events, Markets, Sessions, Wallets and Orders. To interact with the API, a client must have an App Id and an API Key to authenticate and create a session.
7
+ *
8
+ * The version of the OpenAPI document: 0.1
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.AddParticipantRequestTypeEnum = void 0;
17
+ exports.instanceOfAddParticipantRequest = instanceOfAddParticipantRequest;
18
+ exports.AddParticipantRequestFromJSON = AddParticipantRequestFromJSON;
19
+ exports.AddParticipantRequestFromJSONTyped = AddParticipantRequestFromJSONTyped;
20
+ exports.AddParticipantRequestToJSON = AddParticipantRequestToJSON;
21
+ exports.AddParticipantRequestToJSONTyped = AddParticipantRequestToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.AddParticipantRequestTypeEnum = {
26
+ Individual: 'Individual',
27
+ Team: 'Team'
28
+ };
29
+ /**
30
+ * Check if a given object implements the AddParticipantRequest interface.
31
+ */
32
+ function instanceOfAddParticipantRequest(value) {
33
+ return true;
34
+ }
35
+ function AddParticipantRequestFromJSON(json) {
36
+ return AddParticipantRequestFromJSONTyped(json, false);
37
+ }
38
+ function AddParticipantRequestFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'code': json['code'] == null ? undefined : json['code'],
44
+ 'name': json['name'] == null ? undefined : json['name'],
45
+ 'type': json['type'] == null ? undefined : json['type'],
46
+ };
47
+ }
48
+ function AddParticipantRequestToJSON(json) {
49
+ return AddParticipantRequestToJSONTyped(json, false);
50
+ }
51
+ function AddParticipantRequestToJSONTyped(value, ignoreDiscriminator = false) {
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ 'code': value['code'],
57
+ 'name': value['name'],
58
+ 'type': value['type'],
59
+ };
60
+ }
@@ -0,0 +1,33 @@
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 { AddParticipantRequest } from './AddParticipantRequest';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AddParticipantsRequest
17
+ */
18
+ export interface AddParticipantsRequest {
19
+ /**
20
+ *
21
+ * @type {Array<AddParticipantRequest>}
22
+ * @memberof AddParticipantsRequest
23
+ */
24
+ participants?: Array<AddParticipantRequest>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the AddParticipantsRequest interface.
28
+ */
29
+ export declare function instanceOfAddParticipantsRequest(value: object): value is AddParticipantsRequest;
30
+ export declare function AddParticipantsRequestFromJSON(json: any): AddParticipantsRequest;
31
+ export declare function AddParticipantsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddParticipantsRequest;
32
+ export declare function AddParticipantsRequestToJSON(json: any): AddParticipantsRequest;
33
+ export declare function AddParticipantsRequestToJSONTyped(value?: AddParticipantsRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,49 @@
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.instanceOfAddParticipantsRequest = instanceOfAddParticipantsRequest;
17
+ exports.AddParticipantsRequestFromJSON = AddParticipantsRequestFromJSON;
18
+ exports.AddParticipantsRequestFromJSONTyped = AddParticipantsRequestFromJSONTyped;
19
+ exports.AddParticipantsRequestToJSON = AddParticipantsRequestToJSON;
20
+ exports.AddParticipantsRequestToJSONTyped = AddParticipantsRequestToJSONTyped;
21
+ const AddParticipantRequest_1 = require("./AddParticipantRequest");
22
+ /**
23
+ * Check if a given object implements the AddParticipantsRequest interface.
24
+ */
25
+ function instanceOfAddParticipantsRequest(value) {
26
+ return true;
27
+ }
28
+ function AddParticipantsRequestFromJSON(json) {
29
+ return AddParticipantsRequestFromJSONTyped(json, false);
30
+ }
31
+ function AddParticipantsRequestFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'participants': json['participants'] == null ? undefined : (json['participants'].map(AddParticipantRequest_1.AddParticipantRequestFromJSON)),
37
+ };
38
+ }
39
+ function AddParticipantsRequestToJSON(json) {
40
+ return AddParticipantsRequestToJSONTyped(json, false);
41
+ }
42
+ function AddParticipantsRequestToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'participants': value['participants'] == null ? undefined : (value['participants'].map(AddParticipantRequest_1.AddParticipantRequestToJSON)),
48
+ };
49
+ }
@@ -23,7 +23,7 @@ export interface AppResponse {
23
23
  * @type {Meta}
24
24
  * @memberof AppResponse
25
25
  */
26
- getMeta?: Meta;
26
+ meta?: Meta;
27
27
  /**
28
28
  *
29
29
  * @type {Array<App>}
@@ -35,7 +35,7 @@ function AppResponseFromJSONTyped(json, ignoreDiscriminator) {
35
35
  return json;
36
36
  }
37
37
  return {
38
- 'getMeta': json['get_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['get_meta']),
38
+ 'meta': json['_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['_meta']),
39
39
  'apps': json['apps'] == null ? undefined : (json['apps'].map(App_1.AppFromJSON)),
40
40
  'commissionRates': json['commissionRates'] == null ? undefined : (json['commissionRates'].map(CommissionRate_1.CommissionRateFromJSON)),
41
41
  };
@@ -48,7 +48,7 @@ function AppResponseToJSONTyped(value, ignoreDiscriminator = false) {
48
48
  return value;
49
49
  }
50
50
  return {
51
- 'get_meta': (0, Meta_1.MetaToJSON)(value['getMeta']),
51
+ '_meta': (0, Meta_1.MetaToJSON)(value['meta']),
52
52
  'apps': value['apps'] == null ? undefined : (value['apps'].map(App_1.AppToJSON)),
53
53
  'commissionRates': value['commissionRates'] == null ? undefined : (value['commissionRates'].map(CommissionRate_1.CommissionRateToJSON)),
54
54
  };
@@ -22,7 +22,7 @@ export interface AppStatusResponse {
22
22
  * @type {Meta}
23
23
  * @memberof AppStatusResponse
24
24
  */
25
- getMeta?: Meta;
25
+ meta?: Meta;
26
26
  /**
27
27
  *
28
28
  * @type {Array<AppStatus>}