@monaco-protocol/client-v2 0.0.2-dev.3 → 0.0.2-dev.5

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 (96) hide show
  1. package/dist/apis/APIKeyManagementApi.d.ts +3 -3
  2. package/dist/apis/APIKeyManagementApi.js +5 -5
  3. package/dist/apis/AppManagementApi.d.ts +6 -6
  4. package/dist/apis/AppManagementApi.js +9 -9
  5. package/dist/apis/CurrenciesApi.d.ts +3 -3
  6. package/dist/apis/CurrenciesApi.js +5 -5
  7. package/dist/apis/EventCategoriesApi.d.ts +9 -9
  8. package/dist/apis/EventCategoriesApi.js +14 -14
  9. package/dist/apis/EventGroupsApi.d.ts +11 -11
  10. package/dist/apis/EventGroupsApi.js +16 -16
  11. package/dist/apis/EventSubcategoriesApi.d.ts +67 -16
  12. package/dist/apis/EventSubcategoriesApi.js +170 -20
  13. package/dist/apis/EventsApi.d.ts +42 -2
  14. package/dist/apis/EventsApi.js +118 -0
  15. package/dist/apis/MarketPricesApi.d.ts +3 -3
  16. package/dist/apis/MarketPricesApi.js +5 -5
  17. package/dist/apis/MarketsApi.d.ts +22 -9
  18. package/dist/apis/MarketsApi.js +32 -12
  19. package/dist/apis/OrdersApi.d.ts +9 -5
  20. package/dist/apis/OrdersApi.js +14 -2
  21. package/dist/apis/SessionManagementApi.d.ts +10 -10
  22. package/dist/apis/SessionManagementApi.js +12 -12
  23. package/dist/apis/TradesApi.d.ts +4 -2
  24. package/dist/apis/TradesApi.js +6 -0
  25. package/dist/apis/WalletsApi.d.ts +19 -3
  26. package/dist/apis/WalletsApi.js +53 -0
  27. package/dist/models/AddMarketOutcomeRequest.d.ts +1 -1
  28. package/dist/models/AddMarketOutcomeRequest.js +2 -2
  29. package/dist/models/AddParticipantRequest.d.ts +52 -0
  30. package/dist/models/AddParticipantRequest.js +60 -0
  31. package/dist/models/AddParticipantsRequest.d.ts +33 -0
  32. package/dist/models/AddParticipantsRequest.js +49 -0
  33. package/dist/models/ChunkOrderResponse.d.ts +8 -1
  34. package/dist/models/ChunkOrderResponse.js +5 -2
  35. package/dist/models/CreateEventRequest.d.ts +5 -5
  36. package/dist/models/CreateEventRequest.js +16 -6
  37. package/dist/models/CreateOrderRequest.d.ts +11 -2
  38. package/dist/models/CreateOrderRequest.js +4 -2
  39. package/dist/models/CreateSessionRequest.d.ts +2 -2
  40. package/dist/models/CreateSessionRequest.js +6 -2
  41. package/dist/models/DocumentReference.js +4 -4
  42. package/dist/models/Event.d.ts +6 -0
  43. package/dist/models/Event.js +2 -0
  44. package/dist/models/EventParticipant.d.ts +52 -0
  45. package/dist/models/EventParticipant.js +60 -0
  46. package/dist/models/EventParticipantsResponse.d.ts +40 -0
  47. package/dist/models/EventParticipantsResponse.js +52 -0
  48. package/dist/models/EventResponse.d.ts +7 -0
  49. package/dist/models/EventResponse.js +3 -0
  50. package/dist/models/Market.d.ts +11 -8
  51. package/dist/models/Market.js +11 -5
  52. package/dist/models/MarketLiquidity.d.ts +2 -2
  53. package/dist/models/MarketLiquidity.js +2 -2
  54. package/dist/models/MarketOutcomeResult.d.ts +38 -0
  55. package/dist/models/MarketOutcomeResult.js +50 -0
  56. package/dist/models/MarketOutcomeSummary.d.ts +7 -1
  57. package/dist/models/MarketOutcomeSummary.js +4 -2
  58. package/dist/models/MarketResultRequest.d.ts +3 -3
  59. package/dist/models/MarketResultRequest.js +3 -3
  60. package/dist/models/MarketSummary.d.ts +11 -2
  61. package/dist/models/MarketSummary.js +11 -3
  62. package/dist/models/Meta.d.ts +34 -1
  63. package/dist/models/Meta.js +29 -0
  64. package/dist/models/ModifyParticipantsRequest.d.ts +32 -0
  65. package/dist/models/ModifyParticipantsRequest.js +48 -0
  66. package/dist/models/Order.d.ts +2 -2
  67. package/dist/models/Order.js +2 -2
  68. package/dist/models/OrderResponse.d.ts +7 -0
  69. package/dist/models/OrderResponse.js +3 -0
  70. package/dist/models/OrderSummary.d.ts +2 -2
  71. package/dist/models/OrderSummary.js +2 -2
  72. package/dist/models/PageMeta.d.ts +50 -0
  73. package/dist/models/PageMeta.js +54 -0
  74. package/dist/models/Pageable.d.ts +44 -0
  75. package/dist/models/Pageable.js +52 -0
  76. package/dist/models/PagedEventResponse.d.ts +3 -20
  77. package/dist/models/PagedEventResponse.js +3 -8
  78. package/dist/models/PagedMarketPositionResponse.d.ts +0 -24
  79. package/dist/models/PagedMarketPositionResponse.js +0 -8
  80. package/dist/models/PagedOrderResponse.d.ts +3 -20
  81. package/dist/models/PagedOrderResponse.js +3 -8
  82. package/dist/models/PagedTradeResponse.d.ts +0 -24
  83. package/dist/models/PagedTradeResponse.js +0 -8
  84. package/dist/models/PagedTransactionResponse.d.ts +0 -24
  85. package/dist/models/PagedTransactionResponse.js +0 -8
  86. package/dist/models/Participant.d.ts +58 -0
  87. package/dist/models/Participant.js +62 -0
  88. package/dist/models/ParticipantsResponse.d.ts +40 -0
  89. package/dist/models/ParticipantsResponse.js +52 -0
  90. package/dist/models/Trade.d.ts +2 -2
  91. package/dist/models/Trade.js +2 -2
  92. package/dist/models/TradeSummary.d.ts +44 -0
  93. package/dist/models/TradeSummary.js +52 -0
  94. package/dist/models/index.d.ts +11 -2
  95. package/dist/models/index.js +11 -2
  96. package/package.json +1 -1
