Skip to content

Commit a58eff8

Browse files
committed
Update client
1 parent d4bf790 commit a58eff8

34 files changed

+196
-121
lines changed

.openapi-generator/FILES

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ base.ts
44
common.ts
55
configuration.ts
66
docs/ApiProblem.md
7+
docs/Audience.md
8+
docs/AudienceMatched.md
79
docs/Browser.md
810
docs/BrowserType.md
911
docs/Campaign.md
@@ -27,6 +29,7 @@ docs/EventType.md
2729
docs/ExportApi.md
2830
docs/GeoPoint.md
2931
docs/GoalCompleted.md
32+
docs/LeadGenerated.md
3033
docs/Location.md
3134
docs/LocationContinent.md
3235
docs/LocationDetected.md
@@ -51,11 +54,11 @@ docs/SlotPersonalized.md
5154
docs/SlotPersonalizedMetadata.md
5255
docs/SlotPersonalizedPersonalization.md
5356
docs/SlotPersonalizedPersonalizationAssignedVariant.md
57+
docs/SlotPersonalizedPersonalizationSlotVersion.md
5458
docs/TabOpened.md
5559
docs/TabUrlChanged.md
5660
docs/TabVisibility.md
5761
docs/TabVisibilityChanged.md
58-
docs/TestGroupAssigned.md
5962
docs/User.md
6063
docs/UserAddress.md
6164
docs/UserResponse.md

.openapi-generator/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.17.0-SNAPSHOT
1+
7.19.0-SNAPSHOT

api.ts

