@nomalism-com/api 0.39.54 → 0.39.55
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.js +6 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2338,13 +2338,16 @@ var Repository58 = class {
|
|
|
2338
2338
|
getBatchPdfUrl(opts) {
|
|
2339
2339
|
const qs = new URLSearchParams();
|
|
2340
2340
|
qs.set("token", opts.token);
|
|
2341
|
+
if (opts.ids?.length) {
|
|
2342
|
+
qs.set("ids", opts.ids.join(","));
|
|
2343
|
+
return `${this.route}create_batch_pdf?${qs.toString()}`;
|
|
2344
|
+
}
|
|
2341
2345
|
if (opts.month && opts.year) {
|
|
2342
2346
|
qs.set("month", String(opts.month));
|
|
2343
2347
|
qs.set("year", String(opts.year));
|
|
2344
|
-
|
|
2345
|
-
qs.set("ids", opts.ids.join(","));
|
|
2348
|
+
return `${this.route}create_batch_pdf?${qs.toString()}`;
|
|
2346
2349
|
}
|
|
2347
|
-
|
|
2350
|
+
throw new Error("Precisas de passar ids OU month/year");
|
|
2348
2351
|
}
|
|
2349
2352
|
};
|
|
2350
2353
|
|
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.
|
|
4
|
+
"version": "0.39.55",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|