@monaco-protocol/client-v2 0.0.84-dev.0 → 0.0.89-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 (42) hide show
  1. package/dist/apis/AppManagementApi.d.ts +39 -1
  2. package/dist/apis/AppManagementApi.js +110 -0
  3. package/dist/apis/ExternalReferenceSourcesControllerApi.d.ts +2 -0
  4. package/dist/apis/ExternalReferenceSourcesControllerApi.js +2 -0
  5. package/dist/apis/MarketsApi.d.ts +1 -0
  6. package/dist/apis/MarketsApi.js +1 -0
  7. package/dist/apis/WalletsApi.d.ts +16 -1
  8. package/dist/apis/WalletsApi.js +41 -0
  9. package/dist/models/AppPermission.d.ts +50 -0
  10. package/dist/models/AppPermission.js +54 -0
  11. package/dist/models/AppPermissionRequest.d.ts +50 -0
  12. package/dist/models/AppPermissionRequest.js +66 -0
  13. package/dist/models/AppPermissionResponse.d.ts +40 -0
  14. package/dist/models/AppPermissionResponse.js +52 -0
  15. package/dist/models/BatchCreateOrderRequest.d.ts +1 -1
  16. package/dist/models/BatchCreateOrderRequest.js +4 -2
  17. package/dist/models/CreateMarketRequest.d.ts +2 -2
  18. package/dist/models/CreateOrderRequest.d.ts +1 -1
  19. package/dist/models/CreateSubcategoryRequest.d.ts +3 -3
  20. package/dist/models/CreateSubcategoryRequest.js +9 -3
  21. package/dist/models/Market.d.ts +3 -2
  22. package/dist/models/Market.js +1 -0
  23. package/dist/models/MarketResponse.d.ts +3 -3
  24. package/dist/models/MarketResponse.js +3 -3
  25. package/dist/models/MarketSummary.d.ts +1 -0
  26. package/dist/models/MarketSummary.js +1 -0
  27. package/dist/models/ModifyParticipantsRequest.d.ts +1 -1
  28. package/dist/models/ModifyParticipantsRequest.js +3 -1
  29. package/dist/models/Order.d.ts +1 -1
  30. package/dist/models/PagedMarketResponse.d.ts +3 -3
  31. package/dist/models/PagedMarketResponse.js +3 -3
  32. package/dist/models/ParticipantSummary.d.ts +64 -0
  33. package/dist/models/ParticipantSummary.js +64 -0
  34. package/dist/models/UpdateWalletOverdraftRequest.d.ts +38 -0
  35. package/dist/models/UpdateWalletOverdraftRequest.js +54 -0
  36. package/dist/models/index.d.ts +5 -0
  37. package/dist/models/index.js +5 -0
  38. package/package.json +1 -1
  39. package/dist/apis/PricesApi.d.ts +0 -61
  40. package/dist/apis/PricesApi.js +0 -110
  41. package/dist/models/PagedMarketWithPricesResponse.d.ts +0 -96
  42. package/dist/models/PagedMarketWithPricesResponse.js +0 -76
