@experteam-mx/ngx-services 18.4.0 → 18.4.2

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 (53) hide show
  1. package/esm2022/lib/apis/api-billing-do.service.mjs +41 -0
  2. package/esm2022/lib/apis/api-billing-mx.service.mjs +62 -0
  3. package/esm2022/lib/apis/api-companies.service.mjs +21 -22
  4. package/esm2022/lib/apis/api-external-pickups.service.mjs +74 -0
  5. package/esm2022/lib/apis/api-invoices.service.mjs +79 -9
  6. package/esm2022/lib/apis/api-open-items.service.mjs +62 -0
  7. package/esm2022/lib/apis/api-reports.service.mjs +48 -2
  8. package/esm2022/lib/apis/api-security.service.mjs +56 -39
  9. package/esm2022/lib/apis/api-shipments.service.mjs +13 -3
  10. package/esm2022/lib/apis/models/api-billing.interfaces.mjs +2 -0
  11. package/esm2022/lib/apis/models/api-billing.types.mjs +2 -0
  12. package/esm2022/lib/apis/models/api-catalog.interfaces.mjs +1 -1
  13. package/esm2022/lib/apis/models/api-companies.types.mjs +1 -1
  14. package/esm2022/lib/apis/models/api-external-pickups.types.mjs +2 -0
  15. package/esm2022/lib/apis/models/api-invoices.interfaces.mjs +1 -1
  16. package/esm2022/lib/apis/models/api-invoices.types.mjs +1 -1
  17. package/esm2022/lib/apis/models/api-open-items.interfaces.mjs +2 -0
  18. package/esm2022/lib/apis/models/api-open-items.types.mjs +2 -0
  19. package/esm2022/lib/apis/models/api-reports.interfaces.mjs +1 -1
  20. package/esm2022/lib/apis/models/api-reports.types.mjs +1 -1
  21. package/esm2022/lib/apis/models/api-security.types.mjs +1 -1
  22. package/esm2022/lib/apis/models/api-shipments.types.mjs +1 -1
  23. package/esm2022/lib/ngx-services.models.mjs +1 -1
  24. package/esm2022/lib/websockets/web-sockets.service.mjs +115 -0
  25. package/esm2022/public-api.mjs +11 -1
  26. package/fesm2022/experteam-mx-ngx-services.mjs +615 -137
  27. package/fesm2022/experteam-mx-ngx-services.mjs.map +1 -1
  28. package/lib/apis/api-billing-do.service.d.ts +24 -0
  29. package/lib/apis/api-billing-mx.service.d.ts +39 -0
  30. package/lib/apis/api-companies.service.d.ts +9 -9
  31. package/lib/apis/api-external-pickups.service.d.ts +46 -0
  32. package/lib/apis/api-invoices.service.d.ts +59 -9
  33. package/lib/apis/api-open-items.service.d.ts +41 -0
  34. package/lib/apis/api-reports.service.d.ts +24 -1
  35. package/lib/apis/api-security.service.d.ts +45 -32
  36. package/lib/apis/api-shipments.service.d.ts +10 -3
  37. package/lib/apis/models/api-billing.interfaces.d.ts +41 -0
  38. package/lib/apis/models/api-billing.types.d.ts +17 -0
  39. package/lib/apis/models/api-catalog.interfaces.d.ts +6 -0
  40. package/lib/apis/models/api-companies.types.d.ts +7 -13
  41. package/lib/apis/models/api-external-pickups.types.d.ts +31 -0
  42. package/lib/apis/models/api-invoices.interfaces.d.ts +35 -1
  43. package/lib/apis/models/api-invoices.types.d.ts +57 -5
  44. package/lib/apis/models/api-open-items.interfaces.d.ts +32 -0
  45. package/lib/apis/models/api-open-items.types.d.ts +58 -0
  46. package/lib/apis/models/api-reports.interfaces.d.ts +149 -0
  47. package/lib/apis/models/api-reports.types.d.ts +13 -4
  48. package/lib/apis/models/api-security.types.d.ts +9 -8
  49. package/lib/apis/models/api-shipments.types.d.ts +41 -0
  50. package/lib/ngx-services.models.d.ts +16 -5
  51. package/lib/websockets/web-sockets.service.d.ts +49 -0
  52. package/package.json +11 -2
  53. 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 { AccountPaymentOperationOut, AccountPaymentOperationIn, CancelBillingIn, CancelPaymentReceiptIn, CollectionReceiptOut } from './models/api-invoices.types';
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<CollectionReceiptOut>} An observable containing the collection receipt data.
28
+ * @return {Observable<PrintCollectionReceiptOut>} An observable containing the collection receipt data.
21
29
  */
