bkper-js 2.38.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/dist/bkper.min.js +1 -1
- package/dist/bkper.min.js.map +2 -2
- package/lib/index.d.ts +6 -0
- package/lib/model/File.js +8 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -2856,6 +2856,12 @@ export declare class File extends ResourceProperty<bkper.File> {
|
|
|
2856
2856
|
* @returns The file size in bytes
|
|
2857
2857
|
*/
|
|
2858
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;
|
|
2859
2865
|
/**
|
|
2860
2866
|
* Perform create new File.
|
|
2861
2867
|
*
|
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
|
*
|