@nomalism-com/api 0.40.47 → 0.40.48
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 +2 -1
- package/dist/index.js +6 -2
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1674,7 +1674,8 @@ declare class Repository$f implements Nomalism$1.Dashboard.IRepository {
|
|
|
1674
1674
|
publicRoute: string;
|
|
1675
1675
|
private api;
|
|
1676
1676
|
constructor({ api, route, publicRoute }: IModuleConstructor);
|
|
1677
|
-
|
|
1677
|
+
salesByDate(params: Nomalism$1.Dashboard.IFindDashboardSalesByDate): Promise<Nomalism$1.Dashboard.IDashboardSalesResponse>;
|
|
1678
|
+
projectInfo(): Promise<Nomalism$1.Dashboard.IDashboardProjectInfoResponse[]>;
|
|
1678
1679
|
}
|
|
1679
1680
|
|
|
1680
1681
|
declare namespace dashboard {
|
package/dist/index.js
CHANGED
|
@@ -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
|
};
|
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.48",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|
|
@@ -23,12 +23,12 @@
|
|
|
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.49",
|
|
27
27
|
"axios": "^1.13.2"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@swc/core": "^1.15.3",
|
|
31
|
-
"@types/node": "^24.10.
|
|
31
|
+
"@types/node": "^24.10.3",
|
|
32
32
|
"@typescript-eslint/eslint-plugin": "^8.49.0",
|
|
33
33
|
"@typescript-eslint/parser": "^8.49.0",
|
|
34
34
|
"eslint": "^9.39.1",
|