@nomalism-com/api 0.39.47 → 0.39.49

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.ts CHANGED
@@ -948,7 +948,7 @@ declare class Repository$V implements Nomalism$1.Payment.IRepository {
948
948
  exportPayments(body: Nomalism$1.Payment.IExportPaymentsRequest[]): Promise<void>;
949
949
  getExportCurrentAccountUrl({ owner_id, start_date, end_date, output, token, }: Nomalism$1.Payment.IExportCurrentAccountRequest): string;
950
950
  findCurrentAccountPaginated(params: Nomalism$1.Payment.IFindCurrentAccountPaginatedRequest): Promise<Nomalism$1.shared.IPaginationResponse<Nomalism$1.Payment.IFindCurrentAccountByOwnerIdResponse>>;
951
- createBatchPdf(selector: Nomalism$1.Payment.ICreateBatchPdfRequest): Promise<string>;
951
+ getBatchPdfUrl(month: number, year: number, token: string): string;
952
952
  }
953
953
 
954
954
  declare namespace payment {
package/dist/index.js CHANGED
@@ -2335,11 +2335,10 @@ var Repository58 = class {
2335
2335
  });
2336
2336
  return response.data;
2337
2337
  }
2338
- async createBatchPdf(selector) {
2339
- const response = await this.api.get(
2340
- `${this.route}create_batch_pdf${selector.month}/${selector.year}`
2341
- );
2342
- return response.data;
2338
+ getBatchPdfUrl(month, year, token) {
2339
+ const qs = new URLSearchParams();
2340
+ qs.set("token", token);
2341
+ return `${this.route}create_batch_pdf/${month}/${year}?${qs.toString()}`;
2343
2342
  }
2344
2343
  };
2345
2344
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nomalism-com/api",
3
3
  "description": "A nomalism API package for performing HTTP requests on API endpoints",
4
- "version": "0.39.47",
4
+ "version": "0.39.49",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",
@@ -23,7 +23,7 @@
23
23
  "prepack": "npm run lint && npm run build"
24
24
  },
25
25
  "dependencies": {
26
- "@nomalism-com/types": "^0.39.48",
26
+ "@nomalism-com/types": "^0.39.49",
27
27
  "axios": "^1.9.0"
28
28
  },
29
29
  "devDependencies": {