Skip to content

Commit 47782c2

Browse files
committed
Update client
1 parent 00e5a3f commit 47782c2

13 files changed

Lines changed: 182 additions & 30 deletions

.openapi-generator/FILES

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ docs/OrderPlaced.md
4242
docs/OrderStatus.md
4343
docs/PageLoaded.md
4444
docs/PageOpened.md
45+
docs/Point.md
4546
docs/ProductAbandoned.md
4647
docs/ProductDetails.md
4748
docs/ProductViewed.md
@@ -51,6 +52,7 @@ docs/SessionResponse.md
5152
docs/SessionStatistics.md
5253
docs/SessionWindow.md
5354
docs/SingleEventResponse.md
55+
docs/Size.md
5456
docs/SlotPersonalized.md
5557
docs/SlotPersonalizedMetadata.md
5658
docs/SlotPersonalizedPersonalization.md
@@ -62,7 +64,9 @@ docs/TabVisibility.md
6264
docs/TabVisibilityChanged.md
6365
docs/User.md
6466
docs/UserAddress.md
67+
docs/UserClicked.md
6568
docs/UserResponse.md
69+
docs/UserScrolled.md
6670
docs/UserSignedIn.md
6771
docs/UserSignedOut.md
6872
docs/UserSignedUp.md

api.ts

Lines changed: 60 additions & 14 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.6.0
7+
* The version of the OpenAPI document: 0.7.0
88
* Contact: apis@croct.com
99
*
1010
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -307,19 +307,21 @@ export const EventType = {
307307
CLIENT_DETECTED: 'clientDetected',
308308
PAGE_OPENED: 'pageOpened',
309309
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'
323325
} as const;
324326