@@ -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
+ }
@@ -12,6 +12,7 @@
12
12
  import type { Order } from './Order';
13
13
  import type { Meta } from './Meta';
14
14
  import type { MarketSummary } from './MarketSummary';
15
+ import type { TradeSummary } from './TradeSummary';
15
16
  import type { EventSummary } from './EventSummary';
16
17
  /**
17
18
  *
@@ -43,12 +44,18 @@ export interface ChunkOrderResponse {
43
44
  * @memberof ChunkOrderResponse
44
45
  */
45
46
  events?: Array<EventSummary>;
47
+ /**
48
+ *
49
+ * @type {Array<TradeSummary>}
50
+ * @memberof ChunkOrderResponse
51
+ */
52
+ trades?: Array<TradeSummary>;
46
53
  /**
47
54
  *
48
55
  * @type {number}
49
56
  * @memberof ChunkOrderResponse
50
57
  */
51
- totalObjects?: number;
58
+ totalElements?: number;
52
59
  }
53
60
  /**
54
61
  * Check if a given object implements the ChunkOrderResponse interface.
@@ -21,6 +21,7 @@ exports.ChunkOrderResponseToJSONTyped = ChunkOrderResponseToJSONTyped;
21
21
  const Order_1 = require("./Order");
22
22
  const Meta_1 = require("./Meta");
23
23
  const MarketSummary_1 = require("./MarketSummary");
24
+ const TradeSummary_1 = require("./TradeSummary");
24
25
  const EventSummary_1 = require("./EventSummary");
25
26
  /**
26
27
  * Check if a given object implements the ChunkOrderResponse interface.
@@ -40,7 +41,8 @@ function ChunkOrderResponseFromJSONTyped(json, ignoreDiscriminator) {
40
41
  'orders': json['orders'] == null ? undefined : (json['orders'].map(Order_1.OrderFromJSON)),
41
42
  'markets': json['markets'] == null ? undefined : (json['markets'].map(MarketSummary_1.MarketSummaryFromJSON)),
42
43
  'events': json['events'] == null ? undefined : (json['events'].map(EventSummary_1.EventSummaryFromJSON)),
43
- 'totalObjects': json['totalObjects'] == null ? undefined : json['totalObjects'],
44
+ 'trades': json['trades'] == null ? undefined : (json['trades'].map(TradeSummary_1.TradeSummaryFromJSON)),
45
+ 'totalElements': json['totalElements'] == null ? undefined : json['totalElements'],
44
46
  };
45
47
  }
46
48
  function ChunkOrderResponseToJSON(json) {
@@ -55,6 +57,7 @@ function ChunkOrderResponseToJSONTyped(value, ignoreDiscriminator = false) {
55
57
  'orders': value['orders'] == null ? undefined : (value['orders'].map(Order_1.OrderToJSON)),
56
58
  'markets': value['markets'] == null ? undefined : (value['markets'].map(MarketSummary_1.MarketSummaryToJSON)),
57
59
  'events': value['events'] == null ? undefined : (value['events'].map(EventSummary_1.EventSummaryToJSON)),
58
- 'totalObjects': value['totalObjects'],
60
+ 'trades': value['trades'] == null ? undefined : (value['trades'].map(TradeSummary_1.TradeSummaryToJSON)),
61
+ 'totalElements': value['totalElements'],
59
62
  };
60
63
  }
@@ -20,31 +20,31 @@ export interface CreateEventRequest {
20
20
  * @type {string}
21
21
  * @memberof CreateEventRequest
22
22
  */
