@experteam-mx/ngx-services 18.9.21 → 20.0.0-beta

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 (180) hide show
  1. package/README.md +80 -24
  2. package/fesm2022/experteam-mx-ngx-services.mjs +576 -433
  3. package/fesm2022/experteam-mx-ngx-services.mjs.map +1 -1
  4. package/index.d.ts +7667 -3
  5. package/package.json +6 -8
  6. package/esm2022/experteam-mx-ngx-services.mjs +0 -5
  7. package/esm2022/lib/apis/api-billing-do.service.mjs +0 -41
  8. package/esm2022/lib/apis/api-billing-gt.service.mjs +0 -61
  9. package/esm2022/lib/apis/api-billing-mx.service.mjs +0 -62
  10. package/esm2022/lib/apis/api-billing-pa.service.mjs +0 -105
  11. package/esm2022/lib/apis/api-billing-sv.service.mjs +0 -83
  12. package/esm2022/lib/apis/api-cash-operations.service.mjs +0 -93
  13. package/esm2022/lib/apis/api-catalogs.service.mjs +0 -616
  14. package/esm2022/lib/apis/api-companies.service.mjs +0 -1031
  15. package/esm2022/lib/apis/api-composition.service.mjs +0 -55
  16. package/esm2022/lib/apis/api-customs.service.mjs +0 -157
  17. package/esm2022/lib/apis/api-discounts.service.mjs +0 -242
  18. package/esm2022/lib/apis/api-e-tools-auto-billing.service.mjs +0 -75
  19. package/esm2022/lib/apis/api-events.service.mjs +0 -53
  20. package/esm2022/lib/apis/api-external-ops.service.mjs +0 -87
  21. package/esm2022/lib/apis/api-inventories.service.mjs +0 -208
  22. package/esm2022/lib/apis/api-invoices.service.mjs +0 -453
  23. package/esm2022/lib/apis/api-notifications.service.mjs +0 -104
  24. package/esm2022/lib/apis/api-open-items.service.mjs +0 -62
  25. package/esm2022/lib/apis/api-quote.service.mjs +0 -87
  26. package/esm2022/lib/apis/api-reports.service.mjs +0 -172
  27. package/esm2022/lib/apis/api-security.service.mjs +0 -245
  28. package/esm2022/lib/apis/api-services.service.mjs +0 -103
  29. package/esm2022/lib/apis/api-shipments.service.mjs +0 -116
  30. package/esm2022/lib/apis/api-supplies.service.mjs +0 -133
  31. package/esm2022/lib/apis/models/api-billing-do.interfaces.mjs +0 -2
  32. package/esm2022/lib/apis/models/api-billing-do.types.mjs +0 -2
  33. package/esm2022/lib/apis/models/api-billing-mx.interfaces.mjs +0 -2
  34. package/esm2022/lib/apis/models/api-billing-mx.types.mjs +0 -2
  35. package/esm2022/lib/apis/models/api-billing-pa.interfaces.mjs +0 -2
  36. package/esm2022/lib/apis/models/api-billing-pa.types.mjs +0 -2
  37. package/esm2022/lib/apis/models/api-billing-sv.interfaces.mjs +0 -2
  38. package/esm2022/lib/apis/models/api-billing-sv.types.mjs +0 -2
  39. package/esm2022/lib/apis/models/api-billing.models.mjs +0 -2
  40. package/esm2022/lib/apis/models/api-cash-operations.interfaces.mjs +0 -2
  41. package/esm2022/lib/apis/models/api-cash-operations.types.mjs +0 -2
  42. package/esm2022/lib/apis/models/api-catalog.enum.mjs +0 -9
  43. package/esm2022/lib/apis/models/api-catalog.interfaces.mjs +0 -2
  44. package/esm2022/lib/apis/models/api-catalog.types.mjs +0 -2
  45. package/esm2022/lib/apis/models/api-companies.interfaces.mjs +0 -2
  46. package/esm2022/lib/apis/models/api-companies.types.mjs +0 -2
  47. package/esm2022/lib/apis/models/api-composition.interfaces.mjs +0 -2
  48. package/esm2022/lib/apis/models/api-composition.types.mjs +0 -2
  49. package/esm2022/lib/apis/models/api-customs.interfaces.mjs +0 -2
  50. package/esm2022/lib/apis/models/api-customs.types.mjs +0 -2
  51. package/esm2022/lib/apis/models/api-discounts.interfaces.mjs +0 -2
  52. package/esm2022/lib/apis/models/api-discounts.types.mjs +0 -2
  53. package/esm2022/lib/apis/models/api-e-tools-auto-billing.interfaces.mjs +0 -2
  54. package/esm2022/lib/apis/models/api-e-tools-auto-billing.types.mjs +0 -2
  55. package/esm2022/lib/apis/models/api-events.enum.mjs +0 -7
  56. package/esm2022/lib/apis/models/api-events.interfaces.mjs +0 -2
  57. package/esm2022/lib/apis/models/api-events.types.mjs +0 -2
  58. package/esm2022/lib/apis/models/api-external-ops.interfaces.mjs +0 -2
  59. package/esm2022/lib/apis/models/api-external-ops.types.mjs +0 -2
  60. package/esm2022/lib/apis/models/api-inventories.enum.mjs +0 -22
  61. package/esm2022/lib/apis/models/api-inventories.interfaces.mjs +0 -2
  62. package/esm2022/lib/apis/models/api-inventories.types.mjs +0 -2
  63. package/esm2022/lib/apis/models/api-invoices.interfaces.mjs +0 -2
  64. package/esm2022/lib/apis/models/api-invoices.types.mjs +0 -2
  65. package/esm2022/lib/apis/models/api-notifications.interfaces.mjs +0 -2
  66. package/esm2022/lib/apis/models/api-notifications.types.mjs +0 -2
  67. package/esm2022/lib/apis/models/api-open-items.interfaces.mjs +0 -2
  68. package/esm2022/lib/apis/models/api-open-items.types.mjs +0 -2
  69. package/esm2022/lib/apis/models/api-quote.interfaces.mjs +0 -2
  70. package/esm2022/lib/apis/models/api-quote.types.mjs +0 -2
  71. package/esm2022/lib/apis/models/api-reports.interfaces.mjs +0 -2
  72. package/esm2022/lib/apis/models/api-reports.types.mjs +0 -2
  73. package/esm2022/lib/apis/models/api-security.interfaces.mjs +0 -2
  74. package/esm2022/lib/apis/models/api-security.types.mjs +0 -2
  75. package/esm2022/lib/apis/models/api-services.interfaces.mjs +0 -2
  76. package/esm2022/lib/apis/models/api-services.types.mjs +0 -2
  77. package/esm2022/lib/apis/models/api-shipments.enums.mjs +0 -8
  78. package/esm2022/lib/apis/models/api-shipments.interfaces.mjs +0 -2
  79. package/esm2022/lib/apis/models/api-shipments.types.mjs +0 -2
  80. package/esm2022/lib/apis/models/api-supplies.interfaces.mjs +0 -2
  81. package/esm2022/lib/apis/models/api-supplies.types.mjs +0 -2
  82. package/esm2022/lib/apis/models/api.models.mjs +0 -2
  83. package/esm2022/lib/cypher/crypto.service.mjs +0 -93
  84. package/esm2022/lib/helpers/files.mjs +0 -9
  85. package/esm2022/lib/helpers/http.mjs +0 -66
  86. package/esm2022/lib/interceptors/api-headers.interceptor.mjs +0 -24
  87. package/esm2022/lib/interceptors/api-key.interceptor.mjs +0 -48
  88. package/esm2022/lib/interceptors/api-token.interceptor.mjs +0 -28
  89. package/esm2022/lib/interceptors/http-caching.interceptor.mjs +0 -37
  90. package/esm2022/lib/ngx-services.models.mjs +0 -11
  91. package/esm2022/lib/ngx-services.module.mjs +0 -33
  92. package/esm2022/lib/websockets/web-sockets.service.mjs +0 -115
  93. package/esm2022/public-api.mjs +0 -94
  94. package/lib/apis/api-billing-do.service.d.ts +0 -24
  95. package/lib/apis/api-billing-gt.service.d.ts +0 -38
  96. package/lib/apis/api-billing-mx.service.d.ts +0 -39
  97. package/lib/apis/api-billing-pa.service.d.ts +0 -68
  98. package/lib/apis/api-billing-sv.service.d.ts +0 -55
  99. package/lib/apis/api-cash-operations.service.d.ts +0 -62
  100. package/lib/apis/api-catalogs.service.d.ts +0 -451
  101. package/lib/apis/api-companies.service.d.ts +0 -714
  102. package/lib/apis/api-composition.service.d.ts +0 -35
  103. package/lib/apis/api-customs.service.d.ts +0 -110
  104. package/lib/apis/api-discounts.service.d.ts +0 -166
  105. package/lib/apis/api-e-tools-auto-billing.service.d.ts +0 -49
  106. package/lib/apis/api-events.service.d.ts +0 -33
  107. package/lib/apis/api-external-ops.service.d.ts +0 -54
  108. package/lib/apis/api-inventories.service.d.ts +0 -145
  109. package/lib/apis/api-invoices.service.d.ts +0 -317
  110. package/lib/apis/api-notifications.service.d.ts +0 -70
  111. package/lib/apis/api-open-items.service.d.ts +0 -41
  112. package/lib/apis/api-quote.service.d.ts +0 -65
  113. package/lib/apis/api-reports.service.d.ts +0 -120
  114. package/lib/apis/api-security.service.d.ts +0 -162
  115. package/lib/apis/api-services.service.d.ts +0 -67
  116. package/lib/apis/api-shipments.service.d.ts +0 -77
  117. package/lib/apis/api-supplies.service.d.ts +0 -93
  118. package/lib/apis/models/api-billing-do.interfaces.d.ts +0 -6
  119. package/lib/apis/models/api-billing-do.types.d.ts +0 -5
  120. package/lib/apis/models/api-billing-mx.interfaces.d.ts +0 -21
  121. package/lib/apis/models/api-billing-mx.types.d.ts +0 -13
  122. package/lib/apis/models/api-billing-pa.interfaces.d.ts +0 -26
  123. package/lib/apis/models/api-billing-pa.types.d.ts +0 -16
  124. package/lib/apis/models/api-billing-sv.interfaces.d.ts +0 -22
  125. package/lib/apis/models/api-billing-sv.types.d.ts +0 -21
  126. package/lib/apis/models/api-billing.models.d.ts +0 -27
  127. package/lib/apis/models/api-cash-operations.interfaces.d.ts +0 -40
  128. package/lib/apis/models/api-cash-operations.types.d.ts +0 -30
  129. package/lib/apis/models/api-catalog.enum.d.ts +0 -7
  130. package/lib/apis/models/api-catalog.interfaces.d.ts +0 -211
  131. package/lib/apis/models/api-catalog.types.d.ts +0 -213
  132. package/lib/apis/models/api-companies.interfaces.d.ts +0 -346
  133. package/lib/apis/models/api-companies.types.d.ts +0 -461
  134. package/lib/apis/models/api-composition.interfaces.d.ts +0 -272
  135. package/lib/apis/models/api-composition.types.d.ts +0 -9
  136. package/lib/apis/models/api-customs.interfaces.d.ts +0 -125
  137. package/lib/apis/models/api-customs.types.d.ts +0 -90
  138. package/lib/apis/models/api-discounts.interfaces.d.ts +0 -78
  139. package/lib/apis/models/api-discounts.types.d.ts +0 -89
  140. package/lib/apis/models/api-e-tools-auto-billing.interfaces.d.ts +0 -45
  141. package/lib/apis/models/api-e-tools-auto-billing.types.d.ts +0 -30
  142. package/lib/apis/models/api-events.enum.d.ts +0 -5
  143. package/lib/apis/models/api-events.interfaces.d.ts +0 -21
  144. package/lib/apis/models/api-events.types.d.ts +0 -14
  145. package/lib/apis/models/api-external-ops.interfaces.d.ts +0 -21
  146. package/lib/apis/models/api-external-ops.types.d.ts +0 -35
  147. package/lib/apis/models/api-inventories.enum.d.ts +0 -18
  148. package/lib/apis/models/api-inventories.interfaces.d.ts +0 -40
  149. package/lib/apis/models/api-inventories.types.d.ts +0 -62
  150. package/lib/apis/models/api-invoices.interfaces.d.ts +0 -277
  151. package/lib/apis/models/api-invoices.types.d.ts +0 -236
  152. package/lib/apis/models/api-notifications.interfaces.d.ts +0 -36
  153. package/lib/apis/models/api-notifications.types.d.ts +0 -34
  154. package/lib/apis/models/api-open-items.interfaces.d.ts +0 -32
  155. package/lib/apis/models/api-open-items.types.d.ts +0 -58
  156. package/lib/apis/models/api-quote.interfaces.d.ts +0 -13
  157. package/lib/apis/models/api-quote.types.d.ts +0 -17
  158. package/lib/apis/models/api-reports.interfaces.d.ts +0 -353
  159. package/lib/apis/models/api-reports.types.d.ts +0 -59
  160. package/lib/apis/models/api-security.interfaces.d.ts +0 -68
  161. package/lib/apis/models/api-security.types.d.ts +0 -72
  162. package/lib/apis/models/api-services.interfaces.d.ts +0 -49
  163. package/lib/apis/models/api-services.types.d.ts +0 -67
  164. package/lib/apis/models/api-shipments.enums.d.ts +0 -6
  165. package/lib/apis/models/api-shipments.interfaces.d.ts +0 -41
  166. package/lib/apis/models/api-shipments.types.d.ts +0 -121
  167. package/lib/apis/models/api-supplies.interfaces.d.ts +0 -40
  168. package/lib/apis/models/api-supplies.types.d.ts +0 -50
  169. package/lib/apis/models/api.models.d.ts +0 -36
  170. package/lib/cypher/crypto.service.d.ts +0 -15
  171. package/lib/helpers/files.d.ts +0 -2
  172. package/lib/helpers/http.d.ts +0 -38
  173. package/lib/interceptors/api-headers.interceptor.d.ts +0 -12
  174. package/lib/interceptors/api-key.interceptor.d.ts +0 -35
  175. package/lib/interceptors/api-token.interceptor.d.ts +0 -11
  176. package/lib/interceptors/http-caching.interceptor.d.ts +0 -12
  177. package/lib/ngx-services.models.d.ts +0 -63
  178. package/lib/ngx-services.module.d.ts +0 -16
  179. package/lib/websockets/web-sockets.service.d.ts +0 -49
  180. package/public-api.d.ts +0 -84