Lines changed: 59 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Croct Export
55
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
66
*
7-
* The version of the OpenAPI document: 0.3.1
7+
* The version of the OpenAPI document: 0.5.0
88
* Contact: [email protected]
99
*
1010
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -30,6 +30,26 @@ export interface ApiProblem {
3030
'type': string;
3131
'details'?: string;
3232
}
33+
/**
34+
* The information about an audience.
35+
*/
36+
export interface Audience {
37+
/**
38+
* The ID that uniquely identifies the audience.
39+
*/
40+
'id'?: string;
41+
/**
42+
* The name of the audience.
43+
*/
44+
'name'?: string | null;
45+
/**
46+
* The custom ID of the audience.
47+
*/
48+
'customId'?: string | null;
49+
}
50+
export interface AudienceMatched extends EventPayload {
51+
'audienceIds'?: Array<Audience>;
52+
}
3353
/**
3454
* The available information about a browser.
3555
*/
@@ -128,9 +148,6 @@ export interface Cart {
128148
*/
129149
'lastUpdateTime': number;
130150
}
131-
/**
132-
* An event recording that a shopping cart was abandoned.
133-
*/
134151
export interface CartAbandoned extends EventPayload {
135152
'cart': Cart;
136153
}
@@ -160,31 +177,19 @@ export interface CartItem {
160177
*/
161178
'coupon': string | null;
162179
}
163-
/**
164-
* An event recording that a shopping cart was modified.
165-
*/
166180
export interface CartModified extends EventPayload {
167181
'cart': Cart;
168182
}
169-
/**
170-
* An event recording that a shopping cart was viewed.
171-
*/
172183
export interface CartViewed extends EventPayload {
173184
'cart': Cart;
174185
}
175-
/**
176-
* An event recording that a shopping cart started the checkout process.
177-
*/
178186
export interface CheckoutStarted extends EventPayload {
179187
'cart': Cart;
180188
/**
181189
* The ID that uniquely identifies the order across the store.
182190
*/
183191
'orderId': string | null;
184192
}
185-
/**
186-
* An event recording that the user\'s client was detected.
187-
*/
188193
export interface ClientDetected extends EventPayload {
189194
'client': WebClient;
190195
}
@@ -257,9 +262,6 @@ export interface EventContext {
257262
'type': string;
258263
'metadata'?: { [key: string]: string | undefined; };
259264
}
260-
/**
261-
* An event recording a domain-specific occurrence.
262-
*/
263265
export interface EventOccurred extends EventPayload {
264266
/**
265267
* The name of the event. For example, \"pollAnswered\" or \"onboardingStarted\".
@@ -303,15 +305,17 @@ export const EventType = {
303305
PAGE_LOADED: 'pageLoaded',
304306
PRODUCT_VIEWED: 'productAbandoned',
305307
CART_VIEWED: 'productViewed',
306-
CART_MODIFIED: 'cartViewed',
307-
CHECKOUT_STARTED: 'cartModified',
308-
ORDER_PLACED: 'checkoutStarted',
309-
TEST_GROUP_ASSIGNED: 'orderPlaced',
310-
NOTHING_CHANGED: 'testGroupAssigned',
308+
CART_MODIFIED: 'cartAbandoned',
309+
CHECKOUT_STARTED: 'cartViewed',
310+
ORDER_PLACED: 'cartModified',
311+
TEST_GROUP_ASSIGNED: 'checkoutStarted',
312+
NOTHING_CHANGED: 'orderPlaced',
311313
GOAL_COMPLETED: 'nothingChanged',
312314
EVENT_OCCURRED: 'goalCompleted',
313315
SLOT_PERSONALIZED: 'eventOccurred',
314-
SLOT_PERSONALIZED: 'slotPersonalized'
316+
LEAD_GENERATED: 'slotPersonalized',
317+
AUDIENCE_MATCHED: 'leadGenerated',
318+
AUDIENCE_MATCHED: 'audienceMatched'
315319
} as const;
316320

317321
export type EventType = typeof EventType[keyof typeof EventType];
@@ -330,9 +334,6 @@ export interface GeoPoint {
330334
*/
331335
'longitude': number;
332336
}
333-
/**
334-
* An event recording a completed activity, such as a purchase.
335-
*/
336337
export interface GoalCompleted extends EventPayload {
337338
/**
338339
* The ID of the goal.
@@ -347,6 +348,20 @@ export interface GoalCompleted extends EventPayload {
347348
*/
348349
'currency': string | null;
349350
}
351+
export interface LeadGenerated extends EventPayload {
352+
/**
353+
* An identifier supplied by the application to uniquely identify the lead.
354+
*/
355+
'leadId'?: string;
356+
/**
357+
* The currency in which the lead value is accounted.
358+
*/
359+
'currency'?: string;
360+
/**
361+
* The total value associated with the lead.
362+
*/
363+
'value'?: string;
364+
}
350365
/**
351366
* An identification or estimation of a geographic location of an object.
352367
*/
@@ -412,9 +427,6 @@ export const LocationContinent = {
412427
export type LocationContinent = typeof LocationContinent[keyof typeof LocationContinent];
413428

414429

415-
/**
416-
* An event recording that the location of a user was detected.
417-
*/
418430
export interface LocationDetected extends EventPayload {
419431
'location': Location;
420432
}
@@ -433,9 +445,6 @@ export const LocationSource = {
433445
export type LocationSource = typeof LocationSource[keyof typeof LocationSource];
434446

435447

436-
/**
437-
* An event recording a period of inactivity.
438-
*/
439448
export interface NothingChanged extends EventPayload {
440449
/**
441450
* The timestamp when an activity was last observed, in milliseconds since epoch.
@@ -537,9 +546,6 @@ export interface OrderItem {
537546
*/
538547
'coupon': string | null;
539548
}
540-
/**
541-
* An event recording that an order was placed.
542-
*/
543549
export interface OrderPlaced extends EventPayload {
544550
'order': Order;
545551
}
@@ -556,9 +562,6 @@ export const OrderStatus = {
556562
export type OrderStatus = typeof OrderStatus[keyof typeof OrderStatus];
557563

558564

559-
/**
560-
* An event recording that a page was loaded.
561-
*/
562565
export interface PageLoaded extends EventPayload {
563566
/**
564567
* The URL of the page.
@@ -573,9 +576,6 @@ export interface PageLoaded extends EventPayload {
573576
*/
574577
'lastModifiedTime': number;
575578
}
576-
/**
577-
* An event recording that a page was opened.
578-
*/
579579
export interface PageOpened extends EventPayload {
580580
/**
581581
* The URL of the page.
@@ -594,9 +594,6 @@ export interface PageOpened extends EventPayload {
594594
*/
595595
'referrer': string | null;
596596
}
597-
/**
598-
* An event recording that a shopping cart item was abandoned.
599-
*/
600597
export interface ProductAbandoned extends EventPayload {
601598
'cartItem': CartItem;
602599
'cart': Cart;
@@ -646,9 +643,6 @@ export interface ProductDetails {
646643
*/
647644
'imageUrl': string | null;
648645
}
649-
/**
650-
* An event recording that a shopping cart was modified.
651-
*/
652646
export interface ProductViewed extends EventPayload {
653647
'product': ProductDetails;
654648
}
@@ -793,6 +787,7 @@ export interface SlotPersonalizedPersonalization {
793787
* The ID that uniquely identifies the content.
794788
*/
795789
'contentId': string;
790+
'slotVersion'?: SlotPersonalizedPersonalizationSlotVersion | null;
796791
'assignedVariant': SlotPersonalizedPersonalizationAssignedVariant | null;
797792
}
798793
export interface SlotPersonalizedPersonalizationAssignedVariant {
@@ -805,18 +800,22 @@ export interface SlotPersonalizedPersonalizationAssignedVariant {
805800
*/
806801
'variantId'?: string;
807802
}
808-
/**
809-
* An event recording that a new tab was opened.
810-
*/
803+
export interface SlotPersonalizedPersonalizationSlotVersion {
804+
/**
805+
* The major version.
806+
*/
807+
'majorVersion'?: string;
808+
/**
809+
* The minor version.
810+
*/
811+
'minorVersion'?: string;
812+
}
811813
export interface TabOpened extends EventPayload {
812814
/**
813815
* The ID that uniquely identifies the tab across the session.
814816
*/
815817
'tabId': string;
816818
}
817-
/**
818-
* An event recording that the URL of a tab has changed.
819-
*/
820819
export interface TabUrlChanged extends EventPayload {
821820
/**
822821
* The ID that uniquely identifies the tab across the session.
@@ -839,29 +838,15 @@ export const TabVisibility = {
839838
export type TabVisibility = typeof TabVisibility[keyof typeof TabVisibility];
840839

841840

842-
/**
843-
* An event recording that the visibility of a tab has changed.
844-
*/
845841
export interface TabVisibilityChanged extends EventPayload {
846842
/**
847843
* The ID that uniquely identifies the tab across the session.
848844
*/
849845
'tabId': string;
850846
'visibility': TabVisibility;
851847
}
852-
/**
853-
* An event recording that a test group was assigned to a user.
854-
*/
855-
export interface TestGroupAssigned extends EventPayload {
856-
/**
857-
* The ID of the test. For example, \"black-friday-banner\" or \"home-banner-cta\".
858-
*/
859-
'testId': string;
860-
/**
861-
* The ID of the test group, also known as \"variant\". For example, \"black-friday-promo\" or \"black-friday-shipping\".
862-
*/
863-
'groupId': string;
864-
}
848+
849+
865850
export interface User {
866851
/**
867852
* The internal ID assigned to the user, unique across the workspace.
@@ -953,27 +938,18 @@ export interface UserResponse {
953938
'items': Array<User>;
954939
'nextCursor': string;
955940
}
956-
/**
957-
* An event recording that a user has signed in.
958-
*/
959941
export interface UserSignedIn extends EventPayload {
960942
/**
961943
* The external ID of the user.
962944
*/
963945
'externalUserId': string;
964946
}
965-
/**
966-
* An event recording that a user has signed out.
967-
*/
968947
export interface UserSignedOut extends EventPayload {
969948
/**
970949
* The external ID of the user.
971950
*/
972951
'externalUserId': string;
973952
}
974-
/**
975-
* An event recording that a user has signed up.
976-
*/
977953
export interface UserSignedUp extends EventPayload {
978954
/**
979955
* The external ID of the user.
@@ -1000,9 +976,6 @@ export interface WebClient {
1000976
'browser': Browser;
1001977
'device': Device;
1002978
}
1003-
/**
1004-
* The context of the web client at the time the event was tracked.
1005-
*/
1006979
export interface WebContext extends EventContext {
1007980
/**
1008981
* The ID that uniquely identifies the tab across the session.
@@ -1065,8 +1038,8 @@ export const ExportApiAxiosParamCreator = function (configuration?: Configuratio
10651038
localVarQueryParameter['events'] = events;
10661039
}
10671040

1041+
localVarHeaderParameter['Accept'] = 'application/json';
10681042

1069-
10701043
setSearchParams(localVarUrlObj, localVarQueryParameter);
10711044
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10721045
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -1117,8 +1090,8 @@ export const ExportApiAxiosParamCreator = function (configuration?: Configuratio
11171090
localVarQueryParameter['cursor'] = cursor;
11181091
}
11191092

1093+
localVarHeaderParameter['Accept'] = 'application/json';
11201094

1121-
11221095
setSearchParams(localVarUrlObj, localVarQueryParameter);
11231096
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11241097
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -1169,8 +1142,8 @@ export const ExportApiAxiosParamCreator = function (configuration?: Configuratio
11691142
localVarQueryParameter['cursor'] = cursor;
11701143
}
11711144

1145+
localVarHeaderParameter['Accept'] = 'application/json';
11721146

1173-
11741147
setSearchParams(localVarUrlObj, localVarQueryParameter);
11751148
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11761149
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};

base.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Croct Export
55
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
66
*
7-
* The version of the OpenAPI document: 0.3.1
7+
* The version of the OpenAPI document: 0.5.0
88
* Contact: [email protected]
99
*
1010
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

0 commit comments

Comments
 (0)