@uappi/public-sdk 1.2.8 → 1.2.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.
Files changed (112) hide show
  1. package/.gitlab-ci.yml +43 -0
  2. package/.husky/pre-push +1 -0
  3. package/.vscode/extensions.json +4 -4
  4. package/.vscode/settings.json +6 -6
  5. package/README.md +67 -0
  6. package/components/Animations/ExpandTransition.ts +89 -89
  7. package/components/Animations/index.ts +1 -1
  8. package/components/ColorTheme/ColorTheme.ts +80 -80
  9. package/components/ColorTheme/index.ts +1 -1
  10. package/components/ColorTheme/types.ts +18 -18
  11. package/components/SocialAuth/FacebookAuth/types.ts +2 -2
  12. package/components/SocialAuth/GoogleAuth/types.ts +2 -2
  13. package/components/SocialAuth/index.ts +1 -1
  14. package/components/index.ts +2 -2
  15. package/eslint.config.mjs +19 -0
  16. package/main.ts +4 -4
  17. package/modules/Api/README.md +469 -469
  18. package/modules/Api/endpoints/CommonComposable.ts +24 -24
  19. package/modules/Api/endpoints/CouponComposable.ts +18 -18
  20. package/modules/Api/endpoints/CustomerComposable.ts +1 -1
  21. package/modules/Api/endpoints/LoggoutComposable.ts +8 -8
  22. package/modules/Api/endpoints/MFAComposable.ts +43 -43
  23. package/modules/Api/endpoints/PaymentComposable.ts +14 -14
  24. package/modules/Api/endpoints/PublicComposable.ts +8 -8
  25. package/modules/Api/endpoints/TemplateComposable.ts +7 -7
  26. package/modules/Api/endpoints/ThirdPartyComposable.ts +13 -13
  27. package/modules/Api/endpoints/UpsellComposable.ts +17 -18
  28. package/modules/Api/endpoints/VerifyComposable.ts +7 -7
  29. package/modules/Api/endpoints/WalletComposable.ts +36 -36
  30. package/modules/Api/paramsSerializer/encodeWafNormalizer.ts +7 -7
  31. package/modules/Api/types/context/api-config.types.ts +0 -1
  32. package/modules/Api/types/endpoints/cart/cart.interfaces.ts +161 -161
  33. package/modules/Api/types/endpoints/cart/cart.types.ts +27 -27
  34. package/modules/Api/types/endpoints/common/common.interfaces.ts +21 -21
  35. package/modules/Api/types/endpoints/country/country.types.ts +7502 -7502
  36. package/modules/Api/types/endpoints/coupon/coupon.interfaces.ts +13 -13
  37. package/modules/Api/types/endpoints/discounts/discounts.interfaces.ts +9 -9
  38. package/modules/Api/types/endpoints/mfa/mfa.interfaces.ts +51 -51
  39. package/modules/Api/types/endpoints/payment/payment.interfaces.ts +103 -103
  40. package/modules/Api/types/endpoints/payment/payment.types.ts +27 -27
  41. package/modules/Api/types/endpoints/price/price.interfaces.ts +21 -21
  42. package/modules/Api/types/endpoints/template/template.interfaces.ts +29 -29
  43. package/modules/Api/types/endpoints/third-party/oauth.interfaces.ts +5 -5
  44. package/modules/Api/types/endpoints/upsell/upsell.interfaces.ts +12 -12
  45. package/modules/Api/types/endpoints/wallet/wallet-obsearch.ts +8 -8
  46. package/modules/Api/types/endpoints/wallet/wallet.interfaces.ts +57 -57
  47. package/modules/Api/types/endpoints/zipcode/zipcode.interfaces.ts +23 -23
  48. package/modules/Api/types/index.ts +504 -504
  49. package/modules/Tracking/endpoints/CartComposable.ts +75 -75
  50. package/modules/Tracking/endpoints/CustomerComposable.ts +71 -71
  51. package/modules/Tracking/endpoints/types.ts +11 -11
  52. package/modules/Tracking/events/actions/addPaymentInfo.ts +31 -31
  53. package/modules/Tracking/events/actions/addShippingInfo.ts +27 -27
  54. package/modules/Tracking/events/actions/addToCart.ts +35 -35
  55. package/modules/Tracking/events/actions/beginCheckout.ts +28 -28
  56. package/modules/Tracking/events/actions/customerProfile.ts +36 -36
  57. package/modules/Tracking/events/actions/generateLead.ts +12 -12
  58. package/modules/Tracking/events/actions/login.ts +8 -8
  59. package/modules/Tracking/events/actions/purchase.ts +42 -42
  60. package/modules/Tracking/events/actions/removeFromCart.ts +52 -52
  61. package/modules/Tracking/events/actions/search.ts +8 -8
  62. package/modules/Tracking/events/actions/selectItem.ts +64 -64
  63. package/modules/Tracking/events/actions/selectPromotion.ts +24 -24
  64. package/modules/Tracking/events/actions/shippingCalculation.ts +7 -7
  65. package/modules/Tracking/events/actions/signup.ts +8 -8
  66. package/modules/Tracking/events/actions/upsertToCart.ts +62 -62
  67. package/modules/Tracking/events/views/viewCart.ts +28 -28
  68. package/modules/Tracking/events/views/viewHome.ts +5 -5
  69. package/modules/Tracking/events/views/viewItem.ts +31 -31
  70. package/modules/Tracking/events/views/viewItemList.ts +65 -65
  71. package/modules/Tracking/events/views/viewNotFound.ts +5 -5
  72. package/modules/Tracking/events/views/viewOther.ts +5 -5
  73. package/modules/Tracking/events/views/viewPayment.ts +7 -7
  74. package/modules/Tracking/events/views/viewPromotion.ts +28 -28
  75. package/modules/Tracking/events/views/viewShipping.ts +7 -7
  76. package/modules/Tracking/index.ts +84 -84
  77. package/modules/Tracking/publicApiTracking.ts +35 -36
  78. package/modules/Tracking/types/actions/add-payment-info.interfaces.ts +12 -12
  79. package/modules/Tracking/types/actions/add-shipping-info.interfaces.ts +11 -11
  80. package/modules/Tracking/types/actions/add-to-cart.interfaces.ts +10 -10
  81. package/modules/Tracking/types/actions/begin-checkout.interfaces.ts +12 -12
  82. package/modules/Tracking/types/actions/customer-profile.interfaces.ts +19 -19
  83. package/modules/Tracking/types/actions/file-download.interfaces.ts +4 -4
  84. package/modules/Tracking/types/actions/generate-lead.interfaces.ts +12 -12
  85. package/modules/Tracking/types/actions/login.interfaces.ts +4 -4
  86. package/modules/Tracking/types/actions/purchase.interfaces.ts +18 -18
  87. package/modules/Tracking/types/actions/remove-from-cart.interfaces.ts +10 -10
  88. package/modules/Tracking/types/actions/search.interfaces.ts +4 -4
  89. package/modules/Tracking/types/actions/select-item.interfaces.ts +16 -16
  90. package/modules/Tracking/types/actions/select-promotion.interfaces.ts +8 -8
  91. package/modules/Tracking/types/actions/share.interfaces.ts +4 -4
  92. package/modules/Tracking/types/actions/shipping-calculation.interfaces.ts +3 -3
  93. package/modules/Tracking/types/actions/signup.interfaces.ts +4 -4
  94. package/modules/Tracking/types/event.types.ts +54 -54
  95. package/modules/Tracking/types/index.ts +37 -37
  96. package/modules/Tracking/types/item.interfaces.ts +30 -30
  97. package/modules/Tracking/types/views/view-cart.interfaces.ts +11 -11
  98. package/modules/Tracking/types/views/view-home.interfaces.ts +3 -3
  99. package/modules/Tracking/types/views/view-item-list.interfaces.ts +11 -11
  100. package/modules/Tracking/types/views/view-item.interfaces.ts +15 -15
  101. package/modules/Tracking/types/views/view-not-found.interfaces.ts +3 -3
  102. package/modules/Tracking/types/views/view-other.interfaces.ts +3 -3
  103. package/modules/Tracking/types/views/view-payment.interfaces.ts +3 -3
  104. package/modules/Tracking/types/views/view-promotion.interfaces.ts +8 -8
  105. package/modules/Tracking/types/views/view-shipping.interfaces.ts +3 -3
  106. package/modules/Tracking/utils/cart.ts +100 -100
  107. package/modules/Tracking/utils/pushDatalayer.ts +7 -7
  108. package/modules/index.ts +1 -1
  109. package/package.json +18 -2
  110. package/scripts/release.sh +34 -0
  111. package/shims.d.ts +5 -0
  112. package/tsconfig.json +17 -0
