@nomalism-com/types 0.45.60 → 0.45.62
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
|
@@ -5844,11 +5844,11 @@ var clockSchema = joi119.object({
|
|
|
5844
5844
|
time: joi119.date().required(),
|
|
5845
5845
|
type: joi119.string().valid(...Object.values(IClockTypeEnum)).required(),
|
|
5846
5846
|
registry_type: joi119.string().valid(...Object.values(IRegistryTypeEnum)).required(),
|
|
5847
|
-
note: joi119.string().allow(null).optional()
|
|
5847
|
+
note: joi119.string().allow("", null).optional()
|
|
5848
5848
|
});
|
|
5849
5849
|
var createBodyKeys64 = {
|
|
5850
5850
|
date: joi119.date().required(),
|
|
5851
|
-
|
|
5851
|
+
user_id: joi119.string().uuid().required(),
|
|
5852
5852
|
total_worked: joi119.number().integer().min(0),
|
|
5853
5853
|
balance: joi119.number().integer(),
|
|
5854
5854
|
state: joi119.string().valid(...Object.values(ITimesheetStateEnum)),
|
|
@@ -5856,7 +5856,8 @@ var createBodyKeys64 = {
|
|
|
5856
5856
|
clock: joi119.object({
|
|
5857
5857
|
time: joi119.date(),
|
|
5858
5858
|
type: joi119.string().valid(...Object.values(IClockTypeEnum)).required(),
|
|
5859
|
-
registry_type: joi119.string().valid(...Object.values(IRegistryTypeEnum)).required()
|
|
5859
|
+
registry_type: joi119.string().valid(...Object.values(IRegistryTypeEnum)).required(),
|
|
5860
|
+
note: joi119.string().allow("", null).optional()
|
|
5860
5861
|
})
|
|
5861
5862
|
};
|
|
5862
5863
|
var createBody65 = joi119.object().keys(createBodyKeys64).messages(messages);
|
package/dist/index.js
CHANGED
|
@@ -5844,11 +5844,11 @@ var clockSchema = joi119.object({
|
|
|
5844
5844
|
time: joi119.date().required(),
|
|
5845
5845
|
type: joi119.string().valid(...Object.values(IClockTypeEnum)).required(),
|
|
5846
5846
|
registry_type: joi119.string().valid(...Object.values(IRegistryTypeEnum)).required(),
|
|
5847
|
-
note: joi119.string().allow(null).optional()
|
|
5847
|
+
note: joi119.string().allow("", null).optional()
|
|
5848
5848
|
});
|
|
5849
5849
|
var createBodyKeys64 = {
|
|
5850
5850
|
date: joi119.date().required(),
|
|
5851
|
-
|
|
5851
|
+
user_id: joi119.string().uuid().required(),
|
|
5852
5852
|
total_worked: joi119.number().integer().min(0),
|
|
5853
5853
|
balance: joi119.number().integer(),
|
|
5854
5854
|
state: joi119.string().valid(...Object.values(ITimesheetStateEnum)),
|
|
@@ -5856,7 +5856,8 @@ var createBodyKeys64 = {
|
|
|
5856
5856
|
clock: joi119.object({
|
|
5857
5857
|
time: joi119.date(),
|
|
5858
5858
|
type: joi119.string().valid(...Object.values(IClockTypeEnum)).required(),
|
|
5859
|
-
registry_type: joi119.string().valid(...Object.values(IRegistryTypeEnum)).required()
|
|
5859
|
+
registry_type: joi119.string().valid(...Object.values(IRegistryTypeEnum)).required(),
|
|
5860
|
+
note: joi119.string().allow("", null).optional()
|
|
5860
5861
|
})
|
|
5861
5862
|
};
|
|
5862
5863
|
var createBody65 = joi119.object().keys(createBodyKeys64).messages(messages);
|
|
@@ -24,14 +24,14 @@ export declare const ITimesheetStateEnum: {
|
|
|
24
24
|
export type ITimesheetState = (typeof ITimesheetStateEnum)[keyof typeof ITimesheetStateEnum];
|
|
25
25
|
export declare const timesheetStates: string[];
|
|
26
26
|
export interface IFindRequest {
|
|
27
|
-
|
|
27
|
+
user_id?: string;
|
|
28
28
|
start_date?: string;
|
|
29
29
|
end_date?: string;
|
|
30
30
|
state?: ITimesheetState;
|
|
31
31
|
}
|
|
32
32
|
export interface ICreateRequest {
|
|
33
33
|
date: Date;
|
|
34
|
-
|
|
34
|
+
user_id: string;
|
|
35
35
|
total_worked?: number;
|
|
36
36
|
balance?: number;
|
|
37
37
|
state?: ITimesheetState;
|
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.45.
|
|
4
|
+
"version": "0.45.62",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|