@monaco-protocol/client-v2 0.0.75 → 0.0.84-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.
Files changed (45) hide show
  1. package/dist/apis/EventGroupsApi.d.ts +13 -0
  2. package/dist/apis/EventGroupsApi.js +37 -0
  3. package/dist/apis/EventSubcategoriesApi.d.ts +40 -1
  4. package/dist/apis/EventSubcategoriesApi.js +115 -0
  5. package/dist/apis/EventsApi.d.ts +11 -11
  6. package/dist/apis/EventsApi.js +20 -20
  7. package/dist/apis/MarketsApi.d.ts +9 -9
  8. package/dist/apis/MarketsApi.js +18 -18
  9. package/dist/apis/ParticipantsApi.d.ts +57 -0
  10. package/dist/apis/ParticipantsApi.js +148 -0
  11. package/dist/apis/index.d.ts +1 -0
  12. package/dist/apis/index.js +1 -0
  13. package/dist/models/AddParticipantRequest.d.ts +10 -3
  14. package/dist/models/AddParticipantRequest.js +12 -3
  15. package/dist/models/AddParticipantsRequest.d.ts +1 -1
  16. package/dist/models/AddParticipantsRequest.js +4 -2
  17. package/dist/models/CategorySummaryWithDates.d.ts +52 -0
  18. package/dist/models/CategorySummaryWithDates.js +54 -0
  19. package/dist/models/CreateEventRequest.d.ts +7 -0
  20. package/dist/models/CreateEventRequest.js +3 -0
  21. package/dist/models/EventGroupSummaryWithDates.d.ts +59 -0
  22. package/dist/models/EventGroupSummaryWithDates.js +57 -0
  23. package/dist/models/EventResponse.d.ts +9 -9
  24. package/dist/models/EventResponse.js +9 -9
  25. package/dist/models/Order.d.ts +1 -1
  26. package/dist/models/Order.js +3 -1
  27. package/dist/models/OrderFailure.d.ts +1 -1
  28. package/dist/models/OrderFailure.js +3 -1
  29. package/dist/models/PagedEventResponse.d.ts +9 -9
  30. package/dist/models/PagedEventResponse.js +9 -9
  31. package/dist/models/Participant.d.ts +7 -0
  32. package/dist/models/Participant.js +3 -0
  33. package/dist/models/ParticipantsResponse.d.ts +7 -0
  34. package/dist/models/ParticipantsResponse.js +3 -0
  35. package/dist/models/Subcategory.d.ts +6 -0
  36. package/dist/models/Subcategory.js +2 -0
  37. package/dist/models/SubcategoryResponse.d.ts +7 -0
  38. package/dist/models/SubcategoryResponse.js +3 -0
  39. package/dist/models/SubcategorySummaryWithDates.d.ts +59 -0
  40. package/dist/models/SubcategorySummaryWithDates.js +57 -0
  41. package/dist/models/WithdrawalRequest.d.ts +2 -0
  42. package/dist/models/WithdrawalRequest.js +2 -0
  43. package/dist/models/index.d.ts +3 -0
  44. package/dist/models/index.js +3 -0
  45. package/package.json +1 -1
