@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.
Files changed (49) hide show
  1. package/LICENSE +21 -0
  2. package/dist/builds/browser.d.ts +19 -3
  3. package/dist/builds/browser.d.ts.map +1 -1
  4. package/dist/builds/node.d.ts +19 -3
  5. package/dist/builds/node.d.ts.map +1 -1
  6. package/dist/client-insights.cjs +27 -30
  7. package/dist/client-insights.esm.browser.js +23 -38
  8. package/dist/client-insights.esm.node.js +27 -30
  9. package/dist/client-insights.umd.js +2 -2
  10. package/dist/model/addedToCartObjectIDs.d.ts +6 -6
  11. package/dist/model/addedToCartObjectIDsAfterSearch.d.ts +6 -6
  12. package/dist/model/clickedFilters.d.ts +6 -6
  13. package/dist/model/clickedObjectIDs.d.ts +6 -6
  14. package/dist/model/clickedObjectIDsAfterSearch.d.ts +7 -7
  15. package/dist/model/clientMethodProps.d.ts +1 -1
  16. package/dist/model/convertedFilters.d.ts +6 -6
  17. package/dist/model/convertedObjectIDs.d.ts +6 -6
  18. package/dist/model/convertedObjectIDsAfterSearch.d.ts +6 -6
  19. package/dist/model/discount.d.ts +1 -1
  20. package/dist/model/insightsEvents.d.ts +1 -1
  21. package/dist/model/objectData.d.ts +1 -1
  22. package/dist/model/objectDataAfterSearch.d.ts +1 -1
  23. package/dist/model/price.d.ts +1 -1
  24. package/dist/model/purchasedObjectIDs.d.ts +6 -6
  25. package/dist/model/purchasedObjectIDsAfterSearch.d.ts +7 -7
  26. package/dist/model/purchasedObjectIDsAfterSearch.d.ts.map +1 -1
  27. package/dist/model/viewedFilters.d.ts +6 -6
  28. package/dist/model/viewedObjectIDs.d.ts +6 -6
  29. package/dist/src/insightsClient.d.ts +4 -14
  30. package/dist/src/insightsClient.d.ts.map +1 -1
  31. package/model/addedToCartObjectIDs.ts +6 -6
  32. package/model/addedToCartObjectIDsAfterSearch.ts +6 -6
  33. package/model/clickedFilters.ts +6 -6
  34. package/model/clickedObjectIDs.ts +6 -6
  35. package/model/clickedObjectIDsAfterSearch.ts +7 -7
  36. package/model/clientMethodProps.ts +1 -1
  37. package/model/convertedFilters.ts +6 -6
  38. package/model/convertedObjectIDs.ts +6 -6
  39. package/model/convertedObjectIDsAfterSearch.ts +6 -6
  40. package/model/discount.ts +1 -1
  41. package/model/insightsEvents.ts +1 -1
  42. package/model/objectData.ts +1 -1
  43. package/model/objectDataAfterSearch.ts +1 -1
  44. package/model/price.ts +1 -1
  45. package/model/purchasedObjectIDs.ts +6 -6
  46. package/model/purchasedObjectIDsAfterSearch.ts +7 -7
  47. package/model/viewedFilters.ts +6 -6
  48. package/model/viewedObjectIDs.ts +6 -6
  49. package/package.json +11 -8
@@ -7,34 +7,34 @@ import type { ViewEvent } from './viewEvent';
7
7
  */
8
8
  export type ViewedFilters = {
9
9
  /**
10
- * The name of the event, 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.
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
- * The name of an Algolia index.
17
+ * Index name (case-sensitive) to which the event\'s items belong.
18
18
  */
19
19
  index: string;
20
20
 
21
21
  /**
22
- * Facet filters. Each facet filter string must be URL-encoded, such as, `discount:10%25`.
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
- * An anonymous or pseudonymous user identifier. > **Note**: Never include personally identifiable information in user tokens.
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
- * An identifier for authenticated users. > **Note**: Never include personally identifiable information in user tokens.
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
- * The timestamp of the event in milliseconds in [Unix epoch time](https://wikipedia.org/wiki/Unix_time). By default, the Insights API uses the time it receives an event as its timestamp.
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
  };
@@ -7,34 +7,34 @@ import type { ViewEvent } from './viewEvent';
7
7
  */
8
8
  export type ViewedObjectIDs = {
9
9
  /**
10
- * The name of the event, 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.
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
- * The name of an Algolia index.
17
+ * Index name (case-sensitive) to which the event\'s items belong.
18
18
  */
19
19
  index: string;
20
20
 
21
21
  /**
22
- * The object IDs of the records that are part of the event.
22
+ * Object IDs of the records that are part of the event.
23
23
  */
24
24
  objectIDs: string[];
25
25
 
26
26
  /**
27
- * An anonymous or pseudonymous user identifier. > **Note**: Never include personally identifiable information in user tokens.
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
- * An identifier for authenticated users. > **Note**: Never include personally identifiable information in user tokens.
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
- * The timestamp of the event in milliseconds in [Unix epoch time](https://wikipedia.org/wiki/Unix_time). By default, the Insights API uses the time it receives an event as its timestamp.
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-alpha.99",
3
+ "version": "5.0.0-beta.10",
4
4
  "description": "JavaScript client for client-insights",
5
- "repository": "algolia/algoliasearch-client-javascript",
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-alpha.100",
43
- "@algolia/requester-browser-xhr": "5.0.0-alpha.100",
44
- "@algolia/requester-node-http": "5.0.0-alpha.100"
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.11.0",
48
- "rollup": "4.9.6",
49
- "typescript": "5.3.3"
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"