23
- eventGroupId?: string;
23
+ eventGroupId: string;
24
24
  /**
25
25
  *
26
26
  * @type {string}
27
27
  * @memberof CreateEventRequest
28
28
  */
29
- name?: string;
29
+ name: string;
30
30
  /**
31
31
  *
32
32
  * @type {string}
33
33
  * @memberof CreateEventRequest
34
34
  */
35
- code?: string;
35
+ code: string;
36
36
  /**
37
37
  *
38
38
  * @type {boolean}
39
39
  * @memberof CreateEventRequest
40
40
  */
41
- active?: boolean;
41
+ active: boolean;
42
42
  /**
43
43
  *
44
44
  * @type {Date}
45
45
  * @memberof CreateEventRequest
46
46
  */
47
- expectedStartTime?: Date;
47
+ expectedStartTime: Date;
48
48
  }
49
49
  /**
50
50
  * Check if a given object implements the CreateEventRequest interface.
@@ -22,6 +22,16 @@ exports.CreateEventRequestToJSONTyped = CreateEventRequestToJSONTyped;
22
22
  * Check if a given object implements the CreateEventRequest interface.
23
23
  */
24
24
  function instanceOfCreateEventRequest(value) {
25
+ if (!('eventGroupId' in value) || value['eventGroupId'] === undefined)
26
+ return false;
27
+ if (!('name' in value) || value['name'] === undefined)
28
+ return false;
29
+ if (!('code' in value) || value['code'] === undefined)
30
+ return false;
31
+ if (!('active' in value) || value['active'] === undefined)
32
+ return false;
33
+ if (!('expectedStartTime' in value) || value['expectedStartTime'] === undefined)
34
+ return false;
25
35
  return true;
26
36
  }