22
- printCollectionReceipt(id: number): Observable<CollectionReceiptOut>;
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 {AccountPaymentOperationIn} body The payload containing information for the account payment operation.
28
- * @return {Observable<AccountPaymentOperationOut>} An observable emitting the processed account payment operation data.
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
- accountPaymentOperation(body: AccountPaymentOperationIn): Observable<AccountPaymentOperationOut>;
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
- cancelPaymentReceipt(body: CancelPaymentReceiptIn): Observable<{}>;
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
- cancelInvoice({ invoiceId, ...body }: CancelBillingIn): Observable<{}>;
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 { ChangeLanguageIn, CreateSessionIn, CreateSessionOut, GetUserOut, LoginIn, LoginOut, MeOut, ModulePermissionsOut, RoleByIdOut, RolePermissionsIn, RolesOut, RoleTypesOut } from './models/api-security.types';
2
+ import { AuthLoginIn, AuthLoginOut, AuthMeOut, ChangeLanguageIn, GetUserOut, ModulesOut, 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,17 @@ export declare class ApiSecurityService {
17
17
  */
18
18
  get url(): string;
19
19
  /**
20
- * Authenticates a user with the provided credentials and role.
20
+ * Performs user authentication by sending login credentials to the server.
21
21
  *
22
- * @param {Object} param0 - The login input object.
23
- * @param {string} param0.username - The username of the user.
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 {Object} params - An object containing the user's login credentials and system details.
23
+ * @param {string} params.username - The username of the user attempting to log in.
24
+ * @param {string} params.password - The user's password.
25
+ * @param {string} params.role - The role of the user (e.g., admin, user).
26
+ * @param {string} params.system_name - The name of the system the user is logging into.
27
+ *
28
+ * @return {Observable<AuthLoginOut>} An observable that emits the authentication result, including tokens and user information.
27
29
  */
28
- login({ username, password, role, }: LoginIn): Observable<LoginOut>;
30
+ postAuthLogin({ username, password, role, system_name }: AuthLoginIn): Observable<AuthLoginOut>;
29
31
  /**
30
32
  * Logs out the current user by making a POST request to the logout endpoint.
31
33
  *
@@ -33,7 +35,7 @@ export declare class ApiSecurityService {
33
35
  *
34
36
  * @return {Observable<{}>} An observable that emits the server's response to the logout request.
35
37
  */
36
- logout(): Observable<{}>;
38
+ postAuthLogout(): Observable<{}>;
37
39
  /**
38
40
  * Creates a new session for a specified model.
39
41
  *
@@ -42,44 +44,44 @@ export declare class ApiSecurityService {
42
44
  * @param {string} params.modelId - The ID of the model.
43
45
  * @param {string} [params.token] - Optional authorization token.
44
46
  *
45
- * @return {Observable<CreateSessionOut>} An observable containing the created session details.
47
+ * @return {Observable<SessionOut>} An observable containing the created session details.
46
48
  */
47
- createSession({ modelType, modelId, token, }: CreateSessionIn): Observable<CreateSessionOut>;
49
+ postSession({ modelType, modelId, token, }: SessionIn): Observable<SessionOut>;
48
50
  /**
49
51
  * Fetches the authenticated user's information.
50
52
  * Sends a GET request to the endpoint '/auth/me' to retrieve information
51
53
  * about the currently authenticated user.
52
54
  *
53
- * @return {Observable<MeOut>} An observable that emits the authenticated user's data.
55
+ * @return {Observable<AuthMeOut>} An observable that emits the authenticated user's data.
54
56
  */
55
- me(): Observable<MeOut>;
57
+ getAuthMe(): Observable<AuthMeOut>;
56
58
  /**
57
59
  * Fetches the authenticated user's details from the server.
58
60
  *
59
61
  * @param token The JWT token used for authorization.
60
62
  * @return An Observable that emits the user's details encapsulated in a MeOut object.
61
63
  */
62
- otherMe(token: string): Observable<MeOut>;
64
+ getOtherMe(token: string): Observable<AuthMeOut>;
63
65
  /**
64
66
  * Fetches a user by their unique ID.
65
67
  *
66
68
  * @param {number} id - The unique identifier of the user to be fetched.
67
69
  * @return {Observable<GetUserOut>} An observable containing the user information.
68
70
  */
69
- user(id: number): Observable<GetUserOut>;
71
+ getUser(id: number): Observable<GetUserOut>;
70
72
  /**
71
73
  * Changes the language for the authenticated user.
72
74
  *
73
75
  * @param {Object} params - The input parameters for changing the language.
74
76
  * @param {string} params.languageId - The ID of the new language to be set.
75
- * @return {Observable<ApiSuccess<MeOut>>} An observable that emits the result of the language change request.
77
+ * @return {Observable<ApiSuccess<AuthMeOut>>} An observable that emits the result of the language change request.
76
78
  */
77
- changeLanguage({ languageId }: ChangeLanguageIn): Observable<MeOut>;
79
+ putChangeLanguage({ languageId }: ChangeLanguageIn): Observable<AuthMeOut>;
78
80
  /**
79
81
  * Retrieves a list of roles with their permissions.
80
82
  *
81
83
  * @param {QueryParams} params - The query parameters to filter the roles.
82
- * @returns {Observable<RolePermissionsIn[]>} An observable that emits an array of role permissions.
84
+ * @returns {Observable<RoleIn[]>} An observable that emits an array of role permissions.
83
85
  */
84
86
  getRoles(params: QueryParams): Observable<RolesOut>;
85
87
  /**
@@ -89,27 +91,20 @@ export declare class ApiSecurityService {
89
91
  * @returns {Observable<RoleTypesOut>} An observable containing the role types output.
90
92
  */
91
93
  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
94
  /**
100
95
  * Retrieves roles by the specified ID.
101
96
  *
102
- * @param params - The ID of the role to retrieve.
97
+ * @param id - The ID of the role to retrieve.
103
98
  * @returns An Observable that emits the role data.
104
99
  */
105
- getRolesById(params: number): Observable<RoleByIdOut>;
100
+ getRole(id: number): Observable<RoleOut>;
106
101
  /**
107
102
  * Creates a new role with the specified permissions.
108
103
  *
109
- * @param {RolePermissionsIn} body - The permissions and details for the new role.
110
- * @returns {Observable<ModulePermissionsOut>} An observable containing the created role's permissions.
104
+ * @param {RoleIn} body - The permissions and details for the new role.
105
+ * @returns {Observable<RoleOut>} An observable containing the created role's permissions.
111
106
  */
112
- createRole(body: RolePermissionsIn): Observable<ModulePermissionsOut>;
107
+ postRole(body: RoleIn): Observable<RoleOut>;
113
108
  /**
114
109
  * Updates the permissions of a specific role.
115
110
  *
@@ -117,14 +112,32 @@ export declare class ApiSecurityService {
117
112
  * @param body - The new permissions to assign to the role.
118
113
  * @returns An Observable that emits the updated module permissions.
119
114
  */
120
- updateRolePermissions(id: number, body: RolePermissionsIn): Observable<ModulePermissionsOut>;
115
+ putRole(id: number, body: RoleIn): Observable<RoleOut>;
121
116
  /**
122
117
  * Deletes the permissions associated with a specific role.
123
118
  *
124
119
  * @param {number} id - The unique identifier of the role whose permissions are to be deleted.
125
120
  * @returns {Observable<{}>} An observable that emits the result of the delete operation.
126
121
  */
127
- deleteRolePermissions(id: number): Observable<{}>;
122
+ deleteRole(id: number): Observable<{}>;
123
+ /**
124
+ * Retrieves a list of modules and permissions
125
+ *
126
+ * @param queryParams - The query parameters to filter the modules.
127
+ * @returns Observable<ModulesOut[]> - An observable that emits an array of modules and permissions.
128
+ */
129
+ getModules(queryParams: QueryParams): Observable<ModulesOut>;
130
+ /**
131
+ * Retrieves a list of modules and permissions
132
+ *
133
+ * @param params.token - Custom token for authorization.
134
+ * @param params.queryParams - The query parameters to filter the modules.
135
+ * @returns Observable<ModulesOut[]> - An observable that emits an array of modules and permissions.
136
+ */
137
+ getModulesByToken(params: {
138
+ token: string;
139
+ queryParams: QueryParams;
140
+ }): Observable<ModulesOut>;
128
141
  static ɵfac: i0.ɵɵFactoryDeclaration<ApiSecurityService, never>;
129
142
  static ɵprov: i0.ɵɵInjectableDeclaration<ApiSecurityService>;
130
143
  }
@@ -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 { ValidateAccountIn, ValidateAccountOut } from './models/api-shipments.types';
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
- validateAccount(body: ValidateAccountIn): Observable<ValidateAccountOut>;
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
+ };
@@ -69,3 +69,9 @@ export interface Currency extends SymfonyModel {
69
69
  name: string;
70
70
  symbol: string;
71
71
  }