@@ -1,504 +1,504 @@
1
- // Response de API
2
- import type {
3
- ApiResponse,
4
- ApiStatus,
5
- ApiMethod,
6
- ApiContext,
7
- ApiError,
8
- ApiErrorData,
9
- } from './context/api-config.types';
10
- import type {
11
- ApiParams,
12
- ApiParamsCondition,
13
- ApiParamsConditionGroup,
14
- ApiParamsMeta,
15
- ApiParamsOrder,
16
- } from './context/api-params.types';
17
- import type {
18
- Attribute,
19
- AttributeValue,
20
- Combination,
21
- ValueList,
22
- Variations,
23
- CurrentAttribute,
24
- } from './endpoints/attribute/attribute.interfaces';
25
- import type { Banner, Banners } from './endpoints/banner/banner.interfaces';
26
- import type {
27
- BrandFields,
28
- BrandConditions,
29
- BrandOrders,
30
- } from './endpoints/brand/brand-field.types';
31
- import type { Brand, BrandItem } from './endpoints/brand/brand.interfaces';
32
- import type {
33
- CartCustomer,
34
- CartResponse,
35
- DeleteCartRequest,
36
- UpsertCartRequest,
37
- UpsertCartItem,
38
- AddressToCartRequest,
39
- AddressesToCartRequest,
40
- AddressToCartResponse,
41
- BuyCartRequest,
42
- BuyCartResponse,
43
- } from './endpoints/cart/cart.interfaces';
44
- import type {
45
- AddressToCartType,
46
- CartErrorCode,
47
- } from './endpoints/cart/cart.types';
48
- import type { CountryResponse } from './endpoints/common/common.interfaces';
49
- import type { ContextType } from './endpoints/context/context.types';
50
- import type {
51
- CountryAlpha2,
52
- CountryAlpha3,
53
- CountryName,
54
- CountryPhoneCode,
55
- StateCode,
56
- StateName,
57
- } from './endpoints/country/country.types';
58
- import type {
59
- AddCouponRequest,
60
- Coupon,
61
- } from './endpoints/coupon/coupon.interfaces';
62
- import type { CustomerErrorCode } from './endpoints/customer/customer-erros';
63
- import type {
64
- CustomerConditionFields,
65
- CustomerFields,
66
- CustomerSortFields,
67
- CustomerOrderGroupConditionFields,
68
- CustomerOrderGroupFields,
69
- CustomerOrderGroupSortFields,
70
- CustomerOrderItemHistoryConditionFields,
71
- CustomerOrderItemHistorySortFields,
72
- CustomerHistoryConditionFields,
73
- CustomerHistorySortFields,
74
- CustomerWishlistConditionFields,
75
- CustomerWishlistSortFields
76
- } from './endpoints/customer/customer-obsearch';
77
- import type {
78
- UpdateCustomer,
79
- ChangePasswordCustomerAuthenticated,
80
- ChangePasswordCustomerByCode,
81
- CheckCustomer,
82
- CheckCustomerResponse,
83
- PasswordRecoveryCustomer,
84
- CustomerResponse,
85
- SigninCustomerByDocument,
86
- SigninCustomerByEmail,
87
- SignupCustomer,
88
- ResponseSigninCustomer,
89
- CustomerDocument,
90
- UpsertCustomerAddressRequest,
91
- CustomerAddressResponse,
92
- CustomerAddressesResponse,
93
- CustomerOrderPayment,
94
- CustomerOrderResponse,
95
- CustomerOrderItem,
96
- CustomerOrderItemHistoriesResponse,
97
- CustomerOrderItemHistoryResponse,
98
- CustomerOrdersResponse,
99
- CustomerHistory,
100
- CustomerHistoryResponse,
101
- AddCustomerToNewsletterRequest,
102
- AddCustomerToNewsletterResponse,
103
- UpdateCustomerDocument,
104
- UpdateCustomerDocumentResponse,
105
- CustomerDetailWishlistResponse,
106
- CustomerListWishlistResponse,
107
- AddProductToWishlistRequest,
108
- AfterPointSystem,
109
- Wishlist
110
- } from './endpoints/customer/customer.interfaces';
111
- import type {
112
- CustomerGender,
113
- CustomerOrigin,
114
- } from './endpoints/customer/customer.types';
115
- import type { Descriptions } from './endpoints/description/description.interfaces';
116
- import type { Discount } from './endpoints/discounts/discounts.interfaces';
117
- import type { DiscountType } from './endpoints/discounts/discounts.types';
118
- import type { TypeFilter } from './endpoints/filters/filter.type';
119
- import type {
120
- Filter,
121
- PriceFilter,
122
- FilterValue,
123
- } from './endpoints/filters/filters.interfaces';
124
- import type {
125
- InterestType,
126
- RequestInterest,
127
- ResponseInterest,
128
- } from './endpoints/interest/interest.interfaces';
129
- import type { Media } from './endpoints/media/media.interfaces';
130
- import type { Target, Type } from './endpoints/menu/menu.enums';
131
- import type { Menu, MenuItem } from './endpoints/menu/menu.interfaces';
132
- import type { Order, OrderItem } from './endpoints/order/order.interfaces';
133
- import type { Page } from './endpoints/page/page.interfaces';
134
- import type { Pagination } from './endpoints/pagination/pagination.interfaces';
135
- import type {
136
- PairOffer,
137
- PairOfferResponse,
138
- } from './endpoints/pair-offer/pair-offer.interfaces';
139
- import type {
140
- Payment,
141
- PaymentConfiguration,
142
- PaymentOption,
143
- PaymentResponse,
144
- PaymentType,
145
- CardFlags,
146
- PaymentConditionsRequest,
147
- PaymentConditionsResponse,
148
- } from './endpoints/payment/payment.interfaces';
149
- import type {
150
- ConfigurationCode,
151
- PaymentCode,
152
- } from './endpoints/payment/payment.types';
153
- import type {
154
- ProductFields,
155
- ProductConditionFields,
156
- ProductSortFields,
157
- } from './endpoints/product/product-obsearch.types';
158
- import type {
159
- Product,
160
- ProductCategory,
161
- ProductDimension,
162
- ProductFlags,
163
- ProductPrice,
164
- Stock,
165
- ProductInstallment,
166
- ProductRestriction
167
- } from './endpoints/product/product.interfaces';
168
- import type {
169
- ProductStatus,
170
- ProductType,
171
- } from './endpoints/product/product.types';
172
- import type {
173
- ProductCommentConditionFields,
174
- ProductCommentFields,
175
- ProductCommentSortFields,
176
- } from './endpoints/product-comment/product-comment-obsearch.types';
177
- import type {
178
- ProductComment,
179
- CreateProductComment,
180
- ProductCommentsResponse,
181
- } from './endpoints/product-comment/product-comment.interfaces';
182
- import type { Redirect } from './endpoints/redirect/redirect.interfaces';
183
- import type {
184
- ReviewConditionFields,
185
- ReviewSortFields,
186
- ReviewFields,
187
- } from './endpoints/review/review-obsearch.types';
188
- import type {
189
- ProductReviewRequest,
190
- ProductReviewResponse,
191
- ProductReview,
192
- CreateProductReviewResponse,
193
- CreateProductReviewMediaResponse,
194
- } from './endpoints/review/review.interfaces';
195
- import type { Seal, SealSetting } from './endpoints/seal/seal.interfaces';
196
- import type { Seals } from './endpoints/seal/seal.types';
197
- import type { Search } from './endpoints/search/search.interfaces';
198
- import type { Seo } from './endpoints/seo/seo.interfaces';
199
- import type {
200
- ShippingOption,
201
- QuoteGroupProduct,
202
- ShippingOptionProduct,
203
- QuoteGroupProductItem,
204
- ShipmentQuoteCartRequest,
205
- ShipmentQuoteProductRequest,
206
- ShipmentQuoteProductResponse,
207
- SelectShipimentRequest,
208
- PickupPoint
209
- } from './endpoints/shipment/shipment.interfaces';
210
- import type { TitleType } from './endpoints/showcase/showcase.enums';
211
- import type { Showcase } from './endpoints/showcase/showcase.interfaces';
212
- import type { SimpleProduct } from './endpoints/simple-product/simple-product.interfaces';
213
- import type { Storage } from './endpoints/storage/storage.interfaces';
214
- import type {
215
- UrlBrand,
216
- UrlListing,
217
- UrlMenu,
218
- UrlPage,
219
- UrlProduct,
220
- } from './endpoints/url/url.interfaces';
221
- import type {
222
- WalletConditionFields,
223
- WalletSortFields,
224
- } from './endpoints/wallet/wallet-obsearch';
225
- import type {
226
- WalletTransaction,
227
- WalletTransactionResponse,
228
- ClaimGiftCardRequest,
229
- ClaimGiftCardResponse,
230
- } from './endpoints/wallet/wallet.interfaces';
231
- import type { ZipcodeResponse } from './endpoints/zipcode/zipcode.interfaces';
232
-
233
- import type { TemplateResponse } from './endpoints/template/template.interfaces';
234
-
235
- import type { UpsellResponse, Upsell } from './endpoints/upsell/upsell.interfaces';
236
- import type { PriceRule } from './endpoints/price/price.interfaces';
237
-
238
- import type { RedirectRequest, OauthType } from './endpoints/third-party/oauth.interfaces';
239
-
240
- import type {
241
- MFAOption,
242
- RequestSendMFA,
243
- RequestConfirmMFA,
244
- MFAAPPSettings,
245
- MFAEmailSettings,
246
- MFAPhoneSettings,
247
- RequestLoginMFA,
248
- CustomerMFAErrorCode,
249
- RequestMFASetup,
250
- ResponseMFASetup
251
- } from './endpoints/mfa/mfa.interfaces';
252
-
253
- export type {
254
- // Config da useApi
255
- ApiResponse,
256
- ApiStatus,
257
- ApiMethod,
258
- ApiError,
259
- ApiErrorData,
260
- ApiContext,
261
- ApiParams,
262
- ApiParamsCondition,
263
- ApiParamsConditionGroup,
264
- ApiParamsMeta,
265
- ApiParamsOrder,
266
-
267
- // Endpoints
268
- TemplateResponse,
269
-
270
- // TODO organizar por modulos
271
- ContextType,
272
- DiscountType,
273
- Discount,
274
-
275
- // Types
276
- Target,
277
- Type,
278
- ProductStatus,
279
- ProductType,
280
- TitleType,
281
-
282
- // Interfaces
283
-
284
- // Atributos
285
- Attribute,
286
- AttributeValue,
287
- Combination,
288
- ValueList,
289
- Variations,
290
- CurrentAttribute,
291
- WalletConditionFields,
292
- WalletSortFields,
293
- WalletTransaction,
294
- WalletTransactionResponse,
295
- ClaimGiftCardRequest,
296
- ClaimGiftCardResponse,
297
- RedirectRequest,
298
- OauthType,
299
-
300
- // banner
301
- Banner,
302
- Banners,
303
- Seo,
304
- Media,
305
- Menu,
306
- MenuItem,
307
- Descriptions,
308
- Showcase,
309
-
310
- // Marcas
311
- Brand,
312
- BrandItem,
313
- BrandFields,
314
- BrandConditions,
315
- BrandOrders,
316
-
317
- // Pagination
318
- Pagination,
319
-
320
- // Selos
321
- Seal,
322
- SealSetting,
323
- Seals,
324
-
325
- // Shipment
326
- ShippingOption,
327
- QuoteGroupProduct,
328
- ShippingOptionProduct,
329
- QuoteGroupProductItem,
330
- ShipmentQuoteCartRequest,
331
- ShipmentQuoteProductRequest,
332
- ShipmentQuoteProductResponse,
333
- SelectShipimentRequest,
334
- PickupPoint,
335
-
336
- // Avise-me/Sobconsulta = Interests
337
- InterestType,
338
- RequestInterest,
339
- ResponseInterest,
340
-
341
- // Compre junto
342
- PairOffer,
343
- PairOfferResponse,
344
-
345
- // Avaliaçoes
346
- ProductReviewRequest,
347
- CreateProductReviewResponse,
348
- CreateProductReviewMediaResponse,
349
- ProductReviewResponse,
350
- ProductReview,
351
- ReviewConditionFields,
352
- ReviewSortFields,
353
- ReviewFields,
354
-
355
- // Filtros de listagem
356
- TypeFilter,
357
- Filter,
358
- PriceFilter,
359
- FilterValue,
360
-
361
- // Institutional page
362
- Page,
363
-
364
- // Redirects
365
- Redirect,
366
-
367
- // Product
368
- ProductFields,
369
- ProductConditionFields,
370
- ProductSortFields,
371
- Product,
372
- ProductCategory,
373
- ProductDimension,
374
- ProductFlags,
375
- ProductPrice,
376
- ProductInstallment,
377
- ProductRestriction,
378
- Stock,
379
- SimpleProduct,
380
-
381
- // Product comment
382
- ProductComment,
383
- CreateProductComment,
384
- ProductCommentsResponse,
385
- ProductCommentConditionFields,
386
- ProductCommentFields,
387
- ProductCommentSortFields,
388
-
389
- // Request das páginas
390
- UrlMenu,
391
- UrlBrand,
392
- UrlListing,
393
- UrlPage,
394
- UrlProduct,
395
-
396
- // Busca de produto
397
- Search,
398
-
399
- // Cart
400
- CartCustomer,
401
- CartResponse,
402
- DeleteCartRequest,
403
- UpsertCartRequest,
404
- UpsertCartItem,
405
- AddressToCartRequest,
406
- AddressesToCartRequest,
407
- AddressToCartType,
408
- CartErrorCode,
409
- AddressToCartResponse,
410
- BuyCartRequest,
411
- BuyCartResponse,
412
-
413
- // Payment
414
- ConfigurationCode,
415
- PaymentCode,
416
- Payment,
417
- PaymentConfiguration,
418
- PaymentOption,
419
- PaymentResponse,
420
- PaymentType,
421
- CardFlags,
422
- PaymentConditionsRequest,
423
- PaymentConditionsResponse,
424
-
425
- // Customer
426
- UpdateCustomer,
427
- ChangePasswordCustomerAuthenticated,
428
- ChangePasswordCustomerByCode,
429
- CheckCustomer,
430
- CheckCustomerResponse,
431
- PasswordRecoveryCustomer,
432
- CustomerResponse,
433
- SigninCustomerByDocument,
434
- SigninCustomerByEmail,
435
- ResponseSigninCustomer,
436
- CustomerDocument,
437
- SignupCustomer,
438
- CustomerGender,
439
- CustomerOrigin,
440
- CustomerConditionFields,
441
- CustomerFields,
442
- CustomerSortFields,
443
- CustomerOrderGroupConditionFields,
444
- CustomerOrderGroupFields,
445
- CustomerOrderGroupSortFields,
446
- CustomerOrderItemHistoryConditionFields,
447
- CustomerOrderItemHistorySortFields,
448
- CustomerHistoryConditionFields,
449
- CustomerHistorySortFields,
450
- CustomerWishlistConditionFields,
451
- CustomerWishlistSortFields,
452
- CustomerErrorCode,
453
- UpsertCustomerAddressRequest,
454
- CustomerAddressResponse,
455
- CustomerAddressesResponse,
456
- CustomerOrderPayment,
457
- CustomerOrderResponse,
458
- CustomerOrderItem,
459
- CustomerOrderItemHistoriesResponse,
460
- CustomerOrderItemHistoryResponse,
461
- CustomerOrdersResponse,
462
- CustomerHistory,
463
- CustomerHistoryResponse,
464
- AddCustomerToNewsletterRequest,
465
- AddCustomerToNewsletterResponse,
466
- UpdateCustomerDocument,
467
- UpdateCustomerDocumentResponse,
468
- CustomerDetailWishlistResponse,
469
- CustomerListWishlistResponse,
470
- AddProductToWishlistRequest,
471
- AfterPointSystem,
472
- Wishlist,
473
- MFAOption,
474
- RequestSendMFA,
475
- RequestConfirmMFA,
476
- MFAAPPSettings,
477
- MFAEmailSettings,
478
- MFAPhoneSettings,
479
- RequestLoginMFA,
480
- CustomerMFAErrorCode,
481
- RequestMFASetup,
482
- ResponseMFASetup,
483
-
484
- // Order
485
- Order,
486
- OrderItem,
487
- Storage,
488
-
489
- // COUNTRY TYPES
490
- CountryAlpha2,
491
- CountryAlpha3,
492
- CountryName,
493
- CountryPhoneCode,
494
- StateCode,
495
- StateName,
496
- ZipcodeResponse,
497
- CountryResponse,
498
- AddCouponRequest,
499
- Coupon,
500
-
501
- UpsellResponse,
502
- Upsell,
503
- PriceRule
504
- };
1
+ // Response de API
2
+ import type {
3
+ ApiResponse,
4
+ ApiStatus,
5
+ ApiMethod,
6
+ ApiContext,
7
+ ApiError,
8
+ ApiErrorData,
9
+ } from './context/api-config.types';
10
+ import type {
11
+ ApiParams,
12
+ ApiParamsCondition,
13
+ ApiParamsConditionGroup,
14
+ ApiParamsMeta,
15
+ ApiParamsOrder,
16
+ } from './context/api-params.types';
17
+ import type {
18
+ Attribute,
19
+ AttributeValue,
20
+ Combination,
21
+ ValueList,
22
+ Variations,
23
+ CurrentAttribute,
24
+ } from './endpoints/attribute/attribute.interfaces';
25
+ import type { Banner, Banners } from './endpoints/banner/banner.interfaces';
26
+ import type {
27
+ BrandFields,
28
+ BrandConditions,
29
+ BrandOrders,
30
+ } from './endpoints/brand/brand-field.types';
31
+ import type { Brand, BrandItem } from './endpoints/brand/brand.interfaces';
32
+ import type {
33
+ CartCustomer,
34
+ CartResponse,
35
+ DeleteCartRequest,
36
+ UpsertCartRequest,
37
+ UpsertCartItem,
38
+ AddressToCartRequest,
39
+ AddressesToCartRequest,
40
+ AddressToCartResponse,
41
+ BuyCartRequest,
42
+ BuyCartResponse,
43
+ } from './endpoints/cart/cart.interfaces';
44
+ import type {
45
+ AddressToCartType,
46
+ CartErrorCode,
47
+ } from './endpoints/cart/cart.types';
48
+ import type { CountryResponse } from './endpoints/common/common.interfaces';
49
+ import type { ContextType } from './endpoints/context/context.types';
50
+ import type {
51
+ CountryAlpha2,
52
+ CountryAlpha3,
53
+ CountryName,
54
+ CountryPhoneCode,
55
+ StateCode,
56
+ StateName,
57
+ } from './endpoints/country/country.types';
58
+ import type {
59
+ AddCouponRequest,
60
+ Coupon,
61
+ } from './endpoints/coupon/coupon.interfaces';
62
+ import type { CustomerErrorCode } from './endpoints/customer/customer-erros';
63
+ import type {
64
+ CustomerConditionFields,
65
+ CustomerFields,
66
+ CustomerSortFields,
67
+ CustomerOrderGroupConditionFields,
68
+ CustomerOrderGroupFields,
69
+ CustomerOrderGroupSortFields,
70
+ CustomerOrderItemHistoryConditionFields,
71
+ CustomerOrderItemHistorySortFields,
72
+ CustomerHistoryConditionFields,
73
+ CustomerHistorySortFields,
74
+ CustomerWishlistConditionFields,
75
+ CustomerWishlistSortFields
76
+ } from './endpoints/customer/customer-obsearch';
77
+ import type {
78
+ UpdateCustomer,
79
+ ChangePasswordCustomerAuthenticated,
80
+ ChangePasswordCustomerByCode,
81
+ CheckCustomer,
82
+ CheckCustomerResponse,
83
+ PasswordRecoveryCustomer,
84
+ CustomerResponse,
85
+ SigninCustomerByDocument,
86
+ SigninCustomerByEmail,
87
+ SignupCustomer,
88
+ ResponseSigninCustomer,
89
+ CustomerDocument,
90
+ UpsertCustomerAddressRequest,
91
+ CustomerAddressResponse,
92
+ CustomerAddressesResponse,
93
+ CustomerOrderPayment,
94
+ CustomerOrderResponse,
95
+ CustomerOrderItem,
96
+ CustomerOrderItemHistoriesResponse,
97
+ CustomerOrderItemHistoryResponse,
98
+ CustomerOrdersResponse,
99
+ CustomerHistory,
100
+ CustomerHistoryResponse,
101
+ AddCustomerToNewsletterRequest,
102
+ AddCustomerToNewsletterResponse,
103
+ UpdateCustomerDocument,
104
+ UpdateCustomerDocumentResponse,
105
+ CustomerDetailWishlistResponse,
106
+ CustomerListWishlistResponse,
107
+ AddProductToWishlistRequest,
108
+ AfterPointSystem,
109
+ Wishlist
110
+ } from './endpoints/customer/customer.interfaces';
111
+ import type {
112
+ CustomerGender,
113
+ CustomerOrigin,
114
+ } from './endpoints/customer/customer.types';
115
+ import type { Descriptions } from './endpoints/description/description.interfaces';
116
+ import type { Discount } from './endpoints/discounts/discounts.interfaces';
117
+ import type { DiscountType } from './endpoints/discounts/discounts.types';
118
+ import type { TypeFilter } from './endpoints/filters/filter.type';
119
+ import type {
120
+ Filter,
121
+ PriceFilter,
122
+ FilterValue,
123
+ } from './endpoints/filters/filters.interfaces';
124
+ import type {
125
+ InterestType,
126
+ RequestInterest,
127
+ ResponseInterest,
128
+ } from './endpoints/interest/interest.interfaces';
129
+ import type { Media } from './endpoints/media/media.interfaces';
130
+ import type { Target, Type } from './endpoints/menu/menu.enums';
131
+ import type { Menu, MenuItem } from './endpoints/menu/menu.interfaces';
132
+ import type { Order, OrderItem } from './endpoints/order/order.interfaces';
133
+ import type { Page } from './endpoints/page/page.interfaces';
134
+ import type { Pagination } from './endpoints/pagination/pagination.interfaces';
135
+ import type {
136
+ PairOffer,
137
+ PairOfferResponse,
138
+ } from './endpoints/pair-offer/pair-offer.interfaces';
139
+ import type {
140
+ Payment,
141
+ PaymentConfiguration,
142
+ PaymentOption,
143
+ PaymentResponse,
144
+ PaymentType,
145
+ CardFlags,
146
+ PaymentConditionsRequest,
147
+ PaymentConditionsResponse,
148
+ } from './endpoints/payment/payment.interfaces';
149
+ import type {
150
+ ConfigurationCode,
151
+ PaymentCode,
152
+ } from './endpoints/payment/payment.types';
153
+ import type {
154
+ ProductFields,
155
+ ProductConditionFields,
156
+ ProductSortFields,
157
+ } from './endpoints/product/product-obsearch.types';
158
+ import type {
159
+ Product,
160
+ ProductCategory,
161
+ ProductDimension,
162
+ ProductFlags,
163
+ ProductPrice,
164
+ Stock,
165
+ ProductInstallment,
166
+ ProductRestriction
167
+ } from './endpoints/product/product.interfaces';
168
+ import type {
169
+ ProductStatus,
170
+ ProductType,
171
+ } from './endpoints/product/product.types';
172
+ import type {
173
+ ProductCommentConditionFields,
174
+ ProductCommentFields,
175
+ ProductCommentSortFields,
176
+ } from './endpoints/product-comment/product-comment-obsearch.types';
177
+ import type {
178
+ ProductComment,
179
+ CreateProductComment,
180
+ ProductCommentsResponse,
181
+ } from './endpoints/product-comment/product-comment.interfaces';
182
+ import type { Redirect } from './endpoints/redirect/redirect.interfaces';
183
+ import type {
184
+ ReviewConditionFields,
185
+ ReviewSortFields,
186
+ ReviewFields,
187
+ } from './endpoints/review/review-obsearch.types';
188
+ import type {
189
+ ProductReviewRequest,
190
+ ProductReviewResponse,
191
+ ProductReview,
192
+ CreateProductReviewResponse,
193
+ CreateProductReviewMediaResponse,
194
+ } from './endpoints/review/review.interfaces';
195
+ import type { Seal, SealSetting } from './endpoints/seal/seal.interfaces';
196
+ import type { Seals } from './endpoints/seal/seal.types';
197
+ import type { Search } from './endpoints/search/search.interfaces';
198
+ import type { Seo } from './endpoints/seo/seo.interfaces';
199
+ import type {
200
+ ShippingOption,
201
+ QuoteGroupProduct,
202
+ ShippingOptionProduct,
203
+ QuoteGroupProductItem,
204
+ ShipmentQuoteCartRequest,
205
+ ShipmentQuoteProductRequest,
206
+ ShipmentQuoteProductResponse,
207
+ SelectShipimentRequest,
208
+ PickupPoint
209
+ } from './endpoints/shipment/shipment.interfaces';
210
+ import type { TitleType } from './endpoints/showcase/showcase.enums';
211
+ import type { Showcase } from './endpoints/showcase/showcase.interfaces';
212
+ import type { SimpleProduct } from './endpoints/simple-product/simple-product.interfaces';
213
+ import type { Storage } from './endpoints/storage/storage.interfaces';
214
+ import type {
215
+ UrlBrand,
216
+ UrlListing,
217
+ UrlMenu,
218
+ UrlPage,
219
+ UrlProduct,
220
+ } from './endpoints/url/url.interfaces';
221
+ import type {
222
+ WalletConditionFields,
223
+ WalletSortFields,
224
+ } from './endpoints/wallet/wallet-obsearch';
225
+ import type {
226
+ WalletTransaction,
227
+ WalletTransactionResponse,
228
+ ClaimGiftCardRequest,
229
+ ClaimGiftCardResponse,
230
+ } from './endpoints/wallet/wallet.interfaces';
231
+ import type { ZipcodeResponse } from './endpoints/zipcode/zipcode.interfaces';
232
+
233
+ import type { TemplateResponse } from './endpoints/template/template.interfaces';
234
+
235
+ import type { UpsellResponse, Upsell } from './endpoints/upsell/upsell.interfaces';
236
+ import type { PriceRule } from './endpoints/price/price.interfaces';
237
+
238
+ import type { RedirectRequest, OauthType } from './endpoints/third-party/oauth.interfaces';
239
+
240
+ import type {
241
+ MFAOption,
242
+ RequestSendMFA,
243
+ RequestConfirmMFA,
244
+ MFAAPPSettings,
245
+ MFAEmailSettings,
246
+ MFAPhoneSettings,
247
+ RequestLoginMFA,
248
+ CustomerMFAErrorCode,
249
+ RequestMFASetup,
250
+ ResponseMFASetup
251
+ } from './endpoints/mfa/mfa.interfaces';
252
+
253
+ export type {
254
+ // Config da useApi
255
+ ApiResponse,
256
+ ApiStatus,
257
+ ApiMethod,
258
+ ApiError,
259
+ ApiErrorData,
260
+ ApiContext,
261
+ ApiParams,
262
+ ApiParamsCondition,
263
+ ApiParamsConditionGroup,
264
+ ApiParamsMeta,
265
+ ApiParamsOrder,
266
+
267
+ // Endpoints
268
+ TemplateResponse,
269
+
270
+ // TODO organizar por modulos
271
+ ContextType,
272
+ DiscountType,
273
+ Discount,
274
+
275
+ // Types
276
+ Target,
277
+ Type,
278
+ ProductStatus,
279
+ ProductType,
280
+ TitleType,
281
+
282
+ // Interfaces
283
+
284
+ // Atributos
285
+ Attribute,
286
+ AttributeValue,
287
+ Combination,
288
+ ValueList,
289
+ Variations,
290
+ CurrentAttribute,
291
+ WalletConditionFields,
292
+ WalletSortFields,
293
+ WalletTransaction,
294
+ WalletTransactionResponse,
295
+ ClaimGiftCardRequest,
296
+ ClaimGiftCardResponse,
297
+ RedirectRequest,
298
+ OauthType,
299
+
300
+ // banner
301
+ Banner,
302
+ Banners,
303
+ Seo,
304
+ Media,
305
+ Menu,
306
+ MenuItem,
307
+ Descriptions,
308
+ Showcase,
309
+
310
+ // Marcas
311
+ Brand,
312
+ BrandItem,
313
+ BrandFields,
314
+ BrandConditions,
315
+ BrandOrders,
316
+
317
+ // Pagination
318
+ Pagination,
319
+
320
+ // Selos
321
+ Seal,
322
+ SealSetting,
323
+ Seals,
324
+
325
+ // Shipment
326
+ ShippingOption,
327
+ QuoteGroupProduct,
328
+ ShippingOptionProduct,
329
+ QuoteGroupProductItem,
330
+ ShipmentQuoteCartRequest,
331
+ ShipmentQuoteProductRequest,
332
+ ShipmentQuoteProductResponse,
333
+ SelectShipimentRequest,
334
+ PickupPoint,
335
+
336
+ // Avise-me/Sobconsulta = Interests
337
+ InterestType,
338
+ RequestInterest,
339
+ ResponseInterest,
340
+
341
+ // Compre junto
342
+ PairOffer,
343
+ PairOfferResponse,
344
+
345
+ // Avaliaçoes
346
+ ProductReviewRequest,
347
+ CreateProductReviewResponse,
348
+ CreateProductReviewMediaResponse,
349
+ ProductReviewResponse,
350
+ ProductReview,
351
+ ReviewConditionFields,
352
+ ReviewSortFields,
353
+ ReviewFields,
354
+
355
+ // Filtros de listagem
356
+ TypeFilter,
357
+ Filter,
358
+ PriceFilter,
359
+ FilterValue,
360
+
361
+ // Institutional page
362
+ Page,
363
+
364
+ // Redirects
365
+ Redirect,
366
+
367
+ // Product
368
+ ProductFields,
369
+ ProductConditionFields,
370
+ ProductSortFields,
371
+ Product,
372
+ ProductCategory,
373
+ ProductDimension,
374
+ ProductFlags,
375
+ ProductPrice,
376
+ ProductInstallment,
377
+ ProductRestriction,
378
+ Stock,
379
+ SimpleProduct,
380
+
381
+ // Product comment
382
+ ProductComment,
383
+ CreateProductComment,
384
+ ProductCommentsResponse,
385
+ ProductCommentConditionFields,
386
+ ProductCommentFields,
387
+ ProductCommentSortFields,
388
+
389
+ // Request das páginas
390
+ UrlMenu,
391
+ UrlBrand,
392
+ UrlListing,
393
+ UrlPage,
394
+ UrlProduct,
395
+
396
+ // Busca de produto
397
+ Search,
398
+
399
+ // Cart
400
+ CartCustomer,
401
+ CartResponse,
402
+ DeleteCartRequest,
403
+ UpsertCartRequest,
404
+ UpsertCartItem,
405
+ AddressToCartRequest,
406
+ AddressesToCartRequest,
407
+ AddressToCartType,
408
+ CartErrorCode,
409
+ AddressToCartResponse,
410
+ BuyCartRequest,
411
+ BuyCartResponse,
412
+
413
+ // Payment
414
+ ConfigurationCode,
415
+ PaymentCode,
416
+ Payment,
417
+ PaymentConfiguration,
418
+ PaymentOption,
419
+ PaymentResponse,
420
+ PaymentType,
421
+ CardFlags,
422
+ PaymentConditionsRequest,
423
+ PaymentConditionsResponse,
424
+
425
+ // Customer
426
+ UpdateCustomer,
427
+ ChangePasswordCustomerAuthenticated,
428
+ ChangePasswordCustomerByCode,
429
+ CheckCustomer,
430
+ CheckCustomerResponse,
431
+ PasswordRecoveryCustomer,
432
+ CustomerResponse,
433
+ SigninCustomerByDocument,
434
+ SigninCustomerByEmail,
435
+ ResponseSigninCustomer,
436
+ CustomerDocument,
437
+ SignupCustomer,
438
+ CustomerGender,
439
+ CustomerOrigin,
440
+ CustomerConditionFields,
441
+ CustomerFields,
442
+ CustomerSortFields,
443
+ CustomerOrderGroupConditionFields,
444
+ CustomerOrderGroupFields,
445
+ CustomerOrderGroupSortFields,
446
+ CustomerOrderItemHistoryConditionFields,
447
+ CustomerOrderItemHistorySortFields,
448
+ CustomerHistoryConditionFields,
449
+ CustomerHistorySortFields,
450
+ CustomerWishlistConditionFields,
451
+ CustomerWishlistSortFields,
452
+ CustomerErrorCode,
453
+ UpsertCustomerAddressRequest,
454
+ CustomerAddressResponse,
455
+ CustomerAddressesResponse,
456
+ CustomerOrderPayment,
457
+ CustomerOrderResponse,
458
+ CustomerOrderItem,
459
+ CustomerOrderItemHistoriesResponse,
460
+ CustomerOrderItemHistoryResponse,
461
+ CustomerOrdersResponse,
462
+ CustomerHistory,
463
+ CustomerHistoryResponse,
464
+ AddCustomerToNewsletterRequest,
465
+ AddCustomerToNewsletterResponse,
466
+ UpdateCustomerDocument,
467
+ UpdateCustomerDocumentResponse,
468
+ CustomerDetailWishlistResponse,
469
+ CustomerListWishlistResponse,
470
+ AddProductToWishlistRequest,
471
+ AfterPointSystem,
472
+ Wishlist,
473
+ MFAOption,
474
+ RequestSendMFA,
475
+ RequestConfirmMFA,
476
+ MFAAPPSettings,
477
+ MFAEmailSettings,
478
+ MFAPhoneSettings,
479
+ RequestLoginMFA,
480
+ CustomerMFAErrorCode,
481
+ RequestMFASetup,
482
+ ResponseMFASetup,
483
+
484
+ // Order
485
+ Order,
486
+ OrderItem,
487
+ Storage,
488
+
489
+ // COUNTRY TYPES
490
+ CountryAlpha2,
491
+ CountryAlpha3,
492
+ CountryName,
493
+ CountryPhoneCode,
494
+ StateCode,
495
+ StateName,
496
+ ZipcodeResponse,
497
+ CountryResponse,
498
+ AddCouponRequest,
499
+ Coupon,
500
+
501
+ UpsellResponse,
502
+ Upsell,
503
+ PriceRule
504
+ };