@experteam-mx/ngx-services 18.9.17 → 18.9.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/apis/api-invoices.service.mjs +56 -1
- package/esm2022/lib/apis/models/api-invoices.interfaces.mjs +1 -1
- package/esm2022/lib/apis/models/api-invoices.types.mjs +1 -1
- package/fesm2022/experteam-mx-ngx-services.mjs +55 -0
- package/fesm2022/experteam-mx-ngx-services.mjs.map +1 -1
- package/lib/apis/api-invoices.service.d.ts +38 -1
- package/lib/apis/models/api-invoices.interfaces.d.ts +30 -20
- package/lib/apis/models/api-invoices.types.d.ts +42 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
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';
|
|
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
5
|
import { QueryParams } from './models/api.models';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class ApiInvoicesService {
|
|
@@ -275,6 +275,43 @@ export declare class ApiInvoicesService {
|
|
|
275
275
|
* The Observable will error if the HTTP request fails or the response does not contain the expected data.
|
|
276
276
|
*/
|
|
277
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>;
|
|
278
315
|
static ɵfac: i0.ɵɵFactoryDeclaration<ApiInvoicesService, never>;
|
|
279
316
|
static ɵprov: i0.ɵɵInjectableDeclaration<ApiInvoicesService>;
|
|
280
317
|
}
|
|
@@ -54,32 +54,29 @@ export interface Document extends LaravelModel {
|
|
|
54
54
|
document: Document | null;
|
|
55
55
|
}
|
|
56
56
|
export interface DocumentTypeRange extends LaravelModel {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
final_number: number;
|
|
57
|
+
activation_key: string | null;
|
|
58
|
+
authorization_label: string | null;
|
|
59
|
+
authorization_number: string | null;
|
|
60
|
+
auto_activation: boolean;
|
|
61
|
+
country_document_type_id: number;
|
|
63
62
|
current_number: number;
|
|
64
|
-
|
|
63
|
+
days_until_expire_mail: number;
|
|
64
|
+
environment: string;
|
|
65
|
+
external_generated: boolean;
|
|
66
|
+
final_number: number;
|
|
67
|
+
init_number: number;
|
|
68
|
+
is_manual: boolean;
|
|
65
69
|
min_until_mail: number;
|
|
70
|
+
model_id: number;
|
|
71
|
+
model_type: string;
|
|
66
72
|
prefix: string;
|
|
73
|
+
provider_id: number;
|
|
67
74
|
sap_prefix: string;
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
authorization_number: string;
|
|
72
|
-
environment: string;
|
|
73
|
-
is_manual: boolean;
|
|
74
|
-
auto_activation: boolean;
|
|
75
|
-
activation_key: string;
|
|
76
|
-
authorization_label: string;
|
|
75
|
+
sap_suffix: string | null;
|
|
76
|
+
suffix: string | null;
|
|
77
|
+
used_numbers: number;
|
|
77
78
|
valid_since: string;
|
|
78
79
|
valid_until: string;
|
|
79
|
-
created_at: string;
|
|
80
|
-
updated_at: string;
|
|
81
|
-
is_active: boolean;
|
|
82
|
-
country_document_type_id: number;
|
|
83
80
|
}
|
|
84
81
|
export interface DocumentItem extends LaravelModel {
|
|
85
82
|
id: number;
|
|
@@ -265,3 +262,16 @@ export interface DocumentStatus extends LaravelModel {
|
|
|
265
262
|
name: string;
|
|
266
263
|
code: number;
|
|
267
264
|
}
|
|
265
|
+
export interface Provider extends LaravelModel {
|
|
266
|
+
model_type: string;
|
|
267
|
+
model_id: number;
|
|
268
|
+
busyness_name: string;
|
|
269
|
+
identification_number: string;
|
|
270
|
+
identification_type_id: number;
|
|
271
|
+
address_line1: string;
|
|
272
|
+
address_line2: string;
|
|
273
|
+
address_line3: string;
|
|
274
|
+
extra_fields: [];
|
|
275
|
+
company_country_id: number;
|
|
276
|
+
footer: string;
|
|
277
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CountryPaymentType, CountryPaymentTypeField, Customer, CustomerCountryDocumentType, CustomerType, Document, DocumentRequests, DocumentStatus, PaymentType, PaymentTypeFieldAccount, PaymentTypeFieldCardType, Tolerance } from './api-invoices.interfaces';
|
|
1
|
+
import { CountryDocumentType, CountryPaymentType, CountryPaymentTypeField, Customer, CustomerCountryDocumentType, CustomerType, Document, DocumentRequests, DocumentStatus, DocumentTypeRange, PaymentType, PaymentTypeFieldAccount, PaymentTypeFieldCardType, Provider, Tolerance } from './api-invoices.interfaces';
|
|
2
2
|
export interface OperationAccountPaymentIn {
|
|
3
3
|
document_type_range_id: number | null;
|
|
4
4
|
document_number: string | null;
|
|
@@ -193,3 +193,44 @@ export type DocumentStatusesOut = {
|
|
|
193
193
|
export type OperationPrintXmlOut = {
|
|
194
194
|
xml: string;
|
|
195
195
|
};
|
|
196
|
+
export type DocumentTypeRangesOut = {
|
|
197
|
+
document_type_ranges: DocumentTypeRange[];
|
|
198
|
+
total: number;
|
|
199
|
+
};
|
|
200
|
+
export type DocumentTypeRangeIn = {
|
|
201
|
+
activation_key?: string;
|
|
202
|
+
authorization_label?: string;
|
|
203
|
+
authorization_number?: string;
|
|
204
|
+
auto_activation: boolean;
|
|
205
|
+
country_document_type_id: number;
|
|
206
|
+
current_number: number;
|
|
207
|
+
days_until_expire_mail: number;
|
|
208
|
+
environment?: string;
|
|
209
|
+
external_generated?: boolean;
|
|
210
|
+
final_number: number;
|
|
211
|
+
init_number: number;
|
|
212
|
+
is_active: boolean;
|
|
213
|
+
is_manual?: boolean;
|
|
214
|
+
min_until_mail: number;
|
|
215
|
+
model_id: number;
|
|
216
|
+
model_type: string;
|
|
217
|
+
prefix: string;
|
|
218
|
+
provider_id: number;
|
|
219
|
+
sap_prefix: string;
|
|
220
|
+
sap_suffix?: string;
|
|
221
|
+
suffix?: string;
|
|
222
|
+
used_numbers: number;
|
|
223
|
+
valid_since: string;
|
|
224
|
+
valid_until: string;
|
|
225
|
+
};
|
|
226
|
+
export type DocumentTypeRangeOut = {
|
|
227
|
+
document_type_range: DocumentTypeRange;
|
|
228
|
+
};
|
|
229
|
+
export interface ProvidersOut {
|
|
230
|
+
providers: Provider[];
|
|
231
|
+
total: number;
|
|
232
|
+
}
|
|
233
|
+
export interface CountryDocumentTypesOut {
|
|
234
|
+
country_document_types: CountryDocumentType[];
|
|
235
|
+
total: number;
|
|
236
|
+
}
|