@experteam-mx/ngx-services 18.7.0 → 18.7.2
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-companies.service.mjs +8 -8
- package/esm2022/lib/apis/api-reports.service.mjs +33 -1
- package/esm2022/lib/apis/api-security.service.mjs +11 -11
- 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/fesm2022/experteam-mx-ngx-services.mjs +49 -17
- package/fesm2022/experteam-mx-ngx-services.mjs.map +1 -1
- package/lib/apis/api-companies.service.d.ts +2 -2
- package/lib/apis/api-reports.service.d.ts +23 -2
- package/lib/apis/api-security.service.d.ts +7 -7
- package/lib/apis/models/api-reports.types.d.ts +23 -0
- package/lib/apis/models/api-security.interfaces.d.ts +1 -0
- package/lib/apis/models/api-security.types.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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
|
-
|
|
415
|
+
postParameterValueByModel(parameters: ParametersByLevelIn): Observable<ParametersValuesOut>;
|
|
416
416
|
/**
|
|
417
417
|
* Retrieves the value of a specified parameter.
|
|
418
418
|
*
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Environment } from '../ngx-services.models';
|
|
2
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { HttpClient, HttpResponse } from '@angular/common/http';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import { QueryParams } from './models/api.models';
|
|
5
|
-
import { CollectionPaymentsOut, ExistPendingInvoicesIn, ExistPendingPaymentsIn, ExternalShipmentsOut, PromotionCodeDiscountsOut, ShipmentsReportOut } from './models/api-reports.types';
|
|
5
|
+
import { CollectionPaymentsOut, ExistPendingInvoicesIn, ExistPendingPaymentsIn, ExternalShipmentsOut, FileCheckOut, PromotionCodeDiscountsOut, ShipmentsReportOut } from './models/api-reports.types';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class ApiReportsService {
|
|
8
8
|
private environments;
|
|
@@ -58,6 +58,27 @@ export declare class ApiReportsService {
|
|
|
58
58
|
* @return {Observable<PromotionCodeDiscountsOut>} An observable that emits the promotion code discounts report data.
|
|
59
59
|
*/
|
|
60
60
|
getPromotionCodeDiscounts(params: QueryParams): Observable<PromotionCodeDiscountsOut>;
|
|
61
|
+
/**
|
|
62
|
+
* Retrieves the downloadable resource associated with the given transaction ID.
|
|
63
|
+
*
|
|
64
|
+
* @param {string} transactionId - The unique identifier of the transaction whose download is requested.
|
|
65
|
+
* @return {Observable<HttpResponse<ArrayBuffer>>} An observable that emits the HTTP response containing the resource in the form of an ArrayBuffer.
|
|
66
|
+
*/
|
|
67
|
+
getDownload(transactionId: string): Observable<HttpResponse<ArrayBuffer>>;
|
|
68
|
+
/**
|
|
69
|
+
* Retrieves file check information for the specified transaction ID.
|
|
70
|
+
*
|
|
71
|
+
* @param {string} transactionId - The ID of the transaction for which the file check information is to be retrieved.
|
|
72
|
+
* @return {Observable<FileCheckOut>} An observable that emits the file check information associated with the given transaction ID.
|
|
73
|
+
*/
|
|
74
|
+
getFileCheck(transactionId: string): Observable<FileCheckOut>;
|
|
75
|
+
/**
|
|
76
|
+
* Deletes the file check associated with the provided transaction ID.
|
|
77
|
+
*
|
|
78
|
+
* @param {string} transactionId - The unique identifier of the transaction whose file check is to be deleted.
|
|
79
|
+
* @return {Observable<{}>} An observable emitting the response data after the deletion is processed.
|
|
80
|
+
*/
|
|
81
|
+
deleteFileCheck(transactionId: string): Observable<{}>;
|
|
61
82
|
static ɵfac: i0.ɵɵFactoryDeclaration<ApiReportsService, never>;
|
|
62
83
|
static ɵprov: i0.ɵɵInjectableDeclaration<ApiReportsService>;
|
|
63
84
|
}
|
|
@@ -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,6 @@
|
|
|
1
1
|
import { CollectionPayment, PromotionCodeDiscount, ReportExternalShipment, ShipmentReports } from './api-reports.interfaces';
|
|
2
|
+
import { QueryParams } from './api.models';
|
|
3
|
+
import { Session } from './api-security.interfaces';
|
|
2
4
|
export type CollectionPaymentsOut = {
|
|
3
5
|
collection_payments: CollectionPayment[];
|
|
4
6
|
total: number;
|
|
@@ -23,3 +25,24 @@ export type PromotionCodeDiscountsOut = {
|
|
|
23
25
|
} | {
|
|
24
26
|
transaction_id: string;
|
|
25
27
|
};
|
|
28
|
+
export type FileCheckOut = {
|
|
29
|
+
report_file: {
|
|
30
|
+
user_id: number;
|
|
31
|
+
role_type_level: number;
|
|
32
|
+
type: string;
|
|
33
|
+
status: number;
|
|
34
|
+
progress: number;
|
|
35
|
+
file_size: number;
|
|
36
|
+
file_name: string | null;
|
|
37
|
+
report_request: QueryParams;
|
|
38
|
+
transaction_id: string;
|
|
39
|
+
headers: {
|
|
40
|
+
[key: string]: string;
|
|
41
|
+
};
|
|
42
|
+
user_session: Session;
|
|
43
|
+
role_company_country_id: number;
|
|
44
|
+
updated_at: string;
|
|
45
|
+
created_at: string;
|
|
46
|
+
id: string;
|
|
47
|
+
};
|
|
48
|
+
};
|