@experteam-mx/ngx-services 18.7.2 → 18.7.4

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,6 +1,6 @@
1
1
  import { Environment } from '../ngx-services.models';
2
2
  import { HttpClient } from '@angular/common/http';
3
- import { AccountCategoriesOut, AccountEntitiesIn, AccountEntitiesOut, AccountIn, AccountOut, AccountsOut, AccountTypeIn, AccountTypeOut, AccountTypesOut, BoardingProcessIdIn, BoardingProcessIn, CompanyCountriesOut, CompanyCountryIn, CompanyCountryOut, CompanyCountryTaxesOut, CompanyIn, CompanyOut, CountryReferenceCurrenciesOut, CountryReferenceCurrencyIn, CountryReferenceCurrencyOut, CountryReferenceExtraChargeIn, CountryReferenceExtraChargeOut, CountryReferenceIn, CountryReferenceOut, CountryReferenceProductIn, CountryReferenceProductOut, CountryReferenceProductsOut, CountryReferencesOut, EmployeeCustomersIn, EmployeeCustomersOut, EmployeeIn, EmployeeOut, EmployeesCustomersOut, EmployeesOut, ExchangeIn, ExchangeOut, ExchangesOut, ExtraChargeEntitiesIn, ExtraChargeEntitiesOut, InstallationIn, InstallationOut, InstallationsOut, LocationEmployeeBatchIn, LocationEmployeeOut, LocationEmployeesOut, LocationIn, LocationOut, LocationsOut, ParameterConfigIn, ParameterConfigOut, ParameterConfigsOut, ParametersByLevelIn, ParametersOut, ParametersValuesIn, ParametersValuesOut, ParameterValueIn, ParameterValueOut, ProductEntitiesIn, ProductEntitiesOut, SupplyEntitiesIn, SupplyEntitiesOut, SystemEntitiesIn, SystemEntitiesOut, SystemIn, SystemOut, SystemsOut, WorkflowConfigsBatchIn, WorkflowConfigsOut, WorkflowsOut } from './models/api-companies.types';
3
+ import { AccountCategoriesOut, AccountEntitiesIn, AccountEntitiesOut, AccountIn, AccountOut, AccountsOut, AccountTypeIn, AccountTypeOut, AccountTypesOut, BoardingProcessIdIn, BoardingProcessIn, CompanyCountriesOut, CompanyCountryIn, CompanyCountryOut, CompanyCountryTaxesOut, CompanyIn, CompanyOut, CountryReferenceCurrenciesOut, CountryReferenceCurrencyIn, CountryReferenceCurrencyOut, CountryReferenceExtraChargeIn, CountryReferenceExtraChargeOut, CountryReferenceIn, CountryReferenceOut, CountryReferenceProductIn, CountryReferenceProductOut, CountryReferenceProductsOut, CountryReferencesOut, EmployeeCustomersIn, EmployeeCustomersOut, EmployeeIn, EmployeeOut, EmployeesCustomersOut, EmployeesOut, ExchangeIn, ExchangeOut, ExchangesOut, ExtraChargeEntitiesIn, ExtraChargeEntitiesOut, InstallationIn, InstallationOut, InstallationsOut, LocationEmployeeBatchIn, LocationEmployeeOut, LocationEmployeesOut, LocationIn, LocationOut, LocationsOut, ParameterConfigIn, ParameterConfigOut, ParameterConfigsOut, ParametersByLevelIn, ParametersOut, ParametersValuesIn, ParametersValuesOut, ParameterValueIn, ParameterValueOut, ProductEntitiesIn, ProductEntitiesOut, SupplyEntitiesIn, SupplyEntitiesOut, SystemEntitiesIn, SystemEntitiesOut, SystemIn, SystemOut, SystemsOut, TDXAccountSettingsIn, TDXAccountSettingsOut, TDXAccountsSettingsOut, WorkflowConfigsBatchIn, WorkflowConfigsOut, WorkflowsOut } from './models/api-companies.types';
4
4
  import { QueryParams } from './models/api.models';
5
5
  import { Observable } from 'rxjs';
6
6
  import { CountryCurrencyRate, CountryReferenceExtraCharge, EmployeeCustomerDhl } from './models/api-companies.interfaces';
