@artisan-commerce/analytics-web 0.1.0-canary.3 → 0.1.0-canary.4

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.
Files changed (92) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/build/main.bundle.js +1 -1
  3. package/build/report.json +1 -1
  4. package/build/src/lib/events/auth/changePasswordAttempt/changePasswordAttempt.d.ts +1 -1
  5. package/build/src/lib/events/banner/bannerImpression/bannerImpression.d.ts +1 -1
  6. package/build/src/lib/events/banner/bannerImpression/bannerImpression.types.d.ts +1 -1
  7. package/build/src/lib/events/banner/selectBanner/selectBanner.d.ts +1 -1
  8. package/build/src/lib/events/banner/selectBanner/selectBanner.types.d.ts +4 -4
  9. package/build/src/lib/events/billing/addBillingInfo/addBillingInfo.d.ts +1 -1
  10. package/build/src/lib/events/billing/addBillingInfo/addBillingInfo.types.d.ts +1 -1
  11. package/build/src/lib/events/billing/selectBillingInfo/selectBillingInfo.d.ts +1 -1
  12. package/build/src/lib/events/billing/selectBillingInfo/selectBillingInfo.types.d.ts +2 -2
  13. package/build/src/lib/events/billing/updateBillingInfo/updateBillingInfo.d.ts +1 -1
  14. package/build/src/lib/events/billing/updateBillingInfo/updateBillingInfo.types.d.ts +2 -2
  15. package/build/src/lib/events/booking/bookAppointment/bookAppointment.d.ts +1 -1
  16. package/build/src/lib/events/category/searchCategoryAttempt/searchCategoryAttempt.d.ts +1 -1
  17. package/build/src/lib/events/category/selectCategory/selectCategory.d.ts +1 -1
  18. package/build/src/lib/events/checkout/checkoutAction/checkoutAction.d.ts +1 -1
  19. package/build/src/lib/events/checkout/checkoutAction/checkoutAction.types.d.ts +1 -1
  20. package/build/src/lib/events/checkout/initiateCheckout/initiateCheckout.d.ts +1 -1
  21. package/build/src/lib/events/coupon/applyBenefit/applyBenefit.d.ts +1 -1
  22. package/build/src/lib/events/coupon/couponCodeError/couponCodeError.d.ts +1 -1
  23. package/build/src/lib/events/coupon/redeemCouponCode/redeemCouponCode.d.ts +1 -1
  24. package/build/src/lib/events/coupon/removeBenefit/removeBenefit.d.ts +1 -1
  25. package/build/src/lib/events/coupon/viewBenefitDetails/viewBenefitDetails.d.ts +1 -1
  26. package/build/src/lib/events/coupon/viewBenefitsWallet/viewBenefitsWallet.d.ts +1 -1
  27. package/build/src/lib/events/coupon/viewQRStoreCoupon/viewQRStoreCoupon.d.ts +2 -1
  28. package/build/src/lib/events/credit/addCredits/addCredits.d.ts +1 -1
  29. package/build/src/lib/events/credit/spendCredits/spendCredits.d.ts +1 -1
  30. package/build/src/lib/events/credit/viewCredits/viewCredits.d.ts +1 -1
  31. package/build/src/lib/events/customEvent/customEvent.d.ts +1 -1
  32. package/build/src/lib/events/events.d.ts +1 -1
  33. package/build/src/lib/events/events.types.d.ts +1 -1
  34. package/build/src/lib/events/fulfillment/viewFulfillmentStep/viewFulfillmentStep.d.ts +1 -1
  35. package/build/src/lib/events/fulfillment/viewTracking/viewTracking.d.ts +1 -1
  36. package/build/src/lib/events/fulfillment/viewTracking/viewTracking.types.d.ts +1 -1
  37. package/build/src/lib/events/geo/changeLocation/changeLocation.d.ts +1 -1
  38. package/build/src/lib/events/geo/findLocation/findLocation.d.ts +1 -1
  39. package/build/src/lib/events/geo/outOfCoverage/outOfCoverage.d.ts +1 -1
  40. package/build/src/lib/events/geo/setLocation/setLocation.d.ts +1 -1
  41. package/build/src/lib/events/help/requestAssistance/requestAssistance.d.ts +2 -1
  42. package/build/src/lib/events/loyalty/earnPoints/earnPoints.d.ts +1 -1
  43. package/build/src/lib/events/loyalty/sharePoints/sharePoints.d.ts +1 -1
  44. package/build/src/lib/events/loyalty/spendPoints/spendPoints.d.ts +1 -1
  45. package/build/src/lib/events/loyalty/viewLoyaltyLevel/viewLoyaltyLevel.d.ts +1 -1
  46. package/build/src/lib/events/order/cancelOrder/cancelOrder.d.ts +1 -1
  47. package/build/src/lib/events/order/rateOrder/rateOrder.d.ts +1 -1
  48. package/build/src/lib/events/order/requestRefund/requestRefund.d.ts +1 -1
  49. package/build/src/lib/events/order/requestRefund/requestRefund.types.d.ts +1 -0
  50. package/build/src/lib/events/other/generateLead/generateLead.d.ts +1 -1
  51. package/build/src/lib/events/other/pageView/pageView.d.ts +2 -1
  52. package/build/src/lib/events/other/pageView/pageView.types.d.ts +2 -2
  53. package/build/src/lib/events/other/searchPageContent/searchPageContent.d.ts +1 -1
  54. package/build/src/lib/events/other/searchPageContent/searchPageContent.types.d.ts +1 -1
  55. package/build/src/lib/events/payment/changePaymentType/changePaymentType.d.ts +1 -1
  56. package/build/src/lib/events/payment/changePaymentType/changePaymentType.types.d.ts +6 -2
  57. package/build/src/lib/events/payment/selectPaymentType/selectPaymentType.d.ts +1 -1
  58. package/build/src/lib/events/payment/selectPaymentType/selectPaymentType.types.d.ts +2 -2
  59. package/build/src/lib/events/payment/setPaymentInfo/setPaymentInfo.d.ts +1 -1
  60. package/build/src/lib/events/payment/setPaymentInfo/setPaymentInfo.types.d.ts +3 -3
  61. package/build/src/lib/events/product/customizeProduct/customizeProduct.d.ts +1 -1
  62. package/build/src/lib/events/product/filterProducts/filterProducts.d.ts +1 -1
  63. package/build/src/lib/events/product/searchProductAttempt/searchProductAttempt.d.ts +1 -1
  64. package/build/src/lib/events/product/selectProduct/selectProduct.d.ts +1 -1
  65. package/build/src/lib/events/product/sortProducts/sortProducts.d.ts +1 -1
  66. package/build/src/lib/events/purchase/purchaseAttempt/purchaseAttempt.d.ts +1 -1
  67. package/build/src/lib/events/purchase/purchaseAttempt/purchaseAttempt.types.d.ts +1 -1
  68. package/build/src/lib/events/purchase/purchaseFail/purchaseFail.d.ts +1 -1
  69. package/build/src/lib/events/purchase/purchaseSuccess/purchaseSuccess.d.ts +1 -1
  70. package/build/src/lib/events/settings/viewSettings/viewSettings.d.ts +1 -1
  71. package/build/src/lib/events/shipping/addShippingAddress/addShippingAddress.d.ts +1 -1
  72. package/build/src/lib/events/shipping/addShippingAddress/addShippingAddress.types.d.ts +1 -1
  73. package/build/src/lib/events/shipping/selectShippingAddress/selectShippingAddress.d.ts +1 -1
  74. package/build/src/lib/events/shipping/selectShippingAddress/selectShippingAddress.types.d.ts +1 -1
  75. package/build/src/lib/events/shipping/updateShippingAddress/updateShippingAddress.d.ts +1 -1
  76. package/build/src/lib/events/shipping/updateShippingAddress/updateShippingAddress.types.d.ts +1 -1
  77. package/build/src/lib/events/shoppingCart/addProductToCart/addProductToCart.d.ts +1 -1
  78. package/build/src/lib/events/shoppingCart/addProductToWishlist/addProductToWishlist.d.ts +1 -1
  79. package/build/src/lib/events/shoppingCart/removeProductFromCart/removeProductFromCart.d.ts +1 -1
  80. package/build/src/lib/events/shoppingCart/removeProductFromWishlist/removeProductFromWishlist.d.ts +1 -1
  81. package/build/src/lib/events/shoppingCart/updateProductInCart/updateProductInCart.d.ts +1 -1
  82. package/build/src/lib/events/shoppingCart/updateProductInWishlist/updateProductInWishlist.d.ts +1 -1
  83. package/build/src/lib/events/shoppingCart/viewCart/viewCart.d.ts +1 -1
  84. package/build/src/lib/events/social/share/share.d.ts +1 -1
  85. package/build/src/lib/events/social/share/share.types.d.ts +3 -3
  86. package/build/src/lib/events/store/setStore/setStore.d.ts +1 -1
  87. package/build/src/lib/events/user/setUserInfo/setUserInfo.d.ts +1 -1
  88. package/build/src/lib/events/user/updateUserInfo/updateUserInfo.d.ts +1 -1
  89. package/build/src/lib/events/vendor/setVendor/setVendor.d.ts +1 -1
  90. package/build/src/lib/events/workflow/selectWorkflow/selectWorkflow.d.ts +1 -1
  91. package/build/src/lib/providers/FacebookPixel/events/order/rateOrder/rateOrder.types.d.ts +1 -0
  92. package/package.json +2 -2
