@experteam-mx/ngx-services 18.2.0 → 18.3.1

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 (45) hide show
  1. package/esm2022/lib/apis/api-companies.service.mjs +35 -24
  2. package/esm2022/lib/apis/api-invoices.service.mjs +74 -0
  3. package/esm2022/lib/apis/api-reports.service.mjs +43 -0
  4. package/esm2022/lib/apis/api-security.service.mjs +66 -2
  5. package/esm2022/lib/apis/api-shipments.service.mjs +43 -0
  6. package/esm2022/lib/apis/models/api-companies.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 +2 -0
  9. package/esm2022/lib/apis/models/api-invoices.types.mjs +2 -0
  10. package/esm2022/lib/apis/models/api-reports.interfaces.mjs +2 -0
  11. package/esm2022/lib/apis/models/api-reports.types.mjs +2 -0
  12. package/esm2022/lib/apis/models/api-security.interfaces.mjs +1 -1
  13. package/esm2022/lib/apis/models/api-security.types.mjs +1 -1
  14. package/esm2022/lib/apis/models/api-shipments.types.mjs +2 -0
  15. package/esm2022/lib/apis/models/api.models.mjs +1 -1
  16. package/esm2022/lib/cypher/crypto.service.mjs +4 -3
  17. package/esm2022/lib/helpers/http.mjs +4 -4
  18. package/esm2022/lib/interceptors/api-headers.interceptor.mjs +15 -11
  19. package/esm2022/lib/interceptors/api-token.interceptor.mjs +8 -7
  20. package/esm2022/lib/interceptors/http-caching.interceptor.mjs +15 -4
  21. package/esm2022/lib/ngx-services.models.mjs +1 -1
  22. package/esm2022/public-api.mjs +9 -2
  23. package/fesm2022/experteam-mx-ngx-services.mjs +289 -49
  24. package/fesm2022/experteam-mx-ngx-services.mjs.map +1 -1
  25. package/lib/apis/api-companies.service.d.ts +46 -39
  26. package/lib/apis/api-invoices.service.d.ts +48 -0
  27. package/lib/apis/api-reports.service.d.ts +26 -0
  28. package/lib/apis/api-security.service.d.ts +45 -1
  29. package/lib/apis/api-shipments.service.d.ts +26 -0
  30. package/lib/apis/models/api-companies.interfaces.d.ts +6 -193
  31. package/lib/apis/models/api-companies.types.d.ts +30 -22
  32. package/lib/apis/models/api-invoices.interfaces.d.ts +139 -0
  33. package/lib/apis/models/api-invoices.types.d.ts +44 -0
  34. package/lib/apis/models/api-reports.interfaces.d.ts +47 -0
  35. package/lib/apis/models/api-reports.types.d.ts +6 -0
  36. package/lib/apis/models/api-security.interfaces.d.ts +18 -7
  37. package/lib/apis/models/api-security.types.d.ts +27 -4
  38. package/lib/apis/models/api-shipments.types.d.ts +32 -0
  39. package/lib/apis/models/api.models.d.ts +5 -0
  40. package/lib/interceptors/api-headers.interceptor.d.ts +6 -5
  41. package/lib/interceptors/api-token.interceptor.d.ts +5 -5
  42. package/lib/interceptors/http-caching.interceptor.d.ts +8 -0
  43. package/lib/ngx-services.models.d.ts +6 -3
  44. package/package.json +9 -1
  45. package/public-api.d.ts +8 -1
@@ -1,4 +1,5 @@
1
- import { ChangeLanguageIn, CreateSessionIn, CreateSessionOut, GetUserOut, LoginIn, LoginOut, MeOut } from './models/api-security.types';
1
+ import { QueryParams } from './models/api.models';
2
+ import { ChangeLanguageIn, CreateSessionIn, CreateSessionOut, GetUserOut, LoginIn, LoginOut, MeOut, ModulePermissionsOut, RoleByIdOut, RolePermissionsIn, RoleTypesOut } from './models/api-security.types';
2
3
  import { HttpClient } from '@angular/common/http';
