@algolia/client-insights 5.0.0-alpha.99 → 5.0.0-beta.10
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/LICENSE +21 -0
- package/dist/builds/browser.d.ts +19 -3
- package/dist/builds/browser.d.ts.map +1 -1
- package/dist/builds/node.d.ts +19 -3
- package/dist/builds/node.d.ts.map +1 -1
- package/dist/client-insights.cjs +27 -30
- package/dist/client-insights.esm.browser.js +23 -38
- package/dist/client-insights.esm.node.js +27 -30
- package/dist/client-insights.umd.js +2 -2
- package/dist/model/addedToCartObjectIDs.d.ts +6 -6
- package/dist/model/addedToCartObjectIDsAfterSearch.d.ts +6 -6
- package/dist/model/clickedFilters.d.ts +6 -6
- package/dist/model/clickedObjectIDs.d.ts +6 -6
- package/dist/model/clickedObjectIDsAfterSearch.d.ts +7 -7
- package/dist/model/clientMethodProps.d.ts +1 -1
- package/dist/model/convertedFilters.d.ts +6 -6
- package/dist/model/convertedObjectIDs.d.ts +6 -6
- package/dist/model/convertedObjectIDsAfterSearch.d.ts +6 -6
- package/dist/model/discount.d.ts +1 -1
- package/dist/model/insightsEvents.d.ts +1 -1
- package/dist/model/objectData.d.ts +1 -1
- package/dist/model/objectDataAfterSearch.d.ts +1 -1
- package/dist/model/price.d.ts +1 -1
- package/dist/model/purchasedObjectIDs.d.ts +6 -6
- package/dist/model/purchasedObjectIDsAfterSearch.d.ts +7 -7
- package/dist/model/purchasedObjectIDsAfterSearch.d.ts.map +1 -1
- package/dist/model/viewedFilters.d.ts +6 -6
- package/dist/model/viewedObjectIDs.d.ts +6 -6
- package/dist/src/insightsClient.d.ts +4 -14
- package/dist/src/insightsClient.d.ts.map +1 -1
- package/model/addedToCartObjectIDs.ts +6 -6
- package/model/addedToCartObjectIDsAfterSearch.ts +6 -6
- package/model/clickedFilters.ts +6 -6
- package/model/clickedObjectIDs.ts +6 -6
- package/model/clickedObjectIDsAfterSearch.ts +7 -7
- package/model/clientMethodProps.ts +1 -1
- package/model/convertedFilters.ts +6 -6
- package/model/convertedObjectIDs.ts +6 -6
- package/model/convertedObjectIDsAfterSearch.ts +6 -6
- package/model/discount.ts +1 -1
- package/model/insightsEvents.ts +1 -1
- package/model/objectData.ts +1 -1
- package/model/objectDataAfterSearch.ts +1 -1
- package/model/price.ts +1 -1
- package/model/purchasedObjectIDs.ts +6 -6
- package/model/purchasedObjectIDsAfterSearch.ts +7 -7
- package/model/viewedFilters.ts +6 -6
- package/model/viewedObjectIDs.ts +6 -6
- package/package.json +11 -8
package/model/viewedFilters.ts
CHANGED
|
@@ -7,34 +7,34 @@ import type { ViewEvent } from './viewEvent';
|
|
|
7
7
|
*/
|
|
8
8
|
export type ViewedFilters = {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Event name, up to 64 ASCII characters. Consider naming events consistently—for example, by adopting Segment\'s [object-action](https://segment.com/academy/collecting-data/naming-conventions-for-clean-data/#the-object-action-framework) framework.
|
|
11
11
|
*/
|
|
12
12
|
eventName: string;
|
|
13
13
|
|
|
14
14
|
eventType: ViewEvent;
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Index name (case-sensitive) to which the event\'s items belong.
|
|
18
18
|
*/
|
|
19
19
|
index: string;
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Applied facet filters. Facet filters are `facet:value` pairs. Facet values must be URL-encoded, such as, `discount:10%25`.
|
|
23
23
|
*/
|
|
24
24
|
filters: string[];
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Anonymous or pseudonymous user identifier. Don\'t use personally identifiable information in user tokens. For more information, see [User token](https://www.algolia.com/doc/guides/sending-events/concepts/usertoken/).
|
|
28
28
|
*/
|
|
29
29
|
userToken: string;
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* Identifier for authenticated users. When the user signs in, you can get an identifier from your system and send it as `authenticatedUserToken`. This lets you keep using the `userToken` from before the user signed in, while providing a reliable way to identify users across sessions. Don\'t use personally identifiable information in user tokens. For more information, see [User token](https://www.algolia.com/doc/guides/sending-events/concepts/usertoken/).
|
|
33
33
|
*/
|
|
34
34
|
authenticatedUserToken?: string;
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Timestamp of the event, measured in milliseconds since the Unix epoch. By default, the Insights API uses the time it receives an event as its timestamp.
|
|
38
38
|
*/
|
|
39
39
|
timestamp?: number;
|
|
40
40
|
};
|
package/model/viewedObjectIDs.ts
CHANGED
|
@@ -7,34 +7,34 @@ import type { ViewEvent } from './viewEvent';
|
|
|
7
7
|
*/
|
|
8
8
|
export type ViewedObjectIDs = {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Event name, up to 64 ASCII characters. Consider naming events consistently—for example, by adopting Segment\'s [object-action](https://segment.com/academy/collecting-data/naming-conventions-for-clean-data/#the-object-action-framework) framework.
|
|
11
11
|
*/
|
|
12
12
|
eventName: string;
|
|
13
13
|
|
|
14
14
|
eventType: ViewEvent;
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Index name (case-sensitive) to which the event\'s items belong.
|
|
18
18
|
*/
|
|
19
19
|
index: string;
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Object IDs of the records that are part of the event.
|
|
23
23
|
*/
|
|
24
24
|
objectIDs: string[];
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Anonymous or pseudonymous user identifier. Don\'t use personally identifiable information in user tokens. For more information, see [User token](https://www.algolia.com/doc/guides/sending-events/concepts/usertoken/).
|
|
28
28
|
*/
|
|
29
29
|
userToken: string;
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* Identifier for authenticated users. When the user signs in, you can get an identifier from your system and send it as `authenticatedUserToken`. This lets you keep using the `userToken` from before the user signed in, while providing a reliable way to identify users across sessions. Don\'t use personally identifiable information in user tokens. For more information, see [User token](https://www.algolia.com/doc/guides/sending-events/concepts/usertoken/).
|
|
33
33
|
*/
|
|
34
34
|
authenticatedUserToken?: string;
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Timestamp of the event, measured in milliseconds since the Unix epoch. By default, the Insights API uses the time it receives an event as its timestamp.
|
|
38
38
|
*/
|
|
39
39
|
timestamp?: number;
|
|
40
40
|
};
|
package/package.json
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@algolia/client-insights",
|
|
3
|
-
"version": "5.0.0-
|
|
3
|
+
"version": "5.0.0-beta.10",
|
|
4
4
|
"description": "JavaScript client for client-insights",
|
|
5
|
-
"repository":
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/algolia/algoliasearch-client-javascript.git"
|
|
8
|
+
},
|
|
6
9
|
"license": "MIT",
|
|
7
10
|
"author": "Algolia",
|
|
8
11
|
"type": "module",
|
|
@@ -39,14 +42,14 @@
|
|
|
39
42
|
"clean": "rm -rf ./dist || true"
|
|
40
43
|
},
|
|
41
44
|
"dependencies": {
|
|
42
|
-
"@algolia/client-common": "5.0.0-
|
|
43
|
-
"@algolia/requester-browser-xhr": "5.0.0-
|
|
44
|
-
"@algolia/requester-node-http": "5.0.0-
|
|
45
|
+
"@algolia/client-common": "5.0.0-beta.11",
|
|
46
|
+
"@algolia/requester-browser-xhr": "5.0.0-beta.11",
|
|
47
|
+
"@algolia/requester-node-http": "5.0.0-beta.11"
|
|
45
48
|
},
|
|
46
49
|
"devDependencies": {
|
|
47
|
-
"@types/node": "20.
|
|
48
|
-
"rollup": "4.
|
|
49
|
-
"typescript": "5.
|
|
50
|
+
"@types/node": "20.14.10",
|
|
51
|
+
"rollup": "4.18.0",
|
|
52
|
+
"typescript": "5.5.3"
|
|
50
53
|
},
|
|
51
54
|
"engines": {
|
|
52
55
|
"node": ">= 14.0.0"
|