@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
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Monaco API
6
+ * A RESTful API that allows you to interact with the Monaco Exchange. Provides endpoints for managing Events, Markets, Sessions, Wallets and Orders. To interact with the API, a client must have an App Id and an API Key to authenticate and create a session.
7
+ *
8
+ * The version of the OpenAPI document: 0.1
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfPageMeta = instanceOfPageMeta;
17
+ exports.PageMetaFromJSON = PageMetaFromJSON;
18
+ exports.PageMetaFromJSONTyped = PageMetaFromJSONTyped;
19
+ exports.PageMetaToJSON = PageMetaToJSON;
20
+ exports.PageMetaToJSONTyped = PageMetaToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the PageMeta interface.
23
+ */
24
+ function instanceOfPageMeta(value) {
25
+ return true;
26
+ }
27
+ function PageMetaFromJSON(json) {
28
+ return PageMetaFromJSONTyped(json, false);
29
+ }
30
+ function PageMetaFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'pageNumber': json['_pageNumber'] == null ? undefined : json['_pageNumber'],
36
+ 'pageSize': json['_pageSize'] == null ? undefined : json['_pageSize'],
37
+ 'totalElements': json['_totalElements'] == null ? undefined : json['_totalElements'],
38
+ 'totalPages': json['_totalPages'] == null ? undefined : json['_totalPages'],
39
+ };
40
+ }
41
+ function PageMetaToJSON(json) {
42
+ return PageMetaToJSONTyped(json, false);
43
+ }
44
+ function PageMetaToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ '_pageNumber': value['pageNumber'],
50
+ '_pageSize': value['pageSize'],
51
+ '_totalElements': value['totalElements'],
52
+ '_totalPages': value['totalPages'],
53
+ };
54
+ }
@@ -25,7 +25,7 @@ export interface PagedEventResponse {
25
25
  * @type {Meta}
26
26
  * @memberof PagedEventResponse
27
27
  */
28
- getMeta?: Meta;
28
+ meta?: Meta;
29
29
  /**
30
30
  *
31
31
  * @type {Array<Event>}
@@ -50,30 +50,6 @@ export interface PagedEventResponse {
50
50
  * @memberof PagedEventResponse
51
51
  */
52
52
  categories?: Array<Category>;
53
- /**
54
- *
55
- * @type {number}
56
- * @memberof PagedEventResponse
57
- */
58
- pageNumber?: number;
59
- /**
60
- *
61
- * @type {number}
62
- * @memberof PagedEventResponse
63
- */
64
- resultsPerPage?: number;
65
- /**
66
- *
67
- * @type {number}
68
- * @memberof PagedEventResponse
69
- */
70
- totalObjects?: number;
71
- /**
72
- *
73
- * @type {number}
74
- * @memberof PagedEventResponse
75
- */
76
- totalPages?: number;
77
53
  }
