@uappi/public-sdk 1.1.0 → 1.1.2
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.
- package/components/SocialAuth/index.ts +2 -0
- package/components/index.ts +3 -0
- package/main.ts +2 -16
- package/modules/Tracking/events/actions/addPaymentInfo.ts +1 -1
- package/modules/Tracking/events/actions/addShippingInfo.ts +1 -1
- package/modules/Tracking/events/actions/addToCart.ts +1 -1
- package/modules/Tracking/events/actions/beginCheckout.ts +1 -1
- package/modules/Tracking/events/actions/customerProfile.ts +1 -1
- package/modules/Tracking/events/actions/purchase.ts +1 -1
- package/modules/Tracking/events/actions/removeFromCart.ts +1 -1
- package/modules/Tracking/events/actions/selectItem.ts +1 -1
- package/modules/Tracking/events/actions/selectPromotion.ts +1 -1
- package/modules/Tracking/events/actions/upsertToCart.ts +1 -1
- package/modules/Tracking/events/views/viewCart.ts +1 -1
- package/modules/Tracking/events/views/viewItem.ts +1 -1
- package/modules/Tracking/events/views/viewItemList.ts +1 -1
- package/modules/Tracking/events/views/viewPromotion.ts +1 -1
- package/modules/Tracking/types/actions/customer-profile.interfaces.ts +1 -1
- package/modules/index.ts +2 -0
- package/package.json +1 -1
- /package/{modules → components}/SocialAuth/FacebookAuth/FacebookAuth.vue +0 -0
- /package/{modules → components}/SocialAuth/FacebookAuth/img/facebook-icon.svg +0 -0
- /package/{modules → components}/SocialAuth/FacebookAuth/styles.scoped.css +0 -0
- /package/{modules → components}/SocialAuth/FacebookAuth/types.ts +0 -0
- /package/{modules → components}/SocialAuth/GoogleAuth/GoogleAuth.vue +0 -0
- /package/{modules → components}/SocialAuth/GoogleAuth/img/google-icon.svg +0 -0
- /package/{modules → components}/SocialAuth/GoogleAuth/styles.scoped.css +0 -0
- /package/{modules → components}/SocialAuth/GoogleAuth/types.ts +0 -0
package/main.ts
CHANGED
|
@@ -1,16 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { ExpandTransition } from './components/Animations';
|
|
5
|
-
import { ColorTheme } from './components/ColorTheme';
|
|
6
|
-
|
|
7
|
-
const components = {
|
|
8
|
-
ExpandTransition,
|
|
9
|
-
ColorTheme
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export {
|
|
13
|
-
Api,
|
|
14
|
-
Tracking,
|
|
15
|
-
components
|
|
16
|
-
};
|
|
1
|
+
export * from './modules';
|
|
2
|
+
export * from './components'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getAddedCartItems, getVariant, totalValue } from '../../utils/cart';
|
|
2
2
|
import { pushDatalayer } from '../../utils/pushDatalayer';
|
|
3
3
|
|
|
4
|
-
import type { CartResponse } from '
|
|
4
|
+
import type { CartResponse } from '../../../Api/types';
|
|
5
5
|
|
|
6
6
|
export function addPaymentInfoAction(
|
|
7
7
|
paymentMethod: string,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getAddedCartItems, getVariant, totalValue } from '../../utils/cart';
|
|
2
2
|
import { pushDatalayer } from '../../utils/pushDatalayer';
|
|
3
3
|
|
|
4
|
-
import type { CartResponse } from '
|
|
4
|
+
import type { CartResponse } from '../../../Api/types';
|
|
5
5
|
|
|
6
6
|
export function addShippingInfoAction(cartPayload: CartResponse) {
|
|
7
7
|
pushDatalayer({
|
|
@@ -2,7 +2,7 @@ import { getAddedCartItems, getVariant, totalValue } from '../../utils/cart';
|
|
|
2
2
|
import { pushDatalayer } from '../../utils/pushDatalayer';
|
|
3
3
|
|
|
4
4
|
import type { UpsertTrackingCartRequest } from '../../types';
|
|
5
|
-
import type { CartResponse } from '
|
|
5
|
+
import type { CartResponse } from '../../../Api/types';
|
|
6
6
|
|
|
7
7
|
export function addToCartAction(
|
|
8
8
|
upsertPayload: UpsertTrackingCartRequest,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getAddedCartItems, getVariant, totalValue } from '../../utils/cart';
|
|
2
2
|
import { pushDatalayer } from '../../utils/pushDatalayer';
|
|
3
3
|
|
|
4
|
-
import type { CartResponse } from '
|
|
4
|
+
import type { CartResponse } from '../../../Api/types';
|
|
5
5
|
|
|
6
6
|
export function beginCheckoutAction(cartPayload: CartResponse) {
|
|
7
7
|
pushDatalayer({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { pushDatalayer } from '../../utils/pushDatalayer';
|
|
2
2
|
|
|
3
|
-
import type { CustomerResponse } from '
|
|
3
|
+
import type { CustomerResponse } from '../../../Api/types';
|
|
4
4
|
|
|
5
5
|
export function customerProfileAction(payload?: CustomerResponse) {
|
|
6
6
|
if (!payload) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getAddedCartItems, getVariant, totalValue } from '../../utils/cart';
|
|
2
2
|
import { pushDatalayer } from '../../utils/pushDatalayer';
|
|
3
3
|
|
|
4
|
-
import type { CartResponse } from '
|
|
4
|
+
import type { CartResponse } from '../../../Api/types';
|
|
5
5
|
|
|
6
6
|
export function purchaseAction(
|
|
7
7
|
paymentMethod: string,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getAddedCartItems, getVariant, totalValue } from '../../utils/cart';
|
|
2
2
|
import { pushDatalayer } from '../../utils/pushDatalayer';
|
|
3
3
|
|
|
4
|
-
import type { CartResponse, DeleteCartRequest } from '
|
|
4
|
+
import type { CartResponse, DeleteCartRequest } from '../../../Api/types';
|
|
5
5
|
|
|
6
6
|
export function removeFromCartAction(
|
|
7
7
|
deletePayload: DeleteCartRequest,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { pushDatalayer } from '../../utils/pushDatalayer';
|
|
2
2
|
|
|
3
3
|
import type { BannerItem } from '../../types';
|
|
4
|
-
import type { Banner } from '
|
|
4
|
+
import type { Banner } from '../../../Api/types';
|
|
5
5
|
|
|
6
6
|
export function selectPromotionAction<AdditionalParameters>(
|
|
7
7
|
banner: Banner<AdditionalParameters>,
|
|
@@ -2,7 +2,7 @@ import { getAddedCartItems, getVariant, totalValue } from '../../utils/cart';
|
|
|
2
2
|
import { pushDatalayer } from '../../utils/pushDatalayer';
|
|
3
3
|
|
|
4
4
|
import type { UpsertTrackingCartRequest } from '../../types';
|
|
5
|
-
import type { CartResponse } from '
|
|
5
|
+
import type { CartResponse } from '../../../Api/types';
|
|
6
6
|
|
|
7
7
|
export function upsertToCartAction(
|
|
8
8
|
upsertPayload: UpsertTrackingCartRequest,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getAddedCartItems, getVariant, totalValue } from '../../utils/cart';
|
|
2
2
|
import { pushDatalayer } from '../../utils/pushDatalayer';
|
|
3
3
|
|
|
4
|
-
import type { CartResponse } from '
|
|
4
|
+
import type { CartResponse } from '../../../Api/types';
|
|
5
5
|
|
|
6
6
|
export function viewCart(cartPayload: CartResponse) {
|
|
7
7
|
pushDatalayer({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getVariant } from '../../utils/cart';
|
|
2
2
|
import { pushDatalayer } from '../../utils/pushDatalayer';
|
|
3
3
|
|
|
4
|
-
import type { Product } from '
|
|
4
|
+
import type { Product } from '../../../Api/types';
|
|
5
5
|
|
|
6
6
|
export function viewItem(product: Product) {
|
|
7
7
|
pushDatalayer({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { pushDatalayer } from '../../utils/pushDatalayer';
|
|
2
2
|
|
|
3
3
|
import type { ViewPromotion } from '../../types';
|
|
4
|
-
import type { Banners } from '
|
|
4
|
+
import type { Banners } from '../../../Api/types';
|
|
5
5
|
|
|
6
6
|
export function viewPromotion<AdditionalParameters>(
|
|
7
7
|
bannerGroups: Array<Banners<AdditionalParameters>>,
|
package/modules/index.ts
ADDED
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|