bkper-js 2.12.0 → 2.12.1
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 +6 -0
- package/lib/model/Transaction.js +8 -0
- package/package.json +2 -1
package/lib/index.d.ts
CHANGED
|
@@ -3604,6 +3604,12 @@ export declare class Transaction extends Resource<bkper.Transaction> {
|
|
|
3604
3604
|
* @returns The date the transaction was created, formatted according to the date pattern of the [[Book]]
|
|
3605
3605
|
*/
|
|
3606
3606
|
getCreatedAtFormatted(): string;
|
|
3607
|
+
/**
|
|
3608
|
+
* Gets the username of the user who created the transaction.
|
|
3609
|
+
*
|
|
3610
|
+
* @returns The username of the user who created the transaction
|
|
3611
|
+
*/
|
|
3612
|
+
getCreatedBy(): string | undefined;
|
|
3607
3613
|
/**
|
|
3608
3614
|
* Gets the date when the transaction was last updated.
|
|
3609
3615
|
*
|
package/lib/model/Transaction.js
CHANGED
|
@@ -710,6 +710,14 @@ export class Transaction extends Resource {
|
|
|
710
710
|
getCreatedAtFormatted() {
|
|
711
711
|
return Utils.formatDate(this.getCreatedAt(), this.book.getDatePattern() + " HH:mm:ss", this.book.getTimeZone());
|
|
712
712
|
}
|
|
713
|
+
/**
|
|
714
|
+
* Gets the username of the user who created the transaction.
|
|
715
|
+
*
|
|
716
|
+
* @returns The username of the user who created the transaction
|
|
717
|
+
*/
|
|
718
|
+
getCreatedBy() {
|
|
719
|
+
return this.payload.createdBy;
|
|
720
|
+
}
|
|
713
721
|
/**
|
|
714
722
|
* Gets the date when the transaction was last updated.
|
|
715
723
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bkper-js",
|
|
3
|
-
"version": "2.12.
|
|
3
|
+
"version": "2.12.1",
|
|
4
4
|
"description": "Javascript client for Bkper REST API",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"module": "./lib/index.js",
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"scripts": {
|
|
18
18
|
"test": "env TS_NODE_COMPILER_OPTIONS='{\"rootDir\": \".\" }' mocha -r ts-node/register 'test/**/*.ts'",
|
|
19
19
|
"clean": "rm -rf ./lib & rm -rf ./node_modules & wait",
|
|
20
|
+
"prebuild": "bun install",
|
|
20
21
|
"build": "run-s build:*",
|
|
21
22
|
"build:clean": "gts clean",
|
|
22
23
|
"build:compile": "tsc",
|