@cbm-common/cbm-types 0.0.245 → 0.0.246
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 +10 -28
- package/lib/components/add-client/types.d.ts +0 -6
- package/lib/components/order-vehicle-add-charge/order-vehicle-add-charge.d.ts +3 -1
- package/lib/components/pms-add-charge/pms-add-charge.d.ts +2 -2
- package/lib/domain/models/sales-account.domain.model.d.ts +56 -83
- package/lib/domain/repositories/sales-account.domain.repository.d.ts +1 -1
- package/lib/infrastructure/repositories/sales-account.infrastructure.repository.d.ts +1 -1
- package/lib/infrastructure/services/sales-account.infrastructure.service.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +4 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { AfterViewInit, DestroyRef, ElementRef, OnInit } from '@angular/core';
|
|
2
2
|
import { AsyncValidatorFn, FormControl, FormGroup, ValidatorFn } from '@angular/forms';
|
|
3
3
|
import { Subject } from 'rxjs';
|
|
4
|
+
import { ListService, PaginatedListService } from '@cbm-common/data-access';
|
|
4
5
|
import { CbmClientGroupModel } from '../../domain/models/client-group.domain.model';
|
|
5
6
|
import { CbmClientModel } from '../../domain/models/client.domain.model';
|
|
6
|
-
import { CbmCountryCodeModel } from '../../domain/models/country-code.domain.model';
|
|
7
7
|
import { CbmDocumentTypeModel } from '../../domain/models/document-type.model';
|
|
8
8
|
import { CbmPriceListModel } from '../../domain/models/price-list.domain.model';
|
|
9
9
|
import { CbmRateModel } from '../../domain/models/rate.domain.model';
|
|
@@ -21,7 +21,7 @@ import { CbmSettingsProfessionsDomainRepository } from '../../domain/repositorie
|
|
|
21
21
|
import { CbmNotificationService } from '../../domain/services/notification/notification.service';
|
|
22
22
|
import { CbmModalConfirmComponent } from '../modal-confirm/modal-confirm';
|
|
23
23
|
import { CbmTreeSelect } from '../tree-select/types';
|
|
24
|
-
import {
|
|
24
|
+
import { TStatus } from './types';
|
|
25
25
|
import { AccountValidatorsDomainService } from '../../domain/services/account-validators.domain.service';
|
|
26
26
|
import { CbmPersonTypeUAFEModel } from '../../domain/models/person-type-uafe.domain.model';
|
|
27
27
|
import { CbmPersonTypeUAFERepository } from '../../domain/repositories/person-type-uafe.domain.repository';
|
|
@@ -54,37 +54,24 @@ export declare class CbmAddClientComponent implements OnInit, AfterViewInit {
|
|
|
54
54
|
update: import("@angular/core").OutputEmitterRef<any>;
|
|
55
55
|
allDocumentTypes: import("@angular/core").WritableSignal<CbmDocumentTypeModel.ListResponse.Data[]>;
|
|
56
56
|
documentTypes: import("@angular/core").WritableSignal<CbmDocumentTypeModel.ListResponse.Data[]>;
|
|
57
|
-
subjectClasses: import("@angular/core").WritableSignal<CbmPersonTypeUAFEModel.ListResponse.Item[]>;
|
|
58
|
-
countryCodes: import("@angular/core").WritableSignal<CbmCountryCodeModel.ListResponse.Data[]>;
|
|
59
|
-
sellers: import("@angular/core").WritableSignal<CbmSellerModel.ListResponse.Data[]>;
|
|
60
|
-
priceLists: import("@angular/core").WritableSignal<CbmPriceListModel.ListResponse.Data[]>;
|
|
61
|
-
rateOptions: import("@angular/core").WritableSignal<CbmRateModel.ListResponse.Item[]>;
|
|
62
57
|
categories: import("@angular/core").WritableSignal<CbmTreeSelect.Children<any>>;
|
|
63
|
-
professions: import("@angular/core").WritableSignal<CbmSettingsProfessionsModel.ListResponse.Item[]>;
|
|
64
58
|
clientToUpdate: import("@angular/core").WritableSignal<CbmClientModel.GetOneResponse.Data | null>;
|
|
65
59
|
statusOfFetchDocumentTypes: import("@angular/core").WritableSignal<TStatus>;
|
|
66
60
|
statusOfExtractClientData: import("@angular/core").WritableSignal<TStatus>;
|
|
67
|
-
statusOfFetchCountryCodes: import("@angular/core").WritableSignal<TStatus>;
|
|
68
|
-
statusOfFetchSellers: import("@angular/core").WritableSignal<TStatus>;
|
|
69
|
-
statusOfFetchSubjectClasses: import("@angular/core").WritableSignal<TStatus>;
|
|
70
|
-
statusOfFetchPriceLists: import("@angular/core").WritableSignal<TStatus>;
|
|
71
61
|
statusOfFetchCategories: import("@angular/core").WritableSignal<TStatus>;
|
|
72
62
|
statusOfSaveClient: import("@angular/core").WritableSignal<TStatus>;
|
|
73
63
|
statusOfFetchClientData: import("@angular/core").WritableSignal<TStatus>;
|
|
74
64
|
statusOfUpdateClient: import("@angular/core").WritableSignal<TStatus>;
|
|
65
|
+
isInitialLoading: import("@angular/core").WritableSignal<boolean>;
|
|
75
66
|
isEmailInputFocused: import("@angular/core").WritableSignal<boolean>;
|
|
76
|
-
statusOfFetchRate: import("@angular/core").WritableSignal<TStatus>;
|
|
77
|
-
statusOfFetProfession: import("@angular/core").WritableSignal<TStatus>;
|
|
78
|
-
subjectToSearchSubjectClass$: Subject<string>;
|
|
79
67
|
subjectToSearchDocumentType$: Subject<string>;
|
|
80
|
-
subjectToSearchSeller$: Subject<string>;
|
|
81
|
-
subjectToSearchPriceList$: Subject<string>;
|
|
82
68
|
subjectToSearchCategory$: Subject<string>;
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
69
|
+
sellers$: ListService<CbmSellerModel.ListResponse, CbmSellerModel.ListParams, CbmSellerModel.ListResponse.Data[]>;
|
|
70
|
+
priceLists$: ListService<CbmPriceListModel.ListResponse, CbmPriceListModel.ListParams, CbmPriceListModel.ListResponse.Data[]>;
|
|
71
|
+
countryCodes$: ListService<import("../../domain/models/country-code.domain.model").CbmCountryCodeModel.ListResponse, import("../../domain/models/country-code.domain.model").CbmCountryCodeModel.ListParams, import("../../domain/models/country-code.domain.model").CbmCountryCodeModel.ListResponse.Data[]>;
|
|
72
|
+
subjectClasses$: PaginatedListService<CbmPersonTypeUAFEModel.ListResponse, CbmPersonTypeUAFEModel.ListParams, CbmPersonTypeUAFEModel.ListResponse.Item[]>;
|
|
73
|
+
rate$: PaginatedListService<CbmRateModel.ListResponse, CbmRateModel.ListParams, CbmRateModel.ListResponse.Item[]>;
|
|
74
|
+
professions$: PaginatedListService<CbmSettingsProfessionsModel.ListResponse, CbmSettingsProfessionsModel.ListParams, CbmSettingsProfessionsModel.ListResponse.Item[]>;
|
|
88
75
|
defaultDocumentNumber: string | null;
|
|
89
76
|
DOCUMENT_TYPES_CODES: {
|
|
90
77
|
readonly RUC: "04";
|
|
@@ -155,6 +142,7 @@ export declare class CbmAddClientComponent implements OnInit, AfterViewInit {
|
|
|
155
142
|
makeSubscriptions(): void;
|
|
156
143
|
makeInitialRequests(): void;
|
|
157
144
|
private clearOptionalControlsValidators;
|
|
145
|
+
private initRate;
|
|
158
146
|
fetchClientData(): void;
|
|
159
147
|
fetchDocumentTypes(searchTerm?: string): void;
|
|
160
148
|
private loadDocumentTypesWithValidation;
|
|
@@ -163,11 +151,6 @@ export declare class CbmAddClientComponent implements OnInit, AfterViewInit {
|
|
|
163
151
|
extractClientData(): void;
|
|
164
152
|
fetchDataByCedula(): void;
|
|
165
153
|
fetchDataByRuc(): void;
|
|
166
|
-
fetchCountryCodes(): void;
|
|
167
|
-
fetchProfession(searchTerm?: string): void;
|
|
168
|
-
fetchSellers(searchTerm?: string): void;
|
|
169
|
-
fetchSubjectClasses(searchTerm?: string): void;
|
|
170
|
-
fetchPriceLists(searchTerm?: string): void;
|
|
171
154
|
fetchCategories(searchTerm?: string): void;
|
|
172
155
|
removeEmail(email: string): void;
|
|
173
156
|
saveClient(callback: (newClientId: string) => void): void;
|
|
@@ -176,7 +159,6 @@ export declare class CbmAddClientComponent implements OnInit, AfterViewInit {
|
|
|
176
159
|
addClientAndClose(): void;
|
|
177
160
|
updateClient(): void;
|
|
178
161
|
onDropdownMenuClick(event: MouseEvent, dropdownMenu: HTMLUListElement): void;
|
|
179
|
-
fetchRate(searchTerm?: string, init?: boolean): void;
|
|
180
162
|
validateSaveClientForm(saveOption: TSaveOptions): Promise<void>;
|
|
181
163
|
onModalConfirm(): void;
|
|
182
164
|
validateUpdateClientForm(): Promise<void>;
|
|
@@ -114,13 +114,14 @@ export declare class CbmOrderVehicleAddCharge {
|
|
|
114
114
|
statusOfFetchItemById: import("@angular/core").WritableSignal<IGeneral.STATUS>;
|
|
115
115
|
modeSaleOrWo: import("@angular/core").InputSignal<"sale" | "wo">;
|
|
116
116
|
saleAccountId: import("@angular/core").InputSignal<string | null>;
|
|
117
|
+
actionType: import("@angular/core").InputSignal<"add" | "update">;
|
|
117
118
|
onCancel: import("@angular/core").OutputEmitterRef<void>;
|
|
118
119
|
onSave: import("@angular/core").OutputEmitterRef<{
|
|
119
120
|
redirect: "new" | "view" | "close" | "modal";
|
|
120
121
|
id?: string;
|
|
121
122
|
}>;
|
|
122
123
|
orderId: import("@angular/core").WritableSignal<string | null>;
|
|
123
|
-
saleAccountData: import("@angular/core").WritableSignal<CbmSalesAccountModel.GetOneResponse.Data
|
|
124
|
+
saleAccountData: import("@angular/core").WritableSignal<CbmSalesAccountModel.GetOneResponse.Data | null>;
|
|
124
125
|
dataStockModal: import("@angular/core").WritableSignal<IDataItemStock | null>;
|
|
125
126
|
priceHistory: import("@angular/core").WritableSignal<IPriceHistoryModel | null>;
|
|
126
127
|
companyCustom: import("@angular/core").WritableSignal<CbmCompanyCustomModel.FindResponse | null>;
|
|
@@ -306,6 +307,7 @@ export declare class CbmOrderVehicleAddCharge {
|
|
|
306
307
|
searchSaleAccount$: PaginatedListService<CbmSalesAccountModel.ListResponse, CbmSalesAccountModel.ListParams, CbmSalesAccountModel.ListResponse.Item[]>;
|
|
307
308
|
fetchTaxIrbpnr(): Promise<void>;
|
|
308
309
|
onConfirmSave(redirect: 'new' | 'view' | 'close' | 'modal'): Promise<void>;
|
|
310
|
+
populateFormWithExistingDetails(details: CbmSalesAccountModel.GetOneResponse.Data.Detail[]): Promise<void>;
|
|
309
311
|
fetchCompanyCustom(): Promise<void>;
|
|
310
312
|
saveRequest(): Promise<string>;
|
|
311
313
|
onCancelPress(): void;
|
|
@@ -47,13 +47,13 @@ export declare class CbmPmsAddCharge implements OnInit {
|
|
|
47
47
|
protected costCenter$: ListService<CbmCostCenterModel.ListResponse, CbmCostCenterModel.ListParams, CbmCostCenterModel.ListResponse.Data[]>;
|
|
48
48
|
firstCostCenter$: Subject<void>;
|
|
49
49
|
protected foliosRoomId: import("@angular/core").WritableSignal<string | null>;
|
|
50
|
-
protected selectedFolio: import("@angular/core").WritableSignal<CbmSalesAccountModel.GetOneResponse.Data
|
|
50
|
+
protected selectedFolio: import("@angular/core").WritableSignal<CbmSalesAccountModel.GetOneResponse.Data | null>;
|
|
51
51
|
protected priceList: import("@angular/core").Signal<Partial<CbmPriceListModel.ListResponse.Data>>;
|
|
52
52
|
protected client: import("@angular/core").Signal<Partial<CbmClientModel.GetOneResponse.Data>>;
|
|
53
53
|
contact: import("@angular/core").Signal<Partial<CbmContactModel.ListResponse.Data> | null>;
|
|
54
54
|
clientBranch: import("@angular/core").Signal<Partial<CbmClientModel.GetOneResponse.Data.Contact>>;
|
|
55
55
|
protected costCenter: import("@angular/core").Signal<Partial<CbmCostCenterModel.ListResponse.Data>>;
|
|
56
|
-
protected relatedDocument: import("@angular/core").Signal<CbmSalesAccountModel.
|
|
56
|
+
protected relatedDocument: import("@angular/core").Signal<CbmSalesAccountModel.GetOneResponse.Data.Origin | null>;
|
|
57
57
|
protected totals: import("@angular/core").WritableSignal<{
|
|
58
58
|
itemAmount: number;
|
|
59
59
|
itemSubtotal: number;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CbmSalePriceModel } from "./sale-price.domain.model";
|
|
1
2
|
export declare namespace CbmSalesAccountModel {
|
|
2
3
|
type DetailType = 'item' | 'service' | 'kit' | 'outsourcing_service';
|
|
3
4
|
const transactionTypes: Record<string, string>;
|
|
@@ -31,42 +32,60 @@ export declare namespace CbmSalesAccountModel {
|
|
|
31
32
|
interface Item {
|
|
32
33
|
_id: string;
|
|
33
34
|
company_id: string;
|
|
35
|
+
collection_origin_id: string;
|
|
36
|
+
collection_origin_name: string;
|
|
37
|
+
collection_origin_document_nomenclature_number: string;
|
|
38
|
+
collection_origin_created_at: number;
|
|
39
|
+
collection_origin_created_user: string;
|
|
40
|
+
event_module_origin: string;
|
|
41
|
+
data_origin: Item.DataOrigin;
|
|
34
42
|
company_NIF: string;
|
|
35
|
-
guest_last_name: string;
|
|
36
|
-
guest_name: string;
|
|
37
43
|
company_address: string;
|
|
38
44
|
company_trade_name: string;
|
|
39
45
|
company_business_name: string;
|
|
40
|
-
company_branch_id: string;
|
|
41
|
-
company_branch_identification_number: string;
|
|
42
|
-
company_branch_trade_name: string;
|
|
43
|
-
company_branch_logo: string;
|
|
44
|
-
company_branch_address: string;
|
|
45
|
-
company_branch_email: string;
|
|
46
|
-
company_branch_cellphone: string;
|
|
47
|
-
company_branch_phone: string;
|
|
48
46
|
country_id: string;
|
|
49
47
|
country_code: string;
|
|
50
48
|
country_name: string;
|
|
51
49
|
country_short_name: string;
|
|
52
50
|
period_id: string;
|
|
53
51
|
period_year: string;
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
52
|
+
client_id: string;
|
|
53
|
+
client_business_name: string;
|
|
54
|
+
client_trade_name: string;
|
|
55
|
+
client_document_number: string;
|
|
56
|
+
client_credit_application: boolean;
|
|
57
|
+
client_document_type_id: string;
|
|
58
|
+
client_document_type_name: string;
|
|
59
|
+
client_document_type_code: string;
|
|
60
|
+
client_category_id: string;
|
|
61
|
+
client_category_name: string;
|
|
62
|
+
client_price_list_id: string;
|
|
63
|
+
client_price_list_name: string;
|
|
64
|
+
client_branch_id: string;
|
|
65
|
+
client_branch_code: string;
|
|
66
|
+
client_branch_name: string;
|
|
67
|
+
client_branch_address: string;
|
|
68
|
+
client_branch_email: string[];
|
|
69
|
+
client_branch_phone_code: string;
|
|
70
|
+
client_branch_phone: string;
|
|
71
|
+
client_branch_cellphone: string;
|
|
72
|
+
client_branch_type_establishment: string;
|
|
73
|
+
client_branch_seller_id: string;
|
|
74
|
+
client_branch_seller_identification_number: string;
|
|
75
|
+
client_branch_seller_full_name: string;
|
|
76
|
+
client_branch_seller_address: string;
|
|
77
|
+
client_branch_seller_email: string[];
|
|
78
|
+
client_branch_seller_cellphone: string;
|
|
57
79
|
default_cost_center_id: string;
|
|
58
80
|
default_cost_center_code: string;
|
|
59
81
|
default_cost_center_name: string;
|
|
60
|
-
|
|
82
|
+
default_cost_center_father_code: string;
|
|
83
|
+
default_cost_center_father_name: string;
|
|
61
84
|
document_nomenclature: string;
|
|
62
85
|
document_number: string;
|
|
63
86
|
document_date: number;
|
|
64
|
-
document_type: string;
|
|
65
87
|
generation_type: string;
|
|
66
88
|
state: string;
|
|
67
|
-
booking_id: string;
|
|
68
|
-
booking_document_nomenclature: string;
|
|
69
|
-
booking_document_number: string;
|
|
70
89
|
tax_base: number;
|
|
71
90
|
discount: number;
|
|
72
91
|
service: number;
|
|
@@ -85,87 +104,31 @@ export declare namespace CbmSalesAccountModel {
|
|
|
85
104
|
commentary: string;
|
|
86
105
|
enabled: boolean;
|
|
87
106
|
user_id: string;
|
|
88
|
-
created_at: number;
|
|
89
107
|
created_user: string;
|
|
90
|
-
|
|
91
|
-
client_business_name: string;
|
|
92
|
-
client_trade_name: string;
|
|
93
|
-
client_document_number: string;
|
|
94
|
-
client_credit_application: boolean;
|
|
95
|
-
client_document_type_id: string;
|
|
96
|
-
client_document_type_name: string;
|
|
97
|
-
client_document_type_code: string;
|
|
98
|
-
client_category_id: string;
|
|
99
|
-
client_category_name: string;
|
|
100
|
-
client_price_list_id?: string;
|
|
101
|
-
client_price_list_code?: string;
|
|
102
|
-
client_price_list_name?: string;
|
|
103
|
-
client_branch_id: string;
|
|
104
|
-
client_branch_code: string;
|
|
105
|
-
client_branch_name: string;
|
|
106
|
-
client_branch_address: string;
|
|
107
|
-
client_branch_email: string[];
|
|
108
|
-
client_branch_phone_code?: string;
|
|
109
|
-
client_branch_phone?: string;
|
|
110
|
-
client_branch_cellphone?: string;
|
|
111
|
-
client_branch_type_establishment: string;
|
|
112
|
-
client_branch_province_id?: string;
|
|
113
|
-
client_branch_province_code?: string;
|
|
114
|
-
client_branch_province_name?: string;
|
|
115
|
-
client_branch_canton_id?: string;
|
|
116
|
-
client_branch_canton_code?: string;
|
|
117
|
-
client_branch_canton_name?: string;
|
|
118
|
-
client_branch_parish_id?: string;
|
|
119
|
-
client_branch_parish_code?: string;
|
|
120
|
-
client_branch_parish_name?: string;
|
|
121
|
-
client_branch_longitude?: number;
|
|
122
|
-
client_branch_latitude?: number;
|
|
123
|
-
client_branch_seller_id: string;
|
|
124
|
-
client_branch_seller_identification_number: string;
|
|
125
|
-
client_branch_seller_full_name: string;
|
|
126
|
-
client_branch_seller_address: string;
|
|
127
|
-
client_branch_seller_email?: string[];
|
|
128
|
-
client_branch_seller_cellphone?: string;
|
|
129
|
-
client_branch_contact_id?: string;
|
|
130
|
-
client_branch_contact_identification_number?: string;
|
|
131
|
-
client_branch_contact_full_name?: string;
|
|
132
|
-
client_branch_contact_cellphone?: string;
|
|
133
|
-
client_branch_contact_email?: string[];
|
|
134
|
-
sales_account_related_documents: Item.SalesAccountRelatedDocuments[];
|
|
108
|
+
created_at: number;
|
|
135
109
|
}
|
|
136
110
|
namespace Item {
|
|
137
|
-
interface
|
|
138
|
-
_id: string;
|
|
139
|
-
company_id: string;
|
|
140
|
-
country_id: string;
|
|
141
|
-
collection_origin_id: string;
|
|
142
|
-
collection_origin_name: string;
|
|
143
|
-
collection_origin_document_nomenclature_number: string;
|
|
144
|
-
event_module_origin: string;
|
|
145
|
-
comment_check_in: string;
|
|
146
|
-
sales_account_id: string;
|
|
111
|
+
interface DataOrigin {
|
|
147
112
|
document_type: string;
|
|
113
|
+
booking_document_nomenclature_number: string;
|
|
148
114
|
room_id: string;
|
|
149
115
|
room_name: string;
|
|
116
|
+
comment_check_in: string;
|
|
150
117
|
guest_id: string;
|
|
151
118
|
guest_document_type_id: string;
|
|
152
119
|
guest_document_type_code: string;
|
|
153
120
|
guest_document_type_name: string;
|
|
154
121
|
guest_name: string;
|
|
155
122
|
guest_last_name: string;
|
|
156
|
-
enabled: boolean;
|
|
157
|
-
user_id: string;
|
|
158
|
-
created_at: number;
|
|
159
|
-
created_user: string;
|
|
160
123
|
}
|
|
161
124
|
}
|
|
162
125
|
}
|
|
163
|
-
interface GetOneResponse
|
|
126
|
+
interface GetOneResponse {
|
|
164
127
|
success: boolean;
|
|
165
|
-
data: GetOneResponse.Data
|
|
128
|
+
data: GetOneResponse.Data;
|
|
166
129
|
}
|
|
167
130
|
namespace GetOneResponse {
|
|
168
|
-
interface Data
|
|
131
|
+
interface Data {
|
|
169
132
|
_id: string;
|
|
170
133
|
company_id: string;
|
|
171
134
|
company_NIF: string;
|
|
@@ -256,7 +219,6 @@ export declare namespace CbmSalesAccountModel {
|
|
|
256
219
|
user_id: string;
|
|
257
220
|
created_at: number;
|
|
258
221
|
created_user: string;
|
|
259
|
-
sales_account_related_documents: T;
|
|
260
222
|
data_origin: Data.Origin;
|
|
261
223
|
sales_account_detail?: Data.Detail[];
|
|
262
224
|
}
|
|
@@ -284,6 +246,17 @@ export declare namespace CbmSalesAccountModel {
|
|
|
284
246
|
order_document_nomenclature: string;
|
|
285
247
|
order_document_number: string;
|
|
286
248
|
order_document_date: number;
|
|
249
|
+
document_type: string;
|
|
250
|
+
booking_document_nomenclature_number: string;
|
|
251
|
+
room_id: string;
|
|
252
|
+
room_name: string;
|
|
253
|
+
comment_check_in: string;
|
|
254
|
+
guest_id: string;
|
|
255
|
+
guest_document_type_id: string;
|
|
256
|
+
guest_document_type_code: string;
|
|
257
|
+
guest_document_type_name: string;
|
|
258
|
+
guest_name: string;
|
|
259
|
+
guest_last_name: string;
|
|
287
260
|
}
|
|
288
261
|
interface Detail {
|
|
289
262
|
_id: string;
|
|
@@ -326,7 +299,7 @@ export declare namespace CbmSalesAccountModel {
|
|
|
326
299
|
created_user: string;
|
|
327
300
|
created_at: number;
|
|
328
301
|
type?: DetailType;
|
|
329
|
-
price_type?:
|
|
302
|
+
price_type?: CbmSalePriceModel.TName;
|
|
330
303
|
sale_account_detail_tax?: Detail.Tax[];
|
|
331
304
|
tax_iva?: Detail.TaxIva;
|
|
332
305
|
outsourcing_service_data?: Detail.OutsourcingServiceData;
|
|
@@ -6,6 +6,6 @@ export declare class CbmSalesAccountDomainRepository {
|
|
|
6
6
|
private readonly service;
|
|
7
7
|
constructor(service: ICbmSalesAccountRepository);
|
|
8
8
|
list(params: CbmSalesAccountModel.ListParams): Observable<CbmSalesAccountModel.ListResponse>;
|
|
9
|
-
getOne<T>(id: string): Observable<CbmSalesAccountModel.GetOneResponse
|
|
9
|
+
getOne<T>(id: string): Observable<CbmSalesAccountModel.GetOneResponse>;
|
|
10
10
|
save(data: CbmSalesAccountModel.Save): Observable<IGeneral.Confirm>;
|
|
11
11
|
}
|
|
@@ -3,6 +3,6 @@ import { CbmSalesAccountModel } from '../../domain/models/sales-account.domain.m
|
|
|
3
3
|
import { IGeneral } from '../../domain/models/general.domain.model';
|
|
4
4
|
export interface ICbmSalesAccountRepository {
|
|
5
5
|
list(params: CbmSalesAccountModel.ListParams): Observable<CbmSalesAccountModel.ListResponse>;
|
|
6
|
-
getOne
|
|
6
|
+
getOne(id: string): Observable<CbmSalesAccountModel.GetOneResponse>;
|
|
7
7
|
save(data: CbmSalesAccountModel.Save): Observable<IGeneral.Confirm>;
|
|
8
8
|
}
|
|
@@ -8,6 +8,6 @@ export declare class CbmSalesAccountService implements ICbmSalesAccountRepositor
|
|
|
8
8
|
constructor(http: HttpClient);
|
|
9
9
|
private readonly baseUrl;
|
|
10
10
|
list(params: CbmSalesAccountModel.ListParams): Observable<CbmSalesAccountModel.ListResponse>;
|
|
11
|
-
getOne
|
|
11
|
+
getOne(id: string): Observable<CbmSalesAccountModel.GetOneResponse>;
|
|
12
12
|
save(data: CbmSalesAccountModel.Save): Observable<IGeneral.Confirm>;
|
|
13
13
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -324,6 +324,10 @@ export * from './lib/components/confirmation-modal/confirmation-modal';
|
|
|
324
324
|
export * from './lib/components/stock-by-warehouse/stock-by-warehouse';
|
|
325
325
|
export * from './lib/components/stock-by-warehouse/type';
|
|
326
326
|
|
|
327
|
+
// #region sales account repository
|
|
328
|
+
export * from './lib/domain/repositories/sales-account.domain.repository';
|
|
329
|
+
export * from './lib/domain/models/sales-account.domain.model';
|
|
330
|
+
|
|
327
331
|
// #region company branch repository
|
|
328
332
|
export * from './lib/domain/repositories/company-branch.domain.repository';
|
|
329
333
|
export * from './lib/domain/models/company-branch.domain.model';
|