bkper-js 2.37.0 → 2.38.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/Collaborator.js +8 -0
- package/package.json +2 -2
package/lib/index.d.ts
CHANGED
|
@@ -2328,6 +2328,12 @@ export declare class Collaborator extends Resource<bkper.Collaborator> {
|
|
|
2328
2328
|
* @returns This Collaborator, for chaining
|
|
2329
2329
|
*/
|
|
2330
2330
|
setPermission(permission: Permission): Collaborator;
|
|
2331
|
+
/**
|
|
2332
|
+
* Gets the public avatar url of the Collaborator.
|
|
2333
|
+
*
|
|
2334
|
+
* @returns The Collaborator's public avatar url
|
|
2335
|
+
*/
|
|
2336
|
+
getAvatarUrl(): string | undefined;
|
|
2331
2337
|
/**
|
|
2332
2338
|
* Performs create new Collaborator.
|
|
2333
2339
|
*
|
|
@@ -71,6 +71,14 @@ export class Collaborator extends Resource {
|
|
|
71
71
|
this.payload.permission = permission;
|
|
72
72
|
return this;
|
|
73
73
|
}
|
|
74
|
+
/**
|
|
75
|
+
* Gets the public avatar url of the Collaborator.
|
|
76
|
+
*
|
|
77
|
+
* @returns The Collaborator's public avatar url
|
|
78
|
+
*/
|
|
79
|
+
getAvatarUrl() {
|
|
80
|
+
return this.payload.avatarUrl;
|
|
81
|
+
}
|
|
74
82
|
/**
|
|
75
83
|
* Performs create new Collaborator.
|
|
76
84
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bkper-js",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.38.0",
|
|
4
4
|
"description": "Javascript client for Bkper REST API",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"module": "./lib/index.js",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"release:major": "npm version major -m \"chore(release): v%s\""
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@bkper/bkper-api-types": "^5.
|
|
41
|
+
"@bkper/bkper-api-types": "^5.42.0",
|
|
42
42
|
"big.js": "^6.0.3",
|
|
43
43
|
"dayjs": "^1.10.3",
|
|
44
44
|
"luxon": "^1.25.0",
|