@nomalism-com/types 0.46.5 → 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
|
@@ -3031,6 +3031,7 @@ var updateStoreOperatorQueryKeys = {
|
|
|
3031
3031
|
main_persona_name: joi45.string().allow(null, "").optional(),
|
|
3032
3032
|
main_persona_email: joi45.string().email({ tlds: { allow: false } }).allow(null, "").optional(),
|
|
3033
3033
|
password: joi45.string().allow(null, "").optional(),
|
|
3034
|
+
pin: joi45.string().optional(),
|
|
3034
3035
|
inactive: joi45.boolean().optional(),
|
|
3035
3036
|
superuser: joi45.boolean().optional(),
|
|
3036
3037
|
default_theme: joi45.boolean().optional()
|
|
@@ -5237,7 +5238,8 @@ var Route105 = "dashboard";
|
|
|
5237
5238
|
// src/modules/stock/dashboard/route.schema.ts
|
|
5238
5239
|
var route_schema_exports98 = {};
|
|
5239
5240
|
__export(route_schema_exports98, {
|
|
5240
|
-
findByDateParams: () => findByDateParams
|
|
5241
|
+
findByDateParams: () => findByDateParams,
|
|
5242
|
+
findTodoCountsParams: () => findTodoCountsParams
|
|
5241
5243
|
});
|
|
5242
5244
|
import joi99 from "joi";
|
|
5243
5245
|
var findByDateKeys = {
|
|
@@ -5245,6 +5247,11 @@ var findByDateKeys = {
|
|
|
5245
5247
|
name: joi99.string().valid("dia", "mes", "ano").required()
|
|
5246
5248
|
};
|
|
5247
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);
|
|
5248
5255
|
|
|
5249
5256
|
// src/modules/stock/chatRapidMessage/interface.ts
|
|
5250
5257
|
var interface_exports54 = {};
|
package/dist/index.js
CHANGED
|
@@ -3031,6 +3031,7 @@ var updateStoreOperatorQueryKeys = {
|
|
|
3031
3031
|
main_persona_name: joi45.string().allow(null, "").optional(),
|
|
3032
3032
|
main_persona_email: joi45.string().email({ tlds: { allow: false } }).allow(null, "").optional(),
|
|
3033
3033
|
password: joi45.string().allow(null, "").optional(),
|
|
3034
|
+
pin: joi45.string().optional(),
|
|
3034
3035
|
inactive: joi45.boolean().optional(),
|
|
3035
3036
|
superuser: joi45.boolean().optional(),
|
|
3036
3037
|
default_theme: joi45.boolean().optional()
|
|
@@ -5237,7 +5238,8 @@ var Route105 = "dashboard";
|
|
|
5237
5238
|
// src/modules/stock/dashboard/route.schema.ts
|
|
5238
5239
|
var route_schema_exports98 = {};
|
|
5239
5240
|
__export(route_schema_exports98, {
|
|
5240
|
-
findByDateParams: () => findByDateParams
|
|
5241
|
+
findByDateParams: () => findByDateParams,
|
|
5242
|
+
findTodoCountsParams: () => findTodoCountsParams
|
|
5241
5243
|
});
|
|
5242
5244
|
import joi99 from "joi";
|
|
5243
5245
|
var findByDateKeys = {
|
|
@@ -5245,6 +5247,11 @@ var findByDateKeys = {
|
|
|
5245
5247
|
name: joi99.string().valid("dia", "mes", "ano").required()
|
|
5246
5248
|
};
|
|
5247
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);
|
|
5248
5255
|
|
|
5249
5256
|
// src/modules/stock/chatRapidMessage/interface.ts
|
|
5250
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",
|