27
37
  function CreateEventRequestFromJSON(json) {
@@ -32,11 +42,11 @@ function CreateEventRequestFromJSONTyped(json, ignoreDiscriminator) {
32
42
  return json;
33
43
  }
34
44
  return {
35
- 'eventGroupId': json['eventGroupId'] == null ? undefined : json['eventGroupId'],
36
- 'name': json['name'] == null ? undefined : json['name'],
37
- 'code': json['code'] == null ? undefined : json['code'],
38
- 'active': json['active'] == null ? undefined : json['active'],
39
- 'expectedStartTime': json['expectedStartTime'] == null ? undefined : (new Date(json['expectedStartTime'])),
45
+ 'eventGroupId': json['eventGroupId'],
46
+ 'name': json['name'],
47
+ 'code': json['code'],
48
+ 'active': json['active'],
49
+ 'expectedStartTime': (new Date(json['expectedStartTime'])),
40
50
  };
41
51
  }
42
52
  function CreateEventRequestToJSON(json) {
@@ -51,6 +61,6 @@ function CreateEventRequestToJSONTyped(value, ignoreDiscriminator = false) {
51
61
  'name': value['name'],
52
62
  'code': value['code'],
53
63
  'active': value['active'],
54
- 'expectedStartTime': value['expectedStartTime'] == null ? undefined : ((value['expectedStartTime']).toISOString()),
64
+ 'expectedStartTime': ((value['expectedStartTime']).toISOString()),
55
65
  };
56
66
  }
@@ -35,10 +35,10 @@ export interface CreateOrderRequest {
35
35
  side?: CreateOrderRequestSideEnum;
36
36
  /**
37
37
  *
38
- * @type {number}
38
+ * @type {string}
39
39
  * @memberof CreateOrderRequest
40
40
  */
41
- outcome?: number;
41
+ outcomeId?: string;
42
42
  /**
43
43
  *
44
44
  * @type {number}
@@ -69,6 +69,15 @@ export interface CreateOrderRequest {
69
69
  * @memberof CreateOrderRequest
70
70
  */
71
71
  reference?: string;
72
+ /**
73
+ * Optional - to use a different commission rate for this order than your app's
74
+ * default commission rate. If omitted or set to null, the app's default
75
+ * commission rate will be used (if it has one).
76
+ *
77
+ * @type {string}
78
+ * @memberof CreateOrderRequest
79
+ */
80
+ commissionRateId?: string;
72
81
  }
73
82
  /**
74
83
  * @export
@@ -50,12 +50,13 @@ function CreateOrderRequestFromJSONTyped(json, ignoreDiscriminator) {
50
50
  'walletId': json['walletId'] == null ? undefined : json['walletId'],
51
51
  'marketId': json['marketId'] == null ? undefined : json['marketId'],
52
52
  'side': json['side'] == null ? undefined : json['side'],
53
- 'outcome': json['outcome'] == null ? undefined : json['outcome'],
53
+ 'outcomeId': json['outcomeId'] == null ? undefined : json['outcomeId'],
54
54
  'price': json['price'] == null ? undefined : json['price'],
55
55
  'stake': json['stake'] == null ? undefined : json['stake'],
56
56
  'keepWhenInPlay': json['keepWhenInPlay'] == null ? undefined : json['keepWhenInPlay'],
57
57
  'matchBehavior': json['matchBehavior'] == null ? undefined : json['matchBehavior'],
58
58
  'reference': json['reference'] == null ? undefined : json['reference'],
59
+ 'commissionRateId': json['commissionRateId'] == null ? undefined : json['commissionRateId'],
59
60
  };
60
61
  }
61
62
  function CreateOrderRequestToJSON(json) {
@@ -69,11 +70,12 @@ function CreateOrderRequestToJSONTyped(value, ignoreDiscriminator = false) {
69
70
  'walletId': value['walletId'],
70
71
  'marketId': value['marketId'],
71
72
  'side': value['side'],
72
- 'outcome': value['outcome'],
73
+ 'outcomeId': value['outcomeId'],
73
74
  'price': value['price'],
74
75
  'stake': value['stake'],
75
76
  'keepWhenInPlay': value['keepWhenInPlay'],
76
77
  'matchBehavior': value['matchBehavior'],
77
78
  'reference': value['reference'],
79
+ 'commissionRateId': value['commissionRateId'],
78
80
  };
79
81
  }
@@ -20,13 +20,13 @@ export interface CreateSessionRequest {
20
20
  * @type {string}
21
21
  * @memberof CreateSessionRequest
22
22
  */
