@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,85 @@
|
|
|
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 { Trade } from './Trade';
|
|
14
|
+
import type { MarketSummary } from './MarketSummary';
|
|
15
|
+
import type { OrderSummary } from './OrderSummary';
|
|
16
|
+
import type { EventSummary } from './EventSummary';
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface PagedTradeResponse
|
|
21
|
+
*/
|
|
22
|
+
export interface PagedTradeResponse {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {Meta}
|
|
26
|
+
* @memberof PagedTradeResponse
|
|
27
|
+
*/
|
|
28
|
+
meta?: Meta;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {Array<Trade>}
|
|
32
|
+
* @memberof PagedTradeResponse
|
|
33
|
+
*/
|
|
34
|
+
trades?: Array<Trade>;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {Array<OrderSummary>}
|
|
38
|
+
* @memberof PagedTradeResponse
|
|
39
|
+
*/
|
|
40
|
+
orders?: Array<OrderSummary>;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {Array<MarketSummary>}
|
|
44
|
+
* @memberof PagedTradeResponse
|
|
45
|
+
*/
|
|
46
|
+
markets?: Array<MarketSummary>;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {Array<EventSummary>}
|
|
50
|
+
* @memberof PagedTradeResponse
|
|
51
|
+
*/
|
|
52
|
+
events?: Array<EventSummary>;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {number}
|
|
56
|
+
* @memberof PagedTradeResponse
|
|
57
|
+
*/
|
|
58
|
+
pageNumber?: number;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {number}
|
|
62
|
+
* @memberof PagedTradeResponse
|
|
63
|
+
*/
|
|
64
|
+
resultsPerPage?: number;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {number}
|
|
68
|
+
* @memberof PagedTradeResponse
|
|
69
|
+
*/
|
|
70
|
+
totalObjects?: number;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {number}
|
|
74
|
+
* @memberof PagedTradeResponse
|
|
75
|
+
*/
|
|
76
|
+
totalPages?: number;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Check if a given object implements the PagedTradeResponse interface.
|
|
80
|
+
*/
|
|
81
|
+
export declare function instanceOfPagedTradeResponse(value: object): value is PagedTradeResponse;
|
|
82
|
+
export declare function PagedTradeResponseFromJSON(json: any): PagedTradeResponse;
|
|
83
|
+
export declare function PagedTradeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PagedTradeResponse;
|
|
84
|
+
export declare function PagedTradeResponseToJSON(json: any): PagedTradeResponse;
|
|
85
|
+
export declare function PagedTradeResponseToJSONTyped(value?: PagedTradeResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -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.instanceOfPagedTradeResponse = instanceOfPagedTradeResponse;
|
|
17
|
+
exports.PagedTradeResponseFromJSON = PagedTradeResponseFromJSON;
|
|
18
|
+
exports.PagedTradeResponseFromJSONTyped = PagedTradeResponseFromJSONTyped;
|
|
19
|
+
exports.PagedTradeResponseToJSON = PagedTradeResponseToJSON;
|
|
20
|
+
exports.PagedTradeResponseToJSONTyped = PagedTradeResponseToJSONTyped;
|
|
21
|
+
const Meta_1 = require("./Meta");
|
|
22
|
+
const Trade_1 = require("./Trade");
|
|
23
|
+
const MarketSummary_1 = require("./MarketSummary");
|
|
24
|
+
const OrderSummary_1 = require("./OrderSummary");
|
|
25
|
+
const EventSummary_1 = require("./EventSummary");
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the PagedTradeResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
function instanceOfPagedTradeResponse(value) {
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function PagedTradeResponseFromJSON(json) {
|
|
33
|
+
return PagedTradeResponseFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function PagedTradeResponseFromJSONTyped(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
|
+
'trades': json['trades'] == null ? undefined : (json['trades'].map(Trade_1.TradeFromJSON)),
|
|
42
|
+
'orders': json['orders'] == null ? undefined : (json['orders'].map(OrderSummary_1.OrderSummaryFromJSON)),
|
|
43
|
+
'markets': json['markets'] == null ? undefined : (json['markets'].map(MarketSummary_1.MarketSummaryFromJSON)),
|
|
44
|
+
'events': json['events'] == null ? undefined : (json['events'].map(EventSummary_1.EventSummaryFromJSON)),
|
|
45
|
+
'pageNumber': json['pageNumber'] == null ? undefined : json['pageNumber'],
|
|
46
|
+
'resultsPerPage': json['resultsPerPage'] == null ? undefined : json['resultsPerPage'],
|
|
47
|
+
'totalObjects': json['totalObjects'] == null ? undefined : json['totalObjects'],
|
|
48
|
+
'totalPages': json['totalPages'] == null ? undefined : json['totalPages'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function PagedTradeResponseToJSON(json) {
|
|
52
|
+
return PagedTradeResponseToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function PagedTradeResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'_meta': (0, Meta_1.MetaToJSON)(value['meta']),
|
|
60
|
+
'trades': value['trades'] == null ? undefined : (value['trades'].map(Trade_1.TradeToJSON)),
|
|
61
|
+
'orders': value['orders'] == null ? undefined : (value['orders'].map(OrderSummary_1.OrderSummaryToJSON)),
|
|
62
|
+
'markets': value['markets'] == null ? undefined : (value['markets'].map(MarketSummary_1.MarketSummaryToJSON)),
|
|
63
|
+
'events': value['events'] == null ? undefined : (value['events'].map(EventSummary_1.EventSummaryToJSON)),
|
|
64
|
+
'pageNumber': value['pageNumber'],
|
|
65
|
+
'resultsPerPage': value['resultsPerPage'],
|
|
66
|
+
'totalObjects': value['totalObjects'],
|
|
67
|
+
'totalPages': value['totalPages'],
|
|
68
|
+
};
|
|
69
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
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 { Transaction } from './Transaction';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PagedTransactionResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface PagedTransactionResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Meta}
|
|
23
|
+
* @memberof PagedTransactionResponse
|
|
24
|
+
*/
|
|
25
|
+
meta?: Meta;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<Transaction>}
|
|
29
|
+
* @memberof PagedTransactionResponse
|
|
30
|
+
*/
|
|
31
|
+
transactions?: Array<Transaction>;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {number}
|
|
35
|
+
* @memberof PagedTransactionResponse
|
|
36
|
+
*/
|
|
37
|
+
pageNumber?: number;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {number}
|
|
41
|
+
* @memberof PagedTransactionResponse
|
|
42
|
+
*/
|
|
43
|
+
resultsPerPage?: number;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {number}
|
|
47
|
+
* @memberof PagedTransactionResponse
|
|
48
|
+
*/
|
|
49
|
+
totalObjects?: number;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {number}
|
|
53
|
+
* @memberof PagedTransactionResponse
|
|
54
|
+
*/
|
|
55
|
+
totalPages?: number;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the PagedTransactionResponse interface.
|
|
59
|
+
*/
|
|
60
|
+
export declare function instanceOfPagedTransactionResponse(value: object): value is PagedTransactionResponse;
|
|
61
|
+
export declare function PagedTransactionResponseFromJSON(json: any): PagedTransactionResponse;
|
|
62
|
+
export declare function PagedTransactionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PagedTransactionResponse;
|
|
63
|
+
export declare function PagedTransactionResponseToJSON(json: any): PagedTransactionResponse;
|
|
64
|
+
export declare function PagedTransactionResponseToJSONTyped(value?: PagedTransactionResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
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.instanceOfPagedTransactionResponse = instanceOfPagedTransactionResponse;
|
|
17
|
+
exports.PagedTransactionResponseFromJSON = PagedTransactionResponseFromJSON;
|
|
18
|
+
exports.PagedTransactionResponseFromJSONTyped = PagedTransactionResponseFromJSONTyped;
|
|
19
|
+
exports.PagedTransactionResponseToJSON = PagedTransactionResponseToJSON;
|
|
20
|
+
exports.PagedTransactionResponseToJSONTyped = PagedTransactionResponseToJSONTyped;
|
|
21
|
+
const Meta_1 = require("./Meta");
|
|
22
|
+
const Transaction_1 = require("./Transaction");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PagedTransactionResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPagedTransactionResponse(value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function PagedTransactionResponseFromJSON(json) {
|
|
30
|
+
return PagedTransactionResponseFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function PagedTransactionResponseFromJSONTyped(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
|
+
'transactions': json['transactions'] == null ? undefined : (json['transactions'].map(Transaction_1.TransactionFromJSON)),
|
|
39
|
+
'pageNumber': json['pageNumber'] == null ? undefined : json['pageNumber'],
|
|
40
|
+
'resultsPerPage': json['resultsPerPage'] == null ? undefined : json['resultsPerPage'],
|
|
41
|
+
'totalObjects': json['totalObjects'] == null ? undefined : json['totalObjects'],
|
|
42
|
+
'totalPages': json['totalPages'] == null ? undefined : json['totalPages'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function PagedTransactionResponseToJSON(json) {
|
|
46
|
+
return PagedTransactionResponseToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function PagedTransactionResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'_meta': (0, Meta_1.MetaToJSON)(value['meta']),
|
|
54
|
+
'transactions': value['transactions'] == null ? undefined : (value['transactions'].map(Transaction_1.TransactionToJSON)),
|
|
55
|
+
'pageNumber': value['pageNumber'],
|
|
56
|
+
'resultsPerPage': value['resultsPerPage'],
|
|
57
|
+
'totalObjects': value['totalObjects'],
|
|
58
|
+
'totalPages': value['totalPages'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Monaco API
|
|
3
|
+
* A RESTful API that allows you to interact with the Monaco Exchange. Provides endpoints for managing Events, Markets, Sessions, Wallets and Orders. To interact with the API, a client must have an App Id and an API Key to authenticate and create a session.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface Range
|
|
16
|
+
*/
|
|
17
|
+
export interface Range {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof Range
|
|
22
|
+
*/
|
|
23
|
+
min?: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof Range
|
|
28
|
+
*/
|
|
29
|
+
max?: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the Range interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfRange(value: object): value is Range;
|
|
35
|
+
export declare function RangeFromJSON(json: any): Range;
|
|
36
|
+
export declare function RangeFromJSONTyped(json: any, ignoreDiscriminator: boolean): Range;
|
|
37
|
+
export declare function RangeToJSON(json: any): Range;
|
|
38
|
+
export declare function RangeToJSONTyped(value?: Range | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Monaco API
|
|
6
|
+
* A RESTful API that allows you to interact with the Monaco Exchange. Provides endpoints for managing Events, Markets, Sessions, Wallets and Orders. To interact with the API, a client must have an App Id and an API Key to authenticate and create a session.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfRange = instanceOfRange;
|
|
17
|
+
exports.RangeFromJSON = RangeFromJSON;
|
|
18
|
+
exports.RangeFromJSONTyped = RangeFromJSONTyped;
|
|
19
|
+
exports.RangeToJSON = RangeToJSON;
|
|
20
|
+
exports.RangeToJSONTyped = RangeToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the Range interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfRange(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function RangeFromJSON(json) {
|
|
28
|
+
return RangeFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function RangeFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'min': json['min'] == null ? undefined : json['min'],
|
|
36
|
+
'max': json['max'] == null ? undefined : json['max'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function RangeToJSON(json) {
|
|
40
|
+
return RangeToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function RangeToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'min': value['min'],
|
|
48
|
+
'max': value['max'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -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 RefreshSessionRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface RefreshSessionRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof RefreshSessionRequest
|
|
22
|
+
*/
|
|
23
|
+
refreshToken?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the RefreshSessionRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfRefreshSessionRequest(value: object): value is RefreshSessionRequest;
|
|
29
|
+
export declare function RefreshSessionRequestFromJSON(json: any): RefreshSessionRequest;
|
|
30
|
+
export declare function RefreshSessionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RefreshSessionRequest;
|
|
31
|
+
export declare function RefreshSessionRequestToJSON(json: any): RefreshSessionRequest;
|
|
32
|
+
export declare function RefreshSessionRequestToJSONTyped(value?: RefreshSessionRequest | 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.instanceOfRefreshSessionRequest = instanceOfRefreshSessionRequest;
|
|
17
|
+
exports.RefreshSessionRequestFromJSON = RefreshSessionRequestFromJSON;
|
|
18
|
+
exports.RefreshSessionRequestFromJSONTyped = RefreshSessionRequestFromJSONTyped;
|
|
19
|
+
exports.RefreshSessionRequestToJSON = RefreshSessionRequestToJSON;
|
|
20
|
+
exports.RefreshSessionRequestToJSONTyped = RefreshSessionRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the RefreshSessionRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfRefreshSessionRequest(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function RefreshSessionRequestFromJSON(json) {
|
|
28
|
+
return RefreshSessionRequestFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function RefreshSessionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'refreshToken': json['refreshToken'] == null ? undefined : json['refreshToken'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function RefreshSessionRequestToJSON(json) {
|
|
39
|
+
return RefreshSessionRequestToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function RefreshSessionRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'refreshToken': value['refreshToken'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Monaco API
|
|
3
|
+
* A RESTful API that allows you to interact with the Monaco Exchange. Provides endpoints for managing Events, Markets, Sessions, Wallets and Orders. To interact with the API, a client must have an App Id and an API Key to authenticate and create a session.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface RenameAPIKeyRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface RenameAPIKeyRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof RenameAPIKeyRequest
|
|
22
|
+
*/
|
|
23
|
+
appId?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof RenameAPIKeyRequest
|
|
28
|
+
*/
|
|
29
|
+
apiKey?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof RenameAPIKeyRequest
|
|
34
|
+
*/
|
|
35
|
+
name?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the RenameAPIKeyRequest interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfRenameAPIKeyRequest(value: object): value is RenameAPIKeyRequest;
|
|
41
|
+
export declare function RenameAPIKeyRequestFromJSON(json: any): RenameAPIKeyRequest;
|
|
42
|
+
export declare function RenameAPIKeyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RenameAPIKeyRequest;
|
|
43
|
+
export declare function RenameAPIKeyRequestToJSON(json: any): RenameAPIKeyRequest;
|
|
44
|
+
export declare function RenameAPIKeyRequestToJSONTyped(value?: RenameAPIKeyRequest | 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.instanceOfRenameAPIKeyRequest = instanceOfRenameAPIKeyRequest;
|
|
17
|
+
exports.RenameAPIKeyRequestFromJSON = RenameAPIKeyRequestFromJSON;
|
|
18
|
+
exports.RenameAPIKeyRequestFromJSONTyped = RenameAPIKeyRequestFromJSONTyped;
|
|
19
|
+
exports.RenameAPIKeyRequestToJSON = RenameAPIKeyRequestToJSON;
|
|
20
|
+
exports.RenameAPIKeyRequestToJSONTyped = RenameAPIKeyRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the RenameAPIKeyRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfRenameAPIKeyRequest(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function RenameAPIKeyRequestFromJSON(json) {
|
|
28
|
+
return RenameAPIKeyRequestFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function RenameAPIKeyRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'appId': json['appId'] == null ? undefined : json['appId'],
|
|
36
|
+
'apiKey': json['apiKey'] == null ? undefined : json['apiKey'],
|
|
37
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function RenameAPIKeyRequestToJSON(json) {
|
|
41
|
+
return RenameAPIKeyRequestToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function RenameAPIKeyRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'appId': value['appId'],
|
|
49
|
+
'apiKey': value['apiKey'],
|
|
50
|
+
'name': value['name'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 Session
|
|
16
|
+
*/
|
|
17
|
+
export interface Session {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof Session
|
|
22
|
+
*/
|
|
23
|
+
accessToken?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof Session
|
|
28
|
+
*/
|
|
29
|
+
refreshToken?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Date}
|
|
33
|
+
* @memberof Session
|
|
34
|
+
*/
|
|
35
|
+
accessExpiresAt?: Date;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Date}
|
|
39
|
+
* @memberof Session
|
|
40
|
+
*/
|
|
41
|
+
refreshExpiresAt?: Date;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the Session interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfSession(value: object): value is Session;
|
|
47
|
+
export declare function SessionFromJSON(json: any): Session;
|
|
48
|
+
export declare function SessionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Session;
|
|
49
|
+
export declare function SessionToJSON(json: any): Session;
|
|
50
|
+
export declare function SessionToJSONTyped(value?: Session | 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.instanceOfSession = instanceOfSession;
|
|
17
|
+
exports.SessionFromJSON = SessionFromJSON;
|
|
18
|
+
exports.SessionFromJSONTyped = SessionFromJSONTyped;
|
|
19
|
+
exports.SessionToJSON = SessionToJSON;
|
|
20
|
+
exports.SessionToJSONTyped = SessionToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the Session interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfSession(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function SessionFromJSON(json) {
|
|
28
|
+
return SessionFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function SessionFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'accessToken': json['accessToken'] == null ? undefined : json['accessToken'],
|
|
36
|
+
'refreshToken': json['refreshToken'] == null ? undefined : json['refreshToken'],
|
|
37
|
+
'accessExpiresAt': json['accessExpiresAt'] == null ? undefined : (new Date(json['accessExpiresAt'])),
|
|
38
|
+
'refreshExpiresAt': json['refreshExpiresAt'] == null ? undefined : (new Date(json['refreshExpiresAt'])),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function SessionToJSON(json) {
|
|
42
|
+
return SessionToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function SessionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'accessToken': value['accessToken'],
|
|
50
|
+
'refreshToken': value['refreshToken'],
|
|
51
|
+
'accessExpiresAt': value['accessExpiresAt'] == null ? undefined : ((value['accessExpiresAt']).toISOString()),
|
|
52
|
+
'refreshExpiresAt': value['refreshExpiresAt'] == null ? undefined : ((value['refreshExpiresAt']).toISOString()),
|
|
53
|
+
};
|
|
54
|
+
}
|