@nomalism-com/types 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.cjs +2 -1
- package/dist/index.js +2 -1
- package/dist/modules/stock/dashboard/interface.d.ts +18 -11
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -4451,7 +4451,8 @@ var senEmailBodyKeys = {
|
|
|
4451
4451
|
id: joi80.string().required(),
|
|
4452
4452
|
filename: joi80.string().required()
|
|
4453
4453
|
})
|
|
4454
|
-
).optional()
|
|
4454
|
+
).optional()
|
|
4455
|
+
// REMOVED .allow([]) here
|
|
4455
4456
|
}),
|
|
4456
4457
|
address: joi80.string().optional().allow(""),
|
|
4457
4458
|
email: joi80.string().trim(true).lowercase().email({ tlds: { allow: false } })
|
package/dist/index.js
CHANGED
|
@@ -4451,7 +4451,8 @@ var senEmailBodyKeys = {
|
|
|
4451
4451
|
id: joi80.string().required(),
|
|
4452
4452
|
filename: joi80.string().required()
|
|
4453
4453
|
})
|
|
4454
|
-
).optional()
|
|
4454
|
+
).optional()
|
|
4455
|
+
// REMOVED .allow([]) here
|
|
4455
4456
|
}),
|
|
4456
4457
|
address: joi80.string().optional().allow(""),
|
|
4457
4458
|
email: joi80.string().trim(true).lowercase().email({ tlds: { allow: false } })
|
|
@@ -1,26 +1,33 @@
|
|
|
1
1
|
export declare const Route = "dashboard";
|
|
2
2
|
export declare const UpperName = "Dashboard";
|
|
3
3
|
export declare const LowerName: string;
|
|
4
|
-
export type
|
|
5
|
-
export interface
|
|
4
|
+
export type IDashboardSalesNames = 'dia' | 'mes' | 'ano';
|
|
5
|
+
export interface IDashboardSalesRowValue {
|
|
6
6
|
sheets: number;
|
|
7
7
|
outros: number;
|
|
8
8
|
}
|
|
9
|
-
export interface
|
|
9
|
+
export interface IDashboardSalesRow {
|
|
10
10
|
chave: number;
|
|
11
|
-
faturaRecibo:
|
|
12
|
-
fatura:
|
|
13
|
-
adiantamento:
|
|
11
|
+
faturaRecibo: IDashboardSalesRowValue;
|
|
12
|
+
fatura: IDashboardSalesRowValue;
|
|
13
|
+
adiantamento: IDashboardSalesRowValue;
|
|
14
14
|
}
|
|
15
|
-
export interface
|
|
15
|
+
export interface IDashboardSalesResponse {
|
|
16
16
|
id: number;
|
|
17
17
|
name: string;
|
|
18
|
-
data:
|
|
18
|
+
data: IDashboardSalesRow[];
|
|
19
19
|
}
|
|
20
|
-
export interface
|
|
20
|
+
export interface IFindDashboardSalesByDate {
|
|
21
21
|
date: Date;
|
|
22
|
-
name:
|
|
22
|
+
name: IDashboardSalesNames;
|
|
23
|
+
}
|
|
24
|
+
export interface IDashboardProjectInfoResponse {
|
|
25
|
+
y: number;
|
|
26
|
+
m: number;
|
|
27
|
+
d: number;
|
|
28
|
+
c: number;
|
|
23
29
|
}
|
|
24
30
|
export interface IRepository {
|
|
25
|
-
|
|
31
|
+
salesByDate(selector: IFindDashboardSalesByDate): Promise<IDashboardSalesResponse>;
|
|
32
|
+
projectInfo(): Promise<IDashboardProjectInfoResponse[]>;
|
|
26
33
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nomalism-com/types",
|
|
3
3
|
"description": "A nomalism package with all necessary types and validations for developing APIs",
|
|
4
|
-
"version": "0.40.
|
|
4
|
+
"version": "0.40.49",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@swc/core": "^1.15.3",
|
|
33
|
-
"@types/node": "^24.10.
|
|
33
|
+
"@types/node": "^24.10.3",
|
|
34
34
|
"@typescript-eslint/eslint-plugin": "^8.49.0",
|
|
35
35
|
"@typescript-eslint/parser": "^8.49.0",
|
|
36
36
|
"eslint": "^9.39.1",
|