@cbm-common/cbm-types 0.0.19 → 0.0.21
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-client/add-client.d.ts +2 -2
- package/lib/components/add-client/animations.d.ts +1 -1
- package/lib/components/add-client/constants.d.ts +9 -9
- package/lib/components/add-client/types.d.ts +7 -7
- package/lib/domain/models/message-settings.domain.model.d.ts +193 -0
- package/lib/domain/repositories/cost-center.domain.repository.d.ts +1 -2
- package/lib/domain/repositories/message-settings.domain.repository.d.ts +13 -0
- package/lib/infrastructure/repositories/message-settings.infrastructure.repository.d.ts +10 -0
- package/lib/infrastructure/services/message-settings.infrastructure.service.d.ts +14 -0
- package/lib/remotes/components.remote.d.ts +1 -0
- package/lib/remotes/repositories/client.repository.d.ts +3 -0
- package/lib/remotes/repositories/cost-center.repository.d.ts +3 -0
- package/lib/remotes/repositories/item.repository.d.ts +3 -0
- package/lib/remotes/repositories/messages-settings.repository.d.ts +3 -0
- package/lib/remotes/repositories.remote.d.ts +1 -0
- package/package.json +1 -1
- package/public-api.d.ts +4 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare class CbmAddClientComponent {
|
|
2
|
-
}
|
|
1
|
+
export declare class CbmAddClientComponent {
|
|
2
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const fadeInOutAnimation: import("@angular/animations").AnimationTriggerMetadata;
|
|
1
|
+
export declare const fadeInOutAnimation: import("@angular/animations").AnimationTriggerMetadata;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export declare const DOCUMENT_TYPES_CODES: {
|
|
2
|
-
readonly RUC: "04";
|
|
3
|
-
readonly CEDULA: "05";
|
|
4
|
-
readonly PASAPORTE: "06";
|
|
5
|
-
readonly VENTA_A_CONSUMIDOR_FINAL: "07";
|
|
6
|
-
readonly IDENTIFICACION_DEL_EXTERIOR: "08";
|
|
7
|
-
};
|
|
8
|
-
export declare const PAGE_SIZE = 20;
|
|
9
|
-
export declare const phoneRegex: RegExp;
|
|
1
|
+
export declare const DOCUMENT_TYPES_CODES: {
|
|
2
|
+
readonly RUC: "04";
|
|
3
|
+
readonly CEDULA: "05";
|
|
4
|
+
readonly PASAPORTE: "06";
|
|
5
|
+
readonly VENTA_A_CONSUMIDOR_FINAL: "07";
|
|
6
|
+
readonly IDENTIFICACION_DEL_EXTERIOR: "08";
|
|
7
|
+
};
|
|
8
|
+
export declare const PAGE_SIZE = 20;
|
|
9
|
+
export declare const phoneRegex: RegExp;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export type TStatus = 'init' | 'loading' | 'success' | 'failed';
|
|
2
|
-
export interface IPagination {
|
|
3
|
-
page: number;
|
|
4
|
-
size: number;
|
|
5
|
-
totalPages: number | null;
|
|
6
|
-
totalRecords: number;
|
|
7
|
-
}
|
|
1
|
+
export type TStatus = 'init' | 'loading' | 'success' | 'failed';
|
|
2
|
+
export interface IPagination {
|
|
3
|
+
page: number;
|
|
4
|
+
size: number;
|
|
5
|
+
totalPages: number | null;
|
|
6
|
+
totalRecords: number;
|
|
7
|
+
}
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
export declare namespace CbmMessageSettingsModel {
|
|
2
|
+
interface ListParams {
|
|
3
|
+
event_module?: string;
|
|
4
|
+
code?: string;
|
|
5
|
+
reason_description?: string;
|
|
6
|
+
}
|
|
7
|
+
interface ListResponse {
|
|
8
|
+
success: boolean;
|
|
9
|
+
data: ListResponse.Data[];
|
|
10
|
+
}
|
|
11
|
+
namespace ListResponse {
|
|
12
|
+
interface Data {
|
|
13
|
+
_id: string;
|
|
14
|
+
code: string;
|
|
15
|
+
created_at: number;
|
|
16
|
+
created_user: string;
|
|
17
|
+
company_id: string;
|
|
18
|
+
document: string;
|
|
19
|
+
message: string;
|
|
20
|
+
event_module: string;
|
|
21
|
+
enabled: boolean;
|
|
22
|
+
deleted: boolean;
|
|
23
|
+
authorization?: boolean;
|
|
24
|
+
reason_data_country: Data.Reason[];
|
|
25
|
+
option_reason?: boolean;
|
|
26
|
+
updated_at?: number;
|
|
27
|
+
description_module?: string;
|
|
28
|
+
order?: number;
|
|
29
|
+
updated_user?: string;
|
|
30
|
+
}
|
|
31
|
+
namespace Data {
|
|
32
|
+
interface Reason {
|
|
33
|
+
reason_id: string;
|
|
34
|
+
code: string;
|
|
35
|
+
description_process: string;
|
|
36
|
+
description: string;
|
|
37
|
+
order: number;
|
|
38
|
+
enabled: boolean;
|
|
39
|
+
_id: string;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
interface ListLookForParams {
|
|
44
|
+
company_id?: string;
|
|
45
|
+
code?: string;
|
|
46
|
+
}
|
|
47
|
+
interface ListLookForResponse {
|
|
48
|
+
success: boolean;
|
|
49
|
+
data: ListLookForResponse.Data[];
|
|
50
|
+
}
|
|
51
|
+
namespace ListLookForResponse {
|
|
52
|
+
interface Data {
|
|
53
|
+
_id: string;
|
|
54
|
+
code: string;
|
|
55
|
+
created_at: number;
|
|
56
|
+
created_user: string;
|
|
57
|
+
company_id: string;
|
|
58
|
+
document: string;
|
|
59
|
+
message: string;
|
|
60
|
+
authorization?: boolean;
|
|
61
|
+
reason_data_country?: Data.Reason[];
|
|
62
|
+
option_reason?: boolean;
|
|
63
|
+
event_module: string;
|
|
64
|
+
enabled: boolean;
|
|
65
|
+
deleted: boolean;
|
|
66
|
+
}
|
|
67
|
+
namespace Data {
|
|
68
|
+
interface Reason {
|
|
69
|
+
reason_id?: string;
|
|
70
|
+
code?: string;
|
|
71
|
+
description?: string;
|
|
72
|
+
order?: number;
|
|
73
|
+
description_process?: string;
|
|
74
|
+
enabled?: boolean;
|
|
75
|
+
_id?: string;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
interface GetOneResponse {
|
|
80
|
+
success: boolean;
|
|
81
|
+
data: GetOneResponse.Data;
|
|
82
|
+
}
|
|
83
|
+
namespace GetOneResponse {
|
|
84
|
+
interface Data {
|
|
85
|
+
_id: string;
|
|
86
|
+
code: string;
|
|
87
|
+
created_at: number;
|
|
88
|
+
created_user: string;
|
|
89
|
+
company_id: string;
|
|
90
|
+
document: string;
|
|
91
|
+
message: string;
|
|
92
|
+
authorization?: boolean;
|
|
93
|
+
reason_data_country?: Data.Reason[];
|
|
94
|
+
option_reason?: boolean;
|
|
95
|
+
event_module: string;
|
|
96
|
+
enabled: boolean;
|
|
97
|
+
deleted: boolean;
|
|
98
|
+
}
|
|
99
|
+
namespace Data {
|
|
100
|
+
interface Reason {
|
|
101
|
+
reason_id?: string;
|
|
102
|
+
code?: string;
|
|
103
|
+
description?: string;
|
|
104
|
+
order?: number;
|
|
105
|
+
description_process?: string;
|
|
106
|
+
enabled?: boolean;
|
|
107
|
+
_id?: string;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
interface GetOneByDocumentParams {
|
|
112
|
+
document: string;
|
|
113
|
+
}
|
|
114
|
+
interface GetOneByDocumentResponse {
|
|
115
|
+
success: boolean;
|
|
116
|
+
data: GetOneByDocumentResponse.Data;
|
|
117
|
+
}
|
|
118
|
+
namespace GetOneByDocumentResponse {
|
|
119
|
+
interface Data {
|
|
120
|
+
_id: string;
|
|
121
|
+
code: string;
|
|
122
|
+
created_at: number;
|
|
123
|
+
created_user: string;
|
|
124
|
+
company_id: string;
|
|
125
|
+
document: string;
|
|
126
|
+
message: string;
|
|
127
|
+
event_module: string;
|
|
128
|
+
enabled: boolean;
|
|
129
|
+
deleted: boolean;
|
|
130
|
+
authorization?: boolean;
|
|
131
|
+
reason_data_country: Data.Reason[];
|
|
132
|
+
updated_at: number;
|
|
133
|
+
updated_user: string;
|
|
134
|
+
}
|
|
135
|
+
namespace Data {
|
|
136
|
+
interface Reason {
|
|
137
|
+
reason_id: string;
|
|
138
|
+
code: string;
|
|
139
|
+
description: string;
|
|
140
|
+
order: number;
|
|
141
|
+
description_process: string;
|
|
142
|
+
enabled: boolean;
|
|
143
|
+
_id: string;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
interface UpdateBody {
|
|
148
|
+
event_module?: string;
|
|
149
|
+
code?: string;
|
|
150
|
+
document?: string;
|
|
151
|
+
message?: string;
|
|
152
|
+
authorization?: boolean;
|
|
153
|
+
reason_data_country?: UpdateBody.Reason[];
|
|
154
|
+
}
|
|
155
|
+
namespace UpdateBody {
|
|
156
|
+
interface Reason {
|
|
157
|
+
reason_id?: string;
|
|
158
|
+
code?: string;
|
|
159
|
+
description_process?: string;
|
|
160
|
+
order?: number;
|
|
161
|
+
description?: string;
|
|
162
|
+
enabled?: boolean;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
interface SaveBody {
|
|
166
|
+
data: SaveBody.Data[];
|
|
167
|
+
}
|
|
168
|
+
namespace SaveBody {
|
|
169
|
+
interface Data {
|
|
170
|
+
event_module: string;
|
|
171
|
+
message: string;
|
|
172
|
+
code: string;
|
|
173
|
+
document: string;
|
|
174
|
+
authorization?: boolean;
|
|
175
|
+
reason_data_country: Data.Reason[];
|
|
176
|
+
}
|
|
177
|
+
namespace Data {
|
|
178
|
+
interface Reason {
|
|
179
|
+
reason_id: string;
|
|
180
|
+
code: string;
|
|
181
|
+
description_process: string;
|
|
182
|
+
order: number;
|
|
183
|
+
description: string;
|
|
184
|
+
enabled: boolean;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
interface ConfirmResponse {
|
|
189
|
+
success: boolean;
|
|
190
|
+
message: string;
|
|
191
|
+
data?: any;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
|
-
import { CbmCostCenterService } from "../../infrastructure/services/cost-center.infrastructure.service";
|
|
3
2
|
import { CbmCostCenterModel } from "../models/cost-center.domain.model";
|
|
4
3
|
import { ICbmCostCenterRepository } from "../../infrastructure/repositories/cost-center.infrastructure.repository";
|
|
5
4
|
export declare class CbmCostCenterRepository implements ICbmCostCenterRepository {
|
|
6
5
|
private service;
|
|
7
|
-
constructor(service:
|
|
6
|
+
constructor(service: ICbmCostCenterRepository);
|
|
8
7
|
list(params: CbmCostCenterModel.ListParams): Observable<CbmCostCenterModel.ListResponse>;
|
|
9
8
|
getOne(id: string): Observable<CbmCostCenterModel.GetOneResponse>;
|
|
10
9
|
save(data: CbmCostCenterModel.SaveBody): Observable<CbmCostCenterModel.ConfirmResponse>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import { ICbmMessageSettingsRepository } from "../../infrastructure/repositories/message-settings.infrastructure.repository";
|
|
3
|
+
import { CbmMessageSettingsModel } from "../models/message-settings.domain.model";
|
|
4
|
+
export declare class CbmMessageSettingsRepository implements ICbmMessageSettingsRepository {
|
|
5
|
+
private service;
|
|
6
|
+
constructor(service: ICbmMessageSettingsRepository);
|
|
7
|
+
list(params: CbmMessageSettingsModel.ListParams): Observable<CbmMessageSettingsModel.ListResponse>;
|
|
8
|
+
save(body: CbmMessageSettingsModel.SaveBody): Observable<CbmMessageSettingsModel.ConfirmResponse>;
|
|
9
|
+
lookFor(params: CbmMessageSettingsModel.ListLookForParams): Observable<CbmMessageSettingsModel.ListLookForResponse>;
|
|
10
|
+
getOne(id: string): Observable<CbmMessageSettingsModel.GetOneResponse>;
|
|
11
|
+
update(id: string, body: CbmMessageSettingsModel.UpdateBody): Observable<CbmMessageSettingsModel.ConfirmResponse>;
|
|
12
|
+
getOneByDocument(document: string): Observable<CbmMessageSettingsModel.GetOneByDocumentResponse>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import { CbmMessageSettingsModel } from "../../domain/models/message-settings.domain.model";
|
|
3
|
+
export interface ICbmMessageSettingsRepository {
|
|
4
|
+
list(params: CbmMessageSettingsModel.ListParams): Observable<CbmMessageSettingsModel.ListResponse>;
|
|
5
|
+
save(body: CbmMessageSettingsModel.SaveBody): Observable<CbmMessageSettingsModel.ConfirmResponse>;
|
|
6
|
+
lookFor(params: CbmMessageSettingsModel.ListLookForParams): Observable<CbmMessageSettingsModel.ListLookForResponse>;
|
|
7
|
+
getOne(id: string): Observable<CbmMessageSettingsModel.GetOneResponse>;
|
|
8
|
+
update(id: string, body: CbmMessageSettingsModel.UpdateBody): Observable<CbmMessageSettingsModel.ConfirmResponse>;
|
|
9
|
+
getOneByDocument(document: string): Observable<CbmMessageSettingsModel.GetOneByDocumentResponse>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import { CbmMessageSettingsModel } from "../../domain/models/message-settings.domain.model";
|
|
3
|
+
import { HttpClient } from "@angular/common/http";
|
|
4
|
+
export declare class CbmMessageSettingsService {
|
|
5
|
+
private http;
|
|
6
|
+
constructor(http: HttpClient);
|
|
7
|
+
private readonly url;
|
|
8
|
+
list(params: CbmMessageSettingsModel.ListParams): Observable<CbmMessageSettingsModel.ListResponse>;
|
|
9
|
+
save(body: CbmMessageSettingsModel.SaveBody): Observable<CbmMessageSettingsModel.ConfirmResponse>;
|
|
10
|
+
lookFor(params: CbmMessageSettingsModel.ListLookForParams): Observable<CbmMessageSettingsModel.ListLookForResponse>;
|
|
11
|
+
getOne(id: string): Observable<CbmMessageSettingsModel.GetOneResponse>;
|
|
12
|
+
update(id: string, body: CbmMessageSettingsModel.UpdateBody): Observable<CbmMessageSettingsModel.ConfirmResponse>;
|
|
13
|
+
getOneByDocument(document: string): Observable<CbmMessageSettingsModel.GetOneByDocumentResponse>;
|
|
14
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { CbmUserHistoryComponent } from "../components/user-history/user-history";
|
|
2
2
|
export { CbmModalConfirmComponent } from "../components/modal-confirm/modal-confirm";
|
|
3
3
|
export { CbmRecordDetailMetadataComponent } from "../components/record-detail-metadata/record-detail-metadata";
|
|
4
|
+
export { CbmDocumentsReferenceComponent } from "../components/documents-reference/documents-reference";
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -186,3 +186,7 @@ export * from './lib/components/pagination-nav/pagination-nav.model';
|
|
|
186
186
|
//#region tree select component
|
|
187
187
|
export * from './lib/components/tree-select/tree-select';
|
|
188
188
|
export * from './lib/components/tree-select/types';
|
|
189
|
+
|
|
190
|
+
//#region message settings repository
|
|
191
|
+
export * from './lib/domain/repositories/message-settings.domain.repository';
|
|
192
|
+
export * from './lib/domain/models/message-settings.domain.model';
|