@mitreka/coreflow-types 0.0.28-alpha-1 → 0.0.28-alpha-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/common.ts CHANGED
@@ -6,6 +6,6 @@ export type Point = {
6
6
  export type SafeEnvType = 'boolean' | 'number' | 'string';
7
7
 
8
8
  export type SafeEnvOptions = {
9
- default?: string | number;
9
+ default?: boolean | number | string;
10
10
  type?: SafeEnvType;
11
11
  };
package/company.ts CHANGED
@@ -72,7 +72,6 @@ export interface CompanyPlanEntity extends RelationEntity {
72
72
  id: string;
73
73
  company_id: string;
74
74
  plan_id: string;
75
- price: number;
76
75
  start_date: Date;
77
76
  end_date: Date;
78
77
  is_active: boolean;
@@ -80,7 +79,6 @@ export interface CompanyPlanEntity extends RelationEntity {
80
79
  export type CompanyPlan = Omit<CompanyPlanEntity, 'id' | keyof RelationEntity>;
81
80
  export type CompanyPlanRequest = QueryFilters & RelationEntityFilters & CompanyPlan;
82
81
 
83
-
84
82
  export interface CountryEntity extends BaseEntity {
85
83
  id: string;
86
84
  country_code: string;
@@ -202,4 +200,4 @@ export interface ProjectEntity {
202
200
  user_pm_id?: string;
203
201
  pic_name?: string;
204
202
  pic_phone?: string;
205
- }
203
+ }
package/index.ts CHANGED
@@ -9,6 +9,6 @@ export * from './error.js';
9
9
  export * from './find.js';
10
10
  export * from './filter.js';
11
11
  export * from './imager.js';
12
- export * from './plan.js';
12
+ export * from './subscription.js';
13
13
  export * from './task.js';
14
- export * from './user.js';
14
+ export * from './user.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mitreka/coreflow-types",
3
- "version": "0.0.28-alpha-1",
3
+ "version": "0.0.28-alpha-3",
4
4
  "description": "CoreFlow Types Definition",
5
5
  "author": {
6
6
  "name": "Riyan Widiyanto",
@@ -1,19 +1,11 @@
1
1
  import type { BaseEntity, RelationEntity } from './entity.js';
2
2
  import { type BaseEntityFilters, type QueryFilters, type RelationEntityFilters } from './filter.js';
3
3
 
4
- export enum PlanPeriodType {
5
- MONTH = 'month',
6
- YEAR = 'year'
7
- };
8
-
9
4
  export interface PlanEntity extends BaseEntity {
10
5
  id: string;
11
6
  name: string;
12
7
  description: string;
13
8
  price: number;
14
- promo_price: number;
15
- period_duration: number;
16
- period_type: PlanPeriodType;
17
9
  };
18
10
 
19
11
  export type Plan = Omit<PlanEntity, 'id' | keyof BaseEntity>;
@@ -28,4 +20,4 @@ export interface PlanPermissionEntity extends RelationEntity {
28
20
 
29
21
  export type PlanPermission = Omit<PlanPermissionEntity, 'id' | keyof RelationEntity>;
30
22
  export type PlanPermissionRequest = QueryFilters & RelationEntityFilters &
31
- Omit<PlanPermissionEntity, keyof RelationEntity>;
23
+ Omit<PlanPermissionEntity, keyof RelationEntity>;
package/user.ts CHANGED
@@ -28,6 +28,7 @@ export interface RolePermissionEntity extends RelationEntity {
28
28
  id: string;
29
29
  role_id: string;
30
30
  permission_id: string;
31
+ value: string;
31
32
  };
32
33
 
33
34
  export type RolePermission = Omit<RolePermissionEntity, 'id' | keyof BaseEntity>;
@@ -132,4 +133,4 @@ export interface UserSkillCreate {
132
133
  skill_id: string;
133
134
  };
134
135
 
135
- export type UserSkillRequest = QueryFilters & RelationEntityFilters & UserSkill;
136
+ export type UserSkillRequest = QueryFilters & RelationEntityFilters & UserSkill;