@experteam-mx/ngx-services 20.0.0-beta.4 → 20.0.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.
Files changed (170) hide show
  1. package/README.md +24 -24
  2. package/esm2022/experteam-mx-ngx-services.mjs +5 -0
  3. package/esm2022/lib/apis/api-billing-do.service.mjs +41 -0
  4. package/esm2022/lib/apis/api-billing-gt.service.mjs +61 -0
  5. package/esm2022/lib/apis/api-billing-mx.service.mjs +62 -0
  6. package/esm2022/lib/apis/api-billing-pa.service.mjs +105 -0
  7. package/esm2022/lib/apis/api-billing-sv.service.mjs +83 -0
  8. package/esm2022/lib/apis/api-cash-operations.service.mjs +93 -0
  9. package/esm2022/lib/apis/api-catalogs.service.mjs +626 -0
  10. package/esm2022/lib/apis/api-companies.service.mjs +1031 -0
  11. package/esm2022/lib/apis/api-composition.service.mjs +55 -0
  12. package/esm2022/lib/apis/api-customs.service.mjs +157 -0
  13. package/esm2022/lib/apis/api-discounts.service.mjs +243 -0
  14. package/esm2022/lib/apis/api-e-tools-auto-billing.service.mjs +75 -0
  15. package/esm2022/lib/apis/api-events.service.mjs +53 -0
  16. package/esm2022/lib/apis/api-external-pickups.service.mjs +74 -0
  17. package/esm2022/lib/apis/api-inventories.service.mjs +208 -0
  18. package/esm2022/lib/apis/api-invoices.service.mjs +398 -0
  19. package/esm2022/lib/apis/api-notifications.service.mjs +104 -0
  20. package/esm2022/lib/apis/api-open-items.service.mjs +62 -0
  21. package/esm2022/lib/apis/api-reports.service.mjs +172 -0
  22. package/esm2022/lib/apis/api-security.service.mjs +245 -0
  23. package/esm2022/lib/apis/api-services.service.mjs +93 -0
  24. package/esm2022/lib/apis/api-shipments.service.mjs +116 -0
  25. package/esm2022/lib/apis/api-supplies.service.mjs +133 -0
  26. package/esm2022/lib/apis/models/api-billing-do.interfaces.mjs +2 -0
  27. package/esm2022/lib/apis/models/api-billing-do.types.mjs +2 -0
  28. package/esm2022/lib/apis/models/api-billing-mx.interfaces.mjs +2 -0
  29. package/esm2022/lib/apis/models/api-billing-mx.types.mjs +2 -0
  30. package/esm2022/lib/apis/models/api-billing-pa.interfaces.mjs +2 -0
  31. package/esm2022/lib/apis/models/api-billing-pa.types.mjs +2 -0
  32. package/esm2022/lib/apis/models/api-billing-sv.interfaces.mjs +2 -0
  33. package/esm2022/lib/apis/models/api-billing-sv.types.mjs +2 -0
  34. package/esm2022/lib/apis/models/api-billing.models.mjs +2 -0
  35. package/esm2022/lib/apis/models/api-cash-operations.interfaces.mjs +2 -0
  36. package/esm2022/lib/apis/models/api-cash-operations.types.mjs +2 -0
  37. package/esm2022/lib/apis/models/api-catalog.enum.mjs +9 -0
  38. package/esm2022/lib/apis/models/api-catalog.interfaces.mjs +2 -0
  39. package/esm2022/lib/apis/models/api-catalog.types.mjs +2 -0
  40. package/esm2022/lib/apis/models/api-companies.interfaces.mjs +2 -0
  41. package/esm2022/lib/apis/models/api-companies.types.mjs +2 -0
  42. package/esm2022/lib/apis/models/api-composition.interfaces.mjs +2 -0
  43. package/esm2022/lib/apis/models/api-composition.types.mjs +2 -0
  44. package/esm2022/lib/apis/models/api-customs.interfaces.mjs +2 -0
  45. package/esm2022/lib/apis/models/api-customs.types.mjs +2 -0
  46. package/esm2022/lib/apis/models/api-discounts.interfaces.mjs +2 -0
  47. package/esm2022/lib/apis/models/api-discounts.types.mjs +2 -0
  48. package/esm2022/lib/apis/models/api-e-tools-auto-billing.interfaces.mjs +2 -0
  49. package/esm2022/lib/apis/models/api-e-tools-auto-billing.types.mjs +2 -0
  50. package/esm2022/lib/apis/models/api-events.enum.mjs +7 -0
  51. package/esm2022/lib/apis/models/api-events.interfaces.mjs +2 -0
  52. package/esm2022/lib/apis/models/api-events.types.mjs +2 -0
  53. package/esm2022/lib/apis/models/api-external-pickups.types.mjs +2 -0
  54. package/esm2022/lib/apis/models/api-inventories.enum.mjs +22 -0
  55. package/esm2022/lib/apis/models/api-inventories.interfaces.mjs +2 -0
  56. package/esm2022/lib/apis/models/api-inventories.types.mjs +2 -0
  57. package/esm2022/lib/apis/models/api-invoices.interfaces.mjs +2 -0
  58. package/esm2022/lib/apis/models/api-invoices.types.mjs +2 -0
  59. package/esm2022/lib/apis/models/api-notifications.interfaces.mjs +2 -0
  60. package/esm2022/lib/apis/models/api-notifications.types.mjs +2 -0
  61. package/esm2022/lib/apis/models/api-open-items.interfaces.mjs +2 -0
  62. package/esm2022/lib/apis/models/api-open-items.types.mjs +2 -0
  63. package/esm2022/lib/apis/models/api-reports.interfaces.mjs +2 -0
  64. package/esm2022/lib/apis/models/api-reports.types.mjs +2 -0
  65. package/esm2022/lib/apis/models/api-security.interfaces.mjs +2 -0
  66. package/esm2022/lib/apis/models/api-security.types.mjs +2 -0
  67. package/esm2022/lib/apis/models/api-services.interfaces.mjs +2 -0
  68. package/esm2022/lib/apis/models/api-services.types.mjs +2 -0
  69. package/esm2022/lib/apis/models/api-shipments.enums.mjs +8 -0
  70. package/esm2022/lib/apis/models/api-shipments.interfaces.mjs +2 -0
  71. package/esm2022/lib/apis/models/api-shipments.types.mjs +2 -0
  72. package/esm2022/lib/apis/models/api-supplies.interfaces.mjs +2 -0
  73. package/esm2022/lib/apis/models/api-supplies.types.mjs +2 -0
  74. package/esm2022/lib/apis/models/api.models.mjs +2 -0
  75. package/esm2022/lib/cypher/crypto.service.mjs +93 -0
  76. package/esm2022/lib/helpers/files.mjs +9 -0
  77. package/esm2022/lib/helpers/http.mjs +66 -0
  78. package/esm2022/lib/interceptors/api-headers.interceptor.mjs +24 -0
  79. package/esm2022/lib/interceptors/api-token.interceptor.mjs +28 -0
  80. package/esm2022/lib/interceptors/http-caching.interceptor.mjs +37 -0
  81. package/esm2022/lib/ngx-services.models.mjs +11 -0
  82. package/esm2022/lib/ngx-services.module.mjs +33 -0
  83. package/esm2022/lib/websockets/web-sockets.service.mjs +115 -0
  84. package/esm2022/public-api.mjs +90 -0
  85. package/fesm2022/experteam-mx-ngx-services.mjs +126 -5
  86. package/fesm2022/experteam-mx-ngx-services.mjs.map +1 -1
  87. package/index.d.ts +287 -4
  88. package/lib/apis/api-billing-do.service.d.ts +24 -0
  89. package/lib/apis/api-billing-gt.service.d.ts +38 -0
  90. package/lib/apis/api-billing-mx.service.d.ts +39 -0
  91. package/lib/apis/api-billing-pa.service.d.ts +68 -0
  92. package/lib/apis/api-billing-sv.service.d.ts +55 -0
  93. package/lib/apis/api-cash-operations.service.d.ts +62 -0
  94. package/lib/apis/api-catalogs.service.d.ts +458 -0
  95. package/lib/apis/api-companies.service.d.ts +714 -0
  96. package/lib/apis/api-composition.service.d.ts +35 -0
  97. package/lib/apis/api-customs.service.d.ts +110 -0
  98. package/lib/apis/api-discounts.service.d.ts +167 -0
  99. package/lib/apis/api-e-tools-auto-billing.service.d.ts +49 -0
  100. package/lib/apis/api-events.service.d.ts +33 -0
  101. package/lib/apis/api-external-pickups.service.d.ts +46 -0
  102. package/lib/apis/api-inventories.service.d.ts +145 -0
  103. package/lib/apis/api-invoices.service.d.ts +280 -0
  104. package/lib/apis/api-notifications.service.d.ts +70 -0
  105. package/lib/apis/api-open-items.service.d.ts +41 -0
  106. package/lib/apis/api-reports.service.d.ts +120 -0
  107. package/lib/apis/api-security.service.d.ts +162 -0
  108. package/lib/apis/api-services.service.d.ts +61 -0
  109. package/lib/apis/api-shipments.service.d.ts +77 -0
  110. package/lib/apis/api-supplies.service.d.ts +93 -0
  111. package/lib/apis/models/api-billing-do.interfaces.d.ts +6 -0
  112. package/lib/apis/models/api-billing-do.types.d.ts +5 -0
  113. package/lib/apis/models/api-billing-mx.interfaces.d.ts +21 -0
  114. package/lib/apis/models/api-billing-mx.types.d.ts +13 -0
  115. package/lib/apis/models/api-billing-pa.interfaces.d.ts +26 -0
  116. package/lib/apis/models/api-billing-pa.types.d.ts +16 -0
  117. package/lib/apis/models/api-billing-sv.interfaces.d.ts +22 -0
  118. package/lib/apis/models/api-billing-sv.types.d.ts +21 -0
  119. package/lib/apis/models/api-billing.models.d.ts +27 -0
  120. package/lib/apis/models/api-cash-operations.interfaces.d.ts +40 -0
  121. package/lib/apis/models/api-cash-operations.types.d.ts +30 -0
  122. package/lib/apis/models/api-catalog.enum.d.ts +7 -0
  123. package/lib/apis/models/api-catalog.interfaces.d.ts +219 -0
  124. package/lib/apis/models/api-catalog.types.d.ts +217 -0
  125. package/lib/apis/models/api-companies.interfaces.d.ts +341 -0
  126. package/lib/apis/models/api-companies.types.d.ts +457 -0
  127. package/lib/apis/models/api-composition.interfaces.d.ts +272 -0
  128. package/lib/apis/models/api-composition.types.d.ts +9 -0
  129. package/lib/apis/models/api-customs.interfaces.d.ts +125 -0
  130. package/lib/apis/models/api-customs.types.d.ts +90 -0
  131. package/lib/apis/models/api-discounts.interfaces.d.ts +78 -0
  132. package/lib/apis/models/api-discounts.types.d.ts +89 -0
  133. package/lib/apis/models/api-e-tools-auto-billing.interfaces.d.ts +45 -0
  134. package/lib/apis/models/api-e-tools-auto-billing.types.d.ts +30 -0
  135. package/lib/apis/models/api-events.enum.d.ts +5 -0
  136. package/lib/apis/models/api-events.interfaces.d.ts +21 -0
  137. package/lib/apis/models/api-events.types.d.ts +14 -0
  138. package/lib/apis/models/api-external-pickups.types.d.ts +31 -0
  139. package/lib/apis/models/api-inventories.enum.d.ts +18 -0
  140. package/lib/apis/models/api-inventories.interfaces.d.ts +40 -0
  141. package/lib/apis/models/api-inventories.types.d.ts +62 -0
  142. package/lib/apis/models/api-invoices.interfaces.d.ts +267 -0
  143. package/lib/apis/models/api-invoices.types.d.ts +195 -0
  144. package/lib/apis/models/api-notifications.interfaces.d.ts +36 -0
  145. package/lib/apis/models/api-notifications.types.d.ts +34 -0
  146. package/lib/apis/models/api-open-items.interfaces.d.ts +32 -0
  147. package/lib/apis/models/api-open-items.types.d.ts +58 -0
  148. package/lib/apis/models/api-reports.interfaces.d.ts +342 -0
  149. package/lib/apis/models/api-reports.types.d.ts +59 -0
  150. package/lib/apis/models/api-security.interfaces.d.ts +68 -0
  151. package/lib/apis/models/api-security.types.d.ts +72 -0
  152. package/lib/apis/models/api-services.interfaces.d.ts +43 -0
  153. package/lib/apis/models/api-services.types.d.ts +57 -0
  154. package/lib/apis/models/api-shipments.enums.d.ts +6 -0
  155. package/lib/apis/models/api-shipments.interfaces.d.ts +41 -0
  156. package/lib/apis/models/api-shipments.types.d.ts +121 -0
  157. package/lib/apis/models/api-supplies.interfaces.d.ts +40 -0
  158. package/lib/apis/models/api-supplies.types.d.ts +50 -0
  159. package/lib/apis/models/api.models.d.ts +36 -0
  160. package/lib/cypher/crypto.service.d.ts +15 -0
  161. package/lib/helpers/files.d.ts +2 -0
  162. package/lib/helpers/http.d.ts +38 -0
  163. package/lib/interceptors/api-headers.interceptor.d.ts +12 -0
  164. package/lib/interceptors/api-token.interceptor.d.ts +11 -0
  165. package/lib/interceptors/http-caching.interceptor.d.ts +12 -0
  166. package/lib/ngx-services.models.d.ts +62 -0
  167. package/lib/ngx-services.module.d.ts +16 -0
  168. package/lib/websockets/web-sockets.service.d.ts +49 -0
  169. package/package.json +1 -1
  170. package/public-api.d.ts +80 -0
