@monaco-protocol/client-v2 0.0.64 → 0.0.65-dev.1

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.
@@ -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.instanceOfDepositRequest = instanceOfDepositRequest;
17
+ exports.DepositRequestFromJSON = DepositRequestFromJSON;
18
+ exports.DepositRequestFromJSONTyped = DepositRequestFromJSONTyped;
19
+ exports.DepositRequestToJSON = DepositRequestToJSON;
20
+ exports.DepositRequestToJSONTyped = DepositRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the DepositRequest interface.
23
+ */
24
+ function instanceOfDepositRequest(value) {
25
+ return true;
26
+ }
27
+ function DepositRequestFromJSON(json) {
28
+ return DepositRequestFromJSONTyped(json, false);
29
+ }
30
+ function DepositRequestFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'id': json['id'] == null ? undefined : json['id'],
36
+ 'ownerAddress': json['ownerAddress'] == null ? undefined : json['ownerAddress'],
37
+ 'currencyId': json['currencyId'] == null ? undefined : json['currencyId'],
38
+ };
39
+ }
40
+ function DepositRequestToJSON(json) {
41
+ return DepositRequestToJSONTyped(json, false);
42
+ }
43
+ function DepositRequestToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'id': value['id'],
49
+ 'ownerAddress': value['ownerAddress'],
50
+ 'currencyId': value['currencyId'],
51
+ };
52
+ }
@@ -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 DepositRequestRequest
16
+ */
17
+ export interface DepositRequestRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof DepositRequestRequest
22
+ */
23
+ currencyId: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof DepositRequestRequest
28
+ */
29
+ externalAddress: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the DepositRequestRequest interface.
33
+ */
34
+ export declare function instanceOfDepositRequestRequest(value: object): value is DepositRequestRequest;
35
+ export declare function DepositRequestRequestFromJSON(json: any): DepositRequestRequest;
36
+ export declare function DepositRequestRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DepositRequestRequest;
37
+ export declare function DepositRequestRequestToJSON(json: any): DepositRequestRequest;
38
+ export declare function DepositRequestRequestToJSONTyped(value?: DepositRequestRequest | 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.instanceOfDepositRequestRequest = instanceOfDepositRequestRequest;
17
+ exports.DepositRequestRequestFromJSON = DepositRequestRequestFromJSON;
18
+ exports.DepositRequestRequestFromJSONTyped = DepositRequestRequestFromJSONTyped;
19
+ exports.DepositRequestRequestToJSON = DepositRequestRequestToJSON;
20
+ exports.DepositRequestRequestToJSONTyped = DepositRequestRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the DepositRequestRequest interface.
23
+ */
24
+ function instanceOfDepositRequestRequest(value) {
25
+ if (!('currencyId' in value) || value['currencyId'] === undefined)
26
+ return false;
27
+ if (!('externalAddress' in value) || value['externalAddress'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function DepositRequestRequestFromJSON(json) {
32
+ return DepositRequestRequestFromJSONTyped(json, false);
33
+ }
34
+ function DepositRequestRequestFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'currencyId': json['currencyId'],
40
+ 'externalAddress': json['externalAddress'],
41
+ };
42
+ }
43
+ function DepositRequestRequestToJSON(json) {
44
+ return DepositRequestRequestToJSONTyped(json, false);
45
+ }
46
+ function DepositRequestRequestToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'currencyId': value['currencyId'],
52
+ 'externalAddress': value['externalAddress'],
53
+ };
54
+ }
@@ -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 { DepositRequest } from './DepositRequest';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface DepositRequestResponse
18
+ */
19
+ export interface DepositRequestResponse {
20
+ /**
21
+ *
22
+ * @type {Meta}
23
+ * @memberof DepositRequestResponse
24
+ */
25
+ meta?: Meta;
26
+ /**
27
+ *
28
+ * @type {Array<DepositRequest>}
29
+ * @memberof DepositRequestResponse
30
+ */
31
+ depositRequests?: Array<DepositRequest>;
32
+ }
33
+ /**
34
+ * Check if a given object implements the DepositRequestResponse interface.
35
+ */
36
+ export declare function instanceOfDepositRequestResponse(value: object): value is DepositRequestResponse;
37
+ export declare function DepositRequestResponseFromJSON(json: any): DepositRequestResponse;
38
+ export declare function DepositRequestResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DepositRequestResponse;
39
+ export declare function DepositRequestResponseToJSON(json: any): DepositRequestResponse;
40
+ export declare function DepositRequestResponseToJSONTyped(value?: DepositRequestResponse | 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.instanceOfDepositRequestResponse = instanceOfDepositRequestResponse;
17
+ exports.DepositRequestResponseFromJSON = DepositRequestResponseFromJSON;
18
+ exports.DepositRequestResponseFromJSONTyped = DepositRequestResponseFromJSONTyped;
19
+ exports.DepositRequestResponseToJSON = DepositRequestResponseToJSON;
20
+ exports.DepositRequestResponseToJSONTyped = DepositRequestResponseToJSONTyped;
21
+ const Meta_1 = require("./Meta");
22
+ const DepositRequest_1 = require("./DepositRequest");
23
+ /**
24
+ * Check if a given object implements the DepositRequestResponse interface.
25
+ */
26
+ function instanceOfDepositRequestResponse(value) {
27
+ return true;
28
+ }
29
+ function DepositRequestResponseFromJSON(json) {
30
+ return DepositRequestResponseFromJSONTyped(json, false);
31
+ }
32
+ function DepositRequestResponseFromJSONTyped(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
+ 'depositRequests': json['depositRequests'] == null ? undefined : (json['depositRequests'].map(DepositRequest_1.DepositRequestFromJSON)),
39
+ };
40
+ }
41
+ function DepositRequestResponseToJSON(json) {
42
+ return DepositRequestResponseToJSONTyped(json, false);
43
+ }
44
+ function DepositRequestResponseToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ '_meta': (0, Meta_1.MetaToJSON)(value['meta']),
50
+ 'depositRequests': value['depositRequests'] == null ? undefined : (value['depositRequests'].map(DepositRequest_1.DepositRequestToJSON)),
51
+ };
52
+ }
@@ -44,6 +44,8 @@ export declare const MetaPrimaryDocumentEnum: {
44
44
  readonly Categories: "categories";
45
45
  readonly CommissionRates: "commissionRates";
46
46
  readonly Currencies: "currencies";
47
+ readonly DepositAddresses: "depositAddresses";
48
+ readonly DepositRequests: "depositRequests";
47
49
  readonly Events: "events";
48
50
  readonly EventGroups: "eventGroups";
49
51
  readonly Heartbeats: "heartbeats";
@@ -62,6 +64,7 @@ export declare const MetaPrimaryDocumentEnum: {
62
64
  readonly Transactions: "transactions";
63
65
  readonly Wallets: "wallets";
64
66
  readonly WalletMetrics: "walletMetrics";
67
+ readonly WithdrawalRequests: "withdrawalRequests";
65
68
  };
66
69
  export type MetaPrimaryDocumentEnum = typeof MetaPrimaryDocumentEnum[keyof typeof MetaPrimaryDocumentEnum];
67
70
  /**
@@ -29,6 +29,8 @@ exports.MetaPrimaryDocumentEnum = {
29
29
  Categories: 'categories',
30
30
  CommissionRates: 'commissionRates',
31
31
  Currencies: 'currencies',
32
+ DepositAddresses: 'depositAddresses',
33
+ DepositRequests: 'depositRequests',
32
34
  Events: 'events',
33
35
  EventGroups: 'eventGroups',
34
36
  Heartbeats: 'heartbeats',
@@ -46,7 +48,8 @@ exports.MetaPrimaryDocumentEnum = {
46
48
  Trades: 'trades',
47
49
  Transactions: 'transactions',
48
50
  Wallets: 'wallets',
49
- WalletMetrics: 'walletMetrics'
51
+ WalletMetrics: 'walletMetrics',
52
+ WithdrawalRequests: 'withdrawalRequests'
50
53
  };
51
54
  /**
52
55
  * Check if a given object implements the Meta interface.
@@ -0,0 +1,96 @@
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 { MarketOutcomeSummary } from './MarketOutcomeSummary';
13
+ import type { Meta } from './Meta';
14
+ import type { CategorySummary } from './CategorySummary';
15
+ import type { EventSummary } from './EventSummary';
16
+ import type { SubcategorySummary } from './SubcategorySummary';
17
+ import type { Market } from './Market';
18
+ import type { MarketLiquidities } from './MarketLiquidities';
19
+ import type { MarketTypeSummary } from './MarketTypeSummary';
20
+ import type { EventGroupSummary } from './EventGroupSummary';
21
+ import type { EventParticipant } from './EventParticipant';
22
+ /**
23
+ *
24
+ * @export
25
+ * @interface PagedMarketWithPricesResponse
26
+ */
27
+ export interface PagedMarketWithPricesResponse {
28
+ /**
29
+ *
30
+ * @type {Meta}
31
+ * @memberof PagedMarketWithPricesResponse
32
+ */
33
+ meta?: Meta;
34
+ /**
35
+ *
36
+ * @type {Array<Market>}
37
+ * @memberof PagedMarketWithPricesResponse
38
+ */
39
+ markets?: Array<Market>;
40
+ /**
41
+ *
42
+ * @type {Array<MarketTypeSummary>}
43
+ * @memberof PagedMarketWithPricesResponse
44
+ */
45
+ marketTypes?: Array<MarketTypeSummary>;
46
+ /**
47
+ *
48
+ * @type {Array<MarketOutcomeSummary>}
49
+ * @memberof PagedMarketWithPricesResponse
50
+ */
51
+ marketOutcomes?: Array<MarketOutcomeSummary>;
52
+ /**
53
+ *
54
+ * @type {Array<EventSummary>}
55
+ * @memberof PagedMarketWithPricesResponse
56
+ */
57
+ events?: Array<EventSummary>;
58
+ /**
59
+ *
60
+ * @type {Array<EventGroupSummary>}
61
+ * @memberof PagedMarketWithPricesResponse
62
+ */
63
+ eventGroups?: Array<EventGroupSummary>;
64
+ /**
65
+ *
66
+ * @type {Array<SubcategorySummary>}
67
+ * @memberof PagedMarketWithPricesResponse
68
+ */
69
+ subcategories?: Array<SubcategorySummary>;
70
+ /**
71
+ *
72
+ * @type {Array<CategorySummary>}
73
+ * @memberof PagedMarketWithPricesResponse
74
+ */
75
+ categories?: Array<CategorySummary>;
76
+ /**
77
+ *
78
+ * @type {Array<MarketLiquidities>}
79
+ * @memberof PagedMarketWithPricesResponse
80
+ */
81
+ prices?: Array<MarketLiquidities>;
82
+ /**
83
+ *
84
+ * @type {Array<EventParticipant>}
85
+ * @memberof PagedMarketWithPricesResponse
86
+ */
87
+ participants?: Array<EventParticipant>;
88
+ }
89
+ /**
90
+ * Check if a given object implements the PagedMarketWithPricesResponse interface.
91
+ */
92
+ export declare function instanceOfPagedMarketWithPricesResponse(value: object): value is PagedMarketWithPricesResponse;
93
+ export declare function PagedMarketWithPricesResponseFromJSON(json: any): PagedMarketWithPricesResponse;
94
+ export declare function PagedMarketWithPricesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PagedMarketWithPricesResponse;
95
+ export declare function PagedMarketWithPricesResponseToJSON(json: any): PagedMarketWithPricesResponse;
96
+ export declare function PagedMarketWithPricesResponseToJSONTyped(value?: PagedMarketWithPricesResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,76 @@
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.instanceOfPagedMarketWithPricesResponse = instanceOfPagedMarketWithPricesResponse;
17
+ exports.PagedMarketWithPricesResponseFromJSON = PagedMarketWithPricesResponseFromJSON;
18
+ exports.PagedMarketWithPricesResponseFromJSONTyped = PagedMarketWithPricesResponseFromJSONTyped;
19
+ exports.PagedMarketWithPricesResponseToJSON = PagedMarketWithPricesResponseToJSON;
20
+ exports.PagedMarketWithPricesResponseToJSONTyped = PagedMarketWithPricesResponseToJSONTyped;
21
+ const MarketOutcomeSummary_1 = require("./MarketOutcomeSummary");
22
+ const Meta_1 = require("./Meta");
23
+ const CategorySummary_1 = require("./CategorySummary");
24
+ const EventSummary_1 = require("./EventSummary");
25
+ const SubcategorySummary_1 = require("./SubcategorySummary");
26
+ const Market_1 = require("./Market");
27
+ const MarketLiquidities_1 = require("./MarketLiquidities");
28
+ const MarketTypeSummary_1 = require("./MarketTypeSummary");
29
+ const EventGroupSummary_1 = require("./EventGroupSummary");
30
+ const EventParticipant_1 = require("./EventParticipant");
31
+ /**
32
+ * Check if a given object implements the PagedMarketWithPricesResponse interface.
33
+ */
34
+ function instanceOfPagedMarketWithPricesResponse(value) {
35
+ return true;
36
+ }
37
+ function PagedMarketWithPricesResponseFromJSON(json) {
38
+ return PagedMarketWithPricesResponseFromJSONTyped(json, false);
39
+ }
40
+ function PagedMarketWithPricesResponseFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'meta': json['_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['_meta']),
46
+ 'markets': json['markets'] == null ? undefined : (json['markets'].map(Market_1.MarketFromJSON)),
47
+ 'marketTypes': json['marketTypes'] == null ? undefined : (json['marketTypes'].map(MarketTypeSummary_1.MarketTypeSummaryFromJSON)),
48
+ 'marketOutcomes': json['marketOutcomes'] == null ? undefined : (json['marketOutcomes'].map(MarketOutcomeSummary_1.MarketOutcomeSummaryFromJSON)),
49
+ 'events': json['events'] == null ? undefined : (json['events'].map(EventSummary_1.EventSummaryFromJSON)),
50
+ 'eventGroups': json['eventGroups'] == null ? undefined : (json['eventGroups'].map(EventGroupSummary_1.EventGroupSummaryFromJSON)),
51
+ 'subcategories': json['subcategories'] == null ? undefined : (json['subcategories'].map(SubcategorySummary_1.SubcategorySummaryFromJSON)),
52
+ 'categories': json['categories'] == null ? undefined : (json['categories'].map(CategorySummary_1.CategorySummaryFromJSON)),
53
+ 'prices': json['prices'] == null ? undefined : (json['prices'].map(MarketLiquidities_1.MarketLiquiditiesFromJSON)),
54
+ 'participants': json['participants'] == null ? undefined : (json['participants'].map(EventParticipant_1.EventParticipantFromJSON)),
55
+ };
56
+ }
57
+ function PagedMarketWithPricesResponseToJSON(json) {
58
+ return PagedMarketWithPricesResponseToJSONTyped(json, false);
59
+ }
60
+ function PagedMarketWithPricesResponseToJSONTyped(value, ignoreDiscriminator = false) {
61
+ if (value == null) {
62
+ return value;
63
+ }
64
+ return {
65
+ '_meta': (0, Meta_1.MetaToJSON)(value['meta']),
66
+ 'markets': value['markets'] == null ? undefined : (value['markets'].map(Market_1.MarketToJSON)),
67
+ 'marketTypes': value['marketTypes'] == null ? undefined : (value['marketTypes'].map(MarketTypeSummary_1.MarketTypeSummaryToJSON)),
68
+ 'marketOutcomes': value['marketOutcomes'] == null ? undefined : (value['marketOutcomes'].map(MarketOutcomeSummary_1.MarketOutcomeSummaryToJSON)),
69
+ 'events': value['events'] == null ? undefined : (value['events'].map(EventSummary_1.EventSummaryToJSON)),
70
+ 'eventGroups': value['eventGroups'] == null ? undefined : (value['eventGroups'].map(EventGroupSummary_1.EventGroupSummaryToJSON)),
71
+ 'subcategories': value['subcategories'] == null ? undefined : (value['subcategories'].map(SubcategorySummary_1.SubcategorySummaryToJSON)),
72
+ 'categories': value['categories'] == null ? undefined : (value['categories'].map(CategorySummary_1.CategorySummaryToJSON)),
73
+ 'prices': value['prices'] == null ? undefined : (value['prices'].map(MarketLiquidities_1.MarketLiquiditiesToJSON)),
74
+ 'participants': value['participants'] == null ? undefined : (value['participants'].map(EventParticipant_1.EventParticipantToJSON)),
75
+ };
76
+ }
@@ -0,0 +1,92 @@
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 WithdrawalRequest
16
+ */
17
+ export interface WithdrawalRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof WithdrawalRequest
22
+ */
23
+ id?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof WithdrawalRequest
28
+ */
29
+ walletId?: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof WithdrawalRequest
34
+ */
35
+ currencyId?: string;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof WithdrawalRequest
40
+ */
41
+ amount?: number;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof WithdrawalRequest
46
+ */
47
+ destinationAddress?: string;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof WithdrawalRequest
52
+ */
53
+ internalStatus?: WithdrawalRequestInternalStatusEnum;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof WithdrawalRequest
58
+ */
59
+ externalStatus?: WithdrawalRequestExternalStatusEnum;
60
+ }
61
+ /**
62
+ * @export
63
+ */
64
+ export declare const WithdrawalRequestInternalStatusEnum: {
65
+ readonly Pending: "Pending";
66
+ readonly InProgress: "InProgress";
67
+ readonly ToBeConfirmed: "ToBeConfirmed";
68
+ readonly Confirming: "Confirming";
69
+ readonly Confirmed: "Confirmed";
70
+ readonly Failed: "Failed";
71
+ };
72
+ export type WithdrawalRequestInternalStatusEnum = typeof WithdrawalRequestInternalStatusEnum[keyof typeof WithdrawalRequestInternalStatusEnum];
73
+ /**
74
+ * @export
75
+ */
76
+ export declare const WithdrawalRequestExternalStatusEnum: {
77
+ readonly Pending: "Pending";
78
+ readonly InProgress: "InProgress";
79
+ readonly ToBeConfirmed: "ToBeConfirmed";
80
+ readonly Confirming: "Confirming";
81
+ readonly Confirmed: "Confirmed";
82
+ readonly Failed: "Failed";
83
+ };
84
+ export type WithdrawalRequestExternalStatusEnum = typeof WithdrawalRequestExternalStatusEnum[keyof typeof WithdrawalRequestExternalStatusEnum];
85
+ /**
86
+ * Check if a given object implements the WithdrawalRequest interface.
87
+ */
88
+ export declare function instanceOfWithdrawalRequest(value: object): value is WithdrawalRequest;
89
+ export declare function WithdrawalRequestFromJSON(json: any): WithdrawalRequest;
90
+ export declare function WithdrawalRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WithdrawalRequest;
91
+ export declare function WithdrawalRequestToJSON(json: any): WithdrawalRequest;
92
+ export declare function WithdrawalRequestToJSONTyped(value?: WithdrawalRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,83 @@
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.WithdrawalRequestExternalStatusEnum = exports.WithdrawalRequestInternalStatusEnum = void 0;
17
+ exports.instanceOfWithdrawalRequest = instanceOfWithdrawalRequest;
18
+ exports.WithdrawalRequestFromJSON = WithdrawalRequestFromJSON;
19
+ exports.WithdrawalRequestFromJSONTyped = WithdrawalRequestFromJSONTyped;
20
+ exports.WithdrawalRequestToJSON = WithdrawalRequestToJSON;
21
+ exports.WithdrawalRequestToJSONTyped = WithdrawalRequestToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.WithdrawalRequestInternalStatusEnum = {
26
+ Pending: 'Pending',
27
+ InProgress: 'InProgress',
28
+ ToBeConfirmed: 'ToBeConfirmed',
29
+ Confirming: 'Confirming',
30
+ Confirmed: 'Confirmed',
31
+ Failed: 'Failed'
32
+ };
33
+ /**
34
+ * @export
35
+ */
36
+ exports.WithdrawalRequestExternalStatusEnum = {
37
+ Pending: 'Pending',
38
+ InProgress: 'InProgress',
39
+ ToBeConfirmed: 'ToBeConfirmed',
40
+ Confirming: 'Confirming',
41
+ Confirmed: 'Confirmed',
42
+ Failed: 'Failed'
43
+ };
44
+ /**
45
+ * Check if a given object implements the WithdrawalRequest interface.
46
+ */
47
+ function instanceOfWithdrawalRequest(value) {
48
+ return true;
49
+ }
50
+ function WithdrawalRequestFromJSON(json) {
51
+ return WithdrawalRequestFromJSONTyped(json, false);
52
+ }
53
+ function WithdrawalRequestFromJSONTyped(json, ignoreDiscriminator) {
54
+ if (json == null) {
55
+ return json;
56
+ }
57
+ return {
58
+ 'id': json['id'] == null ? undefined : json['id'],
59
+ 'walletId': json['walletId'] == null ? undefined : json['walletId'],
60
+ 'currencyId': json['currencyId'] == null ? undefined : json['currencyId'],
61
+ 'amount': json['amount'] == null ? undefined : json['amount'],
62
+ 'destinationAddress': json['destinationAddress'] == null ? undefined : json['destinationAddress'],
63
+ 'internalStatus': json['internalStatus'] == null ? undefined : json['internalStatus'],
64
+ 'externalStatus': json['externalStatus'] == null ? undefined : json['externalStatus'],
65
+ };
66
+ }
67
+ function WithdrawalRequestToJSON(json) {
68
+ return WithdrawalRequestToJSONTyped(json, false);
69
+ }
70
+ function WithdrawalRequestToJSONTyped(value, ignoreDiscriminator = false) {
71
+ if (value == null) {
72
+ return value;
73
+ }
74
+ return {
75
+ 'id': value['id'],
76
+ 'walletId': value['walletId'],
77
+ 'currencyId': value['currencyId'],
78
+ 'amount': value['amount'],
79
+ 'destinationAddress': value['destinationAddress'],
80
+ 'internalStatus': value['internalStatus'],
81
+ 'externalStatus': value['externalStatus'],
82
+ };
83
+ }
@@ -0,0 +1,44 @@
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 WithdrawalRequestRequest
16
+ */
17
+ export interface WithdrawalRequestRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof WithdrawalRequestRequest
22
+ */
23
+ currencyId: string;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof WithdrawalRequestRequest
28
+ */
29
+ amount?: number;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof WithdrawalRequestRequest
34
+ */
35
+ toAddress: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the WithdrawalRequestRequest interface.
39
+ */
40
+ export declare function instanceOfWithdrawalRequestRequest(value: object): value is WithdrawalRequestRequest;
41
+ export declare function WithdrawalRequestRequestFromJSON(json: any): WithdrawalRequestRequest;
42
+ export declare function WithdrawalRequestRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WithdrawalRequestRequest;
43
+ export declare function WithdrawalRequestRequestToJSON(json: any): WithdrawalRequestRequest;
44
+ export declare function WithdrawalRequestRequestToJSONTyped(value?: WithdrawalRequestRequest | null, ignoreDiscriminator?: boolean): any;