@panoptic-it-solutions/quickbooks-client 0.3.0 → 0.3.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/dist/index.d.mts CHANGED
@@ -553,6 +553,9 @@ declare class QuickBooksClient {
553
553
  * Get company info
554
554
  */
555
555
  getCompanyInfo(): Promise<CompanyInfo>;
556
+ updateCompanyInfo(companyInfo: Partial<CompanyInfo> & {
557
+ SyncToken: string;
558
+ }): Promise<CompanyInfo>;
556
559
  /**
557
560
  * Check if connected to QuickBooks
558
561
  */
package/dist/index.d.ts CHANGED
@@ -553,6 +553,9 @@ declare class QuickBooksClient {
553
553
  * Get company info
554
554
  */
555
555
  getCompanyInfo(): Promise<CompanyInfo>;
556
+ updateCompanyInfo(companyInfo: Partial<CompanyInfo> & {
557
+ SyncToken: string;
558
+ }): Promise<CompanyInfo>;
556
559
  /**
557
560
  * Check if connected to QuickBooks
558
561
  */
package/dist/index.js CHANGED
@@ -950,6 +950,15 @@ var QuickBooksClient = class {
950
950
  );
951
951
  return response.CompanyInfo;
952
952
  }
953
+ async updateCompanyInfo(companyInfo) {
954
+ const tokens = await this.getValidTokens();
955
+ const response = await this.request(
956
+ "POST",
957
+ `/companyinfo`,
958
+ { ...companyInfo, sparse: true }
959
+ );
960
+ return response.CompanyInfo;
961
+ }
953
962
  /**
954
963
  * Check if connected to QuickBooks
955
964
  */
package/dist/index.mjs CHANGED
@@ -914,6 +914,15 @@ var QuickBooksClient = class {
914
914
  );
915
915
  return response.CompanyInfo;
916
916
  }
917
+ async updateCompanyInfo(companyInfo) {
918
+ const tokens = await this.getValidTokens();
919
+ const response = await this.request(
920
+ "POST",
921
+ `/companyinfo`,
922
+ { ...companyInfo, sparse: true }
923
+ );
924
+ return response.CompanyInfo;
925
+ }
917
926
  /**
918
927
  * Check if connected to QuickBooks
919
928
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panoptic-it-solutions/quickbooks-client",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "QuickBooks Online API client with OAuth 2.0, rate limiting, and typed entities",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",