@algolia/client-insights 5.9.0 → 5.10.0-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.
Files changed (49) hide show
  1. package/README.md +4 -4
  2. package/dist/browser.d.ts +1 -1
  3. package/dist/builds/browser.js +1 -1
  4. package/dist/builds/browser.js.map +1 -1
  5. package/dist/builds/browser.min.js +1 -1
  6. package/dist/builds/browser.min.js.map +1 -1
  7. package/dist/builds/browser.umd.js +1 -1
  8. package/dist/builds/fetch.js +1 -1
  9. package/dist/builds/fetch.js.map +1 -1
  10. package/dist/builds/node.cjs +1 -1
  11. package/dist/builds/node.cjs.map +1 -1
  12. package/dist/builds/node.js +1 -1
  13. package/dist/builds/node.js.map +1 -1
  14. package/dist/fetch.d.ts +1 -1
  15. package/dist/node.d.cts +1 -1
  16. package/dist/node.d.ts +1 -1
  17. package/dist/src/insightsClient.cjs +1 -1
  18. package/dist/src/insightsClient.cjs.map +1 -1
  19. package/dist/src/insightsClient.js +1 -1
  20. package/dist/src/insightsClient.js.map +1 -1
  21. package/package.json +6 -7
  22. package/model/addToCartEvent.ts +0 -3
  23. package/model/addedToCartObjectIDs.ts +0 -57
  24. package/model/addedToCartObjectIDsAfterSearch.ts +0 -62
  25. package/model/clickEvent.ts +0 -3
  26. package/model/clickedFilters.ts +0 -40
  27. package/model/clickedObjectIDs.ts +0 -40
  28. package/model/clickedObjectIDsAfterSearch.ts +0 -50
  29. package/model/clientMethodProps.ts +0 -75
  30. package/model/conversionEvent.ts +0 -3
  31. package/model/convertedFilters.ts +0 -37
  32. package/model/convertedObjectIDs.ts +0 -40
  33. package/model/convertedObjectIDsAfterSearch.ts +0 -45
  34. package/model/discount.ts +0 -6
  35. package/model/errorBase.ts +0 -8
  36. package/model/eventsItems.ts +0 -30
  37. package/model/eventsResponse.ts +0 -16
  38. package/model/index.ts +0 -29
  39. package/model/insightsEvents.ts +0 -10
  40. package/model/objectData.ts +0 -15
  41. package/model/objectDataAfterSearch.ts +0 -20
  42. package/model/price.ts +0 -6
  43. package/model/purchaseEvent.ts +0 -3
  44. package/model/purchasedObjectIDs.ts +0 -57
  45. package/model/purchasedObjectIDsAfterSearch.ts +0 -57
  46. package/model/value.ts +0 -6
  47. package/model/viewEvent.ts +0 -3
  48. package/model/viewedFilters.ts +0 -40
  49. package/model/viewedObjectIDs.ts +0 -40
