@artisan-commerce/analytics-web 0.2.0-canary.32 → 0.2.0-canary.34
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/CHANGELOG.md +16 -0
- package/dist/bundle.cjs.js +2 -2
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.d.ts +25 -25
- package/dist/bundle.esm.js +2 -2
- package/dist/bundle.esm.js.map +1 -1
- package/dist/bundle.umd.js +2 -2
- package/dist/bundle.umd.js.map +1 -1
- package/package.json +4 -4
package/dist/bundle.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CurrencyCodes, Account, Vendor, Store, Catalogue, ArtisnPlatform, Product, ShoppingCart, CartProduct, PriceCategoryType, ShippingAddress, BillingData, Category } from '@artisan-commerce/types';
|
|
1
|
+
import { CurrencyCodes, Account, Vendor, Store, Catalogue, ArtisnPlatform, Product, ShoppingCart, CartProduct, PriceCategoryType, ShippingAddress, BillingData, Order, Category } from '@artisan-commerce/types';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Google Analytics Provider constructor configuration,
|
|
@@ -790,16 +790,16 @@ interface UpdateWorkflowParams$1 extends SegmentCommonEventParams, SegmentCustom
|
|
|
790
790
|
* Workflow types.
|
|
791
791
|
*
|
|
792
792
|
* @typedef Workflow
|
|
793
|
-
* @since 0.
|
|
793
|
+
* @since 0.1.0
|
|
794
794
|
*/
|
|
795
795
|
declare type Workflow = "Delivery" | "Pickup" | "Other";
|
|
796
796
|
/**
|
|
797
797
|
* PaymentType types
|
|
798
798
|
*
|
|
799
799
|
* @typedef PaymentType
|
|
800
|
-
* @since 0.
|
|
800
|
+
* @since 0.1.0
|
|
801
801
|
*/
|
|
802
|
-
declare type PaymentType = "
|
|
802
|
+
declare type PaymentType = "Cash" | "Card" | "Dataphone" | "Other";
|
|
803
803
|
|
|
804
804
|
/**
|
|
805
805
|
* updateWorkflow event interface.
|
|
@@ -2051,29 +2051,29 @@ interface PurchaseSuccessParams$1 extends SegmentCommonEventParams, SegmentCusto
|
|
|
2051
2051
|
* purchaseSuccess event interface
|
|
2052
2052
|
*
|
|
2053
2053
|
* @interface PurchaseSuccessCommonParams
|
|
2054
|
-
* @since 0.
|
|
2055
|
-
* @property {ShoppingCart} shoppingCart The order shopping cart
|
|
2056
|
-
* @property {PaymentType} selectedPaymentType The selected payment type (e.g. Cash, Credit, Debit)
|
|
2057
|
-
* @property {Workflow} fulfillmentType The workflow name (e.g. Delivery)
|
|
2058
|
-
* @property {string} cardType If paying with card the card provider (e.g. visa)
|
|
2059
|
-
* @property {number} shippingAddressId The selected shipping address identifier
|
|
2060
|
-
* @property {number} billingInfoId The selected billing info identifier
|
|
2061
|
-
* @property {string} orderId The order identifier
|
|
2054
|
+
* @since 0.1.0
|
|
2062
2055
|
*/
|
|
2063
2056
|
interface PurchaseSuccessCommonParams {
|
|
2057
|
+
/** The order shopping cart */
|
|
2064
2058
|
shoppingCart: ShoppingCart;
|
|
2059
|
+
/** The selected payment type (e.g. Cash, Card) */
|
|
2065
2060
|
selectedPaymentType: PaymentType;
|
|
2061
|
+
/** The workflow name (e.g. Delivery) */
|
|
2066
2062
|
fulfillmentType: Workflow;
|
|
2063
|
+
/** If paying with card the card provider (e.g. visa) */
|
|
2067
2064
|
cardType?: string;
|
|
2065
|
+
/** The selected shipping address identifier */
|
|
2068
2066
|
shippingAddressId?: ShippingAddress["id"];
|
|
2067
|
+
/** The selected billing info identifier */
|
|
2069
2068
|
billingInfoId?: BillingData["id"];
|
|
2070
|
-
|
|
2069
|
+
/** The order identifier */
|
|
2070
|
+
orderId: Order["id"];
|
|
2071
2071
|
}
|
|
2072
2072
|
/**
|
|
2073
2073
|
* purchaseSuccess event params.
|
|
2074
2074
|
*
|
|
2075
2075
|
* @typedef PurchaseSuccessParams
|
|
2076
|
-
* @since 0.
|
|
2076
|
+
* @since 0.1.0
|
|
2077
2077
|
*/
|
|
2078
2078
|
declare type PurchaseSuccessParams = PurchaseSuccessParams$3 & PurchaseSuccessParams$2 & PurchaseSuccessParams$1;
|
|
2079
2079
|
|
|
@@ -2119,31 +2119,31 @@ interface PurchaseFailParams$1 extends SegmentCommonEventParams, SegmentCustomEv
|
|
|
2119
2119
|
* purchaseFail event interface
|
|
2120
2120
|
*
|
|
2121
2121
|
* @interface PurchaseFailCommonParams
|
|
2122
|
-
* @since 0.
|
|
2123
|
-
* @property {ShoppingCart} shoppingCart The order shopping cart
|
|
2124
|
-
* @property {string} errorMessage Server error message
|
|
2125
|
-
* @property {number} statusCode Server response status code
|
|
2126
|
-
* @property {PaymentType} selectedPaymentType The selected payment type (e.g. Cash, Credit, Debit)
|
|
2127
|
-
* @property {Workflow} fulfillmentType The workflow name (e.g. Delivery)
|
|
2128
|
-
* @property {string} cardType If paying with card the card provider (e.g. visa)
|
|
2129
|
-
* @property {number} shippingAddressId The selected shipping address identifier
|
|
2130
|
-
* @property {number} billingInfoId The selected billing info identifier
|
|
2122
|
+
* @since 0.1.0
|
|
2131
2123
|
*/
|
|
2132
2124
|
interface PurchaseFailCommonParams {
|
|
2125
|
+
/** The order shopping cart */
|
|
2133
2126
|
shoppingCart: ShoppingCart;
|
|
2127
|
+
/** Server error message */
|
|
2134
2128
|
errorMessage: string;
|
|
2135
|
-
|
|
2129
|
+
/** Server response status code */
|
|
2130
|
+
statusCode?: number;
|
|
2131
|
+
/** The selected payment type (e.g. Cash, Card) */
|
|
2136
2132
|
selectedPaymentType: PaymentType;
|
|
2133
|
+
/** The workflow name (e.g. Delivery) */
|
|
2137
2134
|
fulfillmentType: Workflow;
|
|
2135
|
+
/** If paying with card the card provider (e.g. visa) */
|
|
2138
2136
|
cardType?: string;
|
|
2137
|
+
/** The selected shipping address identifier */
|
|
2139
2138
|
shippingAddressId?: ShippingAddress["id"];
|
|
2139
|
+
/** The selected billing info identifier */
|
|
2140
2140
|
billingInfoId?: BillingData["id"];
|
|
2141
2141
|
}
|
|
2142
2142
|
/**
|
|
2143
2143
|
* purchaseFail event params.
|
|
2144
2144
|
*
|
|
2145
2145
|
* @typedef PurchaseFailParams
|
|
2146
|
-
* @since 0.
|
|
2146
|
+
* @since 0.1.0
|
|
2147
2147
|
*/
|
|
2148
2148
|
declare type PurchaseFailParams = PurchaseFailParams$3 & PurchaseFailParams$2 & PurchaseFailParams$1;
|
|
2149
2149
|
|
package/dist/bundle.esm.js
CHANGED
|
@@ -35,7 +35,7 @@ const getState$1 = () => {
|
|
|
35
35
|
|
|
36
36
|
var name = "@artisan-commerce/analytics-web";
|
|
37
37
|
var description = "Artisn commerce analytics web library";
|
|
38
|
-
var version = "0.2.0-canary.
|
|
38
|
+
var version = "0.2.0-canary.33";
|
|
39
39
|
var main = "./dist/bundle.cjs.js";
|
|
40
40
|
var module = "./dist/bundle.esm.js";
|
|
41
41
|
var types = "./dist/bundle.d.ts";
|
|
@@ -77,7 +77,7 @@ var dependencies = {
|
|
|
77
77
|
};
|
|
78
78
|
var devDependencies = {
|
|
79
79
|
"@artisan-commerce/products": "0.9.0-canary.23",
|
|
80
|
-
"@artisan-commerce/shopping-cart": "0.12.0-canary.
|
|
80
|
+
"@artisan-commerce/shopping-cart": "0.12.0-canary.31",
|
|
81
81
|
"@artisan-commerce/types": "0.14.0-canary.19",
|
|
82
82
|
"@babel/core": "^7.10.5",
|
|
83
83
|
"@babel/preset-env": "^7.10.4",
|