@experteam-mx/ngx-services 18.8.0 → 18.8.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/api-companies.service.mjs +17 -1
- package/esm2022/lib/apis/models/api-billing.models.mjs +1 -1
- package/esm2022/lib/apis/models/api-companies.types.mjs +1 -1
- package/fesm2022/experteam-mx-ngx-services.mjs +45 -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/api-companies.service.d.ts +12 -0
- package/lib/apis/models/api-billing.models.d.ts +6 -0
- package/lib/apis/models/api-companies.types.d.ts +4 -0
- 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
|
}
|
|
@@ -697,6 +697,18 @@ export declare class ApiCompaniesService {
|
|
|
697
697
|
* @returns {Observable<TDXAccountSettingsOut>} An observable containing the updated TDX account setting.
|
|
698
698
|
*/
|
|
699
699
|
putTDXAccountSettings(id: number, body: TDXAccountSettingsIn): Observable<TDXAccountSettingsOut>;
|
|
700
|
+
/**
|
|
701
|
+
* Retrieves the employees of a specific location using a provided token.
|
|
702
|
+
*
|
|
703
|
+
* @param params - Input parameters for the request, defined by the `LocationEmployeesIn` interface.
|
|
704
|
+
* @returns An `Observable<LocationEmployeesOut>` that emits the employees
|
|
705
|
+
* associated with the given location.
|
|
706
|
+
* @returns The response type is `ApiSuccess<LocationEmployeesOut>`, from which the `data` field is extracted.
|
|
707
|
+
*/
|
|
708
|
+
getLocationEmployeesByToken(params: {
|
|
709
|
+
token: string;
|
|
710
|
+
queryParams: QueryParams;
|
|
711
|
+
}): Observable<LocationEmployeesOut>;
|
|
700
712
|
static ɵfac: i0.ɵɵFactoryDeclaration<ApiCompaniesService, never>;
|
|
701
713
|
static ɵprov: i0.ɵɵInjectableDeclaration<ApiCompaniesService>;
|
|
702
714
|
}
|
|
@@ -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[];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Account, AccountCategory, AccountType, BoardingProcess, Company, CompanyCountry, CompanyCountryTax, CountryExchange, CountryReference, CountryReferenceCurrency, CountryReferenceExtraCharge, CountryReferenceProduct, Employee, EmployeeCustomerDhl, ExtraChargeEntity, Installation, Location, LocationEmployee, Parameter, ParameterConfig, ProductEntity, SupplyEntity, System, TDXAccountSetting, WorkflowConfig } from './api-companies.interfaces';
|
|
2
|
+
import { QueryParams } from './api.models';
|
|
2
3
|
export type LocationEmployeesOut = {
|
|
3
4
|
location_employees: LocationEmployee[];
|
|
4
5
|
total: number;
|
|
@@ -451,3 +452,6 @@ export type TDXAccountSettingsIn = {
|
|
|
451
452
|
product_id: number;
|
|
452
453
|
is_active: boolean;
|
|
453
454
|
};
|
|
455
|
+
export type LocationEmployeesIn = {
|
|
456
|
+
token: string;
|
|
457
|
+
} & QueryParams;
|