@artisan-commerce/analytics-rn 0.2.0-canary.4 → 0.2.0-canary.5

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,15 @@
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.5](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/analytics-rn@0.2.0-canary.4...@artisan-commerce/analytics-rn@0.2.0-canary.5) (2021-04-20)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **analytics-rn:** remove unused event parameter for google events ([2d76e14](https://bitbucket.org/tradesystem/artisan_monorepo/commit/2d76e1498ac4a86fe4b4172a3f5f35b39a69542f))
12
+
13
+
14
+
6
15
  ## [0.2.0-canary.4](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/analytics-rn@0.2.0-canary.3...@artisan-commerce/analytics-rn@0.2.0-canary.4) (2021-04-19)
7
16
 
8
17
  **Note:** Version bump only for package @artisan-commerce/analytics-rn
@@ -7,7 +7,7 @@ import { CustomEventParams as FacebookCustomEventParams } from "../../providers/
7
7
  * @since 0.5.14
8
8
  */
9
9
  export interface CustomEventCommonParams {
10
- [key: string]: string | number | boolean;
10
+ [key: string]: string | number;
11
11
  }
12
12
  /**
13
13
  * customEvent event params.
@@ -40,19 +40,3 @@ export interface FacebookPixelCommonEventParams extends EventCommonParams {
40
40
  export interface FacebookPixelCustomEventParams {
41
41
  [key: string]: any;
42
42
  }
43
- export declare namespace Fbq {
44
- interface Fbq {
45
- (command: "trackSingle", targetId: string, eventName: EventNames, eventParams?: ControlParams | EventParams | CustomParams): void;
46
- (command: "trackSingleCustom", targetId: string, eventName: string, eventParams?: ControlParams | EventParams | CustomParams): void;
47
- }
48
- interface CustomParams {
49
- [key: string]: any;
50
- }
51
- interface ControlParams {
52
- }
53
- type EventNames = "ScreenView" | "CompleteRegistration" | "FindLocation" | "Search" | "CustomizeProduct" | "InitiateCheckout" | "AddPaymentInfo" | "Schedule" | "Purchase" | "Lead" | "AddToCart" | "AddToWishlist" | "Contact";
54
- interface EventParams {
55
- currency?: string;
56
- value?: number;
57
- }
58
- }
@@ -33,10 +33,8 @@ export interface GoogleAnalyticsProviderConfig {
33
33
  * @interface GoogleAnalyticsCommonEventParams
34
34
  * @since 0.5.14
35
35
  * @extends EventCommonParams
36
- * @property {Function} callback Fired when event is resolved
37
36
  */
38
37
  export interface GoogleAnalyticsCommonEventParams extends EventCommonParams {
39
- callback?: () => void;
40
38
  }
41
39
  /**
42
40
  * Google Analytics custom event shared parameters.
@@ -48,44 +46,6 @@ export interface GoogleAnalyticsCustomEventParams {
48
46
  [key: string]: any;
49
47
  }
50
48
  export declare namespace Gtag {
51
- interface Gtag {
52
- (command: "config", targetId: string, config?: ControlParams | EventParams | CustomParams): void;
53
- (command: "get", targetId: string, fieldName: string, callback: (field: unknown) => void): void;
54
- (command: "set", targetId: string, config: CustomParams): void;
55
- (command: "event", eventName: EventNames | string, eventParams?: ControlParams | EventParams | CustomParams): void;
56
- }
57
- interface CustomParams {
58
- [key: string]: any;
59
- }
60
- interface ControlParams {
61
- groups?: string | string[];
62
- send_to: string | string[];
63
- event_callback?: () => void;
64
- event_timeout?: number;
65
- }
66
- type EventNames = "add_payment_info" | "add_to_cart" | "add_to_wishlist" | "begin_checkout" | "earn_virtual_currency" | "exception" | "generate_lead" | "login" | "page_view" | "purchase" | "refund" | "remove_from_cart" | "screen_view" | "search" | "select_content" | "set_checkout_option" | "share" | "sign_up" | "timing_complete" | "view_item" | "view_item_list" | "view_promotion" | "view_search_results";
67
- interface EventParams {
68
- checkout_option?: string;
69
- checkout_step?: number;
70
- content_id?: string;
71
- content_type?: string;
72
- coupon?: string;
73
- currency?: string;
74
- description?: string;
75
- fatal?: boolean;
76
- items?: Item[];
77
- method?: string;
78
- number?: string;
79
- promotions?: Promotion[];
80
- screen_name?: string;
81
- search_term?: string;
82
- shipping?: Currency;
83
- tax?: Currency;
84
- transaction_id?: string;
85
- value?: number;
86
- event_label?: string;
87
- event_category?: string;
88
- }
89
49
  type Currency = string | number;
90
50
  interface Item {
91
51
  brand?: string;
@@ -105,10 +65,4 @@ export declare namespace Gtag {
105
65
  price?: Currency;
106
66
  quantity?: number;
107
67
  }
108
- interface Promotion {
109
- creative_name?: string;
110
- creative_slot?: string;
111
- id?: string;
112
- name?: string;
113
- }
114
68
  }