@ovh-ux/ovh-at-internet 0.1.0 → 0.17.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/CHANGELOG.md CHANGED
@@ -1,10 +1,394 @@
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.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)
7
+
8
+
9
+ ### Features
10
+
11
+ * **ovh-at-internet:** added custom property goal_type ([#14258](https://github.com/ovh/manager/issues/14258)) ([b555de2](https://github.com/ovh/manager/commit/b555de287c041cbe3e43b2f82ec3171416abac25))
12
+
13
+
14
+
15
+
16
+
17
+ # 0.16.0 (2024-11-12)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **config:** remove unnecessary module resolutions ([e60d83c](https://github.com/ovh/manager/commit/e60d83c343cc15c2f306c1a748c3c06dfa573608))
23
+ * **generator:** fix generator and supercomponents ([dc78ef2](https://github.com/ovh/manager/commit/dc78ef2efaa84d3d6ec69dbfc2af5debb8b35537))
24
+ * **ovh-at-internet:** rename site_name attribute ([e911064](https://github.com/ovh/manager/commit/e9110643e8e6abd7452fc6867aaa2dfe37a422a9))
25
+ * **ovh-at-internet:** revert constants with prefix manager ([c972499](https://github.com/ovh/manager/commit/c972499d559be236422e74bf7ef2ddcc98926994))
26
+ * **ts:** fix ts import errors ([58ad060](https://github.com/ovh/manager/commit/58ad060b9d4b6f9634268b5cf4bde98301bbbc98))
2
27
 
3
28
 
4
29
  ### Features
5
30
 
31
+ * add mix commander tracking script ([#10439](https://github.com/ovh/manager/issues/10439)) ([46ff61e](https://github.com/ovh/manager/commit/46ff61efad2262a35276c759b06016e42c257722))
32
+ * add website config for India tracking ([#10032](https://github.com/ovh/manager/issues/10032)) ([5eb8bb6](https://github.com/ovh/manager/commit/5eb8bb63fa4c0c51169ca1b60ca0af465d564416))
33
+ * **at-internet:** update tracking ([91a9867](https://github.com/ovh/manager/commit/91a9867d7a37111a13e6f3f68695f316fa06ca76))
34
+ * catalog react uapp ([#10005](https://github.com/ovh/manager/issues/10005)) ([e456451](https://github.com/ovh/manager/commit/e45645174e0a6e0834d06c3c23c535ff374dceba))
35
+ * **chakra:** add chakra theme and components ([a4ce7ad](https://github.com/ovh/manager/commit/a4ce7adc01f59dcea9d0add60cc6c3ed225c13de))
6
36
  * **ovh-at-internet:** create component ([b692503](https://github.com/ovh/manager/commit/b692503df0ed2d91bf0ff4e44af85d4b7dddc350))
37
+ * pci vouchers app in reactjs ([d6821ce](https://github.com/ovh/manager/commit/d6821cecd3bde7d884054d8e782e9a1e9dbfddac))
38
+ * **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))
39
+ * **pci:** enable discovery mode on pci project ([#10398](https://github.com/ovh/manager/issues/10398)) ([9c53a2c](https://github.com/ovh/manager/commit/9c53a2c4c661a17d2b492fc18c031ab09291bee8))
40
+ * piano analytics tracking ([#8557](https://github.com/ovh/manager/issues/8557)) ([0b62090](https://github.com/ovh/manager/commit/0b620907c48aea25bd7e43cca39cb6d81863b05d))
7
41
  * **pnr:** add nav tracking ([0ec0ada](https://github.com/ovh/manager/commit/0ec0adae23428bf77e9808b1e86f4e917583d376))
42
+ * **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))
43
+ * sms marketing consent ([#9797](https://github.com/ovh/manager/issues/9797)) ([5ca7626](https://github.com/ovh/manager/commit/5ca7626097dc31ef1b3565626ebc024cc816a150))
44
+ * **tracking:** add tracking on ods components ([eb1b217](https://github.com/ovh/manager/commit/eb1b2172957559e3d788984d15a1b6f466267c4a))
45
+ * **tracking:** remove "Full URL" property encoding ([#10131](https://github.com/ovh/manager/issues/10131)) ([645cd8e](https://github.com/ovh/manager/commit/645cd8ef02aa06901e60321772500ae979646804))
46
+ * updated tracking functions declaration ([#13386](https://github.com/ovh/manager/issues/13386)) ([ffd35b6](https://github.com/ovh/manager/commit/ffd35b64cde87a96390fb551fff9c9a233ab7543))
47
+
48
+
49
+ ### Reverts
50
+
51
+ * Revert "release: radon-sheep-1" ([fae4a9c](https://github.com/ovh/manager/commit/fae4a9cb14816715b060fe0ebe42d45056c9714d))
52
+
53
+
54
+
55
+
56
+
57
+ ## [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)
58
+
59
+ **Note:** Version bump only for package @ovh-ux/ovh-at-internet
60
+
61
+
62
+
63
+
64
+
65
+ ## [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)
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.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)
77
+
78
+
79
+ ### Reverts
80
+
81
+ * Revert "release: radon-sheep-1" ([fae4a9c](https://github.com/ovh/manager/commit/fae4a9cb14816715b060fe0ebe42d45056c9714d))
82
+
83
+
84
+
85
+
86
+
87
+ # [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)
88
+
89
+
90
+ ### Features
91
+
92
+ * **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))
93
+
94
+
95
+
96
+
97
+
98
+ ## [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)
99
+
100
+ **Note:** Version bump only for package @ovh-ux/ovh-at-internet
101
+
102
+
103
+
104
+
105
+
106
+ # [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)
107
+
108
+
109
+ ### Features
110
+
111
+ * updated tracking functions declaration ([#13386](https://github.com/ovh/manager/issues/13386)) ([ffd35b6](https://github.com/ovh/manager/commit/ffd35b64cde87a96390fb551fff9c9a233ab7543))
112
+
113
+
114
+
115
+
116
+
117
+ ## [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)
118
+
119
+ **Note:** Version bump only for package @ovh-ux/ovh-at-internet
120
+
121
+
122
+
123
+
124
+
125
+ ## [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)
126
+
127
+ **Note:** Version bump only for package @ovh-ux/ovh-at-internet
128
+
129
+
130
+
131
+
132
+
133
+ ## [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)
134
+
135
+ **Note:** Version bump only for package @ovh-ux/ovh-at-internet
136
+
137
+
138
+
139
+
140
+
141
+ # [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)
142
+
143
+
144
+ ### Features
145
+
146
+ * add mix commander tracking script ([#10439](https://github.com/ovh/manager/issues/10439)) ([46ff61e](https://github.com/ovh/manager/commit/46ff61efad2262a35276c759b06016e42c257722))
147
+
148
+
149
+
150
+
151
+
152
+ ## [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)
153
+
154
+ **Note:** Version bump only for package @ovh-ux/ovh-at-internet
155
+
156
+
157
+
158
+
159
+
160
+ # [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)
161
+
162
+
163
+ ### Features
164
+
165
+ * pci vouchers app in reactjs ([d6821ce](https://github.com/ovh/manager/commit/d6821cecd3bde7d884054d8e782e9a1e9dbfddac))
166
+
167
+
168
+
169
+
170
+
171
+ ## [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)
172
+
173
+ **Note:** Version bump only for package @ovh-ux/ovh-at-internet
174
+
175
+
176
+
177
+
178
+
179
+ ## [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)
180
+
181
+
182
+ ### Reverts
183
+
184
+ * Revert "feat(*): pci vouchers app in reactjs" ([b62c1a8](https://github.com/ovh/manager/commit/b62c1a8b1cfe63dbc420b660667209c324ffa9ab))
185
+
186
+
187
+
188
+
189
+
190
+ # [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)
191
+
192
+
193
+ ### Features
194
+
195
+ * pci vouchers app in reactjs ([ad08ee4](https://github.com/ovh/manager/commit/ad08ee4618d6243328eee76af7d1bd459a1a7d83))
196
+
197
+
198
+
199
+
200
+
201
+ # [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)
202
+
203
+
204
+ ### Features
205
+
206
+ * **pci:** enable discovery mode on pci project ([#10398](https://github.com/ovh/manager/issues/10398)) ([9c53a2c](https://github.com/ovh/manager/commit/9c53a2c4c661a17d2b492fc18c031ab09291bee8))
207
+
208
+
8
209
 
9
210
 
10
211
 
212
+ # [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)
213
+
214
+
215
+ ### Bug Fixes
216
+
217
+ * **ovh-at-internet:** revert constants with prefix manager ([c972499](https://github.com/ovh/manager/commit/c972499d559be236422e74bf7ef2ddcc98926994))
218
+
219
+
220
+ ### Features
221
+
222
+ * **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))
223
+
224
+
225
+
226
+
227
+
228
+ # [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)
229
+
230
+
231
+ ### Bug Fixes
232
+
233
+ * **generator:** fix generator and supercomponents ([dc78ef2](https://github.com/ovh/manager/commit/dc78ef2efaa84d3d6ec69dbfc2af5debb8b35537))
234
+
235
+
236
+ ### Features
237
+
238
+ * catalog react uapp ([#10005](https://github.com/ovh/manager/issues/10005)) ([e456451](https://github.com/ovh/manager/commit/e45645174e0a6e0834d06c3c23c535ff374dceba))
239
+ * **tracking:** add tracking on ods components ([eb1b217](https://github.com/ovh/manager/commit/eb1b2172957559e3d788984d15a1b6f466267c4a))
240
+
241
+
242
+
243
+
244
+
245
+ ## [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)
246
+
247
+ **Note:** Version bump only for package @ovh-ux/ovh-at-internet
248
+
249
+
250
+
251
+
252
+
253
+ # [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)
254
+
255
+
256
+ ### Features
257
+
258
+ * **tracking:** remove "Full URL" property encoding ([#10131](https://github.com/ovh/manager/issues/10131)) ([645cd8e](https://github.com/ovh/manager/commit/645cd8ef02aa06901e60321772500ae979646804))
259
+
260
+
261
+
262
+
263
+
264
+ # [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)
265
+
266
+
267
+ ### Features
268
+
269
+ * add website config for India tracking ([#10032](https://github.com/ovh/manager/issues/10032)) ([5eb8bb6](https://github.com/ovh/manager/commit/5eb8bb63fa4c0c51169ca1b60ca0af465d564416))
270
+
271
+
272
+
273
+
274
+
275
+ ## [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)
276
+
277
+ **Note:** Version bump only for package @ovh-ux/ovh-at-internet
278
+
279
+
280
+
281
+
282
+
283
+ # [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)
284
+
285
+
286
+ ### Features
287
+
288
+ * sms marketing consent ([#9797](https://github.com/ovh/manager/issues/9797)) ([5ca7626](https://github.com/ovh/manager/commit/5ca7626097dc31ef1b3565626ebc024cc816a150))
289
+
290
+
291
+
292
+
293
+
294
+ ## [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)
295
+
296
+ **Note:** Version bump only for package @ovh-ux/ovh-at-internet
297
+
298
+
299
+
300
+
301
+
302
+ ## [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)
303
+
304
+ **Note:** Version bump only for package @ovh-ux/ovh-at-internet
305
+
306
+
307
+
308
+
309
+
310
+ ## [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)
311
+
312
+ **Note:** Version bump only for package @ovh-ux/ovh-at-internet
313
+
314
+
315
+
316
+
317
+
318
+ # [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)
319
+
320
+
321
+ ### Features
322
+
323
+ * piano analytics tracking ([#8557](https://github.com/ovh/manager/issues/8557)) ([0b62090](https://github.com/ovh/manager/commit/0b620907c48aea25bd7e43cca39cb6d81863b05d))
324
+
325
+
326
+
327
+
328
+
329
+ ## [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)
330
+
331
+ **Note:** Version bump only for package @ovh-ux/ovh-at-internet
332
+
333
+
334
+
335
+
336
+
337
+ ## [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)
338
+
339
+ **Note:** Version bump only for package @ovh-ux/ovh-at-internet
340
+
341
+
342
+
343
+
344
+
345
+ ## [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)
346
+
347
+ **Note:** Version bump only for package @ovh-ux/ovh-at-internet
348
+
349
+
350
+
351
+
352
+
353
+ # [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)
354
+
355
+
356
+ ### Bug Fixes
357
+
358
+ * **config:** remove unnecessary module resolutions ([e60d83c](https://github.com/ovh/manager/commit/e60d83c343cc15c2f306c1a748c3c06dfa573608))
359
+ * **ts:** fix ts import errors ([58ad060](https://github.com/ovh/manager/commit/58ad060b9d4b6f9634268b5cf4bde98301bbbc98))
360
+
361
+
362
+ ### Features
363
+
364
+ * **chakra:** add chakra theme and components ([a4ce7ad](https://github.com/ovh/manager/commit/a4ce7adc01f59dcea9d0add60cc6c3ed225c13de))
365
+
366
+
367
+
368
+
369
+
370
+ ## [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)
371
+
372
+
373
+ ### Bug Fixes
374
+
375
+ * **ovh-at-internet:** rename site_name attribute ([e911064](https://github.com/ovh/manager/commit/e9110643e8e6abd7452fc6867aaa2dfe37a422a9))
376
+
377
+
378
+
379
+ # [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)
380
+
381
+
382
+ ### Features
383
+
384
+ * **at-internet:** update tracking ([91a9867](https://github.com/ovh/manager/commit/91a9867d7a37111a13e6f3f68695f316fa06ca76))
385
+
386
+
387
+
388
+ # [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)
389
+
390
+
391
+ ### Features
392
+
393
+ * **ovh-at-internet:** create component ([b692503](https://github.com/ovh/manager/commit/b692503df0ed2d91bf0ff4e44af85d4b7dddc350))
394
+ * **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,CA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]',
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: '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;Q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AAW,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"}