@experteam-mx/ngx-services 15.1.2 → 15.2.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.
- package/esm2020/lib/apis/api-companies.service.mjs +2 -2
- package/esm2020/lib/apis/api-invoices.service.mjs +33 -0
- package/esm2020/lib/apis/api-reports.service.mjs +42 -0
- package/esm2020/lib/apis/api-shipments.service.mjs +41 -0
- package/esm2020/lib/apis/models/api-companies.interfaces.mjs +1 -1
- package/esm2020/lib/apis/models/api-invoices.interfaces.mjs +2 -0
- package/esm2020/lib/apis/models/api-invoices.types.mjs +2 -0
- package/esm2020/lib/apis/models/api-reports.interfaces.mjs +2 -0
- package/esm2020/lib/apis/models/api-shipments.types.mjs +2 -0
- package/esm2020/lib/apis/models/api.models.mjs +1 -1
- package/esm2020/lib/ngx-services.models.mjs +1 -1
- package/esm2020/public-api.mjs +9 -2
- package/fesm2015/experteam-mx-ngx-services.mjs +113 -3
- package/fesm2015/experteam-mx-ngx-services.mjs.map +1 -1
- package/fesm2020/experteam-mx-ngx-services.mjs +106 -2
- package/fesm2020/experteam-mx-ngx-services.mjs.map +1 -1
- package/lib/apis/api-invoices.service.d.ts +16 -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 +2 -193
- package/lib/apis/models/api-invoices.interfaces.d.ts +163 -0
- package/lib/apis/models/api-invoices.types.d.ts +3 -0
- package/lib/apis/models/api-reports.interfaces.d.ts +51 -0
- package/lib/apis/models/api-shipments.types.d.ts +32 -0
- package/lib/apis/models/api.models.d.ts +5 -0
- package/lib/ngx-services.models.d.ts +3 -0
- package/package.json +5 -1
- package/public-api.d.ts +8 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Environment } from '../ngx-services.models';
|
|
2
|
+
import { HttpClient } from '@angular/common/http';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { AccountPaymentOperationData, AccountPaymentOperationProps } from './models/api-invoices.interfaces';
|
|
5
|
+
import { CollectionReceiptData } from './models/api-invoices.types';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class ApiInvoicesService {
|
|
8
|
+
private environments;
|
|
9
|
+
private http;
|
|
10
|
+
constructor(environments: Environment, http: HttpClient);
|
|
11
|
+
get url(): string;
|
|
12
|
+
printCollectionReceipt(id: number): Observable<CollectionReceiptData>;
|
|
13
|
+
accountPaymentOperation(body: AccountPaymentOperationProps): Observable<AccountPaymentOperationData>;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ApiInvoicesService, never>;
|
|
15
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ApiInvoicesService>;
|
|
16
|
+
}
|
|
@@ -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 { QueryParams } from './models/api.models';
|
|
5
|
+
import { CollectionPaymentsData } from './models/api-reports.interfaces';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class ApiReportsService {
|
|
8
|
+
private environments;
|
|
9
|
+
private http;
|
|
10
|
+
constructor(environments: Environment, http: HttpClient);
|
|
11
|
+
/**
|
|
12
|
+
* Retrieves the URL for the reports API from the environment configurations.
|
|
13
|
+
*
|
|
14
|
+
* @return {string} The URL of the reports API.
|
|
15
|
+
*/
|
|
16
|
+
get url(): string;
|
|
17
|
+
/**
|
|
18
|
+
* Retrieves the list of collection payments
|
|
19
|
+
*
|
|
20
|
+
* @param {QueryParams} params - The query parameters used to fetch the collection payments.
|
|
21
|
+
* @return {Observable<CollectionPaymentsData[]>} An observable that emits an array of collection payment.
|
|
22
|
+
*/
|
|
23
|
+
getCollectionPayments(params?: QueryParams): Observable<CollectionPaymentsData>;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ApiReportsService, never>;
|
|
25
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ApiReportsService>;
|
|
26
|
+
}
|
|
@@ -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 { ValidateAccountProps, ValidateAccountData } 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 {ValidateAccountProps} body - An object of parameter names for which the values need to be fetched.
|
|
20
|
+
* @return {Observable<ParametersData>} An observable that emits the fetched parameter values
|
|
21
|
+
* @param body
|
|
22
|
+
*/
|
|
23
|
+
validateAccount(body: ValidateAccountProps): Observable<ValidateAccountData>;
|
|
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:
|
|
55
|
+
rate: string;
|
|
56
56
|
}
|
|
57
57
|
export interface CountryReference extends LaravelModel {
|
|
58
58
|
language_id: number;
|
|
@@ -106,7 +106,7 @@ 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
112
|
export interface CountryExchange extends Exchange {
|
|
@@ -191,194 +191,3 @@ export interface Workflow {
|
|
|
191
191
|
page: string;
|
|
192
192
|
enabled: boolean;
|
|
193
193
|
}
|
|
194
|
-
export interface LocationEmployee extends LaravelModel {
|
|
195
|
-
location_id: number;
|
|
196
|
-
employee_id: number;
|
|
197
|
-
is_active: boolean;
|
|
198
|
-
is_supervisor: boolean;
|
|
199
|
-
employee: Employee;
|
|
200
|
-
location: Location;
|
|
201
|
-
}
|
|
202
|
-
export interface Employee extends LaravelModel {
|
|
203
|
-
name: string;
|
|
204
|
-
last_name: string;
|
|
205
|
-
number: string;
|
|
206
|
-
company_id: number;
|
|
207
|
-
country_id: number;
|
|
208
|
-
external: boolean;
|
|
209
|
-
phone_code: string;
|
|
210
|
-
phone_number: string;
|
|
211
|
-
is_active: boolean;
|
|
212
|
-
password: string;
|
|
213
|
-
roles: string[];
|
|
214
|
-
locations: Location[];
|
|
215
|
-
}
|
|
216
|
-
export interface Location extends LaravelModel {
|
|
217
|
-
name: string;
|
|
218
|
-
contact_name: string;
|
|
219
|
-
email: string;
|
|
220
|
-
facility_code: string;
|
|
221
|
-
location_code: string;
|
|
222
|
-
type: string;
|
|
223
|
-
state_name: string;
|
|
224
|
-
state_id: number;
|
|
225
|
-
state_code: string;
|
|
226
|
-
city_name: string;
|
|
227
|
-
zip_code: string;
|
|
228
|
-
county_name: string;
|
|
229
|
-
address1: string;
|
|
230
|
-
address2: string;
|
|
231
|
-
address3: string;
|
|
232
|
-
service_area_code: string;
|
|
233
|
-
iata_code: string;
|
|
234
|
-
phone_code: string;
|
|
235
|
-
phone_number: string;
|
|
236
|
-
gmt_offset: string;
|
|
237
|
-
company_country_id: number;
|
|
238
|
-
country_zone_id: number;
|
|
239
|
-
country_region_id: number;
|
|
240
|
-
management_area_id: number;
|
|
241
|
-
google_maps_id: string;
|
|
242
|
-
route_number: string;
|
|
243
|
-
locker_enabled: boolean;
|
|
244
|
-
queue_manager_enabled: boolean;
|
|
245
|
-
commission_account: string;
|
|
246
|
-
service_point_id: string;
|
|
247
|
-
is_occurs: boolean;
|
|
248
|
-
accounts: Account[];
|
|
249
|
-
company_country: CompanyCountry;
|
|
250
|
-
state: State;
|
|
251
|
-
}
|
|
252
|
-
export interface Company extends LaravelModel {
|
|
253
|
-
id: number;
|
|
254
|
-
created_at: string;
|
|
255
|
-
updated_at: string;
|
|
256
|
-
name: string;
|
|
257
|
-
contact_name: string;
|
|
258
|
-
contact_email: string;
|
|
259
|
-
contact_phone: string;
|
|
260
|
-
state: string;
|
|
261
|
-
city: string;
|
|
262
|
-
county_name: string;
|
|
263
|
-
zip_code: string;
|
|
264
|
-
address1: string;
|
|
265
|
-
address2: string;
|
|
266
|
-
address3: string;
|
|
267
|
-
is_active: boolean;
|
|
268
|
-
}
|
|
269
|
-
export interface CompanyCountry extends LaravelModel {
|
|
270
|
-
company_id: number;
|
|
271
|
-
country_id: number;
|
|
272
|
-
headquarters_city_code: string;
|
|
273
|
-
lp_code: string;
|
|
274
|
-
company: Company;
|
|
275
|
-
contact_name: string;
|
|
276
|
-
contact_email: string;
|
|
277
|
-
contact_phone_code: string;
|
|
278
|
-
contact_phone_number: string;
|
|
279
|
-
state: string;
|
|
280
|
-
city: string;
|
|
281
|
-
zip_code: string;
|
|
282
|
-
county_name: string;
|
|
283
|
-
address1: string;
|
|
284
|
-
address2: string;
|
|
285
|
-
address3: string;
|
|
286
|
-
}
|
|
287
|
-
export interface Installation extends LaravelModel {
|
|
288
|
-
system_id: number;
|
|
289
|
-
mac_address: string;
|
|
290
|
-
ip_address: string;
|
|
291
|
-
location_id: number;
|
|
292
|
-
}
|
|
293
|
-
export interface SupplyEntity extends LaravelModel {
|
|
294
|
-
name: string;
|
|
295
|
-
description: string;
|
|
296
|
-
country_id: number;
|
|
297
|
-
enabled_for_dropoff: boolean;
|
|
298
|
-
supply_type: SupplyType;
|
|
299
|
-
supply_packing: SupplyPacking;
|
|
300
|
-
}
|
|
301
|
-
export interface SupplyType extends LaravelModel {
|
|
302
|
-
name: string;
|
|
303
|
-
}
|
|
304
|
-
export interface SupplyPacking extends LaravelModel {
|
|
305
|
-
value: number;
|
|
306
|
-
weight: number;
|
|
307
|
-
height: number;
|
|
308
|
-
depth: number;
|
|
309
|
-
width: number;
|
|
310
|
-
emobile_code: string | null;
|
|
311
|
-
}
|
|
312
|
-
export interface Employee extends LaravelModel {
|
|
313
|
-
name: string;
|
|
314
|
-
last_name: string;
|
|
315
|
-
number: string;
|
|
316
|
-
company_id: number;
|
|
317
|
-
country_id: number;
|
|
318
|
-
external: boolean;
|
|
319
|
-
phone_code: string;
|
|
320
|
-
phone_number: string;
|
|
321
|
-
is_active: boolean;
|
|
322
|
-
password: string;
|
|
323
|
-
roles: string[];
|
|
324
|
-
locations: Location[];
|
|
325
|
-
}
|
|
326
|
-
export interface CountryReferenceCurrency extends LaravelModel {
|
|
327
|
-
country_id: number;
|
|
328
|
-
currency_id: number;
|
|
329
|
-
is_local: boolean;
|
|
330
|
-
can_transact: boolean;
|
|
331
|
-
code: string;
|
|
332
|
-
name: string;
|
|
333
|
-
is_default: boolean;
|
|
334
|
-
is_declared_insured: boolean;
|
|
335
|
-
currency: Currency;
|
|
336
|
-
}
|
|
337
|
-
export interface CompanyCountryTax extends LaravelModel {
|
|
338
|
-
code: string;
|
|
339
|
-
name: string;
|
|
340
|
-
percentage: number;
|
|
341
|
-
company_country_id: number;
|
|
342
|
-
shipment_scopes: number[];
|
|
343
|
-
base_percentage: number;
|
|
344
|
-
tax_type: string;
|
|
345
|
-
}
|
|
346
|
-
export interface Exchange extends LaravelModel {
|
|
347
|
-
company_country_currency_id: number;
|
|
348
|
-
valid_since: string;
|
|
349
|
-
valid_until: string | null;
|
|
350
|
-
value: number;
|
|
351
|
-
type: string;
|
|
352
|
-
}
|
|
353
|
-
export interface Parameter {
|
|
354
|
-
name: string;
|
|
355
|
-
value: any;
|
|
356
|
-
status?: string;
|
|
357
|
-
}
|
|
358
|
-
export interface CountryReference extends LaravelModel {
|
|
359
|
-
language_id: number;
|
|
360
|
-
decimal_point: number;
|
|
361
|
-
decimal_separator: string;
|
|
362
|
-
thousands_separator: string;
|
|
363
|
-
use_billing: boolean;
|
|
364
|
-
use_payments: boolean;
|
|
365
|
-
restricted_import_countries: number[];
|
|
366
|
-
currency_id: number;
|
|
367
|
-
max_quantity_document_piece: number;
|
|
368
|
-
max_quantity_package_piece: number;
|
|
369
|
-
weight_restriction_piece: number;
|
|
370
|
-
restriction_shipment: number;
|
|
371
|
-
restriction_dimension: number;
|
|
372
|
-
max_declared_value: number;
|
|
373
|
-
territories: number[];
|
|
374
|
-
some_openings: boolean;
|
|
375
|
-
locale: string;
|
|
376
|
-
country_id: number;
|
|
377
|
-
label_printer_name: string;
|
|
378
|
-
receipt_printer_name: string;
|
|
379
|
-
others_printer_name: string;
|
|
380
|
-
}
|
|
381
|
-
export interface Workflow {
|
|
382
|
-
page: string;
|
|
383
|
-
enabled: boolean;
|
|
384
|
-
}
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
export interface AccountPaymentOperationProps {
|
|
2
|
+
document_type_range_id: number | null;
|
|
3
|
+
document_number: string | null;
|
|
4
|
+
observation: string | null;
|
|
5
|
+
document_date: string | null;
|
|
6
|
+
total_amount: number;
|
|
7
|
+
country_reference_currency_id: number;
|
|
8
|
+
customer: {
|
|
9
|
+
company_name: string;
|
|
10
|
+
full_name: string;
|
|
11
|
+
account_number: string;
|
|
12
|
+
country_id: number;
|
|
13
|
+
};
|
|
14
|
+
payments: AccountPayment[];
|
|
15
|
+
}
|
|
16
|
+
export interface AccountPayment {
|
|
17
|
+
country_payment_type_id: number;
|
|
18
|
+
country_reference_currency_id: number;
|
|
19
|
+
amount: number;
|
|
20
|
+
exchange: string;
|
|
21
|
+
due_date: string;
|
|
22
|
+
received: number;
|
|
23
|
+
status?: boolean;
|
|
24
|
+
details?: {};
|
|
25
|
+
}
|
|
26
|
+
export interface AccountPaymentOperationData {
|
|
27
|
+
document: {
|
|
28
|
+
id: number;
|
|
29
|
+
document_type_range_id: number;
|
|
30
|
+
document_number: number;
|
|
31
|
+
document_prefix: string;
|
|
32
|
+
document_suffix: string;
|
|
33
|
+
document_number_original: number;
|
|
34
|
+
document_prefix_original: string;
|
|
35
|
+
document_suffix_original: string;
|
|
36
|
+
customer_id: number;
|
|
37
|
+
customer_company_name: string;
|
|
38
|
+
customer_email: string;
|
|
39
|
+
customer_address_line1: string;
|
|
40
|
+
customer_identification_number: string;
|
|
41
|
+
customer_identification_type_id: number;
|
|
42
|
+
provider_name: string;
|
|
43
|
+
provider_identification_number: number;
|
|
44
|
+
document_authorization_number: string;
|
|
45
|
+
provider_extra_fields: {
|
|
46
|
+
phone: string;
|
|
47
|
+
fax: string;
|
|
48
|
+
};
|
|
49
|
+
document_id: number;
|
|
50
|
+
created_at: string;
|
|
51
|
+
updated_at: string;
|
|
52
|
+
transaction_id: string;
|
|
53
|
+
extra_fields: {
|
|
54
|
+
observation: string;
|
|
55
|
+
document_date: string;
|
|
56
|
+
};
|
|
57
|
+
customer_address_line2: string;
|
|
58
|
+
customer_address_line3: string;
|
|
59
|
+
customer_postal_code: string;
|
|
60
|
+
customer_state: string;
|
|
61
|
+
customer_county_name: string;
|
|
62
|
+
customer_city_name: string;
|
|
63
|
+
customer_country_id: number;
|
|
64
|
+
status: number;
|
|
65
|
+
user_id: number;
|
|
66
|
+
customer_full_name: string;
|
|
67
|
+
customer_phone_code: string;
|
|
68
|
+
customer_phone_number: string;
|
|
69
|
+
gmt_offset: string;
|
|
70
|
+
customer_type_id: number;
|
|
71
|
+
customer_extra_fields: string;
|
|
72
|
+
installation_id: number;
|
|
73
|
+
exchange: number;
|
|
74
|
+
authorization_numbers: string;
|
|
75
|
+
extra_fields_json: string;
|
|
76
|
+
provider_extra_fields_json: string;
|
|
77
|
+
document_type_range: {
|
|
78
|
+
id: number;
|
|
79
|
+
provider_id: number;
|
|
80
|
+
model_type: string;
|
|
81
|
+
model_id: number;
|
|
82
|
+
init_number: number;
|
|
83
|
+
final_number: number;
|
|
84
|
+
current_number: number;
|
|
85
|
+
used_numbers: number;
|
|
86
|
+
min_until_mail: number;
|
|
87
|
+
prefix: string;
|
|
88
|
+
sap_prefix: string;
|
|
89
|
+
suffix: string;
|
|
90
|
+
sap_suffix: string;
|
|
91
|
+
external_generated: boolean;
|
|
92
|
+
authorization_number: string;
|
|
93
|
+
environment: string;
|
|
94
|
+
is_manual: boolean;
|
|
95
|
+
auto_activation: boolean;
|
|
96
|
+
activation_key: string;
|
|
97
|
+
authorization_label: string;
|
|
98
|
+
valid_since: string;
|
|
99
|
+
valid_until: string;
|
|
100
|
+
created_at: string;
|
|
101
|
+
updated_at: string;
|
|
102
|
+
is_active: boolean;
|
|
103
|
+
country_document_type_id: number;
|
|
104
|
+
};
|
|
105
|
+
items: {
|
|
106
|
+
id: number;
|
|
107
|
+
document_id: number;
|
|
108
|
+
details: {
|
|
109
|
+
account: number;
|
|
110
|
+
country_reference_currency_id: number;
|
|
111
|
+
customer_company_name: string;
|
|
112
|
+
};
|
|
113
|
+
model_origin: string;
|
|
114
|
+
model_type: string;
|
|
115
|
+
model_id: number;
|
|
116
|
+
quantity: number;
|
|
117
|
+
unit_price: number;
|
|
118
|
+
subtotal: number;
|
|
119
|
+
tax_detail: {};
|
|
120
|
+
total: number;
|
|
121
|
+
created_at: string;
|
|
122
|
+
updated_at: string;
|
|
123
|
+
discount: 0;
|
|
124
|
+
details_json: string;
|
|
125
|
+
}[];
|
|
126
|
+
document_payments: {
|
|
127
|
+
id: number;
|
|
128
|
+
document_id: number;
|
|
129
|
+
payment_id: number;
|
|
130
|
+
amount: number;
|
|
131
|
+
created_at: string;
|
|
132
|
+
updated_at: string;
|
|
133
|
+
payment: Payment;
|
|
134
|
+
}[];
|
|
135
|
+
payments: Payment[];
|
|
136
|
+
};
|
|
137
|
+
transaction_id: string;
|
|
138
|
+
}
|
|
139
|
+
export interface Payment {
|
|
140
|
+
id: number;
|
|
141
|
+
amount: number;
|
|
142
|
+
country_reference_currency_id: number;
|
|
143
|
+
exchange: number;
|
|
144
|
+
company_country_payment_type_id: number;
|
|
145
|
+
due_date: string;
|
|
146
|
+
received: number;
|
|
147
|
+
status: number;
|
|
148
|
+
details: {};
|
|
149
|
+
created_at: string;
|
|
150
|
+
updated_at: string;
|
|
151
|
+
transaction_id: string;
|
|
152
|
+
gmt_offset: string;
|
|
153
|
+
country_payment_type_id: number;
|
|
154
|
+
opening_id: number;
|
|
155
|
+
installation_id: number;
|
|
156
|
+
details_json: {};
|
|
157
|
+
payment_adjustment: {};
|
|
158
|
+
pivot: {
|
|
159
|
+
document_id: number;
|
|
160
|
+
payment_id: number;
|
|
161
|
+
amount: number;
|
|
162
|
+
};
|
|
163
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { LaravelModel, Translations } from "./api.models";
|
|
2
|
+
export interface CollectionPaymentsData extends LaravelModel {
|
|
3
|
+
collection_payments: CollectionPayment[];
|
|
4
|
+
total: number;
|
|
5
|
+
}
|
|
6
|
+
export interface CollectionPayment extends LaravelModel {
|
|
7
|
+
_id: number;
|
|
8
|
+
country_code: string;
|
|
9
|
+
country_id: number;
|
|
10
|
+
country_name: string;
|
|
11
|
+
company_id: number;
|
|
12
|
+
company_name: string;
|
|
13
|
+
company_country_id: number;
|
|
14
|
+
installation_id: number;
|
|
15
|
+
installation_number: number;
|
|
16
|
+
location_facility_code: string;
|
|
17
|
+
location_id: number;
|
|
18
|
+
location_location_code: string;
|
|
19
|
+
location_name: string;
|
|
20
|
+
user_id: number;
|
|
21
|
+
user_username: string;
|
|
22
|
+
document_type_id: number;
|
|
23
|
+
document_type: DocumentType;
|
|
24
|
+
document_category_id: number;
|
|
25
|
+
document_category: DocumentCategory;
|
|
26
|
+
collection_origin: string;
|
|
27
|
+
collection_type: string;
|
|
28
|
+
receipt_number: string;
|
|
29
|
+
customer_name: string;
|
|
30
|
+
account: string;
|
|
31
|
+
amount: number;
|
|
32
|
+
currency_id: number;
|
|
33
|
+
currency_code: string;
|
|
34
|
+
}
|
|
35
|
+
export interface DocumentType extends LaravelModel {
|
|
36
|
+
_id: number;
|
|
37
|
+
name: string;
|
|
38
|
+
code: string;
|
|
39
|
+
movement_type: number;
|
|
40
|
+
local_code: string;
|
|
41
|
+
translations: Translations;
|
|
42
|
+
}
|
|
43
|
+
export interface DocumentCategory extends LaravelModel {
|
|
44
|
+
_id: number;
|
|
45
|
+
name: string;
|
|
46
|
+
is_electronic: true;
|
|
47
|
+
taxable: number;
|
|
48
|
+
created_at: string;
|
|
49
|
+
updated_at: string;
|
|
50
|
+
translations: Translations;
|
|
51
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export type ValidateAccountProps = {
|
|
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 ValidateAccountData = {
|
|
30
|
+
account: AccountResponse;
|
|
31
|
+
transactionId: string;
|
|
32
|
+
};
|
|
@@ -21,3 +21,8 @@ export interface SymfonyModel extends ApiModel {
|
|
|
21
21
|
export interface 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
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@experteam-mx/ngx-services",
|
|
3
|
-
"version": "15.1
|
|
3
|
+
"version": "15.2.1",
|
|
4
4
|
"description": "Angular common services for Experteam apps",
|
|
5
5
|
"author": "Experteam Cía. Ltda.",
|
|
6
6
|
"keywords": [
|
|
@@ -14,6 +14,10 @@
|
|
|
14
14
|
{
|
|
15
15
|
"name": "Iraldo Arévalo Delfín",
|
|
16
16
|
"email": "iraldoarevalo@gmail.com"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "Adel López Pantoja",
|
|
20
|
+
"email": "adellopezpantoja@gmail.com"
|
|
17
21
|
}
|
|
18
22
|
],
|
|
19
23
|
"repository": {
|
package/public-api.d.ts
CHANGED
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
export * from './lib/ngx-services.module';
|
|
2
2
|
export * from './lib/apis/api-companies.service';
|
|
3
|
+
export * from './lib/apis/api-invoices.service';
|
|
4
|
+
export * from './lib/apis/api-reports.service';
|
|
3
5
|
export * from './lib/apis/api-security.service';
|
|
4
|
-
export * from './lib/apis/
|
|
6
|
+
export * from './lib/apis/api-shipments.service';
|
|
5
7
|
export * from './lib/apis/models/api-companies.interfaces';
|
|
6
8
|
export * from './lib/apis/models/api-companies.types';
|
|
9
|
+
export * from './lib/apis/models/api-invoices.types';
|
|
10
|
+
export * from './lib/apis/models/api-invoices.interfaces';
|
|
11
|
+
export * from './lib/apis/models/api.models';
|
|
12
|
+
export * from './lib/apis/models/api-reports.interfaces';
|
|
7
13
|
export * from './lib/apis/models/api-security.interfaces';
|
|
8
14
|
export * from './lib/apis/models/api-security.types';
|
|
15
|
+
export * from './lib/apis/models/api-shipments.types';
|
|
9
16
|
export * from './lib/interceptors/api-headers.interceptor';
|
|
10
17
|
export * from './lib/interceptors/api-token.interceptor';
|
|
11
18
|
export * from './lib/interceptors/http-caching.interceptor';
|