@artisan-commerce/analytics-web 0.1.0-canary.21 → 0.1.0-canary.23

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,8 +11,8 @@ import { AddShippingAddressParams as FacebookAddShippingAddressParams } from "..
11
11
  * @property {string} address Full address
12
12
  */
13
13
  export interface AddShippingAddressCommonParams {
14
- lat: number;
15
- lng: number;
14
+ lat?: number;
15
+ lng?: number;
16
16
  alias?: string;
17
17
  address: string;
18
18
  }
@@ -16,8 +16,8 @@ import { SelectShippingAddressParams as FacebookSelectShippingAddressParams } fr
16
16
  export interface SelectShippingAddressCommonParams {
17
17
  addressId: ShippingAddress["id"];
18
18
  position?: number;
19
- lat: number;
20
- lng: number;
19
+ lat?: number;
20
+ lng?: number;
21
21
  alias?: string;
22
22
  address: string;
23
23
  }
@@ -21,10 +21,24 @@ export interface InitAnalyticsConfig {
21
21
  shareArtisanAnalytics?: boolean;
22
22
  meta: InitAnalyticsConfigMeta;
23
23
  }
24
+ /**
25
+ * Commerce's metadata
26
+ *
27
+ * @interface InitAnalyticsConfigMeta
28
+ * @since 0.5.14
29
+ * @extends AnalyticsMeta
30
+ * @property {string} vendorName The name of the active vendor
31
+ * @property {number} storeId The id of the active store
32
+ * @property {string} storeName The name of the active store
33
+ * @property {number} catalogueId The id of the active catalogue
34
+ * @property {string} catalogueName The name of the active catalogue
35
+ * @property {ArtisanPlatform} platform The type of platform it is running on
36
+ */
24
37
  export interface InitAnalyticsConfigMeta extends Omit<AnalyticsMeta, "vendorId" | "versionSDK" | "platform" | "vendorName" | "storeId" | "storeName" | "catalogueId" | "catalogueName"> {
25
38
  vendorName?: AnalyticsMeta["vendorName"] | undefined;
26
39
  storeId?: AnalyticsMeta["storeId"] | undefined;
27
40
  storeName?: AnalyticsMeta["storeName"] | undefined;
28
41
  catalogueId?: AnalyticsMeta["catalogueId"] | undefined;
29
42
  catalogueName?: AnalyticsMeta["catalogueName"] | undefined;
43
+ platform?: AnalyticsMeta["platform"] | undefined;
30
44
  }
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.21",
4
+ "version": "0.1.0-canary.23",
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": "b4756aeffb2a6e68d76afb181d29ae9119085982"
86
+ "gitHead": "32775cb5d7cead02f2985abba2aee0e067c482b0"
87
87
  }