@experteam-mx/ngx-services 16.1.1 → 16.1.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.
Files changed (50) hide show
  1. package/esm2022/lib/apis/models/api-external-ops.types.mjs +1 -1
  2. package/index.d.ts +5 -5
  3. package/lib/apis/api-catalogs.service.d.ts +26 -26
  4. package/lib/apis/api-companies.service.d.ts +163 -163
  5. package/lib/apis/api-external-ops.service.d.ts +34 -34
  6. package/lib/apis/api-security.service.d.ts +79 -79
  7. package/lib/apis/models/api-catalogs.interfaces.d.ts +75 -75
  8. package/lib/apis/models/api-catalogs.types.d.ts +5 -5
  9. package/lib/apis/models/api-companies.interfaces.d.ts +380 -380
  10. package/lib/apis/models/api-companies.types.d.ts +75 -75
  11. package/lib/apis/models/api-external-ops.interfaces.d.ts +23 -23
  12. package/lib/apis/models/api-external-ops.types.d.ts +18 -18
  13. package/lib/apis/models/api-security.interfaces.d.ts +55 -55
  14. package/lib/apis/models/api-security.types.d.ts +30 -30
  15. package/lib/apis/models/api.models.d.ts +23 -23
  16. package/lib/helpers/http.d.ts +38 -38
  17. package/lib/interceptors/api-headers.interceptor.d.ts +16 -16
  18. package/lib/interceptors/api-key.interceptor.d.ts +19 -19
  19. package/lib/interceptors/api-token.interceptor.d.ts +19 -19
  20. package/lib/interceptors/http-caching.interceptor.d.ts +12 -12
  21. package/lib/ngx-services.models.d.ts +9 -9
  22. package/lib/ngx-services.module.d.ts +17 -17
  23. package/package.json +9 -11
  24. package/public-api.d.ts +19 -19
  25. package/esm2020/experteam-mx-ngx-services.mjs +0 -5
  26. package/esm2020/lib/apis/api-catalogs.service.mjs +0 -42
  27. package/esm2020/lib/apis/api-companies.service.mjs +0 -255
  28. package/esm2020/lib/apis/api-external-ops.service.mjs +0 -53
  29. package/esm2020/lib/apis/api-security.service.mjs +0 -128
  30. package/esm2020/lib/apis/models/api-catalogs.interfaces.mjs +0 -2
  31. package/esm2020/lib/apis/models/api-catalogs.types.mjs +0 -2
  32. package/esm2020/lib/apis/models/api-companies.interfaces.mjs +0 -2
  33. package/esm2020/lib/apis/models/api-companies.types.mjs +0 -2
  34. package/esm2020/lib/apis/models/api-external-ops.interfaces.mjs +0 -2
  35. package/esm2020/lib/apis/models/api-external-ops.types.mjs +0 -2
  36. package/esm2020/lib/apis/models/api-security.interfaces.mjs +0 -2
  37. package/esm2020/lib/apis/models/api-security.types.mjs +0 -2
  38. package/esm2020/lib/apis/models/api.models.mjs +0 -2
  39. package/esm2020/lib/helpers/http.mjs +0 -64
  40. package/esm2020/lib/interceptors/api-headers.interceptor.mjs +0 -34
  41. package/esm2020/lib/interceptors/api-key.interceptor.mjs +0 -38
  42. package/esm2020/lib/interceptors/api-token.interceptor.mjs +0 -35
  43. package/esm2020/lib/interceptors/http-caching.interceptor.mjs +0 -38
  44. package/esm2020/lib/ngx-services.models.mjs +0 -2
  45. package/esm2020/lib/ngx-services.module.mjs +0 -37
  46. package/esm2020/public-api.mjs +0 -27
  47. package/fesm2015/experteam-mx-ngx-services.mjs +0 -723
  48. package/fesm2015/experteam-mx-ngx-services.mjs.map +0 -1
  49. package/fesm2020/experteam-mx-ngx-services.mjs +0 -705
  50. package/fesm2020/experteam-mx-ngx-services.mjs.map +0 -1
