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

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,56 @@
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.instanceOfWithdrawalRequestRequest = instanceOfWithdrawalRequestRequest;
17
+ exports.WithdrawalRequestRequestFromJSON = WithdrawalRequestRequestFromJSON;
18
+ exports.WithdrawalRequestRequestFromJSONTyped = WithdrawalRequestRequestFromJSONTyped;
19
+ exports.WithdrawalRequestRequestToJSON = WithdrawalRequestRequestToJSON;
20
+ exports.WithdrawalRequestRequestToJSONTyped = WithdrawalRequestRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the WithdrawalRequestRequest interface.
23
+ */
24
+ function instanceOfWithdrawalRequestRequest(value) {
25
+ if (!('currencyId' in value) || value['currencyId'] === undefined)
26
+ return false;
27
+ if (!('toAddress' in value) || value['toAddress'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function WithdrawalRequestRequestFromJSON(json) {
32
+ return WithdrawalRequestRequestFromJSONTyped(json, false);
33
+ }
34
+ function WithdrawalRequestRequestFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'currencyId': json['currencyId'],
40
+ 'amount': json['amount'] == null ? undefined : json['amount'],
41
+ 'toAddress': json['toAddress'],
42
+ };
43
+ }
44
+ function WithdrawalRequestRequestToJSON(json) {
45
+ return WithdrawalRequestRequestToJSONTyped(json, false);
46
+ }
47
+ function WithdrawalRequestRequestToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'currencyId': value['currencyId'],
53
+ 'amount': value['amount'],
54
+ 'toAddress': value['toAddress'],
55
+ };
56
+ }
@@ -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 { WithdrawalRequest } from './WithdrawalRequest';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface WithdrawalRequestResponse
18
+ */
19
+ export interface WithdrawalRequestResponse {
20
+ /**
21
+ *
22
+ * @type {Meta}
23
+ * @memberof WithdrawalRequestResponse
24
+ */
25
+ meta?: Meta;
26
+ /**
27
+ *
28
+ * @type {Array<WithdrawalRequest>}
29
+ * @memberof WithdrawalRequestResponse
30
+ */
31
+ withdrawalRequests?: Array<WithdrawalRequest>;
32
+ }
33
+ /**
34
+ * Check if a given object implements the WithdrawalRequestResponse interface.
35
+ */
36
+ export declare function instanceOfWithdrawalRequestResponse(value: object): value is WithdrawalRequestResponse;
37
+ export declare function WithdrawalRequestResponseFromJSON(json: any): WithdrawalRequestResponse;
38
+ export declare function WithdrawalRequestResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WithdrawalRequestResponse;
39
+ export declare function WithdrawalRequestResponseToJSON(json: any): WithdrawalRequestResponse;
40
+ export declare function WithdrawalRequestResponseToJSONTyped(value?: WithdrawalRequestResponse | 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.instanceOfWithdrawalRequestResponse = instanceOfWithdrawalRequestResponse;
17
+ exports.WithdrawalRequestResponseFromJSON = WithdrawalRequestResponseFromJSON;
18
+ exports.WithdrawalRequestResponseFromJSONTyped = WithdrawalRequestResponseFromJSONTyped;
19
+ exports.WithdrawalRequestResponseToJSON = WithdrawalRequestResponseToJSON;
20
+ exports.WithdrawalRequestResponseToJSONTyped = WithdrawalRequestResponseToJSONTyped;
21
+ const Meta_1 = require("./Meta");
22
+ const WithdrawalRequest_1 = require("./WithdrawalRequest");
23
+ /**
24
+ * Check if a given object implements the WithdrawalRequestResponse interface.
25
+ */
26
+ function instanceOfWithdrawalRequestResponse(value) {
27
+ return true;
28
+ }
29
+ function WithdrawalRequestResponseFromJSON(json) {
30
+ return WithdrawalRequestResponseFromJSONTyped(json, false);
31
+ }
32
+ function WithdrawalRequestResponseFromJSONTyped(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
+ 'withdrawalRequests': json['withdrawalRequests'] == null ? undefined : (json['withdrawalRequests'].map(WithdrawalRequest_1.WithdrawalRequestFromJSON)),
39
+ };
40
+ }
41
+ function WithdrawalRequestResponseToJSON(json) {
42
+ return WithdrawalRequestResponseToJSONTyped(json, false);
43
+ }
44
+ function WithdrawalRequestResponseToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ '_meta': (0, Meta_1.MetaToJSON)(value['meta']),
50
+ 'withdrawalRequests': value['withdrawalRequests'] == null ? undefined : (value['withdrawalRequests'].map(WithdrawalRequest_1.WithdrawalRequestToJSON)),
51
+ };
52
+ }
@@ -30,6 +30,11 @@ export * from './CreateWalletRequest';
30
30
  export * from './Currency';
31
31
  export * from './CurrencyResponse';
32
32
  export * from './DeactivateAPIKeyRequest';
33
+ export * from './DepositAddress';
34
+ export * from './DepositAddressResponse';
35
+ export * from './DepositRequest';
36
+ export * from './DepositRequestRequest';
37
+ export * from './DepositRequestResponse';
33
38
  export * from './DocumentReference';
34
39
  export * from './Event';
35
40
  export * from './EventGroup';
@@ -99,3 +104,6 @@ export * from './WalletMetric';
99
104
  export * from './WalletMetrics';
100
105
  export * from './WalletMetricsResponse';
101
106
  export * from './WalletResponse';
107
+ export * from './WithdrawalRequest';
108
+ export * from './WithdrawalRequestRequest';
109
+ export * from './WithdrawalRequestResponse';
@@ -48,6 +48,11 @@ __exportStar(require("./CreateWalletRequest"), exports);
48
48
  __exportStar(require("./Currency"), exports);
49
49
  __exportStar(require("./CurrencyResponse"), exports);
50
50
  __exportStar(require("./DeactivateAPIKeyRequest"), exports);
51
+ __exportStar(require("./DepositAddress"), exports);
52
+ __exportStar(require("./DepositAddressResponse"), exports);
53
+ __exportStar(require("./DepositRequest"), exports);
54
+ __exportStar(require("./DepositRequestRequest"), exports);
55
+ __exportStar(require("./DepositRequestResponse"), exports);
51
56
  __exportStar(require("./DocumentReference"), exports);
52
57
  __exportStar(require("./Event"), exports);
53
58
  __exportStar(require("./EventGroup"), exports);
@@ -117,3 +122,6 @@ __exportStar(require("./WalletMetric"), exports);
117
122
  __exportStar(require("./WalletMetrics"), exports);
118
123
  __exportStar(require("./WalletMetricsResponse"), exports);
119
124
  __exportStar(require("./WalletResponse"), exports);
125
+ __exportStar(require("./WithdrawalRequest"), exports);
126
+ __exportStar(require("./WithdrawalRequestRequest"), exports);
127
+ __exportStar(require("./WithdrawalRequestResponse"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monaco-protocol/client-v2",
3
- "version": "0.0.64",
3
+ "version": "0.0.65-dev.2",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [