@experteam-mx/ngx-services 18.3.1 → 18.3.4

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 (37) hide show
  1. package/esm2022/lib/apis/api-companies.service.mjs +3 -3
  2. package/esm2022/lib/apis/api-invoices.service.mjs +14 -4
  3. package/esm2022/lib/apis/api-open-items.service.mjs +62 -0
  4. package/esm2022/lib/apis/api-reports.service.mjs +40 -4
  5. package/esm2022/lib/apis/api-security.service.mjs +15 -4
  6. package/esm2022/lib/apis/api-shipments.service.mjs +14 -4
  7. package/esm2022/lib/apis/models/api-invoices.types.mjs +1 -1
  8. package/esm2022/lib/apis/models/api-open-items.interfaces.mjs +2 -0
  9. package/esm2022/lib/apis/models/api-open-items.types.mjs +2 -0
  10. package/esm2022/lib/apis/models/api-reports.interfaces.mjs +1 -1
  11. package/esm2022/lib/apis/models/api-reports.types.mjs +1 -1
  12. package/esm2022/lib/apis/models/api-security.types.mjs +1 -1
  13. package/esm2022/lib/apis/models/api-shipments.types.mjs +1 -1
  14. package/esm2022/lib/cypher/crypto.service.mjs +3 -3
  15. package/esm2022/lib/interceptors/api-headers.interceptor.mjs +3 -3
  16. package/esm2022/lib/interceptors/api-token.interceptor.mjs +3 -3
  17. package/esm2022/lib/interceptors/http-caching.interceptor.mjs +3 -3
  18. package/esm2022/lib/ngx-services.models.mjs +1 -1
  19. package/esm2022/lib/ngx-services.module.mjs +4 -4
  20. package/esm2022/public-api.mjs +4 -1
  21. package/fesm2022/experteam-mx-ngx-services.mjs +157 -32
  22. package/fesm2022/experteam-mx-ngx-services.mjs.map +1 -1
  23. package/lib/apis/api-invoices.service.d.ts +9 -2
  24. package/lib/apis/api-open-items.service.d.ts +41 -0
  25. package/lib/apis/api-reports.service.d.ts +17 -1
  26. package/lib/apis/api-security.service.d.ts +8 -1
  27. package/lib/apis/api-shipments.service.d.ts +9 -2
  28. package/lib/apis/models/api-invoices.types.d.ts +29 -0
  29. package/lib/apis/models/api-open-items.interfaces.d.ts +32 -0
  30. package/lib/apis/models/api-open-items.types.d.ts +58 -0
  31. package/lib/apis/models/api-reports.interfaces.d.ts +149 -0
  32. package/lib/apis/models/api-reports.types.d.ts +11 -1
  33. package/lib/apis/models/api-security.types.d.ts +4 -0
  34. package/lib/apis/models/api-shipments.types.d.ts +41 -0
  35. package/lib/ngx-services.models.d.ts +1 -0
  36. package/package.json +1 -1
  37. package/public-api.d.ts +3 -0
@@ -1,4 +1,5 @@
1
1
  import { LaravelModel, Translations } from './api.models';
