@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
@@ -23,6 +23,8 @@ const CreateOrderRequest_1 = require("./CreateOrderRequest");
23
23
  * Check if a given object implements the BatchCreateOrderRequest interface.
24
24
  */
25
25
  function instanceOfBatchCreateOrderRequest(value) {
26
+ if (!('requests' in value) || value['requests'] === undefined)
27
+ return false;
26
28
  return true;
27
29
  }
28
30
  function BatchCreateOrderRequestFromJSON(json) {
@@ -33,7 +35,7 @@ function BatchCreateOrderRequestFromJSONTyped(json, ignoreDiscriminator) {
33
35
  return json;
34
36
  }
35
37
  return {
36
- 'requests': json['requests'] == null ? undefined : (json['requests'].map(CreateOrderRequest_1.CreateOrderRequestFromJSON)),
38
+ 'requests': (json['requests'].map(CreateOrderRequest_1.CreateOrderRequestFromJSON)),
37
39
  };
38
40
  }
39
41
  function BatchCreateOrderRequestToJSON(json) {
@@ -44,6 +46,6 @@ function BatchCreateOrderRequestToJSONTyped(value, ignoreDiscriminator = false)
44
46
  return value;
45
47
  }
46
48
  return {
47
- 'requests': value['requests'] == null ? undefined : (value['requests'].map(CreateOrderRequest_1.CreateOrderRequestToJSON)),
49
+ 'requests': (value['requests'].map(CreateOrderRequest_1.CreateOrderRequestToJSON)),
48
50
  };
49
51
  }