78
54
  /**
79
55
  * Check if a given object implements the PagedEventResponse interface.
@@ -37,15 +37,11 @@ function PagedEventResponseFromJSONTyped(json, ignoreDiscriminator) {
37
37
  return json;
38
38
  }
39
39
  return {
40
- 'getMeta': json['get_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['get_meta']),
40
+ 'meta': json['_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['_meta']),
41
41
  'events': json['events'] == null ? undefined : (json['events'].map(Event_1.EventFromJSON)),
42
42
  'eventGroups': json['eventGroups'] == null ? undefined : (json['eventGroups'].map(EventGroup_1.EventGroupFromJSON)),
43
43
  'subcategories': json['subcategories'] == null ? undefined : (json['subcategories'].map(Subcategory_1.SubcategoryFromJSON)),
44
44
  'categories': json['categories'] == null ? undefined : (json['categories'].map(Category_1.CategoryFromJSON)),
45
- 'pageNumber': json['pageNumber'] == null ? undefined : json['pageNumber'],
46
- 'resultsPerPage': json['resultsPerPage'] == null ? undefined : json['resultsPerPage'],
47
- 'totalObjects': json['totalObjects'] == null ? undefined : json['totalObjects'],
48
- 'totalPages': json['totalPages'] == null ? undefined : json['totalPages'],
49
45
  };
50
46
  }
51
47
  function PagedEventResponseToJSON(json) {
@@ -56,14 +52,10 @@ function PagedEventResponseToJSONTyped(value, ignoreDiscriminator = false) {
56
52
  return value;
57
53
  }
58
54
  return {
59
- 'get_meta': (0, Meta_1.MetaToJSON)(value['getMeta']),
55
+ '_meta': (0, Meta_1.MetaToJSON)(value['meta']),
60
56
  'events': value['events'] == null ? undefined : (value['events'].map(Event_1.EventToJSON)),
61
57
  'eventGroups': value['eventGroups'] == null ? undefined : (value['eventGroups'].map(EventGroup_1.EventGroupToJSON)),
62
58
  'subcategories': value['subcategories'] == null ? undefined : (value['subcategories'].map(Subcategory_1.SubcategoryToJSON)),
63
59
  'categories': value['categories'] == null ? undefined : (value['categories'].map(Category_1.CategoryToJSON)),
64
- 'pageNumber': value['pageNumber'],
65
- 'resultsPerPage': value['resultsPerPage'],
66
- 'totalObjects': value['totalObjects'],
67
- 'totalPages': value['totalPages'],
68
60
  };
69
61
  }
@@ -23,7 +23,7 @@ export interface PagedMarketPositionResponse {
23
23
  * @type {Meta}
24
24
  * @memberof PagedMarketPositionResponse
25
25
  */
26
- getMeta?: Meta;
26
+ meta?: Meta;
27
27
  /**
28
28
  *
29
29
  * @type {Array<MarketPosition>}
@@ -36,30 +36,6 @@ export interface PagedMarketPositionResponse {
36
36
  * @memberof PagedMarketPositionResponse
37
37
  */
38
38
  markets?: Array<MarketSummary>;
39
- /**
40
- *
41
- * @type {number}
42
- * @memberof PagedMarketPositionResponse
43
- */
44
- pageNumber?: number;
45
- /**
46
- *
47
- * @type {number}
48
- * @memberof PagedMarketPositionResponse
49
- */
50
- resultsPerPage?: number;
51
- /**
52
- *
53
- * @type {number}
54
- * @memberof PagedMarketPositionResponse
55
- */
56
- totalObjects?: number;
57
- /**
58
- *
59
- * @type {number}
60
- * @memberof PagedMarketPositionResponse
61
- */
62
- totalPages?: number;
63
39
  }
64
40
  /**
65
41
  * Check if a given object implements the PagedMarketPositionResponse interface.
@@ -35,13 +35,9 @@ function PagedMarketPositionResponseFromJSONTyped(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
  'positions': json['positions'] == null ? undefined : (json['positions'].map(MarketPosition_1.MarketPositionFromJSON)),
40
40
  'markets': json['markets'] == null ? undefined : (json['markets'].map(MarketSummary_1.MarketSummaryFromJSON)),
41
- 'pageNumber': json['pageNumber'] == null ? undefined : json['pageNumber'],
42
- 'resultsPerPage': json['resultsPerPage'] == null ? undefined : json['resultsPerPage'],
43
- 'totalObjects': json['totalObjects'] == null ? undefined : json['totalObjects'],
44
- 'totalPages': json['totalPages'] == null ? undefined : json['totalPages'],
45
41
  };
46
42
  }
47
43
  function PagedMarketPositionResponseToJSON(json) {
@@ -52,12 +48,8 @@ function PagedMarketPositionResponseToJSONTyped(value, ignoreDiscriminator = fal
52
48
  return value;
53
49
  }
54
50
  return {
55
- 'get_meta': (0, Meta_1.MetaToJSON)(value['getMeta']),
51
+ '_meta': (0, Meta_1.MetaToJSON)(value['meta']),
56
52
  'positions': value['positions'] == null ? undefined : (value['positions'].map(MarketPosition_1.MarketPositionToJSON)),
57
53
  'markets': value['markets'] == null ? undefined : (value['markets'].map(MarketSummary_1.MarketSummaryToJSON)),
58
- 'pageNumber': value['pageNumber'],
59
- 'resultsPerPage': value['resultsPerPage'],
60
- 'totalObjects': value['totalObjects'],
61
- 'totalPages': value['totalPages'],
62
54
  };
63
55
  }
@@ -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
  *
@@ -24,7 +25,7 @@ export interface PagedOrderResponse {
24
25
  * @type {Meta}
25
26
  * @memberof PagedOrderResponse
26
27
  */
