@algolia/client-insights 5.0.0-alpha.99 → 5.0.0-beta.2
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/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 +14 -22
- 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 +7 -7
|
@@ -10,7 +10,7 @@ import type { Value } from './value';
|
|
|
10
10
|
*/
|
|
11
11
|
export type AddedToCartObjectIDs = {
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
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
14
|
*/
|
|
15
15
|
eventName: string;
|
|
16
16
|
|
|
@@ -19,22 +19,22 @@ export type AddedToCartObjectIDs = {
|
|
|
19
19
|
eventSubtype: AddToCartEvent;
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Index name (case-sensitive) to which the event\'s items belong.
|
|
23
23
|
*/
|
|
24
24
|
index: string;
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Object IDs of the records that are part of the event.
|
|
28
28
|
*/
|
|
29
29
|
objectIDs: string[];
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
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
33
|
*/
|
|
34
34
|
userToken: string;
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
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
38
|
*/
|
|
39
39
|
authenticatedUserToken?: string;
|
|
40
40
|
|
|
@@ -49,7 +49,7 @@ export type AddedToCartObjectIDs = {
|
|
|
49
49
|
objectData?: ObjectData[];
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
|
-
*
|
|
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
53
|
*/
|
|
54
54
|
timestamp?: number;
|
|
55
55
|
|
|
@@ -10,7 +10,7 @@ import type { Value } from './value';
|
|
|
10
10
|
*/
|
|
11
11
|
export type AddedToCartObjectIDsAfterSearch = {
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
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
14
|
*/
|
|
15
15
|
eventName: string;
|
|
16
16
|
|
|
@@ -19,7 +19,7 @@ export type AddedToCartObjectIDsAfterSearch = {
|
|
|
19
19
|
eventSubtype: AddToCartEvent;
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Index name (case-sensitive) to which the event\'s items belong.
|
|
23
23
|
*/
|
|
24
24
|
index: string;
|
|
25
25
|
|
|
@@ -29,17 +29,17 @@ export type AddedToCartObjectIDsAfterSearch = {
|
|
|
29
29
|
queryID: string;
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* Object IDs of the records that are part of the event.
|
|
33
33
|
*/
|
|
34
34
|
objectIDs: string[];
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
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
38
|
*/
|
|
39
39
|
userToken: string;
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
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
43
|
*/
|
|
44
44
|
authenticatedUserToken?: string;
|
|
45
45
|
|
|
@@ -54,7 +54,7 @@ export type AddedToCartObjectIDsAfterSearch = {
|
|
|
54
54
|
objectData?: ObjectDataAfterSearch[];
|
|
55
55
|
|
|
56
56
|
/**
|
|
57
|
-
*
|
|
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
58
|
*/
|
|
59
59
|
timestamp?: number;
|
|
60
60
|
|
package/model/clickedFilters.ts
CHANGED
|
@@ -7,34 +7,34 @@ import type { ClickEvent } from './clickEvent';
|
|
|
7
7
|
*/
|
|
8
8
|
export type ClickedFilters = {
|
|
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: ClickEvent;
|
|
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
|
};
|
|
@@ -7,34 +7,34 @@ import type { ClickEvent } from './clickEvent';
|
|
|
7
7
|
*/
|
|
8
8
|
export type ClickedObjectIDs = {
|
|
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: ClickEvent;
|
|
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
|
};
|
|
@@ -7,24 +7,24 @@ import type { ClickEvent } from './clickEvent';
|
|
|
7
7
|
*/
|
|
8
8
|
export type ClickedObjectIDsAfterSearch = {
|
|
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: ClickEvent;
|
|
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
|
+
* Position of the clicked item the search results. You must provide 1 `position` for each `objectID`.
|
|
28
28
|
*/
|
|
29
29
|
positions: number[];
|
|
30
30
|
|
|
@@ -34,17 +34,17 @@ export type ClickedObjectIDsAfterSearch = {
|
|
|
34
34
|
queryID: string;
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
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
38
|
*/
|
|
39
39
|
userToken: string;
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
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
43
|
*/
|
|
44
44
|
authenticatedUserToken?: string;
|
|
45
45
|
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
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
48
|
*/
|
|
49
49
|
timestamp?: number;
|
|
50
50
|
};
|
|
@@ -4,34 +4,34 @@ import type { ConversionEvent } from './conversionEvent';
|
|
|
4
4
|
|
|
5
5
|
export type ConvertedFilters = {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
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
8
|
*/
|
|
9
9
|
eventName: string;
|
|
10
10
|
|
|
11
11
|
eventType: ConversionEvent;
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Index name (case-sensitive) to which the event\'s items belong.
|
|
15
15
|
*/
|
|
16
16
|
index: string;
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Applied facet filters. Facet filters are `facet:value` pairs. Facet values must be URL-encoded, such as, `discount:10%25`.
|
|
20
20
|
*/
|
|
21
21
|
filters: string[];
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
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
25
|
*/
|
|
26
26
|
userToken: string;
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
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
30
|
*/
|
|
31
31
|
authenticatedUserToken?: string;
|
|
32
32
|
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
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
35
|
*/
|
|
36
36
|
timestamp?: number;
|
|
37
37
|
};
|
|
@@ -7,34 +7,34 @@ import type { ConversionEvent } from './conversionEvent';
|
|
|
7
7
|
*/
|
|
8
8
|
export type ConvertedObjectIDs = {
|
|
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: ConversionEvent;
|
|
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
|
};
|
|
@@ -7,19 +7,19 @@ import type { ConversionEvent } from './conversionEvent';
|
|
|
7
7
|
*/
|
|
8
8
|
export type ConvertedObjectIDsAfterSearch = {
|
|
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: ConversionEvent;
|
|
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
|
|
|
@@ -29,17 +29,17 @@ export type ConvertedObjectIDsAfterSearch = {
|
|
|
29
29
|
queryID: string;
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
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
33
|
*/
|
|
34
34
|
userToken: string;
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
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
38
|
*/
|
|
39
39
|
authenticatedUserToken?: string;
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
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
43
|
*/
|
|
44
44
|
timestamp?: number;
|
|
45
45
|
};
|
package/model/discount.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
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
2
|
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Absolute value of the discount for this product, in units of `currency`.
|
|
5
5
|
*/
|
|
6
6
|
export type Discount = number | string;
|
package/model/insightsEvents.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { EventsItems } from './eventsItems';
|
|
|
4
4
|
|
|
5
5
|
export type InsightsEvents = {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Click and conversion events. **All** events must be valid, otherwise the API returns an error.
|
|
8
8
|
*/
|
|
9
9
|
events: EventsItems[];
|
|
10
10
|
};
|
package/model/objectData.ts
CHANGED
|
@@ -7,7 +7,7 @@ export type ObjectData = {
|
|
|
7
7
|
price?: Price;
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
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
11
|
*/
|
|
12
12
|
quantity?: number;
|
|
13
13
|
|
|
@@ -12,7 +12,7 @@ export type ObjectDataAfterSearch = {
|
|
|
12
12
|
price?: Price;
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
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
16
|
*/
|
|
17
17
|
quantity?: number;
|
|
18
18
|
|
package/model/price.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
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
2
|
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Total price of a product, including any discounts, in units of `currency`.
|
|
5
5
|
*/
|
|
6
6
|
export type Price = number | string;
|
|
@@ -10,7 +10,7 @@ import type { Value } from './value';
|
|
|
10
10
|
*/
|
|
11
11
|
export type PurchasedObjectIDs = {
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
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
14
|
*/
|
|
15
15
|
eventName: string;
|
|
16
16
|
|
|
@@ -19,22 +19,22 @@ export type PurchasedObjectIDs = {
|
|
|
19
19
|
eventSubtype: PurchaseEvent;
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Index name (case-sensitive) to which the event\'s items belong.
|
|
23
23
|
*/
|
|
24
24
|
index: string;
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Object IDs of the records that are part of the event.
|
|
28
28
|
*/
|
|
29
29
|
objectIDs: string[];
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
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
33
|
*/
|
|
34
34
|
userToken: string;
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
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
38
|
*/
|
|
39
39
|
authenticatedUserToken?: string;
|
|
40
40
|
|
|
@@ -49,7 +49,7 @@ export type PurchasedObjectIDs = {
|
|
|
49
49
|
objectData?: ObjectData[];
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
|
-
*
|
|
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
53
|
*/
|
|
54
54
|
timestamp?: number;
|
|
55
55
|
|
|
@@ -10,7 +10,7 @@ import type { Value } from './value';
|
|
|
10
10
|
*/
|
|
11
11
|
export type PurchasedObjectIDsAfterSearch = {
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
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
14
|
*/
|
|
15
15
|
eventName: string;
|
|
16
16
|
|
|
@@ -19,22 +19,22 @@ export type PurchasedObjectIDsAfterSearch = {
|
|
|
19
19
|
eventSubtype: PurchaseEvent;
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Index name (case-sensitive) to which the event\'s items belong.
|
|
23
23
|
*/
|
|
24
24
|
index: string;
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Object IDs of the records that are part of the event.
|
|
28
28
|
*/
|
|
29
29
|
objectIDs: string[];
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
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
33
|
*/
|
|
34
34
|
userToken: string;
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
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
38
|
*/
|
|
39
39
|
authenticatedUserToken?: string;
|
|
40
40
|
|
|
@@ -46,10 +46,10 @@ export type PurchasedObjectIDsAfterSearch = {
|
|
|
46
46
|
/**
|
|
47
47
|
* Extra information about the records involved in a purchase or add-to-cart events. If provided, it must be the same length as `objectIDs`.
|
|
48
48
|
*/
|
|
49
|
-
objectData
|
|
49
|
+
objectData: ObjectDataAfterSearch[];
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
|
-
*
|
|
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
53
|
*/
|
|
54
54
|
timestamp?: number;
|
|
55
55
|
|
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
|
};
|