@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,57 +1,57 @@
1
- import type { Pagination } from '../pagination/pagination.interfaces';
2
-
3
- export interface WalletTransactionResponse {
4
- registers: Array<WalletTransaction>;
5
- pagination: Pagination;
6
- }
7
-
8
- export interface WalletTransaction {
9
- id: number;
10
- voucher: null | {
11
- createdAt: string;
12
- customer: null;
13
- customerId: number;
14
- hash: string;
15
- id: number;
16
- observation: null | string;
17
- userEmail: string;
18
- userId: number;
19
- userName: string;
20
- value: number;
21
- };
22
- giftCard: null | {
23
- activatedAt: string;
24
- createdAt: string;
25
- code: string;
26
- id: number;
27
- orderItemId: null;
28
- productId: number;
29
- userEmail: string;
30
- userId: number;
31
- userName: string;
32
- value: number;
33
- };
34
- order: {
35
- id: number;
36
- orderGroupId: number;
37
- productStorageId: number;
38
- orderStatusId: number;
39
- };
40
- action: 'remove' | 'action';
41
- value: number;
42
- createdAt: string;
43
- }
44
-
45
- export interface ClaimGiftCardRequest {
46
- codes: Array<string>;
47
- }
48
-
49
- export type ClaimGiftCardResponse = Array<{
50
- code: string;
51
- customerId: number;
52
- error:
53
- | 'UAPPI_STORE_GIFT_CARD_NOT_FOUND'
54
- | 'UAPPI_STORE_GIFT_CARD_ALREADY_LINKED'
55
- | null;
56
- giftCardId: number | null;
57
- }>;
1
+ import type { Pagination } from '../pagination/pagination.interfaces';
2
+
3
+ export interface WalletTransactionResponse {
4
+ registers: Array<WalletTransaction>;
5
+ pagination: Pagination;
6
+ }
7
+
8
+ export interface WalletTransaction {
9
+ id: number;
10
+ voucher: null | {
11
+ createdAt: string;
12
+ customer: null;
13
+ customerId: number;
14
+ hash: string;
15
+ id: number;
16
+ observation: null | string;
17
+ userEmail: string;
18
+ userId: number;
19
+ userName: string;
20
+ value: number;
21
+ };
22
+ giftCard: null | {
23
+ activatedAt: string;
24
+ createdAt: string;
25
+ code: string;
26
+ id: number;
27
+ orderItemId: null;
28
+ productId: number;
29
+ userEmail: string;
30
+ userId: number;
31
+ userName: string;
32
+ value: number;
33
+ };
34
+ order: {
35
+ id: number;
36
+ orderGroupId: number;
37
+ productStorageId: number;
38
+ orderStatusId: number;
39
+ };
40
+ action: 'remove' | 'action';
41
+ value: number;
42
+ createdAt: string;
43
+ }
44
+
45
+ export interface ClaimGiftCardRequest {
46
+ codes: Array<string>;
47
+ }
48
+
49
+ export type ClaimGiftCardResponse = Array<{
50
+ code: string;
51
+ customerId: number;
52
+ error:
53
+ | 'UAPPI_STORE_GIFT_CARD_NOT_FOUND'
54
+ | 'UAPPI_STORE_GIFT_CARD_ALREADY_LINKED'
55
+ | null;
56
+ giftCardId: number | null;
57
+ }>;
@@ -1,23 +1,23 @@
1
- import type {
2
- CountryAlpha2,
3
- CountryAlpha3,
4
- CountryName,
5
- CountryPhoneCode,
6
- StateCode,
7
- } from '../country/country.types';
8
-
9
- export interface ZipcodeResponse {
10
- zipCode: string;
11
- publicPlace: string;
12
- complement: string;
13
- district: string;
14
- city: string;
15
- stateCode: StateCode;
16
- latitude: number;
17
- longitude: number;
18
- countryName: CountryName;
19
- countryCodeAlpha2: CountryAlpha2;
20
- countryCodeAlpha3: CountryAlpha3;
21
- ddi: CountryPhoneCode;
22
- currency: string;
23
- }
1
+ import type {
2
+ CountryAlpha2,
3
+ CountryAlpha3,
4
+ CountryName,
5
+ CountryPhoneCode,
6
+ StateCode,
7
+ } from '../country/country.types';
8
+
9
+ export interface ZipcodeResponse {
10
+ zipCode: string;
11
+ publicPlace: string;
12
+ complement: string;
13
+ district: string;
14
+ city: string;
15
+ stateCode: StateCode;
16
+ latitude: number;
17
+ longitude: number;
18
+ countryName: CountryName;
19
+ countryCodeAlpha2: CountryAlpha2;
20
+ countryCodeAlpha3: CountryAlpha3;
21
+ ddi: CountryPhoneCode;
22
+ currency: string;
23
+ }