3
4
  import { Environment } from '../ngx-services.models';
4
5
  import { Observable } from 'rxjs';
@@ -74,6 +75,49 @@ export declare class ApiSecurityService {
74
75
  * @return {Observable<ApiSuccess<MeOut>>} An observable that emits the result of the language change request.
75
76
  */
76
77
  changeLanguage({ languageId }: ChangeLanguageIn): Observable<MeOut>;
78
+ /**
79
+ * Retrieves the role types from the API.
80
+ *
81
+ * @param {QueryParams} params - The query parameters to be sent with the request.
82
+ * @returns {Observable<RoleTypesOut>} An observable containing the role types output.
83
+ */
84
+ getRoleTypes(params: QueryParams): Observable<RoleTypesOut>;
85
+ /**
86
+ * Retrieves the permissions for a module.
87
+ *
88
+ * @param {QueryParams} params - The query parameters to be sent with the request.
89
+ * @returns {Observable<ModulePermissionsOut>} An observable containing the module permissions.
90
+ */
91
+ getPermissions(params: QueryParams): Observable<ModulePermissionsOut>;
92
+ /**
93
+ * Retrieves roles by the specified ID.
94
+ *
95
+ * @param params - The ID of the role to retrieve.
96
+ * @returns An Observable that emits the role data.
97
+ */
98
+ getRolesById(params: number): Observable<RoleByIdOut>;
99
+ /**
100
+ * Creates a new role with the specified permissions.
101
+ *
102
+ * @param {RolePermissionsIn} body - The permissions and details for the new role.
103
+ * @returns {Observable<ModulePermissionsOut>} An observable containing the created role's permissions.
104
+ */
105
+ createRole(body: RolePermissionsIn): Observable<ModulePermissionsOut>;
106
+ /**
107
+ * Updates the permissions of a specific role.
108
+ *
109
+ * @param id - The unique identifier of the role to update.
110
+ * @param body - The new permissions to assign to the role.
111
+ * @returns An Observable that emits the updated module permissions.
112
+ */
113
+ updateRolePermissions(id: number, body: RolePermissionsIn): Observable<ModulePermissionsOut>;
114
+ /**
115
+ * Deletes the permissions associated with a specific role.
116
+ *
117
+ * @param {number} id - The unique identifier of the role whose permissions are to be deleted.
118
+ * @returns {Observable<{}>} An observable that emits the result of the delete operation.
119
+ */
120
+ deleteRolePermissions(id: number): Observable<{}>;
77
121
  static ɵfac: i0.ɵɵFactoryDeclaration<ApiSecurityService, never>;
78
122
  static ɵprov: i0.ɵɵInjectableDeclaration<ApiSecurityService>;
79
123
  }
@@ -0,0 +1,26 @@
1
+ import { Environment } from '../ngx-services.models';
2
+ import { HttpClient } from '@angular/common/http';
3
+ import { Observable } from 'rxjs';
4
+ import { ValidateAccountIn, ValidateAccountOut } from './models/api-shipments.types';
5
+ import * as i0 from "@angular/core";
6
+ export declare class ApiShipmentsService {
7
+ private environments;
8
+ private http;
9
+ constructor(environments: Environment, http: HttpClient);
10
+ /**
11
+ * Retrieves the URL for the shipments API from the environment configurations.
12
+ *
13
+ * @return {string} The URL of the shipments API.
14
+ */
15
+ get url(): string;
16
+ /**
17
+ * Retrieves the parameter values based on the provided parameter names.
18
+ *
19
+ * @param {ValidateAccountIn} body - An object of parameter names for which the values need to be fetched.
20
+ * @return {Observable<ValidateAccountIn>} An observable that emits the fetched parameter values
21
+ * @param body
22
+ */
23
+ validateAccount(body: ValidateAccountIn): Observable<ValidateAccountOut>;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<ApiShipmentsService, never>;
25
+ static ɵprov: i0.ɵɵInjectableDeclaration<ApiShipmentsService>;
26
+ }
@@ -52,7 +52,7 @@ export interface CompanyCountryTax extends LaravelModel {
52
52
  tax_type: string;
53
53
  }
