bkper-js 2.37.0 → 2.39.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 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
  *
@@ -2850,6 +2856,12 @@ export declare class File extends ResourceProperty<bkper.File> {
2850
2856
  * @returns The file size in bytes
2851
2857
  */
2852
2858
  getSize(): number | undefined;
2859
+ /**
2860
+ * Gets the date the File was created.
2861
+ *
2862
+ * @returns The date the File was created
2863
+ */
2864
+ getCreatedAt(): Date | undefined;
2853
2865
  /**
2854
2866
  * Perform create new File.
2855
2867
  *
@@ -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/lib/model/File.js CHANGED
@@ -124,6 +124,14 @@ export class File extends ResourceProperty {
124
124
  getSize() {
125
125
  return this.payload.size;
126
126
  }
127
+ /**
128
+ * Gets the date the File was created.
129
+ *
130
+ * @returns The date the File was created
131
+ */
132
+ getCreatedAt() {
133
+ return this.payload.createdAt ? new Date(new Number(this.payload.createdAt).valueOf()) : undefined;
134
+ }
127
135
  /**
128
136
  * Perform create new File.
129
137
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkper-js",
3
- "version": "2.37.0",
3
+ "version": "2.39.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.0",
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",