@experteam-mx/ngx-services 18.2.0 → 18.3.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.
- package/esm2022/lib/apis/api-companies.service.mjs +35 -24
- package/esm2022/lib/apis/api-invoices.service.mjs +74 -0
- package/esm2022/lib/apis/api-reports.service.mjs +43 -0
- package/esm2022/lib/apis/api-security.service.mjs +3 -2
- package/esm2022/lib/apis/api-shipments.service.mjs +43 -0
- package/esm2022/lib/apis/models/api-companies.interfaces.mjs +1 -1
- package/esm2022/lib/apis/models/api-companies.types.mjs +1 -1
- package/esm2022/lib/apis/models/api-invoices.interfaces.mjs +2 -0
- package/esm2022/lib/apis/models/api-invoices.types.mjs +2 -0
- package/esm2022/lib/apis/models/api-reports.interfaces.mjs +2 -0
- package/esm2022/lib/apis/models/api-reports.types.mjs +2 -0
- package/esm2022/lib/apis/models/api-security.types.mjs +1 -1
- package/esm2022/lib/apis/models/api-shipments.types.mjs +2 -0
- package/esm2022/lib/apis/models/api.models.mjs +1 -1
- package/esm2022/lib/cypher/crypto.service.mjs +4 -3
- package/esm2022/lib/helpers/http.mjs +4 -4
- package/esm2022/lib/interceptors/api-headers.interceptor.mjs +15 -11
- package/esm2022/lib/interceptors/api-token.interceptor.mjs +8 -7
- package/esm2022/lib/interceptors/http-caching.interceptor.mjs +15 -4
- package/esm2022/lib/ngx-services.models.mjs +1 -1
- package/esm2022/public-api.mjs +9 -2
- package/fesm2022/experteam-mx-ngx-services.mjs +226 -49
- package/fesm2022/experteam-mx-ngx-services.mjs.map +1 -1
- package/lib/apis/api-companies.service.d.ts +46 -39
- package/lib/apis/api-invoices.service.d.ts +48 -0
- package/lib/apis/api-reports.service.d.ts +26 -0
- package/lib/apis/api-shipments.service.d.ts +26 -0
- package/lib/apis/models/api-companies.interfaces.d.ts +6 -193
- package/lib/apis/models/api-companies.types.d.ts +30 -22
- package/lib/apis/models/api-invoices.interfaces.d.ts +139 -0
- package/lib/apis/models/api-invoices.types.d.ts +44 -0
- package/lib/apis/models/api-reports.interfaces.d.ts +47 -0
- package/lib/apis/models/api-reports.types.d.ts +6 -0
- package/lib/apis/models/api-security.types.d.ts +0 -3
- package/lib/apis/models/api-shipments.types.d.ts +32 -0
- package/lib/apis/models/api.models.d.ts +5 -0
- package/lib/interceptors/api-headers.interceptor.d.ts +6 -5
- package/lib/interceptors/api-token.interceptor.d.ts +5 -5
- package/lib/interceptors/http-caching.interceptor.d.ts +8 -0
- package/lib/ngx-services.models.d.ts +6 -3
- package/package.json +9 -1
- package/public-api.d.ts +8 -1
|
@@ -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:
|
|
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:
|
|
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
|
|
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
|
|
6
|
+
export type InstallationsOut = {
|
|
7
7
|
installations: Installation[];
|
|
8
8
|
total: number;
|
|
9
9
|
};
|
|
10
|
-
export type
|
|
10
|
+
export type InstallationOut = {
|
|
11
11
|
installation: Installation;
|
|
12
12
|
};
|
|
13
|
-
export type
|
|
13
|
+
export type LocationsOut = {
|
|
14
14
|
locations: Location[];
|
|
15
15
|
total: number;
|
|
16
16
|
};
|
|
17
|
-
export type
|
|
17
|
+
export type LocationOut = {
|
|
18
18
|
location: Location;
|
|
19
19
|
};
|
|
20
|
-
export type
|
|
20
|
+
export type SupplyEntitiesOut = {
|
|
21
21
|
supply_entities: SupplyEntity[];
|
|
22
22
|
total: number;
|
|
23
23
|
};
|
|
24
|
-
export type
|
|
24
|
+
export type EmployeesOut = {
|
|
25
25
|
employees: Employee[];
|
|
26
26
|
total: number;
|
|
27
27
|
};
|
|
28
|
-
export type
|
|
28
|
+
export type EmployeeOut = {
|
|
29
29
|
employee: Employee;
|
|
30
30
|
};
|
|
31
|
-
export type
|
|
31
|
+
export type CompanyCountriesOut = {
|
|
32
32
|
company_countries: CompanyCountry[];
|
|
33
33
|
total: number;
|
|
34
34
|
};
|
|
35
|
-
export type
|
|
35
|
+
export type CompanyCountryOut = {
|
|
36
36
|
company_country: CompanyCountry;
|
|
37
37
|
};
|
|
38
|
-
export type
|
|
38
|
+
export type CountryReferenceCurrenciesOut = {
|
|
39
39
|
country_reference_currencies: CountryReferenceCurrency[];
|
|
40
40
|
total: number;
|
|
41
41
|
};
|
|
42
|
-
export type
|
|
42
|
+
export type CompanyCountryTaxesOut = {
|
|
43
43
|
company_country_taxes: CompanyCountryTax[];
|
|
44
44
|
total: number;
|
|
45
45
|
};
|
|
46
|
-
export type
|
|
46
|
+
export type ExchangesOut = {
|
|
47
47
|
exchanges: Exchange[];
|
|
48
48
|
total: number;
|
|
49
49
|
};
|
|
50
|
-
export type
|
|
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
|
|
62
|
+
export type ParametersIn = {
|
|
55
63
|
paramNames: string[];
|
|
56
64
|
};
|
|
57
|
-
export type
|
|
65
|
+
export type ParametersOut = {
|
|
58
66
|
parameters: Parameter[];
|
|
59
67
|
total: number;
|
|
60
68
|
};
|
|
61
|
-
export type
|
|
69
|
+
export type ParameterValueIn = {
|
|
62
70
|
paramName: string;
|
|
63
71
|
};
|
|
64
|
-
export type
|
|
72
|
+
export type ParameterValueOut = {
|
|
65
73
|
value: any;
|
|
66
74
|
};
|
|
67
|
-
export type
|
|
75
|
+
export type CountryReferencesOut = {
|
|
68
76
|
country_references: CountryReference[];
|
|
69
77
|
};
|
|
70
|
-
export type
|
|
78
|
+
export type CountryReferenceOut = {
|
|
71
79
|
country_reference: CountryReference;
|
|
72
80
|
};
|
|
73
|
-
export type
|
|
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,32 @@
|
|
|
1
|
+
export type ValidateAccountIn = {
|
|
2
|
+
accountValue: string;
|
|
3
|
+
};
|
|
4
|
+
export type AccountResponse = {
|
|
5
|
+
status: true;
|
|
6
|
+
message: string;
|
|
7
|
+
name: string;
|
|
8
|
+
accountStatus: string;
|
|
9
|
+
creditStatus: string;
|
|
10
|
+
activityStatus: string;
|
|
11
|
+
country: string;
|
|
12
|
+
countryName: string;
|
|
13
|
+
isCreditStop: boolean;
|
|
14
|
+
isImportEnabled: boolean;
|
|
15
|
+
accountType: string;
|
|
16
|
+
isCash: boolean;
|
|
17
|
+
contactInfo: string | null;
|
|
18
|
+
registrationInfo: string | null;
|
|
19
|
+
users: {
|
|
20
|
+
id: string;
|
|
21
|
+
name: string;
|
|
22
|
+
valid: boolean;
|
|
23
|
+
}[];
|
|
24
|
+
} | {
|
|
25
|
+
status: false;
|
|
26
|
+
message: string;
|
|
27
|
+
users: [];
|
|
28
|
+
};
|
|
29
|
+
export type ValidateAccountOut = {
|
|
30
|
+
account: AccountResponse;
|
|
31
|
+
transactionId: string;
|
|
32
|
+
};
|
|
@@ -21,3 +21,8 @@ export interface SymfonyModel extends ApiModel {
|
|
|
21
21
|
export type QueryParams = {
|
|
22
22
|
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
23
23
|
};
|
|
24
|
+
export interface Translations {
|
|
25
|
+
[key: string]: {
|
|
26
|
+
[langCode: string]: string;
|
|
27
|
+
}[];
|
|
28
|
+
}
|
|
@@ -3,12 +3,13 @@ import { Observable } from 'rxjs';
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class ApiHeadersInterceptor implements HttpInterceptor {
|
|
5
5
|
/**
|
|
6
|
-
* Intercepts HTTP requests and
|
|
6
|
+
* Intercepts HTTP requests and modifies request headers to include caching, content type,
|
|
7
|
+
* accept language, and other HTTP-specific configurations before forwarding the request onward.
|
|
7
8
|
*
|
|
8
|
-
* @param {HttpRequest<unknown>} request - The HTTP request intercepted.
|
|
9
|
-
* @param {HttpHandler} next - The next handler in the
|
|
10
|
-
*
|
|
11
|
-
* @
|
|
9
|
+
* @param {HttpRequest<unknown>} request - The HTTP request instance to be intercepted and modified.
|
|
10
|
+
* @param {HttpHandler} next - The next handler instance in the HTTP pipeline which processes
|
|
11
|
+
* the modified request and forwards it.
|
|
12
|
+
* @return {Observable<HttpEvent<unknown>>} An observable of the processed HTTP event.
|
|
12
13
|
*/
|
|
13
14
|
intercept(request: HttpRequest<unknown>, next: HttpHandler): Observable<HttpEvent<unknown>>;
|
|
14
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<ApiHeadersInterceptor, never>;
|
|
@@ -8,12 +8,12 @@ export declare class ApiTokenInterceptor implements HttpInterceptor {
|
|
|
8
8
|
private cookie;
|
|
9
9
|
constructor(environments: Environment, cookie: CookieService);
|
|
10
10
|
/**
|
|
11
|
-
* Intercepts the HTTP request
|
|
11
|
+
* Intercepts and modifies the outgoing HTTP request to include an authorization token
|
|
12
|
+
* from cookies if the request does not already have an Authorization or AppKey header.
|
|
12
13
|
*
|
|
13
|
-
* @param {HttpRequest<unknown>} request - The HTTP request to
|
|
14
|
-
* @param {HttpHandler} next - The next
|
|
15
|
-
*
|
|
16
|
-
* @returns {Observable<HttpEvent<unknown>>} - An observable containing the HTTP event.
|
|
14
|
+
* @param {HttpRequest<unknown>} request - The outgoing HTTP request to be intercepted.
|
|
15
|
+
* @param {HttpHandler} next - The next handler in the HTTP request processing chain.
|
|
16
|
+
* @return {Observable<HttpEvent<unknown>>} An observable of the HTTP event, modified or unmodified.
|
|
17
17
|
*/
|
|
18
18
|
intercept(request: HttpRequest<unknown>, next: HttpHandler): Observable<HttpEvent<unknown>>;
|
|
19
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<ApiTokenInterceptor, never>;
|
|
@@ -6,6 +6,14 @@ export declare class HttpCachingInterceptor implements HttpInterceptor {
|
|
|
6
6
|
private envs;
|
|
7
7
|
private cache;
|
|
8
8
|
constructor(envs: Environment);
|
|
9
|
+
/**
|
|
10
|
+
* Intercepts HTTP requests to add caching functionality for GET requests.
|
|
11
|
+
* Non-GET requests are passed through without caching.
|
|
12
|
+
*
|
|
13
|
+
* @param {HttpRequest<any>} req - The HTTP request being intercepted.
|
|
14
|
+
* @param {HttpHandler} next - The next handler in the HTTP pipeline to execute the request.
|
|
15
|
+
* @return {Observable<HttpEvent<any>>} - An observable containing the HTTP response event, either from cache or the backend service.
|
|
16
|
+
*/
|
|
9
17
|
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
|
|
10
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<HttpCachingInterceptor, never>;
|
|
11
19
|
static ɵprov: i0.ɵɵInjectableDeclaration<HttpCachingInterceptor>;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
export type Environment = {
|
|
2
|
+
apiCompaniesUrl: string;
|
|
3
|
+
apiInvoicesUrl: string;
|
|
4
|
+
apiReportsUrl: string;
|
|
5
|
+
apiSecurityUrl: string;
|
|
6
|
+
apiShipmentUrl: string;
|
|
2
7
|
authCookie: string;
|
|
3
|
-
secretKey: string;
|
|
4
8
|
cacheTtl?: number;
|
|
5
|
-
|
|
6
|
-
apiCompaniesUrl: string;
|
|
9
|
+
secretKey: string;
|
|
7
10
|
};
|