@experteam-mx/ngx-services 18.7.1 → 18.7.3

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';
@@ -405,14 +405,14 @@ export declare class ApiCompaniesService {
405
405
  * @param {string[]} params.paramNames - An array of parameter names for which the values need to be fetched.
406
406
  * @return {Observable<ParametersValuesOut>} An observable that emits the fetched parameter values.
407
407
  */
408
- getParametersValues({ paramNames }: ParametersValuesIn): Observable<ParametersValuesOut>;
408
+ postParametersValues({ paramNames }: ParametersValuesIn): Observable<ParametersValuesOut>;
409
409
  /**
410
410
  * Retrieves parameter values based on the provided level configuration.
411
411
  *
412
412
  * @param {ParametersByLevelIn} parameters - The input object containing the criteria or level details to retrieve the parameters.
413
413
  * @return {Observable<ParametersValuesOut>} An observable that emits the parameter values fetched from the server.
414
414
  */
415
- getParameterValueByModel(parameters: ParametersByLevelIn): Observable<ParametersValuesOut>;
415
+ postParameterValueByModel(parameters: ParametersByLevelIn): Observable<ParametersValuesOut>;
416
416
  /**
417
417
  * Retrieves the value of a specified parameter.
418
418
  *
@@ -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
  }
@@ -103,13 +103,6 @@ export declare class ApiSecurityService {
103
103
  * @returns {Observable<RoleIn[]>} An observable that emits an array of role permissions.
104
104
  */
105
105
  getRoles(params: QueryParams): Observable<RolesOut>;
106
- /**
107
- * Retrieves the role types from the API.
108
- *
109
- * @param {QueryParams} params - The query parameters to be sent with the request.
110
- * @returns {Observable<RoleTypesOut>} An observable containing the role types output.
111
- */
112
- getRoleTypes(params: QueryParams): Observable<RoleTypesOut>;
113
106
  /**
114
107
  * Retrieves roles by the specified ID.
115
108
  *
@@ -139,6 +132,13 @@ export declare class ApiSecurityService {
139
132
  * @returns {Observable<{}>} An observable that emits the result of the delete operation.
140
133
  */
141
134
  deleteRole(id: number): Observable<{}>;
135
+ /**
136
+ * Retrieves the role types from the API.
137
+ *
138
+ * @param {QueryParams} params - The query parameters to be sent with the request.
139
+ * @returns {Observable<RoleTypesOut>} An observable containing the role types output.
140
+ */
141
+ getRoleTypes(params: QueryParams): Observable<RoleTypesOut>;
142
142
  /**
143
143
  * Retrieves a list of modules and permissions
144
144
  *
@@ -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
+ };
@@ -26,6 +26,7 @@ export interface Role extends LaravelModel {
26
26
  role_type_id: number;
27
27
  regional_country_id: number | null;
28
28
  role_type: RoleType;
29
+ permissions?: Permission[];
29
30
  }
30
31
  export interface RoleType extends LaravelModel {
31
32
  name: string;
@@ -60,7 +60,7 @@ export type RoleIn = {
60
60
  company_country_id: number;
61
61
  regional_country_id?: number[] | null;
62
62
  is_active: boolean;
63
- permissions: string[];
63
+ permissions?: string[];
64
64
  };
65
65
  export type RoleTypesOut = {
66
66
  role_types: RoleType[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experteam-mx/ngx-services",
3
- "version": "18.7.1",
3
+ "version": "18.7.3",
4
4
  "description": "Angular common services for Experteam apps",
5
5
  "author": "Experteam Cía. Ltda.",
6
6
  "keywords": [