2
+ import { DocumentPayment } from './api-invoices.interfaces';
2
3
  export interface CollectionPayment extends LaravelModel {
3
4
  _id: number;
4
5
  country_code: string;
@@ -45,3 +46,151 @@ export interface DocumentCategory extends LaravelModel {
45
46
  updated_at: string;
46
47
  translations: Translations;
47
48
  }
49
+ export interface Shipment {
50
+ id: number;
51
+ document_id: number;
52
+ shipment_scope_name: string;
53
+ is_document: boolean;
54
+ origin_service_area_code: string;
55
+ origin_facility_code: string;
56
+ destination_facility_code: string;
57
+ destination_service_area_code: string;
58
+ shipment_pieces_tracking_numbers: string[];
59
+ shipment_tracking_number: string;
60
+ shipper_full_name: string;
61
+ shipper_company_name: string;
62
+ shipper_email: string;
63
+ shipper_phone_number: string;
64
+ shipper_phone_code: string;
65
+ shipper_full_phone_number: string;
66
+ shipper_address_line1: string;
67
+ shipper_address_line2: string;
68
+ shipper_city_name: string;
69
+ shipper_state_name: string;
70
+ shipper_state_code: string;
71
+ shipper_postal_code: string;
72
+ receiver_full_name: string;
73
+ receiver_company_name: string;
74
+ receiver_address_line1: string;
75
+ receiver_address_line2: string;
76
+ receiver_city_name: string;
77
+ receiver_state_name: string;
78
+ receiver_state_code: string;
79
+ receiver_postal_code: string;
80
+ shipper_account: string;
81
+ promotion_code: string;
82
+ customer_identification_type_id: number;
83
+ customer_identification_number: string;
84
+ customer_email: string;
85
+ customer_full_phone_number: string;
86
+ price_override_approver_id: number;
87
+ price_override_reason_id: number;
88
+ price_override_approver_name: string;
89
+ price_override_reason_name: string;
90
+ is_proforma: boolean;
91
+ is_kiosk: boolean;
92
+ to_landing: boolean;
93
+ is_price_override: boolean;
94
+ is_promotion_code: boolean;
95
+ is_retail_rate: boolean;
96
+ payment_type_1: string;
97
+ payment_code_1: string;
98
+ amount_1: number;
99
+ reference_1: string;
100
+ payment_type_2: string;
101
+ payment_code_2: string;
102
+ amount_2: number;
103
+ reference_2: string;
104
+ document_payments?: DocumentPayment[];
105
+ location_id: number;
106
+ installation_id: number;
107
+ user_id: number;
108
+ user_username: string;
109
+ company_id: number;
110
+ country_id: number;
111
+ company_country_id: number;
112
+ country_name: string;
113
+ company_name: string;
114
+ country_code: string;
115
+ location_name: string;
116
+ location_facility_code: string;
117
+ installation_number: number;
118
+ product_global_code: string;
119
+ product_local_code: string;
120
+ shipment_gmt_offset: string;
121
+ shipment_pieces_number: number;
122
+ shipment_bill_weight: number;
123
+ total_published_value: number;
124
+ total_partner_account_value: number;
125
+ question_id: number;
126
+ question_description: string;
127
+ question_type: string;
128
+ amount_collected: number;
129
+ shipment_value: number;
130
+ declared_value: number;
131
+ insured_value: number;
132
+ shipment_status_id: number;
133
+ transaction_id: string;
134
+ shipment_type: string;
135
+ ein_number: string;
136
+ itn_number: string;
137
+ created_at: string;
138
+ updated_at: string;
139
+ retail_rate_adjustment: number;
140
+ shipment_status_code: string;
141
+ shipment_status_description: string;
142
+ shipment_status_translations: {
143
+ description: {
144
+ [key: string]: string;
145
+ };
146
+ };
147
+ authorization_numbers: string[];
148
+ is_term_condition: boolean;
149
+ is_marketing_consent: boolean;
150
+ is_manual: boolean;
151
+ commercial_invoice: boolean;
152
+ shipment_id: number;
153
+ date: string;
154
+ date_og: string;
155
+ invoice_document_id?: number | null;
156
+ currency_code: string | null;
157
+ send_to_api_inventories: boolean;
158
+ selected?: boolean;
159
+ delivery_date_time: string;
160
+ product_subtotal: number;
161
+ product_tax: number;
162
+ product_total: number;
163
+ product_taxes: {
164
+ code: string;
165
+ percent: number;
166
+ base_amount: number;
167
+ amount: number;
168
+ }[];
169
+ shipment_company_country_extra_charges: {
170
+ _id: number;
171
+ subtotal: number;
172
+ tax: number;
173
+ total: number;
174
+ extra_charge_id: number;
175
+ taxes: {
176
+ code: string;
177
+ percent: number;
178
+ base_amount: number;
179
+ amount: number;
180
+ }[];
181
+ created_at: string;
182
+ updated_at: string;
183
+ global_service_code: string;
184
+ local_service_code: string;
185
+ global_service_name: string;
186
+ local_service_name: string;
187
+ is_discount: false;
188
+ }[];
189
+ additional_documents: {
190
+ country_id: number;
191
+ include_indemnity_letter: boolean;
192
+ include_pdf: boolean;
193
+ shipment_content_type_id: number;
194
+ shipment_scope_id: number;
195
+ };
196
+ }
@@ -1,6 +1,16 @@
1
1
  import { LaravelModel } from './api.models';
2
- import { CollectionPayment } from './api-reports.interfaces';
2
+ import { CollectionPayment, Shipment } from './api-reports.interfaces';
3
3
  export interface CollectionPaymentsOut extends LaravelModel {
4
4
  collection_payments: CollectionPayment[];
5
5
  total: number;
6
6
  }
7
+ export type ShipmentsReportOut = {
8
+ shipments: Shipment[];
9
+ total: number;
10
+ };
11
+ export type ExistPendingPaymentsIn = {
12
+ installation_id: number;
13
+ };
14
+ export type ExistPendingInvoicesIn = {
15
+ installation_id: number;
16
+ };
@@ -25,6 +25,10 @@ export interface MeOut extends GetUserOut {
25
25
  export type ChangeLanguageIn = {
26
26
  languageId: number;
27
27
  };
28
+ export type RolesOut = {
29
+ roles: Role[];
30
+ total: number;
31
+ };
28
32
  export type Pivot = {
29
33
  role_id: number;
30
34
  permission_id: number;
@@ -30,3 +30,44 @@ export type ValidateAccountOut = {
30
30
  account: AccountResponse;
31
31
  transactionId: string;
32
32
  };
33
+ export type ManifestMultipleIn = {
34
+ shipmentIds: number[];
35
+ customer: {
36
+ companyName: string;
37
+ fullName: string;
38
+ email: string;
39
+ phoneCode: string;
40
+ phoneNumber: string;
41
+ addressLine1: string;
42
+ addressLine2?: string;
43
+ addressLine3?: string;
44
+ identificationNumber?: string;
45
+ identificationTypeId?: number;
46
+ countryCode: string;
47
+ stateCode?: string;
48
+ postalCode?: string;
49
+ cityName?: string;
50
+ countyName?: string;
51
+ };
52
+ paymentDetails: {
53
+ totalAmount: number;
54
+ payments: {
55
+ amount: number;
56
+ received: number;
57
+ countryReferenceCurrencyId: number;
58
+ exchange: number;
59
+ countryPaymentTypeId: number;
60
+ dueDate: string;
61
+ details: Record<string, string>;
62
+ }[];
63
+ };
64
+ priceOverrideApproverId: number | null;
65
+ priceOverrideReasonId: number | null;
66
+ isPendingInvoice?: boolean;
67
+ };
68
+ export type ManifestMultipleOut = {
69
+ shipmentManifests: {
70
+ documentId: number;
71
+ };
72
+ transactionId: string;
73
+ };
@@ -1,6 +1,7 @@
1
1
  export type Environment = {
2
2
  apiCompaniesUrl: string;
3
3
  apiInvoicesUrl: string;
4
+ apiOpenItemsUrl: string;
4
5
  apiReportsUrl: string;
5
6
  apiSecurityUrl: string;
6
7
  apiShipmentUrl: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experteam-mx/ngx-services",
3
- "version": "18.3.1",
3
+ "version": "18.3.4",
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
@@ -1,6 +1,7 @@
1
1
  export * from './lib/ngx-services.module';
2
2
  export * from './lib/apis/api-companies.service';
3
3
  export * from './lib/apis/api-invoices.service';
4
+ export * from './lib/apis/api-open-items.service';
4
5
  export * from './lib/apis/api-reports.service';
5
6
  export * from './lib/apis/api-security.service';
6
7
  export * from './lib/apis/api-shipments.service';
@@ -8,6 +9,8 @@ export * from './lib/apis/models/api-companies.interfaces';
8
9
  export * from './lib/apis/models/api-companies.types';
9
10
  export * from './lib/apis/models/api-invoices.interfaces';
10
11
  export * from './lib/apis/models/api-invoices.types';
12
+ export * from './lib/apis/models/api-open-items.interfaces';
13
+ export * from './lib/apis/models/api-open-items.types';
11
14
  export * from './lib/apis/models/api-reports.interfaces';
12
15
  export * from './lib/apis/models/api-security.interfaces';
13
16
  export * from './lib/apis/models/api-security.types';