27
- getMeta?: Meta;
28
+ meta?: Meta;
28
29
  /**
29
30
  *
30
31
  * @type {Array<Order>}
@@ -45,28 +46,10 @@ export interface PagedOrderResponse {
45
46
  events?: Array<EventSummary>;
46
47
  /**
47
48
  *
48
- * @type {number}
49
+ * @type {Array<TradeSummary>}
49
50
  * @memberof PagedOrderResponse
50
51
  */
51
- pageNumber?: number;
52
- /**
53
- *
54
- * @type {number}
55
- * @memberof PagedOrderResponse
56
- */
57
- resultsPerPage?: number;
58
- /**
59
- *
60
- * @type {number}
61
- * @memberof PagedOrderResponse
62
- */
63
- totalObjects?: number;
64
- /**
65
- *
66
- * @type {number}
67
- * @memberof PagedOrderResponse
68
- */
69
- totalPages?: number;
52
+ trades?: Array<TradeSummary>;
70
53
  }
71
54
  /**
72
55
  * Check if a given object implements the PagedOrderResponse interface.
@@ -21,6 +21,7 @@ exports.PagedOrderResponseToJSONTyped = PagedOrderResponseToJSONTyped;
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 PagedOrderResponse interface.
@@ -36,14 +37,11 @@ function PagedOrderResponseFromJSONTyped(json, ignoreDiscriminator) {
36
37
  return json;
37
38
  }
38
39
  return {
39
- 'getMeta': json['get_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['get_meta']),
40
+ 'meta': json['_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['_meta']),
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
- 'pageNumber': json['pageNumber'] == null ? undefined : json['pageNumber'],
44
- 'resultsPerPage': json['resultsPerPage'] == null ? undefined : json['resultsPerPage'],
45
- 'totalObjects': json['totalObjects'] == null ? undefined : json['totalObjects'],
46
- 'totalPages': json['totalPages'] == null ? undefined : json['totalPages'],
44
+ 'trades': json['trades'] == null ? undefined : (json['trades'].map(TradeSummary_1.TradeSummaryFromJSON)),
47
45
  };
48
46
  }
49
47
  function PagedOrderResponseToJSON(json) {
@@ -54,13 +52,10 @@ function PagedOrderResponseToJSONTyped(value, ignoreDiscriminator = false) {
54
52
  return value;
55
53
  }
56
54
  return {
57
- 'get_meta': (0, Meta_1.MetaToJSON)(value['getMeta']),
55
+ '_meta': (0, Meta_1.MetaToJSON)(value['meta']),
58
56
  'orders': value['orders'] == null ? undefined : (value['orders'].map(Order_1.OrderToJSON)),
59
57
  'markets': value['markets'] == null ? undefined : (value['markets'].map(MarketSummary_1.MarketSummaryToJSON)),
60
58
  'events': value['events'] == null ? undefined : (value['events'].map(EventSummary_1.EventSummaryToJSON)),
61
- 'pageNumber': value['pageNumber'],
62
- 'resultsPerPage': value['resultsPerPage'],
63
- 'totalObjects': value['totalObjects'],
64
- 'totalPages': value['totalPages'],
59
+ 'trades': value['trades'] == null ? undefined : (value['trades'].map(TradeSummary_1.TradeSummaryToJSON)),
65
60
  };
66
61
  }
@@ -25,7 +25,7 @@ export interface PagedTradeResponse {
25
25
  * @type {Meta}
26
26
  * @memberof PagedTradeResponse
27
27
  */
