@mitreka/coreflow-types 0.0.1 → 0.0.3
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/API.ts +15 -0
- package/Company.ts +73 -0
- package/index.d.ts +3 -1
- package/package.json +1 -1
package/API.ts
ADDED
package/Company.ts
CHANGED
|
@@ -70,6 +70,79 @@ export interface Industry {
|
|
|
70
70
|
deleted_by?: string;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
+
export interface OrganizationLevel {
|
|
74
|
+
id: string;
|
|
75
|
+
company: Company;
|
|
76
|
+
parent?: OrganizationLevel;
|
|
77
|
+
parent_id?: string;
|
|
78
|
+
company_id: string;
|
|
79
|
+
children: OrganizationLevel[];
|
|
80
|
+
name: string;
|
|
81
|
+
code: string;
|
|
82
|
+
level: number;
|
|
83
|
+
is_active: boolean;
|
|
84
|
+
created_at: Date;
|
|
85
|
+
updated_at: Date;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export interface OrganizationLevelMember {
|
|
89
|
+
id: string;
|
|
90
|
+
level: OrganizationLevel;
|
|
91
|
+
organization_level_id: string;
|
|
92
|
+
user_id: string;
|
|
93
|
+
member_role: string;
|
|
94
|
+
is_primary: boolean;
|
|
95
|
+
created_at: Date;
|
|
96
|
+
updated_at: Date;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export interface OrganizationStructureMember {
|
|
100
|
+
id: string;
|
|
101
|
+
version: OrganizationStructureVersion;
|
|
102
|
+
version_id: string;
|
|
103
|
+
node: OrganizationStructureNode;
|
|
104
|
+
node_id: string;
|
|
105
|
+
user_id: string;
|
|
106
|
+
member_role: string;
|
|
107
|
+
is_primary: boolean;
|
|
108
|
+
created_at: Date;
|
|
109
|
+
updated_at: Date;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export class OrganizationStructureNode {
|
|
113
|
+
id: string;
|
|
114
|
+
version: OrganizationStructureVersion;
|
|
115
|
+
version_id: string;
|
|
116
|
+
name: string;
|
|
117
|
+
code: string;
|
|
118
|
+
level: number;
|
|
119
|
+
is_active: boolean;
|
|
120
|
+
parent_node_id?: string;
|
|
121
|
+
source_level_id?: string;
|
|
122
|
+
mpath?: string;
|
|
123
|
+
created_at: Date;
|
|
124
|
+
updated_at: Date;
|
|
125
|
+
members: OrganizationStructureMember[];
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export interface OrganizationStructureVersion {
|
|
129
|
+
id: string;
|
|
130
|
+
company_id: string;
|
|
131
|
+
period_type: string;
|
|
132
|
+
period_label: string;
|
|
133
|
+
period_start: string;
|
|
134
|
+
period_end: string;
|
|
135
|
+
decree_no?: string;
|
|
136
|
+
decree_date?: string;
|
|
137
|
+
status: 'draft' | 'active' | 'archived';
|
|
138
|
+
notes?: string;
|
|
139
|
+
created_at: Date;
|
|
140
|
+
updated_at: Date;
|
|
141
|
+
created_by?: string;
|
|
142
|
+
updated_by?: string;
|
|
143
|
+
nodes: OrganizationStructureNode[];
|
|
144
|
+
}
|
|
145
|
+
|
|
73
146
|
export interface Project {
|
|
74
147
|
id: string;
|
|
75
148
|
company_id: string;
|
package/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
export * from "./API.ts";
|
|
1
2
|
export * from "./Auth.ts";
|
|
2
|
-
export * from "./DB.ts";
|
|
3
3
|
export * from "./Company.ts";
|
|
4
4
|
export * from "./CoreFlow.ts";
|
|
5
|
+
export * from "./DB.ts";
|
|
6
|
+
export * from "./HR.ts";
|
|
5
7
|
export * from "./Subscription.ts";
|
|
6
8
|
export * from "./Task.ts";
|
|
7
9
|
export * from "./User.ts";
|