@@ -668,6 +668,35 @@ export declare class ApiCompaniesService {
668
668
  * @return {Observable<ParameterConfigOut>} An observable containing the deleted parameter configuration data.
669
669
  */
670
670
  deleteParameterConfig(id: number): Observable<ParameterConfigOut>;
671
+ /**
672
+ * Retrieves a list of TDX account settings based on the given query parameters.
673
+ *
674
+ * @param {QueryParams} params - Query parameters used to filter or paginate the results.
675
+ * @returns {Observable<TDXAccountsSettingsOut>} An observable containing the list of TDX account settings.
676
+ */
677
+ getTDXAccountsSettings(params: QueryParams): Observable<TDXAccountsSettingsOut>;
678
+ /**
679
+ * Retrieves a single TDX account setting by its ID.
680
+ *
681
+ * @param {number} id - The unique identifier of the TDX account setting to be retrieved.
682
+ * @returns {Observable<TDXAccountSettingsOut>} An observable containing the requested TDX account setting.
683
+ */
684
+ getTDXAccountSettings(id: number): Observable<TDXAccountSettingsOut>;
685
+ /**
686
+ * Creates a new TDX account setting with the provided data.
687
+ *
688
+ * @param {TDXAccountSettingsIn} body - The data used to create the new TDX account setting.
689
+ * @returns {Observable<TDXAccountSettingsOut>} An observable containing the newly created TDX account setting.
690
+ */
691
+ postTDXAccountSettings(body: TDXAccountSettingsIn): Observable<TDXAccountSettingsOut>;
692
+ /**
693
+ * Updates an existing TDX account setting identified by its ID.
694
+ *
695
+ * @param {number} id - The unique identifier of the TDX account setting to be updated.
696
+ * @param {TDXAccountSettingsIn} body - The updated data for the TDX account setting.
697
+ * @returns {Observable<TDXAccountSettingsOut>} An observable containing the updated TDX account setting.
698
+ */
699
+ putTDXAccountSettings(id: number, body: TDXAccountSettingsIn): Observable<TDXAccountSettingsOut>;
671
700
  static ɵfac: i0.ɵɵFactoryDeclaration<ApiCompaniesService, never>;
672
701
  static ɵprov: i0.ɵɵInjectableDeclaration<ApiCompaniesService>;
673
702
  }
@@ -1,4 +1,4 @@
1
- import { LaravelModel } from './api.models';
1
+ 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;
@@ -318,3 +318,17 @@ export interface ProductEntity extends LaravelModel {
318
318
  global_name: string;
319
319
  local_name: string;
320
320
  }
321
+ export interface TDXAccountSetting extends LaravelModel {
322
+ location_id: number;
323
+ account_id: number;
324
+ product_id: number;
325
+ product_global_code_name: string;
326
+ product_local_code_name: string;
327
+ account: AccountToTDX;
328
+ }
329
+ export interface AccountToTDX extends ActiveLessLaravelModel {
330
+ number: string;
331
+ description: string | null;
332
+ account_type_id: number;
333
+ country_id: number;
334
+ }
@@ -1,4 +1,4 @@
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, WorkflowConfig } from './api-companies.interfaces';
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
2
  export type LocationEmployeesOut = {
3
3
  location_employees: LocationEmployee[];
4
4
  total: number;
@@ -429,3 +429,17 @@ export type ParameterConfigOut = {
429
429
  parameter_config: ParameterConfig;
430
430
  total: number;
431
431
  };
432
+ export type TDXAccountsSettingsOut = {
433
+ tdx_account_settings: TDXAccountSetting[];
434
+ total: number;
435
+ };
436
+ export type TDXAccountSettingsOut = {
437
+ tdx_account_settings: TDXAccountSetting;
438
+ };
439
+ export type TDXAccountSettingsIn = {
440
+ id?: number;
441
+ location_id: number;
442
+ account_id: number;
443
+ product_id: number;
444
+ is_active: boolean;
445
+ };
@@ -42,6 +42,7 @@ export type OperationCancelBillingIn = {
42
42
  cancellation_reason_id: number;
43
43
  cancel_payment: boolean;
44
44
  send_shipments: boolean;
45
+ local_cancel?: boolean;
45
46
  };
46
47
  export type OperationCancelBillingOut = {
47
48
  creditNoteDocument: Document | null;
@@ -60,6 +60,7 @@ export interface Module extends LaravelModel {
60
60
  module_type_id: number;
61
61
  module_type: ModuleType;
62
62
  permissions: Permission[];
63
+ require_default_permission?: boolean;
63
64
  }
64
65
  export interface ModuleType extends LaravelModel {
65
66
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experteam-mx/ngx-services",
3
- "version": "18.7.2",
3
+ "version": "18.7.4",
4
4
  "description": "Angular common services for Experteam apps",
5
5
  "author": "Experteam Cía. Ltda.",
6
6
  "keywords": [