@experteam-mx/ngx-services 18.9.15 → 18.9.17

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 (103) hide show
  1. package/README.md +24 -24
  2. package/esm2022/lib/apis/api-billing-do.service.mjs +1 -1
  3. package/esm2022/lib/apis/api-billing-gt.service.mjs +1 -1
  4. package/esm2022/lib/apis/api-billing-mx.service.mjs +1 -1
  5. package/esm2022/lib/apis/api-billing-pa.service.mjs +1 -1
  6. package/esm2022/lib/apis/api-billing-sv.service.mjs +1 -1
  7. package/esm2022/lib/apis/api-cash-operations.service.mjs +1 -1
  8. package/esm2022/lib/apis/api-catalogs.service.mjs +24 -1
  9. package/esm2022/lib/apis/api-companies.service.mjs +1 -1
  10. package/esm2022/lib/apis/api-composition.service.mjs +1 -1
  11. package/esm2022/lib/apis/api-customs.service.mjs +1 -1
  12. package/esm2022/lib/apis/api-discounts.service.mjs +1 -1
  13. package/esm2022/lib/apis/api-e-tools-auto-billing.service.mjs +1 -1
  14. package/esm2022/lib/apis/api-events.service.mjs +1 -1
  15. package/esm2022/lib/apis/api-external-ops.service.mjs +1 -1
  16. package/esm2022/lib/apis/api-inventories.service.mjs +1 -1
  17. package/esm2022/lib/apis/api-invoices.service.mjs +1 -1
  18. package/esm2022/lib/apis/api-notifications.service.mjs +1 -1
  19. package/esm2022/lib/apis/api-open-items.service.mjs +1 -1
  20. package/esm2022/lib/apis/api-quote.service.mjs +1 -1
  21. package/esm2022/lib/apis/api-reports.service.mjs +17 -1
  22. package/esm2022/lib/apis/api-security.service.mjs +1 -1
  23. package/esm2022/lib/apis/api-services.service.mjs +1 -1
  24. package/esm2022/lib/apis/api-shipments.service.mjs +30 -1
  25. package/esm2022/lib/apis/api-supplies.service.mjs +1 -1
  26. package/esm2022/lib/apis/models/api-billing-do.interfaces.mjs +1 -1
  27. package/esm2022/lib/apis/models/api-billing-do.types.mjs +1 -1
  28. package/esm2022/lib/apis/models/api-billing-mx.interfaces.mjs +1 -1
  29. package/esm2022/lib/apis/models/api-billing-mx.types.mjs +1 -1
  30. package/esm2022/lib/apis/models/api-billing-pa.interfaces.mjs +1 -1
  31. package/esm2022/lib/apis/models/api-billing-pa.types.mjs +1 -1
  32. package/esm2022/lib/apis/models/api-billing-sv.interfaces.mjs +1 -1
  33. package/esm2022/lib/apis/models/api-billing-sv.types.mjs +1 -1
  34. package/esm2022/lib/apis/models/api-billing.models.mjs +1 -1
  35. package/esm2022/lib/apis/models/api-cash-operations.interfaces.mjs +1 -1
  36. package/esm2022/lib/apis/models/api-cash-operations.types.mjs +1 -1
  37. package/esm2022/lib/apis/models/api-catalog.enum.mjs +1 -1
  38. package/esm2022/lib/apis/models/api-catalog.interfaces.mjs +1 -1
  39. package/esm2022/lib/apis/models/api-catalog.types.mjs +1 -1
  40. package/esm2022/lib/apis/models/api-companies.interfaces.mjs +1 -1
  41. package/esm2022/lib/apis/models/api-companies.types.mjs +1 -1
  42. package/esm2022/lib/apis/models/api-composition.interfaces.mjs +1 -1
  43. package/esm2022/lib/apis/models/api-composition.types.mjs +1 -1
  44. package/esm2022/lib/apis/models/api-customs.interfaces.mjs +1 -1
  45. package/esm2022/lib/apis/models/api-customs.types.mjs +1 -1
  46. package/esm2022/lib/apis/models/api-discounts.interfaces.mjs +1 -1
  47. package/esm2022/lib/apis/models/api-discounts.types.mjs +1 -1
  48. package/esm2022/lib/apis/models/api-e-tools-auto-billing.interfaces.mjs +1 -1
  49. package/esm2022/lib/apis/models/api-e-tools-auto-billing.types.mjs +1 -1
  50. package/esm2022/lib/apis/models/api-events.enum.mjs +1 -1
  51. package/esm2022/lib/apis/models/api-events.interfaces.mjs +1 -1
  52. package/esm2022/lib/apis/models/api-events.types.mjs +1 -1
  53. package/esm2022/lib/apis/models/api-external-ops.interfaces.mjs +1 -1
  54. package/esm2022/lib/apis/models/api-external-ops.types.mjs +1 -1
  55. package/esm2022/lib/apis/models/api-inventories.enum.mjs +1 -1
  56. package/esm2022/lib/apis/models/api-inventories.interfaces.mjs +1 -1
  57. package/esm2022/lib/apis/models/api-inventories.types.mjs +1 -1
  58. package/esm2022/lib/apis/models/api-invoices.interfaces.mjs +1 -1
  59. package/esm2022/lib/apis/models/api-invoices.types.mjs +1 -1
  60. package/esm2022/lib/apis/models/api-notifications.interfaces.mjs +1 -1
  61. package/esm2022/lib/apis/models/api-notifications.types.mjs +1 -1
  62. package/esm2022/lib/apis/models/api-open-items.interfaces.mjs +1 -1
  63. package/esm2022/lib/apis/models/api-open-items.types.mjs +1 -1
  64. package/esm2022/lib/apis/models/api-quote.interfaces.mjs +1 -1
  65. package/esm2022/lib/apis/models/api-quote.types.mjs +1 -1
  66. package/esm2022/lib/apis/models/api-reports.interfaces.mjs +1 -1
  67. package/esm2022/lib/apis/models/api-reports.types.mjs +1 -1
  68. package/esm2022/lib/apis/models/api-security.interfaces.mjs +1 -1
  69. package/esm2022/lib/apis/models/api-security.types.mjs +1 -1
  70. package/esm2022/lib/apis/models/api-services.interfaces.mjs +1 -1
  71. package/esm2022/lib/apis/models/api-services.types.mjs +1 -1
  72. package/esm2022/lib/apis/models/api-shipments.enums.mjs +1 -1
  73. package/esm2022/lib/apis/models/api-shipments.interfaces.mjs +1 -1
  74. package/esm2022/lib/apis/models/api-shipments.types.mjs +1 -1
  75. package/esm2022/lib/apis/models/api-supplies.interfaces.mjs +1 -1
  76. package/esm2022/lib/apis/models/api-supplies.types.mjs +1 -1
  77. package/esm2022/lib/apis/models/api.models.mjs +1 -1
  78. package/esm2022/lib/cypher/crypto.service.mjs +1 -1
  79. package/esm2022/lib/helpers/files.mjs +1 -1
  80. package/esm2022/lib/helpers/http.mjs +1 -1
  81. package/esm2022/lib/interceptors/api-headers.interceptor.mjs +1 -1
  82. package/esm2022/lib/interceptors/api-key.interceptor.mjs +1 -1
  83. package/esm2022/lib/interceptors/api-token.interceptor.mjs +1 -1
  84. package/esm2022/lib/interceptors/http-caching.interceptor.mjs +1 -1
  85. package/esm2022/lib/ngx-services.models.mjs +1 -1
  86. package/esm2022/lib/ngx-services.module.mjs +1 -1
  87. package/esm2022/lib/websockets/web-sockets.service.mjs +1 -1
  88. package/esm2022/public-api.mjs +1 -1
  89. package/fesm2022/experteam-mx-ngx-services.mjs +68 -0
  90. package/fesm2022/experteam-mx-ngx-services.mjs.map +1 -1
  91. package/lib/apis/api-catalogs.service.d.ts +19 -1
  92. package/lib/apis/api-reports.service.d.ts +14 -1
  93. package/lib/apis/api-shipments.service.d.ts +20 -1
  94. package/lib/apis/models/api-catalog.interfaces.d.ts +7 -0
  95. package/lib/apis/models/api-catalog.types.d.ts +11 -1
  96. package/lib/apis/models/api-companies.interfaces.d.ts +5 -0
  97. package/lib/apis/models/api-companies.types.d.ts +6 -2
  98. package/lib/apis/models/api-reports.interfaces.d.ts +58 -16
  99. package/lib/apis/models/api-reports.types.d.ts +7 -2
  100. package/lib/apis/models/api-shipments.interfaces.d.ts +29 -0
  101. package/lib/apis/models/api-shipments.types.d.ts +29 -1
  102. package/lib/ngx-services.models.d.ts +1 -1
  103. package/package.json +1 -1
