@monaco-protocol/client-v2 0.0.90 → 0.0.95

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.
@@ -10,11 +10,16 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { CreateEventGroupRequest, EventGroupResponse } from '../models/index';
13
+ import type { CreateEventGroupRequest, EventGroupResponse, UpdateReferencesRequest } from '../models/index';
14
14
  export interface EventGroupsApiCreateEventGroupOperationRequest {
15
15
  authorization: string;
16
16
  createEventGroupRequest: CreateEventGroupRequest;
17
17
  }
18
+ export interface EventGroupsApiDeleteReference4Request {
19
+ authorization: string;
20
+ id: string;
21
+ updateReferencesRequest: UpdateReferencesRequest;
22
+ }
18
23
  export interface EventGroupsApiGetAllEventGroupsRequest {
19
24
  authorization: string;
20
25
  subcategoryIds?: Set<string>;
@@ -28,6 +33,11 @@ export interface EventGroupsApiGetEventGroupByIdRequest {
28
33
  authorization: string;
29
34
  id: string;
30
35
  }
36
+ export interface EventGroupsApiUpdateReference4Request {
37
+ authorization: string;
38
+ id: string;
39
+ updateReferencesRequest: UpdateReferencesRequest;
40
+ }
31
41
  /**
32
42
  *
33
43
  */
@@ -40,6 +50,14 @@ export declare class EventGroupsApi extends runtime.BaseAPI {
40
50
  * Create event group
41
51
  */
42
52
  createEventGroup(requestParameters: EventGroupsApiCreateEventGroupOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EventGroupResponse>;
53
+ /**
54
+ * Delete event group external reference
55
+ */
56
+ deleteReference4Raw(requestParameters: EventGroupsApiDeleteReference4Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EventGroupResponse>>;
57
+ /**
58
+ * Delete event group external reference
59
+ */
60
+ deleteReference4(requestParameters: EventGroupsApiDeleteReference4Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EventGroupResponse>;
43
61
  /**
44
62
  * Fetch all event groups
45
63
  */
@@ -64,4 +82,12 @@ export declare class EventGroupsApi extends runtime.BaseAPI {
64
82
  * Fetch event group by id
65
83
  */
66
84
  getEventGroupById(requestParameters: EventGroupsApiGetEventGroupByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EventGroupResponse>;
85
+ /**
86
+ * Update event group external reference
87
+ */
88
+ updateReference4Raw(requestParameters: EventGroupsApiUpdateReference4Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EventGroupResponse>>;
89
+ /**
90
+ * Update event group external reference
91
+ */
92
+ updateReference4(requestParameters: EventGroupsApiUpdateReference4Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EventGroupResponse>;
67
93
  }
@@ -65,6 +65,45 @@ class EventGroupsApi extends runtime.BaseAPI {
65
65
  return yield response.value();
66
66
  });
67
67
  }
68
+ /**
69
+ * Delete event group external reference
70
+ */
71
+ deleteReference4Raw(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 deleteReference4().');
75
+ }
76
+ if (requestParameters['id'] == null) {
77
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteReference4().');
78
+ }
79
+ if (requestParameters['updateReferencesRequest'] == null) {
80
+ throw new runtime.RequiredError('updateReferencesRequest', 'Required parameter "updateReferencesRequest" was null or undefined when calling deleteReference4().');
81
+ }
82
+ const queryParameters = {};
83
+ const headerParameters = {};
84
+ headerParameters['Content-Type'] = 'application/json';
85
+ if (requestParameters['authorization'] != null) {
86
+ headerParameters['authorization'] = String(requestParameters['authorization']);
87
+ }
88
+ const response = yield this.request({
89
+ path: `/event-groups/{id}/references`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
90
+ method: 'DELETE',
91
+ headers: headerParameters,
92
+ query: queryParameters,
93
+ body: (0, index_1.UpdateReferencesRequestToJSON)(requestParameters['updateReferencesRequest']),
94
+ }, initOverrides);
95
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.EventGroupResponseFromJSON)(jsonValue));
96
+ });
97
+ }
98
+ /**
99
+ * Delete event group external reference
100
+ */
101
+ deleteReference4(requestParameters, initOverrides) {
102
+ return __awaiter(this, void 0, void 0, function* () {
103
+ const response = yield this.deleteReference4Raw(requestParameters, initOverrides);
104
+ return yield response.value();
105
+ });
106
+ }
68
107
  /**
69
108
  * Fetch all event groups
70
109
  */
@@ -170,5 +209,44 @@ class EventGroupsApi extends runtime.BaseAPI {
170
209
  return yield response.value();
171
210
  });