325327
export type EventType = typeof EventType[keyof typeof EventType];
@@ -598,6 +600,19 @@ export interface PageOpened extends EventPayload {
598600
*/
599601
'referrer': string | null;
600602
}
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+
}
601616
export interface ProductAbandoned extends EventPayload {
602617
'cartItem': CartItem;
603618
'cart': Cart;
@@ -638,6 +653,10 @@ export interface ProductDetails {
638653
* The original price of the product. For example, 99.90.
639654
*/
640655
'originalPrice': number | null;
656+
/**
657+
* The currency in which the monetary values are expressed in the shopping cart.
658+
*/
659+
'currency'?: string | null;
641660
/**
642661
* The URL of the product page. For example, \"https://apple.com/iphone\".
643662
*/
@@ -734,6 +753,19 @@ export interface SingleEventResponse {
734753
'metadata': EventResponseMetadata;
735754
'event': Event;
736755
}
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+
}
737769
/**
738770
* An event recording a slot personalization.
739771
*/
@@ -797,6 +829,10 @@ export interface SlotPersonalizedPersonalization {
797829
'contentId': string;
798830
'slotVersion'?: SlotPersonalizedPersonalizationSlotVersion | null;
799831
'assignedVariant': SlotPersonalizedPersonalizationAssignedVariant | null;
832+
/**
833+
* The locale of the content.
834+
*/
835+
'locale'?: string | null;
800836
}
801837
export interface SlotPersonalizedPersonalizationAssignedVariant {
802838
/**
@@ -942,10 +978,20 @@ export interface UserAddress {
942978
'country'?: string | null;
943979
'postalCode'?: string | null;
944980
}
981+
export interface UserClicked extends EventPayload {
982+
'point': Point;
983+
'surfaceSize'?: Size;
984+
}
945985
export interface UserResponse {
946986
'items': Array<User>;
947987
'nextCursor': string;
948988
}
989+
export interface UserScrolled extends EventPayload {
990+
'start'?: Point;
991+
'end': Point;
992+
'surfaceSize'?: Size;
993+
'viewportSize'?: Size;
994+
}
949995
export interface UserSignedIn extends EventPayload {
950996
/**
951997
* The external ID of the user.

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.6.0
7+
* The version of the OpenAPI document: 0.7.0
88
* Contact: apis@croct.com
99
*
1010
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

common.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.6.0
7+
* The version of the OpenAPI document: 0.7.0
88
* Contact: apis@croct.com
99
*
1010
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

configuration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Croct Export
44
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
55
*
6-
* The version of the OpenAPI document: 0.6.0
6+
* The version of the OpenAPI document: 0.7.0
77
* Contact: apis@croct.com
88
*
99
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

docs/EventType.md

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,30 +23,34 @@
2323

2424
* `PAGE_LOADED` (value: `'pageLoaded'`)
2525

26-
* `PRODUCT_VIEWED` (value: `'productAbandoned'`)
26+
* `PRODUCT_ABANDONED` (value: `'productAbandoned'`)
2727

28-
* `CART_VIEWED` (value: `'productViewed'`)
28+
* `PRODUCT_VIEWED` (value: `'productViewed'`)
2929

30-
* `CART_MODIFIED` (value: `'cartAbandoned'`)
30+
* `CART_ABANDONED` (value: `'cartAbandoned'`)
3131

32-
* `CHECKOUT_STARTED` (value: `'cartViewed'`)
32+
* `CART_VIEWED` (value: `'cartViewed'`)
3333

34-
* `ORDER_PLACED` (value: `'cartModified'`)
34+
* `CART_MODIFIED` (value: `'cartModified'`)
3535

36-
* `TEST_GROUP_ASSIGNED` (value: `'checkoutStarted'`)
36+
* `CHECKOUT_STARTED` (value: `'checkoutStarted'`)
3737

38-
* `NOTHING_CHANGED` (value: `'orderPlaced'`)
38+
* `ORDER_PLACED` (value: `'orderPlaced'`)
3939

40-
* `GOAL_COMPLETED` (value: `'nothingChanged'`)
40+
* `NOTHING_CHANGED` (value: `'nothingChanged'`)
4141

42-
* `EVENT_OCCURRED` (value: `'goalCompleted'`)
42+
* `GOAL_COMPLETED` (value: `'goalCompleted'`)
4343

44-
* `SLOT_PERSONALIZED` (value: `'eventOccurred'`)
44+
* `EVENT_OCCURRED` (value: `'eventOccurred'`)
4545

46-
* `LEAD_GENERATED` (value: `'slotPersonalized'`)
46+
* `SLOT_PERSONALIZED` (value: `'slotPersonalized'`)
4747

48-
* `AUDIENCE_MATCHED` (value: `'leadGenerated'`)
48+
* `LEAD_GENERATED` (value: `'leadGenerated'`)
4949

5050
* `AUDIENCE_MATCHED` (value: `'audienceMatched'`)
5151

52+
* `USER_CLICKED` (value: `'userClicked'`)
53+
54+
* `USER_SCROLLED` (value: `'userScrolled'`)
55+
5256
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

docs/Point.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Point
2+
3+
A position in a two-dimensional space.
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------------ | ------------- | ------------- | -------------
9+
**x** | **number** | The horizontal position in pixels. | [default to undefined]
10+
**y** | **number** | The vertical position in pixels. | [default to undefined]
11+
12+
## Example
13+
14+
```typescript
15+
import { Point } from '@croct/export';
16+
17+
const instance: Point = {
18+
x,
19+
y,
20+
};
21+
```
22+
23+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

docs/ProductDetails.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Name | Type | Description | Notes
1414
**variant** | **string** | The variant of the product, such as size, color and style. For example, \&quot;64GB Green\&quot;. | [default to undefined]
1515
**displayPrice** | **number** | The price of the product displayed in the store. For example, 59.90. | [default to undefined]
1616
**originalPrice** | **number** | The original price of the product. For example, 99.90. | [default to undefined]
17+
**currency** | **string** | The currency in which the monetary values are expressed in the shopping cart. | [optional] [default to undefined]
1718
**url** | **string** | The URL of the product page. For example, \&quot;https://apple.com/iphone\&quot;. | [default to undefined]
1819
**imageUrl** | **string** | The URL of the main product image. For example, \&quot;https://img.apple.com/iphone.png\&quot;. | [default to undefined]
1920

@@ -31,6 +32,7 @@ const instance: ProductDetails = {
3132
variant,
3233
displayPrice,
3334
originalPrice,
35+
currency,
3436
url,
3537
imageUrl,
3638
};

docs/Size.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Size
2+
3+
A two-dimensional size.
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------------ | ------------- | ------------- | -------------
9+
**width** | **number** | The width in pixels. | [default to undefined]
10+
**height** | **number** | The height in pixels. | [default to undefined]
11+
12+
## Example
13+
14+
```typescript
15+
import { Size } from '@croct/export';
16+
17+
const instance: Size = {
18+
width,
19+
height,
20+
};
21+
```
22+
23+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

docs/SlotPersonalizedPersonalization.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
1111
**contentId** | **string** | The ID that uniquely identifies the content. | [default to undefined]
1212
**slotVersion** | [**SlotPersonalizedPersonalizationSlotVersion**](SlotPersonalizedPersonalizationSlotVersion.md) | | [optional] [default to undefined]
1313
**assignedVariant** | [**SlotPersonalizedPersonalizationAssignedVariant**](SlotPersonalizedPersonalizationAssignedVariant.md) | | [default to undefined]
14+
**locale** | **string** | The locale of the content. | [optional] [default to undefined]
1415

1516
## Example
1617

@@ -24,6 +25,7 @@ const instance: SlotPersonalizedPersonalization = {
2425
contentId,
2526
slotVersion,
2627
assignedVariant,
28+
locale,
2729
};
2830
```
2931

0 commit comments

Comments
 (0)