54
54
  export interface CountryCurrencyRate extends CountryReferenceCurrency {
55
- rate: number;
55
+ rate: string;
56
56
  }
57
57
  export interface CountryReference extends LaravelModel {
58
58
  language_id: number;
@@ -106,9 +106,13 @@ export interface Exchange extends LaravelModel {
106
106
  company_country_currency_id: number;
107
107
  valid_since: string;
108
108
  valid_until: string | null;
109
- value: number;
109
+ value: string;
110
110
  type: string;
111
111
  }
112
+ export interface CountryExchange extends Exchange {
113
+ currency: Currency;
114
+ country_reference_currency: CountryReferenceCurrency;
115
+ }
112
116
  export interface Installation extends LaravelModel {
113
117
  system_id: number;
114
118
  mac_address: string;
@@ -187,194 +191,3 @@ export interface Workflow {
187
191
  page: string;
188
192
  enabled: boolean;
189
193
  }
190
- export interface LocationEmployee extends LaravelModel {
191
- location_id: number;
192
- employee_id: number;
193
- is_active: boolean;
194
- is_supervisor: boolean;
195
- employee: Employee;
196
- location: Location;
197
- }
198
- export interface Employee extends LaravelModel {
199
- name: string;
200
- last_name: string;
201
- number: string;
202
- company_id: number;
203
- country_id: number;
204
- external: boolean;
205
- phone_code: string;
206
- phone_number: string;
207
- is_active: boolean;
208
- password: string;
209
- roles: string[];
210
- locations: Location[];
211
- }
212
- export interface Location extends LaravelModel {
213
- name: string;
214
- contact_name: string;
215
- email: string;
216
- facility_code: string;
217
- location_code: string;
218
- type: string;
219
- state_name: string;
220
- state_id: number;
221
- state_code: string;
222
- city_name: string;
223
- zip_code: string;
224
- county_name: string;
225
- address1: string;
226
- address2: string;
227
- address3: string;
228
- service_area_code: string;
229
- iata_code: string;
230
- phone_code: string;
231
- phone_number: string;
232
- gmt_offset: string;
233
- company_country_id: number;
234
- country_zone_id: number;
235
- country_region_id: number;
236
- management_area_id: number;
237
- google_maps_id: string;
238
- route_number: string;
239
- locker_enabled: boolean;
240
- queue_manager_enabled: boolean;
241
- commission_account: string;
242
- service_point_id: string;
243
- is_occurs: boolean;
244
- accounts: Account[];
245
- company_country: CompanyCountry;
246
- state: State;
247
- }
248
- export interface Company extends LaravelModel {
249
- id: number;
250
- created_at: string;
251
- updated_at: string;
252
- name: string;
253
- contact_name: string;
254
- contact_email: string;
255
- contact_phone: string;
256
- state: string;
257
- city: string;
258
- county_name: string;
259
- zip_code: string;
260
- address1: string;
261
- address2: string;
262
- address3: string;
263
- is_active: boolean;
264
- }
265
- export interface CompanyCountry extends LaravelModel {
266
- company_id: number;
267
- country_id: number;
268
- headquarters_city_code: string;
269
- lp_code: string;
270
- company: Company;
271
- contact_name: string;
272
- contact_email: string;
273
- contact_phone_code: string;
274
- contact_phone_number: string;
275
- state: string;
276
- city: string;
277
- zip_code: string;
278
- county_name: string;
279
- address1: string;
280
- address2: string;
281
- address3: string;
282
- }
283
- export interface Installation extends LaravelModel {
284
- system_id: number;
285
- mac_address: string;
286
- ip_address: string;
287
- location_id: number;
288
- }
289
- export interface SupplyEntity extends LaravelModel {
290
- name: string;
291
- description: string;
292
- country_id: number;
293
- enabled_for_dropoff: boolean;
294
- supply_type: SupplyType;
295
- supply_packing: SupplyPacking;
296
- }
297
- export interface SupplyType extends LaravelModel {
298
- name: string;
299
- }
300
- export interface SupplyPacking extends LaravelModel {
301
- value: number;
302
- weight: number;
303
- height: number;
304
- depth: number;
305
- width: number;
306
- emobile_code: string | null;
307
- }
308
- export interface Employee extends LaravelModel {
309
- name: string;
310
- last_name: string;
311
- number: string;
312
- company_id: number;
313
- country_id: number;
314
- external: boolean;
315
- phone_code: string;
316
- phone_number: string;
317
- is_active: boolean;
318
- password: string;
319
- roles: string[];
320
- locations: Location[];
321
- }
322
- export interface CountryReferenceCurrency extends LaravelModel {
323
- country_id: number;
324
- currency_id: number;
325
- is_local: boolean;
326
- can_transact: boolean;
327
- code: string;
328
- name: string;
329
- is_default: boolean;
330
- is_declared_insured: boolean;
331
- currency: Currency;
332
- }
333
- export interface CompanyCountryTax extends LaravelModel {
334
- code: string;
335
- name: string;
336
- percentage: number;
337
- company_country_id: number;
338
- shipment_scopes: number[];
339
- base_percentage: number;
340
- tax_type: string;
341
- }
342
- export interface Exchange extends LaravelModel {
343
- company_country_currency_id: number;
344
- valid_since: string;
345
- valid_until: string | null;
346
- value: number;
347
- type: string;
348
- }
349
- export interface Parameter {
350
- name: string;
351
- value: any;
352
- status?: string;
353
- }
354
- export interface CountryReference extends LaravelModel {
355
- language_id: number;
356
- decimal_point: number;
357
- decimal_separator: string;
358
- thousands_separator: string;
359
- use_billing: boolean;
360
- use_payments: boolean;
361
- restricted_import_countries: number[];
362
- currency_id: number;
363
- max_quantity_document_piece: number;
364
- max_quantity_package_piece: number;
365
- weight_restriction_piece: number;
366
- restriction_shipment: number;
367
- restriction_dimension: number;
368
- max_declared_value: number;
369
- territories: number[];
370
- some_openings: boolean;
371
- locale: string;
372
- country_id: number;
373
- label_printer_name: string;
374
- receipt_printer_name: string;
375
- others_printer_name: string;
376
- }
377
- export interface Workflow {
378
- page: string;
379
- enabled: boolean;
380
- }
@@ -1,75 +1,83 @@
1
- import { Account, CompanyCountry, CompanyCountryTax, CountryReference, CountryReferenceCurrency, Employee, Exchange, Installation, Location, LocationEmployee, Parameter, SupplyEntity, Workflow } from './api-companies.interfaces';
2
- export type LocationEmployeesData = {
1
+ import { Account, CompanyCountry, CompanyCountryTax, CountryExchange, CountryReference, CountryReferenceCurrency, Employee, Exchange, Installation, Location, LocationEmployee, Parameter, SupplyEntity, Workflow } from './api-companies.interfaces';
2
+ export type LocationEmployeesOut = {
3
3
  location_employees: LocationEmployee[];
4
4
  total: number;
5
5
  };
6
- export type InstallationsData = {
6
+ export type InstallationsOut = {
7
7
  installations: Installation[];
8
8
  total: number;
9
9
  };
10
- export type InstallationData = {
10
+ export type InstallationOut = {
11
11
  installation: Installation;
12
12
  };
13
- export type LocationsData = {
13
+ export type LocationsOut = {
14
14
  locations: Location[];
15
15
  total: number;
16
16
  };
17
- export type LocationData = {
17
+ export type LocationOut = {
18
18
  location: Location;
19
19
  };
20
- export type SupplyEntitiesData = {
20
+ export type SupplyEntitiesOut = {
21
21
  supply_entities: SupplyEntity[];
22
22
  total: number;
23
23
  };
24
- export type EmployeesData = {
24
+ export type EmployeesOut = {
25
25
  employees: Employee[];
26
26
  total: number;
27
27
  };
28
- export type EmployeeData = {
28
+ export type EmployeeOut = {
29
29
  employee: Employee;
30
30
  };
31
- export type CompanyCountriesData = {
31
+ export type CompanyCountriesOut = {
32
32
  company_countries: CompanyCountry[];
33
33
  total: number;
34
34
  };
35
- export type CompanyCountryData = {
35
+ export type CompanyCountryOut = {
36
36
  company_country: CompanyCountry;
37
37
  };
38
- export type CountryReferenceCurrenciesData = {
38
+ export type CountryReferenceCurrenciesOut = {
39
39
  country_reference_currencies: CountryReferenceCurrency[];
40
40
  total: number;
41
41
  };
42
- export type CompanyCountryTaxesData = {
42
+ export type CompanyCountryTaxesOut = {
43
43
  company_country_taxes: CompanyCountryTax[];
44
44
  total: number;
45
45
  };
46
- export type ExchangesData = {
46
+ export type ExchangesOut = {
47
47
  exchanges: Exchange[];
48
48
  total: number;
49
49
  };
50
- export type AccountEntitiesData = {
50
+ export type CountryExchangesData = {
51
+ exchanges: CountryExchange[];
52
+ total: number;
53
+ };
54
+ export type CountryExchangesOut = {
55
+ exchanges: CountryExchange[];
56
+ total: number;
57
+ };
58
+ export type AccountEntitiesOut = {
51
59
  account_entities: Account[];
52
60
  total: number;
53
61
  };
54
- export type ParametersProps = {
62
+ export type ParametersIn = {
55
63
  paramNames: string[];
56
64
  };
57
- export type ParametersData = {
65
+ export type ParametersOut = {
58
66
  parameters: Parameter[];
59
67
  total: number;
60
68
  };
61
- export type ParameterValueProps = {
69
+ export type ParameterValueIn = {
62
70
  paramName: string;
63
71
  };
64
- export type ParameterValueData = {
72
+ export type ParameterValueOut = {
65
73
  value: any;
66
74
  };
67
- export type CountryReferencesData = {
75
+ export type CountryReferencesOut = {
68
76
  country_references: CountryReference[];
69
77
  };
70
- export type CountryReferenceData = {
78
+ export type CountryReferenceOut = {
71
79
  country_reference: CountryReference;
72
80
  };
73
- export type WorkflowsData = {
81
+ export type WorkflowsOut = {
74
82
  workflow: Workflow[];
75
83
  };
@@ -0,0 +1,139 @@
1
+ import { LaravelModel } from './api.models';
2
+ export interface Document extends LaravelModel {
3
+ id: number;
4
+ document_type_range_id: number;
5
+ document_number: number;
6
+ document_prefix: string;
7
+ document_suffix: string;
8
+ document_number_original: number;
9
+ document_prefix_original: string;
10
+ document_suffix_original: string;
11
+ customer_id: number;
12
+ customer_company_name: string;
13
+ customer_email: string;
14
+ customer_address_line1: string;
15
+ customer_identification_number: string;
16
+ customer_identification_type_id: number;
17
+ provider_name: string;
18
+ provider_identification_number: number;
19
+ document_authorization_number: string;
20
+ provider_extra_fields: {
21
+ phone: string;
22
+ fax: string;
23
+ };
24
+ document_id: number;
25
+ created_at: string;
26
+ updated_at: string;
27
+ transaction_id: string;
28
+ extra_fields: {
29
+ observation: string;
30
+ document_date: string;
31
+ };
32
+ customer_address_line2: string;
33
+ customer_address_line3: string;
34
+ customer_postal_code: string;
35
+ customer_state: string;
36
+ customer_county_name: string;
37
+ customer_city_name: string;
38
+ customer_country_id: number;
39
+ status: number;
40
+ user_id: number;
41
+ customer_full_name: string;
42
+ customer_phone_code: string;
43
+ customer_phone_number: string;
44
+ gmt_offset: string;
45
+ customer_type_id: number;
46
+ customer_extra_fields: string;
47
+ installation_id: number;
48
+ exchange: number;
49
+ authorization_numbers: string;
50
+ extra_fields_json: string;
51
+ provider_extra_fields_json: string;
52
+ document_type_range: DocumentTypeRange;
53
+ items: DocumentItem[];
54
+ document_payments: DocumentPayment[];
55
+ payments: Payment[];
56
+ }
57
+ export interface DocumentTypeRange extends LaravelModel {
58
+ id: number;
59
+ provider_id: number;
60
+ model_type: string;
61
+ model_id: number;
62
+ init_number: number;
63
+ final_number: number;
64
+ current_number: number;
65
+ used_numbers: number;
66
+ min_until_mail: number;
67
+ prefix: string;
68
+ sap_prefix: string;
69
+ suffix: string;
70
+ sap_suffix: string;
71
+ external_generated: boolean;
72
+ authorization_number: string;
73
+ environment: string;
74
+ is_manual: boolean;
75
+ auto_activation: boolean;
76
+ activation_key: string;
77
+ authorization_label: string;
78
+ valid_since: string;
79
+ valid_until: string;
80
+ created_at: string;
81
+ updated_at: string;
82
+ is_active: boolean;
83
+ country_document_type_id: number;
84
+ }
85
+ export interface DocumentItem extends LaravelModel {
86
+ id: number;
87
+ document_id: number;
88
+ details: {
89
+ account: number;
90
+ country_reference_currency_id: number;
91
+ customer_company_name: string;
92
+ };
93
+ model_origin: string;
94
+ model_type: string;
95
+ model_id: number;
96
+ quantity: number;
97
+ unit_price: number;
98
+ subtotal: number;
99
+ tax_detail: {};
100
+ total: number;
101
+ created_at: string;
102
+ updated_at: string;
103
+ discount: 0;
104
+ details_json: string;
105
+ }
106
+ export interface DocumentPayment extends LaravelModel {
107
+ id: number;
108
+ document_id: number;
109
+ payment_id: number;
110
+ amount: number;
111
+ created_at: string;
112
+ updated_at: string;
113
+ payment: Payment;
114
+ }
115
+ export interface Payment extends LaravelModel {
116
+ id: number;
117
+ amount: number;
118
+ country_reference_currency_id: number;
119
+ exchange: number;
120
+ company_country_payment_type_id: number;
121
+ due_date: string;
122
+ received: number;
123
+ status: number;
124
+ details: {};
125
+ created_at: string;
126
+ updated_at: string;
127
+ transaction_id: string;
128
+ gmt_offset: string;
129
+ country_payment_type_id: number;
130
+ opening_id: number;
131
+ installation_id: number;
132
+ details_json: {};
133
+ payment_adjustment: {};
134
+ pivot: {
135
+ document_id: number;
136
+ payment_id: number;
137
+ amount: number;
138
+ };
139
+ }
@@ -0,0 +1,44 @@
1
+ import { Document } from './api-invoices.interfaces';
2
+ export interface AccountPaymentOperationIn {
3
+ document_type_range_id: number | null;
4
+ document_number: string | null;
5
+ observation: string | null;
6
+ document_date: string | null;
7
+ total_amount: number;
8
+ country_reference_currency_id: number;
9
+ customer: {
10
+ company_name: string;
11
+ full_name: string;
12
+ account_number: string;
13
+ country_id: number;
14
+ };
15
+ payments: AccountPayment[];
16
+ }
17
+ export type AccountPayment = {
18
+ country_payment_type_id: number;
19
+ country_reference_currency_id: number;
20
+ amount: number;
21
+ exchange: string;
22
+ due_date: string;
23
+ received: number;
24
+ status?: boolean;
25
+ details?: {};
26
+ };
27
+ export interface AccountPaymentOperationOut {
28
+ document: Document;
29
+ transaction_id: string;
30
+ }
31
+ export type CollectionReceiptOut = {
32
+ collection_receipt: string;
33
+ };
34
+ export type CancelPaymentReceiptIn = {
35
+ document_id: number;
36
+ is_canceled_invoice: boolean;
37
+ cancellation_reason_id: number;
38
+ };
39
+ export type CancelBillingIn = {
40
+ invoiceId: number;
41
+ cancellation_reason_id: number;
42
+ cancel_payment: boolean;
43
+ send_shipments: boolean;
44
+ };
@@ -0,0 +1,47 @@
1
+ import { LaravelModel, Translations } from './api.models';
2
+ export interface CollectionPayment extends LaravelModel {
3
+ _id: number;
4
+ country_code: string;
5
+ country_id: number;
6
+ country_name: string;
7
+ company_id: number;
8
+ company_name: string;
9
+ company_country_id: number;
10
+ installation_id: number;
11
+ installation_number: number;
12
+ location_facility_code: string;
13
+ location_id: number;
14
+ location_location_code: string;
15
+ location_name: string;
16
+ user_id: number;
17
+ user_username: string;
18
+ document_type_id: number;
19
+ document_type: DocumentType;
20
+ document_category_id: number;
21
+ document_category: DocumentCategory;
22
+ collection_origin: string;
23
+ collection_type: string;
24
+ receipt_number: string;
25
+ customer_name: string;
26
+ account: string;
27
+ amount: number;
28
+ currency_id: number;
29
+ currency_code: string;
30
+ }
31
+ export interface DocumentType extends LaravelModel {
32
+ _id: number;
33
+ name: string;
34
+ code: string;
35
+ movement_type: number;
36
+ local_code: string;
37
+ translations: Translations;
38
+ }
39
+ export interface DocumentCategory extends LaravelModel {
40
+ _id: number;
41
+ name: string;
42
+ is_electronic: true;
43
+ taxable: number;
44
+ created_at: string;
45
+ updated_at: string;
46
+ translations: Translations;
47
+ }
@@ -0,0 +1,6 @@
1
+ import { LaravelModel } from './api.models';
2
+ import { CollectionPayment } from './api-reports.interfaces';
3
+ export interface CollectionPaymentsOut extends LaravelModel {
4
+ collection_payments: CollectionPayment[];
5
+ total: number;
6
+ }
@@ -1,5 +1,6 @@
1
1
  import { LaravelModel } from './api.models';
2
2
  import { Language } from './api-catalog.interfaces';
3
+ import { Pivot } from './api-security.types';
3
4
  export interface Session extends LaravelModel {
4
5
  name: string;
5
6
  username: string;
@@ -20,13 +21,13 @@ export interface Session extends LaravelModel {
20
21
  session: Session;
21
22
  }
22
23
  export interface Role extends LaravelModel {
23
- code: string;
24
24
  name: string;
25
25
  guard_name: string;
26
- permissions: Permission[];
26
+ company_country_id: number;
27
27
  role_type_id: number;
28
+ regional_country_id: number | null;
28
29
  role_type: RoleType;
29
- company_country_id: number;
30
+ permissions: Permission[];
30
31
  }
31
32
  export interface RoleType extends LaravelModel {
32
33
  name: string;
@@ -35,10 +36,9 @@ export interface RoleType extends LaravelModel {
35
36
  export interface Permission extends LaravelModel {
36
37
  name: string;
37
38
  guard_name: string;
38
- pivot: {
39
- role_id: number;
40
- permission_id: number;
41
- };
39
+ description: string;
40
+ is_default: boolean;
41
+ pivot: Pivot;
42
42
  }
43
43
  export interface User extends LaravelModel {
44
44
  name: string;
@@ -53,3 +53,14 @@ export interface User extends LaravelModel {
53
53
  session: Session;
54
54
  language: Language;
55
55
  }
56
+ export interface Module extends LaravelModel {
57
+ name: string;
58
+ code: string;
59
+ module_type_id: number;
60
+ module_type: ModuleType;
61
+ permissions: Permission[];
62
+ }
63
+ export interface ModuleType extends LaravelModel {
64
+ name: string;
65
+ description: string;
66
+ }