@@ -2,7 +2,7 @@ import { FilterProductsParams } from "./filterProducts.types";
2
2
  /**
3
3
  * Emits a filterProducts event to every configured provider.
4
4
  *
5
- * Log this event when the users try to filter a list of products.
5
+ * Log this event when users try to filter a list of products.
6
6
  *
7
7
  * @since 0.5.14
8
8
  * @property {FilterProductsParams} params FilterProducts event parameters
@@ -2,7 +2,7 @@ import { SearchProductAttemptParams } from "./searchProductAttempt.types";
2
2
  /**
3
3
  * Emits a searchProductAttempt event to every configured provider.
4
4
  *
5
- * Log this event when the users try to search an specific product.
5
+ * Log this event when users try to search an specific product.
6
6
  *
7
7
  * @since 0.5.14
8
8
  * @property {SearchProductAttemptParams} params SearchProductAttempt event parameters
@@ -2,7 +2,7 @@ import { SelectProductParams } from "./selectProduct.types";
2
2
  /**
3
3
  * Emits a selectProduct event to every configured provider.
4
4
  *
5
- * Log this event when the users select a product. This product may or may not
5
+ * Log this event when users select a product. This product may or may not
6
6
  * be on a list.
7
7
  *
8
8
  * @since 0.5.14
@@ -2,7 +2,7 @@ import { SortProductsParams } from "./sortProducts.types";
2
2
  /**
3
3
  * Emits a sortProducts event to every configured provider.
4
4
  *
5
- * Log this event when the users try to sort a list of products.
5
+ * Log this event when users try to sort a list of products.
6
6
  *
7
7
  * @since 0.5.14
8
8
  * @property {SortProductsParams} params SortProducts event parameters
@@ -2,7 +2,7 @@ import { PurchaseAttemptParams } from "./purchaseAttempt.types";
2
2
  /**
3
3
  * Emits a purchaseAttempt event to every configured provider.
4
4
  *
5
- * Log this event when
5
+ * Log this event when users show an intention to purchase.
6
6
  *
7
7
  * @since 0.5.14
8
8
  * @property {PurchaseAttemptParams} params PurchaseAttempt event parameters
@@ -11,7 +11,7 @@ import { PaymentType, Workflow } from "../../events.types";
11
11
  * @property {ShoppingCart} shoppingCart The order shopping cart
12
12
  * @property {PaymentType} selectedPaymentType The selected payment type (e.g. Cash, Credit, Debit)
13
13
  * @property {Workflow} fulfillmentType The workflow name (e.g. Delivery)
14
- * @property {string} cardType If paying with card the card provider (e.g. visa)
14
+ * @property {string} cardType If paying with card, the card provider (e.g. visa)
15
15
  * @property {number} shippingAddressId The selected shipping address identifier
16
16
  * @property {number} billingInfoId The selected billing info identifier
17
17
  */
