@cbm-common/cbm-types 0.0.21 → 0.0.23
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 +175 -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/billing.domain.model.d.ts +47 -0
- package/lib/domain/models/country-code.domain.model.d.ts +14 -0
- package/lib/domain/models/country.domain.model.d.ts +68 -0
- package/lib/domain/models/rate.domain.model.d.ts +112 -0
- package/lib/domain/models/sale-price.domain.model.d.ts +74 -0
- package/lib/domain/models/settings-professions.domain.model.d.ts +79 -0
- package/lib/domain/repositories/billing.domain.repository.d.ts +9 -0
- package/lib/domain/repositories/country-code.domain.repository.d.ts +8 -0
- package/lib/domain/repositories/country.domain.repository.d.ts +12 -0
- package/lib/domain/repositories/rate.domain.repository.d.ts +9 -0
- package/lib/domain/repositories/sale-price.domain.repository.d.ts +8 -0
- package/lib/domain/repositories/settings-professions.domain.repository.d.ts +13 -0
- package/lib/domain/repositories/sri-history.domain.repository.d.ts +5 -6
- package/lib/infrastructure/repositories/billing.infrastructure.repository.d.ts +6 -0
- package/lib/infrastructure/repositories/country-code.infrastructure.repository.d.ts +5 -0
- package/lib/infrastructure/repositories/country.infrastructure.repository.d.ts +9 -0
- package/lib/infrastructure/repositories/rate.infrastructure.repository.d.ts +6 -0
- package/lib/infrastructure/repositories/sale-price.infrastructure.repository.d.ts +5 -0
- package/lib/infrastructure/repositories/settings-professions.infrastructure.repository.d.ts +10 -0
- package/lib/infrastructure/services/billing.infrastructure.service.d.ts +10 -0
- package/lib/infrastructure/services/country-code.infrastructure.service.d.ts +10 -0
- package/lib/infrastructure/services/country.infrastructure.service.d.ts +14 -0
- package/lib/infrastructure/services/rate.infrastructure.service.d.ts +11 -0
- package/lib/infrastructure/services/sale-price.infrastructure.service.d.ts +10 -0
- package/lib/infrastructure/services/settings-professions.infrastructure.service.d.ts +15 -0
- package/lib/remotes/components.remote.d.ts +13 -4
- package/lib/remotes/repositories/alternative-item.repository.d.ts +3 -0
- package/lib/remotes/repositories/bank-movements.repository.d.ts +3 -0
- package/lib/remotes/repositories/bank.repository.d.ts +3 -0
- package/lib/remotes/repositories/billing.repository.d.ts +3 -0
- package/lib/remotes/repositories/card-settlement.repository.d.ts +3 -0
- package/lib/remotes/repositories/cash-liquidation.repository.d.ts +3 -0
- package/lib/remotes/repositories/client-branch.repository.d.ts +3 -0
- package/lib/remotes/repositories/client-category.repository.d.ts +3 -0
- package/lib/remotes/repositories/client-group.repository.d.ts +3 -0
- package/lib/remotes/repositories/contact.repository.d.ts +3 -0
- package/lib/remotes/repositories/country-code.repository.d.ts +3 -0
- package/lib/remotes/repositories/country.repository.d.ts +3 -0
- package/lib/remotes/repositories/deadline.repository.d.ts +3 -0
- package/lib/remotes/repositories/document-reference.repository.d.ts +3 -0
- package/lib/remotes/repositories/document-type.repository.d.ts +3 -0
- package/lib/remotes/repositories/driver.repository.d.ts +3 -0
- package/lib/remotes/repositories/email-settings.repository.d.ts +3 -0
- package/lib/remotes/repositories/financial-bank.repository.d.ts +3 -0
- package/lib/remotes/repositories/group.repository.d.ts +3 -0
- package/lib/remotes/repositories/history.repository.d.ts +3 -0
- package/lib/remotes/repositories/kit.repository.d.ts +3 -0
- package/lib/remotes/repositories/outgoing-banking-transaction.repository.d.ts +3 -0
- package/lib/remotes/repositories/price-list.repository.d.ts +3 -0
- package/lib/remotes/repositories/provider.repository.d.ts +3 -0
- package/lib/remotes/repositories/rate.repository.d.ts +3 -0
- package/lib/remotes/repositories/report-financials.repository.d.ts +3 -0
- package/lib/remotes/repositories/sale-price.repository.d.ts +3 -0
- package/lib/remotes/repositories/seat.repository.d.ts +3 -0
- package/lib/remotes/repositories/seller.repository.d.ts +3 -0
- package/lib/remotes/repositories/service-outsourcing.repository.d.ts +3 -0
- package/lib/remotes/repositories/service.repository.d.ts +3 -0
- package/lib/remotes/repositories/settings-professions.repository.d.ts +3 -0
- package/lib/remotes/repositories/sri-history.repository.d.ts +3 -0
- package/lib/remotes/repositories/upload.repository.d.ts +3 -0
- package/lib/remotes/repositories/warehouse.repository.d.ts +3 -0
- package/lib/remotes/repositories.remote.d.ts +41 -3
- package/package.json +1 -1
- package/public-api.d.ts +34 -1
|
@@ -1,2 +1,175 @@
|
|
|
1
|
-
|
|
2
|
-
}
|
|
1
|
+
import { AfterViewInit, DestroyRef, ElementRef, OnInit } from '@angular/core';
|
|
2
|
+
import { AsyncValidatorFn, FormControl, FormGroup, ValidatorFn } from '@angular/forms';
|
|
3
|
+
import { Subject } from 'rxjs';
|
|
4
|
+
import { TStatus, IPagination } from './types';
|
|
5
|
+
import { CbmClientGroupModel } from '../../domain/models/client-group.domain.model';
|
|
6
|
+
import { CbmClientModel } from '../../domain/models/client.domain.model';
|
|
7
|
+
import { CbmDocumentTypeModel } from '../../domain/models/document-type.model';
|
|
8
|
+
import { CbmPriceListModel } from '../../domain/models/price-list.domain.model';
|
|
9
|
+
import { CbmSellerModel } from '../../domain/models/seller.domain.model';
|
|
10
|
+
import { CbmClientGroupRepository } from '../../domain/repositories/client-group.domain.repository';
|
|
11
|
+
import { CbmDocumentTypeDomainRepository } from '../../domain/repositories/document-type.domain.repository';
|
|
12
|
+
import { CbmNotificationService } from '../../domain/services/notification/notification.service';
|
|
13
|
+
import { CbmModalConfirmComponent } from '../modal-confirm/modal-confirm';
|
|
14
|
+
import { CbmTreeSelect } from '../tree-select/types';
|
|
15
|
+
import { CbmCountryCodeModel } from '../../domain/models/country-code.domain.model';
|
|
16
|
+
import { CbmCountryCodeDomainRepository } from '../../domain/repositories/country-code.domain.repository';
|
|
17
|
+
import { CbmSellerDomainRepository } from '../../domain/repositories/seller.domain.repository';
|
|
18
|
+
import { CbmPriceListDomainRepository } from '../../domain/repositories/price-list.domain.repository';
|
|
19
|
+
import { CbmClientDomainRepository } from '../../domain/repositories/client.domain.repository';
|
|
20
|
+
import { CbmClientCategoryDomainRepository } from '../../domain/repositories/client-category.domain.repository';
|
|
21
|
+
import { CbmRateDomainRepository } from '../../domain/repositories/rate.domain.repository';
|
|
22
|
+
import { CbmRateModel } from '../../domain/models/rate.domain.model';
|
|
23
|
+
import { CbmSettingsProfessionsDomainRepository } from '../../domain/repositories/settings-professions.domain.repository';
|
|
24
|
+
import { CbmSettingsProfessionsModel } from '../../domain/models/settings-professions.domain.model';
|
|
25
|
+
import { CbmBillingDomainRepository } from '../../domain/repositories/billing.domain.repository';
|
|
26
|
+
export type TSaveOptions = 'new' | 'view' | 'close';
|
|
27
|
+
export declare class CbmAddClientComponent implements OnInit, AfterViewInit {
|
|
28
|
+
private destroyRef;
|
|
29
|
+
private documentTypeRepository;
|
|
30
|
+
private notificationService;
|
|
31
|
+
private billingRepository;
|
|
32
|
+
private countryCodeRepository;
|
|
33
|
+
private sellerRepository;
|
|
34
|
+
private priceListRepository;
|
|
35
|
+
private clientGroupRepository;
|
|
36
|
+
private clientRepository;
|
|
37
|
+
private rateRepository;
|
|
38
|
+
private clientCategoryRepository;
|
|
39
|
+
private settingsProfessionsRepository;
|
|
40
|
+
dropdownMenuRef: import("@angular/core").Signal<ElementRef<HTMLUListElement> | undefined>;
|
|
41
|
+
clientId: import("@angular/core").InputSignal<string | undefined>;
|
|
42
|
+
isFromOrigin: import("@angular/core").InputSignal<boolean | undefined>;
|
|
43
|
+
document_type_code: import("@angular/core").InputSignal<string | undefined>;
|
|
44
|
+
document_number: import("@angular/core").InputSignal<string | undefined>;
|
|
45
|
+
resetForm: import("@angular/core").InputSignal<boolean>;
|
|
46
|
+
cancel: import("@angular/core").OutputEmitterRef<void>;
|
|
47
|
+
save: import("@angular/core").OutputEmitterRef<any>;
|
|
48
|
+
saveAndView: import("@angular/core").OutputEmitterRef<any>;
|
|
49
|
+
saveAndNew: import("@angular/core").OutputEmitterRef<any>;
|
|
50
|
+
update: import("@angular/core").OutputEmitterRef<any>;
|
|
51
|
+
documentTypes: import("@angular/core").WritableSignal<CbmDocumentTypeModel.ListResponse.Data[]>;
|
|
52
|
+
countryCodes: import("@angular/core").WritableSignal<CbmCountryCodeModel.ListResponse.Data[]>;
|
|
53
|
+
sellers: import("@angular/core").WritableSignal<CbmSellerModel.ListResponse.Data[]>;
|
|
54
|
+
priceLists: import("@angular/core").WritableSignal<CbmPriceListModel.ListResponse.Data[]>;
|
|
55
|
+
rateOptions: import("@angular/core").WritableSignal<CbmRateModel.ListResponse.Item[]>;
|
|
56
|
+
categories: import("@angular/core").WritableSignal<CbmTreeSelect.Children<any>>;
|
|
57
|
+
professions: import("@angular/core").WritableSignal<CbmSettingsProfessionsModel.ListResponse.Item[]>;
|
|
58
|
+
clientToUpdate: import("@angular/core").WritableSignal<CbmClientModel.GetOneResponse.Data | null>;
|
|
59
|
+
statusOfFetchDocumentTypes: import("@angular/core").WritableSignal<TStatus>;
|
|
60
|
+
statusOfExtractClientData: import("@angular/core").WritableSignal<TStatus>;
|
|
61
|
+
statusOfFetchCountryCodes: import("@angular/core").WritableSignal<TStatus>;
|
|
62
|
+
statusOfFetchSellers: import("@angular/core").WritableSignal<TStatus>;
|
|
63
|
+
statusOfFetchPriceLists: import("@angular/core").WritableSignal<TStatus>;
|
|
64
|
+
statusOfFetchCategories: import("@angular/core").WritableSignal<TStatus>;
|
|
65
|
+
statusOfSaveClient: import("@angular/core").WritableSignal<TStatus>;
|
|
66
|
+
statusOfFetchClientData: import("@angular/core").WritableSignal<TStatus>;
|
|
67
|
+
statusOfUpdateClient: import("@angular/core").WritableSignal<TStatus>;
|
|
68
|
+
isEmailInputFocused: import("@angular/core").WritableSignal<boolean>;
|
|
69
|
+
statusOfFetchRate: import("@angular/core").WritableSignal<TStatus>;
|
|
70
|
+
statusOfFetProfession: import("@angular/core").WritableSignal<TStatus>;
|
|
71
|
+
subjectToSearchDocumentType$: Subject<string>;
|
|
72
|
+
subjectToSearchSeller$: Subject<string>;
|
|
73
|
+
subjectToSearchPriceList$: Subject<string>;
|
|
74
|
+
subjectToSearchCategory$: Subject<string>;
|
|
75
|
+
subjectToSearchRate$: Subject<string>;
|
|
76
|
+
subjectToSearchProfessionType$: Subject<string>;
|
|
77
|
+
ratePagination: import("@angular/core").WritableSignal<IPagination>;
|
|
78
|
+
professionPagination: import("@angular/core").WritableSignal<IPagination>;
|
|
79
|
+
defaultDocumentNumber: string | null;
|
|
80
|
+
DOCUMENT_TYPES_CODES: {
|
|
81
|
+
readonly RUC: "04";
|
|
82
|
+
readonly CEDULA: "05";
|
|
83
|
+
readonly PASAPORTE: "06";
|
|
84
|
+
readonly VENTA_A_CONSUMIDOR_FINAL: "07";
|
|
85
|
+
readonly IDENTIFICACION_DEL_EXTERIOR: "08";
|
|
86
|
+
};
|
|
87
|
+
saveOption: import("@angular/core").WritableSignal<TSaveOptions | null>;
|
|
88
|
+
modalConfirmRef: import("@angular/core").Signal<CbmModalConfirmComponent | undefined>;
|
|
89
|
+
clientForm: FormGroup<{
|
|
90
|
+
documentType: FormControl<CbmDocumentTypeModel.ListResponse.Data | null>;
|
|
91
|
+
documentNumber: FormControl<string | null>;
|
|
92
|
+
category: FormControl<CbmClientGroupModel.ListAsTreeResponse.Category | null>;
|
|
93
|
+
businessName: FormControl<string | null>;
|
|
94
|
+
tradename: FormControl<string | null>;
|
|
95
|
+
address: FormControl<string | null>;
|
|
96
|
+
phoneCode: FormControl<string | null>;
|
|
97
|
+
conventionalTelephone: FormControl<string>;
|
|
98
|
+
cellphone: FormControl<string | null>;
|
|
99
|
+
seller: FormControl<CbmSellerModel.ListResponse.Data | null>;
|
|
100
|
+
priceList: FormControl<CbmPriceListModel.ListResponse.Data | null>;
|
|
101
|
+
rate: FormControl<CbmRateModel.ListResponse.Item | null>;
|
|
102
|
+
emails: FormControl<string[] | null>;
|
|
103
|
+
email: FormControl<string | null>;
|
|
104
|
+
economicActivity: FormControl<string | null>;
|
|
105
|
+
hasCellphone: FormControl<boolean>;
|
|
106
|
+
creditApplication: FormControl<boolean>;
|
|
107
|
+
requestCredit: FormControl<string | null>;
|
|
108
|
+
reasonOfCredit: FormControl<string | null>;
|
|
109
|
+
profession: FormControl<CbmSettingsProfessionsModel.ListResponse.Item | null>;
|
|
110
|
+
}>;
|
|
111
|
+
constructor(destroyRef: DestroyRef, documentTypeRepository: CbmDocumentTypeDomainRepository, notificationService: CbmNotificationService, billingRepository: CbmBillingDomainRepository, countryCodeRepository: CbmCountryCodeDomainRepository, sellerRepository: CbmSellerDomainRepository, priceListRepository: CbmPriceListDomainRepository, clientGroupRepository: CbmClientGroupRepository, clientRepository: CbmClientDomainRepository, rateRepository: CbmRateDomainRepository, clientCategoryRepository: CbmClientCategoryDomainRepository, settingsProfessionsRepository: CbmSettingsProfessionsDomainRepository);
|
|
112
|
+
ngOnInit(): void;
|
|
113
|
+
ngAfterViewInit(): void;
|
|
114
|
+
documentListener: () => void;
|
|
115
|
+
onInputConventionalPhone(event: Event): void;
|
|
116
|
+
get documentTypeControl(): FormControl<CbmDocumentTypeModel.ListResponse.Data | null>;
|
|
117
|
+
get documentNumberControl(): FormControl<string | null>;
|
|
118
|
+
get categoryControl(): FormControl<CbmClientGroupModel.ListAsTreeResponse.Category | null>;
|
|
119
|
+
get businessNameControl(): FormControl<string | null>;
|
|
120
|
+
get tradenameControl(): FormControl<string | null>;
|
|
121
|
+
get addressControl(): FormControl<string | null>;
|
|
122
|
+
get phoneCodeControl(): FormControl<string | null>;
|
|
123
|
+
get cellphoneControl(): FormControl<string | null>;
|
|
124
|
+
get emailsControl(): FormControl<string[] | null>;
|
|
125
|
+
get emailControl(): FormControl<string | null>;
|
|
126
|
+
get sellerControl(): FormControl<CbmSellerModel.ListResponse.Data | null>;
|
|
127
|
+
get priceListControl(): FormControl<CbmPriceListModel.ListResponse.Data | null>;
|
|
128
|
+
get economicActivityControl(): FormControl<string | null>;
|
|
129
|
+
get hasCellphoneControl(): FormControl<boolean>;
|
|
130
|
+
get creditApplicationControl(): FormControl<boolean>;
|
|
131
|
+
get requestCreditControl(): FormControl<string | null>;
|
|
132
|
+
get professionControl(): FormControl<CbmSettingsProfessionsModel.ListResponse.Item | null>;
|
|
133
|
+
compareWithId(a: {
|
|
134
|
+
_id: string;
|
|
135
|
+
}, b: {
|
|
136
|
+
_id: string;
|
|
137
|
+
}): boolean;
|
|
138
|
+
cellphoneValidator(): ValidatorFn;
|
|
139
|
+
noWhitespaceValidator(): ValidatorFn;
|
|
140
|
+
asyncDocumentNumberValidator(): AsyncValidatorFn;
|
|
141
|
+
validarRucCedula(numero: string): boolean;
|
|
142
|
+
documentNumberValidator(): ValidatorFn;
|
|
143
|
+
emailsValidator(): ValidatorFn;
|
|
144
|
+
makeSubscriptions(): void;
|
|
145
|
+
makeInitialRequests(): void;
|
|
146
|
+
fetchClientData(): void;
|
|
147
|
+
fetchDocumentTypes(searchTerm?: string): void;
|
|
148
|
+
getDocumentNumberMaxLength(): number | undefined;
|
|
149
|
+
getDocumentNumberPattern(): string;
|
|
150
|
+
extractClientData(): void;
|
|
151
|
+
fetchDataByCedula(): void;
|
|
152
|
+
fetchDataByRuc(): void;
|
|
153
|
+
fetchCountryCodes(): void;
|
|
154
|
+
fetchProfession(searchTerm?: string): void;
|
|
155
|
+
fetchSellers(searchTerm?: string): void;
|
|
156
|
+
fetchPriceLists(searchTerm?: string): void;
|
|
157
|
+
fetchCategories(searchTerm?: string): void;
|
|
158
|
+
addEmail(): void;
|
|
159
|
+
onEmailKeyDown(event: KeyboardEvent): void;
|
|
160
|
+
onEmailBlur(): void;
|
|
161
|
+
removeEmail(email: string): void;
|
|
162
|
+
saveClient(callback: (newClientId: string) => void): void;
|
|
163
|
+
addClientAndNew(): void;
|
|
164
|
+
addClientAndView(): void;
|
|
165
|
+
addClientAndClose(): void;
|
|
166
|
+
updateClient(): void;
|
|
167
|
+
onDropdownMenuClick(event: MouseEvent, dropdownMenu: HTMLUListElement): void;
|
|
168
|
+
fetchRate(searchTerm?: string, init?: boolean): void;
|
|
169
|
+
validateAccountCategory(id: string): void;
|
|
170
|
+
validateSaveClientForm(saveOption: TSaveOptions): Promise<void>;
|
|
171
|
+
onModalConfirm(): void;
|
|
172
|
+
validateUpdateClientForm(): Promise<void>;
|
|
173
|
+
onCancelModalConfirm(): void;
|
|
174
|
+
onCancelPress(): void;
|
|
175
|
+
}
|
|
@@ -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,47 @@
|
|
|
1
|
+
export declare namespace CbmBillingModel {
|
|
2
|
+
interface GetRucSriBody {
|
|
3
|
+
ruc: string;
|
|
4
|
+
}
|
|
5
|
+
interface GetRucSriResponse {
|
|
6
|
+
statusCode: number;
|
|
7
|
+
body: string;
|
|
8
|
+
datosRuc?: GetRucSriResponse.Data;
|
|
9
|
+
}
|
|
10
|
+
namespace GetRucSriResponse {
|
|
11
|
+
interface Data {
|
|
12
|
+
ruc?: string;
|
|
13
|
+
razonSocial?: string;
|
|
14
|
+
nombreComercialMatriz?: string;
|
|
15
|
+
direccionCompletaMatriz?: string;
|
|
16
|
+
regimen?: string;
|
|
17
|
+
categoria?: string;
|
|
18
|
+
actividadEconomicaPrincipal?: string;
|
|
19
|
+
obligadoLlevarContabilidad?: string;
|
|
20
|
+
agenteRetencion?: string;
|
|
21
|
+
contribuyenteEspecial?: string;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
interface GetCedulaBody {
|
|
25
|
+
cedula: string;
|
|
26
|
+
}
|
|
27
|
+
interface GetCedulaResponse {
|
|
28
|
+
statusCode: number;
|
|
29
|
+
body: string;
|
|
30
|
+
datosCedula?: GetCedulaResponse.Data;
|
|
31
|
+
}
|
|
32
|
+
namespace GetCedulaResponse {
|
|
33
|
+
interface Data {
|
|
34
|
+
cedula?: string;
|
|
35
|
+
nombres?: string;
|
|
36
|
+
apellidos?: string;
|
|
37
|
+
direccionMatriz?: string;
|
|
38
|
+
estadoCivil?: string;
|
|
39
|
+
fechaNacimiento?: string;
|
|
40
|
+
nombreCompleto?: string;
|
|
41
|
+
sexo?: string;
|
|
42
|
+
genero?: string;
|
|
43
|
+
calleDomicilio?: string;
|
|
44
|
+
nacionalidad?: string;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare namespace CbmCountryCodeModel {
|
|
2
|
+
interface ListResponse {
|
|
3
|
+
success: boolean;
|
|
4
|
+
data: ListResponse.Data[];
|
|
5
|
+
}
|
|
6
|
+
namespace ListResponse {
|
|
7
|
+
interface Data {
|
|
8
|
+
_id: string;
|
|
9
|
+
phone_code?: string;
|
|
10
|
+
code?: string;
|
|
11
|
+
name?: string;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
export declare namespace CbmCountryModel {
|
|
2
|
+
interface ListParams {
|
|
3
|
+
page: number;
|
|
4
|
+
size: number;
|
|
5
|
+
enabled?: boolean;
|
|
6
|
+
filter?: string;
|
|
7
|
+
}
|
|
8
|
+
interface ListResponse {
|
|
9
|
+
success: boolean;
|
|
10
|
+
pageNum: number;
|
|
11
|
+
pageSize: number;
|
|
12
|
+
pages: number;
|
|
13
|
+
total: number;
|
|
14
|
+
items: ListResponse.Item[];
|
|
15
|
+
}
|
|
16
|
+
namespace ListResponse {
|
|
17
|
+
interface Item {
|
|
18
|
+
_id: string;
|
|
19
|
+
code: string;
|
|
20
|
+
name: string;
|
|
21
|
+
short_name: string;
|
|
22
|
+
enabled: boolean;
|
|
23
|
+
created_at: number;
|
|
24
|
+
created_user: string;
|
|
25
|
+
updated_at?: number;
|
|
26
|
+
updated_user?: string;
|
|
27
|
+
Country_detail_count: number;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
interface GetOneResponse {
|
|
31
|
+
success: boolean;
|
|
32
|
+
data: GetOneResponse.Data;
|
|
33
|
+
}
|
|
34
|
+
namespace GetOneResponse {
|
|
35
|
+
interface Data {
|
|
36
|
+
_id: string;
|
|
37
|
+
code?: string;
|
|
38
|
+
name?: string;
|
|
39
|
+
short_name?: string;
|
|
40
|
+
created_at?: number;
|
|
41
|
+
created_user?: string;
|
|
42
|
+
updated_at?: number;
|
|
43
|
+
updated_user?: string;
|
|
44
|
+
enabled?: boolean;
|
|
45
|
+
disabled_reason?: string;
|
|
46
|
+
deleted?: boolean;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
interface SaveBody {
|
|
50
|
+
code: string;
|
|
51
|
+
name: string;
|
|
52
|
+
short_name: string;
|
|
53
|
+
}
|
|
54
|
+
interface UpdateBody {
|
|
55
|
+
code?: string;
|
|
56
|
+
name?: string;
|
|
57
|
+
short_name?: 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,112 @@
|
|
|
1
|
+
export declare namespace CbmRateModel {
|
|
2
|
+
interface ListParams {
|
|
3
|
+
page: number;
|
|
4
|
+
size: number;
|
|
5
|
+
enabled?: boolean;
|
|
6
|
+
default?: boolean;
|
|
7
|
+
name?: string;
|
|
8
|
+
code?: string;
|
|
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
|
+
company_id?: string;
|
|
22
|
+
company_branch_id?: string;
|
|
23
|
+
code?: string;
|
|
24
|
+
name?: string;
|
|
25
|
+
room_type_id?: string;
|
|
26
|
+
date_control?: boolean;
|
|
27
|
+
start_date?: number;
|
|
28
|
+
end_date?: number;
|
|
29
|
+
minimal_stay?: number;
|
|
30
|
+
maximal_stay?: number;
|
|
31
|
+
days_control?: number;
|
|
32
|
+
enabled?: boolean;
|
|
33
|
+
created_at?: number;
|
|
34
|
+
created_user?: string;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
interface GetOneResponse {
|
|
38
|
+
success: boolean;
|
|
39
|
+
data: GetOneResponse.Data;
|
|
40
|
+
}
|
|
41
|
+
namespace GetOneResponse {
|
|
42
|
+
interface Data {
|
|
43
|
+
_id: string;
|
|
44
|
+
company_id: string;
|
|
45
|
+
company_branch_id: string;
|
|
46
|
+
code: string;
|
|
47
|
+
name: string;
|
|
48
|
+
date_control: boolean;
|
|
49
|
+
minimal_stay: number;
|
|
50
|
+
maximal_stay: number;
|
|
51
|
+
days_control: boolean;
|
|
52
|
+
start_date: number;
|
|
53
|
+
end_date: number;
|
|
54
|
+
enabled: boolean;
|
|
55
|
+
created_at: number;
|
|
56
|
+
created_user: string;
|
|
57
|
+
deleted: boolean;
|
|
58
|
+
disabled_reason?: string;
|
|
59
|
+
rate_detail: Data.Detail[];
|
|
60
|
+
}
|
|
61
|
+
namespace Data {
|
|
62
|
+
interface Detail {
|
|
63
|
+
_id: string;
|
|
64
|
+
rate_id: string;
|
|
65
|
+
room_type_id: string;
|
|
66
|
+
rate_quantity: Detail.RateQuantity;
|
|
67
|
+
type_room: Detail.RoomType;
|
|
68
|
+
}
|
|
69
|
+
namespace Detail {
|
|
70
|
+
interface RateQuantity {
|
|
71
|
+
adult: QuantityData.Data[];
|
|
72
|
+
children: QuantityData.Data[];
|
|
73
|
+
}
|
|
74
|
+
namespace QuantityData {
|
|
75
|
+
interface Data {
|
|
76
|
+
amount: number;
|
|
77
|
+
rate: number;
|
|
78
|
+
days: DataDay.Day[];
|
|
79
|
+
}
|
|
80
|
+
namespace DataDay {
|
|
81
|
+
interface Day {
|
|
82
|
+
day: number;
|
|
83
|
+
value: number;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
interface RoomType {
|
|
88
|
+
_id: string;
|
|
89
|
+
company_id: string;
|
|
90
|
+
company_branch_id: string;
|
|
91
|
+
service_id: string;
|
|
92
|
+
service_name: string;
|
|
93
|
+
service_code: string;
|
|
94
|
+
name: string;
|
|
95
|
+
enabled: boolean;
|
|
96
|
+
deleted: boolean;
|
|
97
|
+
created_user: string;
|
|
98
|
+
deleted_at: number;
|
|
99
|
+
created_at: number;
|
|
100
|
+
disabled_reason?: string;
|
|
101
|
+
updated_at: number;
|
|
102
|
+
updated_user: string;
|
|
103
|
+
adult_maximum_amount: number;
|
|
104
|
+
adult_standard_amount: number;
|
|
105
|
+
children_maximum_amount: number;
|
|
106
|
+
children_standard_amount: number;
|
|
107
|
+
code: string;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
export declare namespace CbmSalePriceModel {
|
|
2
|
+
enum EType {
|
|
3
|
+
ITEM = "item",
|
|
4
|
+
SERVICE = "service",
|
|
5
|
+
KIT = "kit",
|
|
6
|
+
OUTSOURCING = "outsourcing_service"
|
|
7
|
+
}
|
|
8
|
+
type TType = `${EType}`;
|
|
9
|
+
enum EName {
|
|
10
|
+
BLANKET_AGREEMENTS_ITEM = "blanket_agreements_item",
|
|
11
|
+
BLANKET_AGREEMENTS_CATEGORY_ITEM = "blanket_agreements_category_item",
|
|
12
|
+
PRICE_LIST_COMPANY_BRANCH = "price_list_company_branch",
|
|
13
|
+
PERIOD_AND_VOLUMNE_DISCOUNTS = "period_and_volume_discounts",
|
|
14
|
+
ITEM_DISCOUNT_GROUP_CLIENT = "item_discount_group_client",
|
|
15
|
+
CATEGORY_DISCOUNT_GROUP_CLIENT = "category_discount_group_client",
|
|
16
|
+
MANUFACTURER_DISCOUNT_GROUP_CLIENT = "manufacturer_discount_group_client",
|
|
17
|
+
ITEM_DISCOUNT_GROUP_CLIENT_CATEGORY = "item_discount_group_client_category",
|
|
18
|
+
CATEGORY_DISCOUNT_GROUP_CLIENT_CATEGORY = "category_discount_group_client_category",
|
|
19
|
+
MANUFACTURER_DISCOUNT_GROUP_CLIENT_CATEGORY = "manufacturer_discount_group_client_category",
|
|
20
|
+
ITEM_DISCOUNT_GROUP_ALL_CLIENTS = "item_discount_group_all_clients",
|
|
21
|
+
CATEGORY_DISCOUNT_GROUP_ALL_CLIENTS = "category_discount_group_all_clients",
|
|
22
|
+
MANUFACTURER_DISCOUNT_GROUP_ALL_CLIENTS = "manufacturer_discount_group_all_clients",
|
|
23
|
+
SPECIAL_CUSTOMER_DISCOUNT_ITEM = "special_customer_discount_item",
|
|
24
|
+
SPECIAL_CUSTOMER_DISCOUNT = "special_customer_discount",
|
|
25
|
+
BLANKET_AGREEMENTS_SERVICE = "blanket_agreements_service",
|
|
26
|
+
BLANKET_AGREEMENTS_CATEGORY_SERVICE = "blanket_agreements_category_service",
|
|
27
|
+
PRICE_LIST_ITEM = "price_list_item",
|
|
28
|
+
PRICE_LIST_SERVICE = "price_list_service",
|
|
29
|
+
PRICE_LIST_KIT = "price_list_kit",
|
|
30
|
+
PRICE_LIST_PERSONALIZED = "price_list_personalized",
|
|
31
|
+
PERIOD_DISCOUNT = "period_discount"
|
|
32
|
+
}
|
|
33
|
+
type TName = `${EName}`;
|
|
34
|
+
interface GetParams {
|
|
35
|
+
amount?: number;
|
|
36
|
+
price_list_id: string;
|
|
37
|
+
type: TType;
|
|
38
|
+
date: number;
|
|
39
|
+
client_id: string;
|
|
40
|
+
item_id: string;
|
|
41
|
+
}
|
|
42
|
+
interface GetResponse {
|
|
43
|
+
success: boolean;
|
|
44
|
+
data: GetResponse.Data[];
|
|
45
|
+
}
|
|
46
|
+
namespace GetResponse {
|
|
47
|
+
interface Data {
|
|
48
|
+
item_id: string;
|
|
49
|
+
type: TType;
|
|
50
|
+
client_id?: string;
|
|
51
|
+
price_list_id?: string;
|
|
52
|
+
price?: number;
|
|
53
|
+
rate?: number;
|
|
54
|
+
replace_item_name?: string;
|
|
55
|
+
commentary_item?: string;
|
|
56
|
+
name: TName;
|
|
57
|
+
description: string;
|
|
58
|
+
amount?: number;
|
|
59
|
+
amount_paid?: number;
|
|
60
|
+
amount_free?: number;
|
|
61
|
+
max_amount_free?: number;
|
|
62
|
+
collection_id: string;
|
|
63
|
+
sequence?: string;
|
|
64
|
+
amount_discount?: boolean;
|
|
65
|
+
details_amount_discount?: Data.AmountDiscount[];
|
|
66
|
+
}
|
|
67
|
+
namespace Data {
|
|
68
|
+
interface AmountDiscount {
|
|
69
|
+
amount: number;
|
|
70
|
+
discount_rate: number;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
export declare namespace CbmSettingsProfessionsModel {
|
|
2
|
+
interface ListParams {
|
|
3
|
+
page: number;
|
|
4
|
+
size: number;
|
|
5
|
+
description?: string;
|
|
6
|
+
code?: string;
|
|
7
|
+
deleted?: boolean;
|
|
8
|
+
enabled?: 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
|
+
description: string;
|
|
22
|
+
code: string;
|
|
23
|
+
enabled: boolean;
|
|
24
|
+
deleted: boolean;
|
|
25
|
+
created_at: number;
|
|
26
|
+
created_user: string;
|
|
27
|
+
deleted_at?: number;
|
|
28
|
+
deleted_user?: string;
|
|
29
|
+
disabled_reason?: string;
|
|
30
|
+
updated_at?: number;
|
|
31
|
+
updated_user?: string;
|
|
32
|
+
user_inactive_at?: number;
|
|
33
|
+
user_inactive_id?: string;
|
|
34
|
+
user_inactive_name?: string;
|
|
35
|
+
user_active_at?: number;
|
|
36
|
+
user_active_id?: string;
|
|
37
|
+
user_active_name?: string;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
interface GetOneResponse {
|
|
41
|
+
success: boolean;
|
|
42
|
+
data: GetOneResponse.Data;
|
|
43
|
+
}
|
|
44
|
+
namespace GetOneResponse {
|
|
45
|
+
interface Data {
|
|
46
|
+
_id: string;
|
|
47
|
+
description: string;
|
|
48
|
+
code: string;
|
|
49
|
+
enabled: boolean;
|
|
50
|
+
deleted: boolean;
|
|
51
|
+
created_at: number;
|
|
52
|
+
created_user: string;
|
|
53
|
+
deleted_at?: number;
|
|
54
|
+
deleted_user?: string;
|
|
55
|
+
disabled_reason?: string;
|
|
56
|
+
updated_at?: number;
|
|
57
|
+
updated_user?: string;
|
|
58
|
+
user_inactive_at_: number;
|
|
59
|
+
user_inactive_id_: string;
|
|
60
|
+
user_inactive_name_: string;
|
|
61
|
+
user_active_at_: number;
|
|
62
|
+
user_active_id_: string;
|
|
63
|
+
user_active_name_: string;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
interface SaveBody {
|
|
67
|
+
description: string;
|
|
68
|
+
code: string;
|
|
69
|
+
}
|
|
70
|
+
interface UpdateBody {
|
|
71
|
+
description?: string;
|
|
72
|
+
code?: string;
|
|
73
|
+
}
|
|
74
|
+
interface ConfirmResponse {
|
|
75
|
+
success: boolean;
|
|
76
|
+
message: string;
|
|
77
|
+
data?: any;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ICbmBillingInfrastructureRepository } from '../../infrastructure/repositories/billing.infrastructure.repository';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { CbmBillingModel } from '../models/billing.domain.model';
|
|
4
|
+
export declare class CbmBillingDomainRepository implements ICbmBillingInfrastructureRepository {
|
|
5
|
+
private readonly service;
|
|
6
|
+
constructor(service: ICbmBillingInfrastructureRepository);
|
|
7
|
+
getRucSri(data: CbmBillingModel.GetRucSriBody): Observable<CbmBillingModel.GetRucSriResponse>;
|
|
8
|
+
getCedula(data: CbmBillingModel.GetCedulaBody): Observable<CbmBillingModel.GetCedulaResponse>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ICbmCountryCodeInfrastructureRepository } from '../../infrastructure/repositories/country-code.infrastructure.repository';
|
|
2
|
+
import { CbmCountryCodeModel } from '../models/country-code.domain.model';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
export declare class CbmCountryCodeDomainRepository implements ICbmCountryCodeInfrastructureRepository {
|
|
5
|
+
private readonly service;
|
|
6
|
+
constructor(service: ICbmCountryCodeInfrastructureRepository);
|
|
7
|
+
list(): Observable<CbmCountryCodeModel.ListResponse>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ICbmCountryInfrastructureRepository } from '../../infrastructure/repositories/country.infrastructure.repository';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { CbmCountryModel } from '../models/country.domain.model';
|
|
4
|
+
export declare class CbmCountryDomainService implements ICbmCountryInfrastructureRepository {
|
|
5
|
+
private readonly service;
|
|
6
|
+
constructor(service: ICbmCountryInfrastructureRepository);
|
|
7
|
+
list(params: CbmCountryModel.ListParams): Observable<CbmCountryModel.ListResponse>;
|
|
8
|
+
getOne(id: string): Observable<CbmCountryModel.GetOneResponse>;
|
|
9
|
+
save(data: CbmCountryModel.SaveBody): Observable<CbmCountryModel.ConfirmResponse>;
|
|
10
|
+
update(id: string, data: CbmCountryModel.UpdateBody): Observable<CbmCountryModel.ConfirmResponse>;
|
|
11
|
+
changeStatus(id: string, data: CbmCountryModel.ChangeStatusBody): Observable<CbmCountryModel.ConfirmResponse>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ICbmRateInfrastructureRepository } from '../../infrastructure/repositories/rate.infrastructure.repository';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { CbmRateModel } from '../models/rate.domain.model';
|
|
4
|
+
export declare class CbmRateDomainRepository implements ICbmRateInfrastructureRepository {
|
|
5
|
+
private readonly service;
|
|
6
|
+
constructor(service: ICbmRateInfrastructureRepository);
|
|
7
|
+
list(params: CbmRateModel.ListParams): Observable<CbmRateModel.ListResponse>;
|
|
8
|
+
getOne(id: string): Observable<CbmRateModel.GetOneResponse>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ICbmSalePriceInfrastructureRepository } from '../../infrastructure/repositories/sale-price.infrastructure.repository';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { CbmSalePriceModel } from '../models/sale-price.domain.model';
|
|
4
|
+
export declare class CbmSalePriceDomainRepository implements ICbmSalePriceInfrastructureRepository {
|
|
5
|
+
private readonly service;
|
|
6
|
+
constructor(service: ICbmSalePriceInfrastructureRepository);
|
|
7
|
+
get(params: CbmSalePriceModel.GetParams): Observable<CbmSalePriceModel.GetResponse>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ICbmSettingsProfessionsInfrastructureRepository } from '../../infrastructure/repositories/settings-professions.infrastructure.repository';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { CbmSettingsProfessionsModel } from '../models/settings-professions.domain.model';
|
|
4
|
+
export declare class CbmSettingsProfessionsDomainRepository implements ICbmSettingsProfessionsInfrastructureRepository {
|
|
5
|
+
private readonly service;
|
|
6
|
+
constructor(service: ICbmSettingsProfessionsInfrastructureRepository);
|
|
7
|
+
list(params: CbmSettingsProfessionsModel.ListParams): Observable<CbmSettingsProfessionsModel.ListResponse>;
|
|
8
|
+
save(data: CbmSettingsProfessionsModel.SaveBody): Observable<CbmSettingsProfessionsModel.ConfirmResponse>;
|
|
9
|
+
update(id: string, data: CbmSettingsProfessionsModel.UpdateBody): Observable<CbmSettingsProfessionsModel.ConfirmResponse>;
|
|
10
|
+
getOne(id: string): Observable<CbmSettingsProfessionsModel.GetOneResponse>;
|
|
11
|
+
delete(id: string): Observable<CbmSettingsProfessionsModel.ConfirmResponse>;
|
|
12
|
+
restore(id: string): Observable<CbmSettingsProfessionsModel.ConfirmResponse>;
|
|
13
|
+
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { CbmSriHistoryModel } from
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { Observable } from "rxjs";
|
|
1
|
+
import { CbmSriHistoryModel } from '../models/sri-history.domain.model';
|
|
2
|
+
import { ICbmSriHistoryInfrastructureRepository } from '../../infrastructure/repositories/sri-history.infrastructure.repository';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
5
4
|
export declare class CbmSriHistoryDomainRepository implements ICbmSriHistoryInfrastructureRepository {
|
|
6
|
-
private service;
|
|
7
|
-
constructor(service:
|
|
5
|
+
private readonly service;
|
|
6
|
+
constructor(service: ICbmSriHistoryInfrastructureRepository);
|
|
8
7
|
list(params: CbmSriHistoryModel.ListParams): Observable<CbmSriHistoryModel.ListResponse>;
|
|
9
8
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { CbmBillingModel } from '../../domain/models/billing.domain.model';
|
|
3
|
+
export interface ICbmBillingInfrastructureRepository {
|
|
4
|
+
getRucSri(data: CbmBillingModel.GetRucSriBody): Observable<CbmBillingModel.GetRucSriResponse>;
|
|
5
|
+
getCedula(data: CbmBillingModel.GetCedulaBody): Observable<CbmBillingModel.GetCedulaResponse>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { CbmCountryModel } from '../../domain/models/country.domain.model';
|
|
3
|
+
export interface ICbmCountryInfrastructureRepository {
|
|
4
|
+
list(params: CbmCountryModel.ListParams): Observable<CbmCountryModel.ListResponse>;
|
|
5
|
+
getOne(id: string): Observable<CbmCountryModel.GetOneResponse>;
|
|
6
|
+
save(data: CbmCountryModel.SaveBody): Observable<CbmCountryModel.ConfirmResponse>;
|
|
7
|
+
update(id: string, data: CbmCountryModel.UpdateBody): Observable<CbmCountryModel.ConfirmResponse>;
|
|
8
|
+
changeStatus(id: string, data: CbmCountryModel.ChangeStatusBody): Observable<CbmCountryModel.ConfirmResponse>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { CbmRateModel } from '../../domain/models/rate.domain.model';
|
|
3
|
+
export interface ICbmRateInfrastructureRepository {
|
|
4
|
+
list(params: CbmRateModel.ListParams): Observable<CbmRateModel.ListResponse>;
|
|
5
|
+
getOne(id: string): Observable<CbmRateModel.GetOneResponse>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { CbmSettingsProfessionsModel } from '../../domain/models/settings-professions.domain.model';
|
|
3
|
+
export interface ICbmSettingsProfessionsInfrastructureRepository {
|
|
4
|
+
list(params: CbmSettingsProfessionsModel.ListParams): Observable<CbmSettingsProfessionsModel.ListResponse>;
|
|
5
|
+
save(data: CbmSettingsProfessionsModel.SaveBody): Observable<CbmSettingsProfessionsModel.ConfirmResponse>;
|
|
6
|
+
update(id: string, data: CbmSettingsProfessionsModel.UpdateBody): Observable<CbmSettingsProfessionsModel.ConfirmResponse>;
|
|
7
|
+
getOne(id: string): Observable<CbmSettingsProfessionsModel.GetOneResponse>;
|
|
8
|
+
delete(id: string): Observable<CbmSettingsProfessionsModel.ConfirmResponse>;
|
|
9
|
+
restore(id: string): Observable<CbmSettingsProfessionsModel.ConfirmResponse>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ICbmBillingInfrastructureRepository } from '../repositories/billing.infrastructure.repository';
|
|
2
|
+
import { HttpClient } from '@angular/common/http';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { CbmBillingModel } from '../../domain/models/billing.domain.model';
|
|
5
|
+
export declare class CbmBillingInfrastructureService implements ICbmBillingInfrastructureRepository {
|
|
6
|
+
private readonly http;
|
|
7
|
+
constructor(http: HttpClient);
|
|
8
|
+
getRucSri(data: CbmBillingModel.GetRucSriBody): Observable<CbmBillingModel.GetRucSriResponse>;
|
|
9
|
+
getCedula(data: CbmBillingModel.GetCedulaBody): Observable<CbmBillingModel.GetCedulaResponse>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ICbmCountryCodeInfrastructureRepository } from '../repositories/country-code.infrastructure.repository';
|
|
2
|
+
import { HttpClient } from '@angular/common/http';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { CbmCountryCodeModel } from '../../domain/models/country-code.domain.model';
|
|
5
|
+
export declare class CountryCodeInfrastructureService implements ICbmCountryCodeInfrastructureRepository {
|
|
6
|
+
private http;
|
|
7
|
+
constructor(http: HttpClient);
|
|
8
|
+
private readonly url;
|
|
9
|
+
list(): Observable<CbmCountryCodeModel.ListResponse>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { ICbmCountryInfrastructureRepository } from '../repositories/country.infrastructure.repository';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { CbmCountryModel } from '../../domain/models/country.domain.model';
|
|
5
|
+
export declare class CbmCountryInfrastructureService implements ICbmCountryInfrastructureRepository {
|
|
6
|
+
private readonly http;
|
|
7
|
+
constructor(http: HttpClient);
|
|
8
|
+
private readonly url;
|
|
9
|
+
list(params: CbmCountryModel.ListParams): Observable<CbmCountryModel.ListResponse>;
|
|
10
|
+
getOne(id: string): Observable<CbmCountryModel.GetOneResponse>;
|
|
11
|
+
save(data: CbmCountryModel.SaveBody): Observable<CbmCountryModel.ConfirmResponse>;
|
|
12
|
+
update(id: string, data: CbmCountryModel.UpdateBody): Observable<CbmCountryModel.ConfirmResponse>;
|
|
13
|
+
changeStatus(id: string, data: CbmCountryModel.ChangeStatusBody): Observable<CbmCountryModel.ConfirmResponse>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ICbmRateInfrastructureRepository } from '../repositories/rate.infrastructure.repository';
|
|
2
|
+
import { HttpClient } from '@angular/common/http';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { CbmRateModel } from '../../domain/models/rate.domain.model';
|
|
5
|
+
export declare class CbmRateInfrastructureService implements ICbmRateInfrastructureRepository {
|
|
6
|
+
private http;
|
|
7
|
+
constructor(http: HttpClient);
|
|
8
|
+
private readonly url;
|
|
9
|
+
list(params: CbmRateModel.ListParams): Observable<CbmRateModel.ListResponse>;
|
|
10
|
+
getOne(id: string): Observable<CbmRateModel.GetOneResponse>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ICbmSalePriceInfrastructureRepository } from '../repositories/sale-price.infrastructure.repository';
|
|
2
|
+
import { HttpClient } from '@angular/common/http';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { CbmSalePriceModel } from '../../domain/models/sale-price.domain.model';
|
|
5
|
+
export declare class CbmSalePriceInfrastructureService implements ICbmSalePriceInfrastructureRepository {
|
|
6
|
+
private readonly http;
|
|
7
|
+
constructor(http: HttpClient);
|
|
8
|
+
private readonly url;
|
|
9
|
+
get(params: CbmSalePriceModel.GetParams): Observable<CbmSalePriceModel.GetResponse>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ICbmSettingsProfessionsInfrastructureRepository } from '../repositories/settings-professions.infrastructure.repository';
|
|
2
|
+
import { HttpClient } from '@angular/common/http';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { CbmSettingsProfessionsModel } from '../../domain/models/settings-professions.domain.model';
|
|
5
|
+
export declare class CbmSettingsProfessionsInfrastructureService implements ICbmSettingsProfessionsInfrastructureRepository {
|
|
6
|
+
private readonly http;
|
|
7
|
+
constructor(http: HttpClient);
|
|
8
|
+
private readonly url;
|
|
9
|
+
list(params: CbmSettingsProfessionsModel.ListParams): Observable<CbmSettingsProfessionsModel.ListResponse>;
|
|
10
|
+
save(data: CbmSettingsProfessionsModel.SaveBody): Observable<CbmSettingsProfessionsModel.ConfirmResponse>;
|
|
11
|
+
update(id: string, data: CbmSettingsProfessionsModel.UpdateBody): Observable<CbmSettingsProfessionsModel.ConfirmResponse>;
|
|
12
|
+
getOne(id: string): Observable<CbmSettingsProfessionsModel.GetOneResponse>;
|
|
13
|
+
delete(id: string): Observable<CbmSettingsProfessionsModel.ConfirmResponse>;
|
|
14
|
+
restore(id: string): Observable<CbmSettingsProfessionsModel.ConfirmResponse>;
|
|
15
|
+
}
|
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
export { CbmUserHistoryComponent } from
|
|
2
|
-
export { CbmModalConfirmComponent } from
|
|
3
|
-
export { CbmRecordDetailMetadataComponent } from
|
|
4
|
-
export { CbmDocumentsReferenceComponent } from
|
|
1
|
+
export { CbmUserHistoryComponent } from '../components/user-history/user-history';
|
|
2
|
+
export { CbmModalConfirmComponent } from '../components/modal-confirm/modal-confirm';
|
|
3
|
+
export { CbmRecordDetailMetadataComponent } from '../components/record-detail-metadata/record-detail-metadata';
|
|
4
|
+
export { CbmDocumentsReferenceComponent } from '../components/documents-reference/documents-reference';
|
|
5
|
+
export { CbmAddClientComponent } from '../components/add-client/add-client';
|
|
6
|
+
export { CbmAccountingSeatComponent } from '../components/accounting-seat/accounting-seat';
|
|
7
|
+
export { CbmAdvancedItemSearchModal } from '../components/advanced-item-search-modal/advanced-item-search-modal';
|
|
8
|
+
export { CbmAttachmentsComponent } from '../components/attachments/attachments';
|
|
9
|
+
export { CbmDropzoneComponent } from '../components/dropzone/dropzone';
|
|
10
|
+
export { CbmEmptyComponent } from '../components/empty/empty';
|
|
11
|
+
export { CbmJsonModalComponent } from '../components/json-modal/json-modal';
|
|
12
|
+
export { CbmPaginationNavComponent } from '../components/pagination-nav/pagination-nav';
|
|
13
|
+
export { CbmTreeSelectComponent } from '../components/tree-select/tree-select';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { HttpClient } from "@angular/common/http";
|
|
2
|
+
import { CbmDocumentReferenceDomainRepository } from "../../domain/repositories/document-reference.domain.repository";
|
|
3
|
+
export declare function documentReferenceFactory(http: HttpClient): CbmDocumentReferenceDomainRepository;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { HttpClient } from "@angular/common/http";
|
|
2
|
+
import { CbmOutgoingBankingTransactionRepository } from "../../domain/repositories/outgoing-banking-transaction.domain.repository";
|
|
3
|
+
export declare function outgoingBankingTransactionFactory(http: HttpClient): CbmOutgoingBankingTransactionRepository;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { HttpClient } from "@angular/common/http";
|
|
2
|
+
import { CbmServiceOutsourcingDomainRepository } from "../../domain/repositories/service-outsourcing.domain.repository";
|
|
3
|
+
export declare function serviceOutsourcingFactory(http: HttpClient): CbmServiceOutsourcingDomainRepository;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { HttpClient } from "@angular/common/http";
|
|
2
|
+
import { CbmSettingsProfessionsDomainRepository } from "../../domain/repositories/settings-professions.domain.repository";
|
|
3
|
+
export declare function settingsProfessionsFactory(http: HttpClient): CbmSettingsProfessionsDomainRepository;
|
|
@@ -1,3 +1,41 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export * from './repositories/company.repository';
|
|
2
|
+
export * from './repositories/user.repository';
|
|
3
|
+
export * from './repositories/alternative-item.repository';
|
|
4
|
+
export * from './repositories/bank.repository';
|
|
5
|
+
export * from './repositories/bank-movements.repository';
|
|
6
|
+
export * from './repositories/billing.repository';
|
|
7
|
+
export * from './repositories/card-settlement.repository';
|
|
8
|
+
export * from './repositories/cash-liquidation.repository';
|
|
9
|
+
export * from './repositories/client.repository';
|
|
10
|
+
export * from './repositories/client-branch.repository';
|
|
11
|
+
export * from './repositories/client-category.repository';
|
|
12
|
+
export * from './repositories/client-group.repository';
|
|
13
|
+
export * from './repositories/contact.repository';
|
|
14
|
+
export * from './repositories/cost-center.repository';
|
|
15
|
+
export * from './repositories/country.repository';
|
|
16
|
+
export * from './repositories/country-code.repository';
|
|
17
|
+
export * from './repositories/deadline.repository';
|
|
18
|
+
export * from './repositories/document-reference.repository';
|
|
19
|
+
export * from './repositories/document-type.repository';
|
|
20
|
+
export * from './repositories/driver.repository';
|
|
21
|
+
export * from './repositories/email-settings.repository';
|
|
22
|
+
export * from './repositories/financial-bank.repository';
|
|
23
|
+
export * from './repositories/group.repository';
|
|
24
|
+
export * from './repositories/history.repository';
|
|
25
|
+
export * from './repositories/item.repository';
|
|
26
|
+
export * from './repositories/kit.repository';
|
|
27
|
+
export * from './repositories/messages-settings.repository';
|
|
28
|
+
export * from './repositories/outgoing-banking-transaction.repository';
|
|
29
|
+
export * from './repositories/price-list.repository';
|
|
30
|
+
export * from './repositories/provider.repository';
|
|
31
|
+
export * from './repositories/rate.repository';
|
|
32
|
+
export * from './repositories/report-financials.repository';
|
|
33
|
+
export * from './repositories/sale-price.repository';
|
|
34
|
+
export * from './repositories/seat.repository';
|
|
35
|
+
export * from './repositories/seller.repository';
|
|
36
|
+
export * from './repositories/service.repository';
|
|
37
|
+
export * from './repositories/service-outsourcing.repository';
|
|
38
|
+
export * from './repositories/settings-professions.repository';
|
|
39
|
+
export * from './repositories/sri-history.repository';
|
|
40
|
+
export * from './repositories/upload.repository';
|
|
41
|
+
export * from './repositories/warehouse.repository';
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -146,6 +146,14 @@ export * from './lib/domain/models/upload.domain.model';
|
|
|
146
146
|
export * from './lib/domain/repositories/warehouse.domain.repository';
|
|
147
147
|
export * from './lib/domain/models/warehouse.domain.model';
|
|
148
148
|
|
|
149
|
+
//#region provider repository
|
|
150
|
+
export * from './lib/domain/repositories/provider.domain.repository';
|
|
151
|
+
export * from './lib/domain/models/provider.domain.model';
|
|
152
|
+
|
|
153
|
+
//#region rate repository
|
|
154
|
+
export * from './lib/domain/repositories/rate.domain.repository';
|
|
155
|
+
export * from './lib/domain/models/rate.domain.model';
|
|
156
|
+
|
|
149
157
|
//#region record detail metadata component
|
|
150
158
|
export * from './lib/components/record-detail-metadata/record-detail-metadata';
|
|
151
159
|
export * from './lib/components/record-detail-metadata/types';
|
|
@@ -189,4 +197,29 @@ export * from './lib/components/tree-select/types';
|
|
|
189
197
|
|
|
190
198
|
//#region message settings repository
|
|
191
199
|
export * from './lib/domain/repositories/message-settings.domain.repository';
|
|
192
|
-
export * from './lib/domain/models/message-settings.domain.model';
|
|
200
|
+
export * from './lib/domain/models/message-settings.domain.model';
|
|
201
|
+
|
|
202
|
+
//#region settings professions repository
|
|
203
|
+
export * from './lib/domain/repositories/settings-professions.domain.repository';
|
|
204
|
+
export * from './lib/domain/models/settings-professions.domain.model';
|
|
205
|
+
|
|
206
|
+
// #region billing repository
|
|
207
|
+
export * from './lib/domain/repositories/billing.domain.repository';
|
|
208
|
+
export * from './lib/domain/models/billing.domain.model';
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
// #region country code repository
|
|
212
|
+
export * from './lib/domain/repositories/country-code.domain.repository';
|
|
213
|
+
export * from './lib/domain/models/country-code.domain.model';
|
|
214
|
+
|
|
215
|
+
// #region country repository
|
|
216
|
+
export * from './lib/domain/repositories/country.domain.repository';
|
|
217
|
+
export * from './lib/domain/models/country.domain.model';
|
|
218
|
+
|
|
219
|
+
// #region add client component
|
|
220
|
+
export * from './lib/components/add-client/add-client';
|
|
221
|
+
export * from './lib/components/add-client/types';
|
|
222
|
+
|
|
223
|
+
// #region sale price repository
|
|
224
|
+
export * from './lib/domain/repositories/sale-price.domain.repository';
|
|
225
|
+
export * from './lib/domain/models/sale-price.domain.model';
|