@uappi/public-sdk 1.2.9 → 1.3.0

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