@@ -2,7 +2,7 @@ import { Environment } from '../ngx-services.models';
2
2
  import { HttpClient } from '@angular/common/http';
3
3
  import { Observable } from 'rxjs';
4
4
  import { QueryParams } from './models/api.models';
5
- import { CancellationReasonIn, CancellationReasonOut, CancellationReasonsOut, CountriesOut, CountryIn, CountryOut, CurrenciesOut, ExtraChargeIn, ExtraChargeOut, ExtraChargesOut, GenericFolioIn, GenericFolioOut, GenericFoliosOut, HolidayIn, HolidayOut, HolidaysOut, IdentificationTypeIn, IdentificationTypeOut, IdentificationTypesOut, LanguagesOut, ManagementAreasOut, OperationTypesOut, ProductIn, ProductOut, QuestionIn, QuestionOut, QuestionsOut, RegionsOut, ShipmentContentTypesOut, ShipmentGroupsOut, ShipmentIncomeTypeIn, ShipmentIncomeTypeOut, ShipmentIncomeTypesOut, ShipmentScopesOut, ShipmentStatusesOut, UniqueFolioIn, UniqueFolioOut, UniqueFoliosOut, UnitsOut, ZonesOut } from './models/api-catalog.types';
5
+ import { BusinessPartyTraderTypesOut, CancellationReasonIn, CancellationReasonOut, CancellationReasonsOut, CountriesOut, CountryIn, CountryOut, CurrenciesOut, ExtraChargeIn, ExtraChargeOut, ExtraChargesOut, GenericFolioIn, GenericFolioOut, GenericFoliosOut, HolidayIn, HolidayOut, HolidaysOut, IdentificationTypeIn, IdentificationTypeNumberValidationIn, IdentificationTypeNumberValidationOut, IdentificationTypeOut, IdentificationTypesOut, LanguagesOut, ManagementAreasOut, OperationTypesOut, ProductIn, ProductOut, QuestionIn, QuestionOut, QuestionsOut, RegionsOut, ShipmentContentTypesOut, ShipmentGroupsOut, ShipmentIncomeTypeIn, ShipmentIncomeTypeOut, ShipmentIncomeTypesOut, ShipmentScopesOut, ShipmentStatusesOut, UniqueFolioIn, UniqueFolioOut, UniqueFoliosOut, UnitsOut, ZonesOut } from './models/api-catalog.types';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class ApiCatalogsService {
8
8
  private environments;
@@ -77,6 +77,18 @@ export declare class ApiCatalogsService {
77
77
  * The Observable will emit an error if the HTTP request fails.
78
78
  */
79
79
  deleteIdentificationType(id: number): Observable<{}>;
80
+ /**
81
+ * Sends a POST request to validate identification type number.
82
+ *
83
+ * The request payload is sent as an object with a `body` property containing the provided
84
+ * IdentificationTypeNumberValidationIn value (i.e. { body: IdentificationTypeNumberValidationIn }). On success the HTTP response is expected
85
+ * to follow the ApiSuccess<T> shape; the operator maps that response to the inner `data`
86
+ * object and emits it as a IdentificationTypeNumberValidationOut.
87
+ *
88
+ * @param body - The identification type number validation payload to validate (IdentificationTypeNumberValidationIn).
89
+ * @returns Observable<IdentificationTypeNumberValidationOut> that emits the validate status.
90
+ */
91
+ postIdentificationtTypeNumberValidation(body: IdentificationTypeNumberValidationIn): Observable<IdentificationTypeNumberValidationOut>;
80
92
  /**
81
93
  * Fetches the extra charges based on the provided query parameters.
82
94
  *
@@ -428,6 +440,12 @@ export declare class ApiCatalogsService {
428
440
  * The Observable will emit an error if the HTTP request fails.
429
441
  */
430
442
  deleteHoliday(id: number): Observable<{}>;
443
+ /**
444
+ * Retrieves a list of business party trader types
445
+ * @param {QueryParams} params - Query parameters for filtering and pagination (optional)
446
+ * @returns {Observable<BusinessPartyTraderTypesOut>} Observable containing the list of trader types
447
+ */
448
+ getBusinessPartyTraderTypes(params: QueryParams): Observable<BusinessPartyTraderTypesOut>;
431
449
  static ɵfac: i0.ɵɵFactoryDeclaration<ApiCatalogsService, never>;
432
450
  static ɵprov: i0.ɵɵInjectableDeclaration<ApiCatalogsService>;
433
451
  }
@@ -1,7 +1,7 @@
1
1
  import { HttpClient, HttpResponse } from '@angular/common/http';
2
2
  import { Observable } from 'rxjs';
3
3
  import { Environment } from '../ngx-services.models';
4
- import { CollectionPaymentsOut, ExternalShipmentsOut, FileCheckOut, InvoicesOut, PartialWithdrawalsOut, PromotionCodeDiscountsOut, ShipmentsLandingReportOut, ShipmentsReportOut } from './models/api-reports.types';
4
+ import { CollectionPaymentsOut, ExternalShipmentsOut, FileCheckOut, InvoicesOut, PartialWithdrawalsOut, PromotionCodeDiscountsOut, SalesBookReportOut, ShipmentsLandingReportOut, ShipmentsReportOut } from './models/api-reports.types';
5
5
  import { QueryParams } from './models/api.models';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class ApiReportsService {
@@ -102,6 +102,19 @@ export declare class ApiReportsService {
102
102
  * @returns An observable that emits the list of invoices.
103
103
  */
104
104
  getInvoices(params: QueryParams): Observable<InvoicesOut>;
105
+ /**
106
+ * Retrieves the sales book report based on the provided query parameters.
107
+ *
108
+ * @param params - The query parameters to filter or customize the report.
109
+ * @returns An Observable that emits the sales book report data.
110
+ *
111
+ * @example
112
+ * ```typescript
113
+ * this.apiReportsService.getSalesBookReport({ page: 1, limit: 10 })
114
+ * .subscribe(report => console.log(report));
115
+ * ```
116
+ */
117
+ getSalesBookReport(params: QueryParams): Observable<SalesBookReportOut>;
105
118
  static ɵfac: i0.ɵɵFactoryDeclaration<ApiReportsService, never>;
106
119
  static ɵprov: i0.ɵɵInjectableDeclaration<ApiReportsService>;
107
120
  }
@@ -1,7 +1,7 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
2
  import { Observable } from 'rxjs';
3
3
  import { Environment } from '../ngx-services.models';
4
- import { ExportTypesOut, ManifestMultipleIn, ManifestMultipleOut, ShipmentCancellationIn, ShipmentCancellationOut, ShipmentEmployeeCustomer, ValidateAccountIn, ValidateAccountOut } from './models/api-shipments.types';
4
+ import { EmbassyShipmentIn, EmbassyShipmentOut, EmbassyShipmentsOut, ExportTypesOut, ManifestMultipleIn, ManifestMultipleOut, ShipmentCancellationIn, ShipmentCancellationOut, ShipmentEmployeeCustomer, ValidateAccountIn, ValidateAccountOut } from './models/api-shipments.types';
5
5
  import { QueryParams } from './models/api.models';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class ApiShipmentsService {
@@ -53,6 +53,25 @@ export declare class ApiShipmentsService {
53
53
  * @return {Observable<ExportTypesOut>} An observable containing the list of export types.
54
54
  */
55
55
  getExportTypes(params: QueryParams): Observable<ExportTypesOut>;
56
+ /**
57
+ * Retrieves a paginated list of embassy shipments
58
+ * @param {QueryParams} params - Query parameters for filtering and pagination
59
+ * @returns {Observable<EmbassyShipmentsOut>} Observable containing the list of shipments and pagination metadata
60
+ */
61
+ getEmbassyShipments(params: QueryParams): Observable<EmbassyShipmentsOut>;
62
+ /**
63
+ * Creates a new embassy shipment
64
+ * @param {EmbassyShipmentIn} body - The shipment data to create
65
+ * @returns {Observable<EmbassyShipmentOut>} Observable containing the created shipment with its assigned ID
66
+ */
67
+ postEmbassyShipments(body: EmbassyShipmentIn): Observable<EmbassyShipmentOut>;
68
+ /**
69
+ * Updates an existing embassy shipment
70
+ * @param {number} id - The unique identifier of the shipment to update
71
+ * @param {EmbassyShipmentIn} body - The updated shipment data
72
+ * @returns {Observable<EmbassyShipmentOut>} Observable containing the updated shipment
73
+ */
74
+ putEmbassyShipments(id: number, body: EmbassyShipmentIn): Observable<EmbassyShipmentOut>;
56
75
  static ɵfac: i0.ɵɵFactoryDeclaration<ApiShipmentsService, never>;
57
76
  static ɵprov: i0.ɵɵInjectableDeclaration<ApiShipmentsService>;
58
77
  }
@@ -202,3 +202,10 @@ export interface Holiday extends SymfonyModel {
202
202
  description: string;
203
203
  country: Country;
204
204
  }
205
+ export interface BusinessPartyTraderType extends SymfonyModel {
206
+ code: string;
207
+ name: string;
208
+ description: string | null;
209
+ category: string | null;
210
+ esbCode: string;
211
+ }
@@ -1,5 +1,5 @@
1
1
  import { ViewSectionOption } from './api-catalog.enum';
2
- import { CancellationReason, Country, Currency, ExtraCharge, GenericFolio, Holiday, IdentificationType, Language, ManagementArea, OperationType, Product, Question, Region, ShipmentContentType, ShipmentGroup, ShipmentIncomeType, ShipmentScope, ShipmentStatus, UniqueFolio, Unit, Zone } from './api-catalog.interfaces';
2
+ import { BusinessPartyTraderType, CancellationReason, Country, Currency, ExtraCharge, GenericFolio, Holiday, IdentificationType, Language, ManagementArea, OperationType, Product, Question, Region, ShipmentContentType, ShipmentGroup, ShipmentIncomeType, ShipmentScope, ShipmentStatus, UniqueFolio, Unit, Zone } from './api-catalog.interfaces';
3
3
  export type OperationTypesOut = {
4
4
  total: number;
5
5
  operationTypes: OperationType[];
@@ -201,3 +201,13 @@ export type HolidayIn = {
201
201
  countryId: number;
202
202
  isActive: boolean;
203
203
  };
204
+ export type IdentificationTypeNumberValidationIn = {
205
+ identificationTypeId: number;
206
+ identificationNumber: string;
207
+ section: string;
208
+ };
209
+ export type IdentificationTypeNumberValidationOut = {};
210
+ export type BusinessPartyTraderTypesOut = {
211
+ total: number;
212
+ businessPartyTraderTypes: BusinessPartyTraderType[];
213
+ };
@@ -248,6 +248,11 @@ export interface EmployeeCustomerDhl extends LaravelModel {
248
248
  address: string;
249
249
  phone_code: string;
250
250
  phone_number: string;
251
+ phone_full: {
252
+ code: string;
253
+ number: string;
254
+ country_code: string;
255
+ };
251
256
  email: string;
252
257
  country_id: number;
253
258
  employee_id: number | null;
@@ -299,6 +299,9 @@ export type EmployeeCustomersIn = {
299
299
  address: string;
300
300
  phone_code: string;
301
301
  phone_number: string;
302
+ phone_full: {
303
+ [key: string]: string;
304
+ };
302
305
  email: string;
303
306
  country_id: number;
304
307
  employee_id: number | null;
@@ -411,12 +414,13 @@ export type CountryReferenceProductOut = {
411
414
  country_reference_product: CountryReferenceProduct;
412
415
  };
413
416
  export type ExtraChargeEntitiesIn = {
414
- model_type: string;
415
- model_id: number;
417
+ model_type?: string;
418
+ model_id?: number;
416
419
  extracharge_entities: {
417
420
  id: number;
418
421
  is_active: boolean;
419
422
  }[];
423
+ check_all?: boolean;
420
424
  };
421
425
  export type ExtraChargeEntitiesOut = {
422
426
  extracharge_entities: ExtraChargeEntity[];
@@ -118,11 +118,13 @@ export interface ShipmentReports {
118
118
  }[];
119
119
  }
120
120
  export interface ShipmentLandingReport extends ActiveLessLaravelModel {
121
- authorization_numbers: string[];
122
- commercial_invoice: boolean;
121
+ authorization_numbers: string[] | null;
122
+ commercial_invoice: boolean | null;
123
+ company_country_id: number;
123
124
  company_id: number;
124
125
  company_name: string;
125
126
  country_id: number;
127
+ country_name: string;
126
128
  currency_code: string | null;
127
129
  document_id: number;
128
130
  hasCreditCardPayment: boolean;
@@ -131,22 +133,28 @@ export interface ShipmentLandingReport extends ActiveLessLaravelModel {
131
133
  invoice_document_id: number | null;
132
134
  is_document: boolean;
133
135
  is_manual: boolean;
134
- itn_number: string;
136
+ itn_number: string | null;
135
137
  location_code: string;
136
138
  location_facility_code: string;
137
139
  location_id: number;
138
140
  location_name: string;
139
- price_override_approver_name: string;
140
- price_override_reason_name: string;
141
+ price_override_approver_name: string | null;
142
+ price_override_reason_name: string | null;
141
143
  product_global_name: string;
142
144
  product_local_name: string;
143
145
  question_description: string | null;
144
146
  receiver_address_line1: string;
147
+ receiver_address_line2: string | null;
148
+ receiver_address_line3: string | null;
145
149
  receiver_city_name: string;
146
150
  receiver_company_name: string;
147
151
  receiver_country_name: string;
152
+ receiver_county_name: string | null;
153
+ receiver_email: string | null;
148
154
  receiver_full_name: string;
149
- receiver_postal_code: string;
155
+ receiver_full_phone_number: string | null;
156
+ receiver_identification_number: string | null;
157
+ receiver_postal_code: string | null;
150
158
  receiver_state_name: string;
151
159
  send_to_api_inventories: boolean;
152
160
  shipment_description: string;
@@ -162,20 +170,22 @@ export interface ShipmentLandingReport extends ActiveLessLaravelModel {
162
170
  shipment_tags: ShipmentTag[];
163
171
  shipment_tracking_number: string;
164
172
  shipment_type: string;
165
- shipment_value: string;
173
+ shipment_value: number;
166
174
  shipper_account: string;
167
175
  shipper_address_line1: string;
168
- shipper_address_line2: string;
169
- shipper_address_line3: string;
170
- shipper_city_name: string;
176
+ shipper_address_line2: string | null;
177
+ shipper_address_line3: string | null;
178
+ shipper_city_name: string | null;
171
179
  shipper_company_name: string;
172
- shipper_email: string;
180
+ shipper_country_name: string;
181
+ shipper_county_name: string | null;
182
+ shipper_email: string | null;
173
183
  shipper_full_name: string;
174
184
  shipper_full_phone_number: string;
175
- shipper_identification_number: string;
176
- shipper_phone_number: string;
177
- shipper_postal_code: string;
178
- shipper_state_name: string;
185
+ shipper_identification_number: string | null;
186
+ shipper_phone_number: string | null;
187
+ shipper_postal_code: string | null;
188
+ shipper_state_name: string | null;
179
189
  tracking: string | null;
180
190
  user_id: number;
181
191
  user_username: string;
@@ -184,7 +194,7 @@ export interface ShipmentLandingReport extends ActiveLessLaravelModel {
184
194
  include_indemnity_letter: boolean;
185
195
  shipment_content_type_id: number;
186
196
  shipment_scope_id: number;
187
- };
197
+ } | null;
188
198
  }
189
199
  export interface ShipmentTag extends ActiveLessSymfonyModel {
190
200
  name: string;
@@ -207,6 +217,10 @@ export interface ReportExternalShipment extends ActiveLessLaravelModel {
207
217
  total: number;
208
218
  tracking_number: string;
209
219
  user_id: number;
220
+ customer_full_name: string;
221
+ customer_email: string | null;
222
+ customer_phone_code: string | null;
223
+ customer_phone_number: string | null;
210
224
  }
211
225
  export interface ReportExternalShipmentAddress extends ApiModel {
212
226
  address_line_1: string;
@@ -309,3 +323,31 @@ export interface Invoice extends ActiveLessLaravelModel {
309
323
  customer_county_name: string;
310
324
  shipment_id: number;
311
325
  }
326
+ export interface Sales extends ActiveLessLaravelModel {
327
+ company_country_id: number;
328
+ country_document_type_id: number;
329
+ country_id: number;
330
+ customer_address_line1: string;
331
+ customer_email: string;
332
+ customer_name: string;
333
+ customer_phone: string;
334
+ document_full_number: string;
335
+ document_sap_full_number: string;
336
+ document_status_name: string;
337
+ document_status: number;
338
+ document_type_name_EN: string;
339
+ document_type_name_ES: string;
340
+ document_type_name_FR: string;
341
+ document_type_name_PT: string;
342
+ document_type_name: string;
343
+ exempt: number;
344
+ identification_number: string;
345
+ identification_type_id: number;
346
+ identification_type_name: string;
347
+ installation_id: number;
348
+ location_id: number;
349
+ subtotal: number;
350
+ tax: number;
351
+ total: number;
352
+ user_id: number;
353
+ }
@@ -1,6 +1,6 @@
1
- import { CollectionPayment, Invoice, PartialWithdrawal, PromotionCodeDiscount, ReportExternalShipment, ShipmentLandingReport, ShipmentReports } from './api-reports.interfaces';
2
- import { QueryParams } from './api.models';
1
+ import { CollectionPayment, Invoice, PartialWithdrawal, PromotionCodeDiscount, ReportExternalShipment, Sales, ShipmentLandingReport, ShipmentReports } from './api-reports.interfaces';
3
2
  import { Session } from './api-security.interfaces';
3
+ import { QueryParams } from './api.models';
4
4
  export type CollectionPaymentsOut = {
5
5
  collection_payments: CollectionPayment[];
6
6
  total: number;
@@ -52,3 +52,8 @@ export type InvoicesOut = {
52
52
  invoices: Invoice[];
53
53
  total: number;
54
54
  };
55
+ export type SalesBookReportOut = {
56
+ sale_books: Sales[];
57
+ total: number;
58
+ transaction_id?: string;
59
+ };
@@ -1,4 +1,5 @@
1
1
  import { ActiveLessSymfonyModel, SymfonyModel } from './api.models';
2
+ import { ShipmentContentType } from './api-catalog.interfaces';
2
3
  export interface ShipmentEmployeeCustomers extends ActiveLessSymfonyModel {
3
4
  trackingNumber: string;
4
5
  employeeCustomerId: number;
@@ -10,3 +11,31 @@ export interface ExportType extends SymfonyModel {
10
11
  code: string;
11
12
  name: string;
12
13
  }
14
+ export interface DestinationCountry extends ActiveLessSymfonyModel {
15
+ code: string;
16
+ name: string;
17
+ }
18
+ export interface EmbassyShipment extends SymfonyModel {
19
+ id: number;
20
+ countryId: number;
21
+ name: string;
22
+ destinationCountry: DestinationCountry;
23
+ destinationCityName: string | null;
24
+ destinationPostalCode: string | null;
25
+ destinationCountyName: string | null;
26
+ contentDescription: string | null;
27
+ shipmentContentType: ShipmentContentType;
28
+ piecesNumber: number | null;
29
+ destinationCompanyName: string | null;
30
+ destinationFullName: string | null;
31
+ destinationAddressLine1: string | null;
32
+ destinationAddressLine2: string | null;
33
+ destinationAddressLine3: string | null;
34
+ destinationPhoneCode: string | null;
35
+ destinationPhoneNumber: string | null;
36
+ destinationEmail: string | null;
37
+ businessPartyTraderTypeId: number | null;
38
+ isActive: boolean;
39
+ createdAt: string;
40
+ updatedAt: string;
41
+ }
@@ -1,4 +1,4 @@
1
- import { ExportType, ShipmentEmployeeCustomers } from './api-shipments.interfaces';
1
+ import { EmbassyShipment, ExportType, ShipmentEmployeeCustomers } from './api-shipments.interfaces';
2
2
  import { Document } from './api-invoices.interfaces';
3
3
  export type ValidateAccountIn = {
4
4
  accountValue: string;
@@ -91,3 +91,31 @@ export type ExportTypesOut = {
91
91
  exportTypes: ExportType[];
92
92
  total: number;
93
93
  };
94
+ export type EmbassyShipmentsOut = {
95
+ total: number;
96
+ embassyShipments: EmbassyShipment[];
97
+ };
98
+ export type EmbassyShipmentIn = {
99
+ countryId: number;
100
+ name: string;
101
+ destinationCountryId: number | null;
102
+ destinationCityName: string | null;
103
+ destinationPostalCode: string | null;
104
+ destinationCountyName: string | null;
105
+ contentDescription: string | null;
106
+ shipmentContentTypeId: number | null;
107
+ piecesNumber: number | null;
108
+ destinationCompanyName: string | null;
109
+ destinationFullName: string | null;
110
+ destinationAddressLine1: string | null;
111
+ destinationAddressLine2: string | null;
112
+ destinationAddressLine3: string | null;
113
+ destinationPhoneCode: string | null;
114
+ destinationPhoneNumber: string | null;
115
+ destinationEmail: string | null;
116
+ businessPartyTraderTypeId: number | null;
117
+ isActive: boolean;
118
+ };
119
+ export interface EmbassyShipmentOut {
120
+ embassyShipment: EmbassyShipment;
121
+ }
@@ -27,8 +27,8 @@ export type Environment = {
27
27
  apiCompositionUrl?: string;
28
28
  apiCustomsUrl?: string;
29
29
  apiDiscountsUrl?: string;
30
- apiEventsUrl?: string;
31
30
  apiEToolsAutoBilling?: string;
31
+ apiEventsUrl?: string;
32
32
  apiExternalOperationsKey?: string;
33
33
  apiExternalOperationsUrl?: string;
34
34
  apiInventoriesUrl?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experteam-mx/ngx-services",
3
- "version": "18.9.15",
3
+ "version": "18.9.17",
4
4
  "description": "Angular common services for Experteam apps",
5
5
  "author": "Experteam Cía. Ltda.",
6
6
  "keywords": [