@monaco-protocol/client-v2 0.0.66 → 0.0.71

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 (55) hide show
  1. package/dist/apis/APIKeyManagementApi.d.ts +9 -9
  2. package/dist/apis/AppManagementApi.d.ts +12 -12
  3. package/dist/apis/CurrenciesApi.d.ts +6 -6
  4. package/dist/apis/EventCategoriesApi.d.ts +9 -9
  5. package/dist/apis/EventGroupsApi.d.ts +9 -9
  6. package/dist/apis/EventSubcategoriesApi.d.ts +21 -21
  7. package/dist/apis/EventsApi.d.ts +76 -34
  8. package/dist/apis/EventsApi.js +124 -0
  9. package/dist/apis/ExternalReferenceSourcesControllerApi.d.ts +27 -0
  10. package/dist/apis/ExternalReferenceSourcesControllerApi.js +62 -0
  11. package/dist/apis/HeartbeatManagementApi.d.ts +9 -9
  12. package/dist/apis/MarketPricesApi.d.ts +6 -6
  13. package/dist/apis/MarketTypesApi.d.ts +9 -9
  14. package/dist/apis/MarketsApi.d.ts +99 -57
  15. package/dist/apis/MarketsApi.js +126 -2
  16. package/dist/apis/OrdersApi.d.ts +33 -32
  17. package/dist/apis/OrdersApi.js +6 -4
  18. package/dist/apis/SessionManagementApi.d.ts +6 -6
  19. package/dist/apis/TradesApi.d.ts +6 -6
  20. package/dist/apis/WalletsApi.d.ts +32 -32
  21. package/dist/apis/WalletsApi.js +3 -5
  22. package/dist/apis/index.d.ts +1 -0
  23. package/dist/apis/index.js +1 -0
  24. package/dist/models/BatchCancelOrdersRequest.d.ts +50 -0
  25. package/dist/models/BatchCancelOrdersRequest.js +54 -0
  26. package/dist/models/Event.d.ts +6 -0
  27. package/dist/models/Event.js +2 -0
  28. package/dist/models/EventParticipant.d.ts +4 -2
  29. package/dist/models/EventResponse.d.ts +7 -0
  30. package/dist/models/EventResponse.js +3 -0
  31. package/dist/models/ExternalReference.d.ts +44 -0
  32. package/dist/models/ExternalReference.js +52 -0
  33. package/dist/models/ExternalReferenceSource.d.ts +38 -0
  34. package/dist/models/ExternalReferenceSource.js +50 -0
  35. package/dist/models/ExternalReferenceSourcesResponse.d.ts +40 -0
  36. package/dist/models/ExternalReferenceSourcesResponse.js +52 -0
  37. package/dist/models/Market.d.ts +6 -0
  38. package/dist/models/Market.js +2 -0
  39. package/dist/models/MarketResponse.d.ts +7 -0
  40. package/dist/models/MarketResponse.js +3 -0
  41. package/dist/models/Meta.d.ts +2 -0
  42. package/dist/models/Meta.js +2 -0
  43. package/dist/models/PagedEventResponse.d.ts +7 -0
  44. package/dist/models/PagedEventResponse.js +3 -0
  45. package/dist/models/PagedMarketResponse.d.ts +7 -0
  46. package/dist/models/PagedMarketResponse.js +3 -0
  47. package/dist/models/Participant.d.ts +7 -1
  48. package/dist/models/Participant.js +2 -0
  49. package/dist/models/UpdateReferenceRequest.d.ts +38 -0
  50. package/dist/models/UpdateReferenceRequest.js +54 -0
  51. package/dist/models/UpdateReferencesRequest.d.ts +33 -0
  52. package/dist/models/UpdateReferencesRequest.js +51 -0
  53. package/dist/models/index.d.ts +6 -1
  54. package/dist/models/index.js +6 -1
  55. package/package.json +2 -2
