@socialgouv/matomo-postgres 1.5.0 → 1.5.2-beta.1

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.
@@ -1,389 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`importDate: should import all events for a given date 1`] = `
4
- Array [
5
- Object {
6
- "date": "2021-08-02",
7
- "filter_limit": 500,
8
- "filter_offset": 0,
9
- "filter_sort_order": "asc",
10
- "idSite": 0,
11
- "method": "Live.getLastVisitsDetails",
12
- "period": "day",
13
- },
14
- ]
15
- `;
16
-
17
- exports[`importDate: should import all events for a given date 2`] = `
18
- Array [
19
- Array [
20
- "SELECT COUNT(distinct idvisit) FROM matomo WHERE action_timestamp::date='2021-08-02';",
21
- ],
22
- Array [
23
- "insert into matomo
24
- (idsite, idvisit, actions, country, region, city, operatingsystemname, devicemodel, devicebrand, visitduration, dayssincefirstvisit, visitortype, visitorid, referrertype, referrername, sitename, userid, serverdateprettyfirstaction, action_id, action_type, action_title, action_eventcategory, action_eventaction, action_eventname, action_eventvalue, action_timespent, action_timestamp, action_url, siteSearchKeyword, usercustomproperties, usercustomdimensions, dimension1, dimension2, dimension3, dimension4, dimension5, dimension6, dimension7, dimension8, dimension9, dimension10)
25
- values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25, $26, $27, $28, $29, $30, $31, $32, $33, $34, $35, $36, $37, $38, $39, $40, $41)
26
- ON CONFLICT DO NOTHING",
27
- Array [
28
- "42",
29
- 123,
30
- "2",
31
- "Argentine",
32
- "Buenos Aires",
33
- "Buenos Aires",
34
- "Mac",
35
- "Générique Bureau",
36
- "Inconnu",
37
- "300",
38
- "23",
39
- "returningCustomer",
40
- "visitorId",
41
- "referrerType",
42
- "referrerName",
43
- "tests",
44
- "24",
45
- "2021-08-20T21:55:12.000Z",
46
- "123_0",
47
- "event",
48
- "Evènement",
49
- "Ecommerce",
50
- "Cart change",
51
- "added - Basic Wetsuit",
52
- 1,
53
- 48,
54
- "2021-08-20T21:35:18.000Z",
55
- "https://dive-shop.net/products/basic-wetsuit/",
56
- undefined,
57
- Object {
58
- "page-author": "Julien",
59
- "post-age": "-430 days",
60
- },
61
- Object {
62
- "dimension1": "guest",
63
- "dimension10": "36",
64
- "dimension2": "julien",
65
- "dimension3": "page",
66
- "dimension4": "indonesia",
67
- "dimension5": "diving",
68
- "dimension6": "shop",
69
- "dimension7": "v1.2.3",
70
- "dimension8": "fr",
71
- "dimension9": "light",
72
- },
73
- "guest",
74
- "julien",
75
- "page",
76
- "indonesia",
77
- "diving",
78
- "shop",
79
- "v1.2.3",
80
- "fr",
81
- "light",
82
- "36",
83
- ],
84
- ],
85
- Array [
86
- "insert into matomo
87
- (idsite, idvisit, actions, country, region, city, operatingsystemname, devicemodel, devicebrand, visitduration, dayssincefirstvisit, visitortype, visitorid, referrertype, referrername, sitename, userid, serverdateprettyfirstaction, action_id, action_type, action_title, action_eventcategory, action_eventaction, action_eventname, action_eventvalue, action_timespent, action_timestamp, action_url, siteSearchKeyword, usercustomproperties, usercustomdimensions, dimension1, dimension2, dimension3, dimension4, dimension5, dimension6, dimension7, dimension8, dimension9, dimension10)
88
- values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25, $26, $27, $28, $29, $30, $31, $32, $33, $34, $35, $36, $37, $38, $39, $40, $41)
89
- ON CONFLICT DO NOTHING",
90
- Array [
91
- "42",
92
- 123,
93
- "2",
94
- "Argentine",
95
- "Buenos Aires",
96
- "Buenos Aires",
97
- "Mac",
98
- "Générique Bureau",
99
- "Inconnu",
100
- "300",
101
- "23",
102
- "returningCustomer",
103
- "visitorId",
104
- "referrerType",
105
- "referrerName",
106
- "tests",
107
- "24",
108
- "2021-08-20T21:55:12.000Z",
109
- "123_1",
110
- "action",
111
- "Divezone Brand Diving Boots - Divezone Store",
112
- undefined,
113
- undefined,
114
- undefined,
115
- undefined,
116
- "2",
117
- "2021-08-20T21:30:25.000Z",
118
- "https://dive-shop.net/products/diving-boots/",
119
- undefined,
120
- Object {},
121
- Object {
122
- "dimension1": "guest",
123
- "dimension10": "36",
124
- "dimension2": "julien",
125
- "dimension3": "page",
126
- "dimension4": "indonesia",
127
- "dimension5": "diving",
128
- "dimension6": "shop",
129
- "dimension7": "v1.2.3",
130
- "dimension8": "fr",
131
- "dimension9": "light",
132
- },
133
- "guest",
134
- "julien",
135
- "page",
136
- "indonesia",
137
- "diving",
138
- "shop",
139
- "v1.2.3",
140
- "fr",
141
- "light",
142
- "36",
143
- ],
144
- ],
145
- Array [
146
- "insert into matomo
147
- (idsite, idvisit, actions, country, region, city, operatingsystemname, devicemodel, devicebrand, visitduration, dayssincefirstvisit, visitortype, visitorid, referrertype, referrername, sitename, userid, serverdateprettyfirstaction, action_id, action_type, action_title, action_eventcategory, action_eventaction, action_eventname, action_eventvalue, action_timespent, action_timestamp, action_url, siteSearchKeyword, usercustomproperties, usercustomdimensions, dimension1, dimension2, dimension3, dimension4, dimension5, dimension6, dimension7, dimension8, dimension9, dimension10)
148
- values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25, $26, $27, $28, $29, $30, $31, $32, $33, $34, $35, $36, $37, $38, $39, $40, $41)
149
- ON CONFLICT DO NOTHING",
150
- Array [
151
- "42",
152
- 123,
153
- "2",
154
- "Argentine",
155
- "Buenos Aires",
156
- "Buenos Aires",
157
- "Mac",
158
- "Générique Bureau",
159
- "Inconnu",
160
- "300",
161
- "23",
162
- "returningCustomer",
163
- "visitorId",
164
- "referrerType",
165
- "referrerName",
166
- "tests",
167
- "24",
168
- "2021-08-20T21:55:12.000Z",
169
- "123_2",
170
- "search",
171
- "Divezone Brand Diving Boots - Divezone Store",
172
- undefined,
173
- undefined,
174
- undefined,
175
- undefined,
176
- "2",
177
- "2021-08-20T21:30:22.000Z",
178
- "https://dive-shop.net/products/diving-boots/",
179
- "scuba",
180
- Object {},
181
- Object {
182
- "dimension1": "guest",
183
- "dimension10": "36",
184
- "dimension2": "julien",
185
- "dimension3": "page",
186
- "dimension4": "indonesia",
187
- "dimension5": "diving",
188
- "dimension6": "shop",
189
- "dimension7": "v1.2.3",
190
- "dimension8": "fr",
191
- "dimension9": "light",
192
- },
193
- "guest",
194
- "julien",
195
- "page",
196
- "indonesia",
197
- "diving",
198
- "shop",
199
- "v1.2.3",
200
- "fr",
201
- "light",
202
- "36",
203
- ],
204
- ],
205
- Array [
206
- "insert into matomo
207
- (idsite, idvisit, actions, country, region, city, operatingsystemname, devicemodel, devicebrand, visitduration, dayssincefirstvisit, visitortype, visitorid, referrertype, referrername, sitename, userid, serverdateprettyfirstaction, action_id, action_type, action_title, action_eventcategory, action_eventaction, action_eventname, action_eventvalue, action_timespent, action_timestamp, action_url, siteSearchKeyword, usercustomproperties, usercustomdimensions, dimension1, dimension2, dimension3, dimension4, dimension5, dimension6, dimension7, dimension8, dimension9, dimension10)
208
- values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25, $26, $27, $28, $29, $30, $31, $32, $33, $34, $35, $36, $37, $38, $39, $40, $41)
209
- ON CONFLICT DO NOTHING",
210
- Array [
211
- "42",
212
- 124,
213
- "2",
214
- "Argentine",
215
- "Buenos Aires",
216
- "Buenos Aires",
217
- "Mac",
218
- "Générique Bureau",
219
- "Inconnu",
220
- "300",
221
- "23",
222
- "returningCustomer",
223
- "visitorId",
224
- "referrerType",
225
- "referrerName",
226
- "tests",
227
- "24",
228
- "2021-08-20T21:55:12.000Z",
229
- "124_0",
230
- "event",
231
- "Evènement",
232
- "Ecommerce",
233
- "Cart change",
234
- "added - Basic Wetsuit",
235
- 1,
236
- 48,
237
- "2021-08-20T21:35:18.000Z",
238
- "https://dive-shop.net/products/basic-wetsuit/",
239
- undefined,
240
- Object {
241
- "page-author": "Julien",
242
- "post-age": "-430 days",
243
- },
244
- Object {
245
- "dimension1": "guest",
246
- "dimension10": "36",
247
- "dimension2": "julien",
248
- "dimension3": "page",
249
- "dimension4": "indonesia",
250
- "dimension5": "diving",
251
- "dimension6": "shop",
252
- "dimension7": "v1.2.3",
253
- "dimension8": "fr",
254
- "dimension9": "light",
255
- },
256
- "guest",
257
- "julien",
258
- "page",
259
- "indonesia",
260
- "diving",
261
- "shop",
262
- "v1.2.3",
263
- "fr",
264
- "light",
265
- "36",
266
- ],
267
- ],
268
- Array [
269
- "insert into matomo
270
- (idsite, idvisit, actions, country, region, city, operatingsystemname, devicemodel, devicebrand, visitduration, dayssincefirstvisit, visitortype, visitorid, referrertype, referrername, sitename, userid, serverdateprettyfirstaction, action_id, action_type, action_title, action_eventcategory, action_eventaction, action_eventname, action_eventvalue, action_timespent, action_timestamp, action_url, siteSearchKeyword, usercustomproperties, usercustomdimensions, dimension1, dimension2, dimension3, dimension4, dimension5, dimension6, dimension7, dimension8, dimension9, dimension10)
271
- values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25, $26, $27, $28, $29, $30, $31, $32, $33, $34, $35, $36, $37, $38, $39, $40, $41)
272
- ON CONFLICT DO NOTHING",
273
- Array [
274
- "42",
275
- 124,
276
- "2",
277
- "Argentine",
278
- "Buenos Aires",
279
- "Buenos Aires",
280
- "Mac",
281
- "Générique Bureau",
282
- "Inconnu",
283
- "300",
284
- "23",
285
- "returningCustomer",
286
- "visitorId",
287
- "referrerType",
288
- "referrerName",
289
- "tests",
290
- "24",
291
- "2021-08-20T21:55:12.000Z",
292
- "124_1",
293
- "action",
294
- "Divezone Brand Diving Boots - Divezone Store",
295
- undefined,
296
- undefined,
297
- undefined,
298
- undefined,
299
- "2",
300
- "2021-08-20T21:30:25.000Z",
301
- "https://dive-shop.net/products/diving-boots/",
302
- undefined,
303
- Object {},
304
- Object {
305
- "dimension1": "guest",
306
- "dimension10": "36",
307
- "dimension2": "julien",
308
- "dimension3": "page",
309
- "dimension4": "indonesia",
310
- "dimension5": "diving",
311
- "dimension6": "shop",
312
- "dimension7": "v1.2.3",
313
- "dimension8": "fr",
314
- "dimension9": "light",
315
- },
316
- "guest",
317
- "julien",
318
- "page",
319
- "indonesia",
320
- "diving",
321
- "shop",
322
- "v1.2.3",
323
- "fr",
324
- "light",
325
- "36",
326
- ],
327
- ],
328
- Array [
329
- "insert into matomo
330
- (idsite, idvisit, actions, country, region, city, operatingsystemname, devicemodel, devicebrand, visitduration, dayssincefirstvisit, visitortype, visitorid, referrertype, referrername, sitename, userid, serverdateprettyfirstaction, action_id, action_type, action_title, action_eventcategory, action_eventaction, action_eventname, action_eventvalue, action_timespent, action_timestamp, action_url, siteSearchKeyword, usercustomproperties, usercustomdimensions, dimension1, dimension2, dimension3, dimension4, dimension5, dimension6, dimension7, dimension8, dimension9, dimension10)
331
- values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25, $26, $27, $28, $29, $30, $31, $32, $33, $34, $35, $36, $37, $38, $39, $40, $41)
332
- ON CONFLICT DO NOTHING",
333
- Array [
334
- "42",
335
- 124,
336
- "2",
337
- "Argentine",
338
- "Buenos Aires",
339
- "Buenos Aires",
340
- "Mac",
341
- "Générique Bureau",
342
- "Inconnu",
343
- "300",
344
- "23",
345
- "returningCustomer",
346
- "visitorId",
347
- "referrerType",
348
- "referrerName",
349
- "tests",
350
- "24",
351
- "2021-08-20T21:55:12.000Z",
352
- "124_2",
353
- "search",
354
- "Divezone Brand Diving Boots - Divezone Store",
355
- undefined,
356
- undefined,
357
- undefined,
358
- undefined,
359
- "2",
360
- "2021-08-20T21:30:22.000Z",
361
- "https://dive-shop.net/products/diving-boots/",
362
- "scuba",
363
- Object {},
364
- Object {
365
- "dimension1": "guest",
366
- "dimension10": "36",
367
- "dimension2": "julien",
368
- "dimension3": "page",
369
- "dimension4": "indonesia",
370
- "dimension5": "diving",
371
- "dimension6": "shop",
372
- "dimension7": "v1.2.3",
373
- "dimension8": "fr",
374
- "dimension9": "light",
375
- },
376
- "guest",
377
- "julien",
378
- "page",
379
- "indonesia",
380
- "diving",
381
- "shop",
382
- "v1.2.3",
383
- "fr",
384
- "light",
385
- "36",
386
- ],
387
- ],
388
- ]
389
- `;