@experteam-mx/ngx-services 18.3.6 → 18.3.7

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 (49) 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 +20 -21
  4. package/esm2022/lib/apis/api-external-pickups.service.mjs +6 -6
  5. package/esm2022/lib/apis/api-invoices.service.mjs +69 -9
  6. package/esm2022/lib/apis/api-open-items.service.mjs +6 -6
  7. package/esm2022/lib/apis/api-reports.service.mjs +11 -1
  8. package/esm2022/lib/apis/api-security.service.mjs +22 -33
  9. package/esm2022/lib/apis/api-shipments.service.mjs +3 -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 +1 -1
  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 +1 -1
  18. package/esm2022/lib/apis/models/api-open-items.types.mjs +1 -1
  19. package/esm2022/lib/apis/models/api-reports.types.mjs +1 -1
  20. package/esm2022/lib/apis/models/api-security.interfaces.mjs +1 -1
  21. package/esm2022/lib/apis/models/api-security.types.mjs +1 -1
  22. package/esm2022/lib/ngx-services.models.mjs +1 -1
  23. package/esm2022/public-api.mjs +4 -1
  24. package/fesm2022/experteam-mx-ngx-services.mjs +291 -137
  25. package/fesm2022/experteam-mx-ngx-services.mjs.map +1 -1
  26. package/lib/apis/api-billing-do.service.d.ts +24 -0
  27. package/lib/apis/api-billing-mx.service.d.ts +39 -0
  28. package/lib/apis/api-companies.service.d.ts +9 -9
  29. package/lib/apis/api-external-pickups.service.d.ts +6 -6
  30. package/lib/apis/api-invoices.service.d.ts +52 -9
  31. package/lib/apis/api-open-items.service.d.ts +7 -7
  32. package/lib/apis/api-reports.service.d.ts +7 -0
  33. package/lib/apis/api-security.service.d.ts +21 -29
  34. package/lib/apis/api-shipments.service.d.ts +2 -2
  35. package/lib/apis/models/api-billing.interfaces.d.ts +41 -0
  36. package/lib/apis/models/api-billing.types.d.ts +17 -0
  37. package/lib/apis/models/api-catalog.interfaces.d.ts +6 -0
  38. package/lib/apis/models/api-companies.types.d.ts +7 -13
  39. package/lib/apis/models/api-external-pickups.types.d.ts +4 -4
  40. package/lib/apis/models/api-invoices.interfaces.d.ts +35 -1
  41. package/lib/apis/models/api-invoices.types.d.ts +28 -5
  42. package/lib/apis/models/api-open-items.interfaces.d.ts +2 -2
  43. package/lib/apis/models/api-open-items.types.d.ts +2 -2
  44. package/lib/apis/models/api-reports.types.d.ts +2 -3
  45. package/lib/apis/models/api-security.interfaces.d.ts +0 -4
  46. package/lib/apis/models/api-security.types.d.ts +8 -8
  47. package/lib/ngx-services.models.d.ts +2 -0
  48. package/package.json +9 -1
  49. package/public-api.d.ts +3 -0
@@ -1,6 +1,6 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
2
  import { Environment } from '../ngx-services.models';