@@ -2,7 +2,7 @@ import { PurchaseFailParams } from "./purchaseFail.types";
2
2
  /**
3
3
  * Emits a purchaseFail event to every configured provider.
4
4
  *
5
- * Log this event when
5
+ * Log this event when your purchase request has failed.
6
6
  *
7
7
  * @since 0.5.14
8
8
  * @property {PurchaseFailParams} params PurchaseFail event parameters
@@ -2,7 +2,7 @@ import { PurchaseSuccessParams } from "./purchaseSuccess.types";
2
2
  /**
3
3
  * Emits a purchaseSuccess event to every configured provider.
4
4
  *
5
- * Log this event when
5
+ * Log this event when your purchase request has resolved successfully.
6
6
  *
7
7
  * @since 0.5.14
8
8
  * @property {PurchaseSuccessParams} params PurchaseSuccess event parameters
@@ -2,7 +2,7 @@ import { ViewSettingsParams } from "./viewSettings.types";
2
2
  /**
3
3
  * Emits a viewSettings event to every configured provider.
4
4
  *
5
- * Log this event when
5
+ * Log this event when users view the settings.
6
6
  *
7
7
  * @since 0.5.14
8
8
  * @property {ViewSettingsParams} params ViewSettings event parameters
@@ -2,7 +2,7 @@ import { AddShippingAddressParams } from "./addShippingAddress.types";
2
2
  /**
3
3
  * Emits a addShippingAddress event to every configured provider.
4
4
  *
5
- * Log this event when
5
+ * Log this event when users add their shipping address.
6
6
  *
7
7
  * @since 0.5.14
8
8
  * @property {AddShippingAddressParams} params AddShippingAddress event parameters
@@ -8,7 +8,7 @@ import { AddShippingAddressParams as FacebookAddShippingAddressParams } from "..
8
8
  * @property {number} lat The address latitude
9
9
  * @property {number} lng The address longitude
10
10
  * @property {string} alias The address alias or name
11
- * @property {address} address Full address
11
+ * @property {string} address Full address
12
12
  */
