@cbm-common/cbm-types 0.0.37 → 0.0.38
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/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/service-category.domain.model.d.ts +131 -0
- package/lib/domain/repositories/category.domain.repository.d.ts +9 -0
- package/lib/domain/repositories/service-category.domain.repository.d.ts +13 -0
- package/lib/infrastructure/repositories/category.infrastructure.repository.d.ts +6 -0
- package/lib/infrastructure/repositories/service-category.infrastructure.repository.d.ts +10 -0
- package/lib/infrastructure/services/category.infrastructure.service.d.ts +11 -0
- package/lib/infrastructure/services/service-category.infrastructure..service.d.ts +15 -0
- package/lib/remotes/repositories/category.repository.d.ts +3 -0
- package/lib/remotes/repositories/service-category.repository.d.ts +3 -0
- package/lib/remotes/repositories.remote.d.ts +2 -0
- package/package.json +1 -1
- package/public-api.d.ts +8 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const fadeInOutAnimation: import("@angular/animations").AnimationTriggerMetadata;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
export declare namespace CbmCategoryModel {
|
|
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
|
+
name?: string;
|
|
17
|
+
nomenclature?: string;
|
|
18
|
+
last_number?: number;
|
|
19
|
+
separator?: string;
|
|
20
|
+
enabled?: boolean;
|
|
21
|
+
disabled_reason?: string;
|
|
22
|
+
created_at?: number;
|
|
23
|
+
created_user?: string;
|
|
24
|
+
updated_at?: number;
|
|
25
|
+
updated_user?: string;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
interface GetOneWithAccountsResponse {
|
|
29
|
+
success: boolean;
|
|
30
|
+
data: GetOneWithAccountsResponse.Data;
|
|
31
|
+
}
|
|
32
|
+
namespace GetOneWithAccountsResponse {
|
|
33
|
+
interface Data {
|
|
34
|
+
_id: string;
|
|
35
|
+
company_id?: string;
|
|
36
|
+
group_id?: string;
|
|
37
|
+
name?: string;
|
|
38
|
+
nomenclature?: string;
|
|
39
|
+
last_number?: number;
|
|
40
|
+
separator?: string;
|
|
41
|
+
inventory_account_id?: string;
|
|
42
|
+
income_account_id?: string;
|
|
43
|
+
goods_receipts_account_id?: string;
|
|
44
|
+
discount_account_id?: string;
|
|
45
|
+
cost_account_id?: string;
|
|
46
|
+
enabled?: boolean;
|
|
47
|
+
disabled_reason?: string;
|
|
48
|
+
created_at?: number;
|
|
49
|
+
created_user?: string;
|
|
50
|
+
updated_at?: number;
|
|
51
|
+
updated_user?: string;
|
|
52
|
+
inventory_account?: Data.Account;
|
|
53
|
+
income_account?: Data.Account;
|
|
54
|
+
goods_receipts_account?: Data.Account;
|
|
55
|
+
discount_account?: Data.Account;
|
|
56
|
+
cost_account?: Data.Account;
|
|
57
|
+
}
|
|
58
|
+
namespace Data {
|
|
59
|
+
interface Account {
|
|
60
|
+
_id: string;
|
|
61
|
+
account_group_id?: string;
|
|
62
|
+
company_id?: string;
|
|
63
|
+
code?: string;
|
|
64
|
+
name?: string;
|
|
65
|
+
code_father?: string;
|
|
66
|
+
level?: number;
|
|
67
|
+
move?: boolean;
|
|
68
|
+
confidential?: boolean;
|
|
69
|
+
description?: string;
|
|
70
|
+
enabled?: boolean;
|
|
71
|
+
disabled_reason?: string;
|
|
72
|
+
deleted?: boolean;
|
|
73
|
+
created_at?: number;
|
|
74
|
+
created_user?: string;
|
|
75
|
+
updated_at?: number;
|
|
76
|
+
updated_user?: string;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { CbmCategoryModel } from '../models/category.domain.model';
|
|
3
|
+
import { ICbmCategoryRepository } from '../../infrastructure/repositories/category.infrastructure.repository';
|
|
4
|
+
export declare class CbmCategoryRepository implements ICbmCategoryRepository {
|
|
5
|
+
private service;
|
|
6
|
+
constructor(service: ICbmCategoryRepository);
|
|
7
|
+
list(params: CbmCategoryModel.ListParams): Observable<CbmCategoryModel.ListResponse>;
|
|
8
|
+
getOneWithAccounts(id: string): Observable<CbmCategoryModel.GetOneWithAccountsResponse>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import { CbmServiceCategoryModel } from "../models/service-category.domain.model";
|
|
3
|
+
import { ICbmServiceCategoryRepository } from "../../infrastructure/repositories/service-category.infrastructure.repository";
|
|
4
|
+
export declare class CbmServiceCategoryRepository implements ICbmServiceCategoryRepository {
|
|
5
|
+
private service;
|
|
6
|
+
constructor(service: ICbmServiceCategoryRepository);
|
|
7
|
+
list(params: CbmServiceCategoryModel.ListParams): Observable<CbmServiceCategoryModel.ListResponse>;
|
|
8
|
+
getOne(id: string): Observable<CbmServiceCategoryModel.GetOneResponse>;
|
|
9
|
+
save(data: CbmServiceCategoryModel.SaveBody): Observable<CbmServiceCategoryModel.ConfirmResponse>;
|
|
10
|
+
update(id: string, data: CbmServiceCategoryModel.UpdateBody): Observable<CbmServiceCategoryModel.ConfirmResponse>;
|
|
11
|
+
changeStatus(id: string, data: CbmServiceCategoryModel.ChangeStatusBody): Observable<CbmServiceCategoryModel.ConfirmResponse>;
|
|
12
|
+
delete(id: string): Observable<CbmServiceCategoryModel.ConfirmResponse>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import { CbmCategoryModel } from "../../domain/models/category.domain.model";
|
|
3
|
+
export interface ICbmCategoryRepository {
|
|
4
|
+
list(params: CbmCategoryModel.ListParams): Observable<CbmCategoryModel.ListResponse>;
|
|
5
|
+
getOneWithAccounts(id: string): Observable<CbmCategoryModel.GetOneWithAccountsResponse>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import { CbmServiceCategoryModel } from "../../domain/models/service-category.domain.model";
|
|
3
|
+
export interface ICbmServiceCategoryRepository {
|
|
4
|
+
list(params: CbmServiceCategoryModel.ListParams): Observable<CbmServiceCategoryModel.ListResponse>;
|
|
5
|
+
getOne(id: string): Observable<CbmServiceCategoryModel.GetOneResponse>;
|
|
6
|
+
save(data: CbmServiceCategoryModel.SaveBody): Observable<CbmServiceCategoryModel.ConfirmResponse>;
|
|
7
|
+
update(id: string, data: CbmServiceCategoryModel.UpdateBody): Observable<CbmServiceCategoryModel.ConfirmResponse>;
|
|
8
|
+
changeStatus(id: string, data: CbmServiceCategoryModel.ChangeStatusBody): Observable<CbmServiceCategoryModel.ConfirmResponse>;
|
|
9
|
+
delete(id: string): Observable<CbmServiceCategoryModel.ConfirmResponse>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { HttpClient } from '@angular/common/http';
|
|
3
|
+
import { ICbmCategoryRepository } from '../repositories/category.infrastructure.repository';
|
|
4
|
+
import { CbmCategoryModel } from '../../domain/models/category.domain.model';
|
|
5
|
+
export declare class CbmCategoryService implements ICbmCategoryRepository {
|
|
6
|
+
private http;
|
|
7
|
+
constructor(http: HttpClient);
|
|
8
|
+
private readonly url;
|
|
9
|
+
list(params: CbmCategoryModel.ListParams): Observable<CbmCategoryModel.ListResponse>;
|
|
10
|
+
getOneWithAccounts(id: string): Observable<CbmCategoryModel.GetOneWithAccountsResponse>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { ICbmServiceCategoryRepository } from '../repositories/service-category.infrastructure.repository';
|
|
3
|
+
import { HttpClient } from '@angular/common/http';
|
|
4
|
+
import { CbmServiceCategoryModel } from '../../domain/models/service-category.domain.model';
|
|
5
|
+
export declare class CbmServiceCategoryService implements ICbmServiceCategoryRepository {
|
|
6
|
+
private http;
|
|
7
|
+
constructor(http: HttpClient);
|
|
8
|
+
private readonly url;
|
|
9
|
+
list(params: CbmServiceCategoryModel.ListParams): Observable<CbmServiceCategoryModel.ListResponse>;
|
|
10
|
+
getOne(id: string): Observable<CbmServiceCategoryModel.GetOneResponse>;
|
|
11
|
+
save(data: CbmServiceCategoryModel.SaveBody): Observable<CbmServiceCategoryModel.ConfirmResponse>;
|
|
12
|
+
update(id: string, data: CbmServiceCategoryModel.UpdateBody): Observable<CbmServiceCategoryModel.ConfirmResponse>;
|
|
13
|
+
changeStatus(id: string, data: CbmServiceCategoryModel.ChangeStatusBody): Observable<CbmServiceCategoryModel.ConfirmResponse>;
|
|
14
|
+
delete(id: string): Observable<CbmServiceCategoryModel.ConfirmResponse>;
|
|
15
|
+
}
|
|
@@ -49,3 +49,5 @@ export * from './repositories/account.repository';
|
|
|
49
49
|
export * from './repositories/tax-iva.repository';
|
|
50
50
|
export * from './repositories/sequence.repository';
|
|
51
51
|
export * from './repositories/payment-term.repository';
|
|
52
|
+
export * from './repositories/category.repository';
|
|
53
|
+
export * from './repositories/service-category.repository';
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -276,3 +276,11 @@ export * from './lib/components/availability-board/availability-board.model';
|
|
|
276
276
|
// #region relationship component
|
|
277
277
|
export * from './lib/components/relationship-map/relationship-map';
|
|
278
278
|
export * from './lib/components/relationship-map/types';
|
|
279
|
+
|
|
280
|
+
// #region category repository
|
|
281
|
+
export * from './lib/domain/repositories/category.domain.repository';
|
|
282
|
+
export * from './lib/domain/models/category.domain.model';
|
|
283
|
+
|
|
284
|
+
// #region service category repository
|
|
285
|
+
export * from './lib/domain/repositories/service-category.domain.repository';
|
|
286
|
+
export * from './lib/domain/models/service-category.domain.model';
|