@@ -88,6 +88,12 @@ export interface Event {
88
88
  * @memberof Event
89
89
  */
90
90
  participants?: DocumentReference;
91
+ /**
92
+ *
93
+ * @type {DocumentReference}
94
+ * @memberof Event
95
+ */
96
+ externalReferences?: DocumentReference;
91
97
  }
92
98
  /**
93
99
  * Check if a given object implements the Event interface.
@@ -45,6 +45,7 @@ function EventFromJSONTyped(json, ignoreDiscriminator) {
45
45
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
46
46
  'modifiedAt': json['modifiedAt'] == null ? undefined : (new Date(json['modifiedAt'])),
47
47
  'participants': json['participants'] == null ? undefined : (0, DocumentReference_1.DocumentReferenceFromJSON)(json['participants']),
48
+ 'externalReferences': json['externalReferences'] == null ? undefined : (0, DocumentReference_1.DocumentReferenceFromJSON)(json['externalReferences']),
48
49
  };
49
50
  }
50
51
  function EventToJSON(json) {
@@ -67,5 +68,6 @@ function EventToJSONTyped(value, ignoreDiscriminator = false) {
67
68
  'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
68
69
  'modifiedAt': value['modifiedAt'] == null ? undefined : ((value['modifiedAt']).toISOString()),
69
70
  'participants': (0, DocumentReference_1.DocumentReferenceToJSON)(value['participants']),
71
+ 'externalReferences': (0, DocumentReference_1.DocumentReferenceToJSON)(value['externalReferences']),
70
72
  };
71
73
  }
@@ -10,19 +10,21 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
+ * This model is deprecated and will be removed in future versions. Please use the Participant model instead.
13
14
  *
15
+ * A participant in a given event.
14
16
  * @export
15
17
  * @interface EventParticipant
16
18
  */
