bkper-js 2.10.1 → 2.11.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/lib/index.d.ts +20 -0
- package/lib/model/File.js +8 -0
- package/lib/model/Integration.js +18 -0
- package/package.json +2 -2
package/lib/index.d.ts
CHANGED
|
@@ -2451,6 +2451,12 @@ export declare enum EventType {
|
|
|
2451
2451
|
export declare class File extends Resource<bkper.File> {
|
|
2452
2452
|
|
|
2453
2453
|
constructor(book: Book, payload?: bkper.File);
|
|
2454
|
+
/**
|
|
2455
|
+
* Gets the Book this File belongs to.
|
|
2456
|
+
*
|
|
2457
|
+
* @returns The Book instance that owns this File
|
|
2458
|
+
*/
|
|
2459
|
+
getBook(): Book;
|
|
2454
2460
|
|
|
2455
2461
|
/**
|
|
2456
2462
|
* Gets the File id.
|
|
@@ -2862,8 +2868,22 @@ export declare class Integration extends Resource<bkper.Integration> {
|
|
|
2862
2868
|
* Gets the logo of the Integration.
|
|
2863
2869
|
*
|
|
2864
2870
|
* @returns The Integration's logo
|
|
2871
|
+
*
|
|
2872
|
+
* @deprecated Use getLogoUrl instead.
|
|
2865
2873
|
*/
|
|
2866
2874
|
getLogo(): string | undefined;
|
|
2875
|
+
/**
|
|
2876
|
+
* Gets the logo url of this Integration.
|
|
2877
|
+
*
|
|
2878
|
+
* @returns The logo url of this Integration
|
|
2879
|
+
*/
|
|
2880
|
+
getLogoUrl(): string | undefined;
|
|
2881
|
+
/**
|
|
2882
|
+
* Gets the logo url of this Integration in dark mode.
|
|
2883
|
+
*
|
|
2884
|
+
* @returns The logo url of this Integration in dark mode
|
|
2885
|
+
*/
|
|
2886
|
+
getLogoUrlDark(): string | undefined;
|
|
2867
2887
|
/**
|
|
2868
2888
|
* Gets the date when the Integration was added.
|
|
2869
2889
|
*
|
package/lib/model/File.js
CHANGED
|
@@ -22,6 +22,14 @@ export class File extends Resource {
|
|
|
22
22
|
super(payload || { createdAt: `${Date.now()}` });
|
|
23
23
|
this.book = book;
|
|
24
24
|
}
|
|
25
|
+
/**
|
|
26
|
+
* Gets the Book this File belongs to.
|
|
27
|
+
*
|
|
28
|
+
* @returns The Book instance that owns this File
|
|
29
|
+
*/
|
|
30
|
+
getBook() {
|
|
31
|
+
return this.book;
|
|
32
|
+
}
|
|
25
33
|
/** @internal */
|
|
26
34
|
getConfig() {
|
|
27
35
|
return this.book.getConfig();
|
package/lib/model/Integration.js
CHANGED
|
@@ -68,10 +68,28 @@ export class Integration extends Resource {
|
|
|
68
68
|
* Gets the logo of the Integration.
|
|
69
69
|
*
|
|
70
70
|
* @returns The Integration's logo
|
|
71
|
+
*
|
|
72
|
+
* @deprecated Use getLogoUrl instead.
|
|
71
73
|
*/
|
|
72
74
|
getLogo() {
|
|
73
75
|
return this.payload.logo;
|
|
74
76
|
}
|
|
77
|
+
/**
|
|
78
|
+
* Gets the logo url of this Integration.
|
|
79
|
+
*
|
|
80
|
+
* @returns The logo url of this Integration
|
|
81
|
+
*/
|
|
82
|
+
getLogoUrl() {
|
|
83
|
+
return this.payload.logo;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Gets the logo url of this Integration in dark mode.
|
|
87
|
+
*
|
|
88
|
+
* @returns The logo url of this Integration in dark mode
|
|
89
|
+
*/
|
|
90
|
+
getLogoUrlDark() {
|
|
91
|
+
return this.payload.logoDark;
|
|
92
|
+
}
|
|
75
93
|
/**
|
|
76
94
|
* Gets the date when the Integration was added.
|
|
77
95
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bkper-js",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.11.0",
|
|
4
4
|
"description": "Javascript client for Bkper REST API",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"module": "./lib/index.js",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"postversion": "git push --tags && yarn publish --new-version $npm_package_version && git push && echo \"Successfully released version $npm_package_version!\""
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@bkper/bkper-api-types": "^5.
|
|
37
|
+
"@bkper/bkper-api-types": "^5.29.0"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"big.js": "^6.0.3",
|