@experteam-mx/ngx-services 18.4.1 → 18.4.3
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-billing-do.service.mjs +41 -0
- package/esm2022/lib/apis/api-billing-mx.service.mjs +62 -0
- package/esm2022/lib/apis/api-companies.service.mjs +20 -21
- package/esm2022/lib/apis/api-external-pickups.service.mjs +74 -0
- package/esm2022/lib/apis/api-invoices.service.mjs +78 -8
- package/esm2022/lib/apis/api-open-items.service.mjs +62 -0
- package/esm2022/lib/apis/api-reports.service.mjs +47 -1
- package/esm2022/lib/apis/api-security.service.mjs +88 -49
- package/esm2022/lib/apis/api-shipments.service.mjs +12 -2
- package/esm2022/lib/apis/models/api-billing.interfaces.mjs +2 -0
- package/esm2022/lib/apis/models/api-billing.types.mjs +2 -0
- package/esm2022/lib/apis/models/api-catalog.interfaces.mjs +1 -1
- package/esm2022/lib/apis/models/api-companies.types.mjs +1 -1
- package/esm2022/lib/apis/models/api-external-pickups.types.mjs +2 -0
- package/esm2022/lib/apis/models/api-invoices.interfaces.mjs +1 -1
- package/esm2022/lib/apis/models/api-invoices.types.mjs +1 -1
- package/esm2022/lib/apis/models/api-open-items.interfaces.mjs +2 -0
- package/esm2022/lib/apis/models/api-open-items.types.mjs +2 -0
- package/esm2022/lib/apis/models/api-reports.interfaces.mjs +1 -1
- package/esm2022/lib/apis/models/api-reports.types.mjs +1 -1
- package/esm2022/lib/apis/models/api-security.interfaces.mjs +1 -1
- package/esm2022/lib/apis/models/api-security.types.mjs +1 -1
- package/esm2022/lib/apis/models/api-shipments.types.mjs +1 -1
- package/esm2022/lib/ngx-services.models.mjs +1 -1
- package/esm2022/lib/websockets/web-sockets.service.mjs +115 -0
- package/esm2022/public-api.mjs +11 -1
- package/fesm2022/experteam-mx-ngx-services.mjs +643 -143
- package/fesm2022/experteam-mx-ngx-services.mjs.map +1 -1
- package/lib/apis/api-billing-do.service.d.ts +24 -0
- package/lib/apis/api-billing-mx.service.d.ts +39 -0
- package/lib/apis/api-companies.service.d.ts +9 -9
- package/lib/apis/api-external-pickups.service.d.ts +46 -0
- package/lib/apis/api-invoices.service.d.ts +59 -9
- package/lib/apis/api-open-items.service.d.ts +41 -0
- package/lib/apis/api-reports.service.d.ts +24 -1
- package/lib/apis/api-security.service.d.ts +64 -32
- package/lib/apis/api-shipments.service.d.ts +10 -3
- package/lib/apis/models/api-billing.interfaces.d.ts +41 -0
- package/lib/apis/models/api-billing.types.d.ts +17 -0
- package/lib/apis/models/api-catalog.interfaces.d.ts +6 -0
- package/lib/apis/models/api-companies.types.d.ts +7 -13
- package/lib/apis/models/api-external-pickups.types.d.ts +31 -0
- package/lib/apis/models/api-invoices.interfaces.d.ts +35 -1
- package/lib/apis/models/api-invoices.types.d.ts +57 -5
- package/lib/apis/models/api-open-items.interfaces.d.ts +32 -0
- package/lib/apis/models/api-open-items.types.d.ts +58 -0
- package/lib/apis/models/api-reports.interfaces.d.ts +149 -0
- package/lib/apis/models/api-reports.types.d.ts +13 -4
- package/lib/apis/models/api-security.interfaces.d.ts +2 -6
- package/lib/apis/models/api-security.types.d.ts +41 -11
- package/lib/apis/models/api-shipments.types.d.ts +41 -0
- package/lib/ngx-services.models.d.ts +11 -0
- package/lib/websockets/web-sockets.service.d.ts +49 -0
- package/package.json +11 -2
- package/public-api.d.ts +9 -0
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { Environment } from '../ngx-services.models';
|
|
2
1
|
import { HttpClient } from '@angular/common/http';
|
|
3
2
|
import { Observable } from 'rxjs';
|
|
4
|
-
import {
|
|
3
|
+
import { Environment } from '../ngx-services.models';
|
|
4
|
+
import { CancelPaymentReceiptIn, CustomerDocumentTypesOut, CustomersOut, CustomerTypesOut, OperationAccountPaymentIn, OperationAccountPaymentOut, OperationCancelBillingIn, OperationDocumentIn, OperationDocumentOut, OperationPrintDocumentOut, OperationShipmentExternalIn, OperationShipmentExternalOut, PrintCollectionReceiptOut } from './models/api-invoices.types';
|
|
5
|
+
import { QueryParams } from './models/api.models';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class ApiInvoicesService {
|
|
7
8
|
private environments;
|
|
@@ -13,21 +14,28 @@ export declare class ApiInvoicesService {
|
|
|
13
14
|
* @return {string} The API URL for invoices.
|
|
14
15
|
*/
|
|
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>;
|
|
16
24
|
/**
|
|
17
25
|
* Fetches and returns the collection receipt data for a given collection ID.
|
|
18
26
|
*
|
|
19
27
|
* @param {number} id - The unique identifier of the collection for which the receipt needs to be retrieved.
|
|
20
|
-
* @return {Observable<
|
|
28
|
+
* @return {Observable<PrintCollectionReceiptOut>} An observable containing the collection receipt data.
|
|
21
29
|
*/
|
|
22
|
-
|
|
30
|
+
getPrintCollectionReceipt(id: number): Observable<PrintCollectionReceiptOut>;
|
|
23
31
|
/**
|
|
24
32
|
* Handles the account payment operation by sending a POST request to the specified endpoint.
|
|
25
33
|
* Processes the response and returns the operation data.
|
|
26
34
|
*
|
|
27
|
-
* @param {
|
|
28
|
-
* @return {Observable<
|
|
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.
|
|
29
37
|
*/
|
|
30
|
-
|
|
38
|
+
postOperationAccountPayment(body: OperationAccountPaymentIn): Observable<OperationAccountPaymentOut>;
|
|
31
39
|
/**
|
|
32
40
|
* Cancels a payment receipt based on the provided input.
|
|
33
41
|
* This method sends a POST request to cancel a document.
|
|
@@ -35,14 +43,56 @@ export declare class ApiInvoicesService {
|
|
|
35
43
|
* @param body The data required to cancel the payment receipt, encapsulated in a CancelPaymentReceiptIn object.
|
|
36
44
|
* @return An Observable representing the result of the cancellation. Emits an empty object on success.
|
|
37
45
|
*/
|
|
38
|
-
|
|
46
|
+
postOperationCancelDocument(body: CancelPaymentReceiptIn): Observable<{}>;
|
|
39
47
|
/**
|
|
40
48
|
* Cancels an invoice based on the provided invoice ID and additional parameters.
|
|
41
49
|
*
|
|
42
50
|
* @param {Object} parameters - The parameters required to cancel the invoice, encapsulated in a CancelBillingIn object.
|
|
43
51
|
* @return {Observable<Object>} An observable that emits the response of the cancellation operation.
|
|
44
52
|
*/
|
|
45
|
-
|
|
53
|
+
postOperationCancelBilling({ invoiceId, ...body }: OperationCancelBillingIn): Observable<{}>;
|
|
54
|
+
/**
|
|
55
|
+
* Fetches a list of customer types from the server.
|
|
56
|
+
*
|
|
57
|
+
* @param {QueryParams} params - Query parameters to filter or customize the request.
|
|
58
|
+
* @return {Observable<CustomerTypesOut>} An observable emitting the customer types fetched from the server.
|
|
59
|
+
*/
|
|
60
|
+
getCustomerTypes(params: QueryParams): Observable<CustomerTypesOut>;
|
|
61
|
+
/**
|
|
62
|
+
* Retrieves document types specific to a given country.
|
|
63
|
+
*
|
|
64
|
+
* @param {QueryParams} params - The query parameters containing country-specific information.
|
|
65
|
+
* @return {Observable<CustomerDocumentTypesOut>} An observable emitting the document types available for the specified country.
|
|
66
|
+
*/
|
|
67
|
+
getCustomerDocumentTypes(params: QueryParams): Observable<CustomerDocumentTypesOut>;
|
|
68
|
+
/**
|
|
69
|
+
* Fetches customer invoice details filtered by a custom invoice type.
|
|
70
|
+
*
|
|
71
|
+
* @param {InvoiceTypeCustomParamsIn} params - An object containing the filter parameters for the custom invoice type.
|
|
72
|
+
* @return {Observable<CustomersOut>} An observable containing customer invoice details of the specified type.
|
|
73
|
+
*/
|
|
74
|
+
getCustomers(params: QueryParams): Observable<CustomersOut>;
|
|
75
|
+
/**
|
|
76
|
+
* Sends a POST request to create or update an external shipment operation.
|
|
77
|
+
*
|
|
78
|
+
* @param {OperationShipmentExternalIn} params - The input parameters for the external shipment operation.
|
|
79
|
+
* @return {Observable<OperationShipmentExternalOut>} An observable that emits the result of the external shipment operation.
|
|
80
|
+
*/
|
|
81
|
+
postOperationShipmentExternal(params: OperationShipmentExternalIn): Observable<OperationShipmentExternalOut>;
|
|
82
|
+
/**
|
|
83
|
+
* Processes an external payment operation for a shipment.
|
|
84
|
+
*
|
|
85
|
+
* @param {OperationShipmentExternalIn} params - The input parameters required for the external payment operation.
|
|
86
|
+
* @return {Observable<OperationShipmentExternalOut>} An observable that emits the result of the external payment operation for a shipment.
|
|
87
|
+
*/
|
|
88
|
+
postOperationShipmentExternalPayment(params: OperationShipmentExternalIn): Observable<OperationShipmentExternalOut>;
|
|
89
|
+
/**
|
|
90
|
+
* Retrieves and returns billing operation print details for a given document ID.
|
|
91
|
+
*
|
|
92
|
+
* @param {number} documentId - The ID of the document for which to fetch the print billing operation details.
|
|
93
|
+
* @return {Observable<OperationPrintDocumentOut>} An observable emitting the print billing operation details for the specified document.
|
|
94
|
+
*/
|
|
95
|
+
getOperationPrintDocument(documentId: number): Observable<OperationPrintDocumentOut>;
|
|
46
96
|
static ɵfac: i0.ɵɵFactoryDeclaration<ApiInvoicesService, never>;
|
|
47
97
|
static ɵprov: i0.ɵɵInjectableDeclaration<ApiInvoicesService>;
|
|
48
98
|
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Environment } from '../ngx-services.models';
|
|
2
|
+
import { HttpClient } from '@angular/common/http';
|
|
3
|
+
import { QueryParams } from './models/api.models';
|
|
4
|
+
import { OpenItemsOut, OtherInvoiceOut, PaymentOut } from './models/api-open-items.types';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
6
|
+
import { OtherInvoiceIn, PaymentOpenItemIn } from './models/api-open-items.interfaces';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class ApiOpenItemsService {
|
|
9
|
+
private environments;
|
|
10
|
+
private http;
|
|
11
|
+
constructor(environments: Environment, http: HttpClient);
|
|
12
|
+
/**
|
|
13
|
+
* Retrieves the API URL for open-items from the environments' configuration.
|
|
14
|
+
*
|
|
15
|
+
* @return {string} The API URL for open-items.
|
|
16
|
+
*/
|
|
17
|
+
get url(): string;
|
|
18
|
+
/**
|
|
19
|
+
* Retrieves a list of open-items based on the provided query parameters.
|
|
20
|
+
*
|
|
21
|
+
* @param {QueryParams} params - The parameters to use for querying open-items.
|
|
22
|
+
* @return {Observable<OpenItemsOut>} An observable that emits the open-item's data.
|
|
23
|
+
*/
|
|
24
|
+
getOpenItems(params: QueryParams): Observable<OpenItemsOut>;
|
|
25
|
+
/**
|
|
26
|
+
* Processes a payment for an open item.
|
|
27
|
+
*
|
|
28
|
+
* @param {PaymentOpenItemIn} body - The payment details for the open item.
|
|
29
|
+
* @return {Observable<PaymentOut>} An observable that emits the result of the payment processing.
|
|
30
|
+
*/
|
|
31
|
+
postPayment(body: PaymentOpenItemIn): Observable<PaymentOut>;
|
|
32
|
+
/**
|
|
33
|
+
* Processes a payment for other invoice.
|
|
34
|
+
*
|
|
35
|
+
* @param {OtherInvoiceIn} body - The payment details for the other invoice.
|
|
36
|
+
* @return {Observable<OtherInvoiceOut>} An observable that emits the result of the payment processing.
|
|
37
|
+
*/
|
|
38
|
+
postOtherInvoice(body: OtherInvoiceIn): Observable<OtherInvoiceOut>;
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ApiOpenItemsService, never>;
|
|
40
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ApiOpenItemsService>;
|
|
41
|
+
}
|
|
@@ -2,7 +2,7 @@ import { Environment } from '../ngx-services.models';
|
|
|
2
2
|
import { HttpClient } from '@angular/common/http';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import { QueryParams } from './models/api.models';
|
|
5
|
-
import { CollectionPaymentsOut } from './models/api-reports.types';
|
|
5
|
+
import { CollectionPaymentsOut, ExistPendingInvoicesIn, ExistPendingPaymentsIn, ShipmentsReportOut } from './models/api-reports.types';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class ApiReportsService {
|
|
8
8
|
private environments;
|
|
@@ -21,6 +21,29 @@ export declare class ApiReportsService {
|
|
|
21
21
|
* @return {Observable<CollectionPaymentsOut[]>} An observable that emits an array of collection payment.
|
|
22
22
|
*/
|
|
23
23
|
getCollectionPayments(params: QueryParams): Observable<CollectionPaymentsOut>;
|
|
24
|
+
/**
|
|
25
|
+
* Fetches the list of shipments with pending payments.
|
|
26
|
+
*
|
|
27
|
+
* @param {ExistPendingPaymentsIn} params - The parameters to filter pending payment shipments.
|
|
28
|
+
* @return {Observable<ShipmentsReportOut>} An observable emitting the shipments report data.
|
|
29
|
+
*/
|
|
30
|
+
shipmentsPendingPayments(params: ExistPendingPaymentsIn): Observable<ShipmentsReportOut>;
|
|
31
|
+
/**
|
|
32
|
+
* Fetches shipment reports that are pending invoices based on the specified parameters.
|
|
33
|
+
* This method retrieves a filtered list of shipments with pending invoice statuses.
|
|
34
|
+
*
|
|
35
|
+
* @param {ExistPendingInvoicesIn} params - The parameters to filter the pending invoices, including
|
|
36
|
+
* shipment status codes, and pagination options.
|
|
37
|
+
* @return {Observable<ShipmentsReportOut>} An observable that emits the shipment report data based on the filter criteria.
|
|
38
|
+
*/
|
|
39
|
+
shipmentsPendingInvoices(params: ExistPendingInvoicesIn): Observable<ShipmentsReportOut>;
|
|
40
|
+
/**
|
|
41
|
+
* Fetches shipment reports based on the provided query parameters.
|
|
42
|
+
*
|
|
43
|
+
* @param {QueryParams} params - The query parameters used to filter or define the shipment reports.
|
|
44
|
+
* @return {Observable<ShipmentsReportOut>} An observable emitting the shipment report data.
|
|
45
|
+
*/
|
|
46
|
+
getShipmentsReport(params: QueryParams): Observable<ShipmentsReportOut>;
|
|
24
47
|
static ɵfac: i0.ɵɵFactoryDeclaration<ApiReportsService, never>;
|
|
25
48
|
static ɵprov: i0.ɵɵInjectableDeclaration<ApiReportsService>;
|
|
26
49
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { QueryParams } from './models/api.models';
|
|
2
|
-
import {
|
|
2
|
+
import { AuthLoginIn, AuthLoginOut, AuthMeOut, AuthUserLoginIn, ChangeLanguageIn, GetUserOut, GetUsersOut, ModulesOut, PutUsersIn, PutUsersOut, RoleIn, RoleOut, RolesOut, RoleTypesOut, SessionIn, SessionOut } from './models/api-security.types';
|
|
3
3
|
import { HttpClient } from '@angular/common/http';
|
|
4
4
|
import { Environment } from '../ngx-services.models';
|
|
5
5
|
import { Observable } from 'rxjs';
|
|
@@ -17,15 +17,19 @@ export declare class ApiSecurityService {
|
|
|
17
17
|
*/
|
|
18
18
|
get url(): string;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Handles the login authentication request by sending the login data to the authentication endpoint.
|
|
21
21
|
*
|
|
22
|
-
* @param {
|
|
23
|
-
* @
|
|
24
|
-
* @param {string} param0.password - The password of the user.
|
|
25
|
-
* @param {string} param0.role - The role of the user.
|
|
26
|
-
* @return {Observable<LoginOut>} An observable emitting the login output object.
|
|
22
|
+
* @param {AuthLoginIn} body The payload containing login credentials.
|
|
23
|
+
* @return {Observable<AuthLoginOut>} An observable emitting the authentication response data.
|
|
27
24
|
*/
|
|
28
|
-
|
|
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>;
|
|
29
33
|
/**
|
|
30
34
|
* Logs out the current user by making a POST request to the logout endpoint.
|
|
31
35
|
*
|
|
@@ -33,7 +37,7 @@ export declare class ApiSecurityService {
|
|
|
33
37
|
*
|
|
34
38
|
* @return {Observable<{}>} An observable that emits the server's response to the logout request.
|
|
35
39
|
*/
|
|
36
|
-
|
|
40
|
+
postAuthLogout(): Observable<{}>;
|
|
37
41
|
/**
|
|
38
42
|
* Creates a new session for a specified model.
|
|
39
43
|
*
|
|
@@ -42,44 +46,61 @@ export declare class ApiSecurityService {
|
|
|
42
46
|
* @param {string} params.modelId - The ID of the model.
|
|
43
47
|
* @param {string} [params.token] - Optional authorization token.
|
|
44
48
|
*
|
|
45
|
-
* @return {Observable<
|
|
49
|
+
* @return {Observable<SessionOut>} An observable containing the created session details.
|
|
46
50
|
*/
|
|
47
|
-
|
|
51
|
+
postSession({ modelType, modelId, token, }: SessionIn): Observable<SessionOut>;
|
|
48
52
|
/**
|
|
49
53
|
* Fetches the authenticated user's information.
|
|
50
54
|
* Sends a GET request to the endpoint '/auth/me' to retrieve information
|
|
51
55
|
* about the currently authenticated user.
|
|
52
56
|
*
|
|
53
|
-
* @return {Observable<
|
|
57
|
+
* @return {Observable<AuthMeOut>} An observable that emits the authenticated user's data.
|
|
54
58
|
*/
|
|
55
|
-
|
|
59
|
+
getAuthMe(): Observable<AuthMeOut>;
|
|
56
60
|
/**
|
|
57
61
|
* Fetches the authenticated user's details from the server.
|
|
58
62
|
*
|
|
59
63
|
* @param token The JWT token used for authorization.
|
|
60
64
|
* @return An Observable that emits the user's details encapsulated in a MeOut object.
|
|
61
65
|
*/
|
|
62
|
-
|
|
66
|
+
getOtherMe(token: string): Observable<AuthMeOut>;
|
|
63
67
|
/**
|
|
64
68
|
* Fetches a user by their unique ID.
|
|
65
69
|
*
|
|
66
70
|
* @param {number} id - The unique identifier of the user to be fetched.
|
|
67
71
|
* @return {Observable<GetUserOut>} An observable containing the user information.
|
|
68
72
|
*/
|
|
69
|
-
|
|
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>;
|
|
70
91
|
/**
|
|
71
92
|
* Changes the language for the authenticated user.
|
|
72
93
|
*
|
|
73
94
|
* @param {Object} params - The input parameters for changing the language.
|
|
74
95
|
* @param {string} params.languageId - The ID of the new language to be set.
|
|
75
|
-
* @return {Observable<ApiSuccess<
|
|
96
|
+
* @return {Observable<ApiSuccess<AuthMeOut>>} An observable that emits the result of the language change request.
|
|
76
97
|
*/
|
|
77
|
-
|
|
98
|
+
putChangeLanguage({ languageId }: ChangeLanguageIn): Observable<AuthMeOut>;
|
|
78
99
|
/**
|
|
79
100
|
* Retrieves a list of roles with their permissions.
|
|
80
101
|
*
|
|
81
102
|
* @param {QueryParams} params - The query parameters to filter the roles.
|
|
82
|
-
* @returns {Observable<
|
|
103
|
+
* @returns {Observable<RoleIn[]>} An observable that emits an array of role permissions.
|
|
83
104
|
*/
|
|
84
105
|
getRoles(params: QueryParams): Observable<RolesOut>;
|
|
85
106
|
/**
|
|
@@ -89,27 +110,20 @@ export declare class ApiSecurityService {
|
|
|
89
110
|
* @returns {Observable<RoleTypesOut>} An observable containing the role types output.
|
|
90
111
|
*/
|
|
91
112
|
getRoleTypes(params: QueryParams): Observable<RoleTypesOut>;
|
|
92
|
-
/**
|
|
93
|
-
* Retrieves the permissions for a module.
|
|
94
|
-
*
|
|
95
|
-
* @param {QueryParams} params - The query parameters to be sent with the request.
|
|
96
|
-
* @returns {Observable<ModulePermissionsOut>} An observable containing the module permissions.
|
|
97
|
-
*/
|
|
98
|
-
getPermissions(params: QueryParams): Observable<ModulePermissionsOut>;
|
|
99
113
|
/**
|
|
100
114
|
* Retrieves roles by the specified ID.
|
|
101
115
|
*
|
|
102
|
-
* @param
|
|
116
|
+
* @param id - The ID of the role to retrieve.
|
|
103
117
|
* @returns An Observable that emits the role data.
|
|
104
118
|
*/
|
|
105
|
-
|
|
119
|
+
getRole(id: number): Observable<RoleOut>;
|
|
106
120
|
/**
|
|
107
121
|
* Creates a new role with the specified permissions.
|
|
108
122
|
*
|
|
109
|
-
* @param {
|
|
110
|
-
* @returns {Observable<
|
|
123
|
+
* @param {RoleIn} body - The permissions and details for the new role.
|
|
124
|
+
* @returns {Observable<RoleOut>} An observable containing the created role's permissions.
|
|
111
125
|
*/
|
|
112
|
-
|
|
126
|
+
postRole(body: RoleIn): Observable<RoleOut>;
|
|
113
127
|
/**
|
|
114
128
|
* Updates the permissions of a specific role.
|
|
115
129
|
*
|
|
@@ -117,14 +131,32 @@ export declare class ApiSecurityService {
|
|
|
117
131
|
* @param body - The new permissions to assign to the role.
|
|
118
132
|
* @returns An Observable that emits the updated module permissions.
|
|
119
133
|
*/
|
|
120
|
-
|
|
134
|
+
putRole(id: number, body: RoleIn): Observable<RoleOut>;
|
|
121
135
|
/**
|
|
122
136
|
* Deletes the permissions associated with a specific role.
|
|
123
137
|
*
|
|
124
138
|
* @param {number} id - The unique identifier of the role whose permissions are to be deleted.
|
|
125
139
|
* @returns {Observable<{}>} An observable that emits the result of the delete operation.
|
|
126
140
|
*/
|
|
127
|
-
|
|
141
|
+
deleteRole(id: number): Observable<{}>;
|
|
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>;
|
|
128
160
|
static ɵfac: i0.ɵɵFactoryDeclaration<ApiSecurityService, never>;
|
|
129
161
|
static ɵprov: i0.ɵɵInjectableDeclaration<ApiSecurityService>;
|
|
130
162
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Environment } from '../ngx-services.models';
|
|
2
1
|
import { HttpClient } from '@angular/common/http';
|
|
3
2
|
import { Observable } from 'rxjs';
|
|
4
|
-
import {
|
|
3
|
+
import { Environment } from '../ngx-services.models';
|
|
4
|
+
import { ManifestMultipleIn, ManifestMultipleOut, ValidateAccountIn, ValidateAccountOut } from './models/api-shipments.types';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class ApiShipmentsService {
|
|
7
7
|
private environments;
|
|
@@ -20,7 +20,14 @@ export declare class ApiShipmentsService {
|
|
|
20
20
|
* @return {Observable<ValidateAccountIn>} An observable that emits the fetched parameter values
|
|
21
21
|
* @param body
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
postValidateAccount(body: ValidateAccountIn): Observable<ValidateAccountOut>;
|
|
24
|
+
/**
|
|
25
|
+
* Sends a POST request to the shipments manifest endpoint with the provided body.
|
|
26
|
+
*
|
|
27
|
+
* @param body - The request payload of type `ManifestMultipleIn`.
|
|
28
|
+
* @returns An observable that emits the response data of type `ManifestMultipleOut`.
|
|
29
|
+
*/
|
|
30
|
+
postManifestMultiple(body: ManifestMultipleIn): Observable<ManifestMultipleOut>;
|
|
24
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<ApiShipmentsService, never>;
|
|
25
32
|
static ɵprov: i0.ɵɵInjectableDeclaration<ApiShipmentsService>;
|
|
26
33
|
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { LaravelModel } from './api.models';
|
|
2
|
+
import { DocumentCategory } from './api-reports.interfaces';
|
|
3
|
+
export interface CFDI extends LaravelModel {
|
|
4
|
+
code: string;
|
|
5
|
+
description: string;
|
|
6
|
+
fiscal_regimen_receptor: string;
|
|
7
|
+
moral_person: string;
|
|
8
|
+
physical_person: string;
|
|
9
|
+
}
|
|
10
|
+
export interface IncomeType extends LaravelModel {
|
|
11
|
+
code: string;
|
|
12
|
+
name: string;
|
|
13
|
+
billing_code: string;
|
|
14
|
+
}
|
|
15
|
+
export interface FiscalRegimen extends LaravelModel {
|
|
16
|
+
code: string;
|
|
17
|
+
description: string;
|
|
18
|
+
moral_person: string;
|
|
19
|
+
physical_person: string;
|
|
20
|
+
}
|
|
21
|
+
export interface PostalCodeBillings extends LaravelModel {
|
|
22
|
+
city: string;
|
|
23
|
+
municipality: string;
|
|
24
|
+
state: string;
|
|
25
|
+
suburb: string;
|
|
26
|
+
postal_code_number: string;
|
|
27
|
+
}
|
|
28
|
+
export interface CustomerCountryDocumentType extends LaravelModel {
|
|
29
|
+
identification_type_customer_type_id: number;
|
|
30
|
+
country_document_type_id: number;
|
|
31
|
+
country_document_type: CountryDocumentType;
|
|
32
|
+
}
|
|
33
|
+
export interface CountryDocumentType extends LaravelModel {
|
|
34
|
+
document_type_id: number;
|
|
35
|
+
document_category_id: number;
|
|
36
|
+
country_id: number;
|
|
37
|
+
associated_payment: boolean;
|
|
38
|
+
name: string;
|
|
39
|
+
document_type: DocumentType;
|
|
40
|
+
document_category: DocumentCategory;
|
|
41
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CFDI, FiscalRegimen, IncomeType, PostalCodeBillings } from './api-billing.interfaces';
|
|
2
|
+
export type FiscalRegimensAcceptedOut = {
|
|
3
|
+
total: number;
|
|
4
|
+
cfdi_use: CFDI[];
|
|
5
|
+
};
|
|
6
|
+
export type IncomeTypesOut = {
|
|
7
|
+
income_types: IncomeType[];
|
|
8
|
+
total: number;
|
|
9
|
+
};
|
|
10
|
+
export type FiscalRegimensOut = {
|
|
11
|
+
total: number;
|
|
12
|
+
fiscal_regimen: FiscalRegimen[];
|
|
13
|
+
};
|
|
14
|
+
export type PostalCodesOut = {
|
|
15
|
+
postal_code: PostalCodeBillings[];
|
|
16
|
+
total: number;
|
|
17
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Account, CompanyCountry, CompanyCountryTax, CountryExchange, CountryReference, CountryReferenceCurrency, Employee,
|
|
1
|
+
import { Account, CompanyCountry, CompanyCountryTax, CountryExchange, CountryReference, CountryReferenceCurrency, Employee, Installation, Location, LocationEmployee, Parameter, SupplyEntity, Workflow } from './api-companies.interfaces';
|
|
2
2
|
export type LocationEmployeesOut = {
|
|
3
3
|
location_employees: LocationEmployee[];
|
|
4
4
|
total: number;
|
|
@@ -17,7 +17,7 @@ export type LocationsOut = {
|
|
|
17
17
|
export type LocationOut = {
|
|
18
18
|
location: Location;
|
|
19
19
|
};
|
|
20
|
-
export type
|
|
20
|
+
export type SupplyEntitiesActivesOut = {
|
|
21
21
|
supply_entities: SupplyEntity[];
|
|
22
22
|
total: number;
|
|
23
23
|
};
|
|
@@ -44,25 +44,17 @@ export type CompanyCountryTaxesOut = {
|
|
|
44
44
|
total: number;
|
|
45
45
|
};
|
|
46
46
|
export type ExchangesOut = {
|
|
47
|
-
exchanges: Exchange[];
|
|
48
|
-
total: number;
|
|
49
|
-
};
|
|
50
|
-
export type CountryExchangesData = {
|
|
51
|
-
exchanges: CountryExchange[];
|
|
52
|
-
total: number;
|
|
53
|
-
};
|
|
54
|
-
export type CountryExchangesOut = {
|
|
55
47
|
exchanges: CountryExchange[];
|
|
56
48
|
total: number;
|
|
57
49
|
};
|
|
58
|
-
export type
|
|
50
|
+
export type AccountEntitiesActivesOut = {
|
|
59
51
|
account_entities: Account[];
|
|
60
52
|
total: number;
|
|
61
53
|
};
|
|
62
54
|
export type ParametersIn = {
|
|
63
55
|
paramNames: string[];
|
|
64
56
|
};
|
|
65
|
-
export type
|
|
57
|
+
export type ParametersValuesOut = {
|
|
66
58
|
parameters: Parameter[];
|
|
67
59
|
total: number;
|
|
68
60
|
};
|
|
@@ -70,7 +62,9 @@ export type ParameterValueIn = {
|
|
|
70
62
|
paramName: string;
|
|
71
63
|
};
|
|
72
64
|
export type ParameterValueOut = {
|
|
73
|
-
value:
|
|
65
|
+
value: string | boolean | number | {
|
|
66
|
+
[key: string]: (string | boolean | number)[];
|
|
67
|
+
};
|
|
74
68
|
};
|
|
75
69
|
export type CountryReferencesOut = {
|
|
76
70
|
country_references: CountryReference[];
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export type DeliveryConfirmationGenerateOut = {
|
|
2
|
+
code: string;
|
|
3
|
+
};
|
|
4
|
+
export type DeliveryConfirmationGenerateIn = {
|
|
5
|
+
operation_id: number;
|
|
6
|
+
signature: {
|
|
7
|
+
client: {
|
|
8
|
+
full_name: string;
|
|
9
|
+
};
|
|
10
|
+
package_detail: {
|
|
11
|
+
shipment_tracking_number: string;
|
|
12
|
+
pieces: {
|
|
13
|
+
tracking_number: string;
|
|
14
|
+
status: string;
|
|
15
|
+
}[];
|
|
16
|
+
}[];
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export type DeliveryConfirmationCompleteIn = {
|
|
20
|
+
operationId: number;
|
|
21
|
+
keyOTP: string;
|
|
22
|
+
};
|
|
23
|
+
export type DeliveryConfirmationIn = {
|
|
24
|
+
signature: {
|
|
25
|
+
status: string;
|
|
26
|
+
operation_id: number;
|
|
27
|
+
signature_base_64: string;
|
|
28
|
+
mime_type: string;
|
|
29
|
+
};
|
|
30
|
+
otp?: string;
|
|
31
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LaravelModel } from './api.models';
|
|
2
|
+
import { IdentificationType } from './api-catalog.interfaces';
|
|
2
3
|
export interface Document extends LaravelModel {
|
|
3
|
-
id: number;
|
|
4
4
|
document_type_range_id: number;
|
|
5
5
|
document_number: number;
|
|
6
6
|
document_prefix: string;
|
|
@@ -137,3 +137,37 @@ export interface Payment extends LaravelModel {
|
|
|
137
137
|
amount: number;
|
|
138
138
|
};
|
|
139
139
|
}
|
|
140
|
+
export interface Customer extends LaravelModel {
|
|
141
|
+
identification_number: number;
|
|
142
|
+
company_name: string;
|
|
143
|
+
full_name: string;
|
|
144
|
+
email: string;
|
|
145
|
+
phone_code: string;
|
|
146
|
+
phone_number: number;
|
|
147
|
+
birth_date: string;
|
|
148
|
+
postal_code: number;
|
|
149
|
+
state: string;
|
|
150
|
+
county_name: string;
|
|
151
|
+
city_name: string;
|
|
152
|
+
address_line1: string;
|
|
153
|
+
address_line2: string;
|
|
154
|
+
address_line3: string;
|
|
155
|
+
company_id: number;
|
|
156
|
+
identification_type_id: number;
|
|
157
|
+
extra_fields: {
|
|
158
|
+
[key: string]: string;
|
|
159
|
+
};
|
|
160
|
+
country_id: number;
|
|
161
|
+
customer_type_id: number;
|
|
162
|
+
}
|
|
163
|
+
export interface CustomerType extends LaravelModel {
|
|
164
|
+
country_id: number;
|
|
165
|
+
identification_type_customer_types: IdentificationTypeCustomer[];
|
|
166
|
+
name: string;
|
|
167
|
+
}
|
|
168
|
+
export interface IdentificationTypeCustomer extends LaravelModel {
|
|
169
|
+
customer_type_id: number;
|
|
170
|
+
identification_type_id: number;
|
|
171
|
+
customer_id: number | null;
|
|
172
|
+
identificationType: IdentificationType;
|
|
173
|
+
}
|