@experteam-mx/ngx-services 18.6.0 → 18.6.1

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.
@@ -0,0 +1,47 @@
1
+ import { Environment } from '../ngx-services.models';
2
+ import { HttpClient } from '@angular/common/http';
3
+ import { QueryParams } from './models/api.models';
4
+ import { Observable } from 'rxjs';
5
+ import { BillingPaCustomerOut, DistrictsOut, ParishesOut, ProvincesOut } from './models/api-billing-pa.types';
6
+ import * as i0 from "@angular/core";
7
+ export declare class ApiBillingPaService {
8
+ private environments;
9
+ private http;
10
+ constructor(environments: Environment, http: HttpClient);
11
+ /**
12
+ * Retrieves the URL for the Billing Pa API from the environment configurations.
13
+ *
14
+ * @return {string} The URL of the Billing Pa API.
15
+ */
16
+ get url(): string;
17
+ /**
18
+ * Retrieves a list of districts based on query parameters.
19
+ *
20
+ * @param {QueryParams} params - Query parameters for filtering the districts.
21
+ * @returns {Observable<DistrictsOut>} The list of districts.
22
+ */
23
+ getDistricts(params: QueryParams): Observable<DistrictsOut>;
24
+ /**
25
+ * Retrieves a list of parishes based on query parameters.
26
+ *
27
+ * @param {QueryParams} params - Query parameters for filtering the parishes.
28
+ * @returns {Observable<ParishesOut>} The list of parishes.
29
+ */
30
+ getParishes(params: QueryParams): Observable<ParishesOut>;
31
+ /**
32
+ * Retrieves a list of provinces based on query parameters.
33
+ *
34
+ * @param {QueryParams} params - Query parameters for filtering the provinces.
35
+ * @returns {Observable<ProvincesOut>} The list of provinces.
36
+ */
37
+ getProvinces(params: QueryParams): Observable<ProvincesOut>;
38
+ /**
39
+ * Retrieves the details of a customer based on query parameters.
40
+ *
41
+ * @param {QueryParams} params - Query parameters for get customer.
42
+ * @return {Observable<BillingPaCustomerOut>} An observable that emits customer data.
43
+ */
44
+ getValidateCustomer(params: QueryParams): Observable<BillingPaCustomerOut>;
45
+ static ɵfac: i0.ɵɵFactoryDeclaration<ApiBillingPaService, never>;
46
+ static ɵprov: i0.ɵɵInjectableDeclaration<ApiBillingPaService>;
47
+ }
@@ -0,0 +1,26 @@
1
+ import { LaravelModel } from './api.models';
2
+ export interface BillingPaCustomer {
3
+ document_id: number;
4
+ name: string;
5
+ number: string;
6
+ type_ruc: number;
7
+ type_ruc_code: string;
8
+ verification_code: string;
9
+ type_rec: string;
10
+ identification_type_id: number;
11
+ }
12
+ export interface District extends LaravelModel {
13
+ code: string;
14
+ name: string;
15
+ province_id: number;
16
+ }
17
+ export interface Parish extends LaravelModel {
18
+ code: string;
19
+ name: string;
20
+ district_id: number;
21
+ province_id: number;
22
+ }
23
+ export interface Province extends LaravelModel {
24
+ code: string;
25
+ name: string;
26
+ }
@@ -0,0 +1,16 @@
1
+ import { BillingPaCustomer, District, Parish, Province } from './api-billing-pa.interfaces';
2
+ export type DistrictsOut = {
3
+ total: number;
4
+ districts: District[];
5
+ };
6
+ export type BillingPaCustomerOut = {
7
+ customer: BillingPaCustomer;
8
+ };
9
+ export type ParishesOut = {
10
+ total: number;
11
+ parishes: Parish[];
12
+ };
13
+ export type ProvincesOut = {
14
+ total: number;
15
+ provinces: Province[];
16
+ };
@@ -17,6 +17,7 @@ import { InjectionToken } from '@angular/core';
17
17
  export type Environment = {
18
18
  apiBillingDO?: string;
19
19
  apiBillingMX?: string;
20
+ apiBillingPA?: string;
20
21
  apiCashOperationsUrl?: string;
21
22
  apiCatalogsUrl?: string;
22
23
  apiCompaniesUrl?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experteam-mx/ngx-services",
3
- "version": "18.6.0",
3
+ "version": "18.6.1",
4
4
  "description": "Angular common services for Experteam apps",
5
5
  "author": "Experteam Cía. Ltda.",
6
6
  "keywords": [
package/public-api.d.ts CHANGED
@@ -2,6 +2,7 @@ export * from './lib/ngx-services.models';
2
2
  export * from './lib/ngx-services.module';
3
3
  export * from './lib/apis/api-billing-do.service';
4
4
  export * from './lib/apis/api-billing-mx.service';
5
+ export * from './lib/apis/api-billing-pa.service';
5
6
  export * from './lib/apis/api-cash-operations.service';
6
7
  export * from './lib/apis/api-catalogs.service';
7
8
  export * from './lib/apis/api-companies.service';
@@ -14,6 +15,8 @@ export * from './lib/apis/api-reports.service';
14
15
  export * from './lib/apis/api-security.service';
15
16
  export * from './lib/apis/api-shipments.service';
16
17
  export * from './lib/apis/models/api-billing.types';
18
+ export * from './lib/apis/models/api-billing-pa.interfaces';
19
+ export * from './lib/apis/models/api-billing-pa.types';
17
20
  export * from './lib/apis/models/api-cash-operations.interfaces';
18
21
  export * from './lib/apis/models/api-cash-operations.types';
19
22
  export * from './lib/apis/models/api-catalog.interfaces';