@cbm-common/cbm-types 0.0.1 → 0.0.2
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/package.json +1 -1
- package/src/lib/types/app/components/accounting-seat/accounting-seat.d.ts +32 -0
- package/src/lib/types/app/components/accounting-seat/directives/drop-down-menu.directive.d.ts +13 -0
- package/src/lib/types/app/components/accounting-seat/directives/drop-down.directive.d.ts +10 -0
- package/src/lib/types/app/components/accounting-seat/types.d.ts +1 -0
- package/src/lib/types/app/components/advanced-item-search-modal/advanced-item-search-modal.d.ts +25 -0
- package/src/lib/types/app/components/advanced-item-search-modal/alternative-item-list/alternative-item-list.d.ts +2 -0
- package/src/lib/types/app/components/advanced-item-search-modal/animations.d.ts +2 -0
- package/src/lib/types/app/components/advanced-item-search-modal/constants.d.ts +1 -0
- package/src/lib/types/app/components/advanced-item-search-modal/item-list/item-list.d.ts +2 -0
- package/src/lib/types/app/components/advanced-item-search-modal/types.d.ts +7 -0
- package/src/lib/types/app/components/modal-confirm/modal-confirm.d.ts +23 -0
- package/src/lib/types/app/components/modal-confirm/ng-content.d.ts +8 -0
- package/src/lib/types/app/components/modal-confirm/types.d.ts +6 -0
- package/src/lib/types/app/components/tree-select/tree-select.d.ts +60 -0
- package/src/lib/types/app/components/tree-select/types.d.ts +8 -0
- package/src/lib/types/app/components/user-history/components/email-history/email-history.component.d.ts +2 -2
- package/src/lib/types/app/components/user-history/components/general-history/general-history.component.d.ts +2 -2
- package/src/lib/types/app/components/user-history/components/print-history/print-history.component.d.ts +2 -2
- package/src/lib/types/app/components/user-history/components/sri-history/sri-history.component.d.ts +1 -1
- package/src/lib/types/app/components/user-history/user-history.d.ts +1 -1
- package/src/lib/types/app/domain/models/alternative-item.domain.model.d.ts +198 -0
- package/src/lib/types/app/domain/models/company.domain.model.d.ts +354 -0
- package/src/lib/types/app/domain/models/email-settings.domain.model.d.ts +86 -0
- package/src/lib/types/app/domain/models/group.domain.model.d.ts +78 -0
- package/src/lib/types/app/domain/models/history.domain.model.d.ts +66 -0
- package/src/lib/types/app/domain/models/item.domain.model.d.ts +935 -0
- package/src/lib/types/app/domain/models/price-list.domain.model.d.ts +54 -0
- package/src/lib/types/app/domain/models/report-financials.domain.model.d.ts +2165 -0
- package/src/lib/types/app/domain/models/seat.domain.model.d.ts +325 -0
- package/src/lib/types/app/domain/models/user.domain.model.d.ts +260 -0
- package/src/lib/types/app/domain/repositories/alternative-item.domain.repository.d.ts +18 -0
- package/src/lib/types/app/domain/repositories/company.domain.repository.d.ts +16 -0
- package/src/lib/types/app/domain/repositories/email-settings.domain.repository.d.ts +1 -1
- package/src/lib/types/app/domain/repositories/group.domain.repository.d.ts +10 -0
- package/src/lib/types/app/domain/repositories/history.domain.repository.d.ts +1 -1
- package/src/lib/types/app/domain/repositories/item.domain.repository.d.ts +21 -0
- package/src/lib/types/app/domain/repositories/price-list.domain.repository.d.ts +10 -0
- package/src/lib/types/app/domain/repositories/report-financials.domain.repository.d.ts +242 -0
- package/src/lib/types/app/domain/repositories/seat.domain.repository.d.ts +21 -0
- package/src/lib/types/app/domain/repositories/user.domain.repository.d.ts +1 -1
- package/src/lib/types/app/domain/services/auth/auth.model.d.ts +182 -0
- package/src/lib/types/app/domain/services/auth/auth.service.d.ts +18 -0
- package/src/lib/types/app/infrastructure/repositories/alternative-item.infrastructure.repository.d.ts +14 -0
- package/src/lib/types/app/infrastructure/repositories/company.infrastructure.repository.d.ts +13 -0
- package/src/lib/types/app/infrastructure/repositories/email-settings.infrastructure.repository.d.ts +1 -1
- package/src/lib/types/app/infrastructure/repositories/group.infrastructure.repository.d.ts +6 -0
- package/src/lib/types/app/infrastructure/repositories/history.infrastructure.repository.d.ts +1 -1
- package/src/lib/types/app/infrastructure/repositories/item.infrastructure.repository.d.ts +17 -0
- package/src/lib/types/app/infrastructure/repositories/price-list.infrastructure.repository.d.ts +6 -0
- package/src/lib/types/app/infrastructure/repositories/report-financials.infrastructure.repository.d.ts +146 -0
- package/src/lib/types/app/infrastructure/repositories/seat.infrastructure.repository.d.ts +17 -0
- package/src/lib/types/app/infrastructure/repositories/user.infrastructure.repository.d.ts +1 -1
- package/src/lib/types/app/infrastructure/services/alternative-item.infrastructure.service.d.ts +19 -0
- package/src/lib/types/app/infrastructure/services/company.infrastructure.service.d.ts +17 -0
- package/src/lib/types/app/infrastructure/services/email-settings.infrastruture.service.d.ts +1 -1
- package/src/lib/types/app/infrastructure/services/group.infrastructure.service.d.ts +11 -0
- package/src/lib/types/app/infrastructure/services/history.infrastructure.service.d.ts +1 -1
- package/src/lib/types/app/infrastructure/services/item.infrastructure.service.d.ts +21 -0
- package/src/lib/types/app/infrastructure/services/price-list.infrastructure.service.d.ts +11 -0
- package/src/lib/types/app/infrastructure/services/report-financials.infrastructure.service.d.ts +246 -0
- package/src/lib/types/app/infrastructure/services/seat.infrastructure.service.d.ts +21 -0
- package/src/lib/types/app/infrastructure/services/user.infrastructure.service.d.ts +1 -1
- package/src/lib/types/app/remotes/components.remote.d.ts +1 -0
- package/src/lib/types/app/remotes/repositories.romote.d.ts +0 -0
- package/src/lib/types/app/remotes/services.remote.d.ts +1 -0
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
export declare namespace CbmSeatModel {
|
|
2
|
+
interface ListParams {
|
|
3
|
+
dateUntil: number;
|
|
4
|
+
dateFrom: number;
|
|
5
|
+
document_number?: string;
|
|
6
|
+
document_name?: string;
|
|
7
|
+
number?: string;
|
|
8
|
+
collection_id?: string;
|
|
9
|
+
}
|
|
10
|
+
interface ListResponse {
|
|
11
|
+
success: boolean;
|
|
12
|
+
data: ListResponse.Data[];
|
|
13
|
+
}
|
|
14
|
+
namespace ListResponse {
|
|
15
|
+
interface Data {
|
|
16
|
+
_id?: string;
|
|
17
|
+
company_id?: string;
|
|
18
|
+
company_branch_id?: string;
|
|
19
|
+
collection_origin_id?: string;
|
|
20
|
+
collection_origin_name?: string;
|
|
21
|
+
nomenclature?: string;
|
|
22
|
+
number?: string;
|
|
23
|
+
document_name?: string;
|
|
24
|
+
document_number?: string;
|
|
25
|
+
date?: number;
|
|
26
|
+
generation_type?: string;
|
|
27
|
+
description?: string;
|
|
28
|
+
observation?: string;
|
|
29
|
+
enabled?: boolean;
|
|
30
|
+
created_user?: string;
|
|
31
|
+
created_at?: number;
|
|
32
|
+
sequence_id?: string;
|
|
33
|
+
sequence_module?: string;
|
|
34
|
+
sequence_options?: string;
|
|
35
|
+
sequence_nomenclature?: string;
|
|
36
|
+
sequence_number?: string;
|
|
37
|
+
updated_at?: number;
|
|
38
|
+
updated_user?: string;
|
|
39
|
+
collection_id?: string;
|
|
40
|
+
account_document_type_id?: string;
|
|
41
|
+
disabled_reason?: string;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
interface GetOneResponse {
|
|
45
|
+
success: boolean;
|
|
46
|
+
data: GetOneResponse.Data;
|
|
47
|
+
}
|
|
48
|
+
namespace GetOneResponse {
|
|
49
|
+
interface Data {
|
|
50
|
+
_id?: string;
|
|
51
|
+
company_id?: string;
|
|
52
|
+
company_branch_id?: string;
|
|
53
|
+
collection_origin_id?: string;
|
|
54
|
+
collection_origin_name?: string;
|
|
55
|
+
nomenclature?: string;
|
|
56
|
+
number?: string;
|
|
57
|
+
document_name?: string;
|
|
58
|
+
document_number?: string;
|
|
59
|
+
date?: number;
|
|
60
|
+
generation_type?: string;
|
|
61
|
+
description?: string;
|
|
62
|
+
observation?: string;
|
|
63
|
+
enabled?: boolean;
|
|
64
|
+
created_user?: string;
|
|
65
|
+
created_at?: number;
|
|
66
|
+
detailsSeat?: Data.Detail[];
|
|
67
|
+
}
|
|
68
|
+
namespace Data {
|
|
69
|
+
interface Detail {
|
|
70
|
+
_id?: string;
|
|
71
|
+
seat_id?: string;
|
|
72
|
+
account_id?: string;
|
|
73
|
+
cost_center_id?: string;
|
|
74
|
+
reference_number?: string;
|
|
75
|
+
description?: string;
|
|
76
|
+
recipient?: string;
|
|
77
|
+
operation_number?: string;
|
|
78
|
+
debit?: number;
|
|
79
|
+
credit?: number;
|
|
80
|
+
generation_type?: string;
|
|
81
|
+
created_user?: string;
|
|
82
|
+
created_at?: number;
|
|
83
|
+
account?: Detail.Account;
|
|
84
|
+
cost_center?: Detail.CostCenter[];
|
|
85
|
+
}
|
|
86
|
+
namespace Detail {
|
|
87
|
+
interface Account {
|
|
88
|
+
_id?: string;
|
|
89
|
+
account_group_id?: string;
|
|
90
|
+
company_id?: string;
|
|
91
|
+
code?: string;
|
|
92
|
+
name?: string;
|
|
93
|
+
code_father?: string;
|
|
94
|
+
level?: number;
|
|
95
|
+
move?: boolean;
|
|
96
|
+
confidential?: boolean;
|
|
97
|
+
description?: string;
|
|
98
|
+
enabled?: boolean;
|
|
99
|
+
deleted?: boolean;
|
|
100
|
+
created_user?: string;
|
|
101
|
+
created_at?: number;
|
|
102
|
+
}
|
|
103
|
+
interface CostCenter {
|
|
104
|
+
_id?: string;
|
|
105
|
+
company_id?: string;
|
|
106
|
+
code?: string;
|
|
107
|
+
name?: string;
|
|
108
|
+
description?: string;
|
|
109
|
+
level?: number;
|
|
110
|
+
move?: boolean;
|
|
111
|
+
enabled?: boolean;
|
|
112
|
+
deleted?: boolean;
|
|
113
|
+
created_at?: number;
|
|
114
|
+
created_user?: string;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
interface SaveBody {
|
|
120
|
+
document_number: string;
|
|
121
|
+
date: number;
|
|
122
|
+
description: string;
|
|
123
|
+
observation: string;
|
|
124
|
+
seat_detail: SaveBody.Detail[];
|
|
125
|
+
}
|
|
126
|
+
namespace SaveBody {
|
|
127
|
+
interface Detail {
|
|
128
|
+
account_id: string;
|
|
129
|
+
cost_center_id: string;
|
|
130
|
+
reference_number: string;
|
|
131
|
+
description: string;
|
|
132
|
+
recipient: string;
|
|
133
|
+
operation_number: string;
|
|
134
|
+
debit: number;
|
|
135
|
+
credit: number;
|
|
136
|
+
generation_type: string;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
interface UpdateBody {
|
|
140
|
+
document_number?: string;
|
|
141
|
+
date?: number;
|
|
142
|
+
description?: string;
|
|
143
|
+
observation?: string;
|
|
144
|
+
seat_detail?: UpdateBody.Detail[];
|
|
145
|
+
}
|
|
146
|
+
namespace UpdateBody {
|
|
147
|
+
interface Detail {
|
|
148
|
+
account_id?: string;
|
|
149
|
+
cost_center_id?: string;
|
|
150
|
+
reference_number?: string;
|
|
151
|
+
description?: string;
|
|
152
|
+
recipient?: string;
|
|
153
|
+
operation_number?: string;
|
|
154
|
+
debit?: number;
|
|
155
|
+
credit?: number;
|
|
156
|
+
generation_type?: string;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
interface ChangeStatusBody {
|
|
160
|
+
enabled: boolean;
|
|
161
|
+
disabled_reason?: string;
|
|
162
|
+
}
|
|
163
|
+
interface ConfirmResponse {
|
|
164
|
+
success: boolean;
|
|
165
|
+
message: string;
|
|
166
|
+
data?: any;
|
|
167
|
+
}
|
|
168
|
+
interface DownloadExcelParams {
|
|
169
|
+
dateUntil: number;
|
|
170
|
+
dateFrom: number;
|
|
171
|
+
document_number?: string;
|
|
172
|
+
document_name?: string;
|
|
173
|
+
number?: string;
|
|
174
|
+
collection_id?: string;
|
|
175
|
+
}
|
|
176
|
+
interface DownloadGeneralPdfParams {
|
|
177
|
+
deteUntil: number;
|
|
178
|
+
dateFrom: number;
|
|
179
|
+
document_number?: string;
|
|
180
|
+
document_name?: string;
|
|
181
|
+
number?: string;
|
|
182
|
+
collection_id?: string;
|
|
183
|
+
}
|
|
184
|
+
interface DownloadIndividualPdfParams {
|
|
185
|
+
timezone: string;
|
|
186
|
+
locale: string;
|
|
187
|
+
id: string;
|
|
188
|
+
}
|
|
189
|
+
interface DownloadIndividualExcelParams {
|
|
190
|
+
timezone: string;
|
|
191
|
+
locale: string;
|
|
192
|
+
id: string;
|
|
193
|
+
}
|
|
194
|
+
interface FindByFilterParams {
|
|
195
|
+
collection_origin_name: string;
|
|
196
|
+
collection_origin_id: string;
|
|
197
|
+
}
|
|
198
|
+
interface FindByFilterResponse {
|
|
199
|
+
success: boolean;
|
|
200
|
+
data: FindByFilterResponse.Data;
|
|
201
|
+
}
|
|
202
|
+
namespace FindByFilterResponse {
|
|
203
|
+
interface Data {
|
|
204
|
+
_id?: string;
|
|
205
|
+
company_id?: string;
|
|
206
|
+
company_branch_id?: string;
|
|
207
|
+
collection_origin_id?: string;
|
|
208
|
+
collection_origin_name?: string;
|
|
209
|
+
sequence_nomenclature?: string;
|
|
210
|
+
sequence_number?: string;
|
|
211
|
+
document_name?: string;
|
|
212
|
+
document_number?: number;
|
|
213
|
+
date?: number;
|
|
214
|
+
generation_type?: string;
|
|
215
|
+
description?: string;
|
|
216
|
+
observation?: string;
|
|
217
|
+
enabled?: boolean;
|
|
218
|
+
created_user?: string;
|
|
219
|
+
created_at?: number;
|
|
220
|
+
updated_user?: string;
|
|
221
|
+
updated_at?: number;
|
|
222
|
+
detailsSeat?: Data.Detail[];
|
|
223
|
+
total_debit?: number;
|
|
224
|
+
total_credit?: number;
|
|
225
|
+
}
|
|
226
|
+
namespace Data {
|
|
227
|
+
interface Detail {
|
|
228
|
+
_id: string;
|
|
229
|
+
seat_id: string;
|
|
230
|
+
account_id: string;
|
|
231
|
+
cost_center_id: string;
|
|
232
|
+
cost_center_code: string;
|
|
233
|
+
cost_center_name: string;
|
|
234
|
+
reference_number: number;
|
|
235
|
+
description: string;
|
|
236
|
+
recipient: string;
|
|
237
|
+
debit: number;
|
|
238
|
+
credit: number;
|
|
239
|
+
generation_type: string;
|
|
240
|
+
account_code: string;
|
|
241
|
+
account_name: string;
|
|
242
|
+
account_code_father: string;
|
|
243
|
+
account_description: string;
|
|
244
|
+
cost_center_code_father?: string;
|
|
245
|
+
cost_center_name_father?: string;
|
|
246
|
+
created_at: number;
|
|
247
|
+
created_user: string;
|
|
248
|
+
udpated_at?: number;
|
|
249
|
+
updated_user?: string;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
interface FindAccountingMovementsResponse {
|
|
254
|
+
success: boolean;
|
|
255
|
+
data?: FindAccountingMovementsResponse.Data;
|
|
256
|
+
message: string;
|
|
257
|
+
}
|
|
258
|
+
namespace FindAccountingMovementsResponse {
|
|
259
|
+
interface Data {
|
|
260
|
+
_id: string;
|
|
261
|
+
company_id: string;
|
|
262
|
+
company_branch_id: string;
|
|
263
|
+
country_id: string;
|
|
264
|
+
bank_conciliation_id: string;
|
|
265
|
+
seat_id: string;
|
|
266
|
+
seat_detail_id: string;
|
|
267
|
+
seat_detail_document_number: string;
|
|
268
|
+
seat_date: number;
|
|
269
|
+
seat_detail_type: string;
|
|
270
|
+
seat_detail_operation_number: string;
|
|
271
|
+
seat_detail_value: number;
|
|
272
|
+
seat_origin_document: string;
|
|
273
|
+
seat_origin_document_number: string;
|
|
274
|
+
seat_description: string;
|
|
275
|
+
seat_collection_origin_id: string;
|
|
276
|
+
seat_collection_origin_name: string;
|
|
277
|
+
has_upload_relationship: boolean;
|
|
278
|
+
type_conciliation: string;
|
|
279
|
+
motion_conciliation: boolean;
|
|
280
|
+
created_at: number;
|
|
281
|
+
created_user: string;
|
|
282
|
+
updated_at: number;
|
|
283
|
+
updated_user: string;
|
|
284
|
+
company_NIF: string;
|
|
285
|
+
company_address: string;
|
|
286
|
+
company_trade_name: string;
|
|
287
|
+
company_business_name: string;
|
|
288
|
+
company_branch_identification_number: string;
|
|
289
|
+
company_branch_trade_name: string;
|
|
290
|
+
company_branch_address: string;
|
|
291
|
+
company_branch_email: string;
|
|
292
|
+
company_branch_cellphone: string;
|
|
293
|
+
company_branch_phone: string;
|
|
294
|
+
company_branch_logo: string;
|
|
295
|
+
country_code: string;
|
|
296
|
+
country_name: string;
|
|
297
|
+
country_short_name: string;
|
|
298
|
+
period_id: string;
|
|
299
|
+
period_year: string;
|
|
300
|
+
date_begin: number;
|
|
301
|
+
date_end: number;
|
|
302
|
+
document_nomenclature: string;
|
|
303
|
+
document_number: string;
|
|
304
|
+
bank_id: string;
|
|
305
|
+
bank_name: string;
|
|
306
|
+
bank_account_number: string;
|
|
307
|
+
status: string;
|
|
308
|
+
pending_balance: number;
|
|
309
|
+
conciliation_balance: number;
|
|
310
|
+
accounting_balance: number;
|
|
311
|
+
difference: number;
|
|
312
|
+
pending_balance_former: number;
|
|
313
|
+
conciliation_balance_former: number;
|
|
314
|
+
accounting_balance_former: number;
|
|
315
|
+
deleted: boolean;
|
|
316
|
+
enabled: boolean;
|
|
317
|
+
user_id: string;
|
|
318
|
+
deleted_at: number;
|
|
319
|
+
bank_coniliation_document_nomenclature: string;
|
|
320
|
+
bank_coniliation_document_number: string;
|
|
321
|
+
bank_coniliation_created_at: number;
|
|
322
|
+
bank_coniliation_status: string;
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
}
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
export declare namespace CbmUserModel {
|
|
2
|
+
interface ListParams {
|
|
3
|
+
page: number;
|
|
4
|
+
size: number;
|
|
5
|
+
enabled?: boolean;
|
|
6
|
+
filter?: string;
|
|
7
|
+
seller?: boolean;
|
|
8
|
+
deleted?: boolean;
|
|
9
|
+
}
|
|
10
|
+
interface ListResponse {
|
|
11
|
+
success: boolean;
|
|
12
|
+
pageNum: number;
|
|
13
|
+
pageSize: number;
|
|
14
|
+
total: number;
|
|
15
|
+
pages: number;
|
|
16
|
+
items: ListResponse.Item[];
|
|
17
|
+
}
|
|
18
|
+
namespace ListResponse {
|
|
19
|
+
interface Item {
|
|
20
|
+
_id: string;
|
|
21
|
+
document_type_id?: string;
|
|
22
|
+
document_type_name?: string;
|
|
23
|
+
document_type_code?: string;
|
|
24
|
+
document: string;
|
|
25
|
+
name: string;
|
|
26
|
+
lastname: string;
|
|
27
|
+
address: string;
|
|
28
|
+
email: string;
|
|
29
|
+
cellphone: string;
|
|
30
|
+
super_admin: boolean;
|
|
31
|
+
photo: string;
|
|
32
|
+
access_app: boolean;
|
|
33
|
+
multi_company: boolean;
|
|
34
|
+
enabled: boolean;
|
|
35
|
+
deleted?: boolean;
|
|
36
|
+
deleted_at?: number;
|
|
37
|
+
deleted_user?: string;
|
|
38
|
+
created_at: number;
|
|
39
|
+
full_name?: string;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
interface ListByCompanyParams {
|
|
43
|
+
page: number;
|
|
44
|
+
size: number;
|
|
45
|
+
deleted?: boolean;
|
|
46
|
+
enabled?: boolean;
|
|
47
|
+
filter?: string;
|
|
48
|
+
company_id?: string;
|
|
49
|
+
verified?: boolean;
|
|
50
|
+
multi_company?: boolean;
|
|
51
|
+
access_app?: boolean;
|
|
52
|
+
super_admin?: boolean;
|
|
53
|
+
}
|
|
54
|
+
interface ListByCompanyResponse {
|
|
55
|
+
success: boolean;
|
|
56
|
+
pageNum: number;
|
|
57
|
+
pageSize: number;
|
|
58
|
+
pages: number;
|
|
59
|
+
total: number;
|
|
60
|
+
items: ListByCompanyResponse.Item[];
|
|
61
|
+
used_users?: number;
|
|
62
|
+
count_users?: number;
|
|
63
|
+
}
|
|
64
|
+
namespace ListByCompanyResponse {
|
|
65
|
+
interface Item {
|
|
66
|
+
_id: string;
|
|
67
|
+
user_id?: string;
|
|
68
|
+
company_id?: string;
|
|
69
|
+
created_at?: number;
|
|
70
|
+
created_user?: string;
|
|
71
|
+
enabled?: boolean;
|
|
72
|
+
deleted?: boolean;
|
|
73
|
+
deleted_at?: number;
|
|
74
|
+
deleted_user?: string;
|
|
75
|
+
user_inactive_at?: number;
|
|
76
|
+
user_inactive_name?: string;
|
|
77
|
+
user_active_at?: number;
|
|
78
|
+
user_active_name?: string;
|
|
79
|
+
user_active_id?: string;
|
|
80
|
+
user: Item.User;
|
|
81
|
+
}
|
|
82
|
+
namespace Item {
|
|
83
|
+
interface User {
|
|
84
|
+
_id: string;
|
|
85
|
+
document_type_id?: string;
|
|
86
|
+
document_type_name?: string;
|
|
87
|
+
document_type_code?: string;
|
|
88
|
+
document: string;
|
|
89
|
+
password: string;
|
|
90
|
+
name: string;
|
|
91
|
+
lastname: string;
|
|
92
|
+
address: string;
|
|
93
|
+
email: string;
|
|
94
|
+
cellphone: string;
|
|
95
|
+
super_admin: boolean;
|
|
96
|
+
photo: string;
|
|
97
|
+
access_app: boolean;
|
|
98
|
+
multi_company: boolean;
|
|
99
|
+
enabled: boolean;
|
|
100
|
+
deleted?: boolean;
|
|
101
|
+
deleted_at?: number;
|
|
102
|
+
deleted_user?: string;
|
|
103
|
+
created_at: number;
|
|
104
|
+
created_user: string;
|
|
105
|
+
verified: boolean;
|
|
106
|
+
last_access_at?: Date;
|
|
107
|
+
updated_at?: number;
|
|
108
|
+
updated_user?: string;
|
|
109
|
+
ip?: string[];
|
|
110
|
+
disabled_reason?: string;
|
|
111
|
+
user_inactive_at?: number;
|
|
112
|
+
user_inactive_id?: string;
|
|
113
|
+
user_inactive_name?: string;
|
|
114
|
+
user_active_at?: number;
|
|
115
|
+
user_active_id?: string;
|
|
116
|
+
user_active_name?: string;
|
|
117
|
+
username?: string;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
interface GetOneResponse {
|
|
122
|
+
success?: boolean;
|
|
123
|
+
data?: GetOneResponse.Data;
|
|
124
|
+
}
|
|
125
|
+
namespace GetOneResponse {
|
|
126
|
+
interface Data {
|
|
127
|
+
_id: string;
|
|
128
|
+
document_type_id?: string;
|
|
129
|
+
document_type_name?: string;
|
|
130
|
+
document_type_code?: string;
|
|
131
|
+
document?: string;
|
|
132
|
+
lastname?: string;
|
|
133
|
+
name?: string;
|
|
134
|
+
address?: string;
|
|
135
|
+
email?: string;
|
|
136
|
+
cellphone?: string;
|
|
137
|
+
super_admin?: boolean;
|
|
138
|
+
photo?: string;
|
|
139
|
+
access_app?: boolean;
|
|
140
|
+
multi_company?: boolean;
|
|
141
|
+
enabled?: boolean;
|
|
142
|
+
created_at?: number;
|
|
143
|
+
created_user?: string;
|
|
144
|
+
updated_at?: number;
|
|
145
|
+
updated_user?: string;
|
|
146
|
+
ip?: Data.IP[];
|
|
147
|
+
deleted?: boolean;
|
|
148
|
+
deleted_at?: number;
|
|
149
|
+
deleted_user?: string;
|
|
150
|
+
role?: Data.Role[];
|
|
151
|
+
disabled_reason?: string;
|
|
152
|
+
user_inactive_at?: number;
|
|
153
|
+
user_inactive_id?: string;
|
|
154
|
+
user_inactive_name?: string;
|
|
155
|
+
verified?: boolean;
|
|
156
|
+
last_access_at?: number;
|
|
157
|
+
user_active_at?: number;
|
|
158
|
+
user_active_id?: string;
|
|
159
|
+
user_active_name?: string;
|
|
160
|
+
phone_code?: string;
|
|
161
|
+
}
|
|
162
|
+
namespace Data {
|
|
163
|
+
interface Role {
|
|
164
|
+
_id: string;
|
|
165
|
+
name?: string;
|
|
166
|
+
description?: string;
|
|
167
|
+
type?: string;
|
|
168
|
+
enabled?: boolean;
|
|
169
|
+
deleted?: boolean;
|
|
170
|
+
created_at?: number;
|
|
171
|
+
created_user?: string;
|
|
172
|
+
updated_at?: number;
|
|
173
|
+
disabled_reason?: string;
|
|
174
|
+
company_id?: string;
|
|
175
|
+
updated_user?: string;
|
|
176
|
+
user_inactive_at?: number;
|
|
177
|
+
user_inactive_id?: string;
|
|
178
|
+
user_inactive_name?: string;
|
|
179
|
+
user_active_at?: number;
|
|
180
|
+
user_active_id?: string;
|
|
181
|
+
user_active_name?: string;
|
|
182
|
+
}
|
|
183
|
+
interface IP {
|
|
184
|
+
ip?: string;
|
|
185
|
+
enabled?: boolean;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
interface SaveBody {
|
|
190
|
+
document_type_id?: string;
|
|
191
|
+
document_type_name?: string;
|
|
192
|
+
document_type_code?: string;
|
|
193
|
+
document?: string;
|
|
194
|
+
password?: string;
|
|
195
|
+
lastname?: string;
|
|
196
|
+
name?: string;
|
|
197
|
+
address?: string;
|
|
198
|
+
email?: string;
|
|
199
|
+
cellphone?: string;
|
|
200
|
+
super_admin?: boolean;
|
|
201
|
+
photo?: string;
|
|
202
|
+
access_app?: boolean;
|
|
203
|
+
multi_company?: boolean;
|
|
204
|
+
ip?: any[];
|
|
205
|
+
rol_id?: string;
|
|
206
|
+
company_branch?: string[];
|
|
207
|
+
}
|
|
208
|
+
interface UpdateBody {
|
|
209
|
+
password?: string;
|
|
210
|
+
photo?: string;
|
|
211
|
+
document_type_id?: string;
|
|
212
|
+
document_type_name?: string;
|
|
213
|
+
document_type_code?: string;
|
|
214
|
+
document?: string;
|
|
215
|
+
lastname?: string;
|
|
216
|
+
name?: string;
|
|
217
|
+
address?: string;
|
|
218
|
+
email?: string;
|
|
219
|
+
cellphone?: string;
|
|
220
|
+
super_admin?: boolean;
|
|
221
|
+
ip?: string[];
|
|
222
|
+
}
|
|
223
|
+
interface UpdatePasswordBody {
|
|
224
|
+
password: string;
|
|
225
|
+
confirm_password: string;
|
|
226
|
+
}
|
|
227
|
+
interface UpdateEmailBody {
|
|
228
|
+
email?: string;
|
|
229
|
+
company_id?: string;
|
|
230
|
+
}
|
|
231
|
+
interface UpdateSuperAdminBody {
|
|
232
|
+
super_admin?: boolean;
|
|
233
|
+
}
|
|
234
|
+
interface UpdateIp {
|
|
235
|
+
ip: UpdateIp.IP[];
|
|
236
|
+
}
|
|
237
|
+
namespace UpdateIp {
|
|
238
|
+
interface IP {
|
|
239
|
+
ip?: string;
|
|
240
|
+
enabled?: boolean;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
interface ValidatePasswordBody {
|
|
244
|
+
password: string;
|
|
245
|
+
}
|
|
246
|
+
interface DownloadExcelParams {
|
|
247
|
+
filter?: string;
|
|
248
|
+
enabled?: boolean;
|
|
249
|
+
}
|
|
250
|
+
interface ChangeStatusBody {
|
|
251
|
+
enabled: boolean;
|
|
252
|
+
disabled_reason?: string;
|
|
253
|
+
company_id?: string;
|
|
254
|
+
}
|
|
255
|
+
interface ConfirmResponse {
|
|
256
|
+
success: boolean;
|
|
257
|
+
message: string;
|
|
258
|
+
data?: any;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CbmAlternativeItemModel } from '@models/alternative-item.domain.model';
|
|
2
|
+
import { ICbmAlternativeItemInfrastructureRepository } from '@repositories/alternative-item.infrastructure.repository';
|
|
3
|
+
import { CbmAlternativeItemInfrastructureService } from '@services/alternative-item.infrastructure.service';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
export declare class CbmAlternativeItemDomainRepository implements ICbmAlternativeItemInfrastructureRepository {
|
|
6
|
+
private readonly service;
|
|
7
|
+
constructor(service: CbmAlternativeItemInfrastructureService);
|
|
8
|
+
listParents(): Observable<CbmAlternativeItemModel.ListParentsResponse>;
|
|
9
|
+
listChildren(parentId: string): Observable<CbmAlternativeItemModel.ListChildrenResponse>;
|
|
10
|
+
getOne(id: string): Observable<CbmAlternativeItemModel.GetOneResponse>;
|
|
11
|
+
save(data: CbmAlternativeItemModel.SaveBody): Observable<CbmAlternativeItemModel.ConfirmResponse>;
|
|
12
|
+
saveBulk(data: CbmAlternativeItemModel.SaveBulkBody): Observable<CbmAlternativeItemModel.ConfirmResponse>;
|
|
13
|
+
update(id: string, data: CbmAlternativeItemModel.UpdateBody): Observable<CbmAlternativeItemModel.ConfirmResponse>;
|
|
14
|
+
updateBulk(data: CbmAlternativeItemModel.UpdateBulkBody): Observable<CbmAlternativeItemModel.ConfirmResponse>;
|
|
15
|
+
changeStatus(id: string, data: CbmAlternativeItemModel.ChangeStatusBody): Observable<CbmAlternativeItemModel.ConfirmResponse>;
|
|
16
|
+
delete(id: string): Observable<CbmAlternativeItemModel.ConfirmResponse>;
|
|
17
|
+
listParentsPaginated(params: CbmAlternativeItemModel.ListParentsPaginatedParams): Observable<CbmAlternativeItemModel.ListParentsPaginatedResponse>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CbmCompanyModel } from "@models/company.domain.model";
|
|
2
|
+
import { ICbmCompanyInfrastructureRepository } from "@repositories/company.infrastructure.repository";
|
|
3
|
+
import { Observable } from "rxjs";
|
|
4
|
+
export declare class CbmCompanyDomainRepository implements ICbmCompanyInfrastructureRepository {
|
|
5
|
+
private service;
|
|
6
|
+
constructor(service: ICbmCompanyInfrastructureRepository);
|
|
7
|
+
list(params: CbmCompanyModel.ListParams): Observable<CbmCompanyModel.ListResponse>;
|
|
8
|
+
listAll(params: CbmCompanyModel.ListAllParams): Observable<CbmCompanyModel.ListAllResponse>;
|
|
9
|
+
getOne(id: string): Observable<CbmCompanyModel.GetOneResponse>;
|
|
10
|
+
getInfo(id: string): Observable<CbmCompanyModel.GetInfoResponse>;
|
|
11
|
+
save(data: CbmCompanyModel.SaveBody): Observable<CbmCompanyModel.ConfirmResponse>;
|
|
12
|
+
saveBulk(data: CbmCompanyModel.BulkBody): Observable<CbmCompanyModel.ConfirmResponse>;
|
|
13
|
+
update(id: string, data: CbmCompanyModel.UpdateBody): Observable<CbmCompanyModel.ConfirmResponse>;
|
|
14
|
+
changeStatus(id: string, data: CbmCompanyModel.ChangeStatusBody): Observable<CbmCompanyModel.ConfirmResponse>;
|
|
15
|
+
uploadFileSignature(data: CbmCompanyModel.UploadFileSignatureRequest, file: FormData): Observable<CbmCompanyModel.ConfirmResponse>;
|
|
16
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CbmEmailSettingsModel } from "@models/email-settings.domain.
|
|
1
|
+
import { CbmEmailSettingsModel } from "@models/email-settings.domain.model";
|
|
2
2
|
import { ICbmEmailSettingsInfrastructureRepository } from "@repositories/email-settings.infrastructure.repository";
|
|
3
3
|
import { Observable } from "rxjs";
|
|
4
4
|
export declare class CbmEmailSettingsDomainRepository implements ICbmEmailSettingsInfrastructureRepository {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CbmGroupModel } from '@models/group.domain.model';
|
|
2
|
+
import { ICbmGroupInfrastructureRepository } from '@repositories/group.infrastructure.repository';
|
|
3
|
+
import { CbmGroupInfrastructureService } from '@services/group.infrastructure.service';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
export declare class CbmGroupDomainRepository implements ICbmGroupInfrastructureRepository {
|
|
6
|
+
private readonly service;
|
|
7
|
+
constructor(service: CbmGroupInfrastructureService);
|
|
8
|
+
list(params: CbmGroupModel.ListParams): Observable<CbmGroupModel.ListResponse>;
|
|
9
|
+
listAsTree(params: CbmGroupModel.ListAsTreeParams): Observable<CbmGroupModel.ListAsTreeResponse>;
|
|
10
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CbmHistoryModel } from "../models/history.domain.
|
|
1
|
+
import { CbmHistoryModel } from "../models/history.domain.model";
|
|
2
2
|
import { ICbmHistoryInfrastructureRepository } from "@repositories/history.infrastructure.repository";
|
|
3
3
|
import { Observable } from "rxjs";
|
|
4
4
|
import { CbmHistoryInfrastructureService } from "@services/history.infrastructure.service";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { HttpResponse } from '@angular/common/http';
|
|
2
|
+
import { CbmItemModel } from '@models/item.domain.model';
|
|
3
|
+
import { ICbmItemInfrastructureRepository } from '@repositories/item.infrastructure.repository';
|
|
4
|
+
import { CbmItemInfrastructureService } from '@services/item.infrastructure.service';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
6
|
+
export declare class CbmItemDomainRepository implements ICbmItemInfrastructureRepository {
|
|
7
|
+
private service;
|
|
8
|
+
constructor(service: CbmItemInfrastructureService);
|
|
9
|
+
list(params: CbmItemModel.ListParams): Observable<CbmItemModel.ListResponse>;
|
|
10
|
+
getOne(id: string): Observable<CbmItemModel.GetOneResponse>;
|
|
11
|
+
getOneByCode(code: string): Observable<CbmItemModel.GetOneByCodeResponse>;
|
|
12
|
+
save(data: CbmItemModel.SaveBody): Observable<CbmItemModel.ConfirmResponse>;
|
|
13
|
+
update(id: string, data: CbmItemModel.UpdateBody): Observable<CbmItemModel.ConfirmResponse>;
|
|
14
|
+
changeStatus(id: string, data: CbmItemModel.ChangeStatusBody): Observable<CbmItemModel.ConfirmResponse>;
|
|
15
|
+
delete(id: string): Observable<CbmItemModel.ConfirmResponse>;
|
|
16
|
+
downloadExcelCreateTemplate(): Observable<HttpResponse<Blob>>;
|
|
17
|
+
importExcelCreate(formData: FormData): Observable<HttpResponse<Blob>>;
|
|
18
|
+
listWithStock(params: CbmItemModel.ListWithStockParams): Observable<CbmItemModel.ListWithStockResponse>;
|
|
19
|
+
refreshStock(params: CbmItemModel.RefreshStockParams.Warehouse, request: CbmItemModel.RefreshStockParams.ItemsId): Observable<CbmItemModel.RefreshStockResponse>;
|
|
20
|
+
validate(id: string): Observable<CbmItemModel.ResponseValidation>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CbmPriceListModel } from '@models/price-list.domain.model';
|
|
2
|
+
import { ICbmPriceListInfrastructureRepository } from '@repositories/price-list.infrastructure.repository';
|
|
3
|
+
import { CbmPriceListInfrastructureService } from '@services/price-list.infrastructure.service';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
export declare class CbmPriceListDomainRepository implements ICbmPriceListInfrastructureRepository {
|
|
6
|
+
private readonly service;
|
|
7
|
+
constructor(service: CbmPriceListInfrastructureService);
|
|
8
|
+
list(params: CbmPriceListModel.ListParams): Observable<CbmPriceListModel.ListResponse>;
|
|
9
|
+
getOne(id: string): Observable<CbmPriceListModel.GetOne>;
|
|
10
|
+
}
|