23
- appId?: string;
23
+ appId: string;
24
24
  /**
25
25
  *
26
26
  * @type {string}
27
27
  * @memberof CreateSessionRequest
28
28
  */
29
- apiKey?: string;
29
+ apiKey: string;
30
30
  }
31
31
  /**
32
32
  * Check if a given object implements the CreateSessionRequest interface.
@@ -22,6 +22,10 @@ exports.CreateSessionRequestToJSONTyped = CreateSessionRequestToJSONTyped;
22
22
  * Check if a given object implements the CreateSessionRequest interface.
23
23
  */
24
24
  function instanceOfCreateSessionRequest(value) {
25
+ if (!('appId' in value) || value['appId'] === undefined)
26
+ return false;
27
+ if (!('apiKey' in value) || value['apiKey'] === undefined)
28
+ return false;
25
29
  return true;
26
30
  }
27
31
  function CreateSessionRequestFromJSON(json) {
@@ -32,8 +36,8 @@ function CreateSessionRequestFromJSONTyped(json, ignoreDiscriminator) {
32
36
  return json;
33
37
  }
34
38
  return {
35
- 'appId': json['appId'] == null ? undefined : json['appId'],
36
- 'apiKey': json['apiKey'] == null ? undefined : json['apiKey'],
39
+ 'appId': json['appId'],
40
+ 'apiKey': json['apiKey'],
37
41
  };
38
42
  }
39
43
  function CreateSessionRequestToJSON(json) {
@@ -32,8 +32,8 @@ function DocumentReferenceFromJSONTyped(json, ignoreDiscriminator) {
32
32
  return json;
33
33
  }
34
34
  return {
35
- 'ref': json['ref'] == null ? undefined : json['ref'],
36
- 'ids': json['ids'] == null ? undefined : json['ids'],
35
+ 'ref': json['_ref'] == null ? undefined : json['_ref'],
36
+ 'ids': json['_ids'] == null ? undefined : json['_ids'],
37
37
  };
38
38
  }
39
39
  function DocumentReferenceToJSON(json) {
@@ -44,7 +44,7 @@ function DocumentReferenceToJSONTyped(value, ignoreDiscriminator = false) {
44
44
  return value;
45
45
  }
46
46
  return {
47
- 'ref': value['ref'],
48
- 'ids': value['ids'],
47
+ '_ref': value['ref'],
48
+ '_ids': value['ids'],
49
49
  };
50
50
  }
@@ -82,6 +82,12 @@ export interface Event {
82
82
  * @memberof Event
83
83
  */
84
84
  modifiedAt?: Date;
85
+ /**
86
+ *
87
+ * @type {DocumentReference}
88
+ * @memberof Event
89
+ */
90
+ participants?: DocumentReference;
85
91
  }