17
19
  export interface EventParticipant {
18
20
  /**
19
- *
21
+ * Globally unique ID for this participant across all subcategories
20
22
  * @type {string}
21
23
  * @memberof EventParticipant
22
24
  */
23
25
  id?: string;
24
26
  /**
25
- *
27
+ * Unique code for this participant across all events in a given subcategory
26
28
  * @type {string}
27
29
  * @memberof EventParticipant
28
30
  */
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import type { Meta } from './Meta';
13
13
  import type { Category } from './Category';
14
+ import type { ExternalReference } from './ExternalReference';
14
15
  import type { Subcategory } from './Subcategory';
15
16
  import type { Event } from './Event';
16
17
  import type { EventGroup } from './EventGroup';
@@ -57,6 +58,12 @@ export interface EventResponse {
57
58
  * @memberof EventResponse
58
59
  */
59
60
  participants?: Array<EventParticipant>;
61
+ /**
62
+ *
63
+ * @type {Array<ExternalReference>}
64
+ * @memberof EventResponse
65
+ */
66
+ externalReferences?: Array<ExternalReference>;
60
67
  }
61
68
  /**
62
69
  * Check if a given object implements the EventResponse interface.
@@ -20,6 +20,7 @@ exports.EventResponseToJSON = EventResponseToJSON;
20
20
  exports.EventResponseToJSONTyped = EventResponseToJSONTyped;
21
21
  const Meta_1 = require("./Meta");
22
22
  const Category_1 = require("./Category");
23
+ const ExternalReference_1 = require("./ExternalReference");
23
24
  const Subcategory_1 = require("./Subcategory");
24
25
  const Event_1 = require("./Event");
25
26
  const EventGroup_1 = require("./EventGroup");
@@ -44,6 +45,7 @@ function EventResponseFromJSONTyped(json, ignoreDiscriminator) {
44
45
  'subcategories': json['subcategories'] == null ? undefined : (json['subcategories'].map(Subcategory_1.SubcategoryFromJSON)),
45
46
  'categories': json['categories'] == null ? undefined : (json['categories'].map(Category_1.CategoryFromJSON)),
46
47
  'participants': json['participants'] == null ? undefined : (json['participants'].map(EventParticipant_1.EventParticipantFromJSON)),
48
+ 'externalReferences': json['externalReferences'] == null ? undefined : (json['externalReferences'].map(ExternalReference_1.ExternalReferenceFromJSON)),
47
49
  };
48
50
  }
49
51
  function EventResponseToJSON(json) {
@@ -60,5 +62,6 @@ function EventResponseToJSONTyped(value, ignoreDiscriminator = false) {
60
62
  'subcategories': value['subcategories'] == null ? undefined : (value['subcategories'].map(Subcategory_1.SubcategoryToJSON)),
61
63
  'categories': value['categories'] == null ? undefined : (value['categories'].map(Category_1.CategoryToJSON)),
62
64
  'participants': value['participants'] == null ? undefined : (value['participants'].map(EventParticipant_1.EventParticipantToJSON)),
65
+ 'externalReferences': value['externalReferences'] == null ? undefined : (value['externalReferences'].map(ExternalReference_1.ExternalReferenceToJSON)),
63
66
  };
64
67
  }
@@ -0,0 +1,44 @@
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 ExternalReference
16
+ */
17
+ export interface ExternalReference {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof ExternalReference
22
+ */
23
+ id?: number;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ExternalReference
28
+ */
29
+ source?: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof ExternalReference
34
+ */
35
+ externalReference?: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the ExternalReference interface.
39
+ */
40
+ export declare function instanceOfExternalReference(value: object): value is ExternalReference;
41
+ export declare function ExternalReferenceFromJSON(json: any): ExternalReference;
42
+ export declare function ExternalReferenceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExternalReference;
43
+ export declare function ExternalReferenceToJSON(json: any): ExternalReference;
44
+ export declare function ExternalReferenceToJSONTyped(value?: ExternalReference | 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.instanceOfExternalReference = instanceOfExternalReference;
17
+ exports.ExternalReferenceFromJSON = ExternalReferenceFromJSON;
18
+ exports.ExternalReferenceFromJSONTyped = ExternalReferenceFromJSONTyped;
19
+ exports.ExternalReferenceToJSON = ExternalReferenceToJSON;
20
+ exports.ExternalReferenceToJSONTyped = ExternalReferenceToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ExternalReference interface.
23
+ */
24
+ function instanceOfExternalReference(value) {
25
+ return true;
26
+ }
27
+ function ExternalReferenceFromJSON(json) {
28
+ return ExternalReferenceFromJSONTyped(json, false);
29
+ }
30
+ function ExternalReferenceFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'id': json['id'] == null ? undefined : json['id'],
36
+ 'source': json['source'] == null ? undefined : json['source'],
37
+ 'externalReference': json['externalReference'] == null ? undefined : json['externalReference'],
38
+ };
39
+ }
40
+ function ExternalReferenceToJSON(json) {
41
+ return ExternalReferenceToJSONTyped(json, false);
42
+ }
43
+ function ExternalReferenceToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'id': value['id'],
49
+ 'source': value['source'],
50
+ 'externalReference': value['externalReference'],
51
+ };
52
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Monaco API
3
+ * A RESTful API that allows you to interact with the Monaco Exchange. Provides endpoints for managing Events, Markets, Sessions, Wallets and Orders. To interact with the API, a client must have an App Id and an API Key to authenticate and create a session.
4
+ *
5
+ * The version of the OpenAPI document: 0.1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ExternalReferenceSource
16
+ */
17
+ export interface ExternalReferenceSource {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ExternalReferenceSource
22
+ */
23
+ code?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ExternalReferenceSource
28
+ */
29
+ description?: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the ExternalReferenceSource interface.
33
+ */
34
+ export declare function instanceOfExternalReferenceSource(value: object): value is ExternalReferenceSource;
35
+ export declare function ExternalReferenceSourceFromJSON(json: any): ExternalReferenceSource;
36
+ export declare function ExternalReferenceSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExternalReferenceSource;
37
+ export declare function ExternalReferenceSourceToJSON(json: any): ExternalReferenceSource;
38
+ export declare function ExternalReferenceSourceToJSONTyped(value?: ExternalReferenceSource | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
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.instanceOfExternalReferenceSource = instanceOfExternalReferenceSource;
17
+ exports.ExternalReferenceSourceFromJSON = ExternalReferenceSourceFromJSON;
18
+ exports.ExternalReferenceSourceFromJSONTyped = ExternalReferenceSourceFromJSONTyped;
19
+ exports.ExternalReferenceSourceToJSON = ExternalReferenceSourceToJSON;
20
+ exports.ExternalReferenceSourceToJSONTyped = ExternalReferenceSourceToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ExternalReferenceSource interface.
23
+ */
24
+ function instanceOfExternalReferenceSource(value) {
25
+ return true;
26
+ }
27
+ function ExternalReferenceSourceFromJSON(json) {
28
+ return ExternalReferenceSourceFromJSONTyped(json, false);
29
+ }
30
+ function ExternalReferenceSourceFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'code': json['code'] == null ? undefined : json['code'],
36
+ 'description': json['description'] == null ? undefined : json['description'],
37
+ };
38
+ }
39
+ function ExternalReferenceSourceToJSON(json) {
40
+ return ExternalReferenceSourceToJSONTyped(json, false);
41
+ }
42
+ function ExternalReferenceSourceToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'code': value['code'],
48
+ 'description': value['description'],
49
+ };
50
+ }
@@ -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 { ExternalReferenceSource } from './ExternalReferenceSource';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface ExternalReferenceSourcesResponse
18
+ */
19
+ export interface ExternalReferenceSourcesResponse {
20
+ /**
21
+ *
22
+ * @type {Meta}
23
+ * @memberof ExternalReferenceSourcesResponse
24
+ */
25
+ meta?: Meta;
26
+ /**
27
+ *
28
+ * @type {Array<ExternalReferenceSource>}
29
+ * @memberof ExternalReferenceSourcesResponse
30
+ */
31
+ externalReferenceSources?: Array<ExternalReferenceSource>;
32
+ }
33
+ /**
34
+ * Check if a given object implements the ExternalReferenceSourcesResponse interface.
35
+ */
36
+ export declare function instanceOfExternalReferenceSourcesResponse(value: object): value is ExternalReferenceSourcesResponse;
37
+ export declare function ExternalReferenceSourcesResponseFromJSON(json: any): ExternalReferenceSourcesResponse;
38
+ export declare function ExternalReferenceSourcesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExternalReferenceSourcesResponse;
39
+ export declare function ExternalReferenceSourcesResponseToJSON(json: any): ExternalReferenceSourcesResponse;
40
+ export declare function ExternalReferenceSourcesResponseToJSONTyped(value?: ExternalReferenceSourcesResponse | 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.instanceOfExternalReferenceSourcesResponse = instanceOfExternalReferenceSourcesResponse;
17
+ exports.ExternalReferenceSourcesResponseFromJSON = ExternalReferenceSourcesResponseFromJSON;
18
+ exports.ExternalReferenceSourcesResponseFromJSONTyped = ExternalReferenceSourcesResponseFromJSONTyped;
19
+ exports.ExternalReferenceSourcesResponseToJSON = ExternalReferenceSourcesResponseToJSON;
20
+ exports.ExternalReferenceSourcesResponseToJSONTyped = ExternalReferenceSourcesResponseToJSONTyped;
21
+ const Meta_1 = require("./Meta");
22
+ const ExternalReferenceSource_1 = require("./ExternalReferenceSource");
23
+ /**
24
+ * Check if a given object implements the ExternalReferenceSourcesResponse interface.
25
+ */
26
+ function instanceOfExternalReferenceSourcesResponse(value) {
27
+ return true;
28
+ }
29
+ function ExternalReferenceSourcesResponseFromJSON(json) {
30
+ return ExternalReferenceSourcesResponseFromJSONTyped(json, false);
31
+ }
32
+ function ExternalReferenceSourcesResponseFromJSONTyped(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
+ 'externalReferenceSources': json['externalReferenceSources'] == null ? undefined : (json['externalReferenceSources'].map(ExternalReferenceSource_1.ExternalReferenceSourceFromJSON)),
39
+ };
40
+ }
41
+ function ExternalReferenceSourcesResponseToJSON(json) {
42
+ return ExternalReferenceSourcesResponseToJSONTyped(json, false);
43
+ }
44
+ function ExternalReferenceSourcesResponseToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ '_meta': (0, Meta_1.MetaToJSON)(value['meta']),
50
+ 'externalReferenceSources': value['externalReferenceSources'] == null ? undefined : (value['externalReferenceSources'].map(ExternalReferenceSource_1.ExternalReferenceSourceToJSON)),
51
+ };
52
+ }
@@ -130,6 +130,12 @@ export interface Market {
130
130
  * @memberof Market
131
131
  */
132
132
  marketOutcomes?: DocumentReference;
133
+ /**
134
+ *
135
+ * @type {DocumentReference}
136
+ * @memberof Market
137
+ */
138
+ externalReferences?: DocumentReference;
133
139
  /**
134
140
  *
135
141
  * @type {Date}
@@ -88,6 +88,7 @@ function MarketFromJSONTyped(json, ignoreDiscriminator) {
88
88
  'eventStartAction': json['eventStartAction'] == null ? undefined : json['eventStartAction'],
89
89
  'status': json['status'] == null ? undefined : json['status'],
90
90
  'marketOutcomes': json['marketOutcomes'] == null ? undefined : (0, DocumentReference_1.DocumentReferenceFromJSON)(json['marketOutcomes']),
91
+ 'externalReferences': json['externalReferences'] == null ? undefined : (0, DocumentReference_1.DocumentReferenceFromJSON)(json['externalReferences']),
91
92
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
92
93
  'modifiedAt': json['modifiedAt'] == null ? undefined : (new Date(json['modifiedAt'])),
93
94
  };
@@ -119,6 +120,7 @@ function MarketToJSONTyped(value, ignoreDiscriminator = false) {
119
120
  'eventStartAction': value['eventStartAction'],
120
121
  'status': value['status'],
121
122
  'marketOutcomes': (0, DocumentReference_1.DocumentReferenceToJSON)(value['marketOutcomes']),
123
+ 'externalReferences': (0, DocumentReference_1.DocumentReferenceToJSON)(value['externalReferences']),
122
124
  'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
123
125
  'modifiedAt': value['modifiedAt'] == null ? undefined : ((value['modifiedAt']).toISOString()),
124
126
  };
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import type { MarketOutcomeSummary } from './MarketOutcomeSummary';
13
13
  import type { Meta } from './Meta';
14
+ import type { ExternalReference } from './ExternalReference';
14
15
  import type { CategorySummary } from './CategorySummary';
15
16
  import type { EventSummary } from './EventSummary';
16
17
  import type { SubcategorySummary } from './SubcategorySummary';
@@ -71,6 +72,12 @@ export interface MarketResponse {
71
72
  * @memberof MarketResponse
72
73
  */
73
74
  categories?: Array<CategorySummary>;
75
+ /**
76
+ *
77
+ * @type {Array<ExternalReference>}
78
+ * @memberof MarketResponse
79
+ */
80
+ externalReferences?: Array<ExternalReference>;
74
81
  }