@@ -0,0 +1,57 @@
1
+ /**
2
+ * Monaco API
3
+ * A RESTful API that allows you to interact with the Monaco Exchange. Provides endpoints for managing Events, Markets, Sessions, Wallets and Orders. To interact with the API, a client must have an App Id and an API Key to authenticate and create a session.
4
+ *
5
+ * The version of the OpenAPI document: 0.1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import * as runtime from '../runtime';
13
+ import type { ParticipantsResponse, UpdateReferencesRequest } from '../models/index';
14
+ export interface ParticipantsApiDeleteReference1Request {
15
+ authorization: string;
16
+ id: string;
17
+ updateReferencesRequest: UpdateReferencesRequest;
18
+ }
19
+ export interface ParticipantsApiGetByReference1Request {
20
+ authorization: string;
21
+ source: string;
22
+ reference: string;
23
+ }
24
+ export interface ParticipantsApiUpdateReference1Request {
25
+ authorization: string;
26
+ id: string;
27
+ updateReferencesRequest: UpdateReferencesRequest;
28
+ }
29
+ /**
30
+ *
31
+ */
32
+ export declare class ParticipantsApi extends runtime.BaseAPI {
33
+ /**
34
+ * Delete participant external reference
35
+ */
36
+ deleteReference1Raw(requestParameters: ParticipantsApiDeleteReference1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ParticipantsResponse>>;
37
+ /**
38
+ * Delete participant external reference
39
+ */
40
+ deleteReference1(requestParameters: ParticipantsApiDeleteReference1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ParticipantsResponse>;
41
+ /**
42
+ * Fetch participants by external reference
43
+ */
44
+ getByReference1Raw(requestParameters: ParticipantsApiGetByReference1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ParticipantsResponse>>;
45
+ /**
46
+ * Fetch participants by external reference
47
+ */
48
+ getByReference1(requestParameters: ParticipantsApiGetByReference1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ParticipantsResponse>;
49
+ /**
50
+ * Update participant external reference
51
+ */
52
+ updateReference1Raw(requestParameters: ParticipantsApiUpdateReference1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ParticipantsResponse>>;
53
+ /**
54
+ * Update participant external reference
55
+ */
56
+ updateReference1(requestParameters: ParticipantsApiUpdateReference1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ParticipantsResponse>;
57
+ }
@@ -0,0 +1,148 @@
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
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.ParticipantsApi = void 0;
26
+ const runtime = require("../runtime");
27
+ const index_1 = require("../models/index");
28
+ /**
29
+ *
30
+ */
31
+ class ParticipantsApi extends runtime.BaseAPI {
32
+ /**
33
+ * Delete participant external reference
34
+ */
35
+ deleteReference1Raw(requestParameters, initOverrides) {
36
+ return __awaiter(this, void 0, void 0, function* () {
37
+ if (requestParameters['authorization'] == null) {
38
+ throw new runtime.RequiredError('authorization', 'Required parameter "authorization" was null or undefined when calling deleteReference1().');
39
+ }
40
+ if (requestParameters['id'] == null) {
41
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteReference1().');
42
+ }
43
+ if (requestParameters['updateReferencesRequest'] == null) {
44
+ throw new runtime.RequiredError('updateReferencesRequest', 'Required parameter "updateReferencesRequest" was null or undefined when calling deleteReference1().');
45
+ }
46
+ const queryParameters = {};
47
+ const headerParameters = {};
48
+ headerParameters['Content-Type'] = 'application/json';
49
+ if (requestParameters['authorization'] != null) {
50
+ headerParameters['authorization'] = String(requestParameters['authorization']);
51
+ }
52
+ const response = yield this.request({
53
+ path: `/participants/{id}/references`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
54
+ method: 'DELETE',
55
+ headers: headerParameters,
56
+ query: queryParameters,
57
+ body: (0, index_1.UpdateReferencesRequestToJSON)(requestParameters['updateReferencesRequest']),
58
+ }, initOverrides);
59
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ParticipantsResponseFromJSON)(jsonValue));
60
+ });
61
+ }
62
+ /**
63
+ * Delete participant external reference
64
+ */
65
+ deleteReference1(requestParameters, initOverrides) {
66
+ return __awaiter(this, void 0, void 0, function* () {
67
+ const response = yield this.deleteReference1Raw(requestParameters, initOverrides);
68
+ return yield response.value();
69
+ });
70
+ }
71
+ /**
72
+ * Fetch participants by external reference
73
+ */
74
+ getByReference1Raw(requestParameters, initOverrides) {
75
+ return __awaiter(this, void 0, void 0, function* () {
76
+ if (requestParameters['authorization'] == null) {
77
+ throw new runtime.RequiredError('authorization', 'Required parameter "authorization" was null or undefined when calling getByReference1().');
78
+ }
79
+ if (requestParameters['source'] == null) {
80
+ throw new runtime.RequiredError('source', 'Required parameter "source" was null or undefined when calling getByReference1().');
81
+ }
82
+ if (requestParameters['reference'] == null) {
83
+ throw new runtime.RequiredError('reference', 'Required parameter "reference" was null or undefined when calling getByReference1().');
84
+ }
85
+ const queryParameters = {};
86
+ const headerParameters = {};
87
+ if (requestParameters['authorization'] != null) {
88
+ headerParameters['authorization'] = String(requestParameters['authorization']);
89
+ }
90
+ const response = yield this.request({
91
+ path: `/participants/by-reference/{source}/{reference}`.replace(`{${"source"}}`, encodeURIComponent(String(requestParameters['source']))).replace(`{${"reference"}}`, encodeURIComponent(String(requestParameters['reference']))),
92
+ method: 'GET',
93
+ headers: headerParameters,
94
+ query: queryParameters,
95
+ }, initOverrides);
96
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ParticipantsResponseFromJSON)(jsonValue));
97
+ });
98
+ }
99
+ /**
100
+ * Fetch participants by external reference
101
+ */
102
+ getByReference1(requestParameters, initOverrides) {
103
+ return __awaiter(this, void 0, void 0, function* () {
104
+ const response = yield this.getByReference1Raw(requestParameters, initOverrides);
105
+ return yield response.value();
106
+ });
107
+ }
108
+ /**
109
+ * Update participant external reference
110
+ */
111
+ updateReference1Raw(requestParameters, initOverrides) {
112
+ return __awaiter(this, void 0, void 0, function* () {
113
+ if (requestParameters['authorization'] == null) {
114
+ throw new runtime.RequiredError('authorization', 'Required parameter "authorization" was null or undefined when calling updateReference1().');
115
+ }
116
+ if (requestParameters['id'] == null) {
117
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateReference1().');
118
+ }
119
+ if (requestParameters['updateReferencesRequest'] == null) {
120
+ throw new runtime.RequiredError('updateReferencesRequest', 'Required parameter "updateReferencesRequest" was null or undefined when calling updateReference1().');
121
+ }
122
+ const queryParameters = {};
123
+ const headerParameters = {};
124
+ headerParameters['Content-Type'] = 'application/json';
125
+ if (requestParameters['authorization'] != null) {
126
+ headerParameters['authorization'] = String(requestParameters['authorization']);
127
+ }
128
+ const response = yield this.request({
129
+ path: `/participants/{id}/references`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
130
+ method: 'POST',
131
+ headers: headerParameters,
132
+ query: queryParameters,
133
+ body: (0, index_1.UpdateReferencesRequestToJSON)(requestParameters['updateReferencesRequest']),
134
+ }, initOverrides);
135
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ParticipantsResponseFromJSON)(jsonValue));
136
+ });
137
+ }
138
+ /**
139
+ * Update participant external reference
140
+ */
141
+ updateReference1(requestParameters, initOverrides) {
142
+ return __awaiter(this, void 0, void 0, function* () {
143
+ const response = yield this.updateReference1Raw(requestParameters, initOverrides);
144
+ return yield response.value();
145
+ });
146
+ }
147
+ }
148
+ exports.ParticipantsApi = ParticipantsApi;
@@ -11,6 +11,7 @@ export * from './MarketPricesApi';
11
11
  export * from './MarketTypesApi';
