@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 CHANGED
@@ -4451,7 +4451,8 @@ var senEmailBodyKeys = {
4451
4451
  id: joi80.string().required(),
4452
4452
  filename: joi80.string().required()
4453
4453
  })
4454
- ).optional().allow([])
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().allow([])
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 IDashboardNames = 'dia' | 'mes' | 'ano';
5
- export interface IGroupedValue {
4
+ export type IDashboardSalesNames = 'dia' | 'mes' | 'ano';
5
+ export interface IDashboardSalesRowValue {
6
6
  sheets: number;
7
7
  outros: number;
8
8
  }
9
- export interface IData {
9
+ export interface IDashboardSalesRow {
10
10
  chave: number;
11
- faturaRecibo: IGroupedValue;
12
- fatura: IGroupedValue;
13
- adiantamento: IGroupedValue;
11
+ faturaRecibo: IDashboardSalesRowValue;
12
+ fatura: IDashboardSalesRowValue;
13
+ adiantamento: IDashboardSalesRowValue;
14
14
  }
15
- export interface IDashboardResponse {
15
+ export interface IDashboardSalesResponse {
16
16
  id: number;
17
17
  name: string;
18
- data: IData[];
18
+ data: IDashboardSalesRow[];
19
19
  }
20
- export interface IFindDashboardByDate {
20
+ export interface IFindDashboardSalesByDate {
21
21
  date: Date;
22
- name: IDashboardNames;
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
- findByDate(selector: IFindDashboardByDate): Promise<IDashboardResponse>;
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.47",
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.2",
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",