@experteam-mx/ngx-services 18.9.6 → 18.9.10

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,7 +1,8 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
2
  import { Observable } from 'rxjs';
3
3
  import { Environment } from '../ngx-services.models';
4
- import { ManifestMultipleIn, ManifestMultipleOut, ShipmentCancellationIn, ShipmentCancellationOut, ShipmentEmployeeCustomer, ValidateAccountIn, ValidateAccountOut } from './models/api-shipments.types';
4
+ import { ExportTypesOut, ManifestMultipleIn, ManifestMultipleOut, ShipmentCancellationIn, ShipmentCancellationOut, ShipmentEmployeeCustomer, ValidateAccountIn, ValidateAccountOut } from './models/api-shipments.types';
5
+ import { QueryParams } from './models/api.models';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class ApiShipmentsService {
7
8
  private environments;
@@ -45,6 +46,13 @@ export declare class ApiShipmentsService {
45
46
  * @return {Observable<ShipmentCancellationOut>} An observable emitting the result of the cancellation operation.
46
47
  */
47
48
  patchShipmentsCancellation({ shipmentId, reasonId }: ShipmentCancellationIn): Observable<ShipmentCancellationOut>;
49
+ /**
50
+ * Fetches a list of export types based on the provided query parameters.
51
+ *
52
+ * @param {QueryParams} params - The query parameters to filter the export types.
53
+ * @return {Observable<ExportTypesOut>} An observable containing the list of export types.
54
+ */
55
+ getExportTypes(params: QueryParams): Observable<ExportTypesOut>;
48
56
  static ɵfac: i0.ɵɵFactoryDeclaration<ApiShipmentsService, never>;
49
57
  static ɵprov: i0.ɵɵInjectableDeclaration<ApiShipmentsService>;
50
58
  }
@@ -1,6 +1,5 @@
1
- import { ActiveLessLaravelModel, ActiveLessSymfonyModel, ApiModel, LaravelModel, Translations } from './api.models';
2
- import { DocumentPayment } from './api-invoices.interfaces';
3
1
  import { OperationType } from './api-catalog.interfaces';
2
+ import { ActiveLessLaravelModel, ActiveLessSymfonyModel, ApiModel, LaravelModel, Translations } from './api.models';
4
3
  export interface CollectionPayment extends LaravelModel {
5
4
  _id: number;
6
5
  country_code: string;
@@ -47,159 +46,74 @@ export interface DocumentCategoryReports extends LaravelModel {
47
46
  updated_at: string;
48
47
  translations: Translations;
49
48
  }
50
- export interface ShipmentReports extends LaravelModel {
51
- amount_1: number;
52
- amount_2: number;
53
- amount_collected: number;
49
+ export interface ShipmentReports {
54
50
  authorization_numbers: string[];
55
51
  commercial_invoice: boolean;
56
- company_country_id: number;
57
- company_id: number;
58
52
  company_name: string;
59
- country_code: string;
60
53
  country_id: number;
61
54
  country_name: string;
62
- currency_code: string | null;
63
- customer_email: string;
64
- customer_full_phone_number: string;
65
- customer_identification_number: string;
66
- customer_identification_type_id: number;
67
- date: string;
68
- date_og: string;
69
- declared_value: number;
70
- delivery_date_time: string;
71
- destination_facility_code: string;
72
- destination_service_area_code: string;
55
+ currency_code: string;
56
+ customer_identification_number: string | null;
57
+ customer_identification_type_id: number | null;
73
58
  document_id: number;
74
- document_payments?: DocumentPayment[];
75
- ein_number: string;
59
+ id: number;
76
60
  installation_id: number;
77
61
  installation_number: number;
78
- insured_value: number;
79
- invoice?: string[];
80
- invoice_document_id?: number | null;
62
+ invoice_document_id: number | null;
81
63
  is_document: boolean;
82
- is_kiosk: boolean;
83
64
  is_manual: boolean;
84
- is_marketing_consent: boolean;
85
- is_price_override: boolean;
86
- is_proforma: boolean;
87
- is_promotion_code: boolean;
88
- is_retail_rate: boolean;
89
- is_term_condition: boolean;
90
- itn_number: string;
91
- location_facility_code: string;
65
+ itn_number: string | null;
92
66
  location_id: number;
93
67
  location_name: string;
94
- origin_facility_code: string;
95
- origin_service_area_code: string;
96
- payment_code_1: string;
97
- payment_code_2: string;
98
- payment_type_1: string;
99
- payment_type_2: string;
100
- price_override_approver_id: number;
101
- price_override_approver_name: string;
102
- price_override_reason_id: number;
103
- price_override_reason_name: string;
104
- product_global_code: string;
105
- product_local_code: string;
68
+ price_override_approver_name: string | null;
69
+ price_override_reason_name: string | null;
106
70
  product_subtotal: number;
107
71
  product_tax: number;
108
- product_total: number;
109
- promotion_code: string;
110
- question_description: string;
111
- question_id: number;
112
- question_type: string;
113
- receiver_address_line1: string;
114
- receiver_address_line2: string;
115
- receiver_city_name: string;
72
+ question_description: string | null;
116
73
  receiver_company_name: string;
117
74
  receiver_full_name: string;
118
- receiver_postal_code: string;
119
- receiver_state_code: string;
120
- receiver_state_name: string;
121
- reference_1: string;
122
- reference_2: string;
123
- retail_rate_adjustment: number;
124
- selected?: boolean;
125
75
  send_to_api_inventories: boolean;
126
- shipment?: string[];
127
- shipment_bill_weight: number;
128
- shipment_gmt_offset: string;
129
76
  shipment_id: number;
130
- shipment_pieces_number: number;
131
77
  shipment_pieces_tracking_numbers: string[];
132
- shipment_scope_name: string;
133
78
  shipment_status_code: string;
134
79
  shipment_status_description: string;
135
80
  shipment_status_id: number;
81
+ shipment_status_translations: Translations;
136
82
  shipment_tags: ShipmentTag[];
137
83
  shipment_tracking_number: string;
138
84
  shipment_type: string;
139
- shipment_value: number;
85
+ shipment_value: string;
140
86
  shipper_account: string;
141
87
  shipper_address_line1: string;
142
- shipper_address_line2: string;
143
- shipper_address_line3: string;
88
+ shipper_address_line2: string | null;
89
+ shipper_address_line3: string | null;
144
90
  shipper_city_name: string;
145
91
  shipper_company_name: string;
146
92
  shipper_email: string;
147
93
  shipper_full_name: string;
148
94
  shipper_full_phone_number: string;
149
- shipper_identification_number: string;
150
- shipper_phone_code: string;
95
+ shipper_identification_number: string | null;
151
96
  shipper_phone_number: string;
152
97
  shipper_postal_code: string;
153
- shipper_state_code: string;
154
- shipper_state_name: string;
155
- subtotal: number;
156
- tax: number;
157
- to_landing: boolean;
98
+ shipper_state_name: string | null;
158
99
  total: number;
159
- total_partner_account_value: number;
160
- total_published_value: number;
161
- transaction_id: string;
100
+ tracking: string | null;
101
+ updated_at: string;
162
102
  user_id: number;
163
103
  user_username: string;
164
104
  additional_documents: {
165
105
  country_id: number;
166
106
  include_indemnity_letter: boolean;
167
- include_pdf: boolean;
168
107
  shipment_content_type_id: number;
169
108
  shipment_scope_id: number;
170
109
  };
171
- product_taxes: {
172
- code: string;
173
- percent: number;
174
- base_amount: number;
175
- amount: number;
176
- }[];
177
- shipment_company_country_extra_charges: {
178
- _id: number;
179
- subtotal: number;
180
- tax: number;
181
- total: number;
182
- extra_charge_id: number;
183
- taxes: {
184
- code: string;
185
- percent: number;
186
- base_amount: number;
187
- amount: number;
188
- }[];
189
- created_at: string;
190
- updated_at: string;
191
- global_service_code: string;
192
- local_service_code: string;
193
- global_service_name: string;
194
- local_service_name: string;
195
- is_discount: false;
196
- }[];
197
- shipment_status_translations: {
198
- description: {
199
- [key: string]: string;
110
+ document_payments: {
111
+ payment: {
112
+ countryPaymentType: {
113
+ code: string;
114
+ };
200
115
  };
201
- };
202
- tracking?: string;
116
+ }[];
203
117
  }
204
118
  export interface ShipmentTag extends ActiveLessSymfonyModel {
205
119
  name: string;
@@ -1,4 +1,4 @@
1
- import { ActiveLessSymfonyModel } from './api.models';
1
+ import { ActiveLessSymfonyModel, SymfonyModel } from './api.models';
2
2
  export interface ShipmentEmployeeCustomers extends ActiveLessSymfonyModel {
3
3
  trackingNumber: string;
4
4
  employeeCustomerId: number;
@@ -6,3 +6,7 @@ export interface ShipmentEmployeeCustomers extends ActiveLessSymfonyModel {
6
6
  id: number;
7
7
  } | null;
8
8
  }
9
+ export interface ExportType extends SymfonyModel {
10
+ code: string;
11
+ name: string;
12
+ }
@@ -1,4 +1,4 @@
1
- import { ShipmentEmployeeCustomers } from './api-shipments.interfaces';
1
+ import { ExportType, ShipmentEmployeeCustomers } from './api-shipments.interfaces';
2
2
  import { Document } from './api-invoices.interfaces';
3
3
  export type ValidateAccountIn = {
4
4
  accountValue: string;
@@ -87,3 +87,7 @@ export type ShipmentCancellationOut = {
87
87
  emailList: string[];
88
88
  creditNoteDocument: Document | null;
89
89
  };
90
+ export type ExportTypesOut = {
91
+ exportTypes: ExportType[];
92
+ total: number;
93
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experteam-mx/ngx-services",
3
- "version": "18.9.6",
3
+ "version": "18.9.10",
4
4
  "description": "Angular common services for Experteam apps",
5
5
  "author": "Experteam Cía. Ltda.",
6
6
  "keywords": [
package/public-api.d.ts CHANGED
@@ -64,6 +64,7 @@ export * from './lib/apis/models/api-security.interfaces';
64
64
  export * from './lib/apis/models/api-security.types';
65
65
  export * from './lib/apis/models/api-services.interfaces';
66
66
  export * from './lib/apis/models/api-services.types';
67
+ export * from './lib/apis/models/api-shipments.interfaces';
67
68
  export * from './lib/apis/models/api-shipments.types';
68
69
  export * from './lib/apis/models/api-supplies.interfaces';
69
70
  export * from './lib/apis/models/api-supplies.types';