@mitreka/coreflow-types 0.0.3 → 0.0.4

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/Auth.ts CHANGED
@@ -1,10 +1,10 @@
1
- export interface AccessCompany {
1
+ export type AccessCompany = {
2
2
  id: string;
3
3
  name: string;
4
4
  is_active: boolean;
5
5
  }
6
6
 
7
- export interface AccessRole {
7
+ export type AccessRole = {
8
8
  id: string;
9
9
  name: string;
10
10
  permissions: string[];
@@ -12,7 +12,7 @@ export interface AccessRole {
12
12
  is_active: boolean;
13
13
  }
14
14
 
15
- export interface AccessToken {
15
+ export type AccessToken = {
16
16
  company: AccessCompany;
17
17
  role: AccessRole;
18
18
  user: AccessUser;
@@ -20,7 +20,7 @@ export interface AccessToken {
20
20
  exp: number;
21
21
  }
22
22
 
23
- export interface AccessUser {
23
+ export type AccessUser = {
24
24
  id: string;
25
25
  username: string;
26
26
  name: string;
@@ -28,32 +28,32 @@ export interface AccessUser {
28
28
  phone?: string;
29
29
  }
30
30
 
31
- export interface KeyPair {
31
+ export type KeyPair = {
32
32
  private?: string;
33
33
  public?: string;
34
34
  }
35
35
 
36
- export interface RefreshToken {
36
+ export type RefreshToken = {
37
37
  jti: string;
38
38
  iat: number;
39
39
  exp: number;
40
40
  }
41
41
 
42
- export interface RefreshTokenOptions {
42
+ export type RefreshTokenOptions = {
43
43
  role_id?: string;
44
44
  }
45
45
 
46
- export interface TokenExpires {
46
+ export type TokenExpires = {
47
47
  accessExpiresIn: string;
48
48
  refreshExpiresIn: string;
49
49
  }
50
50
 
51
- export interface TokenPair {
51
+ export type TokenPair = {
52
52
  access_token: string;
53
53
  refresh_token: string;
54
54
  }
55
55
 
56
- export interface UserVerify {
56
+ export type UserVerify = {
57
57
  companies: AccessCompany[];
58
58
  jti: string;
59
59
  roles: AccessRole[];
package/Company.ts CHANGED
@@ -1,31 +1,34 @@
1
- import { type Point } from "./DB.js";
1
+ import { BaseEntity, type Point } from "./common.js";
2
2
 
3
- export interface City {
3
+ export interface City extends BaseEntity, CityEntity {
4
4
  id: string;
5
+ }
6
+
7
+ export interface CityEntity {
5
8
  name: string;
6
9
  province_id: string;
7
- created_at: Date;
8
- created_by: string;
9
- updated_at?: Date;
10
- updated_by?: string;
11
- deleted_at?: Date;
12
- deleted_by?: string;
13
10
  }
14
11
 
15
- export interface Client {
12
+ export interface Client extends BaseEntity, ClientEntity {
16
13
  id: string;
14
+ }
15
+
16
+ export interface ClientEntity {
17
17
  parent_id?: string;
18
18
  company_id: string;
19
19
  user_am_id: string; // Account Manager
20
20
  name: string;
21
21
  code: string;
22
22
  abbrev: string; // Singkatan
23
- coordinate: Point; // Maps
23
+ coordinate?: Point; // Maps
24
24
  address?: string;
25
25
  }
26
26
 
27
- export interface Company {
27
+ export interface Company extends BaseEntity, CompanyEntity {
28
28
  id: string;
29
+ }
30
+
31
+ export interface CompanyEntity {
29
32
  name: string;
30
33
  address?: string;
31
34
  country?: string;
@@ -38,40 +41,31 @@ export interface Company {
38
41
  website?: string;
39
42
  coordinate?: Point;
40
43
  radius?: number;
41
- created_at: Date;
42
- created_by: string;
43
- updated_at?: Date;
44
- updated_by?: string;
45
- deleted_at?: Date;
46
- deleted_by?: string;
47
44
  }
48
45
 
49
- export interface Country {
46
+ export interface Country extends BaseEntity, CountryEntity {
50
47
  id: string;
48
+ }
49
+
50
+ export interface CountryEntity {
51
51
  country_code: string;
52
52
  name: string;
53
- phone_code: string;
54
- created_at: Date;
55
- created_by: string;
56
- updated_at: Date;
57
- updated_by: string;
58
- deleted_at?: Date;
59
- deleted_by?: string;
53
+ phone_code?: string;
60
54
  }
61
55
 
62
- export interface Industry {
56
+ export interface Industry extends BaseEntity, IndustriEntity {
63
57
  id: string;
58
+ }
59
+
60
+ export interface IndustriEntity {
64
61
  name: string;
65
- created_at: Date;
66
- created_by: string;
67
- updated_at?: Date;
68
- updated_by?: string;
69
- deleted_at?: Date;
70
- deleted_by?: string;
71
62
  }
72
63
 
73
- export interface OrganizationLevel {
64
+ export interface OrganizationLevel extends BaseEntity, OrganizationLevelEntity {
74
65
  id: string;
66
+ }
67
+
68
+ export interface OrganizationLevelEntity {
75
69
  company: Company;
76
70
  parent?: OrganizationLevel;
77
71
  parent_id?: string;
@@ -81,23 +75,21 @@ export interface OrganizationLevel {
81
75
  code: string;
82
76
  level: number;
83
77
  is_active: boolean;
84
- created_at: Date;
85
- updated_at: Date;
86
78
  }
87
79
 
88
- export interface OrganizationLevelMember {
80
+ export interface OrganizationLevelMember extends BaseEntity, OrganizationLevelMemberEntity {
89
81
  id: string;
82
+ }
83
+
84
+ export interface OrganizationLevelMemberEntity {
90
85
  level: OrganizationLevel;
91
86
  organization_level_id: string;
92
87
  user_id: string;
93
88
  member_role: string;
94
89
  is_primary: boolean;
95
- created_at: Date;
96
- updated_at: Date;
97
90
  }
98
91
 
99
- export interface OrganizationStructureMember {
100
- id: string;
92
+ export interface OrganizationStructureMember extends BaseEntity, OrganizationStructureMemberEntity {
101
93
  version: OrganizationStructureVersion;
102
94
  version_id: string;
103
95
  node: OrganizationStructureNode;
@@ -105,12 +97,23 @@ export interface OrganizationStructureMember {
105
97
  user_id: string;
106
98
  member_role: string;
107
99
  is_primary: boolean;
108
- created_at: Date;
109
- updated_at: Date;
110
100
  }
111
101
 
112
- export class OrganizationStructureNode {
102
+ export interface OrganizationStructureMemberEntity {
103
+ version: OrganizationStructureVersion;
104
+ version_id: string;
105
+ node: OrganizationStructureNode;
106
+ node_id: string;
107
+ user_id: string;
108
+ member_role: string;
109
+ is_primary: boolean;
110
+ }
111
+
112
+ export interface OrganizationStructureNode extends BaseEntity, OrganizationStructureNodeEntity {
113
113
  id: string;
114
+ }
115
+
116
+ export interface OrganizationStructureNodeEntity {
114
117
  version: OrganizationStructureVersion;
115
118
  version_id: string;
116
119
  name: string;
@@ -120,13 +123,14 @@ export class OrganizationStructureNode {
120
123
  parent_node_id?: string;
121
124
  source_level_id?: string;
122
125
  mpath?: string;
123
- created_at: Date;
124
- updated_at: Date;
125
126
  members: OrganizationStructureMember[];
126
127
  }
127
128
 
128
- export interface OrganizationStructureVersion {
129
+ export interface OrganizationStructureVersion extends BaseEntity, OrganizationStructureVersionEntity {
129
130
  id: string;
131
+ }
132
+
133
+ export interface OrganizationStructureVersionEntity {
130
134
  company_id: string;
131
135
  period_type: string;
132
136
  period_label: string;
@@ -134,29 +138,22 @@ export interface OrganizationStructureVersion {
134
138
  period_end: string;
135
139
  decree_no?: string;
136
140
  decree_date?: string;
137
- status: 'draft' | 'active' | 'archived';
141
+ status: "draft" | "active" | "archived";
138
142
  notes?: string;
139
- created_at: Date;
140
- updated_at: Date;
141
- created_by?: string;
142
- updated_by?: string;
143
143
  nodes: OrganizationStructureNode[];
144
144
  }
145
145
 
146
- export interface Project {
146
+ export interface Project extends BaseEntity, ProjectEntity {
147
147
  id: string;
148
+ }
149
+
150
+ export interface ProjectEntity {
148
151
  company_id: string;
149
152
  client_id: string;
150
153
  name: string;
151
154
  start_date: Date;
152
155
  end_date: Date;
153
- user_pm_id: string;
154
- pic_name: string;
155
- pic_phone: string;
156
- created_at: Date;
157
- created_by: string;
158
- updated_at?: Date;
159
- updated_by?: string;
160
- deleted_at?: Date;
161
- deleted_by?: string;
156
+ user_pm_id?: string;
157
+ pic_name?: string;
158
+ pic_phone?: string;
162
159
  }
package/HR.ts CHANGED
@@ -0,0 +1,3 @@
1
+ export interface Attendance {
2
+ id: string;
3
+ }
package/Subscription.ts CHANGED
@@ -1,23 +1,19 @@
1
- export interface Subscriber {
1
+ import { BaseEntity } from "./common";
2
+
3
+ export interface Subscriber extends BaseEntity, SubscriberEntity {
2
4
  id: string;
5
+ }
6
+
7
+ export interface SubscriberEntity {
3
8
  email: string;
4
9
  is_validated: boolean;
5
- created_at: Date;
6
- created_by: string;
7
- updated_at?: Date;
8
- updated_by?: string;
9
- deleted_at?: Date;
10
- deleted_by?: string;
11
10
  }
12
11
 
13
- export interface Subscription {
12
+ export interface Subscription extends BaseEntity, SubscriptionEntity {
14
13
  id: string;
14
+ }
15
+
16
+ export interface SubscriptionEntity {
15
17
  name: string;
16
18
  price: number;
17
- created_at: Date;
18
- created_by: string;
19
- deleted_at?: Date,
20
- deleted_by?: string,
21
- updated_at?: Date,
22
- updated_by?: string
23
19
  }
package/Task.ts CHANGED
@@ -1,42 +1,41 @@
1
- export interface Board {
1
+ import { BaseEntity } from "./common";
2
+
3
+ export interface Board extends BaseEntity, BoardEntity {
2
4
  id: string;
5
+ }
6
+
7
+ export interface BoardEntity {
3
8
  company_id: string;
4
9
  workspace_id: string;
5
10
  name: string;
6
11
  board_type: BoardType;
7
12
  order_no: number;
8
13
  order_position: number;
9
- created_at: Date;
10
- created_by: string;
11
- updated_at?: Date;
12
- updated_by?: string;
13
- deleted_at?: Date;
14
- deleted_by?: string;
15
14
  }
16
15
 
17
16
  export enum BoardType {
18
17
  Backlog, Progress, Done
19
18
  }
20
19
 
21
- export interface Color {
20
+ export interface Color extends ColorEntity {
22
21
  id: string;
22
+ }
23
+
24
+ export interface ColorEntity {
23
25
  name: string;
24
26
  color_code: string;
25
27
  color_order: number;
26
28
  }
27
29
 
28
- export interface Comment {
30
+ export interface Comment extends BaseEntity, CommentEntity {
29
31
  id: string;
32
+ }
33
+
34
+ export interface CommentEntity {
30
35
  parent_id: string;
31
36
  task_id: string;
32
37
  comment_text: string;
33
38
  member_id: string;
34
- created_at: Date;
35
- created_by: string;
36
- updated_at?: Date;
37
- updated_by?: string;
38
- deleted_at?: Date;
39
- deleted_by?: string;
40
39
  }
41
40
 
42
41
  export interface Label {
@@ -45,32 +44,31 @@ export interface Label {
45
44
  color_id: string;
46
45
  }
47
46
 
48
- export interface Priority {
47
+ export interface LabelCreate {
48
+ workspace_id: string;
49
+ color_id: string;
50
+ }
51
+
52
+ export interface Priority extends BaseEntity, PriorityEntity {
49
53
  id: string;
54
+ }
55
+
56
+ export interface PriorityEntity {
50
57
  company_id: string;
51
58
  workspace_id: string;
52
59
  color_id: string;
53
60
  name: string;
54
61
  order_position: number;
55
- created_at: Date;
56
- created_by: string;
57
- updated_at?: Date;
58
- updated_by?: string;
59
- deleted_at?: Date;
60
- deleted_by?: string;
61
62
  }
62
63
 
63
- export interface StoryPoint {
64
+ export interface StoryPoint extends BaseEntity, StoryPointEntity {
64
65
  id: string;
66
+ }
67
+
68
+ export interface StoryPointEntity {
65
69
  story_point_type_id: string;
66
70
  story_point_label: string;
67
71
  story_point_value: number;
68
- created_at: Date;
69
- created_by: string;
70
- updated_at?: Date;
71
- updated_by?: string;
72
- deleted_at?: Date;
73
- deleted_by?: string;
74
72
  }
75
73
 
76
74
  export interface StoryPointType {
@@ -78,49 +76,43 @@ export interface StoryPointType {
78
76
  name: string;
79
77
  }
80
78
 
81
- export interface Subtask {
79
+ export interface Subtask extends BaseEntity, SubtaskEntity {
82
80
  id: string;
81
+ }
82
+
83
+ export interface SubtaskEntity {
83
84
  task_id: string;
84
85
  subtask_group_id: string;
85
86
  name: string;
86
87
  is_done: boolean;
87
88
  completed_at?: Date;
88
89
  completed_by?: string;
89
- created_at: Date;
90
- created_by: string;
91
- updated_at?: Date;
92
- updated_by?: string;
93
- deleted_at?: Date;
94
- deleted_by?: string;
95
90
  }
96
91
 
97
- export interface SubtaskAssignee {
92
+ export interface SubtaskAssignee extends BaseEntity, SubtaskAssigneeEntity {
98
93
  id: string;
94
+ }
95
+
96
+ export interface SubtaskAssigneeEntity {
99
97
  subtask_id: string;
100
98
  member_id: string;
101
- created_at: Date;
102
- created_by: string;
103
- updated_at?: Date;
104
- updated_by?: string;
105
- deleted_at?: Date;
106
- deleted_by?: string;
107
99
  }
108
100
 
109
- export interface SubtaskGroup {
101
+ export interface SubtaskGroup extends BaseEntity, SubtaskGroupEntity {
110
102
  id: string;
103
+ }
104
+
105
+ export interface SubtaskGroupEntity {
111
106
  company_id: string;
112
107
  task_id: string;
113
108
  name: string;
114
- created_at: Date;
115
- created_by: string;
116
- updated_at?: Date;
117
- updated_by?: string;
118
- deleted_at?: Date;
119
- deleted_by?: string;
120
109
  }
121
110
 
122
- export interface Task {
111
+ export interface Task extends BaseEntity, TaskEntity {
123
112
  id: string;
113
+ }
114
+
115
+ export interface TaskEntity {
124
116
  company_id: string;
125
117
  workspace_id?: string;
126
118
  board_id?: string;
@@ -135,67 +127,52 @@ export interface Task {
135
127
  assigner_id?: string;
136
128
  status_checklist?: number;
137
129
  order_position?: string;
138
- created_at: Date;
139
- created_by: string;
140
- updated_at?: Date;
141
- updated_by?: string;
142
- deleted_at?: Date;
143
- deleted_by?: string;
144
130
  }
145
131
 
146
- export interface TaskActivity {
132
+ export interface TaskActivity extends BaseEntity, TaskActivityEntity {
147
133
  id: string;
134
+ }
135
+
136
+ export interface TaskActivityEntity {
148
137
  task_id: string;
149
138
  message: string;
150
- created_at: Date;
151
- created_by: string;
152
- updated_at?: Date;
153
- updated_by?: string;
154
- deleted_at?: Date;
155
- deleted_by?: string;
156
139
  }
157
140
 
158
- export interface TaskAttachment {
141
+ export interface TaskAttachment extends BaseEntity, TaskActivityEntity {
159
142
  id: string;
143
+ }
144
+
145
+ export interface TaskAttachmentEntity {
160
146
  task_id: string;
161
147
  upload_id: string;
162
148
  file_name: string;
163
149
  file_type: string;
164
150
  size: number;
165
- created_at: Date;
166
- created_by: string;
167
- updated_at?: Date;
168
- updated_by?: string;
169
- deleted_at?: Date;
170
- deleted_by?: string;
171
151
  }
172
152
 
173
- export interface TaskLabel {
153
+ export interface TaskLabel extends BaseEntity, TaskLabelEntity {
174
154
  id: string;
155
+ }
156
+
157
+ export interface TaskLabelEntity {
175
158
  task_id: string;
176
159
  label_id: string;
177
- created_at: Date;
178
- created_by: string;
179
- updated_at?: Date;
180
- updated_by?: string;
181
- deleted_at?: Date;
182
- deleted_by?: string;
183
160
  }
184
161
 
185
- export interface TaskMember {
162
+ export interface TaskMember extends BaseEntity, TaskMemberEntity {
186
163
  id: string;
164
+ }
165
+
166
+ export interface TaskMemberEntity {
187
167
  task_id: string;
188
168
  member_id: string;
189
- created_at: Date;
190
- created_by: string;
191
- updated_at?: Date;
192
- updated_by?: string;
193
- deleted_at?: Date;
194
- deleted_by?: string;
195
169
  }
196
170
 
197
- export interface Workspace {
171
+ export interface Workspace extends BaseEntity, WorkspaceEntity {
198
172
  id: string;
173
+ }
174
+
175
+ export interface WorkspaceEntity {
199
176
  color_id: string;
200
177
  company_id: string;
201
178
  title: string;
@@ -204,16 +181,13 @@ export interface Workspace {
204
181
  project_manager_id: string;
205
182
  story_point_type_id: string;
206
183
  workspace_status: WorkspaceStatus;
207
- created_at: Date;
208
- created_by: string;
209
- updated_at?: Date;
210
- updated_by?: string;
211
- deleted_at?: Date;
212
- deleted_by?: string;
213
184
  }
214
185
 
215
- export interface WorkspaceMember {
186
+ export interface WorkspaceMember extends BaseEntity, WorkspaceMemberEntity {
216
187
  id: string;
188
+ }
189
+
190
+ export interface WorkspaceMemberEntity {
217
191
  workspace_id: string;
218
192
  member_id: string;
219
193
  position_id: string;
@@ -221,12 +195,6 @@ export interface WorkspaceMember {
221
195
  role: string;
222
196
  is_favorite: boolean;
223
197
  workspace_member_status: WorkspaceMemberStatus;
224
- created_at: Date;
225
- created_by: string;
226
- updated_at?: Date;
227
- updated_by?: string;
228
- deleted_at?: Date;
229
- deleted_by?: string;
230
198
  }
231
199
 
232
200
  export enum WorkspaceMemberStatus {
@@ -234,16 +202,13 @@ export enum WorkspaceMemberStatus {
234
202
  Inactive = "Inactive"
235
203
  }
236
204
 
237
- export interface WorkspaceSkill {
205
+ export interface WorkspaceSkill extends BaseEntity, WorkspaceSkillEntity {
238
206
  id: string;
207
+ }
208
+
209
+ export interface WorkspaceSkillEntity {
239
210
  workspace_id: string;
240
211
  skill_id: string;
241
- created_at: Date;
242
- created_by: string;
243
- updated_at?: Date;
244
- updated_by?: string;
245
- deleted_at?: Date;
246
- deleted_by?: string;
247
212
  }
248
213
 
249
214
  export enum WorkspaceStatus {
package/User.ts CHANGED
@@ -1,69 +1,46 @@
1
- export interface CreateUser {
2
- company_id: string;
3
- role_id: string;
4
- username: string;
5
- password: string;
6
- name: string;
7
- email: string;
8
- phone?: string;
9
- is_active: boolean;
10
- is_loginable: boolean;
11
- address?: string;
12
- avatar?: string;
13
- gender: UserGender;
14
- birth_date?: Date;
15
- birth_place?: string;
16
- country?: string;
17
- meta?: UserMeta
18
- }
1
+ import { BaseEntity } from "./common";
19
2
 
20
- export interface Permission {
3
+ export interface Permission extends BaseEntity, PermissionEntity {
21
4
  id: string;
5
+ }
6
+
7
+ export interface PermissionEntity {
22
8
  name: string;
23
9
  actions: string[];
24
- created_at: Date;
25
- created_by: string;
26
- update_at: Date;
27
- update_by: string;
28
- deleted_at?: Date;
29
- deleted_by?: string;
30
10
  }
31
11
 
32
- export interface Role {
12
+ export interface Role extends BaseEntity, RoleEntity {
33
13
  id: string;
14
+ }
15
+
16
+ export interface RoleEntity {
34
17
  company_id: string;
35
18
  name: string;
36
19
  permission: string[];
37
- created_at: Date;
38
- created_by: string;
39
- updated_at?: Date;
40
- updated_by?: string;
41
- deleted_at?: Date;
42
- deleted_by?: string;
43
20
  }
44
21
 
45
- export interface Skill {
22
+ export interface Skill extends BaseEntity, SkillEntity {
46
23
  id: string;
24
+ }
25
+
26
+ export interface SkillEntity {
47
27
  company_id: string;
48
28
  parent_id: string;
49
29
  name: string;
50
- created_at: Date;
51
- created_by: string;
52
- updated_at?: Date;
53
- updated_by?: string;
54
- deleted_at?: Date;
55
- deleted_by?: string;
56
30
  }
57
31
 
58
- export interface User {
32
+ export interface User extends BaseEntity, UserEntity {
59
33
  id: string;
34
+ }
35
+
36
+ export interface UserEntity {
60
37
  username: string;
61
38
  password: string;
62
39
  name: string;
63
40
  email: string;
64
41
  phone?: string;
65
42
  is_active: boolean;
66
- is_loginable: boolean;
43
+ is_suspended: boolean;
67
44
  address?: string;
68
45
  avatar?: string;
69
46
  gender: UserGender;
@@ -71,25 +48,23 @@ export interface User {
71
48
  birth_place?: string;
72
49
  country?: string;
73
50
  meta?: UserMeta
74
- created_at: Date;
75
- created_by: string;
76
- updated_at?: Date;
77
- updated_by?: string;
78
- deleted_at?: Date;
79
- deleted_by?: string;
80
51
  }
81
52
 
82
- export interface UserCompany {
53
+ export interface UserCompany extends BaseEntity, UserCompanyEntity {
83
54
  id: string;
55
+ }
56
+
57
+ export interface UserCompanyEntity {
84
58
  user_id: string;
85
59
  company_id: string;
86
60
  is_active: boolean;
87
61
  load?: UserLoad;
88
- created_at: Date;
89
- created_by: string;
90
62
  }
91
63
 
92
- export type UserGender = "F" | "M";
64
+ export enum UserGender {
65
+ Female = "F",
66
+ Male = "M"
67
+ }
93
68
 
94
69
  export type UserLoad = {
95
70
  status: UserLoadStatus;
@@ -97,7 +72,11 @@ export type UserLoad = {
97
72
  project: number;
98
73
  }
99
74
 
100
- export type UserLoadStatus = "High" | "Normal" | "Low";
75
+ export enum UserLoadStatus {
76
+ High = "High",
77
+ Medium = "Medium",
78
+ Low = "Low"
79
+ }
101
80
 
102
81
  export type UserMeta = {
103
82
  token: string;
@@ -112,6 +91,12 @@ export interface UserRole {
112
91
  created_by: string;
113
92
  }
114
93
 
94
+ export interface UserRoleCreate {
95
+ user_id: string;
96
+ role_id: string;
97
+ is_active: boolean;
98
+ }
99
+
115
100
  export interface UserSkill {
116
101
  id: string;
117
102
  user_id: string;
@@ -120,8 +105,22 @@ export interface UserSkill {
120
105
  created_by: string;
121
106
  }
122
107
 
108
+ export interface UserSkillCreate {
109
+ user_id: string;
110
+ skill_id: string;
111
+ }
112
+
123
113
  export interface UserSubscription {
124
114
  id: string;
125
115
  user_id: string;
126
116
  subscription_id: string;
117
+ start_date?: Date;
118
+ end_date?: Date;
119
+ }
120
+
121
+ export interface UserSubscriptionCreate {
122
+ user_id: string;
123
+ subscription_id: string;
124
+ start_date?: Date;
125
+ end_date?: Date;
127
126
  }
@@ -1,3 +1,12 @@
1
+ export interface BaseEntity {
2
+ created_at: Date;
3
+ created_by: string;
4
+ updated_at?: Date;
5
+ updated_by?: string;
6
+ deleted_at?: Date;
7
+ deleted_by?: string;
8
+ }
9
+
1
10
  export type FindOptions<T> = {
2
11
  page: number;
3
12
  limit: number;
package/index.d.ts CHANGED
@@ -2,7 +2,7 @@ export * from "./API.ts";
2
2
  export * from "./Auth.ts";
3
3
  export * from "./Company.ts";
4
4
  export * from "./CoreFlow.ts";
5
- export * from "./DB.ts";
5
+ export * from "./common.ts";
6
6
  export * from "./HR.ts";
7
7
  export * from "./Subscription.ts";
8
8
  export * from "./Task.ts";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mitreka/coreflow-types",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "CoreFlow Types Definition",
5
5
  "author": {
6
6
  "name": "Riyan Widiyanto",