@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,69 @@
|
|
|
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.instanceOfEvent = instanceOfEvent;
|
|
17
|
+
exports.EventFromJSON = EventFromJSON;
|
|
18
|
+
exports.EventFromJSONTyped = EventFromJSONTyped;
|
|
19
|
+
exports.EventToJSON = EventToJSON;
|
|
20
|
+
exports.EventToJSONTyped = EventToJSONTyped;
|
|
21
|
+
const DocumentReference_1 = require("./DocumentReference");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the Event interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfEvent(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function EventFromJSON(json) {
|
|
29
|
+
return EventFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function EventFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
37
|
+
'ownerAppId': json['ownerAppId'] == null ? undefined : json['ownerAppId'],
|
|
38
|
+
'eventGroup': json['eventGroup'] == null ? undefined : (0, DocumentReference_1.DocumentReferenceFromJSON)(json['eventGroup']),
|
|
39
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
40
|
+
'code': json['code'] == null ? undefined : json['code'],
|
|
41
|
+
'active': json['active'] == null ? undefined : json['active'],
|
|
42
|
+
'expectedStartTime': json['expectedStartTime'] == null ? undefined : (new Date(json['expectedStartTime'])),
|
|
43
|
+
'actualStartTime': json['actualStartTime'] == null ? undefined : (new Date(json['actualStartTime'])),
|
|
44
|
+
'actualEndTime': json['actualEndTime'] == null ? undefined : (new Date(json['actualEndTime'])),
|
|
45
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
46
|
+
'modifiedAt': json['modifiedAt'] == null ? undefined : (new Date(json['modifiedAt'])),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function EventToJSON(json) {
|
|
50
|
+
return EventToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function EventToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'id': value['id'],
|
|
58
|
+
'ownerAppId': value['ownerAppId'],
|
|
59
|
+
'eventGroup': (0, DocumentReference_1.DocumentReferenceToJSON)(value['eventGroup']),
|
|
60
|
+
'name': value['name'],
|
|
61
|
+
'code': value['code'],
|
|
62
|
+
'active': value['active'],
|
|
63
|
+
'expectedStartTime': value['expectedStartTime'] == null ? undefined : ((value['expectedStartTime']).toISOString()),
|
|
64
|
+
'actualStartTime': value['actualStartTime'] == null ? undefined : ((value['actualStartTime']).toISOString()),
|
|
65
|
+
'actualEndTime': value['actualEndTime'] == null ? undefined : ((value['actualEndTime']).toISOString()),
|
|
66
|
+
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
|
67
|
+
'modifiedAt': value['modifiedAt'] == null ? undefined : ((value['modifiedAt']).toISOString()),
|
|
68
|
+
};
|
|
69
|
+
}
|
|
@@ -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 EventGroup
|
|
17
|
+
*/
|
|
18
|
+
export interface EventGroup {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof EventGroup
|
|
23
|
+
*/
|
|
24
|
+
id?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof EventGroup
|
|
29
|
+
*/
|
|
30
|
+
name?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {DocumentReference}
|
|
34
|
+
* @memberof EventGroup
|
|
35
|
+
*/
|
|
36
|
+
subcategory?: DocumentReference;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Date}
|
|
40
|
+
* @memberof EventGroup
|
|
41
|
+
*/
|
|
42
|
+
createdAt?: Date;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Date}
|
|
46
|
+
* @memberof EventGroup
|
|
47
|
+
*/
|
|
48
|
+
modifiedAt?: Date;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the EventGroup interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfEventGroup(value: object): value is EventGroup;
|
|
54
|
+
export declare function EventGroupFromJSON(json: any): EventGroup;
|
|
55
|
+
export declare function EventGroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): EventGroup;
|
|
56
|
+
export declare function EventGroupToJSON(json: any): EventGroup;
|
|
57
|
+
export declare function EventGroupToJSONTyped(value?: EventGroup | 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.instanceOfEventGroup = instanceOfEventGroup;
|
|
17
|
+
exports.EventGroupFromJSON = EventGroupFromJSON;
|
|
18
|
+
exports.EventGroupFromJSONTyped = EventGroupFromJSONTyped;
|
|
19
|
+
exports.EventGroupToJSON = EventGroupToJSON;
|
|
20
|
+
exports.EventGroupToJSONTyped = EventGroupToJSONTyped;
|
|
21
|
+
const DocumentReference_1 = require("./DocumentReference");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the EventGroup interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfEventGroup(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function EventGroupFromJSON(json) {
|
|
29
|
+
return EventGroupFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function EventGroupFromJSONTyped(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 EventGroupToJSON(json) {
|
|
44
|
+
return EventGroupToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function EventGroupToJSONTyped(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
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
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 { CategorySummary } from './CategorySummary';
|
|
14
|
+
import type { SubcategorySummary } from './SubcategorySummary';
|
|
15
|
+
import type { EventGroup } from './EventGroup';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface EventGroupResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface EventGroupResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {Meta}
|
|
25
|
+
* @memberof EventGroupResponse
|
|
26
|
+
*/
|
|
27
|
+
meta?: Meta;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {Array<EventGroup>}
|
|
31
|
+
* @memberof EventGroupResponse
|
|
32
|
+
*/
|
|
33
|
+
eventGroups?: Array<EventGroup>;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {Array<SubcategorySummary>}
|
|
37
|
+
* @memberof EventGroupResponse
|
|
38
|
+
*/
|
|
39
|
+
subcategories?: Array<SubcategorySummary>;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {Array<CategorySummary>}
|
|
43
|
+
* @memberof EventGroupResponse
|
|
44
|
+
*/
|
|
45
|
+
categories?: Array<CategorySummary>;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Check if a given object implements the EventGroupResponse interface.
|
|
49
|
+
*/
|
|
50
|
+
export declare function instanceOfEventGroupResponse(value: object): value is EventGroupResponse;
|
|
51
|
+
export declare function EventGroupResponseFromJSON(json: any): EventGroupResponse;
|
|
52
|
+
export declare function EventGroupResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): EventGroupResponse;
|
|
53
|
+
export declare function EventGroupResponseToJSON(json: any): EventGroupResponse;
|
|
54
|
+
export declare function EventGroupResponseToJSONTyped(value?: EventGroupResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
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.instanceOfEventGroupResponse = instanceOfEventGroupResponse;
|
|
17
|
+
exports.EventGroupResponseFromJSON = EventGroupResponseFromJSON;
|
|
18
|
+
exports.EventGroupResponseFromJSONTyped = EventGroupResponseFromJSONTyped;
|
|
19
|
+
exports.EventGroupResponseToJSON = EventGroupResponseToJSON;
|
|
20
|
+
exports.EventGroupResponseToJSONTyped = EventGroupResponseToJSONTyped;
|
|
21
|
+
const Meta_1 = require("./Meta");
|
|
22
|
+
const CategorySummary_1 = require("./CategorySummary");
|
|
23
|
+
const SubcategorySummary_1 = require("./SubcategorySummary");
|
|
24
|
+
const EventGroup_1 = require("./EventGroup");
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the EventGroupResponse interface.
|
|
27
|
+
*/
|
|
28
|
+
function instanceOfEventGroupResponse(value) {
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function EventGroupResponseFromJSON(json) {
|
|
32
|
+
return EventGroupResponseFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function EventGroupResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'meta': json['_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['_meta']),
|
|
40
|
+
'eventGroups': json['eventGroups'] == null ? undefined : (json['eventGroups'].map(EventGroup_1.EventGroupFromJSON)),
|
|
41
|
+
'subcategories': json['subcategories'] == null ? undefined : (json['subcategories'].map(SubcategorySummary_1.SubcategorySummaryFromJSON)),
|
|
42
|
+
'categories': json['categories'] == null ? undefined : (json['categories'].map(CategorySummary_1.CategorySummaryFromJSON)),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function EventGroupResponseToJSON(json) {
|
|
46
|
+
return EventGroupResponseToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function EventGroupResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'_meta': (0, Meta_1.MetaToJSON)(value['meta']),
|
|
54
|
+
'eventGroups': value['eventGroups'] == null ? undefined : (value['eventGroups'].map(EventGroup_1.EventGroupToJSON)),
|
|
55
|
+
'subcategories': value['subcategories'] == null ? undefined : (value['subcategories'].map(SubcategorySummary_1.SubcategorySummaryToJSON)),
|
|
56
|
+
'categories': value['categories'] == null ? undefined : (value['categories'].map(CategorySummary_1.CategorySummaryToJSON)),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -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 EventGroupSummary
|
|
17
|
+
*/
|
|
18
|
+
export interface EventGroupSummary {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof EventGroupSummary
|
|
23
|
+
*/
|
|
24
|
+
id?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof EventGroupSummary
|
|
29
|
+
*/
|
|
30
|
+
name?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {DocumentReference}
|
|
34
|
+
* @memberof EventGroupSummary
|
|
35
|
+
*/
|
|
36
|
+
subcategory?: DocumentReference;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the EventGroupSummary interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfEventGroupSummary(value: object): value is EventGroupSummary;
|
|
42
|
+
export declare function EventGroupSummaryFromJSON(json: any): EventGroupSummary;
|
|
43
|
+
export declare function EventGroupSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): EventGroupSummary;
|
|
44
|
+
export declare function EventGroupSummaryToJSON(json: any): EventGroupSummary;
|
|
45
|
+
export declare function EventGroupSummaryToJSONTyped(value?: EventGroupSummary | 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.instanceOfEventGroupSummary = instanceOfEventGroupSummary;
|
|
17
|
+
exports.EventGroupSummaryFromJSON = EventGroupSummaryFromJSON;
|
|
18
|
+
exports.EventGroupSummaryFromJSONTyped = EventGroupSummaryFromJSONTyped;
|
|
19
|
+
exports.EventGroupSummaryToJSON = EventGroupSummaryToJSON;
|
|
20
|
+
exports.EventGroupSummaryToJSONTyped = EventGroupSummaryToJSONTyped;
|
|
21
|
+
const DocumentReference_1 = require("./DocumentReference");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the EventGroupSummary interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfEventGroupSummary(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function EventGroupSummaryFromJSON(json) {
|
|
29
|
+
return EventGroupSummaryFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function EventGroupSummaryFromJSONTyped(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
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function EventGroupSummaryToJSON(json) {
|
|
42
|
+
return EventGroupSummaryToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function EventGroupSummaryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'id': value['id'],
|
|
50
|
+
'name': value['name'],
|
|
51
|
+
'subcategory': (0, DocumentReference_1.DocumentReferenceToJSON)(value['subcategory']),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
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 { Category } from './Category';
|
|
14
|
+
import type { Subcategory } from './Subcategory';
|
|
15
|
+
import type { Event } from './Event';
|
|
16
|
+
import type { EventGroup } from './EventGroup';
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface EventResponse
|
|
21
|
+
*/
|
|
22
|
+
export interface EventResponse {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {Meta}
|
|
26
|
+
* @memberof EventResponse
|
|
27
|
+
*/
|
|
28
|
+
meta?: Meta;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {Array<Event>}
|
|
32
|
+
* @memberof EventResponse
|
|
33
|
+
*/
|
|
34
|
+
events?: Array<Event>;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {Array<EventGroup>}
|
|
38
|
+
* @memberof EventResponse
|
|
39
|
+
*/
|
|
40
|
+
eventGroups?: Array<EventGroup>;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {Array<Subcategory>}
|
|
44
|
+
* @memberof EventResponse
|
|
45
|
+
*/
|
|
46
|
+
subcategories?: Array<Subcategory>;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {Array<Category>}
|
|
50
|
+
* @memberof EventResponse
|
|
51
|
+
*/
|
|
52
|
+
categories?: Array<Category>;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the EventResponse interface.
|
|
56
|
+
*/
|
|
57
|
+
export declare function instanceOfEventResponse(value: object): value is EventResponse;
|
|
58
|
+
export declare function EventResponseFromJSON(json: any): EventResponse;
|
|
59
|
+
export declare function EventResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): EventResponse;
|
|
60
|
+
export declare function EventResponseToJSON(json: any): EventResponse;
|
|
61
|
+
export declare function EventResponseToJSONTyped(value?: EventResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,61 @@
|
|
|
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.instanceOfEventResponse = instanceOfEventResponse;
|
|
17
|
+
exports.EventResponseFromJSON = EventResponseFromJSON;
|
|
18
|
+
exports.EventResponseFromJSONTyped = EventResponseFromJSONTyped;
|
|
19
|
+
exports.EventResponseToJSON = EventResponseToJSON;
|
|
20
|
+
exports.EventResponseToJSONTyped = EventResponseToJSONTyped;
|
|
21
|
+
const Meta_1 = require("./Meta");
|
|
22
|
+
const Category_1 = require("./Category");
|
|
23
|
+
const Subcategory_1 = require("./Subcategory");
|
|
24
|
+
const Event_1 = require("./Event");
|
|
25
|
+
const EventGroup_1 = require("./EventGroup");
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the EventResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
function instanceOfEventResponse(value) {
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function EventResponseFromJSON(json) {
|
|
33
|
+
return EventResponseFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function EventResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'meta': json['_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['_meta']),
|
|
41
|
+
'events': json['events'] == null ? undefined : (json['events'].map(Event_1.EventFromJSON)),
|
|
42
|
+
'eventGroups': json['eventGroups'] == null ? undefined : (json['eventGroups'].map(EventGroup_1.EventGroupFromJSON)),
|
|
43
|
+
'subcategories': json['subcategories'] == null ? undefined : (json['subcategories'].map(Subcategory_1.SubcategoryFromJSON)),
|
|
44
|
+
'categories': json['categories'] == null ? undefined : (json['categories'].map(Category_1.CategoryFromJSON)),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function EventResponseToJSON(json) {
|
|
48
|
+
return EventResponseToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function EventResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'_meta': (0, Meta_1.MetaToJSON)(value['meta']),
|
|
56
|
+
'events': value['events'] == null ? undefined : (value['events'].map(Event_1.EventToJSON)),
|
|
57
|
+
'eventGroups': value['eventGroups'] == null ? undefined : (value['eventGroups'].map(EventGroup_1.EventGroupToJSON)),
|
|
58
|
+
'subcategories': value['subcategories'] == null ? undefined : (value['subcategories'].map(Subcategory_1.SubcategoryToJSON)),
|
|
59
|
+
'categories': value['categories'] == null ? undefined : (value['categories'].map(Category_1.CategoryToJSON)),
|
|
60
|
+
};
|
|
61
|
+
}
|
|
@@ -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 EventSummary
|
|
17
|
+
*/
|
|
18
|
+
export interface EventSummary {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof EventSummary
|
|
23
|
+
*/
|
|
24
|
+
id?: number;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {DocumentReference}
|
|
28
|
+
* @memberof EventSummary
|
|
29
|
+
*/
|
|
30
|
+
eventGroup?: DocumentReference;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof EventSummary
|
|
35
|
+
*/
|
|
36
|
+
name?: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof EventSummary
|
|
41
|
+
*/
|
|
42
|
+
code?: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Date}
|
|
46
|
+
* @memberof EventSummary
|
|
47
|
+
*/
|
|
48
|
+
expectedStartTime?: Date;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the EventSummary interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfEventSummary(value: object): value is EventSummary;
|
|
54
|
+
export declare function EventSummaryFromJSON(json: any): EventSummary;
|
|
55
|
+
export declare function EventSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): EventSummary;
|
|
56
|
+
export declare function EventSummaryToJSON(json: any): EventSummary;
|
|
57
|
+
export declare function EventSummaryToJSONTyped(value?: EventSummary | 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.instanceOfEventSummary = instanceOfEventSummary;
|
|
17
|
+
exports.EventSummaryFromJSON = EventSummaryFromJSON;
|
|
18
|
+
exports.EventSummaryFromJSONTyped = EventSummaryFromJSONTyped;
|
|
19
|
+
exports.EventSummaryToJSON = EventSummaryToJSON;
|
|
20
|
+
exports.EventSummaryToJSONTyped = EventSummaryToJSONTyped;
|
|
21
|
+
const DocumentReference_1 = require("./DocumentReference");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the EventSummary interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfEventSummary(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function EventSummaryFromJSON(json) {
|
|
29
|
+
return EventSummaryFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function EventSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
37
|
+
'eventGroup': json['eventGroup'] == null ? undefined : (0, DocumentReference_1.DocumentReferenceFromJSON)(json['eventGroup']),
|
|
38
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
39
|
+
'code': json['code'] == null ? undefined : json['code'],
|
|
40
|
+
'expectedStartTime': json['expectedStartTime'] == null ? undefined : (new Date(json['expectedStartTime'])),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function EventSummaryToJSON(json) {
|
|
44
|
+
return EventSummaryToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function EventSummaryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'id': value['id'],
|
|
52
|
+
'eventGroup': (0, DocumentReference_1.DocumentReferenceToJSON)(value['eventGroup']),
|
|
53
|
+
'name': value['name'],
|
|
54
|
+
'code': value['code'],
|
|
55
|
+
'expectedStartTime': value['expectedStartTime'] == null ? undefined : ((value['expectedStartTime']).toISOString()),
|
|
56
|
+
};
|
|
57
|
+
}
|