@nomalism-com/api 0.40.47 → 0.40.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 +367 -357
- package/dist/index.js +27 -7
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -10,6 +10,7 @@ var __export = (target, all) => {
|
|
|
10
10
|
var main_exports = {};
|
|
11
11
|
__export(main_exports, {
|
|
12
12
|
API: () => API,
|
|
13
|
+
AccountCodeClass: () => accountCode_exports,
|
|
13
14
|
AdminPanelClass: () => adminPanel_exports,
|
|
14
15
|
BankData: () => bankData_exports,
|
|
15
16
|
Channel: () => channel_exports,
|
|
@@ -43,7 +44,6 @@ __export(main_exports, {
|
|
|
43
44
|
File: () => file_exports,
|
|
44
45
|
GmailsClass: () => gmails_exports,
|
|
45
46
|
GoogleFilePermission: () => googleFilePermission_exports,
|
|
46
|
-
GoogleSheetPoolClass: () => googleSheetPool_exports,
|
|
47
47
|
GoogleSheets: () => googleSheets_exports,
|
|
48
48
|
GroupPermissions: () => groupPermission_exports,
|
|
49
49
|
Inventario: () => inventario_exports,
|
|
@@ -3792,8 +3792,12 @@ var Repository106 = class {
|
|
|
3792
3792
|
this.route = route;
|
|
3793
3793
|
this.publicRoute = publicRoute;
|
|
3794
3794
|
}
|
|
3795
|
-
async
|
|
3796
|
-
const response = await this.api.get(`${this.route}
|
|
3795
|
+
async salesByDate(params) {
|
|
3796
|
+
const response = await this.api.get(`${this.route}sales`, { params });
|
|
3797
|
+
return response.data;
|
|
3798
|
+
}
|
|
3799
|
+
async projectInfo() {
|
|
3800
|
+
const response = await this.api.get(`${this.route}project_info`);
|
|
3797
3801
|
return response.data;
|
|
3798
3802
|
}
|
|
3799
3803
|
};
|
|
@@ -4193,10 +4197,6 @@ var Repository120 = class {
|
|
|
4193
4197
|
};
|
|
4194
4198
|
|
|
4195
4199
|
// src/modules/supply/googleSheetPool.ts
|
|
4196
|
-
var googleSheetPool_exports = {};
|
|
4197
|
-
__export(googleSheetPool_exports, {
|
|
4198
|
-
default: () => Repository121
|
|
4199
|
-
});
|
|
4200
4200
|
var Repository121 = class {
|
|
4201
4201
|
constructor({ api, route, publicRoute }) {
|
|
4202
4202
|
this.api = api;
|
|
@@ -4209,6 +4209,25 @@ var Repository121 = class {
|
|
|
4209
4209
|
}
|
|
4210
4210
|
};
|
|
4211
4211
|
|
|
4212
|
+
// src/modules/stock/accountCode.ts
|
|
4213
|
+
var accountCode_exports = {};
|
|
4214
|
+
__export(accountCode_exports, {
|
|
4215
|
+
default: () => Repository122
|
|
4216
|
+
});
|
|
4217
|
+
var Repository122 = class {
|
|
4218
|
+
constructor({ api, route, publicRoute }) {
|
|
4219
|
+
this.api = api;
|
|
4220
|
+
this.route = route;
|
|
4221
|
+
this.publicRoute = publicRoute;
|
|
4222
|
+
}
|
|
4223
|
+
async findByCode({
|
|
4224
|
+
code
|
|
4225
|
+
}) {
|
|
4226
|
+
const response = await this.api.get(`${this.route}${code}`);
|
|
4227
|
+
return response.data;
|
|
4228
|
+
}
|
|
4229
|
+
};
|
|
4230
|
+
|
|
4212
4231
|
// src/main.ts
|
|
4213
4232
|
var API = class {
|
|
4214
4233
|
constructor({ processEnvironment, services, gatewayUrl, apikey, tokenBearer }) {
|
|
@@ -4408,6 +4427,7 @@ var API = class {
|
|
|
4408
4427
|
this.CurrentAccount = new Repository118(getModuleParams("stock", "current_account"));
|
|
4409
4428
|
this.Portal = new Repository120(getModuleParams("stock", "portal"));
|
|
4410
4429
|
this.GoogleSheetPool = new Repository121(getModuleParams("stock", "google_sheet_pool"));
|
|
4430
|
+
this.AccountCode = new Repository122(getModuleParams("stock", "account_code"));
|
|
4411
4431
|
}
|
|
4412
4432
|
};
|
|
4413
4433
|
|
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.40.
|
|
4
|
+
"version": "0.40.49",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|
|
@@ -23,15 +23,15 @@
|
|
|
23
23
|
"prepack": "npm run lint && npm run build"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@nomalism-com/types": "^0.40.
|
|
26
|
+
"@nomalism-com/types": "^0.40.50",
|
|
27
27
|
"axios": "^1.13.2"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@swc/core": "^1.15.
|
|
31
|
-
"@types/node": "^24.10.
|
|
30
|
+
"@swc/core": "^1.15.4",
|
|
31
|
+
"@types/node": "^24.10.4",
|
|
32
32
|
"@typescript-eslint/eslint-plugin": "^8.49.0",
|
|
33
33
|
"@typescript-eslint/parser": "^8.49.0",
|
|
34
|
-
"eslint": "^9.39.
|
|
34
|
+
"eslint": "^9.39.2",
|
|
35
35
|
"eslint-config-prettier": "^10.1.8",
|
|
36
36
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
37
37
|
"eslint-plugin-prettier": "^5.5.4",
|