@experteam-mx/ngx-services 18.7.7 → 18.7.9

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.
@@ -1,8 +1,9 @@
1
+ import { QueryParams } from './models/api.models';
1
2
  import { HttpClient } from '@angular/common/http';
2
3
  import { Environment } from '../ngx-services.models';
3
4
  import { Observable } from 'rxjs';
4
5
  import { CookieService } from 'ngx-cookie-service';
5
- import { ShipmentOut } from './models/api-composition.types';
6
+ import { CompositionCountryReferencesOut, ShipmentOut } from './models/api-composition.types';
6
7
  import * as i0 from "@angular/core";
7
8
  export declare class ApiCompositionService {
8
9
  private environments;
@@ -22,6 +23,13 @@ export declare class ApiCompositionService {
22
23
  * @return {Observable<ShipmentOut>} An observable that emits the details of the shipment.
23
24
  */
24
25
  getShipment(id: number): Observable<ShipmentOut>;
26
+ /**
27
+ * Fetches the country references data based on the provided query parameters.
28
+ *
29
+ * @param {QueryParams} params - The query parameters for the API request.
30
+ * @return {Observable<CompositionCountryReferencesOut>} - An observable emitting the country references.
31
+ */
32
+ getCountryReferences(params: QueryParams): Observable<CompositionCountryReferencesOut>;
25
33
  static ɵfac: i0.ɵɵFactoryDeclaration<ApiCompositionService, never>;
26
34
  static ɵprov: i0.ɵɵInjectableDeclaration<ApiCompositionService>;
27
35
  }
@@ -1,7 +1,7 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
2
  import { Observable } from 'rxjs';
3
3
  import { Environment } from '../ngx-services.models';
4
- import { CancelPaymentReceiptIn, CountryPaymentTypeFieldIn, CountryPaymentTypeFieldOut, CountryPaymentTypeFieldsOut, CountryPaymentTypeIn, CountryPaymentTypeOut, CountryPaymentTypesOut, CustomerDocumentTypesOut, CustomersOut, CustomerTypesOut, OperationAccountPaymentIn, OperationAccountPaymentOut, OperationCancelBillingIn, OperationCancelBillingOut, OperationDocumentIn, OperationDocumentOut, OperationPrintDocumentOut, OperationShipmentExternalIn, OperationShipmentExternalOut, PaymentTypeFieldAccountIn, PaymentTypeFieldAccountOut, PaymentTypeFieldAccountsOut, PaymentTypeFieldCardTypeIn, PaymentTypeFieldCardTypeOut, PaymentTypeFieldCardTypesOut, PaymentTypesOut, PrintCollectionReceiptOut } from './models/api-invoices.types';
4
+ import { CancelPaymentReceiptIn, CountryPaymentTypeFieldIn, CountryPaymentTypeFieldOut, CountryPaymentTypeFieldsOut, CountryPaymentTypeIn, CountryPaymentTypeOut, CountryPaymentTypesOut, CustomerDocumentTypesOut, CustomersOut, CustomerTypesOut, OperationAccountPaymentIn, OperationAccountPaymentOut, OperationCancelBillingIn, OperationCancelBillingOut, OperationDocumentIn, OperationDocumentOut, OperationPrintDocumentOut, OperationShipmentExternalIn, OperationShipmentExternalOut, PaymentTypeFieldAccountIn, PaymentTypeFieldAccountOut, PaymentTypeFieldAccountsOut, PaymentTypeFieldCardTypeIn, PaymentTypeFieldCardTypeOut, PaymentTypeFieldCardTypesOut, PaymentTypesOut, PrintCollectionReceiptOut, ToleranceIn, ToleranceOut, TolerancesOut } from './models/api-invoices.types';
5
5
  import { QueryParams } from './models/api.models';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class ApiInvoicesService {
@@ -204,6 +204,42 @@ export declare class ApiInvoicesService {
204
204
  * @returns {Observable<PaymentTypeFieldAccountOut>} An observable that emits the result of the update operation.
205
205
  */
206
206
  putCountryPaymentTypeFieldAccount(id: number, body: PaymentTypeFieldAccountIn): Observable<PaymentTypeFieldAccountOut>;
207
+ /**
208
+ * Fetches tolerance data from the server based on the provided query parameters.
209
+ *
210
+ * @param {QueryParams} params - The parameters to use for querying tolerances.
211
+ * @return {Observable<TolerancesOut>} An observable emitting the tolerance data.
212
+ */
213
+ getTolerances(params: QueryParams): Observable<TolerancesOut>;
214
+ /**
215
+ * Retrieves the tolerance detail for a given identifier.
216
+ *
217
+ * @param {number} id - The unique identifier for the tolerance to retrieve.
218
+ * @return {Observable<ToleranceOut>} An observable containing the tolerance data.
219
+ */
220
+ getTolerance(id: number): Observable<ToleranceOut>;
221
+ /**
222
+ * Sends a request to update or create a tolerance record using the provided data.
223
+ *
224
+ * @param {ToleranceIn} body - The tolerance input object containing the data to be sent in the request.
225
+ * @return {Observable<ToleranceOut>} An observable that emits the updated or created tolerance output object.
226
+ */
227
+ postTolerance(body: ToleranceIn): Observable<ToleranceOut>;
228
+ /**
229
+ * Updates the tolerance with the specified ID using the provided data.
230
+ *
231
+ * @param {number} id - The unique identifier of the tolerance to update.
232
+ * @param {ToleranceIn} body - The data to update the tolerance with.
233
+ * @return {Observable<ToleranceOut>} An observable containing the updated tolerance information.
234
+ */
235
+ putTolerance(id: number, body: ToleranceIn): Observable<ToleranceOut>;
236
+ /**
237
+ * Deletes the tolerance entry corresponding to the given ID.
238
+ *
239
+ * @param {number} id - The unique identifier of the tolerance to be deleted.
240
+ * @return {Observable<{}>} An Observable that emits the result of the delete operation.
241
+ */
242
+ deleteTolerance(id: number): Observable<{}>;
207
243
  static ɵfac: i0.ɵɵFactoryDeclaration<ApiInvoicesService, never>;
208
244
  static ɵprov: i0.ɵɵInjectableDeclaration<ApiInvoicesService>;
209
245
  }
@@ -27,6 +27,7 @@ export interface Country extends SymfonyModel {
27
27
  others_printer_name: string;
28
28
  territories: number[];
29
29
  use_billing?: boolean;
30
+ translations: Translations;
30
31
  }
31
32
  export interface LocationType extends SymfonyModel {
32
33
  code: string;
@@ -2,7 +2,7 @@ import { ActiveLessLaravelModel, LaravelModel } from './api.models';
2
2
  import { BoardingProcessStatus, Country, Currency, IdentificationType, Product, State } from './api-catalog.interfaces';
3
3
  export interface Account extends LaravelModel {
4
4
  number: string;
5
- description: string;
5
+ description: string | null;
6
6
  account_type_id: number;
7
7
  account_type: AccountType;
8
8
  country_id: number;
@@ -1,4 +1,9 @@
1
1
  import { ShipmentComposition } from './api-composition.interfaces';
2
+ import { CountryReference } from './api-companies.interfaces';
2
3
  export type ShipmentOut = {
3
4
  shipment: ShipmentComposition;
4
5
  };
6
+ export type CompositionCountryReferencesOut = {
7
+ country_references: CountryReference[];
8
+ total: number;
9
+ };
@@ -179,13 +179,12 @@ export interface CountryPaymentTypeField extends LaravelModel {
179
179
  country_payment_type_id: number;
180
180
  code: string;
181
181
  name: string;
182
- description: string;
182
+ description: string | null;
183
183
  format: string;
184
184
  is_required: boolean;
185
- catalog: [] | null;
185
+ catalog: string[] | null;
186
186
  regex: string | null;
187
187
  is_interface: boolean;
188
- value?: string;
189
188
  is_bank_reference: boolean;
190
189
  }
191
190
  export interface PaymentType extends LaravelModel {
@@ -210,3 +209,9 @@ export interface PaymentTypeFieldAccount extends LaravelModel {
210
209
  currency_id: number;
211
210
  currency: Currency;
212
211
  }
212
+ export interface Tolerance extends LaravelModel {
213
+ tolerance_type: number;
214
+ min_amount: number;
215
+ max_amount: number;
216
+ tolerance: number;
217
+ }
@@ -1,4 +1,4 @@
1
- import { CountryPaymentType, CountryPaymentTypeField, Customer, CustomerType, Document, PaymentType, PaymentTypeFieldAccount, PaymentTypeFieldCardType } from './api-invoices.interfaces';
1
+ import { CountryPaymentType, CountryPaymentTypeField, Customer, CustomerType, Document, PaymentType, PaymentTypeFieldAccount, PaymentTypeFieldCardType, Tolerance } from './api-invoices.interfaces';
2
2
  import { CustomerCountryDocumentType } from './api-billing.interfaces';
3
3
  export interface OperationAccountPaymentIn {
4
4
  document_type_range_id: number | null;
@@ -165,3 +165,18 @@ export type PaymentTypeFieldAccountIn = {
165
165
  export type PaymentTypeFieldAccountOut = {
166
166
  country_payment_type_field_account: PaymentTypeFieldAccount;
167
167
  };
168
+ export type TolerancesOut = {
169
+ tolerances: Tolerance[];
170
+ total: number;
171
+ };
172
+ export type ToleranceIn = {
173
+ company_country_id: number;
174
+ tolerance_type: number;
175
+ min_amount: number;
176
+ max_amount: number;
177
+ tolerance: number;
178
+ is_active: boolean;
179
+ };
180
+ export type ToleranceOut = {
181
+ tolerance: Tolerance;
182
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experteam-mx/ngx-services",
3
- "version": "18.7.7",
3
+ "version": "18.7.9",
4
4
  "description": "Angular common services for Experteam apps",
5
5
  "author": "Experteam Cía. Ltda.",
6
6
  "keywords": [