86
92
  /**
87
93
  * Check if a given object implements the Event interface.
@@ -44,6 +44,7 @@ function EventFromJSONTyped(json, ignoreDiscriminator) {
44
44
  'actualEndTime': json['actualEndTime'] == null ? undefined : (new Date(json['actualEndTime'])),
45
45
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
46
46
  'modifiedAt': json['modifiedAt'] == null ? undefined : (new Date(json['modifiedAt'])),
47
+ 'participants': json['participants'] == null ? undefined : (0, DocumentReference_1.DocumentReferenceFromJSON)(json['participants']),
47
48
  };
48
49
  }
49
50
  function EventToJSON(json) {
@@ -65,5 +66,6 @@ function EventToJSONTyped(value, ignoreDiscriminator = false) {
65
66
  'actualEndTime': value['actualEndTime'] == null ? undefined : ((value['actualEndTime']).toISOString()),
66
67
  'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
67
68
  'modifiedAt': value['modifiedAt'] == null ? undefined : ((value['modifiedAt']).toISOString()),
69
+ 'participants': (0, DocumentReference_1.DocumentReferenceToJSON)(value['participants']),
68
70
  };
69
71
  }
@@ -0,0 +1,52 @@
1
+ /**
2
+ * Monaco API
3
+ * A RESTful API that allows you to interact with the Monaco Exchange. Provides endpoints for managing Events, Markets, Sessions, Wallets and Orders. To interact with the API, a client must have an App Id and an API Key to authenticate and create a session.
4
+ *
5
+ * The version of the OpenAPI document: 0.1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface EventParticipant
16
+ */
17
+ export interface EventParticipant {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof EventParticipant
22
+ */
23
+ code?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof EventParticipant
28
+ */
29
+ name?: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof EventParticipant
34
+ */
35
+ type?: EventParticipantTypeEnum;
36
+ }
37
+ /**
38
+ * @export
39
+ */
40
+ export declare const EventParticipantTypeEnum: {
41
+ readonly Individual: "Individual";
42
+ readonly Team: "Team";
43
+ };
44
+ export type EventParticipantTypeEnum = typeof EventParticipantTypeEnum[keyof typeof EventParticipantTypeEnum];
45
+ /**
46
+ * Check if a given object implements the EventParticipant interface.
47
+ */
48
+ export declare function instanceOfEventParticipant(value: object): value is EventParticipant;
49
+ export declare function EventParticipantFromJSON(json: any): EventParticipant;
50
+ export declare function EventParticipantFromJSONTyped(json: any, ignoreDiscriminator: boolean): EventParticipant;
51
+ export declare function EventParticipantToJSON(json: any): EventParticipant;
52
+ export declare function EventParticipantToJSONTyped(value?: EventParticipant | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Monaco API
6
+ * A RESTful API that allows you to interact with the Monaco Exchange. Provides endpoints for managing Events, Markets, Sessions, Wallets and Orders. To interact with the API, a client must have an App Id and an API Key to authenticate and create a session.
7
+ *
8
+ * The version of the OpenAPI document: 0.1
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.EventParticipantTypeEnum = void 0;
17
+ exports.instanceOfEventParticipant = instanceOfEventParticipant;
18
+ exports.EventParticipantFromJSON = EventParticipantFromJSON;
19
+ exports.EventParticipantFromJSONTyped = EventParticipantFromJSONTyped;
20
+ exports.EventParticipantToJSON = EventParticipantToJSON;
21
+ exports.EventParticipantToJSONTyped = EventParticipantToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.EventParticipantTypeEnum = {
26
+ Individual: 'Individual',
27
+ Team: 'Team'
28
+ };
29
+ /**
30
+ * Check if a given object implements the EventParticipant interface.
31
+ */
32
+ function instanceOfEventParticipant(value) {
33
+ return true;
34
+ }
35
+ function EventParticipantFromJSON(json) {
36
+ return EventParticipantFromJSONTyped(json, false);
37
+ }
38
+ function EventParticipantFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'code': json['code'] == null ? undefined : json['code'],
44
+ 'name': json['name'] == null ? undefined : json['name'],
45
+ 'type': json['type'] == null ? undefined : json['type'],
46
+ };
47
+ }
48
+ function EventParticipantToJSON(json) {
49
+ return EventParticipantToJSONTyped(json, false);
50
+ }
51
+ function EventParticipantToJSONTyped(value, ignoreDiscriminator = false) {
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ 'code': value['code'],
57
+ 'name': value['name'],
58
+ 'type': value['type'],
59
+ };
60
+ }
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Monaco API
3
+ * A RESTful API that allows you to interact with the Monaco Exchange. Provides endpoints for managing Events, Markets, Sessions, Wallets and Orders. To interact with the API, a client must have an App Id and an API Key to authenticate and create a session.
4
+ *
5
+ * The version of the OpenAPI document: 0.1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Meta } from './Meta';
13
+ import type { EventParticipant } from './EventParticipant';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface EventParticipantsResponse
18
+ */
19
+ export interface EventParticipantsResponse {
20
+ /**
21
+ *
22
+ * @type {Meta}
23
+ * @memberof EventParticipantsResponse
24
+ */
25
+ meta?: Meta;
26
+ /**
27
+ *
28
+ * @type {Array<EventParticipant>}
29
+ * @memberof EventParticipantsResponse
30
+ */
31
+ participants?: Array<EventParticipant>;
32
+ }
33
+ /**
34
+ * Check if a given object implements the EventParticipantsResponse interface.
35
+ */
36
+ export declare function instanceOfEventParticipantsResponse(value: object): value is EventParticipantsResponse;
37
+ export declare function EventParticipantsResponseFromJSON(json: any): EventParticipantsResponse;
38
+ export declare function EventParticipantsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): EventParticipantsResponse;
39
+ export declare function EventParticipantsResponseToJSON(json: any): EventParticipantsResponse;
40
+ export declare function EventParticipantsResponseToJSONTyped(value?: EventParticipantsResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Monaco API
6
+ * A RESTful API that allows you to interact with the Monaco Exchange. Provides endpoints for managing Events, Markets, Sessions, Wallets and Orders. To interact with the API, a client must have an App Id and an API Key to authenticate and create a session.
7
+ *
8
+ * The version of the OpenAPI document: 0.1
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfEventParticipantsResponse = instanceOfEventParticipantsResponse;
17
+ exports.EventParticipantsResponseFromJSON = EventParticipantsResponseFromJSON;
18
+ exports.EventParticipantsResponseFromJSONTyped = EventParticipantsResponseFromJSONTyped;
19
+ exports.EventParticipantsResponseToJSON = EventParticipantsResponseToJSON;
20
+ exports.EventParticipantsResponseToJSONTyped = EventParticipantsResponseToJSONTyped;
21
+ const Meta_1 = require("./Meta");
22
+ const EventParticipant_1 = require("./EventParticipant");
23
+ /**
24
+ * Check if a given object implements the EventParticipantsResponse interface.
25
+ */
26
+ function instanceOfEventParticipantsResponse(value) {
27
+ return true;
28
+ }
29
+ function EventParticipantsResponseFromJSON(json) {
30
+ return EventParticipantsResponseFromJSONTyped(json, false);
31
+ }
32
+ function EventParticipantsResponseFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'meta': json['_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['_meta']),
38
+ 'participants': json['participants'] == null ? undefined : (json['participants'].map(EventParticipant_1.EventParticipantFromJSON)),
39
+ };
40
+ }
41
+ function EventParticipantsResponseToJSON(json) {
42
+ return EventParticipantsResponseToJSONTyped(json, false);
43
+ }
44
+ function EventParticipantsResponseToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ '_meta': (0, Meta_1.MetaToJSON)(value['meta']),
50
+ 'participants': value['participants'] == null ? undefined : (value['participants'].map(EventParticipant_1.EventParticipantToJSON)),
51
+ };
52
+ }
@@ -14,6 +14,7 @@ import type { Category } from './Category';
14
14
  import type { Subcategory } from './Subcategory';