12
12
  export * from './MarketsApi';
13
13
  export * from './OrdersApi';
14
+ export * from './ParticipantsApi';
14
15
  export * from './SessionManagementApi';
15
16
  export * from './StatusApi';
16
17
  export * from './TradesApi';
@@ -29,6 +29,7 @@ __exportStar(require("./MarketPricesApi"), exports);
29
29
  __exportStar(require("./MarketTypesApi"), exports);
30
30
  __exportStar(require("./MarketsApi"), exports);
31
31
  __exportStar(require("./OrdersApi"), exports);
32
+ __exportStar(require("./ParticipantsApi"), exports);
32
33
  __exportStar(require("./SessionManagementApi"), exports);
33
34
  __exportStar(require("./StatusApi"), exports);
34
35
  __exportStar(require("./TradesApi"), exports);
@@ -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
@@ -20,19 +21,25 @@ export interface AddParticipantRequest {
20
21
  * @type {string}
21
22
  * @memberof AddParticipantRequest
22
23
  */
23
- code?: string;
24
+ code: string;
24
25
  /**
25
26
  *
26
27
  * @type {string}
27
28
  * @memberof AddParticipantRequest
28
29
  */
29
- name?: string;
30
+ name: string;
30
31
  /**
31
32
  *
32
33
  * @type {string}
33
34
  * @memberof AddParticipantRequest
34
35
  */
35
- type?: AddParticipantRequestTypeEnum;
36
+ type: AddParticipantRequestTypeEnum;
37
+ /**
38
+ *
39
+ * @type {Array<UpdateReferenceRequest>}
40
+ * @memberof AddParticipantRequest
41
+ */
42
+ externalReferences?: Array<UpdateReferenceRequest>;
36
43
  }
37
44
  /**
38
45
  * @export
@@ -19,6 +19,7 @@ exports.AddParticipantRequestFromJSON = AddParticipantRequestFromJSON;
19
19
  exports.AddParticipantRequestFromJSONTyped = AddParticipantRequestFromJSONTyped;
20
20
  exports.AddParticipantRequestToJSON = AddParticipantRequestToJSON;
21
21
  exports.AddParticipantRequestToJSONTyped = AddParticipantRequestToJSONTyped;
22
+ const UpdateReferenceRequest_1 = require("./UpdateReferenceRequest");
22
23
  /**
23
24
  * @export
24
25
  */
