@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
|
@@ -23,6 +23,8 @@ const AddParticipantRequest_1 = require("./AddParticipantRequest");
|
|
|
23
23
|
* Check if a given object implements the AddParticipantsRequest interface.
|
|
24
24
|
*/
|
|
25
25
|
function instanceOfAddParticipantsRequest(value) {
|
|
26
|
+
if (!('participants' in value) || value['participants'] === undefined)
|
|
27
|
+
return false;
|
|
26
28
|
return true;
|
|
27
29
|
}
|
|
28
30
|
function AddParticipantsRequestFromJSON(json) {
|
|
@@ -33,7 +35,7 @@ function AddParticipantsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
35
|
return json;
|
|
34
36
|
}
|
|
35
37
|
return {
|
|
36
|
-
'participants':
|
|
38
|
+
'participants': (json['participants'].map(AddParticipantRequest_1.AddParticipantRequestFromJSON)),
|
|
37
39
|
};
|
|
38
40
|
}
|
|
39
41
|
function AddParticipantsRequestToJSON(json) {
|
|
@@ -44,6 +46,6 @@ function AddParticipantsRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
44
46
|
return value;
|
|
45
47
|
}
|
|
46
48
|
return {
|
|
47
|
-
'participants':
|
|
49
|
+
'participants': (value['participants'].map(AddParticipantRequest_1.AddParticipantRequestToJSON)),
|
|
48
50
|
};
|
|
49
51
|
}
|
package/dist/models/App.d.ts
CHANGED
package/dist/models/App.js
CHANGED
|
@@ -38,6 +38,7 @@ function AppFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
'description': json['description'] == null ? undefined : json['description'],
|
|
39
39
|
'apiKey': json['apiKey'] == null ? undefined : (0, APIKey_1.APIKeyFromJSON)(json['apiKey']),
|
|
40
40
|
'commissionRate': json['commissionRate'] == null ? undefined : json['commissionRate'],
|
|
41
|
+
'protocolFeeRate': json['protocolFeeRate'] == null ? undefined : json['protocolFeeRate'],
|
|
41
42
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
42
43
|
'modifiedAt': json['modifiedAt'] == null ? undefined : (new Date(json['modifiedAt'])),
|
|
43
44
|
};
|
|
@@ -55,6 +56,7 @@ function AppToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
55
56
|
'description': value['description'],
|
|
56
57
|
'apiKey': (0, APIKey_1.APIKeyToJSON)(value['apiKey']),
|
|
57
58
|
'commissionRate': value['commissionRate'],
|
|
59
|
+
'protocolFeeRate': value['protocolFeeRate'],
|
|
58
60
|
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
|
59
61
|
'modifiedAt': value['modifiedAt'] == null ? undefined : ((value['modifiedAt']).toISOString()),
|
|
60
62
|
};
|
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { ModelError } from './ModelError';
|
|
13
12
|
import type { Order } from './Order';
|
|
13
|
+
import type { OrderFailure } from './OrderFailure';
|
|
14
14
|
/**
|
|
15
15
|
* @type BatchOrderResponseOrdersInner
|
|
16
16
|
*
|
|
17
17
|
* @export
|
|
18
18
|
*/
|
|
19
|
-
export type BatchOrderResponseOrdersInner =
|
|
19
|
+
export type BatchOrderResponseOrdersInner = Order | OrderFailure;
|
|
20
20
|
export declare function BatchOrderResponseOrdersInnerFromJSON(json: any): BatchOrderResponseOrdersInner;
|
|
21
21
|
export declare function BatchOrderResponseOrdersInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): BatchOrderResponseOrdersInner;
|
|
22
22
|
export declare function BatchOrderResponseOrdersInnerToJSON(json: any): any;
|
|
@@ -17,8 +17,8 @@ exports.BatchOrderResponseOrdersInnerFromJSON = BatchOrderResponseOrdersInnerFro
|
|
|
17
17
|
exports.BatchOrderResponseOrdersInnerFromJSONTyped = BatchOrderResponseOrdersInnerFromJSONTyped;
|
|
18
18
|
exports.BatchOrderResponseOrdersInnerToJSON = BatchOrderResponseOrdersInnerToJSON;
|
|
19
19
|
exports.BatchOrderResponseOrdersInnerToJSONTyped = BatchOrderResponseOrdersInnerToJSONTyped;
|
|
20
|
-
const ModelError_1 = require("./ModelError");
|
|
21
20
|
const Order_1 = require("./Order");
|
|
21
|
+
const OrderFailure_1 = require("./OrderFailure");
|
|
22
22
|
function BatchOrderResponseOrdersInnerFromJSON(json) {
|
|
23
23
|
return BatchOrderResponseOrdersInnerFromJSONTyped(json, false);
|
|
24
24
|
}
|
|
@@ -26,12 +26,12 @@ function BatchOrderResponseOrdersInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
26
26
|
if (json == null) {
|
|
27
27
|
return json;
|
|
28
28
|
}
|
|
29
|
-
if ((0, ModelError_1.instanceOfModelError)(json)) {
|
|
30
|
-
return (0, ModelError_1.ModelErrorFromJSONTyped)(json, true);
|
|
31
|
-
}
|
|
32
29
|
if ((0, Order_1.instanceOfOrder)(json)) {
|
|
33
30
|
return (0, Order_1.OrderFromJSONTyped)(json, true);
|
|
34
31
|
}
|
|
32
|
+
if ((0, OrderFailure_1.instanceOfOrderFailure)(json)) {
|
|
33
|
+
return (0, OrderFailure_1.OrderFailureFromJSONTyped)(json, true);
|
|
34
|
+
}
|
|
35
35
|
return {};
|
|
36
36
|
}
|
|
37
37
|
function BatchOrderResponseOrdersInnerToJSON(json) {
|
|
@@ -41,11 +41,11 @@ function BatchOrderResponseOrdersInnerToJSONTyped(value, ignoreDiscriminator = f
|
|
|
41
41
|
if (value == null) {
|
|
42
42
|
return value;
|
|
43
43
|
}
|
|
44
|
-
if ((0, ModelError_1.instanceOfModelError)(value)) {
|
|
45
|
-
return (0, ModelError_1.ModelErrorToJSON)(value);
|
|
46
|
-
}
|
|
47
44
|
if ((0, Order_1.instanceOfOrder)(value)) {
|
|
48
45
|
return (0, Order_1.OrderToJSON)(value);
|
|
49
46
|
}
|
|
47
|
+
if ((0, OrderFailure_1.instanceOfOrderFailure)(value)) {
|
|
48
|
+
return (0, OrderFailure_1.OrderFailureToJSON)(value);
|
|
49
|
+
}
|
|
50
50
|
return {};
|
|
51
51
|
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Monaco API
|
|
3
|
+
* A RESTful API that allows you to interact with the Monaco Exchange. Provides endpoints for managing Events, Markets, Sessions, Wallets and Orders. To interact with the API, a client must have an App Id and an API Key to authenticate and create a session.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CategorySummaryWithDates
|
|
16
|
+
*/
|
|
17
|
+
export interface CategorySummaryWithDates {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CategorySummaryWithDates
|
|
22
|
+
*/
|
|
23
|
+
id?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CategorySummaryWithDates
|
|
28
|
+
*/
|
|
29
|
+
name?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Date}
|
|
33
|
+
* @memberof CategorySummaryWithDates
|
|
34
|
+
* @deprecated
|
|
35
|
+
*/
|
|
36
|
+
createdAt?: Date;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Date}
|
|
40
|
+
* @memberof CategorySummaryWithDates
|
|
41
|
+
* @deprecated
|
|
42
|
+
*/
|
|
43
|
+
modifiedAt?: Date;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the CategorySummaryWithDates interface.
|
|
47
|
+
*/
|
|
48
|
+
export declare function instanceOfCategorySummaryWithDates(value: object): value is CategorySummaryWithDates;
|
|
49
|
+
export declare function CategorySummaryWithDatesFromJSON(json: any): CategorySummaryWithDates;
|
|
50
|
+
export declare function CategorySummaryWithDatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): CategorySummaryWithDates;
|
|
51
|
+
export declare function CategorySummaryWithDatesToJSON(json: any): CategorySummaryWithDates;
|
|
52
|
+
export declare function CategorySummaryWithDatesToJSONTyped(value?: CategorySummaryWithDates | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -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.instanceOfCategorySummaryWithDates = instanceOfCategorySummaryWithDates;
|
|
17
|
+
exports.CategorySummaryWithDatesFromJSON = CategorySummaryWithDatesFromJSON;
|
|
18
|
+
exports.CategorySummaryWithDatesFromJSONTyped = CategorySummaryWithDatesFromJSONTyped;
|
|
19
|
+
exports.CategorySummaryWithDatesToJSON = CategorySummaryWithDatesToJSON;
|
|
20
|
+
exports.CategorySummaryWithDatesToJSONTyped = CategorySummaryWithDatesToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the CategorySummaryWithDates interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfCategorySummaryWithDates(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function CategorySummaryWithDatesFromJSON(json) {
|
|
28
|
+
return CategorySummaryWithDatesFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function CategorySummaryWithDatesFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
36
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
37
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
38
|
+
'modifiedAt': json['modifiedAt'] == null ? undefined : (new Date(json['modifiedAt'])),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function CategorySummaryWithDatesToJSON(json) {
|
|
42
|
+
return CategorySummaryWithDatesToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function CategorySummaryWithDatesToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'id': value['id'],
|
|
50
|
+
'name': value['name'],
|
|
51
|
+
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
|
52
|
+
'modifiedAt': value['modifiedAt'] == null ? undefined : ((value['modifiedAt']).toISOString()),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { UpdateReferenceRequest } from './UpdateReferenceRequest';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -45,6 +46,12 @@ export interface CreateEventRequest {
|
|
|
45
46
|
* @memberof CreateEventRequest
|
|
46
47
|
*/
|
|
47
48
|
expectedStartTime: Date;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {Array<UpdateReferenceRequest>}
|
|
52
|
+
* @memberof CreateEventRequest
|
|
53
|
+
*/
|
|
54
|
+
externalReferences?: Array<UpdateReferenceRequest>;
|
|
48
55
|
}
|
|
49
56
|
/**
|
|
50
57
|
* Check if a given object implements the CreateEventRequest interface.
|
|
@@ -18,6 +18,7 @@ exports.CreateEventRequestFromJSON = CreateEventRequestFromJSON;
|
|
|
18
18
|
exports.CreateEventRequestFromJSONTyped = CreateEventRequestFromJSONTyped;
|
|
19
19
|
exports.CreateEventRequestToJSON = CreateEventRequestToJSON;
|
|
20
20
|
exports.CreateEventRequestToJSONTyped = CreateEventRequestToJSONTyped;
|
|
21
|
+
const UpdateReferenceRequest_1 = require("./UpdateReferenceRequest");
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the CreateEventRequest interface.
|
|
23
24
|
*/
|
|
@@ -47,6 +48,7 @@ function CreateEventRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
48
|
'code': json['code'],
|
|
48
49
|
'active': json['active'],
|
|
49
50
|
'expectedStartTime': (new Date(json['expectedStartTime'])),
|
|
51
|
+
'externalReferences': json['externalReferences'] == null ? undefined : (json['externalReferences'].map(UpdateReferenceRequest_1.UpdateReferenceRequestFromJSON)),
|
|
50
52
|
};
|
|
51
53
|
}
|
|
52
54
|
function CreateEventRequestToJSON(json) {
|
|
@@ -62,5 +64,6 @@ function CreateEventRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
62
64
|
'code': value['code'],
|
|
63
65
|
'active': value['active'],
|
|
64
66
|
'expectedStartTime': ((value['expectedStartTime']).toISOString()),
|
|
67
|
+
'externalReferences': value['externalReferences'] == null ? undefined : (value['externalReferences'].map(UpdateReferenceRequest_1.UpdateReferenceRequestToJSON)),
|
|
65
68
|
};
|
|
66
69
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { AddMarketOutcomeRequest } from './AddMarketOutcomeRequest';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -93,6 +94,12 @@ export interface CreateMarketRequest {
|
|
|
93
94
|
* @memberof CreateMarketRequest
|
|
94
95
|
*/
|
|
95
96
|
marketOutcomes?: Array<string>;
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @type {Array<AddMarketOutcomeRequest>}
|
|
100
|
+
* @memberof CreateMarketRequest
|
|
101
|
+
*/
|
|
102
|
+
addMarketOutcomeRequests?: Array<AddMarketOutcomeRequest>;
|
|
96
103
|
}
|
|
97
104
|
/**
|
|
98
105
|
* @export
|
|
@@ -19,6 +19,7 @@ exports.CreateMarketRequestFromJSON = CreateMarketRequestFromJSON;
|
|
|
19
19
|
exports.CreateMarketRequestFromJSONTyped = CreateMarketRequestFromJSONTyped;
|
|
20
20
|
exports.CreateMarketRequestToJSON = CreateMarketRequestToJSON;
|
|
21
21
|
exports.CreateMarketRequestToJSONTyped = CreateMarketRequestToJSONTyped;
|
|
22
|
+
const AddMarketOutcomeRequest_1 = require("./AddMarketOutcomeRequest");
|
|
22
23
|
/**
|
|
23
24
|
* @export
|
|
24
25
|
*/
|
|
@@ -60,6 +61,7 @@ function CreateMarketRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
60
61
|
'marketLockAction': json['marketLockAction'] == null ? undefined : json['marketLockAction'],
|
|
61
62
|
'eventStartAction': json['eventStartAction'] == null ? undefined : json['eventStartAction'],
|
|
62
63
|
'marketOutcomes': json['marketOutcomes'] == null ? undefined : json['marketOutcomes'],
|
|
64
|
+
'addMarketOutcomeRequests': json['addMarketOutcomeRequests'] == null ? undefined : (json['addMarketOutcomeRequests'].map(AddMarketOutcomeRequest_1.AddMarketOutcomeRequestFromJSON)),
|
|
63
65
|
};
|
|
64
66
|
}
|
|
65
67
|
function CreateMarketRequestToJSON(json) {
|
|
@@ -83,5 +85,6 @@ function CreateMarketRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
83
85
|
'marketLockAction': value['marketLockAction'],
|
|
84
86
|
'eventStartAction': value['eventStartAction'],
|
|
85
87
|
'marketOutcomes': value['marketOutcomes'],
|
|
88
|
+
'addMarketOutcomeRequests': value['addMarketOutcomeRequests'] == null ? undefined : (value['addMarketOutcomeRequests'].map(AddMarketOutcomeRequest_1.AddMarketOutcomeRequestToJSON)),
|
|
86
89
|
};
|
|
87
90
|
}
|
|
@@ -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 EventGroupSummaryWithDates
|
|
17
|
+
*/
|
|
18
|
+
export interface EventGroupSummaryWithDates {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof EventGroupSummaryWithDates
|
|
23
|
+
*/
|
|
24
|
+
id?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof EventGroupSummaryWithDates
|
|
29
|
+
*/
|
|
30
|
+
name?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {DocumentReference}
|
|
34
|
+
* @memberof EventGroupSummaryWithDates
|
|
35
|
+
*/
|
|
36
|
+
subcategory?: DocumentReference;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Date}
|
|
40
|
+
* @memberof EventGroupSummaryWithDates
|
|
41
|
+
* @deprecated
|
|
42
|
+
*/
|
|
43
|
+
createdAt?: Date;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Date}
|
|
47
|
+
* @memberof EventGroupSummaryWithDates
|
|
48
|
+
* @deprecated
|
|
49
|
+
*/
|
|
50
|
+
modifiedAt?: Date;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the EventGroupSummaryWithDates interface.
|
|
54
|
+
*/
|
|
55
|
+
export declare function instanceOfEventGroupSummaryWithDates(value: object): value is EventGroupSummaryWithDates;
|
|
56
|
+
export declare function EventGroupSummaryWithDatesFromJSON(json: any): EventGroupSummaryWithDates;
|
|
57
|
+
export declare function EventGroupSummaryWithDatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): EventGroupSummaryWithDates;
|
|
58
|
+
export declare function EventGroupSummaryWithDatesToJSON(json: any): EventGroupSummaryWithDates;
|
|
59
|
+
export declare function EventGroupSummaryWithDatesToJSONTyped(value?: EventGroupSummaryWithDates | 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.instanceOfEventGroupSummaryWithDates = instanceOfEventGroupSummaryWithDates;
|
|
17
|
+
exports.EventGroupSummaryWithDatesFromJSON = EventGroupSummaryWithDatesFromJSON;
|
|
18
|
+
exports.EventGroupSummaryWithDatesFromJSONTyped = EventGroupSummaryWithDatesFromJSONTyped;
|
|
19
|
+
exports.EventGroupSummaryWithDatesToJSON = EventGroupSummaryWithDatesToJSON;
|
|
20
|
+
exports.EventGroupSummaryWithDatesToJSONTyped = EventGroupSummaryWithDatesToJSONTyped;
|
|
21
|
+
const DocumentReference_1 = require("./DocumentReference");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the EventGroupSummaryWithDates interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfEventGroupSummaryWithDates(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function EventGroupSummaryWithDatesFromJSON(json) {
|
|
29
|
+
return EventGroupSummaryWithDatesFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function EventGroupSummaryWithDatesFromJSONTyped(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
|
+
'subcategory': json['subcategory'] == null ? undefined : (0, DocumentReference_1.DocumentReferenceFromJSON)(json['subcategory']),
|
|
39
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
40
|
+
'modifiedAt': json['modifiedAt'] == null ? undefined : (new Date(json['modifiedAt'])),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function EventGroupSummaryWithDatesToJSON(json) {
|
|
44
|
+
return EventGroupSummaryWithDatesToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function EventGroupSummaryWithDatesToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'id': value['id'],
|
|
52
|
+
'name': value['name'],
|
|
53
|
+
'subcategory': (0, DocumentReference_1.DocumentReferenceToJSON)(value['subcategory']),
|
|
54
|
+
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
|
55
|
+
'modifiedAt': value['modifiedAt'] == null ? undefined : ((value['modifiedAt']).toISOString()),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -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 EventResponse {
|
|
|
36
36
|
events?: Array<Event>;
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
39
|
-
* @type {Array<
|
|
39
|
+
* @type {Array<EventGroupSummaryWithDates>}
|
|
40
40
|
* @memberof EventResponse
|
|
41
41
|
*/
|
|
42
|
-
eventGroups?: Array<
|
|
42
|
+
eventGroups?: Array<EventGroupSummaryWithDates>;
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
|
-
* @type {Array<
|
|
45
|
+
* @type {Array<SubcategorySummaryWithDates>}
|
|
46
46
|
* @memberof EventResponse
|
|
47
47
|
*/
|
|
48
|
-
subcategories?: Array<
|
|
48
|
+
subcategories?: Array<SubcategorySummaryWithDates>;
|
|
49
49
|
/**
|
|
50
50
|
*
|
|
51
|
-
* @type {Array<
|
|
51
|
+
* @type {Array<CategorySummaryWithDates>}
|
|
52
52
|
* @memberof EventResponse
|
|
53
53
|
*/
|
|
54
|
-
categories?: Array<
|
|
54
|
+
categories?: Array<CategorySummaryWithDates>;
|
|
55
55
|
/**
|
|
56
56
|
*
|
|
57
57
|
* @type {Array<EventParticipant>}
|
|
@@ -19,11 +19,11 @@ exports.EventResponseFromJSONTyped = EventResponseFromJSONTyped;
|
|
|
19
19
|
exports.EventResponseToJSON = EventResponseToJSON;
|
|
20
20
|
exports.EventResponseToJSONTyped = EventResponseToJSONTyped;
|
|
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 EventResponse interface.
|
|
@@ -41,9 +41,9 @@ function EventResponseFromJSONTyped(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 EventResponseToJSONTyped(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
|
};
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface IDResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface IDResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Meta}
|
|
22
|
+
* @memberof IDResponse
|
|
23
|
+
*/
|
|
24
|
+
meta?: Meta;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Set<string>}
|
|
28
|
+
* @memberof IDResponse
|
|
29
|
+
*/
|
|
30
|
+
ids?: Set<string>;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the IDResponse interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfIDResponse(value: object): value is IDResponse;
|
|
36
|
+
export declare function IDResponseFromJSON(json: any): IDResponse;
|
|
37
|
+
export declare function IDResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IDResponse;
|
|
38
|
+
export declare function IDResponseToJSON(json: any): IDResponse;
|
|
39
|
+
export declare function IDResponseToJSONTyped(value?: IDResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Monaco API
|
|
6
|
+
* A RESTful API that allows you to interact with the Monaco Exchange. Provides endpoints for managing Events, Markets, Sessions, Wallets and Orders. To interact with the API, a client must have an App Id and an API Key to authenticate and create a session.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfIDResponse = instanceOfIDResponse;
|
|
17
|
+
exports.IDResponseFromJSON = IDResponseFromJSON;
|
|
18
|
+
exports.IDResponseFromJSONTyped = IDResponseFromJSONTyped;
|
|
19
|
+
exports.IDResponseToJSON = IDResponseToJSON;
|
|
20
|
+
exports.IDResponseToJSONTyped = IDResponseToJSONTyped;
|
|
21
|
+
const Meta_1 = require("./Meta");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the IDResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfIDResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function IDResponseFromJSON(json) {
|
|
29
|
+
return IDResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function IDResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'meta': json['_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['_meta']),
|
|
37
|
+
'ids': json['ids'] == null ? undefined : new Set(json['ids']),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function IDResponseToJSON(json) {
|
|
41
|
+
return IDResponseToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function IDResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'_meta': (0, Meta_1.MetaToJSON)(value['meta']),
|
|
49
|
+
'ids': value['ids'] == null ? undefined : Array.from(value['ids']),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -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
|
|
@@ -39,6 +40,12 @@ export interface MarketOutcomeSummary {
|
|
|
39
40
|
* @memberof MarketOutcomeSummary
|
|
40
41
|
*/
|
|
41
42
|
winner?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {DocumentReference}
|
|
46
|
+
* @memberof MarketOutcomeSummary
|
|
47
|
+
*/
|
|
48
|
+
participant?: DocumentReference;
|
|
42
49
|
}
|
|
43
50
|
/**
|
|
44
51
|
* Check if a given object implements the MarketOutcomeSummary interface.
|
|
@@ -18,6 +18,7 @@ exports.MarketOutcomeSummaryFromJSON = MarketOutcomeSummaryFromJSON;
|
|
|
18
18
|
exports.MarketOutcomeSummaryFromJSONTyped = MarketOutcomeSummaryFromJSONTyped;
|
|
19
19
|
exports.MarketOutcomeSummaryToJSON = MarketOutcomeSummaryToJSON;
|
|
20
20
|
exports.MarketOutcomeSummaryToJSONTyped = MarketOutcomeSummaryToJSONTyped;
|
|
21
|
+
const DocumentReference_1 = require("./DocumentReference");
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the MarketOutcomeSummary interface.
|
|
23
24
|
*/
|
|
@@ -36,6 +37,7 @@ function MarketOutcomeSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
37
|
'title': json['title'] == null ? undefined : json['title'],
|
|
37
38
|
'ordering': json['ordering'] == null ? undefined : json['ordering'],
|
|
38
39
|
'winner': json['winner'] == null ? undefined : json['winner'],
|
|
40
|
+
'participant': json['participant'] == null ? undefined : (0, DocumentReference_1.DocumentReferenceFromJSON)(json['participant']),
|
|
39
41
|
};
|
|
40
42
|
}
|
|
41
43
|
function MarketOutcomeSummaryToJSON(json) {
|
|
@@ -50,5 +52,6 @@ function MarketOutcomeSummaryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
50
52
|
'title': value['title'],
|
|
51
53
|
'ordering': value['ordering'],
|
|
52
54
|
'winner': value['winner'],
|
|
55
|
+
'participant': (0, DocumentReference_1.DocumentReferenceToJSON)(value['participant']),
|
|
53
56
|
};
|
|
54
57
|
}
|