172
211
  }
212
+ /**
213
+ * Update event group external reference
214
+ */
215
+ updateReference4Raw(requestParameters, initOverrides) {
216
+ return __awaiter(this, void 0, void 0, function* () {
217
+ if (requestParameters['authorization'] == null) {
218
+ throw new runtime.RequiredError('authorization', 'Required parameter "authorization" was null or undefined when calling updateReference4().');
219
+ }
220
+ if (requestParameters['id'] == null) {
221
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateReference4().');
222
+ }
223
+ if (requestParameters['updateReferencesRequest'] == null) {
224
+ throw new runtime.RequiredError('updateReferencesRequest', 'Required parameter "updateReferencesRequest" was null or undefined when calling updateReference4().');
225
+ }
226
+ const queryParameters = {};
227
+ const headerParameters = {};
228
+ headerParameters['Content-Type'] = 'application/json';
229
+ if (requestParameters['authorization'] != null) {
230
+ headerParameters['authorization'] = String(requestParameters['authorization']);
231
+ }
232
+ const response = yield this.request({
233
+ path: `/event-groups/{id}/references`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
234
+ method: 'POST',
235
+ headers: headerParameters,
236
+ query: queryParameters,
237
+ body: (0, index_1.UpdateReferencesRequestToJSON)(requestParameters['updateReferencesRequest']),
238
+ }, initOverrides);
239
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.EventGroupResponseFromJSON)(jsonValue));
240
+ });
241
+ }
242
+ /**
243
+ * Update event group external reference
244
+ */
245
+ updateReference4(requestParameters, initOverrides) {
246
+ return __awaiter(this, void 0, void 0, function* () {
247
+ const response = yield this.updateReference4Raw(requestParameters, initOverrides);
248
+ return yield response.value();
249
+ });
250
+ }
173
251
  }
174
252
  exports.EventGroupsApi = EventGroupsApi;
