@experteam-mx/ngx-services 18.6.0 → 18.7.0
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 +76 -0
- package/esm2022/lib/apis/api-composition.service.mjs +45 -0
- package/esm2022/lib/apis/models/api-billing-pa.interfaces.mjs +2 -0
- package/esm2022/lib/apis/models/api-billing-pa.types.mjs +2 -0
- package/esm2022/lib/apis/models/api-companies.interfaces.mjs +1 -1
- package/esm2022/lib/apis/models/api-composition.interfaces.mjs +2 -0
- package/esm2022/lib/apis/models/api-composition.types.mjs +2 -0
- 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/apis/models/api-reports.types.mjs +1 -1
- package/esm2022/lib/apis/models/api-security.interfaces.mjs +1 -1
- package/esm2022/lib/apis/models/api-security.types.mjs +1 -1
- package/esm2022/lib/apis/models/api-shipments.enums.mjs +8 -0
- package/esm2022/lib/ngx-services.models.mjs +1 -1
- package/esm2022/public-api.mjs +8 -2
- package/fesm2022/experteam-mx-ngx-services.mjs +114 -2
- package/fesm2022/experteam-mx-ngx-services.mjs.map +1 -1
- package/lib/apis/api-billing-pa.service.d.ts +47 -0
- package/lib/apis/api-composition.service.d.ts +27 -0
- package/lib/apis/models/api-billing-pa.interfaces.d.ts +26 -0
- package/lib/apis/models/api-billing-pa.types.d.ts +16 -0
- package/lib/apis/models/api-companies.interfaces.d.ts +36 -30
- package/lib/apis/models/api-composition.interfaces.d.ts +289 -0
- package/lib/apis/models/api-composition.types.d.ts +4 -0
- package/lib/apis/models/api-invoices.interfaces.d.ts +1 -3
- package/lib/apis/models/api-invoices.types.d.ts +15 -13
- package/lib/apis/models/api-reports.interfaces.d.ts +3 -3
- package/lib/apis/models/api-reports.types.d.ts +2 -2
- package/lib/apis/models/api-security.interfaces.d.ts +17 -13
- package/lib/apis/models/api-security.types.d.ts +2 -17
- package/lib/apis/models/api-shipments.enums.d.ts +6 -0
- package/lib/ngx-services.models.d.ts +2 -0
- package/package.json +1 -1
- package/public-api.d.ts +7 -1
|
@@ -3,9 +3,9 @@ import { InjectionToken, NgModule, Injectable, Inject, inject } from '@angular/c
|
|
|
3
3
|
import * as i1 from '@angular/common/http';
|
|
4
4
|
import { provideHttpClient, HttpHeaders, HttpResponse, HttpParams } from '@angular/common/http';
|
|
5
5
|
import { map, mergeMap, forkJoin, tap, Observable, of } from 'rxjs';
|
|
6
|
-
import { map as map$1, tap as tap$1 } from 'rxjs/operators';
|
|
7
6
|
import * as i1$1 from 'ngx-cookie-service';
|
|
8
7
|
import { CookieService } from 'ngx-cookie-service';
|
|
8
|
+
import { map as map$1, tap as tap$1 } from 'rxjs/operators';
|
|
9
9
|
import Pusher from 'pusher-js';
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -143,6 +143,78 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
143
143
|
args: ['env']
|
|
144
144
|
}] }, { type: i1.HttpClient }] });
|
|
145
145
|
|
|
146
|
+
class ApiBillingPaService {
|
|
147
|
+
environments;
|
|
148
|
+
http;
|
|
149
|
+
constructor(environments, http) {
|
|
150
|
+
this.environments = environments;
|
|
151
|
+
this.http = http;
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Retrieves the URL for the Billing Pa API from the environment configurations.
|
|
155
|
+
*
|
|
156
|
+
* @return {string} The URL of the Billing Pa API.
|
|
157
|
+
*/
|
|
158
|
+
get url() {
|
|
159
|
+
return this.environments.apiBillingPA ?? '';
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Retrieves a list of districts based on query parameters.
|
|
163
|
+
*
|
|
164
|
+
* @param {QueryParams} params - Query parameters for filtering the districts.
|
|
165
|
+
* @returns {Observable<DistrictsOut>} The list of districts.
|
|
166
|
+
*/
|
|
167
|
+
getDistricts(params) {
|
|
168
|
+
return this.http.get(`${this.url}/districts`, {
|
|
169
|
+
params
|
|
170
|
+
}).pipe(map(({ data }) => data));
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* Retrieves a list of parishes based on query parameters.
|
|
174
|
+
*
|
|
175
|
+
* @param {QueryParams} params - Query parameters for filtering the parishes.
|
|
176
|
+
* @returns {Observable<ParishesOut>} The list of parishes.
|
|
177
|
+
*/
|
|
178
|
+
getParishes(params) {
|
|
179
|
+
return this.http.get(`${this.url}/parishes`, {
|
|
180
|
+
params
|
|
181
|
+
}).pipe(map(({ data }) => data));
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* Retrieves a list of provinces based on query parameters.
|
|
185
|
+
*
|
|
186
|
+
* @param {QueryParams} params - Query parameters for filtering the provinces.
|
|
187
|
+
* @returns {Observable<ProvincesOut>} The list of provinces.
|
|
188
|
+
*/
|
|
189
|
+
getProvinces(params) {
|
|
190
|
+
return this.http.get(`${this.url}/provinces`, {
|
|
191
|
+
params
|
|
192
|
+
}).pipe(map(({ data }) => data));
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* Retrieves the details of a customer based on query parameters.
|
|
196
|
+
*
|
|
197
|
+
* @param {QueryParams} params - Query parameters for get customer.
|
|
198
|
+
* @return {Observable<BillingPaCustomerOut>} An observable that emits customer data.
|
|
199
|
+
*/
|
|
200
|
+
getValidateCustomer(params) {
|
|
201
|
+
return this.http.get(`${this.url}/validate-customer`, {
|
|
202
|
+
params
|
|
203
|
+
}).pipe(map(({ data }) => data));
|
|
204
|
+
}
|
|
205
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiBillingPaService, deps: [{ token: 'env' }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
206
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiBillingPaService, providedIn: 'root' });
|
|
207
|
+
}
|
|
208
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiBillingPaService, decorators: [{
|
|
209
|
+
type: Injectable,
|
|
210
|
+
args: [{
|
|
211
|
+
providedIn: 'root'
|
|
212
|
+
}]
|
|
213
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
214
|
+
type: Inject,
|
|
215
|
+
args: ['env']
|
|
216
|
+
}] }, { type: i1.HttpClient }] });
|
|
217
|
+
|
|
146
218
|
class ApiCashOperationsService {
|
|
147
219
|
environments;
|
|
148
220
|
http;
|
|
@@ -1542,6 +1614,46 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
1542
1614
|
args: ['env']
|
|
1543
1615
|
}] }, { type: i1.HttpClient }] });
|
|
1544
1616
|
|
|
1617
|
+
class ApiCompositionService {
|
|
1618
|
+
environments;
|
|
1619
|
+
cookie;
|
|
1620
|
+
http;
|
|
1621
|
+
constructor(environments, cookie, http) {
|
|
1622
|
+
this.environments = environments;
|
|
1623
|
+
this.cookie = cookie;
|
|
1624
|
+
this.http = http;
|
|
1625
|
+
}
|
|
1626
|
+
/**
|
|
1627
|
+
* Retrieves the API security URL from the environment configuration.
|
|
1628
|
+
*
|
|
1629
|
+
* @return {string} The API security URL.
|
|
1630
|
+
*/
|
|
1631
|
+
get url() {
|
|
1632
|
+
return this.environments.apiCompositionUrl ?? '';
|
|
1633
|
+
}
|
|
1634
|
+
/**
|
|
1635
|
+
* Retrieves shipment details based on the provided shipment ID.
|
|
1636
|
+
*
|
|
1637
|
+
* @param {number} id - The unique identifier of the shipment to retrieve.
|
|
1638
|
+
* @return {Observable<ShipmentOut>} An observable that emits the details of the shipment.
|
|
1639
|
+
*/
|
|
1640
|
+
getShipment(id) {
|
|
1641
|
+
return this.http.get(`${this.url}/shipments/${id}`)
|
|
1642
|
+
.pipe(map(({ data }) => data));
|
|
1643
|
+
}
|
|
1644
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiCompositionService, deps: [{ token: 'env' }, { token: i1$1.CookieService }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1645
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiCompositionService, providedIn: 'root' });
|
|
1646
|
+
}
|
|
1647
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiCompositionService, decorators: [{
|
|
1648
|
+
type: Injectable,
|
|
1649
|
+
args: [{
|
|
1650
|
+
providedIn: 'root'
|
|
1651
|
+
}]
|
|
1652
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
1653
|
+
type: Inject,
|
|
1654
|
+
args: ['env']
|
|
1655
|
+
}] }, { type: i1$1.CookieService }, { type: i1.HttpClient }] });
|
|
1656
|
+
|
|
1545
1657
|
class ApiEToolsAutoBillingService {
|
|
1546
1658
|
environments;
|
|
1547
1659
|
http;
|
|
@@ -3022,5 +3134,5 @@ const xmlHeaders = (format = 'object') => {
|
|
|
3022
3134
|
* Generated bundle index. Do not edit.
|
|
3023
3135
|
*/
|
|
3024
3136
|
|
|
3025
|
-
export { AlphaNumeric, ApiBillingDOService, ApiBillingMxService, ApiCashOperationsService, ApiCatalogsService, ApiCompaniesService, ApiEToolsAutoBillingService, ApiExternalPickupsService, ApiInventoriesService, ApiInvoicesService, ApiOpenItemsService, ApiReportsService, ApiSecurityService, ApiShipmentsService, CryptoService, DefaultValueType, ENVIRONMENT_TOKEN, Event, NgxServicesModule, WebSocketsService, apiHeadersInterceptor, apiTokenInterceptor, httpCachingInterceptor, httpParams, pdfHeaders, queryString, xmlHeaders };
|
|
3137
|
+
export { AlphaNumeric, ApiBillingDOService, ApiBillingMxService, ApiBillingPaService, ApiCashOperationsService, ApiCatalogsService, ApiCompaniesService, ApiCompositionService, ApiEToolsAutoBillingService, ApiExternalPickupsService, ApiInventoriesService, ApiInvoicesService, ApiOpenItemsService, ApiReportsService, ApiSecurityService, ApiShipmentsService, CryptoService, DefaultValueType, ENVIRONMENT_TOKEN, Event, NgxServicesModule, WebSocketsService, apiHeadersInterceptor, apiTokenInterceptor, httpCachingInterceptor, httpParams, pdfHeaders, queryString, xmlHeaders };
|
|
3026
3138
|
//# sourceMappingURL=experteam-mx-ngx-services.mjs.map
|