|
4 | 4 | * Croct Export |
5 | 5 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) |
6 | 6 | * |
7 | | - * The version of the OpenAPI document: 0.6.0 |
| 7 | + * The version of the OpenAPI document: 0.7.0 |
8 | 8 | * Contact: apis@croct.com |
9 | 9 | * |
10 | 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). |
@@ -307,19 +307,21 @@ export const EventType = { |
307 | 307 | CLIENT_DETECTED: 'clientDetected', |
308 | 308 | PAGE_OPENED: 'pageOpened', |
309 | 309 | PAGE_LOADED: 'pageLoaded', |
310 | | - PRODUCT_VIEWED: 'productAbandoned', |
311 | | - CART_VIEWED: 'productViewed', |
312 | | - CART_MODIFIED: 'cartAbandoned', |
313 | | - CHECKOUT_STARTED: 'cartViewed', |
314 | | - ORDER_PLACED: 'cartModified', |
315 | | - TEST_GROUP_ASSIGNED: 'checkoutStarted', |
316 | | - NOTHING_CHANGED: 'orderPlaced', |
317 | | - GOAL_COMPLETED: 'nothingChanged', |
318 | | - EVENT_OCCURRED: 'goalCompleted', |
319 | | - SLOT_PERSONALIZED: 'eventOccurred', |
320 | | - LEAD_GENERATED: 'slotPersonalized', |
321 | | - AUDIENCE_MATCHED: 'leadGenerated', |
322 | | - AUDIENCE_MATCHED: 'audienceMatched' |
| 310 | + PRODUCT_ABANDONED: 'productAbandoned', |
| 311 | + PRODUCT_VIEWED: 'productViewed', |
| 312 | + CART_ABANDONED: 'cartAbandoned', |
| 313 | + CART_VIEWED: 'cartViewed', |
| 314 | + CART_MODIFIED: 'cartModified', |
| 315 | + CHECKOUT_STARTED: 'checkoutStarted', |
| 316 | + ORDER_PLACED: 'orderPlaced', |
| 317 | + NOTHING_CHANGED: 'nothingChanged', |
| 318 | + GOAL_COMPLETED: 'goalCompleted', |
| 319 | + EVENT_OCCURRED: 'eventOccurred', |
| 320 | + SLOT_PERSONALIZED: 'slotPersonalized', |
| 321 | + LEAD_GENERATED: 'leadGenerated', |
| 322 | + AUDIENCE_MATCHED: 'audienceMatched', |
| 323 | + USER_CLICKED: 'userClicked', |
| 324 | + USER_SCROLLED: 'userScrolled' |
323 | 325 | } as const; |
324 | 326 |
|
325 | 327 | export type EventType = typeof EventType[keyof typeof EventType]; |
@@ -598,6 +600,19 @@ export interface PageOpened extends EventPayload { |
598 | 600 | */ |
599 | 601 | 'referrer': string | null; |
600 | 602 | } |
| 603 | +/** |
| 604 | + * A position in a two-dimensional space. |
| 605 | + */ |
| 606 | +export interface Point { |
| 607 | + /** |
| 608 | + * The horizontal position in pixels. |
| 609 | + */ |
| 610 | + 'x': number; |
| 611 | + /** |
| 612 | + * The vertical position in pixels. |
| 613 | + */ |
| 614 | + 'y': number; |
| 615 | +} |
601 | 616 | export interface ProductAbandoned extends EventPayload { |
602 | 617 | 'cartItem': CartItem; |
603 | 618 | 'cart': Cart; |
@@ -638,6 +653,10 @@ export interface ProductDetails { |
638 | 653 | * The original price of the product. For example, 99.90. |
639 | 654 | */ |
640 | 655 | 'originalPrice': number | null; |
| 656 | + /** |
| 657 | + * The currency in which the monetary values are expressed in the shopping cart. |
| 658 | + */ |
| 659 | + 'currency'?: string | null; |
641 | 660 | /** |
642 | 661 | * The URL of the product page. For example, \"https://apple.com/iphone\". |
643 | 662 | */ |
@@ -734,6 +753,19 @@ export interface SingleEventResponse { |
734 | 753 | 'metadata': EventResponseMetadata; |
735 | 754 | 'event': Event; |
736 | 755 | } |
| 756 | +/** |
| 757 | + * A two-dimensional size. |
| 758 | + */ |
| 759 | +export interface Size { |
| 760 | + /** |
| 761 | + * The width in pixels. |
| 762 | + */ |
| 763 | + 'width': number; |
| 764 | + /** |
| 765 | + * The height in pixels. |
| 766 | + */ |
| 767 | + 'height': number; |
| 768 | +} |
737 | 769 | /** |
738 | 770 | * An event recording a slot personalization. |
739 | 771 | */ |
@@ -797,6 +829,10 @@ export interface SlotPersonalizedPersonalization { |
797 | 829 | 'contentId': string; |
798 | 830 | 'slotVersion'?: SlotPersonalizedPersonalizationSlotVersion | null; |
799 | 831 | 'assignedVariant': SlotPersonalizedPersonalizationAssignedVariant | null; |
| 832 | + /** |
| 833 | + * The locale of the content. |
| 834 | + */ |
| 835 | + 'locale'?: string | null; |
800 | 836 | } |
801 | 837 | export interface SlotPersonalizedPersonalizationAssignedVariant { |
802 | 838 | /** |
@@ -942,10 +978,20 @@ export interface UserAddress { |
942 | 978 | 'country'?: string | null; |
943 | 979 | 'postalCode'?: string | null; |
944 | 980 | } |
| 981 | +export interface UserClicked extends EventPayload { |
| 982 | + 'point': Point; |
| 983 | + 'surfaceSize'?: Size; |
| 984 | +} |
945 | 985 | export interface UserResponse { |
946 | 986 | 'items': Array<User>; |
947 | 987 | 'nextCursor': string; |
948 | 988 | } |
| 989 | +export interface UserScrolled extends EventPayload { |
| 990 | + 'start'?: Point; |
| 991 | + 'end': Point; |
| 992 | + 'surfaceSize'?: Size; |
| 993 | + 'viewportSize'?: Size; |
| 994 | +} |
949 | 995 | export interface UserSignedIn extends EventPayload { |
950 | 996 | /** |
951 | 997 | * The external ID of the user. |
|
0 commit comments