@experteam-mx/ngx-services 18.7.0 → 18.7.1
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-reports.service.mjs +33 -1
- package/esm2022/lib/apis/models/api-reports.types.mjs +1 -1
- package/fesm2022/experteam-mx-ngx-services.mjs +32 -0
- package/fesm2022/experteam-mx-ngx-services.mjs.map +1 -1
- package/lib/apis/api-reports.service.d.ts +23 -2
- package/lib/apis/models/api-reports.types.d.ts +23 -0
- package/package.json +1 -1
|
@@ -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
|
}
|
|
@@ -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
|
+
};
|