@@ -10,7 +10,7 @@
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, IDResponse, OrderResponse, PagedOrderResponse, TradeResponse } from '../models/index';
13
+ import type { BatchCancelOrdersRequest, BatchCreateOrderRequest, BatchIDResponse, BatchOrderResponse, ChunkOrderResponse, CreateOrderRequest, IDResponse, OrderResponse, PagedOrderResponse, TradeResponse } from '../models/index';
14
14
  export interface OrdersApiCancelOrderRequest {
15
15
  authorization: string;
16
16
  id: string;
@@ -35,6 +35,14 @@ export interface OrdersApiCreateOrderOperationRequest {
35
35
  authorization: string;
36
36
  createOrderRequest: CreateOrderRequest;
37
37
  }
38
+ export interface OrdersApiCreateOrderRequestRequest {
39
+ authorization: string;
40
+ createOrderRequest: CreateOrderRequest;
41
+ }
42
+ export interface OrdersApiCreateOrderRequestsRequest {
43
+ authorization: string;
44
+ batchCreateOrderRequest: BatchCreateOrderRequest;
45
+ }
38
46
  export interface OrdersApiCreateOrdersRequest {
39
47
  authorization: string;
40
48
  batchCreateOrderRequest: BatchCreateOrderRequest;
@@ -129,6 +137,22 @@ export declare class OrdersApi extends runtime.BaseAPI {
129
137
  * Create order
130
138
  */
131
139
  createOrder(requestParameters: OrdersApiCreateOrderOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrderResponse>;
140
+ /**
141
+ * (Coming soon) Submit a request to create an order and get back an acknowledgement response containing the order\'s ID immediately. An order with a status of Pending will be created immediately in order to generate an ID; Any in-play/BIR delay, as well as initial matching will be performed asynchronously. Updates about orders created via this method maybe found as OrderUpdate messages through the StreamAPI and/or by calling GET /orders/{id} with the returned ID
142
+ */
143
+ createOrderRequestRaw(requestParameters: OrdersApiCreateOrderRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IDResponse>>;
144
+ /**
145
+ * (Coming soon) Submit a request to create an order and get back an acknowledgement response containing the order\'s ID immediately. An order with a status of Pending will be created immediately in order to generate an ID; Any in-play/BIR delay, as well as initial matching will be performed asynchronously. Updates about orders created via this method maybe found as OrderUpdate messages through the StreamAPI and/or by calling GET /orders/{id} with the returned ID
146
+ */
147
+ createOrderRequest(requestParameters: OrdersApiCreateOrderRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IDResponse>;
148
+ /**
149
+ * (Coming soon) Submit a request to create multiple orders and get back an acknowledgement response containing the orders\' ID\'s immediately. Orders with status of Pending will be created immediately in order to generate IDs; Any in-play/BIR delay, as well as initial matching will be performed asynchronously. The order IDs, and/or any errors, will be ordered in the response in the same order as in the request. Updates about orders created via this method maybe found as OrderUpdate messages through the StreamAPI and/or by calling GET /orders/{id} with the returned IDs
150
+ */
151
+ createOrderRequestsRaw(requestParameters: OrdersApiCreateOrderRequestsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BatchIDResponse>>;
152
+ /**
153
+ * (Coming soon) Submit a request to create multiple orders and get back an acknowledgement response containing the orders\' ID\'s immediately. Orders with status of Pending will be created immediately in order to generate IDs; Any in-play/BIR delay, as well as initial matching will be performed asynchronously. The order IDs, and/or any errors, will be ordered in the response in the same order as in the request. Updates about orders created via this method maybe found as OrderUpdate messages through the StreamAPI and/or by calling GET /orders/{id} with the returned IDs
154
+ */
155
+ createOrderRequests(requestParameters: OrdersApiCreateOrderRequestsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BatchIDResponse>;
132
156
  /**
133
157
  * Create multiple orders
134
158
  */
@@ -162,11 +186,11 @@ export declare class OrdersApi extends runtime.BaseAPI {
162
186
  */
163
187
  getOrders(requestParameters: OrdersApiGetOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PagedOrderResponse>;
164
188
  /**
165
- * Fetch orders settled in date range, filtered by wallet (settled orders are those of status \'Won\', \'Lost\', or \'Voided\'). Page size limit 500.
189
+ * Fetch orders settled in date range, filtered by wallet (settled orders are those of status \'Won\', \'Lost\', or \'Voided\'). Page size limit 500, max date range is 10 days.
166
190
  */
167
191
  getOrdersSettledBetweenRaw(requestParameters: OrdersApiGetOrdersSettledBetweenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PagedOrderResponse>>;
168
192
  /**
169
- * Fetch orders settled in date range, filtered by wallet (settled orders are those of status \'Won\', \'Lost\', or \'Voided\'). Page size limit 500.
193
+ * Fetch orders settled in date range, filtered by wallet (settled orders are those of status \'Won\', \'Lost\', or \'Voided\'). Page size limit 500, max date range is 10 days.
170
194
  */
171
195
  getOrdersSettledBetween(requestParameters: OrdersApiGetOrdersSettledBetweenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PagedOrderResponse>;
172
196
  /**
@@ -183,8 +207,10 @@ export declare class OrdersApi extends runtime.BaseAPI {
183
207
  */
184
208
  export declare const GetOrdersStatusesEnum: {
185
209
  readonly Cancelled: "Cancelled";
210
+ readonly Failed: "Failed";
186
211
  readonly Matched: "Matched";
187
212
  readonly PartiallyMatched: "PartiallyMatched";
213
+ readonly Pending: "Pending";
188
214
  readonly Unmatched: "Unmatched";
189
215
  readonly Won: "Won";
190
216
  readonly Lost: "Lost";
@@ -218,6 +218,78 @@ class OrdersApi extends runtime.BaseAPI {
218
218
  return yield response.value();
219
219
  });
220
220
  }
221
+ /**
222
+ * (Coming soon) Submit a request to create an order and get back an acknowledgement response containing the order\'s ID immediately. An order with a status of Pending will be created immediately in order to generate an ID; Any in-play/BIR delay, as well as initial matching will be performed asynchronously. Updates about orders created via this method maybe found as OrderUpdate messages through the StreamAPI and/or by calling GET /orders/{id} with the returned ID
223
+ */
224
+ createOrderRequestRaw(requestParameters, initOverrides) {
225
+ return __awaiter(this, void 0, void 0, function* () {
226
+ if (requestParameters['authorization'] == null) {
227
+ throw new runtime.RequiredError('authorization', 'Required parameter "authorization" was null or undefined when calling createOrderRequest().');
228
+ }
229
+ if (requestParameters['createOrderRequest'] == null) {
230
+ throw new runtime.RequiredError('createOrderRequest', 'Required parameter "createOrderRequest" was null or undefined when calling createOrderRequest().');
231
+ }
232
+ const queryParameters = {};
233
+ const headerParameters = {};
234
+ headerParameters['Content-Type'] = 'application/json';
235
+ if (requestParameters['authorization'] != null) {
236
+ headerParameters['authorization'] = String(requestParameters['authorization']);
237
+ }
238
+ const response = yield this.request({
239
+ path: `/order-requests`,
240
+ method: 'POST',
241
+ headers: headerParameters,
242
+ query: queryParameters,
243
+ body: (0, index_1.CreateOrderRequestToJSON)(requestParameters['createOrderRequest']),
244
+ }, initOverrides);
245
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.IDResponseFromJSON)(jsonValue));
246
+ });
247
+ }
248
+ /**
249
+ * (Coming soon) Submit a request to create an order and get back an acknowledgement response containing the order\'s ID immediately. An order with a status of Pending will be created immediately in order to generate an ID; Any in-play/BIR delay, as well as initial matching will be performed asynchronously. Updates about orders created via this method maybe found as OrderUpdate messages through the StreamAPI and/or by calling GET /orders/{id} with the returned ID
250
+ */
251
+ createOrderRequest(requestParameters, initOverrides) {
252
+ return __awaiter(this, void 0, void 0, function* () {
253
+ const response = yield this.createOrderRequestRaw(requestParameters, initOverrides);
254
+ return yield response.value();
255
+ });
256
+ }
257
+ /**
258
+ * (Coming soon) Submit a request to create multiple orders and get back an acknowledgement response containing the orders\' ID\'s immediately. Orders with status of Pending will be created immediately in order to generate IDs; Any in-play/BIR delay, as well as initial matching will be performed asynchronously. The order IDs, and/or any errors, will be ordered in the response in the same order as in the request. Updates about orders created via this method maybe found as OrderUpdate messages through the StreamAPI and/or by calling GET /orders/{id} with the returned IDs
259
+ */
260
+ createOrderRequestsRaw(requestParameters, initOverrides) {
261
+ return __awaiter(this, void 0, void 0, function* () {
262
+ if (requestParameters['authorization'] == null) {
263
+ throw new runtime.RequiredError('authorization', 'Required parameter "authorization" was null or undefined when calling createOrderRequests().');
264
+ }
265
+ if (requestParameters['batchCreateOrderRequest'] == null) {
266
+ throw new runtime.RequiredError('batchCreateOrderRequest', 'Required parameter "batchCreateOrderRequest" was null or undefined when calling createOrderRequests().');
267
+ }
268
+ const queryParameters = {};
269
+ const headerParameters = {};
270
+ headerParameters['Content-Type'] = 'application/json';
271
+ if (requestParameters['authorization'] != null) {
272
+ headerParameters['authorization'] = String(requestParameters['authorization']);
273
+ }
274
+ const response = yield this.request({
275
+ path: `/order-requests/batch`,
276
+ method: 'POST',
277
+ headers: headerParameters,
278
+ query: queryParameters,
279
+ body: (0, index_1.BatchCreateOrderRequestToJSON)(requestParameters['batchCreateOrderRequest']),
280
+ }, initOverrides);
281
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.BatchIDResponseFromJSON)(jsonValue));
282
+ });
283
+ }
284
+ /**
285
+ * (Coming soon) Submit a request to create multiple orders and get back an acknowledgement response containing the orders\' ID\'s immediately. Orders with status of Pending will be created immediately in order to generate IDs; Any in-play/BIR delay, as well as initial matching will be performed asynchronously. The order IDs, and/or any errors, will be ordered in the response in the same order as in the request. Updates about orders created via this method maybe found as OrderUpdate messages through the StreamAPI and/or by calling GET /orders/{id} with the returned IDs
286
+ */
287
+ createOrderRequests(requestParameters, initOverrides) {
288
+ return __awaiter(this, void 0, void 0, function* () {
289
+ const response = yield this.createOrderRequestsRaw(requestParameters, initOverrides);
290
+ return yield response.value();
291
+ });
292
+ }
221
293
  /**
222
294
  * Create multiple orders
223
295
  */
@@ -399,7 +471,7 @@ class OrdersApi extends runtime.BaseAPI {
399
471
  });
400
472
  }
401
473
  /**
402
- * Fetch orders settled in date range, filtered by wallet (settled orders are those of status \'Won\', \'Lost\', or \'Voided\'). Page size limit 500.
474
+ * Fetch orders settled in date range, filtered by wallet (settled orders are those of status \'Won\', \'Lost\', or \'Voided\'). Page size limit 500, max date range is 10 days.
403
475
  */
404
476
  getOrdersSettledBetweenRaw(requestParameters, initOverrides) {
405
477
  return __awaiter(this, void 0, void 0, function* () {
@@ -445,7 +517,7 @@ class OrdersApi extends runtime.BaseAPI {
445
517
  });
446
518
  }
447
519
  /**
448
- * Fetch orders settled in date range, filtered by wallet (settled orders are those of status \'Won\', \'Lost\', or \'Voided\'). Page size limit 500.
520
+ * Fetch orders settled in date range, filtered by wallet (settled orders are those of status \'Won\', \'Lost\', or \'Voided\'). Page size limit 500, max date range is 10 days.
449
521
  */
450
522
  getOrdersSettledBetween(requestParameters, initOverrides) {
451
523
  return __awaiter(this, void 0, void 0, function* () {
@@ -503,8 +575,10 @@ exports.OrdersApi = OrdersApi;
503
575
  */
504
576
  exports.GetOrdersStatusesEnum = {
505
577
  Cancelled: 'Cancelled',
578
+ Failed: 'Failed',
506
579
  Matched: 'Matched',
507
580
  PartiallyMatched: 'PartiallyMatched',
581
+ Pending: 'Pending',
508
582
  Unmatched: 'Unmatched',
509
583
  Won: 'Won',
510
584
  Lost: 'Lost',
@@ -20,7 +20,7 @@ export interface AppPermissionRequest {
20
20
  * @type {string}
21
21
  * @memberof AppPermissionRequest
22
22
  */
23
- permission?: AppPermissionRequestPermissionEnum;
23
+ permission: AppPermissionRequestPermissionEnum;
24
24
  }
25
25
  /**
26
26
  * @export
@@ -38,6 +38,7 @@ export declare const AppPermissionRequestPermissionEnum: {
38
38
  readonly OrderCanViewAll: "OrderCanViewAll";
39
39
  readonly TradeCanViewAll: "TradeCanViewAll";
40
40
  readonly WalletCanUpdateOverdraft: "WalletCanUpdateOverdraft";
41
+ readonly WalletCanViewAll: "WalletCanViewAll";
41
42
  };
42
43
  export type AppPermissionRequestPermissionEnum = typeof AppPermissionRequestPermissionEnum[keyof typeof AppPermissionRequestPermissionEnum];
43
44
  /**
@@ -34,12 +34,15 @@ exports.AppPermissionRequestPermissionEnum = {
34
34
  MarketCanAdmin: 'MarketCanAdmin',
35
35
  OrderCanViewAll: 'OrderCanViewAll',
36
36
  TradeCanViewAll: 'TradeCanViewAll',
37
- WalletCanUpdateOverdraft: 'WalletCanUpdateOverdraft'
37
+ WalletCanUpdateOverdraft: 'WalletCanUpdateOverdraft',
38
+ WalletCanViewAll: 'WalletCanViewAll'
38
39
  };
39
40
  /**
40
41
  * Check if a given object implements the AppPermissionRequest interface.
41
42
  */
42
43
  function instanceOfAppPermissionRequest(value) {
44
+ if (!('permission' in value) || value['permission'] === undefined)
45
+ return false;
43
46
  return true;
44
47
  }
45
48
  function AppPermissionRequestFromJSON(json) {
@@ -50,7 +53,7 @@ function AppPermissionRequestFromJSONTyped(json, ignoreDiscriminator) {
50
53
  return json;
51
54
  }
52
55
  return {
53
- 'permission': json['permission'] == null ? undefined : json['permission'],
56
+ 'permission': json['permission'],
54
57
  };
55
58
  }
56
59
  function AppPermissionRequestToJSON(json) {
@@ -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 { BatchIDResponseIdsInner } from './BatchIDResponseIdsInner';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface BatchIDResponse
18
+ */
19
+ export interface BatchIDResponse {
20
+ /**
21
+ *
22
+ * @type {Meta}
23
+ * @memberof BatchIDResponse
24
+ */
25
+ meta?: Meta;
26
+ /**
27
+ *
28
+ * @type {Array<BatchIDResponseIdsInner>}
29
+ * @memberof BatchIDResponse
30
+ */
31
+ ids?: Array<BatchIDResponseIdsInner>;
32
+ }
33
+ /**
34
+ * Check if a given object implements the BatchIDResponse interface.
35
+ */
36
+ export declare function instanceOfBatchIDResponse(value: object): value is BatchIDResponse;
37
+ export declare function BatchIDResponseFromJSON(json: any): BatchIDResponse;
38
+ export declare function BatchIDResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): BatchIDResponse;
39
+ export declare function BatchIDResponseToJSON(json: any): BatchIDResponse;
40
+ export declare function BatchIDResponseToJSONTyped(value?: BatchIDResponse | 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.instanceOfBatchIDResponse = instanceOfBatchIDResponse;
17
+ exports.BatchIDResponseFromJSON = BatchIDResponseFromJSON;
18
+ exports.BatchIDResponseFromJSONTyped = BatchIDResponseFromJSONTyped;
19
+ exports.BatchIDResponseToJSON = BatchIDResponseToJSON;
20
+ exports.BatchIDResponseToJSONTyped = BatchIDResponseToJSONTyped;
21
+ const Meta_1 = require("./Meta");
22
+ const BatchIDResponseIdsInner_1 = require("./BatchIDResponseIdsInner");
23
+ /**
24
+ * Check if a given object implements the BatchIDResponse interface.
25
+ */
26
+ function instanceOfBatchIDResponse(value) {
27
+ return true;
28
+ }
29
+ function BatchIDResponseFromJSON(json) {
30
+ return BatchIDResponseFromJSONTyped(json, false);
31
+ }
32
+ function BatchIDResponseFromJSONTyped(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
+ 'ids': json['ids'] == null ? undefined : (json['ids'].map(BatchIDResponseIdsInner_1.BatchIDResponseIdsInnerFromJSON)),
39
+ };
40
+ }
41
+ function BatchIDResponseToJSON(json) {
42
+ return BatchIDResponseToJSONTyped(json, false);
43
+ }
44
+ function BatchIDResponseToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ '_meta': (0, Meta_1.MetaToJSON)(value['meta']),
50
+ 'ids': value['ids'] == null ? undefined : (value['ids'].map(BatchIDResponseIdsInner_1.BatchIDResponseIdsInnerToJSON)),
51
+ };
52
+ }
@@ -0,0 +1,23 @@
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 { OrderFailure } from './OrderFailure';
13
+ import type { OrderID } from './OrderID';
14
+ /**
15
+ * @type BatchIDResponseIdsInner
16
+ *
17
+ * @export
18
+ */
19
+ export type BatchIDResponseIdsInner = OrderFailure | OrderID;
20
+ export declare function BatchIDResponseIdsInnerFromJSON(json: any): BatchIDResponseIdsInner;
21
+ export declare function BatchIDResponseIdsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): BatchIDResponseIdsInner;
22
+ export declare function BatchIDResponseIdsInnerToJSON(json: any): any;
23
+ export declare function BatchIDResponseIdsInnerToJSONTyped(value?: BatchIDResponseIdsInner | 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.BatchIDResponseIdsInnerFromJSON = BatchIDResponseIdsInnerFromJSON;
17
+ exports.BatchIDResponseIdsInnerFromJSONTyped = BatchIDResponseIdsInnerFromJSONTyped;
18
+ exports.BatchIDResponseIdsInnerToJSON = BatchIDResponseIdsInnerToJSON;
19
+ exports.BatchIDResponseIdsInnerToJSONTyped = BatchIDResponseIdsInnerToJSONTyped;
20
+ const OrderFailure_1 = require("./OrderFailure");
21
+ const OrderID_1 = require("./OrderID");
22
+ function BatchIDResponseIdsInnerFromJSON(json) {
23
+ return BatchIDResponseIdsInnerFromJSONTyped(json, false);
24
+ }
25
+ function BatchIDResponseIdsInnerFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ if ((0, OrderFailure_1.instanceOfOrderFailure)(json)) {
30
+ return (0, OrderFailure_1.OrderFailureFromJSONTyped)(json, true);
31
+ }
32
+ if ((0, OrderID_1.instanceOfOrderID)(json)) {
33
+ return (0, OrderID_1.OrderIDFromJSONTyped)(json, true);
34
+ }
35
+ return {};
36
+ }
37
+ function BatchIDResponseIdsInnerToJSON(json) {
38
+ return BatchIDResponseIdsInnerToJSONTyped(json, false);
39
+ }
40
+ function BatchIDResponseIdsInnerToJSONTyped(value, ignoreDiscriminator = false) {
41
+ if (value == null) {
42
+ return value;
43
+ }
44
+ if ((0, OrderFailure_1.instanceOfOrderFailure)(value)) {
45
+ return (0, OrderFailure_1.OrderFailureToJSON)(value);
46
+ }
47
+ if ((0, OrderID_1.instanceOfOrderID)(value)) {
48
+ return (0, OrderID_1.OrderIDToJSON)(value);
49
+ }
50
+ return {};
51
+ }
@@ -116,8 +116,10 @@ export interface Order {
116
116
  * The status of an order can be one of the following
117
117
  * <ul>
118
118
  * <li> Cancelled - The order was not matched and has been cancelled either on request or automatically</li>
119
+ * <li> Failed - A pending order was persisted but then failed to be fully created</li>
119
120
  * <li> Matched - The order has been matched, either fully, or partially where the remaining unmatched stake has been cancelled, either on request or automatically</li>
120
121
  * <li> PartiallyMatched - The order has been partially matched, and the remaining unmatched portion might still be matched</li>
122
+ * <li> Pending - An order has been persisted but has not yet been processed</li>
121
123
  * <li> Unmatched - The order has not yet been matched, and the remaining unmatched portion might still be matched</li>
122
124
  * <li> Won - The market has been settled and this previously Matched order has been deemed to have Won</li>
123
125
  * <li> Lost - The market has been settled and this previously Matched order has been deemed to have Lost</li>
@@ -153,8 +155,10 @@ export type OrderSideEnum = typeof OrderSideEnum[keyof typeof OrderSideEnum];
153
155
  */
154
156
  export declare const OrderStatusEnum: {
155
157
  readonly Cancelled: "Cancelled";
158
+ readonly Failed: "Failed";
156
159
  readonly Matched: "Matched";
157
160
  readonly PartiallyMatched: "PartiallyMatched";
161
+ readonly Pending: "Pending";
158
162
  readonly Unmatched: "Unmatched";
159
163
  readonly Won: "Won";
160
164
  readonly Lost: "Lost";
@@ -32,8 +32,10 @@ exports.OrderSideEnum = {
32
32
  */
33
33
  exports.OrderStatusEnum = {
34
34
  Cancelled: 'Cancelled',
35
+ Failed: 'Failed',
35
36
  Matched: 'Matched',
36
37
  PartiallyMatched: 'PartiallyMatched',
38
+ Pending: 'Pending',
37
39
  Unmatched: 'Unmatched',
38
40
  Won: 'Won',
39
41
  Lost: 'Lost',
@@ -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 OrderID
16
+ */
17
+ export interface OrderID {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof OrderID
22
+ */
23
+ id?: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the OrderID interface.
27
+ */
28
+ export declare function instanceOfOrderID(value: object): value is OrderID;
29
+ export declare function OrderIDFromJSON(json: any): OrderID;
30
+ export declare function OrderIDFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderID;
31
+ export declare function OrderIDToJSON(json: any): OrderID;
32
+ export declare function OrderIDToJSONTyped(value?: OrderID | 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.instanceOfOrderID = instanceOfOrderID;
17
+ exports.OrderIDFromJSON = OrderIDFromJSON;
18
+ exports.OrderIDFromJSONTyped = OrderIDFromJSONTyped;
19
+ exports.OrderIDToJSON = OrderIDToJSON;
20
+ exports.OrderIDToJSONTyped = OrderIDToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the OrderID interface.
23
+ */
24
+ function instanceOfOrderID(value) {
25
+ return true;
26
+ }
27
+ function OrderIDFromJSON(json) {
28
+ return OrderIDFromJSONTyped(json, false);
29
+ }
30
+ function OrderIDFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'id': json['id'] == null ? undefined : json['id'],
36
+ };
37
+ }
38
+ function OrderIDToJSON(json) {
39
+ return OrderIDToJSONTyped(json, false);
40
+ }
41
+ function OrderIDToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ 'id': value['id'],
47
+ };
48
+ }
@@ -74,8 +74,10 @@ export interface OrderSummary {
74
74
  * The status of an order can be one of the following
75
75
  * <ul>
76
76
  * <li> Cancelled - The order was not matched and has been cancelled either on request or automatically</li>
77
+ * <li> Failed - A pending order was persisted but then failed to be fully created</li>
77
78
  * <li> Matched - The order has been matched, either fully, or partially where the remaining unmatched stake has been cancelled, either on request or automatically</li>
78
79
  * <li> PartiallyMatched - The order has been partially matched, and the remaining unmatched portion might still be matched</li>
80
+ * <li> Pending - An order has been persisted but has not yet been processed</li>
79
81
  * <li> Unmatched - The order has not yet been matched, and the remaining unmatched portion might still be matched</li>
80
82
  * <li> Won - The market has been settled and this previously Matched order has been deemed to have Won</li>
81
83
  * <li> Lost - The market has been settled and this previously Matched order has been deemed to have Lost</li>
@@ -106,8 +108,10 @@ export type OrderSummarySideEnum = typeof OrderSummarySideEnum[keyof typeof Orde
106
108
  */
107
109
  export declare const OrderSummaryStatusEnum: {
108
110
  readonly Cancelled: "Cancelled";
111
+ readonly Failed: "Failed";
109
112
  readonly Matched: "Matched";
110
113
  readonly PartiallyMatched: "PartiallyMatched";
114
+ readonly Pending: "Pending";
111
115
  readonly Unmatched: "Unmatched";
112
116
  readonly Won: "Won";
113
117
  readonly Lost: "Lost";
@@ -32,8 +32,10 @@ exports.OrderSummarySideEnum = {
32
32
  */
33
33
  exports.OrderSummaryStatusEnum = {
34
34
  Cancelled: 'Cancelled',
35
+ Failed: 'Failed',
35
36
  Matched: 'Matched',
36
37
  PartiallyMatched: 'PartiallyMatched',
38
+ Pending: 'Pending',
37
39
  Unmatched: 'Unmatched',
38
40
  Won: 'Won',
39
41
  Lost: 'Lost',
@@ -12,6 +12,8 @@ export * from './AppStatus';
12
12
  export * from './AppStatusResponse';
13
13
  export * from './BatchCancelOrdersRequest';
14
14
  export * from './BatchCreateOrderRequest';
15
+ export * from './BatchIDResponse';
16
+ export * from './BatchIDResponseIdsInner';
15
17
  export * from './BatchOrderResponse';
16
18
  export * from './BatchOrderResponseOrdersInner';
17
19
  export * from './Category';
@@ -77,6 +79,7 @@ export * from './Meta';
77
79
  export * from './ModifyParticipantsRequest';
78
80
  export * from './Order';
79
81
  export * from './OrderFailure';
82
+ export * from './OrderID';
80
83
  export * from './OrderResponse';
81
84
  export * from './OrderSummary';
82
85
  export * from './PageMeta';
@@ -30,6 +30,8 @@ __exportStar(require("./AppStatus"), exports);
30
30
  __exportStar(require("./AppStatusResponse"), exports);
31
31
  __exportStar(require("./BatchCancelOrdersRequest"), exports);
32
32
  __exportStar(require("./BatchCreateOrderRequest"), exports);
33
+ __exportStar(require("./BatchIDResponse"), exports);
34
+ __exportStar(require("./BatchIDResponseIdsInner"), exports);
33
35
  __exportStar(require("./BatchOrderResponse"), exports);
34
36
  __exportStar(require("./BatchOrderResponseOrdersInner"), exports);
35
37
  __exportStar(require("./Category"), exports);
@@ -95,6 +97,7 @@ __exportStar(require("./Meta"), exports);
95
97
  __exportStar(require("./ModifyParticipantsRequest"), exports);
96
98
  __exportStar(require("./Order"), exports);
97
99
  __exportStar(require("./OrderFailure"), exports);
100
+ __exportStar(require("./OrderID"), exports);
98
101
  __exportStar(require("./OrderResponse"), exports);
99
102
  __exportStar(require("./OrderSummary"), exports);
100
103
  __exportStar(require("./PageMeta"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monaco-protocol/client-v2",
3
- "version": "0.0.90",
3
+ "version": "0.0.95",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [
@@ -24,8 +24,8 @@
24
24
  "clean": "rm -rf dist spec.json src",
25
25
  "version:dev": "yarn version --prerelease --preid dev",
26
26
  "version:prod": "yarn version",
27
- "publish:dev": "yarn build && npm publish --tag dev --access public --registry=https://registry.npmjs.org",
28
- "publish:prod": "yarn build && npm publish --access public --registry=https://registry.npmjs.org",
27
+ "publish:dev": "yarn build && npm login && npm publish --tag dev --access public --registry=https://registry.npmjs.org",
28
+ "publish:prod": "yarn build && npm login && npm publish --access public --registry=https://registry.npmjs.org",
29
29
  "release:dev": "yarn version:dev && yarn publish:dev",
30
30
  "release:prod": "yarn version && yarn publish:prod"
31
31
  }