@experteam-mx/ngx-services 18.9.13 → 20.0.0-beta.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.
Files changed (170) hide show
  1. package/README.md +24 -24
  2. package/fesm2022/experteam-mx-ngx-services.mjs +80 -80
  3. package/fesm2022/experteam-mx-ngx-services.mjs.map +1 -1
  4. package/index.d.ts +6703 -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 -593
  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 -243
  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-pickups.service.mjs +0 -74
  21. package/esm2022/lib/apis/api-inventories.service.mjs +0 -194
  22. package/esm2022/lib/apis/api-invoices.service.mjs +0 -398
  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-reports.service.mjs +0 -128
  26. package/esm2022/lib/apis/api-security.service.mjs +0 -245
  27. package/esm2022/lib/apis/api-services.service.mjs +0 -103
  28. package/esm2022/lib/apis/api-shipments.service.mjs +0 -87
  29. package/esm2022/lib/apis/api-supplies.service.mjs +0 -133
  30. package/esm2022/lib/apis/models/api-billing-do.interfaces.mjs +0 -2
  31. package/esm2022/lib/apis/models/api-billing-do.types.mjs +0 -2
  32. package/esm2022/lib/apis/models/api-billing-mx.interfaces.mjs +0 -2
  33. package/esm2022/lib/apis/models/api-billing-mx.types.mjs +0 -2
  34. package/esm2022/lib/apis/models/api-billing-pa.interfaces.mjs +0 -2
  35. package/esm2022/lib/apis/models/api-billing-pa.types.mjs +0 -2
  36. package/esm2022/lib/apis/models/api-billing-sv.interfaces.mjs +0 -2
  37. package/esm2022/lib/apis/models/api-billing-sv.types.mjs +0 -2
  38. package/esm2022/lib/apis/models/api-billing.models.mjs +0 -2
  39. package/esm2022/lib/apis/models/api-cash-operations.interfaces.mjs +0 -2
  40. package/esm2022/lib/apis/models/api-cash-operations.types.mjs +0 -2
  41. package/esm2022/lib/apis/models/api-catalog.enum.mjs +0 -9
  42. package/esm2022/lib/apis/models/api-catalog.interfaces.mjs +0 -2
  43. package/esm2022/lib/apis/models/api-catalog.types.mjs +0 -2
  44. package/esm2022/lib/apis/models/api-companies.interfaces.mjs +0 -2
  45. package/esm2022/lib/apis/models/api-companies.types.mjs +0 -2
  46. package/esm2022/lib/apis/models/api-composition.interfaces.mjs +0 -2
  47. package/esm2022/lib/apis/models/api-composition.types.mjs +0 -2
  48. package/esm2022/lib/apis/models/api-customs.interfaces.mjs +0 -2
  49. package/esm2022/lib/apis/models/api-customs.types.mjs +0 -2
  50. package/esm2022/lib/apis/models/api-discounts.interfaces.mjs +0 -2
  51. package/esm2022/lib/apis/models/api-discounts.types.mjs +0 -2
  52. package/esm2022/lib/apis/models/api-e-tools-auto-billing.interfaces.mjs +0 -2
  53. package/esm2022/lib/apis/models/api-e-tools-auto-billing.types.mjs +0 -2
  54. package/esm2022/lib/apis/models/api-events.enum.mjs +0 -7
  55. package/esm2022/lib/apis/models/api-events.interfaces.mjs +0 -2
  56. package/esm2022/lib/apis/models/api-events.types.mjs +0 -2
  57. package/esm2022/lib/apis/models/api-external-pickups.types.mjs +0 -2
  58. package/esm2022/lib/apis/models/api-inventories.enum.mjs +0 -22
  59. package/esm2022/lib/apis/models/api-inventories.interfaces.mjs +0 -2
  60. package/esm2022/lib/apis/models/api-inventories.types.mjs +0 -2
  61. package/esm2022/lib/apis/models/api-invoices.interfaces.mjs +0 -2
  62. package/esm2022/lib/apis/models/api-invoices.types.mjs +0 -2
  63. package/esm2022/lib/apis/models/api-notifications.interfaces.mjs +0 -2
  64. package/esm2022/lib/apis/models/api-notifications.types.mjs +0 -2
  65. package/esm2022/lib/apis/models/api-open-items.interfaces.mjs +0 -2
  66. package/esm2022/lib/apis/models/api-open-items.types.mjs +0 -2
  67. package/esm2022/lib/apis/models/api-reports.interfaces.mjs +0 -2
  68. package/esm2022/lib/apis/models/api-reports.types.mjs +0 -2
  69. package/esm2022/lib/apis/models/api-security.interfaces.mjs +0 -2
  70. package/esm2022/lib/apis/models/api-security.types.mjs +0 -2
  71. package/esm2022/lib/apis/models/api-services.interfaces.mjs +0 -2
  72. package/esm2022/lib/apis/models/api-services.types.mjs +0 -2
  73. package/esm2022/lib/apis/models/api-shipments.enums.mjs +0 -8
  74. package/esm2022/lib/apis/models/api-shipments.interfaces.mjs +0 -2
  75. package/esm2022/lib/apis/models/api-shipments.types.mjs +0 -2
  76. package/esm2022/lib/apis/models/api-supplies.interfaces.mjs +0 -2
  77. package/esm2022/lib/apis/models/api-supplies.types.mjs +0 -2
  78. package/esm2022/lib/apis/models/api.models.mjs +0 -2
  79. package/esm2022/lib/cypher/crypto.service.mjs +0 -93
  80. package/esm2022/lib/helpers/files.mjs +0 -9
  81. package/esm2022/lib/helpers/http.mjs +0 -66
  82. package/esm2022/lib/interceptors/api-headers.interceptor.mjs +0 -24
  83. package/esm2022/lib/interceptors/api-token.interceptor.mjs +0 -28
  84. package/esm2022/lib/interceptors/http-caching.interceptor.mjs +0 -37
  85. package/esm2022/lib/ngx-services.models.mjs +0 -11
  86. package/esm2022/lib/ngx-services.module.mjs +0 -33
  87. package/esm2022/lib/websockets/web-sockets.service.mjs +0 -115
  88. package/esm2022/public-api.mjs +0 -89
  89. package/lib/apis/api-billing-do.service.d.ts +0 -24
  90. package/lib/apis/api-billing-gt.service.d.ts +0 -38
  91. package/lib/apis/api-billing-mx.service.d.ts +0 -39
  92. package/lib/apis/api-billing-pa.service.d.ts +0 -68
  93. package/lib/apis/api-billing-sv.service.d.ts +0 -55
  94. package/lib/apis/api-cash-operations.service.d.ts +0 -62
  95. package/lib/apis/api-catalogs.service.d.ts +0 -433
  96. package/lib/apis/api-companies.service.d.ts +0 -714
  97. package/lib/apis/api-composition.service.d.ts +0 -35
  98. package/lib/apis/api-customs.service.d.ts +0 -110
  99. package/lib/apis/api-discounts.service.d.ts +0 -167
  100. package/lib/apis/api-e-tools-auto-billing.service.d.ts +0 -49
  101. package/lib/apis/api-events.service.d.ts +0 -33
  102. package/lib/apis/api-external-pickups.service.d.ts +0 -46
  103. package/lib/apis/api-inventories.service.d.ts +0 -134
  104. package/lib/apis/api-invoices.service.d.ts +0 -280
  105. package/lib/apis/api-notifications.service.d.ts +0 -70
  106. package/lib/apis/api-open-items.service.d.ts +0 -41
  107. package/lib/apis/api-reports.service.d.ts +0 -82
  108. package/lib/apis/api-security.service.d.ts +0 -162
  109. package/lib/apis/api-services.service.d.ts +0 -67
  110. package/lib/apis/api-shipments.service.d.ts +0 -58
  111. package/lib/apis/api-supplies.service.d.ts +0 -93
  112. package/lib/apis/models/api-billing-do.interfaces.d.ts +0 -6
  113. package/lib/apis/models/api-billing-do.types.d.ts +0 -5
  114. package/lib/apis/models/api-billing-mx.interfaces.d.ts +0 -21
  115. package/lib/apis/models/api-billing-mx.types.d.ts +0 -13
  116. package/lib/apis/models/api-billing-pa.interfaces.d.ts +0 -26
  117. package/lib/apis/models/api-billing-pa.types.d.ts +0 -16
  118. package/lib/apis/models/api-billing-sv.interfaces.d.ts +0 -22
  119. package/lib/apis/models/api-billing-sv.types.d.ts +0 -21
  120. package/lib/apis/models/api-billing.models.d.ts +0 -27
  121. package/lib/apis/models/api-cash-operations.interfaces.d.ts +0 -40
  122. package/lib/apis/models/api-cash-operations.types.d.ts +0 -30
  123. package/lib/apis/models/api-catalog.enum.d.ts +0 -7
  124. package/lib/apis/models/api-catalog.interfaces.d.ts +0 -204
  125. package/lib/apis/models/api-catalog.types.d.ts +0 -203
  126. package/lib/apis/models/api-companies.interfaces.d.ts +0 -341
  127. package/lib/apis/models/api-companies.types.d.ts +0 -457
  128. package/lib/apis/models/api-composition.interfaces.d.ts +0 -272
  129. package/lib/apis/models/api-composition.types.d.ts +0 -9
  130. package/lib/apis/models/api-customs.interfaces.d.ts +0 -125
  131. package/lib/apis/models/api-customs.types.d.ts +0 -90
  132. package/lib/apis/models/api-discounts.interfaces.d.ts +0 -78
  133. package/lib/apis/models/api-discounts.types.d.ts +0 -89
  134. package/lib/apis/models/api-e-tools-auto-billing.interfaces.d.ts +0 -45
  135. package/lib/apis/models/api-e-tools-auto-billing.types.d.ts +0 -30
  136. package/lib/apis/models/api-events.enum.d.ts +0 -5
  137. package/lib/apis/models/api-events.interfaces.d.ts +0 -21
  138. package/lib/apis/models/api-events.types.d.ts +0 -14
  139. package/lib/apis/models/api-external-pickups.types.d.ts +0 -31
  140. package/lib/apis/models/api-inventories.enum.d.ts +0 -18
  141. package/lib/apis/models/api-inventories.interfaces.d.ts +0 -40
  142. package/lib/apis/models/api-inventories.types.d.ts +0 -56
  143. package/lib/apis/models/api-invoices.interfaces.d.ts +0 -267
  144. package/lib/apis/models/api-invoices.types.d.ts +0 -195
  145. package/lib/apis/models/api-notifications.interfaces.d.ts +0 -36
  146. package/lib/apis/models/api-notifications.types.d.ts +0 -34
  147. package/lib/apis/models/api-open-items.interfaces.d.ts +0 -32
  148. package/lib/apis/models/api-open-items.types.d.ts +0 -58
  149. package/lib/apis/models/api-reports.interfaces.d.ts +0 -233
  150. package/lib/apis/models/api-reports.types.d.ts +0 -50
  151. package/lib/apis/models/api-security.interfaces.d.ts +0 -68
  152. package/lib/apis/models/api-security.types.d.ts +0 -72
  153. package/lib/apis/models/api-services.interfaces.d.ts +0 -49
  154. package/lib/apis/models/api-services.types.d.ts +0 -67
  155. package/lib/apis/models/api-shipments.enums.d.ts +0 -6
  156. package/lib/apis/models/api-shipments.interfaces.d.ts +0 -12
  157. package/lib/apis/models/api-shipments.types.d.ts +0 -93
  158. package/lib/apis/models/api-supplies.interfaces.d.ts +0 -40
  159. package/lib/apis/models/api-supplies.types.d.ts +0 -50
  160. package/lib/apis/models/api.models.d.ts +0 -36
  161. package/lib/cypher/crypto.service.d.ts +0 -15
  162. package/lib/helpers/files.d.ts +0 -2
  163. package/lib/helpers/http.d.ts +0 -38
  164. package/lib/interceptors/api-headers.interceptor.d.ts +0 -12
  165. package/lib/interceptors/api-token.interceptor.d.ts +0 -11
  166. package/lib/interceptors/http-caching.interceptor.d.ts +0 -12
  167. package/lib/ngx-services.models.d.ts +0 -62
  168. package/lib/ngx-services.module.d.ts +0 -16
  169. package/lib/websockets/web-sockets.service.d.ts +0 -49
  170. package/public-api.d.ts +0 -79
