@experteam-mx/ngx-services 20.3.1 → 20.3.3
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.
|
@@ -59,6 +59,116 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImpo
|
|
|
59
59
|
}]
|
|
60
60
|
}] });
|
|
61
61
|
|
|
62
|
+
class ApiBillingCOService {
|
|
63
|
+
environments = inject(ENVIRONMENT_TOKEN);
|
|
64
|
+
http = inject(HttpClient);
|
|
65
|
+
/**
|
|
66
|
+
* Retrieves the URL for the billing API.
|
|
67
|
+
* If the URL is not defined in the environments configuration, returns an empty string.
|
|
68
|
+
*
|
|
69
|
+
* @returns {string} The billing API URL or an empty string if not set.
|
|
70
|
+
*/
|
|
71
|
+
get url() {
|
|
72
|
+
return this.environments.apiBillingCO ?? '';
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Retrieves the information of a customer by its identifier.
|
|
76
|
+
*
|
|
77
|
+
* @param {number} id - Unique customer identifier.
|
|
78
|
+
* @returns {Observable<CoCustomerOut>}
|
|
79
|
+
* Observable emitting the customer information.
|
|
80
|
+
*/
|
|
81
|
+
getCustomer(id) {
|
|
82
|
+
return this.http.get(`${this.url}/customer/${id}`)
|
|
83
|
+
.pipe(map(({ data }) => data));
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Creates a new customer.
|
|
87
|
+
*
|
|
88
|
+
* @param {CoCustomerIn} body - Customer data to be created.
|
|
89
|
+
* @returns {Observable<CoCustomerOut>}
|
|
90
|
+
* Observable emitting the created customer information.
|
|
91
|
+
*/
|
|
92
|
+
postCustomer(body) {
|
|
93
|
+
return this.http.post(`${this.url}/customer`, body)
|
|
94
|
+
.pipe(map(({ data }) => data));
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Retrieves the list of departments based on the provided query parameters.
|
|
98
|
+
*
|
|
99
|
+
* @param {QueryParams} params - Query parameters used to filter or paginate the request.
|
|
100
|
+
* @returns {Observable<CoDepartmentsOut>}
|
|
101
|
+
* Observable emitting the departments list.
|
|
102
|
+
*/
|
|
103
|
+
getDepartments(params) {
|
|
104
|
+
return this.http.get(`${this.url}/departments`, { params })
|
|
105
|
+
.pipe(map(({ data }) => data));
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Retrieves the list of municipalities based on the provided query parameters.
|
|
109
|
+
*
|
|
110
|
+
* @param {QueryParams} params - Query parameters used to filter or paginate the request.
|
|
111
|
+
* @returns {Observable<CoMunicipalitiesOut>}
|
|
112
|
+
* Observable emitting the municipalities list.
|
|
113
|
+
*/
|
|
114
|
+
getMunicipalities(params) {
|
|
115
|
+
return this.http.get(`${this.url}/municipalities`, { params })
|
|
116
|
+
.pipe(map(({ data }) => data));
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Retrieves the list of postal codes based on the provided query parameters.
|
|
120
|
+
*
|
|
121
|
+
* @param {QueryParams} params - Query parameters used to filter or paginate the request.
|
|
122
|
+
* @returns {Observable<CoPostalCodesOut>}
|
|
123
|
+
* Observable emitting the postal codes list.
|
|
124
|
+
*/
|
|
125
|
+
getPostalCodes(params) {
|
|
126
|
+
return this.http.get(`${this.url}/postal-codes`, { params })
|
|
127
|
+
.pipe(map(({ data }) => data));
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Retrieves the list of fiscal regimes based on the provided query parameters.
|
|
131
|
+
*
|
|
132
|
+
* @param {QueryParams} params - Query parameters used to filter or paginate the request.
|
|
133
|
+
* @returns {Observable<CoFiscalRegimesOut>}
|
|
134
|
+
* Observable emitting the fiscal regimes list.
|
|
135
|
+
*/
|
|
136
|
+
getFiscalRegimes(params) {
|
|
137
|
+
return this.http.get(`${this.url}/fiscal-regimes`, { params })
|
|
138
|
+
.pipe(map(({ data }) => data));
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Retrieves the list of fiscal responsibilities based on the provided query parameters.
|
|
142
|
+
*
|
|
143
|
+
* @param {QueryParams} params - Query parameters used to filter or paginate the request.
|
|
144
|
+
* @returns {Observable<CoFiscalResponsibilitiesOut>}
|
|
145
|
+
* Observable emitting the fiscal responsibilities list.
|
|
146
|
+
*/
|
|
147
|
+
getFiscalResponsibilities(params) {
|
|
148
|
+
return this.http.get(`${this.url}/fiscal-responsibilities`, { params })
|
|
149
|
+
.pipe(map(({ data }) => data));
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Retrieves the list of tributes based on the provided query parameters.
|
|
153
|
+
*
|
|
154
|
+
* @param {QueryParams} params - Query parameters used to filter or paginate the request.
|
|
155
|
+
* @returns {Observable<CoTributesOut>}
|
|
156
|
+
* Observable emitting the tributes list.
|
|
157
|
+
*/
|
|
158
|
+
getTributes(params) {
|
|
159
|
+
return this.http.get(`${this.url}/tributes`, { params })
|
|
160
|
+
.pipe(map(({ data }) => data));
|
|
161
|
+
}
|
|
162
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiBillingCOService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
163
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiBillingCOService, providedIn: 'root' });
|
|
164
|
+
}
|
|
165
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiBillingCOService, decorators: [{
|
|
166
|
+
type: Injectable,
|
|
167
|
+
args: [{
|
|
168
|
+
providedIn: 'root'
|
|
169
|
+
}]
|
|
170
|
+
}] });
|
|
171
|
+
|
|
62
172
|
class ApiBillingDOService {
|
|
63
173
|
environments = inject(ENVIRONMENT_TOKEN);
|
|
64
174
|
http = inject(HttpClient);
|
|
@@ -3913,6 +4023,16 @@ class ApiReportsService {
|
|
|
3913
4023
|
return this.http.get(`${this.url}/inventories-report`, { params })
|
|
3914
4024
|
.pipe(map(({ data }) => data));
|
|
3915
4025
|
}
|
|
4026
|
+
/**
|
|
4027
|
+
* Retrieves billing details based on the provided query parameters.
|
|
4028
|
+
*
|
|
4029
|
+
* @param params - The query parameters used to filter the billing details.
|
|
4030
|
+
* @returns An observable that emits the billing details.
|
|
4031
|
+
*/
|
|
4032
|
+
getBillingDetails(params) {
|
|
4033
|
+
return this.http.get(`${this.url}/billing-details`, { params })
|
|
4034
|
+
.pipe(map(({ data }) => data));
|
|
4035
|
+
}
|
|
3916
4036
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiReportsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3917
4037
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiReportsService, providedIn: 'root' });
|
|
3918
4038
|
}
|
|
@@ -5153,5 +5273,5 @@ const xmlHeaders = (format = 'object') => {
|
|
|
5153
5273
|
* Generated bundle index. Do not edit.
|
|
5154
5274
|
*/
|
|
5155
5275
|
|
|
5156
|
-
export { AlphaNumeric, ApiBillingDOService, ApiBillingGtService, ApiBillingMxService, ApiBillingPaService, ApiBillingSvService, ApiCashOperationsService, ApiCatalogsService, ApiCompaniesService, ApiCompositionService, ApiCustomsService, ApiDiscountsService, ApiEToolsAutoBillingService, ApiEventsService, ApiExternalOperationsService, ApiInventoriesService, ApiInvoicesService, ApiNotificationsService, ApiOpenItemsService, ApiQuoteService, ApiReportsService, ApiSecurityService, ApiServicesService, ApiShipmentsService, ApiSuppliesService, ApiSurveysService, CryptoService, DefaultValueType, ENVIRONMENT_TOKEN, Event, Group, NgxServicesModule, OperationModuleStatus, ViewSectionOption, WebSocketsService, apiHeadersInterceptor, apiKeyInterceptor, apiTokenInterceptor, base64PdfToUrl, downloadBase64Pdf, httpCachingInterceptor, httpParams, pdfHeaders, provideNgxServices, queryString, xmlHeaders };
|
|
5276
|
+
export { AlphaNumeric, ApiBillingCOService, ApiBillingDOService, ApiBillingGtService, ApiBillingMxService, ApiBillingPaService, ApiBillingSvService, ApiCashOperationsService, ApiCatalogsService, ApiCompaniesService, ApiCompositionService, ApiCustomsService, ApiDiscountsService, ApiEToolsAutoBillingService, ApiEventsService, ApiExternalOperationsService, ApiInventoriesService, ApiInvoicesService, ApiNotificationsService, ApiOpenItemsService, ApiQuoteService, ApiReportsService, ApiSecurityService, ApiServicesService, ApiShipmentsService, ApiSuppliesService, ApiSurveysService, CryptoService, DefaultValueType, ENVIRONMENT_TOKEN, Event, Group, NgxServicesModule, OperationModuleStatus, ViewSectionOption, WebSocketsService, apiHeadersInterceptor, apiKeyInterceptor, apiTokenInterceptor, base64PdfToUrl, downloadBase64Pdf, httpCachingInterceptor, httpParams, pdfHeaders, provideNgxServices, queryString, xmlHeaders };
|
|
5157
5277
|
//# sourceMappingURL=experteam-mx-ngx-services.mjs.map
|