@rakutenanalytics/rat-ts 0.6.2-rc.c84a2bd
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/README.md +322 -0
- package/dist/index.js +1818 -0
- package/dist/lib/index.d.ts +3 -0
- package/dist/lib/internal/ralConfig.d.ts +25 -0
- package/dist/lib/tracker.d.ts +191 -0
- package/dist/lib/types/config.d.ts +11 -0
- package/dist/lib/types/core.d.ts +5 -0
- package/dist/lib/types/events.d.ts +151 -0
- package/dist/lib/types/genericParams.d.ts +778 -0
- package/dist/lib/types/index.d.ts +7 -0
- package/dist/lib/types/tracker.d.ts +97 -0
- package/dist/lib/utils.d.ts +3 -0
- package/package.json +27 -0
|
@@ -0,0 +1,778 @@
|
|
|
1
|
+
export declare enum AflgEnum {
|
|
2
|
+
NOT_APPLIED = 0,
|
|
3
|
+
APPLIED = 1
|
|
4
|
+
}
|
|
5
|
+
export declare enum ChkoutEnum {
|
|
6
|
+
TEN = 10,
|
|
7
|
+
TWENTY = 20,
|
|
8
|
+
THIRTY = 30,
|
|
9
|
+
FORTY = 40,
|
|
10
|
+
FIFTY = 50
|
|
11
|
+
}
|
|
12
|
+
export declare enum IfrEnum {
|
|
13
|
+
NOT_APPLIED = 0,
|
|
14
|
+
APPLIED = 1
|
|
15
|
+
}
|
|
16
|
+
export declare enum IsscEnum {
|
|
17
|
+
NOT_APPLIED = 0,
|
|
18
|
+
APPLIED = 1
|
|
19
|
+
}
|
|
20
|
+
export declare enum MnetwEnum {
|
|
21
|
+
V_1 = -1,
|
|
22
|
+
V1 = 1,
|
|
23
|
+
V2 = 2,
|
|
24
|
+
V3 = 3,
|
|
25
|
+
V4 = 4,
|
|
26
|
+
V5 = 5
|
|
27
|
+
}
|
|
28
|
+
export declare enum MnetwdEnum {
|
|
29
|
+
V_1 = -1,
|
|
30
|
+
V1 = 1,
|
|
31
|
+
V2 = 2,
|
|
32
|
+
V3 = 3,
|
|
33
|
+
V4 = 4,
|
|
34
|
+
V5 = 5
|
|
35
|
+
}
|
|
36
|
+
export declare enum MoriEnum {
|
|
37
|
+
V1 = 1,
|
|
38
|
+
V2 = 2
|
|
39
|
+
}
|
|
40
|
+
export declare enum NavtypeEnum {
|
|
41
|
+
TYPE0 = 0,
|
|
42
|
+
TYPE1 = 1,
|
|
43
|
+
TYPE2 = 2,
|
|
44
|
+
TYPE3 = 3,
|
|
45
|
+
TYPE255 = 255
|
|
46
|
+
}
|
|
47
|
+
export declare enum OaEnum {
|
|
48
|
+
OR = "o",
|
|
49
|
+
AND = "a",
|
|
50
|
+
NO = "x"
|
|
51
|
+
}
|
|
52
|
+
export declare enum PglEnum {
|
|
53
|
+
PC = "PC",
|
|
54
|
+
PC_LOWER = "pc",
|
|
55
|
+
SP = "SP",
|
|
56
|
+
SP_LOWER = "sp",
|
|
57
|
+
TB = "TB",
|
|
58
|
+
TB_LOWER = "tb",
|
|
59
|
+
RESP = "RESP",
|
|
60
|
+
RESP_LOWER = "resp"
|
|
61
|
+
}
|
|
62
|
+
export declare enum PgtEnum {
|
|
63
|
+
TOP = "top",
|
|
64
|
+
SEARCH = "search",
|
|
65
|
+
SHOP_ITEM = "shop_item",
|
|
66
|
+
CART_MODIFY = "cart_modify",
|
|
67
|
+
CART_CHECKOUT = "cart_checkout"
|
|
68
|
+
}
|
|
69
|
+
export declare enum PowerstatusEnum {
|
|
70
|
+
V0 = 0,
|
|
71
|
+
V1 = 1
|
|
72
|
+
}
|
|
73
|
+
export declare enum SrtEnum {
|
|
74
|
+
NONE = "none",
|
|
75
|
+
OR = "or",
|
|
76
|
+
GENRE = "genre",
|
|
77
|
+
NGRAM = "ngram"
|
|
78
|
+
}
|
|
79
|
+
export interface OutputGenericParams {
|
|
80
|
+
/** Rp cookie */
|
|
81
|
+
Rp?: string;
|
|
82
|
+
/** Rz cookie */
|
|
83
|
+
Rz?: string;
|
|
84
|
+
/** AB test id */
|
|
85
|
+
abtest?: string;
|
|
86
|
+
/** For A/B test targeting */
|
|
87
|
+
abtest_target?: Record<string, unknown>;
|
|
88
|
+
/** Each account ID corresponds to a group of services */
|
|
89
|
+
acc?: number;
|
|
90
|
+
/** Action Type (ex: click, link_intercept) */
|
|
91
|
+
actype?: string;
|
|
92
|
+
/** Affiliate id */
|
|
93
|
+
afid?: number;
|
|
94
|
+
/** Adult flag */
|
|
95
|
+
aflg?: AflgEnum;
|
|
96
|
+
/** The service ID is assigned individually for each service. Multiple services can have same ID if their account ID differs. This is an optional parameter. */
|
|
97
|
+
aid?: number;
|
|
98
|
+
/** Flag for AMP page */
|
|
99
|
+
amp?: boolean;
|
|
100
|
+
/** App name */
|
|
101
|
+
app_name?: string;
|
|
102
|
+
/** App version */
|
|
103
|
+
app_ver?: string;
|
|
104
|
+
/** List of areas */
|
|
105
|
+
area?: string[];
|
|
106
|
+
/** Site section as used in site catalyst */
|
|
107
|
+
assc?: string;
|
|
108
|
+
/** Asynchronous elements load timing (ms) */
|
|
109
|
+
astime?: number;
|
|
110
|
+
/** Books genre */
|
|
111
|
+
bgenre?: string[];
|
|
112
|
+
/** Beacon id */
|
|
113
|
+
bid?: string;
|
|
114
|
+
/** Browser language as returned by the browser. Format: see IETF language tag (https://tools.ietf.org/html/bcp47) */
|
|
115
|
+
bln?: string;
|
|
116
|
+
/** Brand's name */
|
|
117
|
+
brand?: string[];
|
|
118
|
+
/** Cart state */
|
|
119
|
+
cart?: number;
|
|
120
|
+
/** Campaign code */
|
|
121
|
+
cc?: string;
|
|
122
|
+
/** Checkout step */
|
|
123
|
+
chkout?: ChkoutEnum;
|
|
124
|
+
/** Checkpoint step */
|
|
125
|
+
chkpt?: number;
|
|
126
|
+
/** Browser cookies of the request HTTP Header */
|
|
127
|
+
ck?: Record<string, unknown>;
|
|
128
|
+
/** Browser cookies total size in byte of the request HTTP Header */
|
|
129
|
+
ck_tbs?: number;
|
|
130
|
+
/** Browser cookies total count of the request HTTP Header */
|
|
131
|
+
ck_tc?: number;
|
|
132
|
+
/** IDFA/ADID */
|
|
133
|
+
cka?: string;
|
|
134
|
+
/** Value is set indirectly by specifying the corresponding cookie name */
|
|
135
|
+
ckp?: string;
|
|
136
|
+
/** Session Cookie with a unique value for each user, regardless of their membership. This value will match the Rp Cookie, and it will only be set on the rakuten.co.jp domain or on third party domains which have been allowed access to the Rp Cookie. On other third party domains this property will not be present. */
|
|
137
|
+
cks?: string;
|
|
138
|
+
/** Session Cookie with a unique value for each user, regardless of their membership. This value will match the Rp Cookie and the cks param in cases where the domain is rakuten.co.jp or a third party domain which has been allowed to access the Rp Cookie. In other cases, this value will match the _ra Cookie. */
|
|
139
|
+
cks2?: string;
|
|
140
|
+
/** Language used in the page content. Format: see IETF language tag (https://tools.ietf.org/html/bcp47) */
|
|
141
|
+
cntln?: string;
|
|
142
|
+
/** Id of page components involved in the current event */
|
|
143
|
+
compid?: string[];
|
|
144
|
+
/** Vertical position (pixels from the top of the page) of page components referenced in compid */
|
|
145
|
+
comptop?: number[];
|
|
146
|
+
/** ISO_3166 Alpha-2 Code */
|
|
147
|
+
country?: string;
|
|
148
|
+
/** Coupon used per order */
|
|
149
|
+
coupon_price?: number[];
|
|
150
|
+
/** List of coupon IDs prefixed with a shopid. When there are several coupons used in one shop, they are separated by colons : {shopid01}/{coupon_id01}:{coupon_id_02}, {shopid02}/{coupon_id03}:{coupon_id_04} */
|
|
151
|
+
couponid?: string[];
|
|
152
|
+
/** Custom parameter group: contain fields which are specific to certain services but do not apply in general to all services */
|
|
153
|
+
cp?: Record<string, unknown>;
|
|
154
|
+
/** Customer ID */
|
|
155
|
+
customerid?: string;
|
|
156
|
+
/** Custom conversion information */
|
|
157
|
+
cv?: Record<string, unknown>;
|
|
158
|
+
/** Currency code */
|
|
159
|
+
cycode?: string;
|
|
160
|
+
/** Currency code list */
|
|
161
|
+
cycodelist?: string[];
|
|
162
|
+
/** List of device identifiers (Android only) */
|
|
163
|
+
deviceid_list?: Record<string, unknown>;
|
|
164
|
+
/** Device language */
|
|
165
|
+
dln?: string;
|
|
166
|
+
/** In principle this should be in cp group since it applies to Ichiba only */
|
|
167
|
+
easyid?: string;
|
|
168
|
+
/** Encrypted easyid */
|
|
169
|
+
eeid?: string;
|
|
170
|
+
/** Error list */
|
|
171
|
+
errorlist?: Record<string, unknown>[];
|
|
172
|
+
/** Application form errors */
|
|
173
|
+
errors?: Record<string, unknown>;
|
|
174
|
+
/** Excluded search query */
|
|
175
|
+
esq?: string;
|
|
176
|
+
/** Event type */
|
|
177
|
+
etype?: string;
|
|
178
|
+
/** Google application set ID for Android devices that allows developers to correlate user activity across a set of their own apps installed on a single device. */
|
|
179
|
+
gas?: string;
|
|
180
|
+
/** Search genre */
|
|
181
|
+
genre?: string;
|
|
182
|
+
/** Goal id */
|
|
183
|
+
gol?: string;
|
|
184
|
+
/** Page URL, obtained from the tracking request's referrer header */
|
|
185
|
+
hurl?: string;
|
|
186
|
+
/** Indicates where the page was loaded. 0: Main window, 1: Frame */
|
|
187
|
+
ifr?: IfrEnum;
|
|
188
|
+
/** Represents the genre id associated with each item in itemid */
|
|
189
|
+
igenre?: string[];
|
|
190
|
+
/** Represents a genre name's hierarchy */
|
|
191
|
+
igenrenamepath?: string;
|
|
192
|
+
/** Represents a genre id's hierarchy */
|
|
193
|
+
igenrepath?: string;
|
|
194
|
+
/** RMS item number */
|
|
195
|
+
ino?: string[];
|
|
196
|
+
/** Event source IP adress */
|
|
197
|
+
ip?: string;
|
|
198
|
+
/** Receiver server version */
|
|
199
|
+
rcv_version?: string;
|
|
200
|
+
/** Receiver server hostname */
|
|
201
|
+
hostname?: string;
|
|
202
|
+
/** flag set to 1 on the first scroll event within a page */
|
|
203
|
+
issc?: IsscEnum;
|
|
204
|
+
/** Represents tags associated with each item in itemid, as a slash separated list */
|
|
205
|
+
itag?: string[];
|
|
206
|
+
/** Item name */
|
|
207
|
+
item_name?: string;
|
|
208
|
+
/** This contains an array of strings of the form "shopid/itemID"; if the shopid is missing the itemID is considered a productID */
|
|
209
|
+
itemid?: string[];
|
|
210
|
+
/** Short item ID used in page URL */
|
|
211
|
+
itemurl?: string;
|
|
212
|
+
/** Java plugin presence flag */
|
|
213
|
+
jav?: boolean;
|
|
214
|
+
/** User agent as obtained from JavaScript */
|
|
215
|
+
js_ua?: string;
|
|
216
|
+
/** Device type as obtained from JavaScript */
|
|
217
|
+
js_devtype?: string;
|
|
218
|
+
/** To support search in a user selected language different than the content or browser language */
|
|
219
|
+
lang?: string;
|
|
220
|
+
/** Page rendering time (ms) */
|
|
221
|
+
ldtime?: number;
|
|
222
|
+
/** Geolocation coordinates (ref: https://dev.w3.org/geo/api/spec-source.html#navi-geo) */
|
|
223
|
+
loc?: Record<string, unknown>;
|
|
224
|
+
/** Optional action parameters for requestion a location for an event of type `loc`, sent only when atleast one of them is present */
|
|
225
|
+
action_params?: Record<string, unknown>;
|
|
226
|
+
/** To indiacate location collection is user action or interval/distance based location collection, not sent when geotracker is disabled */
|
|
227
|
+
isaction?: boolean;
|
|
228
|
+
/** Script start time */
|
|
229
|
+
ltm?: string;
|
|
230
|
+
/** Maker's name */
|
|
231
|
+
maker?: string[];
|
|
232
|
+
/** Battery usage */
|
|
233
|
+
mbat?: string;
|
|
234
|
+
/** Mobile carrier name */
|
|
235
|
+
mcn?: string;
|
|
236
|
+
/** Mobile carrier name for dual SIM functionality */
|
|
237
|
+
mcnd?: string;
|
|
238
|
+
/** Detailed mobile network information (Android only) */
|
|
239
|
+
mno?: Record<string, unknown>;
|
|
240
|
+
/** Carrier identifier of the current subscription */
|
|
241
|
+
simcid?: number;
|
|
242
|
+
/** Carrier identifier name of the current subscription */
|
|
243
|
+
simcn?: string;
|
|
244
|
+
/** Service Provider Name (SPN) */
|
|
245
|
+
simopn?: string;
|
|
246
|
+
/** MCC+MNC of the provider of the SIM */
|
|
247
|
+
simop?: string;
|
|
248
|
+
/** Alphabetic name of current registered operator */
|
|
249
|
+
netopn?: string;
|
|
250
|
+
/** MCC+MNC of current registered operator */
|
|
251
|
+
netop?: string;
|
|
252
|
+
/** The current network is considered to be in roaming or not */
|
|
253
|
+
isroam?: boolean;
|
|
254
|
+
/** Details for the video/audio media-related events. */
|
|
255
|
+
media?: Record<string, unknown>;
|
|
256
|
+
/** The name of the event being tracked. */
|
|
257
|
+
event_name?: string;
|
|
258
|
+
/** Member id for global market places other than Ichiba */
|
|
259
|
+
memberid?: string;
|
|
260
|
+
/** Mobile navigation time (milliseconds) */
|
|
261
|
+
mnavtime?: number;
|
|
262
|
+
/** Mobile network type (-1-Unknown, 1-Wifi, 2-GPRS/2G, 3-3G, 4-4G/LTE, 5-5G) */
|
|
263
|
+
mnetw?: MnetwEnum;
|
|
264
|
+
/** Mobile network type (-1-Unknown, 1-Wifi, 2-GPRS/2G, 3-3G, 4-4G/LTE, 5-5G) for dual SIM functionality */
|
|
265
|
+
mnetwd?: MnetwdEnum;
|
|
266
|
+
/** Mobile device brand model */
|
|
267
|
+
model?: string;
|
|
268
|
+
/** Mobile orientation (1: portrait, 2: landscape) */
|
|
269
|
+
mori?: MoriEnum;
|
|
270
|
+
/** Mobile OS */
|
|
271
|
+
mos?: string;
|
|
272
|
+
/** m3_r cookie */
|
|
273
|
+
m3_r?: string;
|
|
274
|
+
/** Indicates how the page was loaded. 0: Normal navigation, 1: Page refresh, 2: Browser history back/forward, 3: Close window (app), 255: Unspecified */
|
|
275
|
+
navtype?: NavtypeEnum;
|
|
276
|
+
/** Goes with the 'itemid' parameter. Represents the number of items ordered for each item in the cart. */
|
|
277
|
+
ni?: number[];
|
|
278
|
+
/** Total item count per order, this goes together with the "order_list" parameter */
|
|
279
|
+
ni_order?: number[];
|
|
280
|
+
/** For search results pages. Indicates the logical relationship that was used between the search keywords ("o":exact OR, "a":exact AND, "x":approximate) */
|
|
281
|
+
oa?: OaEnum;
|
|
282
|
+
/** Online status when creating the event client side */
|
|
283
|
+
online?: boolean;
|
|
284
|
+
/** Order id */
|
|
285
|
+
order_id?: string;
|
|
286
|
+
/** List of order IDs; this was added for supporting the multiple order at once scenario, should replace the single "order_id" parameter eventually */
|
|
287
|
+
order_list?: string[];
|
|
288
|
+
/** Payment method */
|
|
289
|
+
payment?: string;
|
|
290
|
+
/** Page id */
|
|
291
|
+
pgid?: string;
|
|
292
|
+
/** PC: desktop browser, SP: Smartphone, TB: Tablet, RESP: Responsive layout */
|
|
293
|
+
pgl?: PglEnum;
|
|
294
|
+
/** Page name */
|
|
295
|
+
pgn?: string;
|
|
296
|
+
/** Page Section */
|
|
297
|
+
pgs?: string;
|
|
298
|
+
/** Page type */
|
|
299
|
+
pgt?: PgtEnum;
|
|
300
|
+
/** For integration with in-house AB test tool "Phoenix" */
|
|
301
|
+
phoenix_pattern?: string;
|
|
302
|
+
/** Point used per order */
|
|
303
|
+
point_price?: number[];
|
|
304
|
+
/** Battery charging status (0-Not charging, 1-Charging) */
|
|
305
|
+
powerstatus?: PowerstatusEnum;
|
|
306
|
+
/** Product code */
|
|
307
|
+
prdctcd?: string[];
|
|
308
|
+
/** Specifies the price of each item listed in itemid */
|
|
309
|
+
price?: number[];
|
|
310
|
+
/** Publisher's name */
|
|
311
|
+
publisher?: string[];
|
|
312
|
+
/** RAN code */
|
|
313
|
+
rancode?: string;
|
|
314
|
+
/** Unique event id */
|
|
315
|
+
ratid?: number;
|
|
316
|
+
/** Referrer URL */
|
|
317
|
+
ref?: string;
|
|
318
|
+
/** Error or result code */
|
|
319
|
+
reqc?: string;
|
|
320
|
+
/** Device screen resolution */
|
|
321
|
+
res?: string;
|
|
322
|
+
/** Reservation creation date */
|
|
323
|
+
rescreadate?: string;
|
|
324
|
+
/** Reserved date */
|
|
325
|
+
resdate?: string;
|
|
326
|
+
/** Reservation id */
|
|
327
|
+
reservation_id?: string;
|
|
328
|
+
/** Page layout used to display search results */
|
|
329
|
+
reslayout?: string;
|
|
330
|
+
/** Network response time to the initial page load request (ms) */
|
|
331
|
+
rqtime?: number;
|
|
332
|
+
/** Personal data cookie */
|
|
333
|
+
Rg?: string;
|
|
334
|
+
/** List of search criteria id */
|
|
335
|
+
scond?: string[];
|
|
336
|
+
/** SDK source which was used for sending an event. */
|
|
337
|
+
sdk_source?: string;
|
|
338
|
+
/** Specifies an entity type for each item in itemid (organic, ad, shop, item, product, etc) */
|
|
339
|
+
search_entity?: number[];
|
|
340
|
+
/** Service type */
|
|
341
|
+
service?: string;
|
|
342
|
+
/** Shop specific genre */
|
|
343
|
+
sgenre?: string;
|
|
344
|
+
/** Shipping method */
|
|
345
|
+
shipping?: string;
|
|
346
|
+
/** Shipping fee per order */
|
|
347
|
+
shipping_fee?: number[];
|
|
348
|
+
/** Shop id */
|
|
349
|
+
shopid?: string;
|
|
350
|
+
/** Shop id list */
|
|
351
|
+
shopidlist?: string[];
|
|
352
|
+
/** Part of the URL that identifies the shop */
|
|
353
|
+
shopurl?: string;
|
|
354
|
+
/** Shop url list */
|
|
355
|
+
shopurllist?: string[];
|
|
356
|
+
/** For integration with in-house AB test tool "Sphinx" */
|
|
357
|
+
sphinx_pattern?: string;
|
|
358
|
+
/** Search query */
|
|
359
|
+
sq?: string;
|
|
360
|
+
/** Same as itemid, for use with scroll events */
|
|
361
|
+
sresv?: string[];
|
|
362
|
+
/** Indicates the type of alternate search used when the initial search does not return anything */
|
|
363
|
+
srt?: SrtEnum;
|
|
364
|
+
/** ss_r cookie */
|
|
365
|
+
ss_r?: string;
|
|
366
|
+
/** Bigger page/screen analysis granularity than page name */
|
|
367
|
+
ssc?: string;
|
|
368
|
+
/** Screen width in density-independent pixels (dp). */
|
|
369
|
+
sw_dp?: number;
|
|
370
|
+
/** A list of search tags */
|
|
371
|
+
tag?: string[];
|
|
372
|
+
/** Unique target_ele to all clickable element <p>{screen_name}:{component_name}-{element_type}.{action}</p> */
|
|
373
|
+
target_ele?: string;
|
|
374
|
+
/** Position in list of elements, starting from 0 */
|
|
375
|
+
target_pos?: number[];
|
|
376
|
+
/** Cookie generated used for tracking. History ID */
|
|
377
|
+
tg_af_histid?: string;
|
|
378
|
+
/** Random unique id for repeated accesses to a domain within the same browser tab. Note: the id will not persist across page loads in IE7 and below, or in private browsing mode in Safari/Android browsers */
|
|
379
|
+
tid?: string;
|
|
380
|
+
/** Character set of page content */
|
|
381
|
+
tis?: string;
|
|
382
|
+
/** Total prices per order, this goes together with the "order_list" parameter */
|
|
383
|
+
total_price?: number[];
|
|
384
|
+
/** Total time for page load. From navigationStart to loadEventEnd */
|
|
385
|
+
tpgldtime?: number;
|
|
386
|
+
/** Event reception timestamp (seconds, epoch time) */
|
|
387
|
+
ts?: number;
|
|
388
|
+
/** For redirect and native app purposes only. Format: seconds since epoch time */
|
|
389
|
+
ts1?: number;
|
|
390
|
+
/** Timezone expressed in hour offset from GMT */
|
|
391
|
+
tzo?: number;
|
|
392
|
+
/** User agent */
|
|
393
|
+
ua?: string;
|
|
394
|
+
/** A user agent's branding and significant version */
|
|
395
|
+
uach?: string;
|
|
396
|
+
/** The architecture of the platform */
|
|
397
|
+
uach_arch?: string;
|
|
398
|
+
/** The bitness of the architecture of the platform */
|
|
399
|
+
uach_bitness?: string;
|
|
400
|
+
/** The full version for each brand in its brands list */
|
|
401
|
+
uach_full_version_list?: string;
|
|
402
|
+
/** Whether or not a user agent prefers a "mobile" user experience */
|
|
403
|
+
uach_mobile?: string;
|
|
404
|
+
/** Device model */
|
|
405
|
+
uach_model?: string;
|
|
406
|
+
/** OS Platform */
|
|
407
|
+
uach_platform?: string;
|
|
408
|
+
/** OS platform version */
|
|
409
|
+
uach_platform_version?: string;
|
|
410
|
+
/** Whether or not a user agent binary is running in 32-bit mode on 64-bit Windows */
|
|
411
|
+
uach_wow64?: string;
|
|
412
|
+
/** Enriched user agent string to capture device and OS details. */
|
|
413
|
+
ua_enriched?: string;
|
|
414
|
+
/** Page URL */
|
|
415
|
+
url?: string;
|
|
416
|
+
/** Defined for applications to pass users encrypted member id */
|
|
417
|
+
userid?: string;
|
|
418
|
+
/** Flag to indicate whether cks was issued via the Server or client side (via JavaScript). When true, cks was issued via the Server as the Rp Cookie. When false, cks was issued client side as the _ra Cookie. */
|
|
419
|
+
use_cks?: boolean;
|
|
420
|
+
/** A list of item id used to identify variants of items/services */
|
|
421
|
+
variantid?: string[];
|
|
422
|
+
/** Goes together with the "itemid" parameter. Key-value mappings of each item's variations. Short names and abbreviations are preferred */
|
|
423
|
+
variation?: Record<string, unknown>[];
|
|
424
|
+
/** Client SDK or Library version */
|
|
425
|
+
ver?: string;
|
|
426
|
+
/** For integration with in-house AB test tool "Widowbird" */
|
|
427
|
+
wb_pattern?: string;
|
|
428
|
+
/** Web-Vitals metric of measuring the first content paint. Reports the time from when the user first navigated to the page to when any part of the page's content is rendered on the screen. Unit is "milliseconds" */
|
|
429
|
+
wv_fcp?: number;
|
|
430
|
+
/** Web-Vitals metric of measuring the largest content paint. Reports the render time of the largest image or text block visible in the viewport. Unit is "milliseconds" */
|
|
431
|
+
wv_lcp?: number;
|
|
432
|
+
/** (deprecated) Web-Vitals metric of measuring the delay of the first user input. Unit is "milliseconds" */
|
|
433
|
+
wv_fid?: number;
|
|
434
|
+
/** Web-Vitals metric of measuring the interaction to next paint. Reports the highest latency out of all interactions a user made with the page. Unit is "milliseconds" */
|
|
435
|
+
wv_inp?: number;
|
|
436
|
+
/** Web-Vitals metric of measuring the cumulative layout shift. Reports the largest burst of layout shift scores for unexpected layout shifts. */
|
|
437
|
+
wv_cls?: number;
|
|
438
|
+
/** Web-Vitals metric of measuring the time to the first byte of request. Reports the time between the request for the page and when the first byte of a response begins to arrive. Unit is "milliseconds" */
|
|
439
|
+
wv_ttfb?: number;
|
|
440
|
+
/** Web-Vitals script version */
|
|
441
|
+
wv_ver?: string;
|
|
442
|
+
/** Cookie with a unique value for each user (browser), regardless of their membership. _ra is issued at client side via JavaScript. */
|
|
443
|
+
_ra?: string;
|
|
444
|
+
}
|
|
445
|
+
export interface InputGenericParams {
|
|
446
|
+
/** defName: Rp - Rp cookie */
|
|
447
|
+
rpCookie?: string;
|
|
448
|
+
/** defName: Rz - Rz cookie */
|
|
449
|
+
rzCookie?: string;
|
|
450
|
+
/** defName: abtest - AB test id */
|
|
451
|
+
abTest?: string;
|
|
452
|
+
/** defName: abtest_target - For A/B test targeting */
|
|
453
|
+
testTargeting?: Record<string, unknown>;
|
|
454
|
+
/** defName: acc - Each account ID corresponds to a group of services */
|
|
455
|
+
accountId?: number;
|
|
456
|
+
/** defName: afid - Affiliate id */
|
|
457
|
+
affiliateId?: number;
|
|
458
|
+
/** defName: aflg - Adult flag */
|
|
459
|
+
adultFlag?: AflgEnum;
|
|
460
|
+
/** defName: aid - The service ID is assigned individually for each service. Multiple services can have same ID if their account ID differs. This is an optional parameter. */
|
|
461
|
+
serviceId?: number;
|
|
462
|
+
/** defName: app_name - App name */
|
|
463
|
+
appName?: string;
|
|
464
|
+
/** defName: app_ver - App version */
|
|
465
|
+
appVersion?: string;
|
|
466
|
+
/** defName: area - List of areas */
|
|
467
|
+
area?: string[];
|
|
468
|
+
/** defName: assc - Site section as used in site catalyst */
|
|
469
|
+
adobeSiteSection?: string;
|
|
470
|
+
/** defName: bgenre - Books genre */
|
|
471
|
+
booksGenre?: string[];
|
|
472
|
+
/** defName: brand - Brand's name */
|
|
473
|
+
brand?: string[];
|
|
474
|
+
/** defName: cart - Cart state */
|
|
475
|
+
cartState?: number;
|
|
476
|
+
/** defName: cc - Campaign code */
|
|
477
|
+
campaignCode?: string;
|
|
478
|
+
/** defName: chkout - Checkout step */
|
|
479
|
+
checkout?: ChkoutEnum;
|
|
480
|
+
/** defName: chkpt - Checkpoint step */
|
|
481
|
+
checkpoint?: number;
|
|
482
|
+
/** defName: cka - IDFA/ADID */
|
|
483
|
+
idfaCookie?: string;
|
|
484
|
+
/** defName: ckp - Value is set indirectly by specifying the corresponding cookie name */
|
|
485
|
+
persistentCookie?: string;
|
|
486
|
+
/** defName: cks - Session Cookie with a unique value for each user, regardless of their membership. This value will match the Rp Cookie, and it will only be set on the rakuten.co.jp domain or on third party domains which have been allowed access to the Rp Cookie. On other third party domains this property will not be present. */
|
|
487
|
+
sessionCookie?: string;
|
|
488
|
+
/** defName: cks2 - Session Cookie with a unique value for each user, regardless of their membership. This value will match the Rp Cookie and the cks param in cases where the domain is rakuten.co.jp or a third party domain which has been allowed to access the Rp Cookie. In other cases, this value will match the _ra Cookie. */
|
|
489
|
+
sessionCookieV2?: string;
|
|
490
|
+
/** defName: cntln - Language used in the page content. Format: see IETF language tag (https://tools.ietf.org/html/bcp47) */
|
|
491
|
+
contentLanguage?: string;
|
|
492
|
+
/** defName: compid - Id of page components involved in the current event */
|
|
493
|
+
componentId?: string[];
|
|
494
|
+
/** defName: country - ISO_3166 Alpha-2 Code */
|
|
495
|
+
countryCode?: string;
|
|
496
|
+
/** defName: coupon_price - Coupon used per order */
|
|
497
|
+
couponPrice?: number[];
|
|
498
|
+
/** defName: couponid - List of coupon IDs prefixed with a shopid. When there are several coupons used in one shop, they are separated by colons : {shopid01}/{coupon_id01}:{coupon_id_02}, {shopid02}/{coupon_id03}:{coupon_id_04} */
|
|
499
|
+
couponId?: string[];
|
|
500
|
+
/** defName: cp - Custom parameter group: contain fields which are specific to certain services but do not apply in general to all services */
|
|
501
|
+
customParameters?: Record<string, unknown>;
|
|
502
|
+
/** defName: customerid - Customer ID */
|
|
503
|
+
customerId?: string;
|
|
504
|
+
/** defName: cv - Custom conversion information */
|
|
505
|
+
cvEvent?: Record<string, unknown>;
|
|
506
|
+
/** defName: cycode - Currency code */
|
|
507
|
+
currencyCode?: string;
|
|
508
|
+
/** defName: cycodelist - Currency code list */
|
|
509
|
+
currencyCodeList?: string[];
|
|
510
|
+
/** defName: dln - Device language */
|
|
511
|
+
deviceLanguage?: string;
|
|
512
|
+
/** defName: eeid - Encrypted easyid */
|
|
513
|
+
eeid?: string;
|
|
514
|
+
/** defName: errorlist - Error list */
|
|
515
|
+
errorList?: Record<string, unknown>[];
|
|
516
|
+
/** defName: errors - Application form errors */
|
|
517
|
+
errors?: Record<string, unknown>;
|
|
518
|
+
/** defName: esq - Excluded search query */
|
|
519
|
+
excludeQuery?: string;
|
|
520
|
+
/** defName: etype - Event type */
|
|
521
|
+
eventType?: string;
|
|
522
|
+
/** defName: genre - Search genre */
|
|
523
|
+
genre?: string;
|
|
524
|
+
/** defName: gol - Goal id */
|
|
525
|
+
goalId?: string;
|
|
526
|
+
/** defName: igenre - Represents the genre id associated with each item in itemid */
|
|
527
|
+
itemGenre?: string[];
|
|
528
|
+
/** defName: igenrenamepath - Represents a genre name's hierarchy */
|
|
529
|
+
itemGenreNamePath?: string;
|
|
530
|
+
/** defName: igenrepath - Represents a genre id's hierarchy */
|
|
531
|
+
itemGenrePath?: string;
|
|
532
|
+
/** defName: ino - RMS item number */
|
|
533
|
+
rmsItemNumber?: string[];
|
|
534
|
+
/** defName: itag - Represents tags associated with each item in itemid, as a slash separated list */
|
|
535
|
+
itemTag?: string[];
|
|
536
|
+
/** defName: item_name - Item name */
|
|
537
|
+
itemName?: string;
|
|
538
|
+
/** defName: itemid - This contains an array of strings of the form "shopid/itemID"; if the shopid is missing the itemID is considered a productID */
|
|
539
|
+
itemId?: string[];
|
|
540
|
+
/** defName: itemurl - Short item ID used in page URL */
|
|
541
|
+
itemUrl?: string;
|
|
542
|
+
/** defName: lang - To support search in a user selected language different than the content or browser language */
|
|
543
|
+
language?: string;
|
|
544
|
+
/** defName: loc - Geolocation coordinates (ref: https://dev.w3.org/geo/api/spec-source.html#navi-geo) */
|
|
545
|
+
location?: Record<string, unknown>;
|
|
546
|
+
/** defName: action_params - Optional action parameters for requestion a location for an event of type `loc`, sent only when atleast one of them is present */
|
|
547
|
+
requestLocationActionParameters?: Record<string, unknown>;
|
|
548
|
+
/** defName: maker - Maker's name */
|
|
549
|
+
maker?: string[];
|
|
550
|
+
/** defName: mbat - Battery usage */
|
|
551
|
+
batteryUsage?: string;
|
|
552
|
+
/** defName: mcn - Mobile carrier name */
|
|
553
|
+
mobileCarrierName?: string;
|
|
554
|
+
/** defName: mcnd - Mobile carrier name for dual SIM functionality */
|
|
555
|
+
mobileCarrierNameForDualSim?: string;
|
|
556
|
+
/** defName: media - Details for the video/audio media-related events. */
|
|
557
|
+
media?: Record<string, unknown>;
|
|
558
|
+
/** defName: event_name - The name of the event being tracked. */
|
|
559
|
+
eventName?: string;
|
|
560
|
+
/** defName: mnavtime - Mobile navigation time (milliseconds) */
|
|
561
|
+
mobileNavigationTime?: number;
|
|
562
|
+
/** defName: model - Mobile device brand model */
|
|
563
|
+
mobileDeviceBrandModel?: string;
|
|
564
|
+
/** defName: mori - Mobile orientation (1: portrait, 2: landscape) */
|
|
565
|
+
mobileOrientation?: MoriEnum;
|
|
566
|
+
/** defName: mos - Mobile OS */
|
|
567
|
+
mobileOs?: string;
|
|
568
|
+
/** defName: m3_r - m3_r cookie */
|
|
569
|
+
m3rCookie?: string;
|
|
570
|
+
/** defName: ni - Goes with the 'itemid' parameter. Represents the number of items ordered for each item in the cart. */
|
|
571
|
+
itemCount?: number[];
|
|
572
|
+
/** defName: ni_order - Total item count per order, this goes together with the "order_list" parameter */
|
|
573
|
+
itemCountOrder?: number[];
|
|
574
|
+
/** defName: oa - For search results pages. Indicates the logical relationship that was used between the search keywords ("o":exact OR, "a":exact AND, "x":approximate) */
|
|
575
|
+
orAnd?: OaEnum;
|
|
576
|
+
/** defName: order_id - Order id */
|
|
577
|
+
orderId?: string;
|
|
578
|
+
/** defName: order_list - List of order IDs; this was added for supporting the multiple order at once scenario, should replace the single "order_id" parameter eventually */
|
|
579
|
+
orderList?: string[];
|
|
580
|
+
/** defName: payment - Payment method */
|
|
581
|
+
payment?: string;
|
|
582
|
+
/** defName: pgl - PC: desktop browser, SP: Smartphone, TB: Tablet, RESP: Responsive layout */
|
|
583
|
+
pageLayout?: PglEnum;
|
|
584
|
+
/** defName: pgn - Page name */
|
|
585
|
+
pageName?: string;
|
|
586
|
+
/** defName: pgs - Page Section */
|
|
587
|
+
pageSection?: string;
|
|
588
|
+
/** defName: pgt - Page type */
|
|
589
|
+
pageType?: PgtEnum;
|
|
590
|
+
/** defName: phoenix_pattern - For integration with in-house AB test tool "Phoenix" */
|
|
591
|
+
phoenixPattern?: string;
|
|
592
|
+
/** defName: point_price - Point used per order */
|
|
593
|
+
pointPrice?: number[];
|
|
594
|
+
/** defName: powerstatus - Battery charging status (0-Not charging, 1-Charging) */
|
|
595
|
+
batteryChargingStatus?: PowerstatusEnum;
|
|
596
|
+
/** defName: prdctcd - Product code */
|
|
597
|
+
productCode?: string[];
|
|
598
|
+
/** defName: price - Specifies the price of each item listed in itemid */
|
|
599
|
+
price?: number[];
|
|
600
|
+
/** defName: publisher - Publisher's name */
|
|
601
|
+
publisher?: string[];
|
|
602
|
+
/** defName: rancode - RAN code */
|
|
603
|
+
ranCode?: string;
|
|
604
|
+
/** defName: reqc - Error or result code */
|
|
605
|
+
requestResult?: string;
|
|
606
|
+
/** defName: rescreadate - Reservation creation date */
|
|
607
|
+
reservationMadeDate?: string;
|
|
608
|
+
/** defName: resdate - Reserved date */
|
|
609
|
+
reservedDate?: string;
|
|
610
|
+
/** defName: reservation_id - Reservation id */
|
|
611
|
+
reservationId?: string;
|
|
612
|
+
/** defName: reslayout - Page layout used to display search results */
|
|
613
|
+
resultLayout?: string;
|
|
614
|
+
/** defName: Rg - Personal data cookie */
|
|
615
|
+
rgCookie?: string;
|
|
616
|
+
/** defName: scond - List of search criteria id */
|
|
617
|
+
searchCondition?: string[];
|
|
618
|
+
/** defName: search_entity - Specifies an entity type for each item in itemid (organic, ad, shop, item, product, etc) */
|
|
619
|
+
searchEntity?: number[];
|
|
620
|
+
/** defName: service - Service type */
|
|
621
|
+
serviceType?: string;
|
|
622
|
+
/** defName: sgenre - Shop specific genre */
|
|
623
|
+
shopGenre?: string;
|
|
624
|
+
/** defName: shipping - Shipping method */
|
|
625
|
+
shippingMethod?: string;
|
|
626
|
+
/** defName: shipping_fee - Shipping fee per order */
|
|
627
|
+
shippingFee?: number[];
|
|
628
|
+
/** defName: shopid - Shop id */
|
|
629
|
+
shopId?: string;
|
|
630
|
+
/** defName: shopidlist - Shop id list */
|
|
631
|
+
shopIdList?: string[];
|
|
632
|
+
/** defName: shopurl - Part of the URL that identifies the shop */
|
|
633
|
+
shopUrl?: string;
|
|
634
|
+
/** defName: shopurllist - Shop url list */
|
|
635
|
+
shopUrlList?: string[];
|
|
636
|
+
/** defName: sphinx_pattern - For integration with in-house AB test tool "Sphinx" */
|
|
637
|
+
sphinxPattern?: string;
|
|
638
|
+
/** defName: sq - Search query */
|
|
639
|
+
searchQuery?: string;
|
|
640
|
+
/** defName: sresv - Same as itemid, for use with scroll events */
|
|
641
|
+
scrollViewed?: string[];
|
|
642
|
+
/** defName: srt - Indicates the type of alternate search used when the initial search does not return anything */
|
|
643
|
+
retryType?: SrtEnum;
|
|
644
|
+
/** defName: ss_r - ss_r cookie */
|
|
645
|
+
ssrCookie?: string;
|
|
646
|
+
/** defName: ssc - Bigger page/screen analysis granularity than page name */
|
|
647
|
+
siteSection?: string;
|
|
648
|
+
/** defName: tag - A list of search tags */
|
|
649
|
+
tag?: string[];
|
|
650
|
+
/** defName: target_ele - Unique target_ele to all clickable element <p>{screen_name}:{component_name}-{element_type}.{action}</p> */
|
|
651
|
+
targetElement?: string;
|
|
652
|
+
/** defName: total_price - Total prices per order, this goes together with the "order_list" parameter */
|
|
653
|
+
totalPrice?: number[];
|
|
654
|
+
/** defName: ts1 - For redirect and native app purposes only. Format: seconds since epoch time */
|
|
655
|
+
clientProvidedTimestamp?: number;
|
|
656
|
+
/** defName: userid - Defined for applications to pass users encrypted member id */
|
|
657
|
+
userId?: string;
|
|
658
|
+
/** defName: variantid - A list of item id used to identify variants of items/services */
|
|
659
|
+
variantid?: string[];
|
|
660
|
+
/** defName: variation - Goes together with the "itemid" parameter. Key-value mappings of each item's variations. Short names and abbreviations are preferred */
|
|
661
|
+
itemVariation?: Record<string, unknown>[];
|
|
662
|
+
/** defName: wb_pattern - For integration with in-house AB test tool "Widowbird" */
|
|
663
|
+
widowbirdPattern?: string;
|
|
664
|
+
/** defName: _ra - Cookie with a unique value for each user (browser), regardless of their membership. _ra is issued at client side via JavaScript. */
|
|
665
|
+
userCookieJs?: string;
|
|
666
|
+
}
|
|
667
|
+
export declare const inputToOutputMap: {
|
|
668
|
+
readonly rpCookie: "Rp";
|
|
669
|
+
readonly rzCookie: "Rz";
|
|
670
|
+
readonly abTest: "abtest";
|
|
671
|
+
readonly testTargeting: "abtest_target";
|
|
672
|
+
readonly accountId: "acc";
|
|
673
|
+
readonly affiliateId: "afid";
|
|
674
|
+
readonly adultFlag: "aflg";
|
|
675
|
+
readonly serviceId: "aid";
|
|
676
|
+
readonly appName: "app_name";
|
|
677
|
+
readonly appVersion: "app_ver";
|
|
678
|
+
readonly area: "area";
|
|
679
|
+
readonly adobeSiteSection: "assc";
|
|
680
|
+
readonly booksGenre: "bgenre";
|
|
681
|
+
readonly brand: "brand";
|
|
682
|
+
readonly cartState: "cart";
|
|
683
|
+
readonly campaignCode: "cc";
|
|
684
|
+
readonly checkout: "chkout";
|
|
685
|
+
readonly checkpoint: "chkpt";
|
|
686
|
+
readonly idfaCookie: "cka";
|
|
687
|
+
readonly persistentCookie: "ckp";
|
|
688
|
+
readonly sessionCookie: "cks";
|
|
689
|
+
readonly sessionCookieV2: "cks2";
|
|
690
|
+
readonly contentLanguage: "cntln";
|
|
691
|
+
readonly componentId: "compid";
|
|
692
|
+
readonly countryCode: "country";
|
|
693
|
+
readonly couponPrice: "coupon_price";
|
|
694
|
+
readonly couponId: "couponid";
|
|
695
|
+
readonly customParameters: "cp";
|
|
696
|
+
readonly customerId: "customerid";
|
|
697
|
+
readonly cvEvent: "cv";
|
|
698
|
+
readonly currencyCode: "cycode";
|
|
699
|
+
readonly currencyCodeList: "cycodelist";
|
|
700
|
+
readonly deviceLanguage: "dln";
|
|
701
|
+
readonly eeid: "eeid";
|
|
702
|
+
readonly errorList: "errorlist";
|
|
703
|
+
readonly errors: "errors";
|
|
704
|
+
readonly excludeQuery: "esq";
|
|
705
|
+
readonly eventType: "etype";
|
|
706
|
+
readonly genre: "genre";
|
|
707
|
+
readonly goalId: "gol";
|
|
708
|
+
readonly itemGenre: "igenre";
|
|
709
|
+
readonly itemGenreNamePath: "igenrenamepath";
|
|
710
|
+
readonly itemGenrePath: "igenrepath";
|
|
711
|
+
readonly rmsItemNumber: "ino";
|
|
712
|
+
readonly itemTag: "itag";
|
|
713
|
+
readonly itemName: "item_name";
|
|
714
|
+
readonly itemId: "itemid";
|
|
715
|
+
readonly itemUrl: "itemurl";
|
|
716
|
+
readonly language: "lang";
|
|
717
|
+
readonly location: "loc";
|
|
718
|
+
readonly requestLocationActionParameters: "action_params";
|
|
719
|
+
readonly maker: "maker";
|
|
720
|
+
readonly batteryUsage: "mbat";
|
|
721
|
+
readonly mobileCarrierName: "mcn";
|
|
722
|
+
readonly mobileCarrierNameForDualSim: "mcnd";
|
|
723
|
+
readonly media: "media";
|
|
724
|
+
readonly eventName: "event_name";
|
|
725
|
+
readonly mobileNavigationTime: "mnavtime";
|
|
726
|
+
readonly mobileDeviceBrandModel: "model";
|
|
727
|
+
readonly mobileOrientation: "mori";
|
|
728
|
+
readonly mobileOs: "mos";
|
|
729
|
+
readonly m3rCookie: "m3_r";
|
|
730
|
+
readonly itemCount: "ni";
|
|
731
|
+
readonly itemCountOrder: "ni_order";
|
|
732
|
+
readonly orAnd: "oa";
|
|
733
|
+
readonly orderId: "order_id";
|
|
734
|
+
readonly orderList: "order_list";
|
|
735
|
+
readonly payment: "payment";
|
|
736
|
+
readonly pageLayout: "pgl";
|
|
737
|
+
readonly pageName: "pgn";
|
|
738
|
+
readonly pageSection: "pgs";
|
|
739
|
+
readonly pageType: "pgt";
|
|
740
|
+
readonly phoenixPattern: "phoenix_pattern";
|
|
741
|
+
readonly pointPrice: "point_price";
|
|
742
|
+
readonly batteryChargingStatus: "powerstatus";
|
|
743
|
+
readonly productCode: "prdctcd";
|
|
744
|
+
readonly price: "price";
|
|
745
|
+
readonly publisher: "publisher";
|
|
746
|
+
readonly ranCode: "rancode";
|
|
747
|
+
readonly requestResult: "reqc";
|
|
748
|
+
readonly reservationMadeDate: "rescreadate";
|
|
749
|
+
readonly reservedDate: "resdate";
|
|
750
|
+
readonly reservationId: "reservation_id";
|
|
751
|
+
readonly resultLayout: "reslayout";
|
|
752
|
+
readonly rgCookie: "Rg";
|
|
753
|
+
readonly searchCondition: "scond";
|
|
754
|
+
readonly searchEntity: "search_entity";
|
|
755
|
+
readonly serviceType: "service";
|
|
756
|
+
readonly shopGenre: "sgenre";
|
|
757
|
+
readonly shippingMethod: "shipping";
|
|
758
|
+
readonly shippingFee: "shipping_fee";
|
|
759
|
+
readonly shopId: "shopid";
|
|
760
|
+
readonly shopIdList: "shopidlist";
|
|
761
|
+
readonly shopUrl: "shopurl";
|
|
762
|
+
readonly shopUrlList: "shopurllist";
|
|
763
|
+
readonly sphinxPattern: "sphinx_pattern";
|
|
764
|
+
readonly searchQuery: "sq";
|
|
765
|
+
readonly scrollViewed: "sresv";
|
|
766
|
+
readonly retryType: "srt";
|
|
767
|
+
readonly ssrCookie: "ss_r";
|
|
768
|
+
readonly siteSection: "ssc";
|
|
769
|
+
readonly tag: "tag";
|
|
770
|
+
readonly targetElement: "target_ele";
|
|
771
|
+
readonly totalPrice: "total_price";
|
|
772
|
+
readonly clientProvidedTimestamp: "ts1";
|
|
773
|
+
readonly userId: "userid";
|
|
774
|
+
readonly variantid: "variantid";
|
|
775
|
+
readonly itemVariation: "variation";
|
|
776
|
+
readonly widowbirdPattern: "wb_pattern";
|
|
777
|
+
readonly userCookieJs: "_ra";
|
|
778
|
+
};
|