15
15
  import type { Event } from './Event';
16
16
  import type { EventGroup } from './EventGroup';
17
+ import type { EventParticipant } from './EventParticipant';
17
18
  /**
18
19
  *
19
20
  * @export
@@ -50,6 +51,12 @@ export interface EventResponse {
50
51
  * @memberof EventResponse
51
52
  */
52
53
  categories?: Array<Category>;
54
+ /**
55
+ *
56
+ * @type {Array<EventParticipant>}
57
+ * @memberof EventResponse
58
+ */
59
+ participants?: Array<EventParticipant>;
53
60
  }
54
61
  /**
55
62
  * Check if a given object implements the EventResponse interface.
@@ -23,6 +23,7 @@ const Category_1 = require("./Category");
23
23
  const Subcategory_1 = require("./Subcategory");
24
24
  const Event_1 = require("./Event");
25
25
  const EventGroup_1 = require("./EventGroup");
26
+ const EventParticipant_1 = require("./EventParticipant");
26
27
  /**
27
28
  * Check if a given object implements the EventResponse interface.
28
29
  */
@@ -42,6 +43,7 @@ function EventResponseFromJSONTyped(json, ignoreDiscriminator) {
42
43
  'eventGroups': json['eventGroups'] == null ? undefined : (json['eventGroups'].map(EventGroup_1.EventGroupFromJSON)),
43
44
  'subcategories': json['subcategories'] == null ? undefined : (json['subcategories'].map(Subcategory_1.SubcategoryFromJSON)),
44
45
  'categories': json['categories'] == null ? undefined : (json['categories'].map(Category_1.CategoryFromJSON)),
46
+ 'participants': json['participants'] == null ? undefined : (json['participants'].map(EventParticipant_1.EventParticipantFromJSON)),
45
47
  };
