@experteam-mx/ngx-services 18.9.0 → 18.9.2
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-pa.service.mjs +30 -1
- package/esm2022/lib/apis/models/api-billing.models.mjs +1 -1
- package/esm2022/lib/apis/models/api-catalog.types.mjs +1 -1
- package/fesm2022/experteam-mx-ngx-services.mjs +29 -0
- package/fesm2022/experteam-mx-ngx-services.mjs.map +1 -1
- package/lib/apis/api-billing-pa.service.d.ts +22 -1
- package/lib/apis/models/api-billing.models.d.ts +6 -0
- package/lib/apis/models/api-catalog.types.d.ts +1 -1
- package/package.json +1 -1
|
@@ -3,8 +3,9 @@ import { HttpClient } from '@angular/common/http';
|
|
|
3
3
|
import { QueryParams } from './models/api.models';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
5
|
import { BillingPaCustomerOut, DistrictsOut, ParishesOut, ProvincesOut } from './models/api-billing-pa.types';
|
|
6
|
+
import { ApiBillingConfigurable, BillingConfigIn, BillingConfigOut, BillingConfigsOut } from './models/api-billing.models';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class ApiBillingPaService {
|
|
8
|
+
export declare class ApiBillingPaService implements ApiBillingConfigurable {
|
|
8
9
|
private environments;
|
|
9
10
|
private http;
|
|
10
11
|
constructor(environments: Environment, http: HttpClient);
|
|
@@ -42,6 +43,26 @@ export declare class ApiBillingPaService {
|
|
|
42
43
|
* @return {Observable<BillingPaCustomerOut>} An observable that emits customer data.
|
|
43
44
|
*/
|
|
44
45
|
getValidateCustomer(params: QueryParams): Observable<BillingPaCustomerOut>;
|
|
46
|
+
/**
|
|
47
|
+
* RRetrieves the list of billing configurations to locations
|
|
48
|
+
*
|
|
49
|
+
* @return {Observable<BillingConfigsOut>} An observable that emits an array of billing configurations to locations
|
|
50
|
+
*/
|
|
51
|
+
getConfigs(): Observable<BillingConfigsOut>;
|
|
52
|
+
/**
|
|
53
|
+
* Retrieves the details of a location in billing configurations
|
|
54
|
+
*
|
|
55
|
+
* @param {number} id - The id of the location to fetch.
|
|
56
|
+
* @return {Observable<BillingConfigOut>} An observable that emits the location billing configuration data.
|
|
57
|
+
*/
|
|
58
|
+
getConfig(id: number): Observable<BillingConfigOut>;
|
|
59
|
+
/**
|
|
60
|
+
* Sends a POST request to create a new billing configuration location.
|
|
61
|
+
*
|
|
62
|
+
* @param {BillingConfigIn} body - The billing configuration to location data to be sent in the request body.
|
|
63
|
+
* @return {Observable<BillingConfigOut>} An observable emitting the created billing configuration to location data.
|
|
64
|
+
*/
|
|
65
|
+
postConfigs(body: BillingConfigIn): Observable<BillingConfigOut>;
|
|
45
66
|
static ɵfac: i0.ɵɵFactoryDeclaration<ApiBillingPaService, never>;
|
|
46
67
|
static ɵprov: i0.ɵɵInjectableDeclaration<ApiBillingPaService>;
|
|
47
68
|
}
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
|
+
import { QueryParams } from './api.models';
|
|
3
|
+
import { DistrictsOut, ParishesOut, ProvincesOut } from './api-billing-pa.types';
|
|
2
4
|
export interface ApiBillingConfigurable {
|
|
3
5
|
getConfigs(): Observable<BillingConfigsOut>;
|
|
4
6
|
getConfig(id: number): Observable<BillingConfigOut>;
|
|
5
7
|
postConfigs(body: BillingConfigIn): Observable<BillingConfigOut>;
|
|
8
|
+
getDistricts?(params: QueryParams): Observable<DistrictsOut>;
|
|
9
|
+
getParishes?(params: QueryParams): Observable<ParishesOut>;
|
|
10
|
+
getProvinces?(params: QueryParams): Observable<ProvincesOut>;
|
|
6
11
|
}
|
|
7
12
|
export type BillingConfig = {
|
|
8
13
|
label: string;
|
|
9
14
|
field: string;
|
|
10
15
|
is_required: boolean;
|
|
16
|
+
type?: string;
|
|
11
17
|
};
|
|
12
18
|
export type BillingConfigsOut = {
|
|
13
19
|
configurations: BillingConfig[];
|