@@ -77,13 +77,13 @@ export interface CreateMarketRequest {
77
77
  */
78
78
  lockAt?: Date;
79
79
  /**
80
- *
80
+ * Action to take when market is locked - default is to cancel unmatched liquidity
81
81
  * @type {string}
82
82
  * @memberof CreateMarketRequest
83
83
  */
84
84
  marketLockAction?: CreateMarketRequestMarketLockActionEnum;
85
85
  /**
86
- *
86
+ * Action to take when market's event start time passes, i.e., transitioning a market from PrePlay to InPlay - default is to cancel unmatched liquidity (can be managed per order)
87
87
  * @type {string}
88
88
  * @memberof CreateMarketRequest
89
89
  */
@@ -52,7 +52,7 @@ export interface CreateOrderRequest {
52
52
  */
53
53
  stake: number;
54
54
  /**
55
- *
55
+ * Optional - whether to keep unmatched portion of the order when its market enters InPlay (only relevant if the market has eventStartAction: CancelUnmatchedLiquidity) - default is false
56
56
  * @type {boolean}
57
57
  * @memberof CreateOrderRequest
58
58
  */
@@ -20,19 +20,19 @@ export interface CreateSubcategoryRequest {
20
20
  * @type {string}
21
21
  * @memberof CreateSubcategoryRequest
22
22
  */
23
- id?: string;
23
+ id: string;
24
24
  /**
25
25
  *
26
26
  * @type {string}
27
27
  * @memberof CreateSubcategoryRequest
28
28
  */
29
- name?: string;
29
+ name: string;
30
30
  /**
31
31
  *
32
32
  * @type {string}
33
33
  * @memberof CreateSubcategoryRequest
34
34
  */
35
- categoryId?: string;
35
+ categoryId: string;
36
36
  }
37
37
  /**
38
38
  * Check if a given object implements the CreateSubcategoryRequest interface.
@@ -22,6 +22,12 @@ exports.CreateSubcategoryRequestToJSONTyped = CreateSubcategoryRequestToJSONType
22
22
  * Check if a given object implements the CreateSubcategoryRequest interface.
23
23
  */
24
24
  function instanceOfCreateSubcategoryRequest(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('name' in value) || value['name'] === undefined)
28
+ return false;
29
+ if (!('categoryId' in value) || value['categoryId'] === undefined)
30
+ return false;
25
31
  return true;
26
32
  }
27
33
  function CreateSubcategoryRequestFromJSON(json) {
@@ -32,9 +38,9 @@ function CreateSubcategoryRequestFromJSONTyped(json, ignoreDiscriminator) {
32
38
  return json;
33
39
  }
34
40
  return {
35
- 'id': json['id'] == null ? undefined : json['id'],
36
- 'name': json['name'] == null ? undefined : json['name'],
37
- 'categoryId': json['categoryId'] == null ? undefined : json['categoryId'],
41
+ 'id': json['id'],
42
+ 'name': json['name'],
43
+ 'categoryId': json['categoryId'],
38
44
  };
39
45
  }
40
46
  function CreateSubcategoryRequestToJSON(json) {
@@ -107,13 +107,13 @@ export interface Market {
107
107
  */
108
108
  settledAt?: Date;
109
109
  /**
110
- *
110
+ * Action to take when market locks - default is to cancel unmatched liquidity
111
111
  * @type {string}
112
112
  * @memberof Market
113
113
  */
114
114
  marketLockAction?: MarketMarketLockActionEnum;
115
115
  /**
116
- *
116
+ * Action to take when market's event start time passes, i.e., transitioning a market from PrePlay to InPlay - default is to cancel unmatched liquidity (can be managed per order)
117
117
  * @type {string}
118
118
  * @memberof Market
119
119
  */
@@ -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";
@@ -48,6 +48,7 @@ exports.MarketEventStartActionEnum = {
48
48
  exports.MarketStatusEnum = {
49
49
  Initializing: 'Initializing',
50
50
  Open: 'Open',
51
+ Locking: 'Locking',
51
52
  Locked: 'Locked',
52
53
  Settling: 'Settling',
53
54
  Settled: 'Settled',
@@ -12,7 +12,7 @@
12
12
  import type { MarketOutcomeSummary } from './MarketOutcomeSummary';
13
13
  import type { Meta } from './Meta';
14
14
  import type { ExternalReference } from './ExternalReference';
15
- import type { Participant } from './Participant';
15
+ import type { ParticipantSummary } from './ParticipantSummary';
16
16
  import type { CategorySummary } from './CategorySummary';
17
17
  import type { EventSummary } from './EventSummary';
18
18
  import type { SubcategorySummary } from './SubcategorySummary';
@@ -81,10 +81,10 @@ export interface MarketResponse {
81
81
  externalReferences?: Array<ExternalReference>;
82
82
  /**
83
83
  *
84
- * @type {Array<Participant>}
84
+ * @type {Array<ParticipantSummary>}
85
85
  * @memberof MarketResponse
86
86
  */
87
- participants?: Array<Participant>;
87
+ participants?: Array<ParticipantSummary>;
88
88
  }
89
89
  /**
90
90
  * Check if a given object implements the MarketResponse interface.
@@ -21,7 +21,7 @@ exports.MarketResponseToJSONTyped = MarketResponseToJSONTyped;
21
21
  const MarketOutcomeSummary_1 = require("./MarketOutcomeSummary");
22
22
  const Meta_1 = require("./Meta");
23
23
  const ExternalReference_1 = require("./ExternalReference");
24
- const Participant_1 = require("./Participant");
24
+ const ParticipantSummary_1 = require("./ParticipantSummary");
25
25
  const CategorySummary_1 = require("./CategorySummary");
26
26
  const EventSummary_1 = require("./EventSummary");
27
27
  const SubcategorySummary_1 = require("./SubcategorySummary");
@@ -51,7 +51,7 @@ function MarketResponseFromJSONTyped(json, ignoreDiscriminator) {
51
51
  'subcategories': json['subcategories'] == null ? undefined : (json['subcategories'].map(SubcategorySummary_1.SubcategorySummaryFromJSON)),
52
52
  'categories': json['categories'] == null ? undefined : (json['categories'].map(CategorySummary_1.CategorySummaryFromJSON)),
53
53
  'externalReferences': json['externalReferences'] == null ? undefined : (json['externalReferences'].map(ExternalReference_1.ExternalReferenceFromJSON)),
54
- 'participants': json['participants'] == null ? undefined : (json['participants'].map(Participant_1.ParticipantFromJSON)),
54
+ 'participants': json['participants'] == null ? undefined : (json['participants'].map(ParticipantSummary_1.ParticipantSummaryFromJSON)),
55
55
  };
56
56
  }
57
57
  function MarketResponseToJSON(json) {
@@ -71,6 +71,6 @@ function MarketResponseToJSONTyped(value, ignoreDiscriminator = false) {
71
71
  'subcategories': value['subcategories'] == null ? undefined : (value['subcategories'].map(SubcategorySummary_1.SubcategorySummaryToJSON)),
72
72
  'categories': value['categories'] == null ? undefined : (value['categories'].map(CategorySummary_1.CategorySummaryToJSON)),
73
73
  'externalReferences': value['externalReferences'] == null ? undefined : (value['externalReferences'].map(ExternalReference_1.ExternalReferenceToJSON)),
74
- 'participants': value['participants'] == null ? undefined : (value['participants'].map(Participant_1.ParticipantToJSON)),
74
+ 'participants': value['participants'] == null ? undefined : (value['participants'].map(ParticipantSummary_1.ParticipantSummaryToJSON)),
75
75
  };
76
76
  }
@@ -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";
@@ -34,6 +34,7 @@ exports.MarketSummaryInPlayStatusEnum = {
34
34
  exports.MarketSummaryStatusEnum = {
35
35
  Initializing: 'Initializing',
36
36
  Open: 'Open',
37
+ Locking: 'Locking',
37
38
  Locked: 'Locked',
38
39
  Settling: 'Settling',
39
40
  Settled: 'Settled',
@@ -20,7 +20,7 @@ export interface ModifyParticipantsRequest {
20
20
  * @type {Array<string>}
21
21
  * @memberof ModifyParticipantsRequest
22
22
  */
23
- participantCodes?: Array<string>;
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'] == null ? undefined : json['participantCodes'],
37
+ 'participantCodes': json['participantCodes'],
36
38
  };
37
39
  }
38
40
  function ModifyParticipantsRequestToJSON(json) {
@@ -83,7 +83,7 @@ export interface Order {
83
83
  */
84
84
  stakeVoided?: number;
85
85
  /**
86
- *
86
+ * Whether to keep unmatched portion of the order when its market enters InPlay (only relevant if the market has eventStartAction: CancelUnmatchedLiquidity)
87
87
  * @type {boolean}
88
88
  * @memberof Order
89
89
  */
@@ -12,7 +12,7 @@
12
12
  import type { MarketOutcomeSummary } from './MarketOutcomeSummary';
13
13
  import type { Meta } from './Meta';
14
14
  import type { ExternalReference } from './ExternalReference';
15
- import type { Participant } from './Participant';
15
+ import type { ParticipantSummary } from './ParticipantSummary';
16
16
  import type { CategorySummary } from './CategorySummary';
17
17
  import type { EventSummary } from './EventSummary';
18
18
  import type { SubcategorySummary } from './SubcategorySummary';
@@ -81,10 +81,10 @@ export interface PagedMarketResponse {
81
81
  externalReferences?: Array<ExternalReference>;
82
82
  /**
83
83
  *
84
- * @type {Array<Participant>}
84
+ * @type {Array<ParticipantSummary>}
85
85
  * @memberof PagedMarketResponse
86
86
  */
87
- participants?: Array<Participant>;
87
+ participants?: Array<ParticipantSummary>;
88
88
  }
89
89
  /**
90
90
  * Check if a given object implements the PagedMarketResponse interface.
@@ -21,7 +21,7 @@ exports.PagedMarketResponseToJSONTyped = PagedMarketResponseToJSONTyped;
21
21
  const MarketOutcomeSummary_1 = require("./MarketOutcomeSummary");
22
22
  const Meta_1 = require("./Meta");
23
23
  const ExternalReference_1 = require("./ExternalReference");
24
- const Participant_1 = require("./Participant");
24
+ const ParticipantSummary_1 = require("./ParticipantSummary");
25
25
  const CategorySummary_1 = require("./CategorySummary");
26
26
  const EventSummary_1 = require("./EventSummary");
27
27
  const SubcategorySummary_1 = require("./SubcategorySummary");
@@ -51,7 +51,7 @@ function PagedMarketResponseFromJSONTyped(json, ignoreDiscriminator) {
51
51
  'subcategories': json['subcategories'] == null ? undefined : (json['subcategories'].map(SubcategorySummary_1.SubcategorySummaryFromJSON)),
52
52
  'categories': json['categories'] == null ? undefined : (json['categories'].map(CategorySummary_1.CategorySummaryFromJSON)),
53
53
  'externalReferences': json['externalReferences'] == null ? undefined : (json['externalReferences'].map(ExternalReference_1.ExternalReferenceFromJSON)),
54
- 'participants': json['participants'] == null ? undefined : (json['participants'].map(Participant_1.ParticipantFromJSON)),
54
+ 'participants': json['participants'] == null ? undefined : (json['participants'].map(ParticipantSummary_1.ParticipantSummaryFromJSON)),
55
55
  };
56
56
  }
57
57
  function PagedMarketResponseToJSON(json) {
@@ -71,6 +71,6 @@ function PagedMarketResponseToJSONTyped(value, ignoreDiscriminator = false) {
71
71
  'subcategories': value['subcategories'] == null ? undefined : (value['subcategories'].map(SubcategorySummary_1.SubcategorySummaryToJSON)),
72
72
  'categories': value['categories'] == null ? undefined : (value['categories'].map(CategorySummary_1.CategorySummaryToJSON)),
73
73
  'externalReferences': value['externalReferences'] == null ? undefined : (value['externalReferences'].map(ExternalReference_1.ExternalReferenceToJSON)),
74
- 'participants': value['participants'] == null ? undefined : (value['participants'].map(Participant_1.ParticipantToJSON)),
74
+ 'participants': value['participants'] == null ? undefined : (value['participants'].map(ParticipantSummary_1.ParticipantSummaryToJSON)),
75
75
  };
76
76
  }
@@ -0,0 +1,64 @@
1
+ /**
2
+ * Monaco API
3
+ * A RESTful API that allows you to interact with the Monaco Exchange. Provides endpoints for managing Events, Markets, Sessions, Wallets and Orders. To interact with the API, a client must have an App Id and an API Key to authenticate and create a session.
4
+ *
5
+ * The version of the OpenAPI document: 0.1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ParticipantSummary
16
+ */
17
+ export interface ParticipantSummary {
18
+ /**
19
+ * Globally unique ID for this participant across all subcategories
20
+ * @type {string}
21
+ * @memberof ParticipantSummary
22
+ */
23
+ id?: string;
24
+ /**
25
+ * Unique code for this participant across all events in a given subcategory
26
+ * @type {string}
27
+ * @memberof ParticipantSummary
28
+ */
29
+ code?: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof ParticipantSummary
34
+ */
35
+ name?: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ParticipantSummary
40
+ */
41
+ type?: ParticipantSummaryTypeEnum;
42
+ /**
43
+ *
44
+ * @type {boolean}
45
+ * @memberof ParticipantSummary
46
+ */
47
+ active?: boolean;
48
+ }
49
+ /**
50
+ * @export
51
+ */
52
+ export declare const ParticipantSummaryTypeEnum: {
53
+ readonly Individual: "Individual";
54
+ readonly Team: "Team";
55
+ };
56
+ export type ParticipantSummaryTypeEnum = typeof ParticipantSummaryTypeEnum[keyof typeof ParticipantSummaryTypeEnum];
57
+ /**
58
+ * Check if a given object implements the ParticipantSummary interface.
59
+ */
60
+ export declare function instanceOfParticipantSummary(value: object): value is ParticipantSummary;
61
+ export declare function ParticipantSummaryFromJSON(json: any): ParticipantSummary;
62
+ export declare function ParticipantSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ParticipantSummary;
63
+ export declare function ParticipantSummaryToJSON(json: any): ParticipantSummary;
64
+ export declare function ParticipantSummaryToJSONTyped(value?: ParticipantSummary | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,64 @@
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.ParticipantSummaryTypeEnum = void 0;
17
+ exports.instanceOfParticipantSummary = instanceOfParticipantSummary;
18
+ exports.ParticipantSummaryFromJSON = ParticipantSummaryFromJSON;
19
+ exports.ParticipantSummaryFromJSONTyped = ParticipantSummaryFromJSONTyped;
20
+ exports.ParticipantSummaryToJSON = ParticipantSummaryToJSON;
21
+ exports.ParticipantSummaryToJSONTyped = ParticipantSummaryToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.ParticipantSummaryTypeEnum = {
26
+ Individual: 'Individual',
27
+ Team: 'Team'
28
+ };
29
+ /**
30
+ * Check if a given object implements the ParticipantSummary interface.
31
+ */
32
+ function instanceOfParticipantSummary(value) {
33
+ return true;
34
+ }
35
+ function ParticipantSummaryFromJSON(json) {
36
+ return ParticipantSummaryFromJSONTyped(json, false);
37
+ }
38
+ function ParticipantSummaryFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'id': json['id'] == null ? undefined : json['id'],
44
+ 'code': json['code'] == null ? undefined : json['code'],
45
+ 'name': json['name'] == null ? undefined : json['name'],
46
+ 'type': json['type'] == null ? undefined : json['type'],
47
+ 'active': json['active'] == null ? undefined : json['active'],
48
+ };
49
+ }
50
+ function ParticipantSummaryToJSON(json) {
51
+ return ParticipantSummaryToJSONTyped(json, false);
52
+ }
53
+ function ParticipantSummaryToJSONTyped(value, ignoreDiscriminator = false) {
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'id': value['id'],
59
+ 'code': value['code'],
60
+ 'name': value['name'],
61
+ 'type': value['type'],
62
+ 'active': value['active'],
63
+ };
64
+ }
@@ -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;
@@ -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.instanceOfUpdateWalletOverdraftRequest = instanceOfUpdateWalletOverdraftRequest;
17
+ exports.UpdateWalletOverdraftRequestFromJSON = UpdateWalletOverdraftRequestFromJSON;
18
+ exports.UpdateWalletOverdraftRequestFromJSONTyped = UpdateWalletOverdraftRequestFromJSONTyped;
19
+ exports.UpdateWalletOverdraftRequestToJSON = UpdateWalletOverdraftRequestToJSON;
20
+ exports.UpdateWalletOverdraftRequestToJSONTyped = UpdateWalletOverdraftRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the UpdateWalletOverdraftRequest interface.
23
+ */
24
+ function instanceOfUpdateWalletOverdraftRequest(value) {
25
+ if (!('currencyId' in value) || value['currencyId'] === undefined)
26
+ return false;
27
+ if (!('newOverdraftLimit' in value) || value['newOverdraftLimit'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function UpdateWalletOverdraftRequestFromJSON(json) {
32
+ return UpdateWalletOverdraftRequestFromJSONTyped(json, false);
33
+ }
34
+ function UpdateWalletOverdraftRequestFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'currencyId': json['currencyId'],
40
+ 'newOverdraftLimit': json['newOverdraftLimit'],
41
+ };
42
+ }
43
+ function UpdateWalletOverdraftRequestToJSON(json) {
44
+ return UpdateWalletOverdraftRequestToJSONTyped(json, false);
45
+ }
46
+ function UpdateWalletOverdraftRequestToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'currencyId': value['currencyId'],
52
+ 'newOverdraftLimit': value['newOverdraftLimit'],
53
+ };
54
+ }
@@ -4,6 +4,9 @@ export * from './AddMarketOutcomeRequest';
4
4
  export * from './AddParticipantRequest';
5
5
  export * from './AddParticipantsRequest';
6
6
  export * from './App';
7
+ export * from './AppPermission';
8
+ export * from './AppPermissionRequest';
9
+ export * from './AppPermissionResponse';
7
10
  export * from './AppResponse';
8
11
  export * from './AppStatus';
9
12
  export * from './AppStatusResponse';
@@ -85,6 +88,7 @@ export * from './PagedTradeResponse';
85
88
  export * from './PagedTransactionResponse';
86
89
  export * from './PagedWalletResponse';
87
90
  export * from './Participant';
91
+ export * from './ParticipantSummary';
88
92
  export * from './ParticipantsResponse';
89
93
  export * from './Range';
90
94
  export * from './RefreshSessionRequest';
@@ -108,6 +112,7 @@ export * from './UpdateMarketOutcomeRequest';
108
112
  export * from './UpdateNameRequest';
109
113
  export * from './UpdateReferenceRequest';
110
114
  export * from './UpdateReferencesRequest';
115
+ export * from './UpdateWalletOverdraftRequest';
111
116
  export * from './Wallet';
112
117
  export * from './WalletBalance';
113
118
  export * from './WalletMetric';
@@ -22,6 +22,9 @@ __exportStar(require("./AddMarketOutcomeRequest"), exports);
22
22
  __exportStar(require("./AddParticipantRequest"), exports);
23
23
  __exportStar(require("./AddParticipantsRequest"), exports);
24
24
  __exportStar(require("./App"), exports);
25
+ __exportStar(require("./AppPermission"), exports);
26
+ __exportStar(require("./AppPermissionRequest"), exports);
27
+ __exportStar(require("./AppPermissionResponse"), exports);
25
28
  __exportStar(require("./AppResponse"), exports);
26
29
  __exportStar(require("./AppStatus"), exports);
27
30
  __exportStar(require("./AppStatusResponse"), exports);
@@ -103,6 +106,7 @@ __exportStar(require("./PagedTradeResponse"), exports);
103
106
  __exportStar(require("./PagedTransactionResponse"), exports);
104
107
  __exportStar(require("./PagedWalletResponse"), exports);
105
108
  __exportStar(require("./Participant"), exports);
109
+ __exportStar(require("./ParticipantSummary"), exports);
106
110
  __exportStar(require("./ParticipantsResponse"), exports);
107
111
  __exportStar(require("./Range"), exports);
108
112
  __exportStar(require("./RefreshSessionRequest"), exports);
@@ -126,6 +130,7 @@ __exportStar(require("./UpdateMarketOutcomeRequest"), exports);
126
130
  __exportStar(require("./UpdateNameRequest"), exports);
127
131
  __exportStar(require("./UpdateReferenceRequest"), exports);
128
132
  __exportStar(require("./UpdateReferencesRequest"), exports);
133
+ __exportStar(require("./UpdateWalletOverdraftRequest"), exports);
129
134
  __exportStar(require("./Wallet"), exports);
130
135
  __exportStar(require("./WalletBalance"), exports);
131
136
  __exportStar(require("./WalletMetric"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monaco-protocol/client-v2",
3
- "version": "0.0.84-dev.0",
3
+ "version": "0.0.89-dev.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [
@@ -1,61 +0,0 @@
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 { PagedMarketWithPricesResponse } from '../models/index';
14
- export interface GetPricesRequest {
15
- authorization: string;
16
- eventStarting?: GetPricesEventStartingEnum;
17
- fromDateTime?: Date;
18
- toDateTime?: Date;
19
- marketStatuses?: Set<GetPricesMarketStatusesEnum>;
20
- marketIds?: Set<string>;
21
- page?: number;
22
- size?: number;
23
- sort?: Array<string>;
24
- }
25
- /**
26
- *
27
- */
28
- export declare class PricesApi extends runtime.BaseAPI {
29
- /**
30
- * Fetch market prices, filtered by either provided market ids, or event start time - with optional filtering on market status. Paginated by number of markets.
31
- */
32
- getPricesRaw(requestParameters: GetPricesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PagedMarketWithPricesResponse>>;
33
- /**
34
- * Fetch market prices, filtered by either provided market ids, or event start time - with optional filtering on market status. Paginated by number of markets.
35
- */
36
- getPrices(requestParameters: GetPricesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PagedMarketWithPricesResponse>;
37
- }
38
- /**
39
- * @export
40
- */
41
- export declare const GetPricesEventStartingEnum: {
42
- readonly Live: "Live";
43
- readonly Today: "Today";
44
- readonly Later: "Later";
45
- readonly Range: "Range";
46
- };
47
- export type GetPricesEventStartingEnum = typeof GetPricesEventStartingEnum[keyof typeof GetPricesEventStartingEnum];
48
- /**
49
- * @export
50
- */
51
- export declare const GetPricesMarketStatusesEnum: {
52
- readonly Initializing: "Initializing";
53
- readonly Open: "Open";
54
- readonly Locked: "Locked";
55
- readonly Settling: "Settling";
56
- readonly Settled: "Settled";
57
- readonly Voiding: "Voiding";
58
- readonly Voided: "Voided";
59
- readonly Closed: "Closed";
60
- };
61
- export type GetPricesMarketStatusesEnum = typeof GetPricesMarketStatusesEnum[keyof typeof GetPricesMarketStatusesEnum];