@experteam-mx/ngx-services 20.0.0-beta.4 → 20.0.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/README.md +24 -24
- package/esm2022/experteam-mx-ngx-services.mjs +5 -0
- package/esm2022/lib/apis/api-billing-do.service.mjs +41 -0
- package/esm2022/lib/apis/api-billing-gt.service.mjs +61 -0
- package/esm2022/lib/apis/api-billing-mx.service.mjs +62 -0
- package/esm2022/lib/apis/api-billing-pa.service.mjs +105 -0
- package/esm2022/lib/apis/api-billing-sv.service.mjs +83 -0
- package/esm2022/lib/apis/api-cash-operations.service.mjs +93 -0
- package/esm2022/lib/apis/api-catalogs.service.mjs +626 -0
- package/esm2022/lib/apis/api-companies.service.mjs +1031 -0
- package/esm2022/lib/apis/api-composition.service.mjs +55 -0
- package/esm2022/lib/apis/api-customs.service.mjs +157 -0
- package/esm2022/lib/apis/api-discounts.service.mjs +243 -0
- package/esm2022/lib/apis/api-e-tools-auto-billing.service.mjs +75 -0
- package/esm2022/lib/apis/api-events.service.mjs +53 -0
- package/esm2022/lib/apis/api-external-pickups.service.mjs +74 -0
- package/esm2022/lib/apis/api-inventories.service.mjs +208 -0
- package/esm2022/lib/apis/api-invoices.service.mjs +398 -0
- package/esm2022/lib/apis/api-notifications.service.mjs +104 -0
- package/esm2022/lib/apis/api-open-items.service.mjs +62 -0
- package/esm2022/lib/apis/api-reports.service.mjs +172 -0
- package/esm2022/lib/apis/api-security.service.mjs +245 -0
- package/esm2022/lib/apis/api-services.service.mjs +93 -0
- package/esm2022/lib/apis/api-shipments.service.mjs +116 -0
- package/esm2022/lib/apis/api-supplies.service.mjs +133 -0
- package/esm2022/lib/apis/models/api-billing-do.interfaces.mjs +2 -0
- package/esm2022/lib/apis/models/api-billing-do.types.mjs +2 -0
- package/esm2022/lib/apis/models/api-billing-mx.interfaces.mjs +2 -0
- package/esm2022/lib/apis/models/api-billing-mx.types.mjs +2 -0
- package/esm2022/lib/apis/models/api-billing-pa.interfaces.mjs +2 -0
- package/esm2022/lib/apis/models/api-billing-pa.types.mjs +2 -0
- package/esm2022/lib/apis/models/api-billing-sv.interfaces.mjs +2 -0
- package/esm2022/lib/apis/models/api-billing-sv.types.mjs +2 -0
- package/esm2022/lib/apis/models/api-billing.models.mjs +2 -0
- package/esm2022/lib/apis/models/api-cash-operations.interfaces.mjs +2 -0
- package/esm2022/lib/apis/models/api-cash-operations.types.mjs +2 -0
- package/esm2022/lib/apis/models/api-catalog.enum.mjs +9 -0
- package/esm2022/lib/apis/models/api-catalog.interfaces.mjs +2 -0
- package/esm2022/lib/apis/models/api-catalog.types.mjs +2 -0
- package/esm2022/lib/apis/models/api-companies.interfaces.mjs +2 -0
- package/esm2022/lib/apis/models/api-companies.types.mjs +2 -0
- package/esm2022/lib/apis/models/api-composition.interfaces.mjs +2 -0
- package/esm2022/lib/apis/models/api-composition.types.mjs +2 -0
- package/esm2022/lib/apis/models/api-customs.interfaces.mjs +2 -0
- package/esm2022/lib/apis/models/api-customs.types.mjs +2 -0
- package/esm2022/lib/apis/models/api-discounts.interfaces.mjs +2 -0
- package/esm2022/lib/apis/models/api-discounts.types.mjs +2 -0
- package/esm2022/lib/apis/models/api-e-tools-auto-billing.interfaces.mjs +2 -0
- package/esm2022/lib/apis/models/api-e-tools-auto-billing.types.mjs +2 -0
- package/esm2022/lib/apis/models/api-events.enum.mjs +7 -0
- package/esm2022/lib/apis/models/api-events.interfaces.mjs +2 -0
- package/esm2022/lib/apis/models/api-events.types.mjs +2 -0
- package/esm2022/lib/apis/models/api-external-pickups.types.mjs +2 -0
- package/esm2022/lib/apis/models/api-inventories.enum.mjs +22 -0
- package/esm2022/lib/apis/models/api-inventories.interfaces.mjs +2 -0
- package/esm2022/lib/apis/models/api-inventories.types.mjs +2 -0
- package/esm2022/lib/apis/models/api-invoices.interfaces.mjs +2 -0
- package/esm2022/lib/apis/models/api-invoices.types.mjs +2 -0
- package/esm2022/lib/apis/models/api-notifications.interfaces.mjs +2 -0
- package/esm2022/lib/apis/models/api-notifications.types.mjs +2 -0
- package/esm2022/lib/apis/models/api-open-items.interfaces.mjs +2 -0
- package/esm2022/lib/apis/models/api-open-items.types.mjs +2 -0
- package/esm2022/lib/apis/models/api-reports.interfaces.mjs +2 -0
- package/esm2022/lib/apis/models/api-reports.types.mjs +2 -0
- package/esm2022/lib/apis/models/api-security.interfaces.mjs +2 -0
- package/esm2022/lib/apis/models/api-security.types.mjs +2 -0
- package/esm2022/lib/apis/models/api-services.interfaces.mjs +2 -0
- package/esm2022/lib/apis/models/api-services.types.mjs +2 -0
- package/esm2022/lib/apis/models/api-shipments.enums.mjs +8 -0
- package/esm2022/lib/apis/models/api-shipments.interfaces.mjs +2 -0
- package/esm2022/lib/apis/models/api-shipments.types.mjs +2 -0
- package/esm2022/lib/apis/models/api-supplies.interfaces.mjs +2 -0
- package/esm2022/lib/apis/models/api-supplies.types.mjs +2 -0
- package/esm2022/lib/apis/models/api.models.mjs +2 -0
- package/esm2022/lib/cypher/crypto.service.mjs +93 -0
- package/esm2022/lib/helpers/files.mjs +9 -0
- package/esm2022/lib/helpers/http.mjs +66 -0
- package/esm2022/lib/interceptors/api-headers.interceptor.mjs +24 -0
- package/esm2022/lib/interceptors/api-token.interceptor.mjs +28 -0
- package/esm2022/lib/interceptors/http-caching.interceptor.mjs +37 -0
- package/esm2022/lib/ngx-services.models.mjs +11 -0
- package/esm2022/lib/ngx-services.module.mjs +33 -0
- package/esm2022/lib/websockets/web-sockets.service.mjs +115 -0
- package/esm2022/public-api.mjs +90 -0
- package/fesm2022/experteam-mx-ngx-services.mjs +126 -5
- package/fesm2022/experteam-mx-ngx-services.mjs.map +1 -1
- package/index.d.ts +287 -4
- package/lib/apis/api-billing-do.service.d.ts +24 -0
- package/lib/apis/api-billing-gt.service.d.ts +38 -0
- package/lib/apis/api-billing-mx.service.d.ts +39 -0
- package/lib/apis/api-billing-pa.service.d.ts +68 -0
- package/lib/apis/api-billing-sv.service.d.ts +55 -0
- package/lib/apis/api-cash-operations.service.d.ts +62 -0
- package/lib/apis/api-catalogs.service.d.ts +458 -0
- package/lib/apis/api-companies.service.d.ts +714 -0
- package/lib/apis/api-composition.service.d.ts +35 -0
- package/lib/apis/api-customs.service.d.ts +110 -0
- package/lib/apis/api-discounts.service.d.ts +167 -0
- package/lib/apis/api-e-tools-auto-billing.service.d.ts +49 -0
- package/lib/apis/api-events.service.d.ts +33 -0
- package/lib/apis/api-external-pickups.service.d.ts +46 -0
- package/lib/apis/api-inventories.service.d.ts +145 -0
- package/lib/apis/api-invoices.service.d.ts +280 -0
- package/lib/apis/api-notifications.service.d.ts +70 -0
- package/lib/apis/api-open-items.service.d.ts +41 -0
- package/lib/apis/api-reports.service.d.ts +120 -0
- package/lib/apis/api-security.service.d.ts +162 -0
- package/lib/apis/api-services.service.d.ts +61 -0
- package/lib/apis/api-shipments.service.d.ts +77 -0
- package/lib/apis/api-supplies.service.d.ts +93 -0
- package/lib/apis/models/api-billing-do.interfaces.d.ts +6 -0
- package/lib/apis/models/api-billing-do.types.d.ts +5 -0
- package/lib/apis/models/api-billing-mx.interfaces.d.ts +21 -0
- package/lib/apis/models/api-billing-mx.types.d.ts +13 -0
- package/lib/apis/models/api-billing-pa.interfaces.d.ts +26 -0
- package/lib/apis/models/api-billing-pa.types.d.ts +16 -0
- package/lib/apis/models/api-billing-sv.interfaces.d.ts +22 -0
- package/lib/apis/models/api-billing-sv.types.d.ts +21 -0
- package/lib/apis/models/api-billing.models.d.ts +27 -0
- package/lib/apis/models/api-cash-operations.interfaces.d.ts +40 -0
- package/lib/apis/models/api-cash-operations.types.d.ts +30 -0
- package/lib/apis/models/api-catalog.enum.d.ts +7 -0
- package/lib/apis/models/api-catalog.interfaces.d.ts +219 -0
- package/lib/apis/models/api-catalog.types.d.ts +217 -0
- package/lib/apis/models/api-companies.interfaces.d.ts +341 -0
- package/lib/apis/models/api-companies.types.d.ts +457 -0
- package/lib/apis/models/api-composition.interfaces.d.ts +272 -0
- package/lib/apis/models/api-composition.types.d.ts +9 -0
- package/lib/apis/models/api-customs.interfaces.d.ts +125 -0
- package/lib/apis/models/api-customs.types.d.ts +90 -0
- package/lib/apis/models/api-discounts.interfaces.d.ts +78 -0
- package/lib/apis/models/api-discounts.types.d.ts +89 -0
- package/lib/apis/models/api-e-tools-auto-billing.interfaces.d.ts +45 -0
- package/lib/apis/models/api-e-tools-auto-billing.types.d.ts +30 -0
- package/lib/apis/models/api-events.enum.d.ts +5 -0
- package/lib/apis/models/api-events.interfaces.d.ts +21 -0
- package/lib/apis/models/api-events.types.d.ts +14 -0
- package/lib/apis/models/api-external-pickups.types.d.ts +31 -0
- package/lib/apis/models/api-inventories.enum.d.ts +18 -0
- package/lib/apis/models/api-inventories.interfaces.d.ts +40 -0
- package/lib/apis/models/api-inventories.types.d.ts +62 -0
- package/lib/apis/models/api-invoices.interfaces.d.ts +267 -0
- package/lib/apis/models/api-invoices.types.d.ts +195 -0
- package/lib/apis/models/api-notifications.interfaces.d.ts +36 -0
- package/lib/apis/models/api-notifications.types.d.ts +34 -0
- package/lib/apis/models/api-open-items.interfaces.d.ts +32 -0
- package/lib/apis/models/api-open-items.types.d.ts +58 -0
- package/lib/apis/models/api-reports.interfaces.d.ts +342 -0
- package/lib/apis/models/api-reports.types.d.ts +59 -0
- package/lib/apis/models/api-security.interfaces.d.ts +68 -0
- package/lib/apis/models/api-security.types.d.ts +72 -0
- package/lib/apis/models/api-services.interfaces.d.ts +43 -0
- package/lib/apis/models/api-services.types.d.ts +57 -0
- package/lib/apis/models/api-shipments.enums.d.ts +6 -0
- package/lib/apis/models/api-shipments.interfaces.d.ts +41 -0
- package/lib/apis/models/api-shipments.types.d.ts +121 -0
- package/lib/apis/models/api-supplies.interfaces.d.ts +40 -0
- package/lib/apis/models/api-supplies.types.d.ts +50 -0
- package/lib/apis/models/api.models.d.ts +36 -0
- package/lib/cypher/crypto.service.d.ts +15 -0
- package/lib/helpers/files.d.ts +2 -0
- package/lib/helpers/http.d.ts +38 -0
- package/lib/interceptors/api-headers.interceptor.d.ts +12 -0
- package/lib/interceptors/api-token.interceptor.d.ts +11 -0
- package/lib/interceptors/http-caching.interceptor.d.ts +12 -0
- package/lib/ngx-services.models.d.ts +62 -0
- package/lib/ngx-services.module.d.ts +16 -0
- package/lib/websockets/web-sockets.service.d.ts +49 -0
- package/package.json +1 -1
- package/public-api.d.ts +80 -0
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { Environment } from '../ngx-services.models';
|
|
4
|
+
import { CancelPaymentReceiptIn, CountryPaymentTypeFieldIn, CountryPaymentTypeFieldOut, CountryPaymentTypeFieldsOut, CountryPaymentTypeIn, CountryPaymentTypeOut, CountryPaymentTypesOut, CustomerDocumentTypesOut, CustomersOut, CustomerTypesOut, DocumentStatusesOut, GetDocumentsOut, OperationAccountPaymentIn, OperationAccountPaymentOut, OperationCancelBillingIn, OperationCancelBillingOut, OperationDocumentIn, OperationDocumentOut, OperationDocumentRequestsOut, OperationPrintDocumentOut, OperationPrintXmlOut, OperationShipmentExternalIn, OperationShipmentExternalOut, PaymentTypeFieldAccountIn, PaymentTypeFieldAccountOut, PaymentTypeFieldAccountsOut, PaymentTypeFieldCardTypeIn, PaymentTypeFieldCardTypeOut, PaymentTypeFieldCardTypesOut, PaymentTypesOut, PrintCollectionReceiptOut, ToleranceIn, ToleranceOut, TolerancesOut } from './models/api-invoices.types';
|
|
5
|
+
import { QueryParams } from './models/api.models';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class ApiInvoicesService {
|
|
8
|
+
private environments;
|
|
9
|
+
private http;
|
|
10
|
+
constructor(environments: Environment, http: HttpClient);
|
|
11
|
+
/**
|
|
12
|
+
* Retrieves the API URL for invoices from the environments configuration.
|
|
13
|
+
*
|
|
14
|
+
* @return {string} The API URL for invoices.
|
|
15
|
+
*/
|
|
16
|
+
get url(): string;
|
|
17
|
+
/**
|
|
18
|
+
* Sends an operation document to the server and processes the response.
|
|
19
|
+
*
|
|
20
|
+
* @param {OperationDocumentIn} body - The input data for the operation document.
|
|
21
|
+
* @return {Observable<OperationDocumentOut>} An observable containing the processed operation document output.
|
|
22
|
+
*/
|
|
23
|
+
postOperationDocument(body: OperationDocumentIn): Observable<OperationDocumentOut>;
|
|
24
|
+
/**
|
|
25
|
+
* Fetches and returns the collection receipt data for a given collection ID.
|
|
26
|
+
*
|
|
27
|
+
* @param {number} id - The unique identifier of the collection for which the receipt needs to be retrieved.
|
|
28
|
+
* @return {Observable<PrintCollectionReceiptOut>} An observable containing the collection receipt data.
|
|
29
|
+
*/
|
|
30
|
+
getPrintCollectionReceipt(id: number): Observable<PrintCollectionReceiptOut>;
|
|
31
|
+
/**
|
|
32
|
+
* Handles the account payment operation by sending a POST request to the specified endpoint.
|
|
33
|
+
* Processes the response and returns the operation data.
|
|
34
|
+
*
|
|
35
|
+
* @param {OperationAccountPaymentIn} body The payload containing information for the account payment operation.
|
|
36
|
+
* @return {Observable<OperationAccountPaymentOut>} An observable emitting the processed account payment operation data.
|
|
37
|
+
*/
|
|
38
|
+
postOperationAccountPayment(body: OperationAccountPaymentIn): Observable<OperationAccountPaymentOut>;
|
|
39
|
+
/**
|
|
40
|
+
* Cancels a payment receipt based on the provided input.
|
|
41
|
+
* This method sends a POST request to cancel a document.
|
|
42
|
+
*
|
|
43
|
+
* @param body The data required to cancel the payment receipt, encapsulated in a CancelPaymentReceiptIn object.
|
|
44
|
+
* @return An Observable representing the result of the cancellation. Emits an empty object on success.
|
|
45
|
+
*/
|
|
46
|
+
postOperationCancelDocument(body: CancelPaymentReceiptIn): Observable<{}>;
|
|
47
|
+
/**
|
|
48
|
+
* Sends a POST request to cancel billing for a specific operation.
|
|
49
|
+
*
|
|
50
|
+
* @param {Object} params - The parameters for the cancellation request.
|
|
51
|
+
* @param {string} params.invoiceId - The ID of the invoice to be canceled.
|
|
52
|
+
* @param {Object} params.body - Additional data to be sent in the request body.
|
|
53
|
+
* @return {Observable<OperationCancelBillingOut>} An observable emitting the result of the cancellation operation.
|
|
54
|
+
*/
|
|
55
|
+
postOperationCancelBilling({ invoiceId, ...body }: OperationCancelBillingIn): Observable<OperationCancelBillingOut>;
|
|
56
|
+
/**
|
|
57
|
+
* Fetches a list of customer types from the server.
|
|
58
|
+
*
|
|
59
|
+
* @param {QueryParams} params - Query parameters to filter or customize the request.
|
|
60
|
+
* @return {Observable<CustomerTypesOut>} An observable emitting the customer types fetched from the server.
|
|
61
|
+
*/
|
|
62
|
+
getCustomerTypes(params: QueryParams): Observable<CustomerTypesOut>;
|
|
63
|
+
/**
|
|
64
|
+
* Retrieves document types specific to a given country.
|
|
65
|
+
*
|
|
66
|
+
* @param {QueryParams} params - The query parameters containing country-specific information.
|
|
67
|
+
* @return {Observable<CustomerDocumentTypesOut>} An observable emitting the document types available for the specified country.
|
|
68
|
+
*/
|
|
69
|
+
getCustomerDocumentTypes(params: QueryParams): Observable<CustomerDocumentTypesOut>;
|
|
70
|
+
/**
|
|
71
|
+
* Fetches customer invoice details filtered by a custom invoice type.
|
|
72
|
+
*
|
|
73
|
+
* @param {InvoiceTypeCustomParamsIn} params - An object containing the filter parameters for the custom invoice type.
|
|
74
|
+
* @return {Observable<CustomersOut>} An observable containing customer invoice details of the specified type.
|
|
75
|
+
*/
|
|
76
|
+
getCustomers(params: QueryParams): Observable<CustomersOut>;
|
|
77
|
+
/**
|
|
78
|
+
* Sends a POST request to create or update an external shipment operation.
|
|
79
|
+
*
|
|
80
|
+
* @param {OperationShipmentExternalIn} params - The input parameters for the external shipment operation.
|
|
81
|
+
* @return {Observable<OperationShipmentExternalOut>} An observable that emits the result of the external shipment operation.
|
|
82
|
+
*/
|
|
83
|
+
postOperationShipmentExternal(params: OperationShipmentExternalIn): Observable<OperationShipmentExternalOut>;
|
|
84
|
+
/**
|
|
85
|
+
* Processes an external payment operation for a shipment.
|
|
86
|
+
*
|
|
87
|
+
* @param {OperationShipmentExternalIn} params - The input parameters required for the external payment operation.
|
|
88
|
+
* @return {Observable<OperationShipmentExternalOut>} An observable that emits the result of the external payment operation for a shipment.
|
|
89
|
+
*/
|
|
90
|
+
postOperationShipmentExternalPayment(params: OperationShipmentExternalIn): Observable<OperationShipmentExternalOut>;
|
|
91
|
+
/**
|
|
92
|
+
* Retrieves and returns billing operation print details for a given document ID.
|
|
93
|
+
*
|
|
94
|
+
* @param {number} documentId - The ID of the document for which to fetch the print billing operation details.
|
|
95
|
+
* @return {Observable<OperationPrintDocumentOut>} An observable emitting the print billing operation details for the specified document.
|
|
96
|
+
*/
|
|
97
|
+
getOperationPrintDocument(documentId: number): Observable<OperationPrintDocumentOut>;
|
|
98
|
+
/**
|
|
99
|
+
* Fetches all country payment types.
|
|
100
|
+
*
|
|
101
|
+
* @param {QueryParams} params - Query parameters to filter or customize the request.
|
|
102
|
+
* @return {Observable<CountryPaymentTypesOut>} An observable emitting the country payment types fetched from the server.
|
|
103
|
+
*/
|
|
104
|
+
getCountryPaymentTypes(params: QueryParams): Observable<CountryPaymentTypesOut>;
|
|
105
|
+
/**
|
|
106
|
+
* Updates an existing country payment type.
|
|
107
|
+
*
|
|
108
|
+
* @param {number} id - The ID of the country payment type to update.
|
|
109
|
+
* @param {CountryPaymentTypeIn} body - The updated data for the country payment type.
|
|
110
|
+
* @returns {Observable<CountryPaymentTypeOut>} An observable that emits the result of the update operation.
|
|
111
|
+
*/
|
|
112
|
+
putCountryPaymentType(id: number, body: CountryPaymentTypeIn): Observable<CountryPaymentTypeOut>;
|
|
113
|
+
/**
|
|
114
|
+
* Delete an existing country payment type.
|
|
115
|
+
*
|
|
116
|
+
* @param {number} id - The unique identifier of the country payment type to be deleted.
|
|
117
|
+
* @returns {Observable<CountryPaymentTypeOut>} An observable that emits the result of the delete operation.
|
|
118
|
+
*/
|
|
119
|
+
deleteCountryPaymentType(id: number): Observable<CountryPaymentTypeOut>;
|
|
120
|
+
/**
|
|
121
|
+
* Create a new country payment type resource.
|
|
122
|
+
*
|
|
123
|
+
* @param {CountryPaymentTypeIn} body - The input parameters required for create a new country payment type.
|
|
124
|
+
* @return {Observable<CountryPaymentTypeOut>} An observable that emits the result of create operation.
|
|
125
|
+
*/
|
|
126
|
+
postCountryPaymentType(body: CountryPaymentTypeIn): Observable<CountryPaymentTypeOut>;
|
|
127
|
+
/**
|
|
128
|
+
* Retrieves and returns a country payment type for a given ID.
|
|
129
|
+
*
|
|
130
|
+
* @param {number} id - The ID of the country payment type.
|
|
131
|
+
* @return {Observable<CountryPaymentTypeOut>} An observable that emits the result of show operation.
|
|
132
|
+
*/
|
|
133
|
+
getCountryPaymentType(id: number): Observable<CountryPaymentTypeOut>;
|
|
134
|
+
/**
|
|
135
|
+
* Fetches all country payment type fields.
|
|
136
|
+
*
|
|
137
|
+
* @param {QueryParams} params - Query parameters to filter or customize the request.
|
|
138
|
+
* @return {Observable<CountryPaymentTypeFieldsOut>} An observable emitting the country payment type fields fetched from the server.
|
|
139
|
+
*/
|
|
140
|
+
getCountryPaymentTypeFields(params: QueryParams): Observable<CountryPaymentTypeFieldsOut>;
|
|
141
|
+
/**
|
|
142
|
+
* Create a new country payment type field resource.
|
|
143
|
+
*
|
|
144
|
+
* @param {CountryPaymentTypeFieldIn} body - The input parameters required for create a new country payment type field.
|
|
145
|
+
* @return {Observable<CountryPaymentTypeFieldOut>} An observable that emits the result of create operation.
|
|
146
|
+
*/
|
|
147
|
+
postCountryPaymentTypeField(body: CountryPaymentTypeFieldIn): Observable<CountryPaymentTypeFieldOut>;
|
|
148
|
+
/**
|
|
149
|
+
* Updates an existing country payment type field.
|
|
150
|
+
*
|
|
151
|
+
* @param {number} id - The ID of the country payment type field to update.
|
|
152
|
+
* @param {CountryPaymentTypeFieldIn} body - The updated data for the country payment type field.
|
|
153
|
+
* @returns {Observable<CountryPaymentTypeFieldOut>} An observable that emits the result of the update operation.
|
|
154
|
+
*/
|
|
155
|
+
putCountryPaymentTypeField(id: number, body: CountryPaymentTypeFieldIn): Observable<CountryPaymentTypeFieldOut>;
|
|
156
|
+
/**
|
|
157
|
+
* Fetches all payment types.
|
|
158
|
+
*
|
|
159
|
+
* @param {QueryParams} params - Query parameters to filter or customize the request.
|
|
160
|
+
* @return {Observable<PaymentTypesOut>} An observable emitting the payment types fetched from the server.
|
|
161
|
+
*/
|
|
162
|
+
getPaymentTypes(params: QueryParams): Observable<PaymentTypesOut>;
|
|
163
|
+
/**
|
|
164
|
+
* Fetches all payment type fields card.
|
|
165
|
+
*
|
|
166
|
+
* @param {QueryParams} params - Query parameters to filter or customize the request.
|
|
167
|
+
* @return {Observable<PaymentTypeFieldCardTypesOut>} An observable emitting the payment type fields card fetched from the server.
|
|
168
|
+
*/
|
|
169
|
+
getPaymentTypeFieldCardTypes(params: QueryParams): Observable<PaymentTypeFieldCardTypesOut>;
|
|
170
|
+
/**
|
|
171
|
+
* Create a new payment type field card resource.
|
|
172
|
+
*
|
|
173
|
+
* @param {PaymentTypeFieldCardTypeIn} body - The input parameters required for create a new payment type field card.
|
|
174
|
+
* @return {Observable<PaymentTypeFieldCardTypeOut>} An observable that emits the result of create operation.
|
|
175
|
+
*/
|
|
176
|
+
postCountryPaymentTypeFieldCardType(body: PaymentTypeFieldCardTypeIn): Observable<PaymentTypeFieldCardTypeOut>;
|
|
177
|
+
/**
|
|
178
|
+
* Updates an existing payment type field card.
|
|
179
|
+
*
|
|
180
|
+
* @param {number} id - The ID of the payment type field card to update.
|
|
181
|
+
* @param {PaymentTypeFieldCardTypeIn} body - The updated data for the payment type field card.
|
|
182
|
+
* @returns {Observable<PaymentTypeFieldCardTypeOut>} An observable that emits the result of the update operation.
|
|
183
|
+
*/
|
|
184
|
+
putCountryPaymentTypeFieldCardType(id: number, body: PaymentTypeFieldCardTypeIn): Observable<PaymentTypeFieldCardTypeOut>;
|
|
185
|
+
/**
|
|
186
|
+
* Fetches all payment type fields accounts.
|
|
187
|
+
*
|
|
188
|
+
* @param {QueryParams} params - Query parameters to filter or customize the request.
|
|
189
|
+
* @return {Observable<PaymentTypeFieldAccountsOut>} An observable emitting the payment type fields accounts fetched from the server.
|
|
190
|
+
*/
|
|
191
|
+
getPaymentTypeFieldAccounts(params: QueryParams): Observable<PaymentTypeFieldAccountsOut>;
|
|
192
|
+
/**
|
|
193
|
+
* Create a new payment type field account resource.
|
|
194
|
+
*
|
|
195
|
+
* @param {PaymentTypeFieldAccountIn} body - The input parameters required for create a new payment type field account.
|
|
196
|
+
* @return {Observable<PaymentTypeFieldAccountOut>} An observable that emits the result of create operation.
|
|
197
|
+
*/
|
|
198
|
+
postCountryPaymentTypeFieldAccount(body: PaymentTypeFieldAccountIn): Observable<PaymentTypeFieldAccountOut>;
|
|
199
|
+
/**
|
|
200
|
+
* Updates an existing payment type field account.
|
|
201
|
+
*
|
|
202
|
+
* @param {number} id - The ID of the payment type field account to update.
|
|
203
|
+
* @param {PaymentTypeFieldAccountIn} body - The updated data for the payment type field account.
|
|
204
|
+
* @returns {Observable<PaymentTypeFieldAccountOut>} An observable that emits the result of the update operation.
|
|
205
|
+
*/
|
|
206
|
+
putCountryPaymentTypeFieldAccount(id: number, body: PaymentTypeFieldAccountIn): Observable<PaymentTypeFieldAccountOut>;
|
|
207
|
+
/**
|
|
208
|
+
* Fetches tolerance data from the server based on the provided query parameters.
|
|
209
|
+
*
|
|
210
|
+
* @param {QueryParams} params - The parameters to use for querying tolerances.
|
|
211
|
+
* @return {Observable<TolerancesOut>} An observable emitting the tolerance data.
|
|
212
|
+
*/
|
|
213
|
+
getTolerances(params: QueryParams): Observable<TolerancesOut>;
|
|
214
|
+
/**
|
|
215
|
+
* Retrieves the tolerance detail for a given identifier.
|
|
216
|
+
*
|
|
217
|
+
* @param {number} id - The unique identifier for the tolerance to retrieve.
|
|
218
|
+
* @return {Observable<ToleranceOut>} An observable containing the tolerance data.
|
|
219
|
+
*/
|
|
220
|
+
getTolerance(id: number): Observable<ToleranceOut>;
|
|
221
|
+
/**
|
|
222
|
+
* Sends a request to update or create a tolerance record using the provided data.
|
|
223
|
+
*
|
|
224
|
+
* @param {ToleranceIn} body - The tolerance input object containing the data to be sent in the request.
|
|
225
|
+
* @return {Observable<ToleranceOut>} An observable that emits the updated or created tolerance output object.
|
|
226
|
+
*/
|
|
227
|
+
postTolerance(body: ToleranceIn): Observable<ToleranceOut>;
|
|
228
|
+
/**
|
|
229
|
+
* Updates the tolerance with the specified ID using the provided data.
|
|
230
|
+
*
|
|
231
|
+
* @param {number} id - The unique identifier of the tolerance to update.
|
|
232
|
+
* @param {ToleranceIn} body - The data to update the tolerance with.
|
|
233
|
+
* @return {Observable<ToleranceOut>} An observable containing the updated tolerance information.
|
|
234
|
+
*/
|
|
235
|
+
putTolerance(id: number, body: ToleranceIn): Observable<ToleranceOut>;
|
|
236
|
+
/**
|
|
237
|
+
* Deletes the tolerance entry corresponding to the given ID.
|
|
238
|
+
*
|
|
239
|
+
* @param {number} id - The unique identifier of the tolerance to be deleted.
|
|
240
|
+
* @return {Observable<{}>} An Observable that emits the result of the delete operation.
|
|
241
|
+
*/
|
|
242
|
+
deleteTolerance(id: number): Observable<{}>;
|
|
243
|
+
/**
|
|
244
|
+
* Retrieves the document requests associated with a document ID.
|
|
245
|
+
*
|
|
246
|
+
* @param id - The unique identifier for the document.
|
|
247
|
+
* @returns An observable that emits the document requests data.
|
|
248
|
+
*/
|
|
249
|
+
getOperationDocumentRequests(id: number): Observable<OperationDocumentRequestsOut>;
|
|
250
|
+
/**
|
|
251
|
+
* Retrieves a list of documents based on the provided query parameters.
|
|
252
|
+
*
|
|
253
|
+
* @param params - The query parameters to filter and paginate the documents
|
|
254
|
+
* @returns An Observable that emits the documents data when the HTTP request completes
|
|
255
|
+
*/
|
|
256
|
+
getDocuments(params: QueryParams): Observable<GetDocumentsOut>;
|
|
257
|
+
/**
|
|
258
|
+
* Fetches document status values from the API.
|
|
259
|
+
*
|
|
260
|
+
* Sends an HTTP GET request to the service's `/document-status` endpoint using the supplied query parameters
|
|
261
|
+
* and returns the decoded `data` payload from the API success envelope.
|
|
262
|
+
*
|
|
263
|
+
* @param params - Query parameters to apply to the request (e.g. filtering, pagination, search).
|
|
264
|
+
* @returns An Observable that emits a DocumentStatusesOut object containing the document status data.
|
|
265
|
+
*/
|
|
266
|
+
getDocumentStatuses(params: QueryParams): Observable<DocumentStatusesOut>;
|
|
267
|
+
/**
|
|
268
|
+
* Retrieves the XML print representation for a given operation (invoice).
|
|
269
|
+
*
|
|
270
|
+
* Sends an HTTP GET request to the backend endpoint `/operation/print/xml/{documentId}` and
|
|
271
|
+
* unwraps the `data` field from the API success response before emitting it.
|
|
272
|
+
*
|
|
273
|
+
* @param documentId - The numeric identifier of the document to fetch.
|
|
274
|
+
* @returns An Observable that emits the OperationPrintXmlOut payload on success and completes.
|
|
275
|
+
* The Observable will error if the HTTP request fails or the response does not contain the expected data.
|
|
276
|
+
*/
|
|
277
|
+
getOperationPrintXml(documentId: number): Observable<OperationPrintXmlOut>;
|
|
278
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ApiInvoicesService, never>;
|
|
279
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ApiInvoicesService>;
|
|
280
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { Environment } from '../ngx-services.models';
|
|
3
|
+
import { QueryParams } from './models/api.models';
|
|
4
|
+
import { NotificationConfigurationIn, NotificationConfigurationOut, NotificationIn, NotificationOut, NotificationsOut, NotificationsTypeOut } from './models/api-notifications.types';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class ApiNotificationsService {
|
|
8
|
+
private environments;
|
|
9
|
+
private http;
|
|
10
|
+
constructor(environments: Environment, http: HttpClient);
|
|
11
|
+
/**
|
|
12
|
+
* Retrieves the URL for the notifications API from the environment settings.
|
|
13
|
+
* If the URL is not defined, an empty string is returned.
|
|
14
|
+
*
|
|
15
|
+
* @return {string} The API Notifications URL or an empty string if not defined.
|
|
16
|
+
*/
|
|
17
|
+
get url(): string;
|
|
18
|
+
/**
|
|
19
|
+
* Retrieves notifications based on the provided query parameters.
|
|
20
|
+
*
|
|
21
|
+
* @param {QueryParams} params - The query parameters used to filter and retrieve notifications.
|
|
22
|
+
* @return {Observable<NotificationsOut>} An observable that emits the fetched notifications.
|
|
23
|
+
*/
|
|
24
|
+
getNotifications(params: QueryParams): Observable<NotificationsOut>;
|
|
25
|
+
/**
|
|
26
|
+
* Sends a notification request to the server using the provided body.
|
|
27
|
+
*
|
|
28
|
+
* @param {NotificationIn} body - The notification data to be sent in the request body.
|
|
29
|
+
* @return {Observable<NotificationOut>} An observable emitting the response containing the notification output data.
|
|
30
|
+
*/
|
|
31
|
+
postNotification(body: NotificationIn): Observable<NotificationOut>;
|
|
32
|
+
/**
|
|
33
|
+
* Sends a PUT request to update a notification with the provided ID and body.
|
|
34
|
+
*
|
|
35
|
+
* @param {number} id - The unique identifier of the notification to be updated.
|
|
36
|
+
* @param {NotificationIn} body - The data to update the notification with.
|
|
37
|
+
* @return {Observable<NotificationOut>} An observable containing the updated notification data.
|
|
38
|
+
*/
|
|
39
|
+
putNotification(id: number, body: NotificationIn): Observable<NotificationOut>;
|
|
40
|
+
/**
|
|
41
|
+
* Deletes a notification by its unique identifier.
|
|
42
|
+
*
|
|
43
|
+
* @param {number} id - The unique identifier of the notification to delete.
|
|
44
|
+
* @return {Observable<{}>} An observable that emits the response after deleting the notification.
|
|
45
|
+
*/
|
|
46
|
+
deleteNotification(id: number): Observable<{}>;
|
|
47
|
+
/**
|
|
48
|
+
* Marks the notification as finished for the specified notification ID.
|
|
49
|
+
*
|
|
50
|
+
* @param {number} id - The unique identifier of the notification to be marked as finished.
|
|
51
|
+
* @return {Observable<NotificationOut>} An Observable emitting the updated notification object.
|
|
52
|
+
*/
|
|
53
|
+
putNotificationFinish(id: number): Observable<NotificationOut>;
|
|
54
|
+
/**
|
|
55
|
+
* Sends a POST request to create or update notification configurations.
|
|
56
|
+
*
|
|
57
|
+
* @param {NotificationConfigurationIn} body - The notification configuration payload to be sent in the request.
|
|
58
|
+
* @return {Observable<NotificationConfigurationOut>} An observable emitting the response containing the created or updated notification configuration.
|
|
59
|
+
*/
|
|
60
|
+
postNotificationConfigurations(body: NotificationConfigurationIn): Observable<NotificationConfigurationOut>;
|
|
61
|
+
/**
|
|
62
|
+
* Retrieves the notification types based on the provided query parameters.
|
|
63
|
+
*
|
|
64
|
+
* @param {QueryParams} params - The query parameters for fetching the notification types.
|
|
65
|
+
* @return {Observable<NotificationsTypeOut>} An observable that emits the fetched notification types.
|
|
66
|
+
*/
|
|
67
|
+
getNotificationsType(params: QueryParams): Observable<NotificationsTypeOut>;
|
|
68
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ApiNotificationsService, never>;
|
|
69
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ApiNotificationsService>;
|
|
70
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Environment } from '../ngx-services.models';
|
|
2
|
+
import { HttpClient } from '@angular/common/http';
|
|
3
|
+
import { QueryParams } from './models/api.models';
|
|
4
|
+
import { OpenItemsOut, OtherInvoiceOut, PaymentOut } from './models/api-open-items.types';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
6
|
+
import { OtherInvoiceIn, PaymentOpenItemIn } from './models/api-open-items.interfaces';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class ApiOpenItemsService {
|
|
9
|
+
private environments;
|
|
10
|
+
private http;
|
|
11
|
+
constructor(environments: Environment, http: HttpClient);
|
|
12
|
+
/**
|
|
13
|
+
* Retrieves the API URL for open-items from the environments' configuration.
|
|
14
|
+
*
|
|
15
|
+
* @return {string} The API URL for open-items.
|
|
16
|
+
*/
|
|
17
|
+
get url(): string;
|
|
18
|
+
/**
|
|
19
|
+
* Retrieves a list of open-items based on the provided query parameters.
|
|
20
|
+
*
|
|
21
|
+
* @param {QueryParams} params - The parameters to use for querying open-items.
|
|
22
|
+
* @return {Observable<OpenItemsOut>} An observable that emits the open-item's data.
|
|
23
|
+
*/
|
|
24
|
+
getOpenItems(params: QueryParams): Observable<OpenItemsOut>;
|
|
25
|
+
/**
|
|
26
|
+
* Processes a payment for an open item.
|
|
27
|
+
*
|
|
28
|
+
* @param {PaymentOpenItemIn} body - The payment details for the open item.
|
|
29
|
+
* @return {Observable<PaymentOut>} An observable that emits the result of the payment processing.
|
|
30
|
+
*/
|
|
31
|
+
postPayment(body: PaymentOpenItemIn): Observable<PaymentOut>;
|
|
32
|
+
/**
|
|
33
|
+
* Processes a payment for other invoice.
|
|
34
|
+
*
|
|
35
|
+
* @param {OtherInvoiceIn} body - The payment details for the other invoice.
|
|
36
|
+
* @return {Observable<OtherInvoiceOut>} An observable that emits the result of the payment processing.
|
|
37
|
+
*/
|
|
38
|
+
postOtherInvoice(body: OtherInvoiceIn): Observable<OtherInvoiceOut>;
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ApiOpenItemsService, never>;
|
|
40
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ApiOpenItemsService>;
|
|
41
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { HttpClient, HttpResponse } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { Environment } from '../ngx-services.models';
|
|
4
|
+
import { CollectionPaymentsOut, ExternalShipmentsOut, FileCheckOut, InvoicesOut, PartialWithdrawalsOut, PromotionCodeDiscountsOut, SalesBookReportOut, ShipmentsLandingReportOut, ShipmentsReportOut } from './models/api-reports.types';
|
|
5
|
+
import { QueryParams } from './models/api.models';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class ApiReportsService {
|
|
8
|
+
private environments;
|
|
9
|
+
private http;
|
|
10
|
+
constructor(environments: Environment, http: HttpClient);
|
|
11
|
+
/**
|
|
12
|
+
* Retrieves the URL for the reports API from the environment configurations.
|
|
13
|
+
*
|
|
14
|
+
* @return {string} The URL of the reports API.
|
|
15
|
+
*/
|
|
16
|
+
get url(): string;
|
|
17
|
+
/**
|
|
18
|
+
* Retrieves the list of collection payments
|
|
19
|
+
*
|
|
20
|
+
* @param {QueryParams} params - The query parameters used to fetch the collection payments.
|
|
21
|
+
* @return {Observable<CollectionPaymentsOut[]>} An observable that emits an array of collection payment.
|
|
22
|
+
*/
|
|
23
|
+
getCollectionPayments(params: QueryParams): Observable<CollectionPaymentsOut>;
|
|
24
|
+
/**
|
|
25
|
+
* Fetches shipment reports based on the provided query parameters.
|
|
26
|
+
*
|
|
27
|
+
* @param {QueryParams} params - The query parameters used to filter or define the shipment reports.
|
|
28
|
+
* @return {Observable<ShipmentsReportOut>} An observable emitting the shipment report data.
|
|
29
|
+
*/
|
|
30
|
+
getShipmentsReport(params: QueryParams): Observable<ShipmentsReportOut>;
|
|
31
|
+
/**
|
|
32
|
+
* Retrieves the shipments landing report from the reports API.
|
|
33
|
+
*
|
|
34
|
+
* Sends a GET request to the `/shipments-landing-report` endpoint with the provided query parameters.
|
|
35
|
+
* The HTTP response is expected to be wrapped in an `ApiSuccess` envelope, from which the `data`
|
|
36
|
+
* payload is extracted and returned as the stream value.
|
|
37
|
+
*
|
|
38
|
+
* @param params - Query parameters used to filter or paginate the shipments landing report.
|
|
39
|
+
* @returns An observable that emits the parsed `ShipmentsLandingReportOut` data from the API response.
|
|
40
|
+
*
|
|
41
|
+
* @remarks
|
|
42
|
+
* - The underlying HTTP call uses `HttpClient.get` with `params` serialized as query string values.
|
|
43
|
+
* - The response is piped through `map` to unwrap `data` from `ApiSuccess<T>`.
|
|
44
|
+
* - Errors from the HTTP request are propagated through the observable stream.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```ts
|
|
48
|
+
* // Basic usage:
|
|
49
|
+
* service.getShipmentsLandingReport({ page: 1, perPage: 25 })
|
|
50
|
+
* .subscribe(report => {
|
|
51
|
+
* // handle ShipmentsLandingReportOut
|
|
52
|
+
* });
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
getShipmentsLandingReport(params: QueryParams): Observable<ShipmentsLandingReportOut>;
|
|
56
|
+
/**
|
|
57
|
+
* Retrieves a report of external shipments based on the provided query parameters.
|
|
58
|
+
*
|
|
59
|
+
* @param {QueryParams} params - An object representing the query parameters for filtering the external shipments report.
|
|
60
|
+
* @return {Observable<ExternalShipmentsOut>} An observable that emits the external shipments report data.
|
|
61
|
+
*/
|
|
62
|
+
getExternalShipmentsReport(params: QueryParams): Observable<ExternalShipmentsOut>;
|
|
63
|
+
/**
|
|
64
|
+
* Retrieves a report of promotion code discounts based on the provided query parameters.
|
|
65
|
+
*
|
|
66
|
+
* @param {QueryParams} params - An object representing the query parameters for filtering the promotion code discounts report.
|
|
67
|
+
* @return {Observable<PromotionCodeDiscountsOut>} An observable that emits the promotion code discounts report data.
|
|
68
|
+
*/
|
|
69
|
+
getPromotionCodeDiscounts(params: QueryParams): Observable<PromotionCodeDiscountsOut>;
|
|
70
|
+
/**
|
|
71
|
+
* Retrieves the downloadable resource associated with the given transaction ID.
|
|
72
|
+
*
|
|
73
|
+
* @param {string} transactionId - The unique identifier of the transaction whose download is requested.
|
|
74
|
+
* @return {Observable<HttpResponse<ArrayBuffer>>} An observable that emits the HTTP response containing the resource in the form of an ArrayBuffer.
|
|
75
|
+
*/
|
|
76
|
+
getDownload(transactionId: string): Observable<HttpResponse<ArrayBuffer>>;
|
|
77
|
+
/**
|
|
78
|
+
* Retrieves file check information for the specified transaction ID.
|
|
79
|
+
*
|
|
80
|
+
* @param {string} transactionId - The ID of the transaction for which the file check information is to be retrieved.
|
|
81
|
+
* @return {Observable<FileCheckOut>} An observable that emits the file check information associated with the given transaction ID.
|
|
82
|
+
*/
|
|
83
|
+
getFileCheck(transactionId: string): Observable<FileCheckOut>;
|
|
84
|
+
/**
|
|
85
|
+
* Deletes the file check associated with the provided transaction ID.
|
|
86
|
+
*
|
|
87
|
+
* @param {string} transactionId - The unique identifier of the transaction whose file check is to be deleted.
|
|
88
|
+
* @return {Observable<{}>} An observable emitting the response data after the deletion is processed.
|
|
89
|
+
*/
|
|
90
|
+
deleteFileCheck(transactionId: string): Observable<{}>;
|
|
91
|
+
/**
|
|
92
|
+
* Retrieves partial withdrawals based on the provided query parameters.
|
|
93
|
+
*
|
|
94
|
+
* @param {QueryParams} params - The parameters used to filter the list of partial withdrawals.
|
|
95
|
+
* @returns {Observable<PartialWithdrawalsOut>} An observable that emits the filtered list of partial withdrawals.
|
|
96
|
+
*/
|
|
97
|
+
getPartialWithdrawals(params: QueryParams): Observable<PartialWithdrawalsOut>;
|
|
98
|
+
/**
|
|
99
|
+
* Retrieves a list of invoices based on the provided query parameters.
|
|
100
|
+
*
|
|
101
|
+
* @param params - The query parameters used to filter the invoices.
|
|
102
|
+
* @returns An observable that emits the list of invoices.
|
|
103
|
+
*/
|
|
104
|
+
getInvoices(params: QueryParams): Observable<InvoicesOut>;
|
|
105
|
+
/**
|
|
106
|
+
* Retrieves the sales book report based on the provided query parameters.
|
|
107
|
+
*
|
|
108
|
+
* @param params - The query parameters to filter or customize the report.
|
|
109
|
+
* @returns An Observable that emits the sales book report data.
|
|
110
|
+
*
|
|
111
|
+
* @example
|
|
112
|
+
* ```typescript
|
|
113
|
+
* this.apiReportsService.getSalesBookReport({ page: 1, limit: 10 })
|
|
114
|
+
* .subscribe(report => console.log(report));
|
|
115
|
+
* ```
|
|
116
|
+
*/
|
|
117
|
+
getSalesBookReport(params: QueryParams): Observable<SalesBookReportOut>;
|
|
118
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ApiReportsService, never>;
|
|
119
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ApiReportsService>;
|
|
120
|
+
}
|