46
48
  }
47
49
  function EventResponseToJSON(json) {
@@ -57,5 +59,6 @@ function EventResponseToJSONTyped(value, ignoreDiscriminator = false) {
57
59
  'eventGroups': value['eventGroups'] == null ? undefined : (value['eventGroups'].map(EventGroup_1.EventGroupToJSON)),
58
60
  'subcategories': value['subcategories'] == null ? undefined : (value['subcategories'].map(Subcategory_1.SubcategoryToJSON)),
59
61
  'categories': value['categories'] == null ? undefined : (value['categories'].map(Category_1.CategoryToJSON)),
62
+ 'participants': value['participants'] == null ? undefined : (value['participants'].map(EventParticipant_1.EventParticipantToJSON)),
60
63
  };
61
64
  }
@@ -66,16 +66,10 @@ export interface Market {
66
66
  currencyId?: string;
67
67
  /**
68
68
  *
69
- * @type {boolean}
70
- * @memberof Market
71
- */
72
- inPlayEnabled?: boolean;
73
- /**
74
- *
75
- * @type {boolean}
69
+ * @type {string}
76
70
  * @memberof Market
77
71
  */
78
- inPlay?: boolean;
72
+ inPlayStatus?: MarketInPlayStatusEnum;
79
73
  /**
80
74
  *
81
75
  * @type {number}
@@ -137,6 +131,15 @@ export interface Market {
137
131
  */
138
132
  modifiedAt?: Date;
139
133
  }
134
+ /**
135
+ * @export
136
+ */
137
+ export declare const MarketInPlayStatusEnum: {
138
+ readonly NotApplicable: "NotApplicable";
139
+ readonly PrePlay: "PrePlay";
140
+ readonly InPlay: "InPlay";
141
+ };
142
+ export type MarketInPlayStatusEnum = typeof MarketInPlayStatusEnum[keyof typeof MarketInPlayStatusEnum];
140
143
  /**
141
144
  * @export
142
145
  */