bkper-js 1.13.3 → 1.14.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 CHANGED
@@ -1895,12 +1895,16 @@ export declare class Transaction {
1895
1895
  */
1896
1896
  post(): Promise<Transaction>;
1897
1897
  /**
1898
- * Remove the transaction, sending to trash.
1898
+ * Trash the transaction.
1899
1899
  */
1900
- remove(): Promise<Transaction>;
1900
+ trash(): Promise<Transaction>;
1901
1901
  /**
1902
- * Restore the transaction from trash.
1902
+ * Untrash the transaction.
1903
1903
  */
1904
+ untrash(): Promise<Transaction>;
1905
+ /** @deprecated */
1906
+ remove(): Promise<Transaction>;
1907
+ /** @deprecated */
1904
1908
  restore(): Promise<Transaction>;
1905
1909
  }
1906
1910
 
@@ -677,9 +677,9 @@ export class Transaction {
677
677
  });
678
678
  }
679
679
  /**
680
- * Remove the transaction, sending to trash.
680
+ * Trash the transaction.
681
681
  */
682
- remove() {
682
+ trash() {
683
683
  return __awaiter(this, void 0, void 0, function* () {
684
684
  var _a;
685
685
  let operation = yield TransactionService.trashTransaction(this.book.getId(), this.payload);
@@ -688,9 +688,9 @@ export class Transaction {
688
688
  });
689
689
  }
690
690
  /**
691
- * Restore the transaction from trash.
691
+ * Untrash the transaction.
692
692
  */
693
- restore() {
693
+ untrash() {
694
694
  return __awaiter(this, void 0, void 0, function* () {
695
695
  var _a;
696
696
  let operation = yield TransactionService.restoreTransaction(this.book.getId(), this.payload);
@@ -698,5 +698,17 @@ export class Transaction {
698
698
  return this;
699
699
  });
700
700
  }
701
+ /** @deprecated */
702
+ remove() {
703
+ return __awaiter(this, void 0, void 0, function* () {
704
+ return this.trash();
705
+ });
706
+ }
707
+ /** @deprecated */
708
+ restore() {
709
+ return __awaiter(this, void 0, void 0, function* () {
710
+ return this.untrash();
711
+ });
712
+ }
701
713
  }
702
714
  //# sourceMappingURL=Transaction.js.map
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.47.7"
8
+ "packageVersion": "7.47.11"
9
9
  }
10
10
  ]
11
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkper-js",
3
- "version": "1.13.3",
3
+ "version": "1.14.1",
4
4
  "description": "Javascript client for Bkper REST API",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",
@@ -33,6 +33,9 @@
33
33
  "preversion": "bun run build",
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
+ "peerDependencies": {
37
+ "@bkper/bkper-api-types": "^5.10.0"
38
+ },
36
39
  "dependencies": {
37
40
  "@google-cloud/local-auth": "^3.0.1",
38
41
  "axios": "^1.7.7",
@@ -41,7 +44,6 @@
41
44
  "luxon": "^1.25.0"
42
45
  },
43
46
  "devDependencies": {
44
- "@bkper/bkper-api-types": "^5.10.0",
45
47
  "@microsoft/api-extractor": "^7.12.1",
46
48
  "@types/big.js": "^6.0.2",
47
49
  "@types/chai": "^4.2.14",