bkper-js 2.31.2 → 2.32.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/dist/bkper.min.js +1 -1
- package/dist/bkper.min.js.map +2 -2
- package/lib/index.d.ts +6 -0
- package/lib/model/Book.js +8 -0
- package/package.json +2 -2
package/lib/index.d.ts
CHANGED
|
@@ -1585,6 +1585,12 @@ export declare class Book extends ResourceProperty<bkper.Book> {
|
|
|
1585
1585
|
* @returns The name of the owner of the Book
|
|
1586
1586
|
*/
|
|
1587
1587
|
getOwnerName(): string | undefined;
|
|
1588
|
+
/**
|
|
1589
|
+
* Gets the logo URL of the Book owner's custom domain, if any.
|
|
1590
|
+
*
|
|
1591
|
+
* @returns The logo URL, or undefined if the owner has no custom domain logo
|
|
1592
|
+
*/
|
|
1593
|
+
getLogoUrl(): string | undefined;
|
|
1588
1594
|
/**
|
|
1589
1595
|
* Gets the permission for the current user in this Book.
|
|
1590
1596
|
*
|
package/lib/model/Book.js
CHANGED
|
@@ -180,6 +180,14 @@ export class Book extends ResourceProperty {
|
|
|
180
180
|
getOwnerName() {
|
|
181
181
|
return this.payload.ownerName;
|
|
182
182
|
}
|
|
183
|
+
/**
|
|
184
|
+
* Gets the logo URL of the Book owner's custom domain, if any.
|
|
185
|
+
*
|
|
186
|
+
* @returns The logo URL, or undefined if the owner has no custom domain logo
|
|
187
|
+
*/
|
|
188
|
+
getLogoUrl() {
|
|
189
|
+
return this.payload.logoUrl;
|
|
190
|
+
}
|
|
183
191
|
/**
|
|
184
192
|
* Gets the permission for the current user in this Book.
|
|
185
193
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bkper-js",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.32.0",
|
|
4
4
|
"description": "Javascript client for Bkper REST API",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"module": "./lib/index.js",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"postversion": "git push --tags && yarn publish --new-version $npm_package_version && git push && echo \"Successfully released version $npm_package_version!\""
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@bkper/bkper-api-types": "^5.
|
|
42
|
+
"@bkper/bkper-api-types": "^5.39.1",
|
|
43
43
|
"big.js": "^6.0.3",
|
|
44
44
|
"dayjs": "^1.10.3",
|
|
45
45
|
"luxon": "^1.25.0",
|