@@ -1,2 +1,2 @@
1
1
  export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBpLWV4dGVybmFsLW9wcy50eXBlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2V4cGVydGVhbS9uZ3gtc2VydmljZXMvc3JjL2xpYi9hcGlzL21vZGVscy9hcGktZXh0ZXJuYWwtb3BzLnR5cGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBPcGVyYXRpb24gfSBmcm9tICcuL2FwaS1leHRlcm5hbC1vcHMuaW50ZXJmYWNlcydcclxuXHJcbmV4cG9ydCB0eXBlIERlbGl2ZXJ5Q29uZmlybWF0aW9uRGF0YSA9IHtcclxuICBvcGVyYXRpb246IE9wZXJhdGlvblxyXG59XHJcblxyXG5leHBvcnQgdHlwZSBQdXREZWxpdmVyeUNvbmZpcm1hdGlvbkluID0ge1xyXG4gIG90cENvZGU6IHN0cmluZ1xyXG4gIHNpZ25hdHVyZToge1xyXG4gICAgc3RhdHVzOiAnQ29tcGxldGVkJ1xyXG4gICAgb3BlcmF0aW9uX2lkOiBudW1iZXJcclxuICAgIHNpZ25hdHVyZV9iYXNlXzY0OiBzdHJpbmdcclxuICAgIG1pbWVfdHlwZTogJ2ltYWdlL3BuZydcclxuICB9IHwge1xyXG4gICAgc3RhdHVzOiAnQ2FuY2VsZWQnXHJcbiAgICBvcGVyYXRpb25faWQ6IG51bWJlclxyXG4gICAgc2lnbmF0dXJlX2Jhc2VfNjQ6IG51bGxcclxuICAgIG1pbWVfdHlwZTogbnVsbFxyXG4gIH1cclxufVxyXG4iXX0=
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBpLWV4dGVybmFsLW9wcy50eXBlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2V4cGVydGVhbS9uZ3gtc2VydmljZXMvc3JjL2xpYi9hcGlzL21vZGVscy9hcGktZXh0ZXJuYWwtb3BzLnR5cGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBPcGVyYXRpb24gfSBmcm9tICcuL2FwaS1leHRlcm5hbC1vcHMuaW50ZXJmYWNlcydcclxuXHJcbmV4cG9ydCB0eXBlIERlbGl2ZXJ5Q29uZmlybWF0aW9uRGF0YSA9IHtcclxuICBvcGVyYXRpb246IE9wZXJhdGlvblxyXG59XHJcblxyXG5leHBvcnQgdHlwZSBQdXREZWxpdmVyeUNvbmZpcm1hdGlvbkluID0ge1xyXG4gIG90cENvZGU6IHN0cmluZ1xyXG4gIHNpZ25hdHVyZToge1xyXG4gICAgc3RhdHVzOiAnUHJvY2Vzc2VkJ1xyXG4gICAgb3BlcmF0aW9uX2lkOiBudW1iZXJcclxuICAgIHNpZ25hdHVyZV9iYXNlXzY0OiBzdHJpbmdcclxuICAgIG1pbWVfdHlwZTogJ2ltYWdlL3BuZydcclxuICB9IHwge1xyXG4gICAgc3RhdHVzOiAnQ2FuY2VsZWQnIHwgJ0V4cGlyZWQnXHJcbiAgICBvcGVyYXRpb25faWQ6IG51bWJlclxyXG4gICAgc2lnbmF0dXJlX2Jhc2VfNjQ6IG51bGxcclxuICAgIG1pbWVfdHlwZTogbnVsbFxyXG4gIH1cclxufVxyXG4iXX0=
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@experteam-mx/ngx-services" />
5
- export * from './public-api';
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@experteam-mx/ngx-services" />
5
+ export * from './public-api';
@@ -1,26 +1,26 @@
1
- import { QueryParams } from './models/api.models';
2
- import { Observable } from 'rxjs';
3
- import { Environment } from '../ngx-services.models';
4
- import { HttpClient } from '@angular/common/http';
5
- import { LanguagesData } from './models/api-catalogs.types';
6
- import * as i0 from "@angular/core";
7
- export declare class ApiCatalogsService {
8
- private environments;
9
- private http;
10
- constructor(environments: Environment, http: HttpClient);
11
- /**
12
- * Retrieves the URL from the environments' API catalogs configuration.
13
- *
14
- * @return {string} The URL from the API catalogs, or an empty string if not defined.
15
- */
16
- get url(): string;
17
- /**
18
- * Fetches a list of languages based on the provided query parameters.
19
- *
20
- * @param {QueryParams} params - The query parameters to filter the languages.
21
- * @return {Observable<LanguagesData>} An observable containing the languages' data.
22
- */
23
- getLanguages(params: QueryParams): Observable<LanguagesData>;
24
- static ɵfac: i0.ɵɵFactoryDeclaration<ApiCatalogsService, never>;
25
- static ɵprov: i0.ɵɵInjectableDeclaration<ApiCatalogsService>;
26
- }
1
+ import { QueryParams } from './models/api.models';
2
+ import { Observable } from 'rxjs';
3
+ import { Environment } from '../ngx-services.models';
4
+ import { HttpClient } from '@angular/common/http';
5
+ import { LanguagesData } from './models/api-catalogs.types';
6
+ import * as i0 from "@angular/core";
7
+ export declare class ApiCatalogsService {
8
+ private environments;
9
+ private http;
10
+ constructor(environments: Environment, http: HttpClient);
11
+ /**
12
+ * Retrieves the URL from the environments' API catalogs configuration.
13
+ *
14
+ * @return {string} The URL from the API catalogs, or an empty string if not defined.
15
+ */
16
+ get url(): string;
17
+ /**
18
+ * Fetches a list of languages based on the provided query parameters.
19
+ *
20
+ * @param {QueryParams} params - The query parameters to filter the languages.
21
+ * @return {Observable<LanguagesData>} An observable containing the languages' data.
22
+ */
23
+ getLanguages(params: QueryParams): Observable<LanguagesData>;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<ApiCatalogsService, never>;
25
+ static ɵprov: i0.ɵɵInjectableDeclaration<ApiCatalogsService>;
26
+ }
@@ -1,163 +1,163 @@
1
- import { Environment } from '../ngx-services.models';
2
- import { HttpClient } from '@angular/common/http';
3
- import { AccountEntitiesData, CompanyCountriesData, CompanyCountryData, CompanyCountryTaxesData, CountryReferenceCurrenciesData, CountryReferenceData, CountryReferencesData, EmployeeData, EmployeesData, ExchangesData, InstallationData, InstallationsData, LocationData, LocationEmployeesData, LocationsData, ParametersData, ParametersProps, ParameterValueData, ParameterValueProps, SupplyEntitiesData, WorkflowsData } from './models/api-companies.types';
4
- import { QueryParams } from './models/api.models';
5
- import { Observable } from 'rxjs';
6
- import { CountryCurrencyRate } from './models/api-companies.interfaces';
7
- import * as i0 from "@angular/core";
8
- export declare class ApiCompaniesService {
9
- private environments;
10
- private http;
11
- constructor(environments: Environment, http: HttpClient);
12
- /**
13
- * Retrieves the URL for the companies API from the environment configurations.
14
- *
15
- * @return {string} The URL of the companies API.
16
- */
17
- get url(): string;
18
- /**
19
- * Fetches the installations based on the provided query parameters.
20
- *
21
- * @param {QueryParams} params - The parameters used to filter the installations query.
22
- * @return {Observable<InstallationsData>} An observable that emits the installations data.
23
- */
24
- getInstallations(params: QueryParams): Observable<InstallationsData>;
25
- /**
26
- * Retrieves the installation details based on the given installation ID.
27
- *
28
- * @param {number} id - The unique identifier of the installation to retrieve.
29
- * @returns {Observable<InstallationData>} An observable of the installation details.
30
- */
31
- getInstallation(id: number): Observable<InstallationData>;
32
- /**
33
- * Retrieves a list of locations based on the provided query parameters.
34
- *
35
- * @param {QueryParams} params - The parameters to use for querying locations.
36
- * @return {Observable<LocationsData>} An observable that emits the locations data.
37
- */
38
- getLocations(params: QueryParams): Observable<LocationsData>;
39
- /**
40
- * Fetches the location details for a given location ID.
41
- *
42
- * @param {number} id - The unique identifier of the location.
43
- * @return {Observable<LocationData>} An Observable containing the location details.
44
- */
45
- getLocation(id: number): Observable<LocationData>;
46
- /**
47
- * Retrieves a list of active supply entities.
48
- *
49
- * @param {QueryParams} params - The query parameters to filter supply entities.
50
- * @return {Observable<SupplyEntitiesData>} Observable emitting supply entities data.
51
- */
52
- getSupplyEntitiesActive(params: QueryParams): Observable<SupplyEntitiesData>;
53
- /**
54
- * Fetches a list of employees based on the specified query parameters.
55
- *
56
- * @param {QueryParams} params - The parameters to filter and sort the employees.
57
- * @return {Observable<EmployeesData>} An observable that emits the list of employees.
58
- */
59
- getEmployees(params: QueryParams): Observable<EmployeesData>;
60
- /**
61
- * Fetches an employee's details based on the provided employee ID.
62
- *
63
- * @param {number} id - The unique identifier of the employee.
64
- * @return {Observable<EmployeeData>} An observable that emits the employee's details.
65
- */
66
- getEmployee(id: number): Observable<EmployeeData>;
67
- /**
68
- * Retrieves the list of employees for a specified location based on provided query parameters.
69
- *
70
- * @param {QueryParams} params - The query parameters used to filter and retrieve the location employees.
71
- * @returns {Observable<LocationEmployeesData>} An observable that emits the list of employees for the specified location.
72
- */
73
- getLocationEmployees(params: QueryParams): Observable<LocationEmployeesData>;
74
- /**
75
- * Retrieves a list of countries where the company operates.
76
- *
77
- * @param {QueryParams} params - The query parameters for the API request.
78
- * @return {Observable<CompanyCountriesData>} An observable containing the list of company countries.
79
- */
80
- getCompanyCountries(params: QueryParams): Observable<CompanyCountriesData>;
81
- /**
82
- * Retrieves the country information for a specified company by its ID.
83
- *
84
- * @param {number} id - The unique identifier of the company.
85
- * @return {Observable<CompanyCountryData>} An observable containing the country information of the company.
86
- */
87
- getCompanyCountry(id: number): Observable<CompanyCountryData>;
88
- /**
89
- * Fetches the reference currencies for a given country.
90
- *
91
- * @param {QueryParams} params - The query parameters to include in the request.
92
- * @return {Observable<CountryReferenceCurrenciesData>} The observable containing the country reference currencies data.
93
- */
94
- getCountryReferenceCurrencies(params: QueryParams): Observable<CountryReferenceCurrenciesData>;
95
- /**
96
- * Retrieves a list of currencies for different countries along with their current exchange rates.
97
- *
98
- * @param {QueryParams} params - The query parameters used to fetch the country reference currencies.
99
- * @return {Observable<CountryCurrencyRate[]>} An observable that emits an array of country currency rates.
100
- */
101
- getCountryCurrenciesWithRate(params: QueryParams): Observable<CountryCurrencyRate[]>;
102
- /**
103
- * Retrieves the current exchanges based on the given query parameters.
104
- *
105
- * @param {QueryParams} params - The query parameters to filter the exchanges.
106
- *
107
- * @returns {Observable<ExchangesData>} - An observable that emits the API response data containing the current exchanges.
108
- */
109
- getCurrentExchanges(params: QueryParams): Observable<ExchangesData>;
110
- /**
111
- * Fetches the country-specific tax information for a company.
112
- *
113
- * @param {QueryParams} params - The parameters used to filter and query the taxes.
114
- * @return {Observable<CompanyCountryTaxesData>} An observable that emits the tax information.
115
- */
116
- getCompanyCountryTaxes(params: QueryParams): Observable<CompanyCountryTaxesData>;
117
- /**
118
- * Retrieves the list of active account entities based on the provided query parameters.
119
- *
120
- * @param {QueryParams} params - The parameters to filter and query active account entities.
121
- * @return {Observable<AccountEntitiesData>} An observable that emits the list of active account entities.
122
- */
123
- getActiveAccountEntities(params: QueryParams): Observable<AccountEntitiesData>;
124
- /**
125
- * Retrieves the parameter values based on the provided parameter names.
126
- *
127
- * @param {Object} params - An object containing the required parameters.
128
- * @param {string[]} params.paramNames - An array of parameter names for which the values need to be fetched.
129
- * @return {Observable<ParametersData>} An observable that emits the fetched parameter values.
130
- */
131
- getParameters({ paramNames, }: ParametersProps): Observable<ParametersData>;
132
- /**
133
- * Retrieves the value of a specified parameter.
134
- *
135
- * @param {Object} input - The input object containing the parameter details.
136
- * @param {string} input.paramName - The name of the parameter whose value is to be retrieved.
137
- * @return {Observable<ParameterValueData>} An observable emitting the value of the specified parameter.
138
- */
139
- getParameterValue({ paramName, }: ParameterValueProps): Observable<ParameterValueData>;
140
- /**
141
- * Retrieves a list of country references based on the given query parameters.
142
- *
143
- * @param {QueryParams} params - The query parameters for retrieving country references.
144
- * @return {Observable<CountryReferencesData>} An observable containing the country reference data.
145
- */
146
- getCountryReferences(params: QueryParams): Observable<CountryReferencesData>;
147
- /**
148
- * Fetches the country reference data for a given country ID.
149
- *
150
- * @param {number} id - The unique identifier of the country for which the reference data is to be retrieved.
151
- * @return {Observable<CountryReferenceData>} An observable containing the country reference data.
152
- */
153
- getCountryReference(id: number): Observable<CountryReferenceData>;
154
- /**
155
- * Fetches the list of workflows based on the provided query parameters.
156
- *
157
- * @param {QueryParams} params - The query parameters used to filter workflows.
158
- * @return {Observable<WorkflowsData>} An observable containing the workflow data.
159
- */
160
- getWorkflows(params: QueryParams): Observable<WorkflowsData>;
161
- static ɵfac: i0.ɵɵFactoryDeclaration<ApiCompaniesService, never>;
162
- static ɵprov: i0.ɵɵInjectableDeclaration<ApiCompaniesService>;
163
- }
1
+ import { Environment } from '../ngx-services.models';
2
+ import { HttpClient } from '@angular/common/http';
3
+ import { AccountEntitiesData, CompanyCountriesData, CompanyCountryData, CompanyCountryTaxesData, CountryReferenceCurrenciesData, CountryReferenceData, CountryReferencesData, EmployeeData, EmployeesData, ExchangesData, InstallationData, InstallationsData, LocationData, LocationEmployeesData, LocationsData, ParametersData, ParametersProps, ParameterValueData, ParameterValueProps, SupplyEntitiesData, WorkflowsData } from './models/api-companies.types';
4
+ import { QueryParams } from './models/api.models';
5
+ import { Observable } from 'rxjs';
6
+ import { CountryCurrencyRate } from './models/api-companies.interfaces';
7
+ import * as i0 from "@angular/core";
8
+ export declare class ApiCompaniesService {
9
+ private environments;
10
+ private http;
11
+ constructor(environments: Environment, http: HttpClient);
12
+ /**
13
+ * Retrieves the URL for the companies API from the environment configurations.
14
+ *
15
+ * @return {string} The URL of the companies API.
16
+ */
17
+ get url(): string;
18
+ /**
19
+ * Fetches the installations based on the provided query parameters.
20
+ *
21
+ * @param {QueryParams} params - The parameters used to filter the installations query.
22
+ * @return {Observable<InstallationsData>} An observable that emits the installations data.
23
+ */
24
+ getInstallations(params: QueryParams): Observable<InstallationsData>;
25
+ /**
26
+ * Retrieves the installation details based on the given installation ID.
27
+ *
28
+ * @param {number} id - The unique identifier of the installation to retrieve.
29
+ * @returns {Observable<InstallationData>} An observable of the installation details.
30
+ */
31
+ getInstallation(id: number): Observable<InstallationData>;
32
+ /**
33
+ * Retrieves a list of locations based on the provided query parameters.
34
+ *
35
+ * @param {QueryParams} params - The parameters to use for querying locations.
36
+ * @return {Observable<LocationsData>} An observable that emits the locations data.
37
+ */
38
+ getLocations(params: QueryParams): Observable<LocationsData>;
39
+ /**
40
+ * Fetches the location details for a given location ID.
41
+ *
42
+ * @param {number} id - The unique identifier of the location.
43
+ * @return {Observable<LocationData>} An Observable containing the location details.
44
+ */
45
+ getLocation(id: number): Observable<LocationData>;
46
+ /**
47
+ * Retrieves a list of active supply entities.
48
+ *
49
+ * @param {QueryParams} params - The query parameters to filter supply entities.
50
+ * @return {Observable<SupplyEntitiesData>} Observable emitting supply entities data.
51
+ */
52
+ getSupplyEntitiesActive(params: QueryParams): Observable<SupplyEntitiesData>;
53
+ /**
54
+ * Fetches a list of employees based on the specified query parameters.
55
+ *
56
+ * @param {QueryParams} params - The parameters to filter and sort the employees.
57
+ * @return {Observable<EmployeesData>} An observable that emits the list of employees.
58
+ */
59
+ getEmployees(params: QueryParams): Observable<EmployeesData>;
60
+ /**
61
+ * Fetches an employee's details based on the provided employee ID.
62
+ *
63
+ * @param {number} id - The unique identifier of the employee.
64
+ * @return {Observable<EmployeeData>} An observable that emits the employee's details.
65
+ */
66
+ getEmployee(id: number): Observable<EmployeeData>;
67
+ /**
68
+ * Retrieves the list of employees for a specified location based on provided query parameters.
69
+ *
70
+ * @param {QueryParams} params - The query parameters used to filter and retrieve the location employees.
71
+ * @returns {Observable<LocationEmployeesData>} An observable that emits the list of employees for the specified location.
72
+ */
73
+ getLocationEmployees(params: QueryParams): Observable<LocationEmployeesData>;
74
+ /**
75
+ * Retrieves a list of countries where the company operates.
76
+ *
77
+ * @param {QueryParams} params - The query parameters for the API request.
78
+ * @return {Observable<CompanyCountriesData>} An observable containing the list of company countries.
79
+ */
80
+ getCompanyCountries(params: QueryParams): Observable<CompanyCountriesData>;
81
+ /**
82
+ * Retrieves the country information for a specified company by its ID.
83
+ *
84
+ * @param {number} id - The unique identifier of the company.
85
+ * @return {Observable<CompanyCountryData>} An observable containing the country information of the company.
86
+ */
87
+ getCompanyCountry(id: number): Observable<CompanyCountryData>;
88
+ /**
89
+ * Fetches the reference currencies for a given country.
90
+ *
91
+ * @param {QueryParams} params - The query parameters to include in the request.
92
+ * @return {Observable<CountryReferenceCurrenciesData>} The observable containing the country reference currencies data.
93
+ */
94
+ getCountryReferenceCurrencies(params: QueryParams): Observable<CountryReferenceCurrenciesData>;
95
+ /**
96
+ * Retrieves a list of currencies for different countries along with their current exchange rates.
97
+ *
98
+ * @param {QueryParams} params - The query parameters used to fetch the country reference currencies.
99
+ * @return {Observable<CountryCurrencyRate[]>} An observable that emits an array of country currency rates.
100
+ */
101
+ getCountryCurrenciesWithRate(params: QueryParams): Observable<CountryCurrencyRate[]>;
102
+ /**
103
+ * Retrieves the current exchanges based on the given query parameters.
104
+ *
105
+ * @param {QueryParams} params - The query parameters to filter the exchanges.
106
+ *
107
+ * @returns {Observable<ExchangesData>} - An observable that emits the API response data containing the current exchanges.
108
+ */
109
+ getCurrentExchanges(params: QueryParams): Observable<ExchangesData>;
110
+ /**
111
+ * Fetches the country-specific tax information for a company.
112
+ *
113
+ * @param {QueryParams} params - The parameters used to filter and query the taxes.
114
+ * @return {Observable<CompanyCountryTaxesData>} An observable that emits the tax information.
115
+ */
116
+ getCompanyCountryTaxes(params: QueryParams): Observable<CompanyCountryTaxesData>;
117
+ /**
118
+ * Retrieves the list of active account entities based on the provided query parameters.
119
+ *
120
+ * @param {QueryParams} params - The parameters to filter and query active account entities.
121
+ * @return {Observable<AccountEntitiesData>} An observable that emits the list of active account entities.
122
+ */
123
+ getActiveAccountEntities(params: QueryParams): Observable<AccountEntitiesData>;
124
+ /**
125
+ * Retrieves the parameter values based on the provided parameter names.
126
+ *
127
+ * @param {Object} params - An object containing the required parameters.
128
+ * @param {string[]} params.paramNames - An array of parameter names for which the values need to be fetched.
129
+ * @return {Observable<ParametersData>} An observable that emits the fetched parameter values.
130
+ */
131
+ getParameters({ paramNames, }: ParametersProps): Observable<ParametersData>;
132
+ /**
133
+ * Retrieves the value of a specified parameter.
134
+ *
135
+ * @param {Object} input - The input object containing the parameter details.
136
+ * @param {string} input.paramName - The name of the parameter whose value is to be retrieved.
137
+ * @return {Observable<ParameterValueData>} An observable emitting the value of the specified parameter.
138
+ */
139
+ getParameterValue({ paramName, }: ParameterValueProps): Observable<ParameterValueData>;
140
+ /**
141
+ * Retrieves a list of country references based on the given query parameters.
142
+ *
143
+ * @param {QueryParams} params - The query parameters for retrieving country references.
144
+ * @return {Observable<CountryReferencesData>} An observable containing the country reference data.
145
+ */
146
+ getCountryReferences(params: QueryParams): Observable<CountryReferencesData>;
147
+ /**
148
+ * Fetches the country reference data for a given country ID.
149
+ *
150
+ * @param {number} id - The unique identifier of the country for which the reference data is to be retrieved.
151
+ * @return {Observable<CountryReferenceData>} An observable containing the country reference data.
152
+ */
153
+ getCountryReference(id: number): Observable<CountryReferenceData>;
154
+ /**
155
+ * Fetches the list of workflows based on the provided query parameters.
156
+ *
157
+ * @param {QueryParams} params - The query parameters used to filter workflows.
158
+ * @return {Observable<WorkflowsData>} An observable containing the workflow data.
159
+ */
160
+ getWorkflows(params: QueryParams): Observable<WorkflowsData>;
161
+ static ɵfac: i0.ɵɵFactoryDeclaration<ApiCompaniesService, never>;
162
+ static ɵprov: i0.ɵɵInjectableDeclaration<ApiCompaniesService>;
163
+ }
@@ -1,34 +1,34 @@
1
- import { Environment } from '../ngx-services.models';
2
- import { HttpClient } from '@angular/common/http';
3
- import { Observable } from 'rxjs';
4
- import { DeliveryConfirmationData, PutDeliveryConfirmationIn } from './models/api-external-ops.types';
5
- import * as i0 from "@angular/core";
6
- export declare class ApiExternalOpsService {
7
- private environments;
8
- private http;
9
- constructor(environments: Environment, http: HttpClient);
10
- /**
11
- * Retrieves the API pickups URL from the environments configuration.
12
- *
13
- * @return {string} The API pickups URL.
14
- */
15
- get url(): string;
16
- /**
17
- * Retrieves delivery confirmation details based on the provided OTP code.
18
- *
19
- * @param {string} otpCode - The OTP code used to search for delivery confirmation.
20
- * @return {Observable<DeliveryConfirmationData>} An observable containing the delivery confirmation data.
21
- */
22
- getDeliveryConfirmation(otpCode: string): Observable<DeliveryConfirmationData>;
23
- /**
24
- * Put a delivery confirmation by sending an OTP code and a signature.
25
- *
26
- * @param {Object} options - The options object
27
- * @param {string} options.otpCode - The OTP code for confirming the delivery.
28
- * @param {string} options.signature - The signature for the delivery confirmation.
29
- * @return {Observable<{}>} An observable that completes when the delivery confirmation is successfully submitted.
30
- */
31
- putDeliveryConfirmation({ otpCode, signature, }: PutDeliveryConfirmationIn): Observable<{}>;
32
- static ɵfac: i0.ɵɵFactoryDeclaration<ApiExternalOpsService, never>;
33
- static ɵprov: i0.ɵɵInjectableDeclaration<ApiExternalOpsService>;
34
- }
1
+ import { Environment } from '../ngx-services.models';
2
+ import { HttpClient } from '@angular/common/http';
3
+ import { Observable } from 'rxjs';
4
+ import { DeliveryConfirmationData, PutDeliveryConfirmationIn } from './models/api-external-ops.types';
5
+ import * as i0 from "@angular/core";
6
+ export declare class ApiExternalOpsService {
7
+ private environments;
8
+ private http;
9
+ constructor(environments: Environment, http: HttpClient);
10
+ /**
11
+ * Retrieves the API pickups URL from the environments configuration.
12
+ *
13
+ * @return {string} The API pickups URL.
14
+ */
15
+ get url(): string;
16
+ /**
17
+ * Retrieves delivery confirmation details based on the provided OTP code.
18
+ *
19
+ * @param {string} otpCode - The OTP code used to search for delivery confirmation.
20
+ * @return {Observable<DeliveryConfirmationData>} An observable containing the delivery confirmation data.
21
+ */
22
+ getDeliveryConfirmation(otpCode: string): Observable<DeliveryConfirmationData>;
23
+ /**
24
+ * Put a delivery confirmation by sending an OTP code and a signature.
25
+ *
26
+ * @param {Object} options - The options object
27
+ * @param {string} options.otpCode - The OTP code for confirming the delivery.
28
+ * @param {string} options.signature - The signature for the delivery confirmation.
29
+ * @return {Observable<{}>} An observable that completes when the delivery confirmation is successfully submitted.
30
+ */
31
+ putDeliveryConfirmation({ otpCode, signature, }: PutDeliveryConfirmationIn): Observable<{}>;
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<ApiExternalOpsService, never>;
33
+ static ɵprov: i0.ɵɵInjectableDeclaration<ApiExternalOpsService>;
34
+ }
@@ -1,79 +1,79 @@
1
- import { ChangeLanguageIn, CreateSessionIn, CreateSessionOut, GetUserOut, LoginIn, LoginOut, MeOut } from './models/api-security.types';
2
- import { HttpClient } from '@angular/common/http';
3
- import { Environment } from '../ngx-services.models';
4
- import { Observable } from 'rxjs';
5
- import { CookieService } from 'ngx-cookie-service';
6
- import * as i0 from "@angular/core";
7
- export declare class ApiSecurityService {
8
- private environments;
9
- private http;
10
- private cookie;
11
- constructor(environments: Environment, http: HttpClient, cookie: CookieService);
12
- /**
13
- * Retrieves the API security URL from the environments configuration.
14
- *
15
- * @return {string} The API security URL.
16
- */
17
- get url(): string;
18
- /**
19
- * Authenticates a user with the provided credentials and role.
20
- *
21
- * @param {Object} param0 - The login input object.
22
- * @param {string} param0.username - The username of the user.
23
- * @param {string} param0.password - The password of the user.
24
- * @param {string} param0.role - The role of the user.
25
- * @return {Observable<LoginOut>} An observable emitting the login output object.
26
- */
27
- login({ username, password, role, }: LoginIn): Observable<LoginOut>;
28
- /**
29
- * Logs out the current user by making a POST request to the logout endpoint.
30
- *
31
- * This method deletes all cookies after a successful logout.
32
- *
33
- * @return {Observable<{}>} An observable that emits the server's response to the logout request.
34
- */
35
- logout(): Observable<{}>;
36
- /**
37
- * Creates a new session for a specified model.
38
- *
39
- * @param {Object} params - The parameters for creating the session.
40
- * @param {string} params.modelType - The type of the model.
41
- * @param {string} params.modelId - The ID of the model.
42
- * @param {string} [params.token] - Optional authorization token.
43
- *
44
- * @return {Observable<CreateSessionOut>} An observable containing the created session details.
45
- */
46
- createSession({ modelType, modelId, token, }: CreateSessionIn): Observable<CreateSessionOut>;
47
- /**
48
- * Fetches the authenticated user's information.
49
- * Sends a GET request to the endpoint '/auth/me' to retrieve information
50
- * about the currently authenticated user.
51
- *
52
- * @return {Observable<MeOut>} An observable that emits the authenticated user's data.
53
- */
54
- me(): Observable<MeOut>;
55
- /**
56
- * Fetches the authenticated user's details from the server.
57
- *
58
- * @param token The JWT token used for authorization.
59
- * @return An Observable that emits the user's details encapsulated in a MeOut object.
60
- */
61
- otherMe(token: string): Observable<MeOut>;
62
- /**
63
- * Fetches a user by their unique ID.
64
- *
65
- * @param {number} id - The unique identifier of the user to be fetched.
66
- * @return {Observable<GetUserOut>} An observable containing the user information.
67
- */
68
- user(id: number): Observable<GetUserOut>;
69
- /**
70
- * Changes the language for the authenticated user.
71
- *
72
- * @param {Object} params - The input parameters for changing the language.
73
- * @param {string} params.languageId - The ID of the new language to be set.
74
- * @return {Observable<ApiSuccess<MeOut>>} An observable that emits the result of the language change request.
75
- */
76
- changeLanguage({ languageId }: ChangeLanguageIn): Observable<MeOut>;
77
- static ɵfac: i0.ɵɵFactoryDeclaration<ApiSecurityService, never>;
78
- static ɵprov: i0.ɵɵInjectableDeclaration<ApiSecurityService>;
79
- }
1
+ import { ChangeLanguageIn, CreateSessionIn, CreateSessionOut, GetUserOut, LoginIn, LoginOut, MeOut } from './models/api-security.types';
2
+ import { HttpClient } from '@angular/common/http';
3
+ import { Environment } from '../ngx-services.models';
4
+ import { Observable } from 'rxjs';
5
+ import { CookieService } from 'ngx-cookie-service';
6
+ import * as i0 from "@angular/core";
7
+ export declare class ApiSecurityService {
8
+ private environments;
9
+ private http;
10
+ private cookie;
11
+ constructor(environments: Environment, http: HttpClient, cookie: CookieService);
12
+ /**
13
+ * Retrieves the API security URL from the environments configuration.
14
+ *
15
+ * @return {string} The API security URL.
16
+ */
17
+ get url(): string;
18
+ /**
19
+ * Authenticates a user with the provided credentials and role.
20
+ *
21
+ * @param {Object} param0 - The login input object.
22
+ * @param {string} param0.username - The username of the user.
23
+ * @param {string} param0.password - The password of the user.
24
+ * @param {string} param0.role - The role of the user.
25
+ * @return {Observable<LoginOut>} An observable emitting the login output object.
26
+ */
27
+ login({ username, password, role, }: LoginIn): Observable<LoginOut>;
28
+ /**
29
+ * Logs out the current user by making a POST request to the logout endpoint.
30
+ *
31
+ * This method deletes all cookies after a successful logout.
32
+ *
33
+ * @return {Observable<{}>} An observable that emits the server's response to the logout request.
34
+ */
35
+ logout(): Observable<{}>;
36
+ /**
37
+ * Creates a new session for a specified model.
38
+ *
39
+ * @param {Object} params - The parameters for creating the session.
40
+ * @param {string} params.modelType - The type of the model.
41
+ * @param {string} params.modelId - The ID of the model.
42
+ * @param {string} [params.token] - Optional authorization token.
43
+ *
44
+ * @return {Observable<CreateSessionOut>} An observable containing the created session details.
45
+ */
46
+ createSession({ modelType, modelId, token, }: CreateSessionIn): Observable<CreateSessionOut>;
47
+ /**
48
+ * Fetches the authenticated user's information.
49
+ * Sends a GET request to the endpoint '/auth/me' to retrieve information
50
+ * about the currently authenticated user.
51
+ *
52
+ * @return {Observable<MeOut>} An observable that emits the authenticated user's data.
53
+ */
54
+ me(): Observable<MeOut>;
55
+ /**
56
+ * Fetches the authenticated user's details from the server.
57
+ *
58
+ * @param token The JWT token used for authorization.
59
+ * @return An Observable that emits the user's details encapsulated in a MeOut object.
60
+ */
61
+ otherMe(token: string): Observable<MeOut>;
62
+ /**
63
+ * Fetches a user by their unique ID.
64
+ *
65
+ * @param {number} id - The unique identifier of the user to be fetched.
66
+ * @return {Observable<GetUserOut>} An observable containing the user information.
67
+ */
68
+ user(id: number): Observable<GetUserOut>;
69
+ /**
70
+ * Changes the language for the authenticated user.
71
+ *
72
+ * @param {Object} params - The input parameters for changing the language.
73
+ * @param {string} params.languageId - The ID of the new language to be set.
74
+ * @return {Observable<ApiSuccess<MeOut>>} An observable that emits the result of the language change request.
75
+ */
76
+ changeLanguage({ languageId }: ChangeLanguageIn): Observable<MeOut>;
77
+ static ɵfac: i0.ɵɵFactoryDeclaration<ApiSecurityService, never>;
78
+ static ɵprov: i0.ɵɵInjectableDeclaration<ApiSecurityService>;
79
+ }