@cbm-common/cbm-types 0.0.38 → 0.0.39
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/lib/components/add-provider/add-provider.d.ts +111 -0
- package/lib/components/add-provider/animations.d.ts +1 -0
- package/lib/components/add-provider/constants.d.ts +7 -0
- package/lib/components/add-provider/types.d.ts +1 -0
- package/lib/domain/models/credit-management.domain.model.d.ts +337 -0
- package/lib/domain/models/invoice.domain.model.d.ts +1056 -0
- package/lib/domain/models/provider-category.domain.model.d.ts +68 -0
- package/lib/domain/models/provider-group.domain.model.d.ts +110 -0
- package/lib/domain/models/reason-country.domain.model.d.ts +93 -0
- package/lib/domain/models/retention-settings-sales.domain.model.d.ts +111 -0
- package/lib/domain/models/subscription.domain.model.d.ts +261 -0
- package/lib/domain/models/{payment-term.domain.model.d.ts → tax-regime.domain.model.d.ts} +31 -38
- package/lib/domain/models/territorial-organization.domain.model.d.ts +53 -0
- package/lib/domain/repositories/credit-management.domain.repository.d.ts +11 -0
- package/lib/domain/repositories/invoice.domain.repository.d.ts +16 -0
- package/lib/domain/repositories/provider-category.domain.repository.d.ts +10 -0
- package/lib/domain/repositories/provider-group.domain.repository.d.ts +10 -0
- package/lib/domain/repositories/reason-country.domain.repository.d.ts +14 -0
- package/lib/domain/repositories/retention-settings-sales.domain.repository.d.ts +9 -0
- package/lib/domain/repositories/subscription.domain.repository.d.ts +15 -0
- package/lib/domain/repositories/tax-regime.domain.repository.d.ts +9 -0
- package/lib/domain/repositories/territorial-organization.domain.repository.d.ts +10 -0
- package/lib/infrastructure/repositories/credit-management.infrastructure.repository.d.ts +8 -0
- package/lib/infrastructure/repositories/invoice.infrastructure.repository.d.ts +13 -0
- package/lib/infrastructure/repositories/provider-category.infrastructure.repository.d.ts +7 -0
- package/lib/infrastructure/repositories/provider-group.infrastructure.repository.d.ts +7 -0
- package/lib/infrastructure/repositories/reason-country.infrastructure.repository.d.ts +11 -0
- package/lib/infrastructure/repositories/retention-settings-sales.infrastructure.repository.d.ts +6 -0
- package/lib/infrastructure/repositories/subscription.infrastructure.repository.d.ts +12 -0
- package/lib/infrastructure/repositories/tax-regime.infrastructure.repository.d.ts +6 -0
- package/lib/infrastructure/repositories/territorial-organization.infrastructure.repository.d.ts +7 -0
- package/lib/infrastructure/services/credit-management.infrastructure.service.d.ts +13 -0
- package/lib/infrastructure/services/invoice.infrastructure.service.d.ts +17 -0
- package/lib/infrastructure/services/provider-category.infrastructure.service.d.ts +12 -0
- package/lib/infrastructure/services/provider-group.infrastructure.service.d.ts +12 -0
- package/lib/infrastructure/services/reason-country.infrastructure.service.d.ts +16 -0
- package/lib/infrastructure/services/retention-settings-sales.infrastructure.service.d.ts +11 -0
- package/lib/infrastructure/services/subscription.infrastructure.service.d.ts +16 -0
- package/lib/infrastructure/services/tax-regime.infrastructure.service.d.ts +10 -0
- package/lib/infrastructure/services/territorial-organization.infrastructure.service.d.ts +11 -0
- package/lib/remotes/components.remote.d.ts +1 -0
- package/lib/remotes/repositories/credit-management.repository.d.ts +3 -0
- package/lib/remotes/repositories/invoice.repository.d.ts +3 -0
- package/lib/remotes/repositories/provider-category.repository.d.ts +3 -0
- package/lib/remotes/repositories/provider-group.repository.d.ts +3 -0
- package/lib/remotes/repositories/reason-country.repository.d.ts +3 -0
- package/lib/remotes/repositories/retention-settings-sales.repository.d.ts +3 -0
- package/lib/remotes/repositories/subscription.repository.d.ts +3 -0
- package/lib/remotes/repositories/tax-regime.repository.d.ts +3 -0
- package/lib/remotes/repositories/territorial-organization.repository.d.ts +3 -0
- package/lib/remotes/repositories.remote.d.ts +17 -9
- package/package.json +1 -1
- package/public-api.d.ts +39 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
export declare namespace CbmProviderCategoryModel {
|
|
2
|
+
interface ListParams {
|
|
3
|
+
enabled?: boolean;
|
|
4
|
+
name?: string;
|
|
5
|
+
group_id?: string;
|
|
6
|
+
}
|
|
7
|
+
interface ListResponse {
|
|
8
|
+
success: boolean;
|
|
9
|
+
data: ListResponse.Data[];
|
|
10
|
+
}
|
|
11
|
+
namespace ListResponse {
|
|
12
|
+
interface Data {
|
|
13
|
+
_id: string;
|
|
14
|
+
company_id: string;
|
|
15
|
+
group_id: string;
|
|
16
|
+
initial: boolean;
|
|
17
|
+
level: number;
|
|
18
|
+
name: string;
|
|
19
|
+
enabled: boolean;
|
|
20
|
+
created_user: string;
|
|
21
|
+
created_at: number;
|
|
22
|
+
updated_at?: number;
|
|
23
|
+
updated_user?: string;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
interface GetOneResponse {
|
|
27
|
+
success: boolean;
|
|
28
|
+
data: GetOneResponse.Data;
|
|
29
|
+
}
|
|
30
|
+
namespace GetOneResponse {
|
|
31
|
+
interface Data {
|
|
32
|
+
_id: string;
|
|
33
|
+
company_id?: string;
|
|
34
|
+
group_id?: string;
|
|
35
|
+
initial?: boolean;
|
|
36
|
+
level?: number;
|
|
37
|
+
name?: string;
|
|
38
|
+
enabled?: boolean;
|
|
39
|
+
created_user?: string;
|
|
40
|
+
created_at?: number;
|
|
41
|
+
receivable_account_id?: string;
|
|
42
|
+
advance_account_id?: string;
|
|
43
|
+
updated_at?: number;
|
|
44
|
+
updated_user?: string;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
interface SaveBody {
|
|
48
|
+
group_id: string;
|
|
49
|
+
name: string;
|
|
50
|
+
receivable_account_id: string;
|
|
51
|
+
advance_account_id: string;
|
|
52
|
+
}
|
|
53
|
+
interface UpdateBody {
|
|
54
|
+
group_id?: string;
|
|
55
|
+
name?: string;
|
|
56
|
+
receivable_account_id?: string;
|
|
57
|
+
advance_account_id?: string;
|
|
58
|
+
}
|
|
59
|
+
interface ChangeStatusBody {
|
|
60
|
+
enabled: boolean;
|
|
61
|
+
disabled_reason?: string;
|
|
62
|
+
}
|
|
63
|
+
interface ConfirmResponse {
|
|
64
|
+
success: boolean;
|
|
65
|
+
message: string;
|
|
66
|
+
data?: any;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
export declare namespace CbmProviderGroupModel {
|
|
2
|
+
interface ListParams {
|
|
3
|
+
enabled?: boolean;
|
|
4
|
+
name?: string;
|
|
5
|
+
group_id?: string;
|
|
6
|
+
}
|
|
7
|
+
interface ListResponse {
|
|
8
|
+
success?: boolean;
|
|
9
|
+
data?: ListResponse.Data[];
|
|
10
|
+
}
|
|
11
|
+
namespace ListResponse {
|
|
12
|
+
interface Data {
|
|
13
|
+
_id: string;
|
|
14
|
+
company_id?: string;
|
|
15
|
+
group_id?: string;
|
|
16
|
+
initial?: boolean;
|
|
17
|
+
level?: number;
|
|
18
|
+
name?: string;
|
|
19
|
+
enabled?: boolean;
|
|
20
|
+
created_user?: string;
|
|
21
|
+
created_at?: number;
|
|
22
|
+
updated_at?: number;
|
|
23
|
+
updated_user?: string;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
interface SaveBody {
|
|
27
|
+
group_id?: string;
|
|
28
|
+
initial?: boolean;
|
|
29
|
+
level?: number;
|
|
30
|
+
name?: string;
|
|
31
|
+
}
|
|
32
|
+
interface GetOneResponse {
|
|
33
|
+
success?: boolean;
|
|
34
|
+
data?: GetOneResponse.Data;
|
|
35
|
+
}
|
|
36
|
+
namespace GetOneResponse {
|
|
37
|
+
interface Data {
|
|
38
|
+
_id: string;
|
|
39
|
+
company_id?: string;
|
|
40
|
+
group_id?: string;
|
|
41
|
+
initial?: boolean;
|
|
42
|
+
level?: number;
|
|
43
|
+
name?: string;
|
|
44
|
+
enabled?: boolean;
|
|
45
|
+
deleted?: boolean;
|
|
46
|
+
created_user?: string;
|
|
47
|
+
created_at?: number;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
interface UpdateBody {
|
|
51
|
+
group_id?: string;
|
|
52
|
+
initial?: boolean;
|
|
53
|
+
level?: number;
|
|
54
|
+
name?: string;
|
|
55
|
+
}
|
|
56
|
+
interface ChangeStatusBody {
|
|
57
|
+
enabled?: boolean;
|
|
58
|
+
disabled_reason?: string;
|
|
59
|
+
}
|
|
60
|
+
interface ConfirmResponse {
|
|
61
|
+
success: boolean;
|
|
62
|
+
message: string;
|
|
63
|
+
data?: any;
|
|
64
|
+
}
|
|
65
|
+
interface ListAsTreeParams {
|
|
66
|
+
name?: string;
|
|
67
|
+
}
|
|
68
|
+
interface ListAsTreeResponse {
|
|
69
|
+
success: boolean;
|
|
70
|
+
data: ListAsTreeResponse.Children;
|
|
71
|
+
}
|
|
72
|
+
namespace ListAsTreeResponse {
|
|
73
|
+
type Children = Child[];
|
|
74
|
+
interface Child {
|
|
75
|
+
label: string;
|
|
76
|
+
value: Group | Category;
|
|
77
|
+
children?: Children;
|
|
78
|
+
}
|
|
79
|
+
interface Group {
|
|
80
|
+
_id: string;
|
|
81
|
+
company_id?: string;
|
|
82
|
+
group_id?: string;
|
|
83
|
+
initial?: boolean;
|
|
84
|
+
level?: number;
|
|
85
|
+
name?: string;
|
|
86
|
+
enabled?: boolean;
|
|
87
|
+
deleted?: boolean;
|
|
88
|
+
created_user?: string;
|
|
89
|
+
created_at?: number;
|
|
90
|
+
updated_user?: string;
|
|
91
|
+
updated_at?: number;
|
|
92
|
+
disabled_reason?: string;
|
|
93
|
+
}
|
|
94
|
+
interface Category {
|
|
95
|
+
_id: string;
|
|
96
|
+
company_id?: string;
|
|
97
|
+
group_id?: string;
|
|
98
|
+
name?: string;
|
|
99
|
+
receivable_account_id?: string;
|
|
100
|
+
advanced_account_id?: string;
|
|
101
|
+
enabled?: boolean;
|
|
102
|
+
deleted?: boolean;
|
|
103
|
+
created_user?: string;
|
|
104
|
+
created_at?: number;
|
|
105
|
+
updated_user?: string;
|
|
106
|
+
updated_at?: number;
|
|
107
|
+
disabled_reason?: string;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
export declare namespace CbmReasonCountryModel {
|
|
2
|
+
interface ListParams {
|
|
3
|
+
page: number;
|
|
4
|
+
size: number;
|
|
5
|
+
description?: string;
|
|
6
|
+
code?: string;
|
|
7
|
+
deleted?: boolean;
|
|
8
|
+
type_order?: boolean;
|
|
9
|
+
}
|
|
10
|
+
interface ListResponse {
|
|
11
|
+
success: boolean;
|
|
12
|
+
pageNum: number;
|
|
13
|
+
pageSize: number;
|
|
14
|
+
pages: number;
|
|
15
|
+
total: number;
|
|
16
|
+
items: ListResponse.Item[];
|
|
17
|
+
}
|
|
18
|
+
namespace ListResponse {
|
|
19
|
+
interface Item {
|
|
20
|
+
_id: string;
|
|
21
|
+
country_id: string;
|
|
22
|
+
code: string;
|
|
23
|
+
description: string;
|
|
24
|
+
description_process: string;
|
|
25
|
+
order: number;
|
|
26
|
+
enabled: boolean;
|
|
27
|
+
deleted: boolean;
|
|
28
|
+
created_at: number;
|
|
29
|
+
created_user: string;
|
|
30
|
+
updated_at?: number;
|
|
31
|
+
updated_user?: string;
|
|
32
|
+
deleted_at?: number;
|
|
33
|
+
deleted_user?: string;
|
|
34
|
+
disabled_reason: string;
|
|
35
|
+
user_inactive_at: number;
|
|
36
|
+
user_inactive_id: string;
|
|
37
|
+
user_inactive_name: string;
|
|
38
|
+
user_active_at: number;
|
|
39
|
+
user_active_id: string;
|
|
40
|
+
user_active_name: string;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
interface SaveBody {
|
|
44
|
+
code: string;
|
|
45
|
+
description: string;
|
|
46
|
+
description_process: string;
|
|
47
|
+
order: number;
|
|
48
|
+
}
|
|
49
|
+
interface GetOneResponse {
|
|
50
|
+
success: boolean;
|
|
51
|
+
data: GetOneResponse.Data;
|
|
52
|
+
}
|
|
53
|
+
namespace GetOneResponse {
|
|
54
|
+
interface Data {
|
|
55
|
+
_id: string;
|
|
56
|
+
country_id: string;
|
|
57
|
+
code: string;
|
|
58
|
+
description: string;
|
|
59
|
+
description_process: string;
|
|
60
|
+
order: number;
|
|
61
|
+
enabled: boolean;
|
|
62
|
+
created_at: number;
|
|
63
|
+
created_user: string;
|
|
64
|
+
deleted: boolean;
|
|
65
|
+
updated_at?: number;
|
|
66
|
+
updated_user?: string;
|
|
67
|
+
deleted_at?: number;
|
|
68
|
+
deleted_user?: string;
|
|
69
|
+
disabled_reason?: string;
|
|
70
|
+
user_inactive_at?: number;
|
|
71
|
+
user_inactive_id?: string;
|
|
72
|
+
user_inactive_name?: string;
|
|
73
|
+
user_active_at?: number;
|
|
74
|
+
user_active_id?: string;
|
|
75
|
+
user_active_name?: string;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
interface UpdateBody {
|
|
79
|
+
code?: string;
|
|
80
|
+
description?: string;
|
|
81
|
+
description_process?: string;
|
|
82
|
+
order: number;
|
|
83
|
+
}
|
|
84
|
+
interface ChangeStatusBody {
|
|
85
|
+
enabled: boolean;
|
|
86
|
+
disabled_reason?: string;
|
|
87
|
+
}
|
|
88
|
+
interface ConfirmResponse {
|
|
89
|
+
success: boolean;
|
|
90
|
+
message: string;
|
|
91
|
+
data?: any;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
export declare namespace CbmRetentionSettingsSalesModel {
|
|
2
|
+
interface ListParams {
|
|
3
|
+
page: number;
|
|
4
|
+
size: number;
|
|
5
|
+
enabled?: boolean;
|
|
6
|
+
type?: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
code?: string;
|
|
9
|
+
retention_id?: string;
|
|
10
|
+
filter_text?: string;
|
|
11
|
+
porcentage?: number;
|
|
12
|
+
}
|
|
13
|
+
interface ListResponse {
|
|
14
|
+
success: boolean;
|
|
15
|
+
pageNum: number;
|
|
16
|
+
pageSize: number;
|
|
17
|
+
pages: number;
|
|
18
|
+
total: number;
|
|
19
|
+
items: ListResponse.Items[];
|
|
20
|
+
}
|
|
21
|
+
namespace ListResponse {
|
|
22
|
+
interface Items {
|
|
23
|
+
_id: string;
|
|
24
|
+
company_id: string;
|
|
25
|
+
retention_id: string;
|
|
26
|
+
account_id: string;
|
|
27
|
+
retention_name: string;
|
|
28
|
+
account_name: string;
|
|
29
|
+
code: string;
|
|
30
|
+
description: string;
|
|
31
|
+
porcentage: number;
|
|
32
|
+
type: string;
|
|
33
|
+
enabled: boolean;
|
|
34
|
+
created_user: string;
|
|
35
|
+
account_code: string;
|
|
36
|
+
account_code_father: string;
|
|
37
|
+
account_name_code_father: string;
|
|
38
|
+
retention_code: string;
|
|
39
|
+
created_at: number;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
interface GetOneResponse {
|
|
43
|
+
success: boolean;
|
|
44
|
+
data: GetOneResponse.Data;
|
|
45
|
+
}
|
|
46
|
+
namespace GetOneResponse {
|
|
47
|
+
interface Data {
|
|
48
|
+
_id?: string;
|
|
49
|
+
company_id?: string;
|
|
50
|
+
retention_id?: string;
|
|
51
|
+
code?: string;
|
|
52
|
+
porcentage?: number;
|
|
53
|
+
description?: string;
|
|
54
|
+
type?: string;
|
|
55
|
+
account_id?: string;
|
|
56
|
+
account_name?: string;
|
|
57
|
+
account_code?: string;
|
|
58
|
+
account_code_father?: string;
|
|
59
|
+
account_name_code_father?: string;
|
|
60
|
+
retention_name?: string;
|
|
61
|
+
retention_code?: string;
|
|
62
|
+
enabled?: boolean;
|
|
63
|
+
deleted?: boolean;
|
|
64
|
+
created_at?: number;
|
|
65
|
+
created_user?: string;
|
|
66
|
+
updated_user?: string;
|
|
67
|
+
updated_at?: number;
|
|
68
|
+
user_inactive_at?: number;
|
|
69
|
+
user_inactive_id?: string;
|
|
70
|
+
user_inactive_name?: string;
|
|
71
|
+
disabled_reason?: string;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
interface SaveBody {
|
|
75
|
+
retention_id: string;
|
|
76
|
+
retention_name: string;
|
|
77
|
+
retention_code: string;
|
|
78
|
+
account_id: string;
|
|
79
|
+
account_name: string;
|
|
80
|
+
code: string;
|
|
81
|
+
description: string;
|
|
82
|
+
porcentage: number;
|
|
83
|
+
type: string;
|
|
84
|
+
account_code: string;
|
|
85
|
+
account_code_father: string;
|
|
86
|
+
account_name_code_father: string;
|
|
87
|
+
}
|
|
88
|
+
interface UpdateBody {
|
|
89
|
+
retention_id?: string;
|
|
90
|
+
account_id?: string;
|
|
91
|
+
account_name?: string;
|
|
92
|
+
account_code?: string;
|
|
93
|
+
account_code_father?: string;
|
|
94
|
+
account_name_code_father?: string;
|
|
95
|
+
retention_name?: string;
|
|
96
|
+
retention_code?: string;
|
|
97
|
+
code?: string;
|
|
98
|
+
porcentage?: number;
|
|
99
|
+
description?: string;
|
|
100
|
+
type?: string;
|
|
101
|
+
}
|
|
102
|
+
interface ChangeStatusBody {
|
|
103
|
+
enabled: boolean;
|
|
104
|
+
disabled_reason?: string;
|
|
105
|
+
}
|
|
106
|
+
interface ConfirmResponse {
|
|
107
|
+
success: boolean;
|
|
108
|
+
message: string;
|
|
109
|
+
data?: any;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
export declare namespace CbmSubscriptionModel {
|
|
2
|
+
type MethodPay = 'card' | 'transfer';
|
|
3
|
+
type CollectionMethod = 'monthly' | 'annual';
|
|
4
|
+
interface ListParams {
|
|
5
|
+
page: number;
|
|
6
|
+
size: number;
|
|
7
|
+
enabled?: boolean;
|
|
8
|
+
filter?: string;
|
|
9
|
+
}
|
|
10
|
+
interface ListResponse {
|
|
11
|
+
success: boolean;
|
|
12
|
+
pageNum: number;
|
|
13
|
+
pageSize: number;
|
|
14
|
+
pages: number;
|
|
15
|
+
total: number;
|
|
16
|
+
items: ListResponse.Item[];
|
|
17
|
+
}
|
|
18
|
+
namespace ListResponse {
|
|
19
|
+
interface Item {
|
|
20
|
+
_id: string;
|
|
21
|
+
code?: string;
|
|
22
|
+
name?: string;
|
|
23
|
+
count_companies?: number;
|
|
24
|
+
count_users?: number;
|
|
25
|
+
life_year?: number;
|
|
26
|
+
method_pay?: MethodPay;
|
|
27
|
+
collection_method?: CollectionMethod;
|
|
28
|
+
enabled?: boolean;
|
|
29
|
+
created_at?: number;
|
|
30
|
+
created_user?: string;
|
|
31
|
+
updated_at?: number;
|
|
32
|
+
updated_user?: string;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
interface ListCompaniesResponse {
|
|
36
|
+
success: boolean;
|
|
37
|
+
data: ListCompaniesResponse.Data[];
|
|
38
|
+
}
|
|
39
|
+
namespace ListCompaniesResponse {
|
|
40
|
+
interface Data {
|
|
41
|
+
_id: string;
|
|
42
|
+
subscription_id?: string;
|
|
43
|
+
begin_date?: number;
|
|
44
|
+
end_date?: number;
|
|
45
|
+
count_users?: number;
|
|
46
|
+
count_branches?: number;
|
|
47
|
+
company_id?: string;
|
|
48
|
+
created_at?: number;
|
|
49
|
+
created_user?: string;
|
|
50
|
+
updated_at?: number;
|
|
51
|
+
updated_user?: string;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
interface ListCompanySubscriptionsResponse {
|
|
55
|
+
success: boolean;
|
|
56
|
+
data: ListCompanySubscriptionsResponse.Data[];
|
|
57
|
+
}
|
|
58
|
+
namespace ListCompanySubscriptionsResponse {
|
|
59
|
+
interface Data {
|
|
60
|
+
_id: string;
|
|
61
|
+
subscription_id?: string;
|
|
62
|
+
begin_date?: number;
|
|
63
|
+
end_date?: number;
|
|
64
|
+
count_users?: number;
|
|
65
|
+
count_branches?: number;
|
|
66
|
+
subscription_code?: string;
|
|
67
|
+
subscription_name?: string;
|
|
68
|
+
expired?: boolean;
|
|
69
|
+
created_at?: number;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
interface GetOneResponse {
|
|
73
|
+
success: boolean;
|
|
74
|
+
data: GetOneResponse.Data;
|
|
75
|
+
}
|
|
76
|
+
namespace GetOneResponse {
|
|
77
|
+
interface Data {
|
|
78
|
+
_id: string;
|
|
79
|
+
code?: string;
|
|
80
|
+
name?: string;
|
|
81
|
+
company_count?: number;
|
|
82
|
+
life_year?: number;
|
|
83
|
+
method_pay?: MethodPay;
|
|
84
|
+
collection_method?: CollectionMethod;
|
|
85
|
+
enabled?: boolean;
|
|
86
|
+
created_at?: number;
|
|
87
|
+
created_user?: string;
|
|
88
|
+
updated_at?: number;
|
|
89
|
+
updated_user?: string;
|
|
90
|
+
companies?: Data.Company[];
|
|
91
|
+
modules?: Data.Module[];
|
|
92
|
+
}
|
|
93
|
+
namespace Data {
|
|
94
|
+
interface Company {
|
|
95
|
+
_id: string;
|
|
96
|
+
subscription_id?: string;
|
|
97
|
+
begin_date?: number;
|
|
98
|
+
end_date?: number;
|
|
99
|
+
count_users?: number;
|
|
100
|
+
count_branches?: number;
|
|
101
|
+
company_id?: string;
|
|
102
|
+
company?: Company.Company;
|
|
103
|
+
created_at?: number;
|
|
104
|
+
created_user?: string;
|
|
105
|
+
updated_at?: number;
|
|
106
|
+
updated_user?: string;
|
|
107
|
+
}
|
|
108
|
+
namespace Company {
|
|
109
|
+
interface Company {
|
|
110
|
+
_id: string;
|
|
111
|
+
country_id?: string;
|
|
112
|
+
NIF?: string;
|
|
113
|
+
business_name?: string;
|
|
114
|
+
address?: string;
|
|
115
|
+
trade_name?: string;
|
|
116
|
+
status?: string;
|
|
117
|
+
readonly?: boolean;
|
|
118
|
+
mandatory_accounting?: boolean;
|
|
119
|
+
withholding_agent?: boolean;
|
|
120
|
+
special_taxpayer?: boolean;
|
|
121
|
+
artisanal_qualification?: boolean;
|
|
122
|
+
default_account_plan?: boolean;
|
|
123
|
+
special_taxpayer_number?: null | string;
|
|
124
|
+
artisanal_qualification_number?: null | string;
|
|
125
|
+
enabled?: boolean;
|
|
126
|
+
created_user?: string;
|
|
127
|
+
created_at?: number;
|
|
128
|
+
accountant_name?: string;
|
|
129
|
+
email?: string;
|
|
130
|
+
manager_name?: string;
|
|
131
|
+
updated_at?: number;
|
|
132
|
+
updated_user?: string;
|
|
133
|
+
regime_id?: string;
|
|
134
|
+
expiration_signature_date?: number;
|
|
135
|
+
file_signature?: Company.FileSignature;
|
|
136
|
+
account_template_id?: string;
|
|
137
|
+
deleted: boolean;
|
|
138
|
+
regime: Company.Regime;
|
|
139
|
+
regime_name?: string;
|
|
140
|
+
withholding_agent_number?: string;
|
|
141
|
+
}
|
|
142
|
+
namespace Company {
|
|
143
|
+
interface FileSignature {
|
|
144
|
+
url?: string;
|
|
145
|
+
name?: string;
|
|
146
|
+
mimetype?: string;
|
|
147
|
+
}
|
|
148
|
+
interface Regime {
|
|
149
|
+
regime_code?: string;
|
|
150
|
+
regime_name?: string;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
interface Module {
|
|
155
|
+
_id: string;
|
|
156
|
+
subscription_id?: string;
|
|
157
|
+
module_id?: string;
|
|
158
|
+
enabled?: boolean;
|
|
159
|
+
module_name?: string;
|
|
160
|
+
created_at?: number;
|
|
161
|
+
created_user?: string;
|
|
162
|
+
updated_at?: number;
|
|
163
|
+
updated_user?: string;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
interface SaveBody {
|
|
168
|
+
name: string;
|
|
169
|
+
life_year: number;
|
|
170
|
+
method_pay: MethodPay;
|
|
171
|
+
collection_method: CollectionMethod;
|
|
172
|
+
companies: SaveBody.Company[];
|
|
173
|
+
modules: SaveBody.Module[];
|
|
174
|
+
}
|
|
175
|
+
namespace SaveBody {
|
|
176
|
+
interface Company {
|
|
177
|
+
count_branches: number;
|
|
178
|
+
count_users: number;
|
|
179
|
+
begin_date: number;
|
|
180
|
+
end_date: number;
|
|
181
|
+
}
|
|
182
|
+
interface Module {
|
|
183
|
+
module_id: string;
|
|
184
|
+
enabled: boolean;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
interface UpdateBody {
|
|
188
|
+
name: string;
|
|
189
|
+
life_year: number;
|
|
190
|
+
method_pay: string;
|
|
191
|
+
collection_method: string;
|
|
192
|
+
modules: UpdateBody.Module[];
|
|
193
|
+
}
|
|
194
|
+
namespace UpdateBody {
|
|
195
|
+
interface Module {
|
|
196
|
+
_id: string;
|
|
197
|
+
module_id: string;
|
|
198
|
+
enabled: boolean;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
interface UpdateCompaniesBody {
|
|
202
|
+
companies: UpdateCompaniesBody.Company[];
|
|
203
|
+
}
|
|
204
|
+
namespace UpdateCompaniesBody {
|
|
205
|
+
interface Company {
|
|
206
|
+
_id: string;
|
|
207
|
+
company_id: string;
|
|
208
|
+
begin_date: number;
|
|
209
|
+
end_date: number;
|
|
210
|
+
count_users: number;
|
|
211
|
+
count_branches: number;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
interface ConfirmResponse {
|
|
215
|
+
success: boolean;
|
|
216
|
+
message: string;
|
|
217
|
+
data?: any;
|
|
218
|
+
}
|
|
219
|
+
interface ListCompanySubscriptionPaginatedParams {
|
|
220
|
+
page: number;
|
|
221
|
+
size: number;
|
|
222
|
+
company_id: string;
|
|
223
|
+
}
|
|
224
|
+
interface ListCompanySubscriptionPaginatedResponse {
|
|
225
|
+
success: boolean;
|
|
226
|
+
pageNum: number;
|
|
227
|
+
pageSize: number;
|
|
228
|
+
pages: number;
|
|
229
|
+
total: number;
|
|
230
|
+
items: CompanySubscriptionPaginatedResponse.Item[];
|
|
231
|
+
}
|
|
232
|
+
namespace CompanySubscriptionPaginatedResponse {
|
|
233
|
+
interface Item {
|
|
234
|
+
_id: string;
|
|
235
|
+
company_id: string;
|
|
236
|
+
code: string;
|
|
237
|
+
type_support: string;
|
|
238
|
+
begin_date: number;
|
|
239
|
+
end_date: number;
|
|
240
|
+
count_users?: number;
|
|
241
|
+
count_storage?: number;
|
|
242
|
+
count_branch_read?: number;
|
|
243
|
+
count_branch_transactional?: number;
|
|
244
|
+
status: string;
|
|
245
|
+
enabled: boolean;
|
|
246
|
+
created_at: number;
|
|
247
|
+
created_user: string;
|
|
248
|
+
updated_at?: number;
|
|
249
|
+
updated_user?: string;
|
|
250
|
+
formatday: string;
|
|
251
|
+
name?: string;
|
|
252
|
+
type_use?: string;
|
|
253
|
+
period?: string;
|
|
254
|
+
base_user?: number;
|
|
255
|
+
base_branch?: number;
|
|
256
|
+
base_storage?: number;
|
|
257
|
+
user_id?: string;
|
|
258
|
+
module_count?: number;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
}
|
|
@@ -1,38 +1,31 @@
|
|
|
1
|
-
export declare namespace
|
|
2
|
-
interface ListParams {
|
|
3
|
-
name?: string;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
country_id
|
|
14
|
-
code
|
|
15
|
-
name
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
created_at?: number;
|
|
33
|
-
created_user?: string;
|
|
34
|
-
SRI_code?: string;
|
|
35
|
-
order?: number;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
1
|
+
export declare namespace CbmTaxRegimeModel {
|
|
2
|
+
interface ListParams {
|
|
3
|
+
name?: string;
|
|
4
|
+
}
|
|
5
|
+
interface ListResponse {
|
|
6
|
+
success: boolean;
|
|
7
|
+
data: ListResponse.Data[];
|
|
8
|
+
}
|
|
9
|
+
namespace ListResponse {
|
|
10
|
+
interface Data {
|
|
11
|
+
_id: string;
|
|
12
|
+
country?: string;
|
|
13
|
+
country_id?: string;
|
|
14
|
+
code?: string;
|
|
15
|
+
name?: string;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
interface GetOneResponse {
|
|
19
|
+
success: boolean;
|
|
20
|
+
data: GetOneResponse.Data;
|
|
21
|
+
}
|
|
22
|
+
namespace GetOneResponse {
|
|
23
|
+
interface Data {
|
|
24
|
+
_id: string;
|
|
25
|
+
country?: string;
|
|
26
|
+
country_id?: string;
|
|
27
|
+
code?: string;
|
|
28
|
+
name?: string;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|