@@ -10,7 +10,12 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AppResponse, CommissionRateResponse, CreateAppRequest, UpdateAppCommissionRateRequest } from '../models/index';
13
+ import type { AppPermissionRequest, AppPermissionResponse, AppResponse, CommissionRateResponse, CreateAppRequest, UpdateAppCommissionRateRequest } from '../models/index';
14
+ export interface AppManagementApiAddPermissionRequest {
15
+ authorization: string;
16
+ id: string;
17
+ appPermissionRequest: AppPermissionRequest;
18
+ }
14
19
  export interface AppManagementApiCreateAppOperationRequest {
15
20
  authorization: string;
16
21
  createAppRequest: CreateAppRequest;
@@ -23,6 +28,15 @@ export interface AppManagementApiGetCommissionRatesRequest {
23
28
  authorization: string;
24
29
  id: string;
25
30
  }
31
+ export interface AppManagementApiGetPermissionsRequest {
32
+ authorization: string;
33
+ id: string;
34
+ }
35
+ export interface AppManagementApiRemovePermissionRequest {
36
+ authorization: string;
37
+ id: string;
38
+ appPermissionRequest: AppPermissionRequest;
39
+ }
26
40
  export interface AppManagementApiUpdateCommissionRateRequest {
27
41
  authorization: string;
28
42
  id: string;
@@ -32,6 +46,14 @@ export interface AppManagementApiUpdateCommissionRateRequest {
32
46
  *
33
47
  */
34
48
  export declare class AppManagementApi extends runtime.BaseAPI {
49
+ /**
50
+ * Add permission to app
51
+ */
52
+ addPermissionRaw(requestParameters: AppManagementApiAddPermissionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
53
+ /**
54
+ * Add permission to app
55
+ */
56
+ addPermission(requestParameters: AppManagementApiAddPermissionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
35
57
  /**
36
58
  * Create app
37
59
  */
@@ -56,6 +78,22 @@ export declare class AppManagementApi extends runtime.BaseAPI {
56
78
  * Fetch commission rates
57
79
  */
58
80
  getCommissionRates(requestParameters: AppManagementApiGetCommissionRatesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CommissionRateResponse>;
81
+ /**
82
+ * Fetch app permissions
83
+ */
84
+ getPermissionsRaw(requestParameters: AppManagementApiGetPermissionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AppPermissionResponse>>;
85
+ /**
86
+ * Fetch app permissions
87
+ */
88
+ getPermissions(requestParameters: AppManagementApiGetPermissionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AppPermissionResponse>;
89
+ /**
90
+ * Remove permission from app
91
+ */
92
+ removePermissionRaw(requestParameters: AppManagementApiRemovePermissionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
93
+ /**
94
+ * Remove permission from app
95
+ */
96
+ removePermission(requestParameters: AppManagementApiRemovePermissionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
59
97
  /**
60
98
  * Create a new commission rate to be applied to profit on risk created via the given app. Commission rates can have a value between 0.0 and 1.0, where e.g., 0.01 would be 1% of the profit.<br /><br />The most recently created rate will be used as the default rate. The default rate is used when no commission rate ID is passed during order creation.<br /><br />NOTE maximum effective commission rate for an app will be <br /><code>1.0 - protocol commission(fee) rate</code>
61
99
  * Create a new app commission rate
@@ -29,6 +29,44 @@ const index_1 = require("../models/index");
29
29
  *
30
30
  */
31
31
  class AppManagementApi extends runtime.BaseAPI {
32
+ /**
33
+ * Add permission to app
34
+ */
35
+ addPermissionRaw(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 addPermission().');
39
+ }
40
+ if (requestParameters['id'] == null) {
41
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling addPermission().');
42
+ }
43
+ if (requestParameters['appPermissionRequest'] == null) {
44
+ throw new runtime.RequiredError('appPermissionRequest', 'Required parameter "appPermissionRequest" was null or undefined when calling addPermission().');
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: `/apps/{id}/permissions/add`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
54
+ method: 'POST',
55
+ headers: headerParameters,
56
+ query: queryParameters,
57
+ body: (0, index_1.AppPermissionRequestToJSON)(requestParameters['appPermissionRequest']),
58
+ }, initOverrides);
59
+ return new runtime.VoidApiResponse(response);
60
+ });
61
+ }
62
+ /**
63
+ * Add permission to app
64
+ */
65
+ addPermission(requestParameters, initOverrides) {
66
+ return __awaiter(this, void 0, void 0, function* () {
67
+ yield this.addPermissionRaw(requestParameters, initOverrides);
68
+ });
69
+ }
32
70
  /**
33
71
  * Create app
34
72
  */
@@ -133,6 +171,78 @@ class AppManagementApi extends runtime.BaseAPI {
133
171
  return yield response.value();
134
172
  });
135
173
  }
174
+ /**
175
+ * Fetch app permissions
176
+ */
177
+ getPermissionsRaw(requestParameters, initOverrides) {
178
+ return __awaiter(this, void 0, void 0, function* () {
179
+ if (requestParameters['authorization'] == null) {
180
+ throw new runtime.RequiredError('authorization', 'Required parameter "authorization" was null or undefined when calling getPermissions().');
181
+ }
182
+ if (requestParameters['id'] == null) {
183
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getPermissions().');
184
+ }
185
+ const queryParameters = {};
186
+ const headerParameters = {};
187
+ if (requestParameters['authorization'] != null) {
188
+ headerParameters['authorization'] = String(requestParameters['authorization']);
189
+ }
190
+ const response = yield this.request({
191
+ path: `/apps/{id}/permissions`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
192
+ method: 'GET',
193
+ headers: headerParameters,
194
+ query: queryParameters,
195
+ }, initOverrides);
196
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AppPermissionResponseFromJSON)(jsonValue));
197
+ });
198
+ }
199
+ /**
200
+ * Fetch app permissions
201
+ */
202
+ getPermissions(requestParameters, initOverrides) {
203
+ return __awaiter(this, void 0, void 0, function* () {
204
+ const response = yield this.getPermissionsRaw(requestParameters, initOverrides);
205
+ return yield response.value();
206
+ });
207
+ }
208
+ /**
209
+ * Remove permission from app
210
+ */
211
+ removePermissionRaw(requestParameters, initOverrides) {
212
+ return __awaiter(this, void 0, void 0, function* () {
213
+ if (requestParameters['authorization'] == null) {
214
+ throw new runtime.RequiredError('authorization', 'Required parameter "authorization" was null or undefined when calling removePermission().');
215
+ }
216
+ if (requestParameters['id'] == null) {
217
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling removePermission().');
218
+ }
219
+ if (requestParameters['appPermissionRequest'] == null) {
220
+ throw new runtime.RequiredError('appPermissionRequest', 'Required parameter "appPermissionRequest" was null or undefined when calling removePermission().');
221
+ }
222
+ const queryParameters = {};
223
+ const headerParameters = {};
224
+ headerParameters['Content-Type'] = 'application/json';
225
+ if (requestParameters['authorization'] != null) {
226
+ headerParameters['authorization'] = String(requestParameters['authorization']);
227
+ }
228
+ const response = yield this.request({
229
+ path: `/apps/{id}/permissions/remove`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
230
+ method: 'POST',
231
+ headers: headerParameters,
232
+ query: queryParameters,
233
+ body: (0, index_1.AppPermissionRequestToJSON)(requestParameters['appPermissionRequest']),
234
+ }, initOverrides);
235
+ return new runtime.VoidApiResponse(response);
236
+ });
237
+ }
238
+ /**
239
+ * Remove permission from app
240
+ */
241
+ removePermission(requestParameters, initOverrides) {
242
+ return __awaiter(this, void 0, void 0, function* () {
243
+ yield this.removePermissionRaw(requestParameters, initOverrides);
244
+ });
245
+ }
136
246
  /**
137
247
  * Create a new commission rate to be applied to profit on risk created via the given app. Commission rates can have a value between 0.0 and 1.0, where e.g., 0.01 would be 1% of the profit.<br /><br />The most recently created rate will be used as the default rate. The default rate is used when no commission rate ID is passed during order creation.<br /><br />NOTE maximum effective commission rate for an app will be <br /><code>1.0 - protocol commission(fee) rate</code>
138
248
  * Create a new app commission rate
@@ -19,9 +19,11 @@ export interface ExternalReferenceSourcesControllerApiGetExternalSourcesRequest
19
19
  */
20
20
  export declare class ExternalReferenceSourcesControllerApi extends runtime.BaseAPI {
21
21
  /**
22
+ * Fetch external reference sources
22
23
  */
23
24
  getExternalSourcesRaw(requestParameters: ExternalReferenceSourcesControllerApiGetExternalSourcesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ExternalReferenceSourcesResponse>>;
24
25
  /**
26
+ * Fetch external reference sources
25
27
  */
26
28
  getExternalSources(requestParameters: ExternalReferenceSourcesControllerApiGetExternalSourcesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ExternalReferenceSourcesResponse>;
27
29
  }
@@ -30,6 +30,7 @@ const index_1 = require("../models/index");
30
30
  */
31
31
  class ExternalReferenceSourcesControllerApi extends runtime.BaseAPI {
32
32
  /**
33
+ * Fetch external reference sources
33
34
  */
34
35
  getExternalSourcesRaw(requestParameters, initOverrides) {
35
36
  return __awaiter(this, void 0, void 0, function* () {
@@ -51,6 +52,7 @@ class ExternalReferenceSourcesControllerApi extends runtime.BaseAPI {
51
52
  });
52
53
  }
53
54
  /**
55
+ * Fetch external reference sources
54
56
  */
55
57
  getExternalSources(requestParameters, initOverrides) {
56
58
  return __awaiter(this, void 0, void 0, function* () {
@@ -322,6 +322,7 @@ export declare class MarketsApi extends runtime.BaseAPI {
322
322
  export declare const GetMarketsStatusesEnum: {
323
323
  readonly Initializing: "Initializing";
324
324
  readonly Open: "Open";
325
+ readonly Locking: "Locking";
325
326
  readonly Locked: "Locked";
326
327
  readonly Settling: "Settling";
327
328
  readonly Settled: "Settled";
@@ -905,6 +905,7 @@ exports.MarketsApi = MarketsApi;
905
905
  exports.GetMarketsStatusesEnum = {
906
906
  Initializing: 'Initializing',
907
907
  Open: 'Open',
908
+ Locking: 'Locking',
908
909
  Locked: 'Locked',
909
910
  Settling: 'Settling',
910
911
  Settled: 'Settled',
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { CreateWalletRequest, DepositAddressResponse, DepositRequestResponse, PagedMarketPositionResponse, PagedTransactionResponse, PagedWalletResponse, TransferResponse, WalletMetricsResponse, WalletResponse, WithdrawalRequestRequest, WithdrawalRequestResponse } from '../models/index';
13
+ import type { CreateWalletRequest, DepositAddressResponse, DepositRequestResponse, PagedMarketPositionResponse, PagedTransactionResponse, PagedWalletResponse, TransferResponse, UpdateWalletOverdraftRequest, WalletMetricsResponse, WalletResponse, WithdrawalRequestRequest, WithdrawalRequestResponse } from '../models/index';
14
14
  export interface WalletsApiCreateWalletOperationRequest {
15
15
  authorization: string;
16
16
  createWalletRequest: CreateWalletRequest;
@@ -68,6 +68,11 @@ export interface WalletsApiRequestWithdrawalRequest {
68
68
  id: string;
69
69
  withdrawalRequestRequest: WithdrawalRequestRequest;
70
70
  }
71
+ export interface WalletsApiUpdateWalletOverdraftOperationRequest {
72
+ authorization: string;
73
+ id: string;
74
+ updateWalletOverdraftRequest: UpdateWalletOverdraftRequest;
75
+ }
71
76
  /**
72
77
  *
73
78
  */
@@ -170,6 +175,16 @@ export declare class WalletsApi extends runtime.BaseAPI {
170
175
  * Request to withdraw Funds
171
176
  */
172
177
  requestWithdrawal(requestParameters: WalletsApiRequestWithdrawalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WithdrawalRequestResponse>;
178
+ /**
179
+ * Update the overdraft limit for a given wallet and currency
180
+ * Update wallet overdraft limit
181
+ */
182
+ updateWalletOverdraftRaw(requestParameters: WalletsApiUpdateWalletOverdraftOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WalletResponse>>;
183
+ /**
184
+ * Update the overdraft limit for a given wallet and currency
185
+ * Update wallet overdraft limit
186
+ */
187
+ updateWalletOverdraft(requestParameters: WalletsApiUpdateWalletOverdraftOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WalletResponse>;
173
188
  }
174
189
  /**
175
190
  * @export
@@ -463,6 +463,47 @@ class WalletsApi extends runtime.BaseAPI {
463
463
  return yield response.value();
464
464
  });
465
465
  }
466
+ /**
467
+ * Update the overdraft limit for a given wallet and currency
468
+ * Update wallet overdraft limit
469
+ */
470
+ updateWalletOverdraftRaw(requestParameters, initOverrides) {
471
+ return __awaiter(this, void 0, void 0, function* () {
472
+ if (requestParameters['authorization'] == null) {
473
+ throw new runtime.RequiredError('authorization', 'Required parameter "authorization" was null or undefined when calling updateWalletOverdraft().');
474
+ }
475
+ if (requestParameters['id'] == null) {
476
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateWalletOverdraft().');
477
+ }
478
+ if (requestParameters['updateWalletOverdraftRequest'] == null) {
479
+ throw new runtime.RequiredError('updateWalletOverdraftRequest', 'Required parameter "updateWalletOverdraftRequest" was null or undefined when calling updateWalletOverdraft().');
480
+ }
481
+ const queryParameters = {};
482
+ const headerParameters = {};
483
+ headerParameters['Content-Type'] = 'application/json';
484
+ if (requestParameters['authorization'] != null) {
485
+ headerParameters['authorization'] = String(requestParameters['authorization']);
486
+ }
487
+ const response = yield this.request({
488
+ path: `/wallets/{id}/overdraft`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
489
+ method: 'POST',
490
+ headers: headerParameters,
491
+ query: queryParameters,
492
+ body: (0, index_1.UpdateWalletOverdraftRequestToJSON)(requestParameters['updateWalletOverdraftRequest']),
493
+ }, initOverrides);
494
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.WalletResponseFromJSON)(jsonValue));
495
+ });
496
+ }
497
+ /**
498
+ * Update the overdraft limit for a given wallet and currency
499
+ * Update wallet overdraft limit
500
+ */
501
+ updateWalletOverdraft(requestParameters, initOverrides) {
502
+ return __awaiter(this, void 0, void 0, function* () {
503
+ const response = yield this.updateWalletOverdraftRaw(requestParameters, initOverrides);
504
+ return yield response.value();
505
+ });
506
+ }
466
507
  }
467
508
  exports.WalletsApi = WalletsApi;
468
509
  /**
@@ -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?: Array<CreateOrderRequest>;
24
+ requests: Array<CreateOrderRequest>;
25
25
  }
26
26
  /**
27
27
  * Check if a given object implements the BatchCreateOrderRequest interface.