@nomalism-com/types 0.46.6 → 0.46.7
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
|
@@ -5238,7 +5238,8 @@ var Route105 = "dashboard";
|
|
|
5238
5238
|
// src/modules/stock/dashboard/route.schema.ts
|
|
5239
5239
|
var route_schema_exports98 = {};
|
|
5240
5240
|
__export(route_schema_exports98, {
|
|
5241
|
-
findByDateParams: () => findByDateParams
|
|
5241
|
+
findByDateParams: () => findByDateParams,
|
|
5242
|
+
findTodoCountsParams: () => findTodoCountsParams
|
|
5242
5243
|
});
|
|
5243
5244
|
import joi99 from "joi";
|
|
5244
5245
|
var findByDateKeys = {
|
|
@@ -5246,6 +5247,11 @@ var findByDateKeys = {
|
|
|
5246
5247
|
name: joi99.string().valid("dia", "mes", "ano").required()
|
|
5247
5248
|
};
|
|
5248
5249
|
var findByDateParams = joi99.object().keys(findByDateKeys).messages(messages);
|
|
5250
|
+
var findTodoCountsKeys = {
|
|
5251
|
+
from: joi99.date().required(),
|
|
5252
|
+
to: joi99.date().required()
|
|
5253
|
+
};
|
|
5254
|
+
var findTodoCountsParams = joi99.object().keys(findTodoCountsKeys).messages(messages);
|
|
5249
5255
|
|
|
5250
5256
|
// src/modules/stock/chatRapidMessage/interface.ts
|
|
5251
5257
|
var interface_exports54 = {};
|
package/dist/index.js
CHANGED
|
@@ -5238,7 +5238,8 @@ var Route105 = "dashboard";
|
|
|
5238
5238
|
// src/modules/stock/dashboard/route.schema.ts
|
|
5239
5239
|
var route_schema_exports98 = {};
|
|
5240
5240
|
__export(route_schema_exports98, {
|
|
5241
|
-
findByDateParams: () => findByDateParams
|
|
5241
|
+
findByDateParams: () => findByDateParams,
|
|
5242
|
+
findTodoCountsParams: () => findTodoCountsParams
|
|
5242
5243
|
});
|
|
5243
5244
|
import joi99 from "joi";
|
|
5244
5245
|
var findByDateKeys = {
|
|
@@ -5246,6 +5247,11 @@ var findByDateKeys = {
|
|
|
5246
5247
|
name: joi99.string().valid("dia", "mes", "ano").required()
|
|
5247
5248
|
};
|
|
5248
5249
|
var findByDateParams = joi99.object().keys(findByDateKeys).messages(messages);
|
|
5250
|
+
var findTodoCountsKeys = {
|
|
5251
|
+
from: joi99.date().required(),
|
|
5252
|
+
to: joi99.date().required()
|
|
5253
|
+
};
|
|
5254
|
+
var findTodoCountsParams = joi99.object().keys(findTodoCountsKeys).messages(messages);
|
|
5249
5255
|
|
|
5250
5256
|
// src/modules/stock/chatRapidMessage/interface.ts
|
|
5251
5257
|
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
|
}
|
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.
|
|
4
|
+
"version": "0.46.7",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|