@technoapple/ga4 1.0.0 → 1.0.2

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.
@@ -0,0 +1,8 @@
1
+ /**
2
+ * get value from dataLayer
3
+ * @param key key to search from dataLayer
4
+ * @param getLast boolean, false (default) find the first item, true search the last value for the same key
5
+ * @returns return the value if find, otherwise return empty string;
6
+ */
7
+ declare function get(key: string, getLast?: boolean): string | object;
8
+ export { get };
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.get = void 0;
4
+ /**
5
+ * get value from dataLayer
6
+ * @param key key to search from dataLayer
7
+ * @param getLast boolean, false (default) find the first item, true search the last value for the same key
8
+ * @returns return the value if find, otherwise return empty string;
9
+ */
10
+ function get(key, getLast) {
11
+ if (window.dataLayer) {
12
+ const data = getLast
13
+ ? window.dataLayer?.findLast((item) => item[key])
14
+ : window.dataLayer?.find((item) => item[key]);
15
+ return data ? data[key] : '';
16
+ }
17
+ return '';
18
+ }
19
+ exports.get = get;
20
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0YUxheWVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2RhdGFMYXllci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQTs7Ozs7R0FLRztBQUNILFNBQVMsR0FBRyxDQUFDLEdBQVUsRUFBRSxPQUFnQjtJQUVyQyxJQUFJLE1BQU0sQ0FBQyxTQUFTLEVBQUU7UUFDbEIsTUFBTSxJQUFJLEdBQUcsT0FBTztZQUNwQixDQUFDLENBQUMsTUFBTSxDQUFDLFNBQVMsRUFBRSxRQUFRLENBQUMsQ0FBQyxJQUFJLEVBQUUsRUFBRSxDQUFDLElBQUksQ0FBQyxHQUFHLENBQUMsQ0FBQztZQUNqRCxDQUFDLENBQUMsTUFBTSxDQUFDLFNBQVMsRUFBRSxJQUFJLENBQUMsQ0FBQyxJQUFJLEVBQUUsRUFBRSxDQUFDLElBQUksQ0FBQyxHQUFHLENBQUMsQ0FBQyxDQUFDO1FBQzlDLE9BQU8sSUFBSSxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQyxDQUFDLEVBQUUsQ0FBQztLQUNoQztJQUVELE9BQU8sRUFBRSxDQUFDO0FBQ2QsQ0FBQztBQUVPLGtCQUFHIn0=
@@ -0,0 +1,10 @@
1
+ import { ga4Option } from "./ga4option";
2
+ import { KeyValueParams } from "../types/gtag";
3
+ declare class ga4 {
4
+ private static instance;
5
+ private constructor();
6
+ init(option: ga4Option): void;
7
+ static getInstance(): ga4;
8
+ event(eventName: string, eventParameters: KeyValueParams): boolean;
9
+ }
10
+ export { ga4 };
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ga4 = void 0;
4
+ class ga4 {
5
+ static instance;
6
+ constructor() {
7
+ }
8
+ init(option) {
9
+ window.dataLayer = window.dataLayer || (Array);
10
+ window.gtag = window.gtag || function () {
11
+ window.dataLayer.push(arguments);
12
+ };
13
+ window.gtag('js', new Date());
14
+ window.gtag('config', option.targetId);
15
+ }
16
+ static getInstance() {
17
+ if (!ga4.instance) {
18
+ ga4.instance = new ga4();
19
+ }
20
+ return ga4.instance;
21
+ }
22
+ event(eventName, eventParameters) {
23
+ window.gtag('event', eventName, eventParameters);
24
+ return true;
25
+ }
26
+ }
27
+ exports.ga4 = ga4;
28
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2E0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2dhNC9nYTQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBSUEsTUFBTSxHQUFHO0lBRUcsTUFBTSxDQUFDLFFBQVEsQ0FBTTtJQUU3QjtJQUNBLENBQUM7SUFFTSxJQUFJLENBQUMsTUFBZ0I7UUFDeEIsTUFBTSxDQUFDLFNBQVMsR0FBRyxNQUFNLENBQUMsU0FBUyxLQUFJLEtBQXNCLENBQUEsQ0FBQztRQUM5RCxNQUFNLENBQUMsSUFBSSxHQUFHLE1BQU0sQ0FBQyxJQUFJLElBQUk7WUFDekIsTUFBTSxDQUFDLFNBQVMsQ0FBQyxJQUFJLENBQUMsU0FBUyxDQUFDLENBQUM7UUFDckMsQ0FBQyxDQUFBO1FBQ0QsTUFBTSxDQUFDLElBQUksQ0FBQyxJQUFJLEVBQUUsSUFBSSxJQUFJLEVBQUUsQ0FBQyxDQUFDO1FBQzlCLE1BQU0sQ0FBQyxJQUFJLENBQUMsUUFBUSxFQUFFLE1BQU0sQ0FBQyxRQUFRLENBQUMsQ0FBQztJQUMzQyxDQUFDO0lBRU0sTUFBTSxDQUFDLFdBQVc7UUFDckIsSUFBSSxDQUFDLEdBQUcsQ0FBQyxRQUFRLEVBQUU7WUFDZixHQUFHLENBQUMsUUFBUSxHQUFHLElBQUksR0FBRyxFQUFFLENBQUM7U0FDNUI7UUFDRCxPQUFPLEdBQUcsQ0FBQyxRQUFRLENBQUM7SUFDeEIsQ0FBQztJQUVNLEtBQUssQ0FBQyxTQUFnQixFQUFFLGVBQStCO1FBRTFELE1BQU0sQ0FBQyxJQUFJLENBQUMsT0FBTyxFQUFFLFNBQVMsRUFBRSxlQUFlLENBQUMsQ0FBQztRQUVqRCxPQUFPLElBQUksQ0FBQztJQUNoQixDQUFDO0NBQ0o7QUFFTyxrQkFBRyJ9
@@ -0,0 +1,4 @@
1
+ interface ga4Option {
2
+ targetId: string;
3
+ }
4
+ export { ga4Option };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2E0b3B0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2dhNC9nYTRvcHRpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9
@@ -0,0 +1,3 @@
1
+ import { ga4 } from './ga4';
2
+ declare const ga: ga4;
3
+ export { ga };
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ga = void 0;
4
+ const ga4_1 = require("./ga4");
5
+ const ga = ga4_1.ga4.getInstance();
6
+ exports.ga = ga;
7
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvZ2E0L2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLCtCQUEwQjtBQUUxQixNQUFNLEVBQUUsR0FBRyxTQUFHLENBQUMsV0FBVyxFQUFFLENBQUM7QUFFckIsZ0JBQUUifQ==
@@ -0,0 +1,3 @@
1
+ import { ga } from './ga4/index';
2
+ import { get as dataLayerGet } from './dataLayer';
3
+ export { ga, dataLayerGet };
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.dataLayerGet = exports.ga = void 0;
4
+ const index_1 = require("./ga4/index");
5
+ Object.defineProperty(exports, "ga", { enumerable: true, get: function () { return index_1.ga; } });
6
+ const dataLayer_1 = require("./dataLayer");
7
+ Object.defineProperty(exports, "dataLayerGet", { enumerable: true, get: function () { return dataLayer_1.get; } });
8
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsdUNBQStCO0FBR3ZCLG1GQUhBLFVBQUUsT0FHQTtBQUZWLDJDQUFnRDtBQUVwQyw2RkFGRyxlQUFZLE9BRUgifQ==
@@ -0,0 +1,8 @@
1
+ interface KeyValuePair {
2
+ [key: string | number]: any;
3
+ }
4
+ interface DataLayerObject extends KeyValuePair {
5
+ event?: string;
6
+ value?: string;
7
+ }
8
+ export { DataLayerObject };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0YUxheWVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL3R5cGVzL2RhdGFMYXllci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=
@@ -0,0 +1,12 @@
1
+ import { DataLayerObject } from "./dataLayer";
2
+ import { gtag } from "./gtag";
3
+ declare global {
4
+ interface Array<T> {
5
+ findLast(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): T | undefined;
6
+ }
7
+ interface Window {
8
+ dataLayer: Array<DataLayerObject>;
9
+ gtag: gtag;
10
+ }
11
+ }
12
+ export {};
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2xvYmFsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL3R5cGVzL2dsb2JhbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=
@@ -0,0 +1,224 @@
1
+ /**
2
+ * gtag definition, referenced via here https://developers.google.com/tag-platform/gtagjs/reference
3
+ *
4
+ */
5
+ type requestedFieldCallback = (fieldName: string) => void;
6
+ type eventCallback = () => void;
7
+ interface KeyValueParams {
8
+ [key: string]: string | number | boolean;
9
+ }
10
+ interface ConsentParams {
11
+ ad_storage: 'granted' | 'denied';
12
+ analytics_storage: 'granted' | 'denied';
13
+ wait_for_update: number;
14
+ }
15
+ interface ControlParams {
16
+ groups: string;
17
+ send_to: string;
18
+ event_callback: eventCallback;
19
+ event_timeout: number;
20
+ }
21
+ interface ItemParameters {
22
+ item_id: string;
23
+ item_name: string;
24
+ affiliation?: string;
25
+ coupon?: string;
26
+ discount?: number;
27
+ index?: number;
28
+ item_brand?: string;
29
+ item_category?: string;
30
+ item_category2?: string;
31
+ item_category3?: string;
32
+ item_category4?: string;
33
+ item_category5?: string;
34
+ item_list_id?: string;
35
+ item_list_name?: string;
36
+ item_variant?: string;
37
+ location_id?: string;
38
+ price?: number;
39
+ quantity?: number;
40
+ }
41
+ interface PromotionParameters extends ItemParameters {
42
+ creative_name?: string;
43
+ creative_slot?: string;
44
+ promotion_id?: string;
45
+ promotion_name?: string;
46
+ }
47
+ interface AddPaymentInfo {
48
+ currency: string;
49
+ value: number;
50
+ coupon?: string;
51
+ payment_type?: string;
52
+ items: Array<ItemParameters>;
53
+ }
54
+ interface AddShippingInfo {
55
+ currency: string;
56
+ value: number;
57
+ coupon?: string;
58
+ shipping_tier?: string;
59
+ items: Array<ItemParameters>;
60
+ }
61
+ interface AddToCart {
62
+ currency: string;
63
+ value: number;
64
+ items: Array<ItemParameters>;
65
+ }
66
+ interface AddToWishlistOrRemoveFromCart {
67
+ currency: string;
68
+ value: number;
69
+ items: Array<ItemParameters>;
70
+ }
71
+ interface EarnVirtualCurrency {
72
+ earn_virtual_currency?: string;
73
+ value?: number;
74
+ }
75
+ interface Exception {
76
+ description?: string;
77
+ fatal?: boolean;
78
+ }
79
+ interface GenerateLead {
80
+ currency: string;
81
+ value: number;
82
+ }
83
+ interface LevelEnd {
84
+ level_name?: string;
85
+ success?: boolean;
86
+ }
87
+ interface LevelUp {
88
+ level?: number;
89
+ character?: string;
90
+ }
91
+ interface PageView {
92
+ page_location?: string;
93
+ client_id?: string;
94
+ language?: string;
95
+ page_encoding?: string;
96
+ page_title?: string;
97
+ user_agent?: string;
98
+ }
99
+ interface PostScore {
100
+ score: number;
101
+ level?: number;
102
+ character?: string;
103
+ }
104
+ interface PurchaseRefund {
105
+ currency: string;
106
+ transaction_id: string;
107
+ value: number;
108
+ coupon?: string;
109
+ shipping?: number;
110
+ tax?: number;
111
+ items: Array<ItemParameters>;
112
+ }
113
+ interface SelectContent {
114
+ content_type?: string;
115
+ content_id?: string;
116
+ }
117
+ interface SelectItem {
118
+ item_list_id?: string;
119
+ item_list_name?: string;
120
+ items: Array<ItemParameters>;
121
+ }
122
+ interface SelectPromotion {
123
+ creative_name?: string;
124
+ creative_slot?: string;
125
+ promotion_id?: string;
126
+ promotion_name?: string;
127
+ items: Array<PromotionParameters>;
128
+ }
129
+ interface Share {
130
+ method?: string;
131
+ content_type?: string;
132
+ item_id?: string;
133
+ }
134
+ interface SignUp {
135
+ method?: string;
136
+ }
137
+ interface SpendVirtualCurrency {
138
+ value: number;
139
+ virtual_currency_name: string;
140
+ item_name: string;
141
+ }
142
+ interface UnlockAchievement {
143
+ achievement_id: string;
144
+ }
145
+ interface ViewCart {
146
+ currency: string;
147
+ value: number;
148
+ items: Array<ItemParameters>;
149
+ }
150
+ interface ViewItem {
151
+ currency: string;
152
+ value: number;
153
+ items: Array<ItemParameters>;
154
+ }
155
+ interface ViewItemList {
156
+ item_list_id?: string;
157
+ item_list_name?: string;
158
+ items: Array<ItemParameters>;
159
+ }
160
+ interface ViewPromotion {
161
+ creative_name?: string;
162
+ creative_slot?: string;
163
+ promotion_id?: string;
164
+ promotion_name?: string;
165
+ items: Array<PromotionParameters>;
166
+ }
167
+ interface ViewSearchResults {
168
+ search_term?: string;
169
+ }
170
+ interface JoinGroup {
171
+ group_id?: string;
172
+ }
173
+ interface LevelStart {
174
+ level_name: string;
175
+ }
176
+ interface Login {
177
+ login?: string;
178
+ }
179
+ interface Search {
180
+ search_term: string;
181
+ }
182
+ interface gtag {
183
+ (command: 'config', TARGET_ID: string, configInfo?: KeyValueParams | ControlParams): void;
184
+ (command: 'js', value: Date): void;
185
+ (command: 'get', TARGET_ID: string, fieldName: string, callbackFunc: requestedFieldCallback): void;
186
+ (command: 'set', customerParameter: KeyValueParams | ControlParams): void;
187
+ (command: 'event', eventName: 'add_payment_info', customerParameter: AddPaymentInfo | KeyValueParams | ControlParams): void;
188
+ (command: 'event', eventName: 'add_shipping_info', customerParameter: AddShippingInfo | KeyValueParams | ControlParams): void;
189
+ (command: 'event', eventName: 'add_to_cart', customerParameter: AddToCart | KeyValueParams | ControlParams): void;
190
+ (command: 'event', eventName: 'add_to_wishlist', customerParameter: AddToWishlistOrRemoveFromCart | KeyValueParams | ControlParams): void;
191
+ (command: 'event', eventName: 'begin_checkout', customerParameter: AddToWishlistOrRemoveFromCart | KeyValueParams | ControlParams): void;
192
+ (command: 'event', eventName: 'earn_virtual_currency', customerParameter: EarnVirtualCurrency | KeyValueParams | ControlParams): void;
193
+ (command: 'event', eventName: 'exception', customerParameter: Exception | KeyValueParams | ControlParams): void;
194
+ (command: 'event', eventName: 'generate_lead', customerParameter: GenerateLead | KeyValueParams | ControlParams): void;
195
+ (command: 'event', eventName: 'join_group', customerParameter: JoinGroup | KeyValueParams | ControlParams): void;
196
+ (command: 'event', eventName: 'level_end', customerParameter: LevelEnd | KeyValueParams | ControlParams): void;
197
+ (command: 'event', eventName: 'level_start', customerParameter: LevelStart | KeyValueParams | ControlParams): void;
198
+ (command: 'event', eventName: 'level_up', customerParameter: LevelUp | KeyValueParams | ControlParams): void;
199
+ (command: 'event', eventName: 'login', customerParameter: Login | KeyValueParams | ControlParams): void;
200
+ (command: 'event', eventName: 'page_view', customerParameter: PageView | KeyValueParams | ControlParams): void;
201
+ (command: 'event', eventName: 'post_score', customerParameter: PostScore | KeyValueParams | ControlParams): void;
202
+ (command: 'event', eventName: 'purchase', customerParameter: PurchaseRefund | KeyValueParams | ControlParams): void;
203
+ (command: 'event', eventName: 'refund', customerParameter: PurchaseRefund | KeyValueParams | ControlParams): void;
204
+ (command: 'event', eventName: 'remove_from_cart', customerParameter: AddToWishlistOrRemoveFromCart | KeyValueParams | ControlParams): void;
205
+ (command: 'event', eventName: 'search', customerParameter: Search | KeyValueParams | ControlParams): void;
206
+ (command: 'event', eventName: 'select_content', customerParameter: SelectContent | KeyValueParams | ControlParams): void;
207
+ (command: 'event', eventName: 'select_item', customerParameter: SelectItem | KeyValueParams | ControlParams): void;
208
+ (command: 'event', eventName: 'select_promotion', customerParameter: SelectPromotion | KeyValueParams | ControlParams): void;
209
+ (command: 'event', eventName: 'share', customerParameter: Share | KeyValueParams | ControlParams): void;
210
+ (command: 'event', eventName: 'sign_up', customerParameter: SignUp | KeyValueParams | ControlParams): void;
211
+ (command: 'event', eventName: 'spend_virtual_currency', customerParameter: SpendVirtualCurrency | KeyValueParams | ControlParams): void;
212
+ (command: 'event', eventName: 'tutorial_begin', customerParameter: KeyValueParams | ControlParams): void;
213
+ (command: 'event', eventName: 'tutorial_complete', customerParameter: KeyValueParams | ControlParams): void;
214
+ (command: 'event', eventName: 'unlock_achievement', customerParameter: UnlockAchievement | KeyValueParams | ControlParams): void;
215
+ (command: 'event', eventName: 'view_cart', customerParameter: ViewCart | KeyValueParams | ControlParams): void;
216
+ (command: 'event', eventName: 'view_item', customerParameter: ViewItem | KeyValueParams | ControlParams): void;
217
+ (command: 'event', eventName: 'view_item_list', customerParameter: ViewItemList | KeyValueParams | ControlParams): void;
218
+ (command: 'event', eventName: 'view_promotion', customerParameter: ViewPromotion | KeyValueParams | ControlParams): void;
219
+ (command: 'event', eventName: 'view_search_results', customerParameter: ViewSearchResults | KeyValueParams | ControlParams): void;
220
+ (command: 'event', eventName: string, customerParameter: KeyValueParams | ControlParams): void;
221
+ (command: 'consent', consent: 'default', customerParameter: ConsentParams | KeyValueParams): void;
222
+ (command: 'consent', consent: 'update', customerParameter: ConsentParams | KeyValueParams): void;
223
+ }
224
+ export { gtag, KeyValueParams };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ3RhZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy90eXBlcy9ndGFnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
@@ -0,0 +1 @@
1
+ {"program":{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2019.intl.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/typescript/lib/lib.decorators.d.ts","../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../src/datalayer.ts","../src/ga4/ga4option.ts","../src/types/datalayer.ts","../src/types/gtag.ts","../src/ga4/ga4.ts","../src/ga4/index.ts","../src/index.ts","../src/types/global.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/assert/strict.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/diagnostics_channel.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/dns/promises.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/dom-events.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/readline/promises.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/stream/promises.d.ts","../node_modules/@types/node/stream/consumers.d.ts","../node_modules/@types/node/stream/web.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/test.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/timers/promises.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/globals.global.d.ts","../node_modules/@types/node/index.d.ts"],"fileInfos":[{"version":"6a6b471e7e43e15ef6f8fe617a22ce4ecb0e34efa6c3dfcfe7cebd392bcca9d2","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","dc48272d7c333ccf58034c0026162576b7d50ea0e69c3b9292f803fc20720fd5","27147504487dc1159369da4f4da8a26406364624fa9bc3db632f7d94a5bae2c3","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4",{"version":"fcd3ecc9f764f06f4d5c467677f4f117f6abf49dee6716283aa204ff1162498b","affectsGlobalScope":true},{"version":"f296963760430fb65b4e5d91f0ed770a91c6e77455bacf8fa23a1501654ede0e","affectsGlobalScope":true},{"version":"5114a95689b63f96b957e00216bc04baf9e1a1782aa4d8ee7e5e9acbf768e301","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"ab22100fdd0d24cfc2cc59d0a00fc8cf449830d9c4030dc54390a46bd562e929","affectsGlobalScope":true},{"version":"f7bd636ae3a4623c503359ada74510c4005df5b36de7f23e1db8a5c543fd176b","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"0c20f4d2358eb679e4ae8a4432bdd96c857a2960fd6800b21ec4008ec59d60ea","affectsGlobalScope":true},{"version":"36ae84ccc0633f7c0787bc6108386c8b773e95d3b052d9464a99cd9b8795fbec","affectsGlobalScope":true},{"version":"82d0d8e269b9eeac02c3bd1c9e884e85d483fcb2cd168bccd6bc54df663da031","affectsGlobalScope":true},{"version":"b8deab98702588840be73d67f02412a2d45a417a3c097b2e96f7f3a42ac483d1","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"376d554d042fb409cb55b5cbaf0b2b4b7e669619493c5d18d5fa8bd67273f82a","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"c4138a3dd7cd6cf1f363ca0f905554e8d81b45844feea17786cdf1626cb8ea06","affectsGlobalScope":true},{"version":"6ff3e2452b055d8f0ec026511c6582b55d935675af67cdb67dd1dc671e8065df","affectsGlobalScope":true},{"version":"03de17b810f426a2f47396b0b99b53a82c1b60e9cba7a7edda47f9bb077882f4","affectsGlobalScope":true},{"version":"8184c6ddf48f0c98429326b428478ecc6143c27f79b79e85740f17e6feb090f1","affectsGlobalScope":true},{"version":"261c4d2cf86ac5a89ad3fb3fafed74cbb6f2f7c1d139b0540933df567d64a6ca","affectsGlobalScope":true},{"version":"6af1425e9973f4924fca986636ac19a0cf9909a7e0d9d3009c349e6244e957b6","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"15a630d6817718a2ddd7088c4f83e4673fde19fa992d2eae2cf51132a302a5d3","affectsGlobalScope":true},{"version":"b7e9f95a7387e3f66be0ed6db43600c49cec33a3900437ce2fd350d9b7cb16f2","affectsGlobalScope":true},{"version":"01e0ee7e1f661acedb08b51f8a9b7d7f959e9cdb6441360f06522cc3aea1bf2e","affectsGlobalScope":true},{"version":"ac17a97f816d53d9dd79b0d235e1c0ed54a8cc6a0677e9a3d61efb480b2a3e4e","affectsGlobalScope":true},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true},{"version":"ec0104fee478075cb5171e5f4e3f23add8e02d845ae0165bfa3f1099241fa2aa","affectsGlobalScope":true},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true},{"version":"9cc66b0513ad41cb5f5372cca86ef83a0d37d1c1017580b7dace3ea5661836df","affectsGlobalScope":true},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true},{"version":"307c8b7ebbd7f23a92b73a4c6c0a697beca05b06b036c23a34553e5fe65e4fdc","affectsGlobalScope":true},{"version":"189c0703923150aa30673fa3de411346d727cc44a11c75d05d7cf9ef095daa22","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},{"version":"183e3fd92a9bf5a0b3f05cf642c49c1da2e487b21ec119aaf58b50699ff4b1ef","signature":"2dfb686889561fe1a686902c9892915da543c19941077707c0d063be62aa1de3"},{"version":"7443e1a6295df9ee39c9a5767b35ce1d541b2df5f73342a35f9b03702ef3696c","signature":"18702c5a5b1261e42757524b7d389aec3f1908f2f54fd0b04cba5ed0b6d5f6c1"},{"version":"4505cd6a0299cff3e39ddf9230f2fa71f51876c1499d6410437092678f4e84e6","signature":"c27bbc52e3f861f48cb5967ae5291c81017e22ac4c98a5ce309bfccd1bc9552f"},{"version":"16999cd3ff740d294f6e24055da2fb2b44feaacf936dbf5b91ca7ed7d10b529d","signature":"c327ab63d0f885684f6073fbda0336cb514d8dbbea80e210136e73353586bb21"},{"version":"e12b95f63352133aac9d06dc42344f77c70a977e48a193a81dec7779cc3a4230","signature":"133247274d360493f8b1c07d4b033b6d0cc7816fa9692c1c37c66bc2af46c6b2"},{"version":"a1552f2ab1a7225f25e54b15af03a040ec5d07e67a5c3d5bd56d9ec13062d5af","signature":"ad2e67574fad659d6ac13584f527547d8eb99610c877c79a7bead55983f01b5e"},{"version":"78c15e741f3e77887f439c8d9ef4d1fbd02cad5308f0ac267e24bdedb4c45f2f","signature":"9c3bbd98613e5b80f2e69a132063243c3d917a57ab334afcb4a2c73d0fa1f672"},{"version":"08ab8124ff4e5837879385cfbb56a8ae1f8316f09586ca123740f867d7b8bf24","signature":"9e86fcc527bf70d1bde309fafc794cd4a0e663d334a3e2da89e96773cd92720b","affectsGlobalScope":true},"7e771891adaa85b690266bc37bd6eb43bc57eecc4b54693ead36467e7369952a","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"f749812878fecfa53cfc13b36e5d35086fb6377983a9df44175da83ccc23af1f","affectsGlobalScope":true},"7d2e3fea24c712c99c03ad8f556abedbfe105f87f1be10b95dbd409d24bc05a3",{"version":"211e3f15fbced4ab4be19f49ffa990b9ff20d749d33b65ff753be691e7616239","affectsGlobalScope":true},"374ca798f244e464346f14301dc2a8b4b111af1a83b49fffef5906c338a1f922","5a94487653355b56018122d92392beb2e5f4a6c63ba5cef83bbe1c99775ef713",{"version":"d5135ad93b33adcce80b18f8065087934cdc1730d63db58562edcf017e1aad9b","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","e596c9bb2f29a2699fdd4ae89139612652245192f67f45617c5a4b20832aaae9","bb9c4ffa5e6290c6980b63c815cdd1625876dadb2efaf77edbe82984be93e55e","1cdcfc1f624d6c08aa12c73935f6e13f095919cd99edf95752951796eb225729","216717f17c095cde1dc19375e1ab3af0a4a485355860c077a4f9d6ea59fab5b5","14b5aa23c5d0ae1907bc696ac7b6915d88f7d85799cc0dc2dcf98fbce2c5a67c","5c439dafdc09abe4d6c260a96b822fa0ba5be7203c71a63ab1f1423cd9e838ea",{"version":"6b526a5ec4a401ca7c26cfe6a48e641d8f30af76673bad3b06a1b4504594a960","affectsGlobalScope":true},{"version":"00dee7cdca8b8420c47ea4a31a34b8e8294013ebc4f463fd941e867e7bf05029","affectsGlobalScope":true},"80473bd0dd90ca1e166514c2dfead9d5803f9c51418864ca35abbeec6e6847e1","1c84b46267610a34028edfd0d035509341751262bac1062857f3c8df7aff7153","3bd1b21f21d18995315d232c5c7e868651e109396f3ca48fa8ab15f57a20d911","a3d541d303ee505053f5dcbf9fafb65cac3d5631037501cd616195863a6c5740","8d3c583a07e0c37e876908c2d5da575019f689df8d9fa4c081d99119d53dba22","2c828a5405191d006115ab34e191b8474bc6c86ffdc401d1a9864b1b6e088a58",{"version":"e630e5528e899219ae319e83bef54bf3bcb91b01d76861ecf881e8e614b167f0","affectsGlobalScope":true},"bcebb922784739bdb34c18ee51095d25a92b560c78ccd2eaacd6bd00f7443d83","7ee6ed878c4528215c82b664fe0cfe80e8b4da6c0d4cc80869367868774db8b1","b0973c3cbcdc59b37bf477731d468696ecaf442593ec51bab497a613a580fe30",{"version":"4989e92ba5b69b182d2caaea6295af52b7dc73a4f7a2e336a676722884e7139d","affectsGlobalScope":true},{"version":"0715e4cd28ad471b2a93f3e552ff51a3ae423417a01a10aa1d3bc7c6b95059d6","affectsGlobalScope":true},"5153a2fd150e46ce57bb3f8db1318d33f6ad3261ed70ceeff92281c0608c74a3","210d54cd652ec0fec8c8916e4af59bb341065576ecda039842f9ffb2e908507c","36b03690b628eab08703d63f04eaa89c5df202e5f1edf3989f13ad389cd2c091","0effadd232a20498b11308058e334d3339cc5bf8c4c858393e38d9d4c0013dcf","25846d43937c672bab7e8195f3d881f93495df712ee901860effc109918938cc","4f3fdeba4e28e21aa719c081b8dc8f91d47e12e773389b9d35679c08151c9d37","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff","69ee23dd0d215b09907ad30d23f88b7790c93329d1faf31d7835552a10cf7cbf","44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","23b89798789dffbd437c0c423f5d02d11f9736aea73d6abf16db4f812ff36eda","f69ff39996a61a0dd10f4bce73272b52e8024a4d58b13ab32bf4712909d0a2b7",{"version":"3c4ba1dd9b12ffa284b565063108f2f031d150ea15b8fafbdc17f5d2a07251f3","affectsGlobalScope":true},"e10177274a35a9d07c825615340b2fcde2f610f53f3fb40269fd196b4288dda6","1422cd9e705adcc09088fda85a900c2b70e3ad36ea85846f68bd1a884cdf4e2b","3c13ef48634e7b5012fcf7e8fce7496352c2d779a7201389ca96a2a81ee4314d","5d0a25ec910fa36595f85a67ac992d7a53dd4064a1ba6aea1c9f14ab73a023f2",{"version":"a73ae8c0e62103bb9e21bb6538700881bf135b9a8b125b857ec68edfa0da4ed3","affectsGlobalScope":true},{"version":"e1c1b2fbe236bf7ee3e342eeae7e20efb8988a0ac7da1cbbfa2c1f66b76c3423","affectsGlobalScope":true},"868831cab82b65dfe1d68180e898af1f2101e89ba9b754d1db6fb8cc2fac1921","0fe8985a28f82c450a04a6edf1279d7181c0893f37da7d2a27f8efd4fd5edb03","e59a892d87e72733e2a9ca21611b9beb52977be2696c7ba4b216cbbb9a48f5aa",{"version":"52120bb7e4583612225bdf08e7c12559548170f11e660d33a33623bae9bbdbba","affectsGlobalScope":true},"8a300fa9b698845a1f9c41ecbe2c5966634582a8e2020d51abcace9b55aa959e",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"a6dd3dba8e665ac43d279e0fdf5219edda0eed69b5e9a5061f46cd6a65c4f7a1"],"root":[[45,52]],"options":{"declaration":true,"esModuleInterop":true,"inlineSourceMap":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./main","rootDir":"../src","strict":true,"target":9},"fileIdsList":[[53,99],[56,99],[57,62,90,99],[58,69,70,77,87,98,99],[58,59,69,77,99],[60,99],[61,62,70,78,99],[62,87,95,99],[63,65,69,77,99],[64,99],[65,66,99],[69,99],[67,69,99],[69,70,71,87,98,99],[69,70,71,84,87,90,99],[99,103],[99],[65,72,77,87,98,99],[69,70,72,73,77,87,95,98,99],[72,74,87,95,98,99],[53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105],[69,75,99],[76,98,99],[65,69,77,87,99],[78,99],[79,99],[56,80,99],[81,97,99,103],[82,99],[83,99],[69,84,85,99],[84,86,99,101],[57,69,87,88,89,90,99],[57,87,89,99],[87,88,99],[90,99],[91,99],[69,93,94,99],[93,94,99],[62,77,87,95,99],[96,99],[77,97,99],[57,72,83,98,99],[62,99],[87,99,100],[99,101],[99,102],[57,62,69,71,80,87,98,99,101,103],[87,99,104],[46,47,48,99],[49,99],[45,50,99],[47,48,99],[46,48],[49],[45,50],[47,48]],"referencedMap":[[53,1],[54,1],[56,2],[57,3],[58,4],[59,5],[60,6],[61,7],[62,8],[63,9],[64,10],[65,11],[66,11],[68,12],[67,13],[69,12],[70,14],[71,15],[55,16],[105,17],[72,18],[73,19],[74,20],[106,21],[75,22],[76,23],[77,24],[78,25],[79,26],[80,27],[81,28],[82,29],[83,30],[84,31],[85,31],[86,32],[87,33],[89,34],[88,35],[90,36],[91,37],[92,17],[93,38],[94,39],[95,40],[96,41],[97,42],[98,43],[99,44],[100,45],[101,46],[102,47],[103,48],[104,49],[43,17],[44,17],[8,17],[10,17],[9,17],[2,17],[11,17],[12,17],[13,17],[14,17],[15,17],[16,17],[17,17],[18,17],[3,17],[4,17],[22,17],[19,17],[20,17],[21,17],[23,17],[24,17],[25,17],[5,17],[26,17],[27,17],[28,17],[29,17],[6,17],[33,17],[30,17],[31,17],[32,17],[34,17],[7,17],[35,17],[40,17],[41,17],[36,17],[37,17],[38,17],[39,17],[1,17],[42,17],[45,17],[49,50],[46,17],[50,51],[51,52],[47,17],[52,53],[48,17]],"exportedModulesMap":[[53,1],[54,1],[56,2],[57,3],[58,4],[59,5],[60,6],[61,7],[62,8],[63,9],[64,10],[65,11],[66,11],[68,12],[67,13],[69,12],[70,14],[71,15],[55,16],[105,17],[72,18],[73,19],[74,20],[106,21],[75,22],[76,23],[77,24],[78,25],[79,26],[80,27],[81,28],[82,29],[83,30],[84,31],[85,31],[86,32],[87,33],[89,34],[88,35],[90,36],[91,37],[92,17],[93,38],[94,39],[95,40],[96,41],[97,42],[98,43],[99,44],[100,45],[101,46],[102,47],[103,48],[104,49],[43,17],[44,17],[8,17],[10,17],[9,17],[2,17],[11,17],[12,17],[13,17],[14,17],[15,17],[16,17],[17,17],[18,17],[3,17],[4,17],[22,17],[19,17],[20,17],[21,17],[23,17],[24,17],[25,17],[5,17],[26,17],[27,17],[28,17],[29,17],[6,17],[33,17],[30,17],[31,17],[32,17],[34,17],[7,17],[35,17],[40,17],[41,17],[36,17],[37,17],[38,17],[39,17],[1,17],[42,17],[49,54],[50,55],[51,56],[52,57]],"semanticDiagnosticsPerFile":[53,54,56,57,58,59,60,61,62,63,64,65,66,68,67,69,70,71,55,105,72,73,74,106,75,76,77,78,79,80,81,82,83,84,85,86,87,89,88,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,43,44,8,10,9,2,11,12,13,14,15,16,17,18,3,4,22,19,20,21,23,24,25,5,26,27,28,29,6,33,30,31,32,34,7,35,40,41,36,37,38,39,1,42,45,49,46,50,51,47,52,48]},"version":"5.0.4"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@technoapple/ga4",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "TypeScript Node.js library to support GA4 analytics.",
5
5
  "main": "build/main/index.js",
6
6
  "typings": "build/main/index.d.ts",
@@ -13,15 +13,17 @@
13
13
  "build:main": "tsc -p tsconfig.json",
14
14
  "test": "jest",
15
15
  "test:coverage": "jest --coverage --silent",
16
- "deploy": "run-s build && npm publish",
16
+ "deploy": "run-s build && npm publish --access public",
17
17
  "doc:html": "typedoc src/ --exclude **/*.spec.ts --target ES6 --mode file --out build/docs",
18
18
  "doc:publish": "gh-pages -m \"[ci skip] Updates\" -d build/docs"
19
19
  },
20
20
  "keywords": [
21
21
  "typescript",
22
- "reading",
23
- "speak",
24
- "html"
22
+ "ga4",
23
+ "Google Analytic",
24
+ "gtag",
25
+ "dataLayer",
26
+ "analytics"
25
27
  ],
26
28
  "repository": "https://github.com/keke78ui9/ga4.git",
27
29
  "author": "keke78ui9",
package/src/index.ts ADDED
@@ -0,0 +1,4 @@
1
+ import {ga} from './ga4/index';
2
+ import {get as dataLayerGet} from './dataLayer';
3
+
4
+ export {ga, dataLayerGet};
package/src/types/gtag.ts CHANGED
@@ -79,13 +79,6 @@ interface AddToWishlistOrRemoveFromCart {
79
79
  items:Array<ItemParameters>;
80
80
  }
81
81
 
82
- interface BeginCheckout {
83
- currency:string;
84
- value:number;
85
- coupon?:string;
86
- items:Array<ItemParameters>;
87
- }
88
-
89
82
  interface EarnVirtualCurrency {
90
83
  earn_virtual_currency?:string;
91
84
  value?:number;