@experteam-mx/ngx-services 18.3.7 → 18.4.0

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 (61) hide show
  1. package/esm2022/lib/apis/api-companies.service.mjs +24 -23
  2. package/esm2022/lib/apis/api-invoices.service.mjs +11 -81
  3. package/esm2022/lib/apis/api-reports.service.mjs +4 -50
  4. package/esm2022/lib/apis/api-security.service.mjs +35 -50
  5. package/esm2022/lib/apis/api-shipments.service.mjs +5 -15
  6. package/esm2022/lib/apis/models/api-catalog.interfaces.mjs +1 -1
  7. package/esm2022/lib/apis/models/api-companies.types.mjs +1 -1
  8. package/esm2022/lib/apis/models/api-invoices.interfaces.mjs +1 -1
  9. package/esm2022/lib/apis/models/api-invoices.types.mjs +1 -1
  10. package/esm2022/lib/apis/models/api-reports.interfaces.mjs +1 -1
  11. package/esm2022/lib/apis/models/api-reports.types.mjs +1 -1
  12. package/esm2022/lib/apis/models/api-security.types.mjs +1 -1
  13. package/esm2022/lib/apis/models/api-shipments.types.mjs +1 -1
  14. package/esm2022/lib/cypher/crypto.service.mjs +3 -3
  15. package/esm2022/lib/interceptors/api-headers.interceptor.mjs +22 -36
  16. package/esm2022/lib/interceptors/api-token.interceptor.mjs +25 -39
  17. package/esm2022/lib/interceptors/http-caching.interceptor.mjs +30 -43
  18. package/esm2022/lib/ngx-services.models.mjs +11 -2
  19. package/esm2022/lib/ngx-services.module.mjs +4 -4
  20. package/esm2022/public-api.mjs +2 -13
  21. package/fesm2022/experteam-mx-ngx-services.mjs +227 -729
  22. package/fesm2022/experteam-mx-ngx-services.mjs.map +1 -1
  23. package/lib/apis/api-companies.service.d.ts +9 -9
  24. package/lib/apis/api-invoices.service.d.ts +9 -59
  25. package/lib/apis/api-reports.service.d.ts +1 -24
  26. package/lib/apis/api-security.service.d.ts +27 -38
  27. package/lib/apis/api-shipments.service.d.ts +3 -10
  28. package/lib/apis/models/api-catalog.interfaces.d.ts +0 -6
  29. package/lib/apis/models/api-companies.types.d.ts +13 -7
  30. package/lib/apis/models/api-invoices.interfaces.d.ts +1 -35
  31. package/lib/apis/models/api-invoices.types.d.ts +5 -57
  32. package/lib/apis/models/api-reports.interfaces.d.ts +0 -149
  33. package/lib/apis/models/api-reports.types.d.ts +4 -13
  34. package/lib/apis/models/api-security.types.d.ts +8 -8
  35. package/lib/apis/models/api-shipments.types.d.ts +0 -41
  36. package/lib/interceptors/api-headers.interceptor.d.ts +11 -16
  37. package/lib/interceptors/api-token.interceptor.d.ts +10 -20
  38. package/lib/interceptors/http-caching.interceptor.d.ts +11 -19
  39. package/lib/ngx-services.models.d.ts +26 -11
  40. package/package.json +2 -11
  41. package/public-api.d.ts +1 -10
  42. package/esm2022/lib/apis/api-billing-do.service.mjs +0 -41
  43. package/esm2022/lib/apis/api-billing-mx.service.mjs +0 -62
  44. package/esm2022/lib/apis/api-external-pickups.service.mjs +0 -72
  45. package/esm2022/lib/apis/api-open-items.service.mjs +0 -62
  46. package/esm2022/lib/apis/models/api-billing.interfaces.mjs +0 -2
  47. package/esm2022/lib/apis/models/api-billing.types.mjs +0 -2
  48. package/esm2022/lib/apis/models/api-external-pickups.types.mjs +0 -2
  49. package/esm2022/lib/apis/models/api-open-items.interfaces.mjs +0 -2
  50. package/esm2022/lib/apis/models/api-open-items.types.mjs +0 -2
  51. package/esm2022/lib/websockets/web-sockets.service.mjs +0 -115
  52. package/lib/apis/api-billing-do.service.d.ts +0 -24
  53. package/lib/apis/api-billing-mx.service.d.ts +0 -39
  54. package/lib/apis/api-external-pickups.service.d.ts +0 -45
  55. package/lib/apis/api-open-items.service.d.ts +0 -41
  56. package/lib/apis/models/api-billing.interfaces.d.ts +0 -41
  57. package/lib/apis/models/api-billing.types.d.ts +0 -17
  58. package/lib/apis/models/api-external-pickups.types.d.ts +0 -31
  59. package/lib/apis/models/api-open-items.interfaces.d.ts +0 -32
  60. package/lib/apis/models/api-open-items.types.d.ts +0 -58
  61. package/lib/websockets/web-sockets.service.d.ts +0 -49
