@adtrackify/at-tracking-event-types 1.0.29 → 1.0.33
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/build.js +8 -4
- package/dist/index.d.ts +425 -1
- package/dist/index.js +5449 -18
- package/dist/index.js.map +7 -1
- package/package.json +7 -4
- package/src/index.ts +2 -1
- package/src/types/api/subscription.ts +115 -2
- package/tsconfig.json +2 -5
- package/dist/types/adtrackify-event-bus-event.d.ts +0 -13
- package/dist/types/adtrackify-event-bus-event.js +0 -3
- package/dist/types/adtrackify-event-bus-event.js.map +0 -1
- package/dist/types/adtrackify-standard-events.d.ts +0 -18
- package/dist/types/adtrackify-standard-events.js +0 -23
- package/dist/types/adtrackify-standard-events.js.map +0 -1
- package/dist/types/api/account.d.ts +0 -17
- package/dist/types/api/account.js +0 -10
- package/dist/types/api/account.js.map +0 -1
- package/dist/types/api/destination.d.ts +0 -44
- package/dist/types/api/destination.js +0 -3
- package/dist/types/api/destination.js.map +0 -1
- package/dist/types/api/destinations.d.ts +0 -6
- package/dist/types/api/destinations.js +0 -11
- package/dist/types/api/destinations.js.map +0 -1
- package/dist/types/api/index.d.ts +0 -6
- package/dist/types/api/index.js +0 -23
- package/dist/types/api/index.js.map +0 -1
- package/dist/types/api/shopify-app-install.d.ts +0 -46
- package/dist/types/api/shopify-app-install.js +0 -22
- package/dist/types/api/shopify-app-install.js.map +0 -1
- package/dist/types/api/subscription.d.ts +0 -49
- package/dist/types/api/subscription.js +0 -32
- package/dist/types/api/subscription.js.map +0 -1
- package/dist/types/api/user.d.ts +0 -13
- package/dist/types/api/user.js +0 -3
- package/dist/types/api/user.js.map +0 -1
- package/dist/types/index.d.ts +0 -5
- package/dist/types/index.js +0 -22
- package/dist/types/index.js.map +0 -1
- package/dist/types/third-party-event-configuration-types.d.ts +0 -8
- package/dist/types/third-party-event-configuration-types.js +0 -3
- package/dist/types/third-party-event-configuration-types.js.map +0 -1
- package/dist/types/tracking-event-type.d.ts +0 -125
- package/dist/types/tracking-event-type.js +0 -5
- package/dist/types/tracking-event-type.js.map +0 -1
- package/dist/utils/fake-tracking-event-generator.d.ts +0 -17
- package/dist/utils/fake-tracking-event-generator.js +0 -204
- package/dist/utils/fake-tracking-event-generator.js.map +0 -1
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/index.js +0 -18
- package/dist/utils/index.js.map +0 -1
- package/prettier.config.js +0 -9
package/build.js
CHANGED
|
@@ -11,12 +11,16 @@ new Generator({
|
|
|
11
11
|
output: 'dist/index.d.ts',
|
|
12
12
|
}).generate()
|
|
13
13
|
|
|
14
|
+
|
|
15
|
+
const shared = {
|
|
16
|
+
}
|
|
17
|
+
|
|
14
18
|
build({
|
|
15
19
|
entryPoints: ['./src/index.ts'],
|
|
16
|
-
|
|
20
|
+
external: Object.keys(dependencies),
|
|
17
21
|
bundle: true,
|
|
18
|
-
format: '
|
|
22
|
+
format: 'cjs',
|
|
19
23
|
platform: 'node',
|
|
20
24
|
sourcemap: 'linked',
|
|
21
|
-
|
|
22
|
-
})
|
|
25
|
+
outdir: 'dist',
|
|
26
|
+
})
|
package/dist/index.d.ts
CHANGED
|
@@ -1 +1,425 @@
|
|
|
1
|
-
|
|
1
|
+
declare module '@adtrackify/at-tracking-event-types/index' {
|
|
2
|
+
export * from '@adtrackify/at-tracking-event-types/types/index';
|
|
3
|
+
export * from '@adtrackify/at-tracking-event-types/utils/index';
|
|
4
|
+
|
|
5
|
+
}
|
|
6
|
+
declare module '@adtrackify/at-tracking-event-types/types/adtrackify-event-bus-event' {
|
|
7
|
+
import { TrackingEvent } from '@adtrackify/at-tracking-event-types/types/tracking-event-type';
|
|
8
|
+
export interface AdtrackifyEventBusEvent {
|
|
9
|
+
eventId: string;
|
|
10
|
+
eventType: string;
|
|
11
|
+
eventTime: string;
|
|
12
|
+
eventData?: object;
|
|
13
|
+
}
|
|
14
|
+
export interface AdtrackifyEventBusTrackingEvent extends AdtrackifyEventBusEvent {
|
|
15
|
+
eventData: {
|
|
16
|
+
trackingEvent: TrackingEvent;
|
|
17
|
+
pixelId: string;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
}
|
|
22
|
+
declare module '@adtrackify/at-tracking-event-types/types/adtrackify-standard-events' {
|
|
23
|
+
export enum ADTRACKIFY_STANDARD_EVENT {
|
|
24
|
+
ADD_PAYMENT_INFO = "add_payment_info",
|
|
25
|
+
ADD_SHIPPING_INFO = "add_shipping_info",
|
|
26
|
+
ADD_TO_CART = "add_to_cart",
|
|
27
|
+
ADD_TO_WISHLIST = "add_to_wishlist",
|
|
28
|
+
INITIATE_CHECKOUT = "initiate_checkout",
|
|
29
|
+
LEAD = "lead",
|
|
30
|
+
LOGIN = "login",
|
|
31
|
+
PAGE_VIEW = "page_view",
|
|
32
|
+
PURCHASE = "purchase",
|
|
33
|
+
REFUND = "refund",
|
|
34
|
+
SEARCH = "search",
|
|
35
|
+
SIGN_UP = "sign_up",
|
|
36
|
+
VIEW_CART = "view_cart",
|
|
37
|
+
VIEW_CONTENT = "view_content",
|
|
38
|
+
SELECT_SHIPPING_METHOD = "select_shipping_method",
|
|
39
|
+
VIRTUALIZED_VIEWED_PAYMENT_FORM = "virtualized_viewd_payment_form"
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
}
|
|
43
|
+
declare module '@adtrackify/at-tracking-event-types/types/api/account' {
|
|
44
|
+
export interface Account {
|
|
45
|
+
id: string;
|
|
46
|
+
accountName: string;
|
|
47
|
+
companyName?: string;
|
|
48
|
+
accountStatus: ACCOUNT_STATUS;
|
|
49
|
+
primaryEmail: string;
|
|
50
|
+
publicApiKey?: string;
|
|
51
|
+
subscriptionId?: string;
|
|
52
|
+
ownerId?: string;
|
|
53
|
+
createdAt: string;
|
|
54
|
+
updatedAt: string;
|
|
55
|
+
}
|
|
56
|
+
export enum ACCOUNT_STATUS {
|
|
57
|
+
PENDING = "pending",
|
|
58
|
+
ACTIVE = "active",
|
|
59
|
+
INACTIVE = "inactive"
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
}
|
|
63
|
+
declare module '@adtrackify/at-tracking-event-types/types/api/destination' {
|
|
64
|
+
export interface Destination {
|
|
65
|
+
id: string;
|
|
66
|
+
accountId: string;
|
|
67
|
+
pixelId: string;
|
|
68
|
+
destination: string;
|
|
69
|
+
displayName?: string;
|
|
70
|
+
enabled: boolean;
|
|
71
|
+
configuration?: any;
|
|
72
|
+
createdAt: string;
|
|
73
|
+
updatedAt: string;
|
|
74
|
+
}
|
|
75
|
+
export interface DestinationCatalogItem {
|
|
76
|
+
id: string;
|
|
77
|
+
active: boolean;
|
|
78
|
+
destinationKey: string;
|
|
79
|
+
destinationType: string;
|
|
80
|
+
displayName?: string;
|
|
81
|
+
shortName?: string;
|
|
82
|
+
description?: string;
|
|
83
|
+
url: string;
|
|
84
|
+
fields?: any;
|
|
85
|
+
createdAt: string;
|
|
86
|
+
updatedAt: string;
|
|
87
|
+
}
|
|
88
|
+
export interface DestinationCatalogFields {
|
|
89
|
+
component_type: string;
|
|
90
|
+
name: string;
|
|
91
|
+
description: string;
|
|
92
|
+
label: string;
|
|
93
|
+
type: string;
|
|
94
|
+
required: boolean;
|
|
95
|
+
order: number;
|
|
96
|
+
}
|
|
97
|
+
export interface AdTrackifyFacebookDestination extends Destination {
|
|
98
|
+
configuration: FacebookPixelConfiguration;
|
|
99
|
+
}
|
|
100
|
+
export interface FacebookPixelConfiguration {
|
|
101
|
+
apiAccessToken?: string;
|
|
102
|
+
enableConversionAPI: boolean;
|
|
103
|
+
pixelId: string;
|
|
104
|
+
}
|
|
105
|
+
export interface GoogleAnalytics4Configuration {
|
|
106
|
+
measurementId: string;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
}
|
|
110
|
+
declare module '@adtrackify/at-tracking-event-types/types/api/destinations' {
|
|
111
|
+
export enum DESTINATIONS {
|
|
112
|
+
FACEBOOK = "facebook",
|
|
113
|
+
TIKTOK = "tiktok",
|
|
114
|
+
GOOGLE_ADS = "googleAds",
|
|
115
|
+
GOOGLE_ANALYTICS_4 = "googleAnalytics4"
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
}
|
|
119
|
+
declare module '@adtrackify/at-tracking-event-types/types/api/index' {
|
|
120
|
+
export * from '@adtrackify/at-tracking-event-types/types/api/account';
|
|
121
|
+
export * from '@adtrackify/at-tracking-event-types/types/api/destination';
|
|
122
|
+
export * from '@adtrackify/at-tracking-event-types/types/api/destinations';
|
|
123
|
+
export * from '@adtrackify/at-tracking-event-types/types/api/shopify-app-install';
|
|
124
|
+
export * from '@adtrackify/at-tracking-event-types/types/api/subscription';
|
|
125
|
+
export * from '@adtrackify/at-tracking-event-types/types/api/user';
|
|
126
|
+
|
|
127
|
+
}
|
|
128
|
+
declare module '@adtrackify/at-tracking-event-types/types/api/shopify-app-install' {
|
|
129
|
+
export interface ShopifyAppInstall {
|
|
130
|
+
shopifyAppInstallId: string;
|
|
131
|
+
shop: string;
|
|
132
|
+
accessToken?: string;
|
|
133
|
+
appStatus?: string;
|
|
134
|
+
appSubscriptionStatus?: ShopifyAppSubscriptionStatus;
|
|
135
|
+
code?: string;
|
|
136
|
+
hmac?: string;
|
|
137
|
+
host?: string;
|
|
138
|
+
installRequest?: ShopifyInstallRequest;
|
|
139
|
+
isAppEnabled?: boolean;
|
|
140
|
+
pixelId?: string;
|
|
141
|
+
shopInfo?: any;
|
|
142
|
+
state?: string;
|
|
143
|
+
timestamp?: number;
|
|
144
|
+
createdAt: string;
|
|
145
|
+
updatedAt: string;
|
|
146
|
+
}
|
|
147
|
+
export enum ShopifyAppInstallStatus {
|
|
148
|
+
STARTED = "started",
|
|
149
|
+
COMPLETED = "completed",
|
|
150
|
+
UNINSTALLED = "uninstalled",
|
|
151
|
+
FAILED = "failed",
|
|
152
|
+
NONE = "none"
|
|
153
|
+
}
|
|
154
|
+
export enum ShopifyAppSubscriptionStatus {
|
|
155
|
+
ACTIVE = "active",
|
|
156
|
+
CANCELLED = "cancelled",
|
|
157
|
+
DECLINED = "declined",
|
|
158
|
+
EXPIRED = "expired",
|
|
159
|
+
FROZEN = "frozen",
|
|
160
|
+
PENDING = "pending",
|
|
161
|
+
NOT_SUBMITTED = "na"
|
|
162
|
+
}
|
|
163
|
+
export interface ShopifyInstallRequest {
|
|
164
|
+
shop?: string;
|
|
165
|
+
session?: string;
|
|
166
|
+
hmac?: string;
|
|
167
|
+
host?: string;
|
|
168
|
+
nonce?: string;
|
|
169
|
+
timestamp?: string;
|
|
170
|
+
status?: string;
|
|
171
|
+
}
|
|
172
|
+
export interface ShopifyStoreInfo {
|
|
173
|
+
[key: string]: any;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
}
|
|
177
|
+
declare module '@adtrackify/at-tracking-event-types/types/api/subscription' {
|
|
178
|
+
export interface Subscription {
|
|
179
|
+
id: string;
|
|
180
|
+
accountId?: string;
|
|
181
|
+
shopifyAppInstallId?: string;
|
|
182
|
+
shopifyDomain?: string;
|
|
183
|
+
stripeCustomerId?: string;
|
|
184
|
+
stripeSubscriptionId?: string;
|
|
185
|
+
stripeCompletedCheckoutSession?: any;
|
|
186
|
+
shopifyChargeId?: string;
|
|
187
|
+
subscriptionPlan?: SubscriptionPlan;
|
|
188
|
+
status?: SUBSCRIPTION_STATUS;
|
|
189
|
+
paymentStatus?: PAYMENT_STATUS;
|
|
190
|
+
paymentGateway?: PAYMENT_GATEWAY;
|
|
191
|
+
createdAt: string;
|
|
192
|
+
updatedAt: string;
|
|
193
|
+
}
|
|
194
|
+
export interface SubscriptionPlan {
|
|
195
|
+
id: number;
|
|
196
|
+
planName: string;
|
|
197
|
+
description: string;
|
|
198
|
+
sku: string;
|
|
199
|
+
price: string;
|
|
200
|
+
billingFrequency: PLAN_BILLING_FREQUENCY;
|
|
201
|
+
trialLengthDays?: number;
|
|
202
|
+
trialRequiresCreditCard?: boolean;
|
|
203
|
+
}
|
|
204
|
+
export enum PLAN_BILLING_FREQUENCY {
|
|
205
|
+
MONTHLY = "monthly",
|
|
206
|
+
YEARLY = "yearly"
|
|
207
|
+
}
|
|
208
|
+
export enum PAYMENT_STATUS {
|
|
209
|
+
CURRENT = "current",
|
|
210
|
+
PAST_DUE = "past_due",
|
|
211
|
+
CANCELLED = "cancelled",
|
|
212
|
+
FAILED = "failed"
|
|
213
|
+
}
|
|
214
|
+
export enum SUBSCRIPTION_STATUS {
|
|
215
|
+
ACTIVE = "active",
|
|
216
|
+
CANCELLED = "cancelled",
|
|
217
|
+
DECLINED = "declined",
|
|
218
|
+
EXPIRED = "expired",
|
|
219
|
+
FROZEN = "frozen",
|
|
220
|
+
PENDING = "pending",
|
|
221
|
+
NOT_SUBMITTED = "na"
|
|
222
|
+
}
|
|
223
|
+
export enum PAYMENT_GATEWAY {
|
|
224
|
+
STRIPE = "stripe",
|
|
225
|
+
PAYPAL = "paypal",
|
|
226
|
+
SHOPIFY = "shopify"
|
|
227
|
+
}
|
|
228
|
+
export const StripeBillingMap: any;
|
|
229
|
+
export const SubscriptionPlanSeedItems: {
|
|
230
|
+
items: SubscriptionPlan[];
|
|
231
|
+
};
|
|
232
|
+
export const getPlanDetails: (planId: number, stage: string) => SubscriptionPlan;
|
|
233
|
+
|
|
234
|
+
}
|
|
235
|
+
declare module '@adtrackify/at-tracking-event-types/types/api/user' {
|
|
236
|
+
export interface User {
|
|
237
|
+
id: string;
|
|
238
|
+
sub: string;
|
|
239
|
+
userId: string;
|
|
240
|
+
Username: string;
|
|
241
|
+
UserLastModifiedDate: string;
|
|
242
|
+
Enabled: boolean;
|
|
243
|
+
UserStatus: string;
|
|
244
|
+
email: string;
|
|
245
|
+
email_verified: string;
|
|
246
|
+
name: string;
|
|
247
|
+
family_name: string;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
}
|
|
251
|
+
declare module '@adtrackify/at-tracking-event-types/types/index' {
|
|
252
|
+
export * from '@adtrackify/at-tracking-event-types/types/adtrackify-standard-events';
|
|
253
|
+
export * from '@adtrackify/at-tracking-event-types/types/third-party-event-configuration-types';
|
|
254
|
+
export * from '@adtrackify/at-tracking-event-types/types/tracking-event-type';
|
|
255
|
+
export * from '@adtrackify/at-tracking-event-types/types/adtrackify-event-bus-event';
|
|
256
|
+
export * from '@adtrackify/at-tracking-event-types/types/api/index';
|
|
257
|
+
|
|
258
|
+
}
|
|
259
|
+
declare module '@adtrackify/at-tracking-event-types/types/third-party-event-configuration-types' {
|
|
260
|
+
export interface DestinationConfiguration {
|
|
261
|
+
eventConfigurations: DestinationEventSpecificConfiguration[];
|
|
262
|
+
}
|
|
263
|
+
export interface DestinationEventSpecificConfiguration {
|
|
264
|
+
enabled: boolean;
|
|
265
|
+
sourceEventName: string;
|
|
266
|
+
destinationEventName: string;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
}
|
|
270
|
+
declare module '@adtrackify/at-tracking-event-types/types/tracking-event-type' {
|
|
271
|
+
import { IResult } from 'ua-parser-js';
|
|
272
|
+
import { ADTRACKIFY_STANDARD_EVENT } from '@adtrackify/at-tracking-event-types/types/adtrackify-standard-events';
|
|
273
|
+
export interface TrackingEvent {
|
|
274
|
+
id: string;
|
|
275
|
+
type: string;
|
|
276
|
+
name: ADTRACKIFY_STANDARD_EVENT;
|
|
277
|
+
pixelId: string;
|
|
278
|
+
context: TrackingEventContext;
|
|
279
|
+
data: TrackingEventData;
|
|
280
|
+
testCode?: string;
|
|
281
|
+
sentAtEpoch?: number;
|
|
282
|
+
collectedAt?: string;
|
|
283
|
+
version: string;
|
|
284
|
+
}
|
|
285
|
+
export interface TrackingEventContext {
|
|
286
|
+
identity: TrackingEventIdentity;
|
|
287
|
+
click?: AdClickInfo;
|
|
288
|
+
campaign?: CampaignInfo;
|
|
289
|
+
page?: PageInfo;
|
|
290
|
+
device?: DeviceInfo;
|
|
291
|
+
locale?: string;
|
|
292
|
+
timezone?: string;
|
|
293
|
+
userAgent?: string;
|
|
294
|
+
ipAddress?: string;
|
|
295
|
+
ipv6Address?: string;
|
|
296
|
+
}
|
|
297
|
+
export interface TrackingEventIdentity {
|
|
298
|
+
gender?: string;
|
|
299
|
+
dob?: string;
|
|
300
|
+
phone?: string;
|
|
301
|
+
id?: string;
|
|
302
|
+
firstName?: string;
|
|
303
|
+
lastName?: string;
|
|
304
|
+
email?: string;
|
|
305
|
+
address?: AddressInfo;
|
|
306
|
+
addresses?: AddressInfo[];
|
|
307
|
+
}
|
|
308
|
+
export interface AdClickInfo {
|
|
309
|
+
fbp?: string;
|
|
310
|
+
fbc?: string;
|
|
311
|
+
fbclid?: string;
|
|
312
|
+
gclid?: string;
|
|
313
|
+
}
|
|
314
|
+
export interface TrackingEventData {
|
|
315
|
+
[key: string]: any;
|
|
316
|
+
firstName?: string;
|
|
317
|
+
lastName?: string;
|
|
318
|
+
email?: string;
|
|
319
|
+
phone?: string;
|
|
320
|
+
addresses?: AddressInfo[];
|
|
321
|
+
cartId?: string;
|
|
322
|
+
transactionId?: string;
|
|
323
|
+
affiliation?: string;
|
|
324
|
+
currency?: string;
|
|
325
|
+
price?: number;
|
|
326
|
+
subtotalPrice?: number;
|
|
327
|
+
value?: number;
|
|
328
|
+
tax?: number;
|
|
329
|
+
shipping?: number;
|
|
330
|
+
coupon?: string;
|
|
331
|
+
paymentType?: string;
|
|
332
|
+
shippingTier?: string;
|
|
333
|
+
creativeName?: string;
|
|
334
|
+
creativeSlot?: string;
|
|
335
|
+
locationId?: string;
|
|
336
|
+
promotionId?: string;
|
|
337
|
+
promotionName?: string;
|
|
338
|
+
items?: GenericContent[];
|
|
339
|
+
}
|
|
340
|
+
export interface GenericContent {
|
|
341
|
+
[key: string]: any;
|
|
342
|
+
content_type?: string;
|
|
343
|
+
id?: string;
|
|
344
|
+
name?: string;
|
|
345
|
+
sku?: string;
|
|
346
|
+
brand?: string;
|
|
347
|
+
variant?: string;
|
|
348
|
+
coupon?: string;
|
|
349
|
+
currency?: string;
|
|
350
|
+
discount?: number;
|
|
351
|
+
index?: number;
|
|
352
|
+
value?: number;
|
|
353
|
+
price?: number;
|
|
354
|
+
quantity?: number;
|
|
355
|
+
url?: string;
|
|
356
|
+
locationId?: string;
|
|
357
|
+
imageUrl?: string;
|
|
358
|
+
category?: string;
|
|
359
|
+
category2?: string;
|
|
360
|
+
category3?: string;
|
|
361
|
+
category4?: string;
|
|
362
|
+
category5?: string;
|
|
363
|
+
}
|
|
364
|
+
export interface AddressInfo {
|
|
365
|
+
email?: string;
|
|
366
|
+
phone?: string;
|
|
367
|
+
firstName?: string;
|
|
368
|
+
lastName?: string;
|
|
369
|
+
company?: string;
|
|
370
|
+
address1?: string;
|
|
371
|
+
address2?: string;
|
|
372
|
+
city?: string;
|
|
373
|
+
province?: string;
|
|
374
|
+
provinceCode?: string;
|
|
375
|
+
country?: string;
|
|
376
|
+
countryCode?: string;
|
|
377
|
+
zip?: string;
|
|
378
|
+
}
|
|
379
|
+
export interface CampaignInfo {
|
|
380
|
+
name?: string;
|
|
381
|
+
source?: string;
|
|
382
|
+
medium?: string;
|
|
383
|
+
term?: string;
|
|
384
|
+
content?: string;
|
|
385
|
+
}
|
|
386
|
+
export interface PageInfo {
|
|
387
|
+
path?: string;
|
|
388
|
+
referrer?: string;
|
|
389
|
+
search?: string;
|
|
390
|
+
title?: string;
|
|
391
|
+
url?: string;
|
|
392
|
+
qsp?: any;
|
|
393
|
+
}
|
|
394
|
+
export type DeviceInfo = IResult;
|
|
395
|
+
export const Currencies: string[];
|
|
396
|
+
|
|
397
|
+
}
|
|
398
|
+
declare module '@adtrackify/at-tracking-event-types/utils/fake-tracking-event-generator' {
|
|
399
|
+
import { AdClickInfo, AddressInfo, CampaignInfo, GenericContent, PageInfo, TrackingEvent, TrackingEventContext, TrackingEventIdentity } from '@adtrackify/at-tracking-event-types/index';
|
|
400
|
+
export const generateFakeTrackingEvent: (event?: Partial<TrackingEvent>) => TrackingEvent;
|
|
401
|
+
export const populateGenericTrackingEventData: (event?: Partial<TrackingEvent>) => TrackingEvent;
|
|
402
|
+
export const generateFakePurchaseEvent: (event?: Partial<TrackingEvent>) => TrackingEvent;
|
|
403
|
+
export const generateFakeViewContentEvent: (event?: Partial<TrackingEvent>) => TrackingEvent;
|
|
404
|
+
export const generateFakeAddToCartEvent: (event?: Partial<TrackingEvent>) => TrackingEvent;
|
|
405
|
+
export const generateFakeEcommerceItems: (numItems?: number) => GenericContent[];
|
|
406
|
+
export const generateFakeEcommerceItem: () => GenericContent;
|
|
407
|
+
export const generateFakeEventContext: (context?: Partial<TrackingEventContext>) => TrackingEventContext;
|
|
408
|
+
export const generateFakePageInfo: (pageInfo?: Partial<PageInfo>) => PageInfo;
|
|
409
|
+
export const generateFakeCampiagnInfo: (campaignInfo?: Partial<CampaignInfo>) => CampaignInfo;
|
|
410
|
+
export const generateFakeAdClickInfo: (clickInfo?: Partial<AdClickInfo>) => AdClickInfo;
|
|
411
|
+
export const generateFakeTrackingEventIdentity: (identity?: Partial<TrackingEventIdentity>) => TrackingEventIdentity;
|
|
412
|
+
export const generateFakeAddress: (address?: AddressInfo) => AddressInfo;
|
|
413
|
+
export const choasFake: <T>(input?: T | undefined) => T | null | undefined;
|
|
414
|
+
export function randomEnum<T>(anEnum: T): T[keyof T];
|
|
415
|
+
export const randomEnumKey: (enumeration: any) => string;
|
|
416
|
+
|
|
417
|
+
}
|
|
418
|
+
declare module '@adtrackify/at-tracking-event-types/utils/index' {
|
|
419
|
+
export * from '@adtrackify/at-tracking-event-types/utils/fake-tracking-event-generator';
|
|
420
|
+
|
|
421
|
+
}
|
|
422
|
+
declare module '@adtrackify/at-tracking-event-types' {
|
|
423
|
+
import main = require('@adtrackify/at-tracking-event-types/src/index');
|
|
424
|
+
export = main;
|
|
425
|
+
}
|