@artisan-commerce/analytics-web 0.2.0-canary.32 → 0.2.0-canary.33

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 CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.2.0-canary.33](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/analytics-web@0.2.0-canary.32...@artisan-commerce/analytics-web@0.2.0-canary.33) (2021-10-18)
7
+
8
+ **Note:** Version bump only for package @artisan-commerce/analytics-web
9
+
10
+
11
+
12
+
13
+
6
14
  ## [0.2.0-canary.32](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/analytics-web@0.2.0-canary.31...@artisan-commerce/analytics-web@0.2.0-canary.32) (2021-10-15)
7
15
 
8
16
  **Note:** Version bump only for package @artisan-commerce/analytics-web
@@ -39,7 +39,7 @@ const getState$1 = () => {
39
39
 
40
40
  var name = "@artisan-commerce/analytics-web";
41
41
  var description = "Artisn commerce analytics web library";
42
- var version = "0.2.0-canary.31";
42
+ var version = "0.2.0-canary.32";
43
43
  var main = "./dist/bundle.cjs.js";
44
44
  var module$1 = "./dist/bundle.esm.js";
45
45
  var types = "./dist/bundle.d.ts";
@@ -81,7 +81,7 @@ var dependencies = {
81
81
  };
82
82
  var devDependencies = {
83
83
  "@artisan-commerce/products": "0.9.0-canary.23",
84
- "@artisan-commerce/shopping-cart": "0.12.0-canary.30",
84
+ "@artisan-commerce/shopping-cart": "0.12.0-canary.31",
85
85
  "@artisan-commerce/types": "0.14.0-canary.19",
86
86
  "@babel/core": "^7.10.5",
87
87
  "@babel/preset-env": "^7.10.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.5.14
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.5.14
800
+ * @since 0.1.0
801
801
  */
802
- declare type PaymentType = "Credit" | "Debit" | "Cash" | "Dataphone" | "Other";
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.5.14
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
- orderId: string;
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.5.14
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.5.14
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
- statusCode: number;
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.5.14
2146
+ * @since 0.1.0
2147
2147
  */
2148
2148
  declare type PurchaseFailParams = PurchaseFailParams$3 & PurchaseFailParams$2 & PurchaseFailParams$1;
2149
2149
 
@@ -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.31";
38
+ var version = "0.2.0-canary.32";
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.30",
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",
@@ -41,7 +41,7 @@
41
41
 
42
42
  var name = "@artisan-commerce/analytics-web";
43
43
  var description = "Artisn commerce analytics web library";
44
- var version = "0.2.0-canary.31";
44
+ var version = "0.2.0-canary.32";
45
45
  var main = "./dist/bundle.cjs.js";
46
46
  var module = "./dist/bundle.esm.js";
47
47
  var types = "./dist/bundle.d.ts";
@@ -83,7 +83,7 @@
83
83
  };
84
84
  var devDependencies = {
85
85
  "@artisan-commerce/products": "0.9.0-canary.23",
86
- "@artisan-commerce/shopping-cart": "0.12.0-canary.30",
86
+ "@artisan-commerce/shopping-cart": "0.12.0-canary.31",
87
87
  "@artisan-commerce/types": "0.14.0-canary.19",
88
88
  "@babel/core": "^7.10.5",
89
89
  "@babel/preset-env": "^7.10.4",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@artisan-commerce/analytics-web",
3
3
  "description": "Artisn commerce analytics web library",
4
- "version": "0.2.0-canary.32",
4
+ "version": "0.2.0-canary.33",
5
5
  "main": "./dist/bundle.cjs.js",
6
6
  "module": "./dist/bundle.esm.js",
7
7
  "types": "./dist/bundle.d.ts",
@@ -84,5 +84,5 @@
84
84
  "@artisan-commerce/products": "*",
85
85
  "@artisan-commerce/shopping-cart": "*"
86
86
  },
87
- "gitHead": "cafc6d3e53c30217c47657444094c2cba8bcccb9"
87
+ "gitHead": "89c09d9f2af48f1dce9431cf1822c82cf1bf6c87"
88
88
  }