@cbm-common/cbm-types 0.0.37 → 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/components/relationship-map/animations.d.ts +1 -0
- package/lib/components/relationship-map/components/map-node/map-node.component.d.ts +1 -0
- package/lib/components/relationship-map/components/map-node-parent/map-node-parent.component.d.ts +1 -0
- package/lib/components/relationship-map/components/map-node-tree/map-node-tree.component.d.ts +1 -0
- package/lib/domain/models/category.domain.model.d.ts +80 -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/service-category.domain.model.d.ts +131 -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/category.domain.repository.d.ts +9 -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/service-category.domain.repository.d.ts +13 -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/category.infrastructure.repository.d.ts +6 -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/service-category.infrastructure.repository.d.ts +10 -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/category.infrastructure.service.d.ts +11 -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/service-category.infrastructure..service.d.ts +15 -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/category.repository.d.ts +3 -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/service-category.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 -7
- package/package.json +1 -1
- package/public-api.d.ts +47 -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,131 @@
|
|
|
1
|
+
export declare namespace CbmServiceCategoryModel {
|
|
2
|
+
interface ListParams {
|
|
3
|
+
enabled?: boolean;
|
|
4
|
+
name?: string;
|
|
5
|
+
}
|
|
6
|
+
interface ListResponse {
|
|
7
|
+
success: boolean;
|
|
8
|
+
data: ListResponse.Data[];
|
|
9
|
+
}
|
|
10
|
+
namespace ListResponse {
|
|
11
|
+
interface Data {
|
|
12
|
+
_id: string;
|
|
13
|
+
company_id: string;
|
|
14
|
+
name: string;
|
|
15
|
+
nomenclature?: string;
|
|
16
|
+
last_number?: string;
|
|
17
|
+
separator: string;
|
|
18
|
+
income_account_id: string;
|
|
19
|
+
discount_account_id: string;
|
|
20
|
+
return_account_id: string;
|
|
21
|
+
enabled: boolean;
|
|
22
|
+
created_user: string;
|
|
23
|
+
created_at: number;
|
|
24
|
+
updated_at?: number;
|
|
25
|
+
updated_user?: string;
|
|
26
|
+
income_account: Data.Account;
|
|
27
|
+
discount_account: Data.Account;
|
|
28
|
+
return_account: Data.Account;
|
|
29
|
+
service_group_id: string;
|
|
30
|
+
}
|
|
31
|
+
namespace Data {
|
|
32
|
+
interface Account {
|
|
33
|
+
_id: string;
|
|
34
|
+
account_group_id: string;
|
|
35
|
+
company_id: string;
|
|
36
|
+
code: string;
|
|
37
|
+
name: string;
|
|
38
|
+
code_father: string;
|
|
39
|
+
level: number;
|
|
40
|
+
move: boolean;
|
|
41
|
+
confidential: boolean;
|
|
42
|
+
description: string;
|
|
43
|
+
enabled: boolean;
|
|
44
|
+
created_user: string;
|
|
45
|
+
created_at: number;
|
|
46
|
+
type: string;
|
|
47
|
+
updated_at?: number;
|
|
48
|
+
updated_user?: string;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
interface GetOneResponse {
|
|
53
|
+
success: boolean;
|
|
54
|
+
data: GetOneResponse.Data;
|
|
55
|
+
}
|
|
56
|
+
namespace GetOneResponse {
|
|
57
|
+
interface Data {
|
|
58
|
+
_id?: string;
|
|
59
|
+
company_id?: string;
|
|
60
|
+
name?: string;
|
|
61
|
+
nomenclature?: string;
|
|
62
|
+
last_number?: number;
|
|
63
|
+
separator?: string;
|
|
64
|
+
income_account_id?: string;
|
|
65
|
+
discount_account_id?: string;
|
|
66
|
+
return_account_id?: string;
|
|
67
|
+
enabled?: boolean;
|
|
68
|
+
deleted?: boolean;
|
|
69
|
+
deleted_at?: number;
|
|
70
|
+
deleted_user?: string;
|
|
71
|
+
user_inactive_at?: number;
|
|
72
|
+
user_inactive_id?: string;
|
|
73
|
+
user_inactive_name?: string;
|
|
74
|
+
disabled_reason?: string;
|
|
75
|
+
created_user?: string;
|
|
76
|
+
created_at?: number;
|
|
77
|
+
updated_at?: number;
|
|
78
|
+
updated_user?: string;
|
|
79
|
+
income_account?: Data.Account;
|
|
80
|
+
discount_account?: Data.Account;
|
|
81
|
+
return_account?: Data.Account;
|
|
82
|
+
service_group_id?: string;
|
|
83
|
+
}
|
|
84
|
+
namespace Data {
|
|
85
|
+
interface Account {
|
|
86
|
+
_id: string;
|
|
87
|
+
account_group_id: string;
|
|
88
|
+
company_id: string;
|
|
89
|
+
code: string;
|
|
90
|
+
name: string;
|
|
91
|
+
code_father: string;
|
|
92
|
+
level: number;
|
|
93
|
+
move: boolean;
|
|
94
|
+
confidential: boolean;
|
|
95
|
+
description: string;
|
|
96
|
+
enabled: boolean;
|
|
97
|
+
created_user: string;
|
|
98
|
+
created_at: number;
|
|
99
|
+
type: string;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
interface SaveBody {
|
|
104
|
+
name: string;
|
|
105
|
+
separator: string;
|
|
106
|
+
nomenclature: string;
|
|
107
|
+
last_number: number;
|
|
108
|
+
income_account_id: string;
|
|
109
|
+
discount_account_id: string;
|
|
110
|
+
return_account_id: string;
|
|
111
|
+
service_group_id: string;
|
|
112
|
+
}
|
|
113
|
+
interface UpdateBody {
|
|
114
|
+
name?: string;
|
|
115
|
+
separator?: string;
|
|
116
|
+
nomenclature?: string;
|
|
117
|
+
income_account_id?: string;
|
|
118
|
+
discount_account_id?: string;
|
|
119
|
+
return_account_id?: string;
|
|
120
|
+
service_group_id?: string;
|
|
121
|
+
}
|
|
122
|
+
interface ChangeStatusBody {
|
|
123
|
+
enabled: boolean;
|
|
124
|
+
disabled_reason?: string;
|
|
125
|
+
}
|
|
126
|
+
interface ConfirmResponse {
|
|
127
|
+
success: boolean;
|
|
128
|
+
message: string;
|
|
129
|
+
data?: any;
|
|
130
|
+
}
|
|
131
|
+
}
|