@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.
- package/CHANGELOG.md +18 -0
- package/build/main.bundle.js +1 -1
- package/build/report.json +1 -1
- package/build/src/lib/events/shipping/addShippingAddress/addShippingAddress.types.d.ts +2 -2
- package/build/src/lib/events/shipping/selectShippingAddress/selectShippingAddress.types.d.ts +2 -2
- package/build/src/lib/initAnalytics/initAnalytics.types.d.ts +14 -0
- package/package.json +2 -2
|
@@ -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
|
|
15
|
-
lng
|
|
14
|
+
lat?: number;
|
|
15
|
+
lng?: number;
|
|
16
16
|
alias?: string;
|
|
17
17
|
address: string;
|
|
18
18
|
}
|
package/build/src/lib/events/shipping/selectShippingAddress/selectShippingAddress.types.d.ts
CHANGED
|
@@ -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
|
|
20
|
-
lng
|
|
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.
|
|
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": "
|
|
86
|
+
"gitHead": "32775cb5d7cead02f2985abba2aee0e067c482b0"
|
|
87
87
|
}
|