72
+ export interface IdentificationType extends SymfonyModel {
73
+ code: string;
74
+ countryId: number;
75
+ identificationType: number | null;
76
+ name: string;
77
+ }
@@ -1,4 +1,4 @@
1
- import { Account, CompanyCountry, CompanyCountryTax, CountryExchange, CountryReference, CountryReferenceCurrency, Employee, Exchange, Installation, Location, LocationEmployee, Parameter, SupplyEntity, Workflow } from './api-companies.interfaces';
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 SupplyEntitiesOut = {
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 AccountEntitiesOut = {
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 ParametersOut = {
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: any;
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
+ }
@@ -1,5 +1,6 @@
1
- import { Document } from './api-invoices.interfaces';
2
- export interface AccountPaymentOperationIn {
1
+ import { Customer, CustomerType, Document } from './api-invoices.interfaces';
2
+ import { CustomerCountryDocumentType } from './api-billing.interfaces';
3
+ export interface OperationAccountPaymentIn {
3
4
  document_type_range_id: number | null;
4
5
  document_number: string | null;
5
6
  observation: string | null;
@@ -24,11 +25,11 @@ export type AccountPayment = {
24
25
  status?: boolean;
25
26
  details?: {};
26
27
  };
27
- export interface AccountPaymentOperationOut {
28
+ export interface OperationAccountPaymentOut {
28
29
  document: Document;
29
30
  transaction_id: string;
30
31
  }
31
- export type CollectionReceiptOut = {
32
+ export type PrintCollectionReceiptOut = {
32
33
  collection_receipt: string;
33
34
  };
34
35
  export type CancelPaymentReceiptIn = {
@@ -36,9 +37,60 @@ export type CancelPaymentReceiptIn = {
36
37
  is_canceled_invoice: boolean;
37
38
  cancellation_reason_id: number;
38
39
  };
39
- export type CancelBillingIn = {
40
+ export type OperationCancelBillingIn = {
40
41
  invoiceId: number;
41
42
  cancellation_reason_id: number;
42
43
  cancel_payment: boolean;
43
44
  send_shipments: boolean;
44
45
  };
46
+ export type OperationDocumentIn = {
47
+ country_document_type_id: number;
48
+ customer: {
49
+ company_name: string;
50
+ full_name: string;
51
+ email: string;
52
+ phone_code: string;
53
+ phone_number: string;
54
+ address_line1: string;
55
+ address_line2: string;
56
+ address_line3: string;
57
+ identification_number: string;
58
+ identification_type_id: number;
59
+ postal_code: string;
60
+ state: string;
61
+ county_name: string;
62
+ city_name: string;
63
+ country_id: number;
64
+ extra_fields: {
65
+ [key: string]: string;
66
+ };
67
+ };
68
+ document_extra_fields: {
69
+ [key: string]: string;
70
+ };
71
+ };
72
+ export type OperationDocumentOut = {
73
+ document: Document;
74
+ };
75
+ export type InvoiceTypeCustomParamsIn = {
76
+ identificationNumber: string;
77
+ identificationTypeid: number;
78
+ };
79
+ export type OperationPrintDocumentOut = {
80
+ document: string;
81
+ };
82
+ export type CustomerTypesOut = {
83
+ customer_types: CustomerType[];
84
+ total: number;
85
+ };
86
+ export type CustomersOut = {
87
+ customers: Customer[];
88
+ };
89
+ export type OperationShipmentExternalOut = {
90
+ document: Document;
91
+ };
92
+ export type OperationShipmentExternalIn = {};
93
+ export type CustomerDocumentTypesOut = {
94
+ customer_country_document_types: CustomerCountryDocumentType[];
95
+ total: number;
96
+ };