3
- import { CancelDeliveryConfirmationIn, CompleteDeliveryConfirmationIn, GenerateDeliveryConfirmationIn, KeyOTPOut } from './models/api-external-pickups.types';
3
+ import { DeliveryConfirmationCompleteIn, DeliveryConfirmationGenerateIn, DeliveryConfirmationGenerateOut, DeliveryConfirmationIn } from './models/api-external-pickups.types';
4
4
  import { Observable } from 'rxjs';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class ApiExternalPickupsService {
@@ -18,10 +18,10 @@ export declare class ApiExternalPickupsService {
18
18
  /**
19
19
  * Generates a delivery confirmation by sending the provided payload to the API.
20
20
  *
21
- * @param {GenerateDeliveryConfirmationIn} payload - The input payload required to generate the delivery confirmation.
22
- * @return {Observable<KeyOTPOut>} An observable that emits the generated delivery confirmation data.
21
+ * @param {DeliveryConfirmationGenerateIn} payload - The input payload required to generate the delivery confirmation.
22
+ * @return {Observable<DeliveryConfirmationGenerateOut>} An observable that emits the generated delivery confirmation data.
23
23
  */
24
- generateDeliveryConfirmation(payload: GenerateDeliveryConfirmationIn): Observable<KeyOTPOut>;
24
+ postDeliveryConfirmationGenerate(payload: DeliveryConfirmationGenerateIn): Observable<DeliveryConfirmationGenerateOut>;
25
25
  /**
26
26
  * Confirms the completion of a delivery operation by making a PATCH request.
27
27
  *
@@ -30,7 +30,7 @@ export declare class ApiExternalPickupsService {
30
30
  * @param {string} input.keyOTP - The one-time password (OTP) key associated with the delivery confirmation.
31
31
  * @return {Observable<Object>} - An observable containing the response data from the API.
32
32
  */
33
- completedDeliveryConfirmation({ keyOTP, operationId, }: CompleteDeliveryConfirmationIn): Observable<{}>;
33
+ patchDeliveryConfirmationComplete({ keyOTP, operationId, }: DeliveryConfirmationCompleteIn): Observable<{}>;
34
34
  /**
35
35
  * Cancels a delivery confirmation by sending an OTP and additional data to the server.
36
36
  *
@@ -39,7 +39,7 @@ export declare class ApiExternalPickupsService {
39
39
  * @param {Object} param0.body - Additional body data required for cancellation.
40
40
  * @return {Observable<Object>} An observable that emits the server's response when the cancellation is processed.
41
41
  */
42
- cancelDeliveryConfirmation({ otp, ...body }: CancelDeliveryConfirmationIn): Observable<{}>;
42
+ putDeliveryConfirmation({ otp, ...body }: DeliveryConfirmationIn): Observable<{}>;
43
43
  static ɵfac: i0.ɵɵFactoryDeclaration<ApiExternalPickupsService, never>;
44
44
  static ɵprov: i0.ɵɵInjectableDeclaration<ApiExternalPickupsService>;
45
45
  }
@@ -1,7 +1,8 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
2
  import { Observable } from 'rxjs';
3
3
  import { Environment } from '../ngx-services.models';
4
- import { AccountPaymentOperationIn, AccountPaymentOperationOut, CancelBillingIn, CancelPaymentReceiptIn, CollectionReceiptOut, OperationDocumentIn, OperationDocumentOut } from './models/api-invoices.types';
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;
@@ -19,22 +20,22 @@ export declare class ApiInvoicesService {
19
20
  * @param {OperationDocumentIn} body - The input data for the operation document.
20
21
  * @return {Observable<OperationDocumentOut>} An observable containing the processed operation document output.
21
22
  */
22
- operationDocument(body: OperationDocumentIn): Observable<OperationDocumentOut>;
23
+ postOperationDocument(body: OperationDocumentIn): Observable<OperationDocumentOut>;
23
24
  /**
24
25
  * Fetches and returns the collection receipt data for a given collection ID.
25
26
  *
26
27
  * @param {number} id - The unique identifier of the collection for which the receipt needs to be retrieved.
27
- * @return {Observable<CollectionReceiptOut>} An observable containing the collection receipt data.
28
+ * @return {Observable<PrintCollectionReceiptOut>} An observable containing the collection receipt data.
28
29
  */
29
- printCollectionReceipt(id: number): Observable<CollectionReceiptOut>;
30
+ getPrintCollectionReceipt(id: number): Observable<PrintCollectionReceiptOut>;
30
31
  /**
31
32
  * Handles the account payment operation by sending a POST request to the specified endpoint.
32
33
  * Processes the response and returns the operation data.
33
34
  *
34
- * @param {AccountPaymentOperationIn} body The payload containing information for the account payment operation.
35
- * @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.
36
37
  */
37
- accountPaymentOperation(body: AccountPaymentOperationIn): Observable<AccountPaymentOperationOut>;
38
+ postOperationAccountPayment(body: OperationAccountPaymentIn): Observable<OperationAccountPaymentOut>;
38
39
  /**
39
40
  * Cancels a payment receipt based on the provided input.
40
41
  * This method sends a POST request to cancel a document.
@@ -42,14 +43,56 @@ export declare class ApiInvoicesService {
42
43
  * @param body The data required to cancel the payment receipt, encapsulated in a CancelPaymentReceiptIn object.
43
44
  * @return An Observable representing the result of the cancellation. Emits an empty object on success.
44
45
  */
45
- cancelPaymentReceipt(body: CancelPaymentReceiptIn): Observable<{}>;
46
+ postOperationCancelDocument(body: CancelPaymentReceiptIn): Observable<{}>;
46
47
  /**
47
48
  * Cancels an invoice based on the provided invoice ID and additional parameters.
48
49
  *
49
50
  * @param {Object} parameters - The parameters required to cancel the invoice, encapsulated in a CancelBillingIn object.
50
51
  * @return {Observable<Object>} An observable that emits the response of the cancellation operation.
51
52
  */
52
- 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>;
53
96
  static ɵfac: i0.ɵɵFactoryDeclaration<ApiInvoicesService, never>;
54
97
  static ɵprov: i0.ɵɵInjectableDeclaration<ApiInvoicesService>;
55
98
  }
@@ -1,9 +1,9 @@
1
1
  import { Environment } from '../ngx-services.models';
2
2
  import { HttpClient } from '@angular/common/http';
3
3
  import { QueryParams } from './models/api.models';
4
- import { OpenItemsOut, PaymentOpenItemOut, PaymentOtherInvoiceOut } from './models/api-open-items.types';
4
+ import { OpenItemsOut, OtherInvoiceOut, PaymentOut } from './models/api-open-items.types';
5
5
  import { Observable } from 'rxjs';
6
- import { PaymentOpenItemIn, PaymentOtherInvoiceIn } from './models/api-open-items.interfaces';
6
+ import { OtherInvoiceIn, PaymentOpenItemIn } from './models/api-open-items.interfaces';
7
7
  import * as i0 from "@angular/core";
8
8
  export declare class ApiOpenItemsService {
9
9
  private environments;
@@ -26,16 +26,16 @@ export declare class ApiOpenItemsService {
26
26
  * Processes a payment for an open item.
27
27
  *
28
28
  * @param {PaymentOpenItemIn} body - The payment details for the open item.
29
- * @return {Observable<PaymentOpenItemOut>} An observable that emits the result of the payment processing.
29
+ * @return {Observable<PaymentOut>} An observable that emits the result of the payment processing.
30
30
  */
31
- paymentOpenItem(body: PaymentOpenItemIn): Observable<PaymentOpenItemOut>;
31
+ postPayment(body: PaymentOpenItemIn): Observable<PaymentOut>;
32
32
  /**
33
33
  * Processes a payment for other invoice.
34
34
  *
35
- * @param {PaymentOtherInvoiceIn} body - The payment details for the other invoice.
36
- * @return {Observable<PaymentOtherInvoiceOut>} An observable that emits the result of the payment processing.
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
37
  */
38
- paymentOtherInvoice(body: PaymentOtherInvoiceIn): Observable<PaymentOtherInvoiceOut>;
38
+ postOtherInvoice(body: OtherInvoiceIn): Observable<OtherInvoiceOut>;
39
39
  static ɵfac: i0.ɵɵFactoryDeclaration<ApiOpenItemsService, never>;
40
40
  static ɵprov: i0.ɵɵInjectableDeclaration<ApiOpenItemsService>;
41
41
  }
@@ -37,6 +37,13 @@ export declare class ApiReportsService {
37
37
  * @return {Observable<ShipmentsReportOut>} An observable that emits the shipment report data based on the filter criteria.
38
38
  */
39
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>;
40
47
  static ɵfac: i0.ɵɵFactoryDeclaration<ApiReportsService, never>;
41
48
  static ɵprov: i0.ɵɵInjectableDeclaration<ApiReportsService>;
42
49
  }
@@ -1,10 +1,9 @@
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';
6
6
  import { CookieService } from 'ngx-cookie-service';
7
- import { ModulesOut } from './models/api-security.interfaces';
8
7
  import * as i0 from "@angular/core";
9
8
  export declare class ApiSecurityService {
10
9
  private environments;
@@ -24,9 +23,9 @@ export declare class ApiSecurityService {
24
23
  * @param {string} param0.username - The username of the user.
25
24
  * @param {string} param0.password - The password of the user.
26
25
  * @param {string} param0.role - The role of the user.
27
- * @return {Observable<LoginOut>} An observable emitting the login output object.
26
+ * @return {Observable<AuthLoginOut>} An observable emitting the login output object.
28
27
  */
29
- login({ username, password, role, }: LoginIn): Observable<LoginOut>;
28
+ postAuthLogin({ username, password, role, }: AuthLoginIn): Observable<AuthLoginOut>;
30
29
  /**
31
30
  * Logs out the current user by making a POST request to the logout endpoint.
32
31
  *
@@ -34,7 +33,7 @@ export declare class ApiSecurityService {
34
33
  *
35
34
  * @return {Observable<{}>} An observable that emits the server's response to the logout request.
36
35
  */
37
- logout(): Observable<{}>;
36
+ postAuthLogout(): Observable<{}>;
38
37
  /**
39
38
  * Creates a new session for a specified model.
40
39
  *
@@ -43,44 +42,44 @@ export declare class ApiSecurityService {
43
42
  * @param {string} params.modelId - The ID of the model.
44
43
  * @param {string} [params.token] - Optional authorization token.
45
44
  *
46
- * @return {Observable<CreateSessionOut>} An observable containing the created session details.
45
+ * @return {Observable<SessionOut>} An observable containing the created session details.
47
46
  */
48
- createSession({ modelType, modelId, token, }: CreateSessionIn): Observable<CreateSessionOut>;
47
+ postSession({ modelType, modelId, token, }: SessionIn): Observable<SessionOut>;
49
48
  /**
50
49
  * Fetches the authenticated user's information.
51
50
  * Sends a GET request to the endpoint '/auth/me' to retrieve information
52
51
  * about the currently authenticated user.
53
52
  *
54
- * @return {Observable<MeOut>} An observable that emits the authenticated user's data.
53
+ * @return {Observable<AuthMeOut>} An observable that emits the authenticated user's data.
55
54
  */
56
- me(): Observable<MeOut>;
55
+ getAuthMe(): Observable<AuthMeOut>;
57
56
  /**
58
57
  * Fetches the authenticated user's details from the server.
59
58
  *
60
59
  * @param token The JWT token used for authorization.
61
60
  * @return An Observable that emits the user's details encapsulated in a MeOut object.
62
61
  */
63
- otherMe(token: string): Observable<MeOut>;
62
+ getOtherMe(token: string): Observable<AuthMeOut>;
64
63
  /**
65
64
  * Fetches a user by their unique ID.
66
65
  *
67
66
  * @param {number} id - The unique identifier of the user to be fetched.
68
67
  * @return {Observable<GetUserOut>} An observable containing the user information.
69
68
  */
70
- user(id: number): Observable<GetUserOut>;
69
+ getUser(id: number): Observable<GetUserOut>;
71
70
  /**
72
71
  * Changes the language for the authenticated user.
73
72
  *
74
73
  * @param {Object} params - The input parameters for changing the language.
75
74
  * @param {string} params.languageId - The ID of the new language to be set.
76
- * @return {Observable<ApiSuccess<MeOut>>} An observable that emits the result of the language change request.
75
+ * @return {Observable<ApiSuccess<AuthMeOut>>} An observable that emits the result of the language change request.
77
76
  */
78
- changeLanguage({ languageId }: ChangeLanguageIn): Observable<MeOut>;
77
+ putChangeLanguage({ languageId }: ChangeLanguageIn): Observable<AuthMeOut>;
79
78
  /**
80
79
  * Retrieves a list of roles with their permissions.
81
80
  *
82
81
  * @param {QueryParams} params - The query parameters to filter the roles.
83
- * @returns {Observable<RolePermissionsIn[]>} An observable that emits an array of role permissions.
82
+ * @returns {Observable<RoleIn[]>} An observable that emits an array of role permissions.
84
83
  */
85
84
  getRoles(params: QueryParams): Observable<RolesOut>;
86
85
  /**
@@ -90,27 +89,20 @@ export declare class ApiSecurityService {
90
89
  * @returns {Observable<RoleTypesOut>} An observable containing the role types output.
91
90
  */
92
91
  getRoleTypes(params: QueryParams): Observable<RoleTypesOut>;
93
- /**
94
- * Retrieves the permissions for a module.
95
- *
96
- * @param {QueryParams} params - The query parameters to be sent with the request.
97
- * @returns {Observable<ModulePermissionsOut>} An observable containing the module permissions.
98
- */
99
- getPermissions(params: QueryParams): Observable<ModulePermissionsOut>;
100
92
  /**
101
93
  * Retrieves roles by the specified ID.
102
94
  *
103
- * @param params - The ID of the role to retrieve.
95
+ * @param id - The ID of the role to retrieve.
104
96
  * @returns An Observable that emits the role data.
105
97
  */
106
- getRolesById(params: number): Observable<RoleByIdOut>;
98
+ getRole(id: number): Observable<RoleOut>;
107
99
  /**
108
100
  * Creates a new role with the specified permissions.
109
101
  *
110
- * @param {RolePermissionsIn} body - The permissions and details for the new role.
111
- * @returns {Observable<ModulePermissionsOut>} An observable containing the created role's permissions.
102
+ * @param {RoleIn} body - The permissions and details for the new role.
103
+ * @returns {Observable<RoleOut>} An observable containing the created role's permissions.
112
104
  */
113
- createRole(body: RolePermissionsIn): Observable<ModulePermissionsOut>;
105
+ postRole(body: RoleIn): Observable<RoleOut>;
114
106
  /**
115
107
  * Updates the permissions of a specific role.
116
108
  *
@@ -118,14 +110,14 @@ export declare class ApiSecurityService {
118
110
  * @param body - The new permissions to assign to the role.
119
111
  * @returns An Observable that emits the updated module permissions.
120
112
  */
121
- updateRolePermissions(id: number, body: RolePermissionsIn): Observable<ModulePermissionsOut>;
113
+ putRole(id: number, body: RoleIn): Observable<RoleOut>;
122
114
  /**
123
115
  * Deletes the permissions associated with a specific role.
124
116
  *
125
117
  * @param {number} id - The unique identifier of the role whose permissions are to be deleted.
126
118
  * @returns {Observable<{}>} An observable that emits the result of the delete operation.
127
119
  */
128
- deleteRolePermissions(id: number): Observable<{}>;
120
+ deleteRole(id: number): Observable<{}>;
129
121
  /**
130
122
  * Retrieves a list of modules and permissions
131
123
  *
@@ -140,7 +132,7 @@ export declare class ApiSecurityService {
140
132
  * @param params.queryParams - The query parameters to filter the modules.
141
133
  * @returns Observable<ModulesOut[]> - An observable that emits an array of modules and permissions.
142
134
  */
143
- getModulesToken(params: {
135
+ getModulesByToken(params: {
144
136
  token: string;
145
137
  queryParams: QueryParams;
146
138
  }): Observable<ModulesOut>;
@@ -20,14 +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
24
  /**
25
25
  * Sends a POST request to the shipments manifest endpoint with the provided body.
26
26
  *
27
27
  * @param body - The request payload of type `ManifestMultipleIn`.
28
28
  * @returns An observable that emits the response data of type `ManifestMultipleOut`.
29
29
  */
30
- manifestMultiple(body: ManifestMultipleIn): Observable<ManifestMultipleOut>;
30
+ postManifestMultiple(body: ManifestMultipleIn): Observable<ManifestMultipleOut>;
31
31
  static ɵfac: i0.ɵɵFactoryDeclaration<ApiShipmentsService, never>;
32
32
  static ɵprov: i0.ɵɵInjectableDeclaration<ApiShipmentsService>;
33
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[];
@@ -1,7 +1,7 @@
1
- export type KeyOTPOut = {
1
+ export type DeliveryConfirmationGenerateOut = {
2
2
  code: string;
3
3
  };
4
- export type GenerateDeliveryConfirmationIn = {
4
+ export type DeliveryConfirmationGenerateIn = {
5
5
  operation_id: number;
6
6
  signature: {
7
7
  client: {
@@ -16,11 +16,11 @@ export type GenerateDeliveryConfirmationIn = {
16
16
  }[];
17
17
  };
18
18
  };
19
- export type CompleteDeliveryConfirmationIn = {
19
+ export type DeliveryConfirmationCompleteIn = {
20
20
  operationId: number;
21
21
  keyOTP: string;
22
22
  };
23
- export type CancelDeliveryConfirmationIn = {
23
+ export type DeliveryConfirmationIn = {
24
24
  signature: {
25
25
  status: string;
26
26
  operation_id: number;
@@ -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,7 +37,7 @@ 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;
@@ -71,3 +72,25 @@ export type OperationDocumentIn = {
71
72
  export type OperationDocumentOut = {
72
73
  document: Document;
73
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
+ };
@@ -1,4 +1,4 @@
1
- import { CustomerOtherInvoice, CustomerOpenItem, OpenItems, OtherInvoices, PaymentDetail } from './api-open-items.types';
1
+ import { CustomerOpenItem, CustomerOtherInvoice, OpenItems, OtherInvoices, PaymentDetail } from './api-open-items.types';
2
2
  export interface OpenItem {
3
3
  id: number;
4
4
  invoice_number: string;
@@ -27,6 +27,6 @@ export interface OpenItemIn {
27
27
  export interface PaymentOpenItemIn extends OpenItemIn {
28
28
  open_items: OpenItems[];
29
29
  }
30
- export interface PaymentOtherInvoiceIn extends OpenItemIn {
30
+ export interface OtherInvoiceIn extends OpenItemIn {
31
31
  other_invoices: OtherInvoices[];
32
32
  }
@@ -50,9 +50,9 @@ export type PaymentDetail = {
50
50
  [key: string]: string;
51
51
  };
52
52
  };
53
- export type PaymentOpenItemOut = {
53
+ export type PaymentOut = {
54
54
  document: Document;
55
55
  };
56
- export type PaymentOtherInvoiceOut = {
56
+ export type OtherInvoiceOut = {
57
57
  document: Document;
58
58
  };
@@ -1,9 +1,8 @@
1
- import { LaravelModel } from './api.models';
2
1
  import { CollectionPayment, Shipment } from './api-reports.interfaces';
3
- export interface CollectionPaymentsOut extends LaravelModel {
2
+ export type CollectionPaymentsOut = {
4
3
  collection_payments: CollectionPayment[];
5
4
  total: number;
6
- }
5
+ };
7
6
  export type ShipmentsReportOut = {
8
7
  shipments: Shipment[];
9
8
  total: number;
@@ -64,7 +64,3 @@ export interface ModuleType extends LaravelModel {
64
64
  name: string;
65
65
  description: string;
66
66
  }
67
- export interface ModulesOut {
68
- modules: Module[];
69
- total: number;
70
- }