@@ -1,317 +0,0 @@
1
- import { HttpClient } from '@angular/common/http';
2
- import { Observable } from 'rxjs';
3
- import { Environment } from '../ngx-services.models';
4
- import { CancelPaymentReceiptIn, CountryDocumentTypesOut, CountryPaymentTypeFieldIn, CountryPaymentTypeFieldOut, CountryPaymentTypeFieldsOut, CountryPaymentTypeIn, CountryPaymentTypeOut, CountryPaymentTypesOut, CustomerDocumentTypesOut, CustomersOut, CustomerTypesOut, DocumentStatusesOut, DocumentTypeRangeIn, DocumentTypeRangeOut, DocumentTypeRangesOut, GetDocumentsOut, OperationAccountPaymentIn, OperationAccountPaymentOut, OperationCancelBillingIn, OperationCancelBillingOut, OperationDocumentIn, OperationDocumentOut, OperationDocumentRequestsOut, OperationPrintDocumentOut, OperationPrintXmlOut, OperationShipmentExternalIn, OperationShipmentExternalOut, PaymentTypeFieldAccountIn, PaymentTypeFieldAccountOut, PaymentTypeFieldAccountsOut, PaymentTypeFieldCardTypeIn, PaymentTypeFieldCardTypeOut, PaymentTypeFieldCardTypesOut, PaymentTypesOut, PrintCollectionReceiptOut, ProvidersOut, 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
- /**
279
- * Retrieves a list of providers based on the provided query parameters.
280
- * @param params - Query parameters to filter or paginate the providers list
281
- * @returns An Observable that emits the providers data
282
- */
283
- getProviders(params: QueryParams): Observable<ProvidersOut>;
284
- /**
285
- * Retrieves the document type ranges based on the provided query parameters.
286
- * @param params - The query parameters to filter document type ranges
287
- * @returns An Observable that emits the document type ranges data
288
- */
289
- getDocumentsTypesRanges(params: QueryParams): Observable<DocumentTypeRangesOut>;
290
- /**
291
- * Creates a new document type range.
292
- * @param body - The document type range data to create
293
- * @returns An observable that emits the created document type range
294
- */
295
- postDocumentTypeRange(body: DocumentTypeRangeIn): Observable<DocumentTypeRangeOut>;
296
- /**
297
- * Deletes a document type range by its identifier.
298
- * @param id - The unique identifier of the document type range to delete
299
- * @returns An Observable that emits the deleted DocumentTypeRangeOut object
300
- */
301
- deleteDocumentsTypesRange(id: number): Observable<{}>;
302
- /**
303
- * Updates a document type range for a given ID.
304
- * @param id - The unique identifier of the document type range to update
305
- * @param data - The document type range data to update
306
- * @returns An Observable that emits the updated DocumentTypeRangeOut object
307
- */
308
- putDocumentsTypeRange(id: number, data: DocumentTypeRangeIn): Observable<DocumentTypeRangeOut>;
309
- /**
310
- * Retrieves the list of document types available for a specific country.
311
- * @param params - Query parameters to filter or customize the country document types request
312
- * @returns Observable containing the country document types data
313
- */
314
- getCountryDocumentsTypes(params: QueryParams): Observable<CountryDocumentTypesOut>;
315
- static ɵfac: i0.ɵɵFactoryDeclaration<ApiInvoicesService, never>;
316
- static ɵprov: i0.ɵɵInjectableDeclaration<ApiInvoicesService>;
317
- }
@@ -1,70 +0,0 @@
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
- }
@@ -1,41 +0,0 @@
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
- }
@@ -1,65 +0,0 @@
1
- import { Environment } from '../ngx-services.models';
2
- import { HttpClient } from '@angular/common/http';
3
- import { QueryParams } from './models/api.models';
4
- import { Observable } from 'rxjs';
5
- import { QuoteEventIn, QuoteEventOut, QuoteEventsOut, QuoteEventTypesOut } from './models/api-quote.types';
6
- import * as i0 from "@angular/core";
7
- /**
8
- * Service to manage quote-related events.
9
- *
10
- * This service provides methods to retrieve, create, and get event types
11
- * related to quote processes.
12
- */
13
- export declare class ApiQuoteService {
14
- private environments;
15
- private http;
16
- constructor(environments: Environment, http: HttpClient);
17
- /**
18
- * Base URL for the Quotes API.
19
- */
20
- get url(): string;
21
- /**
22
- * Retrieves all registered events for a specific quote.
23
- *
24
- * @param id - Quote identifier.
25
- * @param params - Optional query parameters such as pagination or filtering.
26
- * @returns Observable containing the list of quote events.
27
- *
28
- * @example
29
- * ```ts
30
- * this.apiQuoteService.getQuoteEvents(10, { page: 1 })
31
- * .subscribe((events) => console.log(events))
32
- * ```
33
- */
34
- getQuoteEvents(id: number, params: QueryParams): Observable<QuoteEventsOut>;
35
- /**
36
- * Registers a new event related to a specific quote.
37
- *
38
- * @param id - Quote identifier.
39
- * @param body - Event payload to be created.
40
- * @returns Observable containing the newly created event.
41
- *
42
- * @example
43
- * ```ts
44
- * const event: QuoteEventIn = { code: 'WON', note: 'Client approved' }
45
- * this.apiQuoteService.postQuoteEvents(10, event)
46
- * .subscribe((response) => console.log(response))
47
- * ```
48
- */
49
- postQuoteEvents(id: number, body: QuoteEventIn): Observable<QuoteEventOut>;
50
- /**
51
- * Retrieves the available quote event types.
52
- *
53
- * @param params - Optional query parameters such as pagination or filtering.
54
- * @returns Observable containing the list of event types.
55
- *
56
- * @example
57
- * ```ts
58
- * this.apiQuoteService.getQuoteEventTypes({ page: 1 })
59
- * .subscribe((types) => console.log(types))
60
- * ```
61
- */
62
- getQuoteEventTypes(params: QueryParams): Observable<QuoteEventTypesOut>;
63
- static ɵfac: i0.ɵɵFactoryDeclaration<ApiQuoteService, never>;
64
- static ɵprov: i0.ɵɵInjectableDeclaration<ApiQuoteService>;
65
- }
@@ -1,120 +0,0 @@
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
- }