@experteam-mx/ngx-services 18.7.21 → 18.7.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/esm2022/lib/apis/api-billing-sv.service.mjs +83 -0
- package/esm2022/lib/apis/api-invoices.service.mjs +11 -1
- package/esm2022/lib/apis/models/api-billing-sv.interfaces.mjs +2 -0
- package/esm2022/lib/apis/models/api-billing-sv.types.mjs +2 -0
- package/esm2022/lib/apis/models/api-composition.interfaces.mjs +1 -1
- package/esm2022/lib/apis/models/api-invoices.interfaces.mjs +1 -1
- package/esm2022/lib/apis/models/api-invoices.types.mjs +1 -1
- package/esm2022/lib/apis/models/api-reports.interfaces.mjs +1 -1
- package/esm2022/lib/ngx-services.models.mjs +1 -1
- package/esm2022/public-api.mjs +4 -1
- package/fesm2022/experteam-mx-ngx-services.mjs +90 -1
- package/fesm2022/experteam-mx-ngx-services.mjs.map +1 -1
- package/lib/apis/api-billing-sv.service.d.ts +55 -0
- package/lib/apis/api-invoices.service.d.ts +8 -1
- package/lib/apis/models/api-billing-sv.interfaces.d.ts +22 -0
- package/lib/apis/models/api-billing-sv.types.d.ts +21 -0
- package/lib/apis/models/api-composition.interfaces.d.ts +2 -2
- package/lib/apis/models/api-invoices.interfaces.d.ts +20 -2
- package/lib/apis/models/api-invoices.types.d.ts +4 -1
- package/lib/apis/models/api-reports.interfaces.d.ts +2 -2
- package/lib/ngx-services.models.d.ts +1 -0
- package/package.json +1 -1
- package/public-api.d.ts +3 -0
|
@@ -272,6 +272,85 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
272
272
|
args: ['env']
|
|
273
273
|
}] }, { type: i1.HttpClient }] });
|
|
274
274
|
|
|
275
|
+
class ApiBillingSvService {
|
|
276
|
+
environments;
|
|
277
|
+
http;
|
|
278
|
+
constructor(environments, http) {
|
|
279
|
+
this.environments = environments;
|
|
280
|
+
this.http = http;
|
|
281
|
+
}
|
|
282
|
+
/**
|
|
283
|
+
* Retrieves the URL for the billing API.
|
|
284
|
+
* If the URL is not defined in the environments configuration, returns an empty string.
|
|
285
|
+
*
|
|
286
|
+
* @return {string} The billing API URL or an empty string if not set.
|
|
287
|
+
*/
|
|
288
|
+
get url() {
|
|
289
|
+
return this.environments.apiBillingSV ?? '';
|
|
290
|
+
}
|
|
291
|
+
/**
|
|
292
|
+
* Fetches the list of economic activities based on the provided query parameters.
|
|
293
|
+
*
|
|
294
|
+
* @param {QueryParams} params - The query parameters used to filter the economic activities.
|
|
295
|
+
* @return {Observable<EconomicActivitiesOut>} An observable that emits the list of economic activities.
|
|
296
|
+
*/
|
|
297
|
+
getEconomicActivities(params) {
|
|
298
|
+
return this.http.get(`${this.url}/economic-activities`, { params })
|
|
299
|
+
.pipe(map(({ data }) => data));
|
|
300
|
+
}
|
|
301
|
+
/**
|
|
302
|
+
* Retrieves the list of person types based on given query parameters.
|
|
303
|
+
*
|
|
304
|
+
* @param {QueryParams} params - The query parameters used to filter the person types.
|
|
305
|
+
* @return {Observable<PersonTypesOut>} An observable that emits a list of person types.
|
|
306
|
+
*/
|
|
307
|
+
getPersonTypes(params) {
|
|
308
|
+
return this.http.get(`${this.url}/person-types`, { params })
|
|
309
|
+
.pipe(map(({ data }) => data));
|
|
310
|
+
}
|
|
311
|
+
/**
|
|
312
|
+
* Fetches the list of establishment types.
|
|
313
|
+
*
|
|
314
|
+
* @param {QueryParams} params The query parameters to be sent with the HTTP request.
|
|
315
|
+
* @return {Observable<EstablishmentTypesOut>} An observable that emits the establishment types data.
|
|
316
|
+
*/
|
|
317
|
+
getEstablishmentTypes(params) {
|
|
318
|
+
return this.http.get(`${this.url}/establishment-types`, { params })
|
|
319
|
+
.pipe(map(({ data }) => data));
|
|
320
|
+
}
|
|
321
|
+
/**
|
|
322
|
+
* Fetches the list of departments based on the provided query parameters.
|
|
323
|
+
*
|
|
324
|
+
* @param {QueryParams} params - The query parameters to filter or modify the departments fetch request.
|
|
325
|
+
* @return {Observable<DepartmentsOut>} An observable emitting the list of departments.
|
|
326
|
+
*/
|
|
327
|
+
getDepartments(params) {
|
|
328
|
+
return this.http.get(`${this.url}/departments`, { params })
|
|
329
|
+
.pipe(map(({ data }) => data));
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
* Retrieves a list of municipalities based on the provided query parameters.
|
|
333
|
+
*
|
|
334
|
+
* @param {QueryParams} params - The query parameters used to filter the municipalities.
|
|
335
|
+
* @return {Observable<MunicipalitiesOut>} An observable that emits the retrieved municipalities data.
|
|
336
|
+
*/
|
|
337
|
+
getMunicipalities(params) {
|
|
338
|
+
return this.http.get(`${this.url}/municipalities`, { params })
|
|
339
|
+
.pipe(map(({ data }) => data));
|
|
340
|
+
}
|
|
341
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiBillingSvService, deps: [{ token: 'env' }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
342
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiBillingSvService, providedIn: 'root' });
|
|
343
|
+
}
|
|
344
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiBillingSvService, decorators: [{
|
|
345
|
+
type: Injectable,
|
|
346
|
+
args: [{
|
|
347
|
+
providedIn: 'root'
|
|
348
|
+
}]
|
|
349
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
350
|
+
type: Inject,
|
|
351
|
+
args: ['env']
|
|
352
|
+
}] }, { type: i1.HttpClient }] });
|
|
353
|
+
|
|
275
354
|
class ApiCashOperationsService {
|
|
276
355
|
environments;
|
|
277
356
|
http;
|
|
@@ -2716,6 +2795,16 @@ class ApiInvoicesService {
|
|
|
2716
2795
|
return this.http.delete(`${this.url}/tolerances/${id}`)
|
|
2717
2796
|
.pipe(map(({ data }) => data));
|
|
2718
2797
|
}
|
|
2798
|
+
/**
|
|
2799
|
+
* Retrieves the document requests associated with a document ID.
|
|
2800
|
+
*
|
|
2801
|
+
* @param id - The unique identifier for the document.
|
|
2802
|
+
* @returns An observable that emits the document requests data.
|
|
2803
|
+
*/
|
|
2804
|
+
getOperationDocumentRequests(id) {
|
|
2805
|
+
return this.http.get(`${this.url}/operation/document/requests/${id}`)
|
|
2806
|
+
.pipe(map(({ data }) => data));
|
|
2807
|
+
}
|
|
2719
2808
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiInvoicesService, deps: [{ token: 'env' }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2720
2809
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiInvoicesService, providedIn: 'root' });
|
|
2721
2810
|
}
|
|
@@ -3913,5 +4002,5 @@ const downloadBase64Pdf = (base64) => window.open(base64PdfToUrl(base64));
|
|
|
3913
4002
|
* Generated bundle index. Do not edit.
|
|
3914
4003
|
*/
|
|
3915
4004
|
|
|
3916
|
-
export { AlphaNumeric, ApiBillingDOService, ApiBillingGtService, ApiBillingMxService, ApiBillingPaService, ApiCashOperationsService, ApiCatalogsService, ApiCompaniesService, ApiCompositionService, ApiDiscountsService, ApiEToolsAutoBillingService, ApiExternalPickupsService, ApiInventoriesService, ApiInvoicesService, ApiNotificationsService, ApiOpenItemsService, ApiReportsService, ApiSecurityService, ApiServicesService, ApiShipmentsService, ApiSuppliesService, CryptoService, DefaultValueType, ENVIRONMENT_TOKEN, Event, NgxServicesModule, WebSocketsService, apiHeadersInterceptor, apiTokenInterceptor, base64PdfToUrl, downloadBase64Pdf, httpCachingInterceptor, httpParams, pdfHeaders, queryString, xmlHeaders };
|
|
4005
|
+
export { AlphaNumeric, ApiBillingDOService, ApiBillingGtService, ApiBillingMxService, ApiBillingPaService, ApiBillingSvService, ApiCashOperationsService, ApiCatalogsService, ApiCompaniesService, ApiCompositionService, ApiDiscountsService, ApiEToolsAutoBillingService, ApiExternalPickupsService, ApiInventoriesService, ApiInvoicesService, ApiNotificationsService, ApiOpenItemsService, ApiReportsService, ApiSecurityService, ApiServicesService, ApiShipmentsService, ApiSuppliesService, CryptoService, DefaultValueType, ENVIRONMENT_TOKEN, Event, NgxServicesModule, WebSocketsService, apiHeadersInterceptor, apiTokenInterceptor, base64PdfToUrl, downloadBase64Pdf, httpCachingInterceptor, httpParams, pdfHeaders, queryString, xmlHeaders };
|
|
3917
4006
|
//# sourceMappingURL=experteam-mx-ngx-services.mjs.map
|