@experteam-mx/ngx-services 18.5.9 → 18.6.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.
@@ -1,12 +1,22 @@
1
1
  import { LaravelModel } from './api.models';
2
- import { BoardingProcessStatus, Currency, IdentificationType, State } from './api-catalog.interfaces';
2
+ import { BoardingProcessStatus, Country, Currency, IdentificationType, Product, State } from './api-catalog.interfaces';
3
3
  export interface Account extends LaravelModel {
4
4
  number: string;
5
5
  description: string;
6
6
  account_type_id: number;
7
+ account_type: AccountType;
7
8
  country_id: number;
9
+ domestic_approved: boolean;
8
10
  is_default: boolean;
9
11
  }
12
+ export interface AccountCategory extends LaravelModel {
13
+ name: string;
14
+ }
15
+ export interface AccountType extends LaravelModel {
16
+ name: string;
17
+ account_category_id: number;
18
+ account_category?: AccountCategory;
19
+ }
10
20
  export interface Company extends LaravelModel {
11
21
  id: number;
12
22
  created_at: string;
@@ -76,6 +86,7 @@ export interface CountryReference extends LaravelModel {
76
86
  label_printer_name: string;
77
87
  receipt_printer_name: string;
78
88
  others_printer_name: string;
89
+ country: Country;
79
90
  }
80
91
  export interface CountryReferenceCurrency extends LaravelModel {
81
92
  country_id: number;
@@ -88,19 +99,34 @@ export interface CountryReferenceCurrency extends LaravelModel {
88
99
  is_declared_insured: boolean;
89
100
  currency: Currency;
90
101
  }
102
+ export interface CountryReferenceExtraCharge extends LaravelModel {
103
+ country_id: number;
104
+ extra_charge_id: number;
105
+ local_availability: boolean;
106
+ mandatory: boolean;
107
+ selected: boolean;
108
+ shipment_scopes: number[];
109
+ shipment_content_types: number[];
110
+ value_local: number;
111
+ value_usd: number;
112
+ }
113
+ export interface ExtraChargeEntity extends LaravelModel {
114
+ code: string;
115
+ name: string;
116
+ }
91
117
  export interface Employee extends LaravelModel {
92
118
  name: string;
93
119
  last_name: string;
94
120
  number: string;
121
+ email: string;
122
+ username: string;
95
123
  company_id: number;
96
124
  country_id: number;
97
125
  external: boolean;
98
126
  phone_code: string;
99
127
  phone_number: string;
100
- is_active: boolean;
101
- password: string;
102
- roles: string[];
103
128
  locations: Location[];
129
+ company: Company;
104
130
  }
105
131
  export interface Exchange extends LaravelModel {
106
132
  company_country_currency_id: number;
@@ -118,6 +144,8 @@ export interface Installation extends LaravelModel {
118
144
  mac_address: string;
119
145
  ip_address: string;
120
146
  location_id: number;
147
+ number: number;
148
+ system: System;
121
149
  }
122
150
  export interface Location extends LaravelModel {
123
151
  name: string;
@@ -151,6 +179,11 @@ export interface Location extends LaravelModel {
151
179
  commission_account: string;
152
180
  service_point_id: string;
153
181
  is_occurs: boolean;
182
+ default_account_id: number;
183
+ extra_fields: {
184
+ [key: string]: string;
185
+ };
186
+ facility_id: number;
154
187
  accounts: Account[];
155
188
  company_country: CompanyCountry;
156
189
  state: State;
@@ -163,10 +196,27 @@ export interface LocationEmployee extends LaravelModel {
163
196
  employee: Employee;
164
197
  location: Location;
165
198
  }
166
- export interface Parameter {
199
+ export interface Parameter extends LaravelModel {
167
200
  name: string;
168
- value: any;
169
- status?: string;
201
+ type: string;
202
+ regex: string;
203
+ description: string;
204
+ value: string | number | boolean | null | {
205
+ [key: string]: (string | number | boolean | null)[];
206
+ };
207
+ parameter_type_id: number;
208
+ }
209
+ export interface ParameterConfig {
210
+ id: number;
211
+ level: number;
212
+ model_type: string | null;
213
+ model_id: number | null;
214
+ parameter_id: number;
215
+ name: string;
216
+ value: string | number | boolean | null | {
217
+ [key: string]: (string | number | boolean | null)[];
218
+ };
219
+ parameter: Parameter;
170
220
  }
171
221
  export interface SupplyEntity extends LaravelModel {
172
222
  name: string;
@@ -187,8 +237,15 @@ export interface SupplyPacking extends LaravelModel {
187
237
  export interface SupplyType extends LaravelModel {
188
238
  name: string;
189
239
  }
190
- export interface Workflow {
191
- page: string;
240
+ export interface WorkflowConfig {
241
+ id: number;
242
+ system_id: number;
243
+ level: string;
244
+ model_type: string;
245
+ model_id: number;
246
+ name: string;
247
+ page_id: number;
248
+ page_name: string;
192
249
  enabled: boolean;
193
250
  }
194
251
  export interface EmployeeCustomerDhl extends LaravelModel {
@@ -224,3 +281,34 @@ export interface BoardingProcessHistory {
224
281
  created_at: string;
225
282
  updated_at: string;
226
283
  }
284
+ export interface System extends LaravelModel {
285
+ name: string;
286
+ type: string;
287
+ configuration: {
288
+ [key: string]: string;
289
+ };
290
+ can_workflow_config: boolean;
291
+ }
292
+ export interface CountryReferenceProduct extends LaravelModel {
293
+ country_id: number;
294
+ product_id: number;
295
+ local_name: string;
296
+ min_weight: number;
297
+ max_weight: number;
298
+ insurance: number;
299
+ business_letter: boolean;
300
+ packaging: boolean;
301
+ anti_drug_letter: boolean;
302
+ max_declared_value: number;
303
+ shipment_groups: number[];
304
+ shipment_scopes: number[];
305
+ shipment_content_types: number[];
306
+ is_prepaid_dropoff: boolean;
307
+ product: Product;
308
+ }
309
+ export interface ProductEntity extends LaravelModel {
310
+ global_code: string;
311
+ local_code: string;
312
+ global_name: string;
313
+ local_name: string;
314
+ }
@@ -1,12 +1,29 @@
1
- import { Account, BoardingProcess, CompanyCountry, CompanyCountryTax, CountryExchange, CountryReference, CountryReferenceCurrency, Employee, EmployeeCustomerDhl, Installation, Location, LocationEmployee, Parameter, SupplyEntity, Workflow } from './api-companies.interfaces';
1
+ import { Account, AccountCategory, AccountType, BoardingProcess, Company, CompanyCountry, CompanyCountryTax, CountryExchange, CountryReference, CountryReferenceCurrency, CountryReferenceExtraCharge, CountryReferenceProduct, Employee, EmployeeCustomerDhl, ExtraChargeEntity, Installation, Location, LocationEmployee, Parameter, ParameterConfig, ProductEntity, SupplyEntity, System, WorkflowConfig } from './api-companies.interfaces';
2
2
  export type LocationEmployeesOut = {
3
3
  location_employees: LocationEmployee[];
4
4
  total: number;
5
5
  };
6
+ export type LocationEmployeeBatchIn = {
7
+ store_update: {
8
+ location_id: number;
9
+ employee_id: number;
10
+ is_active: boolean;
11
+ }[];
12
+ };
13
+ export type LocationEmployeeOut = {
14
+ location_employee: LocationEmployee;
15
+ };
6
16
  export type InstallationsOut = {
7
17
  installations: Installation[];
8
18
  total: number;
9
19
  };
20
+ export type InstallationIn = {
21
+ system_id: number;
22
+ mac_address: string;
23
+ ip_address: string;
24
+ location_id: number;
25
+ number: number;
26
+ };
10
27
  export type InstallationOut = {
11
28
  installation: Installation;
12
29
  };
@@ -14,10 +31,53 @@ export type LocationsOut = {
14
31
  locations: Location[];
15
32
  total: number;
16
33
  };
34
+ export type LocationIn = {
35
+ name: string;
36
+ contact_name: string;
37
+ email: string;
38
+ facility_code: string;
39
+ location_code: string;
40
+ state_name: string;
41
+ state_id: number;
42
+ state_code: string;
43
+ city_name: string;
44
+ zip_code: string;
45
+ county_name: string;
46
+ address1: string;
47
+ address2: string;
48
+ address3: string;
49
+ service_area_code: string;
50
+ iata_code: string;
51
+ phone_number: string;
52
+ phone_code: string;
53
+ is_active: boolean;
54
+ gmt_offset: string;
55
+ company_country_id: number;
56
+ country_zone_id: number;
57
+ country_region_id: number;
58
+ management_area_id: number;
59
+ route_number: string;
60
+ locker_enabled: boolean;
61
+ queue_manager_enabled: boolean;
62
+ commission_account: string;
63
+ type: string;
64
+ facility_id: number;
65
+ service_point_id: number;
66
+ default_account_id: number;
67
+ };
17
68
  export type LocationOut = {
18
69
  location: Location;
19
70
  };
20
- export type SupplyEntitiesActivesOut = {
71
+ export type SupplyEntitiesIn = {
72
+ model_type: string;
73
+ model_id: number;
74
+ check_all?: boolean;
75
+ supply_entities: {
76
+ id: number;
77
+ is_active: boolean;
78
+ }[];
79
+ };
80
+ export type SupplyEntitiesOut = {
21
81
  supply_entities: SupplyEntity[];
22
82
  total: number;
23
83
  };
@@ -25,6 +85,22 @@ export type EmployeesOut = {
25
85
  employees: Employee[];
26
86
  total: number;
27
87
  };
88
+ export type EmployeeIn = {
89
+ auth_type: string;
90
+ company_id: number;
91
+ country_id: number;
92
+ email: string;
93
+ last_name: string;
94
+ name: string;
95
+ username: string;
96
+ number: string;
97
+ external: boolean;
98
+ phone_code: string;
99
+ phone_number: string;
100
+ is_active: boolean;
101
+ password: string;
102
+ roles: string[];
103
+ };
28
104
  export type EmployeeOut = {
29
105
  employee: Employee;
30
106
  };
@@ -32,9 +108,39 @@ export type CompanyCountriesOut = {
32
108
  company_countries: CompanyCountry[];
33
109
  total: number;
34
110
  };
111
+ export type CompanyCountryIn = {
112
+ company_id: number;
113
+ country_id: number;
114
+ is_active: boolean;
115
+ headquarters_city_code: string | null;
116
+ lp_code: string | null;
117
+ contact_name: string;
118
+ contact_email: string;
119
+ contact_phone_code: string;
120
+ contact_phone_number: string;
121
+ state: string | null;
122
+ city: string | null;
123
+ zip_code: string | null;
124
+ county_name: string | null;
125
+ address1: string;
126
+ address2: string | null;
127
+ address3: string | null;
128
+ };
35
129
  export type CompanyCountryOut = {
36
130
  company_country: CompanyCountry;
37
131
  };
132
+ export type CountryReferenceCurrencyIn = {
133
+ is_local: boolean;
134
+ can_transact: boolean;
135
+ code: string;
136
+ name: string;
137
+ is_default: boolean;
138
+ is_declared_insured: boolean;
139
+ is_active: boolean;
140
+ };
141
+ export type CountryReferenceCurrencyOut = {
142
+ country_reference_currency: CountryReferenceCurrency;
143
+ };
38
144
  export type CountryReferenceCurrenciesOut = {
39
145
  country_reference_currencies: CountryReferenceCurrency[];
40
146
  total: number;
@@ -43,21 +149,77 @@ export type CompanyCountryTaxesOut = {
43
149
  company_country_taxes: CompanyCountryTax[];
44
150
  total: number;
45
151
  };
152
+ export type ExchangeIn = {
153
+ country_reference_currency_id: number;
154
+ valid_since: string;
155
+ valid_until?: string;
156
+ value: string;
157
+ type: string;
158
+ is_active: boolean;
159
+ };
46
160
  export type ExchangesOut = {
47
161
  exchanges: CountryExchange[];
48
162
  total: number;
49
163
  };
50
- export type AccountEntitiesActivesOut = {
164
+ export type ExchangeOut = {
165
+ exchange: CountryExchange;
166
+ };
167
+ export type AccountsOut = {
168
+ accounts: Account[];
169
+ total: number;
170
+ };
171
+ export type AccountIn = {
172
+ number: string;
173
+ description: string;
174
+ account_type_id: number;
175
+ country_id: number;
176
+ };
177
+ export type AccountOut = {
178
+ account: Account;
179
+ };
180
+ export type AccountEntitiesIn = {
181
+ model_type: string;
182
+ model_id: number;
183
+ account_entities: {
184
+ id: number;
185
+ is_active: boolean;
186
+ }[];
187
+ };
188
+ export type AccountEntitiesOut = {
51
189
  account_entities: Account[];
52
190
  total: number;
53
191
  };
54
- export type ParametersIn = {
192
+ export type AccountCategoriesOut = {
193
+ account_categories: AccountCategory[];
194
+ total: number;
195
+ };
196
+ export type AccountTypeIn = {
197
+ name: string;
198
+ account_category_id: number;
199
+ };
200
+ export type AccountTypeOut = {
201
+ account_type: AccountType;
202
+ };
203
+ export type AccountTypesOut = {
204
+ account_types: AccountType[];
205
+ total: number;
206
+ };
207
+ export type ParametersOut = {
208
+ parameters: Parameter[];
209
+ total: number;
210
+ };
211
+ export type ParametersValuesIn = {
55
212
  paramNames: string[];
56
213
  };
57
214
  export type ParametersValuesOut = {
58
215
  parameters: Parameter[];
59
216
  total: number;
60
217
  };
218
+ export type ParametersByLevelIn = {
219
+ name: string;
220
+ model_type: string;
221
+ model_id: number;
222
+ }[];
61
223
  export type ParameterValueIn = {
62
224
  paramName: string;
63
225
  };
@@ -69,11 +231,49 @@ export type ParameterValueOut = {
69
231
  export type CountryReferencesOut = {
70
232
  country_references: CountryReference[];
71
233
  };
234
+ export type CountryReferenceIn = {
235
+ decimal_point: number;
236
+ decimal_separator: string;
237
+ thousands_separator: string;
238
+ use_billing: boolean;
239
+ use_payments: boolean;
240
+ currency_id: number;
241
+ is_active: boolean;
242
+ locale: string;
243
+ language_id: number;
244
+ restricted_import_countries: number[];
245
+ max_quantity_document_piece: number;
246
+ max_quantity_package_piece: number;
247
+ weight_restriction_piece: number;
248
+ restriction_shipment: number;
249
+ restriction_dimension: number;
250
+ max_declared_value: number;
251
+ territories: number[];
252
+ some_openings: boolean;
253
+ };
72
254
  export type CountryReferenceOut = {
73
255
  country_reference: CountryReference;
74
256
  };
257
+ export type CountryReferenceExtraChargeIn = {
258
+ local_availability: boolean;
259
+ mandatory: boolean;
260
+ selected: boolean;
261
+ shipment_scopes: number[];
262
+ shipment_content_types: number[];
263
+ value_local: number;
264
+ value_usd: number;
265
+ country_id: number;
266
+ extra_charge_id: number;
267
+ };
268
+ export type CountryReferenceExtraChargeOut = {
269
+ country_reference_extra_charge: CountryReferenceExtraCharge;
270
+ };
75
271
  export type WorkflowsOut = {
76
- workflow: Workflow[];
272
+ workflow: {
273
+ page: string;
274
+ enabled: boolean;
275
+ }[];
276
+ system_configuration: object;
77
277
  };
78
278
  export type EmployeesCustomersOut = {
79
279
  employee_customers: EmployeeCustomerDhl[];
@@ -102,3 +302,130 @@ export type BoardingProcessIdIn = {
102
302
  boarding_process_id: number;
103
303
  message: string;
104
304
  };
305
+ export type SystemsOut = {
306
+ systems: System[];
307
+ total: number;
308
+ };
309
+ export type SystemIn = {
310
+ name: string;
311
+ type: string;
312
+ can_workflow_config?: boolean;
313
+ configuration: {
314
+ [key: string]: string;
315
+ };
316
+ };
317
+ export type SystemOut = {
318
+ system: System;
319
+ };
320
+ export type SystemEntitiesIn = {
321
+ model_type: string;
322
+ model_id: number;
323
+ system_entities: {
324
+ id: number;
325
+ is_active: boolean;
326
+ }[];
327
+ };
328
+ export type SystemEntitiesOut = {
329
+ system_entities: System[];
330
+ total: number;
331
+ };
332
+ export type WorkflowConfigsBatchIn = {
333
+ store: {
334
+ system_id: number;
335
+ model_type: string;
336
+ model_id: number;
337
+ page_id: number;
338
+ enabled: boolean;
339
+ }[];
340
+ update: {
341
+ system_id: number;
342
+ model_type: string;
343
+ model_id: number;
344
+ page_id: number;
345
+ enabled: boolean;
346
+ }[];
347
+ };
348
+ export type WorkflowConfigsOut = {
349
+ workflow_configs: WorkflowConfig[];
350
+ total: number;
351
+ };
352
+ export type CompanyIn = {
353
+ name: string;
354
+ contact_name: string;
355
+ contact_email: string;
356
+ contact_phone_code: string;
357
+ contact_phone_number: string;
358
+ state: string | null;
359
+ city: string | null;
360
+ county_name: string | null;
361
+ zip_code: string | null;
362
+ address1: string;
363
+ address2: string | null;
364
+ address3: string | null;
365
+ is_active: boolean;
366
+ };
367
+ export type CompanyOut = {
368
+ company: Company;
369
+ };
370
+ export type ProductEntitiesIn = {
371
+ model_type: string;
372
+ model_id: number;
373
+ product_entities: {
374
+ id: number;
375
+ is_active: boolean;
376
+ }[];
377
+ };
378
+ export type ProductEntitiesOut = {
379
+ product_entities: ProductEntity[];
380
+ total: number;
381
+ };
382
+ export type CountryReferenceProductsOut = {
383
+ country_reference_products: CountryReferenceProduct[];
384
+ total: number;
385
+ };
386
+ export type CountryReferenceProductIn = {
387
+ anti_drug_letter: boolean;
388
+ business_letter: boolean;
389
+ country_id: number;
390
+ max_declared_value: number;
391
+ max_weight: number;
392
+ min_weight: number;
393
+ packaging: boolean;
394
+ product_id: number;
395
+ shipment_content_types: number[];
396
+ shipment_groups: number[];
397
+ shipment_scopes: number[];
398
+ local_name: string;
399
+ insurance: number;
400
+ };
401
+ export type CountryReferenceProductOut = {
402
+ country_reference_product: CountryReferenceProduct;
403
+ };
404
+ export type ExtraChargeEntitiesIn = {
405
+ model_type: string;
406
+ model_id: number;
407
+ extracharge_entities: {
408
+ id: number;
409
+ is_active: boolean;
410
+ }[];
411
+ };
412
+ export type ExtraChargeEntitiesOut = {
413
+ extracharge_entities: ExtraChargeEntity[];
414
+ total: number;
415
+ };
416
+ export type ParameterConfigsOut = {
417
+ parameter_configs: ParameterConfig[];
418
+ total: number;
419
+ };
420
+ export type ParameterConfigIn = {
421
+ level: string;
422
+ parameter_id: number;
423
+ model_type: string;
424
+ model_id: number;
425
+ name: string;
426
+ value: string;
427
+ };
428
+ export type ParameterConfigOut = {
429
+ parameter_config: ParameterConfig;
430
+ total: number;
431
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experteam-mx/ngx-services",
3
- "version": "18.5.9",
3
+ "version": "18.6.0",
4
4
  "description": "Angular common services for Experteam apps",
5
5
  "author": "Experteam Cía. Ltda.",
6
6
  "keywords": [