@@ -30,6 +31,12 @@ exports.AddParticipantRequestTypeEnum = {
30
31
  * Check if a given object implements the AddParticipantRequest interface.
31
32
  */
32
33
  function instanceOfAddParticipantRequest(value) {
34
+ if (!('code' in value) || value['code'] === undefined)
35
+ return false;
36
+ if (!('name' in value) || value['name'] === undefined)
37
+ return false;
38
+ if (!('type' in value) || value['type'] === undefined)
39
+ return false;
33
40
  return true;
34
41
  }
35
42
  function AddParticipantRequestFromJSON(json) {
@@ -40,9 +47,10 @@ function AddParticipantRequestFromJSONTyped(json, ignoreDiscriminator) {
40
47
  return json;
41
48
  }
42
49
  return {
43
- 'code': json['code'] == null ? undefined : json['code'],
44
- 'name': json['name'] == null ? undefined : json['name'],
45
- 'type': json['type'] == null ? undefined : json['type'],
50
+ 'code': json['code'],
51
+ 'name': json['name'],
52
+ 'type': json['type'],
53
+ 'externalReferences': json['externalReferences'] == null ? undefined : (json['externalReferences'].map(UpdateReferenceRequest_1.UpdateReferenceRequestFromJSON)),
46
54
  };
47
55
  }
48
56
  function AddParticipantRequestToJSON(json) {
@@ -56,5 +64,6 @@ function AddParticipantRequestToJSONTyped(value, ignoreDiscriminator = false) {
56
64
  'code': value['code'],
57
65
  'name': value['name'],
58
66
  'type': value['type'],
67
+ 'externalReferences': value['externalReferences'] == null ? undefined : (value['externalReferences'].map(UpdateReferenceRequest_1.UpdateReferenceRequestToJSON)),
59
68
  };
60
69
  }
@@ -21,7 +21,7 @@ export interface AddParticipantsRequest {
21
21
  * @type {Array<AddParticipantRequest>}
22
22
  * @memberof AddParticipantsRequest
23
23
  */
24
- participants?: Array<AddParticipantRequest>;
24
+ participants: Array<AddParticipantRequest>;
25
25
  }
26
26
  /**
27
27
  * Check if a given object implements the AddParticipantsRequest interface.
@@ -23,6 +23,8 @@ const AddParticipantRequest_1 = require("./AddParticipantRequest");
23
23
  * Check if a given object implements the AddParticipantsRequest interface.
24
24
  */
25
25
  function instanceOfAddParticipantsRequest(value) {
26
+ if (!('participants' in value) || value['participants'] === undefined)
27
+ return false;
26
28
  return true;
27
29
  }
28
30
  function AddParticipantsRequestFromJSON(json) {
@@ -33,7 +35,7 @@ function AddParticipantsRequestFromJSONTyped(json, ignoreDiscriminator) {
33
35
  return json;
34
36
  }
35
37
  return {
36
- 'participants': json['participants'] == null ? undefined : (json['participants'].map(AddParticipantRequest_1.AddParticipantRequestFromJSON)),
38
+ 'participants': (json['participants'].map(AddParticipantRequest_1.AddParticipantRequestFromJSON)),
37
39
  };
38
40
  }
39
41
  function AddParticipantsRequestToJSON(json) {
@@ -44,6 +46,6 @@ function AddParticipantsRequestToJSONTyped(value, ignoreDiscriminator = false) {
44
46
  return value;
45
47
  }
46
48
  return {
47
- 'participants': value['participants'] == null ? undefined : (value['participants'].map(AddParticipantRequest_1.AddParticipantRequestToJSON)),
49
+ 'participants': (value['participants'].map(AddParticipantRequest_1.AddParticipantRequestToJSON)),
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
  }
@@ -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
+ }
@@ -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 { Subcategory } from './Subcategory';
14
+ import type { CategorySummaryWithDates } from './CategorySummaryWithDates';
16
15
  import type { Event } from './Event';
17
- import type { EventGroup } from './EventGroup';
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<EventGroup>}
39
+ * @type {Array<EventGroupSummaryWithDates>}
40
40
  * @memberof EventResponse
41
41
  */
42
- eventGroups?: Array<EventGroup>;
42
+ eventGroups?: Array<EventGroupSummaryWithDates>;
43
43
  /**
44
44
  *
45
- * @type {Array<Subcategory>}
45
+ * @type {Array<SubcategorySummaryWithDates>}
46
46
  * @memberof EventResponse
47
47
  */
48
- subcategories?: Array<Subcategory>;
48
+ subcategories?: Array<SubcategorySummaryWithDates>;
49
49
  /**
50
50
  *
51
- * @type {Array<Category>}
51
+ * @type {Array<CategorySummaryWithDates>}
52
52
  * @memberof EventResponse
53
53
  */
54
- categories?: Array<Category>;
54
+ categories?: Array<CategorySummaryWithDates>;
55
55
  /**
56
56
  *
57
57
  * @type {Array<EventParticipant>}