@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
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { Meta } from './Meta';
|
|
13
|
-
import type { Category } from './Category';
|
|
14
13
|
import type { ExternalReference } from './ExternalReference';
|
|
15
|
-
import type {
|
|
14
|
+
import type { CategorySummaryWithDates } from './CategorySummaryWithDates';
|
|
16
15
|
import type { Event } from './Event';
|
|
17
|
-
import type {
|
|
16
|
+
import type { EventGroupSummaryWithDates } from './EventGroupSummaryWithDates';
|
|
17
|
+
import type { SubcategorySummaryWithDates } from './SubcategorySummaryWithDates';
|
|
18
18
|
import type { EventParticipant } from './EventParticipant';
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
@@ -36,22 +36,22 @@ export interface EventResponse {
|
|
|
36
36
|
events?: Array<Event>;
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
39
|
-
* @type {Array<
|
|
39
|
+
* @type {Array<EventGroupSummaryWithDates>}
|
|
40
40
|
* @memberof EventResponse
|
|
41
41
|
*/
|
|
42
|
-
eventGroups?: Array<
|
|
42
|
+
eventGroups?: Array<EventGroupSummaryWithDates>;
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
|
-
* @type {Array<
|
|
45
|
+
* @type {Array<SubcategorySummaryWithDates>}
|
|
46
46
|
* @memberof EventResponse
|
|
47
47
|
*/
|
|
48
|
-
subcategories?: Array<
|
|
48
|
+
subcategories?: Array<SubcategorySummaryWithDates>;
|
|
49
49
|
/**
|
|
50
50
|
*
|
|
51
|
-
* @type {Array<
|
|
51
|
+
* @type {Array<CategorySummaryWithDates>}
|
|
52
52
|
* @memberof EventResponse
|
|
53
53
|
*/
|
|
54
|
-
categories?: Array<
|
|
54
|
+
categories?: Array<CategorySummaryWithDates>;
|
|
55
55
|
/**
|
|
56
56
|
*
|
|
57
57
|
* @type {Array<EventParticipant>}
|
|
@@ -19,11 +19,11 @@ exports.EventResponseFromJSONTyped = EventResponseFromJSONTyped;
|
|
|
19
19
|
exports.EventResponseToJSON = EventResponseToJSON;
|
|
20
20
|
exports.EventResponseToJSONTyped = EventResponseToJSONTyped;
|
|
21
21
|
const Meta_1 = require("./Meta");
|
|
22
|
-
const Category_1 = require("./Category");
|
|
23
22
|
const ExternalReference_1 = require("./ExternalReference");
|
|
24
|
-
const
|
|
23
|
+
const CategorySummaryWithDates_1 = require("./CategorySummaryWithDates");
|
|
25
24
|
const Event_1 = require("./Event");
|
|
26
|
-
const
|
|
25
|
+
const EventGroupSummaryWithDates_1 = require("./EventGroupSummaryWithDates");
|
|
26
|
+
const SubcategorySummaryWithDates_1 = require("./SubcategorySummaryWithDates");
|
|
27
27
|
const EventParticipant_1 = require("./EventParticipant");
|
|
28
28
|
/**
|
|
29
29
|
* Check if a given object implements the EventResponse interface.
|
|
@@ -41,9 +41,9 @@ function EventResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
41
|
return {
|
|
42
42
|
'meta': json['_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['_meta']),
|
|
43
43
|
'events': json['events'] == null ? undefined : (json['events'].map(Event_1.EventFromJSON)),
|
|
44
|
-
'eventGroups': json['eventGroups'] == null ? undefined : (json['eventGroups'].map(
|
|
45
|
-
'subcategories': json['subcategories'] == null ? undefined : (json['subcategories'].map(
|
|
46
|
-
'categories': json['categories'] == null ? undefined : (json['categories'].map(
|
|
44
|
+
'eventGroups': json['eventGroups'] == null ? undefined : (json['eventGroups'].map(EventGroupSummaryWithDates_1.EventGroupSummaryWithDatesFromJSON)),
|
|
45
|
+
'subcategories': json['subcategories'] == null ? undefined : (json['subcategories'].map(SubcategorySummaryWithDates_1.SubcategorySummaryWithDatesFromJSON)),
|
|
46
|
+
'categories': json['categories'] == null ? undefined : (json['categories'].map(CategorySummaryWithDates_1.CategorySummaryWithDatesFromJSON)),
|
|
47
47
|
'participants': json['participants'] == null ? undefined : (json['participants'].map(EventParticipant_1.EventParticipantFromJSON)),
|
|
48
48
|
'externalReferences': json['externalReferences'] == null ? undefined : (json['externalReferences'].map(ExternalReference_1.ExternalReferenceFromJSON)),
|
|
49
49
|
};
|
|
@@ -58,9 +58,9 @@ function EventResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
58
58
|
return {
|
|
59
59
|
'_meta': (0, Meta_1.MetaToJSON)(value['meta']),
|
|
60
60
|
'events': value['events'] == null ? undefined : (value['events'].map(Event_1.EventToJSON)),
|
|
61
|
-
'eventGroups': value['eventGroups'] == null ? undefined : (value['eventGroups'].map(
|
|
62
|
-
'subcategories': value['subcategories'] == null ? undefined : (value['subcategories'].map(
|
|
63
|
-
'categories': value['categories'] == null ? undefined : (value['categories'].map(
|
|
61
|
+
'eventGroups': value['eventGroups'] == null ? undefined : (value['eventGroups'].map(EventGroupSummaryWithDates_1.EventGroupSummaryWithDatesToJSON)),
|
|
62
|
+
'subcategories': value['subcategories'] == null ? undefined : (value['subcategories'].map(SubcategorySummaryWithDates_1.SubcategorySummaryWithDatesToJSON)),
|
|
63
|
+
'categories': value['categories'] == null ? undefined : (value['categories'].map(CategorySummaryWithDates_1.CategorySummaryWithDatesToJSON)),
|
|
64
64
|
'participants': value['participants'] == null ? undefined : (value['participants'].map(EventParticipant_1.EventParticipantToJSON)),
|
|
65
65
|
'externalReferences': value['externalReferences'] == null ? undefined : (value['externalReferences'].map(ExternalReference_1.ExternalReferenceToJSON)),
|
|
66
66
|
};
|
package/dist/models/Market.d.ts
CHANGED
|
@@ -180,6 +180,7 @@ export type MarketEventStartActionEnum = typeof MarketEventStartActionEnum[keyof
|
|
|
180
180
|
export declare const MarketStatusEnum: {
|
|
181
181
|
readonly Initializing: "Initializing";
|
|
182
182
|
readonly Open: "Open";
|
|
183
|
+
readonly Locking: "Locking";
|
|
183
184
|
readonly Locked: "Locked";
|
|
184
185
|
readonly Settling: "Settling";
|
|
185
186
|
readonly Settled: "Settled";
|
package/dist/models/Market.js
CHANGED
|
@@ -86,6 +86,7 @@ export type MarketSummaryInPlayStatusEnum = typeof MarketSummaryInPlayStatusEnum
|
|
|
86
86
|
export declare const MarketSummaryStatusEnum: {
|
|
87
87
|
readonly Initializing: "Initializing";
|
|
88
88
|
readonly Open: "Open";
|
|
89
|
+
readonly Locking: "Locking";
|
|
89
90
|
readonly Locked: "Locked";
|
|
90
91
|
readonly Settling: "Settling";
|
|
91
92
|
readonly Settled: "Settled";
|
|
@@ -20,7 +20,7 @@ export interface ModifyParticipantsRequest {
|
|
|
20
20
|
* @type {Array<string>}
|
|
21
21
|
* @memberof ModifyParticipantsRequest
|
|
22
22
|
*/
|
|
23
|
-
participantCodes
|
|
23
|
+
participantCodes: Array<string>;
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
26
|
* Check if a given object implements the ModifyParticipantsRequest interface.
|
|
@@ -22,6 +22,8 @@ exports.ModifyParticipantsRequestToJSONTyped = ModifyParticipantsRequestToJSONTy
|
|
|
22
22
|
* Check if a given object implements the ModifyParticipantsRequest interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfModifyParticipantsRequest(value) {
|
|
25
|
+
if (!('participantCodes' in value) || value['participantCodes'] === undefined)
|
|
26
|
+
return false;
|
|
25
27
|
return true;
|
|
26
28
|
}
|
|
27
29
|
function ModifyParticipantsRequestFromJSON(json) {
|
|
@@ -32,7 +34,7 @@ function ModifyParticipantsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
34
|
return json;
|
|
33
35
|
}
|
|
34
36
|
return {
|
|
35
|
-
'participantCodes': json['participantCodes']
|
|
37
|
+
'participantCodes': json['participantCodes'],
|
|
36
38
|
};
|
|
37
39
|
}
|
|
38
40
|
function ModifyParticipantsRequestToJSON(json) {
|
package/dist/models/Order.d.ts
CHANGED
package/dist/models/Order.js
CHANGED
|
@@ -50,6 +50,8 @@ exports.OrderMatchBehaviorEnum = {
|
|
|
50
50
|
* Check if a given object implements the Order interface.
|
|
51
51
|
*/
|
|
52
52
|
function instanceOfOrder(value) {
|
|
53
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
54
|
+
return false;
|
|
53
55
|
return true;
|
|
54
56
|
}
|
|
55
57
|
function OrderFromJSON(json) {
|
|
@@ -60,7 +62,7 @@ function OrderFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
60
62
|
return json;
|
|
61
63
|
}
|
|
62
64
|
return {
|
|
63
|
-
'id': json['id']
|
|
65
|
+
'id': json['id'],
|
|
64
66
|
'appId': json['appId'] == null ? undefined : json['appId'],
|
|
65
67
|
'market': json['market'] == null ? undefined : (0, DocumentReference_1.DocumentReferenceFromJSON)(json['market']),
|
|
66
68
|
'walletId': json['walletId'] == null ? undefined : json['walletId'],
|
|
@@ -22,6 +22,8 @@ exports.OrderFailureToJSONTyped = OrderFailureToJSONTyped;
|
|
|
22
22
|
* Check if a given object implements the OrderFailure interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfOrderFailure(value) {
|
|
25
|
+
if (!('errorCode' in value) || value['errorCode'] === undefined)
|
|
26
|
+
return false;
|
|
25
27
|
return true;
|
|
26
28
|
}
|
|
27
29
|
function OrderFailureFromJSON(json) {
|
|
@@ -32,7 +34,7 @@ function OrderFailureFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
34
|
return json;
|
|
33
35
|
}
|
|
34
36
|
return {
|
|
35
|
-
'errorCode': json['errorCode']
|
|
37
|
+
'errorCode': json['errorCode'],
|
|
36
38
|
'errorMessage': json['errorMessage'] == null ? undefined : json['errorMessage'],
|
|
37
39
|
};
|
|
38
40
|
}
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { Meta } from './Meta';
|
|
13
|
-
import type { Category } from './Category';
|
|
14
13
|
import type { ExternalReference } from './ExternalReference';
|
|
15
|
-
import type {
|
|
14
|
+
import type { CategorySummaryWithDates } from './CategorySummaryWithDates';
|
|
16
15
|
import type { Event } from './Event';
|
|
17
|
-
import type {
|
|
16
|
+
import type { EventGroupSummaryWithDates } from './EventGroupSummaryWithDates';
|
|
17
|
+
import type { SubcategorySummaryWithDates } from './SubcategorySummaryWithDates';
|
|
18
18
|
import type { EventParticipant } from './EventParticipant';
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
@@ -36,22 +36,22 @@ export interface PagedEventResponse {
|
|
|
36
36
|
events?: Array<Event>;
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
39
|
-
* @type {Array<
|
|
39
|
+
* @type {Array<EventGroupSummaryWithDates>}
|
|
40
40
|
* @memberof PagedEventResponse
|
|
41
41
|
*/
|
|
42
|
-
eventGroups?: Array<
|
|
42
|
+
eventGroups?: Array<EventGroupSummaryWithDates>;
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
|
-
* @type {Array<
|
|
45
|
+
* @type {Array<SubcategorySummaryWithDates>}
|
|
46
46
|
* @memberof PagedEventResponse
|
|
47
47
|
*/
|
|
48
|
-
subcategories?: Array<
|
|
48
|
+
subcategories?: Array<SubcategorySummaryWithDates>;
|
|
49
49
|
/**
|
|
50
50
|
*
|
|
51
|
-
* @type {Array<
|
|
51
|
+
* @type {Array<CategorySummaryWithDates>}
|
|
52
52
|
* @memberof PagedEventResponse
|
|
53
53
|
*/
|
|
54
|
-
categories?: Array<
|
|
54
|
+
categories?: Array<CategorySummaryWithDates>;
|
|
55
55
|
/**
|
|
56
56
|
*
|
|
57
57
|
* @type {Array<EventParticipant>}
|
|
@@ -19,11 +19,11 @@ exports.PagedEventResponseFromJSONTyped = PagedEventResponseFromJSONTyped;
|
|
|
19
19
|
exports.PagedEventResponseToJSON = PagedEventResponseToJSON;
|
|
20
20
|
exports.PagedEventResponseToJSONTyped = PagedEventResponseToJSONTyped;
|
|
21
21
|
const Meta_1 = require("./Meta");
|
|
22
|
-
const Category_1 = require("./Category");
|
|
23
22
|
const ExternalReference_1 = require("./ExternalReference");
|
|
24
|
-
const
|
|
23
|
+
const CategorySummaryWithDates_1 = require("./CategorySummaryWithDates");
|
|
25
24
|
const Event_1 = require("./Event");
|
|
26
|
-
const
|
|
25
|
+
const EventGroupSummaryWithDates_1 = require("./EventGroupSummaryWithDates");
|
|
26
|
+
const SubcategorySummaryWithDates_1 = require("./SubcategorySummaryWithDates");
|
|
27
27
|
const EventParticipant_1 = require("./EventParticipant");
|
|
28
28
|
/**
|
|
29
29
|
* Check if a given object implements the PagedEventResponse interface.
|
|
@@ -41,9 +41,9 @@ function PagedEventResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
41
|
return {
|
|
42
42
|
'meta': json['_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['_meta']),
|
|
43
43
|
'events': json['events'] == null ? undefined : (json['events'].map(Event_1.EventFromJSON)),
|
|
44
|
-
'eventGroups': json['eventGroups'] == null ? undefined : (json['eventGroups'].map(
|
|
45
|
-
'subcategories': json['subcategories'] == null ? undefined : (json['subcategories'].map(
|
|
46
|
-
'categories': json['categories'] == null ? undefined : (json['categories'].map(
|
|
44
|
+
'eventGroups': json['eventGroups'] == null ? undefined : (json['eventGroups'].map(EventGroupSummaryWithDates_1.EventGroupSummaryWithDatesFromJSON)),
|
|
45
|
+
'subcategories': json['subcategories'] == null ? undefined : (json['subcategories'].map(SubcategorySummaryWithDates_1.SubcategorySummaryWithDatesFromJSON)),
|
|
46
|
+
'categories': json['categories'] == null ? undefined : (json['categories'].map(CategorySummaryWithDates_1.CategorySummaryWithDatesFromJSON)),
|
|
47
47
|
'participants': json['participants'] == null ? undefined : (json['participants'].map(EventParticipant_1.EventParticipantFromJSON)),
|
|
48
48
|
'externalReferences': json['externalReferences'] == null ? undefined : (json['externalReferences'].map(ExternalReference_1.ExternalReferenceFromJSON)),
|
|
49
49
|
};
|
|
@@ -58,9 +58,9 @@ function PagedEventResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
58
58
|
return {
|
|
59
59
|
'_meta': (0, Meta_1.MetaToJSON)(value['meta']),
|
|
60
60
|
'events': value['events'] == null ? undefined : (value['events'].map(Event_1.EventToJSON)),
|
|
61
|
-
'eventGroups': value['eventGroups'] == null ? undefined : (value['eventGroups'].map(
|
|
62
|
-
'subcategories': value['subcategories'] == null ? undefined : (value['subcategories'].map(
|
|
63
|
-
'categories': value['categories'] == null ? undefined : (value['categories'].map(
|
|
61
|
+
'eventGroups': value['eventGroups'] == null ? undefined : (value['eventGroups'].map(EventGroupSummaryWithDates_1.EventGroupSummaryWithDatesToJSON)),
|
|
62
|
+
'subcategories': value['subcategories'] == null ? undefined : (value['subcategories'].map(SubcategorySummaryWithDates_1.SubcategorySummaryWithDatesToJSON)),
|
|
63
|
+
'categories': value['categories'] == null ? undefined : (value['categories'].map(CategorySummaryWithDates_1.CategorySummaryWithDatesToJSON)),
|
|
64
64
|
'participants': value['participants'] == null ? undefined : (value['participants'].map(EventParticipant_1.EventParticipantToJSON)),
|
|
65
65
|
'externalReferences': value['externalReferences'] == null ? undefined : (value['externalReferences'].map(ExternalReference_1.ExternalReferenceToJSON)),
|
|
66
66
|
};
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { DocumentReference } from './DocumentReference';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -21,6 +22,12 @@ export interface Participant {
|
|
|
21
22
|
* @memberof Participant
|
|
22
23
|
*/
|
|
23
24
|
id?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {DocumentReference}
|
|
28
|
+
* @memberof Participant
|
|
29
|
+
*/
|
|
30
|
+
externalReferences?: DocumentReference;
|
|
24
31
|
/**
|
|
25
32
|
* Unique code for this participant across all events in a given subcategory
|
|
26
33
|
* @type {string}
|
|
@@ -19,6 +19,7 @@ exports.ParticipantFromJSON = ParticipantFromJSON;
|
|
|
19
19
|
exports.ParticipantFromJSONTyped = ParticipantFromJSONTyped;
|
|
20
20
|
exports.ParticipantToJSON = ParticipantToJSON;
|
|
21
21
|
exports.ParticipantToJSONTyped = ParticipantToJSONTyped;
|
|
22
|
+
const DocumentReference_1 = require("./DocumentReference");
|
|
22
23
|
/**
|
|
23
24
|
* @export
|
|
24
25
|
*/
|
|
@@ -41,6 +42,7 @@ function ParticipantFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
42
|
}
|
|
42
43
|
return {
|
|
43
44
|
'id': json['id'] == null ? undefined : json['id'],
|
|
45
|
+
'externalReferences': json['externalReferences'] == null ? undefined : (0, DocumentReference_1.DocumentReferenceFromJSON)(json['externalReferences']),
|
|
44
46
|
'code': json['code'] == null ? undefined : json['code'],
|
|
45
47
|
'name': json['name'] == null ? undefined : json['name'],
|
|
46
48
|
'type': json['type'] == null ? undefined : json['type'],
|
|
@@ -56,6 +58,7 @@ function ParticipantToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
56
58
|
}
|
|
57
59
|
return {
|
|
58
60
|
'id': value['id'],
|
|
61
|
+
'externalReferences': (0, DocumentReference_1.DocumentReferenceToJSON)(value['externalReferences']),
|
|
59
62
|
'code': value['code'],
|
|
60
63
|
'name': value['name'],
|
|
61
64
|
'type': value['type'],
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { Meta } from './Meta';
|
|
13
|
+
import type { ExternalReference } from './ExternalReference';
|
|
13
14
|
import type { Participant } from './Participant';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
@@ -29,6 +30,12 @@ export interface ParticipantsResponse {
|
|
|
29
30
|
* @memberof ParticipantsResponse
|
|
30
31
|
*/
|
|
31
32
|
participants?: Array<Participant>;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {Array<ExternalReference>}
|
|
36
|
+
* @memberof ParticipantsResponse
|
|
37
|
+
*/
|
|
38
|
+
externalReferences?: Array<ExternalReference>;
|
|
32
39
|
}
|
|
33
40
|
/**
|
|
34
41
|
* Check if a given object implements the ParticipantsResponse interface.
|
|
@@ -19,6 +19,7 @@ exports.ParticipantsResponseFromJSONTyped = ParticipantsResponseFromJSONTyped;
|
|
|
19
19
|
exports.ParticipantsResponseToJSON = ParticipantsResponseToJSON;
|
|
20
20
|
exports.ParticipantsResponseToJSONTyped = ParticipantsResponseToJSONTyped;
|
|
21
21
|
const Meta_1 = require("./Meta");
|
|
22
|
+
const ExternalReference_1 = require("./ExternalReference");
|
|
22
23
|
const Participant_1 = require("./Participant");
|
|
23
24
|
/**
|
|
24
25
|
* Check if a given object implements the ParticipantsResponse interface.
|
|
@@ -36,6 +37,7 @@ function ParticipantsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
37
|
return {
|
|
37
38
|
'meta': json['_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['_meta']),
|
|
38
39
|
'participants': json['participants'] == null ? undefined : (json['participants'].map(Participant_1.ParticipantFromJSON)),
|
|
40
|
+
'externalReferences': json['externalReferences'] == null ? undefined : (json['externalReferences'].map(ExternalReference_1.ExternalReferenceFromJSON)),
|
|
39
41
|
};
|
|
40
42
|
}
|
|
41
43
|
function ParticipantsResponseToJSON(json) {
|
|
@@ -48,5 +50,6 @@ function ParticipantsResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
48
50
|
return {
|
|
49
51
|
'_meta': (0, Meta_1.MetaToJSON)(value['meta']),
|
|
50
52
|
'participants': value['participants'] == null ? undefined : (value['participants'].map(Participant_1.ParticipantToJSON)),
|
|
53
|
+
'externalReferences': value['externalReferences'] == null ? undefined : (value['externalReferences'].map(ExternalReference_1.ExternalReferenceToJSON)),
|
|
51
54
|
};
|
|
52
55
|
}
|
|
@@ -34,6 +34,7 @@ function SubcategoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
34
|
}
|
|
35
35
|
return {
|
|
36
36
|
'id': json['id'] == null ? undefined : json['id'],
|
|
37
|
+
'externalReferences': json['externalReferences'] == null ? undefined : (0, DocumentReference_1.DocumentReferenceFromJSON)(json['externalReferences']),
|
|
37
38
|
'name': json['name'] == null ? undefined : json['name'],
|
|
38
39
|
'category': json['category'] == null ? undefined : (0, DocumentReference_1.DocumentReferenceFromJSON)(json['category']),
|
|
39
40
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
@@ -49,6 +50,7 @@ function SubcategoryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
49
50
|
}
|
|
50
51
|
return {
|
|
51
52
|
'id': value['id'],
|
|
53
|
+
'externalReferences': (0, DocumentReference_1.DocumentReferenceToJSON)(value['externalReferences']),
|
|
52
54
|
'name': value['name'],
|
|
53
55
|
'category': (0, DocumentReference_1.DocumentReferenceToJSON)(value['category']),
|
|
54
56
|
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { Meta } from './Meta';
|
|
13
|
+
import type { ExternalReference } from './ExternalReference';
|
|
13
14
|
import type { Subcategory } from './Subcategory';
|
|
14
15
|
import type { CategorySummary } from './CategorySummary';
|
|
15
16
|
/**
|
|
@@ -30,6 +31,12 @@ export interface SubcategoryResponse {
|
|
|
30
31
|
* @memberof SubcategoryResponse
|
|
31
32
|
*/
|
|
32
33
|
subcategories?: Array<Subcategory>;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {Array<ExternalReference>}
|
|
37
|
+
* @memberof SubcategoryResponse
|
|
38
|
+
*/
|
|
39
|
+
externalReferences?: Array<ExternalReference>;
|
|
33
40
|
/**
|
|
34
41
|
*
|
|
35
42
|
* @type {Array<CategorySummary>}
|
|
@@ -19,6 +19,7 @@ exports.SubcategoryResponseFromJSONTyped = SubcategoryResponseFromJSONTyped;
|
|
|
19
19
|
exports.SubcategoryResponseToJSON = SubcategoryResponseToJSON;
|
|
20
20
|
exports.SubcategoryResponseToJSONTyped = SubcategoryResponseToJSONTyped;
|
|
21
21
|
const Meta_1 = require("./Meta");
|
|
22
|
+
const ExternalReference_1 = require("./ExternalReference");
|
|
22
23
|
const Subcategory_1 = require("./Subcategory");
|
|
23
24
|
const CategorySummary_1 = require("./CategorySummary");
|
|
24
25
|
/**
|
|
@@ -37,6 +38,7 @@ function SubcategoryResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
38
|
return {
|
|
38
39
|
'meta': json['_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['_meta']),
|
|
39
40
|
'subcategories': json['subcategories'] == null ? undefined : (json['subcategories'].map(Subcategory_1.SubcategoryFromJSON)),
|
|
41
|
+
'externalReferences': json['externalReferences'] == null ? undefined : (json['externalReferences'].map(ExternalReference_1.ExternalReferenceFromJSON)),
|
|
40
42
|
'categories': json['categories'] == null ? undefined : (json['categories'].map(CategorySummary_1.CategorySummaryFromJSON)),
|
|
41
43
|
};
|
|
42
44
|
}
|
|
@@ -50,6 +52,7 @@ function SubcategoryResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
50
52
|
return {
|
|
51
53
|
'_meta': (0, Meta_1.MetaToJSON)(value['meta']),
|
|
52
54
|
'subcategories': value['subcategories'] == null ? undefined : (value['subcategories'].map(Subcategory_1.SubcategoryToJSON)),
|
|
55
|
+
'externalReferences': value['externalReferences'] == null ? undefined : (value['externalReferences'].map(ExternalReference_1.ExternalReferenceToJSON)),
|
|
53
56
|
'categories': value['categories'] == null ? undefined : (value['categories'].map(CategorySummary_1.CategorySummaryToJSON)),
|
|
54
57
|
};
|
|
55
58
|
}
|
|
@@ -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 SubcategorySummaryWithDates
|
|
17
|
+
*/
|
|
18
|
+
export interface SubcategorySummaryWithDates {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof SubcategorySummaryWithDates
|
|
23
|
+
*/
|
|
24
|
+
id?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof SubcategorySummaryWithDates
|
|
29
|
+
*/
|
|
30
|
+
name?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {DocumentReference}
|
|
34
|
+
* @memberof SubcategorySummaryWithDates
|
|
35
|
+
*/
|
|
36
|
+
category?: DocumentReference;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Date}
|
|
40
|
+
* @memberof SubcategorySummaryWithDates
|
|
41
|
+
* @deprecated
|
|
42
|
+
*/
|
|
43
|
+
createdAt?: Date;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Date}
|
|
47
|
+
* @memberof SubcategorySummaryWithDates
|
|
48
|
+
* @deprecated
|
|
49
|
+
*/
|
|
50
|
+
modifiedAt?: Date;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the SubcategorySummaryWithDates interface.
|
|
54
|
+
*/
|
|
55
|
+
export declare function instanceOfSubcategorySummaryWithDates(value: object): value is SubcategorySummaryWithDates;
|
|
56
|
+
export declare function SubcategorySummaryWithDatesFromJSON(json: any): SubcategorySummaryWithDates;
|
|
57
|
+
export declare function SubcategorySummaryWithDatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubcategorySummaryWithDates;
|
|
58
|
+
export declare function SubcategorySummaryWithDatesToJSON(json: any): SubcategorySummaryWithDates;
|
|
59
|
+
export declare function SubcategorySummaryWithDatesToJSONTyped(value?: SubcategorySummaryWithDates | 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.instanceOfSubcategorySummaryWithDates = instanceOfSubcategorySummaryWithDates;
|
|
17
|
+
exports.SubcategorySummaryWithDatesFromJSON = SubcategorySummaryWithDatesFromJSON;
|
|
18
|
+
exports.SubcategorySummaryWithDatesFromJSONTyped = SubcategorySummaryWithDatesFromJSONTyped;
|
|
19
|
+
exports.SubcategorySummaryWithDatesToJSON = SubcategorySummaryWithDatesToJSON;
|
|
20
|
+
exports.SubcategorySummaryWithDatesToJSONTyped = SubcategorySummaryWithDatesToJSONTyped;
|
|
21
|
+
const DocumentReference_1 = require("./DocumentReference");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the SubcategorySummaryWithDates interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfSubcategorySummaryWithDates(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function SubcategorySummaryWithDatesFromJSON(json) {
|
|
29
|
+
return SubcategorySummaryWithDatesFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function SubcategorySummaryWithDatesFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
37
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
38
|
+
'category': json['category'] == null ? undefined : (0, DocumentReference_1.DocumentReferenceFromJSON)(json['category']),
|
|
39
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
40
|
+
'modifiedAt': json['modifiedAt'] == null ? undefined : (new Date(json['modifiedAt'])),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function SubcategorySummaryWithDatesToJSON(json) {
|
|
44
|
+
return SubcategorySummaryWithDatesToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function SubcategorySummaryWithDatesToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'id': value['id'],
|
|
52
|
+
'name': value['name'],
|
|
53
|
+
'category': (0, DocumentReference_1.DocumentReferenceToJSON)(value['category']),
|
|
54
|
+
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
|
55
|
+
'modifiedAt': value['modifiedAt'] == null ? undefined : ((value['modifiedAt']).toISOString()),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,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 UpdateWalletOverdraftRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateWalletOverdraftRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UpdateWalletOverdraftRequest
|
|
22
|
+
*/
|
|
23
|
+
currencyId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof UpdateWalletOverdraftRequest
|
|
28
|
+
*/
|
|
29
|
+
newOverdraftLimit: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the UpdateWalletOverdraftRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfUpdateWalletOverdraftRequest(value: object): value is UpdateWalletOverdraftRequest;
|
|
35
|
+
export declare function UpdateWalletOverdraftRequestFromJSON(json: any): UpdateWalletOverdraftRequest;
|
|
36
|
+
export declare function UpdateWalletOverdraftRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateWalletOverdraftRequest;
|
|
37
|
+
export declare function UpdateWalletOverdraftRequestToJSON(json: any): UpdateWalletOverdraftRequest;
|
|
38
|
+
export declare function UpdateWalletOverdraftRequestToJSONTyped(value?: UpdateWalletOverdraftRequest | null, ignoreDiscriminator?: boolean): any;
|