75
82
  /**
76
83
  * Check if a given object implements the MarketResponse interface.
@@ -20,6 +20,7 @@ exports.MarketResponseToJSON = MarketResponseToJSON;
20
20
  exports.MarketResponseToJSONTyped = MarketResponseToJSONTyped;
21
21
  const MarketOutcomeSummary_1 = require("./MarketOutcomeSummary");
22
22
  const Meta_1 = require("./Meta");
23
+ const ExternalReference_1 = require("./ExternalReference");
23
24
  const CategorySummary_1 = require("./CategorySummary");
24
25
  const EventSummary_1 = require("./EventSummary");
25
26
  const SubcategorySummary_1 = require("./SubcategorySummary");
@@ -48,6 +49,7 @@ function MarketResponseFromJSONTyped(json, ignoreDiscriminator) {
48
49
  'eventGroups': json['eventGroups'] == null ? undefined : (json['eventGroups'].map(EventGroupSummary_1.EventGroupSummaryFromJSON)),
49
50
  'subcategories': json['subcategories'] == null ? undefined : (json['subcategories'].map(SubcategorySummary_1.SubcategorySummaryFromJSON)),
50
51
  'categories': json['categories'] == null ? undefined : (json['categories'].map(CategorySummary_1.CategorySummaryFromJSON)),
52
+ 'externalReferences': json['externalReferences'] == null ? undefined : (json['externalReferences'].map(ExternalReference_1.ExternalReferenceFromJSON)),
51
53
  };
52
54
  }
53
55
  function MarketResponseToJSON(json) {
@@ -66,5 +68,6 @@ function MarketResponseToJSONTyped(value, ignoreDiscriminator = false) {
66
68
  'eventGroups': value['eventGroups'] == null ? undefined : (value['eventGroups'].map(EventGroupSummary_1.EventGroupSummaryToJSON)),
67
69
  'subcategories': value['subcategories'] == null ? undefined : (value['subcategories'].map(SubcategorySummary_1.SubcategorySummaryToJSON)),
68
70
  'categories': value['categories'] == null ? undefined : (value['categories'].map(CategorySummary_1.CategorySummaryToJSON)),
71
+ 'externalReferences': value['externalReferences'] == null ? undefined : (value['externalReferences'].map(ExternalReference_1.ExternalReferenceToJSON)),
69
72
  };
70
73
  }
@@ -48,6 +48,8 @@ export declare const MetaPrimaryDocumentEnum: {
48
48
  readonly DepositRequests: "depositRequests";
49
49
  readonly Events: "events";
50
50
  readonly EventGroups: "eventGroups";
51
+ readonly ExternalReferences: "externalReferences";
52
+ readonly ExternalReferenceSources: "externalReferenceSources";
51
53
  readonly Heartbeats: "heartbeats";
52
54
  readonly Markets: "markets";
53
55
  readonly MarketOutcomes: "marketOutcomes";
@@ -33,6 +33,8 @@ exports.MetaPrimaryDocumentEnum = {
33
33
  DepositRequests: 'depositRequests',
34
34
  Events: 'events',
35
35
  EventGroups: 'eventGroups',
36
+ ExternalReferences: 'externalReferences',
37
+ ExternalReferenceSources: 'externalReferenceSources',
36
38
  Heartbeats: 'heartbeats',
37
39
  Markets: 'markets',
38
40
  MarketOutcomes: 'marketOutcomes',
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import type { Meta } from './Meta';
13
13
  import type { Category } from './Category';
14
+ import type { ExternalReference } from './ExternalReference';
14
15
  import type { Subcategory } from './Subcategory';
15
16
  import type { Event } from './Event';
16
17
  import type { EventGroup } from './EventGroup';
@@ -57,6 +58,12 @@ export interface PagedEventResponse {
57
58
  * @memberof PagedEventResponse
58
59
  */