@@ -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, ExistPendingInvoicesIn, ExistPendingPaymentsIn, ShipmentsReportOut } from './models/api-reports.types';
5
+ import { CollectionPaymentsOut } from './models/api-reports.types';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class ApiReportsService {
8
8
  private environments;
@@ -21,29 +21,6 @@ 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>;
47
24
  static ɵfac: i0.ɵɵFactoryDeclaration<ApiReportsService, never>;
48
25
  static ɵprov: i0.ɵɵInjectableDeclaration<ApiReportsService>;
49
26
  }
@@ -1,5 +1,5 @@
1
1
  import { QueryParams } from './models/api.models';
2
- import { AuthLoginIn, AuthLoginOut, AuthMeOut, ChangeLanguageIn, GetUserOut, ModulesOut, RoleIn, RoleOut, RolesOut, RoleTypesOut, SessionIn, SessionOut } from './models/api-security.types';
2
+ import { ChangeLanguageIn, CreateSessionIn, CreateSessionOut, GetUserOut, LoginIn, LoginOut, MeOut, ModulePermissionsOut, RoleByIdOut, RolePermissionsIn, RolesOut, RoleTypesOut } 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';
@@ -23,9 +23,9 @@ export declare class ApiSecurityService {
23
23
  * @param {string} param0.username - The username of the user.
24
24
  * @param {string} param0.password - The password of the user.
25
25
  * @param {string} param0.role - The role of the user.
26
- * @return {Observable<AuthLoginOut>} An observable emitting the login output object.
26
+ * @return {Observable<LoginOut>} An observable emitting the login output object.
27
27
  */
28
- postAuthLogin({ username, password, role, }: AuthLoginIn): Observable<AuthLoginOut>;
28
+ login({ username, password, role, }: LoginIn): Observable<LoginOut>;
29
29
  /**
30
30
  * Logs out the current user by making a POST request to the logout endpoint.
31
31
  *
@@ -33,7 +33,7 @@ export declare class ApiSecurityService {
33
33
  *
34
34
  * @return {Observable<{}>} An observable that emits the server's response to the logout request.
35
35
  */
36
- postAuthLogout(): Observable<{}>;
36
+ logout(): Observable<{}>;
37
37
  /**
38
38
  * Creates a new session for a specified model.
39
39
  *
@@ -42,44 +42,44 @@ export declare class ApiSecurityService {
42
42
  * @param {string} params.modelId - The ID of the model.
43
43
  * @param {string} [params.token] - Optional authorization token.
44
44
  *
45
- * @return {Observable<SessionOut>} An observable containing the created session details.
45
+ * @return {Observable<CreateSessionOut>} An observable containing the created session details.
46
46
  */
47
- postSession({ modelType, modelId, token, }: SessionIn): Observable<SessionOut>;
47
+ createSession({ modelType, modelId, token, }: CreateSessionIn): Observable<CreateSessionOut>;
48
48
  /**
49
49
  * Fetches the authenticated user's information.
50
50
  * Sends a GET request to the endpoint '/auth/me' to retrieve information
51
51
  * about the currently authenticated user.
52
52
  *
53
- * @return {Observable<AuthMeOut>} An observable that emits the authenticated user's data.
53
+ * @return {Observable<MeOut>} An observable that emits the authenticated user's data.
54
54
  */
55
- getAuthMe(): Observable<AuthMeOut>;
55
+ me(): Observable<MeOut>;
56
56
  /**
57
57
  * Fetches the authenticated user's details from the server.
58
58
  *
59
59
  * @param token The JWT token used for authorization.
60
60
  * @return An Observable that emits the user's details encapsulated in a MeOut object.
61
61
  */
62
- getOtherMe(token: string): Observable<AuthMeOut>;
62
+ otherMe(token: string): Observable<MeOut>;
63
63
  /**
64
64
  * Fetches a user by their unique ID.
65
65
  *
66
66
  * @param {number} id - The unique identifier of the user to be fetched.
67
67
  * @return {Observable<GetUserOut>} An observable containing the user information.
68
68
  */
69
- getUser(id: number): Observable<GetUserOut>;
69
+ user(id: number): Observable<GetUserOut>;
70
70
  /**
71
71
  * Changes the language for the authenticated user.
72
72
  *
73
73
  * @param {Object} params - The input parameters for changing the language.
74
74
  * @param {string} params.languageId - The ID of the new language to be set.
75
- * @return {Observable<ApiSuccess<AuthMeOut>>} An observable that emits the result of the language change request.
75
+ * @return {Observable<ApiSuccess<MeOut>>} An observable that emits the result of the language change request.
76
76
  */
77
- putChangeLanguage({ languageId }: ChangeLanguageIn): Observable<AuthMeOut>;
77
+ changeLanguage({ languageId }: ChangeLanguageIn): Observable<MeOut>;
78
78
  /**
79
79
  * Retrieves a list of roles with their permissions.
80
80
  *
81
81
  * @param {QueryParams} params - The query parameters to filter the roles.
82
- * @returns {Observable<RoleIn[]>} An observable that emits an array of role permissions.
82
+ * @returns {Observable<RolePermissionsIn[]>} An observable that emits an array of role permissions.
83
83
  */
84
84
  getRoles(params: QueryParams): Observable<RolesOut>;
85
85
  /**
@@ -89,20 +89,27 @@ export declare class ApiSecurityService {
89
89
  * @returns {Observable<RoleTypesOut>} An observable containing the role types output.
90
90
  */
91
91
  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>;
92
99
  /**
93
100
  * Retrieves roles by the specified ID.
94
101
  *
95
- * @param id - The ID of the role to retrieve.
102
+ * @param params - The ID of the role to retrieve.
96
103
  * @returns An Observable that emits the role data.
97
104
  */
98
- getRole(id: number): Observable<RoleOut>;
105
+ getRolesById(params: number): Observable<RoleByIdOut>;
99
106
  /**
100
107
  * Creates a new role with the specified permissions.
101
108
  *
102
- * @param {RoleIn} body - The permissions and details for the new role.
103
- * @returns {Observable<RoleOut>} An observable containing the created role's permissions.
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
111
  */
105
- postRole(body: RoleIn): Observable<RoleOut>;
112
+ createRole(body: RolePermissionsIn): Observable<ModulePermissionsOut>;
106
113
  /**
107
114
  * Updates the permissions of a specific role.
108
115
  *
@@ -110,32 +117,14 @@ export declare class ApiSecurityService {
110
117
  * @param body - The new permissions to assign to the role.
111
118
  * @returns An Observable that emits the updated module permissions.
112
119
  */
113
- putRole(id: number, body: RoleIn): Observable<RoleOut>;
120
+ updateRolePermissions(id: number, body: RolePermissionsIn): Observable<ModulePermissionsOut>;
114
121
  /**
115
122
  * Deletes the permissions associated with a specific role.
116
123
  *
117
124
  * @param {number} id - The unique identifier of the role whose permissions are to be deleted.
118
125
  * @returns {Observable<{}>} An observable that emits the result of the delete operation.
119
126
  */
120
- deleteRole(id: number): Observable<{}>;
121
- /**
122
- * Retrieves a list of modules and permissions
123
- *
124
- * @param queryParams - The query parameters to filter the modules.
125
- * @returns Observable<ModulesOut[]> - An observable that emits an array of modules and permissions.
126
- */
127
- getModules(queryParams: QueryParams): Observable<ModulesOut>;
128
- /**
129
- * Retrieves a list of modules and permissions
130
- *
131
- * @param params.token - Custom token for authorization.
132
- * @param params.queryParams - The query parameters to filter the modules.
133
- * @returns Observable<ModulesOut[]> - An observable that emits an array of modules and permissions.
134
- */
135
- getModulesByToken(params: {
136
- token: string;
137
- queryParams: QueryParams;
138
- }): Observable<ModulesOut>;
127
+ deleteRolePermissions(id: number): Observable<{}>;
139
128
  static ɵfac: i0.ɵɵFactoryDeclaration<ApiSecurityService, never>;
140
129
  static ɵprov: i0.ɵɵInjectableDeclaration<ApiSecurityService>;
141
130
  }
