bkper-js 1.46.1 → 1.47.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 +9 -1
- package/lib/model/Transaction.js +13 -1
- package/package.json +2 -2
package/lib/index.d.ts
CHANGED
|
@@ -2763,9 +2763,17 @@ export declare class Transaction {
|
|
|
2763
2763
|
*/
|
|
2764
2764
|
getCreatedAt(): Date;
|
|
2765
2765
|
/**
|
|
2766
|
-
* @returns The date the transaction was created, formatted according to the date pattern of [[Book]].
|
|
2766
|
+
* @returns The date the transaction was created, formatted according to the date pattern of the [[Book]].
|
|
2767
2767
|
*/
|
|
2768
2768
|
getCreatedAtFormatted(): string;
|
|
2769
|
+
/**
|
|
2770
|
+
* @returns The date the transaction was last updated.
|
|
2771
|
+
*/
|
|
2772
|
+
getUpdatedAt(): Date;
|
|
2773
|
+
/**
|
|
2774
|
+
* @returns The date the transaction was last updated, formatted according to the date pattern of the [[Book]].
|
|
2775
|
+
*/
|
|
2776
|
+
getUpdatedAtFormatted(): string;
|
|
2769
2777
|
|
|
2770
2778
|
|
|
2771
2779
|
/**
|
package/lib/model/Transaction.js
CHANGED
|
@@ -617,11 +617,23 @@ export class Transaction {
|
|
|
617
617
|
return new Date(new Number(this.payload.createdAt).valueOf());
|
|
618
618
|
}
|
|
619
619
|
/**
|
|
620
|
-
* @returns The date the transaction was created, formatted according to the date pattern of [[Book]].
|
|
620
|
+
* @returns The date the transaction was created, formatted according to the date pattern of the [[Book]].
|
|
621
621
|
*/
|
|
622
622
|
getCreatedAtFormatted() {
|
|
623
623
|
return Utils.formatDate(this.getCreatedAt(), this.book.getTimeZone(), this.book.getDatePattern() + " HH:mm:ss");
|
|
624
624
|
}
|
|
625
|
+
/**
|
|
626
|
+
* @returns The date the transaction was last updated.
|
|
627
|
+
*/
|
|
628
|
+
getUpdatedAt() {
|
|
629
|
+
return new Date(new Number(this.payload.updatedAt).valueOf());
|
|
630
|
+
}
|
|
631
|
+
/**
|
|
632
|
+
* @returns The date the transaction was last updated, formatted according to the date pattern of the [[Book]].
|
|
633
|
+
*/
|
|
634
|
+
getUpdatedAtFormatted() {
|
|
635
|
+
return Utils.formatDate(this.getUpdatedAt(), this.book.getTimeZone(), this.book.getDatePattern() + " HH:mm:ss");
|
|
636
|
+
}
|
|
625
637
|
//EVOLVED BALANCES
|
|
626
638
|
/** @internal */
|
|
627
639
|
getCaEvolvedBalance_() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bkper-js",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.47.0",
|
|
4
4
|
"description": "Javascript client for Bkper REST API",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"module": "./lib/index.js",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"postversion": "git push --tags && yarn publish --new-version $npm_package_version && git push && echo \"Successfully released version $npm_package_version!\""
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@bkper/bkper-api-types": "^5.
|
|
37
|
+
"@bkper/bkper-api-types": "^5.22.0"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@google-cloud/local-auth": "^3.0.1",
|