@cbm-common/cbm-types 0.0.79 → 0.0.80
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/domain/models/company.domain.model.d.ts +118 -0
- package/lib/domain/repositories/company.domain.repository.d.ts +1 -0
- package/lib/infrastructure/repositories/company.infrastructure.repository.d.ts +1 -0
- package/lib/infrastructure/services/company.infrastructure.service.d.ts +1 -0
- package/package.json +1 -1
|
@@ -264,6 +264,124 @@ export declare namespace CbmCompanyModel {
|
|
|
264
264
|
updated_user?: string;
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
|
+
interface GetInfoCompanyResponse {
|
|
268
|
+
success: boolean;
|
|
269
|
+
data: GetInfoCompanyResponse.Data;
|
|
270
|
+
}
|
|
271
|
+
namespace GetInfoCompanyResponse {
|
|
272
|
+
interface Data {
|
|
273
|
+
_id: string;
|
|
274
|
+
country_id: string;
|
|
275
|
+
NIF: string;
|
|
276
|
+
business_name: string;
|
|
277
|
+
address: string;
|
|
278
|
+
trade_name: string;
|
|
279
|
+
status: string;
|
|
280
|
+
readonly: boolean;
|
|
281
|
+
created_at: number;
|
|
282
|
+
created_user: string;
|
|
283
|
+
email: string;
|
|
284
|
+
artisanal_qualification: boolean;
|
|
285
|
+
mandatory_accounting: boolean;
|
|
286
|
+
regime_id: string;
|
|
287
|
+
special_taxpayer: boolean;
|
|
288
|
+
updated_at: number;
|
|
289
|
+
updated_user: string;
|
|
290
|
+
withholding_agent: boolean;
|
|
291
|
+
special_taxpayer_number: string;
|
|
292
|
+
withholding_agent_number: string;
|
|
293
|
+
deleted: boolean;
|
|
294
|
+
file_signature: Data.FileSignature;
|
|
295
|
+
password_signature: string;
|
|
296
|
+
expiration_signature_date: number;
|
|
297
|
+
artisanal_qualification_number: string;
|
|
298
|
+
manager_name: string;
|
|
299
|
+
regime_name: string;
|
|
300
|
+
count_branches: number;
|
|
301
|
+
regime: Data.Regime;
|
|
302
|
+
subscription: Data.Subscription;
|
|
303
|
+
default_account_plan: boolean;
|
|
304
|
+
account_template_id: string;
|
|
305
|
+
enabled: boolean;
|
|
306
|
+
contry_short_name: string;
|
|
307
|
+
country_code: string;
|
|
308
|
+
country_name: string;
|
|
309
|
+
country_short_name?: string;
|
|
310
|
+
environment?: number;
|
|
311
|
+
country_locale?: string;
|
|
312
|
+
country_timezone?: string;
|
|
313
|
+
}
|
|
314
|
+
namespace Data {
|
|
315
|
+
interface Regime {
|
|
316
|
+
regime_code: string;
|
|
317
|
+
regime_name: string;
|
|
318
|
+
}
|
|
319
|
+
interface FileSignature {
|
|
320
|
+
mimetype: string;
|
|
321
|
+
name: string;
|
|
322
|
+
url: string;
|
|
323
|
+
}
|
|
324
|
+
interface Subscription {
|
|
325
|
+
_id: string;
|
|
326
|
+
subscription_id: string;
|
|
327
|
+
company_id: string;
|
|
328
|
+
user_id: string;
|
|
329
|
+
code?: string;
|
|
330
|
+
type_support: string;
|
|
331
|
+
begin_date: number;
|
|
332
|
+
end_date: number;
|
|
333
|
+
count_users: number;
|
|
334
|
+
count_storage: number;
|
|
335
|
+
count_branch_read: number;
|
|
336
|
+
count_branch_transactional: number;
|
|
337
|
+
used_users: number;
|
|
338
|
+
used_storage: number;
|
|
339
|
+
used_branch_read: number;
|
|
340
|
+
used_branch_transactional: number;
|
|
341
|
+
status: string;
|
|
342
|
+
enabled?: boolean;
|
|
343
|
+
deleted: boolean;
|
|
344
|
+
created_at?: number;
|
|
345
|
+
created_user?: string;
|
|
346
|
+
updated_at?: number;
|
|
347
|
+
updated_user?: string;
|
|
348
|
+
subscription_module_count: number;
|
|
349
|
+
expiration_day: string;
|
|
350
|
+
available_branch_transactional: number;
|
|
351
|
+
available_branch_read: number;
|
|
352
|
+
available_users: number;
|
|
353
|
+
}
|
|
354
|
+
interface Branch {
|
|
355
|
+
_id: string;
|
|
356
|
+
company_id?: string;
|
|
357
|
+
identification_number?: string;
|
|
358
|
+
trade_name?: string;
|
|
359
|
+
address?: string;
|
|
360
|
+
email?: string;
|
|
361
|
+
cellphone?: string;
|
|
362
|
+
phone?: string;
|
|
363
|
+
environment?: number;
|
|
364
|
+
enabled?: boolean;
|
|
365
|
+
created_at?: number;
|
|
366
|
+
created_user?: string;
|
|
367
|
+
updated_at?: number;
|
|
368
|
+
updated_user?: string;
|
|
369
|
+
}
|
|
370
|
+
interface Subscription {
|
|
371
|
+
_id: string;
|
|
372
|
+
code?: string;
|
|
373
|
+
name?: string;
|
|
374
|
+
life_year?: number;
|
|
375
|
+
method_pay?: string;
|
|
376
|
+
collection_method?: string;
|
|
377
|
+
enabled?: boolean;
|
|
378
|
+
created_at?: number;
|
|
379
|
+
created_user?: string;
|
|
380
|
+
updated_at?: number;
|
|
381
|
+
updated_user?: string;
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
}
|
|
267
385
|
interface SaveBody {
|
|
268
386
|
NIF: string;
|
|
269
387
|
business_name: string;
|
|
@@ -8,6 +8,7 @@ export declare class CbmCompanyDomainRepository implements ICbmCompanyInfrastruc
|
|
|
8
8
|
listAll(params: CbmCompanyModel.ListAllParams): Observable<CbmCompanyModel.ListAllResponse>;
|
|
9
9
|
getOne(id: string): Observable<CbmCompanyModel.GetOneResponse>;
|
|
10
10
|
getInfo(id: string): Observable<CbmCompanyModel.GetInfoResponse>;
|
|
11
|
+
getInfoCompany(id: string): Observable<CbmCompanyModel.GetInfoCompanyResponse>;
|
|
11
12
|
save(data: CbmCompanyModel.SaveBody): Observable<CbmCompanyModel.ConfirmResponse>;
|
|
12
13
|
saveBulk(data: CbmCompanyModel.BulkBody): Observable<CbmCompanyModel.ConfirmResponse>;
|
|
13
14
|
update(id: string, data: CbmCompanyModel.UpdateBody): Observable<CbmCompanyModel.ConfirmResponse>;
|
|
@@ -5,6 +5,7 @@ export interface ICbmCompanyInfrastructureRepository {
|
|
|
5
5
|
listAll(params: CbmCompanyModel.ListAllParams): Observable<CbmCompanyModel.ListAllResponse>;
|
|
6
6
|
getOne(id: string): Observable<CbmCompanyModel.GetOneResponse>;
|
|
7
7
|
getInfo(id: string): Observable<CbmCompanyModel.GetInfoResponse>;
|
|
8
|
+
getInfoCompany(id: string): Observable<CbmCompanyModel.GetInfoCompanyResponse>;
|
|
8
9
|
save(data: CbmCompanyModel.SaveBody): Observable<CbmCompanyModel.ConfirmResponse>;
|
|
9
10
|
saveBulk(data: CbmCompanyModel.BulkBody): Observable<CbmCompanyModel.ConfirmResponse>;
|
|
10
11
|
update(id: string, data: CbmCompanyModel.UpdateBody): Observable<CbmCompanyModel.ConfirmResponse>;
|
|
@@ -10,6 +10,7 @@ export declare class CbmCompanyInfrastructureService implements ICbmCompanyInfra
|
|
|
10
10
|
listAll(params: CbmCompanyModel.ListAllParams): Observable<CbmCompanyModel.ListAllResponse>;
|
|
11
11
|
getOne(id: string): Observable<CbmCompanyModel.GetOneResponse>;
|
|
12
12
|
getInfo(id: string): Observable<CbmCompanyModel.GetInfoResponse>;
|
|
13
|
+
getInfoCompany(id: string): Observable<CbmCompanyModel.GetInfoCompanyResponse>;
|
|
13
14
|
save(data: CbmCompanyModel.SaveBody): Observable<CbmCompanyModel.ConfirmResponse>;
|
|
14
15
|
saveBulk(data: CbmCompanyModel.BulkBody): Observable<CbmCompanyModel.ConfirmResponse>;
|
|
15
16
|
update(id: string, data: CbmCompanyModel.UpdateBody): Observable<CbmCompanyModel.ConfirmResponse>;
|