28
- getMeta?: Meta;
28
+ meta?: Meta;
29
29
  /**
30
30
  *
31
31
  * @type {Array<Trade>}
@@ -50,30 +50,6 @@ export interface PagedTradeResponse {
50
50
  * @memberof PagedTradeResponse
51
51
  */
52
52
  events?: Array<EventSummary>;
53
- /**
54
- *
55
- * @type {number}
56
- * @memberof PagedTradeResponse
57
- */
58
- pageNumber?: number;
59
- /**
60
- *
61
- * @type {number}
62
- * @memberof PagedTradeResponse
63
- */
64
- resultsPerPage?: number;
65
- /**
66
- *
67
- * @type {number}
68
- * @memberof PagedTradeResponse
69
- */
70
- totalObjects?: number;
71
- /**
72
- *
73
- * @type {number}
74
- * @memberof PagedTradeResponse
75
- */
76
- totalPages?: number;
77
53
  }
78
54
  /**
79
55
  * Check if a given object implements the PagedTradeResponse interface.
@@ -37,15 +37,11 @@ function PagedTradeResponseFromJSONTyped(json, ignoreDiscriminator) {
37
37
  return json;
38
38
  }
39
39
  return {
40
- 'getMeta': json['get_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['get_meta']),
40
+ 'meta': json['_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['_meta']),
41
41
  'trades': json['trades'] == null ? undefined : (json['trades'].map(Trade_1.TradeFromJSON)),
42
42
  'orders': json['orders'] == null ? undefined : (json['orders'].map(OrderSummary_1.OrderSummaryFromJSON)),
43
43
  'markets': json['markets'] == null ? undefined : (json['markets'].map(MarketSummary_1.MarketSummaryFromJSON)),
44
44
  'events': json['events'] == null ? undefined : (json['events'].map(EventSummary_1.EventSummaryFromJSON)),
45
- 'pageNumber': json['pageNumber'] == null ? undefined : json['pageNumber'],
46
- 'resultsPerPage': json['resultsPerPage'] == null ? undefined : json['resultsPerPage'],
47
- 'totalObjects': json['totalObjects'] == null ? undefined : json['totalObjects'],
48
- 'totalPages': json['totalPages'] == null ? undefined : json['totalPages'],
49
45
  };
50
46
  }
51
47
  function PagedTradeResponseToJSON(json) {
@@ -56,14 +52,10 @@ function PagedTradeResponseToJSONTyped(value, ignoreDiscriminator = false) {
56
52
  return value;
57
53
  }
58
54
  return {
59
- 'get_meta': (0, Meta_1.MetaToJSON)(value['getMeta']),
55
+ '_meta': (0, Meta_1.MetaToJSON)(value['meta']),
60
56
  'trades': value['trades'] == null ? undefined : (value['trades'].map(Trade_1.TradeToJSON)),
61
57
  'orders': value['orders'] == null ? undefined : (value['orders'].map(OrderSummary_1.OrderSummaryToJSON)),
62
58
  'markets': value['markets'] == null ? undefined : (value['markets'].map(MarketSummary_1.MarketSummaryToJSON)),
63
59
  'events': value['events'] == null ? undefined : (value['events'].map(EventSummary_1.EventSummaryToJSON)),
64
- 'pageNumber': value['pageNumber'],
65
- 'resultsPerPage': value['resultsPerPage'],
66
- 'totalObjects': value['totalObjects'],
67
- 'totalPages': value['totalPages'],
68
60
  };
69
61
  }
@@ -22,37 +22,13 @@ export interface PagedTransactionResponse {
22
22
  * @type {Meta}
23
23
  * @memberof PagedTransactionResponse
24
24
  */
25
- getMeta?: Meta;
25
+ meta?: Meta;
26
26
  /**
27
27
  *
28
28
  * @type {Array<Transaction>}
29
29
  * @memberof PagedTransactionResponse
30
30
  */