@@ -0,0 +1,342 @@
1
+ import { OperationType } from './api-catalog.interfaces';
2
+ import { ActiveLessLaravelModel, ActiveLessSymfonyModel, ApiModel, LaravelModel, Translations } from './api.models';
3
+ export interface CollectionPayment extends LaravelModel {
4
+ _id: number;
5
+ country_code: string;
6
+ country_id: number;
7
+ country_name: string;
8
+ company_id: number;
9
+ company_name: string;
10
+ company_country_id: number;
11
+ installation_id: number;
12
+ installation_number: number;
13
+ location_facility_code: string;
14
+ location_id: number;
15
+ location_location_code: string;
16
+ location_name: string;
17
+ user_id: number;
18
+ user_username: string;
19
+ document_type_id: number;
20
+ document_type: DocumentTypeReports;
21
+ document_category_id: number;
22
+ document_category: DocumentCategoryReports;
23
+ receipt_number: string;
24
+ customer_name: string;
25
+ account: string;
26
+ amount: number;
27
+ currency_id: number;
28
+ currency_code: string;
29
+ operation_type_id: number;
30
+ operation_type: OperationType;
31
+ }
32
+ export interface DocumentTypeReports extends LaravelModel {
33
+ _id: number;
34
+ name: string;
35
+ code: string;
36
+ movement_type: number;
37
+ local_code: string;
38
+ translations: Translations;
39
+ }
40
+ export interface DocumentCategoryReports extends LaravelModel {
41
+ _id: number;
42
+ name: string;
43
+ is_electronic: true;
44
+ taxable: number;
45
+ created_at: string;
46
+ updated_at: string;
47
+ translations: Translations;
48
+ }
49
+ export interface ShipmentReports {
50
+ authorization_numbers: string[];
51
+ commercial_invoice: boolean;
52
+ company_name: string;
53
+ country_id: number;
54
+ country_name: string;
55
+ currency_code: string;
56
+ customer_identification_number: string | null;
57
+ customer_identification_type_id: number | null;
58
+ document_id: number;
59
+ id: number;
60
+ installation_id: number;
61
+ installation_number: number;
62
+ invoice_document_id: number | null;
63
+ is_document: boolean;
64
+ is_manual: boolean;
65
+ itn_number: string | null;
66
+ location_id: number;
67
+ location_name: string;
68
+ price_override_approver_name: string | null;
69
+ price_override_reason_name: string | null;
70
+ product_subtotal: number;
71
+ product_tax: number;
72
+ question_description: string | null;
73
+ receiver_company_name: string;
74
+ receiver_full_name: string;
75
+ send_to_api_inventories: boolean;
76
+ shipment_id: number;
77
+ shipment_pieces_tracking_numbers: string[];
78
+ shipment_status_code: string;
79
+ shipment_status_description: string;
80
+ shipment_status_id: number;
81
+ shipment_status_translations: Translations;
82
+ shipment_tags: ShipmentTag[];
83
+ shipment_tracking_number: string;
84
+ shipment_type: string;
85
+ shipment_value: string;
86
+ shipper_account: string;
87
+ shipper_address_line1: string;
88
+ shipper_address_line2: string | null;
89
+ shipper_address_line3: string | null;
90
+ shipper_city_name: string;
91
+ shipper_company_name: string;
92
+ shipper_email: string;
93
+ shipper_full_name: string;
94
+ shipper_full_phone_number: string;
95
+ shipper_identification_number: string | null;
96
+ shipper_phone_number: string;
97
+ shipper_postal_code: string;
98
+ shipper_state_name: string | null;
99
+ subtotal: number;
100
+ tax: number;
101
+ total: number;
102
+ tracking: string | null;
103
+ updated_at: string;
104
+ user_id: number;
105
+ user_username: string;
106
+ additional_documents: {
107
+ country_id: number;
108
+ include_indemnity_letter: boolean;
109
+ shipment_content_type_id: number;
110
+ shipment_scope_id: number;
111
+ };
112
+ document_payments: {
113
+ payment: {
114
+ countryPaymentType: {
115
+ code: string;
116
+ };
117
+ };
118
+ }[];
119
+ }
120
+ export interface ShipmentLandingReport extends ActiveLessLaravelModel {
121
+ authorization_numbers: string[] | null;
122
+ commercial_invoice: boolean | null;
123
+ company_id: number;
124
+ company_name: string;
125
+ country_id: number;
126
+ country_name: string;
127
+ currency_code: string | null;
128
+ document_id: number;
129
+ hasCreditCardPayment: boolean;
130
+ installation_id: number;
131
+ installation_number: number;
132
+ invoice_document_id: number | null;
133
+ is_document: boolean;
134
+ is_manual: boolean;
135
+ itn_number: string | null;
136
+ location_code: string;
137
+ location_facility_code: string;
138
+ location_id: number;
139
+ location_name: string;
140
+ price_override_approver_name: string | null;
141
+ price_override_reason_name: string | null;
142
+ product_global_name: string;
143
+ product_local_name: string;
144
+ question_description: string | null;
145
+ receiver_address_line1: string;
146
+ receiver_address_line2: string | null;
147
+ receiver_address_line3: string | null;
148
+ receiver_city_name: string;
149
+ receiver_company_name: string;
150
+ receiver_country_name: string;
151
+ receiver_county_name: string | null;
152
+ receiver_email: string | null;
153
+ receiver_full_name: string;
154
+ receiver_full_phone_number: string | null;
155
+ receiver_identification_number: string | null;
156
+ receiver_postal_code: string | null;
157
+ receiver_state_name: string;
158
+ send_to_api_inventories: boolean;
159
+ shipment_description: string;
160
+ shipment_group_id: number;
161
+ shipment_group_name: string;
162
+ shipment_pieces_tracking_numbers: string[];
163
+ shipment_status_code: string;
164
+ shipment_status_id: number;
165
+ shipment_status_name_EN: string;
166
+ shipment_status_name_ES: string;
167
+ shipment_status_name_FR: string;
168
+ shipment_status_name_PT: string;
169
+ shipment_tags: ShipmentTag[];
170
+ shipment_tracking_number: string;
171
+ shipment_type: string;
172
+ shipment_value: number;
173
+ shipper_account: string;
174
+ shipper_address_line1: string;
175
+ shipper_address_line2: string | null;
176
+ shipper_address_line3: string | null;
177
+ shipper_city_name: string | null;
178
+ shipper_company_name: string;
179
+ shipper_country_name: string;
180
+ shipper_county_name: string | null;
181
+ shipper_email: string | null;
182
+ shipper_full_name: string;
183
+ shipper_full_phone_number: string;
184
+ shipper_identification_number: string | null;
185
+ shipper_phone_number: string | null;
186
+ shipper_postal_code: string | null;
187
+ shipper_state_name: string | null;
188
+ tracking: string | null;
189
+ user_id: number;
190
+ user_username: string;
191
+ additional_documents: {
192
+ country_id: number;
193
+ include_indemnity_letter: boolean;
194
+ shipment_content_type_id: number;
195
+ shipment_scope_id: number;
196
+ } | null;
197
+ }
198
+ export interface ShipmentTag extends ActiveLessSymfonyModel {
199
+ name: string;
200
+ code: string;
201
+ translations: Translations;
202
+ }
203
+ export interface ReportExternalShipment extends ActiveLessLaravelModel {
204
+ account_number: string;
205
+ collection_date: string;
206
+ document_id: number | null;
207
+ document_number: string | null;
208
+ external_shipment_addresses: ReportExternalShipmentAddress[];
209
+ external_shipment_file_id: number;
210
+ external_shipment_status_id: number;
211
+ external_shipment_status_name: string;
212
+ external_shipment_status_translations: Translations;
213
+ installation_id: number;
214
+ subtotal: number;
215
+ tax: number;
216
+ total: number;
217
+ tracking_number: string;
218
+ user_id: number;
219
+ }
220
+ export interface ReportExternalShipmentAddress extends ApiModel {
221
+ address_line_1: string;
222
+ address_line_2: string;
223
+ city_name: string;
224
+ company_name: string;
225
+ country_id: number;
226
+ email: string;
227
+ full_name: string;
228
+ identification_number: string | null;
229
+ identification_type_id: number | null;
230
+ phone_number: string;
231
+ postal_code: string;
232
+ role_type: string;
233
+ service_area_code: string;
234
+ }
235
+ export interface PromotionCodeDiscount extends ApiModel {
236
+ country_id: number;
237
+ company_country_id: number;
238
+ location_id: number;
239
+ installation_id: number;
240
+ user_id: number;
241
+ user_username: string;
242
+ updated_at: Date | string;
243
+ tracking_number: string;
244
+ product_id: number;
245
+ product_global_code: string;
246
+ product_global_name: string;
247
+ origin_facility_code: string;
248
+ destination_facility_code: string;
249
+ origin_company_name: string;
250
+ origin_full_name: string;
251
+ promotion_code: string;
252
+ discount_percentage: number;
253
+ product_subtotals: ProductSubtotal[];
254
+ }
255
+ export interface ProductSubtotal {
256
+ country_reference_currency_id: number;
257
+ currency_id: number;
258
+ currency_code: string;
259
+ value: number;
260
+ shipment_total: number;
261
+ discount_amount: number;
262
+ }
263
+ export interface WithdrawalAmount {
264
+ country_reference_currency_id: number;
265
+ currency_id: number;
266
+ currency_code: string;
267
+ value: number | null;
268
+ }
269
+ export interface PartialWithdrawal extends ActiveLessLaravelModel {
270
+ country_id: number;
271
+ company_country_id: number;
272
+ location_id: number;
273
+ installation_id: number;
274
+ opening_user_id: number;
275
+ opening_user_username: string;
276
+ opening_user_name: string;
277
+ opening_reference_user_id: number;
278
+ opening_reference_user_username: string;
279
+ opening_reference_user_name: string;
280
+ receipt_number: string;
281
+ amounts: WithdrawalAmount[];
282
+ }
283
+ export interface Invoice extends ActiveLessLaravelModel {
284
+ complete_document_number: string;
285
+ tracking_numbers: string[];
286
+ local_currency_total_amount: number;
287
+ identification_type_name: string;
288
+ identification_number: string;
289
+ customer_full_name: string;
290
+ customer_address: string;
291
+ customer_email: string;
292
+ customer_extra_fields: {
293
+ field: string;
294
+ value: string;
295
+ }[];
296
+ document_type_name: string;
297
+ document_type_name_ES: string;
298
+ document_type_name_EN: string;
299
+ document_category_name: string;
300
+ document_category_name_ES: string;
301
+ document_category_name_EN: string;
302
+ document_status_id: number;
303
+ document_status_code: string;
304
+ transaction_type: string;
305
+ installation_id: number;
306
+ location_id: number;
307
+ company_country_id: number;
308
+ country_id: number;
309
+ customer_phone_code: string;
310
+ customer_phone_number: string;
311
+ customer_city_name: string;
312
+ customer_county_name: string;
313
+ shipment_id: number;
314
+ }
315
+ export interface Sales extends ActiveLessLaravelModel {
316
+ company_country_id: number;
317
+ country_document_type_id: number;
318
+ country_id: number;
319
+ customer_address_line1: string;
320
+ customer_email: string;
321
+ customer_name: string;
322
+ customer_phone: string;
323
+ document_full_number: string;
324
+ document_sap_full_number: string;
325
+ document_status_name: string;
326
+ document_status: number;
327
+ document_type_name_EN: string;
328
+ document_type_name_ES: string;
329
+ document_type_name_FR: string;
330
+ document_type_name_PT: string;
331
+ document_type_name: string;
332
+ exempt: number;
333
+ identification_number: string;
334
+ identification_type_id: number;
335
+ identification_type_name: string;
336
+ installation_id: number;
337
+ location_id: number;
338
+ subtotal: number;
339
+ tax: number;
340
+ total: number;
341
+ user_id: number;
342
+ }
@@ -0,0 +1,59 @@
1
+ import { CollectionPayment, Invoice, PartialWithdrawal, PromotionCodeDiscount, ReportExternalShipment, Sales, ShipmentLandingReport, ShipmentReports } from './api-reports.interfaces';
2
+ import { Session } from './api-security.interfaces';
3
+ import { QueryParams } from './api.models';
4
+ export type CollectionPaymentsOut = {
5
+ collection_payments: CollectionPayment[];
6
+ total: number;
7
+ };
8
+ export type ShipmentsReportOut = {
9
+ shipments: ShipmentReports[];
10
+ total: number;
11
+ };
12
+ export type ShipmentsLandingReportOut = {
13
+ shipments_landing: ShipmentLandingReport[];
14
+ total: number;
15
+ };
16
+ export type ExternalShipmentsOut = {
17
+ external_shipments: ReportExternalShipment[];
18
+ total: number;
19
+ };
20
+ export type PromotionCodeDiscountsOut = {
21
+ total: number;
22
+ promotion_code_discounts: PromotionCodeDiscount[];
23
+ } | {
24
+ transaction_id: string;
25
+ };
26
+ export type FileCheckOut = {
27
+ report_file: {
28
+ user_id: number;
29
+ role_type_level: number;
30
+ type: string;
31
+ status: number;
32
+ progress: number;
33
+ file_size: number;
34
+ file_name: string | null;
35
+ report_request: QueryParams;
36
+ transaction_id: string;
37
+ headers: {
38
+ [key: string]: string;
39
+ };
40
+ user_session: Session;
41
+ role_company_country_id: number;
42
+ updated_at: string;
43
+ created_at: string;
44
+ id: string;
45
+ };
46
+ };
47
+ export type PartialWithdrawalsOut = {
48
+ partial_withdrawals: PartialWithdrawal[];
49
+ total: number;
50
+ };
51
+ export type InvoicesOut = {
52
+ invoices: Invoice[];
53
+ total: number;
54
+ };
55
+ export type SalesBookReportOut = {
56
+ sale_books: Sales[];
57
+ total: number;
58
+ transaction_id?: string;
59
+ };
@@ -0,0 +1,68 @@
1
+ import { LaravelModel } from './api.models';
2
+ import { Pivot } from './api-security.types';
3
+ export interface Session extends LaravelModel {
4
+ model_type: string;
5
+ model_id: number;
6
+ status: string;
7
+ last_activity: string;
8
+ user_agent: string;
9
+ gmt_offset: string;
10
+ opening_id: number;
11
+ user_id: number;
12
+ installation_id: number;
13
+ locale: string | null;
14
+ decimal_point: number;
15
+ country_id: number;
16
+ company_id: number;
17
+ company_country_id: number;
18
+ location_id: number;
19
+ country_reference_currency_id: number;
20
+ location_employee_id: number;
21
+ }
22
+ export interface Role extends LaravelModel {
23
+ name: string;
24
+ guard_name: string;
25
+ company_country_id: number;
26
+ role_type_id: number;
27
+ regional_country_id: number | null;
28
+ role_type: RoleType;
29
+ permissions?: Permission[];
30
+ }
31
+ export interface RoleType extends LaravelModel {
32
+ name: string;
33
+ level: number;
34
+ }
35
+ export interface Permission extends LaravelModel {
36
+ name: string;
37
+ guard_name: string;
38
+ description: string;
39
+ is_default: boolean;
40
+ pivot: Pivot;
41
+ }
42
+ export interface User extends LaravelModel {
43
+ name: string;
44
+ username: string;
45
+ model_type: string;
46
+ model_id: number;
47
+ auth_type: string;
48
+ language_id: number;
49
+ email: string;
50
+ roles: Role[];
51
+ }
52
+ export interface UserMe extends Omit<User, 'roles'> {
53
+ permissions: string[];
54
+ session: Session | null;
55
+ role: Role;
56
+ }
57
+ export interface Module extends LaravelModel {
58
+ name: string;
59
+ code: string;
60
+ module_type_id: number;
61
+ module_type: ModuleType;
62
+ permissions: Permission[];
63
+ require_default_permission?: boolean;
64
+ }
65
+ export interface ModuleType extends LaravelModel {
66
+ name: string;
67
+ description: string;
68
+ }
@@ -0,0 +1,72 @@
1
+ import { Module, Role, RoleType, Session, User, UserMe } from './api-security.interfaces';
2
+ export type AuthLoginIn = {
3
+ username: string;
4
+ password: string;
5
+ role?: number;
6
+ system_name?: string;
7
+ };
8
+ export type AuthLoginOut = {
9
+ access_token: string;
10
+ token_type: string;
11
+ expires_in: number;
12
+ };
13
+ export type AuthUserLoginIn = {
14
+ username: string;
15
+ };
16
+ export type SessionIn = {
17
+ modelType: string;
18
+ modelId: number;
19
+ token?: string;
20
+ };
21
+ export type SessionOut = {
22
+ session: Session;
23
+ };
24
+ export type PutUsersIn = {
25
+ user: User;
26
+ };
27
+ export type PutUsersOut = {
28
+ user: User;
29
+ };
30
+ export type GetUserOut = {
31
+ user: User;
32
+ };
33
+ export type GetUsersOut = {
34
+ users: User[];
35
+ total: number;
36
+ };
37
+ export type AuthMeOut = {
38
+ user: UserMe;
39
+ };
40
+ export type ChangeLanguageIn = {
41
+ languageId: number;
42
+ };
43
+ export type RolesOut = {
44
+ roles: Role[];
45
+ total: number;
46
+ };
47
+ export type Pivot = {
48
+ role_id: number;
49
+ permission_id: number;
50
+ } | {
51
+ module_id: string;
52
+ permission_id: string;
53
+ };
54
+ export type RoleOut = {
55
+ role: Role;
56
+ };
57
+ export type RoleIn = {
58
+ name: string;
59
+ role_type_id: number;
60
+ company_country_id: number;
61
+ regional_country_id?: number[] | null;
62
+ is_active: boolean;
63
+ permissions?: string[];
64
+ };
65
+ export type RoleTypesOut = {
66
+ role_types: RoleType[];
67
+ total: number;
68
+ };
69
+ export type ModulesOut = {
70
+ modules: Module[];
71
+ total: number;
72
+ };
@@ -0,0 +1,43 @@
1
+ import { SymfonyModel } from './api.models';
2
+ export interface ServiceArea extends SymfonyModel {
3
+ serviceAreaCodeName: string;
4
+ referenceDataCode: string;
5
+ serviceAreaCode: string;
6
+ serviceAreaName: string;
7
+ serviceAreaStatusCode: string;
8
+ serviceAreaStatusCodeDescription: string;
9
+ iataCode: string;
10
+ iataAirportName: string;
11
+ countryCode: string;
12
+ countryName: string;
13
+ timezoneCode: string;
14
+ timezoneCodeName: string;
15
+ offNetServiceIndicator: string;
16
+ offNetServiceIndicatorDescription: string;
17
+ effectiveDate: string;
18
+ }
19
+ export interface Facility extends SymfonyModel {
20
+ facilityIdentifier: string;
21
+ facilityCode: string;
22
+ serviceAreaCode: string;
23
+ serviceAreaName: string;
24
+ facilityName: string;
25
+ countryCode: string;
26
+ countryName: string;
27
+ facilityStatusCode: string;
28
+ facilityCompanyName: string;
29
+ facilityTypeIndicator: string;
30
+ cityName: string;
31
+ addressLine1: string;
32
+ postcode: string;
33
+ addressLongitude: string;
34
+ addressLatitude: string;
35
+ stateProvinceCode: string;
36
+ stateProvinceName: string;
37
+ regionCode: string;
38
+ regionName: string;
39
+ facilityWeightUnitOfMeasure: string;
40
+ facilityDimensionUnitOfMeasure: string;
41
+ facilityPrintIndicator: string;
42
+ effectiveDate: string;
43
+ }
@@ -0,0 +1,57 @@
1
+ import { Facility, ServiceArea } from './api-services.interfaces';
2
+ export type ServiceAreaIn = {
3
+ countryCodes: string[];
4
+ };
5
+ export type ServiceAreasOut = {
6
+ serviceAreas: ServiceArea[];
7
+ total: number;
8
+ };
9
+ export type ValidateFacilityOut = {
10
+ facility: Facility;
11
+ transactionId: string;
12
+ };
13
+ export type ValidateFacilityIn = {
14
+ facilityIdentifier: string;
15
+ };
16
+ export type EmailErrorIn = {
17
+ transactionId: string;
18
+ details: string;
19
+ extraFields: {
20
+ [key: string]: string;
21
+ };
22
+ };
23
+ export type PromotionIn = {
24
+ code: string;
25
+ destinationCountryCode: string;
26
+ shipmentDatetime: string;
27
+ shipper: {
28
+ countryCode: string;
29
+ accountNumber: string;
30
+ };
31
+ };
32
+ export type PromotionOut = {
33
+ promotion: {
34
+ accountNumber: string;
35
+ };
36
+ transactionId: string;
37
+ };
38
+ export type ValidateNIPOut = {
39
+ nip: {
40
+ valid: string;
41
+ message: string;
42
+ };
43
+ };
44
+ export type ValidateNIPIn = {
45
+ accountValue: string;
46
+ nip: string;
47
+ user: number;
48
+ };
49
+ export type ValidateIdentificationBROut = {
50
+ identification: {
51
+ valid: boolean;
52
+ };
53
+ };
54
+ export type ValidateIdentificationBRIn = {
55
+ identification_number: string;
56
+ validate_state_tax: boolean;
57
+ };
@@ -0,0 +1,6 @@
1
+ export declare enum CustomerType {
2
+ SHIPPER = "SP",
3
+ CONSIGNEE = "RV",
4
+ IMPORTER = "IP",
5
+ EXPORTER = "EP"
6
+ }
@@ -0,0 +1,41 @@
1
+ import { ActiveLessSymfonyModel, SymfonyModel } from './api.models';
2
+ import { ShipmentContentType } from './api-catalog.interfaces';
3
+ export interface ShipmentEmployeeCustomers extends ActiveLessSymfonyModel {
4
+ trackingNumber: string;
5
+ employeeCustomerId: number;
6
+ shipment: {
7
+ id: number;
8
+ } | null;
9
+ }
10
+ export interface ExportType extends SymfonyModel {
11
+ code: string;
12
+ name: string;
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
+ }