@nomalism-com/types 0.46.6 → 0.46.9

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
@@ -1975,6 +1975,7 @@ var updateManyKeys = {
1975
1975
  provider_estimated_delivery_date: joi18.date().allow(null, "").optional(),
1976
1976
  provider_purchase_discount: joi18.number().positive().allow(0).max(100).optional(),
1977
1977
  consignacao: joi18.boolean().optional(),
1978
+ abater_na_fatura_final: joi18.boolean().optional(),
1978
1979
  cancelled: joi18.boolean().optional(),
1979
1980
  force_closed: joi18.boolean().optional()
1980
1981
  };
@@ -5238,7 +5239,8 @@ var Route105 = "dashboard";
5238
5239
  // src/modules/stock/dashboard/route.schema.ts
5239
5240
  var route_schema_exports98 = {};
5240
5241
  __export(route_schema_exports98, {
5241
- findByDateParams: () => findByDateParams
5242
+ findByDateParams: () => findByDateParams,
5243
+ findTodoCountsParams: () => findTodoCountsParams
5242
5244
  });
5243
5245
  import joi99 from "joi";
5244
5246
  var findByDateKeys = {
@@ -5246,6 +5248,11 @@ var findByDateKeys = {
5246
5248
  name: joi99.string().valid("dia", "mes", "ano").required()
5247
5249
  };
5248
5250
  var findByDateParams = joi99.object().keys(findByDateKeys).messages(messages);
5251
+ var findTodoCountsKeys = {
5252
+ from: joi99.date().required(),
5253
+ to: joi99.date().required()
5254
+ };
5255
+ var findTodoCountsParams = joi99.object().keys(findTodoCountsKeys).messages(messages);
5249
5256
 
5250
5257
  // src/modules/stock/chatRapidMessage/interface.ts
5251
5258
  var interface_exports54 = {};
package/dist/index.js CHANGED
@@ -1975,6 +1975,7 @@ var updateManyKeys = {
1975
1975
  provider_estimated_delivery_date: joi18.date().allow(null, "").optional(),
1976
1976
  provider_purchase_discount: joi18.number().positive().allow(0).max(100).optional(),
1977
1977
  consignacao: joi18.boolean().optional(),
1978
+ abater_na_fatura_final: joi18.boolean().optional(),
1978
1979
  cancelled: joi18.boolean().optional(),
1979
1980
  force_closed: joi18.boolean().optional()
1980
1981
  };
@@ -5238,7 +5239,8 @@ var Route105 = "dashboard";
5238
5239
  // src/modules/stock/dashboard/route.schema.ts
5239
5240
  var route_schema_exports98 = {};
5240
5241
  __export(route_schema_exports98, {
5241
- findByDateParams: () => findByDateParams
5242
+ findByDateParams: () => findByDateParams,
5243
+ findTodoCountsParams: () => findTodoCountsParams
5242
5244
  });
5243
5245
  import joi99 from "joi";
5244
5246
  var findByDateKeys = {
@@ -5246,6 +5248,11 @@ var findByDateKeys = {
5246
5248
  name: joi99.string().valid("dia", "mes", "ano").required()
5247
5249
  };
5248
5250
  var findByDateParams = joi99.object().keys(findByDateKeys).messages(messages);
5251
+ var findTodoCountsKeys = {
5252
+ from: joi99.date().required(),
5253
+ to: joi99.date().required()
5254
+ };
5255
+ var findTodoCountsParams = joi99.object().keys(findTodoCountsKeys).messages(messages);
5249
5256
 
5250
5257
  // src/modules/stock/chatRapidMessage/interface.ts
5251
5258
  var interface_exports54 = {};
@@ -26,7 +26,27 @@ export interface IDashboardProjectInfoResponse {
26
26
  d: number;
27
27
  c: number;
28
28
  }
29
+ export interface IFindDashboardTodoCounts {
30
+ from: Date;
31
+ to: Date;
32
+ }
33
+ export interface IDashboardTodoCountOperator {
34
+ store_operator_id: string;
35
+ name: string;
36
+ }
37
+ export interface IDashboardTodoCountPoint {
38
+ /** ISO timestamp of the snapshot (captured_at) */
39
+ t: string;
40
+ store_operator_id: string;
41
+ name: string;
42
+ count: number;
43
+ }
44
+ export interface IDashboardTodoCountsResponse {
45
+ operators: IDashboardTodoCountOperator[];
46
+ points: IDashboardTodoCountPoint[];
47
+ }
29
48
  export interface IRepository {
30
49
  salesByDate(selector: IFindDashboardSalesByDate): Promise<IDashboardSalesResponse>;
31
50
  projectInfo(): Promise<IDashboardProjectInfoResponse[]>;
51
+ todoCounts(selector: IFindDashboardTodoCounts): Promise<IDashboardTodoCountsResponse>;
32
52
  }
@@ -1,2 +1,3 @@
1
1
  import joi from 'joi';
2
2
  export declare const findByDateParams: joi.ObjectSchema<any>;
3
+ export declare const findTodoCountsParams: joi.ObjectSchema<any>;
@@ -112,6 +112,7 @@ export interface IUpdateManyRequest {
112
112
  provider_estimated_delivery_date?: Date | null;
113
113
  provider_purchase_discount?: number;
114
114
  consignacao?: boolean;
115
+ abater_na_fatura_final?: boolean;
115
116
  cancelled?: boolean;
116
117
  force_closed?: boolean;
117
118
  }
@@ -385,6 +385,7 @@ export type DocumentLine = {
385
385
  cativado: boolean;
386
386
  cativado_date: Date | null;
387
387
  consignacao: boolean;
388
+ abater_na_fatura_final: boolean;
388
389
  document_line_group_id: string;
389
390
  index: number;
390
391
  data: IData;
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.46.6",
4
+ "version": "0.46.9",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",
@@ -31,8 +31,8 @@
31
31
  "devDependencies": {
32
32
  "@swc/core": "^1.15.41",
33
33
  "@types/node": "^24.13.2",
34
- "@typescript-eslint/eslint-plugin": "^8.61.0",
35
- "@typescript-eslint/parser": "^8.61.0",
34
+ "@typescript-eslint/eslint-plugin": "^8.61.1",
35
+ "@typescript-eslint/parser": "^8.61.1",
36
36
  "eslint": "^9.39.4",
37
37
  "eslint-config-prettier": "^10.1.8",
38
38
  "eslint-import-resolver-typescript": "^4.4.5",