@ovh-ux/ovh-at-internet 0.1.0 → 0.18.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.
package/CHANGELOG.md CHANGED
@@ -1,10 +1,413 @@
1
- # [0.1.0](https://github.com/ovh/manager/compare/@ovh-ux/ovh-at-internet@0.0.0...@ovh-ux/ovh-at-internet@0.1.0) (2022-06-14)
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file.
4
+ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
+
6
+ ## [0.18.1](https://github.com/ovh/manager/compare/@ovh-ux/ovh-at-internet@0.18.0...@ovh-ux/ovh-at-internet@0.18.1) (2024-12-19)
7
+
8
+ **Note:** Version bump only for package @ovh-ux/ovh-at-internet
9
+
10
+
11
+
12
+
13
+
14
+ # [0.18.0](https://github.com/ovh/manager/compare/@ovh-ux/ovh-at-internet@0.17.0...@ovh-ux/ovh-at-internet@0.18.0) (2024-12-16)
2
15
 
3
16
 
4
17
  ### Features
5
18
 
19
+ * **signup:** use new tracking nomenclature ([#14259](https://github.com/ovh/manager/issues/14259)) ([6439cf1](https://github.com/ovh/manager/commit/6439cf109c3bf2204f19521ef4d65cde6b271829))
20
+
21
+
22
+
23
+
24
+
25
+ # [0.17.0](https://github.com/ovh/manager/compare/@ovh-ux/ovh-at-internet@0.16.0...@ovh-ux/ovh-at-internet@0.17.0) (2024-11-28)
26
+
27
+
28
+ ### Features
29
+
30
+ * **ovh-at-internet:** added custom property goal_type ([#14258](https://github.com/ovh/manager/issues/14258)) ([b555de2](https://github.com/ovh/manager/commit/b555de287c041cbe3e43b2f82ec3171416abac25))
31
+
32
+
33
+
34
+
35
+
36
+ # 0.16.0 (2024-11-12)
37
+
38
+
39
+ ### Bug Fixes
40
+
41
+ * **config:** remove unnecessary module resolutions ([e60d83c](https://github.com/ovh/manager/commit/e60d83c343cc15c2f306c1a748c3c06dfa573608))
42
+ * **generator:** fix generator and supercomponents ([dc78ef2](https://github.com/ovh/manager/commit/dc78ef2efaa84d3d6ec69dbfc2af5debb8b35537))
43
+ * **ovh-at-internet:** rename site_name attribute ([e911064](https://github.com/ovh/manager/commit/e9110643e8e6abd7452fc6867aaa2dfe37a422a9))
44
+ * **ovh-at-internet:** revert constants with prefix manager ([c972499](https://github.com/ovh/manager/commit/c972499d559be236422e74bf7ef2ddcc98926994))
45
+ * **ts:** fix ts import errors ([58ad060](https://github.com/ovh/manager/commit/58ad060b9d4b6f9634268b5cf4bde98301bbbc98))
46
+
47
+
48
+ ### Features
49
+
50
+ * add mix commander tracking script ([#10439](https://github.com/ovh/manager/issues/10439)) ([46ff61e](https://github.com/ovh/manager/commit/46ff61efad2262a35276c759b06016e42c257722))
51
+ * add website config for India tracking ([#10032](https://github.com/ovh/manager/issues/10032)) ([5eb8bb6](https://github.com/ovh/manager/commit/5eb8bb63fa4c0c51169ca1b60ca0af465d564416))
52
+ * **at-internet:** update tracking ([91a9867](https://github.com/ovh/manager/commit/91a9867d7a37111a13e6f3f68695f316fa06ca76))
53
+ * catalog react uapp ([#10005](https://github.com/ovh/manager/issues/10005)) ([e456451](https://github.com/ovh/manager/commit/e45645174e0a6e0834d06c3c23c535ff374dceba))
54
+ * **chakra:** add chakra theme and components ([a4ce7ad](https://github.com/ovh/manager/commit/a4ce7adc01f59dcea9d0add60cc6c3ed225c13de))
6
55
  * **ovh-at-internet:** create component ([b692503](https://github.com/ovh/manager/commit/b692503df0ed2d91bf0ff4e44af85d4b7dddc350))
56
+ * pci vouchers app in reactjs ([d6821ce](https://github.com/ovh/manager/commit/d6821cecd3bde7d884054d8e782e9a1e9dbfddac))
57
+ * **pci:** add mix commander tag at projet creation & activation ([#13436](https://github.com/ovh/manager/issues/13436)) ([414712c](https://github.com/ovh/manager/commit/414712cfff26d6b846a603700dd723fe9568523b))
58
+ * **pci:** enable discovery mode on pci project ([#10398](https://github.com/ovh/manager/issues/10398)) ([9c53a2c](https://github.com/ovh/manager/commit/9c53a2c4c661a17d2b492fc18c031ab09291bee8))
59
+ * piano analytics tracking ([#8557](https://github.com/ovh/manager/issues/8557)) ([0b62090](https://github.com/ovh/manager/commit/0b620907c48aea25bd7e43cca39cb6d81863b05d))
7
60
  * **pnr:** add nav tracking ([0ec0ada](https://github.com/ovh/manager/commit/0ec0adae23428bf77e9808b1e86f4e917583d376))
61
+ * **sign-up:** siret create a corporation not created yet path ([#10394](https://github.com/ovh/manager/issues/10394)) ([818f752](https://github.com/ovh/manager/commit/818f75212aeed0dcf2d5a3df3cadc835711d83aa))
62
+ * sms marketing consent ([#9797](https://github.com/ovh/manager/issues/9797)) ([5ca7626](https://github.com/ovh/manager/commit/5ca7626097dc31ef1b3565626ebc024cc816a150))
63
+ * **tracking:** add tracking on ods components ([eb1b217](https://github.com/ovh/manager/commit/eb1b2172957559e3d788984d15a1b6f466267c4a))
64
+ * **tracking:** remove "Full URL" property encoding ([#10131](https://github.com/ovh/manager/issues/10131)) ([645cd8e](https://github.com/ovh/manager/commit/645cd8ef02aa06901e60321772500ae979646804))
65
+ * updated tracking functions declaration ([#13386](https://github.com/ovh/manager/issues/13386)) ([ffd35b6](https://github.com/ovh/manager/commit/ffd35b64cde87a96390fb551fff9c9a233ab7543))
66
+
67
+
68
+ ### Reverts
69
+
70
+ * Revert "release: radon-sheep-1" ([fae4a9c](https://github.com/ovh/manager/commit/fae4a9cb14816715b060fe0ebe42d45056c9714d))
71
+
72
+
73
+
74
+
75
+
76
+ ## [0.15.3-alpha.0](https://github.com/ovh/manager/compare/@ovh-ux/ovh-at-internet@0.15.2...@ovh-ux/ovh-at-internet@0.15.3-alpha.0) (2024-10-30)
77
+
78
+ **Note:** Version bump only for package @ovh-ux/ovh-at-internet
79
+
80
+
81
+
82
+
83
+
84
+ ## [0.15.2](https://github.com/ovh/manager/compare/@ovh-ux/ovh-at-internet@0.15.1...@ovh-ux/ovh-at-internet@0.15.2) (2024-10-24)
85
+
86
+
87
+ ### Reverts
88
+
89
+ * Revert "release: radon-sheep-1" ([fae4a9c](https://github.com/ovh/manager/commit/fae4a9cb14816715b060fe0ebe42d45056c9714d))
90
+
91
+
92
+
93
+
94
+
95
+ ## [0.15.1](https://github.com/ovh/manager/compare/@ovh-ux/ovh-at-internet@0.15.0...@ovh-ux/ovh-at-internet@0.15.1) (2024-10-24)
96
+
97
+
98
+ ### Reverts
99
+
100
+ * Revert "release: radon-sheep-1" ([fae4a9c](https://github.com/ovh/manager/commit/fae4a9cb14816715b060fe0ebe42d45056c9714d))
101
+
102
+
103
+
104
+
105
+
106
+ # [0.15.0](https://github.com/ovh/manager/compare/@ovh-ux/ovh-at-internet@0.14.1...@ovh-ux/ovh-at-internet@0.15.0) (2024-10-22)
107
+
108
+
109
+ ### Features
110
+
111
+ * **pci:** add mix commander tag at projet creation & activation ([#13436](https://github.com/ovh/manager/issues/13436)) ([414712c](https://github.com/ovh/manager/commit/414712cfff26d6b846a603700dd723fe9568523b))
112
+
113
+
114
+
115
+
116
+
117
+ ## [0.14.1](https://github.com/ovh/manager/compare/@ovh-ux/ovh-at-internet@0.14.0...@ovh-ux/ovh-at-internet@0.14.1) (2024-10-21)
118
+
119
+ **Note:** Version bump only for package @ovh-ux/ovh-at-internet
120
+
121
+
122
+
123
+
124
+
125
+ # [0.14.0](https://github.com/ovh/manager/compare/@ovh-ux/ovh-at-internet@0.13.3...@ovh-ux/ovh-at-internet@0.14.0) (2024-10-03)
126
+
127
+
128
+ ### Features
129
+
130
+ * updated tracking functions declaration ([#13386](https://github.com/ovh/manager/issues/13386)) ([ffd35b6](https://github.com/ovh/manager/commit/ffd35b64cde87a96390fb551fff9c9a233ab7543))
131
+
132
+
133
+
134
+
135
+
136
+ ## [0.13.3](https://github.com/ovh/manager/compare/@ovh-ux/ovh-at-internet@0.13.2...@ovh-ux/ovh-at-internet@0.13.3) (2024-09-26)
137
+
138
+ **Note:** Version bump only for package @ovh-ux/ovh-at-internet
139
+
140
+
141
+
142
+
143
+
144
+ ## [0.13.2](https://github.com/ovh/manager/compare/@ovh-ux/ovh-at-internet@0.13.1...@ovh-ux/ovh-at-internet@0.13.2) (2024-08-08)
145
+
146
+ **Note:** Version bump only for package @ovh-ux/ovh-at-internet
147
+
148
+
149
+
150
+
151
+
152
+ ## [0.13.1](https://github.com/ovh/manager/compare/@ovh-ux/ovh-at-internet@0.13.0...@ovh-ux/ovh-at-internet@0.13.1) (2024-06-25)
153
+
154
+ **Note:** Version bump only for package @ovh-ux/ovh-at-internet
155
+
156
+
157
+
158
+
159
+
160
+ # [0.13.0](https://github.com/ovh/manager/compare/@ovh-ux/ovh-at-internet@0.12.1...@ovh-ux/ovh-at-internet@0.13.0) (2024-04-04)
161
+
162
+
163
+ ### Features
164
+
165
+ * add mix commander tracking script ([#10439](https://github.com/ovh/manager/issues/10439)) ([46ff61e](https://github.com/ovh/manager/commit/46ff61efad2262a35276c759b06016e42c257722))
166
+
167
+
168
+
169
+
170
+
171
+ ## [0.12.1](https://github.com/ovh/manager/compare/@ovh-ux/ovh-at-internet@0.12.0...@ovh-ux/ovh-at-internet@0.12.1) (2024-03-19)
172
+
173
+ **Note:** Version bump only for package @ovh-ux/ovh-at-internet
174
+
175
+
176
+
177
+
178
+
179
+ # [0.12.0](https://github.com/ovh/manager/compare/@ovh-ux/ovh-at-internet@0.11.2...@ovh-ux/ovh-at-internet@0.12.0) (2024-03-13)
180
+
181
+
182
+ ### Features
183
+
184
+ * pci vouchers app in reactjs ([d6821ce](https://github.com/ovh/manager/commit/d6821cecd3bde7d884054d8e782e9a1e9dbfddac))
185
+
186
+
187
+
188
+
189
+
190
+ ## [0.11.2](https://github.com/ovh/manager/compare/@ovh-ux/ovh-at-internet@0.11.1...@ovh-ux/ovh-at-internet@0.11.2) (2024-03-11)
191
+
192
+ **Note:** Version bump only for package @ovh-ux/ovh-at-internet
193
+
194
+
195
+
196
+
197
+
198
+ ## [0.11.1](https://github.com/ovh/manager/compare/@ovh-ux/ovh-at-internet@0.11.0...@ovh-ux/ovh-at-internet@0.11.1) (2024-03-07)
199
+
200
+
201
+ ### Reverts
202
+
203
+ * Revert "feat(*): pci vouchers app in reactjs" ([b62c1a8](https://github.com/ovh/manager/commit/b62c1a8b1cfe63dbc420b660667209c324ffa9ab))
204
+
205
+
206
+
207
+
208
+
209
+ # [0.11.0](https://github.com/ovh/manager/compare/@ovh-ux/ovh-at-internet@0.10.0...@ovh-ux/ovh-at-internet@0.11.0) (2024-03-07)
210
+
211
+
212
+ ### Features
213
+
214
+ * pci vouchers app in reactjs ([ad08ee4](https://github.com/ovh/manager/commit/ad08ee4618d6243328eee76af7d1bd459a1a7d83))
215
+
216
+
217
+
218
+
8
219
 
220
+ # [0.10.0](https://github.com/ovh/manager/compare/@ovh-ux/ovh-at-internet@0.9.0...@ovh-ux/ovh-at-internet@0.10.0) (2024-02-21)
9
221
 
10
222
 
223
+ ### Features
224
+
225
+ * **pci:** enable discovery mode on pci project ([#10398](https://github.com/ovh/manager/issues/10398)) ([9c53a2c](https://github.com/ovh/manager/commit/9c53a2c4c661a17d2b492fc18c031ab09291bee8))
226
+
227
+
228
+
229
+
230
+
231
+ # [0.9.0](https://github.com/ovh/manager/compare/@ovh-ux/ovh-at-internet@0.8.0...@ovh-ux/ovh-at-internet@0.9.0) (2023-12-11)
232
+
233
+
234
+ ### Bug Fixes
235
+
236
+ * **ovh-at-internet:** revert constants with prefix manager ([c972499](https://github.com/ovh/manager/commit/c972499d559be236422e74bf7ef2ddcc98926994))
237
+
238
+
239
+ ### Features
240
+
241
+ * **sign-up:** siret create a corporation not created yet path ([#10394](https://github.com/ovh/manager/issues/10394)) ([818f752](https://github.com/ovh/manager/commit/818f75212aeed0dcf2d5a3df3cadc835711d83aa))
242
+
243
+
244
+
245
+
246
+
247
+ # [0.8.0](https://github.com/ovh/manager/compare/@ovh-ux/ovh-at-internet@0.7.1...@ovh-ux/ovh-at-internet@0.8.0) (2023-12-05)
248
+
249
+
250
+ ### Bug Fixes
251
+
252
+ * **generator:** fix generator and supercomponents ([dc78ef2](https://github.com/ovh/manager/commit/dc78ef2efaa84d3d6ec69dbfc2af5debb8b35537))
253
+
254
+
255
+ ### Features
256
+
257
+ * catalog react uapp ([#10005](https://github.com/ovh/manager/issues/10005)) ([e456451](https://github.com/ovh/manager/commit/e45645174e0a6e0834d06c3c23c535ff374dceba))
258
+ * **tracking:** add tracking on ods components ([eb1b217](https://github.com/ovh/manager/commit/eb1b2172957559e3d788984d15a1b6f466267c4a))
259
+
260
+
261
+
262
+
263
+
264
+ ## [0.7.1](https://github.com/ovh/manager/compare/@ovh-ux/ovh-at-internet@0.7.0...@ovh-ux/ovh-at-internet@0.7.1) (2023-11-21)
265
+
266
+ **Note:** Version bump only for package @ovh-ux/ovh-at-internet
267
+
268
+
269
+
270
+
271
+
272
+ # [0.7.0](https://github.com/ovh/manager/compare/@ovh-ux/ovh-at-internet@0.6.0...@ovh-ux/ovh-at-internet@0.7.0) (2023-10-23)
273
+
274
+
275
+ ### Features
276
+
277
+ * **tracking:** remove "Full URL" property encoding ([#10131](https://github.com/ovh/manager/issues/10131)) ([645cd8e](https://github.com/ovh/manager/commit/645cd8ef02aa06901e60321772500ae979646804))
278
+
279
+
280
+
281
+
282
+
283
+ # [0.6.0](https://github.com/ovh/manager/compare/@ovh-ux/ovh-at-internet@0.5.1...@ovh-ux/ovh-at-internet@0.6.0) (2023-09-27)
284
+
285
+
286
+ ### Features
287
+
288
+ * add website config for India tracking ([#10032](https://github.com/ovh/manager/issues/10032)) ([5eb8bb6](https://github.com/ovh/manager/commit/5eb8bb63fa4c0c51169ca1b60ca0af465d564416))
289
+
290
+
291
+
292
+
293
+
294
+ ## [0.5.1](https://github.com/ovh/manager/compare/@ovh-ux/ovh-at-internet@0.5.0...@ovh-ux/ovh-at-internet@0.5.1) (2023-09-07)
295
+
296
+ **Note:** Version bump only for package @ovh-ux/ovh-at-internet
297
+
298
+
299
+
300
+
301
+
302
+ # [0.5.0](https://github.com/ovh/manager/compare/@ovh-ux/ovh-at-internet@0.4.3...@ovh-ux/ovh-at-internet@0.5.0) (2023-08-10)
303
+
304
+
305
+ ### Features
306
+
307
+ * sms marketing consent ([#9797](https://github.com/ovh/manager/issues/9797)) ([5ca7626](https://github.com/ovh/manager/commit/5ca7626097dc31ef1b3565626ebc024cc816a150))
308
+
309
+
310
+
311
+
312
+
313
+ ## [0.4.3](https://github.com/ovh/manager/compare/@ovh-ux/ovh-at-internet@0.4.2...@ovh-ux/ovh-at-internet@0.4.3) (2023-07-24)
314
+
315
+ **Note:** Version bump only for package @ovh-ux/ovh-at-internet
316
+
317
+
318
+
319
+
320
+
321
+ ## [0.4.2](https://github.com/ovh/manager/compare/@ovh-ux/ovh-at-internet@0.4.1...@ovh-ux/ovh-at-internet@0.4.2) (2023-06-12)
322
+
323
+ **Note:** Version bump only for package @ovh-ux/ovh-at-internet
324
+
325
+
326
+
327
+
328
+
329
+ ## [0.4.1](https://github.com/ovh/manager/compare/@ovh-ux/ovh-at-internet@0.4.0...@ovh-ux/ovh-at-internet@0.4.1) (2023-05-31)
330
+
331
+ **Note:** Version bump only for package @ovh-ux/ovh-at-internet
332
+
333
+
334
+
335
+
336
+
337
+ # [0.4.0](https://github.com/ovh/manager/compare/@ovh-ux/ovh-at-internet@0.3.3...@ovh-ux/ovh-at-internet@0.4.0) (2023-03-06)
338
+
339
+
340
+ ### Features
341
+
342
+ * piano analytics tracking ([#8557](https://github.com/ovh/manager/issues/8557)) ([0b62090](https://github.com/ovh/manager/commit/0b620907c48aea25bd7e43cca39cb6d81863b05d))
343
+
344
+
345
+
346
+
347
+
348
+ ## [0.3.3](https://github.com/ovh/manager/compare/@ovh-ux/ovh-at-internet@0.3.2...@ovh-ux/ovh-at-internet@0.3.3) (2023-02-07)
349
+
350
+ **Note:** Version bump only for package @ovh-ux/ovh-at-internet
351
+
352
+
353
+
354
+
355
+
356
+ ## [0.3.2](https://github.com/ovh/manager/compare/@ovh-ux/ovh-at-internet@0.3.1...@ovh-ux/ovh-at-internet@0.3.2) (2023-01-19)
357
+
358
+ **Note:** Version bump only for package @ovh-ux/ovh-at-internet
359
+
360
+
361
+
362
+
363
+
364
+ ## [0.3.1](https://github.com/ovh/manager/compare/@ovh-ux/ovh-at-internet@0.3.0...@ovh-ux/ovh-at-internet@0.3.1) (2022-12-20)
365
+
366
+ **Note:** Version bump only for package @ovh-ux/ovh-at-internet
367
+
368
+
369
+
370
+
371
+
372
+ # [0.3.0](https://github.com/ovh/manager/compare/@ovh-ux/ovh-at-internet@0.2.1...@ovh-ux/ovh-at-internet@0.3.0) (2022-11-29)
373
+
374
+
375
+ ### Bug Fixes
376
+
377
+ * **config:** remove unnecessary module resolutions ([e60d83c](https://github.com/ovh/manager/commit/e60d83c343cc15c2f306c1a748c3c06dfa573608))
378
+ * **ts:** fix ts import errors ([58ad060](https://github.com/ovh/manager/commit/58ad060b9d4b6f9634268b5cf4bde98301bbbc98))
379
+
380
+
381
+ ### Features
382
+
383
+ * **chakra:** add chakra theme and components ([a4ce7ad](https://github.com/ovh/manager/commit/a4ce7adc01f59dcea9d0add60cc6c3ed225c13de))
384
+
385
+
386
+
387
+
388
+
389
+ ## [0.2.1](https://github.com/ovh/manager/compare/@ovh-ux/ovh-at-internet@0.2.0...@ovh-ux/ovh-at-internet@0.2.1) (2022-08-17)
390
+
391
+
392
+ ### Bug Fixes
393
+
394
+ * **ovh-at-internet:** rename site_name attribute ([e911064](https://github.com/ovh/manager/commit/e9110643e8e6abd7452fc6867aaa2dfe37a422a9))
395
+
396
+
397
+
398
+ # [0.2.0](https://github.com/ovh/manager/compare/@ovh-ux/ovh-at-internet@0.1.0...@ovh-ux/ovh-at-internet@0.2.0) (2022-08-10)
399
+
400
+
401
+ ### Features
402
+
403
+ * **at-internet:** update tracking ([91a9867](https://github.com/ovh/manager/commit/91a9867d7a37111a13e6f3f68695f316fa06ca76))
404
+
405
+
406
+
407
+ # [0.1.0](https://github.com/ovh/manager/compare/@ovh-ux/ovh-at-internet@0.0.0...@ovh-ux/ovh-at-internet@0.1.0) (2022-06-14)
408
+
409
+
410
+ ### Features
411
+
412
+ * **ovh-at-internet:** create component ([b692503](https://github.com/ovh/manager/commit/b692503df0ed2d91bf0ff4e44af85d4b7dddc350))
413
+ * **pnr:** add nav tracking ([0ec0ada](https://github.com/ovh/manager/commit/0ec0adae23428bf77e9808b1e86f4e917583d376))
package/dist/config.js CHANGED
@@ -1,45 +1,43 @@
1
1
  import { isEmpty } from 'lodash-es';
2
+ import { debug } from './utils';
3
+ import { PCI_PROJECT_MODE_VALUES } from './constants';
2
4
  export class OvhAtInternetConfig {
3
5
  constructor() {
4
- this.enabled = false;
5
- this.debug = false;
6
- this.region = 'EU';
6
+ this.enabled = true;
7
+ this.region = '';
7
8
  }
8
9
  isDefaultSet() {
9
10
  return !isEmpty(this.defaults);
10
11
  }
11
12
  setDefaults(def) {
12
13
  this.defaults = def;
14
+ debug('tracking set defaults', def);
13
15
  return this.defaults;
14
16
  }
15
17
  getDefaults() {
16
18
  return Object.assign({}, this.defaults);
17
19
  }
18
- setDefaultsPromise(promise) {
19
- this.defaultsPromise = promise.then((defaults) => {
20
- return this.setDefaults(defaults);
21
- });
22
- }
23
- getDefaultsPromise() {
24
- return this.defaultsPromise;
20
+ setRegion(region) {
21
+ this.region = region;
25
22
  }
26
23
  isEnabled() {
27
24
  return this.enabled;
28
25
  }
29
26
  setEnabled(state) {
30
27
  this.enabled = state;
31
- }
32
- setDebug(state) {
33
- this.debug = state;
34
- }
35
- isDebugActive() {
36
- return this.debug;
37
- }
38
- getRegion() {
39
- return this.region;
40
- }
41
- setRegion(region) {
42
- this.region = region;
28
+ debug(`tracking ${state ? 'enabled' : 'disable'}`);
29
+ }
30
+ setPciProjectMode(params) {
31
+ if (params === null || params === void 0 ? void 0 : params.isDiscoveryProject) {
32
+ this.defaults.pciProjectMode = PCI_PROJECT_MODE_VALUES.DISCOVERY;
33
+ }
34
+ else if (params === null || params === void 0 ? void 0 : params.projectId) {
35
+ this.defaults.pciProjectMode = PCI_PROJECT_MODE_VALUES.FULL;
36
+ }
37
+ else {
38
+ this.defaults.pciProjectMode = PCI_PROJECT_MODE_VALUES.NONE;
39
+ }
43
40
  }
44
41
  }
42
+ export default { OvhAtInternetConfig };
45
43
  //# sourceMappingURL=config.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA6DpC,MAAM,OAAO,mBAAmB;IAAhC;QAcY,YAAO,GAAG,KAAK,CAAC;QAKhB,UAAK,GAAG,KAAK,CAAC;QAKd,WAAM,GAAG,IAAI,CAAC;IAyF1B,CAAC;IApFC,YAAY;QACV,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACjC,CAAC;IAMD,WAAW,CAAC,GAAa;QACvB,IAAI,CAAC,QAAQ,GAAG,GAAG,CAAC;QACpB,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAKD,WAAW;QACT,yBACK,IAAI,CAAC,QAAQ,EAChB;IACJ,CAAC;IAOD,kBAAkB,CAAC,OAA0B;QAC3C,IAAI,CAAC,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,QAAkB,EAAE,EAAE;YACzD,OAAO,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;QACpC,CAAC,CAAC,CAAC;IACL,CAAC;IAKD,kBAAkB;QAChB,OAAO,IAAI,CAAC,eAAe,CAAC;IAC9B,CAAC;IAKD,SAAS;QACP,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IAMD,UAAU,CAAC,KAAc;QACvB,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;IACvB,CAAC;IAMD,QAAQ,CAAC,KAAc;QACrB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IAKD,aAAa;QACX,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAKD,SAAS;QACP,OAAO,IAAI,CAAC,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AAM,IAAI,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,SAAS,EAAE,CAAC;YAC7B,IAAI,CAAC,QAAQ,CAAC,cAAc,GAAG,uBAAuB,CAAC,IAAI,CAAC;QAC9D,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,QAAQ,CAAC,cAAc,GAAG,uBAAuB,CAAC,IAAI,CAAC;QAC9D,CAAC;IACH,CAAC;CACF;AAED,eAAe,EAAE,mBAAmB,EAAE,CAAC"}
package/dist/constants.js CHANGED
@@ -1,90 +1,67 @@
1
- export const AT_INTERNET_CUSTOM_VARS = {
2
- countryCode: {
3
- path: {
4
- default: 'site.1',
5
- US: 'site.12',
6
- },
7
- format: '[%s]',
8
- },
9
- currencyCode: {
10
- path: {
11
- default: 'site.16',
12
- US: 'site.15',
13
- },
14
- format: '[%s]',
15
- },
16
- pageUrl: {
17
- path: {
18
- default: 'site.11',
19
- US: 'site.10',
20
- },
21
- format: '[%s]',
22
- },
23
- referrerSite: {
24
- path: {
25
- default: 'site.8',
26
- US: 'site.11',
27
- },
28
- format: '[%s]',
29
- },
30
- event: {
31
- path: {
32
- default: 'site.20',
33
- US: 'site.6',
34
- },
35
- format: '[%s]',
36
- },
37
- siteName: {
38
- path: {
39
- default: 'site.13',
40
- US: 'site.14',
41
- },
42
- format: '[%s]',
43
- },
44
- projectId: {
45
- path: {
46
- default: 'page.1',
47
- },
48
- format: '[%s]',
49
- },
50
- voucherCode: {
51
- path: {
52
- default: 'page.2',
53
- },
54
- format: '[%s]',
55
- },
56
- pciCreationStep: {
57
- path: {
58
- default: 'page.1',
59
- },
60
- format: '[%s]',
61
- },
62
- pciCreationErrorMessage: {
63
- path: {
64
- default: 'page.2',
65
- },
66
- format: '[%s]',
67
- },
68
- pciCreationNumProjects: {
69
- path: {
70
- default: 'page.1',
71
- },
72
- format: '[%s]',
73
- },
74
- pciCreationNumProjects3: {
75
- path: {
76
- default: 'page.3',
77
- },
78
- format: '[%s]',
79
- },
80
- orderStatus: {
81
- path: {
82
- default: 'page.1',
83
- },
84
- format: '[%s]',
85
- },
1
+ export const AT_INTERNET_LEVEL2 = {
2
+ 0: '',
3
+ 56: 'Manager-Cloud',
4
+ 57: 'Manager-Dedicated',
5
+ 67: 'Focus',
6
+ 81: 'Manager',
7
+ 84: 'Manager-Web',
8
+ 85: 'Manager-Server',
9
+ 86: 'Manager-PublicCloud',
10
+ 87: 'Manager-Telecom',
11
+ 88: 'Manager-Hub',
12
+ 95: 'Manager-account-creation',
13
+ 98: 'Manager-HostedPrivateCloud',
14
+ };
15
+ export const AT_INTERNET_WEBSITE = {
16
+ ASIA: 'Asia',
17
+ AU: 'Australia',
18
+ CA: 'Canada',
19
+ DE: 'Germany',
20
+ ES: 'Spain',
21
+ FR: 'France',
22
+ GB: 'United Kingdom',
23
+ IE: 'Ireland',
24
+ IN: 'India',
25
+ IT: 'Italy',
26
+ MA: 'Morocco',
27
+ NL: 'Netherlands',
28
+ PL: 'Poland',
29
+ PT: 'Portugal',
30
+ QC: 'Quebec',
31
+ SG: 'Singapore',
32
+ SN: 'Senegal',
33
+ TN: 'Tunisia',
34
+ US: 'United States',
35
+ WE: 'WorldEnglish',
36
+ WS: 'WorldSpanish',
37
+ };
38
+ export const AT_INTERNET_CUSTOM_PROPS = {
39
+ referrerSite: 'referrer',
40
+ projectId: 'pci_project_id',
41
+ voucherCode: 'pci_voucher_code',
42
+ pciCreationStep: 'pci_error_step',
43
+ pciCreationErrorMessage: 'pci_error_message',
44
+ pciCreationNumProjects: 'pci_number_of_project',
45
+ pciCreationNumProjects3: 'pci_number_of_project',
46
+ orderStatus: 'order_status',
47
+ accountEmailConsent: 'account_email_consent',
48
+ accountSmsConsent: 'account_sms_consent',
49
+ accountPhoneType: 'account_phone_type',
50
+ accountcreationSiretProvided: 'accountcreation_siret_provided',
51
+ pciProjectMode: 'pci_project_mode',
52
+ goalType: 'goal_type',
53
+ };
54
+ export const TMS_SCRIPT_URL = 'https://analytics.ovh.com/ovh/ovh_manager.js';
55
+ export const PCI_PROJECT_MODE_VALUES = {
56
+ DISCOVERY: 'discovery',
57
+ FULL: 'full',
58
+ NONE: '',
86
59
  };
87
60
  export default {
88
- AT_INTERNET_CUSTOM_VARS,
61
+ AT_INTERNET_CUSTOM_PROPS,
62
+ AT_INTERNET_LEVEL2,
63
+ AT_INTERNET_WEBSITE,
64
+ TMS_SCRIPT_URL,
65
+ PCI_PROJECT_MODE_VALUES,
89
66
  };
90
67
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAYA,MAAM,CAAC,MAAM,uBAAuB,GAAyB;IAI3D,WAAW,EAAE;QACX,IAAI,EAAE;YACJ,OAAO,EAAE,QAAQ;YACjB,EAAE,EAAE,SAAS;SACd;QACD,MAAM,EAAE,MAAM;KACf;IAKD,YAAY,EAAE;QACZ,IAAI,EAAE;YACJ,OAAO,EAAE,SAAS;YAClB,EAAE,EAAE,SAAS;SACd;QACD,MAAM,EAAE,MAAM;KACf;IAKD,OAAO,EAAE;QACP,IAAI,EAAE;YACJ,OAAO,EAAE,SAAS;YAClB,EAAE,EAAE,SAAS;SACd;QACD,MAAM,EAAE,MAAM;KACf;IAMD,YAAY,EAAE;QACZ,IAAI,EAAE;YACJ,OAAO,EAAE,QAAQ;YACjB,EAAE,EAAE,SAAS;SACd;QACD,MAAM,EAAE,MAAM;KACf;IAKD,KAAK,EAAE;QACL,IAAI,EAAE;YACJ,OAAO,EAAE,SAAS;YAClB,EAAE,EAAE,QAAQ;SACb;QACD,MAAM,EAAE,MAAM;KACf;IAED,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,OAAO,EAAE,SAAS;YAClB,EAAE,EAAE,SAAS;SACd;QACD,MAAM,EAAE,MAAM;KACf;IAKD,SAAS,EAAE;QACT,IAAI,EAAE;YACJ,OAAO,EAAE,QAAQ;SAClB;QACD,MAAM,EAAE,MAAM;KACf;IAKD,WAAW,EAAE;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IACpB,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,OAAO;IACX,EAAE,EAAE,OAAO;IACX,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,aAAa;IACjB,EAAE,EAAE,QAAQ;IACZ,EAAE,EAAE,UAAU;IACd,EAAE,EAAE,QAAQ;IACZ,EAAE,EAAE,WAAW;IACf,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,eAAe;IACnB,EAAE,EAAE,cAAc;IAClB,EAAE,EAAE,cAAc;CACnB,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAA2B;IAC9D,YAAY,EAAE,UAAU;IACxB,SAAS,EAAE,gBAAgB;IAC3B,WAAW,EAAE,kBAAkB;IAC/B,eAAe,EAAE,gBAAgB;IACjC,uBAAuB,EAAE,mBAAmB;IAC5C,sBAAsB,EAAE,uBAAuB;IAC/C,uBAAuB,EAAE,uBAAuB;IAChD,WAAW,EAAE,cAAc;IAC3B,mBAAmB,EAAE,uBAAuB;IAC5C,iBAAiB,EAAE,qBAAqB;IACxC,gBAAgB,EAAE,oBAAoB;IACtC,4BAA4B,EAAE,gCAAgC;IAC9D,cAAc,EAAE,kBAAkB;IAClC,QAAQ,EAAE,WAAW;CACtB,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,8CAA8C,CAAC;AAE7E,MAAM,CAAC,MAAM,uBAAuB,GAA2B;IAC7D,SAAS,EAAE,WAAW;IACtB,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,EAAE;CACT,CAAC;AAEF,eAAe;IACb,wBAAwB;IACxB,kBAAkB;IAClB,mBAAmB;IACnB,cAAc;IACd,uBAAuB;CACxB,CAAC"}
package/dist/index.js CHANGED
@@ -1,2 +1,5 @@
1
1
  export { default } from './ovh-at-internet';
2
+ export * from './config';
3
+ export * from './constants';
4
+ export * from './track';
2
5
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AA2BA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAwBA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}