@invezgo/sdk 1.0.0 → 1.1.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.
- package/README.md +187 -238
- package/dist/endpoints/alerts.d.ts +49 -0
- package/dist/endpoints/alerts.d.ts.map +1 -0
- package/dist/endpoints/analysis.d.ts +173 -56
- package/dist/endpoints/analysis.d.ts.map +1 -1
- package/dist/endpoints/journals.d.ts +22 -18
- package/dist/endpoints/journals.d.ts.map +1 -1
- package/dist/endpoints/membership.d.ts +15 -13
- package/dist/endpoints/membership.d.ts.map +1 -1
- package/dist/endpoints/recommendation.d.ts +10 -0
- package/dist/endpoints/recommendation.d.ts.map +1 -0
- package/dist/endpoints/screener.d.ts +28 -17
- package/dist/endpoints/screener.d.ts.map +1 -1
- package/dist/endpoints/watchlists.d.ts +32 -19
- package/dist/endpoints/watchlists.d.ts.map +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +246 -179
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +246 -179
- package/dist/index.js.map +1 -1
- package/dist/invezgo.d.ts +6 -6
- package/dist/invezgo.d.ts.map +1 -1
- package/dist/types.d.ts +227 -33
- package/dist/types.d.ts.map +1 -1
- package/package.json +6 -7
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { HttpClient } from '../client';
|
|
2
2
|
export interface CreateWatchlistDto {
|
|
3
|
+
group: string;
|
|
3
4
|
code: string;
|
|
4
|
-
|
|
5
|
+
price: number;
|
|
6
|
+
note?: string;
|
|
7
|
+
scope: string[];
|
|
5
8
|
}
|
|
6
9
|
export interface UpdateWatchlistDto {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
group?: string;
|
|
10
|
+
group: string;
|
|
11
|
+
price: number;
|
|
10
12
|
}
|
|
11
13
|
export interface CreateGroupDto {
|
|
12
14
|
name: string;
|
|
@@ -18,34 +20,45 @@ export declare class WatchlistsEndpoints {
|
|
|
18
20
|
private client;
|
|
19
21
|
constructor(client: HttpClient);
|
|
20
22
|
/**
|
|
21
|
-
* Get list of watchlists
|
|
23
|
+
* Get list of watchlists.
|
|
22
24
|
*/
|
|
23
|
-
list(group?: string): Promise<
|
|
25
|
+
list(group?: string): Promise<unknown[]>;
|
|
24
26
|
/**
|
|
25
|
-
* Add stock to watchlist
|
|
27
|
+
* Add stock to watchlist.
|
|
26
28
|
*/
|
|
27
|
-
add(dto: CreateWatchlistDto): Promise<
|
|
29
|
+
add(dto: CreateWatchlistDto): Promise<unknown>;
|
|
28
30
|
/**
|
|
29
|
-
* Delete watchlist
|
|
31
|
+
* Delete watchlist entries.
|
|
32
|
+
*
|
|
33
|
+
* The current OpenAPI spec does not describe delete filters,
|
|
34
|
+
* but the SDK keeps optional query params for batch deletion support.
|
|
30
35
|
*/
|
|
31
|
-
delete(params
|
|
36
|
+
delete(params?: {
|
|
32
37
|
ids?: string[];
|
|
33
|
-
}): Promise<
|
|
38
|
+
}): Promise<unknown>;
|
|
39
|
+
/**
|
|
40
|
+
* Get list of watchlist groups.
|
|
41
|
+
*/
|
|
42
|
+
listGroups(): Promise<unknown[]>;
|
|
43
|
+
/**
|
|
44
|
+
* Add new watchlist group.
|
|
45
|
+
*/
|
|
46
|
+
addGroup(dto: CreateGroupDto): Promise<unknown>;
|
|
34
47
|
/**
|
|
35
|
-
*
|
|
48
|
+
* Update watchlist group.
|
|
36
49
|
*/
|
|
37
|
-
|
|
50
|
+
updateGroup(id: string, dto: CreateGroupDto): Promise<unknown>;
|
|
38
51
|
/**
|
|
39
|
-
*
|
|
52
|
+
* Delete watchlist group.
|
|
40
53
|
*/
|
|
41
|
-
|
|
54
|
+
deleteGroup(id: string): Promise<unknown>;
|
|
42
55
|
/**
|
|
43
|
-
* Update watchlist
|
|
56
|
+
* Update watchlist.
|
|
44
57
|
*/
|
|
45
|
-
update(id: string, dto: UpdateWatchlistDto): Promise<
|
|
58
|
+
update(id: string, dto: UpdateWatchlistDto): Promise<unknown>;
|
|
46
59
|
/**
|
|
47
|
-
* Update watchlist note
|
|
60
|
+
* Update watchlist note.
|
|
48
61
|
*/
|
|
49
|
-
updateNote(id: string, dto: UpdateNoteWatchlistDto): Promise<
|
|
62
|
+
updateNote(id: string, dto: UpdateNoteWatchlistDto): Promise<unknown>;
|
|
50
63
|
}
|
|
51
64
|
//# sourceMappingURL=watchlists.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"watchlists.d.ts","sourceRoot":"","sources":["../../src/endpoints/watchlists.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAEvC,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,
|
|
1
|
+
{"version":3,"file":"watchlists.d.ts","sourceRoot":"","sources":["../../src/endpoints/watchlists.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAEvC,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,sBAAsB;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,qBAAa,mBAAmB;IAClB,OAAO,CAAC,MAAM;gBAAN,MAAM,EAAE,UAAU;IAEtC;;OAEG;IACG,IAAI,CAAC,KAAK,SAAS,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAI9C;;OAEG;IACG,GAAG,CAAC,GAAG,EAAE,kBAAkB,GAAG,OAAO,CAAC,OAAO,CAAC;IAIpD;;;;;OAKG;IACG,MAAM,CAAC,MAAM,CAAC,EAAE;QAAE,GAAG,CAAC,EAAE,MAAM,EAAE,CAAA;KAAE,GAAG,OAAO,CAAC,OAAO,CAAC;IAI3D;;OAEG;IACG,UAAU,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;IAItC;;OAEG;IACG,QAAQ,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;IAIrD;;OAEG;IACG,WAAW,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;IAIpE;;OAEG;IACG,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAI/C;;OAEG;IACG,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,kBAAkB,GAAG,OAAO,CAAC,OAAO,CAAC;IAInE;;OAEG;IACG,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,sBAAsB,GAAG,OAAO,CAAC,OAAO,CAAC;CAG5E"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Invezgo SDK for JavaScript and TypeScript
|
|
2
|
+
* Invezgo SDK for JavaScript and TypeScript.
|
|
3
3
|
*
|
|
4
|
-
* Official SDK for accessing Invezgo API
|
|
4
|
+
* Official SDK for accessing Invezgo API.
|
|
5
5
|
*
|
|
6
6
|
* @packageDocumentation
|
|
7
7
|
*/
|
|
8
8
|
export { Invezgo } from './invezgo';
|
|
9
9
|
export { InvezgoError } from './client';
|
|
10
10
|
export * from './types';
|
|
11
|
+
export * from './endpoints/alerts';
|
|
11
12
|
export * from './endpoints/watchlists';
|
|
12
13
|
export * from './endpoints/journals';
|
|
13
14
|
export * from './endpoints/membership';
|
|
14
15
|
export * from './endpoints/trades';
|
|
15
16
|
export * from './endpoints/screener';
|
|
17
|
+
export * from './endpoints/recommendation';
|
|
16
18
|
import { Invezgo } from './invezgo';
|
|
17
19
|
export default Invezgo;
|
|
18
20
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,cAAc,SAAS,CAAC;AAGxB,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,cAAc,SAAS,CAAC;AAGxB,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAE3C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,eAAe,OAAO,CAAC"}
|