@nomalism-com/types 0.45.66 → 0.45.69
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.
|
@@ -2,8 +2,6 @@ import * as IShared from '../../../shared/interface';
|
|
|
2
2
|
import { ExternalDocumentHeader } from '../../../shared/entities/stock';
|
|
3
3
|
export type Entity = ExternalDocumentHeader;
|
|
4
4
|
export declare const Route = "external_document_header";
|
|
5
|
-
export declare const UpperName = "ExternalDocumentHeader";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
5
|
export interface IFindByOwnerIdItem {
|
|
8
6
|
external_document_header_id: string | null;
|
|
9
7
|
document_header_id: string;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as IShared from '../../../shared/interface';
|
|
2
|
-
import { TimeSheetDay, TimeSheetClock } from '../../../shared/entities/user';
|
|
2
|
+
import { TimeSheetDay, TimeSheetClock, TimeSheetAdjustment } from '../../../shared/entities/user';
|
|
3
3
|
export type Entity = TimeSheetDay & {
|
|
4
4
|
clocks: TimeSheetClock[];
|
|
5
|
+
adjustments: TimeSheetAdjustment[];
|
|
5
6
|
};
|
|
6
7
|
export declare const Route = "time_sheet";
|
|
7
8
|
export declare const IClockTypeEnum: {
|
|
@@ -10,6 +11,12 @@ export declare const IClockTypeEnum: {
|
|
|
10
11
|
};
|
|
11
12
|
export type IClockType = (typeof IClockTypeEnum)[keyof typeof IClockTypeEnum];
|
|
12
13
|
export declare const clockTypes: string[];
|
|
14
|
+
export declare const IAdjustmentTypeEnum: {
|
|
15
|
+
CREDIT: 'CREDIT';
|
|
16
|
+
DEBIT: 'DEBIT';
|
|
17
|
+
};
|
|
18
|
+
export type IAdjustmentType = (typeof IAdjustmentTypeEnum)[keyof typeof IAdjustmentTypeEnum];
|
|
19
|
+
export declare const adjustmentTypes: string[];
|
|
13
20
|
export declare const IRegistryTypeEnum: {
|
|
14
21
|
AUTOMATIC: 'AUTOMATIC';
|
|
15
22
|
MANUAL: 'MANUAL';
|
|
@@ -45,6 +52,13 @@ export interface ICreateRequest {
|
|
|
45
52
|
created_by: string;
|
|
46
53
|
updated_by: string;
|
|
47
54
|
};
|
|
55
|
+
adjustment?: {
|
|
56
|
+
type: IAdjustmentType;
|
|
57
|
+
minutes: number;
|
|
58
|
+
note?: string | null;
|
|
59
|
+
created_by: string;
|
|
60
|
+
updated_by: string;
|
|
61
|
+
};
|
|
48
62
|
}
|
|
49
63
|
export interface IUpdateRequest {
|
|
50
64
|
total_worked?: number;
|
|
@@ -61,6 +75,14 @@ export interface IUpdateRequest {
|
|
|
61
75
|
created_by: string;
|
|
62
76
|
updated_by: string;
|
|
63
77
|
}[];
|
|
78
|
+
adjustments?: {
|
|
79
|
+
id?: string;
|
|
80
|
+
type: IAdjustmentType;
|
|
81
|
+
minutes: number;
|
|
82
|
+
note?: string | null;
|
|
83
|
+
created_by: string;
|
|
84
|
+
updated_by: string;
|
|
85
|
+
}[];
|
|
64
86
|
}
|
|
65
87
|
export interface IRepository {
|
|
66
88
|
find(filters?: IFindRequest): Promise<Entity[]>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IPaymentMethodsSaftCodeEnum } from '../../modules/user/paymentMethods/interfaces';
|
|
2
2
|
import type { SystemModuleEnum } from '../../modules/user/systemModule/interface';
|
|
3
|
-
import { IClockType, IRegistryType, ITimesheetState } from '../../modules/user/timeSheet/interfaces';
|
|
3
|
+
import { IClockType, IRegistryType, ITimesheetState, IAdjustmentType } from '../../modules/user/timeSheet/interfaces';
|
|
4
4
|
/**
|
|
5
5
|
* Model Users
|
|
6
6
|
*
|
|
@@ -39,48 +39,6 @@ export type Favorites = {
|
|
|
39
39
|
created_at: Date;
|
|
40
40
|
updated_at: Date;
|
|
41
41
|
};
|
|
42
|
-
/**
|
|
43
|
-
* Model Permissions
|
|
44
|
-
*
|
|
45
|
-
*/
|
|
46
|
-
export type Permissions = {
|
|
47
|
-
id: number;
|
|
48
|
-
code: string;
|
|
49
|
-
description: string;
|
|
50
|
-
enable: boolean;
|
|
51
|
-
created_at: Date;
|
|
52
|
-
updated_at: Date;
|
|
53
|
-
created_by: string;
|
|
54
|
-
updated_by: string;
|
|
55
|
-
};
|
|
56
|
-
/**
|
|
57
|
-
* Model GroupPermissions
|
|
58
|
-
*
|
|
59
|
-
*/
|
|
60
|
-
export type GroupPermissions = {
|
|
61
|
-
id: number;
|
|
62
|
-
code: string;
|
|
63
|
-
description: string;
|
|
64
|
-
enable: boolean;
|
|
65
|
-
created_at: Date;
|
|
66
|
-
updated_at: Date;
|
|
67
|
-
created_by: string;
|
|
68
|
-
updated_by: string;
|
|
69
|
-
};
|
|
70
|
-
/**
|
|
71
|
-
* Model UserPermissions
|
|
72
|
-
*
|
|
73
|
-
*/
|
|
74
|
-
export type UserPermissions = {
|
|
75
|
-
id: number;
|
|
76
|
-
user_id: string;
|
|
77
|
-
group_id: number;
|
|
78
|
-
permission_id: number;
|
|
79
|
-
created_at: Date;
|
|
80
|
-
updated_at: Date;
|
|
81
|
-
created_by: string;
|
|
82
|
-
updated_by: string;
|
|
83
|
-
};
|
|
84
42
|
/**
|
|
85
43
|
* Model Providers
|
|
86
44
|
*
|
|
@@ -549,3 +507,14 @@ export interface TimeSheetClock {
|
|
|
549
507
|
created_by: string;
|
|
550
508
|
updated_by: string;
|
|
551
509
|
}
|
|
510
|
+
export interface TimeSheetAdjustment {
|
|
511
|
+
id: string;
|
|
512
|
+
timesheet_day_id: string;
|
|
513
|
+
type: IAdjustmentType;
|
|
514
|
+
minutes: number;
|
|
515
|
+
note: string | null;
|
|
516
|
+
created_at: Date;
|
|
517
|
+
updated_at: Date;
|
|
518
|
+
created_by: string;
|
|
519
|
+
updated_by: string;
|
|
520
|
+
}
|
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.69",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|
|
@@ -29,15 +29,15 @@
|
|
|
29
29
|
"joi": "^18.2.1"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@swc/core": "^1.15.
|
|
33
|
-
"@types/node": "^24.13.
|
|
32
|
+
"@swc/core": "^1.15.41",
|
|
33
|
+
"@types/node": "^24.13.2",
|
|
34
34
|
"@typescript-eslint/eslint-plugin": "^8.61.0",
|
|
35
35
|
"@typescript-eslint/parser": "^8.61.0",
|
|
36
36
|
"eslint": "^9.39.4",
|
|
37
37
|
"eslint-config-prettier": "^10.1.8",
|
|
38
38
|
"eslint-import-resolver-typescript": "^4.4.5",
|
|
39
39
|
"eslint-plugin-prettier": "^5.5.6",
|
|
40
|
-
"prettier": "^3.8.
|
|
40
|
+
"prettier": "^3.8.4",
|
|
41
41
|
"tsup": "^8.5.1"
|
|
42
42
|
},
|
|
43
43
|
"repository": {
|