59
60
  participants?: Array<EventParticipant>;
61
+ /**
62
+ *
63
+ * @type {Array<ExternalReference>}
64
+ * @memberof PagedEventResponse
65
+ */
66
+ externalReferences?: Array<ExternalReference>;
60
67
  }
61
68
  /**
62
69
  * Check if a given object implements the PagedEventResponse interface.
@@ -20,6 +20,7 @@ exports.PagedEventResponseToJSON = PagedEventResponseToJSON;
20
20
  exports.PagedEventResponseToJSONTyped = PagedEventResponseToJSONTyped;
21
21
  const Meta_1 = require("./Meta");
22
22
  const Category_1 = require("./Category");
23
+ const ExternalReference_1 = require("./ExternalReference");
23
24
  const Subcategory_1 = require("./Subcategory");
24
25
  const Event_1 = require("./Event");
25
26
  const EventGroup_1 = require("./EventGroup");
@@ -44,6 +45,7 @@ function PagedEventResponseFromJSONTyped(json, ignoreDiscriminator) {
44
45
  'subcategories': json['subcategories'] == null ? undefined : (json['subcategories'].map(Subcategory_1.SubcategoryFromJSON)),
45
46
  'categories': json['categories'] == null ? undefined : (json['categories'].map(Category_1.CategoryFromJSON)),
46
47
  'participants': json['participants'] == null ? undefined : (json['participants'].map(EventParticipant_1.EventParticipantFromJSON)),
48
+ 'externalReferences': json['externalReferences'] == null ? undefined : (json['externalReferences'].map(ExternalReference_1.ExternalReferenceFromJSON)),
47
49
  };
48
50
  }
49
51
  function PagedEventResponseToJSON(json) {
@@ -60,5 +62,6 @@ function PagedEventResponseToJSONTyped(value, ignoreDiscriminator = false) {
60
62
  'subcategories': value['subcategories'] == null ? undefined : (value['subcategories'].map(Subcategory_1.SubcategoryToJSON)),
61
63
  'categories': value['categories'] == null ? undefined : (value['categories'].map(Category_1.CategoryToJSON)),
62
64
  'participants': value['participants'] == null ? undefined : (value['participants'].map(EventParticipant_1.EventParticipantToJSON)),
65
+ 'externalReferences': value['externalReferences'] == null ? undefined : (value['externalReferences'].map(ExternalReference_1.ExternalReferenceToJSON)),
63
66
  };
64
67
  }
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import type { MarketOutcomeSummary } from './MarketOutcomeSummary';
13
13
  import type { Meta } from './Meta';
14
+ import type { ExternalReference } from './ExternalReference';
14
15
  import type { CategorySummary } from './CategorySummary';
15
16
  import type { EventSummary } from './EventSummary';
16
17
  import type { SubcategorySummary } from './SubcategorySummary';
@@ -71,6 +72,12 @@ export interface PagedMarketResponse {
71
72
  * @memberof PagedMarketResponse
72
73
  */