@@ -1,62 +0,0 @@
1
- // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
-
3
- import type { AddToCartEvent } from './addToCartEvent';
4
- import type { ConversionEvent } from './conversionEvent';
5
- import type { ObjectDataAfterSearch } from './objectDataAfterSearch';
6
- import type { Value } from './value';
7
-
8
- /**
9
- * Use this event to track when users add items to their shopping cart after a previous Algolia request. If you\'re building your category pages with Algolia, you\'ll also use this event.
10
- */
11
- export type AddedToCartObjectIDsAfterSearch = {
12
- /**
13
- * 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.
14
- */
15
- eventName: string;
16
-
17
- eventType: ConversionEvent;
18
-
19
- eventSubtype: AddToCartEvent;
20
-
21
- /**
22
- * Index name (case-sensitive) to which the event\'s items belong.
23
- */
24
- index: string;
25
-
26
- /**
27
- * Unique identifier for a search query. The query ID is required for events related to search or browse requests. If you add `clickAnalytics: true` as a search request parameter, the query ID is included in the API response.
28
- */
29
- queryID: string;
30
-
31
- /**
32
- * Object IDs of the records that are part of the event.
33
- */
34
- objectIDs: Array<string>;
35
-
36
- /**
37
- * 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/).
38
- */
39
- userToken: string;
40
-
41
- /**
42
- * 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/).
43
- */
44
- authenticatedUserToken?: string;
45
-
46
- /**
47
- * Three-letter [currency code](https://www.iso.org/iso-4217-currency-codes.html).
48
- */
49
- currency?: string;
50
-
51
- /**
52
- * Extra information about the records involved in a purchase or add-to-cart events. If provided, it must be the same length as `objectIDs`.
53
- */
54
- objectData?: Array<ObjectDataAfterSearch>;
55
-
56
- /**
57
- * 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.
58
- */
59
- timestamp?: number;
60
-
61
- value?: Value;
62
- };
@@ -1,3 +0,0 @@
1
- // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
-
3
- export type ClickEvent = 'click';
@@ -1,40 +0,0 @@
1
- // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
-
3
- import type { ClickEvent } from './clickEvent';
4
-
5
- /**
6
- * Use this event to track when users click facet filters in your user interface.
7
- */
8
- export type ClickedFilters = {
9
- /**
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
- */
12
- eventName: string;
13
-
14
- eventType: ClickEvent;
15
-
16
- /**
17
- * Index name (case-sensitive) to which the event\'s items belong.
18
- */
19
- index: string;
20
-
21
- /**
22
- * Applied facet filters. Facet filters are `facet:value` pairs. Facet values must be URL-encoded, such as, `discount:10%25`.
23
- */
24
- filters: Array<string>;
25
-
26
- /**
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
- */
29
- userToken: string;
30
-
31
- /**
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
- */
34
- authenticatedUserToken?: string;
35
-
36
- /**
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
- */
39
- timestamp?: number;
40
- };
@@ -1,40 +0,0 @@
1
- // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
-
3
- import type { ClickEvent } from './clickEvent';
4
-
5
- /**
6
- * Use this event to track when users click items unrelated to a previous Algolia request. For example, if you don\'t use Algolia to build your category pages, use this event. To track click events related to Algolia requests, use the \"Clicked object IDs after search\" event.
7
- */
8
- export type ClickedObjectIDs = {
9
- /**
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
- */
12
- eventName: string;
13
-
14
- eventType: ClickEvent;
15
-
16
- /**
17
- * Index name (case-sensitive) to which the event\'s items belong.
18
- */
19
- index: string;
20
-
21
- /**
22
- * Object IDs of the records that are part of the event.
23
- */
24
- objectIDs: Array<string>;
25
-
26
- /**
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
- */
29
- userToken: string;
30
-
31
- /**
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
- */
34
- authenticatedUserToken?: string;
35
-
36
- /**
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
- */
39
- timestamp?: number;
40
- };
@@ -1,50 +0,0 @@
1
- // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
-
3
- import type { ClickEvent } from './clickEvent';
4
-
5
- /**
6
- * Click event after an Algolia request. Use this event to track when users click items in the search results. If you\'re building your category pages with Algolia, you\'ll also use this event.
7
- */
8
- export type ClickedObjectIDsAfterSearch = {
9
- /**
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
- */
12
- eventName: string;
13
-
14
- eventType: ClickEvent;
15
-
16
- /**
17
- * Index name (case-sensitive) to which the event\'s items belong.
18
- */
19
- index: string;
20
-
21
- /**
22
- * Object IDs of the records that are part of the event.
23
- */
24
- objectIDs: Array<string>;
25
-
26
- /**
27
- * Position of the clicked item the search results. You must provide 1 `position` for each `objectID`.
28
- */
29
- positions: Array<number>;
30
-
31
- /**
32
- * Unique identifier for a search query. The query ID is required for events related to search or browse requests. If you add `clickAnalytics: true` as a search request parameter, the query ID is included in the API response.
33
- */
34
- queryID: string;
35
-
36
- /**
37
- * 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/).
38
- */
39
- userToken: string;
40
-
41
- /**
42
- * 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/).
43
- */
44
- authenticatedUserToken?: string;
45
-
46
- /**
47
- * 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.
48
- */
49
- timestamp?: number;
50
- };
@@ -1,75 +0,0 @@
1
- // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
-
3
- /**
4
- * Properties for the `customDelete` method.
5
- */
6
- export type CustomDeleteProps = {
7
- /**
8
- * Path of the endpoint, anything after \"/1\" must be specified.
9
- */
10
- path: string;
11
- /**
12
- * Query parameters to apply to the current query.
13
- */
14
- parameters?: { [key: string]: any };
15
- };
16
-
17
- /**
18
- * Properties for the `customGet` method.
19
- */
20
- export type CustomGetProps = {
21
- /**
22
- * Path of the endpoint, anything after \"/1\" must be specified.
23
- */
24
- path: string;
25
- /**
26
- * Query parameters to apply to the current query.
27
- */
28
- parameters?: { [key: string]: any };
29
- };
30
-
31
- /**
32
- * Properties for the `customPost` method.
33
- */
34
- export type CustomPostProps = {
35
- /**
36
- * Path of the endpoint, anything after \"/1\" must be specified.
37
- */
38
- path: string;
39
- /**
40
- * Query parameters to apply to the current query.
41
- */
42
- parameters?: { [key: string]: any };
43
- /**
44
- * Parameters to send with the custom request.
45
- */
46
- body?: Record<string, unknown>;
47
- };
48
-
49
- /**
50
- * Properties for the `customPut` method.
51
- */
52
- export type CustomPutProps = {
53
- /**
54
- * Path of the endpoint, anything after \"/1\" must be specified.
55
- */
56
- path: string;
57
- /**
58
- * Query parameters to apply to the current query.
59
- */
60
- parameters?: { [key: string]: any };
61
- /**
62
- * Parameters to send with the custom request.
63
- */
64
- body?: Record<string, unknown>;
65
- };
66
-
67
- /**
68
- * Properties for the `deleteUserToken` method.
69
- */
70
- export type DeleteUserTokenProps = {
71
- /**
72
- * User token for which to delete all associated events.
73
- */
74
- userToken: string;
75
- };
@@ -1,3 +0,0 @@
1
- // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
-
3
- export type ConversionEvent = 'conversion';
@@ -1,37 +0,0 @@
1
- // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
-
3
- import type { ConversionEvent } from './conversionEvent';
4
-
5
- export type ConvertedFilters = {
6
- /**
7
- * 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.
8
- */
9
- eventName: string;
10
-
11
- eventType: ConversionEvent;
12
-
13
- /**
14
- * Index name (case-sensitive) to which the event\'s items belong.
15
- */
16
- index: string;
17
-
18
- /**
19
- * Applied facet filters. Facet filters are `facet:value` pairs. Facet values must be URL-encoded, such as, `discount:10%25`.
20
- */
21
- filters: Array<string>;
22
-
23
- /**
24
- * 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/).
25
- */
26
- userToken: string;
27
-
28
- /**
29
- * 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/).
30
- */
31
- authenticatedUserToken?: string;
32
-
33
- /**
34
- * 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.
35
- */
36
- timestamp?: number;
37
- };
@@ -1,40 +0,0 @@
1
- // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
-
3
- import type { ConversionEvent } from './conversionEvent';
4
-
5
- /**
6
- * Use this event to track when users convert on items unrelated to a previous Algolia request. For example, if you don\'t use Algolia to build your category pages, use this event. To track conversion events related to Algolia requests, use the \"Converted object IDs after search\" event.
7
- */
8
- export type ConvertedObjectIDs = {
9
- /**
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
- */
12
- eventName: string;
13
-
14
- eventType: ConversionEvent;
15
-
16
- /**
17
- * Index name (case-sensitive) to which the event\'s items belong.
18
- */
19
- index: string;
20
-
21
- /**
22
- * Object IDs of the records that are part of the event.
23
- */
24
- objectIDs: Array<string>;
25
-
26
- /**
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
- */
29
- userToken: string;
30
-
31
- /**
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
- */
34
- authenticatedUserToken?: string;
35
-
36
- /**
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
- */
39
- timestamp?: number;
40
- };
@@ -1,45 +0,0 @@
1
- // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
-
3
- import type { ConversionEvent } from './conversionEvent';
4
-
5
- /**
6
- * Use this event to track when users convert after a previous Algolia request. For example, a user clicks on an item in the search results to view the product detail page. Then, the user adds the item to their shopping cart. If you\'re building your category pages with Algolia, you\'ll also use this event.
7
- */
8
- export type ConvertedObjectIDsAfterSearch = {
9
- /**
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
- */
12
- eventName: string;
13
-
14
- eventType: ConversionEvent;
15
-
16
- /**
17
- * Index name (case-sensitive) to which the event\'s items belong.
18
- */
19
- index: string;
20
-
21
- /**
22
- * Object IDs of the records that are part of the event.
23
- */
24
- objectIDs: Array<string>;
25
-
26
- /**
27
- * Unique identifier for a search query. The query ID is required for events related to search or browse requests. If you add `clickAnalytics: true` as a search request parameter, the query ID is included in the API response.
28
- */
29
- queryID: string;
30
-
31
- /**
32
- * 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/).
33
- */
34
- userToken: string;
35
-
36
- /**
37
- * 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/).
38
- */
39
- authenticatedUserToken?: string;
40
-
41
- /**
42
- * 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.
43
- */
44
- timestamp?: number;
45
- };
package/model/discount.ts DELETED
@@ -1,6 +0,0 @@
1
- // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
-
3
- /**
4
- * Absolute value of the discount for this product, in units of `currency`.
5
- */
6
- export type Discount = number | string;
@@ -1,8 +0,0 @@
1
- // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
-
3
- /**
4
- * Error.
5
- */
6
- export type ErrorBase = Record<string, any> & {
7
- message?: string;
8
- };
@@ -1,30 +0,0 @@
1
- // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
-
3
- import type { AddedToCartObjectIDs } from './addedToCartObjectIDs';
4
- import type { AddedToCartObjectIDsAfterSearch } from './addedToCartObjectIDsAfterSearch';
5
- import type { ClickedFilters } from './clickedFilters';
6
- import type { ClickedObjectIDs } from './clickedObjectIDs';
7
- import type { ClickedObjectIDsAfterSearch } from './clickedObjectIDsAfterSearch';
8
- import type { ConvertedFilters } from './convertedFilters';
9
- import type { ConvertedObjectIDs } from './convertedObjectIDs';
10
- import type { ConvertedObjectIDsAfterSearch } from './convertedObjectIDsAfterSearch';
11
-
12
- import type { PurchasedObjectIDs } from './purchasedObjectIDs';
13
- import type { PurchasedObjectIDsAfterSearch } from './purchasedObjectIDsAfterSearch';
14
-
15
- import type { ViewedFilters } from './viewedFilters';
16
- import type { ViewedObjectIDs } from './viewedObjectIDs';
17
-
18
- export type EventsItems =
19
- | ClickedObjectIDsAfterSearch
20
- | AddedToCartObjectIDsAfterSearch
21
- | PurchasedObjectIDsAfterSearch
22
- | ConvertedObjectIDsAfterSearch
23
- | ClickedObjectIDs
24
- | PurchasedObjectIDs
25
- | AddedToCartObjectIDs
26
- | ConvertedObjectIDs
27
- | ClickedFilters
28
- | ConvertedFilters
29
- | ViewedObjectIDs
30
- | ViewedFilters;
@@ -1,16 +0,0 @@
1
- // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
-
3
- /**
4
- * The response of the Insights API.
5
- */
6
- export type EventsResponse = {
7
- /**
8
- * Details about the response, such as error messages.
9
- */
10
- message?: string;
11
-
12
- /**
13
- * The HTTP status code of the response.
14
- */
15
- status?: number;
16
- };
package/model/index.ts DELETED
@@ -1,29 +0,0 @@
1
- // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
-
3
- export * from './addedToCartObjectIDs';
4
- export * from './addedToCartObjectIDsAfterSearch';
5
- export * from './addToCartEvent';
6
- export * from './clickedFilters';
7
- export * from './clickedObjectIDs';
8
- export * from './clickedObjectIDsAfterSearch';
9
- export * from './clickEvent';
10
- export * from './clientMethodProps';
11
- export * from './conversionEvent';
12
- export * from './convertedFilters';
13
- export * from './convertedObjectIDs';
14
- export * from './convertedObjectIDsAfterSearch';
15
- export * from './discount';
16
- export * from './errorBase';
17
- export * from './eventsItems';
18
- export * from './eventsResponse';
19
- export * from './insightsEvents';
20
- export * from './objectData';
21
- export * from './objectDataAfterSearch';
22
- export * from './price';
23
- export * from './purchasedObjectIDs';
24
- export * from './purchasedObjectIDsAfterSearch';
25
- export * from './purchaseEvent';
26
- export * from './value';
27
- export * from './viewedFilters';
28
- export * from './viewedObjectIDs';
29
- export * from './viewEvent';
@@ -1,10 +0,0 @@
1
- // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
-
3
- import type { EventsItems } from './eventsItems';
4
-
5
- export type InsightsEvents = {
6
- /**
7
- * Click and conversion events. **All** events must be valid, otherwise the API returns an error.
8
- */
9
- events: Array<EventsItems>;
10
- };
@@ -1,15 +0,0 @@
1
- // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
-
3
- import type { Discount } from './discount';
4
- import type { Price } from './price';
5
-
6
- export type ObjectData = {
7
- price?: Price;
8
-
9
- /**
10
- * Quantity of a product that has been purchased or added to the cart. The total purchase value is the sum of `quantity` multiplied with the `price` for each purchased item.
11
- */
12
- quantity?: number;
13
-
14
- discount?: Discount;
15
- };
@@ -1,20 +0,0 @@
1
- // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
-
3
- import type { Discount } from './discount';
4
- import type { Price } from './price';
5
-
6
- export type ObjectDataAfterSearch = {
7
- /**
8
- * Unique identifier for a search query, used to track purchase events with multiple records that originate from different searches.
9
- */
10
- queryID?: string;
11
-
12
- price?: Price;
13
-
14
- /**
15
- * Quantity of a product that has been purchased or added to the cart. The total purchase value is the sum of `quantity` multiplied with the `price` for each purchased item.
16
- */
17
- quantity?: number;
18
-
19
- discount?: Discount;
20
- };
package/model/price.ts DELETED
@@ -1,6 +0,0 @@
1
- // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
-
3
- /**
4
- * Total price of a product, including any discounts, in units of `currency`.
5
- */
6
- export type Price = number | string;
@@ -1,3 +0,0 @@
1
- // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
-
3
- export type PurchaseEvent = 'purchase';
@@ -1,57 +0,0 @@
1
- // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
-
3
- import type { ConversionEvent } from './conversionEvent';
4
- import type { ObjectData } from './objectData';
5
- import type { PurchaseEvent } from './purchaseEvent';
6
- import type { Value } from './value';
7
-
8
- /**
9
- * Use this event to track when users make a purchase unrelated to a previous Algolia request. For example, if you don\'t use Algolia to build your category pages, use this event. To track purchase events related to Algolia requests, use the \"Purchased object IDs after search\" event.
10
- */
11
- export type PurchasedObjectIDs = {
12
- /**
13
- * 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.
14
- */
15
- eventName: string;
16
-
17
- eventType: ConversionEvent;
18
-
19
- eventSubtype: PurchaseEvent;
20
-
21
- /**
22
- * Index name (case-sensitive) to which the event\'s items belong.
23
- */
24
- index: string;
25
-
26
- /**
27
- * Object IDs of the records that are part of the event.
28
- */
29
- objectIDs: Array<string>;
30
-
31
- /**
32
- * 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/).
33
- */
34
- userToken: string;
35
-
36
- /**
37
- * 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/).
38
- */
39
- authenticatedUserToken?: string;
40
-
41
- /**
42
- * Three-letter [currency code](https://www.iso.org/iso-4217-currency-codes.html).
43
- */
44
- currency?: string;
45
-
46
- /**
47
- * Extra information about the records involved in a purchase or add-to-cart event. If specified, it must have the same length as `objectIDs`.
48
- */
49
- objectData?: Array<ObjectData>;
50
-
51
- /**
52
- * 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.
53
- */
54
- timestamp?: number;
55
-
56
- value?: Value;
57
- };