@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,457 @@
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, TDXAccountSetting, WorkflowConfig } from './api-companies.interfaces';
2
+ import { QueryParams } from './api.models';
3
+ export type LocationEmployeesOut = {
4
+ location_employees: LocationEmployee[];
5
+ total: number;
6
+ };
7
+ export type LocationEmployeeBatchIn = {
8
+ store_update: {
9
+ location_id: number;
10
+ employee_id: number;
11
+ is_active: boolean;
12
+ }[];
13
+ };
14
+ export type LocationEmployeeOut = {
15
+ location_employee: LocationEmployee;
16
+ };
17
+ export type InstallationsOut = {
18
+ installations: Installation[];
19
+ total: number;
20
+ };
21
+ export type InstallationIn = {
22
+ system_id: number;
23
+ mac_address: string;
24
+ ip_address: string;
25
+ location_id: number;
26
+ number: number;
27
+ customer_screen: boolean;
28
+ epod_capture: boolean;
29
+ cx_survey: boolean;
30
+ customer_flow: boolean;
31
+ promotional_content: boolean;
32
+ };
33
+ export type InstallationOut = {
34
+ installation: Installation;
35
+ };
36
+ export type LocationsOut = {
37
+ locations: Location[];
38
+ total: number;
39
+ };
40
+ export type LocationIn = {
41
+ name: string;
42
+ contact_name: string;
43
+ email: string;
44
+ facility_code: string;
45
+ location_code: string;
46
+ state_name: string;
47
+ state_id: number;
48
+ state_code: string;
49
+ city_name: string;
50
+ zip_code: string;
51
+ county_name: string;
52
+ address1: string;
53
+ address2: string;
54
+ address3: string;
55
+ service_area_code: string;
56
+ iata_code: string;
57
+ phone_number: string;
58
+ phone_code: string;
59
+ is_active: boolean;
60
+ gmt_offset: string;
61
+ company_country_id: number;
62
+ country_zone_id: number;
63
+ country_region_id: number;
64
+ management_area_id: number;
65
+ route_number: string;
66
+ locker_enabled: boolean;
67
+ queue_manager_enabled: boolean;
68
+ commission_account: string;
69
+ type: string;
70
+ facility_id: number;
71
+ service_point_id: number;
72
+ default_account_id: number;
73
+ extra_fields: {
74
+ [key: string]: string | number | boolean | null;
75
+ };
76
+ };
77
+ export type LocationOut = {
78
+ location: Location;
79
+ };
80
+ export type SupplyEntitiesIn = {
81
+ model_type: string;
82
+ model_id: number;
83
+ check_all?: boolean;
84
+ supply_entities: {
85
+ id: number;
86
+ is_active: boolean;
87
+ }[];
88
+ };
89
+ export type SupplyEntitiesOut = {
90
+ supply_entities: SupplyEntity[];
91
+ total: number;
92
+ };
93
+ export type EmployeesOut = {
94
+ employees: Employee[];
95
+ total: number;
96
+ };
97
+ export type EmployeeIn = {
98
+ auth_type: string;
99
+ company_id: number;
100
+ country_id: number;
101
+ email: string;
102
+ last_name: string;
103
+ name: string;
104
+ username: string;
105
+ number: string;
106
+ external: boolean;
107
+ phone_code: string;
108
+ phone_number: string;
109
+ is_active: boolean;
110
+ password: string;
111
+ roles: string[];
112
+ };
113
+ export type EmployeeOut = {
114
+ employee: Employee;
115
+ };
116
+ export type CompanyCountriesOut = {
117
+ company_countries: CompanyCountry[];
118
+ total: number;
119
+ };
120
+ export type CompanyCountryIn = {
121
+ company_id: number;
122
+ country_id: number;
123
+ is_active: boolean;
124
+ headquarters_city_code: string | null;
125
+ lp_code: string | null;
126
+ contact_name: string;
127
+ contact_email: string;
128
+ contact_phone_code: string;
129
+ contact_phone_number: string;
130
+ state: string | null;
131
+ city: string | null;
132
+ zip_code: string | null;
133
+ county_name: string | null;
134
+ address1: string;
135
+ address2: string | null;
136
+ address3: string | null;
137
+ };
138
+ export type CompanyCountryOut = {
139
+ company_country: CompanyCountry;
140
+ };
141
+ export type CountryReferenceCurrencyIn = {
142
+ is_local: boolean;
143
+ can_transact: boolean;
144
+ code: string;
145
+ name: string;
146
+ is_default: boolean;
147
+ is_declared_insured: boolean;
148
+ is_active: boolean;
149
+ };
150
+ export type CountryReferenceCurrencyOut = {
151
+ country_reference_currency: CountryReferenceCurrency;
152
+ };
153
+ export type CountryReferenceCurrenciesOut = {
154
+ country_reference_currencies: CountryReferenceCurrency[];
155
+ total: number;
156
+ };
157
+ export type CompanyCountryTaxesOut = {
158
+ company_country_taxes: CompanyCountryTax[];
159
+ total: number;
160
+ };
161
+ export type ExchangeIn = {
162
+ country_reference_currency_id: number;
163
+ valid_since: string;
164
+ valid_until?: string;
165
+ value: string;
166
+ type: string;
167
+ is_active: boolean;
168
+ };
169
+ export type ExchangesOut = {
170
+ exchanges: CountryExchange[];
171
+ total: number;
172
+ };
173
+ export type ExchangeOut = {
174
+ exchange: CountryExchange;
175
+ };
176
+ export type AccountsOut = {
177
+ accounts: Account[];
178
+ total: number;
179
+ };
180
+ export type AccountIn = {
181
+ number: string;
182
+ description: string;
183
+ account_type_id: number;
184
+ country_id: number;
185
+ };
186
+ export type AccountOut = {
187
+ account: Account;
188
+ };
189
+ export type AccountEntitiesIn = {
190
+ model_type: string;
191
+ model_id: number;
192
+ account_entities: {
193
+ id: number;
194
+ is_active: boolean;
195
+ }[];
196
+ };
197
+ export type AccountEntitiesOut = {
198
+ account_entities: Account[];
199
+ total: number;
200
+ };
201
+ export type AccountCategoriesOut = {
202
+ account_categories: AccountCategory[];
203
+ total: number;
204
+ };
205
+ export type AccountTypeIn = {
206
+ name: string;
207
+ account_category_id: number;
208
+ };
209
+ export type AccountTypeOut = {
210
+ account_type: AccountType;
211
+ };
212
+ export type AccountTypesOut = {
213
+ account_types: AccountType[];
214
+ total: number;
215
+ };
216
+ export type ParametersOut = {
217
+ parameters: Parameter[];
218
+ total: number;
219
+ };
220
+ export type ParametersValuesIn = {
221
+ paramNames: string[];
222
+ };
223
+ export type ParametersValuesOut = {
224
+ parameters: Parameter[];
225
+ total: number;
226
+ };
227
+ export type ParametersByLevelIn = {
228
+ name: string;
229
+ model_type: string;
230
+ model_id: number;
231
+ }[];
232
+ export type ParameterValueIn = {
233
+ paramName: string;
234
+ };
235
+ export type ParameterValueOut = {
236
+ value: string | boolean | number | {
237
+ [key: string]: (string | boolean | number)[];
238
+ };
239
+ };
240
+ export type CountryReferencesOut = {
241
+ country_references: CountryReference[];
242
+ };
243
+ export type CountryReferenceIn = {
244
+ decimal_point: number;
245
+ decimal_separator: string;
246
+ thousands_separator: string;
247
+ use_billing: boolean;
248
+ use_payments: boolean;
249
+ currency_id: number;
250
+ is_active: boolean;
251
+ locale: string;
252
+ language_id: number;
253
+ restricted_import_countries: number[];
254
+ max_quantity_document_piece: number;
255
+ max_quantity_package_piece: number;
256
+ weight_restriction_piece: number;
257
+ restriction_shipment: number;
258
+ restriction_dimension: number;
259
+ max_declared_value: number;
260
+ territories: number[];
261
+ some_openings: boolean;
262
+ };
263
+ export type CountryReferenceOut = {
264
+ country_reference: CountryReference;
265
+ };
266
+ export type CountryReferenceExtraChargeIn = {
267
+ local_availability: boolean;
268
+ mandatory: boolean;
269
+ selected: boolean;
270
+ shipment_scopes: number[];
271
+ shipment_content_types: number[];
272
+ value_local: number;
273
+ value_usd: number;
274
+ country_id: number;
275
+ extra_charge_id: number;
276
+ };
277
+ export type CountryReferenceExtraChargeOut = {
278
+ country_reference_extra_charge: CountryReferenceExtraCharge;
279
+ };
280
+ export type WorkflowsOut = {
281
+ workflow: {
282
+ page: string;
283
+ enabled: boolean;
284
+ }[];
285
+ system_configuration: object;
286
+ };
287
+ export type EmployeesCustomersOut = {
288
+ employee_customers: EmployeeCustomerDhl[];
289
+ total: number;
290
+ };
291
+ export type EmployeeCustomersOut = {
292
+ employee_customer: EmployeeCustomerDhl;
293
+ };
294
+ export type EmployeeCustomersIn = {
295
+ identification_type_id: number;
296
+ identification_type_value: string;
297
+ name: string;
298
+ last_name: string;
299
+ address: string;
300
+ phone_code: string;
301
+ phone_number: string;
302
+ email: string;
303
+ country_id: number;
304
+ employee_id: number | null;
305
+ is_active: boolean;
306
+ };
307
+ export type BoardingProcessIn = {
308
+ boarding_process: BoardingProcess;
309
+ };
310
+ export type BoardingProcessIdIn = {
311
+ boarding_process_id: number;
312
+ message: string;
313
+ };
314
+ export type SystemsOut = {
315
+ systems: System[];
316
+ total: number;
317
+ };
318
+ export type SystemIn = {
319
+ name: string;
320
+ type: string;
321
+ can_workflow_config?: boolean;
322
+ configuration: {
323
+ [key: string]: string;
324
+ };
325
+ };
326
+ export type SystemOut = {
327
+ system: System;
328
+ };
329
+ export type SystemEntitiesIn = {
330
+ model_type: string;
331
+ model_id: number;
332
+ system_entities: {
333
+ id: number;
334
+ is_active: boolean;
335
+ }[];
336
+ };
337
+ export type SystemEntitiesOut = {
338
+ system_entities: System[];
339
+ total: number;
340
+ };
341
+ export type WorkflowConfigsBatchIn = {
342
+ store: {
343
+ system_id: number;
344
+ model_type: string;
345
+ model_id: number;
346
+ page_id: number;
347
+ enabled: boolean;
348
+ }[];
349
+ update: {
350
+ system_id: number;
351
+ model_type: string;
352
+ model_id: number;
353
+ page_id: number;
354
+ enabled: boolean;
355
+ }[];
356
+ };
357
+ export type WorkflowConfigsOut = {
358
+ workflow_configs: WorkflowConfig[];
359
+ total: number;
360
+ };
361
+ export type CompanyIn = {
362
+ name: string;
363
+ contact_name: string;
364
+ contact_email: string;
365
+ contact_phone_code: string;
366
+ contact_phone_number: string;
367
+ state: string | null;
368
+ city: string | null;
369
+ county_name: string | null;
370
+ zip_code: string | null;
371
+ address1: string;
372
+ address2: string | null;
373
+ address3: string | null;
374
+ is_active: boolean;
375
+ };
376
+ export type CompanyOut = {
377
+ company: Company;
378
+ };
379
+ export type ProductEntitiesIn = {
380
+ model_type: string;
381
+ model_id: number;
382
+ product_entities: {
383
+ id: number;
384
+ is_active: boolean;
385
+ }[];
386
+ };
387
+ export type ProductEntitiesOut = {
388
+ product_entities: ProductEntity[];
389
+ total: number;
390
+ };
391
+ export type CountryReferenceProductsOut = {
392
+ country_reference_products: CountryReferenceProduct[];
393
+ total: number;
394
+ };
395
+ export type CountryReferenceProductIn = {
396
+ anti_drug_letter: boolean;
397
+ business_letter: boolean;
398
+ country_id: number;
399
+ max_declared_value: number;
400
+ max_weight: number;
401
+ min_weight: number;
402
+ packaging: boolean;
403
+ product_id: number;
404
+ shipment_content_types: number[];
405
+ shipment_groups: number[];
406
+ shipment_scopes: number[];
407
+ local_name: string;
408
+ insurance: number;
409
+ };
410
+ export type CountryReferenceProductOut = {
411
+ country_reference_product: CountryReferenceProduct;
412
+ };
413
+ export type ExtraChargeEntitiesIn = {
414
+ model_type: string;
415
+ model_id: number;
416
+ extracharge_entities: {
417
+ id: number;
418
+ is_active: boolean;
419
+ }[];
420
+ };
421
+ export type ExtraChargeEntitiesOut = {
422
+ extracharge_entities: ExtraChargeEntity[];
423
+ total: number;
424
+ };
425
+ export type ParameterConfigsOut = {
426
+ parameter_configs: ParameterConfig[];
427
+ total: number;
428
+ };
429
+ export type ParameterConfigIn = {
430
+ level: string;
431
+ parameter_id: number;
432
+ model_type: string;
433
+ model_id: number;
434
+ name: string;
435
+ value: string;
436
+ };
437
+ export type ParameterConfigOut = {
438
+ parameter_config: ParameterConfig;
439
+ total: number;
440
+ };
441
+ export type TDXAccountsSettingsOut = {
442
+ tdx_account_settings: TDXAccountSetting[];
443
+ total: number;
444
+ };
445
+ export type TDXAccountSettingsOut = {
446
+ tdx_account_settings: TDXAccountSetting;
447
+ };
448
+ export type TDXAccountSettingsIn = {
449
+ id?: number;
450
+ location_id: number;
451
+ account_id: number;
452
+ product_id: number;
453
+ is_active: boolean;
454
+ };
455
+ export type LocationEmployeesIn = {
456
+ token: string;
457
+ } & QueryParams;
@@ -0,0 +1,272 @@
1
+ import { ActiveLessSymfonyModel, SymfonyModel } from './api.models';
2
+ import { CustomerType } from './api-shipments.enums';
3
+ import { Supply } from './api-supplies.interfaces';
4
+ export interface ShipmentComposition extends SymfonyModel {
5
+ currencyCode: string;
6
+ extraCharges: ExtraChargeComposition[];
7
+ globalProductCode: string;
8
+ globalProductName: string;
9
+ localProductCode: string;
10
+ localProductName: string;
11
+ trackingNumber: string;
12
+ contentDescription: string;
13
+ realWeight: number;
14
+ piecesNumber: number;
15
+ productSubtotal: number;
16
+ productTax: number;
17
+ productTotal: number;
18
+ declaredValue: number;
19
+ insuredValue: number;
20
+ accountNumber: string;
21
+ userId: number;
22
+ installationId: number;
23
+ companyCountryId: number;
24
+ productId: number;
25
+ countryReferenceCurrencyId: number;
26
+ commercialExchangeRate: number;
27
+ ibsExchangeRate: number;
28
+ shipmentStatusId: number;
29
+ shipmentAddresses: ShipmentAddresses[];
30
+ shipmentPieces: ShipmentPieces[];
31
+ shipmentCompanyCountryExtraCharges: ShipmentCompanyCountryExtraCharges[];
32
+ shipmentGsop: ShipmentGsop;
33
+ additionalData: AdditionalData;
34
+ transactionId: string;
35
+ requiresPayment: boolean;
36
+ originServiceAreaCode: string;
37
+ originFacilityCode: string;
38
+ destinationServiceAreaCode: string;
39
+ destinationFacilityCode: string;
40
+ productTaxes: string[];
41
+ isInspected: boolean;
42
+ extraFields: {
43
+ [key: string]: string | number | boolean;
44
+ };
45
+ shipmentContentTypeId: number;
46
+ commercialInvoice: CommercialInvoice;
47
+ shipmentScopeId: number;
48
+ shipmentGroupId: number;
49
+ product: string[];
50
+ declaredCurrency: string;
51
+ insuredCurrency: string;
52
+ deliveryDateTime: string;
53
+ date: string;
54
+ promotionCode: string;
55
+ priceOverrideApproverId: number;
56
+ priceOverrideReasonId: number;
57
+ customs: Customs;
58
+ exportReasonId: number;
59
+ exportReason: string[];
60
+ shipmentBookPickup: ShipmentBookPickup;
61
+ questionId: number;
62
+ isInsured: boolean;
63
+ itnNumber: string;
64
+ einNumber: string;
65
+ otherAccountNumber: string;
66
+ dutiesAndTaxesAccountNumber: string;
67
+ discountId: string;
68
+ discountReference: string;
69
+ totalPublishedValue: number;
70
+ totalPartnerAccountValue: number;
71
+ isMarketingConsent: boolean;
72
+ isTermCondition: boolean;
73
+ isDocument: boolean;
74
+ isCash: boolean;
75
+ isPriceOverride: boolean;
76
+ isProforma: boolean;
77
+ isPromotionCode: boolean;
78
+ isRetailRate: boolean;
79
+ isOtherOrigin: boolean;
80
+ isOccurs: boolean;
81
+ isDutiesAndTaxes: boolean;
82
+ }
83
+ export interface ExtraChargeComposition {
84
+ globalServiceCode: string;
85
+ localServiceCode: string;
86
+ globalServiceName: string;
87
+ localServiceName: string;
88
+ subtotal: number;
89
+ tax: number;
90
+ total: number;
91
+ taxes: Tax[];
92
+ }
93
+ export interface Tax {
94
+ code: string;
95
+ percent: number;
96
+ baseAmount: number;
97
+ amount: number;
98
+ }
99
+ export interface ShipmentAddresses extends SymfonyModel {
100
+ index: number;
101
+ identificationTypeId: number;
102
+ identificationNumber: string;
103
+ companyName: string;
104
+ fullName: string;
105
+ email: string;
106
+ phoneCode: string;
107
+ phoneNumber: string;
108
+ postalCode: string;
109
+ stateCode: string;
110
+ countyName: string;
111
+ cityName: string;
112
+ addressLine1: string;
113
+ addressLine2: string;
114
+ addressLine3: string;
115
+ countryId: number;
116
+ identificationType: IdentificationTypeComposition;
117
+ roleType: CustomerType;
118
+ }
119
+ export interface IdentificationTypeComposition extends SymfonyModel {
120
+ name: string;
121
+ companyCountryId: number;
122
+ }
123
+ export interface ShipmentPieces extends ActiveLessSymfonyModel {
124
+ number: number;
125
+ height: number;
126
+ length: number;
127
+ width: number;
128
+ realWeight: number;
129
+ volumetricWeight: number;
130
+ dataIdentifier: string;
131
+ trackingNumber: string;
132
+ licensePlateBarCode: string;
133
+ shipmentPieceCompanyCountrySupplies: ShipmentPieceCompanyCountrySupplies[];
134
+ }
135
+ export interface ShipmentPieceCompanyCountrySupplies extends ActiveLessSymfonyModel {
136
+ supplyId: number;
137
+ quantity: number;
138
+ subtotal: number;
139
+ taxBase: number;
140
+ taxPercent: number;
141
+ tax: number;
142
+ total: number;
143
+ description: string;
144
+ supply: Supply;
145
+ }
146
+ export interface CommercialInvoice extends ActiveLessSymfonyModel {
147
+ documentTypeId: number;
148
+ tradingTransactionTypeId: number;
149
+ documentFunctionId: number;
150
+ number: string;
151
+ remarks: string;
152
+ items: Item[];
153
+ documentType: DocumentTypeComposition;
154
+ tradingTransactionType: TradingTransactionType;
155
+ documentFunction: DocumentFunction;
156
+ }
157
+ export interface Item extends ActiveLessSymfonyModel {
158
+ description: string;
159
+ quantity: number;
160
+ quantityUnitId: number;
161
+ subtotal: number;
162
+ manufactureCountryCode: string;
163
+ realWeight: number;
164
+ commodityId: number;
165
+ quantityUnit: QuantityUnit;
166
+ manufactureCountry: ManufactureCountry;
167
+ commodity: Commodity;
168
+ }
169
+ export interface QuantityUnit extends SymfonyModel {
170
+ code: string;
171
+ name: string;
172
+ }
173
+ export interface ManufactureCountry {
174
+ id: string;
175
+ code: string;
176
+ name: string;
177
+ locationType: string[];
178
+ unit: string[];
179
+ timezone: string;
180
+ hasImportService: boolean;
181
+ isActive: boolean;
182
+ regions: string[];
183
+ zones: string[];
184
+ isoCode: string;
185
+ }
186
+ export interface Commodity extends SymfonyModel {
187
+ code: string;
188
+ name: string;
189
+ countryId: number;
190
+ }
191
+ export interface DocumentTypeComposition extends SymfonyModel {
192
+ code: string;
193
+ name: string;
194
+ description: string;
195
+ }
196
+ export interface TradingTransactionType extends SymfonyModel {
197
+ code: string;
198
+ name: string;
199
+ description: string;
200
+ }
201
+ export interface DocumentFunction extends SymfonyModel {
202
+ code: string;
203
+ name: string;
204
+ }
205
+ export interface ShipmentGsop extends ActiveLessSymfonyModel {
206
+ productContentCode: string;
207
+ originServiceAreaCode: string;
208
+ destinationServiceAreaCode: string;
209
+ internalServiceCode: string;
210
+ awbBarCode: string;
211
+ dhlRoutingBarCode: string;
212
+ }
213
+ export interface ShipmentCompanyCountryExtraCharges extends ActiveLessSymfonyModel {
214
+ subtotal: number;
215
+ tax: number;
216
+ total: number;
217
+ extraChargeId: number;
218
+ extraChargeCode: string;
219
+ }
220
+ export interface AdditionalData {
221
+ awbTypeCode: string;
222
+ countryCode: string;
223
+ shipmentTypeCode: string;
224
+ productGlobalCode: string;
225
+ productLocalCode: string;
226
+ currencyCode: string;
227
+ userUsername: string;
228
+ locationFacilityCode: string;
229
+ }
230
+ export interface Customs {
231
+ criteria: Criteria;
232
+ rules: Rules[];
233
+ }
234
+ export interface Criteria {
235
+ origin: string;
236
+ destination: string;
237
+ dutiable: boolean;
238
+ declaredValue: number;
239
+ }
240
+ export interface Rules {
241
+ id: number;
242
+ level: string;
243
+ attributes: Attributes[];
244
+ }
245
+ export interface Attributes {
246
+ id: number;
247
+ field: string;
248
+ dhlCode: string;
249
+ values: Values;
250
+ }
251
+ export interface Values {
252
+ shipment: string;
253
+ customer: CustomerComposition;
254
+ invoiceHeader: string;
255
+ invoiceItem: string[];
256
+ }
257
+ export interface CustomerComposition {
258
+ SP: string;
259
+ RV: string;
260
+ }
261
+ export interface ShipmentBookPickup extends ActiveLessSymfonyModel {
262
+ pickupDate: string;
263
+ readyByTime: string;
264
+ closeTime: string;
265
+ confirmationNumber: string;
266
+ packageLocationId: number;
267
+ remarks: string;
268
+ packageLocation: PackageLocation;
269
+ }
270
+ export interface PackageLocation extends SymfonyModel {
271
+ name: string;
272
+ }