73
74
  categories?: Array<CategorySummary>;
75
+ /**
76
+ *
77
+ * @type {Array<ExternalReference>}
78
+ * @memberof PagedMarketResponse
79
+ */
80
+ externalReferences?: Array<ExternalReference>;
74
81
  }
75
82
  /**
76
83
  * Check if a given object implements the PagedMarketResponse interface.
@@ -20,6 +20,7 @@ exports.PagedMarketResponseToJSON = PagedMarketResponseToJSON;
20
20
  exports.PagedMarketResponseToJSONTyped = PagedMarketResponseToJSONTyped;
21
21
  const MarketOutcomeSummary_1 = require("./MarketOutcomeSummary");
22
22
  const Meta_1 = require("./Meta");
23
+ const ExternalReference_1 = require("./ExternalReference");
23
24
  const CategorySummary_1 = require("./CategorySummary");
24
25
  const EventSummary_1 = require("./EventSummary");
25
26
  const SubcategorySummary_1 = require("./SubcategorySummary");
@@ -48,6 +49,7 @@ function PagedMarketResponseFromJSONTyped(json, ignoreDiscriminator) {
48
49
  'eventGroups': json['eventGroups'] == null ? undefined : (json['eventGroups'].map(EventGroupSummary_1.EventGroupSummaryFromJSON)),
49
50
  'subcategories': json['subcategories'] == null ? undefined : (json['subcategories'].map(SubcategorySummary_1.SubcategorySummaryFromJSON)),
50
51
  'categories': json['categories'] == null ? undefined : (json['categories'].map(CategorySummary_1.CategorySummaryFromJSON)),
52
+ 'externalReferences': json['externalReferences'] == null ? undefined : (json['externalReferences'].map(ExternalReference_1.ExternalReferenceFromJSON)),
51
53
  };
52
54
  }
53
55
  function PagedMarketResponseToJSON(json) {
@@ -66,5 +68,6 @@ function PagedMarketResponseToJSONTyped(value, ignoreDiscriminator = false) {
66
68
  'eventGroups': value['eventGroups'] == null ? undefined : (value['eventGroups'].map(EventGroupSummary_1.EventGroupSummaryToJSON)),
67
69
  'subcategories': value['subcategories'] == null ? undefined : (value['subcategories'].map(SubcategorySummary_1.SubcategorySummaryToJSON)),
68
70
  'categories': value['categories'] == null ? undefined : (value['categories'].map(CategorySummary_1.CategorySummaryToJSON)),
71
+ 'externalReferences': value['externalReferences'] == null ? undefined : (value['externalReferences'].map(ExternalReference_1.ExternalReferenceToJSON)),
69
72
  };
70
73
  }
@@ -16,7 +16,13 @@
16
16
  */
