@nomalism-com/api 0.39.53 → 0.39.54

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,12 @@ 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
- getBatchPdfUrl(month: number, year: number, token: string): string;
951
+ getBatchPdfUrl(opts: {
952
+ month?: number;
953
+ year?: number;
954
+ ids?: string[];
955
+ token: string;
956
+ }): string;
952
957
  }
953
958
 
954
959
  declare namespace payment {
package/dist/index.js CHANGED
@@ -2335,10 +2335,16 @@ var Repository58 = class {
2335
2335
  });
2336
2336
  return response.data;
2337
2337
  }
2338
- getBatchPdfUrl(month, year, token) {
2338
+ getBatchPdfUrl(opts) {
2339
2339
  const qs = new URLSearchParams();
2340
- qs.set("token", token);
2341
- return `${this.route}create_batch_pdf/${month}/${year}?${qs.toString()}`;
2340
+ qs.set("token", opts.token);
2341
+ if (opts.month && opts.year) {
2342
+ qs.set("month", String(opts.month));
2343
+ qs.set("year", String(opts.year));
2344
+ } else if (opts.ids?.length) {
2345
+ qs.set("ids", opts.ids.join(","));
2346
+ }
2347
+ return `${this.route}create_batch_pdf?${qs.toString()}`;
2342
2348
  }
2343
2349
  };
2344
2350
 
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.53",
4
+ "version": "0.39.54",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",