@artisan-commerce/analytics-rn 0.3.0-canary.159 → 0.3.0-canary.160
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/dist/bundle.d.ts +2 -2
- package/dist/bundle.mjs +3 -2
- package/package.json +6 -6
package/dist/bundle.d.ts
CHANGED
|
@@ -280,7 +280,7 @@ interface EcommerceCommonParams {
|
|
|
280
280
|
unique_items?: string;
|
|
281
281
|
transaction_id?: string;
|
|
282
282
|
payment_type?: string;
|
|
283
|
-
coupon?:
|
|
283
|
+
coupon?: string;
|
|
284
284
|
currency?: CurrencyCodes;
|
|
285
285
|
}
|
|
286
286
|
interface UserProperties {
|
|
@@ -1532,7 +1532,7 @@ interface AddProductToCartCommonParams {
|
|
|
1532
1532
|
/** The product that was added to the cart */
|
|
1533
1533
|
product: CartProduct;
|
|
1534
1534
|
/** Shopping cart */
|
|
1535
|
-
cart
|
|
1535
|
+
cart?: ShoppingCart;
|
|
1536
1536
|
/** The store ID where the user is buying the product */
|
|
1537
1537
|
storeId: Store["storeId"];
|
|
1538
1538
|
/** The store name where the user is buying the product */
|
package/dist/bundle.mjs
CHANGED
|
@@ -51,7 +51,7 @@ const _State = class {
|
|
|
51
51
|
let State$1 = _State;
|
|
52
52
|
State$1._instance = null;
|
|
53
53
|
|
|
54
|
-
var version = "0.3.0-canary.
|
|
54
|
+
var version = "0.3.0-canary.160";
|
|
55
55
|
var packageJSON = {
|
|
56
56
|
version: version};
|
|
57
57
|
|
|
@@ -11971,7 +11971,7 @@ const addProductToCart$2 = (provider, params) => {
|
|
|
11971
11971
|
const { userId: providerUserId, currency: providerCurrency } = provider;
|
|
11972
11972
|
const _a = params, { userId, currency, priceCategory } = _a, params2 = __objRest$O(_a, ["userId", "currency", "priceCategory"]);
|
|
11973
11973
|
const _b = params2, { product, items: paramsItems, cart } = _b, rest = __objRest$O(_b, ["product", "items", "cart"]);
|
|
11974
|
-
const { id: cartId, name: cartName } = cart;
|
|
11974
|
+
const { id: cartId, name: cartName } = cart != null ? cart : {};
|
|
11975
11975
|
const selectedUserId = userId != null ? userId : providerUserId;
|
|
11976
11976
|
const selectedCurrency = currency != null ? currency : providerCurrency;
|
|
11977
11977
|
const items = toItems("addProductToCart", params);
|
|
@@ -12095,6 +12095,7 @@ const addProductToCart = (provider, params) => {
|
|
|
12095
12095
|
const { currency: providerCurrency } = provider;
|
|
12096
12096
|
const _a = params, { product, currency, contentType, priceCategory } = _a, rest = __objRest$M(_a, ["product", "currency", "contentType", "priceCategory"]);
|
|
12097
12097
|
delete rest.userId;
|
|
12098
|
+
delete rest.cart;
|
|
12098
12099
|
const selectedCurrency = currency != null ? currency : providerCurrency;
|
|
12099
12100
|
const { productId, name, amount } = product;
|
|
12100
12101
|
const { priceCategory: productPriceCategory } = product;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@artisan-commerce/analytics-rn",
|
|
3
3
|
"description": "Artisn commerce analytics react native library",
|
|
4
|
-
"version": "0.3.0-canary.
|
|
4
|
+
"version": "0.3.0-canary.160",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/bundle.mjs",
|
|
7
7
|
"module": "./dist/bundle.mjs",
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"snake-case": "^3.0.4"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@artisan-commerce/products": "0.9.0-canary.
|
|
40
|
-
"@artisan-commerce/shopping-cart-core": "0.12.0-canary.
|
|
41
|
-
"@artisan-commerce/state": "0.3.0-canary.
|
|
42
|
-
"@artisan-commerce/types": "0.14.0-canary.
|
|
39
|
+
"@artisan-commerce/products": "0.9.0-canary.106",
|
|
40
|
+
"@artisan-commerce/shopping-cart-core": "0.12.0-canary.144",
|
|
41
|
+
"@artisan-commerce/state": "0.3.0-canary.55",
|
|
42
|
+
"@artisan-commerce/types": "0.14.0-canary.83",
|
|
43
43
|
"@babel/core": "^7.13.15",
|
|
44
44
|
"@babel/preset-env": "^7.10.4",
|
|
45
45
|
"@babel/preset-react": "^7.10.4",
|
|
@@ -84,5 +84,5 @@
|
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
},
|
|
87
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "ac938dcd0502eb10c984f61a3fa600a2a773f60d"
|
|
88
88
|
}
|