17
17
  export interface Participant {
18
18
  /**
19
- *
19
+ * Globally unique ID for this participant across all subcategories
20
+ * @type {string}
21
+ * @memberof Participant
22
+ */
23
+ id?: string;
24
+ /**
25
+ * Unique code for this participant across all events in a given subcategory
20
26
  * @type {string}
21
27
  * @memberof Participant
22
28
  */
@@ -40,6 +40,7 @@ function ParticipantFromJSONTyped(json, ignoreDiscriminator) {
40
40
  return json;
41
41
  }
42
42
  return {
43
+ 'id': json['id'] == null ? undefined : json['id'],
43
44
  'code': json['code'] == null ? undefined : json['code'],
44
45
  'name': json['name'] == null ? undefined : json['name'],
45
46
  'type': json['type'] == null ? undefined : json['type'],
@@ -54,6 +55,7 @@ function ParticipantToJSONTyped(value, ignoreDiscriminator = false) {
54
55
  return value;
55
56
  }
56
57
  return {
58
+ 'id': value['id'],
57
59
  'code': value['code'],
58
60
  'name': value['name'],
59
61
  'type': value['type'],
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Monaco API
3
+ * A RESTful API that allows you to interact with the Monaco Exchange. Provides endpoints for managing Events, Markets, Sessions, Wallets and Orders. To interact with the API, a client must have an App Id and an API Key to authenticate and create a session.
4
+ *
5
+ * The version of the OpenAPI document: 0.1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface UpdateReferenceRequest
16
+ */
17
+ export interface UpdateReferenceRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof UpdateReferenceRequest
22
+ */
23
+ source: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof UpdateReferenceRequest
28
+ */
29
+ externalReference: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the UpdateReferenceRequest interface.
33
+ */
34
+ export declare function instanceOfUpdateReferenceRequest(value: object): value is UpdateReferenceRequest;
35
+ export declare function UpdateReferenceRequestFromJSON(json: any): UpdateReferenceRequest;
36
+ export declare function UpdateReferenceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateReferenceRequest;
37
+ export declare function UpdateReferenceRequestToJSON(json: any): UpdateReferenceRequest;
38
+ export declare function UpdateReferenceRequestToJSONTyped(value?: UpdateReferenceRequest | null, ignoreDiscriminator?: boolean): any;