Skip to content

Commit 94bacc0

Browse files
algolia-botaallam
andcommitted
chore: generated code for commit fa326a50. [skip ci]
algolia/api-clients-automation@fa326a5 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Mouaad Aallam <[email protected]>
1 parent cd986a9 commit 94bacc0

15 files changed

+82
-0
lines changed

packages/client-insights/model/addedToCartObjectIDs.ts

+5
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,9 @@ export type AddedToCartObjectIDs = {
4646
* Time 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.
4747
*/
4848
timestamp?: number;
49+
50+
/**
51+
* User token for authenticated users.
52+
*/
53+
authenticatedUserToken?: string;
4954
};

packages/client-insights/model/addedToCartObjectIDsAfterSearch.ts

+5
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,9 @@ export type AddedToCartObjectIDsAfterSearch = {
5151
* Time 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.
5252
*/
5353
timestamp?: number;
54+
55+
/**
56+
* User token for authenticated users.
57+
*/
58+
authenticatedUserToken?: string;
5459
};

packages/client-insights/model/clickedFilters.ts

+5
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,9 @@ export type ClickedFilters = {
3232
* Time 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.
3333
*/
3434
timestamp?: number;
35+
36+
/**
37+
* User token for authenticated users.
38+
*/
39+
authenticatedUserToken?: string;
3540
};

packages/client-insights/model/clickedObjectIDsAfterSearch.ts

+5
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,9 @@ export type ClickedObjectIDsAfterSearch = {
4242
* Time 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.
4343
*/
4444
timestamp?: number;
45+
46+
/**
47+
* User token for authenticated users.
48+
*/
49+
authenticatedUserToken?: string;
4550
};

packages/client-insights/model/convertedFilters.ts

+5
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,9 @@ export type ConvertedFilters = {
2929
* Time 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.
3030
*/
3131
timestamp?: number;
32+
33+
/**
34+
* User token for authenticated users.
35+
*/
36+
authenticatedUserToken?: string;
3237
};

packages/client-insights/model/convertedObjectIDs.ts

+5
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,9 @@ export type ConvertedObjectIDs = {
3232
* Time 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.
3333
*/
3434
timestamp?: number;
35+
36+
/**
37+
* User token for authenticated users.
38+
*/
39+
authenticatedUserToken?: string;
3540
};

packages/client-insights/model/convertedObjectIDsAfterSearch.ts

+5
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,9 @@ export type ConvertedObjectIDsAfterSearch = {
3737
* Time 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.
3838
*/
3939
timestamp?: number;
40+
41+
/**
42+
* User token for authenticated users.
43+
*/
44+
authenticatedUserToken?: string;
4045
};

packages/client-insights/model/eventsItems.ts

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import type { ClickedObjectIDsAfterSearch } from './clickedObjectIDsAfterSearch'
88
import type { ConvertedFilters } from './convertedFilters';
99
import type { ConvertedObjectIDs } from './convertedObjectIDs';
1010
import type { ConvertedObjectIDsAfterSearch } from './convertedObjectIDsAfterSearch';
11+
import type { Identify } from './identify';
1112
import type { PurchasedObjectIDs } from './purchasedObjectIDs';
1213
import type { PurchasedObjectIDsAfterSearch } from './purchasedObjectIDsAfterSearch';
1314
import type { ViewedFilters } from './viewedFilters';
@@ -22,6 +23,7 @@ export type EventsItems =
2223
| ConvertedFilters
2324
| ConvertedObjectIDs
2425
| ConvertedObjectIDsAfterSearch
26+
| Identify
2527
| PurchasedObjectIDs
2628
| PurchasedObjectIDsAfterSearch
2729
| ViewedFilters
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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 { IdentifyEvent } from './identifyEvent';
4+
5+
/**
6+
* The identify event is a signal for Insights to process all events coming from \'userToken\' as if they were from \'authenticatedUserToken\'.
7+
*/
8+
export type Identify = {
9+
eventType: IdentifyEvent;
10+
11+
/**
12+
* Anonymous or pseudonymous user identifier. > **Note**: Never include personally identifiable information in user tokens.
13+
*/
14+
userToken: string;
15+
16+
/**
17+
* User token for authenticated users.
18+
*/
19+
authenticatedUserToken: string;
20+
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
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 IdentifyEvent = 'identify';

packages/client-insights/model/index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ export * from './discount';
1515
export * from './errorBase';
1616
export * from './eventsItems';
1717
export * from './eventsResponse';
18+
export * from './identify';
19+
export * from './identifyEvent';
1820
export * from './insightsEvents';
1921
export * from './objectData';
2022
export * from './objectDataAfterSearch';

packages/client-insights/model/purchasedObjectIDs.ts

+5
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,9 @@ export type PurchasedObjectIDs = {
4646
* Time 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.
4747
*/
4848
timestamp?: number;
49+
50+
/**
51+
* User token for authenticated users.
52+
*/
53+
authenticatedUserToken?: string;
4954
};

packages/client-insights/model/purchasedObjectIDsAfterSearch.ts

+5
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,9 @@ export type PurchasedObjectIDsAfterSearch = {
5151
* Time 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.
5252
*/
5353
timestamp?: number;
54+
55+
/**
56+
* User token for authenticated users.
57+
*/
58+
authenticatedUserToken?: string;
5459
};

packages/client-insights/model/viewedFilters.ts

+5
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,9 @@ export type ViewedFilters = {
3232
* Time 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.
3333
*/
3434
timestamp?: number;
35+
36+
/**
37+
* User token for authenticated users.
38+
*/
39+
authenticatedUserToken?: string;
3540
};

packages/client-insights/model/viewedObjectIDs.ts

+5
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,9 @@ export type ViewedObjectIDs = {
3232
* Time 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.
3333
*/
3434
timestamp?: number;
35+
36+
/**
37+
* User token for authenticated users.
38+
*/
39+
authenticatedUserToken?: string;
3540
};

0 commit comments

Comments
 (0)