@monaco-protocol/client-v2 0.0.73 → 0.0.84-dev.0
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.
- package/dist/apis/EventGroupsApi.d.ts +13 -0
- package/dist/apis/EventGroupsApi.js +37 -0
- package/dist/apis/EventSubcategoriesApi.d.ts +40 -1
- package/dist/apis/EventSubcategoriesApi.js +115 -0
- package/dist/apis/EventsApi.d.ts +11 -11
- package/dist/apis/EventsApi.js +20 -20
- package/dist/apis/MarketsApi.d.ts +24 -10
- package/dist/apis/MarketsApi.js +59 -18
- package/dist/apis/OrdersApi.d.ts +29 -1
- package/dist/apis/OrdersApi.js +74 -0
- package/dist/apis/ParticipantsApi.d.ts +57 -0
- package/dist/apis/ParticipantsApi.js +148 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AddMarketOutcomeRequest.d.ts +6 -0
- package/dist/models/AddMarketOutcomeRequest.js +2 -0
- package/dist/models/AddParticipantRequest.d.ts +10 -3
- package/dist/models/AddParticipantRequest.js +12 -3
- package/dist/models/AddParticipantsRequest.d.ts +1 -1
- package/dist/models/AddParticipantsRequest.js +4 -2
- package/dist/models/App.d.ts +6 -0
- package/dist/models/App.js +2 -0
- package/dist/models/BatchOrderResponseOrdersInner.d.ts +2 -2
- package/dist/models/BatchOrderResponseOrdersInner.js +7 -7
- package/dist/models/CategorySummaryWithDates.d.ts +52 -0
- package/dist/models/CategorySummaryWithDates.js +54 -0
- package/dist/models/CreateEventRequest.d.ts +7 -0
- package/dist/models/CreateEventRequest.js +3 -0
- package/dist/models/CreateMarketRequest.d.ts +7 -0
- package/dist/models/CreateMarketRequest.js +3 -0
- package/dist/models/EventGroupSummaryWithDates.d.ts +59 -0
- package/dist/models/EventGroupSummaryWithDates.js +57 -0
- package/dist/models/EventResponse.d.ts +9 -9
- package/dist/models/EventResponse.js +9 -9
- package/dist/models/IDResponse.d.ts +39 -0
- package/dist/models/IDResponse.js +51 -0
- package/dist/models/MarketOutcomeSummary.d.ts +7 -0
- package/dist/models/MarketOutcomeSummary.js +3 -0
- package/dist/models/MarketResponse.d.ts +7 -0
- package/dist/models/MarketResponse.js +3 -0
- package/dist/models/Meta.d.ts +1 -0
- package/dist/models/Meta.js +1 -0
- package/dist/models/Order.d.ts +1 -1
- package/dist/models/Order.js +3 -1
- package/dist/models/OrderFailure.d.ts +51 -0
- package/dist/models/OrderFailure.js +52 -0
- package/dist/models/PagedEventResponse.d.ts +9 -9
- package/dist/models/PagedEventResponse.js +9 -9
- package/dist/models/PagedMarketResponse.d.ts +7 -0
- package/dist/models/PagedMarketResponse.js +3 -0
- package/dist/models/Participant.d.ts +7 -0
- package/dist/models/Participant.js +3 -0
- package/dist/models/ParticipantsResponse.d.ts +7 -0
- package/dist/models/ParticipantsResponse.js +3 -0
- package/dist/models/Subcategory.d.ts +6 -0
- package/dist/models/Subcategory.js +2 -0
- package/dist/models/SubcategoryResponse.d.ts +7 -0
- package/dist/models/SubcategoryResponse.js +3 -0
- package/dist/models/SubcategorySummaryWithDates.d.ts +59 -0
- package/dist/models/SubcategorySummaryWithDates.js +57 -0
- package/dist/models/UpdateMarketOutcomeRequest.d.ts +32 -0
- package/dist/models/UpdateMarketOutcomeRequest.js +48 -0
- package/dist/models/WithdrawalRequest.d.ts +2 -0
- package/dist/models/WithdrawalRequest.js +2 -0
- package/dist/models/index.d.ts +6 -1
- package/dist/models/index.js +6 -1
- package/package.json +1 -1
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import type { MarketOutcomeSummary } from './MarketOutcomeSummary';
|
|
13
13
|
import type { Meta } from './Meta';
|
|
14
14
|
import type { ExternalReference } from './ExternalReference';
|
|
15
|
+
import type { Participant } from './Participant';
|
|
15
16
|
import type { CategorySummary } from './CategorySummary';
|
|
16
17
|
import type { EventSummary } from './EventSummary';
|
|
17
18
|
import type { SubcategorySummary } from './SubcategorySummary';
|
|
@@ -78,6 +79,12 @@ export interface MarketResponse {
|
|
|
78
79
|
* @memberof MarketResponse
|
|
79
80
|
*/
|
|
80
81
|
externalReferences?: Array<ExternalReference>;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {Array<Participant>}
|
|
85
|
+
* @memberof MarketResponse
|
|
86
|
+
*/
|
|
87
|
+
participants?: Array<Participant>;
|
|
81
88
|
}
|
|
82
89
|
/**
|
|
83
90
|
* Check if a given object implements the MarketResponse interface.
|
|
@@ -21,6 +21,7 @@ exports.MarketResponseToJSONTyped = MarketResponseToJSONTyped;
|
|
|
21
21
|
const MarketOutcomeSummary_1 = require("./MarketOutcomeSummary");
|
|
22
22
|
const Meta_1 = require("./Meta");
|
|
23
23
|
const ExternalReference_1 = require("./ExternalReference");
|
|
24
|
+
const Participant_1 = require("./Participant");
|
|
24
25
|
const CategorySummary_1 = require("./CategorySummary");
|
|
25
26
|
const EventSummary_1 = require("./EventSummary");
|
|
26
27
|
const SubcategorySummary_1 = require("./SubcategorySummary");
|
|
@@ -50,6 +51,7 @@ function MarketResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
51
|
'subcategories': json['subcategories'] == null ? undefined : (json['subcategories'].map(SubcategorySummary_1.SubcategorySummaryFromJSON)),
|
|
51
52
|
'categories': json['categories'] == null ? undefined : (json['categories'].map(CategorySummary_1.CategorySummaryFromJSON)),
|
|
52
53
|
'externalReferences': json['externalReferences'] == null ? undefined : (json['externalReferences'].map(ExternalReference_1.ExternalReferenceFromJSON)),
|
|
54
|
+
'participants': json['participants'] == null ? undefined : (json['participants'].map(Participant_1.ParticipantFromJSON)),
|
|
53
55
|
};
|
|
54
56
|
}
|
|
55
57
|
function MarketResponseToJSON(json) {
|
|
@@ -69,5 +71,6 @@ function MarketResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
69
71
|
'subcategories': value['subcategories'] == null ? undefined : (value['subcategories'].map(SubcategorySummary_1.SubcategorySummaryToJSON)),
|
|
70
72
|
'categories': value['categories'] == null ? undefined : (value['categories'].map(CategorySummary_1.CategorySummaryToJSON)),
|
|
71
73
|
'externalReferences': value['externalReferences'] == null ? undefined : (value['externalReferences'].map(ExternalReference_1.ExternalReferenceToJSON)),
|
|
74
|
+
'participants': value['participants'] == null ? undefined : (value['participants'].map(Participant_1.ParticipantToJSON)),
|
|
72
75
|
};
|
|
73
76
|
}
|
package/dist/models/Meta.d.ts
CHANGED
|
@@ -51,6 +51,7 @@ export declare const MetaPrimaryDocumentEnum: {
|
|
|
51
51
|
readonly ExternalReferences: "externalReferences";
|
|
52
52
|
readonly ExternalReferenceSources: "externalReferenceSources";
|
|
53
53
|
readonly Heartbeats: "heartbeats";
|
|
54
|
+
readonly Ids: "ids";
|
|
54
55
|
readonly Markets: "markets";
|
|
55
56
|
readonly MarketOutcomes: "marketOutcomes";
|
|
56
57
|
readonly MarketPositions: "marketPositions";
|
package/dist/models/Meta.js
CHANGED
|
@@ -36,6 +36,7 @@ exports.MetaPrimaryDocumentEnum = {
|
|
|
36
36
|
ExternalReferences: 'externalReferences',
|
|
37
37
|
ExternalReferenceSources: 'externalReferenceSources',
|
|
38
38
|
Heartbeats: 'heartbeats',
|
|
39
|
+
Ids: 'ids',
|
|
39
40
|
Markets: 'markets',
|
|
40
41
|
MarketOutcomes: 'marketOutcomes',
|
|
41
42
|
MarketPositions: 'marketPositions',
|
package/dist/models/Order.d.ts
CHANGED
package/dist/models/Order.js
CHANGED
|
@@ -50,6 +50,8 @@ exports.OrderMatchBehaviorEnum = {
|
|
|
50
50
|
* Check if a given object implements the Order interface.
|
|
51
51
|
*/
|
|
52
52
|
function instanceOfOrder(value) {
|
|
53
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
54
|
+
return false;
|
|
53
55
|
return true;
|
|
54
56
|
}
|
|
55
57
|
function OrderFromJSON(json) {
|
|
@@ -60,7 +62,7 @@ function OrderFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
60
62
|
return json;
|
|
61
63
|
}
|
|
62
64
|
return {
|
|
63
|
-
'id': json['id']
|
|
65
|
+
'id': json['id'],
|
|
64
66
|
'appId': json['appId'] == null ? undefined : json['appId'],
|
|
65
67
|
'market': json['market'] == null ? undefined : (0, DocumentReference_1.DocumentReferenceFromJSON)(json['market']),
|
|
66
68
|
'walletId': json['walletId'] == null ? undefined : json['walletId'],
|
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
* Order operation error
|
|
14
|
+
* @export
|
|
15
|
+
* @interface OrderFailure
|
|
16
|
+
*/
|
|
17
|
+
export interface OrderFailure {
|
|
18
|
+
/**
|
|
19
|
+
* Order operation error code describing type of an error. Possible values:
|
|
20
|
+
* MARKET_NOT_FOUND,
|
|
21
|
+
* INVALID_MARKET_STATUS,
|
|
22
|
+
* SUSPENDED_MARKET,
|
|
23
|
+
* MARKET_OUTCOME_NOT_FOUND,
|
|
24
|
+
* COMMISSION_RATE_NOT_FOUND,
|
|
25
|
+
* WALLET_NOT_FOUND,
|
|
26
|
+
* WALLET_INSUFFICIENT_CREDIT,
|
|
27
|
+
* WALLET_ACCOUNT_NOT_FOUND,
|
|
28
|
+
* WALLET_ACCOUNT_INSUFFICIENT_CREDIT,
|
|
29
|
+
* MARKET_POSITION_NOT_FOUND,
|
|
30
|
+
* ORDER_ALREADY_EXISTS,
|
|
31
|
+
* INTERRUPTED
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof OrderFailure
|
|
35
|
+
*/
|
|
36
|
+
errorCode: string;
|
|
37
|
+
/**
|
|
38
|
+
* Order operation error detailed message
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof OrderFailure
|
|
41
|
+
*/
|
|
42
|
+
errorMessage?: string;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the OrderFailure interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfOrderFailure(value: object): value is OrderFailure;
|
|
48
|
+
export declare function OrderFailureFromJSON(json: any): OrderFailure;
|
|
49
|
+
export declare function OrderFailureFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderFailure;
|
|
50
|
+
export declare function OrderFailureToJSON(json: any): OrderFailure;
|
|
51
|
+
export declare function OrderFailureToJSONTyped(value?: OrderFailure | 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.instanceOfOrderFailure = instanceOfOrderFailure;
|
|
17
|
+
exports.OrderFailureFromJSON = OrderFailureFromJSON;
|
|
18
|
+
exports.OrderFailureFromJSONTyped = OrderFailureFromJSONTyped;
|
|
19
|
+
exports.OrderFailureToJSON = OrderFailureToJSON;
|
|
20
|
+
exports.OrderFailureToJSONTyped = OrderFailureToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the OrderFailure interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfOrderFailure(value) {
|
|
25
|
+
if (!('errorCode' in value) || value['errorCode'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function OrderFailureFromJSON(json) {
|
|
30
|
+
return OrderFailureFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function OrderFailureFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'errorCode': json['errorCode'],
|
|
38
|
+
'errorMessage': json['errorMessage'] == null ? undefined : json['errorMessage'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function OrderFailureToJSON(json) {
|
|
42
|
+
return OrderFailureToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function OrderFailureToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'errorCode': value['errorCode'],
|
|
50
|
+
'errorMessage': value['errorMessage'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { Meta } from './Meta';
|
|
13
|
-
import type { Category } from './Category';
|
|
14
13
|
import type { ExternalReference } from './ExternalReference';
|
|
15
|
-
import type {
|
|
14
|
+
import type { CategorySummaryWithDates } from './CategorySummaryWithDates';
|
|
16
15
|
import type { Event } from './Event';
|
|
17
|
-
import type {
|
|
16
|
+
import type { EventGroupSummaryWithDates } from './EventGroupSummaryWithDates';
|
|
17
|
+
import type { SubcategorySummaryWithDates } from './SubcategorySummaryWithDates';
|
|
18
18
|
import type { EventParticipant } from './EventParticipant';
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
@@ -36,22 +36,22 @@ export interface PagedEventResponse {
|
|
|
36
36
|
events?: Array<Event>;
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
39
|
-
* @type {Array<
|
|
39
|
+
* @type {Array<EventGroupSummaryWithDates>}
|
|
40
40
|
* @memberof PagedEventResponse
|
|
41
41
|
*/
|
|
42
|
-
eventGroups?: Array<
|
|
42
|
+
eventGroups?: Array<EventGroupSummaryWithDates>;
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
|
-
* @type {Array<
|
|
45
|
+
* @type {Array<SubcategorySummaryWithDates>}
|
|
46
46
|
* @memberof PagedEventResponse
|
|
47
47
|
*/
|
|
48
|
-
subcategories?: Array<
|
|
48
|
+
subcategories?: Array<SubcategorySummaryWithDates>;
|
|
49
49
|
/**
|
|
50
50
|
*
|
|
51
|
-
* @type {Array<
|
|
51
|
+
* @type {Array<CategorySummaryWithDates>}
|
|
52
52
|
* @memberof PagedEventResponse
|
|
53
53
|
*/
|
|
54
|
-
categories?: Array<
|
|
54
|
+
categories?: Array<CategorySummaryWithDates>;
|
|
55
55
|
/**
|
|
56
56
|
*
|
|
57
57
|
* @type {Array<EventParticipant>}
|
|
@@ -19,11 +19,11 @@ exports.PagedEventResponseFromJSONTyped = PagedEventResponseFromJSONTyped;
|
|
|
19
19
|
exports.PagedEventResponseToJSON = PagedEventResponseToJSON;
|
|
20
20
|
exports.PagedEventResponseToJSONTyped = PagedEventResponseToJSONTyped;
|
|
21
21
|
const Meta_1 = require("./Meta");
|
|
22
|
-
const Category_1 = require("./Category");
|
|
23
22
|
const ExternalReference_1 = require("./ExternalReference");
|
|
24
|
-
const
|
|
23
|
+
const CategorySummaryWithDates_1 = require("./CategorySummaryWithDates");
|
|
25
24
|
const Event_1 = require("./Event");
|
|
26
|
-
const
|
|
25
|
+
const EventGroupSummaryWithDates_1 = require("./EventGroupSummaryWithDates");
|
|
26
|
+
const SubcategorySummaryWithDates_1 = require("./SubcategorySummaryWithDates");
|
|
27
27
|
const EventParticipant_1 = require("./EventParticipant");
|
|
28
28
|
/**
|
|
29
29
|
* Check if a given object implements the PagedEventResponse interface.
|
|
@@ -41,9 +41,9 @@ function PagedEventResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
41
|
return {
|
|
42
42
|
'meta': json['_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['_meta']),
|
|
43
43
|
'events': json['events'] == null ? undefined : (json['events'].map(Event_1.EventFromJSON)),
|
|
44
|
-
'eventGroups': json['eventGroups'] == null ? undefined : (json['eventGroups'].map(
|
|
45
|
-
'subcategories': json['subcategories'] == null ? undefined : (json['subcategories'].map(
|
|
46
|
-
'categories': json['categories'] == null ? undefined : (json['categories'].map(
|
|
44
|
+
'eventGroups': json['eventGroups'] == null ? undefined : (json['eventGroups'].map(EventGroupSummaryWithDates_1.EventGroupSummaryWithDatesFromJSON)),
|
|
45
|
+
'subcategories': json['subcategories'] == null ? undefined : (json['subcategories'].map(SubcategorySummaryWithDates_1.SubcategorySummaryWithDatesFromJSON)),
|
|
46
|
+
'categories': json['categories'] == null ? undefined : (json['categories'].map(CategorySummaryWithDates_1.CategorySummaryWithDatesFromJSON)),
|
|
47
47
|
'participants': json['participants'] == null ? undefined : (json['participants'].map(EventParticipant_1.EventParticipantFromJSON)),
|
|
48
48
|
'externalReferences': json['externalReferences'] == null ? undefined : (json['externalReferences'].map(ExternalReference_1.ExternalReferenceFromJSON)),
|
|
49
49
|
};
|
|
@@ -58,9 +58,9 @@ function PagedEventResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
58
58
|
return {
|
|
59
59
|
'_meta': (0, Meta_1.MetaToJSON)(value['meta']),
|
|
60
60
|
'events': value['events'] == null ? undefined : (value['events'].map(Event_1.EventToJSON)),
|
|
61
|
-
'eventGroups': value['eventGroups'] == null ? undefined : (value['eventGroups'].map(
|
|
62
|
-
'subcategories': value['subcategories'] == null ? undefined : (value['subcategories'].map(
|
|
63
|
-
'categories': value['categories'] == null ? undefined : (value['categories'].map(
|
|
61
|
+
'eventGroups': value['eventGroups'] == null ? undefined : (value['eventGroups'].map(EventGroupSummaryWithDates_1.EventGroupSummaryWithDatesToJSON)),
|
|
62
|
+
'subcategories': value['subcategories'] == null ? undefined : (value['subcategories'].map(SubcategorySummaryWithDates_1.SubcategorySummaryWithDatesToJSON)),
|
|
63
|
+
'categories': value['categories'] == null ? undefined : (value['categories'].map(CategorySummaryWithDates_1.CategorySummaryWithDatesToJSON)),
|
|
64
64
|
'participants': value['participants'] == null ? undefined : (value['participants'].map(EventParticipant_1.EventParticipantToJSON)),
|
|
65
65
|
'externalReferences': value['externalReferences'] == null ? undefined : (value['externalReferences'].map(ExternalReference_1.ExternalReferenceToJSON)),
|
|
66
66
|
};
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import type { MarketOutcomeSummary } from './MarketOutcomeSummary';
|
|
13
13
|
import type { Meta } from './Meta';
|
|
14
14
|
import type { ExternalReference } from './ExternalReference';
|
|
15
|
+
import type { Participant } from './Participant';
|
|
15
16
|
import type { CategorySummary } from './CategorySummary';
|
|
16
17
|
import type { EventSummary } from './EventSummary';
|
|
17
18
|
import type { SubcategorySummary } from './SubcategorySummary';
|
|
@@ -78,6 +79,12 @@ export interface PagedMarketResponse {
|
|
|
78
79
|
* @memberof PagedMarketResponse
|
|
79
80
|
*/
|
|
80
81
|
externalReferences?: Array<ExternalReference>;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {Array<Participant>}
|
|
85
|
+
* @memberof PagedMarketResponse
|
|
86
|
+
*/
|
|
87
|
+
participants?: Array<Participant>;
|
|
81
88
|
}
|
|
82
89
|
/**
|
|
83
90
|
* Check if a given object implements the PagedMarketResponse interface.
|
|
@@ -21,6 +21,7 @@ exports.PagedMarketResponseToJSONTyped = PagedMarketResponseToJSONTyped;
|
|
|
21
21
|
const MarketOutcomeSummary_1 = require("./MarketOutcomeSummary");
|
|
22
22
|
const Meta_1 = require("./Meta");
|
|
23
23
|
const ExternalReference_1 = require("./ExternalReference");
|
|
24
|
+
const Participant_1 = require("./Participant");
|
|
24
25
|
const CategorySummary_1 = require("./CategorySummary");
|
|
25
26
|
const EventSummary_1 = require("./EventSummary");
|
|
26
27
|
const SubcategorySummary_1 = require("./SubcategorySummary");
|
|
@@ -50,6 +51,7 @@ function PagedMarketResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
51
|
'subcategories': json['subcategories'] == null ? undefined : (json['subcategories'].map(SubcategorySummary_1.SubcategorySummaryFromJSON)),
|
|
51
52
|
'categories': json['categories'] == null ? undefined : (json['categories'].map(CategorySummary_1.CategorySummaryFromJSON)),
|
|
52
53
|
'externalReferences': json['externalReferences'] == null ? undefined : (json['externalReferences'].map(ExternalReference_1.ExternalReferenceFromJSON)),
|
|
54
|
+
'participants': json['participants'] == null ? undefined : (json['participants'].map(Participant_1.ParticipantFromJSON)),
|
|
53
55
|
};
|
|
54
56
|
}
|
|
55
57
|
function PagedMarketResponseToJSON(json) {
|
|
@@ -69,5 +71,6 @@ function PagedMarketResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
69
71
|
'subcategories': value['subcategories'] == null ? undefined : (value['subcategories'].map(SubcategorySummary_1.SubcategorySummaryToJSON)),
|
|
70
72
|
'categories': value['categories'] == null ? undefined : (value['categories'].map(CategorySummary_1.CategorySummaryToJSON)),
|
|
71
73
|
'externalReferences': value['externalReferences'] == null ? undefined : (value['externalReferences'].map(ExternalReference_1.ExternalReferenceToJSON)),
|
|
74
|
+
'participants': value['participants'] == null ? undefined : (value['participants'].map(Participant_1.ParticipantToJSON)),
|
|
72
75
|
};
|
|
73
76
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { DocumentReference } from './DocumentReference';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -21,6 +22,12 @@ export interface Participant {
|
|
|
21
22
|
* @memberof Participant
|
|
22
23
|
*/
|
|
23
24
|
id?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {DocumentReference}
|
|
28
|
+
* @memberof Participant
|
|
29
|
+
*/
|
|
30
|
+
externalReferences?: DocumentReference;
|
|
24
31
|
/**
|
|
25
32
|
* Unique code for this participant across all events in a given subcategory
|
|
26
33
|
* @type {string}
|
|
@@ -19,6 +19,7 @@ exports.ParticipantFromJSON = ParticipantFromJSON;
|
|
|
19
19
|
exports.ParticipantFromJSONTyped = ParticipantFromJSONTyped;
|
|
20
20
|
exports.ParticipantToJSON = ParticipantToJSON;
|
|
21
21
|
exports.ParticipantToJSONTyped = ParticipantToJSONTyped;
|
|
22
|
+
const DocumentReference_1 = require("./DocumentReference");
|
|
22
23
|
/**
|
|
23
24
|
* @export
|
|
24
25
|
*/
|
|
@@ -41,6 +42,7 @@ function ParticipantFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
42
|
}
|
|
42
43
|
return {
|
|
43
44
|
'id': json['id'] == null ? undefined : json['id'],
|
|
45
|
+
'externalReferences': json['externalReferences'] == null ? undefined : (0, DocumentReference_1.DocumentReferenceFromJSON)(json['externalReferences']),
|
|
44
46
|
'code': json['code'] == null ? undefined : json['code'],
|
|
45
47
|
'name': json['name'] == null ? undefined : json['name'],
|
|
46
48
|
'type': json['type'] == null ? undefined : json['type'],
|
|
@@ -56,6 +58,7 @@ function ParticipantToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
56
58
|
}
|
|
57
59
|
return {
|
|
58
60
|
'id': value['id'],
|
|
61
|
+
'externalReferences': (0, DocumentReference_1.DocumentReferenceToJSON)(value['externalReferences']),
|
|
59
62
|
'code': value['code'],
|
|
60
63
|
'name': value['name'],
|
|
61
64
|
'type': value['type'],
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { Meta } from './Meta';
|
|
13
|
+
import type { ExternalReference } from './ExternalReference';
|
|
13
14
|
import type { Participant } from './Participant';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
@@ -29,6 +30,12 @@ export interface ParticipantsResponse {
|
|
|
29
30
|
* @memberof ParticipantsResponse
|
|
30
31
|
*/
|
|
31
32
|
participants?: Array<Participant>;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {Array<ExternalReference>}
|
|
36
|
+
* @memberof ParticipantsResponse
|
|
37
|
+
*/
|
|
38
|
+
externalReferences?: Array<ExternalReference>;
|
|
32
39
|
}
|
|
33
40
|
/**
|
|
34
41
|
* Check if a given object implements the ParticipantsResponse interface.
|
|
@@ -19,6 +19,7 @@ exports.ParticipantsResponseFromJSONTyped = ParticipantsResponseFromJSONTyped;
|
|
|
19
19
|
exports.ParticipantsResponseToJSON = ParticipantsResponseToJSON;
|
|
20
20
|
exports.ParticipantsResponseToJSONTyped = ParticipantsResponseToJSONTyped;
|
|
21
21
|
const Meta_1 = require("./Meta");
|
|
22
|
+
const ExternalReference_1 = require("./ExternalReference");
|
|
22
23
|
const Participant_1 = require("./Participant");
|
|
23
24
|
/**
|
|
24
25
|
* Check if a given object implements the ParticipantsResponse interface.
|
|
@@ -36,6 +37,7 @@ function ParticipantsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
37
|
return {
|
|
37
38
|
'meta': json['_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['_meta']),
|
|
38
39
|
'participants': json['participants'] == null ? undefined : (json['participants'].map(Participant_1.ParticipantFromJSON)),
|
|
40
|
+
'externalReferences': json['externalReferences'] == null ? undefined : (json['externalReferences'].map(ExternalReference_1.ExternalReferenceFromJSON)),
|
|
39
41
|
};
|
|
40
42
|
}
|
|
41
43
|
function ParticipantsResponseToJSON(json) {
|
|
@@ -48,5 +50,6 @@ function ParticipantsResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
48
50
|
return {
|
|
49
51
|
'_meta': (0, Meta_1.MetaToJSON)(value['meta']),
|
|
50
52
|
'participants': value['participants'] == null ? undefined : (value['participants'].map(Participant_1.ParticipantToJSON)),
|
|
53
|
+
'externalReferences': value['externalReferences'] == null ? undefined : (value['externalReferences'].map(ExternalReference_1.ExternalReferenceToJSON)),
|
|
51
54
|
};
|
|
52
55
|
}
|
|
@@ -34,6 +34,7 @@ function SubcategoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
34
|
}
|
|
35
35
|
return {
|
|
36
36
|
'id': json['id'] == null ? undefined : json['id'],
|
|
37
|
+
'externalReferences': json['externalReferences'] == null ? undefined : (0, DocumentReference_1.DocumentReferenceFromJSON)(json['externalReferences']),
|
|
37
38
|
'name': json['name'] == null ? undefined : json['name'],
|
|
38
39
|
'category': json['category'] == null ? undefined : (0, DocumentReference_1.DocumentReferenceFromJSON)(json['category']),
|
|
39
40
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
@@ -49,6 +50,7 @@ function SubcategoryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
49
50
|
}
|
|
50
51
|
return {
|
|
51
52
|
'id': value['id'],
|
|
53
|
+
'externalReferences': (0, DocumentReference_1.DocumentReferenceToJSON)(value['externalReferences']),
|
|
52
54
|
'name': value['name'],
|
|
53
55
|
'category': (0, DocumentReference_1.DocumentReferenceToJSON)(value['category']),
|
|
54
56
|
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { Meta } from './Meta';
|
|
13
|
+
import type { ExternalReference } from './ExternalReference';
|
|
13
14
|
import type { Subcategory } from './Subcategory';
|
|
14
15
|
import type { CategorySummary } from './CategorySummary';
|
|
15
16
|
/**
|
|
@@ -30,6 +31,12 @@ export interface SubcategoryResponse {
|
|
|
30
31
|
* @memberof SubcategoryResponse
|
|
31
32
|
*/
|
|
32
33
|
subcategories?: Array<Subcategory>;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {Array<ExternalReference>}
|
|
37
|
+
* @memberof SubcategoryResponse
|
|
38
|
+
*/
|
|
39
|
+
externalReferences?: Array<ExternalReference>;
|
|
33
40
|
/**
|
|
34
41
|
*
|
|
35
42
|
* @type {Array<CategorySummary>}
|
|
@@ -19,6 +19,7 @@ exports.SubcategoryResponseFromJSONTyped = SubcategoryResponseFromJSONTyped;
|
|
|
19
19
|
exports.SubcategoryResponseToJSON = SubcategoryResponseToJSON;
|
|
20
20
|
exports.SubcategoryResponseToJSONTyped = SubcategoryResponseToJSONTyped;
|
|
21
21
|
const Meta_1 = require("./Meta");
|
|
22
|
+
const ExternalReference_1 = require("./ExternalReference");
|
|
22
23
|
const Subcategory_1 = require("./Subcategory");
|
|
23
24
|
const CategorySummary_1 = require("./CategorySummary");
|
|
24
25
|
/**
|
|
@@ -37,6 +38,7 @@ function SubcategoryResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
38
|
return {
|
|
38
39
|
'meta': json['_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['_meta']),
|
|
39
40
|
'subcategories': json['subcategories'] == null ? undefined : (json['subcategories'].map(Subcategory_1.SubcategoryFromJSON)),
|
|
41
|
+
'externalReferences': json['externalReferences'] == null ? undefined : (json['externalReferences'].map(ExternalReference_1.ExternalReferenceFromJSON)),
|
|
40
42
|
'categories': json['categories'] == null ? undefined : (json['categories'].map(CategorySummary_1.CategorySummaryFromJSON)),
|
|
41
43
|
};
|
|
42
44
|
}
|
|
@@ -50,6 +52,7 @@ function SubcategoryResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
50
52
|
return {
|
|
51
53
|
'_meta': (0, Meta_1.MetaToJSON)(value['meta']),
|
|
52
54
|
'subcategories': value['subcategories'] == null ? undefined : (value['subcategories'].map(Subcategory_1.SubcategoryToJSON)),
|
|
55
|
+
'externalReferences': value['externalReferences'] == null ? undefined : (value['externalReferences'].map(ExternalReference_1.ExternalReferenceToJSON)),
|
|
53
56
|
'categories': value['categories'] == null ? undefined : (value['categories'].map(CategorySummary_1.CategorySummaryToJSON)),
|
|
54
57
|
};
|
|
55
58
|
}
|
|
@@ -0,0 +1,59 @@
|
|
|
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 { DocumentReference } from './DocumentReference';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SubcategorySummaryWithDates
|
|
17
|
+
*/
|
|
18
|
+
export interface SubcategorySummaryWithDates {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof SubcategorySummaryWithDates
|
|
23
|
+
*/
|
|
24
|
+
id?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof SubcategorySummaryWithDates
|
|
29
|
+
*/
|
|
30
|
+
name?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {DocumentReference}
|
|
34
|
+
* @memberof SubcategorySummaryWithDates
|
|
35
|
+
*/
|
|
36
|
+
category?: DocumentReference;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Date}
|
|
40
|
+
* @memberof SubcategorySummaryWithDates
|
|
41
|
+
* @deprecated
|
|
42
|
+
*/
|
|
43
|
+
createdAt?: Date;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Date}
|
|
47
|
+
* @memberof SubcategorySummaryWithDates
|
|
48
|
+
* @deprecated
|
|
49
|
+
*/
|
|
50
|
+
modifiedAt?: Date;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the SubcategorySummaryWithDates interface.
|
|
54
|
+
*/
|
|
55
|
+
export declare function instanceOfSubcategorySummaryWithDates(value: object): value is SubcategorySummaryWithDates;
|
|
56
|
+
export declare function SubcategorySummaryWithDatesFromJSON(json: any): SubcategorySummaryWithDates;
|
|
57
|
+
export declare function SubcategorySummaryWithDatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubcategorySummaryWithDates;
|
|
58
|
+
export declare function SubcategorySummaryWithDatesToJSON(json: any): SubcategorySummaryWithDates;
|
|
59
|
+
export declare function SubcategorySummaryWithDatesToJSONTyped(value?: SubcategorySummaryWithDates | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
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.instanceOfSubcategorySummaryWithDates = instanceOfSubcategorySummaryWithDates;
|
|
17
|
+
exports.SubcategorySummaryWithDatesFromJSON = SubcategorySummaryWithDatesFromJSON;
|
|
18
|
+
exports.SubcategorySummaryWithDatesFromJSONTyped = SubcategorySummaryWithDatesFromJSONTyped;
|
|
19
|
+
exports.SubcategorySummaryWithDatesToJSON = SubcategorySummaryWithDatesToJSON;
|
|
20
|
+
exports.SubcategorySummaryWithDatesToJSONTyped = SubcategorySummaryWithDatesToJSONTyped;
|
|
21
|
+
const DocumentReference_1 = require("./DocumentReference");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the SubcategorySummaryWithDates interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfSubcategorySummaryWithDates(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function SubcategorySummaryWithDatesFromJSON(json) {
|
|
29
|
+
return SubcategorySummaryWithDatesFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function SubcategorySummaryWithDatesFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
37
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
38
|
+
'category': json['category'] == null ? undefined : (0, DocumentReference_1.DocumentReferenceFromJSON)(json['category']),
|
|
39
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
40
|
+
'modifiedAt': json['modifiedAt'] == null ? undefined : (new Date(json['modifiedAt'])),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function SubcategorySummaryWithDatesToJSON(json) {
|
|
44
|
+
return SubcategorySummaryWithDatesToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function SubcategorySummaryWithDatesToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'id': value['id'],
|
|
52
|
+
'name': value['name'],
|
|
53
|
+
'category': (0, DocumentReference_1.DocumentReferenceToJSON)(value['category']),
|
|
54
|
+
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
|
55
|
+
'modifiedAt': value['modifiedAt'] == null ? undefined : ((value['modifiedAt']).toISOString()),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Monaco API
|
|
3
|
+
* A RESTful API that allows you to interact with the Monaco Exchange. Provides endpoints for managing Events, Markets, Sessions, Wallets and Orders. To interact with the API, a client must have an App Id and an API Key to authenticate and create a session.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface UpdateMarketOutcomeRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateMarketOutcomeRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UpdateMarketOutcomeRequest
|
|
22
|
+
*/
|
|
23
|
+
participantId?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the UpdateMarketOutcomeRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfUpdateMarketOutcomeRequest(value: object): value is UpdateMarketOutcomeRequest;
|
|
29
|
+
export declare function UpdateMarketOutcomeRequestFromJSON(json: any): UpdateMarketOutcomeRequest;
|
|
30
|
+
export declare function UpdateMarketOutcomeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateMarketOutcomeRequest;
|
|
31
|
+
export declare function UpdateMarketOutcomeRequestToJSON(json: any): UpdateMarketOutcomeRequest;
|
|
32
|
+
export declare function UpdateMarketOutcomeRequestToJSONTyped(value?: UpdateMarketOutcomeRequest | null, ignoreDiscriminator?: boolean): any;
|