@artisan-commerce/analytics-web 0.1.0-canary.14 → 0.1.0-canary.16

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.
@@ -11,10 +11,10 @@ import { ChangeLocationParams as FacebookChangeLocationParams } from "../../../p
11
11
  * @property {number} nextLng New set user's longitude
12
12
  */
13
13
  export interface ChangeLocationCommonParams {
14
- previousLat: number;
15
- previousLng: number;
16
- nextLat: number;
17
- nextLng: number;
14
+ previousLat?: number;
15
+ previousLng?: number;
16
+ nextLat?: number;
17
+ nextLng?: number;
18
18
  }
19
19
  /**
20
20
  * changeLocation event params.
@@ -9,8 +9,8 @@ import { OutOfCoverageParams as FacebookOutOfCoverageParams } from "../../../pro
9
9
  * @property {number} lng longitude being searched
10
10
  */
11
11
  export interface OutOfCoverageCommonParams {
12
- lat: number;
13
- lng: number;
12
+ lat?: number;
13
+ lng?: number;
14
14
  }
15
15
  /**
16
16
  * outOfCoverage event params.
@@ -9,8 +9,8 @@ import { SetLocationParams as FacebookSetLocationParams } from "../../../provide
9
9
  * @property {number} lng the new set longitude
10
10
  */
11
11
  export interface SetLocationCommonParams {
12
- lat: number;
13
- lng: number;
12
+ lat?: number;
13
+ lng?: number;
14
14
  }
15
15
  /**
16
16
  * setLocation event params.
@@ -1,6 +1,18 @@
1
1
  import { Vendor } from "@artisan-commerce/types";
2
2
  import { AnalyticsMeta } from "../../types/common.types";
3
3
  import { AnalyticsProviderTypes } from "../../types/event.types";
4
+ /**
5
+ * Initial configuration that can be passed to initAnalytics method.
6
+ *
7
+ * @interface InitAnalyticsConfig
8
+ * @since 0.5.14
9
+ * @property {AnalyticsProviderTypes[]} providers Analytics providers instances that can be targeted to emit events
10
+ * @property {number} activeVendor The vendor that will emit the events
11
+ * @property {number[]|undefined} vendors List of vendors that can emit events if active
12
+ * @property {boolean} debug Debug mode
13
+ * @property {boolean} shareArtisanAnalytics Share e-commerce analytics with Trade
14
+ * @property {InitAnalyticsConfigMeta} meta Commerce's metadata
15
+ */
4
16
  export interface InitAnalyticsConfig {
5
17
  providers: AnalyticsProviderTypes[];
6
18
  activeVendor?: Vendor["id"];
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.14",
4
+ "version": "0.1.0-canary.16",
5
5
  "main": "./build/main.bundle.js",
6
6
  "types": "./build/src/index.d.ts",
7
7
  "files": [
@@ -83,5 +83,5 @@
83
83
  "@artisan-commerce/products": "*",
84
84
  "@artisan-commerce/shopping-cart": "*"
85
85
  },
86
- "gitHead": "e93b1023d3438a39e1d0d0eda34eb1f319d20cb6"
86
+ "gitHead": "9538e359e9660efd3a26b75382eb0311685522e8"
87
87
  }