31
31
  transactions?: Array<Transaction>;
32
- /**
33
- *
34
- * @type {number}
35
- * @memberof PagedTransactionResponse
36
- */
37
- pageNumber?: number;
38
- /**
39
- *
40
- * @type {number}
41
- * @memberof PagedTransactionResponse
42
- */
43
- resultsPerPage?: number;
44
- /**
45
- *
46
- * @type {number}
47
- * @memberof PagedTransactionResponse
48
- */
49
- totalObjects?: number;
50
- /**
51
- *
52
- * @type {number}
53
- * @memberof PagedTransactionResponse
54
- */
55
- totalPages?: number;
56
32
  }
57
33
  /**
58
34
  * Check if a given object implements the PagedTransactionResponse interface.
@@ -34,12 +34,8 @@ function PagedTransactionResponseFromJSONTyped(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
  'transactions': json['transactions'] == null ? undefined : (json['transactions'].map(Transaction_1.TransactionFromJSON)),
39
- 'pageNumber': json['pageNumber'] == null ? undefined : json['pageNumber'],
40
- 'resultsPerPage': json['resultsPerPage'] == null ? undefined : json['resultsPerPage'],
41
- 'totalObjects': json['totalObjects'] == null ? undefined : json['totalObjects'],
42
- 'totalPages': json['totalPages'] == null ? undefined : json['totalPages'],
43
39
  };
44
40
  }
45
41
  function PagedTransactionResponseToJSON(json) {
@@ -50,11 +46,7 @@ function PagedTransactionResponseToJSONTyped(value, ignoreDiscriminator = false)
50
46
  return value;
51
47
  }
52
48
  return {
53
- 'get_meta': (0, Meta_1.MetaToJSON)(value['getMeta']),
49
+ '_meta': (0, Meta_1.MetaToJSON)(value['meta']),
54
50
  'transactions': value['transactions'] == null ? undefined : (value['transactions'].map(Transaction_1.TransactionToJSON)),
55
- 'pageNumber': value['pageNumber'],
56
- 'resultsPerPage': value['resultsPerPage'],
57
- 'totalObjects': value['totalObjects'],
58
- 'totalPages': value['totalPages'],
59
51
  };
60
52
  }
@@ -0,0 +1,58 @@
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 Participant
16
+ */
17
+ export interface Participant {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof Participant
22
+ */
23
+ code?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof Participant
28
+ */
29
+ name?: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof Participant
34
+ */
35
+ type?: ParticipantTypeEnum;
36
+ /**
37
+ *
38
+ * @type {boolean}
39
+ * @memberof Participant
40
+ */
41
+ active?: boolean;
42
+ }
43
+ /**
44
+ * @export
45
+ */
46
+ export declare const ParticipantTypeEnum: {
47
+ readonly Individual: "Individual";
48
+ readonly Team: "Team";
49
+ };
50
+ export type ParticipantTypeEnum = typeof ParticipantTypeEnum[keyof typeof ParticipantTypeEnum];
51
+ /**
52
+ * Check if a given object implements the Participant interface.
53
+ */
54
+ export declare function instanceOfParticipant(value: object): value is Participant;
55
+ export declare function ParticipantFromJSON(json: any): Participant;
56
+ export declare function ParticipantFromJSONTyped(json: any, ignoreDiscriminator: boolean): Participant;
57
+ export declare function ParticipantToJSON(json: any): Participant;
58
+ export declare function ParticipantToJSONTyped(value?: Participant | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,62 @@
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.ParticipantTypeEnum = void 0;
17
+ exports.instanceOfParticipant = instanceOfParticipant;
18
+ exports.ParticipantFromJSON = ParticipantFromJSON;
19
+ exports.ParticipantFromJSONTyped = ParticipantFromJSONTyped;
20
+ exports.ParticipantToJSON = ParticipantToJSON;
21
+ exports.ParticipantToJSONTyped = ParticipantToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.ParticipantTypeEnum = {
26
+ Individual: 'Individual',
27
+ Team: 'Team'
28
+ };
29
+ /**
30
+ * Check if a given object implements the Participant interface.
31
+ */
32
+ function instanceOfParticipant(value) {
33
+ return true;
34
+ }
35
+ function ParticipantFromJSON(json) {
36
+ return ParticipantFromJSONTyped(json, false);
37
+ }
38
+ function ParticipantFromJSONTyped(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
+ 'active': json['active'] == null ? undefined : json['active'],
47
+ };
48
+ }
49
+ function ParticipantToJSON(json) {
50
+ return ParticipantToJSONTyped(json, false);
51
+ }
52
+ function ParticipantToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'code': value['code'],
58
+ 'name': value['name'],
59
+ 'type': value['type'],
60
+ 'active': value['active'],
61
+ };
62
+ }
@@ -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 { Participant } from './Participant';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface ParticipantsResponse
18
+ */
19
+ export interface ParticipantsResponse {
20
+ /**
21
+ *
22
+ * @type {Meta}
23
+ * @memberof ParticipantsResponse
24
+ */
25
+ meta?: Meta;
26
+ /**
27
+ *
28
+ * @type {Array<Participant>}
29
+ * @memberof ParticipantsResponse
30
+ */
31
+ participants?: Array<Participant>;
32
+ }
33
+ /**
34
+ * Check if a given object implements the ParticipantsResponse interface.
35
+ */
36
+ export declare function instanceOfParticipantsResponse(value: object): value is ParticipantsResponse;
37
+ export declare function ParticipantsResponseFromJSON(json: any): ParticipantsResponse;
38
+ export declare function ParticipantsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ParticipantsResponse;
39
+ export declare function ParticipantsResponseToJSON(json: any): ParticipantsResponse;
40
+ export declare function ParticipantsResponseToJSONTyped(value?: ParticipantsResponse | 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.instanceOfParticipantsResponse = instanceOfParticipantsResponse;
17
+ exports.ParticipantsResponseFromJSON = ParticipantsResponseFromJSON;
18
+ exports.ParticipantsResponseFromJSONTyped = ParticipantsResponseFromJSONTyped;
19
+ exports.ParticipantsResponseToJSON = ParticipantsResponseToJSON;
20
+ exports.ParticipantsResponseToJSONTyped = ParticipantsResponseToJSONTyped;
21
+ const Meta_1 = require("./Meta");
22
+ const Participant_1 = require("./Participant");
23
+ /**
24
+ * Check if a given object implements the ParticipantsResponse interface.
25
+ */
26
+ function instanceOfParticipantsResponse(value) {
27
+ return true;
28
+ }
29
+ function ParticipantsResponseFromJSON(json) {
30
+ return ParticipantsResponseFromJSONTyped(json, false);
31
+ }
32
+ function ParticipantsResponseFromJSONTyped(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(Participant_1.ParticipantFromJSON)),
39
+ };
40
+ }
41
+ function ParticipantsResponseToJSON(json) {
42
+ return ParticipantsResponseToJSONTyped(json, false);
43
+ }
44
+ function ParticipantsResponseToJSONTyped(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(Participant_1.ParticipantToJSON)),
51
+ };
52
+ }
@@ -22,7 +22,7 @@ export interface SessionResponse {
22
22
  * @type {Meta}
23
23
  * @memberof SessionResponse
24
24
  */
25
- getMeta?: Meta;
25
+ meta?: Meta;
26
26
  /**
27
27
  *
28
28
  * @type {Array<Session>}
@@ -34,7 +34,7 @@ function SessionResponseFromJSONTyped(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
  'sessions': json['sessions'] == null ? undefined : (json['sessions'].map(Session_1.SessionFromJSON)),
39
39
  };
40
40
  }
@@ -46,7 +46,7 @@ function SessionResponseToJSONTyped(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
  'sessions': value['sessions'] == null ? undefined : (value['sessions'].map(Session_1.SessionToJSON)),
51
51
  };
52
52
  }