13
13
  export interface AddShippingAddressCommonParams {
14
14
  lat: number;
@@ -2,7 +2,7 @@ import { SelectShippingAddressParams } from "./selectShippingAddress.types";
2
2
  /**
3
3
  * Emits a selectShippingAddress event to every configured provider.
4
4
  *
5
- * Log this event when
5
+ * Log this event when users select a shipping address.
6
6
  *
7
7
  * @since 0.5.14
8
8
  * @property {SelectShippingAddressParams} params SelectShippingAddress event parameters
@@ -11,7 +11,7 @@ import { SelectShippingAddressParams as FacebookSelectShippingAddressParams } fr
11
11
  * @property {number} lat The address latitude
12
12
  * @property {number} lng The address longitude
13
13
  * @property {string} alias The address alias or name
14
- * @property {address} address Full address
14
+ * @property {string} address Full address
15
15
  */
16
16
  export interface SelectShippingAddressCommonParams {
17
17
  addressId: ShippingAddress["id"];
@@ -2,7 +2,7 @@ import { UpdateShippingAddressParams } from "./updateShippingAddress.types";
2
2
  /**
3
3
  * Emits a updateShippingAddress event to every configured provider.
4
4
  *
5
- * Log this event when
5
+ * Log this event when users update their shipping address.
6
6
  *
7
7
  * @since 0.5.14
8
8
  * @property {UpdateShippingAddressParams} params UpdateShippingAddress event parameters
@@ -7,7 +7,7 @@ import { UpdateShippingAddressParams as FacebookUpdateShippingAddressParams } fr
7
7
  * @interface UpdateShippingAddressCommonParams
8
8
  * @since 0.5.14
9
9
  * @property {number} addressId The address identifier
10
- * @property {address} address The new full address
10
+ * @property {string} address The new full address
11
11
  * @property {string[]} fields The updated fields names
12
12
  */
13
13
  export interface UpdateShippingAddressCommonParams {
@@ -2,7 +2,7 @@ import { AddProductToCartParams } from "./addProductToCart.types";
2
2
  /**
3
3
  * Emits a addProductToCart event to every configured provider.
4
4
  *
5
- * Log this event when the users add a product to the cart.
5
+ * Log this event when users add a product to the cart.
6
6
  *
7
7
  * @since 0.5.14
8
8
  * @property {AddProductToCartParams} params AddProductToCart event parameters
@@ -2,7 +2,7 @@ import { AddProductToWishlistParams } from "./addProductToWishlist.types";
2
2
  /**
3
3
  * Emits a addProductToWishlist event to every configured provider.
4
4
  *
5
- * Log this event when the users add a product to the wishlist.
5
+ * Log this event when users add a product to the wishlist.
6
6
  *
7
7
  * @since 0.5.14
8
8
  * @property {AddProductToWishlistParams} params AddProductToWishlist event parameters
@@ -2,7 +2,7 @@ import { RemoveProductFromCartParams } from "./removeProductFromCart.types";
2
2
  /**
3
3
  * Emits a removeProductFromCart event to every configured provider.
4
4
  *
5
- * Log this event when the users remove a product from the cart.
5
+ * Log this event when users remove a product from the cart.
6
6
  *
7
7
  * @since 0.5.14
8
8
  * @property {RemoveProductFromCartParams} params RemoveProductFromCart event parameters
@@ -2,7 +2,7 @@ import { RemoveProductFromWishlistParams } from "./removeProductFromWishlist.typ
2
2
  /**
3
3
  * Emits a removeProductFromWishlist event to every configured provider.
4
4
  *
5
- * Log this event when the users remove a product from the wishlist.
5
+ * Log this event when users remove a product from the wishlist.
6
6
  *
7
7
  * @since 0.5.14
8
8
  * @property {RemoveProductFromWishlistParams} params RemoveProductFromWishlist event parameters
@@ -2,7 +2,7 @@ import { UpdateProductInCartParams } from "./updateProductInCart.types";
2
2
  /**
3
3
  * Emits a updateProductInCart event to every configured provider.
4
4
  *
5
- * Log this event when the users update a product that was added earlier to the
5
+ * Log this event when users update a product that was added earlier to the
6
6
  * cart.
7
7
  *
8
8
  * @since 0.5.14
@@ -2,7 +2,7 @@ import { UpdateProductInWishlistParams } from "./updateProductInWishlist.types";
2
2
  /**
3
3
  * Emits a updateProductInWishlist event to every configured provider.
4
4
  *
5
- * Log this event when the users update a product that was added earlier to the
5
+ * Log this event when users update a product that was added earlier to the
6
6
  * wishlist.
7
7
  *
8
8
  * @since 0.5.14
@@ -2,7 +2,7 @@ import { ViewCartParams } from "./viewCart.types";
2
2
  /**
3
3
  * Emits a viewCart event to every configured provider.
4
4
  *
5
- * Log this event when the users view the cart.
5
+ * Log this event when users view the cart.
6
6
  *
7
7
  * @since 0.5.14
8
8
  * @property {ViewCartParams} params ViewCart event parameters
@@ -2,7 +2,7 @@ import { ShareParams } from "./share.types";
2
2
  /**
3
3
  * Emits a share event to every configured provider.
4
4
  *
5
- * Log this event when
5
+ * Log this event when users share any content of the application.
6
6
  *
7
7
  * @since 0.5.14
8
8
  * @property {ShareParams} params Share event parameters
@@ -5,9 +5,9 @@ import { ShareParams as FacebookShareParams } from "../../../providers/FacebookP
5
5
  *
6
6
  * @interface ShareCommonParams
7
7
  * @since 0.5.14
8
- * @property {string} shareTarget The mean or plarform by which the user will share some content (e.g. link, Facebook)
9
- * @property {string|number} itemId The content identifier that will be shared
10
- * @property {string} itemName The content name that will be shared
8
+ * @property {string} shareTarget The mean or platform by which the user will share some content (e.g. link, Facebook)
9
+ * @property {string|number} itemId The identifier of the content to be shared
10
+ * @property {string} itemName The name of the content to be shared
11
11
  */
12
12
  export interface ShareCommonParams {
13
13
  shareTarget: string;
@@ -2,7 +2,7 @@ import { SetStoreParams } from "./setStore.types";
2
2
  /**
3
3
  * Emits a setStore event to every configured provider.
4
4
  *
5
- * Log this event when the users set a store for the first time.
5
+ * Log this event when users set a store for the first time.
6
6
  *
7
7
  * @since 0.5.14
8
8
  * @property {SetStoreParams} params SetStore event parameters
@@ -2,7 +2,7 @@ import { SetUserInfoParams } from "./setUserInfo.types";
2
2
  /**
3
3
  * Emits a setUserInfo event to every configured provider.
4
4
  *
5
- * Log this event when the users set data like their birthdate, phone number,
5
+ * Log this event when users set data like their birthdate, phone number,
6
6
  * etc.
7
7
  *
8
8
  * @since 0.5.14
@@ -2,7 +2,7 @@ import { UpdateUserInfoParams } from "./updateUserInfo.types";
2
2
  /**
3
3
  * Emits an updateUserInfo event to every configured provider.
4
4
  *
5
- * Log this event when the users update data like their birthdate, phone number,
5
+ * Log this event when users update data like their birthdate, phone number,
6
6
  * etc.
7
7
  *
8
8
  * @since 0.5.14
@@ -2,7 +2,7 @@ import { SetVendorParams } from "./setVendor.types";
2
2
  /**
3
3
  * Emits a setVendor event to every configured provider.
4
4
  *
5
- * Log this event when the users set the vendor for the first time.
5
+ * Log this event when users set the vendor for the first time.
6
6
  *
7
7
  * @since 0.5.14
8
8
  * @property {SetVendorParams} params SetVendor event parameters
@@ -2,7 +2,7 @@ import { SelectWorkflowParams } from "./selectWorkflow.types";
2
2
  /**
3
3
  * Emits a SelectWorkflow event to every configured provider.
4
4
  *
5
- * Log this event when the users set the workflow for the first time.
5
+ * Log this event when users set the workflow for the first time.
6
6
  *
7
7
  * @since 0.5.14
8
8
  * @property {SelectWorkflowParams} params SelectWorkflow event parameters
@@ -9,6 +9,7 @@ import { FacebookPixelCustomEventParams } from "../../../FacebookPixel.types";
9
9
  * @extends FacebookPixelCommonEventParams
10
10
  * @extends FacebookPixelCustomEventParams
11
11
  * @extends RateOrderCommonParams
12
+ * @property {string} contentType The type of products being sold (e.g. food)
12
13
  */
13
14
  export interface RateOrderParams extends FacebookPixelCommonEventParams, FacebookPixelCustomEventParams, RateOrderCommonParams {
14
15
  contentType?: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@artisan-commerce/analytics-web",
3
3
  "description": "Artisan commerce analytics web library",
4
- "version": "0.1.0-canary.3",
4
+ "version": "0.1.0-canary.4",
5
5
  "main": "./build/main.bundle.js",
6
6
  "types": "./build/src/index.d.ts",
7
7
  "files": [
@@ -84,5 +84,5 @@
84
84
  "@artisan-commerce/products": "*",
85
85
  "@artisan-commerce/shopping-cart": "*"
86
86
  },
87
- "gitHead": "8f5a6cbbc54829581ad40f3da57e93f745cc8cad"
87
+ "gitHead": "cbbfc21f2de6539d23c668d7f0997c77274a5a9e"
88
88
  }