@nomalism-com/types 0.45.59 → 0.45.61

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
@@ -5843,11 +5843,12 @@ var clockSchema = joi119.object({
5843
5843
  // Opcional no create/update (indica se já existe ou é novo)
5844
5844
  time: joi119.date().required(),
5845
5845
  type: joi119.string().valid(...Object.values(IClockTypeEnum)).required(),
5846
- registry_type: joi119.string().valid(...Object.values(IRegistryTypeEnum)).required()
5846
+ registry_type: joi119.string().valid(...Object.values(IRegistryTypeEnum)).required(),
5847
+ note: joi119.string().allow(null).optional()
5847
5848
  });
5848
5849
  var createBodyKeys64 = {
5849
5850
  date: joi119.date().required(),
5850
- persona_id: joi119.string().uuid().required(),
5851
+ user_id: joi119.string().uuid().required(),
5851
5852
  total_worked: joi119.number().integer().min(0),
5852
5853
  balance: joi119.number().integer(),
5853
5854
  state: joi119.string().valid(...Object.values(ITimesheetStateEnum)),
package/dist/index.js CHANGED
@@ -5843,11 +5843,12 @@ var clockSchema = joi119.object({
5843
5843
  // Opcional no create/update (indica se já existe ou é novo)
5844
5844
  time: joi119.date().required(),
5845
5845
  type: joi119.string().valid(...Object.values(IClockTypeEnum)).required(),
5846
- registry_type: joi119.string().valid(...Object.values(IRegistryTypeEnum)).required()
5846
+ registry_type: joi119.string().valid(...Object.values(IRegistryTypeEnum)).required(),
5847
+ note: joi119.string().allow(null).optional()
5847
5848
  });
5848
5849
  var createBodyKeys64 = {
5849
5850
  date: joi119.date().required(),
5850
- persona_id: joi119.string().uuid().required(),
5851
+ user_id: joi119.string().uuid().required(),
5851
5852
  total_worked: joi119.number().integer().min(0),
5852
5853
  balance: joi119.number().integer(),
5853
5854
  state: joi119.string().valid(...Object.values(ITimesheetStateEnum)),
@@ -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
- persona_id?: string;
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
- persona_id: string;
34
+ user_id: string;
35
35
  total_worked?: number;
36
36
  balance?: number;
37
37
  state?: ITimesheetState;
@@ -39,6 +39,7 @@ export interface ICreateRequest {
39
39
  time?: Date;
40
40
  type: IClockType;
41
41
  registry_type: IRegistryType;
42
+ note?: string | null;
42
43
  };
43
44
  }
44
45
  export interface IUpdateRequest {
@@ -50,6 +51,7 @@ export interface IUpdateRequest {
50
51
  time: Date;
51
52
  type: IClockType;
52
53
  registry_type: IRegistryType;
54
+ note?: string | null;
53
55
  }[];
54
56
  }
55
57
  export interface IRepository {
@@ -530,6 +530,7 @@ export interface TimeSheetDay {
530
530
  date: Date;
531
531
  total_worked: number;
532
532
  balance: number;
533
+ user_id: string;
533
534
  state: ITimesheetState;
534
535
  created_at: Date;
535
536
  updated_at: Date;
@@ -542,6 +543,7 @@ export interface TimeSheetClock {
542
543
  time: Date;
543
544
  type: IClockType;
544
545
  registry_type: IRegistryType;
546
+ note: string | null;
545
547
  created_at: Date;
546
548
  updated_at: Date;
547
549
  created_by: string;
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.59",
4
+ "version": "0.45.61",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",