@monaco-protocol/client-v2 0.0.2-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/README.md +46 -0
- package/dist/apis/MonacoAPIAPIKeyManagementApi.d.ts +54 -0
- package/dist/apis/MonacoAPIAPIKeyManagementApi.js +141 -0
- package/dist/apis/MonacoAPIAPIStatusApi.d.ts +26 -0
- package/dist/apis/MonacoAPIAPIStatusApi.js +58 -0
- package/dist/apis/MonacoAPIAppManagementApi.d.ts +66 -0
- package/dist/apis/MonacoAPIAppManagementApi.js +170 -0
- package/dist/apis/MonacoAPICurrenciesApi.d.ts +45 -0
- package/dist/apis/MonacoAPICurrenciesApi.js +102 -0
- package/dist/apis/MonacoAPIEventCategoriesApi.d.ts +53 -0
- package/dist/apis/MonacoAPIEventCategoriesApi.js +134 -0
- package/dist/apis/MonacoAPIEventGroupsApi.d.ts +54 -0
- package/dist/apis/MonacoAPIEventGroupsApi.js +137 -0
- package/dist/apis/MonacoAPIEventSubcategoriesApi.d.ts +54 -0
- package/dist/apis/MonacoAPIEventSubcategoriesApi.js +137 -0
- package/dist/apis/MonacoAPIEventsApi.d.ts +68 -0
- package/dist/apis/MonacoAPIEventsApi.js +158 -0
- package/dist/apis/MonacoAPIMarketTypesApi.d.ts +53 -0
- package/dist/apis/MonacoAPIMarketTypesApi.js +134 -0
- package/dist/apis/MonacoAPIMarketsApi.d.ts +214 -0
- package/dist/apis/MonacoAPIMarketsApi.js +566 -0
- package/dist/apis/MonacoAPIOrdersApi.d.ts +112 -0
- package/dist/apis/MonacoAPIOrdersApi.js +283 -0
- package/dist/apis/MonacoAPISessionManagementApi.d.ts +40 -0
- package/dist/apis/MonacoAPISessionManagementApi.js +93 -0
- package/dist/apis/MonacoAPITradesApi.d.ts +44 -0
- package/dist/apis/MonacoAPITradesApi.js +104 -0
- package/dist/apis/MonacoAPIWalletsApi.d.ts +103 -0
- package/dist/apis/MonacoAPIWalletsApi.js +262 -0
- package/dist/apis/index.d.ts +14 -0
- package/dist/apis/index.js +32 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/APIKey.d.ts +62 -0
- package/dist/models/APIKey.js +58 -0
- package/dist/models/APIKeyResponse.d.ts +40 -0
- package/dist/models/APIKeyResponse.js +52 -0
- package/dist/models/AddMarketOutcomeRequest.d.ts +32 -0
- package/dist/models/AddMarketOutcomeRequest.js +48 -0
- package/dist/models/App.d.ts +69 -0
- package/dist/models/App.js +61 -0
- package/dist/models/AppResponse.d.ts +47 -0
- package/dist/models/AppResponse.js +55 -0
- package/dist/models/AppStatus.d.ts +44 -0
- package/dist/models/AppStatus.js +52 -0
- package/dist/models/AppStatusResponse.d.ts +40 -0
- package/dist/models/AppStatusResponse.js +52 -0
- package/dist/models/Category.d.ts +50 -0
- package/dist/models/Category.js +54 -0
- package/dist/models/CategoryResponse.d.ts +40 -0
- package/dist/models/CategoryResponse.js +52 -0
- package/dist/models/CategorySummary.d.ts +38 -0
- package/dist/models/CategorySummary.js +50 -0
- package/dist/models/CommissionRate.d.ts +44 -0
- package/dist/models/CommissionRate.js +52 -0
- package/dist/models/CommissionRateResponse.d.ts +40 -0
- package/dist/models/CommissionRateResponse.js +52 -0
- package/dist/models/CreateAPIKeyRequest.d.ts +32 -0
- package/dist/models/CreateAPIKeyRequest.js +48 -0
- package/dist/models/CreateAppRequest.d.ts +38 -0
- package/dist/models/CreateAppRequest.js +50 -0
- package/dist/models/CreateCategoryRequest.d.ts +38 -0
- package/dist/models/CreateCategoryRequest.js +50 -0
- package/dist/models/CreateEventGroupRequest.d.ts +44 -0
- package/dist/models/CreateEventGroupRequest.js +52 -0
- package/dist/models/CreateEventRequest.d.ts +56 -0
- package/dist/models/CreateEventRequest.js +56 -0
- package/dist/models/CreateMarketRequest.d.ts +114 -0
- package/dist/models/CreateMarketRequest.js +85 -0
- package/dist/models/CreateMarketTypeRequest.d.ts +45 -0
- package/dist/models/CreateMarketTypeRequest.js +53 -0
- package/dist/models/CreateOrderRequest.d.ts +96 -0
- package/dist/models/CreateOrderRequest.js +79 -0
- package/dist/models/CreateSessionRequest.d.ts +38 -0
- package/dist/models/CreateSessionRequest.js +50 -0
- package/dist/models/CreateSubcategoryRequest.d.ts +44 -0
- package/dist/models/CreateSubcategoryRequest.js +52 -0
- package/dist/models/CreateWalletRequest.d.ts +54 -0
- package/dist/models/CreateWalletRequest.js +62 -0
- package/dist/models/Currency.d.ts +70 -0
- package/dist/models/Currency.js +66 -0
- package/dist/models/CurrencyResponse.d.ts +40 -0
- package/dist/models/CurrencyResponse.js +52 -0
- package/dist/models/DeactivateAPIKeyRequest.d.ts +38 -0
- package/dist/models/DeactivateAPIKeyRequest.js +50 -0
- package/dist/models/DocumentReference.d.ts +38 -0
- package/dist/models/DocumentReference.js +50 -0
- package/dist/models/Event.d.ts +93 -0
- package/dist/models/Event.js +69 -0
- package/dist/models/EventGroup.d.ts +57 -0
- package/dist/models/EventGroup.js +57 -0
- package/dist/models/EventGroupResponse.d.ts +54 -0
- package/dist/models/EventGroupResponse.js +58 -0
- package/dist/models/EventGroupSummary.d.ts +45 -0
- package/dist/models/EventGroupSummary.js +53 -0
- package/dist/models/EventResponse.d.ts +61 -0
- package/dist/models/EventResponse.js +61 -0
- package/dist/models/EventSummary.d.ts +57 -0
- package/dist/models/EventSummary.js +57 -0
- package/dist/models/Market.d.ts +177 -0
- package/dist/models/Market.js +115 -0
- package/dist/models/MarketLiquidity.d.ts +64 -0
- package/dist/models/MarketLiquidity.js +64 -0
- package/dist/models/MarketLiquidityResponse.d.ts +40 -0
- package/dist/models/MarketLiquidityResponse.js +52 -0
- package/dist/models/MarketOutcomeSummary.d.ts +44 -0
- package/dist/models/MarketOutcomeSummary.js +52 -0
- package/dist/models/MarketPosition.d.ts +45 -0
- package/dist/models/MarketPosition.js +53 -0
- package/dist/models/MarketResponse.d.ts +82 -0
- package/dist/models/MarketResponse.js +70 -0
- package/dist/models/MarketResultRequest.d.ts +33 -0
- package/dist/models/MarketResultRequest.js +49 -0
- package/dist/models/MarketSummary.d.ts +76 -0
- package/dist/models/MarketSummary.js +72 -0
- package/dist/models/MarketType.d.ts +57 -0
- package/dist/models/MarketType.js +57 -0
- package/dist/models/MarketTypeResponse.d.ts +40 -0
- package/dist/models/MarketTypeResponse.js +52 -0
- package/dist/models/MarketTypeSummary.d.ts +45 -0
- package/dist/models/MarketTypeSummary.js +53 -0
- package/dist/models/Meta.d.ts +38 -0
- package/dist/models/Meta.js +50 -0
- package/dist/models/Order.d.ts +125 -0
- package/dist/models/Order.js +85 -0
- package/dist/models/OrderResponse.d.ts +54 -0
- package/dist/models/OrderResponse.js +58 -0
- package/dist/models/OrderSummary.d.ts +89 -0
- package/dist/models/OrderSummary.js +73 -0
- package/dist/models/OutcomeResult.d.ts +38 -0
- package/dist/models/OutcomeResult.js +50 -0
- package/dist/models/PageRequest.d.ts +50 -0
- package/dist/models/PageRequest.js +54 -0
- package/dist/models/PagedEventResponse.d.ts +85 -0
- package/dist/models/PagedEventResponse.js +69 -0
- package/dist/models/PagedMarketPositionResponse.d.ts +71 -0
- package/dist/models/PagedMarketPositionResponse.js +63 -0
- package/dist/models/PagedOrderResponse.d.ts +78 -0
- package/dist/models/PagedOrderResponse.js +66 -0
- package/dist/models/PagedTradeResponse.d.ts +85 -0
- package/dist/models/PagedTradeResponse.js +69 -0
- package/dist/models/PagedTransactionResponse.d.ts +64 -0
- package/dist/models/PagedTransactionResponse.js +60 -0
- package/dist/models/Range.d.ts +38 -0
- package/dist/models/Range.js +50 -0
- package/dist/models/RefreshSessionRequest.d.ts +32 -0
- package/dist/models/RefreshSessionRequest.js +48 -0
- package/dist/models/RenameAPIKeyRequest.d.ts +44 -0
- package/dist/models/RenameAPIKeyRequest.js +52 -0
- package/dist/models/Session.d.ts +50 -0
- package/dist/models/Session.js +54 -0
- package/dist/models/SessionResponse.d.ts +40 -0
- package/dist/models/SessionResponse.js +52 -0
- package/dist/models/Subcategory.d.ts +57 -0
- package/dist/models/Subcategory.js +57 -0
- package/dist/models/SubcategoryResponse.d.ts +47 -0
- package/dist/models/SubcategoryResponse.js +55 -0
- package/dist/models/SubcategorySummary.d.ts +45 -0
- package/dist/models/SubcategorySummary.js +53 -0
- package/dist/models/ToggleActionRequest.d.ts +32 -0
- package/dist/models/ToggleActionRequest.js +48 -0
- package/dist/models/Trade.d.ts +95 -0
- package/dist/models/Trade.js +75 -0
- package/dist/models/TradeResponse.d.ts +61 -0
- package/dist/models/TradeResponse.js +61 -0
- package/dist/models/Transaction.d.ts +81 -0
- package/dist/models/Transaction.js +73 -0
- package/dist/models/TransferResponse.d.ts +46 -0
- package/dist/models/TransferResponse.js +54 -0
- package/dist/models/UpdateAppCommissionRateRequest.d.ts +32 -0
- package/dist/models/UpdateAppCommissionRateRequest.js +48 -0
- package/dist/models/Wallet.d.ts +75 -0
- package/dist/models/Wallet.js +70 -0
- package/dist/models/WalletBalance.d.ts +44 -0
- package/dist/models/WalletBalance.js +52 -0
- package/dist/models/WalletResponse.d.ts +40 -0
- package/dist/models/WalletResponse.js +52 -0
- package/dist/models/index.d.ts +72 -0
- package/dist/models/index.js +90 -0
- package/dist/runtime.d.ts +182 -0
- package/dist/runtime.js +346 -0
- package/package.json +28 -0
|
@@ -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 { Session } from './Session';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface SessionResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface SessionResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Meta}
|
|
23
|
+
* @memberof SessionResponse
|
|
24
|
+
*/
|
|
25
|
+
meta?: Meta;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<Session>}
|
|
29
|
+
* @memberof SessionResponse
|
|
30
|
+
*/
|
|
31
|
+
sessions?: Array<Session>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the SessionResponse interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfSessionResponse(value: object): value is SessionResponse;
|
|
37
|
+
export declare function SessionResponseFromJSON(json: any): SessionResponse;
|
|
38
|
+
export declare function SessionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SessionResponse;
|
|
39
|
+
export declare function SessionResponseToJSON(json: any): SessionResponse;
|
|
40
|
+
export declare function SessionResponseToJSONTyped(value?: SessionResponse | 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.instanceOfSessionResponse = instanceOfSessionResponse;
|
|
17
|
+
exports.SessionResponseFromJSON = SessionResponseFromJSON;
|
|
18
|
+
exports.SessionResponseFromJSONTyped = SessionResponseFromJSONTyped;
|
|
19
|
+
exports.SessionResponseToJSON = SessionResponseToJSON;
|
|
20
|
+
exports.SessionResponseToJSONTyped = SessionResponseToJSONTyped;
|
|
21
|
+
const Meta_1 = require("./Meta");
|
|
22
|
+
const Session_1 = require("./Session");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the SessionResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfSessionResponse(value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function SessionResponseFromJSON(json) {
|
|
30
|
+
return SessionResponseFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function SessionResponseFromJSONTyped(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
|
+
'sessions': json['sessions'] == null ? undefined : (json['sessions'].map(Session_1.SessionFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function SessionResponseToJSON(json) {
|
|
42
|
+
return SessionResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function SessionResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'_meta': (0, Meta_1.MetaToJSON)(value['meta']),
|
|
50
|
+
'sessions': value['sessions'] == null ? undefined : (value['sessions'].map(Session_1.SessionToJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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 Subcategory
|
|
17
|
+
*/
|
|
18
|
+
export interface Subcategory {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof Subcategory
|
|
23
|
+
*/
|
|
24
|
+
id?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof Subcategory
|
|
29
|
+
*/
|
|
30
|
+
name?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {DocumentReference}
|
|
34
|
+
* @memberof Subcategory
|
|
35
|
+
*/
|
|
36
|
+
category?: DocumentReference;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Date}
|
|
40
|
+
* @memberof Subcategory
|
|
41
|
+
*/
|
|
42
|
+
createdAt?: Date;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Date}
|
|
46
|
+
* @memberof Subcategory
|
|
47
|
+
*/
|
|
48
|
+
modifiedAt?: Date;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the Subcategory interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfSubcategory(value: object): value is Subcategory;
|
|
54
|
+
export declare function SubcategoryFromJSON(json: any): Subcategory;
|
|
55
|
+
export declare function SubcategoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): Subcategory;
|
|
56
|
+
export declare function SubcategoryToJSON(json: any): Subcategory;
|
|
57
|
+
export declare function SubcategoryToJSONTyped(value?: Subcategory | 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.instanceOfSubcategory = instanceOfSubcategory;
|
|
17
|
+
exports.SubcategoryFromJSON = SubcategoryFromJSON;
|
|
18
|
+
exports.SubcategoryFromJSONTyped = SubcategoryFromJSONTyped;
|
|
19
|
+
exports.SubcategoryToJSON = SubcategoryToJSON;
|
|
20
|
+
exports.SubcategoryToJSONTyped = SubcategoryToJSONTyped;
|
|
21
|
+
const DocumentReference_1 = require("./DocumentReference");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the Subcategory interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfSubcategory(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function SubcategoryFromJSON(json) {
|
|
29
|
+
return SubcategoryFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function SubcategoryFromJSONTyped(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 SubcategoryToJSON(json) {
|
|
44
|
+
return SubcategoryToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function SubcategoryToJSONTyped(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,47 @@
|
|
|
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 { Subcategory } from './Subcategory';
|
|
14
|
+
import type { CategorySummary } from './CategorySummary';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface SubcategoryResponse
|
|
19
|
+
*/
|
|
20
|
+
export interface SubcategoryResponse {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {Meta}
|
|
24
|
+
* @memberof SubcategoryResponse
|
|
25
|
+
*/
|
|
26
|
+
meta?: Meta;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {Array<Subcategory>}
|
|
30
|
+
* @memberof SubcategoryResponse
|
|
31
|
+
*/
|
|
32
|
+
subcategories?: Array<Subcategory>;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {Array<CategorySummary>}
|
|
36
|
+
* @memberof SubcategoryResponse
|
|
37
|
+
*/
|
|
38
|
+
categories?: Array<CategorySummary>;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the SubcategoryResponse interface.
|
|
42
|
+
*/
|
|
43
|
+
export declare function instanceOfSubcategoryResponse(value: object): value is SubcategoryResponse;
|
|
44
|
+
export declare function SubcategoryResponseFromJSON(json: any): SubcategoryResponse;
|
|
45
|
+
export declare function SubcategoryResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubcategoryResponse;
|
|
46
|
+
export declare function SubcategoryResponseToJSON(json: any): SubcategoryResponse;
|
|
47
|
+
export declare function SubcategoryResponseToJSONTyped(value?: SubcategoryResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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.instanceOfSubcategoryResponse = instanceOfSubcategoryResponse;
|
|
17
|
+
exports.SubcategoryResponseFromJSON = SubcategoryResponseFromJSON;
|
|
18
|
+
exports.SubcategoryResponseFromJSONTyped = SubcategoryResponseFromJSONTyped;
|
|
19
|
+
exports.SubcategoryResponseToJSON = SubcategoryResponseToJSON;
|
|
20
|
+
exports.SubcategoryResponseToJSONTyped = SubcategoryResponseToJSONTyped;
|
|
21
|
+
const Meta_1 = require("./Meta");
|
|
22
|
+
const Subcategory_1 = require("./Subcategory");
|
|
23
|
+
const CategorySummary_1 = require("./CategorySummary");
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the SubcategoryResponse interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfSubcategoryResponse(value) {
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function SubcategoryResponseFromJSON(json) {
|
|
31
|
+
return SubcategoryResponseFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function SubcategoryResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'meta': json['_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['_meta']),
|
|
39
|
+
'subcategories': json['subcategories'] == null ? undefined : (json['subcategories'].map(Subcategory_1.SubcategoryFromJSON)),
|
|
40
|
+
'categories': json['categories'] == null ? undefined : (json['categories'].map(CategorySummary_1.CategorySummaryFromJSON)),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function SubcategoryResponseToJSON(json) {
|
|
44
|
+
return SubcategoryResponseToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function SubcategoryResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'_meta': (0, Meta_1.MetaToJSON)(value['meta']),
|
|
52
|
+
'subcategories': value['subcategories'] == null ? undefined : (value['subcategories'].map(Subcategory_1.SubcategoryToJSON)),
|
|
53
|
+
'categories': value['categories'] == null ? undefined : (value['categories'].map(CategorySummary_1.CategorySummaryToJSON)),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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 SubcategorySummary
|
|
17
|
+
*/
|
|
18
|
+
export interface SubcategorySummary {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof SubcategorySummary
|
|
23
|
+
*/
|
|
24
|
+
id?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof SubcategorySummary
|
|
29
|
+
*/
|
|
30
|
+
name?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {DocumentReference}
|
|
34
|
+
* @memberof SubcategorySummary
|
|
35
|
+
*/
|
|
36
|
+
category?: DocumentReference;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the SubcategorySummary interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfSubcategorySummary(value: object): value is SubcategorySummary;
|
|
42
|
+
export declare function SubcategorySummaryFromJSON(json: any): SubcategorySummary;
|
|
43
|
+
export declare function SubcategorySummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubcategorySummary;
|
|
44
|
+
export declare function SubcategorySummaryToJSON(json: any): SubcategorySummary;
|
|
45
|
+
export declare function SubcategorySummaryToJSONTyped(value?: SubcategorySummary | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
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.instanceOfSubcategorySummary = instanceOfSubcategorySummary;
|
|
17
|
+
exports.SubcategorySummaryFromJSON = SubcategorySummaryFromJSON;
|
|
18
|
+
exports.SubcategorySummaryFromJSONTyped = SubcategorySummaryFromJSONTyped;
|
|
19
|
+
exports.SubcategorySummaryToJSON = SubcategorySummaryToJSON;
|
|
20
|
+
exports.SubcategorySummaryToJSONTyped = SubcategorySummaryToJSONTyped;
|
|
21
|
+
const DocumentReference_1 = require("./DocumentReference");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the SubcategorySummary interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfSubcategorySummary(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function SubcategorySummaryFromJSON(json) {
|
|
29
|
+
return SubcategorySummaryFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function SubcategorySummaryFromJSONTyped(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
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function SubcategorySummaryToJSON(json) {
|
|
42
|
+
return SubcategorySummaryToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function SubcategorySummaryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'id': value['id'],
|
|
50
|
+
'name': value['name'],
|
|
51
|
+
'category': (0, DocumentReference_1.DocumentReferenceToJSON)(value['category']),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -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 ToggleActionRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface ToggleActionRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof ToggleActionRequest
|
|
22
|
+
*/
|
|
23
|
+
enabled?: boolean;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the ToggleActionRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfToggleActionRequest(value: object): value is ToggleActionRequest;
|
|
29
|
+
export declare function ToggleActionRequestFromJSON(json: any): ToggleActionRequest;
|
|
30
|
+
export declare function ToggleActionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ToggleActionRequest;
|
|
31
|
+
export declare function ToggleActionRequestToJSON(json: any): ToggleActionRequest;
|
|
32
|
+
export declare function ToggleActionRequestToJSONTyped(value?: ToggleActionRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
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.instanceOfToggleActionRequest = instanceOfToggleActionRequest;
|
|
17
|
+
exports.ToggleActionRequestFromJSON = ToggleActionRequestFromJSON;
|
|
18
|
+
exports.ToggleActionRequestFromJSONTyped = ToggleActionRequestFromJSONTyped;
|
|
19
|
+
exports.ToggleActionRequestToJSON = ToggleActionRequestToJSON;
|
|
20
|
+
exports.ToggleActionRequestToJSONTyped = ToggleActionRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ToggleActionRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfToggleActionRequest(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function ToggleActionRequestFromJSON(json) {
|
|
28
|
+
return ToggleActionRequestFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function ToggleActionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function ToggleActionRequestToJSON(json) {
|
|
39
|
+
return ToggleActionRequestToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function ToggleActionRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'enabled': value['enabled'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
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 Trade
|
|
17
|
+
*/
|
|
18
|
+
export interface Trade {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof Trade
|
|
23
|
+
*/
|
|
24
|
+
id?: number;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof Trade
|
|
29
|
+
*/
|
|
30
|
+
walletId?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {DocumentReference}
|
|
34
|
+
* @memberof Trade
|
|
35
|
+
*/
|
|
36
|
+
market?: DocumentReference;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {DocumentReference}
|
|
40
|
+
* @memberof Trade
|
|
41
|
+
*/
|
|
42
|
+
order?: DocumentReference;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof Trade
|
|
47
|
+
*/
|
|
48
|
+
side?: TradeSideEnum;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof Trade
|
|
53
|
+
*/
|
|
54
|
+
outcome?: number;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @memberof Trade
|
|
59
|
+
*/
|
|
60
|
+
price?: number;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {number}
|
|
64
|
+
* @memberof Trade
|
|
65
|
+
*/
|
|
66
|
+
stake?: number;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {Date}
|
|
70
|
+
* @memberof Trade
|
|
71
|
+
*/
|
|
72
|
+
createdAt?: Date;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {Date}
|
|
76
|
+
* @memberof Trade
|
|
77
|
+
*/
|
|
78
|
+
modifiedAt?: Date;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* @export
|
|
82
|
+
*/
|
|
83
|
+
export declare const TradeSideEnum: {
|
|
84
|
+
readonly For: "For";
|
|
85
|
+
readonly Against: "Against";
|
|
86
|
+
};
|
|
87
|
+
export type TradeSideEnum = typeof TradeSideEnum[keyof typeof TradeSideEnum];
|
|
88
|
+
/**
|
|
89
|
+
* Check if a given object implements the Trade interface.
|
|
90
|
+
*/
|
|
91
|
+
export declare function instanceOfTrade(value: object): value is Trade;
|
|
92
|
+
export declare function TradeFromJSON(json: any): Trade;
|
|
93
|
+
export declare function TradeFromJSONTyped(json: any, ignoreDiscriminator: boolean): Trade;
|
|
94
|
+
export declare function TradeToJSON(json: any): Trade;
|
|
95
|
+
export declare function TradeToJSONTyped(value?: Trade | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,75 @@
|
|
|
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.TradeSideEnum = void 0;
|
|
17
|
+
exports.instanceOfTrade = instanceOfTrade;
|
|
18
|
+
exports.TradeFromJSON = TradeFromJSON;
|
|
19
|
+
exports.TradeFromJSONTyped = TradeFromJSONTyped;
|
|
20
|
+
exports.TradeToJSON = TradeToJSON;
|
|
21
|
+
exports.TradeToJSONTyped = TradeToJSONTyped;
|
|
22
|
+
const DocumentReference_1 = require("./DocumentReference");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.TradeSideEnum = {
|
|
27
|
+
For: 'For',
|
|
28
|
+
Against: 'Against'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the Trade interface.
|
|
32
|
+
*/
|
|
33
|
+
function instanceOfTrade(value) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function TradeFromJSON(json) {
|
|
37
|
+
return TradeFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function TradeFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
45
|
+
'walletId': json['walletId'] == null ? undefined : json['walletId'],
|
|
46
|
+
'market': json['market'] == null ? undefined : (0, DocumentReference_1.DocumentReferenceFromJSON)(json['market']),
|
|
47
|
+
'order': json['order'] == null ? undefined : (0, DocumentReference_1.DocumentReferenceFromJSON)(json['order']),
|
|
48
|
+
'side': json['side'] == null ? undefined : json['side'],
|
|
49
|
+
'outcome': json['outcome'] == null ? undefined : json['outcome'],
|
|
50
|
+
'price': json['price'] == null ? undefined : json['price'],
|
|
51
|
+
'stake': json['stake'] == null ? undefined : json['stake'],
|
|
52
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
53
|
+
'modifiedAt': json['modifiedAt'] == null ? undefined : (new Date(json['modifiedAt'])),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function TradeToJSON(json) {
|
|
57
|
+
return TradeToJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
function TradeToJSONTyped(value, ignoreDiscriminator = false) {
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'id': value['id'],
|
|
65
|
+
'walletId': value['walletId'],
|
|
66
|
+
'market': (0, DocumentReference_1.DocumentReferenceToJSON)(value['market']),
|
|
67
|
+
'order': (0, DocumentReference_1.DocumentReferenceToJSON)(value['order']),
|
|
68
|
+
'side': value['side'],
|
|
69
|
+
'outcome': value['outcome'],
|
|
70
|
+
'price': value['price'],
|
|
71
|
+
'stake': value['stake'],
|
|
72
|
+
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
|
73
|
+
'modifiedAt': value['modifiedAt'] == null ? undefined : ((value['modifiedAt']).toISOString()),
|
|
74
|
+
};
|
|
75
|
+
}
|