@@ -1,280 +0,0 @@
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
- }
@@ -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,82 +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, 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 a report of external shipments based on the provided query parameters.
33
- *
34
- * @param {QueryParams} params - An object representing the query parameters for filtering the external shipments report.
35
- * @return {Observable<ExternalShipmentsOut>} An observable that emits the external shipments report data.
36
- */
37
- getExternalShipmentsReport(params: QueryParams): Observable<ExternalShipmentsOut>;
38
- /**
39
- * Retrieves a report of promotion code discounts based on the provided query parameters.
40
- *
41
- * @param {QueryParams} params - An object representing the query parameters for filtering the promotion code discounts report.
42
- * @return {Observable<PromotionCodeDiscountsOut>} An observable that emits the promotion code discounts report data.
43
- */
44
- getPromotionCodeDiscounts(params: QueryParams): Observable<PromotionCodeDiscountsOut>;
45
- /**
46
- * Retrieves the downloadable resource associated with the given transaction ID.
47
- *
48
- * @param {string} transactionId - The unique identifier of the transaction whose download is requested.
49
- * @return {Observable<HttpResponse<ArrayBuffer>>} An observable that emits the HTTP response containing the resource in the form of an ArrayBuffer.
50
- */
51
- getDownload(transactionId: string): Observable<HttpResponse<ArrayBuffer>>;
52
- /**
53
- * Retrieves file check information for the specified transaction ID.
54
- *
55
- * @param {string} transactionId - The ID of the transaction for which the file check information is to be retrieved.
56
- * @return {Observable<FileCheckOut>} An observable that emits the file check information associated with the given transaction ID.
57
- */
58
- getFileCheck(transactionId: string): Observable<FileCheckOut>;
59
- /**
60
- * Deletes the file check associated with the provided transaction ID.
61
- *
62
- * @param {string} transactionId - The unique identifier of the transaction whose file check is to be deleted.
63
- * @return {Observable<{}>} An observable emitting the response data after the deletion is processed.
64
- */
65
- deleteFileCheck(transactionId: string): Observable<{}>;
66
- /**
67
- * Retrieves partial withdrawals based on the provided query parameters.
68
- *
69
- * @param {QueryParams} params - The parameters used to filter the list of partial withdrawals.
70
- * @returns {Observable<PartialWithdrawalsOut>} An observable that emits the filtered list of partial withdrawals.
71
- */
72
- getPartialWithdrawals(params: QueryParams): Observable<PartialWithdrawalsOut>;
73
- /**
74
- * Retrieves a list of invoices based on the provided query parameters.
75
- *
76
- * @param params - The query parameters used to filter the invoices.
77
- * @returns An observable that emits the list of invoices.
78
- */
79
- getInvoices(params: QueryParams): Observable<InvoicesOut>;
80
- static ɵfac: i0.ɵɵFactoryDeclaration<ApiReportsService, never>;
81
- static ɵprov: i0.ɵɵInjectableDeclaration<ApiReportsService>;
82
- }
@@ -1,162 +0,0 @@
1
- import { QueryParams } from './models/api.models';
2
- import { AuthLoginIn, AuthLoginOut, AuthMeOut, AuthUserLoginIn, ChangeLanguageIn, GetUserOut, GetUsersOut, ModulesOut, PutUsersIn, PutUsersOut, RoleIn, RoleOut, RolesOut, RoleTypesOut, SessionIn, SessionOut } from './models/api-security.types';
3
- import { HttpClient } from '@angular/common/http';
4
- import { Environment } from '../ngx-services.models';
5
- import { Observable } from 'rxjs';
6
- import { CookieService } from 'ngx-cookie-service';
7
- import * as i0 from "@angular/core";
8
- export declare class ApiSecurityService {
9
- private environments;
10
- private cookie;
11
- private http;
12
- constructor(environments: Environment, cookie: CookieService, http: HttpClient);
13
- /**
14
- * Retrieves the API security URL from the environments configuration.
15
- *
16
- * @return {string} The API security URL.
17
- */
18
- get url(): string;
19
- /**
20
- * Handles the login authentication request by sending the login data to the authentication endpoint.
21
- *
22
- * @param {AuthLoginIn} body The payload containing login credentials.
23
- * @return {Observable<AuthLoginOut>} An observable emitting the authentication response data.
24
- */
25
- postAuthLogin(body: AuthLoginIn): Observable<AuthLoginOut>;
26
- /**
27
- * Handles the user login process by sending user credentials to the authentication endpoint.
28
- *
29
- * @param {AuthUserLoginIn} body - The request payload containing user login details such as username and password.
30
- * @return {Observable<AuthLoginOut>} An observable that emits the authenticated user's login data upon successful login.
31
- */
32
- postAuthUserLogin(body: AuthUserLoginIn): Observable<AuthLoginOut>;
33
- /**
34
- * Logs out the current user by making a POST request to the logout endpoint.
35
- *
36
- * This method deletes all cookies after a successful logout.
37
- *
38
- * @return {Observable<{}>} An observable that emits the server's response to the logout request.
39
- */
40
- postAuthLogout(): Observable<{}>;
41
- /**
42
- * Creates a new session for a specified model.
43
- *
44
- * @param {Object} params - The parameters for creating the session.
45
- * @param {string} params.modelType - The type of the model.
46
- * @param {string} params.modelId - The ID of the model.
47
- * @param {string} [params.token] - Optional authorization token.
48
- *
49
- * @return {Observable<SessionOut>} An observable containing the created session details.
50
- */
51
- postSession({ modelType, modelId, token, }: SessionIn): Observable<SessionOut>;
52
- /**
53
- * Fetches the authenticated user's information.
54
- * Sends a GET request to the endpoint '/auth/me' to retrieve information
55
- * about the currently authenticated user.
56
- *
57
- * @return {Observable<AuthMeOut>} An observable that emits the authenticated user's data.
58
- */
59
- getAuthMe(): Observable<AuthMeOut>;
60
- /**
61
- * Fetches the authenticated user's details from the server.
62
- *
63
- * @param token The JWT token used for authorization.
64
- * @return An Observable that emits the user's details encapsulated in a MeOut object.
65
- */
66
- getOtherMe(token: string): Observable<AuthMeOut>;
67
- /**
68
- * Fetches a user by their unique ID.
69
- *
70
- * @param {number} id - The unique identifier of the user to be fetched.
71
- * @return {Observable<GetUserOut>} An observable containing the user information.
72
- */
73
- getUser(id: number): Observable<GetUserOut>;
74
- /**
75
- * Fetches a list of users from the server based on the specified query parameters.
76
- *
77
- * @param {QueryParams} params - The query parameters to filter the list of users.
78
- * @return {Observable<GetUsersOut>} An observable that emits the list of users retrieved from the server.
79
- */
80
- getUsers(params: QueryParams): Observable<GetUsersOut>;
81
- /**
82
- * Updates the information of a specified user on the server.
83
- *
84
- * @param {Object} params - The parameter object.
85
- * @param {Object} params.user - The user object containing updated data.
86
- * @param {string} params.user.id - The unique identifier of the user to be updated.
87
- *
88
- * @return {void} This method does not return a value.
89
- */
90
- putUsers({ user }: PutUsersIn): Observable<PutUsersOut>;
91
- /**
92
- * Changes the language for the authenticated user.
93
- *
94
- * @param {Object} params - The input parameters for changing the language.
95
- * @param {string} params.languageId - The ID of the new language to be set.
96
- * @return {Observable<ApiSuccess<AuthMeOut>>} An observable that emits the result of the language change request.
97
- */
98
- putChangeLanguage({ languageId }: ChangeLanguageIn): Observable<AuthMeOut>;
99
- /**
100
- * Retrieves a list of roles with their permissions.
101
- *
102
- * @param {QueryParams} params - The query parameters to filter the roles.
103
- * @returns {Observable<RoleIn[]>} An observable that emits an array of role permissions.
104
- */
105
- getRoles(params: QueryParams): Observable<RolesOut>;
106
- /**
107
- * Retrieves roles by the specified ID.
108
- *
109
- * @param id - The ID of the role to retrieve.
110
- * @returns An Observable that emits the role data.
111
- */
112
- getRole(id: number): Observable<RoleOut>;
113
- /**
114
- * Creates a new role with the specified permissions.
115
- *
116
- * @param {RoleIn} body - The permissions and details for the new role.
117
- * @returns {Observable<RoleOut>} An observable containing the created role's permissions.
118
- */
119
- postRole(body: RoleIn): Observable<RoleOut>;
120
- /**
121
- * Updates the permissions of a specific role.
122
- *
123
- * @param id - The unique identifier of the role to update.
124
- * @param body - The new permissions to assign to the role.
125
- * @returns An Observable that emits the updated module permissions.
126
- */
127
- putRole(id: number, body: RoleIn): Observable<RoleOut>;
128
- /**
129
- * Deletes the permissions associated with a specific role.
130
- *
131
- * @param {number} id - The unique identifier of the role whose permissions are to be deleted.
132
- * @returns {Observable<{}>} An observable that emits the result of the delete operation.
133
- */
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
- /**
143
- * Retrieves a list of modules and permissions
144
- *
145
- * @param queryParams - The query parameters to filter the modules.
146
- * @returns Observable<ModulesOut[]> - An observable that emits an array of modules and permissions.
147
- */
148
- getModules(queryParams: QueryParams): Observable<ModulesOut>;
149
- /**
150
- * Retrieves a list of modules and permissions
151
- *
152
- * @param params.token - Custom token for authorization.
153
- * @param params.queryParams - The query parameters to filter the modules.
154
- * @returns Observable<ModulesOut[]> - An observable that emits an array of modules and permissions.
155
- */
156
- getModulesByToken(params: {
157
- token: string;
158
- queryParams: QueryParams;
159
- }): Observable<ModulesOut>;
160
- static ɵfac: i0.ɵɵFactoryDeclaration<ApiSecurityService, never>;
161
- static ɵprov: i0.ɵɵInjectableDeclaration<ApiSecurityService>;
162
- }