@monaco-protocol/client-v2 0.0.65-dev.2 → 0.0.66-dev.5
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.
- package/dist/apis/APIKeyManagementApi.d.ts +9 -9
- package/dist/apis/AppManagementApi.d.ts +12 -12
- package/dist/apis/CurrenciesApi.d.ts +6 -6
- package/dist/apis/EventCategoriesApi.d.ts +9 -9
- package/dist/apis/EventGroupsApi.d.ts +9 -9
- package/dist/apis/EventSubcategoriesApi.d.ts +21 -21
- package/dist/apis/EventsApi.d.ts +76 -34
- package/dist/apis/EventsApi.js +124 -0
- package/dist/apis/ExternalReferenceSourcesControllerApi.d.ts +27 -0
- package/dist/apis/ExternalReferenceSourcesControllerApi.js +62 -0
- package/dist/apis/HeartbeatManagementApi.d.ts +9 -9
- package/dist/apis/MarketPricesApi.d.ts +6 -6
- package/dist/apis/MarketTypesApi.d.ts +9 -9
- package/dist/apis/MarketsApi.d.ts +99 -57
- package/dist/apis/MarketsApi.js +126 -2
- package/dist/apis/OrdersApi.d.ts +31 -31
- package/dist/apis/OrdersApi.js +4 -4
- package/dist/apis/SessionManagementApi.d.ts +6 -6
- package/dist/apis/TradesApi.d.ts +6 -6
- package/dist/apis/WalletsApi.d.ts +32 -32
- package/dist/apis/WalletsApi.js +3 -5
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/ExternalReferenceSource.d.ts +38 -0
- package/dist/models/ExternalReferenceSource.js +50 -0
- package/dist/models/ExternalReferenceSourcesResponse.d.ts +40 -0
- package/dist/models/ExternalReferenceSourcesResponse.js +52 -0
- package/dist/models/Meta.d.ts +1 -0
- package/dist/models/Meta.js +1 -0
- package/dist/models/UpdateReferenceRequest.d.ts +38 -0
- package/dist/models/UpdateReferenceRequest.js +54 -0
- package/dist/models/UpdateReferencesRequest.d.ts +33 -0
- package/dist/models/UpdateReferencesRequest.js +51 -0
- package/dist/models/index.d.ts +4 -1
- package/dist/models/index.js +4 -1
- package/package.json +2 -2
|
@@ -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.instanceOfExternalReferenceSourcesResponse = instanceOfExternalReferenceSourcesResponse;
|
|
17
|
+
exports.ExternalReferenceSourcesResponseFromJSON = ExternalReferenceSourcesResponseFromJSON;
|
|
18
|
+
exports.ExternalReferenceSourcesResponseFromJSONTyped = ExternalReferenceSourcesResponseFromJSONTyped;
|
|
19
|
+
exports.ExternalReferenceSourcesResponseToJSON = ExternalReferenceSourcesResponseToJSON;
|
|
20
|
+
exports.ExternalReferenceSourcesResponseToJSONTyped = ExternalReferenceSourcesResponseToJSONTyped;
|
|
21
|
+
const Meta_1 = require("./Meta");
|
|
22
|
+
const ExternalReferenceSource_1 = require("./ExternalReferenceSource");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the ExternalReferenceSourcesResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfExternalReferenceSourcesResponse(value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function ExternalReferenceSourcesResponseFromJSON(json) {
|
|
30
|
+
return ExternalReferenceSourcesResponseFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function ExternalReferenceSourcesResponseFromJSONTyped(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
|
+
'externalReferenceSources': json['externalReferenceSources'] == null ? undefined : (json['externalReferenceSources'].map(ExternalReferenceSource_1.ExternalReferenceSourceFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function ExternalReferenceSourcesResponseToJSON(json) {
|
|
42
|
+
return ExternalReferenceSourcesResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function ExternalReferenceSourcesResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'_meta': (0, Meta_1.MetaToJSON)(value['meta']),
|
|
50
|
+
'externalReferenceSources': value['externalReferenceSources'] == null ? undefined : (value['externalReferenceSources'].map(ExternalReferenceSource_1.ExternalReferenceSourceToJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|
package/dist/models/Meta.d.ts
CHANGED
|
@@ -48,6 +48,7 @@ export declare const MetaPrimaryDocumentEnum: {
|
|
|
48
48
|
readonly DepositRequests: "depositRequests";
|
|
49
49
|
readonly Events: "events";
|
|
50
50
|
readonly EventGroups: "eventGroups";
|
|
51
|
+
readonly ExternalReferenceSources: "externalReferenceSources";
|
|
51
52
|
readonly Heartbeats: "heartbeats";
|
|
52
53
|
readonly Markets: "markets";
|
|
53
54
|
readonly MarketOutcomes: "marketOutcomes";
|
package/dist/models/Meta.js
CHANGED
|
@@ -33,6 +33,7 @@ exports.MetaPrimaryDocumentEnum = {
|
|
|
33
33
|
DepositRequests: 'depositRequests',
|
|
34
34
|
Events: 'events',
|
|
35
35
|
EventGroups: 'eventGroups',
|
|
36
|
+
ExternalReferenceSources: 'externalReferenceSources',
|
|
36
37
|
Heartbeats: 'heartbeats',
|
|
37
38
|
Markets: 'markets',
|
|
38
39
|
MarketOutcomes: 'marketOutcomes',
|
|
@@ -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 UpdateReferenceRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateReferenceRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UpdateReferenceRequest
|
|
22
|
+
*/
|
|
23
|
+
source: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof UpdateReferenceRequest
|
|
28
|
+
*/
|
|
29
|
+
externalReference: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the UpdateReferenceRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfUpdateReferenceRequest(value: object): value is UpdateReferenceRequest;
|
|
35
|
+
export declare function UpdateReferenceRequestFromJSON(json: any): UpdateReferenceRequest;
|
|
36
|
+
export declare function UpdateReferenceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateReferenceRequest;
|
|
37
|
+
export declare function UpdateReferenceRequestToJSON(json: any): UpdateReferenceRequest;
|
|
38
|
+
export declare function UpdateReferenceRequestToJSONTyped(value?: UpdateReferenceRequest | 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.instanceOfUpdateReferenceRequest = instanceOfUpdateReferenceRequest;
|
|
17
|
+
exports.UpdateReferenceRequestFromJSON = UpdateReferenceRequestFromJSON;
|
|
18
|
+
exports.UpdateReferenceRequestFromJSONTyped = UpdateReferenceRequestFromJSONTyped;
|
|
19
|
+
exports.UpdateReferenceRequestToJSON = UpdateReferenceRequestToJSON;
|
|
20
|
+
exports.UpdateReferenceRequestToJSONTyped = UpdateReferenceRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the UpdateReferenceRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfUpdateReferenceRequest(value) {
|
|
25
|
+
if (!('source' in value) || value['source'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('externalReference' in value) || value['externalReference'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function UpdateReferenceRequestFromJSON(json) {
|
|
32
|
+
return UpdateReferenceRequestFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function UpdateReferenceRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'source': json['source'],
|
|
40
|
+
'externalReference': json['externalReference'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function UpdateReferenceRequestToJSON(json) {
|
|
44
|
+
return UpdateReferenceRequestToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function UpdateReferenceRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'source': value['source'],
|
|
52
|
+
'externalReference': value['externalReference'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 { UpdateReferenceRequest } from './UpdateReferenceRequest';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface UpdateReferencesRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface UpdateReferencesRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<UpdateReferenceRequest>}
|
|
22
|
+
* @memberof UpdateReferencesRequest
|
|
23
|
+
*/
|
|
24
|
+
references: Array<UpdateReferenceRequest>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the UpdateReferencesRequest interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfUpdateReferencesRequest(value: object): value is UpdateReferencesRequest;
|
|
30
|
+
export declare function UpdateReferencesRequestFromJSON(json: any): UpdateReferencesRequest;
|
|
31
|
+
export declare function UpdateReferencesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateReferencesRequest;
|
|
32
|
+
export declare function UpdateReferencesRequestToJSON(json: any): UpdateReferencesRequest;
|
|
33
|
+
export declare function UpdateReferencesRequestToJSONTyped(value?: UpdateReferencesRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.instanceOfUpdateReferencesRequest = instanceOfUpdateReferencesRequest;
|
|
17
|
+
exports.UpdateReferencesRequestFromJSON = UpdateReferencesRequestFromJSON;
|
|
18
|
+
exports.UpdateReferencesRequestFromJSONTyped = UpdateReferencesRequestFromJSONTyped;
|
|
19
|
+
exports.UpdateReferencesRequestToJSON = UpdateReferencesRequestToJSON;
|
|
20
|
+
exports.UpdateReferencesRequestToJSONTyped = UpdateReferencesRequestToJSONTyped;
|
|
21
|
+
const UpdateReferenceRequest_1 = require("./UpdateReferenceRequest");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the UpdateReferencesRequest interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfUpdateReferencesRequest(value) {
|
|
26
|
+
if (!('references' in value) || value['references'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function UpdateReferencesRequestFromJSON(json) {
|
|
31
|
+
return UpdateReferencesRequestFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function UpdateReferencesRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'references': (json['references'].map(UpdateReferenceRequest_1.UpdateReferenceRequestFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function UpdateReferencesRequestToJSON(json) {
|
|
42
|
+
return UpdateReferencesRequestToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function UpdateReferencesRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'references': (value['references'].map(UpdateReferenceRequest_1.UpdateReferenceRequestToJSON)),
|
|
50
|
+
};
|
|
51
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -33,7 +33,6 @@ export * from './DeactivateAPIKeyRequest';
|
|
|
33
33
|
export * from './DepositAddress';
|
|
34
34
|
export * from './DepositAddressResponse';
|
|
35
35
|
export * from './DepositRequest';
|
|
36
|
-
export * from './DepositRequestRequest';
|
|
37
36
|
export * from './DepositRequestResponse';
|
|
38
37
|
export * from './DocumentReference';
|
|
39
38
|
export * from './Event';
|
|
@@ -45,6 +44,8 @@ export * from './EventParticipantsResponse';
|
|
|
45
44
|
export * from './EventResponse';
|
|
46
45
|
export * from './EventSummary';
|
|
47
46
|
export * from './EventUpdateResponse';
|
|
47
|
+
export * from './ExternalReferenceSource';
|
|
48
|
+
export * from './ExternalReferenceSourcesResponse';
|
|
48
49
|
export * from './Heartbeat';
|
|
49
50
|
export * from './HeartbeatResponse';
|
|
50
51
|
export * from './Market';
|
|
@@ -98,6 +99,8 @@ export * from './UpdateAppCommissionRateRequest';
|
|
|
98
99
|
export * from './UpdateDateRequest';
|
|
99
100
|
export * from './UpdateHeartbeatRequest';
|
|
100
101
|
export * from './UpdateNameRequest';
|
|
102
|
+
export * from './UpdateReferenceRequest';
|
|
103
|
+
export * from './UpdateReferencesRequest';
|
|
101
104
|
export * from './Wallet';
|
|
102
105
|
export * from './WalletBalance';
|
|
103
106
|
export * from './WalletMetric';
|
package/dist/models/index.js
CHANGED
|
@@ -51,7 +51,6 @@ __exportStar(require("./DeactivateAPIKeyRequest"), exports);
|
|
|
51
51
|
__exportStar(require("./DepositAddress"), exports);
|
|
52
52
|
__exportStar(require("./DepositAddressResponse"), exports);
|
|
53
53
|
__exportStar(require("./DepositRequest"), exports);
|
|
54
|
-
__exportStar(require("./DepositRequestRequest"), exports);
|
|
55
54
|
__exportStar(require("./DepositRequestResponse"), exports);
|
|
56
55
|
__exportStar(require("./DocumentReference"), exports);
|
|
57
56
|
__exportStar(require("./Event"), exports);
|
|
@@ -63,6 +62,8 @@ __exportStar(require("./EventParticipantsResponse"), exports);
|
|
|
63
62
|
__exportStar(require("./EventResponse"), exports);
|
|
64
63
|
__exportStar(require("./EventSummary"), exports);
|
|
65
64
|
__exportStar(require("./EventUpdateResponse"), exports);
|
|
65
|
+
__exportStar(require("./ExternalReferenceSource"), exports);
|
|
66
|
+
__exportStar(require("./ExternalReferenceSourcesResponse"), exports);
|
|
66
67
|
__exportStar(require("./Heartbeat"), exports);
|
|
67
68
|
__exportStar(require("./HeartbeatResponse"), exports);
|
|
68
69
|
__exportStar(require("./Market"), exports);
|
|
@@ -116,6 +117,8 @@ __exportStar(require("./UpdateAppCommissionRateRequest"), exports);
|
|
|
116
117
|
__exportStar(require("./UpdateDateRequest"), exports);
|
|
117
118
|
__exportStar(require("./UpdateHeartbeatRequest"), exports);
|
|
118
119
|
__exportStar(require("./UpdateNameRequest"), exports);
|
|
120
|
+
__exportStar(require("./UpdateReferenceRequest"), exports);
|
|
121
|
+
__exportStar(require("./UpdateReferencesRequest"), exports);
|
|
119
122
|
__exportStar(require("./Wallet"), exports);
|
|
120
123
|
__exportStar(require("./WalletBalance"), exports);
|
|
121
124
|
__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.
|
|
3
|
+
"version": "0.0.66-dev.5",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"typescript": "^5.8.3"
|
|
20
20
|
},
|
|
21
21
|
"scripts": {
|
|
22
|
-
"generate": "curl $OPENAPI_URL -o spec.json && yarn openapi-generator-cli generate -i spec.json -g typescript-fetch -o ./src --additional-properties=supportsES6=true,npmName=@monaco-protocol/client-v2",
|
|
22
|
+
"generate": "curl $OPENAPI_URL -o spec.json && yarn openapi-generator-cli generate -i spec.json -g typescript-fetch -o ./src --additional-properties=supportsES6=true,npmName=@monaco-protocol/client-v2,prefixParameterInterfaces=true",
|
|
23
23
|
"build": "tsc",
|
|
24
24
|
"clean": "rm -rf dist spec.json src",
|
|
25
25
|
"version:dev": "yarn version --prerelease --preid dev",
|