@nomalism-com/api 1.3.1 → 1.3.2
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 +373 -356
- package/dist/index.js +20 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -89,6 +89,7 @@ __export(main_exports, {
|
|
|
89
89
|
RefreshToken: () => refreshToken_exports,
|
|
90
90
|
ReturnReason: () => returnReason_exports,
|
|
91
91
|
ReturnToProvider: () => returnToProvider_exports,
|
|
92
|
+
SaftClass: () => saft_exports,
|
|
92
93
|
SavedEmPicking: () => savedEmPicking_exports,
|
|
93
94
|
SavedProviderProposal: () => savedProviderProposal_exports,
|
|
94
95
|
Schedule: () => schedule_exports,
|
|
@@ -4204,6 +4205,24 @@ var Repository121 = class {
|
|
|
4204
4205
|
}
|
|
4205
4206
|
};
|
|
4206
4207
|
|
|
4208
|
+
// src/modules/supply/saft.ts
|
|
4209
|
+
var saft_exports = {};
|
|
4210
|
+
__export(saft_exports, {
|
|
4211
|
+
default: () => Repository122
|
|
4212
|
+
});
|
|
4213
|
+
var Repository122 = class {
|
|
4214
|
+
constructor({ api, route }) {
|
|
4215
|
+
this.api = api;
|
|
4216
|
+
this.route = route;
|
|
4217
|
+
}
|
|
4218
|
+
async getUrl({ month, year }) {
|
|
4219
|
+
const qs = new URLSearchParams();
|
|
4220
|
+
qs.set("month", month.toString());
|
|
4221
|
+
qs.set("year", year.toString());
|
|
4222
|
+
return `${this.route}download?${qs.toString()}`;
|
|
4223
|
+
}
|
|
4224
|
+
};
|
|
4225
|
+
|
|
4207
4226
|
// src/main.ts
|
|
4208
4227
|
var API = class {
|
|
4209
4228
|
constructor({ processEnvironment, services, gatewayUrl, apikey, tokenBearer }) {
|
|
@@ -4403,6 +4422,7 @@ var API = class {
|
|
|
4403
4422
|
this.CurrentAccount = new Repository118(getModuleParams("stock", "current_account"));
|
|
4404
4423
|
this.Portal = new Repository120(getModuleParams("stock", "portal"));
|
|
4405
4424
|
this.GoogleSheetPool = new Repository121(getModuleParams("stock", "google_sheet_pool"));
|
|
4425
|
+
this.Saft = new Repository122(getModuleParams("stock", "saft"));
|
|
4406
4426
|
}
|
|
4407
4427
|
};
|
|
4408
4428
|
|
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": "1.3.
|
|
4
|
+
"version": "1.3.2",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|