@blux.ai/web-sdk 1.2.1 → 1.3.0
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/dist/package.json +1 -1
- package/dist/src/BluxClient.d.ts +11 -8
- package/dist/src/BluxClient.js +114 -70
- package/dist/src/BluxClient.js.map +1 -1
- package/dist/src/apis/APIs.d.ts +69 -69
- package/dist/src/apis/APIs.js +2 -2
- package/dist/src/apis/APIs.js.map +1 -1
- package/dist/src/constants/BLUX_ATTRIBUTES.d.ts +2 -2
- package/dist/src/constants/BLUX_ATTRIBUTES.js +2 -2
- package/dist/src/constants/BLUX_ATTRIBUTES.js.map +1 -1
- package/dist/src/events/AddCartaddEvent.d.ts +1 -1
- package/dist/src/events/AddCartaddEvent.js +2 -2
- package/dist/src/events/AddCartaddEvent.js.map +1 -1
- package/dist/src/events/AddClickEvent.d.ts +5 -0
- package/dist/src/events/AddClickEvent.js +14 -0
- package/dist/src/events/AddClickEvent.js.map +1 -0
- package/dist/src/events/AddInstantImpressionEvent.d.ts +1 -1
- package/dist/src/events/AddInstantImpressionEvent.js +2 -3
- package/dist/src/events/AddInstantImpressionEvent.js.map +1 -1
- package/dist/src/events/AddLikeEvent.d.ts +1 -1
- package/dist/src/events/AddLikeEvent.js +2 -1
- package/dist/src/events/AddLikeEvent.js.map +1 -1
- package/dist/src/events/AddPageViewEvent.d.ts +1 -1
- package/dist/src/events/AddPageViewEvent.js +2 -2
- package/dist/src/events/AddPageViewEvent.js.map +1 -1
- package/dist/src/events/AddPageVisitEvent.d.ts +1 -1
- package/dist/src/events/AddPageVisitEvent.js +4 -1
- package/dist/src/events/AddPageVisitEvent.js.map +1 -1
- package/dist/src/events/AddPersistentImpressionEvent.d.ts +1 -1
- package/dist/src/events/AddPersistentImpressionEvent.js +2 -3
- package/dist/src/events/AddPersistentImpressionEvent.js.map +1 -1
- package/dist/src/events/AddProductDetailViewEvent.d.ts +1 -1
- package/dist/src/events/AddProductDetailViewEvent.js +2 -5
- package/dist/src/events/AddProductDetailViewEvent.js.map +1 -1
- package/dist/src/events/AddPurchaseEvent.d.ts +1 -1
- package/dist/src/events/AddPurchaseEvent.js +2 -1
- package/dist/src/events/AddPurchaseEvent.js.map +1 -1
- package/dist/src/events/AddRateEvent.d.ts +1 -1
- package/dist/src/events/AddRateEvent.js +2 -2
- package/dist/src/events/AddRateEvent.js.map +1 -1
- package/dist/src/events/AddSearchEvent.d.ts +1 -1
- package/dist/src/events/AddSearchEvent.js +2 -2
- package/dist/src/events/AddSearchEvent.js.map +1 -1
- package/dist/src/events/AddSectionViewEvent.d.ts +1 -1
- package/dist/src/events/AddSectionViewEvent.js +2 -3
- package/dist/src/events/AddSectionViewEvent.js.map +1 -1
- package/dist/src/events/Event.d.ts +3 -2
- package/dist/src/events/Event.js +2 -1
- package/dist/src/events/Event.js.map +1 -1
- package/dist/src/events/VisitEvent.d.ts +1 -1
- package/dist/src/events/VisitEvent.js +4 -1
- package/dist/src/events/VisitEvent.js.map +1 -1
- package/dist/src/events/index.d.ts +3 -0
- package/dist/src/events/index.js +3 -0
- package/dist/src/events/index.js.map +1 -1
- package/dist/src/events/types.d.ts +11 -22
- package/dist/src/events/types.js.map +1 -1
- package/dist/src/utils/Logger.js.map +1 -1
- package/dist/src/utils/zodSchemas.d.ts +16 -16
- package/dist/src/utils/zodSchemas.js +6 -4
- package/dist/src/utils/zodSchemas.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/src/apis/APIs.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export declare enum DevicePlatform {
|
|
|
15
15
|
export declare namespace APIs {
|
|
16
16
|
namespace bluxUsersInitialize {
|
|
17
17
|
const name = "bluxUsersInitialize";
|
|
18
|
-
const path
|
|
18
|
+
const path = "/applications/{application_id}/blux-users/initialize";
|
|
19
19
|
const method = HttpMethod.POST;
|
|
20
20
|
const bodySchema: z.ZodObject<{
|
|
21
21
|
device_id: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("bson-objectid").default, string>>;
|
|
@@ -70,7 +70,7 @@ export declare namespace APIs {
|
|
|
70
70
|
}
|
|
71
71
|
namespace bluxUsersSignIn {
|
|
72
72
|
const name = "bluxUsersSignIn";
|
|
73
|
-
const path
|
|
73
|
+
const path = "/applications/{application_id}/blux-users/{blux_user_id}/sign-in";
|
|
74
74
|
const method = HttpMethod.PUT;
|
|
75
75
|
const bodySchema: z.ZodObject<{
|
|
76
76
|
user_id: z.ZodString;
|
|
@@ -100,7 +100,7 @@ export declare namespace APIs {
|
|
|
100
100
|
}
|
|
101
101
|
namespace bluxUsersSignOut {
|
|
102
102
|
const name = "bluxUsersSignOut";
|
|
103
|
-
const path
|
|
103
|
+
const path = "/applications/{application_id}/blux-users/{blux_user_id}/sign-out";
|
|
104
104
|
const method = HttpMethod.PUT;
|
|
105
105
|
const bodySchema: z.ZodObject<{
|
|
106
106
|
device_id: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("bson-objectid").default, string>>;
|
|
@@ -127,7 +127,7 @@ export declare namespace APIs {
|
|
|
127
127
|
}
|
|
128
128
|
namespace bluxUsersCollectEvents {
|
|
129
129
|
const name = "bluxUsersCollectEvents";
|
|
130
|
-
const path
|
|
130
|
+
const path = "/applications/{application_id}/blux-users/{blux_user_id}/collect-events";
|
|
131
131
|
const method = HttpMethod.POST;
|
|
132
132
|
const pathSchema: z.ZodObject<{
|
|
133
133
|
application_id: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("bson-objectid").default, string>;
|
|
@@ -170,7 +170,7 @@ export declare namespace APIs {
|
|
|
170
170
|
search_query: z.ZodOptional<z.ZodString>;
|
|
171
171
|
order_amount: z.ZodOptional<z.ZodNumber>;
|
|
172
172
|
paid_amount: z.ZodOptional<z.ZodNumber>;
|
|
173
|
-
|
|
173
|
+
tracking: z.ZodOptional<z.ZodObject<{
|
|
174
174
|
id: z.ZodString;
|
|
175
175
|
type: z.ZodString;
|
|
176
176
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -179,16 +179,13 @@ export declare namespace APIs {
|
|
|
179
179
|
}, {
|
|
180
180
|
id: string;
|
|
181
181
|
type: string;
|
|
182
|
-
}
|
|
182
|
+
}>>;
|
|
183
183
|
}, "strip", z.ZodTypeAny, {
|
|
184
|
-
|
|
185
|
-
recommendation_id?: string | undefined;
|
|
186
|
-
prev_page?: string | undefined;
|
|
187
|
-
prev_section?: string | undefined;
|
|
188
|
-
trackings?: {
|
|
184
|
+
tracking?: {
|
|
189
185
|
id: string;
|
|
190
186
|
type: string;
|
|
191
|
-
}
|
|
187
|
+
} | undefined;
|
|
188
|
+
item_id?: string | undefined;
|
|
192
189
|
rating?: number | undefined;
|
|
193
190
|
price?: number | undefined;
|
|
194
191
|
order_id?: string | undefined;
|
|
@@ -196,6 +193,9 @@ export declare namespace APIs {
|
|
|
196
193
|
section?: string | undefined;
|
|
197
194
|
position?: number | undefined;
|
|
198
195
|
search_query?: string | undefined;
|
|
196
|
+
prev_section?: string | undefined;
|
|
197
|
+
recommendation_id?: string | undefined;
|
|
198
|
+
prev_page?: string | undefined;
|
|
199
199
|
items?: {
|
|
200
200
|
id: string;
|
|
201
201
|
price: number;
|
|
@@ -203,14 +203,11 @@ export declare namespace APIs {
|
|
|
203
203
|
order_amount?: number | undefined;
|
|
204
204
|
paid_amount?: number | undefined;
|
|
205
205
|
}, {
|
|
206
|
-
|
|
207
|
-
recommendation_id?: string | undefined;
|
|
208
|
-
prev_page?: string | undefined;
|
|
209
|
-
prev_section?: string | undefined;
|
|
210
|
-
trackings?: {
|
|
206
|
+
tracking?: {
|
|
211
207
|
id: string;
|
|
212
208
|
type: string;
|
|
213
|
-
}
|
|
209
|
+
} | undefined;
|
|
210
|
+
item_id?: string | undefined;
|
|
214
211
|
rating?: number | undefined;
|
|
215
212
|
price?: number | undefined;
|
|
216
213
|
order_id?: string | undefined;
|
|
@@ -218,6 +215,9 @@ export declare namespace APIs {
|
|
|
218
215
|
section?: string | undefined;
|
|
219
216
|
position?: number | undefined;
|
|
220
217
|
search_query?: string | undefined;
|
|
218
|
+
prev_section?: string | undefined;
|
|
219
|
+
recommendation_id?: string | undefined;
|
|
220
|
+
prev_page?: string | undefined;
|
|
221
221
|
items?: {
|
|
222
222
|
id: string;
|
|
223
223
|
price: number;
|
|
@@ -225,7 +225,7 @@ export declare namespace APIs {
|
|
|
225
225
|
order_amount?: number | undefined;
|
|
226
226
|
paid_amount?: number | undefined;
|
|
227
227
|
}>>;
|
|
228
|
-
custom_event_properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodArray<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, "many">, z.ZodUndefined]>>>;
|
|
228
|
+
custom_event_properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodArray<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, "many">, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, z.ZodUndefined]>>>;
|
|
229
229
|
internal_event_properties: z.ZodOptional<z.ZodObject<{
|
|
230
230
|
url: z.ZodOptional<z.ZodString>;
|
|
231
231
|
ref: z.ZodOptional<z.ZodString>;
|
|
@@ -240,19 +240,12 @@ export declare namespace APIs {
|
|
|
240
240
|
}, "strip", z.ZodTypeAny, {
|
|
241
241
|
event_type: string;
|
|
242
242
|
captured_at: Date;
|
|
243
|
-
internal_event_properties?: {
|
|
244
|
-
url?: string | undefined;
|
|
245
|
-
ref?: string | undefined;
|
|
246
|
-
} | undefined;
|
|
247
243
|
event_properties?: {
|
|
248
|
-
|
|
249
|
-
recommendation_id?: string | undefined;
|
|
250
|
-
prev_page?: string | undefined;
|
|
251
|
-
prev_section?: string | undefined;
|
|
252
|
-
trackings?: {
|
|
244
|
+
tracking?: {
|
|
253
245
|
id: string;
|
|
254
246
|
type: string;
|
|
255
|
-
}
|
|
247
|
+
} | undefined;
|
|
248
|
+
item_id?: string | undefined;
|
|
256
249
|
rating?: number | undefined;
|
|
257
250
|
price?: number | undefined;
|
|
258
251
|
order_id?: string | undefined;
|
|
@@ -260,6 +253,9 @@ export declare namespace APIs {
|
|
|
260
253
|
section?: string | undefined;
|
|
261
254
|
position?: number | undefined;
|
|
262
255
|
search_query?: string | undefined;
|
|
256
|
+
prev_section?: string | undefined;
|
|
257
|
+
recommendation_id?: string | undefined;
|
|
258
|
+
prev_page?: string | undefined;
|
|
263
259
|
items?: {
|
|
264
260
|
id: string;
|
|
265
261
|
price: number;
|
|
@@ -267,26 +263,23 @@ export declare namespace APIs {
|
|
|
267
263
|
order_amount?: number | undefined;
|
|
268
264
|
paid_amount?: number | undefined;
|
|
269
265
|
} | undefined;
|
|
270
|
-
|
|
266
|
+
internal_event_properties?: {
|
|
267
|
+
url?: string | undefined;
|
|
268
|
+
ref?: string | undefined;
|
|
269
|
+
} | undefined;
|
|
270
|
+
custom_event_properties?: Record<string, string | number | boolean | Date | string[] | {}[] | {} | undefined> | undefined;
|
|
271
271
|
item_id?: string | undefined;
|
|
272
272
|
device_id?: import("bson-objectid").default | undefined;
|
|
273
273
|
event_value?: string | undefined;
|
|
274
274
|
}, {
|
|
275
275
|
event_type: string;
|
|
276
276
|
captured_at: string;
|
|
277
|
-
internal_event_properties?: {
|
|
278
|
-
url?: string | undefined;
|
|
279
|
-
ref?: string | undefined;
|
|
280
|
-
} | undefined;
|
|
281
277
|
event_properties?: {
|
|
282
|
-
|
|
283
|
-
recommendation_id?: string | undefined;
|
|
284
|
-
prev_page?: string | undefined;
|
|
285
|
-
prev_section?: string | undefined;
|
|
286
|
-
trackings?: {
|
|
278
|
+
tracking?: {
|
|
287
279
|
id: string;
|
|
288
280
|
type: string;
|
|
289
|
-
}
|
|
281
|
+
} | undefined;
|
|
282
|
+
item_id?: string | undefined;
|
|
290
283
|
rating?: number | undefined;
|
|
291
284
|
price?: number | undefined;
|
|
292
285
|
order_id?: string | undefined;
|
|
@@ -294,6 +287,9 @@ export declare namespace APIs {
|
|
|
294
287
|
section?: string | undefined;
|
|
295
288
|
position?: number | undefined;
|
|
296
289
|
search_query?: string | undefined;
|
|
290
|
+
prev_section?: string | undefined;
|
|
291
|
+
recommendation_id?: string | undefined;
|
|
292
|
+
prev_page?: string | undefined;
|
|
297
293
|
items?: {
|
|
298
294
|
id: string;
|
|
299
295
|
price: number;
|
|
@@ -301,7 +297,11 @@ export declare namespace APIs {
|
|
|
301
297
|
order_amount?: number | undefined;
|
|
302
298
|
paid_amount?: number | undefined;
|
|
303
299
|
} | undefined;
|
|
304
|
-
|
|
300
|
+
internal_event_properties?: {
|
|
301
|
+
url?: string | undefined;
|
|
302
|
+
ref?: string | undefined;
|
|
303
|
+
} | undefined;
|
|
304
|
+
custom_event_properties?: Record<string, string | number | boolean | string[] | {}[] | {} | undefined> | undefined;
|
|
305
305
|
item_id?: string | undefined;
|
|
306
306
|
device_id?: string | undefined;
|
|
307
307
|
event_value?: string | undefined;
|
|
@@ -310,19 +310,12 @@ export declare namespace APIs {
|
|
|
310
310
|
events: {
|
|
311
311
|
event_type: string;
|
|
312
312
|
captured_at: Date;
|
|
313
|
-
internal_event_properties?: {
|
|
314
|
-
url?: string | undefined;
|
|
315
|
-
ref?: string | undefined;
|
|
316
|
-
} | undefined;
|
|
317
313
|
event_properties?: {
|
|
318
|
-
|
|
319
|
-
recommendation_id?: string | undefined;
|
|
320
|
-
prev_page?: string | undefined;
|
|
321
|
-
prev_section?: string | undefined;
|
|
322
|
-
trackings?: {
|
|
314
|
+
tracking?: {
|
|
323
315
|
id: string;
|
|
324
316
|
type: string;
|
|
325
|
-
}
|
|
317
|
+
} | undefined;
|
|
318
|
+
item_id?: string | undefined;
|
|
326
319
|
rating?: number | undefined;
|
|
327
320
|
price?: number | undefined;
|
|
328
321
|
order_id?: string | undefined;
|
|
@@ -330,6 +323,9 @@ export declare namespace APIs {
|
|
|
330
323
|
section?: string | undefined;
|
|
331
324
|
position?: number | undefined;
|
|
332
325
|
search_query?: string | undefined;
|
|
326
|
+
prev_section?: string | undefined;
|
|
327
|
+
recommendation_id?: string | undefined;
|
|
328
|
+
prev_page?: string | undefined;
|
|
333
329
|
items?: {
|
|
334
330
|
id: string;
|
|
335
331
|
price: number;
|
|
@@ -337,7 +333,11 @@ export declare namespace APIs {
|
|
|
337
333
|
order_amount?: number | undefined;
|
|
338
334
|
paid_amount?: number | undefined;
|
|
339
335
|
} | undefined;
|
|
340
|
-
|
|
336
|
+
internal_event_properties?: {
|
|
337
|
+
url?: string | undefined;
|
|
338
|
+
ref?: string | undefined;
|
|
339
|
+
} | undefined;
|
|
340
|
+
custom_event_properties?: Record<string, string | number | boolean | Date | string[] | {}[] | {} | undefined> | undefined;
|
|
341
341
|
item_id?: string | undefined;
|
|
342
342
|
device_id?: import("bson-objectid").default | undefined;
|
|
343
343
|
event_value?: string | undefined;
|
|
@@ -346,19 +346,12 @@ export declare namespace APIs {
|
|
|
346
346
|
events: {
|
|
347
347
|
event_type: string;
|
|
348
348
|
captured_at: string;
|
|
349
|
-
internal_event_properties?: {
|
|
350
|
-
url?: string | undefined;
|
|
351
|
-
ref?: string | undefined;
|
|
352
|
-
} | undefined;
|
|
353
349
|
event_properties?: {
|
|
354
|
-
|
|
355
|
-
recommendation_id?: string | undefined;
|
|
356
|
-
prev_page?: string | undefined;
|
|
357
|
-
prev_section?: string | undefined;
|
|
358
|
-
trackings?: {
|
|
350
|
+
tracking?: {
|
|
359
351
|
id: string;
|
|
360
352
|
type: string;
|
|
361
|
-
}
|
|
353
|
+
} | undefined;
|
|
354
|
+
item_id?: string | undefined;
|
|
362
355
|
rating?: number | undefined;
|
|
363
356
|
price?: number | undefined;
|
|
364
357
|
order_id?: string | undefined;
|
|
@@ -366,6 +359,9 @@ export declare namespace APIs {
|
|
|
366
359
|
section?: string | undefined;
|
|
367
360
|
position?: number | undefined;
|
|
368
361
|
search_query?: string | undefined;
|
|
362
|
+
prev_section?: string | undefined;
|
|
363
|
+
recommendation_id?: string | undefined;
|
|
364
|
+
prev_page?: string | undefined;
|
|
369
365
|
items?: {
|
|
370
366
|
id: string;
|
|
371
367
|
price: number;
|
|
@@ -373,7 +369,11 @@ export declare namespace APIs {
|
|
|
373
369
|
order_amount?: number | undefined;
|
|
374
370
|
paid_amount?: number | undefined;
|
|
375
371
|
} | undefined;
|
|
376
|
-
|
|
372
|
+
internal_event_properties?: {
|
|
373
|
+
url?: string | undefined;
|
|
374
|
+
ref?: string | undefined;
|
|
375
|
+
} | undefined;
|
|
376
|
+
custom_event_properties?: Record<string, string | number | boolean | string[] | {}[] | {} | undefined> | undefined;
|
|
377
377
|
item_id?: string | undefined;
|
|
378
378
|
device_id?: string | undefined;
|
|
379
379
|
event_value?: string | undefined;
|
|
@@ -384,7 +384,7 @@ export declare namespace APIs {
|
|
|
384
384
|
}
|
|
385
385
|
namespace bluxUsersUpdateUserProperties {
|
|
386
386
|
const name = "bluxUsersUpdateUserProperties";
|
|
387
|
-
const path
|
|
387
|
+
const path = "/applications/{application_id}/blux-users/{blux_user_id}/update-user-properties";
|
|
388
388
|
const method = HttpMethod.PUT;
|
|
389
389
|
const bodySchema: z.ZodObject<{
|
|
390
390
|
properties: z.ZodObject<{
|
|
@@ -446,14 +446,14 @@ export declare namespace APIs {
|
|
|
446
446
|
}
|
|
447
447
|
namespace bluxUsersUpdateCustomUserProperties {
|
|
448
448
|
const name = "bluxUsersUpdateCustomUserProperties";
|
|
449
|
-
const path
|
|
449
|
+
const path = "/applications/{application_id}/blux-users/{blux_user_id}/update-custom-user-properties";
|
|
450
450
|
const method = HttpMethod.PUT;
|
|
451
451
|
const bodySchema: z.ZodObject<{
|
|
452
|
-
properties: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodArray<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, "many">, z.ZodNull, z.ZodUndefined]>>;
|
|
452
|
+
properties: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodArray<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, "many">, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, z.ZodNull, z.ZodUndefined]>>;
|
|
453
453
|
}, "strip", z.ZodTypeAny, {
|
|
454
|
-
properties: Record<string, string | number | boolean | Date | string[] | {}[] | null | undefined>;
|
|
454
|
+
properties: Record<string, string | number | boolean | Date | string[] | {}[] | {} | null | undefined>;
|
|
455
455
|
}, {
|
|
456
|
-
properties: Record<string, string | number | boolean | string[] | {}[] | null | undefined>;
|
|
456
|
+
properties: Record<string, string | number | boolean | string[] | {}[] | {} | null | undefined>;
|
|
457
457
|
}>;
|
|
458
458
|
type Body = Serialize<z.input<typeof bodySchema>>;
|
|
459
459
|
const pathSchema: z.ZodObject<{
|
|
@@ -473,7 +473,7 @@ export declare namespace APIs {
|
|
|
473
473
|
}
|
|
474
474
|
namespace bluxUsersGetItemRecommendationsV2 {
|
|
475
475
|
const name = "bluxUsersGetItemRecommendationsV2";
|
|
476
|
-
const path
|
|
476
|
+
const path = "/v2/applications/{application_id}/blux-users/{blux_user_id}/item-recommendations";
|
|
477
477
|
const method = HttpMethod.POST;
|
|
478
478
|
const bodySchema: z.ZodObject<z.objectUtil.extendShape<Pick<{
|
|
479
479
|
application_id: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("bson-objectid").default, string>;
|
package/dist/src/apis/APIs.js
CHANGED
|
@@ -33,7 +33,7 @@ export var APIs;
|
|
|
33
33
|
sdk_type: z.string(),
|
|
34
34
|
sdk_version: z.string(),
|
|
35
35
|
timezone: z.string(),
|
|
36
|
-
isVisitHandlingInSdk: z.boolean().default(false),
|
|
36
|
+
isVisitHandlingInSdk: z.boolean().default(false), // sdk 업데이트 후 삭제
|
|
37
37
|
blux_user_id: z.string().optional(),
|
|
38
38
|
});
|
|
39
39
|
bluxUsersInitialize.pathSchema = z.object({
|
|
@@ -63,7 +63,7 @@ export var APIs;
|
|
|
63
63
|
device_id: objectIdSchema.optional(),
|
|
64
64
|
});
|
|
65
65
|
bluxUsersSignOut.pathSchema = z.object({
|
|
66
|
-
application_id: z.string().optional(),
|
|
66
|
+
application_id: z.string().optional(), // todo: objectIdSchema 로 변경
|
|
67
67
|
blux_user_id: objectIdSchema,
|
|
68
68
|
});
|
|
69
69
|
})(bluxUsersSignOut = APIs.bluxUsersSignOut || (APIs.bluxUsersSignOut = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"APIs.js","sourceRoot":"/","sources":["src/apis/APIs.ts"],"names":[],"mappings":"AAAA,oDAAoD;AACpD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,8BAA8B,EAC9B,6BAA6B,EAC7B,sBAAsB,EACtB,UAAU,EACV,qBAAqB,EACrB,cAAc,EACd,2BAA2B,GAC5B,MAAM,qBAAqB,CAAC;AAG7B,IAAK,UAKJ;AALD,WAAK,UAAU;IACb,yBAAW,CAAA;IACX,2BAAa,CAAA;IACb,yBAAW,CAAA;IACX,+BAAiB,CAAA;AACnB,CAAC,EALI,UAAU,KAAV,UAAU,QAKd;AAED,MAAM,CAAN,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,6BAAW,CAAA;IACX,qCAAmB,CAAA;IACnB,qCAAmB,CAAA;AACrB,CAAC,EAJW,cAAc,KAAd,cAAc,QAIzB;AAED,MAAM,gBAAgB,GAAG,gCAAgC,CAAC;AAC1D,MAAM,k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AAY,EAAE,cAAc;SAC7B,CAAC,CAAC;IAIL,CAAC,EAfgB,iCAAiC,GAAjC,sCAAiC,KAAjC,sCAAiC,QAejD;AACH,CAAC,EA9KgB,IAAI,KAAJ,IAAI,QA8KpB","sourcesContent":["/* eslint-disable @typescript-eslint/no-namespace */\nimport { z } from \"zod\";\nimport type { RecResponse } from \"../utils/zodSchemas\";\nimport {\n countryCodeWithLowerCaseSchema,\n customPropertiesRequestSchema,\n customPropertiesSchema,\n dateSchema,\n eventPropertiesSchema,\n objectIdSchema,\n recommendationRequestSchema,\n} from \"../utils/zodSchemas\";\nimport type { Serialize } from \"../utils/Base\";\n\nenum HttpMethod {\n GET = \"get\",\n POST = \"post\",\n PUT = \"put\",\n DELETE = \"delete\",\n}\n\nexport enum DevicePlatform {\n ios = \"ios\",\n android = \"android\",\n browser = \"browser\",\n}\n\nconst applicationsRoot = \"/applications/{application_id}\";\nconst applicationsRootV2 = \"/v2/applications/{application_id}\";\n\nexport namespace APIs {\n export namespace bluxUsersInitialize {\n export const name = \"bluxUsersInitialize\";\n export const path = `${applicationsRoot}/blux-users/initialize`;\n export const method = HttpMethod.POST;\n\n export const bodySchema = z.object({\n device_id: objectIdSchema.optional(),\n country_code: countryCodeWithLowerCaseSchema.optional(),\n device_model: z.string(),\n language_code: z.string(),\n os_version: z.string(),\n platform: z.nativeEnum(DevicePlatform),\n sdk_type: z.string(),\n sdk_version: z.string(),\n timezone: z.string(),\n isVisitHandlingInSdk: z.boolean().default(false), // sdk 업데이트 후 삭제\n blux_user_id: z.string().optional(),\n });\n export type Body = Serialize<z.input<typeof bodySchema>>;\n\n export const pathSchema = z.object({\n application_id: z.string().optional(),\n });\n export type PathParam = Serialize<z.input<typeof pathSchema>>;\n\n export type ResponseData = {\n blux_user_id: string;\n device_id?: string;\n };\n }\n\n export namespace bluxUsersSignIn {\n export const name = \"bluxUsersSignIn\";\n export const path = `${applicationsRoot}/blux-users/{blux_user_id}/sign-in`;\n export const method = HttpMethod.PUT;\n\n export const bodySchema = z.object({\n user_id: z.string(),\n device_id: z.string().optional(), // todo: sdk update 후 필수로 변경\n });\n export type Body = Serialize<z.input<typeof bodySchema>>;\n\n export const pathSchema = z.object({\n application_id: z.string().optional(),\n blux_user_id: objectIdSchema,\n });\n export type PathParam = Serialize<z.input<typeof pathSchema>>;\n\n export type ResponseData = {\n blux_user_id: string;\n };\n }\n\n export namespace bluxUsersSignOut {\n export const name = \"bluxUsersSignOut\";\n export const path = `${applicationsRoot}/blux-users/{blux_user_id}/sign-out`;\n export const method = HttpMethod.PUT;\n\n export const bodySchema = z.object({\n device_id: objectIdSchema.optional(),\n });\n export type Body = Serialize<z.input<typeof bodySchema>>;\n\n export const pathSchema = z.object({\n application_id: z.string().optional(), // todo: objectIdSchema 로 변경\n blux_user_id: objectIdSchema,\n });\n export type PathParam = Serialize<z.input<typeof pathSchema>>;\n\n export type ResponseData = {\n blux_user_id: string;\n };\n }\n\n export namespace bluxUsersCollectEvents {\n export const name = \"bluxUsersCollectEvents\";\n export const path = `${applicationsRoot}/blux-users/{blux_user_id}/collect-events`;\n export const method = HttpMethod.POST;\n export const pathSchema = z.object({\n application_id: objectIdSchema,\n blux_user_id: objectIdSchema,\n });\n export type PathParam = Serialize<z.input<typeof pathSchema>>;\n\n export const bodySchema = z.object({\n events: z.array(\n z.object({\n device_id: objectIdSchema.optional(),\n event_type: z.string(),\n event_value: z.string().optional(),\n item_id: z.string().optional(),\n event_properties: eventPropertiesSchema.optional(),\n custom_event_properties: customPropertiesSchema.optional(),\n internal_event_properties: z\n .object({\n url: z.string().optional(),\n ref: z.string().optional(),\n })\n .optional(),\n captured_at: dateSchema,\n }),\n ),\n });\n export type Body = Serialize<z.input<typeof bodySchema>>;\n\n export type ResponseData = boolean;\n }\n\n export namespace bluxUsersUpdateUserProperties {\n export const name = \"bluxUsersUpdateUserProperties\";\n export const path = `${applicationsRoot}/blux-users/{blux_user_id}/update-user-properties`;\n export const method = HttpMethod.PUT;\n\n export const bodySchema = z.object({\n properties: z.object({\n phone_number: z.string().nullable().optional(),\n email_address: z.string().nullable().optional(),\n nighttime_notification_consent: z.boolean().nullable().optional(),\n marketing_notification_consent: z.boolean().nullable().optional(),\n sms_consent: z.boolean().nullable().optional(),\n email_consent: z.boolean().nullable().optional(),\n }),\n });\n export type Body = Serialize<z.input<typeof bodySchema>>;\n\n export const pathSchema = z.object({\n application_id: z.string().optional(),\n blux_user_id: objectIdSchema,\n });\n export type PathParam = Serialize<z.input<typeof pathSchema>>;\n\n export type ResponseData = {\n blux_user_id: string;\n };\n }\n\n export namespace bluxUsersUpdateCustomUserProperties {\n export const name = \"bluxUsersUpdateCustomUserProperties\";\n export const path = `${applicationsRoot}/blux-users/{blux_user_id}/update-custom-user-properties`;\n export const method = HttpMethod.PUT;\n\n export const bodySchema = z.object({\n properties: customPropertiesRequestSchema,\n });\n export type Body = Serialize<z.input<typeof bodySchema>>;\n\n export const pathSchema = z.object({\n application_id: z.string().optional(),\n blux_user_id: objectIdSchema,\n });\n export type PathParam = Serialize<z.input<typeof pathSchema>>;\n\n export type ResponseData = {\n blux_user_id: string;\n };\n }\n\n export namespace bluxUsersGetItemRecommendationsV2 {\n export const name = \"bluxUsersGetItemRecommendationsV2\";\n export const path = `${applicationsRootV2}/blux-users/{blux_user_id}/item-recommendations`;\n export const method = HttpMethod.POST;\n\n export const bodySchema = recommendationRequestSchema;\n export type Body = Serialize<z.input<typeof bodySchema>>;\n\n export const pathSchema = z.object({\n application_id: objectIdSchema,\n blux_user_id: objectIdSchema,\n });\n export type PathParam = Serialize<z.input<typeof pathSchema>>;\n\n export type ResponseData = RecResponse;\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"APIs.js","sourceRoot":"/","sources":["src/apis/APIs.ts"],"names":[],"mappings":"AAAA,oDAAoD;AACpD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,8BAA8B,EAC9B,6BAA6B,EAC7B,sBAAsB,EACtB,UAAU,EACV,q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E,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YACrC,YAAY,EAAE,cAAc;SAC7B,CAAC,CAAC;IAML,CAAC,EAnBgB,mCAAmC,GAAnC,wCAAmC,KAAnC,wCAAmC,QAmBnD;IAED,IAAiB,iCAAiC,CAejD;IAfD,WAAiB,iCAAiC;QACnC,sCAAI,GAAG,mCAAmC,CAAC;QAC3C,sCAAI,GAAG,GAAG,kBAAkB,iDAAiD,CAAC;QAC9E,wCAAM,GAAG,UAAU,CAAC,IAAI,CAAC;QAEzB,4CAAU,GAAG,2BAA2B,CAAC;QAGzC,4CAAU,GAAG,CAAC,CAAC,MAAM,CAAC;YACjC,cAAc,EAAE,cAAc;YAC9B,YAAY,EAAE,cAAc;SAC7B,CAAC,CAAC;IAIL,CAAC,EAfgB,iCAAiC,GAAjC,sCAAiC,KAAjC,sCAAiC,QAejD;AACH,CAAC,EA9KgB,IAAI,KAAJ,IAAI,QA8KpB","sourcesContent":["/* eslint-disable @typescript-eslint/no-namespace */\nimport { z } from \"zod\";\nimport type { RecResponse } from \"../utils/zodSchemas\";\nimport {\n countryCodeWithLowerCaseSchema,\n customPropertiesRequestSchema,\n customPropertiesSchema,\n dateSchema,\n eventPropertiesSchema,\n objectIdSchema,\n recommendationRequestSchema,\n} from \"../utils/zodSchemas\";\nimport type { Serialize } from \"../utils/Base\";\n\nenum HttpMethod {\n GET = \"get\",\n POST = \"post\",\n PUT = \"put\",\n DELETE = \"delete\",\n}\n\nexport enum DevicePlatform {\n ios = \"ios\",\n android = \"android\",\n browser = \"browser\",\n}\n\nconst applicationsRoot = \"/applications/{application_id}\";\nconst applicationsRootV2 = \"/v2/applications/{application_id}\";\n\nexport namespace APIs {\n export namespace bluxUsersInitialize {\n export const name = \"bluxUsersInitialize\";\n export const path = `${applicationsRoot}/blux-users/initialize`;\n export const method = HttpMethod.POST;\n\n export const bodySchema = z.object({\n device_id: objectIdSchema.optional(),\n country_code: countryCodeWithLowerCaseSchema.optional(),\n device_model: z.string(),\n language_code: z.string(),\n os_version: z.string(),\n platform: z.nativeEnum(DevicePlatform),\n sdk_type: z.string(),\n sdk_version: z.string(),\n timezone: z.string(),\n isVisitHandlingInSdk: z.boolean().default(false), // sdk 업데이트 후 삭제\n blux_user_id: z.string().optional(),\n });\n export type Body = Serialize<z.input<typeof bodySchema>>;\n\n export const pathSchema = z.object({\n application_id: z.string().optional(),\n });\n export type PathParam = Serialize<z.input<typeof pathSchema>>;\n\n export type ResponseData = {\n blux_user_id: string;\n device_id?: string;\n };\n }\n\n export namespace bluxUsersSignIn {\n export const name = \"bluxUsersSignIn\";\n export const path = `${applicationsRoot}/blux-users/{blux_user_id}/sign-in`;\n export const method = HttpMethod.PUT;\n\n export const bodySchema = z.object({\n user_id: z.string(),\n device_id: z.string().optional(), // todo: sdk update 후 필수로 변경\n });\n export type Body = Serialize<z.input<typeof bodySchema>>;\n\n export const pathSchema = z.object({\n application_id: z.string().optional(),\n blux_user_id: objectIdSchema,\n });\n export type PathParam = Serialize<z.input<typeof pathSchema>>;\n\n export type ResponseData = {\n blux_user_id: string;\n };\n }\n\n export namespace bluxUsersSignOut {\n export const name = \"bluxUsersSignOut\";\n export const path = `${applicationsRoot}/blux-users/{blux_user_id}/sign-out`;\n export const method = HttpMethod.PUT;\n\n export const bodySchema = z.object({\n device_id: objectIdSchema.optional(),\n });\n export type Body = Serialize<z.input<typeof bodySchema>>;\n\n export const pathSchema = z.object({\n application_id: z.string().optional(), // todo: objectIdSchema 로 변경\n blux_user_id: objectIdSchema,\n });\n export type PathParam = Serialize<z.input<typeof pathSchema>>;\n\n export type ResponseData = {\n blux_user_id: string;\n };\n }\n\n export namespace bluxUsersCollectEvents {\n export const name = \"bluxUsersCollectEvents\";\n export const path = `${applicationsRoot}/blux-users/{blux_user_id}/collect-events`;\n export const method = HttpMethod.POST;\n export const pathSchema = z.object({\n application_id: objectIdSchema,\n blux_user_id: objectIdSchema,\n });\n export type PathParam = Serialize<z.input<typeof pathSchema>>;\n\n export const bodySchema = z.object({\n events: z.array(\n z.object({\n device_id: objectIdSchema.optional(),\n event_type: z.string(),\n event_value: z.string().optional(),\n item_id: z.string().optional(),\n event_properties: eventPropertiesSchema.optional(),\n custom_event_properties: customPropertiesSchema.optional(),\n internal_event_properties: z\n .object({\n url: z.string().optional(),\n ref: z.string().optional(),\n })\n .optional(),\n captured_at: dateSchema,\n }),\n ),\n });\n export type Body = Serialize<z.input<typeof bodySchema>>;\n\n export type ResponseData = boolean;\n }\n\n export namespace bluxUsersUpdateUserProperties {\n export const name = \"bluxUsersUpdateUserProperties\";\n export const path = `${applicationsRoot}/blux-users/{blux_user_id}/update-user-properties`;\n export const method = HttpMethod.PUT;\n\n export const bodySchema = z.object({\n properties: z.object({\n phone_number: z.string().nullable().optional(),\n email_address: z.string().nullable().optional(),\n nighttime_notification_consent: z.boolean().nullable().optional(),\n marketing_notification_consent: z.boolean().nullable().optional(),\n sms_consent: z.boolean().nullable().optional(),\n email_consent: z.boolean().nullable().optional(),\n }),\n });\n export type Body = Serialize<z.input<typeof bodySchema>>;\n\n export const pathSchema = z.object({\n application_id: z.string().optional(),\n blux_user_id: objectIdSchema,\n });\n export type PathParam = Serialize<z.input<typeof pathSchema>>;\n\n export type ResponseData = {\n blux_user_id: string;\n };\n }\n\n export namespace bluxUsersUpdateCustomUserProperties {\n export const name = \"bluxUsersUpdateCustomUserProperties\";\n export const path = `${applicationsRoot}/blux-users/{blux_user_id}/update-custom-user-properties`;\n export const method = HttpMethod.PUT;\n\n export const bodySchema = z.object({\n properties: customPropertiesRequestSchema,\n });\n export type Body = Serialize<z.input<typeof bodySchema>>;\n\n export const pathSchema = z.object({\n application_id: z.string().optional(),\n blux_user_id: objectIdSchema,\n });\n export type PathParam = Serialize<z.input<typeof pathSchema>>;\n\n export type ResponseData = {\n blux_user_id: string;\n };\n }\n\n export namespace bluxUsersGetItemRecommendationsV2 {\n export const name = \"bluxUsersGetItemRecommendationsV2\";\n export const path = `${applicationsRootV2}/blux-users/{blux_user_id}/item-recommendations`;\n export const method = HttpMethod.POST;\n\n export const bodySchema = recommendationRequestSchema;\n export type Body = Serialize<z.input<typeof bodySchema>>;\n\n export const pathSchema = z.object({\n application_id: objectIdSchema,\n blux_user_id: objectIdSchema,\n });\n export type PathParam = Serialize<z.input<typeof pathSchema>>;\n\n export type ResponseData = RecResponse;\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BLUX_ATTRIBUTES.js","sourceRoot":"/","sources":["src/constants/BLUX_ATTRIBUTES.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,
|
|
1
|
+
{"version":3,"file":"BLUX_ATTRIBUTES.js","sourceRoot":"/","sources":["src/constants/BLUX_ATTRIBUTES.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,WAAW,EAAE,uBAAuB;IACpC,OAAO,EAAE,mBAAmB;CAC7B,CAAC","sourcesContent":["export const BLUX_ATTRIBUTES = {\n tracking_id: \"data-blux-tracking-id\",\n item_id: \"data-blux-item-id\",\n};\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IAddCartaddEvent } from "./types";
|
|
2
2
|
import { Event } from "./Event";
|
|
3
3
|
export declare class AddCartaddEvent extends Event {
|
|
4
|
-
constructor({ item_id,
|
|
4
|
+
constructor({ item_id, tracking, custom_event_properties, }: IAddCartaddEvent);
|
|
5
5
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Event, EventType } from "./Event";
|
|
2
2
|
export class AddCartaddEvent extends Event {
|
|
3
|
-
constructor({ item_id,
|
|
3
|
+
constructor({ item_id, tracking, custom_event_properties, }) {
|
|
4
4
|
super({
|
|
5
5
|
event_type: EventType.cartadd,
|
|
6
6
|
event_properties: {
|
|
7
7
|
item_id,
|
|
8
|
-
|
|
8
|
+
tracking,
|
|
9
9
|
},
|
|
10
10
|
custom_event_properties,
|
|
11
11
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddCartaddEvent.js","sourceRoot":"/","sources":["src/events/AddCartaddEvent.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAE3C,MAAM,OAAO,eAAgB,SAAQ,KAAK;IACxC,YAAY,EACV,OAAO,EACP,
|
|
1
|
+
{"version":3,"file":"AddCartaddEvent.js","sourceRoot":"/","sources":["src/events/AddCartaddEvent.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAE3C,MAAM,OAAO,eAAgB,SAAQ,KAAK;IACxC,YAAY,EACV,OAAO,EACP,QAAQ,EACR,uBAAuB,GACN;QACjB,KAAK,CAAC;YACJ,UAAU,EAAE,SAAS,CAAC,OAAO;YAC7B,gBAAgB,EAAE;gBAChB,OAAO;gBACP,QAAQ;aACT;YACD,uBAAuB;SACxB,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["import type { IAddCartaddEvent } from \"./types\";\nimport { Event, EventType } from \"./Event\";\n\nexport class AddCartaddEvent extends Event {\n constructor({\n item_id,\n tracking,\n custom_event_properties,\n }: IAddCartaddEvent) {\n super({\n event_type: EventType.cartadd,\n event_properties: {\n item_id,\n tracking,\n },\n custom_event_properties,\n });\n }\n}\n"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Event, EventType } from "./Event";
|
|
2
|
+
export class AddClickEvent extends Event {
|
|
3
|
+
constructor({ item_id, tracking, custom_event_properties }) {
|
|
4
|
+
super({
|
|
5
|
+
event_type: EventType.click,
|
|
6
|
+
event_properties: {
|
|
7
|
+
item_id,
|
|
8
|
+
tracking,
|
|
9
|
+
},
|
|
10
|
+
custom_event_properties,
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=AddClickEvent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AddClickEvent.js","sourceRoot":"/","sources":["src/events/AddClickEvent.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAE3C,MAAM,OAAO,aAAc,SAAQ,KAAK;IACtC,YAAY,EAAE,OAAO,EAAE,QAAQ,EAAE,uBAAuB,EAAkB;QACxE,KAAK,CAAC;YACJ,UAAU,EAAE,SAAS,CAAC,KAAK;YAC3B,gBAAgB,EAAE;gBAChB,OAAO;gBACP,QAAQ;aACT;YACD,uBAAuB;SACxB,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["import type { IAddClickEvent } from \"./types\";\nimport { Event, EventType } from \"./Event\";\n\nexport class AddClickEvent extends Event {\n constructor({ item_id, tracking, custom_event_properties }: IAddClickEvent) {\n super({\n event_type: EventType.click,\n event_properties: {\n item_id,\n tracking,\n },\n custom_event_properties,\n });\n }\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IAddInstantImpressionEvent } from "./types";
|
|
2
2
|
import { Event } from "./Event";
|
|
3
3
|
export declare class AddInstantImpressionEvent extends Event {
|
|
4
|
-
constructor({ page, section, position,
|
|
4
|
+
constructor({ item_id, page, section, position, tracking, custom_event_properties, }: IAddInstantImpressionEvent);
|
|
5
5
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Event, EventType } from "./Event";
|
|
2
2
|
export class AddInstantImpressionEvent extends Event {
|
|
3
|
-
constructor({ page, section, position,
|
|
3
|
+
constructor({ item_id, page, section, position, tracking, custom_event_properties, }) {
|
|
4
4
|
super({
|
|
5
5
|
event_type: EventType.instant_impression,
|
|
6
6
|
event_properties: {
|
|
@@ -8,8 +8,7 @@ export class AddInstantImpressionEvent extends Event {
|
|
|
8
8
|
page,
|
|
9
9
|
section,
|
|
10
10
|
position,
|
|
11
|
-
|
|
12
|
-
trackings,
|
|
11
|
+
tracking,
|
|
13
12
|
},
|
|
14
13
|
custom_event_properties,
|
|
15
14
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddInstantImpressionEvent.js","sourceRoot":"/","sources":["src/events/AddInstantImpressionEvent.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAE3C,MAAM,OAAO,yBAA0B,SAAQ,KAAK;IAClD,YAAY,EACV,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,
|
|
1
|
+
{"version":3,"file":"AddInstantImpressionEvent.js","sourceRoot":"/","sources":["src/events/AddInstantImpressionEvent.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAE3C,MAAM,OAAO,yBAA0B,SAAQ,KAAK;IAClD,YAAY,EACV,OAAO,EACP,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,uBAAuB,GACI;QAC3B,KAAK,CAAC;YACJ,UAAU,EAAE,SAAS,CAAC,kBAAkB;YACxC,gBAAgB,EAAE;gBAChB,OAAO;gBACP,IAAI;gBACJ,OAAO;gBACP,QAAQ;gBACR,QAAQ;aACT;YACD,uBAAuB;SACxB,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["import type { IAddInstantImpressionEvent } from \"./types\";\nimport { Event, EventType } from \"./Event\";\n\nexport class AddInstantImpressionEvent extends Event {\n constructor({\n item_id,\n page,\n section,\n position,\n tracking,\n custom_event_properties,\n }: IAddInstantImpressionEvent) {\n super({\n event_type: EventType.instant_impression,\n event_properties: {\n item_id,\n page,\n section,\n position,\n tracking,\n },\n custom_event_properties,\n });\n }\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IAddLikeEvent } from "./types";
|
|
2
2
|
import { Event } from "./Event";
|
|
3
3
|
export declare class AddLikeEvent extends Event {
|
|
4
|
-
constructor({ item_id, custom_event_properties }: IAddLikeEvent);
|
|
4
|
+
constructor({ item_id, tracking, custom_event_properties }: IAddLikeEvent);
|
|
5
5
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { Event, EventType } from "./Event";
|
|
2
2
|
export class AddLikeEvent extends Event {
|
|
3
|
-
constructor({ item_id, custom_event_properties }) {
|
|
3
|
+
constructor({ item_id, tracking, custom_event_properties }) {
|
|
4
4
|
super({
|
|
5
5
|
event_type: EventType.like,
|
|
6
6
|
event_properties: {
|
|
7
7
|
item_id,
|
|
8
|
+
tracking,
|
|
8
9
|
},
|
|
9
10
|
custom_event_properties,
|
|
10
11
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddLikeEvent.js","sourceRoot":"/","sources":["src/events/AddLikeEvent.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAE3C,MAAM,OAAO,YAAa,SAAQ,KAAK;IACrC,YAAY,EAAE,OAAO,EAAE,uBAAuB,EAAiB;
|
|
1
|
+
{"version":3,"file":"AddLikeEvent.js","sourceRoot":"/","sources":["src/events/AddLikeEvent.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAE3C,MAAM,OAAO,YAAa,SAAQ,KAAK;IACrC,YAAY,EAAE,OAAO,EAAE,QAAQ,EAAE,uBAAuB,EAAiB;QACvE,KAAK,CAAC;YACJ,UAAU,EAAE,SAAS,CAAC,IAAI;YAC1B,gBAAgB,EAAE;gBAChB,OAAO;gBACP,QAAQ;aACT;YACD,uBAAuB;SACxB,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["import type { IAddLikeEvent } from \"./types\";\nimport { Event, EventType } from \"./Event\";\n\nexport class AddLikeEvent extends Event {\n constructor({ item_id, tracking, custom_event_properties }: IAddLikeEvent) {\n super({\n event_type: EventType.like,\n event_properties: {\n item_id,\n tracking,\n },\n custom_event_properties,\n });\n }\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IAddPageViewEvent } from "./types";
|
|
2
2
|
import { Event } from "./Event";
|
|
3
3
|
export declare class AddPageViewEvent extends Event {
|
|
4
|
-
constructor({ page,
|
|
4
|
+
constructor({ page, tracking, custom_event_properties }: IAddPageViewEvent);
|
|
5
5
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Event, EventType } from "./Event";
|
|
2
2
|
export class AddPageViewEvent extends Event {
|
|
3
|
-
constructor({ page,
|
|
3
|
+
constructor({ page, tracking, custom_event_properties }) {
|
|
4
4
|
super({
|
|
5
5
|
event_type: EventType.page_view,
|
|
6
|
-
event_properties: { page,
|
|
6
|
+
event_properties: { page, tracking },
|
|
7
7
|
custom_event_properties,
|
|
8
8
|
});
|
|
9
9
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddPageViewEvent.js","sourceRoot":"/","sources":["src/events/AddPageViewEvent.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAE3C,MAAM,OAAO,gBAAiB,SAAQ,KAAK;IACzC,YAAY,EAAE,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"AddPageViewEvent.js","sourceRoot":"/","sources":["src/events/AddPageViewEvent.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAE3C,MAAM,OAAO,gBAAiB,SAAQ,KAAK;IACzC,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,uBAAuB,EAAqB;QACxE,KAAK,CAAC;YACJ,UAAU,EAAE,SAAS,CAAC,SAAS;YAC/B,gBAAgB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YACpC,uBAAuB;SACxB,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["import type { IAddPageViewEvent } from \"./types\";\nimport { Event, EventType } from \"./Event\";\n\nexport class AddPageViewEvent extends Event {\n constructor({ page, tracking, custom_event_properties }: IAddPageViewEvent) {\n super({\n event_type: EventType.page_view,\n event_properties: { page, tracking },\n custom_event_properties,\n });\n }\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IAddPageVisitEvent } from "./types";
|
|
2
2
|
import { Event } from "./Event";
|
|
3
3
|
export declare class AddPageVisitEvent extends Event {
|
|
4
|
-
constructor({ custom_event_properties }: IAddPageVisitEvent);
|
|
4
|
+
constructor({ tracking, custom_event_properties }: IAddPageVisitEvent);
|
|
5
5
|
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { Event, EventType } from "./Event";
|
|
2
2
|
export class AddPageVisitEvent extends Event {
|
|
3
|
-
constructor({ custom_event_properties }) {
|
|
3
|
+
constructor({ tracking, custom_event_properties }) {
|
|
4
4
|
super({
|
|
5
5
|
event_type: EventType.page_visit,
|
|
6
|
+
event_properties: {
|
|
7
|
+
tracking,
|
|
8
|
+
},
|
|
6
9
|
custom_event_properties,
|
|
7
10
|
});
|
|
8
11
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddPageVisitEvent.js","sourceRoot":"/","sources":["src/events/AddPageVisitEvent.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAE3C,MAAM,OAAO,iBAAkB,SAAQ,KAAK;IAC1C,YAAY,EAAE,uBAAuB,EAAsB;
|
|
1
|
+
{"version":3,"file":"AddPageVisitEvent.js","sourceRoot":"/","sources":["src/events/AddPageVisitEvent.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAE3C,MAAM,OAAO,iBAAkB,SAAQ,KAAK;IAC1C,YAAY,EAAE,QAAQ,EAAE,uBAAuB,EAAsB;QACnE,KAAK,CAAC;YACJ,UAAU,EAAE,SAAS,CAAC,UAAU;YAChC,gBAAgB,EAAE;gBAChB,QAAQ;aACT;YACD,uBAAuB;SACxB,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["import type { IAddPageVisitEvent } from \"./types\";\nimport { Event, EventType } from \"./Event\";\n\nexport class AddPageVisitEvent extends Event {\n constructor({ tracking, custom_event_properties }: IAddPageVisitEvent) {\n super({\n event_type: EventType.page_visit,\n event_properties: {\n tracking,\n },\n custom_event_properties,\n });\n }\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IAddPersistentImpressionEvent } from "./types";
|
|
2
2
|
import { Event } from "./Event";
|
|
3
3
|
export declare class AddPersistentImpressionEvent extends Event {
|
|
4
|
-
constructor({ page, section, position,
|
|
4
|
+
constructor({ item_id, page, section, position, tracking, custom_event_properties, }: IAddPersistentImpressionEvent);
|
|
5
5
|
}
|