@monaco-protocol/client-v2 0.0.75 → 0.0.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/apis/AppManagementApi.d.ts +39 -1
- package/dist/apis/AppManagementApi.js +110 -0
- package/dist/apis/EventGroupsApi.d.ts +13 -0
- package/dist/apis/EventGroupsApi.js +37 -0
- package/dist/apis/EventSubcategoriesApi.d.ts +40 -1
- package/dist/apis/EventSubcategoriesApi.js +115 -0
- package/dist/apis/EventsApi.d.ts +11 -11
- package/dist/apis/EventsApi.js +20 -20
- package/dist/apis/ExternalReferenceSourcesControllerApi.d.ts +2 -0
- package/dist/apis/ExternalReferenceSourcesControllerApi.js +2 -0
- package/dist/apis/MarketsApi.d.ts +10 -9
- package/dist/apis/MarketsApi.js +19 -18
- package/dist/apis/ParticipantsApi.d.ts +57 -0
- package/dist/apis/ParticipantsApi.js +148 -0
- package/dist/apis/WalletsApi.d.ts +16 -1
- package/dist/apis/WalletsApi.js +41 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AddParticipantRequest.d.ts +10 -3
- package/dist/models/AddParticipantRequest.js +12 -3
- package/dist/models/AddParticipantsRequest.d.ts +1 -1
- package/dist/models/AddParticipantsRequest.js +4 -2
- package/dist/models/AppPermission.d.ts +50 -0
- package/dist/models/AppPermission.js +54 -0
- package/dist/models/AppPermissionRequest.d.ts +50 -0
- package/dist/models/AppPermissionRequest.js +66 -0
- package/dist/models/AppPermissionResponse.d.ts +40 -0
- package/dist/models/AppPermissionResponse.js +52 -0
- package/dist/models/BatchCreateOrderRequest.d.ts +1 -1
- package/dist/models/BatchCreateOrderRequest.js +4 -2
- package/dist/models/CategorySummaryWithDates.d.ts +52 -0
- package/dist/models/CategorySummaryWithDates.js +54 -0
- package/dist/models/CreateEventRequest.d.ts +7 -0
- package/dist/models/CreateEventRequest.js +3 -0
- package/dist/models/CreateSubcategoryRequest.d.ts +3 -3
- package/dist/models/CreateSubcategoryRequest.js +9 -3
- package/dist/models/EventGroupSummaryWithDates.d.ts +59 -0
- package/dist/models/EventGroupSummaryWithDates.js +57 -0
- package/dist/models/EventResponse.d.ts +9 -9
- package/dist/models/EventResponse.js +9 -9
- package/dist/models/Market.d.ts +1 -0
- package/dist/models/Market.js +1 -0
- package/dist/models/MarketSummary.d.ts +1 -0
- package/dist/models/MarketSummary.js +1 -0
- package/dist/models/ModifyParticipantsRequest.d.ts +1 -1
- package/dist/models/ModifyParticipantsRequest.js +3 -1
- package/dist/models/Order.d.ts +1 -1
- package/dist/models/Order.js +3 -1
- package/dist/models/OrderFailure.d.ts +1 -1
- package/dist/models/OrderFailure.js +3 -1
- package/dist/models/PagedEventResponse.d.ts +9 -9
- package/dist/models/PagedEventResponse.js +9 -9
- package/dist/models/Participant.d.ts +7 -0
- package/dist/models/Participant.js +3 -0
- package/dist/models/ParticipantsResponse.d.ts +7 -0
- package/dist/models/ParticipantsResponse.js +3 -0
- package/dist/models/Subcategory.d.ts +6 -0
- package/dist/models/Subcategory.js +2 -0
- package/dist/models/SubcategoryResponse.d.ts +7 -0
- package/dist/models/SubcategoryResponse.js +3 -0
- package/dist/models/SubcategorySummaryWithDates.d.ts +59 -0
- package/dist/models/SubcategorySummaryWithDates.js +57 -0
- package/dist/models/UpdateWalletOverdraftRequest.d.ts +38 -0
- package/dist/models/UpdateWalletOverdraftRequest.js +54 -0
- package/dist/models/WithdrawalRequest.d.ts +2 -0
- package/dist/models/WithdrawalRequest.js +2 -0
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/package.json +1 -1
|
@@ -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 AppPermission
|
|
16
|
+
*/
|
|
17
|
+
export interface AppPermission {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AppPermission
|
|
22
|
+
*/
|
|
23
|
+
appId?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AppPermission
|
|
28
|
+
*/
|
|
29
|
+
permission?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Date}
|
|
33
|
+
* @memberof AppPermission
|
|
34
|
+
*/
|
|
35
|
+
createdAt?: Date;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Date}
|
|
39
|
+
* @memberof AppPermission
|
|
40
|
+
*/
|
|
41
|
+
modifiedAt?: Date;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the AppPermission interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfAppPermission(value: object): value is AppPermission;
|
|
47
|
+
export declare function AppPermissionFromJSON(json: any): AppPermission;
|
|
48
|
+
export declare function AppPermissionFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppPermission;
|
|
49
|
+
export declare function AppPermissionToJSON(json: any): AppPermission;
|
|
50
|
+
export declare function AppPermissionToJSONTyped(value?: AppPermission | 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.instanceOfAppPermission = instanceOfAppPermission;
|
|
17
|
+
exports.AppPermissionFromJSON = AppPermissionFromJSON;
|
|
18
|
+
exports.AppPermissionFromJSONTyped = AppPermissionFromJSONTyped;
|
|
19
|
+
exports.AppPermissionToJSON = AppPermissionToJSON;
|
|
20
|
+
exports.AppPermissionToJSONTyped = AppPermissionToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AppPermission interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAppPermission(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function AppPermissionFromJSON(json) {
|
|
28
|
+
return AppPermissionFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function AppPermissionFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'appId': json['appId'] == null ? undefined : json['appId'],
|
|
36
|
+
'permission': json['permission'] == null ? undefined : json['permission'],
|
|
37
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
38
|
+
'modifiedAt': json['modifiedAt'] == null ? undefined : (new Date(json['modifiedAt'])),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function AppPermissionToJSON(json) {
|
|
42
|
+
return AppPermissionToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function AppPermissionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'appId': value['appId'],
|
|
50
|
+
'permission': value['permission'],
|
|
51
|
+
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
|
52
|
+
'modifiedAt': value['modifiedAt'] == null ? undefined : ((value['modifiedAt']).toISOString()),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -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 AppPermissionRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface AppPermissionRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AppPermissionRequest
|
|
22
|
+
*/
|
|
23
|
+
permission?: AppPermissionRequestPermissionEnum;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @export
|
|
27
|
+
*/
|
|
28
|
+
export declare const AppPermissionRequestPermissionEnum: {
|
|
29
|
+
readonly AppsCanAdmin: "AppsCanAdmin";
|
|
30
|
+
readonly ApiKeyCanAdmin: "APIKeyCanAdmin";
|
|
31
|
+
readonly CategoryCanAdmin: "CategoryCanAdmin";
|
|
32
|
+
readonly ExternalTransfersEnabled: "ExternalTransfersEnabled";
|
|
33
|
+
readonly SubCategoryCanAdmin: "SubCategoryCanAdmin";
|
|
34
|
+
readonly MarketTypeCanAdmin: "MarketTypeCanAdmin";
|
|
35
|
+
readonly EventGroupCanAdmin: "EventGroupCanAdmin";
|
|
36
|
+
readonly EventCanAdmin: "EventCanAdmin";
|
|
37
|
+
readonly MarketCanAdmin: "MarketCanAdmin";
|
|
38
|
+
readonly OrderCanViewAll: "OrderCanViewAll";
|
|
39
|
+
readonly TradeCanViewAll: "TradeCanViewAll";
|
|
40
|
+
readonly WalletCanUpdateOverdraft: "WalletCanUpdateOverdraft";
|
|
41
|
+
};
|
|
42
|
+
export type AppPermissionRequestPermissionEnum = typeof AppPermissionRequestPermissionEnum[keyof typeof AppPermissionRequestPermissionEnum];
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the AppPermissionRequest interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfAppPermissionRequest(value: object): value is AppPermissionRequest;
|
|
47
|
+
export declare function AppPermissionRequestFromJSON(json: any): AppPermissionRequest;
|
|
48
|
+
export declare function AppPermissionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppPermissionRequest;
|
|
49
|
+
export declare function AppPermissionRequestToJSON(json: any): AppPermissionRequest;
|
|
50
|
+
export declare function AppPermissionRequestToJSONTyped(value?: AppPermissionRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,66 @@
|
|
|
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.AppPermissionRequestPermissionEnum = void 0;
|
|
17
|
+
exports.instanceOfAppPermissionRequest = instanceOfAppPermissionRequest;
|
|
18
|
+
exports.AppPermissionRequestFromJSON = AppPermissionRequestFromJSON;
|
|
19
|
+
exports.AppPermissionRequestFromJSONTyped = AppPermissionRequestFromJSONTyped;
|
|
20
|
+
exports.AppPermissionRequestToJSON = AppPermissionRequestToJSON;
|
|
21
|
+
exports.AppPermissionRequestToJSONTyped = AppPermissionRequestToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.AppPermissionRequestPermissionEnum = {
|
|
26
|
+
AppsCanAdmin: 'AppsCanAdmin',
|
|
27
|
+
ApiKeyCanAdmin: 'APIKeyCanAdmin',
|
|
28
|
+
CategoryCanAdmin: 'CategoryCanAdmin',
|
|
29
|
+
ExternalTransfersEnabled: 'ExternalTransfersEnabled',
|
|
30
|
+
SubCategoryCanAdmin: 'SubCategoryCanAdmin',
|
|
31
|
+
MarketTypeCanAdmin: 'MarketTypeCanAdmin',
|
|
32
|
+
EventGroupCanAdmin: 'EventGroupCanAdmin',
|
|
33
|
+
EventCanAdmin: 'EventCanAdmin',
|
|
34
|
+
MarketCanAdmin: 'MarketCanAdmin',
|
|
35
|
+
OrderCanViewAll: 'OrderCanViewAll',
|
|
36
|
+
TradeCanViewAll: 'TradeCanViewAll',
|
|
37
|
+
WalletCanUpdateOverdraft: 'WalletCanUpdateOverdraft'
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the AppPermissionRequest interface.
|
|
41
|
+
*/
|
|
42
|
+
function instanceOfAppPermissionRequest(value) {
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
function AppPermissionRequestFromJSON(json) {
|
|
46
|
+
return AppPermissionRequestFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function AppPermissionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'permission': json['permission'] == null ? undefined : json['permission'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function AppPermissionRequestToJSON(json) {
|
|
57
|
+
return AppPermissionRequestToJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
function AppPermissionRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'permission': value['permission'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
@@ -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 { AppPermission } from './AppPermission';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface AppPermissionResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface AppPermissionResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Meta}
|
|
23
|
+
* @memberof AppPermissionResponse
|
|
24
|
+
*/
|
|
25
|
+
meta?: Meta;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<AppPermission>}
|
|
29
|
+
* @memberof AppPermissionResponse
|
|
30
|
+
*/
|
|
31
|
+
appPermissions?: Array<AppPermission>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the AppPermissionResponse interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfAppPermissionResponse(value: object): value is AppPermissionResponse;
|
|
37
|
+
export declare function AppPermissionResponseFromJSON(json: any): AppPermissionResponse;
|
|
38
|
+
export declare function AppPermissionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppPermissionResponse;
|
|
39
|
+
export declare function AppPermissionResponseToJSON(json: any): AppPermissionResponse;
|
|
40
|
+
export declare function AppPermissionResponseToJSONTyped(value?: AppPermissionResponse | 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.instanceOfAppPermissionResponse = instanceOfAppPermissionResponse;
|
|
17
|
+
exports.AppPermissionResponseFromJSON = AppPermissionResponseFromJSON;
|
|
18
|
+
exports.AppPermissionResponseFromJSONTyped = AppPermissionResponseFromJSONTyped;
|
|
19
|
+
exports.AppPermissionResponseToJSON = AppPermissionResponseToJSON;
|
|
20
|
+
exports.AppPermissionResponseToJSONTyped = AppPermissionResponseToJSONTyped;
|
|
21
|
+
const Meta_1 = require("./Meta");
|
|
22
|
+
const AppPermission_1 = require("./AppPermission");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the AppPermissionResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfAppPermissionResponse(value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function AppPermissionResponseFromJSON(json) {
|
|
30
|
+
return AppPermissionResponseFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function AppPermissionResponseFromJSONTyped(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
|
+
'appPermissions': json['appPermissions'] == null ? undefined : (json['appPermissions'].map(AppPermission_1.AppPermissionFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function AppPermissionResponseToJSON(json) {
|
|
42
|
+
return AppPermissionResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function AppPermissionResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'_meta': (0, Meta_1.MetaToJSON)(value['meta']),
|
|
50
|
+
'appPermissions': value['appPermissions'] == null ? undefined : (value['appPermissions'].map(AppPermission_1.AppPermissionToJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -21,7 +21,7 @@ export interface BatchCreateOrderRequest {
|
|
|
21
21
|
* @type {Array<CreateOrderRequest>}
|
|
22
22
|
* @memberof BatchCreateOrderRequest
|
|
23
23
|
*/
|
|
24
|
-
requests
|
|
24
|
+
requests: Array<CreateOrderRequest>;
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
27
|
* Check if a given object implements the BatchCreateOrderRequest interface.
|
|
@@ -23,6 +23,8 @@ const CreateOrderRequest_1 = require("./CreateOrderRequest");
|
|
|
23
23
|
* Check if a given object implements the BatchCreateOrderRequest interface.
|
|
24
24
|
*/
|
|
25
25
|
function instanceOfBatchCreateOrderRequest(value) {
|
|
26
|
+
if (!('requests' in value) || value['requests'] === undefined)
|
|
27
|
+
return false;
|
|
26
28
|
return true;
|
|
27
29
|
}
|
|
28
30
|
function BatchCreateOrderRequestFromJSON(json) {
|
|
@@ -33,7 +35,7 @@ function BatchCreateOrderRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
35
|
return json;
|
|
34
36
|
}
|
|
35
37
|
return {
|
|
36
|
-
'requests':
|
|
38
|
+
'requests': (json['requests'].map(CreateOrderRequest_1.CreateOrderRequestFromJSON)),
|
|
37
39
|
};
|
|
38
40
|
}
|
|
39
41
|
function BatchCreateOrderRequestToJSON(json) {
|
|
@@ -44,6 +46,6 @@ function BatchCreateOrderRequestToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
44
46
|
return value;
|
|
45
47
|
}
|
|
46
48
|
return {
|
|
47
|
-
'requests':
|
|
49
|
+
'requests': (value['requests'].map(CreateOrderRequest_1.CreateOrderRequestToJSON)),
|
|
48
50
|
};
|
|
49
51
|
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Monaco API
|
|
3
|
+
* A RESTful API that allows you to interact with the Monaco Exchange. Provides endpoints for managing Events, Markets, Sessions, Wallets and Orders. To interact with the API, a client must have an App Id and an API Key to authenticate and create a session.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CategorySummaryWithDates
|
|
16
|
+
*/
|
|
17
|
+
export interface CategorySummaryWithDates {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CategorySummaryWithDates
|
|
22
|
+
*/
|
|
23
|
+
id?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CategorySummaryWithDates
|
|
28
|
+
*/
|
|
29
|
+
name?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Date}
|
|
33
|
+
* @memberof CategorySummaryWithDates
|
|
34
|
+
* @deprecated
|
|
35
|
+
*/
|
|
36
|
+
createdAt?: Date;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Date}
|
|
40
|
+
* @memberof CategorySummaryWithDates
|
|
41
|
+
* @deprecated
|
|
42
|
+
*/
|
|
43
|
+
modifiedAt?: Date;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the CategorySummaryWithDates interface.
|
|
47
|
+
*/
|
|
48
|
+
export declare function instanceOfCategorySummaryWithDates(value: object): value is CategorySummaryWithDates;
|
|
49
|
+
export declare function CategorySummaryWithDatesFromJSON(json: any): CategorySummaryWithDates;
|
|
50
|
+
export declare function CategorySummaryWithDatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): CategorySummaryWithDates;
|
|
51
|
+
export declare function CategorySummaryWithDatesToJSON(json: any): CategorySummaryWithDates;
|
|
52
|
+
export declare function CategorySummaryWithDatesToJSONTyped(value?: CategorySummaryWithDates | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Monaco API
|
|
6
|
+
* A RESTful API that allows you to interact with the Monaco Exchange. Provides endpoints for managing Events, Markets, Sessions, Wallets and Orders. To interact with the API, a client must have an App Id and an API Key to authenticate and create a session.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfCategorySummaryWithDates = instanceOfCategorySummaryWithDates;
|
|
17
|
+
exports.CategorySummaryWithDatesFromJSON = CategorySummaryWithDatesFromJSON;
|
|
18
|
+
exports.CategorySummaryWithDatesFromJSONTyped = CategorySummaryWithDatesFromJSONTyped;
|
|
19
|
+
exports.CategorySummaryWithDatesToJSON = CategorySummaryWithDatesToJSON;
|
|
20
|
+
exports.CategorySummaryWithDatesToJSONTyped = CategorySummaryWithDatesToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the CategorySummaryWithDates interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfCategorySummaryWithDates(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function CategorySummaryWithDatesFromJSON(json) {
|
|
28
|
+
return CategorySummaryWithDatesFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function CategorySummaryWithDatesFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
36
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
37
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
38
|
+
'modifiedAt': json['modifiedAt'] == null ? undefined : (new Date(json['modifiedAt'])),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function CategorySummaryWithDatesToJSON(json) {
|
|
42
|
+
return CategorySummaryWithDatesToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function CategorySummaryWithDatesToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'id': value['id'],
|
|
50
|
+
'name': value['name'],
|
|
51
|
+
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
|
52
|
+
'modifiedAt': value['modifiedAt'] == null ? undefined : ((value['modifiedAt']).toISOString()),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { UpdateReferenceRequest } from './UpdateReferenceRequest';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -45,6 +46,12 @@ export interface CreateEventRequest {
|
|
|
45
46
|
* @memberof CreateEventRequest
|
|
46
47
|
*/
|
|
47
48
|
expectedStartTime: Date;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {Array<UpdateReferenceRequest>}
|
|
52
|
+
* @memberof CreateEventRequest
|
|
53
|
+
*/
|
|
54
|
+
externalReferences?: Array<UpdateReferenceRequest>;
|
|
48
55
|
}
|
|
49
56
|
/**
|
|
50
57
|
* Check if a given object implements the CreateEventRequest interface.
|
|
@@ -18,6 +18,7 @@ exports.CreateEventRequestFromJSON = CreateEventRequestFromJSON;
|
|
|
18
18
|
exports.CreateEventRequestFromJSONTyped = CreateEventRequestFromJSONTyped;
|
|
19
19
|
exports.CreateEventRequestToJSON = CreateEventRequestToJSON;
|
|
20
20
|
exports.CreateEventRequestToJSONTyped = CreateEventRequestToJSONTyped;
|
|
21
|
+
const UpdateReferenceRequest_1 = require("./UpdateReferenceRequest");
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the CreateEventRequest interface.
|
|
23
24
|
*/
|
|
@@ -47,6 +48,7 @@ function CreateEventRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
48
|
'code': json['code'],
|
|
48
49
|
'active': json['active'],
|
|
49
50
|
'expectedStartTime': (new Date(json['expectedStartTime'])),
|
|
51
|
+
'externalReferences': json['externalReferences'] == null ? undefined : (json['externalReferences'].map(UpdateReferenceRequest_1.UpdateReferenceRequestFromJSON)),
|
|
50
52
|
};
|
|
51
53
|
}
|
|
52
54
|
function CreateEventRequestToJSON(json) {
|
|
@@ -62,5 +64,6 @@ function CreateEventRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
62
64
|
'code': value['code'],
|
|
63
65
|
'active': value['active'],
|
|
64
66
|
'expectedStartTime': ((value['expectedStartTime']).toISOString()),
|
|
67
|
+
'externalReferences': value['externalReferences'] == null ? undefined : (value['externalReferences'].map(UpdateReferenceRequest_1.UpdateReferenceRequestToJSON)),
|
|
65
68
|
};
|
|
66
69
|
}
|
|
@@ -20,19 +20,19 @@ export interface CreateSubcategoryRequest {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof CreateSubcategoryRequest
|
|
22
22
|
*/
|
|
23
|
-
id
|
|
23
|
+
id: string;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof CreateSubcategoryRequest
|
|
28
28
|
*/
|
|
29
|
-
name
|
|
29
|
+
name: string;
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof CreateSubcategoryRequest
|
|
34
34
|
*/
|
|
35
|
-
categoryId
|
|
35
|
+
categoryId: string;
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
38
|
* Check if a given object implements the CreateSubcategoryRequest interface.
|
|
@@ -22,6 +22,12 @@ exports.CreateSubcategoryRequestToJSONTyped = CreateSubcategoryRequestToJSONType
|
|
|
22
22
|
* Check if a given object implements the CreateSubcategoryRequest interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfCreateSubcategoryRequest(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('categoryId' in value) || value['categoryId'] === undefined)
|
|
30
|
+
return false;
|
|
25
31
|
return true;
|
|
26
32
|
}
|
|
27
33
|
function CreateSubcategoryRequestFromJSON(json) {
|
|
@@ -32,9 +38,9 @@ function CreateSubcategoryRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
38
|
return json;
|
|
33
39
|
}
|
|
34
40
|
return {
|
|
35
|
-
'id': json['id']
|
|
36
|
-
'name': json['name']
|
|
37
|
-
'categoryId': json['categoryId']
|
|
41
|
+
'id': json['id'],
|
|
42
|
+
'name': json['name'],
|
|
43
|
+
'categoryId': json['categoryId'],
|
|
38
44
|
};
|
|
39
45
|
}
|
|
40
46
|
function CreateSubcategoryRequestToJSON(json) {
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Monaco API
|
|
3
|
+
* A RESTful API that allows you to interact with the Monaco Exchange. Provides endpoints for managing Events, Markets, Sessions, Wallets and Orders. To interact with the API, a client must have an App Id and an API Key to authenticate and create a session.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { DocumentReference } from './DocumentReference';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface EventGroupSummaryWithDates
|
|
17
|
+
*/
|
|
18
|
+
export interface EventGroupSummaryWithDates {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof EventGroupSummaryWithDates
|
|
23
|
+
*/
|
|
24
|
+
id?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof EventGroupSummaryWithDates
|
|
29
|
+
*/
|
|
30
|
+
name?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {DocumentReference}
|
|
34
|
+
* @memberof EventGroupSummaryWithDates
|
|
35
|
+
*/
|
|
36
|
+
subcategory?: DocumentReference;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Date}
|
|
40
|
+
* @memberof EventGroupSummaryWithDates
|
|
41
|
+
* @deprecated
|
|
42
|
+
*/
|
|
43
|
+
createdAt?: Date;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Date}
|
|
47
|
+
* @memberof EventGroupSummaryWithDates
|
|
48
|
+
* @deprecated
|
|
49
|
+
*/
|
|
50
|
+
modifiedAt?: Date;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the EventGroupSummaryWithDates interface.
|
|
54
|
+
*/
|
|
55
|
+
export declare function instanceOfEventGroupSummaryWithDates(value: object): value is EventGroupSummaryWithDates;
|
|
56
|
+
export declare function EventGroupSummaryWithDatesFromJSON(json: any): EventGroupSummaryWithDates;
|
|
57
|
+
export declare function EventGroupSummaryWithDatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): EventGroupSummaryWithDates;
|
|
58
|
+
export declare function EventGroupSummaryWithDatesToJSON(json: any): EventGroupSummaryWithDates;
|
|
59
|
+
export declare function EventGroupSummaryWithDatesToJSONTyped(value?: EventGroupSummaryWithDates | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Monaco API
|
|
6
|
+
* A RESTful API that allows you to interact with the Monaco Exchange. Provides endpoints for managing Events, Markets, Sessions, Wallets and Orders. To interact with the API, a client must have an App Id and an API Key to authenticate and create a session.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfEventGroupSummaryWithDates = instanceOfEventGroupSummaryWithDates;
|
|
17
|
+
exports.EventGroupSummaryWithDatesFromJSON = EventGroupSummaryWithDatesFromJSON;
|
|
18
|
+
exports.EventGroupSummaryWithDatesFromJSONTyped = EventGroupSummaryWithDatesFromJSONTyped;
|
|
19
|
+
exports.EventGroupSummaryWithDatesToJSON = EventGroupSummaryWithDatesToJSON;
|
|
20
|
+
exports.EventGroupSummaryWithDatesToJSONTyped = EventGroupSummaryWithDatesToJSONTyped;
|
|
21
|
+
const DocumentReference_1 = require("./DocumentReference");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the EventGroupSummaryWithDates interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfEventGroupSummaryWithDates(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function EventGroupSummaryWithDatesFromJSON(json) {
|
|
29
|
+
return EventGroupSummaryWithDatesFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function EventGroupSummaryWithDatesFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
37
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
38
|
+
'subcategory': json['subcategory'] == null ? undefined : (0, DocumentReference_1.DocumentReferenceFromJSON)(json['subcategory']),
|
|
39
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
40
|
+
'modifiedAt': json['modifiedAt'] == null ? undefined : (new Date(json['modifiedAt'])),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function EventGroupSummaryWithDatesToJSON(json) {
|
|
44
|
+
return EventGroupSummaryWithDatesToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function EventGroupSummaryWithDatesToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'id': value['id'],
|
|
52
|
+
'name': value['name'],
|
|
53
|
+
'subcategory': (0, DocumentReference_1.DocumentReferenceToJSON)(value['subcategory']),
|
|
54
|
+
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
|
55
|
+
'modifiedAt': value['modifiedAt'] == null ? undefined : ((value['modifiedAt']).toISOString()),
|
|
56
|
+
};
|
|
57
|
+
}
|