@@ -1,7 +1,7 @@
1
+ import { Environment } from '../ngx-services.models';
1
2
  import { HttpClient } from '@angular/common/http';
2
3
  import { Observable } from 'rxjs';
3
- import { Environment } from '../ngx-services.models';
4
- import { ManifestMultipleIn, ManifestMultipleOut, ValidateAccountIn, ValidateAccountOut } from './models/api-shipments.types';
4
+ import { 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,14 +20,7 @@ export declare class ApiShipmentsService {
20
20
  * @return {Observable<ValidateAccountIn>} An observable that emits the fetched parameter values
21
21
  * @param body
22
22
  */
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>;
23
+ validateAccount(body: ValidateAccountIn): Observable<ValidateAccountOut>;
31
24
  static ɵfac: i0.ɵɵFactoryDeclaration<ApiShipmentsService, never>;
32
25
  static ɵprov: i0.ɵɵInjectableDeclaration<ApiShipmentsService>;
33
26
  }
@@ -69,9 +69,3 @@ 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, Installation, Location, LocationEmployee, Parameter, SupplyEntity, Workflow } from './api-companies.interfaces';
1
+ import { Account, CompanyCountry, CompanyCountryTax, CountryExchange, CountryReference, CountryReferenceCurrency, Employee, Exchange, 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 SupplyEntitiesActivesOut = {
20
+ export type SupplyEntitiesOut = {
21
21
  supply_entities: SupplyEntity[];
22
22
  total: number;
23
23
  };
@@ -44,17 +44,25 @@ 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 = {
47
55
  exchanges: CountryExchange[];
48
56
  total: number;
49
57
  };
50
- export type AccountEntitiesActivesOut = {
58
+ export type AccountEntitiesOut = {
51
59
  account_entities: Account[];
52
60
  total: number;
53
61
  };
54
62
  export type ParametersIn = {
55
63
  paramNames: string[];
56
64
  };
57
- export type ParametersValuesOut = {
65
+ export type ParametersOut = {
58
66
  parameters: Parameter[];
59
67
  total: number;
60
68
  };
@@ -62,9 +70,7 @@ export type ParameterValueIn = {
62
70
  paramName: string;
63
71
  };
64
72
  export type ParameterValueOut = {
65
- value: string | boolean | number | {
66
- [key: string]: (string | boolean | number)[];
67
- };
73
+ value: any;
68
74
  };
69
75
  export type CountryReferencesOut = {
70
76
  country_references: CountryReference[];
@@ -1,6 +1,6 @@
1
1
  import { LaravelModel } from './api.models';
2
- import { IdentificationType } from './api-catalog.interfaces';
3
2
  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,37 +137,3 @@ 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,6 +1,5 @@
1
- import { Customer, CustomerType, Document } from './api-invoices.interfaces';
2
- import { CustomerCountryDocumentType } from './api-billing.interfaces';
3
- export interface OperationAccountPaymentIn {
1
+ import { Document } from './api-invoices.interfaces';
2
+ export interface AccountPaymentOperationIn {
4
3
  document_type_range_id: number | null;
5
4
  document_number: string | null;
6
5
  observation: string | null;
@@ -25,11 +24,11 @@ export type AccountPayment = {
25
24
  status?: boolean;
26
25
  details?: {};
27
26
  };
28
- export interface OperationAccountPaymentOut {
27
+ export interface AccountPaymentOperationOut {
29
28
  document: Document;
30
29
  transaction_id: string;
31
30
  }
32
- export type PrintCollectionReceiptOut = {
31
+ export type CollectionReceiptOut = {
33
32
  collection_receipt: string;
34
33
  };
35
34
  export type CancelPaymentReceiptIn = {
@@ -37,60 +36,9 @@ export type CancelPaymentReceiptIn = {
37
36
  is_canceled_invoice: boolean;
38
37
  cancellation_reason_id: number;
39
38
  };
40
- export type OperationCancelBillingIn = {
39
+ export type CancelBillingIn = {
41
40
  invoiceId: number;
42
41
  cancellation_reason_id: number;
43
42
  cancel_payment: boolean;
44
43
  send_shipments: boolean;
45
44
  };
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
- };
@@ -1,5 +1,4 @@
1
1
  import { LaravelModel, Translations } from './api.models';
2
- import { DocumentPayment } from './api-invoices.interfaces';
3
2
  export interface CollectionPayment extends LaravelModel {
4
3
  _id: number;
5
4
  country_code: string;
@@ -46,151 +45,3 @@ export interface DocumentCategory extends LaravelModel {
46
45
  updated_at: string;
47
46
  translations: Translations;
48
47
  }
49
- export interface Shipment {
50
- id: number;
51
- document_id: number;
52
- shipment_scope_name: string;
53
- is_document: boolean;
54
- origin_service_area_code: string;
55
- origin_facility_code: string;
56
- destination_facility_code: string;
57
- destination_service_area_code: string;
58
- shipment_pieces_tracking_numbers: string[];
59
- shipment_tracking_number: string;
60
- shipper_full_name: string;
61
- shipper_company_name: string;
62
- shipper_email: string;
63
- shipper_phone_number: string;
64
- shipper_phone_code: string;
65
- shipper_full_phone_number: string;
66
- shipper_address_line1: string;
67
- shipper_address_line2: string;
68
- shipper_city_name: string;
69
- shipper_state_name: string;
70
- shipper_state_code: string;
71
- shipper_postal_code: string;
72
- receiver_full_name: string;
73
- receiver_company_name: string;
74
- receiver_address_line1: string;
75
- receiver_address_line2: string;
76
- receiver_city_name: string;
77
- receiver_state_name: string;
78
- receiver_state_code: string;
79
- receiver_postal_code: string;
80
- shipper_account: string;
81
- promotion_code: string;
82
- customer_identification_type_id: number;
83
- customer_identification_number: string;
84
- customer_email: string;
85
- customer_full_phone_number: string;
86
- price_override_approver_id: number;
87
- price_override_reason_id: number;
88
- price_override_approver_name: string;
89
- price_override_reason_name: string;
90
- is_proforma: boolean;
91
- is_kiosk: boolean;
92
- to_landing: boolean;
93
- is_price_override: boolean;
94
- is_promotion_code: boolean;
95
- is_retail_rate: boolean;
96
- payment_type_1: string;
97
- payment_code_1: string;
98
- amount_1: number;
99
- reference_1: string;
100
- payment_type_2: string;
101
- payment_code_2: string;
102
- amount_2: number;
103
- reference_2: string;
104
- document_payments?: DocumentPayment[];
105
- location_id: number;
106
- installation_id: number;
107
- user_id: number;
108
- user_username: string;
109
- company_id: number;
110
- country_id: number;
111
- company_country_id: number;
112
- country_name: string;
113
- company_name: string;
114
- country_code: string;
115
- location_name: string;
116
- location_facility_code: string;
117
- installation_number: number;
118
- product_global_code: string;
119
- product_local_code: string;
120
- shipment_gmt_offset: string;
121
- shipment_pieces_number: number;
122
- shipment_bill_weight: number;
123
- total_published_value: number;
124
- total_partner_account_value: number;
125
- question_id: number;
126
- question_description: string;
127
- question_type: string;
128
- amount_collected: number;
129
- shipment_value: number;
130
- declared_value: number;
131
- insured_value: number;
132
- shipment_status_id: number;
133
- transaction_id: string;
134
- shipment_type: string;
135
- ein_number: string;
136
- itn_number: string;
137
- created_at: string;
138
- updated_at: string;
139
- retail_rate_adjustment: number;
140
- shipment_status_code: string;
141
- shipment_status_description: string;
142
- shipment_status_translations: {
143
- description: {
144
- [key: string]: string;
145
- };
146
- };
147
- authorization_numbers: string[];
148
- is_term_condition: boolean;
149
- is_marketing_consent: boolean;
150
- is_manual: boolean;
151
- commercial_invoice: boolean;
152
- shipment_id: number;
153
- date: string;
154
- date_og: string;
155
- invoice_document_id?: number | null;
156
- currency_code: string | null;
157
- send_to_api_inventories: boolean;
158
- selected?: boolean;
159
- delivery_date_time: string;
160
- product_subtotal: number;
161
- product_tax: number;
162
- product_total: number;
163
- product_taxes: {
164
- code: string;
165
- percent: number;
166
- base_amount: number;
167
- amount: number;
168
- }[];
169
- shipment_company_country_extra_charges: {
170
- _id: number;
171
- subtotal: number;
172
- tax: number;
173
- total: number;
174
- extra_charge_id: number;
175
- taxes: {
176
- code: string;
177
- percent: number;
178
- base_amount: number;
179
- amount: number;
180
- }[];
181
- created_at: string;
182
- updated_at: string;
183
- global_service_code: string;
184
- local_service_code: string;
185
- global_service_name: string;
186
- local_service_name: string;
187
- is_discount: false;
188
- }[];
189
- additional_documents: {
190
- country_id: number;
191
- include_indemnity_letter: boolean;
192
- include_pdf: boolean;
193
- shipment_content_type_id: number;
194
- shipment_scope_id: number;
195
- };
196
- }
@@ -1,15 +1,6 @@
1
- import { CollectionPayment, Shipment } from './api-reports.interfaces';
2
- export type CollectionPaymentsOut = {
1
+ import { LaravelModel } from './api.models';
2
+ import { CollectionPayment } from './api-reports.interfaces';
3
+ export interface CollectionPaymentsOut extends LaravelModel {
3
4
  collection_payments: CollectionPayment[];
4
5
  total: number;
5
- };
6
- export type ShipmentsReportOut = {
7
- shipments: Shipment[];
8
- total: number;
9
- };
10
- export type ExistPendingPaymentsIn = {
11
- installation_id: number;
12
- };
13
- export type ExistPendingInvoicesIn = {
14
- installation_id: number;
15
- };
6
+ }
@@ -1,26 +1,26 @@
1
1
  import { Module, Role, RoleType, Session, User } from './api-security.interfaces';
2
- export type AuthLoginIn = {
2
+ export type LoginIn = {
3
3
  username: string;
4
4
  password: string;
5
5
  role?: string;
6
6
  };
7
- export type AuthLoginOut = {
7
+ export type LoginOut = {
8
8
  access_token: string;
9
9
  token_type: string;
10
10
  expires_in: number;
11
11
  };
12
- export type SessionIn = {
12
+ export type CreateSessionIn = {
13
13
  modelType: string;
14
14
  modelId: number;
15
15
  token?: string;
16
16
  };
17
- export type SessionOut = {
17
+ export type CreateSessionOut = {
18
18
  session: Session;
19
19
  };
20
20
  export type GetUserOut = {
21
21
  user: User;
22
22
  };
23
- export interface AuthMeOut extends GetUserOut {
23
+ export interface MeOut extends GetUserOut {
24
24
  }
25
25
  export type ChangeLanguageIn = {
26
26
  languageId: number;
@@ -36,10 +36,10 @@ export type Pivot = {
36
36
  module_id: string;
37
37
  permission_id: string;
38
38
  };
39
- export type RoleOut = {
39
+ export type RoleByIdOut = {
40
40
  role: Role;
41
41
  };
42
- export type RoleIn = {
42
+ export type RolePermissionsIn = {
43
43
  name: string;
44
44
  role_type_id: number;
45
45
  company_country_id: number;
@@ -51,7 +51,7 @@ export type RoleTypesOut = {
51
51
  role_types: RoleType[];
52
52
  total: number;
53
53
  };
54
- export type ModulesOut = {
54
+ export type ModulePermissionsOut = {
55
55
  modules: Module[];
56
56
  total: number;
57
57
  };
@@ -30,44 +30,3 @@ export type ValidateAccountOut = {
30
30
  account: AccountResponse;
31
31
  transactionId: string;
32
32
  };
33
- export type ManifestMultipleIn = {
34
- shipmentIds: number[];
35
- customer: {
36
- companyName: string;
37
- fullName: string;
38
- email: string;
39
- phoneCode: string;
40
- phoneNumber: string;
41
- addressLine1: string;
42
- addressLine2?: string;
43
- addressLine3?: string;
44
- identificationNumber?: string;
45
- identificationTypeId?: number;
46
- countryCode: string;
47
- stateCode?: string;
48
- postalCode?: string;
49
- cityName?: string;
50
- countyName?: string;
51
- };
52
- paymentDetails: {
53
- totalAmount: number;
54
- payments: {
55
- amount: number;
56
- received: number;
57
- countryReferenceCurrencyId: number;
58
- exchange: number;
59
- countryPaymentTypeId: number;
60
- dueDate: string;
61
- details: Record<string, string>;
62
- }[];
63
- };
64
- priceOverrideApproverId: number | null;
65
- priceOverrideReasonId: number | null;
66
- isPendingInvoice?: boolean;
67
- };
68
- export type ManifestMultipleOut = {
69
- shipmentManifests: {
70
- documentId: number;
71
- };
72
- transactionId: string;
73
- };