New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@faststore/sdk

Package Overview
Dependencies
Maintainers
13
Versions
371
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@faststore/sdk - npm Package Compare versions

Comparing version 1.4.13 to 1.4.14

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

## 1.4.14 (2022-01-07)
### Features
* add item generics to analytics types for easy customization ([#1101](https://github.com/vtex/faststore/issues/1101)) ([51e9d96](https://github.com/vtex/faststore/commit/51e9d96b82062113a96a95159963ff85a22086fc))
## 1.4.13 (2022-01-07)

@@ -8,0 +19,0 @@

8

dist/analytics/events/add_payment_info.d.ts
import type { CurrencyCode, Item } from './common';
export interface AddPaymentInfoParams {
export interface AddPaymentInfoParams<T extends Item = Item> {
currency?: CurrencyCode;

@@ -7,7 +7,7 @@ value?: number;

payment_type?: string;
items?: Item[];
items?: T[];
}
export interface AddPaymentInfoEvent {
export interface AddPaymentInfoEvent<T extends Item = Item> {
name: 'add_payment_info';
params: AddPaymentInfoParams;
params: AddPaymentInfoParams<T>;
}
import type { CurrencyCode, Item } from './common';
export interface AddShippingInfoParams {
export interface AddShippingInfoParams<T extends Item = Item> {
currency?: CurrencyCode;

@@ -7,7 +7,7 @@ value?: number;

shipping_tier?: string;
items?: Item[];
items?: T[];
}
export interface AddShippingInfoEvent {
export interface AddShippingInfoEvent<T extends Item = Item> {
name: 'add_shipping_info';
params: AddShippingInfoParams;
params: AddShippingInfoParams<T>;
}
import type { CurrencyCode, Item } from './common';
export interface AddToCartParams {
export interface AddToCartParams<T extends Item = Item> {
currency?: CurrencyCode;
value?: number;
items?: Item[];
items?: T[];
}
export interface AddToCartEvent {
export interface AddToCartEvent<T extends Item = Item> {
name: 'add_to_cart';
params: AddToCartParams;
params: AddToCartParams<T>;
}
import type { CurrencyCode, Item } from './common';
export interface AddToWishlistParams {
export interface AddToWishlistParams<T extends Item = Item> {
currency?: CurrencyCode;
value?: number;
items?: Item[];
items?: T[];
}
export interface AddToWishlistEvent {
export interface AddToWishlistEvent<T extends Item = Item> {
name: 'add_to_wishlist';
params: AddToWishlistParams;
params: AddToWishlistParams<T>;
}
import type { CurrencyCode, Item } from './common';
export interface BeginCheckoutParams {
export interface BeginCheckoutParams<T extends Item = Item> {
currency?: CurrencyCode;
value?: number;
coupon?: string;
items?: Item[];
items?: T[];
}
export interface BeginCheckoutEvent {
export interface BeginCheckoutEvent<T extends Item = Item> {
name: 'begin_checkout';
params: BeginCheckoutParams;
params: BeginCheckoutParams<T>;
}
import type { CurrencyCode, Item } from './common';
export interface PurchaseParams {
export interface PurchaseParams<T extends Item = Item> {
currency?: CurrencyCode;

@@ -10,7 +10,7 @@ transaction_id?: string;

tax?: number;
items?: Item[];
items?: T[];
}
export interface PurchaseEvent {
export interface PurchaseEvent<T extends Item = Item> {
name: 'purchase';
params: PurchaseParams;
params: PurchaseParams<T>;
}
import type { CurrencyCode, Item } from './common';
export interface RefundParams {
export interface RefundParams<T extends Item = Item> {
currency?: CurrencyCode;

@@ -10,7 +10,7 @@ transaction_id?: string;

tax?: number;
items?: Item[];
items?: T[];
}
export interface RefundEvent {
export interface RefundEvent<T extends Item = Item> {
name: 'refund';
params: RefundParams;
params: RefundParams<T>;
}
import type { CurrencyCode, Item } from './common';
export interface RemoveFromCartParams {
export interface RemoveFromCartParams<T extends Item = Item> {
currency?: CurrencyCode;
value?: number;
items?: Item[];
items?: T[];
}
export interface RemoveFromCartEvent {
export interface RemoveFromCartEvent<T extends Item = Item> {
name: 'remove_from_cart';
params: RemoveFromCartParams;
params: RemoveFromCartParams<T>;
}
import type { Item } from './common';
export interface SelectItemParams {
export interface SelectItemParams<T extends Item = Item> {
item_list_id?: string;
item_list_name?: string;
items?: Item[];
items?: T[];
}
export interface SelectItemEvent {
export interface SelectItemEvent<T extends Item = Item> {
name: 'select_item';
params: SelectItemParams;
params: SelectItemParams<T>;
}
import type { PromotionItem, PromotionParams } from './common';
export interface SelectPromotionItems {
items?: PromotionItem[];
export interface SelectPromotionItems<T extends PromotionItem = PromotionItem> {
items?: T[];
}
export declare type SelectPromotionParams = PromotionParams & SelectPromotionItems;
export interface SelectPromotionEvent {
export declare type SelectPromotionParams<T extends PromotionItem = PromotionItem> = PromotionParams & SelectPromotionItems<T>;
export interface SelectPromotionEvent<T extends PromotionItem = PromotionItem> {
name: 'select_promotion';
params: SelectPromotionParams;
params: SelectPromotionParams<T>;
}
import type { CurrencyCode, Item } from './common';
export interface ViewCartParams {
export interface ViewCartParams<T extends Item = Item> {
currency?: CurrencyCode;
value?: number;
items?: Item[];
items?: T[];
}
export interface ViewCartEvent {
export interface ViewCartEvent<T extends Item = Item> {
name: 'view_cart';
params: ViewCartParams;
params: ViewCartParams<T>;
}
import type { Item } from './common';
export interface ViewItemListParams {
export interface ViewItemListParams<T extends Item = Item> {
item_list_id?: string;
item_list_name?: string;
items?: Item[];
items?: T[];
}
export interface ViewItemListEvent {
export interface ViewItemListEvent<T extends Item = Item> {
name: 'view_item_list';
params: ViewItemListParams;
params: ViewItemListParams<T>;
}
import type { CurrencyCode, Item } from './common';
export interface ViewItemParams {
export interface ViewItemParams<T extends Item = Item> {
currency?: CurrencyCode;
value?: number;
items?: Item[];
items?: T[];
}
export interface ViewItemEvent {
export interface ViewItemEvent<T extends Item = Item> {
name: 'view_item';
params: ViewItemParams;
params: ViewItemParams<T>;
}
import type { PromotionItem, PromotionParams } from './common';
export interface ViewPromotionItems {
items?: PromotionItem[];
export interface ViewPromotionItems<T extends PromotionItem = PromotionItem> {
items?: T[];
}
export declare type ViewPromotionParams = PromotionParams & ViewPromotionItems;
export interface ViewPromotionEvent {
export declare type ViewPromotionParams<T extends PromotionItem = PromotionItem> = PromotionParams & ViewPromotionItems<T>;
export interface ViewPromotionEvent<T extends PromotionItem = PromotionItem> {
name: 'view_promotion';
params: ViewPromotionParams;
params: ViewPromotionParams<T>;
}
{
"name": "@faststore/sdk",
"version": "1.4.13",
"version": "1.4.14",
"description": "Hooks for creating your next component library",

@@ -57,3 +57,3 @@ "license": "MIT",

},
"gitHead": "7fa44e9583d662c49b855f2097d00af2014a1851"
"gitHead": "c564e7176423f98a4de0165e9e622bc342e67c8d"
}
import type { CurrencyCode, Item } from './common'
export interface AddPaymentInfoParams {
export interface AddPaymentInfoParams<T extends Item = Item> {
currency?: CurrencyCode

@@ -8,8 +8,8 @@ value?: number

payment_type?: string
items?: Item[]
items?: T[]
}
export interface AddPaymentInfoEvent {
export interface AddPaymentInfoEvent<T extends Item = Item> {
name: 'add_payment_info'
params: AddPaymentInfoParams
params: AddPaymentInfoParams<T>
}
import type { CurrencyCode, Item } from './common'
export interface AddShippingInfoParams {
export interface AddShippingInfoParams<T extends Item = Item> {
currency?: CurrencyCode

@@ -8,8 +8,8 @@ value?: number

shipping_tier?: string
items?: Item[]
items?: T[]
}
export interface AddShippingInfoEvent {
export interface AddShippingInfoEvent<T extends Item = Item> {
name: 'add_shipping_info'
params: AddShippingInfoParams
params: AddShippingInfoParams<T>
}
import type { CurrencyCode, Item } from './common'
export interface AddToCartParams {
export interface AddToCartParams<T extends Item = Item> {
currency?: CurrencyCode
value?: number
items?: Item[]
items?: T[]
}
export interface AddToCartEvent {
export interface AddToCartEvent<T extends Item = Item> {
name: 'add_to_cart'
params: AddToCartParams
params: AddToCartParams<T>
}
import type { CurrencyCode, Item } from './common'
export interface AddToWishlistParams {
export interface AddToWishlistParams<T extends Item = Item> {
currency?: CurrencyCode
value?: number
items?: Item[]
items?: T[]
}
export interface AddToWishlistEvent {
export interface AddToWishlistEvent<T extends Item = Item> {
name: 'add_to_wishlist'
params: AddToWishlistParams
params: AddToWishlistParams<T>
}
import type { CurrencyCode, Item } from './common'
export interface BeginCheckoutParams {
export interface BeginCheckoutParams<T extends Item = Item> {
currency?: CurrencyCode
value?: number
coupon?: string
items?: Item[]
items?: T[]
}
export interface BeginCheckoutEvent {
export interface BeginCheckoutEvent<T extends Item = Item> {
name: 'begin_checkout'
params: BeginCheckoutParams
params: BeginCheckoutParams<T>
}
import type { CurrencyCode, Item } from './common'
export interface PurchaseParams {
export interface PurchaseParams<T extends Item = Item> {
currency?: CurrencyCode

@@ -11,8 +11,8 @@ transaction_id?: string

tax?: number
items?: Item[]
items?: T[]
}
export interface PurchaseEvent {
export interface PurchaseEvent<T extends Item = Item> {
name: 'purchase'
params: PurchaseParams
params: PurchaseParams<T>
}
import type { CurrencyCode, Item } from './common'
export interface RefundParams {
export interface RefundParams<T extends Item = Item> {
currency?: CurrencyCode

@@ -11,8 +11,8 @@ transaction_id?: string

tax?: number
items?: Item[]
items?: T[]
}
export interface RefundEvent {
export interface RefundEvent<T extends Item = Item> {
name: 'refund'
params: RefundParams
params: RefundParams<T>
}
import type { CurrencyCode, Item } from './common'
export interface RemoveFromCartParams {
export interface RemoveFromCartParams<T extends Item = Item> {
currency?: CurrencyCode
value?: number
items?: Item[]
items?: T[]
}
export interface RemoveFromCartEvent {
export interface RemoveFromCartEvent<T extends Item = Item> {
name: 'remove_from_cart'
params: RemoveFromCartParams
params: RemoveFromCartParams<T>
}
import type { Item } from './common'
export interface SelectItemParams {
export interface SelectItemParams<T extends Item = Item> {
item_list_id?: string
item_list_name?: string
items?: Item[]
items?: T[]
}
export interface SelectItemEvent {
export interface SelectItemEvent<T extends Item = Item> {
name: 'select_item'
params: SelectItemParams
params: SelectItemParams<T>
}
import type { PromotionItem, PromotionParams } from './common'
export interface SelectPromotionItems {
items?: PromotionItem[]
export interface SelectPromotionItems<T extends PromotionItem = PromotionItem> {
items?: T[]
}
export type SelectPromotionParams = PromotionParams & SelectPromotionItems
export type SelectPromotionParams<
T extends PromotionItem = PromotionItem
> = PromotionParams & SelectPromotionItems<T>
export interface SelectPromotionEvent {
export interface SelectPromotionEvent<T extends PromotionItem = PromotionItem> {
name: 'select_promotion'
params: SelectPromotionParams
params: SelectPromotionParams<T>
}
import type { CurrencyCode, Item } from './common'
export interface ViewCartParams {
export interface ViewCartParams<T extends Item = Item> {
currency?: CurrencyCode
value?: number
items?: Item[]
items?: T[]
}
export interface ViewCartEvent {
export interface ViewCartEvent<T extends Item = Item> {
name: 'view_cart'
params: ViewCartParams
params: ViewCartParams<T>
}
import type { Item } from './common'
export interface ViewItemListParams {
export interface ViewItemListParams<T extends Item = Item> {
item_list_id?: string
item_list_name?: string
items?: Item[]
items?: T[]
}
export interface ViewItemListEvent {
export interface ViewItemListEvent<T extends Item = Item> {
name: 'view_item_list'
params: ViewItemListParams
params: ViewItemListParams<T>
}
import type { CurrencyCode, Item } from './common'
export interface ViewItemParams {
export interface ViewItemParams<T extends Item = Item> {
currency?: CurrencyCode
value?: number
items?: Item[]
items?: T[]
}
export interface ViewItemEvent {
export interface ViewItemEvent<T extends Item = Item> {
name: 'view_item'
params: ViewItemParams
params: ViewItemParams<T>
}
import type { PromotionItem, PromotionParams } from './common'
export interface ViewPromotionItems {
items?: PromotionItem[]
export interface ViewPromotionItems<T extends PromotionItem = PromotionItem> {
items?: T[]
}
export type ViewPromotionParams = PromotionParams & ViewPromotionItems
export type ViewPromotionParams<
T extends PromotionItem = PromotionItem
> = PromotionParams & ViewPromotionItems<T>
export interface ViewPromotionEvent {
export interface ViewPromotionEvent<T extends PromotionItem = PromotionItem> {
name: 'view_promotion'
params: ViewPromotionParams
params: ViewPromotionParams<T>
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc